@justifi/webcomponents 6.5.1-rc.2 → 6.5.1-rc.3
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/dist/cjs/{GooglePay-HXBAmTgL.js → GooglePay-40aEKdDF.js} +40 -9
- package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +1 -1
- package/dist/cjs/{business.service-DMzf08nC.js → business.service-BggHdPOV.js} +1 -1
- package/dist/cjs/{check-pkg-version-Bw6Rz_E3.js → check-pkg-version-DuPkU5qI.js} +2 -2
- package/dist/cjs/{checkout.service-CHNHEsrp.js → checkout.service-BUcIs9az.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/{dispute.service-B63kcFkU.js → dispute.service-CxWqivLc.js} +1 -1
- package/dist/cjs/{get-payment-details-BN139jp0.js → get-payment-details-D_dDxsPG.js} +1 -1
- package/dist/cjs/{get-subaccounts-IgHJX5J4.js → get-subaccounts-_D9lzD5O.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +3 -3
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +2 -2
- package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +241 -16
- package/dist/cjs/justifi-business-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkout.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +4 -4
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +4 -4
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +5 -5
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +5 -5
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +5 -5
- package/dist/cjs/{package--UMqvxMQ.js → package-C6nOTkVV.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-eOZc1Qay.js → payment.service-wWZTmyFv.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
- package/dist/cjs/{payout.service-QVl5N-UV.js → payout.service-CWAem5VG.js} +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +2 -2
- package/dist/cjs/{terminal-orders-table-g2fwrh2P.js → terminal-orders-table-DBNG4K5I.js} +1 -1
- package/dist/cjs/{terminal.service-BuSFyt0j.js → terminal.service-DSlqCGxE.js} +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +1 -1
- package/dist/collection/api/GooglePay.js +40 -9
- package/dist/collection/api/services/google-pay.service.js +137 -9
- package/dist/collection/components/modular-checkout/sub-components/google-pay.js +100 -3
- package/dist/docs.json +1 -1
- package/dist/esm/{GooglePay-9bPcqGZ9.js → GooglePay-f7mYX17c.js} +40 -9
- package/dist/esm/bank-account-document-form-inputs_6.entry.js +1 -1
- package/dist/esm/{business.service-2j91Emgq.js → business.service-CzHfftZk.js} +1 -1
- package/dist/esm/{check-pkg-version-2BU_KPHv.js → check-pkg-version-Cqb7EhvC.js} +2 -2
- package/dist/esm/{checkout.service-D-dEMyXF.js → checkout.service-BWdnJLVG.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +1 -1
- package/dist/esm/{dispute.service-DPumDIuV.js → dispute.service-CqX5HR5o.js} +1 -1
- package/dist/esm/{get-payment-details-CD_K6FQ3.js → get-payment-details-D0T7bd_-.js} +1 -1
- package/dist/esm/{get-subaccounts-D1eF6c0B.js → get-subaccounts-Gil-SOoF.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +3 -3
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +1 -1
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +2 -2
- package/dist/esm/justifi-apple-pay_8.entry.js +241 -16
- package/dist/esm/justifi-business-details.entry.js +4 -4
- package/dist/esm/justifi-business-form.entry.js +4 -4
- package/dist/esm/justifi-checkout.entry.js +3 -3
- package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-checkouts-list.entry.js +5 -5
- package/dist/esm/justifi-dispute-management.entry.js +4 -4
- package/dist/esm/justifi-dispute-notification_3.entry.js +4 -4
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-order-terminals.entry.js +5 -5
- package/dist/esm/justifi-owner-form_3.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +5 -5
- package/dist/esm/justifi-payment-provisioning.entry.js +4 -4
- package/dist/esm/justifi-payment-transactions-list.entry.js +4 -4
- package/dist/esm/justifi-payments-list.entry.js +4 -4
- package/dist/esm/justifi-payout-details.entry.js +4 -4
- package/dist/esm/justifi-payout-transactions-list.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +5 -5
- package/dist/esm/justifi-refund-payment.entry.js +5 -5
- package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list.entry.js +4 -4
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +5 -5
- package/dist/esm/{package-Bx3wyDU2.js → package-CzedYX3W.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +1 -1
- package/dist/esm/{payment.service-BreQSu6J.js → payment.service-CWyZF34P.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +1 -1
- package/dist/esm/{payout.service-DuqRe6oq.js → payout.service-CkTievFG.js} +1 -1
- package/dist/esm/payouts-list-core.entry.js +1 -1
- package/dist/esm/terminal-orders-list-core.entry.js +2 -2
- package/dist/esm/{terminal-orders-table-DSo5x2D7.js → terminal-orders-table-OX3ZvzZy.js} +1 -1
- package/dist/esm/{terminal.service-CkzrYIA_.js → terminal.service-Bu5-dhum.js} +1 -1
- package/dist/esm/terminals-list-core.entry.js +1 -1
- package/dist/module/GooglePay.js +40 -9
- package/dist/module/google-pay.js +237 -12
- package/dist/module/package.js +1 -1
- package/dist/types/api/services/google-pay.service.d.ts +1 -1
- package/dist/webcomponents/{p-d2935214.entry.js → p-0437c330.entry.js} +1 -1
- package/dist/webcomponents/{p-16812327.entry.js → p-065b24c3.entry.js} +1 -1
- package/dist/webcomponents/{p-9a795f44.entry.js → p-14cbf366.entry.js} +1 -1
- package/dist/webcomponents/{p-3c006a15.entry.js → p-1e014ee7.entry.js} +1 -1
- package/dist/webcomponents/{p-ee122560.entry.js → p-20e66fc0.entry.js} +1 -1
- package/dist/webcomponents/{p-04154136.entry.js → p-22fdf7a4.entry.js} +1 -1
- package/dist/webcomponents/{p-d88d228f.entry.js → p-25755af4.entry.js} +1 -1
- package/dist/webcomponents/{p-38e1ef4b.entry.js → p-3d3a65ca.entry.js} +1 -1
- package/dist/webcomponents/p-3f291e6b.entry.js +1 -0
- package/dist/webcomponents/{p-5cba8448.entry.js → p-44011a41.entry.js} +1 -1
- package/dist/webcomponents/{p-88f58abe.entry.js → p-4ccd753b.entry.js} +1 -1
- package/dist/webcomponents/{p-03930216.entry.js → p-4f16a3ce.entry.js} +1 -1
- package/dist/webcomponents/{p-a87187c3.entry.js → p-50a32503.entry.js} +1 -1
- package/dist/webcomponents/{p-06ce1202.entry.js → p-57ed105e.entry.js} +1 -1
- package/dist/webcomponents/{p-b3f8d5d4.entry.js → p-5e3bc1dc.entry.js} +1 -1
- package/dist/webcomponents/{p-7bf6ded7.entry.js → p-62cfe9b6.entry.js} +1 -1
- package/dist/webcomponents/p-6a075da4.entry.js +1 -0
- package/dist/webcomponents/{p-b8426810.entry.js → p-88074dd7.entry.js} +1 -1
- package/dist/webcomponents/{p-7dbd0618.entry.js → p-8c16e4aa.entry.js} +1 -1
- package/dist/webcomponents/{p-404b3f02.entry.js → p-8ee61443.entry.js} +1 -1
- package/dist/webcomponents/{p-c88babbe.entry.js → p-8efea1e4.entry.js} +1 -1
- package/dist/webcomponents/p-A2FbmAEt.js +1 -0
- package/dist/webcomponents/{p-Dy5btfGV.js → p-B4W3my_D.js} +1 -1
- package/dist/webcomponents/{p-CQrwlULd.js → p-BrazW3nF.js} +1 -1
- package/dist/webcomponents/{p-BN1PYSFf.js → p-CIOILVyM.js} +1 -1
- package/dist/webcomponents/{p-BKM7YeAB.js → p-CPRPR6fJ.js} +1 -1
- package/dist/webcomponents/p-CzedYX3W.js +1 -0
- package/dist/webcomponents/{p-CVhnuewz.js → p-DUs94fK3.js} +1 -1
- package/dist/webcomponents/{p-C01zp4xw.js → p-DXnwIxTB.js} +1 -1
- package/dist/webcomponents/{p-t8p0WAW4.js → p-DeX_cIoV.js} +1 -1
- package/dist/webcomponents/{p-Cmb6PRFh.js → p-TKWqvm_A.js} +1 -1
- package/dist/webcomponents/{p-BxtmTjqW.js → p-Yp5v6wmS.js} +1 -1
- package/dist/webcomponents/{p-BVwVhXcQ.js → p-aZ8YkDMZ.js} +1 -1
- package/dist/webcomponents/{p-8f4adcfd.entry.js → p-aa42e3c1.entry.js} +1 -1
- package/dist/webcomponents/{p-ba0762f9.entry.js → p-ad0f8d85.entry.js} +1 -1
- package/dist/webcomponents/{p-7b610d9e.entry.js → p-b8c47cb1.entry.js} +1 -1
- package/dist/webcomponents/p-c11e6c03.entry.js +1 -0
- package/dist/webcomponents/{p-a9f75a9e.entry.js → p-c5af7149.entry.js} +1 -1
- package/dist/webcomponents/{p-13bdb5ed.entry.js → p-c7df4370.entry.js} +1 -1
- package/dist/webcomponents/p-cf9d8e1a.entry.js +1 -0
- package/dist/webcomponents/{p-0cd1c683.entry.js → p-d3663663.entry.js} +1 -1
- package/dist/webcomponents/{p-47f6d271.entry.js → p-daedfe82.entry.js} +1 -1
- package/dist/webcomponents/{p-9370cf0d.entry.js → p-dd11e67b.entry.js} +1 -1
- package/dist/webcomponents/{p-9065d67e.entry.js → p-e3ab5fe2.entry.js} +1 -1
- package/dist/webcomponents/{p-0412f491.entry.js → p-e95e27af.entry.js} +1 -1
- package/dist/webcomponents/{p-c63b0271.entry.js → p-f66778b8.entry.js} +1 -1
- package/dist/webcomponents/{p-1d04bd7a.entry.js → p-ff212635.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-42658888.entry.js +0 -1
- package/dist/webcomponents/p-43390a7f.entry.js +0 -1
- package/dist/webcomponents/p-BRbk6oSh.js +0 -1
- package/dist/webcomponents/p-Bx3wyDU2.js +0 -1
- package/dist/webcomponents/p-a0c9f0bd.entry.js +0 -1
- package/dist/webcomponents/p-e9d13cca.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-DwYM91AU.js";export{s as setNonce}from"./p-DwYM91AU.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((async e=>(await a(),t(JSON.parse('[["p-04154136",[[257,"justifi-payment-provisioning",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"allowOptionalFields":[4,"allow-optional-fields"],"formTitle":[1,"form-title"],"postProvisioning":[32],"getBusiness":[32]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}]]],["p-88f58abe",[[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"],"preCompleteHook":[16],"availablePaymentMethods":[32],"checkout":[32],"complete":[32],"errorMessage":[32],"insuranceToggled":[32],"isSubmitting":[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-7bf6ded7",[[256,"justifi-dispute-management",{"disputeId":[1,"dispute-id"],"authToken":[1,"auth-token"],"getDispute":[32],"errorMessage":[32]},null,{"disputeId":["propChanged"],"authToken":["propChanged"]}]]],["p-a22d1078",[[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"],"tokenizePaymentMethod":[64],"fillBillingForm":[64],"validate":[64]}]]],["p-9370cf0d",[[257,"justifi-business-details",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"errorMessage":[32],"getBusiness":[32]}]]],["p-a020c889",[[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-43390a7f",[[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-03c8c754",[[257,"justifi-payments-list-filters",{"paymentId":[1,"payment-id"],"terminalId":[1,"terminal-id"],"paymentStatus":[1,"payment-status"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-d88d228f",[[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],"refundPayment":[64]}]]],["p-ba0762f9",[[257,"justifi-terminal-orders-list-filters",{"orderStatus":[1,"order-status"],"orderType":[1,"order-type"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-ee122560",[[257,"justifi-terminals-list-filters",{"terminalId":[1,"terminal-id"],"terminalOrderId":[1,"terminal-order-id"],"terminalStatus":[1,"terminal-status"]}]]],["p-d2935214",[[257,"justifi-checkouts-list-filters",{"checkoutStatus":[1,"checkout-status"],"paymentMode":[1,"payment-mode"]}]]],["p-0772719b",[[257,"justifi-payouts-list-filters",{"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-a87187c3",[[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-8f4adcfd",[[257,"justifi-checkouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getCheckouts":[32],"getSubAccounts":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-a0c9f0bd",[[257,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"getPaymentDetails":[32],"errorMessage":[32]},null,{"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["p-7b610d9e",[[257,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getPayments":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-0412f491",[[257,"justifi-payout-details",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"enableRecordClick":[4,"enable-record-click"],"getPayout":[32],"getPayoutCSV":[32],"errorMessage":[32]},null,{"payoutId":["propChanged"],"authToken":["propChanged"]}]]],["p-06ce1202",[[257,"justifi-payouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getPayouts":[32],"getPayoutCSV":[32],"getSubAccounts":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-270bf699",[[256,"justifi-saved-payment-method",{"paymentMethodOption":[16],"isSelected":[4,"is-selected"],"resolvePaymentMethod":[64]}]]],["p-03930216",[[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-c63b0271",[[257,"justifi-terminal-orders-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getTerminalOrders":[32],"errorMessage":[32]}]]],["p-0cd1c683",[[257,"justifi-terminals-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getTerminals":[32],"getSubAccounts":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-4f102cfd",[[257,"payment-method-option",{"paymentMethodOptionId":[1,"payment-method-option-id"],"isSelected":[4,"is-selected"],"clickHandler":[16],"radioButtonHidden":[4,"radio-button-hidden"],"label":[1]}]]],["p-aaed4997",[[256,"bank-account-form",{"isReady":[32],"iframeOrigin":[32],"tabId":[32],"validate":[64],"tokenize":[64]}]]],["p-1f196690",[[256,"card-form",{"isReady":[32],"iframeOrigin":[32],"tabId":[32],"validate":[64],"tokenize":[64]}]]],["p-9065d67e",[[257,"justifi-gross-payment-chart",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getGrossPayment":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-e9d13cca",[[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-47f6d271",[[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-86111a0a",[[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-20af8597",[[256,"justifi-config-provider",{"apiOrigin":[1,"api-origin"],"iframeOrigin":[1,"iframe-origin"],"accountId":[1,"account-id"]}]]],["p-c621e7af",[[257,"justifi-skeleton",{"component":[1],"height":[8],"width":[8],"class":[1],"customStyle":[16]}]]],["p-fe862786",[[256,"justifi-payment-provisioning-core",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"allowOptionalFields":[4,"allow-optional-fields"],"formTitle":[1,"form-title"],"getBusiness":[16],"postProvisioning":[16],"loading":[32],"businessProvisioned":[32],"currentStep":[32],"errorMessage":[32],"country":[32]},[[0,"formCompleted","handleFormCompleted"],[0,"formLoading","handleFormLoading"]]]]],["p-4e71de94",[[256,"justifi-dispute-management-core",{"getDispute":[16],"disputeId":[1,"dispute-id"],"authToken":[1,"auth-token"],"dispute":[32],"isLoading":[32],"showDisputeResponseForm":[32]},[[0,"click-event","disputeResponseHandler"],[0,"submit-event","disputeSubmittedHandler"]],{"getDispute":["updateOnPropChange"]}]]],["p-0ce046fd",[[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-c8f40375",[[256,"business-details-core",{"getBusiness":[16],"business":[32],"renderState":[32],"errorMessage":[32]}]]],["p-3ae12b98",[[256,"terminal-quantity-selector",{"modelName":[1,"model-name"],"imageUrl":[1,"image-url"],"description":[1],"helpUrl":[1,"help-url"],"limit":[2],"selectedQuantity":[32]}]]],["p-136b29e3",[[256,"pagination-menu",{"paging":[16],"params":[16]}]]],["p-404b3f02",[[256,"checkouts-list-core",{"getCheckouts":[16],"getSubAccounts":[16],"columns":[1],"checkouts":[32],"checkoutsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getCheckouts":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-a9f75a9e",[[256,"payment-details-core",{"getPaymentDetails":[16],"payment":[32],"loading":[32],"errorMessage":[32]},null,{"getPaymentDetails":["updateOnPropChange"]}]]],["p-9a795f44",[[256,"payments-list-core",{"getPayments":[16],"columns":[1],"payments":[32],"paymentsTable":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getPayments":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-a6e816f6",[[256,"payout-details-core",{"getPayout":[16],"getPayoutCSV":[16],"enableRecordClick":[4,"enable-record-click"],"payout":[32],"loading":[32],"errorMessage":[32]},null,{"getPayout":["getPayoutWatcher"]}]]],["p-38e1ef4b",[[256,"payouts-list-core",{"getPayouts":[16],"getSubAccounts":[16],"getPayoutCSV":[16],"columns":[1],"payouts":[32],"payoutsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getPayouts":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"]}]]],["p-16812327",[[256,"terminal-orders-list-core",{"getTerminalOrders":[16],"columns":[1],"terminalOrders":[32],"terminalOrdersTable":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getTerminalOrders":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-7dbd0618",[[256,"terminals-list-core",{"getTerminals":[16],"getSubAccounts":[16],"columns":[1],"terminals":[32],"terminalsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getTerminals":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-2eb123a3",[[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-f2650bfc",[[256,"gross-payment-chart-core",{"getGrossPayment":[16],"grossVolumeReport":[32],"loading":[32],"errorMessage":[32]},null,{"getGrossPayment":["propChanged"],"grossVolumeReport":["grossVolumeReportChanged"]}]]],["p-ad9307c1",[[260,"table-filters-menu",{"params":[8],"clearParams":[16],"anchorButton":[32],"menu":[32],"showClearButton":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]],{"params":["watchParamsHandler"]}]]],["p-42658888",[[257,"justifi-saved-payment-methods"],[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],"showSkeleton":[4,"show-skeleton"],"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",{"buttonSizeMode":[1,"button-size-mode"],"buttonStyle":[1,"button-style"],"buttonType":[1,"button-type"],"countryCode":[1,"country-code"],"disabled":[4],"environment":[1],"merchantId":[1,"merchant-id"],"merchantName":[1,"merchant-name"],"showSkeleton":[4,"show-skeleton"],"canMakePayments":[32],"error":[32],"isAvailable":[32],"isLoading":[32],"isProcessing":[32],"getSupportedAuthMethods":[64],"getSupportedNetworks":[64],"handleSelectionClick":[64],"isSupported":[64],"prefetchPaymentData":[64]},null,{"merchantId":["watchConfigChange"],"environment":["watchConfigChange"]}],[257,"justifi-header",{"text":[1],"level":[1],"class":[1]}],[256,"justifi-modular-checkout",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"preCompleteHook":[16],"setSelectedPaymentMethod":[64],"validate":[64],"submitCheckout":[64]}],[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],"sezzlePromise":[32],"resolvePaymentMethod":[64],"handleSelectionClick":[64]}]]],["p-e7e5fee9",[[260,"custom-popper",{"placement":[1],"offset":[16],"strategy":[1],"trigger":[1],"anchorRef":[16],"isOpen":[32]}]]],["p-19dabeab",[[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"]}],[256,"form-control-tooltip",{"helpText":[1,"help-text"],"anchorIcon":[32],"tooltip":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]]]]],["p-8fcd277c",[[256,"justifi-business-representative",{"formController":[8,"form-controller"],"country":[1],"errors":[32],"representative":[32],"isEditingIdentification":[32]}],[256,"justifi-business-core-info",{"formController":[16],"country":[1],"errors":[32],"coreInfo":[32],"isEditingTaxId":[32]}],[256,"justifi-additional-questions",{"formController":[8,"form-controller"],"errors":[32],"additional_questions":[32]}],[256,"justifi-legal-address-form",{"formController":[8,"form-controller"],"country":[1],"errors":[32],"legal_address":[32]}],[256,"form-alert",{"text":[1],"hideAlert":[4,"hide-alert"]}]]],["p-48d1bc83",[[256,"justifi-business-representative-form-inputs",{"representativeDefaultValue":[8,"representative-default-value"],"errors":[8],"formController":[16],"country":[1],"isEditingIdentification":[32]}]]],["p-8b6b7e20",[[260,"justifi-details",{"errorMessage":[1,"error-message"]}]]],["p-1d04bd7a",[[257,"justifi-dispute-response",{"authToken":[1,"auth-token"],"disputeId":[1,"dispute-id"],"disputeResponse":[16],"apiOrigin":[1,"api-origin"],"updateDisputeResponse":[32],"submitDisputeResponse":[32],"createDisputeEvidence":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}],[257,"justifi-dispute-notification",{"dispute":[16],"authToken":[1,"auth-token"],"isLoading":[4,"is-loading"]}],[256,"justifi-dispute-response-core",{"updateDisputeResponse":[16],"submitDisputeResponse":[16],"createDisputeEvidence":[16],"disputeResponse":[8,"dispute-response"],"isLoading":[32],"documentList":[32],"documentErrors":[32],"currentStep":[32],"currentStepComponentRef":[32]}]]],["p-e6507b93",[[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-2da4e6ca",[[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-914b590d",[[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-f528da70",[[257,"justifi-billing-form-full",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}],[257,"justifi-bank-account-billing-form-simple",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}],[257,"justifi-card-billing-form-simple",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}]]],["p-b8426810",[[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]}]]],["p-f37f3e94",[[256,"form-control-help-text",{"helpText":[1,"help-text"],"name":[1]}]]],["p-5cba8448",[[256,"internal-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],"fillBillingForm":[64],"tokenizePaymentMethod":[64],"validate":[64],"tokenize":[64]},[[0,"radio-click","handleRadioClick"]],{"disableCreditCard":["paymentMethodsChanged"],"disableBankAccount":["paymentMethodsChanged"]}],[256,"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],"fill":[64],"validate":[64]}],[257,"justifi-bank-account-form",{"iframeOrigin":[32],"isReady":[32],"validate":[64],"tokenize":[64]}],[257,"justifi-card-form",{"isReady":[32],"iframeOrigin":[32],"validate":[64],"tokenize":[64]}],[257,"justifi-radio-list-item",{"name":[1],"value":[1],"label":[8],"checked":[4],"hidden":[4],"class":[1]}],[257,"justifi-save-new-payment-method",{"label":[1],"isChecked":[32]}],[257,"justifi-button",{"text":[1],"variant":[1],"isLoading":[4,"is-loading"],"clickHandler":[16],"disabled":[4],"type":[1],"class":[1],"customStyle":[1,"custom-style"]}]]],["p-b3f8d5d4",[[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,"bank-account-document-form-inputs",{"inputHandler":[16],"errors":[8],"storeFiles":[16]}],[256,"business-documents-on-file",{"documents":[8],"isLoading":[4,"is-loading"]}],[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]}],[256,"bank-account-read-only-value",{"label":[1],"value":[1]}]]],["p-f4cb581f",[[256,"justifi-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,"justifi-form-address-fields",{"country":[1],"errors":[8],"defaultValues":[8,"default-values"],"inputHandler":[16]}]]],["p-3c006a15",[[256,"justifi-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],"getOwner":[32],"patchOwner":[32],"postOwner":[32],"validate":[64],"submit":[64],"validateAndSubmit":[64]}],[256,"owner-form-core",{"ownerId":[1,"owner-id"],"businessId":[1,"business-id"],"getOwner":[16],"patchOwner":[16],"postOwner":[16],"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],"returnOwnerData":[64],"validate":[64],"submit":[64],"validateAndSubmit":[64]},null,{"isLoading":["loadingWatcher"]}],[256,"owner-form-inputs",{"ownerDefaultValue":[8,"owner-default-value"],"errors":[8],"formController":[8,"form-controller"],"country":[1],"isEditingIdentification":[32]}]]],["p-c41191e7",[[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-13bdb5ed",[[256,"justifi-business-owners-form-step-core",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"ownersPayload":[32],"refs":[32],"newFormOpen":[32],"isLoading":[32],"validateAndSubmit":[64]},[[0,"ownerSubmitted","handleOwnerSubmit"]],{"ownersPayload":["ownersWatcher"]}],[256,"justifi-business-bank-account-form-step-core",{"businessId":[1,"business-id"],"getBusiness":[16],"postBankAccount":[16],"postDocumentRecord":[16],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"formController":[32],"errors":[32],"bankAccount":[32],"existingDocuments":[32],"documentData":[32],"isLoading":[32],"validateAndSubmit":[64]},null,{"isLoading":["watchHandler"]}],[256,"justifi-business-representative-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"formController":[32],"errors":[32],"representative":[32],"isLoading":[32],"validateAndSubmit":[64]}],[256,"justifi-business-core-info-form-step-core",{"businessId":[1,"business-id"],"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"formController":[32],"errors":[32],"coreInfo":[32],"isLoading":[32],"isEditingTaxId":[32],"validateAndSubmit":[64]}],[256,"justifi-additional-questions-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"additional_questions":[32],"recurringPayments":[32],"isLoading":[32],"validateAndSubmit":[64]},null,{"additional_questions":["recurringPaymentsWatcher"]}],[256,"justifi-legal-address-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"formController":[32],"errors":[32],"legal_address":[32],"isLoading":[32],"validateAndSubmit":[64]}]]],["p-c88babbe",[[256,"justifi-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,"justifi-payment-provisioning-form-buttons",{"currentStep":[2,"current-step"],"totalSteps":[2,"total-steps"],"formLoading":[4,"form-loading"],"formDisabled":[4,"form-disabled"],"previousStepButtonOnClick":[16],"nextStepButtonOnClick":[16]}],[256,"justifi-business-owners-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-business-bank-account-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"postBankAccount":[32],"postDocumentRecord":[32],"postDocument":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-business-representative-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-business-core-info-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-additional-questions-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-legal-address-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-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]}]]],["p-3bacf834",[[256,"justifi-shipping-details",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"documentList":[32],"validateAndSubmit":[64]}],[256,"justifi-customer-details",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-duplicate-charge",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-additional-statement",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"acceptedTerms":[32],"acceptedTermsErrorText":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-cancellation-policy",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-product-or-service",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-refund-policy",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-electronic-evidence",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}]]]]'),e))));
|
|
1
|
+
import{p as e,b as t}from"./p-DwYM91AU.js";export{s as setNonce}from"./p-DwYM91AU.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((async e=>(await a(),t(JSON.parse('[["p-22fdf7a4",[[257,"justifi-payment-provisioning",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"allowOptionalFields":[4,"allow-optional-fields"],"formTitle":[1,"form-title"],"postProvisioning":[32],"getBusiness":[32]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}]]],["p-4ccd753b",[[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"],"preCompleteHook":[16],"availablePaymentMethods":[32],"checkout":[32],"complete":[32],"errorMessage":[32],"insuranceToggled":[32],"isSubmitting":[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-62cfe9b6",[[256,"justifi-dispute-management",{"disputeId":[1,"dispute-id"],"authToken":[1,"auth-token"],"getDispute":[32],"errorMessage":[32]},null,{"disputeId":["propChanged"],"authToken":["propChanged"]}]]],["p-a22d1078",[[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"],"tokenizePaymentMethod":[64],"fillBillingForm":[64],"validate":[64]}]]],["p-dd11e67b",[[257,"justifi-business-details",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"errorMessage":[32],"getBusiness":[32]}]]],["p-a020c889",[[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-c11e6c03",[[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-03c8c754",[[257,"justifi-payments-list-filters",{"paymentId":[1,"payment-id"],"terminalId":[1,"terminal-id"],"paymentStatus":[1,"payment-status"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-25755af4",[[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],"refundPayment":[64]}]]],["p-ad0f8d85",[[257,"justifi-terminal-orders-list-filters",{"orderStatus":[1,"order-status"],"orderType":[1,"order-type"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-20e66fc0",[[257,"justifi-terminals-list-filters",{"terminalId":[1,"terminal-id"],"terminalOrderId":[1,"terminal-order-id"],"terminalStatus":[1,"terminal-status"]}]]],["p-0437c330",[[257,"justifi-checkouts-list-filters",{"checkoutStatus":[1,"checkout-status"],"paymentMode":[1,"payment-mode"]}]]],["p-0772719b",[[257,"justifi-payouts-list-filters",{"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-50a32503",[[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-aa42e3c1",[[257,"justifi-checkouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getCheckouts":[32],"getSubAccounts":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-3f291e6b",[[257,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"getPaymentDetails":[32],"errorMessage":[32]},null,{"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["p-b8c47cb1",[[257,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getPayments":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-e95e27af",[[257,"justifi-payout-details",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"enableRecordClick":[4,"enable-record-click"],"getPayout":[32],"getPayoutCSV":[32],"errorMessage":[32]},null,{"payoutId":["propChanged"],"authToken":["propChanged"]}]]],["p-57ed105e",[[257,"justifi-payouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getPayouts":[32],"getPayoutCSV":[32],"getSubAccounts":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-270bf699",[[256,"justifi-saved-payment-method",{"paymentMethodOption":[16],"isSelected":[4,"is-selected"],"resolvePaymentMethod":[64]}]]],["p-4f16a3ce",[[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-f66778b8",[[257,"justifi-terminal-orders-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getTerminalOrders":[32],"errorMessage":[32]}]]],["p-d3663663",[[257,"justifi-terminals-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getTerminals":[32],"getSubAccounts":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-4f102cfd",[[257,"payment-method-option",{"paymentMethodOptionId":[1,"payment-method-option-id"],"isSelected":[4,"is-selected"],"clickHandler":[16],"radioButtonHidden":[4,"radio-button-hidden"],"label":[1]}]]],["p-aaed4997",[[256,"bank-account-form",{"isReady":[32],"iframeOrigin":[32],"tabId":[32],"validate":[64],"tokenize":[64]}]]],["p-1f196690",[[256,"card-form",{"isReady":[32],"iframeOrigin":[32],"tabId":[32],"validate":[64],"tokenize":[64]}]]],["p-e3ab5fe2",[[257,"justifi-gross-payment-chart",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getGrossPayment":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-6a075da4",[[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-daedfe82",[[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-86111a0a",[[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-20af8597",[[256,"justifi-config-provider",{"apiOrigin":[1,"api-origin"],"iframeOrigin":[1,"iframe-origin"],"accountId":[1,"account-id"]}]]],["p-c621e7af",[[257,"justifi-skeleton",{"component":[1],"height":[8],"width":[8],"class":[1],"customStyle":[16]}]]],["p-fe862786",[[256,"justifi-payment-provisioning-core",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"allowOptionalFields":[4,"allow-optional-fields"],"formTitle":[1,"form-title"],"getBusiness":[16],"postProvisioning":[16],"loading":[32],"businessProvisioned":[32],"currentStep":[32],"errorMessage":[32],"country":[32]},[[0,"formCompleted","handleFormCompleted"],[0,"formLoading","handleFormLoading"]]]]],["p-4e71de94",[[256,"justifi-dispute-management-core",{"getDispute":[16],"disputeId":[1,"dispute-id"],"authToken":[1,"auth-token"],"dispute":[32],"isLoading":[32],"showDisputeResponseForm":[32]},[[0,"click-event","disputeResponseHandler"],[0,"submit-event","disputeSubmittedHandler"]],{"getDispute":["updateOnPropChange"]}]]],["p-0ce046fd",[[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-c8f40375",[[256,"business-details-core",{"getBusiness":[16],"business":[32],"renderState":[32],"errorMessage":[32]}]]],["p-3ae12b98",[[256,"terminal-quantity-selector",{"modelName":[1,"model-name"],"imageUrl":[1,"image-url"],"description":[1],"helpUrl":[1,"help-url"],"limit":[2],"selectedQuantity":[32]}]]],["p-136b29e3",[[256,"pagination-menu",{"paging":[16],"params":[16]}]]],["p-8ee61443",[[256,"checkouts-list-core",{"getCheckouts":[16],"getSubAccounts":[16],"columns":[1],"checkouts":[32],"checkoutsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getCheckouts":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-c5af7149",[[256,"payment-details-core",{"getPaymentDetails":[16],"payment":[32],"loading":[32],"errorMessage":[32]},null,{"getPaymentDetails":["updateOnPropChange"]}]]],["p-14cbf366",[[256,"payments-list-core",{"getPayments":[16],"columns":[1],"payments":[32],"paymentsTable":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getPayments":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-a6e816f6",[[256,"payout-details-core",{"getPayout":[16],"getPayoutCSV":[16],"enableRecordClick":[4,"enable-record-click"],"payout":[32],"loading":[32],"errorMessage":[32]},null,{"getPayout":["getPayoutWatcher"]}]]],["p-3d3a65ca",[[256,"payouts-list-core",{"getPayouts":[16],"getSubAccounts":[16],"getPayoutCSV":[16],"columns":[1],"payouts":[32],"payoutsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getPayouts":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"]}]]],["p-065b24c3",[[256,"terminal-orders-list-core",{"getTerminalOrders":[16],"columns":[1],"terminalOrders":[32],"terminalOrdersTable":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getTerminalOrders":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-8c16e4aa",[[256,"terminals-list-core",{"getTerminals":[16],"getSubAccounts":[16],"columns":[1],"terminals":[32],"terminalsTable":[32],"subAccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"pagingParams":[32]},null,{"pagingParams":["updateOnPropChange"],"getTerminals":["updateOnPropChange"],"getSubAccounts":["updateOnPropChange"],"columns":["updateOnPropChange"]}]]],["p-2eb123a3",[[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-f2650bfc",[[256,"gross-payment-chart-core",{"getGrossPayment":[16],"grossVolumeReport":[32],"loading":[32],"errorMessage":[32]},null,{"getGrossPayment":["propChanged"],"grossVolumeReport":["grossVolumeReportChanged"]}]]],["p-ad9307c1",[[260,"table-filters-menu",{"params":[8],"clearParams":[16],"anchorButton":[32],"menu":[32],"showClearButton":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]],{"params":["watchParamsHandler"]}]]],["p-cf9d8e1a",[[257,"justifi-saved-payment-methods"],[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],"showSkeleton":[4,"show-skeleton"],"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",{"buttonSizeMode":[1,"button-size-mode"],"buttonStyle":[1,"button-style"],"buttonType":[1,"button-type"],"countryCode":[1,"country-code"],"disabled":[4],"environment":[1],"merchantId":[1,"merchant-id"],"merchantName":[1,"merchant-name"],"showSkeleton":[4,"show-skeleton"],"canMakePayments":[32],"error":[32],"isAvailable":[32],"isLoading":[32],"isProcessing":[32],"getSupportedAuthMethods":[64],"getSupportedNetworks":[64],"handleSelectionClick":[64],"isSupported":[64],"prefetchPaymentData":[64]},null,{"merchantId":["watchConfigChange"],"environment":["watchConfigChange"]}],[257,"justifi-header",{"text":[1],"level":[1],"class":[1]}],[256,"justifi-modular-checkout",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"preCompleteHook":[16],"setSelectedPaymentMethod":[64],"validate":[64],"submitCheckout":[64]}],[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],"sezzlePromise":[32],"resolvePaymentMethod":[64],"handleSelectionClick":[64]}]]],["p-e7e5fee9",[[260,"custom-popper",{"placement":[1],"offset":[16],"strategy":[1],"trigger":[1],"anchorRef":[16],"isOpen":[32]}]]],["p-19dabeab",[[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"]}],[256,"form-control-tooltip",{"helpText":[1,"help-text"],"anchorIcon":[32],"tooltip":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]]]]],["p-8fcd277c",[[256,"justifi-business-representative",{"formController":[8,"form-controller"],"country":[1],"errors":[32],"representative":[32],"isEditingIdentification":[32]}],[256,"justifi-business-core-info",{"formController":[16],"country":[1],"errors":[32],"coreInfo":[32],"isEditingTaxId":[32]}],[256,"justifi-additional-questions",{"formController":[8,"form-controller"],"errors":[32],"additional_questions":[32]}],[256,"justifi-legal-address-form",{"formController":[8,"form-controller"],"country":[1],"errors":[32],"legal_address":[32]}],[256,"form-alert",{"text":[1],"hideAlert":[4,"hide-alert"]}]]],["p-48d1bc83",[[256,"justifi-business-representative-form-inputs",{"representativeDefaultValue":[8,"representative-default-value"],"errors":[8],"formController":[16],"country":[1],"isEditingIdentification":[32]}]]],["p-8b6b7e20",[[260,"justifi-details",{"errorMessage":[1,"error-message"]}]]],["p-ff212635",[[257,"justifi-dispute-response",{"authToken":[1,"auth-token"],"disputeId":[1,"dispute-id"],"disputeResponse":[16],"apiOrigin":[1,"api-origin"],"updateDisputeResponse":[32],"submitDisputeResponse":[32],"createDisputeEvidence":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}],[257,"justifi-dispute-notification",{"dispute":[16],"authToken":[1,"auth-token"],"isLoading":[4,"is-loading"]}],[256,"justifi-dispute-response-core",{"updateDisputeResponse":[16],"submitDisputeResponse":[16],"createDisputeEvidence":[16],"disputeResponse":[8,"dispute-response"],"isLoading":[32],"documentList":[32],"documentErrors":[32],"currentStep":[32],"currentStepComponentRef":[32]}]]],["p-e6507b93",[[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-2da4e6ca",[[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-914b590d",[[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-f528da70",[[257,"justifi-billing-form-full",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}],[257,"justifi-bank-account-billing-form-simple",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}],[257,"justifi-card-billing-form-simple",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}]]],["p-88074dd7",[[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]}]]],["p-f37f3e94",[[256,"form-control-help-text",{"helpText":[1,"help-text"],"name":[1]}]]],["p-44011a41",[[256,"internal-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],"fillBillingForm":[64],"tokenizePaymentMethod":[64],"validate":[64],"tokenize":[64]},[[0,"radio-click","handleRadioClick"]],{"disableCreditCard":["paymentMethodsChanged"],"disableBankAccount":["paymentMethodsChanged"]}],[256,"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],"fill":[64],"validate":[64]}],[257,"justifi-bank-account-form",{"iframeOrigin":[32],"isReady":[32],"validate":[64],"tokenize":[64]}],[257,"justifi-card-form",{"isReady":[32],"iframeOrigin":[32],"validate":[64],"tokenize":[64]}],[257,"justifi-radio-list-item",{"name":[1],"value":[1],"label":[8],"checked":[4],"hidden":[4],"class":[1]}],[257,"justifi-save-new-payment-method",{"label":[1],"isChecked":[32]}],[257,"justifi-button",{"text":[1],"variant":[1],"isLoading":[4,"is-loading"],"clickHandler":[16],"disabled":[4],"type":[1],"class":[1],"customStyle":[1,"custom-style"]}]]],["p-5e3bc1dc",[[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,"bank-account-document-form-inputs",{"inputHandler":[16],"errors":[8],"storeFiles":[16]}],[256,"business-documents-on-file",{"documents":[8],"isLoading":[4,"is-loading"]}],[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]}],[256,"bank-account-read-only-value",{"label":[1],"value":[1]}]]],["p-f4cb581f",[[256,"justifi-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,"justifi-form-address-fields",{"country":[1],"errors":[8],"defaultValues":[8,"default-values"],"inputHandler":[16]}]]],["p-1e014ee7",[[256,"justifi-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],"getOwner":[32],"patchOwner":[32],"postOwner":[32],"validate":[64],"submit":[64],"validateAndSubmit":[64]}],[256,"owner-form-core",{"ownerId":[1,"owner-id"],"businessId":[1,"business-id"],"getOwner":[16],"patchOwner":[16],"postOwner":[16],"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],"returnOwnerData":[64],"validate":[64],"submit":[64],"validateAndSubmit":[64]},null,{"isLoading":["loadingWatcher"]}],[256,"owner-form-inputs",{"ownerDefaultValue":[8,"owner-default-value"],"errors":[8],"formController":[8,"form-controller"],"country":[1],"isEditingIdentification":[32]}]]],["p-c41191e7",[[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-c7df4370",[[256,"justifi-business-owners-form-step-core",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"ownersPayload":[32],"refs":[32],"newFormOpen":[32],"isLoading":[32],"validateAndSubmit":[64]},[[0,"ownerSubmitted","handleOwnerSubmit"]],{"ownersPayload":["ownersWatcher"]}],[256,"justifi-business-bank-account-form-step-core",{"businessId":[1,"business-id"],"getBusiness":[16],"postBankAccount":[16],"postDocumentRecord":[16],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"formController":[32],"errors":[32],"bankAccount":[32],"existingDocuments":[32],"documentData":[32],"isLoading":[32],"validateAndSubmit":[64]},null,{"isLoading":["watchHandler"]}],[256,"justifi-business-representative-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"formController":[32],"errors":[32],"representative":[32],"isLoading":[32],"validateAndSubmit":[64]}],[256,"justifi-business-core-info-form-step-core",{"businessId":[1,"business-id"],"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"formController":[32],"errors":[32],"coreInfo":[32],"isLoading":[32],"isEditingTaxId":[32],"validateAndSubmit":[64]}],[256,"justifi-additional-questions-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"additional_questions":[32],"recurringPayments":[32],"isLoading":[32],"validateAndSubmit":[64]},null,{"additional_questions":["recurringPaymentsWatcher"]}],[256,"justifi-legal-address-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"formController":[32],"errors":[32],"legal_address":[32],"isLoading":[32],"validateAndSubmit":[64]}]]],["p-8efea1e4",[[256,"justifi-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,"justifi-payment-provisioning-form-buttons",{"currentStep":[2,"current-step"],"totalSteps":[2,"total-steps"],"formLoading":[4,"form-loading"],"formDisabled":[4,"form-disabled"],"previousStepButtonOnClick":[16],"nextStepButtonOnClick":[16]}],[256,"justifi-business-owners-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-business-bank-account-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"postBankAccount":[32],"postDocumentRecord":[32],"postDocument":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-business-representative-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-business-core-info-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-additional-questions-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-legal-address-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"country":[1],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[256,"justifi-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]}]]],["p-3bacf834",[[256,"justifi-shipping-details",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"documentList":[32],"validateAndSubmit":[64]}],[256,"justifi-customer-details",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-duplicate-charge",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-additional-statement",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"acceptedTerms":[32],"acceptedTermsErrorText":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-cancellation-policy",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-product-or-service",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-refund-policy",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}],[256,"justifi-electronic-evidence",{"disputeResponse":[8,"dispute-response"],"documentErrors":[8,"document-errors"],"form":[32],"errors":[32],"documents":[32],"validateAndSubmit":[64]}]]]]'),e))));
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as e,c as i,H as n,g as s}from"./p-DwYM91AU.js";import{A as o}from"./p-C8yN3uBj.js";import{A as a,o as r,p as l,q as c,r as h,s as d,c as p,t as u,G as y,u as g,v as b,w as m,x as f,y as v,z as M,B as w,D as k,I as P,F as x,H as E}from"./p-CQrwlULd.js";import{S as j}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{S as A}from"./p-c7MCfTgE.js";import{D as T,r as N}from"./p-wtuY7MT2.js";import{f as C}from"./p-BS7OgSQe.js";import{P as I,a as D,b as S}from"./p-DkoufM1t.js";import{H as L}from"./p-zNSPsvs3.js";import{H as z,b as O,h as R,i as _}from"./p-nrZ9yHcl.js";import{H as U}from"./p-C-2kW6Al.js";import{J as B,c as Y}from"./p-C01zp4xw.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as G,a as F,b as Q}from"./p-Cjcsf8ku.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as V,a as H}from"./p-D2muobcE.js";import{C as Z}from"./p-CVhnuewz.js";import{C as q}from"./p-ZpPDShvP.js";import"./p-BYsgavgS.js";import"./p-Bx3wyDU2.js";var W;!function(t){t.UNAVAILABLE="UNAVAILABLE",t.SESSION_ERROR="SESSION_ERROR",t.MERCHANT_VALIDATION_ERROR="MERCHANT_VALIDATION_ERROR",t.PAYMENT_PROCESSING_ERROR="PAYMENT_PROCESSING_ERROR",t.USER_CANCELLED="USER_CANCELLED"}(W||(W={}));class J{constructor(){this.api=o()}initialize(t){if(this.applePayConfig=new a(t),!this.applePayConfig.isValid)throw new Error("Invalid Apple Pay configuration provided")}async validateMerchant(t,e){try{return await this.api.post({endpoint:"apple_pay/merchant_session",authToken:t,headers:{"Sub-Account":e},body:{domain:window.location.host,display_name:this.applePayConfig.displayName}})}catch(t){throw console.error("Backend validation failed:",t),new Error("Merchant validation failed")}}async processPayment(t,e,i){const n=await this.api.post({endpoint:"apple_pay/process_token",authToken:t,body:i,headers:{"Sub-Account":e}});return{success:n.id&&!!n.data.token,data:n}}isAvailable(){return r.isApplePaySupported()&&r.canMakePayments()}async canMakePaymentsWithActiveCard(){if(!this.applePayConfig)throw new Error("Apple Pay not initialized. Call initialize() first.");return await r.canMakePaymentsWithActiveCard(this.applePayConfig.merchantIdentifier)}async startPaymentSession(t,e,i){if(!this.applePayConfig)throw console.error("[ApplePayService] Missing applePayConfig. Did you call initialize()?"),new Error("Apple Pay not initialized. Call initialize() first.");const n=new l(t);if(!n.isValid){const t=[];throw n.countryCode||t.push("countryCode"),n.currencyCode||t.push("currencyCode"),n.merchantCapabilities&&0!==n.merchantCapabilities.length||t.push("merchantCapabilities"),n.supportedNetworks&&0!==n.supportedNetworks.length||t.push("supportedNetworks"),n.total&&n.total.label&&n.total.amount||t.push("total"),console.error("[ApplePayService] Payment request is invalid. Missing/invalid:",t),new Error("Invalid payment request provided")}return this.currentPaymentRequest=n,new Promise(((t,s)=>{try{if("undefined"==typeof window||!("ApplePaySession"in window))return console.error("[ApplePayService] ApplePaySession not available on window"),s({success:!1,error:{code:W.UNAVAILABLE,message:"ApplePaySession API is not available in this environment"}});this.currentSession=new window.ApplePaySession(3,n),this.setupSessionEventHandlers(t,s,e,i),this.currentSession.begin()}catch(t){console.error("[ApplePayService] Exception while starting session:",t),s({success:!1,error:{code:W.SESSION_ERROR,message:t instanceof Error?t.message:"Failed to start Apple Pay session"}})}}))}abortPaymentSession(){this.currentSession&&(this.currentSession.abort(),this.currentSession=void 0,this.currentPaymentRequest=void 0)}setupSessionEventHandlers(t,e,i,n){this.currentSession&&this.applePayConfig&&this.currentPaymentRequest?(this.currentSession.onvalidatemerchant=async()=>{try{if(!i)throw console.error("[ApplePayService] Missing authToken for merchant validation"),new Error("Authentication token not provided.");const t=await this.validateMerchant(i,n);try{this.currentSession.completeMerchantValidation(t)}catch(t){throw console.error("Error calling completeMerchantValidation:",t),t}}catch(t){console.error("=== MERCHANT VALIDATION ERROR ==="),console.error("Error during merchant validation:",t),t&&t.stack&&console.error("Error stack:",t.stack),this.currentSession.abort(),e({success:!1,error:{code:W.MERCHANT_VALIDATION_ERROR,message:t instanceof Error?t.message:"Merchant validation failed"}})}},this.currentSession.onpaymentauthorized=async s=>{try{const o=s.payment,a=Object.assign(Object.assign({},o.token),{product_details:{name:this.currentPaymentRequest.total.label,price:r.parseAmount(this.currentPaymentRequest.total.amount),description:this.currentPaymentRequest.total.label}}),l=await this.processPayment(i,n,a);l.success?(this.currentSession.completePayment({status:c.STATUS_SUCCESS}),t({success:!0,token:o.token,paymentMethodId:l.data.id})):(console.error("PSP reported payment failure:",l.data),this.currentSession.completePayment({status:c.STATUS_FAILURE}),e({success:!1,error:{code:W.PAYMENT_PROCESSING_ERROR,message:"Payment processing failed"}}))}catch(t){console.error("=== PAYMENT PROCESSING ERROR ==="),console.error("Error processing payment:",t),t&&t.stack&&console.error("Error stack:",t.stack),this.currentSession.completePayment({status:c.STATUS_FAILURE}),e({success:!1,error:{code:W.PAYMENT_PROCESSING_ERROR,message:t instanceof Error?t.message:"Payment processing failed"}})}finally{this.currentSession=void 0,this.currentPaymentRequest=void 0}},this.currentSession.onpaymentmethodselected=()=>{const t={newTotal:this.currentPaymentRequest.total,newLineItems:this.currentPaymentRequest.lineItems||[]};try{this.currentSession.completePaymentMethodSelection(t)}catch(t){console.error("Error completing payment method selection:",t),this.currentSession.abort()}},this.currentSession.onshippingmethodselected=()=>{this.currentSession.completeShippingMethodSelection({status:c.STATUS_SUCCESS,newTotal:this.currentPaymentRequest.total,newLineItems:this.currentPaymentRequest.lineItems||[]})},this.currentSession.oncancel=t=>{if(t.sessionError)switch(console.error(t.sessionError),t.sessionError.code){case"unknown":console.error("Unknown error - likely merchant validation issue"),console.error("This usually means:"),console.error("1. Merchant certificate is invalid or expired"),console.error("2. Merchant identifier mismatch"),console.error("3. Backend validation endpoint issues");break;case"invalidMerchantSession":console.error("Invalid merchant session provided"),console.error("Check that the merchant session from backend is valid");break;case"userCancel":console.error("User cancelled the payment");break;default:console.error("Other error code:",t.sessionError.code)}this.currentSession=void 0,this.currentPaymentRequest=void 0,e({success:!1,error:{code:W.USER_CANCELLED,message:"User cancelled the Apple Pay session"}})},"onerror"in this.currentSession&&(this.currentSession.onerror=t=>{console.error("=== APPLE PAY SESSION ERROR ==="),console.error("Session error:",t),this.currentSession=void 0,this.currentPaymentRequest=void 0,e({success:!1,error:{code:W.SESSION_ERROR,message:"Apple Pay session error occurred"}})})):console.error("[ApplePayService] setupSessionEventHandlers called without required state",{hasSession:Boolean(this.currentSession),hasConfig:Boolean(this.applePayConfig),hasPaymentRequest:Boolean(this.currentPaymentRequest)})}static createPaymentRequest(t,e,i="US",n="USD"){return{countryCode:i,currencyCode:n,merchantCapabilities:r.getDefaultMerchantCapabilities(),supportedNetworks:r.getDefaultSupportedNetworks(),total:r.createLineItem(e,t)}}getApplePayConfig(){return this.applePayConfig}}const X=e=>{const{isLoading:i}=e;return i?t("div",{class:"container-fluid p-0"},t("div",{class:"row mb-3"},t("div",{class:"col-12 align-content-center"},t(A,{height:"44px",width:"100%",styles:{borderRadius:"8px"}})))):null},$=e=>t("div",{class:"apple-pay-button-container"},t("button",Object.assign({class:(()=>{let t="apple-pay-button";switch(e.buttonStyle){case h.WHITE:t+=" apple-pay-button-white";break;case h.WHITE_OUTLINE:t+=" apple-pay-button-white-outline";break;default:t+=" apple-pay-button-black"}switch(e.buttonType){case d.BUY:t+=" apple-pay-button-type-buy";break;case d.DONATE:t+=" apple-pay-button-type-donate";break;default:t+=" apple-pay-button-type-plain"}return(e.disabled||e.isProcessing||!e.isAvailable)&&(t+=" disabled"),t})(),style:{width:e.width,height:e.height},onClick:()=>{!e.disabled&&!e.isProcessing&&e.isAvailable&&e.clickHandler&&e.clickHandler()},disabled:e.disabled||e.isProcessing||!e.isAvailable,"aria-label":"Pay with Apple Pay",type:"button"},e),e.isProcessing&&t("div",{class:"processing-overlay"},t("div",{class:"spinner"}),t("span",null,"Processing..."))),t("style",null,"\n .apple-pay-button-container {\n display: block;\n position: relative;\n width: 100%;\n }\n\n /* Apple Pay CSS classes - these are the official Apple Pay button styles */\n .apple-pay-button {\n display: inline-block;\n -webkit-appearance: -apple-pay-button;\n -apple-pay-button-type: plain; /* default */\n -apple-pay-button-style: black; /* default */\n border-radius: 8px;\n cursor: pointer;\n border: none;\n outline: none;\n transition: opacity 0.2s ease;\n position: relative;\n }\n\n /* Button styles */\n .apple-pay-button.apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n\n .apple-pay-button.apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n\n .apple-pay-button.apple-pay-button-white-outline {\n -apple-pay-button-style: white-outline;\n }\n\n /* Button types */\n .apple-pay-button.apple-pay-button-type-plain {\n -apple-pay-button-type: plain;\n }\n\n .apple-pay-button.apple-pay-button-type-buy {\n -apple-pay-button-type: buy;\n }\n\n .apple-pay-button.apple-pay-button-type-donate {\n -apple-pay-button-type: donate;\n }\n\n /* Hover and disabled states */\n .apple-pay-button:hover:not(.disabled) {\n opacity: 0.9;\n }\n\n .apple-pay-button.disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n /* Processing overlay */\n .processing-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n background: rgba(0, 0, 0, 0.8);\n color: white;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n }\n\n .spinner {\n width: 16px;\n height: 16px;\n border: 2px solid rgba(255, 255, 255, 0.3);\n border-top: 2px solid #fff;\n border-radius: 50%;\n animation: spin 1s linear infinite;\n }\n\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n\n /* Responsive design */\n @media (max-width: 480px) {\n .apple-pay-button {\n width: 100% !important;\n min-width: 200px;\n }\n }\n ")),K=class{constructor(t){e(this,t),this.applePayStarted=i(this,"applePayStarted"),this.applePayCompleted=i(this,"applePayCompleted"),this.applePayCancelled=i(this,"applePayCancelled"),this.applePayError=i(this,"applePayError"),this.countryCode="US",this.merchantIdentifier="merchant.com.staging-justifi.checkout-dev",this.merchantDisplayName="JustiFi Checkout",this.initiativeContext="dev-checkout.justifi-staging.com",this.buttonType=d.PLAIN,this.buttonStyle=h.BLACK,this.disabled=!1,this.showSkeleton=!0,this.width="100%",this.height="48px",this.isLoading=!0,this.isProcessing=!1,this.isAvailable=!1,this.canMakePayments=!1,this.isConfigValid=!0,this.error=null,this.handleApplePayClick=async()=>{var t,e;if(!this.isProcessing&&!this.disabled&&this.isAvailable)try{this.isProcessing=!0,this.error=null,this.applePayStarted.emit();const i={countryCode:this.countryCode,currencyCode:p.paymentCurrency,merchantCapabilities:[u.SUPPORTS_3DS,u.SUPPORTS_CREDIT,u.SUPPORTS_DEBIT],supportedNetworks:r.getDefaultSupportedNetworks(),total:r.createLineItem(p.paymentDescription,p.paymentAmount)},n=await this.applePayService.startPaymentSession(i,p.authToken,p.accountId);n.success?this.applePayCompleted.emit({success:!0,token:n.token,paymentMethodId:n.paymentMethodId}):(this.applePayCompleted.emit({success:!1,error:n.error}),this.applePayError.emit({error:(null===(t=n.error)||void 0===t?void 0:t.message)||"Payment failed",code:(null===(e=n.error)||void 0===e?void 0:e.code)||K.ErrorCode.PAYMENT_FAILED}))}catch(t){const e=t instanceof Error?t.message:"Payment failed";this.error=e,this.applePayError.emit({error:e,code:K.ErrorCode.PAYMENT_FAILED}),this.applePayCompleted.emit({success:!1,error:e})}finally{this.isProcessing=!1}}}async initializeApplePay(){try{if(this.isLoading=!0,this.error=null,this.isConfigValid=!0,!(Boolean(p.paymentAmount)&&Boolean(p.paymentCurrency)&&Boolean(p.authToken)))return this.error="Missing required Apple Pay configuration",this.isConfigValid=!1,console.error("Apple Pay config error: missing required values",{paymentAmount:p.paymentAmount,paymentCurrency:p.paymentCurrency,hasAuthToken:Boolean(p.authToken),accountId:p.accountId}),this.applePayError.emit({error:this.error,code:K.ErrorCode.CONFIG_ERROR}),void(this.isLoading=!1);if(this.isAvailable=r.isApplePaySupported(),this.canMakePayments=r.canMakePayments(),!this.isAvailable)return this.error="Apple Pay is not supported on this device",console.error(this.error),this.applePayError.emit({error:this.error,code:K.ErrorCode.NOT_SUPPORTED}),void(this.isLoading=!1);if(!this.canMakePayments)return this.error="Apple Pay is not available",console.error(this.error),this.applePayError.emit({error:this.error,code:K.ErrorCode.NOT_AVAILABLE}),void(this.isLoading=!1);const t={merchantIdentifier:this.merchantIdentifier,displayName:this.merchantDisplayName,initiative:"web",initiativeContext:this.initiativeContext,buttonType:this.buttonType,buttonStyle:this.buttonStyle};this.applePayService=new J,this.applePayService.initialize(t),await this.applePayService.canMakePaymentsWithActiveCard()||console.warn("No Apple Pay cards available, but continuing...")}catch(t){console.error("Apple Pay initialization error:",t),this.error=t instanceof Error?t.message:"Failed to initialize Apple Pay",this.applePayError.emit({error:this.error,code:K.ErrorCode.INITIALIZATION_ERROR})}finally{this.isLoading=!1}}async isSupported(){return this.isAvailable&&this.canMakePayments}async getPaymentMethods(){return this.isAvailable?r.getDefaultSupportedNetworks():[]}async abort(){this.applePayService.abortPaymentSession(),this.isProcessing=!1,this.applePayCancelled.emit()}render(){if(!p.applePayEnabled)return null;const e=!this.isLoading&&this.isAvailable&&this.canMakePayments&&this.isConfigValid;return t(j,null,p.checkoutLoaded&&t("script",{async:!0,src:"https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",onLoad:()=>{this.initializeApplePay()}}),t("div",{class:"apple-pay-container"},t(X,{isLoading:this.isLoading}),e&&t($,{buttonType:this.buttonType,buttonStyle:this.buttonStyle,disabled:this.disabled,isProcessing:this.isProcessing,isAvailable:this.isAvailable,clickHandler:this.handleApplePayClick,width:this.width,height:this.height})),t("style",null,"\n .apple-pay-container {\n width: 100%;\n }\n "))}};K.ErrorCode={CONFIG_ERROR:"CONFIG_ERROR",NOT_SUPPORTED:"NOT_SUPPORTED",NOT_AVAILABLE:"NOT_AVAILABLE",INITIALIZATION_ERROR:"INITIALIZATION_ERROR",PAYMENT_FAILED:"PAYMENT_FAILED"};const tt=class{constructor(t){e(this,t)}render(){return t(j,{key:"3ebaf90f9085614d44043d9b5ba7de3f926bf6f1"},t("section",{key:"888ea6f17ece8e78b7ddf9302be5b1b355cd54c6"},t("div",{key:"bb7db155a31ceb9e824c5290b8fb8d8713622bdd"},t("div",{key:"dc954f18e824dabfb09fc727aeb87685020e2d1e",part:T},null==p?void 0:p.paymentDescription),t("div",{key:"e7f6b12c142655fc967bd6a37e00193b9f743f84"},t("span",{key:"25996f66626d428385422d72f5e2bba1a8301628",part:T},"Total")," ",t("span",{key:"958bd1242ac23e13e66b73563d2c6f73499d2574",part:T},C(+(null==p?void 0:p.totalAmount)))))))}};class et{constructor(){this.api=o()}initialize(t){if(this.googlePayConfig=new y(t),!this.googlePayConfig.isValid)throw new Error("Invalid Google Pay configuration provided");if(this.googlePayClient=g.createGooglePayClient(this.googlePayConfig.environment),!this.googlePayClient)throw new Error("Failed to create Google Pay client")}async processPayment(t,e,i){try{const n=await this.api.post({endpoint:"google_pay/process_token",authToken:t,body:i,headers:{"sub-account":e}});return{success:n.id&&!!n.data.token,data:n}}catch(t){throw new Error("Google Pay payment processing failed")}}isAvailable(){return g.isGooglePaySupported()&&!!this.googlePayClient}async canMakePayments(){if(!this.googlePayClient||!this.googlePayConfig)return!1;try{const t=g.createBasePaymentDataRequest();return(await this.googlePayClient.isReadyToPay(t)).result}catch(t){return!1}}async startPaymentSession(t,e,i){var n;if(!this.googlePayConfig||!this.googlePayClient)throw new Error("Google Pay not initialized. Call initialize() first.");if(!this.isAvailable())throw new Error("Google Pay is not available on this device/browser");const s=new b(t);if(!s.isValid)throw new Error("Invalid payment data request provided");try{const t=await this.googlePayClient.loadPaymentData(s),o=null===(n=null==t?void 0:t.paymentMethodData)||void 0===n?void 0:n.tokenizationData,a=(()=>{if((null==o?void 0:o.token)&&"string"==typeof o.token)try{return JSON.parse(o.token)}catch(t){return o}return o})(),r={protocolVersion:null==a?void 0:a.protocolVersion,signature:null==a?void 0:a.signature,intermediateSigningKey:(null==a?void 0:a.intermediateSigningKey)?{signedKey:a.intermediateSigningKey.signedKey,signatures:a.intermediateSigningKey.signatures}:void 0,signedMessage:null==a?void 0:a.signedMessage},l=await this.processPayment(e,i,r);return l.success?{success:!0,paymentData:t,paymentMethodId:l.data.id}:{success:!1,error:{code:"PAYMENT_PROCESSING_ERROR",message:"Payment processing failed"}}}catch(t){if(t&&"object"==typeof t&&"statusCode"in t){const e=t;switch(e.statusCode){case"CANCELED":return{success:!1,error:{code:"USER_CANCELLED",message:"User cancelled the Google Pay session"}};case"DEVELOPER_ERROR":return{success:!1,error:{code:"DEVELOPER_ERROR",message:"Google Pay configuration error"}};default:return{success:!1,error:{code:"PAYMENT_ERROR",message:e.statusMessage||"Google Pay payment failed"}}}}return{success:!1,error:{code:"PAYMENT_ERROR",message:t instanceof Error?t.message:"Google Pay payment failed"}}}}createButton(t){if(!this.googlePayClient||!this.googlePayConfig)return null;try{return this.googlePayClient.createButton({onClick:t.onClick,buttonType:t.buttonType,buttonSizeMode:t.buttonSizeMode,buttonColor:t.buttonColor,buttonLocale:t.buttonLocale})}catch(t){return null}}prefetchPaymentData(t){if(!this.googlePayClient)return;const e=new b(t);if(e.isValid)try{this.googlePayClient.prefetchPaymentData(e)}catch(t){}}static createPaymentDataRequest(t,e,i="US",n="USD",s){return{apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[g.createPaymentMethodData()],transactionInfo:{countryCode:i,currencyCode:n,totalPriceStatus:"FINAL",totalPrice:g.formatAmount(t),totalPriceLabel:e},merchantInfo:{merchantName:s}}}getGooglePayConfig(){return this.googlePayConfig}getGooglePayClient(){return this.googlePayClient}}const it=e=>{const{isLoading:i}=e;return i?t("div",{class:"container-fluid p-0"},t("div",{class:"row mb-3"},t("div",{class:"col-12 align-content-center"},t(A,{height:"44px",width:"100%",styles:{borderRadius:"8px"}})))):null},nt=e=>t("div",{class:"google-pay-button-container"},t("button",Object.assign({class:(()=>{let t="google-pay-button";switch(t+=e.buttonStyle===f.WHITE?" google-pay-button-white":" google-pay-button-black",e.buttonType){case v.BUY:t+=" google-pay-button-type-buy";break;case v.BOOK:t+=" google-pay-button-type-book";break;case v.CHECKOUT:t+=" google-pay-button-type-checkout";break;case v.DONATE:t+=" google-pay-button-type-donate";break;case v.ORDER:t+=" google-pay-button-type-order";break;case v.PAY:t+=" google-pay-button-type-pay";break;case v.SUBSCRIBE:t+=" google-pay-button-type-subscribe";break;default:t+=" google-pay-button-type-plain"}return t+=e.buttonSizeMode===m.FILL?" google-pay-button-fill":" google-pay-button-static",(e.disabled||e.isProcessing||!e.isAvailable)&&(t+=" disabled"),t})(),style:(()=>{const t={};return e.buttonSizeMode===m.FILL?(t.width="100%",t.minWidth="200px"):t.width=e.width||"200px",t.height=e.height||"48px",t})(),onClick:()=>{!e.disabled&&!e.isProcessing&&e.isAvailable&&e.clickHandler&&e.clickHandler()},disabled:e.disabled||e.isProcessing||!e.isAvailable,"aria-label":"Google Pay",type:"button"},e),e.isProcessing&&t("div",{class:"processing-overlay"},t("div",{class:"spinner"}),t("span",null,"Processing...")),t("div",{class:"google-pay-button-content"},t("svg",{width:"41",height:"17",xmlns:"http://www.w3.org/2000/svg"},t("g",{fill:"none","fill-rule":"evenodd"},t("path",{d:"M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z",fill:"#FFF"}),t("path",{d:"M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944",fill:"#4285F4"}),t("path",{d:"M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703",fill:"#34A853"}),t("path",{d:"M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z",fill:"#FABB05"}),t("path",{d:"M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774",fill:"#E94235"}))))),t("style",null,"\n .google-pay-button-container {\n display: block;\n position: relative;\n }\n\n .google-pay-button {\n display: flex;\n align-items: center;\n justify-content: center;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0.25px;\n line-height: 16px;\n outline: none;\n padding: 0 20px;\n position: relative;\n min-width: 140px;\n min-height: 48px;\n }\n\n /* Button styles */\n .google-pay-button.google-pay-button-black {\n background-color: #000;\n color: #fff;\n }\n\n .google-pay-button.google-pay-button-white {\n background-color: #fff;\n color: #3c4043;\n }\n\n /* Button content */\n .google-pay-button-content {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n white-space: nowrap;\n }\n\n .google-g-logo {\n width: 20px;\n height: 20px;\n flex-shrink: 0;\n }\n\n .pay-text {\n font-family: 'Google Sans', arial, sans-serif;\n font-size: 14px;\n font-weight: 500;\n margin-left: 8px;\n }\n\n /* Button types - text content handled by ::before pseudo-element */\n .google-pay-button-type-buy .google-pay-button-content::before {\n content: 'Buy with';\n margin-right: 8px;\n }\n\n .google-pay-button-type-book .google-pay-button-content::before {\n content: 'Book with';\n margin-right: 8px;\n }\n\n .google-pay-button-type-checkout .google-pay-button-content::before {\n content: 'Checkout with';\n margin-right: 8px;\n }\n\n .google-pay-button-type-donate .google-pay-button-content::before {\n content: 'Donate with';\n margin-right: 8px;\n }\n\n .google-pay-button-type-order .google-pay-button-content::before {\n content: 'Order with';\n margin-right: 8px;\n }\n\n .google-pay-button-type-pay .google-pay-button-content::before {\n content: 'Pay with';\n margin-right: 8px;\n }\n\n .google-pay-button-type-subscribe .google-pay-button-content::before {\n content: 'Subscribe with';\n margin-right: 8px;\n }\n\n /* Size modes */\n .google-pay-button.google-pay-button-fill {\n width: 100%;\n min-width: 200px;\n }\n\n .google-pay-button.google-pay-button-static {\n width: auto;\n }\n\n /* Hover and focus states */\n .google-pay-button:hover:not(.disabled) {\n box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.15), 0 1px 3px 1px rgba(0, 0, 0, 0.30);\n }\n\n .google-pay-button:focus:not(.disabled) {\n box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.15), 0 1px 3px 1px rgba(0, 0, 0, 0.30);\n }\n\n .google-pay-button:active:not(.disabled) {\n box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.15), 0 1px 3px 1px rgba(0, 0, 0, 0.30);\n transform: translateY(1px);\n }\n\n /* Disabled state */\n .google-pay-button.disabled {\n opacity: 0.5;\n cursor: not-allowed;\n box-shadow: none;\n }\n\n .google-pay-button.disabled:hover,\n .google-pay-button.disabled:focus,\n .google-pay-button.disabled:active {\n box-shadow: none;\n transform: none;\n }\n\n /* Processing overlay */\n .processing-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n background: rgba(0, 0, 0, 0.8);\n color: white;\n border-radius: 4px;\n font-size: 14px;\n font-weight: 500;\n }\n\n .spinner {\n width: 16px;\n height: 16px;\n border: 2px solid rgba(255, 255, 255, 0.3);\n border-top: 2px solid #fff;\n border-radius: 50%;\n animation: spin 1s linear infinite;\n }\n\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n\n /* Responsive design */\n @media (max-width: 480px) {\n .google-pay-button {\n width: 100% !important;\n min-width: 200px;\n }\n }\n ")),st=class{constructor(t){e(this,t),this.googlePayCancelled=i(this,"googlePayCancelled"),this.googlePayCompleted=i(this,"googlePayCompleted"),this.googlePayStarted=i(this,"googlePayStarted"),this.unsubscribes=[],this.canMakePayments=!1,this.error=null,this.isAvailable=!1,this.isLoading=!0,this.isProcessing=!1,this.buttonSizeMode=m.FILL,this.buttonStyle=f.BLACK,this.buttonType=v.PLAIN,this.countryCode="US",this.disabled=!1,this.environment=M.PRODUCTION,this.merchantId="gateway:justifi",this.merchantName="justifi",this.showSkeleton=!0,this.handleGooglePayClick=async()=>{var t;if(!this.isProcessing&&!this.disabled&&this.isAvailable&&this.canMakePayments)try{this.isProcessing=!0,this.error=null,this.googlePayStarted.emit();const e=this.createPaymentDataRequest(),i=await this.googlePayService.startPaymentSession(e,p.authToken,p.accountId);i.success?this.googlePayCompleted.emit({success:!0,paymentData:i.paymentData,paymentMethodId:i.paymentMethodId}):(this.googlePayCompleted.emit({success:!1,error:i.error}),"USER_CANCELLED"===(null===(t=i.error)||void 0===t?void 0:t.code)&&this.googlePayCancelled.emit())}catch(t){const e=t instanceof Error?t.message:"Payment failed";this.error=e,this.googlePayCompleted.emit({success:!1,error:e})}finally{this.isProcessing=!1}}}watchConfigChange(){this.initializeGooglePay()}componentWillLoad(){this.googlePayService=new et}componentDidLoad(){const t=w("paymentAmount",(()=>{this.prefetchPaymentData()}));"function"==typeof t&&this.unsubscribes.push(t);const e=w("paymentCurrency",(()=>{this.prefetchPaymentData()}));"function"==typeof e&&this.unsubscribes.push(e);const i=w("paymentDescription",(()=>{this.prefetchPaymentData()}));"function"==typeof i&&this.unsubscribes.push(i)}disconnectedCallback(){this.unsubscribes.forEach((t=>{try{t()}catch(t){}})),this.unsubscribes=[]}async getSupportedAuthMethods(){return this.isAvailable?g.getDefaultAuthMethods():[]}async getSupportedNetworks(){return this.isAvailable?g.getDefaultSupportedNetworks():[]}async handleSelectionClick(){p.selectedPaymentMethod={type:I.GOOGLE_PAY}}async isSupported(){return this.isAvailable&&this.canMakePayments}async prefetchPaymentData(){if(!this.isAvailable||!this.canMakePayments)return;const t=this.createPaymentDataRequest();this.googlePayService.prefetchPaymentData(t)}async initializeGooglePay(){try{if(this.isLoading=!0,this.error=null,!p.paymentAmount)return this.error="Missing required Google Pay configuration",void(this.isLoading=!1);if(this.googlePayService.initialize({environment:this.environment,merchantId:this.merchantId,merchantName:this.merchantName,buttonType:this.buttonType,buttonStyle:this.buttonStyle,buttonSizeMode:this.buttonSizeMode}),this.isAvailable=this.googlePayService.isAvailable(),!this.isAvailable)return this.error="Google Pay is not supported on this device",void(this.isLoading=!1);if(this.canMakePayments=await this.googlePayService.canMakePayments(),!this.canMakePayments)return this.error="Google Pay is not available for payments",void(this.isLoading=!1);const t=this.createPaymentDataRequest();this.googlePayService.prefetchPaymentData(t)}catch(t){this.error=t instanceof Error?t.message:"Failed to initialize Google Pay"}finally{this.isLoading=!1}}createPaymentDataRequest(){return et.createPaymentDataRequest(p.paymentAmount,p.paymentDescription,this.countryCode,p.paymentCurrency,this.merchantName)}render(){const e=!this.isLoading&&!!this.error,i=!this.isLoading&&!this.error&&!this.isAvailable,n=!this.isLoading&&!this.error&&this.isAvailable&&!this.canMakePayments,s=!this.isLoading&&!this.error&&this.isAvailable&&this.canMakePayments;return t(j,{key:"d85684b123cdba175d68a2e216f9150780ac7cf9"},p.checkoutLoaded&&t("script",{key:"b78bb8980d670e5b66cb907f89cee6ff2238205c",async:!0,src:"https://pay.google.com/gp/p/js/pay.js",onLoad:()=>{this.initializeGooglePay()}}),t("div",{key:"e405efb3a164be9e1d9db5beeb3c01471b647aaf",class:"google-pay-container"},t(it,{key:"c17dbb3e305678a1da10e3741ff0b610c549be6e",isLoading:this.isLoading}),e&&t("div",{key:"726895b7c76f3edbbbb1930a317d826b8f8f11fd",class:"google-pay-error",role:"alert","data-testid":"gp-error"},t("span",{key:"23342ca70b6b5bf28f846ca519cc4fbfb065fc67",class:"error-icon"},"⚠️"),t("span",{key:"008315696bc7b7f78f69cfc80160dacabf1205b5",class:"error-message"},this.error)),i&&t("div",{key:"2e87b4a9e5d0c0201333b79b9c190ca14932391b",class:"google-pay-unavailable","data-testid":"gp-device-unavailable"},t("span",{key:"6db13fc44661500a964422d18550cb31e275f076",class:"unavailable-message"},"Google Pay is not available on this device")),n&&t("div",{key:"c2ca09e36652800092cc6bcbe4a351b0d604bae2",class:"google-pay-unavailable","data-testid":"gp-payments-unavailable"},t("span",{key:"a5e75ccbb269249327192b927a0df879d90aefe5",class:"unavailable-message"},"Google Pay is not available for payments")),s&&t(nt,{key:"a2af46b3970620491e5c005e2b57f7a6d6f06e2c","data-testid":"gp-button",buttonType:this.buttonType,buttonStyle:this.buttonStyle,buttonSizeMode:this.buttonSizeMode,disabled:this.disabled,isProcessing:this.isProcessing,isAvailable:this.isAvailable,clickHandler:this.handleGooglePayClick})),t("style",{key:"9890ac44c4f047484396e0b4ae0d04a31489e61f"},"\n .google-pay-container {\n width: 100%;\n }\n\n .google-pay-error {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px;\n background: #fef2f2;\n border: 1px solid #fecaca;\n border-radius: 8px;\n color: #dc2626;\n font-size: 14px;\n }\n\n .google-pay-unavailable {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 12px;\n background: #f9fafb;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n color: #6b7280;\n font-size: 14px;\n }\n\n .error-icon {\n font-size: 16px;\n }\n \n "))}static get watchers(){return{merchantId:["watchConfigChange"],environment:["watchConfigChange"]}}},ot=class{constructor(t){e(this,t),this.levels={h1:L,h2:z,h3:U},this.level="h1"}render(){return t(j,{key:"73104ea086f8a9948e69f86451adf19e0f39fb32"},t(this.levels[this.level],{key:"a8582109634299a24e2a9b3c7181c6bba511fde7",text:this.text,class:this.class}))}},at=o();class rt{async getLinkToken(t,e,i,n){return at.post({endpoint:`plaid/${e}/link`,body:{checkout_id:i},authToken:t,signal:n})}async tokenizeBankAccount(t,e,i,n,s,o){const a=`plaid/${e}/tokenize`,r={public_token:i};return n&&(r.link_token_id=n),s&&(r.payment_method_group_id=s),at.post({endpoint:a,body:r,authToken:t,signal:o})}}const lt=class{constructor(t){e(this,t),this.errorEvent=i(this,"error-event"),this.submitEvent=i(this,"submit-event"),this.checkoutChangedEvent=i(this,"checkout-changed"),this.plaidService=new rt,this.handleGooglePayCompleted=t=>{const{success:e,paymentMethodId:i,error:n}=t.detail||{};e&&i?(p.paymentToken=i,p.selectedPaymentMethod={type:I.GOOGLE_PAY},this.submitCheckout()):this.errorEvent.emit({message:n&&n.message||"Google Pay payment failed",errorCode:F.TOKENIZE_ERROR,severity:G.ERROR})},this.handleGooglePayCancelled=()=>{p.paymentToken=void 0,p.selectedPaymentMethod=void 0},this.handleApplePayCompleted=t=>{const{success:e,token:i,paymentMethodId:n,error:s}=t.detail;e&&i?(p.paymentToken=n,p.selectedPaymentMethod={type:I.APPLE_PAY},this.submitCheckout()):(console.error("Apple Pay completed but failed:",s),this.errorEvent.emit({message:(null==s?void 0:s.message)||"Apple Pay payment failed",errorCode:F.TOKENIZE_ERROR,severity:G.ERROR}))},this.handleApplePayError=t=>{const{error:e,code:i}=t.detail;console.error("Apple Pay error:",e),this.errorEvent.emit({message:e||"Apple Pay error occurred",errorCode:`APPLE_PAY_${i}`,severity:G.ERROR})},this.handleApplePayCancelled=()=>{p.paymentToken=void 0,p.selectedPaymentMethod=void 0}}connectedCallback(){this.observer=new MutationObserver((()=>{this.queryFormRefs(),this.setupApplePayListeners(),this.setupGooglePayListeners()})),this.observer.observe(this.hostEl,{childList:!0,subtree:!0}),p.checkoutId=this.checkoutId;const t={authToken:this.authToken,checkoutId:this.checkoutId,service:new Z};this.getCheckout=(({authToken:t,checkoutId:e,service:i})=>async({onSuccess:n,onError:s})=>{var o;try{const a=await i.fetchCheckout(t,e);if(a.error)return s({error:H(a.error),code:V(null===(o=a.error)||void 0===o?void 0:o.code),severity:G.ERROR});n({checkout:a.data})}catch(t){const e=V(null==t?void 0:t.code);return s({error:t.message||t,code:e,severity:G.ERROR})}})(t),this.completeCheckout=(({authToken:t,checkoutId:e,service:i})=>async({payment:n,onSuccess:s,onError:o})=>{var a;try{const r=await i.complete(t,e,n);if(r.error)return o({error:H(r.error),code:V(null===(a=r.error)||void 0===a?void 0:a.code),severity:G.ERROR});s({checkout:r.data})}catch(t){const e=V(null==t?void 0:t.code);return o({error:t.message||t,code:e,severity:G.ERROR})}})(t),k((()=>{this.emitCheckoutChanged()}))}componentWillLoad(){this.analytics=new B(this),Y(),p.authToken=this.authToken,this.fetchCheckout(),O("set",(t=>{const e=_[t];void 0!==e&&R(t,e)&&this.fetchCheckout()}))}componentDidLoad(){this.queryFormRefs(),this.setupApplePayListeners(),this.setupGooglePayListeners()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.removeApplePayListeners(),this.removeGooglePayListeners()}fetchCheckout(){this.authToken&&this.checkoutId?this.getCheckout&&this.getCheckout({onSuccess:({checkout:t})=>{this.updateStore(t),t.status!==P.completed?t.status!==P.expired||this.errorEvent.emit({message:Q.CHECKOUT_EXPIRED,errorCode:F.CHECKOUT_EXPIRED,severity:G.ERROR}):this.errorEvent.emit({message:Q.CHECKOUT_ALREADY_COMPLETED,errorCode:F.CHECKOUT_ALREADY_COMPLETED,severity:G.ERROR})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:t.code,severity:t.severity})}}):this.errorEvent.emit({message:Q.NOT_AUTHENTICATED,errorCode:F.NOT_AUTHENTICATED,severity:G.ERROR})}updateStore(t){var e,i,n,s,o,a,r;p.accountId=t.account_id,p.checkoutLoaded=!0,p.paymentMethods=t.payment_methods.map((t=>new D(t))),p.paymentMethodGroupId=t.payment_method_group_id,p.paymentDescription=t.payment_description,p.totalAmount=t.total_amount,p.paymentAmount=t.payment_amount,p.bnplEnabled=t.payment_settings.bnpl_payments,p.insuranceEnabled=t.payment_settings.insurance_payments,p.bankAccountVerification=null===(e=t.payment_settings)||void 0===e?void 0:e.bank_account_verification,p.applePayEnabled=null===(i=t.payment_settings)||void 0===i?void 0:i.apple_payments,p.googlePayEnabled=null===(n=t.payment_settings)||void 0===n?void 0:n.google_payments,p.bnplProviderClientId=null===(s=null==t?void 0:t.bnpl)||void 0===s?void 0:s.provider_client_id,p.bnplProviderMode=null===(o=null==t?void 0:t.bnpl)||void 0===o?void 0:o.provider_mode,p.bnplProviderApiVersion=null===(a=null==t?void 0:t.bnpl)||void 0===a?void 0:a.provider_api_version,p.bnplProviderCheckoutUrl=null===(r=null==t?void 0:t.bnpl)||void 0===r?void 0:r.provider_checkout_url}emitCheckoutChanged(){const t={availablePaymentMethodTypes:x(),selectedPaymentMethod:p.selectedPaymentMethod,savedPaymentMethods:p.paymentMethods};this.checkoutChangedEvent.emit(t)}queryFormRefs(){this.billingFormRef=this.hostEl.querySelector("justifi-billing-form, justifi-bank-account-billing-form-simple, justifi-card-billing-form-simple, justifi-billing-form-full"),this.applePayRef=this.hostEl.querySelector("justifi-apple-pay"),this.googlePayRef=this.hostEl.querySelector("justifi-google-pay"),this.paymentMethodFormRef=this.hostEl.querySelector("justifi-card-form, justifi-bank-account-form, justifi-tokenize-payment-method"),this.insuranceFormRef=this.hostEl.querySelector("justifi-season-interruption-insurance")}setupApplePayListeners(){this.applePayRef&&(this.applePayRef.addEventListener("applePayCompleted",this.handleApplePayCompleted),this.applePayRef.addEventListener("applePayError",this.handleApplePayError),this.applePayRef.addEventListener("applePayCancelled",this.handleApplePayCancelled))}removeApplePayListeners(){this.applePayRef&&(this.applePayRef.removeEventListener("applePayCompleted",this.handleApplePayCompleted),this.applePayRef.removeEventListener("applePayError",this.handleApplePayError),this.applePayRef.removeEventListener("applePayCancelled",this.handleApplePayCancelled))}setupGooglePayListeners(){this.googlePayRef&&(this.googlePayRef.addEventListener("googlePayCompleted",this.handleGooglePayCompleted),this.googlePayRef.addEventListener("googlePayCancelled",this.handleGooglePayCancelled))}removeGooglePayListeners(){this.googlePayRef&&(this.googlePayRef.removeEventListener("googlePayCompleted",this.handleGooglePayCompleted),this.googlePayRef.removeEventListener("googlePayCancelled",this.handleGooglePayCancelled))}async tokenizePaymentMethod(t){var e,i,n;const s=null!==(i=await(null===(e=this.billingFormRef)||void 0===e?void 0:e.getValues()))&&void 0!==i?i:{},o=Object.assign(Object.assign({},t),s),a=Object.assign({accountId:p.accountId,payment_method_group_id:void 0},o);p.savePaymentMethod&&(a.payment_method_group_id=p.paymentMethodGroupId);const r=await(null===(n=this.paymentMethodFormRef)||void 0===n?void 0:n.tokenize({clientId:this.authToken,paymentMethodMetadata:a,account:p.accountId}));return r.error?r:(p.paymentToken=r.id,r.id)}async setSelectedPaymentMethod(t){p.selectedPaymentMethod=t,p.paymentToken=t.id||void 0}async validate(){var t,e;const i=[];p.insuranceEnabled&&this.insuranceFormRef&&i.push(this.insuranceFormRef.validate());const n=(null===(t=p.selectedPaymentMethod)||void 0===t?void 0:t.type)===I.NEW_CARD,s=(null===(e=p.selectedPaymentMethod)||void 0===e?void 0:e.type)===I.NEW_BANK_ACCOUNT;if((n||s)&&(this.paymentMethodFormRef&&i.push(this.paymentMethodFormRef.validate()),this.billingFormRef&&i.push(this.billingFormRef.validate())),0===i.length)return!0;try{return!!(await Promise.all(i)).every((t=>"boolean"==typeof t?t:!1!==(null==t?void 0:t.isValid)))||(this.errorEvent.emit({message:"Validation error",errorCode:F.VALIDATION_ERROR,severity:G.ERROR}),!1)}catch(t){return!1}}async submitCheckout(t){var e,i,n,s,o;const a=await this.validate();if(!p.selectedPaymentMethod)return void this.errorEvent.emit({message:"No payment method selected.",errorCode:F.VALIDATION_ERROR,severity:G.ERROR});const r=(null===(e=p.selectedPaymentMethod)||void 0===e?void 0:e.type)===I.NEW_CARD,l=(null===(i=p.selectedPaymentMethod)||void 0===i?void 0:i.type)===I.NEW_BANK_ACCOUNT,c=(null===(n=p.selectedPaymentMethod)||void 0===n?void 0:n.type)===I.PLAID;if(r||l){const e=await this.tokenizePaymentMethod(t);if(null==e?void 0:e.error)return void this.errorEvent.emit({message:e.error.message,errorCode:F.TOKENIZE_ERROR,severity:G.ERROR})}if(c&&!p.paymentToken){const t=p.plaidPublicToken,e=p.plaidLinkTokenId;if(!t)return void this.errorEvent.emit({message:"Missing Plaid public token. Please connect your bank.",errorCode:F.TOKENIZE_ERROR,severity:G.ERROR});try{const i=await this.plaidService.tokenizeBankAccount(p.authToken,p.accountId,t,e||void 0,p.savePaymentMethod?p.paymentMethodGroupId:void 0);if(null==i?void 0:i.error)return void this.errorEvent.emit({message:"string"==typeof i.error?i.error:i.error.message||"Failed to tokenize bank account",errorCode:F.TOKENIZE_ERROR,severity:G.ERROR});const n=null==i?void 0:i.data,o=(null===(s=null==n?void 0:n.bank_account)||void 0===s?void 0:s.token)||(null==n?void 0:n.token)||(null==n?void 0:n.id);p.paymentToken=o}catch(t){return void this.errorEvent.emit({message:(null==t?void 0:t.message)||"Plaid exchange error",errorCode:F.TOKENIZE_ERROR,severity:G.ERROR})}}if(!a)return void this.errorEvent.emit({message:"Please fill in all required fields.",errorCode:F.VALIDATION_ERROR,severity:G.ERROR});if(!p.paymentToken)return void this.errorEvent.emit({message:"Payment token not found.",errorCode:F.TOKENIZE_ERROR,severity:G.ERROR});let h;if(h={payment_mode:(t=>{switch(t){case I.NEW_CARD:case I.SAVED_CARD:case I.NEW_BANK_ACCOUNT:case I.SAVED_BANK_ACCOUNT:case I.PLAID:return S.ECOM;case I.SEZZLE:return S.BNPL;case I.APPLE_PAY:return S.APPLE_PAY;case I.GOOGLE_PAY:return S.GOOGLE_PAY;default:return}})(null===(o=p.selectedPaymentMethod)||void 0===o?void 0:o.type),payment_token:p.paymentToken},this.preCompleteHook){const t=E();try{await new Promise(((e,i)=>{this.preCompleteHook(t,(()=>e()),(()=>i()))}))}catch(t){return}}this.completeCheckout({payment:h,onSuccess:({checkout:t})=>{this.submitEvent.emit({checkout:t,message:"Checkout completed successfully"})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:F.COMPLETE_CHECKOUT_ERROR,severity:G.ERROR})}})}render(){return t(n,{key:"43f4be87e218b23251f2ccac90e0c980bf157d68"})}get hostEl(){return s(this)}};var ct;!function(t){t.PLAID_SDK_LOAD_FAILED="plaid-sdk-load-failed",t.PLAID_LINK_INIT_FAILED="plaid-link-init-failed",t.PLAID_LINK_TOKEN_FAILED="plaid-link-token-failed",t.PLAID_AUTHENTICATION_FAILED="plaid-authentication-failed",t.PLAID_BANK_NOT_SUPPORTED="plaid-bank-not-supported",t.PLAID_TOKEN_EXPIRED="plaid-token-expired",t.PLAID_NETWORK_ERROR="plaid-network-error",t.PLAID_USER_CANCELLED="plaid-user-cancelled",t.PLAID_TIMEOUT="plaid-timeout",t.PLAID_INVALID_CREDENTIALS="plaid-invalid-credentials",t.PLAID_ACCOUNT_LOCKED="plaid-account-locked",t.PLAID_MAINTENANCE="plaid-maintenance",t.PLAID_RATE_LIMITED="plaid-rate-limited"}(ct||(ct={}));const ht={[ct.PLAID_SDK_LOAD_FAILED]:"Unable to load Plaid. Please refresh the page and try again.",[ct.PLAID_LINK_INIT_FAILED]:"Unable to initialize bank connection. Please try again.",[ct.PLAID_LINK_TOKEN_FAILED]:"Unable to connect to bank service. Please try again.",[ct.PLAID_AUTHENTICATION_FAILED]:"Bank authentication failed. Please try again.",[ct.PLAID_BANK_NOT_SUPPORTED]:"Your bank is not currently supported. Please try a different payment method.",[ct.PLAID_TOKEN_EXPIRED]:"Your bank session has expired. Please reconnect your account.",[ct.PLAID_NETWORK_ERROR]:"Network connection issue. Please check your internet connection and try again.",[ct.PLAID_USER_CANCELLED]:"Bank connection was cancelled. Click to try again.",[ct.PLAID_TIMEOUT]:"Bank connection timed out. Please try again.",[ct.PLAID_INVALID_CREDENTIALS]:"Invalid bank credentials. Please check your username and password.",[ct.PLAID_ACCOUNT_LOCKED]:"Your bank account is temporarily locked. Please contact your bank.",[ct.PLAID_MAINTENANCE]:"Bank service is temporarily unavailable. Please try again later.",[ct.PLAID_RATE_LIMITED]:"Too many connection attempts. Please wait a moment and try again."},dt={[ct.PLAID_SDK_LOAD_FAILED]:G.ERROR,[ct.PLAID_LINK_INIT_FAILED]:G.ERROR,[ct.PLAID_LINK_TOKEN_FAILED]:G.ERROR,[ct.PLAID_AUTHENTICATION_FAILED]:G.ERROR,[ct.PLAID_BANK_NOT_SUPPORTED]:G.WARNING,[ct.PLAID_TOKEN_EXPIRED]:G.WARNING,[ct.PLAID_NETWORK_ERROR]:G.WARNING,[ct.PLAID_USER_CANCELLED]:G.INFO,[ct.PLAID_TIMEOUT]:G.WARNING,[ct.PLAID_INVALID_CREDENTIALS]:G.ERROR,[ct.PLAID_ACCOUNT_LOCKED]:G.ERROR,[ct.PLAID_MAINTENANCE]:G.WARNING,[ct.PLAID_RATE_LIMITED]:G.WARNING},pt=class{constructor(t){e(this,t),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected"),this.plaidError=i(this,"plaidError"),this.plaidErrorRecovered=i(this,"plaidErrorRecovered"),this.isAuthenticating=!1,this.publicToken=null,this.linkToken=null,this.linkTokenId=null,this.error=null,this.plaidLink=null,this.isSelected=!1,this.retryCount=0,this.isRetrying=!1,this.plaidService=new rt,this.maxRetries=3,this.retryDelay=2e3,this.timeoutId=null,this.abortController=null,this.hasLoggedDisabledWarning=!1,this.waitForStoreAndInitialize=()=>{p.authToken&&p.accountId&&p.checkoutId?this.initializePlaidLink():setTimeout((()=>{this.waitForStoreAndInitialize()}),100)},this.initializePlaidLink=async()=>{try{if(void 0===window.Plaid)return void this.handleError({code:ct.PLAID_SDK_LOAD_FAILED,message:ht[ct.PLAID_SDK_LOAD_FAILED],severity:dt[ct.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"});if(await this.getLinkToken(),!this.linkToken)return void this.handleError({code:ct.PLAID_LINK_TOKEN_FAILED,message:ht[ct.PLAID_LINK_TOKEN_FAILED],severity:dt[ct.PLAID_LINK_TOKEN_FAILED],retryable:!0,userAction:"Click to try again"});const t=window.Plaid;this.plaidLink=t.create({token:this.linkToken,onSuccess:this.handlePlaidSuccess,onExit:this.handlePlaidExit,onEvent:this.handlePlaidEvent,onLoad:this.handlePlaidLoad})}catch(t){this.handleError({code:ct.PLAID_LINK_INIT_FAILED,message:ht[ct.PLAID_LINK_INIT_FAILED],severity:dt[ct.PLAID_LINK_INIT_FAILED],originalError:t,retryable:!0,userAction:"Click to try again"})}},this.getLinkToken=async()=>{var t,e,i,n,s;try{if(!p.authToken||!p.accountId)return void this.handleError({code:ct.PLAID_LINK_TOKEN_FAILED,message:"Missing authentication. Please refresh the page and try again.",severity:G.ERROR,retryable:!1,userAction:"Refresh the page"});this.abortController=new AbortController,this.timeoutId=setTimeout((()=>{var t;null===(t=this.abortController)||void 0===t||t.abort()}),3e4);const e=await this.plaidService.getLinkToken(p.authToken,p.accountId,p.checkoutId,this.abortController.signal);if(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),e.error)throw new Error("string"==typeof e.error?e.error:e.error.message||"Failed to get link token");this.linkToken=e.data.link_token,this.linkTokenId=(null==e?void 0:e.id)||(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)||null,this.linkTokenId&&(p.plaidLinkTokenId=this.linkTokenId)}catch(t){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);let o=ct.PLAID_LINK_TOKEN_FAILED,a=ht[o],r=!0;"AbortError"===t.name?(o=ct.PLAID_TIMEOUT,a=ht[o],r=!0):(null===(e=t.message)||void 0===e?void 0:e.includes("network"))||(null===(i=t.message)||void 0===i?void 0:i.includes("fetch"))?(o=ct.PLAID_NETWORK_ERROR,a=ht[o],r=!0):((null===(n=t.message)||void 0===n?void 0:n.includes("401"))||(null===(s=t.message)||void 0===s?void 0:s.includes("unauthorized")))&&(o=ct.PLAID_INVALID_CREDENTIALS,a="Authentication failed. Please refresh the page and try again.",r=!1),this.handleError({code:o,message:a,severity:dt[o],originalError:t,retryable:r,userAction:r?"Click to try again":"Refresh the page"})}},this.mapApiErrorToPlaidError=t=>{if("string"==typeof t){if(t.includes("rate_limit"))return ct.PLAID_RATE_LIMITED;if(t.includes("maintenance"))return ct.PLAID_MAINTENANCE;if(t.includes("not_authenticated"))return ct.PLAID_INVALID_CREDENTIALS}if(null==t?void 0:t.code)switch(t.code){case"rate_limited":return ct.PLAID_RATE_LIMITED;case"maintenance":return ct.PLAID_MAINTENANCE;case"not_authenticated":return ct.PLAID_INVALID_CREDENTIALS;default:return ct.PLAID_LINK_TOKEN_FAILED}return ct.PLAID_LINK_TOKEN_FAILED},this.openPlaidLink=()=>{this.plaidLink&&this.linkToken&&(this.isAuthenticating=!0,this.clearError(),this.plaidLink.open())},this.handlePlaidSuccess=t=>{this.publicToken=t,this.isAuthenticating=!1,this.clearError(),this.retryCount=0,this.isSelected||(this.isSelected=!0,p.selectedPaymentMethod={type:I.PLAID}),this.plaidErrorRecovered.emit({code:"plaid-success",message:"Bank account connected successfully",severity:G.INFO}),p.plaidPublicToken=t},this.handlePlaidExit=t=>{this.isAuthenticating=!1,t&&this.handlePlaidError(t)},this.handlePlaidEvent=(t,e)=>{switch(t){case"OPEN":this.isAuthenticating=!0;break;case"CLOSE":this.isAuthenticating=!1;break;case"ERROR":this.handlePlaidError(e)}},this.handlePlaidLoad=()=>{},this.handlePlaidError=t=>{let e=ct.PLAID_AUTHENTICATION_FAILED,i=ht[e],n=!0,s="Click to try again";if(t.error_code)switch(t.error_code){case"INVALID_CREDENTIALS":e=ct.PLAID_INVALID_CREDENTIALS,i=ht[e],n=!0;break;case"ITEM_LOGIN_REQUIRED":e=ct.PLAID_INVALID_CREDENTIALS,i="Your bank requires re-authentication. Please try again.",n=!0;break;case"ITEM_LOCKED":e=ct.PLAID_ACCOUNT_LOCKED,i=ht[e],n=!1,s="Contact your bank";break;case"INSTITUTION_NOT_RESPONDING":e=ct.PLAID_MAINTENANCE,i=ht[e],n=!0;break;case"RATE_LIMIT_EXCEEDED":e=ct.PLAID_RATE_LIMITED,i=ht[e],n=!0;break;case"INVALID_REQUEST":e=ct.PLAID_AUTHENTICATION_FAILED,i="Invalid request. Please try again.",n=!0;break;case"PLAID_ERROR":e=ct.PLAID_AUTHENTICATION_FAILED,i=t.error_message||"Bank authentication failed. Please try again.",n=!0;break;default:t.error_message&&(i=t.error_message)}if(t.error_message){const o=t.error_message.toLowerCase();o.includes("not supported")||o.includes("unsupported")?(e=ct.PLAID_BANK_NOT_SUPPORTED,i=ht[e],n=!1,s="Try a different payment method"):(o.includes("expired")||o.includes("timeout"))&&(e=ct.PLAID_TOKEN_EXPIRED,i=ht[e],n=!0)}this.handleError({code:e,message:i,severity:dt[e],originalError:t,retryable:n,userAction:s}),this.isAuthenticating=!1},this.handleError=t=>{this.error=t,this.plaidError.emit({code:t.code,message:t.message,severity:t.severity,data:{originalError:t.originalError,retryable:t.retryable,userAction:t.userAction,retryCount:this.retryCount}}),console.error("Plaid error:",t),t.retryable&&this.retryCount<this.maxRetries&&this.scheduleRetry()},this.scheduleRetry=()=>{this.isRetrying||(this.isRetrying=!0,this.retryCount++,setTimeout((()=>{this.isRetrying=!1,this.clearError(),this.waitForStoreAndInitialize()}),this.retryDelay*this.retryCount))},this.clearError=()=>{this.error&&(this.error=null,this.retryCount=0)},this.syncWithStore=()=>{var t;const e=(null===(t=p.selectedPaymentMethod)||void 0===t?void 0:t.type)===I.PLAID;this.isSelected!==e&&(this.isSelected=e)}}onSelectionChange(t){var e;t&&(null===(e=p.selectedPaymentMethod)||void 0===e?void 0:e.type)!==I.PLAID&&(p.selectedPaymentMethod={type:I.PLAID}),!t||!this.plaidLink||this.publicToken||this.isAuthenticating||this.error||this.openPlaidLink()}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.waitForStoreAndInitialize()},this.scriptRef.onerror=()=>{this.handleError({code:ct.PLAID_SDK_LOAD_FAILED,message:ht[ct.PLAID_SDK_LOAD_FAILED],severity:dt[ct.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"})})}componentWillLoad(){var t;this.isSelected=(null===(t=p.selectedPaymentMethod)||void 0===t?void 0:t.type)===I.PLAID}async resolvePaymentMethod(){return this.publicToken?{token:this.publicToken,data:{type:"bank_account",plaid_public_token:this.publicToken}}:{validationError:!0}}async getPaymentToken(){return p.paymentToken}async handleSelectionClick(){if(this.isSelected=!0,p.selectedPaymentMethod={type:I.PLAID},this.error)return this.clearError(),void this.waitForStoreAndInitialize();!this.plaidLink||this.publicToken||this.isAuthenticating||this.openPlaidLink()}async setSelected(t){this.isSelected=t,t&&(p.selectedPaymentMethod={type:I.PLAID})}async isCurrentlySelected(){return this.isSelected}async deselect(){this.isSelected=!1}async reset(){this.publicToken=null,this.clearError(),this.isAuthenticating=!1,this.linkToken=null,this.plaidLink=null,this.retryCount=0,this.isRetrying=!1,this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.abortController&&(this.abortController.abort(),this.abortController=null)}async isReadyForAuthentication(){return!(!this.plaidLink||!this.linkToken||this.isAuthenticating)}async retry(){this.error&&this.error.retryable&&(this.clearError(),this.waitForStoreAndInitialize())}async getErrorInfo(){return this.error}componentDidLoad(){const t=w("selectedPaymentMethod",this.syncWithStore);this.unsubscribeFromStore=t}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.timeoutId&&clearTimeout(this.timeoutId),this.abortController&&this.abortController.abort()}render(){if(!0!==p.bankAccountVerification)return this.hasLoggedDisabledWarning||(console.warn("[PlaidPaymentMethod] bank_account_verification is disabled. Component will not render."),this.hasLoggedDisabledWarning=!0),null;const e=t("img",{class:"plaid-logo-img",src:"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjggMjkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9ImNzcy0xcmRhajhtIj48ZyBmaWxsPSIjMTExIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yNS43NjI5IDI2LjI2MjhMMjggMTcuNTMwOUwyNC45NjkxIDE0LjUwMDFMMjcuOTk5OSAxMS40NjkxTDI1Ljc2MjggMi43MzcwNkwxNy4wMzA5IDAuNUwxNC4wMDAxIDMuNTMxTDEwLjk2OSAwLjUwMDE0TDIuMjM3MDYgMi43MzczNEwwIDExLjQ2OTFMMy4wMzEyOCAxNC40OTk5TDAuMDAwMTQgMTcuNTMxTDIuMjM3MiAyNi4yNjI5TDEwLjk2OTEgMjguNUwxNC4wMDAxIDI1LjQ2OUwxNy4wMzEgMjguNDk5OUwyNS43NjI5IDI2LjI2MjhaTTE1LjczMjEgMjMuNzM3MUwxOC42MTg2IDIwLjg1MDVMMjIuMjkxMiAyNC41MjMzTDE3LjY5NTYgMjUuNzAwN0wxNS43MzIxIDIzLjczNzFaTTExLjExMzYgOS44ODE1NEwxNC4wMDAzIDYuOTk1MDJMMTYuODg2OCA5Ljg4MTRMMTQuMDAwMSAxMi43Njc5TDExLjExMzYgOS44ODE1NFpNMTIuMjY4MiAxNC41TDkuMzgxNTQgMTcuMzg2NUw2LjQ5NTAyIDE0LjVMOS4zODE1NCAxMS42MTM1TDEyLjI2ODIgMTQuNVpNMTguNjE4NyAxMS42MTMzTDIxLjUwNTMgMTQuNUwxOC42MTg2IDE3LjM4NjVMMTUuNzMyMSAxNC41TDE4LjYxODcgMTEuNjEzM1pNMTYuODg2NyAxOS4xMTg2TDE0LjAwMDEgMjIuMDA1MUwxMS4xMTM1IDE5LjExODVMMTQuMDAwMSAxNi4yMzE5TDE2Ljg4NjcgMTkuMTE4NlpNMTAuMzA0NCAyNS43MDA3TDUuNzA4NjQgMjQuNTIzM0w5LjM4MTU0IDIwLjg1MDRMMTIuMjY4MiAyMy43MzcxTDEwLjMwNDQgMjUuNzAwN1pNNC43NjMwOCAxNi4yMzE5TDcuNjQ5NiAxOS4xMTg1TDMuOTc2NyAyMi43OTE0TDIuNzk5MyAxOC4xOTU3TDQuNzYzMDggMTYuMjMxOVpNMy45NzY3IDYuMjA4MzZMNy42NDk3NCA5Ljg4MTRMNC43NjMwOCAxMi43NjgxTDIuNzk5MyAxMC44MDQxTDMuOTc2NyA2LjIwODM2Wk0xMi4yNjgzIDUuMjYyOTRMOS4zODE2OCA4LjE0OTZMNS43MDg5MiA0LjQ3NjdMMTAuMzA0NyAzLjI5OTNMMTIuMjY4MyA1LjI2Mjk0Wk0xNy42OTU5IDMuMjk5M0wyMi4yOTE1IDQuNDc2N0wxOC42MTg2IDguMTQ5NDZMMTUuNzMyMSA1LjI2Mjk0TDE3LjY5NTkgMy4yOTkzWk0yMy4yMzcyIDEyLjc2ODFMMjAuMzUwNSA5Ljg4MTRMMjQuMDIzMyA2LjIwODc4TDI1LjIwMDcgMTAuODA0NkwyMy4yMzcyIDEyLjc2ODFaTTI0LjAyMzMgMjIuNzkxNEwyMC4zNTA1IDE5LjExODZMMjMuMjM3MiAxNi4yMzIxTDI1LjIwMDcgMTguMTk1N0wyNC4wMjMzIDIyLjc5MTRaIj48L3BhdGg+PC9nPjwvc3ZnPgo=",alt:"Plaid",title:"Plaid",style:{display:"inline",width:"20px",height:"20px",marginLeft:"5px",marginTop:"-2px"}});return t(j,{class:"payment-method"},t("script",{src:"https://cdn.plaid.com/link/v2/stable/link-initialize.js",async:!0,ref:t=>this.scriptRef=t}),t("div",{title:"Pay with Plaid"},t("div",{onClick:t=>{t.preventDefault(),this.handleSelectionClick()}},"Pay with Bank Account ",e," "),(()=>this.error?t("div",{class:(this.error.severity===G.ERROR?"text-danger":this.error.severity===G.WARNING?"text-warning":"text-info")+" mt-2"},t("small",null,this.error.message),t("br",null),t("small",{class:"text-muted"},this.error.userAction,this.error.retryable&&this.retryCount<this.maxRetries&&t("span",null," • Auto-retry in progress..."))):null)(),(()=>this.error?null:this.isAuthenticating?t("div",{class:"text-info mt-2"},t("small",null,"Connecting to your bank...")):this.publicToken?t("div",{class:"text-success mt-2"},t("small",null,"✓ Bank account connected successfully")):!this.isSelected||this.publicToken||this.error||this.isAuthenticating?null:t("div",{class:"text-muted mt-2"},t("small",null,"Click to connect your bank account")))()))}static get watchers(){return{isSelected:["onSelectionChange"]}}},ut=class{constructor(t){e(this,t),this.onPaymentMethodOptionClick=t=>e=>{e.preventDefault(),p.selectedPaymentMethod={id:t.id,type:t.type},p.paymentToken=t.id},this.isAllowedPaymentMethod=t=>!(t===I.SAVED_CARD&&p.disableCreditCard||t===I.SAVED_BANK_ACCOUNT&&p.disableBankAccount)}componentWillLoad(){p.paymentMethods.length||console.warn("No saved payment methods available."),p.disablePaymentMethodGroup&&console.warn("Payment method group is disabled.")}render(){return p.disablePaymentMethodGroup?null:t(j,null,t("div",{class:"saved-payment-methods"},p.paymentMethods.length?p.paymentMethods.filter((t=>this.isAllowedPaymentMethod(t.type))).map((e=>t("div",{class:"radio-list-item p-3",part:N,onClick:this.onPaymentMethodOptionClick(e)},t("form-control-radio",{name:"paymentMethodType",value:null==e?void 0:e.id,checked:p.paymentToken===(null==e?void 0:e.id),label:`${q[null==e?void 0:e.brand]||""} *${null==e?void 0:e.acct_last_four}`})))):null))}},yt=t("img",{class:"sezzle-smart-button-logo-img",src:"https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg",alt:"Sezzle",style:{display:"inline",width:"80px",marginLeft:"5px",marginTop:"-5px"}}),gt=class{constructor(t){e(this,t),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected"),this.paymentMethodOptionId=I.SEZZLE,this.initializeSezzleCheckout=()=>{let t;this.sezzlePromise=new Promise((e=>{t=e}));const e=Number(p.paymentAmount),i=new(0,window.Checkout)({mode:"popup",publicKey:p.bnplProviderClientId,apiMode:p.bnplProviderMode,apiVersion:p.bnplProviderApiVersion});i.sezzleButtonElement=this.sezzleButtonRef,i.init({onClick:function(t){t.preventDefault(),i.startCheckout({checkout_url:p.bnplProviderCheckoutUrl})},onComplete:e=>t({bnpl:e.data}),onCancel:e=>t({bnpl:e.data}),onFailure:e=>t({bnpl:e.data})}),this.sezzleCheckout=i,this.installmentPlan=this.sezzleCheckout.getInstallmentPlan(e)}}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.sezzleButtonRef=document.createElement("button"),this.initializeSezzleCheckout()})}async resolvePaymentMethod(t){return t.isValid?(this.sezzleButtonRef.click(),this.sezzlePromise):{validationError:!0}}async handleSelectionClick(){p.selectedPaymentMethod={type:I.SEZZLE},this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId)}render(){var e,i;return p.bnplEnabled?t(j,{class:"payment-method"},t("script",{src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:t=>this.scriptRef=t}),t("div",null,t("div",null,"Buy now, pay later with ",yt),this.installmentPlan&&t("small",null,t("span",null,null===(e=this.installmentPlan)||void 0===e?void 0:e.installments.length)," ",t("span",null,this.installmentPlan.schedule," payments of")," ",t("span",{class:"fw-bold"},C(null===(i=this.installmentPlan)||void 0===i?void 0:i.installments[0].amountInCents))))):(console.warn("justifi-sezzle-payment-method: BNPL is not enabled for this account."),null)}};export{K as justifi_apple_pay,tt as justifi_checkout_summary,st as justifi_google_pay,ot as justifi_header,lt as justifi_modular_checkout,pt as justifi_plaid_payment_method,ut as justifi_saved_payment_methods,gt as justifi_sezzle_payment_method}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s,r as t,c as i}from"./p-DwYM91AU.js";import{c as r,F as e}from"./p-DiJD6Iqx.js";import{b as o,a,c as h}from"./p-dgG_o6wN.js";import{i as p,a as n,b as l,c as m}from"./p-D1WQG4I7.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as c,a as d}from"./p-Cjcsf8ku.js";import"./p-CQrwlULd.js";import"./p-CLHwhyvu.js";import{C as j,B as u,b as f}from"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{c as v,J as b}from"./p-C01zp4xw.js";import{B as w}from"./p-Bqlcv3ZV.js";import{S as g}from"./p-BP2sTIQV.js";import{H as C}from"./p-zNSPsvs3.js";import"./p-CZfYo5-1.js";import{S as y}from"./p-c7MCfTgE.js";import{B}from"./p-XYgDHrVL.js";import{m as x,b as S}from"./p-5aA7gjr5.js";import{B as D}from"./p-Dy5btfGV.js";import"./p-BFTU3MAI.js";import"./p-avgjSJ1d.js";import"./p-DfKxeSrC.js";import"./p-CPpUGsw5.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-DkoufM1t.js";import"./p-Bx3wyDU2.js";import"./p-C8yN3uBj.js";import"./p-wtuY7MT2.js";import"./p-D2muobcE.js";const k=r(Object.assign(Object.assign({},o().fields),{legal_address:n(),additional_questions:a(),representative:p("representative")}));r(Object.assign(Object.assign({},h().fields),{legal_address:m(),additional_questions:a(),representative:l("representative")}));const O=k,I=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(y,{width:"25%"})),s("div",{class:"col-12"},s(y,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"50%"}),s(y,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"65%"}),s(y,{width:"35%"}))),U=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(y,{width:"40%",height:"40px"})),s(I,null),s(I,null),s(I,null)),_=class{constructor(s){t(this,s),this.submitEvent=i(this,"submit-event"),this.clickEvent=i(this,"click-event"),this.errorEvent=i(this,"error-event"),this.isLoading=!1,this.isSaving=!1,this.country=j.USA,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const t=new u(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 u(Object.assign(Object.assign({},t),s)).payload;this.patchBusiness({payload:i,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:t,message:s.message,severity:i})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){v(),this.analytics=new b(this),this.formController=new e(O),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=S({authToken:this.authToken,businessId:this.businessId,service:new D}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:t,message:s.message,severity:i})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:d.MISSING_PROPS,severity:c.ERROR})}handleReponse(s){s.error&&(this.errorMessage=f.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(g,null,this.isLoading?s(U,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(C,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController,country:this.country})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(w,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:B.submit}),isLoading:this.isSaving},"Submit")))))}};export{_ as justifi_business_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as r}from"./p-Cjcsf8ku.js";import{P as o}from"./p-CQrwlULd.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as s,a as t}from"./p-D2muobcE.js";const i=({id:i,authToken:p,service:e})=>async({onSuccess:a,onError:m,final:n})=>{var c;try{const n=await e.fetchPayment(i,p);if(n.error){m({error:t(n.error),code:s(null===(c=n.error)||void 0===c?void 0:c.code),severity:r.ERROR})}else a({payment:new o(n.data)})}catch(o){const i=s(null==o?void 0:o.code);m({error:t(o),code:i,severity:r.ERROR})}finally{n()}};export{i as m}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={name:"@justifi/webcomponents",version:"6.5.1-rc.2"};export{e as p}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{P as r}from"./p-t8p0WAW4.js";import{m as e}from"./p-BRbk6oSh.js";import{E as o}from"./p-BNqo3kt0.js";import{C as p,a as h}from"./p-Cjcsf8ku.js";import{c as a,J as n}from"./p-C01zp4xw.js";import"./p-C8yN3uBj.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";import"./p-CQrwlULd.js";import"./p-BH0Xfn-F.js";import"./p-DkoufM1t.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-D2muobcE.js";import"./p-wtuY7MT2.js";import"./p-Bx3wyDU2.js";const m=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.recordClickEvent=s(this,"record-click-event"),this.errorMessage=null,this.paymentService=new r,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.handleRecordClickEvent=t=>{this.recordClickEvent.emit({id:t.detail.id,type:t.detail.type})}}componentWillLoad(){a(),this.analytics=new n(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=e({id:this.paymentId,authToken:this.authToken,service:new r}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:h.MISSING_PROPS,severity:p.ERROR}))}render(){return this.errorMessage?o(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent,"onRecord-click-event":this.handleRecordClickEvent,"enable-record-click":"true"})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_payment_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as e,c as a}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as s,a as i}from"./p-Cjcsf8ku.js";import{h as r}from"./p-CQrwlULd.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{c as o,J as c}from"./p-C01zp4xw.js";import{g as p,a as h}from"./p-D2muobcE.js";import{P as d}from"./p-t8p0WAW4.js";import{T as f,l,a as u,b as m,c as y,d as b,e as _,f as j,g,h as T,i as w,j as k,k as v}from"./p-BTzt8N0l.js";import{S as C}from"./p-BP2sTIQV.js";import{T as D}from"./p-CZfYo5-1.js";import{a as S}from"./p-BS7OgSQe.js";import{S as x,T as R}from"./p-wtuY7MT2.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";import"./p-Bx3wyDU2.js";import"./p-C8yN3uBj.js";import"./p-B-0a8Xqm.js";const B={created_at:()=>t("th",{part:x,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>t("th",{part:x,scope:"col",title:"The type of each transaction"},"Type"),id:()=>t("th",{part:x,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>t("th",{part:x,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>t("th",{part:x,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>t("th",{part:x,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>t("th",{part:x,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>t("th",{part:x,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>t("th",{part:x,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>t("th",{part:x,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>t("th",{part:x,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},F={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",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:R(a)},t("div",{class:"fw-bold"},S(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.created_at,{showTime:!0}))),type:(e,a)=>t("td",{part:R(a)},F[e.payment_balance_txn_type]),id:(e,a)=>t("td",{part:R(a)},e.id),amount:(e,a)=>t("td",{part:R(a),class:"text-end"},e.formattedPaymentAmount(e.amount)),balance:(e,a)=>t("td",{part:R(a),class:"text-end"},e.formattedPaymentAmount(e.balance)),currency:(e,a)=>t("td",{part:R(a)},e.currency),financial_transaction_id:(e,a)=>t("td",{part:R(a)},e.financial_transaction_id),payment_id:(e,a)=>t("td",{part:R(a)},e.payment_id),payment_balance_txn_type:(e,a)=>t("td",{part:R(a)},e.payment_balance_txn_type),source_id:(e,a)=>t("td",{part:R(a)},e.source_id),source_type:(e,a)=>t("td",{part:R(a)},e.source_type)},A=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event"),this.errorEvent=a(this,"error-event"),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,B,I),o(),this.analytics=new c(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:i,onSuccess:n,onError:o,final:c})=>{var d;try{const c=await a.fetchPaymentTransactions(t,e,i);c.error?o({error:h(c.error),code:p(null===(d=c.error)||void 0===d?void 0:d.code),severity:s.ERROR}):n({balanceTransactions:c.data.map((t=>new r(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:s.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(i.MISSING_PROPS,this.errorMessage,s.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:"d703f1566b7b62d740471847afacbd9930a891b7"},t(l,{key:"8778ff21c90fa148c15cfc41b6a9d25dfc0d9373"},t(u,{key:"a3910f65af00bdcf932523fe528e008b27e946a9"},t(m,{key:"f47ef519f3d335e84b110b2c45e4e2d6dd30de85"},t(y,{key:"36671c1e6ed6e3f8ee942fd989fc89b5529769a1"},this.transactionsTable.columnData.map((t=>t)))),t(b,{key:"7e49a67c518a7fcda4a70b98ad264c55e09c8424"},t(_,{key:"99305c0df2bc8a23ad3bd92e1de7efae86a1b99e",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(j,{key:"d1f062414f16a80eb31a52e0cf6131e090988efd",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(g,{key:"f964ca69e6f04c16f4492b08e7d272f2668f2a29",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:"d0b18d852fca6061310ecfdfc7fd55eddfd8ae50"},t(k,{key:"1645edafa83aba1238cf49efeb00208b981f5bd6"},t(v,{key:"ce5bceb484ba23737d623d9bdc90e89274dce5f4",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"b5f0b5a8ecc2ce6b22a0b46a03c3e0a890514663",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],paymentId:["propChanged"],authToken:["propChanged"]}}};export{A as justifi_payment_transactions_list}
|