@justifi/webcomponents 5.4.4 → 5.6.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 (872) hide show
  1. package/dist/cjs/Api-KMweahmp.js +74 -0
  2. package/dist/cjs/{Business-d88b77fd.js → Business-DyiDiIuO.js} +1 -1
  3. package/dist/cjs/{Checkout-5352009d.js → Checkout-RAGvjVPj.js} +1 -1
  4. package/dist/cjs/{ComponentError-233ac749.js → ComponentError-C4MdBBMe.js} +1 -0
  5. package/dist/cjs/{Payment-bccd8f7d.js → Payment-CQCmj3Ck.js} +2 -2
  6. package/dist/cjs/{SubAccount-2a302ead.js → Refund-CpurRc4w.js} +104 -1
  7. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +10 -0
  8. package/dist/cjs/additional-questions-details_5.cjs.entry.js +5 -11
  9. package/dist/cjs/{badge-364e6311.js → badge-DwSZ83Bm.js} +2 -2
  10. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +25 -43
  11. package/dist/cjs/bank-account-form_9.cjs.entry.js +93 -97
  12. package/dist/cjs/{business-additional-questions-schema-8568cb79.js → business-additional-questions-schema-mzZ2gYHQ.js} +2 -2
  13. package/dist/cjs/business-details-core.cjs.entry.js +6 -10
  14. package/dist/cjs/{business-form-options-62e9c8ab.js → business-form-options-BCj0efiD.js} +1 -1
  15. package/dist/cjs/{business-identity-schema-518ab6eb.js → business-identity-schema-dt0zCW0R.js} +2 -2
  16. package/dist/cjs/{business.service-6e8a29a2.js → business.service-Crmkeulk.js} +23 -8
  17. package/dist/cjs/{button-4a9fd41e.js → button-Cp4u5YgP.js} +2 -2
  18. package/dist/cjs/{check-pkg-version-e6dcbeb7.js → check-pkg-version-C4d9pl8G.js} +3 -3
  19. package/dist/cjs/{checkout.service-0a7835dc.js → checkout.service-DP9FnXBx.js} +13 -10
  20. package/dist/cjs/checkouts-list-core.cjs.entry.js +25 -31
  21. package/dist/cjs/{payments-list-params-state-442d9944.js → checkouts-list-params-state-DX4jg37H.js} +1 -1
  22. package/dist/cjs/{checkouts-table-8a1b49ff.js → checkouts-table-nsXjlcI1.js} +4 -4
  23. package/dist/cjs/custom-popper_4.cjs.entry.js +27 -52
  24. package/dist/cjs/{dispute.service-6efc7d7f.js → dispute.service-F-M8EJxq.js} +20 -11
  25. package/dist/cjs/{event-types-5a6ce2b0.js → event-types-CjInBN20.js} +3 -3
  26. package/dist/cjs/form-alert_5.cjs.entry.js +10 -19
  27. package/dist/cjs/form-control-checkbox.cjs.entry.js +9 -18
  28. package/dist/cjs/form-control-date.cjs.entry.js +9 -19
  29. package/dist/cjs/{form-control-error-text-3cff9b7b.js → form-control-error-text-NbHDc1JL.js} +2 -2
  30. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +11 -30
  31. package/dist/cjs/{form-control-help-text-94ffed2c.js → form-control-help-text-bc3qGHAG.js} +2 -2
  32. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -5
  33. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +13 -22
  34. package/dist/cjs/form-control-monetary.cjs.entry.js +13 -22
  35. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +12 -25
  36. package/dist/cjs/form-control-number.cjs.entry.js +9 -18
  37. package/dist/cjs/form-control-radio.cjs.entry.js +7 -17
  38. package/dist/cjs/{get-business-d8f5db51.js → get-business-BBzGEPBG.js} +3 -3
  39. package/dist/cjs/get-payment-details-DQyJtwTw.js +42 -0
  40. package/dist/cjs/get-payout-csv-Jr_0DmmY.js +24 -0
  41. package/dist/cjs/{get-subaccounts-ae5b35a8.js → get-subaccounts-zwxhG-O3.js} +11 -10
  42. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +262 -270
  43. package/dist/cjs/{header-1-43b2b905.js → header-1-kwWMtg3s.js} +2 -2
  44. package/dist/cjs/{header-3-eb250a04.js → header-3-CNWIH9ZU.js} +2 -2
  45. package/dist/cjs/{helpers-602962eb.js → helpers-B5OCqlIM.js} +1 -1
  46. package/dist/cjs/{iframe-input-styles-state-d0de0b24.js → iframe-input-styles-state-jHHRvqzM.js} +2 -2
  47. package/dist/cjs/iframe-input.cjs.entry.js +1640 -0
  48. package/dist/cjs/{index-750475a3.js → index-1MT3Z4XI.js} +1 -1
  49. package/dist/cjs/{index-5b9a3b5f.js → index-BRQfozbS.js} +460 -271
  50. package/dist/cjs/{index-d2d0b181.js → index-DzQdh5ij.js} +4 -5
  51. package/dist/cjs/index.esm-CVuJLXJZ.js +11807 -0
  52. package/dist/cjs/{input-handlers-cff032bb.js → input-handlers-DYl_0IwC.js} +1 -1
  53. package/dist/cjs/{insurance-state-71f8b653.js → insurance-state-DbXkNYds.js} +3 -3
  54. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +64 -94
  55. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +36 -86
  56. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +36 -54
  57. package/dist/cjs/justifi-business-details.cjs.entry.js +16 -20
  58. package/dist/cjs/justifi-business-form.cjs.entry.js +34 -38
  59. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +6 -11
  60. package/dist/cjs/justifi-checkout-core.cjs.entry.js +31 -34
  61. package/dist/cjs/justifi-checkout.cjs.entry.js +23 -29
  62. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +15 -18
  63. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +25 -30
  64. package/dist/cjs/justifi-details.cjs.entry.js +3 -6
  65. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +5 -11
  66. package/dist/cjs/justifi-dispute-management.cjs.entry.js +19 -23
  67. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +38 -52
  68. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +13 -16
  69. package/dist/cjs/justifi-order-terminals.cjs.entry.js +29 -37
  70. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +29 -52
  71. package/dist/cjs/justifi-payment-details.cjs.entry.js +24 -52
  72. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +15 -23
  73. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +15 -16
  74. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +195 -0
  75. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +11 -17
  76. package/dist/cjs/justifi-payments-list.cjs.entry.js +25 -29
  77. package/dist/cjs/justifi-payout-details.cjs.entry.js +24 -28
  78. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +203 -0
  79. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +9 -12
  80. package/dist/cjs/justifi-payouts-list.cjs.entry.js +29 -34
  81. package/dist/cjs/justifi-refund-payment.cjs.entry.js +189 -69
  82. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +10 -27
  83. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +24 -35
  84. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +24 -26
  85. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +29 -29
  86. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +21 -25
  87. package/dist/cjs/justifi-terminals-list.cjs.entry.js +26 -31
  88. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +24 -28
  89. package/dist/cjs/loader.cjs.js +3 -5
  90. package/dist/cjs/lodash-CvSCBJ_8.js +17216 -0
  91. package/dist/cjs/package-S6wVKDKx.js +9 -0
  92. package/dist/cjs/pagination-menu.cjs.entry.js +3 -5
  93. package/dist/cjs/{parts-5ca90f9a.js → parts-D_uKOPFe.js} +3 -1
  94. package/dist/cjs/payment-details-core.cjs.entry.js +19 -22
  95. package/dist/cjs/{payment-provisioning-actions-382ab48c.js → payment-provisioning-actions-BkWSDJQQ.js} +2 -2
  96. package/dist/cjs/payment.service-BstXaxH5.js +27 -0
  97. package/dist/cjs/payments-list-core.cjs.entry.js +25 -30
  98. package/dist/cjs/{terminal-orders-list-params-state-c419078f.js → payments-list-params-state-DX4jg37H.js} +1 -1
  99. package/dist/cjs/{payments-status-075aad0a.js → payments-status-CQq7KrHL.js} +2 -2
  100. package/dist/cjs/{payments-table-a076755a.js → payments-table-ClOxMnZ8.js} +4 -4
  101. package/dist/cjs/payout-details-core.cjs.entry.js +14 -18
  102. package/dist/cjs/payout.service-DWOtnFdn.js +34 -0
  103. package/dist/cjs/payouts-list-core.cjs.entry.js +26 -33
  104. package/dist/cjs/{checkouts-list-params-state-644d3639.js → payouts-list-params-state-DX4jg37H.js} +1 -1
  105. package/dist/cjs/{payouts-status-ced97c2b.js → payouts-status-BdfV3jvX.js} +2 -2
  106. package/dist/cjs/{payouts-table-aedce326.js → payouts-table-Bo3pLf4Z.js} +4 -4
  107. package/dist/cjs/{schema-validations-a7cefbdf.js → schema-validations-p4OCdblz.js} +4 -4
  108. package/dist/cjs/{skeleton-e8aa41d0.js → skeleton-BXVndBVC.js} +2 -2
  109. package/dist/cjs/{spinner-580453f2.js → spinner-CSH2OUiV.js} +2 -2
  110. package/dist/cjs/{styled-host-94309bab.js → styled-host-CzJ8Ux1t.js} +2 -3
  111. package/dist/cjs/table-filters-menu.cjs.entry.js +4 -10
  112. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +24 -29
  113. package/dist/cjs/{payouts-list-params-state-033b76d6.js → terminal-orders-list-params-state-DX4jg37H.js} +1 -1
  114. package/dist/cjs/{terminal-orders-table-3b247193.js → terminal-orders-table-CXmVc7uU.js} +35 -5
  115. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +6 -12
  116. package/dist/cjs/{terminal.service-ab62c344.js → terminal.service-ghxwDinY.js} +11 -11
  117. package/dist/cjs/terminals-list-core.cjs.entry.js +25 -31
  118. package/dist/cjs/terminals-list-params-state-DX4jg37H.js +22 -0
  119. package/dist/cjs/{terminals-table-594643fd.js → terminals-table-vYbTPOpy.js} +4 -4
  120. package/dist/cjs/utils-DmZ8Dia3.js +23987 -0
  121. package/dist/cjs/{utils-f8714daa.js → utils-DxbncJhj.js} +2 -2
  122. package/dist/cjs/{utils-7a478c37.js → utils-l0veqT9y.js} +1 -1
  123. package/dist/cjs/webcomponents.cjs.js +7 -7
  124. package/dist/collection/actions/payment/get-payment-details.js +5 -2
  125. package/dist/collection/actions/payment/get-payment-transactions.js +34 -0
  126. package/dist/collection/actions/payout/get-payout-transactions.js +34 -0
  127. package/dist/collection/actions/refund/refund-actions.js +31 -0
  128. package/dist/collection/api/Api.js +32 -13
  129. package/dist/collection/api/ComponentError.js +1 -0
  130. package/dist/collection/api/PaymentBalanceTransaction.js +45 -0
  131. package/dist/collection/api/PayoutBalanceTransaction.js +35 -0
  132. package/dist/collection/api/Refund.js +32 -0
  133. package/dist/collection/api/TerminalOrder.js +3 -0
  134. package/dist/collection/api/index.js +3 -0
  135. package/dist/collection/api/services/analytics.service.js +1 -1
  136. package/dist/collection/api/services/business.service.js +22 -7
  137. package/dist/collection/api/services/checkout.service.js +6 -3
  138. package/dist/collection/api/services/dispute.service.js +13 -4
  139. package/dist/collection/api/services/insurance.service.js +8 -2
  140. package/dist/collection/api/services/payment.service.js +7 -3
  141. package/dist/collection/api/services/payout.service.js +8 -3
  142. package/dist/collection/api/services/provision.service.js +4 -1
  143. package/dist/collection/api/services/refund.service.js +10 -0
  144. package/dist/collection/api/services/reports.service.js +1 -1
  145. package/dist/collection/api/services/subaccounts.service.js +1 -1
  146. package/dist/collection/api/services/terminal.service.js +4 -4
  147. package/dist/collection/api/services/terminal_orders.service.js +5 -1
  148. package/dist/collection/collection-manifest.json +5 -5
  149. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +4 -4
  150. package/dist/collection/components/business-details/business-details-core.js +4 -3
  151. package/dist/collection/components/business-details/business-details.js +6 -8
  152. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +4 -4
  153. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +4 -4
  154. package/dist/collection/components/business-details/owner-details/owner-details.js +4 -4
  155. package/dist/collection/components/business-details/representative-details/representative-details.js +4 -4
  156. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +4 -2
  157. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +4 -2
  158. package/dist/collection/components/business-forms/business-form/business-form.js +20 -13
  159. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +6 -4
  160. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +4 -3
  161. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +11 -7
  162. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +34 -22
  163. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +10 -6
  164. package/dist/collection/components/business-forms/owner-form/owner-form.js +22 -19
  165. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +15 -11
  166. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +9 -10
  167. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +11 -8
  168. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +13 -10
  169. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +23 -16
  170. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +9 -12
  171. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-documents-on-file.js +6 -2
  172. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +17 -12
  173. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +9 -10
  174. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +20 -14
  175. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +9 -10
  176. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +10 -6
  177. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +14 -10
  178. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +9 -10
  179. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +31 -21
  180. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +14 -10
  181. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +9 -10
  182. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +24 -16
  183. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +20 -14
  184. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +21 -12
  185. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +12 -8
  186. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +13 -13
  187. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +3 -2
  188. package/dist/collection/components/checkout/billing-form/billing-form-schema.js +21 -0
  189. package/dist/collection/components/checkout/billing-form/billing-form.js +203 -0
  190. package/dist/collection/components/checkout/card-form/card-form.js +5 -4
  191. package/dist/collection/components/checkout/checkout-core.js +88 -37
  192. package/dist/collection/components/checkout/checkout.js +70 -28
  193. package/dist/collection/components/checkout/new-payment-method.js +110 -30
  194. package/dist/collection/components/checkout/payment-method-options.js +91 -36
  195. package/dist/collection/components/checkout/saved-payment-method.js +7 -4
  196. package/dist/collection/components/checkout/sezzle-payment-method.js +19 -15
  197. package/dist/collection/components/checkouts-list/checkouts-list-core.js +17 -14
  198. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +7 -5
  199. package/dist/collection/components/checkouts-list/checkouts-list.js +16 -12
  200. package/dist/collection/components/dispute-management/dispute-management-core.js +11 -8
  201. package/dist/collection/components/dispute-management/dispute-management.js +12 -9
  202. package/dist/collection/components/dispute-management/dispute-notification.js +11 -9
  203. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +10 -9
  204. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +10 -8
  205. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +10 -8
  206. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +21 -14
  207. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +16 -13
  208. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +10 -8
  209. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +10 -8
  210. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +10 -8
  211. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +10 -8
  212. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +10 -8
  213. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +5 -4
  214. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +7 -6
  215. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +44 -30
  216. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +40 -32
  217. package/dist/collection/components/order-terminals/order-terminals.js +19 -14
  218. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +19 -13
  219. package/dist/collection/components/payment-details/payment-details-core.js +13 -12
  220. package/dist/collection/components/payment-details/payment-details.js +29 -6
  221. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +248 -0
  222. package/dist/collection/components/payment-transactions-list/payment-transactions-table.js +45 -0
  223. package/dist/collection/components/payments-list/payments-list-core.js +12 -11
  224. package/dist/collection/components/payments-list/payments-list-filters.js +17 -12
  225. package/dist/collection/components/payments-list/payments-list.js +16 -11
  226. package/dist/collection/components/payout-details/payout-details-core.js +11 -8
  227. package/dist/collection/components/payout-details/payout-details.js +11 -9
  228. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +250 -0
  229. package/dist/collection/components/payout-transactions-list/payout-transactions-table.js +47 -0
  230. package/dist/collection/components/payouts-list/payouts-list-core.js +21 -16
  231. package/dist/collection/components/payouts-list/payouts-list-filters.js +8 -6
  232. package/dist/collection/components/payouts-list/payouts-list.js +16 -13
  233. package/dist/collection/components/refund-payment/refund-loading.js +6 -0
  234. package/dist/collection/components/refund-payment/refund-payment-schema.js +26 -11
  235. package/dist/collection/components/refund-payment/refund-payment.js +157 -57
  236. package/dist/collection/components/terminal-orders-list/terminal-order-status.js +15 -0
  237. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +12 -11
  238. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +18 -11
  239. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +16 -11
  240. package/dist/collection/components/terminal-orders-list/terminal-orders-table.js +11 -1
  241. package/dist/collection/components/terminals-list/terminals-list-core.js +17 -14
  242. package/dist/collection/components/terminals-list/terminals-list-filters.js +10 -7
  243. package/dist/collection/components/terminals-list/terminals-list.js +16 -12
  244. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +71 -19
  245. package/dist/collection/styles/parts.js +2 -1
  246. package/dist/collection/ui-components/custom-popper/custom-popper.js +19 -8
  247. package/dist/collection/ui-components/details/details.js +3 -4
  248. package/dist/collection/ui-components/filters/table-filters-menu.js +8 -7
  249. package/dist/collection/ui-components/form/form-control-checkbox.js +25 -17
  250. package/dist/collection/ui-components/form/form-control-date.js +32 -21
  251. package/dist/collection/ui-components/form/form-control-file-v2.js +23 -18
  252. package/dist/collection/ui-components/form/form-control-file.js +28 -21
  253. package/dist/collection/ui-components/form/form-control-monetary.js +35 -23
  254. package/dist/collection/ui-components/form/form-control-number-masked.js +28 -19
  255. package/dist/collection/ui-components/form/form-control-number.js +25 -17
  256. package/dist/collection/ui-components/form/form-control-radio.js +28 -19
  257. package/dist/collection/ui-components/form/form-control-select.js +29 -19
  258. package/dist/collection/ui-components/form/form-control-text.js +32 -21
  259. package/dist/collection/ui-components/form/form-control-textarea.js +32 -21
  260. package/dist/collection/ui-components/form/form-helpers/form-alert/form-alert.js +6 -6
  261. package/dist/collection/ui-components/form/form-helpers/form-control-help-text/form-control-help-text.js +6 -6
  262. package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +3 -6
  263. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  264. package/dist/collection/ui-components/form/iframe-input.js +14 -12
  265. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +6 -0
  266. package/dist/collection/utils/utils.js +8 -0
  267. package/dist/docs.d.ts +8 -0
  268. package/dist/docs.json +2216 -947
  269. package/dist/esm/Api-C9CDE-UM.js +72 -0
  270. package/dist/esm/{Business-0855931c.js → Business-D6XNzizo.js} +2 -2
  271. package/dist/esm/{Checkout-18d8bf94.js → Checkout-Dfpql997.js} +1 -1
  272. package/dist/esm/{ComponentError-c61dce41.js → ComponentError-SdntD1xf.js} +2 -1
  273. package/dist/esm/{Document-1907c0d4.js → Document-Ct-uNz2r.js} +1 -1
  274. package/dist/esm/{Payment-806af354.js → Payment-BADkZFaz.js} +2 -2
  275. package/dist/esm/{SubAccount-7520271c.js → Refund-DOvd7RJp.js} +102 -2
  276. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
  277. package/dist/esm/additional-questions-details_5.entry.js +5 -9
  278. package/dist/esm/{badge-1be14e8c.js → badge-D5PvLnZT.js} +3 -3
  279. package/dist/esm/bank-account-document-form-inputs_4.entry.js +25 -41
  280. package/dist/esm/bank-account-form_9.entry.js +91 -93
  281. package/dist/esm/{business-additional-questions-schema-56308a54.js → business-additional-questions-schema-W6okG5Xu.js} +2 -2
  282. package/dist/esm/business-details-core.entry.js +6 -8
  283. package/dist/esm/{business-form-options-86a13078.js → business-form-options-Bn05PRR4.js} +1 -1
  284. package/dist/esm/{business-identity-schema-24fcc4ef.js → business-identity-schema-lqdJS3MT.js} +2 -2
  285. package/dist/esm/{business.service-999196a4.js → business.service-B136meVo.js} +23 -8
  286. package/dist/esm/{button-fcee4da7.js → button-wgHJf7hN.js} +2 -2
  287. package/dist/esm/{check-pkg-version-47fc35a7.js → check-pkg-version-iIBw3nCc.js} +3 -3
  288. package/dist/esm/{checkout.service-e38e477f.js → checkout.service-92ld4w-G.js} +13 -10
  289. package/dist/esm/checkouts-list-core.entry.js +25 -29
  290. package/dist/esm/{checkouts-list-params-state-7bdf00bd.js → checkouts-list-params-state-qgJxi6iW.js} +1 -1
  291. package/dist/esm/{checkouts-table-39a031a0.js → checkouts-table-DQfjKgR-.js} +4 -4
  292. package/dist/esm/custom-popper_4.entry.js +27 -50
  293. package/dist/esm/{dispute.service-7ba6d5a4.js → dispute.service-H2Oaq2af.js} +20 -11
  294. package/dist/esm/{event-types-1bc52f1f.js → event-types-Dv-I6YqZ.js} +3 -3
  295. package/dist/esm/form-alert_5.entry.js +10 -17
  296. package/dist/esm/form-control-checkbox.entry.js +9 -16
  297. package/dist/esm/form-control-date.entry.js +9 -17
  298. package/dist/esm/{form-control-error-text-176d20d8.js → form-control-error-text-nyeinPVQ.js} +2 -2
  299. package/dist/esm/form-control-file-v2_2.entry.js +11 -28
  300. package/dist/esm/{form-control-help-text-83764e14.js → form-control-help-text-QhxeQeTV.js} +2 -2
  301. package/dist/esm/form-control-help-text.entry.js +1 -3
  302. package/dist/esm/form-control-monetary-provisioning.entry.js +13 -20
  303. package/dist/esm/form-control-monetary.entry.js +13 -20
  304. package/dist/esm/form-control-number-masked_2.entry.js +12 -23
  305. package/dist/esm/form-control-number.entry.js +9 -16
  306. package/dist/esm/form-control-radio.entry.js +7 -15
  307. package/dist/esm/{get-business-b7511690.js → get-business-B3c5gg1D.js} +3 -3
  308. package/dist/esm/get-payment-details-Bzh5t6A8.js +40 -0
  309. package/dist/esm/get-payout-csv-bM3pZLKB.js +22 -0
  310. package/dist/esm/{get-subaccounts-3c6b9e84.js → get-subaccounts-BB3Sqb3H.js} +10 -9
  311. package/dist/esm/gross-payment-chart-core.entry.js +262 -268
  312. package/dist/esm/{header-1-215a146f.js → header-1-DNg4xuR6.js} +2 -2
  313. package/dist/esm/{header-3-afd16f23.js → header-3-BD_mh7vB.js} +2 -2
  314. package/dist/esm/{helpers-96ea3464.js → helpers-Mu7LQT-w.js} +2 -2
  315. package/dist/esm/{iframe-input-styles-state-ff730fe5.js → iframe-input-styles-state-DeH54Fkx.js} +3 -3
  316. package/dist/esm/iframe-input.entry.js +1638 -0
  317. package/dist/esm/{index-a47fdc7f.js → index-4sfb1rKO.js} +4 -5
  318. package/dist/esm/{index-d9a73ce3.js → index-Ce_F4E0f.js} +1 -1
  319. package/dist/esm/{index-29fcfdf5.js → index-D4-FKsCU.js} +459 -250
  320. package/dist/esm/index.esm-BCNUj0Dx.js +11801 -0
  321. package/dist/esm/{input-handlers-270ac806.js → input-handlers-CX6mSvOM.js} +1 -1
  322. package/dist/esm/{insurance-state-d2df8e88.js → insurance-state-CXUWRQQk.js} +3 -3
  323. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +64 -92
  324. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +36 -84
  325. package/dist/esm/justifi-additional-statement_8.entry.js +36 -52
  326. package/dist/esm/justifi-business-details.entry.js +16 -18
  327. package/dist/esm/justifi-business-form.entry.js +34 -36
  328. package/dist/esm/justifi-business-representative-form-inputs.entry.js +6 -9
  329. package/dist/esm/justifi-checkout-core.entry.js +31 -32
  330. package/dist/esm/justifi-checkout.entry.js +23 -27
  331. package/dist/esm/justifi-checkouts-list-filters.entry.js +15 -16
  332. package/dist/esm/justifi-checkouts-list.entry.js +25 -28
  333. package/dist/esm/justifi-details.entry.js +3 -4
  334. package/dist/esm/justifi-dispute-management-core.entry.js +5 -9
  335. package/dist/esm/justifi-dispute-management.entry.js +19 -21
  336. package/dist/esm/justifi-dispute-notification_3.entry.js +38 -50
  337. package/dist/esm/justifi-gross-payment-chart.entry.js +13 -14
  338. package/dist/esm/justifi-order-terminals.entry.js +26 -32
  339. package/dist/esm/justifi-owner-form_3.entry.js +29 -50
  340. package/dist/esm/justifi-payment-details.entry.js +22 -48
  341. package/dist/esm/justifi-payment-provisioning-core.entry.js +15 -21
  342. package/dist/esm/justifi-payment-provisioning.entry.js +15 -14
  343. package/dist/esm/justifi-payment-transactions-list.entry.js +193 -0
  344. package/dist/esm/justifi-payments-list-filters.entry.js +11 -15
  345. package/dist/esm/justifi-payments-list.entry.js +25 -27
  346. package/dist/esm/justifi-payout-details.entry.js +21 -23
  347. package/dist/esm/justifi-payout-transactions-list.entry.js +201 -0
  348. package/dist/esm/justifi-payouts-list-filters.entry.js +9 -10
  349. package/dist/esm/justifi-payouts-list.entry.js +27 -30
  350. package/dist/esm/justifi-refund-payment.entry.js +189 -67
  351. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +10 -25
  352. package/dist/esm/justifi-season-interruption-insurance.entry.js +24 -33
  353. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +19 -19
  354. package/dist/esm/justifi-terminal-orders-list.entry.js +28 -26
  355. package/dist/esm/justifi-terminals-list-filters.entry.js +17 -19
  356. package/dist/esm/justifi-terminals-list.entry.js +25 -28
  357. package/dist/esm/justifi-tokenize-payment-method.entry.js +24 -26
  358. package/dist/esm/loader.js +4 -4
  359. package/dist/esm/lodash-BqWxUrkh.js +17214 -0
  360. package/dist/esm/package-DGWLSvML.js +7 -0
  361. package/dist/esm/pagination-menu.entry.js +3 -3
  362. package/dist/esm/{parts-fd740f54.js → parts-6ctk_bhj.js} +3 -2
  363. package/dist/esm/payment-details-core.entry.js +19 -20
  364. package/dist/esm/{payment-provisioning-actions-beadac34.js → payment-provisioning-actions-CZYFFdTf.js} +3 -3
  365. package/dist/esm/payment.service-CeGn-K_X.js +25 -0
  366. package/dist/esm/payments-list-core.entry.js +25 -28
  367. package/dist/esm/{payments-list-params-state-d05b24aa.js → payments-list-params-state-qgJxi6iW.js} +1 -1
  368. package/dist/esm/{payments-status-74d22728.js → payments-status-nKLMqTrO.js} +2 -2
  369. package/dist/esm/{payments-table-8134f5e1.js → payments-table-BrvZHeak.js} +4 -4
  370. package/dist/esm/payout-details-core.entry.js +14 -16
  371. package/dist/esm/payout.service-dukCI9Kl.js +32 -0
  372. package/dist/esm/payouts-list-core.entry.js +26 -31
  373. package/dist/esm/{payouts-list-params-state-ebcee300.js → payouts-list-params-state-qgJxi6iW.js} +1 -1
  374. package/dist/esm/{payouts-status-29d31099.js → payouts-status-tVJFGPCs.js} +2 -2
  375. package/dist/esm/{payouts-table-c1ced46a.js → payouts-table-CgfTp9tE.js} +4 -4
  376. package/dist/esm/{schema-validations-5af4266a.js → schema-validations-BsbYeDDR.js} +5 -5
  377. package/dist/esm/{skeleton-ab3f676e.js → skeleton-D8dsThNX.js} +2 -2
  378. package/dist/esm/{spinner-27479716.js → spinner-BVJ-upD0.js} +2 -2
  379. package/dist/esm/{styled-host-32228b45.js → styled-host-D594Ui4d.js} +2 -3
  380. package/dist/esm/table-filters-menu.entry.js +4 -8
  381. package/dist/esm/terminal-orders-list-core.entry.js +24 -27
  382. package/dist/esm/{terminal-orders-list-params-state-8fec0a0b.js → terminal-orders-list-params-state-qgJxi6iW.js} +1 -1
  383. package/dist/esm/{terminal-orders-table-93e84d25.js → terminal-orders-table-CgioW1d8.js} +35 -5
  384. package/dist/esm/terminal-quantity-selector.entry.js +6 -10
  385. package/dist/esm/{terminal.service-d173566d.js → terminal.service-L0EoPXUE.js} +11 -11
  386. package/dist/esm/terminals-list-core.entry.js +25 -29
  387. package/dist/esm/terminals-list-params-state-qgJxi6iW.js +16 -0
  388. package/dist/esm/{terminals-table-ff24bf27.js → terminals-table-D7LKwR85.js} +4 -4
  389. package/dist/esm/{utils-96d9c205.js → utils-1z8cNzLu.js} +2 -2
  390. package/dist/esm/utils-BWcTxbSg.js +23969 -0
  391. package/dist/esm/{utils-fd99b806.js → utils-Dccsn9BY.js} +2 -2
  392. package/dist/esm/webcomponents.js +6 -5
  393. package/dist/module/Api.js +32 -76
  394. package/dist/module/Business.js +2 -2
  395. package/dist/module/ComponentError.js +2 -1
  396. package/dist/module/Document.js +1 -1
  397. package/dist/module/{SubAccount.js → Refund.js} +101 -1
  398. package/dist/module/_commonjsHelpers.js +7 -0
  399. package/dist/module/additional-questions-details2.js +1 -2
  400. package/dist/module/additional-questions.js +2 -3
  401. package/dist/module/additional-statement.js +6 -9
  402. package/dist/module/badge.js +1 -1
  403. package/dist/module/bank-account-document-inputs.js +4 -6
  404. package/dist/module/bank-account-form-inputs2.js +1 -5
  405. package/dist/module/bank-account-form2.js +0 -1
  406. package/dist/module/billing-form.js +122 -4
  407. package/dist/module/business-additional-questions-form-step-core.js +7 -11
  408. package/dist/module/business-additional-questions-form-step.js +1 -6
  409. package/dist/module/business-additional-questions-schema.js +1 -1
  410. package/dist/module/business-address-schema.js +1 -1
  411. package/dist/module/business-bank-account-form-step-core.js +13 -18
  412. package/dist/module/business-bank-account-form-step.js +3 -9
  413. package/dist/module/business-core-info-form-step-core.js +6 -11
  414. package/dist/module/business-core-info-form-step.js +1 -6
  415. package/dist/module/business-core-info-schema.js +1 -1
  416. package/dist/module/business-core-info.js +2 -3
  417. package/dist/module/business-details-core2.js +1 -3
  418. package/dist/module/business-documents-on-file2.js +1 -1
  419. package/dist/module/business-form-options.js +1 -1
  420. package/dist/module/business-identity-schema.js +1 -1
  421. package/dist/module/business-owners-form-step-core.js +5 -11
  422. package/dist/module/business-owners-form-step.js +1 -6
  423. package/dist/module/business-representative-form-inputs.js +1 -4
  424. package/dist/module/business-representative-form-step-core.js +5 -9
  425. package/dist/module/business-representative-form-step.js +1 -6
  426. package/dist/module/business-representative.js +3 -4
  427. package/dist/module/business-terms-conditions-form-step.js +6 -12
  428. package/dist/module/business.service.js +22 -7
  429. package/dist/module/button.js +1 -1
  430. package/dist/module/cancellation-policy.js +6 -8
  431. package/dist/module/card-form2.js +2 -3
  432. package/dist/module/check-pkg-version.js +1 -1
  433. package/dist/module/checkout-core.js +57 -69
  434. package/dist/module/checkout.service.js +7 -4
  435. package/dist/module/checkouts-list-core2.js +12 -17
  436. package/dist/module/custom-popper2.js +13 -16
  437. package/dist/module/customer-details.js +6 -8
  438. package/dist/module/details.js +0 -1
  439. package/dist/module/dispute-management-core.js +4 -8
  440. package/dist/module/dispute-notification.js +3 -6
  441. package/dist/module/dispute-response-actions.js +16 -7
  442. package/dist/module/dispute-response-core.js +12 -16
  443. package/dist/module/dispute-response.js +6 -12
  444. package/dist/module/duplicate-charge.js +6 -8
  445. package/dist/module/electronic-evidence.js +5 -7
  446. package/dist/module/event-types2.js +21 -61
  447. package/dist/module/event-types3.js +61 -21
  448. package/dist/module/form-alert2.js +1 -3
  449. package/dist/module/form-control-checkbox2.js +6 -13
  450. package/dist/module/form-control-date2.js +6 -14
  451. package/dist/module/form-control-file-v22.js +2 -10
  452. package/dist/module/form-control-file2.js +5 -15
  453. package/dist/module/form-control-help-text.js +1 -1
  454. package/dist/module/form-control-help-text2.js +30 -9
  455. package/dist/module/form-control-help-text3.js +9 -32
  456. package/dist/module/form-control-monetary-provisioning2.js +8 -15
  457. package/dist/module/form-control-monetary2.js +9 -17
  458. package/dist/module/form-control-number-masked2.js +4 -12
  459. package/dist/module/form-control-number.js +6 -13
  460. package/dist/module/form-control-radio2.js +6 -14
  461. package/dist/module/form-control-select2.js +5 -13
  462. package/dist/module/form-control-text2.js +5 -14
  463. package/dist/module/form-control-textarea2.js +7 -16
  464. package/dist/module/form-control-tooltip2.js +0 -3
  465. package/dist/module/form.js +9773 -903
  466. package/dist/module/generic-info-details2.js +0 -1
  467. package/dist/module/get-business.js +2 -2
  468. package/dist/module/get-payment-details.js +40 -0
  469. package/dist/module/get-payout-csv.js +3 -27
  470. package/dist/module/get-subaccounts.js +5 -4
  471. package/dist/module/gross-payment-chart-core2.js +257 -264
  472. package/dist/module/helpers.js +1 -1
  473. package/dist/module/hidden-input2.js +3 -3
  474. package/dist/module/identity-address-form.js +2 -5
  475. package/dist/module/iframe-input-styles-state.js +2 -2
  476. package/dist/module/iframe-input2.js +1481 -1478
  477. package/dist/module/index.js +1 -1
  478. package/dist/module/index2.js +3 -4
  479. package/dist/module/index3.js +1 -1
  480. package/dist/module/{billing-form.d.ts → justifi-billing-form.d.ts} +4 -4
  481. package/dist/module/justifi-billing-form.js +6 -0
  482. package/dist/module/justifi-business-details.js +1 -5
  483. package/dist/module/justifi-business-form.js +7 -10
  484. package/dist/module/justifi-checkout.js +47 -62
  485. package/dist/module/justifi-checkouts-list-filters.js +4 -5
  486. package/dist/module/justifi-checkouts-list.js +8 -11
  487. package/dist/module/justifi-dispute-management.js +6 -9
  488. package/dist/module/justifi-gross-payment-chart.js +4 -7
  489. package/dist/module/justifi-order-terminals.js +6 -13
  490. package/dist/module/justifi-payment-details.js +6 -38
  491. package/dist/module/justifi-payment-provisioning.js +5 -6
  492. package/dist/module/justifi-payment-transactions-list.d.ts +11 -0
  493. package/dist/module/justifi-payment-transactions-list.js +229 -0
  494. package/dist/module/justifi-payments-list-filters.js +6 -11
  495. package/dist/module/justifi-payments-list.js +8 -10
  496. package/dist/module/justifi-payout-details.js +8 -10
  497. package/dist/module/justifi-payout-transactions-list.d.ts +11 -0
  498. package/dist/module/justifi-payout-transactions-list.js +237 -0
  499. package/dist/module/justifi-payouts-list-filters.js +4 -6
  500. package/dist/module/justifi-payouts-list.js +10 -13
  501. package/dist/module/justifi-refund-payment.js +184 -61
  502. package/dist/module/justifi-season-interruption-insurance.js +13 -23
  503. package/dist/module/justifi-terminal-orders-list-filters.js +8 -9
  504. package/dist/module/justifi-terminal-orders-list.js +13 -11
  505. package/dist/module/justifi-terminals-list-filters.js +6 -8
  506. package/dist/module/justifi-terminals-list.js +8 -11
  507. package/dist/module/justifi-tokenize-payment-method.js +46 -58
  508. package/dist/module/legal-address-details2.js +1 -2
  509. package/dist/module/legal-address-form-step-core.js +6 -10
  510. package/dist/module/legal-address-form-step.js +1 -6
  511. package/dist/module/legal-address-form.js +1 -3
  512. package/dist/module/lodash.js +17201 -17191
  513. package/dist/module/new-payment-method.js +43 -55
  514. package/dist/module/owner-details2.js +0 -1
  515. package/dist/module/owner-form-core2.js +8 -18
  516. package/dist/module/owner-form-inputs2.js +1 -4
  517. package/dist/module/owner-form.js +1 -11
  518. package/dist/module/package.js +3 -77
  519. package/dist/module/pagination-menu2.js +1 -1
  520. package/dist/module/parts.js +3 -2
  521. package/dist/module/payment-details-core2.js +11 -13
  522. package/dist/module/payment-method-options.js +43 -61
  523. package/dist/module/payment-provisioning-actions.js +2 -2
  524. package/dist/module/payment-provisioning-core.js +8 -14
  525. package/dist/module/payment-provisioning-form-buttons.js +2 -8
  526. package/dist/module/payment-provisioning-form-steps.js +2 -7
  527. package/dist/module/payment.service.js +8 -4
  528. package/dist/module/payments-list-core2.js +10 -14
  529. package/dist/module/payout-details-core2.js +6 -9
  530. package/dist/module/payout.service.js +32 -0
  531. package/dist/module/payouts-list-core2.js +14 -20
  532. package/dist/module/product-or-service.js +5 -7
  533. package/dist/module/refund-policy.js +6 -8
  534. package/dist/module/representative-details2.js +0 -1
  535. package/dist/module/saved-payment-method.js +4 -6
  536. package/dist/module/schema-validations.js +2 -2
  537. package/dist/module/season-interruption-insurance-core.js +4 -20
  538. package/dist/module/sezzle-payment-method.js +3 -12
  539. package/dist/module/shipping-details.js +6 -8
  540. package/dist/module/spinner.js +1 -1
  541. package/dist/module/styled-host.js +1 -2
  542. package/dist/module/table-filters-menu2.js +3 -7
  543. package/dist/module/terminal-orders-list-core2.js +35 -15
  544. package/dist/module/terminal-quantity-selector2.js +4 -8
  545. package/dist/module/terminal.service.js +5 -5
  546. package/dist/module/terminals-list-core2.js +12 -17
  547. package/dist/module/utils.js +1 -1
  548. package/dist/module/utils2.js +23787 -3819
  549. package/dist/module/utils4.js +2 -2
  550. package/dist/types/actions/payment/get-payment-details.d.ts +4 -2
  551. package/dist/types/actions/payment/get-payment-transactions.d.ts +11 -0
  552. package/dist/types/actions/payout/get-payout-transactions.d.ts +10 -0
  553. package/dist/types/actions/refund/refund-actions.d.ts +12 -0
  554. package/dist/types/api/Api.d.ts +30 -5
  555. package/dist/types/api/ComponentError.d.ts +2 -1
  556. package/dist/types/api/Payment.d.ts +1 -11
  557. package/dist/types/api/PaymentBalanceTransaction.d.ts +42 -0
  558. package/dist/types/api/PayoutBalanceTransaction.d.ts +46 -0
  559. package/dist/types/api/Refund.d.ts +45 -0
  560. package/dist/types/api/TerminalOrder.d.ts +4 -1
  561. package/dist/types/api/index.d.ts +3 -0
  562. package/dist/types/api/services/payment.service.d.ts +4 -2
  563. package/dist/types/api/services/payout.service.d.ts +3 -1
  564. package/dist/types/api/services/refund.service.d.ts +7 -0
  565. package/dist/types/components/business-forms/payment-provisioning/form-control-monetary-provisioning.d.ts +1 -1
  566. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +3 -3
  567. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +1 -1
  568. package/dist/types/components/checkout/{billing-forms → billing-form}/billing-form-schema.d.ts +1 -11
  569. package/dist/types/components/checkout/{billing-forms/billing-form → billing-form}/billing-form.d.ts +8 -6
  570. package/dist/types/components/checkout/checkout-core.d.ts +6 -2
  571. package/dist/types/components/checkout/checkout.d.ts +6 -2
  572. package/dist/types/components/checkout/new-payment-method.d.ts +7 -3
  573. package/dist/types/components/checkout/payment-method-options.d.ts +6 -2
  574. package/dist/types/components/payment-details/payment-details.d.ts +1 -0
  575. package/dist/types/components/payment-transactions-list/payment-transactions-list.d.ts +32 -0
  576. package/dist/types/components/payment-transactions-list/payment-transactions-table.d.ts +43 -0
  577. package/dist/types/components/payout-transactions-list/payout-transactions-list.d.ts +33 -0
  578. package/dist/types/components/payout-transactions-list/payout-transactions-table.d.ts +45 -0
  579. package/dist/types/components/refund-payment/refund-loading.d.ts +1 -0
  580. package/dist/types/components/refund-payment/refund-payment-schema.d.ts +6 -6
  581. package/dist/types/components/refund-payment/refund-payment.d.ts +18 -12
  582. package/dist/types/components/terminal-orders-list/terminal-orders-list-filters.d.ts +1 -1
  583. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +4 -0
  584. package/dist/types/components.d.ts +123 -74
  585. package/dist/types/stencil-public-runtime.d.ts +28 -0
  586. package/dist/types/styles/parts.d.ts +6 -5
  587. package/dist/types/ui-components/form/form-control-monetary.d.ts +1 -1
  588. package/dist/types/utils/utils.d.ts +1 -0
  589. package/dist/webcomponents/p-009c6766.entry.js +1 -0
  590. package/dist/webcomponents/p-048ed3f0.entry.js +1 -0
  591. package/dist/webcomponents/p-0764cfde.entry.js +1 -0
  592. package/dist/webcomponents/p-08dcbb41.entry.js +1 -0
  593. package/dist/webcomponents/p-0b0e44c4.entry.js +1 -0
  594. package/dist/webcomponents/p-0b1bbf91.entry.js +1 -0
  595. package/dist/webcomponents/p-0c9c8d6f.entry.js +1 -0
  596. package/dist/webcomponents/p-103692ef.entry.js +1 -0
  597. package/dist/webcomponents/p-103deee0.entry.js +1 -0
  598. package/dist/webcomponents/p-10ad134d.entry.js +1 -0
  599. package/dist/webcomponents/p-175a913f.entry.js +1 -0
  600. package/dist/webcomponents/p-1c2bedfe.entry.js +1 -0
  601. package/dist/webcomponents/p-1ydcg9ti.js +1 -0
  602. package/dist/webcomponents/p-36656ed1.entry.js +1 -0
  603. package/dist/webcomponents/p-3678f5fb.entry.js +1 -0
  604. package/dist/webcomponents/p-3b1f69fd.entry.js +1 -0
  605. package/dist/webcomponents/p-405f135e.entry.js +1 -0
  606. package/dist/webcomponents/p-40614f67.entry.js +1 -0
  607. package/dist/webcomponents/p-41a0b83c.entry.js +1 -0
  608. package/dist/webcomponents/p-4361ae88.entry.js +1 -0
  609. package/dist/webcomponents/p-487514c2.entry.js +1 -0
  610. package/dist/webcomponents/p-4994c980.entry.js +1 -0
  611. package/dist/webcomponents/p-4c4cc0ad.entry.js +20 -0
  612. package/dist/webcomponents/p-4d5b8876.entry.js +1 -0
  613. package/dist/webcomponents/p-529bf046.entry.js +1 -0
  614. package/dist/webcomponents/p-5321c7d5.entry.js +1 -0
  615. package/dist/webcomponents/p-54aa7e86.entry.js +1 -0
  616. package/dist/webcomponents/p-5aeOUdhX.js +1 -0
  617. package/dist/webcomponents/p-601669bb.entry.js +1 -0
  618. package/dist/webcomponents/p-63c835b9.entry.js +1 -0
  619. package/dist/webcomponents/p-656ec7b6.entry.js +1 -0
  620. package/dist/webcomponents/p-6ctk_bhj.js +1 -0
  621. package/dist/webcomponents/p-6d36d6a7.entry.js +1 -0
  622. package/dist/webcomponents/p-76e7c283.entry.js +1 -0
  623. package/dist/webcomponents/p-81a1be23.entry.js +1 -0
  624. package/dist/webcomponents/p-81d682ba.entry.js +1 -0
  625. package/dist/webcomponents/p-85681d97.entry.js +1 -0
  626. package/dist/webcomponents/p-88539215.entry.js +1 -0
  627. package/dist/webcomponents/p-896e4fb2.entry.js +1 -0
  628. package/dist/webcomponents/p-8bc32c27.entry.js +1 -0
  629. package/dist/webcomponents/p-8d4d2ac3.entry.js +1 -0
  630. package/dist/webcomponents/p-9349d32e.entry.js +1 -0
  631. package/dist/webcomponents/p-938e0dbc.entry.js +1 -0
  632. package/dist/webcomponents/p-94d81903.entry.js +1 -0
  633. package/dist/webcomponents/p-9767500b.entry.js +1 -0
  634. package/dist/webcomponents/p-9cf5ed80.entry.js +1 -0
  635. package/dist/webcomponents/p-AVaenhw9.js +1 -0
  636. package/dist/webcomponents/p-B2H14Naw.js +1 -0
  637. package/dist/webcomponents/p-B4iBNBBM.js +1 -0
  638. package/dist/webcomponents/p-BAXE_ZfF.js +1 -0
  639. package/dist/webcomponents/p-BBsCnePk.js +1 -0
  640. package/dist/webcomponents/p-BFTU3MAI.js +1 -0
  641. package/dist/webcomponents/p-BHbsXXRt.js +1 -0
  642. package/dist/webcomponents/p-BLdGqrQH.js +1 -0
  643. package/dist/webcomponents/p-BODr6HXb.js +1 -0
  644. package/dist/webcomponents/p-Bde7dY9t.js +9 -0
  645. package/dist/webcomponents/{p-1366a019.js → p-BjB_yKBJ.js} +1 -1
  646. package/dist/webcomponents/p-BoPxMyJA.js +1 -0
  647. package/dist/webcomponents/{p-5d1d2fd7.js → p-BrvbVMVq.js} +1 -1
  648. package/dist/webcomponents/p-BupmNfQ5.js +1 -0
  649. package/dist/webcomponents/p-BvWS8buZ.js +1 -0
  650. package/dist/webcomponents/{p-ca6cdfe6.js → p-BwgcVN7d.js} +1 -1
  651. package/dist/webcomponents/p-BxGoUIgN.js +1 -0
  652. package/dist/webcomponents/{p-3f5e6602.js → p-Bxs6fi7a.js} +1 -1
  653. package/dist/webcomponents/p-C3uv9u0l.js +1 -0
  654. package/dist/webcomponents/{p-87f8c596.js → p-C5RuuShs.js} +1 -1
  655. package/dist/webcomponents/p-CCN8wTYX.js +1 -0
  656. package/dist/webcomponents/p-CG9te8PM.js +1 -0
  657. package/dist/webcomponents/p-CGz3XHQc.js +1 -0
  658. package/dist/webcomponents/p-CRgzzPY4.js +1 -0
  659. package/dist/webcomponents/p-CZLIteZz.js +1 -0
  660. package/dist/webcomponents/p-C_9TcvwA.js +1 -0
  661. package/dist/webcomponents/p-CbZjB3qJ.js +1 -0
  662. package/dist/webcomponents/p-CfbB7agn.js +1 -0
  663. package/dist/webcomponents/{p-4cc3c7f9.js → p-CgS6VBEy.js} +1 -1
  664. package/dist/webcomponents/p-CpTwq2jw.js +1 -0
  665. package/dist/webcomponents/{p-61f0a2ce.js → p-Ct-uNz2r.js} +1 -1
  666. package/dist/webcomponents/p-Cy4aIACq.js +1 -0
  667. package/dist/webcomponents/p-D4-FKsCU.js +2 -0
  668. package/dist/webcomponents/{p-12074378.js → p-D5q9gEvl.js} +1 -1
  669. package/dist/webcomponents/p-D5wGYrfz.js +1 -0
  670. package/dist/webcomponents/{p-701a13ca.js → p-D6mhG0dV.js} +1 -1
  671. package/dist/webcomponents/p-DArbkdtn.js +1 -0
  672. package/dist/webcomponents/{p-a5579f53.js → p-DBfKxfCX.js} +1 -1
  673. package/dist/webcomponents/p-DEa8EbZW.js +1 -0
  674. package/dist/webcomponents/p-DGWLSvML.js +1 -0
  675. package/dist/webcomponents/p-DPC4A7AZ.js +1 -0
  676. package/dist/webcomponents/p-DVnVdicA.js +1 -0
  677. package/dist/webcomponents/p-DavDfnxI.js +1 -0
  678. package/dist/webcomponents/{p-70be104e.js → p-DgQyL5KO.js} +1 -1
  679. package/dist/webcomponents/p-DmBEzYCU.js +1 -0
  680. package/dist/webcomponents/p-Dt-vy9Le.js +1 -0
  681. package/dist/webcomponents/p-EbYREopN.js +1 -0
  682. package/dist/webcomponents/{p-c9b78275.js → p-IA90llLO.js} +1 -1
  683. package/dist/webcomponents/p-NI7Keg2H.js +1 -0
  684. package/dist/webcomponents/{p-9dd8685c.js → p-SdntD1xf.js} +1 -1
  685. package/dist/webcomponents/p-XazJ9qLe.js +1 -0
  686. package/dist/webcomponents/p-Xql8Xhsx.js +1 -0
  687. package/dist/webcomponents/p-a4e7d24f.entry.js +1 -0
  688. package/dist/webcomponents/p-a78bf0f7.entry.js +1 -0
  689. package/dist/webcomponents/p-a83bf2c0.entry.js +1 -0
  690. package/dist/webcomponents/p-b15d6c77.entry.js +1 -0
  691. package/dist/webcomponents/p-b5dd55b1.entry.js +1 -0
  692. package/dist/webcomponents/p-b8096d2b.entry.js +1 -0
  693. package/dist/webcomponents/p-bbc56c17.entry.js +1 -0
  694. package/dist/webcomponents/p-bc3d56a7.entry.js +1 -0
  695. package/dist/webcomponents/p-bf83ba04.entry.js +1 -0
  696. package/dist/webcomponents/p-bplwtwD3.js +1 -0
  697. package/dist/webcomponents/p-c5b66da3.entry.js +1 -0
  698. package/dist/webcomponents/p-c7dc7184.entry.js +1 -0
  699. package/dist/webcomponents/p-cb8b91ea.entry.js +1 -0
  700. package/dist/webcomponents/p-d7ea4db7.entry.js +1 -0
  701. package/dist/webcomponents/p-dadb97e1.entry.js +1 -0
  702. package/dist/webcomponents/p-dafac427.entry.js +1 -0
  703. package/dist/webcomponents/p-dca205de.entry.js +1 -0
  704. package/dist/webcomponents/p-df3fb523.entry.js +1 -0
  705. package/dist/webcomponents/p-f-9W4QBD.js +1 -0
  706. package/dist/webcomponents/p-f604d6ea.entry.js +1 -0
  707. package/dist/webcomponents/p-ffbf35a4.entry.js +1 -0
  708. package/dist/webcomponents/{p-bfe9748b.js → p-lvlr3zXn.js} +1 -1
  709. package/dist/webcomponents/p-obi7kkCX.js +1 -0
  710. package/dist/webcomponents/webcomponents.esm.js +1 -1
  711. package/package.json +6 -7
  712. package/dist/cjs/Api-83d93333.js +0 -118
  713. package/dist/cjs/billing-form_3.cjs.entry.js +0 -1733
  714. package/dist/cjs/get-payout-csv-7607c71e.js +0 -49
  715. package/dist/cjs/index.esm-544c08fd.js +0 -2937
  716. package/dist/cjs/lodash-dbf6a6a4.js +0 -17206
  717. package/dist/cjs/package-5a9f02b2.js +0 -83
  718. package/dist/cjs/payment.service-537e049d.js +0 -23
  719. package/dist/cjs/terminals-list-params-state-236f06f6.js +0 -22
  720. package/dist/cjs/utils-4120664c.js +0 -4018
  721. package/dist/collection/components/checkout/billing-forms/billing-form/billing-form.js +0 -137
  722. package/dist/collection/components/checkout/billing-forms/billing-form-schema.js +0 -26
  723. package/dist/collection/components/checkout/billing-forms/billing-form-wrapper.js +0 -183
  724. package/dist/collection/components/checkout/billing-forms/postal-form/postal-form.js +0 -136
  725. package/dist/esm/Api-52242eb0.js +0 -116
  726. package/dist/esm/billing-form_3.entry.js +0 -1727
  727. package/dist/esm/get-payout-csv-fa34f40b.js +0 -46
  728. package/dist/esm/index.esm-feedf26f.js +0 -2931
  729. package/dist/esm/lodash-faeb5a52.js +0 -17204
  730. package/dist/esm/package-c8466624.js +0 -81
  731. package/dist/esm/payment.service-af5bd8be.js +0 -21
  732. package/dist/esm/terminals-list-params-state-e4b2ec23.js +0 -16
  733. package/dist/esm/utils-ec50661e.js +0 -4001
  734. package/dist/loader/package.json +0 -11
  735. package/dist/module/billing-form-schema.js +0 -16
  736. package/dist/module/billing-form-wrapper.js +0 -114
  737. package/dist/module/billing-form2.js +0 -90
  738. package/dist/module/justifi-billing-form-wrapper.d.ts +0 -11
  739. package/dist/module/justifi-billing-form-wrapper.js +0 -6
  740. package/dist/module/postal-form.d.ts +0 -11
  741. package/dist/module/postal-form.js +0 -6
  742. package/dist/module/postal-form2.js +0 -83
  743. package/dist/types/components/checkout/billing-forms/billing-form-wrapper.d.ts +0 -19
  744. package/dist/types/components/checkout/billing-forms/postal-form/postal-form.d.ts +0 -20
  745. package/dist/webcomponents/p-01033194.js +0 -1
  746. package/dist/webcomponents/p-04d6b37e.entry.js +0 -1
  747. package/dist/webcomponents/p-092515e0.js +0 -1
  748. package/dist/webcomponents/p-0b61d4d3.entry.js +0 -1
  749. package/dist/webcomponents/p-0c7ec110.entry.js +0 -1
  750. package/dist/webcomponents/p-0f0020e1.entry.js +0 -1
  751. package/dist/webcomponents/p-0fa216eb.entry.js +0 -1
  752. package/dist/webcomponents/p-1361d8eb.entry.js +0 -1
  753. package/dist/webcomponents/p-13717638.entry.js +0 -1
  754. package/dist/webcomponents/p-142bfae3.js +0 -1
  755. package/dist/webcomponents/p-1cfa5df9.entry.js +0 -1
  756. package/dist/webcomponents/p-1ff8810b.js +0 -1
  757. package/dist/webcomponents/p-2123c150.js +0 -1
  758. package/dist/webcomponents/p-21def20b.entry.js +0 -1
  759. package/dist/webcomponents/p-23cd76af.entry.js +0 -1
  760. package/dist/webcomponents/p-25b82529.entry.js +0 -1
  761. package/dist/webcomponents/p-27546fa9.entry.js +0 -1
  762. package/dist/webcomponents/p-275c3dc9.js +0 -1
  763. package/dist/webcomponents/p-2783e363.js +0 -2
  764. package/dist/webcomponents/p-290fa30d.entry.js +0 -1
  765. package/dist/webcomponents/p-2a9d7f6b.js +0 -1
  766. package/dist/webcomponents/p-2aad7e3b.entry.js +0 -1
  767. package/dist/webcomponents/p-2b8aaa7d.entry.js +0 -1
  768. package/dist/webcomponents/p-3075b7e1.entry.js +0 -1
  769. package/dist/webcomponents/p-31dcaeaf.entry.js +0 -1
  770. package/dist/webcomponents/p-35c296fc.entry.js +0 -1
  771. package/dist/webcomponents/p-373a19fe.entry.js +0 -1
  772. package/dist/webcomponents/p-375657fe.entry.js +0 -1
  773. package/dist/webcomponents/p-3cc7527a.entry.js +0 -1
  774. package/dist/webcomponents/p-3cf317d3.entry.js +0 -1
  775. package/dist/webcomponents/p-407d6d29.entry.js +0 -1
  776. package/dist/webcomponents/p-4451de8d.entry.js +0 -1
  777. package/dist/webcomponents/p-4f7432c3.entry.js +0 -1
  778. package/dist/webcomponents/p-536497fe.entry.js +0 -1
  779. package/dist/webcomponents/p-536fb8e2.js +0 -1
  780. package/dist/webcomponents/p-537bce77.js +0 -1
  781. package/dist/webcomponents/p-54556fc6.js +0 -1
  782. package/dist/webcomponents/p-56c7fc8d.js +0 -1
  783. package/dist/webcomponents/p-58ee6ce9.js +0 -1
  784. package/dist/webcomponents/p-5a541d35.js +0 -1
  785. package/dist/webcomponents/p-5a9d7ca0.entry.js +0 -1
  786. package/dist/webcomponents/p-5b76dbe1.entry.js +0 -1
  787. package/dist/webcomponents/p-5f6b4bc9.js +0 -1
  788. package/dist/webcomponents/p-645db2cb.entry.js +0 -1
  789. package/dist/webcomponents/p-673c1bca.js +0 -1
  790. package/dist/webcomponents/p-753d983c.entry.js +0 -1
  791. package/dist/webcomponents/p-76549a24.js +0 -1
  792. package/dist/webcomponents/p-7d85af5c.js +0 -1
  793. package/dist/webcomponents/p-7e8732f7.entry.js +0 -1
  794. package/dist/webcomponents/p-81a6c3e2.entry.js +0 -1
  795. package/dist/webcomponents/p-829480e7.entry.js +0 -1
  796. package/dist/webcomponents/p-86605101.js +0 -1
  797. package/dist/webcomponents/p-87a4fb5b.js +0 -1
  798. package/dist/webcomponents/p-927cb6df.js +0 -1
  799. package/dist/webcomponents/p-94e4f1f1.entry.js +0 -1
  800. package/dist/webcomponents/p-96c23cda.entry.js +0 -1
  801. package/dist/webcomponents/p-9a9732e1.js +0 -1
  802. package/dist/webcomponents/p-9fecad5a.js +0 -1
  803. package/dist/webcomponents/p-a3cced75.entry.js +0 -1
  804. package/dist/webcomponents/p-a5f5cc2e.entry.js +0 -1
  805. package/dist/webcomponents/p-a8c69f51.entry.js +0 -1
  806. package/dist/webcomponents/p-ab45511e.js +0 -1
  807. package/dist/webcomponents/p-ad713ab6.entry.js +0 -1
  808. package/dist/webcomponents/p-adecb91a.entry.js +0 -1
  809. package/dist/webcomponents/p-ae7edce5.js +0 -1
  810. package/dist/webcomponents/p-ae891abb.entry.js +0 -1
  811. package/dist/webcomponents/p-af3315b5.entry.js +0 -1
  812. package/dist/webcomponents/p-b218af87.entry.js +0 -1
  813. package/dist/webcomponents/p-b50ca848.entry.js +0 -1
  814. package/dist/webcomponents/p-b84ee6d8.js +0 -1
  815. package/dist/webcomponents/p-b8664571.entry.js +0 -1
  816. package/dist/webcomponents/p-bb4b3f79.entry.js +0 -1
  817. package/dist/webcomponents/p-beec0b60.js +0 -1
  818. package/dist/webcomponents/p-bf12999f.js +0 -1
  819. package/dist/webcomponents/p-bf195b35.js +0 -1
  820. package/dist/webcomponents/p-bfc2d88a.js +0 -1
  821. package/dist/webcomponents/p-c6be72b0.js +0 -10
  822. package/dist/webcomponents/p-c8b78136.js +0 -1
  823. package/dist/webcomponents/p-cbad44b7.js +0 -1
  824. package/dist/webcomponents/p-cc2f75a3.entry.js +0 -1
  825. package/dist/webcomponents/p-ccb9ee53.js +0 -1
  826. package/dist/webcomponents/p-cd93c62b.entry.js +0 -19
  827. package/dist/webcomponents/p-d757fcf5.js +0 -1
  828. package/dist/webcomponents/p-dbc1a95b.js +0 -1
  829. package/dist/webcomponents/p-dd2938d3.entry.js +0 -1
  830. package/dist/webcomponents/p-de03d0f8.js +0 -1
  831. package/dist/webcomponents/p-dec18cc4.js +0 -1
  832. package/dist/webcomponents/p-e1ae5e80.entry.js +0 -1
  833. package/dist/webcomponents/p-e3855f51.entry.js +0 -1
  834. package/dist/webcomponents/p-e73be1b9.entry.js +0 -1
  835. package/dist/webcomponents/p-e9867f8b.entry.js +0 -1
  836. package/dist/webcomponents/p-ef1db3da.entry.js +0 -1
  837. package/dist/webcomponents/p-f13b2991.entry.js +0 -1
  838. package/dist/webcomponents/p-f20466f7.entry.js +0 -1
  839. package/dist/webcomponents/p-f20b6ce1.js +0 -1
  840. package/dist/webcomponents/p-f4739d31.js +0 -1
  841. package/dist/webcomponents/p-f4aeb100.js +0 -1
  842. package/dist/webcomponents/p-f8fccf44.js +0 -1
  843. package/dist/webcomponents/p-f930504f.entry.js +0 -1
  844. package/dist/webcomponents/p-faa35b47.entry.js +0 -1
  845. package/dist/webcomponents/p-fb2db8da.entry.js +0 -1
  846. package/dist/webcomponents/p-fca89e9b.entry.js +0 -1
  847. /package/dist/cjs/{Dispute-eb6bad54.js → Dispute-CruQTF6_.js} +0 -0
  848. /package/dist/cjs/{Document-0b828345.js → Document-rXGBUaOh.js} +0 -0
  849. /package/dist/cjs/{Pagination-0da8f095.js → Pagination-Dediz133.js} +0 -0
  850. /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
  851. /package/dist/cjs/{event-types-8edaabbb.js → event-types-BWQT2lwu.js} +0 -0
  852. /package/dist/cjs/{event-types-180a85a9.js → event-types-DNOUef41.js} +0 -0
  853. /package/dist/cjs/{form-input-masks-0879c139.js → form-input-masks-DgXd0f4V.js} +0 -0
  854. /package/dist/cjs/{state-options-4fbcb48a.js → state-options-CIT9xdTz.js} +0 -0
  855. /package/dist/cjs/{utils-bc03ca40.js → utils-DAyWinG2.js} +0 -0
  856. /package/dist/esm/{Dispute-5fd28ec9.js → Dispute-7MWRbTXI.js} +0 -0
  857. /package/dist/esm/{Pagination-afc8f96d.js → Pagination-CLHwhyvu.js} +0 -0
  858. /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
  859. /package/dist/esm/{event-types-07cdb9a0.js → event-types-Bg2SZArf.js} +0 -0
  860. /package/dist/esm/{event-types-5c87de02.js → event-types-XYgDHrVL.js} +0 -0
  861. /package/dist/esm/{form-input-masks-0e18300f.js → form-input-masks-B-iV5cYd.js} +0 -0
  862. /package/dist/esm/{state-options-a356fb11.js → state-options-BX8GieXu.js} +0 -0
  863. /package/dist/esm/{utils-20cdf321.js → utils-BnjCmwMr.js} +0 -0
  864. /package/dist/webcomponents/{p-abdbcd8e.js → p-7MWRbTXI.js} +0 -0
  865. /package/dist/webcomponents/{p-525db3e8.js → p-B-iV5cYd.js} +0 -0
  866. /package/dist/webcomponents/{p-6078a370.js → p-BX8GieXu.js} +0 -0
  867. /package/dist/webcomponents/{p-667ebd79.js → p-Bg2SZArf.js} +0 -0
  868. /package/dist/webcomponents/{p-e3c22aa9.js → p-BnjCmwMr.js} +0 -0
  869. /package/dist/webcomponents/{p-56f6ce4c.js → p-CLHwhyvu.js} +0 -0
  870. /package/dist/webcomponents/{p-1ad5995e.js → p-Ce_F4E0f.js} +0 -0
  871. /package/dist/webcomponents/{p-e1255160.js → p-DQuL1Twl.js} +0 -0
  872. /package/dist/webcomponents/{p-73f9be7c.js → p-XYgDHrVL.js} +0 -0
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as n,H as i,g as r}from"./p-2783e363.js";import{l as o,c as a,b as s,$ as f,a as c,ak as u,al as h,am as l}from"./p-bf195b35.js";import{F as d}from"./p-dbc1a95b.js";var p="top",v="bottom",b="right",m="left",y="auto",x=[p,v,b,m],g="start",w="end",O="clippingParents",j="viewport",k="popper",M="reference",C=x.reduce((function(t,e){return t.concat([e+"-"+g,e+"-"+w])}),[]),B=[].concat(x,[y]).reduce((function(t,e){return t.concat([e,e+"-"+g,e+"-"+w])}),[]),E=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function q(t){return t?(t.nodeName||"").toLowerCase():null}function D(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function L(t){return t instanceof D(t).Element||t instanceof Element}function T(t){return t instanceof D(t).HTMLElement||t instanceof HTMLElement}function V(t){return"undefined"!=typeof ShadowRoot&&(t instanceof D(t).ShadowRoot||t instanceof ShadowRoot)}function A(t){return t.split("-")[0]}var I=Math.max,P=Math.min,_=Math.round;function R(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function F(){return!/^((?!chrome|android).)*safari/i.test(R())}function H(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),r=1,o=1;e&&T(t)&&(r=t.offsetWidth>0&&_(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&_(i.height)/t.offsetHeight||1);var a=(L(t)?D(t):window).visualViewport,s=!F()&&n,f=(i.left+(s&&a?a.offsetLeft:0))/r,c=(i.top+(s&&a?a.offsetTop:0))/o,u=i.width/r,h=i.height/o;return{width:u,height:h,top:c,right:f+u,bottom:c+h,left:f,x:f,y:c}}function S(t){var e=H(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function W(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&V(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function z(t){return D(t).getComputedStyle(t)}function K(t){return["table","td","th"].indexOf(q(t))>=0}function U(t){return((L(t)?t.ownerDocument:t.document)||window.document).documentElement}function $(t){return"html"===q(t)?t:t.assignedSlot||t.parentNode||(V(t)?t.host:null)||U(t)}function G(t){return T(t)&&"fixed"!==z(t).position?t.offsetParent:null}function J(t){for(var e=D(t),n=G(t);n&&K(n)&&"static"===z(n).position;)n=G(n);return n&&("html"===q(n)||"body"===q(n)&&"static"===z(n).position)?e:n||function(t){var e=/firefox/i.test(R());if(/Trident/i.test(R())&&T(t)&&"fixed"===z(t).position)return null;var n=$(t);for(V(n)&&(n=n.host);T(n)&&["html","body"].indexOf(q(n))<0;){var i=z(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function N(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Q(t,e,n){return I(t,P(e,n))}function X(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Y(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function Z(t){return t.split("-")[1]}var tt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function et(t){var e,n=t.popper,i=t.popperRect,r=t.placement,o=t.variation,a=t.offsets,s=t.position,f=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,h=t.isFixed,l=a.x,d=void 0===l?0:l,y=a.y,x=void 0===y?0:y,g="function"==typeof u?u({x:d,y:x}):{x:d,y:x};d=g.x,x=g.y;var O=a.hasOwnProperty("x"),j=a.hasOwnProperty("y"),k=m,M=p,C=window;if(c){var B=J(n),E="clientHeight",q="clientWidth";B===D(n)&&"static"!==z(B=U(n)).position&&"absolute"===s&&(E="scrollHeight",q="scrollWidth"),(r===p||(r===m||r===b)&&o===w)&&(M=v,x-=(h&&B===C&&C.visualViewport?C.visualViewport.height:B[E])-i.height,x*=f?1:-1),r!==m&&(r!==p&&r!==v||o!==w)||(k=b,d-=(h&&B===C&&C.visualViewport?C.visualViewport.width:B[q])-i.width,d*=f?1:-1)}var L,T=Object.assign({position:s},c&&tt),V=!0===u?function(t,e){var n=t.y,i=e.devicePixelRatio||1;return{x:_(t.x*i)/i||0,y:_(n*i)/i||0}}({x:d,y:x},D(n)):{x:d,y:x};return d=V.x,x=V.y,Object.assign({},T,f?((L={})[M]=j?"0":"",L[k]=O?"0":"",L.transform=(C.devicePixelRatio||1)<=1?"translate("+d+"px, "+x+"px)":"translate3d("+d+"px, "+x+"px, 0)",L):((e={})[M]=j?x+"px":"",e[k]=O?d+"px":"",e.transform="",e))}var nt={passive:!0},it={left:"right",right:"left",bottom:"top",top:"bottom"};function rt(t){return t.replace(/left|right|bottom|top/g,(function(t){return it[t]}))}var ot={start:"end",end:"start"};function at(t){return t.replace(/start|end/g,(function(t){return ot[t]}))}function st(t){var e=D(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ft(t){return H(U(t)).left+st(t).scrollLeft}function ct(t){var e=z(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function ut(t){return["html","body","#document"].indexOf(q(t))>=0?t.ownerDocument.body:T(t)&&ct(t)?t:ut($(t))}function ht(t,e){var n;void 0===e&&(e=[]);var i=ut(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),o=D(i),a=r?[o].concat(o.visualViewport||[],ct(i)?i:[]):i,s=e.concat(a);return r?s:s.concat(ht($(a)))}function lt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function dt(t,e,n){return e===j?lt(function(t,e){var n=D(t),i=U(t),r=n.visualViewport,o=i.clientWidth,a=i.clientHeight,s=0,f=0;if(r){o=r.width,a=r.height;var c=F();(c||!c&&"fixed"===e)&&(s=r.offsetLeft,f=r.offsetTop)}return{width:o,height:a,x:s+ft(t),y:f}}(t,n)):L(e)?function(t,e){var n=H(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):lt(function(t){var e,n=U(t),i=st(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=I(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=I(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+ft(t),f=-i.scrollTop;return"rtl"===z(r||n).direction&&(s+=I(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:f}}(U(t)))}function pt(t){var e,n=t.reference,i=t.element,r=t.placement,o=r?A(r):null,a=r?Z(r):null,s=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2;switch(o){case p:e={x:s,y:n.y-i.height};break;case v:e={x:s,y:n.y+n.height};break;case b:e={x:n.x+n.width,y:f};break;case m:e={x:n.x-i.width,y:f};break;default:e={x:n.x,y:n.y}}var c=o?N(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case g:e[c]=e[c]-(n[u]/2-i[u]/2);break;case w:e[c]=e[c]+(n[u]/2-i[u]/2)}}return e}function vt(t,e){void 0===e&&(e={});var n=e.placement,i=void 0===n?t.placement:n,r=e.strategy,o=void 0===r?t.strategy:r,a=e.boundary,s=void 0===a?O:a,f=e.rootBoundary,c=void 0===f?j:f,u=e.elementContext,h=void 0===u?k:u,l=e.altBoundary,d=void 0!==l&&l,m=e.padding,y=void 0===m?0:m,g=X("number"!=typeof y?y:Y(y,x)),w=t.rects.popper,C=t.elements[d?h===k?M:k:h],B=function(t,e,n,i){var r="clippingParents"===e?function(t){var e=ht($(t)),n=["absolute","fixed"].indexOf(z(t).position)>=0&&T(t)?J(t):t;return L(n)?e.filter((function(t){return L(t)&&W(t,n)&&"body"!==q(t)})):[]}(t):[].concat(e),o=[].concat(r,[n]),a=o.reduce((function(e,n){var r=dt(t,n,i);return e.top=I(r.top,e.top),e.right=P(r.right,e.right),e.bottom=P(r.bottom,e.bottom),e.left=I(r.left,e.left),e}),dt(t,o[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(L(C)?C:C.contextElement||U(t.elements.popper),s,c,o),E=H(t.elements.reference),D=pt({reference:E,element:w,strategy:"absolute",placement:i}),V=lt(Object.assign({},w,D)),A=h===k?V:E,_={top:B.top-A.top+g.top,bottom:A.bottom-B.bottom+g.bottom,left:B.left-A.left+g.left,right:A.right-B.right+g.right},R=t.modifiersData.offset;if(h===k&&R){var F=R[i];Object.keys(_).forEach((function(t){var e=[b,v].indexOf(t)>=0?1:-1,n=[p,v].indexOf(t)>=0?"y":"x";_[t]+=F[n]*e}))}return _}function bt(t,e){void 0===e&&(e={});var n=e.boundary,i=e.rootBoundary,r=e.padding,o=e.flipVariations,a=e.allowedAutoPlacements,s=void 0===a?B:a,f=Z(e.placement),c=f?o?C:C.filter((function(t){return Z(t)===f})):x,u=c.filter((function(t){return s.indexOf(t)>=0}));0===u.length&&(u=c);var h=u.reduce((function(e,o){return e[o]=vt(t,{placement:o,boundary:n,rootBoundary:i,padding:r})[A(o)],e}),{});return Object.keys(h).sort((function(t,e){return h[t]-h[e]}))}const mt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,u=n.boundary,h=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,x=void 0===d||d,w=n.allowedAutoPlacements,O=e.options.placement,j=A(O),k=f||(j!==O&&x?function(t){if(A(t)===y)return[];var e=rt(t);return[at(t),e,at(e)]}(O):[rt(O)]),M=[O].concat(k).reduce((function(t,n){return t.concat(A(n)===y?bt(e,{placement:n,boundary:u,rootBoundary:h,padding:c,flipVariations:x,allowedAutoPlacements:w}):n)}),[]),C=e.rects.reference,B=e.rects.popper,E=new Map,q=!0,D=M[0],L=0;L<M.length;L++){var T=M[L],V=A(T),I=Z(T)===g,P=[p,v].indexOf(V)>=0,_=P?"width":"height",R=vt(e,{placement:T,boundary:u,rootBoundary:h,altBoundary:l,padding:c}),F=P?I?b:m:I?v:p;C[_]>B[_]&&(F=rt(F));var H=rt(F),S=[];if(o&&S.push(R[V]<=0),s&&S.push(R[F]<=0,R[H]<=0),S.every((function(t){return t}))){D=T,q=!1;break}E.set(T,S)}if(q)for(var W=function(t){var e=M.find((function(e){var n=E.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return D=e,"break"},z=x?3:1;z>0&&"break"!==W(z);z--);e.placement!==D&&(e.modifiersData[i]._skip=!0,e.placement=D,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function yt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function xt(t){return[p,b,v,m].some((function(e){return t[e]>=0}))}function gt(t,e,n){void 0===n&&(n=!1);var i,r,o=T(e),a=T(e)&&function(t){var e=t.getBoundingClientRect(),n=_(e.width)/t.offsetWidth||1,i=_(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),s=U(e),f=H(t,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==q(e)||ct(s))&&(c=(i=e)!==D(i)&&T(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:st(i)),T(e)?((u=H(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=ft(s))),{x:f.left+c.scrollLeft-u.x,y:f.top+c.scrollTop-u.y,width:f.width,height:f.height}}function wt(t){var e=new Map,n=new Set,i=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&r(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),i}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function jt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function kt(t){void 0===t&&(t={});var e=t.defaultModifiers,n=void 0===e?[]:e,i=t.defaultOptions,r=void 0===i?Ot:i;return function(t,e,i){void 0===i&&(i=r);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},f=[],c=!1,u={state:s,setOptions:function(i){var o="function"==typeof i?i(s.options):i;h(),s.options=Object.assign({},r,s.options,o),s.scrollParents={reference:L(t)?ht(t):t.contextElement?ht(t.contextElement):[],popper:ht(e)};var a,c,l=function(t){var e=wt(t);return E.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((a=[].concat(n,s.options.modifiers),c=a.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return s.orderedModifiers=l.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.options,n=t.effect;if("function"==typeof n){var i=n({state:s,name:t.name,instance:u,options:void 0===e?{}:e});f.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var t=s.elements,e=t.reference,n=t.popper;if(jt(e,n)){s.rects={reference:gt(e,J(n),"fixed"===s.options.strategy),popper:S(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<s.orderedModifiers.length;i++)if(!0!==s.reset){var r=s.orderedModifiers[i],o=r.fn,a=r.options;"function"==typeof o&&(s=o({state:s,options:void 0===a?{}:a,name:r.name,instance:u})||s)}else s.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(t){u.forceUpdate(),t(s)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(o())}))}))),a}),destroy:function(){h(),c=!0}};if(!jt(t,e))return u;function h(){f.forEach((function(t){return t()})),f=[]}return u.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),u}}var Mt=kt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,r=i.scroll,o=void 0===r||r,a=i.resize,s=void 0===a||a,f=D(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",n.update,nt)})),s&&f.addEventListener("resize",n.update,nt),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",n.update,nt)})),s&&f.removeEventListener("resize",n.update,nt)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=pt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,f=void 0===s||s,c={placement:A(e.placement),variation:Z(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,et(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:f})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,et(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];T(r)&&q(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});T(i)&&q(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.name,i=t.options.offset,r=void 0===i?[0,0]:i,o=B.reduce((function(t,n){return t[n]=function(t,e,n){var i=A(t),r=[m,p].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[m,b].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,r),t}),{}),a=o[e.placement],s=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a.x,e.modifiersData.popperOffsets.y+=s),e.modifiersData[n]=o}},mt,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,f=n.tether,c=void 0===f||f,u=n.tetherOffset,h=void 0===u?0:u,l=vt(e,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),d=A(e.placement),y=Z(e.placement),x=!y,w=N(d),O="x"===w?"y":"x",j=e.modifiersData.popperOffsets,k=e.rects.reference,M=e.rects.popper,C="function"==typeof h?h(Object.assign({},e.rects,{placement:e.placement})):h,B="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,q={x:0,y:0};if(j){if(o){var D,L="y"===w?p:m,T="y"===w?v:b,V="y"===w?"height":"width",_=j[w],R=_+l[L],F=_-l[T],H=c?-M[V]/2:0,W=y===g?k[V]:M[V],z=y===g?-M[V]:-k[V],K=e.elements.arrow,U=c&&K?S(K):{width:0,height:0},$=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=$[L],X=$[T],Y=Q(0,k[V],U[V]),tt=x?k[V]/2-H-Y-G-B.mainAxis:W-Y-G-B.mainAxis,et=x?-k[V]/2+H+Y+X+B.mainAxis:z+Y+X+B.mainAxis,nt=e.elements.arrow&&J(e.elements.arrow),it=null!=(D=null==E?void 0:E[w])?D:0,rt=_+et-it,ot=Q(c?P(R,_+tt-it-(nt?"y"===w?nt.clientTop||0:nt.clientLeft||0:0)):R,_,c?I(F,rt):F);j[w]=ot,q[w]=ot-_}if(s){var at,st=j[O],ft="y"===O?"height":"width",ct=st+l["x"===w?p:m],ut=st-l["x"===w?v:b],ht=-1!==[p,m].indexOf(d),lt=null!=(at=null==E?void 0:E[O])?at:0,dt=ht?ct:st-k[ft]-M[ft]-lt+B.altAxis,pt=ht?st+k[ft]+M[ft]-lt-B.altAxis:ut,bt=c&&ht?function(t,e,n){var i=Q(t,e,n);return i>n?n:i}(dt,st,pt):Q(c?dt:ct,st,c?pt:ut);j[O]=bt,q[O]=bt-st}e.modifiersData[i]=q}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,r=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=A(n.placement),f=N(s),c=[m,b].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(t,e){return X("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Y(t,x))}(r.padding,n),h=S(o),l="y"===f?p:m,d="y"===f?v:b,y=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],g=a[f]-n.rects.reference[f],w=J(o),O=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0,j=O/2-h[c]/2+(y/2-g/2),k=Q(u[l],j,O-h[c]-u[d]);n.modifiersData[i]=((e={})[f]=k,e.centerOffset=k-j,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&W(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=vt(e,{elementContext:"reference"}),s=vt(e,{altBoundary:!0}),f=yt(a,i),c=yt(s,r,o),u=xt(f),h=xt(c);e.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}}]});const Ct=class{constructor(n){t(this,n),this.showEvent=e(this,"showEvent",7),this.hideEvent=e(this,"hideEvent",7),this.placement="bottom",this.offset=[0,10],this.strategy="absolute",this.trigger="click",this.anchorRef=void 0,this.isOpen=!1}componentDidLoad(){this.popperInstance=Mt(this.anchorRef,this.popperContentRef,this.popperOptions),"click"===this.trigger?window.addEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.addEventListener("mouseenter",this.show.bind(this)),this.anchorRef.addEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.addEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.addEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.addEventListener("focus",this.show.bind(this)),this.anchorRef.addEventListener("blur",this.hide.bind(this)))}disconnectedCallback(){"click"===this.trigger?window.removeEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.removeEventListener("mouseenter",this.show.bind(this)),this.anchorRef.removeEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.removeEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.removeEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.removeEventListener("focus",this.show.bind(this)),this.anchorRef.removeEventListener("blur",this.hide.bind(this)))}handleClick(t){const e=t.composedPath(),n=e.includes(this.anchorRef),i=e.includes(this.popperContentRef);!this.isOpen&&n?this.show():(this.isOpen&&!i||this.isOpen&&n)&&this.hide()}get popperOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset}}],strategy:this.strategy}}show(){this.isOpen=!0,this.popperContentRef.setAttribute("data-show",""),this.popperInstance.update(),this.showEvent.emit()}hide(){this.isOpen=!1,this.popperContentRef.removeAttribute("data-show"),this.popperInstance.update(),this.hideEvent.emit()}render(){return n("div",{key:"8c840ff88bde2fd2cb7be39772e2b49699d32844"},n("style",{key:"b5b1bd1fa8b6f6c76723d014bf96e2ee09fe60f4"},"\n .popper-content {\n display: none;\n }\n .popper-content[data-show] {\n display: block;\n z-index: 1030;\n }\n "),n("div",{key:"80b0e169b33d6679f372f0d34cd2320013485e10",class:"popper-content",ref:t=>this.popperContentRef=t},n("slot",{key:"4892f58a1fb5a98212f6b651f4cecc03ad7c84a2"})))}},Bt=class{constructor(n){t(this,n),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.handleFormControlInput=t=>{const e=t.target,n=e.getAttribute("name");this.inputHandler(n,e.value),this.formControlInput.emit(e.value)},this.updateInput=t=>{this.selectElement.value=t},this.isFocused=!1,this.name=void 0,this.label=void 0,this.options=void 0,this.inputHandler=void 0,this.defaultValue=void 0,this.helpText=void 0,this.errorText=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){let t=a;return this.errorText&&(t=s),this.disabled&&(t=f),this.isFocused&&(t=c),t}render(){var t;return n(i,{key:"af57c4172958175f90c0b4fc60c7a0b6c5f16b70"},n("div",{key:"96f1889ffdfd2501e0f598ef4d73634f88301f8d",class:"form-group d-flex flex-column"},n("div",{key:"3ad3e13eb068b829974d3a738a9ffd9432ea74bc",class:"d-flex align-items-start gap-2"},n("label",{key:"1effbf4eeb10922f49af14627aef2cee5ed2f23e",part:o,class:"form-label",htmlFor:this.name},this.label),n("form-control-tooltip",{key:"a1b9cb3152356f8e3d762b72dc8e7862183e925f",helpText:this.helpText})),n("select",{key:"d2cfee2048fc3f3f352f065d6c1979b617baf805",ref:t=>this.selectElement=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>n("option",{value:t.value},t.label)))),n(d,{key:"036090be3ce8ab66abe46395fae7d680c5730783",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},Et=class{constructor(n){t(this,n),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.handleFormControlInput=t=>{const e=t.target,n=e.getAttribute("name");this.inputHandler(n,e.value),this.formControlInput.emit({name:n,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("input");e&&(e.value=t||"")},this.isFocused=!1,this.name=void 0,this.label=void 0,this.inputHandler=void 0,this.defaultValue=void 0,this.helpText=void 0,this.errorText=void 0,this.maxLength=void 0,this.keyDownHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.errorText?s:this.disabled?f:this.isFocused?c:a}render(){return n(i,{key:"1dec875457354695f83386e1644e60590c12779e"},n("div",{key:"78f295fddd56b9696077ad3a2fcb766b9b6135bd",class:"form-group d-flex flex-column"},n("div",{key:"5c758bbca8097ec33596366638adff845f4f7b46",class:"d-flex align-items-start gap-2"},n("label",{key:"31576778adaf535b52584b1643e1cae3699e76c4",part:o,class:"form-label",htmlFor:this.name},this.label),n("form-control-tooltip",{key:"328deeda6bbedb37624aad6730d7dd3a9dcc0f1a",helpText:this.helpText})),n("input",{key:"ac141a2e464e1b0caf10c1434f03744c4e2c557c",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),n(d,{key:"2e826f44513b7f1c8a2eb40cf6141f3e34509ec7",errorText:this.errorText,name:this.name})))}get el(){return r(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},qt=class{constructor(e){t(this,e),this.anchorIcon=void 0,this.tooltip=void 0,this.helpText=void 0}show(){this.tooltip.classList.add("show")}hide(){this.tooltip.classList.remove("show")}render(){return this.helpText?n("div",{class:"tooltip-container"},n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-question-square tooltip-icon",viewBox:"0 0 16 16",ref:t=>this.anchorIcon=t,part:l},n("path",{d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"}),n("path",{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"})),n("custom-popper",{trigger:"hover",placement:"top",anchorRef:this.anchorIcon},n("div",{class:"tooltip bs-tooltip-top",part:u,role:"tooltip",ref:t=>this.tooltip=t},n("div",{class:"tooltip-inner",part:h},this.helpText)))):null}};export{Ct as custom_popper,Bt as form_control_select,Et as form_control_text,qt as form_control_tooltip}
@@ -1 +0,0 @@
1
- import{h as e,r as a,c as t}from"./p-2783e363.js";import{b as s,a as c,s as d}from"./p-f8fccf44.js";import{M as i}from"./p-a5579f53.js";import{a as f,b,D as l,c as h,C as r,E as o}from"./p-12074378.js";import{S as y}from"./p-bfe9748b.js";import{S as n}from"./p-56c7fc8d.js";import"./p-c8b78136.js";import"./p-bf195b35.js";const v=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(n,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(n,{width:"70%"})),e("div",{class:"col-12"},e(n,{width:"40%"})),e("div",{class:"col-12"},e(n,{width:"40%"})),e("div",{class:"col-12"},e(n,{width:"100%"})),e("div",{class:"col-12"},e(n,{width:"80%"}))),k=class{constructor(e){a(this,e),this.errorEvent=t(this,"error-event",7),this.getPaymentDetails=void 0,this.payment=void 0,this.loading=!0,this.errorMessage=void 0}componentWillLoad(){this.getPaymentDetails&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.loading=!1,this.errorMessage=null},onError:({error:e,code:a,severity:t})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:a,message:e,severity:t}),this.loading=!1}})}render(){return e(y,{key:"0c171f991fc4dcf840fe076bc116424cc3a87065"},this.loading&&e(v,{key:"a5de7e062c82839d908a47c631130a878a3f2d11"}),!this.loading&&this.errorMessage&&o(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"d215769880123434e0b6bcad24fc3cacc1a1c1c1","error-message":this.errorMessage},e(f,{key:"015128fa7779e3ffe2c8b533004e419451f688bd",slot:"head-info",badge:i(this.payment.status),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(b,{key:"2ba936ae059994f61b3a1ec9c7698e0ddda4f76f",classes:"border-1 border-end",title:"Updated At",value:`${s(this.payment.updated_at)} ${c(this.payment.updated_at)}`}),e(b,{key:"45adc7bad5275e26a4d3ad977fd26eb70992d60a",classes:"border-1 border-end",title:"Created At",value:`${s(this.payment.created_at)} ${c(this.payment.created_at)}`}),e(b,{key:"4ddb69de4cc522e38a0557b75260da508f8e7b53",title:"ID",value:this.payment.id})),e("div",{key:"47f2ce116914109f25c97419b2342f142e84870e",slot:"detail-sections"},e(l,{key:"a0e3ddeca8335c441b19b21666eaa8a2cb876ab9",sectionTitle:"Details"}),e("div",{key:"d284226522d77f14243fe1c01e4397a0e07acf79",class:"d-table gap-2 w-100"},e(h,{key:"43eea18419c944fbef79c3e22261430299e3c88c",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(h,{key:"fd1defcd7f3b1fb45fb2c196acf334025f691a49",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(h,{key:"00b9c31a516c9efabf0e9146b7f85e948334cec6",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(h,{key:"a3dbaadb65345af971ae2cbd7b9e2270c71ae5b0",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(h,{key:"93d874d02bed9ef2ff30be2f9da815c2364582ba",title:"Status",value:i(this.payment.status)}),e(h,{key:"51a2742e4895e74c07205253b96d28cd42ef9e93",title:"Payment ID",value:this.payment.id}),e(h,{key:"465262f8f448f1afd75b5e2f3f4f0d7d70aad7ca",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(h,{key:"5b0db9a8f2d96741568e4622cc7495868491226b",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(h,{key:"0643523eefc49aa046cbfc5802cce2070a25e299",title:"Description",value:this.payment.description})),this.payment.payment_method.card&&[e(l,{key:"c3d885b1be787a7800f1d36811647097264e7f26",sectionTitle:"Payment Method"}),e("div",{key:"da73b925ba2587e8dc1f860bd4d36dda55dd0d79",class:"d-table gap-2 w-100"},e(h,{key:"80410dd5c2de2cdb1f8dfc30fb514df972e30721",title:"ID",value:this.payment.payment_method.card.id}),e(h,{key:"57d05211be0fbddae3e69637d7936576c3fb745f",title:"Payment Type",value:"Card"}),e(h,{key:"35cae308ec9a99e3202bafe287e9bd08c2e6632d",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(h,{key:"9e3c757e1429a600ecf345c0a6cc1b275058c50e",title:"Brand",value:d(this.payment.payment_method.card.brand)}),e(h,{key:"3027147373d335045b62ca1a0c94b408e00de733",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(l,{key:"0506c560ebc7a95fea06a78a50b8589bf9efeca5",sectionTitle:"Payment Method"}),e("div",{key:"57e5656f56aacd0a85fe800a16c6937fef0a6ac1",class:"d-table gap-2 w-100"},e(h,{key:"0ec754633c7e3f676d87c74507f84736e745d119",title:"ID",value:this.payment.payment_method.bank_account.id}),e(h,{key:"4cd617f0ebb487021819cd44cc7bde54f9bbcf2f",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(h,{key:"bb0bf949bfbd774fa1167ff14f824de494e8930c",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(h,{key:"807e0e394ea92e44dd549c96d44911f76e1cf4d8",title:"Account Owner",value:this.payment.payment_method.payersName}))],e(l,{key:"44ac1f6ffd7a0c1dc0785c2cd035c21c6c064bf8",sectionTitle:"Metadata"}),e("div",{key:"3198fa94234aa237447862fd5b2e6f180d0b716a",class:"d-table gap-2 w-100"},e(r,{key:"68f75ac2b481f68de6999f2427cafb7debae55b7",metadata:this.payment.metadata})))))}static get watchers(){return{getPaymentDetails:["updateOnPropChange"]}}};export{k as payment_details_core}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s}from"./p-2783e363.js";import{e as i,f as r,g as a}from"./p-b84ee6d8.js";import{I as d}from"./p-76549a24.js";import{F as o}from"./p-01033194.js";import{O as h}from"./p-5d1d2fd7.js";import{i as c}from"./p-d757fcf5.js";import{B as n}from"./p-bfc2d88a.js";import{a1 as f}from"./p-bf195b35.js";import{B as l}from"./p-73f9be7c.js";import{S as b,P as m}from"./p-525db3e8.js";import{u,a as p,b as y}from"./p-7d85af5c.js";import"./p-9dd8685c.js";import"./p-87f8c596.js";import"./p-5f6b4bc9.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-bf12999f.js";import"./p-c9b78275.js";import"./p-61f0a2ce.js";const v=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event",7),this.getOwner=void 0,this.patchOwner=void 0,this.postOwner=void 0,this.authToken=void 0,this.ownerId=void 0,this.businessId=void 0,this.allowOptionalFields=void 0,this.removeOwner=void 0,this.newFormOpen=void 0,this.ownersLength=void 0}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:e}){this.coreComponent.validateAndSubmit({onSuccess:e})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=i({authToken:this.authToken,identityId:this.ownerId,service:new d}),this.patchOwner=r({authToken:this.authToken,identityId:this.ownerId,service:new d}),this.postOwner=a({authToken:this.authToken,service:new d}))}render(){return s("owner-form-core",{key:"253fc2c5cf1d8c3d18cbcc43569c50a1dd4394f4",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,ref:e=>this.coreComponent=e})}},k=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){e(this,s),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.ownerSubmitted=t(this,"ownerSubmitted",7),this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:e=>{this.instantiateOwner(e.data)},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({message:e,errorCode:t,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((e=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async e=>{this.owner=Object.assign({},new h(e)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?l.updateOwner:l.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:l.removeOwner})},this.isLoading=!1,this.formController=void 0,this.errors={},this.owner={},this.ownerId=void 0,this.businessId=void 0,this.getOwner=void 0,this.patchOwner=void 0,this.postOwner=void 0,this.allowOptionalFields=void 0,this.removeOwner=void 0,this.newFormOpen=void 0,this.ownersLength=void 0,this.validate=this.validate.bind(this),this.submit=this.submit.bind(this),this.validateAndSubmit=this.validateAndSubmit.bind(this)}async returnOwnerData(){return this.ownerId}async validate(){return this.formController.validate()}async submit(){if(await this.validate())return this.sendData()}async validateAndSubmit(e){e.preventDefault(),await this.validate()&&this.submit()}get payload(){let e=new h(this.formController.values.getValue()).payload;return this.ownerId?e:Object.assign(Object.assign({},e),{business_id:this.businessId})}get formTitle(){return this.ownerId?"Edit Business Owner":"Add Business Owner"}get submitButtonText(){return this.ownerId?"Update":"Add"}get showRemoveButton(){return!(this.ownersLength<=1)&&(!(this.ownerId||!this.newFormOpen)||!(!this.ownerId||this.newFormOpen)||void 0)}componentWillLoad(){this.formController=new o(c("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e)))}render(){return s("form",{key:"cf3b084a99c3cfc77af24f09feeda0468c2e6956",onSubmit:this.validateAndSubmit},s("fieldset",{key:"3c78499a7df3496cd44416b96fe5fef44cc4d393"},s("legend",{key:"5aee34b86e10d914964de3f62408b1f1e7899479",class:"fw-semibold fs-5",part:f},this.formTitle),s("br",{key:"4ca0d4c213f166f7ea10c0bfe276673ff077e1ba"}),s("div",{key:"95e485006a1111418ed409e7138c7f3098b9517c",class:"row gy-3"},s("owner-form-inputs",{key:"1df9b40c91223253394c50312950b6b3d42906ff",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController}),s("div",{key:"f1e2adc3111366c43a9a0d3cbed9e059916320f8",class:"d-flex gap-2 justify-content-start"},s(n,{key:"ea19095c86d12cdabd48ad8618213aa06635b80f",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(n,{key:"cb60a69f0e3252bb7623945610c5282bedfffe32",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"db9fb6f130a114e82de0fb806ca1d70ac254f032"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},w=class{constructor(t){e(this,t),this.inputHandler=(e,t)=>{u(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{p(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))},this.ownerDefaultValue=void 0,this.errors=void 0,this.formController=void 0}render(){return s("div",{key:"97911ef690cb7932c0e382cfa79fa3333536055c",class:"row gy-3"},s("div",{key:"0f15a832bcde62a50fb791e008dcd7da68c8da6b",class:"col-12 col-md-8"},s("form-control-text",{key:"fdc50a224e7e17d2923d6eb1fb274103e0d55710",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"c4be24670525f2b90fd6de5a0035241190dadd09",class:"col-12 col-md-4"},s("form-control-text",{key:"8752eb6ea1d24189fd1a4d799145b5bbdc0413f2",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),s("div",{key:"9d19f00bbd407ca55455947d84183530920d799c",class:"col-12 col-md-6"},s("form-control-text",{key:"10ffe5b44086f623fb9f9d27f4a72cd251589bd0",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"7c32fc26abbc0bc16b0a50d8bbfb47c121c7c62d",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"e6b63872de5bd5cc98d61c8e6ebeb2a3f8443fb1",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})),s("div",{key:"2e7eded46b1162d9ecf8c3badc869e98a710abee",class:"col-12 col-md-4"},s("form-control-date",{key:"2c4b8c126d7505dadb3fe06b3b5cab5e83b91c23",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>y(e,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"dd96fdddddfb082fc0ce670f673decc97956c242",class:"col-12 col-md-8"},s("form-control-number-masked",{key:"640cc2e749dc64879d8211c3340b7c273d3cb817",name:"identification_number",label:"SSN",defaultValue:this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:b,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),s("div",{key:"681b2898183d73559150b5debef39901c4679eba",class:"col-12"},s("justifi-identity-address-form",{key:"e2de39be536c0854592a5132a6a9ac9d761a0f9b",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate})))}};export{v as justifi_owner_form,k as owner_form_core,w as owner_form_inputs}
@@ -1 +0,0 @@
1
- import{h as o}from"./p-2783e363.js";import{a1 as r}from"./p-bf195b35.js";const s=s=>o("h3",{class:`header-3 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
@@ -1,2 +0,0 @@
1
- var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),r=new Map,i="http://www.w3.org/1999/xlink",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),d=!1,h=[],m=[],p=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&a.o?b($):a.raf($))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},$=()=>{v(h),v(m),(d=h.length>0)&&a.raf($)},b=t=>f().then(t),w=p(m,!0),y={},g=t=>"object"==(t=typeof t)||"function"===t;((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>O,ok:()=>k,unwrap:()=>M,unwrapErr:()=>P});var k=t=>({isOk:!0,isErr:!1,value:t}),j=t=>({isOk:!1,isErr:!0,value:t});function O(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>k(t))):k(n)}if(t.isErr)return j(t.value);throw"should never get here"}var E,x,C,M=t=>{if(t.isOk)return t.value;throw t.value},P=t=>{if(t.isErr)return t.value;throw t.value},R=(t,e,...n)=>{let o=null,l=null,s=null,r=!1,i=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!g(o))&&(o+=""),r&&i?c[c.length-1].i+=o:c.push(r?S(null,o):o),i=r)};if(u(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,A);const a=S(t,null);return a.u=e,c.length>0&&(a.h=c),a.m=l,a.p=s,a},S=(t,e)=>({o:0,v:t,i:e,$:null,h:null,u:null,m:null,p:null}),T={},A={forEach:(t,e)=>t.map(F).forEach(e),map:(t,e)=>t.map(F).map(e).map(L)},F=t=>({vattrs:t.u,vchildren:t.h,vkey:t.m,vname:t.p,vtag:t.v,vtext:t.i}),L=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),R(t.vtag,e,...t.vchildren||[])}const e=S(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.m=t.vkey,e.p=t.vname,e},N=t=>n(t).$hostElement$,D=(t,e,n)=>{const o=N(t);return{emit:t=>H(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},H=(t,e,n)=>{const o=a.ce(e,n);return t.dispatchEvent(o),o},U=(t,e,n,o,s,r)=>{if(n!==o){let u=l(t,e),f=e.toLowerCase();if("class"===e){const e=t.classList,l=q(n),s=q(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(u||"o"!==e[0]||"n"!==e[1]){const l=g(o);if((u||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]=o;else{const l=null==o?"":o;"list"===e?u=!1:null!=n&&t[e]==l||(t[e]=l)}}catch(t){}let c=!1;f!==(f=f.replace(/^xlink\:?/,""))&&(e=f,c=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(c?t.removeAttributeNS(i,e):t.removeAttribute(e)):(!u||4&r||s)&&!l&&(o=!0===o?"":o,c?t.setAttributeNS(i,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):l(c,f)?f.slice(2):f[2]+e.slice(3),n||o){const l=e.endsWith(G);e=e.replace(V,""),n&&a.rel(t,e,n,l),o&&a.ael(t,e,o,l)}}},W=/\s/,q=t=>t?t.split(W):[],G="Capture",V=RegExp(G+"$"),_=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.u||y,s=e.u||y;for(const t of z(Object.keys(l)))t in s||U(o,t,l[t],void 0,n,e.o);for(const t of z(Object.keys(s)))U(o,t,l[t],s[t],n,e.o)};function z(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var B=!1,I=!1,J=!1,K=!1,Q=(t,e,n,o)=>{var l;const s=e.h[n];let r,i,c,a=0;if(B||(J=!0,"slot"===s.v&&(E&&o.classList.add(E+"-s"),s.o|=s.h?2:1)),null!==s.i)r=s.$=u.createTextNode(s.i);else if(1&s.o)r=s.$=u.createTextNode("");else{if(K||(K="svg"===s.v),r=s.$=u.createElementNS(K?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!B&&2&s.o?"slot-fb":s.v),K&&"foreignObject"===s.v&&(K=!1),_(null,s,K),null!=E&&r["s-si"]!==E&&r.classList.add(r["s-si"]=E),s.h)for(a=0;a<s.h.length;++a)i=Q(t,s,a,r),i&&r.appendChild(i);"svg"===s.v?K=!1:"foreignObject"===r.tagName&&(K=!0)}return r["s-hn"]=C,3&s.o&&(r["s-sr"]=!0,r["s-cr"]=x,r["s-sn"]=s.p||"",r["s-rf"]=null==(l=s.u)?void 0:l.ref,c=t&&t.h&&t.h[n],c&&c.v===s.v&&t.$&&X(t.$,!1)),r},X=(t,e)=>{a.o|=1;const n=Array.from(t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==C&&o["s-ol"]&&(ut(nt(o),o,et(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,J=!0),e&&X(o,e)}a.o&=-2},Y=(t,e,n,o,l,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===C&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=Q(null,n,l,t),r&&(o[l].$=r,ut(i,r,et(e))))},Z=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;ct(e),t&&(I=!0,t["s-ol"]?t["s-ol"].remove():X(t,!0),t.remove())}}},tt=(t,e,n=!1)=>t.v===e.v&&("slot"===t.v?t.p===e.p:!!n||t.m===e.m),et=t=>t&&t["s-ol"]||t,nt=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,ot=(t,e,n=!1)=>{const o=e.$=t.$,l=t.h,s=e.h,r=e.v,i=e.i;let c;null===i?(K="svg"===r||"foreignObject"!==r&&K,("slot"!==r||B)&&_(t,e,K),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],m=o.length-1,p=o[0],v=o[m];for(;i<=f&&c<=m;)if(null==d)d=e[++i];else if(null==h)h=e[--f];else if(null==p)p=o[++c];else if(null==v)v=o[--m];else if(tt(d,p,l))ot(d,p,l),d=e[++i],p=o[++c];else if(tt(h,v,l))ot(h,v,l),h=e[--f],v=o[--m];else if(tt(d,v,l))"slot"!==d.v&&"slot"!==v.v||X(d.$.parentNode,!1),ot(d,v,l),ut(t,d.$,h.$.nextSibling),d=e[++i],v=o[--m];else if(tt(h,p,l))"slot"!==d.v&&"slot"!==v.v||X(h.$.parentNode,!1),ot(h,p,l),ut(t,h.$,d.$),h=e[--f],p=o[++c];else{for(u=-1,a=i;a<=f;++a)if(e[a]&&null!==e[a].m&&e[a].m===p.m){u=a;break}u>=0?(r=e[u],r.v!==p.v?s=Q(e&&e[c],n,u,t):(ot(r,p,l),e[u]=void 0,s=r.$),p=o[++c]):(s=Q(e&&e[c],n,c,t),p=o[++c]),s&&ut(nt(d.$),s,et(d.$))}i>f?Y(t,null==o[m+1]?null:o[m+1].$,n,o,c,m):c>m&&Z(e,i,f)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),Y(o,null,e,s,0,s.length-1)):null!==l&&Z(l,0,l.length-1),K&&"svg"===r&&(K=!1)):(c=o["s-cr"])?c.parentNode.textContent=i:t.i!==i&&(o.data=i)},lt=t=>{const e=t.childNodes;for(const t of e)if(1===t.nodeType){if(t["s-sr"]){const n=t["s-sn"];t.hidden=!1;for(const o of e)if(o!==t)if(o["s-hn"]!==t["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){t.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){t.hidden=!0;break}}lt(t)}},st=[],rt=t=>{let e,n,o;for(const l of t.childNodes){if(l["s-sr"]&&(e=l["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;const t=l["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==l["s-hn"])if(it(e,t)){let n=st.find((t=>t.k===e));I=!0,e["s-sn"]=e["s-sn"]||t,n?(n.k["s-sh"]=l["s-hn"],n.j=l):(e["s-sh"]=l["s-hn"],st.push({j:l,k:e})),e["s-sr"]&&st.map((t=>{it(t.k,e["s-sn"])&&(n=st.find((t=>t.k===e)),n&&!t.j&&(t.j=n.j))}))}else st.some((t=>t.k===e))||st.push({k:e})}1===l.nodeType&&rt(l)}},it=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,ct=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(ct)},ut=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),at=(t,e)=>{e&&!t.O&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.O=e)))},ft=(t,e)=>{if(t.o|=16,!(4&t.o))return at(t,t.C),w((()=>dt(t,e)));t.o|=512},dt=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e&&(t.o|=256,t.M&&(t.M.map((([t,e])=>kt(n,t,e))),t.M=void 0),o=kt(n,"componentWillLoad")),ht(o,(()=>pt(t,n,e)))},ht=(t,e)=>mt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),mt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,pt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];$t(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>wt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},vt=null,$t=(t,e,n,o)=>{try{vt=e,e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,r;const i=t.$hostElement$,c=t.P,f=t.R||S(null,null),d=(t=>t&&t.v===T)(e)?e:R(null,null,e);if(C=i.tagName,n&&d.u)for(const t of Object.keys(d.u))i.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.u[t]=i[t]);if(d.v=null,d.o|=4,t.R=d,d.$=f.$=i.shadowRoot||i,E=i["s-sc"],B=!!(1&c.o),x=i["s-cr"],I=!1,ot(f,d,n),a.o|=1,J){rt(d.$);for(const t of st){const e=t.k;if(!e["s-ol"]){const t=u.createTextNode("");t["s-nr"]=e,ut(e.parentNode,e["s-ol"]=t,e)}}for(const t of st){const e=t.k,i=t.j;if(i){const t=i.parentNode;let n=i.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===o.parentNode){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==e.parentNode||e.nextSibling!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),ut(t,e,n),1===e.nodeType&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof i["s-rf"]&&i["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(r=e.hidden)&&r),e.hidden=!0)}}I&&lt(d.$),a.o&=-2,st.length=0,x=void 0})(t,e,o)}catch(e){s(e,t.$hostElement$)}return vt=null,null},bt=()=>vt,wt=t=>{const e=t.$hostElement$,n=t.t,o=t.C;kt(n,"componentDidRender"),64&t.o||(t.o|=64,jt(e),kt(n,"componentDidLoad"),t.S(e),o||gt()),t.T(e),t.O&&(t.O(),t.O=void 0),512&t.o&&b((()=>ft(t,!1))),t.o&=-517},yt=t=>{{const e=n(t),o=e.$hostElement$.isConnected;return o&&2==(18&e.o)&&ft(e,!1),o}},gt=()=>{jt(u.documentElement),b((()=>H(c,"appload",{detail:{namespace:"webcomponents"}})))},kt=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t)}},jt=t=>t.classList.add("hydrated"),Ot=(t,e,o)=>{var l,r;const i=t.prototype;if(e.A||e.F||t.watchers){t.watchers&&!e.F&&(e.F=t.watchers);const c=Object.entries(null!=(l=e.A)?l:{});if(c.map((([t,[l]])=>{31&l||2&o&&32&l?Object.defineProperty(i,t,{get(){return((t,e)=>n(this).L.get(e))(0,t)},set(o){((t,e,o,l)=>{const r=n(t);if(!r)throw Error(`Couldn't find host element for "${l.N}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.L.get(e),u=r.o,a=r.t;if(o=((t,e)=>null==t||g(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(o,l.A[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(r.L.set(e,o),a)){if(l.F&&128&u){const t=l.F[e];t&&t.map((t=>{try{a[t](o,c,e)}catch(t){s(t,i)}}))}2==(18&u)&&ft(r,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0}):1&o&&64&l&&Object.defineProperty(i,t,{value(...e){var o;const l=n(this);return null==(o=null==l?void 0:l.D)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[t](...e)}))}})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.F)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=e.F)?r:{}),...c.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},Et=t=>{kt(t,"connectedCallback")},xt=t=>{kt(t,"disconnectedCallback")},Ct=(t,o={})=>{var l;const i=[],f=o.exclude||[],d=c.customElements,h=u.head,m=h.querySelector("meta[charset]"),p=u.createElement("style"),v=[];let $,b=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let w=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],N:o[1],A:o[2],H:o[3]};4&c.o&&(w=!0),c.A=o[2],c.H=o[3],c.F=null!=(l=o[4])?l:{};const h=c.N,m=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,P:n,L:new Map};o.D=new Promise((t=>o.T=t)),o.U=new Promise((t=>o.S=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.N}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Pt(this,t,c.H)),$&&(clearTimeout($),$=null),b?v.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.P,l=()=>{};if(1&e.o)Pt(t,e,o.H),(null==e?void 0:e.t)?Et(e.t):(null==e?void 0:e.U)&&e.U.then((()=>Et(e.t)));else{e.o|=1,12&o.o&&(t=>{const e=t["s-cr"]=u.createComment("");e["s-cn"]=!0,ut(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){at(e,e.C=n);break}}o.A&&Object.entries(o.A).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o))if(e.o|=32,n.W){const t=(t=>{const e=t.N.replace(/-/g,"_"),n=t.W;if(!n)return;const o=r.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(r.set(n,t),t[e])),s)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.N}#${e.q}" was not found`);o.isProxied||(n.F=o.watchers,Ot(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){s(t)}e.o&=-9,e.o|=128,l(),Et(e.t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));const l=e.C,i=()=>ft(e,!0);l&&l["s-rc"]?l["s-rc"].push(i):i()})(t,e,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.o)){const t=n(this);t.G&&(t.G.map((t=>t())),t.G=void 0),(null==t?void 0:t.t)?xt(t.t):(null==t?void 0:t.U)&&t.U.then((()=>xt(t.t)))}})()))}componentOnReady(){return n(this).U}};c.W=t[0],f.includes(h)||d.get(h)||(i.push(h),d.define(h,Ot(m,c,1)))}))})),i.length>0&&(w&&(p.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p.textContent+=i.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",p.innerHTML.length)){p.setAttribute("data-styles","");const t=null!=(l=a.V)?l:function(){var t,e,n;return null!=(n=null==(e=null==(t=u.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();null!=t&&p.setAttribute("nonce",t),h.insertBefore(p,m?m.nextSibling:h.firstChild)}b=!1,v.length?v.map((t=>t.connectedCallback())):a.jmp((()=>$=setTimeout(gt,30)))},Mt=(t,e)=>e,Pt=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=t,r=Rt(e,l),i=St(n);a.ael(s,o,r,i),(e.G=e.G||[]).push((()=>a.rel(s,o,r,i)))}))},Rt=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.M=t.M||[]).push([e,n])}catch(t){s(t)}},St=t=>({passive:!!(1&t),capture:!!(2&t)}),Tt=t=>a.V=t;export{Mt as F,T as H,bt as a,Ct as b,D as c,yt as f,N as g,R as h,f as p,o as r,Tt as s}
@@ -1 +0,0 @@
1
- import{r as a,h as e}from"./p-2783e363.js";import{l as t}from"./p-c6be72b0.js";import{f as s,p as i,c as r}from"./p-f4739d31.js";import{R as d,S as l,T as c,U as f}from"./p-bf195b35.js";import{S as o}from"./p-bfe9748b.js";import"./p-9dd8685c.js";import"./p-1366a019.js";import"./p-56f6ce4c.js";import"./p-3f5e6602.js";import{I as p}from"./p-2a9d7f6b.js";import"./p-61f0a2ce.js";import"./p-f20b6ce1.js";import"./p-f8fccf44.js";import"./p-abdbcd8e.js";const b=class{constructor(e){a(this,e),this.setParamsOnChange=(a,e)=>{s[a]=e},this.terminalId=void 0,this.terminalOrderId=void 0,this.terminalStatus=void 0}componentWillLoad(){this.debouncedSetParamsOnChange=t.exports.debounce(this.setParamsOnChange,300),Object.entries({terminal_id:this.terminalId,status:this.terminalStatus,terminal_order_id:this.terminalOrderId}).forEach((([a,e])=>{e&&(i[a]=e)}))}get terminalStatusOptions(){return[{label:"All",value:""},{label:"Connected",value:p.connected},{label:"Disconnected",value:p.disconnected},{label:"Unknown",value:p.unknown},{label:"Pending Configuration",value:p.pending_configuration}]}render(){const a=Object.assign({},s);return e(o,{key:"390b8788e785bc81711a1b0f68203fce5a348c4c"},e("table-filters-menu",{key:"ab37f284aad5b828c2a3d0ce78e5c49fe86c8ec7",params:a,clearParams:r,part:d},e("div",{key:"9f06d2199885d1cb8d9a4310fc94366717ca092c",class:"grid-cols-2 gap-3 p-1"},e("div",{key:"146fb3fa0a146c8011e1fc609f885ec3de0af8bf",class:"p-2"},e("form-control-text",{key:"f9d33f3facd5af88761033256e9bcdee772d187b",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:l})),e("div",{key:"59b8af61f98c01e0cd04299780817b9a497d33bc",class:"p-2"},e("form-control-text",{key:"80c6ed5f37f4429aac0451f1b2c76fd99c52d246",name:"terminal_order_id",label:"Terminal Order ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalOrderId||s.terminal_order_id,disabled:!!this.terminalOrderId,part:c})),e("div",{key:"4452ff9cbeb157408fdd8569af5792d32f0d1aa9",class:"p-2"},e("form-control-select",{key:"52406f154a9d5f7a01831047eedf09b909d1bc0d",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||s.status,disabled:!!this.terminalStatus,part:f})))))}};export{b as justifi_terminals_list_filters}
@@ -1 +0,0 @@
1
- import{f as t}from"./p-f8fccf44.js";var i,s,h,n,e,a,o,c,d;!function(t){t.paid="paid",t.failed="failed",t.forwarded="forwarded",t.scheduled="scheduled",t.in_transit="in_transit",t.canceled="canceled"}(i||(i={})),function(t){t.paid="Paid",t.failed="Failed",t.forwarded="Forwarded",t.scheduled="Scheduled",t.in_transit="In Transit",t.canceled="Canceled"}(s||(s={}));class r{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}formattedPaymentAmount(i){return t(i,this.currency)}}!function(t){t.connected="connected",t.disconnected="disconnected",t.unknown="unknown",t.pending_configuration="pending_configuration"}(h||(h={})),function(t){t.verifone="verifone"}(n||(n={}));class u{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"}(e||(e={})),function(t){t.created="created",t.submitted="submitted",t.completed="completed"}(a||(a={}));class l{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||n.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"}(o||(o={}));class f{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"}(c||(c={})),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"}(d||(d={}));class m{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}}export{h as I,r as P,m as S,f as T,l as a,e as b,a as c,u as d}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-2783e363.js";import{P as e}from"./p-536fb8e2.js";import{a as r,C as o}from"./p-9dd8685c.js";import"./p-1366a019.js";import"./p-56f6ce4c.js";import{P as a}from"./p-3f5e6602.js";import"./p-2a9d7f6b.js";import"./p-61f0a2ce.js";import{g as p,a as n}from"./p-87f8c596.js";import{E as h}from"./p-12074378.js";import{c,J as m}from"./p-5a541d35.js";import"./p-5f6b4bc9.js";import"./p-f8fccf44.js";import"./p-abdbcd8e.js";import"./p-bf195b35.js";import"./p-de03d0f8.js";const d=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.paymentService=new e,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.paymentId=void 0,this.authToken=void 0,this.getPaymentDetails=void 0,this.errorMessage=null}componentWillLoad(){c(),this.analytics=new m(this),this.initializeGetPaymentDetails()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=(({id:t,authToken:s,service:i})=>async({onSuccess:e,onError:o})=>{var h;try{const c=await i.fetchPayment(t,s);c.error?o({error:p(c.error),code:n(null===(h=c.error)||void 0===h?void 0:h.code),severity:r.ERROR}):e({payment:new a(c.data)})}catch(t){const s=n(null==t?void 0:t.code);o({error:p(t),code:s,severity:r.ERROR})}})({id:this.paymentId,authToken:this.authToken,service:new e}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:o.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?h(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_payment_details}
@@ -1 +0,0 @@
1
- import{r as t,h as e}from"./p-2783e363.js";import{B as a}from"./p-bfc2d88a.js";import{a7 as s}from"./p-bf195b35.js";const r=t=>{const e=["after_cursor","before_cursor"];return!!Object.keys(t).filter((t=>!e.includes(t))).length},d=class{constructor(e){t(this,e),this.anchorButton=void 0,this.menu=void 0,this.showClearButton=!1,this.params=void 0,this.clearParams=void 0}watchParamsHandler(t){this.showClearButton=r(t)}show(){this.menu.classList.add("show")}hide(){this.menu.classList.remove("show")}componentWillLoad(){this.showClearButton=r(this.params)}render(){return e("div",{key:"c077391d1358cd6ad02857e05a56aab3e1d10018",class:"d-flex gap-2"},e("div",{key:"d28773f0b202b1fcbe19bc5bace1cbf17f5538f7",class:"dropdown pb-3"},e(a,{key:"0ad326c9539d5c93573001f6c98486bbbe7a4eaf",variant:"primary",type:"button dropdown-toggle",ref:t=>this.anchorButton=t,class:"btn btn-primary dropdown-toggle","data-test-id":"open-filters-button","data-bs-toggle":"dropdown"},"Filters"),e("custom-popper",{key:"9ebcaad716bd3b38233a2e78aa219f397c821472",offset:[20,10],strategy:"fixed",anchorRef:this.anchorButton,trigger:"click"},e("form",{key:"ca88fa944c5e9ac23f6ebee6c771603516b83f85",class:"dropdown-menu",part:s,"data-test-id":"filter-menu",ref:t=>this.menu=t,onSubmit:t=>t.preventDefault()},e("slot",{key:"7cc23a56a5db363ebdf375d41a758db534c9b9a7"})))),e("div",{key:"7047b1659d9f854ccb5e00f53fa03d4d42d7c550"},e(a,{key:"73e413af21cc39818ec8156d736ffdf72bc844d3",variant:"secondary",onClick:()=>this.clearParams(),hidden:!this.showClearButton,"data-test-id":"clear-filters-button"},"Clear Filters")))}static get watchers(){return{params:["watchParamsHandler"]}}};export{d as table_filters_menu}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s}from"./p-2783e363.js";import{f as i}from"./p-f8fccf44.js";import{t as a,C as r}from"./p-bf195b35.js";import{B as d}from"./p-bfc2d88a.js";import{S as c}from"./p-bfe9748b.js";import{S as o}from"./p-56c7fc8d.js";import{a as n,C as h}from"./p-9dd8685c.js";import{g as p,a as f}from"./p-87f8c596.js";import{D as l}from"./p-f4aeb100.js";import{D as u}from"./p-667ebd79.js";import{c as b,J as y}from"./p-5a541d35.js";import"./p-5f6b4bc9.js";import"./p-1366a019.js";import"./p-56f6ce4c.js";import"./p-3f5e6602.js";import"./p-abdbcd8e.js";import"./p-2a9d7f6b.js";import"./p-61f0a2ce.js";import"./p-de03d0f8.js";const v=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=(()=>{})})=>{var c;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:p(d.error),code:f(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR})}a(d)}catch(e){const t=f(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},m=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.submitEvent=t(this,"submit-event",7),this.dispute=void 0,this.authToken=void 0,this.isLoading=void 0}acceptDispute(){v({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:u.respondToDispute})}render(){var e,t,n,h,p,f,l;return s(c,{key:"ad76721d05d9dcdfb643d865aec1a6f0684e1e05"},this.isLoading&&s("div",{key:"a8b8e850e168cba9281a6f6302aef53976027346",style:{marginBottom:"8px"}},s(o,{key:"813563746b9f9b507b49762c9e1a1f006765345b",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(o,{key:"373c0596e6246860a17822eb5ec49f3ef9e37460",height:"18px",styles:{marginBottom:"8px"}}),s(o,{key:"32f8083f0551fbea29de6ddbc847dc62fa0b0c48",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"9c032d9b8ea4b176f1fabfff45a2975ac9e6df17",part:a},s("h1",{key:"e1a906047a9c056138bb2bd69dddf2bbc54782c4",class:"h4",part:r},"This payment is disputed"),s("p",{key:"40d9d799d073318ba52a2c559c8119c64e9107aa"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"e2d3bc21f03cd47acc8feec8640410c1c74f9b58",class:"h5"},"Dispute details"),s("div",{key:"3e3c440350a6dc86b42204a43f80fa700c1d06f0",class:"d-table gap-2"},s("div",{key:"67b4dbf945dae00fe6e6144782c6c249cc032968",class:"d-table-row gap-2"},s("span",{key:"6570c2fc92f6a526a6e2afee91fa1017f5ef3c9b",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"269f42e3737b419978fb35e741f34a751f0b0d9b",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(t=this.dispute)||void 0===t?void 0:t.amount))),s("div",{key:"b498ff565dafbea3e3452d386883924bda431a96",class:"d-table-row gap-2"},s("span",{key:"afaecceeac44807453e1a99ffc0d8961022fd98f",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"69b491d454f791d679528b77f9f75fc889add363",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(n=this.dispute)||void 0===n?void 0:n.reason)),s("div",{key:"97515b0bd0dd113e31e6974c7e107af19eed2e73",class:"d-table-row gap-2"},s("span",{key:"e8a46a99bb2596d8aab980230088989c3a9455c4",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Dispute ID"),s("span",{key:"aa5e2e6997bedfdbd31c2fe9ee540a4399e3a25e",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(h=this.dispute)||void 0===h?void 0:h.id))),s("div",{key:"4e35b26867fdde02426bd047932ca854c05421b7",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"2881172b26ffb36321094ea2f8af7cc622678229",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"e57fca0b48327bb898ec19938498eb1c945bbb4d",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"c1f0a2f35d9640efdfd76b13d6969374169b2631"},s("h1",{key:"800d59ebecc9f15890fe7f264a3b44910e322784",class:"h4"},"This payment is disputed and under review"),s("p",{key:"30a7d186c01e33f2a95b0cecb3a4a69b59d158e6"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(f=this.dispute)||void 0===f?void 0:f.won)&&s("div",{key:"5d0fbdcc7a15817e1875d18a5f4d9cf982989ed1"},s("h1",{key:"b2814587c7bd46e28948346f5871456e6cc0589c",class:"h4"},"This payment was disputed"),s("p",{key:"bff6dbf512017e27b1fc6ea2a97b2dc47f4b2a65"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(l=this.dispute)||void 0===l?void 0:l.lost)&&s("div",{key:"548cf8e95c0933ec987862c162487abfd3c043bc"},s("h1",{key:"46f96b5e6785b5a4398918c0e29302403a7194bd",class:"h4"},"This payment was disputed"),s("p",{key:"71c3c1e1754cd0f0f042a6277ba93b2076cd7645"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)},this.updateDisputeResponse=void 0,this.submitDisputeResponse=void 0,this.createDisputeEvidence=void 0,this.errorMessage=null,this.authToken=void 0,this.disputeId=void 0,this.disputeResponse=void 0,this.apiOrigin="https://wc-proxy.justifi.ai"}componentWillLoad(){b(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=(()=>{})})=>{var c;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:p(d.error),code:f(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=f(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=(()=>{})})=>{var c;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:p(d.error),code:f(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=f(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=v({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(c,{key:"1a0ac889493d8008e9bd70e4c3aad9ea72d12453"},s("justifi-dispute-response-core",{key:"82e11a3f0d14640beca1ebed72364662db3ffdbd","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},j=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.submitEvent=t(this,"submit-event",7),this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:u.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))},this.updateDisputeResponse=void 0,this.submitDisputeResponse=void 0,this.createDisputeEvidence=void 0,this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.currentStepComponentRef=void 0}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"1f44d3fa1d95758e9dc949bc9df9cb8def59aae5",class:"row gy-3"},s("div",{key:"5245e71606a4f69a8978c27bf8d0a985ecf3b835",class:"col-12"},s("h1",{key:"e843ee37344171cb159fe83889ddc244487d49ed",class:"h4",part:r},"Counter dispute")),s("div",{key:"7680b28f96255822f3048dc529bafa71cebf81cc",class:"col-12"},this.currentStepComponent),s("div",{key:"3ce0c6ac049c64a3ed18e42dcc001dd1f62a5aed",class:"col-12"},s("div",{key:"2192e17c236024e2c89ea361ac1a4e2b57c6b50e",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{m as justifi_dispute_notification,k as justifi_dispute_response,j as justifi_dispute_response_core}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s}from"./p-2783e363.js";import{a2 as a,a3 as i,t as c}from"./p-bf195b35.js";const d=class{constructor(s){e(this,s),this.selectedQuantityChange=t(this,"selectedQuantityChange",7),this.removeUnit=()=>{this.selectedQuantity>0&&(this.selectedQuantity--,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))},this.addUnit=()=>{this.limit>0&&(this.selectedQuantity++,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))},this.modelName=void 0,this.imageUrl=void 0,this.description=void 0,this.helpUrl=void 0,this.limit=1/0,this.selectedQuantity=0}render(){return s("div",{key:"2d549b468e071dfcf74977101abbc2d87849fceb",class:"rounded shadow-sm card p-2",part:c},s("div",{key:"f12c2934cb878a910bbed78c5a355e06470e0376",class:"d-flex gap-3"},s("div",{key:"ac4556722561202bdb4b5a6aa394ee5c022ed008",class:"d-flex align-items-center"},s("img",{key:"95251b4754303b2d89693bfc77611aa78b602bc9",src:this.imageUrl,alt:this.modelName,height:75,width:75,part:a})),s("div",{key:"01c92c855b6f4f485981daeb38134214fdd1762d",class:"d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center"},s("div",{key:"427ae984650fe56887f591203348d930a2cf0c49",class:"row"},s("div",{key:"36749d30ecbc22bd0841fdd128ecec584b2104a5",class:"col-6 d-flex gap-2"},this.modelName,s("form-control-tooltip",{key:"d29543ccf91db6947a4fe38113f251be7bc76e39",helpText:this.description})),s("div",{key:"83452b8b227597a83adaad1a64753609cbe02484",class:"col-6 d-flex justify-content-end align-items-center"},s("button",{key:"88e33206b8b2f29858263481c75fdbc13ee687d1",class:"p-0 minus btn",onClick:this.removeUnit,part:i},"-"),s("div",{key:"a5fb4209f79529560bb253aef077035fa532e1fc",class:"w-25 text-center"},this.selectedQuantity),s("button",{key:"a431b869cebc0a53514731ed69de88bdbb63b4c6",class:"p-0 plus btn",onClick:this.addUnit,part:i},"+"))))))}};export{d as terminal_quantity_selector}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s}from"./p-2783e363.js";import{a as e,C as o}from"./p-9dd8685c.js";import{c as a,J as r}from"./p-5a541d35.js";import{m as p,P as n}from"./p-9a9732e1.js";import"./p-1366a019.js";import"./p-56f6ce4c.js";import"./p-3f5e6602.js";import{P as c}from"./p-2a9d7f6b.js";import"./p-61f0a2ce.js";import{g as d,a as h}from"./p-87f8c596.js";import{m as l,S as m}from"./p-cbad44b7.js";import{S as u}from"./p-bfe9748b.js";import{d as b}from"./p-ae7edce5.js";import"./p-de03d0f8.js";import"./p-5f6b4bc9.js";import"./p-f8fccf44.js";import"./p-abdbcd8e.js";import"./p-927cb6df.js";import"./p-c8b78136.js";import"./p-bf195b35.js";const f=class{constructor(s){t(this,s),this.errorEvent=i(this,"error-event",7),this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.getPayouts=void 0,this.getPayoutCSV=void 0,this.getSubAccounts=void 0,this.errorMessage=null,this.accountId=void 0,this.authToken=void 0,this.apiOrigin="https://wc-proxy.justifi.ai",this.columns=b}componentWillLoad(){a(),this.analytics=new r(this),this.initializeGetData()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new n,apiOrigin:this.apiOrigin};this.getPayouts=(({id:t,authToken:i,service:s,apiOrigin:o})=>async({params:a,onSuccess:r,onError:p})=>{var n,l;try{const m=await s.fetchPayouts(t,i,a,o);if(m.error)return p({error:d(m.error),code:h(null===(l=m.error)||void 0===l?void 0:l.code),severity:e.ERROR});{const t=Object.assign({},m.page_info);r({payouts:(null===(n=m.data)||void 0===n?void 0:n.map((t=>new c(t))))||[],pagingInfo:t})}}catch(t){const i=h(null==t?void 0:t.code);return p({error:t.message||t,code:i,severity:e.ERROR})}})(t),this.getPayoutCSV=p(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR})}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=l({accountId:this.accountId,authToken:this.authToken,service:new m,apiOrigin:this.apiOrigin}))}render(){return s(u,{key:"434171dee57c7d639a894133b36f7dc727e28381",exportedparts:"\ntable-head,table-head-row,table-head-cell,table-body,table-row,table-row-even,\ntable-row-odd,table-cell,loading-state-cell,loading-state-spinner,error-state,\nempty-state,pagination-bar,page-arrow,page-button,page-button-disabled,page-button-text\n"},s("payouts-list-core",{key:"e4ed849e1c839dcdd3990a1b64d2bd132cda86f8",getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,getSubAccounts:this.getSubAccounts,"onError-event":this.handleOnError,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payouts_list}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e,H as i,g as a}from"./p-2783e363.js";import{i as o,a as h,b as r,c,l as d}from"./p-bf195b35.js";import{F as n}from"./p-2123c150.js";import{F as l}from"./p-dbc1a95b.js";const f=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.handleFormControlInput=t=>{const s=t.target,e=s.getAttribute("name");this.inputHandler(e,s.value),this.formControlInput.emit({name:e,value:s.value})},this.updateInput=t=>{const s=this.el.querySelector("input");s&&(s.value=t||"")},this.isFocused=!1,this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.inputHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?o:this.isFocused?h:this.errorText?r:c}render(){return e(i,{key:"30aed88fe8d8ecf3a8fa36b8d8cd615b82e4cc01"},e("div",{key:"025ac654d3de4869242a0ce294e95d7aa83e4e01",class:"form-group d-flex flex-column"},e("label",{key:"fecb388595436046b1719870b4745c685d39eccc",part:d,class:"form-label",htmlFor:this.name},this.label),e("input",{key:"95033125ca4973a6e7484d60b57350250647e3cc",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"number",disabled:this.disabled}),e(n,{key:"471b88b189e0046871010e780ccd560c80f1c764",helpText:this.helpText,name:this.name}),e(l,{key:"b0d1b87f51482daa6ded4eeedcaffda8e863b3af",errorText:this.errorText,name:this.name})))}get el(){return a(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{f as form_control_number}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-2783e363.js";import{c as i,a as t,F as c}from"./p-01033194.js";import{B as d}from"./p-bf195b35.js";const s=i({additional_statement:t().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){let e="";const a=new Promise(((a,i)=>{const t=new FileReader;t.onload=i=>{e=i.target.result,a(e)},t.onerror=()=>{i(new Error("Error reading file"))},t.readAsDataURL(this._file)}));return await a,e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const i=e.target,t=i.name,c=i.files;a[t]=[];for(const e of c)a[t].push(new n(e,t))},f=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.disputeResponse=void 0,this.documentErrors={},this.form=void 0,this.errors={},this.acceptedTerms=!1,this.acceptedTermsErrorText=void 0,this.documents={uncategorized_file:[]}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((i=>e(i,a,o.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,i;return a("div",{key:"cc4be19078bc6ed3b622f6d9db17c5565d575ddb"},a("div",{key:"ae78d8f0a216a417a4c6e2778dd8f36315386437",class:"row gy-3"},a("div",{key:"065645b98b1a7b5a0bcd2ef55e48bec65a2de082",class:"col-12"},a("h2",{key:"0728e424e28b970bc3454951841b65d3ef843a95",class:"h5",part:d},"Additional Evidence")),a("div",{key:"900d5630440472414e43b4ae194c941a73ef46c0",class:"col-12"},a("form-control-textarea",{key:"0c3e4926570187d4f84f1061c731365441f6f302",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"2a9a2f41348f30baeb1082a0d5715f823c112c89",class:"col-12"},a("form-control-file-v2",{key:"b47d9a681874b19eed4974bce7dd850d882ae435",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.uncategorized_file}))))}},b=i({cancellation_policy_disclosure:t().nullable(),cancellation_rebuttal:t().nullable()}),h=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.disputeResponse=void 0,this.documentErrors={},this.form=void 0,this.errors={},this.documents={cancellation_policy:[]}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((i=>e(i,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,i,t;return a("div",{key:"7b4cf555fd1fbfcc99aea27f60a507daa36f6ee6"},a("div",{key:"0751a543b921a2fa8bb25e68e71c1cba6cc5229f",class:"row gy-3"},a("div",{key:"9e4043494f5804e92af66b0f4595137f741e9556",class:"col-12"},a("h2",{key:"a078ec09adb7197ac0e5260ca220d868e746773c",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"814cacdfbc107e848dcf42bacb744f8b7819c248",class:"col-12"},a("form-control-textarea",{key:"aa867ea4cfc3d7c436e481a829a1ec779f3281d8",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"b8a6851094599ed3683f3c14f18305ff0a8ed557",class:"col-12"},a("form-control-textarea",{key:"8292b5808ad9af2f36a4306cf0bd67b9183cc144",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"ee80c2f43bc56563221fcd892130c2ff6e492dcd",class:"col-12"},a("form-control-file-v2",{key:"4ddc23ba32d324552c16fd20aff18e117cb22831",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.cancellation_policy}))))}},u=i({customer_name:t().nullable(),customer_email_address:t().nullable(),customer_billing_address:t().nullable()}),v=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.disputeResponse=void 0,this.documentErrors={},this.form=void 0,this.errors={},this.documents={customer_signature:[],customer_communication:[]}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((i=>e(i,a,o.customerDetails)))}componentWillLoad(){this.form=new c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,i,t,c,s;return a("div",{key:"b7f6a56dd2c1ed9c489c9af51be7cc51645c798d"},a("div",{key:"a3c9a1fb87739dfb1c02ec651663ed27b75a3b39",class:"row gy-3"},a("div",{key:"b0a978ee641386f8bddf52787b39371a5279be68",class:"col-12"},a("h2",{key:"51d722637868f1b380d7065edcc7ee8421eeeacc",class:"h5",part:d},"Customer Details")),a("div",{key:"5b4843b8391cf38b3322d9a4995d02cd81af95e2",class:"col-12"},a("form-control-text",{key:"5c8725f1893aad3007552a72f928143b3a2cac57",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"20529807f6b93411a2dbcf6cf0894b084d2e854f",class:"col-12"},a("form-control-text",{key:"22c89513e4744a745f91602a8311c64c9a7840ad",label:"Email",name:"customer_email_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"728c483456c7fd97d54368b9d0bf0a046ee1e169",class:"col-12"},a("form-control-textarea",{key:"128222a80fd9e716dc20de70d3bf33b42fc147ab",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"e55c1e358c4fe57f118d13b07b6109a1d97d6c8b",class:"col-12"},a("form-control-file-v2",{key:"00a057cfb9b9813004634dda61e047d5ac14e623",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"3389590c63a5d3044e2470d7243e67ef57697682",class:"col-12"},a("form-control-file-v2",{key:"3eea18b33b3203e599bbf0ac94c687b2ecb321fa",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=i({duplicate_charge_original_payment_id:t().nullable(),duplicate_charge_explanation:t().nullable()}),m=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.disputeResponse=void 0,this.documentErrors={},this.form=void 0,this.errors={},this.documents={duplicate_charge_documentation:[]}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((i=>e(i,a,o.duplicateCharge)))}componentWillLoad(){this.form=new c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,i,t;return a("div",{key:"eb4f8764416b3f82bb2ca4052816c55abf7a10e0"},a("div",{key:"6e7c5c9e25cc508d253fb4506588670d5edb6d3a",class:"row gy-3"},a("div",{key:"76afe1f271b1aeb530f8bfbadfa16b39833abff0",class:"col-12"},a("h2",{key:"5e311a49194c20250ec12cf1872f46af1219627d",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"6e3a0d4e88f8464f1bdefb580626fd5d37af6c76",class:"col-12"},a("form-control-text",{key:"d5fd0e4706df1f246395ef0e1825b9c25456e713",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"01a17763a76e14e05ae84cbadd12f1eb7b8da4dc",class:"col-12"},a("form-control-textarea",{key:"9dde7a1922f55d31b983626f1279a222c6dface6",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"736b812a5178f6340e981c98920849a39778b788",class:"col-12"},a("form-control-file-v2",{key:"8df332685d9b4b23f48fae76b2d46c93e5ca3d40",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.duplicate_charge_documentation}))))}},y=i({customer_purchase_ip_address:t().nullable()}),_=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.disputeResponse=void 0,this.documentErrors={},this.form=void 0,this.errors={},this.documents={activity_log:[]}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((i=>e(i,a,o.electronicEvidence)))}componentWillLoad(){this.form=new c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,i;return a("div",{key:"e6ddcb39f751386da5613108a8dde54a6f299a54"},a("div",{key:"085db2253e1330617bd26326faa3fcf19c84b890",class:"row gy-3"},a("div",{key:"5d0652116e282ed5e9cae11e1330f261652e9de4",class:"col-12"},a("h2",{key:"5606230417d4cdb4218f6fb7af319712add4ecc7",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"ed8db92b69aca3c4661d1e84e07ecbbeb5b33b87",class:"col-12"},a("form-control-text",{key:"c7b4edb8172f30cd559544d1cb925861ae8fdcb2",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"077c0d5c6b5a7fd6fba2add6b6d4bfe50d3ae7d6",class:"col-12"},a("form-control-file-v2",{key:"ea44784a843b2d35b53caf0412a07056d68c11c3",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.activity_log}))))}},k=i({product_description:t().nullable(),service_date:t().nullable()}),g=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.disputeResponse=void 0,this.documentErrors={},this.form=void 0,this.errors={},this.documents={service_documentation:[]}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((i=>e(i,a,o.productOrService)))}componentWillLoad(){this.form=new c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,i,t;return a("div",{key:"8d3c718760c63f8ff57e02979bc16220a1fe1bef"},a("div",{key:"9e01588d0a7ecdf25649e06eeb488eceec28f369",class:"row gy-3"},a("div",{key:"a596d8b3cb35c20b6131cafaf58ce4b7d8112f47",class:"col-12"},a("h2",{key:"f85ef842a4134424368eddd1fb937b603f24cd93",class:"h5",part:d},"Product & Service Details")),a("div",{key:"2248cf9d4604d9ad01257849662fbe003b06b008",class:"col-12"},a("form-control-text",{key:"15a7ea5b0bc3544ca9cc261690a8fbc41d3acf14",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"55dd1964d4674196a13a319620c9333410899ede",class:"col-12"},a("form-control-date",{key:"528b504c7a73d0ff9e43d92c0cc2ca75bef3f700",label:"Service Date",name:"service_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"2551b98489d545825da7418957267128e5629419",class:"col-12"},a("form-control-file-v2",{key:"93acee274f248630fba1d9a1b130bfa7404b075b",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.service_documentation}))))}},x=i({refund_policy_disclosure:t().nullable(),refund_refusal_explanation:t().nullable()}),j=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.disputeResponse=void 0,this.documentErrors={},this.form=void 0,this.errors={},this.documents={refund_policy:[],receipt:[]}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((i=>e(i,a,o.refundPolicy)))}componentWillLoad(){this.form=new c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,i,t,c;return a("div",{key:"5090f71dfc35c4ecf7a49d566b42d5ed926d7188"},a("div",{key:"d7533084b67a246236698cbc08c129104611db39",class:"row gy-3"},a("div",{key:"aa88ebc88a55fc241f65e20b9bf1ec26b90100f2",class:"col-12"},a("h2",{key:"5216145cce452bedaa470f0dbb12f416e02bd065",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"95617388997edf7c450ae4907b4637e387a4f856",class:"col-12"},a("form-control-textarea",{key:"1f7617d2d2ad73a5146a26a93e624fd235a86d4b",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"dea5e70fac18452bec1db04cb2a647e12b1c20ed",class:"col-12"},a("form-control-textarea",{key:"21189989b1acc035b65aa7cdf97f8c2b7f8f6ec5",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"af9fe5c50b4a3b08bd61ba125f8dea9384b40ed1",class:"col-12"},a("form-control-file-v2",{key:"ca725cb13d208ab585b58e792e4172153be6d2ae",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.refund_policy})),a("div",{key:"b81ce0ce44cb79e04d10ab7ccd3da8d4e3172b47",class:"col-12"},a("form-control-file-v2",{key:"f990cd794f8ed0f1912644fd727e77fc3ca61957",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=i({shipping_carrier:t().nullable(),shipping_tracking_number:t().nullable(),shipping_date:t().nullable(),shipping_address:t().nullable()}),T=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.disputeResponse=void 0,this.documentErrors={},this.form=void 0,this.errors={},this.documents={shipping_documentation:[]},this.documentList=[]}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((i=>e(i,a,o.shippingDetails)))}componentWillLoad(){this.form=new c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,i,t,c,s;return a("div",{key:"beacff494e22ff1601a3e64d77436be84b314c7c"},a("div",{key:"a095d517c3df9961c773f745961da2bbefc82b0c",class:"row gy-3"},a("div",{key:"4cb4467983bea92caabc945ecda46caff69e84c8",class:"col-12"},a("h2",{key:"b55e940dd7276b8ddf3e67e2e1c611b26c353d15",class:"h5",part:d},"Shipping Details")),a("div",{key:"3f1358ffc89880c669a2b72f382baf8898fe785d",class:"col-12"},a("form-control-text",{key:"8557d28a5b80e7a0acac01691211ac824122f5c0",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"68e3c12692ff193c98446b3952a3e10432d1737a",class:"col-12"},a("form-control-text",{key:"05813d683d66aae6758480786ebbf9e3cb5c2a19",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"26c57ad3b9a7812eadf135d1c03d6a52b0208c5d",class:"col-12"},a("form-control-date",{key:"3dd3a3c458ef8aa72572aac96bd1ada68faacf88",label:"Date Shipped",name:"shipping_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"598a58691b626c53fd31fe4558d5aa4539471f52",class:"col-12"},a("form-control-textarea",{key:"18c24b65e26e4bdd3a2306d62bc6337c8eb76bc5",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"643b8bdea3bf3588217b0faad353a487f5f4e53f",class:"col-12"},a("form-control-file-v2",{key:"3dcb020413c5c85b0b9fc726ba7e674eb42d7926",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-2783e363.js";import{C as a,a as i}from"./p-9dd8685c.js";import"./p-1366a019.js";import{p as r}from"./p-56f6ce4c.js";import"./p-3f5e6602.js";import"./p-2a9d7f6b.js";import"./p-61f0a2ce.js";import{V as o,W as h}from"./p-bf195b35.js";import{T as c,a as d,b as p,c as n,d as b}from"./p-58ee6ce9.js";import{p as f,a as m}from"./p-ae7edce5.js";import{o as u,g as l}from"./p-ab45511e.js";import"./p-f8fccf44.js";import"./p-abdbcd8e.js";import"./p-142bfae3.js";import"./p-927cb6df.js";import"./p-c8b78136.js";import"./p-f20b6ce1.js";const y=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:"Failed to download CSV",severity:i.ERROR})}})},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:c.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:c.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr"),e=s.dataset.rowEntityId;if(!e)return;if(s.querySelector("a")===t.target)return;const a=this.payouts.find((t=>t.id===e));this.clickEvent.emit({name:c.row,data:a})},this.getPayouts=void 0,this.getSubAccounts=void 0,this.getPayoutCSV=void 0,this.columns=void 0,this.payouts=[],this.payoutsTable=void 0,this.subAccounts=[],this.loading=!0,this.errorMessage=void 0,this.paging=r,this.pagingParams={}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.payoutsTable=new d(this.payouts,this.columns,f,m(this.downloadCSV)),this.getPayouts&&this.getSubAccounts&&this.fetchData(),u("set",(()=>{this.pagingParams={}})),u("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayouts({params:this.payoutParams,onSuccess:({payouts:t,pagingInfo:s})=>{this.payouts=t,this.paging=s,this.payoutsTable.collectionData=this.payouts,this.payoutsTable.columnKeys.includes("sub_account_name")?this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.payouts=this.payouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get payoutParams(){const t=l();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.payouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.payouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.payoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e("div",{key:"ff5859c3d61ab7b2d532541c383c2478b9efc391"},e("div",{key:"cb50816020bfd324fae4f5f0d1a151ab04600b64",class:"table-wrapper",part:"table-wrapper"},e("table",{key:"69cf5b76a95dd9396b97c6dd54aab8c067522102",class:"table table-hover",part:o},e("thead",{key:"086161ba08d930efaf431571fa7670ad74a1ec88",class:"table-head sticky-top",part:"table-head"},e("tr",{key:"659d524600aec47afa5dc75cce808da945408536",class:"table-light text-nowrap",part:"table-head-row"},this.payoutsTable.columnData.map((t=>t)))),e("tbody",{key:"bf665357df28983b110565b8556f1cf1a022f164",class:"table-body"},e(p,{key:"c789d5b153a377ca1d2e0244e4480fe118ffa2d2",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),e(n,{key:"80ab61d7e68e50ad88ad5a7f8e11464418006a59",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),e(b,{key:"195c41c6e0a91d09ca0440002e2883fe49626c07",columnSpan:this.payoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.payoutsTable.rowData.map(((t,s)=>e("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e("tfoot",{key:"d9094830c7572cfbbfe0a17d55d9ad0daffd319f",class:"sticky-bottom"},e("tr",{key:"658d6a380abc8085f5ec26b1423e0b9487b962d6",class:"table-light align-middle"},e("td",{key:"962ddd1a6873a7206126e145d6772bacd4197cbf",part:h,colSpan:this.payoutsTable.columnData.length},e("pagination-menu",{key:"28c37545fe9fdce46302a9cc6d370d95e7d03d7b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{y as payouts_list_core}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-2783e363.js";import"./p-9dd8685c.js";import"./p-1366a019.js";import{p as a}from"./p-56f6ce4c.js";import"./p-3f5e6602.js";import"./p-2a9d7f6b.js";import"./p-61f0a2ce.js";import{V as i,W as c}from"./p-bf195b35.js";import{T as r,a as h,b as o,c as n,d}from"./p-58ee6ce9.js";import{c as p,a as b}from"./p-ca6cdfe6.js";import{o as f,g as m}from"./p-092515e0.js";import"./p-f8fccf44.js";import"./p-abdbcd8e.js";import"./p-142bfae3.js";import"./p-c8b78136.js";import"./p-f20b6ce1.js";const u=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:r.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:r.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:r.row,data:e})},this.getCheckouts=void 0,this.getSubAccounts=void 0,this.columns=void 0,this.checkouts=[],this.checkoutsTable=void 0,this.subAccounts=[],this.loading=!0,this.errorMessage=void 0,this.paging=a,this.pagingParams={}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new h(this.checkouts,this.columns,p,b),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),f("set",(()=>{this.pagingParams={}})),f("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get checkoutParams(){const t=m();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e("div",{key:"f94305b4a7c89d0d675e336eaac39c23328c9d98"},e("div",{key:"a43bbfee75303e2f88f6338933b0680e024d03fc",class:"table-wrapper"},e("table",{key:"d689db93b4d812c64eb074b0322e5ffc9087ec9f",class:"table table-hover",part:i},e("thead",{key:"57f3a2e2f14af58787f9a68cbc12caf28834eea1",class:"table-head sticky-top"},e("tr",{key:"7918b371db5dc1cd959e58a7be212faacc6e8f2c",class:"table-light text-nowrap"},this.checkoutsTable.columnData.map((t=>t)))),e("tbody",{key:"7ad39d5e2e91956d5c8bb7626e050ec5403c5aac",class:"table-body"},e(o,{key:"327b6dc83a4937cae7e356185613006630b40884",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(n,{key:"559bf67b3fb6b959b0114a6e50a8b3ac00d518ac",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(d,{key:"f5e277558e63cdb335b52aaa162d7818850ca421",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e("tfoot",{key:"7f34a1d78f45d33f95a2c23904ac0741124b9316",class:"sticky-bottom"},e("tr",{key:"4f91985c1ae00640ef3d29b20e9cb28240f36c21",class:"table-light align-middle"},e("td",{key:"75d32d3c6ca4882d8e50e44a13a4081bac4c9515",part:c,colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"81ec71b698e4ae3739440c7439125124f68086e0",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{u as checkouts_list_core}
@@ -1 +0,0 @@
1
- import{h as s,r as i,c as t}from"./p-2783e363.js";import{c as o,F as e}from"./p-01033194.js";import{b as r,a}from"./p-537bce77.js";import{a as h,i as n}from"./p-d757fcf5.js";import{A as c}from"./p-5f6b4bc9.js";import"./p-9dd8685c.js";import"./p-1366a019.js";import"./p-56f6ce4c.js";import"./p-3f5e6602.js";import"./p-2a9d7f6b.js";import"./p-61f0a2ce.js";import{B as l,a as p}from"./p-5d1d2fd7.js";import{c as d,J as m}from"./p-5a541d35.js";import{B as f}from"./p-bfc2d88a.js";import{S as b}from"./p-bfe9748b.js";import{H as j}from"./p-ccb9ee53.js";import{S as u}from"./p-56c7fc8d.js";import{B as v}from"./p-73f9be7c.js";import"./p-bf12999f.js";import"./p-6078a370.js";import"./p-c9b78275.js";import"./p-f8fccf44.js";import"./p-abdbcd8e.js";import"./p-1ff8810b.js";import"./p-de03d0f8.js";import"./p-bf195b35.js";const w=o(Object.assign(Object.assign({},r().fields),{legal_address:h(),additional_questions:a(),representative:n("representative")})),g=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(u,{width:"25%"})),s("div",{class:"col-12"},s(u,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(u,{width:"50%"}),s(u,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(u,{width:"65%"}),s(u,{width:"35%"}))),x=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(u,{width:"40%",height:"40px"})),s(g,null),s(g,null),s(g,null)),y=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event",7),this.clickEvent=t(this,"click-event",7),this.instantiateBusiness=s=>{const i=new l(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;try{const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new l(Object.assign(Object.assign({},i),s)).payload,o=await this.api.patch(this.businessEndpoint,t);this.handleReponse(o)}catch(s){this.errorMessage=p.patchData}finally{this.isSaving=!1}},this.fetchData=async()=>{this.isLoading=!0;try{const s=await this.api.get(this.businessEndpoint);this.instantiateBusiness(s.data)}catch(s){this.errorMessage=p.fetchData}finally{this.isLoading=!1}},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)},this.authToken=void 0,this.businessId=void 0,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.isLoading=!1,this.isSaving=!1,this.errorMessage=void 0}componentWillLoad(){d(),this.analytics=new m(this),this.authToken||console.error("Warning: Missing auth-token. The form will not be functional without it."),this.businessId||console.error("Warning: Missing business-id. The form requires an existing business-id to function."),this.formController=new e(w),this.api=c({authToken:this.authToken,apiOrigin:"https://wc-proxy.justifi.ai"}),this.fetchData()}disconnectedCallback(){this.analytics.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}handleReponse(s){s.error&&(this.errorMessage=p.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(b,null,this.isLoading?s(x,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(j,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(f,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:v.submit}),isLoading:this.isSaving},"Submit")))))}};export{y as justifi_business_form}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s}from"./p-2783e363.js";import{a as e,C as r}from"./p-9dd8685c.js";import{c as o,J as a}from"./p-5a541d35.js";import{a as p}from"./p-abdbcd8e.js";import{g as n,a as h}from"./p-87f8c596.js";import{D as d}from"./p-f4aeb100.js";import"./p-de03d0f8.js";import"./p-5f6b4bc9.js";import"./p-1366a019.js";import"./p-f8fccf44.js";import"./p-56f6ce4c.js";import"./p-3f5e6602.js";import"./p-2a9d7f6b.js";import"./p-61f0a2ce.js";const c=class{constructor(s){t(this,s),this.errorEvent=i(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.disputeId=void 0,this.authToken=void 0,this.apiOrigin="https://wc-proxy.justifi.ai",this.getDispute=void 0,this.errorMessage=null}componentWillLoad(){o(),this.analytics=new a(this),this.initializeGetDispute()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetDispute()}initializeGetDispute(){this.disputeId&&this.authToken?this.getDispute=(({id:t,authToken:i,service:s,apiOrigin:r})=>async({onSuccess:o,onError:a})=>{var d;try{const c=await s.fetchDispute(t,i,r);if(c.error)return a({error:n(c.error),code:h(null===(d=c.error)||void 0===d?void 0:d.code),severity:e.ERROR});{const t=Object.assign({},c.page_info);o({dispute:new p(c.data),pagingInfo:t})}}catch(t){const i=h(null==t?void 0:t.code);return a({error:t.message||t,code:i,severity:e.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new d,apiOrigin:this.apiOrigin}):(this.errorMessage="Dispute ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:r.MISSING_PROPS,severity:e.ERROR}))}render(){return s("justifi-dispute-management-core",{key:"4bdf1bb2befbd6d963744cac254993ad78e2047f",getDispute:this.getDispute,disputeId:this.disputeId,authToken:this.authToken,"onError-event":this.handleErrorEvent})}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{c as justifi_dispute_management}
@@ -1 +0,0 @@
1
- import{r as e,h as n,H as t,c as i,g as o}from"./p-2783e363.js";import{c as a,F as r}from"./p-01033194.js";import{u as s,l as d,k as c,m as f,n as l,q as u}from"./p-bf12999f.js";import{n as h}from"./p-e3c22aa9.js";import{S as m}from"./p-6078a370.js";import{F as b}from"./p-dbc1a95b.js";import{p as w}from"./p-de03d0f8.js";import{a as p}from"./p-4cc3c7f9.js";import{i as g,b as y,a as v,c as k,l as x}from"./p-bf195b35.js";import"./p-c9b78275.js";import"./p-5d1d2fd7.js";import"./p-1ff8810b.js";import"./p-61f0a2ce.js";import"./p-f20b6ce1.js";const j=a({name:s.required("Enter full name"),address_line1:d.required("Enter street address"),address_line2:c.nullable(),address_city:f.required("Enter city"),address_state:l.required("Select state"),address_postal_code:u.required("Enter postal code")}),I=a({address_postal_code:u.required("Enter postal code")}),z=class{constructor(n){e(this,n),this.inputHandler=(e,n)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:n}))},this.legend=void 0,this.formController=void 0,this.billingInfo=void 0,this.errors={}}componentWillLoad(){this.formController=new r(j)}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate()}}render(){const e=this.formController.getInitialValues();return n(t,{key:"4e04724997c5fda2b4a18b8567da9cd5b0e5e1df"},n("form",{key:"3ad1b5cf693a428fccc6dcdb2da3456012a7e5bc"},n("fieldset",{key:"25701e25d37ceff483328dc0fdc38ed03d982a1d"},this.legend&&n("legend",{key:"c3f8bf4e1aa05446c9cce72f7abb3eb264eb1822"},this.legend),n("div",{key:"5ceaf13100d39a8107a5695a0140426f5db0ea50",class:"row gy-3"},n("div",{key:"3e0933b0d4398d1ee3b0b377c65cf2e2e663223b",class:"col-12"},n("form-control-text",{key:"13b37a27bfa031e03827cb5396b96ee4cbbe419c",name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),n("div",{key:"3e6616197e464a7532945fcd158fc36728a05485",class:"col-12"},n("form-control-text",{key:"5d6ebbf9e49eedb378d812a1c24bdfbaaf5e5fab",name:"address_line1",label:"Street Address",defaultValue:e.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),n("div",{key:"b0a7141b5d60cee445f69200979f97e86e8f0e3d",class:"col-12"},n("form-control-text",{key:"221f411f92bb92e753d5e2fc7e92e9ffe6d20da4",name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:e.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),n("div",{key:"189854bdd6dc09039751f81fd65fd3e685731a99",class:"col-12"},n("form-control-text",{key:"cc815e308a51d23b139ecaa80afad76b58e761d7",name:"address_city",label:"City",defaultValue:e.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),n("div",{key:"d876d68af601bec261b6ad0728f8218b605714ff",class:"col-12"},n("form-control-select",{key:"d2ab5a47330708030eb904a1463a8fe71553921e",name:"address_state",label:"State",options:m,defaultValue:e.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),n("div",{key:"152b2e798fbeddcd493479fa15dcb31fe87adc69",class:"col-12"},n("form-control-text",{key:"050e2be5b9874d2e16eee050b2f9352c4c468657",name:"address_postal_code",label:"ZIP",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:h}))))))}};var O,M={exports:{}};O=M,console.info("\nIFRAME-RESIZER\n\nIframe-Resizer 5 is now available via the following two packages:\n\n * @iframe-resizer/parent\n * @iframe-resizer/child\n\nAdditionally their are also new versions of iframe-resizer for React, Vue, and jQuery.\n\nVersion 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.\n\nPlease see https://iframe-resizer.com/upgrade for more details.\n"),function(e){if("undefined"!=typeof window){var n,t,i=0,o=!1,a=!1,r=7,s="[iFrameSizer]",d=s.length,c=null,f=window.requestAnimationFrame,l=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),u={},h=null,m=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){x("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),b={};window.jQuery!==e&&((t=window.jQuery).fn?t.fn.iFrameResize||(t.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,t){C(t,e)})).end()}):k("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof e&&e.amd?e([],P):O.exports=P(),window.iFrameResize=window.iFrameResize||P()}function w(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function p(e,n,t){e.addEventListener(n,t,!1)}function g(e,n,t){e.removeEventListener(n,t,!1)}function y(e){return u[e]?u[e].log:o}function v(e,n){j("log",e,n,y(e))}function k(e,n){j("info",e,n,y(e))}function x(e,n){j("warn",e,n,!0)}function j(e,n,t,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return s+"["+function(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}(e)+"]"}(n),t)}function I(e){function n(){t("Height"),t("Width"),N((function(){H(_),S(W),m("onResized",_)}),_,"init")}function t(e){var n=Number(u[W]["max"+e]),t=Number(u[W]["min"+e]),i=e.toLowerCase(),o=Number(_[i]);v(W,"Checking "+i+" is in range "+t+"-"+n),o<t&&(o=t,v(W,"Set "+i+" to min value")),o>n&&(o=n,v(W,"Set "+i+" to max value")),_[i]=""+o}function i(e){return C.slice(C.indexOf(":")+r+e)}function o(e,n){var t,i;t=function(){var t,i;L("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),i=_.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-t.top,10),offsetLeft:parseInt(i.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},b[i=n]||(b[i]=setTimeout((function(){b[i]=null,t()}),32))}function a(e){var n=e.getBoundingClientRect();return T(W),{x:Math.floor(Number(n.left)+Number(c.x)),y:Math.floor(Number(n.top)+Number(c.y))}}function f(e){var n=e?a(_.iframe):{x:0,y:0},t={x:Number(_.width)+n.x,y:Number(_.height)+n.y};v(W,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(c=t,l(),v(W,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):x(W,"Unable to scroll to requested position, window.parentIFrame not found")}function l(){!1===m("onScroll",c)?R():S(W)}function h(e){var n={};if(0===Number(_.width)&&0===Number(_.height)){var t=i(9).split(":");n={x:t[1],y:t[0]}}else n={x:_.width,y:_.height};m(e,{iframe:_.iframe,screenX:Number(n.x),screenY:Number(n.y),type:_.type})}function m(e,n){return z(W,e,n)}var w,y,j,I,O,M,C=e.data,_={},W=null;"[iFrameResizerChild]Ready"===C?function(){for(var e in u)L("iFrame requested init",V(e),u[e].iframe,e)}():s===(""+C).slice(0,d)&&C.slice(d).split(":")[0]in u?(I=(j=C.slice(d).split(":"))[1]?parseInt(j[1],10):0,O=u[j[0]]&&u[j[0]].iframe,M=getComputedStyle(O),_={iframe:O,id:j[0],height:I+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(M)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(M),width:j[2],type:j[3]},u[W=_.id]&&(u[W].loaded=!0),(y=_.type in{true:1,false:1,undefined:1})&&v(W,"Ignoring init message from meta parent page"),!y&&function(e){var n=!0;return u[e]||(n=!1,x(_.type+" No settings for "+e+". Message was: "+C)),n}(W)&&(v(W,"Received: "+C),w=!0,null===_.iframe&&(x(W,"IFrame ("+_.id+") not found"),w=!1),w&&function(){var n,t=e.origin,i=u[W]&&u[W].checkOrigin;if(i&&""+t!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(v(W,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===t){n=!0;break}return n}():(v(W,"Checking connection is from: "+(n=u[W]&&u[W].remoteHost)),t===n)))throw new Error("Unexpected message received from: "+t+" for "+_.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(u[W]&&u[W].firstRun&&u[W]&&(u[W].firstRun=!1),_.type){case"close":F(_.iframe);break;case"message":d=i(6),v(W,"onMessage passed: {iframe: "+_.iframe.id+", message: "+d+"}"),m("onMessage",{iframe:_.iframe,message:JSON.parse(d)}),v(W,"--");break;case"mouseenter":h("onMouseEnter");break;case"mouseleave":h("onMouseLeave");break;case"autoResize":u[W].autoResize=JSON.parse(i(9));break;case"scrollTo":f(!1);break;case"scrollToOffset":f(!0);break;case"pageInfo":o(u[W]&&u[W].iframe,W),function(){function e(e,i){function a(){u[t]?o(u[t].iframe,t):n()}["scroll","resize"].forEach((function(n){v(t,e+n+" listener for sendPageInfo"),i(window,n,a)}))}function n(){e("Remove ",g)}var t=W;e("Add ",p),u[t]&&(u[t].stopPageInfo=n)}();break;case"pageInfoStop":u[W]&&u[W].stopPageInfo&&(u[W].stopPageInfo(),delete u[W].stopPageInfo);break;case"inPageLink":t=i(9).split("#")[1]||"",r=decodeURIComponent(t),(s=document.getElementById(r)||document.getElementsByName(r)[0])?(e=a(s),v(W,"Moving to in page link (#"+t+") at x: "+e.x+" y: "+e.y),c={x:e.x,y:e.y},l(),v(W,"--")):window.top===window.self?v(W,"In page link #"+t+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(t):v(W,"In page link #"+t+" not found and window.parentIFrame not found");break;case"reset":E(_);break;case"init":n(),m("onInit",_.iframe);break;default:0===Number(_.width)&&0===Number(_.height)?x("Unsupported message received ("+_.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,t,r,s,d}())):k(W,"Ignored: "+C)}function z(e,n,t){var i=null,o=null;if(u[e]){if("function"!=typeof(i=u[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=i(t)}return o}function M(e){delete u[e.id]}function F(e){var t=e.id;if(!1!==z(t,"onClose",t)){v(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){x(e)}z(t,"onClosed",t),v(t,"--"),M(e),n&&(n.disconnect(),n=null)}else v(t,"Close iframe cancelled by onClose event")}function T(n){null===c&&v(n,"Get page position: "+(c={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}).x+","+c.y)}function S(e){null!==c&&(window.scrollTo(c.x,c.y),v(e,"Set page position: "+c.x+","+c.y),R())}function R(){c=null}function E(e){v(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),T(e.id),N((function(){H(e),L("reset","reset",e.iframe,e.id)}),e,"reset")}function H(e){function n(n){a||"0"!==e[n]||(a=!0,v(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(u).forEach((function(e){!function(e){function n(n){return"0px"===(u[e]&&u[e].iframe.style[n])}u[e]&&null!==u[e].iframe.offsetParent&&(n("height")||n("width"))&&L("Visibility change","resize",u[e].iframe,e)}(e)}))}function n(n){v("window","Mutation observed: "+n[0].target+" "+n[0].type),_(e,16)}var t,i=w();i&&(t=document.querySelector("body"),new i(n).observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function t(t){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",v(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")):v("undefined","messageData id not set")}(t),n(t)}var i=e.iframe.id;u[i]&&(u[i].sizeHeight&&t("height"),u[i].sizeWidth&&t("width"))}function N(e,n,t){t!==n.type&&f&&!window.jasmine?(v(n.id,"Requesting animation frame"),f(e)):e()}function L(e,n,t,i,o){var a,r=!1;u[i=i||t.id]&&(t&&"contentWindow"in t&&null!==t.contentWindow?(v(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+(a=u[i]&&u[i].targetOrigin)),t.contentWindow.postMessage(s+n,a)):x(i,"["+e+"] IFrame("+i+") not found"),o&&u[i]&&u[i].warningTimeout&&(u[i].msgTimeout=setTimeout((function(){!u[i]||u[i].loaded||r||(r=!0,x(i,"IFrame has not responded within "+u[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),u[i].warningTimeout)))}function V(e){return e+":"+u[e].bodyMarginV1+":"+u[e].sizeWidth+":"+u[e].log+":"+u[e].interval+":"+u[e].enablePublicMethods+":"+u[e].autoResize+":"+u[e].bodyMargin+":"+u[e].heightCalculationMethod+":"+u[e].bodyBackground+":"+u[e].bodyPadding+":"+u[e].tolerance+":"+u[e].inPageLinks+":"+u[e].resizeFrom+":"+u[e].widthCalculationMethod+":"+u[e].mouseEvents}function C(t,a){function r(e){var n=e.split("Callback");if(2===n.length){var t="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[t]=this[e],delete this[e],x(c,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}var s,d,c=function(e){if("string"!=typeof e)throw new TypeError("Invaild id for iFrame. Expected String");var n;return""===e&&(t.id=(n=a&&a.id||m.id+i++,null!==document.getElementById(n)&&(n+=i++),e=n),o=(a||{}).log,v(e,"Added missing iframe ID: "+e+" ("+t.src+")")),e}(t.id);c in u&&"iFrameResizer"in t?x(c,"Ignored iFrame, already setup."):(function(e){var n;e=e||{},u[c]=Object.create(null),u[c].iframe=t,u[c].firstRun=!0,u[c].remoteHost=t.src&&t.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(r,e),function(e){for(var n in m)Object.prototype.hasOwnProperty.call(m,n)&&(u[c][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:m[n])}(e),u[c]&&(u[c].targetOrigin=!0===u[c].checkOrigin?""===(n=u[c].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(a),function(){switch(v(c,"IFrame scrolling "+(u[c]&&u[c].scrolling?"enabled":"disabled")+" for "+c),t.style.overflow=!1===(u[c]&&u[c].scrolling)?"hidden":"auto",u[c]&&u[c].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=u[c]?u[c].scrolling:"no"}}(),function(){function e(e){var n=u[c][e];1/0!==n&&0!==n&&(t.style[e]="number"==typeof n?n+"px":n,v(c,"Set "+e+" = "+t.style[e]))}function n(e){if(u[c]["min"+e]>u[c]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(u[c]&&u[c].bodyMargin)&&"0"!==(u[c]&&u[c].bodyMargin)||(u[c].bodyMarginV1=u[c].bodyMargin,u[c].bodyMargin=u[c].bodyMargin+"px"),s=V(c),(d=w())&&(n=function(e){if(!t.parentNode)return null;var n=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===t&&F(t)}))}))}));return n.observe(t.parentNode,{childList:!0}),n}(d)),p(t,"load",(function(){L("iFrame.onload",s,t,e,!0),(!u[c]||!u[c].firstRun)&&u[c]&&u[c].heightCalculationMethod in l&&E({iframe:t,height:0,width:0,type:"init"})})),L("init",s,t,e,!0),u[c]&&(u[c].iframe.iFrameResizer={close:F.bind(null,u[c].iframe),removeListeners:M.bind(null,u[c].iframe),resize:L.bind(null,"Window resize","resize",u[c].iframe),moveToAnchor:function(e){L("Move to anchor","moveToAnchor:"+e,u[c].iframe,c)},sendMessage:function(e){L("Send Message","message:"+(e=JSON.stringify(e)),u[c].iframe,c)}}))}function _(e,n){null===h&&(h=setTimeout((function(){h=null,e()}),n))}function W(){"hidden"!==document.visibilityState&&(v("document","Trigger event: Visibility change"),_((function(){A("Tab Visible","resize")}),16))}function A(e,n){Object.keys(u).forEach((function(t){(function(e){return u[e]&&"parent"===u[e].resizeFrom&&u[e].autoResize&&!u[e].firstRun})(t)&&L(e,n,u[t].iframe,t)}))}function P(){function n(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),C(n,e),t.push(n))}var t;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!f;e+=1)f=window[n[e]+"RequestAnimationFrame"];f?f=f.bind(window):v("setup","RequestAnimationFrame not supported")}(),p(window,"message",I),p(window,"resize",(function(){v("window","Trigger event: resize"),_((function(){A("Window resize","resize")}),16)})),p(document,"visibilitychange",W),p(document,"-webkit-visibilitychange",W),function(i,o){switch(t=[],function(e){e&&e.enablePublicMethods&&x("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),n.bind(e,i));break;case"object":n(i,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return t}}}();const F=M.exports;class T{constructor(e,n){this.iframe=e,this.iframeOrigin=n}postMessage(e,n){const t=Object.assign({eventType:e},n);this.iframe.contentWindow.postMessage(t,this.iframeOrigin)}addMessageListener(e){window.addEventListener("message",e)}removeMessageListener(e){window.removeEventListener("message",e)}postMessageWithResponseListener(e,n){return new Promise((t=>{const i=n=>{n.data.eventType===e&&(window.removeEventListener("message",i),t(n.data.data))};window.addEventListener("message",i),this.postMessage(e,n)}))}}const S=class{constructor(n){e(this,n),this.iframeLoaded=i(this,"iframeLoaded",7),this.dispatchMessageEvent=e=>{const{eventType:n,data:t}=e.data;(null==t?void 0:t.id)===this.inputId&&("focused"===n&&(this.isFocused=!0),"blurred"===n&&(this.isFocused=!1))},this.isFocused=!1,this.isValid=!0,this.errorText=void 0,this.inputId=void 0,this.label=void 0,this.iframeOrigin=void 0}disconnectedCallback(){this.frameService.removeMessageListener(this.dispatchMessageEvent)}async validate(){const e=await this.frameService.postMessageWithResponseListener("validate");return this.isValid=e.isValid,this.errorText=e.error.message,e}async tokenize(e,n,t){return this.frameService.postMessageWithResponseListener("tokenize",{clientId:e,paymentMethodMetadata:n,account:t,componentVersion:w.version})}initializeFrameCommunicationService(){var e;this.frameService=new T(this.iframeElement,this.iframeOrigin),null===(e=this.frameService)||void 0===e||e.addMessageListener(this.dispatchMessageEvent)}get part(){return this.isFocused&&!this.isValid?g:this.isValid?this.isFocused?v:k:y}get style(){return this.isFocused?this.isValid?p.focused:p.focusedAndInvalid:null}get urlParams(){const e=Object.fromEntries(Object.entries(p.fontStyles).map((([e,n])=>[e,btoa(String(n))])));return new URLSearchParams(e).toString()}render(){return n(t,{key:"0c7696f592d079436b8a91d33474f74de2922917",class:"form-group d-flex flex-column"},n("div",{key:"947cd055eb77e78ec719da130fab97ca093e4954",style:{visibility:this.iframeLoaded?"visible":"hidden",height:this.iframeLoaded?"auto":"0"}},n("label",{key:"59dfc89fb0ffb5163b9ea6c7eef12b1ff5bab5d2",class:"form-label",htmlFor:"",part:x},this.label||""),n("div",{key:"cad88a50d0381285a1c125e1331c3e401327554d",class:"p-0 d-flex form-control "+(this.isValid?"":"is-invalid"),part:this.part,style:Object.assign(Object.assign({},this.style),{overflow:"hidden"})},n("iframe",{key:"bf4af4cc965ddd4376b5780ea53824cb268c1952",id:this.inputId,name:this.inputId,src:`${this.iframeOrigin}?${this.urlParams}`,ref:e=>{this.iframeElement=e,this.initializeFrameCommunicationService()},width:"100%",onLoad:()=>{F({log:!1,onResized:()=>{this.iframeLoaded.emit()}},this.iframeElement)}})),n(b,{key:"785e5ad09f32240299116d906f5a5dbf3f03ed5e",errorText:this.errorText,name:this.inputId})))}get el(){return o(this)}},R=class{constructor(n){e(this,n),this.inputHandler=(e,n)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:n}))},this.legend=void 0,this.formController=void 0,this.billingInfo=void 0,this.errors={}}componentWillLoad(){this.formController=new r(I)}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate()}}render(){const e=this.formController.getInitialValues();return n(t,{key:"3d70df5d84e1ee5bf9dfac6802d363e06341174e"},n("form",{key:"f91ec1a5078461075c419be4402a8df393bae499"},n("fieldset",{key:"25ccb09388339cab44e70319c9d918c51d6049bf"},this.legend&&n("legend",{key:"292c52a34f7eba726121c68ced16e91d7f442b7f"},this.legend),n("div",{key:"a29e228daceb269c8d2137aed1cfe6db8eb7d821",class:"row gy-3"},n("div",{key:"b4bf02f82a7048051fe72c409da6612533ee2645",class:"col-12"},n("form-control-text",{key:"43ef0840e700024c2aeab32cf8e2f4bd3b360de6",name:"address_postal_code",label:"ZIP",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:h}))))))}};export{z as billing_form,S as iframe_input,R as postal_form}
@@ -1 +0,0 @@
1
- import{r as s,c as i,h as t}from"./p-2783e363.js";import{f as e}from"./p-f8fccf44.js";import{C as o}from"./p-1366a019.js";import{a}from"./p-9dd8685c.js";import{i as d,v as c,H as r,a as h}from"./p-673c1bca.js";import{B as n}from"./p-bfc2d88a.js";import{S as l}from"./p-bfe9748b.js";import{t as f,a0 as v}from"./p-bf195b35.js";import{S as m}from"./p-56c7fc8d.js";import{H as p}from"./p-275c3dc9.js";import"./p-f20b6ce1.js";const b=class{constructor(t){s(this,t),this.submitEvent=i(this,"submit-event",7),this.errorEvent=i(this,"error-event",7),this.loaded=i(this,"loaded",7),this.completeCheckout=async s=>{this.complete({payment:s,onSuccess:this.onSubmitted,onError:this.onError})},this.onSubmitted=s=>{this.submitEvent.emit({response:s}),this.renderState="success"},this.onError=({error:s,code:i,severity:t})=>{this.serverError=s,this.errorEvent.emit({errorCode:i,message:s,severity:t}),this.renderState="error"},this.authToken=void 0,this.getCheckout=void 0,this.complete=void 0,this.checkoutId=void 0,this.iframeOrigin=void 0,this.disableCreditCard=void 0,this.disableBankAccount=void 0,this.disableBnpl=void 0,this.disablePaymentMethodGroup=void 0,this.hideCardBillingForm=void 0,this.hasLoadedFonts=!1,this.checkout=void 0,this.serverError=void 0,this.renderState="loading",this.creatingNewPaymentMethod=!1,this.insuranceToggled=!1}async fillBillingForm(s){this.paymentMethodOptionsRef.fillBillingForm(s)}componentWillLoad(){this.getCheckout&&(this.fetchData(),d("set",(s=>{const i=h[s];void 0!==i&&(this.insuranceToggled=i,this.fetchData())})))}fetchData(){this.renderState="loading",this.getCheckout({onSuccess:({checkout:s})=>{this.checkout=new o(s);const{status:i}=this.checkout;this.loaded.emit({checkout_status:i}),this.renderState="success"},onError:({error:s,code:i,severity:t})=>{this.serverError=s,this.renderState="error",this.errorEvent.emit({errorCode:i,message:s,severity:t})}})}async submit(s){var i;s.preventDefault(),this.renderState="loading";const t=c(),e=await this.paymentMethodOptionsRef.resolvePaymentMethod(t);e.validationError?this.renderState="error":e.error?(this.renderState="error",this.serverError=e.error.message,this.onError({code:e.error.code,error:e.error.message,severity:a.ERROR})):e.token?this.completeCheckout({payment_mode:"ecom",payment_token:e.token}):"success"===(null===(i=e.bnpl)||void 0===i?void 0:i.status)?this.completeCheckout({payment_mode:"bnpl"}):this.renderState="error"}get isLoading(){return"loading"===this.renderState}get isError(){return"error"===this.renderState}get paymentType(){var s,i,e,o,a;return t("section",null,t("div",{class:!this.isLoading&&"visually-hidden"},t(m,{height:"300px"})),t("div",{class:this.isLoading&&"visually-hidden"},t("justifi-payment-method-options",{ref:s=>this.paymentMethodOptionsRef=s,"show-card":!this.disableCreditCard,"show-ach":!this.disableBankAccount,"show-bnpl":!this.disableBnpl,paymentMethodGroupId:null===(s=this.checkout)||void 0===s?void 0:s.payment_method_group_id,"show-saved-payment-methods":!this.disablePaymentMethodGroup,hideCardBillingForm:this.hideCardBillingForm,bnpl:null===(i=this.checkout)||void 0===i?void 0:i.bnpl,authToken:this.authToken,"account-id":null===(e=this.checkout)||void 0===e?void 0:e.account_id,savedPaymentMethods:(null===(o=this.checkout)||void 0===o?void 0:o.payment_methods)||[],paymentAmount:null===(a=this.checkout)||void 0===a?void 0:a.payment_amount,insuranceToggled:this.insuranceToggled,iframeOrigin:this.iframeOrigin})))}get summary(){var s,i;return t("section",null,t("div",{class:!this.isLoading&&"visually-hidden"},t(m,{height:"24px"})),t("div",{class:this.isLoading&&"visually-hidden"},t("div",{part:f},null===(s=this.checkout)||void 0===s?void 0:s.payment_description),t("div",null,t("span",{part:f},"Total")," ",t("span",{part:f},e(+(null===(i=this.checkout)||void 0===i?void 0:i.total_amount))))))}render(){return t(l,{key:"5a3131312064d08358320f15562cd3130f125c4c"},t("div",{key:"a048e80b026c9cebbed53fac3acffb3db49599c2",class:"row gy-3 jfi-checkout-core"},t("div",{key:"2c99697464195f90d96cc58ad68d2fd6147b80b1",class:"col-12",part:v},t(r,{key:"1b49acf33c004c11554825f5cb1341a3224c452c",text:"Summary",class:"fs-5 fw-bold pb-3"}),this.summary),t("div",{key:"f7513e8c9cb88f77cddae02c299e66435863ba72",class:"col-12"},t("slot",{key:"0ae73bf9497ac5d458a816ede988f6176cdbc30f",name:"insurance"})),t("div",{key:"4395884ff39c9e2919af1cc8328a66aa409f5389",class:"col-12 mt-4"},t(r,{key:"26b5631b8c3fc3f8bd2cf8c6b5fb14db49e5e187",text:"Payment",class:"fs-5 fw-bold pb-3"}),t(p,{key:"abb63414930c847d1db7680e81bed30af974344a",text:"Select payment type",class:"fs-6 fw-bold lh-lg"}),t("div",{key:"fdbbbfa789f092d9f90ad15f755d529d399e2bc4",class:"d-flex flex-column"},this.paymentType)),t("div",{key:"a0d8329b680e6a30da5d5a11b51e2e1018068674",class:"col-12"},t("div",{key:"40f932b56cdd2e68bf2a1e023939d3ce7764eedb",class:"d-flex justify-content-end"},t(n,{key:"c98e7e15f6258a700c3dc96003048f3b5c84e582",type:"submit",variant:"primary",onClick:s=>this.submit(s),disabled:this.isLoading,isLoading:this.isLoading,style:{width:"100%"}},"Pay")))))}};export{b as justifi_checkout_core}
@@ -1 +0,0 @@
1
- import{A as t}from"./p-5f6b4bc9.js";import"./p-9dd8685c.js";import"./p-1366a019.js";import"./p-56f6ce4c.js";import"./p-3f5e6602.js";import"./p-2a9d7f6b.js";import"./p-61f0a2ce.js";class p{async fetchPayments(p,s,a,i="https://wc-proxy.justifi.ai"){return t({authToken:s,apiOrigin:i}).get(`account/${p}/payments`,a)}async fetchPayment(p,s){const a=`payments/${p}`;return t({authToken:s,apiOrigin:"https://wc-proxy.justifi.ai"}).get(a)}}export{p as P}
@@ -1 +0,0 @@
1
- import{c as e}from"./p-01033194.js";import{b as s,w as n,e as a,p as i,d as r,a as t,i as _,t as u,c as o,r as c,f as b,g as l,h as m,j as p,s as d,o as g}from"./p-bf12999f.js";const y=c=>{const b=e({legal_name:s.required("Enter legal name"),website_url:n.required("Enter business website url"),email:a.required("Enter business email"),phone:i.required("Enter phone number"),doing_business_as:r.nullable(),classification:t.required("Select business classification"),industry:_.required("Enter a business industry"),tax_id:u.required("Enter tax id, SSN, or EIN"),date_of_incorporation:o.required("Enter date of incorporation")}),l=e({legal_name:s.required("Enter legal name"),website_url:n.nullable(),email:a.nullable(),phone:i.nullable(),doing_business_as:r.nullable(),classification:t.nullable(),industry:_.nullable(),tax_id:u.nullable(),date_of_incorporation:o.nullable()});return c?l:b},v=s=>{const n=e({business_revenue:c.required("Enter business revenue"),business_payment_volume:b.required("Enter business payment volume"),business_when_service_received:l.required("Select when service is received"),business_recurring_payments:m.required("Select recurring payments"),business_recurring_payments_percentage:p,business_seasonal:d.required("Select business seasonal"),business_other_payment_details:g.nullable()}),a=e({business_revenue:c.nullable(),business_payment_volume:b.nullable(),business_when_service_received:l.nullable(),business_recurring_payments:m.nullable(),business_recurring_payments_percentage:p,business_seasonal:d.nullable(),business_other_payment_details:g.nullable()});return s?a:n};export{v as a,y as b}
@@ -1 +0,0 @@
1
- import{A as t}from"./p-5f6b4bc9.js";import"./p-9dd8685c.js";import"./p-1366a019.js";import"./p-56f6ce4c.js";import"./p-3f5e6602.js";import"./p-2a9d7f6b.js";import"./p-61f0a2ce.js";class c{async fetchCheckout(c,o){const p=`checkouts/${o}`;return t({authToken:c,apiOrigin:"https://wc-proxy.justifi.ai"}).get(p)}async fetchCheckouts(c,o,p,s){s||(s="https://wc-proxy.justifi.ai");const i={Account:c};return t({authToken:o,apiOrigin:s}).get("checkouts",p,null,i)}async complete(c,o,p){const s=`checkouts/${o}/complete`,i={payment_mode:p.payment_mode};return p.payment_token&&(i.payment_token=p.payment_token),t({authToken:c,apiOrigin:"https://wc-proxy.justifi.ai"}).post(s,i)}}export{c as C}
@@ -1 +0,0 @@
1
- import{h as t}from"./p-2783e363.js";import{s as e}from"./p-bf195b35.js";const s=({component:s="div",height:o,width:r,className:i,styles:a={}})=>{const c=Object.assign(Object.assign({},a),{width:r,height:o});return t(s,{class:`${i} skeleton`,style:c,part:e,"aria-hidden":"true"})};export{s as S}
@@ -1 +0,0 @@
1
- import{h as t}from"./p-2783e363.js";import{X as s,Y as e,W as r}from"./p-bf195b35.js";import{S as a}from"./p-142bfae3.js";const n=e=>{const{columnSpan:r,isEmpty:a}=e;return r&&a?t("tr",null,t("td",{class:"empty-state",part:s,colSpan:r,style:{textAlign:"center"}},"No results")):null},l=s=>{const{columnSpan:r,errorMessage:a}=s;return r&&a?t("tr",null,t("td",{class:"error-state",part:e,colSpan:r,"data-test-id":"table-error-state",style:{textAlign:"center"}},"An unexpected error occurred: ",a)):null},o=s=>{const{columnSpan:e,isLoading:n}=s;return e&&n?t("tr",null,t("td",{class:"loading-state",part:r,colSpan:e,style:{textAlign:"center"}},t(a,null))):null};class c{get columnData(){return this.columnKeys.map((t=>this.tableColumns[t]()))}get rowData(){return this.collection.map(((t,s)=>this.columnKeys.map((e=>this.tableCells[e](t,s)))))}set collectionData(t){this.collection=t}constructor(t,s,e,r){this.columnKeys=s.split(","),this.collection=t,this.tableColumns=e,this.tableCells=r}}var i;!function(t){t.row="tableRow",t.next="nextPage",t.previous="previousPage"}(i||(i={}));export{i as T,c as a,o as b,n as c,l as d}
@@ -1 +0,0 @@
1
- import{p as t}from"./p-de03d0f8.js";import{A as s}from"./p-5f6b4bc9.js";class i{async record(t){return s({apiOrigin:"https://wc-proxy.justifi.ai"}).post("analytics",t)}}class e{constructor(t){this.handleCustomEvent=async t=>{await this.service.record(t)},window.location.origin.includes("localhost")||window.location.origin.includes("storybook")||(this.service=new i,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=>{"function"==typeof this.componentInstance.addEventListener&&this.componentInstance.addEventListener(t,(s=>this.handleCustomEvent({event_type:t,data:Object.assign(Object.assign({},this.basicData),{error:s.detail})})))}))}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.eventEmitters.forEach((t=>{this.componentInstance.removeEventListener(t,this.handleCustomEvent)}))}}const a=async()=>{const s=t.version,i=t.name,e=await(async t=>{const s=await fetch("https://registry.npmjs.org/"+t+"/latest");return(await s.json()).version})(i),a=e.replace(/-rc.*/,""),n=s.split("."),o=e.split(".");n[0]!==o[0]&&console.warn(`The package ${i} is out of date. The latest version is ${a}. Please update.`)};export{e as J,a as c}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i,H as a}from"./p-2783e363.js";import{a9 as e,aa as h,ab as o,ac as r,ad as c,l as d}from"./p-bf195b35.js";const f=class{constructor(i){t(this,i),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.inputHandler(s,this.value),this.formControlInput.emit({name:s,value:this.value})},this.isFocused=!1,this.label=void 0,this.name=void 0,this.value=void 0,this.helpText=void 0,this.inputHandler=void 0,this.disabled=void 0,this.errorText=void 0,this.checked=void 0}get part(){return this.errorText?e:this.isFocused&&this.checked?h:this.checked?o:this.isFocused?r:c}render(){return i(a,{key:"e226d9098a8b2790320222699b3efcd510d6aa88",class:"form-group d-flex flex-column"},i("div",{key:"2a295d96e1f4dc8a8aaa71fbf07a10af65801366",class:"form-check"},i("input",{key:"f564dfc06ea6b86103c39340d63911ba1a9b7f1e",ref:t=>this.radioElement=t,type:"radio",id:`${this.name}-${this.value}`,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onChange:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,value:this.value,checked:this.checked}),i("label",{key:"7c44f86c6320e5abdf1215982ba77e0d02daef35",class:"form-check-label",htmlFor:`${this.name}-${this.value}`,part:d},this.label)),i("form-control-help-text",{key:"20f3ddc825fab11e35fd96f6a5b708650f168e23",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"12c7997266c559850c431bb3091504c419b7f5de",errorText:this.errorText,name:this.name}))}};export{f as form_control_radio}
@@ -1 +0,0 @@
1
- import{r as e,h as a,H as t}from"./p-2783e363.js";import{_ as d,h as l}from"./p-bf195b35.js";import{a as i,r as s,s as c,b as o}from"./p-c9b78275.js";import{C as r,T as n,P as f,S as b}from"./p-525db3e8.js";import{C as u}from"./p-5d1d2fd7.js";import{d as h}from"./p-1ff8810b.js";import{S as m}from"./p-6078a370.js";import{n as v}from"./p-e3c22aa9.js";const y=class{constructor(a){e(this,a),this.text=void 0,this.hideAlert=void 0}render(){return this.text?this.hideAlert?null:a("div",{class:"alert alert-danger d-flex align-items-center",role:"alert",part:d},a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",class:"bi bi-exclamation-triangle-fill flex-shrink-0 me-2",viewBox:"0 0 16 16",role:"img","aria-label":"Warning:"},a("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})),a("div",null,this.text)):null}},p=class{constructor(a){e(this,a),this.formController=void 0,this.errors={},this.additional_questions={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.additional_questions=Object.assign({},e.additional_questions)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{additional_questions:Object.assign(Object.assign({},this.formController.values.getValue().additional_questions),{[e]:a})}))}render(){var e,d,o,n,f,b,u,h,m,v,y,p,k,x;const j=this.formController.getInitialValues().additional_questions;return a(t,{key:"6e2549b906fec8928dae89a4f143916a2b50eff3"},a("fieldset",{key:"525eab0debf75c3996c45128e9431086e49c3850"},a("legend",{key:"adeb6e2a32fb4f9e991d7b4843569116e336743c",part:l},"Additional Questions"),a("div",{key:"29b55613d32bc434017fc561033c6c9b8800666d",class:"row gy-3"},a("div",{key:"80c1d6b2c5e52c5fe0f8b9c3591bb315e51f7c55",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"e69e6c75d3a6add592e90e3709d7b7ff694ebfe0",name:"business_revenue",label:"What is the business' estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(d=null===(e=this.errors)||void 0===e?void 0:e.additional_questions)||void 0===d?void 0:d.business_revenue,defaultValue:null==j?void 0:j.business_revenue,maskOptions:r.WHOLE})),a("div",{key:"af0e66f6f647ed7248e0d861707cc378c85b0dce",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"e1f6af9f7537bf4d4e96739ff7537be01ca9371c",name:"business_payment_volume",label:"What is the business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(n=null===(o=this.errors)||void 0===o?void 0:o.additional_questions)||void 0===n?void 0:n.business_payment_volume,defaultValue:null==j?void 0:j.business_payment_volume,maskOptions:r.WHOLE})),a("div",{key:"b914a2f8abd79eab79d284f1ece9850f4a417893",class:"col-12"},a("form-control-select",{key:"8954dfe23f7984810fbae657ac9995e40253b377",name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(b=null===(f=this.errors)||void 0===f?void 0:f.additional_questions)||void 0===b?void 0:b.business_when_service_received,options:i,defaultValue:null==j?void 0:j.business_when_service_received})),a("div",{key:"da533644fd51e8678fc80d49c7db0ce20a803019",class:"col-12"},a("form-control-select",{key:"06c23865a5bbda38b294dd4edfee6ace942fb732",name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(h=null===(u=this.errors)||void 0===u?void 0:u.additional_questions)||void 0===h?void 0:h.business_recurring_payments,options:s,defaultValue:null==j?void 0:j.business_recurring_payments})),a("div",{key:"bb492db9aea205138ef76cf6fc7c3f686bb41a79",class:"col-12"},a("form-control-text",{key:"a3f900076730b504587619ff9c4c13ecce36f541",name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(v=null===(m=this.errors)||void 0===m?void 0:m.additional_questions)||void 0===v?void 0:v.business_recurring_payments_percentage,defaultValue:null==j?void 0:j.business_recurring_payments_percentage})),a("div",{key:"e2f56ae5d9654bdb1077689a1ef59c9047e97bda",class:"col-12"},a("form-control-select",{key:"697e41186b4c82046e50288594681117bf8dd6fe",name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(p=null===(y=this.errors)||void 0===y?void 0:y.additional_questions)||void 0===p?void 0:p.business_seasonal,options:c,defaultValue:null==j?void 0:j.business_seasonal})),a("div",{key:"2e2f5d17b70604b9425997d9e4e0dfafea933448",class:"col-12"},a("form-control-text",{key:"27d305b06e7bc2d66084c9d04ebb785883564bbd",name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business?",inputHandler:this.inputHandler,errorText:null===(x=null===(k=this.errors)||void 0===k?void 0:k.additional_questions)||void 0===x?void 0:x.business_other_payment_details,defaultValue:null==j?void 0:j.business_other_payment_details})))))}},k=class{constructor(a){e(this,a),this.formController=void 0,this.errors={},this.coreInfo={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.values.subscribe((e=>this.coreInfo=Object.assign({},new u(e)))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:a}))}render(){const e=this.formController.getInitialValues();return a(t,{key:"71096918610aa3068cf89fbf9f3537b7f49942c6"},a("fieldset",{key:"502e6c3e3ae05256c6e5e8d315b4aa208ce88953"},a("legend",{key:"ccbe69b2323e815dc77b2602a96bdc4238fcef03",part:l},"General Info"),a("div",{key:"19a70fd7a361e5de4c88e14cbff12d88f78233e3",class:"row gy-3"},a("div",{key:"611bcc2bd35db7b6940a5b7ae53c54b55b855dd6",class:"col-12"},a("form-control-text",{key:"a9de594470c896aff0803c34a313c38467f7c82a",name:"legal_name",label:"Legal Name",defaultValue:e.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler})),a("div",{key:"ed742f64b1c344587127ce94ba1d17206bbdebb3",class:"col-12"},a("form-control-text",{key:"abb41f3aa059c180882066e21fe0239838cd9956",name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:e.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler})),a("div",{key:"3659fb0dd0419fd4d6f0205bc9e32aef05f56aa1",class:"col-12 col-md-8"},a("form-control-select",{key:"5bbbe7cd7fe0a7e8788e36855ff18390bf8df301",name:"classification",label:"Business Classification",options:o,defaultValue:e.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),a("div",{key:"5007e6269c59878e6388164ff8d5163090b87585",class:"col-12 col-md-4"},a("form-control-date",{key:"4fa7c7f001ced10c746d2891fe3efd8336542907",name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:e.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),a("div",{key:"e245a4ac6e0904c9742a0d1d220cb95c9fe63497",class:"col-12 col-md-6"},a("form-control-text",{key:"bc7367525a45c221c576f2b31c1a95680a95937a",name:"industry",label:"Industry",defaultValue:e.industry,errorText:this.errors.industry,inputHandler:this.inputHandler})),a("div",{key:"6475831320818242eda7ac045dcdd076fbc4245c",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"d68e8046fa42f4d5976aa44a7769b14fc4cda416",name:"tax_id",label:"Tax ID",defaultValue:e.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:n.US})),a("div",{key:"f59cda0241c1ad92d0d995e330b92079ba75737f",class:"col-12"},a("form-control-text",{key:"8243464d1c75897c1e3423e5045f34b81b425a9e",name:"website_url",label:"Website URL",defaultValue:e.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler})),a("div",{key:"c65251b25e0996277f7d0e11d25d6340ccfc11e7",class:"col-12 col-md-6"},a("form-control-text",{key:"fe3a4eff53786f49fbfe24afb048f861bf7a469a",name:"email",label:"Email Address",defaultValue:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"b1d909e5f937dcbbac0082b293571904c0c81396",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"83238873cbd8ccc08a5c3af1bd87a7965fefb5f8",name:"phone",label:"Phone Number",defaultValue:e.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:f.US})))))}},x=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{[e]:a})}))},this.onAddressFormUpdate=e=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{address:Object.assign(Object.assign({},this.formController.values.getValue().representative.address),e)})}))},this.onDateOfBirthUpdate=e=>{const a=h(e.detail);this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{dob_day:a.dob_day,dob_month:a.dob_month,dob_year:a.dob_year})}))},this.formController=void 0,this.errors={},this.representative={}}get identificationNumberLabel(){return this.representative.ssn_last4?"Update SSN (optional)":"SSN"}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e.representative))),this.formController.values.subscribe((e=>this.representative=Object.assign({},e.representative)))}render(){const e=this.formController.getInitialValues().representative;return a(t,{key:"eb9c09602a11107abc465463bf7e7cdbeb98cede"},a("fieldset",{key:"1f2a035f9796c29269a7dcd7ca874c73ed6493bb"},a("legend",{key:"1aeaba7f119f15e1ffa75cd58d77608fe51a60c8",part:l},"Representative"),a("div",{key:"5d09c634135046c79b4ac80b5c1cfee9fbd26ce0",class:"row gy-3"},a("div",{key:"6f03250bf88cc79ff07a1de68fef97a41a376aec",class:"col-12 col-md-8"},a("form-control-text",{key:"d6696ab573a305e277db56a578eaeb3fc4adf9ff",name:"name",label:"Full Name",defaultValue:null==e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"fd6ddc83d99b4f86f29566077249a23724741438",class:"col-12 col-md-4"},a("form-control-text",{key:"632b12a09042ffdaf85d2fafecfab1736bbc8d36",name:"title",label:"Title",defaultValue:null==e?void 0:e.title,errorText:this.errors.title,inputHandler:this.inputHandler})),a("div",{key:"65842c9cb8c616806631bd1d2902342cebf5326e",class:"col-12 col-md-6"},a("form-control-text",{key:"8e1f64cc7f97e4b337dfcda6494fca5750656130",name:"email",label:"Email Address",defaultValue:null==e?void 0:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"e050604c8d71e1d07f916822fbb73da4c3f5e034",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"a5bba8b362ce6070efc65e88ee80880ce855e624",name:"phone",label:"Phone Number",defaultValue:null==e?void 0:e.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:f.US})),a("div",{key:"dcbd23ab368e630ebaea9e8bdbb6985a98d5fbeb",class:"col-12 col-md-4"},a("form-control-date",{key:"05e0e255549ad8f0760102aab5cbfe444cae5996",name:"dob_full",label:"Birth Date",defaultValue:null==e?void 0:e.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:this.onDateOfBirthUpdate})),a("div",{key:"764595ed842fd09221ef71d5c921a9ebe947556d",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"91761e52dd724a27e135a3db8b7c85643f7891d9",name:"identification_number",label:this.identificationNumberLabel,defaultValue:null==e?void 0:e.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:b})),a("div",{key:"4be6739744d6d9fcd060ed9d894502f35396a9a9",class:"col-12"},a("justifi-identity-address-form",{key:"7c9d98057e908a068aa0783b10b2bd0f634d7ab9",errors:this.errors.address,defaultValues:null==e?void 0:e.address,handleFormUpdate:this.onAddressFormUpdate})))))}},j=class{constructor(a){e(this,a),this.formController=void 0,this.errors={},this.legal_address=void 0,this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.legal_address=Object.assign({},e.legal_address)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{legal_address:Object.assign(Object.assign({},this.formController.values.getValue().legal_address),{[e]:a})}))}render(){var e,d,i,s,c,o,r,n,f,b,u,h;const y=this.formController.getInitialValues().legal_address;return a(t,{key:"129b2ec053708454db5a515fdae9a7fba5289336"},a("fieldset",{key:"6af5c9469acc432ea01ff404af25727bd444abc7"},a("legend",{key:"1af149db608a13d18142aaea83f9ed2e8271fdc0",part:l},"Business Legal Address"),a("div",{key:"805c6ae992ebed34937b9a2622f50a7f99c7d0e6",class:"row gy-3"},a("div",{key:"78750dc68bcc6782bc4a71cfd14d417e980a57a6",class:"col-12"},a("form-control-text",{key:"18a75e38a7a5fbfcbbbce56e4967ce34c5618c8e",name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.line1,errorText:null===(d=null===(e=this.errors)||void 0===e?void 0:e.legal_address)||void 0===d?void 0:d.line1})),a("div",{key:"676622c84785edfafa3413359d4985d26a734985",class:"col-12"},a("form-control-text",{key:"e8467f96595d240f5fc93585e472ad844cc49143",name:"line2",label:"Address Line 2",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.line2,errorText:null===(s=null===(i=this.errors)||void 0===i?void 0:i.legal_address)||void 0===s?void 0:s.line2})),a("div",{key:"01556012d9335d23c14e130ca72b6e75028bcb36",class:"col-12"},a("form-control-text",{key:"c08dcd0ef726ff714d60de26492ced763a7d32ff",name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.city,errorText:null===(o=null===(c=this.errors)||void 0===c?void 0:c.legal_address)||void 0===o?void 0:o.city})),a("div",{key:"ad811869e742f265a5441c6f36c2a55fa0b07952",class:"col-12"},a("form-control-select",{key:"47cc4b15578257f3c1fdee7896d28da94b5aaa16",name:"state",label:"State",options:m,inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.state,errorText:null===(n=null===(r=this.errors)||void 0===r?void 0:r.legal_address)||void 0===n?void 0:n.state})),a("div",{key:"f732fd2ed3967ee7fd602f41c62efd24cf6038eb",class:"col-12"},a("form-control-text",{key:"0431a63d11beb6682a2544d2483901f7fffa77bd",name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.postal_code,errorText:null===(b=null===(f=this.errors)||void 0===f?void 0:f.legal_address)||void 0===b?void 0:b.postal_code,maxLength:5,keyDownHandler:v})),a("div",{key:"cca67b0cd006f6cf9f9bbfe147507eb0ac6fecca",class:"col-12"},a("form-control-select",{key:"f561947f9443ea6f56d7ae31d44a69e2462c0751",name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.country,errorText:null===(h=null===(u=this.errors)||void 0===u?void 0:u.legal_address)||void 0===h?void 0:h.country,disabled:!0})))))}};export{y as form_alert,p as justifi_additional_questions,k as justifi_business_core_info,x as justifi_business_representative,j as justifi_legal_address_form}
@@ -1 +0,0 @@
1
- let n;const t=new Uint8Array(16);function r(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(t)}const o=[];for(let n=0;n<256;++n)o.push((n+256).toString(16).slice(1));const e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function c(n,t,c){if(e.randomUUID&&!t&&!n)return e.randomUUID();const u=(n=n||{}).random||(n.rng||r)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){c=c||0;for(let n=0;n<16;++n)t[c+n]=u[n];return t}return function(n,t=0){return o[n[t+0]]+o[n[t+1]]+o[n[t+2]]+o[n[t+3]]+"-"+o[n[t+4]]+o[n[t+5]]+"-"+o[n[t+6]]+o[n[t+7]]+"-"+o[n[t+8]]+o[n[t+9]]+"-"+o[n[t+10]]+o[n[t+11]]+o[n[t+12]]+o[n[t+13]]+o[n[t+14]]+o[n[t+15]]}(u)}const u=({authToken:n,apiOrigin:t})=>{async function r(r,o,e,u,i,a){const p=`${t}/v1/${r}`,s=e?`${p}?${new URLSearchParams(e)}`:p,y=await async function(){return n?{Authorization:`Bearer ${n}`,"Idempotency-Key":c(),"Content-Type":"application/json"}:{"Content-Type":"application/json"}}(),f=Object.assign(Object.assign({},y),a),d=await fetch(s,{method:o,headers:f,body:u,signal:i});if(d)return 204===d.status?{}:d.json();!function(n){console.error(`Error fetching from ${n}`)}(s)}return{get:async function(n,t,o,e){return r(n,"GET",t,null,o,e)},post:async function(n,t,o,e,c){return r(n,"POST",o,JSON.stringify(t),e,c)},put:async function(n,t,o,e){return r(n,"PUT",o,JSON.stringify(t),e)},patch:async function(n,t,o,e){return r(n,"PATCH",o,JSON.stringify(t),e)},destroy:async function(n,t,o){return r(n,"DELETE",t,null,o)}}};export{u as A}