@justifi/webcomponents 6.13.0-rc.1 → 6.13.0

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 (585) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Analytics-Be2I_aiS.js → Analytics-DaegoP5G.js} +5 -5
  3. package/dist/cjs/{Api-Bukk55YZ.js → Api-BioDE5he.js} +1 -1
  4. package/dist/cjs/{Plaid-Aw35bhCX.js → Plaid-QLOFOTeC.js} +13 -13
  5. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  6. package/dist/cjs/{additional-questions-form-step_14.cjs.entry.js → additional-questions-form-step_15.cjs.entry.js} +391 -175
  7. package/dist/cjs/additional-questions_5.cjs.entry.js +7 -7
  8. package/dist/cjs/additional-statement_8.cjs.entry.js +9 -9
  9. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +10 -10
  10. package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +21 -0
  11. package/dist/cjs/bank-account-form.cjs.entry.js +34 -5
  12. package/dist/cjs/{business-form-options-D_nM7NDk.js → business-form-options-CnlrfbQ6.js} +51 -0
  13. package/dist/cjs/{business-identity-schema-DI9XFbaD.js → business-identity-schema-BA385xf-.js} +12 -8
  14. package/dist/cjs/{business.service-CylI3Qrg.js → business.service-DOGeb2O6.js} +2 -2
  15. package/dist/cjs/card-form.cjs.entry.js +5 -5
  16. package/dist/cjs/{check-pkg-version-BLLLh6v-.js → check-pkg-version-BNGOOokA.js} +1 -1
  17. package/dist/cjs/{checkout-actions-8-MUczKw.js → checkout-actions-CjR16i7o.js} +2 -2
  18. package/dist/cjs/{checkout.service-BYpinbSR.js → checkout.service-Bdr5qUHj.js} +2 -2
  19. package/dist/cjs/{checkout.store-CztwuCnG.js → checkout.store-CZHrIuaP.js} +9 -3
  20. package/dist/cjs/{country-config-D7fss2oF.js → country-config-C1bWmF8P.js} +12 -4
  21. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  22. package/dist/cjs/dispute-notification_2.cjs.entry.js +15 -15
  23. package/dist/cjs/{event-types-DptNnCEP.js → event-types-DWDQKDv4.js} +2 -2
  24. package/dist/cjs/form-address-fields_3.cjs.entry.js +3 -3
  25. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  26. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  27. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  28. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  29. package/dist/cjs/form-control-monetary.cjs.entry.js +3 -3
  30. package/dist/cjs/form-control-number_2.cjs.entry.js +7 -6
  31. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  32. package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
  33. package/dist/cjs/{get-business-D10Tmct1.js → get-business-CrxvWZh6.js} +2 -2
  34. package/dist/cjs/{get-payment-details-BB5aa48u.js → get-payment-details-iCEkGDy4.js} +2 -2
  35. package/dist/cjs/{get-subaccounts-CSD2nAqD.js → get-subaccounts-Dgl7ECtg.js} +3 -3
  36. package/dist/cjs/hidden-input_2.cjs.entry.js +6 -6
  37. package/dist/cjs/{index.esm-C1ZPG85l.js → index.esm-BNETBIV_.js} +0 -18
  38. package/dist/cjs/{insurance-state-Xe2auE-N.js → insurance-state-B-XQRmMs.js} +1 -1
  39. package/dist/cjs/internal-button.cjs.entry.js +1 -1
  40. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +63 -38
  41. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +8 -8
  42. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +18 -8
  43. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +2 -2
  44. package/dist/cjs/justifi-billing-form.cjs.entry.js +2 -2
  45. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
  46. package/dist/cjs/justifi-business-form.cjs.entry.js +15 -15
  47. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +2 -2
  48. package/dist/cjs/justifi-card-form.cjs.entry.js +8 -8
  49. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +6 -6
  50. package/dist/cjs/justifi-checkout.cjs.entry.js +10 -10
  51. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
  52. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +12 -12
  53. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  54. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +11 -11
  55. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
  56. package/dist/cjs/justifi-payment-details.cjs.entry.js +18 -18
  57. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -11
  58. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
  59. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +5 -5
  60. package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -11
  61. package/dist/cjs/justifi-payout-details.cjs.entry.js +13 -13
  62. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
  63. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +5 -5
  64. package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -15
  65. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +9 -9
  66. package/dist/cjs/justifi-refund-payment.cjs.entry.js +13 -13
  67. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +2 -2
  68. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -10
  69. package/dist/cjs/justifi-skeleton.cjs.entry.js +2 -2
  70. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +7 -7
  71. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -11
  72. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -5
  73. package/dist/cjs/justifi-terminals-list.cjs.entry.js +14 -14
  74. package/dist/cjs/loader.cjs.js +1 -1
  75. package/dist/cjs/{lodash-CxSkBibc.js → lodash-C4mGy21w.js} +38 -27
  76. package/dist/cjs/{package-gx36QXN1.js → package-BKwTzSig.js} +1 -1
  77. package/dist/cjs/payment-method-option.cjs.entry.js +2 -2
  78. package/dist/cjs/{payment-provisioning-actions-DimM0KGV.js → payment-provisioning-actions-B4x7lnyF.js} +9 -9
  79. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +3 -2
  80. package/dist/cjs/{payment.service-fy5bXXmA.js → payment.service-a5EL3s2d.js} +2 -2
  81. package/dist/cjs/{payout.service-hp3PTXWI.js → payout.service-BJtGBHsQ.js} +2 -2
  82. package/dist/cjs/{payouts-status-CF1YT_RL.js → payouts-status-viYMBknO.js} +2 -2
  83. package/dist/cjs/{plaid.service-9PmS4X0g.js → plaid.service-DpiLY-5D.js} +2 -2
  84. package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
  85. package/dist/cjs/save-new-payment-method.cjs.entry.js +2 -2
  86. package/dist/cjs/{schema-validations-_yWWnnaG.js → schema-validations-C2XsZnqK.js} +24 -10
  87. package/dist/cjs/styled-host-Ch0-dxF-.js +11 -0
  88. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  89. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  90. package/dist/cjs/{terminal.service-D5D76Cnn.js → terminal.service-DN2A-bNx.js} +2 -2
  91. package/dist/cjs/{utils-Dcde8Zpt.js → utils-BVM6JCW0.js} +1 -1
  92. package/dist/cjs/{utils-BHi4j5rB.js → utils-D1CWnhex.js} +4 -4
  93. package/dist/cjs/webcomponents.cjs.js +1 -1
  94. package/dist/collection/actions/payment/get-payments.js +1 -1
  95. package/dist/collection/actions/refund/refund-actions.js +1 -1
  96. package/dist/collection/actions/terminal/get-terminal-orders.js +1 -1
  97. package/dist/collection/actions/void/void-actions.js +1 -1
  98. package/dist/collection/api/Analytics.js +2 -2
  99. package/dist/collection/api/Document.js +12 -0
  100. package/dist/collection/collection-manifest.json +3 -1
  101. package/dist/collection/components/business-details/owner-details/owner-details.js +1 -1
  102. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
  103. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +5 -3
  104. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +4 -2
  105. package/dist/collection/components/business-forms/owner-form/owner-form.js +46 -1
  106. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/additional-questions-form-step.js +2 -2
  107. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +6 -114
  108. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +2 -2
  109. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +9 -0
  110. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +4 -2
  111. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  112. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.js +433 -0
  113. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-list.js +52 -0
  114. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-options.js +80 -0
  115. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +1 -1
  116. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  117. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +7 -7
  118. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +3 -2
  119. package/dist/collection/components/business-forms/schemas/business-address-schema.js +1 -1
  120. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +10 -38
  121. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
  122. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +7 -3
  123. package/dist/collection/components/business-forms/schemas/schema-helpers.js +1 -1
  124. package/dist/collection/components/business-forms/schemas/schema-validations.js +10 -7
  125. package/dist/collection/components/business-forms/utils/business-form-options.js +50 -0
  126. package/dist/collection/components/business-forms/utils/country-config.js +11 -4
  127. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +30 -2
  128. package/dist/collection/components/checkout/billing-form/bank-account-billing-form-simple.js +1 -1
  129. package/dist/collection/components/checkout/billing-form/billing-form-full.js +2 -2
  130. package/dist/collection/components/checkout/billing-form/billing-form-schema.js +1 -1
  131. package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +1 -1
  132. package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +1 -1
  133. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  134. package/dist/collection/components/checkout/justifi-checkout.js +21 -2
  135. package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
  136. package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
  137. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  138. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +2 -2
  139. package/dist/collection/components/dispute-management/dispute-notification.js +3 -3
  140. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  141. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  142. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  143. package/dist/collection/components/dispute-management/dispute-response/dispute-response-actions.js +3 -3
  144. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  145. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  146. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  147. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  148. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  149. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  150. package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
  151. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  152. package/dist/collection/components/filters/utils.js +1 -1
  153. package/dist/collection/components/gross-payment-chart/chart-utils.js +3 -3
  154. package/dist/collection/components/insurance/insurance-state.js +1 -1
  155. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +19 -13
  156. package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +0 -21
  157. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
  158. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +11 -1
  159. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
  160. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
  161. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
  162. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
  163. package/dist/collection/components/modular-checkout/sub-components/justifi-google-pay.js +16 -10
  164. package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js +15 -2
  165. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  166. package/dist/collection/components/order-terminals/justifi-order-terminals.js +1 -1
  167. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  168. package/dist/collection/components/payment-details/justifi-payment-details.js +8 -8
  169. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
  170. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  171. package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
  172. package/dist/collection/components/payout-details/justifi-payout-details.js +3 -3
  173. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
  174. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  175. package/dist/collection/components/payouts-list/justifi-payouts-list.js +4 -4
  176. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  177. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +2 -2
  178. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  179. package/dist/collection/components/terminals-list/justifi-terminals-list.js +4 -4
  180. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +5 -3
  181. package/dist/collection/store/checkout.store.js +9 -3
  182. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  183. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  184. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  185. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  186. package/dist/collection/ui-components/form/form-control-file.js +3 -3
  187. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  188. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  189. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  190. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  191. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  192. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  193. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  194. package/dist/collection/ui-components/form/hidden-input.js +2 -2
  195. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  196. package/dist/collection/ui-components/internal-button.js +1 -1
  197. package/dist/collection/ui-components/radio-list-item.js +1 -1
  198. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  199. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  200. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  201. package/dist/collection/utils/checkout-billing-state-options.js +12 -0
  202. package/dist/collection/utils/utils.js +4 -4
  203. package/dist/docs.json +537 -106
  204. package/dist/esm/{Analytics-DZWGizAK.js → Analytics-D_HycaxE.js} +5 -5
  205. package/dist/esm/{Api-DMd8hTI-.js → Api-DjAL73GZ.js} +1 -1
  206. package/dist/esm/{Plaid-fhlY0CIN.js → Plaid-C8qoMZLV.js} +14 -13
  207. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  208. package/dist/esm/{additional-questions-form-step_14.entry.js → additional-questions-form-step_15.entry.js} +390 -175
  209. package/dist/esm/additional-questions_5.entry.js +8 -8
  210. package/dist/esm/additional-statement_8.entry.js +9 -9
  211. package/dist/esm/bank-account-billing-form-simple_4.entry.js +10 -10
  212. package/dist/esm/bank-account-document-form-inputs.entry.js +19 -0
  213. package/dist/esm/bank-account-form.entry.js +34 -5
  214. package/dist/esm/{business-form-options-DRalxlqN.js → business-form-options-DXjZp4Rl.js} +51 -1
  215. package/dist/esm/{business-identity-schema-D-Nk9aGV.js → business-identity-schema-Csou60ZC.js} +12 -8
  216. package/dist/esm/{business.service-Crs-0Mdy.js → business.service-BGXqAyxu.js} +2 -2
  217. package/dist/esm/card-form.entry.js +5 -5
  218. package/dist/esm/{check-pkg-version-CVyuA8aH.js → check-pkg-version-BfrWk42V.js} +1 -1
  219. package/dist/esm/{checkout-actions-BMnp3uHK.js → checkout-actions-D8JS2l5e.js} +2 -2
  220. package/dist/esm/{checkout.service-BMAQVmHa.js → checkout.service-sHKaW-M0.js} +2 -2
  221. package/dist/esm/{checkout.store-DFnkcDZ8.js → checkout.store-DibfdUMm.js} +9 -3
  222. package/dist/esm/{country-config-B_fuF6JU.js → country-config-CEJVOOGe.js} +12 -5
  223. package/dist/esm/custom-popper_2.entry.js +2 -2
  224. package/dist/esm/dispute-notification_2.entry.js +15 -15
  225. package/dist/esm/{event-types-CVVB5p_Q.js → event-types-ynZLear3.js} +2 -2
  226. package/dist/esm/form-address-fields_3.entry.js +3 -3
  227. package/dist/esm/form-control-checkbox.entry.js +2 -2
  228. package/dist/esm/form-control-date.entry.js +2 -2
  229. package/dist/esm/form-control-file-v2_2.entry.js +3 -3
  230. package/dist/esm/form-control-file.entry.js +2 -2
  231. package/dist/esm/form-control-monetary.entry.js +3 -3
  232. package/dist/esm/form-control-number_2.entry.js +7 -6
  233. package/dist/esm/form-control-radio.entry.js +2 -2
  234. package/dist/esm/form-control-select_2.entry.js +4 -4
  235. package/dist/esm/{get-business-B9ZS1tVq.js → get-business-DAv_b3vf.js} +2 -2
  236. package/dist/esm/{get-payment-details-CiR6FrkO.js → get-payment-details-Bipad3jX.js} +2 -2
  237. package/dist/esm/{get-subaccounts-VpDr7yN4.js → get-subaccounts-FqCT2s3S.js} +3 -3
  238. package/dist/esm/hidden-input_2.entry.js +6 -6
  239. package/dist/esm/{index.esm-CgNcFueq.js → index.esm-KCSohgHx.js} +1 -18
  240. package/dist/esm/{insurance-state-CLGc1-_4.js → insurance-state-C5OZqDCT.js} +1 -1
  241. package/dist/esm/internal-button.entry.js +1 -1
  242. package/dist/esm/justifi-apple-pay_11.entry.js +63 -38
  243. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +8 -8
  244. package/dist/esm/justifi-bank-account-form.entry.js +18 -8
  245. package/dist/esm/justifi-billing-form-full.entry.js +2 -2
  246. package/dist/esm/justifi-billing-form.entry.js +2 -2
  247. package/dist/esm/justifi-business-details.entry.js +10 -10
  248. package/dist/esm/justifi-business-form.entry.js +15 -15
  249. package/dist/esm/justifi-card-billing-form-simple.entry.js +2 -2
  250. package/dist/esm/justifi-card-form.entry.js +8 -8
  251. package/dist/esm/justifi-checkout-qr-code.entry.js +6 -6
  252. package/dist/esm/justifi-checkout.entry.js +10 -10
  253. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
  254. package/dist/esm/justifi-checkouts-list.entry.js +12 -12
  255. package/dist/esm/justifi-dispute-management.entry.js +10 -10
  256. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
  257. package/dist/esm/justifi-order-terminals.entry.js +12 -12
  258. package/dist/esm/justifi-payment-details.entry.js +18 -18
  259. package/dist/esm/justifi-payment-provisioning.entry.js +11 -11
  260. package/dist/esm/justifi-payment-transactions-list.entry.js +10 -10
  261. package/dist/esm/justifi-payments-list-filters.entry.js +5 -5
  262. package/dist/esm/justifi-payments-list.entry.js +11 -11
  263. package/dist/esm/justifi-payout-details.entry.js +13 -13
  264. package/dist/esm/justifi-payout-transactions-list.entry.js +10 -10
  265. package/dist/esm/justifi-payouts-list-filters.entry.js +5 -5
  266. package/dist/esm/justifi-payouts-list.entry.js +15 -15
  267. package/dist/esm/justifi-qr-terminal.entry.js +9 -9
  268. package/dist/esm/justifi-refund-payment.entry.js +13 -13
  269. package/dist/esm/justifi-save-new-payment-method.entry.js +2 -2
  270. package/dist/esm/justifi-season-interruption-insurance.entry.js +10 -10
  271. package/dist/esm/justifi-skeleton.entry.js +2 -2
  272. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +7 -7
  273. package/dist/esm/justifi-terminal-orders-list.entry.js +11 -11
  274. package/dist/esm/justifi-terminals-list-filters.entry.js +5 -5
  275. package/dist/esm/justifi-terminals-list.entry.js +14 -14
  276. package/dist/esm/loader.js +1 -1
  277. package/dist/esm/{lodash-CrGKVSPp.js → lodash-BF_QgjtL.js} +38 -27
  278. package/dist/esm/{package-CZa-hHhJ.js → package-DSavNeRB.js} +1 -1
  279. package/dist/esm/payment-method-option.entry.js +2 -2
  280. package/dist/esm/{payment-provisioning-actions-CcDadiRe.js → payment-provisioning-actions-DI3QUsjh.js} +9 -9
  281. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +3 -2
  282. package/dist/esm/{payment.service-BiKQPL4M.js → payment.service-wSNYSRyl.js} +2 -2
  283. package/dist/esm/{payout.service-B9_cyUiU.js → payout.service-CTAksNmD.js} +2 -2
  284. package/dist/esm/{payouts-status-xOa5tT66.js → payouts-status-CeZoirpf.js} +2 -2
  285. package/dist/esm/{plaid.service-bU3qIoKd.js → plaid.service-5EpJEdwX.js} +2 -2
  286. package/dist/esm/radio-list-item.entry.js +1 -1
  287. package/dist/esm/save-new-payment-method.entry.js +2 -2
  288. package/dist/esm/{schema-validations-u9_XnlUL.js → schema-validations-CySYE883.js} +24 -11
  289. package/dist/esm/styled-host-D84RBv1W.js +9 -0
  290. package/dist/esm/table-filters-menu.entry.js +1 -1
  291. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  292. package/dist/esm/{terminal.service-BM6BvevW.js → terminal.service-xjfU0mJT.js} +2 -2
  293. package/dist/esm/{utils-BTtxWI2r.js → utils-CcA8Y5hs.js} +4 -4
  294. package/dist/esm/{utils-BogmBHgt.js → utils-myniydlM.js} +1 -1
  295. package/dist/esm/webcomponents.js +1 -1
  296. package/dist/module/Analytics.js +2 -2
  297. package/dist/module/Plaid.js +13 -12
  298. package/dist/module/additional-questions-form-step2.js +12 -6
  299. package/dist/module/additional-statement2.js +1 -1
  300. package/dist/module/bank-account-billing-form-simple2.js +1 -1
  301. package/dist/module/bank-account-document-form-inputs.js +55 -1
  302. package/dist/module/bank-account-form2.js +30 -2
  303. package/dist/module/billing-form-full2.js +2 -2
  304. package/dist/module/billing-form-schema.js +1 -1
  305. package/dist/module/business-address-schema.js +2 -2
  306. package/dist/module/business-bank-account-form-step2.js +25 -178
  307. package/dist/module/business-core-info-form-step2.js +3 -3
  308. package/dist/module/business-core-info-schema.js +2 -2
  309. package/dist/module/business-core-info2.js +3 -3
  310. package/dist/module/business-documents-on-file2.js +1 -1
  311. package/dist/module/business-form-options.js +51 -1
  312. package/dist/module/business-identity-schema.js +8 -4
  313. package/dist/module/business-owners-form-step2.js +9 -0
  314. package/dist/module/business-representative-form-inputs2.js +5 -3
  315. package/dist/module/business-representative-form-step2.js +1 -1
  316. package/dist/module/business-representative2.js +6 -5
  317. package/dist/module/button.js +1 -1
  318. package/dist/module/cancellation-policy2.js +1 -1
  319. package/dist/module/card-billing-form-simple2.js +1 -1
  320. package/dist/module/card-form2.js +2 -2
  321. package/dist/module/checkout.store.js +9 -3
  322. package/dist/module/country-config.js +12 -5
  323. package/dist/module/custom-popper2.js +2 -2
  324. package/dist/module/customer-details2.js +1 -1
  325. package/dist/module/dispute-notification2.js +3 -3
  326. package/dist/module/dispute-response2.js +1 -1
  327. package/dist/module/document-upload-form-step.d.ts +11 -0
  328. package/dist/module/document-upload-form-step.js +6 -0
  329. package/dist/module/document-upload-form-step2.js +403 -0
  330. package/dist/module/document-upload-list.d.ts +11 -0
  331. package/dist/module/document-upload-list.js +6 -0
  332. package/dist/module/document-upload-list2.js +46 -0
  333. package/dist/module/duplicate-charge2.js +1 -1
  334. package/dist/module/electronic-evidence2.js +1 -1
  335. package/dist/module/event-types3.js +3 -3
  336. package/dist/module/form-control-checkbox2.js +2 -2
  337. package/dist/module/form-control-date2.js +2 -2
  338. package/dist/module/form-control-file-v22.js +1 -1
  339. package/dist/module/form-control-file2.js +2 -2
  340. package/dist/module/form-control-monetary2.js +2 -2
  341. package/dist/module/form-control-number-masked2.js +2 -2
  342. package/dist/module/form-control-number2.js +3 -3
  343. package/dist/module/form-control-radio2.js +2 -2
  344. package/dist/module/form-control-select2.js +2 -2
  345. package/dist/module/form-control-text2.js +2 -2
  346. package/dist/module/form-control-textarea2.js +3 -3
  347. package/dist/module/form.js +1 -18
  348. package/dist/module/hidden-input2.js +3 -3
  349. package/dist/module/iframe-input2.js +4 -4
  350. package/dist/module/insurance-state.js +1 -1
  351. package/dist/module/internal-button2.js +1 -1
  352. package/dist/module/justifi-apple-pay2.js +0 -2
  353. package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
  354. package/dist/module/justifi-bank-account-form.js +11 -1
  355. package/dist/module/justifi-billing-form-full.js +1 -1
  356. package/dist/module/justifi-billing-form.js +1 -1
  357. package/dist/module/justifi-button2.js +1 -1
  358. package/dist/module/justifi-card-billing-form-simple.js +1 -1
  359. package/dist/module/justifi-card-form.js +1 -1
  360. package/dist/module/justifi-checkout-summary2.js +1 -1
  361. package/dist/module/justifi-checkout.js +3 -2
  362. package/dist/module/justifi-checkouts-list-filters.js +3 -3
  363. package/dist/module/justifi-checkouts-list.js +4 -4
  364. package/dist/module/justifi-dispute-management.js +2 -2
  365. package/dist/module/justifi-google-pay2.js +10 -4
  366. package/dist/module/justifi-gross-payment-chart.js +3 -3
  367. package/dist/module/justifi-header2.js +1 -1
  368. package/dist/module/justifi-modular-checkout2.js +19 -13
  369. package/dist/module/justifi-order-terminals.js +3 -3
  370. package/dist/module/justifi-payment-details.js +9 -9
  371. package/dist/module/justifi-payment-provisioning.js +33 -27
  372. package/dist/module/justifi-payment-transactions-list.js +3 -3
  373. package/dist/module/justifi-payments-list-filters.js +2 -2
  374. package/dist/module/justifi-payments-list.js +3 -3
  375. package/dist/module/justifi-payout-details.js +4 -4
  376. package/dist/module/justifi-payout-transactions-list.js +3 -3
  377. package/dist/module/justifi-payouts-list-filters.js +3 -3
  378. package/dist/module/justifi-payouts-list.js +6 -6
  379. package/dist/module/justifi-plaid-payment-method2.js +14 -2
  380. package/dist/module/justifi-qr-terminal.js +1 -1
  381. package/dist/module/justifi-refund-payment.js +3 -3
  382. package/dist/module/justifi-save-new-payment-method.js +1 -1
  383. package/dist/module/justifi-skeleton.js +1 -1
  384. package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
  385. package/dist/module/justifi-terminal-orders-list.js +5 -5
  386. package/dist/module/justifi-terminals-list-filters.js +2 -2
  387. package/dist/module/justifi-terminals-list.js +6 -6
  388. package/dist/module/justifi-tokenize-payment-method2.js +5 -3
  389. package/dist/module/legal-address-form-step2.js +1 -1
  390. package/dist/module/lodash.js +38 -27
  391. package/dist/module/owner-details2.js +1 -1
  392. package/dist/module/owner-form-inputs2.js +5 -3
  393. package/dist/module/owner-form2.js +10 -1
  394. package/dist/module/package.js +1 -1
  395. package/dist/module/parts.js +1 -1
  396. package/dist/module/payment-method-option.js +1 -1
  397. package/dist/module/payment-provisioning-actions.js +8 -8
  398. package/dist/module/payment-provisioning-form-steps2.js +35 -28
  399. package/dist/module/plaid-verification2.js +1 -1
  400. package/dist/module/product-or-service2.js +1 -1
  401. package/dist/module/radio-list-item2.js +1 -1
  402. package/dist/module/refund-policy2.js +1 -1
  403. package/dist/module/save-new-payment-method2.js +1 -1
  404. package/dist/module/schema-validations.js +22 -9
  405. package/dist/module/shipping-details2.js +1 -1
  406. package/dist/module/skeleton.js +1 -1
  407. package/dist/module/styled-host.js +1 -1
  408. package/dist/module/table-filters-menu2.js +1 -1
  409. package/dist/module/table.js +1 -1
  410. package/dist/module/terminal-quantity-selector2.js +2 -2
  411. package/dist/module/utils2.js +4 -4
  412. package/dist/stencil.config.js +40 -0
  413. package/dist/types/api/Document.d.ts +13 -1
  414. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -0
  415. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +1 -12
  416. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.d.ts +44 -0
  417. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-list.d.ts +6 -0
  418. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-options.d.ts +45 -0
  419. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +1 -0
  420. package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +4 -4
  421. package/dist/types/components/business-forms/utils/business-form-options.d.ts +1 -0
  422. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +2 -0
  423. package/dist/types/components/checkout/justifi-checkout.d.ts +2 -0
  424. package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +0 -1
  425. package/dist/types/components/modular-checkout/sub-components/justifi-bank-account-form.d.ts +1 -1
  426. package/dist/types/components/modular-checkout/sub-components/justifi-google-pay.d.ts +4 -2
  427. package/dist/types/components/modular-checkout/sub-components/justifi-plaid-payment-method.d.ts +1 -0
  428. package/dist/types/components.d.ts +86 -13
  429. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/stencil.config.d.ts +2 -0
  430. package/dist/types/store/checkout.store.d.ts +2 -0
  431. package/dist/types/utils/checkout-billing-state-options.d.ts +9 -0
  432. package/dist/webcomponents/p-015288c4.entry.js +1 -0
  433. package/dist/webcomponents/p-055640f9.entry.js +1 -0
  434. package/dist/webcomponents/{p-ca87c609.entry.js → p-0a4fcb15.entry.js} +1 -1
  435. package/dist/webcomponents/p-0d98518e.entry.js +1 -0
  436. package/dist/webcomponents/p-0ea6aa9c.entry.js +1 -0
  437. package/dist/webcomponents/p-0ede7e82.entry.js +1 -0
  438. package/dist/webcomponents/p-0f2a1ac9.entry.js +1 -0
  439. package/dist/webcomponents/p-1068ae13.entry.js +1 -0
  440. package/dist/webcomponents/p-14a03ad0.entry.js +1 -0
  441. package/dist/webcomponents/p-1a30f2d9.entry.js +1 -0
  442. package/dist/webcomponents/p-1b51dea9.entry.js +1 -0
  443. package/dist/webcomponents/{p-89cd31f2.entry.js → p-1de248b1.entry.js} +1 -1
  444. package/dist/webcomponents/p-218b926a.entry.js +1 -0
  445. package/dist/webcomponents/p-25215ee7.entry.js +1 -0
  446. package/dist/webcomponents/{p-9fca25fc.entry.js → p-266870f0.entry.js} +1 -1
  447. package/dist/webcomponents/p-27c35a85.entry.js +1 -0
  448. package/dist/webcomponents/{p-DHFQtPCq.js → p-2mMMaism.js} +1 -1
  449. package/dist/webcomponents/p-3a2629a2.entry.js +1 -0
  450. package/dist/webcomponents/p-3e56bbe5.entry.js +1 -0
  451. package/dist/webcomponents/p-4791c6d7.entry.js +1 -0
  452. package/dist/webcomponents/p-49d9c0a4.entry.js +1 -0
  453. package/dist/webcomponents/p-4a30693b.entry.js +1 -0
  454. package/dist/webcomponents/p-4fab9314.entry.js +1 -0
  455. package/dist/webcomponents/{p-b20b8805.entry.js → p-5218bcd0.entry.js} +1 -1
  456. package/dist/webcomponents/{p-a80f69a9.entry.js → p-53d775b9.entry.js} +1 -1
  457. package/dist/webcomponents/{p-70dcd833.entry.js → p-5a58f606.entry.js} +1 -1
  458. package/dist/webcomponents/p-5f6bc8e7.entry.js +1 -0
  459. package/dist/webcomponents/p-65908b5f.entry.js +1 -0
  460. package/dist/webcomponents/{p-3d6b9434.entry.js → p-67364f1d.entry.js} +1 -1
  461. package/dist/webcomponents/{p-bd678d4a.entry.js → p-6bf4fea8.entry.js} +1 -1
  462. package/dist/webcomponents/p-6c3e9ebd.entry.js +1 -0
  463. package/dist/webcomponents/{p-a9695714.entry.js → p-6fe329d6.entry.js} +1 -1
  464. package/dist/webcomponents/p-70e05aec.entry.js +1 -0
  465. package/dist/webcomponents/p-73deced9.entry.js +1 -0
  466. package/dist/webcomponents/p-762b1b7b.entry.js +1 -0
  467. package/dist/webcomponents/p-76ded81e.entry.js +1 -0
  468. package/dist/webcomponents/p-77cc572d.entry.js +1 -0
  469. package/dist/webcomponents/p-7b6cf400.entry.js +1 -0
  470. package/dist/webcomponents/p-8fd18ce2.entry.js +1 -0
  471. package/dist/webcomponents/p-9c0760b9.entry.js +1 -0
  472. package/dist/webcomponents/{p-CqPcl9v7.js → p-B62JX_Dh.js} +1 -1
  473. package/dist/webcomponents/p-BB8Ce9rp.js +1 -0
  474. package/dist/webcomponents/{p-Bt4GjEWL.js → p-BBSnDYJw.js} +1 -1
  475. package/dist/webcomponents/{p-BRnBHsdq.js → p-BSs-2JKu.js} +1 -1
  476. package/dist/webcomponents/p-BUHsyQpA.js +1 -0
  477. package/dist/webcomponents/{p-D-zwk1J3.js → p-C-Jgmek8.js} +1 -1
  478. package/dist/webcomponents/p-C1gr32IS.js +1 -0
  479. package/dist/webcomponents/{p-D4E9P7df.js → p-C7hX61pS.js} +1 -1
  480. package/dist/webcomponents/p-CO8ZGkfN.js +1 -0
  481. package/dist/webcomponents/p-CPJC6tlj.js +1 -0
  482. package/dist/webcomponents/{p-Cg_3KsGO.js → p-CdwzNfP1.js} +1 -1
  483. package/dist/webcomponents/p-Cn7z5L7J.js +1 -0
  484. package/dist/webcomponents/{p-BGvaX-lJ.js → p-CxBrydeX.js} +1 -1
  485. package/dist/webcomponents/{p-DwoT0UoX.js → p-D9sqTVmd.js} +1 -1
  486. package/dist/webcomponents/p-DP9ysr2K.js +1 -0
  487. package/dist/webcomponents/p-DPA5TKvQ.js +1 -0
  488. package/dist/webcomponents/p-DSavNeRB.js +1 -0
  489. package/dist/webcomponents/{p-CSgcCWLS.js → p-DXTa04jn.js} +1 -1
  490. package/dist/webcomponents/p-DYSc8uvs.js +1 -0
  491. package/dist/webcomponents/p-Da3fPDxu.js +1 -0
  492. package/dist/webcomponents/{p-CYQvLgSs.js → p-De4Pig-y.js} +1 -1
  493. package/dist/webcomponents/p-DyPk4BJt.js +1 -0
  494. package/dist/webcomponents/p-DzEdYT8R.js +1 -0
  495. package/dist/webcomponents/p-NzPaWKbY.js +1 -0
  496. package/dist/webcomponents/p-OeJ-3w3l.js +9 -0
  497. package/dist/webcomponents/{p-eK8hZOMg.js → p-R_0S69Pr.js} +1 -1
  498. package/dist/webcomponents/{p-392f0c1c.entry.js → p-a1885b83.entry.js} +1 -1
  499. package/dist/webcomponents/p-a6b46f98.entry.js +1 -0
  500. package/dist/webcomponents/{p-0fb8fb8c.entry.js → p-a893d607.entry.js} +1 -1
  501. package/dist/webcomponents/p-b03e361e.entry.js +1 -0
  502. package/dist/webcomponents/{p-37fd1862.entry.js → p-c3a25333.entry.js} +1 -1
  503. package/dist/webcomponents/p-c60c4bed.entry.js +1 -0
  504. package/dist/webcomponents/{p-ff5c5499.entry.js → p-c885cbf6.entry.js} +4 -4
  505. package/dist/webcomponents/p-c8bcc54f.entry.js +1 -0
  506. package/dist/webcomponents/{p-8d602e60.entry.js → p-d0c889e7.entry.js} +1 -1
  507. package/dist/webcomponents/p-d554e0bb.entry.js +1 -0
  508. package/dist/webcomponents/p-d7e2ce48.entry.js +1 -0
  509. package/dist/webcomponents/p-ddb885c3.entry.js +1 -0
  510. package/dist/webcomponents/p-ddffdec9.entry.js +1 -0
  511. package/dist/webcomponents/{p-22d19755.entry.js → p-debc4768.entry.js} +1 -1
  512. package/dist/webcomponents/p-e1168904.entry.js +1 -0
  513. package/dist/webcomponents/p-e3021e22.entry.js +1 -0
  514. package/dist/webcomponents/{p-aee2295b.entry.js → p-e3f8541c.entry.js} +1 -1
  515. package/dist/webcomponents/{p-c1539656.entry.js → p-eccc1fc6.entry.js} +1 -1
  516. package/dist/webcomponents/{p-c4767c7b.entry.js → p-f3c40c22.entry.js} +1 -1
  517. package/dist/webcomponents/p-f4de4ac0.entry.js +1 -0
  518. package/dist/webcomponents/p-f953fd60.entry.js +1 -0
  519. package/dist/webcomponents/p-fdea8c57.entry.js +1 -0
  520. package/dist/webcomponents/p-z3RFjy9B.js +1 -0
  521. package/dist/webcomponents/{p-qju4tNG1.js → p-zZn1OXja.js} +1 -1
  522. package/dist/webcomponents/webcomponents.esm.js +1 -1
  523. package/package.json +16 -16
  524. package/readme.md +7 -14
  525. package/dist/cjs/styled-host-DAi5SuFa.js +0 -11
  526. package/dist/esm/styled-host-D6byRazK.js +0 -9
  527. package/dist/module/bank-account-document-form-inputs2.js +0 -57
  528. package/dist/webcomponents/p-06e8df55.entry.js +0 -1
  529. package/dist/webcomponents/p-0708cb76.entry.js +0 -1
  530. package/dist/webcomponents/p-07f2f1bf.entry.js +0 -1
  531. package/dist/webcomponents/p-10087a53.entry.js +0 -1
  532. package/dist/webcomponents/p-12ae030d.entry.js +0 -1
  533. package/dist/webcomponents/p-1d7b8c21.entry.js +0 -1
  534. package/dist/webcomponents/p-21c89e22.entry.js +0 -1
  535. package/dist/webcomponents/p-2ec7cd88.entry.js +0 -1
  536. package/dist/webcomponents/p-2qotS5d_.js +0 -1
  537. package/dist/webcomponents/p-355a5c8d.entry.js +0 -1
  538. package/dist/webcomponents/p-37b95a11.entry.js +0 -1
  539. package/dist/webcomponents/p-383b8317.entry.js +0 -1
  540. package/dist/webcomponents/p-44cf13ac.entry.js +0 -1
  541. package/dist/webcomponents/p-46477dfe.entry.js +0 -1
  542. package/dist/webcomponents/p-4ccf9cd7.entry.js +0 -1
  543. package/dist/webcomponents/p-55fdab4e.entry.js +0 -1
  544. package/dist/webcomponents/p-5ccb46ee.entry.js +0 -1
  545. package/dist/webcomponents/p-5f8dfa8d.entry.js +0 -1
  546. package/dist/webcomponents/p-63b7abf3.entry.js +0 -1
  547. package/dist/webcomponents/p-6RTf1SXX.js +0 -1
  548. package/dist/webcomponents/p-70cd2808.entry.js +0 -1
  549. package/dist/webcomponents/p-769d3d93.entry.js +0 -1
  550. package/dist/webcomponents/p-79bd744e.entry.js +0 -1
  551. package/dist/webcomponents/p-7a4cd292.entry.js +0 -1
  552. package/dist/webcomponents/p-9153c121.entry.js +0 -1
  553. package/dist/webcomponents/p-94f14640.entry.js +0 -1
  554. package/dist/webcomponents/p-98f399ec.entry.js +0 -1
  555. package/dist/webcomponents/p-9b944aa4.entry.js +0 -1
  556. package/dist/webcomponents/p-9fc7714d.entry.js +0 -1
  557. package/dist/webcomponents/p-BArmtmkq.js +0 -1
  558. package/dist/webcomponents/p-BqNNwq6C.js +0 -1
  559. package/dist/webcomponents/p-CZa-hHhJ.js +0 -1
  560. package/dist/webcomponents/p-C_ifLmT1.js +0 -9
  561. package/dist/webcomponents/p-CvgL8YaH.js +0 -1
  562. package/dist/webcomponents/p-DD-_8sbs.js +0 -1
  563. package/dist/webcomponents/p-DMqJWUK2.js +0 -1
  564. package/dist/webcomponents/p-DZAMzLxa.js +0 -1
  565. package/dist/webcomponents/p-DbOUuBHs.js +0 -1
  566. package/dist/webcomponents/p-DyucNSA4.js +0 -1
  567. package/dist/webcomponents/p-Eb1f86_V.js +0 -1
  568. package/dist/webcomponents/p-KXLYEe1D.js +0 -1
  569. package/dist/webcomponents/p-XxG-t-Sl.js +0 -1
  570. package/dist/webcomponents/p-a7a1b168.entry.js +0 -1
  571. package/dist/webcomponents/p-b0b6083f.entry.js +0 -1
  572. package/dist/webcomponents/p-b341efd6.entry.js +0 -1
  573. package/dist/webcomponents/p-b62ff001.entry.js +0 -1
  574. package/dist/webcomponents/p-bb5de874.entry.js +0 -1
  575. package/dist/webcomponents/p-c8ee1e4c.entry.js +0 -1
  576. package/dist/webcomponents/p-ce1dde85.entry.js +0 -1
  577. package/dist/webcomponents/p-d253a573.entry.js +0 -1
  578. package/dist/webcomponents/p-d620d4b4.entry.js +0 -1
  579. package/dist/webcomponents/p-dcd600ca.entry.js +0 -1
  580. package/dist/webcomponents/p-e4cb7c21.entry.js +0 -1
  581. package/dist/webcomponents/p-e5c2215a.entry.js +0 -1
  582. package/dist/webcomponents/p-e6b9dfe1.entry.js +0 -1
  583. package/dist/webcomponents/p-eCeOsPHx.js +0 -1
  584. package/dist/webcomponents/p-f1b9cbf0.entry.js +0 -1
  585. package/dist/webcomponents/p-f9aafb21.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{A as n}from"./p-De4Pig-y.js";import"./p-DXTa04jn.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const t=n();class i{async getLinkToken(n,i,e,a){return t.post({endpoint:`plaid/${i}/link`,body:{checkout_id:e},authToken:n,signal:a})}async getLinkTokenForVerification(n,i,e){return t.post({endpoint:`entities/plaid/${i}/link_token`,body:{},authToken:n,signal:e})}async getBankAccountData(n,i,e){return t.get({endpoint:`entities/plaid/${i}/bank_account`,authToken:n,signal:e})}async postPlaidVerifiedBankAccountData(n,i,e,a){return t.post({endpoint:`entities/plaid/${i}/bank_account`,body:e,authToken:n,signal:a})}async tokenizeBankAccount(n,i,e,a,o,s){const c=`plaid/${i}/tokenize`,k={public_token:e};return a&&(k.link_token_id=a),o&&(k.payment_method_group_id=o),t.post({endpoint:c,body:k,authToken:n,signal:s})}}export{i as P}
@@ -0,0 +1 @@
1
+ import{S as e}from"./p-BcNb9bVO.js";const a=[{label:"Choose province",value:""},{label:"Alberta",value:"AB"},{label:"British Columbia",value:"BC"},{label:"Manitoba",value:"MB"},{label:"New Brunswick",value:"NB"},{label:"Newfoundland and Labrador",value:"NL"},{label:"Northwest Territories",value:"NT"},{label:"Nova Scotia",value:"NS"},{label:"Nunavut",value:"NU"},{label:"Ontario",value:"ON"},{label:"Prince Edward Island",value:"PE"},{label:"Quebec",value:"QC"},{label:"Saskatchewan",value:"SK"},{label:"Yukon",value:"YT"}],l={USA:{stateLabel:"State",postalLabel:"Zip Code",idNumberLabel:"SSN",idNumberLabelOptional:"SSN (optional)",identityHelpText:"Enter your full Social Security Number. It is required for Federal OFAC check.",taxIdLabel:"Tax ID (EIN or SSN)",taxIdLabelOptional:"",taxIdHelpText:"Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes."},CAN:{stateLabel:"Province / State",postalLabel:"Postal / Zip Code",idNumberLabel:"SIN",idNumberLabelOptional:"SIN (optional)",identityHelpText:"Enter your full Social Insurance Number.",taxIdLabel:"Business Number (BN)",taxIdLabelOptional:"Business Number (BN) (optional)",taxIdHelpText:"Business Numbers (BN) are nine digits. Enter value without spaces or dashes."}},t=[{label:"Choose province / state",value:""},...a.filter((e=>""!==e.value)),...e.filter((e=>""!==e.value))],i={USA:{stateOptions:e},CAN:{stateOptions:t}},o={USA:{postalRegex:/^[0-9]{5}(-[0-9]{4})?$/,identityDigits:9,taxIdDigits:9},CAN:{postalRegex:/^([A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d|[0-9]{5}(-[0-9]{4})?)$/,identityDigits:9,taxIdDigits:9}};export{a as P,o as a,i as b,l as c}
@@ -0,0 +1 @@
1
+ var e={name:"@justifi/webcomponents",version:"6.13.0"};export{e as p}
@@ -1 +1 @@
1
- import{f as t}from"./p-BRnBHsdq.js";var i,s,e,n,a,h,r,o,c,d,u,l,p,f,m,y,v,_,k,g,w,b,P,A,C,S,U,x,B,D,T,E,F;!function(t){t.MISSING_PROPS="missing-props",t.FETCH_ERROR="fetch-error",t.PATCH_ERROR="patch-error",t.POST_ERROR="post-error",t.UNKNOWN_ERROR="unknown-error",t.TOKENIZE_ERROR="tokenize-error",t.COMPLETE_CHECKOUT_ERROR="complete-checkout-error",t.CHECKOUT_ALREADY_COMPLETED="checkout-already-completed",t.CHECKOUT_EXPIRED="checkout-expired",t.NOT_AUTHENTICATED="not-authenticated",t.INVALID_PARAMETER="invalid-parameter",t.PROVISIONING_REQUESTED="provisioning-already-requested",t.INVALID_REFUND_AMOUNT="invalid-refund-amount",t.VALIDATION_ERROR="validation-error"}(i||(i={})),function(t){t.INFO="info",t.WARNING="warning",t.ERROR="error"}(s||(s={})),function(t){t.NOT_AUTHENTICATED="Not authenticated. Please provide a valid auth token, checkout id, and account id.",t.CHECKOUT_ALREADY_COMPLETED="Checkout already completed. Please create a new checkout.",t.CHECKOUT_EXPIRED="Checkout expired. Please create a new checkout."}(e||(e={}));class z{constructor(t){this.payment_mode=n[t.payment_mode],this.payment_token=t.payment_token,this.payment_status=t.payment_status,this.payment_response=t.payment_response,this.payment_error_code=t.payment_error_code,this.payment_error_description=t.payment_error_description,this.checkout_id=t.checkout_id,this.additional_transactions=t.additional_transactions,this.payment_id=t.payment_id,this.payment_method_id=t.payment_method_id,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}}class I{constructor(t){var i;this.id=t.id,this.description=t.description,this.payment_intent_id=t.payment_intent_id,this.account_id=t.account_id,this.platform_account_id=t.platform_account_id,this.payment_amount=t.payment_amount,this.payment_client_id=t.payment_client_id,this.payment_description=t.payment_description,this.payment_methods=t.payment_methods,this.payment_method_group_id=t.payment_method_group_id,this.payment_settings=t.payment_settings,this.bnpl=t.bnpl,this.total_amount=t.total_amount,this.insurance_amount=t.insurance_amount,this.status=h[t.status],this.payment_currency=t.payment_currency,this.mode=t.mode,this.statement_descriptor=t.statement_descriptor,this.application_fees=t.application_fees,this.successful_payment_id=t.successful_payment_id,this.created_at=t.created_at,this.updated_at=t.updated_at,this.completions=null===(i=t.completions)||void 0===i?void 0:i.map((t=>new z(t)))}get payment_mode(){var t,i,s,e,a,h;let r;if(!this.completions||0===this.completions.length)return n.unknown;const o=this.completions.sort(((t,i)=>new Date(i.updated_at).getTime()-new Date(t.updated_at).getTime()))[0];return o.payment_mode?r=o.payment_mode:(null===(s=null===(i=null===(t=o.payment_response)||void 0===t?void 0:t.data)||void 0===i?void 0:i.payment_method)||void 0===s?void 0:s.card)?r=n.card:(null===(h=null===(a=null===(e=o.payment_response)||void 0===e?void 0:e.data)||void 0===a?void 0:a.payment_method)||void 0===h?void 0:h.bank_account)&&(r=n.bank_account),r}formattedPaymentAmount(i){return t(i,this.payment_currency)}}!function(t){t.bnpl="Buy Now Pay Later",t.ecom="E-commerce",t.card="Card",t.bank_account="Bank Account",t.card_present="Card Present",t.apple_pay="Apple Pay",t.unknown=""}(n||(n={})),function(t){t.bnpl="bnpl",t.ecom="ecom",t.apple_pay="apple_pay"}(a||(a={})),function(t){t.created="created",t.completed="completed",t.attempted="attempted",t.expired="expired"}(h||(h={})),function(t){t.failed="failed",t.succeeded="succeeded"}(r||(r={})),function(t){t.won="won",t.lost="lost",t.underReview="under_review",t.needsResponse="needs_response"}(o||(o={}));class R{get needsResponse(){return this.status==o.needsResponse}get underReview(){return this.status==o.underReview}get won(){return this.status==o.won}get lost(){return this.status==o.lost}constructor(t){this.id=t.id,this.amount=t.amount,this.currency=t.currency,this.payment_id=t.payment_id,this.reason=t.reason,this.due_date=t.due_date,this.status=t.status,this.metadata=t.metadata,this.created_at=t.created_at,this.updated_at=t.updated_at,this.dispute_response=t.dispute_response?new q(t.dispute_response):void 0}}class q{constructor(t){this.additional_statement=t.additional_statement,this.cancellation_policy_disclosure=t.cancellation_policy_disclosure,this.cancellation_rebuttal=t.cancellation_rebuttal,this.customer_billing_address=t.customer_billing_address,this.customer_email_address=t.customer_email_address,this.customer_name=t.customer_name,this.customer_purchase_ip_address=t.customer_purchase_ip_address,this.duplicate_charge_explanation=t.duplicate_charge_explanation,this.product_description=t.product_description,this.refund_policy_disclosure=t.refund_policy_disclosure,this.refund_refusal_explanation=t.refund_refusal_explanation,this.service_date=t.service_date,this.shipping_address=t.shipping_address,this.shipping_carrier=t.shipping_carrier,this.shipping_date=t.shipping_date,this.shipping_tracking_number=t.shipping_tracking_number,this.duplicate_charge_original_payment_id=t.duplicate_charge_original_payment_id}}!function(t){t.automatic="automatic",t.manual="manual"}(c||(c={})),function(t){t.card="card",t.bankAccount="bankAccount",t.sezzle="sezzle",t.plaid="plaid",t.applePay="applePay"}(d||(d={})),function(t){t.card="Card",t.bankAccount="ACH",t.unknown="Unknown"}(u||(u={})),function(t){t.pending="pending",t.automatic="automatic",t.authorized="authorized",t.succeeded="succeeded",t.failed="failed",t.canceled="canceled",t.disputed="disputed",t.fully_refunded="fully_refunded",t.partially_refunded="partially_refunded"}(l||(l={})),function(t){t.usd="usd",t.cad="cad"}(p||(p={}));class M{constructor(t){this.card=t.card?new j(t.card):void 0,this.bank_account=t.bank_account?new N(t.bank_account):void 0}get payersName(){return this.card?this.card.name:this.bank_account?this.bank_account.name:null}get lastFourDigits(){return this.card?`**** ${this.card.acct_last_four}`:this.bank_account?`**** ${this.bank_account.acct_last_four}`:null}}class N{constructor(t){this.id=t.id,this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class j{constructor(t){this.id=t.id||"",this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class L{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.amount_disputed=t.amount_disputed,this.amount_refundable=t.amount_refundable,this.amount_refunded=t.amount_refunded,this.balance=t.balance,this.captured=t.captured,this.capture_strategy=t.capture_strategy,this.description=t.description,this.disputed=t.disputed,this.disputes=t.disputes,this.error_code=t.error_code,this.error_description=t.error_description,this.expedited=t.expedited,this.fee_amount=t.fee_amount,this.is_test=t.is_test,this.metadata=t.metadata,this.payment_method=new M(t.payment_method),this.payment_intent_id=t.payment_intent_id,this.refunded=t.refunded,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}get disputedStatus(){const t=this.disputes.some((t=>t.status===o.lost));return this.disputed?t?o.lost:"open":null}get payment_type(){return this.payment_method?this.payment_method.card?u.card:u.bankAccount:u.unknown}get payers_name(){return this.payment_method.payersName}get last_four_digits(){return this.payment_method.lastFourDigits}formattedPaymentAmount(i){return t(i,this.currency)}}!function(t){t.payment="payment",t.paymentFee="payment_fee",t.payout="payout",t.refund="refund",t.feeRefund="fee_refund",t.dispute="dispute",t.disputeFee="dispute_fee",t.disputeFeeRefund="dispute_fee_refund",t.disputeRefund="dispute_refund",t.applicationFeeReturned="application_fee_returned"}(f||(f={}));class V{constructor(t){this.id=t.id,this.amount=t.amount,this.balance=t.balance,this.currency=t.currency,this.financial_transaction_id=t.financial_transaction_id,this.payment_id=t.payment_id,this.payment_balance_txn_type=t.payment_balance_txn_type,this.source_id=t.source_id,this.source_type=t.source_type,this.created_at=t.created_at,this.updated_at=t.updated_at}get displayTransactionId(){return this.payment_balance_txn_type===f.paymentFee||this.payment_balance_txn_type===f.applicationFeeReturned?"--":this.source_id}formattedPaymentAmount(i){return t(i,this.currency)}}!function(t){t.paid="paid",t.failed="failed",t.forwarded="forwarded",t.scheduled="scheduled",t.in_transit="in_transit",t.canceled="canceled"}(m||(m={})),function(t){t.paid="Paid",t.failed="Failed",t.forwarded="Forwarded",t.scheduled="Scheduled",t.in_transit="In Transit",t.canceled="Canceled"}(y||(y={}));class Y{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.bank_account=t.bank_account,this.delivery_method=t.delivery_method||"standard",this.description=t.description,this.deposits_at=t.deposits_at,this.fees_total=t.fees_total,this.refunds_count=t.refunds_count,this.refunds_total=t.refunds_total,this.payments_count=t.payments_count,this.payments_total=t.payments_total,this.payout_type=t.payout_type,this.other_total=t.other_total,this.status=t.status,this.metadata=t.metadata,this.created_at=t.created_at,this.updated_at=t.updated_at,this.settlement_priority=t.settlement_priority||"standard"}formattedPaymentAmount(i){return t(i,this.currency)}}!function(t){t.fee="fee",t.payment="payment",t.payout="payout",t.sellerPaymentRefund="seller_payment_refund",t.disputeAmountCollected="dispute_amount_collected",t.disputeFeeCollected="dispute_fee_collected",t.sellerPayment="seller_payment",t.transfer="transfer",t.partnerPlatformProceedsCredit="partner_platform_proceeds_credit"}(v||(v={}));class H{constructor(t){this.id=t.id,this.account_id=t.account_id,this.payout_id=t.payout_id,this.financial_transaction_id=t.financial_transaction_id,this.amount=t.amount,this.fee=t.fee,this.net=t.net,this.currency=t.currency,this.source_id=t.source_id,this.description=t.description,this.txn_type=t.txn_type,this.created_at=t.created_at,this.available_on=t.available_on,this.updated_at=t.updated_at}formattedPaymentAmount(i){return t(i,this.currency)}}!function(t){t.connected="connected",t.disconnected="disconnected",t.unknown="unknown",t.pending_configuration="pending_configuration",t.archived="archived"}(_||(_={})),function(t){t.verifone="verifone"}(k||(k={}));class ${constructor(t){this.id=t.id||"",this.status=t.status,this.account_id=t.account_id||"",this.platform_account_id=t.platform_account_id||"",this.provider=t.provider||null,this.provider_id=t.provider_id||"",this.provider_serial_number=t.provider_serial_number||"",this.created_at=t.created_at||"",this.updated_at=t.updated_at||"",this.verified_at=t.verified_at||"",this.nickname=t.nickname||"",this.model_name=t.model_name||null}}!function(t){t.boardingOnly="boarding_only",t.boardingShipping="boarding_shipping"}(g||(g={})),function(t){t.created="created",t.submitted="submitted",t.completed="completed",t.in_progress="in_progress",t.on_hold="on_hold",t.canceled="canceled"}(w||(w={}));class Q{constructor(t){this.id=t.id,this.business_id=t.business_id,this.company_name=t.company_name,this.sub_account_id=t.sub_account_id,this.provider=t.provider||k.verifone,this.order_items=[],this.order_type=t.order_type,this.order_status=t.order_status,this.terminals=t.terminals,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{business_id:this.business_id,sub_account_id:this.sub_account_id,order_type:this.order_type,order_items:this.order_items}}get totalQuantity(){return this.order_items.reduce(((t,i)=>t+i.quantity),0)}updateTerminal(t,i){if(0===i)return void(this.order_items=this.order_items.filter((i=>i.model_name!==t)));const s=this.order_items.find((i=>i.model_name===t));s?s.quantity=i:this.order_items.push({model_name:t,quantity:i})}}!function(t){t.v400="v400",t.p400="p400+",t.e285="e285"}(b||(b={}));class W{constructor(t){this.id=t.id,this.model_name=t.model_name,this.description=t.description,this.image_url=t.image_url,this.help_url=t.help_url}}!function(t){t.test="test",t.live="live"}(P||(P={})),function(t){t.created="created",t.submitted="submitted",t.information_needed="information_needed",t.rejected="rejected",t.enabled="enabled",t.disabled="disabled",t.archived="archived"}(A||(A={}));class G{constructor(t){this.id=t.id,this.name=t.name,this.account_type=t.account_type,this.status=t.status,this.currency=t.currency,this.platform_account_id=t.platform_account_id,this.payout_account_id=t.payout_account_id,this.business_id=t.business_id,this.application_fee_rates=t.application_fee_rates,this.processing_ready=t.processing_ready,this.payout_ready=t.payout_ready,this.related_accounts=t.related_accounts,this.created_at=t.created_at,this.updated_at=t.updated_at}}!function(t){t.voidedCheck="voided_check",t.balanceSheet="balance_sheet",t.bankStatement="bank_statement",t.governmentId="government_id",t.profitAndLossStatement="profit_and_loss_statement",t.taxReturn="tax_return",t.other="other"}(C||(C={})),function(t){t.pending="pending",t.uploaded="uploaded",t.canceled="canceled",t.needed="needed"}(S||(S={}));class J{constructor(){this.voided_check=[],this.balance_sheet=[],this.bank_statement=[],this.government_id=[],this.profit_and_loss_statement=[],this.tax_return=[],this.other=[]}}class K{constructor(t,i){this.fileData=null,this.file=t.file,this.document_type=t.document_type,this.presigned_url=null,this.record_data={business_id:i,document_type:this.document_type,file_name:this.file.name,file_type:this.file.type}}async getFileData(){if(this.fileData)return this.fileData;const t=new Promise(((t,i)=>{const s=new FileReader;s.onload=i=>{this.fileData=i.target.result,t(this.fileData)},s.onerror=()=>{i(new Error("Error reading file"))},s.readAsArrayBuffer(this.file)}));return await t}setPresignedUrl(t){this.presigned_url=t}}!function(t){t.succeeded="succeeded",t.failed="failed"}(U||(U={})),function(t){t.customerRequest="customer_request",t.duplicate="duplicate",t.fraudulent="fraudulent"}(x||(x={}));class O{constructor(t){this.amount=t.amount,this.reason=t.reason,this.description=t.description,this.metadata=t.metadata}}!function(t){t.STATUS_SUCCESS="STATUS_SUCCESS",t.STATUS_FAILURE="STATUS_FAILURE"}(B||(B={})),function(t){t.PLAIN="plain",t.BUY="buy",t.SET_UP="set-up",t.DONATE="donate",t.CHECK_OUT="check-out",t.BOOK="book",t.SUBSCRIBE="subscribe"}(D||(D={})),function(t){t.BLACK="black",t.WHITE="white",t.WHITE_OUTLINE="white-outline"}(T||(T={})),function(t){t.SUPPORTS_3DS="supports3DS",t.SUPPORTS_EMV="supportsEMV",t.SUPPORTS_CREDIT="supportsCredit",t.SUPPORTS_DEBIT="supportsDebit"}(E||(E={}));class X{constructor(t){this.merchantIdentifier=t.merchantIdentifier,this.displayName=t.displayName,this.initiative=t.initiative,this.initiativeContext=t.initiativeContext,this.buttonType=t.buttonType||D.PLAIN,this.buttonStyle=t.buttonStyle||T.BLACK,this.buttonLocale=t.buttonLocale||"en-US"}get isValid(){return!!(this.merchantIdentifier&&this.displayName&&this.initiative&&this.initiativeContext)}}class Z{constructor(t){this.countryCode=t.countryCode,this.currencyCode=t.currencyCode,this.merchantCapabilities=t.merchantCapabilities,this.supportedNetworks=t.supportedNetworks,this.total=t.total,this.lineItems=t.lineItems,this.shippingMethods=t.shippingMethods,this.applicationData=t.applicationData,this.supportedCountries=t.supportedCountries}get isValid(){var t,i,s,e;return!!(this.countryCode&&this.currencyCode&&(null===(t=this.merchantCapabilities)||void 0===t?void 0:t.length)&&(null===(i=this.supportedNetworks)||void 0===i?void 0:i.length)&&(null===(s=this.total)||void 0===s?void 0:s.label)&&(null===(e=this.total)||void 0===e?void 0:e.amount))}}class tt{static isApplePaySupported(){var t;return"undefined"!=typeof window&&"ApplePaySession"in window&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.supportsVersion(3))}static canMakePayments(){var t;return this.isApplePaySupported()&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.canMakePayments())||!1}static async canMakePaymentsWithActiveCard(t){var i;if(!this.isApplePaySupported())return!1;try{return await(null===(i=window.ApplePaySession)||void 0===i?void 0:i.canMakePaymentsWithActiveCard(t))||!1}catch(t){return console.error("Error checking Apple Pay active card:",t),!1}}static formatAmount(t){return(t/100).toFixed(2)}static parseAmount(t){return Math.round(100*parseFloat(t))}static createLineItem(t,i,s="final"){return{label:t,amount:this.formatAmount(i),type:s}}static getDefaultSupportedNetworks(){return["amex","discover","masterCard","visa"]}static getDefaultMerchantCapabilities(){return[E.SUPPORTS_3DS,E.SUPPORTS_EMV,E.SUPPORTS_CREDIT,E.SUPPORTS_DEBIT]}}!function(t){t.PLAID_SDK_LOAD_FAILED="plaid-sdk-load-failed",t.PLAID_LINK_INIT_FAILED="plaid-link-init-failed",t.PLAID_LINK_TOKEN_FAILED="plaid-link-token-failed",t.PLAID_AUTHENTICATION_FAILED="plaid-authentication-failed",t.PLAID_BANK_NOT_SUPPORTED="plaid-bank-not-supported",t.PLAID_TOKEN_EXPIRED="plaid-token-expired",t.PLAID_NETWORK_ERROR="plaid-network-error",t.PLAID_USER_CANCELLED="plaid-user-cancelled",t.PLAID_TIMEOUT="plaid-timeout",t.PLAID_INVALID_CREDENTIALS="plaid-invalid-credentials",t.PLAID_ACCOUNT_LOCKED="plaid-account-locked",t.PLAID_MAINTENANCE="plaid-maintenance",t.PLAID_RATE_LIMITED="plaid-rate-limited"}(F||(F={}));const it={[F.PLAID_SDK_LOAD_FAILED]:"Unable to load Plaid. Please refresh the page and try again.",[F.PLAID_LINK_INIT_FAILED]:"Unable to initialize bank connection. Please try again.",[F.PLAID_LINK_TOKEN_FAILED]:"Unable to connect to bank service. Please try again.",[F.PLAID_AUTHENTICATION_FAILED]:"Bank authentication failed. Please try again.",[F.PLAID_BANK_NOT_SUPPORTED]:"Your bank is not currently supported. Please try a different payment method.",[F.PLAID_TOKEN_EXPIRED]:"Your bank session has expired. Please reconnect your account.",[F.PLAID_NETWORK_ERROR]:"Network connection issue. Please check your internet connection and try again.",[F.PLAID_USER_CANCELLED]:"Bank connection was cancelled. Click to try again.",[F.PLAID_TIMEOUT]:"Bank connection timed out. Please try again.",[F.PLAID_INVALID_CREDENTIALS]:"Invalid bank credentials. Please check your username and password.",[F.PLAID_ACCOUNT_LOCKED]:"Your bank account is temporarily locked. Please contact your bank.",[F.PLAID_MAINTENANCE]:"Bank service is temporarily unavailable. Please try again later.",[F.PLAID_RATE_LIMITED]:"Too many connection attempts. Please wait a moment and try again."},st={[F.PLAID_SDK_LOAD_FAILED]:s.ERROR,[F.PLAID_LINK_INIT_FAILED]:s.ERROR,[F.PLAID_LINK_TOKEN_FAILED]:s.ERROR,[F.PLAID_AUTHENTICATION_FAILED]:s.ERROR,[F.PLAID_BANK_NOT_SUPPORTED]:s.WARNING,[F.PLAID_TOKEN_EXPIRED]:s.WARNING,[F.PLAID_NETWORK_ERROR]:s.WARNING,[F.PLAID_USER_CANCELLED]:s.INFO,[F.PLAID_TIMEOUT]:s.WARNING,[F.PLAID_INVALID_CREDENTIALS]:s.ERROR,[F.PLAID_ACCOUNT_LOCKED]:s.ERROR,[F.PLAID_MAINTENANCE]:s.WARNING,[F.PLAID_RATE_LIMITED]:s.WARNING};export{X as A,J as B,s as C,R as D,C as E,K as F,h as I,y as P,x as R,G as S,w as T,a,i as b,e as c,r as d,L as e,g as f,_ as g,o as h,l as i,V as j,Y as k,H as l,I as m,$ as n,W as o,Q as p,O as q,tt as r,Z as s,B as t,T as u,D as v,E as w,st as x,it as y,F as z}
1
+ import{f as t}from"./p-BSs-2JKu.js";var i,s,e,n,a,r,h,o,c,d,u,l,p,f,m,_,y,v,g,k,w,b,P,A,S,C,x,U,D,T,B,E,z;!function(t){t.MISSING_PROPS="missing-props",t.FETCH_ERROR="fetch-error",t.PATCH_ERROR="patch-error",t.POST_ERROR="post-error",t.UNKNOWN_ERROR="unknown-error",t.TOKENIZE_ERROR="tokenize-error",t.COMPLETE_CHECKOUT_ERROR="complete-checkout-error",t.CHECKOUT_ALREADY_COMPLETED="checkout-already-completed",t.CHECKOUT_EXPIRED="checkout-expired",t.NOT_AUTHENTICATED="not-authenticated",t.INVALID_PARAMETER="invalid-parameter",t.PROVISIONING_REQUESTED="provisioning-already-requested",t.INVALID_REFUND_AMOUNT="invalid-refund-amount",t.VALIDATION_ERROR="validation-error"}(i||(i={})),function(t){t.INFO="info",t.WARNING="warning",t.ERROR="error"}(s||(s={})),function(t){t.NOT_AUTHENTICATED="Not authenticated. Please provide a valid auth token, checkout id, and account id.",t.CHECKOUT_ALREADY_COMPLETED="Checkout already completed. Please create a new checkout.",t.CHECKOUT_EXPIRED="Checkout expired. Please create a new checkout."}(e||(e={}));class F{constructor(t){this.payment_mode=n[t.payment_mode],this.payment_token=t.payment_token,this.payment_status=t.payment_status,this.payment_response=t.payment_response,this.payment_error_code=t.payment_error_code,this.payment_error_description=t.payment_error_description,this.checkout_id=t.checkout_id,this.additional_transactions=t.additional_transactions,this.payment_id=t.payment_id,this.payment_method_id=t.payment_method_id,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}}class I{constructor(t){var i;this.id=t.id,this.description=t.description,this.payment_intent_id=t.payment_intent_id,this.account_id=t.account_id,this.platform_account_id=t.platform_account_id,this.payment_amount=t.payment_amount,this.payment_client_id=t.payment_client_id,this.payment_description=t.payment_description,this.payment_methods=t.payment_methods,this.payment_method_group_id=t.payment_method_group_id,this.payment_settings=t.payment_settings,this.bnpl=t.bnpl,this.total_amount=t.total_amount,this.insurance_amount=t.insurance_amount,this.status=r[t.status],this.payment_currency=t.payment_currency,this.mode=t.mode,this.statement_descriptor=t.statement_descriptor,this.application_fees=t.application_fees,this.successful_payment_id=t.successful_payment_id,this.created_at=t.created_at,this.updated_at=t.updated_at,this.completions=null===(i=t.completions)||void 0===i?void 0:i.map((t=>new F(t)))}get payment_mode(){var t,i,s,e,a,r;let h;if(!this.completions||0===this.completions.length)return n.unknown;const o=this.completions.sort(((t,i)=>new Date(i.updated_at).getTime()-new Date(t.updated_at).getTime()))[0];return o.payment_mode?h=o.payment_mode:(null===(s=null===(i=null===(t=o.payment_response)||void 0===t?void 0:t.data)||void 0===i?void 0:i.payment_method)||void 0===s?void 0:s.card)?h=n.card:(null===(r=null===(a=null===(e=o.payment_response)||void 0===e?void 0:e.data)||void 0===a?void 0:a.payment_method)||void 0===r?void 0:r.bank_account)&&(h=n.bank_account),h}formattedPaymentAmount(i){return t(i,this.payment_currency)}}!function(t){t.bnpl="Buy Now Pay Later",t.ecom="E-commerce",t.card="Card",t.bank_account="Bank Account",t.card_present="Card Present",t.apple_pay="Apple Pay",t.unknown=""}(n||(n={})),function(t){t.bnpl="bnpl",t.ecom="ecom",t.apple_pay="apple_pay"}(a||(a={})),function(t){t.created="created",t.completed="completed",t.attempted="attempted",t.expired="expired"}(r||(r={})),function(t){t.failed="failed",t.succeeded="succeeded"}(h||(h={})),function(t){t.won="won",t.lost="lost",t.underReview="under_review",t.needsResponse="needs_response"}(o||(o={}));class M{get needsResponse(){return this.status==o.needsResponse}get underReview(){return this.status==o.underReview}get won(){return this.status==o.won}get lost(){return this.status==o.lost}constructor(t){this.id=t.id,this.amount=t.amount,this.currency=t.currency,this.payment_id=t.payment_id,this.reason=t.reason,this.due_date=t.due_date,this.status=t.status,this.metadata=t.metadata,this.created_at=t.created_at,this.updated_at=t.updated_at,this.dispute_response=t.dispute_response?new N(t.dispute_response):void 0}}class N{constructor(t){this.additional_statement=t.additional_statement,this.cancellation_policy_disclosure=t.cancellation_policy_disclosure,this.cancellation_rebuttal=t.cancellation_rebuttal,this.customer_billing_address=t.customer_billing_address,this.customer_email_address=t.customer_email_address,this.customer_name=t.customer_name,this.customer_purchase_ip_address=t.customer_purchase_ip_address,this.duplicate_charge_explanation=t.duplicate_charge_explanation,this.product_description=t.product_description,this.refund_policy_disclosure=t.refund_policy_disclosure,this.refund_refusal_explanation=t.refund_refusal_explanation,this.service_date=t.service_date,this.shipping_address=t.shipping_address,this.shipping_carrier=t.shipping_carrier,this.shipping_date=t.shipping_date,this.shipping_tracking_number=t.shipping_tracking_number,this.duplicate_charge_original_payment_id=t.duplicate_charge_original_payment_id}}!function(t){t.automatic="automatic",t.manual="manual"}(c||(c={})),function(t){t.card="card",t.bankAccount="bankAccount",t.sezzle="sezzle",t.plaid="plaid",t.applePay="applePay"}(d||(d={})),function(t){t.card="Card",t.bankAccount="ACH",t.unknown="Unknown"}(u||(u={})),function(t){t.pending="pending",t.automatic="automatic",t.authorized="authorized",t.succeeded="succeeded",t.failed="failed",t.canceled="canceled",t.disputed="disputed",t.fully_refunded="fully_refunded",t.partially_refunded="partially_refunded"}(l||(l={})),function(t){t.usd="usd",t.cad="cad"}(p||(p={}));class R{constructor(t){this.card=t.card?new j(t.card):void 0,this.bank_account=t.bank_account?new q(t.bank_account):void 0}get payersName(){return this.card?this.card.name:this.bank_account?this.bank_account.name:null}get lastFourDigits(){return this.card?`**** ${this.card.acct_last_four}`:this.bank_account?`**** ${this.bank_account.acct_last_four}`:null}}class q{constructor(t){this.id=t.id,this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class j{constructor(t){this.id=t.id||"",this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class L{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.amount_disputed=t.amount_disputed,this.amount_refundable=t.amount_refundable,this.amount_refunded=t.amount_refunded,this.balance=t.balance,this.captured=t.captured,this.capture_strategy=t.capture_strategy,this.description=t.description,this.disputed=t.disputed,this.disputes=t.disputes,this.error_code=t.error_code,this.error_description=t.error_description,this.expedited=t.expedited,this.fee_amount=t.fee_amount,this.is_test=t.is_test,this.metadata=t.metadata,this.payment_method=new R(t.payment_method),this.payment_intent_id=t.payment_intent_id,this.refunded=t.refunded,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}get disputedStatus(){const t=this.disputes.some((t=>t.status===o.lost));return this.disputed?t?o.lost:"open":null}get payment_type(){return this.payment_method?this.payment_method.card?u.card:u.bankAccount:u.unknown}get payers_name(){return this.payment_method.payersName}get last_four_digits(){return this.payment_method.lastFourDigits}formattedPaymentAmount(i){return t(i,this.currency)}}!function(t){t.payment="payment",t.paymentFee="payment_fee",t.payout="payout",t.refund="refund",t.feeRefund="fee_refund",t.dispute="dispute",t.disputeFee="dispute_fee",t.disputeFeeRefund="dispute_fee_refund",t.disputeRefund="dispute_refund",t.applicationFeeReturned="application_fee_returned"}(f||(f={}));class V{constructor(t){this.id=t.id,this.amount=t.amount,this.balance=t.balance,this.currency=t.currency,this.financial_transaction_id=t.financial_transaction_id,this.payment_id=t.payment_id,this.payment_balance_txn_type=t.payment_balance_txn_type,this.source_id=t.source_id,this.source_type=t.source_type,this.created_at=t.created_at,this.updated_at=t.updated_at}get displayTransactionId(){return this.payment_balance_txn_type===f.paymentFee||this.payment_balance_txn_type===f.applicationFeeReturned?"--":this.source_id}formattedPaymentAmount(i){return t(i,this.currency)}}!function(t){t.paid="paid",t.failed="failed",t.forwarded="forwarded",t.scheduled="scheduled",t.in_transit="in_transit",t.canceled="canceled"}(m||(m={})),function(t){t.paid="Paid",t.failed="Failed",t.forwarded="Forwarded",t.scheduled="Scheduled",t.in_transit="In Transit",t.canceled="Canceled"}(_||(_={}));class Y{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.bank_account=t.bank_account,this.delivery_method=t.delivery_method||"standard",this.description=t.description,this.deposits_at=t.deposits_at,this.fees_total=t.fees_total,this.refunds_count=t.refunds_count,this.refunds_total=t.refunds_total,this.payments_count=t.payments_count,this.payments_total=t.payments_total,this.payout_type=t.payout_type,this.other_total=t.other_total,this.status=t.status,this.metadata=t.metadata,this.created_at=t.created_at,this.updated_at=t.updated_at,this.settlement_priority=t.settlement_priority||"standard"}formattedPaymentAmount(i){return t(i,this.currency)}}!function(t){t.fee="fee",t.payment="payment",t.payout="payout",t.sellerPaymentRefund="seller_payment_refund",t.disputeAmountCollected="dispute_amount_collected",t.disputeFeeCollected="dispute_fee_collected",t.sellerPayment="seller_payment",t.transfer="transfer",t.partnerPlatformProceedsCredit="partner_platform_proceeds_credit"}(y||(y={}));class ${constructor(t){this.id=t.id,this.account_id=t.account_id,this.payout_id=t.payout_id,this.financial_transaction_id=t.financial_transaction_id,this.amount=t.amount,this.fee=t.fee,this.net=t.net,this.currency=t.currency,this.source_id=t.source_id,this.description=t.description,this.txn_type=t.txn_type,this.created_at=t.created_at,this.available_on=t.available_on,this.updated_at=t.updated_at}formattedPaymentAmount(i){return t(i,this.currency)}}!function(t){t.connected="connected",t.disconnected="disconnected",t.unknown="unknown",t.pending_configuration="pending_configuration",t.archived="archived"}(v||(v={})),function(t){t.verifone="verifone"}(g||(g={}));class H{constructor(t){this.id=t.id||"",this.status=t.status,this.account_id=t.account_id||"",this.platform_account_id=t.platform_account_id||"",this.provider=t.provider||null,this.provider_id=t.provider_id||"",this.provider_serial_number=t.provider_serial_number||"",this.created_at=t.created_at||"",this.updated_at=t.updated_at||"",this.verified_at=t.verified_at||"",this.nickname=t.nickname||"",this.model_name=t.model_name||null}}!function(t){t.boardingOnly="boarding_only",t.boardingShipping="boarding_shipping"}(k||(k={})),function(t){t.created="created",t.submitted="submitted",t.completed="completed",t.in_progress="in_progress",t.on_hold="on_hold",t.canceled="canceled"}(w||(w={}));class J{constructor(t){this.id=t.id,this.business_id=t.business_id,this.company_name=t.company_name,this.sub_account_id=t.sub_account_id,this.provider=t.provider||g.verifone,this.order_items=[],this.order_type=t.order_type,this.order_status=t.order_status,this.terminals=t.terminals,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{business_id:this.business_id,sub_account_id:this.sub_account_id,order_type:this.order_type,order_items:this.order_items}}get totalQuantity(){return this.order_items.reduce(((t,i)=>t+i.quantity),0)}updateTerminal(t,i){if(0===i)return void(this.order_items=this.order_items.filter((i=>i.model_name!==t)));const s=this.order_items.find((i=>i.model_name===t));s?s.quantity=i:this.order_items.push({model_name:t,quantity:i})}}!function(t){t.v400="v400",t.p400="p400+",t.e285="e285"}(b||(b={}));class K{constructor(t){this.id=t.id,this.model_name=t.model_name,this.description=t.description,this.image_url=t.image_url,this.help_url=t.help_url}}!function(t){t.test="test",t.live="live"}(P||(P={})),function(t){t.created="created",t.submitted="submitted",t.information_needed="information_needed",t.rejected="rejected",t.enabled="enabled",t.disabled="disabled",t.archived="archived"}(A||(A={}));class Q{constructor(t){this.id=t.id,this.name=t.name,this.account_type=t.account_type,this.status=t.status,this.currency=t.currency,this.platform_account_id=t.platform_account_id,this.payout_account_id=t.payout_account_id,this.business_id=t.business_id,this.application_fee_rates=t.application_fee_rates,this.processing_ready=t.processing_ready,this.payout_ready=t.payout_ready,this.related_accounts=t.related_accounts,this.created_at=t.created_at,this.updated_at=t.updated_at}}!function(t){t.voidedCheck="voided_check",t.balanceSheet="balance_sheet",t.bankStatement="bank_statement",t.governmentId="government_id",t.profitAndLossStatement="profit_and_loss_statement",t.taxReturn="tax_return",t.other="other",t.articlesOfIncorporation="articles_of_incorporation",t.businessRegistration="business_registration",t.passport="passport",t.driverLicense="driver_license",t.residentCard="resident_card",t.statusCard="status_card",t.nexusCard="nexus_card",t.citizenshipCard="citizenship_card",t.foreignPassport="foreign_passport",t.birthCertificate="birth_certificate",t.sinCard="sin_card",t.ssnCard="ssn_card"}(S||(S={})),function(t){t.pending="pending",t.uploaded="uploaded",t.canceled="canceled",t.needed="needed"}(C||(C={}));class W{constructor(t,i){this.fileData=null,this.file=t.file,this.document_type=t.document_type,this.presigned_url=null,this.record_data={business_id:i,document_type:this.document_type,file_name:this.file.name,file_type:this.file.type}}async getFileData(){if(this.fileData)return this.fileData;const t=new Promise(((t,i)=>{const s=new FileReader;s.onload=i=>{this.fileData=i.target.result,t(this.fileData)},s.onerror=()=>{i(new Error("Error reading file"))},s.readAsArrayBuffer(this.file)}));return await t}setPresignedUrl(t){this.presigned_url=t}}!function(t){t.succeeded="succeeded",t.failed="failed"}(x||(x={})),function(t){t.customerRequest="customer_request",t.duplicate="duplicate",t.fraudulent="fraudulent"}(U||(U={}));class G{constructor(t){this.amount=t.amount,this.reason=t.reason,this.description=t.description,this.metadata=t.metadata}}!function(t){t.STATUS_SUCCESS="STATUS_SUCCESS",t.STATUS_FAILURE="STATUS_FAILURE"}(D||(D={})),function(t){t.PLAIN="plain",t.BUY="buy",t.SET_UP="set-up",t.DONATE="donate",t.CHECK_OUT="check-out",t.BOOK="book",t.SUBSCRIBE="subscribe"}(T||(T={})),function(t){t.BLACK="black",t.WHITE="white",t.WHITE_OUTLINE="white-outline"}(B||(B={})),function(t){t.SUPPORTS_3DS="supports3DS",t.SUPPORTS_EMV="supportsEMV",t.SUPPORTS_CREDIT="supportsCredit",t.SUPPORTS_DEBIT="supportsDebit"}(E||(E={}));class O{constructor(t){this.merchantIdentifier=t.merchantIdentifier,this.displayName=t.displayName,this.initiative=t.initiative,this.initiativeContext=t.initiativeContext,this.buttonType=t.buttonType||T.PLAIN,this.buttonStyle=t.buttonStyle||B.BLACK,this.buttonLocale=t.buttonLocale||"en-US"}get isValid(){return!!(this.merchantIdentifier&&this.displayName&&this.initiative&&this.initiativeContext)}}class X{constructor(t){this.countryCode=t.countryCode,this.currencyCode=t.currencyCode,this.merchantCapabilities=t.merchantCapabilities,this.supportedNetworks=t.supportedNetworks,this.total=t.total,this.lineItems=t.lineItems,this.shippingMethods=t.shippingMethods,this.applicationData=t.applicationData,this.supportedCountries=t.supportedCountries}get isValid(){var t,i,s,e;return!!(this.countryCode&&this.currencyCode&&(null===(t=this.merchantCapabilities)||void 0===t?void 0:t.length)&&(null===(i=this.supportedNetworks)||void 0===i?void 0:i.length)&&(null===(s=this.total)||void 0===s?void 0:s.label)&&(null===(e=this.total)||void 0===e?void 0:e.amount))}}class Z{static isApplePaySupported(){var t;return"undefined"!=typeof window&&"ApplePaySession"in window&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.supportsVersion(3))}static canMakePayments(){var t;return this.isApplePaySupported()&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.canMakePayments())||!1}static async canMakePaymentsWithActiveCard(t){var i;if(!this.isApplePaySupported())return!1;try{return await(null===(i=window.ApplePaySession)||void 0===i?void 0:i.canMakePaymentsWithActiveCard(t))||!1}catch(t){return console.error("Error checking Apple Pay active card:",t),!1}}static formatAmount(t){return(t/100).toFixed(2)}static parseAmount(t){return Math.round(100*parseFloat(t))}static createLineItem(t,i,s="final"){return{label:t,amount:this.formatAmount(i),type:s}}static getDefaultSupportedNetworks(){return["amex","discover","masterCard","visa"]}static getDefaultMerchantCapabilities(){return[E.SUPPORTS_3DS,E.SUPPORTS_EMV,E.SUPPORTS_CREDIT,E.SUPPORTS_DEBIT]}}!function(t){t.PLAID_SDK_LOAD_FAILED="plaid-sdk-load-failed",t.PLAID_LINK_INIT_FAILED="plaid-link-init-failed",t.PLAID_LINK_TOKEN_FAILED="plaid-link-token-failed",t.PLAID_AUTHENTICATION_FAILED="plaid-authentication-failed",t.PLAID_BANK_NOT_SUPPORTED="plaid-bank-not-supported",t.PLAID_TOKEN_EXPIRED="plaid-token-expired",t.PLAID_NETWORK_ERROR="plaid-network-error",t.PLAID_USER_CANCELLED="plaid-user-cancelled",t.PLAID_TIMEOUT="plaid-timeout",t.PLAID_INVALID_CREDENTIALS="plaid-invalid-credentials",t.PLAID_ACCOUNT_LOCKED="plaid-account-locked",t.PLAID_MAINTENANCE="plaid-maintenance",t.PLAID_RATE_LIMITED="plaid-rate-limited"}(z||(z={}));const tt={[z.PLAID_SDK_LOAD_FAILED]:"Unable to load Plaid. Please refresh the page and try again.",[z.PLAID_LINK_INIT_FAILED]:"Unable to initialize bank connection. Please try again.",[z.PLAID_LINK_TOKEN_FAILED]:"Unable to connect to bank service. Please try again.",[z.PLAID_AUTHENTICATION_FAILED]:"Bank authentication failed. Please try again.",[z.PLAID_BANK_NOT_SUPPORTED]:"Your bank is not currently supported. Please try a different payment method.",[z.PLAID_TOKEN_EXPIRED]:"Your bank session has expired. Please reconnect your account.",[z.PLAID_NETWORK_ERROR]:"Network connection issue. Please check your internet connection and try again.",[z.PLAID_USER_CANCELLED]:"Bank connection was cancelled. Click to try again.",[z.PLAID_TIMEOUT]:"Bank connection timed out. Please try again.",[z.PLAID_INVALID_CREDENTIALS]:"Invalid bank credentials. Please check your username and password.",[z.PLAID_ACCOUNT_LOCKED]:"Your bank account is temporarily locked. Please contact your bank.",[z.PLAID_MAINTENANCE]:"Bank service is temporarily unavailable. Please try again later.",[z.PLAID_RATE_LIMITED]:"Too many connection attempts. Please wait a moment and try again."},it={[z.PLAID_SDK_LOAD_FAILED]:s.ERROR,[z.PLAID_LINK_INIT_FAILED]:s.ERROR,[z.PLAID_LINK_TOKEN_FAILED]:s.ERROR,[z.PLAID_AUTHENTICATION_FAILED]:s.ERROR,[z.PLAID_BANK_NOT_SUPPORTED]:s.WARNING,[z.PLAID_TOKEN_EXPIRED]:s.WARNING,[z.PLAID_NETWORK_ERROR]:s.WARNING,[z.PLAID_USER_CANCELLED]:s.INFO,[z.PLAID_TIMEOUT]:s.WARNING,[z.PLAID_INVALID_CREDENTIALS]:s.ERROR,[z.PLAID_ACCOUNT_LOCKED]:s.ERROR,[z.PLAID_MAINTENANCE]:s.WARNING,[z.PLAID_RATE_LIMITED]:s.WARNING};export{O as A,W as B,s as C,M as D,S as E,r as I,_ as P,U as R,Q as S,w as T,a,i as b,e as c,h as d,L as e,k as f,v as g,o as h,l as i,V as j,Y as k,$ as l,I as m,H as n,K as o,J as p,G as q,Z as r,X as s,D as t,B as u,T as v,E as w,it as x,tt as y,z}
@@ -0,0 +1 @@
1
+ import{p as t}from"./p-DSavNeRB.js";import{A as i}from"./p-De4Pig-y.js";import"./p-DXTa04jn.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const s=i();class e{async record(t){return s.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("docs.justifi.tech")||(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 i=i=>this.handleCustomEvent({event_type:t,data:Object.assign(Object.assign({},this.basicData),"error-event"===t&&{error:i.detail})});this.eventListeners.set(t,i),this.componentInstance.addEventListener(t,i)}}))}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,i)=>{this.componentInstance.removeEventListener(i,t)})),this.eventListeners.clear()}}export{n as J}
@@ -0,0 +1 @@
1
+ import{C as r}from"./p-DXTa04jn.js";import{g as e,a as o}from"./p-CdwzNfP1.js";const n=({authToken:n,businessId:t,service:a})=>async({onSuccess:i,onError:s,final:c=()=>{}})=>{var l;try{const c=await a.fetchBusiness(t,n);if(c.error){return s({error:o(c.error),code:e(null===(l=c.error)||void 0===l?void 0:l.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{c()}},t=({authToken:n,businessId:t,service:a})=>async({payload:i,onSuccess:s,onError:c,final:l=()=>{}})=>{var v;try{const l=await a.patchBusiness(n,t,i);if(l.error){return c({error:o(l.error),code:e(null===(v=l.error)||void 0===v?void 0:v.code),severity:r.ERROR,rawError:l.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,rawError:o})}finally{l()}},a=({authToken:n,businessId:t,product:a,service:i})=>async({onSuccess:s,onError:c})=>{var l;try{const v=await i.postProvisioning(n,t,a);if(v.error){return c({error:o(v.error),code:e(null===(l=v.error)||void 0===l?void 0:l.code),severity:r.ERROR})}s(v)}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 l;try{const c=await a.fetchIdentity(t,n);if(c.error){return s({error:o(c.error),code:e(null===(l=c.error)||void 0===l?void 0:l.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{c()}},s=({authToken:n,identityId:t,service:a})=>async({payload:i,onSuccess:s,onError:c,final:l=()=>{}})=>{var v;try{const l=await a.patchIdentity(n,t,i);if(l.error){return c({error:o(l.error),code:e(null===(v=l.error)||void 0===v?void 0:v.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})}finally{l()}},c=({authToken:n,service:t})=>async({payload:a,onSuccess:i,onError:s,final:c=()=>{}})=>{var l;try{const c=await t.postIdentity(n,a);if(c.error){return s({error:o(c.error),code:e(null===(l=c.error)||void 0===l?void 0:l.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{c()}},l=({authToken:n,service:t})=>async({payload:a,onSuccess:i,onError:s,final:c=()=>{}})=>{var l;try{const c=await t.postBankAccount(n,a);if(c.error){return s({error:o(c.error),code:e(null===(l=c.error)||void 0===l?void 0:l.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{c()}},v=({authToken:n,service:t})=>async({payload:a,onSuccess:i,onError:s,final:c=()=>{}})=>{var l;try{const c=await t.postDocumentRecord(n,a);if(c.error){return s({error:o(c.error),code:e(null===(l=c.error)||void 0===l?void 0:l.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{c()}};export{t as a,a as b,l as c,v as d,i as e,s as f,c as g,n as m}
@@ -1 +1 @@
1
- import{w as n,c as a}from"./p-DVJaoI_m.js";import{g as t}from"./p-BRnBHsdq.js";const o=()=>{async function o(o){const{authToken:e,endpoint:s,method:r,params:i,body:p,signal:d,headers:c}=o;await n();const h=`${a.apiOrigin}/v1/${s}`,u=i?`${h}?${new URLSearchParams(i)}`:h,m=await async function(n){return n?{Authorization:`Bearer ${n}`,"Idempotency-Key":t(),"Content-Type":"application/json"}:{"Content-Type":"application/json"}}(e),y=Object.assign(Object.assign({},m),c),T=await fetch(u,{method:r,headers:y,body:p,signal:d});if(T)return 204===T.status?{}:T.json();!function(n){console.error(`Error fetching from ${n}`)}(u)}return{get:async function(n){const{authToken:a,endpoint:t,params:e,signal:s,headers:r}=n;return o({authToken:a,endpoint:t,method:"GET",params:e,signal:s,headers:r})},post:async function(n){const{authToken:a,endpoint:t,body:e,params:s,signal:r,headers:i}=n;return o({authToken:a,endpoint:t,method:"POST",params:s,body:JSON.stringify(e),signal:r,headers:i})},put:async function(n){const{authToken:a,endpoint:t,body:e,params:s,signal:r}=n;return o({authToken:a,endpoint:t,method:"PUT",params:s,body:JSON.stringify(e),signal:r})},patch:async function(n){const{authToken:a,endpoint:t,body:e,params:s,signal:r}=n;return o({authToken:a,endpoint:t,method:"PATCH",params:s,body:JSON.stringify(e),signal:r})},destroy:async function(n){const{authToken:a,endpoint:t,params:e,signal:s}=n;return o({authToken:a,endpoint:t,method:"DELETE",params:e,signal:s})}}};export{o as A}
1
+ import{w as n,c as a}from"./p-DVJaoI_m.js";import{g as t}from"./p-BSs-2JKu.js";const o=()=>{async function o(o){const{authToken:e,endpoint:s,method:r,params:i,body:p,signal:c,headers:d}=o;await n();const u=`${a.apiOrigin}/v1/${s}`,h=i?`${u}?${new URLSearchParams(i)}`:u,m=await async function(n){return n?{Authorization:`Bearer ${n}`,"Idempotency-Key":t(),"Content-Type":"application/json"}:{"Content-Type":"application/json"}}(e),y=Object.assign(Object.assign({},m),d),T=await fetch(h,{method:r,headers:y,body:p,signal:c});if(T)return 204===T.status?{}:T.json();!function(n){console.error(`Error fetching from ${n}`)}(h)}return{get:async function(n){const{authToken:a,endpoint:t,params:e,signal:s,headers:r}=n;return o({authToken:a,endpoint:t,method:"GET",params:e,signal:s,headers:r})},post:async function(n){const{authToken:a,endpoint:t,body:e,params:s,signal:r,headers:i}=n;return o({authToken:a,endpoint:t,method:"POST",params:s,body:JSON.stringify(e),signal:r,headers:i})},put:async function(n){const{authToken:a,endpoint:t,body:e,params:s,signal:r}=n;return o({authToken:a,endpoint:t,method:"PUT",params:s,body:JSON.stringify(e),signal:r})},patch:async function(n){const{authToken:a,endpoint:t,body:e,params:s,signal:r}=n;return o({authToken:a,endpoint:t,method:"PATCH",params:s,body:JSON.stringify(e),signal:r})},destroy:async function(n){const{authToken:a,endpoint:t,params:e,signal:s}=n;return o({authToken:a,endpoint:t,method:"DELETE",params:e,signal:s})}}};export{o as A}
@@ -0,0 +1 @@
1
+ import{c as e}from"./p-D8GTwl9v.js";import{P as n}from"./p-DkoufM1t.js";const o={accountId:"",authToken:"",billingFormFields:{address_postal_code:""},bnplEnabled:!1,isSubmitting:!1,isWalletProcessing:!1,applePayEnabled:!1,googlePayEnabled:!1,achPaymentsEnabled:!1,insuranceEnabled:!1,bnplProviderApiVersion:"",bnplProviderCheckoutUrl:"",bnplProviderClientId:"",bnplProviderMode:"",checkoutId:"",checkoutLoaded:!1,checkoutMode:null,bankAccountVerification:void 0,disableBankAccount:!1,disableCreditCard:!1,disablePaymentMethodGroup:!1,paymentAmount:0,paymentCurrency:"USD",paymentDescription:"",paymentMethodGroupId:void 0,paymentMethods:[],paymentToken:void 0,savePaymentMethod:!1,selectedPaymentMethod:void 0,totalAmount:0,plaidPublicToken:void 0,plaidLinkTokenId:void 0},{state:t,onChange:a}=e(o);function d(){var e;const o=[],a=!t.checkoutLoaded||t.achPaymentsEnabled;if(!t.disablePaymentMethodGroup&&(null===(e=t.paymentMethods)||void 0===e?void 0:e.length)){const e=t.paymentMethods.some((e=>e.type===n.SAVED_CARD)),d=t.paymentMethods.some((e=>e.type===n.SAVED_BANK_ACCOUNT));e&&!t.disableCreditCard&&o.push(n.SAVED_CARD),d&&!t.disableBankAccount&&a&&o.push(n.SAVED_BANK_ACCOUNT)}return t.disableCreditCard||o.push(n.NEW_CARD),!t.disableBankAccount&&a&&o.push(n.NEW_BANK_ACCOUNT),t.bnplEnabled&&o.push(n.SEZZLE),t.applePayEnabled&&o.push(n.APPLE_PAY),t.googlePayEnabled&&o.push(n.GOOGLE_PAY),!0===t.bankAccountVerification&&!t.disableBankAccount&&a&&o.push(n.PLAID),o}function i(){var e;return{selectedPaymentMethod:t.selectedPaymentMethod,paymentAmount:t.paymentAmount,totalAmount:t.totalAmount,paymentCurrency:t.paymentCurrency,paymentDescription:t.paymentDescription,savedPaymentMethods:t.paymentMethods,savePaymentMethod:t.savePaymentMethod,bnplEnabled:t.bnplEnabled,applePayEnabled:t.applePayEnabled,insuranceEnabled:t.insuranceEnabled,disableBankAccount:t.disableBankAccount,disableCreditCard:t.disableCreditCard,disablePaymentMethodGroup:t.disablePaymentMethodGroup,paymentToken:null!==(e=t.paymentToken)&&void 0!==e?e:void 0}}function l(e){Object.keys(o).forEach((n=>{a(n,(o=>e(n,o)))}))}Object.keys(o).forEach((e=>{a(e,(n=>{t[e]=n}))}));export{l as a,i as b,t as c,d as g,a as o}