@justifi/webcomponents 4.13.0-rc.0 → 4.13.0-rc.1

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 (155) hide show
  1. package/dist/cjs/{Api-a06b996e.js → Api-ab34a402.js} +4 -1
  2. package/dist/cjs/{Business-98686045.js → Business-32a53780.js} +1 -1
  3. package/dist/cjs/{utils-f8079741.js → ComponentError-8ba0c0e7.js} +0 -25
  4. package/dist/cjs/{business-additional-questions-schema-f8086f7a.js → business-additional-questions-schema-0a35f597.js} +1 -1
  5. package/dist/cjs/{business-form-options-fd1c0032.js → business-form-options-43366c9a.js} +1 -1
  6. package/dist/cjs/form-control-date_3.cjs.entry.js +1 -1
  7. package/dist/cjs/form-control-file.cjs.entry.js +44 -0
  8. package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +6 -6
  9. package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +3 -3
  10. package/dist/cjs/justifi-billing-form_4.cjs.entry.js +2 -2
  11. package/dist/cjs/justifi-business-details.cjs.entry.js +9 -8
  12. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
  13. package/dist/cjs/justifi-business-list.cjs.entry.js +3 -3
  14. package/dist/cjs/justifi-checkout-core.cjs.entry.js +22 -8
  15. package/dist/cjs/justifi-checkout.cjs.entry.js +14 -9
  16. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -6
  17. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +11 -11
  18. package/dist/cjs/justifi-owner-form.cjs.entry.js +5 -5
  19. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +1 -1
  20. package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -7
  21. package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -5
  22. package/dist/cjs/justifi-payments-list.cjs.entry.js +8 -7
  23. package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -7
  24. package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -6
  25. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +1 -1
  26. package/dist/cjs/justifi-refund-form.cjs.entry.js +1 -1
  27. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +1 -1
  28. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +1 -1
  29. package/dist/cjs/loader.cjs.js +1 -1
  30. package/dist/cjs/{payload-parsers-fe27be37.js → payload-parsers-6c4b5323.js} +2 -2
  31. package/dist/cjs/{payment.service-9db24ab9.js → payment.service-336189d3.js} +1 -1
  32. package/dist/cjs/{payout.service-a0efb71a.js → payout.service-6012d576.js} +1 -1
  33. package/dist/cjs/{state-options-4145f9b4.js → state-options-4fbcb48a.js} +4 -0
  34. package/dist/cjs/utils-491248ca.js +28 -0
  35. package/dist/cjs/webcomponents.cjs.js +1 -1
  36. package/dist/collection/api/Api.js +4 -1
  37. package/dist/collection/collection-manifest.json +1 -0
  38. package/dist/collection/components/checkout/checkout-actions.js +1 -2
  39. package/dist/collection/components/checkout/checkout-core.js +22 -9
  40. package/dist/collection/components/checkout/checkout.js +30 -2
  41. package/dist/collection/components/checkout/new-payment-method.js +11 -11
  42. package/dist/collection/components/checkout/test/checkout-actions.spec.js +1 -3
  43. package/dist/collection/components/checkout/test/checkout-core.spec.js +2 -2
  44. package/dist/collection/components/form/form-control-file.css +1806 -0
  45. package/dist/collection/components/form/form-control-file.js +169 -0
  46. package/dist/collection/components/form/test/form-control-file.spec.js +84 -0
  47. package/dist/collection/utils/state-options.js +4 -0
  48. package/dist/docs.json +183 -4
  49. package/dist/esm/{Api-0e88671c.js → Api-e9d568c7.js} +4 -1
  50. package/dist/esm/{Business-6e0efa26.js → Business-d83fbdb4.js} +1 -1
  51. package/dist/esm/{utils-4609f32c.js → ComponentError-2a58dbbc.js} +1 -23
  52. package/dist/esm/{business-additional-questions-schema-8e742129.js → business-additional-questions-schema-e96b0509.js} +1 -1
  53. package/dist/esm/{business-form-options-75c0a7ec.js → business-form-options-de11bc46.js} +1 -1
  54. package/dist/esm/form-control-date_3.entry.js +1 -1
  55. package/dist/esm/form-control-file.entry.js +40 -0
  56. package/dist/esm/justifi-additional-questions-form-step_5.entry.js +6 -6
  57. package/dist/esm/justifi-additional-questions_4.entry.js +3 -3
  58. package/dist/esm/justifi-billing-form_4.entry.js +2 -2
  59. package/dist/esm/justifi-business-details.entry.js +5 -4
  60. package/dist/esm/justifi-business-form.entry.js +6 -6
  61. package/dist/esm/justifi-business-list.entry.js +3 -3
  62. package/dist/esm/justifi-checkout-core.entry.js +22 -8
  63. package/dist/esm/justifi-checkout.entry.js +11 -6
  64. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -2
  65. package/dist/esm/justifi-new-payment-method_4.entry.js +11 -11
  66. package/dist/esm/justifi-owner-form.entry.js +5 -5
  67. package/dist/esm/justifi-payment-balance-transactions.entry.js +1 -1
  68. package/dist/esm/justifi-payment-details.entry.js +4 -3
  69. package/dist/esm/justifi-payment-form.entry.js +2 -1
  70. package/dist/esm/justifi-payments-list.entry.js +4 -3
  71. package/dist/esm/justifi-payout-details.entry.js +4 -3
  72. package/dist/esm/justifi-payouts-list.entry.js +4 -3
  73. package/dist/esm/justifi-proceeds-list.entry.js +1 -1
  74. package/dist/esm/justifi-refund-form.entry.js +1 -1
  75. package/dist/esm/justifi-subaccount-details.entry.js +1 -1
  76. package/dist/esm/justifi-subaccounts-list.entry.js +1 -1
  77. package/dist/esm/loader.js +1 -1
  78. package/dist/esm/{payload-parsers-73c12fa2.js → payload-parsers-32028700.js} +2 -2
  79. package/dist/esm/{payment.service-ec28a959.js → payment.service-2fdc5018.js} +1 -1
  80. package/dist/esm/{payout.service-5fd5986c.js → payout.service-15064bcc.js} +1 -1
  81. package/dist/esm/{state-options-c0b757ad.js → state-options-a356fb11.js} +4 -0
  82. package/dist/esm/utils-f580d6b7.js +25 -0
  83. package/dist/esm/webcomponents.js +1 -1
  84. package/dist/module/Api.js +4 -1
  85. package/dist/module/ComponentError.js +16 -0
  86. package/dist/module/checkout-core.js +22 -9
  87. package/dist/module/form-control-file.d.ts +11 -0
  88. package/dist/module/form-control-file.js +67 -0
  89. package/dist/module/justifi-business-details.js +2 -1
  90. package/dist/module/justifi-checkout.js +11 -7
  91. package/dist/module/justifi-gross-payment-chart.js +2 -1
  92. package/dist/module/justifi-payment-details.js +2 -1
  93. package/dist/module/justifi-payment-form.js +2 -1
  94. package/dist/module/justifi-payments-list.js +2 -1
  95. package/dist/module/justifi-payout-details.js +2 -1
  96. package/dist/module/justifi-payouts-list.js +2 -1
  97. package/dist/module/new-payment-method.js +11 -11
  98. package/dist/module/payment-method-form.js +1 -1
  99. package/dist/module/state-options.js +4 -0
  100. package/dist/module/utils3.js +2 -15
  101. package/dist/types/api/Api.d.ts +1 -0
  102. package/dist/types/components/checkout/checkout-core.d.ts +6 -2
  103. package/dist/types/components/checkout/checkout.d.ts +3 -0
  104. package/dist/types/components/checkout/payment-method-payload.d.ts +5 -0
  105. package/dist/types/components/form/form-control-file.d.ts +17 -0
  106. package/dist/types/components/payment-method-form/payment-method-responses.d.ts +1 -0
  107. package/dist/types/components.d.ts +57 -0
  108. package/dist/webcomponents/p-00ca94d1.js +1 -0
  109. package/dist/webcomponents/p-02b18979.entry.js +1 -0
  110. package/dist/webcomponents/p-0d80748f.js +1 -0
  111. package/dist/webcomponents/{p-30b6ea06.entry.js → p-101b2648.entry.js} +1 -1
  112. package/dist/webcomponents/{p-ed6ca114.js → p-132ba228.js} +1 -1
  113. package/dist/webcomponents/p-13e2f667.js +1 -0
  114. package/dist/webcomponents/{p-19885f77.entry.js → p-1885c478.entry.js} +1 -1
  115. package/dist/webcomponents/{p-8abba4c2.entry.js → p-23099f1f.entry.js} +1 -1
  116. package/dist/webcomponents/{p-31fe7232.entry.js → p-230b96df.entry.js} +1 -1
  117. package/dist/webcomponents/{p-35e59bb5.entry.js → p-3367225e.entry.js} +1 -1
  118. package/dist/webcomponents/{p-57fbd98d.js → p-3da23f21.js} +1 -1
  119. package/dist/webcomponents/p-41bdee27.entry.js +1 -0
  120. package/dist/webcomponents/{p-5ff7826e.entry.js → p-4c84952f.entry.js} +1 -1
  121. package/dist/webcomponents/p-6078a370.js +1 -0
  122. package/dist/webcomponents/{p-3ffe6784.js → p-61fd33c7.js} +1 -1
  123. package/dist/webcomponents/{p-2c4c5f0d.entry.js → p-64710363.entry.js} +1 -1
  124. package/dist/webcomponents/{p-9245777b.js → p-731085e3.js} +1 -1
  125. package/dist/webcomponents/p-78b32fb9.entry.js +1 -0
  126. package/dist/webcomponents/p-7e334dce.entry.js +1 -0
  127. package/dist/webcomponents/{p-5a789239.entry.js → p-7faacb1e.entry.js} +1 -1
  128. package/dist/webcomponents/{p-49c349e7.js → p-9ada56da.js} +1 -1
  129. package/dist/webcomponents/p-9ba31a6a.entry.js +1 -0
  130. package/dist/webcomponents/{p-4d335a3d.entry.js → p-a9af8f40.entry.js} +1 -1
  131. package/dist/webcomponents/p-b81afd51.entry.js +1 -0
  132. package/dist/webcomponents/{p-c556deda.entry.js → p-bb58e656.entry.js} +1 -1
  133. package/dist/webcomponents/p-bc12b8b9.js +1 -0
  134. package/dist/webcomponents/p-bfe7c55c.entry.js +1 -0
  135. package/dist/webcomponents/p-c1be3378.entry.js +1 -0
  136. package/dist/webcomponents/p-cb31488b.entry.js +1 -0
  137. package/dist/webcomponents/{p-31e8f29c.entry.js → p-cf3151a3.entry.js} +1 -1
  138. package/dist/webcomponents/{p-f3cf3513.entry.js → p-d0a8c631.entry.js} +1 -1
  139. package/dist/webcomponents/p-e6ab1f0d.entry.js +1 -0
  140. package/dist/webcomponents/{p-3adc0688.entry.js → p-efbc8ffc.entry.js} +1 -1
  141. package/dist/webcomponents/webcomponents.esm.js +1 -1
  142. package/package.json +1 -1
  143. package/dist/webcomponents/p-04c7f8f8.js +0 -1
  144. package/dist/webcomponents/p-0c269feb.entry.js +0 -1
  145. package/dist/webcomponents/p-0eb77101.entry.js +0 -1
  146. package/dist/webcomponents/p-19001cc5.entry.js +0 -1
  147. package/dist/webcomponents/p-3496e37f.js +0 -1
  148. package/dist/webcomponents/p-3934a3a8.entry.js +0 -1
  149. package/dist/webcomponents/p-6f294d5d.js +0 -1
  150. package/dist/webcomponents/p-8da13f40.entry.js +0 -1
  151. package/dist/webcomponents/p-a8caec98.entry.js +0 -1
  152. package/dist/webcomponents/p-a90f7ca0.js +0 -1
  153. package/dist/webcomponents/p-abc03d5a.entry.js +0 -1
  154. package/dist/webcomponents/p-ba454cd7.entry.js +0 -1
  155. package/dist/webcomponents/p-d69a485a.entry.js +0 -1
@@ -1 +1 @@
1
- import{S as t}from"./p-3496e37f.js";function s(t){return/^\d$/.test(t)?"0"+t:t}function i(t,i,h){if(t&&i&&h)return`${t}-${s(i)}-${s(h)}`}function h(t){const[s,i,h]=t.split("-");return{dob_year:s,dob_month:i,dob_day:h}}class n{constructor(t){this.address=Object.assign({},new e(t.address||{})),this.created_at=t.created_at,this.dob_day=s(t.dob_day),this.dob_month=s(t.dob_month),this.dob_year=t.dob_year,this.dob_full=i(this.dob_year,this.dob_month,this.dob_day)||"",this.documents=t.documents,this.email=t.email,this.id=t.id,this.business_id=t.business_id,this.is_owner=t.is_owner,this.metadata=t.metadata,this.name=t.name,this.phone=t.phone,this.platform_account_id=t.platform_account_id,this.identification_number=t.identification_number,this.ssn_last4=t.ssn_last4,this.title=t.title,this.updated_at=t.updated_at}}class r{constructor(t){this.address=Object.assign({},new e(t.address||{})),this.created_at=t.created_at,this.dob_day=s(t.dob_day),this.dob_month=s(t.dob_month),this.dob_year=t.dob_year,this.dob_full=i(this.dob_year,this.dob_month,this.dob_day)||"",this.documents=t.documents,this.email=t.email,this.id=t.id,this.business_id=t.business_id,this.is_owner=t.is_owner,this.metadata=t.metadata,this.name=t.name,this.phone=t.phone,this.platform_account_id=t.platform_account_id,this.identification_number=t.identification_number,this.ssn_last4=t.ssn_last4,this.title=t.title,this.updated_at=t.updated_at}}var o,c;!function(t){t.individual="individual",t.for_profit="for_profit",t.non_profit="non_profit",t.government_entity="government_entity"}(o||(o={})),function(t){t.sole_proprietorship="sole_proprietorship",t.single_llc="single_llc",t.multi_llc="multi_llc",t.private_partnership="private_partnership",t.private_corporation="private_corporation",t.unincorporated_association="unincorporated_association",t.public_partnership="public_partnership",t.public_corporation="public_corporation",t.incorporated="incorporated",t.unincorporated="unincorporated",t.government_unit="government_unit",t.government_instrumentality="government_instrumentality",t.tax_exempt_government_instrumentality="tax_exempt_government_instrumentality"}(c||(c={}));class e{constructor(s){this.id=s.id,this.platform_account_id=s.platform_account_id,this.line1=s.line1,this.line2=s.line2,this.postal_code=s.postal_code,this.city=s.city,this.state=function(s){const i=t.find((t=>t.label===s));return i?i.value:s}(s.state),this.country=s.country||"USA",this.created_at=s.created_at,this.updated_at=s.updated_at}}class a{constructor(t){this.business_revenue=t.business_revenue,this.business_payment_volume=t.business_payment_volume,this.business_when_service_received=t.business_when_service_received,this.business_recurring_payments=t.business_recurring_payments,this.business_recurring_payments_percentage=t.business_recurring_payments_percentage,this.business_seasonal=t.business_seasonal,this.business_other_payment_details=t.business_other_payment_details}}class u{constructor(t){this.business_type=t.business_type,this.business_structure=t.business_structure,this.legal_name=t.legal_name,this.doing_business_as=t.doing_business_as,this.industry=t.industry,this.tax_id=t.tax_id,this.website_url=t.website_url,this.email=t.email,this.phone=t.phone,this.date_of_incorporation=t.date_of_incorporation}}class p{constructor(t){this.additional_questions=Object.assign({},new a(t.additional_questions||{})),this.bank_accounts=t.bank_accounts,this.business_type=t.business_type,this.business_structure=t.business_structure,this.created_at=t.created_at,this.documents=t.documents,this.doing_business_as=t.doing_business_as,this.email=t.email,this.id=t.id,this.industry=t.industry,this.legal_address=Object.assign({},new e(t.legal_address||{})),this.legal_name=t.legal_name,this.metadata=t.metadata,this.owners=t.owners,this.phone=t.phone,this.platform_account_id=t.platform_account_id,this.product_categories=t.product_categories,this.representative=Object.assign({},new r(t.representative||{})),this.tax_id=t.tax_id,this.updated_at=t.updated_at,this.website_url=t.website_url,this.date_of_incorporation=t.date_of_incorporation}}export{a as A,p as B,u as C,n as O,r as R,o as a,c as b,e as c,h as d}
1
+ import{S as t}from"./p-6078a370.js";function s(t){return/^\d$/.test(t)?"0"+t:t}function i(t,i,h){if(t&&i&&h)return`${t}-${s(i)}-${s(h)}`}function h(t){const[s,i,h]=t.split("-");return{dob_year:s,dob_month:i,dob_day:h}}class n{constructor(t){this.address=Object.assign({},new e(t.address||{})),this.created_at=t.created_at,this.dob_day=s(t.dob_day),this.dob_month=s(t.dob_month),this.dob_year=t.dob_year,this.dob_full=i(this.dob_year,this.dob_month,this.dob_day)||"",this.documents=t.documents,this.email=t.email,this.id=t.id,this.business_id=t.business_id,this.is_owner=t.is_owner,this.metadata=t.metadata,this.name=t.name,this.phone=t.phone,this.platform_account_id=t.platform_account_id,this.identification_number=t.identification_number,this.ssn_last4=t.ssn_last4,this.title=t.title,this.updated_at=t.updated_at}}class r{constructor(t){this.address=Object.assign({},new e(t.address||{})),this.created_at=t.created_at,this.dob_day=s(t.dob_day),this.dob_month=s(t.dob_month),this.dob_year=t.dob_year,this.dob_full=i(this.dob_year,this.dob_month,this.dob_day)||"",this.documents=t.documents,this.email=t.email,this.id=t.id,this.business_id=t.business_id,this.is_owner=t.is_owner,this.metadata=t.metadata,this.name=t.name,this.phone=t.phone,this.platform_account_id=t.platform_account_id,this.identification_number=t.identification_number,this.ssn_last4=t.ssn_last4,this.title=t.title,this.updated_at=t.updated_at}}var o,c;!function(t){t.individual="individual",t.for_profit="for_profit",t.non_profit="non_profit",t.government_entity="government_entity"}(o||(o={})),function(t){t.sole_proprietorship="sole_proprietorship",t.single_llc="single_llc",t.multi_llc="multi_llc",t.private_partnership="private_partnership",t.private_corporation="private_corporation",t.unincorporated_association="unincorporated_association",t.public_partnership="public_partnership",t.public_corporation="public_corporation",t.incorporated="incorporated",t.unincorporated="unincorporated",t.government_unit="government_unit",t.government_instrumentality="government_instrumentality",t.tax_exempt_government_instrumentality="tax_exempt_government_instrumentality"}(c||(c={}));class e{constructor(s){this.id=s.id,this.platform_account_id=s.platform_account_id,this.line1=s.line1,this.line2=s.line2,this.postal_code=s.postal_code,this.city=s.city,this.state=function(s){const i=t.find((t=>t.label===s));return i?i.value:s}(s.state),this.country=s.country||"USA",this.created_at=s.created_at,this.updated_at=s.updated_at}}class a{constructor(t){this.business_revenue=t.business_revenue,this.business_payment_volume=t.business_payment_volume,this.business_when_service_received=t.business_when_service_received,this.business_recurring_payments=t.business_recurring_payments,this.business_recurring_payments_percentage=t.business_recurring_payments_percentage,this.business_seasonal=t.business_seasonal,this.business_other_payment_details=t.business_other_payment_details}}class u{constructor(t){this.business_type=t.business_type,this.business_structure=t.business_structure,this.legal_name=t.legal_name,this.doing_business_as=t.doing_business_as,this.industry=t.industry,this.tax_id=t.tax_id,this.website_url=t.website_url,this.email=t.email,this.phone=t.phone,this.date_of_incorporation=t.date_of_incorporation}}class p{constructor(t){this.additional_questions=Object.assign({},new a(t.additional_questions||{})),this.bank_accounts=t.bank_accounts,this.business_type=t.business_type,this.business_structure=t.business_structure,this.created_at=t.created_at,this.documents=t.documents,this.doing_business_as=t.doing_business_as,this.email=t.email,this.id=t.id,this.industry=t.industry,this.legal_address=Object.assign({},new e(t.legal_address||{})),this.legal_name=t.legal_name,this.metadata=t.metadata,this.owners=t.owners,this.phone=t.phone,this.platform_account_id=t.platform_account_id,this.product_categories=t.product_categories,this.representative=Object.assign({},new r(t.representative||{})),this.tax_id=t.tax_id,this.updated_at=t.updated_at,this.website_url=t.website_url,this.date_of_incorporation=t.date_of_incorporation}}export{a as A,p as B,u as C,n as O,r as R,o as a,c as b,e as c,h as d}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-9ee8ad4d.js";import{P as o}from"./p-731085e3.js";import"./p-56f6ce4c.js";import"./p-02fa533c.js";import{P as e}from"./p-e3fab0e2.js";import{C as r,a}from"./p-0d80748f.js";import{g as p,a as h}from"./p-00ca94d1.js";import{E as d}from"./p-3302bc76.js";import"./p-13e2f667.js";import"./p-ae263544.js";const n=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.errorMessage=null}componentWillLoad(){this.initializeGetPayout()}propChanged(){this.initializeGetPayout()}initializeGetPayout(){this.payoutId&&this.authToken?this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:a})=>{var d;try{const n=await i.fetchPayout(t,s);n.error?a({error:p(n.error),code:h(null===(d=n.error)||void 0===d?void 0:d.code),severity:r.ERROR}):o(new e(n.data))}catch(t){a({error:p(t),code:h(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new o}):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?d(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,"onError-event":this.handleErrorEvent})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{n as justifi_payout_details}