@justifi/webcomponents 6.4.0 → 6.4.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 (334) hide show
  1. package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +2 -2
  2. package/dist/cjs/{check-pkg-version-BO_NdUB_.js → check-pkg-version-BVyea38i.js} +1 -1
  3. package/dist/cjs/custom-popper.cjs.entry.js +2 -2
  4. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  5. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  6. package/dist/cjs/form-control-number-masked_3.cjs.entry.js +2 -2
  7. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  8. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  9. package/dist/cjs/form-control-select_3.cjs.entry.js +2 -2
  10. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  11. package/dist/cjs/{justifi-bank-account-billing-form-simple_9.cjs.entry.js → internal-tokenize-payment-method_7.cjs.entry.js} +254 -138
  12. package/dist/cjs/{justifi-apple-pay_8.cjs.entry.js → justifi-apple-pay_7.cjs.entry.js} +3 -258
  13. package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +147 -0
  14. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
  16. package/dist/cjs/justifi-checkout.cjs.entry.js +4 -4
  17. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
  18. package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
  19. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
  20. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  21. package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
  22. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  23. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  24. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
  25. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  26. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  27. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
  28. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  29. package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
  30. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
  31. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  32. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
  33. package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
  34. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +15 -0
  35. package/dist/cjs/loader.cjs.js +1 -1
  36. package/dist/cjs/{package-CvqCkafe.js → package-keJMf4WX.js} +1 -1
  37. package/dist/cjs/webcomponents.cjs.js +1 -1
  38. package/dist/collection/collection-manifest.json +1 -0
  39. package/dist/collection/components/checkout/checkout.js +2 -2
  40. package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +626 -0
  41. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +2 -422
  42. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  43. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  44. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  45. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  46. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  47. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  48. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  49. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  50. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  51. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  52. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  53. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  54. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  55. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  56. package/dist/docs.json +538 -223
  57. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  58. package/dist/esm/{badge-BkjjtNUQ.js → badge-Bgosx-DC.js} +1 -1
  59. package/dist/esm/bank-account-document-form-inputs_6.entry.js +5 -5
  60. package/dist/esm/bank-account-form.entry.js +2 -2
  61. package/dist/esm/{business-additional-questions-schema-hZ6O6Bs0.js → business-additional-questions-schema-QFJEOHF5.js} +1 -1
  62. package/dist/esm/business-details-core.entry.js +3 -3
  63. package/dist/esm/{business-identity-schema-DJvIo0oa.js → business-identity-schema-DB_Hhjld.js} +1 -1
  64. package/dist/esm/{button-DHljyr0K.js → button-DBmjN7Ra.js} +1 -1
  65. package/dist/esm/card-form.entry.js +2 -2
  66. package/dist/esm/{check-pkg-version-B6jUXpX3.js → check-pkg-version-BZb5Z6DW.js} +1 -1
  67. package/dist/esm/checkouts-list-core.entry.js +5 -5
  68. package/dist/esm/{checkouts-table-Dn1sFyZs.js → checkouts-table-lgbZpF1o.js} +2 -2
  69. package/dist/esm/custom-popper.entry.js +2 -2
  70. package/dist/esm/form-alert_5.entry.js +1 -1
  71. package/dist/esm/form-control-checkbox.entry.js +3 -3
  72. package/dist/esm/form-control-date.entry.js +2 -2
  73. package/dist/esm/{form-control-error-text-Cje0veu2.js → form-control-error-text-B5LSdUXI.js} +1 -1
  74. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  75. package/dist/esm/{form-control-help-text-ClJnecm3.js → form-control-help-text-BK9RNOf-.js} +1 -1
  76. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  77. package/dist/esm/form-control-monetary.entry.js +5 -5
  78. package/dist/esm/form-control-number-masked_3.entry.js +4 -4
  79. package/dist/esm/form-control-number.entry.js +5 -5
  80. package/dist/esm/form-control-radio.entry.js +3 -3
  81. package/dist/esm/form-control-select_3.entry.js +4 -4
  82. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  83. package/dist/esm/{header-1-uiFiNrVs.js → header-1-CPF3S2CC.js} +1 -1
  84. package/dist/esm/{header-3-BVYYTpLc.js → header-3-Cah707hu.js} +1 -1
  85. package/dist/esm/hidden-input_2.entry.js +7 -7
  86. package/dist/esm/{insurance-state-iJs0LRg_.js → insurance-state-DRe0g_wf.js} +1 -1
  87. package/dist/esm/internal-tokenize-payment-method_7.entry.js +460 -0
  88. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +6 -6
  89. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +2 -2
  90. package/dist/esm/justifi-additional-statement_8.entry.js +1 -1
  91. package/dist/esm/{justifi-apple-pay_8.entry.js → justifi-apple-pay_7.entry.js} +9 -263
  92. package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +143 -0
  93. package/dist/esm/justifi-business-details.entry.js +4 -4
  94. package/dist/esm/justifi-business-form.entry.js +9 -9
  95. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  96. package/dist/esm/justifi-checkout.entry.js +5 -5
  97. package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
  98. package/dist/esm/justifi-checkouts-list.entry.js +5 -5
  99. package/dist/esm/justifi-details.entry.js +2 -2
  100. package/dist/esm/justifi-dispute-management.entry.js +2 -2
  101. package/dist/esm/justifi-dispute-notification_3.entry.js +5 -5
  102. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
  103. package/dist/esm/justifi-order-terminals.entry.js +4 -4
  104. package/dist/esm/justifi-owner-form_3.entry.js +4 -4
  105. package/dist/esm/justifi-payment-details.entry.js +4 -4
  106. package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
  107. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  108. package/dist/esm/justifi-payment-transactions-list.entry.js +5 -5
  109. package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
  110. package/dist/esm/justifi-payments-list.entry.js +6 -6
  111. package/dist/esm/justifi-payout-details.entry.js +4 -4
  112. package/dist/esm/justifi-payout-transactions-list.entry.js +5 -5
  113. package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
  114. package/dist/esm/justifi-payouts-list.entry.js +6 -6
  115. package/dist/esm/justifi-refund-payment.entry.js +5 -5
  116. package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
  117. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
  118. package/dist/esm/justifi-skeleton.entry.js +3 -3
  119. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +1 -1
  120. package/dist/esm/justifi-terminal-orders-list.entry.js +5 -5
  121. package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
  122. package/dist/esm/justifi-terminals-list.entry.js +5 -5
  123. package/dist/esm/justifi-tokenize-payment-method.entry.js +13 -0
  124. package/dist/esm/loader.js +1 -1
  125. package/dist/esm/{package-BeukOaOq.js → package-C19Xk7z3.js} +1 -1
  126. package/dist/esm/pagination-menu.entry.js +1 -1
  127. package/dist/esm/{parts-Dj_zevuD.js → parts-wtuY7MT2.js} +1 -1
  128. package/dist/esm/payment-details-core.entry.js +5 -5
  129. package/dist/esm/payment-method-option.entry.js +1 -1
  130. package/dist/esm/payments-list-core.entry.js +6 -6
  131. package/dist/esm/{payments-status-DK2me5T2.js → payments-status-Dypl6WFL.js} +1 -1
  132. package/dist/esm/{payments-table-DxRdl7-E.js → payments-table-CK9BRZEz.js} +2 -2
  133. package/dist/esm/payout-details-core.entry.js +6 -6
  134. package/dist/esm/payouts-list-core.entry.js +6 -6
  135. package/dist/esm/{payouts-status-BfEM6F8q.js → payouts-status-hTCBgpLW.js} +1 -1
  136. package/dist/esm/{payouts-table-C2binjIW.js → payouts-table-Dd8IDBBX.js} +2 -2
  137. package/dist/esm/{schema-validations-C0qp3ZJ5.js → schema-validations-B5sfox_4.js} +1 -1
  138. package/dist/esm/{skeleton-DdynMBnt.js → skeleton-BmRZRW5K.js} +1 -1
  139. package/dist/esm/{spinner-BRMSkfVc.js → spinner-tU4D9iak.js} +1 -1
  140. package/dist/esm/{table-DYlsfkCm.js → table-Cjq1A6mO.js} +2 -2
  141. package/dist/esm/table-filters-menu.entry.js +2 -2
  142. package/dist/esm/terminal-orders-list-core.entry.js +5 -5
  143. package/dist/esm/{terminal-orders-table-zf0ASRCr.js → terminal-orders-table-CMWBIr9y.js} +2 -2
  144. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  145. package/dist/esm/terminals-list-core.entry.js +5 -5
  146. package/dist/esm/{terminals-table-DNUTk3gi.js → terminals-table-D9okETJr.js} +2 -2
  147. package/dist/esm/{utils-DUz-H1tG.js → utils-BX7Rjm1M.js} +1 -1
  148. package/dist/esm/webcomponents.js +1 -1
  149. package/dist/module/Refund.js +1 -1
  150. package/dist/module/additional-statement.js +1 -1
  151. package/dist/module/billing-form-schema.js +1 -1
  152. package/dist/module/business-additional-questions-form-step.js +1 -1
  153. package/dist/module/business-additional-questions-schema.js +1 -1
  154. package/dist/module/business-address-schema.js +1 -1
  155. package/dist/module/business-bank-account-form-step-core.js +1 -1
  156. package/dist/module/business-bank-account-form-step.js +1 -1
  157. package/dist/module/business-core-info-form-step.js +1 -1
  158. package/dist/module/business-owners-form-step.js +1 -1
  159. package/dist/module/business-representative-form-step.js +1 -1
  160. package/dist/module/business-terms-conditions-form-step.js +1 -1
  161. package/dist/module/button.js +1 -1
  162. package/dist/module/cancellation-policy.js +1 -1
  163. package/dist/module/custom-popper2.js +2 -2
  164. package/dist/module/customer-details.js +1 -1
  165. package/dist/module/dispute-response-actions.js +1 -1
  166. package/dist/module/dispute-response.js +1 -1
  167. package/dist/module/duplicate-charge.js +1 -1
  168. package/dist/module/electronic-evidence.js +1 -1
  169. package/dist/module/form-control-file-v22.js +1 -1
  170. package/dist/module/form-control-file2.js +2 -2
  171. package/dist/module/form-control-monetary2.js +2 -2
  172. package/dist/module/form-control-number-masked2.js +2 -2
  173. package/dist/module/form-control-number.js +2 -2
  174. package/dist/module/form-control-radio2.js +2 -2
  175. package/dist/module/form-control-text2.js +2 -2
  176. package/dist/module/form-control-textarea2.js +2 -2
  177. package/dist/module/get-business.js +1 -1
  178. package/dist/module/get-payment-details.js +1 -1
  179. package/dist/module/get-payout-csv.js +1 -1
  180. package/dist/module/get-subaccounts.js +1 -1
  181. package/dist/module/hidden-input2.js +1 -1
  182. package/dist/module/iframe-input2.js +3 -3
  183. package/dist/module/internal-tokenize-payment-method.d.ts +11 -0
  184. package/dist/module/internal-tokenize-payment-method.js +6 -0
  185. package/dist/module/{tokenize-payment-method.js → internal-tokenize-payment-method2.js} +8 -8
  186. package/dist/module/justifi-business-details.js +1 -1
  187. package/dist/module/justifi-business-form.js +1 -1
  188. package/dist/module/justifi-button2.js +1 -1
  189. package/dist/module/justifi-checkout.js +37 -37
  190. package/dist/module/justifi-checkouts-list.js +1 -1
  191. package/dist/module/justifi-dispute-management.js +1 -1
  192. package/dist/module/justifi-gross-payment-chart.js +1 -1
  193. package/dist/module/justifi-header2.js +1 -1
  194. package/dist/module/justifi-order-terminals.js +2 -2
  195. package/dist/module/justifi-payment-details.js +1 -1
  196. package/dist/module/justifi-payment-provisioning.js +1 -1
  197. package/dist/module/justifi-payment-transactions-list.js +1 -1
  198. package/dist/module/justifi-payments-list.js +1 -1
  199. package/dist/module/justifi-payout-details.js +1 -1
  200. package/dist/module/justifi-payout-transactions-list.js +1 -1
  201. package/dist/module/justifi-payouts-list.js +1 -1
  202. package/dist/module/justifi-refund-payment.js +1 -1
  203. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  204. package/dist/module/justifi-skeleton.js +1 -1
  205. package/dist/module/justifi-terminal-orders-list.js +1 -1
  206. package/dist/module/justifi-terminals-list.js +1 -1
  207. package/dist/module/justifi-tokenize-payment-method.js +154 -1
  208. package/dist/module/legal-address-form-step.js +1 -1
  209. package/dist/module/modular-checkout.js +1 -1
  210. package/dist/module/package.js +1 -1
  211. package/dist/module/parts.js +1 -1
  212. package/dist/module/payment-provisioning-actions.js +1 -1
  213. package/dist/module/payment-provisioning-core.js +1 -1
  214. package/dist/module/payouts-list-core2.js +1 -1
  215. package/dist/module/plaid-payment-method.js +1 -1
  216. package/dist/module/product-or-service.js +1 -1
  217. package/dist/module/refund-policy.js +1 -1
  218. package/dist/module/schema-validations.js +1 -1
  219. package/dist/module/shipping-details.js +1 -1
  220. package/dist/module/utils4.js +1 -1
  221. package/dist/types/components/checkout/checkout.d.ts +1 -1
  222. package/dist/types/components/tokenize-payment-method/internal-tokenize-payment-method.d.ts +60 -0
  223. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +0 -47
  224. package/dist/types/components.d.ts +93 -54
  225. package/dist/webcomponents/{p-98508ff0.entry.js → p-00e0a745.entry.js} +1 -1
  226. package/dist/webcomponents/{p-e050b917.entry.js → p-087a81ff.entry.js} +1 -1
  227. package/dist/webcomponents/{p-56d9a8f1.entry.js → p-0ce046fd.entry.js} +1 -1
  228. package/dist/webcomponents/{p-62cdb2b1.entry.js → p-1193a1ac.entry.js} +1 -1
  229. package/dist/webcomponents/{p-e34a6e5f.entry.js → p-14d2f6c6.entry.js} +1 -1
  230. package/dist/webcomponents/{p-20ccd0a4.entry.js → p-1eae32ac.entry.js} +1 -1
  231. package/dist/webcomponents/{p-198a6ae3.entry.js → p-1edec396.entry.js} +1 -1
  232. package/dist/webcomponents/{p-065eafc5.entry.js → p-20a8b0c0.entry.js} +1 -1
  233. package/dist/webcomponents/{p-3cb3a241.entry.js → p-22f74666.entry.js} +1 -1
  234. package/dist/webcomponents/p-2769f945.entry.js +1 -0
  235. package/dist/webcomponents/{p-89f1448c.entry.js → p-2cd5733e.entry.js} +1 -1
  236. package/dist/webcomponents/p-30f61f44.entry.js +1 -0
  237. package/dist/webcomponents/{p-85bbadaf.entry.js → p-37a55eaf.entry.js} +1 -1
  238. package/dist/webcomponents/p-3c38cec5.entry.js +1 -0
  239. package/dist/webcomponents/p-40d3a480.entry.js +1 -0
  240. package/dist/webcomponents/{p-82b13550.entry.js → p-45936490.entry.js} +1 -1
  241. package/dist/webcomponents/{p-abf2073d.entry.js → p-4761e0aa.entry.js} +1 -1
  242. package/dist/webcomponents/{p-91f22211.entry.js → p-4c3eea2b.entry.js} +1 -1
  243. package/dist/webcomponents/{p-27acf7cc.entry.js → p-4dcbc0af.entry.js} +1 -1
  244. package/dist/webcomponents/{p-46d7ca2f.entry.js → p-4e23116c.entry.js} +4 -4
  245. package/dist/webcomponents/{p-2976c54e.entry.js → p-5464b902.entry.js} +1 -1
  246. package/dist/webcomponents/{p-32af1830.entry.js → p-54facfdc.entry.js} +1 -1
  247. package/dist/webcomponents/{p-0bd7b871.entry.js → p-56a8e07d.entry.js} +1 -1
  248. package/dist/webcomponents/{p-52cb10a7.entry.js → p-58ae4f9e.entry.js} +1 -1
  249. package/dist/webcomponents/{p-220420bb.entry.js → p-5d1fb433.entry.js} +1 -1
  250. package/dist/webcomponents/p-5f81a3d6.entry.js +1 -0
  251. package/dist/webcomponents/{p-9d6ceb95.entry.js → p-696a5c8e.entry.js} +1 -1
  252. package/dist/webcomponents/p-6b6003d2.entry.js +1 -0
  253. package/dist/webcomponents/{p-590290a2.entry.js → p-716ddc27.entry.js} +1 -1
  254. package/dist/webcomponents/{p-9633fbb8.entry.js → p-7218c312.entry.js} +1 -1
  255. package/dist/webcomponents/{p-83cd698c.entry.js → p-75c65531.entry.js} +1 -1
  256. package/dist/webcomponents/{p-d217f6ea.entry.js → p-800660f2.entry.js} +1 -1
  257. package/dist/webcomponents/p-84e2bd93.entry.js +1 -0
  258. package/dist/webcomponents/{p-6677f09f.entry.js → p-8681f258.entry.js} +1 -1
  259. package/dist/webcomponents/{p-5c847406.entry.js → p-87a2a830.entry.js} +1 -1
  260. package/dist/webcomponents/{p-e788ecc9.entry.js → p-89518b26.entry.js} +1 -1
  261. package/dist/webcomponents/{p-89ff96ef.entry.js → p-95593721.entry.js} +1 -1
  262. package/dist/webcomponents/{p-e29bdbc2.entry.js → p-9d914297.entry.js} +1 -1
  263. package/dist/webcomponents/{p-5eb2698f.entry.js → p-9f70ce93.entry.js} +1 -1
  264. package/dist/webcomponents/p-B-0a8Xqm.js +1 -0
  265. package/dist/webcomponents/{p-D2DVDmwd.js → p-BNqo3kt0.js} +1 -1
  266. package/dist/webcomponents/{p-B-7rLJIB.js → p-BTzt8N0l.js} +1 -1
  267. package/dist/webcomponents/{p-C9Ho60F2.js → p-BitGlMSc.js} +1 -1
  268. package/dist/webcomponents/p-Bli6WznP.js +1 -0
  269. package/dist/webcomponents/{p-DkOvNRJs.js → p-Bqlcv3ZV.js} +1 -1
  270. package/dist/webcomponents/p-BuCKkdLM.js +1 -0
  271. package/dist/webcomponents/{p-BB3MQDQq.js → p-BydKIJVC.js} +1 -1
  272. package/dist/webcomponents/p-C-2kW6Al.js +1 -0
  273. package/dist/webcomponents/p-C19Xk7z3.js +1 -0
  274. package/dist/webcomponents/{p-D8HCCl2t.js → p-CkN7DFFn.js} +1 -1
  275. package/dist/webcomponents/{p-O4_LrrnE.js → p-D1WQG4I7.js} +1 -1
  276. package/dist/webcomponents/{p-Cu1FEdFr.js → p-DOLBAxYf.js} +1 -1
  277. package/dist/webcomponents/{p-CeO5d98O.js → p-DV4RaYYL.js} +1 -1
  278. package/dist/webcomponents/{p-fDGfMEwy.js → p-DkOiS6Zr.js} +1 -1
  279. package/dist/webcomponents/{p-BVWZSqCK.js → p-KPmnq8xf.js} +1 -1
  280. package/dist/webcomponents/{p-28c28c0b.entry.js → p-a655b996.entry.js} +1 -1
  281. package/dist/webcomponents/{p-9fb66685.entry.js → p-a6e37d4a.entry.js} +1 -1
  282. package/dist/webcomponents/{p-256a95eb.entry.js → p-a8f7cf9b.entry.js} +1 -1
  283. package/dist/webcomponents/{p-8993c961.entry.js → p-ae7a027b.entry.js} +1 -1
  284. package/dist/webcomponents/{p-1414e80b.entry.js → p-aec9185f.entry.js} +1 -1
  285. package/dist/webcomponents/{p-DopgIZQg.js → p-avgjSJ1d.js} +1 -1
  286. package/dist/webcomponents/{p-06a0e2e2.entry.js → p-b07470fa.entry.js} +1 -1
  287. package/dist/webcomponents/{p-d287dea1.entry.js → p-b2f969a6.entry.js} +1 -1
  288. package/dist/webcomponents/p-b4d8a3f6.entry.js +1 -0
  289. package/dist/webcomponents/{p-q6C7btl0.js → p-bolTb61p.js} +1 -1
  290. package/dist/webcomponents/{p-58a68ad6.entry.js → p-c0198eef.entry.js} +1 -1
  291. package/dist/webcomponents/{p-2a53a095.entry.js → p-c1831747.entry.js} +1 -1
  292. package/dist/webcomponents/{p-aee79310.entry.js → p-c31fe838.entry.js} +1 -1
  293. package/dist/webcomponents/p-c3b71a1f.entry.js +1 -0
  294. package/dist/webcomponents/{p-4e90834e.entry.js → p-c7279bc6.entry.js} +1 -1
  295. package/dist/webcomponents/p-c7MCfTgE.js +1 -0
  296. package/dist/webcomponents/{p-e06327aa.entry.js → p-c8f40375.entry.js} +1 -1
  297. package/dist/webcomponents/{p-589e4fcb.entry.js → p-d182f489.entry.js} +1 -1
  298. package/dist/webcomponents/{p-728158a8.entry.js → p-d4b8274f.entry.js} +1 -1
  299. package/dist/webcomponents/{p-0214a9f4.entry.js → p-d86b8ce7.entry.js} +1 -1
  300. package/dist/webcomponents/p-dc0d3484.entry.js +1 -0
  301. package/dist/webcomponents/{p-c6edc4c9.entry.js → p-dfe68bf0.entry.js} +1 -1
  302. package/dist/webcomponents/{p-Bo278yZD.js → p-dgG_o6wN.js} +1 -1
  303. package/dist/webcomponents/{p-f02ab3fd.entry.js → p-e2e6c201.entry.js} +1 -1
  304. package/dist/webcomponents/{p-238859ef.entry.js → p-eb56ba9b.entry.js} +1 -1
  305. package/dist/webcomponents/{p-0d928de1.entry.js → p-ed55d333.entry.js} +1 -1
  306. package/dist/webcomponents/p-edcb84bf.entry.js +1 -0
  307. package/dist/webcomponents/{p-9db64da8.entry.js → p-f1af630f.entry.js} +1 -1
  308. package/dist/webcomponents/{p-6023553c.entry.js → p-f5fb1af2.entry.js} +1 -1
  309. package/dist/webcomponents/{p-79cb28bd.entry.js → p-fab28b02.entry.js} +1 -1
  310. package/dist/webcomponents/p-fda2d53b.entry.js +1 -0
  311. package/dist/webcomponents/{p-DsR5Dt9w.js → p-jTVpG8Gt.js} +1 -1
  312. package/dist/webcomponents/{p-DwLZbA7D.js → p-nrZ9yHcl.js} +1 -1
  313. package/dist/webcomponents/{p-Dj_zevuD.js → p-wtuY7MT2.js} +1 -1
  314. package/dist/webcomponents/p-zNSPsvs3.js +1 -0
  315. package/dist/webcomponents/webcomponents.esm.js +1 -1
  316. package/package.json +1 -1
  317. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +0 -342
  318. package/dist/webcomponents/p-2859a8e3.entry.js +0 -1
  319. package/dist/webcomponents/p-336b08de.entry.js +0 -1
  320. package/dist/webcomponents/p-36259848.entry.js +0 -1
  321. package/dist/webcomponents/p-6b563428.entry.js +0 -1
  322. package/dist/webcomponents/p-77884032.entry.js +0 -1
  323. package/dist/webcomponents/p-8dab7768.entry.js +0 -1
  324. package/dist/webcomponents/p-BeukOaOq.js +0 -1
  325. package/dist/webcomponents/p-C2gAiiwJ.js +0 -1
  326. package/dist/webcomponents/p-C7m-gAAM.js +0 -1
  327. package/dist/webcomponents/p-CO8ZJ0jB.js +0 -1
  328. package/dist/webcomponents/p-CgbXzEbz.js +0 -1
  329. package/dist/webcomponents/p-JvWiY69B.js +0 -1
  330. package/dist/webcomponents/p-VhOlg78I.js +0 -1
  331. package/dist/webcomponents/p-a49ca7d8.entry.js +0 -1
  332. package/dist/webcomponents/p-cdf94860.entry.js +0 -1
  333. package/dist/webcomponents/p-d8fc3996.entry.js +0 -1
  334. package/dist/webcomponents/p-de7f1479.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f,g as p,h as d,i as u,j as b,k as m,l as g}from"./p-B-7rLJIB.js";import{T as j}from"./p-CZfYo5-1.js";import{c as y,a as k}from"./p-D8HCCl2t.js";import{o as l,g as C}from"./p-DKGn-ILd.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-Dj_zevuD.js";import"./p-CgbXzEbz.js";import"./p-Cu1FEdFr.js";const S=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:j.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:j.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:j.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new a(this.checkouts,this.columns,y,k),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),l("set",(()=>{this.pagingParams={}})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get checkoutParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"a77ef0f8f5b4ddf7448815c9df38097e16a38794"},e(r,{key:"6408f3ec06f268f2f5b516fb2fe5e03dcce84bfc"},e(h,{key:"310864630e702965e885568c513d1d2d8f3805ea"},e(o,{key:"bee990fd0a1f8fbf5f21f41ce44f3d57a6bbffa6"},this.checkoutsTable.columnData.map((t=>t)))),e(c,{key:"1a5fd1a0b571205238ec365f0b9688d6abe95dc3"},e(n,{key:"df07de295c2a2b6674ed60ff55678a0f67665b15",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(f,{key:"faecb3005baf02ec425b369dcceff2de06e501eb",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(p,{key:"7d0e879b9e5595550a4cbd9c9948677106859e38",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(u,{key:"3fbdfe68348692e23333bae21fbaef261fe263d4"},e(b,{key:"4e39fd1f73d4b2f943f909fa8d640bf488fb5469"},e(m,{key:"f245bc167021ff3e1c7f139e31fe151064651dad",colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"c9129910b8ffeda06c90ffaa32832b8186687de4",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{S as checkouts_list_core}
1
+ import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f,g as p,h as d,i as u,j as m,k as b,l as g}from"./p-BTzt8N0l.js";import{T as j}from"./p-CZfYo5-1.js";import{c as k,a as y}from"./p-CkN7DFFn.js";import{o as l,g as C}from"./p-DKGn-ILd.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-wtuY7MT2.js";import"./p-B-0a8Xqm.js";import"./p-DOLBAxYf.js";const S=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:j.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:j.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:j.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new a(this.checkouts,this.columns,k,y),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),l("set",(()=>{this.pagingParams={}})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get checkoutParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"a77ef0f8f5b4ddf7448815c9df38097e16a38794"},e(r,{key:"6408f3ec06f268f2f5b516fb2fe5e03dcce84bfc"},e(h,{key:"310864630e702965e885568c513d1d2d8f3805ea"},e(o,{key:"bee990fd0a1f8fbf5f21f41ce44f3d57a6bbffa6"},this.checkoutsTable.columnData.map((t=>t)))),e(c,{key:"1a5fd1a0b571205238ec365f0b9688d6abe95dc3"},e(n,{key:"df07de295c2a2b6674ed60ff55678a0f67665b15",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(f,{key:"faecb3005baf02ec425b369dcceff2de06e501eb",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(p,{key:"7d0e879b9e5595550a4cbd9c9948677106859e38",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(u,{key:"3fbdfe68348692e23333bae21fbaef261fe263d4"},e(m,{key:"4e39fd1f73d4b2f943f909fa8d640bf488fb5469"},e(b,{key:"f245bc167021ff3e1c7f139e31fe151064651dad",colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"c9129910b8ffeda06c90ffaa32832b8186687de4",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{S as checkouts_list_core}
@@ -1 +1 @@
1
- import{r as s,c as t,h as e}from"./p-DwYM91AU.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{C as o,B as h,c as n}from"./p-B5rtFhtR.js";import{D as a}from"./p-Dj_zevuD.js";import{S as c}from"./p-BP2sTIQV.js";import{H as d}from"./p-C7m-gAAM.js";import"./p-CZfYo5-1.js";import{B as p}from"./p-XYgDHrVL.js";const m=class{constructor(e){s(this,e),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event"),this.loading=!1,this.businessProvisioned=!1,this.currentStep=0,this.country=o.USA,this.allowOptionalFields=!1,this.setBusinessProvisioned=()=>new Promise((s=>{this.getBusiness({onSuccess:t=>{const e=new h(t.data);this.businessProvisioned=n(e),this.country=e.country_of_establishment,this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:r.PROVISIONING_REQUESTED,severity:i.INFO}),s()},onError:({error:t,code:e,severity:i})=>{this.errorEvent.emit({message:t,errorCode:e,severity:i}),s()}})})),this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:e})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:p.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}handleFormCompleted(){this.postProvisioningData()}async componentWillLoad(){this.getBusiness&&await this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,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 e(c,{key:"058aaacf6c0fe49ef24e50b575247efb470c4254"},e("div",{key:"d4d329af8f8e4ccd8e7ddb2d7050797fe9ec5824",class:"row gap-3"},e(d,{key:"d2358393171311c9dd6b03ca3509e2775d784e4c",text:this.formTitle}),e("justifi-payment-provisioning-form-steps",{key:"d7a8767e276c28c2ca0413ac0d1195cb98b9fe0b",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,country:this.country,handleFormLoading:this.handleFormLoading}),e("div",{key:"37dc95f2e8785c0e2ac969294b86318d81237b0b",class:"d-flex justify-content-between align-items-center"},e("div",{key:"54e6fe77e63faf3b2ae725c349748cf9c34322b0",class:"d-flex align-items-center",part:a},this.stepCounter),e("justifi-payment-provisioning-form-buttons",{key:"aa3e1c621248f1daa48ae7e66dd76c03e0a9eb3c",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{m as justifi_payment_provisioning_core}
1
+ import{r as s,c as t,h as e}from"./p-DwYM91AU.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{C as o,B as h,c as n}from"./p-B5rtFhtR.js";import{D as a}from"./p-wtuY7MT2.js";import{S as c}from"./p-BP2sTIQV.js";import{H as d}from"./p-zNSPsvs3.js";import"./p-CZfYo5-1.js";import{B as p}from"./p-XYgDHrVL.js";const m=class{constructor(e){s(this,e),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event"),this.loading=!1,this.businessProvisioned=!1,this.currentStep=0,this.country=o.USA,this.allowOptionalFields=!1,this.setBusinessProvisioned=()=>new Promise((s=>{this.getBusiness({onSuccess:t=>{const e=new h(t.data);this.businessProvisioned=n(e),this.country=e.country_of_establishment,this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:r.PROVISIONING_REQUESTED,severity:i.INFO}),s()},onError:({error:t,code:e,severity:i})=>{this.errorEvent.emit({message:t,errorCode:e,severity:i}),s()}})})),this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:e})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:p.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}handleFormCompleted(){this.postProvisioningData()}async componentWillLoad(){this.getBusiness&&await this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,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 e(c,{key:"058aaacf6c0fe49ef24e50b575247efb470c4254"},e("div",{key:"d4d329af8f8e4ccd8e7ddb2d7050797fe9ec5824",class:"row gap-3"},e(d,{key:"d2358393171311c9dd6b03ca3509e2775d784e4c",text:this.formTitle}),e("justifi-payment-provisioning-form-steps",{key:"d7a8767e276c28c2ca0413ac0d1195cb98b9fe0b",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,country:this.country,handleFormLoading:this.handleFormLoading}),e("div",{key:"37dc95f2e8785c0e2ac969294b86318d81237b0b",class:"d-flex justify-content-between align-items-center"},e("div",{key:"54e6fe77e63faf3b2ae725c349748cf9c34322b0",class:"d-flex align-items-center",part:a},this.stepCounter),e("justifi-payment-provisioning-form-buttons",{key:"aa3e1c621248f1daa48ae7e66dd76c03e0a9eb3c",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{m as justifi_payment_provisioning_core}
@@ -0,0 +1 @@
1
+ import{h as s}from"./p-DwYM91AU.js";import{R as t}from"./p-wtuY7MT2.js";const r=()=>s("div",{class:"d-flex justify-content-center"},s("div",{class:"spinner-border",role:"status",part:t},s("span",{class:"visually-hidden"},"Loading...")));export{r as S}
@@ -1 +1 @@
1
- import{h as s}from"./p-DwYM91AU.js";import{D as t,F as a,G as l,H as e}from"./p-Dj_zevuD.js";const o=a=>s("main",{class:"p-4 d-flex justify-content-center text-center",style:{fontSize:"1.2rem"}},s("p",{part:t},a)),c=t=>s("h2",{part:l,class:"mt-4 fs-5 border-bottom pb-3"},t.sectionTitle),r=({title:a,value:l,onClick:o})=>a&&l?s("div",{class:"row justify-content-between"},s("div",{class:"col-12 col-md-4"},s("span",{class:"fw-bold",part:t},a)),s("div",{class:"col-12 col-md-8 "+(o?"text-decoration-underline text-primary":""),style:{cursor:o?"pointer":"auto"},onClick:()=>o&&o()},s("span",{class:"text-wrap",part:o?e:t},l))):null,p=({title:a,value:e,classes:o})=>s("div",{class:`d-flex flex-column ${o}`},s("span",{class:"fw-bold border-1 border-bottom ps-2 pe-2",part:l},a),s("span",{class:"pt-2 ps-2 pe-2",part:t},e)),n=({title:l,slot:e,badge:o},c)=>s("div",{slot:e,class:"p-2"},s("div",{class:"d-flex flex-row align-items-center gap-2 mb-2"},s("h1",{class:"m-0",part:a},l),o),s("div",{class:"d-flex flex-row align-items-top",part:t},c)),i=({metadata:t})=>t&&Object.keys(t).length?s("div",{class:"mt-4"},s("pre",{class:"p-2","aria-label":"metadata content"},s("code",null,JSON.stringify(t,null,2)))):null;export{i as C,c as D,o as E,n as a,p as b,r as c}
1
+ import{h as s}from"./p-DwYM91AU.js";import{D as t,F as a,G as l,H as e}from"./p-wtuY7MT2.js";const o=a=>s("main",{class:"p-4 d-flex justify-content-center text-center",style:{fontSize:"1.2rem"}},s("p",{part:t},a)),c=t=>s("h2",{part:l,class:"mt-4 fs-5 border-bottom pb-3"},t.sectionTitle),r=({title:a,value:l,onClick:o})=>a&&l?s("div",{class:"row justify-content-between"},s("div",{class:"col-12 col-md-4"},s("span",{class:"fw-bold",part:t},a)),s("div",{class:"col-12 col-md-8 "+(o?"text-decoration-underline text-primary":""),style:{cursor:o?"pointer":"auto"},onClick:()=>o&&o()},s("span",{class:"text-wrap",part:o?e:t},l))):null,p=({title:a,value:e,classes:o})=>s("div",{class:`d-flex flex-column ${o}`},s("span",{class:"fw-bold border-1 border-bottom ps-2 pe-2",part:l},a),s("span",{class:"pt-2 ps-2 pe-2",part:t},e)),n=({title:l,slot:e,badge:o},c)=>s("div",{slot:e,class:"p-2"},s("div",{class:"d-flex flex-row align-items-center gap-2 mb-2"},s("h1",{class:"m-0",part:a},l),o),s("div",{class:"d-flex flex-row align-items-top",part:t},c)),i=({metadata:t})=>t&&Object.keys(t).length?s("div",{class:"mt-4"},s("pre",{class:"p-2","aria-label":"metadata content"},s("code",null,JSON.stringify(t,null,2)))):null;export{i as C,c as D,o as E,n as a,p as b,r as c}
@@ -1 +1 @@
1
- import{h as t}from"./p-DwYM91AU.js";import{ao as a,ap as s,aq as e,ar as r,as as l,at as c,au as o,av as n,aw as p,ax as i}from"./p-Dj_zevuD.js";import{S as b}from"./p-CgbXzEbz.js";const u=(a,s)=>t("div",Object.assign({class:"table-wrapper",part:"table-wrapper"},a),s),d=(s,e)=>t("table",Object.assign({class:"table table-hover",part:a},s),e),h=(a,s)=>t("tbody",Object.assign({class:"table-body"},a),s),j=(a,s)=>t("tr",Object.assign({part:r},a),s),m=(a,e)=>t("thead",Object.assign({class:"table-head sticky-top",part:s},a),e),g=(a,s)=>t("tr",Object.assign({class:"table-light text-nowrap",part:e},a),s),y=(a,s)=>t("tfoot",Object.assign({class:"sticky-bottom",part:l},a),s),O=(a,s)=>t("tr",Object.assign({class:"table-light align-middle",part:c},a),s),x=(a,s)=>t("td",Object.assign({part:o},a),s),S=a=>{const{columnSpan:s,isEmpty:e}=a;return s&&e?t("tr",null,t("td",{class:"empty-state",part:n,colSpan:s,style:{textAlign:"center"}},"No results")):null},w=a=>{const{columnSpan:s,errorMessage:e}=a;return s&&e?t("tr",null,t("td",{class:"error-state",part:p,colSpan:s,"data-test-id":"table-error-state",style:{textAlign:"center"}},"An unexpected error occurred: ",e)):null},D=a=>{const{columnSpan:s,isLoading:e}=a;return s&&e?t("tr",null,t("td",{class:"loading-state",part:i,colSpan:s,style:{textAlign:"center"}},t(b,null))):null};class f{get columnData(){return this.columnKeys.map((t=>this.tableColumns[t]()))}get rowData(){return this.collection.map(((t,a)=>this.columnKeys.map((s=>this.tableCells[s](t,a)))))}set collectionData(t){this.collection=t}constructor(t,a,s,e){this.columnKeys=a.split(","),this.collection=t,this.tableColumns=s,this.tableCells=e}}export{f as T,d as a,m as b,g as c,h as d,D as e,S as f,w as g,j as h,y as i,O as j,x as k,u as l}
1
+ import{h as t}from"./p-DwYM91AU.js";import{ap as a,aq as s,ar as e,as as r,at as l,au as c,av as n,aw as o,ax as p,ay as i}from"./p-wtuY7MT2.js";import{S as b}from"./p-B-0a8Xqm.js";const u=(a,s)=>t("div",Object.assign({class:"table-wrapper",part:"table-wrapper"},a),s),d=(s,e)=>t("table",Object.assign({class:"table table-hover",part:a},s),e),h=(a,s)=>t("tbody",Object.assign({class:"table-body"},a),s),m=(a,s)=>t("tr",Object.assign({part:r},a),s),j=(a,e)=>t("thead",Object.assign({class:"table-head sticky-top",part:s},a),e),g=(a,s)=>t("tr",Object.assign({class:"table-light text-nowrap",part:e},a),s),y=(a,s)=>t("tfoot",Object.assign({class:"sticky-bottom",part:l},a),s),O=(a,s)=>t("tr",Object.assign({class:"table-light align-middle",part:c},a),s),w=(a,s)=>t("td",Object.assign({part:n},a),s),x=a=>{const{columnSpan:s,isEmpty:e}=a;return s&&e?t("tr",null,t("td",{class:"empty-state",part:o,colSpan:s,style:{textAlign:"center"}},"No results")):null},S=a=>{const{columnSpan:s,errorMessage:e}=a;return s&&e?t("tr",null,t("td",{class:"error-state",part:p,colSpan:s,"data-test-id":"table-error-state",style:{textAlign:"center"}},"An unexpected error occurred: ",e)):null},f=a=>{const{columnSpan:s,isLoading:e}=a;return s&&e?t("tr",null,t("td",{class:"loading-state",part:i,colSpan:s,style:{textAlign:"center"}},t(b,null))):null};class A{get columnData(){return this.columnKeys.map((t=>this.tableColumns[t]()))}get rowData(){return this.collection.map(((t,a)=>this.columnKeys.map((s=>this.tableCells[s](t,a)))))}set collectionData(t){this.collection=t}constructor(t,a,s,e){this.columnKeys=a.split(","),this.collection=t,this.tableColumns=s,this.tableCells=e}}export{A as T,d as a,j as b,g as c,h as d,f as e,x as f,S as g,m as h,y as i,O as j,w as k,u as l}
@@ -1 +1 @@
1
- import{h as t}from"./p-DwYM91AU.js";import{M as a}from"./p-BB3MQDQq.js";import{a as e}from"./p-BS7OgSQe.js";import{S as o,T as r}from"./p-Dj_zevuD.js";const s="created_at,amount,status,payment_type,description,payers_name,last_four_digits,card_brand",p={created_at:()=>t("th",{part:o,scope:"col",title:"The date and time each payment was made"},"Date"),amount:()=>t("th",{part:o,scope:"col",title:"The dollar amount of each payment"},"Amount"),status:()=>t("th",{part:o,scope:"col",title:"The current status of each payment"},"Status"),payment_type:()=>t("th",{part:o,scope:"col",title:"The type of each payment"},"Type"),description:()=>t("th",{part:o,scope:"col",title:"The payment description, if you provided one"},"Description"),payers_name:()=>t("th",{part:o,scope:"col",title:"The name associated with the payment method"},"Account Holder"),last_four_digits:()=>t("th",{part:o,scope:"col",title:"The brand and last 4 digits of the payment method"},"Payment Method"),card_brand:()=>t("th",{part:o,scope:"col",title:"The brand of the payment method"},"Card Brand")},n={created_at:(a,o)=>t("td",{part:r(o)},t("div",{class:"fw-bold"},e(a.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},e(a.created_at,{showTime:!0}))),amount:(a,e)=>t("td",{part:r(e)},a.formattedPaymentAmount(a.amount)),status:(e,o)=>t("td",{part:r(o)},a(e.status)),payment_type:(a,e)=>t("td",{part:r(e)},a.payment_type),description:(a,e)=>t("td",{part:r(e)},a.description),payers_name:(a,e)=>t("td",{part:r(e)},a.payers_name),last_four_digits:(a,e)=>t("td",{part:r(e)},a.last_four_digits),card_brand:(a,e)=>{var o,s,p;return t("td",{part:r(e)},(p=(null===(o=a.payment_method.card)||void 0===o?void 0:o.brand)||(null===(s=a.payment_method.bank_account)||void 0===s?void 0:s.brand))?{visa:"VISA",mastercard:"Mastercard",american_express:"American Express",discover:"Discover",diners_club:"Diners Club",jcb:"JCB",china_unionpay:"China UnionPay",unknown:"Unknown"}[p.toLowerCase()]||p:"N/A")}};export{n as a,s as d,p}
1
+ import{h as t}from"./p-DwYM91AU.js";import{M as a}from"./p-BydKIJVC.js";import{a as e}from"./p-BS7OgSQe.js";import{S as o,T as r}from"./p-wtuY7MT2.js";const s="created_at,amount,status,payment_type,description,payers_name,last_four_digits,card_brand",p={created_at:()=>t("th",{part:o,scope:"col",title:"The date and time each payment was made"},"Date"),amount:()=>t("th",{part:o,scope:"col",title:"The dollar amount of each payment"},"Amount"),status:()=>t("th",{part:o,scope:"col",title:"The current status of each payment"},"Status"),payment_type:()=>t("th",{part:o,scope:"col",title:"The type of each payment"},"Type"),description:()=>t("th",{part:o,scope:"col",title:"The payment description, if you provided one"},"Description"),payers_name:()=>t("th",{part:o,scope:"col",title:"The name associated with the payment method"},"Account Holder"),last_four_digits:()=>t("th",{part:o,scope:"col",title:"The brand and last 4 digits of the payment method"},"Payment Method"),card_brand:()=>t("th",{part:o,scope:"col",title:"The brand of the payment method"},"Card Brand")},n={created_at:(a,o)=>t("td",{part:r(o)},t("div",{class:"fw-bold"},e(a.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},e(a.created_at,{showTime:!0}))),amount:(a,e)=>t("td",{part:r(e)},a.formattedPaymentAmount(a.amount)),status:(e,o)=>t("td",{part:r(o)},a(e.status)),payment_type:(a,e)=>t("td",{part:r(e)},a.payment_type),description:(a,e)=>t("td",{part:r(e)},a.description),payers_name:(a,e)=>t("td",{part:r(e)},a.payers_name),last_four_digits:(a,e)=>t("td",{part:r(e)},a.last_four_digits),card_brand:(a,e)=>{var o,s,p;return t("td",{part:r(e)},(p=(null===(o=a.payment_method.card)||void 0===o?void 0:o.brand)||(null===(s=a.payment_method.bank_account)||void 0===s?void 0:s.brand))?{visa:"VISA",mastercard:"Mastercard",american_express:"American Express",discover:"Discover",diners_club:"Diners Club",jcb:"JCB",china_unionpay:"China UnionPay",unknown:"Unknown"}[p.toLowerCase()]||p:"N/A")}};export{n as a,s as d,p}
@@ -0,0 +1 @@
1
+ import{h as t}from"./p-DwYM91AU.js";import{D as e}from"./p-wtuY7MT2.js";const r=r=>{const{helpText:m,name:o}=r;return m?t("small",{class:"form-text text-muted",id:`form-help-text-${o}`,part:e},m):null};export{r as F}
@@ -1 +1 @@
1
- import{h as s}from"./p-DwYM91AU.js";import{_ as r,af as a,ag as n}from"./p-Dj_zevuD.js";const t=(t,o)=>s("button",Object.assign({class:`btn btn-${t.variant}`,onClick:t.clickHandler,part:`${{primary:a,secondary:r}[t.variant]} ${t.isLoading?n:""}`},t),t.isLoading?s("div",{class:"spinner-border spinner-border-sm",role:"status",part:"button-spinner"},s("span",{class:"visually-hidden"},"Loading...")):o);export{t as B}
1
+ import{h as s}from"./p-DwYM91AU.js";import{_ as r,af as a,ag as n}from"./p-wtuY7MT2.js";const t=(t,o)=>s("button",Object.assign({class:`btn btn-${t.variant}`,onClick:t.clickHandler,part:`${{primary:a,secondary:r}[t.variant]} ${t.isLoading?n:""}`},t),t.isLoading?s("div",{class:"spinner-border spinner-border-sm",role:"status",part:"button-spinner"},s("span",{class:"visually-hidden"},"Loading...")):o);export{t as B}
@@ -0,0 +1 @@
1
+ import{h as r}from"./p-DwYM91AU.js";import{E as t}from"./p-wtuY7MT2.js";const o=o=>{const{errorText:e,name:s}=o;return e?r("small",{class:"form-text text-danger",id:`form-error-text-${s}`,part:t},e):null};export{o as F}
@@ -1 +1 @@
1
- import{h as e}from"./p-DwYM91AU.js";import{B as t,a}from"./p-Cu1FEdFr.js";var d;!function(e){e.SUCCEEDED="succeeded",e.AUTHORIZED="authorized",e.PENDING="pending",e.ACH_FAILED="achFailed",e.FAILED="failed",e.CANCELED="canceled",e.DISPUTED="disputed",e.DISPUTE_LOST="dispute_lost",e.FULLY_REFUNDED="fully_refunded",e.PARTIALLY_REFUNDED="partially_refunded"}(d||(d={}));const i=d=>e(a,Object.assign({},{succeeded:{variant:t.SUCCESS,title:"This payment was successfully captured",text:"Succeeded"},authorized:{variant:t.PRIMARY,title:"This card payment was authorized, but not captured. It could still succeed or fail.",text:"Authorized"},pending:{variant:t.PRIMARY,title:"This ACH payment was processed, but the funds have not settled. It could still succeed or fail.",text:"Pending"},achFailed:{variant:t.DANGER,title:"The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)",text:"ACH Failed"},failed:{variant:t.DANGER,title:"This card payment did not go through (it will not appear in a payout)",text:"Failed"},canceled:{variant:t.DANGER,title:"This payment was canceled",text:"Canceled"},disputed:{variant:t.WARNING,title:"The account holder disputed this payment. The amount has been returned and a fee assessed.",text:"Disputed"},dispute_lost:{variant:t.SECONDARY,title:"The cardholder has won the dispute.",text:"Dispute Lost"},fully_refunded:{variant:t.SECONDARY,title:"The full amount of this payment has been refunded",text:"Fully Refunded"},partially_refunded:{variant:t.SECONDARY,title:"A portion of this payment has been refunded",text:"Partially Refunded"}}[d]));export{i as M,d as P}
1
+ import{h as e}from"./p-DwYM91AU.js";import{B as t,a}from"./p-DOLBAxYf.js";var d;!function(e){e.SUCCEEDED="succeeded",e.AUTHORIZED="authorized",e.PENDING="pending",e.ACH_FAILED="achFailed",e.FAILED="failed",e.CANCELED="canceled",e.DISPUTED="disputed",e.DISPUTE_LOST="dispute_lost",e.FULLY_REFUNDED="fully_refunded",e.PARTIALLY_REFUNDED="partially_refunded"}(d||(d={}));const i=d=>e(a,Object.assign({},{succeeded:{variant:t.SUCCESS,title:"This payment was successfully captured",text:"Succeeded"},authorized:{variant:t.PRIMARY,title:"This card payment was authorized, but not captured. It could still succeed or fail.",text:"Authorized"},pending:{variant:t.PRIMARY,title:"This ACH payment was processed, but the funds have not settled. It could still succeed or fail.",text:"Pending"},achFailed:{variant:t.DANGER,title:"The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)",text:"ACH Failed"},failed:{variant:t.DANGER,title:"This card payment did not go through (it will not appear in a payout)",text:"Failed"},canceled:{variant:t.DANGER,title:"This payment was canceled",text:"Canceled"},disputed:{variant:t.WARNING,title:"The account holder disputed this payment. The amount has been returned and a fee assessed.",text:"Disputed"},dispute_lost:{variant:t.SECONDARY,title:"The cardholder has won the dispute.",text:"Dispute Lost"},fully_refunded:{variant:t.SECONDARY,title:"The full amount of this payment has been refunded",text:"Fully Refunded"},partially_refunded:{variant:t.SECONDARY,title:"A portion of this payment has been refunded",text:"Partially Refunded"}}[d]));export{i as M,d as P}
@@ -0,0 +1 @@
1
+ import{h as o}from"./p-DwYM91AU.js";import{W as r}from"./p-wtuY7MT2.js";const s=s=>o("h3",{class:`header-3 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
@@ -0,0 +1 @@
1
+ var e={name:"@justifi/webcomponents",version:"6.4.1"};export{e as p}
@@ -1 +1 @@
1
- import{h as t}from"./p-DwYM91AU.js";import{d as e,e as a}from"./p-BS7OgSQe.js";import{B as c,a as o}from"./p-Cu1FEdFr.js";import{S as p,T as s}from"./p-Dj_zevuD.js";const r="created_at,payment_amount,payment_description,payment_mode,status",d={created_at:()=>t("th",{part:p,scope:"col",title:"The date each checkout occurred"},"Processed On"),payment_amount:()=>t("th",{part:p,scope:"col",title:"The dollar amount of each checkout"},"Payment Amount"),payment_description:()=>t("th",{part:p,scope:"col",title:"The description of each checkout"},"Payment Description"),sub_account_name:()=>t("th",{part:p,scope:"col",title:"The sub account associated with the checkout"},"Sub Account"),payment_mode:()=>t("th",{part:p,scope:"col",title:"The payment mode of each checkout"},"Payment Mode"),status:()=>t("th",{part:p,scope:"col",title:"The current status of each checkout"},"Status")},n={created_at:(c,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(c.created_at)),t("div",{class:"fw-bold"},e(c.created_at))),payment_amount:(e,a)=>t("td",{part:s(a)},e.formattedPaymentAmount(e.payment_amount)),payment_description:(e,a)=>t("td",{part:s(a)},e.payment_description),sub_account_name:(e,a)=>t("td",{part:s(a)},e.sub_account_name),payment_mode:(e,a)=>t("td",{part:s(a)},e.payment_mode),status:(e,a)=>t("td",{part:s(a)},t(o,Object.assign({},{created:{variant:c.PRIMARY,title:"The checkout has been created",text:"Created"},completed:{variant:c.SUCCESS,title:"The checkout has been completed",text:"Completed"},attempted:{variant:c.SECONDARY,title:"The checkout has been attempted",text:"Attempted"},expired:{variant:c.DANGER,title:"The checkout has expired",text:"Expired"}}[e.status])))};export{n as a,d as c,r as d}
1
+ import{h as t}from"./p-DwYM91AU.js";import{d as e,e as a}from"./p-BS7OgSQe.js";import{B as c,a as o}from"./p-DOLBAxYf.js";import{S as p,T as s}from"./p-wtuY7MT2.js";const r="created_at,payment_amount,payment_description,payment_mode,status",d={created_at:()=>t("th",{part:p,scope:"col",title:"The date each checkout occurred"},"Processed On"),payment_amount:()=>t("th",{part:p,scope:"col",title:"The dollar amount of each checkout"},"Payment Amount"),payment_description:()=>t("th",{part:p,scope:"col",title:"The description of each checkout"},"Payment Description"),sub_account_name:()=>t("th",{part:p,scope:"col",title:"The sub account associated with the checkout"},"Sub Account"),payment_mode:()=>t("th",{part:p,scope:"col",title:"The payment mode of each checkout"},"Payment Mode"),status:()=>t("th",{part:p,scope:"col",title:"The current status of each checkout"},"Status")},n={created_at:(c,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(c.created_at)),t("div",{class:"fw-bold"},e(c.created_at))),payment_amount:(e,a)=>t("td",{part:s(a)},e.formattedPaymentAmount(e.payment_amount)),payment_description:(e,a)=>t("td",{part:s(a)},e.payment_description),sub_account_name:(e,a)=>t("td",{part:s(a)},e.sub_account_name),payment_mode:(e,a)=>t("td",{part:s(a)},e.payment_mode),status:(e,a)=>t("td",{part:s(a)},t(o,Object.assign({},{created:{variant:c.PRIMARY,title:"The checkout has been created",text:"Created"},completed:{variant:c.SUCCESS,title:"The checkout has been completed",text:"Completed"},attempted:{variant:c.SECONDARY,title:"The checkout has been attempted",text:"Attempted"},expired:{variant:c.DANGER,title:"The checkout has expired",text:"Expired"}}[e.status])))};export{n as a,d as c,r as d}
@@ -1 +1 @@
1
- import{c as e,a as t}from"./p-DiJD6Iqx.js";import{k as a,l as n,n as s,q as i,u as r,v as l,p as o,e as d,x as m,y as c,z as p}from"./p-DopgIZQg.js";import{C as E}from"./p-B5rtFhtR.js";const _=r=>e(r?{line1:s.nullable(),line2:n.nullable(),city:a.nullable(),state:t().nullable(),postal_code:t().nullable()}:{line1:s.required("Enter street address"),line2:n.nullable(),city:a.required("Enter city"),state:t().required("Select state"),postal_code:i(E.USA).required("Enter postal code")}),b=r=>e(r?{line1:s.nullable(),line2:n.nullable(),city:a.nullable(),state:t().nullable(),postal_code:t().nullable()}:{line1:s.required("Enter street address"),line2:n.nullable(),city:a.required("Enter city"),state:t().required("Select province"),postal_code:i(E.CAN).required("Enter postal code")}),f={[E.USA]:_,[E.CAN]:b},u=(a,n)=>n?(a=>e({name:c.required(`Enter ${a} name`),title:m.nullable(),email:d.nullable(),phone:o.nullable(),dob_full:l(a).nullable(),ssn_last4:t().nullable(),identification_number:r.nullable(),address:_(!0)}))(a):(a=>e({name:c.required(`Enter ${a} name`),title:m.required(`Enter ${a} title`),email:d.required(`Enter ${a} email`),phone:o.required("Enter phone number"),dob_full:l(a).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:r,address:_(!1)}))(a),h=(a,n)=>n?(a=>e({name:c.required(`Enter ${a} name`),title:m.nullable(),email:d.nullable(),phone:o.nullable(),dob_full:l(a).nullable(),ssn_last4:t().nullable(),identification_number:p(E.CAN).nullable(),address:b(!0)}))(a):(a=>e({name:c.required(`Enter ${a} name`),title:m.required(`Enter ${a} title`),email:d.required(`Enter ${a} email`),phone:o.required("Enter phone number"),dob_full:l(a).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:p(E.CAN),address:b(!1)}))(a),$={[E.USA]:u,[E.CAN]:h};export{_ as a,h as b,b as c,$ as d,f as e,u as i}
1
+ import{c as e,a as t}from"./p-DiJD6Iqx.js";import{k as a,l as n,n as s,q as i,u as r,v as l,p as o,e as d,x as m,y as c,z as p}from"./p-avgjSJ1d.js";import{C as E}from"./p-B5rtFhtR.js";const _=r=>e(r?{line1:s.nullable(),line2:n.nullable(),city:a.nullable(),state:t().nullable(),postal_code:t().nullable()}:{line1:s.required("Enter street address"),line2:n.nullable(),city:a.required("Enter city"),state:t().required("Select state"),postal_code:i(E.USA).required("Enter postal code")}),b=r=>e(r?{line1:s.nullable(),line2:n.nullable(),city:a.nullable(),state:t().nullable(),postal_code:t().nullable()}:{line1:s.required("Enter street address"),line2:n.nullable(),city:a.required("Enter city"),state:t().required("Select province"),postal_code:i(E.CAN).required("Enter postal code")}),f={[E.USA]:_,[E.CAN]:b},u=(a,n)=>n?(a=>e({name:c.required(`Enter ${a} name`),title:m.nullable(),email:d.nullable(),phone:o.nullable(),dob_full:l(a).nullable(),ssn_last4:t().nullable(),identification_number:r.nullable(),address:_(!0)}))(a):(a=>e({name:c.required(`Enter ${a} name`),title:m.required(`Enter ${a} title`),email:d.required(`Enter ${a} email`),phone:o.required("Enter phone number"),dob_full:l(a).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:r,address:_(!1)}))(a),h=(a,n)=>n?(a=>e({name:c.required(`Enter ${a} name`),title:m.nullable(),email:d.nullable(),phone:o.nullable(),dob_full:l(a).nullable(),ssn_last4:t().nullable(),identification_number:p(E.CAN).nullable(),address:b(!0)}))(a):(a=>e({name:c.required(`Enter ${a} name`),title:m.required(`Enter ${a} title`),email:d.required(`Enter ${a} email`),phone:o.required("Enter phone number"),dob_full:l(a).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:p(E.CAN),address:b(!1)}))(a),$={[E.USA]:u,[E.CAN]:h};export{_ as a,h as b,b as c,$ as d,f as e,u as i}
@@ -1 +1 @@
1
- import{h as a}from"./p-DwYM91AU.js";import{I as r,J as s,K as e,L as g,M as n,N as d,O as i,P as t,Q as b}from"./p-Dj_zevuD.js";var c;!function(a){a.PRIMARY="primary",a.SECONDARY="secondary",a.SUCCESS="success",a.DANGER="danger",a.WARNING="warning",a.INFO="info",a.LIGHT="light",a.DARK="dark"}(c||(c={}));const o=c=>{const{variant:o,text:p,title:f}=c,l={default:"badge",primary:"badge bg-primary",secondary:"badge bg-secondary",success:"badge bg-success",danger:"badge bg-danger",warning:"badge bg-warning",info:"badge bg-info",light:"badge bg-light",dark:"badge bg-dark"},u={default:b,primary:t,secondary:i,success:d,danger:n,warning:g,info:e,light:s,dark:r};return a("span",{class:l[o]||l.default,part:u[o]||u.default,title:f},p)};export{c as B,o as a}
1
+ import{h as a}from"./p-DwYM91AU.js";import{I as r,J as s,K as g,L as e,M as n,N as d,O as i,P as t,Q as b}from"./p-wtuY7MT2.js";var c;!function(a){a.PRIMARY="primary",a.SECONDARY="secondary",a.SUCCESS="success",a.DANGER="danger",a.WARNING="warning",a.INFO="info",a.LIGHT="light",a.DARK="dark"}(c||(c={}));const o=c=>{const{variant:o,text:p,title:f}=c,l={default:"badge",primary:"badge bg-primary",secondary:"badge bg-secondary",success:"badge bg-success",danger:"badge bg-danger",warning:"badge bg-warning",info:"badge bg-info",light:"badge bg-light",dark:"badge bg-dark"},u={default:b,primary:t,secondary:i,success:d,danger:n,warning:e,info:g,light:s,dark:r};return a("span",{class:l[o]||l.default,part:u[o]||u.default,title:f},p)};export{c as B,o as a}
@@ -1 +1 @@
1
- import{p as t}from"./p-BeukOaOq.js";import{A as s}from"./p-C8yN3uBj.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";const i=s();class e{async record(t){return i.post({endpoint:"analytics",body:t})}}class o{constructor(t){this.handleCustomEvent=async t=>{await this.service.record(t)},window.location.origin.includes("localhost")||window.location.origin.includes("storybook")||(this.service=new e,this.componentInstance=t,this.setUpBasicData(),this.setupLifecycleTracking(),this.trackCustomEvents())}get resourceId(){return this.componentInstance.accountId||this.componentInstance.businessId||this.componentInstance.paymentId||this.componentInstance.payoutId||this.componentInstance.checkoutId}setUpBasicData(){this.basicData={component_name:this.componentInstance.tagName,component_version:t.version,client_user_agent:navigator.userAgent,client_platform:navigator.userAgent,client_origin:window.location.origin,resource_id:this.resourceId}}trackCustomEvents(){this.eventEmitters=["submit-event","error-event"],this.eventEmitters.forEach((t=>{"function"==typeof this.componentInstance.addEventListener&&this.componentInstance.addEventListener(t,(s=>this.handleCustomEvent({event_type:t,data:Object.assign(Object.assign({},this.basicData),{error:s.detail})})))}))}setupLifecycleTracking(){const t=this.componentInstance.componentDidLoad;this.componentInstance.componentDidLoad=()=>{if(this.service.record({event_type:"init",data:this.basicData}),t)return t.apply(this.componentInstance)}}cleanup(){this.eventEmitters&&this.eventEmitters.forEach((t=>{this.componentInstance.removeEventListener(t,this.handleCustomEvent)}))}}const n=async()=>{var s,i;if("undefined"!=typeof process&&("test"===(null===(s=process.env)||void 0===s?void 0:s.NODE_ENV)||(null===(i=process.env)||void 0===i?void 0:i.JEST_WORKER_ID)))return;const e=t.version,o=t.name,n=await(async t=>{const s=await fetch("https://registry.npmjs.org/"+t+"/latest");return(await s.json()).version})(o),r=n.replace(/-rc.*/,""),a=e.split("."),c=n.split(".");a[0]!==c[0]&&console.warn(`The package ${o} is out of date. The latest version is ${r}. Please update.`)};export{o as J,n as c}
1
+ import{p as t}from"./p-C19Xk7z3.js";import{A as s}from"./p-C8yN3uBj.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";const i=s();class e{async record(t){return i.post({endpoint:"analytics",body:t})}}class o{constructor(t){this.handleCustomEvent=async t=>{await this.service.record(t)},window.location.origin.includes("localhost")||window.location.origin.includes("storybook")||(this.service=new e,this.componentInstance=t,this.setUpBasicData(),this.setupLifecycleTracking(),this.trackCustomEvents())}get resourceId(){return this.componentInstance.accountId||this.componentInstance.businessId||this.componentInstance.paymentId||this.componentInstance.payoutId||this.componentInstance.checkoutId}setUpBasicData(){this.basicData={component_name:this.componentInstance.tagName,component_version:t.version,client_user_agent:navigator.userAgent,client_platform:navigator.userAgent,client_origin:window.location.origin,resource_id:this.resourceId}}trackCustomEvents(){this.eventEmitters=["submit-event","error-event"],this.eventEmitters.forEach((t=>{"function"==typeof this.componentInstance.addEventListener&&this.componentInstance.addEventListener(t,(s=>this.handleCustomEvent({event_type:t,data:Object.assign(Object.assign({},this.basicData),{error:s.detail})})))}))}setupLifecycleTracking(){const t=this.componentInstance.componentDidLoad;this.componentInstance.componentDidLoad=()=>{if(this.service.record({event_type:"init",data:this.basicData}),t)return t.apply(this.componentInstance)}}cleanup(){this.eventEmitters&&this.eventEmitters.forEach((t=>{this.componentInstance.removeEventListener(t,this.handleCustomEvent)}))}}const n=async()=>{var s,i;if("undefined"!=typeof process&&("test"===(null===(s=process.env)||void 0===s?void 0:s.NODE_ENV)||(null===(i=process.env)||void 0===i?void 0:i.JEST_WORKER_ID)))return;const e=t.version,o=t.name,n=await(async t=>{const s=await fetch("https://registry.npmjs.org/"+t+"/latest");return(await s.json()).version})(o),r=n.replace(/-rc.*/,""),a=e.split("."),c=n.split(".");a[0]!==c[0]&&console.warn(`The package ${o} is out of date. The latest version is ${r}. Please update.`)};export{o as J,n as c}
@@ -1 +1 @@
1
- import{h as t}from"./p-DwYM91AU.js";import{B as e,a as i}from"./p-Cu1FEdFr.js";import{S as a,T as r}from"./p-Dj_zevuD.js";import{h as n}from"./p-BS7OgSQe.js";const o="nickname,provider_serial_number,status",c={nickname:()=>t("th",{part:a,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:a,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:a,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:a,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:a,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:a,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:a,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:a,scope:"col",title:"The current status of each terminal"},"Status")},s={nickname:(e,i)=>t("td",{part:r(i)},e.nickname),model_name:(e,i)=>t("td",{part:r(i)},e.model_name),id:(e,i)=>t("td",{part:r(i)},e.id),provider:(e,i)=>t("td",{part:r(i)},n(e.provider)),provider_serial_number:(e,i)=>t("td",{part:r(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:r(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:r(i)},e.sub_account_name),status:(a,n)=>t("td",{part:r(n)},t(i,Object.assign({},{connected:{variant:e.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:e.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:e.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:e.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"},archived:{variant:e.SECONDARY,title:"This terminal is archived",text:"Archived"}}[a.status])))};export{s as a,o as d,c as t}
1
+ import{h as t}from"./p-DwYM91AU.js";import{B as e,a as i}from"./p-DOLBAxYf.js";import{S as a,T as r}from"./p-wtuY7MT2.js";import{h as n}from"./p-BS7OgSQe.js";const o="nickname,provider_serial_number,status",c={nickname:()=>t("th",{part:a,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:a,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:a,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:a,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:a,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:a,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:a,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:a,scope:"col",title:"The current status of each terminal"},"Status")},s={nickname:(e,i)=>t("td",{part:r(i)},e.nickname),model_name:(e,i)=>t("td",{part:r(i)},e.model_name),id:(e,i)=>t("td",{part:r(i)},e.id),provider:(e,i)=>t("td",{part:r(i)},n(e.provider)),provider_serial_number:(e,i)=>t("td",{part:r(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:r(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:r(i)},e.sub_account_name),status:(a,n)=>t("td",{part:r(n)},t(i,Object.assign({},{connected:{variant:e.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:e.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:e.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:e.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"},archived:{variant:e.SECONDARY,title:"This terminal is archived",text:"Archived"}}[a.status])))};export{s as a,o as d,c as t}
@@ -1 +1 @@
1
- import{h as t}from"./p-DwYM91AU.js";import{a}from"./p-BS7OgSQe.js";import{M as e}from"./p-q6C7btl0.js";import{S as o,T as s}from"./p-Dj_zevuD.js";const p="created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv",r={created_at:()=>t("th",{part:o,scope:"col",title:"The date the payout was deposited"},"Created"),sub_account_name:()=>t("th",{part:o,scope:"col",title:"The sub account associated with the payout"},"Sub Account"),payments_total:()=>t("th",{part:o,scope:"col",title:"The total payments amount associated with the payout"},"Payments"),refunds_total:()=>t("th",{part:o,scope:"col",title:"The total refunds amount associated with the payout"},"Refunds"),fees_total:()=>t("th",{part:o,scope:"col",title:"The total fees amount associated with the payout"},"Fees"),other_total:()=>t("th",{part:o,scope:"col",title:"The total other amount"},"Other"),amount:()=>t("th",{part:o,scope:"col",title:"The total amount of the payout"},"Amount"),status:()=>t("th",{part:o,scope:"col",title:"The real-time status of each payout"},"Status"),csv:()=>t("th",{part:o,scope:"col",title:"Export CSV"})},l=o=>({created_at:(e,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0}))),sub_account_name:(a,e)=>t("td",{part:s(e)},a.sub_account_name),payments_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.payments_total)),refunds_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.refunds_total)),fees_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.fees_total)),other_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.other_total)),amount:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.amount)),status:(a,o)=>t("td",{part:s(o)},e(a.status)),csv:(a,e)=>t("td",{part:s(e)},t("a",{href:"#",onClick:t=>{t.preventDefault(),o(a.id)}},"CSV"))});export{l as a,p as d,r as p}
1
+ import{h as t}from"./p-DwYM91AU.js";import{a}from"./p-BS7OgSQe.js";import{M as e}from"./p-bolTb61p.js";import{S as o,T as s}from"./p-wtuY7MT2.js";const p="created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv",r={created_at:()=>t("th",{part:o,scope:"col",title:"The date the payout was deposited"},"Created"),sub_account_name:()=>t("th",{part:o,scope:"col",title:"The sub account associated with the payout"},"Sub Account"),payments_total:()=>t("th",{part:o,scope:"col",title:"The total payments amount associated with the payout"},"Payments"),refunds_total:()=>t("th",{part:o,scope:"col",title:"The total refunds amount associated with the payout"},"Refunds"),fees_total:()=>t("th",{part:o,scope:"col",title:"The total fees amount associated with the payout"},"Fees"),other_total:()=>t("th",{part:o,scope:"col",title:"The total other amount"},"Other"),amount:()=>t("th",{part:o,scope:"col",title:"The total amount of the payout"},"Amount"),status:()=>t("th",{part:o,scope:"col",title:"The real-time status of each payout"},"Status"),csv:()=>t("th",{part:o,scope:"col",title:"Export CSV"})},l=o=>({created_at:(e,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0}))),sub_account_name:(a,e)=>t("td",{part:s(e)},a.sub_account_name),payments_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.payments_total)),refunds_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.refunds_total)),fees_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.fees_total)),other_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.other_total)),amount:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.amount)),status:(a,o)=>t("td",{part:s(o)},e(a.status)),csv:(a,e)=>t("td",{part:s(e)},t("a",{href:"#",onClick:t=>{t.preventDefault(),o(a.id)}},"CSV"))});export{l as a,p as d,r as p}
@@ -1 +1 @@
1
- import{r as t,c as e,h as a,H as s}from"./p-DwYM91AU.js";import{c as i,l as r,b as o,U as h,a as c}from"./p-Dj_zevuD.js";import{F as d}from"./p-JvWiY69B.js";import"./p-CZfYo5-1.js";const l=class{constructor(a){t(this,a),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.maxDate=this.currentDate,this.handleFormControlInput=t=>{const e=t.target.value;this.inputHandler(this.name,e),this.formControlInput.emit({name:this.name,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}get currentDate(){return this.showTime?(new Date).toISOString().slice(0,16):(new Date).toISOString().split("T")[0]}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}get part(){let t=i;return this.errorText&&(t=o),this.disabled&&(t=h),this.isFocused&&(t=c),t}render(){return a(s,{key:"c1db3dd4bca7d9bf6dcbf61b0b43793232caae2f"},a("div",{key:"4e00566fe24c7db972bcc7a99eaa1aa14c968f2b",class:"form-group d-flex flex-column"},a("div",{key:"30e022fb522a6f69d04fadebb893c0377c0c580e",class:"d-flex gap-2"},a("label",{key:"f43b0d3c1e53d6c6e99dd26ca1dc61b601617e2c",part:r,class:"form-label",htmlFor:this.name},this.label),a("form-control-tooltip",{key:"39ab2bcd705b6d917dad575c9e09594d2a6ff199",helpText:this.helpText})),a("input",{key:"54d475675a44f28a05315c23ed07b7e61717c6a9",type:this.showTime?"datetime-local":"date",ref:t=>this.dateInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled,max:this.maxDate}),a(d,{key:"91455fa726313c5316a91d395209df04d6927a41",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{l as form_control_date}
1
+ import{r as t,c as a,h as e,H as s}from"./p-DwYM91AU.js";import{c as i,l as r,b as o,U as h,a as c}from"./p-wtuY7MT2.js";import{F as d}from"./p-BuCKkdLM.js";import"./p-CZfYo5-1.js";const l=class{constructor(e){t(this,e),this.formControlInput=a(this,"formControlInput"),this.formControlBlur=a(this,"formControlBlur"),this.isFocused=!1,this.maxDate=this.currentDate,this.handleFormControlInput=t=>{const a=t.target.value;this.inputHandler(this.name,a),this.formControlInput.emit({name:this.name,value:a})}}handleDefaultValueChange(t){this.updateInput(t)}get currentDate(){return this.showTime?(new Date).toISOString().slice(0,16):(new Date).toISOString().split("T")[0]}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}get part(){let t=i;return this.errorText&&(t=o),this.disabled&&(t=h),this.isFocused&&(t=c),t}render(){return e(s,{key:"c1db3dd4bca7d9bf6dcbf61b0b43793232caae2f"},e("div",{key:"4e00566fe24c7db972bcc7a99eaa1aa14c968f2b",class:"form-group d-flex flex-column"},e("div",{key:"30e022fb522a6f69d04fadebb893c0377c0c580e",class:"d-flex gap-2"},e("label",{key:"f43b0d3c1e53d6c6e99dd26ca1dc61b601617e2c",part:r,class:"form-label",htmlFor:this.name},this.label),e("form-control-tooltip",{key:"39ab2bcd705b6d917dad575c9e09594d2a6ff199",helpText:this.helpText})),e("input",{key:"54d475675a44f28a05315c23ed07b7e61717c6a9",type:this.showTime?"datetime-local":"date",ref:t=>this.dateInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled,max:this.maxDate}),e(d,{key:"91455fa726313c5316a91d395209df04d6927a41",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{l as form_control_date}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{c as o,J as a}from"./p-CeO5d98O.js";import{T as n}from"./p-ZrJKEEoy.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{e as p}from"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as c,a as h}from"./p-D2muobcE.js";import{m,S as u}from"./p-CriWtqRc.js";import{S as d}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{d as j}from"./p-fDGfMEwy.js";import"./p-BeukOaOq.js";import"./p-C8yN3uBj.js";import"./p-BS7OgSQe.js";import"./p-BYsgavgS.js";import"./p-Cu1FEdFr.js";import"./p-Dj_zevuD.js";const l=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=j,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){o(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:e,onSuccess:o,onError:a})=>{var n,m;try{const u=await i.fetchTerminals(t,s,e);if(u.error)return a({error:h(u.error),code:c(null===(m=u.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},u.page_info);o({terminals:(null===(n=u.data)||void 0===n?void 0:n.map((t=>new p(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return a({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new n}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new u}))}render(){return i(d,{key:"34cb952a43c4ecfd904c3449a05895e10e673a95"},i("terminals-list-core",{key:"32d981b366889364c4f27a4351aab41ed7d085b5",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{l as justifi_terminals_list}
1
+ import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import{c as e,J as a}from"./p-DV4RaYYL.js";import{T as n}from"./p-ZrJKEEoy.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{e as p}from"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as c,a as h}from"./p-D2muobcE.js";import{m,S as u}from"./p-CriWtqRc.js";import{S as d}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-DkOiS6Zr.js";import"./p-C19Xk7z3.js";import"./p-C8yN3uBj.js";import"./p-BS7OgSQe.js";import"./p-BYsgavgS.js";import"./p-DOLBAxYf.js";import"./p-wtuY7MT2.js";const j=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=l,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:o,onSuccess:e,onError:a})=>{var n,m;try{const u=await i.fetchTerminals(t,s,o);if(u.error)return a({error:h(u.error),code:c(null===(m=u.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},u.page_info);e({terminals:(null===(n=u.data)||void 0===n?void 0:n.map((t=>new p(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return a({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new n}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new u}))}render(){return i(d,{key:"34cb952a43c4ecfd904c3449a05895e10e673a95"},i("terminals-list-core",{key:"32d981b366889364c4f27a4351aab41ed7d085b5",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_terminals_list}
@@ -1 +1 @@
1
- import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import{T as a,a as i,b as r,c as h,d as o,e as c,f as n,g as p,h as d,i as f,j as m,k as b,l as g}from"./p-B-7rLJIB.js";import{T as u}from"./p-CZfYo5-1.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import{p as j}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{t as l,a as y}from"./p-DsR5Dt9w.js";import{o as k,g as C}from"./p-BUsqF4-J.js";import"./p-Dj_zevuD.js";import"./p-CgbXzEbz.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-Cu1FEdFr.js";const O=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminalOrders=[],this.loading=!0,this.paging=j,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:u.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:u.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:u.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new a(this.terminalOrders,this.columns,l,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"e613f15a7f21b62df83874e361aed492c79f09a7"},e(i,{key:"f44650f404395a9cdef96012a544a16d76dff351"},e(r,{key:"690ce3189e7e6531e5a60834ba913c281aa95f08"},e(h,{key:"01260cb573cd36571ab6c6b4952f8202a238f914"},this.terminalOrdersTable.columnData.map((t=>t)))),e(o,{key:"130c3ae63b1b84568eb559eba42bd355d41264cb"},e(c,{key:"b6fa756110c9c046c197aac95a1555ef395d558c",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(n,{key:"2b8cdf202bb62469590b8d2dfae808fad1750ab1",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(p,{key:"43acaccaa17dd2561b05ec3f4f2fa2e8f62dd7d0",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"95e9e88622ecf6e32d20a6636d9a8d9a6d637710"},e(m,{key:"4ad82db29c1110099872b8a740c5d3fcf716cffd"},e(b,{key:"6aa900cf7752919f1ec4844bd6f0e5d6ad73c2b2",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"c17bc0926e4cdaf6158287282ae090e00e456f59",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{O as terminal_orders_list_core}
1
+ import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import{T as a,a as i,b as r,c as h,d as o,e as c,f as n,g as p,h as d,i as f,j as m,k as b,l as g}from"./p-BTzt8N0l.js";import{T as u}from"./p-CZfYo5-1.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import{p as j}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{t as l,a as y}from"./p-jTVpG8Gt.js";import{o as k,g as O}from"./p-BUsqF4-J.js";import"./p-wtuY7MT2.js";import"./p-B-0a8Xqm.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-DOLBAxYf.js";const C=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminalOrders=[],this.loading=!0,this.paging=j,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:u.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:u.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:u.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new a(this.terminalOrders,this.columns,l,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=O();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"e613f15a7f21b62df83874e361aed492c79f09a7"},e(i,{key:"f44650f404395a9cdef96012a544a16d76dff351"},e(r,{key:"690ce3189e7e6531e5a60834ba913c281aa95f08"},e(h,{key:"01260cb573cd36571ab6c6b4952f8202a238f914"},this.terminalOrdersTable.columnData.map((t=>t)))),e(o,{key:"130c3ae63b1b84568eb559eba42bd355d41264cb"},e(c,{key:"b6fa756110c9c046c197aac95a1555ef395d558c",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(n,{key:"2b8cdf202bb62469590b8d2dfae808fad1750ab1",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(p,{key:"43acaccaa17dd2561b05ec3f4f2fa2e8f62dd7d0",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"95e9e88622ecf6e32d20a6636d9a8d9a6d637710"},e(m,{key:"4ad82db29c1110099872b8a740c5d3fcf716cffd"},e(b,{key:"6aa900cf7752919f1ec4844bd6f0e5d6ad73c2b2",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"c17bc0926e4cdaf6158287282ae090e00e456f59",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{C as terminal_orders_list_core}
@@ -1 +1 @@
1
- import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as p,f as n,g as d,h as f,i as m,j as b,k as g,l as u}from"./p-B-7rLJIB.js";import{T as j}from"./p-CZfYo5-1.js";import{p as y,a as k}from"./p-C9Ho60F2.js";import{o as l,g as C}from"./p-DdJYXOQX.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-Dj_zevuD.js";import"./p-CgbXzEbz.js";import"./p-BB3MQDQq.js";import"./p-Cu1FEdFr.js";const S=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payments=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:j.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:j.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.payments.find((t=>t.id===s));this.clickEvent.emit({name:j.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.paymentsTable=new a(this.payments,this.columns,y,k),this.getPayments&&this.fetchData(),l("set",(()=>{this.pagingParams={}})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayments({params:this.paymentParams,onSuccess:({payments:t,pagingInfo:s})=>{this.payments=t,this.paging=s,this.paymentsTable.collectionData=this.payments},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get paymentParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.payments.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.paymentsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(u,{key:"17ceef0f0fd1dc4fb8e8f8e13fde16b81ab40fa5"},e(r,{key:"d5031ba7e55422997c8a5641e9fe3acd4fb3a9c0"},e(h,{key:"cf74e7ec087e4d5ada18975f5c970269f14472f1"},e(o,{key:"f2c9932dbb047448527064c5ecc22edf56e31d01"},this.paymentsTable.columnData.map((t=>t)))),e(c,{key:"c709386eca9d7063bb9e1c986b66e2189ab78e24"},e(p,{key:"2bec872c8fed48c65081789151d7238ccd24f4b2",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),e(n,{key:"4367380db418574ec2ac553c2fe8b7edb360f82b",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),e(d,{key:"55ae13377d95739b2226d57e134bda3e32b73df4",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((t,s)=>e(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"636674049a9f97fe725cc471125386478f910b86"},e(b,{key:"bb5f77ad9f89f5e2d77a930fc9baef222473d2c6"},e(g,{key:"a9cbead53a129e23b6f530c209578484e1def2b3",colSpan:this.paymentsTable.columnData.length},e("pagination-menu",{key:"1370967dcdf1bbeb2aa6a35f2371e68a00571744",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{S as payments_list_core}
1
+ import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as p,f as n,g as f,h as d,i as m,j as b,k as g,l as u}from"./p-BTzt8N0l.js";import{T as j}from"./p-CZfYo5-1.js";import{p as y,a as l}from"./p-BitGlMSc.js";import{o as k,g as C}from"./p-DdJYXOQX.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-wtuY7MT2.js";import"./p-B-0a8Xqm.js";import"./p-BydKIJVC.js";import"./p-DOLBAxYf.js";const S=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payments=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:j.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:j.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.payments.find((t=>t.id===s));this.clickEvent.emit({name:j.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.paymentsTable=new a(this.payments,this.columns,y,l),this.getPayments&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayments({params:this.paymentParams,onSuccess:({payments:t,pagingInfo:s})=>{this.payments=t,this.paging=s,this.paymentsTable.collectionData=this.payments},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get paymentParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.payments.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.paymentsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(u,{key:"17ceef0f0fd1dc4fb8e8f8e13fde16b81ab40fa5"},e(r,{key:"d5031ba7e55422997c8a5641e9fe3acd4fb3a9c0"},e(h,{key:"cf74e7ec087e4d5ada18975f5c970269f14472f1"},e(o,{key:"f2c9932dbb047448527064c5ecc22edf56e31d01"},this.paymentsTable.columnData.map((t=>t)))),e(c,{key:"c709386eca9d7063bb9e1c986b66e2189ab78e24"},e(p,{key:"2bec872c8fed48c65081789151d7238ccd24f4b2",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),e(n,{key:"4367380db418574ec2ac553c2fe8b7edb360f82b",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),e(f,{key:"55ae13377d95739b2226d57e134bda3e32b73df4",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"636674049a9f97fe725cc471125386478f910b86"},e(b,{key:"bb5f77ad9f89f5e2d77a930fc9baef222473d2c6"},e(g,{key:"a9cbead53a129e23b6f530c209578484e1def2b3",colSpan:this.paymentsTable.columnData.length},e("pagination-menu",{key:"1370967dcdf1bbeb2aa6a35f2371e68a00571744",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{S as payments_list_core}
@@ -1 +1 @@
1
- import{r as e,h as a}from"./p-DwYM91AU.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as d,c as i}from"./p-DdJYXOQX.js";import{f as l,g as r,t as f,h as c,j as p,k as b}from"./p-Dj_zevuD.js";import{S as o}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{c as n,a as m}from"./p-BS7OgSQe.js";import"./p-BFTU3MAI.js";import"./p-BYsgavgS.js";import"./p-HXpYMWUU.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=n(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({payment_id:this.paymentId,terminal_id:this.terminalId,payment_status:this.paymentStatus,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(d[e]=a)}))}get paymentStatusOptions(){return[{label:"All",value:""},{label:"Pending",value:"pending"},{label:"Authorized",value:"authorized"},{label:"Succeeded",value:"succeeded"},{label:"Failed",value:"failed"},{label:"Disputed",value:"disputed"},{label:"Refunded",value:"refunded"}]}render(){const e=Object.assign({},s);return a(o,{key:"ca1a151bf3527225312df08f192750364668b2ba"},a("table-filters-menu",{key:"33663b7dbdeeaf5eabecc5ac650bbdf3676e30f8",params:e,clearParams:i,part:l},a("div",{key:"f5a5a27b1f0e55b7b06b698f5e19baf5cf25fe7f",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"59abc8a49326e203592a9f3b02d12c7de45a9235",class:"p-2"},a("form-control-text",{key:"05e1db9bdfb0301330c2f9e00a2417431a704792",name:"payment_id",label:"Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.paymentId||s.payment_id,disabled:!!this.paymentId,part:r})),a("div",{key:"68c84deb196e2ab8ce186cd26aa686274042320d",class:"p-2"},a("form-control-text",{key:"34c1a654a3e2328202f996d46e11f65ed2e0c8df",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:f})),a("div",{key:"6399e8b9978352f1ee9b6dcb49f4e4e5e965b05f",class:"p-2"},a("form-control-select",{key:"aa687544903688a7936f4b34a221320f941ad0db",name:"payment_status",label:"Status",options:this.paymentStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentStatus||s.payment_status||"",disabled:!!this.paymentStatus,part:c})),a("div",{key:"9acc20b55d25cbef52893b58464d0879d09389be",class:"p-2"},a("form-control-date",{key:"f853d5ce2259cf4adad00132d60eea80fae3a2f9",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:m(this.createdAfter,{showInputDateTime:!0})||m(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:p})),a("div",{key:"d7d78846efd7277418a9dad3c0d21a82f0ccc36b",class:"p-2"},a("form-control-date",{key:"2eb64ec290032601d0ac32af679b13743bb4f796",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:m(this.createdBefore,{showInputDateTime:!0})||m(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:b})))))}};export{u as justifi_payments_list_filters}
1
+ import{r as e,h as a}from"./p-DwYM91AU.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as d,c as i}from"./p-DdJYXOQX.js";import{f as l,g as r,t as f,h as c,j as p,k as b}from"./p-wtuY7MT2.js";import{S as o}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{c as n,a as m}from"./p-BS7OgSQe.js";import"./p-BFTU3MAI.js";import"./p-BYsgavgS.js";import"./p-HXpYMWUU.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=n(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({payment_id:this.paymentId,terminal_id:this.terminalId,payment_status:this.paymentStatus,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(d[e]=a)}))}get paymentStatusOptions(){return[{label:"All",value:""},{label:"Pending",value:"pending"},{label:"Authorized",value:"authorized"},{label:"Succeeded",value:"succeeded"},{label:"Failed",value:"failed"},{label:"Disputed",value:"disputed"},{label:"Refunded",value:"refunded"}]}render(){const e=Object.assign({},s);return a(o,{key:"ca1a151bf3527225312df08f192750364668b2ba"},a("table-filters-menu",{key:"33663b7dbdeeaf5eabecc5ac650bbdf3676e30f8",params:e,clearParams:i,part:l},a("div",{key:"f5a5a27b1f0e55b7b06b698f5e19baf5cf25fe7f",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"59abc8a49326e203592a9f3b02d12c7de45a9235",class:"p-2"},a("form-control-text",{key:"05e1db9bdfb0301330c2f9e00a2417431a704792",name:"payment_id",label:"Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.paymentId||s.payment_id,disabled:!!this.paymentId,part:r})),a("div",{key:"68c84deb196e2ab8ce186cd26aa686274042320d",class:"p-2"},a("form-control-text",{key:"34c1a654a3e2328202f996d46e11f65ed2e0c8df",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:f})),a("div",{key:"6399e8b9978352f1ee9b6dcb49f4e4e5e965b05f",class:"p-2"},a("form-control-select",{key:"aa687544903688a7936f4b34a221320f941ad0db",name:"payment_status",label:"Status",options:this.paymentStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentStatus||s.payment_status||"",disabled:!!this.paymentStatus,part:c})),a("div",{key:"9acc20b55d25cbef52893b58464d0879d09389be",class:"p-2"},a("form-control-date",{key:"f853d5ce2259cf4adad00132d60eea80fae3a2f9",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:m(this.createdAfter,{showInputDateTime:!0})||m(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:p})),a("div",{key:"d7d78846efd7277418a9dad3c0d21a82f0ccc36b",class:"p-2"},a("form-control-date",{key:"2eb64ec290032601d0ac32af679b13743bb4f796",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:m(this.createdBefore,{showInputDateTime:!0})||m(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:b})))))}};export{u as justifi_payments_list_filters}
@@ -1 +1 @@
1
- import{a as e}from"./p-DiJD6Iqx.js";import{S as a,C as t}from"./p-B5rtFhtR.js";import{a as s}from"./p-DfKxeSrC.js";import{b as r,r as n,s as i,a as d}from"./p-CPpUGsw5.js";const l=e=>""===e?null:e,u=/^\d+$/,c=/P\.?\s?O\.?\s?Box|Postal\sBox/i,o=e().email("Enter valid email").transform(l),m=e().matches(/^\d{10}$/,"Enter valid phone number").transform(l),b=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),h=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),v=e().matches(/^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/,"Enter valid website url").transform(l),E=e().transform(l),N=e().min(2,"Industry must be at least 2 characters").max(50,"Industry must be less than 50 characters").transform(l),p=e().matches(u,"Enter valid tax id, SSN, or EIN").test("not-repeat","Enter valid tax id, SSN, or EIN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid tax id, SSN, or EIN",(e=>"123456789"!==e)).transform(l),S=a=>e().matches(s[a].postalRegex,"Enter valid postal code").transform(l),w=a=>a===t.CAN?e().matches(u,"Enter valid SIN").length(s[a].identityDigits,"Enter valid SIN").when("ssn_last4",{is:e=>!e||0===e.length,then:e=>e.required("Enter SIN"),otherwise:e=>e.nullable()}).test("not-repeat","Enter valid SIN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid SIN",(e=>"123456789"!==e)).transform(l):$,A=a=>a===t.CAN?e().matches(u,"Enter valid Business Number (BN)").length(s[a].taxIdDigits,"Enter valid Business Number (BN)").test("not-repeat","Enter valid Business Number (BN)",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid Business Number (BN)",(e=>"123456789"!==e)).transform(l):p,g=e().test("not-future","Date of incorporation cannot be in the future",(e=>new Date(e)<=new Date)).transform(l),y=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),B=e().min(2,"Title must be at least 2 characters").max(50,"Title must be less than 50 characters").transform(l),x=a=>e().test("min","Enter a valid date",(e=>new Date(e)>=new Date("1902-01-01"))).test("age",`${a} must be at least 18 years old`,(e=>{const a=new Date(e),t=new Date;return t.setFullYear(t.getFullYear()-18),a<=t})).transform(l),$=e().matches(/^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/,"Enter valid SSN").when("ssn_last4",{is:e=>!e||0===e.length,then:e=>e.required("Enter SSN"),otherwise:e=>e.nullable()}).test("not-repeat","Enter valid SSN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid SSN",(e=>"123456789"!==e)).transform(l),D=e().min(5,"Address must be at least 5 characters").max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!c.test(e))).transform(l),I=e().max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!c.test(e))).transform(l),f=e().min(2,"City must be at least 2 characters").max(50,"City must be less than 50 characters").transform(l),C=e().oneOf(a.map((e=>e.value)),"Enter a 2-letter state abbreviation, such as CA").transform(l),q=e().matches(/^((\d{5}-\d{4})|(\d{5})|([A-Z]\d[A-Z]\s\d[A-Z]\d))$/,"Enter valid postal code").transform(l),_=e().matches(u,"Enter valid revenue").transform(l),j=e().matches(u,"Enter valid payment volume").transform(l),P=e().oneOf(r.map((e=>e.value)),"Select when service is received").transform(l),Z=e().oneOf(n.map((e=>e.value)),"Select recurring payments").transform(l),z=e().when("business_recurring_payments",{is:e=>"Yes"===e,then:e=>e.required("Enter recurring payments percentage"),otherwise:e=>e.nullable()}).transform(l),O=e().oneOf(i.map((e=>e.value)),"Select seasonal business").transform(l),F=e().transform(l),G=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(l),R=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(l),T=e().oneOf(d.map((e=>e.value)),"Select account type").transform(l),k=e().min(4,"Account number must be at least 4 digits").max(17,"Account number must be less than 17 digits").matches(u,"Enter valid account number").test("not-repeat","Enter valid account number",(e=>!/^(\d)\1+$/.test(e))).transform(l),H=e().length(9,"Routing number must be 9 digits").matches(u,"Enter valid routing number").test("not-repeat","Enter valid routing number",(e=>!/^(\d)\1+$/.test(e))).test("valid","Enter valid routing number",(e=>(e=>{if(!e)return!1;const a=Array.from(String(e),Number);return 9===a.length&&0==(3*(a[0]+a[3]+a[6])+7*(a[1]+a[4]+a[7])+(a[2]+a[5]+a[8]))%10})(e))).transform(l);export{k as A,T as B,R as C,G as D,u as E,H as F,q as G,C as H,h as a,E as b,b as c,g as d,o as e,Z as f,P as g,j as h,N as i,_ as j,f as k,I as l,A as m,D as n,F as o,m as p,S as q,z as r,O as s,p as t,$ as u,x as v,v as w,B as x,y,w as z}
1
+ import{a as e}from"./p-DiJD6Iqx.js";import{S as a,C as t}from"./p-B5rtFhtR.js";import{a as s}from"./p-DfKxeSrC.js";import{b as r,r as n,s as i,a as d}from"./p-CPpUGsw5.js";const l=e=>""===e?null:e,u=/^\d+$/,c=/P\.?\s?O\.?\s?Box|Postal\sBox/i,o=e().email("Enter valid email").transform(l),m=e().matches(/^\d{10}$/,"Enter valid phone number").transform(l),b=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),h=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),v=e().matches(/^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/,"Enter valid website url").transform(l),E=e().transform(l),N=e().min(2,"Industry must be at least 2 characters").max(50,"Industry must be less than 50 characters").transform(l),p=e().matches(u,"Enter valid tax id, SSN, or EIN").test("not-repeat","Enter valid tax id, SSN, or EIN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid tax id, SSN, or EIN",(e=>"123456789"!==e)).transform(l),S=a=>e().matches(s[a].postalRegex,"Enter valid postal code").transform(l),w=a=>a===t.CAN?e().matches(u,"Enter valid SIN").length(s[a].identityDigits,"Enter valid SIN").when("ssn_last4",{is:e=>!e||0===e.length,then:e=>e.required("Enter SIN"),otherwise:e=>e.nullable()}).test("not-repeat","Enter valid SIN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid SIN",(e=>"123456789"!==e)).transform(l):$,A=a=>a===t.CAN?e().matches(u,"Enter valid Business Number (BN)").length(s[a].taxIdDigits,"Enter valid Business Number (BN)").test("not-repeat","Enter valid Business Number (BN)",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid Business Number (BN)",(e=>"123456789"!==e)).transform(l):p,g=e().test("not-future","Date of incorporation cannot be in the future",(e=>new Date(e)<=new Date)).transform(l),y=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),B=e().min(2,"Title must be at least 2 characters").max(50,"Title must be less than 50 characters").transform(l),x=a=>e().test("min","Enter a valid date",(e=>new Date(e)>=new Date("1902-01-01"))).test("age",`${a} must be at least 18 years old`,(e=>{const a=new Date(e),t=new Date;return t.setFullYear(t.getFullYear()-18),a<=t})).transform(l),$=e().matches(/^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/,"Enter valid SSN").when("ssn_last4",{is:e=>!e||0===e.length,then:e=>e.required("Enter SSN"),otherwise:e=>e.nullable()}).test("not-repeat","Enter valid SSN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid SSN",(e=>"123456789"!==e)).transform(l),D=e().min(5,"Address must be at least 5 characters").max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!c.test(e))).transform(l),I=e().max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!c.test(e))).transform(l),f=e().min(2,"City must be at least 2 characters").max(50,"City must be less than 50 characters").transform(l),C=e().oneOf(a.map((e=>e.value)),"Enter a 2-letter state abbreviation, such as CA").transform(l),q=e().matches(/^((\d{5}-\d{4})|(\d{5})|([A-Z]\d[A-Z]\s\d[A-Z]\d))$/,"Enter valid postal code").transform(l),_=e().matches(u,"Enter valid revenue").transform(l),j=e().matches(u,"Enter valid payment volume").transform(l),P=e().oneOf(r.map((e=>e.value)),"Select when service is received").transform(l),Z=e().oneOf(n.map((e=>e.value)),"Select recurring payments").transform(l),z=e().when("business_recurring_payments",{is:e=>"Yes"===e,then:e=>e.required("Enter recurring payments percentage"),otherwise:e=>e.nullable()}).transform(l),O=e().oneOf(i.map((e=>e.value)),"Select seasonal business").transform(l),F=e().transform(l),G=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(l),R=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(l),T=e().oneOf(d.map((e=>e.value)),"Select account type").transform(l),k=e().min(4,"Account number must be at least 4 digits").max(17,"Account number must be less than 17 digits").matches(u,"Enter valid account number").test("not-repeat","Enter valid account number",(e=>!/^(\d)\1+$/.test(e))).transform(l),H=e().length(9,"Routing number must be 9 digits").matches(u,"Enter valid routing number").test("not-repeat","Enter valid routing number",(e=>!/^(\d)\1+$/.test(e))).test("valid","Enter valid routing number",(e=>(e=>{if(!e)return!1;const a=Array.from(String(e),Number);return 9===a.length&&0==(3*(a[0]+a[3]+a[6])+7*(a[1]+a[4]+a[7])+(a[2]+a[5]+a[8]))%10})(e))).transform(l);export{q as A,C as B,k as C,T as D,R as E,G as F,u as G,H,h as a,E as b,b as c,g as d,o as e,Z as f,P as g,j as h,N as i,_ as j,f as k,I as l,A as m,D as n,F as o,m as p,S as q,z as r,O as s,p as t,$ as u,x as v,v as w,B as x,y,w as z}
@@ -1 +1 @@
1
- import{h as s,r as t,c as i}from"./p-DwYM91AU.js";import{c as e,F as r}from"./p-DiJD6Iqx.js";import{b as o,a,c as h}from"./p-Bo278yZD.js";import{i as n,a as p,b as l,c as m}from"./p-O4_LrrnE.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as c,a as d}from"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import{C as u,B as j,b as f}from"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{c as v,J as b}from"./p-CeO5d98O.js";import{B as g}from"./p-DkOvNRJs.js";import{S as w}from"./p-BP2sTIQV.js";import{H as C}from"./p-C7m-gAAM.js";import"./p-CZfYo5-1.js";import{S as y}from"./p-VhOlg78I.js";import{B as O}from"./p-XYgDHrVL.js";import{m as B,b as D}from"./p-5aA7gjr5.js";import{B as S}from"./p-wYnnDDuR.js";import"./p-BFTU3MAI.js";import"./p-DopgIZQg.js";import"./p-DfKxeSrC.js";import"./p-CPpUGsw5.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-BeukOaOq.js";import"./p-C8yN3uBj.js";import"./p-Dj_zevuD.js";import"./p-D2muobcE.js";const x=e(Object.assign(Object.assign({},o().fields),{legal_address:p(),additional_questions:a(),representative:n("representative")}));e(Object.assign(Object.assign({},h().fields),{legal_address:m(),additional_questions:a(),representative:l("representative")}));const k=x,I=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(y,{width:"25%"})),s("div",{class:"col-12"},s(y,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"50%"}),s(y,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"65%"}),s(y,{width:"35%"}))),_=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(y,{width:"40%",height:"40px"})),s(I,null),s(I,null),s(I,null)),A=class{constructor(s){t(this,s),this.submitEvent=i(this,"submit-event"),this.clickEvent=i(this,"click-event"),this.errorEvent=i(this,"error-event"),this.isLoading=!1,this.isSaving=!1,this.country=u.USA,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const t=new j(s);this.country=t.country_of_establishment,this.formController.setInitialValues(Object.assign({},t))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),t=this.formController.getInitialValues(),i=new j(Object.assign(Object.assign({},t),s)).payload;this.patchBusiness({payload:i,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:t,message:s.message,severity:i})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){v(),this.analytics=new b(this),this.formController=new r(k),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=B({authToken:this.authToken,businessId:this.businessId,service:new S}),this.patchBusiness=D({authToken:this.authToken,businessId:this.businessId,service:new S}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:t,message:s.message,severity:i})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:d.MISSING_PROPS,severity:c.ERROR})}handleReponse(s){s.error&&(this.errorMessage=f.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(w,null,this.isLoading?s(_,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(C,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController,country:this.country})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(g,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:O.submit}),isLoading:this.isSaving},"Submit")))))}};export{A as justifi_business_form}
1
+ import{h as s,r as t,c as i}from"./p-DwYM91AU.js";import{c as e,F as r}from"./p-DiJD6Iqx.js";import{b as o,a,c as h}from"./p-dgG_o6wN.js";import{i as n,a as p,b as l,c as m}from"./p-D1WQG4I7.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as c,a as d}from"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import{C as u,B as j,b as f}from"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{c as v,J as b}from"./p-DV4RaYYL.js";import{B as g}from"./p-Bqlcv3ZV.js";import{S as w}from"./p-BP2sTIQV.js";import{H as C}from"./p-zNSPsvs3.js";import"./p-CZfYo5-1.js";import{S as y}from"./p-c7MCfTgE.js";import{B as S}from"./p-XYgDHrVL.js";import{m as B,b as x}from"./p-5aA7gjr5.js";import{B as D}from"./p-wYnnDDuR.js";import"./p-BFTU3MAI.js";import"./p-avgjSJ1d.js";import"./p-DfKxeSrC.js";import"./p-CPpUGsw5.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-C19Xk7z3.js";import"./p-C8yN3uBj.js";import"./p-wtuY7MT2.js";import"./p-D2muobcE.js";const Y=e(Object.assign(Object.assign({},o().fields),{legal_address:p(),additional_questions:a(),representative:n("representative")}));e(Object.assign(Object.assign({},h().fields),{legal_address:m(),additional_questions:a(),representative:l("representative")}));const k=Y,O=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(y,{width:"25%"})),s("div",{class:"col-12"},s(y,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"50%"}),s(y,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"65%"}),s(y,{width:"35%"}))),I=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(y,{width:"40%",height:"40px"})),s(O,null),s(O,null),s(O,null)),_=class{constructor(s){t(this,s),this.submitEvent=i(this,"submit-event"),this.clickEvent=i(this,"click-event"),this.errorEvent=i(this,"error-event"),this.isLoading=!1,this.isSaving=!1,this.country=u.USA,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const t=new j(s);this.country=t.country_of_establishment,this.formController.setInitialValues(Object.assign({},t))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),t=this.formController.getInitialValues(),i=new j(Object.assign(Object.assign({},t),s)).payload;this.patchBusiness({payload:i,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:t,message:s.message,severity:i})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){v(),this.analytics=new b(this),this.formController=new r(k),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=B({authToken:this.authToken,businessId:this.businessId,service:new D}),this.patchBusiness=x({authToken:this.authToken,businessId:this.businessId,service:new D}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:t,message:s.message,severity:i})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:d.MISSING_PROPS,severity:c.ERROR})}handleReponse(s){s.error&&(this.errorMessage=f.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(w,null,this.isLoading?s(I,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(C,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController,country:this.country})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(g,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:S.submit}),isLoading:this.isSaving},"Submit")))))}};export{_ as justifi_business_form}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{P as e}from"./p-C9_8N76_.js";import{m as r}from"./p-Do561C8g.js";import{E as o}from"./p-D2DVDmwd.js";import{C as p,a}from"./p-Cjcsf8ku.js";import{c as h,J as n}from"./p-CeO5d98O.js";import"./p-C8yN3uBj.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";import"./p-CPKSE7M4.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-D2muobcE.js";import"./p-Dj_zevuD.js";import"./p-BeukOaOq.js";const m=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.recordClickEvent=s(this,"record-click-event"),this.errorMessage=null,this.paymentService=new e,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.handleRecordClickEvent=t=>{this.recordClickEvent.emit({id:t.detail.id,type:t.detail.type})}}componentWillLoad(){h(),this.analytics=new n(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=r({id:this.paymentId,authToken:this.authToken,service:new e}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:p.ERROR}))}render(){return this.errorMessage?o(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent,"onRecord-click-event":this.handleRecordClickEvent,"enable-record-click":"true"})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_payment_details}
1
+ import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{P as e}from"./p-C9_8N76_.js";import{m as r}from"./p-Do561C8g.js";import{E as o}from"./p-BNqo3kt0.js";import{C as p,a}from"./p-Cjcsf8ku.js";import{c as h,J as n}from"./p-DV4RaYYL.js";import"./p-C8yN3uBj.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";import"./p-CPKSE7M4.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-D2muobcE.js";import"./p-wtuY7MT2.js";import"./p-C19Xk7z3.js";const m=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.recordClickEvent=s(this,"record-click-event"),this.errorMessage=null,this.paymentService=new e,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.handleRecordClickEvent=t=>{this.recordClickEvent.emit({id:t.detail.id,type:t.detail.type})}}componentWillLoad(){h(),this.analytics=new n(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=r({id:this.paymentId,authToken:this.authToken,service:new e}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:p.ERROR}))}render(){return this.errorMessage?o(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent,"onRecord-click-event":this.handleRecordClickEvent,"enable-record-click":"true"})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_payment_details}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as e,H as a}from"./p-DwYM91AU.js";import{a0 as i,a1 as c,a2 as h,a3 as r,a4 as o,l as d}from"./p-wtuY7MT2.js";import{F as f}from"./p-Bli6WznP.js";import{F as n}from"./p-BuCKkdLM.js";import"./p-CZfYo5-1.js";const l=class{constructor(e){s(this,e),this.formControlInput=t(this,"formControlInput"),this.formControlBlur=t(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=s=>{s.preventDefault();const t=s.target,e=t.getAttribute("name");this.inputHandler(e,t.checked),this.formControlInput.emit({name:e,value:t.value})},this.updateInput=s=>{this.checkboxElement.checked=s}}get part(){return this.errorText?i:this.isFocused&&this.checked?c:this.isFocused?h:this.checked?r:o}render(){return e(a,{key:"7bd0d5b048cb249373ea51b77e4c9da0cd9334e2"},e("div",{key:"fc2503501d863e5d4735bedbaf343c63e51933de",class:"form-group d-flex flex-column"},e("div",{key:"1279143cac22a3c83c84a0b374d521ad4f8d6b2e",class:"form-check"},e("input",{key:"05206a4ba4f07eac3015168569c0669aa467631e",ref:s=>this.checkboxElement=s,type:"checkbox",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,checked:this.checked}),e("label",{key:"890243508bccedbdcbec05cffc857aa5a5a15bc6",class:"form-check-label",htmlFor:this.name,part:d},this.label)),e(f,{key:"3c7be6ef2d0d9dd02601fef9e58038d010ca8246",helpText:this.helpText,name:this.name}),e(n,{key:"471b312488e84d3ab8ee2d4d13394b5887901366",errorText:this.errorText,name:this.name})))}};export{l as form_control_checkbox}
@@ -1 +1 @@
1
- import{h as t}from"./p-DwYM91AU.js";import{B as e,a}from"./p-Cu1FEdFr.js";const n=n=>t(a,Object.assign({},{canceled:{variant:e.DANGER,title:"Transfer to your bank account failed",text:"Canceled"},failed:{variant:e.DANGER,title:"Transfer to your bank account failed",text:"Failed"},forwarded:{variant:e.SECONDARY,title:"This payout initially failed; the funds have been forwarded to your next successful payout",text:"Forwarded"},in_transit:{variant:e.PRIMARY,title:"Transfer to your bank account has been initiated",text:"In Transit"},paid:{variant:e.SUCCESS,title:"Successfully deposited into your bank account",text:"Paid"},pending:{variant:e.PRIMARY,title:"Batched and scheduled to be transferred",text:"Pending"},scheduled:{variant:e.PRIMARY,title:"Batched and scheduled to be transferred",text:"Scheduled"},withdrawn:{variant:e.SUCCESS,title:"Negative payout balance successfully withdrawn from your bank account",text:"Withdrawn"}}[n]));export{n as M}
1
+ import{h as t}from"./p-DwYM91AU.js";import{B as e,a}from"./p-DOLBAxYf.js";const n=n=>t(a,Object.assign({},{canceled:{variant:e.DANGER,title:"Transfer to your bank account failed",text:"Canceled"},failed:{variant:e.DANGER,title:"Transfer to your bank account failed",text:"Failed"},forwarded:{variant:e.SECONDARY,title:"This payout initially failed; the funds have been forwarded to your next successful payout",text:"Forwarded"},in_transit:{variant:e.PRIMARY,title:"Transfer to your bank account has been initiated",text:"In Transit"},paid:{variant:e.SUCCESS,title:"Successfully deposited into your bank account",text:"Paid"},pending:{variant:e.PRIMARY,title:"Batched and scheduled to be transferred",text:"Pending"},scheduled:{variant:e.PRIMARY,title:"Batched and scheduled to be transferred",text:"Scheduled"},withdrawn:{variant:e.SUCCESS,title:"Negative payout balance successfully withdrawn from your bank account",text:"Withdrawn"}}[n]));export{n as M}