@justifi/webcomponents 4.17.0 → 4.18.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 (373) hide show
  1. package/dist/cjs/{Analytics-80336968.js → Analytics-d4aa8c07.js} +1 -1
  2. package/dist/cjs/additional-questions-details_5.cjs.entry.js +12 -12
  3. package/dist/cjs/business-details-core.cjs.entry.js +6 -9
  4. package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
  5. package/dist/cjs/form-control-checkbox_5.cjs.entry.js +7 -7
  6. package/dist/cjs/form-control-date.cjs.entry.js +43 -0
  7. package/dist/cjs/form-control-error-text_2.cjs.entry.js +36 -0
  8. package/dist/cjs/form-control-file.cjs.entry.js +1 -1
  9. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  10. package/dist/cjs/{form-control-date_3.cjs.entry.js → form-control-number-masked_2.cjs.entry.js} +2 -39
  11. package/dist/cjs/form-control-number.cjs.entry.js +1 -1
  12. package/dist/cjs/{form-control-error-text_4.cjs.entry.js → form-control-select_2.cjs.entry.js} +1 -31
  13. package/dist/cjs/get-payout-csv-e4e4771a.js +48 -0
  14. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
  15. package/dist/cjs/{index-b4498996.js → index-fb499e95.js} +15 -3
  16. package/dist/cjs/{insurance-state-3f044af7.js → insurance-state-80e24caf.js} +1 -1
  17. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +3 -3
  18. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
  19. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +6 -5
  20. package/dist/cjs/justifi-business-details.cjs.entry.js +4 -4
  21. package/dist/cjs/justifi-business-form.cjs.entry.js +7 -6
  22. package/dist/cjs/justifi-business-list.cjs.entry.js +3 -6
  23. package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
  24. package/dist/cjs/justifi-checkout-core.cjs.entry.js +9 -5
  25. package/dist/cjs/justifi-checkout.cjs.entry.js +3 -3
  26. package/dist/cjs/justifi-details.cjs.entry.js +4 -7
  27. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
  28. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +10 -7
  29. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +3 -6
  30. package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
  31. package/dist/cjs/justifi-payment-form.cjs.entry.js +8 -7
  32. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
  33. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +3 -3
  34. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +7 -2
  35. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +4 -8
  36. package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
  37. package/dist/cjs/justifi-payout-details.cjs.entry.js +15 -10
  38. package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -12
  39. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +3 -6
  40. package/dist/cjs/justifi-refund-form.cjs.entry.js +4 -3
  41. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +13 -8
  42. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -3
  43. package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
  44. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +4 -7
  45. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +2 -2
  46. package/dist/cjs/justifi-table_2.cjs.entry.js +8 -12
  47. package/dist/cjs/loader.cjs.js +2 -2
  48. package/dist/cjs/{package-7b63c02b.js → package-5fee1ffb.js} +1 -1
  49. package/dist/cjs/{payload-parsers-78445405.js → payload-parsers-1cbc3b57.js} +2 -0
  50. package/dist/cjs/payment-details-core.cjs.entry.js +10 -13
  51. package/dist/cjs/payments-list-core.cjs.entry.js +6 -6
  52. package/dist/cjs/payout-details-core.cjs.entry.js +18 -7
  53. package/dist/cjs/payouts-list-core.cjs.entry.js +28 -7
  54. package/dist/cjs/styled-host-b8bed12a.js +14 -0
  55. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +6 -22
  56. package/dist/cjs/subaccount-bank-details.cjs.entry.js +3 -7
  57. package/dist/cjs/subaccount-terms-details.cjs.entry.js +3 -7
  58. package/dist/cjs/{utils-742da2e3.js → utils-8c3bf659.js} +1 -1
  59. package/dist/cjs/{utils-0c3168ef.js → utils-c1d2e426.js} +1 -1
  60. package/dist/cjs/webcomponents.cjs.js +2 -2
  61. package/dist/collection/api/services/payout.service.js +5 -0
  62. package/dist/collection/assets/download-icon.js +2 -0
  63. package/dist/collection/components/billing-form/billing-form.css +2 -8162
  64. package/dist/collection/components/billing-form/billing-form.js +4 -3
  65. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +2 -3
  66. package/dist/collection/components/business-details/business-details-core.js +5 -14
  67. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -3
  68. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +2 -3
  69. package/dist/collection/components/business-details/owner-details/owner-details.js +2 -3
  70. package/dist/collection/components/business-details/representative-details/representative-details.js +2 -3
  71. package/dist/collection/components/business-details/shared-business-details.css +3 -0
  72. package/dist/collection/components/business-forms/business-form/business-form.css +5 -8768
  73. package/dist/collection/components/business-forms/business-form/business-form.js +4 -3
  74. package/dist/collection/components/business-forms/owner-form/owner-form.js +2 -2
  75. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +14 -2
  76. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.css +4 -9155
  77. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -12
  78. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.css +5 -763
  79. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +2 -2
  80. package/dist/collection/components/business-forms/utils/payload-parsers.js +2 -0
  81. package/dist/collection/components/business-list/business-list.js +3 -12
  82. package/dist/collection/components/checkout/checkout-core.css +3 -8147
  83. package/dist/collection/components/checkout/checkout-core.js +5 -4
  84. package/dist/collection/components/checkout/form-check-input.css +20 -0
  85. package/dist/collection/components/checkout/header.css +4 -0
  86. package/dist/collection/components/checkout/new-payment-method.js +2 -2
  87. package/dist/collection/components/checkout/payment-method-options.css +1 -7088
  88. package/dist/collection/components/checkout/payment-method-options.js +4 -4
  89. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  90. package/dist/collection/components/checkout/saved-payment-method.js +2 -2
  91. package/dist/collection/components/checkout/sezzle-payment-method.js +2 -2
  92. package/dist/collection/components/details/details.js +3 -12
  93. package/dist/collection/components/form/form-control-monetary.js +1 -1
  94. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
  95. package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +1 -573
  96. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.css +6 -8183
  97. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +6 -7
  98. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -2
  99. package/dist/collection/components/pagination-menu/pagination-menu.js +3 -14
  100. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +3 -13
  101. package/dist/collection/components/payment-details/payment-details-core.js +9 -18
  102. package/dist/collection/components/payment-form/payment-form.css +3 -2513
  103. package/dist/collection/components/payment-form/payment-form.js +6 -5
  104. package/dist/collection/components/payment-form/payment-method-selector.css +5 -1881
  105. package/dist/collection/components/payment-form/payment-method-selector.js +2 -3
  106. package/dist/collection/components/payments-list/payments-list-core.js +6 -12
  107. package/dist/collection/components/payments-list/payments-list.js +3 -0
  108. package/dist/collection/components/payout-details/get-payout-csv.js +19 -0
  109. package/dist/collection/components/payout-details/payout-details-core.js +37 -12
  110. package/dist/collection/components/payout-details/payout-details.js +11 -4
  111. package/dist/collection/components/payouts-list/payouts-list-core.js +45 -14
  112. package/dist/collection/components/payouts-list/payouts-list.js +14 -6
  113. package/dist/collection/components/proceeds-list/proceeds-list.js +3 -12
  114. package/dist/collection/components/refund-form/refund-form.css +1 -7737
  115. package/dist/collection/components/refund-form/refund-form.js +4 -3
  116. package/dist/collection/components/skeleton/skeleton.css +1 -573
  117. package/dist/collection/components/skeleton/skeleton.js +2 -2
  118. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +1 -12
  119. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +1 -12
  120. package/dist/collection/components/subaccount-details/subaccount-details.js +3 -12
  121. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +1 -12
  122. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +1 -12
  123. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +1 -12
  124. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +1 -12
  125. package/dist/collection/components/subaccounts-list/subaccounts-list.js +1 -1
  126. package/dist/collection/components/table/table.css +0 -8085
  127. package/dist/collection/components/table/table.js +3 -4
  128. package/dist/collection/utils/styled-host/styled-host.js +6 -0
  129. package/dist/docs.json +132 -24
  130. package/dist/esm/{Analytics-c52faca6.js → Analytics-29fac206.js} +1 -1
  131. package/dist/esm/additional-questions-details_5.entry.js +12 -12
  132. package/dist/esm/business-details-core.entry.js +6 -9
  133. package/dist/esm/form-alert_5.entry.js +2 -2
  134. package/dist/esm/form-control-checkbox_5.entry.js +7 -7
  135. package/dist/esm/form-control-date.entry.js +39 -0
  136. package/dist/esm/form-control-error-text_2.entry.js +31 -0
  137. package/dist/esm/form-control-file.entry.js +1 -1
  138. package/dist/esm/form-control-monetary.entry.js +2 -2
  139. package/dist/esm/{form-control-date_3.entry.js → form-control-number-masked_2.entry.js} +3 -39
  140. package/dist/esm/form-control-number.entry.js +1 -1
  141. package/dist/esm/{form-control-error-text_4.entry.js → form-control-select_2.entry.js} +2 -30
  142. package/dist/esm/get-payout-csv-9b4aaada.js +45 -0
  143. package/dist/esm/gross-payment-chart-core.entry.js +4 -4
  144. package/dist/esm/{index-4bd1eae9.js → index-57431c24.js} +15 -3
  145. package/dist/esm/{insurance-state-09754ab9.js → insurance-state-8ce01e59.js} +1 -1
  146. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +3 -3
  147. package/dist/esm/justifi-bank-account-form.entry.js +3 -3
  148. package/dist/esm/justifi-billing-form_2.entry.js +6 -5
  149. package/dist/esm/justifi-business-details.entry.js +4 -4
  150. package/dist/esm/justifi-business-form.entry.js +7 -6
  151. package/dist/esm/justifi-business-list.entry.js +3 -6
  152. package/dist/esm/justifi-card-form.entry.js +3 -3
  153. package/dist/esm/justifi-checkout-core.entry.js +9 -5
  154. package/dist/esm/justifi-checkout.entry.js +3 -3
  155. package/dist/esm/justifi-details.entry.js +4 -7
  156. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
  157. package/dist/esm/justifi-new-payment-method_4.entry.js +10 -7
  158. package/dist/esm/justifi-payment-balance-transactions.entry.js +3 -6
  159. package/dist/esm/justifi-payment-details.entry.js +4 -4
  160. package/dist/esm/justifi-payment-form.entry.js +8 -7
  161. package/dist/esm/justifi-payment-method-form.entry.js +2 -2
  162. package/dist/esm/justifi-payment-method-selector.entry.js +3 -3
  163. package/dist/esm/justifi-payment-provisioning-core.entry.js +7 -2
  164. package/dist/esm/justifi-payment-provisioning.entry.js +4 -8
  165. package/dist/esm/justifi-payments-list.entry.js +4 -4
  166. package/dist/esm/justifi-payout-details.entry.js +14 -9
  167. package/dist/esm/justifi-payouts-list.entry.js +14 -11
  168. package/dist/esm/justifi-proceeds-list.entry.js +3 -6
  169. package/dist/esm/justifi-refund-form.entry.js +4 -3
  170. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +13 -8
  171. package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -3
  172. package/dist/esm/justifi-skeleton.entry.js +3 -3
  173. package/dist/esm/justifi-subaccount-details.entry.js +4 -7
  174. package/dist/esm/justifi-subaccounts-list.entry.js +2 -2
  175. package/dist/esm/justifi-table_2.entry.js +8 -12
  176. package/dist/esm/loader.js +3 -3
  177. package/dist/esm/{package-8ab448a3.js → package-1123f528.js} +1 -1
  178. package/dist/esm/{payload-parsers-57289fc4.js → payload-parsers-acb719d1.js} +2 -0
  179. package/dist/esm/payment-details-core.entry.js +10 -13
  180. package/dist/esm/payments-list-core.entry.js +6 -6
  181. package/dist/esm/payout-details-core.entry.js +18 -7
  182. package/dist/esm/payouts-list-core.entry.js +28 -7
  183. package/dist/esm/styled-host-57aae7fa.js +12 -0
  184. package/dist/esm/subaccount-account-details_4.entry.js +6 -22
  185. package/dist/esm/subaccount-bank-details.entry.js +3 -7
  186. package/dist/esm/subaccount-terms-details.entry.js +3 -7
  187. package/dist/esm/{utils-1e583166.js → utils-56719d07.js} +1 -1
  188. package/dist/esm/{utils-c7b3f21a.js → utils-f4c4ba7d.js} +1 -1
  189. package/dist/esm/webcomponents.js +3 -3
  190. package/dist/module/additional-questions-details2.js +3 -4
  191. package/dist/module/billing-form.js +4 -3
  192. package/dist/module/business-details-core2.js +5 -8
  193. package/dist/module/business-terms-conditions-text.js +2 -2
  194. package/dist/module/checkout-core.js +8 -4
  195. package/dist/module/details.js +3 -6
  196. package/dist/module/form-control-monetary2.js +1 -1
  197. package/dist/module/generic-info-details2.js +3 -4
  198. package/dist/module/get-payout-csv.js +45 -0
  199. package/dist/module/gross-payment-chart-core2.js +2 -2
  200. package/dist/module/justifi-business-form.js +4 -3
  201. package/dist/module/justifi-business-list.js +3 -6
  202. package/dist/module/justifi-payment-balance-transactions.js +4 -8
  203. package/dist/module/justifi-payment-form.js +6 -5
  204. package/dist/module/justifi-payment-provisioning.js +2 -7
  205. package/dist/module/justifi-payments-list.js +19 -1
  206. package/dist/module/justifi-payout-details.js +11 -5
  207. package/dist/module/justifi-payouts-list.js +30 -8
  208. package/dist/module/justifi-proceeds-list.js +3 -6
  209. package/dist/module/justifi-refund-form.js +4 -3
  210. package/dist/module/justifi-season-interruption-insurance.js +1 -2
  211. package/dist/module/justifi-subaccount-details.js +3 -6
  212. package/dist/module/justifi-subaccounts-list.js +1 -1
  213. package/dist/module/legal-address-details2.js +3 -4
  214. package/dist/module/new-payment-method.js +1 -1
  215. package/dist/module/owner-details2.js +3 -4
  216. package/dist/module/owner-form.js +2 -2
  217. package/dist/module/package.js +1 -1
  218. package/dist/module/pagination-menu2.js +4 -9
  219. package/dist/module/payload-parsers.js +2 -0
  220. package/dist/module/payment-details-core2.js +9 -12
  221. package/dist/module/payment-method-options.js +7 -4
  222. package/dist/module/payment-method-selector.js +3 -4
  223. package/dist/module/payment-provisioning-core.js +9 -3
  224. package/dist/module/payments-list-core2.js +25 -7
  225. package/dist/module/payout-details-core2.js +18 -6
  226. package/dist/module/payouts-list-core2.js +48 -8
  227. package/dist/module/representative-details2.js +3 -4
  228. package/dist/module/save-new-payment-method.js +1 -1
  229. package/dist/module/saved-payment-method.js +1 -1
  230. package/dist/module/season-interruption-insurance-core.js +12 -7
  231. package/dist/module/sezzle-payment-method.js +1 -1
  232. package/dist/module/skeleton.js +2 -2
  233. package/dist/module/styled-host.js +12 -0
  234. package/dist/module/subaccount-account-details2.js +2 -7
  235. package/dist/module/subaccount-bank-details.js +2 -7
  236. package/dist/module/subaccount-merchant-details2.js +2 -7
  237. package/dist/module/subaccount-owners-details2.js +2 -7
  238. package/dist/module/subaccount-representative-details2.js +2 -7
  239. package/dist/module/subaccount-terms-details.js +2 -7
  240. package/dist/module/table.js +4 -5
  241. package/dist/types/api/services/payout.service.d.ts +2 -0
  242. package/dist/types/assets/download-icon.d.ts +1 -0
  243. package/dist/types/components/payments-list/payments-list-core.d.ts +1 -0
  244. package/dist/types/components/payments-list/payments-list.d.ts +3 -0
  245. package/dist/types/components/payout-details/get-payout-csv.d.ts +7 -0
  246. package/dist/types/components/payout-details/payout-details-core.d.ts +2 -0
  247. package/dist/types/components/payout-details/payout-details.d.ts +2 -1
  248. package/dist/types/components/payouts-list/payouts-list-core.d.ts +3 -0
  249. package/dist/types/components/payouts-list/payouts-list.d.ts +5 -1
  250. package/dist/types/components.d.ts +28 -0
  251. package/dist/types/utils/styled-host/styled-host.d.ts +3 -0
  252. package/dist/webcomponents/{p-edb605b3.js → p-092e080c.js} +1 -1
  253. package/dist/webcomponents/p-09affce4.entry.js +1 -0
  254. package/dist/webcomponents/p-0a4a9ccd.entry.js +1 -0
  255. package/dist/webcomponents/{p-5309e887.entry.js → p-0dca0770.entry.js} +1 -1
  256. package/dist/webcomponents/{p-95c18035.entry.js → p-0e4a54c8.entry.js} +1 -1
  257. package/dist/webcomponents/p-0ed3c1d2.entry.js +1 -0
  258. package/dist/webcomponents/p-10b57ac6.entry.js +1 -0
  259. package/dist/webcomponents/p-1737f6bf.entry.js +1 -0
  260. package/dist/webcomponents/{p-84b3cead.entry.js → p-2244e679.entry.js} +1 -1
  261. package/dist/webcomponents/p-2306d44d.entry.js +1 -0
  262. package/dist/webcomponents/{p-f7b6dcc4.js → p-2338affa.js} +1 -1
  263. package/dist/webcomponents/{p-0a09edbb.entry.js → p-2af3672b.entry.js} +1 -1
  264. package/dist/webcomponents/p-3294856b.entry.js +1 -0
  265. package/dist/webcomponents/p-3514b616.entry.js +1 -0
  266. package/dist/webcomponents/p-390157c9.entry.js +1 -0
  267. package/dist/webcomponents/p-412c7a22.entry.js +1 -0
  268. package/dist/webcomponents/p-464e4dfe.entry.js +1 -0
  269. package/dist/webcomponents/p-49b8e112.js +1 -0
  270. package/dist/webcomponents/{p-c69713c2.entry.js → p-4b9587ec.entry.js} +1 -1
  271. package/dist/webcomponents/p-531d873a.entry.js +1 -0
  272. package/dist/webcomponents/p-54287db6.entry.js +1 -0
  273. package/dist/webcomponents/p-547a2cd0.entry.js +1 -0
  274. package/dist/webcomponents/p-571d7f1a.entry.js +1 -0
  275. package/dist/webcomponents/p-5963bcdc.entry.js +1 -0
  276. package/dist/webcomponents/p-5b1451e7.entry.js +1 -0
  277. package/dist/webcomponents/{p-e7915927.entry.js → p-66758365.entry.js} +1 -1
  278. package/dist/webcomponents/{p-b7d9d9fa.js → p-667a5aa8.js} +1 -1
  279. package/dist/webcomponents/p-67e497aa.entry.js +1 -0
  280. package/dist/webcomponents/{p-0575daac.js → p-68fd8283.js} +1 -1
  281. package/dist/webcomponents/p-6bcf621a.entry.js +1 -0
  282. package/dist/webcomponents/p-6bd5d569.entry.js +1 -0
  283. package/dist/webcomponents/p-76180bb4.entry.js +1 -0
  284. package/dist/webcomponents/p-77dc159c.entry.js +1 -0
  285. package/dist/webcomponents/{p-a34c28af.entry.js → p-7a346c0b.entry.js} +1 -1
  286. package/dist/webcomponents/p-7d6aba64.entry.js +1 -0
  287. package/dist/webcomponents/p-81d3eda6.entry.js +1 -0
  288. package/dist/webcomponents/p-85fc69e5.js +1 -0
  289. package/dist/webcomponents/p-87932e16.js +1 -0
  290. package/dist/webcomponents/p-88c7ef46.entry.js +1 -0
  291. package/dist/webcomponents/p-8cc7a418.entry.js +1 -0
  292. package/dist/webcomponents/p-8dd22c8d.entry.js +1 -0
  293. package/dist/webcomponents/p-959b478a.entry.js +19 -0
  294. package/dist/webcomponents/{p-fcf42299.entry.js → p-9631b768.entry.js} +1 -1
  295. package/dist/webcomponents/p-9e7c3231.entry.js +1 -0
  296. package/dist/webcomponents/{p-c2d6a5e2.entry.js → p-bb32b91c.entry.js} +1 -1
  297. package/dist/webcomponents/p-bbc18b9f.entry.js +1 -0
  298. package/dist/webcomponents/p-cb9ee476.entry.js +1 -0
  299. package/dist/webcomponents/p-d083a342.entry.js +1 -0
  300. package/dist/webcomponents/{p-1c60004a.entry.js → p-d5612f35.entry.js} +1 -1
  301. package/dist/webcomponents/p-debeefbb.entry.js +1 -0
  302. package/dist/webcomponents/{p-9936c393.entry.js → p-df38dd21.entry.js} +1 -1
  303. package/dist/webcomponents/p-e0bcfdb5.entry.js +1 -0
  304. package/dist/webcomponents/{p-cb68e8fa.js → p-e1651130.js} +1 -1
  305. package/dist/webcomponents/p-e46929a1.entry.js +1 -0
  306. package/dist/webcomponents/{p-6006e085.entry.js → p-e85ef4af.entry.js} +1 -1
  307. package/dist/webcomponents/p-ea7c77a3.entry.js +1 -0
  308. package/dist/webcomponents/{p-a90a6703.entry.js → p-f3555f0b.entry.js} +1 -1
  309. package/dist/webcomponents/p-fad19d75.js +2 -0
  310. package/dist/webcomponents/webcomponents.css +1 -1
  311. package/dist/webcomponents/webcomponents.esm.js +1 -1
  312. package/package.json +1 -1
  313. package/dist/cjs/payout.service-eec372aa.js +0 -22
  314. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +0 -7348
  315. package/dist/collection/components/business-details/business-details.css +0 -6446
  316. package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +0 -7348
  317. package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +0 -7348
  318. package/dist/collection/components/business-details/owner-details/owner-details.css +0 -7348
  319. package/dist/collection/components/business-details/representative-details/representative-details.css +0 -7348
  320. package/dist/collection/components/business-list/business-list.css +0 -579
  321. package/dist/collection/components/details/details.css +0 -7993
  322. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.css +0 -0
  323. package/dist/collection/components/payment-details/payment-details.css +0 -7993
  324. package/dist/collection/components/payments-list/payments-list.css +0 -579
  325. package/dist/collection/components/payout-details/payout-details.css +0 -7993
  326. package/dist/collection/components/payouts-list/payouts-list.css +0 -579
  327. package/dist/collection/components/proceeds-list/proceeds-list.css +0 -579
  328. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +0 -7352
  329. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +0 -7352
  330. package/dist/collection/components/subaccount-details/subaccount-details.css +0 -7993
  331. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +0 -7352
  332. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +0 -7352
  333. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +0 -7352
  334. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +0 -7352
  335. package/dist/esm/payout.service-28b9594f.js +0 -20
  336. package/dist/module/payout.service.js +0 -20
  337. package/dist/webcomponents/p-00de4ae0.entry.js +0 -1
  338. package/dist/webcomponents/p-015ba24e.entry.js +0 -1
  339. package/dist/webcomponents/p-023fe908.entry.js +0 -1
  340. package/dist/webcomponents/p-0fc18c89.entry.js +0 -1
  341. package/dist/webcomponents/p-100cb35c.entry.js +0 -1
  342. package/dist/webcomponents/p-189dee9f.entry.js +0 -1
  343. package/dist/webcomponents/p-30a7bebc.entry.js +0 -19
  344. package/dist/webcomponents/p-378bb067.entry.js +0 -1
  345. package/dist/webcomponents/p-404d7c56.entry.js +0 -1
  346. package/dist/webcomponents/p-43326623.entry.js +0 -1
  347. package/dist/webcomponents/p-4c5f9260.entry.js +0 -1
  348. package/dist/webcomponents/p-61e486ad.entry.js +0 -1
  349. package/dist/webcomponents/p-64d1aeb8.entry.js +0 -1
  350. package/dist/webcomponents/p-68f3a7b0.entry.js +0 -1
  351. package/dist/webcomponents/p-738049aa.entry.js +0 -1
  352. package/dist/webcomponents/p-739f1e09.entry.js +0 -1
  353. package/dist/webcomponents/p-7f77d91f.entry.js +0 -1
  354. package/dist/webcomponents/p-8805d083.entry.js +0 -1
  355. package/dist/webcomponents/p-95c8c313.entry.js +0 -1
  356. package/dist/webcomponents/p-97220d5b.entry.js +0 -1
  357. package/dist/webcomponents/p-98985c7d.entry.js +0 -1
  358. package/dist/webcomponents/p-9d03464e.entry.js +0 -1
  359. package/dist/webcomponents/p-a63a6fb9.js +0 -2
  360. package/dist/webcomponents/p-a6477232.entry.js +0 -1
  361. package/dist/webcomponents/p-b1a24d24.entry.js +0 -1
  362. package/dist/webcomponents/p-b27d2ce1.entry.js +0 -1
  363. package/dist/webcomponents/p-be049573.entry.js +0 -1
  364. package/dist/webcomponents/p-bfe69314.entry.js +0 -1
  365. package/dist/webcomponents/p-c8c08fe3.js +0 -1
  366. package/dist/webcomponents/p-ca39c89f.js +0 -1
  367. package/dist/webcomponents/p-d779f2f2.entry.js +0 -1
  368. package/dist/webcomponents/p-da313a7e.entry.js +0 -1
  369. package/dist/webcomponents/p-e04f7070.entry.js +0 -1
  370. package/dist/webcomponents/p-eb142b8a.entry.js +0 -1
  371. package/dist/webcomponents/p-efe744ce.entry.js +0 -1
  372. package/dist/webcomponents/p-f6858597.entry.js +0 -1
  373. package/dist/webcomponents/p-f68cf935.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as o,c as r,h as t}from"./p-fad19d75.js";import{c as i,d as a,F as e}from"./p-2eab3c90.js";import{A as s}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-e8706cc4.js";import"./p-e3fab0e2.js";import{c as n}from"./p-ae263544.js";import{C as c}from"./p-525db3e8.js";import{S as b}from"./p-87932e16.js";const d=i().shape({amount:a().required("Amount is required").typeError("Amount must be a number").positive("Amount must be positive").test("amount","Refund amount cannot be more than the original payment amount",(function(o){return o<=this.options.context.amount})).nullable()}),f=class{constructor(t){o(this,t),this.submitted=r(this,"submitted",7),this.authToken=void 0,this.paymentId=void 0,this.amount=0,this.submitButtonText="Submit",this.withButton=void 0,this.refundInfoText=void 0,this.errors={},this.isSubmitting=!1}componentWillLoad(){this.formController=new e(d),this.formController.setInitialValues({amount:this.amount,message:""}),this.initializeApi()}componentDidLoad(){this.formController.errors.subscribe((o=>{this.errors=Object.assign({},o)}))}async handleSubmit(o){o.preventDefault(),this.formController.validateAndSubmit(this.submitRefund.bind(this),{amount:this.amount})}async submitRefund(){this.isSubmitting=!0;const o=this.formController.values.getValue();try{await this.api.post(`payments/${this.paymentId}/refunds`,o),this.submitted.emit(o)}catch(o){console.error("Error submitting refund:",o),this.submitted.emit(o)}finally{this.isSubmitting=!1}}handleInput(o,r){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[o]:r}))}initializeApi(){this.authToken||console.warn("Warning: Missing auth-token."),this.api=s({authToken:this.authToken,apiOrigin:n.proxyApiOrigin})}render(){var o;return t(b,{key:"33fe820ac401dce5903071de975343fb4577e8bc"},t("h1",{key:"f249b4ab8c6817d995566434055c64dc11e6f1aa"},"Refund"),this.refundInfoText&&t("div",{key:"e152d19001ab00d1b7d213f44f8f384a4bdd3dcf",class:"d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3",role:"alert"},t("img",{key:"177e584498bd6e23b152f8daf5c51989bbf6509e",src:"/info-icon.svg",alt:"Information",height:"30",width:"30"}),t("p",{key:"4b094ae72aea352c4cf4bc85610e8ede298549e0",class:"m-0",innerHTML:this.refundInfoText})),t("form",{key:"04501cd8aa10b65e9d2cd2940bdffb89688ff30c",onSubmit:o=>this.handleSubmit(o),class:"d-grid gap-4"},t("div",{key:"44811330173bc418413a2e9cab0249f541ffe517",class:"form-group"},t("form-control-monetary",{key:"384e732335cf8e8782af48da6709f06028181c19",name:"amount",label:"Refund Amount",defaultValue:(null===(o=this.amount)||void 0===o?void 0:o.toString())||"",maskOptions:c.DECIMAL,inputHandler:(o,r)=>this.handleInput(o,r),errorText:this.errors.amount})),t("div",{key:"137a007a7e795b7d1a8b86ddd05982a7e79bd66a",class:"form-group"},t("form-control-text",{key:"2a2fc63cb0131614044f15132ed56a845cae0646",name:"notes",label:"Additional Notes",inputHandler:(o,r)=>this.handleInput(o,r),errorText:this.errors.notes})),this.withButton&&t("div",{key:"4e3229087cca4cf5c4a133b49cc04a527bd3a716",class:"form-group d-flex flex-row-reverse"},t("button",{key:"2f44170e8b632ba3b2db98ada5c54944495ce4d6",type:"submit",disabled:!!this.isSubmitting,class:"btn btn-primary ml-auto"},this.submitButtonText))))}};f.style=":host{display:block}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}.btn{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.btn:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.btn:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}";export{f as justifi_refund_form}
@@ -1 +1 @@
1
- import{h as e}from"./p-a63a6fb9.js";const n=()=>e("div",{class:"spinner-border spinner-border-sm",role:"status"},e("span",{class:"visually-hidden"},"Loading...")),o=e=>{var n;if(!(e instanceof KeyboardEvent&&["Backspace","Tab","Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Delete"].includes(e.key)||e instanceof KeyboardEvent&&(e.ctrlKey||e.metaKey)&&"v"===e.key.toLowerCase()))if(e instanceof ClipboardEvent){const o=null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text");o&&!/^\d+$/.test(o)&&e.preventDefault()}else e instanceof KeyboardEvent&&!/^\d$/.test(e.key)&&e.preventDefault()};export{n as L,o as n}
1
+ import{h as e}from"./p-fad19d75.js";const n=()=>e("div",{class:"spinner-border spinner-border-sm",role:"status"},e("span",{class:"visually-hidden"},"Loading...")),o=e=>{var n;if(!(e instanceof KeyboardEvent&&["Backspace","Tab","Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Delete"].includes(e.key)||e instanceof KeyboardEvent&&(e.ctrlKey||e.metaKey)&&"v"===e.key.toLowerCase()))if(e instanceof ClipboardEvent){const o=null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text");o&&!/^\d+$/.test(o)&&e.preventDefault()}else e instanceof KeyboardEvent&&!/^\d$/.test(e.key)&&e.preventDefault()};export{n as L,o as n}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as a}from"./p-fad19d75.js";import{g as s,b as d,f as i,a as c}from"./p-e8c651b8.js";import{a as b,b as f,c as o,D as r,C as l,E as h,L as n}from"./p-e1651130.js";import{S as y}from"./p-87932e16.js";const u=class{constructor(a){e(this,a),this.errorEvent=t(this,"error-event",7),this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a})}})},this.getPayout=void 0,this.getPayoutCSV=void 0,this.payout=void 0,this.loading=!0,this.errorMessage=null}componentWillLoad(){this.getPayout&&this.fetchData()}getPayoutWatcher(){this.fetchData()}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a}),this.loading=!1}})}render(){var e;return a(y,{key:"da7690d5e4b21e8cb32651080ef2c8df29440c1b"},this.loading&&n(),!this.loading&&this.errorMessage&&h(this.errorMessage),!this.loading&&this.payout&&a("justifi-details",{key:"4d9a7636e345bc5dd88b910add3a340e22589c52","error-message":this.errorMessage},a(b,{key:"91d6eb90ec40052d858f4736a9c60d9c9a96d40d",slot:"head-info",badge:a("span",{slot:"badge",innerHTML:s(null===(e=this.payout)||void 0===e?void 0:e.status)}),title:`${d(this.payout.amount)} ${this.payout.currency.toUpperCase()}`},a(f,{key:"be9f9b43c294b76326f1ce63af79217b8abf5b0d",classes:"border-1 border-end",title:"Updated At",value:`${i(this.payout.updated_at)} ${c(this.payout.updated_at)}`}),a(f,{key:"2c8fb8d4a4b8f1517028acc410bdb4adbafe67a4",classes:"border-1 border-end",title:"Created At",value:`${i(this.payout.created_at)} ${c(this.payout.created_at)}`}),a(f,{key:"4ca663f7bbfa9bdf8fa01fe0b40fc5f6dc65dfbb",title:"ID",value:this.payout.id}),a("div",{key:"44b484491b5ec470270b469de15076d6d55e61d0",class:"m-4"},a("button",{key:"ca8b6cb61b56caebbec1eeb01e6de638865219bd",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),a("div",{key:"2f959d7c549dc1f8e4df2e8d12ab9988255aba03",slot:"detail-sections"},a(o,{key:"741717a3e056163ee88452998f2d6e5b7dc0ccc1",sectionTitle:"Details"}),a("div",{key:"d456b3a372525a0eff6c724e507ff325951fa430",class:"d-table gap-2 w-100"},a(r,{key:"a27cf5fbc2851f74bb4813d0bd49718dfe2f7d8d",title:"Date paid",value:i(this.payout.deposits_at)}),a(r,{key:"90f49509ff399a9c164a7aeaf7307077b59e8559",title:"Statement Description",value:this.payout.description}),a(r,{key:"52ef8b50065db1a111b003e9ceadfa1cc4076b74",title:"Payout Method",value:this.payout.delivery_method}),a(r,{key:"ee73a34d15af0cc677fc6d903706df3f10249bdf",title:"Amount",value:d(this.payout.amount)}),a(r,{key:"229827b98fd76bd1dec1beeac0d99517d09dc677",title:"Fee",value:d(this.payout.fees_total)})),a(o,{key:"1f4bb886e4a07b5054107aa00c2b98644e87859b",sectionTitle:"Account"}),a("div",{key:"78181a7ae216bf3b0013eee0494b4b149a2ec9c3",class:"d-table gap-2 w-100"},a(r,{key:"273cabd55194c104d1d421db53030601f5efa83c",title:"ID",value:this.payout.account_id}),a(r,{key:"1751e4b9d5453bc41fd3b29cf7e5d3955e375bb7",title:"Account Type",value:this.payout.bank_account.account_type}),a(r,{key:"1d5489f81d96025bdf7d7391623ddcc1ff3a7978",title:"Institution",value:this.payout.bank_account.account_type}),a(r,{key:"f17d8096799b7eeba7c550ad828f2ffa97b65f56",title:"Routing Number",value:this.payout.bank_account.routing_number}),a(r,{key:"cf3c83de7f119738940951a9481253ed855c768e",title:"Account Number",value:this.payout.bank_account.account_number_last4})),a(o,{key:"458186b5bd7fb0aa954c283dee08e5090b164b27",sectionTitle:"Metadata"}),a("div",{key:"90866a28028af6c7e46ab89c221016cd698299f2",class:"d-table gap-2 w-100"},a(l,{key:"ed25523342b6a751e48d2d7c11cef7e541b6ed3b",metadata:this.payout.metadata})))))}static get watchers(){return{getPayout:["getPayoutWatcher"]}}};export{u as payout_details_core}
@@ -0,0 +1 @@
1
+ import{r,h as e,c as o}from"./p-fad19d75.js";import{c as a,F as t}from"./p-2eab3c90.js";import{i,l as d,a as c,c as s,s as l,p as f}from"./p-89887332.js";import{S as n}from"./p-6078a370.js";import{n as b}from"./p-68fd8283.js";import{S as h}from"./p-87932e16.js";import"./p-ba5fae28.js";import"./p-af244664.js";import"./p-1ff8810b.js";const m=a({name:i.required("Enter full name"),address_line1:d.required("Enter street address"),address_line2:c.nullable(),address_city:s.required("Enter city"),address_state:l.required("Select state"),address_postal_code:f.required("Enter postal code")}),p=class{constructor(e){r(this,e),this.inputHandler=(r,e)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[r]:e}))},this.legend=void 0,this.formController=void 0,this.billingInfo=void 0,this.errors={}}componentWillLoad(){this.formController=new t(m)}componentDidLoad(){this.formController.values.subscribe((r=>this.billingInfo=Object.assign({},r))),this.formController.errors.subscribe((r=>{this.errors=Object.assign({},r)}))}async getValues(){return this.formController.values.getValue()}async fill(r){this.formController.setInitialValues(r)}async validate(){return{isValid:await this.formController.validate()}}render(){const r=this.formController.getInitialValues();return e(h,{key:"8104e81c71bc567bfa5e0375cd33e9faca89d011",exportparts:"label,input,input-invalid"},e("form",{key:"c6cc67debae73514e2615f95c2bf864b912a73cb"},e("fieldset",{key:"9a7c04e44a7428748dad4c303e69a138ddb9101d"},this.legend&&e("legend",{key:"7aff51cff0b829134b99179d05c8184ee434258e"},this.legend),e("div",{key:"53ed47c893e7f8348a0ab1f637175e7b456e1992",class:"row gy-3"},e("div",{key:"4b93bf1abd9be0735560cd2db646be68fc1a6916",class:"col-12"},e("form-control-text",{key:"18f7be54e35cac629a0122b7ff040e424b39dcea",name:"name",label:"Full Name",defaultValue:r.name,errorText:this.errors.name,inputHandler:this.inputHandler})),e("div",{key:"5358865082c4158083f0232441255622f339105a",class:"col-12"},e("form-control-text",{key:"8ba417bede5bde2c6d7a99869caab780e0887b9b",name:"address_line1",label:"Street Address",defaultValue:r.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),e("div",{key:"ffadcbe419b78f4e96283c3366141e20e2f157d3",class:"col-12"},e("form-control-text",{key:"14ca2064c4651405c443d75961c8937d7136a95d",name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:r.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),e("div",{key:"52cd79784b86d18cc35c80ae5f4006e8e25337f7",class:"col-12"},e("form-control-text",{key:"741129396330fb3d7e40143391ab3422d648c997",name:"address_city",label:"City",defaultValue:r.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),e("div",{key:"ec80e7986f8189d4a08df9924d9cbecab512ae3d",class:"col-12"},e("form-control-select",{key:"0cea8474f7f72ebb2591f48bd85ea4e008f65d94",name:"address_state",label:"State",options:n,defaultValue:r.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),e("div",{key:"59935a8aaf2b91df9e33c284132ca1372591d797",class:"col-12"},e("form-control-text",{key:"9316b7c2aec054c251eb9eba7641f239b43f3714",name:"address_postal_code",label:"ZIP",defaultValue:r.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:b}))))))}};p.style=":host{display:block}justifi-billing-form{margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}";const u=class{constructor(e){r(this,e),this.checkboxChanged=o(this,"checkboxChanged",7),this.isChecked=!1}handleCheckboxChange(r){this.isChecked=r.target.checked,this.checkboxChanged.emit(this.isChecked)}render(){return e("div",{key:"9492361a8c6d1b0cc29638811ddf41fb2e0e4a8c",class:"mt-4 form-check"},e("input",{key:"ef0b68d5daf26ec3c273839d79a66c03a6ae2af7",type:"checkbox",checked:this.isChecked,onChange:r=>this.handleCheckboxChange(r),class:"form-check-input"}),e("label",{key:"4dbd3b1501c8de8feedf738d73eb6e3e7fa2ad3a",class:"form-check-label"},"Save new payment method"))}};export{p as justifi_billing_form,u as justifi_save_new_payment_method}
@@ -0,0 +1 @@
1
+ import{r as o,c as r,h as t}from"./p-fad19d75.js";import"./p-56f6ce4c.js";import{b as i}from"./p-e8706cc4.js";import"./p-e3fab0e2.js";import{l as a}from"./p-e8c651b8.js";import{c as e}from"./p-ae263544.js";import{a as s,C as b}from"./p-14c91ffd.js";import{g as c}from"./p-8115b2f4.js";import{J as f}from"./p-092e080c.js";import{S as n}from"./p-87932e16.js";import"./p-667a5aa8.js";import"./p-29c0b182.js";const d=class{constructor(t){o(this,t),this.submitted=r(this,"submitted",7),this.errorEvent=r(this,"error-event",7),this.bankAccount=void 0,this.card=void 0,this.email=void 0,this.clientId=void 0,this.authToken=void 0,this.accountId=void 0,this.submitButtonText=void 0,this.submitButtonEnabled=!0,this.isLoading=!1,this.selectedPaymentMethodType=i.card}componentWillLoad(){this.analytics=new f(this),this.validateProps()||(this.errorEvent.emit({errorCode:s.MISSING_PROPS,message:"clientId or authToken is required",severity:b.ERROR}),this.submitButtonEnabled=!1)}connectedCallback(){a()}disconnectedCallback(){this.analytics.cleanup()}async fillBillingForm(o){this.billingFormRef.fill(o)}async enableSubmitButton(){this.submitButtonEnabled=!0}async disableSubmitButton(){this.submitButtonEnabled=!1}showPaymentMethodTypeSelector(){return this.card&&this.bankAccount}getSelectedPaymentMethodType(){return this.showPaymentMethodTypeSelector()?this.selectedPaymentMethodType:this.card?i.card:this.bankAccount?i.bankAccount:i.card}paymentMethodSelectedHandler(o){this.selectedPaymentMethodType=o.detail}validateProps(){return!(!this.clientId&&!this.authToken)}getToken(){return this.authToken||this.clientId}async submit(o){if(o.preventDefault(),!this.paymentMethodFormRef||!this.billingFormRef)return;const r=await this.billingFormRef.validate(),t=await this.paymentMethodFormRef.validate();if(r.isValid&&t.isValid){this.isLoading=!0;try{const o=await this.billingFormRef.getValues(),r=Object.assign({email:this.email},o),t=await this.paymentMethodFormRef.tokenize(this.getToken(),r,this.accountId);t.error&&this.errorEvent.emit({errorCode:s.TOKENIZE_ERROR,message:t.error.message,severity:b.ERROR}),this.submitted.emit(t)}catch(o){this.errorEvent.emit({errorCode:s.UNKNOWN_ERROR,message:c(o),severity:b.ERROR})}finally{this.isLoading=!1}}}render(){return t(n,{key:"3aa9fa4d429ca4b614d51b87b51b1ab868d051e2"},t("form",{key:"53a0ad2a960971fafb618d5be58af120336b36b9",class:"row gy-3"},this.showPaymentMethodTypeSelector()&&t("div",{key:"b322cbe24fcbd81008ccf3a6e587786c0b7febd6",class:"col-12"},t("justifi-payment-method-selector",{key:"8e77f5e040a73096765c30f1f259f87630ec80a8",selectedPaymentMethodType:this.getSelectedPaymentMethodType(),onPaymentMethodSelected:o=>this.paymentMethodSelectedHandler(o)})),t("div",{key:"415f380e141eea4486fd47b4b2cbfcc7716ecacc",class:"col-12"},t("justifi-payment-method-form",{key:"cd4da9f66a030ab344be989a511e23462e3da887","payment-method-form-type":this.getSelectedPaymentMethodType(),iframeOrigin:e.iframeOrigin,ref:o=>{o&&(this.paymentMethodFormRef=o)}})),t("div",{key:"31eefc5775131f658987578da2d5b300292f67b5",class:"col-12"},t("justifi-billing-form",{key:"11b9bdaa9c1fb26804fcdacfd3706b200ae49486",legend:"Billing Info",ref:o=>{o&&(this.billingFormRef=o)}})),t("slot",{key:"13fe093886828469c941d21c20c931c5cc2cae3d",name:"insurance"}),t("div",{key:"a77d44c79333303e59f3efb5c82db9e8830bfcdb",class:"col-12"},t("button",{key:"50edd44047c81109f075e9ae760e58878b422fbc","data-testid":"submit-button",type:"submit",onClick:o=>this.submit(o),disabled:!this.submitButtonEnabled||this.isLoading,class:"btn btn-primary jfi-submit-button"+(this.isLoading?" jfi-submit-button-loading":"")},this.isLoading?t("div",{class:"spinner-border spinner-border-sm",role:"status"},t("span",{class:"visually-hidden"},"Loading...")):this.submitButtonText||"Submit"))))}};d.style=":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";export{d as justifi_payment_form}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,H as s,g as a}from"./p-fad19d75.js";const o=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.handleFormControlInput=t=>{const e=t.target,i=e.getAttribute("name");this.inputHandler(i,e.value),this.formControlInput.emit(e.value)},this.updateInput=t=>{this.selectElement.value=t},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.options=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}render(){var t;return i(s,{key:"abc80a7f20c59c99a3468f199142bc01ba7883cb",exportparts:"label,input,input-invalid"},i("div",{key:"d34ec19e40c33bd16b1e03e2bfac07dd6dd1a3a8",class:"form-group d-flex flex-column"},i("label",{key:"43adfb46f3bf2e72e50d2bab17b909fec8693c2a",part:"label",class:"form-label",htmlFor:this.name},this.label),i("select",{key:"eacb07490715f8041cfa6cd4fab91959d5b6bfae",ref:t=>this.selectElement=t,id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:"input "+(this.errorText?"input-invalid":""),class:this.errorText?"form-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>i("option",{value:t.value},t.label)))),i("form-control-help-text",{key:"5ec5ba6ca4e0503ffdbddb95e70444bbf8b169b7",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"bd90d61ca9aa0c52d351e336febc9f3d2e501355",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},h=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.handleFormControlInput=t=>{const e=t.target,i=e.getAttribute("name");this.inputHandler(i,e.value),this.formControlInput.emit({name:i,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("input");e&&(e.value=t||"")},this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.maxLength=void 0,this.inputHandler=void 0,this.keyDownHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}render(){return i(s,{key:"7b3c980cbad27b29bc87dd4eaa8a23398c8b244c",exportparts:"label,input,input-invalid"},i("div",{key:"fa49688c206721f177d2c57b42103ffcd139dde7",class:"form-group d-flex flex-column"},i("label",{key:"596b8cae71f32769d82fa5e77df11daa172fcce9",part:"label",class:"form-label",htmlFor:this.name},this.label),i("input",{key:"44ec6ef8e306c5d25190dec87926ba382665f2ca",id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?" input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),i("form-control-help-text",{key:"888e0abf5f3687266784eda12428cb219321f964",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"902a8e06659e63cb35002b5eef8b3f987df8fb44",errorText:this.errorText,name:this.name})))}get el(){return a(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{o as form_control_select,h as form_control_text}
@@ -1 +1 @@
1
- import{r as e,c as t,h as r}from"./p-a63a6fb9.js";import{c as a}from"./p-ae263544.js";import{J as i}from"./p-edb605b3.js";import"./p-b7d9d9fa.js";import"./p-29c0b182.js";const o=class{constructor(r){e(this,r),this.cardFormReady=t(this,"cardFormReady",7),this.ready=t(this,"ready",7),this.cardFormTokenized=t(this,"cardFormTokenize",7),this.cardFormValidated=t(this,"cardFormValidate",7),this.validationMode=void 0,this.iframeOrigin=a.iframeOrigin,this.singleLine=!1,this.internalStyleOverrides=void 0}readyHandler(e){console.warn("The 'cardFormReady' event is deprecated in the next major release and will be renamed to 'ready'"),this.cardFormReady.emit(e),this.ready.emit(e)}tokenizeHandler(e){console.warn("The 'cardFormTokenize' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.cardFormTokenized.emit(e)}validateHandler(e){console.warn("The 'cardFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.cardFormValidated.emit(e)}componentWillLoad(){this.analytics=new i(this)}disconnectedCallback(){this.analytics.cleanup()}async tokenize(...e){if(!this.childRef)throw new Error("Cannot call tokenize");return this.childRef.tokenize(...e)}async validate(){if(!this.childRef)throw new Error("Cannot call validate");return this.childRef.validate()}async resize(){if(console.warn("The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach."),!this.childRef)throw new Error("Cannot call validate");return this.childRef.resize()}render(){return r("justifi-payment-method-form",{key:"f3b2fe6391ac8f2e704062553e920cb44ddca776",ref:e=>{e&&(this.childRef=e)},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"card","single-line":this.singleLine,"payment-method-form-ready":this.cardFormReady,"payment-method-form-validate":this.cardFormValidated,"payment-method-form-tokenize":this.cardFormTokenized,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{o as justifi_card_form}
1
+ import{r as e,c as t,h as r}from"./p-fad19d75.js";import{c as a}from"./p-ae263544.js";import{J as i}from"./p-092e080c.js";import"./p-667a5aa8.js";import"./p-29c0b182.js";const o=class{constructor(r){e(this,r),this.cardFormReady=t(this,"cardFormReady",7),this.ready=t(this,"ready",7),this.cardFormTokenized=t(this,"cardFormTokenize",7),this.cardFormValidated=t(this,"cardFormValidate",7),this.validationMode=void 0,this.iframeOrigin=a.iframeOrigin,this.singleLine=!1,this.internalStyleOverrides=void 0}readyHandler(e){console.warn("The 'cardFormReady' event is deprecated in the next major release and will be renamed to 'ready'"),this.cardFormReady.emit(e),this.ready.emit(e)}tokenizeHandler(e){console.warn("The 'cardFormTokenize' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.cardFormTokenized.emit(e)}validateHandler(e){console.warn("The 'cardFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.cardFormValidated.emit(e)}componentWillLoad(){this.analytics=new i(this)}disconnectedCallback(){this.analytics.cleanup()}async tokenize(...e){if(!this.childRef)throw new Error("Cannot call tokenize");return this.childRef.tokenize(...e)}async validate(){if(!this.childRef)throw new Error("Cannot call validate");return this.childRef.validate()}async resize(){if(console.warn("The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach."),!this.childRef)throw new Error("Cannot call validate");return this.childRef.resize()}render(){return r("justifi-payment-method-form",{key:"f3b2fe6391ac8f2e704062553e920cb44ddca776",ref:e=>{e&&(this.childRef=e)},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"card","single-line":this.singleLine,"payment-method-form-ready":this.cardFormReady,"payment-method-form-validate":this.cardFormValidated,"payment-method-form-tokenize":this.cardFormTokenized,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{o as justifi_card_form}
@@ -0,0 +1 @@
1
+ import{r as e,h as a,H as c}from"./p-fad19d75.js";import{D as d,c as s}from"./p-e1651130.js";const f=class{constructor(a){e(this,a),this.data=void 0}render(){var e,f,i,t;return a(c,{key:"aa7ffada2ee18ba7d62be5795c5cef560dd26184"},a(s,{key:"122081285aefa52f40251c81529148af59d84175",sectionTitle:"Terms and Conditions"}),a("div",{key:"74d0817d94cf1f08a58f5b03b28b97ec953fe661",class:"d-table gap-2 w-100"},a("div",{key:"ef5f8f0017ce75ea326cb9d9f6b73cc10071be69",class:"row gy-3"},a("div",{key:"915af12c352ac4ec62fded7b49f897e30bb40b1d",class:"col-12 col-md-6"},a(d,{key:"c7541087fb9e724a679408af37f449749295ac13",title:"IP",value:null===(e=this.data)||void 0===e?void 0:e.ip}),a(d,{key:"e6eadb4c1f58a4fbbc56cae87114cb2271305fe9",title:"Accepted?",value:null===(i=null===(f=this.data)||void 0===f?void 0:f.accepted)||void 0===i?void 0:i.toString()}),a(d,{key:"375dc86a8af2095ac977c45e13ac1a026a30b2b1",title:"User Agent",value:null===(t=this.data)||void 0===t?void 0:t.user_agent})))))}};export{f as subaccount_terms_details}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e,H as s}from"./p-fad19d75.js";import{I as a}from"./p-1ad5995e.js";import{C as o}from"./p-525db3e8.js";const r=class{constructor(e){t(this,e),this.formControlInput=i(this,"formControlInput",7),this.formControlBlur=i(this,"formControlBlur",7),this.imask=null,this.initializeIMask=()=>{this.textInput&&(this.imask=a(this.textInput,this.maskOptions),this.imask.on("accept",(()=>{const t=this.imask.unmaskedValue;this.inputHandler(this.name,t),this.formControlInput.emit({name:this.name,value:t})})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const i=t.target.getAttribute("name");this.formControlInput.emit({name:i,value:this.imask.unmaskedValue})},this.updateInput=t=>{this.imask&&(this.imask.value=String(t))},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.maskOptions=o.DECIMAL,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.initializeIMask(),this.updateInput(this.defaultValue)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}render(){return e(s,{key:"f2aacad037f8f87113058e9f2e30eb87206bfbe3",exportparts:"label,input,input-group-input,input-group-text,input-invalid"},e("div",{key:"3bc32c7abb0f277bf3b49ca9f67c1207ffcc7d9a",class:"form-group d-flex flex-column"},e("label",{key:"ccfb24981f1423c376d9146bf48f53f8ecb3a964",part:"label",class:"form-label",htmlFor:this.name},this.label),e("div",{key:"acb22641d9c7b7aea3ba9d04527958a08cc5138f",class:"input-group"},e("span",{key:"fc2b1f6ad3332b464fa55c5a72fca2b4d6652d6c",class:"input-group-text",part:"input-group-text"},"$"),e("input",{key:"39aee063f8a381251ee424a9e1488341e3dbbab5",ref:t=>this.textInput=t,id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:`input input-group-input ${this.errorText&&"input-invalid"}`,class:this.errorText?"form-control monetary is-invalid":"form-control monetary",type:"text",disabled:this.disabled})),e("form-control-help-text",{key:"f9e05bb145ee2e33b92132ba3564c56412ea705e",helpText:this.helpText,name:this.name}),e("form-control-error-text",{key:"e92a7992598bd13c61d9f8cbce17fce999b9924d",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{r as form_control_monetary}
@@ -0,0 +1 @@
1
+ import{c as e,a as t}from"./p-2eab3c90.js";import{l,a,c as s,s as d,p as n,i as r,b as i,e as o,d as c,f as m,g as p}from"./p-89887332.js";const u=r=>{const i=e({line1:l.required("Enter street address"),line2:a.nullable(),city:s.required("Enter city"),state:d.required("Select state"),postal_code:n.required("Enter postal code"),country:t().required("Select country")}),o=e({line1:l.nullable(),line2:a.nullable(),city:s.nullable(),state:d.nullable(),postal_code:n.nullable(),country:t().required("Select country")});return r?o:i},b=(l,a)=>{const s=e({name:r.required(`Enter ${l} name`),title:i.required(`Enter ${l} title`),email:o.required(`Enter ${l} email`),phone:c.required("Enter phone number"),dob_full:m(l).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:p,address:u(a)}),d=e({name:r.required(`Enter ${l} name`),title:i.nullable(),email:o.nullable(),phone:c.nullable(),dob_full:m(l).nullable(),ssn_last4:t().nullable(),identification_number:p.nullable(),address:u(a)});return a?d:s},E=(e,t)=>{var l;return f(e),_(e.legal_address),y(e.representative),(null===(l=t.owners)||void 0===l?void 0:l.length)&&delete e.owners,e},f=e=>(delete e.id,delete e.documents,delete e.bank_accounts,delete e.product_categories,delete e.created_at,delete e.updated_at,delete e.associated_accounts,delete e.terms_conditions_accepted,e),_=e=>(delete e.id,delete e.created_at,delete e.updated_at,e),y=e=>(delete e.id,delete e.documents,delete e.created_at,delete e.updated_at,delete e.address.id,delete e.address.created_at,delete e.address.updated_at,delete e.business_id,delete e.dob_full,delete e.ssn_last4,e);export{u as a,f as b,y as c,_ as d,b as i,E as p}