@justifi/webcomponents 6.0.6-rc.1 → 6.0.6-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.
Files changed (89) hide show
  1. package/dist/cjs/{check-pkg-version-BqQyunnf.js → check-pkg-version-D2O-HBMD.js} +1 -1
  2. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  3. package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +9 -10
  4. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +2 -2
  5. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  6. package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
  7. package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
  8. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
  9. package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
  10. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
  11. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
  13. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  14. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
  16. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  18. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
  19. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  20. package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
  21. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
  22. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
  23. package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
  24. package/dist/cjs/loader.cjs.js +1 -1
  25. package/dist/cjs/{package-CeJ5geYu.js → package-B8AreocB.js} +1 -1
  26. package/dist/cjs/webcomponents.cjs.js +1 -1
  27. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +43 -1
  28. package/dist/collection/ui-components/apple-pay-button.js +4 -7
  29. package/dist/docs.json +59 -1
  30. package/dist/esm/{check-pkg-version-DW45blqY.js → check-pkg-version-f6satvrI.js} +1 -1
  31. package/dist/esm/hidden-input_2.entry.js +1 -1
  32. package/dist/esm/justifi-apple-pay_8.entry.js +9 -10
  33. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +2 -2
  34. package/dist/esm/justifi-business-details.entry.js +2 -2
  35. package/dist/esm/justifi-business-form.entry.js +2 -2
  36. package/dist/esm/justifi-checkout.entry.js +2 -2
  37. package/dist/esm/justifi-checkouts-list.entry.js +2 -2
  38. package/dist/esm/justifi-dispute-management.entry.js +2 -2
  39. package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
  40. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  41. package/dist/esm/justifi-order-terminals.entry.js +2 -2
  42. package/dist/esm/justifi-payment-details.entry.js +2 -2
  43. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  44. package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
  45. package/dist/esm/justifi-payments-list.entry.js +2 -2
  46. package/dist/esm/justifi-payout-details.entry.js +2 -2
  47. package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
  48. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  49. package/dist/esm/justifi-refund-payment.entry.js +2 -2
  50. package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
  51. package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
  52. package/dist/esm/justifi-terminals-list.entry.js +2 -2
  53. package/dist/esm/loader.js +1 -1
  54. package/dist/esm/{package-BXUY63ga.js → package-DOrxxtCs.js} +1 -1
  55. package/dist/esm/webcomponents.js +1 -1
  56. package/dist/module/apple-pay.js +9 -8
  57. package/dist/module/package.js +1 -1
  58. package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +2 -0
  59. package/dist/types/components.d.ts +16 -0
  60. package/dist/webcomponents/{p-ea2cbf37.entry.js → p-17abfc00.entry.js} +1 -1
  61. package/dist/webcomponents/{p-d403bdc0.entry.js → p-24817d58.entry.js} +1 -1
  62. package/dist/webcomponents/{p-55903cde.entry.js → p-293c4517.entry.js} +1 -1
  63. package/dist/webcomponents/{p-220d8503.entry.js → p-2dfbbc7a.entry.js} +1 -1
  64. package/dist/webcomponents/{p-5cb22cfb.entry.js → p-38668717.entry.js} +1 -1
  65. package/dist/webcomponents/{p-9d611395.entry.js → p-3ff3bb90.entry.js} +1 -1
  66. package/dist/webcomponents/{p-a8446044.entry.js → p-451c8e1b.entry.js} +1 -1
  67. package/dist/webcomponents/{p-9c8fb92f.entry.js → p-51ac9f40.entry.js} +1 -1
  68. package/dist/webcomponents/p-6df72e0f.entry.js +1 -0
  69. package/dist/webcomponents/{p-e9b2591b.entry.js → p-7f018623.entry.js} +1 -1
  70. package/dist/webcomponents/{p-0d3904cb.entry.js → p-88fcb530.entry.js} +1 -1
  71. package/dist/webcomponents/{p-268a6e14.entry.js → p-8be7fbf6.entry.js} +1 -1
  72. package/dist/webcomponents/{p-569c7dcc.entry.js → p-8f84883e.entry.js} +1 -1
  73. package/dist/webcomponents/{p-9773e1e9.entry.js → p-96694f7d.entry.js} +1 -1
  74. package/dist/webcomponents/{p-CoBppUkq.js → p-Cq_f4KEI.js} +1 -1
  75. package/dist/webcomponents/p-DOrxxtCs.js +1 -0
  76. package/dist/webcomponents/{p-c44fcff6.entry.js → p-a5fc94fe.entry.js} +1 -1
  77. package/dist/webcomponents/p-abbe97eb.entry.js +1 -0
  78. package/dist/webcomponents/{p-58f7c4bd.entry.js → p-be5c5154.entry.js} +1 -1
  79. package/dist/webcomponents/{p-ee90bbd1.entry.js → p-bf5593bb.entry.js} +1 -1
  80. package/dist/webcomponents/{p-4b57765c.entry.js → p-c9cfab30.entry.js} +1 -1
  81. package/dist/webcomponents/{p-dfb2e55b.entry.js → p-cc5c6425.entry.js} +1 -1
  82. package/dist/webcomponents/p-cf26936c.entry.js +1 -0
  83. package/dist/webcomponents/{p-67788df5.entry.js → p-d2b922cc.entry.js} +1 -1
  84. package/dist/webcomponents/webcomponents.esm.js +1 -1
  85. package/package.json +1 -1
  86. package/dist/webcomponents/p-1f82f0cc.entry.js +0 -1
  87. package/dist/webcomponents/p-80a4fba7.entry.js +0 -1
  88. package/dist/webcomponents/p-BXUY63ga.js +0 -1
  89. package/dist/webcomponents/p-e9865d1d.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{h as e,r as t,c as i,H as s,g as n}from"./p-DOjVAAtq.js";import{A as o}from"./p-DdZLLkQ5.js";import{S as a}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{S as r}from"./p-T2yENPvU.js";import{c as l,o as c,g as h,a as d}from"./p-DGsXKF67.js";import{D as p,r as u}from"./p-xDbRW9xn.js";import{f as y}from"./p-Bgnhf5c9.js";import{H as m}from"./p-RQzxYnz_.js";import{H as v,b as M,h as f,i as b}from"./p-wQgEEOq_.js";import{H as g}from"./p-BoQ6_4Ks.js";import{J as k,c as A}from"./p-Cq_f4KEI.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{C as w,a as P,b as j}from"./p-Cjcsf8ku.js";import{I as T}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as C,a as E}from"./p-D2muobcE.js";import{C as N}from"./p-CEk3bv0x.js";import{P as S,a as I,b as D}from"./p-DCIW8z1f.js";import{C as O}from"./p-ZpPDShvP.js";import"./p-DdMxswn1.js";import"./p-DOrxxtCs.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";var x,L,z,_,R;!function(e){e.STATUS_SUCCESS="STATUS_SUCCESS",e.STATUS_FAILURE="STATUS_FAILURE"}(x||(x={})),function(e){e.PLAIN="plain",e.BUY="buy",e.SET_UP="set-up",e.DONATE="donate",e.CHECK_OUT="check-out",e.BOOK="book",e.SUBSCRIBE="subscribe"}(L||(L={})),function(e){e.BLACK="black",e.WHITE="white",e.WHITE_OUTLINE="white-outline"}(z||(z={})),function(e){e.SUPPORTS_3DS="supports3DS",e.SUPPORTS_EMV="supportsEMV",e.SUPPORTS_CREDIT="supportsCredit",e.SUPPORTS_DEBIT="supportsDebit"}(_||(_={}));class B{constructor(e){this.merchantIdentifier=e.merchantIdentifier,this.displayName=e.displayName,this.initiative=e.initiative,this.initiativeContext=e.initiativeContext,this.buttonType=e.buttonType||L.PLAIN,this.buttonStyle=e.buttonStyle||z.BLACK,this.buttonLocale=e.buttonLocale||"en-US"}get isValid(){return!!(this.merchantIdentifier&&this.displayName&&this.initiative&&this.initiativeContext)}}class U{constructor(e){this.countryCode=e.countryCode,this.currencyCode=e.currencyCode,this.merchantCapabilities=e.merchantCapabilities,this.supportedNetworks=e.supportedNetworks,this.total=e.total,this.lineItems=e.lineItems,this.shippingMethods=e.shippingMethods,this.applicationData=e.applicationData,this.supportedCountries=e.supportedCountries}get isValid(){var e,t,i,s;return!!(this.countryCode&&this.currencyCode&&(null===(e=this.merchantCapabilities)||void 0===e?void 0:e.length)&&(null===(t=this.supportedNetworks)||void 0===t?void 0:t.length)&&(null===(i=this.total)||void 0===i?void 0:i.label)&&(null===(s=this.total)||void 0===s?void 0:s.amount))}}class Y{static isApplePaySupported(){var e;return"undefined"!=typeof window&&"ApplePaySession"in window&&(null===(e=window.ApplePaySession)||void 0===e?void 0:e.supportsVersion(3))}static canMakePayments(){var e;return this.isApplePaySupported()&&(null===(e=window.ApplePaySession)||void 0===e?void 0:e.canMakePayments())||!1}static async canMakePaymentsWithActiveCard(e){var t;if(!this.isApplePaySupported())return!1;try{return await(null===(t=window.ApplePaySession)||void 0===t?void 0:t.canMakePaymentsWithActiveCard(e))||!1}catch(e){return console.error("Error checking Apple Pay active card:",e),!1}}static formatAmount(e){return(e/100).toFixed(2)}static parseAmount(e){return Math.round(100*parseFloat(e))}static createLineItem(e,t,i="final"){return{label:e,amount:this.formatAmount(t),type:i}}static getDefaultSupportedNetworks(){return["amex","discover","masterCard","visa"]}static getDefaultMerchantCapabilities(){return[_.SUPPORTS_3DS,_.SUPPORTS_EMV,_.SUPPORTS_CREDIT,_.SUPPORTS_DEBIT]}}!function(e){e.UNAVAILABLE="UNAVAILABLE",e.SESSION_ERROR="SESSION_ERROR",e.MERCHANT_VALIDATION_ERROR="MERCHANT_VALIDATION_ERROR",e.PAYMENT_PROCESSING_ERROR="PAYMENT_PROCESSING_ERROR",e.USER_CANCELLED="USER_CANCELLED"}(R||(R={}));class F{constructor(){this.api=o()}initialize(e){if(this.applePayConfig=new B(e),!this.applePayConfig.isValid)throw new Error("Invalid Apple Pay configuration provided")}async validateMerchant(e,t){try{return await this.api.post({endpoint:"apple_pay/merchant_session",authToken:e,headers:{"Sub-Account":t}})}catch(e){throw console.error("Backend validation failed:",e),new Error("Merchant validation failed")}}async processPayment(e,t,i){const s=await this.api.post({endpoint:"apple_pay/process_token",authToken:e,body:i,headers:{"Sub-Account":t}});return{success:s.id&&!!s.data.token,data:s}}isAvailable(){return Y.isApplePaySupported()&&Y.canMakePayments()}async canMakePaymentsWithActiveCard(){if(!this.applePayConfig)throw new Error("Apple Pay not initialized. Call initialize() first.");return await Y.canMakePaymentsWithActiveCard(this.applePayConfig.merchantIdentifier)}async startPaymentSession(e,t,i){if(console.groupCollapsed("[ApplePayService] startPaymentSession called"),console.log("[ApplePayService] raw paymentRequest:",JSON.stringify(e,null,2)),console.log("[ApplePayService] has authToken:",Boolean(t)),console.log("[ApplePayService] accountId:",i),console.log("[ApplePayService] has config:",Boolean(this.applePayConfig)),!this.applePayConfig)throw console.error("[ApplePayService] Missing applePayConfig. Did you call initialize()?"),console.groupEnd(),new Error("Apple Pay not initialized. Call initialize() first.");const s=new U(e);if(console.log("[ApplePayService] created ApplePayPaymentRequest:",s),!s.isValid){const e=[];throw s.countryCode||e.push("countryCode"),s.currencyCode||e.push("currencyCode"),s.merchantCapabilities&&0!==s.merchantCapabilities.length||e.push("merchantCapabilities"),s.supportedNetworks&&0!==s.supportedNetworks.length||e.push("supportedNetworks"),s.total&&s.total.label&&s.total.amount||e.push("total"),console.error("[ApplePayService] Payment request is invalid. Missing/invalid:",e),console.groupEnd(),new Error("Invalid payment request provided")}return this.currentPaymentRequest=s,new Promise(((e,n)=>{try{if(console.log("[ApplePayService] About to instantiate ApplePaySession"),"undefined"==typeof window||!("ApplePaySession"in window))return console.error("[ApplePayService] ApplePaySession not available on window"),console.groupEnd(),n({success:!1,error:{code:R.UNAVAILABLE,message:"ApplePaySession API is not available in this environment"}});this.currentSession=new window.ApplePaySession(3,s),console.log("[ApplePayService] ApplePaySession instantiated:",this.currentSession),this.setupSessionEventHandlers(e,n,t,i),console.log("[ApplePayService] Event handlers set. Beginning session..."),this.currentSession.begin(),console.log("[ApplePayService] Session.begin() called"),console.groupEnd()}catch(e){console.error("[ApplePayService] Exception while starting session:",e),console.groupEnd(),n({success:!1,error:{code:R.SESSION_ERROR,message:e instanceof Error?e.message:"Failed to start Apple Pay session"}})}}))}abortPaymentSession(){this.currentSession&&(this.currentSession.abort(),this.currentSession=void 0,this.currentPaymentRequest=void 0)}setupSessionEventHandlers(e,t,i,s){this.currentSession&&this.applePayConfig&&this.currentPaymentRequest?(this.currentSession.onvalidatemerchant=async()=>{console.groupCollapsed("[ApplePayService] onvalidatemerchant");try{if(console.log("[ApplePayService] accountId:",s),!i)throw console.error("[ApplePayService] Missing authToken for merchant validation"),new Error("Authentication token not provided.");const e=await this.validateMerchant(i,s);console.log("[ApplePayService] merchantSession received");try{this.currentSession.completeMerchantValidation(e),console.log("[ApplePayService] completeMerchantValidation called")}catch(e){throw console.error("Error calling completeMerchantValidation:",e),e}}catch(e){console.error("=== MERCHANT VALIDATION ERROR ==="),console.error("Error during merchant validation:",e),e&&e.stack&&console.error("Error stack:",e.stack),this.currentSession.abort(),t({success:!1,error:{code:R.MERCHANT_VALIDATION_ERROR,message:e instanceof Error?e.message:"Merchant validation failed"}})}console.groupEnd()},this.currentSession.onpaymentauthorized=async n=>{var o;console.groupCollapsed("[ApplePayService] onpaymentauthorized");try{const a=n.payment;console.log("[ApplePayService] payment payload snapshot:",{hasToken:Boolean(null==a?void 0:a.token),tokenType:(null===(o=null==a?void 0:a.token)||void 0===o?void 0:o.paymentData)?"paymentData":"raw"});const r=Object.assign(Object.assign({},a.token),{product_details:{name:this.currentPaymentRequest.total.label,price:Y.parseAmount(this.currentPaymentRequest.total.amount),description:this.currentPaymentRequest.total.label}});console.log("[ApplePayService] paymentPayload prepared");const l=await this.processPayment(i,s,r);console.log("[ApplePayService] processPayment result:",l),l.success?(this.currentSession.completePayment({status:x.STATUS_SUCCESS}),console.log("[ApplePayService] Payment success; resolving"),e({success:!0,token:a.token,paymentMethodId:l.data.id})):(console.error("PSP reported payment failure:",l.data),this.currentSession.completePayment({status:x.STATUS_FAILURE}),t({success:!1,error:{code:R.PAYMENT_PROCESSING_ERROR,message:"Payment processing failed"}}))}catch(e){console.error("=== PAYMENT PROCESSING ERROR ==="),console.error("Error processing payment:",e),e&&e.stack&&console.error("Error stack:",e.stack),this.currentSession.completePayment({status:x.STATUS_FAILURE}),t({success:!1,error:{code:R.PAYMENT_PROCESSING_ERROR,message:e instanceof Error?e.message:"Payment processing failed"}})}finally{console.log("[ApplePayService] Cleaning up session state"),this.currentSession=void 0,this.currentPaymentRequest=void 0}console.groupEnd()},this.currentSession.onpaymentmethodselected=()=>{console.groupCollapsed("[ApplePayService] onpaymentmethodselected");const e={newTotal:this.currentPaymentRequest.total,newLineItems:this.currentPaymentRequest.lineItems||[]};try{this.currentSession.completePaymentMethodSelection(e),console.log("[ApplePayService] completePaymentMethodSelection called")}catch(e){console.error("Error completing payment method selection:",e),this.currentSession.abort()}console.groupEnd()},this.currentSession.onshippingmethodselected=()=>{console.groupCollapsed("[ApplePayService] onshippingmethodselected"),this.currentSession.completeShippingMethodSelection({status:x.STATUS_SUCCESS,newTotal:this.currentPaymentRequest.total,newLineItems:this.currentPaymentRequest.lineItems||[]}),console.log("[ApplePayService] completeShippingMethodSelection called"),console.groupEnd()},this.currentSession.oncancel=e=>{if(console.groupCollapsed("[ApplePayService] oncancel"),e.sessionError)switch(console.error(e.sessionError),e.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:",e.sessionError.code)}this.currentSession=void 0,this.currentPaymentRequest=void 0,t({success:!1,error:{code:R.USER_CANCELLED,message:"User cancelled the Apple Pay session"}}),console.groupEnd()},"onerror"in this.currentSession&&(this.currentSession.onerror=e=>{console.groupCollapsed("[ApplePayService] onerror"),console.error("=== APPLE PAY SESSION ERROR ==="),console.error("Session error:",e),this.currentSession=void 0,this.currentPaymentRequest=void 0,t({success:!1,error:{code:R.SESSION_ERROR,message:"Apple Pay session error occurred"}}),console.groupEnd()})):console.error("[ApplePayService] setupSessionEventHandlers called without required state",{hasSession:Boolean(this.currentSession),hasConfig:Boolean(this.applePayConfig),hasPaymentRequest:Boolean(this.currentPaymentRequest)})}static createPaymentRequest(e,t,i="US",s="USD"){return{countryCode:i,currencyCode:s,merchantCapabilities:Y.getDefaultMerchantCapabilities(),supportedNetworks:Y.getDefaultSupportedNetworks(),total:Y.createLineItem(t,e)}}getApplePayConfig(){return this.applePayConfig}}const Q=t=>{const{isLoading:i}=t;return i?e("div",{class:"container-fluid p-0"},e("div",{class:"row mb-3"},e("div",{class:"col-12 align-content-center"},e(r,{height:"44px",width:"100%",styles:{borderRadius:"8px"}})))):null},V=t=>e("div",{class:"apple-pay-button-container"},e("button",Object.assign({class:(()=>{let e="apple-pay-button";switch(t.buttonStyle){case z.WHITE:e+=" apple-pay-button-white";break;case z.WHITE_OUTLINE:e+=" apple-pay-button-white-outline";break;default:e+=" apple-pay-button-black"}switch(t.buttonType){case L.BUY:e+=" apple-pay-button-type-buy";break;case L.DONATE:e+=" apple-pay-button-type-donate";break;default:e+=" apple-pay-button-type-plain"}return(t.disabled||t.isProcessing||!t.isAvailable)&&(e+=" disabled"),e})(),style:{width:t.width,height:t.height},onClick:()=>{!t.disabled&&!t.isProcessing&&t.isAvailable&&t.clickHandler&&t.clickHandler()},disabled:t.disabled||t.isProcessing||!t.isAvailable,"aria-label":"Pay with Apple Pay",type:"button"},t),t.isProcessing&&e("div",{class:"processing-overlay"},e("div",{class:"spinner"}),e("span",null,"Processing..."))),e("style",null,"\n .apple-pay-button-container {\n display: inline-block;\n position: relative;\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 ")),H=class{constructor(e){t(this,e),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=L.PLAIN,this.buttonStyle=z.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 e,t;if(!this.isProcessing&&!this.disabled&&this.isAvailable)try{this.isProcessing=!0,this.error=null,this.applePayStarted.emit(),console.groupCollapsed("[ApplePay Component] handleApplePayClick"),console.log("[ApplePay Component] click context:",{isProcessing:this.isProcessing,disabled:this.disabled,isAvailable:this.isAvailable,canMakePayments:this.canMakePayments,hasService:Boolean(this.applePayService)});const i={countryCode:this.countryCode,currencyCode:l.paymentCurrency,merchantCapabilities:[_.SUPPORTS_3DS,_.SUPPORTS_CREDIT,_.SUPPORTS_DEBIT],supportedNetworks:Y.getDefaultSupportedNetworks(),total:Y.createLineItem(l.paymentDescription,l.paymentAmount)};console.log("[ApplePay Component] paymentRequest",i),console.log("[ApplePay Component] identifiers snapshot:",{authTokenLength:l.authToken?String(l.authToken).length:0,accountId:l.accountId});const s=await this.applePayService.startPaymentSession(i,l.authToken,l.accountId);console.log("[ApplePay Component] startPaymentSession result",s),s.success?this.applePayCompleted.emit({success:!0,token:s.token,paymentMethodId:s.paymentMethodId}):(this.applePayCompleted.emit({success:!1,error:s.error}),this.applePayError.emit({error:(null===(e=s.error)||void 0===e?void 0:e.message)||"Payment failed",code:(null===(t=s.error)||void 0===t?void 0:t.code)||H.ErrorCode.PAYMENT_FAILED}))}catch(e){const t=e instanceof Error?e.message:"Payment failed";this.error=t,this.applePayError.emit({error:t,code:H.ErrorCode.PAYMENT_FAILED}),this.applePayCompleted.emit({success:!1,error:t})}finally{this.isProcessing=!1,console.groupEnd()}}}async initializeApplePay(){try{if(this.isLoading=!0,this.error=null,this.isConfigValid=!0,console.groupCollapsed("[ApplePay Component] initializeApplePay"),console.log("[ApplePay Component] checkout state snapshot:",{paymentAmount:l.paymentAmount,paymentCurrency:l.paymentCurrency,hasAuthToken:Boolean(l.authToken),accountId:l.accountId}),!(Boolean(l.paymentAmount)&&Boolean(l.paymentCurrency)&&Boolean(l.authToken)))return this.error="Missing required Apple Pay configuration",this.isConfigValid=!1,console.error("Apple Pay config error: missing required values",{paymentAmount:l.paymentAmount,paymentCurrency:l.paymentCurrency,hasAuthToken:Boolean(l.authToken),accountId:l.accountId}),this.applePayError.emit({error:this.error,code:H.ErrorCode.CONFIG_ERROR}),this.isLoading=!1,void console.groupEnd();if(this.isAvailable=Y.isApplePaySupported(),this.canMakePayments=Y.canMakePayments(),console.log("[ApplePay Component] support check:",{isAvailable:this.isAvailable,canMakePayments:this.canMakePayments,hasApplePaySessionOnWindow:"undefined"!=typeof window&&"ApplePaySession"in window}),!this.isAvailable)return this.error="Apple Pay is not supported on this device",console.error(this.error),this.applePayError.emit({error:this.error,code:H.ErrorCode.NOT_SUPPORTED}),this.isLoading=!1,void console.groupEnd();if(!this.canMakePayments)return this.error="Apple Pay is not available",console.error(this.error),this.applePayError.emit({error:this.error,code:H.ErrorCode.NOT_AVAILABLE}),this.isLoading=!1,void console.groupEnd();const e={merchantIdentifier:this.merchantIdentifier,displayName:this.merchantDisplayName,initiative:"web",initiativeContext:this.initiativeContext,buttonType:this.buttonType,buttonStyle:this.buttonStyle};console.log("[ApplePay Component] initializing service with config:",e),this.applePayService=new F,this.applePayService.initialize(e),await this.applePayService.canMakePaymentsWithActiveCard()||console.warn("No Apple Pay cards available, but continuing...")}catch(e){console.error("Apple Pay initialization error:",e),this.error=e instanceof Error?e.message:"Failed to initialize Apple Pay",this.applePayError.emit({error:this.error,code:H.ErrorCode.INITIALIZATION_ERROR})}finally{this.isLoading=!1,console.groupEnd()}}async isSupported(){return this.isAvailable&&this.canMakePayments}async getPaymentMethods(){return this.isAvailable?Y.getDefaultSupportedNetworks():[]}async abort(){this.applePayService.abortPaymentSession(),this.isProcessing=!1,this.applePayCancelled.emit()}render(){if(!l.applePayEnabled)return console.log("[ApplePay Component] Apple Pay disabled in checkout settings; not rendering"),null;const t=!this.isLoading&&this.isAvailable&&this.canMakePayments&&this.isConfigValid;return e(a,null,l.checkoutLoaded&&e("script",{async:!0,src:"https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",onLoad:()=>{console.log("[ApplePay Component] Apple Pay SDK script loaded"),this.initializeApplePay()}}),e("div",{class:"apple-pay-container"},e(Q,{isLoading:this.isLoading}),t&&e(V,{buttonType:this.buttonType,buttonStyle:this.buttonStyle,disabled:this.disabled,isProcessing:this.isProcessing,isAvailable:this.isAvailable,clickHandler:this.handleApplePayClick,width:this.width,height:this.height})),e("style",null,"\n .apple-pay-container {\n width: 100%;\n }\n "))}};H.ErrorCode={CONFIG_ERROR:"CONFIG_ERROR",NOT_SUPPORTED:"NOT_SUPPORTED",NOT_AVAILABLE:"NOT_AVAILABLE",INITIALIZATION_ERROR:"INITIALIZATION_ERROR",PAYMENT_FAILED:"PAYMENT_FAILED"};const q=class{constructor(e){t(this,e)}render(){return e(a,{key:"abd92b499208321582b08a490c78c9167be2ebd4"},e("section",{key:"38e15cef5a19a43249d7ecf3d4eb4ea8e032f248"},e("div",{key:"747f811012ed9707265369e59dbde8cd7ad3bca6"},e("div",{key:"8575f50759664d5c64d235025699c81f055267ca",part:p},null==l?void 0:l.paymentDescription),e("div",{key:"af77776bbe21bce77586447bbf445e4c5d8c1165"},e("span",{key:"5cdaaec454118197b3e37a942d83907e72444342",part:p},"Total")," ",e("span",{key:"ccc35217ac9740d5a00b7abbcec4133848afcc28",part:p},y(+(null==l?void 0:l.totalAmount)))))))}},W=class{constructor(e){t(this,e),this.levels={h1:m,h2:v,h3:g},this.level="h1"}render(){return e(a,{key:"e1d39365c2ff2c291a42b53d6bcbe1d97d602778"},e(this.levels[this.level],{key:"0b8c8c3a42ff2151e3b293cafeeaeda72e94d767",text:this.text,class:this.class}))}},Z=o();class G{async getLinkToken(e,t,i,s){return Z.post({endpoint:`plaid/${t}/link`,body:{checkout_id:i},authToken:e,signal:s})}async tokenizeBankAccount(e,t,i,s,n,o){const a=`plaid/${t}/tokenize`,r={public_token:i};return s&&(r.link_token_id=s),n&&(r.payment_method_group_id=n),Z.post({endpoint:a,body:r,authToken:e,signal:o})}}const J=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event"),this.submitEvent=i(this,"submit-event"),this.checkoutChangedEvent=i(this,"checkout-changed"),this.plaidService=new G,this.handleApplePayCompleted=e=>{const{success:t,token:i,paymentMethodId:s,error:n}=e.detail;t&&i?(l.paymentToken=s,l.selectedPaymentMethod={type:S.APPLE_PAY},this.submitCheckout()):(console.error("Apple Pay completed but failed:",n),this.errorEvent.emit({message:(null==n?void 0:n.message)||"Apple Pay payment failed",errorCode:P.TOKENIZE_ERROR,severity:w.ERROR}))},this.handleApplePayError=e=>{const{error:t,code:i}=e.detail;console.error("Apple Pay error:",t),this.errorEvent.emit({message:t||"Apple Pay error occurred",errorCode:`APPLE_PAY_${i}`,severity:w.ERROR})},this.handleApplePayCancelled=()=>{l.paymentToken=void 0,l.selectedPaymentMethod=void 0}}connectedCallback(){this.observer=new MutationObserver((()=>{this.queryFormRefs(),this.setupApplePayListeners()})),this.observer.observe(this.hostEl,{childList:!0,subtree:!0}),l.checkoutId=this.checkoutId;const e={authToken:this.authToken,checkoutId:this.checkoutId,service:new N};this.getCheckout=(({authToken:e,checkoutId:t,service:i})=>async({onSuccess:s,onError:n})=>{var o;try{const a=await i.fetchCheckout(e,t);if(a.error)return n({error:E(a.error),code:C(null===(o=a.error)||void 0===o?void 0:o.code),severity:w.ERROR});s({checkout:a.data})}catch(e){const t=C(null==e?void 0:e.code);return n({error:e.message||e,code:t,severity:w.ERROR})}})(e),this.completeCheckout=(({authToken:e,checkoutId:t,service:i})=>async({payment:s,onSuccess:n,onError:o})=>{var a;try{const r=await i.complete(e,t,s);if(r.error)return o({error:E(r.error),code:C(null===(a=r.error)||void 0===a?void 0:a.code),severity:w.ERROR});n({checkout:r.data})}catch(e){const t=C(null==e?void 0:e.code);return o({error:e.message||e,code:t,severity:w.ERROR})}})(e),c((()=>{this.emitCheckoutChanged()}))}componentWillLoad(){this.analytics=new k(this),A(),l.authToken=this.authToken,this.fetchCheckout(),M("set",(e=>{const t=b[e];void 0!==t&&f(e,t)&&this.fetchCheckout()}))}componentDidLoad(){this.queryFormRefs(),this.setupApplePayListeners()}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect(),this.removeApplePayListeners()}fetchCheckout(){this.authToken&&this.checkoutId?this.getCheckout&&this.getCheckout({onSuccess:({checkout:e})=>{this.updateStore(e),e.status!==T.completed?e.status!==T.expired||this.errorEvent.emit({message:j.CHECKOUT_EXPIRED,errorCode:P.CHECKOUT_EXPIRED,severity:w.ERROR}):this.errorEvent.emit({message:j.CHECKOUT_ALREADY_COMPLETED,errorCode:P.CHECKOUT_ALREADY_COMPLETED,severity:w.ERROR})},onError:e=>{this.errorEvent.emit({message:e.message,errorCode:e.code,severity:e.severity})}}):this.errorEvent.emit({message:j.NOT_AUTHENTICATED,errorCode:P.NOT_AUTHENTICATED,severity:w.ERROR})}updateStore(e){var t,i,s,n,o,a;l.accountId=e.account_id,l.checkoutLoaded=!0,l.paymentMethods=e.payment_methods.map((e=>new I(e))),l.paymentMethodGroupId=e.payment_method_group_id,l.paymentDescription=e.payment_description,l.totalAmount=e.total_amount,l.paymentAmount=e.payment_amount,l.bnplEnabled=e.payment_settings.bnpl_payments,l.insuranceEnabled=e.payment_settings.insurance_payments,l.bankAccountVerification=null===(t=e.payment_settings)||void 0===t?void 0:t.bank_account_verification,l.applePayEnabled=Boolean(null===(i=e.payment_settings)||void 0===i?void 0:i.apple_payments),l.bnplProviderClientId=null===(s=null==e?void 0:e.bnpl)||void 0===s?void 0:s.provider_client_id,l.bnplProviderMode=null===(n=null==e?void 0:e.bnpl)||void 0===n?void 0:n.provider_mode,l.bnplProviderApiVersion=null===(o=null==e?void 0:e.bnpl)||void 0===o?void 0:o.provider_api_version,l.bnplProviderCheckoutUrl=null===(a=null==e?void 0:e.bnpl)||void 0===a?void 0:a.provider_checkout_url}emitCheckoutChanged(){const e={availablePaymentMethodTypes:h(),selectedPaymentMethod:l.selectedPaymentMethod,savedPaymentMethods:l.paymentMethods};this.checkoutChangedEvent.emit(e)}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.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))}async tokenizePaymentMethod(e){var t,i,s;const n=null!==(i=await(null===(t=this.billingFormRef)||void 0===t?void 0:t.getValues()))&&void 0!==i?i:{},o=Object.assign(Object.assign({},e),n),a=Object.assign({accountId:l.accountId,payment_method_group_id:void 0},o);l.savePaymentMethod&&(a.payment_method_group_id=l.paymentMethodGroupId);const r=await(null===(s=this.paymentMethodFormRef)||void 0===s?void 0:s.tokenize({clientId:this.authToken,paymentMethodMetadata:a,account:l.accountId}));return r.error?r:(l.paymentToken=r.id,r.id)}async setSelectedPaymentMethod(e){l.selectedPaymentMethod=e,l.paymentToken=e.id||void 0}async validate(){var e,t;const i=[];l.insuranceEnabled&&this.insuranceFormRef&&i.push(this.insuranceFormRef.validate());const s=(null===(e=l.selectedPaymentMethod)||void 0===e?void 0:e.type)===S.NEW_CARD,n=(null===(t=l.selectedPaymentMethod)||void 0===t?void 0:t.type)===S.NEW_BANK_ACCOUNT;if((s||n)&&(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((e=>"boolean"==typeof e?e:!1!==(null==e?void 0:e.isValid)))||(this.errorEvent.emit({message:"Validation error",errorCode:P.VALIDATION_ERROR,severity:w.ERROR}),!1)}catch(e){return!1}}async submitCheckout(e){var t,i,s,n,o;const a=await this.validate();if(!l.selectedPaymentMethod)return void this.errorEvent.emit({message:"No payment method selected.",errorCode:P.VALIDATION_ERROR,severity:w.ERROR});const r=(null===(t=l.selectedPaymentMethod)||void 0===t?void 0:t.type)===S.NEW_CARD,c=(null===(i=l.selectedPaymentMethod)||void 0===i?void 0:i.type)===S.NEW_BANK_ACCOUNT,h=(null===(s=l.selectedPaymentMethod)||void 0===s?void 0:s.type)===S.PLAID;if(r||c){const t=await this.tokenizePaymentMethod(e);if(null==t?void 0:t.error)return void this.errorEvent.emit({message:t.error.message,errorCode:P.TOKENIZE_ERROR,severity:w.ERROR})}if(h&&!l.paymentToken){const e=l.plaidPublicToken,t=l.plaidLinkTokenId;if(!e)return void this.errorEvent.emit({message:"Missing Plaid public token. Please connect your bank.",errorCode:P.TOKENIZE_ERROR,severity:w.ERROR});try{const i=await this.plaidService.tokenizeBankAccount(l.authToken,l.accountId,e,t||void 0,l.savePaymentMethod?l.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:P.TOKENIZE_ERROR,severity:w.ERROR});const s=null==i?void 0:i.data,o=(null===(n=null==s?void 0:s.bank_account)||void 0===n?void 0:n.token)||(null==s?void 0:s.token)||(null==s?void 0:s.id);l.paymentToken=o}catch(e){return void this.errorEvent.emit({message:(null==e?void 0:e.message)||"Plaid exchange error",errorCode:P.TOKENIZE_ERROR,severity:w.ERROR})}}if(!a)return void this.errorEvent.emit({message:"Please fill in all required fields.",errorCode:P.VALIDATION_ERROR,severity:w.ERROR});if(!l.paymentToken)return void this.errorEvent.emit({message:"Payment token not found.",errorCode:P.TOKENIZE_ERROR,severity:w.ERROR});let d;d={payment_mode:(e=>{switch(e){case S.NEW_CARD:case S.SAVED_CARD:case S.NEW_BANK_ACCOUNT:case S.SAVED_BANK_ACCOUNT:case S.PLAID:return D.ECOM;case S.SEZZLE:return D.BNPL;case S.APPLE_PAY:return D.APPLE_PAY;default:return}})(null===(o=l.selectedPaymentMethod)||void 0===o?void 0:o.type),payment_token:l.paymentToken},this.completeCheckout({payment:d,onSuccess:({checkout:e})=>{this.submitEvent.emit({checkout:e,message:"Checkout completed successfully"})},onError:e=>{this.errorEvent.emit({message:e.message,errorCode:P.COMPLETE_CHECKOUT_ERROR,severity:w.ERROR})}})}render(){return e(s,{key:"63acafa8f4819ac63e564807779976e352ccbdfb"})}get hostEl(){return n(this)}};var X;!function(e){e.PLAID_SDK_LOAD_FAILED="plaid-sdk-load-failed",e.PLAID_LINK_INIT_FAILED="plaid-link-init-failed",e.PLAID_LINK_TOKEN_FAILED="plaid-link-token-failed",e.PLAID_AUTHENTICATION_FAILED="plaid-authentication-failed",e.PLAID_BANK_NOT_SUPPORTED="plaid-bank-not-supported",e.PLAID_TOKEN_EXPIRED="plaid-token-expired",e.PLAID_NETWORK_ERROR="plaid-network-error",e.PLAID_USER_CANCELLED="plaid-user-cancelled",e.PLAID_TIMEOUT="plaid-timeout",e.PLAID_INVALID_CREDENTIALS="plaid-invalid-credentials",e.PLAID_ACCOUNT_LOCKED="plaid-account-locked",e.PLAID_MAINTENANCE="plaid-maintenance",e.PLAID_RATE_LIMITED="plaid-rate-limited"}(X||(X={}));const K={[X.PLAID_SDK_LOAD_FAILED]:"Unable to load Plaid. Please refresh the page and try again.",[X.PLAID_LINK_INIT_FAILED]:"Unable to initialize bank connection. Please try again.",[X.PLAID_LINK_TOKEN_FAILED]:"Unable to connect to bank service. Please try again.",[X.PLAID_AUTHENTICATION_FAILED]:"Bank authentication failed. Please try again.",[X.PLAID_BANK_NOT_SUPPORTED]:"Your bank is not currently supported. Please try a different payment method.",[X.PLAID_TOKEN_EXPIRED]:"Your bank session has expired. Please reconnect your account.",[X.PLAID_NETWORK_ERROR]:"Network connection issue. Please check your internet connection and try again.",[X.PLAID_USER_CANCELLED]:"Bank connection was cancelled. Click to try again.",[X.PLAID_TIMEOUT]:"Bank connection timed out. Please try again.",[X.PLAID_INVALID_CREDENTIALS]:"Invalid bank credentials. Please check your username and password.",[X.PLAID_ACCOUNT_LOCKED]:"Your bank account is temporarily locked. Please contact your bank.",[X.PLAID_MAINTENANCE]:"Bank service is temporarily unavailable. Please try again later.",[X.PLAID_RATE_LIMITED]:"Too many connection attempts. Please wait a moment and try again."},$={[X.PLAID_SDK_LOAD_FAILED]:w.ERROR,[X.PLAID_LINK_INIT_FAILED]:w.ERROR,[X.PLAID_LINK_TOKEN_FAILED]:w.ERROR,[X.PLAID_AUTHENTICATION_FAILED]:w.ERROR,[X.PLAID_BANK_NOT_SUPPORTED]:w.WARNING,[X.PLAID_TOKEN_EXPIRED]:w.WARNING,[X.PLAID_NETWORK_ERROR]:w.WARNING,[X.PLAID_USER_CANCELLED]:w.INFO,[X.PLAID_TIMEOUT]:w.WARNING,[X.PLAID_INVALID_CREDENTIALS]:w.ERROR,[X.PLAID_ACCOUNT_LOCKED]:w.ERROR,[X.PLAID_MAINTENANCE]:w.WARNING,[X.PLAID_RATE_LIMITED]:w.WARNING},ee=class{constructor(e){t(this,e),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 G,this.maxRetries=3,this.retryDelay=2e3,this.timeoutId=null,this.abortController=null,this.hasLoggedDisabledWarning=!1,this.waitForStoreAndInitialize=()=>{l.authToken&&l.accountId&&l.checkoutId?this.initializePlaidLink():setTimeout((()=>{this.waitForStoreAndInitialize()}),100)},this.initializePlaidLink=async()=>{try{if(void 0===window.Plaid)return void this.handleError({code:X.PLAID_SDK_LOAD_FAILED,message:K[X.PLAID_SDK_LOAD_FAILED],severity:$[X.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"});if(await this.getLinkToken(),!this.linkToken)return void this.handleError({code:X.PLAID_LINK_TOKEN_FAILED,message:K[X.PLAID_LINK_TOKEN_FAILED],severity:$[X.PLAID_LINK_TOKEN_FAILED],retryable:!0,userAction:"Click to try again"});const e=window.Plaid;this.plaidLink=e.create({token:this.linkToken,onSuccess:this.handlePlaidSuccess,onExit:this.handlePlaidExit,onEvent:this.handlePlaidEvent,onLoad:this.handlePlaidLoad})}catch(e){this.handleError({code:X.PLAID_LINK_INIT_FAILED,message:K[X.PLAID_LINK_INIT_FAILED],severity:$[X.PLAID_LINK_INIT_FAILED],originalError:e,retryable:!0,userAction:"Click to try again"})}},this.getLinkToken=async()=>{var e,t,i,s,n;try{if(!l.authToken||!l.accountId)return void this.handleError({code:X.PLAID_LINK_TOKEN_FAILED,message:"Missing authentication. Please refresh the page and try again.",severity:w.ERROR,retryable:!1,userAction:"Refresh the page"});this.abortController=new AbortController,this.timeoutId=setTimeout((()=>{var e;null===(e=this.abortController)||void 0===e||e.abort()}),3e4);const t=await this.plaidService.getLinkToken(l.authToken,l.accountId,l.checkoutId,this.abortController.signal);if(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),t.error)throw new Error("string"==typeof t.error?t.error:t.error.message||"Failed to get link token");this.linkToken=t.data.link_token,this.linkTokenId=(null==t?void 0:t.id)||(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.id)||null,this.linkTokenId&&(l.plaidLinkTokenId=this.linkTokenId)}catch(e){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);let o=X.PLAID_LINK_TOKEN_FAILED,a=K[o],r=!0;"AbortError"===e.name?(o=X.PLAID_TIMEOUT,a=K[o],r=!0):(null===(t=e.message)||void 0===t?void 0:t.includes("network"))||(null===(i=e.message)||void 0===i?void 0:i.includes("fetch"))?(o=X.PLAID_NETWORK_ERROR,a=K[o],r=!0):((null===(s=e.message)||void 0===s?void 0:s.includes("401"))||(null===(n=e.message)||void 0===n?void 0:n.includes("unauthorized")))&&(o=X.PLAID_INVALID_CREDENTIALS,a="Authentication failed. Please refresh the page and try again.",r=!1),this.handleError({code:o,message:a,severity:$[o],originalError:e,retryable:r,userAction:r?"Click to try again":"Refresh the page"})}},this.mapApiErrorToPlaidError=e=>{if("string"==typeof e){if(e.includes("rate_limit"))return X.PLAID_RATE_LIMITED;if(e.includes("maintenance"))return X.PLAID_MAINTENANCE;if(e.includes("not_authenticated"))return X.PLAID_INVALID_CREDENTIALS}if(null==e?void 0:e.code)switch(e.code){case"rate_limited":return X.PLAID_RATE_LIMITED;case"maintenance":return X.PLAID_MAINTENANCE;case"not_authenticated":return X.PLAID_INVALID_CREDENTIALS;default:return X.PLAID_LINK_TOKEN_FAILED}return X.PLAID_LINK_TOKEN_FAILED},this.openPlaidLink=()=>{this.plaidLink&&this.linkToken&&(this.isAuthenticating=!0,this.clearError(),this.plaidLink.open())},this.handlePlaidSuccess=e=>{this.publicToken=e,this.isAuthenticating=!1,this.clearError(),this.retryCount=0,this.isSelected||(this.isSelected=!0,l.selectedPaymentMethod={type:S.PLAID}),this.plaidErrorRecovered.emit({code:"plaid-success",message:"Bank account connected successfully",severity:w.INFO}),l.plaidPublicToken=e},this.handlePlaidExit=e=>{this.isAuthenticating=!1,e&&this.handlePlaidError(e)},this.handlePlaidEvent=(e,t)=>{switch(e){case"OPEN":this.isAuthenticating=!0;break;case"CLOSE":this.isAuthenticating=!1;break;case"ERROR":this.handlePlaidError(t)}},this.handlePlaidLoad=()=>{},this.handlePlaidError=e=>{let t=X.PLAID_AUTHENTICATION_FAILED,i=K[t],s=!0,n="Click to try again";if(e.error_code)switch(e.error_code){case"INVALID_CREDENTIALS":t=X.PLAID_INVALID_CREDENTIALS,i=K[t],s=!0;break;case"ITEM_LOGIN_REQUIRED":t=X.PLAID_INVALID_CREDENTIALS,i="Your bank requires re-authentication. Please try again.",s=!0;break;case"ITEM_LOCKED":t=X.PLAID_ACCOUNT_LOCKED,i=K[t],s=!1,n="Contact your bank";break;case"INSTITUTION_NOT_RESPONDING":t=X.PLAID_MAINTENANCE,i=K[t],s=!0;break;case"RATE_LIMIT_EXCEEDED":t=X.PLAID_RATE_LIMITED,i=K[t],s=!0;break;case"INVALID_REQUEST":t=X.PLAID_AUTHENTICATION_FAILED,i="Invalid request. Please try again.",s=!0;break;case"PLAID_ERROR":t=X.PLAID_AUTHENTICATION_FAILED,i=e.error_message||"Bank authentication failed. Please try again.",s=!0;break;default:e.error_message&&(i=e.error_message)}if(e.error_message){const o=e.error_message.toLowerCase();o.includes("not supported")||o.includes("unsupported")?(t=X.PLAID_BANK_NOT_SUPPORTED,i=K[t],s=!1,n="Try a different payment method"):(o.includes("expired")||o.includes("timeout"))&&(t=X.PLAID_TOKEN_EXPIRED,i=K[t],s=!0)}this.handleError({code:t,message:i,severity:$[t],originalError:e,retryable:s,userAction:n}),this.isAuthenticating=!1},this.handleError=e=>{this.error=e,this.plaidError.emit({code:e.code,message:e.message,severity:e.severity,data:{originalError:e.originalError,retryable:e.retryable,userAction:e.userAction,retryCount:this.retryCount}}),console.error("Plaid error:",e),e.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 e;const t=(null===(e=l.selectedPaymentMethod)||void 0===e?void 0:e.type)===S.PLAID;this.isSelected!==t&&(this.isSelected=t)}}onSelectionChange(e){var t;e&&(null===(t=l.selectedPaymentMethod)||void 0===t?void 0:t.type)!==S.PLAID&&(l.selectedPaymentMethod={type:S.PLAID}),!e||!this.plaidLink||this.publicToken||this.isAuthenticating||this.error||this.openPlaidLink()}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.waitForStoreAndInitialize()},this.scriptRef.onerror=()=>{this.handleError({code:X.PLAID_SDK_LOAD_FAILED,message:K[X.PLAID_SDK_LOAD_FAILED],severity:$[X.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"})})}componentWillLoad(){var e;this.isSelected=(null===(e=l.selectedPaymentMethod)||void 0===e?void 0:e.type)===S.PLAID}async resolvePaymentMethod(){return this.publicToken?{token:this.publicToken,data:{type:"bank_account",plaid_public_token:this.publicToken}}:{validationError:!0}}async getPaymentToken(){return l.paymentToken}async handleSelectionClick(){if(this.isSelected=!0,l.selectedPaymentMethod={type:S.PLAID},this.error)return this.clearError(),void this.waitForStoreAndInitialize();!this.plaidLink||this.publicToken||this.isAuthenticating||this.openPlaidLink()}async setSelected(e){this.isSelected=e,e&&(l.selectedPaymentMethod={type:S.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 e=d("selectedPaymentMethod",this.syncWithStore);this.unsubscribeFromStore=e}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.timeoutId&&clearTimeout(this.timeoutId),this.abortController&&this.abortController.abort()}render(){if(!0!==l.bankAccountVerification)return this.hasLoggedDisabledWarning||(console.warn("[PlaidPaymentMethod] bank_account_verification is disabled. Component will not render."),this.hasLoggedDisabledWarning=!0),null;const t=e("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 e(a,{class:"payment-method"},e("script",{src:"https://cdn.plaid.com/link/v2/stable/link-initialize.js",async:!0,ref:e=>this.scriptRef=e}),e("div",{title:"Pay with Plaid"},e("div",{onClick:e=>{e.preventDefault(),this.handleSelectionClick()}},"Pay with Bank Account ",t," "),(()=>this.error?e("div",{class:(this.error.severity===w.ERROR?"text-danger":this.error.severity===w.WARNING?"text-warning":"text-info")+" mt-2"},e("small",null,this.error.message),e("br",null),e("small",{class:"text-muted"},this.error.userAction,this.error.retryable&&this.retryCount<this.maxRetries&&e("span",null," • Auto-retry in progress..."))):null)(),(()=>this.error?null:this.isAuthenticating?e("div",{class:"text-info mt-2"},e("small",null,"Connecting to your bank...")):this.publicToken?e("div",{class:"text-success mt-2"},e("small",null,"✓ Bank account connected successfully")):!this.isSelected||this.publicToken||this.error||this.isAuthenticating?null:e("div",{class:"text-muted mt-2"},e("small",null,"Click to connect your bank account")))()))}static get watchers(){return{isSelected:["onSelectionChange"]}}},te=class{constructor(e){t(this,e),this.onPaymentMethodOptionClick=e=>t=>{t.preventDefault(),l.selectedPaymentMethod={id:e.id,type:e.type},l.paymentToken=e.id},this.isAllowedPaymentMethod=e=>!(e===S.SAVED_CARD&&l.disableCreditCard||e===S.SAVED_BANK_ACCOUNT&&l.disableBankAccount)}componentWillLoad(){l.paymentMethods.length||console.warn("No saved payment methods available."),l.disablePaymentMethodGroup&&console.warn("Payment method group is disabled.")}render(){return l.disablePaymentMethodGroup?null:e(a,null,e("div",{class:"saved-payment-methods"},l.paymentMethods.length?l.paymentMethods.filter((e=>this.isAllowedPaymentMethod(e.type))).map((t=>e("div",{class:"radio-list-item p-3",part:u,onClick:this.onPaymentMethodOptionClick(t)},e("form-control-radio",{name:"paymentMethodType",value:null==t?void 0:t.id,checked:l.paymentToken===(null==t?void 0:t.id),label:`${O[null==t?void 0:t.brand]||""} *${null==t?void 0:t.acct_last_four}`})))):null))}},ie=e("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"}}),se=class{constructor(e){t(this,e),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected"),this.paymentMethodOptionId=S.SEZZLE,this.initializeSezzleCheckout=()=>{let e;this.sezzlePromise=new Promise((t=>{e=t}));const t=Number(l.paymentAmount),i=new(0,window.Checkout)({mode:"popup",publicKey:l.bnplProviderClientId,apiMode:l.bnplProviderMode,apiVersion:l.bnplProviderApiVersion});i.sezzleButtonElement=this.sezzleButtonRef,i.init({onClick:function(e){e.preventDefault(),i.startCheckout({checkout_url:l.bnplProviderCheckoutUrl})},onComplete:t=>e({bnpl:t.data}),onCancel:t=>e({bnpl:t.data}),onFailure:t=>e({bnpl:t.data})}),this.sezzleCheckout=i,this.installmentPlan=this.sezzleCheckout.getInstallmentPlan(t)}}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.sezzleButtonRef=document.createElement("button"),this.initializeSezzleCheckout()})}async resolvePaymentMethod(e){return e.isValid?(this.sezzleButtonRef.click(),this.sezzlePromise):{validationError:!0}}async handleSelectionClick(){l.selectedPaymentMethod={type:S.SEZZLE},this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId)}render(){var t,i;return l.bnplEnabled?e(a,{class:"payment-method"},e("script",{src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:e=>this.scriptRef=e}),e("div",null,e("div",null,"Buy now, pay later with ",ie),this.installmentPlan&&e("small",null,e("span",null,null===(t=this.installmentPlan)||void 0===t?void 0:t.installments.length)," ",e("span",null,this.installmentPlan.schedule," payments of")," ",e("span",{class:"fw-bold"},y(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)}},ne={[S.NEW_BANK_ACCOUNT]:"New bank account",[S.NEW_CARD]:"New credit or debit card"},oe="Payment form not ready",ae="Validation error",re=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event"),this.submitEvent=i(this,"submit-event"),this.computedHideSubmitButton=!1,this.isLoading=!1,this.submitButtonText="Submit"}paymentMethodsChanged(){this.setDefaultSelectedPaymentMethod()}connectedCallback(){this.setDefaultSelectedPaymentMethod(),this.setComputedHideSubmitButton()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup(),this.unsubscribeFromStore&&this.unsubscribeFromStore()}componentWillLoad(){A(),this.analytics=new k(this)}handleRadioClick(e){this.selectedPaymentMethod=e.detail,l.selectedPaymentMethod={type:e.detail}}async fillBillingForm(e){var t;null===(t=this.billingFormRef)||void 0===t||t.fill(e)}async tokenizePaymentMethod(e){null==e||e.preventDefault(),this.validateRequiredProps(),this.isLoading=!0;try{if(!(await this.validate()).isValid)return this.errorEvent.emit({errorCode:P.TOKENIZE_ERROR,message:ae}),void(this.isLoading=!1);const e=await this.resolvePaymentMethod({isValid:!0});return e.error&&this.emitError({errorCode:e.error.code,message:e.error.message}),this.submitEvent.emit({response:e}),e}catch(e){const t=this.createErrorResponse(P.TOKENIZE_ERROR,e.message);return this.emitError({errorCode:P.TOKENIZE_ERROR,message:e.message}),this.submitEvent.emit({response:t}),t}finally{this.isLoading=!1}}async validate(){if(!this.areFormsReady())return{isValid:!1,errors:{general:oe}};const[e,t]=await Promise.all([this.billingFormRef.validate(),this.paymentMethodFormRef.validate()]);return{isValid:e.isValid&&t.isValid,errors:Object.assign(Object.assign({},e.errors),t.errors)}}async tokenize(){try{const e=await this.billingFormRef.getValues(),t={clientId:this.authToken||l.authToken,account:this.accountId||l.accountId,paymentMethodMetadata:this.buildPaymentMethodMetadata(e)};return await this.paymentMethodFormRef.tokenize(t)}catch(e){return e}}validateRequiredProps(){this.authToken||l.authToken||this.emitError({errorCode:P.TOKENIZE_ERROR,message:"Auth token is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"}),this.accountId||l.accountId||this.emitError({errorCode:P.TOKENIZE_ERROR,message:"Account ID is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"})}setDefaultSelectedPaymentMethod(){this.selectedPaymentMethod||(this.disableCreditCard?this.disableBankAccount||(this.selectedPaymentMethod=S.NEW_BANK_ACCOUNT,l.selectedPaymentMethod={type:S.NEW_BANK_ACCOUNT}):(this.selectedPaymentMethod=S.NEW_CARD,l.selectedPaymentMethod={type:S.NEW_CARD}))}setComputedHideSubmitButton(){if(void 0!==this.hideSubmitButton)return void(this.computedHideSubmitButton=this.hideSubmitButton);const e=this.isSlottedWithinModularCheckout();this.computedHideSubmitButton=e}isSlottedWithinModularCheckout(){var e;let t=null===(e=this.host)||void 0===e?void 0:e.parentElement;for(;t;){if("JUSTIFI-MODULAR-CHECKOUT"===t.tagName)return!0;t=t.parentElement}return!1}get availablePaymentMethods(){const e=[];return this.disableCreditCard||e.push(S.NEW_CARD),this.disableBankAccount||e.push(S.NEW_BANK_ACCOUNT),e}areFormsReady(){return!(!this.billingFormRef||!this.paymentMethodFormRef)}emitError(e){this.errorEvent.emit(Object.assign(Object.assign({},e),{severity:w.ERROR}))}createErrorResponse(e,t){return{error:{code:e,message:t,decline_code:void 0}}}async resolvePaymentMethod(e){if(!this.areFormsReady())return this.createErrorResponse("form_not_ready",oe);try{const t=await this.validate();if(!t.isValid||!e.isValid){const e=Object.values(t.errors)[0]||ae;return{validationError:!0,error:{code:"validation_error",message:String(e),decline_code:void 0}}}return await this.performTokenization()}catch(e){return{error:e}}}async performTokenization(){var e,t;const i=await this.tokenize();if(i.error)return{error:i.error};const s=i.data;return{token:(null===(e=s.card)||void 0===e?void 0:e.token)||(null===(t=s.bank_account)||void 0===t?void 0:t.token),data:s}}buildPaymentMethodMetadata(e){return this.shouldSavePaymentMethod?Object.assign(Object.assign({},e),{payment_method_group_id:this.paymentMethodGroupID}):Object.assign({},e)}get paymentMethodGroupID(){return this.paymentMethodGroupId||l.paymentMethodGroupId}get shouldSavePaymentMethod(){return!(!this.paymentMethodGroupId&&!l.savePaymentMethod)}get shouldHideRadioInput(){return this.disableCreditCard||this.disableBankAccount}renderPaymentMethodOption(t){const i=this.selectedPaymentMethod===t&&void 0===l.selectedPaymentMethod.id;return e("div",{class:"payment-method"},e("justifi-radio-list-item",{name:"paymentMethodType",value:t,checked:i,label:ne[t],hidden:this.shouldHideRadioInput}),i&&this.renderSelectedPaymentMethodForm(t))}renderSelectedPaymentMethodForm(t){return e("div",{class:"mt-4 pb-4"},this.renderPaymentMethodForm(t),e("div",{class:"mt-4"},e("justifi-billing-form",{ref:e=>this.billingFormRef=e,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,paymentMethodType:t})),e("div",{class:"mt-4"},e("justifi-save-new-payment-method",{hidden:!this.paymentMethodGroupID,label:this.savePaymentMethodLabel})))}renderPaymentMethodForm(t){return e(t===S.NEW_CARD?"justifi-card-form":"justifi-bank-account-form",{ref:e=>this.paymentMethodFormRef=e})}render(){return e(a,{key:"bf221d17739bf70c3f581f3b9791a725e76c3f35"},e("form",{key:"df117d42d4160f31df1fca5d6903967cc48ad573"},e("fieldset",{key:"550e670feffb405c669d44c44eb9073f535c6cb6"},e("div",{key:"8eff7d3ab19618da54161220b92641bf19bfa82d",class:"row gy-3"},e("div",{key:"bf9d19e92be74abf48ce65c97efb3f9df52d4c3c",class:"col-12"},this.availablePaymentMethods.map((e=>this.renderPaymentMethodOption(e)))),e("div",{key:"eef1f4e1e03c2263efb51ae94085c5a3d73a9166",class:"col-12"},e("justifi-button",{key:"f0e5697e658236610da45c34e64a8cbb3f0f9d95",text:this.submitButtonText,variant:"primary",type:"submit",clickHandler:e=>this.tokenizePaymentMethod(e),isLoading:this.isLoading,"data-testid":"submit-button",hidden:this.computedHideSubmitButton}))))))}get host(){return n(this)}static get watchers(){return{disableCreditCard:["paymentMethodsChanged"],disableBankAccount:["paymentMethodsChanged"]}}};export{H as justifi_apple_pay,q as justifi_checkout_summary,W as justifi_header,J as justifi_modular_checkout,ee as justifi_plaid_payment_method,te as justifi_saved_payment_methods,se as justifi_sezzle_payment_method,re as justifi_tokenize_payment_method}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i}from"./p-DOjVAAtq.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import{c as e,J as n}from"./p-CoBppUkq.js";import{T as p}from"./p-CCLgieAN.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{e as a}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as c,a as h}from"./p-D2muobcE.js";import{m,S as d}from"./p-DfV3dFDB.js";import{S as u}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-ClvhB3WW.js";import"./p-BXUY63ga.js";import"./p-DdZLLkQ5.js";import"./p-Bgnhf5c9.js";import"./p-DdMxswn1.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-hbWSMN3O.js";import"./p-xDbRW9xn.js";const j=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=l,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new n(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:o,onSuccess:e,onError:n})=>{var p,m;try{const d=await i.fetchTerminals(t,s,o);if(d.error)return n({error:h(d.error),code:c(null===(m=d.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},d.page_info);e({terminals:(null===(p=d.data)||void 0===p?void 0:p.map((t=>new a(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new p}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(u,{key:"33ad31c8b8748897664c91d3fc6349d76f276e9e"},i("terminals-list-core",{key:"dd16f1dd45b0c0d1d2f14469e4cc6f418b977ab7",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_terminals_list}
1
+ import{r as t,c as s,h as i}from"./p-DOjVAAtq.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import{c as e,J as n}from"./p-Cq_f4KEI.js";import{T as a}from"./p-CCLgieAN.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{e as p}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as c,a as h}from"./p-D2muobcE.js";import{m,S as d}from"./p-DfV3dFDB.js";import{S as u}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-ClvhB3WW.js";import"./p-DOrxxtCs.js";import"./p-DdZLLkQ5.js";import"./p-Bgnhf5c9.js";import"./p-DdMxswn1.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-hbWSMN3O.js";import"./p-xDbRW9xn.js";const j=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=l,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new n(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:o,onSuccess:e,onError:n})=>{var a,m;try{const d=await i.fetchTerminals(t,s,o);if(d.error)return n({error:h(d.error),code:c(null===(m=d.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},d.page_info);e({terminals:(null===(a=d.data)||void 0===a?void 0:a.map((t=>new p(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new a}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(u,{key:"33ad31c8b8748897664c91d3fc6349d76f276e9e"},i("terminals-list-core",{key:"dd16f1dd45b0c0d1d2f14469e4cc6f418b977ab7",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_terminals_list}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i}from"./p-DOjVAAtq.js";import{P as o}from"./p-8S_ROmnq.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{d as p}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as a,a as h}from"./p-D2muobcE.js";import{E as n}from"./p-CH8Y3GSr.js";import{c as m,J as c}from"./p-CoBppUkq.js";import{m as d}from"./p-DYGIC0QH.js";import"./p-DdZLLkQ5.js";import"./p-Bgnhf5c9.js";import"./p-DdMxswn1.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-xDbRW9xn.js";import"./p-BXUY63ga.js";const u=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.enableRecordClick=!1,this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new c(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var n;try{const m=await i.fetchPayout(t,s);m.error?e({error:h(m.error),code:a(null===(n=m.error)||void 0===n?void 0:n.code),severity:r.ERROR}):o(new p(m.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new o}),this.getPayoutCSV=d({authToken:this.authToken,service:new o})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent,enableRecordClick:this.enableRecordClick})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payout_details}
1
+ import{r as t,c as s,h as i}from"./p-DOjVAAtq.js";import{P as o}from"./p-8S_ROmnq.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{d as p}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as a,a as h}from"./p-D2muobcE.js";import{E as n}from"./p-CH8Y3GSr.js";import{c as m,J as c}from"./p-Cq_f4KEI.js";import{m as d}from"./p-DYGIC0QH.js";import"./p-DdZLLkQ5.js";import"./p-Bgnhf5c9.js";import"./p-DdMxswn1.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-xDbRW9xn.js";import"./p-DOrxxtCs.js";const u=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.enableRecordClick=!1,this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new c(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var n;try{const m=await i.fetchPayout(t,s);m.error?e({error:h(m.error),code:a(null===(n=m.error)||void 0===n?void 0:n.code),severity:r.ERROR}):o(new p(m.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new o}),this.getPayoutCSV=d({authToken:this.authToken,service:new o})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent,enableRecordClick:this.enableRecordClick})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payout_details}
@@ -1 +1 @@
1
- import{r as e,c as t,h as i}from"./p-DOjVAAtq.js";import{c as a,J as s}from"./p-CoBppUkq.js";import{c as d}from"./p-DGsXKF67.js";import{d as c}from"./p-xDbRW9xn.js";import{S as o}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{P as h}from"./p-DCIW8z1f.js";import"./p-BXUY63ga.js";import"./p-DdZLLkQ5.js";import"./p-a6tcNl_T.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-C98BC5W5.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const l=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event"),this.loadedEvent=t(this,"loaded"),this.submitEvent=t(this,"submit-event"),this.availablePaymentMethods=[],this.errorMessage="",this.insuranceToggled=!1,this.isSubmitting=!1,this.disableBankAccount=!1,this.disableBnpl=!1,this.disableCreditCard=!1,this.disablePaymentMethodGroup=!1,this.hideBankAccountBillingForm=!1,this.hideCardBillingForm=!1}propChanged(){this.updateStore()}connectedCallback(){this.authToken&&this.checkoutId&&this.updateStore()}componentWillLoad(){a(),this.analytics=new s(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){this.isSubmitting=!1}checkoutError(e){this.isSubmitting=!1}checkoutChanged(e){this.availablePaymentMethods=this.disableBnpl?e.detail.availablePaymentMethodTypes.filter((e=>e!==h.SEZZLE)):e.detail.availablePaymentMethodTypes}async fillBillingForm(e){var t;d.billingFormFields=e,null===(t=this.tokenizePaymentMethodRef)||void 0===t||t.fillBillingForm(e)}async validate(){var e;return{isValid:await(null===(e=this.modularCheckoutRef)||void 0===e?void 0:e.validate())}}updateStore(){d.checkoutId=this.checkoutId,d.authToken=this.authToken,d.disableCreditCard=this.disableCreditCard,d.disableBankAccount=this.disableBankAccount,d.disablePaymentMethodGroup=this.disablePaymentMethodGroup}async submit(e){var t;this.isSubmitting=!0,null===(t=this.modularCheckoutRef)||void 0===t||t.submitCheckout(d.billingFormFields)}get showPaymentTypeHeader(){return!this.disableCreditCard&&!this.disableBankAccount}render(){var e,t;return i(o,{key:"468b97261a110d5779ac742de45248aadfbeeb6c"},i("justifi-modular-checkout",{key:"7ce8d2e147f0b91ad93996f7e044a3fe2a9bd604",ref:e=>{this.modularCheckoutRef=e},authToken:this.authToken,checkoutId:this.checkoutId},i("div",{key:"7ace65df988d338d0cc810a532f8914a046e7268",class:"row gy-3 jfi-checkout-core"},i("div",{key:"3c6223ef06c7a2b42bef97dd67f5f09f21bb248b",class:"col-12",part:c},i("justifi-header",{key:"622b2ef667ab222a3152134573e7191bf2fa6117",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),i("section",{key:"036b447e7e92b1c6bfe33aff5d07a35bc2d9a915"},i("justifi-checkout-summary",{key:"292c0b09960046e78b902652e5b0902129715ef5"}))),i("div",{key:"5d27c5a5d3f026ad9f9da37833f8ecf808a89de9",class:"col-12 mt-4"},i("slot",{key:"1a583d890039b1c3a4493a0687ac5a9caa21d2b3",name:"insurance"})),i("div",{key:"0d7427acc37518888fceef97431f594fb4ea2359",class:"col-12 mt-4"},i("justifi-header",{key:"5543bc55d4be2de9064b4c4924ecd7d2f32da7d9",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&i("justifi-header",{key:"80a17876009d3c6e39017432053e3ab18b6d406e",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"eac0e3466d8cf74df53acd1252d11d0461d0a263",class:"d-flex flex-column"},i("section",{key:"1e27c56d333a44760d552549a716b39b1bcc538f"},i("div",{key:"65680e1ed1a3eccc84ec67797f468edafcb65a80"},i("justifi-saved-payment-methods",{key:"800e1e6312f8a38856341b5bc78c93a9fc18434e"}),this.availablePaymentMethods.includes(h.APPLE_PAY)&&i("div",{key:"0e5d9164a0066b88e7b9467bbb25167262614087",class:"mb-3"},i("justifi-apple-pay",{key:"81717e6193aa402eef18cf006b74798d02811a8d"})),this.availablePaymentMethods.includes(h.SEZZLE)&&i("justifi-radio-list-item",{key:"6405f56f8ee450d410801056c362580a6457325f",name:"paymentMethodType",value:h.SEZZLE,checked:(null===(e=null==d?void 0:d.selectedPaymentMethod)||void 0===e?void 0:e.type)===h.SEZZLE,label:i("justifi-sezzle-payment-method",{ref:e=>this.sezzlePaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.sezzlePaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),this.availablePaymentMethods.includes(h.PLAID)&&!this.disableBnpl&&i("justifi-radio-list-item",{key:"d2b920050db52162f5f1fee2ee46884f50f511e8",name:"paymentMethodType",value:h.PLAID,checked:(null===(t=null==d?void 0:d.selectedPaymentMethod)||void 0===t?void 0:t.type)===h.PLAID,label:i("justifi-plaid-payment-method",{ref:e=>this.plaidPaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.plaidPaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),i("justifi-tokenize-payment-method",{key:"c160cd5403029ce3e1cac142cf1e782c104e97f2",ref:e=>this.tokenizePaymentMethodRef=e,authToken:this.authToken,accountId:d.accountId,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,hideSubmitButton:!0,paymentMethodGroupId:d.paymentMethodGroupId}))))),i("div",{key:"6e03db84ccbfab811c72e4df5ffaf23c8822539b",class:"mt-4"},i("justifi-button",{key:"93bb084fdcce73aebed63ad887ced32c4d47ef7f",text:"Pay",type:"submit",variant:"primary",clickHandler:e=>this.submit(e),disabled:this.isSubmitting,isLoading:this.isSubmitting,customStyle:{width:"100%",textAlign:"center"}})))))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"],disableCreditCard:["propChanged"],disableBankAccount:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{l as justifi_checkout}
1
+ import{r as e,c as t,h as i}from"./p-DOjVAAtq.js";import{c as s,J as a}from"./p-Cq_f4KEI.js";import{c as d}from"./p-DGsXKF67.js";import{d as c}from"./p-xDbRW9xn.js";import{S as o}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{P as h}from"./p-DCIW8z1f.js";import"./p-DOrxxtCs.js";import"./p-DdZLLkQ5.js";import"./p-a6tcNl_T.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-C98BC5W5.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const f=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event"),this.loadedEvent=t(this,"loaded"),this.submitEvent=t(this,"submit-event"),this.availablePaymentMethods=[],this.errorMessage="",this.insuranceToggled=!1,this.isSubmitting=!1,this.disableBankAccount=!1,this.disableBnpl=!1,this.disableCreditCard=!1,this.disablePaymentMethodGroup=!1,this.hideBankAccountBillingForm=!1,this.hideCardBillingForm=!1}propChanged(){this.updateStore()}connectedCallback(){this.authToken&&this.checkoutId&&this.updateStore()}componentWillLoad(){s(),this.analytics=new a(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){this.isSubmitting=!1}checkoutError(e){this.isSubmitting=!1}checkoutChanged(e){this.availablePaymentMethods=this.disableBnpl?e.detail.availablePaymentMethodTypes.filter((e=>e!==h.SEZZLE)):e.detail.availablePaymentMethodTypes}async fillBillingForm(e){var t;d.billingFormFields=e,null===(t=this.tokenizePaymentMethodRef)||void 0===t||t.fillBillingForm(e)}async validate(){var e;return{isValid:await(null===(e=this.modularCheckoutRef)||void 0===e?void 0:e.validate())}}updateStore(){d.checkoutId=this.checkoutId,d.authToken=this.authToken,d.disableCreditCard=this.disableCreditCard,d.disableBankAccount=this.disableBankAccount,d.disablePaymentMethodGroup=this.disablePaymentMethodGroup}async submit(e){var t;this.isSubmitting=!0,null===(t=this.modularCheckoutRef)||void 0===t||t.submitCheckout(d.billingFormFields)}get showPaymentTypeHeader(){return!this.disableCreditCard&&!this.disableBankAccount}render(){var e,t;return i(o,{key:"468b97261a110d5779ac742de45248aadfbeeb6c"},i("justifi-modular-checkout",{key:"7ce8d2e147f0b91ad93996f7e044a3fe2a9bd604",ref:e=>{this.modularCheckoutRef=e},authToken:this.authToken,checkoutId:this.checkoutId},i("div",{key:"7ace65df988d338d0cc810a532f8914a046e7268",class:"row gy-3 jfi-checkout-core"},i("div",{key:"3c6223ef06c7a2b42bef97dd67f5f09f21bb248b",class:"col-12",part:c},i("justifi-header",{key:"622b2ef667ab222a3152134573e7191bf2fa6117",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),i("section",{key:"036b447e7e92b1c6bfe33aff5d07a35bc2d9a915"},i("justifi-checkout-summary",{key:"292c0b09960046e78b902652e5b0902129715ef5"}))),i("div",{key:"5d27c5a5d3f026ad9f9da37833f8ecf808a89de9",class:"col-12 mt-4"},i("slot",{key:"1a583d890039b1c3a4493a0687ac5a9caa21d2b3",name:"insurance"})),i("div",{key:"0d7427acc37518888fceef97431f594fb4ea2359",class:"col-12 mt-4"},i("justifi-header",{key:"5543bc55d4be2de9064b4c4924ecd7d2f32da7d9",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&i("justifi-header",{key:"80a17876009d3c6e39017432053e3ab18b6d406e",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"eac0e3466d8cf74df53acd1252d11d0461d0a263",class:"d-flex flex-column"},i("section",{key:"1e27c56d333a44760d552549a716b39b1bcc538f"},i("div",{key:"65680e1ed1a3eccc84ec67797f468edafcb65a80"},i("justifi-saved-payment-methods",{key:"800e1e6312f8a38856341b5bc78c93a9fc18434e"}),this.availablePaymentMethods.includes(h.APPLE_PAY)&&i("div",{key:"0e5d9164a0066b88e7b9467bbb25167262614087",class:"mb-3"},i("justifi-apple-pay",{key:"81717e6193aa402eef18cf006b74798d02811a8d"})),this.availablePaymentMethods.includes(h.SEZZLE)&&i("justifi-radio-list-item",{key:"6405f56f8ee450d410801056c362580a6457325f",name:"paymentMethodType",value:h.SEZZLE,checked:(null===(e=null==d?void 0:d.selectedPaymentMethod)||void 0===e?void 0:e.type)===h.SEZZLE,label:i("justifi-sezzle-payment-method",{ref:e=>this.sezzlePaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.sezzlePaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),this.availablePaymentMethods.includes(h.PLAID)&&!this.disableBnpl&&i("justifi-radio-list-item",{key:"d2b920050db52162f5f1fee2ee46884f50f511e8",name:"paymentMethodType",value:h.PLAID,checked:(null===(t=null==d?void 0:d.selectedPaymentMethod)||void 0===t?void 0:t.type)===h.PLAID,label:i("justifi-plaid-payment-method",{ref:e=>this.plaidPaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.plaidPaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),i("justifi-tokenize-payment-method",{key:"c160cd5403029ce3e1cac142cf1e782c104e97f2",ref:e=>this.tokenizePaymentMethodRef=e,authToken:this.authToken,accountId:d.accountId,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,hideSubmitButton:!0,paymentMethodGroupId:d.paymentMethodGroupId}))))),i("div",{key:"6e03db84ccbfab811c72e4df5ffaf23c8822539b",class:"mt-4"},i("justifi-button",{key:"93bb084fdcce73aebed63ad887ced32c4d47ef7f",text:"Pay",type:"submit",variant:"primary",clickHandler:e=>this.submit(e),disabled:this.isSubmitting,isLoading:this.isSubmitting,customStyle:{width:"100%",textAlign:"center"}})))))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"],disableCreditCard:["propChanged"],disableBankAccount:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{f as justifi_checkout}
@@ -1 +1 @@
1
- import{h as t,r as e,c as a}from"./p-DOjVAAtq.js";import{c as i}from"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{C as s,a as o}from"./p-Cjcsf8ku.js";import{h as r}from"./p-C98BC5W5.js";import{p as c}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as n,J as p}from"./p-CoBppUkq.js";import{g as h,a as d}from"./p-D2muobcE.js";import{P as l}from"./p-8S_ROmnq.js";import{T as f,l as u,a as m,b,c as y,d as _,e as w,f as T,g as j,h as g,i as v,j as k,k as C}from"./p-C0wTyoTh.js";import{S as D}from"./p-BhCH9S0e.js";import{T as S}from"./p-CZfYo5-1.js";import{a as P}from"./p-Bgnhf5c9.js";import{S as I,T as q}from"./p-xDbRW9xn.js";import"./p-DdMxswn1.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BXUY63ga.js";import"./p-DdZLLkQ5.js";import"./p-h5pyZngT.js";const O={id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:I,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:I,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:I,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:I,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:I,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:I,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},x={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},A={id:e=>t("td",{part:q(e.id)},e.id),account_id:e=>t("td",{part:q(e.account_id)},e.account_id),payout_id:e=>t("td",{part:q(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:q(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:q(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:q(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:q(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:q(e.currency)},e.currency),description:e=>t("td",{part:q(e.description)},e.description),source_id:e=>t("td",{part:q(e.source_id)},e.source_id),txn_type:e=>t("td",{part:q(e.txn_type)},x[e.txn_type]),created_at:e=>t("td",{part:q(e.created_at)},t("div",{class:"fw-bold"},P(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:q(e.available_on)},t("div",{class:"fw-bold"},P(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:q(e.updated_at)},t("div",{class:"fw-bold"},P(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.updated_at,{showTime:!0})))},B=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=c,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:S.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:S.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:S.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,O,A),n(),this.analytics=new p(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:i,onSuccess:o,onError:c,final:n})=>{var p;try{const n=await a.fetchPayoutTransactions(t,e,i);n.error?c({error:d(n.error),code:h(null===(p=n.error)||void 0===p?void 0:p.code),severity:s.ERROR}):o({balanceTransactions:n.data.map((t=>new r(t))),pagingInfo:Object.assign({},n.page_info)})}catch(t){const e=h(null==t?void 0:t.code);c({error:d(t),code:e,severity:s.ERROR})}finally{n()}})({accountId:i.accountId,authToken:this.authToken,service:new l})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(o.MISSING_PROPS,this.errorMessage,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}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(D,{key:"a0ff80867bc3c0bf198165229f693d7748ffc7a4"},t(u,{key:"779cc5602f6221e0f704484bf962b72b266d95f8"},t(m,{key:"7b4b56e9712533ba2b50a875d282ef4bd5efdcaf"},t(b,{key:"8ecd93d56bdbdb1417b260dd013315b21958f363"},t(y,{key:"9fa0fea238a9f76c71d5b8fc5443ca2c9e56b13b"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"f7d94388eddaf848e4868005e985a1158577c70f"},t(w,{key:"c83742e9e3ecbcdaba29f2aa121ec4c101a55632",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(T,{key:"fa0404328357e11527cff2c3eb15536ee458557b",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(j,{key:"71add0ef95310fd49e403d65c2a23ea8f73c71b6",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(g,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(v,{key:"073af8dce5dabb2db604ae50e6ace6a4ace18e6f"},t(k,{key:"3f3906a106b3c41311a0e1309aea779e865bf0f5"},t(C,{key:"85b46ef2a297aab3a450d49dd086ec6e7e1ab027",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"548131521a5fcf1562b286097635f5f62414a28c",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{B as justifi_payout_transactions_list}
1
+ import{h as t,r as e,c as a}from"./p-DOjVAAtq.js";import{c as i}from"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{C as s,a as o}from"./p-Cjcsf8ku.js";import{h as r}from"./p-C98BC5W5.js";import{p as c}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as n,J as p}from"./p-Cq_f4KEI.js";import{g as h,a as d}from"./p-D2muobcE.js";import{P as l}from"./p-8S_ROmnq.js";import{T as f,l as u,a as m,b,c as y,d as _,e as w,f as T,g as j,h as v,i as g,j as k,k as C}from"./p-C0wTyoTh.js";import{S as D}from"./p-BhCH9S0e.js";import{T as S}from"./p-CZfYo5-1.js";import{a as P}from"./p-Bgnhf5c9.js";import{S as I,T as q}from"./p-xDbRW9xn.js";import"./p-DdMxswn1.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DOrxxtCs.js";import"./p-DdZLLkQ5.js";import"./p-h5pyZngT.js";const x={id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:I,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:I,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:I,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:I,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:I,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:I,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},O={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},A={id:e=>t("td",{part:q(e.id)},e.id),account_id:e=>t("td",{part:q(e.account_id)},e.account_id),payout_id:e=>t("td",{part:q(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:q(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:q(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:q(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:q(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:q(e.currency)},e.currency),description:e=>t("td",{part:q(e.description)},e.description),source_id:e=>t("td",{part:q(e.source_id)},e.source_id),txn_type:e=>t("td",{part:q(e.txn_type)},O[e.txn_type]),created_at:e=>t("td",{part:q(e.created_at)},t("div",{class:"fw-bold"},P(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:q(e.available_on)},t("div",{class:"fw-bold"},P(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:q(e.updated_at)},t("div",{class:"fw-bold"},P(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.updated_at,{showTime:!0})))},E=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=c,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:S.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:S.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:S.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,x,A),n(),this.analytics=new p(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:i,onSuccess:o,onError:c,final:n})=>{var p;try{const n=await a.fetchPayoutTransactions(t,e,i);n.error?c({error:d(n.error),code:h(null===(p=n.error)||void 0===p?void 0:p.code),severity:s.ERROR}):o({balanceTransactions:n.data.map((t=>new r(t))),pagingInfo:Object.assign({},n.page_info)})}catch(t){const e=h(null==t?void 0:t.code);c({error:d(t),code:e,severity:s.ERROR})}finally{n()}})({accountId:i.accountId,authToken:this.authToken,service:new l})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(o.MISSING_PROPS,this.errorMessage,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}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(D,{key:"a0ff80867bc3c0bf198165229f693d7748ffc7a4"},t(u,{key:"779cc5602f6221e0f704484bf962b72b266d95f8"},t(m,{key:"7b4b56e9712533ba2b50a875d282ef4bd5efdcaf"},t(b,{key:"8ecd93d56bdbdb1417b260dd013315b21958f363"},t(y,{key:"9fa0fea238a9f76c71d5b8fc5443ca2c9e56b13b"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"f7d94388eddaf848e4868005e985a1158577c70f"},t(w,{key:"c83742e9e3ecbcdaba29f2aa121ec4c101a55632",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(T,{key:"fa0404328357e11527cff2c3eb15536ee458557b",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(j,{key:"71add0ef95310fd49e403d65c2a23ea8f73c71b6",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(v,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(g,{key:"073af8dce5dabb2db604ae50e6ace6a4ace18e6f"},t(k,{key:"3f3906a106b3c41311a0e1309aea779e865bf0f5"},t(C,{key:"85b46ef2a297aab3a450d49dd086ec6e7e1ab027",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"548131521a5fcf1562b286097635f5f62414a28c",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{E as justifi_payout_transactions_list}
@@ -0,0 +1 @@
1
+ import{h as s,r as t,c as i}from"./p-DOjVAAtq.js";import{A as e}from"./p-DdZLLkQ5.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{c,J as l}from"./p-Cq_f4KEI.js";import{c as h}from"./p-DGsXKF67.js";import{p as d,f as p,r as u,j as v}from"./p-Bgnhf5c9.js";import{v as m,i as f,a as y,H as j}from"./p-wQgEEOq_.js";import{D as _,E as g}from"./p-xDbRW9xn.js";import{S as C}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{S as k}from"./p-T2yENPvU.js";import"./p-a6tcNl_T.js";import"./p-DdMxswn1.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DOrxxtCs.js";import"./p-DCIW8z1f.js";import"./p-HXpYMWUU.js";const w=e();class b{async fetchQuote(s,t){return w.post({endpoint:"insurance/quotes",body:t,authToken:s})}async toggleCoverage(s,t,i){return w.post({endpoint:`insurance/quotes/${t}/toggle`,body:i,authToken:s})}}const T=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(k,{width:"35%",height:"30px"})),s("div",{class:"col-12"},s(k,{width:"70%"})),s("div",{class:"col-12"},s(k,{width:"40%"})),s("div",{class:"col-12"},s(k,{width:"40%"})),s("div",{class:"col-12"},s(k,{width:"100%"})),s("div",{class:"col-12"},s(k,{width:"80%"}))),D=class{constructor(s){t(this,s),this.insuranceUpdated=i(this,"insurance-updated"),this.errorEvent=i(this,"error-event"),this.isLoading=!0}async validate(){return m()}processHTMLContent(s){return d(s,[s=>u(s,"style"),s=>v(s,"a","part",_),s=>v(s,"p","part",_)])}componentWillLoad(){c(),this.analytics=new l(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeServiceMethods(){const s=this.authToken||h.authToken;if(!s)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const t={authToken:s,service:new b};this.getQuote=(({authToken:s,service:t})=>async({payload:i,onSuccess:e,onError:o})=>{var c;try{const l=await t.fetchQuote(s,i);if(l.error)return o({error:n(l.error),code:a(null===(c=l.error)||void 0===c?void 0:c.code),severity:r.ERROR});e({quote:l.data})}catch(s){const t=a(null==s?void 0:s.code);return o({error:s.message||s,code:t,severity:r.ERROR})}})(t),this.toggleCoverage=(({authToken:s,service:t})=>async({quoteId:i,payload:e,onSuccess:o,onError:c})=>{var l;try{const h=await t.toggleCoverage(s,i,e);if(h.error)return c({error:n(h.error),code:a(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(s){const t=a(null==s?void 0:s.code);return c({error:s.message||s,code:t,severity:r.ERROR})}})(t)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||h.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:s})=>{this.quote=s,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),f[s.policy_type]=s.accepted,this.isLoading=!1},onError:({error:s,code:t,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}onChangeHandler(s,t){this.accepted=t,y[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),f[this.quote.policy_type]=this.accepted},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}get error(){var s;return y[null===(s=this.quote)||void 0===s?void 0:s.policy_type]}render(){var t,i,e,r;return h&&!1===h.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):s(C,null,this.isLoading?s(T,null):s("div",null,s(j,{text:null===(t=this.quote)||void 0===t?void 0:t.product.title,class:"fs-5 fw-bold pb-3"}),s("small",{part:_,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),s("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:g},"Please select an option"),s("small",{part:_,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{D as justifi_season_interruption_insurance}
@@ -1 +1 @@
1
- import{h as i,r as s,c as t}from"./p-DOjVAAtq.js";import{am as e,aj as r,af as o,D as l}from"./p-xDbRW9xn.js";import{S as d}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-CoBppUkq.js";import{C as h,a as c}from"./p-Cjcsf8ku.js";import{B as u}from"./p-DQZ5VHTZ.js";import{B as v}from"./p-BlJnA265.js";import{m as p}from"./p-DH8F0bsw.js";import{S as m}from"./p-T2yENPvU.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{j as f,i as w,b as j}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{g as x,a as g}from"./p-D2muobcE.js";import{T as y}from"./p-CCLgieAN.js";import{l as b}from"./p-Bgnhf5c9.js";import"./p-BXUY63ga.js";import"./p-DdZLLkQ5.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DdMxswn1.js";const C=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(m,{width:"25%"})),i("div",{class:"col-12"},i(m,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"50%"}),i(m,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"65%"}),i(m,{width:"35%"}))),k=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(m,{width:"40%",height:"40px"})),i(C,null)),S=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(m,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),i("div",{class:"flex-grow-1"},i("div",{class:"d-flex row flex-row"},i("div",{class:"col-6 flex-column"},i(m,null),i(m,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(m,{width:"80px",height:"32px"}),i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(m,null),i(m,null)))))),B=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event"),this.submitted=t(this,"submit-event"),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new w({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?j.boardingShipping:j.boardingOnly}),n(),this.analytics=new a(this),this.loadData()}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}handleError(i,s,t){this.error={message:i,code:s,severity:t},this.errorEvent.emit({errorCode:s,message:i,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",c.MISSING_PROPS,h.ERROR)}initializeGetBusiness(){p({id:this.businessId,authToken:this.authToken,service:new u})({onSuccess:({business:i})=>{this.business=new v(i),this.loading.business=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,n;try{const a=await t.fetchTerminalModels(i,s);if(a.error)return r({error:g(a.error),code:x(null===(n=a.error)||void 0===n?void 0:n.code),severity:h.ERROR});e({terminals:(null===(l=null===(o=a.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((i=>new f(i))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=x(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new y})({onSuccess:({terminals:i,orderLimit:s})=>{this.terminalModels=i,this.orderLimit=s,this.loading.terminals=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.terminals=!1}})}submitOrder(){const i=(({authToken:i,service:s,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await s.orderTerminals(i,e,t);if(d.error)return o({error:g(d.error),code:x(null===(l=d.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:i}=d;r({data:i})}}catch(i){const s=x(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new y});this.submitting=!0,i({terminalOrder:this.order.payload,onSuccess:({data:i})=>{this.submitted.emit(i),this.submitting=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.submitting=!1}})}onSelectedQuantityChange(i){this.order.updateTerminal(i.detail.modelName,i.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return i("div",null,this.loading.business&&i(k,null),this.loading.terminals&&i("div",{class:"mt-5"},i(S,null),i(S,null),i(S,null)))}renderBusinessDetails(){var s,t,o,l,d,n,a,h;if(!this.loading.business&&this.business)return i("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},i("div",{class:"row"},i("div",{class:"col-12"},i("h2",{part:r},this.business.legal_name))),i("div",{class:"row"},i("div",{class:"col-6"},i("h5",{part:e},"Representative:"),i("div",null,i("div",null,null===(t=null===(s=this.business)||void 0===s?void 0:s.representative)||void 0===t?void 0:t.name),i("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),i("div",null,null===(n=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===n?void 0:n.email),i("div",null,b(null===(h=null===(a=this.business)||void 0===a?void 0:a.representative)||void 0===h?void 0:h.phone)))),i("div",{class:"col-6"},i("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),i("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",i("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return i("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((s=>i("terminal-quantity-selector",{modelName:s.model_name,description:s.description,imageUrl:s.image_url,helpUrl:s.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return i("div",{class:"mt-3"},i("div",{class:"text-end"},"Order limit: ",this.orderLimit),i("div",{class:"d-flex justify-content-end mt-3"},i("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return i(d,{key:"5e7da5050d127f6470bc12f9cf547fe421ce1897"},i("div",{key:"6a1f46676ef1f31f6cfeb642001a0dd3f8a60072",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{B as justifi_order_terminals}
1
+ import{h as i,r as s,c as t}from"./p-DOjVAAtq.js";import{am as e,aj as r,af as o,D as l}from"./p-xDbRW9xn.js";import{S as d}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-Cq_f4KEI.js";import{C as h,a as c}from"./p-Cjcsf8ku.js";import{B as u}from"./p-DQZ5VHTZ.js";import{B as v}from"./p-BlJnA265.js";import{m as p}from"./p-DH8F0bsw.js";import{S as m}from"./p-T2yENPvU.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{j as f,i as w,b as x}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{g as j,a as g}from"./p-D2muobcE.js";import{T as y}from"./p-CCLgieAN.js";import{l as b}from"./p-Bgnhf5c9.js";import"./p-DOrxxtCs.js";import"./p-DdZLLkQ5.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DdMxswn1.js";const C=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(m,{width:"25%"})),i("div",{class:"col-12"},i(m,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"50%"}),i(m,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"65%"}),i(m,{width:"35%"}))),S=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(m,{width:"40%",height:"40px"})),i(C,null)),k=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(m,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),i("div",{class:"flex-grow-1"},i("div",{class:"d-flex row flex-row"},i("div",{class:"col-6 flex-column"},i(m,null),i(m,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(m,{width:"80px",height:"32px"}),i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(m,null),i(m,null)))))),D=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event"),this.submitted=t(this,"submit-event"),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new w({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?x.boardingShipping:x.boardingOnly}),n(),this.analytics=new a(this),this.loadData()}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}handleError(i,s,t){this.error={message:i,code:s,severity:t},this.errorEvent.emit({errorCode:s,message:i,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",c.MISSING_PROPS,h.ERROR)}initializeGetBusiness(){p({id:this.businessId,authToken:this.authToken,service:new u})({onSuccess:({business:i})=>{this.business=new v(i),this.loading.business=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,n;try{const a=await t.fetchTerminalModels(i,s);if(a.error)return r({error:g(a.error),code:j(null===(n=a.error)||void 0===n?void 0:n.code),severity:h.ERROR});e({terminals:(null===(l=null===(o=a.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((i=>new f(i))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=j(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new y})({onSuccess:({terminals:i,orderLimit:s})=>{this.terminalModels=i,this.orderLimit=s,this.loading.terminals=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.terminals=!1}})}submitOrder(){const i=(({authToken:i,service:s,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await s.orderTerminals(i,e,t);if(d.error)return o({error:g(d.error),code:j(null===(l=d.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:i}=d;r({data:i})}}catch(i){const s=j(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new y});this.submitting=!0,i({terminalOrder:this.order.payload,onSuccess:({data:i})=>{this.submitted.emit(i),this.submitting=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.submitting=!1}})}onSelectedQuantityChange(i){this.order.updateTerminal(i.detail.modelName,i.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return i("div",null,this.loading.business&&i(S,null),this.loading.terminals&&i("div",{class:"mt-5"},i(k,null),i(k,null),i(k,null)))}renderBusinessDetails(){var s,t,o,l,d,n,a,h;if(!this.loading.business&&this.business)return i("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},i("div",{class:"row"},i("div",{class:"col-12"},i("h2",{part:r},this.business.legal_name))),i("div",{class:"row"},i("div",{class:"col-6"},i("h5",{part:e},"Representative:"),i("div",null,i("div",null,null===(t=null===(s=this.business)||void 0===s?void 0:s.representative)||void 0===t?void 0:t.name),i("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),i("div",null,null===(n=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===n?void 0:n.email),i("div",null,b(null===(h=null===(a=this.business)||void 0===a?void 0:a.representative)||void 0===h?void 0:h.phone)))),i("div",{class:"col-6"},i("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),i("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",i("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return i("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((s=>i("terminal-quantity-selector",{modelName:s.model_name,description:s.description,imageUrl:s.image_url,helpUrl:s.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return i("div",{class:"mt-3"},i("div",{class:"text-end"},"Order limit: ",this.orderLimit),i("div",{class:"d-flex justify-content-end mt-3"},i("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return i(d,{key:"5e7da5050d127f6470bc12f9cf547fe421ce1897"},i("div",{key:"6a1f46676ef1f31f6cfeb642001a0dd3f8a60072",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{D as justifi_order_terminals}
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-DOjVAAtq.js";export{s as setNonce}from"./p-DOjVAAtq.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-e9b2591b",[[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-4b57765c",[[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"],"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-c44fcff6",[[256,"justifi-dispute-management",{"disputeId":[1,"dispute-id"],"authToken":[1,"auth-token"],"getDispute":[32],"errorMessage":[32]},null,{"disputeId":["propChanged"],"authToken":["propChanged"]}]]],["p-80a4fba7",[[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]}]]],["p-d403bdc0",[[257,"justifi-business-details",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"errorMessage":[32],"getBusiness":[32]}]]],["p-0eb69f41",[[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-9d611395",[[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-2d300faa",[[257,"justifi-terminal-orders-list-filters",{"orderStatus":[1,"order-status"],"orderType":[1,"order-type"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-8ca21fab",[[257,"justifi-terminals-list-filters",{"terminalId":[1,"terminal-id"],"terminalOrderId":[1,"terminal-order-id"],"terminalStatus":[1,"terminal-status"]}]]],["p-02fdd7f5",[[257,"justifi-checkouts-list-filters",{"checkoutStatus":[1,"checkout-status"],"paymentMode":[1,"payment-mode"]}]]],["p-526b7442",[[257,"justifi-payouts-list-filters",{"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-67788df5",[[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-0d3904cb",[[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-ea2cbf37",[[257,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"getPaymentDetails":[32],"errorMessage":[32]},null,{"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["p-a8446044",[[257,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getPayments":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-ee90bbd1",[[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-55903cde",[[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-705dba52",[[256,"justifi-saved-payment-method",{"paymentMethodOption":[16],"isSelected":[4,"is-selected"],"resolvePaymentMethod":[64]}]]],["p-1f82f0cc",[[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-268a6e14",[[257,"justifi-terminal-orders-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getTerminalOrders":[32],"errorMessage":[32]}]]],["p-58f7c4bd",[[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-328117e4",[[257,"payment-method-option",{"paymentMethodOptionId":[1,"payment-method-option-id"],"isSelected":[4,"is-selected"],"clickHandler":[16],"radioButtonHidden":[4,"radio-button-hidden"],"label":[1]}]]],["p-6472b6db",[[256,"bank-account-form",{"isReady":[32],"iframeOrigin":[32],"tabId":[32],"validate":[64],"tokenize":[64]}]]],["p-28625e07",[[256,"card-form",{"isReady":[32],"iframeOrigin":[32],"tabId":[32],"validate":[64],"tokenize":[64]}]]],["p-9c8fb92f",[[257,"justifi-gross-payment-chart",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getGrossPayment":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-569c7dcc",[[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-dfb2e55b",[[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-d1bceac6",[[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-a4846316",[[256,"justifi-config-provider",{"apiOrigin":[1,"api-origin"],"iframeOrigin":[1,"iframe-origin"],"accountId":[1,"account-id"]}]]],["p-bb53e2e9",[[257,"justifi-skeleton",{"component":[1],"height":[8],"width":[8],"class":[1],"customStyle":[16]}]]],["p-9ed7b13f",[[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]},[[0,"formCompleted","handleFormCompleted"],[0,"formLoading","handleFormLoading"]]]]],["p-2f40f708",[[256,"form-control-help-text",{"helpText":[1,"help-text"],"name":[1]}]]],["p-37a93597",[[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-0cac8468",[[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-0cf71cbd",[[256,"business-details-core",{"getBusiness":[16],"business":[32],"renderState":[32],"errorMessage":[32]}]]],["p-47997bc2",[[256,"terminal-quantity-selector",{"modelName":[1,"model-name"],"imageUrl":[1,"image-url"],"description":[1],"helpUrl":[1,"help-url"],"limit":[2],"selectedQuantity":[32]}]]],["p-bc099dd0",[[256,"pagination-menu",{"paging":[16],"params":[16]}]]],["p-c12d0453",[[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-e6be4e19",[[256,"payment-details-core",{"getPaymentDetails":[16],"payment":[32],"loading":[32],"errorMessage":[32]},null,{"getPaymentDetails":["updateOnPropChange"]}]]],["p-d0a2035f",[[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-9ad7d724",[[256,"payout-details-core",{"getPayout":[16],"getPayoutCSV":[16],"enableRecordClick":[4,"enable-record-click"],"payout":[32],"loading":[32],"errorMessage":[32]},null,{"getPayout":["getPayoutWatcher"]}]]],["p-50701f16",[[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-5aae36f3",[[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-78cb62a8",[[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-ffefa09c",[[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-0217783c",[[256,"gross-payment-chart-core",{"getGrossPayment":[16],"grossVolumeReport":[32],"loading":[32],"errorMessage":[32]},null,{"getGrossPayment":["propChanged"],"grossVolumeReport":["grossVolumeReportChanged"]}]]],["p-63ad8ebd",[[256,"justifi-business-representative",{"formController":[8,"form-controller"],"errors":[32],"representative":[32]}],[256,"justifi-business-core-info",{"formController":[16],"errors":[32],"coreInfo":[32]}],[256,"justifi-additional-questions",{"formController":[8,"form-controller"],"errors":[32],"additional_questions":[32]}],[256,"justifi-legal-address-form",{"formController":[8,"form-controller"],"errors":[32],"legal_address":[32]}],[256,"form-alert",{"text":[1],"hideAlert":[4,"hide-alert"]}]]],["p-80b2cdec",[[256,"justifi-business-representative-form-inputs",{"representativeDefaultValue":[8,"representative-default-value"],"errors":[8],"formController":[16]}]]],["p-ec9514f8",[[260,"table-filters-menu",{"params":[8],"clearParams":[16],"anchorButton":[32],"menu":[32],"showClearButton":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]],{"params":["watchParamsHandler"]}]]],["p-a09695c4",[[260,"justifi-details",{"errorMessage":[1,"error-message"]}]]],["p-0af5269e",[[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-edfeb034",[[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-447b55c0",[[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-5cb22cfb",[[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-ae8ae5bb",[[256,"form-control-tooltip",{"helpText":[1,"help-text"],"anchorIcon":[32],"tooltip":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]]],[260,"custom-popper",{"placement":[1],"offset":[16],"strategy":[1],"trigger":[1],"anchorRef":[16],"isOpen":[32]}]]],["p-220d8503",[[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"]}],[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-e9865d1d",[[256,"justifi-tokenize-payment-method",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"disableBankAccount":[4,"disable-bank-account"],"disableCreditCard":[4,"disable-credit-card"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"hideCardBillingForm":[4,"hide-card-billing-form"],"hideSubmitButton":[4,"hide-submit-button"],"paymentMethodGroupId":[1,"payment-method-group-id"],"submitButtonText":[1,"submit-button-text"],"savePaymentMethodLabel":[1,"save-payment-method-label"],"computedHideSubmitButton":[32],"isLoading":[32],"selectedPaymentMethod":[32],"fillBillingForm":[64],"tokenizePaymentMethod":[64],"validate":[64],"tokenize":[64]},[[0,"radio-click","handleRadioClick"]],{"disableCreditCard":["paymentMethodsChanged"],"disableBankAccount":["paymentMethodsChanged"]}],[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"],"isLoading":[32],"isProcessing":[32],"isAvailable":[32],"canMakePayments":[32],"isConfigValid":[32],"error":[32],"isSupported":[64],"getPaymentMethods":[64],"abort":[64]}],[257,"justifi-checkout-summary"],[257,"justifi-header",{"text":[1],"level":[1],"class":[1]}],[256,"justifi-modular-checkout",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"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-aeb22aa2",[[256,"bank-account-form-inputs",{"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]}]]],["p-5bd3d86e",[[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-b608add9",[[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-f705fc49",[[256,"form-control-select",{"name":[8],"label":[1],"options":[16],"inputHandler":[16],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}],[256,"form-control-text",{"name":[8],"label":[1],"inputHandler":[16],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"maxLength":[2,"max-length"],"keyDownHandler":[16],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-9773e1e9",[[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-c644a9f1",[[256,"justifi-identity-address-form",{"handleFormUpdate":[16],"errors":[8],"defaultValues":[8,"default-values"],"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"]}]]],["p-fbc5fc6d",[[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"],"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"],"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"]}]]],["p-32978110",[[256,"justifi-business-owners-form-step-core",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"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"],"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"],"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"],"formController":[32],"errors":[32],"coreInfo":[32],"isLoading":[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"],"formController":[32],"errors":[32],"legal_address":[32],"isLoading":[32],"validateAndSubmit":[64]}]]],["p-de95bf57",[[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"],"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"],"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"],"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"],"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"],"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"],"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-d4476052",[[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-DOjVAAtq.js";export{s as setNonce}from"./p-DOjVAAtq.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-7f018623",[[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-c9cfab30",[[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"],"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-a5fc94fe",[[256,"justifi-dispute-management",{"disputeId":[1,"dispute-id"],"authToken":[1,"auth-token"],"getDispute":[32],"errorMessage":[32]},null,{"disputeId":["propChanged"],"authToken":["propChanged"]}]]],["p-6df72e0f",[[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]}]]],["p-24817d58",[[257,"justifi-business-details",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"errorMessage":[32],"getBusiness":[32]}]]],["p-0eb69f41",[[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-3ff3bb90",[[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-2d300faa",[[257,"justifi-terminal-orders-list-filters",{"orderStatus":[1,"order-status"],"orderType":[1,"order-type"],"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-8ca21fab",[[257,"justifi-terminals-list-filters",{"terminalId":[1,"terminal-id"],"terminalOrderId":[1,"terminal-order-id"],"terminalStatus":[1,"terminal-status"]}]]],["p-02fdd7f5",[[257,"justifi-checkouts-list-filters",{"checkoutStatus":[1,"checkout-status"],"paymentMode":[1,"payment-mode"]}]]],["p-526b7442",[[257,"justifi-payouts-list-filters",{"createdAfter":[1,"created-after"],"createdBefore":[1,"created-before"]}]]],["p-d2b922cc",[[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-88fcb530",[[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-17abfc00",[[257,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"getPaymentDetails":[32],"errorMessage":[32]},null,{"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["p-451c8e1b",[[257,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getPayments":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-bf5593bb",[[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-293c4517",[[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-705dba52",[[256,"justifi-saved-payment-method",{"paymentMethodOption":[16],"isSelected":[4,"is-selected"],"resolvePaymentMethod":[64]}]]],["p-cf26936c",[[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-8be7fbf6",[[257,"justifi-terminal-orders-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"columns":[1],"getTerminalOrders":[32],"errorMessage":[32]}]]],["p-be5c5154",[[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-328117e4",[[257,"payment-method-option",{"paymentMethodOptionId":[1,"payment-method-option-id"],"isSelected":[4,"is-selected"],"clickHandler":[16],"radioButtonHidden":[4,"radio-button-hidden"],"label":[1]}]]],["p-6472b6db",[[256,"bank-account-form",{"isReady":[32],"iframeOrigin":[32],"tabId":[32],"validate":[64],"tokenize":[64]}]]],["p-28625e07",[[256,"card-form",{"isReady":[32],"iframeOrigin":[32],"tabId":[32],"validate":[64],"tokenize":[64]}]]],["p-51ac9f40",[[257,"justifi-gross-payment-chart",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getGrossPayment":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-8f84883e",[[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-cc5c6425",[[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-d1bceac6",[[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-a4846316",[[256,"justifi-config-provider",{"apiOrigin":[1,"api-origin"],"iframeOrigin":[1,"iframe-origin"],"accountId":[1,"account-id"]}]]],["p-bb53e2e9",[[257,"justifi-skeleton",{"component":[1],"height":[8],"width":[8],"class":[1],"customStyle":[16]}]]],["p-9ed7b13f",[[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]},[[0,"formCompleted","handleFormCompleted"],[0,"formLoading","handleFormLoading"]]]]],["p-2f40f708",[[256,"form-control-help-text",{"helpText":[1,"help-text"],"name":[1]}]]],["p-37a93597",[[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-0cac8468",[[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-0cf71cbd",[[256,"business-details-core",{"getBusiness":[16],"business":[32],"renderState":[32],"errorMessage":[32]}]]],["p-47997bc2",[[256,"terminal-quantity-selector",{"modelName":[1,"model-name"],"imageUrl":[1,"image-url"],"description":[1],"helpUrl":[1,"help-url"],"limit":[2],"selectedQuantity":[32]}]]],["p-bc099dd0",[[256,"pagination-menu",{"paging":[16],"params":[16]}]]],["p-c12d0453",[[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-e6be4e19",[[256,"payment-details-core",{"getPaymentDetails":[16],"payment":[32],"loading":[32],"errorMessage":[32]},null,{"getPaymentDetails":["updateOnPropChange"]}]]],["p-d0a2035f",[[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-9ad7d724",[[256,"payout-details-core",{"getPayout":[16],"getPayoutCSV":[16],"enableRecordClick":[4,"enable-record-click"],"payout":[32],"loading":[32],"errorMessage":[32]},null,{"getPayout":["getPayoutWatcher"]}]]],["p-50701f16",[[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-5aae36f3",[[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-78cb62a8",[[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-ffefa09c",[[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-0217783c",[[256,"gross-payment-chart-core",{"getGrossPayment":[16],"grossVolumeReport":[32],"loading":[32],"errorMessage":[32]},null,{"getGrossPayment":["propChanged"],"grossVolumeReport":["grossVolumeReportChanged"]}]]],["p-63ad8ebd",[[256,"justifi-business-representative",{"formController":[8,"form-controller"],"errors":[32],"representative":[32]}],[256,"justifi-business-core-info",{"formController":[16],"errors":[32],"coreInfo":[32]}],[256,"justifi-additional-questions",{"formController":[8,"form-controller"],"errors":[32],"additional_questions":[32]}],[256,"justifi-legal-address-form",{"formController":[8,"form-controller"],"errors":[32],"legal_address":[32]}],[256,"form-alert",{"text":[1],"hideAlert":[4,"hide-alert"]}]]],["p-80b2cdec",[[256,"justifi-business-representative-form-inputs",{"representativeDefaultValue":[8,"representative-default-value"],"errors":[8],"formController":[16]}]]],["p-ec9514f8",[[260,"table-filters-menu",{"params":[8],"clearParams":[16],"anchorButton":[32],"menu":[32],"showClearButton":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]],{"params":["watchParamsHandler"]}]]],["p-a09695c4",[[260,"justifi-details",{"errorMessage":[1,"error-message"]}]]],["p-0af5269e",[[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-edfeb034",[[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-447b55c0",[[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-38668717",[[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-ae8ae5bb",[[256,"form-control-tooltip",{"helpText":[1,"help-text"],"anchorIcon":[32],"tooltip":[32]},[[0,"showEvent","show"],[0,"hideEvent","hide"]]],[260,"custom-popper",{"placement":[1],"offset":[16],"strategy":[1],"trigger":[1],"anchorRef":[16],"isOpen":[32]}]]],["p-2dfbbc7a",[[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"]}],[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-abbe97eb",[[256,"justifi-tokenize-payment-method",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"disableBankAccount":[4,"disable-bank-account"],"disableCreditCard":[4,"disable-credit-card"],"hideBankAccountBillingForm":[4,"hide-bank-account-billing-form"],"hideCardBillingForm":[4,"hide-card-billing-form"],"hideSubmitButton":[4,"hide-submit-button"],"paymentMethodGroupId":[1,"payment-method-group-id"],"submitButtonText":[1,"submit-button-text"],"savePaymentMethodLabel":[1,"save-payment-method-label"],"computedHideSubmitButton":[32],"isLoading":[32],"selectedPaymentMethod":[32],"fillBillingForm":[64],"tokenizePaymentMethod":[64],"validate":[64],"tokenize":[64]},[[0,"radio-click","handleRadioClick"]],{"disableCreditCard":["paymentMethodsChanged"],"disableBankAccount":["paymentMethodsChanged"]}],[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-header",{"text":[1],"level":[1],"class":[1]}],[256,"justifi-modular-checkout",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"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-aeb22aa2",[[256,"bank-account-form-inputs",{"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]}]]],["p-5bd3d86e",[[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-b608add9",[[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-f705fc49",[[256,"form-control-select",{"name":[8],"label":[1],"options":[16],"inputHandler":[16],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}],[256,"form-control-text",{"name":[8],"label":[1],"inputHandler":[16],"defaultValue":[1,"default-value"],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"maxLength":[2,"max-length"],"keyDownHandler":[16],"disabled":[4],"isFocused":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-96694f7d",[[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-c644a9f1",[[256,"justifi-identity-address-form",{"handleFormUpdate":[16],"errors":[8],"defaultValues":[8,"default-values"],"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"]}]]],["p-fbc5fc6d",[[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"],"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"],"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"]}]]],["p-32978110",[[256,"justifi-business-owners-form-step-core",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"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"],"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"],"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"],"formController":[32],"errors":[32],"coreInfo":[32],"isLoading":[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"],"formController":[32],"errors":[32],"legal_address":[32],"isLoading":[32],"validateAndSubmit":[64]}]]],["p-de95bf57",[[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"],"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"],"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"],"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"],"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"],"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"],"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-d4476052",[[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,6 +1,6 @@
1
1
  {
2
2
  "name": "@justifi/webcomponents",
3
- "version": "6.0.6-rc.1",
3
+ "version": "6.0.6-rc.3",
4
4
  "description": "JustiFi Web Components",
5
5
  "collection": "dist/collection/collection-manifest.json",
6
6
  "main": "dist/index.cjs.js",
@@ -1 +0,0 @@
1
- import{h as s,r as t,c as i}from"./p-DOjVAAtq.js";import{A as e}from"./p-DdZLLkQ5.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{c,J as l}from"./p-CoBppUkq.js";import{c as h}from"./p-DGsXKF67.js";import{p,f as d,r as u,j as v}from"./p-Bgnhf5c9.js";import{v as m,i as y,a as f,H as j}from"./p-wQgEEOq_.js";import{D as _,E as g}from"./p-xDbRW9xn.js";import{S as k}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{S as C}from"./p-T2yENPvU.js";import"./p-a6tcNl_T.js";import"./p-DdMxswn1.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BXUY63ga.js";import"./p-DCIW8z1f.js";import"./p-HXpYMWUU.js";const w=e();class b{async fetchQuote(s,t){return w.post({endpoint:"insurance/quotes",body:t,authToken:s})}async toggleCoverage(s,t,i){return w.post({endpoint:`insurance/quotes/${t}/toggle`,body:i,authToken:s})}}const T=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(C,{width:"35%",height:"30px"})),s("div",{class:"col-12"},s(C,{width:"70%"})),s("div",{class:"col-12"},s(C,{width:"40%"})),s("div",{class:"col-12"},s(C,{width:"40%"})),s("div",{class:"col-12"},s(C,{width:"100%"})),s("div",{class:"col-12"},s(C,{width:"80%"}))),D=class{constructor(s){t(this,s),this.insuranceUpdated=i(this,"insurance-updated"),this.errorEvent=i(this,"error-event"),this.isLoading=!0}async validate(){return m()}processHTMLContent(s){return p(s,[s=>u(s,"style"),s=>v(s,"a","part",_),s=>v(s,"p","part",_)])}componentWillLoad(){c(),this.analytics=new l(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeServiceMethods(){const s=this.authToken||h.authToken;if(!s)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const t={authToken:s,service:new b};this.getQuote=(({authToken:s,service:t})=>async({payload:i,onSuccess:e,onError:o})=>{var c;try{const l=await t.fetchQuote(s,i);if(l.error)return o({error:n(l.error),code:a(null===(c=l.error)||void 0===c?void 0:c.code),severity:r.ERROR});e({quote:l.data})}catch(s){const t=a(null==s?void 0:s.code);return o({error:s.message||s,code:t,severity:r.ERROR})}})(t),this.toggleCoverage=(({authToken:s,service:t})=>async({quoteId:i,payload:e,onSuccess:o,onError:c})=>{var l;try{const h=await t.toggleCoverage(s,i,e);if(h.error)return c({error:n(h.error),code:a(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(s){const t=a(null==s?void 0:s.code);return c({error:s.message||s,code:t,severity:r.ERROR})}})(t)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||h.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:s})=>{this.quote=s,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),y[s.policy_type]=s.accepted,this.isLoading=!1},onError:({error:s,code:t,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}onChangeHandler(s,t){this.accepted=t,f[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),y[this.quote.policy_type]=this.accepted},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}get error(){var s;return f[null===(s=this.quote)||void 0===s?void 0:s.policy_type]}render(){var t,i,e,r;return h&&!1===h.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):s(k,null,this.isLoading?s(T,null):s("div",null,s(j,{text:null===(t=this.quote)||void 0===t?void 0:t.product.title,class:"fs-5 fw-bold pb-3"}),s("small",{part:_,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),s("form-control-radio",{label:`Accept coverage for ${d(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:g},"Please select an option"),s("small",{part:_,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{D as justifi_season_interruption_insurance}
@@ -1 +0,0 @@
1
- import{h as s,r as i,c as t}from"./p-DOjVAAtq.js";import{c as r,F as e}from"./p-DiJD6Iqx.js";import{b as o,a}from"./p-C9iide2W.js";import{i as p,a as h}from"./p-tYuXMkCd.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{C as n,a as l}from"./p-Cjcsf8ku.js";import"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import{B as m,b as d}from"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c,J as j}from"./p-CoBppUkq.js";import{B as u}from"./p-C9EQ459H.js";import{S as f}from"./p-BhCH9S0e.js";import{H as v}from"./p-RQzxYnz_.js";import"./p-CZfYo5-1.js";import{S as b}from"./p-T2yENPvU.js";import{B as C}from"./p-XYgDHrVL.js";import{m as g,b as w}from"./p-5aA7gjr5.js";import{B}from"./p-DQZ5VHTZ.js";import"./p-BFTU3MAI.js";import"./p-PSJOKMWp.js";import"./p-BX8GieXu.js";import"./p-yH3TC3ZQ.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-Dt-vy9Le.js";import"./p-BXUY63ga.js";import"./p-DdZLLkQ5.js";import"./p-xDbRW9xn.js";import"./p-D2muobcE.js";const x=r(Object.assign(Object.assign({},o().fields),{legal_address:h(),additional_questions:a(),representative:p("representative")})),y=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(b,{width:"25%"})),s("div",{class:"col-12"},s(b,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"50%"}),s(b,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"65%"}),s(b,{width:"35%"}))),k=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(b,{width:"40%",height:"40px"})),s(y,null),s(y,null),s(y,null)),D=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event"),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.isLoading=!1,this.isSaving=!1,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const i=new m(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new m(Object.assign(Object.assign({},i),s)).payload;this.patchBusiness({payload:t,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){c(),this.analytics=new j(this),this.formController=new e(x),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=g({authToken:this.authToken,businessId:this.businessId,service:new B}),this.patchBusiness=w({authToken:this.authToken,businessId:this.businessId,service:new B}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:l.MISSING_PROPS,severity:n.ERROR})}handleReponse(s){s.error&&(this.errorMessage=d.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(f,null,this.isLoading?s(k,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(v,{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})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController})),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})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(u,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:C.submit}),isLoading:this.isSaving},"Submit")))))}};export{D as justifi_business_form}
@@ -1 +0,0 @@
1
- var e={name:"@justifi/webcomponents",version:"6.0.6-rc.1"};export{e as p}