@justifi/webcomponents 6.15.0-rc.1 → 6.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Analytics-VQGAbMVS.js → Analytics-BjZHa0wt.js} +4 -4
  3. package/dist/cjs/{Api--EGkA-pT.js → Api-us3AxMRC.js} +1 -1
  4. package/dist/cjs/{Business-oBifyXkW.js → Business-CNaz-VLa.js} +5 -1
  5. package/dist/cjs/{Plaid-D85oV9FN.js → Plaid-BcOAKDaU.js} +1 -1
  6. package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +13 -13
  7. package/dist/cjs/additional-questions_4.cjs.entry.js +3 -3
  8. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +4 -4
  9. package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +2 -2
  10. package/dist/cjs/bank-account-form.cjs.entry.js +4 -4
  11. package/dist/cjs/{business-form-options-CnlrfbQ6.js → business-form-options-BHBs_yiK.js} +1 -1
  12. package/dist/cjs/{business-identity-schema-hpDJFnB4.js → business-identity-schema-XiCLzxWM.js} +3 -3
  13. package/dist/cjs/{business.service-B51fjG_j.js → business.service-_Sl3vWmu.js} +3 -3
  14. package/dist/cjs/card-form.cjs.entry.js +4 -4
  15. package/dist/cjs/{check-pkg-version-RMsgKzFc.js → check-pkg-version-CjJab8fX.js} +1 -1
  16. package/dist/cjs/{checkout-actions-BRQFQ6n-.js → checkout-actions-CQyGpVPe.js} +2 -2
  17. package/dist/cjs/{checkout.service-BsOwkSNp.js → checkout.service-B_qymeqJ.js} +3 -3
  18. package/dist/cjs/{country-config-C1bWmF8P.js → country-config-DQQujh5h.js} +1 -1
  19. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  20. package/dist/cjs/dispute-notification_2.cjs.entry.js +8 -8
  21. package/dist/cjs/{event-types-C_LP6UcW.js → event-types-DmY59QXs.js} +3 -3
  22. package/dist/cjs/form-address-fields_3.cjs.entry.js +4 -4
  23. package/dist/cjs/form-alert_3.cjs.entry.js +5 -5
  24. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  25. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  26. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  27. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  28. package/dist/cjs/form-control-number_2.cjs.entry.js +6 -6
  29. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  30. package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
  31. package/dist/cjs/{get-business-BpaRbn5S.js → get-business-BVxtiSDs.js} +3 -3
  32. package/dist/cjs/{get-payment-details-Cmg8gWvo.js → get-payment-details-DR1GgpyX.js} +3 -3
  33. package/dist/cjs/{get-subaccounts-d4CUegsn.js → get-subaccounts-BMY2bOFj.js} +4 -4
  34. package/dist/cjs/{input-handlers-_51J5q7J.js → input-handlers-v9h_2Ysi.js} +1 -1
  35. package/dist/cjs/internal-button.cjs.entry.js +1 -1
  36. package/dist/cjs/justifi-apple-pay_12.cjs.entry.js +58 -21
  37. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +6 -6
  38. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -6
  39. package/dist/cjs/justifi-business-details.cjs.entry.js +9 -9
  40. package/dist/cjs/justifi-business-form.cjs.entry.js +13 -13
  41. package/dist/cjs/justifi-card-form.cjs.entry.js +6 -6
  42. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +6 -6
  43. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -6
  44. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -4
  45. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -11
  46. package/dist/cjs/justifi-dispute-management.cjs.entry.js +8 -8
  47. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +33 -20
  48. package/dist/cjs/justifi-order-terminals.cjs.entry.js +11 -11
  49. package/dist/cjs/justifi-payment-details.cjs.entry.js +17 -17
  50. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
  51. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +9 -9
  52. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  53. package/dist/cjs/justifi-payments-list.cjs.entry.js +9 -9
  54. package/dist/cjs/justifi-payout-details.cjs.entry.js +12 -12
  55. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +9 -9
  56. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
  57. package/dist/cjs/justifi-payouts-list.cjs.entry.js +11 -11
  58. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +9 -9
  59. package/dist/cjs/justifi-refund-payment.cjs.entry.js +9 -9
  60. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -7
  61. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  62. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
  63. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +9 -9
  64. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -3
  65. package/dist/cjs/justifi-terminals-list.cjs.entry.js +10 -10
  66. package/dist/cjs/loader.cjs.js +1 -1
  67. package/dist/cjs/{package-DfwuePUh.js → package-30T__1wH.js} +1 -1
  68. package/dist/cjs/{payment-provisioning-actions-DDooZhhk.js → payment-provisioning-actions-SVp7B8pR.js} +2 -2
  69. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +1 -1
  70. package/dist/cjs/{payment.service-Vy_JnuSA.js → payment.service-DRXVT-uB.js} +3 -3
  71. package/dist/cjs/{payout.service-BEPglFXf.js → payout.service-CuQ-mXKB.js} +3 -3
  72. package/dist/cjs/{payouts-status-1IUtW-UQ.js → payouts-status-BvHeuy9v.js} +2 -2
  73. package/dist/cjs/{plaid.service-DXQ7q51E.js → plaid.service-B58nzlUE.js} +3 -3
  74. package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
  75. package/dist/cjs/{schema-validations-DehT309E.js → schema-validations-sjRvL4KO.js} +5 -4
  76. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  77. package/dist/cjs/{terminal.service-BP2YecQ_.js → terminal.service-CmtSEgTc.js} +3 -3
  78. package/dist/cjs/{utils-CBriZzRC.js → utils-BScgWJC5.js} +1 -1
  79. package/dist/cjs/webcomponents.cjs.js +1 -1
  80. package/dist/collection/api/Business.js +2 -0
  81. package/dist/collection/api/Checkout.js +1 -1
  82. package/dist/collection/components/business-forms/schemas/schema-helpers.js +2 -1
  83. package/dist/collection/components/business-forms/utils/helpers.js +3 -1
  84. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +4 -2
  85. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +3 -3
  86. package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +7 -1
  87. package/dist/collection/components/modular-checkout/sub-components/paypal/justifi-paypal.js +38 -13
  88. package/dist/collection/components/order-terminals/justifi-order-terminals.js +1 -1
  89. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  90. package/dist/collection/components/payment-details/justifi-payment-details.js +8 -8
  91. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
  92. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  93. package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
  94. package/dist/collection/components/payout-details/justifi-payout-details.js +3 -3
  95. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
  96. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  97. package/dist/collection/components/payouts-list/justifi-payouts-list.js +1 -1
  98. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  99. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +2 -2
  100. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  101. package/dist/collection/components/terminals-list/justifi-terminals-list.js +1 -1
  102. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
  103. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  104. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  105. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  106. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  107. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  108. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  109. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  110. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  111. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  112. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  113. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  114. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  115. package/dist/collection/ui-components/internal-button.js +1 -1
  116. package/dist/collection/ui-components/radio-list-item.js +1 -1
  117. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  118. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  119. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  120. package/dist/docs.json +2 -2
  121. package/dist/esm/{Analytics-hKJLmoJl.js → Analytics-BtMYbHD0.js} +4 -4
  122. package/dist/esm/{Api-DAJ9sMMj.js → Api-nVK-rgbk.js} +1 -1
  123. package/dist/esm/{Business-DaDqgDrb.js → Business-CTtGaVYs.js} +5 -1
  124. package/dist/esm/{Plaid-BP3xNxQF.js → Plaid-CRcTLeaz.js} +1 -1
  125. package/dist/esm/additional-questions-form-step_15.entry.js +13 -13
  126. package/dist/esm/additional-questions_4.entry.js +3 -3
  127. package/dist/esm/bank-account-billing-form-simple_4.entry.js +4 -4
  128. package/dist/esm/bank-account-document-form-inputs.entry.js +2 -2
  129. package/dist/esm/bank-account-form.entry.js +4 -4
  130. package/dist/esm/{business-form-options-BxVQL9ar.js → business-form-options-DLRkVtee.js} +1 -1
  131. package/dist/esm/{business-identity-schema-BkmRlnQo.js → business-identity-schema-BP61Unwf.js} +3 -3
  132. package/dist/esm/{business.service-kmkjOyTm.js → business.service-Cq7H5w1T.js} +3 -3
  133. package/dist/esm/card-form.entry.js +4 -4
  134. package/dist/esm/{check-pkg-version-FEAmKlDW.js → check-pkg-version-BW9zgceK.js} +1 -1
  135. package/dist/esm/{checkout-actions-0ftD0elo.js → checkout-actions-CWnrb317.js} +2 -2
  136. package/dist/esm/{checkout.service-BVBmNheb.js → checkout.service-JA7oTq5d.js} +3 -3
  137. package/dist/esm/{country-config-CJwnhkdq.js → country-config-F5YwgHgR.js} +1 -1
  138. package/dist/esm/custom-popper_2.entry.js +2 -2
  139. package/dist/esm/dispute-notification_2.entry.js +8 -8
  140. package/dist/esm/{event-types-B5-lsGjZ.js → event-types-Dsf8IwD6.js} +3 -3
  141. package/dist/esm/form-address-fields_3.entry.js +4 -4
  142. package/dist/esm/form-alert_3.entry.js +5 -5
  143. package/dist/esm/form-control-date.entry.js +2 -2
  144. package/dist/esm/form-control-file-v2_2.entry.js +3 -3
  145. package/dist/esm/form-control-file.entry.js +2 -2
  146. package/dist/esm/form-control-monetary.entry.js +2 -2
  147. package/dist/esm/form-control-number_2.entry.js +6 -6
  148. package/dist/esm/form-control-radio.entry.js +2 -2
  149. package/dist/esm/form-control-select_2.entry.js +2 -2
  150. package/dist/esm/{get-business-BLCT-zfN.js → get-business-IZpxKRZM.js} +3 -3
  151. package/dist/esm/{get-payment-details-BokzuPGl.js → get-payment-details-DSI41Pq5.js} +3 -3
  152. package/dist/esm/{get-subaccounts-By7m_FxO.js → get-subaccounts-B-S2TGRa.js} +4 -4
  153. package/dist/esm/{input-handlers-Dfuc6aDW.js → input-handlers-Dm8jO-BT.js} +1 -1
  154. package/dist/esm/internal-button.entry.js +1 -1
  155. package/dist/esm/justifi-apple-pay_12.entry.js +58 -21
  156. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +6 -6
  157. package/dist/esm/justifi-bank-account-form.entry.js +6 -6
  158. package/dist/esm/justifi-business-details.entry.js +9 -9
  159. package/dist/esm/justifi-business-form.entry.js +13 -13
  160. package/dist/esm/justifi-card-form.entry.js +6 -6
  161. package/dist/esm/justifi-checkout-qr-code.entry.js +6 -6
  162. package/dist/esm/justifi-checkout.entry.js +6 -6
  163. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -4
  164. package/dist/esm/justifi-checkouts-list.entry.js +11 -11
  165. package/dist/esm/justifi-dispute-management.entry.js +8 -8
  166. package/dist/esm/justifi-gross-payment-chart.entry.js +33 -20
  167. package/dist/esm/justifi-order-terminals.entry.js +11 -11
  168. package/dist/esm/justifi-payment-details.entry.js +17 -17
  169. package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
  170. package/dist/esm/justifi-payment-transactions-list.entry.js +9 -9
  171. package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
  172. package/dist/esm/justifi-payments-list.entry.js +9 -9
  173. package/dist/esm/justifi-payout-details.entry.js +12 -12
  174. package/dist/esm/justifi-payout-transactions-list.entry.js +9 -9
  175. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  176. package/dist/esm/justifi-payouts-list.entry.js +11 -11
  177. package/dist/esm/justifi-qr-terminal.entry.js +9 -9
  178. package/dist/esm/justifi-refund-payment.entry.js +9 -9
  179. package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -7
  180. package/dist/esm/justifi-skeleton.entry.js +1 -1
  181. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -5
  182. package/dist/esm/justifi-terminal-orders-list.entry.js +9 -9
  183. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -3
  184. package/dist/esm/justifi-terminals-list.entry.js +10 -10
  185. package/dist/esm/loader.js +1 -1
  186. package/dist/esm/{package-Dn9_7aQh.js → package-BC9n8nB2.js} +1 -1
  187. package/dist/esm/{payment-provisioning-actions-VRIPjnAQ.js → payment-provisioning-actions-VtleD509.js} +2 -2
  188. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +1 -1
  189. package/dist/esm/{payment.service-CMUlMV1Y.js → payment.service-B42sKlQE.js} +3 -3
  190. package/dist/esm/{payout.service-C0yd0JZS.js → payout.service-BIoAgNJJ.js} +3 -3
  191. package/dist/esm/{payouts-status-CaiC5qpn.js → payouts-status-CnIf4XDi.js} +2 -2
  192. package/dist/esm/{plaid.service-CqihCTBS.js → plaid.service-C6Ltk2ef.js} +3 -3
  193. package/dist/esm/radio-list-item.entry.js +1 -1
  194. package/dist/esm/{schema-validations-8dbMCACI.js → schema-validations-De7Qe0VU.js} +5 -4
  195. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  196. package/dist/esm/{terminal.service-DuF3uTuA.js → terminal.service-DV3qIwBy.js} +3 -3
  197. package/dist/esm/{utils-YUOJKtjO.js → utils-DaPywmTI.js} +1 -1
  198. package/dist/esm/webcomponents.js +1 -1
  199. package/dist/module/Business.js +5 -1
  200. package/dist/module/Plaid.js +1 -1
  201. package/dist/module/custom-popper2.js +2 -2
  202. package/dist/module/form-control-date2.js +2 -2
  203. package/dist/module/form-control-file-v22.js +1 -1
  204. package/dist/module/form-control-file2.js +2 -2
  205. package/dist/module/form-control-monetary2.js +2 -2
  206. package/dist/module/form-control-number-masked2.js +2 -2
  207. package/dist/module/form-control-number2.js +2 -2
  208. package/dist/module/form-control-radio2.js +2 -2
  209. package/dist/module/form-control-text2.js +2 -2
  210. package/dist/module/form-control-textarea2.js +2 -2
  211. package/dist/module/hidden-input2.js +1 -1
  212. package/dist/module/iframe-input2.js +3 -3
  213. package/dist/module/internal-button2.js +1 -1
  214. package/dist/module/justifi-apple-pay2.js +7 -1
  215. package/dist/module/justifi-button2.js +1 -1
  216. package/dist/module/justifi-checkouts-list-filters.js +4 -2
  217. package/dist/module/justifi-checkouts-list.js +2 -2
  218. package/dist/module/justifi-gross-payment-chart.js +26 -13
  219. package/dist/module/justifi-header2.js +1 -1
  220. package/dist/module/justifi-order-terminals.js +1 -1
  221. package/dist/module/justifi-payment-details.js +8 -8
  222. package/dist/module/justifi-payment-transactions-list.js +1 -1
  223. package/dist/module/justifi-payments-list-filters.js +2 -2
  224. package/dist/module/justifi-payments-list.js +1 -1
  225. package/dist/module/justifi-payout-details.js +3 -3
  226. package/dist/module/justifi-payout-transactions-list.js +1 -1
  227. package/dist/module/justifi-payouts-list-filters.js +2 -2
  228. package/dist/module/justifi-payouts-list.js +1 -1
  229. package/dist/module/justifi-paypal2.js +39 -11
  230. package/dist/module/justifi-skeleton.js +1 -1
  231. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  232. package/dist/module/justifi-terminal-orders-list.js +2 -2
  233. package/dist/module/justifi-terminals-list-filters.js +1 -1
  234. package/dist/module/justifi-terminals-list.js +1 -1
  235. package/dist/module/justifi-tokenize-payment-method2.js +1 -1
  236. package/dist/module/package.js +1 -1
  237. package/dist/module/radio-list-item2.js +1 -1
  238. package/dist/module/schema-validations.js +2 -1
  239. package/dist/module/terminal-quantity-selector2.js +1 -1
  240. package/dist/types/api/Business.d.ts +2 -0
  241. package/dist/types/api/Checkout.d.ts +7 -7
  242. package/dist/types/components/checkouts-list/justifi-checkouts-list.d.ts +1 -1
  243. package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +1 -0
  244. package/dist/types/components/modular-checkout/sub-components/paypal/justifi-paypal.d.ts +9 -2
  245. package/dist/types/components.d.ts +1 -1
  246. package/dist/webcomponents/p-065b854f.entry.js +1 -0
  247. package/dist/webcomponents/{p-b98ea26a.entry.js → p-082f912c.entry.js} +1 -1
  248. package/dist/webcomponents/{p-0d8a256c.entry.js → p-0cd689f4.entry.js} +1 -1
  249. package/dist/webcomponents/{p-1a55efda.entry.js → p-0e9351c4.entry.js} +1 -1
  250. package/dist/webcomponents/p-0f7e3515.entry.js +20 -0
  251. package/dist/webcomponents/p-0fbc806f.entry.js +1 -0
  252. package/dist/webcomponents/{p-36f05f5f.entry.js → p-10787684.entry.js} +1 -1
  253. package/dist/webcomponents/{p-86f9d5f6.entry.js → p-1365a46b.entry.js} +1 -1
  254. package/dist/webcomponents/{p-b9664e84.entry.js → p-13814028.entry.js} +1 -1
  255. package/dist/webcomponents/{p-bf3866b3.entry.js → p-16261d8a.entry.js} +1 -1
  256. package/dist/webcomponents/{p-8a5ce8ff.entry.js → p-19cabdaf.entry.js} +1 -1
  257. package/dist/webcomponents/{p-af728bc6.entry.js → p-1cfa634a.entry.js} +1 -1
  258. package/dist/webcomponents/p-1fa62eba.entry.js +1 -0
  259. package/dist/webcomponents/{p-31204dd5.entry.js → p-2b5533a1.entry.js} +1 -1
  260. package/dist/webcomponents/p-2ef913b8.entry.js +1 -0
  261. package/dist/webcomponents/p-388082cd.entry.js +1 -0
  262. package/dist/webcomponents/p-3a1f8c5b.entry.js +1 -0
  263. package/dist/webcomponents/p-3f2fb856.entry.js +1 -0
  264. package/dist/webcomponents/{p-d4de565d.entry.js → p-429046e1.entry.js} +1 -1
  265. package/dist/webcomponents/{p-e0bce67a.entry.js → p-44ff4f2c.entry.js} +1 -1
  266. package/dist/webcomponents/p-4740601b.entry.js +1 -0
  267. package/dist/webcomponents/{p-10b91a6c.entry.js → p-59b95eae.entry.js} +1 -1
  268. package/dist/webcomponents/{p-1cdbe8c1.entry.js → p-5c889829.entry.js} +1 -1
  269. package/dist/webcomponents/p-6c7fca1a.entry.js +1 -0
  270. package/dist/webcomponents/p-72bb4aff.entry.js +1 -0
  271. package/dist/webcomponents/p-735d397e.entry.js +1 -0
  272. package/dist/webcomponents/p-8432cb42.entry.js +1 -0
  273. package/dist/webcomponents/{p-aebd2149.entry.js → p-88a44a02.entry.js} +1 -1
  274. package/dist/webcomponents/{p-d555220f.entry.js → p-89f0c2aa.entry.js} +1 -1
  275. package/dist/webcomponents/{p-5bdae8c7.entry.js → p-97c6593d.entry.js} +1 -1
  276. package/dist/webcomponents/p-9b43b90d.entry.js +1 -0
  277. package/dist/webcomponents/p-9db15fac.entry.js +1 -0
  278. package/dist/webcomponents/p-9e3e2e32.entry.js +1 -0
  279. package/dist/webcomponents/p-9eb00966.entry.js +1 -0
  280. package/dist/webcomponents/p-BAvoKtN2.js +1 -0
  281. package/dist/webcomponents/p-BC9n8nB2.js +1 -0
  282. package/dist/webcomponents/p-BDtSw_d-.js +1 -0
  283. package/dist/webcomponents/{p-Ba0_MQtJ.js → p-B_2zgnvM.js} +1 -1
  284. package/dist/webcomponents/{p-CLq3Og7o.js → p-BhpaUYtS.js} +1 -1
  285. package/dist/webcomponents/{p-BHaO3c8W.js → p-BjjKkMO1.js} +1 -1
  286. package/dist/webcomponents/p-BmaQUnqv.js +1 -0
  287. package/dist/webcomponents/{p-DZQBPUfH.js → p-Bxc0NRj8.js} +1 -1
  288. package/dist/webcomponents/p-C60AkJ6a.js +1 -0
  289. package/dist/webcomponents/{p-Bl00tHyn.js → p-C6Jq8YDT.js} +1 -1
  290. package/dist/webcomponents/p-C9p1gWAC.js +1 -0
  291. package/dist/webcomponents/p-CTtGaVYs.js +1 -0
  292. package/dist/webcomponents/p-CgOgijHy.js +1 -0
  293. package/dist/webcomponents/{p-OReJ-ZQb.js → p-CtlBL-X6.js} +1 -1
  294. package/dist/webcomponents/p-D694H6co.js +1 -0
  295. package/dist/webcomponents/p-D7fNBSlC.js +1 -0
  296. package/dist/webcomponents/p-D7nyPi2Q.js +1 -0
  297. package/dist/webcomponents/{p-C-buCQRx.js → p-DC2djVls.js} +1 -1
  298. package/dist/webcomponents/{p-B0DHIvEj.js → p-DQmijfCN.js} +1 -1
  299. package/dist/webcomponents/p-Dqxyi-uK.js +1 -0
  300. package/dist/webcomponents/{p-ByQMBEDC.js → p-_MjmE9YT.js} +1 -1
  301. package/dist/webcomponents/{p-5348209c.entry.js → p-a10beb26.entry.js} +1 -1
  302. package/dist/webcomponents/{p-0f7cc07b.entry.js → p-a71cc8e2.entry.js} +1 -1
  303. package/dist/webcomponents/{p-d446ab68.entry.js → p-a7c594d1.entry.js} +1 -1
  304. package/dist/webcomponents/{p-c6f85bef.entry.js → p-a8d25057.entry.js} +1 -1
  305. package/dist/webcomponents/p-acb0b66c.entry.js +1 -0
  306. package/dist/webcomponents/{p-80a9f84c.entry.js → p-b9ba7c95.entry.js} +1 -1
  307. package/dist/webcomponents/{p-5a11c49f.entry.js → p-c385f10d.entry.js} +1 -1
  308. package/dist/webcomponents/p-c55fdbbf.entry.js +1 -0
  309. package/dist/webcomponents/{p-636c9571.entry.js → p-cec7164e.entry.js} +1 -1
  310. package/dist/webcomponents/p-d3544e86.entry.js +1 -0
  311. package/dist/webcomponents/{p-2549c891.entry.js → p-de047614.entry.js} +1 -1
  312. package/dist/webcomponents/p-f0434a13.entry.js +1 -0
  313. package/dist/webcomponents/{p-ddba9ab3.entry.js → p-f2b3c7d5.entry.js} +1 -1
  314. package/dist/webcomponents/{p-e55216fb.entry.js → p-f39889f2.entry.js} +1 -1
  315. package/dist/webcomponents/{p-f8764c8e.entry.js → p-f40fa614.entry.js} +1 -1
  316. package/dist/webcomponents/{p-b6ce91f0.entry.js → p-f5cb6a26.entry.js} +1 -1
  317. package/dist/webcomponents/p-f9f310dc.entry.js +1 -0
  318. package/dist/webcomponents/p-iA-Amt2z.js +1 -0
  319. package/dist/webcomponents/p-pueOrhXO.js +1 -0
  320. package/dist/webcomponents/{p-DnLqZpI1.js → p-rFpPIJgu.js} +1 -1
  321. package/dist/webcomponents/{p-CawcnSoV.js → p-riZDHN5-.js} +1 -1
  322. package/dist/webcomponents/webcomponents.esm.js +1 -1
  323. package/package.json +15 -17
  324. package/dist/webcomponents/p-1034e83d.entry.js +0 -1
  325. package/dist/webcomponents/p-18306b40.entry.js +0 -1
  326. package/dist/webcomponents/p-22a57828.entry.js +0 -1
  327. package/dist/webcomponents/p-2458de56.entry.js +0 -1
  328. package/dist/webcomponents/p-27b07530.entry.js +0 -1
  329. package/dist/webcomponents/p-2e82a488.entry.js +0 -1
  330. package/dist/webcomponents/p-33281304.entry.js +0 -1
  331. package/dist/webcomponents/p-3642e189.entry.js +0 -1
  332. package/dist/webcomponents/p-3c33b3c1.entry.js +0 -1
  333. package/dist/webcomponents/p-408a4f5f.entry.js +0 -20
  334. package/dist/webcomponents/p-76e96874.entry.js +0 -1
  335. package/dist/webcomponents/p-772ab8a3.entry.js +0 -1
  336. package/dist/webcomponents/p-7e64a668.entry.js +0 -1
  337. package/dist/webcomponents/p-9c45729d.entry.js +0 -1
  338. package/dist/webcomponents/p-9ed85832.entry.js +0 -1
  339. package/dist/webcomponents/p-BFi5l0xt.js +0 -1
  340. package/dist/webcomponents/p-CKgQN8v0.js +0 -1
  341. package/dist/webcomponents/p-CXsRwohv.js +0 -1
  342. package/dist/webcomponents/p-CbyGKcz_.js +0 -1
  343. package/dist/webcomponents/p-Cy2N3vAg.js +0 -1
  344. package/dist/webcomponents/p-CyOXIqHo.js +0 -1
  345. package/dist/webcomponents/p-D6uhYbLo.js +0 -1
  346. package/dist/webcomponents/p-DNuxxP2B.js +0 -1
  347. package/dist/webcomponents/p-DaDqgDrb.js +0 -1
  348. package/dist/webcomponents/p-Dn9_7aQh.js +0 -1
  349. package/dist/webcomponents/p-Do9dxNjh.js +0 -1
  350. package/dist/webcomponents/p-DsvK2pes.js +0 -1
  351. package/dist/webcomponents/p-FWuMPTxn.js +0 -1
  352. package/dist/webcomponents/p-a891caf8.entry.js +0 -1
  353. package/dist/webcomponents/p-d05257f9.entry.js +0 -1
  354. package/dist/webcomponents/p-d2e890a3.entry.js +0 -1
  355. package/dist/webcomponents/p-d397b38f.entry.js +0 -1
  356. package/dist/webcomponents/p-dd4eea27.entry.js +0 -1
  357. package/dist/webcomponents/p-e1e5bddf.entry.js +0 -1
  358. package/dist/webcomponents/p-fa2e7534.entry.js +0 -1
  359. package/dist/webcomponents/p-rznJBkm3.js +0 -1
@@ -1 +0,0 @@
1
- const s=[{label:"Choose state",value:""},{label:"Alabama",value:"AL"},{label:"Alaska",value:"AK"},{label:"American Samoa",value:"AS"},{label:"Arizona",value:"AZ"},{label:"Arkansas",value:"AR"},{label:"California",value:"CA"},{label:"Colorado",value:"CO"},{label:"Connecticut",value:"CT"},{label:"Delaware",value:"DE"},{label:"District Of Columbia",value:"DC"},{label:"Federated States Of Micronesia",value:"FM"},{label:"Florida",value:"FL"},{label:"Georgia",value:"GA"},{label:"Guam",value:"GU"},{label:"Hawaii",value:"HI"},{label:"Idaho",value:"ID"},{label:"Illinois",value:"IL"},{label:"Indiana",value:"IN"},{label:"Iowa",value:"IA"},{label:"Kansas",value:"KS"},{label:"Kentucky",value:"KY"},{label:"Louisiana",value:"LA"},{label:"Maine",value:"ME"},{label:"Marshall Islands",value:"MH"},{label:"Maryland",value:"MD"},{label:"Massachusetts",value:"MA"},{label:"Michigan",value:"MI"},{label:"Minnesota",value:"MN"},{label:"Mississippi",value:"MS"},{label:"Missouri",value:"MO"},{label:"Montana",value:"MT"},{label:"Nebraska",value:"NE"},{label:"Nevada",value:"NV"},{label:"New Hampshire",value:"NH"},{label:"New Jersey",value:"NJ"},{label:"New Mexico",value:"NM"},{label:"New York",value:"NY"},{label:"North Carolina",value:"NC"},{label:"North Dakota",value:"ND"},{label:"Northern Mariana Islands",value:"MP"},{label:"Ohio",value:"OH"},{label:"Oklahoma",value:"OK"},{label:"Oregon",value:"OR"},{label:"Palau",value:"PW"},{label:"Pennsylvania",value:"PA"},{label:"Puerto Rico",value:"PR"},{label:"Rhode Island",value:"RI"},{label:"South Carolina",value:"SC"},{label:"South Dakota",value:"SD"},{label:"Tennessee",value:"TN"},{label:"Texas",value:"TX"},{label:"Utah",value:"UT"},{label:"Vermont",value:"VT"},{label:"Virgin Islands",value:"VI"},{label:"Virginia",value:"VA"},{label:"Washington",value:"WA"},{label:"West Virginia",value:"WV"},{label:"Wisconsin",value:"WI"},{label:"Wyoming",value:"WY"}];function t(s){return/^\d$/.test(s)?"0"+s:s}function a(s,a,i){if(s&&a&&i)return`${s}-${t(a)}-${t(i)}`}function i(s){const t=s.value,[a,i,e]=t.split("-");return{dob_year:a,dob_month:i,dob_day:e}}function e(s){return s.associated_accounts.length>0}class l{constructor(s){this.address=Object.assign({},new b(s.address||{})),this.created_at=s.created_at,this.dob_day=t(s.dob_day),this.dob_month=t(s.dob_month),this.dob_year=s.dob_year,this.dob_full=a(this.dob_year,this.dob_month,this.dob_day)||"",this.documents=s.documents,this.email=s.email,this.id=s.id,this.business_id=s.business_id,this.is_owner=s.is_owner,this.metadata=s.metadata,this.name=s.name,this.phone=s.phone,this.platform_account_id=s.platform_account_id,this.identification_number=s.identification_number,this.ssn_last4=s.ssn_last4,this.title=s.title,this.ownership_percentage=s.ownership_percentage,this.updated_at=s.updated_at}get payload(){return{address:new b(this.address||{}).payload,dob_day:this.dob_day||"",dob_month:this.dob_month||"",dob_year:this.dob_year||"",email:this.email||"",identification_number:this.identification_number||void 0,is_owner:this.is_owner||!1,metadata:this.metadata||null,name:this.name||"",phone:this.phone||"",platform_account_id:this.platform_account_id||null,title:this.title||"",ownership_percentage:this.ownership_percentage||void 0}}}class h{constructor(s){this.address=Object.assign({},new b(s.address||{})),this.created_at=s.created_at,this.dob_day=t(s.dob_day),this.dob_month=t(s.dob_month),this.dob_year=s.dob_year,this.dob_full=a(this.dob_year,this.dob_month,this.dob_day)||"",this.documents=s.documents,this.email=s.email,this.id=s.id,this.business_id=s.business_id,this.is_owner=s.is_owner,this.metadata=s.metadata,this.name=s.name,this.phone=s.phone,this.platform_account_id=s.platform_account_id,this.identification_number=s.identification_number,this.ssn_last4=s.ssn_last4,this.title=s.title,this.ownership_percentage=s.ownership_percentage,this.updated_at=s.updated_at}get payload(){return{address:new b(this.address||{}).payload,dob_day:this.dob_day||"",dob_month:this.dob_month||"",dob_year:this.dob_year||"",email:this.email||"",is_owner:this.is_owner||!1,identification_number:this.identification_number||void 0,metadata:this.metadata||null,name:this.name||"",phone:this.phone||"",platform_account_id:this.platform_account_id||null,title:this.title||""}}}var n;!function(s){s.USA="USA",s.CAN="CAN"}(n||(n={}));const o=s=>{const t=(s||"").toString().trim().toUpperCase();return"US"===t||"USA"===t||t===n.USA?n.USA:"CA"===t||"CAN"===t||t===n.CAN?n.CAN:n.USA};var u,r;!function(s){s.fetchData="Error retrieving business data",s.patchData="Error updating business data"}(u||(u={})),function(s){s.sole_proprietor="sole_proprietor",s.partnership="partnership",s.corporation="corporation",s.public_company="public_company",s.limited="limited",s.non_profit="non_profit",s.government="government"}(r||(r={}));class b{constructor(t){this.id=t.id,this.platform_account_id=t.platform_account_id,this.line1=t.line1,this.line2=t.line2,this.postal_code=t.postal_code,this.city=t.city,this.state=function(t){const a=s.find((s=>s.label===t));return a?a.value:t}(t.state),this.country=o(t.country),this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{platform_account_id:this.platform_account_id||"",line1:this.line1||"",line2:this.line2||"",postal_code:this.postal_code||"",city:this.city||"",state:this.state||"",country:this.country||""}}}class c{constructor(s){this.business_revenue=s.business_revenue,this.business_payment_volume=s.business_payment_volume,this.business_average_transaction_amount=s.business_average_transaction_amount,this.business_when_service_received=s.business_when_service_received,this.business_recurring_payments=s.business_recurring_payments,this.business_recurring_payments_percentage=s.business_recurring_payments_percentage,this.business_seasonal=s.business_seasonal,this.business_other_payment_details=s.business_other_payment_details}get payload(){return{business_revenue:this.business_revenue||"",business_payment_volume:this.business_payment_volume||"",business_average_transaction_amount:this.business_average_transaction_amount||"",business_when_service_received:this.business_when_service_received||"",business_recurring_payments:this.business_recurring_payments||"",business_recurring_payments_percentage:this.business_recurring_payments_percentage||"",business_seasonal:this.business_seasonal||"",business_other_payment_details:this.business_other_payment_details||""}}}class v{constructor(s){this.classification=s.classification,this.legal_name=s.legal_name,this.doing_business_as=s.doing_business_as,this.industry=s.industry,this.tax_id=s.tax_id,this.tax_id_last4=s.tax_id_last4,this.website_url=s.website_url,this.email=s.email,this.phone=s.phone,this.date_of_incorporation=s.date_of_incorporation}get payload(){return Object.assign(Object.assign({classification:this.classification||"",legal_name:this.legal_name||"",doing_business_as:this.doing_business_as||"",industry:this.industry||""},!this.tax_id_last4&&{tax_id:this.tax_id||""}),{website_url:this.website_url||"",email:this.email||"",phone:this.phone||"",date_of_incorporation:this.date_of_incorporation||""})}}class d{constructor(s){this.additional_questions=s.additional_questions?new c(s.additional_questions):null,this.associated_accounts=s.associated_accounts,this.classification=s.classification,this.bank_accounts=s.bank_accounts,this.created_at=s.created_at,this.documents=s.documents,this.doing_business_as=s.doing_business_as,this.email=s.email,this.id=s.id,this.industry=s.industry,this.legal_address=(null==s?void 0:s.legal_address)?new b(s.legal_address):null,this.legal_name=s.legal_name,this.metadata=s.metadata,this.owners=s.owners,this.phone=s.phone,this.platform_account_id=s.platform_account_id,this.product_categories=s.product_categories,this.representative=s.representative?new h(s.representative):null,this.tax_id=s.tax_id,this.tax_id_last4=s.tax_id_last4,this.terms_conditions_accepted=s.terms_conditions_accepted,this.updated_at=s.updated_at,this.website_url=s.website_url,this.date_of_incorporation=s.date_of_incorporation,this.country_of_establishment=o(s.country_of_establishment),this.bank_account_verification=s.bank_account_verification}get payload(){return Object.assign(Object.assign({additional_questions:new c(this.additional_questions).payload,classification:this.classification||"",doing_business_as:this.doing_business_as||"",email:this.email||"",industry:this.industry||"",legal_address:new b(this.legal_address).payload,legal_name:this.legal_name||"",metadata:this.metadata||{},owners:this.owners.map((s=>({id:s.id}))),phone:this.phone||"",platform_account_id:this.platform_account_id||"",representative:new h(this.representative).payload},!this.tax_id_last4&&{tax_id:this.tax_id||""}),{tax_id_last4:this.tax_id_last4||"",website_url:this.website_url||"",date_of_incorporation:this.date_of_incorporation||"",country_of_establishment:this.country_of_establishment||n.USA})}}export{c as A,d as B,n as C,l as O,h as R,s as S,r as a,u as b,v as c,i as d,e,b as f}
@@ -1 +0,0 @@
1
- var e={name:"@justifi/webcomponents",version:"6.15.0-rc.1"};export{e as p}
@@ -1 +0,0 @@
1
- import{a as e}from"./p-D9sqTVmd.js";import{P as a,a as t}from"./p-CawcnSoV.js";import{S as s,C as r}from"./p-DaDqgDrb.js";import{a as n,c as i}from"./p-OReJ-ZQb.js";const d=[{label:"Choose state / province",value:""},...s.filter((e=>""!==e.value)),...a.filter((e=>""!==e.value))],l=e=>""===e?null:e,o=/^\d+$/,c=/P\.?\s?O\.?\s?Box|Postal\sBox/i,m=e().email("Enter valid email").transform(l),u=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),v=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),h=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),p=e().transform(l),E=e().min(2,"Industry must be at least 2 characters").max(50,"Industry must be less than 50 characters").transform(l),N=e().matches(o,"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(t[a].postalRegex,"Enter valid postal code").transform(l),g=a=>a===r.CAN?e().matches(o,"Enter valid SIN").length(t[a].identityDigits,"Enter valid SIN").test("not-repeat","Enter valid SIN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid SIN",(e=>"123456789"!==e)).transform(l):D,w=a=>a===r.CAN?e().matches(o,"Enter valid Business Number (BN)").length(t[a].taxIdDigits,"Enter valid Business Number (BN)").test("not-repeat","Enter valid Business Number (BN)",(e=>!e||!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid Business Number (BN)",(e=>!e||"123456789"!==e)).transform(l):N,A=e().test("past-date","Date of registration must be in the past",(e=>{const a=new Date(e);return a.setDate(a.getDate()+1),a<=new Date})).transform(l),B=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),$=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),D=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),y=(a=0)=>e().matches(o,"Enter valid percentage").test("min",`Ownership percentage must be at least ${a}%`,(e=>!e||parseFloat(e)>=a)).test("max","Percentage must be at most 100",(e=>!e||parseFloat(e)<=100)).transform(l),I=y(0),f=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),q=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),C=e().min(2,"City must be at least 2 characters").max(50,"City must be less than 50 characters").transform(l),P=e().oneOf(d.map((e=>e.value)),"Select a valid state or province").transform(l),Z=e().matches(/^((\d{5}-\d{4})|(\d{5})|([A-Z]\d[A-Z]\s\d[A-Z]\d))$/,"Enter valid postal code").transform(l),j=e().matches(o,"Enter valid revenue").transform(l),O=e().matches(o,"Enter valid payment volume").transform(l),z=e().oneOf(n.map((e=>e.value)),"Select when service is received").transform(l),F=e().transform(l),T=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(l),_=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(l),R=e().oneOf(i.map((e=>e.value)),"Select account type").transform(l),V=e().min(4,"Account number must be at least 4 digits").max(17,"Account number must be less than 17 digits").matches(o,"Enter valid account number").test("not-repeat","Enter valid account number",(e=>!/^(\d)\1+$/.test(e))).transform(l),k=e().length(9,"Routing number must be 9 digits").matches(o,"Enter valid routing number").test("not-repeat","Enter valid routing number",(e=>!e||!/^(\d)\1+$/.test(e))).test("valid","Enter valid routing number",(e=>!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{P as A,d as B,V as C,R as D,_ as E,T as F,o as G,k as H,v as a,p as b,b as c,A as d,m as e,z as f,O as g,C as h,E as i,f as j,S as k,q as l,w as m,I as n,F as o,u as p,x as q,j as r,D as s,N as t,$ as u,B as v,h as w,y as x,g as y,Z as z}
@@ -1 +0,0 @@
1
- import{A as t}from"./p-Bl00tHyn.js";import"./p-D6uhYbLo.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";const e=t();class o{async fetchCheckout(t,o){return e.get({endpoint:`checkouts/${o}`,authToken:t})}async fetchCheckouts(t,o,c){return e.get({endpoint:"checkouts",params:c,headers:{Account:t},authToken:o})}async complete(t,o,c){const n=`checkouts/${o}/complete`,s={payment_mode:c.payment_mode};return c.payment_token&&(s.payment_token=c.payment_token),e.post({endpoint:n,body:s,authToken:t})}}export{o as C}
@@ -1 +0,0 @@
1
- import{A as t}from"./p-Bl00tHyn.js";import"./p-D6uhYbLo.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";const a=t();class n{async fetchPayouts(t,n,o){return a.get({authToken:n,endpoint:`account/${t}/payouts`,params:o})}async fetchPayout(t,n){return a.get({authToken:n,endpoint:`payouts/${t}`})}async fetchCSV(t,n){return a.get({authToken:n,endpoint:`reports/payouts/${t}`})}async fetchPayoutTransactions(t,n,o){return a.get({authToken:n,endpoint:"balance_transactions",params:o,headers:{"sub-account":t}})}}export{n as P}
@@ -1 +0,0 @@
1
- import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import{c as s}from"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import{l as i,C as r,b as o}from"./p-D6uhYbLo.js";import{p as c}from"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import{J as n}from"./p-BHaO3c8W.js";import{c as d}from"./p-ByQMBEDC.js";import{g as p,a as h}from"./p-CLq3Og7o.js";import{P as l}from"./p-FWuMPTxn.js";import{T as f,a as u,b as m,c as b,d as y,e as _,f as g,g as w,h as T,i as j,j as v,k as D,l as k}from"./p-DZr0wLGh.js";import{S as P}from"./p-05AWudQe.js";import{T as C}from"./p-CZfYo5-1.js";import{a as O}from"./p-Ds_P-dB8.js";import{a6 as S,a7 as F}from"./p-Bu7gdOaV.js";import"./p-DgTOxu8x.js";import"./p-Dn9_7aQh.js";import"./p-Bl00tHyn.js";import"./p-MPer3Rw7.js";const I={id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:S,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:S,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:S,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:S,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:S,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:S,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},q={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit",processing_fee:"Processing Fee",refund_processing_fee:"Refund Processing Fee",fee_rounding_adjustment:"Fee Rounding Adjustment",platform_fee:"Platform Fee",processing_fee_return:"Processing Fee Return",platform_fee_return:"Platform Fee Return"},x={id:e=>t("td",{part:F(e.id)},e.id),account_id:e=>t("td",{part:F(e.account_id)},e.account_id),payout_id:e=>t("td",{part:F(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:F(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:F(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:F(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:F(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:F(e.currency)},e.currency),description:e=>t("td",{part:F(e.description)},e.description),source_id:e=>t("td",{part:F(e.source_id)},e.source_id),txn_type:e=>t("td",{part:F(e.txn_type)},q[e.txn_type]),created_at:e=>t("td",{part:F(e.created_at)},t("div",{class:"fw-bold"},O(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},O(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:F(e.available_on)},t("div",{class:"fw-bold"},O(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},O(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:F(e.updated_at)},t("div",{class:"fw-bold"},O(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},O(e.updated_at,{showTime:!0})))},A=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event",7),this.errorEvent=a(this,"error-event",7),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=c,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:C.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:C.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:C.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,I,x),d(),this.analytics=new n(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:s,onSuccess:o,onError:c,final:n})=>{var d;try{const n=await a.fetchPayoutTransactions(t,e,s);n.error?c({error:h(n.error),code:p(null===(d=n.error)||void 0===d?void 0:d.code),severity:r.ERROR}):o({balanceTransactions:n.data.map((t=>new i(t))),pagingInfo:Object.assign({},n.page_info)})}catch(t){const e=p(null==t?void 0:t.code);c({error:h(t),code:e,severity:r.ERROR})}finally{n()}})({accountId:s.accountId,authToken:this.authToken,service:new l})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(o.MISSING_PROPS,this.errorMessage,r.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(P,{key:"3d9b9479726dcfe62fc70ebefb57a56e2ea62a35"},t(u,{key:"209c0c312f8c110cbbc68f74a30dd635d9eb736f"},t(m,{key:"b141a06b688e8feeb2e45ddd03c5f5a0315213d1"},t(b,{key:"0d7b69a7a2611517f28cd59c48f5820979bad9df"},t(y,{key:"f5520cd56d00855566dcd2bbcacb5f8f28a0f552"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"b6082fab5bbfb059f03677a5a04496c835cfe15a"},t(g,{key:"99bfc2ec5a77f338c3da293fef90e2ac93f9a4b9",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(w,{key:"933501b918389f8aa5df515a05db4dbfdcb842d2",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(T,{key:"2b4ba69682b2633ca70941e53d2775b88a9d4222",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(j,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(v,{key:"ed6f56fd8dcee6c2327066eb09a8a39c122000d3"},t(D,{key:"763336a3b90b2c6433a91fff8a29bc3efd0c29c6"},t(k,{key:"91b2bc9767aa3cc1c5b860cad877b91abc4cf504",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"c78f9bf45e68e859027260671379779f4794e178",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{A as justifi_payout_transactions_list}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-OeJ-3w3l.js";import{c as d,a as s}from"./p-Ds_P-dB8.js";import{f as i,p as r,c as l}from"./p-BzjgvHHT.js";import{f,a as b}from"./p-Bu7gdOaV.js";import{S as o}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import"./p-B4vLfYnZ.js";import{g as c}from"./p-D6uhYbLo.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import"./p-BFTU3MAI.js";import"./p-HXpYMWUU.js";import"./p-DgTOxu8x.js";const n=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{i[e]=a},this.handleDateInput=(e,a)=>{const t=d(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({terminal_id:this.terminalId,status:this.terminalStatus,terminal_order_id:this.terminalOrderId,provider_id:this.providerId,serial_number:this.serialNumber,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(r[e]=a)}))}get terminalStatusOptions(){return[{label:"All",value:""},{label:"Connected",value:c.connected},{label:"Disconnected",value:c.disconnected},{label:"Unknown",value:c.unknown},{label:"Pending Configuration",value:c.pending_configuration},{label:"Archived",value:c.archived}]}render(){const e=Object.assign({},i);return a(o,{key:"e100df8270dd8161d6f5fb70e3b78bcad2e4612c"},a("table-filters-menu",{key:"481e098de0f5c520b42d0c321df905e84bf9d0c3",params:e,clearParams:l,part:f},a("div",{key:"d8181b09fa3f494c6f7d48dd610e916f069d8195",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"7f8c5d3ad775d5370cba8c7fe8f832a4e18659b2",class:"p-2"},a("form-control-text",{key:"13f4fe6dbea072f1f6467212e934252c2ff088fa",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||i.terminal_id,disabled:!!this.terminalId,part:b})),a("div",{key:"fb8d89eb35b33beffc3a5f341d7ebaedad512c2f",class:"p-2"},a("form-control-text",{key:"73a8d8680dbb31a7cc35e3ac6a7546c8196d4098",name:"terminal_order_id",label:"Terminal Order ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalOrderId||i.terminal_order_id,disabled:!!this.terminalOrderId,part:b})),a("div",{key:"58ffd48fe77453245d051ead6a42ec55c0fe2d81",class:"p-2"},a("form-control-text",{key:"8973954bde30170f91ecbf438569b5fbfea4ae0a",name:"provider_id",label:"Device ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.providerId||i.provider_id,disabled:!!this.providerId,part:b})),a("div",{key:"1cba8b5382df17110a48f86f0ff46ad4c7eea35a",class:"p-2"},a("form-control-text",{key:"ab588ac44e829e55071ab7b4f6d2ddbdd0cf435b",name:"serial_number",label:"Serial Number",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.serialNumber||i.serial_number,disabled:!!this.serialNumber,part:b})),a("div",{key:"ae41699df40190aefbc09ba3497519a050ebc6da",class:"p-2"},a("form-control-select",{key:"109661d1e1717cd5aab82ba546524a25db06da3f",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||i.status||"",disabled:!!this.terminalStatus,part:b})),a("div",{key:"40dd14fd0d6107205b03e3a8c8baf44479bb1d28",class:"p-2"},a("form-control-date",{key:"28ef5af635464ac1bab23b36bd20706db8c170e5",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:s(this.createdAfter||i.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:b})),a("div",{key:"b1a86e71311e23d7357aa76aa39516a7b29b1ddb",class:"p-2"},a("form-control-date",{key:"6b8c0cc26a1de911cd8edfc22f2f5bff8ea1f1a5",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:s(this.createdBefore||i.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:b})))))}};export{n as justifi_terminals_list_filters}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-OeJ-3w3l.js";import{f as d,p as s,c as l}from"./p-BLhz_ggG.js";import{f as c,a as i}from"./p-Bu7gdOaV.js";import{S as r}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{c as o,a as b}from"./p-Ds_P-dB8.js";import"./p-BFTU3MAI.js";import"./p-DgTOxu8x.js";import"./p-HXpYMWUU.js";const f=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{d[e]=a},this.handleDateInput=(e,a)=>{const t=o(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,payment_mode:this.paymentMode,checkout_id:this.checkoutId,account_holder:this.accountHolder,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[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"}]}get paymentModeOptions(){return[{label:"All",value:""},{label:"E-commerce",value:"ecom"},{label:"ACH",value:"ach"},{label:"Card Present",value:"card_present"}]}render(){const e=Object.assign({},d);return a(r,{key:"f19bb83c021b72fc0cba7ac570411276e3a8cd2a"},a("table-filters-menu",{key:"2427475b87179e05fc44995b57fc2be9b9c23a22",params:e,clearParams:l,part:c},a("div",{key:"f6c00222acbda692bfc96a77f790c0b9f92a0b06",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"924bf8180a4c78d0899c58ad3c306d7af31b9c72",class:"p-2"},a("form-control-text",{key:"29e7f5d581a78b9c843a844636cfebf17ec196c1",name:"payment_id",label:"Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.paymentId||d.payment_id,disabled:!!this.paymentId,part:i})),a("div",{key:"92edd8c13e031b568d6beb928eb41037726666dd",class:"p-2"},a("form-control-text",{key:"61ac4d0412a50c2fef1fc9564fde8312055a6a4a",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||d.terminal_id,disabled:!!this.terminalId,part:i})),a("div",{key:"1463d128da8051d6b7e94921f87534bd24134293",class:"p-2"},a("form-control-select",{key:"c8234d00cd7caee263daf3f585cffb6dc113d666",name:"payment_status",label:"Status",options:this.paymentStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentStatus||d.payment_status||"",disabled:!!this.paymentStatus,part:i})),a("div",{key:"89b8c58f7aca4272157e420efa3185372ccab934",class:"p-2"},a("form-control-select",{key:"4c872ce7bd1064c7eb16ce9aa715088ab2e9be51",name:"payment_mode",label:"Payment Mode",options:this.paymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentMode||d.payment_mode||"",disabled:!!this.paymentMode,part:i})),a("div",{key:"ffda8cfc8bdc3599d952f9efbcd1b2465d6e601c",class:"p-2"},a("form-control-text",{key:"d165ec8d4dcee2d9a7b6c519afb7ae40b6e00c4d",name:"checkout_id",label:"Checkout ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.checkoutId||d.checkout_id,disabled:!!this.checkoutId,part:i})),a("div",{key:"931df5bc1d177f69699552b04e62070fcf707a3c",class:"p-2"},a("form-control-text",{key:"b062770ff72d40f3057cd80a187fd9c67bae0e62",name:"account_holder",label:"Account Holder",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.accountHolder||d.account_holder,disabled:!!this.accountHolder,part:i})),a("div",{key:"a56ee10b2dfe557e548d58910be9279ce1d68b60",class:"p-2"},a("form-control-date",{key:"07e1be45c6ab427760f0aa33235242b6073648d5",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:b(this.createdAfter,{showInputDateTime:!0})||b(d.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:i})),a("div",{key:"d89eb4e09a2e402c5cbfc293fcba7b9d17da2f86",class:"p-2"},a("form-control-date",{key:"45dc2a2e1a2532f6cd2eac9e9e8deeb1e3cd3ea8",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:b(this.createdBefore,{showInputDateTime:!0})||b(d.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:i})))))}};export{f as justifi_payments_list_filters}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e,H as i}from"./p-CV0Pyo1O.js";import{P as h,Q as a,R as r,S as o,T as c,x as f}from"./p-Bu7gdOaV.js";const l=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.isFocused=!1,this.inputHandler=()=>{},this.disabled=!1,this.errorText="",this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.inputHandler(s,this.value),this.formControlInput.emit({name:s,value:this.value})}}get part(){return this.errorText?h:this.isFocused&&this.checked?a:this.checked?r:this.isFocused?o:c}render(){return e(i,{key:"802ff968414caa31fc93903ca89537d34708e0eb",class:"form-group d-flex flex-column"},e("div",{key:"b782870c627ff9e85182d32ebb4f98af05e6c59b",class:"form-check"},e("input",{key:"9e6f410196aeca8efde42ef45789e30472e70d68",ref:t=>this.radioElement=t,type:"radio",id:`${this.name}-${this.value}`,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onChange:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,value:this.value,checked:this.checked}),e("label",{key:"5e4e244d6366d64035471bbaa06e30c3f825c140",class:"form-check-label",htmlFor:`${this.name}-${this.value}`,part:f},this.label)),e("form-control-help-text",{key:"4ae7c930736d206deec1ddd192c516c92a20f892",helpText:this.helpText,name:this.name}),e("form-control-error-text",{key:"dc79053a9726e91b855fa1cf5264856fb2c1d7fb",errorText:this.errorText,name:this.name}))}};export{l as form_control_radio}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s}from"./p-CV0Pyo1O.js";import{B as a,C as d,D as c}from"./p-Bu7gdOaV.js";const i=class{constructor(s){e(this,s),this.selectedQuantityChange=t(this,"selectedQuantityChange",7),this.limit=1/0,this.selectedQuantity=0,this.removeUnit=()=>{this.selectedQuantity>0&&(this.selectedQuantity--,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))},this.addUnit=()=>{this.limit>0&&(this.selectedQuantity++,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))}}render(){return s("div",{key:"f7799c1d0227b5794b238a99498e013b4cd2b2a6",class:"rounded shadow-sm card p-2",part:c},s("div",{key:"4b378463cac2c44c7fbd51e7911bcc9e951b4ba6",class:"d-flex gap-3"},s("div",{key:"d3275100504d1d6d2497282490b75d6da276e10a",class:"d-flex align-items-center"},s("img",{key:"02a49684a5e7d789c435434e7da893ff16d16667",src:this.imageUrl,alt:this.modelName,height:75,width:75,part:a})),s("div",{key:"c11f0de1b3a39f0186e67ef3b957751d1a922fec",class:"d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center"},s("div",{key:"b605ffb5ca6a40ef1dcc32d2d9512826801c4a93",class:"row"},s("div",{key:"d5d2100f79930910019684bd22490292772e8593",class:"col-6 d-flex gap-2"},this.modelName,s("form-control-tooltip",{key:"ea39d5ac542abd22557986d68dbf61b8ddb5de00",helpText:this.description})),s("div",{key:"6755799b1b82b9287abf4f65051e96f71520e3fd",class:"col-6 d-flex justify-content-end align-items-center"},s("button",{key:"6902240a7b4575430fe36edffa74026f8192b12b",class:"p-0 minus btn",onClick:this.removeUnit,part:d},"-"),s("div",{key:"7bf497d2f874bf9c08dfffec66aea1c300a2faf5",class:"w-25 text-center"},this.selectedQuantity),s("button",{key:"20ac1180b5c1e4313d78d510af5f275377423968",class:"p-0 plus btn",onClick:this.addUnit,part:d},"+"))))))}};export{i as terminal_quantity_selector}
@@ -1 +0,0 @@
1
- import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-BFi5l0xt.js";import{m as i}from"./p-Cy2N3vAg.js";import{C as d,b as c,i as l,h as f}from"./p-D6uhYbLo.js";import{J as r}from"./p-BHaO3c8W.js";import{c as h}from"./p-ByQMBEDC.js";import"./p-B4vLfYnZ.js";import{b,d as o,s as p}from"./p-Ds_P-dB8.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import{P as n,M as m}from"./p-Bi_GCMx0.js";import{a as y,b as u,D as v,c as k,C as g,E as j}from"./p-Bh6Q8AqQ.js";import{S as D}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{S as C}from"./p-eBK-iWrz.js";import{a as x,B as w}from"./p-Dz8KJn2G.js";import"./p-Bl00tHyn.js";import"./p-Dn9_7aQh.js";import"./p-HXpYMWUU.js";import"./p-CLq3Og7o.js";import"./p-DgTOxu8x.js";import"./p-Bu7gdOaV.js";const P=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(C,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(C,{width:"70%"})),e("div",{class:"col-12"},e(C,{width:"40%"})),e("div",{class:"col-12"},e(C,{width:"40%"})),e("div",{class:"col-12"},e(C,{width:"100%"})),e("div",{class:"col-12"},e(C,{width:"80%"}))),B=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event",7),this.recordClickEvent=a(this,"record-click-event",7),this.loading=!0}componentWillLoad(){h(),this.analytics=new r(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?(this.getPaymentDetails=i({id:this.paymentId,authToken:this.authToken,service:new s}),this.fetchData()):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:c.MISSING_PROPS,severity:d.ERROR}))}updateOnPropChange(){this.getPaymentDetails&&this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.errorMessage=null},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:t,message:e,severity:a})},final:()=>{this.loading=!1}})}get PaymentStatus(){return this.payment.status===l.disputed&&this.payment.disputes.some((e=>e.status===f.lost))?n.DISPUTE_LOST:this.payment.status}render(){return e(D,{key:"b77daed074c1f07abcfeee7638fbf647b069bde1"},this.loading&&e(P,{key:"45a19735c7e7701b296b965089b6ef1ede777124"}),!this.loading&&this.errorMessage&&j(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"502d8daa5846c5cc788c14be4cd057d895d2a7fd",errorMessage:this.errorMessage},e(y,{key:"6ff5ebc6ef1b77b1cbcc2ca208685537c1645d3a",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},m(this.PaymentStatus),this.payment.expedited?e(x,{variant:w.WARNING,title:"Expedited",text:"Expedited"}):null),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(u,{key:"a897ad7896a9799c93359385e58411e545a61d90",classes:"border-1 border-end",title:"Updated At",value:`${b(this.payment.updated_at)} ${o(this.payment.updated_at)}`}),e(u,{key:"81fbaad82e06b4812dfb160ab5f02d4f869b93fa",classes:"border-1 border-end",title:"Created At",value:`${b(this.payment.created_at)} ${o(this.payment.created_at)}`}),e(u,{key:"f5082d85c20ce6bd99e064bca362cd4aadee681f",title:"ID",value:this.payment.id})),e("div",{key:"c15a688cbbde60de1b8c1c6039eb96b007f825f6",slot:"detail-sections"},e(v,{key:"1fdc9a1a427eef5ea84d19980888fdd0e0fd466f",sectionTitle:"Details"}),e("div",{key:"d9bcd098ad4872100efba37fe193c118ec2a38b6",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"782927345108d65ec1d8ebfa62334f62b1c653ac",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(k,{key:"1c7e30ecc5b221c4216e3ad62286e315add6c674",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"1dea42fd59f8df49a511501f6c20a2239f412170",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(k,{key:"daa6a42ac01396f59e74da0d652b573ad45210b9",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(k,{key:"5357b6c460c0ffe3a43b256b51e2b357fb05dd56",title:"Status",value:m(this.PaymentStatus)}),e(k,{key:"cf46249e7c4257997d08ca5fb8228e0426628dd8",title:"Payment ID",value:this.payment.id}),e(k,{key:"7517d6cae93f52f38c0610e9f7a67752f8b7883a",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"605d9022e18e47a99b77e63b7ca7ceb37c3ec5c4",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(k,{key:"853ec1f5830af8da7e9661fff631ef40a8bd18e8",title:"Description",value:this.payment.description}),e(k,{key:"202359a55318667dec12aec368600083f623448b",title:"Expedited",value:this.payment.expedited?"Yes":"No"})),this.payment.payment_method.card&&[e(v,{key:"422d91eeafdfd0562f277ab9962e07dd6223298f",sectionTitle:"Payment Method"}),e("div",{key:"8d5d46182aa5530c6a043ad547c6d1bc98f7f61d",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"1b5e9376aea8ec371d882fa1e537124c99ab2506",title:"ID",value:this.payment.payment_method.card.id}),e(k,{key:"bc3c4eb6bd54360e0d715968e9b2c476c904afcf",title:"Payment Type",value:"Card"}),e(k,{key:"b6b020a7372d3256d2fd8296788afbfb4c771075",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(k,{key:"38b37931c22669c0d2914d9480891a08215259d2",title:"Brand",value:p(this.payment.payment_method.card.brand)}),e(k,{key:"74d43cadb0a8bff45e84cd7c8cb8384c309a7439",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(v,{key:"90c6d65d001e6a5d6d608858c12a39fa976c672d",sectionTitle:"Payment Method"}),e("div",{key:"6907fb557de0817d22d150770d5fcfe21bacaa4a",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"5cc2abe0007d5527563c8c1893c104a6464ab467",title:"ID",value:this.payment.payment_method.bank_account.id}),e(k,{key:"bc743e7e9fccd70e7a7ea75031e5d605066fbcf2",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(k,{key:"d708a73bbe7df3f1e858b3a596e1fb5b38e4e2a4",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(k,{key:"5975c7912a3e0dc2f706d1d9b3d47b21bcebc8a9",title:"Account Owner",value:this.payment.payment_method.payersName}))],this.payment.metadata&&[e(v,{key:"197374ce471a49da70ac888d17a5d7ab2a048e5b",sectionTitle:"Metadata"}),e("div",{key:"a5e94195d5b193aac71fae2ec02cb9be966cca91",class:"d-table gap-2 w-100"},e(g,{key:"0b909d0164abd958eba48461fd816ef6001b3e2b",metadata:this.payment.metadata}))])))}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"],getPaymentDetails:["updateOnPropChange"]}}};export{B as justifi_payment_details}
@@ -1 +0,0 @@
1
- import{h as i,r as s,c as t}from"./p-CV0Pyo1O.js";import{a9 as e,a8 as r,a1 as o,t as l}from"./p-Bu7gdOaV.js";import{S as d}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{c as n}from"./p-ByQMBEDC.js";import{J as a}from"./p-BHaO3c8W.js";import{o as h,C as c,p as u,f as v,b as p}from"./p-D6uhYbLo.js";import{B as m}from"./p-DnLqZpI1.js";import{B as f}from"./p-DaDqgDrb.js";import{m as g}from"./p-CyOXIqHo.js";import{S as w}from"./p-eBK-iWrz.js";import"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import"./p-CLHwhyvu.js";import{g as x,a as y}from"./p-CLq3Og7o.js";import{T as b}from"./p-C-buCQRx.js";import{k as j}from"./p-Ds_P-dB8.js";import"./p-Dn9_7aQh.js";import"./p-Bl00tHyn.js";import"./p-DgTOxu8x.js";const C=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(w,{width:"25%"})),i("div",{class:"col-12"},i(w,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(w,{width:"50%"}),i(w,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(w,{width:"65%"}),i(w,{width:"35%"}))),B=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(w,{width:"40%",height:"40px"})),i(C,null)),O=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(w,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),i("div",{class:"flex-grow-1"},i("div",{class:"d-flex row flex-row"},i("div",{class:"col-6 flex-column"},i(w,null),i(w,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(w,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(w,{width:"80px",height:"32px"}),i(w,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(w,null),i(w,null)))))),S=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.submitted=t(this,"submit-event",7),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new u({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?v.boardingShipping:v.boardingOnly}),n(),this.analytics=new a(this),this.loadData()}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}handleError(i,s,t){this.error={message:i,code:s,severity:t},this.errorEvent.emit({errorCode:s,message:i,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",p.MISSING_PROPS,c.ERROR)}initializeGetBusiness(){g({id:this.businessId,authToken:this.authToken,service:new m})({onSuccess:({business:i})=>{this.business=new f(i)},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t)},final:()=>{this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,n;try{const a=await t.fetchTerminalModels(i,s);if(a.error)return r({error:y(a.error),code:x(null===(n=a.error)||void 0===n?void 0:n.code),severity:c.ERROR});e({terminals:(null===(l=null===(o=a.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((i=>new h(i))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=x(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:c.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new b})({onSuccess:({terminals:i,orderLimit:s})=>{this.terminalModels=i,this.orderLimit=s,this.loading.terminals=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.terminals=!1}})}submitOrder(){const i=(({authToken:i,service:s,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await s.orderTerminals(i,e,t);if(d.error)return o({error:y(d.error),code:x(null===(l=d.error)||void 0===l?void 0:l.code),severity:c.ERROR});{const{data:i}=d;r({data:i})}}catch(i){const s=x(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:c.ERROR})}})({authToken:this.authToken,service:new b});this.submitting=!0,i({terminalOrder:this.order.payload,onSuccess:({data:i})=>{this.submitted.emit(i),this.submitting=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.submitting=!1}})}onSelectedQuantityChange(i){this.order.updateTerminal(i.detail.modelName,i.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return i("div",null,this.loading.business&&i(B,null),this.loading.terminals&&i("div",{class:"mt-5"},i(O,null),i(O,null),i(O,null)))}renderBusinessDetails(){var s,t,o,l,d,n,a,h;if(!this.loading.business&&this.business)return i("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},i("div",{class:"row"},i("div",{class:"col-12"},i("h2",{part:r},this.business.legal_name))),i("div",{class:"row"},i("div",{class:"col-6"},i("h5",{part:e},"Representative:"),i("div",null,i("div",null,null===(t=null===(s=this.business)||void 0===s?void 0:s.representative)||void 0===t?void 0:t.name),i("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),i("div",null,null===(n=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===n?void 0:n.email),i("div",null,j(null===(h=null===(a=this.business)||void 0===a?void 0:a.representative)||void 0===h?void 0:h.phone)))),i("div",{class:"col-6"},i("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),i("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",i("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return i("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((s=>i("terminal-quantity-selector",{modelName:s.model_name,description:s.description,imageUrl:s.image_url,helpUrl:s.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return i("div",{class:"mt-3"},i("div",{class:"text-end"},"Order limit: ",this.orderLimit),i("div",{class:"d-flex justify-content-end mt-3"},i("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return i(d,{key:"284975f2cc9a27877e8ede55097cfeef7d951cf1"},i("div",{key:"1be899276b0b935738a916773f310d2c2d60e29a",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{S as justifi_order_terminals}
@@ -1 +0,0 @@
1
- import{A as o}from"./p-Bl00tHyn.js";import{S as r,C as s}from"./p-D6uhYbLo.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import{g as t,a as n}from"./p-CLq3Og7o.js";const c=o();class a{async fetchSubAccounts(o,r,s){return c.get({authToken:r,endpoint:"sub_accounts",params:s,headers:{Account:o}})}}const e=({primaryAccountId:o,authToken:c,service:a})=>async({params:e,onSuccess:p,onError:i})=>{var u,m;try{const v=await a.fetchSubAccounts(o,c,e);if(v.error){return i({error:n(v.error),code:t(null===(m=v.error)||void 0===m?void 0:m.code),severity:s.ERROR})}{const o=Object.assign({},v.page_info);p({subAccounts:(null===(u=v.data)||void 0===u?void 0:u.map((o=>new r(o))))||[],pagingInfo:o})}}catch(o){const r=t(null==o?void 0:o.code);return i({error:o.message||o,code:r,severity:s.ERROR})}};export{a as S,e as m}