@justifi/webcomponents 6.15.0-rc.2 → 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.
- package/LICENSE +21 -0
- package/dist/cjs/{Analytics-COhunq0p.js → Analytics-BjZHa0wt.js} +4 -4
- package/dist/cjs/{Api-Do6SaltY.js → Api-us3AxMRC.js} +1 -1
- package/dist/cjs/{Business-oBifyXkW.js → Business-CNaz-VLa.js} +5 -1
- package/dist/cjs/{Plaid-D85oV9FN.js → Plaid-BcOAKDaU.js} +1 -1
- package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +13 -13
- package/dist/cjs/additional-questions_4.cjs.entry.js +3 -3
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +4 -4
- package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +2 -2
- package/dist/cjs/bank-account-form.cjs.entry.js +4 -4
- package/dist/cjs/{business-form-options-CnlrfbQ6.js → business-form-options-BHBs_yiK.js} +1 -1
- package/dist/cjs/{business-identity-schema-hpDJFnB4.js → business-identity-schema-XiCLzxWM.js} +3 -3
- package/dist/cjs/{business.service-72YETCdB.js → business.service-_Sl3vWmu.js} +3 -3
- package/dist/cjs/card-form.cjs.entry.js +4 -4
- package/dist/cjs/{check-pkg-version-BxGoSXGD.js → check-pkg-version-CjJab8fX.js} +1 -1
- package/dist/cjs/{checkout-actions-BRQFQ6n-.js → checkout-actions-CQyGpVPe.js} +2 -2
- package/dist/cjs/{checkout.service-CPsXfx0Z.js → checkout.service-B_qymeqJ.js} +3 -3
- package/dist/cjs/{country-config-C1bWmF8P.js → country-config-DQQujh5h.js} +1 -1
- package/dist/cjs/dispute-notification_2.cjs.entry.js +8 -8
- package/dist/cjs/{event-types-UHzCC7Ga.js → event-types-DmY59QXs.js} +3 -3
- package/dist/cjs/form-address-fields_3.cjs.entry.js +2 -2
- package/dist/cjs/form-alert_3.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number_2.cjs.entry.js +4 -4
- package/dist/cjs/{get-business-BpaRbn5S.js → get-business-BVxtiSDs.js} +3 -3
- package/dist/cjs/{get-payment-details-Cmg8gWvo.js → get-payment-details-DR1GgpyX.js} +3 -3
- package/dist/cjs/{get-subaccounts-Bp7DOmM_.js → get-subaccounts-BMY2bOFj.js} +4 -4
- package/dist/cjs/{input-handlers-_51J5q7J.js → input-handlers-v9h_2Ysi.js} +1 -1
- package/dist/cjs/justifi-apple-pay_12.cjs.entry.js +17 -11
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +6 -6
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-form.cjs.entry.js +13 -13
- package/dist/cjs/justifi-card-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +8 -8
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +33 -20
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payments-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-qr-terminal.cjs.entry.js +9 -9
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +9 -9
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +9 -9
- package/dist/cjs/{package-G3Vs7Jx5.js → package-30T__1wH.js} +1 -1
- package/dist/cjs/{payment-provisioning-actions-DDooZhhk.js → payment-provisioning-actions-SVp7B8pR.js} +2 -2
- package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-CVwTrHEL.js → payment.service-DRXVT-uB.js} +3 -3
- package/dist/cjs/{payout.service-CL3VR0hN.js → payout.service-CuQ-mXKB.js} +3 -3
- package/dist/cjs/{payouts-status-1IUtW-UQ.js → payouts-status-BvHeuy9v.js} +2 -2
- package/dist/cjs/{plaid.service-Cukg5wuY.js → plaid.service-B58nzlUE.js} +3 -3
- package/dist/cjs/{schema-validations-DehT309E.js → schema-validations-sjRvL4KO.js} +5 -4
- package/dist/cjs/{terminal.service-C0KG7BqL.js → terminal.service-CmtSEgTc.js} +3 -3
- package/dist/cjs/{utils-CBriZzRC.js → utils-BScgWJC5.js} +1 -1
- package/dist/collection/api/Business.js +2 -0
- package/dist/collection/api/Checkout.js +1 -1
- package/dist/collection/components/business-forms/schemas/schema-helpers.js +2 -1
- package/dist/collection/components/business-forms/utils/helpers.js +3 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +4 -2
- package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +3 -3
- package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +7 -1
- package/dist/docs.json +2 -2
- package/dist/esm/{Analytics-3WmRTICF.js → Analytics-BtMYbHD0.js} +4 -4
- package/dist/esm/{Api-83B3f28Q.js → Api-nVK-rgbk.js} +1 -1
- package/dist/esm/{Business-DaDqgDrb.js → Business-CTtGaVYs.js} +5 -1
- package/dist/esm/{Plaid-BP3xNxQF.js → Plaid-CRcTLeaz.js} +1 -1
- package/dist/esm/additional-questions-form-step_15.entry.js +13 -13
- package/dist/esm/additional-questions_4.entry.js +3 -3
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +4 -4
- package/dist/esm/bank-account-document-form-inputs.entry.js +2 -2
- package/dist/esm/bank-account-form.entry.js +4 -4
- package/dist/esm/{business-form-options-BxVQL9ar.js → business-form-options-DLRkVtee.js} +1 -1
- package/dist/esm/{business-identity-schema-BkmRlnQo.js → business-identity-schema-BP61Unwf.js} +3 -3
- package/dist/esm/{business.service-CTqiKKy5.js → business.service-Cq7H5w1T.js} +3 -3
- package/dist/esm/card-form.entry.js +4 -4
- package/dist/esm/{check-pkg-version-CmFl6VLH.js → check-pkg-version-BW9zgceK.js} +1 -1
- package/dist/esm/{checkout-actions-0ftD0elo.js → checkout-actions-CWnrb317.js} +2 -2
- package/dist/esm/{checkout.service-wjFjBxIB.js → checkout.service-JA7oTq5d.js} +3 -3
- package/dist/esm/{country-config-CJwnhkdq.js → country-config-F5YwgHgR.js} +1 -1
- package/dist/esm/dispute-notification_2.entry.js +8 -8
- package/dist/esm/{event-types-cqQHLwCy.js → event-types-Dsf8IwD6.js} +3 -3
- package/dist/esm/form-address-fields_3.entry.js +2 -2
- package/dist/esm/form-alert_3.entry.js +1 -1
- package/dist/esm/form-control-number_2.entry.js +4 -4
- package/dist/esm/{get-business-BLCT-zfN.js → get-business-IZpxKRZM.js} +3 -3
- package/dist/esm/{get-payment-details-BokzuPGl.js → get-payment-details-DSI41Pq5.js} +3 -3
- package/dist/esm/{get-subaccounts-ClGG-LRZ.js → get-subaccounts-B-S2TGRa.js} +4 -4
- package/dist/esm/{input-handlers-Dfuc6aDW.js → input-handlers-Dm8jO-BT.js} +1 -1
- package/dist/esm/justifi-apple-pay_12.entry.js +17 -11
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +6 -6
- package/dist/esm/justifi-bank-account-form.entry.js +6 -6
- package/dist/esm/justifi-business-details.entry.js +9 -9
- package/dist/esm/justifi-business-form.entry.js +13 -13
- package/dist/esm/justifi-card-form.entry.js +6 -6
- package/dist/esm/justifi-checkout-qr-code.entry.js +6 -6
- package/dist/esm/justifi-checkout.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -4
- package/dist/esm/justifi-checkouts-list.entry.js +11 -11
- package/dist/esm/justifi-dispute-management.entry.js +8 -8
- package/dist/esm/justifi-gross-payment-chart.entry.js +33 -20
- package/dist/esm/justifi-order-terminals.entry.js +10 -10
- package/dist/esm/justifi-payment-details.entry.js +9 -9
- package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
- package/dist/esm/justifi-payment-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payments-list.entry.js +8 -8
- package/dist/esm/justifi-payout-details.entry.js +9 -9
- package/dist/esm/justifi-payout-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +10 -10
- package/dist/esm/justifi-qr-terminal.entry.js +9 -9
- package/dist/esm/justifi-refund-payment.entry.js +9 -9
- package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -7
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +7 -7
- package/dist/esm/justifi-terminals-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +9 -9
- package/dist/esm/{package-CAVi_ne1.js → package-BC9n8nB2.js} +1 -1
- package/dist/esm/{payment-provisioning-actions-VRIPjnAQ.js → payment-provisioning-actions-VtleD509.js} +2 -2
- package/dist/esm/payment-provisioning-form-buttons_2.entry.js +1 -1
- package/dist/esm/{payment.service-D7uv5vym.js → payment.service-B42sKlQE.js} +3 -3
- package/dist/esm/{payout.service-BoSyqft1.js → payout.service-BIoAgNJJ.js} +3 -3
- package/dist/esm/{payouts-status-CaiC5qpn.js → payouts-status-CnIf4XDi.js} +2 -2
- package/dist/esm/{plaid.service-DufQkxDk.js → plaid.service-C6Ltk2ef.js} +3 -3
- package/dist/esm/{schema-validations-8dbMCACI.js → schema-validations-De7Qe0VU.js} +5 -4
- package/dist/esm/{terminal.service-BM2aebB6.js → terminal.service-DV3qIwBy.js} +3 -3
- package/dist/esm/{utils-YUOJKtjO.js → utils-DaPywmTI.js} +1 -1
- package/dist/module/Business.js +5 -1
- package/dist/module/Plaid.js +1 -1
- package/dist/module/justifi-apple-pay2.js +7 -1
- package/dist/module/justifi-checkouts-list-filters.js +4 -2
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-gross-payment-chart.js +26 -13
- package/dist/module/package.js +1 -1
- package/dist/module/schema-validations.js +2 -1
- package/dist/types/api/Business.d.ts +2 -0
- package/dist/types/api/Checkout.d.ts +7 -7
- package/dist/types/components/checkouts-list/justifi-checkouts-list.d.ts +1 -1
- package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +1 -0
- package/dist/types/components.d.ts +1 -1
- package/dist/webcomponents/p-065b854f.entry.js +1 -0
- package/dist/webcomponents/{p-b98ea26a.entry.js → p-082f912c.entry.js} +1 -1
- package/dist/webcomponents/{p-5c89dcdf.entry.js → p-0cd689f4.entry.js} +1 -1
- package/dist/webcomponents/{p-6eb65d23.entry.js → p-0e9351c4.entry.js} +1 -1
- package/dist/webcomponents/p-0f7e3515.entry.js +20 -0
- package/dist/webcomponents/{p-f3682c72.entry.js → p-13814028.entry.js} +1 -1
- package/dist/webcomponents/{p-bf3866b3.entry.js → p-16261d8a.entry.js} +1 -1
- package/dist/webcomponents/p-19cabdaf.entry.js +1 -0
- package/dist/webcomponents/{p-cb1cc88e.entry.js → p-1cfa634a.entry.js} +1 -1
- package/dist/webcomponents/p-2ef913b8.entry.js +1 -0
- package/dist/webcomponents/{p-25f70d5f.entry.js → p-3a1f8c5b.entry.js} +1 -1
- package/dist/webcomponents/{p-0aa96018.entry.js → p-429046e1.entry.js} +1 -1
- package/dist/webcomponents/{p-4cad48c1.entry.js → p-44ff4f2c.entry.js} +1 -1
- package/dist/webcomponents/{p-68e88747.entry.js → p-4740601b.entry.js} +1 -1
- package/dist/webcomponents/{p-50c2b8f0.entry.js → p-59b95eae.entry.js} +1 -1
- package/dist/webcomponents/{p-1cdbe8c1.entry.js → p-5c889829.entry.js} +1 -1
- package/dist/webcomponents/p-6c7fca1a.entry.js +1 -0
- package/dist/webcomponents/{p-5dcb1713.entry.js → p-735d397e.entry.js} +1 -1
- package/dist/webcomponents/p-8432cb42.entry.js +1 -0
- package/dist/webcomponents/{p-f5358a80.entry.js → p-88a44a02.entry.js} +1 -1
- package/dist/webcomponents/{p-f9f0cb1f.entry.js → p-89f0c2aa.entry.js} +1 -1
- package/dist/webcomponents/p-9b43b90d.entry.js +1 -0
- package/dist/webcomponents/p-9db15fac.entry.js +1 -0
- package/dist/webcomponents/{p-b23dfa13.entry.js → p-9eb00966.entry.js} +1 -1
- package/dist/webcomponents/p-BAvoKtN2.js +1 -0
- package/dist/webcomponents/p-BC9n8nB2.js +1 -0
- package/dist/webcomponents/p-BDtSw_d-.js +1 -0
- package/dist/webcomponents/{p-CIpBEUtx.js → p-B_2zgnvM.js} +1 -1
- package/dist/webcomponents/{p-CLq3Og7o.js → p-BhpaUYtS.js} +1 -1
- package/dist/webcomponents/{p-nbKvRcwU.js → p-BjjKkMO1.js} +1 -1
- package/dist/webcomponents/p-BmaQUnqv.js +1 -0
- package/dist/webcomponents/{p-DZQBPUfH.js → p-Bxc0NRj8.js} +1 -1
- package/dist/webcomponents/p-C60AkJ6a.js +1 -0
- package/dist/webcomponents/{p-vIQBTQmc.js → p-C6Jq8YDT.js} +1 -1
- package/dist/webcomponents/p-C9p1gWAC.js +1 -0
- package/dist/webcomponents/p-CTtGaVYs.js +1 -0
- package/dist/webcomponents/p-CgOgijHy.js +1 -0
- package/dist/webcomponents/{p-OReJ-ZQb.js → p-CtlBL-X6.js} +1 -1
- package/dist/webcomponents/p-D694H6co.js +1 -0
- package/dist/webcomponents/p-D7fNBSlC.js +1 -0
- package/dist/webcomponents/p-D7nyPi2Q.js +1 -0
- package/dist/webcomponents/p-DC2djVls.js +1 -0
- package/dist/webcomponents/{p-B0DHIvEj.js → p-DQmijfCN.js} +1 -1
- package/dist/webcomponents/p-Dqxyi-uK.js +1 -0
- package/dist/webcomponents/{p-BEL8sLz6.js → p-_MjmE9YT.js} +1 -1
- package/dist/webcomponents/{p-c3818a5a.entry.js → p-a10beb26.entry.js} +1 -1
- package/dist/webcomponents/{p-7002286e.entry.js → p-a71cc8e2.entry.js} +1 -1
- package/dist/webcomponents/{p-ced6f6f1.entry.js → p-a7c594d1.entry.js} +1 -1
- package/dist/webcomponents/{p-6931a1f2.entry.js → p-a8d25057.entry.js} +1 -1
- package/dist/webcomponents/{p-ee7fe3a8.entry.js → p-b9ba7c95.entry.js} +1 -1
- package/dist/webcomponents/{p-5842d4e8.entry.js → p-c385f10d.entry.js} +1 -1
- package/dist/webcomponents/p-c55fdbbf.entry.js +1 -0
- package/dist/webcomponents/{p-eb31024f.entry.js → p-cec7164e.entry.js} +1 -1
- package/dist/webcomponents/p-d3544e86.entry.js +1 -0
- package/dist/webcomponents/{p-9e9a2546.entry.js → p-de047614.entry.js} +1 -1
- package/dist/webcomponents/{p-c5424fda.entry.js → p-f2b3c7d5.entry.js} +1 -1
- package/dist/webcomponents/{p-e55216fb.entry.js → p-f39889f2.entry.js} +1 -1
- package/dist/webcomponents/{p-6c94218c.entry.js → p-f40fa614.entry.js} +1 -1
- package/dist/webcomponents/{p-5d7b3d71.entry.js → p-f5cb6a26.entry.js} +1 -1
- package/dist/webcomponents/{p-fdd087d4.entry.js → p-f9f310dc.entry.js} +1 -1
- package/dist/webcomponents/p-iA-Amt2z.js +1 -0
- package/dist/webcomponents/p-pueOrhXO.js +1 -0
- package/dist/webcomponents/{p-CJEetAx7.js → p-rFpPIJgu.js} +1 -1
- package/dist/webcomponents/{p-CawcnSoV.js → p-riZDHN5-.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +15 -17
- package/dist/webcomponents/p-27igUlku.js +0 -1
- package/dist/webcomponents/p-3642e189.entry.js +0 -1
- package/dist/webcomponents/p-5f8c30b6.entry.js +0 -1
- package/dist/webcomponents/p-74575a99.entry.js +0 -1
- package/dist/webcomponents/p-7c405573.entry.js +0 -1
- package/dist/webcomponents/p-825a7ee6.entry.js +0 -1
- package/dist/webcomponents/p-909a9828.entry.js +0 -20
- package/dist/webcomponents/p-955c06d3.entry.js +0 -1
- package/dist/webcomponents/p-BAKuMxC9.js +0 -1
- package/dist/webcomponents/p-BSxXlu9H.js +0 -1
- package/dist/webcomponents/p-CAVi_ne1.js +0 -1
- package/dist/webcomponents/p-CXsRwohv.js +0 -1
- package/dist/webcomponents/p-CbyGKcz_.js +0 -1
- package/dist/webcomponents/p-Cy2N3vAg.js +0 -1
- package/dist/webcomponents/p-CyOXIqHo.js +0 -1
- package/dist/webcomponents/p-D6uhYbLo.js +0 -1
- package/dist/webcomponents/p-DN7VhlTn.js +0 -1
- package/dist/webcomponents/p-DNuxxP2B.js +0 -1
- package/dist/webcomponents/p-D_84NsmN.js +0 -1
- package/dist/webcomponents/p-DaDqgDrb.js +0 -1
- package/dist/webcomponents/p-Do9dxNjh.js +0 -1
- package/dist/webcomponents/p-PdwJswAy.js +0 -1
- package/dist/webcomponents/p-ca13117d.entry.js +0 -1
- package/dist/webcomponents/p-d59676ea.entry.js +0 -1
- package/dist/webcomponents/p-d98bc829.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{A as e}from"./p-
|
|
1
|
+
import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{A as e}from"./p-C6Jq8YDT.js";import{C as r,b as o}from"./p-Dqxyi-uK.js";import"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";import{g as a,a as n}from"./p-BhpaUYtS.js";import{J as c}from"./p-BjjKkMO1.js";import{c as l}from"./p-_MjmE9YT.js";import{c as h}from"./p-Fpaf7CLD.js";import{p as d,f as p,r as u,i as v}from"./p-Ds_P-dB8.js";import{v as m,i as y,a as f,H as j}from"./p-x2oNTAWh.js";import{t as _,z as g}from"./p-Bu7gdOaV.js";import{S as T}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{S as C}from"./p-eBK-iWrz.js";import"./p-B4vLfYnZ.js";import"./p-DgTOxu8x.js";import"./p-BC9n8nB2.js";import"./p-DEx8fQeW.js";import"./p-HXpYMWUU.js";const k=e();class b{async fetchQuote(s,t){return k.post({endpoint:"insurance/quotes",body:t,authToken:s})}async toggleCoverage(s,t,i){return k.post({endpoint:`insurance/quotes/${t}/toggle`,body:i,authToken:s})}}const w=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(C,{width:"35%",height:"30px"})),s("div",{class:"col-12"},s(C,{width:"70%"})),s("div",{class:"col-12"},s(C,{width:"40%"})),s("div",{class:"col-12"},s(C,{width:"40%"})),s("div",{class:"col-12"},s(C,{width:"100%"})),s("div",{class:"col-12"},s(C,{width:"80%"}))),x=class{constructor(s){t(this,s),this.insuranceUpdated=i(this,"insurance-updated",7),this.errorEvent=i(this,"error-event",7),this.isLoading=!0}async validate(){return m()}processHTMLContent(s){return d(s,[s=>u(s,"style"),s=>v(s,"a","part",_),s=>v(s,"p","part",_)])}componentWillLoad(){l(),this.analytics=new c(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeServiceMethods(){const s=this.authToken||h.authToken;if(!s)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const t={authToken:s,service:new b};this.getQuote=(({authToken:s,service:t})=>async({payload:i,onSuccess:e,onError:o})=>{var c;try{const l=await t.fetchQuote(s,i);if(l.error)return o({error:n(l.error),code:a(null===(c=l.error)||void 0===c?void 0:c.code),severity:r.ERROR});e({quote:l.data})}catch(s){const t=a(null==s?void 0:s.code);return o({error:s.message||s,code:t,severity:r.ERROR})}})(t),this.toggleCoverage=(({authToken:s,service:t})=>async({quoteId:i,payload:e,onSuccess:o,onError:c})=>{var l;try{const h=await t.toggleCoverage(s,i,e);if(h.error)return c({error:n(h.error),code:a(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(s){const t=a(null==s?void 0:s.code);return c({error:s.message||s,code:t,severity:r.ERROR})}})(t)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||h.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:s})=>{this.quote=s,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),y[s.policy_type]=s.accepted,this.isLoading=!1},onError:({error:s,code:t,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}onChangeHandler(s,t){this.accepted=t,f[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),y[this.quote.policy_type]=this.accepted},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}get error(){var s;return f[null===(s=this.quote)||void 0===s?void 0:s.policy_type]}render(){var t,i,e,r;return h&&!1===h.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):s(T,null,this.isLoading?s(w,null):s("div",null,s(j,{text:null===(t=this.quote)||void 0===t?void 0:t.product.title,class:"fs-5 fw-bold pb-3"}),s("small",{part:_,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),s("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:g},"Please select an option"),s("small",{part:_,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{x as justifi_season_interruption_insurance}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-OeJ-3w3l.js";import"./p-B4vLfYnZ.js";import{c as s,a as l}from"./p-Ds_P-dB8.js";import{I as d,a as c}from"./p-Dqxyi-uK.js";import"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";import{f as i,p as r,c as o}from"./p-CArdj6i_.js";import{f as p,a as f}from"./p-Bu7gdOaV.js";import{S as b}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-DgTOxu8x.js";import"./p-HXpYMWUU.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{i[e]=a},this.handleDateInput=(e,a)=>{const t=s(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({status:this.checkoutStatus,payment_mode:this.paymentMode,checkout_id:this.checkoutId,successful_payment_id:this.successfulPaymentId,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(r[e]=a)}))}get checkoutStatusOptions(){return[{label:"All",value:""},{label:"Created",value:d.created},{label:"Completed",value:d.completed},{label:"Attempted",value:d.attempted},{label:"Expired",value:d.expired}]}get checkoutPaymentModeOptions(){return[{label:"All",value:""},{label:"E-commerce",value:c.ecom},{label:"BNPL",value:c.bnpl},{label:"Apple Pay",value:c.apple_pay},{label:"Paypal",value:c.paypal},{label:"Venmo",value:c.venmo}]}render(){const e=Object.assign({},i);return a(b,{key:"eca6b148bbea71d2ae0169aa67251ab87cadc1df"},a("table-filters-menu",{key:"87af760346bd028aca6fb5f29ad9d16d1344e0e5",params:e,clearParams:o,part:p},a("div",{key:"63a139d5d7f213bd0b7496f8076b2c95a36860a3",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"ae268b747aa817dee8e8c762132008d59ed6cb6f",class:"p-2"},a("form-control-text",{key:"a8a0139e9a8671c0a74f7bb5cb7d40cc5c76f9e8",name:"checkout_id",label:"Checkout ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.checkoutId||i.checkout_id,disabled:!!this.checkoutId,part:f})),a("div",{key:"5fbd8588d9f64254182cf08689dda0c705755e03",class:"p-2"},a("form-control-text",{key:"6d70a400b4936fdf3d35c00a3b95303bc3e79688",name:"successful_payment_id",label:"Successful Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.successfulPaymentId||i.successful_payment_id,disabled:!!this.successfulPaymentId,part:f})),a("div",{key:"96a3b1bf5eaa46dcda3f01de50d991a14cb6f455",class:"p-2"},a("form-control-select",{key:"06572e5d0528cfc0e36c6d95210ec6bc6db119ab",name:"status",label:"Status",options:this.checkoutStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.checkoutStatus||i.status||"",disabled:!!this.checkoutStatus,part:f})),a("div",{key:"81cb0976145496cbb991b2b20d8acaee24238f65",class:"p-2"},a("form-control-select",{key:"15db898c3fac34c2ac0262d17c07ea811ddbebd7",name:"payment_mode",label:"Payment Mode",options:this.checkoutPaymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentMode||i.payment_mode||"",disabled:!!this.paymentMode,part:f})),a("div",{key:"cbae593e372d8fcb648fff5503ac6495e75c5f2e",class:"p-2"},a("form-control-date",{key:"06f605f92582dbf1ea654a4c14ea0089932e9aea",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:l(this.createdAfter,{showInputDateTime:!0})||l(i.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:f})),a("div",{key:"278400d92ded9bff800e4b2142434c046d1be397",class:"p-2"},a("form-control-date",{key:"53a98e350078d690df0985627ac1a6f0e39f74ad",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:l(this.createdBefore,{showInputDateTime:!0})||l(i.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:f})))))}};export{u as justifi_checkouts_list_filters}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,r as e,c as s}from"./p-CV0Pyo1O.js";import{S as a}from"./p-05AWudQe.js";import{T as r,a as i,b as o,c as d,d as h,e as n,f as c,g as p,h as l,i as f,j as m,k as u,l as b}from"./p-DZr0wLGh.js";import{T as
|
|
1
|
+
import{h as t,r as e,c as s}from"./p-CV0Pyo1O.js";import{S as a}from"./p-05AWudQe.js";import{T as r,a as i,b as o,c as d,d as h,e as n,f as c,g as p,h as l,i as f,j as m,k as u,l as b}from"./p-DZr0wLGh.js";import{T as y}from"./p-CZfYo5-1.js";import{c as g}from"./p-_MjmE9YT.js";import{a6 as v,a7 as j}from"./p-Bu7gdOaV.js";import{a as w}from"./p-Ds_P-dB8.js";import"./p-B4vLfYnZ.js";import{f as T,p as C,C as k,b as _}from"./p-Dqxyi-uK.js";import{p as O}from"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";import{B as D,a as S}from"./p-Dz8KJn2G.js";import"./p-HXpYMWUU.js";import{g as B,a as x}from"./p-BhpaUYtS.js";import{A as P}from"./p-C6Jq8YDT.js";import{J as I}from"./p-BjjKkMO1.js";import{o as Y,g as q}from"./p-DUtecvro.js";import"./p-MPer3Rw7.js";import"./p-BC9n8nB2.js";import"./p-DgTOxu8x.js";const A={created_at:()=>t("th",{part:v,scope:"col",title:"The date and time the order was created"},"Created At"),updated_at:()=>t("th",{part:v,scope:"col",title:"The date and time the order was last updated"},"Updated At"),order_status:()=>t("th",{part:v,scope:"col",title:"The current status of the order"},"Order Status"),business_id:()=>t("th",{part:v,scope:"col",title:"The business ID associated with the order"},"Business ID"),company_name:()=>t("th",{part:v,scope:"col",title:"The business name associated with the order"},"Business Name"),provider:()=>t("th",{part:v,scope:"col",title:"The provider associated with the order"},"Provider"),order_type:()=>t("th",{part:v,scope:"col",title:"The type of order"},"Order Type"),quantity:()=>t("th",{part:v,scope:"col",title:"The number of terminals associated with the order"},"Order Quantity")},E={created_at:(e,s)=>t("td",{part:j(s)},t("div",{class:"fw-bold"},w(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},w(e.created_at,{showTime:!0}))),updated_at:(e,s)=>t("td",{part:j(s)},t("div",{class:"fw-bold"},w(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},w(e.updated_at,{showTime:!0}))),order_status:(e,s)=>t("td",{part:j(s)},t(S,Object.assign({},{submitted:{variant:D.PRIMARY,title:"This order is submitted",text:"Submitted"},completed:{variant:D.SUCCESS,title:"This order has been completed",text:"Completed"},created:{variant:D.SECONDARY,title:"This order is created",text:"Created"},in_progress:{variant:D.PRIMARY,title:"This order is in progress",text:"In Progress"},on_hold:{variant:D.WARNING,title:"This order is on hold",text:"On Hold"},canceled:{variant:D.DANGER,title:"This order is canceled",text:"Canceled"}}[e.order_status]))),business_id:(e,s)=>t("td",{part:j(s)},e.business_id),company_name:(e,s)=>t("td",{part:j(s)},e.company_name),provider:(e,s)=>t("td",{part:j(s)},e.provider),order_type:(e,s)=>{let a;return e.order_type===T.boardingOnly?a="Boarding Only":e.order_type===T.boardingShipping&&(a="Boarding & Shipping"),t("td",{part:j(s)},a)},quantity:(e,s)=>t("td",{part:j(s)},e.terminals.length)},L=P();class M{async fetchTerminalOrders(t,e,s){return L.get({endpoint:"terminals/orders",params:s,headers:{account:t},authToken:e})}}const U=class{constructor(t){e(this,t),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.columns="created_at,updated_at,order_status,quantity",this.terminalOrders=[],this.loading=!0,this.paging=O,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:y.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:y.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const s=this.terminalOrders.find((t=>t.id===e));this.clickEvent.emit({name:y.row,data:s})}}componentWillLoad(){g(),this.analytics=new I(this),this.terminalOrdersTable=new r(this.terminalOrders,this.columns,A,E),this.initializeGetData(),this.getTerminalOrders&&this.fetchData(),Y("set",(()=>{this.pagingParams={}})),Y("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}authPropChanged(){this.initializeGetData(),this.getTerminalOrders&&this.fetchData()}pagingOrColumnsChanged(){this.getTerminalOrders&&this.fetchData()}initializeGetData(){this.accountId&&this.authToken?this.getTerminalOrders=(({id:t,authToken:e,service:s})=>async({params:a,onSuccess:r,onError:i,final:o})=>{var d,h;try{const o=await s.fetchTerminalOrders(t,e,a);if(o.error)return i({error:x(o.error),code:B(null===(h=o.error)||void 0===h?void 0:h.code),severity:k.ERROR});{const t=Object.assign({},o.page_info);r({terminalOrders:(null===(d=o.data)||void 0===d?void 0:d.map((t=>new C(t))))||[],pagingInfo:t})}}catch(t){const e=B(null==t?void 0:t.code);return i({error:t.message||t,code:e,severity:k.ERROR})}finally{o()}})({id:this.accountId,authToken:this.authToken,service:new M}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:_.MISSING_PROPS,message:this.errorMessage,severity:k.ERROR}))}fetchData(){this.getTerminalOrders&&(this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:e})=>{this.terminalOrders=t,this.paging=e,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:e,severity:s})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:s})},final:()=>{this.loading=!1}}))}get terminalOrderParams(){const t=q();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 t(a,{key:"ba50fc1b4bd66163d2ed0c5f98a6bbe18d991ddb"},t(i,{key:"b3203a5765b3ef1e564bdee4e0a6ad2603ac7c09"},t(o,{key:"efd22eb95810e22ac977dc6d323dc5b807110a95"},t(d,{key:"2ded9affdda7af379ffbbd76fa05226389de0dd0"},t(h,{key:"ca48cefe5d497f0b6cbe83f498939f4d1232a45b"},this.terminalOrdersTable.columnData.map((t=>t)))),t(n,{key:"d7a38ad880b6e9334bf72d3fa8cb6eb69b0032d6"},t(c,{key:"f4bc0a54a68f29f82a8f7a1c34a5d29a80f16f65",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),t(p,{key:"7a0f199dd9640efc16578fe106d5d16cf8872e5a",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),t(l,{key:"cf1bf5094f0769f0a4d81c730649769cd0870fe3",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((e,s)=>t(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},e)))),this.paging&&t(m,{key:"cd9dee54cd5f27a0ae9c56771f6c99e0ea2ff125"},t(u,{key:"877284dd9926a1889fdf175ce0bf5db841fd9066"},t(b,{key:"2558454e5a5e3eb340170d6af43ad24c12aebdb8",colSpan:this.terminalOrdersTable.columnData.length},t("pagination-menu",{key:"8cf390bed552045b9950c4fcfe80f70e308d2cee",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["authPropChanged"],authToken:["authPropChanged"],pagingParams:["pagingOrColumnsChanged"],columns:["pagingOrColumnsChanged"]}}};export{U as justifi_terminal_orders_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,r as s,c as e}from"./p-CV0Pyo1O.js";import{k as a,C as i,b as o}from"./p-
|
|
1
|
+
import{h as t,r as s,c as e}from"./p-CV0Pyo1O.js";import{k as a,C as i,b as o}from"./p-Dqxyi-uK.js";import{J as r}from"./p-BjjKkMO1.js";import{c as h}from"./p-_MjmE9YT.js";import{P as c}from"./p-pueOrhXO.js";import"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";import{g as p,a as d}from"./p-BhpaUYtS.js";import{M as u,m}from"./p-Bxc0NRj8.js";import{m as l,S as f}from"./p-iA-Amt2z.js";import{S as y}from"./p-05AWudQe.js";import{T as g,a as b,b as j,c as v,d as _,e as C,f as k,g as w,h as S,i as T,j as O,k as P,l as A}from"./p-DZr0wLGh.js";import{T as D}from"./p-CZfYo5-1.js";import{a as E}from"./p-Ds_P-dB8.js";import{a6 as B,a7 as x}from"./p-Bu7gdOaV.js";import{o as I,g as Y}from"./p-CGnRD4wF.js";import"./p-BC9n8nB2.js";import"./p-C6Jq8YDT.js";import"./p-DgTOxu8x.js";import"./p-Dz8KJn2G.js";import"./p-MPer3Rw7.js";const G={created_at:()=>t("th",{part:B,scope:"col",title:"The date the payout was deposited"},"Created"),sub_account_name:()=>t("th",{part:B,scope:"col",title:"The sub account associated with the payout"},"Sub Account"),payments_total:()=>t("th",{part:B,scope:"col",title:"The total payments amount associated with the payout"},"Payments"),refunds_total:()=>t("th",{part:B,scope:"col",title:"The total refunds amount associated with the payout"},"Refunds"),fees_total:()=>t("th",{part:B,scope:"col",title:"The total fees amount associated with the payout"},"Fees"),other_total:()=>t("th",{part:B,scope:"col",title:"The total other amount"},"Other"),amount:()=>t("th",{part:B,scope:"col",title:"The total amount of the payout"},"Amount"),status:()=>t("th",{part:B,scope:"col",title:"The real-time status of each payout"},"Status"),csv:()=>t("th",{part:B,scope:"col",title:"Export CSV"})},M=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event",7),this.clickEvent=e(this,"click-event",7),this.errorMessage=null,this.payouts=[],this.subAccounts=[],this.loading=!0,this.paging=n,this.pagingParams={},this.columns="created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv",this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:o.FETCH_ERROR,message:"Failed to download CSV",severity:i.ERROR})}})},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:D.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:D.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr"),e=s.dataset.rowEntityId;if(!e)return;if(s.querySelector("a")===t.target)return;const a=this.payouts.find((t=>t.id===e));this.clickEvent.emit({name:D.row,data:a})}}componentWillLoad(){var s;h(),this.analytics=new r(this),this.initializeGetData(),this.payoutsTable=new g(this.payouts,this.columns,G,(s=this.downloadCSV,{created_at:(s,e)=>t("td",{part:x(e)},t("div",{class:"fw-bold"},E(s.created_at,{showDisplayDate:!0}))),sub_account_name:(s,e)=>t("td",{part:x(e)},s.sub_account_name),payments_total:(s,e)=>t("td",{part:x(e)},s.formattedPaymentAmount(s.payments_total)),refunds_total:(s,e)=>t("td",{part:x(e)},s.formattedPaymentAmount(s.refunds_total)),fees_total:(s,e)=>t("td",{part:x(e)},s.formattedPaymentAmount(s.fees_total)),other_total:(s,e)=>t("td",{part:x(e)},s.formattedPaymentAmount(s.other_total)),amount:(s,e)=>t("td",{part:x(e)},s.formattedPaymentAmount(s.amount)),status:(s,e)=>t("td",{part:x(e)},u(s.status)),csv:(e,a)=>t("td",{part:x(a)},t("a",{href:"#",onClick:t=>{t.preventDefault(),s(e.id)}},"CSV"))})),this.getPayouts&&this.getSubAccounts&&this.fetchData(),I("set",(()=>{this.pagingParams={}})),I("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}updateOnPropChange(){this.fetchData()}initializeGetData(){this.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new c};this.getPayouts=(({id:t,authToken:s,service:e})=>async({params:o,onSuccess:r,onError:h})=>{var c,n;try{const u=await e.fetchPayouts(t,s,o);if(u.error)return h({error:d(u.error),code:p(null===(n=u.error)||void 0===n?void 0:n.code),severity:i.ERROR});{const t=Object.assign({},u.page_info);r({payouts:(null===(c=u.data)||void 0===c?void 0:c.map((t=>new a(t))))||[],pagingInfo:t})}}catch(t){const s=p(null==t?void 0:t.code);return h({error:t.message||t,code:s,severity:i.ERROR})}})(t),this.getPayoutCSV=m(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR})}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=l({primaryAccountId:this.accountId,authToken:this.authToken,service:new f}))}fetchData(){this.loading=!0,this.getPayouts({params:this.payoutParams,onSuccess:({payouts:t,pagingInfo:s})=>{this.payouts=t,this.paging=s,this.payoutsTable.collectionData=this.payouts,this.payoutsTable.columnKeys.includes("sub_account_name")?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.payouts=this.payouts.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 payoutParams(){const t=Y();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){const t=this.payouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.payouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.payoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(y,{key:"4cd005fa6c9e95d155cd7a79c49232581c070c14"},t(b,{key:"177a2a96737ca085cbb7399144a75c0d1f4475dc"},t(j,{key:"7140a202ae38a658351184f14530bd5dadce75f5"},t(v,{key:"9bf81a259376cd822593622a1266d2cc03ad6d94"},t(_,{key:"339c82a1e59e594c3353b65745b99e9cbeff9250"},this.payoutsTable.columnData.map((t=>t)))),t(C,{key:"ca06c1cea570eaefa6df729075fac76c9fa7a7e9"},t(k,{key:"f4d4c97961f944625c28e748767e18c0234d148d",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),t(w,{key:"c741073dc9d10f85034271d584484d565d6ac0e1",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),t(S,{key:"56f140df9f6ee94ee49128dba19cca5da3882c61",columnSpan:this.payoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.payoutsTable.rowData.map(((s,e)=>t(T,{"data-test-id":"table-row","data-row-entity-id":this.entityId[e],onClick:this.rowClickHandler},s)))),this.paging&&t(O,{key:"5ca01383d201beb41821941e2ec8500c88e0e31a"},t(P,{key:"d929128878a42f208a153680fc70e8f408d9978f"},t(A,{key:"39f8af7ebd1cafee09ed9279d9114ce6f9667d87",colSpan:this.payoutsTable.columnData.length},t("pagination-menu",{key:"83fd64853950a14cd1fe0c31b033aff0f54c014f",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"],pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{M as justifi_payouts_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-CV0Pyo1O.js";import"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import{E as
|
|
1
|
+
import{r as e,h as t}from"./p-CV0Pyo1O.js";import"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import{E as a}from"./p-Dqxyi-uK.js";import"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";import"./p-DgTOxu8x.js";import"./p-Ds_P-dB8.js";const o=class{constructor(t){e(this,t)}render(){return t("div",{key:"d0dacb95d07d3e4ca9bc2c9f23b6c490871da4e9",class:"row gy-3"},t("div",{key:"02ed406f38558badf9f591e076b120d09c71f83b",class:"col-12"},t("form-control-file",{key:"11ff1dc68264b9e5aa561ffe19b423abc1a00c78",name:"voided_check",label:"Voided Check",documentType:a.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),t("div",{key:"71d26407522a75a54489155566c18af1a64c1417",class:"col-12"},t("form-control-file",{key:"7ea42e03a44c223a5fedc273e94e635e70d54f4b",name:"bank_statement",label:"Bank Statement",documentType:a.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}};export{o as bank_account_document_form_inputs}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{J as e}from"./p-
|
|
1
|
+
import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{J as e}from"./p-BjjKkMO1.js";import{C as r,b as o}from"./p-Dqxyi-uK.js";import{m as n,b as a}from"./p-DQmijfCN.js";import{B as h}from"./p-rFpPIJgu.js";import{A as p}from"./p-C6Jq8YDT.js";import"./p-CLHwhyvu.js";import{C as l,B as m,e as u}from"./p-CTtGaVYs.js";import{c as d}from"./p-_MjmE9YT.js";import{l as c}from"./p-Ds_P-dB8.js";import{t as v}from"./p-Bu7gdOaV.js";import{S as g}from"./p-05AWudQe.js";import{H as f}from"./p-CZk3i5Tu.js";import"./p-CZfYo5-1.js";import{B as y}from"./p-XYgDHrVL.js";import{P as j}from"./p-B-Ik8b-s.js";import"./p-BC9n8nB2.js";import"./p-BhpaUYtS.js";import"./p-B4vLfYnZ.js";import"./p-DgTOxu8x.js";import"./p-HXpYMWUU.js";import"./p-eBK-iWrz.js";const b=p();class w{async postProvisioning(s,t,i){return b.post({endpoint:"entities/provisioning",body:{business_id:t,product_category:i},authToken:s})}}const C=()=>s("div",{class:"row gap-3 p-5"},s("div",{class:"col-12"},s(f,{text:"Business Already Provisioned"})),s("div",{class:"col-12",part:v},s("p",null,"We have already received the onboarding information for this business."))),k=()=>s("div",{class:"row gap-3 p5"},s("div",{class:"col-12"},s(f,{text:"You're all set for now"})),s("div",{class:"col-12",part:v},s("p",null,"We're reviewing your information and working on your approval. We'll be in touch to let you know once you've been approved (or if we find anything that needs fixing). Have a good one!"))),B=()=>s("div",{class:"row gap-3 p-5"},s("div",{class:"col-12"},s(f,{text:"Something went wrong"})),s("div",{class:"col-12",part:v},s("p",null,"There was an error submitting the provisioning. Your progress has been saved — please try again later or contact the support team."))),x=class{constructor(s){t(this,s),this.clickEvent=i(this,"click-event",7),this.errorEvent=i(this,"error-event",7),this.submitEvent=i(this,"submit-event",7),this.loading=!1,this.businessLoading=!0,this.businessProvisioned=!1,this.formSubmitted=!1,this.submissionFailed=!1,this.currentStep=0,this.country=l.USA,this.allowOptionalFields=!1,this.formTitle="Business Information",this.refs=[],this.setBusinessProvisioned=()=>new Promise((s=>{this.getBusiness({onSuccess:t=>{const i=new m(t.data);this.businessProvisioned=u(i),this.country=i.country_of_establishment,this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:o.PROVISIONING_REQUESTED,severity:r.INFO}),this.businessLoading=!1,s()},onError:({error:t,code:i,severity:e})=>{this.errorEvent.emit({message:t,errorCode:i,severity:e}),this.businessLoading=!1,s()}})})),this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.formSubmitted=!0,this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:i})=>{this.submissionFailed=!0,this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:i})}})},this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>{this.currentStep>0&&(this.currentStep-=1)},this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:y.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}propChanged(){this.initializeApi()}handleFormCompleted(){this.postProvisioningData()}handleFormLoading(s){this.loading=s.detail}async componentWillLoad(){d(),this.analytics=new e(this),this.initializeApi(),this.getBusiness?await this.setBusinessProvisioned():this.businessLoading=!1,this.refs=new Array(8)}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?c(this.authToken)?this.errorEvent.emit({message:"auth-token is expired",errorCode:o.NOT_AUTHENTICATED,severity:r.ERROR}):(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new w})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`Step ${this.currentStep+1} of ${this.totalSteps+1}`}render(){return s(g,null,this.businessLoading?s(j,null):this.businessProvisioned?s(C,null):this.formSubmitted?s(k,null):this.submissionFailed?s(B,null):s("div",{class:"row gap-3"},s(f,{text:this.formTitle}),s("payment-provisioning-form-steps",{businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,country:this.country,handleFormLoading:this.handleFormLoading}),s("div",{class:"d-flex justify-content-between align-items-center"},s("div",{class:"d-flex align-items-center",part:v},this.stepCounter),s("payment-provisioning-form-buttons",{currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{x as justifi_payment_provisioning}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,h as s}from"./p-CV0Pyo1O.js";import{J as o}from"./p-
|
|
1
|
+
import{r as i,h as s}from"./p-CV0Pyo1O.js";import{J as o}from"./p-BjjKkMO1.js";import{c as r}from"./p-_MjmE9YT.js";import{w as t}from"./p-B4vLfYnZ.js";import{S as p}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import"./p-BC9n8nB2.js";import"./p-C6Jq8YDT.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-Dqxyi-uK.js";import"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";import"./p-DgTOxu8x.js";const a=class{constructor(s){i(this,s)}async componentWillLoad(){await t(),r(),this.analytics=new o(this)}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}async getValues(){var i,s;return null!==(s=null===(i=this.bankAccountBillingFormSimpleRef)||void 0===i?void 0:i.getValues())&&void 0!==s?s:{}}async validate(){var i,s;return null!==(s=null===(i=this.bankAccountBillingFormSimpleRef)||void 0===i?void 0:i.validate())&&void 0!==s?s:{isValid:!1,errors:{}}}render(){return s(p,{key:"9848071f08342d3f5c2f7001af6e15148e713495"},s("bank-account-billing-form-simple",{key:"35f2baeb2f017116199ccff431d0acac01ad498f",legend:this.legend,ref:i=>this.bankAccountBillingFormSimpleRef=i}))}};export{a as justifi_bank_account_billing_form_simple}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-
|
|
1
|
+
import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-BmaQUnqv.js";import{m as i}from"./p-C9p1gWAC.js";import{C as d,b as c,i as f,h as l}from"./p-Dqxyi-uK.js";import{J as r}from"./p-BjjKkMO1.js";import{c as h}from"./p-_MjmE9YT.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-CTtGaVYs.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 j,E as g}from"./p-Bh6Q8AqQ.js";import{S as C}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{S as x}from"./p-eBK-iWrz.js";import{a as D,B as w}from"./p-Dz8KJn2G.js";import"./p-C6Jq8YDT.js";import"./p-BC9n8nB2.js";import"./p-HXpYMWUU.js";import"./p-BhpaUYtS.js";import"./p-DgTOxu8x.js";import"./p-Bu7gdOaV.js";const P=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(x,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(x,{width:"70%"})),e("div",{class:"col-12"},e(x,{width:"40%"})),e("div",{class:"col-12"},e(x,{width:"40%"})),e("div",{class:"col-12"},e(x,{width:"100%"})),e("div",{class:"col-12"},e(x,{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===f.disputed&&this.payment.disputes.some((e=>e.status===l.lost))?n.DISPUTE_LOST:this.payment.status}render(){return e(C,{key:"c20a9881f121383742df4097abd211fc01fa614c"},this.loading&&e(P,{key:"cea1dbe1de00b872e3eb83207c2f3f198dd0ce3f"}),!this.loading&&this.errorMessage&&g(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"821173761c94527c920ced8af53634389ee5e6fd",errorMessage:this.errorMessage},e(y,{key:"c596fc0f0a72f1775295fddb96490c9c2b7c8a4d",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},m(this.PaymentStatus),this.payment.expedited?e(D,{variant:w.WARNING,title:"Expedited",text:"Expedited"}):null),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(u,{key:"bd77afb1bffcf42d07858f7f717fcbf672762766",classes:"border-1 border-end",title:"Updated At",value:`${b(this.payment.updated_at)} ${o(this.payment.updated_at)}`}),e(u,{key:"ccfb0af2a6680eb76a4e6db01728204725b752c0",classes:"border-1 border-end",title:"Created At",value:`${b(this.payment.created_at)} ${o(this.payment.created_at)}`}),e(u,{key:"60f832dd62f9b4aed3495c6aeb38d7798aedf420",title:"ID",value:this.payment.id})),e("div",{key:"3073acb5c67e330e18f45d00b62912bcb5d6b49f",slot:"detail-sections"},e(v,{key:"aae396fef7ef9394ac4f90a0d3ae5090dfd91e5c",sectionTitle:"Details"}),e("div",{key:"71330cbb6fef542f60d76a1a6bee1e1d950a95da",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"0d64521a40aff244e599a0f8946c8c1a06f6c1f5",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(k,{key:"b67670f8c89d38b5dac856e0326e8dc4aa79240b",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"ec82b98af9fc602c273c7d624aae13b2121f40ab",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(k,{key:"f785ac60c1a5520d3fefdcd746629431db689dae",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(k,{key:"ad986f25d781e51ba7991b5487dcacb63c0e2422",title:"Status",value:m(this.PaymentStatus)}),e(k,{key:"aa9918c2962d5e17a3bc7550dc134a85c9f863ab",title:"Payment ID",value:this.payment.id}),e(k,{key:"4052d75ce51d350d3f82b05a2447cb0481b9ffa0",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"2f89484e36dc4e5a01e27033f7ff9602b2d181d7",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(k,{key:"41768b7db45146a949180eebb0ae53d19d39cb7b",title:"Description",value:this.payment.description}),e(k,{key:"fef4e8b59d7ca04ee895a7b4eba58503b97956f9",title:"Expedited",value:this.payment.expedited?"Yes":"No"})),this.payment.payment_method.card&&[e(v,{key:"615d5d3a1df6e0b32cd5d7d4dd264250f732a2f4",sectionTitle:"Payment Method"}),e("div",{key:"37811c349258526f1fb5e1d7dda8547a01fbc4c7",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"eee5b8828dc3b5e7bf5738d95d488b03d7704934",title:"ID",value:this.payment.payment_method.card.id}),e(k,{key:"dbda1d8cf16914f1adf0803340d807abc504758b",title:"Payment Type",value:"Card"}),e(k,{key:"2887c82fcaec3a7322644a928e4291970a69d4a4",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(k,{key:"dc707f794882ba9143cc46541ce89f072e98a653",title:"Brand",value:p(this.payment.payment_method.card.brand)}),e(k,{key:"8de60a9b5d5f781d1554108fc80ae0799e3143a6",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(v,{key:"697f50418855675ea222fe2dc7558d30f884ed47",sectionTitle:"Payment Method"}),e("div",{key:"c7a013952b32f95a74d0e0f281a0750966e58c0d",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"ea9692b3a3dac313aa366ec22f0d766ba5eb0d52",title:"ID",value:this.payment.payment_method.bank_account.id}),e(k,{key:"5826fd24417df7fbaf952d60dbb21eb7ebf6ce36",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(k,{key:"a16f0171e05a59eb302404b1c5ccfc4a62e9899b",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(k,{key:"88dbbfe65ef4e7d1e31c9fc98de3dfddd33526c1",title:"Account Owner",value:this.payment.payment_method.payersName}))],this.payment.metadata&&[e(v,{key:"7f686436fda99b434f651758e420f2ad6be5d60a",sectionTitle:"Metadata"}),e("div",{key:"67b2e9543eba5c27c1d5b7e1a70115a2eb7f274a",class:"d-table gap-2 w-100"},e(j,{key:"f2dc90048696d2c8b0868d966d1e318e2c16fdbf",metadata:this.payment.metadata}))])))}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"],getPaymentDetails:["updateOnPropChange"]}}};export{B as justifi_payment_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as o}from"./p-C6Jq8YDT.js";import{S as s,C as r}from"./p-Dqxyi-uK.js";import"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";import"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import{g as t,a as n}from"./p-BhpaUYtS.js";const a=o();class c{async fetchSubAccounts(o,s,r){return a.get({authToken:s,endpoint:"sub_accounts",params:r,headers:{Account:o}})}}const e=({primaryAccountId:o,authToken:a,service:c})=>async({params:e,onSuccess:p,onError:i})=>{var u,m;try{const v=await c.fetchSubAccounts(o,a,e);if(v.error){return i({error:n(v.error),code:t(null===(m=v.error)||void 0===m?void 0:m.code),severity:r.ERROR})}{const o=Object.assign({},v.page_info);p({subAccounts:(null===(u=v.data)||void 0===u?void 0:u.map((o=>new s(o))))||[],pagingInfo:o})}}catch(o){const s=t(null==o?void 0:o.code);return i({error:o.message||o,code:s,severity:r.ERROR})}};export{c as S,e as m}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as t}from"./p-C6Jq8YDT.js";import"./p-Dqxyi-uK.js";import"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";const a=t();class n{async fetchPayouts(t,n,s){return a.get({authToken:n,endpoint:`account/${t}/payouts`,params:s})}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,s){return a.get({authToken:n,endpoint:"balance_transactions",params:s,headers:{"sub-account":t}})}}export{n as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as t}from"./p-
|
|
1
|
+
import{A as t}from"./p-C6Jq8YDT.js";import"./p-Dqxyi-uK.js";import"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";const n=t();class e{async fetchBusiness(t,e){return n.get({endpoint:`entities/business/${t}`,authToken:e})}async patchBusiness(t,e,s){return n.patch({endpoint:`entities/business/${e}`,body:s,authToken:t})}}class s{async fetchIdentity(t,e){return n.get({endpoint:`entities/identity/${t}`,authToken:e})}async patchIdentity(t,e,s){return n.patch({endpoint:`entities/identity/${e}`,body:s,authToken:t})}async postIdentity(t,e){return n.post({endpoint:"entities/identity",body:e,authToken:t})}}class i{async postBankAccount(t,e){return n.post({endpoint:"entities/bank_accounts",body:e,authToken:t})}}class o{async postDocumentRecord(t,e){return n.post({endpoint:"entities/document",body:e,authToken:t})}}export{e as B,o as D,s as I,i as a}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as e}from"./p-
|
|
1
|
+
import{S as e}from"./p-CTtGaVYs.js";const a=[{label:"Choose province",value:""},{label:"Alberta",value:"AB"},{label:"British Columbia",value:"BC"},{label:"Manitoba",value:"MB"},{label:"New Brunswick",value:"NB"},{label:"Newfoundland and Labrador",value:"NL"},{label:"Northwest Territories",value:"NT"},{label:"Nova Scotia",value:"NS"},{label:"Nunavut",value:"NU"},{label:"Ontario",value:"ON"},{label:"Prince Edward Island",value:"PE"},{label:"Quebec",value:"QC"},{label:"Saskatchewan",value:"SK"},{label:"Yukon",value:"YT"}],l={USA:{stateLabel:"State",postalLabel:"Zip Code",idNumberLabel:"SSN",idNumberLabelOptional:"SSN (optional)",identityHelpText:"Enter your full Social Security Number. It is required for Federal OFAC check.",taxIdLabel:"Tax ID (EIN or SSN)",taxIdLabelOptional:"",taxIdHelpText:"Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes."},CAN:{stateLabel:"Province / State",postalLabel:"Postal / Zip Code",idNumberLabel:"SIN",idNumberLabelOptional:"SIN (optional)",identityHelpText:"Enter your full Social Insurance Number.",taxIdLabel:"Business Number (BN)",taxIdLabelOptional:"Business Number (BN) (optional)",taxIdHelpText:"Business Numbers (BN) are nine digits. Enter value without spaces or dashes."}},t=[{label:"Choose province / state",value:""},...a.filter((e=>""!==e.value)),...e.filter((e=>""!==e.value))],i={USA:{stateOptions:e},CAN:{stateOptions:t}},o={USA:{postalRegex:/^[0-9]{5}(-[0-9]{4})?$/,identityDigits:9,taxIdDigits:9},CAN:{postalRegex:/^([A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d|[0-9]{5}(-[0-9]{4})?)$/,identityDigits:9,taxIdDigits:9}};export{a as P,o as a,i as b,l as c}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,B as t,a,w as n,N as o,d as i,b as r}from"./p-CV0Pyo1O.js";export{s as setNonce}from"./p-CV0Pyo1O.js";import{g as d}from"./p-DQuL1Twl.js";var l=e=>{const t=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return t.call(this,e);const a=t.call(this,!1),n=this.childNodes;if(e)for(let e=0;e<n.length;e++)2!==n[e].nodeType&&a.appendChild(n[e].cloneNode(!0));return a}};(()=>{t.isDev&&!t.isTesting&&a("Running in development mode."),t.cloneNodeFix&&l(i.prototype);const r=t.scriptDataOpts?n.document&&Array.from(n.document.querySelectorAll("script")).find((e=>new RegExp(`/${o}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===o)):null,s=import.meta.url,d=t.scriptDataOpts&&(r||{})["data-opts"]||{};return""!==s&&(d.resourcesUrl=new URL(".",s).href),e(d)})().then((async e=>(await d(),r(JSON.parse('[["p-4cad48c1",[[260,"justifi-checkout",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"disableBankAccount":[4,"disable-bank-account"],"disableBnpl":[4,"disable-bnpl"],"disableCreditCard":[4,"disable-credit-card"],"disablePaymentMethodGroup":[4,"disable-payment-method-group"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"hideCardBillingForm":[4,"hide-card-billing-form"],"googlePayEnv":[1,"google-pay-env"],"preCompleteHook":[16],"availablePaymentMethods":[32],"checkout":[32],"complete":[32],"errorMessage":[32],"insuranceToggled":[32],"serverError":[32],"fillBillingForm":[64],"validate":[64]},[[0,"submit-event","checkoutComplete"],[0,"error-event","checkoutError"],[0,"checkout-changed","checkoutChanged"]],{"authToken":["propChanged"],"checkoutId":["propChanged"],"disableCreditCard":["propChanged"],"disableBankAccount":["propChanged"],"disablePaymentMethodGroup":["propChanged"]}]]],["p-6c94218c",[[257,"justifi-payment-provisioning",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"allowOptionalFields":[4,"allow-optional-fields"],"formTitle":[1,"form-title"],"loading":[32],"businessLoading":[32],"businessProvisioned":[32],"formSubmitted":[32],"submissionFailed":[32],"currentStep":[32],"errorMessage":[32],"country":[32]},[[0,"formCompleted","handleFormCompleted"],[0,"formLoading","handleFormLoading"]],{"authToken":["propChanged"],"businessId":["propChanged"]}]]],["p-d98bc829",[[257,"justifi-dispute-management",{"disputeId":[1,"dispute-id"],"authToken":[1,"auth-token"],"getDispute":[32],"dispute":[32],"isLoading":[32],"showDisputeResponseForm":[32]},[[0,"click-event","disputeResponseHandler"],[0,"submit-event","disputeSubmittedHandler"]],{"disputeId":["propChanged"],"authToken":["propChanged"]}]]],["p-5f8c30b6",[[257,"justifi-business-form",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"hideErrors":[4,"hide-errors"],"formTitle":[1,"form-title"],"removeTitle":[4,"remove-title"],"isLoading":[32],"isSaving":[32],"errorMessage":[32],"country":[32]}]]],["p-28fb6b50",[[257,"justifi-billing-form",{"legend":[1025],"hideCardBillingForm":[4,"hide-card-billing-form"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"paymentMethodType":[1,"payment-method-type"],"getValues":[64],"validate":[64]}]]],["p-5c89dcdf",[[257,"justifi-business-details",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"getBusiness":[32],"business":[32],"loading":[32],"errorMessage":[32]},null,{"businessId":["propChanged"],"authToken":["propChanged"],"getBusiness":["updateOnPropChange"]}]]],["p-3642e189",[[257,"justifi-checkouts-list-filters",{"checkoutStatus":[1,"checkout-status"],"paymentMode":[1,"payment-mode"],"checkoutId":[1,"checkout-id"],"successfulPaymentId":[1,"successful-payment-id"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-72bb4aff",[[257,"justifi-payments-list-filters",{"paymentId":[1,"payment-id"],"terminalId":[1,"terminal-id"],"paymentStatus":[1,"payment-status"],"paymentMode":[1,"payment-mode"],"checkoutId":[1,"checkout-id"],"accountHolder":[1,"account-holder"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-6eb65d23",[[257,"justifi-refund-payment",{"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"paymentId":[1,"payment-id"],"hideSubmitButton":[4,"hide-submit-button"],"formController":[32],"refundPayload":[32],"displayAmount":[32],"errors":[32],"paymentLoading":[32],"refundLoading":[32],"submitDisabled":[32],"payment":[32],"refundPayment":[64]}]]],["p-5dcb1713",[[257,"justifi-terminal-orders-list-filters",{"orderStatus":[1,"order-status"],"orderType":[1,"order-type"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"],"companyName":[1,"company-name"]}]]],["p-25f70d5f",[[257,"justifi-terminals-list-filters",{"terminalId":[1,"terminal-id"],"terminalOrderId":[1,"terminal-order-id"],"providerId":[1,"provider-id"],"serialNumber":[1,"serial-number"],"terminalStatus":[1,"terminal-status"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-ca6c5365",[[257,"justifi-billing-form-full",{"legend":[1025],"getValues":[64],"validate":[64]}]]],["p-ca13117d",[[257,"justifi-payouts-list-filters",{"status":[1],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-5d7b3d71",[[257,"justifi-bank-account-billing-form-simple",{"legend":[1025],"getValues":[64],"validate":[64]}]]],["p-5842d4e8",[[257,"justifi-bank-account-form",{"validate":[64],"tokenize":[64]}]]],["p-36340e63",[[257,"justifi-card-billing-form-simple",{"legend":[1025],"getValues":[64],"validate":[64]}]]],["p-825a7ee6",[[257,"justifi-card-form",{"validate":[64],"tokenize":[64]}]]],["p-1fa62eba",[[256,"form-control-file",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"multiple":[4],"documentType":[1,"document-type"],"inputHandler":[16],"disabled":[4],"files":[32],"fileString":[32],"isFocused":[32]}]]],["p-e55216fb",[[256,"bank-account-document-form-inputs",{"inputHandler":[16],"errors":[8],"storeFiles":[16]}]]],["p-d59676ea",[[257,"justifi-order-terminals",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"shipping":[4],"submitButtonText":[1,"submit-button-text"],"loading":[32],"submitting":[32],"error":[32],"business":[32],"terminalModels":[32],"orderLimit":[32],"order":[32],"totalQuantity":[32]}]]],["p-ead48010",[[256,"form-control-checkbox",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"checked":[4],"inputHandler":[16],"disabled":[4],"isFocused":[32]}]]],["p-777470cb",[[257,"justifi-save-new-payment-method",{"label":[1],"hidden":[4]}]]],["p-8d11aa27",[[256,"justifi-saved-payment-method",{"paymentMethodOption":[16],"isSelected":[4,"is-selected"],"resolvePaymentMethod":[64]}]]],["p-eb31024f",[[257,"justifi-season-interruption-insurance",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"primaryIdentityFirstName":[1,"primary-identity-first-name"],"primaryIdentityLastName":[1,"primary-identity-last-name"],"primaryIdentityState":[1,"primary-identity-state"],"primaryIdentityPostalCode":[1,"primary-identity-postal-code"],"primaryIdentityCountry":[1,"primary-identity-country"],"primaryIdentityEmailAddress":[1,"primary-identity-email-address"],"policyAttributesInsurableAmount":[2,"policy-attributes-insurable-amount"],"policyAttributesStartDate":[1,"policy-attributes-start-date"],"policyAttributesEndDate":[1,"policy-attributes-end-date"],"coveredIdentityFirstName":[1,"covered-identity-first-name"],"coveredIdentityLastName":[1,"covered-identity-last-name"],"getQuote":[32],"toggleCoverage":[32],"quote":[32],"isLoading":[32],"accepted":[32],"validate":[64]}]]],["p-fda6f27d",[[257,"payment-method-option",{"paymentMethodOptionId":[1,"payment-method-option-id"],"isSelected":[4,"is-selected"],"clickHandler":[16],"radioButtonHidden":[4,"radio-button-hidden"],"label":[1]}]]],["p-50c2b8f0",[[257,"justifi-checkouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"subAccountId":[1,"sub-account-id"],"checkouts":[32],"checkoutsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32],"getCheckouts":[32],"getSubAccounts":[32]},null,{"accountId":["authPropChanged"],"authToken":["authPropChanged"],"subAccountId":["authPropChanged"],"pagingParams":["pagingOrColumnsChanged"],"columns":["pagingOrColumnsChanged"]}]]],["p-fdd087d4",[[257,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"getPaymentDetails":[32],"payment":[32],"loading":[32],"errorMessage":[32]},null,{"paymentId":["propChanged"],"authToken":["propChanged"],"getPaymentDetails":["updateOnPropChange"]}]]],["p-74575a99",[[257,"justifi-payment-transactions-list",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"columns":[1],"balanceTransactions":[32],"transactionsTable":[32],"isLoading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["propChanged"],"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["p-68e88747",[[257,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getPayments":[32],"errorMessage":[32],"payments":[32],"paymentsTable":[32],"loading":[32],"paging":[32],"pagingParams":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"],"pagingParams":["updateOnPropChange"],"getPayments":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-955c06d3",[[257,"justifi-payout-details",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"enableRecordClick":[4,"enable-record-click"],"getPayout":[32],"getPayoutCSV":[32],"payout":[32],"loading":[32],"errorMessage":[32]},null,{"payoutId":["propChanged"],"authToken":["propChanged"],"getPayout":["getPayoutWatcher"]}]]],["p-b23dfa13",[[257,"justifi-payout-transactions-list",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"columns":[1],"balanceTransactions":[32],"transactionsTable":[32],"isLoading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["propChanged"],"payoutId":["propChanged"],"authToken":["propChanged"]}]]],["p-c5424fda",[[257,"justifi-payouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getPayouts":[32],"getPayoutCSV":[32],"getSubAccounts":[32],"errorMessage":[32],"payouts":[32],"payoutsTable":[32],"subAccounts":[32],"loading":[32],"paging":[32],"pagingParams":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"],"pagingParams":["updateOnPropChange"],"getPayouts":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"]}]]],["p-7002286e",[[256,"justifi-qr-terminal",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"pollIntervalMs":[2,"poll-interval-ms"],"pollTimeoutMs":[2,"poll-timeout-ms"],"terminalState":[32],"paymentStatus":[32],"errorMessage":[32]},[[0,"error-event","suppressInnerErrors"]],{"authToken":["propChanged"],"checkoutId":["propChanged"]}]]],["p-9e9a2546",[[257,"justifi-terminal-orders-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"terminalOrders":[32],"terminalOrdersTable":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32],"getTerminalOrders":[32]},null,{"accountId":["authPropChanged"],"authToken":["authPropChanged"],"pagingParams":["pagingOrColumnsChanged"],"columns":["pagingOrColumnsChanged"]}]]],["p-c3818a5a",[[257,"justifi-terminals-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getTerminals":[32],"getSubAccounts":[32],"terminals":[32],"terminalsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"],"pagingParams":["updateOnPropChange"],"getTerminals":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-715df6a8",[[256,"justifi-config-provider",{"apiOrigin":[1,"api-origin"],"iframeOrigin":[1,"iframe-origin"],"accountId":[1,"account-id"]}]]],["p-909a9828",[[257,"justifi-gross-payment-chart",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getGrossPayment":[32],"grossVolumeReport":[32],"loading":[32],"errorMessage":[32],"wrapperErrorMessage":[32]},null,{"accountId":["authPropChanged"],"authToken":["authPropChanged"],"grossVolumeReport":["grossVolumeReportChanged"]}]]],["p-2b5533a1",[[257,"justifi-skeleton",{"component":[1],"height":[8],"width":[8],"class":[1],"customStyle":[16]}]]],["p-388082cd",[[256,"terminal-quantity-selector",{"modelName":[1,"model-name"],"imageUrl":[1,"image-url"],"description":[1],"helpUrl":[1,"help-url"],"limit":[2],"selectedQuantity":[32]}]]],["p-acb0b66c",[[256,"form-control-monetary",{"name":[8],"label":[1],"inputHandler":[16],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"maxLength":[2,"max-length"],"keyDownHandler":[16],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-cb1cc88e",[[256,"justifi-checkout-qr-code",{"checkoutId":[1,"checkout-id"],"size":[2]},null,{"checkoutId":["propChanged"],"size":["propChanged"]}]]],["p-f9f0cb1f",[[256,"identity-address-form",{"handleFormUpdate":[16],"errors":[8],"defaultValues":[8,"default-values"],"country":[1],"address":[32]},null,{"address":["handleAddressChange"]}],[256,"form-control-number-masked",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"mask":[1],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}],[256,"form-address-fields",{"country":[1],"errors":[8],"defaultValues":[8,"default-values"],"inputHandler":[16]}]]],["p-1cdbe8c1",[[256,"payment-provisioning-form-steps",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"refs":[16],"currentStep":[2,"current-step"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"handleFormLoading":[16]}],[256,"payment-provisioning-form-buttons",{"currentStep":[2,"current-step"],"totalSteps":[2,"total-steps"],"formLoading":[4,"form-loading"],"formDisabled":[4,"form-disabled"],"previousStepButtonOnClick":[16],"nextStepButtonOnClick":[16]}]]],["p-f5358a80",[[256,"dispute-response",{"authToken":[1,"auth-token"],"disputeId":[1,"dispute-id"],"disputeResponse":[8,"dispute-response"],"apiOrigin":[1,"api-origin"],"updateDisputeResponse":[32],"submitDisputeResponse":[32],"createDisputeEvidence":[32],"errorMessage":[32],"isLoading":[32],"documentList":[32],"documentErrors":[32],"currentStep":[32],"currentStepComponentRef":[32]},null,{"disputeId":["propChanged"],"authToken":["propChanged"]}],[256,"dispute-notification",{"dispute":[16],"authToken":[1,"auth-token"],"isLoading":[4,"is-loading"]}]]],["p-ee7fe3a8",[[256,"bank-account-form",{"iframeOrigin":[32],"tabId":[32],"iframeState":[32],"validate":[64],"tokenize":[64]}]]],["p-6931a1f2",[[256,"card-form",{"iframeOrigin":[32],"tabId":[32],"iframeState":[32],"validate":[64],"tokenize":[64]}]]],["p-c7c79332",[[256,"form-control-help-text",{"helpText":[1,"help-text"],"name":[1]}]]],["p-f0434a13",[[256,"form-control-radio",{"label":[8],"name":[8],"value":[1],"helpText":[1,"help-text"],"inputHandler":[16],"disabled":[4],"errorText":[1,"error-text"],"checked":[4],"isFocused":[32]}]]],["p-3f2fb856",[[256,"radio-list-item",{"name":[1],"value":[1],"label":[8],"checked":[4],"hidden":[4],"class":[1]}]]],["p-c4889a06",[[256,"save-new-payment-method",{"label":[1],"hidden":[4],"isChecked":[32]}]]],["p-1365a46b",[[256,"internal-button",{"text":[1],"variant":[1],"isLoading":[4,"is-loading"],"clickHandler":[16],"disabled":[4],"type":[1],"class":[1],"customStyle":[1,"custom-style"],"hidden":[4]}]]],["p-b39dd96b",[[260,"justifi-details",{"errorMessage":[1,"error-message"]}]]],["p-9f0ef3f3",[[260,"table-filters-menu",{"params":[8],"clearParams":[16],"anchorButton":[32],"menu":[32],"showClearButton":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]],{"params":["watchParamsHandler"]}]]],["p-10787684",[[256,"form-control-select",{"name":[8],"label":[1],"options":[16],"inputHandler":[16],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}],[256,"form-control-text",{"name":[8],"label":[1],"inputHandler":[16],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"maxLength":[2,"max-length"],"keyDownHandler":[16],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-bf3866b3",[[256,"business-representative",{"formController":[16],"country":[1],"errors":[32],"representative":[32],"isEditingIdentification":[32]}],[256,"business-core-info",{"formController":[16],"country":[1],"errors":[32],"coreInfo":[32],"isEditingTaxId":[32]}],[256,"additional-questions",{"formController":[16],"errors":[32],"additional_questions":[32]}],[256,"legal-address-form",{"formController":[16],"country":[1],"errors":[32],"legal_address":[32]}]]],["p-465e9e1c",[[256,"additional-questions-details",{"additionalQuestions":[16]}],[256,"core-info-details",{"business":[16]}],[256,"legal-address-details",{"legalAddress":[16]}],[256,"owner-details",{"owners":[16]}],[256,"representative-details",{"representative":[16]}]]],["p-af0c6421",[[256,"bank-account-read-only-value",{"label":[1],"value":[1]}]]],["p-6f88f836",[[256,"form-control-monetary-provisioning",{"label":[1],"name":[1],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"maskOptions":[8,"mask-options"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-b2129553",[[256,"pagination-menu",{"paging":[16],"params":[16]}]]],["p-0aa96018",[[256,"owner-form-inputs",{"ownerDefaultValue":[8,"owner-default-value"],"errors":[8],"formController":[16],"country":[1],"isEditingIdentification":[32]}],[256,"form-control-number",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-b98ea26a",[[256,"billing-form",{"legend":[1025],"hideCardBillingForm":[4,"hide-card-billing-form"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"paymentMethodType":[1,"payment-method-type"],"getValues":[64],"validate":[64]}],[256,"billing-form-full",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"validate":[64]}],[256,"bank-account-billing-form-simple",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"validate":[64]}],[256,"card-billing-form-simple",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"validate":[64]}]]],["p-9e3e2e32",[[256,"form-control-textarea",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"maxLength":[2,"max-length"],"inputHandler":[16],"keyDownHandler":[16],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}],[256,"form-control-file-v2",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"multiple":[4],"inputHandler":[16],"disabled":[4],"files":[32]}]]],["p-ced6f6f1",[[256,"hidden-input",{"isFocused":[32],"errorText":[32]}],[256,"iframe-input",{"inputId":[1,"input-id"],"label":[1],"iframeOrigin":[1,"iframe-origin"],"isFocused":[32],"isValid":[32],"errorText":[32],"validate":[64],"tokenize":[64],"reload":[64]}],[256,"form-alert",{"text":[1],"hideAlert":[4,"hide-alert"]}]]],["p-97c6593d",[[256,"form-control-tooltip",{"helpText":[1,"help-text"],"anchorIcon":[32],"tooltip":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]]],[260,"custom-popper",{"placement":[1],"offset":[16],"strategy":[1],"trigger":[1],"anchorRef":[16],"isOpen":[32]},null,{"anchorRef":["onAnchorRefChange"]}]]],["p-7c405573",[[257,"justifi-tokenize-payment-method",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"disableBankAccount":[4,"disable-bank-account"],"disableCreditCard":[4,"disable-credit-card"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"hideCardBillingForm":[4,"hide-card-billing-form"],"hideSubmitButton":[4,"hide-submit-button"],"paymentMethodGroupId":[1,"payment-method-group-id"],"submitButtonText":[1,"submit-button-text"],"savePaymentMethodLabel":[1,"save-payment-method-label"],"computedHideSubmitButton":[32],"isLoading":[32],"selectedPaymentMethod":[32],"tokenizePaymentMethod":[64],"fillBillingForm":[64],"validate":[64],"getValues":[64],"tokenize":[64]},[[0,"radio-click","handleRadioClick"]],{"disableCreditCard":["paymentMethodsChanged"],"disableBankAccount":["paymentMethodsChanged"]}],[257,"justifi-radio-list-item",{"name":[1],"value":[1],"label":[8],"checked":[4],"hidden":[4],"class":[1]}],[257,"justifi-saved-payment-methods"],[257,"justifi-button",{"text":[1],"variant":[1],"isLoading":[4,"is-loading"],"clickHandler":[16],"disabled":[4],"type":[1],"class":[1],"customStyle":[1,"custom-style"],"hidden":[4]}],[257,"justifi-apple-pay",{"countryCode":[1,"country-code"],"merchantIdentifier":[1,"merchant-identifier"],"merchantDisplayName":[1,"merchant-display-name"],"initiativeContext":[1,"initiative-context"],"buttonType":[1,"button-type"],"buttonStyle":[1,"button-style"],"disabled":[4],"width":[1],"height":[1],"isLoading":[32],"isProcessing":[32],"isAvailable":[32],"canMakePayments":[32],"isConfigValid":[32],"error":[32],"isSupported":[64],"getPaymentMethods":[64],"abort":[64]}],[257,"justifi-checkout-summary"],[257,"justifi-google-pay",{"environment":[1],"merchantDisplayName":[1,"merchant-display-name"],"useNativePaymentRequest":[4,"use-native-payment-request"],"iframeOrigin":[32],"iframeReady":[32],"sdkLoaded":[32],"isReadyToPay":[32]}],[257,"justifi-header",{"text":[1],"level":[1],"class":[1]}],[256,"justifi-modular-checkout",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"preCompleteHook":[16],"fillBillingForm":[64],"setSelectedPaymentMethod":[64],"validate":[64],"submitCheckout":[64]}],[257,"justifi-paypal"],[257,"justifi-plaid-payment-method",{"isAuthenticating":[32],"publicToken":[32],"linkToken":[32],"linkTokenId":[32],"error":[32],"plaidLink":[32],"isSelected":[32],"retryCount":[32],"isRetrying":[32],"resolvePaymentMethod":[64],"getPaymentToken":[64],"handleSelectionClick":[64],"setSelected":[64],"isCurrentlySelected":[64],"deselect":[64],"reset":[64],"isReadyForAuthentication":[64],"retry":[64],"getErrorInfo":[64]},null,{"isSelected":["onSelectionChange"]}],[257,"justifi-sezzle-payment-method",{"installmentPlan":[32],"sezzleCheckout":[32],"resolvePaymentMethod":[64],"handleSelectionClick":[64]}]]],["p-0fbc806f",[[256,"form-control-date",{"name":[1],"label":[1],"inputHandler":[16],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"disabled":[4],"showTime":[4,"show-time"],"maxDate":[1,"max-date"],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-42021e67",[[256,"shipping-details",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"documentList":[32],"validateAndSubmit":[64]}],[256,"customer-details",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"duplicate-charge",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"additional-statement",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"acceptedTerms":[32],"acceptedTermsErrorText":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"cancellation-policy",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"product-or-service",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"refund-policy",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"electronic-evidence",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}]]],["p-f3682c72",[[256,"business-owners-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"ownersPayload":[32],"refs":[32],"newFormOpen":[32],"isLoading":[32],"representativeIsOwner":[32],"representative":[32],"validateAndSubmit":[64]},[[0,"ownerSubmitted","handleOwnerSubmit"]],{"authToken":["propChanged"],"businessId":["propChanged"],"ownersPayload":["ownersWatcher"]}],[256,"business-representative-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"formController":[32],"errors":[32],"representative":[32],"isLoading":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"business-bank-account-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"formController":[32],"errors":[32],"bankAccount":[32],"isLoading":[32],"viewMode":[32],"getBusiness":[32],"postBankAccount":[32],"bankAccountVerification":[32],"platformAccountId":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"],"isLoading":["watchHandler"]}],[256,"additional-questions-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"formController":[32],"errors":[32],"additional_questions":[32],"recurringPayments":[32],"isLoading":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"],"additional_questions":["recurringPaymentsWatcher"]}],[256,"business-core-info-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"formController":[32],"errors":[32],"coreInfo":[32],"isLoading":[32],"isEditingTaxId":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"document-upload-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"owners":[32],"existingDocuments":[32],"selectedCategory":[32],"selectedDocType":[32],"uploadQueue":[32],"isLoading":[32],"errors":[32],"fileInputKey":[32],"getBusiness":[32],"postDocumentRecord":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"],"isLoading":["watchHandler"]}],[256,"legal-address-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"formController":[32],"errors":[32],"legal_address":[32],"isLoading":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"business-terms-conditions-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"acceptedTermsBefore":[32],"acceptedTerms":[32],"validateAndSubmit":[64]}],[256,"owner-form",{"authToken":[1,"auth-token"],"ownerId":[1,"owner-id"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"removeOwner":[16],"newFormOpen":[4,"new-form-open"],"ownersLength":[2,"owners-length"],"country":[1],"isLoading":[32],"formController":[32],"errors":[32],"owner":[32],"getOwner":[32],"patchOwner":[32],"postOwner":[32],"returnOwnerData":[64],"getOwnershipPercentage":[64],"setOwnershipPercentageError":[64],"getEmail":[64],"setEmailError":[64],"validate":[64],"submit":[64],"validateAndSubmit":[64]},null,{"isLoading":["loadingWatcher"]}],[256,"business-representative-form-inputs",{"representativeDefaultValue":[8,"representative-default-value"],"errors":[8],"formController":[16],"country":[1],"isEditingIdentification":[32]}],[256,"bank-account-form-inputs",{"defaultValue":[8,"default-value"],"errors":[8],"inputHandler":[16],"formDisabled":[4,"form-disabled"]}],[256,"bank-account-form-inputs-canada",{"defaultValue":[8,"default-value"],"errors":[8],"inputHandler":[16],"formDisabled":[4,"form-disabled"]}],[256,"business-documents-on-file",{"documents":[8],"isLoading":[4,"is-loading"]}],[256,"document-upload-list",{"documents":[16]}],[256,"plaid-verification",{"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"businessId":[1,"business-id"],"linkToken":[32],"linkTokenId":[32],"plaidLink":[32],"isAuthenticating":[32],"isSuccess":[32],"error":[32],"isLoading":[32]}]]]]'),e))));
|
|
1
|
+
import{p as e,B as t,a,w as n,N as o,d as i,b as r}from"./p-CV0Pyo1O.js";export{s as setNonce}from"./p-CV0Pyo1O.js";import{g as d}from"./p-DQuL1Twl.js";var l=e=>{const t=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return t.call(this,e);const a=t.call(this,!1),n=this.childNodes;if(e)for(let e=0;e<n.length;e++)2!==n[e].nodeType&&a.appendChild(n[e].cloneNode(!0));return a}};(()=>{t.isDev&&!t.isTesting&&a("Running in development mode."),t.cloneNodeFix&&l(i.prototype);const r=t.scriptDataOpts?n.document&&Array.from(n.document.querySelectorAll("script")).find((e=>new RegExp(`/${o}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===o)):null,s=import.meta.url,d=t.scriptDataOpts&&(r||{})["data-opts"]||{};return""!==s&&(d.resourcesUrl=new URL(".",s).href),e(d)})().then((async e=>(await d(),r(JSON.parse('[["p-44ff4f2c",[[260,"justifi-checkout",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"disableBankAccount":[4,"disable-bank-account"],"disableBnpl":[4,"disable-bnpl"],"disableCreditCard":[4,"disable-credit-card"],"disablePaymentMethodGroup":[4,"disable-payment-method-group"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"hideCardBillingForm":[4,"hide-card-billing-form"],"googlePayEnv":[1,"google-pay-env"],"preCompleteHook":[16],"availablePaymentMethods":[32],"checkout":[32],"complete":[32],"errorMessage":[32],"insuranceToggled":[32],"serverError":[32],"fillBillingForm":[64],"validate":[64]},[[0,"submit-event","checkoutComplete"],[0,"error-event","checkoutError"],[0,"checkout-changed","checkoutChanged"]],{"authToken":["propChanged"],"checkoutId":["propChanged"],"disableCreditCard":["propChanged"],"disableBankAccount":["propChanged"],"disablePaymentMethodGroup":["propChanged"]}]]],["p-f40fa614",[[257,"justifi-payment-provisioning",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"allowOptionalFields":[4,"allow-optional-fields"],"formTitle":[1,"form-title"],"loading":[32],"businessLoading":[32],"businessProvisioned":[32],"formSubmitted":[32],"submissionFailed":[32],"currentStep":[32],"errorMessage":[32],"country":[32]},[[0,"formCompleted","handleFormCompleted"],[0,"formLoading","handleFormLoading"]],{"authToken":["propChanged"],"businessId":["propChanged"]}]]],["p-19cabdaf",[[257,"justifi-dispute-management",{"disputeId":[1,"dispute-id"],"authToken":[1,"auth-token"],"getDispute":[32],"dispute":[32],"isLoading":[32],"showDisputeResponseForm":[32]},[[0,"click-event","disputeResponseHandler"],[0,"submit-event","disputeSubmittedHandler"]],{"disputeId":["propChanged"],"authToken":["propChanged"]}]]],["p-9b43b90d",[[257,"justifi-business-form",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"hideErrors":[4,"hide-errors"],"formTitle":[1,"form-title"],"removeTitle":[4,"remove-title"],"isLoading":[32],"isSaving":[32],"errorMessage":[32],"country":[32]}]]],["p-28fb6b50",[[257,"justifi-billing-form",{"legend":[1025],"hideCardBillingForm":[4,"hide-card-billing-form"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"paymentMethodType":[1,"payment-method-type"],"getValues":[64],"validate":[64]}]]],["p-0cd689f4",[[257,"justifi-business-details",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"getBusiness":[32],"business":[32],"loading":[32],"errorMessage":[32]},null,{"businessId":["propChanged"],"authToken":["propChanged"],"getBusiness":["updateOnPropChange"]}]]],["p-d3544e86",[[257,"justifi-checkouts-list-filters",{"checkoutStatus":[1,"checkout-status"],"paymentMode":[1,"payment-mode"],"checkoutId":[1,"checkout-id"],"successfulPaymentId":[1,"successful-payment-id"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-72bb4aff",[[257,"justifi-payments-list-filters",{"paymentId":[1,"payment-id"],"terminalId":[1,"terminal-id"],"paymentStatus":[1,"payment-status"],"paymentMode":[1,"payment-mode"],"checkoutId":[1,"checkout-id"],"accountHolder":[1,"account-holder"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-0e9351c4",[[257,"justifi-refund-payment",{"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"paymentId":[1,"payment-id"],"hideSubmitButton":[4,"hide-submit-button"],"formController":[32],"refundPayload":[32],"displayAmount":[32],"errors":[32],"paymentLoading":[32],"refundLoading":[32],"submitDisabled":[32],"payment":[32],"refundPayment":[64]}]]],["p-735d397e",[[257,"justifi-terminal-orders-list-filters",{"orderStatus":[1,"order-status"],"orderType":[1,"order-type"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"],"companyName":[1,"company-name"]}]]],["p-3a1f8c5b",[[257,"justifi-terminals-list-filters",{"terminalId":[1,"terminal-id"],"terminalOrderId":[1,"terminal-order-id"],"providerId":[1,"provider-id"],"serialNumber":[1,"serial-number"],"terminalStatus":[1,"terminal-status"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-ca6c5365",[[257,"justifi-billing-form-full",{"legend":[1025],"getValues":[64],"validate":[64]}]]],["p-2ef913b8",[[257,"justifi-payouts-list-filters",{"status":[1],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-f5cb6a26",[[257,"justifi-bank-account-billing-form-simple",{"legend":[1025],"getValues":[64],"validate":[64]}]]],["p-c385f10d",[[257,"justifi-bank-account-form",{"validate":[64],"tokenize":[64]}]]],["p-36340e63",[[257,"justifi-card-billing-form-simple",{"legend":[1025],"getValues":[64],"validate":[64]}]]],["p-9db15fac",[[257,"justifi-card-form",{"validate":[64],"tokenize":[64]}]]],["p-1fa62eba",[[256,"form-control-file",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"multiple":[4],"documentType":[1,"document-type"],"inputHandler":[16],"disabled":[4],"files":[32],"fileString":[32],"isFocused":[32]}]]],["p-f39889f2",[[256,"bank-account-document-form-inputs",{"inputHandler":[16],"errors":[8],"storeFiles":[16]}]]],["p-6c7fca1a",[[257,"justifi-order-terminals",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"shipping":[4],"submitButtonText":[1,"submit-button-text"],"loading":[32],"submitting":[32],"error":[32],"business":[32],"terminalModels":[32],"orderLimit":[32],"order":[32],"totalQuantity":[32]}]]],["p-ead48010",[[256,"form-control-checkbox",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"checked":[4],"inputHandler":[16],"disabled":[4],"isFocused":[32]}]]],["p-777470cb",[[257,"justifi-save-new-payment-method",{"label":[1],"hidden":[4]}]]],["p-8d11aa27",[[256,"justifi-saved-payment-method",{"paymentMethodOption":[16],"isSelected":[4,"is-selected"],"resolvePaymentMethod":[64]}]]],["p-cec7164e",[[257,"justifi-season-interruption-insurance",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"primaryIdentityFirstName":[1,"primary-identity-first-name"],"primaryIdentityLastName":[1,"primary-identity-last-name"],"primaryIdentityState":[1,"primary-identity-state"],"primaryIdentityPostalCode":[1,"primary-identity-postal-code"],"primaryIdentityCountry":[1,"primary-identity-country"],"primaryIdentityEmailAddress":[1,"primary-identity-email-address"],"policyAttributesInsurableAmount":[2,"policy-attributes-insurable-amount"],"policyAttributesStartDate":[1,"policy-attributes-start-date"],"policyAttributesEndDate":[1,"policy-attributes-end-date"],"coveredIdentityFirstName":[1,"covered-identity-first-name"],"coveredIdentityLastName":[1,"covered-identity-last-name"],"getQuote":[32],"toggleCoverage":[32],"quote":[32],"isLoading":[32],"accepted":[32],"validate":[64]}]]],["p-fda6f27d",[[257,"payment-method-option",{"paymentMethodOptionId":[1,"payment-method-option-id"],"isSelected":[4,"is-selected"],"clickHandler":[16],"radioButtonHidden":[4,"radio-button-hidden"],"label":[1]}]]],["p-59b95eae",[[257,"justifi-checkouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"subAccountId":[1,"sub-account-id"],"checkouts":[32],"checkoutsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32],"getCheckouts":[32],"getSubAccounts":[32]},null,{"accountId":["authPropChanged"],"authToken":["authPropChanged"],"subAccountId":["authPropChanged"],"pagingParams":["pagingOrColumnsChanged"],"columns":["pagingOrColumnsChanged"]}]]],["p-f9f310dc",[[257,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"getPaymentDetails":[32],"payment":[32],"loading":[32],"errorMessage":[32]},null,{"paymentId":["propChanged"],"authToken":["propChanged"],"getPaymentDetails":["updateOnPropChange"]}]]],["p-065b854f",[[257,"justifi-payment-transactions-list",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"columns":[1],"balanceTransactions":[32],"transactionsTable":[32],"isLoading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["propChanged"],"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["p-4740601b",[[257,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getPayments":[32],"errorMessage":[32],"payments":[32],"paymentsTable":[32],"loading":[32],"paging":[32],"pagingParams":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"],"pagingParams":["updateOnPropChange"],"getPayments":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-c55fdbbf",[[257,"justifi-payout-details",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"enableRecordClick":[4,"enable-record-click"],"getPayout":[32],"getPayoutCSV":[32],"payout":[32],"loading":[32],"errorMessage":[32]},null,{"payoutId":["propChanged"],"authToken":["propChanged"],"getPayout":["getPayoutWatcher"]}]]],["p-9eb00966",[[257,"justifi-payout-transactions-list",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"columns":[1],"balanceTransactions":[32],"transactionsTable":[32],"isLoading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["propChanged"],"payoutId":["propChanged"],"authToken":["propChanged"]}]]],["p-f2b3c7d5",[[257,"justifi-payouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getPayouts":[32],"getPayoutCSV":[32],"getSubAccounts":[32],"errorMessage":[32],"payouts":[32],"payoutsTable":[32],"subAccounts":[32],"loading":[32],"paging":[32],"pagingParams":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"],"pagingParams":["updateOnPropChange"],"getPayouts":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"]}]]],["p-a71cc8e2",[[256,"justifi-qr-terminal",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"pollIntervalMs":[2,"poll-interval-ms"],"pollTimeoutMs":[2,"poll-timeout-ms"],"terminalState":[32],"paymentStatus":[32],"errorMessage":[32]},[[0,"error-event","suppressInnerErrors"]],{"authToken":["propChanged"],"checkoutId":["propChanged"]}]]],["p-de047614",[[257,"justifi-terminal-orders-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"terminalOrders":[32],"terminalOrdersTable":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32],"getTerminalOrders":[32]},null,{"accountId":["authPropChanged"],"authToken":["authPropChanged"],"pagingParams":["pagingOrColumnsChanged"],"columns":["pagingOrColumnsChanged"]}]]],["p-a10beb26",[[257,"justifi-terminals-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getTerminals":[32],"getSubAccounts":[32],"terminals":[32],"terminalsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"],"pagingParams":["updateOnPropChange"],"getTerminals":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-715df6a8",[[256,"justifi-config-provider",{"apiOrigin":[1,"api-origin"],"iframeOrigin":[1,"iframe-origin"],"accountId":[1,"account-id"]}]]],["p-0f7e3515",[[257,"justifi-gross-payment-chart",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getGrossPayment":[32],"grossVolumeReport":[32],"loading":[32],"errorMessage":[32],"wrapperErrorMessage":[32]},null,{"accountId":["authPropChanged"],"authToken":["authPropChanged"],"grossVolumeReport":["grossVolumeReportChanged"]}]]],["p-2b5533a1",[[257,"justifi-skeleton",{"component":[1],"height":[8],"width":[8],"class":[1],"customStyle":[16]}]]],["p-388082cd",[[256,"terminal-quantity-selector",{"modelName":[1,"model-name"],"imageUrl":[1,"image-url"],"description":[1],"helpUrl":[1,"help-url"],"limit":[2],"selectedQuantity":[32]}]]],["p-acb0b66c",[[256,"form-control-monetary",{"name":[8],"label":[1],"inputHandler":[16],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"maxLength":[2,"max-length"],"keyDownHandler":[16],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-1cfa634a",[[256,"justifi-checkout-qr-code",{"checkoutId":[1,"checkout-id"],"size":[2]},null,{"checkoutId":["propChanged"],"size":["propChanged"]}]]],["p-89f0c2aa",[[256,"identity-address-form",{"handleFormUpdate":[16],"errors":[8],"defaultValues":[8,"default-values"],"country":[1],"address":[32]},null,{"address":["handleAddressChange"]}],[256,"form-control-number-masked",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"mask":[1],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}],[256,"form-address-fields",{"country":[1],"errors":[8],"defaultValues":[8,"default-values"],"inputHandler":[16]}]]],["p-5c889829",[[256,"payment-provisioning-form-steps",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"refs":[16],"currentStep":[2,"current-step"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"handleFormLoading":[16]}],[256,"payment-provisioning-form-buttons",{"currentStep":[2,"current-step"],"totalSteps":[2,"total-steps"],"formLoading":[4,"form-loading"],"formDisabled":[4,"form-disabled"],"previousStepButtonOnClick":[16],"nextStepButtonOnClick":[16]}]]],["p-88a44a02",[[256,"dispute-response",{"authToken":[1,"auth-token"],"disputeId":[1,"dispute-id"],"disputeResponse":[8,"dispute-response"],"apiOrigin":[1,"api-origin"],"updateDisputeResponse":[32],"submitDisputeResponse":[32],"createDisputeEvidence":[32],"errorMessage":[32],"isLoading":[32],"documentList":[32],"documentErrors":[32],"currentStep":[32],"currentStepComponentRef":[32]},null,{"disputeId":["propChanged"],"authToken":["propChanged"]}],[256,"dispute-notification",{"dispute":[16],"authToken":[1,"auth-token"],"isLoading":[4,"is-loading"]}]]],["p-b9ba7c95",[[256,"bank-account-form",{"iframeOrigin":[32],"tabId":[32],"iframeState":[32],"validate":[64],"tokenize":[64]}]]],["p-a8d25057",[[256,"card-form",{"iframeOrigin":[32],"tabId":[32],"iframeState":[32],"validate":[64],"tokenize":[64]}]]],["p-c7c79332",[[256,"form-control-help-text",{"helpText":[1,"help-text"],"name":[1]}]]],["p-f0434a13",[[256,"form-control-radio",{"label":[8],"name":[8],"value":[1],"helpText":[1,"help-text"],"inputHandler":[16],"disabled":[4],"errorText":[1,"error-text"],"checked":[4],"isFocused":[32]}]]],["p-3f2fb856",[[256,"radio-list-item",{"name":[1],"value":[1],"label":[8],"checked":[4],"hidden":[4],"class":[1]}]]],["p-c4889a06",[[256,"save-new-payment-method",{"label":[1],"hidden":[4],"isChecked":[32]}]]],["p-1365a46b",[[256,"internal-button",{"text":[1],"variant":[1],"isLoading":[4,"is-loading"],"clickHandler":[16],"disabled":[4],"type":[1],"class":[1],"customStyle":[1,"custom-style"],"hidden":[4]}]]],["p-b39dd96b",[[260,"justifi-details",{"errorMessage":[1,"error-message"]}]]],["p-9f0ef3f3",[[260,"table-filters-menu",{"params":[8],"clearParams":[16],"anchorButton":[32],"menu":[32],"showClearButton":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]],{"params":["watchParamsHandler"]}]]],["p-10787684",[[256,"form-control-select",{"name":[8],"label":[1],"options":[16],"inputHandler":[16],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}],[256,"form-control-text",{"name":[8],"label":[1],"inputHandler":[16],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"maxLength":[2,"max-length"],"keyDownHandler":[16],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-16261d8a",[[256,"business-representative",{"formController":[16],"country":[1],"errors":[32],"representative":[32],"isEditingIdentification":[32]}],[256,"business-core-info",{"formController":[16],"country":[1],"errors":[32],"coreInfo":[32],"isEditingTaxId":[32]}],[256,"additional-questions",{"formController":[16],"errors":[32],"additional_questions":[32]}],[256,"legal-address-form",{"formController":[16],"country":[1],"errors":[32],"legal_address":[32]}]]],["p-465e9e1c",[[256,"additional-questions-details",{"additionalQuestions":[16]}],[256,"core-info-details",{"business":[16]}],[256,"legal-address-details",{"legalAddress":[16]}],[256,"owner-details",{"owners":[16]}],[256,"representative-details",{"representative":[16]}]]],["p-af0c6421",[[256,"bank-account-read-only-value",{"label":[1],"value":[1]}]]],["p-6f88f836",[[256,"form-control-monetary-provisioning",{"label":[1],"name":[1],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"maskOptions":[8,"mask-options"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-b2129553",[[256,"pagination-menu",{"paging":[16],"params":[16]}]]],["p-429046e1",[[256,"owner-form-inputs",{"ownerDefaultValue":[8,"owner-default-value"],"errors":[8],"formController":[16],"country":[1],"isEditingIdentification":[32]}],[256,"form-control-number",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-082f912c",[[256,"billing-form",{"legend":[1025],"hideCardBillingForm":[4,"hide-card-billing-form"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"paymentMethodType":[1,"payment-method-type"],"getValues":[64],"validate":[64]}],[256,"billing-form-full",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"validate":[64]}],[256,"bank-account-billing-form-simple",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"validate":[64]}],[256,"card-billing-form-simple",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"validate":[64]}]]],["p-9e3e2e32",[[256,"form-control-textarea",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"maxLength":[2,"max-length"],"inputHandler":[16],"keyDownHandler":[16],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}],[256,"form-control-file-v2",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"multiple":[4],"inputHandler":[16],"disabled":[4],"files":[32]}]]],["p-a7c594d1",[[256,"hidden-input",{"isFocused":[32],"errorText":[32]}],[256,"iframe-input",{"inputId":[1,"input-id"],"label":[1],"iframeOrigin":[1,"iframe-origin"],"isFocused":[32],"isValid":[32],"errorText":[32],"validate":[64],"tokenize":[64],"reload":[64]}],[256,"form-alert",{"text":[1],"hideAlert":[4,"hide-alert"]}]]],["p-97c6593d",[[256,"form-control-tooltip",{"helpText":[1,"help-text"],"anchorIcon":[32],"tooltip":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]]],[260,"custom-popper",{"placement":[1],"offset":[16],"strategy":[1],"trigger":[1],"anchorRef":[16],"isOpen":[32]},null,{"anchorRef":["onAnchorRefChange"]}]]],["p-8432cb42",[[257,"justifi-tokenize-payment-method",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"disableBankAccount":[4,"disable-bank-account"],"disableCreditCard":[4,"disable-credit-card"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"hideCardBillingForm":[4,"hide-card-billing-form"],"hideSubmitButton":[4,"hide-submit-button"],"paymentMethodGroupId":[1,"payment-method-group-id"],"submitButtonText":[1,"submit-button-text"],"savePaymentMethodLabel":[1,"save-payment-method-label"],"computedHideSubmitButton":[32],"isLoading":[32],"selectedPaymentMethod":[32],"tokenizePaymentMethod":[64],"fillBillingForm":[64],"validate":[64],"getValues":[64],"tokenize":[64]},[[0,"radio-click","handleRadioClick"]],{"disableCreditCard":["paymentMethodsChanged"],"disableBankAccount":["paymentMethodsChanged"]}],[257,"justifi-radio-list-item",{"name":[1],"value":[1],"label":[8],"checked":[4],"hidden":[4],"class":[1]}],[257,"justifi-saved-payment-methods"],[257,"justifi-button",{"text":[1],"variant":[1],"isLoading":[4,"is-loading"],"clickHandler":[16],"disabled":[4],"type":[1],"class":[1],"customStyle":[1,"custom-style"],"hidden":[4]}],[257,"justifi-apple-pay",{"countryCode":[1,"country-code"],"merchantIdentifier":[1,"merchant-identifier"],"merchantDisplayName":[1,"merchant-display-name"],"initiativeContext":[1,"initiative-context"],"buttonType":[1,"button-type"],"buttonStyle":[1,"button-style"],"disabled":[4],"width":[1],"height":[1],"isLoading":[32],"isProcessing":[32],"isAvailable":[32],"canMakePayments":[32],"isConfigValid":[32],"error":[32],"isSupported":[64],"getPaymentMethods":[64],"abort":[64]}],[257,"justifi-checkout-summary"],[257,"justifi-google-pay",{"environment":[1],"merchantDisplayName":[1,"merchant-display-name"],"useNativePaymentRequest":[4,"use-native-payment-request"],"iframeOrigin":[32],"iframeReady":[32],"sdkLoaded":[32],"isReadyToPay":[32]}],[257,"justifi-header",{"text":[1],"level":[1],"class":[1]}],[256,"justifi-modular-checkout",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"preCompleteHook":[16],"fillBillingForm":[64],"setSelectedPaymentMethod":[64],"validate":[64],"submitCheckout":[64]}],[257,"justifi-paypal"],[257,"justifi-plaid-payment-method",{"isAuthenticating":[32],"publicToken":[32],"linkToken":[32],"linkTokenId":[32],"error":[32],"plaidLink":[32],"isSelected":[32],"retryCount":[32],"isRetrying":[32],"resolvePaymentMethod":[64],"getPaymentToken":[64],"handleSelectionClick":[64],"setSelected":[64],"isCurrentlySelected":[64],"deselect":[64],"reset":[64],"isReadyForAuthentication":[64],"retry":[64],"getErrorInfo":[64]},null,{"isSelected":["onSelectionChange"]}],[257,"justifi-sezzle-payment-method",{"installmentPlan":[32],"sezzleCheckout":[32],"resolvePaymentMethod":[64],"handleSelectionClick":[64]}]]],["p-0fbc806f",[[256,"form-control-date",{"name":[1],"label":[1],"inputHandler":[16],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"disabled":[4],"showTime":[4,"show-time"],"maxDate":[1,"max-date"],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-42021e67",[[256,"shipping-details",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"documentList":[32],"validateAndSubmit":[64]}],[256,"customer-details",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"duplicate-charge",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"additional-statement",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"acceptedTerms":[32],"acceptedTermsErrorText":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"cancellation-policy",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"product-or-service",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"refund-policy",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"electronic-evidence",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}]]],["p-13814028",[[256,"business-owners-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"ownersPayload":[32],"refs":[32],"newFormOpen":[32],"isLoading":[32],"representativeIsOwner":[32],"representative":[32],"validateAndSubmit":[64]},[[0,"ownerSubmitted","handleOwnerSubmit"]],{"authToken":["propChanged"],"businessId":["propChanged"],"ownersPayload":["ownersWatcher"]}],[256,"business-representative-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"formController":[32],"errors":[32],"representative":[32],"isLoading":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"business-bank-account-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"formController":[32],"errors":[32],"bankAccount":[32],"isLoading":[32],"viewMode":[32],"getBusiness":[32],"postBankAccount":[32],"bankAccountVerification":[32],"platformAccountId":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"],"isLoading":["watchHandler"]}],[256,"additional-questions-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"formController":[32],"errors":[32],"additional_questions":[32],"recurringPayments":[32],"isLoading":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"],"additional_questions":["recurringPaymentsWatcher"]}],[256,"business-core-info-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"formController":[32],"errors":[32],"coreInfo":[32],"isLoading":[32],"isEditingTaxId":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"document-upload-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"owners":[32],"existingDocuments":[32],"selectedCategory":[32],"selectedDocType":[32],"uploadQueue":[32],"isLoading":[32],"errors":[32],"fileInputKey":[32],"getBusiness":[32],"postDocumentRecord":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"],"isLoading":["watchHandler"]}],[256,"legal-address-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"formController":[32],"errors":[32],"legal_address":[32],"isLoading":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"business-terms-conditions-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"acceptedTermsBefore":[32],"acceptedTerms":[32],"validateAndSubmit":[64]}],[256,"owner-form",{"authToken":[1,"auth-token"],"ownerId":[1,"owner-id"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"removeOwner":[16],"newFormOpen":[4,"new-form-open"],"ownersLength":[2,"owners-length"],"country":[1],"isLoading":[32],"formController":[32],"errors":[32],"owner":[32],"getOwner":[32],"patchOwner":[32],"postOwner":[32],"returnOwnerData":[64],"getOwnershipPercentage":[64],"setOwnershipPercentageError":[64],"getEmail":[64],"setEmailError":[64],"validate":[64],"submit":[64],"validateAndSubmit":[64]},null,{"isLoading":["loadingWatcher"]}],[256,"business-representative-form-inputs",{"representativeDefaultValue":[8,"representative-default-value"],"errors":[8],"formController":[16],"country":[1],"isEditingIdentification":[32]}],[256,"bank-account-form-inputs",{"defaultValue":[8,"default-value"],"errors":[8],"inputHandler":[16],"formDisabled":[4,"form-disabled"]}],[256,"bank-account-form-inputs-canada",{"defaultValue":[8,"default-value"],"errors":[8],"inputHandler":[16],"formDisabled":[4,"form-disabled"]}],[256,"business-documents-on-file",{"documents":[8],"isLoading":[4,"is-loading"]}],[256,"document-upload-list",{"documents":[16]}],[256,"plaid-verification",{"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"businessId":[1,"business-id"],"linkToken":[32],"linkTokenId":[32],"plaidLink":[32],"isAuthenticating":[32],"isSuccess":[32],"error":[32],"isLoading":[32]}]]]]'),e))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justifi/webcomponents",
|
|
3
|
-
"version": "6.15.0
|
|
3
|
+
"version": "6.15.0",
|
|
4
4
|
"description": "JustiFi Web Components",
|
|
5
5
|
"collection": "dist/collection/collection-manifest.json",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -30,18 +30,6 @@
|
|
|
30
30
|
"files": [
|
|
31
31
|
"dist/"
|
|
32
32
|
],
|
|
33
|
-
"scripts": {
|
|
34
|
-
"build": "stencil build",
|
|
35
|
-
"build:docs": "stencil build --docs && node scripts/generate-component-tree.mjs",
|
|
36
|
-
"dev": "stencil build --watch",
|
|
37
|
-
"lint": "eslint . --max-warnings 0",
|
|
38
|
-
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
39
|
-
"generate": "stencil generate",
|
|
40
|
-
"test": "TZ=utc stencil test --spec",
|
|
41
|
-
"test:watch": "TZ=utc stencil test --spec --watchAll",
|
|
42
|
-
"test:file": "stencil test --spec --watch --",
|
|
43
|
-
"cdn": "node cdn-server.mjs"
|
|
44
|
-
},
|
|
45
33
|
"dependencies": {
|
|
46
34
|
"@popperjs/core": "^2.11.8",
|
|
47
35
|
"@stencil/core": "4.38.3",
|
|
@@ -73,9 +61,19 @@
|
|
|
73
61
|
"jest": "^29.7.0",
|
|
74
62
|
"jest-cli": "^29.7.0",
|
|
75
63
|
"jest-environment-node": "^29.7.0",
|
|
76
|
-
"patch-package": "^8.0.1"
|
|
77
|
-
"ts-jest": "^29.1.2"
|
|
64
|
+
"patch-package": "^8.0.1"
|
|
78
65
|
},
|
|
79
66
|
"license": "MIT",
|
|
80
|
-
"gitHead": "507bac1d941eae6e1f56e185ecd9bc9d22637783"
|
|
81
|
-
|
|
67
|
+
"gitHead": "507bac1d941eae6e1f56e185ecd9bc9d22637783",
|
|
68
|
+
"scripts": {
|
|
69
|
+
"build": "stencil build",
|
|
70
|
+
"build:docs": "stencil build --docs && node scripts/generate-component-tree.mjs",
|
|
71
|
+
"dev": "stencil build --watch",
|
|
72
|
+
"lint": "eslint . --max-warnings 0",
|
|
73
|
+
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
74
|
+
"generate": "stencil generate",
|
|
75
|
+
"test": "TZ=utc stencil test --spec",
|
|
76
|
+
"test:watch": "TZ=utc stencil test --spec --watchAll",
|
|
77
|
+
"cdn": "node cdn-server.mjs"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as t}from"./p-vIQBTQmc.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{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-OeJ-3w3l.js";import"./p-B4vLfYnZ.js";import{c as s,a as d}from"./p-Ds_P-dB8.js";import{I as l,a as i}from"./p-D6uhYbLo.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import{f as r,p as c,c as o}from"./p-CArdj6i_.js";import{f as p,a as b}from"./p-Bu7gdOaV.js";import{S as f}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-DgTOxu8x.js";import"./p-HXpYMWUU.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{r[e]=a},this.handleDateInput=(e,a)=>{const t=s(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({status:this.checkoutStatus,payment_mode:this.paymentMode,checkout_id:this.checkoutId,successful_payment_id:this.successfulPaymentId,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(c[e]=a)}))}get checkoutStatusOptions(){return[{label:"All",value:""},{label:"Created",value:l.created},{label:"Completed",value:l.completed},{label:"Attempted",value:l.attempted},{label:"Expired",value:l.expired}]}get checkoutPaymentModeOptions(){return[{label:"All",value:""},{label:"E-commerce",value:i.ecom},{label:"BNPL",value:i.bnpl},{label:"Apple Pay",value:i.apple_pay}]}render(){const e=Object.assign({},r);return a(f,{key:"175f4d80e539b956be529d9e0e7bd94dd00aef32"},a("table-filters-menu",{key:"4d8acfb715b038948bce514d501b567be0e3d15d",params:e,clearParams:o,part:p},a("div",{key:"062bc3404f5985a84bf716976b617f9816012d0c",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"77d933a6d6b78350295b8169aa252157188625fa",class:"p-2"},a("form-control-text",{key:"d5193421fd54a05069d2c93b2d9702fe614a5b12",name:"checkout_id",label:"Checkout ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.checkoutId||r.checkout_id,disabled:!!this.checkoutId,part:b})),a("div",{key:"964eb355ce3c7d089d832aac9909d81d12a13001",class:"p-2"},a("form-control-text",{key:"5942e0937e04b6957efed9eabc770f28665669f6",name:"successful_payment_id",label:"Successful Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.successfulPaymentId||r.successful_payment_id,disabled:!!this.successfulPaymentId,part:b})),a("div",{key:"35a093a384d2c386cbfc117714409ee3e262bc72",class:"p-2"},a("form-control-select",{key:"7bdbb5d2f9e3a1b82ff9f5245767992308d8ba7d",name:"status",label:"Status",options:this.checkoutStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.checkoutStatus||r.status||"",disabled:!!this.checkoutStatus,part:b})),a("div",{key:"59de4b040ac72aa2f26ea52c729125de23c561cd",class:"p-2"},a("form-control-select",{key:"c6f202c97e0dce53b11da79369659de1f01aa4e7",name:"payment_mode",label:"Payment Mode",options:this.checkoutPaymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentMode||r.payment_mode||"",disabled:!!this.paymentMode,part:b})),a("div",{key:"63094ad30d30ede904b82b40b4223b466258b43b",class:"p-2"},a("form-control-date",{key:"dc8a121917086233970feff405edfab4a5a84794",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:d(this.createdAfter,{showInputDateTime:!0})||d(r.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:b})),a("div",{key:"fa9eefce1d398a0be634a03a72ce98f28ecac696",class:"p-2"},a("form-control-date",{key:"9b07c3693396a1bf47d996fa83d1902188cf78cb",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:d(this.createdBefore,{showInputDateTime:!0})||d(r.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:b})))))}};export{u as justifi_checkouts_list_filters}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{c as e,F as r}from"./p-D9sqTVmd.js";import{b as o,i as a,a as h,c as n,d as p,e as l,f as m}from"./p-CbyGKcz_.js";import"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import{C as c,b as d}from"./p-D6uhYbLo.js";import"./p-CLHwhyvu.js";import{C as u,B as j,b as v}from"./p-DaDqgDrb.js";import{J as b}from"./p-nbKvRcwU.js";import{B as f}from"./p-CU2Dwa94.js";import{S as g}from"./p-05AWudQe.js";import{H as w}from"./p-CZk3i5Tu.js";import"./p-CZfYo5-1.js";import{c as C}from"./p-BEL8sLz6.js";import{S as y}from"./p-eBK-iWrz.js";import{B}from"./p-XYgDHrVL.js";import{m as x,a as O}from"./p-B0DHIvEj.js";import{B as D}from"./p-CJEetAx7.js";import"./p-BFTU3MAI.js";import"./p-Do9dxNjh.js";import"./p-CawcnSoV.js";import"./p-OReJ-ZQb.js";import"./p-DgTOxu8x.js";import"./p-Ds_P-dB8.js";import"./p-CAVi_ne1.js";import"./p-vIQBTQmc.js";import"./p-Bu7gdOaV.js";import"./p-CLq3Og7o.js";const L=e(Object.assign(Object.assign({},o().fields),{legal_address:n(),additional_questions:h(),representative:a("representative")}));e(Object.assign(Object.assign({},p().fields),{legal_address:m(),additional_questions:h(),representative:l("representative")}));const _=L,S=()=>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%"}))),k=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(y,{width:"40%",height:"40px"})),s(S,null),s(S,null),s(S,null)),q=class{constructor(s){t(this,s),this.submitEvent=i(this,"submit-event",7),this.clickEvent=i(this,"click-event",7),this.errorEvent=i(this,"error-event",7),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(){C(),this.analytics=new b(this),this.formController=new r(_),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=x({authToken:this.authToken,businessId:this.businessId,service:new D}),this.patchBusiness=O({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=v.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(g,null,this.isLoading?s(k,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(w,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("business-core-info",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("legal-address-form",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("business-representative",{formController:this.formController,country:this.country})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(f,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:B.submit}),isLoading:this.isSaving},"Submit")))))}};export{q as justifi_business_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import{j as s,C as i,b as r}from"./p-D6uhYbLo.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import{J as o}from"./p-nbKvRcwU.js";import{c}from"./p-BEL8sLz6.js";import{g as p,a as h}from"./p-CLq3Og7o.js";import{P as d}from"./p-BAKuMxC9.js";import{T as f,a as l,b as u,c as m,d as b,e as y,f as _,g,h as j,i as T,j as w,k,l as v}from"./p-DZr0wLGh.js";import{S as C}from"./p-05AWudQe.js";import{T as D}from"./p-CZfYo5-1.js";import{a as P}from"./p-Ds_P-dB8.js";import{a6 as R,a7 as F}from"./p-Bu7gdOaV.js";import"./p-DgTOxu8x.js";import"./p-CAVi_ne1.js";import"./p-vIQBTQmc.js";import"./p-MPer3Rw7.js";const x={created_at:()=>t("th",{part:R,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>t("th",{part:R,scope:"col",title:"The type of each transaction"},"Type"),id:()=>t("th",{part:R,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>t("th",{part:R,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>t("th",{part:R,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>t("th",{part:R,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>t("th",{part:R,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>t("th",{part:R,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>t("th",{part:R,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>t("th",{part:R,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>t("th",{part:R,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},S={ach_return:"ACH Return",ach_return_fee:"ACH Return Fee",dispute:"Dispute",dispute_fee:"Dispute Fee",dispute_fee_refund:"Dispute Fee Refund",dispute_refund:"Dispute Refund",payment:"Payment",payment_fee:"Fee",platform_fee:"Platform Fee",platform_fee_return:"Platform Fee Return",processing_fee:"Processing Fee",processing_fee_return:"Processing Fee Return",refund:"Refund",fee_refund:"Fee Refund",application_fee_returned:"Application Fee Returned",refund_failure:"Refund Failure",void:"Void"},I={created_at:(e,a)=>t("td",{part:F(a)},t("div",{class:"fw-bold"},P(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.created_at,{showTime:!0}))),type:(e,a)=>t("td",{part:F(a)},S[e.payment_balance_txn_type]),id:(e,a)=>t("td",{part:F(a)},e.id),amount:(e,a)=>t("td",{part:F(a),class:"text-end"},e.formattedPaymentAmount(e.amount)),balance:(e,a)=>t("td",{part:F(a),class:"text-end"},e.formattedPaymentAmount(e.balance)),currency:(e,a)=>t("td",{part:F(a)},e.currency),financial_transaction_id:(e,a)=>t("td",{part:F(a)},e.financial_transaction_id),payment_id:(e,a)=>t("td",{part:F(a)},e.payment_id),payment_balance_txn_type:(e,a)=>t("td",{part:F(a)},e.payment_balance_txn_type),source_id:(e,a)=>t("td",{part:F(a)},e.source_id),source_type:(e,a)=>t("td",{part:F(a)},e.source_type)},L=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=n,this.pagingParams={},this.columns="created_at,type,id,amount,balance",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:D.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:D.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:D.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,x,I),c(),this.analytics=new o(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.paymentId&&this.authToken?(({id:t,authToken:e,service:a})=>async({params:r,onSuccess:n,onError:o,final:c})=>{var d;try{const c=await a.fetchPaymentTransactions(t,e,r);c.error?o({error:h(c.error),code:p(null===(d=c.error)||void 0===d?void 0:d.code),severity:i.ERROR}):n({balanceTransactions:c.data.map((t=>new s(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=p(null==t?void 0:t.code);o({error:h(t),code:e,severity:i.ERROR})}finally{c()}})({id:this.paymentId,authToken:this.authToken,service:new d})({params:this.pagingParams,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="payment-id and auth-token props are required",this.handleError(r.MISSING_PROPS,this.errorMessage,i.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}render(){return t(C,{key:"f8b0f3a58ef7f88c0ac42fc58955b28ad97922e4"},t(l,{key:"2dc653b63611cbdfa388b386cec9b3adf751bd12"},t(u,{key:"a0bd64c01870ccd4bb921d5d90c7453650131f16"},t(m,{key:"b92ce24dab41cbaf1d8ecb1df43739d2548fe73f"},t(b,{key:"5f983b93b2b9b6661cae2cf74802519175aae8cc"},this.transactionsTable.columnData.map((t=>t)))),t(y,{key:"d9a51ecfc54c16a4859f9d66fb783f3876fc3428"},t(_,{key:"232f1b59ddeb9f949901678a67c652cc3aedfdf7",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(g,{key:"bd9a853887da939c651c234cd4f0e3ab35d610d1",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(j,{key:"da157eb9d18d89353f6aebb085bb4becb15ac89f",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(T,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(w,{key:"41ffc1c9d3591dad7973f862b78b488e089af863"},t(k,{key:"17780690e1b44eb6ba13128d3ecfee73c6be06a7"},t(v,{key:"312b9a0b9649ffd9033ec1333b2d9d8eb666d185",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"4ef805672cf530850ecdf13e26eefc8015f80fa3",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],paymentId:["propChanged"],authToken:["propChanged"]}}};export{L as justifi_payment_transactions_list}
|