@justifi/webcomponents 6.12.2 → 6.12.4

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 (590) hide show
  1. package/dist/cjs/{Analytics-C1Wd9OW4.js → Analytics-BERGweGK.js} +2 -3
  2. package/dist/cjs/{Plaid-BlSGeGpn.js → Plaid-BRSyOOuw.js} +60 -4
  3. package/dist/cjs/additional-questions-form-step_14.cjs.entry.js +151 -19
  4. package/dist/cjs/{justifi-additional-statement_8.cjs.entry.js → additional-statement_8.cjs.entry.js} +24 -24
  5. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  6. package/dist/cjs/{business-identity-schema-DWWtSiUF.js → business-identity-schema-DI9XFbaD.js} +67 -0
  7. package/dist/cjs/{business.service-BheJs82v.js → business.service-Z9OACEQL.js} +1 -2
  8. package/dist/cjs/card-form.cjs.entry.js +2 -2
  9. package/dist/cjs/{check-pkg-version-DMXmPDqZ.js → check-pkg-version-ByKpJklZ.js} +1 -1
  10. package/dist/cjs/{checkout.service-DZKdHQQq.js → checkout.service-BZOyqXgW.js} +1 -2
  11. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  12. package/dist/cjs/{justifi-dispute-notification_3.cjs.entry.js → dispute-notification_2.cjs.entry.js} +67 -90
  13. package/dist/cjs/{event-types-BWQT2lwu.js → event-types-AU1B76Vm.js} +30 -0
  14. package/dist/cjs/form-address-fields_3.cjs.entry.js +2 -2
  15. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  16. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  17. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  18. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-number_2.cjs.entry.js +89 -0
  20. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  21. package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
  22. package/dist/cjs/{get-business-CKC1P4Qs.js → get-business-aR-C83KX.js} +6 -3
  23. package/dist/cjs/{get-payment-details-DL5FmIyF.js → get-payment-details-dwhA02Zl.js} +2 -3
  24. package/dist/cjs/{get-subaccounts-CVK4O7th.js → get-subaccounts-B1jmSa2d.js} +2 -3
  25. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  26. package/dist/cjs/internal-button.cjs.entry.js +1 -1
  27. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +12 -13
  28. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -6
  29. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -6
  30. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  31. package/dist/cjs/justifi-business-details.cjs.entry.js +7 -8
  32. package/dist/cjs/justifi-business-form.cjs.entry.js +10 -12
  33. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  34. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -6
  35. package/dist/cjs/justifi-checkout.cjs.entry.js +4 -5
  36. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -4
  37. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +190 -27
  38. package/dist/cjs/justifi-dispute-management.cjs.entry.js +65 -18
  39. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +11071 -23
  40. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
  41. package/dist/cjs/justifi-payment-details.cjs.entry.js +16 -17
  42. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
  43. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -8
  44. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  45. package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -8
  46. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -11
  47. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -8
  48. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -4
  49. package/dist/cjs/justifi-payouts-list.cjs.entry.js +9 -10
  50. package/dist/cjs/justifi-refund-payment.cjs.entry.js +7 -8
  51. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -6
  52. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  53. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -5
  54. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +178 -24
  55. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -3
  56. package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -9
  57. package/dist/cjs/loader.cjs.js +1 -1
  58. package/dist/cjs/{package-CRaVpb0w.js → package-B6L3zyfG.js} +1 -1
  59. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  60. package/dist/cjs/{payment-provisioning-actions-BO7dzIm1.js → payment-provisioning-actions-BiSpysjW.js} +2 -2
  61. package/dist/cjs/{payment.service-sZKlg2Jq.js → payment.service-ByrgA_QZ.js} +1 -2
  62. package/dist/cjs/{payout.service-BcQVsMCS.js → payout.service-CnQm_BpU.js} +1 -2
  63. package/dist/cjs/{payouts-status-CwgOMz-S.js → payouts-status-AuS3Mp0V.js} +2 -2
  64. package/dist/cjs/{plaid.service-BcgO2VXC.js → plaid.service-Dlb8EUR8.js} +1 -2
  65. package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
  66. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  67. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  68. package/dist/cjs/{terminal.service-CjMMWSh3.js → terminal.service-BdwHQ3Vv.js} +1 -2
  69. package/dist/cjs/{utils-DbTucCTO.js → utils-FVGp6se3.js} +1 -1
  70. package/dist/cjs/webcomponents.cjs.js +1 -1
  71. package/dist/collection/actions/business/get-business.js +4 -1
  72. package/dist/collection/api/Terminal.js +1 -1
  73. package/dist/collection/collection-manifest.json +10 -16
  74. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +2 -2
  75. package/dist/collection/components/business-forms/owner-form/owner-form.js +226 -12
  76. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  77. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +166 -16
  78. package/dist/collection/components/dispute-management/{justifi-dispute-notification.js → dispute-notification.js} +5 -6
  79. package/dist/collection/components/dispute-management/dispute-response/{justifi-additional-statement.js → additional-statement.js} +3 -3
  80. package/dist/collection/components/dispute-management/dispute-response/{justifi-cancellation-policy.js → cancellation-policy.js} +3 -3
  81. package/dist/collection/components/dispute-management/dispute-response/{justifi-customer-details.js → customer-details.js} +3 -3
  82. package/dist/collection/components/dispute-management/dispute-response/{dispute-response-core.js → dispute-response.js} +105 -77
  83. package/dist/collection/components/dispute-management/dispute-response/{justifi-duplicate-charge.js → duplicate-charge.js} +3 -3
  84. package/dist/collection/components/dispute-management/dispute-response/{justifi-electronic-evidence.js → electronic-evidence.js} +3 -3
  85. package/dist/collection/components/dispute-management/dispute-response/{justifi-product-or-service.js → product-or-service.js} +3 -3
  86. package/dist/collection/components/dispute-management/dispute-response/{justifi-refund-policy.js → refund-policy.js} +3 -3
  87. package/dist/collection/components/dispute-management/dispute-response/{justifi-shipping-details.js → shipping-details.js} +3 -3
  88. package/dist/collection/components/dispute-management/justifi-dispute-management.js +78 -11
  89. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  90. package/dist/collection/components/gross-payment-chart/justifi-gross-payment-chart.js +79 -15
  91. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +1 -1
  92. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
  93. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +1 -1
  94. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
  95. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
  96. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
  97. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
  98. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  99. package/dist/collection/components/order-terminals/justifi-order-terminals.js +4 -3
  100. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  101. package/dist/collection/components/payment-details/justifi-payment-details.js +8 -8
  102. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
  103. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  104. package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
  105. package/dist/collection/components/payout-details/justifi-payout-details.js +3 -3
  106. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
  107. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  108. package/dist/collection/components/payouts-list/justifi-payouts-list.js +1 -1
  109. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  110. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +134 -10
  111. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  112. package/dist/collection/components/terminals-list/justifi-terminals-list.js +1 -1
  113. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
  114. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  115. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  116. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  117. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  118. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  119. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  120. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  121. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  122. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  123. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  124. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  125. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  126. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  127. package/dist/collection/ui-components/internal-button.js +1 -1
  128. package/dist/collection/ui-components/radio-list-item.js +1 -1
  129. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  130. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  131. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  132. package/dist/docs.json +5763 -6945
  133. package/dist/esm/{Analytics-qafLCOEU.js → Analytics-B1bQP71R.js} +2 -3
  134. package/dist/esm/{Plaid-BuKEVgbB.js → Plaid-l6nNIjab.js} +58 -3
  135. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  136. package/dist/esm/additional-questions-form-step_14.entry.js +156 -24
  137. package/dist/esm/additional-questions_5.entry.js +2 -2
  138. package/dist/esm/{justifi-additional-statement_8.entry.js → additional-statement_8.entry.js} +19 -19
  139. package/dist/esm/{badge-B6dp1XGV.js → badge-Dlcl9qdm.js} +1 -1
  140. package/dist/esm/bank-account-billing-form-simple_4.entry.js +5 -5
  141. package/dist/esm/bank-account-form.entry.js +4 -4
  142. package/dist/esm/bank-account-read-only-value.entry.js +1 -1
  143. package/dist/esm/business-identity-schema-D-Nk9aGV.js +163 -0
  144. package/dist/esm/{business.service-BPbZ5fxQ.js → business.service-C31wbMVs.js} +1 -2
  145. package/dist/esm/{button-DRdaAudE.js → button-BvzOzV4l.js} +1 -1
  146. package/dist/esm/card-form.entry.js +4 -4
  147. package/dist/esm/{check-pkg-version-BJtCbzf9.js → check-pkg-version-CNwUC4SV.js} +1 -1
  148. package/dist/esm/{checkout.service-CJMfFKyS.js → checkout.service-cVdOGDuI.js} +1 -2
  149. package/dist/esm/{country-config-P042rrI3.js → country-config-B_fuF6JU.js} +1 -1
  150. package/dist/esm/custom-popper_2.entry.js +3 -3
  151. package/dist/esm/{justifi-dispute-notification_3.entry.js → dispute-notification_2.entry.js} +68 -90
  152. package/dist/esm/{event-types-Bg2SZArf.js → event-types-DalU_6SB.js} +29 -1
  153. package/dist/esm/form-address-fields_3.entry.js +5 -5
  154. package/dist/esm/form-control-checkbox.entry.js +3 -3
  155. package/dist/esm/form-control-date.entry.js +4 -4
  156. package/dist/esm/{form-control-error-text-DVedKyhp.js → form-control-error-text-Di9QePY5.js} +1 -1
  157. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  158. package/dist/esm/form-control-file.entry.js +4 -4
  159. package/dist/esm/{form-control-help-text-D-349cNw.js → form-control-help-text-DGMpMuAm.js} +1 -1
  160. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  161. package/dist/esm/form-control-monetary.entry.js +5 -5
  162. package/dist/esm/form-control-number_2.entry.js +86 -0
  163. package/dist/esm/form-control-radio.entry.js +3 -3
  164. package/dist/esm/form-control-select_2.entry.js +6 -6
  165. package/dist/esm/{get-business-DpFRs5dE.js → get-business-Gg6qn5on.js} +6 -3
  166. package/dist/esm/{get-payment-details-DjBou5Fu.js → get-payment-details-BiWgSJau.js} +2 -3
  167. package/dist/esm/{get-subaccounts-CgDWE_5o.js → get-subaccounts-CkjZeR9U.js} +2 -3
  168. package/dist/esm/{header-1-Bl7MHW0w.js → header-1-evYxFIGN.js} +1 -1
  169. package/dist/esm/{header-3-C7JJVnMG.js → header-3-BUDap2xY.js} +1 -1
  170. package/dist/esm/hidden-input_2.entry.js +7 -7
  171. package/dist/esm/{index.esm-BHdVU4hV.js → index.esm-CgNcFueq.js} +1 -1
  172. package/dist/esm/{insurance-state-qTdpe84i.js → insurance-state-CLGc1-_4.js} +1 -1
  173. package/dist/esm/internal-button.entry.js +3 -3
  174. package/dist/esm/justifi-apple-pay_11.entry.js +17 -18
  175. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -6
  176. package/dist/esm/justifi-bank-account-form.entry.js +5 -6
  177. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  178. package/dist/esm/justifi-business-details.entry.js +10 -11
  179. package/dist/esm/justifi-business-form.entry.js +15 -17
  180. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  181. package/dist/esm/justifi-card-form.entry.js +5 -6
  182. package/dist/esm/justifi-checkout.entry.js +5 -6
  183. package/dist/esm/justifi-checkouts-list-filters.entry.js +4 -5
  184. package/dist/esm/justifi-checkouts-list.entry.js +190 -27
  185. package/dist/esm/justifi-details.entry.js +2 -2
  186. package/dist/esm/justifi-dispute-management.entry.js +64 -17
  187. package/dist/esm/justifi-gross-payment-chart.entry.js +11071 -23
  188. package/dist/esm/justifi-order-terminals.entry.js +14 -14
  189. package/dist/esm/justifi-payment-details.entry.js +20 -21
  190. package/dist/esm/justifi-payment-provisioning.entry.js +11 -12
  191. package/dist/esm/justifi-payment-transactions-list.entry.js +10 -11
  192. package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
  193. package/dist/esm/justifi-payments-list.entry.js +12 -13
  194. package/dist/esm/justifi-payout-details.entry.js +15 -16
  195. package/dist/esm/justifi-payout-transactions-list.entry.js +10 -11
  196. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -5
  197. package/dist/esm/justifi-payouts-list.entry.js +13 -14
  198. package/dist/esm/justifi-refund-payment.entry.js +11 -12
  199. package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
  200. package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -9
  201. package/dist/esm/justifi-skeleton.entry.js +3 -3
  202. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -6
  203. package/dist/esm/justifi-terminal-orders-list.entry.js +175 -21
  204. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -4
  205. package/dist/esm/justifi-terminals-list.entry.js +12 -13
  206. package/dist/esm/loader.js +1 -1
  207. package/dist/esm/{package-BCgsLInF.js → package-OGt0dCJl.js} +1 -1
  208. package/dist/esm/pagination-menu.entry.js +1 -1
  209. package/dist/esm/{parts-DnrawQn3.js → parts-CPKMvyV_.js} +1 -1
  210. package/dist/esm/payment-method-option.entry.js +2 -2
  211. package/dist/esm/{payment-provisioning-actions-Dr0YIShV.js → payment-provisioning-actions-cl5xIYnF.js} +2 -2
  212. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +2 -2
  213. package/dist/esm/{payment-provisioning-loading-DI2wDkhm.js → payment-provisioning-loading-Dve2xQA4.js} +1 -1
  214. package/dist/esm/{payment.service-Ckbb7gXA.js → payment.service-5_u-UzTY.js} +1 -2
  215. package/dist/esm/{payments-status-BIDoGw-m.js → payments-status-BlVUt4C1.js} +1 -1
  216. package/dist/esm/{payout.service-BgFKxEoL.js → payout.service-D2zS5y8N.js} +1 -2
  217. package/dist/esm/{payouts-status-1T2NZBoE.js → payouts-status-DCjCGTaa.js} +3 -3
  218. package/dist/esm/{plaid.service-BLguQHs_.js → plaid.service-BiJ65YG8.js} +1 -2
  219. package/dist/esm/radio-list-item.entry.js +2 -2
  220. package/dist/esm/{schema-validations-v6WGlZkq.js → schema-validations-u9_XnlUL.js} +2 -2
  221. package/dist/esm/{skeleton-CXGFVqDf.js → skeleton-BEHo2ypu.js} +1 -1
  222. package/dist/esm/{spinner-kSw6PcwU.js → spinner-DIiQZd6_.js} +1 -1
  223. package/dist/esm/{table-CcyuIutB.js → table-DqGfsdys.js} +3 -3
  224. package/dist/esm/table-filters-menu.entry.js +3 -3
  225. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  226. package/dist/esm/{terminal.service-0oISl5j-.js → terminal.service-CIxDfM7V.js} +1 -2
  227. package/dist/esm/{utils-DcfpJGDZ.js → utils-C1B2hVAB.js} +1 -1
  228. package/dist/esm/{utils-BxYS3WDw.js → utils-CX6puxwf.js} +1 -1
  229. package/dist/esm/webcomponents.js +1 -1
  230. package/dist/module/Plaid.js +2 -2
  231. package/dist/module/{justifi-refund-policy.d.ts → additional-statement.d.ts} +4 -4
  232. package/dist/module/additional-statement.js +6 -0
  233. package/dist/module/{justifi-additional-statement2.js → additional-statement2.js} +8 -8
  234. package/dist/module/badge.js +1 -1
  235. package/dist/module/bank-account-billing-form-simple2.js +1 -1
  236. package/dist/module/billing-form-full2.js +1 -1
  237. package/dist/module/business-bank-account-form-step2.js +1 -1
  238. package/dist/module/business-owners-form-step2.js +20 -26
  239. package/dist/module/button.js +1 -1
  240. package/dist/module/cancellation-policy.d.ts +11 -0
  241. package/dist/module/cancellation-policy.js +6 -0
  242. package/dist/module/{justifi-cancellation-policy2.js → cancellation-policy2.js} +8 -8
  243. package/dist/module/card-billing-form-simple2.js +1 -1
  244. package/dist/module/custom-popper2.js +2 -2
  245. package/dist/module/{checkouts-list-core.d.ts → customer-details.d.ts} +4 -4
  246. package/dist/module/customer-details.js +6 -0
  247. package/dist/module/{justifi-customer-details2.js → customer-details2.js} +8 -8
  248. package/dist/module/dispute-notification.d.ts +11 -0
  249. package/dist/module/dispute-notification.js +6 -0
  250. package/dist/module/dispute-notification2.js +82 -0
  251. package/dist/module/dispute-response.d.ts +11 -0
  252. package/dist/module/dispute-response.js +6 -0
  253. package/dist/module/{dispute-response-core.js → dispute-response2.js} +105 -53
  254. package/dist/module/duplicate-charge.d.ts +11 -0
  255. package/dist/module/duplicate-charge.js +6 -0
  256. package/dist/module/{justifi-duplicate-charge2.js → duplicate-charge2.js} +8 -8
  257. package/dist/module/electronic-evidence.d.ts +11 -0
  258. package/dist/module/electronic-evidence.js +6 -0
  259. package/dist/module/{justifi-electronic-evidence2.js → electronic-evidence2.js} +8 -8
  260. package/dist/module/event-types3.js +119 -1
  261. package/dist/module/form-alert2.js +1 -1
  262. package/dist/module/form-control-date2.js +2 -2
  263. package/dist/module/form-control-file-v22.js +1 -1
  264. package/dist/module/form-control-file2.js +2 -2
  265. package/dist/module/form-control-monetary2.js +2 -2
  266. package/dist/module/form-control-number-masked2.js +2 -2
  267. package/dist/module/form-control-number2.js +3 -3
  268. package/dist/module/form-control-radio2.js +2 -2
  269. package/dist/module/form-control-select2.js +2 -2
  270. package/dist/module/form-control-text2.js +2 -2
  271. package/dist/module/form-control-textarea2.js +3 -3
  272. package/dist/module/get-business.js +4 -1
  273. package/dist/module/get-payment-details.js +1 -1
  274. package/dist/module/hidden-input2.js +2 -2
  275. package/dist/module/iframe-input2.js +4 -4
  276. package/dist/module/internal-button2.js +1 -1
  277. package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
  278. package/dist/module/justifi-bank-account-form.js +1 -1
  279. package/dist/module/justifi-billing-form-full.js +1 -1
  280. package/dist/module/justifi-button2.js +1 -1
  281. package/dist/module/justifi-card-billing-form-simple.js +1 -1
  282. package/dist/module/justifi-card-form.js +1 -1
  283. package/dist/module/justifi-checkout-summary2.js +1 -1
  284. package/dist/module/justifi-checkouts-list-filters.js +3 -3
  285. package/dist/module/justifi-checkouts-list.js +197 -28
  286. package/dist/module/justifi-dispute-management.js +103 -62
  287. package/dist/module/justifi-gross-payment-chart.js +11074 -24
  288. package/dist/module/justifi-header2.js +1 -1
  289. package/dist/module/justifi-modular-checkout2.js +2 -2
  290. package/dist/module/justifi-order-terminals.js +7 -6
  291. package/dist/module/justifi-payment-details.js +9 -9
  292. package/dist/module/justifi-payment-provisioning.js +53 -59
  293. package/dist/module/justifi-payment-transactions-list.js +2 -2
  294. package/dist/module/justifi-payments-list-filters.js +2 -2
  295. package/dist/module/justifi-payments-list.js +2 -2
  296. package/dist/module/justifi-payout-details.js +4 -4
  297. package/dist/module/justifi-payout-transactions-list.js +2 -2
  298. package/dist/module/justifi-payouts-list-filters.js +3 -3
  299. package/dist/module/justifi-payouts-list.js +2 -2
  300. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  301. package/dist/module/justifi-skeleton.js +1 -1
  302. package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
  303. package/dist/module/justifi-terminal-orders-list.js +184 -22
  304. package/dist/module/justifi-terminals-list-filters.js +2 -2
  305. package/dist/module/justifi-terminals-list.js +3 -3
  306. package/dist/module/justifi-tokenize-payment-method2.js +1 -1
  307. package/dist/module/owner-form-inputs2.js +2 -2
  308. package/dist/module/owner-form2.js +177 -33
  309. package/dist/module/package.js +1 -1
  310. package/dist/module/pagination-menu2.js +1 -1
  311. package/dist/module/parts.js +1 -1
  312. package/dist/module/payment-method-option.js +1 -1
  313. package/dist/module/payment-provisioning-form-steps2.js +52 -58
  314. package/dist/module/product-or-service.d.ts +11 -0
  315. package/dist/module/product-or-service.js +6 -0
  316. package/dist/module/{justifi-product-or-service2.js → product-or-service2.js} +8 -8
  317. package/dist/module/radio-list-item2.js +1 -1
  318. package/dist/module/{owner-form-core.d.ts → refund-policy.d.ts} +4 -4
  319. package/dist/module/refund-policy.js +6 -0
  320. package/dist/module/{justifi-refund-policy2.js → refund-policy2.js} +8 -8
  321. package/dist/module/shipping-details.d.ts +11 -0
  322. package/dist/module/shipping-details.js +6 -0
  323. package/dist/module/{justifi-shipping-details2.js → shipping-details2.js} +8 -8
  324. package/dist/module/spinner.js +1 -1
  325. package/dist/module/table-filters-menu2.js +1 -1
  326. package/dist/module/terminal-quantity-selector2.js +1 -1
  327. package/dist/module/utils2.js +1 -1
  328. package/dist/types/actions/business/get-business.d.ts +2 -1
  329. package/dist/types/api/Terminal.d.ts +1 -1
  330. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +69 -5
  331. package/dist/types/components/checkouts-list/justifi-checkouts-list.d.ts +28 -6
  332. package/dist/types/components/dispute-management/{justifi-dispute-notification.d.ts → dispute-notification.d.ts} +1 -1
  333. package/dist/types/components/dispute-management/dispute-response/{justifi-additional-statement.d.ts → additional-statement.d.ts} +1 -1
  334. package/dist/types/components/dispute-management/dispute-response/{justifi-cancellation-policy.d.ts → cancellation-policy.d.ts} +1 -1
  335. package/dist/types/components/dispute-management/dispute-response/{justifi-customer-details.d.ts → customer-details.d.ts} +1 -1
  336. package/dist/types/components/dispute-management/dispute-response/{dispute-response-core.d.ts → dispute-response.d.ts} +21 -10
  337. package/dist/types/components/dispute-management/dispute-response/{justifi-duplicate-charge.d.ts → duplicate-charge.d.ts} +1 -1
  338. package/dist/types/components/dispute-management/dispute-response/{justifi-electronic-evidence.d.ts → electronic-evidence.d.ts} +1 -1
  339. package/dist/types/components/dispute-management/dispute-response/{justifi-product-or-service.d.ts → product-or-service.d.ts} +1 -1
  340. package/dist/types/components/dispute-management/dispute-response/{justifi-refund-policy.d.ts → refund-policy.d.ts} +1 -1
  341. package/dist/types/components/dispute-management/dispute-response/{justifi-shipping-details.d.ts → shipping-details.d.ts} +1 -1
  342. package/dist/types/components/dispute-management/justifi-dispute-management.d.ts +10 -2
  343. package/dist/types/components/gross-payment-chart/justifi-gross-payment-chart.d.ts +13 -2
  344. package/dist/types/components/terminal-orders-list/justifi-terminal-orders-list.d.ts +21 -3
  345. package/dist/types/components.d.ts +304 -551
  346. package/dist/webcomponents/p-0708cb76.entry.js +1 -0
  347. package/dist/webcomponents/p-07236291.entry.js +1 -0
  348. package/dist/webcomponents/p-12ae030d.entry.js +1 -0
  349. package/dist/webcomponents/p-215c6b6b.entry.js +1 -0
  350. package/dist/webcomponents/{p-256c5509.entry.js → p-22d19755.entry.js} +1 -1
  351. package/dist/webcomponents/{p-2425a375.entry.js → p-2dfdecbb.entry.js} +1 -1
  352. package/dist/webcomponents/p-31452258.entry.js +1 -0
  353. package/dist/webcomponents/p-35dd1fc0.entry.js +1 -0
  354. package/dist/webcomponents/p-383b8317.entry.js +1 -0
  355. package/dist/webcomponents/{p-1e877e0a.entry.js → p-3d6b9434.entry.js} +1 -1
  356. package/dist/webcomponents/p-3f5e9afb.entry.js +1 -0
  357. package/dist/webcomponents/p-45c0fb53.entry.js +1 -0
  358. package/dist/webcomponents/p-46477dfe.entry.js +1 -0
  359. package/dist/webcomponents/{p-581808f0.entry.js → p-49a4123c.entry.js} +1 -1
  360. package/dist/webcomponents/{p-befe01ef.entry.js → p-49c13952.entry.js} +1 -1
  361. package/dist/webcomponents/p-4ccf9cd7.entry.js +1 -0
  362. package/dist/webcomponents/p-4ec433f4.entry.js +1 -0
  363. package/dist/webcomponents/p-58b5e08e.entry.js +1 -0
  364. package/dist/webcomponents/p-5G1OMxZz.js +1 -0
  365. package/dist/webcomponents/{p-8253ef9f.entry.js → p-605bd107.entry.js} +1 -1
  366. package/dist/webcomponents/p-6220a384.entry.js +1 -0
  367. package/dist/webcomponents/p-63b7abf3.entry.js +1 -0
  368. package/dist/webcomponents/p-69fdd137.entry.js +1 -0
  369. package/dist/webcomponents/p-6RTf1SXX.js +1 -0
  370. package/dist/webcomponents/{p-3c046adc.entry.js → p-70dcd833.entry.js} +1 -1
  371. package/dist/webcomponents/p-7119fddd.entry.js +1 -0
  372. package/dist/webcomponents/p-7ebed752.entry.js +1 -0
  373. package/dist/webcomponents/p-8964f4ca.entry.js +1 -0
  374. package/dist/webcomponents/p-89cd31f2.entry.js +1 -0
  375. package/dist/webcomponents/p-8aa53ef2.entry.js +1 -0
  376. package/dist/webcomponents/p-8d173a7c.entry.js +1 -0
  377. package/dist/webcomponents/p-9153c121.entry.js +1 -0
  378. package/dist/webcomponents/p-91aef5bf.entry.js +1 -0
  379. package/dist/webcomponents/p-9b944aa4.entry.js +1 -0
  380. package/dist/webcomponents/p-9d021e10.entry.js +1 -0
  381. package/dist/webcomponents/{p-bc2af6b4.entry.js → p-9fc7714d.entry.js} +1 -1
  382. package/dist/webcomponents/{p-CR_-qIuN.js → p-APOabprT.js} +1 -1
  383. package/dist/webcomponents/p-Aacb4jqT.js +1 -0
  384. package/dist/webcomponents/p-B5gBiARs.js +1 -0
  385. package/dist/webcomponents/{p-bn_huKYG.js → p-BICxxa69.js} +1 -1
  386. package/dist/webcomponents/p-BJu1-9kE.js +1 -0
  387. package/dist/webcomponents/{p-Cej-1bD6.js → p-BXyADlAH.js} +1 -1
  388. package/dist/webcomponents/p-Ba8jdOkX.js +1 -0
  389. package/dist/webcomponents/p-BxKbnILQ.js +1 -0
  390. package/dist/webcomponents/{p-2LVpxCS_.js → p-CHo7TfsM.js} +1 -1
  391. package/dist/webcomponents/p-CHw7tICr.js +1 -0
  392. package/dist/webcomponents/{p-DnrawQn3.js → p-CPKMvyV_.js} +1 -1
  393. package/dist/webcomponents/p-Ce_W43gc.js +1 -0
  394. package/dist/webcomponents/{p-B5vVjDc_.js → p-Cm9f5fyh.js} +1 -1
  395. package/dist/webcomponents/p-CqiVXthx.js +1 -0
  396. package/dist/webcomponents/{p-x9fFFf7F.js → p-Cu7hgXL1.js} +1 -1
  397. package/dist/webcomponents/p-Cz_7BuGW.js +1 -0
  398. package/dist/webcomponents/p-D-zwk1J3.js +1 -0
  399. package/dist/webcomponents/{p-D1D2eC05.js → p-D1_eip6x.js} +1 -1
  400. package/dist/webcomponents/p-DSclFZ32.js +1 -0
  401. package/dist/webcomponents/p-DYHjzFnJ.js +1 -0
  402. package/dist/webcomponents/p-Dk26hk5T.js +1 -0
  403. package/dist/webcomponents/{p-CKiAlBsU.js → p-DwoT0UoX.js} +1 -1
  404. package/dist/webcomponents/{p-_-2E_vYf.js → p-DyucNSA4.js} +1 -1
  405. package/dist/webcomponents/p-KXLYEe1D.js +1 -0
  406. package/dist/webcomponents/p-NZS8uCtH.js +1 -0
  407. package/dist/webcomponents/p-OGt0dCJl.js +1 -0
  408. package/dist/webcomponents/p-a1dcdc8b.entry.js +20 -0
  409. package/dist/webcomponents/{p-10be75b8.entry.js → p-a80f69a9.entry.js} +1 -1
  410. package/dist/webcomponents/{p-9581d6a1.entry.js → p-a9695714.entry.js} +1 -1
  411. package/dist/webcomponents/{p-7f814609.entry.js → p-ae91fc9b.entry.js} +1 -1
  412. package/dist/webcomponents/p-av6jyzyC.js +1 -0
  413. package/dist/webcomponents/p-b0b6083f.entry.js +1 -0
  414. package/dist/webcomponents/p-b272a29d.entry.js +1 -0
  415. package/dist/webcomponents/p-b341efd6.entry.js +1 -0
  416. package/dist/webcomponents/{p-e6e56dbb.entry.js → p-b62ff001.entry.js} +1 -1
  417. package/dist/webcomponents/p-c1539656.entry.js +1 -0
  418. package/dist/webcomponents/p-c8f3656f.entry.js +1 -0
  419. package/dist/webcomponents/p-c9fe4f33.entry.js +1 -0
  420. package/dist/webcomponents/{p-09d2efad.entry.js → p-ca87c609.entry.js} +1 -1
  421. package/dist/webcomponents/p-cde76bf8.entry.js +1 -0
  422. package/dist/webcomponents/p-d24240a5.entry.js +1 -0
  423. package/dist/webcomponents/p-d79c5ee4.entry.js +1 -0
  424. package/dist/webcomponents/p-daaa2a99.entry.js +1 -0
  425. package/dist/webcomponents/{p-9db1444f.entry.js → p-db09f306.entry.js} +1 -1
  426. package/dist/webcomponents/{p-354fb3c4.entry.js → p-e020f003.entry.js} +1 -1
  427. package/dist/webcomponents/p-e4cb7c21.entry.js +1 -0
  428. package/dist/webcomponents/p-e5c2215a.entry.js +1 -0
  429. package/dist/webcomponents/p-ea0d7a98.entry.js +1 -0
  430. package/dist/webcomponents/p-ef85717f.entry.js +1 -0
  431. package/dist/webcomponents/p-f1b9cbf0.entry.js +1 -0
  432. package/dist/webcomponents/p-f30069ea.entry.js +1 -0
  433. package/dist/webcomponents/p-f3ff7e00.entry.js +1 -0
  434. package/dist/webcomponents/p-f9aafb21.entry.js +1 -0
  435. package/dist/webcomponents/p-fE5A37L5.js +1 -0
  436. package/dist/webcomponents/p-jIDKmNHy.js +1 -0
  437. package/dist/webcomponents/{p-BJ7GFTiW.js → p-mF5zKtkx.js} +1 -1
  438. package/dist/webcomponents/p-nb_LhbJq.js +1 -0
  439. package/dist/webcomponents/p-oTtn8xDw.js +1 -0
  440. package/dist/webcomponents/p-uZ5KAseb.js +1 -0
  441. package/dist/webcomponents/webcomponents.esm.js +1 -1
  442. package/package.json +1 -1
  443. package/dist/cjs/Dispute-CruQTF6_.js +0 -59
  444. package/dist/cjs/business-additional-questions-schema-CI80eZLJ.js +0 -73
  445. package/dist/cjs/checkouts-list-core.cjs.entry.js +0 -146
  446. package/dist/cjs/checkouts-table-CCxrsy0x.js +0 -55
  447. package/dist/cjs/dispute.service-BbtwY673.js +0 -32
  448. package/dist/cjs/form-control-number_3.cjs.entry.js +0 -249
  449. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +0 -11075
  450. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +0 -61
  451. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +0 -108
  452. package/dist/cjs/terminal-orders-table-Cz6qvzVE.js +0 -83
  453. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +0 -523
  454. package/dist/collection/components/checkouts-list/checkouts-list-core.js +0 -262
  455. package/dist/collection/components/dispute-management/dispute-management-core.js +0 -169
  456. package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +0 -190
  457. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +0 -139
  458. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +0 -199
  459. package/dist/esm/Dispute-BH0Xfn-F.js +0 -57
  460. package/dist/esm/business-additional-questions-schema-DKudYaoE.js +0 -69
  461. package/dist/esm/business-identity-schema-CFhSc0cA.js +0 -99
  462. package/dist/esm/checkouts-list-core.entry.js +0 -144
  463. package/dist/esm/checkouts-table-C8sPHeTm.js +0 -51
  464. package/dist/esm/dispute.service-vlYGy0nR.js +0 -30
  465. package/dist/esm/form-control-number_3.entry.js +0 -245
  466. package/dist/esm/gross-payment-chart-core.entry.js +0 -11073
  467. package/dist/esm/justifi-dispute-management-core.entry.js +0 -59
  468. package/dist/esm/terminal-orders-list-core.entry.js +0 -106
  469. package/dist/esm/terminal-orders-table-C7KOcRpq.js +0 -79
  470. package/dist/module/checkouts-list-core.js +0 -6
  471. package/dist/module/checkouts-list-core2.js +0 -227
  472. package/dist/module/dispute-management-core.js +0 -193
  473. package/dist/module/dispute-response-actions.js +0 -119
  474. package/dist/module/gross-payment-chart-core.d.ts +0 -11
  475. package/dist/module/gross-payment-chart-core.js +0 -6
  476. package/dist/module/gross-payment-chart-core2.js +0 -11096
  477. package/dist/module/justifi-additional-statement.d.ts +0 -11
  478. package/dist/module/justifi-additional-statement.js +0 -6
  479. package/dist/module/justifi-cancellation-policy.d.ts +0 -11
  480. package/dist/module/justifi-cancellation-policy.js +0 -6
  481. package/dist/module/justifi-customer-details.d.ts +0 -11
  482. package/dist/module/justifi-customer-details.js +0 -6
  483. package/dist/module/justifi-dispute-management-core.d.ts +0 -11
  484. package/dist/module/justifi-dispute-management-core.js +0 -6
  485. package/dist/module/justifi-dispute-notification.d.ts +0 -11
  486. package/dist/module/justifi-dispute-notification.js +0 -6
  487. package/dist/module/justifi-dispute-notification2.js +0 -85
  488. package/dist/module/justifi-dispute-response-core.d.ts +0 -11
  489. package/dist/module/justifi-dispute-response-core.js +0 -6
  490. package/dist/module/justifi-dispute-response.d.ts +0 -11
  491. package/dist/module/justifi-dispute-response.js +0 -6
  492. package/dist/module/justifi-dispute-response2.js +0 -198
  493. package/dist/module/justifi-duplicate-charge.d.ts +0 -11
  494. package/dist/module/justifi-duplicate-charge.js +0 -6
  495. package/dist/module/justifi-electronic-evidence.d.ts +0 -11
  496. package/dist/module/justifi-electronic-evidence.js +0 -6
  497. package/dist/module/justifi-product-or-service.d.ts +0 -11
  498. package/dist/module/justifi-product-or-service.js +0 -6
  499. package/dist/module/justifi-refund-policy.js +0 -6
  500. package/dist/module/justifi-shipping-details.d.ts +0 -11
  501. package/dist/module/justifi-shipping-details.js +0 -6
  502. package/dist/module/owner-form-core.js +0 -6
  503. package/dist/module/owner-form-core2.js +0 -262
  504. package/dist/module/terminal-orders-list-core.d.ts +0 -11
  505. package/dist/module/terminal-orders-list-core.js +0 -6
  506. package/dist/module/terminal-orders-list-core2.js +0 -209
  507. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +0 -88
  508. package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +0 -34
  509. package/dist/types/components/dispute-management/dispute-management-core.d.ts +0 -18
  510. package/dist/types/components/dispute-management/dispute-response/justifi-dispute-response.d.ts +0 -35
  511. package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +0 -21
  512. package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +0 -28
  513. package/dist/webcomponents/p--e0ff06z.js +0 -1
  514. package/dist/webcomponents/p-032b4553.entry.js +0 -1
  515. package/dist/webcomponents/p-042daaf8.entry.js +0 -1
  516. package/dist/webcomponents/p-0638f0bd.entry.js +0 -1
  517. package/dist/webcomponents/p-06ecd4cb.entry.js +0 -1
  518. package/dist/webcomponents/p-0b3f4f22.entry.js +0 -1
  519. package/dist/webcomponents/p-164f95ec.entry.js +0 -1
  520. package/dist/webcomponents/p-174eb877.entry.js +0 -1
  521. package/dist/webcomponents/p-1e0be7b0.entry.js +0 -1
  522. package/dist/webcomponents/p-24935254.entry.js +0 -1
  523. package/dist/webcomponents/p-39cc6928.entry.js +0 -1
  524. package/dist/webcomponents/p-4226eb4a.entry.js +0 -1
  525. package/dist/webcomponents/p-474ee3f8.entry.js +0 -1
  526. package/dist/webcomponents/p-485b77ba.entry.js +0 -1
  527. package/dist/webcomponents/p-52908814.entry.js +0 -1
  528. package/dist/webcomponents/p-587886f1.entry.js +0 -1
  529. package/dist/webcomponents/p-5ef355ce.entry.js +0 -1
  530. package/dist/webcomponents/p-6917aa3c.entry.js +0 -1
  531. package/dist/webcomponents/p-6d81822f.entry.js +0 -1
  532. package/dist/webcomponents/p-6ecb3ef9.entry.js +0 -1
  533. package/dist/webcomponents/p-79713014.entry.js +0 -1
  534. package/dist/webcomponents/p-798f4708.entry.js +0 -1
  535. package/dist/webcomponents/p-7f0f72c6.entry.js +0 -1
  536. package/dist/webcomponents/p-80652cf8.entry.js +0 -1
  537. package/dist/webcomponents/p-82fe02e4.entry.js +0 -1
  538. package/dist/webcomponents/p-83147f23.entry.js +0 -1
  539. package/dist/webcomponents/p-870fac9e.entry.js +0 -1
  540. package/dist/webcomponents/p-8c2427ed.entry.js +0 -1
  541. package/dist/webcomponents/p-92de00d7.entry.js +0 -1
  542. package/dist/webcomponents/p-956eca2e.entry.js +0 -1
  543. package/dist/webcomponents/p-9f74d7ea.entry.js +0 -1
  544. package/dist/webcomponents/p-B--N37zY.js +0 -1
  545. package/dist/webcomponents/p-BCgsLInF.js +0 -1
  546. package/dist/webcomponents/p-BH0Xfn-F.js +0 -1
  547. package/dist/webcomponents/p-Bg2SZArf.js +0 -1
  548. package/dist/webcomponents/p-BnaR7f2G.js +0 -1
  549. package/dist/webcomponents/p-BovgIz83.js +0 -1
  550. package/dist/webcomponents/p-BsQy297i.js +0 -1
  551. package/dist/webcomponents/p-CDf5H0TB.js +0 -1
  552. package/dist/webcomponents/p-CUI41_5y.js +0 -1
  553. package/dist/webcomponents/p-CX36GHQP.js +0 -1
  554. package/dist/webcomponents/p-Cf6HoQKl.js +0 -1
  555. package/dist/webcomponents/p-CsdYMTrc.js +0 -1
  556. package/dist/webcomponents/p-D4OlsyTo.js +0 -1
  557. package/dist/webcomponents/p-D8EGHc_m.js +0 -1
  558. package/dist/webcomponents/p-DPmnGTmg.js +0 -1
  559. package/dist/webcomponents/p-DWevPe7C.js +0 -1
  560. package/dist/webcomponents/p-Dbg501Lu.js +0 -1
  561. package/dist/webcomponents/p-DcBvJu0k.js +0 -1
  562. package/dist/webcomponents/p-DkdzUTnl.js +0 -1
  563. package/dist/webcomponents/p-GJyHX3us.js +0 -1
  564. package/dist/webcomponents/p-HT_4DkD0.js +0 -1
  565. package/dist/webcomponents/p-MDZuGvsl.js +0 -1
  566. package/dist/webcomponents/p-XrKLre8M.js +0 -1
  567. package/dist/webcomponents/p-a80d958d.entry.js +0 -1
  568. package/dist/webcomponents/p-b06910b0.entry.js +0 -1
  569. package/dist/webcomponents/p-b2447726.entry.js +0 -1
  570. package/dist/webcomponents/p-b483e71b.entry.js +0 -1
  571. package/dist/webcomponents/p-bfe2583d.entry.js +0 -1
  572. package/dist/webcomponents/p-c73631f0.entry.js +0 -1
  573. package/dist/webcomponents/p-c8f7ebf6.entry.js +0 -1
  574. package/dist/webcomponents/p-d7633e10.entry.js +0 -1
  575. package/dist/webcomponents/p-d878df6c.entry.js +0 -1
  576. package/dist/webcomponents/p-da882bd1.entry.js +0 -1
  577. package/dist/webcomponents/p-dd1cfb9e.entry.js +0 -1
  578. package/dist/webcomponents/p-ddf699e6.entry.js +0 -20
  579. package/dist/webcomponents/p-de836ec9.entry.js +0 -1
  580. package/dist/webcomponents/p-ea30cf08.entry.js +0 -1
  581. package/dist/webcomponents/p-edf5a854.entry.js +0 -1
  582. package/dist/webcomponents/p-f24563ab.entry.js +0 -1
  583. package/dist/webcomponents/p-f4aeda71.entry.js +0 -1
  584. package/dist/webcomponents/p-faa090a5.entry.js +0 -1
  585. package/dist/webcomponents/p-fc7ba195.entry.js +0 -1
  586. package/dist/webcomponents/p-hhdRync5.js +0 -1
  587. package/dist/webcomponents/p-niGr4RT2.js +0 -1
  588. package/dist/webcomponents/p-pL4dNfsl.js +0 -1
  589. package/dist/webcomponents/p-qcQTYcr3.js +0 -1
  590. package/dist/webcomponents/p-uCg79W3M.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,H as s,g as n}from"./p-CV0Pyo1O.js";import{A as a}from"./p-CYQvLgSs.js";import{A as o,p as r,q as h,r as l,s as c,t as d,u,C as p,e as y,v as m,I as v,w as f,x as g,y as M}from"./p-NZS8uCtH.js";import{S as b}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as k}from"./p-uZ5KAseb.js";import{c as w,o as j,a as P,g as T,b as A}from"./p-BArmtmkq.js";import{t as N,r as C}from"./p-CPKMvyV_.js";import{f as I}from"./p-BRnBHsdq.js";import{w as E,c as D}from"./p-DVJaoI_m.js";import{H as S}from"./p-jIDKmNHy.js";import{H as O,b as L,h as x,i as z}from"./p-D-zwk1J3.js";import{H as _}from"./p-DYHjzFnJ.js";import{J as R}from"./p-Cz_7BuGW.js";import{c as U}from"./p-mF5zKtkx.js";import"./p-HXpYMWUU.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{g as B,a as Y}from"./p-Cm9f5fyh.js";import{C as F}from"./p-fE5A37L5.js";import{P as Q}from"./p-av6jyzyC.js";import{P as V,a as H,b as G}from"./p-DkoufM1t.js";import{C as q}from"./p-ZpPDShvP.js";import"./p-D8GTwl9v.js";import"./p-OGt0dCJl.js";const W=class{constructor(i){t(this,i),this.radioClick=e(this,"radio-click",7),this.checked=!1,this.hidden=!1}render(){return i(b,{key:"02955940079320bd9c6bf94e239545385ac36458"},i("radio-list-item",{key:"fc6b98e456e4326b843b2b3248b7327436767cf4",name:this.name,value:this.value,label:this.label,checked:this.checked,hidden:this.hidden,class:this.class,"onRadio-click":t=>this.radioClick.emit(t.detail)}))}};var Z;!function(t){t.UNAVAILABLE="UNAVAILABLE",t.SESSION_ERROR="SESSION_ERROR",t.MERCHANT_VALIDATION_ERROR="MERCHANT_VALIDATION_ERROR",t.PAYMENT_PROCESSING_ERROR="PAYMENT_PROCESSING_ERROR",t.USER_CANCELLED="USER_CANCELLED"}(Z||(Z={}));class J{constructor(){this.api=a()}initialize(t){if(this.applePayConfig=new o(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},body:{domain:window.location.hostname,display_name:this.applePayConfig.displayName}})}catch(t){throw console.error("Backend validation failed:",t),new Error("Merchant validation failed")}}async processPayment(t,e,i){const s=await this.api.post({endpoint:"apple_pay/process_token",authToken:t,body:i,headers:{"Sub-Account":e}});return{success:s.id&&!!s.data.token,data:s}}isAvailable(){return r.isApplePaySupported()&&r.canMakePayments()}async canMakePaymentsWithActiveCard(){if(!this.applePayConfig)throw new Error("Apple Pay not initialized. Call initialize() first.");return await r.canMakePaymentsWithActiveCard(this.applePayConfig.merchantIdentifier)}async startPaymentSession(t,e,i){if(!this.applePayConfig)throw console.error("[ApplePayService] Missing applePayConfig. Did you call initialize()?"),new Error("Apple Pay not initialized. Call initialize() first.");const s=new h(t);if(!s.isValid){const t=[];throw s.countryCode||t.push("countryCode"),s.currencyCode||t.push("currencyCode"),s.merchantCapabilities&&0!==s.merchantCapabilities.length||t.push("merchantCapabilities"),s.supportedNetworks&&0!==s.supportedNetworks.length||t.push("supportedNetworks"),s.total&&s.total.label&&s.total.amount||t.push("total"),console.error("[ApplePayService] Payment request is invalid. Missing/invalid:",t),new Error("Invalid payment request provided")}return this.currentPaymentRequest=s,new Promise(((t,n)=>{try{if("undefined"==typeof window||!("ApplePaySession"in window))return console.error("[ApplePayService] ApplePaySession not available on window"),n({success:!1,error:{code:Z.UNAVAILABLE,message:"ApplePaySession API is not available in this environment"}});this.currentSession=new window.ApplePaySession(3,s),this.setupSessionEventHandlers(t,n,e,i),this.currentSession.begin()}catch(t){console.error("[ApplePayService] Exception while starting session:",t),n({success:!1,error:{code:Z.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,s){this.currentSession&&this.applePayConfig&&this.currentPaymentRequest?(this.currentSession.onvalidatemerchant=async()=>{try{if(!i)throw console.error("[ApplePayService] Missing authToken for merchant validation"),new Error("Authentication token not provided.");const t=await this.validateMerchant(i,s);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),t&&t.stack&&console.error("Error stack:",t.stack),this.currentSession.abort(),e({success:!1,error:{code:Z.MERCHANT_VALIDATION_ERROR,message:t instanceof Error?t.message:"Merchant validation failed"}})}},this.currentSession.onpaymentauthorized=async n=>{try{const a=n.payment,o=Object.assign(Object.assign({},a.token),{product_details:{name:this.currentPaymentRequest.total.label,price:r.parseAmount(this.currentPaymentRequest.total.amount),description:this.currentPaymentRequest.total.label}}),h=await this.processPayment(i,s,o);h.success?(this.currentSession.completePayment({status:l.STATUS_SUCCESS}),t({success:!0,token:a.token,paymentMethodId:h.data.id})):(console.error("PSP reported payment failure:",h.data),this.currentSession.completePayment({status:l.STATUS_FAILURE}),e({success:!1,error:{code:Z.PAYMENT_PROCESSING_ERROR,message:"Payment processing failed"}}))}catch(t){console.error("=== PAYMENT PROCESSING ERROR ==="),console.error("Error processing payment:",t),t&&t.stack&&console.error("Error stack:",t.stack),this.currentSession.completePayment({status:l.STATUS_FAILURE}),e({success:!1,error:{code:Z.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:l.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:Z.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:Z.SESSION_ERROR,message:"Apple Pay session error occurred"}})})):console.error("[ApplePayService] setupSessionEventHandlers called without required state",{hasSession:Boolean(this.currentSession),hasConfig:Boolean(this.applePayConfig),hasPaymentRequest:Boolean(this.currentPaymentRequest)})}static createPaymentRequest(t,e,i="US",s="USD"){return{countryCode:i,currencyCode:s,merchantCapabilities:r.getDefaultMerchantCapabilities(),supportedNetworks:r.getDefaultSupportedNetworks(),total:r.createLineItem(e,t)}}getApplePayConfig(){return this.applePayConfig}}const K=t=>{const{isLoading:e}=t;return e?i("div",{class:"container-fluid p-0"},i("div",{class:"row mb-3"},i("div",{class:"col-12 align-content-center"},i(k,{height:"44px",width:"100%",styles:{borderRadius:"8px"}})))):null},X=t=>i("div",{class:"apple-pay-button-container"},i("button",Object.assign({class:(()=>{let e="apple-pay-button";switch(t.buttonStyle){case c.WHITE:e+=" apple-pay-button-white";break;case c.WHITE_OUTLINE:e+=" apple-pay-button-white-outline";break;default:e+=" apple-pay-button-black"}switch(t.buttonType){case d.BUY:e+=" apple-pay-button-type-buy";break;case d.DONATE:e+=" apple-pay-button-type-donate";break;default:e+=" apple-pay-button-type-plain"}return(t.disabled||t.isProcessing||!t.isAvailable)&&(e+=" disabled"),e})(),style:{width:t.width,height:t.height},onClick:()=>{!t.disabled&&!t.isProcessing&&t.isAvailable&&t.clickHandler&&t.clickHandler()},disabled:t.disabled||t.isProcessing||!t.isAvailable,"aria-label":"Pay with Apple Pay",type:"button"},t),t.isProcessing&&i("div",{class:"processing-overlay"},i("div",{class:"spinner"}),i("span",null,"Processing..."))),i("style",null,"\n .apple-pay-button-container {\n display: block;\n position: relative;\n width: 100%;\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 ")),$=class{constructor(i){t(this,i),this.applePayStarted=e(this,"applePayStarted",7),this.applePayCompleted=e(this,"applePayCompleted",7),this.applePayCancelled=e(this,"applePayCancelled",7),this.applePayError=e(this,"applePayError",7),this.sdkLoaded=!1,this.countryCode="US",this.merchantIdentifier="merchant.com.staging-justifi.checkout-dev",this.merchantDisplayName="JustiFi Checkout",this.initiativeContext="dev-checkout.justifi-staging.com",this.buttonType=d.PLAIN,this.buttonStyle=c.BLACK,this.disabled=!1,this.showSkeleton=!0,this.width="100%",this.height="48px",this.isLoading=!0,this.isProcessing=!1,this.isAvailable=!1,this.canMakePayments=!1,this.isConfigValid=!0,this.error=null,this.handleApplePayClick=async()=>{var t,e,i;if(!this.isProcessing&&!this.disabled&&this.isAvailable)try{this.isProcessing=!0,this.error=null,this.applePayStarted.emit();const i={countryCode:this.countryCode,currencyCode:w.paymentCurrency,merchantCapabilities:[u.SUPPORTS_3DS,u.SUPPORTS_CREDIT,u.SUPPORTS_DEBIT],supportedNetworks:r.getDefaultSupportedNetworks(),total:r.createLineItem(w.paymentDescription,w.paymentAmount)},s=await this.applePayService.startPaymentSession(i,w.authToken,w.accountId);s.success?this.applePayCompleted.emit({success:!0,token:s.token,paymentMethodId:s.paymentMethodId}):(this.applePayCompleted.emit({success:!1,error:s.error}),this.applePayError.emit({error:(null===(t=s.error)||void 0===t?void 0:t.message)||"Payment failed",code:(null===(e=s.error)||void 0===e?void 0:e.code)||$.ErrorCode.PAYMENT_FAILED}))}catch(t){if((null===(i=null==t?void 0:t.error)||void 0===i?void 0:i.code)===Z.USER_CANCELLED)this.applePayCancelled.emit();else{const e=t instanceof Error?t.message:"Payment failed";this.error=e,this.applePayError.emit({error:e,code:$.ErrorCode.PAYMENT_FAILED}),this.applePayCompleted.emit({success:!1,error:e})}}finally{this.isProcessing=!1}}}componentWillLoad(){this.isAvailable=r.isApplePaySupported(),this.isAvailable?w.checkoutLoaded?this.loadApplePaySDK():j("checkoutLoaded",(t=>{t&&this.loadApplePaySDK()})):this.isLoading=!1}loadApplePaySDK(){if(this.sdkLoaded)return;this.sdkLoaded=!0;const t=document.createElement("script");t.src="https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",t.async=!0,t.onload=()=>this.initializeApplePay(),document.head.appendChild(t)}async initializeApplePay(){try{if(this.isLoading=!0,this.error=null,this.isConfigValid=!0,!(Boolean(w.paymentAmount)&&Boolean(w.paymentCurrency)&&Boolean(w.authToken)))return this.error="Missing required Apple Pay configuration",this.isConfigValid=!1,this.applePayError.emit({error:this.error,code:$.ErrorCode.CONFIG_ERROR}),void(this.isLoading=!1);if(this.isAvailable=r.isApplePaySupported(),this.canMakePayments=r.canMakePayments(),!this.isAvailable)return this.error="Apple Pay is not supported on this device",this.applePayError.emit({error:this.error,code:$.ErrorCode.NOT_SUPPORTED}),void(this.isLoading=!1);if(!this.canMakePayments)return this.error="Apple Pay is not available",this.applePayError.emit({error:this.error,code:$.ErrorCode.NOT_AVAILABLE}),void(this.isLoading=!1);const t={merchantIdentifier:this.merchantIdentifier,displayName:this.merchantDisplayName,initiative:"web",initiativeContext:this.initiativeContext,buttonType:this.buttonType,buttonStyle:this.buttonStyle};this.applePayService=new J,this.applePayService.initialize(t),await this.applePayService.canMakePaymentsWithActiveCard()||console.warn("No Apple Pay cards available, but continuing...")}catch(t){this.error=t instanceof Error?t.message:"Failed to initialize Apple Pay",this.applePayError.emit({error:this.error,code:$.ErrorCode.INITIALIZATION_ERROR})}finally{this.isLoading=!1}}async isSupported(){return this.isAvailable&&this.canMakePayments}async getPaymentMethods(){return this.isAvailable?r.getDefaultSupportedNetworks():[]}async abort(){var t;null===(t=this.applePayService)||void 0===t||t.abortPaymentSession(),this.isProcessing=!1,this.applePayCancelled.emit()}render(){if(!w.applePayEnabled)return null;if(!this.isAvailable)return null;const t=!this.isLoading&&this.isAvailable&&this.canMakePayments&&this.isConfigValid;return i(b,null,i("div",{class:"apple-pay-container"},i(K,{isLoading:this.isLoading}),t&&i(X,{buttonType:this.buttonType,buttonStyle:this.buttonStyle,disabled:this.disabled,isProcessing:this.isProcessing,isAvailable:this.isAvailable,clickHandler:this.handleApplePayClick,width:this.width,height:this.height})),i("style",null,"\n .apple-pay-container {\n width: 100%;\n }\n "))}};$.ErrorCode={CONFIG_ERROR:"CONFIG_ERROR",NOT_SUPPORTED:"NOT_SUPPORTED",NOT_AVAILABLE:"NOT_AVAILABLE",INITIALIZATION_ERROR:"INITIALIZATION_ERROR",PAYMENT_FAILED:"PAYMENT_FAILED"};const tt=class{constructor(e){t(this,e),this.variant="primary",this.type="button"}render(){return i(b,{key:"f1ac17863df571d72e7db9b748b1980218145322"},i("internal-button",{key:"0b7052d216fb79ed5d9f90aacff97d39dce87473",text:this.text,variant:this.variant,isLoading:this.isLoading,clickHandler:this.clickHandler,type:this.type,disabled:this.disabled,class:this.class,customStyle:this.customStyle,hidden:this.hidden}))}},et=class{constructor(e){t(this,e)}render(){return i(b,{key:"4dda3e1e4f81cfda61011706c2f4e3104815d97c"},i("section",{key:"f8bbdeb389afbfc906e6cc956a68f9a3485ed43c"},i("div",{key:"2f8019ae43d5d4a5835ec6d5674304bd321d34b7"},i("div",{key:"67626fe735d0c0372fe638960198592027fb24f5",part:N},null==w?void 0:w.paymentDescription),i("div",{key:"48d8b4b930d2f3b199bc0a59c93ef4f1339f7649"},i("span",{key:"ca6413ce719ae81eaa4654911cdfc09d63f9a9db",part:N},"Total")," ",i("span",{key:"9ed165b192efa2ecf2f77a129d33161e36b1594f",part:N},I(+(null==w?void 0:w.totalAmount)))))))}},it=t=>{const{isLoading:e}=t;return e?i("div",{class:"container-fluid p-0"},i("div",{class:"row mb-3"},i("div",{class:"col-12 align-content-center"},i(k,{height:"44px",width:"100%",styles:{borderRadius:"8px"}})))):null};var st;!function(t){t.initialize="justifi.googlePay.initialize",t.ready="justifi.googlePay.ready",t.sdkLoaded="justifi.googlePay.sdkLoaded",t.initializeResult="justifi.googlePay.initializeResult",t.error="justifi.googlePay.error",t.buttonClicked="justifi.googlePay.buttonClicked",t.startPayment="justifi.googlePay.startPayment",t.paymentSuccess="justifi.googlePay.paymentSuccess",t.paymentCanceled="justifi.googlePay.paymentCanceled",t.paymentError="justifi.googlePay.paymentError"}(st||(st={}));const nt=class{constructor(i){t(this,i),this.googlePayStarted=e(this,"googlePayStarted",7),this.googlePayCompleted=e(this,"googlePayCompleted",7),this.googlePayCancelled=e(this,"googlePayCancelled",7),this.environment="TEST",this.iframeReady=!1,this.sdkLoaded=!1,this.isReadyToPay=!1,this.handleMessage=t=>{if(t.origin!==this.iframeOrigin)return;const{eventType:e,data:i}=t.data||{};switch(e){case st.ready:this.iframeReady=!0;break;case st.sdkLoaded:this.sdkLoaded=!0,this.sendInitialize();break;case st.initializeResult:this.isReadyToPay=i.isReadyToPay,i.error&&console.error("Init error:",i.error);break;case st.error:console.error("Google Pay error:",i);break;case st.buttonClicked:this.googlePayStarted.emit(),this.sendStartPayment();break;case st.paymentSuccess:this.googlePayCompleted.emit({success:!0,paymentMethodId:i.paymentMethodId,cardNetwork:i.cardNetwork,cardDetails:i.cardDetails});break;case st.paymentCanceled:this.googlePayCancelled.emit();break;case st.paymentError:this.googlePayCompleted.emit({success:!1,error:{code:i.code,message:i.message}})}}}async componentWillLoad(){await E(),this.iframeOrigin=D.iframeOrigin}componentDidLoad(){window.addEventListener("message",this.handleMessage)}disconnectedCallback(){window.removeEventListener("message",this.handleMessage)}sendInitialize(){var t;(null===(t=this.iframeElement)||void 0===t?void 0:t.contentWindow)&&this.iframeElement.contentWindow.postMessage({eventType:st.initialize,data:{environment:this.environment,gatewayMerchantId:w.accountId,merchantName:this.merchantName,authToken:w.authToken,accountId:w.accountId}},this.iframeOrigin)}sendStartPayment(){var t;if(!(null===(t=this.iframeElement)||void 0===t?void 0:t.contentWindow))return;const e={totalPrice:String(w.paymentAmount/100),totalPriceStatus:"FINAL",currencyCode:w.paymentCurrency||"USD"};this.iframeElement.contentWindow.postMessage({eventType:st.startPayment,data:e},this.iframeOrigin)}render(){return w.checkoutLoaded?w.googlePayEnabled?i(s,null,i(it,{isLoading:!this.isReadyToPay}),i("iframe",{ref:t=>this.iframeElement=t,src:`${this.iframeOrigin}/v2/googlePay`,allow:"payment",style:{border:"none",width:"100%",height:"48px",display:this.isReadyToPay?"block":"none"}})):(console.warn("Google Pay is not enabled for this checkout"),null):null}},at=class{constructor(e){t(this,e),this.levels={h1:S,h2:O,h3:_},this.level="h1"}render(){return i(b,{key:"879e301ec35e7cc536dec135e11daf140c67eeed"},i(this.levels[this.level],{key:"1766cb9a4d84bee1b3365b4df93515274cf31565",text:this.text,class:this.class}))}},ot=class{constructor(i){t(this,i),this.errorEvent=e(this,"error-event",7),this.submitEvent=e(this,"submit-event",7),this.checkoutChangedEvent=e(this,"checkout-changed",7),this.plaidService=new Q,this.handleApplePayStarted=()=>{w.isWalletProcessing=!0},this.handleGooglePayStarted=()=>{w.isWalletProcessing=!0},this.handleGooglePayCompleted=t=>{const{success:e,paymentMethodId:i,error:s}=t.detail||{};e&&i?(w.isWalletProcessing=!1,w.paymentToken=i,w.selectedPaymentMethod={type:V.GOOGLE_PAY},this.submitCheckout()):(w.isWalletProcessing=!1,this.errorEvent.emit({message:s&&s.message||"Google Pay payment failed",errorCode:y.TOKENIZE_ERROR,severity:p.ERROR}))},this.handleGooglePayCancelled=()=>{w.isWalletProcessing=!1,w.paymentToken=void 0,w.selectedPaymentMethod=void 0},this.handleApplePayCompleted=t=>{const{success:e,token:i,paymentMethodId:s,error:n}=t.detail;e&&i?(w.isWalletProcessing=!1,w.paymentToken=s,w.selectedPaymentMethod={type:V.APPLE_PAY},this.submitCheckout()):(w.isWalletProcessing=!1,console.error("Apple Pay completed but failed:",n),this.errorEvent.emit({message:(null==n?void 0:n.message)||"Apple Pay payment failed",errorCode:y.TOKENIZE_ERROR,severity:p.ERROR}))},this.handleApplePayError=t=>{w.isWalletProcessing=!1;const{error:e,code:i}=t.detail;console.error("Apple Pay error:",e),this.errorEvent.emit({message:e||"Apple Pay error occurred",errorCode:`APPLE_PAY_${i}`,severity:p.ERROR})},this.handleApplePayCancelled=()=>{w.isWalletProcessing=!1,w.paymentToken=void 0,w.selectedPaymentMethod=void 0}}connectedCallback(){this.observer=new MutationObserver((()=>{this.queryFormRefs(),this.setupApplePayListeners(),this.setupGooglePayListeners()})),this.observer.observe(this.hostEl,{childList:!0,subtree:!0}),w.checkoutId=this.checkoutId;const t={authToken:this.authToken,checkoutId:this.checkoutId,service:new F};this.getCheckout=(({authToken:t,checkoutId:e,service:i})=>async({onSuccess:s,onError:n})=>{var a;try{const o=await i.fetchCheckout(t,e);if(o.error)return n({error:Y(o.error),code:B(null===(a=o.error)||void 0===a?void 0:a.code),severity:p.ERROR});s({checkout:o.data})}catch(t){const e=B(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:p.ERROR})}})(t),this.completeCheckout=(({authToken:t,checkoutId:e,service:i})=>async({payment:s,onSuccess:n,onError:a})=>{var o;try{const r=await i.complete(t,e,s);if(r.error)return a({error:Y(r.error),code:B(null===(o=r.error)||void 0===o?void 0:o.code),severity:p.ERROR});n({checkout:r.data})}catch(t){const e=B(null==t?void 0:t.code);return a({error:t.message||t,code:e,severity:p.ERROR})}})(t),P((()=>{this.emitCheckoutChanged()}))}componentWillLoad(){this.analytics=new R(this),U(),w.authToken=this.authToken,this.fetchCheckout(),L("set",(t=>{const e=z[t];void 0!==e&&x(t,e)&&this.fetchCheckout()}))}componentDidLoad(){this.queryFormRefs(),this.setupApplePayListeners(),this.setupGooglePayListeners()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.removeApplePayListeners(),this.removeGooglePayListeners()}fetchCheckout(){this.authToken&&this.checkoutId?this.getCheckout&&this.getCheckout({onSuccess:({checkout:t})=>{this.updateStore(t),t.status!==v.completed?t.status!==v.expired||this.errorEvent.emit({message:m.CHECKOUT_EXPIRED,errorCode:y.CHECKOUT_EXPIRED,severity:p.ERROR}):this.errorEvent.emit({message:m.CHECKOUT_ALREADY_COMPLETED,errorCode:y.CHECKOUT_ALREADY_COMPLETED,severity:p.ERROR})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:t.code,severity:t.severity})}}):this.errorEvent.emit({message:m.NOT_AUTHENTICATED,errorCode:y.NOT_AUTHENTICATED,severity:p.ERROR})}updateStore(t){var e,i,s,n,a,o,r;w.accountId=t.account_id,w.checkoutLoaded=!0,w.paymentMethods=t.payment_methods.map((t=>new H(t))),w.paymentMethodGroupId=t.payment_method_group_id,w.paymentDescription=t.payment_description,w.totalAmount=t.total_amount,w.paymentAmount=t.payment_amount,w.bnplEnabled=t.payment_settings.bnpl_payments,w.insuranceEnabled=t.payment_settings.insurance_payments,w.bankAccountVerification=null===(e=t.payment_settings)||void 0===e?void 0:e.bank_account_verification,w.applePayEnabled=null===(i=t.payment_settings)||void 0===i?void 0:i.apple_payments,w.googlePayEnabled=null===(s=t.payment_settings)||void 0===s?void 0:s.google_payments,w.bnplProviderClientId=null===(n=null==t?void 0:t.bnpl)||void 0===n?void 0:n.provider_client_id,w.bnplProviderMode=null===(a=null==t?void 0:t.bnpl)||void 0===a?void 0:a.provider_mode,w.bnplProviderApiVersion=null===(o=null==t?void 0:t.bnpl)||void 0===o?void 0:o.provider_api_version,w.bnplProviderCheckoutUrl=null===(r=null==t?void 0:t.bnpl)||void 0===r?void 0:r.provider_checkout_url}emitCheckoutChanged(){const t={availablePaymentMethodTypes:T(),selectedPaymentMethod:w.selectedPaymentMethod,savedPaymentMethods:w.paymentMethods};this.checkoutChangedEvent.emit(t)}queryFormRefs(){if(this.billingFormRef=this.hostEl.querySelector("justifi-billing-form, justifi-bank-account-billing-form-simple, justifi-card-billing-form-simple, justifi-billing-form-full, justifi-tokenize-payment-method"),this.applePayRef=this.hostEl.querySelector("justifi-apple-pay"),this.googlePayRef=this.hostEl.querySelector("justifi-google-pay"),this.paymentMethodFormRef=this.hostEl.querySelector("justifi-card-form, justifi-bank-account-form, justifi-tokenize-payment-method"),!w.selectedPaymentMethod&&this.paymentMethodFormRef){const t=this.paymentMethodFormRef.tagName.toLowerCase();"justifi-card-form"===t?w.selectedPaymentMethod={type:V.NEW_CARD}:"justifi-bank-account-form"===t&&(w.selectedPaymentMethod={type:V.NEW_BANK_ACCOUNT})}this.insuranceFormRef=this.hostEl.querySelector("justifi-season-interruption-insurance")}setupApplePayListeners(){this.applePayRef&&(this.applePayRef.addEventListener("applePayStarted",this.handleApplePayStarted),this.applePayRef.addEventListener("applePayCompleted",this.handleApplePayCompleted),this.applePayRef.addEventListener("applePayError",this.handleApplePayError),this.applePayRef.addEventListener("applePayCancelled",this.handleApplePayCancelled))}removeApplePayListeners(){this.applePayRef&&(this.applePayRef.removeEventListener("applePayStarted",this.handleApplePayStarted),this.applePayRef.removeEventListener("applePayCompleted",this.handleApplePayCompleted),this.applePayRef.removeEventListener("applePayError",this.handleApplePayError),this.applePayRef.removeEventListener("applePayCancelled",this.handleApplePayCancelled))}setupGooglePayListeners(){this.googlePayRef&&(this.googlePayRef.addEventListener("googlePayStarted",this.handleGooglePayStarted),this.googlePayRef.addEventListener("googlePayCompleted",this.handleGooglePayCompleted),this.googlePayRef.addEventListener("googlePayCancelled",this.handleGooglePayCancelled))}removeGooglePayListeners(){this.googlePayRef&&(this.googlePayRef.removeEventListener("googlePayStarted",this.handleGooglePayStarted),this.googlePayRef.removeEventListener("googlePayCompleted",this.handleGooglePayCompleted),this.googlePayRef.removeEventListener("googlePayCancelled",this.handleGooglePayCancelled))}async tokenizePaymentMethod(t){var e,i,s;const n=null!==(i=await(null===(e=this.billingFormRef)||void 0===e?void 0:e.getValues()))&&void 0!==i?i:{},a=Object.assign(Object.assign({},t),n),o=Object.assign({accountId:w.accountId,payment_method_group_id:void 0},a);w.savePaymentMethod&&(o.payment_method_group_id=w.paymentMethodGroupId);const r=await(null===(s=this.paymentMethodFormRef)||void 0===s?void 0:s.tokenize({clientId:this.authToken,paymentMethodMetadata:o,account:w.accountId}));return r.error?r:(w.paymentToken=r.id,r.id)}async fillBillingForm(t){w.billingFormFields=t}async setSelectedPaymentMethod(t){w.selectedPaymentMethod=t,w.paymentToken=t.id||void 0}async validate(){var t,e;const i=[];w.insuranceEnabled&&this.insuranceFormRef&&i.push(this.insuranceFormRef.validate());const s=(null===(t=w.selectedPaymentMethod)||void 0===t?void 0:t.type)===V.NEW_CARD,n=(null===(e=w.selectedPaymentMethod)||void 0===e?void 0:e.type)===V.NEW_BANK_ACCOUNT;if((s||n)&&(this.paymentMethodFormRef&&i.push(this.paymentMethodFormRef.validate()),this.billingFormRef&&i.push(this.billingFormRef.validate())),0===i.length)return!0;try{return!!(await Promise.all(i)).every((t=>"boolean"==typeof t?t:!1!==(null==t?void 0:t.isValid)))||(this.errorEvent.emit({message:"Validation error",errorCode:y.VALIDATION_ERROR,severity:p.ERROR}),!1)}catch(t){return!1}}async submitCheckout(t){var e,i,s,n,a;if(w.isSubmitting)return;w.isSubmitting=!0;const o=await this.validate();if(!w.selectedPaymentMethod)return w.isSubmitting=!1,void this.errorEvent.emit({message:"No payment method selected.",errorCode:y.VALIDATION_ERROR,severity:p.ERROR});const r=(null===(e=w.selectedPaymentMethod)||void 0===e?void 0:e.type)===V.NEW_CARD,h=(null===(i=w.selectedPaymentMethod)||void 0===i?void 0:i.type)===V.NEW_BANK_ACCOUNT,l=(null===(s=w.selectedPaymentMethod)||void 0===s?void 0:s.type)===V.PLAID;if(r||h){const e=await this.tokenizePaymentMethod(t);if(null==e?void 0:e.error)return w.isSubmitting=!1,void this.errorEvent.emit({message:e.error.message,errorCode:y.TOKENIZE_ERROR,severity:p.ERROR})}if(l&&!w.paymentToken){const t=w.plaidPublicToken,e=w.plaidLinkTokenId;if(!t)return w.isSubmitting=!1,void this.errorEvent.emit({message:"Missing Plaid public token. Please connect your bank.",errorCode:y.TOKENIZE_ERROR,severity:p.ERROR});try{const i=await this.plaidService.tokenizeBankAccount(w.authToken,w.accountId,t,e||void 0,w.savePaymentMethod?w.paymentMethodGroupId:void 0);if(null==i?void 0:i.error)return w.isSubmitting=!1,void this.errorEvent.emit({message:"string"==typeof i.error?i.error:i.error.message||"Failed to tokenize bank account",errorCode:y.TOKENIZE_ERROR,severity:p.ERROR});const s=null==i?void 0:i.data,a=(null===(n=null==s?void 0:s.bank_account)||void 0===n?void 0:n.token)||(null==s?void 0:s.token)||(null==s?void 0:s.id);w.paymentToken=a}catch(t){return w.isSubmitting=!1,void this.errorEvent.emit({message:(null==t?void 0:t.message)||"Plaid exchange error",errorCode:y.TOKENIZE_ERROR,severity:p.ERROR})}}if(!o)return w.isSubmitting=!1,void this.errorEvent.emit({message:"Please fill in all required fields.",errorCode:y.VALIDATION_ERROR,severity:p.ERROR});if(!w.paymentToken)return w.isSubmitting=!1,void this.errorEvent.emit({message:"Payment token not found.",errorCode:y.TOKENIZE_ERROR,severity:p.ERROR});let c;if(c={payment_mode:(t=>{switch(t){case V.NEW_CARD:case V.SAVED_CARD:case V.NEW_BANK_ACCOUNT:case V.SAVED_BANK_ACCOUNT:case V.PLAID:return G.ECOM;case V.SEZZLE:return G.BNPL;case V.APPLE_PAY:return G.APPLE_PAY;case V.GOOGLE_PAY:return G.GOOGLE_PAY;default:return}})(null===(a=w.selectedPaymentMethod)||void 0===a?void 0:a.type),payment_token:w.paymentToken},this.preCompleteHook){const t=A();try{await new Promise(((e,i)=>{this.preCompleteHook(t,(()=>e()),(()=>i()))}))}catch(t){return w.isSubmitting=!1,void console.log("Checkout cancelled by preCompleteHook",t)}}this.completeCheckout({payment:c,onSuccess:({checkout:t})=>{w.isSubmitting=!1,this.submitEvent.emit({checkout:t,message:"Checkout completed successfully"})},onError:t=>{w.isSubmitting=!1,this.errorEvent.emit({message:t.message,errorCode:y.COMPLETE_CHECKOUT_ERROR,severity:p.ERROR})}})}render(){return i(s,{key:"c3de4a4b90c599a374678d98c324a6b24dbec50d"})}get hostEl(){return n(this)}},rt=class{constructor(i){t(this,i),this.paymentMethodOptionSelected=e(this,"paymentMethodOptionSelected",7),this.plaidError=e(this,"plaidError",7),this.plaidErrorRecovered=e(this,"plaidErrorRecovered",7),this.isAuthenticating=!1,this.publicToken=null,this.linkToken=null,this.linkTokenId=null,this.error=null,this.plaidLink=null,this.isSelected=!1,this.retryCount=0,this.isRetrying=!1,this.sdkLoaded=!1,this.plaidService=new Q,this.maxRetries=3,this.retryDelay=2e3,this.timeoutId=null,this.abortController=null,this.hasLoggedDisabledWarning=!1,this.waitForStoreAndInitialize=()=>{w.authToken&&w.accountId&&w.checkoutId?this.initializePlaidLink():setTimeout((()=>{this.waitForStoreAndInitialize()}),100)},this.initializePlaidLink=async()=>{try{if(void 0===window.Plaid)return void this.handleError({code:M.PLAID_SDK_LOAD_FAILED,message:g[M.PLAID_SDK_LOAD_FAILED],severity:f[M.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"});if(await this.getLinkToken(),!this.linkToken)return void this.handleError({code:M.PLAID_LINK_TOKEN_FAILED,message:g[M.PLAID_LINK_TOKEN_FAILED],severity:f[M.PLAID_LINK_TOKEN_FAILED],retryable:!0,userAction:"Click to try again"});const t=window.Plaid;this.plaidLink=t.create({token:this.linkToken,onSuccess:this.handlePlaidSuccess,onExit:this.handlePlaidExit,onEvent:this.handlePlaidEvent,onLoad:this.handlePlaidLoad})}catch(t){this.handleError({code:M.PLAID_LINK_INIT_FAILED,message:g[M.PLAID_LINK_INIT_FAILED],severity:f[M.PLAID_LINK_INIT_FAILED],originalError:t,retryable:!0,userAction:"Click to try again"})}},this.getLinkToken=async()=>{var t,e,i,s,n;try{if(!w.authToken||!w.accountId)return void this.handleError({code:M.PLAID_LINK_TOKEN_FAILED,message:"Missing authentication. Please refresh the page and try again.",severity:p.ERROR,retryable:!1,userAction:"Refresh the page"});this.abortController=new AbortController,this.timeoutId=setTimeout((()=>{var t;null===(t=this.abortController)||void 0===t||t.abort()}),3e4);const e=await this.plaidService.getLinkToken(w.authToken,w.accountId,w.checkoutId,this.abortController.signal);if(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),e.error)throw new Error("string"==typeof e.error?e.error:e.error.message||"Failed to get link token");this.linkToken=e.data.link_token,this.linkTokenId=(null==e?void 0:e.id)||(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)||null,this.linkTokenId&&(w.plaidLinkTokenId=this.linkTokenId)}catch(t){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);let a=M.PLAID_LINK_TOKEN_FAILED,o=g[a],r=!0;"AbortError"===t.name?(a=M.PLAID_TIMEOUT,o=g[a],r=!0):(null===(e=t.message)||void 0===e?void 0:e.includes("network"))||(null===(i=t.message)||void 0===i?void 0:i.includes("fetch"))?(a=M.PLAID_NETWORK_ERROR,o=g[a],r=!0):((null===(s=t.message)||void 0===s?void 0:s.includes("401"))||(null===(n=t.message)||void 0===n?void 0:n.includes("unauthorized")))&&(a=M.PLAID_INVALID_CREDENTIALS,o="Authentication failed. Please refresh the page and try again.",r=!1),this.handleError({code:a,message:o,severity:f[a],originalError:t,retryable:r,userAction:r?"Click to try again":"Refresh the page"})}},this.mapApiErrorToPlaidError=t=>{if("string"==typeof t){if(t.includes("rate_limit"))return M.PLAID_RATE_LIMITED;if(t.includes("maintenance"))return M.PLAID_MAINTENANCE;if(t.includes("not_authenticated"))return M.PLAID_INVALID_CREDENTIALS}if(null==t?void 0:t.code)switch(t.code){case"rate_limited":return M.PLAID_RATE_LIMITED;case"maintenance":return M.PLAID_MAINTENANCE;case"not_authenticated":return M.PLAID_INVALID_CREDENTIALS;default:return M.PLAID_LINK_TOKEN_FAILED}return M.PLAID_LINK_TOKEN_FAILED},this.openPlaidLink=()=>{this.plaidLink&&this.linkToken&&(this.isAuthenticating=!0,this.clearError(),this.plaidLink.open())},this.handlePlaidSuccess=t=>{this.publicToken=t,this.isAuthenticating=!1,this.clearError(),this.retryCount=0,this.isSelected||(this.isSelected=!0,w.selectedPaymentMethod={type:V.PLAID}),this.plaidErrorRecovered.emit({code:"plaid-success",message:"Bank account connected successfully",severity:p.INFO}),w.plaidPublicToken=t},this.handlePlaidExit=t=>{this.isAuthenticating=!1,t&&this.handlePlaidError(t)},this.handlePlaidEvent=(t,e)=>{switch(t){case"OPEN":this.isAuthenticating=!0;break;case"CLOSE":this.isAuthenticating=!1;break;case"ERROR":this.handlePlaidError(e)}},this.handlePlaidLoad=()=>{},this.handlePlaidError=t=>{let e=M.PLAID_AUTHENTICATION_FAILED,i=g[e],s=!0,n="Click to try again";if(t.error_code)switch(t.error_code){case"INVALID_CREDENTIALS":e=M.PLAID_INVALID_CREDENTIALS,i=g[e],s=!0;break;case"ITEM_LOGIN_REQUIRED":e=M.PLAID_INVALID_CREDENTIALS,i="Your bank requires re-authentication. Please try again.",s=!0;break;case"ITEM_LOCKED":e=M.PLAID_ACCOUNT_LOCKED,i=g[e],s=!1,n="Contact your bank";break;case"INSTITUTION_NOT_RESPONDING":e=M.PLAID_MAINTENANCE,i=g[e],s=!0;break;case"RATE_LIMIT_EXCEEDED":e=M.PLAID_RATE_LIMITED,i=g[e],s=!0;break;case"INVALID_REQUEST":e=M.PLAID_AUTHENTICATION_FAILED,i="Invalid request. Please try again.",s=!0;break;case"PLAID_ERROR":e=M.PLAID_AUTHENTICATION_FAILED,i=t.error_message||"Bank authentication failed. Please try again.",s=!0;break;default:t.error_message&&(i=t.error_message)}if(t.error_message){const a=t.error_message.toLowerCase();a.includes("not supported")||a.includes("unsupported")?(e=M.PLAID_BANK_NOT_SUPPORTED,i=g[e],s=!1,n="Try a different payment method"):(a.includes("expired")||a.includes("timeout"))&&(e=M.PLAID_TOKEN_EXPIRED,i=g[e],s=!0)}this.handleError({code:e,message:i,severity:f[e],originalError:t,retryable:s,userAction:n}),this.isAuthenticating=!1},this.handleError=t=>{this.error=t,this.plaidError.emit({code:t.code,message:t.message,severity:t.severity,data:{originalError:t.originalError,retryable:t.retryable,userAction:t.userAction,retryCount:this.retryCount}}),console.error("Plaid error:",t),t.retryable&&this.retryCount<this.maxRetries&&this.scheduleRetry()},this.scheduleRetry=()=>{this.isRetrying||(this.isRetrying=!0,this.retryCount++,setTimeout((()=>{this.isRetrying=!1,this.clearError(),this.waitForStoreAndInitialize()}),this.retryDelay*this.retryCount))},this.clearError=()=>{this.error&&(this.error=null,this.retryCount=0)},this.syncWithStore=()=>{var t;const e=(null===(t=w.selectedPaymentMethod)||void 0===t?void 0:t.type)===V.PLAID;this.isSelected!==e&&(this.isSelected=e)}}onSelectionChange(t){var e;t&&(null===(e=w.selectedPaymentMethod)||void 0===e?void 0:e.type)!==V.PLAID&&(w.selectedPaymentMethod={type:V.PLAID}),!t||!this.plaidLink||this.publicToken||this.isAuthenticating||this.error||this.openPlaidLink()}componentWillLoad(){var t;this.isSelected=(null===(t=w.selectedPaymentMethod)||void 0===t?void 0:t.type)===V.PLAID,!0===w.bankAccountVerification&&(w.checkoutLoaded?this.loadPlaidSDK():j("checkoutLoaded",(t=>{t&&!0===w.bankAccountVerification&&this.loadPlaidSDK()})))}loadPlaidSDK(){if(this.sdkLoaded)return;this.sdkLoaded=!0;const t=document.createElement("script");t.src="https://cdn.plaid.com/link/v2/stable/link-initialize.js",t.async=!0,t.onload=()=>this.initializePlaidLink(),t.onerror=()=>{this.handleError({code:M.PLAID_SDK_LOAD_FAILED,message:g[M.PLAID_SDK_LOAD_FAILED],severity:f[M.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"})},document.head.appendChild(t)}async resolvePaymentMethod(){return this.publicToken?{token:this.publicToken,data:{type:"bank_account",plaid_public_token:this.publicToken}}:{validationError:!0}}async getPaymentToken(){return w.paymentToken}async handleSelectionClick(){if(this.isSelected=!0,w.selectedPaymentMethod={type:V.PLAID},this.error)return this.clearError(),void this.waitForStoreAndInitialize();!this.plaidLink||this.publicToken||this.isAuthenticating||this.openPlaidLink()}async setSelected(t){this.isSelected=t,t&&(w.selectedPaymentMethod={type:V.PLAID})}async isCurrentlySelected(){return this.isSelected}async deselect(){this.isSelected=!1}async reset(){this.publicToken=null,this.clearError(),this.isAuthenticating=!1,this.linkToken=null,this.plaidLink=null,this.retryCount=0,this.isRetrying=!1,this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.abortController&&(this.abortController.abort(),this.abortController=null)}async isReadyForAuthentication(){return!(!this.plaidLink||!this.linkToken||this.isAuthenticating)}async retry(){this.error&&this.error.retryable&&(this.clearError(),this.waitForStoreAndInitialize())}async getErrorInfo(){return this.error}componentDidLoad(){const t=j("selectedPaymentMethod",this.syncWithStore);this.unsubscribeFromStore=t}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.timeoutId&&clearTimeout(this.timeoutId),this.abortController&&this.abortController.abort()}render(){if(!0!==w.bankAccountVerification)return this.hasLoggedDisabledWarning||(console.warn("[JustifiPlaidPaymentMethod] bank_account_verification is disabled. Component will not render."),this.hasLoggedDisabledWarning=!0),null;const t=i("img",{class:"plaid-logo-img",src:"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjggMjkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9ImNzcy0xcmRhajhtIj48ZyBmaWxsPSIjMTExIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yNS43NjI5IDI2LjI2MjhMMjggMTcuNTMwOUwyNC45NjkxIDE0LjUwMDFMMjcuOTk5OSAxMS40NjkxTDI1Ljc2MjggMi43MzcwNkwxNy4wMzA5IDAuNUwxNC4wMDAxIDMuNTMxTDEwLjk2OSAwLjUwMDE0TDIuMjM3MDYgMi43MzczNEwwIDExLjQ2OTFMMy4wMzEyOCAxNC40OTk5TDAuMDAwMTQgMTcuNTMxTDIuMjM3MiAyNi4yNjI5TDEwLjk2OTEgMjguNUwxNC4wMDAxIDI1LjQ2OUwxNy4wMzEgMjguNDk5OUwyNS43NjI5IDI2LjI2MjhaTTE1LjczMjEgMjMuNzM3MUwxOC42MTg2IDIwLjg1MDVMMjIuMjkxMiAyNC41MjMzTDE3LjY5NTYgMjUuNzAwN0wxNS43MzIxIDIzLjczNzFaTTExLjExMzYgOS44ODE1NEwxNC4wMDAzIDYuOTk1MDJMMTYuODg2OCA5Ljg4MTRMMTQuMDAwMSAxMi43Njc5TDExLjExMzYgOS44ODE1NFpNMTIuMjY4MiAxNC41TDkuMzgxNTQgMTcuMzg2NUw2LjQ5NTAyIDE0LjVMOS4zODE1NCAxMS42MTM1TDEyLjI2ODIgMTQuNVpNMTguNjE4NyAxMS42MTMzTDIxLjUwNTMgMTQuNUwxOC42MTg2IDE3LjM4NjVMMTUuNzMyMSAxNC41TDE4LjYxODcgMTEuNjEzM1pNMTYuODg2NyAxOS4xMTg2TDE0LjAwMDEgMjIuMDA1MUwxMS4xMTM1IDE5LjExODVMMTQuMDAwMSAxNi4yMzE5TDE2Ljg4NjcgMTkuMTE4NlpNMTAuMzA0NCAyNS43MDA3TDUuNzA4NjQgMjQuNTIzM0w5LjM4MTU0IDIwLjg1MDRMMTIuMjY4MiAyMy43MzcxTDEwLjMwNDQgMjUuNzAwN1pNNC43NjMwOCAxNi4yMzE5TDcuNjQ5NiAxOS4xMTg1TDMuOTc2NyAyMi43OTE0TDIuNzk5MyAxOC4xOTU3TDQuNzYzMDggMTYuMjMxOVpNMy45NzY3IDYuMjA4MzZMNy42NDk3NCA5Ljg4MTRMNC43NjMwOCAxMi43NjgxTDIuNzk5MyAxMC44MDQxTDMuOTc2NyA2LjIwODM2Wk0xMi4yNjgzIDUuMjYyOTRMOS4zODE2OCA4LjE0OTZMNS43MDg5MiA0LjQ3NjdMMTAuMzA0NyAzLjI5OTNMMTIuMjY4MyA1LjI2Mjk0Wk0xNy42OTU5IDMuMjk5M0wyMi4yOTE1IDQuNDc2N0wxOC42MTg2IDguMTQ5NDZMMTUuNzMyMSA1LjI2Mjk0TDE3LjY5NTkgMy4yOTkzWk0yMy4yMzcyIDEyLjc2ODFMMjAuMzUwNSA5Ljg4MTRMMjQuMDIzMyA2LjIwODc4TDI1LjIwMDcgMTAuODA0NkwyMy4yMzcyIDEyLjc2ODFaTTI0LjAyMzMgMjIuNzkxNEwyMC4zNTA1IDE5LjExODZMMjMuMjM3MiAxNi4yMzIxTDI1LjIwMDcgMTguMTk1N0wyNC4wMjMzIDIyLjc5MTRaIj48L3BhdGg+PC9nPjwvc3ZnPgo=",alt:"Plaid",title:"Plaid",style:{display:"inline",width:"20px",height:"20px",marginLeft:"5px",marginTop:"-2px"}});return i(b,{class:"payment-method"},i("div",{title:"Pay with Plaid"},i("div",{onClick:t=>{t.preventDefault(),this.handleSelectionClick()}},"Pay with Bank Account ",t," "),(()=>this.error?i("div",{class:(this.error.severity===p.ERROR?"text-danger":this.error.severity===p.WARNING?"text-warning":"text-info")+" mt-2"},i("small",null,this.error.message),i("br",null),i("small",{class:"text-muted"},this.error.userAction,this.error.retryable&&this.retryCount<this.maxRetries&&i("span",null," • Auto-retry in progress..."))):null)(),(()=>this.error?null:this.isAuthenticating?i("div",{class:"text-info mt-2"},i("small",null,"Connecting to your bank...")):this.publicToken?i("div",{class:"text-success mt-2"},i("small",null,"✓ Bank account connected successfully")):!this.isSelected||this.publicToken||this.error||this.isAuthenticating?null:i("div",{class:"text-muted mt-2"},i("small",null,"Click to connect your bank account")))()))}static get watchers(){return{isSelected:["onSelectionChange"]}}},ht=class{constructor(e){t(this,e),this.onPaymentMethodOptionClick=t=>e=>{e.preventDefault(),w.selectedPaymentMethod={id:t.id,type:t.type},w.paymentToken=t.id},this.isAllowedPaymentMethod=t=>!(t===V.SAVED_CARD&&w.disableCreditCard||t===V.SAVED_BANK_ACCOUNT&&w.disableBankAccount)}componentWillLoad(){w.checkoutLoaded&&(w.paymentMethods.length||console.warn("No saved payment methods available."),w.disablePaymentMethodGroup&&console.warn("Payment method group is disabled."))}render(){return w.disablePaymentMethodGroup?null:i(b,null,i("div",{class:"saved-payment-methods"},w.paymentMethods.length?w.paymentMethods.filter((t=>this.isAllowedPaymentMethod(t.type))).map((t=>i("div",{class:"radio-list-item p-3",part:C,onClick:this.onPaymentMethodOptionClick(t)},i("form-control-radio",{name:"paymentMethodType",value:null==t?void 0:t.id,checked:w.paymentToken===(null==t?void 0:t.id),label:`${q[null==t?void 0:t.brand]||""} *${null==t?void 0:t.acct_last_four}`})))):null))}},lt=i("img",{class:"sezzle-smart-button-logo-img",src:"https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg",alt:"Sezzle",style:{display:"inline",width:"80px",marginLeft:"5px",marginTop:"-5px"}}),ct=class{constructor(i){t(this,i),this.paymentMethodOptionSelected=e(this,"paymentMethodOptionSelected",7),this.paymentMethodOptionId=V.SEZZLE,this.initializeSezzleCheckout=()=>{let t;this.sezzlePromise=new Promise((e=>{t=e}));const e=Number(w.paymentAmount),i=new(0,window.Checkout)({mode:"popup",publicKey:w.bnplProviderClientId,apiMode:w.bnplProviderMode,apiVersion:w.bnplProviderApiVersion});i.sezzleButtonElement=this.sezzleButtonRef,i.init({onClick:function(t){t.preventDefault(),i.startCheckout({checkout_url:w.bnplProviderCheckoutUrl})},onComplete:e=>t({bnpl:e.data}),onCancel:e=>t({bnpl:e.data}),onFailure:e=>t({bnpl:e.data})}),this.sezzleCheckout=i,this.installmentPlan=this.sezzleCheckout.getInstallmentPlan(e)}}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.sezzleButtonRef=document.createElement("button"),this.initializeSezzleCheckout()})}async resolvePaymentMethod(t){return t.isValid?(this.sezzleButtonRef.click(),this.sezzlePromise):{validationError:!0}}async handleSelectionClick(){w.selectedPaymentMethod={type:V.SEZZLE},this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId)}render(){var t,e;return w.bnplEnabled?i(b,{class:"payment-method"},i("script",{src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:t=>this.scriptRef=t}),i("div",null,i("div",null,"Buy now, pay later with ",lt),this.installmentPlan&&i("small",null,i("span",null,null===(t=this.installmentPlan)||void 0===t?void 0:t.installments.length)," ",i("span",null,this.installmentPlan.schedule," payments of")," ",i("span",{class:"fw-bold"},I(null===(e=this.installmentPlan)||void 0===e?void 0:e.installments[0].amountInCents))))):(console.warn("justifi-sezzle-payment-method: BNPL is not enabled for this account."),null)}},dt={[V.NEW_BANK_ACCOUNT]:"New bank account",[V.NEW_CARD]:"New credit or debit card"},ut="Payment form not ready",pt="Validation error",yt=class{constructor(i){t(this,i),this.errorEvent=e(this,"error-event",7),this.submitEvent=e(this,"submit-event",7),this.computedHideSubmitButton=!1,this.isLoading=!1,this.submitButtonText="Submit"}paymentMethodsChanged(){this.setDefaultSelectedPaymentMethod()}connectedCallback(){this.setDefaultSelectedPaymentMethod(),this.setComputedHideSubmitButton()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup(),this.unsubscribeFromStore&&this.unsubscribeFromStore()}componentWillLoad(){U(),this.analytics=new R(this)}handleRadioClick(t){this.selectedPaymentMethod=t.detail,w.selectedPaymentMethod={type:t.detail}}async tokenizePaymentMethod(t){null==t||t.preventDefault(),this.validateRequiredProps(),this.isLoading=!0;try{if(!(await this.validate()).isValid)return this.errorEvent.emit({errorCode:y.TOKENIZE_ERROR,message:pt}),void(this.isLoading=!1);const t=await this.resolvePaymentMethod({isValid:!0});return t.error&&this.emitError({errorCode:t.error.code,message:t.error.message}),this.submitEvent.emit({response:t}),t}catch(t){const e=this.createErrorResponse(y.TOKENIZE_ERROR,t.message);return this.emitError({errorCode:y.TOKENIZE_ERROR,message:t.message}),this.submitEvent.emit({response:e}),e}finally{this.isLoading=!1}}async fillBillingForm(t){w.billingFormFields=t}async validate(){if(!this.areFormsReady())return{isValid:!1,errors:{general:ut}};const[t,e]=await Promise.all([this.billingFormRef.validate(),this.paymentMethodFormRef.validate()]);return{isValid:t.isValid&&e.isValid,errors:Object.assign(Object.assign({},t.errors),e.errors)}}async getValues(){return this.billingFormRef.getValues()}async tokenize(){try{const t=await this.billingFormRef.getValues(),e={clientId:this.authToken||w.authToken,account:this.accountId||w.accountId,paymentMethodMetadata:this.buildPaymentMethodMetadata(t)};return await this.paymentMethodFormRef.tokenize(e)}catch(t){return t}}validateRequiredProps(){this.authToken||w.authToken||this.emitError({errorCode:y.TOKENIZE_ERROR,message:"Auth token is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"}),this.accountId||w.accountId||this.emitError({errorCode:y.TOKENIZE_ERROR,message:"Account ID is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"})}setDefaultSelectedPaymentMethod(){this.selectedPaymentMethod||(this.disableCreditCard?this.disableBankAccount||(this.selectedPaymentMethod=V.NEW_BANK_ACCOUNT,w.selectedPaymentMethod={type:V.NEW_BANK_ACCOUNT}):(this.selectedPaymentMethod=V.NEW_CARD,w.selectedPaymentMethod={type:V.NEW_CARD}))}setComputedHideSubmitButton(){if(void 0!==this.hideSubmitButton)return void(this.computedHideSubmitButton=this.hideSubmitButton);const t=this.isSlottedWithinModularCheckout();this.computedHideSubmitButton=t}isSlottedWithinModularCheckout(){var t;let e=null===(t=this.host)||void 0===t?void 0:t.parentElement;for(;e;){if("JUSTIFI-MODULAR-CHECKOUT"===e.tagName)return!0;e=e.parentElement}return!1}get availablePaymentMethods(){const t=[];return this.disableCreditCard||t.push(V.NEW_CARD),this.disableBankAccount||t.push(V.NEW_BANK_ACCOUNT),t}areFormsReady(){return!(!this.billingFormRef||!this.paymentMethodFormRef)}emitError(t){this.errorEvent.emit(Object.assign(Object.assign({},t),{severity:p.ERROR}))}createErrorResponse(t,e){return{error:{code:t,message:e,decline_code:void 0}}}async resolvePaymentMethod(t){if(!this.areFormsReady())return this.createErrorResponse("form_not_ready",ut);try{const e=await this.validate();if(!e.isValid||!t.isValid){const t=Object.values(e.errors)[0]||pt;return{validationError:!0,error:{code:"validation_error",message:String(t),decline_code:void 0}}}return await this.performTokenization()}catch(t){return{error:t}}}async performTokenization(){var t,e;const i=await this.tokenize();if(i.error)return{error:i.error};const s=i.data;return{token:(null===(t=s.card)||void 0===t?void 0:t.token)||(null===(e=s.bank_account)||void 0===e?void 0:e.token),data:s}}buildPaymentMethodMetadata(t){return this.shouldSavePaymentMethod?Object.assign(Object.assign({},t),{payment_method_group_id:this.paymentMethodGroupID}):Object.assign({},t)}get paymentMethodGroupID(){return this.paymentMethodGroupId||w.paymentMethodGroupId}get shouldSavePaymentMethod(){return!(!this.paymentMethodGroupId&&!w.savePaymentMethod)}get shouldHideRadioInput(){return this.disableCreditCard||this.disableBankAccount}renderPaymentMethodOption(t){const e=this.selectedPaymentMethod===t&&void 0===w.selectedPaymentMethod.id;return i("div",{class:"payment-method"},i("radio-list-item",{name:"paymentMethodType",value:t,checked:e,label:dt[t],hidden:this.shouldHideRadioInput}),e&&this.renderSelectedPaymentMethodForm(t))}renderSelectedPaymentMethodForm(t){return i("div",{class:"mt-4 pb-4"},this.renderPaymentMethodForm(t),i("div",{class:"mt-4"},i("billing-form",{ref:t=>{t&&(this.billingFormRef=t)},hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,paymentMethodType:t})),i("div",{class:"mt-4"},i("save-new-payment-method",{hidden:!this.paymentMethodGroupID,label:this.savePaymentMethodLabel})))}renderPaymentMethodForm(t){return i(t===V.NEW_CARD?"card-form":"bank-account-form",{ref:t=>{t&&(this.paymentMethodFormRef=t)}})}render(){return i(b,{key:"2d4349f3e5ad632981cdeb14dbe4e483f79379da"},i("form",{key:"754afee2c5229cf016bd8fc0cf81041cf37270a8"},i("fieldset",{key:"01867151a09d384e1258ef7f62fbc88c526706cc"},i("div",{key:"7ba453d4629a0c2ef583daddcb9cf02ac5eee265",class:"row gy-3"},i("div",{key:"4148f2269c738a00f2684d69d4a83a4ab2424f2b",class:"col-12"},this.availablePaymentMethods.map((t=>this.renderPaymentMethodOption(t)))),i("div",{key:"e67b09357571aadfb3d2712f55954506748b3826",class:"col-12"},i("internal-button",{key:"c2e805060ff7e9e97144533ffad3b4a02433e792",text:this.submitButtonText,variant:"primary",type:"submit",clickHandler:t=>this.tokenizePaymentMethod(t),isLoading:this.isLoading,"data-testid":"submit-button",hidden:this.computedHideSubmitButton}))))))}get host(){return n(this)}static get watchers(){return{disableCreditCard:["paymentMethodsChanged"],disableBankAccount:["paymentMethodsChanged"]}}};export{$ as justifi_apple_pay,tt as justifi_button,et as justifi_checkout_summary,nt as justifi_google_pay,at as justifi_header,ot as justifi_modular_checkout,rt as justifi_plaid_payment_method,W as justifi_radio_list_item,ht as justifi_saved_payment_methods,ct as justifi_sezzle_payment_method,yt as justifi_tokenize_payment_method}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as a}from"./p-CV0Pyo1O.js";import{B as s,C as c,D as i}from"./p-CPKMvyV_.js";const f=class{constructor(a){e(this,a),this.selectedQuantityChange=t(this,"selectedQuantityChange",7),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:"031eab044914be9f082d5f93f7813f4e61e5a6f1",class:"rounded shadow-sm card p-2",part:i},a("div",{key:"ccb7b2047fe47ff9d895df5fa56db8dc6aa7b573",class:"d-flex gap-3"},a("div",{key:"0145845c698712ac65accf781f7e347c0c539c58",class:"d-flex align-items-center"},a("img",{key:"3e48fa3175a3bcdae16e0d66c3627a4e84faf3d9",src:this.imageUrl,alt:this.modelName,height:75,width:75,part:s})),a("div",{key:"df45bb639c3f22da69847be20bfb0867acb592f4",class:"d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center"},a("div",{key:"3e75a2b6a4e512e08edd4e5662878f27e656f076",class:"row"},a("div",{key:"12495ac532ed376c365893cfc3b85552ead99568",class:"col-6 d-flex gap-2"},this.modelName,a("form-control-tooltip",{key:"110ea9b505c790cfca4fbae78c3c6fb6f348b143",helpText:this.description})),a("div",{key:"47d0a8888279556ced19646bf8f27c8c0fa91d27",class:"col-6 d-flex justify-content-end align-items-center"},a("button",{key:"53bea293f4d25a0e3fbdfc72321d33ebdb117be9",class:"p-0 minus btn",onClick:this.removeUnit,part:c},"-"),a("div",{key:"9effca42d38cb2eb5433a83c95a5aa243c3de1f9",class:"w-25 text-center"},this.selectedQuantity),a("button",{key:"3e5a395703f88e10a2a0cf18c121280ec4035a54",class:"p-0 plus btn",onClick:this.addUnit,part:c},"+"))))))}};export{f as terminal_quantity_selector}
@@ -0,0 +1 @@
1
+ import{h as s,F as e,r as t,c as i}from"./p-CV0Pyo1O.js";import{E as a}from"./p-Cu7hgXL1.js";import{B as r}from"./p-BJu1-9kE.js";import{m as o}from"./p-Aacb4jqT.js";import{C as l,e as n}from"./p-NZS8uCtH.js";import{J as h}from"./p-Cz_7BuGW.js";import{c}from"./p-mF5zKtkx.js";import{S as d}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as p}from"./p-uZ5KAseb.js";import"./p-CPKMvyV_.js";import"./p-CYQvLgSs.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-BRnBHsdq.js";import"./p-HXpYMWUU.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-Cm9f5fyh.js";import"./p-OGt0dCJl.js";const u=()=>{const t=()=>s("div",{class:"mt-5"},s(p,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(p,null),s(p,null),s(p,null)),s("div",{class:"col-12 col-md-6"},s(p,null),s(p,null),s(p,null))));return s(e,null,s(t,null),s(t,null),s(t,null),s(t,null))},m=class{constructor(s){t(this,s),this.errorEvent=i(this,"error-event",7),this.loading=!0}componentWillLoad(){c(),this.analytics=new h(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetBusiness()}initializeGetBusiness(){this.businessId&&this.authToken?(this.getBusiness=o({id:this.businessId,authToken:this.authToken,service:new r}),this.fetchData()):(this.errorMessage="Invalid business id or auth token",this.errorEvent.emit({errorCode:n.MISSING_PROPS,message:this.errorMessage,severity:l.ERROR}))}updateOnPropChange(){this.getBusiness&&this.fetchData()}fetchData(){this.loading=!0,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.errorMessage=null},onError:({error:s,code:e,severity:t})=>{this.errorMessage=s,this.errorEvent.emit({errorCode:e,message:s,severity:t})},final:()=>{this.loading=!1}})}render(){return s(d,{key:"7ce48e6905cdbbf8f94470913ecfa3ef8dbb76c7"},this.loading&&s(u,{key:"7c3439e0c247436cd7951d3bdc32e7672c9f8447"}),!this.loading&&this.errorMessage&&a(this.errorMessage),!this.loading&&!this.errorMessage&&this.business&&s("justifi-details",{key:"bf57dacf2067f2704014ce3e002958e3306bba73",errorMessage:this.errorMessage},s("div",{key:"46d19a178ba0d33aa21a4f3900128e3e905731a9",slot:"detail-sections"},s("core-info-details",{key:"ac217a4cfe6b45810a85ca320760b7331f76e60b",business:this.business}),s("legal-address-details",{key:"1fc1a196a43bcf5f9eafd09bfe74c8bb7c409797",legalAddress:this.business.legal_address}),s("representative-details",{key:"1e0833606b129f69a05946726172963cbec05189",representative:this.business.representative}),s("owner-details",{key:"c974111dc67a8961ef6435c34843ca927ad8a7e5",owners:this.business.owners}),s("additional-questions-details",{key:"0951d284a373457e98a1dafc80231ec3ee057e0a",additionalQuestions:this.business.additional_questions}))))}static get watchers(){return{businessId:["propChanged"],authToken:["propChanged"],getBusiness:["updateOnPropChange"]}}};export{m as justifi_business_details}
@@ -0,0 +1 @@
1
+ import{a as e,c as s}from"./p-DwoT0UoX.js";import{m as t,d as a,i as n,b as i,a as r,p as o,e as l,w as _,c,t as d,o as u,f as m,r as p,g as b,h as E,l as h,j as f,k as v,n as g,s as w,q as y,u as $,v as x,x as S}from"./p-KXLYEe1D.js";import{C as j}from"./p-BcNb9bVO.js";import{a as D}from"./p-DyucNSA4.js";const N=s=>{const t=e({legal_name:c.required("Enter legal name"),website_url:_.required("Enter business website url"),email:l.required("Enter business email"),phone:o.required("Enter phone number"),doing_business_as:r.nullable(),classification:i.required("Select business classification"),industry:n.required("Enter a business industry"),date_of_incorporation:a.required("Enter date of registration")}),u=e({legal_name:c.required("Enter legal name"),website_url:_.nullable(),email:l.nullable(),phone:o.nullable(),doing_business_as:r.nullable(),classification:i.nullable(),industry:n.nullable(),tax_id:d.nullable(),date_of_incorporation:a.nullable()});return s?u:t},X=a=>N(a).concat(e({classification:s().required("Select business classification"),tax_id:t(j.USA).when("tax_id_last4",{is:e=>!e,then:e=>e.required(`Enter valid ${D.USA.taxIdLabel} without dashes`),otherwise:e=>e.nullable()})})),k=a=>N(a).concat(e({classification:s().required("Select business classification"),tax_id:t(j.CAN).when("tax_id_last4",{is:e=>!e,then:e=>e.required(`Enter valid ${D.CAN.taxIdLabel} without dashes`),otherwise:e=>e.nullable()})})),q=s=>{const t=e({business_revenue:p.required("Enter business revenue"),business_payment_volume:b.required("Enter business payment volume"),business_average_transaction_amount:p.required("Enter average transaction amount"),business_when_service_received:m.required("Select when service is received"),business_other_payment_details:u.nullable()}),a=e({business_revenue:p.nullable(),business_payment_volume:b.nullable(),business_average_transaction_amount:p.nullable(),business_when_service_received:m.nullable(),business_other_payment_details:u.nullable()});return s?a:t},A=t=>e(t?{line1:f.nullable(),line2:h.nullable(),city:E.nullable(),state:s().nullable(),postal_code:s().nullable()}:{line1:f.required("Enter street address"),line2:h.nullable(),city:E.required("Enter city"),state:s().required("Select state"),postal_code:v(j.USA).required("Enter postal code")}),B=t=>e(t?{line1:f.nullable(),line2:h.nullable(),city:E.nullable(),state:s().nullable(),postal_code:s().nullable()}:{line1:f.required("Enter street address"),line2:h.nullable(),city:E.required("Enter city"),state:s().required("Select province"),postal_code:v(j.CAN).required("Enter postal code")}),C={[j.USA]:A,[j.CAN]:B},K=(t,a)=>a?(t=>e({name:x.required(`Enter ${t} name`),title:$.nullable(),email:l.nullable(),phone:o.nullable(),dob_full:y(t).nullable(),ssn_last4:s().nullable(),identification_number:w.nullable(),ownership_percentage:g.nullable(),address:A(!0)}))(t):(t=>e({name:x.required(`Enter ${t} name`),title:$.required(`Enter ${t} title`),email:l.required(`Enter ${t} email`),phone:o.required("Enter phone number"),dob_full:y(t).required("Enter date of birth"),ssn_last4:s().nullable(),identification_number:w,ownership_percentage:g.nullable(),address:A(!1)}))(t),L=(t,a)=>a?(t=>e({name:x.required(`Enter ${t} name`),title:$.nullable(),email:l.nullable(),phone:o.nullable(),dob_full:y(t).nullable(),ssn_last4:s().nullable(),identification_number:S(j.CAN).nullable(),ownership_percentage:g.nullable(),address:B(!0)}))(t):(t=>e({name:x.required(`Enter ${t} name`),title:$.required(`Enter ${t} title`),email:l.required(`Enter ${t} email`),phone:o.required("Enter phone number"),dob_full:y(t).required("Enter date of birth"),ssn_last4:s().nullable(),identification_number:S(j.CAN),ownership_percentage:g.nullable(),address:B(!1)}))(t),O={[j.USA]:K,[j.CAN]:L};export{q as a,X as b,A as c,k as d,L as e,B as f,O as g,C as h,K as i}
@@ -1 +1 @@
1
- import{r as t,c as e,h as s,H as a}from"./p-CV0Pyo1O.js";import{w as i,x as r,q as o,u as h,v as l}from"./p-DnrawQn3.js";import{F as c}from"./p-BsQy297i.js";import"./p-CZfYo5-1.js";const n=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.isFocused=!1,this.maxDate=this.currentDate,this.handleFormControlInput=t=>{const e=t.target.value;this.inputHandler(this.name,e),this.formControlInput.emit({name:this.name,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}get currentDate(){return this.showTime?(new Date).toISOString().slice(0,16):(new Date).toISOString().split("T")[0]}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}get part(){let t=i;return this.errorText&&(t=o),this.disabled&&(t=h),this.isFocused&&(t=l),t}render(){return s(a,{key:"ec545098abff465066e8e483fb80b13efdfb1c0c"},s("div",{key:"62ab3c2b55228781b45cc08cec73dddaf079e02c",class:"form-group d-flex flex-column"},s("div",{key:"c4a79de5aedf7db3356f1003755861d5aba8e51b",class:"d-flex gap-2"},s("label",{key:"f64d2f776aa848961ad74496c52bb61d744e50f0",part:r,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"50de1c1138f91f01ad982a5823779e5a067389be",helpText:this.helpText})),s("input",{key:"bb7e14c9e6e952902c15667124032d5ca93df3e8",type:this.showTime?"datetime-local":"date",ref:t=>this.dateInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled,max:this.maxDate}),s(c,{key:"2916afe69a7066713ea1da31fecb3ab8679a6170",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{n as form_control_date}
1
+ import{r as t,c as e,h as s,H as a}from"./p-CV0Pyo1O.js";import{w as i,x as r,q as o,u as h,v as f}from"./p-CPKMvyV_.js";import{F as c}from"./p-Ce_W43gc.js";import"./p-CZfYo5-1.js";const d=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.isFocused=!1,this.maxDate=this.currentDate,this.handleFormControlInput=t=>{const e=t.target.value;this.inputHandler(this.name,e),this.formControlInput.emit({name:this.name,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}get currentDate(){return this.showTime?(new Date).toISOString().slice(0,16):(new Date).toISOString().split("T")[0]}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}get part(){let t=i;return this.errorText&&(t=o),this.disabled&&(t=h),this.isFocused&&(t=f),t}render(){return s(a,{key:"c17bdb1266aea8cf2d50c1ef75e4a059d743ab2c"},s("div",{key:"e33d45227ed65daca2f75563fd2dd51f45126313",class:"form-group d-flex flex-column"},s("div",{key:"f02592b5c5a9c6346b5a0cacc08f45b971fcd370",class:"d-flex gap-2"},s("label",{key:"30c32d5e351df78b68ea249b5626c9ee247569d4",part:r,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"250d51c080fbd42a421f23d9a2b23735f6491773",helpText:this.helpText})),s("input",{key:"f401b594d91d353f1d1fff7e431f9b010fc86fc9",type:this.showTime?"datetime-local":"date",ref:t=>this.dateInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled,max:this.maxDate}),s(c,{key:"5be9326874e8370b54399ec78f46dd16a62272cf",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_date}
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as i}from"./p-CV0Pyo1O.js";import{l as s,C as a,e as r}from"./p-NZS8uCtH.js";import{J as n}from"./p-Cz_7BuGW.js";import{c as o}from"./p-mF5zKtkx.js";import{T as c}from"./p-Ba8jdOkX.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{p as h}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{g as d,a as p}from"./p-Cm9f5fyh.js";import{m,S as u}from"./p-BxKbnILQ.js";import{S as l}from"./p-BqNNwq6C.js";import{T as b,a as f,b as v,c as g,d as k,e as y,f as j,g as C,h as w,i as _,j as T,k as S,l as O}from"./p-BICxxa69.js";import{T as I}from"./p-CZfYo5-1.js";import{B as D,a as P}from"./p-CHw7tICr.js";import{a6 as x,a7 as A}from"./p-CPKMvyV_.js";import{k as B}from"./p-BRnBHsdq.js";import{o as N,g as E}from"./p-Dw63wyhO.js";import"./p-OGt0dCJl.js";import"./p-CYQvLgSs.js";import"./p-D8GTwl9v.js";import"./p-CqiVXthx.js";const G={nickname:()=>t("th",{part:x,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:x,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:x,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:x,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:x,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:x,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:x,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:x,scope:"col",title:"The current status of each terminal"},"Status")},q={nickname:(e,i)=>t("td",{part:A(i)},e.nickname),model_name:(e,i)=>t("td",{part:A(i)},e.model_name),id:(e,i)=>t("td",{part:A(i)},e.id),provider:(e,i)=>t("td",{part:A(i)},B(e.provider)),provider_serial_number:(e,i)=>t("td",{part:A(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:A(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:A(i)},e.sub_account_name),status:(e,i)=>t("td",{part:A(i)},t(P,Object.assign({},{connected:{variant:D.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:D.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:D.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:D.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"},archived:{variant:D.SECONDARY,title:"This terminal is archived",text:"Archived"}}[e.status])))},z=class{constructor(t){e(this,t),this.clickEvent=i(this,"click-event",7),this.errorEvent=i(this,"error-event",7),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=h,this.pagingParams={},this.columns="nickname,provider_serial_number,status",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:I.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:I.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const i=this.terminals.find((t=>t.id===e));this.clickEvent.emit({name:I.row,data:i})}}componentWillLoad(){o(),this.analytics=new n(this),this.terminalsTable=new b(this.terminals,this.columns,G,q),this.initializeGetData(),this.getTerminals&&this.getSubAccounts&&this.fetchData(),N("set",(()=>{this.pagingParams={}})),N("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}updateOnPropChange(){this.fetchData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:e,service:i})=>async({params:r,onSuccess:n,onError:o})=>{var c,h;try{const m=await i.fetchTerminals(t,e,r);if(m.error)return o({error:p(m.error),code:d(null===(h=m.error)||void 0===h?void 0:h.code),severity:a.ERROR});{const t=Object.assign({},m.page_info);n({terminals:(null===(c=m.data)||void 0===c?void 0:c.map((t=>new s(t))))||[],pagingInfo:t})}}catch(t){const e=d(null==t?void 0:t.code);return o({error:t.message||t,code:e,severity:a.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new c}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:a.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({primaryAccountId:this.accountId,authToken:this.authToken,service:new u}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:e})=>{this.terminals=t,this.paging=e,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:e,severity:i})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:i}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var e;return t.sub_account_name=null===(e=this.subAccounts.find((e=>e.id===t.account_id)))||void 0===e?void 0:e.name,t})),this.loading=!1},onError:({error:t,code:e,severity:i})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:i}),this.loading=!1}})}get terminalParams(){const t=E();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(l,{key:"6388e9b0b7c6dcedc9f3db534d3a30d0a748929c"},t(f,{key:"e11b994e16e657aaaa7c6f29197865d0d6bfd1ba"},t(v,{key:"340980f75fef37841907835378d9c0ced1992b5c"},t(g,{key:"fdd3d1569b6a3df9d5d31fb2cc602ab054529fc6"},t(k,{key:"440d602ac5746635f92445c6216c807b9b13517e"},this.terminalsTable.columnData.map((t=>t)))),t(y,{key:"ccef66a47be1cfca09f10d450fb7eeaf241a17e0"},t(j,{key:"aea6e2f33e07c717f50065c12211f9f2d9266bec",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),t(C,{key:"7c92ba6cd398bae23587a2e1771bba7b75dc680c",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),t(w,{key:"3155cf655f5b8e4290e8cabdcdbd534159f22ddd",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((e,i)=>t(_,{"data-test-id":"table-row","data-row-entity-id":this.entityId[i],onClick:this.rowClickHandler},e)))),this.paging&&t(T,{key:"da9172d4bf4439456894b53a0cf13a82081909f0"},t(S,{key:"e6c0847dc330a0e32228f2020d22bbaf0e4ad439"},t(O,{key:"6761f623d70d13b13e92ec73c9b936d5bf85dd70",colSpan:this.terminalsTable.columnData.length},t("pagination-menu",{key:"4b490b5834be42664ebbc27b7c7a1b0c10bd433b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"],pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{z as justifi_terminals_list}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-C_ifLmT1.js";import{c as s,a as i}from"./p-BRnBHsdq.js";import{f as r,p as d,c as l}from"./p-Dw63wyhO.js";import{f as c,a as o}from"./p-CPKMvyV_.js";import{S as f}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-DVJaoI_m.js";import{d as b}from"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BFTU3MAI.js";import"./p-HXpYMWUU.js";import"./p-D8GTwl9v.js";const n=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{r[e]=a},this.handleDateInput=(e,a)=>{const t=s(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({terminal_id:this.terminalId,status:this.terminalStatus,terminal_order_id:this.terminalOrderId,provider_id:this.providerId,serial_number:this.serialNumber,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(d[e]=a)}))}get terminalStatusOptions(){return[{label:"All",value:""},{label:"Connected",value:b.connected},{label:"Disconnected",value:b.disconnected},{label:"Unknown",value:b.unknown},{label:"Pending Configuration",value:b.pending_configuration},{label:"Archived",value:b.archived}]}render(){const e=Object.assign({},r);return a(f,{key:"fbdb69bdc60f2c3c9caacf287229ee3d0644fcfb"},a("table-filters-menu",{key:"7f6649444863079f885aff24d554077800b42021",params:e,clearParams:l,part:c},a("div",{key:"7277b0cf678494ca3c227abeb76a03e5bd80c522",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"06a3a26492844e37536f1d8d074af69078a70074",class:"p-2"},a("form-control-text",{key:"f37cc48a754dd0ef12405f3cbcfb10a9c099eb56",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||r.terminal_id,disabled:!!this.terminalId,part:o})),a("div",{key:"8a3638c23a774c566cfee5aba8b17ab9c7ec9419",class:"p-2"},a("form-control-text",{key:"113ded1ef867fcdab00f8c048b56219d6c5fe51d",name:"terminal_order_id",label:"Terminal Order ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalOrderId||r.terminal_order_id,disabled:!!this.terminalOrderId,part:o})),a("div",{key:"32dbef16165a0a762ad206eb5ce495b898770052",class:"p-2"},a("form-control-text",{key:"0d5827915c2962d78975d7c648b874cd8346043d",name:"provider_id",label:"Device ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.providerId||r.provider_id,disabled:!!this.providerId,part:o})),a("div",{key:"01442ae3aeb6613caaadf3e7f92a910970b315da",class:"p-2"},a("form-control-text",{key:"5b8ab5d31ef77609b8d5656a8e5a4e31c8b010a6",name:"serial_number",label:"Serial Number",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.serialNumber||r.serial_number,disabled:!!this.serialNumber,part:o})),a("div",{key:"e6b5bae11d8e9e72fe48626ce3663b0c65186700",class:"p-2"},a("form-control-select",{key:"df256ff824ae41eb65c2276481d8d6b63d3bc5a5",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||r.status||"",disabled:!!this.terminalStatus,part:o})),a("div",{key:"452b838d823484cb79569fde263228c0b5ac1e04",class:"p-2"},a("form-control-date",{key:"cd6705ac2ffce5496382b5ded1973784f863ac4e",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:i(this.createdAfter||r.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:o})),a("div",{key:"fd396d846e420a5f750ce371c04c883a7e478b44",class:"p-2"},a("form-control-date",{key:"852c044ce6154fc5f4382a0dd55b287e4b6370ac",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:i(this.createdBefore||r.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:o})))))}};export{n as justifi_terminals_list_filters}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-C_ifLmT1.js";import"./p-DVJaoI_m.js";import{c as s,a as l}from"./p-BRnBHsdq.js";import{I as c,a as i}from"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{f as d,p as o,c as r}from"./p-CpGEMRkH.js";import{f as p,a as b}from"./p-CPKMvyV_.js";import{S as f}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const m=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{d[e]=a},this.handleDateInput=(e,a)=>{const t=s(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({status:this.checkoutStatus,payment_mode:this.paymentMode,checkout_id:this.checkoutId,successful_payment_id:this.successfulPaymentId,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(o[e]=a)}))}get checkoutStatusOptions(){return[{label:"All",value:""},{label:"Created",value:c.created},{label:"Completed",value:c.completed},{label:"Attempted",value:c.attempted},{label:"Expired",value:c.expired}]}get checkoutPaymentModeOptions(){return[{label:"All",value:""},{label:"E-commerce",value:i.ecom},{label:"BNPL",value:i.bnpl},{label:"Apple Pay",value:i.apple_pay}]}render(){const e=Object.assign({},d);return a(f,{key:"1bb72de3ffad74d0e287f6f988f2737a94190709"},a("table-filters-menu",{key:"e7e1c2d657b5af5dfcf6e13b262dbd3787583206",params:e,clearParams:r,part:p},a("div",{key:"df26c6a8c7ec477103995c07c079c01a4bea0729",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"6fd0f286cb30997439879d1c9b69b8ab39651a99",class:"p-2"},a("form-control-text",{key:"b6a070c40b1da5ea9f59c8c6f47f517181948230",name:"checkout_id",label:"Checkout ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.checkoutId||d.checkout_id,disabled:!!this.checkoutId,part:b})),a("div",{key:"f6ae07ac4b9afcb307fa6ce5ff6a0b6610169a69",class:"p-2"},a("form-control-text",{key:"c27c86b9a14d806bcd6d2d2a070812e31ae558ee",name:"successful_payment_id",label:"Successful Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.successfulPaymentId||d.successful_payment_id,disabled:!!this.successfulPaymentId,part:b})),a("div",{key:"54b26c583902c853db8709b311870c94d5332bd2",class:"p-2"},a("form-control-select",{key:"3747bd2c6f2196a56059f36febc30057b8dc13de",name:"status",label:"Status",options:this.checkoutStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.checkoutStatus||d.status||"",disabled:!!this.checkoutStatus,part:b})),a("div",{key:"5a875750872d5446c42db9a840c3670425c46ebb",class:"p-2"},a("form-control-select",{key:"58eff7fbca6653532540506c7cef66df0f54af38",name:"payment_mode",label:"Payment Mode",options:this.checkoutPaymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentMode||d.payment_mode||"",disabled:!!this.paymentMode,part:b})),a("div",{key:"dca10b3b14055c6c2351f4fa8f11b609625f1a26",class:"p-2"},a("form-control-date",{key:"bfb85e61a9ee01a1cb3c2907ad06b6d37bbdc081",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:l(this.createdAfter,{showInputDateTime:!0})||l(d.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:b})),a("div",{key:"1772c182c957b053e77599935e3d61c1a66186a6",class:"p-2"},a("form-control-date",{key:"f7965bd4b2689359e76d3cec250bfd7eb5ba7870",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:l(this.createdBefore,{showInputDateTime:!0})||l(d.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:b})))))}};export{m as justifi_checkouts_list_filters}
@@ -0,0 +1 @@
1
+ import{r as s,h as t}from"./p-CV0Pyo1O.js";import{B as i}from"./p-CHo7TfsM.js";import"./p-CPKMvyV_.js";const r=class{constructor(t){s(this,t),this.variant="primary",this.type="button"}render(){return t(i,{key:"b9c53e47ed16f09a34b2d28c9edc275de6f375c1",variant:this.variant,isLoading:this.isLoading,clickHandler:this.clickHandler,class:this.class,type:this.type,disabled:this.disabled,style:this.customStyle,hidden:this.hidden},this.text)}};export{r as internal_button}
@@ -0,0 +1 @@
1
+ import{h as e,r as t,c as s}from"./p-CV0Pyo1O.js";import{P as i}from"./p-Dk26hk5T.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{i as a,C as d,e as c}from"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{g as o,a as r}from"./p-Cm9f5fyh.js";import{h,b as f,d as l}from"./p-BRnBHsdq.js";import{a as b,b as n,D as p,c as u,C as v,E as y}from"./p-Cu7hgXL1.js";import{J as m}from"./p-Cz_7BuGW.js";import{m as k,M as C}from"./p-BXyADlAH.js";import{c as j}from"./p-mF5zKtkx.js";import{B as g}from"./p-CHo7TfsM.js";import{S as w}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as x}from"./p-uZ5KAseb.js";import{a as T,B as D}from"./p-CHw7tICr.js";import"./p-CYQvLgSs.js";import"./p-D8GTwl9v.js";import"./p-CPKMvyV_.js";import"./p-OGt0dCJl.js";const S=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(x,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(x,{width:"70%"})),e("div",{class:"col-12"},e(x,{width:"40%"})),e("div",{class:"col-12"},e(x,{width:"40%"})),e("div",{class:"col-12"},e(x,{width:"100%"})),e("div",{class:"col-12"},e(x,{width:"80%"}))),A=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event",7),this.recordClickEvent=s(this,"record-click-event",7),this.enableRecordClick=!1,this.loading=!0,this.errorMessage=null,this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:s})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:s})}})},this.handleRecordClick=e=>{this.recordClickEvent.emit({id:e,type:"account"})}}componentWillLoad(){j(),this.analytics=new m(this),this.initializeServices(),this.getPayout&&this.fetchData()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeServices()}getPayoutWatcher(){this.fetchData()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:e,authToken:t,service:s})=>async({onSuccess:i,onError:c})=>{var h;try{const f=await s.fetchPayout(e,t);f.error?c({error:r(f.error),code:o(null===(h=f.error)||void 0===h?void 0:h.code),severity:d.ERROR}):i(new a(f.data))}catch(e){c({error:r(e),code:o(null==e?void 0:e.code),severity:d.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new i}),this.getPayoutCSV=k({authToken:this.authToken,service:new i})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:c.MISSING_PROPS,severity:d.ERROR}))}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:s})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:s}),this.loading=!1}})}formatMethod(e){return"ach"===e?"ACH":h(e)}render(){var t;return e(w,{key:"78db4dcf016d394a4233ee35dd5722ad69512499"},this.loading&&e(S,{key:"1d58cc82472d7c0791335fa63730bff5ebcc9631"}),!this.loading&&this.errorMessage&&y(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"b53aab8af8b8be07f11634c0982c825f760d5a7c",errorMessage:this.errorMessage},e(b,{key:"c948bf4014d36ec5b2309c6c0e0923b1df071c1f",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},C(null===(t=this.payout)||void 0===t?void 0:t.status),e(T,"expedited"===this.payout.settlement_priority?{variant:D.WARNING,title:"Expedited",text:"Expedited"}:{variant:D.SECONDARY,title:"Standard",text:"Standard"})),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(n,{key:"713295338c4727ef175e5fa1d69fc04b1bc52997",classes:"border-1 border-end",title:"Updated At",value:`${f(this.payout.updated_at)} ${l(this.payout.updated_at)}`}),e(n,{key:"896552a6c52d0e34fa9cc3bce746c7ce15b17d19",classes:"border-1 border-end",title:"Created At",value:`${f(this.payout.created_at)} ${l(this.payout.created_at)}`}),e(n,{key:"1c7c6f0d68c6d79e8d90f832a0706f5021a4fec4",title:"ID",value:this.payout.id}),e("div",{key:"e9bd1145f2b1fa3a15f70f3c512ee5688c20ab75",class:"m-4"},e(g,{key:"d16c22b1663823a367501ee87f00d91a71f4bac3",variant:"outline-secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"cbe424bac249bf237b3e88f743584efb29feb327",slot:"detail-sections"},e(p,{key:"d49a48f2d9585798e98908974903121da88dc7c7",sectionTitle:"Details"}),e("div",{key:"d8b252055e73371e207b57d490b383b82a31f8d5",class:"d-flex flex-column gap-2 w-100"},e(u,{key:"f7927f5b806737099e4cc183df745acee917873a",title:"Date paid",value:f(this.payout.deposits_at)}),e(u,{key:"025b54550135be71ff478ef5d364a0e09b752d65",title:"Statement Description",value:this.payout.description}),e(u,{key:"d6c855b3bf3abefb58d2e42725cc18c023502c28",title:"Payout Method",value:this.formatMethod(this.payout.delivery_method)}),e(u,{key:"66339c62f4798d78fc311b685c679cb2b6d8e5ab",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(u,{key:"834ee2666c057cd26abf121ff3509753f0dfe6dc",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(p,{key:"288998bdd428b55915e87b6d997fa6ca72bbc9ef",sectionTitle:"Account"}),e("div",{key:"8179ccd1df02f4789ed23160229467efec9c5661",class:"d-flex flex-column gap-2 w-100"},e(u,{key:"60496ee62d3d36a874ae0f7fdb8e510e9eeaf263",title:"ID",value:this.payout.account_id,onClick:this.enableRecordClick?()=>this.handleRecordClick(this.payout.account_id):void 0}),e(u,{key:"c0f9bf43b9dd79640979fba0109e7e3861badae2",title:"Account Type",value:this.payout.bank_account.account_type}),e(u,{key:"3473874ae44ca2e9a57f5d113f694596e54aaddb",title:"Institution",value:this.payout.bank_account.account_type}),e(u,{key:"e409d45df2bca00884f8fda2f2ab980065860d02",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(u,{key:"56c4d45303e8329e53ff3fdaacaafcde3def4f12",title:"Account Number",value:`**** ${this.payout.bank_account.account_number_last4}`})),this.payout.metadata&&[e(p,{key:"3c4aa0bd3b6921b4383c16b081f363715002cb52",sectionTitle:"Metadata"}),e("div",{key:"63baeb1d2d0f856fadea847369189135d129bcb2",class:"d-table gap-2 w-100"},e(v,{key:"31cdae9f97ac6683c92200f3b4270d324ef490b5",metadata:this.payout.metadata}))])))}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"],getPayout:["getPayoutWatcher"]}}};export{A as justifi_payout_details}
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-nb_LhbJq.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{b as i,C as r,e as o}from"./p-NZS8uCtH.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{g as h,a as p}from"./p-Cm9f5fyh.js";import{J as c}from"./p-Cz_7BuGW.js";import{c as d}from"./p-mF5zKtkx.js";import{S as m}from"./p-BqNNwq6C.js";import{T as f,a as l,b as u,c as y,d as b,e as g,f as v,g as C,h as j,i as _,j as k,k as w,l as T}from"./p-BICxxa69.js";import{T as P}from"./p-CZfYo5-1.js";import{M as D}from"./p-D1_eip6x.js";import{a as S}from"./p-BRnBHsdq.js";import{a6 as O,a7 as x}from"./p-CPKMvyV_.js";import{o as I,g as B}from"./p-Dm07nLGs.js";import"./p-CYQvLgSs.js";import"./p-D8GTwl9v.js";import"./p-OGt0dCJl.js";import"./p-CqiVXthx.js";import"./p-CHw7tICr.js";const A={created_at:()=>t("th",{part:O,scope:"col",title:"The date and time each payment was made"},"Date"),amount:()=>t("th",{part:O,scope:"col",title:"The dollar amount of each payment"},"Amount"),status:()=>t("th",{part:O,scope:"col",title:"The current status of each payment"},"Status"),payment_type:()=>t("th",{part:O,scope:"col",title:"The type of each payment"},"Type"),description:()=>t("th",{part:O,scope:"col",title:"The payment description, if you provided one"},"Description"),payers_name:()=>t("th",{part:O,scope:"col",title:"The name associated with the payment method"},"Account Holder"),last_four_digits:()=>t("th",{part:O,scope:"col",title:"The brand and last 4 digits of the payment method"},"Payment Method"),card_brand:()=>t("th",{part:O,scope:"col",title:"The brand of the payment method"},"Card Brand")},q={created_at:(e,a)=>t("td",{part:x(a)},t("div",{class:"fw-bold"},S(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.created_at,{showTime:!0}))),amount:(e,a)=>t("td",{part:x(a)},e.formattedPaymentAmount(e.amount)),status:(e,a)=>t("td",{part:x(a)},D(e.status)),payment_type:(e,a)=>t("td",{part:x(a)},e.payment_type),description:(e,a)=>t("td",{part:x(a)},e.description),payers_name:(e,a)=>t("td",{part:x(a)},e.payers_name),last_four_digits:(e,a)=>t("td",{part:x(a)},e.last_four_digits),card_brand:(e,a)=>{var s,i,r;return t("td",{part:x(a)},(r=(null===(s=e.payment_method.card)||void 0===s?void 0:s.brand)||(null===(i=e.payment_method.bank_account)||void 0===i?void 0:i.brand))?{visa:"VISA",mastercard:"Mastercard",american_express:"American Express",discover:"Discover",diners_club:"Diners Club",jcb:"JCB",china_unionpay:"China UnionPay",unknown:"Unknown"}[r.toLowerCase()]||r:"N/A")}},E=class{constructor(t){e(this,t),this.errorEvent=a(this,"error-event",7),this.clickEvent=a(this,"click-event",7),this.errorMessage=null,this.payments=[],this.loading=!0,this.paging=n,this.pagingParams={},this.columns="created_at,amount,status,payment_type,description,payers_name,last_four_digits,card_brand",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:P.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:P.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.payments.find((t=>t.id===e));this.clickEvent.emit({name:P.row,data:a})}}componentWillLoad(){d(),this.analytics=new c(this),this.paymentsTable=new f(this.payments,this.columns,A,q),this.initializeGetPayments(),I("set",(()=>{this.pagingParams={},this.errorMessage=""})),I("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPayments()}updateOnPropChange(){this.fetchData()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:e,service:a})=>async({params:s,onSuccess:o,onError:n,final:c})=>{var d,m;try{const c=await a.fetchPayments(t,e,s);if(c.error)return n({error:p(c.error),code:h(null===(m=c.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},c.page_info);o({payments:(null===(d=c.data)||void 0===d?void 0:d.map((t=>new i(t))))||[],pagingInfo:t})}}catch(t){const e=h(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:r.ERROR})}finally{return c()}})({id:this.accountId,authToken:this.authToken,service:new s}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}fetchData(){this.getPayments&&(this.loading=!0,this.getPayments({params:this.paymentParams,onSuccess:({payments:t,pagingInfo:e})=>{this.payments=t,this.paging=e,this.paymentsTable.collectionData=this.payments},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:a})},final:()=>{this.loading=!1}}))}get paymentParams(){const t=B();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 t(m,{key:"66f641cbde94ea4332bef30308047ecc98cf6476"},t(l,{key:"5d5d4190722ddf09e31de6d680b3df248b41325c"},t(u,{key:"b5ab4878004d4911129941cd48a85564cada1f87"},t(y,{key:"14aeb8df18cdde57c028d741f11a011060c0b1b4"},t(b,{key:"ba5a4643b5fff9c0f9975ae5d350f9db8cc5d7b2"},this.paymentsTable.columnData.map((t=>t)))),t(g,{key:"0b26316eb9193cab9001a31a7f268cd5156d13e3"},t(v,{key:"37c3545775d6e1586af72baf195f6a861fba0081",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),t(C,{key:"e3cde204ba86bab4813d6a06f948532c30271bb9",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),t(j,{key:"202602af08813968a81743c8966ecb17e3a67043",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((e,a)=>t(_,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(k,{key:"b59fa3315491975cf7e5dd0ec26a4b1e0574438c"},t(w,{key:"e974cf1d3ec92fa89139982030791d69e6d02b10"},t(T,{key:"74405261ad2cae3dc6267aab06ec1dd81f4d4ba8",colSpan:this.paymentsTable.columnData.length},t("pagination-menu",{key:"cdcca8506afafb661d0c90ffe9a09f41f94a0862",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"],pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{E as justifi_payments_list}
@@ -0,0 +1 @@
1
+ import{r,h as e}from"./p-CV0Pyo1O.js";import{S as i}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";const l=class{constructor(e){r(this,e)}async getValues(){var r,e;return null!==(e=null===(r=this.billingFormFullRef)||void 0===r?void 0:r.getValues())&&void 0!==e?e:{}}async validate(){var r,e;return null!==(e=null===(r=this.billingFormFullRef)||void 0===r?void 0:r.validate())&&void 0!==e?e:{isValid:!1,errors:{}}}render(){return e(i,{key:"8e755ce1e9ea3984b7abacc8375aee22f1288c52"},e("billing-form-full",{key:"a18f794807f7631db8eb3724ae5072766aa708f4",legend:this.legend,ref:r=>this.billingFormFullRef=r}))}};export{l as justifi_billing_form_full}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as i}from"./p-CV0Pyo1O.js";import{D as e,C as r,e as o,f as h}from"./p-NZS8uCtH.js";import{J as p}from"./p-Cz_7BuGW.js";import{c as a}from"./p-mF5zKtkx.js";import{g as n,a as d}from"./p-Cm9f5fyh.js";import{D as c,a as u}from"./p-oTtn8xDw.js";import{S as m}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-BRnBHsdq.js";import"./p-HXpYMWUU.js";import"./p-OGt0dCJl.js";import"./p-CYQvLgSs.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const f=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.isLoading=!0,this.showDisputeResponseForm=!1,this.fetchDisputePending=!1}scheduleFetchDispute(){this.getDispute&&!this.fetchDisputePending&&(this.fetchDisputePending=!0,queueMicrotask((()=>{this.fetchDisputePending=!1,this.getDispute&&this.fetchData()})))}disputeResponseHandler(s){s.detail.name===c.respondToDispute&&(this.showDisputeResponseForm=!0),s.detail.name===c.cancelDispute&&(this.showDisputeResponseForm=!1)}disputeSubmittedHandler(){this.fetchData()}componentWillLoad(){a(),this.analytics=new p(this),this.initializeGetDispute()}componentDidLoad(){this.scheduleFetchDispute()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetDispute(),this.scheduleFetchDispute()}initializeGetDispute(){this.disputeId&&this.authToken?this.getDispute=(({id:s,authToken:t,service:i})=>async({onSuccess:o,onError:h})=>{var p;try{const a=await i.fetchDispute(s,t);if(a.error)return h({error:d(a.error),code:n(null===(p=a.error)||void 0===p?void 0:p.code),severity:r.ERROR});{const s=Object.assign({},a.page_info);o({dispute:new e(a.data),pagingInfo:s})}}catch(s){const t=n(null==s?void 0:s.code);return h({error:s.message||s,code:t,severity:r.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new u}):this.errorEvent.emit({message:"Dispute ID and Auth Token are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}fetchData(){this.getDispute&&(this.isLoading=!0,this.getDispute({onSuccess:({dispute:s})=>{this.dispute=new e(s),this.isLoading=!1,this.dispute.status!==h.needsResponse&&(this.showDisputeResponseForm=!1)},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({errorCode:t,message:s,severity:i}),this.isLoading=!1}}))}render(){return i(m,{key:"a9185f55e6f2704ec8ba85c5061e8c46338481e3"},i("div",{key:"e4851b3fa85ec428929b7868c0748b56c0172c8b"},this.showDisputeResponseForm?i("dispute-response",{disputeId:this.disputeId,disputeResponse:this.dispute.dispute_response,authToken:this.authToken}):i("dispute-notification",{dispute:this.dispute,authToken:this.authToken,isLoading:this.isLoading})))}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_dispute_management}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e,H as a}from"./p-CV0Pyo1O.js";import{q as i,u as o,v as r,w as h,x as c,y as d}from"./p-CPKMvyV_.js";import{F as n}from"./p-B5gBiARs.js";import{F as f}from"./p-Ce_W43gc.js";import"./p-CZfYo5-1.js";import{f as l}from"./p-BRnBHsdq.js";import"./p-HXpYMWUU.js";const p=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),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:"c91bf2d63e4cd717dfc472f5b16dac9c3e9fdd69"},e("div",{key:"8f1eaae0f9dfbcc97adf788a5b955824dc68dbd2",class:"form-group d-flex flex-column"},e("label",{key:"1965936a9e14612fdb8aec07e0def943e1e1344a",part:c,class:"form-label",htmlFor:this.name},this.label),e(n,{key:"dd517aee7a39c71c1fe98b6c53a4528c9d3826d5",name:this.name,helpText:this.helpText}),e("div",{key:"bb62ed9e6c9db38f39581d7f86483a242330c295",class:"input-group"},e("span",{key:"5a358beea95c1eed695b8ca5e5f9a7a82b0864b1",class:"input-group-text",part:d},"$"),e("input",{key:"5c37a1edb6a229634536c2c7ad4cb4c2cfff211b",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:"5cb05fe585766d5f037c33d86485a6002894c781",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{p as form_control_monetary}
@@ -0,0 +1 @@
1
+ import{r as s,h as i}from"./p-CV0Pyo1O.js";import{J as o}from"./p-Cz_7BuGW.js";import{c as r}from"./p-mF5zKtkx.js";import{w as t}from"./p-DVJaoI_m.js";import{S as a}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-OGt0dCJl.js";import"./p-CYQvLgSs.js";import"./p-BRnBHsdq.js";import"./p-HXpYMWUU.js";import"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-D8GTwl9v.js";const p=class{constructor(i){s(this,i)}async componentWillLoad(){await t(),r(),this.analytics=new o(this)}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}async getValues(){var s,i;return null!==(i=null===(s=this.bankAccountBillingFormSimpleRef)||void 0===s?void 0:s.getValues())&&void 0!==i?i:{}}async validate(){var s,i;return null!==(i=null===(s=this.bankAccountBillingFormSimpleRef)||void 0===s?void 0:s.validate())&&void 0!==i?i:{isValid:!1,errors:{}}}render(){return i(a,{key:"1ed5d8cfc7f594e00f01fc765c3e04acd80b90a9"},i("bank-account-billing-form-simple",{key:"2058a974df2f57da2c731d2d5a78799ac5de0e41",legend:this.legend,ref:s=>this.bankAccountBillingFormSimpleRef=s}))}};export{p as justifi_bank_account_billing_form_simple}
@@ -1 +1 @@
1
- import{r as e,h as t,H as a}from"./p-CV0Pyo1O.js";import{b as s,r as i,s as d,c as l}from"./p-Bt4GjEWL.js";import{C as c,I as o,P as r}from"./p-CVaOFfrI.js";import{b as n,x as b,u as f,a0 as u,ak as h}from"./p-DnrawQn3.js";import{e as m,d as v}from"./p-BcNb9bVO.js";import{c as p}from"./p-_-2E_vYf.js";const y=class{constructor(t){e(this,t),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,t){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{additional_questions:Object.assign(Object.assign({},this.formController.values.getValue().additional_questions),{[e]:t})}))}render(){var e,l,o,r,b,f,u,h,m,v,p,y,k,j;const x=this.formController.getInitialValues().additional_questions;return t(a,{key:"05b69febfcd1e3901109c2cf64d812ff766b81cc"},t("fieldset",{key:"84f06779dff94622fc7d14fdca53efb84f11e8cd"},t("legend",{key:"3079e5d172c833d8172660f2f66b4d9637bfdb21",part:n},"Additional Questions"),t("div",{key:"cf5155033143279316822237a84a0ad5e292a6cd",class:"row gy-3"},t("div",{key:"e28450dacb0d7040d62a4820c0252d95792d7e87",class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{key:"e2ac8f211ffd9848fab123bc7826fd9f18e109a8",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==x?void 0:x.business_revenue,maskOptions:c.WHOLE})),t("div",{key:"c5de85cd5e7b1501a0667a49d8d4826971e93052",class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{key:"3da3805e4ddbc633f060d36487b46e76e4f6eb04",name:"business_payment_volume",label:"What is the business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(r=null===(o=this.errors)||void 0===o?void 0:o.additional_questions)||void 0===r?void 0:r.business_payment_volume,defaultValue:null==x?void 0:x.business_payment_volume,maskOptions:c.WHOLE})),t("div",{key:"ad62fecba837464fddba48273635bc8ae3a7d7ed",class:"col-12"},t("form-control-select",{key:"9f09093b45c1c8eeb63065402f4b15e31c166d51",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===(f=null===(b=this.errors)||void 0===b?void 0:b.additional_questions)||void 0===f?void 0:f.business_when_service_received,options:s,defaultValue:null==x?void 0:x.business_when_service_received})),t("div",{key:"e2a05cbb74138a554033817e3bb1372933e64b99",class:"col-12"},t("form-control-select",{key:"8a95d74c02f2cf662f6cf0658faeae1a1a8f6a11",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:i,defaultValue:null==x?void 0:x.business_recurring_payments})),t("div",{key:"8d94059b0966237c980b1c1622e1ed3fd5bd8a58",class:"col-12"},t("form-control-text",{key:"320fa784aef300393ddfcca4f2ef4798d207bf30",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==x?void 0:x.business_recurring_payments_percentage})),t("div",{key:"8525c21ec91e652737455e7b093ff280800d97c2",class:"col-12"},t("form-control-select",{key:"c2cba23606b03f758ba704c074a65a212e111998",name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(y=null===(p=this.errors)||void 0===p?void 0:p.additional_questions)||void 0===y?void 0:y.business_seasonal,options:d,defaultValue:null==x?void 0:x.business_seasonal})),t("div",{key:"c047c43284fbe92952c487544bc8206c98433edc",class:"col-12"},t("form-control-text",{key:"27348b1899f8b8f7f18a0618aa4dcb812a3bef04",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===(j=null===(k=this.errors)||void 0===k?void 0:k.additional_questions)||void 0===j?void 0:j.business_other_payment_details,defaultValue:null==x?void 0:x.business_other_payment_details})))))}},k=class{constructor(t){e(this,t),this.errors={},this.coreInfo={},this.isEditingTaxId=!1,this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.values.subscribe((e=>this.coreInfo=Object.assign({},new m(e)))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}inputHandler(e,t){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}render(){var e,s;const i=this.formController.getInitialValues();return t(a,{key:"9c73706505c1fa0a56d7eb68fc1c4c0a6fffd1dc"},t("fieldset",{key:"d30bae9bab7ffd0e385ce276e7797cfd606e5a42"},t("legend",{key:"5792db95cbbc080f3c990b4b9cea84484f374ec3",part:n},"General Info"),t("div",{key:"ae7fa3c788d625d60cfc83b270312946dce97f0b",class:"row gy-3"},t("div",{key:"f7e5ab1ec57a8ce8de5ef8591ecad8b2fbd2f030",class:"col-12"},t("form-control-text",{key:"fa96501ceca053263029489a74bddd31222b1462",name:"legal_name",label:"Legal Name",defaultValue:i.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler})),t("div",{key:"21e14d0c13017376d7e74e84169f30fe05fa13af",class:"col-12"},t("form-control-text",{key:"266187ec2209299a4b0ebc4c7d600c670de3b21f",name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:i.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler})),t("div",{key:"d9bbb19b4ec15a18a0467444e964512114e74031",class:"col-12 col-md-8"},t("form-control-select",{key:"fe490b4abb4a1e07392db9ad4e4c15b02d928f4c",name:"classification",label:"Business Classification",options:l,defaultValue:i.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),t("div",{key:"fc5dafdace199fd34d22f22d629d87fc8ff7cc3e",class:"col-12 col-md-4"},t("form-control-date",{key:"0263cdef27d1b36c22bde16dbdb3777ad9ef62e3",name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:i.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),t("div",{key:"2ae2b710d615e5314d4b836b9a498fc9140b749a",class:"col-12 col-md-6"},t("form-control-text",{key:"f6e738254ff7ead5680b895b6df77dc58efbc393",name:"industry",label:"Industry",defaultValue:i.industry,errorText:this.errors.industry,inputHandler:this.inputHandler})),t("div",{key:"8a01de0514d495b103aa43070d268070f57af62a",class:"col-12 col-md-6"},!(null===(e=this.coreInfo)||void 0===e?void 0:e.tax_id_last4)||this.isEditingTaxId?t("form-control-number-masked",{name:"tax_id",label:p[this.country].taxIdLabel,defaultValue:this.isEditingTaxId?"":i.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:o[this.country],helpText:p[this.country].taxIdHelpText}):t("div",null,t("label",{class:"form-label",part:b},p[this.country].taxIdLabel),t("div",{class:"input-group mb-3"},t("input",{type:"text",class:"form-control",part:f,value:`****${null===(s=this.coreInfo)||void 0===s?void 0:s.tax_id_last4}`,disabled:!0}),t("button",{class:"btn btn-secondary",type:"button",part:u,onClick:()=>{this.isEditingTaxId=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{tax_id:""}))}},"Change")))),t("div",{key:"66292d95dd8ead1367c1eef3a96aa1fb9e707810",class:"col-12"},t("form-control-text",{key:"de144c99e186470c37d0d330c8aa480fb00ef037",name:"website_url",label:"Website URL",defaultValue:i.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler})),t("div",{key:"c43095be28c660a2312c37c6856abeae7f952299",class:"col-12 col-md-6"},t("form-control-text",{key:"e4afa2d37cd5dc26006b116c7d574e1c7dd4a0ef",name:"email",label:"Email Address",defaultValue:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{key:"a68760b724c42da71a93ab7944152a8137d51cc8",class:"col-12 col-md-6"},t("form-control-number-masked",{key:"6532f13f43391e8752f625296fb3685d7d68e084",name:"phone",label:"Phone Number",defaultValue:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:r.US})))))}},j=class{constructor(t){e(this,t),this.errors={},this.representative={},this.isEditingIdentification=!1,this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{[e]:t})}))},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 t=v(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:t.dob_day,dob_month:t.dob_month,dob_year:t.dob_year})}))}}get identificationNumberLabel(){var e;return(null===(e=this.representative)||void 0===e?void 0:e.ssn_last4)?p[this.country].idNumberLabelOptional:p[this.country].idNumberLabel}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e.representative))),this.formController.values.subscribe((e=>this.representative=Object.assign({},e.representative)))}render(){var e,s;const i=this.formController.getInitialValues().representative;return t(a,{key:"c12be1414101467b72170c101cb3d7792f0fafe0"},t("fieldset",{key:"821c9982121243de546bfe95094402379e704659"},t("legend",{key:"48d43758a4d62dcd977eeb9703bae8ac153b9bf4",part:n},"Representative"),t("div",{key:"458edb00ebc0817623cd0fe70b8221c178cac168",class:"row gy-3"},t("div",{key:"5d6b3fc92d7c6fb6bf729881bf26198ea796cbfa",class:"col-12 col-md-8"},t("form-control-text",{key:"73eb60a383a45664050dd53bbc8b22b1e54ec22f",name:"name",label:"Full Name",defaultValue:null==i?void 0:i.name,errorText:this.errors.name,inputHandler:this.inputHandler})),t("div",{key:"fa4b8c69dc03d7ffeecf98badd5cda52edc370e5",class:"col-12 col-md-4"},t("form-control-text",{key:"3cc743bd85400c30741b6c05c3c098badce49a58",name:"title",label:"Title",defaultValue:null==i?void 0:i.title,errorText:this.errors.title,inputHandler:this.inputHandler})),t("div",{key:"83daa42529e73c5b946830dded92d0d48c95b251",class:"col-12 col-md-6"},t("form-control-text",{key:"046a7537d6a2c5ab90d0069f91cc75f42a925e27",name:"email",label:"Email Address",defaultValue:null==i?void 0:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{key:"9de7ac978409f7d5b6064cbeaa30771a6002fa5b",class:"col-12 col-md-6"},t("form-control-number-masked",{key:"05bd882e8d76b6bc1dbc44fc4e1951d14d6d2649",name:"phone",label:"Phone Number",defaultValue:null==i?void 0:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:r.US})),t("div",{key:"b511c08db58c2442746a497c7d784cd0605e9f17",class:"col-12 col-md-4"},t("form-control-date",{key:"46be9d7a916f72c583b0d47a528e6e3d2443ac83",name:"dob_full",label:"Birth Date",defaultValue:null==i?void 0:i.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:this.onDateOfBirthUpdate})),t("div",{key:"ae69c549fdf91314f4be3fa2d922c73bc19253ed",class:"col-12 col-md-8"},!(null===(e=this.representative)||void 0===e?void 0:e.ssn_last4)||this.isEditingIdentification?t("form-control-number-masked",{name:"identification_number",label:this.identificationNumberLabel,defaultValue:this.isEditingIdentification?"":null==i?void 0:i.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:o[this.country],helpText:p[this.country].identityHelpText}):t("div",null,t("label",{class:"form-label",part:b},this.identificationNumberLabel),t("div",{class:"input-group mb-3"},t("input",{type:"text",class:"form-control",part:f,value:`****${null===(s=this.representative)||void 0===s?void 0:s.ssn_last4}`,disabled:!0}),t("button",{class:"btn btn-secondary",type:"button",part:u,onClick:()=>{this.isEditingIdentification=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{ssn_last4:null,identification_number:""})}))}},"Change")))),t("div",{key:"dc7a74fe3641cfb03e682a6170c04efbd15b41d0",class:"col-12"},t("identity-address-form",{key:"3756996788014f46ecfda29a3e5f9212b749a5d8",errors:this.errors.address,defaultValues:null==i?void 0:i.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))))}},x=class{constructor(t){e(this,t)}render(){return this.text?this.hideAlert?null:t("div",{class:"alert alert-danger d-flex align-items-center",role:"alert",part:h},t("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:"},t("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"})),t("div",null,this.text)):null}},O=class{constructor(t){e(this,t),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,t){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{legal_address:Object.assign(Object.assign({},this.formController.values.getValue().legal_address),{[e]:t})}))}render(){var e;const s=this.formController.getInitialValues().legal_address;return t(a,{key:"856cd25caef521b651b9dd8a40dc6f9f0c727706"},t("fieldset",{key:"150ad1f56747aae80ae8d2610fa08fcabee27c87"},t("legend",{key:"565a46bd0977680e400663ef0590d65e977135be",part:n},"Business Legal Address"),t("form-address-fields",{key:"c2ce05c006ec80c5319b30b40387e400ec52ab86",country:this.country,errors:null===(e=this.errors)||void 0===e?void 0:e.legal_address,defaultValues:s,inputHandler:this.inputHandler})))}};export{y as additional_questions,k as business_core_info,j as business_representative,x as form_alert,O as legal_address_form}
1
+ import{r as e,h as t,H as a}from"./p-CV0Pyo1O.js";import{b as s,r as i,s as d,c as l}from"./p-Bt4GjEWL.js";import{C as c,I as o,P as r}from"./p-CVaOFfrI.js";import{b as n,x as b,u as f,a0 as u,ak as h}from"./p-CPKMvyV_.js";import{e as m,d as v}from"./p-BcNb9bVO.js";import{a as p}from"./p-DyucNSA4.js";const y=class{constructor(t){e(this,t),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,t){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{additional_questions:Object.assign(Object.assign({},this.formController.values.getValue().additional_questions),{[e]:t})}))}render(){var e,l,o,r,b,f,u,h,m,v,p,y,k,j;const x=this.formController.getInitialValues().additional_questions;return t(a,{key:"05b69febfcd1e3901109c2cf64d812ff766b81cc"},t("fieldset",{key:"84f06779dff94622fc7d14fdca53efb84f11e8cd"},t("legend",{key:"3079e5d172c833d8172660f2f66b4d9637bfdb21",part:n},"Additional Questions"),t("div",{key:"cf5155033143279316822237a84a0ad5e292a6cd",class:"row gy-3"},t("div",{key:"e28450dacb0d7040d62a4820c0252d95792d7e87",class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{key:"e2ac8f211ffd9848fab123bc7826fd9f18e109a8",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==x?void 0:x.business_revenue,maskOptions:c.WHOLE})),t("div",{key:"c5de85cd5e7b1501a0667a49d8d4826971e93052",class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{key:"3da3805e4ddbc633f060d36487b46e76e4f6eb04",name:"business_payment_volume",label:"What is the business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(r=null===(o=this.errors)||void 0===o?void 0:o.additional_questions)||void 0===r?void 0:r.business_payment_volume,defaultValue:null==x?void 0:x.business_payment_volume,maskOptions:c.WHOLE})),t("div",{key:"ad62fecba837464fddba48273635bc8ae3a7d7ed",class:"col-12"},t("form-control-select",{key:"9f09093b45c1c8eeb63065402f4b15e31c166d51",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===(f=null===(b=this.errors)||void 0===b?void 0:b.additional_questions)||void 0===f?void 0:f.business_when_service_received,options:s,defaultValue:null==x?void 0:x.business_when_service_received})),t("div",{key:"e2a05cbb74138a554033817e3bb1372933e64b99",class:"col-12"},t("form-control-select",{key:"8a95d74c02f2cf662f6cf0658faeae1a1a8f6a11",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:i,defaultValue:null==x?void 0:x.business_recurring_payments})),t("div",{key:"8d94059b0966237c980b1c1622e1ed3fd5bd8a58",class:"col-12"},t("form-control-text",{key:"320fa784aef300393ddfcca4f2ef4798d207bf30",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==x?void 0:x.business_recurring_payments_percentage})),t("div",{key:"8525c21ec91e652737455e7b093ff280800d97c2",class:"col-12"},t("form-control-select",{key:"c2cba23606b03f758ba704c074a65a212e111998",name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(y=null===(p=this.errors)||void 0===p?void 0:p.additional_questions)||void 0===y?void 0:y.business_seasonal,options:d,defaultValue:null==x?void 0:x.business_seasonal})),t("div",{key:"c047c43284fbe92952c487544bc8206c98433edc",class:"col-12"},t("form-control-text",{key:"27348b1899f8b8f7f18a0618aa4dcb812a3bef04",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===(j=null===(k=this.errors)||void 0===k?void 0:k.additional_questions)||void 0===j?void 0:j.business_other_payment_details,defaultValue:null==x?void 0:x.business_other_payment_details})))))}},k=class{constructor(t){e(this,t),this.errors={},this.coreInfo={},this.isEditingTaxId=!1,this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.values.subscribe((e=>this.coreInfo=Object.assign({},new m(e)))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}inputHandler(e,t){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}render(){var e,s;const i=this.formController.getInitialValues();return t(a,{key:"9c73706505c1fa0a56d7eb68fc1c4c0a6fffd1dc"},t("fieldset",{key:"d30bae9bab7ffd0e385ce276e7797cfd606e5a42"},t("legend",{key:"5792db95cbbc080f3c990b4b9cea84484f374ec3",part:n},"General Info"),t("div",{key:"ae7fa3c788d625d60cfc83b270312946dce97f0b",class:"row gy-3"},t("div",{key:"f7e5ab1ec57a8ce8de5ef8591ecad8b2fbd2f030",class:"col-12"},t("form-control-text",{key:"fa96501ceca053263029489a74bddd31222b1462",name:"legal_name",label:"Legal Name",defaultValue:i.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler})),t("div",{key:"21e14d0c13017376d7e74e84169f30fe05fa13af",class:"col-12"},t("form-control-text",{key:"266187ec2209299a4b0ebc4c7d600c670de3b21f",name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:i.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler})),t("div",{key:"d9bbb19b4ec15a18a0467444e964512114e74031",class:"col-12 col-md-8"},t("form-control-select",{key:"fe490b4abb4a1e07392db9ad4e4c15b02d928f4c",name:"classification",label:"Business Classification",options:l,defaultValue:i.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),t("div",{key:"fc5dafdace199fd34d22f22d629d87fc8ff7cc3e",class:"col-12 col-md-4"},t("form-control-date",{key:"0263cdef27d1b36c22bde16dbdb3777ad9ef62e3",name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:i.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),t("div",{key:"2ae2b710d615e5314d4b836b9a498fc9140b749a",class:"col-12 col-md-6"},t("form-control-text",{key:"f6e738254ff7ead5680b895b6df77dc58efbc393",name:"industry",label:"Industry",defaultValue:i.industry,errorText:this.errors.industry,inputHandler:this.inputHandler})),t("div",{key:"8a01de0514d495b103aa43070d268070f57af62a",class:"col-12 col-md-6"},!(null===(e=this.coreInfo)||void 0===e?void 0:e.tax_id_last4)||this.isEditingTaxId?t("form-control-number-masked",{name:"tax_id",label:p[this.country].taxIdLabel,defaultValue:this.isEditingTaxId?"":i.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:o[this.country],helpText:p[this.country].taxIdHelpText}):t("div",null,t("label",{class:"form-label",part:b},p[this.country].taxIdLabel),t("div",{class:"input-group mb-3"},t("input",{type:"text",class:"form-control",part:f,value:`****${null===(s=this.coreInfo)||void 0===s?void 0:s.tax_id_last4}`,disabled:!0}),t("button",{class:"btn btn-secondary",type:"button",part:u,onClick:()=>{this.isEditingTaxId=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{tax_id:""}))}},"Change")))),t("div",{key:"66292d95dd8ead1367c1eef3a96aa1fb9e707810",class:"col-12"},t("form-control-text",{key:"de144c99e186470c37d0d330c8aa480fb00ef037",name:"website_url",label:"Website URL",defaultValue:i.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler})),t("div",{key:"c43095be28c660a2312c37c6856abeae7f952299",class:"col-12 col-md-6"},t("form-control-text",{key:"e4afa2d37cd5dc26006b116c7d574e1c7dd4a0ef",name:"email",label:"Email Address",defaultValue:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{key:"a68760b724c42da71a93ab7944152a8137d51cc8",class:"col-12 col-md-6"},t("form-control-number-masked",{key:"6532f13f43391e8752f625296fb3685d7d68e084",name:"phone",label:"Phone Number",defaultValue:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:r.US})))))}},j=class{constructor(t){e(this,t),this.errors={},this.representative={},this.isEditingIdentification=!1,this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{[e]:t})}))},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 t=v(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:t.dob_day,dob_month:t.dob_month,dob_year:t.dob_year})}))}}get identificationNumberLabel(){var e;return(null===(e=this.representative)||void 0===e?void 0:e.ssn_last4)?p[this.country].idNumberLabelOptional:p[this.country].idNumberLabel}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e.representative))),this.formController.values.subscribe((e=>this.representative=Object.assign({},e.representative)))}render(){var e,s;const i=this.formController.getInitialValues().representative;return t(a,{key:"c12be1414101467b72170c101cb3d7792f0fafe0"},t("fieldset",{key:"821c9982121243de546bfe95094402379e704659"},t("legend",{key:"48d43758a4d62dcd977eeb9703bae8ac153b9bf4",part:n},"Representative"),t("div",{key:"458edb00ebc0817623cd0fe70b8221c178cac168",class:"row gy-3"},t("div",{key:"5d6b3fc92d7c6fb6bf729881bf26198ea796cbfa",class:"col-12 col-md-8"},t("form-control-text",{key:"73eb60a383a45664050dd53bbc8b22b1e54ec22f",name:"name",label:"Full Name",defaultValue:null==i?void 0:i.name,errorText:this.errors.name,inputHandler:this.inputHandler})),t("div",{key:"fa4b8c69dc03d7ffeecf98badd5cda52edc370e5",class:"col-12 col-md-4"},t("form-control-text",{key:"3cc743bd85400c30741b6c05c3c098badce49a58",name:"title",label:"Title",defaultValue:null==i?void 0:i.title,errorText:this.errors.title,inputHandler:this.inputHandler})),t("div",{key:"83daa42529e73c5b946830dded92d0d48c95b251",class:"col-12 col-md-6"},t("form-control-text",{key:"046a7537d6a2c5ab90d0069f91cc75f42a925e27",name:"email",label:"Email Address",defaultValue:null==i?void 0:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{key:"9de7ac978409f7d5b6064cbeaa30771a6002fa5b",class:"col-12 col-md-6"},t("form-control-number-masked",{key:"05bd882e8d76b6bc1dbc44fc4e1951d14d6d2649",name:"phone",label:"Phone Number",defaultValue:null==i?void 0:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:r.US})),t("div",{key:"b511c08db58c2442746a497c7d784cd0605e9f17",class:"col-12 col-md-4"},t("form-control-date",{key:"46be9d7a916f72c583b0d47a528e6e3d2443ac83",name:"dob_full",label:"Birth Date",defaultValue:null==i?void 0:i.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:this.onDateOfBirthUpdate})),t("div",{key:"ae69c549fdf91314f4be3fa2d922c73bc19253ed",class:"col-12 col-md-8"},!(null===(e=this.representative)||void 0===e?void 0:e.ssn_last4)||this.isEditingIdentification?t("form-control-number-masked",{name:"identification_number",label:this.identificationNumberLabel,defaultValue:this.isEditingIdentification?"":null==i?void 0:i.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:o[this.country],helpText:p[this.country].identityHelpText}):t("div",null,t("label",{class:"form-label",part:b},this.identificationNumberLabel),t("div",{class:"input-group mb-3"},t("input",{type:"text",class:"form-control",part:f,value:`****${null===(s=this.representative)||void 0===s?void 0:s.ssn_last4}`,disabled:!0}),t("button",{class:"btn btn-secondary",type:"button",part:u,onClick:()=>{this.isEditingIdentification=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{ssn_last4:null,identification_number:""})}))}},"Change")))),t("div",{key:"dc7a74fe3641cfb03e682a6170c04efbd15b41d0",class:"col-12"},t("identity-address-form",{key:"3756996788014f46ecfda29a3e5f9212b749a5d8",errors:this.errors.address,defaultValues:null==i?void 0:i.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))))}},x=class{constructor(t){e(this,t)}render(){return this.text?this.hideAlert?null:t("div",{class:"alert alert-danger d-flex align-items-center",role:"alert",part:h},t("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:"},t("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"})),t("div",null,this.text)):null}},O=class{constructor(t){e(this,t),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,t){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{legal_address:Object.assign(Object.assign({},this.formController.values.getValue().legal_address),{[e]:t})}))}render(){var e;const s=this.formController.getInitialValues().legal_address;return t(a,{key:"856cd25caef521b651b9dd8a40dc6f9f0c727706"},t("fieldset",{key:"150ad1f56747aae80ae8d2610fa08fcabee27c87"},t("legend",{key:"565a46bd0977680e400663ef0590d65e977135be",part:n},"Business Legal Address"),t("form-address-fields",{key:"c2ce05c006ec80c5319b30b40387e400ec52ab86",country:this.country,errors:null===(e=this.errors)||void 0===e?void 0:e.legal_address,defaultValues:s,inputHandler:this.inputHandler})))}};export{y as additional_questions,k as business_core_info,j as business_representative,x as form_alert,O as legal_address_form}
@@ -1 +1 @@
1
- import{C as r}from"./p-CUI41_5y.js";import{g as e,a as o}from"./p-B5vVjDc_.js";const n=({authToken:n,businessId:t,service:a})=>async({onSuccess:i,onError:s,final:c=()=>{}})=>{var u;try{const c=await a.fetchBusiness(t,n);if(c.error){return s({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return s({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},t=({authToken:n,businessId:t,service:a})=>async({payload:i,onSuccess:s,onError:c,final:u=()=>{}})=>{var l;try{const u=await a.patchBusiness(n,t,i);if(u.error){return c({error:o(u.error),code:e(null===(l=u.error)||void 0===l?void 0:l.code),severity:r.ERROR,rawError:u.error})}s(u)}catch(o){const n=e(null==o?void 0:o.code);return c({error:o.message||o,code:n,severity:r.ERROR,rawError:o})}finally{return u()}},a=({authToken:n,businessId:t,product:a,service:i})=>async({onSuccess:s,onError:c})=>{var u;try{const l=await i.postProvisioning(n,t,a);if(l.error){return c({error:o(l.error),code:e(null===(u=l.error)||void 0===u?void 0:u.code),severity:r.ERROR})}s(l)}catch(o){const n=e(null==o?void 0:o.code);return c({error:o.message||o,code:n,severity:r.ERROR})}},i=({authToken:n,identityId:t,service:a})=>async({onSuccess:i,onError:s,final:c=()=>{}})=>{var u;try{const c=await a.fetchIdentity(t,n);if(c.error){return s({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return s({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},s=({authToken:n,identityId:t,service:a})=>async({payload:i,onSuccess:s,onError:c,final:u=()=>{}})=>{var l;try{const u=await a.patchIdentity(n,t,i);if(u.error){return c({error:o(u.error),code:e(null===(l=u.error)||void 0===l?void 0:l.code),severity:r.ERROR})}s(u)}catch(o){const n=e(null==o?void 0:o.code);return c({error:o.message||o,code:n,severity:r.ERROR})}finally{return u()}},c=({authToken:n,service:t})=>async({payload:a,onSuccess:i,onError:s,final:c=()=>{}})=>{var u;try{const c=await t.postIdentity(n,a);if(c.error){return s({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return s({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},u=({authToken:n,service:t})=>async({payload:a,onSuccess:i,onError:s,final:c=()=>{}})=>{var u;try{const c=await t.postBankAccount(n,a);if(c.error){return s({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return s({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},l=({authToken:n,service:t})=>async({payload:a,onSuccess:i,onError:s,final:c=()=>{}})=>{var u;try{const c=await t.postDocumentRecord(n,a);if(c.error){return s({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return s({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}};export{t as a,a as b,u as c,l as d,i as e,s as f,c as g,n as m}
1
+ import{C as r}from"./p-NZS8uCtH.js";import{g as e,a as o}from"./p-Cm9f5fyh.js";const n=({authToken:n,businessId:t,service:a})=>async({onSuccess:i,onError:s,final:c=()=>{}})=>{var u;try{const c=await a.fetchBusiness(t,n);if(c.error){return s({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return s({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},t=({authToken:n,businessId:t,service:a})=>async({payload:i,onSuccess:s,onError:c,final:u=()=>{}})=>{var l;try{const u=await a.patchBusiness(n,t,i);if(u.error){return c({error:o(u.error),code:e(null===(l=u.error)||void 0===l?void 0:l.code),severity:r.ERROR,rawError:u.error})}s(u)}catch(o){const n=e(null==o?void 0:o.code);return c({error:o.message||o,code:n,severity:r.ERROR,rawError:o})}finally{return u()}},a=({authToken:n,businessId:t,product:a,service:i})=>async({onSuccess:s,onError:c})=>{var u;try{const l=await i.postProvisioning(n,t,a);if(l.error){return c({error:o(l.error),code:e(null===(u=l.error)||void 0===u?void 0:u.code),severity:r.ERROR})}s(l)}catch(o){const n=e(null==o?void 0:o.code);return c({error:o.message||o,code:n,severity:r.ERROR})}},i=({authToken:n,identityId:t,service:a})=>async({onSuccess:i,onError:s,final:c=()=>{}})=>{var u;try{const c=await a.fetchIdentity(t,n);if(c.error){return s({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return s({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},s=({authToken:n,identityId:t,service:a})=>async({payload:i,onSuccess:s,onError:c,final:u=()=>{}})=>{var l;try{const u=await a.patchIdentity(n,t,i);if(u.error){return c({error:o(u.error),code:e(null===(l=u.error)||void 0===l?void 0:l.code),severity:r.ERROR})}s(u)}catch(o){const n=e(null==o?void 0:o.code);return c({error:o.message||o,code:n,severity:r.ERROR})}finally{return u()}},c=({authToken:n,service:t})=>async({payload:a,onSuccess:i,onError:s,final:c=()=>{}})=>{var u;try{const c=await t.postIdentity(n,a);if(c.error){return s({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return s({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},u=({authToken:n,service:t})=>async({payload:a,onSuccess:i,onError:s,final:c=()=>{}})=>{var u;try{const c=await t.postBankAccount(n,a);if(c.error){return s({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return s({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}},l=({authToken:n,service:t})=>async({payload:a,onSuccess:i,onError:s,final:c=()=>{}})=>{var u;try{const c=await t.postDocumentRecord(n,a);if(c.error){return s({error:o(c.error),code:e(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(o){const n=e(null==o?void 0:o.code);return s({error:o.message||o,code:n,severity:r.ERROR})}finally{return c()}};export{t as a,a as b,u as c,l as d,i as e,s as f,c as g,n as m}
@@ -0,0 +1 @@
1
+ import{B as r}from"./p-BcNb9bVO.js";import{C as o}from"./p-NZS8uCtH.js";import{g as s,a as e}from"./p-Cm9f5fyh.js";const t=({id:t,authToken:i,service:n})=>async({onSuccess:a,onError:c,final:f})=>{var m;try{const f=await n.fetchBusiness(t,i);if(f.error){return c({error:e(f.error),code:s(null===(m=f.error)||void 0===m?void 0:m.code),severity:o.ERROR})}a({business:new r(f.data)})}catch(r){const e=s(null==r?void 0:r.code);return c({error:r.message||r,code:e,severity:o.ERROR})}finally{f()}};export{t as m}
@@ -0,0 +1 @@
1
+ import{h as t}from"./p-CV0Pyo1O.js";import{t as e}from"./p-CPKMvyV_.js";const o=o=>{const{helpText:r,name:m}=o;return r?t("small",{class:"form-text text-muted",id:`form-help-text-${m}`,part:e},r):null};export{o as F}
@@ -1 +1 @@
1
- import{h as t}from"./p-CV0Pyo1O.js";import{aa as a,ab as s,ac as e,ad as r,ae as l,af as c,ag as n,ah as o,ai as p,aj as i}from"./p-DnrawQn3.js";import{S as b}from"./p-CDf5H0TB.js";const u=(a,s)=>t("div",Object.assign({class:"table-wrapper",part:"table-wrapper"},a),s),d=(s,e)=>t("table",Object.assign({class:"table table-hover",part:a},s),e),h=(a,s)=>t("tbody",Object.assign({class:"table-body"},a),s),j=(a,s)=>t("tr",Object.assign({part:r},a),s),m=(a,e)=>t("thead",Object.assign({class:"table-head sticky-top",part:s},a),e),g=(a,s)=>t("tr",Object.assign({class:"table-light text-nowrap",part:e},a),s),y=(a,s)=>t("tfoot",Object.assign({class:"sticky-bottom",part:l},a),s),O=(a,s)=>t("tr",Object.assign({class:"table-light align-middle",part:c},a),s),f=(a,s)=>t("td",Object.assign({part:n},a),s),S=a=>{const{columnSpan:s,isEmpty:e}=a;return s&&e?t("tr",null,t("td",{class:"empty-state",part:o,colSpan:s,style:{textAlign:"center"}},"No results")):null},x=a=>{const{columnSpan:s,errorMessage:e}=a;return s&&e?t("tr",null,t("td",{class:"error-state",part:p,colSpan:s,"data-test-id":"table-error-state",style:{textAlign:"center"}},"An unexpected error occurred: ",e)):null},w=a=>{const{columnSpan:s,isLoading:e}=a;return s&&e?t("tr",null,t("td",{class:"loading-state",part:i,colSpan:s,style:{textAlign:"center"}},t(b,null))):null};class D{get columnData(){return this.columnKeys.map((t=>this.tableColumns[t]()))}get rowData(){return this.collection.map(((t,a)=>this.columnKeys.map((s=>this.tableCells[s](t,a)))))}set collectionData(t){this.collection=t}constructor(t,a,s,e){this.columnKeys=a.split(","),this.collection=t,this.tableColumns=s,this.tableCells=e}}export{D as T,d as a,m as b,g as c,h as d,w as e,S as f,x as g,j as h,y as i,O as j,f as k,u as l}
1
+ import{h as t}from"./p-CV0Pyo1O.js";import{aa as a,ab as s,ac as e,ad as r,ae as l,af as c,ag as o,ah as n,ai as p,aj as i}from"./p-CPKMvyV_.js";import{S as b}from"./p-CqiVXthx.js";const u=(a,s)=>t("div",Object.assign({class:"table-wrapper",part:"table-wrapper"},a),s),d=(s,e)=>t("table",Object.assign({class:"table table-hover",part:a},s),e),h=(a,s)=>t("tbody",Object.assign({class:"table-body"},a),s),j=(a,s)=>t("tr",Object.assign({part:r},a),s),m=(a,e)=>t("thead",Object.assign({class:"table-head sticky-top",part:s},a),e),g=(a,s)=>t("tr",Object.assign({class:"table-light text-nowrap",part:e},a),s),y=(a,s)=>t("tfoot",Object.assign({class:"sticky-bottom",part:l},a),s),O=(a,s)=>t("tr",Object.assign({class:"table-light align-middle",part:c},a),s),x=(a,s)=>t("td",Object.assign({part:o},a),s),S=a=>{const{columnSpan:s,isEmpty:e}=a;return s&&e?t("tr",null,t("td",{class:"empty-state",part:n,colSpan:s,style:{textAlign:"center"}},"No results")):null},f=a=>{const{columnSpan:s,errorMessage:e}=a;return s&&e?t("tr",null,t("td",{class:"error-state",part:p,colSpan:s,"data-test-id":"table-error-state",style:{textAlign:"center"}},"An unexpected error occurred: ",e)):null},w=a=>{const{columnSpan:s,isLoading:e}=a;return s&&e?t("tr",null,t("td",{class:"loading-state",part:i,colSpan:s,style:{textAlign:"center"}},t(b,null))):null};class A{get columnData(){return this.columnKeys.map((t=>this.tableColumns[t]()))}get rowData(){return this.collection.map(((t,a)=>this.columnKeys.map((s=>this.tableCells[s](t,a)))))}set collectionData(t){this.collection=t}constructor(t,a,s,e){this.columnKeys=a.split(","),this.collection=t,this.tableColumns=s,this.tableCells=e}}export{A as T,u as a,d as b,m as c,g as d,h as e,w as f,S as g,f as h,j as i,y as j,O as k,x as l}
@@ -0,0 +1 @@
1
+ import{A as t}from"./p-CYQvLgSs.js";import"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const n=t();class e{async fetchBusiness(t,e){return n.get({endpoint:`entities/business/${t}`,authToken:e})}async patchBusiness(t,e,s){return n.patch({endpoint:`entities/business/${e}`,body:s,authToken:t})}}class s{async fetchIdentity(t,e){return n.get({endpoint:`entities/identity/${t}`,authToken:e})}async patchIdentity(t,e,s){return n.patch({endpoint:`entities/identity/${e}`,body:s,authToken:t})}async postIdentity(t,e){return n.post({endpoint:"entities/identity",body:e,authToken:t})}}class i{async postBankAccount(t,e){return n.post({endpoint:"entities/bank_accounts",body:e,authToken:t})}}class o{async postDocumentRecord(t,e){return n.post({endpoint:"entities/document",body:e,authToken:t})}}export{e as B,o as D,s as I,i as a}
@@ -1 +1 @@
1
- import{C as t}from"./p-CUI41_5y.js";import{g as a,a as e}from"./p-B5vVjDc_.js";import{h as r}from"./p-CV0Pyo1O.js";import{B as n,a as i}from"./p-pL4dNfsl.js";const o=({authToken:r,service:n})=>async({payoutId:i,onError:o})=>{try{const{data:t}=await n.fetchCSV(i,r),a=document.createElement("a");a.href=t.csv_url,a.click()}catch(r){o({error:e(r),code:a(null==r?void 0:r.code),severity:t.ERROR})}},d=t=>r(i,Object.assign({},{canceled:{variant:n.DANGER,title:"Transfer to your bank account failed",text:"Canceled"},failed:{variant:n.DANGER,title:"Transfer to your bank account failed",text:"Failed"},forwarded:{variant:n.SECONDARY,title:"This payout initially failed; the funds have been forwarded to your next successful payout",text:"Forwarded"},in_transit:{variant:n.PRIMARY,title:"Transfer to your bank account has been initiated",text:"In Transit"},paid:{variant:n.SUCCESS,title:"Successfully deposited into your bank account",text:"Paid"},pending:{variant:n.PRIMARY,title:"Batched and scheduled to be transferred",text:"Pending"},scheduled:{variant:n.PRIMARY,title:"Batched and scheduled to be transferred",text:"Scheduled"},withdrawn:{variant:n.SUCCESS,title:"Negative payout balance successfully withdrawn from your bank account",text:"Withdrawn"}}[t]));export{d as M,o as m}
1
+ import{C as t}from"./p-NZS8uCtH.js";import{g as a,a as e}from"./p-Cm9f5fyh.js";import{h as r}from"./p-CV0Pyo1O.js";import{B as n,a as i}from"./p-CHw7tICr.js";const o=({authToken:r,service:n})=>async({payoutId:i,onError:o})=>{try{const{data:t}=await n.fetchCSV(i,r),a=document.createElement("a");a.href=t.csv_url,a.click()}catch(r){o({error:e(r),code:a(null==r?void 0:r.code),severity:t.ERROR})}},d=t=>r(i,Object.assign({},{canceled:{variant:n.DANGER,title:"Transfer to your bank account failed",text:"Canceled"},failed:{variant:n.DANGER,title:"Transfer to your bank account failed",text:"Failed"},forwarded:{variant:n.SECONDARY,title:"This payout initially failed; the funds have been forwarded to your next successful payout",text:"Forwarded"},in_transit:{variant:n.PRIMARY,title:"Transfer to your bank account has been initiated",text:"In Transit"},paid:{variant:n.SUCCESS,title:"Successfully deposited into your bank account",text:"Paid"},pending:{variant:n.PRIMARY,title:"Batched and scheduled to be transferred",text:"Pending"},scheduled:{variant:n.PRIMARY,title:"Batched and scheduled to be transferred",text:"Scheduled"},withdrawn:{variant:n.SUCCESS,title:"Negative payout balance successfully withdrawn from your bank account",text:"Withdrawn"}}[t]));export{d as M,o as m}
@@ -0,0 +1 @@
1
+ import{A as e}from"./p-CYQvLgSs.js";import"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const n=e();class r{async fetchTerminals(e,r,s){return n.get({endpoint:"terminals",params:s,headers:{Account:e},authToken:r})}async fetchTerminal(e,r){return n.get({endpoint:`terminals/${e}`,authToken:r})}async fetchTerminalModels(e,r){return n.get({endpoint:"terminals/order_models",headers:{"sub-account":e},authToken:r})}async orderTerminals(e,r){return n.post({endpoint:"terminals/orders",body:r,headers:{"sub-account":r.sub_account_id},authToken:e})}}export{r as T}
@@ -0,0 +1 @@
1
+ import{A as o}from"./p-CYQvLgSs.js";import{S as s,C as r}from"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{g as t,a as c}from"./p-Cm9f5fyh.js";const n=o();class a{async fetchSubAccounts(o,s,r){return n.get({authToken:s,endpoint:"sub_accounts",params:r,headers:{Account:o}})}}const e=({primaryAccountId:o,authToken:n,service:a})=>async({params:e,onSuccess:p,onError:i})=>{var u,m;try{const v=await a.fetchSubAccounts(o,n,e);if(v.error){return i({error:c(v.error),code:t(null===(m=v.error)||void 0===m?void 0:m.code),severity:r.ERROR})}{const o=Object.assign({},v.page_info);p({subAccounts:(null===(u=v.data)||void 0===u?void 0:u.map((o=>new s(o))))||[],pagingInfo:o})}}catch(o){const s=t(null==o?void 0:o.code);return i({error:o.message||o,code:s,severity:r.ERROR})}};export{a as S,e as m}
@@ -1 +1 @@
1
- import{h as a}from"./p-CV0Pyo1O.js";import{U as s,V as n,C as r,W as i,X as t,Y as o,Z as e,_ as c,$ as l,a0 as d,a1 as p,a2 as u}from"./p-DnrawQn3.js";const b=(b,f)=>{const{variant:m,isLoading:j,className:v,class:y,clickHandler:g}=b,O=function(a,s){var n={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&s.indexOf(r)<0&&(n[r]=a[r]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(a);i<r.length;i++)s.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(a,r[i])&&(n[r[i]]=a[r[i]])}return n}(b,["variant","isLoading","className","class","clickHandler"]),$=v||y||"";return a("button",Object.assign({class:`btn btn-${m}${$?` ${$}`:""}`,onClick:g,part:`${{primary:p,secondary:d,success:l,danger:c,warning:e,info:o,light:t,dark:i,link:r,"outline-primary":n,"outline-secondary":s}[m]} ${j?u:""}`},O),j?a("div",{class:"spinner-border spinner-border-sm",role:"status",part:"button-spinner"},a("span",{class:"visually-hidden"},"Loading...")):f)};export{b as B}
1
+ import{h as a}from"./p-CV0Pyo1O.js";import{U as s,V as n,C as r,W as i,X as t,Y as o,Z as e,_ as c,$ as l,a0 as d,a1 as p,a2 as u}from"./p-CPKMvyV_.js";const b=(b,f)=>{const{variant:m,isLoading:v,className:y,class:j,clickHandler:g}=b,O=function(a,s){var n={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&s.indexOf(r)<0&&(n[r]=a[r]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(a);i<r.length;i++)s.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(a,r[i])&&(n[r[i]]=a[r[i]])}return n}(b,["variant","isLoading","className","class","clickHandler"]),$=y||j||"";return a("button",Object.assign({class:`btn btn-${m}${$?` ${$}`:""}`,onClick:g,part:`${{primary:p,secondary:d,success:l,danger:c,warning:e,info:o,light:t,dark:i,link:r,"outline-primary":n,"outline-secondary":s}[m]} ${v?u:""}`},O),v?a("div",{class:"spinner-border spinner-border-sm",role:"status",part:"button-spinner"},a("span",{class:"visually-hidden"},"Loading...")):f)};export{b as B}
@@ -0,0 +1 @@
1
+ import{h as a}from"./p-CV0Pyo1O.js";import{e as r,g as s,i as g,j as e,k as n,m as d,n as i,o as t,p as o}from"./p-CPKMvyV_.js";var b;!function(a){a.PRIMARY="primary",a.SECONDARY="secondary",a.SUCCESS="success",a.DANGER="danger",a.WARNING="warning",a.INFO="info",a.LIGHT="light",a.DARK="dark"}(b||(b={}));const c=b=>{const{variant:c,text:p,title:y}=b,f={default:"badge",primary:"badge bg-primary",secondary:"badge bg-secondary",success:"badge bg-success",danger:"badge bg-danger",warning:"badge bg-warning",info:"badge bg-info",light:"badge bg-light",dark:"badge bg-dark"},l={default:o,primary:t,secondary:i,success:d,danger:n,warning:e,info:g,light:s,dark:r};return a("span",{class:f[c]||f.default,part:l[c]||l.default,title:y},p)};export{b as B,c as a}
@@ -1 +1 @@
1
- const a="font-family",t="background-color",s=`text color ${a}`,n=`text-danger ${s}`,e=`heading ${s}`,o=`heading-1 ${e}`,i=`heading-2 ${e}`,$=`heading-3 ${e}`,d=`heading-4 ${e}`,u=`heading-5 ${e}`,b=`link text ${a}`,l=`button ${s}`,c=`button-primary ${l}`,r=`button-secondary ${l}`,p=`button-danger ${l}`,g=`button-success ${l}`,h=`button-warning ${l}`,f=`button-info ${l}`,k=`button-light ${l}`,m=`button-dark ${l}`,x=`button-link ${l}`,y=`button-outline-primary ${l}`,w=`button-outline-secondary ${l}`,v="button-loading",j=`label ${s}`,q=`input ${s} ${t}`,z=`input-group ${q}`,A=`input-invalid ${q}`,B=`input-disabled ${q}`,C=`input-focused ${q}`,D=`input-invalid-and-focused ${q}`,E="input-radio",F=`input-radio-focused ${E}`,G=`input-radio-checked ${E}`,H=`input-radio-checked-focused ${E}`,I=`input-radio-invalid ${E}`,J="input-checkbox",K=`input-checkbox-invalid ${J}`,L=`input-checkbox-focused ${J}`,M=`input-checkbox-checked ${J}`,N=`input-checkbox-checked-focused ${J}`,O=`input-adornment ${s}`,P=`alert ${s}`,Q=`alert-danger ${P}`,R=`tooltip ${s}`,S=`tooltip-icon ${s}`,T=`tooltip-inner ${s}`,U=`card ${s} ${t}`,V=`table ${s} ${t}`,W=`table-row ${s} ${t}`,X=`table-cell ${s} ${t}`,Y="table-head",Z=`table-head-row ${s} ${t}`,_=`table-head-cell ${X}`,aa="table-foot",ta=`table-foot-row ${s} ${t}`,sa=`table-foot-cell ${X}`,na=`table-cell-even ${X}`,ea=`table-cell-odd ${X}`,oa=a=>a%2?na:ea,ia=`table-empty ${s} ${t}`,$a=`table-error ${s} ${t}`,da=`pagination-button ${l}`,ua=`pagination-button-disabled button-disabled ${l}`,ba=`pagination-button-text ${s}`,la=`pagination-button-icon ${s}`,ca=`pagination-button-icon-next ${la}`,ra=`pagination-button-icon-previous ${la}`,pa="loading-spinner",ga=`badge ${a}`,ha=`${ga} badge-primary`,fa=`${ga} badge-secondary`,ka=`${ga} badge-success`,ma=`${ga} badge-danger`,xa=`${ga} badge-warning`,ya=`${ga} badge-info`,wa=`${ga} badge-light`,va=`${ga} badge-dark`,ja=`dropdown-menu ${s}`,qa=`dropdown-menu-button ${c}`,za=`radio-list-item ${s}`,Aa="skeleton",Ba="image",Ca="billing-form",Da="checkout-summary",Ea="filter-menu",Fa="filter-param";export{g as $,$ as A,Ba as B,x as C,U as D,z as E,K as F,N as G,L as H,M as I,J,I as K,H as L,G as M,F as N,E as O,da as P,ua as Q,ra as R,ba as S,ca as T,w as U,y as V,m as W,k as X,f as Y,h as Z,p as _,Fa as a,r as a0,c as a1,v as a2,_ as a3,oa as a4,qa as a5,ja as a6,D as a7,d as a8,u as a9,V as aa,Y as ab,Z as ac,W as ad,aa as ae,ta as af,sa as ag,ia as ah,$a as ai,X as aj,Q as ak,Ca as al,P as am,R as an,T as ao,S as ap,i as b,Da as c,va as d,wa as e,Ea as f,ya as g,o as h,xa as i,ma as j,ka as k,b as l,fa as m,ha as n,ga as o,pa as p,A as q,za as r,Aa as s,s as t,B as u,C as v,q as w,j as x,O as y,n as z}
1
+ const a="font-family",t="background-color",s=`text color ${a}`,n=`text-danger ${s}`,e=`heading ${s}`,o=`heading-1 ${e}`,i=`heading-2 ${e}`,$=`heading-3 ${e}`,d=`heading-4 ${e}`,u=`heading-5 ${e}`,b=`link text ${a}`,l=`button ${s}`,c=`button-primary ${l}`,r=`button-secondary ${l}`,p=`button-danger ${l}`,g=`button-success ${l}`,h=`button-warning ${l}`,f=`button-info ${l}`,k=`button-light ${l}`,m=`button-dark ${l}`,x=`button-link ${l}`,y=`button-outline-primary ${l}`,w=`button-outline-secondary ${l}`,v="button-loading",j=`label ${s}`,q=`input ${s} ${t}`,z=`input-group ${q}`,A=`input-invalid ${q}`,B=`input-disabled ${q}`,C=`input-focused ${q}`,D=`input-invalid-and-focused ${q}`,E="input-radio",F=`input-radio-focused ${E}`,G=`input-radio-checked ${E}`,H=`input-radio-checked-focused ${E}`,I=`input-radio-invalid ${E}`,J="input-checkbox",K=`input-checkbox-invalid ${J}`,L=`input-checkbox-focused ${J}`,M=`input-checkbox-checked ${J}`,N=`input-checkbox-checked-focused ${J}`,O=`input-adornment ${s}`,P=`alert ${s}`,Q=`alert-danger ${P}`,R=`tooltip ${s}`,S=`tooltip-icon ${s}`,T=`tooltip-inner ${s}`,U=`card ${s} ${t}`,V=`table ${s} ${t}`,W=`table-row ${s} ${t}`,X=`table-cell ${s} ${t}`,Y="table-head",Z=`table-head-row ${s} ${t}`,_=`table-head-cell ${X}`,aa="table-foot",ta=`table-foot-row ${s} ${t}`,sa=`table-foot-cell ${X}`,na=`table-cell-even ${X}`,ea=`table-cell-odd ${X}`,oa=a=>a%2?na:ea,ia=`table-empty ${s} ${t}`,$a=`table-error ${s} ${t}`,da=`pagination-button ${l}`,ua=`pagination-button-disabled button-disabled ${l}`,ba=`pagination-button-text ${s}`,la=`pagination-button-icon ${s}`,ca=`pagination-button-icon-next ${la}`,ra=`pagination-button-icon-previous ${la}`,pa="loading-spinner",ga=`badge ${a}`,ha=`${ga} badge-primary`,fa=`${ga} badge-secondary`,ka=`${ga} badge-success`,ma=`${ga} badge-danger`,xa=`${ga} badge-warning`,ya=`${ga} badge-info`,wa=`${ga} badge-light`,va=`${ga} badge-dark`,ja=`dropdown-menu ${s}`,qa=`dropdown-menu-button ${c}`,za=`radio-list-item ${s}`,Aa="skeleton",Ba="image",Ca="billing-form",Da="checkout-summary",Ea="filter-menu",Fa="filter-param";export{g as $,$ as A,Ba as B,x as C,U as D,z as E,K as F,N as G,L as H,M as I,J,da as K,ua as L,ra as M,ba as N,ca as O,I as P,H as Q,G as R,F as S,E as T,w as U,y as V,m as W,k as X,f as Y,h as Z,p as _,Fa as a,r as a0,c as a1,v as a2,D as a3,qa as a4,ja as a5,_ as a6,oa as a7,d as a8,u as a9,V as aa,Y as ab,Z as ac,W as ad,aa as ae,ta as af,sa as ag,ia as ah,$a as ai,X as aj,Q as ak,Ca as al,P as am,R as an,T as ao,S as ap,i as b,Da as c,pa as d,va as e,Ea as f,wa as g,o as h,ya as i,xa as j,ma as k,b as l,ka as m,fa as n,ha as o,ga as p,A as q,za as r,Aa as s,s as t,B as u,C as v,q as w,j as x,O as y,n as z}
@@ -0,0 +1 @@
1
+ import{h as r}from"./p-CV0Pyo1O.js";import{z as t}from"./p-CPKMvyV_.js";const o=o=>{const{errorText:e,name:s}=o;return e?r("small",{class:"form-text text-danger",id:`form-error-text-${s}`,part:t},e):null};export{o as F}
@@ -1 +1 @@
1
- import{e as t}from"./p-CUI41_5y.js";const e=t=>"string"==typeof t?t:t.message,a=e=>{switch(e){case"not_authenticated":return t.NOT_AUTHENTICATED;case"invalid_parameter":return t.INVALID_PARAMETER;default:return t.FETCH_ERROR}};export{e as a,a as g}
1
+ import{e as t}from"./p-NZS8uCtH.js";const e=t=>"string"==typeof t?t:t.message,a=e=>{switch(e){case"not_authenticated":return t.NOT_AUTHENTICATED;case"invalid_parameter":return t.INVALID_PARAMETER;default:return t.FETCH_ERROR}};export{e as a,a as g}
@@ -0,0 +1 @@
1
+ import{h as s}from"./p-CV0Pyo1O.js";import{d as o}from"./p-CPKMvyV_.js";const r=()=>s("div",{class:"d-flex justify-content-center"},s("div",{class:"spinner-border",role:"status",part:o},s("span",{class:"visually-hidden"},"Loading...")));export{r as S}
@@ -1 +1 @@
1
- import{h as s}from"./p-CV0Pyo1O.js";import{t,h as a,b as l,l as e}from"./p-DnrawQn3.js";const o=a=>s("main",{class:"p-4 d-flex justify-content-center text-center",style:{fontSize:"1.2rem"}},s("p",{part:t},a)),r=t=>s("h2",{part:l,class:"mt-4 fs-5 border-bottom pb-3"},t.sectionTitle),c=({title:a,value:l,onClick:o})=>a&&l?s("div",{class:"row justify-content-between"},s("div",{class:"col-12 col-md-4"},s("span",{class:"fw-bold",part:t},a)),s("div",{class:"col-12 col-md-8 "+(o?"text-decoration-underline text-primary":""),style:{cursor:o?"pointer":"auto"},onClick:()=>o&&o()},s("span",{class:"text-wrap",part:o?e:t},l))):null,p=({title:a,value:e,classes:o})=>s("div",{class:`d-flex flex-column ${o}`},s("span",{class:"fw-bold border-1 border-bottom ps-2 pe-2",part:l},a),s("span",{class:"pt-2 ps-2 pe-2",part:t},e)),n=({title:l,slot:e,badge:o},r)=>s("div",{slot:e,class:"p-2"},s("div",{class:"d-flex flex-row align-items-center gap-2 mb-2"},s("h1",{class:"m-0",part:a},l),o),s("div",{class:"d-flex flex-row align-items-top",part:t},r)),i=({metadata:t})=>t&&Object.keys(t).length?s("div",{class:"mt-4"},s("pre",{class:"p-2","aria-label":"metadata content"},s("code",null,JSON.stringify(t,null,2)))):null;export{i as C,r as D,o as E,n as a,p as b,c}
1
+ import{h as s}from"./p-CV0Pyo1O.js";import{t,h as a,b as l,l as e}from"./p-CPKMvyV_.js";const o=a=>s("main",{class:"p-4 d-flex justify-content-center text-center",style:{fontSize:"1.2rem"}},s("p",{part:t},a)),c=t=>s("h2",{part:l,class:"mt-4 fs-5 border-bottom pb-3"},t.sectionTitle),r=({title:a,value:l,onClick:o})=>a&&l?s("div",{class:"row justify-content-between"},s("div",{class:"col-12 col-md-4"},s("span",{class:"fw-bold",part:t},a)),s("div",{class:"col-12 col-md-8 "+(o?"text-decoration-underline text-primary":""),style:{cursor:o?"pointer":"auto"},onClick:()=>o&&o()},s("span",{class:"text-wrap",part:o?e:t},l))):null,p=({title:a,value:e,classes:o})=>s("div",{class:`d-flex flex-column ${o}`},s("span",{class:"fw-bold border-1 border-bottom ps-2 pe-2",part:l},a),s("span",{class:"pt-2 ps-2 pe-2",part:t},e)),n=({title:l,slot:e,badge:o},c)=>s("div",{slot:e,class:"p-2"},s("div",{class:"d-flex flex-row align-items-center gap-2 mb-2"},s("h1",{class:"m-0",part:a},l),o),s("div",{class:"d-flex flex-row align-items-top",part:t},c)),i=({metadata:t})=>t&&Object.keys(t).length?s("div",{class:"mt-4"},s("pre",{class:"p-2","aria-label":"metadata content"},s("code",null,JSON.stringify(t,null,2)))):null;export{i as C,c as D,o as E,n as a,p as b,r as c}
@@ -0,0 +1 @@
1
+ import{p as t}from"./p-OGt0dCJl.js";import{A as s}from"./p-CYQvLgSs.js";import"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const i=s();class e{async record(t){return i.post({endpoint:"analytics",body:t})}}class n{constructor(t){this.eventListeners=new Map,this.handleCustomEvent=async t=>{await this.service.record(t)},window.location.origin.includes("localhost")||window.location.origin.includes("storybook")||(this.service=new e,this.componentInstance=t,this.setUpBasicData(),this.setupLifecycleTracking(),this.trackCustomEvents())}get resourceId(){return this.componentInstance.accountId||this.componentInstance.businessId||this.componentInstance.paymentId||this.componentInstance.payoutId||this.componentInstance.checkoutId}setUpBasicData(){this.basicData={component_name:this.componentInstance.tagName,component_version:t.version,client_user_agent:navigator.userAgent,client_platform:navigator.userAgent,client_origin:window.location.origin,resource_id:this.resourceId}}trackCustomEvents(){this.eventEmitters=["submit-event","error-event"],this.eventEmitters.forEach((t=>{if("function"==typeof this.componentInstance.addEventListener){const s=s=>this.handleCustomEvent({event_type:t,data:Object.assign(Object.assign({},this.basicData),"error-event"===t&&{error:s.detail})});this.eventListeners.set(t,s),this.componentInstance.addEventListener(t,s)}}))}setupLifecycleTracking(){const t=this.componentInstance.componentDidLoad;this.componentInstance.componentDidLoad=()=>{if(this.service.record({event_type:"init",data:this.basicData}),t)return t.apply(this.componentInstance)}}cleanup(){this.eventListeners.forEach(((t,s)=>{this.componentInstance.removeEventListener(s,t)})),this.eventListeners.clear()}}export{n as J}
@@ -0,0 +1 @@
1
+ import{h as s}from"./p-CV0Pyo1O.js";import{b as t}from"./p-CPKMvyV_.js";import{c as a}from"./p-D8GTwl9v.js";const r=a=>s("h2",{class:`header-2 ${null==a?void 0:a.class}`,part:t},a.text),o=a({}),{state:e,on:n}=o,i=a({}),{state:l}=i,p={},c=()=>{let s=!0;return Object.keys(e).forEach((t=>{null===e[t]?(l[t]=!0,s=!1):l[t]=!1})),{isValid:s}},m=(s,t)=>{const a=p.hasOwnProperty(s),r=p[s];if(!a)return p[s]=t,!1;const o=r!==t;return o&&(p[s]=t),o};export{r as H,l as a,n as b,m as h,e as i,c as v}
@@ -1 +1 @@
1
- import{h as e}from"./p-CV0Pyo1O.js";import{B as t,a}from"./p-pL4dNfsl.js";var d;!function(e){e.SUCCEEDED="succeeded",e.AUTHORIZED="authorized",e.PENDING="pending",e.ACH_FAILED="achFailed",e.FAILED="failed",e.CANCELED="canceled",e.DISPUTED="disputed",e.DISPUTE_LOST="dispute_lost",e.FULLY_REFUNDED="fully_refunded",e.PARTIALLY_REFUNDED="partially_refunded"}(d||(d={}));const i=d=>e(a,Object.assign({},{succeeded:{variant:t.SUCCESS,title:"This payment was successfully captured",text:"Succeeded"},authorized:{variant:t.PRIMARY,title:"This card payment was authorized, but not captured. It could still succeed or fail.",text:"Authorized"},pending:{variant:t.PRIMARY,title:"This ACH payment was processed, but the funds have not settled. It could still succeed or fail.",text:"Pending"},achFailed:{variant:t.DANGER,title:"The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)",text:"ACH Failed"},failed:{variant:t.DANGER,title:"This card payment did not go through (it will not appear in a payout)",text:"Failed"},canceled:{variant:t.DANGER,title:"This payment was canceled",text:"Canceled"},disputed:{variant:t.WARNING,title:"The account holder disputed this payment. The amount has been returned and a fee assessed.",text:"Disputed"},dispute_lost:{variant:t.SECONDARY,title:"The cardholder has won the dispute.",text:"Dispute Lost"},fully_refunded:{variant:t.SECONDARY,title:"The full amount of this payment has been refunded",text:"Fully Refunded"},partially_refunded:{variant:t.SECONDARY,title:"A portion of this payment has been refunded",text:"Partially Refunded"}}[d]));export{i as M,d as P}
1
+ import{h as e}from"./p-CV0Pyo1O.js";import{B as t,a}from"./p-CHw7tICr.js";var d;!function(e){e.SUCCEEDED="succeeded",e.AUTHORIZED="authorized",e.PENDING="pending",e.ACH_FAILED="achFailed",e.FAILED="failed",e.CANCELED="canceled",e.DISPUTED="disputed",e.DISPUTE_LOST="dispute_lost",e.FULLY_REFUNDED="fully_refunded",e.PARTIALLY_REFUNDED="partially_refunded"}(d||(d={}));const i=d=>e(a,Object.assign({},{succeeded:{variant:t.SUCCESS,title:"This payment was successfully captured",text:"Succeeded"},authorized:{variant:t.PRIMARY,title:"This card payment was authorized, but not captured. It could still succeed or fail.",text:"Authorized"},pending:{variant:t.PRIMARY,title:"This ACH payment was processed, but the funds have not settled. It could still succeed or fail.",text:"Pending"},achFailed:{variant:t.DANGER,title:"The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)",text:"ACH Failed"},failed:{variant:t.DANGER,title:"This card payment did not go through (it will not appear in a payout)",text:"Failed"},canceled:{variant:t.DANGER,title:"This payment was canceled",text:"Canceled"},disputed:{variant:t.WARNING,title:"The account holder disputed this payment. The amount has been returned and a fee assessed.",text:"Disputed"},dispute_lost:{variant:t.SECONDARY,title:"The cardholder has won the dispute.",text:"Dispute Lost"},fully_refunded:{variant:t.SECONDARY,title:"The full amount of this payment has been refunded",text:"Fully Refunded"},partially_refunded:{variant:t.SECONDARY,title:"A portion of this payment has been refunded",text:"Partially Refunded"}}[d]));export{i as M,d as P}
@@ -0,0 +1 @@
1
+ import{h as s}from"./p-CV0Pyo1O.js";import{S as l}from"./p-uZ5KAseb.js";import"./p-CZfYo5-1.js";const i=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(l,{width:"25%"})),s("div",{class:"col-12"},s(l,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(l,{width:"50%"}),s(l,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(l,{width:"65%"}),s(l,{width:"35%"}))),d=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(l,{width:"40%",height:"40px"})),s(i,null),s(i,null),s(i,null));export{d as P}
@@ -0,0 +1 @@
1
+ import{h as o}from"./p-CV0Pyo1O.js";import{A as r}from"./p-CPKMvyV_.js";const s=s=>o("h3",{class:`header-3 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
@@ -0,0 +1 @@
1
+ import{A as t}from"./p-CYQvLgSs.js";import"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const a=t();class n{async fetchPayouts(t,n,s){return a.get({authToken:n,endpoint:`account/${t}/payouts`,params:s})}async fetchPayout(t,n){return a.get({authToken:n,endpoint:`payouts/${t}`})}async fetchCSV(t,n){return a.get({authToken:n,endpoint:`reports/payouts/${t}`})}async fetchPayoutTransactions(t,n,s){return a.get({authToken:n,endpoint:"balance_transactions",params:s,headers:{"sub-account":t}})}}export{n as P}