@justifi/webcomponents 4.22.1 → 4.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/cjs/{Analytics-0d90fa0d.js → Analytics-99a3c7f8.js} +1 -1
  2. package/dist/cjs/{business-additional-questions-schema-19f08938.js → business-additional-questions-schema-d82355b0.js} +1 -1
  3. package/dist/cjs/{business-identity-schema-a8bb2276.js → business-identity-schema-3d241053.js} +1 -1
  4. package/dist/cjs/{check-pkg-version-fafb21ae.js → check-pkg-version-9bd49ad6.js} +1 -1
  5. package/dist/cjs/form-control-checkbox_9.cjs.entry.js +3 -3
  6. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +1 -1
  7. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
  8. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
  9. package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
  10. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
  11. package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-checkout.cjs.entry.js +3 -3
  13. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +3 -3
  14. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
  15. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
  16. package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -3
  17. package/dist/cjs/justifi-payment-form.cjs.entry.js +3 -3
  18. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
  19. package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
  20. package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -3
  21. package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
  22. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
  23. package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
  24. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +3 -3
  25. package/dist/cjs/{package-596f102c.js → package-e25f61a8.js} +1 -1
  26. package/dist/cjs/{schema-validations-184a4356.js → schema-validations-7a9afa7c.js} +0 -1
  27. package/dist/collection/components/business-forms/schemas/schema-validations.js +0 -1
  28. package/dist/docs.json +1 -1
  29. package/dist/esm/{Analytics-a46c0c00.js → Analytics-f4e959b2.js} +1 -1
  30. package/dist/esm/{business-additional-questions-schema-97f52255.js → business-additional-questions-schema-a5072d2b.js} +1 -1
  31. package/dist/esm/{business-identity-schema-434e16bc.js → business-identity-schema-b31178a1.js} +1 -1
  32. package/dist/esm/{check-pkg-version-ed46fa3b.js → check-pkg-version-5e658940.js} +1 -1
  33. package/dist/esm/form-control-checkbox_9.entry.js +3 -3
  34. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +1 -1
  35. package/dist/esm/justifi-bank-account-form.entry.js +2 -2
  36. package/dist/esm/justifi-billing-form_2.entry.js +2 -2
  37. package/dist/esm/justifi-business-details.entry.js +3 -3
  38. package/dist/esm/justifi-business-form.entry.js +6 -6
  39. package/dist/esm/justifi-card-form.entry.js +2 -2
  40. package/dist/esm/justifi-checkout.entry.js +3 -3
  41. package/dist/esm/justifi-checkouts-list.entry.js +3 -3
  42. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
  43. package/dist/esm/justifi-owner-form_3.entry.js +2 -2
  44. package/dist/esm/justifi-payment-details.entry.js +3 -3
  45. package/dist/esm/justifi-payment-form.entry.js +3 -3
  46. package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
  47. package/dist/esm/justifi-payments-list.entry.js +3 -3
  48. package/dist/esm/justifi-payout-details.entry.js +3 -3
  49. package/dist/esm/justifi-payouts-list.entry.js +3 -3
  50. package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
  51. package/dist/esm/justifi-terminals-list.entry.js +3 -3
  52. package/dist/esm/justifi-tokenize-payment-method.entry.js +3 -3
  53. package/dist/esm/{package-6c5cc174.js → package-95aca142.js} +1 -1
  54. package/dist/esm/{schema-validations-c1728516.js → schema-validations-cd8c5f69.js} +0 -1
  55. package/dist/module/package.js +1 -1
  56. package/dist/module/schema-validations.js +0 -1
  57. package/dist/webcomponents/{p-c4df0098.entry.js → p-09fb7dd6.entry.js} +1 -1
  58. package/dist/webcomponents/p-0c03a971.entry.js +1 -0
  59. package/dist/webcomponents/{p-088826fe.entry.js → p-0ec27543.entry.js} +1 -1
  60. package/dist/webcomponents/{p-e07d5e0f.entry.js → p-1251a3f5.entry.js} +1 -1
  61. package/dist/webcomponents/{p-fb2005de.js → p-22e38d5b.js} +1 -1
  62. package/dist/webcomponents/{p-8f26db63.entry.js → p-2a9f48f0.entry.js} +1 -1
  63. package/dist/webcomponents/{p-5f10b3e9.entry.js → p-2dc7751f.entry.js} +1 -1
  64. package/dist/webcomponents/p-3f82f724.entry.js +1 -0
  65. package/dist/webcomponents/{p-4422ca71.entry.js → p-44f7f729.entry.js} +1 -1
  66. package/dist/webcomponents/{p-69ea7334.entry.js → p-55f78fcc.entry.js} +1 -1
  67. package/dist/webcomponents/{p-32a782c8.entry.js → p-5fd72c29.entry.js} +1 -1
  68. package/dist/webcomponents/{p-3d3468a8.js → p-7285c687.js} +1 -1
  69. package/dist/webcomponents/{p-11ff46df.entry.js → p-7a8c13ba.entry.js} +1 -1
  70. package/dist/webcomponents/{p-18afa159.entry.js → p-83b01812.entry.js} +1 -1
  71. package/dist/webcomponents/p-88efdd31.js +1 -0
  72. package/dist/webcomponents/{p-eee24bb2.entry.js → p-8e2e24d8.entry.js} +1 -1
  73. package/dist/webcomponents/p-90b8acc6.js +1 -0
  74. package/dist/webcomponents/{p-4c0c88e4.entry.js → p-91711083.entry.js} +1 -1
  75. package/dist/webcomponents/{p-84987cd4.entry.js → p-92a766d8.entry.js} +1 -1
  76. package/dist/webcomponents/{p-7fea661a.js → p-9e7204b5.js} +1 -1
  77. package/dist/webcomponents/{p-c8b2f11d.entry.js → p-9ef4d294.entry.js} +1 -1
  78. package/dist/webcomponents/{p-3fbbdbba.entry.js → p-a91a2152.entry.js} +1 -1
  79. package/dist/webcomponents/{p-74822344.js → p-b459d0b0.js} +1 -1
  80. package/dist/webcomponents/{p-0eb0d813.entry.js → p-c458fc48.entry.js} +1 -1
  81. package/dist/webcomponents/{p-16fc16aa.entry.js → p-eed325b7.entry.js} +1 -1
  82. package/dist/webcomponents/{p-366c49b6.entry.js → p-f45197b9.entry.js} +1 -1
  83. package/dist/webcomponents/webcomponents.esm.js +1 -1
  84. package/package.json +1 -1
  85. package/dist/webcomponents/p-1c44712a.entry.js +0 -1
  86. package/dist/webcomponents/p-907ba963.js +0 -1
  87. package/dist/webcomponents/p-c65b78cf.js +0 -1
  88. package/dist/webcomponents/p-d5cd727b.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{c as e,a as t}from"./p-3c654c07.js";import{l as n,k as s,m as a,n as r,q as o,u as i,v as c,e as l,p as m,x as d,y as p}from"./p-c65b78cf.js";const u=i=>{const c=e({line1:n.required("Enter street address"),line2:s.nullable(),city:a.required("Enter city"),state:r.required("Select state"),postal_code:o.required("Enter postal code"),country:t().required("Select country")}),l=e({line1:n.nullable(),line2:s.nullable(),city:a.nullable(),state:r.nullable(),postal_code:o.nullable(),country:t().required("Select country")});return i?l:c},E=(n,s)=>{const a=e({name:i.required(`Enter ${n} name`),title:c.required(`Enter ${n} title`),email:l.required(`Enter ${n} email`),phone:m.required("Enter phone number"),dob_full:d(n).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:p,address:u(s)}),r=e({name:i.required(`Enter ${n} name`),title:c.nullable(),email:l.nullable(),phone:m.nullable(),dob_full:d(n).nullable(),ssn_last4:t().nullable(),identification_number:p.nullable(),address:u(s)});return s?r:a};export{u as a,E as i}
@@ -1 +0,0 @@
1
- import{a as e,b as s}from"./p-3c654c07.js";import{S as t}from"./p-6078a370.js";import{b as a,a as r,r as n,s as i,c as l}from"./p-1815a43b.js";const c=e=>""===e?null:e,o=/^(?!^\s+$)[a-zA-Z0-9\s,&.-]*$/,d=/^(?!^\s+$)[a-zA-Z\s]*$/,u=/^\d+$/,m=/^(?!^\s+$)[a-zA-Z0-9\s,&.-]*$/,h=/P\.?\s?O\.?\s?Box|Postal\sBox/i;var b,v;!function(e){e.voidedCheck="voided_check",e.balanceSheet="balance_sheet",e.bankStatement="bank_statement",e.governmentId="government_id",e.profitAndLossStatement="profit_and_loss_statement",e.taxReturn="tax_return",e.other="other"}(b||(b={})),function(e){e.pending="pending",e.uploaded="uploaded",e.canceled="canceled",e.needed="needed"}(v||(v={}));class E{constructor(){this.voided_check=[],this.balance_sheet=[],this.bank_statement=[],this.government_id=[],this.profit_and_loss_statement=[],this.tax_return=[],this.other=[]}}class p{constructor(e,s){this.file=e.file,this.fileString=this.getFileString(),this.document_type=e.document_type,this.presigned_url=null,this.record_data={business_id:s,document_type:this.document_type,file_name:this.file.name,file_type:this.file.type}}getFileString(){let e=new FileReader;return e.onload=e=>{this.fileString=e.target.result},e.readAsDataURL(this.file),this.fileString}setPresignedUrl(e){this.presigned_url=e}}const S=e().email("Enter valid email").transform(c),N=e().matches(/^\d{10}$/,"Enter valid phone number").transform(c),g=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").matches(o,"Enter valid business name").transform(c),f=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").matches(o,"Enter valid doing business as").transform(c),y=e().matches(/^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/,"Enter valid website url").transform(c),_=e().oneOf(a.map((e=>e.value)),"Select business classification").transform(c),$=e().min(2,"Industry must be at least 2 characters").max(50,"Industry must be less than 50 characters").matches(d,"Enter valid industry").transform(c),w=e().matches(u,"Enter valid tax id, SSN, or EIN").test("not-repeat","Enter valid tax id, SSN, or EIN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid tax id, SSN, or EIN",(e=>"123456789"!==e)).transform(c),A=e().test("not-future","Date of incorporation cannot be in the future",(e=>new Date(e)<=new Date)).transform(c),x=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").matches(d,"Enter valid name").transform(c),I=e().min(2,"Title must be at least 2 characters").max(50,"Title must be less than 50 characters").matches(d,"Enter valid title").transform(c),P=s=>e().test("min","Enter a valid date",(e=>new Date(e)>=new Date("1902-01-01"))).test("age",`${s} must be at least 18 years old`,(e=>{const s=new Date(e),t=new Date;return t.setFullYear(t.getFullYear()-18),s<=t})).transform(c),D=e().matches(/^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/,"Enter valid SSN").when("ssn_last4",{is:e=>!e||0===e.length,then:e=>e.required("Enter SSN"),otherwise:e=>e.nullable()}).test("not-repeat","Enter valid SSN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid SSN",(e=>"123456789"!==e)).transform(c),z=e().min(5,"Address must be at least 5 characters").max(100,"Address must be less than 100 characters").matches(m,"Enter valid address line 1").test("not-po-box","A PO Box is not a valid address entry",(e=>!h.test(e))).transform(c),k=e().max(100,"Address must be less than 100 characters").matches(m,"Enter valid address line 2").test("not-po-box","A PO Box is not a valid address entry",(e=>!h.test(e))).transform(c),B=e().min(2,"City must be at least 2 characters").max(50,"City must be less than 50 characters").matches(d,"Enter valid city").transform(c),Z=e().oneOf(t.map((e=>e.value)),"Select state").transform(c),j=e().matches(/^[0-9]{5}$/,"Enter valid postal code").transform(c),q=e().matches(u,"Enter valid revenue").transform(c),C=e().matches(u,"Enter valid payment volume").transform(c),F=e().oneOf(r.map((e=>e.value)),"Select when service is received").transform(c),O=e().oneOf(n.map((e=>e.value)),"Select recurring payments").transform(c),R=e().when("business_recurring_payments",{is:e=>"Yes"===e,then:e=>e.required("Enter recurring payments percentage"),otherwise:e=>e.nullable()}).transform(c),T=e().oneOf(i.map((e=>e.value)),"Select seasonal business").transform(c),G=e().transform(c),H=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").matches(d,"Enter valid bank name").transform(c),J=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").matches(d,"Enter valid nickname").transform(c),K=e().oneOf(l.map((e=>e.value)),"Select account type").transform(c),L=e().min(8,"Account number must be at least 8 digits").max(17,"Account number must be less than 17 digits").matches(u,"Enter valid account number").test("not-repeat","Enter valid account number",(e=>!/^(\d)\1+$/.test(e))).transform(c),M=e().length(9,"Routing number must be 9 digits").matches(u,"Enter valid routing number").test("not-repeat","Enter valid routing number",(e=>!/^(\d)\1+$/.test(e))).test("valid","Enter valid routing number",(e=>(e=>{if(!e)return!1;const s=Array.from(String(e),Number);return 9===s.length&&0==(3*(s[0]+s[3]+s[6])+7*(s[1]+s[4]+s[7])+(s[2]+s[5]+s[8]))%10})(e))).transform(c),U=s(),Y=U,Q=U,V=U,W=(e,s)=>e.some((e=>e.document_type===b.voidedCheck))||s?U.nullable():U.required("Please select one or more files"),X=(e,s,t)=>{const a=parseInt(e);return s.some((e=>e.document_type===b.bankStatement))||t?U.nullable():a>=25e4&&!t?U.required("Please select one or more files"):void 0},ee=(e,s,t)=>{const a=parseInt(e);return s.some((e=>e.document_type===b.balanceSheet))||t?U.nullable():a>=1e6&&!t?U.required("Please select one or more files"):void 0},se=(e,s,t)=>{const a=parseInt(e);return s.some((e=>e.document_type===b.profitAndLossStatement))||t?U.nullable():a>=1e6&&!t?U.required("Please select one or more files"):void 0};export{J as A,K as B,L as C,M as D,W as E,Q as F,Y as G,V as H,ee as I,X as J,se as K,p as L,E as M,b as N,_ as a,g as b,A as c,f as d,S as e,C as f,F as g,O as h,$ as i,R as j,k,z as l,B as m,Z as n,G as o,N as p,j as q,q as r,T as s,w as t,x as u,I as v,y as w,P as x,D as y,H as z}
@@ -1 +0,0 @@
1
- import{r as s,c as i,h as t}from"./p-fad19d75.js";import{J as e}from"./p-7fea661a.js";import{a as o,C as r}from"./p-14c91ffd.js";import{m as a,a as n}from"./p-5968ff8a.js";import{B as p}from"./p-f6f8dabc.js";import{c as h}from"./p-5a62fca2.js";import{A as d}from"./p-0e180654.js";import{c}from"./p-74822344.js";import"./p-fb2005de.js";import"./p-8115b2f4.js";class m{async postProvisioning(s,i,t){const e={business_id:i,product_category:t};return d({authToken:s,apiOrigin:h.proxyApiOrigin}).post("entities/provisioning",e)}}const f=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(){c(),this.analytics=new e(this),this.initializeApi()}disconnectedCallback(){this.analytics.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new p}),this.postProvisioning=n({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new m})):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:"82b3601d3349a92bed1aa93e2a847039d7493c04",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{f as justifi_payment_provisioning}