@justifi/webcomponents 4.19.3-rc-2 → 4.19.3

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 (301) hide show
  1. package/dist/cjs/{Analytics-adc90fc6.js → Analytics-a0a86d82.js} +4 -3
  2. package/dist/cjs/{Api-3bc6e43f.js → Api-b98b256f.js} +3 -3
  3. package/dist/cjs/{Business-aacbe893.js → Business-aa799fec.js} +104 -9
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
  5. package/dist/cjs/{business-additional-questions-schema-cf545610.js → business-additional-questions-schema-26b0eecb.js} +1 -1
  6. package/dist/cjs/{business-form-options-582467fe.js → business-form-options-5db0bd5e.js} +2 -2
  7. package/dist/cjs/{payload-parsers-1cbc3b57.js → business-identity-schema-503ecb77.js} +1 -47
  8. package/dist/cjs/{business.service-090a21e1.js → business.service-031c0084.js} +7 -6
  9. package/dist/cjs/config-05767cba.js +15 -0
  10. package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
  11. package/dist/cjs/form-control-checkbox_9.cjs.entry.js +26 -26
  12. package/dist/cjs/{get-payout-csv-238e839a.js → get-payout-csv-3a3260ec.js} +5 -4
  13. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  14. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +15 -14
  15. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -5
  16. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +3 -3
  17. package/dist/cjs/justifi-business-details.cjs.entry.js +6 -5
  18. package/dist/cjs/justifi-business-form.cjs.entry.js +14 -13
  19. package/dist/cjs/justifi-card-form.cjs.entry.js +6 -5
  20. package/dist/cjs/justifi-checkout-core.cjs.entry.js +4 -4
  21. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -5
  22. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -4
  23. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +10 -12
  24. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -11
  25. package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -4
  26. package/dist/cjs/justifi-payment-form.cjs.entry.js +8 -7
  27. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
  28. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -5
  29. package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -4
  30. package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -4
  31. package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -4
  32. package/dist/cjs/justifi-refund-form.cjs.entry.js +4 -3
  33. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
  34. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -5
  35. package/dist/cjs/{package-22d30c5d.js → package-99f4d813.js} +2 -2
  36. package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
  37. package/dist/cjs/{payment.service-c92635c8.js → payment.service-4b1c0a20.js} +4 -3
  38. package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
  39. package/dist/cjs/payout-details-core.cjs.entry.js +1 -1
  40. package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
  41. package/dist/cjs/{schema-validations-2733de42.js → schema-validations-0a7e46a3.js} +1 -1
  42. package/dist/cjs/{utils-89d86e29.js → utils-af1b60a9.js} +0 -16
  43. package/dist/collection/api/Api.js +3 -3
  44. package/dist/collection/api/Business.js +66 -7
  45. package/dist/collection/api/Identity.js +39 -3
  46. package/dist/collection/api/services/analytics.service.js +2 -1
  47. package/dist/collection/api/services/business.service.js +6 -5
  48. package/dist/collection/api/services/checkout.service.js +3 -2
  49. package/dist/collection/api/services/insurance.service.js +3 -2
  50. package/dist/collection/api/services/payment.service.js +3 -2
  51. package/dist/collection/api/services/payout.service.js +4 -3
  52. package/dist/collection/api/services/provision.service.js +2 -1
  53. package/dist/collection/api/services/reports.service.js +2 -1
  54. package/dist/collection/components/bank-account-form/bank-account-form.js +4 -3
  55. package/dist/collection/components/business-forms/business-form/business-form.js +5 -5
  56. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +4 -5
  57. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +3 -3
  58. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +4 -3
  59. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +3 -5
  60. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +3 -3
  61. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +3 -4
  62. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +4 -3
  63. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +3 -4
  64. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +4 -3
  65. package/dist/collection/components/business-forms/utils/business-form-options.js +1 -1
  66. package/dist/collection/components/card-form/card-form.js +4 -3
  67. package/dist/collection/components/checkout/checkout-core.js +4 -4
  68. package/dist/collection/components/checkout/new-payment-method.js +4 -6
  69. package/dist/collection/components/checkout/payment-method-options.js +4 -3
  70. package/dist/collection/components/checkout/saved-payment-method.js +4 -3
  71. package/dist/collection/components/checkout/sezzle-payment-method.js +4 -3
  72. package/dist/collection/components/payment-form/payment-form.js +4 -3
  73. package/dist/collection/components/refund-form/refund-form.js +3 -2
  74. package/dist/config.js +11 -0
  75. package/dist/docs.json +9 -9
  76. package/dist/{webcomponents/p-15eafa87.js → esm/Analytics-e460ab05.js} +4 -3
  77. package/dist/esm/{Api-b09a2f6a.js → Api-c8abc2e0.js} +3 -3
  78. package/dist/esm/{Business-e218b4f4.js → Business-b73d5055.js} +104 -9
  79. package/dist/esm/additional-questions-details_5.entry.js +1 -1
  80. package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-a5583cf8.js} +1 -1
  81. package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-d790973e.js} +2 -2
  82. package/dist/esm/{payload-parsers-acb719d1.js → business-identity-schema-9e3269fb.js} +2 -44
  83. package/dist/esm/{business.service-37d0cc72.js → business.service-1f589b6e.js} +7 -6
  84. package/dist/esm/config-27764a9d.js +13 -0
  85. package/dist/esm/form-alert_5.entry.js +2 -2
  86. package/dist/esm/form-control-checkbox_9.entry.js +21 -21
  87. package/dist/esm/{get-payout-csv-a702a0d9.js → get-payout-csv-93427146.js} +5 -4
  88. package/dist/esm/gross-payment-chart-core.entry.js +1 -1
  89. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +15 -14
  90. package/dist/esm/justifi-bank-account-form.entry.js +6 -5
  91. package/dist/esm/justifi-billing-form_2.entry.js +3 -3
  92. package/dist/esm/justifi-business-details.entry.js +6 -5
  93. package/dist/esm/justifi-business-form.entry.js +13 -12
  94. package/dist/esm/justifi-card-form.entry.js +6 -5
  95. package/dist/esm/justifi-checkout-core.entry.js +4 -4
  96. package/dist/esm/justifi-checkout.entry.js +6 -5
  97. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -4
  98. package/dist/esm/justifi-new-payment-method_4.entry.js +10 -12
  99. package/dist/esm/justifi-owner-form_3.entry.js +11 -10
  100. package/dist/esm/justifi-payment-details.entry.js +5 -4
  101. package/dist/esm/justifi-payment-form.entry.js +8 -7
  102. package/dist/esm/justifi-payment-method-form.entry.js +2 -2
  103. package/dist/esm/justifi-payment-provisioning.entry.js +6 -5
  104. package/dist/esm/justifi-payments-list.entry.js +5 -4
  105. package/dist/esm/justifi-payout-details.entry.js +5 -4
  106. package/dist/esm/justifi-payouts-list.entry.js +5 -4
  107. package/dist/esm/justifi-refund-form.entry.js +4 -3
  108. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
  109. package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -5
  110. package/dist/{webcomponents/p-2e8f4937.js → esm/package-0935c5e5.js} +2 -2
  111. package/dist/esm/payment-details-core.entry.js +1 -1
  112. package/dist/esm/{payment.service-9359fe15.js → payment.service-02c596b9.js} +4 -3
  113. package/dist/esm/payments-list-core.entry.js +1 -1
  114. package/dist/esm/payout-details-core.entry.js +1 -1
  115. package/dist/esm/payouts-list-core.entry.js +1 -1
  116. package/dist/esm/{schema-validations-a83ff220.js → schema-validations-e725d701.js} +2 -2
  117. package/dist/esm/{utils-3c1dd2fa.js → utils-e66d8bca.js} +1 -16
  118. package/dist/module/Analytics.js +2 -1
  119. package/dist/module/Api.js +3 -3
  120. package/dist/module/Business.js +104 -9
  121. package/dist/module/business-additional-questions-form-step-core.js +3 -3
  122. package/dist/module/business-bank-account-form-step.js +4 -3
  123. package/dist/module/business-core-info-form-step-core.js +3 -5
  124. package/dist/module/business-document-upload-form-step.js +4 -3
  125. package/dist/module/business-document-upload-input-group.js +1 -1
  126. package/dist/module/business-documents-on-file.js +1 -1
  127. package/dist/module/business-form-options.js +1 -1
  128. package/dist/module/business-owners-form-step-core.js +3 -3
  129. package/dist/module/business-representative-form-step-core.js +3 -4
  130. package/dist/module/business-terms-conditions-form-step.js +4 -3
  131. package/dist/module/business.service.js +6 -5
  132. package/dist/module/checkout-core.js +3 -3
  133. package/dist/module/config.js +13 -0
  134. package/dist/module/get-payout-csv.js +4 -3
  135. package/dist/module/justifi-bank-account-form.js +3 -2
  136. package/dist/module/justifi-business-form.js +5 -5
  137. package/dist/module/justifi-card-form.js +3 -2
  138. package/dist/module/justifi-checkout.js +3 -2
  139. package/dist/module/justifi-gross-payment-chart.js +2 -1
  140. package/dist/module/justifi-payment-form.js +4 -3
  141. package/dist/module/justifi-payment-provisioning.js +2 -1
  142. package/dist/module/justifi-refund-form.js +3 -2
  143. package/dist/module/justifi-season-interruption-insurance.js +3 -2
  144. package/dist/module/legal-address-form-step-core.js +3 -4
  145. package/dist/module/new-payment-method.js +3 -5
  146. package/dist/module/owner-form-core2.js +4 -5
  147. package/dist/module/package.js +2 -2
  148. package/dist/module/payment-details-core2.js +1 -1
  149. package/dist/module/payment-method-options.js +3 -2
  150. package/dist/module/payment.service.js +3 -2
  151. package/dist/module/payments-list-core2.js +1 -1
  152. package/dist/module/payout-details-core2.js +1 -1
  153. package/dist/module/payouts-list-core2.js +1 -1
  154. package/dist/module/saved-payment-method.js +4 -3
  155. package/dist/module/sezzle-payment-method.js +3 -2
  156. package/dist/module/utils2.js +1 -16
  157. package/dist/types/api/Business.d.ts +87 -1
  158. package/dist/types/api/Identity.d.ts +45 -1
  159. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +44 -1
  160. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +11 -1
  161. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +11 -1
  162. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +24 -1
  163. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +11 -1
  164. package/dist/types/components/checkout/new-payment-method.d.ts +0 -1
  165. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
  166. package/dist/webcomponents/index.esm.js +0 -1
  167. package/dist/webcomponents/p-056e75be.entry.js +1 -0
  168. package/dist/webcomponents/p-07109641.entry.js +1 -0
  169. package/dist/webcomponents/p-08b0fb31.js +1 -41
  170. package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
  171. package/dist/webcomponents/p-11b6ed0c.entry.js +1 -0
  172. package/dist/webcomponents/p-124c1ecd.entry.js +1 -0
  173. package/dist/webcomponents/p-14c91ffd.js +1 -20
  174. package/dist/webcomponents/p-15976984.entry.js +1 -0
  175. package/dist/webcomponents/p-1815a43b.js +1 -0
  176. package/dist/webcomponents/p-1ad5995e.js +1 -3599
  177. package/dist/webcomponents/p-1cf90026.entry.js +1 -0
  178. package/dist/webcomponents/p-1eee25f3.entry.js +19 -0
  179. package/dist/webcomponents/p-1ff8810b.js +1 -29
  180. package/dist/webcomponents/p-2338affa.js +1 -213
  181. package/dist/webcomponents/p-277aee05.js +1 -0
  182. package/dist/webcomponents/p-2b6c9c4f.js +1 -7
  183. package/dist/webcomponents/p-2eab3c90.js +1 -3052
  184. package/dist/webcomponents/p-3423ddfd.entry.js +1 -0
  185. package/dist/webcomponents/p-39c6f36a.entry.js +1 -0
  186. package/dist/webcomponents/p-401d6607.js +1 -0
  187. package/dist/webcomponents/p-421ed39d.entry.js +1 -0
  188. package/dist/webcomponents/p-487b72a8.entry.js +1 -0
  189. package/dist/webcomponents/p-4e017b58.js +1 -0
  190. package/dist/webcomponents/p-4e01fec8.entry.js +1 -0
  191. package/dist/webcomponents/p-5022f21c.js +1 -0
  192. package/dist/webcomponents/p-525db3e8.js +1 -22
  193. package/dist/webcomponents/p-55182a59.js +1 -0
  194. package/dist/webcomponents/p-56f6ce4c.js +1 -10
  195. package/dist/webcomponents/p-5968ff8a.js +1 -178
  196. package/dist/webcomponents/p-5a62fca2.js +1 -0
  197. package/dist/webcomponents/p-5e2c9ec8.js +1 -0
  198. package/dist/webcomponents/p-5e7c60d8.js +1 -0
  199. package/dist/webcomponents/p-6078a370.js +1 -244
  200. package/dist/webcomponents/p-69c18f39.entry.js +1 -0
  201. package/dist/webcomponents/p-6abb2a04.entry.js +1 -0
  202. package/dist/webcomponents/p-6ac806ff.entry.js +1 -0
  203. package/dist/webcomponents/p-721dcf51.entry.js +1 -0
  204. package/dist/webcomponents/p-7d3be485.js +1 -0
  205. package/dist/webcomponents/p-7d85af5c.js +1 -16
  206. package/dist/webcomponents/p-7ff329b1.js +1 -0
  207. package/dist/webcomponents/p-8115b2f4.js +1 -28
  208. package/dist/webcomponents/p-817da23c.entry.js +1 -0
  209. package/dist/webcomponents/p-8df7bde8.js +1 -27
  210. package/dist/webcomponents/p-9c9c7dac.js +1 -24
  211. package/dist/webcomponents/p-a99032e1.entry.js +1 -0
  212. package/dist/webcomponents/p-ad47f37c.entry.js +1 -0
  213. package/dist/webcomponents/p-aedb421f.entry.js +1 -0
  214. package/dist/webcomponents/p-b676bca5.entry.js +1 -0
  215. package/dist/webcomponents/p-b6c3b7bc.entry.js +1 -0
  216. package/dist/webcomponents/p-ba4bae6f.js +1 -12
  217. package/dist/webcomponents/p-bbed6107.entry.js +1 -0
  218. package/dist/webcomponents/p-bd278ff4.entry.js +1 -0
  219. package/dist/webcomponents/p-be39c802.entry.js +1 -0
  220. package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
  221. package/dist/webcomponents/p-d4a44a1e.entry.js +1 -0
  222. package/dist/webcomponents/p-d76002d5.entry.js +1 -0
  223. package/dist/webcomponents/p-d78eb6ce.js +1 -0
  224. package/dist/webcomponents/p-d8355f91.entry.js +1 -0
  225. package/dist/webcomponents/p-d89bad72.js +1 -39
  226. package/dist/webcomponents/p-da1d174d.entry.js +1 -0
  227. package/dist/webcomponents/p-dce846bf.js +1 -27
  228. package/dist/webcomponents/p-df21aaad.js +1 -120
  229. package/dist/webcomponents/p-e1255160.js +1 -3
  230. package/dist/webcomponents/p-e2b2213f.entry.js +1 -0
  231. package/dist/webcomponents/p-e2c88817.entry.js +1 -0
  232. package/dist/webcomponents/p-e31f0f3e.entry.js +1 -0
  233. package/dist/webcomponents/p-e333620e.js +1 -34
  234. package/dist/webcomponents/p-e3f4a2a6.js +1 -0
  235. package/dist/webcomponents/p-e3fab0e2.js +1 -43
  236. package/dist/webcomponents/p-e7fd1357.entry.js +1 -0
  237. package/dist/webcomponents/p-eccf2e8e.entry.js +1 -0
  238. package/dist/webcomponents/p-edb62047.entry.js +1 -0
  239. package/dist/webcomponents/p-f0866375.entry.js +1 -0
  240. package/dist/webcomponents/p-f5ebca3e.entry.js +1 -0
  241. package/dist/webcomponents/p-fad19d75.js +2 -1638
  242. package/dist/webcomponents/p-fb58feb5.entry.js +1 -0
  243. package/dist/webcomponents/webcomponents.css +4 -362
  244. package/dist/webcomponents/webcomponents.esm.js +1 -20
  245. package/package.json +2 -2
  246. package/dist/collection/components/business-forms/utils/payload-parsers.js +0 -41
  247. package/dist/esm/Analytics-a8eb7344.js +0 -77
  248. package/dist/esm/package-ccb774a9.js +0 -79
  249. package/dist/module/payload-parsers.js +0 -43
  250. package/dist/types/components/business-forms/utils/payload-parsers.d.ts +0 -4
  251. package/dist/webcomponents/p-01a404ca.entry.js +0 -44
  252. package/dist/webcomponents/p-03d35880.entry.js +0 -130
  253. package/dist/webcomponents/p-06ff0429.entry.js +0 -65
  254. package/dist/webcomponents/p-0e1bc91e.js +0 -28
  255. package/dist/webcomponents/p-10875f3d.entry.js +0 -97
  256. package/dist/webcomponents/p-157acba8.entry.js +0 -98
  257. package/dist/webcomponents/p-18fa0479.entry.js +0 -131
  258. package/dist/webcomponents/p-1a5120f4.entry.js +0 -145
  259. package/dist/webcomponents/p-24dc023a.entry.js +0 -791
  260. package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
  261. package/dist/webcomponents/p-27d87fe2.entry.js +0 -133
  262. package/dist/webcomponents/p-29c0b182.js +0 -114
  263. package/dist/webcomponents/p-3395e896.entry.js +0 -74
  264. package/dist/webcomponents/p-3fd13ca3.js +0 -52
  265. package/dist/webcomponents/p-47d79529.js +0 -18
  266. package/dist/webcomponents/p-53ecc8b9.entry.js +0 -261
  267. package/dist/webcomponents/p-5482d030.entry.js +0 -21
  268. package/dist/webcomponents/p-576826b1.entry.js +0 -43
  269. package/dist/webcomponents/p-5f835b89.entry.js +0 -606
  270. package/dist/webcomponents/p-6124b1b3.entry.js +0 -80
  271. package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
  272. package/dist/webcomponents/p-7582b554.entry.js +0 -18
  273. package/dist/webcomponents/p-75fd6367.entry.js +0 -149
  274. package/dist/webcomponents/p-79646550.entry.js +0 -61
  275. package/dist/webcomponents/p-800d31fe.entry.js +0 -162
  276. package/dist/webcomponents/p-83125497.js +0 -4027
  277. package/dist/webcomponents/p-85fc69e5.js +0 -90
  278. package/dist/webcomponents/p-89887332.js +0 -301
  279. package/dist/webcomponents/p-8eb774df.entry.js +0 -54
  280. package/dist/webcomponents/p-9e17630d.entry.js +0 -1684
  281. package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
  282. package/dist/webcomponents/p-a4e8573e.entry.js +0 -94
  283. package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
  284. package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
  285. package/dist/webcomponents/p-ab4816e1.entry.js +0 -117
  286. package/dist/webcomponents/p-ac086069.entry.js +0 -58
  287. package/dist/webcomponents/p-af244664.js +0 -126
  288. package/dist/webcomponents/p-b4b8b531.js +0 -44
  289. package/dist/webcomponents/p-b82c146f.entry.js +0 -111
  290. package/dist/webcomponents/p-ba5fae28.js +0 -90
  291. package/dist/webcomponents/p-bd66f9d2.entry.js +0 -101
  292. package/dist/webcomponents/p-cc39384f.entry.js +0 -99
  293. package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
  294. package/dist/webcomponents/p-dad3e069.entry.js +0 -298
  295. package/dist/webcomponents/p-e1e7525b.entry.js +0 -73
  296. package/dist/webcomponents/p-e356f280.entry.js +0 -29
  297. package/dist/webcomponents/p-e9a5cb95.entry.js +0 -94
  298. package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
  299. package/dist/webcomponents/p-edc37d1f.entry.js +0 -75
  300. package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
  301. package/dist/{globals.d.ts → types/global.d.ts} +1 -1
@@ -1,98 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './p-fad19d75.js';
2
- import { t as tableExportedParts } from './p-2b6c9c4f.js';
3
- import { m as makeGetPayoutCSV, P as PayoutService } from './p-b4b8b531.js';
4
- import './p-56f6ce4c.js';
5
- import './p-df21aaad.js';
6
- import { P as Payout } from './p-e3fab0e2.js';
7
- import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './p-14c91ffd.js';
8
- import { g as getErrorMessage, a as getErrorCode } from './p-8115b2f4.js';
9
- import { E as ErrorState } from './p-dce846bf.js';
10
- import { J as JustifiAnalytics } from './p-15eafa87.js';
11
- import './p-29c0b182.js';
12
- import './p-2e8f4937.js';
13
-
14
- const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
15
- var _a, _b;
16
- try {
17
- const response = await service.fetchPayouts(id, authToken, params);
18
- if (!response.error) {
19
- const pagingInfo = Object.assign({}, response.page_info);
20
- const payouts = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new Payout(dataItem))) || [];
21
- onSuccess({ payouts, pagingInfo });
22
- }
23
- else {
24
- const error = getErrorMessage(response.error);
25
- const code = getErrorCode((_b = response.error) === null || _b === void 0 ? void 0 : _b.code);
26
- return onError({
27
- error,
28
- code,
29
- severity: ComponentErrorSeverity.ERROR,
30
- });
31
- }
32
- }
33
- catch (error) {
34
- const message = getErrorMessage(error);
35
- const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
36
- return onError({
37
- error: message,
38
- code,
39
- severity: ComponentErrorSeverity.ERROR,
40
- });
41
- }
42
- };
43
-
44
- const PayoutsList = class {
45
- constructor(hostRef) {
46
- registerInstance(this, hostRef);
47
- this.errorEvent = createEvent(this, "error-event", 7);
48
- this.handleOnError = (event) => {
49
- this.errorMessage = event.detail.message;
50
- this.errorEvent.emit(event.detail);
51
- };
52
- this.accountId = undefined;
53
- this.authToken = undefined;
54
- this.getPayouts = undefined;
55
- this.getPayoutCSV = undefined;
56
- this.errorMessage = null;
57
- }
58
- componentWillLoad() {
59
- this.analytics = new JustifiAnalytics(this);
60
- this.initializeServices();
61
- }
62
- disconnectedCallback() {
63
- this.analytics.cleanup();
64
- }
65
- propChanged() {
66
- this.initializeServices();
67
- }
68
- initializeServices() {
69
- if (this.accountId && this.authToken) {
70
- const serviceParams = {
71
- id: this.accountId,
72
- authToken: this.authToken,
73
- service: new PayoutService(),
74
- };
75
- this.getPayouts = makeGetPayouts(serviceParams);
76
- this.getPayoutCSV = makeGetPayoutCSV(serviceParams);
77
- }
78
- else {
79
- this.errorMessage = 'Account ID and Auth Token are required';
80
- this.errorEvent.emit({
81
- errorCode: ComponentErrorCodes.MISSING_PROPS,
82
- message: 'Account ID and Auth Token are required',
83
- });
84
- }
85
- }
86
- render() {
87
- if (this.errorMessage) {
88
- return ErrorState(this.errorMessage);
89
- }
90
- return (h(Host, { exportedparts: tableExportedParts }, h("payouts-list-core", { getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, "onError-event": this.handleOnError })));
91
- }
92
- static get watchers() { return {
93
- "accountId": ["propChanged"],
94
- "authToken": ["propChanged"]
95
- }; }
96
- };
97
-
98
- export { PayoutsList as justifi_payouts_list };
@@ -1,131 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
2
- import { A as Api } from './p-29c0b182.js';
3
- import './p-56f6ce4c.js';
4
- import './p-df21aaad.js';
5
- import './p-e3fab0e2.js';
6
- import { g as getErrorMessage, a as getErrorCode } from './p-8115b2f4.js';
7
- import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './p-14c91ffd.js';
8
- import { J as JustifiAnalytics } from './p-15eafa87.js';
9
- import './p-2e8f4937.js';
10
-
11
- class InsuranceService {
12
- async fetchQuote(authToken, payload) {
13
- const endpoint = 'insurance/quotes';
14
- return Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
15
- }
16
- async toggleCoverage(authToken, quoteId, payload) {
17
- const endpoint = `insurance/quotes/${quoteId}/toggle`;
18
- return Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
19
- }
20
- }
21
-
22
- const makeGetQuote = ({ authToken, service }) => async ({ payload, onSuccess, onError }) => {
23
- var _a;
24
- try {
25
- const response = await service.fetchQuote(authToken, payload);
26
- if (!response.error) {
27
- const quote = response.data;
28
- onSuccess({ quote });
29
- }
30
- else {
31
- const responseError = getErrorMessage(response.error);
32
- const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
33
- return onError({
34
- error: responseError,
35
- code,
36
- severity: ComponentErrorSeverity.ERROR,
37
- });
38
- }
39
- }
40
- catch (error) {
41
- const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
42
- return onError({
43
- error: error.message || error,
44
- code,
45
- severity: ComponentErrorSeverity.ERROR,
46
- });
47
- }
48
- };
49
- const makeToggleCoverage = ({ authToken, service }) => async ({ quoteId, payload, onSuccess, onError }) => {
50
- var _a;
51
- try {
52
- const response = await service.toggleCoverage(authToken, quoteId, payload);
53
- if (!response.error) {
54
- const quote = response.data;
55
- onSuccess({ quote });
56
- }
57
- else {
58
- const responseError = getErrorMessage(response.error);
59
- const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
60
- return onError({
61
- error: responseError,
62
- code,
63
- severity: ComponentErrorSeverity.ERROR,
64
- });
65
- }
66
- }
67
- catch (error) {
68
- const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
69
- return onError({
70
- error: error.message || error,
71
- code,
72
- severity: ComponentErrorSeverity.ERROR,
73
- });
74
- }
75
- };
76
-
77
- const SeasonInterruptionInsurance = class {
78
- constructor(hostRef) {
79
- registerInstance(this, hostRef);
80
- this.errorEvent = createEvent(this, "error-event", 7);
81
- this.authToken = undefined;
82
- this.checkoutId = undefined;
83
- this.primaryIdentityFirstName = undefined;
84
- this.primaryIdentityLastName = undefined;
85
- this.primaryIdentityState = undefined;
86
- this.primaryIdentityPostalCode = undefined;
87
- this.primaryIdentityCountry = undefined;
88
- this.primaryIdentityEmailAddress = undefined;
89
- this.policyAttributesInsurableAmount = undefined;
90
- this.policyAttributesStartDate = undefined;
91
- this.policyAttributesEndDate = undefined;
92
- this.coveredIdentityFirstName = undefined;
93
- this.coveredIdentityLastName = undefined;
94
- this.getQuote = undefined;
95
- this.toggleCoverage = undefined;
96
- this.quote = undefined;
97
- }
98
- async validate() {
99
- return this.seasonInterruptionCoreRef.validate();
100
- }
101
- componentWillLoad() {
102
- this.analytics = new JustifiAnalytics(this);
103
- this.initializeServiceMethods();
104
- }
105
- disconnectedCallback() {
106
- this.analytics.cleanup();
107
- }
108
- initializeServiceMethods() {
109
- if (!this.authToken) {
110
- this.errorEvent.emit({
111
- errorCode: ComponentErrorCodes.MISSING_PROPS,
112
- message: 'Missing authToken',
113
- severity: ComponentErrorSeverity.ERROR,
114
- });
115
- return;
116
- }
117
- this.getQuote = makeGetQuote({
118
- authToken: this.authToken,
119
- service: new InsuranceService(),
120
- });
121
- this.toggleCoverage = makeToggleCoverage({
122
- authToken: this.authToken,
123
- service: new InsuranceService(),
124
- });
125
- }
126
- render() {
127
- return (h("justifi-season-interruption-insurance-core", { key: '256d45d39c5d297abb7f955229b0e0e9fbc9504a', ref: (el) => (this.seasonInterruptionCoreRef = el), "checkout-id": this.checkoutId, getQuote: this.getQuote, toggleCoverage: this.toggleCoverage, "primary-identity-first-name": this.primaryIdentityFirstName, "primary-identity-last-name": this.primaryIdentityLastName, "primary-identity-state": this.primaryIdentityState, "primary-identity-postal-code": this.primaryIdentityPostalCode, "primary-identity-country": this.primaryIdentityCountry, "primary-identity-email-address": this.primaryIdentityEmailAddress, "policy-attributes-insurable-amount": this.policyAttributesInsurableAmount, "policy-attributes-start-date": this.policyAttributesStartDate, "policy-attributes-end-date": this.policyAttributesEndDate, "covered-identity-first-name": this.coveredIdentityFirstName, "covered-identity-last-name": this.coveredIdentityLastName }));
128
- }
129
- };
130
-
131
- export { SeasonInterruptionInsurance as justifi_season_interruption_insurance };
@@ -1,145 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
2
- import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './p-14c91ffd.js';
3
- import { g as getErrorMessage, a as getErrorCode } from './p-8115b2f4.js';
4
- import { A as Api } from './p-29c0b182.js';
5
- import './p-56f6ce4c.js';
6
- import './p-df21aaad.js';
7
- import './p-e3fab0e2.js';
8
- import { J as JustifiAnalytics } from './p-15eafa87.js';
9
- import './p-2e8f4937.js';
10
-
11
- const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
12
- var _a;
13
- try {
14
- const response = await service.fetchCheckout(authToken, checkoutId);
15
- if (!response.error) {
16
- const checkout = response.data;
17
- onSuccess({ checkout });
18
- }
19
- else {
20
- const responseError = getErrorMessage(response.error);
21
- const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
22
- return onError({
23
- error: responseError,
24
- code,
25
- severity: ComponentErrorSeverity.ERROR,
26
- });
27
- }
28
- }
29
- catch (error) {
30
- const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
31
- return onError({
32
- error: error.message || error,
33
- code,
34
- severity: ComponentErrorSeverity.ERROR,
35
- });
36
- }
37
- };
38
- const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ payment, onSuccess, onError }) => {
39
- var _a;
40
- try {
41
- const response = await service.complete(authToken, checkoutId, payment);
42
- if (!response.error) {
43
- onSuccess(response);
44
- }
45
- else {
46
- const responseError = getErrorMessage(response.error);
47
- const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
48
- return onError({
49
- error: responseError,
50
- code,
51
- severity: ComponentErrorSeverity.ERROR,
52
- });
53
- }
54
- }
55
- catch (error) {
56
- const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
57
- return onError({
58
- error: error.message || error,
59
- code,
60
- severity: ComponentErrorSeverity.ERROR,
61
- });
62
- }
63
- };
64
-
65
- class CheckoutService {
66
- async fetchCheckout(authToken, checkoutId) {
67
- const endpoint = `checkouts/${checkoutId}`;
68
- return Api({ authToken, apiOrigin: "" }).get(endpoint);
69
- }
70
- async complete(authToken, checkoutId, payment) {
71
- const endpoint = `checkouts/${checkoutId}/complete`;
72
- const payload = {
73
- payment_mode: payment.payment_mode,
74
- };
75
- if (payment.payment_token) {
76
- payload.payment_token = payment.payment_token;
77
- }
78
- return Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
79
- }
80
- }
81
-
82
- const Checkout = class {
83
- constructor(hostRef) {
84
- registerInstance(this, hostRef);
85
- this.errorEvent = createEvent(this, "error-event", 7);
86
- this.loadedEvent = createEvent(this, "loaded", 7);
87
- this.iframeOrigin = undefined;
88
- this.authToken = undefined;
89
- this.checkoutId = undefined;
90
- this.disableCreditCard = undefined;
91
- this.disableBankAccount = undefined;
92
- this.disableBnpl = undefined;
93
- this.disablePaymentMethodGroup = undefined;
94
- this.getCheckout = undefined;
95
- this.complete = undefined;
96
- this.errorMessage = '';
97
- }
98
- componentWillLoad() {
99
- this.analytics = new JustifiAnalytics(this);
100
- this.initializeGetCheckout();
101
- }
102
- disconnectedCallback() {
103
- this.analytics.cleanup();
104
- }
105
- initializeGetCheckout() {
106
- if (this.authToken && this.checkoutId) {
107
- this.getCheckout = makeGetCheckout({
108
- authToken: this.authToken,
109
- checkoutId: this.checkoutId,
110
- service: new CheckoutService()
111
- });
112
- this.complete = makeCheckoutComplete({
113
- authToken: this.authToken,
114
- checkoutId: this.checkoutId,
115
- service: new CheckoutService()
116
- });
117
- }
118
- else {
119
- this.errorEvent.emit({
120
- message: 'auth-token and checkout-id are required',
121
- errorCode: ComponentErrorCodes.MISSING_PROPS,
122
- severity: ComponentErrorSeverity.ERROR,
123
- });
124
- }
125
- }
126
- propChanged() {
127
- this.initializeGetCheckout();
128
- }
129
- async fillBillingForm(fields) {
130
- this.checkoutCoreRef.fillBillingForm(fields);
131
- }
132
- render() {
133
- return (h("justifi-checkout-core", { key: 'd2f6bfed1be767edcf4ba21cddc503ff5efbec1a', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, ref: el => {
134
- if (el) {
135
- this.checkoutCoreRef = el;
136
- }
137
- } }, h("div", { key: '45ac1bea74ca8ef7999211b51fe7791225d61f00', slot: "insurance" }, h("slot", { key: '13e051844cc7cb4aed98076ccd64954b2dd68228', name: "insurance" }))));
138
- }
139
- static get watchers() { return {
140
- "authToken": ["propChanged"],
141
- "checkoutId": ["propChanged"]
142
- }; }
143
- };
144
-
145
- export { Checkout as justifi_checkout };