@justifi/webcomponents 4.19.1-rc-6 → 4.19.1

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 (244) hide show
  1. package/dist/cjs/{Analytics-54b8e890.js → Analytics-f870b3ee.js} +3 -2
  2. package/dist/cjs/{business-additional-questions-schema-cf545610.js → business-additional-questions-schema-11ce0005.js} +1 -1
  3. package/dist/cjs/{business-form-options-582467fe.js → business-form-options-26f9900c.js} +1 -1
  4. package/dist/cjs/{business.service-6bb7ac82.js → business.service-f63650f5.js} +6 -5
  5. package/dist/cjs/config-ff2dda66.js +15 -0
  6. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  7. package/dist/cjs/form-control-checkbox_9.cjs.entry.js +4 -4
  8. package/dist/cjs/{get-payout-csv-1391ff3e.js → get-payout-csv-f3aee6d0.js} +4 -3
  9. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +10 -9
  10. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -4
  11. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-business-details.cjs.entry.js +4 -3
  13. package/dist/cjs/justifi-business-form.cjs.entry.js +9 -8
  14. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -4
  15. package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -3
  16. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -4
  17. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -3
  18. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +9 -11
  19. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +5 -4
  20. package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -3
  21. package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -5
  22. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
  23. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -5
  24. package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -3
  25. package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -3
  26. package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -3
  27. package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -2
  28. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -4
  29. package/dist/cjs/{package-b75f8267.js → package-1321b070.js} +4 -2
  30. package/dist/cjs/{payload-parsers-1cbc3b57.js → payload-parsers-969ab9b6.js} +1 -1
  31. package/dist/cjs/{payment.service-dfcfa19b.js → payment.service-0a64f9cd.js} +3 -2
  32. package/dist/cjs/{schema-validations-2733de42.js → schema-validations-f3db892c.js} +1 -1
  33. package/dist/collection/api/services/analytics.service.js +2 -1
  34. package/dist/collection/api/services/business.service.js +6 -5
  35. package/dist/collection/api/services/checkout.service.js +3 -2
  36. package/dist/collection/api/services/insurance.service.js +3 -2
  37. package/dist/collection/api/services/payment.service.js +3 -2
  38. package/dist/collection/api/services/payout.service.js +4 -3
  39. package/dist/collection/api/services/provision.service.js +4 -2
  40. package/dist/collection/api/services/reports.service.js +2 -1
  41. package/dist/collection/components/bank-account-form/bank-account-form.js +4 -3
  42. package/dist/collection/components/business-forms/business-form/business-form.js +3 -2
  43. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +3 -2
  44. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +3 -2
  45. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +3 -2
  46. package/dist/collection/components/business-forms/utils/business-form-options.js +1 -1
  47. package/dist/collection/components/card-form/card-form.js +4 -3
  48. package/dist/collection/components/checkout/checkout-core.js +4 -4
  49. package/dist/collection/components/checkout/new-payment-method.js +4 -6
  50. package/dist/collection/components/checkout/payment-method-options.js +4 -3
  51. package/dist/collection/components/checkout/saved-payment-method.js +4 -3
  52. package/dist/collection/components/checkout/sezzle-payment-method.js +4 -3
  53. package/dist/collection/components/payment-form/payment-form.js +4 -3
  54. package/dist/collection/components/refund-form/refund-form.js +3 -2
  55. package/dist/config.js +11 -0
  56. package/dist/docs.json +8 -8
  57. package/dist/esm/{Analytics-25ef1b60.js → Analytics-262cdde5.js} +3 -2
  58. package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-e39bc781.js} +1 -1
  59. package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-0b08e08c.js} +1 -1
  60. package/dist/esm/{business.service-f45decfc.js → business.service-74bd1212.js} +6 -5
  61. package/dist/esm/config-476c7241.js +13 -0
  62. package/dist/esm/form-alert_5.entry.js +1 -1
  63. package/dist/esm/form-control-checkbox_9.entry.js +4 -4
  64. package/dist/esm/{get-payout-csv-e784a2ab.js → get-payout-csv-b494abfe.js} +4 -3
  65. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +10 -9
  66. package/dist/esm/justifi-bank-account-form.entry.js +5 -4
  67. package/dist/esm/justifi-billing-form_2.entry.js +2 -2
  68. package/dist/esm/justifi-business-details.entry.js +4 -3
  69. package/dist/esm/justifi-business-form.entry.js +9 -8
  70. package/dist/esm/justifi-card-form.entry.js +5 -4
  71. package/dist/esm/justifi-checkout-core.entry.js +3 -3
  72. package/dist/esm/justifi-checkout.entry.js +5 -4
  73. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -3
  74. package/dist/esm/justifi-new-payment-method_4.entry.js +9 -11
  75. package/dist/esm/justifi-owner-form_3.entry.js +5 -4
  76. package/dist/esm/justifi-payment-details.entry.js +4 -3
  77. package/dist/esm/justifi-payment-form.entry.js +6 -5
  78. package/dist/esm/justifi-payment-method-form.entry.js +1 -1
  79. package/dist/esm/justifi-payment-provisioning.entry.js +6 -5
  80. package/dist/esm/justifi-payments-list.entry.js +4 -3
  81. package/dist/esm/justifi-payout-details.entry.js +4 -3
  82. package/dist/esm/justifi-payouts-list.entry.js +4 -3
  83. package/dist/esm/justifi-refund-form.entry.js +3 -2
  84. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -4
  85. package/dist/esm/{package-478b028a.js → package-d88677e9.js} +4 -2
  86. package/dist/esm/{payload-parsers-acb719d1.js → payload-parsers-62f443e1.js} +1 -1
  87. package/dist/esm/{payment.service-dad5153b.js → payment.service-3ca4a492.js} +3 -2
  88. package/dist/esm/{schema-validations-a83ff220.js → schema-validations-2f4fdebb.js} +1 -1
  89. package/dist/module/Analytics.js +2 -1
  90. package/dist/module/business-bank-account-form-step.js +3 -2
  91. package/dist/module/business-document-upload-form-step.js +3 -2
  92. package/dist/module/business-form-options.js +1 -1
  93. package/dist/module/business-terms-conditions-form-step.js +3 -2
  94. package/dist/module/business.service.js +6 -5
  95. package/dist/module/checkout-core.js +3 -3
  96. package/dist/module/config.js +13 -0
  97. package/dist/module/get-payout-csv.js +4 -3
  98. package/dist/module/justifi-bank-account-form.js +3 -2
  99. package/dist/module/justifi-business-form.js +3 -2
  100. package/dist/module/justifi-card-form.js +3 -2
  101. package/dist/module/justifi-checkout.js +3 -2
  102. package/dist/module/justifi-gross-payment-chart.js +2 -1
  103. package/dist/module/justifi-payment-form.js +4 -3
  104. package/dist/module/justifi-payment-provisioning.js +3 -2
  105. package/dist/module/justifi-refund-form.js +3 -2
  106. package/dist/module/justifi-season-interruption-insurance.js +3 -2
  107. package/dist/module/new-payment-method.js +3 -5
  108. package/dist/module/package.js +4 -2
  109. package/dist/module/payment-method-options.js +3 -2
  110. package/dist/module/payment.service.js +3 -2
  111. package/dist/module/saved-payment-method.js +3 -2
  112. package/dist/module/sezzle-payment-method.js +3 -2
  113. package/dist/types/components/checkout/new-payment-method.d.ts +0 -1
  114. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
  115. package/dist/webcomponents/index.esm.js +0 -1
  116. package/dist/webcomponents/p-04a0dbb6.js +1 -0
  117. package/dist/webcomponents/p-061dcb79.entry.js +1 -0
  118. package/dist/webcomponents/p-07109641.entry.js +1 -0
  119. package/dist/webcomponents/p-08b0fb31.js +1 -41
  120. package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
  121. package/dist/webcomponents/p-14c91ffd.js +1 -20
  122. package/dist/webcomponents/p-198994c0.entry.js +1 -0
  123. package/dist/webcomponents/p-1a43e355.entry.js +19 -0
  124. package/dist/webcomponents/p-1ad5995e.js +1 -3599
  125. package/dist/webcomponents/p-1f70fa27.entry.js +1 -0
  126. package/dist/webcomponents/p-1ff8810b.js +1 -29
  127. package/dist/webcomponents/p-2338affa.js +1 -213
  128. package/dist/webcomponents/p-241b0ed9.js +1 -0
  129. package/dist/webcomponents/p-2799383d.entry.js +1 -0
  130. package/dist/webcomponents/p-29c0b182.js +1 -114
  131. package/dist/webcomponents/p-2b6c9c4f.js +1 -7
  132. package/dist/webcomponents/p-2eab3c90.js +1 -3052
  133. package/dist/webcomponents/p-3affadfc.entry.js +1 -0
  134. package/dist/webcomponents/p-3d4d566d.entry.js +1 -0
  135. package/dist/webcomponents/p-3dd4c6c3.entry.js +1 -0
  136. package/dist/webcomponents/p-462dc522.entry.js +1 -0
  137. package/dist/webcomponents/p-46f679a9.js +1 -0
  138. package/dist/webcomponents/p-487b72a8.entry.js +1 -0
  139. package/dist/webcomponents/p-48ae16e0.entry.js +1 -0
  140. package/dist/webcomponents/p-4abc17f0.entry.js +1 -0
  141. package/dist/webcomponents/p-4bac636e.entry.js +1 -0
  142. package/dist/webcomponents/p-52021fa1.entry.js +1 -0
  143. package/dist/webcomponents/p-525db3e8.js +1 -22
  144. package/dist/webcomponents/p-53948ff8.entry.js +1 -0
  145. package/dist/webcomponents/p-53e64f15.entry.js +1 -0
  146. package/dist/webcomponents/p-554a3c18.js +1 -0
  147. package/dist/webcomponents/p-56f6ce4c.js +1 -10
  148. package/dist/webcomponents/p-5968ff8a.js +1 -178
  149. package/dist/webcomponents/p-6078a370.js +1 -244
  150. package/dist/webcomponents/p-60a370fc.entry.js +1 -0
  151. package/dist/webcomponents/p-62b32c4c.entry.js +1 -0
  152. package/dist/webcomponents/p-65b561da.entry.js +1 -0
  153. package/dist/webcomponents/p-72c9e6b3.entry.js +1 -0
  154. package/dist/webcomponents/p-75b4daef.js +1 -0
  155. package/dist/webcomponents/p-7d85af5c.js +1 -16
  156. package/dist/webcomponents/p-8115b2f4.js +1 -28
  157. package/dist/webcomponents/p-83125497.js +1 -4027
  158. package/dist/webcomponents/p-8603348a.js +1 -0
  159. package/dist/webcomponents/p-890b3254.entry.js +1 -0
  160. package/dist/webcomponents/p-8df7bde8.js +1 -27
  161. package/dist/webcomponents/p-92bb1e5f.entry.js +1 -0
  162. package/dist/webcomponents/p-9c9c7dac.js +1 -24
  163. package/dist/webcomponents/p-9ccfa1c9.entry.js +1 -0
  164. package/dist/webcomponents/p-9dc36f76.entry.js +1 -0
  165. package/dist/webcomponents/p-ad41c8c7.entry.js +1 -0
  166. package/dist/webcomponents/p-ae263544.js +1 -0
  167. package/dist/webcomponents/p-af244664.js +1 -126
  168. package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
  169. package/dist/webcomponents/p-ba4bae6f.js +1 -12
  170. package/dist/webcomponents/p-bbed6107.entry.js +1 -0
  171. package/dist/webcomponents/p-bc92235c.entry.js +1 -0
  172. package/dist/webcomponents/p-be39c802.entry.js +1 -0
  173. package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
  174. package/dist/webcomponents/p-d101c5db.js +1 -0
  175. package/dist/webcomponents/p-d1c8d794.entry.js +1 -0
  176. package/dist/webcomponents/p-d25c2f12.js +1 -0
  177. package/dist/webcomponents/p-d2a5054f.entry.js +1 -0
  178. package/dist/webcomponents/p-d765d638.js +1 -0
  179. package/dist/webcomponents/p-d8355f91.entry.js +1 -0
  180. package/dist/webcomponents/p-d89bad72.js +1 -39
  181. package/dist/webcomponents/p-dce846bf.js +1 -27
  182. package/dist/webcomponents/p-df21aaad.js +1 -120
  183. package/dist/webcomponents/p-e1255160.js +1 -3
  184. package/dist/webcomponents/p-e2c88817.entry.js +1 -0
  185. package/dist/webcomponents/p-e31f0f3e.entry.js +1 -0
  186. package/dist/webcomponents/p-e333620e.js +1 -34
  187. package/dist/webcomponents/p-e3fab0e2.js +1 -43
  188. package/dist/webcomponents/p-f0866375.entry.js +1 -0
  189. package/dist/webcomponents/p-fad19d75.js +2 -1638
  190. package/dist/webcomponents/p-fb58feb5.entry.js +1 -0
  191. package/dist/webcomponents/p-fe33151d.entry.js +1 -0
  192. package/dist/webcomponents/webcomponents.css +4 -362
  193. package/dist/webcomponents/webcomponents.esm.js +1 -20
  194. package/package.json +4 -2
  195. package/dist/globals.d.ts +0 -2
  196. package/dist/webcomponents/p-01a404ca.entry.js +0 -44
  197. package/dist/webcomponents/p-03d35880.entry.js +0 -130
  198. package/dist/webcomponents/p-06ff0429.entry.js +0 -65
  199. package/dist/webcomponents/p-0e2384b5.entry.js +0 -1684
  200. package/dist/webcomponents/p-1bbbf15d.js +0 -79
  201. package/dist/webcomponents/p-20abace7.js +0 -77
  202. package/dist/webcomponents/p-258b1ee2.entry.js +0 -149
  203. package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
  204. package/dist/webcomponents/p-3b5948ea.entry.js +0 -133
  205. package/dist/webcomponents/p-3c50942c.entry.js +0 -94
  206. package/dist/webcomponents/p-3e9ef4a8.js +0 -28
  207. package/dist/webcomponents/p-3fd13ca3.js +0 -52
  208. package/dist/webcomponents/p-40236338.entry.js +0 -80
  209. package/dist/webcomponents/p-5482d030.entry.js +0 -21
  210. package/dist/webcomponents/p-576826b1.entry.js +0 -43
  211. package/dist/webcomponents/p-5cb3f0b2.entry.js +0 -261
  212. package/dist/webcomponents/p-5f835b89.entry.js +0 -606
  213. package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
  214. package/dist/webcomponents/p-73210c03.entry.js +0 -75
  215. package/dist/webcomponents/p-7582b554.entry.js +0 -18
  216. package/dist/webcomponents/p-79646550.entry.js +0 -61
  217. package/dist/webcomponents/p-800d31fe.entry.js +0 -162
  218. package/dist/webcomponents/p-8371f61c.entry.js +0 -94
  219. package/dist/webcomponents/p-85fc69e5.js +0 -90
  220. package/dist/webcomponents/p-890088fc.entry.js +0 -298
  221. package/dist/webcomponents/p-89887332.js +0 -301
  222. package/dist/webcomponents/p-8eb774df.entry.js +0 -54
  223. package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
  224. package/dist/webcomponents/p-a096bc5b.entry.js +0 -145
  225. package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
  226. package/dist/webcomponents/p-a5c5821e.entry.js +0 -101
  227. package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
  228. package/dist/webcomponents/p-a64f0ebe.entry.js +0 -117
  229. package/dist/webcomponents/p-a6d04afc.js +0 -44
  230. package/dist/webcomponents/p-ac086069.entry.js +0 -58
  231. package/dist/webcomponents/p-b233d1e2.entry.js +0 -74
  232. package/dist/webcomponents/p-b82c146f.entry.js +0 -111
  233. package/dist/webcomponents/p-ba5fae28.js +0 -90
  234. package/dist/webcomponents/p-ba6661f2.entry.js +0 -73
  235. package/dist/webcomponents/p-c636f563.entry.js +0 -791
  236. package/dist/webcomponents/p-cb26f708.js +0 -18
  237. package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
  238. package/dist/webcomponents/p-e26541b9.entry.js +0 -98
  239. package/dist/webcomponents/p-e356f280.entry.js +0 -29
  240. package/dist/webcomponents/p-e78af6d3.entry.js +0 -97
  241. package/dist/webcomponents/p-e7b8199d.entry.js +0 -131
  242. package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
  243. package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
  244. package/dist/webcomponents/p-fd7918c2.entry.js +0 -99
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-fad19d75.js";import{u as d,a as t,b as c}from"./p-7d85af5c.js";import{P as i,S as l}from"./p-525db3e8.js";import"./p-1ff8810b.js";import"./p-6078a370.js";const s=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{d(this.formController,{[e]:a})},this.onAddressFormUpdate=e=>{t(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))},this.representativeDefaultValue=void 0,this.errors=void 0,this.formController=void 0}render(){var e,d,t,s,o,r,f;return a("form",{key:"8b46b3b30681c7e7f30395a2cac575a7bd7ac998"},a("fieldset",{key:"e6b8f2ebca22c295fd6897c0e8862200171c2b4d"},a("legend",{key:"8f8f52240f5ccc3f5d43507681dc970b4260bb1b"},"Representative"),a("hr",{key:"8b07c69a514534ab731e7c01b6ee4c7a0e59e06e"}),a("div",{key:"79f44ba9dcbcf9d010aed92e332f686ca7127285",class:"row gy-3"},a("div",{key:"2a1aeb5ddee1dafc40e108cfb2e9ed6f4d8bc183",class:"col-12 col-md-8"},a("form-control-text",{key:"6e089f2d4f734da266e94b38ec1435dc3f461d5f",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"c86421e524752e017180aef58e01229bf751e941",class:"col-12 col-md-4"},a("form-control-text",{key:"ad8105f6d9a46397eb481666c19468376716544c",name:"title",label:"Title",defaultValue:null===(d=this.representativeDefaultValue)||void 0===d?void 0:d.title,errorText:this.errors.title,inputHandler:this.inputHandler})),a("div",{key:"7775905e46c00337a98ab668c8453e14d27bfc4d",class:"col-12 col-md-6"},a("form-control-text",{key:"e810f2395101a1e48d8d3ff66617ac82d0ec90b3",name:"email",label:"Email Address",defaultValue:null===(t=this.representativeDefaultValue)||void 0===t?void 0:t.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"66a91e85d1902e32668407e684774820c02dce67",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"aad97ca95c5b2ec728ea00916a46ff4b84661b96",name:"phone",label:"Phone Number",defaultValue:null===(s=this.representativeDefaultValue)||void 0===s?void 0:s.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:i.US})),a("div",{key:"3cd56ea0ac1e472e905c8113f6335868c39882f1",class:"col-12 col-md-4"},a("form-control-date",{key:"2f6d505220cacc08a80029ada089370f3841d9ed",name:"dob_full",label:"Birth Date",defaultValue:null===(o=this.representativeDefaultValue)||void 0===o?void 0:o.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>c(e,this.formController)})),a("div",{key:"cf2df0af006a50d3533b798607025b4d6ee82ca0",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"033e4264a1466d300891b2328c0bfaced7acb04d",name:"identification_number",label:"SSN",defaultValue:null===(r=this.representativeDefaultValue)||void 0===r?void 0:r.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:l})),a("div",{key:"2dc7be12d65203da4d4e0bdd995256a7bdc5bf37",class:"col-12"},a("justifi-identity-address-form",{key:"47916ab24bf990be3541b72bfa2dc46cccca5a31",errors:this.errors.address,defaultValues:null===(f=this.representativeDefaultValue)||void 0===f?void 0:f.address,handleFormUpdate:this.onAddressFormUpdate})))))}};export{s as justifi_business_representative_form_inputs}
@@ -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 d}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{c as s}from"./p-ae263544.js";import{C as n}from"./p-525db3e8.js";import{S as f}from"./p-ba4bae6f.js";const b=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()}),c=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(b),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=d({authToken:this.authToken,apiOrigin:s.proxyApiOrigin})}render(){var o;return t(f,{key:"d0d0962eaecab749aa1eb124e86701a2fb4dfd53"},t("h1",{key:"cb3071d89c291b1664e551fcf2808a64569ba5eb"},"Refund"),this.refundInfoText&&t("div",{key:"01a6f4567f882d2eec492ef6d98db7d04747ecb4",class:"d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3",role:"alert"},t("img",{key:"8ae5928aaf8ead35a7ad180a01bdde05ebec3d5f",src:"/info-icon.svg",alt:"Information",height:"30",width:"30"}),t("p",{key:"425a7dfe9d8b886b55fd0878f3989373733c1758",class:"m-0",innerHTML:this.refundInfoText})),t("form",{key:"5516d2ac500611d2410b9b4c2a4d0d15e417b2d1",onSubmit:o=>this.handleSubmit(o),class:"d-grid gap-4"},t("div",{key:"b67a7c56f070a5a25d91aa0cc77755b27d420fdc",class:"form-group"},t("form-control-monetary",{key:"76b6cfdf2b39674434f4d880333dd5d5f603f0b6",name:"amount",label:"Refund Amount",defaultValue:(null===(o=this.amount)||void 0===o?void 0:o.toString())||"",maskOptions:n.DECIMAL,inputHandler:(o,r)=>this.handleInput(o,r),errorText:this.errors.amount})),t("div",{key:"5e581cdea69d2ce9dbad774214cd904923d199b3",class:"form-group"},t("form-control-text",{key:"926ae888676a4089d3381bd4d650e6f84f6e206a",name:"notes",label:"Additional Notes",inputHandler:(o,r)=>this.handleInput(o,r),errorText:this.errors.notes})),this.withButton&&t("div",{key:"de5df506b7b64a69a16241f117bf9bea4fd79b57",class:"form-group d-flex flex-row-reverse"},t("button",{key:"92ad4d43677587c2c20dc03c6f03a6cf1f20ac12",type:"submit",disabled:!!this.isSubmitting,class:"btn btn-primary ml-auto"},this.submitButtonText))))}};c.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{c as justifi_refund_form}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as i}from"./p-fad19d75.js";import{a as e}from"./p-d89bad72.js";import{a as r,C as o}from"./p-14c91ffd.js";import{a as h}from"./p-1ff8810b.js";import{S as a}from"./p-ba4bae6f.js";import"./p-6078a370.js";const n=class{constructor(i){s(this,i),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.submitted=t(this,"submitted",7),this.setBusinessProvisioned=()=>{this.getBusiness({onSuccess:s=>{this.businessProvisioned=h(s.data),this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:r.PROVISIONING_REQUESTED,severity:o.INFO})},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({message:s,errorCode:t,severity:i})}})},this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitted.emit({data:{response:s}})},onError:({error:s,code:t,severity:i})=>{this.submitted.emit({data:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:i})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:e.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})},this.loading=!1,this.businessProvisioned=!1,this.currentStep=0,this.errorMessage=void 0,this.businessId=void 0,this.authToken=void 0,this.allowOptionalFields=!1,this.formTitle=void 0,this.getBusiness=void 0,this.postProvisioning=void 0}componentWillLoad(){this.getBusiness&&this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.documentUploadRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`${this.currentStep+1} of ${this.totalSteps+1}`}handleFormLoading(s){this.loading=s.detail}render(){return i(a,{key:"80f2730a6a4e273391888b086c3633a3dec012b8",exportparts:"label,input,input-invalid"},i("div",{key:"b4e7be2fed14b404ee7bcbe42c3c1c54bb78fdb6",class:"row gap-3"},i("h1",{key:"f477beb7934a94a74dfc6b8a9c18cc54a720f70e"},this.formTitle),i("justifi-payment-provisioning-form-steps",{key:"e74aa3a01cfe7550f4917d28ccda1aca211d9394",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,handleFormLoading:this.handleFormLoading,onFormCompleted:()=>this.postProvisioningData()}),i("div",{key:"26a585ec4b6b677cb01ac17696269168887f4c76",class:"d-flex justify-content-between align-items-center"},i("div",{key:"ca5ddc176f8c2eb3315620076b401e47f45039bd",class:"d-flex align-items-center"},this.stepCounter),i("justifi-payment-provisioning-form-buttons",{key:"8299387bf859b33c829d29d66947c3c053ffa53c",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{n as justifi_payment_provisioning_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,H as a}from"./p-fad19d75.js";import{I as s}from"./p-1ad5995e.js";import{S as d}from"./p-6078a370.js";import{n as o}from"./p-8df7bde8.js";const l=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.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.inputHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}render(){return i(a,{key:"fa61a426a5a070d951fa425ae42a59add69a9d96",exportparts:"label,input,input-invalid"},i("label",{key:"e7679e6a66277a130414b59421b01d1f8e328cf2",part:"label",class:"form-label",htmlFor:this.name},this.label),i("input",{key:"b3fb4afd3181fec3eef3dfb851ab8965cb7bbfe7",type:"date",ref:t=>this.dateInput=t,id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:`input ${this.errorText&&"input-invalid"}`,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled}),i("form-control-help-text",{key:"dbc9ac76d75521a7d1ee5cc34393471521ffa1c2",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"0f9731278250bde69dd7dee9a7b44e339d919774",errorText:this.errorText,name:this.name}))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},r=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.imask=null,this.initializeIMask=()=>{this.textInput&&(this.imask=s(this.textInput,{mask:this.mask}),this.imask.on("accept",(()=>{var t;const e=null===(t=this.imask)||void 0===t?void 0:t.unmaskedValue;void 0!==e&&this.inputHandler(this.name,e)})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const e=t.target,i=e.getAttribute("name");this.formControlInput.emit({name:i,value:e.value})},this.updateInput=t=>{this.imask&&t&&(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.mask=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.initializeIMask(),this.updateInput(t)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}componentDidLoad(){this.textInput&&(this.initializeIMask(),this.updateInput(this.defaultValue))}render(){return i(a,{key:"e0a59308376055c019233f3d4649c9a37af963d2",exportparts:"label,input,input-invalid"},i("div",{key:"52d9440421342fed6a4f97b57586a43d517ded7d",class:"form-group d-flex flex-column"},i("label",{key:"8302a9fa1111d3b72600304cd0b1fb2c6239d895",part:"label",class:"form-label",htmlFor:this.name},this.label),i("input",{key:"86653c7b7f4efb9609bae2ecf69bd5e396bd342b",ref:t=>this.textInput=t,id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:`input ${this.errorText&&"input-invalid"}`,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),i("form-control-help-text",{key:"71d4d44ff91d06229ccc22e70bc92e0a2050da90",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"b7d42462ae9165acbde68cf59da07eb956a91fd6",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},n=class{constructor(e){t(this,e),this.inputHandler=(t,e)=>{this.address[t]=e,this.address=Object.assign({},this.address)},this.handleFormUpdate=void 0,this.errors=void 0,this.defaultValues=void 0,this.address={}}handleAddressChange(t){this.handleFormUpdate(t)}render(){var t,e,s,l,r,n,h,c,f,b,u,v;return i(a,{key:"d090676d3bb1d9de9ae947ff25d94b5985ace914",exportparts:"label,input,input-invalid"},i("div",{key:"64ddec6db508d27b709ad551f60fe58494631fe3",class:"row gy-3"},i("div",{key:"7e0f89b7b8d5a466b89efad75498c5d1f2cac8ea",class:"col-12 col-md-8"},i("form-control-text",{key:"ea6055fb3457e28666b11b72173ad70b83a87659",name:"line1",label:"Street Address",defaultValue:null===(t=this.defaultValues)||void 0===t?void 0:t.line1,errorText:null===(e=this.errors)||void 0===e?void 0:e.line1,inputHandler:this.inputHandler})),i("div",{key:"5f6f456c573fb9318e58976decb67274b209fa23",class:"col-12 col-md-4"},i("form-control-text",{key:"86fffd4641953d0445a7c24d332cda513121b65e",name:"line2",label:"Apartment, Suite, etc. (optional)",defaultValue:null===(s=this.defaultValues)||void 0===s?void 0:s.line2,errorText:null===(l=this.errors)||void 0===l?void 0:l.line2,inputHandler:this.inputHandler})),i("div",{key:"e06339cefebe37ae0629631fbc5101c9dbc040a6",class:"col-12"},i("form-control-text",{key:"d2af696b33092247b6741c8034aaf12ab51aa878",name:"city",label:"City",defaultValue:null===(r=this.defaultValues)||void 0===r?void 0:r.city,errorText:null===(n=this.errors)||void 0===n?void 0:n.city,inputHandler:this.inputHandler})),i("div",{key:"b655a66fb68f059fa91ae5f9f60fdebe0ae04fad",class:"col-12 col-md-6"},i("form-control-select",{key:"50a65861a5a39daac199571c5a0273340556e476",name:"state",label:"State",defaultValue:null===(h=this.defaultValues)||void 0===h?void 0:h.state,options:d,errorText:null===(c=this.errors)||void 0===c?void 0:c.state,inputHandler:this.inputHandler})),i("div",{key:"30255517e0fa1ede35d7b2525625ebc389c44525",class:"col-12 col-md-6"},i("form-control-text",{key:"b7b0a773c7b2dbe05c4bf8e9fc7235a01bf36832",name:"postal_code",label:"Postal Code",defaultValue:null===(f=this.defaultValues)||void 0===f?void 0:f.postal_code,errorText:null===(b=this.errors)||void 0===b?void 0:b.postal_code,maxLength:5,keyDownHandler:o,inputHandler:this.inputHandler})),i("div",{key:"804e9aa1ca7b4ae167ae64969107ad6352559ed7",class:"col-12"},i("form-control-select",{key:"1aa3734e10502bc8f1732f386b60135b8a7d94a6",name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null===(u=this.defaultValues)||void 0===u?void 0:u.country,errorText:null===(v=this.errors)||void 0===v?void 0:v.country,disabled:!0}))))}static get watchers(){return{address:["handleAddressChange"]}}};export{l as form_control_date,r as form_control_number_masked,n as justifi_identity_address_form}
@@ -0,0 +1 @@
1
+ import{A as a}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{c as t}from"./p-ae263544.js";class s{async fetchPayments(s,e,p){return a({authToken:e,apiOrigin:t.proxyApiOrigin}).get(`account/${s}/payments`,p)}async fetchPayment(s,e){const p=`payments/${s}`;return a({authToken:e,apiOrigin:t.proxyApiOrigin}).get(p)}}export{s as P}
@@ -0,0 +1 @@
1
+ import{r as s,c as i,h as t,H as r}from"./p-fad19d75.js";import{E as e}from"./p-dce846bf.js";import{B as o}from"./p-75b4daef.js";import{B as a}from"./p-af244664.js";import{C as n,a as d}from"./p-14c91ffd.js";import{g as h,a as p}from"./p-8115b2f4.js";import{J as c}from"./p-554a3c18.js";import"./p-ae263544.js";import"./p-29c0b182.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-d765d638.js";const m=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.businessId=void 0,this.authToken=void 0,this.errorMessage=void 0,this.getBusiness=void 0}componentWillLoad(){this.analytics=new c(this),this.initializeGetBusiness()}disconnectedCallback(){this.analytics.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:d.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR});this.getBusiness=(({id:s,authToken:i,service:t})=>async({onSuccess:r,onError:e})=>{var o;try{const d=await t.fetchBusiness(s,i);if(d.error)return e({error:h(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});r({business:new a(d.data)})}catch(s){const i=p(null==s?void 0:s.code);return e({error:s.message||s,code:i,severity:n.ERROR})}})({id:this.businessId,authToken:this.authToken,service:new o})}render(){return t(r,null,this.errorMessage?e(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness}))}};export{m as justifi_business_details}
@@ -0,0 +1 @@
1
+ import{a as e}from"./p-af244664.js";const a=[{label:"Choose business classification",value:""},{label:"Sole Proprietor",value:e.sole_proprietor},{label:"Partnership",value:e.partnership},{label:"Corporation",value:e.corporation},{label:"Public Company",value:e.public_company},{label:"Limited Liability Company (LLC)",value:e.limited},{label:"Non Profit",value:e.non_profit},{label:"Government",value:e.government}],l=[{label:"Within 7 days",value:"Within 7 days"},{label:"Within 30 days",value:"Within 30 days"},{label:"Within 90 days",value:"Within 90 days"},{label:"Within 120 days",value:"Within 120 days"},{label:"More than 120 days",value:"More than 120 days"}],s=[{label:"Yes",value:"Yes"},{label:"No",value:"No"}],i=[{label:"Yes. The majority of the business revenue is generated in 3-6 months.",value:"Yes"},{label:"No. The business revenue is generated evenly throughout the year.",value:"No"}],n=[{label:"Checking",value:"checking"},{label:"Savings",value:"savings"}];export{l as a,a as b,n as c,s as r,i as s}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e}from"./p-fad19d75.js";import{A as s}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{c as r}from"./p-ae263544.js";import{g as o,a}from"./p-8115b2f4.js";import{C as n,a as d}from"./p-14c91ffd.js";import{J as c}from"./p-554a3c18.js";import"./p-d765d638.js";class h{async fetchQuote(t,i){return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post("insurance/quotes",JSON.stringify(i))}async toggleCoverage(t,i,e){const o=`insurance/quotes/${i}/toggle`;return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post(o,JSON.stringify(e))}}const u=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event",7),this.authToken=void 0,this.checkoutId=void 0,this.primaryIdentityFirstName=void 0,this.primaryIdentityLastName=void 0,this.primaryIdentityState=void 0,this.primaryIdentityPostalCode=void 0,this.primaryIdentityCountry=void 0,this.primaryIdentityEmailAddress=void 0,this.policyAttributesInsurableAmount=void 0,this.policyAttributesStartDate=void 0,this.policyAttributesEndDate=void 0,this.coveredIdentityFirstName=void 0,this.coveredIdentityLastName=void 0,this.getQuote=void 0,this.toggleCoverage=void 0,this.quote=void 0}async validate(){return this.seasonInterruptionCoreRef.validate()}componentWillLoad(){this.analytics=new c(this),this.initializeServiceMethods()}disconnectedCallback(){this.analytics.cleanup()}initializeServiceMethods(){this.authToken?(this.getQuote=(({authToken:t,service:i})=>async({payload:e,onSuccess:s,onError:r})=>{var d;try{const c=await i.fetchQuote(t,e);if(c.error)return r({error:o(c.error),code:a(null===(d=c.error)||void 0===d?void 0:d.code),severity:n.ERROR});s({quote:c.data})}catch(t){const i=a(null==t?void 0:t.code);return r({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new h}),this.toggleCoverage=(({authToken:t,service:i})=>async({quoteId:e,payload:s,onSuccess:r,onError:d})=>{var c;try{const h=await i.toggleCoverage(t,e,s);if(h.error)return d({error:o(h.error),code:a(null===(c=h.error)||void 0===c?void 0:c.code),severity:n.ERROR});r({quote:h.data})}catch(t){const i=a(null==t?void 0:t.code);return d({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new h})):this.errorEvent.emit({errorCode:d.MISSING_PROPS,message:"Missing authToken",severity:n.ERROR})}render(){return e("justifi-season-interruption-insurance-core",{key:"256d45d39c5d297abb7f955229b0e0e9fbc9504a",ref:t=>this.seasonInterruptionCoreRef=t,"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})}};export{u as justifi_season_interruption_insurance}
@@ -0,0 +1 @@
1
+ const e={name:"@justifi/webcomponents",version:"4.19.1",description:"JustiFi Web Components",collection:"dist/collection/collection-manifest.json",main:"dist/index.cjs.js",module:"dist/module/index.js",types:"dist/module/index.d.ts",repository:{type:"git",url:"git+https://github.com/justifi-tech/web-component-library.git"},homepage:"https://storybook.justifi.ai/?path=/docs/introduction--docs",publishConfig:{registry:"https://registry.npmjs.org"},files:["dist/"],scripts:{build:"stencil build --docs",dev:"stencil build --watch",lint:"eslint . --max-warnings 0",clean:"rm -rf .turbo && rm -rf node_modules && rm -rf dist",generate:"stencil generate",test:"TZ=utc stencil test --spec","test:watch":"TZ=utc stencil test --spec --watchAll","test:e2e":"stencil test --e2e","test:file":"stencil test --spec --watch --"},dependencies:{"@stencil/core":"^4.0.5","@stencil/store":"^2.0.8",bootstrap:"^5.2.3","chart.js":"^4.4.1","date-fns":"^2.29.3","dinero.js":"^1.9.1","iframe-resizer":"^4.3.7",imask:"^7.6.0",rxjs:"^7.8.1","ts-dedent":"^2.2.0",uuid:"^9.0.0",yup:"^1.0.0"},devDependencies:{"@babel/preset-env":"^7.21.5","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.5","@stencil/sass":"^3.0.1","@types/jest":"27.0.3","@types/node":"^20.1.4","@types/react":"^18.0.37","@types/react-dom":"^18.0.11",dotenv:"^16.3.1",jest:"^29.7.0","jest-cli":"^29.7.0","jest-environment-node":"^29.7.0",puppeteer:"^21.0.0","ts-jest":"^29.1.2"},license:"MIT",gitHead:"507bac1d941eae6e1f56e185ecd9bc9d22637783"};export{e as p}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,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(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(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 e=t.target.getAttribute("name");this.formControlInput.emit({name:e,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 i(s,{key:"8797b3aa5c6a30f472d51e2b9437b6158b0566fc",exportparts:"label,input,input-group-input,input-group-text,input-invalid"},i("div",{key:"0d3e068cf104aec3f6250f5cd6c00a9342928fe8",class:"form-group d-flex flex-column"},i("label",{key:"0e86db7c0d981bdae74c51dd75bf5579d07b4793",part:"label",class:"form-label",htmlFor:this.name},this.label),i("div",{key:"8fc773de3995bb37e6fa00b34d8d9e2deaef4bbd",class:"input-group"},i("span",{key:"83860eac764be9eeea31302d60525fb56af9dc1d",class:"input-group-text",part:"input-group-text"},"$"),i("input",{key:"b8c655c0b8eeb6ec328eeaed651773c293aa3100",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})),i("form-control-help-text",{key:"b3f142b9c67a792a96b597bdaf91fd3abe1b7ce3",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"daefe97a15bde309c397a506de6cda9a0376323b",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{r as form_control_monetary}
@@ -1,39 +1 @@
1
- var BusinessFormStep;
2
- (function (BusinessFormStep) {
3
- BusinessFormStep["coreInfo"] = "coreInfo";
4
- BusinessFormStep["legalAddress"] = "legalAddress";
5
- BusinessFormStep["additionalQuestions"] = "additionalQuestions";
6
- BusinessFormStep["representative"] = "representative";
7
- BusinessFormStep["owners"] = "owners";
8
- BusinessFormStep["bankAccount"] = "bankAccount";
9
- BusinessFormStep["documentUpload"] = "documentUpload";
10
- BusinessFormStep["termsAndConditions"] = "termsAndConditions";
11
- })(BusinessFormStep || (BusinessFormStep = {}));
12
- var BusinessFormServerErrors;
13
- (function (BusinessFormServerErrors) {
14
- BusinessFormServerErrors["fetchData"] = "Error retrieving business data";
15
- BusinessFormServerErrors["patchData"] = "Error updating business data";
16
- })(BusinessFormServerErrors || (BusinessFormServerErrors = {}));
17
- var BusinessFormClickActions;
18
- (function (BusinessFormClickActions) {
19
- BusinessFormClickActions["nextStep"] = "nextStep";
20
- BusinessFormClickActions["previousStep"] = "previousStep";
21
- BusinessFormClickActions["submit"] = "submit";
22
- BusinessFormClickActions["removeOwner"] = "removeOwner";
23
- BusinessFormClickActions["addOwner"] = "addOwner";
24
- BusinessFormClickActions["addOwnerForm"] = "addOwnerForm";
25
- BusinessFormClickActions["updateOwner"] = "updateOwner";
26
- })(BusinessFormClickActions || (BusinessFormClickActions = {}));
27
- var OwnerFormServerErrors;
28
- (function (OwnerFormServerErrors) {
29
- OwnerFormServerErrors["fetchData"] = "Error retrieving owner data";
30
- OwnerFormServerErrors["patchData"] = "Error updating owner data";
31
- OwnerFormServerErrors["postData"] = "Error adding owner data";
32
- })(OwnerFormServerErrors || (OwnerFormServerErrors = {}));
33
- var DocumentFormServerErrors;
34
- (function (DocumentFormServerErrors) {
35
- DocumentFormServerErrors["fetchData"] = "Error retrieving document data";
36
- DocumentFormServerErrors["sendData"] = "Error uploading document data";
37
- })(DocumentFormServerErrors || (DocumentFormServerErrors = {}));
38
-
39
- export { BusinessFormServerErrors as B, BusinessFormClickActions as a, BusinessFormStep as b };
1
+ var r,n,e,t,a;!function(r){r.coreInfo="coreInfo",r.legalAddress="legalAddress",r.additionalQuestions="additionalQuestions",r.representative="representative",r.owners="owners",r.bankAccount="bankAccount",r.documentUpload="documentUpload",r.termsAndConditions="termsAndConditions"}(r||(r={})),function(r){r.fetchData="Error retrieving business data",r.patchData="Error updating business data"}(n||(n={})),function(r){r.nextStep="nextStep",r.previousStep="previousStep",r.submit="submit",r.removeOwner="removeOwner",r.addOwner="addOwner",r.addOwnerForm="addOwnerForm",r.updateOwner="updateOwner"}(e||(e={})),function(r){r.fetchData="Error retrieving owner data",r.patchData="Error updating owner data",r.postData="Error adding owner data"}(t||(t={})),function(r){r.fetchData="Error retrieving document data",r.sendData="Error uploading document data"}(a||(a={}));export{n as B,e as a,r as b}
@@ -1,27 +1 @@
1
- import { h } from './p-fad19d75.js';
2
-
3
- const LoadingState = () => (h("main", { part: "detail-loading-state", class: "p-4 d-flex justify-content-center text-center", style: { fontSize: '1.2rem' } },
4
- h("div", { part: "detail-loading-spinner", class: "spinner-border spinner-border-sm", role: "status" },
5
- h("span", { class: "visually-hidden" }, "Loading..."))));
6
- const ErrorState = (errorMessage) => (h("main", { part: "detail-empty-state", class: "p-4 d-flex justify-content-center text-center", style: { fontSize: '1.2rem' } },
7
- h("div", null, errorMessage)));
8
- const DetailSectionTitle = (props) => [
9
- h("h5", { part: "detail-section-title", class: "mt-4" }, props.sectionTitle),
10
- h("hr", null),
11
- ];
12
- const DetailItem = ({ title, value, }) => title && value ? (h("div", { class: "d-table-row gap-2" },
13
- h("span", { part: "detail-section-item-title", class: "fw-bold d-table-cell px-2" }, title),
14
- h("span", { part: "detail-section-item-data", class: "flex-1 d-table-cell px-2 text-wrap", innerHTML: value }))) : null;
15
- const EntityHeadInfoItem = ({ title, value, classes, }) => (h("div", { part: "detail-head-info-item", class: `d-flex flex-column ${classes}` },
16
- h("span", { part: "detail-head-info-item-title", class: "fw-bold border-1 border-bottom ps-2 pe-2" }, title),
17
- h("span", { part: "detail-head-info-item-data", class: "pt-2 ps-2 pe-2" }, value)));
18
- const EntityHeadInfo = ({ title, slot, badge }, children) => (h("div", { slot: slot, part: "detail-head", class: "p-2" },
19
- h("div", { class: "d-flex flex-row align-items-center gap-2 mb-2" },
20
- h("h1", { class: "m-0", part: "detail-title" }, title),
21
- badge),
22
- h("div", { part: "detail-head-info", class: "d-flex flex-row align-items-top" }, children)));
23
- const CodeBlock = ({ metadata }) => metadata && Object.keys(metadata).length ? (h("div", { class: 'mt-4' },
24
- h("pre", { part: "detail-metadata", class: "p-2", "aria-label": "metadata content" },
25
- h("code", null, JSON.stringify(metadata, null, 2))))) : null;
26
-
27
- export { CodeBlock as C, DetailSectionTitle as D, ErrorState as E, LoadingState as L, EntityHeadInfo as a, EntityHeadInfoItem as b, DetailItem as c };
1
+ import{h as t}from"./p-fad19d75.js";const a=()=>t("main",{part:"detail-loading-state",class:"p-4 d-flex justify-content-center text-center",style:{fontSize:"1.2rem"}},t("div",{part:"detail-loading-spinner",class:"spinner-border spinner-border-sm",role:"status"},t("span",{class:"visually-hidden"},"Loading..."))),e=a=>t("main",{part:"detail-empty-state",class:"p-4 d-flex justify-content-center text-center",style:{fontSize:"1.2rem"}},t("div",null,a)),l=a=>[t("h5",{part:"detail-section-title",class:"mt-4"},a.sectionTitle),t("hr",null)],s=({title:a,value:e})=>a&&e?t("div",{class:"d-table-row gap-2"},t("span",{part:"detail-section-item-title",class:"fw-bold d-table-cell px-2"},a),t("span",{part:"detail-section-item-data",class:"flex-1 d-table-cell px-2 text-wrap",innerHTML:e})):null,i=({title:a,value:e,classes:l})=>t("div",{part:"detail-head-info-item",class:`d-flex flex-column ${l}`},t("span",{part:"detail-head-info-item-title",class:"fw-bold border-1 border-bottom ps-2 pe-2"},a),t("span",{part:"detail-head-info-item-data",class:"pt-2 ps-2 pe-2"},e)),d=({title:a,slot:e,badge:l},s)=>t("div",{slot:e,part:"detail-head",class:"p-2"},t("div",{class:"d-flex flex-row align-items-center gap-2 mb-2"},t("h1",{class:"m-0",part:"detail-title"},a),l),t("div",{part:"detail-head-info",class:"d-flex flex-row align-items-top"},s)),n=({metadata:a})=>a&&Object.keys(a).length?t("div",{class:"mt-4"},t("pre",{part:"detail-metadata",class:"p-2","aria-label":"metadata content"},t("code",null,JSON.stringify(a,null,2)))):null;export{n as C,l as D,e as E,a as L,d as a,i as b,s as c}
@@ -1,120 +1 @@
1
- var CaptureStrategy;
2
- (function (CaptureStrategy) {
3
- CaptureStrategy["automatic"] = "automatic";
4
- CaptureStrategy["manual"] = "manual";
5
- })(CaptureStrategy || (CaptureStrategy = {}));
6
- var PaymentMethodTypes;
7
- (function (PaymentMethodTypes) {
8
- PaymentMethodTypes["card"] = "card";
9
- PaymentMethodTypes["bankAccount"] = "bankAccount";
10
- PaymentMethodTypes["sezzle"] = "sezzle";
11
- PaymentMethodTypes["saved"] = "saved";
12
- })(PaymentMethodTypes || (PaymentMethodTypes = {}));
13
- var PaymentStatuses;
14
- (function (PaymentStatuses) {
15
- PaymentStatuses["pending"] = "pending";
16
- PaymentStatuses["automatic"] = "automatic";
17
- PaymentStatuses["authorized"] = "authorized";
18
- PaymentStatuses["succeeded"] = "succeeded";
19
- PaymentStatuses["failed"] = "failed";
20
- PaymentStatuses["disputed"] = "disputed";
21
- PaymentStatuses["fully_refunded"] = "fully_refunded";
22
- PaymentStatuses["partially_refunded"] = "partially_refunded";
23
- })(PaymentStatuses || (PaymentStatuses = {}));
24
- var PaymentDisputedStatuses;
25
- (function (PaymentDisputedStatuses) {
26
- // if a dispute is 'won', we don't show a dispute status, just general status
27
- PaymentDisputedStatuses["lost"] = "lost";
28
- PaymentDisputedStatuses["open"] = "open";
29
- })(PaymentDisputedStatuses || (PaymentDisputedStatuses = {}));
30
- class PaymentMethod {
31
- constructor(paymentMethod) {
32
- this.card = paymentMethod.card ? new Card(paymentMethod.card) : undefined;
33
- this.bank_account = paymentMethod.bank_account
34
- ? new BankAccount(paymentMethod.bank_account)
35
- : undefined;
36
- }
37
- get payersName() {
38
- if (this.card) {
39
- return this.card.name;
40
- }
41
- else if (this.bank_account) {
42
- return this.bank_account.name;
43
- }
44
- return null;
45
- }
46
- get lastFourDigits() {
47
- if (this.card) {
48
- return `**** ${this.card.acct_last_four}`;
49
- }
50
- else if (this.bank_account) {
51
- return `**** ${this.bank_account.acct_last_four}`;
52
- }
53
- return null;
54
- }
55
- }
56
- class BankAccount {
57
- constructor(bankAccount) {
58
- this.id = bankAccount.id;
59
- this.acct_last_four = bankAccount.acct_last_four;
60
- this.name = bankAccount.name;
61
- this.brand = bankAccount.brand;
62
- this.token = bankAccount.token;
63
- this.created_at = bankAccount.created_at;
64
- this.updated_at = bankAccount.updated_at;
65
- }
66
- }
67
- class Card {
68
- constructor(card) {
69
- this.id = card.id || '';
70
- this.acct_last_four = card.acct_last_four;
71
- this.name = card.name;
72
- this.brand = card.brand;
73
- this.token = card.token;
74
- this.created_at = card.created_at;
75
- this.updated_at = card.updated_at;
76
- }
77
- }
78
- class Payment {
79
- constructor(payment) {
80
- this.id = payment.id;
81
- this.account_id = payment.account_id;
82
- this.amount = payment.amount;
83
- this.amount_disputed = payment.amount_disputed;
84
- this.amount_refundable = payment.amount_refundable;
85
- this.amount_refunded = payment.amount_refunded;
86
- this.balance = payment.balance;
87
- this.captured = payment.captured;
88
- this.capture_strategy = payment.capture_strategy;
89
- this.currency = payment.currency;
90
- this.description = payment.description;
91
- this.disputed = payment.disputed;
92
- this.disputes = payment.disputes;
93
- this.error_code = payment.error_code;
94
- this.error_description = payment.error_description;
95
- this.fee_amount = payment.fee_amount;
96
- this.is_test = payment.is_test;
97
- this.metadata = payment.metadata;
98
- this.payment_method = new PaymentMethod(payment.payment_method);
99
- this.payment_intent_id = payment.payment_intent_id;
100
- this.refunded = payment.refunded;
101
- this.status = payment.status;
102
- this.created_at = payment.created_at;
103
- this.updated_at = payment.updated_at;
104
- }
105
- get disputedStatus() {
106
- const lost = this.disputes.some((dispute) => dispute.status === PaymentDisputedStatuses.lost);
107
- // if a dispute is 'won', we don't show a dispute status, just general status
108
- if (!this.disputed) {
109
- return null;
110
- }
111
- else if (lost) {
112
- return PaymentDisputedStatuses.lost;
113
- }
114
- else {
115
- return PaymentDisputedStatuses.open;
116
- }
117
- }
118
- }
119
-
120
- export { Payment as P, PaymentMethodTypes as a };
1
+ var t,s,i,h;!function(t){t.automatic="automatic",t.manual="manual"}(t||(t={})),function(t){t.card="card",t.bankAccount="bankAccount",t.sezzle="sezzle",t.saved="saved"}(s||(s={})),function(t){t.pending="pending",t.automatic="automatic",t.authorized="authorized",t.succeeded="succeeded",t.failed="failed",t.disputed="disputed",t.fully_refunded="fully_refunded",t.partially_refunded="partially_refunded"}(i||(i={})),function(t){t.lost="lost",t.open="open"}(h||(h={}));class n{constructor(t){this.card=t.card?new u(t.card):void 0,this.bank_account=t.bank_account?new e(t.bank_account):void 0}get payersName(){return this.card?this.card.name:this.bank_account?this.bank_account.name:null}get lastFourDigits(){return this.card?`**** ${this.card.acct_last_four}`:this.bank_account?`**** ${this.bank_account.acct_last_four}`:null}}class e{constructor(t){this.id=t.id,this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class u{constructor(t){this.id=t.id||"",this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class a{constructor(t){this.id=t.id,this.account_id=t.account_id,this.amount=t.amount,this.amount_disputed=t.amount_disputed,this.amount_refundable=t.amount_refundable,this.amount_refunded=t.amount_refunded,this.balance=t.balance,this.captured=t.captured,this.capture_strategy=t.capture_strategy,this.currency=t.currency,this.description=t.description,this.disputed=t.disputed,this.disputes=t.disputes,this.error_code=t.error_code,this.error_description=t.error_description,this.fee_amount=t.fee_amount,this.is_test=t.is_test,this.metadata=t.metadata,this.payment_method=new n(t.payment_method),this.payment_intent_id=t.payment_intent_id,this.refunded=t.refunded,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}get disputedStatus(){const t=this.disputes.some((t=>t.status===h.lost));return this.disputed?t?h.lost:h.open:null}}export{a as P,s as a}
@@ -1,3 +1 @@
1
- const globalScripts = () => {};
2
-
3
- export { globalScripts as g };
1
+ const o=()=>{};export{o as g}
@@ -0,0 +1 @@
1
+ import{r as o,c as r,h as a,F as t}from"./p-fad19d75.js";import"./p-56f6ce4c.js";import{a as i}from"./p-df21aaad.js";import"./p-e3fab0e2.js";const d={bankAccount:"Bank Account",card:"Card"},e=class{constructor(a){o(this,a),this.paymentMethodSelected=r(this,"paymentMethodSelected",7),this.paymentMethodTypes=[i.card,i.bankAccount],this.selectedPaymentMethodType=void 0}onChangeHandler(o){this.paymentMethodSelected.emit(o.target.value)}render(){return a("div",{key:"a0cd592094f7f69955469de84addde1d4bc5af4d",class:"btn-group jfi-btn-radio-group",role:"group","aria-label":"Radio toggle group for payment method"},this.paymentMethodTypes.map((o=>a(t,null,a("input",{id:o,type:"radio",name:"paymentMethodType",value:o,onChange:o=>this.onChangeHandler(o),checked:this.selectedPaymentMethodType===o,class:"btn-check jfi-btn-radio"}),a("label",{htmlFor:o,class:"btn btn-outline-primary jfi-btn-radio-label"},d[o])))))}};e.style=":host{display:block}.jfi-btn-radio+.jfi-btn-radio-label{color:var(--jfi-radio-button-color);background-color:var(--jfi-radio-button-background-color);border-color:var(--jfi-radio-button-border-color);padding:var(--jfi-radio-button-padding);font-size:var(--jfi-radio-button-font-size)}.jfi-btn-radio:focus+.jfi-btn-radio-label{box-shadow:var(--jfi-box-shadow-focus)}.jfi-btn-radio+.jfi-btn-radio-label:hover{color:var(--jfi-radio-button-color-hover);border-color:var(--jfi-radio-button-border-color-hover);background-color:var(--jfi-radio-button-background-color-hover)}.jfi-btn-radio:checked+.jfi-btn-radio-label:hover{color:var(--jfi-radio-button-color-selected-hover);border-color:var(--jfi-radio-button-border-color-selected-hover);background-color:var(--jfi-radio-button-background-color-selected-hover)}.jfi-btn-radio:checked+.jfi-btn-radio-label{color:var(--jfi-radio-button-color-selected);background-color:var(--jfi-radio-button-background-color-selected);border-color:var(--jfi-radio-button-border-color-selected)}.jfi-btn-radio-group{font-family:var(--jfi-layout-font-family);display:inline-flex;width:var(--jfi-radio-button-group-width)}";export{e as justifi_payment_method_selector}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,H as a,g as s}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({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.inputHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}render(){return i(a,{key:"dd43d75b327c05e75b453b954346c6ffcd85a2f5",exportparts:"label,input,input-invalid"},i("div",{key:"5215f62251bd89be493ddffe46bf0c466b42e314",class:"form-group d-flex flex-column"},i("label",{key:"f0409970f8d43bcdef92b81363cc24aa1bb691a0",part:"label",class:"form-label",htmlFor:this.name},this.label),i("input",{key:"9c6a5899e64ba1a8af6af80c63b6a0895351da63",id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:`input ${this.errorText&&"input-invalid"}`,class:this.errorText?"form-control is-invalid":"form-control",type:"number",disabled:this.disabled}),i("form-control-help-text",{key:"cd7b4a724427383cafc04137f6feca473695b020",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"04748d3c5b1067b0312a2b7c36369e2a21a7215f",errorText:this.errorText,name:this.name})))}get el(){return s(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{o as form_control_number}
@@ -1,34 +1 @@
1
- import { h } from './p-fad19d75.js';
2
-
3
- const TableEmptyState = (props) => {
4
- const { columnSpan, isEmpty } = props;
5
- if (!columnSpan || !isEmpty) {
6
- return null;
7
- }
8
- return (h("tr", null,
9
- h("td", { class: "empty-state", part: "empty-state", colSpan: columnSpan, style: { textAlign: 'center' } }, "No results")));
10
- };
11
-
12
- const TableErrorState = (props) => {
13
- const { columnSpan, errorMessage } = props;
14
- if (!columnSpan || !errorMessage) {
15
- return null;
16
- }
17
- return (h("tr", null,
18
- h("td", { class: "error-state", part: "error-state", colSpan: columnSpan, "data-test-id": "table-error-state", style: { textAlign: 'center' } },
19
- "An unexpected error occurred: ",
20
- errorMessage)));
21
- };
22
-
23
- const TableLoadingState = (props) => {
24
- const { columnSpan, isLoading } = props;
25
- if (!columnSpan || !isLoading) {
26
- return null;
27
- }
28
- return (h("tr", null,
29
- h("td", { class: "loading-state", part: "loading-state-cell", colSpan: columnSpan, style: { textAlign: 'center' } },
30
- h("div", { part: "loading-state-spinner", class: "spinner-border", role: "status" },
31
- h("span", { class: "visually-hidden" }, "Loading...")))));
32
- };
33
-
34
- export { TableLoadingState as T, TableEmptyState as a, TableErrorState as b };
1
+ import{h as t}from"./p-fad19d75.js";const e=e=>{const{columnSpan:r,isEmpty:s}=e;return r&&s?t("tr",null,t("td",{class:"empty-state",part:"empty-state",colSpan:r,style:{textAlign:"center"}},"No results")):null},r=e=>{const{columnSpan:r,errorMessage:s}=e;return r&&s?t("tr",null,t("td",{class:"error-state",part:"error-state",colSpan:r,"data-test-id":"table-error-state",style:{textAlign:"center"}},"An unexpected error occurred: ",s)):null},s=e=>{const{columnSpan:r,isLoading:s}=e;return r&&s?t("tr",null,t("td",{class:"loading-state",part:"loading-state-cell",colSpan:r,style:{textAlign:"center"}},t("div",{part:"loading-state-spinner",class:"spinner-border",role:"status"},t("span",{class:"visually-hidden"},"Loading...")))):null};export{s as T,e as a,r as b}
@@ -1,43 +1 @@
1
- var PayoutStatuses;
2
- (function (PayoutStatuses) {
3
- PayoutStatuses["paid"] = "paid";
4
- PayoutStatuses["failed"] = "failed";
5
- PayoutStatuses["forwarded"] = "forwarded";
6
- PayoutStatuses["scheduled"] = "scheduled";
7
- PayoutStatuses["in_transit"] = "in_transit";
8
- PayoutStatuses["canceled"] = "canceled";
9
- })(PayoutStatuses || (PayoutStatuses = {}));
10
- var PayoutStatusesSafeNames;
11
- (function (PayoutStatusesSafeNames) {
12
- PayoutStatusesSafeNames["paid"] = "Paid";
13
- PayoutStatusesSafeNames["failed"] = "Failed";
14
- PayoutStatusesSafeNames["forwarded"] = "Forwarded";
15
- PayoutStatusesSafeNames["scheduled"] = "Scheduled";
16
- PayoutStatusesSafeNames["in_transit"] = "In Transit";
17
- PayoutStatusesSafeNames["canceled"] = "Canceled";
18
- })(PayoutStatusesSafeNames || (PayoutStatusesSafeNames = {}));
19
- class Payout {
20
- constructor(payout) {
21
- this.id = payout.id;
22
- this.account_id = payout.account_id;
23
- this.amount = payout.amount;
24
- this.bank_account = payout.bank_account;
25
- this.currency = payout.currency;
26
- this.delivery_method = payout.delivery_method || 'standard';
27
- this.description = payout.description;
28
- this.deposits_at = payout.deposits_at;
29
- this.fees_total = payout.fees_total;
30
- this.refunds_count = payout.refunds_count;
31
- this.refunds_total = payout.refunds_total;
32
- this.payments_count = payout.payments_count;
33
- this.payments_total = payout.payments_total;
34
- this.payout_type = payout.payout_type;
35
- this.other_total = payout.other_total;
36
- this.status = payout.status;
37
- this.metadata = payout.metadata;
38
- this.created_at = payout.created_at;
39
- this.updated_at = payout.updated_at;
40
- }
41
- }
42
-
43
- export { Payout as P, PayoutStatuses as a, PayoutStatusesSafeNames as b };
1
+ var s,i;!function(s){s.paid="paid",s.failed="failed",s.forwarded="forwarded",s.scheduled="scheduled",s.in_transit="in_transit",s.canceled="canceled"}(s||(s={})),function(s){s.paid="Paid",s.failed="Failed",s.forwarded="Forwarded",s.scheduled="Scheduled",s.in_transit="In Transit",s.canceled="Canceled"}(i||(i={}));class t{constructor(s){this.id=s.id,this.account_id=s.account_id,this.amount=s.amount,this.bank_account=s.bank_account,this.currency=s.currency,this.delivery_method=s.delivery_method||"standard",this.description=s.description,this.deposits_at=s.deposits_at,this.fees_total=s.fees_total,this.refunds_count=s.refunds_count,this.refunds_total=s.refunds_total,this.payments_count=s.payments_count,this.payments_total=s.payments_total,this.payout_type=s.payout_type,this.other_total=s.other_total,this.status=s.status,this.metadata=s.metadata,this.created_at=s.created_at,this.updated_at=s.updated_at}}export{t as P,s as a,i as b}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e,H as s,g as o}from"./p-fad19d75.js";const a=class{constructor(e){t(this,e),this.formControlInput=i(this,"formControlInput",7),this.formControlBlur=i(this,"formControlBlur",7),this.fileSelected=i(this,"fileSelected",7),this.handleFormControlInput=t=>{const i=t.target,e=i.getAttribute("name");this.inputHandler(e,i.value),this.formControlInput.emit({name:e,value:i.value})},this.changeHandler=()=>{const t=this.fileInput.files;t&&this.fileSelected.emit({fileList:t,document_type:this.documentType})},this.files=void 0,this.fileString=void 0,this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.multiple=void 0,this.documentType=void 0,this.inputHandler=void 0,this.disabled=void 0}componentDidLoad(){this.fileInput=this.el.querySelector("input")}render(){return e(s,{key:"ed29128c1c4c811aa030697347adb88e0143b031",exportparts:"label,input,input-invalid"},e("div",{key:"6c924bdbbccae8e98a382a92e54c5b9c288de8d4",class:"form-group d-flex flex-column"},e("label",{key:"dbacccea94e39815737683495e3df83b514b79af",part:"label",class:"form-label",htmlFor:this.name},this.label),e("input",{key:"a7eef53c9fff54eace8c6960b8c62a833d30bfa3",ref:t=>this.fileInput=t,type:"file",name:this.name,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?" input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onBlur:()=>this.formControlBlur.emit()}),e("form-control-help-text",{key:"a5abacb92bdb3fb59d0a2265114e858540f2c4b7",helpText:this.helpText,name:this.name}),e("form-control-error-text",{key:"6eeeef347237d363d3bc6616d58f19a7f0be7e3c",errorText:this.errorText,name:this.name})))}get el(){return o(this)}};export{a as form_control_file}