@justifi/webcomponents 4.19.0 → 4.19.1-rc-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-ff013cbc.js → Analytics-1ca4e47e.js} +2 -3
- package/dist/cjs/{business.service-f63650f5.js → business.service-6bb7ac82.js} +5 -6
- package/dist/cjs/{get-payout-csv-f3aee6d0.js → get-payout-csv-1391ff3e.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 +3 -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 +11 -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-bc2632e4.js} +2 -4
- package/dist/cjs/{payment.service-0a64f9cd.js → payment.service-dfcfa19b.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 +4 -4
- package/dist/collection/components/checkout/new-payment-method.js +6 -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-c51439be.js} +2 -3
- package/dist/esm/{business.service-74bd1212.js → business.service-f45decfc.js} +5 -6
- package/dist/esm/{get-payout-csv-b494abfe.js → get-payout-csv-e784a2ab.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 +3 -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 +11 -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-09a354e0.js} +2 -4
- package/dist/esm/{payment.service-3ca4a492.js → payment.service-dad5153b.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 +3 -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 +5 -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/types/components/checkout/new-payment-method.d.ts +1 -0
- package/dist/webcomponents/index.esm.js +1 -0
- package/dist/webcomponents/p-01a404ca.entry.js +44 -0
- package/dist/webcomponents/p-03d35880.entry.js +130 -0
- package/dist/webcomponents/p-06ff0429.entry.js +65 -0
- package/dist/webcomponents/p-08b0fb31.js +41 -1
- package/dist/webcomponents/p-14c91ffd.js +20 -1
- package/dist/webcomponents/p-1a17ea7d.entry.js +1684 -0
- package/dist/webcomponents/p-1ad5995e.js +3599 -1
- package/dist/webcomponents/p-1ff8810b.js +29 -1
- package/dist/webcomponents/p-21aeb013.entry.js +80 -0
- package/dist/webcomponents/p-2338affa.js +213 -1
- package/dist/webcomponents/p-258b1ee2.entry.js +149 -0
- package/dist/webcomponents/p-25d8cd65.entry.js +102 -0
- package/dist/webcomponents/p-29c0b182.js +114 -1
- package/dist/webcomponents/p-2b6c9c4f.js +7 -1
- package/dist/webcomponents/p-2dabeb5a.js +79 -0
- package/dist/webcomponents/p-2eab3c90.js +3052 -1
- package/dist/webcomponents/p-33272d05.entry.js +94 -0
- package/dist/webcomponents/p-3642ad71.entry.js +145 -0
- package/dist/webcomponents/p-387450f6.js +77 -0
- package/dist/webcomponents/p-3e9ef4a8.js +28 -0
- package/dist/webcomponents/p-3fd13ca3.js +52 -1
- package/dist/webcomponents/p-41bc7c5c.entry.js +97 -0
- package/dist/webcomponents/p-4d8b45c6.entry.js +98 -0
- package/dist/webcomponents/p-525db3e8.js +22 -1
- package/dist/webcomponents/p-5482d030.entry.js +21 -0
- package/dist/webcomponents/p-56f6ce4c.js +10 -1
- package/dist/webcomponents/p-576826b1.entry.js +43 -0
- package/dist/webcomponents/p-5968ff8a.js +178 -1
- package/dist/webcomponents/p-5bd7b204.entry.js +75 -0
- package/dist/webcomponents/p-5cb3f0b2.entry.js +261 -0
- package/dist/webcomponents/p-5e70442b.entry.js +74 -0
- package/dist/webcomponents/p-5f835b89.entry.js +606 -0
- package/dist/webcomponents/p-6078a370.js +244 -1
- package/dist/webcomponents/p-68843186.entry.js +73 -0
- package/dist/webcomponents/p-70a2aa74.entry.js +76 -0
- package/dist/webcomponents/p-7582b554.entry.js +18 -0
- package/dist/webcomponents/p-79646550.entry.js +61 -0
- package/dist/webcomponents/p-7c76e67c.entry.js +117 -0
- package/dist/webcomponents/p-7d85af5c.js +16 -1
- package/dist/webcomponents/p-800d31fe.entry.js +162 -0
- package/dist/webcomponents/p-8115b2f4.js +28 -1
- package/dist/webcomponents/p-83125497.js +4027 -1
- package/dist/webcomponents/p-85fc69e5.js +90 -1
- package/dist/webcomponents/p-890088fc.entry.js +298 -0
- package/dist/webcomponents/p-89887332.js +301 -1
- package/dist/webcomponents/p-8df7bde8.js +27 -1
- package/dist/webcomponents/p-8eb774df.entry.js +54 -0
- package/dist/webcomponents/p-9c9c7dac.js +24 -1
- package/dist/webcomponents/p-9f94bbb6.entry.js +118 -0
- package/dist/webcomponents/p-a5a225d9.entry.js +125 -0
- package/dist/webcomponents/p-a5c5821e.entry.js +101 -0
- package/dist/webcomponents/p-a5fb51dc.entry.js +131 -0
- package/dist/webcomponents/p-a6d04afc.js +44 -0
- package/dist/webcomponents/p-ac086069.entry.js +58 -0
- package/dist/webcomponents/p-af244664.js +126 -1
- package/dist/webcomponents/p-b82c146f.entry.js +111 -0
- package/dist/webcomponents/p-b8a03a4b.entry.js +131 -0
- package/dist/webcomponents/p-ba4bae6f.js +12 -1
- package/dist/webcomponents/p-ba5fae28.js +90 -1
- package/dist/webcomponents/p-c636f563.entry.js +791 -0
- package/dist/webcomponents/p-c86c24d2.entry.js +94 -0
- package/dist/webcomponents/p-cb26f708.js +18 -0
- package/dist/webcomponents/p-ce733539.entry.js +99 -0
- package/dist/webcomponents/p-d17aee2b.entry.js +26 -0
- package/dist/webcomponents/p-d5095f6c.entry.js +133 -0
- package/dist/webcomponents/p-d89bad72.js +39 -1
- package/dist/webcomponents/p-dce846bf.js +27 -1
- package/dist/webcomponents/p-df21aaad.js +120 -1
- package/dist/webcomponents/p-e1255160.js +3 -1
- package/dist/webcomponents/p-e333620e.js +34 -1
- package/dist/webcomponents/p-e356f280.entry.js +29 -0
- package/dist/webcomponents/p-e3fab0e2.js +43 -1
- package/dist/webcomponents/p-ec854a3e.entry.js +11053 -0
- package/dist/webcomponents/p-f02b75dc.entry.js +96 -0
- package/dist/webcomponents/p-fad19d75.js +1638 -2
- package/dist/webcomponents/webcomponents.css +362 -4
- package/dist/webcomponents/webcomponents.esm.js +20 -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-07109641.entry.js +0 -1
- package/dist/webcomponents/p-0f7b9555.entry.js +0 -1
- package/dist/webcomponents/p-17e4246f.entry.js +0 -1
- package/dist/webcomponents/p-195f92e9.entry.js +0 -1
- package/dist/webcomponents/p-1a43e355.entry.js +0 -19
- 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-301e0493.entry.js +0 -1
- package/dist/webcomponents/p-304dd644.entry.js +0 -1
- package/dist/webcomponents/p-30a493cd.entry.js +0 -1
- package/dist/webcomponents/p-462dc522.entry.js +0 -1
- package/dist/webcomponents/p-487b72a8.entry.js +0 -1
- package/dist/webcomponents/p-4abc17f0.entry.js +0 -1
- package/dist/webcomponents/p-4b4580dd.js +0 -1
- package/dist/webcomponents/p-52021fa1.entry.js +0 -1
- package/dist/webcomponents/p-53e64f15.entry.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-62b32c4c.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-8e541a32.entry.js +0 -1
- package/dist/webcomponents/p-9279aa49.entry.js +0 -1
- package/dist/webcomponents/p-96b42e7d.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-bbed6107.entry.js +0 -1
- package/dist/webcomponents/p-bc92235c.entry.js +0 -1
- package/dist/webcomponents/p-be39c802.entry.js +0 -1
- package/dist/webcomponents/p-c4b87db2.entry.js +0 -1
- package/dist/webcomponents/p-c9f8f7ec.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-d8355f91.entry.js +0 -1
- package/dist/webcomponents/p-e2c88817.entry.js +0 -1
- package/dist/webcomponents/p-e31f0f3e.entry.js +0 -1
- package/dist/webcomponents/p-e7067ef2.entry.js +0 -1
- package/dist/webcomponents/p-f0866375.entry.js +0 -1
- package/dist/webcomponents/p-fb58feb5.entry.js +0 -1
- package/dist/webcomponents/p-fe33151d.entry.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-fad19d75.js";import{u as d,a as t,b as c}from"./p-7d85af5c.js";import{P as i,S as l}from"./p-525db3e8.js";import"./p-1ff8810b.js";import"./p-6078a370.js";const s=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{d(this.formController,{[e]:a})},this.onAddressFormUpdate=e=>{t(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))},this.representativeDefaultValue=void 0,this.errors=void 0,this.formController=void 0}render(){var e,d,t,s,o,r,f;return a("form",{key:"8b46b3b30681c7e7f30395a2cac575a7bd7ac998"},a("fieldset",{key:"e6b8f2ebca22c295fd6897c0e8862200171c2b4d"},a("legend",{key:"8f8f52240f5ccc3f5d43507681dc970b4260bb1b"},"Representative"),a("hr",{key:"8b07c69a514534ab731e7c01b6ee4c7a0e59e06e"}),a("div",{key:"79f44ba9dcbcf9d010aed92e332f686ca7127285",class:"row gy-3"},a("div",{key:"2a1aeb5ddee1dafc40e108cfb2e9ed6f4d8bc183",class:"col-12 col-md-8"},a("form-control-text",{key:"6e089f2d4f734da266e94b38ec1435dc3f461d5f",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"c86421e524752e017180aef58e01229bf751e941",class:"col-12 col-md-4"},a("form-control-text",{key:"ad8105f6d9a46397eb481666c19468376716544c",name:"title",label:"Title",defaultValue:null===(d=this.representativeDefaultValue)||void 0===d?void 0:d.title,errorText:this.errors.title,inputHandler:this.inputHandler})),a("div",{key:"7775905e46c00337a98ab668c8453e14d27bfc4d",class:"col-12 col-md-6"},a("form-control-text",{key:"e810f2395101a1e48d8d3ff66617ac82d0ec90b3",name:"email",label:"Email Address",defaultValue:null===(t=this.representativeDefaultValue)||void 0===t?void 0:t.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"66a91e85d1902e32668407e684774820c02dce67",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"aad97ca95c5b2ec728ea00916a46ff4b84661b96",name:"phone",label:"Phone Number",defaultValue:null===(s=this.representativeDefaultValue)||void 0===s?void 0:s.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:i.US})),a("div",{key:"3cd56ea0ac1e472e905c8113f6335868c39882f1",class:"col-12 col-md-4"},a("form-control-date",{key:"2f6d505220cacc08a80029ada089370f3841d9ed",name:"dob_full",label:"Birth Date",defaultValue:null===(o=this.representativeDefaultValue)||void 0===o?void 0:o.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>c(e,this.formController)})),a("div",{key:"cf2df0af006a50d3533b798607025b4d6ee82ca0",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"033e4264a1466d300891b2328c0bfaced7acb04d",name:"identification_number",label:"SSN",defaultValue:null===(r=this.representativeDefaultValue)||void 0===r?void 0:r.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:l})),a("div",{key:"2dc7be12d65203da4d4e0bdd995256a7bdc5bf37",class:"col-12"},a("justifi-identity-address-form",{key:"47916ab24bf990be3541b72bfa2dc46cccca5a31",errors:this.errors.address,defaultValues:null===(f=this.representativeDefaultValue)||void 0===f?void 0:f.address,handleFormUpdate:this.onAddressFormUpdate})))))}};export{s as justifi_business_representative_form_inputs}
|
|
@@ -1 +0,0 @@
|
|
|
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 d}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{c as s}from"./p-ae263544.js";import{C as n}from"./p-525db3e8.js";import{S as f}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=d({authToken:this.authToken,apiOrigin:s.proxyApiOrigin})}render(){var o;return t(f,{key:"d0d0962eaecab749aa1eb124e86701a2fb4dfd53"},t("h1",{key:"cb3071d89c291b1664e551fcf2808a64569ba5eb"},"Refund"),this.refundInfoText&&t("div",{key:"01a6f4567f882d2eec492ef6d98db7d04747ecb4",class:"d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3",role:"alert"},t("img",{key:"8ae5928aaf8ead35a7ad180a01bdde05ebec3d5f",src:"/info-icon.svg",alt:"Information",height:"30",width:"30"}),t("p",{key:"425a7dfe9d8b886b55fd0878f3989373733c1758",class:"m-0",innerHTML:this.refundInfoText})),t("form",{key:"5516d2ac500611d2410b9b4c2a4d0d15e417b2d1",onSubmit:o=>this.handleSubmit(o),class:"d-grid gap-4"},t("div",{key:"b67a7c56f070a5a25d91aa0cc77755b27d420fdc",class:"form-group"},t("form-control-monetary",{key:"76b6cfdf2b39674434f4d880333dd5d5f603f0b6",name:"amount",label:"Refund Amount",defaultValue:(null===(o=this.amount)||void 0===o?void 0:o.toString())||"",maskOptions:n.DECIMAL,inputHandler:(o,r)=>this.handleInput(o,r),errorText:this.errors.amount})),t("div",{key:"5e581cdea69d2ce9dbad774214cd904923d199b3",class:"form-group"},t("form-control-text",{key:"926ae888676a4089d3381bd4d650e6f84f6e206a",name:"notes",label:"Additional Notes",inputHandler:(o,r)=>this.handleInput(o,r),errorText:this.errors.notes})),this.withButton&&t("div",{key:"de5df506b7b64a69a16241f117bf9bea4fd79b57",class:"form-group d-flex flex-row-reverse"},t("button",{key:"92ad4d43677587c2c20dc03c6f03a6cf1f20ac12",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 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t,h as i}from"./p-fad19d75.js";import{a as e}from"./p-d89bad72.js";import{a as r,C as o}from"./p-14c91ffd.js";import{a as h}from"./p-1ff8810b.js";import{S as a}from"./p-ba4bae6f.js";import"./p-6078a370.js";const n=class{constructor(i){s(this,i),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.submitted=t(this,"submitted",7),this.setBusinessProvisioned=()=>{this.getBusiness({onSuccess:s=>{this.businessProvisioned=h(s.data),this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:r.PROVISIONING_REQUESTED,severity:o.INFO})},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({message:s,errorCode:t,severity:i})}})},this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitted.emit({data:{response:s}})},onError:({error:s,code:t,severity:i})=>{this.submitted.emit({data:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:i})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:e.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})},this.loading=!1,this.businessProvisioned=!1,this.currentStep=0,this.errorMessage=void 0,this.businessId=void 0,this.authToken=void 0,this.allowOptionalFields=!1,this.formTitle=void 0,this.getBusiness=void 0,this.postProvisioning=void 0}componentWillLoad(){this.getBusiness&&this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.documentUploadRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`${this.currentStep+1} of ${this.totalSteps+1}`}handleFormLoading(s){this.loading=s.detail}render(){return i(a,{key:"80f2730a6a4e273391888b086c3633a3dec012b8",exportparts:"label,input,input-invalid"},i("div",{key:"b4e7be2fed14b404ee7bcbe42c3c1c54bb78fdb6",class:"row gap-3"},i("h1",{key:"f477beb7934a94a74dfc6b8a9c18cc54a720f70e"},this.formTitle),i("justifi-payment-provisioning-form-steps",{key:"e74aa3a01cfe7550f4917d28ccda1aca211d9394",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,handleFormLoading:this.handleFormLoading,onFormCompleted:()=>this.postProvisioningData()}),i("div",{key:"26a585ec4b6b677cb01ac17696269168887f4c76",class:"d-flex justify-content-between align-items-center"},i("div",{key:"ca5ddc176f8c2eb3315620076b401e47f45039bd",class:"d-flex align-items-center"},this.stepCounter),i("justifi-payment-provisioning-form-buttons",{key:"8299387bf859b33c829d29d66947c3c053ffa53c",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{n as justifi_payment_provisioning_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-fad19d75.js";import{m as o,P as e}from"./p-8603348a.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import{P as r}from"./p-e3fab0e2.js";import{C as a,a as h}from"./p-14c91ffd.js";import{g as p,a as d}from"./p-8115b2f4.js";import{E as n}from"./p-dce846bf.js";import{J as c}from"./p-63acf322.js";import"./p-29c0b182.js";import"./p-ae263544.js";import"./p-4b4580dd.js";const m=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.payoutId=void 0,this.authToken=void 0,this.getPayout=void 0,this.getPayoutCSV=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new c(this),this.initializeServices()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var h;try{const n=await i.fetchPayout(t,s);n.error?e({error:p(n.error),code:d(null===(h=n.error)||void 0===h?void 0:h.code),severity:a.ERROR}):o(new r(n.data))}catch(t){e({error:p(t),code:d(null==t?void 0:t.code),severity:a.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new e}),this.getPayoutCSV=o({authToken:this.authToken,service:new e})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:h.MISSING_PROPS,severity:a.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_payout_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as a}from"./p-fad19d75.js";import{I as s}from"./p-1ad5995e.js";import{S as d}from"./p-6078a370.js";import{n as o}from"./p-8df7bde8.js";const l=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.handleFormControlInput=t=>{const e=t.target,i=e.getAttribute("name");this.inputHandler(i,e.value),this.formControlInput.emit({name:i,value:e.value})},this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.inputHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}render(){return i(a,{key:"fa61a426a5a070d951fa425ae42a59add69a9d96",exportparts:"label,input,input-invalid"},i("label",{key:"e7679e6a66277a130414b59421b01d1f8e328cf2",part:"label",class:"form-label",htmlFor:this.name},this.label),i("input",{key:"b3fb4afd3181fec3eef3dfb851ab8965cb7bbfe7",type:"date",ref:t=>this.dateInput=t,id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:`input ${this.errorText&&"input-invalid"}`,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled}),i("form-control-help-text",{key:"dbc9ac76d75521a7d1ee5cc34393471521ffa1c2",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"0f9731278250bde69dd7dee9a7b44e339d919774",errorText:this.errorText,name:this.name}))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},r=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.imask=null,this.initializeIMask=()=>{this.textInput&&(this.imask=s(this.textInput,{mask:this.mask}),this.imask.on("accept",(()=>{var t;const e=null===(t=this.imask)||void 0===t?void 0:t.unmaskedValue;void 0!==e&&this.inputHandler(this.name,e)})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const e=t.target,i=e.getAttribute("name");this.formControlInput.emit({name:i,value:e.value})},this.updateInput=t=>{this.imask&&t&&(this.imask.value=String(t))},this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.inputHandler=void 0,this.mask=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.initializeIMask(),this.updateInput(t)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}componentDidLoad(){this.textInput&&(this.initializeIMask(),this.updateInput(this.defaultValue))}render(){return i(a,{key:"e0a59308376055c019233f3d4649c9a37af963d2",exportparts:"label,input,input-invalid"},i("div",{key:"52d9440421342fed6a4f97b57586a43d517ded7d",class:"form-group d-flex flex-column"},i("label",{key:"8302a9fa1111d3b72600304cd0b1fb2c6239d895",part:"label",class:"form-label",htmlFor:this.name},this.label),i("input",{key:"86653c7b7f4efb9609bae2ecf69bd5e396bd342b",ref:t=>this.textInput=t,id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:`input ${this.errorText&&"input-invalid"}`,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),i("form-control-help-text",{key:"71d4d44ff91d06229ccc22e70bc92e0a2050da90",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"b7d42462ae9165acbde68cf59da07eb956a91fd6",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},n=class{constructor(e){t(this,e),this.inputHandler=(t,e)=>{this.address[t]=e,this.address=Object.assign({},this.address)},this.handleFormUpdate=void 0,this.errors=void 0,this.defaultValues=void 0,this.address={}}handleAddressChange(t){this.handleFormUpdate(t)}render(){var t,e,s,l,r,n,h,c,f,b,u,v;return i(a,{key:"d090676d3bb1d9de9ae947ff25d94b5985ace914",exportparts:"label,input,input-invalid"},i("div",{key:"64ddec6db508d27b709ad551f60fe58494631fe3",class:"row gy-3"},i("div",{key:"7e0f89b7b8d5a466b89efad75498c5d1f2cac8ea",class:"col-12 col-md-8"},i("form-control-text",{key:"ea6055fb3457e28666b11b72173ad70b83a87659",name:"line1",label:"Street Address",defaultValue:null===(t=this.defaultValues)||void 0===t?void 0:t.line1,errorText:null===(e=this.errors)||void 0===e?void 0:e.line1,inputHandler:this.inputHandler})),i("div",{key:"5f6f456c573fb9318e58976decb67274b209fa23",class:"col-12 col-md-4"},i("form-control-text",{key:"86fffd4641953d0445a7c24d332cda513121b65e",name:"line2",label:"Apartment, Suite, etc. (optional)",defaultValue:null===(s=this.defaultValues)||void 0===s?void 0:s.line2,errorText:null===(l=this.errors)||void 0===l?void 0:l.line2,inputHandler:this.inputHandler})),i("div",{key:"e06339cefebe37ae0629631fbc5101c9dbc040a6",class:"col-12"},i("form-control-text",{key:"d2af696b33092247b6741c8034aaf12ab51aa878",name:"city",label:"City",defaultValue:null===(r=this.defaultValues)||void 0===r?void 0:r.city,errorText:null===(n=this.errors)||void 0===n?void 0:n.city,inputHandler:this.inputHandler})),i("div",{key:"b655a66fb68f059fa91ae5f9f60fdebe0ae04fad",class:"col-12 col-md-6"},i("form-control-select",{key:"50a65861a5a39daac199571c5a0273340556e476",name:"state",label:"State",defaultValue:null===(h=this.defaultValues)||void 0===h?void 0:h.state,options:d,errorText:null===(c=this.errors)||void 0===c?void 0:c.state,inputHandler:this.inputHandler})),i("div",{key:"30255517e0fa1ede35d7b2525625ebc389c44525",class:"col-12 col-md-6"},i("form-control-text",{key:"b7b0a773c7b2dbe05c4bf8e9fc7235a01bf36832",name:"postal_code",label:"Postal Code",defaultValue:null===(f=this.defaultValues)||void 0===f?void 0:f.postal_code,errorText:null===(b=this.errors)||void 0===b?void 0:b.postal_code,maxLength:5,keyDownHandler:o,inputHandler:this.inputHandler})),i("div",{key:"804e9aa1ca7b4ae167ae64969107ad6352559ed7",class:"col-12"},i("form-control-select",{key:"1aa3734e10502bc8f1732f386b60135b8a7d94a6",name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null===(u=this.defaultValues)||void 0===u?void 0:u.country,errorText:null===(v=this.errors)||void 0===v?void 0:v.country,disabled:!0}))))}static get watchers(){return{address:["handleAddressChange"]}}};export{l as form_control_date,r as form_control_number_masked,n as justifi_identity_address_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-fad19d75.js";import{P as r}from"./p-d101c5db.js";import"./p-56f6ce4c.js";import{P as e}from"./p-df21aaad.js";import"./p-e3fab0e2.js";import{C as o,a}from"./p-14c91ffd.js";import{g as n,a as p}from"./p-8115b2f4.js";import{E as c}from"./p-dce846bf.js";import{J as h}from"./p-63acf322.js";import"./p-29c0b182.js";import"./p-ae263544.js";import"./p-4b4580dd.js";const d=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.accountId=void 0,this.authToken=void 0,this.getPayments=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new h(this),this.initializeGetPayments()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:a,onError:c})=>{var h,d;try{const m=await i.fetchPayments(t,s,r);if(m.error)return c({error:n(m.error),code:p(null===(d=m.error)||void 0===d?void 0:d.code),severity:o.ERROR});{const t=Object.assign({},m.page_info);a({payments:(null===(h=m.data)||void 0===h?void 0:h.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=p(null==t?void 0:t.code);return c({error:t.message||t,code:s,severity:o.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new r}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}render(){return this.errorMessage?c(this.errorMessage):i("payments-list-core",{getPayments:this.getPayments,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_payments_list}
|
|
@@ -1 +0,0 @@
|
|
|
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-ae263544.js";class s{async fetchPayments(s,e,p){return a({authToken:e,apiOrigin:t.proxyApiOrigin}).get(`account/${s}/payments`,p)}async fetchPayment(s,e){const p=`payments/${s}`;return a({authToken:e,apiOrigin:t.proxyApiOrigin}).get(p)}}export{s as P}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as a}from"./p-fad19d75.js";import{c as o}from"./p-ae263544.js";import{J as r}from"./p-63acf322.js";import"./p-4b4580dd.js";import"./p-29c0b182.js";const i=class{constructor(a){e(this,a),this.bankAccountFormReady=t(this,"bankAccountFormReady",7),this.ready=t(this,"ready",7),this.bankAccountFormTokenized=t(this,"bankAccountFormTokenize",7),this.bankAccountFormValidated=t(this,"bankAccountFormValidate",7),this.validationMode=void 0,this.iframeOrigin=o.iframeOrigin,this.internalStyleOverrides=void 0}readyHandler(e){console.warn("The 'bankAccountFormReady' event is deprecated in the next major release and will be renamed to 'ready'"),this.bankAccountFormReady.emit(e),this.ready.emit(e)}tokenizeHandler(e){console.warn("The 'bankAccountFormTokenized' 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.bankAccountFormTokenized.emit(e)}validateHandler(e){console.warn("The 'bankAccountFormValidate' 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.bankAccountFormValidated.emit(e)}componentWillLoad(){this.analytics=new r(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 a("justifi-payment-method-form",{key:"e2fa64d199a6c550329c9797a6951335e7c12bc6",ref:e=>{e&&(this.childRef=e)},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"bankAccount","payment-method-form-ready":this.bankAccountFormReady,"payment-method-form-validated":this.bankAccountFormValidated,"payment-method-form-tokenize":this.bankAccountFormTokenized,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{i as justifi_bank_account_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as s}from"./p-fad19d75.js";import{I as a}from"./p-1ad5995e.js";import{C as o}from"./p-525db3e8.js";const r=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.imask=null,this.initializeIMask=()=>{this.textInput&&(this.imask=a(this.textInput,this.maskOptions),this.imask.on("accept",(()=>{const t=this.imask.unmaskedValue;this.inputHandler(this.name,t),this.formControlInput.emit({name:this.name,value:t})})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const e=t.target.getAttribute("name");this.formControlInput.emit({name:e,value:this.imask.unmaskedValue})},this.updateInput=t=>{this.imask&&(this.imask.value=String(t))},this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.inputHandler=void 0,this.maskOptions=o.DECIMAL,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.initializeIMask(),this.updateInput(this.defaultValue)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}render(){return i(s,{key:"8797b3aa5c6a30f472d51e2b9437b6158b0566fc",exportparts:"label,input,input-group-input,input-group-text,input-invalid"},i("div",{key:"0d3e068cf104aec3f6250f5cd6c00a9342928fe8",class:"form-group d-flex flex-column"},i("label",{key:"0e86db7c0d981bdae74c51dd75bf5579d07b4793",part:"label",class:"form-label",htmlFor:this.name},this.label),i("div",{key:"8fc773de3995bb37e6fa00b34d8d9e2deaef4bbd",class:"input-group"},i("span",{key:"83860eac764be9eeea31302d60525fb56af9dc1d",class:"input-group-text",part:"input-group-text"},"$"),i("input",{key:"b8c655c0b8eeb6ec328eeaed651773c293aa3100",ref:t=>this.textInput=t,id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:`input input-group-input ${this.errorText&&"input-invalid"}`,class:this.errorText?"form-control monetary is-invalid":"form-control monetary",type:"text",disabled:this.disabled})),i("form-control-help-text",{key:"b3f142b9c67a792a96b597bdaf91fd3abe1b7ce3",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"daefe97a15bde309c397a506de6cda9a0376323b",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{r as form_control_monetary}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,c as r,h as a,F as t}from"./p-fad19d75.js";import"./p-56f6ce4c.js";import{a as i}from"./p-df21aaad.js";import"./p-e3fab0e2.js";const d={bankAccount:"Bank Account",card:"Card"},e=class{constructor(a){o(this,a),this.paymentMethodSelected=r(this,"paymentMethodSelected",7),this.paymentMethodTypes=[i.card,i.bankAccount],this.selectedPaymentMethodType=void 0}onChangeHandler(o){this.paymentMethodSelected.emit(o.target.value)}render(){return a("div",{key:"a0cd592094f7f69955469de84addde1d4bc5af4d",class:"btn-group jfi-btn-radio-group",role:"group","aria-label":"Radio toggle group for payment method"},this.paymentMethodTypes.map((o=>a(t,null,a("input",{id:o,type:"radio",name:"paymentMethodType",value:o,onChange:o=>this.onChangeHandler(o),checked:this.selectedPaymentMethodType===o,class:"btn-check jfi-btn-radio"}),a("label",{htmlFor:o,class:"btn btn-outline-primary jfi-btn-radio-label"},d[o])))))}};e.style=":host{display:block}.jfi-btn-radio+.jfi-btn-radio-label{color:var(--jfi-radio-button-color);background-color:var(--jfi-radio-button-background-color);border-color:var(--jfi-radio-button-border-color);padding:var(--jfi-radio-button-padding);font-size:var(--jfi-radio-button-font-size)}.jfi-btn-radio:focus+.jfi-btn-radio-label{box-shadow:var(--jfi-box-shadow-focus)}.jfi-btn-radio+.jfi-btn-radio-label:hover{color:var(--jfi-radio-button-color-hover);border-color:var(--jfi-radio-button-border-color-hover);background-color:var(--jfi-radio-button-background-color-hover)}.jfi-btn-radio:checked+.jfi-btn-radio-label:hover{color:var(--jfi-radio-button-color-selected-hover);border-color:var(--jfi-radio-button-border-color-selected-hover);background-color:var(--jfi-radio-button-background-color-selected-hover)}.jfi-btn-radio:checked+.jfi-btn-radio-label{color:var(--jfi-radio-button-color-selected);background-color:var(--jfi-radio-button-background-color-selected);border-color:var(--jfi-radio-button-border-color-selected)}.jfi-btn-radio-group{font-family:var(--jfi-layout-font-family);display:inline-flex;width:var(--jfi-radio-button-group-width)}";export{e as justifi_payment_method_selector}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as a,g as s}from"./p-fad19d75.js";const o=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.handleFormControlInput=t=>{const e=t.target,i=e.getAttribute("name");this.inputHandler(i,e.value),this.formControlInput.emit({name:i,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("input");e&&(e.value=t||"")},this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.inputHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}render(){return i(a,{key:"dd43d75b327c05e75b453b954346c6ffcd85a2f5",exportparts:"label,input,input-invalid"},i("div",{key:"5215f62251bd89be493ddffe46bf0c466b42e314",class:"form-group d-flex flex-column"},i("label",{key:"f0409970f8d43bcdef92b81363cc24aa1bb691a0",part:"label",class:"form-label",htmlFor:this.name},this.label),i("input",{key:"9c6a5899e64ba1a8af6af80c63b6a0895351da63",id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:`input ${this.errorText&&"input-invalid"}`,class:this.errorText?"form-control is-invalid":"form-control",type:"number",disabled:this.disabled}),i("form-control-help-text",{key:"cd7b4a724427383cafc04137f6feca473695b020",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"04748d3c5b1067b0312a2b7c36369e2a21a7215f",errorText:this.errorText,name:this.name})))}get el(){return s(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{o as form_control_number}
|
|
@@ -1 +0,0 @@
|
|
|
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-8603348a.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import{P as n}from"./p-e3fab0e2.js";import{C as p,a as c}from"./p-14c91ffd.js";import{g as h,a as d}from"./p-8115b2f4.js";import{E as u}from"./p-dce846bf.js";import{J as m}from"./p-63acf322.js";import"./p-29c0b182.js";import"./p-ae263544.js";import"./p-4b4580dd.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,c;try{const u=await i.fetchPayouts(t,s,r);if(u.error)return e({error:h(u.error),code:d(null===(c=u.error)||void 0===c?void 0:c.code),severity:p.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:h(t),code:d(null==t?void 0:t.code),severity:p.ERROR})}})(t),this.getPayoutCSV=e(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:c.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}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,H as s,g as o}from"./p-fad19d75.js";const a=class{constructor(e){t(this,e),this.formControlInput=i(this,"formControlInput",7),this.formControlBlur=i(this,"formControlBlur",7),this.fileSelected=i(this,"fileSelected",7),this.handleFormControlInput=t=>{const i=t.target,e=i.getAttribute("name");this.inputHandler(e,i.value),this.formControlInput.emit({name:e,value:i.value})},this.changeHandler=()=>{const t=this.fileInput.files;t&&this.fileSelected.emit({fileList:t,document_type:this.documentType})},this.files=void 0,this.fileString=void 0,this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.multiple=void 0,this.documentType=void 0,this.inputHandler=void 0,this.disabled=void 0}componentDidLoad(){this.fileInput=this.el.querySelector("input")}render(){return e(s,{key:"ed29128c1c4c811aa030697347adb88e0143b031",exportparts:"label,input,input-invalid"},e("div",{key:"6c924bdbbccae8e98a382a92e54c5b9c288de8d4",class:"form-group d-flex flex-column"},e("label",{key:"dbacccea94e39815737683495e3df83b514b79af",part:"label",class:"form-label",htmlFor:this.name},this.label),e("input",{key:"a7eef53c9fff54eace8c6960b8c62a833d30bfa3",ref:t=>this.fileInput=t,type:"file",name:this.name,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?" input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onBlur:()=>this.formControlBlur.emit()}),e("form-control-help-text",{key:"a5abacb92bdb3fb59d0a2265114e858540f2c4b7",helpText:this.helpText,name:this.name}),e("form-control-error-text",{key:"6eeeef347237d363d3bc6616d58f19a7f0be7e3c",errorText:this.errorText,name:this.name})))}get el(){return o(this)}};export{a as form_control_file}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as e,h as i}from"./p-fad19d75.js";import{L as t,E as r}from"./p-dce846bf.js";import{S as o}from"./p-ba4bae6f.js";var a;!function(s){s.LOADING="loading",s.READY="ready",s.ERROR="error"}(a||(a={}));const n=class{constructor(i){s(this,i),this.errorEvent=e(this,"error-event",7),this.getBusiness=void 0,this.business=void 0,this.renderState=a.LOADING,this.errorMessage="An error ocurred."}async componentWillLoad(){this.getBusiness&&this.fetchData()}fetchData(){this.renderState=a.LOADING,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.renderState=a.READY},onError:({error:s,code:e,severity:i})=>{this.errorMessage=s,this.renderState=a.ERROR,this.errorEvent.emit({errorCode:e,message:s,severity:i})}})}render(){return this.renderState===a.LOADING?i(o,null,t()):this.renderState===a.ERROR?i(o,null,r(this.errorMessage)):i(o,null,i("generic-info-details",{business:this.business}),i("legal-address-details",{legalAddress:this.business.legal_address}),i("representative-details",{representative:this.business.representative}),i("owner-details",{owners:this.business.owners}),i("additional-questions-details",{additionalQuestions:this.business.additional_questions}))}};export{n as business_details_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as a,c as e}from"./p-fad19d75.js";import{p as s}from"./p-56f6ce4c.js";import"./p-df21aaad.js";import{a as c,b as r}from"./p-e3fab0e2.js";import{b as o,c as i,f as d}from"./p-83125497.js";import{a as n,C as h}from"./p-14c91ffd.js";import{t as b}from"./p-2b6c9c4f.js";import{S as l}from"./p-ba4bae6f.js";import{T as f,a as p,b as u}from"./p-e333620e.js";const y=a=>t("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},a),t("path",{d:"M12 15.5l-5-5 1.41-1.41L12 12.67l3.59-3.58L17 10.5l-5 5z"}),t("path",{d:"M11 4h2v9h-2z"}),t("path",{d:"M5 18h14v2H5z"})),m=class{constructor(t){a(this,t),this.rowClicked=e(this,"payout-row-clicked",7),this.errorEvent=e(this,"error-event",7),this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:n.FETCH_ERROR,message:"Failed to download CSV",severity:h.ERROR})}})},this.handleDateChange=(t,a)=>{this.params=Object.assign(Object.assign({},this.params),{[t]:a})},this.handleClickPrevious=t=>{const a=Object.assign({},this.params);delete a.after_cursor,this.params=Object.assign(Object.assign({},a),{before_cursor:t})},this.handleClickNext=t=>{const a=Object.assign({},this.params);delete a.before_cursor,this.params=Object.assign(Object.assign({},a),{after_cursor:t})},this.mapStatusToBadge=t=>{switch(t){case c.scheduled:return`<span class="badge bg-primary" title='Batched and scheduled to be transferred'>${r[t]}</span>`;case c.in_transit:return`<span class="badge bg-primary" title='Transfer to your bank account has been initiated'>${r[t]}</span>`;case c.failed:case c.canceled:return`<span class="badge bg-danger" title='Transfer to your bank account failed'>${r[t]}</span>`;case c.forwarded:return`<span class="badge bg-secondary" title='The funds have been forwarded to your next successful payout'>${r[t]}</span>`;case c.paid:return`<span class="badge bg-success" title='Successfully deposited into your bank account'>${r[t]}</span>`}},this.rowClickHandler=t=>{const a=t.target.closest("tr").dataset.rowEntityId;a&&this.rowClicked.emit(this.payouts.find((t=>t.id===a)))},this.getPayouts=void 0,this.getPayoutCSV=void 0,this.payouts=[],this.loading=!0,this.errorMessage=void 0,this.paging=s,this.params=void 0}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.getPayouts&&this.fetchData()}fetchData(){this.loading=!0,this.getPayouts({params:this.params,onSuccess:({payouts:t,pagingInfo:a})=>{this.payouts=t,this.paging=a,this.loading=!1},onError:({error:t,code:a,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:a,message:t,severity:e}),this.loading=!1}})}get entityId(){return this.payouts.map((t=>t.id))}get columnData(){return[["Paid Out On","The date each transaction occurred"],["Type","The type of each transaction"],["Account","The ID of the account associated with each payout"],["Paid Out To","The bank account to which each payout was transferred"],["Payments","Sum of payments in each payout"],["Refunds","Sum of refunds in each payout"],["Fees","Sum of fees in each payout"],["Other","Sum of less common transactions in each payout"],["Payout Amount","The net sum of all transactions in each payout"],["Status","The real-time status of each payout"],["Actions",""]]}get rowData(){return this.payouts.map((a=>[{type:"head",value:`\n <div class='fw-bold'>${o(a.created_at)}</div>\n <div class='fw-bold'>${i(a.created_at)}</div>\n `},a.payout_type,a.account_id,`${a.bank_account.full_name} ${a.bank_account.account_number_last4}`,d(a.payments_total),d(a.refunds_total),d(a.fees_total),d(a.other_total),d(a.amount),{type:"inner",value:this.mapStatusToBadge(a.status)},t(y,{title:"Export CSV",onClick:()=>this.downloadCSV(a.id),style:{height:"24px",width:"24px",cursor:"pointer"}})]))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState}render(){return t(l,{key:"594c52003f897f4c50f79935e42a7042fb5ec168",exportedparts:b},t("div",{key:"f2b1d971e1e7bc5596459c071c3aa931ba4cb4b9",class:"row gy-3 mb-4"},t("div",{key:"d98e3ed56421493a60bd0a285079aa99ae705506",class:"col-2"},t("form-control-date",{key:"c9c899884bcc6fa6d306b95473ef0a7354e57bd5",name:"created_after",label:"Date from:",inputHandler:this.handleDateChange})),t("div",{key:"0059a75bf2f478b107d59bd9d7cc29de10dffe57",class:"col-2"},t("form-control-date",{key:"ef9a31ac8a8e7336386664b70289ee34677152a4",name:"created_before",label:"Date to:",inputHandler:this.handleDateChange}))),t("div",{key:"65da1114a66ac4cdf8d6ec012a42b2f760af5c76",class:"table-wrapper"},t("table",{key:"d68d8f61835cc4dc5dc988ff61843e6254494ace",class:"table table-hover"},t("thead",{key:"aa691db8fbfbcdad59acbdc1ef38497b552928ab",class:"table-head sticky-top",part:"table-head"},t("tr",{key:"aa9f61cbf05b9420026861cb14e6a30a6c9e347e",class:"table-light text-nowrap",part:"table-head-row"},this.columnData.map((a=>t("th",{part:"table-head-cell",scope:"col",title:Array.isArray(a)?a[1]:""},Array.isArray(a)?a[0]:a))))),t("tbody",{key:"cf0127f26e8bc5b7afbbfc4a36fab4de948d1727",class:"table-body",part:"table-body"},t(f,{key:"d6b832786c4959176974c7a343442c8d1c50b5c2",columnSpan:this.columnData.length,isLoading:this.loading}),t(p,{key:"398a20957f76ba14e1b0677fbd6fbfbacce61fbb",isEmpty:this.showEmptyState,columnSpan:this.columnData.length}),t(u,{key:"d9f755a07a6f8cd4967eac60beff92f36322dcdd",columnSpan:this.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.rowData.map(((a,e)=>t("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[e],onClick:this.rowClickHandler,part:"table-row "+(e%2?"table-row-even":"table-row-odd")},a.map((a=>(null==a?void 0:a.type)?t("td",{part:"table-cell",innerHTML:a.value}):t("td",{part:"table-cell"},a))))))),this.paging&&t("tfoot",{key:"503fa3a3a7ffe5d52b614153b286dd0326c02091",class:"sticky-bottom"},t("tr",{key:"e3af74b96bfc1f5ac1f0f0655eaed096102d0e89",class:"table-light align-middle"},t("td",{key:"a53f9d37181ea29a9fcb6ab46b2daf7cc66509be",part:"pagination-bar",colSpan:this.columnData.length},t("pagination-menu",{key:"b0779289444747e0b18bb63e6a17cdc89bd390ca",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext}),params:this.params})))))))}static get watchers(){return{params:["updateOnPropChange"],getPayouts:["updateOnPropChange"]}}};export{m as payouts_list_core}
|