@justifi/webcomponents 6.0.0-rc.4 → 6.0.0-rc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (579) hide show
  1. package/dist/cjs/{Api-CPuq_15r.js → Api-y2G49jOh.js} +1 -1
  2. package/dist/cjs/{Refund-CqWNG8sx.js → Refund-BVZHsa6Z.js} +5 -4
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  4. package/dist/cjs/{badge-CMmPvqtE.js → badge-CcJ9H85-.js} +1 -1
  5. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +8 -8
  6. package/dist/cjs/bank-account-form.cjs.entry.js +6 -6
  7. package/dist/cjs/business-details-core.cjs.entry.js +4 -4
  8. package/dist/cjs/{business.service-C3BdUPlm.js → business.service-D5IhSyRJ.js} +2 -2
  9. package/dist/cjs/{button-CfVQSysQ.js → button-DsHDMHaa.js} +1 -1
  10. package/dist/cjs/card-form.cjs.entry.js +6 -6
  11. package/dist/cjs/{check-pkg-version-BNVGE27p.js → check-pkg-version-V7aKSlBk.js} +9 -3
  12. package/dist/cjs/{checkout.service-B0ZmvWwI.js → checkout.service-4aS641tN.js} +2 -2
  13. package/dist/cjs/{checkout.store-CV_fuGQw.js → checkout.store-Ctwy9ahZ.js} +5 -2
  14. package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -10
  15. package/dist/cjs/{payments-list-params-state-BNbT1fuJ.js → checkouts-list-params-state-Cewmin_p.js} +1 -1
  16. package/dist/cjs/{checkouts-table-UN5gPpQ_.js → checkouts-table-B_gpjGhs.js} +2 -2
  17. package/dist/cjs/{config-state-5xZf-jax.js → config-state-BBOZIS8x.js} +1 -1
  18. package/dist/cjs/custom-popper_2.cjs.entry.js +3 -3
  19. package/dist/cjs/{dispute.service-DsPEAcDn.js → dispute.service-64ciJH0r.js} +2 -2
  20. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  21. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  22. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  23. package/dist/cjs/{form-control-error-text-HM0zQerh.js → form-control-error-text-B-P5UDhm.js} +1 -1
  24. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  25. package/dist/cjs/{form-control-help-text-5KIUw1IP.js → form-control-help-text-JoZjhb9m.js} +1 -1
  26. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  27. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
  28. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  29. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
  30. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  31. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  32. package/dist/cjs/form-control-select_2.cjs.entry.js +6 -6
  33. package/dist/cjs/{get-payment-details-DtCXaIMx.js → get-payment-details-DE5xUUpt.js} +2 -2
  34. package/dist/cjs/{get-subaccounts-CwCH5rC8.js → get-subaccounts-CH477rHs.js} +3 -3
  35. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
  36. package/dist/cjs/{header-1-DD41iNlG.js → header-1-DRA3f4Jh.js} +1 -1
  37. package/dist/cjs/{header-3-D9Wa0IfT.js → header-3-sOdOpfx3.js} +1 -1
  38. package/dist/cjs/hidden-input_2.cjs.entry.js +8 -8
  39. package/dist/cjs/{index-Yd9aLenr.js → index-B32W0A3m.js} +1 -1
  40. package/dist/cjs/{index-dm_GlYlb.js → index-C9hBD-32.js} +2 -2
  41. package/dist/cjs/{insurance-state-Cyva9u6S.js → insurance-state-d2thhXUX.js} +2 -2
  42. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +6 -6
  43. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +7 -7
  44. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
  45. package/dist/cjs/justifi-apple-pay.cjs.entry.js +781 -0
  46. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +20 -20
  47. package/dist/cjs/justifi-business-details.cjs.entry.js +9 -9
  48. package/dist/cjs/justifi-business-form.cjs.entry.js +12 -12
  49. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  50. package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +1422 -0
  51. package/dist/cjs/justifi-checkout.cjs.entry.js +16 -45
  52. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +7 -7
  53. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -13
  54. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  55. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  56. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
  57. package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -9
  58. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -14
  59. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
  60. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
  61. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -7
  62. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
  63. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
  64. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -8
  65. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +12 -12
  66. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
  67. package/dist/cjs/justifi-payments-list.cjs.entry.js +13 -13
  68. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -9
  69. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +12 -12
  70. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +6 -6
  71. package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -14
  72. package/dist/cjs/justifi-refund-payment.cjs.entry.js +12 -12
  73. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +2 -2
  74. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +15 -11
  75. package/dist/cjs/justifi-skeleton.cjs.entry.js +4 -4
  76. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +8 -8
  77. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -11
  78. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +7 -7
  79. package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -13
  80. package/dist/cjs/loader.cjs.js +2 -2
  81. package/dist/cjs/{package-BKILqyp3.js → package-Dg5ELZpu.js} +1 -1
  82. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  83. package/dist/cjs/payment-details-core.cjs.entry.js +14 -14
  84. package/dist/cjs/payment-method-option.cjs.entry.js +3 -3
  85. package/dist/cjs/{payment.service-1H0VC3LV.js → payment.service--kzMop3L.js} +2 -2
  86. package/dist/cjs/payments-list-core.cjs.entry.js +11 -11
  87. package/dist/cjs/{payouts-list-params-state-BNbT1fuJ.js → payments-list-params-state-Cewmin_p.js} +1 -1
  88. package/dist/cjs/{payments-status-PB63klt3.js → payments-status-DXRh_ekP.js} +2 -2
  89. package/dist/cjs/{payments-table-quF0NnsS.js → payments-table-DFRtk-T9.js} +2 -2
  90. package/dist/cjs/payout-details-core.cjs.entry.js +10 -10
  91. package/dist/cjs/{payout.service-CIZFU-hV.js → payout.service-D3omzNG_.js} +2 -2
  92. package/dist/cjs/payouts-list-core.cjs.entry.js +11 -11
  93. package/dist/cjs/{checkouts-list-params-state-BNbT1fuJ.js → payouts-list-params-state-Cewmin_p.js} +1 -1
  94. package/dist/cjs/{payouts-status-Bk1JFzbP.js → payouts-status-DxTQZv3i.js} +2 -2
  95. package/dist/cjs/{payouts-table-D_CCTR_k.js → payouts-table-DE3t0x93.js} +2 -2
  96. package/dist/cjs/{skeleton-x-GSs3xk.js → skeleton-C7DQRD6r.js} +1 -1
  97. package/dist/cjs/{spinner-Kb1BFvnL.js → spinner-jmeA44Ee.js} +1 -1
  98. package/dist/cjs/{styled-host-CqQYxX-w.js → styled-host-BfVJlAsJ.js} +1 -1
  99. package/dist/cjs/{table-BJVUhh3s.js → table-Ccdrt0v_.js} +2 -2
  100. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  101. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +10 -10
  102. package/dist/cjs/{terminal-orders-list-params-state-BNbT1fuJ.js → terminal-orders-list-params-state-Cewmin_p.js} +1 -1
  103. package/dist/cjs/{terminal-orders-table-0O5jtzYj.js → terminal-orders-table-B1LJitwE.js} +4 -4
  104. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  105. package/dist/cjs/{terminal.service-DUlyMTrX.js → terminal.service-BOvYfpQW.js} +2 -2
  106. package/dist/cjs/terminals-list-core.cjs.entry.js +10 -10
  107. package/dist/cjs/terminals-list-params-state-Cewmin_p.js +22 -0
  108. package/dist/cjs/{terminals-table-C2BNRUS5.js → terminals-table-DYt7exFQ.js} +2 -2
  109. package/dist/cjs/{utils-Df-pajL7.js → utils-Bzyj4qWe.js} +1 -1
  110. package/dist/cjs/webcomponents.cjs.js +3 -3
  111. package/dist/collection/api/ApplePay.js +119 -0
  112. package/dist/collection/api/Payment.js +3 -2
  113. package/dist/collection/api/services/apple-pay.service.js +293 -0
  114. package/dist/collection/api/services/plaid.service.js +20 -0
  115. package/dist/collection/assets/plaid-icon.svg +1 -0
  116. package/dist/collection/collection-manifest.json +3 -1
  117. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  118. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  119. package/dist/collection/components/checkout/checkout.js +7 -44
  120. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  121. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  122. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  123. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  124. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  125. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  126. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  127. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  128. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  129. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  130. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  131. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  132. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  133. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  134. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  135. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  136. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  137. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  138. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  139. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  140. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +4 -0
  141. package/dist/collection/components/modular-checkout/ModularCheckout.js +28 -0
  142. package/dist/collection/components/modular-checkout/modular-checkout.js +153 -118
  143. package/dist/collection/components/modular-checkout/sub-components/apple-pay-skeleton.js +10 -0
  144. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +515 -0
  145. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
  146. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  147. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
  148. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  149. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  150. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +864 -0
  151. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +123 -0
  152. package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +11 -5
  153. package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +3 -2
  154. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  155. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  156. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  157. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  158. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  159. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  160. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  161. package/dist/collection/components/payments-list/payments-list.js +1 -1
  162. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  163. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  164. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  165. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  166. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  167. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  168. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  169. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  170. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  171. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  172. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  173. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +65 -37
  174. package/dist/collection/store/checkout.store.js +4 -1
  175. package/dist/collection/ui-components/apple-pay-button.js +146 -0
  176. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  177. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  178. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  179. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  180. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  181. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  182. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  183. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  184. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  185. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  186. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  187. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  188. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  189. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  190. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  191. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  192. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  193. package/dist/collection/utils/check-pkg-version.js +6 -0
  194. package/dist/docs.json +964 -235
  195. package/dist/esm/{Api-N_veT2p6.js → Api-C1I68Tfr.js} +1 -1
  196. package/dist/esm/{Refund-Di6J0oN2.js → Refund-kKW8S1h6.js} +4 -3
  197. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  198. package/dist/esm/{badge-D_mzXSCQ.js → badge-DSYSJcRy.js} +2 -2
  199. package/dist/esm/bank-account-document-form-inputs_4.entry.js +9 -9
  200. package/dist/esm/bank-account-form.entry.js +7 -7
  201. package/dist/esm/business-details-core.entry.js +5 -5
  202. package/dist/esm/{business.service-Bdvhdc_d.js → business.service-B3wlBl1x.js} +2 -2
  203. package/dist/esm/{button-CeR8qVS3.js → button-CpllL0At.js} +2 -2
  204. package/dist/esm/card-form.entry.js +7 -7
  205. package/dist/esm/{check-pkg-version-CaWUVat7.js → check-pkg-version-DFYosyo9.js} +9 -3
  206. package/dist/esm/{checkout.service-XgGFa7H8.js → checkout.service-KDp7tISm.js} +2 -2
  207. package/dist/esm/{checkout.store-B60siz2l.js → checkout.store-sQSQqMAD.js} +5 -2
  208. package/dist/esm/checkouts-list-core.entry.js +11 -11
  209. package/dist/esm/{checkouts-list-params-state-SMXQIZTt.js → checkouts-list-params-state-D8tzsGR_.js} +1 -1
  210. package/dist/esm/{checkouts-table-CFZYoYjn.js → checkouts-table-QOdiLpak.js} +3 -3
  211. package/dist/esm/{config-state-BrllxiM0.js → config-state-DZeVYerv.js} +1 -1
  212. package/dist/esm/custom-popper_2.entry.js +4 -4
  213. package/dist/esm/{dispute.service-CKPcmwhH.js → dispute.service-DEZEPwn-.js} +2 -2
  214. package/dist/esm/form-alert_5.entry.js +2 -2
  215. package/dist/esm/form-control-checkbox.entry.js +6 -6
  216. package/dist/esm/form-control-date.entry.js +5 -5
  217. package/dist/esm/{form-control-error-text-D3ZwkOv-.js → form-control-error-text-R7U07nTg.js} +2 -2
  218. package/dist/esm/form-control-file-v2_2.entry.js +6 -6
  219. package/dist/esm/{form-control-help-text-C39ZW65w.js → form-control-help-text-CRLH-2f7.js} +2 -2
  220. package/dist/esm/form-control-help-text.entry.js +1 -1
  221. package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
  222. package/dist/esm/form-control-monetary.entry.js +6 -6
  223. package/dist/esm/form-control-number-masked_2.entry.js +5 -5
  224. package/dist/esm/form-control-number.entry.js +6 -6
  225. package/dist/esm/form-control-radio.entry.js +4 -4
  226. package/dist/esm/form-control-select_2.entry.js +7 -7
  227. package/dist/esm/{get-payment-details-Dt-dr16k.js → get-payment-details-CYASKLT7.js} +2 -2
  228. package/dist/esm/{get-subaccounts-BsoVLANw.js → get-subaccounts-E0PYy_pc.js} +3 -3
  229. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  230. package/dist/esm/{header-1-E-hEi3wF.js → header-1-3M9If0gM.js} +2 -2
  231. package/dist/esm/{header-3-Dm7M85kz.js → header-3-CWa41YWq.js} +2 -2
  232. package/dist/esm/hidden-input_2.entry.js +9 -9
  233. package/dist/esm/{index-B9me4yN2.js → index-B_KxSZIF.js} +1 -1
  234. package/dist/esm/{index-kpoIU4v_.js → index-Bn7inNWG.js} +2 -2
  235. package/dist/esm/{insurance-state-CB4l8sOv.js → insurance-state-CTalqbNa.js} +3 -3
  236. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +7 -7
  237. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +8 -8
  238. package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
  239. package/dist/esm/justifi-apple-pay.entry.js +779 -0
  240. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +21 -21
  241. package/dist/esm/justifi-business-details.entry.js +10 -10
  242. package/dist/esm/justifi-business-form.entry.js +13 -13
  243. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  244. package/dist/esm/justifi-checkout-summary_7.entry.js +1414 -0
  245. package/dist/esm/justifi-checkout.entry.js +17 -46
  246. package/dist/esm/justifi-checkouts-list-filters.entry.js +8 -8
  247. package/dist/esm/justifi-checkouts-list.entry.js +14 -14
  248. package/dist/esm/justifi-config-provider.entry.js +3 -3
  249. package/dist/esm/justifi-details.entry.js +3 -3
  250. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  251. package/dist/esm/justifi-dispute-management.entry.js +9 -9
  252. package/dist/esm/justifi-dispute-notification_3.entry.js +15 -15
  253. package/dist/esm/justifi-gross-payment-chart.entry.js +9 -9
  254. package/dist/esm/justifi-order-terminals.entry.js +13 -13
  255. package/dist/esm/justifi-owner-form_3.entry.js +8 -8
  256. package/dist/esm/justifi-payment-details.entry.js +11 -11
  257. package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
  258. package/dist/esm/justifi-payment-provisioning.entry.js +8 -8
  259. package/dist/esm/justifi-payment-transactions-list.entry.js +13 -13
  260. package/dist/esm/justifi-payments-list-filters.entry.js +7 -7
  261. package/dist/esm/justifi-payments-list.entry.js +14 -14
  262. package/dist/esm/justifi-payout-details.entry.js +10 -10
  263. package/dist/esm/justifi-payout-transactions-list.entry.js +13 -13
  264. package/dist/esm/justifi-payouts-list-filters.entry.js +7 -7
  265. package/dist/esm/justifi-payouts-list.entry.js +15 -15
  266. package/dist/esm/justifi-refund-payment.entry.js +13 -13
  267. package/dist/esm/justifi-saved-payment-method.entry.js +3 -3
  268. package/dist/esm/justifi-season-interruption-insurance.entry.js +16 -12
  269. package/dist/esm/justifi-skeleton.entry.js +5 -5
  270. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +9 -9
  271. package/dist/esm/justifi-terminal-orders-list.entry.js +12 -12
  272. package/dist/esm/justifi-terminals-list-filters.entry.js +8 -8
  273. package/dist/esm/justifi-terminals-list.entry.js +14 -14
  274. package/dist/esm/loader.js +3 -3
  275. package/dist/esm/{package-BF-uL8B4.js → package-uY_jN8Gg.js} +1 -1
  276. package/dist/esm/pagination-menu.entry.js +2 -2
  277. package/dist/esm/{parts-CfF8KKwx.js → parts-RvUQ__Pq.js} +1 -1
  278. package/dist/esm/payment-details-core.entry.js +15 -15
  279. package/dist/esm/payment-method-option.entry.js +4 -4
  280. package/dist/esm/{payment.service-BWO84KlP.js → payment.service-uJpJaX2Z.js} +2 -2
  281. package/dist/esm/payments-list-core.entry.js +12 -12
  282. package/dist/esm/{payments-list-params-state-SMXQIZTt.js → payments-list-params-state-D8tzsGR_.js} +1 -1
  283. package/dist/esm/{payments-status-XoZrlbiZ.js → payments-status-5orNU2Rd.js} +2 -2
  284. package/dist/esm/{payments-table-Dh4P9mTb.js → payments-table-B0uyodyJ.js} +3 -3
  285. package/dist/esm/payout-details-core.entry.js +11 -11
  286. package/dist/esm/{payout.service-Cld6TS5W.js → payout.service-ClUgtbbb.js} +2 -2
  287. package/dist/esm/payouts-list-core.entry.js +12 -12
  288. package/dist/esm/{payouts-list-params-state-SMXQIZTt.js → payouts-list-params-state-D8tzsGR_.js} +1 -1
  289. package/dist/esm/{payouts-status-Qm2jZG1-.js → payouts-status-CZPwa2AE.js} +2 -2
  290. package/dist/esm/{payouts-table-DMVAZp-r.js → payouts-table-CaCSX_0q.js} +3 -3
  291. package/dist/esm/{skeleton-DrHwsgs_.js → skeleton-qMb0_Cjy.js} +2 -2
  292. package/dist/esm/{spinner-XBq6mVJW.js → spinner-DUzyWLhj.js} +2 -2
  293. package/dist/esm/{styled-host-B_XBaM7z.js → styled-host-CTAGIN84.js} +1 -1
  294. package/dist/esm/{table-qqt2Ew5y.js → table-Br3n9Xu-.js} +3 -3
  295. package/dist/esm/table-filters-menu.entry.js +4 -4
  296. package/dist/esm/terminal-orders-list-core.entry.js +11 -11
  297. package/dist/esm/{terminal-orders-list-params-state-SMXQIZTt.js → terminal-orders-list-params-state-D8tzsGR_.js} +1 -1
  298. package/dist/esm/{terminal-orders-table-BN4Co4T8.js → terminal-orders-table-DPtof5Zb.js} +5 -5
  299. package/dist/esm/terminal-quantity-selector.entry.js +3 -3
  300. package/dist/esm/{terminal.service-DmYCUQcA.js → terminal.service-ClNtE3e-.js} +2 -2
  301. package/dist/esm/terminals-list-core.entry.js +11 -11
  302. package/dist/esm/terminals-list-params-state-D8tzsGR_.js +16 -0
  303. package/dist/esm/{terminals-table-C8LczeG_.js → terminals-table-ClkR_jrC.js} +3 -3
  304. package/dist/esm/{utils-kWaZhFAd.js → utils-Dg6gMUTv.js} +2 -2
  305. package/dist/esm/webcomponents.js +4 -4
  306. package/dist/module/Analytics.js +6 -0
  307. package/dist/module/ModularCheckout.js +30 -0
  308. package/dist/module/Refund.js +4 -3
  309. package/dist/module/additional-statement.js +1 -1
  310. package/dist/module/bank-account-billing-form-simple.js +1 -1
  311. package/dist/module/bank-account-form.js +2 -2
  312. package/dist/module/bank-account.js +2 -2
  313. package/dist/module/business-bank-account-form-step-core.js +1 -1
  314. package/dist/module/cancellation-policy.js +1 -1
  315. package/dist/module/card-billing-form-simple.js +1 -1
  316. package/dist/module/card-form.js +2 -2
  317. package/dist/module/card-form2.js +2 -2
  318. package/dist/module/checkout.store.js +4 -1
  319. package/dist/module/checkouts-list-core2.js +1 -1
  320. package/dist/module/custom-popper2.js +2 -2
  321. package/dist/module/customer-details.js +1 -1
  322. package/dist/module/dispute-management-core.js +1 -1
  323. package/dist/module/dispute-notification.js +1 -1
  324. package/dist/module/dispute-response-core.js +1 -1
  325. package/dist/module/dispute-response.js +1 -1
  326. package/dist/module/duplicate-charge.js +1 -1
  327. package/dist/module/electronic-evidence.js +1 -1
  328. package/dist/module/form-control-checkbox2.js +2 -2
  329. package/dist/module/form-control-date2.js +2 -2
  330. package/dist/module/form-control-file-v22.js +1 -1
  331. package/dist/module/form-control-file2.js +2 -2
  332. package/dist/module/form-control-monetary2.js +2 -2
  333. package/dist/module/form-control-number-masked2.js +2 -2
  334. package/dist/module/form-control-number.js +2 -2
  335. package/dist/module/form-control-radio2.js +2 -2
  336. package/dist/module/form-control-select2.js +2 -2
  337. package/dist/module/form-control-text2.js +2 -2
  338. package/dist/module/form-control-textarea2.js +2 -2
  339. package/dist/module/get-payment-details.js +1 -1
  340. package/dist/module/gross-payment-chart-core2.js +1 -1
  341. package/dist/module/hidden-input2.js +1 -1
  342. package/dist/module/iframe-input2.js +3 -3
  343. package/dist/module/justifi-apple-pay.d.ts +11 -0
  344. package/dist/module/justifi-apple-pay.js +817 -0
  345. package/dist/module/justifi-button2.js +1 -1
  346. package/dist/module/justifi-checkout.js +51 -76
  347. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  348. package/dist/module/justifi-checkouts-list.js +2 -2
  349. package/dist/module/justifi-dispute-management.js +1 -1
  350. package/dist/module/justifi-header2.js +1 -1
  351. package/dist/module/justifi-order-terminals.js +2 -2
  352. package/dist/module/justifi-payment-transactions-list.js +2 -2
  353. package/dist/module/justifi-payments-list-filters.js +2 -2
  354. package/dist/module/justifi-payments-list.js +2 -2
  355. package/dist/module/justifi-payout-details.js +1 -1
  356. package/dist/module/justifi-payout-transactions-list.js +2 -2
  357. package/dist/module/justifi-payouts-list-filters.js +2 -2
  358. package/dist/module/justifi-payouts-list.js +2 -2
  359. package/dist/module/justifi-plaid-payment-method.d.ts +11 -0
  360. package/dist/module/justifi-plaid-payment-method.js +6 -0
  361. package/dist/module/justifi-refund-payment.js +1 -1
  362. package/dist/module/justifi-saved-payment-method.js +1 -1
  363. package/dist/module/justifi-season-interruption-insurance.js +4 -0
  364. package/dist/module/justifi-skeleton.js +1 -1
  365. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  366. package/dist/module/justifi-terminal-orders-list.js +2 -2
  367. package/dist/module/justifi-terminals-list-filters.js +2 -2
  368. package/dist/module/justifi-terminals-list.js +2 -2
  369. package/dist/module/modular-checkout.js +149 -97
  370. package/dist/module/package.js +1 -1
  371. package/dist/module/payment-details-core2.js +8 -8
  372. package/dist/module/payment-method-option.js +1 -1
  373. package/dist/module/payments-list-core2.js +1 -1
  374. package/dist/module/payout-details-core2.js +3 -3
  375. package/dist/module/payouts-list-core2.js +1 -1
  376. package/dist/module/plaid-payment-method.js +693 -0
  377. package/dist/module/product-or-service.js +1 -1
  378. package/dist/module/refund-policy.js +1 -1
  379. package/dist/module/save-new-payment-method.js +1 -1
  380. package/dist/module/saved-payment-methods.js +11 -5
  381. package/dist/module/sezzle-payment-method.js +3 -2
  382. package/dist/module/shipping-details.js +1 -1
  383. package/dist/module/summary.js +1 -1
  384. package/dist/module/table-filters-menu2.js +1 -1
  385. package/dist/module/terminal-orders-list-core2.js +2 -2
  386. package/dist/module/terminal-quantity-selector2.js +1 -1
  387. package/dist/module/terminals-list-core2.js +1 -1
  388. package/dist/module/tokenize-payment-method.js +47 -38
  389. package/dist/types/api/ApplePay.d.ts +196 -0
  390. package/dist/types/api/Checkout.d.ts +4 -0
  391. package/dist/types/api/Payment.d.ts +3 -4
  392. package/dist/types/api/services/apple-pay.service.d.ts +55 -0
  393. package/dist/types/api/services/plaid.service.d.ts +12 -0
  394. package/dist/types/components/checkout/checkout.d.ts +1 -7
  395. package/dist/types/components/modular-checkout/ModularCheckout.d.ts +23 -0
  396. package/dist/types/components/modular-checkout/modular-checkout.d.ts +6 -3
  397. package/dist/types/components/modular-checkout/sub-components/apple-pay-skeleton.d.ts +6 -0
  398. package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +38 -0
  399. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +80 -0
  400. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.test.d.ts +1 -0
  401. package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +1 -1
  402. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +7 -5
  403. package/dist/types/components.d.ts +159 -3
  404. package/dist/types/store/checkout.store.d.ts +5 -1
  405. package/dist/types/ui-components/apple-pay-button.d.ts +17 -0
  406. package/dist/webcomponents/{p-56980ef3.entry.js → p-040e8524.entry.js} +1 -1
  407. package/dist/webcomponents/{p-DD74a16D.js → p-0mMX1Zv4.js} +1 -1
  408. package/dist/webcomponents/{p-29b6f15a.entry.js → p-14ff3155.entry.js} +1 -1
  409. package/dist/webcomponents/{p-904a95e5.entry.js → p-15705e8a.entry.js} +1 -1
  410. package/dist/webcomponents/p-16f94e08.entry.js +1 -0
  411. package/dist/webcomponents/p-1c5be37e.entry.js +1 -0
  412. package/dist/webcomponents/p-255b28fb.entry.js +1 -0
  413. package/dist/webcomponents/p-26a8b07c.entry.js +1 -0
  414. package/dist/webcomponents/p-26ce3346.entry.js +1 -0
  415. package/dist/webcomponents/{p-79055216.entry.js → p-28618e6f.entry.js} +1 -1
  416. package/dist/webcomponents/{p-518a9519.entry.js → p-2de08ab2.entry.js} +1 -1
  417. package/dist/webcomponents/p-30c1f265.entry.js +1 -0
  418. package/dist/webcomponents/p-3aecd2cd.entry.js +1 -0
  419. package/dist/webcomponents/{p-f4f3cae8.entry.js → p-3bf63d1e.entry.js} +1 -1
  420. package/dist/webcomponents/p-3c5d92d9.entry.js +1 -0
  421. package/dist/webcomponents/{p-a0573ecc.entry.js → p-3e025b84.entry.js} +1 -1
  422. package/dist/webcomponents/{p-413236be.entry.js → p-3e4db664.entry.js} +1 -1
  423. package/dist/webcomponents/p-3e667b07.entry.js +1 -0
  424. package/dist/webcomponents/{p-0b790fa4.entry.js → p-4213d10e.entry.js} +4 -4
  425. package/dist/webcomponents/{p-a8205044.entry.js → p-44450a94.entry.js} +1 -1
  426. package/dist/webcomponents/p-4723f35b.entry.js +1 -0
  427. package/dist/webcomponents/{p-d075bd72.entry.js → p-51801ae5.entry.js} +1 -1
  428. package/dist/webcomponents/p-52098283.entry.js +1 -0
  429. package/dist/webcomponents/{p-ab308ee3.entry.js → p-54ca3070.entry.js} +1 -1
  430. package/dist/webcomponents/p-5580e6ca.entry.js +1 -0
  431. package/dist/webcomponents/p-57dde36e.entry.js +1 -0
  432. package/dist/webcomponents/p-5bc6f5ca.entry.js +1 -0
  433. package/dist/webcomponents/p-5f87add5.entry.js +1 -0
  434. package/dist/webcomponents/{p-f7e62bfa.entry.js → p-60206d9c.entry.js} +1 -1
  435. package/dist/webcomponents/{p-6e18d13f.entry.js → p-613421d4.entry.js} +1 -1
  436. package/dist/webcomponents/{p-3d85d046.entry.js → p-6255c685.entry.js} +1 -1
  437. package/dist/webcomponents/p-7089fb85.entry.js +1 -0
  438. package/dist/webcomponents/{p-48bccf3b.entry.js → p-70f51444.entry.js} +1 -1
  439. package/dist/webcomponents/p-72dda22b.entry.js +1 -0
  440. package/dist/webcomponents/{p-b0bfa20f.entry.js → p-7cf87637.entry.js} +1 -1
  441. package/dist/webcomponents/p-87884ca5.entry.js +1 -0
  442. package/dist/webcomponents/p-88905a54.entry.js +1 -0
  443. package/dist/webcomponents/p-8990707a.entry.js +1 -0
  444. package/dist/webcomponents/p-8b7cbdbf.entry.js +1 -0
  445. package/dist/webcomponents/p-8cca8903.entry.js +1 -0
  446. package/dist/webcomponents/{p-15777cfe.entry.js → p-8ff839a4.entry.js} +1 -1
  447. package/dist/webcomponents/{p-724b0361.entry.js → p-90a1ba6a.entry.js} +1 -1
  448. package/dist/webcomponents/{p-57143978.entry.js → p-95cbb655.entry.js} +1 -1
  449. package/dist/webcomponents/{p-befda39d.entry.js → p-97c0dde4.entry.js} +1 -1
  450. package/dist/webcomponents/p-9846b23d.entry.js +1 -0
  451. package/dist/webcomponents/p-98cffba9.entry.js +1 -0
  452. package/dist/webcomponents/{p-738e0511.entry.js → p-9a2c044f.entry.js} +1 -1
  453. package/dist/webcomponents/p-9f0b1bea.entry.js +1 -0
  454. package/dist/webcomponents/p-9f5c9e41.entry.js +1 -0
  455. package/dist/webcomponents/p-B5Rc83j1.js +1 -0
  456. package/dist/webcomponents/p-B71k50jz.js +1 -0
  457. package/dist/webcomponents/p-B8iBcmNu.js +1 -0
  458. package/dist/webcomponents/p-BEPUC3Po.js +1 -0
  459. package/dist/webcomponents/p-BP7op0vq.js +1 -0
  460. package/dist/webcomponents/{p-I8XpD1TX.js → p-BPtcGAzB.js} +1 -1
  461. package/dist/webcomponents/p-BQ2TIFoY.js +1 -0
  462. package/dist/webcomponents/{p-BTkXk7ol.js → p-BRLwUSZk.js} +1 -1
  463. package/dist/webcomponents/p-BSt6p1oq.js +1 -0
  464. package/dist/webcomponents/p-BY1mRAvj.js +1 -0
  465. package/dist/webcomponents/{p-YND5pTuF.js → p-Bb-6bNcq.js} +1 -1
  466. package/dist/webcomponents/p-BbZwa5UI.js +1 -0
  467. package/dist/webcomponents/p-BfM6X7lF.js +1 -0
  468. package/dist/webcomponents/{p-kpoIU4v_.js → p-Bn7inNWG.js} +1 -1
  469. package/dist/webcomponents/{p-DWUnL_zj.js → p-Bu1jU017.js} +1 -1
  470. package/dist/webcomponents/{p-BeszVz87.js → p-C5id7s_l.js} +1 -1
  471. package/dist/webcomponents/{p-Bz164TKZ.js → p-CB0mCq1M.js} +1 -1
  472. package/dist/webcomponents/p-CaAVuW6B.js +1 -0
  473. package/dist/webcomponents/p-CpaS1Lex.js +1 -0
  474. package/dist/webcomponents/{p-Bpcb3SsP.js → p-CvG-itHC.js} +1 -1
  475. package/dist/webcomponents/{p-BySyDTv5.js → p-D2_iJUrZ.js} +1 -1
  476. package/dist/webcomponents/p-DAED83Ew.js +1 -0
  477. package/dist/webcomponents/p-DD0Mvpeu.js +1 -0
  478. package/dist/webcomponents/p-DDUmOl3v.js +1 -0
  479. package/dist/webcomponents/{p-Dvxpy_P1.js → p-DGmp4ErD.js} +1 -1
  480. package/dist/webcomponents/p-DIDloHpm.js +1 -0
  481. package/dist/webcomponents/{p-DO3INvI2.js → p-DNo0OPOP.js} +1 -1
  482. package/dist/webcomponents/{p-CsNubTqD.js → p-DVBbk00Z.js} +1 -1
  483. package/dist/webcomponents/{p-Bb6FBEPP.js → p-Dc1CS9Mi.js} +1 -1
  484. package/dist/webcomponents/p-Dgflaz6J.js +1 -0
  485. package/dist/webcomponents/{p-9y5MOK55.js → p-DhGNCW2f.js} +1 -1
  486. package/dist/webcomponents/p-DsZZxRXY.js +1 -0
  487. package/dist/webcomponents/{p-CRFzwZW6.js → p-DxqCFDtF.js} +1 -1
  488. package/dist/webcomponents/{p-CfF8KKwx.js → p-RvUQ__Pq.js} +1 -1
  489. package/dist/webcomponents/p-a1d3bb81.entry.js +1 -0
  490. package/dist/webcomponents/p-a347d1b1.entry.js +1 -0
  491. package/dist/webcomponents/p-a9957ca5.entry.js +1 -0
  492. package/dist/webcomponents/{p-463ae23a.entry.js → p-abbf14b5.entry.js} +1 -1
  493. package/dist/webcomponents/p-abd0e71f.entry.js +1 -0
  494. package/dist/webcomponents/{p-BbYVgLcf.js → p-b21ncS7l.js} +1 -1
  495. package/dist/webcomponents/{p-DWOKxG7j.js → p-bjogwLgt.js} +1 -1
  496. package/dist/webcomponents/p-c2bceb15.entry.js +1 -0
  497. package/dist/webcomponents/p-c44325f8.entry.js +1 -0
  498. package/dist/webcomponents/p-c874ca2b.entry.js +1 -0
  499. package/dist/webcomponents/p-caac63bf.entry.js +1 -0
  500. package/dist/webcomponents/p-cbc96430.entry.js +1 -0
  501. package/dist/webcomponents/{p-5e10aa65.entry.js → p-d46dbb83.entry.js} +1 -1
  502. package/dist/webcomponents/p-d72e8541.entry.js +1 -0
  503. package/dist/webcomponents/{p-14d66df2.entry.js → p-dc1efbab.entry.js} +1 -1
  504. package/dist/webcomponents/p-eP3fmhta.js +1 -0
  505. package/dist/webcomponents/{p-9c5b0b94.entry.js → p-ecd9f0e9.entry.js} +1 -1
  506. package/dist/webcomponents/p-f13ae573.entry.js +1 -0
  507. package/dist/webcomponents/{p-c5b48e8d.entry.js → p-f1cba43c.entry.js} +1 -1
  508. package/dist/webcomponents/p-f4c4c248.entry.js +1 -0
  509. package/dist/webcomponents/p-f680e617.entry.js +1 -0
  510. package/dist/webcomponents/{p-98579723.entry.js → p-fb228106.entry.js} +1 -1
  511. package/dist/webcomponents/{p-f4645aef.entry.js → p-fd4ffaa2.entry.js} +1 -1
  512. package/dist/webcomponents/{p-BisQ61nK.js → p-qWQmu-fb.js} +1 -1
  513. package/dist/webcomponents/p-sw5RO19U.js +1 -0
  514. package/dist/webcomponents/p-uY_jN8Gg.js +1 -0
  515. package/dist/webcomponents/webcomponents.esm.js +1 -1
  516. package/package.json +1 -1
  517. package/dist/cjs/justifi-checkout-summary_6.cjs.entry.js +0 -698
  518. package/dist/cjs/terminals-list-params-state-BNbT1fuJ.js +0 -22
  519. package/dist/esm/justifi-checkout-summary_6.entry.js +0 -691
  520. package/dist/esm/terminals-list-params-state-SMXQIZTt.js +0 -16
  521. package/dist/webcomponents/p-0cab7d5d.entry.js +0 -1
  522. package/dist/webcomponents/p-0e287092.entry.js +0 -1
  523. package/dist/webcomponents/p-145bb9c4.entry.js +0 -1
  524. package/dist/webcomponents/p-1975406a.entry.js +0 -1
  525. package/dist/webcomponents/p-1ffbf771.entry.js +0 -1
  526. package/dist/webcomponents/p-2a59547b.entry.js +0 -1
  527. package/dist/webcomponents/p-2da63719.entry.js +0 -1
  528. package/dist/webcomponents/p-35bbfbf8.entry.js +0 -1
  529. package/dist/webcomponents/p-43d693a3.entry.js +0 -1
  530. package/dist/webcomponents/p-4ae2a0b9.entry.js +0 -1
  531. package/dist/webcomponents/p-4b795b77.entry.js +0 -1
  532. package/dist/webcomponents/p-53c81d62.entry.js +0 -1
  533. package/dist/webcomponents/p-5477c449.entry.js +0 -1
  534. package/dist/webcomponents/p-5rVtZ2GJ.js +0 -1
  535. package/dist/webcomponents/p-614fcef6.entry.js +0 -1
  536. package/dist/webcomponents/p-70ff3b10.entry.js +0 -1
  537. package/dist/webcomponents/p-739d6f13.entry.js +0 -1
  538. package/dist/webcomponents/p-7WIgS5RM.js +0 -1
  539. package/dist/webcomponents/p-7b9008f1.entry.js +0 -1
  540. package/dist/webcomponents/p-84ce3bae.entry.js +0 -1
  541. package/dist/webcomponents/p-8a5e168d.entry.js +0 -1
  542. package/dist/webcomponents/p-8f31a0c5.entry.js +0 -1
  543. package/dist/webcomponents/p-9ccd19f5.entry.js +0 -1
  544. package/dist/webcomponents/p-9f289c31.entry.js +0 -1
  545. package/dist/webcomponents/p-BC8YDY7M.js +0 -1
  546. package/dist/webcomponents/p-BF-uL8B4.js +0 -1
  547. package/dist/webcomponents/p-BVD7g3cE.js +0 -1
  548. package/dist/webcomponents/p-Bt388eye.js +0 -1
  549. package/dist/webcomponents/p-C1fMfnu0.js +0 -1
  550. package/dist/webcomponents/p-CCME-fyU.js +0 -1
  551. package/dist/webcomponents/p-CLwzqWk2.js +0 -1
  552. package/dist/webcomponents/p-CVQyw7ao.js +0 -1
  553. package/dist/webcomponents/p-C_CXv7AN.js +0 -1
  554. package/dist/webcomponents/p-CwZKT93w.js +0 -1
  555. package/dist/webcomponents/p-D599ZMGU.js +0 -1
  556. package/dist/webcomponents/p-DaDsBt65.js +0 -1
  557. package/dist/webcomponents/p-JgbsbAhz.js +0 -1
  558. package/dist/webcomponents/p-UD2JhYS2.js +0 -1
  559. package/dist/webcomponents/p-WEguiGt1.js +0 -1
  560. package/dist/webcomponents/p-a33ea645.entry.js +0 -1
  561. package/dist/webcomponents/p-b93377a7.entry.js +0 -1
  562. package/dist/webcomponents/p-ba018d57.entry.js +0 -1
  563. package/dist/webcomponents/p-bafe873d.entry.js +0 -1
  564. package/dist/webcomponents/p-be06d86a.entry.js +0 -1
  565. package/dist/webcomponents/p-c5dabaf4.entry.js +0 -1
  566. package/dist/webcomponents/p-cea8e40e.entry.js +0 -1
  567. package/dist/webcomponents/p-d7720819.entry.js +0 -1
  568. package/dist/webcomponents/p-df4f2af9.entry.js +0 -1
  569. package/dist/webcomponents/p-e1ba5735.entry.js +0 -1
  570. package/dist/webcomponents/p-e2267656.entry.js +0 -1
  571. package/dist/webcomponents/p-e4e30e84.entry.js +0 -1
  572. package/dist/webcomponents/p-e81c5d79.entry.js +0 -1
  573. package/dist/webcomponents/p-f200cbda.entry.js +0 -1
  574. package/dist/webcomponents/p-f7345d66.entry.js +0 -1
  575. package/dist/webcomponents/p-fd39af50.entry.js +0 -1
  576. package/dist/webcomponents/p-pska2q1M.js +0 -1
  577. package/dist/webcomponents/p-qMrd7_Gp.js +0 -1
  578. package/dist/webcomponents/p-vRhNRfmB.js +0 -1
  579. package/dist/webcomponents/p-zrUQD0Wr.js +0 -1
@@ -1 +1 @@
1
- import{r as s,h as t}from"./p-kpoIU4v_.js";import{E as a}from"./p-DO3INvI2.js";import"./p-CfF8KKwx.js";const e=class{constructor(t){s(this,t)}render(){return t("div",{key:"3c1c4e729711c6676c176a5a04228ec7ebb7acfa"},this.errorMessage?a(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{e as justifi_details}
1
+ import{r as s,h as t}from"./p-Bn7inNWG.js";import{E as a}from"./p-DNo0OPOP.js";import"./p-RvUQ__Pq.js";const i=class{constructor(t){s(this,t)}render(){return t("div",{key:"3c1c4e729711c6676c176a5a04228ec7ebb7acfa"},this.errorMessage?a(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{i as justifi_details}
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as i}from"./p-Bn7inNWG.js";import{A as n}from"./p-BPtcGAzB.js";import{S as s}from"./p-DxqCFDtF.js";import"./p-CZfYo5-1.js";import{S as a}from"./p-CaAVuW6B.js";import{c as o,o as r}from"./p-DAED83Ew.js";import"./p-DhGNCW2f.js";import"./p-CpaS1Lex.js";import"./p-zdIeCUeh.js";import"./p-HXpYMWUU.js";import"./p-RvUQ__Pq.js";var p,c,l,h;!function(t){t.STATUS_SUCCESS="STATUS_SUCCESS",t.STATUS_FAILURE="STATUS_FAILURE"}(p||(p={})),function(t){t.PLAIN="plain",t.BUY="buy",t.SET_UP="set-up",t.DONATE="donate",t.CHECK_OUT="check-out",t.BOOK="book",t.SUBSCRIBE="subscribe"}(c||(c={})),function(t){t.BLACK="black",t.WHITE="white",t.WHITE_OUTLINE="white-outline"}(l||(l={})),function(t){t.SUPPORTS_3DS="supports3DS",t.SUPPORTS_EMV="supportsEMV",t.SUPPORTS_CREDIT="supportsCredit",t.SUPPORTS_DEBIT="supportsDebit"}(h||(h={}));class d{constructor(t){this.merchantIdentifier=t.merchantIdentifier,this.displayName=t.displayName,this.initiative=t.initiative,this.initiativeContext=t.initiativeContext,this.buttonType=t.buttonType||c.PLAIN,this.buttonStyle=t.buttonStyle||l.BLACK,this.buttonLocale=t.buttonLocale||"en-US"}get isValid(){return!!(this.merchantIdentifier&&this.displayName&&this.initiative&&this.initiativeContext)}}class u{constructor(t){this.countryCode=t.countryCode,this.currencyCode=t.currencyCode,this.merchantCapabilities=t.merchantCapabilities,this.supportedNetworks=t.supportedNetworks,this.total=t.total,this.lineItems=t.lineItems,this.shippingMethods=t.shippingMethods,this.applicationData=t.applicationData,this.supportedCountries=t.supportedCountries}get isValid(){var t,e,i,n;return!!(this.countryCode&&this.currencyCode&&(null===(t=this.merchantCapabilities)||void 0===t?void 0:t.length)&&(null===(e=this.supportedNetworks)||void 0===e?void 0:e.length)&&(null===(i=this.total)||void 0===i?void 0:i.label)&&(null===(n=this.total)||void 0===n?void 0:n.amount))}}class y{static isApplePaySupported(){var t;return"undefined"!=typeof window&&"ApplePaySession"in window&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.supportsVersion(3))}static canMakePayments(){var t;return this.isApplePaySupported()&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.canMakePayments())||!1}static async canMakePaymentsWithActiveCard(t){var e;if(!this.isApplePaySupported())return!1;try{return await(null===(e=window.ApplePaySession)||void 0===e?void 0:e.canMakePaymentsWithActiveCard(t))||!1}catch(t){return console.error("Error checking Apple Pay active card:",t),!1}}static formatAmount(t){return(t/100).toFixed(2)}static parseAmount(t){return Math.round(100*parseFloat(t))}static createLineItem(t,e,i="final"){return{label:t,amount:this.formatAmount(e),type:i}}static getDefaultSupportedNetworks(){return["amex","discover","masterCard","visa"]}static getDefaultMerchantCapabilities(){return[h.SUPPORTS_3DS,h.SUPPORTS_EMV,h.SUPPORTS_CREDIT,h.SUPPORTS_DEBIT]}}class b{constructor(){this.api=n()}initialize(t){if(this.applePayConfig=new d(t),!this.applePayConfig.isValid)throw new Error("Invalid Apple Pay configuration provided")}async validateMerchant(t,e){try{return await this.api.post({endpoint:"apple_pay/merchant_session",authToken:t,headers:{"Sub-Account":e}})}catch(t){throw console.error("Backend validation failed:",t),new Error("Merchant validation failed")}}async processPayment(t,e,i){const n=await this.api.post({endpoint:"apple_pay/process_token",authToken:t,body:i,headers:{"Sub-Account":e}});return{success:n.id&&!!n.data.token,data:n}}isAvailable(){return y.isApplePaySupported()&&y.canMakePayments()}async canMakePaymentsWithActiveCard(){if(!this.applePayConfig)throw new Error("Apple Pay not initialized. Call initialize() first.");return await y.canMakePaymentsWithActiveCard(this.applePayConfig.merchantIdentifier)}async startPaymentSession(t,e,i){if(!this.applePayConfig)throw new Error("Apple Pay not initialized. Call initialize() first.");const n=new u(t);if(!n.isValid)throw new Error("Invalid payment request provided");return this.currentPaymentRequest=n,new Promise(((t,s)=>{try{this.currentSession=new window.ApplePaySession(3,n),this.setupSessionEventHandlers(t,s,e,i),this.currentSession.begin()}catch(t){s({success:!1,error:{code:"SESSION_ERROR",message:t instanceof Error?t.message:"Failed to start Apple Pay session"}})}}))}abortPaymentSession(){this.currentSession&&(this.currentSession.abort(),this.currentSession=void 0,this.currentPaymentRequest=void 0)}setupSessionEventHandlers(t,e,i,n){this.currentSession&&this.applePayConfig&&this.currentPaymentRequest&&(this.currentSession.onvalidatemerchant=async()=>{try{if(!i)throw new Error("Authentication token not provided.");const t=await this.validateMerchant(i,n);try{this.currentSession.completeMerchantValidation(t)}catch(t){throw console.error("Error calling completeMerchantValidation:",t),t}}catch(t){console.error("=== MERCHANT VALIDATION ERROR ==="),console.error("Error during merchant validation:",t),console.error("Error stack:",t.stack),this.currentSession.abort(),e({success:!1,error:{code:"MERCHANT_VALIDATION_ERROR",message:t instanceof Error?t.message:"Merchant validation failed"}})}},this.currentSession.onpaymentauthorized=async s=>{try{const a=s.payment,o=Object.assign(Object.assign({},a.token),{product_details:{name:this.currentPaymentRequest.total.label,price:y.parseAmount(this.currentPaymentRequest.total.amount),description:this.currentPaymentRequest.total.label}}),r=await this.processPayment(i,n,o);r.success?(this.currentSession.completePayment({status:p.STATUS_SUCCESS}),t({success:!0,token:a.token,paymentMethodId:r.data.id})):(console.error("PSP reported payment failure:",r.data),this.currentSession.completePayment({status:p.STATUS_FAILURE}),e({success:!1,error:{code:"PAYMENT_PROCESSING_ERROR",message:"Payment processing failed"}}))}catch(t){console.error("=== PAYMENT PROCESSING ERROR ==="),console.error("Error processing payment:",t),console.error("Error stack:",t.stack),this.currentSession.completePayment({status:p.STATUS_FAILURE}),e({success:!1,error:{code:"PAYMENT_PROCESSING_ERROR",message:t instanceof Error?t.message:"Payment processing failed"}})}finally{this.currentSession=void 0,this.currentPaymentRequest=void 0}},this.currentSession.onpaymentmethodselected=()=>{const t={newTotal:this.currentPaymentRequest.total,newLineItems:this.currentPaymentRequest.lineItems||[]};try{this.currentSession.completePaymentMethodSelection(t)}catch(t){console.error("Error completing payment method selection:",t),this.currentSession.abort()}},this.currentSession.onshippingmethodselected=()=>{this.currentSession.completeShippingMethodSelection({status:p.STATUS_SUCCESS,newTotal:this.currentPaymentRequest.total,newLineItems:this.currentPaymentRequest.lineItems||[]})},this.currentSession.oncancel=t=>{if(t.sessionError)switch(console.error(t.sessionError),t.sessionError.code){case"unknown":console.error("Unknown error - likely merchant validation issue"),console.error("This usually means:"),console.error("1. Merchant certificate is invalid or expired"),console.error("2. Merchant identifier mismatch"),console.error("3. Backend validation endpoint issues");break;case"invalidMerchantSession":console.error("Invalid merchant session provided"),console.error("Check that the merchant session from backend is valid");break;case"userCancel":console.error("User cancelled the payment");break;default:console.error("Other error code:",t.sessionError.code)}this.currentSession=void 0,this.currentPaymentRequest=void 0,e({success:!1,error:{code:"USER_CANCELLED",message:"User cancelled the Apple Pay session"}})},"onerror"in this.currentSession&&(this.currentSession.onerror=t=>{console.error("=== APPLE PAY SESSION ERROR ==="),console.error("Session error:",t),this.currentSession=void 0,this.currentPaymentRequest=void 0,e({success:!1,error:{code:"SESSION_ERROR",message:"Apple Pay session error occurred"}})}))}static createPaymentRequest(t,e,i="US",n="USD"){return{countryCode:i,currencyCode:n,merchantCapabilities:y.getDefaultMerchantCapabilities(),supportedNetworks:y.getDefaultSupportedNetworks(),total:y.createLineItem(e,t)}}getApplePayConfig(){return this.applePayConfig}}const f=e=>{const{isReady:i}=e;return i?null:t("div",{class:"container-fluid p-0"},t("div",{class:"row mb-3"},t("div",{class:"col-12 align-content-center"},t(a,{height:"44px",width:"100%",styles:{borderRadius:"8px"}}))))},m=e=>t("div",{class:"apple-pay-button-container"},t("button",Object.assign({class:(()=>{let t="apple-pay-button";switch(e.buttonStyle){case l.WHITE:t+=" apple-pay-button-white";break;case l.WHITE_OUTLINE:t+=" apple-pay-button-white-outline";break;default:t+=" apple-pay-button-black"}switch(e.buttonType){case c.BUY:t+=" apple-pay-button-type-buy";break;case c.DONATE:t+=" apple-pay-button-type-donate";break;default:t+=" apple-pay-button-type-plain"}return(e.disabled||e.isProcessing||!e.isAvailable)&&(t+=" disabled"),t})(),style:{width:e.width||"200px",height:e.height||"48px"},onClick:()=>{!e.disabled&&!e.isProcessing&&e.isAvailable&&e.clickHandler&&e.clickHandler()},disabled:e.disabled||e.isProcessing||!e.isAvailable,"aria-label":"Pay with Apple Pay",type:"button"},e),e.isProcessing&&t("div",{class:"processing-overlay"},t("div",{class:"spinner"}),t("span",null,"Processing..."))),t("style",null,"\n .apple-pay-button-container {\n display: inline-block;\n position: relative;\n }\n\n /* Apple Pay CSS classes - these are the official Apple Pay button styles */\n .apple-pay-button {\n display: inline-block;\n -webkit-appearance: -apple-pay-button;\n -apple-pay-button-type: plain; /* default */\n -apple-pay-button-style: black; /* default */\n border-radius: 8px;\n cursor: pointer;\n border: none;\n outline: none;\n transition: opacity 0.2s ease;\n position: relative;\n }\n\n /* Button styles */\n .apple-pay-button.apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n\n .apple-pay-button.apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n\n .apple-pay-button.apple-pay-button-white-outline {\n -apple-pay-button-style: white-outline;\n }\n\n /* Button types */\n .apple-pay-button.apple-pay-button-type-plain {\n -apple-pay-button-type: plain;\n }\n\n .apple-pay-button.apple-pay-button-type-buy {\n -apple-pay-button-type: buy;\n }\n\n .apple-pay-button.apple-pay-button-type-donate {\n -apple-pay-button-type: donate;\n }\n\n /* Hover and disabled states */\n .apple-pay-button:hover:not(.disabled) {\n opacity: 0.9;\n }\n\n .apple-pay-button.disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n /* Processing overlay */\n .processing-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n background: rgba(0, 0, 0, 0.8);\n color: white;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n }\n\n .spinner {\n width: 16px;\n height: 16px;\n border: 2px solid rgba(255, 255, 255, 0.3);\n border-top: 2px solid #fff;\n border-radius: 50%;\n animation: spin 1s linear infinite;\n }\n\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n\n /* Responsive design */\n @media (max-width: 480px) {\n .apple-pay-button {\n width: 100% !important;\n min-width: 200px;\n }\n }\n ")),v=class{constructor(t){e(this,t),this.applePayStarted=i(this,"applePayStarted"),this.applePayCompleted=i(this,"applePayCompleted"),this.applePayCancelled=i(this,"applePayCancelled"),this.applePayError=i(this,"applePayError"),this.countryCode="US",this.merchantIdentifier="merchant.com.staging-justifi.checkout-dev",this.merchantDisplayName="JustiFi Checkout",this.initiativeContext="dev-checkout.justifi-staging.com",this.buttonType=c.PLAIN,this.buttonStyle=l.BLACK,this.disabled=!1,this.showSkeleton=!0,this.isLoading=!0,this.isProcessing=!1,this.isAvailable=!1,this.canMakePayments=!1,this.error=null,this.handleApplePayClick=async()=>{var t;if(!this.isProcessing&&!this.disabled&&this.isAvailable)try{this.isProcessing=!0,this.error=null,this.applePayStarted.emit();const e={countryCode:this.countryCode,currencyCode:o.paymentCurrency,merchantCapabilities:y.getDefaultMerchantCapabilities(),supportedNetworks:y.getDefaultSupportedNetworks(),total:y.createLineItem(o.paymentDescription,o.paymentAmount)},i=await this.applePayService.startPaymentSession(e,o.authToken,o.accountId);i.success?this.applePayCompleted.emit({success:!0,token:i.token,paymentMethodId:i.paymentMethodId}):(this.applePayCompleted.emit({success:!1,error:i.error}),this.applePayError.emit({error:(null===(t=i.error)||void 0===t?void 0:t.message)||"Payment failed"}))}catch(t){console.error("Apple Pay payment error:",t);const e=t instanceof Error?t.message:"Payment failed";this.error=e,this.applePayError.emit({error:e}),this.applePayCompleted.emit({success:!1,error:e})}finally{this.isProcessing=!1}}}componentWillLoad(){this.applePayService=new b,this.initializeApplePay()}componentDidLoad(){r("paymentAmount",(()=>{this.initializeApplePay()})),r("authToken",(()=>{this.initializeApplePay()}))}watchPropsChange(){this.initializeApplePay()}async initializeApplePay(){try{if(this.isLoading=!0,this.error=null,!o.paymentAmount)return this.error="Missing required Apple Pay configuration",void(this.isLoading=!1);if(this.isAvailable=y.isApplePaySupported(),this.canMakePayments=y.canMakePayments(),!this.isAvailable)return this.error="Apple Pay is not supported on this device",void(this.isLoading=!1);if(!this.canMakePayments)return this.error="Apple Pay is not available",void(this.isLoading=!1);this.applePayService.initialize({merchantIdentifier:this.merchantIdentifier,displayName:this.merchantDisplayName,initiative:"web",initiativeContext:this.initiativeContext,buttonType:this.buttonType,buttonStyle:this.buttonStyle}),await this.applePayService.canMakePaymentsWithActiveCard()||console.warn("No Apple Pay cards available, but continuing...")}catch(t){console.error("Apple Pay initialization error:",t),this.error=t instanceof Error?t.message:"Failed to initialize Apple Pay"}finally{this.isLoading=!1}}async isSupported(){return this.isAvailable&&this.canMakePayments}async getPaymentMethods(){return this.isAvailable?y.getDefaultSupportedNetworks():[]}async abort(){this.applePayService.abortPaymentSession(),this.isProcessing=!1,this.applePayCancelled.emit()}render(){const e=!this.isLoading&&this.isAvailable&&this.canMakePayments&&!this.error;return t(s,{key:"d07bd5b228a761fe021830823b410805b44c6829"},t("script",{key:"59ca72df49c6210c3122df6328e3b9798ff3440f",async:!0,src:"https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js"}),t("div",{key:"69010db6e3e59ffb1ad9d7cc5af0680934c61207",class:"apple-pay-container"},t(f,{key:"f25d2ae58d6730c9dbf9a02ac14cf5800e3ca6ed",isReady:e}),!this.isLoading&&this.error&&t("div",{key:"0460b10f967df69f04984c17b6b1641db3dfd582",class:"apple-pay-error",role:"alert"},t("span",{key:"a194317367175498c098c522cc2ee77ae0848e25",class:"error-icon"},"⚠️"),t("span",{key:"8eb5cb96fb00f2deb9b76796d09979d488f5d922",class:"error-message"},this.error)),!this.isLoading&&!this.error&&!this.isAvailable&&t("div",{key:"97fd0863a893a98b01b9886dc94a088cb87419e4",class:"apple-pay-unavailable"},t("span",{key:"fde1d32be78fc35024bea1c4f81b02a9d792b41e",class:"unavailable-message"},"Apple Pay is not available on this device")),!this.isLoading&&!this.error&&this.isAvailable&&this.canMakePayments&&t(m,{key:"1e445d7b72f378f7bac6f62e069a526f1d9ae9ba",buttonType:this.buttonType,buttonStyle:this.buttonStyle,disabled:this.disabled,isProcessing:this.isProcessing,isAvailable:this.isAvailable,clickHandler:this.handleApplePayClick})),t("style",{key:"d552fd4b0726a63ed9a242b3b2204dc6339ef590"},"\n .apple-pay-container {\n width: 100%;\n }\n\n .apple-pay-error {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px;\n background: #fef2f2;\n border: 1px solid #fecaca;\n border-radius: 8px;\n color: #dc2626;\n font-size: 14px;\n }\n\n .apple-pay-unavailable {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 12px;\n background: #f9fafb;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n color: #6b7280;\n font-size: 14px;\n }\n\n .error-icon {\n font-size: 16px;\n }\n "))}static get watchers(){return{merchantIdentifier:["watchPropsChange"],buttonType:["watchPropsChange"],buttonStyle:["watchPropsChange"],disabled:["watchPropsChange"]}}};export{v as justifi_apple_pay}
@@ -1 +1 @@
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-DWOKxG7j.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 as j}from"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{g as x,a as g}from"./p-D2muobcE.js";import{T as y}from"./p-DWUnL_zj.js";import{j as b}from"./p-zdIeCUeh.js";import"./p-BF-uL8B4.js";import"./p-I8XpD1TX.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-7WIgS5RM.js";const S=()=>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(S,null)),C=()=>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?j.boardingShipping:j.boardingOnly}),n(),this.analytics=new a(this),this.loadData()}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}handleError(i,s,t){this.error={message:i,code:s,severity:t},this.errorEvent.emit({errorCode:s,message:i,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",c.MISSING_PROPS,h.ERROR)}initializeGetBusiness(){p({id:this.businessId,authToken:this.authToken,service:new u})({onSuccess:({business:i})=>{this.business=new v(i),this.loading.business=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,n;try{const a=await t.fetchTerminalModels(i,s);if(a.error)return r({error:g(a.error),code:x(null===(n=a.error)||void 0===n?void 0:n.code),severity:h.ERROR});e({terminals:(null===(l=null===(o=a.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((i=>new f(i))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=x(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new y})({onSuccess:({terminals:i,orderLimit:s})=>{this.terminalModels=i,this.orderLimit=s,this.loading.terminals=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.terminals=!1}})}submitOrder(){const i=(({authToken:i,service:s,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await s.orderTerminals(i,e,t);if(d.error)return o({error:g(d.error),code:x(null===(l=d.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:i}=d;r({data:i})}}catch(i){const s=x(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new y});this.submitting=!0,i({terminalOrder:this.order.payload,onSuccess:({data:i})=>{this.submitted.emit(i),this.submitting=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.submitting=!1}})}onSelectedQuantityChange(i){this.order.updateTerminal(i.detail.modelName,i.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return i("div",null,this.loading.business&&i(k,null),this.loading.terminals&&i("div",{class:"mt-5"},i(C,null),i(C,null),i(C,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,b(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:"866ce6548ba7252581c370fc33cad23e6a302f4e"},i("div",{key:"2fbdde66e65ac95347a6b50e60f258a8e814e3ab",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{D as justifi_order_terminals}
1
+ import{h as i,r as s,c as t}from"./p-Bn7inNWG.js";import{al as e,ai as r,ae as o,z as l}from"./p-RvUQ__Pq.js";import{S as d}from"./p-DxqCFDtF.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-bjogwLgt.js";import{C as h,a as c}from"./p-Cjcsf8ku.js";import{B as u}from"./p-0mMX1Zv4.js";import{B as v}from"./p-BlJnA265.js";import{m as p}from"./p-DH8F0bsw.js";import{S as m}from"./p-CaAVuW6B.js";import"./p-DhGNCW2f.js";import"./p-HXpYMWUU.js";import{i as f,h as w,b as j}from"./p-BP7op0vq.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{g as b,a as g}from"./p-D2muobcE.js";import{T as x}from"./p-Bu1jU017.js";import{j as y}from"./p-zdIeCUeh.js";import"./p-uY_jN8Gg.js";import"./p-BPtcGAzB.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-CpaS1Lex.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%"}))),C=()=>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)))))),k=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?j.boardingShipping:j.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:b(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=b(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:b(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=b(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(C,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,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:"e4db746dd7e5e4fcd2836957a91bf1a4d85b875c"},i("div",{key:"08e8950e36bf787a2747b33da377be1f60c6d40a",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{k as justifi_order_terminals}
@@ -0,0 +1 @@
1
+ import{h as t,r as s,c as i}from"./p-Bn7inNWG.js";import{A as e}from"./p-BPtcGAzB.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import"./p-BP7op0vq.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{c,J as l}from"./p-bjogwLgt.js";import{c as h}from"./p-DAED83Ew.js";import{p as d,f as p,r as u,h as v}from"./p-zdIeCUeh.js";import{v as m,i as y,a as f,H as j}from"./p-B71k50jz.js";import{z as _,A as g}from"./p-RvUQ__Pq.js";import{S as C}from"./p-DxqCFDtF.js";import"./p-CZfYo5-1.js";import{S as k}from"./p-CaAVuW6B.js";import"./p-DhGNCW2f.js";import"./p-CpaS1Lex.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-uY_jN8Gg.js";import"./p-HXpYMWUU.js";const w=e();class b{async fetchQuote(t,s){return w.post({endpoint:"insurance/quotes",body:s,authToken:t})}async toggleCoverage(t,s,i){return w.post({endpoint:`insurance/quotes/${s}/toggle`,body:i,authToken:t})}}const T=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(k,{width:"35%",height:"30px"})),t("div",{class:"col-12"},t(k,{width:"70%"})),t("div",{class:"col-12"},t(k,{width:"40%"})),t("div",{class:"col-12"},t(k,{width:"40%"})),t("div",{class:"col-12"},t(k,{width:"100%"})),t("div",{class:"col-12"},t(k,{width:"80%"}))),q=class{constructor(t){s(this,t),this.insuranceUpdated=i(this,"insurance-updated"),this.errorEvent=i(this,"error-event"),this.isLoading=!0}async validate(){return m()}processHTMLContent(t){return d(t,[t=>u(t,"style"),t=>v(t,"a","part",_),t=>v(t,"p","part",_)])}componentWillLoad(){c(),this.analytics=new l(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeServiceMethods(){const t=this.authToken||h.authToken;if(!t)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const s={authToken:t,service:new b};this.getQuote=(({authToken:t,service:s})=>async({payload:i,onSuccess:e,onError:o})=>{var c;try{const l=await s.fetchQuote(t,i);if(l.error)return o({error:n(l.error),code:a(null===(c=l.error)||void 0===c?void 0:c.code),severity:r.ERROR});e({quote:l.data})}catch(t){const s=a(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:r.ERROR})}})(s),this.toggleCoverage=(({authToken:t,service:s})=>async({quoteId:i,payload:e,onSuccess:o,onError:c})=>{var l;try{const h=await s.toggleCoverage(t,i,e);if(h.error)return c({error:n(h.error),code:a(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(t){const s=a(null==t?void 0:t.code);return c({error:t.message||t,code:s,severity:r.ERROR})}})(s)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||h.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:t})=>{this.quote=t,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),y[t.policy_type]=t.accepted,this.isLoading=!1},onError:({error:t,code:s,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}onChangeHandler(t,s){this.accepted=s,f[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),y[this.quote.policy_type]=this.accepted},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}get error(){var t;return f[null===(t=this.quote)||void 0===t?void 0:t.policy_type]}render(){var s,i,e,r;return h&&!1===h.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):t(C,null,this.isLoading?t(T,null):t("div",null,t(j,{text:null===(s=this.quote)||void 0===s?void 0:s.product.title,class:"fs-5 fw-bold pb-3"}),t("small",{part:_,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),t("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:g},"Please select an option"),t("small",{part:_,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{q as justifi_season_interruption_insurance}
@@ -1 +1 @@
1
- import{r as t,c as s,h as e}from"./p-kpoIU4v_.js";import{D as i}from"./p-Bg2SZArf.js";import{D as r,a as o}from"./p-BH0Xfn-F.js";const h=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event"),this.isLoading=!0,this.showDisputeResponseForm=!1}disputeResponseHandler(t){t.detail.name===i.respondToDispute&&(this.showDisputeResponseForm=!0),t.detail.name===i.cancelDispute&&(this.showDisputeResponseForm=!1)}disputeSubmittedHandler(){this.fetchData()}componentWillLoad(){this.getDispute&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.isLoading=!0,this.getDispute({onSuccess:({dispute:t})=>{this.dispute=new r(t),this.isLoading=!1,this.dispute.status!==o.needsResponse&&(this.showDisputeResponseForm=!1)},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.isLoading=!1}})}render(){return e("div",{key:"6374c478bc8907019b48e1a53b0ecb2e171ab2e4"},this.showDisputeResponseForm?e("justifi-dispute-response",{disputeId:this.disputeId,disputeResponse:this.dispute.dispute_response,authToken:this.authToken}):e("justifi-dispute-notification",{dispute:this.dispute,authToken:this.authToken,isLoading:this.isLoading}))}static get watchers(){return{getDispute:["updateOnPropChange"]}}};export{h as justifi_dispute_management_core}
1
+ import{r as t,c as s,h as e}from"./p-Bn7inNWG.js";import{D as i}from"./p-Bg2SZArf.js";import{D as r,a as h}from"./p-BH0Xfn-F.js";const o=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event"),this.isLoading=!0,this.showDisputeResponseForm=!1}disputeResponseHandler(t){t.detail.name===i.respondToDispute&&(this.showDisputeResponseForm=!0),t.detail.name===i.cancelDispute&&(this.showDisputeResponseForm=!1)}disputeSubmittedHandler(){this.fetchData()}componentWillLoad(){this.getDispute&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.isLoading=!0,this.getDispute({onSuccess:({dispute:t})=>{this.dispute=new r(t),this.isLoading=!1,this.dispute.status!==h.needsResponse&&(this.showDisputeResponseForm=!1)},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.isLoading=!1}})}render(){return e("div",{key:"b5a802e8c418b3b7f3235f43260186084a6ee079"},this.showDisputeResponseForm?e("justifi-dispute-response",{disputeId:this.disputeId,disputeResponse:this.dispute.dispute_response,authToken:this.authToken}):e("justifi-dispute-notification",{dispute:this.dispute,authToken:this.authToken,isLoading:this.isLoading}))}static get watchers(){return{getDispute:["updateOnPropChange"]}}};export{o as justifi_dispute_management_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e,H as a}from"./p-Bn7inNWG.js";import{a3 as i,a4 as h,a5 as r,a6 as o,a7 as c,l as f}from"./p-RvUQ__Pq.js";const n=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.inputHandler(s,this.value),this.formControlInput.emit({name:s,value:this.value})}}get part(){return this.errorText?i:this.isFocused&&this.checked?h:this.checked?r:this.isFocused?o:c}render(){return e(a,{key:"c22f0df594e14c5095be415fe80df4ecae7aa6b4",class:"form-group d-flex flex-column"},e("div",{key:"dc2f63fa23042176825ab3b0617419f3445da972",class:"form-check"},e("input",{key:"48fe6f95a43e90393bace948455ab87f83a5bb51",ref:t=>this.radioElement=t,type:"radio",id:`${this.name}-${this.value}`,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onChange:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,value:this.value,checked:this.checked}),e("label",{key:"501ca93d655605a6b2f16d2598a6e601315de97f",class:"form-check-label",htmlFor:`${this.name}-${this.value}`,part:f},this.label)),e("form-control-help-text",{key:"711f8f1eec58731d7925ef8fe0912dcd37542bbe",helpText:this.helpText,name:this.name}),e("form-control-error-text",{key:"a62e4bbcf9c5faae63f17c49f5fc2c431395cbe9",errorText:this.errorText,name:this.name}))}};export{n as form_control_radio}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as e,H as i}from"./p-Bn7inNWG.js";import{Z as a,_ as c,$ as h,a0 as r,a1 as o,l as d}from"./p-RvUQ__Pq.js";import{F as f}from"./p-Dgflaz6J.js";import{F as n}from"./p-BfM6X7lF.js";import"./p-CZfYo5-1.js";const l=class{constructor(e){s(this,e),this.formControlInput=t(this,"formControlInput"),this.formControlBlur=t(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=s=>{s.preventDefault();const t=s.target,e=t.getAttribute("name");this.inputHandler(e,t.checked),this.formControlInput.emit({name:e,value:t.value})},this.updateInput=s=>{this.checkboxElement.checked=s}}get part(){return this.errorText?a:this.isFocused&&this.checked?c:this.isFocused?h:this.checked?r:o}render(){return e(i,{key:"128a949dbbbf194f13552ec2b6d9cc47e643459a"},e("div",{key:"24fdfab17ddc656c7ed4ce4a26298bb3312b84b5",class:"form-group d-flex flex-column"},e("div",{key:"d66bc9dd8ec3018e934d4279cfc78073e1529ddb",class:"form-check"},e("input",{key:"754d00dbfa79b34ba919d12ecaf6f69114c92a37",ref:s=>this.checkboxElement=s,type:"checkbox",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,checked:this.checked}),e("label",{key:"07928f06ba16f3871948610d8c043de985cb9810",class:"form-check-label",htmlFor:this.name,part:d},this.label)),e(f,{key:"83976d5d65b37aa34e41879f0db3347a8902b7d7",helpText:this.helpText,name:this.name}),e(n,{key:"3a4e23a3e9f174d51683518608e2568e0edc72e2",errorText:this.errorText,name:this.name})))}};export{l as form_control_checkbox}
@@ -0,0 +1 @@
1
+ import{h as e,r as t,c as a}from"./p-Bn7inNWG.js";import{d,b as s,s as i}from"./p-zdIeCUeh.js";import{M as c}from"./p-Bb-6bNcq.js";import{a as f,b as l,D as b,c as h,C as r,E as o}from"./p-DNo0OPOP.js";import{S as y}from"./p-DxqCFDtF.js";import"./p-CZfYo5-1.js";import{S as n}from"./p-CaAVuW6B.js";import{a as p,B as v}from"./p-DDUmOl3v.js";import"./p-HXpYMWUU.js";import"./p-RvUQ__Pq.js";const u=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(n,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(n,{width:"70%"})),e("div",{class:"col-12"},e(n,{width:"40%"})),e("div",{class:"col-12"},e(n,{width:"40%"})),e("div",{class:"col-12"},e(n,{width:"100%"})),e("div",{class:"col-12"},e(n,{width:"80%"}))),k=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event"),this.loading=!0}componentWillLoad(){this.getPaymentDetails&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.errorMessage=null},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:t,message:e,severity:a})},final:()=>{this.loading=!1}})}render(){return e(y,{key:"179fd1067e83c53a1d8fec1f44a5130aa2da38b8"},this.loading&&e(u,{key:"fae995a103762304141f5d64309c43706f159981"}),!this.loading&&this.errorMessage&&o(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"460fd7199e7fd55594a032268112276fd318f8af","error-message":this.errorMessage},e(f,{key:"bab7c0ec6254e8e1aabaa7b09ead4a123bec712c",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},c(this.payment.status),this.payment.expedited?e(p,{variant:v.WARNING,title:"Expedited",text:"Expedited"}):null),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(l,{key:"99f5be6e04b83a6cd308f8dfd853ef93a27b1ac0",classes:"border-1 border-end",title:"Updated At",value:`${d(this.payment.updated_at)} ${s(this.payment.updated_at)}`}),e(l,{key:"4aa2bf20c48a9b3fc211f8cedf938dbdf55720b6",classes:"border-1 border-end",title:"Created At",value:`${d(this.payment.created_at)} ${s(this.payment.created_at)}`}),e(l,{key:"c61b0d9bc351221b7325fcea678cfadd53c15d75",title:"ID",value:this.payment.id})),e("div",{key:"d2c43947987a94b999fe8d0e6b9472096e0c4abe",slot:"detail-sections"},e(b,{key:"e0a24a94fdc99835612b60a4fb181188d201cef4",sectionTitle:"Details"}),e("div",{key:"8fd1ad4e60434ada9293e0cfbd9c10165188c7d0",class:"d-table gap-2 w-100"},e(h,{key:"26a63b1a462843e40da95ae017ab2f10f6f91c5d",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(h,{key:"2be889b743ddd4d03a0d202fddfa05bf13c962bf",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(h,{key:"461ef049a69bea873ca4b847b477c29f154c54c6",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(h,{key:"ac88dfcf774f3b7615c23c5fc6645de580729834",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(h,{key:"4132a16cf6c72cb8af266d26e96e816733866069",title:"Status",value:c(this.payment.status)}),e(h,{key:"5e01c6646a49d7039fbe1698e6674dbf095bf30f",title:"Payment ID",value:this.payment.id}),e(h,{key:"f71933ebe9713373c70e0d82536e9650cd3dec57",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(h,{key:"cbf4793ae80ad173896e12d8c07b11a0c045a543",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(h,{key:"415f63d93bcb99ee30aa3998a03f09c9168ccc13",title:"Description",value:this.payment.description}),e(h,{key:"b639c7ab661a4213e1eed62ad7cac3ec6fc92fa0",title:"Expedited",value:this.payment.expedited?"Yes":"No"})),this.payment.payment_method.card&&[e(b,{key:"fb0073679f6af3acd74d55f297f1762ff1fbd248",sectionTitle:"Payment Method"}),e("div",{key:"14d2e149d9138004dddfa21a87f4028ffd955fce",class:"d-table gap-2 w-100"},e(h,{key:"bcece9db3e45210fc8235bf26366fc47860404f3",title:"ID",value:this.payment.payment_method.card.id}),e(h,{key:"16d50e65ded00842d3ed2b30f807b725c4678f61",title:"Payment Type",value:"Card"}),e(h,{key:"4851f286d529f011cff98cd4c8e5bc4842adb49c",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(h,{key:"6dfd0d0876d44fd116d05a59b272fe25ecf72799",title:"Brand",value:i(this.payment.payment_method.card.brand)}),e(h,{key:"3ea4bc645d49ec0c8a4ff224dcdb0673d24f6f7c",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(b,{key:"ee8d44c8b3d28c4990401ba8d0f241bef2e9680d",sectionTitle:"Payment Method"}),e("div",{key:"12fd0d00d5cdfd16d409b2ce3038a5e448d9c811",class:"d-table gap-2 w-100"},e(h,{key:"993a71c7a16ca5c739480ec5fd28f3db43204275",title:"ID",value:this.payment.payment_method.bank_account.id}),e(h,{key:"f9d9358986eb850422a44f6e133c536bd26ff36f",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(h,{key:"eea1acc64ec88327c946cafb7d4fe17a52ec7c9b",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(h,{key:"16863e45e29108df1292075aba051add12a396bc",title:"Account Owner",value:this.payment.payment_method.payersName}))],this.payment.metadata&&[e(b,{key:"fc4e5a842adb3d340d4ba42bba729ee0222e11b5",sectionTitle:"Metadata"}),e("div",{key:"62a0861b552552b9ee70253e1fb4b94e6930d684",class:"d-table gap-2 w-100"},e(r,{key:"d8254200469dfd44f48000d2a131f2426e571183",metadata:this.payment.metadata}))])))}static get watchers(){return{getPaymentDetails:["updateOnPropChange"]}}};export{k as payment_details_core}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as a}from"./p-Bn7inNWG.js";import{W as s,X as c,Y as i}from"./p-RvUQ__Pq.js";const f=class{constructor(a){e(this,a),this.selectedQuantityChange=t(this,"selectedQuantityChange"),this.limit=1/0,this.selectedQuantity=0,this.removeUnit=()=>{this.selectedQuantity>0&&(this.selectedQuantity--,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))},this.addUnit=()=>{this.limit>0&&(this.selectedQuantity++,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))}}render(){return a("div",{key:"743e380fab2774245896bab10832b709d51c59fa",class:"rounded shadow-sm card p-2",part:i},a("div",{key:"712c492c6d0f7e544e47b5292e4ad997efa820d9",class:"d-flex gap-3"},a("div",{key:"8a99a1e1f0fb100cc5ee0a4654d5540c8667ed9d",class:"d-flex align-items-center"},a("img",{key:"c4ba1c6a2aa3a1e9849a1f2973fb18e6d063b931",src:this.imageUrl,alt:this.modelName,height:75,width:75,part:s})),a("div",{key:"f201217ae96374f9c7ee7baabe139063322c12f4",class:"d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center"},a("div",{key:"72aad03990ac9264678975388197a53d46c784f7",class:"row"},a("div",{key:"fe6b6c7c4760af00b7c09f5fb004effc99a50625",class:"col-6 d-flex gap-2"},this.modelName,a("form-control-tooltip",{key:"27ff88dcc68f4579bcdf57f3f309117866f60a1f",helpText:this.description})),a("div",{key:"5facc068f3f85b10e00664430682103bcead8178",class:"col-6 d-flex justify-content-end align-items-center"},a("button",{key:"ba1536b53c2c3f40f35d84ea015062273fdade3e",class:"p-0 minus btn",onClick:this.removeUnit,part:c},"-"),a("div",{key:"8a1224aa17f4908693e26b7cebb1b882ff079026",class:"w-25 text-center"},this.selectedQuantity),a("button",{key:"a9571114d42c80851635edf466f5cd0ea6fc0dab",class:"p-0 plus btn",onClick:this.addUnit,part:c},"+"))))))}};export{f as terminal_quantity_selector}
@@ -1 +1 @@
1
- import{r as t,c as e,h as s,H as a,g as i}from"./p-kpoIU4v_.js";import{c as o,l as h,b as r,T as l,a as c}from"./p-CfF8KKwx.js";import{F as d}from"./p-C_CXv7AN.js";import"./p-CZfYo5-1.js";const n=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(e.value)},this.updateInput=t=>{this.selectElement.value=t}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){let t=o;return this.errorText&&(t=r),this.disabled&&(t=l),this.isFocused&&(t=c),t}render(){var t;return s(a,{key:"605b6cb9bfa7bac528ee0af9c4deb5e7b1356b93"},s("div",{key:"f8b42609971ff02c4bc147a113bb4a025d32bcd8",class:"form-group d-flex flex-column"},s("div",{key:"26c87da7b92edbb7fd41825a4e64b642778d0808",class:"d-flex align-items-start gap-2"},s("label",{key:"43ad562c323b586bf7ab0260258d8678ef3194aa",part:h,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"1e4b1fa0e9bae57b6e783fb873de38c49ae7a8a4",helpText:this.helpText})),s("select",{key:"bef2df140499a642ea9bf5bd3f6d7b558042e733",ref:t=>this.selectElement=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>s("option",{value:t.value},t.label)))),s(d,{key:"99abaaa766c1270cf1cfd926320d343393b13d1d",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},f=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("input");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.errorText?r:this.disabled?l:this.isFocused?c:o}render(){return s(a,{key:"51f427955047c079bcd4277ce54f27168d6c3e14"},s("div",{key:"3724cd9797feb1b383e031a3509dfc365a4d1dc0",class:"form-group d-flex flex-column"},s("div",{key:"883b87e2e1ddf1eb3956fd232ab7c7239a9ee08f",class:"d-flex align-items-start gap-2"},s("label",{key:"7d8acb9db3c54034fff1d310555ed15d039c8ab4",part:h,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"70c94e2dea56b70ae3e6e6fae86127ee366fa1a2",helpText:this.helpText})),s("input",{key:"af0adb1ba6ac16dcd8c39a45c8c44f6bd41c9ab9",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),s(d,{key:"d393476376fa8f749b4e54a35da2586a878da4bd",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{n as form_control_select,f as form_control_text}
1
+ import{r as t,c as e,h as s,H as a,g as i}from"./p-Bn7inNWG.js";import{c as o,l as h,b as r,T as l,a as f}from"./p-RvUQ__Pq.js";import{F as d}from"./p-BfM6X7lF.js";import"./p-CZfYo5-1.js";const n=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(e.value)},this.updateInput=t=>{this.selectElement.value=t}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){let t=o;return this.errorText&&(t=r),this.disabled&&(t=l),this.isFocused&&(t=f),t}render(){var t;return s(a,{key:"9842d5b2a2069292ded1b960bc024d7995a6d58e"},s("div",{key:"b4b5fe37f88661d2f592864adb16ae997a38b484",class:"form-group d-flex flex-column"},s("div",{key:"f70c40c7e4bdd58b985ac9b6e76fbf48ff15261e",class:"d-flex align-items-start gap-2"},s("label",{key:"6b1d9e1f3b22e702962c1d23a057f08222af5e1a",part:h,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"fae7835adde280a8c4f48f3c9b169240aac3672d",helpText:this.helpText})),s("select",{key:"bee75d1bb56ed104473efcad7d8c432b50bfbb38",ref:t=>this.selectElement=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>s("option",{value:t.value},t.label)))),s(d,{key:"f5df46552aa8124b344260bca05bd02c695d0fe6",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},c=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("input");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.errorText?r:this.disabled?l:this.isFocused?f:o}render(){return s(a,{key:"a8372f03c84409f2cd36b67d11aa3f1c6ade5230"},s("div",{key:"6e00089d666df5be04bdcfbef7f163c4ae6b567a",class:"form-group d-flex flex-column"},s("div",{key:"2d243bb04b2276757b44903719991aabefa13254",class:"d-flex align-items-start gap-2"},s("label",{key:"98ba977b38ef706a7fd9089db13879c24d5e1480",part:h,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"500d46e1bdc581989fc1c3c0a79b67b3458ce980",helpText:this.helpText})),s("input",{key:"c3efaf9b7b2fd6a42fcb76756775a1c58e2c61df",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),s(d,{key:"2aff3e8ef0fbfd37e2add41f9aad3891d62bd9bc",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{n as form_control_select,c as form_control_text}
@@ -1 +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
+ import{r as t,c as s,h as e,H as i}from"./p-Bn7inNWG.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 f,a as c}from"./p-RvUQ__Pq.js";import{F as d}from"./p-Dgflaz6J.js";import{F as p}from"./p-BfM6X7lF.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=f),this.isFocused&&(t=c),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 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}
1
+ import{r as s,c as e,h as t,H as i}from"./p-Bn7inNWG.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-0mMX1Zv4.js";import"./p-DhGNCW2f.js";import"./p-HXpYMWUU.js";import"./p-BP7op0vq.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as f,d as l,F as b}from"./p-CR9D6mKt.js";import{A as m}from"./p-BPtcGAzB.js";import{C as g}from"./p-RvUQ__Pq.js";import{a as k,B as v}from"./p-XYgDHrVL.js";import{B as y}from"./p-DD0Mvpeu.js";import"./p-CZfYo5-1.js";import"./p-D2muobcE.js";import"./p-CpaS1Lex.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"]}}},_=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"]}}},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:"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 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:"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(y,{key:"b1e8c2fff97e9a053d715860a43ddd78c99b255a",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),t(y,{key:"8696fe4f0bde5434e51f05f67b39a8e5b2f550bf",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,v.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),t(y,{key:"b1750a849d60244bdb3cf82690c6cbd15b6e1110",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,v.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,_ 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}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e,H as a}from"./p-Bn7inNWG.js";import{b as i,T as o,a as r,c as h,l as c,U as n}from"./p-RvUQ__Pq.js";import{F as d}from"./p-Dgflaz6J.js";import{F as f}from"./p-BfM6X7lF.js";import"./p-CZfYo5-1.js";import{f as l}from"./p-zdIeCUeh.js";import"./p-HXpYMWUU.js";const p=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.defaultValue="0",this.formatRawValue=t=>t.replace(/\D/g,""),this.formatDisplayValue=t=>l(+t,void 0,!0),this.updateInput=t=>{const s=this.formControl.name,e=this.formatRawValue(t);this.formControl.value=this.formatDisplayValue(e),this.inputHandler(s,e),this.formControlInput.emit({name:s,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get inputPart(){return this.errorText?i:this.disabled?o:this.isFocused?r:h}render(){return e(a,{key:"522db34cb5be7d1200ab8ce3864c846d91f278dc"},e("div",{key:"b2d5b5515eb51843042f511c1ce64a00222aa24c",class:"form-group d-flex flex-column"},e("label",{key:"ebba4dc6aa72cbda1656b7c0b846b776555748d4",part:c,class:"form-label",htmlFor:this.name},this.label),e(d,{key:"ed37818c0151b760e29e4d21b5344f71b67c516a",name:this.name,helpText:this.helpText}),e("div",{key:"c1273d4fd5f52e0c6d32a61b600a99d6820b8c84",class:"input-group"},e("span",{key:"fa8e479fc0af0ae94e45d881907ebbc4eefead70",class:"input-group-text",part:n},"$"),e("input",{key:"2347defbce5f2787bb39002096ea67543aa0c474",ref:t=>this.formControl=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:t=>this.updateInput(t.target.value),onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.inputPart,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled})),e(f,{key:"067197d8c0167d36f6dc3f5ef73d58d2dd7a5fda",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{p as form_control_monetary}
@@ -1 +1 @@
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
+ import{r as e,h as a,H as t}from"./p-Bn7inNWG.js";import{au as l,C as d}from"./p-RvUQ__Pq.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:"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===(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:"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:c,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:o,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,c,o,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===(o=null===(c=this.errors)||void 0===c?void 0:c.legal_address)||void 0===o?void 0:o.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}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-Bn7inNWG.js";import"./p-DhGNCW2f.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-BP7op0vq.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as m,i as f,j as u,k as b,l as g}from"./p-CB0mCq1M.js";import{T as l}from"./p-CZfYo5-1.js";import{t as j,a as y}from"./p-DGmp4ErD.js";import{o as k,g as C}from"./p-sw5RO19U.js";import"./p-CpaS1Lex.js";import"./p-zdIeCUeh.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-BbZwa5UI.js";import"./p-DDUmOl3v.js";const v=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminals.find((t=>t.id===s));this.clickEvent.emit({name:l.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalsTable=new a(this.terminals,this.columns,j,y),this.getTerminals&&this.getSubAccounts&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:s})=>{this.terminals=t,this.paging=s,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get terminalParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"bf90dd5593c53e9ff39fffe62dc592d016badf63"},e(r,{key:"158d9c72e9833e5d9aabadbe2c34659691feb41e"},e(h,{key:"d949cfbf188ca38a42608684af32da640caa3132"},e(o,{key:"e720a7fe1d425905186c9e8fd3925ade2c037804"},this.terminalsTable.columnData.map((t=>t)))),e(c,{key:"b8b518d93df15fb7050828bcc0a610426d99ec51"},e(n,{key:"a815d8a30476844a7ebdd8e43ffae7c1cafcb4fe",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"d2eca381346455a2292c9640c06005ab8681e36a",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),e(d,{key:"ce65f5c7c3db47d61f6d5c5e053d93a4bc9bb4a1",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((t,s)=>e(m,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"ed2e3d233e29a27be2e467e864c7758e9b771049"},e(u,{key:"baef41fe45c46b2e4951783170933947127f3e08"},e(b,{key:"a0f64165a750e872469d614ae63ea580ae38d347",colSpan:this.terminalsTable.columnData.length},e("pagination-menu",{key:"ab865a2014823308aab0c7230111d870a326b794",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{v as terminals_list_core}
@@ -1 +1 @@
1
- import{r as s,c as t,h as e}from"./p-kpoIU4v_.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{c as o}from"./p-Dt-vy9Le.js";import{D as h}from"./p-CfF8KKwx.js";import{S as n}from"./p-CRFzwZW6.js";import{H as a}from"./p-zrUQD0Wr.js";import"./p-CZfYo5-1.js";import{B as c}from"./p-XYgDHrVL.js";import"./p-BX8GieXu.js";const d=class{constructor(e){s(this,e),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event"),this.loading=!1,this.businessProvisioned=!1,this.currentStep=0,this.allowOptionalFields=!1,this.setBusinessProvisioned=()=>{this.getBusiness({onSuccess:s=>{this.businessProvisioned=o(s.data),this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:r.PROVISIONING_REQUESTED,severity:i.INFO})},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:e})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:c.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}handleFormCompleted(){this.postProvisioningData()}componentWillLoad(){this.getBusiness&&this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`${this.currentStep+1} of ${this.totalSteps+1}`}handleFormLoading(s){this.loading=s.detail}render(){return e(n,{key:"621b616a3b9d5be0fcc1180dcdb0db6a89ec5aa2"},e("div",{key:"b51c6814bb81a6cdc6cd0c5ede4d485582f154ee",class:"row gap-3"},e(a,{key:"7c03561b4c2b0cfc237d6b933aeffe532f35b626",text:this.formTitle}),e("justifi-payment-provisioning-form-steps",{key:"b616b52cc9a0057f27ddbae1356710cee05c60fa",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,handleFormLoading:this.handleFormLoading}),e("div",{key:"2447bad174b5d32d253e821e76ebb32fb9ec50e3",class:"d-flex justify-content-between align-items-center"},e("div",{key:"d746b5275ae0866a8619f67fe00217916153ea0a",class:"d-flex align-items-center",part:h},this.stepCounter),e("justifi-payment-provisioning-form-buttons",{key:"add808398005b6076d91788cc220ab6620f3ddfc",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{d as justifi_payment_provisioning_core}
1
+ import{r as s,c as t,h as e}from"./p-Bn7inNWG.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{c as o}from"./p-Dt-vy9Le.js";import{z as h}from"./p-RvUQ__Pq.js";import{S as n}from"./p-DxqCFDtF.js";import{H as a}from"./p-DIDloHpm.js";import"./p-CZfYo5-1.js";import{B as c}from"./p-XYgDHrVL.js";import"./p-BX8GieXu.js";const d=class{constructor(e){s(this,e),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event"),this.loading=!1,this.businessProvisioned=!1,this.currentStep=0,this.allowOptionalFields=!1,this.setBusinessProvisioned=()=>{this.getBusiness({onSuccess:s=>{this.businessProvisioned=o(s.data),this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:r.PROVISIONING_REQUESTED,severity:i.INFO})},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:e})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:c.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}handleFormCompleted(){this.postProvisioningData()}componentWillLoad(){this.getBusiness&&this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`${this.currentStep+1} of ${this.totalSteps+1}`}handleFormLoading(s){this.loading=s.detail}render(){return e(n,{key:"621b616a3b9d5be0fcc1180dcdb0db6a89ec5aa2"},e("div",{key:"b51c6814bb81a6cdc6cd0c5ede4d485582f154ee",class:"row gap-3"},e(a,{key:"7c03561b4c2b0cfc237d6b933aeffe532f35b626",text:this.formTitle}),e("justifi-payment-provisioning-form-steps",{key:"b616b52cc9a0057f27ddbae1356710cee05c60fa",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,handleFormLoading:this.handleFormLoading}),e("div",{key:"2447bad174b5d32d253e821e76ebb32fb9ec50e3",class:"d-flex justify-content-between align-items-center"},e("div",{key:"d746b5275ae0866a8619f67fe00217916153ea0a",class:"d-flex align-items-center",part:h},this.stepCounter),e("justifi-payment-provisioning-form-buttons",{key:"add808398005b6076d91788cc220ab6620f3ddfc",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{d as justifi_payment_provisioning_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-Bn7inNWG.js";import"./p-DhGNCW2f.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-BP7op0vq.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c,d as o,e as p,f as n,g as d,h as f,i as m,j as b,k as j,l as u}from"./p-CB0mCq1M.js";import{T as y}from"./p-CZfYo5-1.js";import{p as g,a as l}from"./p-b21ncS7l.js";import{o as k,g as C}from"./p-DsZZxRXY.js";import"./p-CpaS1Lex.js";import"./p-zdIeCUeh.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-BbZwa5UI.js";import"./p-Bb-6bNcq.js";import"./p-DDUmOl3v.js";const v=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payments=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:y.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:y.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.payments.find((t=>t.id===s));this.clickEvent.emit({name:y.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.paymentsTable=new a(this.payments,this.columns,g,l),this.getPayments&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayments({params:this.paymentParams,onSuccess:({payments:t,pagingInfo:s})=>{this.payments=t,this.paging=s,this.paymentsTable.collectionData=this.payments},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get paymentParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.payments.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.paymentsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(u,{key:"caf37a011b6c7cc178c61ffe4cf6a9d5a5a191df"},e(r,{key:"8be3bcd856da13dfd7932d4fc49fea655c9efa6b"},e(h,{key:"b81696116e224ca8e8549cc6abeb6f96f211f2c4"},e(c,{key:"6494e391b3755792d69feee684987e605e3979e7"},this.paymentsTable.columnData.map((t=>t)))),e(o,{key:"5ee3267e6dfe675cb95d74b45f901ee2bc4ab974"},e(p,{key:"66e830d87aa347dfc91dde691a7b30fcd172bcf6",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),e(n,{key:"644fc974b572f6f543ad7d1cdbf95f884c9a0b29",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),e(d,{key:"e898bc1b37c8d6edfda9fc4e57c2ef7762ae1299",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((t,s)=>e(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"8a39a512dd1ca821877737a75d9b841c9c2246bc"},e(b,{key:"396029ecb6523af607537cb25aaefd9f4d449fc2"},e(j,{key:"6e674ead7dcbf67b757d565762ab4898f28c33fd",colSpan:this.paymentsTable.columnData.length},e("pagination-menu",{key:"550e7d3e45ec694013221fbcdcd41e8f821a37d6",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{v as payments_list_core}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-Bn7inNWG.js";import{f as t,p as s,c as r}from"./p-BY1mRAvj.js";import{q as l,u as d,v as i,w as o,x as p}from"./p-RvUQ__Pq.js";import{S as c}from"./p-DxqCFDtF.js";import"./p-CZfYo5-1.js";import"./p-DhGNCW2f.js";import{c as f,a as b}from"./p-zdIeCUeh.js";import"./p-Cjcsf8ku.js";import{T as n,b as m}from"./p-BP7op0vq.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import"./p-CpaS1Lex.js";import"./p-HXpYMWUU.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=f(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:n.created},{label:"Completed",value:n.completed},{label:"Submitted",value:n.submitted},{label:"In Progress",value:n.in_progress},{label:"On Hold",value:n.on_hold},{label:"Canceled",value:n.canceled}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:m.boardingOnly},{label:"Boarding Shipping",value:m.boardingShipping}]}render(){const e=Object.assign({},t);return a(c,{key:"b6a93f69fa0c0852d7acdb9329e2e07112d5b682"},a("table-filters-menu",{key:"f943e8ca3b73ff9e6cc254ba0bd1836dc777d922",params:e,clearParams:r,part:l},a("div",{key:"a38c0c9279aa181e3908321cd57c82d61c7a8d7f",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"da7aa4de8f51d822df29c6920b3d6c0874bf7823",class:"p-2"},a("form-control-select",{key:"bfae6425df3a1812f28a9ad44ce69f563fdabf9e",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||t.order_status,disabled:!!this.orderStatus,part:d})),a("div",{key:"2acab48883e9f462e4be2ac2c58d58f164772ec8",class:"p-2"},a("form-control-select",{key:"31b7d020bdcb0eab2ff1727973cb16c02b8d2ca7",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||t.order_type,disabled:!!this.orderType,part:i})),a("div",{key:"67324655a1b10000887714026d8fe0a8ce67dfe8",class:"p-2"},a("form-control-date",{key:"2bfc40bc7d52458b9ed58dd26c7d9e843345f209",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:b(this.createdAfter,{showInputDateTime:!0})||b(t.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:o})),a("div",{key:"3bca9a59df57f33f4d96834cca5e39d7c7068c51",class:"p-2"},a("form-control-date",{key:"fd876d75d0f681c4627252bd7096930785795827",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:b(this.createdBefore,{showInputDateTime:!0})||b(t.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:p})))))}};export{u as justifi_terminal_orders_list_filters}
@@ -0,0 +1 @@
1
+ import{r as e,h as t}from"./p-Bn7inNWG.js";import{r as o}from"./p-RvUQ__Pq.js";import{S as s}from"./p-DxqCFDtF.js";import"./p-CZfYo5-1.js";const a=class{constructor(t){e(this,t)}render(){return t(s,{key:"2348e1f435417c0d5379133d3a648760637cbf41",class:"payment-method"},t("div",{key:"7fbc5c47891a86bead7e62b8df3fad972b91b3f0",class:"radio-list-item p-3",part:o,onClick:this.clickHandler,hidden:this.radioButtonHidden},t("form-control-radio",{key:"de7b2236e04dc2b8a0dc7e0434c4de66f612366a",name:"paymentMethodType",value:this.paymentMethodOptionId,checked:this.isSelected,label:this.label})))}};export{a as payment_method_option}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-Bn7inNWG.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 f,j as m,k as b,l as j}from"./p-CB0mCq1M.js";import{T as u}from"./p-CZfYo5-1.js";import"./p-DhGNCW2f.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-BP7op0vq.js";import{p as l}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{t as g,a as y}from"./p-BRLwUSZk.js";import{o as k,g as C}from"./p-BY1mRAvj.js";import"./p-RvUQ__Pq.js";import"./p-BbZwa5UI.js";import"./p-CpaS1Lex.js";import"./p-zdIeCUeh.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DDUmOl3v.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=l,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:u.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:u.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:u.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new i(this.terminalOrders,this.columns,g,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"ae7811542ecbc0626fe3f77ee4b8dfc3157d3abf"},e(a,{key:"2f933c6598a21e02d3dd8b5918702fc29843105c"},e(r,{key:"0b978eef17f17e9a7b3dbaacc6dd2b17a9672b04"},e(h,{key:"5f47570ef1df9dbfd520ae04b45cbb259e37af8e"},this.terminalOrdersTable.columnData.map((t=>t)))),e(o,{key:"1d5a979390e41a9dba5a0eb23923c3056f02e8cf"},e(c,{key:"59e22dadecd2849bc44f6bcd2c11998f4120ea60",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(n,{key:"f2b13ad54fc0fd1ac72889cbd0d4f79cd30fd481",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(p,{key:"0ad5ad03ed5ac1cbfc0614689913831c80831646",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"353a7c374a71d5cd2706f7d4e33631f4a1b194e5"},e(m,{key:"4706433521171f8e026a1ff789cad0e1b219f214"},e(b,{key:"30b078f32ac4bb5bd3dd91d0016f13ee5eff01f8",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"3301ac2f23e8c8da065005bd6aed224a26bb59fc",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 s,h as t}from"./p-Bn7inNWG.js";import{S as f}from"./p-DxqCFDtF.js";import{S as i}from"./p-CaAVuW6B.js";import"./p-RvUQ__Pq.js";const r=class{constructor(t){s(this,t)}render(){return t(f,{key:"d19fcf55df4b5b001d31af93c263fef39fc0d160"},t(i,{key:"9ab49d76aa71146287fff2013050e008342f0275",component:this.component,height:this.height,width:this.width,className:this.class,styles:this.customStyle}))}};export{r as justifi_skeleton}
@@ -1 +1 @@
1
- import{r as e,h as a}from"./p-kpoIU4v_.js";import{u as d,a as t,b as o}from"./p-1ydcg9ti.js";import{P as s,S as l}from"./p-B-iV5cYd.js";import{G as i}from"./p-CfF8KKwx.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const r=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{d(this.formController,{[e]:a})},this.onAddressFormUpdate=e=>{t(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,d,t,r,c,f,n;return a("form",{key:"e4b7a532e18a921a5a28aab31f679fbbad164198"},a("fieldset",{key:"d7056e5ee25625adb563e2687f581157653c8a9d"},a("div",{key:"456aab0ef1399a7c1d272059c881c6c6f3d0e87c",class:"d-flex align-items-center gap-2"},a("legend",{key:"430b3731bbd97ff1589bd81bd6fdaa4082161180",class:"mb-0",part:i},"Representative"),a("form-control-tooltip",{key:"47676ededb80e0f766cb786265d8fb307c60d125",helpText:"The representative for your business needs to be someone who has significant control over managing your business’s finance. You will have an opportunity to add owners later in the form."})),a("hr",{key:"514197b5bd4868ec29e75dc74367deb187b32063",class:"mt-2"}),a("div",{key:"f2986d55d0bfbf0e6059f0b2a766d2dc603acdc5",class:"row gy-3"},a("div",{key:"e4a3749c5e972f505527b8fc172f9a4214806345",class:"col-12 col-md-8"},a("form-control-text",{key:"d54c8d17f0360277fe04dd91a528e303182495c7",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"4fa0b1a192fb39a982c957d202ea2ac1e40dedd8",class:"col-12 col-md-4"},a("form-control-text",{key:"8c3bca4234ea0e7ae3c79d810ffb469637898eb6",name:"title",label:"Title",defaultValue:null===(d=this.representativeDefaultValue)||void 0===d?void 0:d.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),a("div",{key:"7e14a61364883172f2938bd8b1e53883ddd369fe",class:"col-12 col-md-6"},a("form-control-text",{key:"8d9c81d374998dbaea5322906fddb5eeadea1546",name:"email",label:"Email Address",defaultValue:null===(t=this.representativeDefaultValue)||void 0===t?void 0:t.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"c3f369b226a08497926b26d0732b7dc9d6413559",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"734625aeac8384f2b8676c4d350368675cff3a6f",name:"phone",label:"Phone Number",defaultValue:null===(r=this.representativeDefaultValue)||void 0===r?void 0:r.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:s.US})),a("div",{key:"23d509b724f2617eb0a4f85c74238b09a052a6cb",class:"col-12 col-md-4"},a("form-control-date",{key:"0f838cc474beab9822a84856733a86ecf43f0ec3",name:"dob_full",label:"Birth Date",defaultValue:null===(c=this.representativeDefaultValue)||void 0===c?void 0:c.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>o(e,this.formController),helpText:"Must be 18 or older."})),a("div",{key:"f6d08c53dad2e9a550adf893ac59166015ffb6e4",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"dd610955fb7c62fd0aab9af925af34cdc47ab3e9",name:"identification_number",label:"SSN",defaultValue:null===(f=this.representativeDefaultValue)||void 0===f?void 0:f.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:l,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),a("div",{key:"d4e2a212a87ca9be4be8e21f3e47008b2201871c",class:"col-12"},a("justifi-identity-address-form",{key:"bb2d0d01e07be4d37acfd448796c8a33460111ed",errors:this.errors.address,defaultValues:null===(n=this.representativeDefaultValue)||void 0===n?void 0:n.address,handleFormUpdate:this.onAddressFormUpdate})))))}};export{r as justifi_business_representative_form_inputs}
1
+ import{r as e,h as a}from"./p-Bn7inNWG.js";import{u as d,a as t,b as s}from"./p-1ydcg9ti.js";import{P as i,S as l}from"./p-B-iV5cYd.js";import{C as o}from"./p-RvUQ__Pq.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const r=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{d(this.formController,{[e]:a})},this.onAddressFormUpdate=e=>{t(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,d,t,r,c,f,n;return a("form",{key:"e4b7a532e18a921a5a28aab31f679fbbad164198"},a("fieldset",{key:"d7056e5ee25625adb563e2687f581157653c8a9d"},a("div",{key:"456aab0ef1399a7c1d272059c881c6c6f3d0e87c",class:"d-flex align-items-center gap-2"},a("legend",{key:"430b3731bbd97ff1589bd81bd6fdaa4082161180",class:"mb-0",part:o},"Representative"),a("form-control-tooltip",{key:"47676ededb80e0f766cb786265d8fb307c60d125",helpText:"The representative for your business needs to be someone who has significant control over managing your business’s finance. You will have an opportunity to add owners later in the form."})),a("hr",{key:"514197b5bd4868ec29e75dc74367deb187b32063",class:"mt-2"}),a("div",{key:"f2986d55d0bfbf0e6059f0b2a766d2dc603acdc5",class:"row gy-3"},a("div",{key:"e4a3749c5e972f505527b8fc172f9a4214806345",class:"col-12 col-md-8"},a("form-control-text",{key:"d54c8d17f0360277fe04dd91a528e303182495c7",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"4fa0b1a192fb39a982c957d202ea2ac1e40dedd8",class:"col-12 col-md-4"},a("form-control-text",{key:"8c3bca4234ea0e7ae3c79d810ffb469637898eb6",name:"title",label:"Title",defaultValue:null===(d=this.representativeDefaultValue)||void 0===d?void 0:d.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),a("div",{key:"7e14a61364883172f2938bd8b1e53883ddd369fe",class:"col-12 col-md-6"},a("form-control-text",{key:"8d9c81d374998dbaea5322906fddb5eeadea1546",name:"email",label:"Email Address",defaultValue:null===(t=this.representativeDefaultValue)||void 0===t?void 0:t.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"c3f369b226a08497926b26d0732b7dc9d6413559",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"734625aeac8384f2b8676c4d350368675cff3a6f",name:"phone",label:"Phone Number",defaultValue:null===(r=this.representativeDefaultValue)||void 0===r?void 0:r.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:i.US})),a("div",{key:"23d509b724f2617eb0a4f85c74238b09a052a6cb",class:"col-12 col-md-4"},a("form-control-date",{key:"0f838cc474beab9822a84856733a86ecf43f0ec3",name:"dob_full",label:"Birth Date",defaultValue:null===(c=this.representativeDefaultValue)||void 0===c?void 0:c.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>s(e,this.formController),helpText:"Must be 18 or older."})),a("div",{key:"f6d08c53dad2e9a550adf893ac59166015ffb6e4",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"dd610955fb7c62fd0aab9af925af34cdc47ab3e9",name:"identification_number",label:"SSN",defaultValue:null===(f=this.representativeDefaultValue)||void 0===f?void 0:f.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:l,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),a("div",{key:"d4e2a212a87ca9be4be8e21f3e47008b2201871c",class:"col-12"},a("justifi-identity-address-form",{key:"bb2d0d01e07be4d37acfd448796c8a33460111ed",errors:this.errors.address,defaultValues:null===(n=this.representativeDefaultValue)||void 0===n?void 0:n.address,handleFormUpdate:this.onAddressFormUpdate})))))}};export{r as justifi_business_representative_form_inputs}