@justifi/webcomponents 4.19.0 → 4.19.2-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-ff013cbc.js → Analytics-66574423.js} +2 -3
- package/dist/cjs/{business.service-f63650f5.js → business.service-090a21e1.js} +5 -6
- package/dist/cjs/{get-payout-csv-f3aee6d0.js → get-payout-csv-238e839a.js} +3 -4
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +7 -8
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +4 -5
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +4 -5
- package/dist/cjs/justifi-card-form.cjs.entry.js +4 -5
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -4
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +8 -9
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +1 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +5 -6
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -6
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +4 -5
- package/dist/cjs/{package-cb0f8cb1.js → package-0b65a049.js} +2 -4
- package/dist/cjs/{payment.service-0a64f9cd.js → payment.service-c92635c8.js} +2 -3
- package/dist/collection/api/services/analytics.service.js +1 -2
- package/dist/collection/api/services/business.service.js +5 -6
- package/dist/collection/api/services/checkout.service.js +2 -3
- package/dist/collection/api/services/insurance.service.js +2 -3
- package/dist/collection/api/services/payment.service.js +2 -3
- package/dist/collection/api/services/payout.service.js +3 -4
- package/dist/collection/api/services/provision.service.js +2 -4
- package/dist/collection/api/services/reports.service.js +1 -2
- package/dist/collection/components/bank-account-form/bank-account-form.js +3 -4
- package/dist/collection/components/business-forms/business-form/business-form.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -3
- package/dist/collection/components/card-form/card-form.js +3 -4
- package/dist/collection/components/checkout/checkout-core.js +3 -4
- package/dist/collection/components/checkout/new-payment-method.js +3 -4
- package/dist/collection/components/checkout/payment-method-options.js +3 -4
- package/dist/collection/components/checkout/saved-payment-method.js +3 -4
- package/dist/collection/components/checkout/sezzle-payment-method.js +3 -4
- package/dist/collection/components/payment-form/payment-form.js +3 -4
- package/dist/collection/components/refund-form/refund-form.js +2 -3
- package/dist/docs.json +8 -8
- package/dist/esm/{Analytics-33b8fa8d.js → Analytics-6f321899.js} +2 -3
- package/dist/esm/{business.service-74bd1212.js → business.service-37d0cc72.js} +5 -6
- package/dist/esm/{get-payout-csv-b494abfe.js → get-payout-csv-a702a0d9.js} +3 -4
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +7 -8
- package/dist/esm/justifi-bank-account-form.entry.js +4 -5
- package/dist/esm/justifi-business-details.entry.js +3 -4
- package/dist/esm/justifi-business-form.entry.js +4 -5
- package/dist/esm/justifi-card-form.entry.js +4 -5
- package/dist/esm/justifi-checkout-core.entry.js +2 -3
- package/dist/esm/justifi-checkout.entry.js +4 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -4
- package/dist/esm/justifi-new-payment-method_4.entry.js +8 -9
- package/dist/esm/justifi-owner-form_3.entry.js +1 -2
- package/dist/esm/justifi-payment-details.entry.js +3 -4
- package/dist/esm/justifi-payment-form.entry.js +5 -6
- package/dist/esm/justifi-payment-method-form.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -6
- package/dist/esm/justifi-payments-list.entry.js +3 -4
- package/dist/esm/justifi-payout-details.entry.js +3 -4
- package/dist/esm/justifi-payouts-list.entry.js +3 -4
- package/dist/esm/justifi-refund-form.entry.js +2 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -5
- package/dist/esm/{package-3e407c6d.js → package-9f727069.js} +2 -4
- package/dist/esm/{payment.service-3ca4a492.js → payment.service-9359fe15.js} +2 -3
- package/dist/globals.d.ts +2 -0
- package/dist/module/Analytics.js +1 -2
- package/dist/module/business-bank-account-form-step.js +2 -3
- package/dist/module/business-document-upload-form-step.js +2 -3
- package/dist/module/business-terms-conditions-form-step.js +2 -3
- package/dist/module/business.service.js +5 -6
- package/dist/module/checkout-core.js +2 -3
- package/dist/module/get-payout-csv.js +3 -4
- package/dist/module/justifi-bank-account-form.js +2 -3
- package/dist/module/justifi-business-form.js +2 -3
- package/dist/module/justifi-card-form.js +2 -3
- package/dist/module/justifi-checkout.js +2 -3
- package/dist/module/justifi-gross-payment-chart.js +1 -2
- package/dist/module/justifi-payment-form.js +3 -4
- package/dist/module/justifi-payment-provisioning.js +2 -3
- package/dist/module/justifi-refund-form.js +2 -3
- package/dist/module/justifi-season-interruption-insurance.js +2 -3
- package/dist/module/new-payment-method.js +2 -3
- package/dist/module/package.js +2 -4
- package/dist/module/payment-method-options.js +2 -3
- package/dist/module/payment.service.js +2 -3
- package/dist/module/saved-payment-method.js +2 -3
- package/dist/module/sezzle-payment-method.js +2 -3
- package/dist/webcomponents/p-04a61500.entry.js +1 -0
- package/dist/webcomponents/p-0e1bc91e.js +1 -0
- package/dist/webcomponents/{p-301e0493.entry.js → p-14fdc01c.entry.js} +1 -1
- package/dist/webcomponents/p-2b79f265.entry.js +1 -0
- package/dist/webcomponents/p-32211b2f.entry.js +1 -0
- package/dist/webcomponents/p-3352353a.entry.js +1 -0
- package/dist/webcomponents/p-3c6a8a36.entry.js +1 -0
- package/dist/webcomponents/p-47d79529.js +1 -0
- package/dist/webcomponents/p-72d42a01.entry.js +1 -0
- package/dist/webcomponents/p-77cf6f75.entry.js +1 -0
- package/dist/webcomponents/p-7c0002c6.js +1 -0
- package/dist/webcomponents/p-85960c15.entry.js +1 -0
- package/dist/webcomponents/p-8a038cd9.js +1 -0
- package/dist/webcomponents/p-8e7d4df4.entry.js +1 -0
- package/dist/webcomponents/p-b29f5084.entry.js +1 -0
- package/dist/webcomponents/p-b4b8b531.js +1 -0
- package/dist/webcomponents/p-bd2ecd23.entry.js +1 -0
- package/dist/webcomponents/p-c8c3a97d.entry.js +1 -0
- package/dist/webcomponents/p-cd37a87e.entry.js +1 -0
- package/dist/webcomponents/{p-96b42e7d.entry.js → p-d23e1960.entry.js} +1 -1
- package/dist/webcomponents/p-e14c133e.entry.js +1 -0
- package/dist/webcomponents/p-e789152a.entry.js +1 -0
- package/dist/webcomponents/p-ecdf60f6.entry.js +1 -0
- package/dist/webcomponents/p-f117d1d1.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -4
- package/dist/cjs/config-ff2dda66.js +0 -15
- package/dist/config.js +0 -11
- package/dist/esm/config-476c7241.js +0 -13
- package/dist/module/config.js +0 -13
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +0 -11
- package/dist/webcomponents/p-195f92e9.entry.js +0 -1
- package/dist/webcomponents/p-23014988.entry.js +0 -1
- package/dist/webcomponents/p-25dba252.entry.js +0 -1
- package/dist/webcomponents/p-27981600.entry.js +0 -1
- package/dist/webcomponents/p-304dd644.entry.js +0 -1
- package/dist/webcomponents/p-4b4580dd.js +0 -1
- package/dist/webcomponents/p-60a370fc.entry.js +0 -1
- package/dist/webcomponents/p-623a4479.entry.js +0 -1
- package/dist/webcomponents/p-63acf322.js +0 -1
- package/dist/webcomponents/p-6f03b35a.entry.js +0 -1
- package/dist/webcomponents/p-75b4daef.js +0 -1
- package/dist/webcomponents/p-8603348a.js +0 -1
- package/dist/webcomponents/p-8c1e981b.entry.js +0 -1
- package/dist/webcomponents/p-9279aa49.entry.js +0 -1
- package/dist/webcomponents/p-99022846.entry.js +0 -1
- package/dist/webcomponents/p-ae263544.js +0 -1
- package/dist/webcomponents/p-b16dfd5d.entry.js +0 -1
- package/dist/webcomponents/p-bc92235c.entry.js +0 -1
- package/dist/webcomponents/p-c4b87db2.entry.js +0 -1
- package/dist/webcomponents/p-cd7105dd.entry.js +0 -1
- package/dist/webcomponents/p-d101c5db.js +0 -1
- package/dist/webcomponents/p-d1fbeae5.entry.js +0 -1
- package/dist/webcomponents/p-e7067ef2.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as t,h as e,H as i}from"./p-fad19d75.js";import{a,C as n}from"./p-14c91ffd.js";import{m as o,b as h}from"./p-5968ff8a.js";import{B as r}from"./p-0e1bc91e.js";import{c as d,F as c,e as u}from"./p-2eab3c90.js";import{b,a as f}from"./p-d89bad72.js";import{z as l,A as p,i as m,B as v,C as y,D as g,E as k,F as _,G as w,H as j,I as C,J as O,K as T,L as S,M as I}from"./p-89887332.js";import{c as x}from"./p-ba5fae28.js";import{A as L}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{n as A}from"./p-8df7bde8.js";import{B as F}from"./p-af244664.js";import{S as B}from"./p-08b0fb31.js";import{B as E}from"./p-9c9c7dac.js";import"./p-8115b2f4.js";import"./p-6078a370.js";import"./p-1ff8810b.js";const H=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new r}),this.patchBusiness=h({authToken:this.authToken,businessId:this.businessId,service:new r})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-additional-questions-form-step-core",{key:"ede8f1336c69d47c651a5b4b95ee2746aae3aa52",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};class D{constructor(s){this.id=s.id,this.account_owner_name=s.account_owner_name,this.full_name=s.full_name,this.account_type=s.account_type,this.acct_last_four=s.acct_last_four,this.account_number_last4=s.account_number_last4,this.routing_number=s.routing_number,this.bank_name=s.bank_name,this.country=s.country,this.currency=s.currency,this.nickname=s.nickname,this.metadata=s.metadata,this.business_id=s.business_id,this.platform_account_id=s.platform_account_id,this.created_at=s.created_at,this.updated_at=s.updated_at}}const N=class{constructor(e){s(this,e),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get(this.businessEndpoint);this.bankAccount=Object.assign({},new D(s.data.bank_accounts.length>0?s.data.bank_accounts[0]:{})),this.formController.setInitialValues(Object.assign({},this.bankAccount))}catch(s){this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const t=this.formController.values.getValue(),e=Object.assign(Object.assign({},t),{business_id:this.businessId}),i=await this.api.post(this.bankAccountEndpoint,JSON.stringify(e));this.handleResponse(i,s)}catch(s){this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.formController=void 0,this.errors={},this.bankAccount=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get bankAccountEndpoint(){return"entities/bank_accounts"}get formDisabled(){var s;return!!(null===(s=this.bankAccount)||void 0===s?void 0:s.id)}handleResponse(s,t){s.error?this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):t(),this.submitted.emit({data:s,metadata:{completedStep:b.bankAccount}})}async validateAndSubmit({onSuccess:s}){this.formDisabled?s():this.formController.validateAndSubmit((()=>this.sendData(s)))}componentWillLoad(){this.formController=new c((s=>{const t=d({bank_name:l.required("Enter bank name"),nickname:p.required("Enter nickname"),account_owner_name:m.required("Enter account owner name"),account_type:v.required("Select account type"),account_number:y.required("Enter account number"),routing_number:g.required("Enter routing number")}),e=d({bank_name:l.nullable(),nickname:p.nullable(),account_owner_name:m.nullable(),account_type:v.nullable(),account_number:y.nullable(),routing_number:g.nullable()});return s?e:t})(this.allowOptionalFields)),this.api=L({authToken:this.authToken,apiOrigin:""}),this.businessId&&this.authToken&&this.fetchData()}componentDidLoad(){this.formController.values.subscribe((s=>this.bankAccount=Object.assign({},s))),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){const s=this.formController.getInitialValues();return e("form",{key:"bc16efe8af48103ce07d8f5c6ecb040bbb957868"},e("fieldset",{key:"aaada7411cd43e678be3fe14bd60462e39f54527"},e("legend",{key:"165b78cff91b553a37e7f070a40c4941db2929df"},"Bank Account Info"),e("hr",{key:"006315c63bd21554dfa30d763122b9c9f259aba9"}),e("div",{key:"f080fa734567a23c43ee7123bf2718aad5f1efa1",class:"row gy-3"},e("div",{key:"674fab37279d21761f6e588338ebdcdb9e5520aa",class:"col-12"},e("form-control-text",{key:"68f1a9aa2200e204c4db2a36eb5f4f168ab18bab",name:"bank_name",label:"Bank Name",defaultValue:s.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"085f33f93096bd9ecba304715ea1c3ec879396b4",class:"col-12"},e("form-control-text",{key:"c684ee2722f992ed61c51f87fd2c234c7278eb21",name:"nickname",label:"Nickname",defaultValue:s.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"c0afbdb31f2faa8f73158e659b232230099e8b9f",class:"col-12"},e("form-control-text",{key:"3d0e3ca9794beed0c542b6ca18a01eebec48366f",name:"account_owner_name",label:"Account Owner Name",defaultValue:s.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"40fd8191645312efaadc633061451bd744f2a31a",class:"col-12"},e("form-control-select",{key:"40e40cc75dcaf8ef9ba47bdf109eb14798f28436",name:"account_type",label:"Account Type",options:x,defaultValue:s.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"2af9c012bca9d413a5eb5b3b27f685f88137888b",class:"col-12"},e("form-control-text",{key:"6386c601520152cb758dfe30ea7c6a8cdb1b249a",name:"account_number",label:"Account Number",defaultValue:s.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:A,disabled:this.formDisabled})),e("div",{key:"8dac645db4cb8f18f4cdd138a02bc2467d2fcdd4",class:"col-12"},e("form-control-text",{key:"b8abe9231edd0fd07c21c9b3874e8f4f792a1eda",name:"routing_number",label:"Routing Number",defaultValue:s.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:A,disabled:this.formDisabled})))))}},P=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new r}),this.patchBusiness=h({authToken:this.authToken,businessId:this.businessId,service:new r})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-business-core-info-form-step-core",{key:"4ee53046d16fd42df4e09b10c338a740c22184ef",businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},q=class{constructor(e){s(this,e),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.fetchData=async()=>{this.renderState="loading",this.formLoading.emit(!0);try{const s=await this.api.get(this.businessEndpoint);this.business=Object.assign({},new F(s.data)),this.existingDocuments=s.data.documents,this.paymentVolume=s.data.additional_questions.business_payment_volume}catch(s){this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s}),this.renderState="error"}finally{this.initializeFormController(),this.formLoading.emit(!1),this.renderState="success"}},this.initializeFormController=()=>{this.formController=new c(((s,t,e)=>{const i=d({voided_check:k(t,e),government_id:_.nullable(),ss4:w.nullable(),other:j.nullable(),balance_sheet:C(s,t,e),bank_statement:O(s,t,e),profit_and_loss_statement:T(s,t,e)}),a=d({voided_check:k(t,e),government_id:_.nullable(),ss4:w.nullable(),other:j.nullable(),balance_sheet:C(s,t,e),bank_statement:O(s,t,e),profit_and_loss_statement:T(s,t,e)});return e?a:i})(this.paymentVolume,this.existingDocuments,this.allowOptionalFields)),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))},this.createDocumentRecord=async s=>{this.formLoading.emit(!0);const t=s.record_data;try{const e=await this.api.post(this.documentEndpoint,JSON.stringify(t));return this.handleDocRecordResponse(s,e)}catch(s){return this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.message,severity:n.ERROR,data:s}),!1}},this.handleDocRecordResponse=(s,t)=>t.error?(this.errorEvent.emit({errorCode:a.POST_ERROR,message:t.error.message,severity:n.ERROR,data:t.error}),!1):(s.setPresignedUrl(t.data.presigned_url),!0),this.uploadDocument=async s=>{if(!s.presigned_url)throw new Error("Presigned URL is not set");const t=await fetch(s.presigned_url,{method:"PUT",body:s.fileString});return this.handleUploadResponse(t)},this.handleUploadResponse=s=>s.error?(this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}),!1):(this.submitted.emit({data:s,metadata:{completedStep:b.documentUpload}}),!0),this.storeFiles=s=>{const t=Array.from(s.detail.fileList),e=s.detail.document_type,i=t.map((s=>new S({file:s,document_type:e},this.businessId)));this.documentData[e]=i},this.sendData=async s=>{try{const t=Object.values(this.documentData).flat();if(!t.length)return s();const e=t.map((s=>this.createDocumentRecord(s)));if(!await Promise.all(e))return;const i=t.map((s=>this.uploadDocument(s)));if(!await Promise.all(i))return;await s()}finally{this.formLoading.emit(!1)}},this.formController=void 0,this.errors={},this.existingDocuments=[],this.paymentVolume=void 0,this.business=void 0,this.documentData=new I,this.renderState="loading",this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get documentEndpoint(){return"entities/document"}componentWillLoad(){this.api=L({authToken:this.authToken,apiOrigin:""}),this.businessId&&this.authToken&&this.fetchData()}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get isLoading(){return"loading"===this.renderState}get isError(){return"error"===this.renderState}get documentsOnFile(){return this.isError?null:this.isLoading?e(B,{variant:"rounded",height:"50px"}):e("justifi-business-documents-on-file",{documents:this.existingDocuments})}get formInputs(){return this.isError?null:this.isLoading?e(B,{variant:"rounded",height:"350px"}):e("justifi-business-document-upload-input-group",{paymentVolume:this.paymentVolume,inputHandler:this.inputHandler,storeFiles:this.storeFiles,errors:this.errors})}render(){return e("form",{key:"4905c2dacbca9b1390fd7e316993be5d33117ee5"},e("fieldset",{key:"22dc71452b1917be0d9dc237b1ac27739b922e65"},e("legend",{key:"7c705b2b00a13f7fe690b2e5169dd1809934f892"},"Document Uploads"),e("p",{key:"e0ad37456d88496a589c1c79e8e3e9a0fc101577"},"Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."),e("hr",{key:"4ac6afc1c6ce6c6e81d4fcf05ee1c5c58b66f520"}),this.documentsOnFile,e("div",{key:"bf8aa49a47a2d53f5c0a1179474d8dd885a5a363",class:"d-flex flex-column"},this.formInputs)))}},V=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new r}),this.patchBusiness=h({authToken:this.authToken,businessId:this.businessId,service:new r})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e(i,{key:"213a68fd3543eb912c6fed376128ba877ba75871"},e("justifi-business-owners-form-step-core",{key:"5acee797bd35f5b60cadc5ddd50f560532dfe8b1",authToken:this.authToken,businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s}))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},W=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new r}),this.patchBusiness=h({authToken:this.authToken,businessId:this.businessId,service:new r})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-business-representative-form-step-core",{key:"866d8cf33d53eff562dac1d36898b4c5695bf39b",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},M=class{constructor(e){s(this,e),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get(this.businessEndpoint);this.acceptedTermsBefore=s.data.terms_conditions_accepted}catch(s){this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const t=JSON.stringify(this.termsPayload),e=await this.api.post(this.termsConditionsEndpoint,t);this.handleResponse(e,s)}catch(s){this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.formController=void 0,this.errors={},this.acceptedTermsBefore=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get termsConditionsEndpoint(){return"entities/terms_and_conditions"}get formHelperText(){return this.acceptedTermsBefore?"You have already accepted the terms and conditions.":null}get termsPayload(){return{business_id:this.businessId,accepted:this.formController.values.getValue().accepted,user_agent:window.navigator.userAgent}}async componentWillLoad(){this.api=L({authToken:this.authToken,apiOrigin:""}),this.formController=new c((s=>{const t=d({accepted:u().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),e=d({accepted:u().nullable()});return s?e:t})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(s,t){s.error?this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):t(),this.submitted.emit({data:s,metadata:{completedStep:b.termsAndConditions}})}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.submitted.emit({metadata:{completedStep:b.termsAndConditions}}),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){return e("form",{key:"e7eb6730d5b975ae91057a5218ed062a23d3f0ef"},e("fieldset",{key:"9dc69375e2c988dc11c4e76f757bde1fe18febea"},e("legend",{key:"0202cf805071e011f0c087f244c0a43191632b7c"},"Terms and Conditions"),e("hr",{key:"a38e7b058d4269406c929abf4f57ddcdc16aa4fd"}),e("justifi-business-terms-conditions-text",{key:"8b87b016198c87c3c52c3e280353489573aff90c"}),e("br",{key:"6c7107e3975a40e44ba4375025ebea0e811630fe"}),e("div",{key:"3667f0455c95bc0d22472598eb2ca3cd7093b9d5",class:"row-gy-3"},e("div",{key:"1169946dc47b48cd2f8f1a2adfa9ff9b149447f1",class:"col-12"},e("form-control-checkbox",{key:"66942238443b1e27bb3902ddeba0f6fce973b319",name:"accepted",label:"I agree to the terms and conditions",inputHandler:this.inputHandler,errorText:this.errors.accepted,disabled:this.acceptedTermsBefore,helpText:this.formHelperText})))))}},z=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new r}),this.patchBusiness=h({authToken:this.authToken,businessId:this.businessId,service:new r})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-legal-address-form-step-core",{key:"7455b4950e2ca1121004943ad81537c583438738",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},J=class{constructor(t){s(this,t),this.currentStep=void 0,this.totalSteps=void 0,this.formLoading=void 0,this.formDisabled=void 0,this.previousStepButtonOnClick=void 0,this.nextStepButtonOnClick=void 0}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return e("div",{key:"3df3796f2bb35819373564c0002e35d14c85e360",class:"d-flex gap-2"},e(E,{key:"3f8fd4e288b2eed6776c77b44dda816e8a0580cd",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),e(E,{key:"83c7d2405d6e4f88f721a95250aa847a6999a211",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,f.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),e(E,{key:"d87bcdc9bea52b11307e31bd1d99636be05d7156",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,f.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},R=class{constructor(i){s(this,i),this.formCompleted=t(this,"formCompleted",7),this.componentStepMapping={0:()=>e("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields}),1:()=>e("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields}),2:()=>e("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>e("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields}),4:()=>e("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields}),5:()=>e("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),6:()=>e("justifi-business-document-upload-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),7:()=>e("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[7]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields,onSubmitted:()=>this.formCompleted.emit()})},this.businessId=void 0,this.authToken=void 0,this.refs=void 0,this.currentStep=void 0,this.allowOptionalFields=!1,this.handleFormLoading=void 0}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return e("div",{key:"8f02aa3223e38cda70319c127f60e5d2f3c5abe5",class:"col-12 mb-4"},this.currentStepComponent)}};export{H as justifi_additional_questions_form_step,N as justifi_business_bank_account_form_step,P as justifi_business_core_info_form_step,q as justifi_business_document_upload_form_step,V as justifi_business_owners_form_step,W as justifi_business_representative_form_step,M as justifi_business_terms_conditions_form_step,z as justifi_legal_address_form_step,J as justifi_payment_provisioning_form_buttons,R as justifi_payment_provisioning_form_steps}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as a}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{C as t}from"./p-14c91ffd.js";import{g as o,a as r}from"./p-8115b2f4.js";class s{async fetchPayouts(t,o,r){return a({authToken:o,apiOrigin:""}).get(`account/${t}/payouts`,r)}async fetchPayout(t,o){return a({authToken:o,apiOrigin:""}).get(`payouts/${t}`)}async fetchCSV(t,o){return a({authToken:o,apiOrigin:""}).get(`reports/payouts/${t}`)}}const e=({authToken:a,service:s})=>async({payoutId:e,onError:c})=>{try{const{data:t}=await s.fetchCSV(e,a),o=document.createElement("a");o.href=t.csv_url,o.click()}catch(a){c({error:o(a),code:r(null==a?void 0:a.code),severity:t.ERROR})}};export{s as P,e as m}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-fad19d75.js";import{P as i}from"./p-47d79529.js";import"./p-56f6ce4c.js";import{P as r}from"./p-df21aaad.js";import"./p-e3fab0e2.js";import{C as o,a}from"./p-14c91ffd.js";import{g as n,a as h}from"./p-8115b2f4.js";import{E as p}from"./p-dce846bf.js";import{J as c}from"./p-8a038cd9.js";import"./p-29c0b182.js";import"./p-7c0002c6.js";const d=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event",7),this.paymentService=new i,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.paymentId=void 0,this.authToken=void 0,this.getPaymentDetails=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new c(this),this.initializeGetPaymentDetails()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=(({id:t,authToken:s,service:e})=>async({onSuccess:i,onError:a})=>{var p;try{const c=await e.fetchPayment(t,s);c.error?a({error:n(c.error),code:h(null===(p=c.error)||void 0===p?void 0:p.code),severity:o.ERROR}):i({payment:new r(c.data)})}catch(t){const s=h(null==t?void 0:t.code);a({error:n(t),code:s,severity:o.ERROR})}})({id:this.paymentId,authToken:this.authToken,service:new i}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?p(this.errorMessage):e("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_payment_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i,H as r}from"./p-fad19d75.js";import{t as o}from"./p-2b6c9c4f.js";import{m as e,P as a}from"./p-b4b8b531.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import{P as n}from"./p-e3fab0e2.js";import{C as c,a as h}from"./p-14c91ffd.js";import{g as p,a as d}from"./p-8115b2f4.js";import{E as u}from"./p-dce846bf.js";import{J as m}from"./p-8a038cd9.js";import"./p-29c0b182.js";import"./p-7c0002c6.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.accountId=void 0,this.authToken=void 0,this.getPayouts=void 0,this.getPayoutCSV=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new m(this),this.initializeServices()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeServices()}initializeServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new a};this.getPayouts=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:o,onError:e})=>{var a,h;try{const u=await i.fetchPayouts(t,s,r);if(u.error)return e({error:p(u.error),code:d(null===(h=u.error)||void 0===h?void 0:h.code),severity:c.ERROR});{const t=Object.assign({},u.page_info);o({payouts:(null===(a=u.data)||void 0===a?void 0:a.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){return e({error:p(t),code:d(null==t?void 0:t.code),severity:c.ERROR})}})(t),this.getPayoutCSV=e(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:"Account ID and Auth Token are required"})}render(){return this.errorMessage?u(this.errorMessage):i(r,{exportedparts:o},i("payouts-list-core",{getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleOnError}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payouts_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,c as r,h as t}from"./p-fad19d75.js";import{c as i,d as a,F as e}from"./p-2eab3c90.js";import{A as s}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{C as d}from"./p-525db3e8.js";import{S as n}from"./p-ba4bae6f.js";const b=i().shape({amount:a().required("Amount is required").typeError("Amount must be a number").positive("Amount must be positive").test("amount","Refund amount cannot be more than the original payment amount",(function(o){return o<=this.options.context.amount})).nullable()}),c=class{constructor(t){o(this,t),this.submitted=r(this,"submitted",7),this.authToken=void 0,this.paymentId=void 0,this.amount=0,this.submitButtonText="Submit",this.withButton=void 0,this.refundInfoText=void 0,this.errors={},this.isSubmitting=!1}componentWillLoad(){this.formController=new e(b),this.formController.setInitialValues({amount:this.amount,message:""}),this.initializeApi()}componentDidLoad(){this.formController.errors.subscribe((o=>{this.errors=Object.assign({},o)}))}async handleSubmit(o){o.preventDefault(),this.formController.validateAndSubmit(this.submitRefund.bind(this),{amount:this.amount})}async submitRefund(){this.isSubmitting=!0;const o=this.formController.values.getValue();try{await this.api.post(`payments/${this.paymentId}/refunds`,o),this.submitted.emit(o)}catch(o){console.error("Error submitting refund:",o),this.submitted.emit(o)}finally{this.isSubmitting=!1}}handleInput(o,r){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[o]:r}))}initializeApi(){this.authToken||console.warn("Warning: Missing auth-token."),this.api=s({authToken:this.authToken,apiOrigin:""})}render(){var o;return t(n,{key:"8d31f1a9bf936c9e11f8eca1dc55e614b9fa5939"},t("h1",{key:"be589740535ee8a5ab6d4af7151d7ae026f08002"},"Refund"),this.refundInfoText&&t("div",{key:"b1d40507dec53bac422f99a3d62678c78c0c2038",class:"d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3",role:"alert"},t("img",{key:"cc76014eef0d826bec5ec09355dc5fc747fd2070",src:"/info-icon.svg",alt:"Information",height:"30",width:"30"}),t("p",{key:"c2efa0f2acdf3faaa6e2974d0535f48799e3cbbd",class:"m-0",innerHTML:this.refundInfoText})),t("form",{key:"68220114781378f6507651414c87532171bebb31",onSubmit:o=>this.handleSubmit(o),class:"d-grid gap-4"},t("div",{key:"075545e9837316fe160760e0dba9a5104654dd2b",class:"form-group"},t("form-control-monetary",{key:"c8ff8a822d2b74b2f80b33cd6cd2b42ceebbff11",name:"amount",label:"Refund Amount",defaultValue:(null===(o=this.amount)||void 0===o?void 0:o.toString())||"",maskOptions:d.DECIMAL,inputHandler:(o,r)=>this.handleInput(o,r),errorText:this.errors.amount})),t("div",{key:"92093284e763466be5138ea6d788145d5d47bd87",class:"form-group"},t("form-control-text",{key:"ddf9e221d43d84ad7436261c5755e673224aa82e",name:"notes",label:"Additional Notes",inputHandler:(o,r)=>this.handleInput(o,r),errorText:this.errors.notes})),this.withButton&&t("div",{key:"58abbbabce09d82da4032ef0e08e6cfac1433153",class:"form-group d-flex flex-row-reverse"},t("button",{key:"3e703ef633e0d45ba70425dc6d58bcd2d590ce1b",type:"submit",disabled:!!this.isSubmitting,class:"btn btn-primary ml-auto"},this.submitButtonText))))}};c.style=":host{display:block}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}.btn{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.btn:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.btn:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}";export{c as justifi_refund_form}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as n,h as o,H as i}from"./p-fad19d75.js";import{p as t}from"./p-4b4580dd.js";import{m as r}from"./p-83125497.js";var a,s={exports:{}};a=s,console.info("\nIFRAME-RESIZER\n\nIframe-Resizer 5 is now available via the following two packages:\n\n * @iframe-resizer/parent\n * @iframe-resizer/child\n\nAdditionally their are also new versions of iframe-resizer for React, Vue, and jQuery.\n\nVersion 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.\n\nPlease see https://iframe-resizer.com/upgrade for more details.\n"),function(e){if("undefined"!=typeof window){var n,o,i=0,t=!1,r=!1,s=7,c="[iFrameSizer]",d=c.length,f=null,u=window.requestAnimationFrame,l=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),m={},h=null,w=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){z("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),b={};window.jQuery!==e&&((o=window.jQuery).fn?o.fn.iFrameResize||(o.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,o){H(o,e)})).end()}):k("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof e&&e.amd?e([],q):a.exports=q(),window.iFrameResize=window.iFrameResize||q()}function g(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function p(e,n,o){e.addEventListener(n,o,!1)}function y(e,n,o){e.removeEventListener(n,o,!1)}function v(e){return m[e]?m[e].log:t}function j(e,n){x("log",e,n,v(e))}function k(e,n){x("info",e,n,v(e))}function z(e,n){x("warn",e,n,!0)}function x(e,n,o,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return c+"["+function(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}(e)+"]"}(n),o)}function F(e){function n(){o("Height"),o("Width"),E((function(){W(L),R(V),h("onResized",L)}),L,"init")}function o(e){var n=Number(m[V]["max"+e]),o=Number(m[V]["min"+e]),i=e.toLowerCase(),t=Number(L[i]);j(V,"Checking "+i+" is in range "+o+"-"+n),t<o&&(t=o,j(V,"Set "+i+" to min value")),t>n&&(t=n,j(V,"Set "+i+" to max value")),L[i]=""+t}function i(e){return H.slice(H.indexOf(":")+s+e)}function t(e,n){var o,i;o=function(){var o,i;N("Send Page Info","pageInfo:"+(o=document.body.getBoundingClientRect(),i=L.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-o.top,10),offsetLeft:parseInt(i.left-o.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},b[i=n]||(b[i]=setTimeout((function(){b[i]=null,o()}),32))}function r(e){var n=e.getBoundingClientRect();return O(V),{x:Math.floor(Number(n.left)+Number(f.x)),y:Math.floor(Number(n.top)+Number(f.y))}}function a(e){var n=e?r(L.iframe):{x:0,y:0},o={x:Number(L.width)+n.x,y:Number(L.height)+n.y};j(V,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(f=o,u(),j(V,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](o.x,o.y):z(V,"Unable to scroll to requested position, window.parentIFrame not found")}function u(){!1===h("onScroll",f)?T():R(V)}function l(e){var n={};if(0===Number(L.width)&&0===Number(L.height)){var o=i(9).split(":");n={x:o[1],y:o[0]}}else n={x:L.width,y:L.height};h(e,{iframe:L.iframe,screenX:Number(n.x),screenY:Number(n.y),type:L.type})}function h(e,n){return M(V,e,n)}var w,g,v,x,F,I,H=e.data,L={},V=null;"[iFrameResizerChild]Ready"===H?function(){for(var e in m)N("iFrame requested init",A(e),m[e].iframe,e)}():c===(""+H).slice(0,d)&&H.slice(d).split(":")[0]in m?(x=(v=H.slice(d).split(":"))[1]?parseInt(v[1],10):0,F=m[v[0]]&&m[v[0]].iframe,I=getComputedStyle(F),L={iframe:F,id:v[0],height:x+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(I)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(I),width:v[2],type:v[3]},m[V=L.id]&&(m[V].loaded=!0),(g=L.type in{true:1,false:1,undefined:1})&&j(V,"Ignoring init message from meta parent page"),!g&&function(e){var n=!0;return m[e]||(n=!1,z(L.type+" No settings for "+e+". Message was: "+H)),n}(V)&&(j(V,"Received: "+H),w=!0,null===L.iframe&&(z(V,"IFrame ("+L.id+") not found"),w=!1),w&&function(){var n,o=e.origin,i=m[V]&&m[V].checkOrigin;if(i&&""+o!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(j(V,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===o){n=!0;break}return n}():(j(V,"Checking connection is from: "+(n=m[V]&&m[V].remoteHost)),o===n)))throw new Error("Unexpected message received from: "+o+" for "+L.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(m[V]&&m[V].firstRun&&m[V]&&(m[V].firstRun=!1),L.type){case"close":S(L.iframe);break;case"message":d=i(6),j(V,"onMessage passed: {iframe: "+L.iframe.id+", message: "+d+"}"),h("onMessage",{iframe:L.iframe,message:JSON.parse(d)}),j(V,"--");break;case"mouseenter":l("onMouseEnter");break;case"mouseleave":l("onMouseLeave");break;case"autoResize":m[V].autoResize=JSON.parse(i(9));break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":t(m[V]&&m[V].iframe,V),function(){function e(e,i){function r(){m[o]?t(m[o].iframe,o):n()}["scroll","resize"].forEach((function(n){j(o,e+n+" listener for sendPageInfo"),i(window,n,r)}))}function n(){e("Remove ",y)}var o=V;e("Add ",p),m[o]&&(m[o].stopPageInfo=n)}();break;case"pageInfoStop":m[V]&&m[V].stopPageInfo&&(m[V].stopPageInfo(),delete m[V].stopPageInfo);break;case"inPageLink":o=i(9).split("#")[1]||"",s=decodeURIComponent(o),(c=document.getElementById(s)||document.getElementsByName(s)[0])?(e=r(c),j(V,"Moving to in page link (#"+o+") at x: "+e.x+" y: "+e.y),f={x:e.x,y:e.y},u(),j(V,"--")):window.top===window.self?j(V,"In page link #"+o+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(o):j(V,"In page link #"+o+" not found and window.parentIFrame not found");break;case"reset":C(L);break;case"init":n(),h("onInit",L.iframe);break;default:0===Number(L.width)&&0===Number(L.height)?z("Unsupported message received ("+L.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,o,s,c,d}())):k(V,"Ignored: "+H)}function M(e,n,o){var i=null,t=null;if(m[e]){if("function"!=typeof(i=m[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");t=i(o)}return t}function I(e){delete m[e.id]}function S(e){var o=e.id;if(!1!==M(o,"onClose",o)){j(o,"Removing iFrame: "+o);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){z(e)}M(o,"onClosed",o),j(o,"--"),I(e),n&&(n.disconnect(),n=null)}else j(o,"Close iframe cancelled by onClose event")}function O(n){null===f&&j(n,"Get page position: "+(f={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}).x+","+f.y)}function R(e){null!==f&&(window.scrollTo(f.x,f.y),j(e,"Set page position: "+f.x+","+f.y),T())}function T(){f=null}function C(e){j(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),O(e.id),E((function(){W(e),N("reset","reset",e.iframe,e.id)}),e,"reset")}function W(e){function n(n){r||"0"!==e[n]||(r=!0,j(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(m).forEach((function(e){!function(e){function n(n){return"0px"===(m[e]&&m[e].iframe.style[n])}m[e]&&null!==m[e].iframe.offsetParent&&(n("height")||n("width"))&&N("Visibility change","resize",m[e].iframe,e)}(e)}))}function n(n){j("window","Mutation observed: "+n[0].target+" "+n[0].type),L(e,16)}var o,i=g();i&&(o=document.querySelector("body"),new i(n).observe(o,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function o(o){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",j(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")):j("undefined","messageData id not set")}(o),n(o)}var i=e.iframe.id;m[i]&&(m[i].sizeHeight&&o("height"),m[i].sizeWidth&&o("width"))}function E(e,n,o){o!==n.type&&u&&!window.jasmine?(j(n.id,"Requesting animation frame"),u(e)):e()}function N(e,n,o,i,t){var r,a=!1;m[i=i||o.id]&&(o&&"contentWindow"in o&&null!==o.contentWindow?(j(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+(r=m[i]&&m[i].targetOrigin)),o.contentWindow.postMessage(c+n,r)):z(i,"["+e+"] IFrame("+i+") not found"),t&&m[i]&&m[i].warningTimeout&&(m[i].msgTimeout=setTimeout((function(){!m[i]||m[i].loaded||a||(a=!0,z(i,"IFrame has not responded within "+m[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),m[i].warningTimeout)))}function A(e){return e+":"+m[e].bodyMarginV1+":"+m[e].sizeWidth+":"+m[e].log+":"+m[e].interval+":"+m[e].enablePublicMethods+":"+m[e].autoResize+":"+m[e].bodyMargin+":"+m[e].heightCalculationMethod+":"+m[e].bodyBackground+":"+m[e].bodyPadding+":"+m[e].tolerance+":"+m[e].inPageLinks+":"+m[e].resizeFrom+":"+m[e].widthCalculationMethod+":"+m[e].mouseEvents}function H(o,r){function a(e){var n=e.split("Callback");if(2===n.length){var o="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[o]=this[e],delete this[e],z(d,"Deprecated: '"+e+"' has been renamed '"+o+"'. The old method will be removed in the next major version.")}}var s,c,d=function(e){if("string"!=typeof e)throw new TypeError("Invaild id for iFrame. Expected String");var n;return""===e&&(o.id=(n=r&&r.id||w.id+i++,null!==document.getElementById(n)&&(n+=i++),e=n),t=(r||{}).log,j(e,"Added missing iframe ID: "+e+" ("+o.src+")")),e}(o.id);d in m&&"iFrameResizer"in o?z(d,"Ignored iFrame, already setup."):(function(e){var n;e=e||{},m[d]=Object.create(null),m[d].iframe=o,m[d].firstRun=!0,m[d].remoteHost=o.src&&o.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(a,e),function(e){for(var n in w)Object.prototype.hasOwnProperty.call(w,n)&&(m[d][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:w[n])}(e),m[d]&&(m[d].targetOrigin=!0===m[d].checkOrigin?""===(n=m[d].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(r),function(){switch(j(d,"IFrame scrolling "+(m[d]&&m[d].scrolling?"enabled":"disabled")+" for "+d),o.style.overflow=!1===(m[d]&&m[d].scrolling)?"hidden":"auto",m[d]&&m[d].scrolling){case"omit":break;case!0:o.scrolling="yes";break;case!1:o.scrolling="no";break;default:o.scrolling=m[d]?m[d].scrolling:"no"}}(),function(){function e(e){var n=m[d][e];1/0!==n&&0!==n&&(o.style[e]="number"==typeof n?n+"px":n,j(d,"Set "+e+" = "+o.style[e]))}function n(e){if(m[d]["min"+e]>m[d]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(m[d]&&m[d].bodyMargin)&&"0"!==(m[d]&&m[d].bodyMargin)||(m[d].bodyMarginV1=m[d].bodyMargin,m[d].bodyMargin=m[d].bodyMargin+"px"),s=A(d),(c=g())&&(n=function(e){if(!o.parentNode)return null;var n=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===o&&S(o)}))}))}));return n.observe(o.parentNode,{childList:!0}),n}(c)),p(o,"load",(function(){N("iFrame.onload",s,o,e,!0),(!m[d]||!m[d].firstRun)&&m[d]&&m[d].heightCalculationMethod in l&&C({iframe:o,height:0,width:0,type:"init"})})),N("init",s,o,e,!0),m[d]&&(m[d].iframe.iFrameResizer={close:S.bind(null,m[d].iframe),removeListeners:I.bind(null,m[d].iframe),resize:N.bind(null,"Window resize","resize",m[d].iframe),moveToAnchor:function(e){N("Move to anchor","moveToAnchor:"+e,m[d].iframe,d)},sendMessage:function(e){N("Send Message","message:"+(e=JSON.stringify(e)),m[d].iframe,d)}}))}function L(e,n){null===h&&(h=setTimeout((function(){h=null,e()}),n))}function V(){"hidden"!==document.visibilityState&&(j("document","Trigger event: Visibility change"),L((function(){P("Tab Visible","resize")}),16))}function P(e,n){Object.keys(m).forEach((function(o){(function(e){return m[e]&&"parent"===m[e].resizeFrom&&m[e].autoResize&&!m[e].firstRun})(o)&&N(e,n,m[o].iframe,o)}))}function q(){function n(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),H(n,e),o.push(n))}var o;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!u;e+=1)u=window[n[e]+"RequestAnimationFrame"];u?u=u.bind(window):j("setup","RequestAnimationFrame not supported")}(),p(window,"message",F),p(window,"resize",(function(){j("window","Trigger event: resize"),L((function(){P("Window resize","resize")}),16)})),p(document,"visibilitychange",V),p(document,"-webkit-visibilitychange",V),function(i,t){switch(o=[],function(e){e&&e.enablePublicMethods&&z("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof t){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(t||"iframe"),n.bind(e,i));break;case"object":n(i,t);break;default:throw new TypeError("Unexpected data type ("+typeof t+")")}return o}}}();const c=s.exports,d={card:{ready:"justifi.card.ready",tokenize:"justifi.card.tokenize",validate:"justifi.card.validate",resize:"justifi.card.resize",styleOverrides:"justifi.card.styleOverrides"},bankAccount:{ready:"justifi.bankAccount.ready",tokenize:"justifi.bankAccount.tokenize",validate:"justifi.bankAccount.validate",resize:"justifi.bankAccount.resize",styleOverrides:"justifi.bankAccount.styleOverrides"}};class f{constructor(e,n){this.iframe=e,this.iframeOrigin=n}postMessage(e,n){const o=Object.assign({eventType:e},n);this.iframe.contentWindow.postMessage(o,this.iframeOrigin)}addMessageListener(e){window.addEventListener("message",e)}removeMessageListener(e){window.removeEventListener("message",e)}postMessageWithResponseListener(e,n){return new Promise((o=>{const i=n=>{n.data.eventType===e&&(window.removeEventListener("message",i),o(n.data.data))};window.addEventListener("message",i),this.postMessage(e,n)}))}}const u=class{constructor(o){e(this,o),this.paymentMethodFormReady=n(this,"paymentMethodFormReady",7),this.paymentMethodFormValidated=n(this,"paymentMethodFormValidated",7),this.paymentMethodFormTokenized=n(this,"paymentMethodFormTokenized",7),this.computedTheme=(()=>{const e=getComputedStyle(document.body);return{loadGoogleFont:e.getPropertyValue("--jfi-load-google-font"),layout:{fontFamily:e.getPropertyValue("--jfi-layout-font-family"),padding:e.getPropertyValue("--jfi-layout-padding"),formControlSpacingHorizontal:e.getPropertyValue("--jfi-layout-form-control-spacing-x"),formControlSpacingVertical:e.getPropertyValue("--jfi-layout-form-control-spacing-y")},formControl:{backgroundColor:e.getPropertyValue("--jfi-form-control-background-color"),borderColor:e.getPropertyValue("--jfi-form-control-border-color"),borderColorFocus:e.getPropertyValue("--jfi-form-control-border-color-focus"),borderColorError:e.getPropertyValue("--jfi-form-control-border-color-error"),borderWidth:e.getPropertyValue("--jfi-form-control-border-width"),borderBottomWidth:e.getPropertyValue("--jfi-form-control-border-bottom-width"),borderLeftWidth:e.getPropertyValue("--jfi-form-control-border-left-width"),borderRightWidth:e.getPropertyValue("--jfi-form-control-border-right-width"),borderTopWidth:e.getPropertyValue("--jfi-form-control-border-top-width"),borderRadius:e.getPropertyValue("--jfi-form-control-border-radius"),borderStyle:e.getPropertyValue("--jfi-form-control-border-style"),boxShadow:e.getPropertyValue("--jfi-form-control-box-shadow"),boxShadowError:e.getPropertyValue("--jfi-form-control-box-shadow-error"),boxShadowErrorFocus:e.getPropertyValue("--jfi-form-control-box-shadow-error-focus"),boxShadowFocus:e.getPropertyValue("--jfi-form-control-box-shadow-focus"),color:e.getPropertyValue("--jfi-form-control-color"),colorFocus:e.getPropertyValue("--jfi-form-control-color-focus"),fontSize:e.getPropertyValue("--jfi-form-control-font-size"),fontWeight:e.getPropertyValue("--jfi-form-control-font-weight"),lineHeight:e.getPropertyValue("--jfi-form-control-line-height"),margin:e.getPropertyValue("--jfi-form-control-margin"),padding:e.getPropertyValue("--jfi-form-control-padding")},formLabel:{color:e.getPropertyValue("--jfi-form-label-color"),fontFamily:e.getPropertyValue("--jfi-form-label-font-family"),fontSize:e.getPropertyValue("--jfi-form-label-font-size"),fontWeight:e.getPropertyValue("--jfi-form-label-font-weight"),margin:e.getPropertyValue("--jfi-form-label-margin")},errorMessage:{color:e.getPropertyValue("--jfi-error-message-color"),margin:e.getPropertyValue("--jfi-error-message-margin"),fontSize:e.getPropertyValue("--jfi-error-message-font-size")}}})(),this.dispatchMessageEvent=e=>{const{eventType:n,data:o}=e.data,i=d[this.paymentMethodFormType];n===i.ready?(this.paymentMethodFormReady.emit(o),this.sendStyleOverrides()):n===i.tokenize?this.paymentMethodFormTokenized.emit(o):n===i.validate&&this.paymentMethodFormValidated.emit(o)},this.postMessage=(e,n)=>{this.frameService.postMessage(e,n)},this.paymentMethodFormType=void 0,this.paymentMethodFormValidationMode=void 0,this.iframeOrigin=void 0,this.singleLine=void 0}disconnectedCallback(){this.frameService.removeMessageListener(this.dispatchMessageEvent)}async resize(){this.postMessage(d[this.paymentMethodFormType].resize)}async tokenize(e,n,o){return this.frameService.postMessageWithResponseListener(d[this.paymentMethodFormType].tokenize,{clientId:e,paymentMethodMetadata:n,account:o,componentVersion:t.version})}async validate(){return this.frameService.postMessageWithResponseListener(d[this.paymentMethodFormType].validate)}sendStyleOverrides(){this.computedTheme&&this.postMessage(d[this.paymentMethodFormType].styleOverrides,{styleOverrides:this.computedTheme})}getIframeSrc(){let e=[];return this.paymentMethodFormValidationMode&&e.push(`validationMode=${this.paymentMethodFormValidationMode}`),this.singleLine&&e.push(`singleLine=${this.singleLine}`),`${this.iframeOrigin}/${this.paymentMethodFormType}${r(e)}`}initializeFrameCommunicationService(){var e;this.frameService=new f(this.iframeElement,this.iframeOrigin),null===(e=this.frameService)||void 0===e||e.addMessageListener(this.dispatchMessageEvent)}render(){return o(i,{key:"10987c92745fbff8bb85367db69b76e2bc786c88"},o("iframe",{key:"0622dd0201a04a3c918fd3d175d2a29f24609759",id:`justifi-payment-method-form-${this.paymentMethodFormType}`,src:this.getIframeSrc(),ref:e=>{this.iframeElement=e,this.initializeFrameCommunicationService()},onLoad:()=>{c({scrollbars:!1},this.iframeElement)}}))}};u.style=":host{display:block}justifi-payment-method-form iframe{border:none;width:100%}iframe{width:1px;min-width:100%}";export{u as justifi_payment_method_form}
|
|
1
|
+
import{r as e,c as n,h as o,H as i}from"./p-fad19d75.js";import{p as t}from"./p-7c0002c6.js";import{m as r}from"./p-83125497.js";var a,s={exports:{}};a=s,console.info("\nIFRAME-RESIZER\n\nIframe-Resizer 5 is now available via the following two packages:\n\n * @iframe-resizer/parent\n * @iframe-resizer/child\n\nAdditionally their are also new versions of iframe-resizer for React, Vue, and jQuery.\n\nVersion 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.\n\nPlease see https://iframe-resizer.com/upgrade for more details.\n"),function(e){if("undefined"!=typeof window){var n,o,i=0,t=!1,r=!1,s=7,c="[iFrameSizer]",d=c.length,f=null,u=window.requestAnimationFrame,l=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),m={},h=null,w=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){z("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),b={};window.jQuery!==e&&((o=window.jQuery).fn?o.fn.iFrameResize||(o.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,o){H(o,e)})).end()}):k("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof e&&e.amd?e([],q):a.exports=q(),window.iFrameResize=window.iFrameResize||q()}function g(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function p(e,n,o){e.addEventListener(n,o,!1)}function y(e,n,o){e.removeEventListener(n,o,!1)}function v(e){return m[e]?m[e].log:t}function j(e,n){x("log",e,n,v(e))}function k(e,n){x("info",e,n,v(e))}function z(e,n){x("warn",e,n,!0)}function x(e,n,o,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return c+"["+function(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}(e)+"]"}(n),o)}function F(e){function n(){o("Height"),o("Width"),E((function(){W(L),R(V),h("onResized",L)}),L,"init")}function o(e){var n=Number(m[V]["max"+e]),o=Number(m[V]["min"+e]),i=e.toLowerCase(),t=Number(L[i]);j(V,"Checking "+i+" is in range "+o+"-"+n),t<o&&(t=o,j(V,"Set "+i+" to min value")),t>n&&(t=n,j(V,"Set "+i+" to max value")),L[i]=""+t}function i(e){return H.slice(H.indexOf(":")+s+e)}function t(e,n){var o,i;o=function(){var o,i;N("Send Page Info","pageInfo:"+(o=document.body.getBoundingClientRect(),i=L.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-o.top,10),offsetLeft:parseInt(i.left-o.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},b[i=n]||(b[i]=setTimeout((function(){b[i]=null,o()}),32))}function r(e){var n=e.getBoundingClientRect();return O(V),{x:Math.floor(Number(n.left)+Number(f.x)),y:Math.floor(Number(n.top)+Number(f.y))}}function a(e){var n=e?r(L.iframe):{x:0,y:0},o={x:Number(L.width)+n.x,y:Number(L.height)+n.y};j(V,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(f=o,u(),j(V,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](o.x,o.y):z(V,"Unable to scroll to requested position, window.parentIFrame not found")}function u(){!1===h("onScroll",f)?T():R(V)}function l(e){var n={};if(0===Number(L.width)&&0===Number(L.height)){var o=i(9).split(":");n={x:o[1],y:o[0]}}else n={x:L.width,y:L.height};h(e,{iframe:L.iframe,screenX:Number(n.x),screenY:Number(n.y),type:L.type})}function h(e,n){return M(V,e,n)}var w,g,v,x,F,I,H=e.data,L={},V=null;"[iFrameResizerChild]Ready"===H?function(){for(var e in m)N("iFrame requested init",A(e),m[e].iframe,e)}():c===(""+H).slice(0,d)&&H.slice(d).split(":")[0]in m?(x=(v=H.slice(d).split(":"))[1]?parseInt(v[1],10):0,F=m[v[0]]&&m[v[0]].iframe,I=getComputedStyle(F),L={iframe:F,id:v[0],height:x+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(I)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(I),width:v[2],type:v[3]},m[V=L.id]&&(m[V].loaded=!0),(g=L.type in{true:1,false:1,undefined:1})&&j(V,"Ignoring init message from meta parent page"),!g&&function(e){var n=!0;return m[e]||(n=!1,z(L.type+" No settings for "+e+". Message was: "+H)),n}(V)&&(j(V,"Received: "+H),w=!0,null===L.iframe&&(z(V,"IFrame ("+L.id+") not found"),w=!1),w&&function(){var n,o=e.origin,i=m[V]&&m[V].checkOrigin;if(i&&""+o!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(j(V,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===o){n=!0;break}return n}():(j(V,"Checking connection is from: "+(n=m[V]&&m[V].remoteHost)),o===n)))throw new Error("Unexpected message received from: "+o+" for "+L.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(m[V]&&m[V].firstRun&&m[V]&&(m[V].firstRun=!1),L.type){case"close":S(L.iframe);break;case"message":d=i(6),j(V,"onMessage passed: {iframe: "+L.iframe.id+", message: "+d+"}"),h("onMessage",{iframe:L.iframe,message:JSON.parse(d)}),j(V,"--");break;case"mouseenter":l("onMouseEnter");break;case"mouseleave":l("onMouseLeave");break;case"autoResize":m[V].autoResize=JSON.parse(i(9));break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":t(m[V]&&m[V].iframe,V),function(){function e(e,i){function r(){m[o]?t(m[o].iframe,o):n()}["scroll","resize"].forEach((function(n){j(o,e+n+" listener for sendPageInfo"),i(window,n,r)}))}function n(){e("Remove ",y)}var o=V;e("Add ",p),m[o]&&(m[o].stopPageInfo=n)}();break;case"pageInfoStop":m[V]&&m[V].stopPageInfo&&(m[V].stopPageInfo(),delete m[V].stopPageInfo);break;case"inPageLink":o=i(9).split("#")[1]||"",s=decodeURIComponent(o),(c=document.getElementById(s)||document.getElementsByName(s)[0])?(e=r(c),j(V,"Moving to in page link (#"+o+") at x: "+e.x+" y: "+e.y),f={x:e.x,y:e.y},u(),j(V,"--")):window.top===window.self?j(V,"In page link #"+o+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(o):j(V,"In page link #"+o+" not found and window.parentIFrame not found");break;case"reset":C(L);break;case"init":n(),h("onInit",L.iframe);break;default:0===Number(L.width)&&0===Number(L.height)?z("Unsupported message received ("+L.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,o,s,c,d}())):k(V,"Ignored: "+H)}function M(e,n,o){var i=null,t=null;if(m[e]){if("function"!=typeof(i=m[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");t=i(o)}return t}function I(e){delete m[e.id]}function S(e){var o=e.id;if(!1!==M(o,"onClose",o)){j(o,"Removing iFrame: "+o);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){z(e)}M(o,"onClosed",o),j(o,"--"),I(e),n&&(n.disconnect(),n=null)}else j(o,"Close iframe cancelled by onClose event")}function O(n){null===f&&j(n,"Get page position: "+(f={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}).x+","+f.y)}function R(e){null!==f&&(window.scrollTo(f.x,f.y),j(e,"Set page position: "+f.x+","+f.y),T())}function T(){f=null}function C(e){j(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),O(e.id),E((function(){W(e),N("reset","reset",e.iframe,e.id)}),e,"reset")}function W(e){function n(n){r||"0"!==e[n]||(r=!0,j(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(m).forEach((function(e){!function(e){function n(n){return"0px"===(m[e]&&m[e].iframe.style[n])}m[e]&&null!==m[e].iframe.offsetParent&&(n("height")||n("width"))&&N("Visibility change","resize",m[e].iframe,e)}(e)}))}function n(n){j("window","Mutation observed: "+n[0].target+" "+n[0].type),L(e,16)}var o,i=g();i&&(o=document.querySelector("body"),new i(n).observe(o,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function o(o){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",j(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")):j("undefined","messageData id not set")}(o),n(o)}var i=e.iframe.id;m[i]&&(m[i].sizeHeight&&o("height"),m[i].sizeWidth&&o("width"))}function E(e,n,o){o!==n.type&&u&&!window.jasmine?(j(n.id,"Requesting animation frame"),u(e)):e()}function N(e,n,o,i,t){var r,a=!1;m[i=i||o.id]&&(o&&"contentWindow"in o&&null!==o.contentWindow?(j(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+(r=m[i]&&m[i].targetOrigin)),o.contentWindow.postMessage(c+n,r)):z(i,"["+e+"] IFrame("+i+") not found"),t&&m[i]&&m[i].warningTimeout&&(m[i].msgTimeout=setTimeout((function(){!m[i]||m[i].loaded||a||(a=!0,z(i,"IFrame has not responded within "+m[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),m[i].warningTimeout)))}function A(e){return e+":"+m[e].bodyMarginV1+":"+m[e].sizeWidth+":"+m[e].log+":"+m[e].interval+":"+m[e].enablePublicMethods+":"+m[e].autoResize+":"+m[e].bodyMargin+":"+m[e].heightCalculationMethod+":"+m[e].bodyBackground+":"+m[e].bodyPadding+":"+m[e].tolerance+":"+m[e].inPageLinks+":"+m[e].resizeFrom+":"+m[e].widthCalculationMethod+":"+m[e].mouseEvents}function H(o,r){function a(e){var n=e.split("Callback");if(2===n.length){var o="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[o]=this[e],delete this[e],z(d,"Deprecated: '"+e+"' has been renamed '"+o+"'. The old method will be removed in the next major version.")}}var s,c,d=function(e){if("string"!=typeof e)throw new TypeError("Invaild id for iFrame. Expected String");var n;return""===e&&(o.id=(n=r&&r.id||w.id+i++,null!==document.getElementById(n)&&(n+=i++),e=n),t=(r||{}).log,j(e,"Added missing iframe ID: "+e+" ("+o.src+")")),e}(o.id);d in m&&"iFrameResizer"in o?z(d,"Ignored iFrame, already setup."):(function(e){var n;e=e||{},m[d]=Object.create(null),m[d].iframe=o,m[d].firstRun=!0,m[d].remoteHost=o.src&&o.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(a,e),function(e){for(var n in w)Object.prototype.hasOwnProperty.call(w,n)&&(m[d][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:w[n])}(e),m[d]&&(m[d].targetOrigin=!0===m[d].checkOrigin?""===(n=m[d].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(r),function(){switch(j(d,"IFrame scrolling "+(m[d]&&m[d].scrolling?"enabled":"disabled")+" for "+d),o.style.overflow=!1===(m[d]&&m[d].scrolling)?"hidden":"auto",m[d]&&m[d].scrolling){case"omit":break;case!0:o.scrolling="yes";break;case!1:o.scrolling="no";break;default:o.scrolling=m[d]?m[d].scrolling:"no"}}(),function(){function e(e){var n=m[d][e];1/0!==n&&0!==n&&(o.style[e]="number"==typeof n?n+"px":n,j(d,"Set "+e+" = "+o.style[e]))}function n(e){if(m[d]["min"+e]>m[d]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(m[d]&&m[d].bodyMargin)&&"0"!==(m[d]&&m[d].bodyMargin)||(m[d].bodyMarginV1=m[d].bodyMargin,m[d].bodyMargin=m[d].bodyMargin+"px"),s=A(d),(c=g())&&(n=function(e){if(!o.parentNode)return null;var n=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===o&&S(o)}))}))}));return n.observe(o.parentNode,{childList:!0}),n}(c)),p(o,"load",(function(){N("iFrame.onload",s,o,e,!0),(!m[d]||!m[d].firstRun)&&m[d]&&m[d].heightCalculationMethod in l&&C({iframe:o,height:0,width:0,type:"init"})})),N("init",s,o,e,!0),m[d]&&(m[d].iframe.iFrameResizer={close:S.bind(null,m[d].iframe),removeListeners:I.bind(null,m[d].iframe),resize:N.bind(null,"Window resize","resize",m[d].iframe),moveToAnchor:function(e){N("Move to anchor","moveToAnchor:"+e,m[d].iframe,d)},sendMessage:function(e){N("Send Message","message:"+(e=JSON.stringify(e)),m[d].iframe,d)}}))}function L(e,n){null===h&&(h=setTimeout((function(){h=null,e()}),n))}function V(){"hidden"!==document.visibilityState&&(j("document","Trigger event: Visibility change"),L((function(){P("Tab Visible","resize")}),16))}function P(e,n){Object.keys(m).forEach((function(o){(function(e){return m[e]&&"parent"===m[e].resizeFrom&&m[e].autoResize&&!m[e].firstRun})(o)&&N(e,n,m[o].iframe,o)}))}function q(){function n(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),H(n,e),o.push(n))}var o;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!u;e+=1)u=window[n[e]+"RequestAnimationFrame"];u?u=u.bind(window):j("setup","RequestAnimationFrame not supported")}(),p(window,"message",F),p(window,"resize",(function(){j("window","Trigger event: resize"),L((function(){P("Window resize","resize")}),16)})),p(document,"visibilitychange",V),p(document,"-webkit-visibilitychange",V),function(i,t){switch(o=[],function(e){e&&e.enablePublicMethods&&z("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof t){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(t||"iframe"),n.bind(e,i));break;case"object":n(i,t);break;default:throw new TypeError("Unexpected data type ("+typeof t+")")}return o}}}();const c=s.exports,d={card:{ready:"justifi.card.ready",tokenize:"justifi.card.tokenize",validate:"justifi.card.validate",resize:"justifi.card.resize",styleOverrides:"justifi.card.styleOverrides"},bankAccount:{ready:"justifi.bankAccount.ready",tokenize:"justifi.bankAccount.tokenize",validate:"justifi.bankAccount.validate",resize:"justifi.bankAccount.resize",styleOverrides:"justifi.bankAccount.styleOverrides"}};class f{constructor(e,n){this.iframe=e,this.iframeOrigin=n}postMessage(e,n){const o=Object.assign({eventType:e},n);this.iframe.contentWindow.postMessage(o,this.iframeOrigin)}addMessageListener(e){window.addEventListener("message",e)}removeMessageListener(e){window.removeEventListener("message",e)}postMessageWithResponseListener(e,n){return new Promise((o=>{const i=n=>{n.data.eventType===e&&(window.removeEventListener("message",i),o(n.data.data))};window.addEventListener("message",i),this.postMessage(e,n)}))}}const u=class{constructor(o){e(this,o),this.paymentMethodFormReady=n(this,"paymentMethodFormReady",7),this.paymentMethodFormValidated=n(this,"paymentMethodFormValidated",7),this.paymentMethodFormTokenized=n(this,"paymentMethodFormTokenized",7),this.computedTheme=(()=>{const e=getComputedStyle(document.body);return{loadGoogleFont:e.getPropertyValue("--jfi-load-google-font"),layout:{fontFamily:e.getPropertyValue("--jfi-layout-font-family"),padding:e.getPropertyValue("--jfi-layout-padding"),formControlSpacingHorizontal:e.getPropertyValue("--jfi-layout-form-control-spacing-x"),formControlSpacingVertical:e.getPropertyValue("--jfi-layout-form-control-spacing-y")},formControl:{backgroundColor:e.getPropertyValue("--jfi-form-control-background-color"),borderColor:e.getPropertyValue("--jfi-form-control-border-color"),borderColorFocus:e.getPropertyValue("--jfi-form-control-border-color-focus"),borderColorError:e.getPropertyValue("--jfi-form-control-border-color-error"),borderWidth:e.getPropertyValue("--jfi-form-control-border-width"),borderBottomWidth:e.getPropertyValue("--jfi-form-control-border-bottom-width"),borderLeftWidth:e.getPropertyValue("--jfi-form-control-border-left-width"),borderRightWidth:e.getPropertyValue("--jfi-form-control-border-right-width"),borderTopWidth:e.getPropertyValue("--jfi-form-control-border-top-width"),borderRadius:e.getPropertyValue("--jfi-form-control-border-radius"),borderStyle:e.getPropertyValue("--jfi-form-control-border-style"),boxShadow:e.getPropertyValue("--jfi-form-control-box-shadow"),boxShadowError:e.getPropertyValue("--jfi-form-control-box-shadow-error"),boxShadowErrorFocus:e.getPropertyValue("--jfi-form-control-box-shadow-error-focus"),boxShadowFocus:e.getPropertyValue("--jfi-form-control-box-shadow-focus"),color:e.getPropertyValue("--jfi-form-control-color"),colorFocus:e.getPropertyValue("--jfi-form-control-color-focus"),fontSize:e.getPropertyValue("--jfi-form-control-font-size"),fontWeight:e.getPropertyValue("--jfi-form-control-font-weight"),lineHeight:e.getPropertyValue("--jfi-form-control-line-height"),margin:e.getPropertyValue("--jfi-form-control-margin"),padding:e.getPropertyValue("--jfi-form-control-padding")},formLabel:{color:e.getPropertyValue("--jfi-form-label-color"),fontFamily:e.getPropertyValue("--jfi-form-label-font-family"),fontSize:e.getPropertyValue("--jfi-form-label-font-size"),fontWeight:e.getPropertyValue("--jfi-form-label-font-weight"),margin:e.getPropertyValue("--jfi-form-label-margin")},errorMessage:{color:e.getPropertyValue("--jfi-error-message-color"),margin:e.getPropertyValue("--jfi-error-message-margin"),fontSize:e.getPropertyValue("--jfi-error-message-font-size")}}})(),this.dispatchMessageEvent=e=>{const{eventType:n,data:o}=e.data,i=d[this.paymentMethodFormType];n===i.ready?(this.paymentMethodFormReady.emit(o),this.sendStyleOverrides()):n===i.tokenize?this.paymentMethodFormTokenized.emit(o):n===i.validate&&this.paymentMethodFormValidated.emit(o)},this.postMessage=(e,n)=>{this.frameService.postMessage(e,n)},this.paymentMethodFormType=void 0,this.paymentMethodFormValidationMode=void 0,this.iframeOrigin=void 0,this.singleLine=void 0}disconnectedCallback(){this.frameService.removeMessageListener(this.dispatchMessageEvent)}async resize(){this.postMessage(d[this.paymentMethodFormType].resize)}async tokenize(e,n,o){return this.frameService.postMessageWithResponseListener(d[this.paymentMethodFormType].tokenize,{clientId:e,paymentMethodMetadata:n,account:o,componentVersion:t.version})}async validate(){return this.frameService.postMessageWithResponseListener(d[this.paymentMethodFormType].validate)}sendStyleOverrides(){this.computedTheme&&this.postMessage(d[this.paymentMethodFormType].styleOverrides,{styleOverrides:this.computedTheme})}getIframeSrc(){let e=[];return this.paymentMethodFormValidationMode&&e.push(`validationMode=${this.paymentMethodFormValidationMode}`),this.singleLine&&e.push(`singleLine=${this.singleLine}`),`${this.iframeOrigin}/${this.paymentMethodFormType}${r(e)}`}initializeFrameCommunicationService(){var e;this.frameService=new f(this.iframeElement,this.iframeOrigin),null===(e=this.frameService)||void 0===e||e.addMessageListener(this.dispatchMessageEvent)}render(){return o(i,{key:"10987c92745fbff8bb85367db69b76e2bc786c88"},o("iframe",{key:"0622dd0201a04a3c918fd3d175d2a29f24609759",id:`justifi-payment-method-form-${this.paymentMethodFormType}`,src:this.getIframeSrc(),ref:e=>{this.iframeElement=e,this.initializeFrameCommunicationService()},onLoad:()=>{c({scrollbars:!1},this.iframeElement)}}))}};u.style=":host{display:block}justifi-payment-method-form iframe{border:none;width:100%}iframe{width:1px;min-width:100%}";export{u as justifi_payment_method_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as t,h as r}from"./p-fad19d75.js";import{A as o}from"./p-29c0b182.js";import{C as e,a as i}from"./p-14c91ffd.js";import{g as a,a as n}from"./p-8115b2f4.js";import{E as h}from"./p-dce846bf.js";import{J as c}from"./p-8a038cd9.js";import"./p-7c0002c6.js";class d{async fetchGrossVolumeChartData(s,t){return o({authToken:t,apiOrigin:""}).get(`account/${s}/reports/gross_volume`)}}const p=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)},this.accountId=void 0,this.authToken=void 0,this.getGrossPayment=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new c(this),this.initializeGetGrossPayment()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:o,onError:i})=>{var h;try{const c=await r.fetchGrossVolumeChartData(s,t);c.error?i({error:a(c.error),code:n(null===(h=c.error)||void 0===h?void 0:h.code),severity:e.ERROR}):o(c.data)}catch(s){const t=n(null==s?void 0:s.code);i({error:a(s),code:t,severity:e.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new d}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:i.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR}))}render(){return this.errorMessage?h(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{p as justifi_gross_payment_chart}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as r}from"./p-fad19d75.js";import{J as a}from"./p-8a038cd9.js";import"./p-7c0002c6.js";import"./p-29c0b182.js";const i=class{constructor(r){e(this,r),this.cardFormReady=t(this,"cardFormReady",7),this.ready=t(this,"ready",7),this.cardFormTokenized=t(this,"cardFormTokenize",7),this.cardFormValidated=t(this,"cardFormValidate",7),this.validationMode=void 0,this.iframeOrigin="",this.singleLine=!1,this.internalStyleOverrides=void 0}readyHandler(e){console.warn("The 'cardFormReady' event is deprecated in the next major release and will be renamed to 'ready'"),this.cardFormReady.emit(e),this.ready.emit(e)}tokenizeHandler(e){console.warn("The 'cardFormTokenize' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.cardFormTokenized.emit(e)}validateHandler(e){console.warn("The 'cardFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.cardFormValidated.emit(e)}componentWillLoad(){this.analytics=new a(this)}disconnectedCallback(){this.analytics.cleanup()}async tokenize(...e){if(!this.childRef)throw new Error("Cannot call tokenize");return this.childRef.tokenize(...e)}async validate(){if(!this.childRef)throw new Error("Cannot call validate");return this.childRef.validate()}async resize(){if(console.warn("The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach."),!this.childRef)throw new Error("Cannot call validate");return this.childRef.resize()}render(){return r("justifi-payment-method-form",{key:"cc0ad5d8a262ff5c8422d247caed469a8dea3488",ref:e=>{e&&(this.childRef=e)},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"card","single-line":this.singleLine,"payment-method-form-ready":this.cardFormReady,"payment-method-form-validate":this.cardFormValidated,"payment-method-form-tokenize":this.cardFormTokenized,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{i as justifi_card_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as i,h as t}from"./p-fad19d75.js";import{J as e}from"./p-8a038cd9.js";import{a as o,C as r}from"./p-14c91ffd.js";import{m as n,a}from"./p-5968ff8a.js";import{B as h}from"./p-0e1bc91e.js";import{A as p}from"./p-29c0b182.js";import"./p-7c0002c6.js";import"./p-8115b2f4.js";class d{async postProvisioning(s,i,t){const e={business_id:i,product_category:t};return p({authToken:s,apiOrigin:""}).post("entities/provisioning",JSON.stringify(e))}}const c=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.postProvisioning=void 0,this.getBusiness=void 0,this.businessId=void 0,this.authToken=void 0,this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){this.analytics=new e(this),this.initializeApi()}disconnectedCallback(){this.analytics.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new d})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"a93ee23fabf4bdeb381e924bfdf684ddd183075a",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{c as justifi_payment_provisioning}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,c as r,h as t}from"./p-fad19d75.js";import{f as i}from"./p-83125497.js";import{C as s}from"./p-14c91ffd.js";import{i as a,v as e,a as d}from"./p-2338affa.js";import{B as c}from"./p-9c9c7dac.js";import{S as l}from"./p-ba4bae6f.js";import{S as n}from"./p-08b0fb31.js";class f{constructor(o){Object.assign(this,o)}}const b=class{constructor(t){o(this,t),this.submitted=r(this,"submitted",7),this.errorEvent=r(this,"error-event",7),this.loaded=r(this,"loaded",7),this.completeCheckout=async o=>{this.complete({payment:o,onSuccess:this.onSubmitted,onError:this.onError})},this.onSubmitted=o=>{this.submitted.emit(o),this.renderState="success"},this.onError=({error:o,code:r,severity:t})=>{this.serverError=o,this.errorEvent.emit({errorCode:r,message:o,severity:t}),this.renderState="error"},this.iframeOrigin="",this.authToken=void 0,this.getCheckout=void 0,this.complete=void 0,this.checkoutId=void 0,this.disableCreditCard=void 0,this.disableBankAccount=void 0,this.disableBnpl=void 0,this.disablePaymentMethodGroup=void 0,this.hasLoadedFonts=!1,this.checkout=void 0,this.serverError=void 0,this.renderState="loading",this.creatingNewPaymentMethod=!1,this.insuranceToggled=!1}async fillBillingForm(o){this.paymentMethodOptionsRef.fillBillingForm(o)}componentWillLoad(){this.getCheckout&&(this.fetchData(),a("set",(o=>{const r=d[o];void 0!==r&&(this.insuranceToggled=r,this.fetchData())})))}fetchData(){this.renderState="loading",this.getCheckout({onSuccess:({checkout:o})=>{this.checkout=new f(o);const{status:r}=this.checkout;this.loaded.emit({checkout_status:r}),this.renderState="success"},onError:({error:o,code:r,severity:t})=>{this.serverError=o,this.renderState="error",this.errorEvent.emit({errorCode:r,message:o,severity:t})}})}async submit(o){var r;o.preventDefault(),this.renderState="loading";const t=e(),i=await this.paymentMethodOptionsRef.resolvePaymentMethod(t);i.validationError?this.renderState="error":i.error?(this.renderState="error",this.serverError=i.error.message,this.onError({code:i.error.code,error:i.error.message,severity:s.ERROR})):i.token?this.completeCheckout({payment_mode:"ecom",payment_token:i.token}):"success"===(null===(r=i.bnpl)||void 0===r?void 0:r.status)?this.completeCheckout({payment_mode:"bnpl"}):this.renderState="error"}get isLoading(){return"loading"===this.renderState}get isError(){return"error"===this.renderState}get paymentType(){var o,r,i,s,a;return t("section",null,t("div",{class:!this.isLoading&&"visually-hidden"},t(n,{variant:"rounded",height:"300px"})),t("div",{class:this.isLoading&&"visually-hidden"},t("justifi-payment-method-options",{ref:o=>this.paymentMethodOptionsRef=o,"show-card":!this.disableCreditCard,"show-ach":!this.disableBankAccount,"show-bnpl":!this.disableBnpl,paymentMethodGroupId:null===(o=this.checkout)||void 0===o?void 0:o.payment_method_group_id,"show-saved-payment-methods":!this.disablePaymentMethodGroup,bnpl:null===(r=this.checkout)||void 0===r?void 0:r.bnpl,authToken:this.authToken,"account-id":null===(i=this.checkout)||void 0===i?void 0:i.account_id,savedPaymentMethods:(null===(s=this.checkout)||void 0===s?void 0:s.payment_methods)||[],paymentAmount:null===(a=this.checkout)||void 0===a?void 0:a.payment_amount,insuranceToggled:this.insuranceToggled})))}get summary(){var o,r;return t("section",null,t("div",{class:!this.isLoading&&"visually-hidden"},t(n,{height:"24px"})),t("div",{class:this.isLoading&&"visually-hidden"},t("div",{class:"jfi-payment-description"},null===(o=this.checkout)||void 0===o?void 0:o.payment_description),t("div",{class:"jfi-payment-total"},t("span",{class:"jfi-payment-total-label"},"Total")," ",t("span",{class:"jfi-payment-total-amount"},i(+(null===(r=this.checkout)||void 0===r?void 0:r.total_amount))))))}render(){return t(l,{key:"085e3582c88e06c650d0ad52407982f9d0f713d5"},t("div",{key:"15ff263db1588472d8338599b39336c6be74e629",class:"row gy-3 jfi-checkout-core"},t("div",{key:"19115dc64b5d232fa47c4976da5b1b450204d5c7",class:"col-12"},t("h2",{key:"f995a6510cec38c9742f095952e9d9ad54c4a95a",class:"fs-5 fw-bold pb-3 jfi-header"},"Summary"),this.summary),t("div",{key:"d14ce872c6fa7be272f279c02a571fa005828678",class:"col-12"},t("slot",{key:"5dd8c141deeecdb1689f34728c491ac985b047b0",name:"insurance"})),t("div",{key:"33d821b9cb8fb975911b3c5dccd72bf6d6a9333a",class:"col-12 mt-4"},t("h2",{key:"2c1be6ad9636a3cc9bbd2fd0b61b2e15444a66ab",class:"fs-5 fw-bold pb-3 jfi-header"},"Payment"),t("h3",{key:"ebdced7b60f3b5a390067f5eb685533360988f01",class:"fs-6 fw-bold lh-lg"},"Select payment type"),t("div",{key:"eb110ff64cf495542e732e8065b23167394bc5e2",class:"d-flex flex-column"},this.paymentType)),t("div",{key:"a2960051d744f1069a52b91090adaa90ed7053f3",class:"col-12"},t("div",{key:"03f01d243ebfa1268ca6c24b076b133e14709bd6",class:"d-flex justify-content-end"},t(c,{key:"01dd57ac8cb2c6e496d70421e21fd70533e6b5f6",type:"submit",variant:"primary",onClick:o=>this.submit(o),disabled:this.isLoading,isLoading:this.isLoading,style:{width:"100%"}},"Pay")))))}};b.style=":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}.jfi-checkout-core{color:var(--jfi-body-color)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}*::part(invalid-feedback){color:var(--jfi-error-message-color);font-size:var(--jfi-error-message-font-size);margin:var(--jfi-error-message-margin);line-height:normal}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow);line-height:var(--jfi-submit-button-line-height);text-transform:var(--jfi-submit-button-text-transform)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}.jfi-header{color:var(--jfi-header-color);border-bottom:var(--jfi-header-border)}";export{b as justifi_checkout_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-fad19d75.js";export{s as setNonce}from"./p-fad19d75.js";import{g as a}from"./p-e1255160.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-9279aa49",[[0,"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-623a4479",[[1,"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],"errorMessage":[32]}]]],["p-301e0493",[[4,"justifi-checkout",{"iframeOrigin":[1,"iframe-origin"],"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"disableCreditCard":[4,"disable-credit-card"],"disableBankAccount":[4,"disable-bank-account"],"disableBnpl":[4,"disable-bnpl"],"disablePaymentMethodGroup":[4,"disable-payment-method-group"],"getCheckout":[32],"complete":[32],"errorMessage":[32],"fillBillingForm":[64]},null,{"authToken":["propChanged"],"checkoutId":["propChanged"]}]]],["p-304dd644",[[1,"justifi-payment-form",{"bankAccount":[4,"bank-account"],"card":[4],"email":[1],"clientId":[1,"client-id"],"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"submitButtonText":[1,"submit-button-text"],"submitButtonEnabled":[32],"isLoading":[32],"selectedPaymentMethodType":[32],"fillBillingForm":[64],"enableSubmitButton":[64],"disableSubmitButton":[64]}]]],["p-27981600",[[1,"justifi-business-details",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"errorMessage":[32],"getBusiness":[32]}]]],["p-cd7105dd",[[1,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getPayments":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-e7067ef2",[[1,"justifi-payouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getPayouts":[32],"getPayoutCSV":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-bc92235c",[[1,"justifi-refund-form",{"authToken":[1,"auth-token"],"paymentId":[1,"payment-id"],"amount":[2],"submitButtonText":[1,"submit-button-text"],"withButton":[4,"with-button"],"refundInfoText":[1,"refund-info-text"],"errors":[32],"isSubmitting":[32]}]]],["p-e31f0f3e",[[0,"form-control-number",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-195f92e9",[[1,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"getPaymentDetails":[32],"errorMessage":[32]},null,{"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["p-c4b87db2",[[1,"justifi-payout-details",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"getPayout":[32],"getPayoutCSV":[32],"errorMessage":[32]},null,{"payoutId":["propChanged"],"authToken":["propChanged"]}]]],["p-d1fbeae5",[[0,"justifi-bank-account-form",{"validationMode":[1025,"validation-mode"],"iframeOrigin":[1025,"iframe-origin"],"internalStyleOverrides":[32],"tokenize":[64],"validate":[64],"resize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenized","tokenizeHandler"],[0,"paymentMethodFormValidated","validateHandler"]]]]],["p-8c1e981b",[[0,"justifi-card-form",{"validationMode":[1025,"validation-mode"],"iframeOrigin":[1025,"iframe-origin"],"singleLine":[4,"single-line"],"internalStyleOverrides":[32],"tokenize":[64],"validate":[64],"resize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenized","tokenizeHandler"],[0,"paymentMethodFormValidated","validateHandler"]]]]],["p-1a43e355",[[0,"gross-payment-chart-core",{"getGrossPayment":[16],"grossVolumeReport":[32],"loading":[32],"errorMessage":[32]},null,{"getGrossPayment":["propChanged"],"grossVolumeReport":["grossVolumeReportChanged"]}]]],["p-99022846",[[1,"justifi-gross-payment-chart",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getGrossPayment":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-25dba252",[[1,"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],"validate":[64]}]]],["p-07109641",[[0,"form-control-select",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"options":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"form-control-text",{"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]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"form-control-error-text",{"errorText":[1,"error-text"],"name":[1]}],[0,"form-control-help-text",{"helpText":[1,"help-text"],"name":[1]}]]],["p-bbed6107",[[0,"justifi-business-representative-form-inputs",{"representativeDefaultValue":[8,"representative-default-value"],"errors":[8],"formController":[16]}]]],["p-f0866375",[[0,"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]}]]],["p-d8355f91",[[0,"form-control-monetary",{"label":[1],"name":[1],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"maskOptions":[8,"mask-options"],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-c9f8f7ec",[[0,"justifi-identity-address-form",{"handleFormUpdate":[16],"errors":[8],"defaultValues":[8,"default-values"],"address":[32]},null,{"address":["handleAddressChange"]}],[0,"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]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"form-control-date",{"label":[1],"name":[1],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[8,"input-handler"],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-be39c802",[[1,"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,"formLoading","handleFormLoading"]]]]],["p-60a370fc",[[1,"justifi-checkout-core",{"iframeOrigin":[1025,"iframe-origin"],"authToken":[1,"auth-token"],"getCheckout":[16],"complete":[16],"checkoutId":[1,"checkout-id"],"disableCreditCard":[4,"disable-credit-card"],"disableBankAccount":[4,"disable-bank-account"],"disableBnpl":[4,"disable-bnpl"],"disablePaymentMethodGroup":[4,"disable-payment-method-group"],"hasLoadedFonts":[32],"checkout":[32],"serverError":[32],"renderState":[32],"creatingNewPaymentMethod":[32],"insuranceToggled":[32],"fillBillingForm":[64]}]]],["p-fb58feb5",[[0,"business-details-core",{"getBusiness":[16],"business":[32],"renderState":[32],"errorMessage":[32]}]]],["p-52021fa1",[[0,"payments-list-core",{"getPayments":[16],"payments":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"params":["updateOnPropChange"],"getPayments":["updateOnPropChange"]}]]],["p-fe33151d",[[0,"payouts-list-core",{"getPayouts":[16],"getPayoutCSV":[16],"payouts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"params":["updateOnPropChange"],"getPayouts":["updateOnPropChange"]}]]],["p-462dc522",[[0,"payment-details-core",{"getPaymentDetails":[16],"payment":[32],"loading":[32],"errorMessage":[32]},null,{"getPaymentDetails":["updateOnPropChange"]}]]],["p-53e64f15",[[0,"payout-details-core",{"getPayout":[16],"getPayoutCSV":[16],"payout":[32],"loading":[32],"errorMessage":[32]},null,{"getPayout":["getPayoutWatcher"]}]]],["p-e2c88817",[[0,"justifi-payment-method-selector",{"selectedPaymentMethodType":[1,"selected-payment-method-type"]}]]],["p-62b32c4c",[[1,"justifi-season-interruption-insurance-core",{"checkoutId":[1,"checkout-id"],"getQuote":[16],"toggleCoverage":[16],"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"],"quote":[32],"isLoading":[32],"accepted":[32],"validate":[64]}]]],["p-487b72a8",[[1,"justifi-details",{"errorMessage":[1,"error-message"]}]]],["p-0f7b9555",[[0,"pagination-menu",{"paging":[16],"params":[16]}]]],["p-8e541a32",[[0,"justifi-business-representative",{"formController":[16],"errors":[32],"representative":[32]}],[0,"justifi-business-core-info",{"formController":[16],"errors":[32],"coreInfo":[32]}],[0,"justifi-additional-questions",{"formController":[16],"errors":[32],"additional_questions":[32]}],[0,"justifi-legal-address-form",{"formController":[16],"errors":[32],"legal_address":[32]}],[0,"form-alert",{"text":[1],"hideAlert":[4,"hide-alert"]}]]],["p-96b42e7d",[[0,"justifi-payment-method-form",{"paymentMethodFormType":[1,"payment-method-form-type"],"paymentMethodFormValidationMode":[1025,"payment-method-form-validation-mode"],"iframeOrigin":[1,"iframe-origin"],"singleLine":[4,"single-line"],"resize":[64],"tokenize":[64],"validate":[64]}]]],["p-17e4246f",[[0,"justifi-save-new-payment-method",{"isChecked":[32]}],[1,"justifi-billing-form",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}]]],["p-4abc17f0",[[0,"additional-questions-details",{"additionalQuestions":[16]}],[0,"generic-info-details",{"business":[16]}],[0,"legal-address-details",{"legalAddress":[16]}],[0,"owner-details",{"owners":[16]}],[0,"representative-details",{"representative":[16]}]]],["p-b16dfd5d",[[0,"justifi-payment-method-options",{"showCard":[4,"show-card"],"showAch":[4,"show-ach"],"showBnpl":[4,"show-bnpl"],"showSavedPaymentMethods":[4,"show-saved-payment-methods"],"paymentMethodGroupId":[1,"payment-method-group-id"],"bnpl":[16],"insuranceToggled":[4,"insurance-toggled"],"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"iframeOrigin":[1025,"iframe-origin"],"savedPaymentMethods":[16],"paymentAmount":[2,"payment-amount"],"selectedPaymentMethodId":[32],"paymentMethodOptions":[32],"fillBillingForm":[64],"resolvePaymentMethod":[64]},[[0,"paymentMethodOptionSelected","paymentMethodOptionSelected"]],{"savedPaymentMethods":["paymentMethodsChanged"]}],[0,"justifi-new-payment-method",{"iframeOrigin":[1025,"iframe-origin"],"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"paymentMethodOption":[16],"paymentMethodGroupId":[1,"payment-method-group-id"],"isSelected":[4,"is-selected"],"saveNewPaymentMethodChecked":[32],"fillBillingForm":[64],"resolvePaymentMethod":[64]},[[0,"checkboxChanged","handleCheckboxChanged"]]],[0,"justifi-saved-payment-method",{"iframeOrigin":[1025,"iframe-origin"],"paymentMethodOption":[16],"isSelected":[4,"is-selected"],"resolvePaymentMethod":[64]}],[0,"justifi-sezzle-payment-method",{"iframeOrigin":[1025,"iframe-origin"],"bnpl":[8],"clientId":[1,"client-id"],"accountId":[1,"account-id"],"paymentMethodOption":[16],"isSelected":[4,"is-selected"],"paymentAmount":[2,"payment-amount"],"installmentPlan":[32],"sezzleCheckout":[32],"sezzlePromise":[32],"resolvePaymentMethod":[64]}]]],["p-23014988",[[0,"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]}],[0,"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"]}],[0,"owner-form-inputs",{"ownerDefaultValue":[8,"owner-default-value"],"errors":[8],"formController":[16]}]]],["p-30a493cd",[[0,"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],"validateAndSubmit":[64]},[[0,"ownerSubmitted","handleOwnerSubmit"]],{"ownersPayload":["ownersWatcher"]}],[0,"justifi-business-representative-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"representative":[32],"validateAndSubmit":[64]}],[0,"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],"validateAndSubmit":[64]}],[0,"justifi-additional-questions-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"additional_questions":[32],"validateAndSubmit":[64]}],[0,"justifi-legal-address-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"legal_address":[32],"validateAndSubmit":[64]}],[0,"justifi-business-document-upload-input-group",{"paymentVolume":[1,"payment-volume"],"inputHandler":[16],"storeFiles":[16],"errors":[8]}],[0,"form-control-checkbox",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[4,"default-value"],"inputHandler":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"justifi-business-documents-on-file",{"documents":[8]}],[0,"justifi-business-terms-conditions-text"]]],["p-6f03b35a",[[0,"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]}],[0,"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]}],[0,"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"]}],[0,"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"]}],[0,"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"]}],[0,"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"]}],[0,"justifi-business-document-upload-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"existingDocuments":[32],"paymentVolume":[32],"business":[32],"documentData":[32],"renderState":[32],"validateAndSubmit":[64]}],[0,"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"]}],[0,"justifi-business-bank-account-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"bankAccount":[32],"validateAndSubmit":[64]}],[0,"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],"validateAndSubmit":[64]}]]]]'),e))));
|
|
1
|
+
import{p as e,b as t}from"./p-fad19d75.js";export{s as setNonce}from"./p-fad19d75.js";import{g as a}from"./p-e1255160.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-ecdf60f6",[[0,"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-77cf6f75",[[1,"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],"errorMessage":[32]}]]],["p-14fdc01c",[[4,"justifi-checkout",{"iframeOrigin":[1,"iframe-origin"],"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"disableCreditCard":[4,"disable-credit-card"],"disableBankAccount":[4,"disable-bank-account"],"disableBnpl":[4,"disable-bnpl"],"disablePaymentMethodGroup":[4,"disable-payment-method-group"],"getCheckout":[32],"complete":[32],"errorMessage":[32],"fillBillingForm":[64]},null,{"authToken":["propChanged"],"checkoutId":["propChanged"]}]]],["p-2b79f265",[[1,"justifi-payment-form",{"bankAccount":[4,"bank-account"],"card":[4],"email":[1],"clientId":[1,"client-id"],"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"submitButtonText":[1,"submit-button-text"],"submitButtonEnabled":[32],"isLoading":[32],"selectedPaymentMethodType":[32],"fillBillingForm":[64],"enableSubmitButton":[64],"disableSubmitButton":[64]}]]],["p-85960c15",[[1,"justifi-business-details",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"errorMessage":[32],"getBusiness":[32]}]]],["p-3c6a8a36",[[1,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getPayments":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-c8c3a97d",[[1,"justifi-payouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getPayouts":[32],"getPayoutCSV":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-cd37a87e",[[1,"justifi-refund-form",{"authToken":[1,"auth-token"],"paymentId":[1,"payment-id"],"amount":[2],"submitButtonText":[1,"submit-button-text"],"withButton":[4,"with-button"],"refundInfoText":[1,"refund-info-text"],"errors":[32],"isSubmitting":[32]}]]],["p-e31f0f3e",[[0,"form-control-number",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-bd2ecd23",[[1,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"getPaymentDetails":[32],"errorMessage":[32]},null,{"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["p-04a61500",[[1,"justifi-payout-details",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"getPayout":[32],"getPayoutCSV":[32],"errorMessage":[32]},null,{"payoutId":["propChanged"],"authToken":["propChanged"]}]]],["p-72d42a01",[[0,"justifi-bank-account-form",{"validationMode":[1025,"validation-mode"],"iframeOrigin":[1025,"iframe-origin"],"internalStyleOverrides":[32],"tokenize":[64],"validate":[64],"resize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenized","tokenizeHandler"],[0,"paymentMethodFormValidated","validateHandler"]]]]],["p-e789152a",[[0,"justifi-card-form",{"validationMode":[1025,"validation-mode"],"iframeOrigin":[1025,"iframe-origin"],"singleLine":[4,"single-line"],"internalStyleOverrides":[32],"tokenize":[64],"validate":[64],"resize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenized","tokenizeHandler"],[0,"paymentMethodFormValidated","validateHandler"]]]]],["p-1a43e355",[[0,"gross-payment-chart-core",{"getGrossPayment":[16],"grossVolumeReport":[32],"loading":[32],"errorMessage":[32]},null,{"getGrossPayment":["propChanged"],"grossVolumeReport":["grossVolumeReportChanged"]}]]],["p-e14c133e",[[1,"justifi-gross-payment-chart",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getGrossPayment":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-8e7d4df4",[[1,"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],"validate":[64]}]]],["p-07109641",[[0,"form-control-select",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"options":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"form-control-text",{"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]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"form-control-error-text",{"errorText":[1,"error-text"],"name":[1]}],[0,"form-control-help-text",{"helpText":[1,"help-text"],"name":[1]}]]],["p-bbed6107",[[0,"justifi-business-representative-form-inputs",{"representativeDefaultValue":[8,"representative-default-value"],"errors":[8],"formController":[16]}]]],["p-f0866375",[[0,"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]}]]],["p-d8355f91",[[0,"form-control-monetary",{"label":[1],"name":[1],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"maskOptions":[8,"mask-options"],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-c9f8f7ec",[[0,"justifi-identity-address-form",{"handleFormUpdate":[16],"errors":[8],"defaultValues":[8,"default-values"],"address":[32]},null,{"address":["handleAddressChange"]}],[0,"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]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"form-control-date",{"label":[1],"name":[1],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[8,"input-handler"],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-be39c802",[[1,"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,"formLoading","handleFormLoading"]]]]],["p-f117d1d1",[[1,"justifi-checkout-core",{"iframeOrigin":[1025,"iframe-origin"],"authToken":[1,"auth-token"],"getCheckout":[16],"complete":[16],"checkoutId":[1,"checkout-id"],"disableCreditCard":[4,"disable-credit-card"],"disableBankAccount":[4,"disable-bank-account"],"disableBnpl":[4,"disable-bnpl"],"disablePaymentMethodGroup":[4,"disable-payment-method-group"],"hasLoadedFonts":[32],"checkout":[32],"serverError":[32],"renderState":[32],"creatingNewPaymentMethod":[32],"insuranceToggled":[32],"fillBillingForm":[64]}]]],["p-fb58feb5",[[0,"business-details-core",{"getBusiness":[16],"business":[32],"renderState":[32],"errorMessage":[32]}]]],["p-52021fa1",[[0,"payments-list-core",{"getPayments":[16],"payments":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"params":["updateOnPropChange"],"getPayments":["updateOnPropChange"]}]]],["p-fe33151d",[[0,"payouts-list-core",{"getPayouts":[16],"getPayoutCSV":[16],"payouts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"params":["updateOnPropChange"],"getPayouts":["updateOnPropChange"]}]]],["p-462dc522",[[0,"payment-details-core",{"getPaymentDetails":[16],"payment":[32],"loading":[32],"errorMessage":[32]},null,{"getPaymentDetails":["updateOnPropChange"]}]]],["p-53e64f15",[[0,"payout-details-core",{"getPayout":[16],"getPayoutCSV":[16],"payout":[32],"loading":[32],"errorMessage":[32]},null,{"getPayout":["getPayoutWatcher"]}]]],["p-e2c88817",[[0,"justifi-payment-method-selector",{"selectedPaymentMethodType":[1,"selected-payment-method-type"]}]]],["p-62b32c4c",[[1,"justifi-season-interruption-insurance-core",{"checkoutId":[1,"checkout-id"],"getQuote":[16],"toggleCoverage":[16],"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"],"quote":[32],"isLoading":[32],"accepted":[32],"validate":[64]}]]],["p-487b72a8",[[1,"justifi-details",{"errorMessage":[1,"error-message"]}]]],["p-0f7b9555",[[0,"pagination-menu",{"paging":[16],"params":[16]}]]],["p-8e541a32",[[0,"justifi-business-representative",{"formController":[16],"errors":[32],"representative":[32]}],[0,"justifi-business-core-info",{"formController":[16],"errors":[32],"coreInfo":[32]}],[0,"justifi-additional-questions",{"formController":[16],"errors":[32],"additional_questions":[32]}],[0,"justifi-legal-address-form",{"formController":[16],"errors":[32],"legal_address":[32]}],[0,"form-alert",{"text":[1],"hideAlert":[4,"hide-alert"]}]]],["p-d23e1960",[[0,"justifi-payment-method-form",{"paymentMethodFormType":[1,"payment-method-form-type"],"paymentMethodFormValidationMode":[1025,"payment-method-form-validation-mode"],"iframeOrigin":[1,"iframe-origin"],"singleLine":[4,"single-line"],"resize":[64],"tokenize":[64],"validate":[64]}]]],["p-17e4246f",[[0,"justifi-save-new-payment-method",{"isChecked":[32]}],[1,"justifi-billing-form",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}]]],["p-4abc17f0",[[0,"additional-questions-details",{"additionalQuestions":[16]}],[0,"generic-info-details",{"business":[16]}],[0,"legal-address-details",{"legalAddress":[16]}],[0,"owner-details",{"owners":[16]}],[0,"representative-details",{"representative":[16]}]]],["p-32211b2f",[[0,"justifi-payment-method-options",{"showCard":[4,"show-card"],"showAch":[4,"show-ach"],"showBnpl":[4,"show-bnpl"],"showSavedPaymentMethods":[4,"show-saved-payment-methods"],"paymentMethodGroupId":[1,"payment-method-group-id"],"bnpl":[16],"insuranceToggled":[4,"insurance-toggled"],"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"iframeOrigin":[1025,"iframe-origin"],"savedPaymentMethods":[16],"paymentAmount":[2,"payment-amount"],"selectedPaymentMethodId":[32],"paymentMethodOptions":[32],"fillBillingForm":[64],"resolvePaymentMethod":[64]},[[0,"paymentMethodOptionSelected","paymentMethodOptionSelected"]],{"savedPaymentMethods":["paymentMethodsChanged"]}],[0,"justifi-new-payment-method",{"iframeOrigin":[1025,"iframe-origin"],"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"paymentMethodOption":[16],"paymentMethodGroupId":[1,"payment-method-group-id"],"isSelected":[4,"is-selected"],"saveNewPaymentMethodChecked":[32],"fillBillingForm":[64],"resolvePaymentMethod":[64]},[[0,"checkboxChanged","handleCheckboxChanged"]]],[0,"justifi-saved-payment-method",{"iframeOrigin":[1025,"iframe-origin"],"paymentMethodOption":[16],"isSelected":[4,"is-selected"],"resolvePaymentMethod":[64]}],[0,"justifi-sezzle-payment-method",{"iframeOrigin":[1025,"iframe-origin"],"bnpl":[8],"clientId":[1,"client-id"],"accountId":[1,"account-id"],"paymentMethodOption":[16],"isSelected":[4,"is-selected"],"paymentAmount":[2,"payment-amount"],"installmentPlan":[32],"sezzleCheckout":[32],"sezzlePromise":[32],"resolvePaymentMethod":[64]}]]],["p-3352353a",[[0,"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]}],[0,"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"]}],[0,"owner-form-inputs",{"ownerDefaultValue":[8,"owner-default-value"],"errors":[8],"formController":[16]}]]],["p-30a493cd",[[0,"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],"validateAndSubmit":[64]},[[0,"ownerSubmitted","handleOwnerSubmit"]],{"ownersPayload":["ownersWatcher"]}],[0,"justifi-business-representative-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"representative":[32],"validateAndSubmit":[64]}],[0,"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],"validateAndSubmit":[64]}],[0,"justifi-additional-questions-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"additional_questions":[32],"validateAndSubmit":[64]}],[0,"justifi-legal-address-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"legal_address":[32],"validateAndSubmit":[64]}],[0,"justifi-business-document-upload-input-group",{"paymentVolume":[1,"payment-volume"],"inputHandler":[16],"storeFiles":[16],"errors":[8]}],[0,"form-control-checkbox",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[4,"default-value"],"inputHandler":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"justifi-business-documents-on-file",{"documents":[8]}],[0,"justifi-business-terms-conditions-text"]]],["p-b29f5084",[[0,"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]}],[0,"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]}],[0,"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"]}],[0,"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"]}],[0,"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"]}],[0,"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"]}],[0,"justifi-business-document-upload-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"existingDocuments":[32],"paymentVolume":[32],"business":[32],"documentData":[32],"renderState":[32],"validateAndSubmit":[64]}],[0,"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"]}],[0,"justifi-business-bank-account-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"bankAccount":[32],"validateAndSubmit":[64]}],[0,"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],"validateAndSubmit":[64]}]]]]'),e))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justifi/webcomponents",
|
|
3
|
-
"version": "4.19.
|
|
3
|
+
"version": "4.19.2-rc",
|
|
4
4
|
"description": "JustiFi Web Components",
|
|
5
5
|
"collection": "dist/collection/collection-manifest.json",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -35,16 +35,15 @@
|
|
|
35
35
|
"@babel/preset-env": "^7.21.5",
|
|
36
36
|
"@babel/preset-react": "^7.18.6",
|
|
37
37
|
"@babel/preset-typescript": "^7.21.5",
|
|
38
|
+
"@rollup/plugin-replace": "^5.0.7",
|
|
38
39
|
"@stencil/sass": "^3.0.1",
|
|
39
40
|
"@types/jest": "27.0.3",
|
|
40
|
-
"@types/node": "^20.1.4",
|
|
41
41
|
"@types/react": "^18.0.37",
|
|
42
42
|
"@types/react-dom": "^18.0.11",
|
|
43
43
|
"dotenv": "^16.3.1",
|
|
44
44
|
"jest": "^29.7.0",
|
|
45
45
|
"jest-cli": "^29.7.0",
|
|
46
46
|
"jest-environment-node": "^29.7.0",
|
|
47
|
-
"puppeteer": "^21.0.0",
|
|
48
47
|
"ts-jest": "^29.1.2"
|
|
49
48
|
},
|
|
50
49
|
"license": "MIT",
|
|
@@ -57,7 +56,6 @@
|
|
|
57
56
|
"generate": "stencil generate",
|
|
58
57
|
"test": "TZ=utc stencil test --spec",
|
|
59
58
|
"test:watch": "TZ=utc stencil test --spec --watchAll",
|
|
60
|
-
"test:e2e": "stencil test --e2e",
|
|
61
59
|
"test:file": "stencil test --spec --watch --"
|
|
62
60
|
}
|
|
63
61
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const config = {
|
|
4
|
-
iframeOrigin: 'https://js.justifi.ai/v2',
|
|
5
|
-
proxyApiOrigin: 'https://wc-proxy.justifi.ai',
|
|
6
|
-
proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g',
|
|
7
|
-
exampleAccountId: 'acc_5Et9iXrSSAZR2KSouQGAWi',
|
|
8
|
-
exampleBusinessId: 'biz_3bh69bq1rk3dmXNoAKVonu',
|
|
9
|
-
examplePaymentId: 'py_1NNeEnf4FbelxDCQN2RHcE',
|
|
10
|
-
examplePayoutId: 'po_17745yESnHyEgWNeunmhmR',
|
|
11
|
-
privateApiOrigin: '',
|
|
12
|
-
privateAuthToken: '',
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
exports.config = config;
|
package/dist/config.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export const config = {
|
|
2
|
-
iframeOrigin: 'https://js.justifi.ai/v2',
|
|
3
|
-
proxyApiOrigin: 'https://wc-proxy.justifi.ai',
|
|
4
|
-
proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g',
|
|
5
|
-
exampleAccountId: 'acc_5Et9iXrSSAZR2KSouQGAWi',
|
|
6
|
-
exampleBusinessId: 'biz_3bh69bq1rk3dmXNoAKVonu',
|
|
7
|
-
examplePaymentId: 'py_1NNeEnf4FbelxDCQN2RHcE',
|
|
8
|
-
examplePayoutId: 'po_17745yESnHyEgWNeunmhmR',
|
|
9
|
-
privateApiOrigin: '',
|
|
10
|
-
privateAuthToken: '',
|
|
11
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const config = {
|
|
2
|
-
iframeOrigin: 'https://js.justifi.ai/v2',
|
|
3
|
-
proxyApiOrigin: 'https://wc-proxy.justifi.ai',
|
|
4
|
-
proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g',
|
|
5
|
-
exampleAccountId: 'acc_5Et9iXrSSAZR2KSouQGAWi',
|
|
6
|
-
exampleBusinessId: 'biz_3bh69bq1rk3dmXNoAKVonu',
|
|
7
|
-
examplePaymentId: 'py_1NNeEnf4FbelxDCQN2RHcE',
|
|
8
|
-
examplePayoutId: 'po_17745yESnHyEgWNeunmhmR',
|
|
9
|
-
privateApiOrigin: '',
|
|
10
|
-
privateAuthToken: '',
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export { config as c };
|
package/dist/module/config.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const config = {
|
|
2
|
-
iframeOrigin: 'https://js.justifi.ai/v2',
|
|
3
|
-
proxyApiOrigin: 'https://wc-proxy.justifi.ai',
|
|
4
|
-
proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g',
|
|
5
|
-
exampleAccountId: 'acc_5Et9iXrSSAZR2KSouQGAWi',
|
|
6
|
-
exampleBusinessId: 'biz_3bh69bq1rk3dmXNoAKVonu',
|
|
7
|
-
examplePaymentId: 'py_1NNeEnf4FbelxDCQN2RHcE',
|
|
8
|
-
examplePayoutId: 'po_17745yESnHyEgWNeunmhmR',
|
|
9
|
-
privateApiOrigin: '',
|
|
10
|
-
privateAuthToken: '',
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export { config as c };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const config: {
|
|
2
|
-
iframeOrigin: string;
|
|
3
|
-
proxyApiOrigin: string;
|
|
4
|
-
proxyAuthToken: string;
|
|
5
|
-
exampleAccountId: string;
|
|
6
|
-
exampleBusinessId: string;
|
|
7
|
-
examplePaymentId: string;
|
|
8
|
-
examplePayoutId: string;
|
|
9
|
-
privateApiOrigin: string;
|
|
10
|
-
privateAuthToken: string;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-fad19d75.js";import{P as i}from"./p-d101c5db.js";import"./p-56f6ce4c.js";import{P as r}from"./p-df21aaad.js";import"./p-e3fab0e2.js";import{C as o,a}from"./p-14c91ffd.js";import{g as n,a as h}from"./p-8115b2f4.js";import{E as p}from"./p-dce846bf.js";import{J as d}from"./p-63acf322.js";import"./p-29c0b182.js";import"./p-ae263544.js";import"./p-4b4580dd.js";const c=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event",7),this.paymentService=new i,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.paymentId=void 0,this.authToken=void 0,this.getPaymentDetails=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new d(this),this.initializeGetPaymentDetails()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=(({id:t,authToken:s,service:e})=>async({onSuccess:i,onError:a})=>{var p;try{const d=await e.fetchPayment(t,s);d.error?a({error:n(d.error),code:h(null===(p=d.error)||void 0===p?void 0:p.code),severity:o.ERROR}):i({payment:new r(d.data)})}catch(t){const s=h(null==t?void 0:t.code);a({error:n(t),code:s,severity:o.ERROR})}})({id:this.paymentId,authToken:this.authToken,service:new i}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?p(this.errorMessage):e("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{c as justifi_payment_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as s}from"./p-fad19d75.js";import{c as i,d as a,e as r}from"./p-5968ff8a.js";import{I as d}from"./p-75b4daef.js";import{F as o}from"./p-2eab3c90.js";import{O as h}from"./p-af244664.js";import{a as c}from"./p-d89bad72.js";import{c as n,i as f}from"./p-85fc69e5.js";import{B as b}from"./p-9c9c7dac.js";import{S as l,P as m}from"./p-525db3e8.js";import{u,a as p,b as v}from"./p-7d85af5c.js";import"./p-14c91ffd.js";import"./p-8115b2f4.js";import"./p-ae263544.js";import"./p-29c0b182.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-89887332.js";import"./p-ba5fae28.js";const y=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event",7),this.getOwner=void 0,this.patchOwner=void 0,this.postOwner=void 0,this.authToken=void 0,this.ownerId=void 0,this.businessId=void 0,this.allowOptionalFields=void 0,this.removeOwner=void 0,this.newFormOpen=void 0,this.ownersLength=void 0}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:t}){this.coreComponent.validateAndSubmit({onSuccess:t})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=i({authToken:this.authToken,identityId:this.ownerId,service:new d}),this.patchOwner=a({authToken:this.authToken,identityId:this.ownerId,service:new d}),this.postOwner=r({authToken:this.authToken,service:new d}))}render(){return s("owner-form-core",{key:"332d1e77d01886f13aba09b32b2d5f2199131619",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,ref:t=>this.coreComponent=t})}},k=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){t(this,s),this.submitted=e(this,"submitted",7),this.ownerSubmitted=e(this,"ownerSubmitted",7),this.clickEvent=e(this,"click-event",7),this.formLoading=e(this,"formLoading",7),this.errorEvent=e(this,"error-event",7),this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:t=>{this.instantiateOwner(t.data)},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((t=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:e=>{this.submitted.emit({data:e,metadata:{ownerID:e.data.id}}),this.ownerSubmitted.emit({id:e.data.id}),this.instantiateOwner(e.data),t(!0)},onError:({error:e,code:s,severity:i})=>{this.submitted.emit({data:{error:e}}),this.errorEvent.emit({message:e,errorCode:s,severity:i}),t(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:e=>{this.submitted.emit({data:e,metadata:{ownerID:e.data.id}}),this.ownerSubmitted.emit({id:e.data.id}),this.instantiateOwner(e.data),t(!0)},onError:({error:e,code:s,severity:i})=>{this.submitted.emit({data:{error:e}}),this.errorEvent.emit({message:e,errorCode:s,severity:i}),t(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async t=>{this.owner=Object.assign({},new h(t)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?c.updateOwner:c.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:c.removeOwner})},this.isLoading=!1,this.formController=void 0,this.errors={},this.owner={},this.ownerId=void 0,this.businessId=void 0,this.getOwner=void 0,this.patchOwner=void 0,this.postOwner=void 0,this.allowOptionalFields=void 0,this.removeOwner=void 0,this.newFormOpen=void 0,this.ownersLength=void 0,this.validate=this.validate.bind(this),this.submit=this.submit.bind(this),this.validateAndSubmit=this.validateAndSubmit.bind(this)}async returnOwnerData(){return this.ownerId}async validate(){return this.formController.validate()}async submit(){if(await this.validate())return this.sendData()}async validateAndSubmit(t){t.preventDefault(),await this.validate()&&this.submit()}get payload(){let t=n(this.formController.values.getValue());return this.ownerId?JSON.stringify(t):JSON.stringify(Object.assign(Object.assign({},t),{business_id:this.businessId}))}get formTitle(){return this.ownerId?"Edit Business Owner":"Add Business Owner"}get submitButtonText(){return this.ownerId?"Update":"Add"}get showRemoveButton(){return!(this.ownersLength<=1)&&(!(this.ownerId||!this.newFormOpen)||!(!this.ownerId||this.newFormOpen)||void 0)}componentWillLoad(){this.formController=new o(f("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((t=>this.errors=Object.assign({},t)))}render(){return s("form",{key:"b2e2aaced859260e9d2ef59bc3f8a0763d05872c",onSubmit:this.validateAndSubmit},s("fieldset",{key:"2a93ddb4c945be0ec081ce31d6d9eff4b302d622"},s("legend",{key:"ea9859e55099e3f8263024d884edfb48b3666eaa",class:"fw-semibold fs-5"},this.formTitle),s("br",{key:"f646c1ecc544c358d87e701aba8e151fcb96c54e"}),s("div",{key:"874bf4ebd7cef0afbdee96fa4d5679b6d683b0f0",class:"row gy-3"},s("owner-form-inputs",{key:"866dbf0002ec1ac70d7942c6011c67f8cd144960",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController}),s("div",{key:"15d907270ecf3d16769cedea39ba279d7ffb0748",class:"d-flex gap-2 justify-content-start"},s(b,{key:"84c09ef594e7fa387e64a09014de81ed713cc765",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(b,{key:"1dafd97aa7b84644c9d011224a152ad7f99ce620",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"f1f31da4d147afcd01ef96acd01d63ee9497dd6b"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},w=class{constructor(e){t(this,e),this.inputHandler=(t,e)=>{u(this.formController,{[t]:e})},this.onAddressFormUpdate=t=>{p(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),t))},this.ownerDefaultValue=void 0,this.errors=void 0,this.formController=void 0}render(){return s("div",{key:"6fcc165d4bc75b92403d9031ad98f05f6b1dcd34",class:"row gy-3"},s("div",{key:"74f1e42a13892e95497a99684ba9de64719edb72",class:"col-12 col-md-6"},s("form-control-text",{key:"29caea2b0b0a62822cc20c99e697f3db7c22a541",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"5b0f8da9a0512de70558baa9cb188b4d5e773dc2",class:"col-12 col-md-4"},s("form-control-text",{key:"5967094f115a64876f8dc943a273f5a22b193f1c",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler})),s("div",{key:"6c05fec9b87f8ba5e3be9ce74ef727a1e4b14905",class:"col-12 col-md-6"},s("form-control-text",{key:"8c5b2839b6de605915d8e7c14a0ba22d3f440bda",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"d7eae882aea84b8562e459e66bc1ba885c4be3c7",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"2d6b33f47e4008745fd65c5ef3cb60dd92b85eba",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})),s("div",{key:"92b825163aedf052bdb89721397da69c717e595d",class:"col-12 col-md-4"},s("form-control-date",{key:"cd884b773ef0eb60effc61e8cfbf42b21620cd1c",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:t=>v(t,this.formController)})),s("div",{key:"614ba65972946645ba5c7a299c00efd0e85abf5e",class:"col-12 col-md-8"},s("form-control-number-masked",{key:"7cd9fe7a1b56d351942a0b962f3c7227459406ae",name:"identification_number",label:"SSN",defaultValue:this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:l})),s("div",{key:"ce08f35a16de4b9be65377cde0a9daa5b4cbe876",class:"col-12"},s("justifi-identity-address-form",{key:"79a7f5e8c08fc57383c1975145a6b06bd4e615dd",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate})))}};export{y as justifi_owner_form,k as owner_form_core,w as owner_form_inputs}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as e}from"./p-fad19d75.js";import{A as s}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{c as r}from"./p-ae263544.js";import{g as o,a}from"./p-8115b2f4.js";import{C as n,a as d}from"./p-14c91ffd.js";import{J as c}from"./p-63acf322.js";import"./p-4b4580dd.js";class h{async fetchQuote(t,i){return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post("insurance/quotes",JSON.stringify(i))}async toggleCoverage(t,i,e){const o=`insurance/quotes/${i}/toggle`;return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post(o,JSON.stringify(e))}}const u=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event",7),this.authToken=void 0,this.checkoutId=void 0,this.primaryIdentityFirstName=void 0,this.primaryIdentityLastName=void 0,this.primaryIdentityState=void 0,this.primaryIdentityPostalCode=void 0,this.primaryIdentityCountry=void 0,this.primaryIdentityEmailAddress=void 0,this.policyAttributesInsurableAmount=void 0,this.policyAttributesStartDate=void 0,this.policyAttributesEndDate=void 0,this.coveredIdentityFirstName=void 0,this.coveredIdentityLastName=void 0,this.getQuote=void 0,this.toggleCoverage=void 0,this.quote=void 0}async validate(){return this.seasonInterruptionCoreRef.validate()}componentWillLoad(){this.analytics=new c(this),this.initializeServiceMethods()}disconnectedCallback(){this.analytics.cleanup()}initializeServiceMethods(){this.authToken?(this.getQuote=(({authToken:t,service:i})=>async({payload:e,onSuccess:s,onError:r})=>{var d;try{const c=await i.fetchQuote(t,e);if(c.error)return r({error:o(c.error),code:a(null===(d=c.error)||void 0===d?void 0:d.code),severity:n.ERROR});s({quote:c.data})}catch(t){const i=a(null==t?void 0:t.code);return r({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new h}),this.toggleCoverage=(({authToken:t,service:i})=>async({quoteId:e,payload:s,onSuccess:r,onError:d})=>{var c;try{const h=await i.toggleCoverage(t,e,s);if(h.error)return d({error:o(h.error),code:a(null===(c=h.error)||void 0===c?void 0:c.code),severity:n.ERROR});r({quote:h.data})}catch(t){const i=a(null==t?void 0:t.code);return d({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new h})):this.errorEvent.emit({errorCode:d.MISSING_PROPS,message:"Missing authToken",severity:n.ERROR})}render(){return e("justifi-season-interruption-insurance-core",{key:"256d45d39c5d297abb7f955229b0e0e9fbc9504a",ref:t=>this.seasonInterruptionCoreRef=t,"checkout-id":this.checkoutId,getQuote:this.getQuote,toggleCoverage:this.toggleCoverage,"primary-identity-first-name":this.primaryIdentityFirstName,"primary-identity-last-name":this.primaryIdentityLastName,"primary-identity-state":this.primaryIdentityState,"primary-identity-postal-code":this.primaryIdentityPostalCode,"primary-identity-country":this.primaryIdentityCountry,"primary-identity-email-address":this.primaryIdentityEmailAddress,"policy-attributes-insurable-amount":this.policyAttributesInsurableAmount,"policy-attributes-start-date":this.policyAttributesStartDate,"policy-attributes-end-date":this.policyAttributesEndDate,"covered-identity-first-name":this.coveredIdentityFirstName,"covered-identity-last-name":this.coveredIdentityLastName})}};export{u as justifi_season_interruption_insurance}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as i,h as t,H as r}from"./p-fad19d75.js";import{E as e}from"./p-dce846bf.js";import{B as o}from"./p-75b4daef.js";import{B as a}from"./p-af244664.js";import{C as n,a as d}from"./p-14c91ffd.js";import{g as h,a as p}from"./p-8115b2f4.js";import{J as c}from"./p-63acf322.js";import"./p-ae263544.js";import"./p-29c0b182.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-4b4580dd.js";const m=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.businessId=void 0,this.authToken=void 0,this.errorMessage=void 0,this.getBusiness=void 0}componentWillLoad(){this.analytics=new c(this),this.initializeGetBusiness()}disconnectedCallback(){this.analytics.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:d.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR});this.getBusiness=(({id:s,authToken:i,service:t})=>async({onSuccess:r,onError:e})=>{var o;try{const d=await t.fetchBusiness(s,i);if(d.error)return e({error:h(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});r({business:new a(d.data)})}catch(s){const i=p(null==s?void 0:s.code);return e({error:s.message||s,code:i,severity:n.ERROR})}})({id:this.businessId,authToken:this.authToken,service:new o})}render(){return t(r,null,this.errorMessage?e(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness}))}};export{m as justifi_business_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,c as r,h as t}from"./p-fad19d75.js";import"./p-56f6ce4c.js";import{a as i}from"./p-df21aaad.js";import"./p-e3fab0e2.js";import{l as a}from"./p-83125497.js";import{c as e}from"./p-ae263544.js";import{a as s,C as f}from"./p-14c91ffd.js";import{g as c}from"./p-8115b2f4.js";import{J as b}from"./p-63acf322.js";import{B as d}from"./p-9c9c7dac.js";import{S as n}from"./p-ba4bae6f.js";import"./p-4b4580dd.js";import"./p-29c0b182.js";const l=class{constructor(t){o(this,t),this.submitted=r(this,"submitted",7),this.errorEvent=r(this,"error-event",7),this.bankAccount=void 0,this.card=void 0,this.email=void 0,this.clientId=void 0,this.authToken=void 0,this.accountId=void 0,this.submitButtonText=void 0,this.submitButtonEnabled=!0,this.isLoading=!1,this.selectedPaymentMethodType=i.card}componentWillLoad(){this.analytics=new b(this),this.validateProps()||(this.errorEvent.emit({errorCode:s.MISSING_PROPS,message:"clientId or authToken is required",severity:f.ERROR}),this.submitButtonEnabled=!1)}connectedCallback(){a()}disconnectedCallback(){this.analytics.cleanup()}async fillBillingForm(o){this.billingFormRef.fill(o)}async enableSubmitButton(){this.submitButtonEnabled=!0}async disableSubmitButton(){this.submitButtonEnabled=!1}showPaymentMethodTypeSelector(){return this.card&&this.bankAccount}getSelectedPaymentMethodType(){return this.showPaymentMethodTypeSelector()?this.selectedPaymentMethodType:this.card?i.card:this.bankAccount?i.bankAccount:i.card}paymentMethodSelectedHandler(o){this.selectedPaymentMethodType=o.detail}validateProps(){return!(!this.clientId&&!this.authToken)}getToken(){return this.authToken||this.clientId}async submit(o){if(o.preventDefault(),!this.paymentMethodFormRef||!this.billingFormRef)return;const r=await this.billingFormRef.validate(),t=await this.paymentMethodFormRef.validate();if(r.isValid&&t.isValid){this.isLoading=!0;try{const o=await this.billingFormRef.getValues(),r=Object.assign({email:this.email},o),t=await this.paymentMethodFormRef.tokenize(this.getToken(),r,this.accountId);t.error&&this.errorEvent.emit({errorCode:s.TOKENIZE_ERROR,message:t.error.message,severity:f.ERROR}),this.submitted.emit(t)}catch(o){this.errorEvent.emit({errorCode:s.UNKNOWN_ERROR,message:c(o),severity:f.ERROR})}finally{this.isLoading=!1}}}render(){return t(n,{key:"38bd6cca38d9068fa9277a8568a98f261a4cc616"},t("form",{key:"fec19f5e2f11934e6783124c4c437a2d3947f596",class:"row gy-3"},this.showPaymentMethodTypeSelector()&&t("div",{key:"18001f78e03336d01de8473a57e3e228e9fce201",class:"col-12"},t("justifi-payment-method-selector",{key:"260ac1ade3ccfe6baf518eb856bdf4d380025620",selectedPaymentMethodType:this.getSelectedPaymentMethodType(),onPaymentMethodSelected:o=>this.paymentMethodSelectedHandler(o)})),t("div",{key:"f6ade2336314e05f2bdce75df8577939efe33e3b",class:"col-12"},t("justifi-payment-method-form",{key:"ad8e5b121b8425175f7ac7f38ab24dfba1801a28","payment-method-form-type":this.getSelectedPaymentMethodType(),iframeOrigin:e.iframeOrigin,ref:o=>{o&&(this.paymentMethodFormRef=o)}})),t("div",{key:"29f15f1cece3e07a569e514d08bf9996405699c6",class:"col-12"},t("justifi-billing-form",{key:"9928924cc29bfa5c5e46ada294cb26da0c1d222b",legend:"Billing Info",ref:o=>{o&&(this.billingFormRef=o)}})),t("slot",{key:"c36583ab34bc105b506df27aec02898455855cec",name:"insurance"}),t("div",{key:"cc38292ae8a59bc6f4624a8535e8b7c93e6f3a35",class:"col-12"},t(d,{key:"e5fe0f50ee2322ab2a199a6229015c9daa198cc0",variant:"primary",type:"submit",onClick:o=>this.submit(o),disabled:!this.submitButtonEnabled||this.isLoading,isLoading:this.isLoading,"data-testid":"submit-button",style:{width:"100%"}},this.submitButtonText||"Submit"))))}};l.style=":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";export{l as justifi_payment_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={name:"@justifi/webcomponents",version:"4.19.0",description:"JustiFi Web Components",collection:"dist/collection/collection-manifest.json",main:"dist/index.cjs.js",module:"dist/module/index.js",types:"dist/module/index.d.ts",repository:{type:"git",url:"git+https://github.com/justifi-tech/web-component-library.git"},homepage:"https://storybook.justifi.ai/?path=/docs/introduction--docs",publishConfig:{registry:"https://registry.npmjs.org"},files:["dist/"],scripts:{build:"stencil build --docs",dev:"stencil build --watch",lint:"eslint . --max-warnings 0",clean:"rm -rf .turbo && rm -rf node_modules && rm -rf dist",generate:"stencil generate",test:"TZ=utc stencil test --spec","test:watch":"TZ=utc stencil test --spec --watchAll","test:e2e":"stencil test --e2e","test:file":"stencil test --spec --watch --"},dependencies:{"@stencil/core":"^4.0.5","@stencil/store":"^2.0.8",bootstrap:"^5.2.3","chart.js":"^4.4.1","date-fns":"^2.29.3","dinero.js":"^1.9.1","iframe-resizer":"^4.3.7",imask:"^7.6.0",rxjs:"^7.8.1","ts-dedent":"^2.2.0",uuid:"^9.0.0",yup:"^1.0.0"},devDependencies:{"@babel/preset-env":"^7.21.5","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.5","@stencil/sass":"^3.0.1","@types/jest":"27.0.3","@types/node":"^20.1.4","@types/react":"^18.0.37","@types/react-dom":"^18.0.11",dotenv:"^16.3.1",jest:"^29.7.0","jest-cli":"^29.7.0","jest-environment-node":"^29.7.0",puppeteer:"^21.0.0","ts-jest":"^29.1.2"},license:"MIT",gitHead:"507bac1d941eae6e1f56e185ecd9bc9d22637783"};export{e as p}
|