@justifi/webcomponents 4.2.2 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (603) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Api-11362403.js → Api-d2df6e84.js} +17 -4
  3. package/dist/cjs/Api-d2df6e84.js.map +1 -0
  4. package/dist/cjs/{Payment-ac4dea02.js → Payout-4906a445.js} +44 -1
  5. package/dist/cjs/Payout-4906a445.js.map +1 -0
  6. package/dist/cjs/business-form-schema-725ec6f5.js +150 -0
  7. package/dist/cjs/business-form-schema-725ec6f5.js.map +1 -0
  8. package/dist/cjs/form-control-datepart_2.cjs.entry.js +107 -0
  9. package/dist/cjs/form-control-datepart_2.cjs.entry.js.map +1 -0
  10. package/dist/cjs/form-control-monetary.cjs.entry.js +65 -0
  11. package/dist/cjs/form-control-monetary.cjs.entry.js.map +1 -0
  12. package/dist/cjs/form-control-number_3.cjs.entry.js +148 -0
  13. package/dist/cjs/form-control-number_3.cjs.entry.js.map +1 -0
  14. package/dist/cjs/form-control-select.cjs.entry.js +47 -0
  15. package/dist/cjs/form-control-select.cjs.entry.js.map +1 -0
  16. package/dist/cjs/{index-34312a38.js → index-4ffc90c0.js} +145 -20
  17. package/dist/cjs/index-4ffc90c0.js.map +1 -0
  18. package/dist/cjs/index-5a880722.js +3233 -0
  19. package/dist/cjs/index-5a880722.js.map +1 -0
  20. package/dist/cjs/{index.esm-bcf90c56.js → index.esm-84a0a7a8.js} +283 -14
  21. package/dist/cjs/index.esm-84a0a7a8.js.map +1 -0
  22. package/dist/cjs/justifi-additional-questions_5.cjs.entry.js +396 -0
  23. package/dist/cjs/justifi-additional-questions_5.cjs.entry.js.map +1 -0
  24. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +8 -3
  25. package/dist/cjs/justifi-bank-account-form.cjs.entry.js.map +1 -1
  26. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +5 -5
  27. package/dist/cjs/justifi-billing-form_2.cjs.entry.js.map +1 -1
  28. package/dist/cjs/justifi-business-form.cjs.entry.js +833 -0
  29. package/dist/cjs/justifi-business-form.cjs.entry.js.map +1 -0
  30. package/dist/cjs/justifi-business-list.cjs.entry.js +189 -0
  31. package/dist/cjs/justifi-business-list.cjs.entry.js.map +1 -0
  32. package/dist/cjs/justifi-card-form.cjs.entry.js +8 -3
  33. package/dist/cjs/justifi-card-form.cjs.entry.js.map +1 -1
  34. package/dist/cjs/justifi-details.cjs.entry.js +30 -0
  35. package/dist/cjs/justifi-details.cjs.entry.js.map +1 -0
  36. package/dist/cjs/justifi-payment-details.cjs.entry.js +63 -0
  37. package/dist/cjs/justifi-payment-details.cjs.entry.js.map +1 -0
  38. package/dist/cjs/justifi-payment-form.cjs.entry.js +25 -7
  39. package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -1
  40. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +26 -19
  41. package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
  42. package/dist/cjs/justifi-payments-list.cjs.entry.js +78 -4039
  43. package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
  44. package/dist/cjs/justifi-payout-details.cjs.entry.js +61 -0
  45. package/dist/cjs/justifi-payout-details.cjs.entry.js.map +1 -0
  46. package/dist/cjs/justifi-payouts-list.cjs.entry.js +123 -0
  47. package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +1 -0
  48. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +156 -0
  49. package/dist/cjs/justifi-proceeds-list.cjs.entry.js.map +1 -0
  50. package/dist/cjs/justifi-table.cjs.entry.js +68 -0
  51. package/dist/cjs/justifi-table.cjs.entry.js.map +1 -0
  52. package/dist/cjs/loader.cjs.js +3 -12
  53. package/dist/cjs/loader.cjs.js.map +1 -1
  54. package/dist/cjs/select-input_2.cjs.entry.js +6 -6
  55. package/dist/cjs/select-input_2.cjs.entry.js.map +1 -1
  56. package/dist/cjs/{state-options-efeaa587.js → state-options-83b52cd1.js} +1 -1
  57. package/dist/{esm/state-options-188acc34.js.map → cjs/state-options-83b52cd1.js.map} +1 -1
  58. package/dist/cjs/table-utils-617126e5.js +13 -0
  59. package/dist/cjs/table-utils-617126e5.js.map +1 -0
  60. package/dist/cjs/utils-0fd61dbd.js +3918 -0
  61. package/dist/cjs/utils-0fd61dbd.js.map +1 -0
  62. package/dist/cjs/utils-a5b5bfdf.js +35 -0
  63. package/dist/cjs/utils-a5b5bfdf.js.map +1 -0
  64. package/dist/cjs/webcomponents.cjs.js +3 -6
  65. package/dist/cjs/webcomponents.cjs.js.map +1 -1
  66. package/dist/collection/api/Api.js +17 -4
  67. package/dist/collection/api/Api.js.map +1 -1
  68. package/dist/collection/api/Business.js +50 -0
  69. package/dist/collection/api/Business.js.map +1 -0
  70. package/dist/collection/api/Payment.js.map +1 -1
  71. package/dist/collection/api/Payout.js +42 -0
  72. package/dist/collection/api/Payout.js.map +1 -0
  73. package/dist/collection/api/Proceed.js +42 -0
  74. package/dist/collection/api/Proceed.js.map +1 -0
  75. package/dist/collection/api/index.js +1 -0
  76. package/dist/collection/api/index.js.map +1 -1
  77. package/dist/collection/api/mockData/MockPayments.js +1 -1
  78. package/dist/collection/api/shared.js +2 -0
  79. package/dist/collection/api/shared.js.map +1 -0
  80. package/dist/collection/collection-manifest.json +30 -12
  81. package/dist/collection/components/bank-account-form/bank-account-form.js +38 -10
  82. package/dist/collection/components/bank-account-form/bank-account-form.js.map +1 -1
  83. package/dist/collection/components/bank-account-form/bank-account-form.stories.js +2 -0
  84. package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -1
  85. package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +1 -1
  86. package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +3 -3
  87. package/dist/collection/components/billing-form/billing-form-schema.js +1 -1
  88. package/dist/collection/components/billing-form/billing-form.css +212 -39
  89. package/dist/collection/components/billing-form/billing-form.js +16 -10
  90. package/dist/collection/components/billing-form/billing-form.js.map +1 -1
  91. package/dist/collection/components/billing-form/test/billing-form.spec.js +51 -24
  92. package/dist/collection/components/billing-form/test/billing-form.spec.js.map +1 -1
  93. package/dist/collection/components/business-form/additional-questions/additional-questions.js +59 -0
  94. package/dist/collection/components/business-form/additional-questions/additional-questions.js.map +1 -0
  95. package/dist/collection/components/{business-address/business-address-schema.js → business-form/business-address/business-address-form-schema.js} +2 -2
  96. package/dist/collection/components/business-form/business-address/business-address-form-schema.js.map +1 -0
  97. package/dist/collection/components/business-form/business-address/business-address-form.css +2532 -0
  98. package/dist/collection/components/business-form/business-address/business-address-form.js +98 -0
  99. package/dist/collection/components/business-form/business-address/business-address-form.js.map +1 -0
  100. package/dist/collection/components/business-form/business-address/test/business-address.e2e.js +10 -0
  101. package/dist/collection/components/business-form/business-address/test/business-address.e2e.js.map +1 -0
  102. package/dist/collection/components/business-form/business-address/test/business-address.spec.js +76 -0
  103. package/dist/collection/components/business-form/business-address/test/business-address.spec.js.map +1 -0
  104. package/dist/collection/components/business-form/business-form-schema.js +160 -0
  105. package/dist/collection/components/business-form/business-form-schema.js.map +1 -0
  106. package/dist/collection/components/business-form/business-form.css +7772 -0
  107. package/dist/collection/components/business-form/business-form.js +153 -0
  108. package/dist/collection/components/business-form/business-form.js.map +1 -0
  109. package/dist/collection/components/business-form/business-form.stories.js +115 -0
  110. package/dist/collection/components/business-form/business-form.stories.js.map +1 -0
  111. package/dist/collection/components/{business-info/business-info.css → business-form/business-generic-info/business-generic-info.css} +745 -530
  112. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +72 -0
  113. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +1 -0
  114. package/dist/collection/components/business-form/business-owners/business-owners.css +7772 -0
  115. package/dist/collection/components/business-form/business-owners/business-owners.js +131 -0
  116. package/dist/collection/components/business-form/business-owners/business-owners.js.map +1 -0
  117. package/dist/collection/components/business-form/business-representative/business-representative-schema.js +2 -0
  118. package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +1 -0
  119. package/dist/collection/components/business-form/business-representative/business-representative.css +2489 -0
  120. package/dist/collection/components/business-form/business-representative/business-representative.js +71 -0
  121. package/dist/collection/components/business-form/business-representative/business-representative.js.map +1 -0
  122. package/dist/collection/components/business-form/test/business-form.spec.js +44 -0
  123. package/dist/collection/components/business-form/test/business-form.spec.js.map +1 -0
  124. package/dist/collection/components/business-list/business-list.css +576 -0
  125. package/dist/collection/components/business-list/business-list.js +209 -0
  126. package/dist/collection/components/business-list/business-list.js.map +1 -0
  127. package/dist/collection/components/business-list/business-list.stories.js +68 -0
  128. package/dist/collection/components/business-list/business-list.stories.js.map +1 -0
  129. package/dist/collection/components/business-list/example.js +12 -0
  130. package/dist/collection/components/card-form/card-form.js +38 -10
  131. package/dist/collection/components/card-form/card-form.js.map +1 -1
  132. package/dist/collection/components/card-form/card-form.stories.js +5 -2
  133. package/dist/collection/components/card-form/card-form.stories.js.map +1 -1
  134. package/dist/collection/components/card-form/test/card-form.e2e.js +1 -1
  135. package/dist/collection/components/card-form/test/card-form.spec.js +3 -3
  136. package/dist/collection/components/details/details.css +7983 -0
  137. package/dist/collection/components/details/details.js +66 -0
  138. package/dist/collection/components/details/details.js.map +1 -0
  139. package/dist/collection/components/details/utils.js +10 -0
  140. package/dist/collection/components/details/utils.js.map +1 -0
  141. package/dist/collection/components/form/form-control-datepart.js +233 -0
  142. package/dist/collection/components/form/form-control-datepart.js.map +1 -0
  143. package/dist/collection/components/form/form-control-monetary.js +186 -0
  144. package/dist/collection/components/form/form-control-monetary.js.map +1 -0
  145. package/dist/collection/components/form/form-control-number-masked.js +217 -0
  146. package/dist/collection/components/form/form-control-number-masked.js.map +1 -0
  147. package/dist/collection/components/form/form-control-number.css +1818 -0
  148. package/dist/collection/components/form/form-control-number.js +194 -0
  149. package/dist/collection/components/form/form-control-number.js.map +1 -0
  150. package/dist/collection/components/{business-address/business-address.css → form/form-control-select.css} +350 -1212
  151. package/dist/collection/components/form/form-control-select.js +200 -0
  152. package/dist/collection/components/form/form-control-select.js.map +1 -0
  153. package/dist/collection/components/form/form-control-text.css +1801 -0
  154. package/dist/collection/components/form/form-control-text.js +194 -0
  155. package/dist/collection/components/form/form-control-text.js.map +1 -0
  156. package/dist/collection/components/form/form.js +93 -0
  157. package/dist/collection/components/form/form.js.map +1 -0
  158. package/dist/collection/components/legal-address-form/legal-address-form-schema.js +11 -0
  159. package/dist/collection/components/legal-address-form/legal-address-form-schema.js.map +1 -0
  160. package/dist/collection/components/legal-address-form/legal-address-form.css +2489 -0
  161. package/dist/collection/components/legal-address-form/legal-address-form.js +90 -0
  162. package/dist/collection/components/legal-address-form/legal-address-form.js.map +1 -0
  163. package/dist/collection/components/payment-details/example.js +12 -0
  164. package/dist/collection/components/payment-details/payment-details.css +7983 -0
  165. package/dist/collection/components/payment-details/payment-details.js +129 -0
  166. package/dist/collection/components/payment-details/payment-details.js.map +1 -0
  167. package/dist/collection/components/payment-details/payment-details.stories.js +47 -0
  168. package/dist/collection/components/payment-details/payment-details.stories.js.map +1 -0
  169. package/dist/collection/components/payment-form/payment-form.css +220 -45
  170. package/dist/collection/components/payment-form/payment-form.js +47 -7
  171. package/dist/collection/components/payment-form/payment-form.js.map +1 -1
  172. package/dist/collection/components/payment-form/payment-form.stories.js +3 -2
  173. package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -1
  174. package/dist/collection/components/payment-form/payment-method-selector.css +348 -145
  175. package/dist/collection/components/payment-form/payment-method-selector.js +5 -3
  176. package/dist/collection/components/payment-form/payment-method-selector.js.map +1 -1
  177. package/dist/collection/components/payment-form/test/payment-form.e2e.js +1 -1
  178. package/dist/collection/components/payment-form/test/payment-form.spec.js +4 -3
  179. package/dist/collection/components/payment-form/test/payment-form.spec.js.map +1 -1
  180. package/dist/collection/components/payment-method-form/get-computed-theme.js +2 -0
  181. package/dist/collection/components/payment-method-form/get-computed-theme.js.map +1 -1
  182. package/dist/collection/components/payment-method-form/payment-method-form.js +19 -11
  183. package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -1
  184. package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +1 -1
  185. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +3 -3
  186. package/dist/collection/components/payment-method-form/theme.js.map +1 -1
  187. package/dist/collection/components/payments-list/example.js +12 -0
  188. package/dist/collection/components/payments-list/payments-list.css +574 -1
  189. package/dist/collection/components/payments-list/payments-list.js +130 -27
  190. package/dist/collection/components/payments-list/payments-list.js.map +1 -1
  191. package/dist/collection/components/payments-list/payments-list.stories.js +78 -0
  192. package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -0
  193. package/dist/collection/components/payments-list/test/payments-list.spec.js +31 -18
  194. package/dist/collection/components/payments-list/test/payments-list.spec.js.map +1 -1
  195. package/dist/collection/components/payout-details/example.js +12 -0
  196. package/dist/collection/components/payout-details/payout-details.css +7983 -0
  197. package/dist/collection/components/payout-details/payout-details.js +126 -0
  198. package/dist/collection/components/payout-details/payout-details.js.map +1 -0
  199. package/dist/collection/components/payout-details/payout-details.stories.js +47 -0
  200. package/dist/collection/components/payout-details/payout-details.stories.js.map +1 -0
  201. package/dist/collection/components/payouts-list/example.js +12 -0
  202. package/dist/collection/components/payouts-list/payouts-list.css +576 -0
  203. package/dist/collection/components/payouts-list/payouts-list.js +215 -0
  204. package/dist/collection/components/payouts-list/payouts-list.js.map +1 -0
  205. package/dist/collection/components/payouts-list/payouts-list.stories.js +69 -0
  206. package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -0
  207. package/dist/collection/components/proceeds-list/example.js +12 -0
  208. package/dist/collection/components/proceeds-list/proceeds-list.css +576 -0
  209. package/dist/collection/components/proceeds-list/proceeds-list.js +207 -0
  210. package/dist/collection/components/proceeds-list/proceeds-list.js.map +1 -0
  211. package/dist/collection/components/proceeds-list/proceeds-list.stories.js +69 -0
  212. package/dist/collection/components/proceeds-list/proceeds-list.stories.js.map +1 -0
  213. package/dist/collection/components/select-input/select-input.css +344 -141
  214. package/dist/collection/components/select-input/select-input.js +5 -4
  215. package/dist/collection/components/select-input/select-input.js.map +1 -1
  216. package/dist/collection/components/select-input/test/select-input.spec.js +72 -28
  217. package/dist/collection/components/select-input/test/select-input.spec.js.map +1 -1
  218. package/dist/collection/components/table/table-utils.js +8 -0
  219. package/dist/collection/components/table/table-utils.js.map +1 -0
  220. package/dist/collection/components/table/table.css +8077 -0
  221. package/dist/collection/components/table/table.js +215 -0
  222. package/dist/collection/components/table/table.js.map +1 -0
  223. package/dist/collection/components/table/test/table.spec.js +59 -0
  224. package/dist/collection/components/table/test/table.spec.js.map +1 -0
  225. package/dist/collection/components/text-input/test/text-input.spec.js +47 -5
  226. package/dist/collection/components/text-input/test/text-input.spec.js.map +1 -1
  227. package/dist/collection/components/text-input/text-input.css +344 -141
  228. package/dist/collection/components/text-input/text-input.js +2 -2
  229. package/dist/collection/components/text-input/text-input.js.map +1 -1
  230. package/dist/collection/utils/country-options.js +202 -0
  231. package/dist/collection/utils/country-options.js.map +1 -0
  232. package/dist/collection/utils/phone-masks.js +4 -0
  233. package/dist/collection/utils/phone-masks.js.map +1 -0
  234. package/dist/collection/utils/utils.js +47 -2
  235. package/dist/collection/utils/utils.js.map +1 -1
  236. package/dist/components/Api.js +16 -3
  237. package/dist/components/Api.js.map +1 -1
  238. package/dist/{esm/Payment-c86e1e84.js → components/Payout.js} +44 -2
  239. package/dist/components/Payout.js.map +1 -0
  240. package/dist/components/additional-questions.js +51 -0
  241. package/dist/components/additional-questions.js.map +1 -0
  242. package/dist/components/billing-form.js +2 -2
  243. package/dist/components/billing-form.js.map +1 -1
  244. package/dist/components/business-address-form.js +71 -0
  245. package/dist/components/business-address-form.js.map +1 -0
  246. package/dist/components/business-generic-info.js +216 -0
  247. package/dist/components/business-generic-info.js.map +1 -0
  248. package/dist/components/business-owners.js +118 -0
  249. package/dist/components/business-owners.js.map +1 -0
  250. package/dist/components/business-representative.js +91 -0
  251. package/dist/components/business-representative.js.map +1 -0
  252. package/dist/components/details.js +66 -0
  253. package/dist/components/details.js.map +1 -0
  254. package/dist/components/{justifi-business-info.d.ts → form-control-datepart.d.ts} +4 -4
  255. package/dist/components/form-control-datepart.js +8 -0
  256. package/dist/components/form-control-datepart.js.map +1 -0
  257. package/dist/components/form-control-datepart2.js +97 -0
  258. package/dist/components/form-control-datepart2.js.map +1 -0
  259. package/dist/components/form-control-monetary.d.ts +11 -0
  260. package/dist/components/form-control-monetary.js +8 -0
  261. package/dist/components/form-control-monetary.js.map +1 -0
  262. package/dist/components/form-control-monetary2.js +82 -0
  263. package/dist/components/form-control-monetary2.js.map +1 -0
  264. package/dist/components/form-control-number-masked.d.ts +11 -0
  265. package/dist/components/form-control-number-masked.js +8 -0
  266. package/dist/components/form-control-number-masked.js.map +1 -0
  267. package/dist/components/form-control-number-masked2.js +81 -0
  268. package/dist/components/form-control-number-masked2.js.map +1 -0
  269. package/dist/components/form-control-number.d.ts +11 -0
  270. package/dist/components/form-control-number.js +8 -0
  271. package/dist/components/form-control-number.js.map +1 -0
  272. package/dist/components/form-control-number2.js +70 -0
  273. package/dist/components/form-control-number2.js.map +1 -0
  274. package/dist/components/form-control-select.d.ts +11 -0
  275. package/dist/components/form-control-select.js +8 -0
  276. package/dist/components/form-control-select.js.map +1 -0
  277. package/dist/components/form-control-select2.js +66 -0
  278. package/dist/components/form-control-select2.js.map +1 -0
  279. package/dist/components/form-control-text.d.ts +11 -0
  280. package/dist/components/form-control-text.js +8 -0
  281. package/dist/components/form-control-text.js.map +1 -0
  282. package/dist/components/form-control-text2.js +70 -0
  283. package/dist/components/form-control-text2.js.map +1 -0
  284. package/dist/components/index.d.ts +6 -0
  285. package/dist/components/index.esm.js +281 -14
  286. package/dist/components/index.esm.js.map +1 -1
  287. package/dist/components/index.js +1 -1
  288. package/dist/components/index2.js +3231 -0
  289. package/dist/components/index2.js.map +1 -0
  290. package/dist/components/justifi-additional-questions.d.ts +11 -0
  291. package/dist/components/justifi-additional-questions.js +8 -0
  292. package/dist/components/justifi-additional-questions.js.map +1 -0
  293. package/dist/components/justifi-bank-account-form.js +7 -2
  294. package/dist/components/justifi-bank-account-form.js.map +1 -1
  295. package/dist/components/justifi-business-address-form.d.ts +11 -0
  296. package/dist/components/justifi-business-address-form.js +8 -0
  297. package/dist/components/justifi-business-address-form.js.map +1 -0
  298. package/dist/components/justifi-business-form.d.ts +11 -0
  299. package/dist/components/justifi-business-form.js +920 -0
  300. package/dist/components/justifi-business-form.js.map +1 -0
  301. package/dist/components/justifi-business-generic-info.d.ts +11 -0
  302. package/dist/components/justifi-business-generic-info.js +8 -0
  303. package/dist/components/justifi-business-generic-info.js.map +1 -0
  304. package/dist/components/justifi-business-list.d.ts +11 -0
  305. package/dist/components/justifi-business-list.js +215 -0
  306. package/dist/components/justifi-business-list.js.map +1 -0
  307. package/dist/components/justifi-business-owners.d.ts +11 -0
  308. package/dist/components/justifi-business-owners.js +8 -0
  309. package/dist/components/justifi-business-owners.js.map +1 -0
  310. package/dist/components/justifi-business-representative.d.ts +11 -0
  311. package/dist/components/justifi-business-representative.js +8 -0
  312. package/dist/components/justifi-business-representative.js.map +1 -0
  313. package/dist/components/justifi-card-form.js +7 -2
  314. package/dist/components/justifi-card-form.js.map +1 -1
  315. package/dist/components/justifi-details.d.ts +11 -0
  316. package/dist/components/justifi-details.js +8 -0
  317. package/dist/components/justifi-details.js.map +1 -0
  318. package/dist/components/justifi-legal-address-form.d.ts +11 -0
  319. package/dist/components/justifi-legal-address-form.js +8 -0
  320. package/dist/components/justifi-legal-address-form.js.map +1 -0
  321. package/dist/components/justifi-payment-details.d.ts +11 -0
  322. package/dist/components/justifi-payment-details.js +88 -0
  323. package/dist/components/justifi-payment-details.js.map +1 -0
  324. package/dist/components/justifi-payment-form.js +24 -4
  325. package/dist/components/justifi-payment-form.js.map +1 -1
  326. package/dist/components/justifi-payments-list.js +88 -4041
  327. package/dist/components/justifi-payments-list.js.map +1 -1
  328. package/dist/components/justifi-payout-details.d.ts +11 -0
  329. package/dist/components/justifi-payout-details.js +86 -0
  330. package/dist/components/justifi-payout-details.js.map +1 -0
  331. package/dist/components/justifi-payouts-list.d.ts +11 -0
  332. package/dist/components/justifi-payouts-list.js +149 -0
  333. package/dist/components/justifi-payouts-list.js.map +1 -0
  334. package/dist/components/justifi-proceeds-list.d.ts +11 -0
  335. package/dist/components/justifi-proceeds-list.js +182 -0
  336. package/dist/components/justifi-proceeds-list.js.map +1 -0
  337. package/dist/components/justifi-table.d.ts +11 -0
  338. package/dist/components/justifi-table.js +8 -0
  339. package/dist/components/justifi-table.js.map +1 -0
  340. package/dist/components/legal-address-form.js +271 -0
  341. package/dist/components/legal-address-form.js.map +1 -0
  342. package/dist/components/payment-method-form.js +25 -18
  343. package/dist/components/payment-method-form.js.map +1 -1
  344. package/dist/components/payment-method-selector.js +1 -1
  345. package/dist/components/payment-method-selector.js.map +1 -1
  346. package/dist/components/phone-masks.js +7 -0
  347. package/dist/components/phone-masks.js.map +1 -0
  348. package/dist/components/select-input2.js +3 -3
  349. package/dist/components/select-input2.js.map +1 -1
  350. package/dist/components/state-options.js.map +1 -1
  351. package/dist/components/table.js +94 -0
  352. package/dist/components/table.js.map +1 -0
  353. package/dist/components/text-input2.js +2 -2
  354. package/dist/components/text-input2.js.map +1 -1
  355. package/dist/components/utils.js +3911 -0
  356. package/dist/components/utils.js.map +1 -0
  357. package/dist/esm/{Api-a07f0057.js → Api-a95f17ac.js} +17 -4
  358. package/dist/esm/Api-a95f17ac.js.map +1 -0
  359. package/dist/{components/Payment.js → esm/Payout-9a1f2859.js} +44 -2
  360. package/dist/esm/Payout-9a1f2859.js.map +1 -0
  361. package/dist/esm/business-form-schema-5885d3d6.js +146 -0
  362. package/dist/esm/business-form-schema-5885d3d6.js.map +1 -0
  363. package/dist/esm/form-control-datepart_2.entry.js +102 -0
  364. package/dist/esm/form-control-datepart_2.entry.js.map +1 -0
  365. package/dist/esm/form-control-monetary.entry.js +61 -0
  366. package/dist/esm/form-control-monetary.entry.js.map +1 -0
  367. package/dist/esm/form-control-number_3.entry.js +142 -0
  368. package/dist/esm/form-control-number_3.entry.js.map +1 -0
  369. package/dist/esm/form-control-select.entry.js +43 -0
  370. package/dist/esm/form-control-select.entry.js.map +1 -0
  371. package/dist/esm/index-5ed53c20.js +3231 -0
  372. package/dist/esm/index-5ed53c20.js.map +1 -0
  373. package/dist/esm/{index-044f93fc.js → index-609a2c67.js} +145 -21
  374. package/dist/esm/index-609a2c67.js.map +1 -0
  375. package/dist/esm/{index.esm-5624a5ed.js → index.esm-89fe6af9.js} +282 -15
  376. package/dist/esm/index.esm-89fe6af9.js.map +1 -0
  377. package/dist/esm/justifi-additional-questions_5.entry.js +388 -0
  378. package/dist/esm/justifi-additional-questions_5.entry.js.map +1 -0
  379. package/dist/esm/justifi-bank-account-form.entry.js +8 -3
  380. package/dist/esm/justifi-bank-account-form.entry.js.map +1 -1
  381. package/dist/esm/justifi-billing-form_2.entry.js +5 -5
  382. package/dist/esm/justifi-billing-form_2.entry.js.map +1 -1
  383. package/dist/esm/justifi-business-form.entry.js +829 -0
  384. package/dist/esm/justifi-business-form.entry.js.map +1 -0
  385. package/dist/esm/justifi-business-list.entry.js +185 -0
  386. package/dist/esm/justifi-business-list.entry.js.map +1 -0
  387. package/dist/esm/justifi-card-form.entry.js +8 -3
  388. package/dist/esm/justifi-card-form.entry.js.map +1 -1
  389. package/dist/esm/justifi-details.entry.js +26 -0
  390. package/dist/esm/justifi-details.entry.js.map +1 -0
  391. package/dist/esm/justifi-payment-details.entry.js +59 -0
  392. package/dist/esm/justifi-payment-details.entry.js.map +1 -0
  393. package/dist/esm/justifi-payment-form.entry.js +22 -4
  394. package/dist/esm/justifi-payment-form.entry.js.map +1 -1
  395. package/dist/esm/justifi-payment-method-form.entry.js +26 -19
  396. package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
  397. package/dist/esm/justifi-payments-list.entry.js +78 -4039
  398. package/dist/esm/justifi-payments-list.entry.js.map +1 -1
  399. package/dist/esm/justifi-payout-details.entry.js +57 -0
  400. package/dist/esm/justifi-payout-details.entry.js.map +1 -0
  401. package/dist/esm/justifi-payouts-list.entry.js +119 -0
  402. package/dist/esm/justifi-payouts-list.entry.js.map +1 -0
  403. package/dist/esm/justifi-proceeds-list.entry.js +152 -0
  404. package/dist/esm/justifi-proceeds-list.entry.js.map +1 -0
  405. package/dist/esm/justifi-table.entry.js +64 -0
  406. package/dist/esm/justifi-table.entry.js.map +1 -0
  407. package/dist/esm/loader.js +4 -13
  408. package/dist/esm/loader.js.map +1 -1
  409. package/dist/esm/select-input_2.entry.js +6 -6
  410. package/dist/esm/select-input_2.entry.js.map +1 -1
  411. package/dist/esm/{state-options-188acc34.js → state-options-ece00aa2.js} +1 -1
  412. package/dist/esm/state-options-ece00aa2.js.map +1 -0
  413. package/dist/esm/table-utils-6cdcaa8c.js +11 -0
  414. package/dist/esm/table-utils-6cdcaa8c.js.map +1 -0
  415. package/dist/esm/utils-ad0bbe03.js +3911 -0
  416. package/dist/esm/utils-ad0bbe03.js.map +1 -0
  417. package/dist/esm/utils-cdf0b984.js +28 -0
  418. package/dist/esm/utils-cdf0b984.js.map +1 -0
  419. package/dist/esm/webcomponents.js +4 -7
  420. package/dist/esm/webcomponents.js.map +1 -1
  421. package/dist/types/api/Api.d.ts +1 -1
  422. package/dist/types/api/Business.d.ts +133 -0
  423. package/dist/types/api/Payment.d.ts +1 -0
  424. package/dist/types/api/Payout.d.ts +60 -0
  425. package/dist/types/api/Proceed.d.ts +60 -0
  426. package/dist/types/api/index.d.ts +1 -0
  427. package/dist/types/api/shared.d.ts +11 -0
  428. package/dist/types/components/business-form/additional-questions/additional-questions.d.ts +15 -0
  429. package/dist/types/components/business-form/business-address/business-address-form.d.ts +9 -0
  430. package/dist/types/components/business-form/business-form-schema.d.ts +119 -0
  431. package/dist/types/components/business-form/business-form.d.ts +19 -0
  432. package/dist/types/components/business-form/business-form.stories.d.ts +21 -0
  433. package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +15 -0
  434. package/dist/types/components/business-form/business-owners/business-owners.d.ts +33 -0
  435. package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +15 -0
  436. package/dist/types/components/business-form/business-representative/business-representative.d.ts +11 -0
  437. package/dist/types/components/business-list/business-list.d.ts +35 -0
  438. package/dist/types/components/business-list/business-list.stories.d.ts +9 -0
  439. package/dist/types/components/details/details.d.ts +7 -0
  440. package/dist/types/components/details/utils.d.ts +19 -0
  441. package/dist/types/components/form/form-control-datepart.d.ts +19 -0
  442. package/dist/types/components/form/form-control-monetary.d.ts +17 -0
  443. package/dist/types/components/form/form-control-number-masked.d.ts +19 -0
  444. package/dist/types/components/form/form-control-number.d.ts +18 -0
  445. package/dist/types/components/form/form-control-select.d.ts +21 -0
  446. package/dist/types/components/form/form-control-text.d.ts +18 -0
  447. package/dist/types/components/form/form.d.ts +22 -0
  448. package/dist/types/components/legal-address-form/legal-address-form-schema.d.ts +17 -0
  449. package/dist/types/components/legal-address-form/legal-address-form.d.ts +16 -0
  450. package/dist/types/components/payment-details/payment-details.d.ts +28 -0
  451. package/dist/types/components/payment-details/payment-details.stories.d.ts +8 -0
  452. package/dist/types/components/payment-form/payment-form.d.ts +2 -0
  453. package/dist/types/components/payment-method-form/theme.d.ts +2 -0
  454. package/dist/types/components/payments-list/payments-list.d.ts +30 -5
  455. package/dist/types/components/payments-list/payments-list.stories.d.ts +10 -0
  456. package/dist/types/components/payout-details/payout-details.d.ts +28 -0
  457. package/dist/types/components/payout-details/payout-details.stories.d.ts +8 -0
  458. package/dist/types/components/payouts-list/payouts-list.d.ts +37 -0
  459. package/dist/types/components/payouts-list/payouts-list.stories.d.ts +9 -0
  460. package/dist/types/components/proceeds-list/proceeds-list.d.ts +37 -0
  461. package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +9 -0
  462. package/dist/types/components/table/table-utils.d.ts +14 -0
  463. package/dist/types/components/table/table.d.ts +28 -0
  464. package/dist/types/components.d.ts +964 -28
  465. package/dist/types/stencil-public-runtime.d.ts +16 -2
  466. package/dist/types/utils/country-options.d.ts +5 -0
  467. package/dist/types/utils/phone-masks.d.ts +3 -0
  468. package/dist/types/utils/utils.d.ts +3 -0
  469. package/dist/webcomponents/p-0237a6bc.entry.js +2 -0
  470. package/dist/webcomponents/p-0237a6bc.entry.js.map +1 -0
  471. package/dist/webcomponents/p-0d6e9f76.entry.js +2 -0
  472. package/dist/webcomponents/p-0d6e9f76.entry.js.map +1 -0
  473. package/dist/webcomponents/p-126146d4.js +2 -0
  474. package/dist/webcomponents/p-126146d4.js.map +1 -0
  475. package/dist/webcomponents/p-239564c6.entry.js +2 -0
  476. package/dist/webcomponents/p-239564c6.entry.js.map +1 -0
  477. package/dist/webcomponents/p-27b15fe8.entry.js +2 -0
  478. package/dist/webcomponents/p-27b15fe8.entry.js.map +1 -0
  479. package/dist/webcomponents/p-2c2cde2d.js +2 -0
  480. package/dist/webcomponents/p-2c2cde2d.js.map +1 -0
  481. package/dist/webcomponents/p-308b6784.js +3 -0
  482. package/dist/webcomponents/p-308b6784.js.map +1 -0
  483. package/dist/webcomponents/p-391b8f1d.entry.js +2 -0
  484. package/dist/webcomponents/p-391b8f1d.entry.js.map +1 -0
  485. package/dist/webcomponents/p-439fc294.entry.js +2 -0
  486. package/dist/webcomponents/p-439fc294.entry.js.map +1 -0
  487. package/dist/webcomponents/{p-0ea23153.js → p-47bc59b5.js} +1 -1
  488. package/dist/webcomponents/p-47bc59b5.js.map +1 -0
  489. package/dist/webcomponents/p-66f010e5.entry.js +2 -0
  490. package/dist/webcomponents/p-66f010e5.entry.js.map +1 -0
  491. package/dist/webcomponents/p-7abb092c.entry.js +2 -0
  492. package/dist/webcomponents/p-7abb092c.entry.js.map +1 -0
  493. package/dist/webcomponents/p-7e3bbe32.entry.js +2 -0
  494. package/dist/webcomponents/p-7e3bbe32.entry.js.map +1 -0
  495. package/dist/webcomponents/p-86464cab.entry.js +2 -0
  496. package/dist/webcomponents/p-86464cab.entry.js.map +1 -0
  497. package/dist/webcomponents/p-8f421dc6.js +2 -0
  498. package/dist/webcomponents/p-8f421dc6.js.map +1 -0
  499. package/dist/webcomponents/p-9346ae33.js +2 -0
  500. package/dist/webcomponents/p-9346ae33.js.map +1 -0
  501. package/dist/webcomponents/p-ab0756ff.js +2 -0
  502. package/dist/webcomponents/p-ab0756ff.js.map +1 -0
  503. package/dist/webcomponents/p-b042bf80.entry.js +2 -0
  504. package/dist/webcomponents/p-b042bf80.entry.js.map +1 -0
  505. package/dist/webcomponents/p-b967262f.entry.js +2 -0
  506. package/dist/webcomponents/p-b967262f.entry.js.map +1 -0
  507. package/dist/webcomponents/p-bf9c2be2.entry.js +2 -0
  508. package/dist/webcomponents/p-bf9c2be2.entry.js.map +1 -0
  509. package/dist/webcomponents/p-c18d876e.entry.js +2 -0
  510. package/dist/webcomponents/p-c18d876e.entry.js.map +1 -0
  511. package/dist/webcomponents/p-c1e4288d.entry.js +2 -0
  512. package/dist/webcomponents/p-c1e4288d.entry.js.map +1 -0
  513. package/dist/webcomponents/p-c46241ba.js +2 -0
  514. package/dist/webcomponents/p-c46241ba.js.map +1 -0
  515. package/dist/webcomponents/p-ccb0e1c5.js +2 -0
  516. package/dist/webcomponents/p-ccb0e1c5.js.map +1 -0
  517. package/dist/webcomponents/p-d1bbf409.entry.js +2 -0
  518. package/dist/webcomponents/p-d1bbf409.entry.js.map +1 -0
  519. package/dist/webcomponents/p-e26d7eea.entry.js +2 -0
  520. package/dist/webcomponents/p-e26d7eea.entry.js.map +1 -0
  521. package/dist/webcomponents/p-e77d8c6e.entry.js +2 -0
  522. package/dist/webcomponents/p-e77d8c6e.entry.js.map +1 -0
  523. package/dist/webcomponents/p-f0acb27e.entry.js +2 -0
  524. package/dist/webcomponents/p-f0acb27e.entry.js.map +1 -0
  525. package/dist/webcomponents/p-f8d49acb.entry.js +2 -0
  526. package/dist/webcomponents/p-f8d49acb.entry.js.map +1 -0
  527. package/dist/webcomponents/p-f9e127a5.js +2 -0
  528. package/dist/webcomponents/p-f9e127a5.js.map +1 -0
  529. package/dist/webcomponents/webcomponents.css +1 -1
  530. package/dist/webcomponents/webcomponents.esm.js +1 -1
  531. package/dist/webcomponents/webcomponents.esm.js.map +1 -1
  532. package/loader/index.d.ts +1 -1
  533. package/package.json +16 -16
  534. package/CHANGELOG.md +0 -208
  535. package/changelog-template.hbs +0 -10
  536. package/dist/cjs/Api-11362403.js.map +0 -1
  537. package/dist/cjs/Payment-ac4dea02.js.map +0 -1
  538. package/dist/cjs/index-34312a38.js.map +0 -1
  539. package/dist/cjs/index.esm-bcf90c56.js.map +0 -1
  540. package/dist/cjs/justifi-business-address.cjs.entry.js +0 -69
  541. package/dist/cjs/justifi-business-address.cjs.entry.js.map +0 -1
  542. package/dist/cjs/justifi-business-info.cjs.entry.js +0 -174
  543. package/dist/cjs/justifi-business-info.cjs.entry.js.map +0 -1
  544. package/dist/cjs/state-options-efeaa587.js.map +0 -1
  545. package/dist/collection/components/business-address/business-address-schema.js.map +0 -1
  546. package/dist/collection/components/business-address/business-address.js +0 -100
  547. package/dist/collection/components/business-address/business-address.js.map +0 -1
  548. package/dist/collection/components/business-address/test/business-address.e2e.js +0 -10
  549. package/dist/collection/components/business-address/test/business-address.e2e.js.map +0 -1
  550. package/dist/collection/components/business-address/test/business-address.spec.js +0 -18
  551. package/dist/collection/components/business-address/test/business-address.spec.js.map +0 -1
  552. package/dist/collection/components/business-info/business-info-schema.js +0 -94
  553. package/dist/collection/components/business-info/business-info-schema.js.map +0 -1
  554. package/dist/collection/components/business-info/business-info.js +0 -168
  555. package/dist/collection/components/business-info/business-info.js.map +0 -1
  556. package/dist/components/Payment.js.map +0 -1
  557. package/dist/components/justifi-business-address.d.ts +0 -11
  558. package/dist/components/justifi-business-address.js +0 -99
  559. package/dist/components/justifi-business-address.js.map +0 -1
  560. package/dist/components/justifi-business-info.js +0 -207
  561. package/dist/components/justifi-business-info.js.map +0 -1
  562. package/dist/esm/Api-a07f0057.js.map +0 -1
  563. package/dist/esm/Payment-c86e1e84.js.map +0 -1
  564. package/dist/esm/index-044f93fc.js.map +0 -1
  565. package/dist/esm/index.esm-5624a5ed.js.map +0 -1
  566. package/dist/esm/justifi-business-address.entry.js +0 -65
  567. package/dist/esm/justifi-business-address.entry.js.map +0 -1
  568. package/dist/esm/justifi-business-info.entry.js +0 -170
  569. package/dist/esm/justifi-business-info.entry.js.map +0 -1
  570. package/dist/esm/polyfills/css-shim.js +0 -1
  571. package/dist/types/components/bank-account-form/bank-account-form.d.ts +0 -56
  572. package/dist/types/components/business-address/business-address.d.ts +0 -11
  573. package/dist/types/components/business-info/business-info-schema.d.ts +0 -42
  574. package/dist/types/components/business-info/business-info.d.ts +0 -20
  575. package/dist/types/components/card-form/card-form.d.ts +0 -62
  576. package/dist/webcomponents/p-0969db8f.entry.js +0 -2
  577. package/dist/webcomponents/p-0969db8f.entry.js.map +0 -1
  578. package/dist/webcomponents/p-0ea23153.js.map +0 -1
  579. package/dist/webcomponents/p-1ca0646b.js +0 -2
  580. package/dist/webcomponents/p-1ca0646b.js.map +0 -1
  581. package/dist/webcomponents/p-1f151d49.js +0 -2
  582. package/dist/webcomponents/p-1f151d49.js.map +0 -1
  583. package/dist/webcomponents/p-255b1284.entry.js +0 -2
  584. package/dist/webcomponents/p-255b1284.entry.js.map +0 -1
  585. package/dist/webcomponents/p-3aa91155.js +0 -3
  586. package/dist/webcomponents/p-3aa91155.js.map +0 -1
  587. package/dist/webcomponents/p-4ecc9860.entry.js +0 -2
  588. package/dist/webcomponents/p-4ecc9860.entry.js.map +0 -1
  589. package/dist/webcomponents/p-90c0d9e1.entry.js +0 -2
  590. package/dist/webcomponents/p-90c0d9e1.entry.js.map +0 -1
  591. package/dist/webcomponents/p-bd5352d6.entry.js +0 -2
  592. package/dist/webcomponents/p-bd5352d6.entry.js.map +0 -1
  593. package/dist/webcomponents/p-c903cc5a.entry.js +0 -2
  594. package/dist/webcomponents/p-c903cc5a.entry.js.map +0 -1
  595. package/dist/webcomponents/p-d87b0711.entry.js +0 -2
  596. package/dist/webcomponents/p-d87b0711.entry.js.map +0 -1
  597. package/dist/webcomponents/p-dbf7100f.entry.js +0 -2
  598. package/dist/webcomponents/p-dbf7100f.entry.js.map +0 -1
  599. package/dist/webcomponents/p-e0054bc3.js +0 -2
  600. package/dist/webcomponents/p-e0054bc3.js.map +0 -1
  601. package/dist/webcomponents/p-f30d1567.entry.js +0 -2
  602. package/dist/webcomponents/p-f30d1567.entry.js.map +0 -1
  603. /package/dist/types/components/{business-address/business-address-schema.d.ts → business-form/business-address/business-address-form-schema.d.ts} +0 -0
@@ -1,2 +0,0 @@
1
- import{r as t,h as n,H as r}from"./p-3aa91155.js";import{A as e}from"./p-1f151d49.js";import{a}from"./p-1ca0646b.js";function i(t){if(t===null||t===true||t===false){return NaN}var n=Number(t);if(isNaN(n)){return n}return n<0?Math.ceil(n):Math.floor(n)}function o(t,n){if(n.length<t){throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+n.length+" present")}}function u(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){u=function t(n){return typeof n}}else{u=function t(n){return n&&typeof Symbol==="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n}}return u(t)}function c(t){o(1,arguments);var n=Object.prototype.toString.call(t);if(t instanceof Date||u(t)==="object"&&n==="[object Date]"){return new Date(t.getTime())}else if(typeof t==="number"||n==="[object Number]"){return new Date(t)}else{if((typeof t==="string"||n==="[object String]")&&typeof console!=="undefined"){console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");console.warn((new Error).stack)}return new Date(NaN)}}function s(t,n){o(2,arguments);var r=c(t).getTime();var e=i(n);return new Date(r+e)}var d={};function f(){return d}function v(t){var n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));n.setUTCFullYear(t.getFullYear());return t.getTime()-n.getTime()}function l(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){l=function t(n){return typeof n}}else{l=function t(n){return n&&typeof Symbol==="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n}}return l(t)}function h(t){o(1,arguments);return t instanceof Date||l(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function m(t){o(1,arguments);if(!h(t)&&typeof t!=="number"){return false}var n=c(t);return!isNaN(Number(n))}function w(t,n){o(2,arguments);var r=i(n);return s(t,-r)}var b=864e5;function g(t){o(1,arguments);var n=c(t);var r=n.getTime();n.setUTCMonth(0,1);n.setUTCHours(0,0,0,0);var e=n.getTime();var a=r-e;return Math.floor(a/b)+1}function y(t){o(1,arguments);var n=1;var r=c(t);var e=r.getUTCDay();var a=(e<n?7:0)+e-n;r.setUTCDate(r.getUTCDate()-a);r.setUTCHours(0,0,0,0);return r}function p(t){o(1,arguments);var n=c(t);var r=n.getUTCFullYear();var e=new Date(0);e.setUTCFullYear(r+1,0,4);e.setUTCHours(0,0,0,0);var a=y(e);var i=new Date(0);i.setUTCFullYear(r,0,4);i.setUTCHours(0,0,0,0);var u=y(i);if(n.getTime()>=a.getTime()){return r+1}else if(n.getTime()>=u.getTime()){return r}else{return r-1}}function M(t){o(1,arguments);var n=p(t);var r=new Date(0);r.setUTCFullYear(n,0,4);r.setUTCHours(0,0,0,0);var e=y(r);return e}var S=6048e5;function x(t){o(1,arguments);var n=c(t);var r=y(n).getTime()-M(n).getTime();return Math.round(r/S)+1}function E(t,n){var r,e,a,u,s,d,v,l;o(1,arguments);var h=f();var m=i((r=(e=(a=(u=n===null||n===void 0?void 0:n.weekStartsOn)!==null&&u!==void 0?u:n===null||n===void 0?void 0:(s=n.locale)===null||s===void 0?void 0:(d=s.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&e!==void 0?e:(v=h.locale)===null||v===void 0?void 0:(l=v.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var w=c(t);var b=w.getUTCDay();var g=(b<m?7:0)+b-m;w.setUTCDate(w.getUTCDate()-g);w.setUTCHours(0,0,0,0);return w}function P(t,n){var r,e,a,u,s,d,v,l;o(1,arguments);var h=c(t);var m=h.getUTCFullYear();var w=f();var b=i((r=(e=(a=(u=n===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:n===null||n===void 0?void 0:(s=n.locale)===null||s===void 0?void 0:(d=s.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&a!==void 0?a:w.firstWeekContainsDate)!==null&&e!==void 0?e:(v=w.locale)===null||v===void 0?void 0:(l=v.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(b>=1&&b<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var g=new Date(0);g.setUTCFullYear(m+1,0,b);g.setUTCHours(0,0,0,0);var y=E(g,n);var p=new Date(0);p.setUTCFullYear(m,0,b);p.setUTCHours(0,0,0,0);var M=E(p,n);if(h.getTime()>=y.getTime()){return m+1}else if(h.getTime()>=M.getTime()){return m}else{return m-1}}function D(t,n){var r,e,a,u,c,s,d,v;o(1,arguments);var l=f();var h=i((r=(e=(a=(u=n===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:n===null||n===void 0?void 0:(c=n.locale)===null||c===void 0?void 0:(s=c.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:l.firstWeekContainsDate)!==null&&e!==void 0?e:(d=l.locale)===null||d===void 0?void 0:(v=d.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&r!==void 0?r:1);var m=P(t,n);var w=new Date(0);w.setUTCFullYear(m,0,h);w.setUTCHours(0,0,0,0);var b=E(w,n);return b}var O=6048e5;function j(t,n){o(1,arguments);var r=c(t);var e=E(r,n).getTime()-D(r,n).getTime();return Math.round(e/O)+1}function A(t,n){var r=t<0?"-":"";var e=Math.abs(t).toString();while(e.length<n){e="0"+e}return r+e}var q={y:function t(n,r){var e=n.getUTCFullYear();var a=e>0?e:1-e;return A(r==="yy"?a%100:a,r.length)},M:function t(n,r){var e=n.getUTCMonth();return r==="M"?String(e+1):A(e+1,2)},d:function t(n,r){return A(n.getUTCDate(),r.length)},a:function t(n,r){var e=n.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h:function t(n,r){return A(n.getUTCHours()%12||12,r.length)},H:function t(n,r){return A(n.getUTCHours(),r.length)},m:function t(n,r){return A(n.getUTCMinutes(),r.length)},s:function t(n,r){return A(n.getUTCSeconds(),r.length)},S:function t(n,r){var e=r.length;var a=n.getUTCMilliseconds();var i=Math.floor(a*Math.pow(10,e-3));return A(i,r.length)}};var W={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};var T={G:function t(n,r,e){var a=n.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return e.era(a,{width:"abbreviated"});case"GGGGG":return e.era(a,{width:"narrow"});case"GGGG":default:return e.era(a,{width:"wide"})}},y:function t(n,r,e){if(r==="yo"){var a=n.getUTCFullYear();var i=a>0?a:1-a;return e.ordinalNumber(i,{unit:"year"})}return q.y(n,r)},Y:function t(n,r,e,a){var i=P(n,a);var o=i>0?i:1-i;if(r==="YY"){var u=o%100;return A(u,2)}if(r==="Yo"){return e.ordinalNumber(o,{unit:"year"})}return A(o,r.length)},R:function t(n,r){var e=p(n);return A(e,r.length)},u:function t(n,r){var e=n.getUTCFullYear();return A(e,r.length)},Q:function t(n,r,e){var a=Math.ceil((n.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return A(a,2);case"Qo":return e.ordinalNumber(a,{unit:"quarter"});case"QQQ":return e.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(a,{width:"wide",context:"formatting"})}},q:function t(n,r,e){var a=Math.ceil((n.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return A(a,2);case"qo":return e.ordinalNumber(a,{unit:"quarter"});case"qqq":return e.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(a,{width:"wide",context:"standalone"})}},M:function t(n,r,e){var a=n.getUTCMonth();switch(r){case"M":case"MM":return q.M(n,r);case"Mo":return e.ordinalNumber(a+1,{unit:"month"});case"MMM":return e.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(a,{width:"wide",context:"formatting"})}},L:function t(n,r,e){var a=n.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return A(a+1,2);case"Lo":return e.ordinalNumber(a+1,{unit:"month"});case"LLL":return e.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(a,{width:"wide",context:"standalone"})}},w:function t(n,r,e,a){var i=j(n,a);if(r==="wo"){return e.ordinalNumber(i,{unit:"week"})}return A(i,r.length)},I:function t(n,r,e){var a=x(n);if(r==="Io"){return e.ordinalNumber(a,{unit:"week"})}return A(a,r.length)},d:function t(n,r,e){if(r==="do"){return e.ordinalNumber(n.getUTCDate(),{unit:"date"})}return q.d(n,r)},D:function t(n,r,e){var a=g(n);if(r==="Do"){return e.ordinalNumber(a,{unit:"dayOfYear"})}return A(a,r.length)},E:function t(n,r,e){var a=n.getUTCDay();switch(r){case"E":case"EE":case"EEE":return e.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(a,{width:"short",context:"formatting"});case"EEEE":default:return e.day(a,{width:"wide",context:"formatting"})}},e:function t(n,r,e,a){var i=n.getUTCDay();var o=(i-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return A(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(i,{width:"short",context:"formatting"});case"eeee":default:return e.day(i,{width:"wide",context:"formatting"})}},c:function t(n,r,e,a){var i=n.getUTCDay();var o=(i-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return A(o,r.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(i,{width:"narrow",context:"standalone"});case"cccccc":return e.day(i,{width:"short",context:"standalone"});case"cccc":default:return e.day(i,{width:"wide",context:"standalone"})}},i:function t(n,r,e){var a=n.getUTCDay();var i=a===0?7:a;switch(r){case"i":return String(i);case"ii":return A(i,r.length);case"io":return e.ordinalNumber(i,{unit:"day"});case"iii":return e.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(a,{width:"short",context:"formatting"});case"iiii":default:return e.day(a,{width:"wide",context:"formatting"})}},a:function t(n,r,e){var a=n.getUTCHours();var i=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function t(n,r,e){var a=n.getUTCHours();var i;if(a===12){i=W.noon}else if(a===0){i=W.midnight}else{i=a/12>=1?"pm":"am"}switch(r){case"b":case"bb":return e.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function t(n,r,e){var a=n.getUTCHours();var i;if(a>=17){i=W.evening}else if(a>=12){i=W.afternoon}else if(a>=4){i=W.morning}else{i=W.night}switch(r){case"B":case"BB":case"BBB":return e.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function t(n,r,e){if(r==="ho"){var a=n.getUTCHours()%12;if(a===0)a=12;return e.ordinalNumber(a,{unit:"hour"})}return q.h(n,r)},H:function t(n,r,e){if(r==="Ho"){return e.ordinalNumber(n.getUTCHours(),{unit:"hour"})}return q.H(n,r)},K:function t(n,r,e){var a=n.getUTCHours()%12;if(r==="Ko"){return e.ordinalNumber(a,{unit:"hour"})}return A(a,r.length)},k:function t(n,r,e){var a=n.getUTCHours();if(a===0)a=24;if(r==="ko"){return e.ordinalNumber(a,{unit:"hour"})}return A(a,r.length)},m:function t(n,r,e){if(r==="mo"){return e.ordinalNumber(n.getUTCMinutes(),{unit:"minute"})}return q.m(n,r)},s:function t(n,r,e){if(r==="so"){return e.ordinalNumber(n.getUTCSeconds(),{unit:"second"})}return q.s(n,r)},S:function t(n,r){return q.S(n,r)},X:function t(n,r,e,a){var i=a._originalDate||n;var o=i.getTimezoneOffset();if(o===0){return"Z"}switch(r){case"X":return Y(o);case"XXXX":case"XX":return L(o);case"XXXXX":case"XXX":default:return L(o,":")}},x:function t(n,r,e,a){var i=a._originalDate||n;var o=i.getTimezoneOffset();switch(r){case"x":return Y(o);case"xxxx":case"xx":return L(o);case"xxxxx":case"xxx":default:return L(o,":")}},O:function t(n,r,e,a){var i=a._originalDate||n;var o=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+k(o,":");case"OOOO":default:return"GMT"+L(o,":")}},z:function t(n,r,e,a){var i=a._originalDate||n;var o=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+k(o,":");case"zzzz":default:return"GMT"+L(o,":")}},t:function t(n,r,e,a){var i=a._originalDate||n;var o=Math.floor(i.getTime()/1e3);return A(o,r.length)},T:function t(n,r,e,a){var i=a._originalDate||n;var o=i.getTime();return A(o,r.length)}};function k(t,n){var r=t>0?"-":"+";var e=Math.abs(t);var a=Math.floor(e/60);var i=e%60;if(i===0){return r+String(a)}var o=n||"";return r+String(a)+o+A(i,2)}function Y(t,n){if(t%60===0){var r=t>0?"-":"+";return r+A(Math.abs(t)/60,2)}return L(t,n)}function L(t,n){var r=n||"";var e=t>0?"-":"+";var a=Math.abs(t);var i=A(Math.floor(a/60),2);var o=A(a%60,2);return e+i+r+o}var N=function t(n,r){switch(n){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}};var F=function t(n,r){switch(n){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}};var R=function t(n,r){var e=n.match(/(P+)(p+)?/)||[];var a=e[1];var i=e[2];if(!i){return N(n,r)}var o;switch(a){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",N(a,r)).replace("{{time}}",F(i,r))};var X={p:F,P:R};var G=["D","DD"];var Q=["YY","YYYY"];function z(t){return G.indexOf(t)!==-1}function B(t){return Q.indexOf(t)!==-1}function C(t,n,r){if(t==="YYYY"){throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(t==="YY"){throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(t==="D"){throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(t==="DD"){throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}}var H={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var U=function t(n,r,e){var a;var i=H[n];if(typeof i==="string"){a=i}else if(r===1){a=i.one}else{a=i.other.replace("{{count}}",r.toString())}if(e!==null&&e!==void 0&&e.addSuffix){if(e.comparison&&e.comparison>0){return"in "+a}else{return a+" ago"}}return a};function _(t){return function(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=n.width?String(n.width):t.defaultWidth;var e=t.formats[r]||t.formats[t.defaultWidth];return e}}var I={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"};var $={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var J={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var Z={date:_({formats:I,defaultWidth:"full"}),time:_({formats:$,defaultWidth:"full"}),dateTime:_({formats:J,defaultWidth:"full"})};var V={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var K=function t(n,r,e,a){return V[n]};function tt(t){return function(n,r){var e=r!==null&&r!==void 0&&r.context?String(r.context):"standalone";var a;if(e==="formatting"&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth;var o=r!==null&&r!==void 0&&r.width?String(r.width):i;a=t.formattingValues[o]||t.formattingValues[i]}else{var u=t.defaultWidth;var c=r!==null&&r!==void 0&&r.width?String(r.width):t.defaultWidth;a=t.values[c]||t.values[u]}var s=t.argumentCallback?t.argumentCallback(n):n;return a[s]}}var nt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]};var rt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]};var et={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]};var at={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]};var it={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}};var ot={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};var ut=function t(n,r){var e=Number(n);var a=e%100;if(a>20||a<10){switch(a%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}}return e+"th"};var ct={ordinalNumber:ut,era:tt({values:nt,defaultWidth:"wide"}),quarter:tt({values:rt,defaultWidth:"wide",argumentCallback:function t(n){return n-1}}),month:tt({values:et,defaultWidth:"wide"}),day:tt({values:at,defaultWidth:"wide"}),dayPeriod:tt({values:it,defaultWidth:"wide",formattingValues:ot,defaultFormattingWidth:"wide"})};function st(t){return function(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var e=r.width;var a=e&&t.matchPatterns[e]||t.matchPatterns[t.defaultMatchWidth];var i=n.match(a);if(!i){return null}var o=i[0];var u=e&&t.parsePatterns[e]||t.parsePatterns[t.defaultParseWidth];var c=Array.isArray(u)?ft(u,(function(t){return t.test(o)})):dt(u,(function(t){return t.test(o)}));var s;s=t.valueCallback?t.valueCallback(c):c;s=r.valueCallback?r.valueCallback(s):s;var d=n.slice(o.length);return{value:s,rest:d}}}function dt(t,n){for(var r in t){if(t.hasOwnProperty(r)&&n(t[r])){return r}}return undefined}function ft(t,n){for(var r=0;r<t.length;r++){if(n(t[r])){return r}}return undefined}function vt(t){return function(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var e=n.match(t.matchPattern);if(!e)return null;var a=e[0];var i=n.match(t.parsePattern);if(!i)return null;var o=t.valueCallback?t.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var u=n.slice(a.length);return{value:o,rest:u}}}var lt=/^(\d+)(th|st|nd|rd)?/i;var ht=/\d+/i;var mt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i};var wt={any:[/^b/i,/^(a|c)/i]};var bt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i};var gt={any:[/1/i,/2/i,/3/i,/4/i]};var yt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i};var pt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]};var Mt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i};var St={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]};var xt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i};var Et={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};var Pt={ordinalNumber:vt({matchPattern:lt,parsePattern:ht,valueCallback:function t(n){return parseInt(n,10)}}),era:st({matchPatterns:mt,defaultMatchWidth:"wide",parsePatterns:wt,defaultParseWidth:"any"}),quarter:st({matchPatterns:bt,defaultMatchWidth:"wide",parsePatterns:gt,defaultParseWidth:"any",valueCallback:function t(n){return n+1}}),month:st({matchPatterns:yt,defaultMatchWidth:"wide",parsePatterns:pt,defaultParseWidth:"any"}),day:st({matchPatterns:Mt,defaultMatchWidth:"wide",parsePatterns:St,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:xt,defaultMatchWidth:"any",parsePatterns:Et,defaultParseWidth:"any"})};var Dt={code:"en-US",formatDistance:U,formatLong:Z,formatRelative:K,localize:ct,match:Pt,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Ot=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;var jt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;var At=/^'([^]*?)'?$/;var qt=/''/g;var Wt=/[a-zA-Z]/;function Tt(t,n,r){var e,a,u,s,d,l,h,b,g,y,p,M,S,x,E,P,D,O;o(2,arguments);var j=String(n);var A=f();var q=(e=(a=r===null||r===void 0?void 0:r.locale)!==null&&a!==void 0?a:A.locale)!==null&&e!==void 0?e:Dt;var W=i((u=(s=(d=(l=r===null||r===void 0?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r===null||r===void 0?void 0:(h=r.locale)===null||h===void 0?void 0:(b=h.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:A.firstWeekContainsDate)!==null&&s!==void 0?s:(g=A.locale)===null||g===void 0?void 0:(y=g.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&u!==void 0?u:1);if(!(W>=1&&W<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var k=i((p=(M=(S=(x=r===null||r===void 0?void 0:r.weekStartsOn)!==null&&x!==void 0?x:r===null||r===void 0?void 0:(E=r.locale)===null||E===void 0?void 0:(P=E.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&S!==void 0?S:A.weekStartsOn)!==null&&M!==void 0?M:(D=A.locale)===null||D===void 0?void 0:(O=D.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&p!==void 0?p:0);if(!(k>=0&&k<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}if(!q.localize){throw new RangeError("locale must contain localize property")}if(!q.formatLong){throw new RangeError("locale must contain formatLong property")}var Y=c(t);if(!m(Y)){throw new RangeError("Invalid time value")}var L=v(Y);var N=w(Y,L);var F={firstWeekContainsDate:W,weekStartsOn:k,locale:q,_originalDate:Y};var R=j.match(jt).map((function(t){var n=t[0];if(n==="p"||n==="P"){var r=X[n];return r(t,q.formatLong)}return t})).join("").match(Ot).map((function(e){if(e==="''"){return"'"}var a=e[0];if(a==="'"){return kt(e)}var i=T[a];if(i){if(!(r!==null&&r!==void 0&&r.useAdditionalWeekYearTokens)&&B(e)){C(e,n,String(t))}if(!(r!==null&&r!==void 0&&r.useAdditionalDayOfYearTokens)&&z(e)){C(e,n,String(t))}return i(N,e,q.localize,F)}if(a.match(Wt)){throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`")}return e})).join("");return R}function kt(t){var n=t.match(At);if(!n){return t}return n[1].replace(qt,"'")}var Yt={defaultAmount:0,defaultCurrency:"USD",defaultPrecision:2};var Lt={globalLocale:"en-US",globalFormat:"$0,0.00",globalRoundingMode:"HALF_EVEN",globalFormatRoundingMode:"HALF_AWAY_FROM_ZERO",globalExchangeRatesApi:{endpoint:undefined,headers:undefined,propertyPath:undefined}};function Nt(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Nt=function(t){return typeof t}}else{Nt=function(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Nt(t)}function Ft(t){return Rt(t)||Xt(t)||Gt(t)||zt()}function Rt(t){if(Array.isArray(t))return t}function Xt(t){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function Gt(t,n){if(!t)return;if(typeof t==="string")return Qt(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor)r=t.constructor.name;if(r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qt(t,n)}function Qt(t,n){if(n==null||n>t.length)n=t.length;for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}function zt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Bt={normalizePrecision:function t(n){var r=n.reduce((function(t,n){return Math.max(t.getPrecision(),n.getPrecision())}));return n.map((function(t){return t.getPrecision()!==r?t.convertPrecision(r):t}))},minimum:function t(n){var r=Ft(n),e=r[0],a=r.slice(1);var i=e;a.forEach((function(t){i=i.lessThan(t)?i:t}));return i},maximum:function t(n){var r=Ft(n),e=r[0],a=r.slice(1);var i=e;a.forEach((function(t){i=i.greaterThan(t)?i:t}));return i}};function Ct(t){return!isNaN(parseInt(t))&&isFinite(t)}function Ht(t){return Ct(t)&&t<=100&&t>=0}function Ut(t){return t.length>0&&t.every((function(t){return t>=0}))&&t.some((function(t){return t>0}))}function _t(t){return t%2===0}function It(t){return Ct(t)&&!Number.isInteger(t)}function $t(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var n=t.toString();if(n.indexOf("e-")>0){return parseInt(n.split("e-")[1])}else{var r=n.split(".")[1];return r?r.length:0}}function Jt(t){return Math.abs(t)%1===.5}function Zt(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return new Promise((function(r,e){var a=Object.assign(new XMLHttpRequest,{onreadystatechange:function t(){if(a.readyState===4){if(a.status>=200&&a.status<400)r(JSON.parse(a.responseText));else e(new Error(a.statusText))}},onerror:function t(){e(new Error("Network error"))}});a.open("GET",t,true);Vt(a,n.headers);a.send()}))}function Vt(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};for(var r in n){t.setRequestHeader(r,n[r])}return t}function Kt(t){return typeof t==="undefined"}function tn(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:".";var r={};Object.entries(t).forEach((function(t){if(Nt(t[1])==="object"){var e=tn(t[1]);Object.entries(e).forEach((function(e){r[t[0]+n+e[0]]=e[1]}))}else{r[t[0]]=t[1]}}));return r}function nn(t){return Boolean(t)&&(Nt(t)==="object"||typeof t==="function")&&typeof t.then==="function"}function rn(){var t=function t(n,r){var e=function t(n){return Math.pow(10,$t(n))};var a=Math.max(e(n),e(r));return Math.round(n*a)*Math.round(r*a)/(a*a)};var n={HALF_ODD:function t(n){var r=Math.round(n);return Jt(n)?_t(r)?r-1:r:r},HALF_EVEN:function t(n){var r=Math.round(n);return Jt(n)?_t(r)?r:r-1:r},HALF_UP:function t(n){return Math.round(n)},HALF_DOWN:function t(n){return Jt(n)?Math.floor(n):Math.round(n)},HALF_TOWARDS_ZERO:function t(n){return Jt(n)?Math.sign(n)*Math.floor(Math.abs(n)):Math.round(n)},HALF_AWAY_FROM_ZERO:function t(n){return Jt(n)?Math.sign(n)*Math.ceil(Math.abs(n)):Math.round(n)},DOWN:function t(n){return Math.floor(n)}};return{add:function t(n,r){return n+r},subtract:function t(n,r){return n-r},multiply:function n(r,e){return It(r)||It(e)?t(r,e):r*e},divide:function t(n,r){return n/r},modulo:function t(n,r){return n%r},round:function t(r){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"HALF_EVEN";return n[e](r)}}}var en=rn();function an(t){var n=/^(?:(\$|USD)?0(?:(,)0)?(\.)?(0+)?|0(?:(,)0)?(\.)?(0+)?\s?(dollar)?)$/gm.exec(t);return{getMatches:function t(){return n!==null?n.slice(1).filter((function(t){return!Kt(t)})):[]},getMinimumFractionDigits:function t(){var n=function t(n){return n==="."};return!Kt(this.getMatches().find(n))?this.getMatches()[en.add(this.getMatches().findIndex(n),1)].split("").length:0},getCurrencyDisplay:function t(){var n={USD:"code",dollar:"name",$:"symbol"};return n[this.getMatches().find((function(t){return t==="USD"||t==="dollar"||t==="$"}))]},getStyle:function t(){return!Kt(this.getCurrencyDisplay(this.getMatches()))?"currency":"decimal"},getUseGrouping:function t(){return!Kt(this.getMatches().find((function(t){return t===","})))}}}function on(t){var n=function t(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var r=arguments.length>1?arguments[1]:undefined;for(var e in r){n=n.replace("{{".concat(e,"}}"),r[e])}return n};var r=function r(e,a){return Zt(n(t.endpoint,{from:e,to:a}),{headers:t.headers})};return{getExchangeRate:function e(a,i){return(nn(t.endpoint)?t.endpoint:r(a,i)).then((function(r){return tn(r)[n(t.propertyPath,{from:a,to:i})]}))}}}function un(t,n){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Error;if(!t)throw new r(n)}function cn(t){un(Ht(t),"You must provide a numeric value between 0 and 100.",RangeError)}function sn(t){un(Ut(t),"You must provide a non-empty array of numeric values greater than 0.",TypeError)}function dn(t){un(Number.isInteger(t),"You must provide an integer.",TypeError)}var fn=rn();var vn=function t(n){var r=Object.assign({},{amount:t.defaultAmount,currency:t.defaultCurrency,precision:t.defaultPrecision},n),e=r.amount,a=r.currency,i=r.precision;dn(e);dn(i);var o=t.globalLocale,u=t.globalFormat,c=t.globalRoundingMode,s=t.globalFormatRoundingMode;var d=Object.assign({},t.globalExchangeRatesApi);var f=function n(r){var o=Object.assign({},Object.assign({},{amount:e,currency:a,precision:i},r),Object.assign({},{locale:this.locale},r));return Object.assign(t({amount:o.amount,currency:o.currency,precision:o.precision}),{locale:o.locale})};var v=function t(n){un(this.hasSameCurrency(n),"You must provide a Dinero instance with the same currency.",TypeError)};return{getAmount:function t(){return e},getCurrency:function t(){return a},getLocale:function t(){return this.locale||o},setLocale:function t(n){return f.call(this,{locale:n})},getPrecision:function t(){return i},convertPrecision:function t(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:s;dn(n);var e=this.getPrecision();var a=n>e;var i=a?fn.multiply:fn.divide;var o=a?[n,e]:[e,n];var u=Math.pow(10,fn.subtract.apply(fn,o));return f.call(this,{amount:fn.round(i(this.getAmount(),u),r),precision:n})},add:function n(r){v.call(this,r);var e=t.normalizePrecision([this,r]);return f.call(this,{amount:fn.add(e[0].getAmount(),e[1].getAmount()),precision:e[0].getPrecision()})},subtract:function n(r){v.call(this,r);var e=t.normalizePrecision([this,r]);return f.call(this,{amount:fn.subtract(e[0].getAmount(),e[1].getAmount()),precision:e[0].getPrecision()})},multiply:function t(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:c;return f.call(this,{amount:fn.round(fn.multiply(this.getAmount(),n),r)})},divide:function t(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:c;return f.call(this,{amount:fn.round(fn.divide(this.getAmount(),n),r)})},percentage:function t(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:c;cn(n);return this.multiply(fn.divide(n,100),r)},allocate:function t(n){var r=this;sn(n);var e=n.reduce((function(t,n){return fn.add(t,n)}));var a=this.getAmount();var i=n.map((function(t){var n=Math.floor(fn.divide(fn.multiply(r.getAmount(),t),e));a=fn.subtract(a,n);return f.call(r,{amount:n})}));var o=0;while(a>0){if(n[o]>0){i[o]=i[o].add(f.call(this,{amount:1}));a=fn.subtract(a,1)}o+=1}return i},convert:function t(n){var r=this;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},a=e.endpoint,i=a===void 0?d.endpoint:a,o=e.propertyPath,u=o===void 0?d.propertyPath||"rates.{{to}}":o,s=e.headers,v=s===void 0?d.headers:s,l=e.roundingMode,h=l===void 0?c:l;var m=Object.assign({},{endpoint:i,propertyPath:u,headers:v,roundingMode:h});return on(m).getExchangeRate(this.getCurrency(),n).then((function(t){un(!Kt(t),'No rate was found for the destination currency "'.concat(n,'".'),TypeError);return f.call(r,{amount:fn.round(fn.multiply(r.getAmount(),parseFloat(t)),m.roundingMode),currency:n})}))},equalsTo:function t(n){return this.hasSameAmount(n)&&this.hasSameCurrency(n)},lessThan:function n(r){v.call(this,r);var e=t.normalizePrecision([this,r]);return e[0].getAmount()<e[1].getAmount()},lessThanOrEqual:function n(r){v.call(this,r);var e=t.normalizePrecision([this,r]);return e[0].getAmount()<=e[1].getAmount()},greaterThan:function n(r){v.call(this,r);var e=t.normalizePrecision([this,r]);return e[0].getAmount()>e[1].getAmount()},greaterThanOrEqual:function n(r){v.call(this,r);var e=t.normalizePrecision([this,r]);return e[0].getAmount()>=e[1].getAmount()},isZero:function t(){return this.getAmount()===0},isPositive:function t(){return this.getAmount()>=0},isNegative:function t(){return this.getAmount()<0},hasSubUnits:function t(){return fn.modulo(this.getAmount(),Math.pow(10,i))!==0},hasCents:function t(){return fn.modulo(this.getAmount(),Math.pow(10,i))!==0},hasSameCurrency:function t(n){return this.getCurrency()===n.getCurrency()},hasSameAmount:function n(r){var e=t.normalizePrecision([this,r]);return e[0].getAmount()===e[1].getAmount()},toFormat:function t(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:u;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:s;var e=an(n);return this.toRoundedUnit(e.getMinimumFractionDigits(),r).toLocaleString(this.getLocale(),{currencyDisplay:e.getCurrencyDisplay(),useGrouping:e.getUseGrouping(),minimumFractionDigits:e.getMinimumFractionDigits(),style:e.getStyle(),currency:this.getCurrency()})},toUnit:function t(){return fn.divide(this.getAmount(),Math.pow(10,i))},toRoundedUnit:function t(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:s;var e=Math.pow(10,n);return fn.divide(fn.round(fn.multiply(this.toUnit(),e),r),e)},toObject:function t(){return{amount:e,currency:a,precision:i}},toJSON:function t(){return this.toObject()}}};var ln=Object.assign(vn,Yt,Lt,Bt);function hn(t,n=true){if(!t)t=0;function r(t){const r=n?"$0,0.00":"0,0.00";return ln({amount:t,currency:"USD"}).toFormat(r)}return t<0?`(${r(-t)})`:r(t)}function mn(t){if(!t)return"";const n=new Date(t);return Tt(n,"MMM d, yyyy")}function wn(t){if(!t)return"";const n=new Date(t);return Tt(n,"h:mmaaa")}const bn=":host{display:block}";const gn=class{constructor(n){t(this,n);this.accountId=undefined;this.auth={};this.payments=[]}requestPropsChanged(){this.fetchData()}fetchData(){const t=this.accountId;const n=`account/${t}/payments`;e(this.auth.token).get(n).then((t=>{const n=t.data.map((t=>new a(t)));this.payments=n}))}render(){return n(r,null,n("table",{class:"justifi-table"},n("thead",null,n("tr",null,n("th",{scope:"col",title:"The date and time each payment was made"},"Made on"),n("th",{scope:"col",title:"The dollar amount of each payment"},"Amount"),n("th",{scope:"col"},"Account"),n("th",{scope:"col"},"Description"),n("th",{scope:"col"},"Payment ID"),n("th",{scope:"col"},"Cardholder"),n("th",{scope:"col"},"Payment Method"),n("th",{scope:"col"},"Status"))),n("tbody",null,this.payments.map((t=>{var r,e,a,i;n("tr",null,n("td",null,n("div",null,mn(t.created_at)),n("div",null,wn(t.created_at))),n("td",null,hn(t.amount)),n("td",null,t.account_id),n("td",null,t.description),n("td",null,t.id),n("td",null,(e=(r=t.payment_method)===null||r===void 0?void 0:r.card)===null||e===void 0?void 0:e.name),n("td",null,(i=(a=t.payment_method)===null||a===void 0?void 0:a.card)===null||i===void 0?void 0:i.acct_last_four),n("td",null,t.status))})))))}static get watchers(){return{accountId:["requestPropsChanged"],auth:["requestPropsChanged"]}}};gn.style=bn;export{gn as justifi_payments_list};
2
- //# sourceMappingURL=p-f30d1567.entry.js.map