@justifi/webcomponents 4.19.1-rc → 4.19.1-rc-4

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 (224) hide show
  1. package/dist/cjs/{Analytics-0b3db49d.js → Analytics-985bc298.js} +2 -3
  2. package/dist/cjs/{business.service-c384784d.js → business.service-6bb7ac82.js} +5 -6
  3. package/dist/cjs/{get-payout-csv-51a02be7.js → get-payout-csv-1391ff3e.js} +3 -4
  4. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +7 -8
  5. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +4 -5
  6. package/dist/cjs/justifi-business-details.cjs.entry.js +3 -4
  7. package/dist/cjs/justifi-business-form.cjs.entry.js +4 -5
  8. package/dist/cjs/justifi-card-form.cjs.entry.js +4 -5
  9. package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -3
  10. package/dist/cjs/justifi-checkout.cjs.entry.js +4 -5
  11. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -4
  12. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +11 -9
  13. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +1 -2
  14. package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -4
  15. package/dist/cjs/justifi-payment-form.cjs.entry.js +5 -6
  16. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
  17. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -6
  18. package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -4
  19. package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -4
  20. package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -4
  21. package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -3
  22. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +4 -5
  23. package/dist/cjs/{package-39dc73ed.js → package-cbc08fe3.js} +2 -4
  24. package/dist/cjs/{payment.service-2dbfb83d.js → payment.service-dfcfa19b.js} +2 -3
  25. package/dist/collection/api/services/analytics.service.js +1 -2
  26. package/dist/collection/api/services/business.service.js +5 -6
  27. package/dist/collection/api/services/checkout.service.js +2 -3
  28. package/dist/collection/api/services/insurance.service.js +2 -3
  29. package/dist/collection/api/services/payment.service.js +2 -3
  30. package/dist/collection/api/services/payout.service.js +3 -4
  31. package/dist/collection/api/services/provision.service.js +2 -4
  32. package/dist/collection/api/services/reports.service.js +1 -2
  33. package/dist/collection/components/bank-account-form/bank-account-form.js +3 -4
  34. package/dist/collection/components/business-forms/business-form/business-form.js +2 -3
  35. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -3
  36. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +2 -3
  37. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -3
  38. package/dist/collection/components/card-form/card-form.js +3 -4
  39. package/dist/collection/components/checkout/checkout-core.js +4 -4
  40. package/dist/collection/components/checkout/new-payment-method.js +6 -4
  41. package/dist/collection/components/checkout/payment-method-options.js +3 -4
  42. package/dist/collection/components/checkout/saved-payment-method.js +3 -4
  43. package/dist/collection/components/checkout/sezzle-payment-method.js +3 -4
  44. package/dist/collection/components/payment-form/payment-form.js +3 -4
  45. package/dist/collection/components/refund-form/refund-form.js +2 -3
  46. package/dist/docs.json +8 -8
  47. package/dist/esm/{Analytics-37556050.js → Analytics-79e20e2d.js} +2 -3
  48. package/dist/esm/{business.service-eee46ab1.js → business.service-f45decfc.js} +5 -6
  49. package/dist/esm/{get-payout-csv-4d6b29d8.js → get-payout-csv-e784a2ab.js} +3 -4
  50. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +7 -8
  51. package/dist/esm/justifi-bank-account-form.entry.js +4 -5
  52. package/dist/esm/justifi-business-details.entry.js +3 -4
  53. package/dist/esm/justifi-business-form.entry.js +4 -5
  54. package/dist/esm/justifi-card-form.entry.js +4 -5
  55. package/dist/esm/justifi-checkout-core.entry.js +3 -3
  56. package/dist/esm/justifi-checkout.entry.js +4 -5
  57. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -4
  58. package/dist/esm/justifi-new-payment-method_4.entry.js +11 -9
  59. package/dist/esm/justifi-owner-form_3.entry.js +1 -2
  60. package/dist/esm/justifi-payment-details.entry.js +3 -4
  61. package/dist/esm/justifi-payment-form.entry.js +5 -6
  62. package/dist/esm/justifi-payment-method-form.entry.js +1 -1
  63. package/dist/esm/justifi-payment-provisioning.entry.js +5 -6
  64. package/dist/esm/justifi-payments-list.entry.js +3 -4
  65. package/dist/esm/justifi-payout-details.entry.js +3 -4
  66. package/dist/esm/justifi-payouts-list.entry.js +3 -4
  67. package/dist/esm/justifi-refund-form.entry.js +2 -3
  68. package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -5
  69. package/dist/esm/{package-e2a7aa3f.js → package-cf64a48c.js} +2 -4
  70. package/dist/esm/{payment.service-9005a501.js → payment.service-dad5153b.js} +2 -3
  71. package/dist/globals.d.ts +2 -0
  72. package/dist/module/Analytics.js +1 -2
  73. package/dist/module/business-bank-account-form-step.js +2 -3
  74. package/dist/module/business-document-upload-form-step.js +2 -3
  75. package/dist/module/business-terms-conditions-form-step.js +2 -3
  76. package/dist/module/business.service.js +5 -6
  77. package/dist/module/checkout-core.js +3 -3
  78. package/dist/module/get-payout-csv.js +3 -4
  79. package/dist/module/justifi-bank-account-form.js +2 -3
  80. package/dist/module/justifi-business-form.js +2 -3
  81. package/dist/module/justifi-card-form.js +2 -3
  82. package/dist/module/justifi-checkout.js +2 -3
  83. package/dist/module/justifi-gross-payment-chart.js +1 -2
  84. package/dist/module/justifi-payment-form.js +3 -4
  85. package/dist/module/justifi-payment-provisioning.js +2 -3
  86. package/dist/module/justifi-refund-form.js +2 -3
  87. package/dist/module/justifi-season-interruption-insurance.js +2 -3
  88. package/dist/module/new-payment-method.js +5 -3
  89. package/dist/module/package.js +2 -4
  90. package/dist/module/payment-method-options.js +2 -3
  91. package/dist/module/payment.service.js +2 -3
  92. package/dist/module/saved-payment-method.js +2 -3
  93. package/dist/module/sezzle-payment-method.js +2 -3
  94. package/dist/types/components/checkout/new-payment-method.d.ts +1 -0
  95. package/dist/webcomponents/index.esm.js +1 -0
  96. package/dist/webcomponents/p-01a404ca.entry.js +44 -0
  97. package/dist/webcomponents/p-02c58e00.entry.js +97 -0
  98. package/dist/webcomponents/p-03d35880.entry.js +130 -0
  99. package/dist/webcomponents/p-05f46d63.entry.js +99 -0
  100. package/dist/webcomponents/p-06ff0429.entry.js +65 -0
  101. package/dist/webcomponents/p-08b0fb31.js +41 -1
  102. package/dist/webcomponents/p-14c91ffd.js +20 -1
  103. package/dist/webcomponents/p-1ad5995e.js +3599 -1
  104. package/dist/webcomponents/p-1ff8810b.js +29 -1
  105. package/dist/webcomponents/p-2338affa.js +213 -1
  106. package/dist/webcomponents/p-258b1ee2.entry.js +149 -0
  107. package/dist/webcomponents/p-25d8cd65.entry.js +102 -0
  108. package/dist/webcomponents/p-29c0b182.js +114 -1
  109. package/dist/webcomponents/p-2b6c9c4f.js +7 -1
  110. package/dist/webcomponents/p-2eab3c90.js +3052 -1
  111. package/dist/webcomponents/p-3e9ef4a8.js +28 -0
  112. package/dist/webcomponents/p-3fd13ca3.js +52 -1
  113. package/dist/webcomponents/p-492588bf.js +79 -0
  114. package/dist/webcomponents/p-525db3e8.js +22 -1
  115. package/dist/webcomponents/p-5482d030.entry.js +21 -0
  116. package/dist/webcomponents/p-56f6ce4c.js +10 -1
  117. package/dist/webcomponents/p-576826b1.entry.js +43 -0
  118. package/dist/webcomponents/p-5968ff8a.js +178 -1
  119. package/dist/webcomponents/p-5cb3f0b2.entry.js +261 -0
  120. package/dist/webcomponents/p-5f835b89.entry.js +606 -0
  121. package/dist/webcomponents/p-6053809a.entry.js +80 -0
  122. package/dist/webcomponents/p-6078a370.js +244 -1
  123. package/dist/webcomponents/p-66e4869f.entry.js +75 -0
  124. package/dist/webcomponents/p-6f1c56d4.entry.js +94 -0
  125. package/dist/webcomponents/p-70a2aa74.entry.js +76 -0
  126. package/dist/webcomponents/p-7582b554.entry.js +18 -0
  127. package/dist/webcomponents/p-79646550.entry.js +61 -0
  128. package/dist/webcomponents/p-7a70ff09.entry.js +133 -0
  129. package/dist/webcomponents/p-7bbf73bd.entry.js +117 -0
  130. package/dist/webcomponents/p-7d85af5c.js +16 -1
  131. package/dist/webcomponents/p-800d31fe.entry.js +162 -0
  132. package/dist/webcomponents/p-8115b2f4.js +28 -1
  133. package/dist/webcomponents/p-83125497.js +4027 -1
  134. package/dist/webcomponents/p-85fc69e5.js +90 -1
  135. package/dist/webcomponents/p-890088fc.entry.js +298 -0
  136. package/dist/webcomponents/p-89887332.js +301 -1
  137. package/dist/webcomponents/p-8df7bde8.js +27 -1
  138. package/dist/webcomponents/p-8eb774df.entry.js +54 -0
  139. package/dist/webcomponents/p-9282eab8.js +77 -0
  140. package/dist/webcomponents/p-96c12fef.entry.js +73 -0
  141. package/dist/webcomponents/p-9c9c7dac.js +24 -1
  142. package/dist/webcomponents/p-9f94bbb6.entry.js +118 -0
  143. package/dist/webcomponents/p-9fd108be.entry.js +74 -0
  144. package/dist/webcomponents/p-a5a225d9.entry.js +125 -0
  145. package/dist/webcomponents/p-a5c5821e.entry.js +101 -0
  146. package/dist/webcomponents/p-a5fb51dc.entry.js +131 -0
  147. package/dist/webcomponents/p-a6d04afc.js +44 -0
  148. package/dist/webcomponents/p-ac086069.entry.js +58 -0
  149. package/dist/webcomponents/p-acbac8b8.entry.js +131 -0
  150. package/dist/webcomponents/p-adc30a61.entry.js +145 -0
  151. package/dist/webcomponents/p-af244664.js +126 -1
  152. package/dist/webcomponents/p-b6e3d7ed.entry.js +94 -0
  153. package/dist/webcomponents/p-b82c146f.entry.js +111 -0
  154. package/dist/webcomponents/p-ba4bae6f.js +12 -1
  155. package/dist/webcomponents/p-ba5fae28.js +90 -1
  156. package/dist/webcomponents/p-c636f563.entry.js +791 -0
  157. package/dist/webcomponents/p-cb26f708.js +18 -0
  158. package/dist/webcomponents/p-d17aee2b.entry.js +26 -0
  159. package/dist/webcomponents/p-d89bad72.js +39 -1
  160. package/dist/webcomponents/p-dce846bf.js +27 -1
  161. package/dist/webcomponents/p-df21aaad.js +120 -1
  162. package/dist/webcomponents/p-e1255160.js +3 -1
  163. package/dist/webcomponents/p-e333620e.js +34 -1
  164. package/dist/webcomponents/p-e356f280.entry.js +29 -0
  165. package/dist/webcomponents/p-e3e5f95f.entry.js +98 -0
  166. package/dist/webcomponents/p-e3fab0e2.js +43 -1
  167. package/dist/webcomponents/p-eb5dbd23.entry.js +1684 -0
  168. package/dist/webcomponents/p-ec854a3e.entry.js +11053 -0
  169. package/dist/webcomponents/p-f02b75dc.entry.js +96 -0
  170. package/dist/webcomponents/p-fad19d75.js +1638 -2
  171. package/dist/webcomponents/webcomponents.css +362 -4
  172. package/dist/webcomponents/webcomponents.esm.js +20 -1
  173. package/package.json +2 -4
  174. package/dist/cjs/config-037e67d0.js +0 -15
  175. package/dist/config.js +0 -11
  176. package/dist/esm/config-58e393e2.js +0 -13
  177. package/dist/module/config.js +0 -13
  178. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +0 -11
  179. package/dist/webcomponents/p-023779ee.entry.js +0 -1
  180. package/dist/webcomponents/p-037763f4.entry.js +0 -1
  181. package/dist/webcomponents/p-07109641.entry.js +0 -1
  182. package/dist/webcomponents/p-0f7b9555.entry.js +0 -1
  183. package/dist/webcomponents/p-17e4246f.entry.js +0 -1
  184. package/dist/webcomponents/p-1a43e355.entry.js +0 -19
  185. package/dist/webcomponents/p-1f6afff9.entry.js +0 -1
  186. package/dist/webcomponents/p-246a6c6a.entry.js +0 -1
  187. package/dist/webcomponents/p-2d3b1692.entry.js +0 -1
  188. package/dist/webcomponents/p-30a493cd.entry.js +0 -1
  189. package/dist/webcomponents/p-32286934.js +0 -1
  190. package/dist/webcomponents/p-3f5e7e86.js +0 -1
  191. package/dist/webcomponents/p-462dc522.entry.js +0 -1
  192. package/dist/webcomponents/p-487b72a8.entry.js +0 -1
  193. package/dist/webcomponents/p-4abc17f0.entry.js +0 -1
  194. package/dist/webcomponents/p-52021fa1.entry.js +0 -1
  195. package/dist/webcomponents/p-53e64f15.entry.js +0 -1
  196. package/dist/webcomponents/p-57e1f2fd.js +0 -1
  197. package/dist/webcomponents/p-5f095525.entry.js +0 -1
  198. package/dist/webcomponents/p-62b32c4c.entry.js +0 -1
  199. package/dist/webcomponents/p-69faef3f.entry.js +0 -1
  200. package/dist/webcomponents/p-6c078cd1.js +0 -1
  201. package/dist/webcomponents/p-8e541a32.entry.js +0 -1
  202. package/dist/webcomponents/p-8f325782.entry.js +0 -1
  203. package/dist/webcomponents/p-987b5de2.entry.js +0 -1
  204. package/dist/webcomponents/p-a63fc384.entry.js +0 -1
  205. package/dist/webcomponents/p-a8220709.entry.js +0 -1
  206. package/dist/webcomponents/p-ae530971.entry.js +0 -1
  207. package/dist/webcomponents/p-b7cf49f4.entry.js +0 -1
  208. package/dist/webcomponents/p-b87b27ba.js +0 -1
  209. package/dist/webcomponents/p-bbed6107.entry.js +0 -1
  210. package/dist/webcomponents/p-be39c802.entry.js +0 -1
  211. package/dist/webcomponents/p-c28db166.js +0 -1
  212. package/dist/webcomponents/p-c9f8f7ec.entry.js +0 -1
  213. package/dist/webcomponents/p-d8355f91.entry.js +0 -1
  214. package/dist/webcomponents/p-e2c88817.entry.js +0 -1
  215. package/dist/webcomponents/p-e31f0f3e.entry.js +0 -1
  216. package/dist/webcomponents/p-edac2b43.entry.js +0 -1
  217. package/dist/webcomponents/p-ef23c091.entry.js +0 -1
  218. package/dist/webcomponents/p-f06910aa.entry.js +0 -1
  219. package/dist/webcomponents/p-f0866375.entry.js +0 -1
  220. package/dist/webcomponents/p-f0a06884.entry.js +0 -1
  221. package/dist/webcomponents/p-f2f94d9f.entry.js +0 -1
  222. package/dist/webcomponents/p-f49b7170.entry.js +0 -1
  223. package/dist/webcomponents/p-fb58feb5.entry.js +0 -1
  224. package/dist/webcomponents/p-fe33151d.entry.js +0 -1
@@ -0,0 +1,28 @@
1
+ import { A as Api } from './p-29c0b182.js';
2
+
3
+ class BusinessService {
4
+ async fetchBusiness(businessId, authToken) {
5
+ const endpoint = `entities/business/${businessId}`;
6
+ return Api({ authToken, apiOrigin: undefined }).get(endpoint);
7
+ }
8
+ async patchBusiness(authToken, businessId, payload) {
9
+ const endpoint = `entities/business/${businessId}`;
10
+ return Api({ authToken, apiOrigin: undefined }).patch(endpoint, payload);
11
+ }
12
+ }
13
+ class IdentityService {
14
+ async fetchIdentity(identityId, authToken) {
15
+ const endpoint = `entities/identity/${identityId}`;
16
+ return Api({ authToken, apiOrigin: undefined }).get(endpoint);
17
+ }
18
+ async patchIdentity(authToken, identityId, payload) {
19
+ const endpoint = `entities/identity/${identityId}`;
20
+ return Api({ authToken, apiOrigin: undefined }).patch(endpoint, payload);
21
+ }
22
+ async postIdentity(authToken, payload) {
23
+ const endpoint = `entities/identity`;
24
+ return Api({ authToken, apiOrigin: undefined }).post(endpoint, payload);
25
+ }
26
+ }
27
+
28
+ export { BusinessService as B, IdentityService as I };
@@ -1 +1,52 @@
1
- import{c as e}from"./p-2eab3c90.js";import{h as s,w as n,e as a,d as i,j as r,k as t,m as u,t as _,n as o,r as c,o as b,q as l,u as m,v as p,x as d,y as g}from"./p-89887332.js";const y=c=>{const b=e({legal_name:s.required("Enter legal name"),website_url:n.required("Enter business website url"),email:a.required("Enter business email"),phone:i.required("Enter phone number"),doing_business_as:r.required("Enter doing business as"),classification:t.required("Select business classification"),industry:u.required("Enter a business industry"),tax_id:_.required("Enter tax id, SSN, or EIN"),date_of_incorporation:o.required("Enter date of incorporation")}),l=e({legal_name:s.required("Enter legal name"),website_url:n.nullable(),email:a.nullable(),phone:i.nullable(),doing_business_as:r.nullable(),classification:t.nullable(),industry:u.nullable(),tax_id:_.nullable(),date_of_incorporation:o.nullable()});return c?l:b},v=s=>{const n=e({business_revenue:c.required("Enter business revenue"),business_payment_volume:b.required("Enter business payment volume"),business_when_service_received:l.required("Select when service is received"),business_recurring_payments:m.required("Select recurring payments"),business_recurring_payments_percentage:p,business_seasonal:d.required("Select business seasonal"),business_other_payment_details:g.nullable()}),a=e({business_revenue:c.nullable(),business_payment_volume:b.nullable(),business_when_service_received:l.nullable(),business_recurring_payments:m.nullable(),business_recurring_payments_percentage:p,business_seasonal:d.nullable(),business_other_payment_details:g.nullable()});return s?a:n};export{v as a,y as b}
1
+ import { c as create$3 } from './p-2eab3c90.js';
2
+ import { h as businessNameValidation, w as websiteUrlValidation, e as emailValidation, d as phoneValidation, j as doingBusinessAsValidation, k as businessClassificationValidation, m as industryValidation, t as taxIdValidation, n as dateOfIncorporationValidation, r as revenueValidation, o as paymentVolumeValidation, q as whenServiceReceivedValidation, u as recurringPaymentsValidation, v as recurringPaymentsPercentageValidation, x as seasonalBusinessValidation, y as otherPaymentDetailsValidation } from './p-89887332.js';
3
+
4
+ const businessCoreInfoSchema = (allowOptionalFields) => {
5
+ const schema = create$3({
6
+ legal_name: businessNameValidation.required('Enter legal name'),
7
+ website_url: websiteUrlValidation.required('Enter business website url'),
8
+ email: emailValidation.required('Enter business email'),
9
+ phone: phoneValidation.required('Enter phone number'),
10
+ doing_business_as: doingBusinessAsValidation.required('Enter doing business as'),
11
+ classification: businessClassificationValidation.required('Select business classification'),
12
+ industry: industryValidation.required('Enter a business industry'),
13
+ tax_id: taxIdValidation.required('Enter tax id, SSN, or EIN'),
14
+ date_of_incorporation: dateOfIncorporationValidation.required('Enter date of incorporation'),
15
+ });
16
+ const easySchema = create$3({
17
+ legal_name: businessNameValidation.required('Enter legal name'),
18
+ website_url: websiteUrlValidation.nullable(),
19
+ email: emailValidation.nullable(),
20
+ phone: phoneValidation.nullable(),
21
+ doing_business_as: doingBusinessAsValidation.nullable(),
22
+ classification: businessClassificationValidation.nullable(),
23
+ industry: industryValidation.nullable(),
24
+ tax_id: taxIdValidation.nullable(),
25
+ date_of_incorporation: dateOfIncorporationValidation.nullable(),
26
+ });
27
+ return allowOptionalFields ? easySchema : schema;
28
+ };
29
+
30
+ const additionalQuestionsSchema = (allowOptionalFields) => {
31
+ const schema = create$3({
32
+ business_revenue: revenueValidation.required('Enter business revenue'),
33
+ business_payment_volume: paymentVolumeValidation.required('Enter business payment volume'),
34
+ business_when_service_received: whenServiceReceivedValidation.required('Select when service is received'),
35
+ business_recurring_payments: recurringPaymentsValidation.required('Select recurring payments'),
36
+ business_recurring_payments_percentage: recurringPaymentsPercentageValidation,
37
+ business_seasonal: seasonalBusinessValidation.required('Select business seasonal'),
38
+ business_other_payment_details: otherPaymentDetailsValidation.nullable(),
39
+ });
40
+ const easySchema = create$3({
41
+ business_revenue: revenueValidation.nullable(),
42
+ business_payment_volume: paymentVolumeValidation.nullable(),
43
+ business_when_service_received: whenServiceReceivedValidation.nullable(),
44
+ business_recurring_payments: recurringPaymentsValidation.nullable(),
45
+ business_recurring_payments_percentage: recurringPaymentsPercentageValidation,
46
+ business_seasonal: seasonalBusinessValidation.nullable(),
47
+ business_other_payment_details: otherPaymentDetailsValidation.nullable(),
48
+ });
49
+ return allowOptionalFields ? easySchema : schema;
50
+ };
51
+
52
+ export { additionalQuestionsSchema as a, businessCoreInfoSchema as b };
@@ -0,0 +1,79 @@
1
+ const name = "@justifi/webcomponents";
2
+ const version = "4.19.1-rc-4";
3
+ const description = "JustiFi Web Components";
4
+ const collection = "dist/collection/collection-manifest.json";
5
+ const main = "dist/index.cjs.js";
6
+ const module = "dist/module/index.js";
7
+ const types = "dist/module/index.d.ts";
8
+ const repository = {
9
+ type: "git",
10
+ url: "git+https://github.com/justifi-tech/web-component-library.git"
11
+ };
12
+ const homepage = "https://storybook.justifi.ai/?path=/docs/introduction--docs";
13
+ const publishConfig = {
14
+ registry: "https://registry.npmjs.org"
15
+ };
16
+ const files = [
17
+ "dist/"
18
+ ];
19
+ const scripts = {
20
+ build: "stencil build --docs",
21
+ dev: "stencil build --watch",
22
+ lint: "eslint . --max-warnings 0",
23
+ clean: "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
24
+ generate: "stencil generate",
25
+ test: "TZ=utc stencil test --spec",
26
+ "test:watch": "TZ=utc stencil test --spec --watchAll",
27
+ "test:file": "stencil test --spec --watch --"
28
+ };
29
+ const dependencies = {
30
+ "@stencil/core": "^4.0.5",
31
+ "@stencil/store": "^2.0.8",
32
+ bootstrap: "^5.2.3",
33
+ "chart.js": "^4.4.1",
34
+ "date-fns": "^2.29.3",
35
+ "dinero.js": "^1.9.1",
36
+ "iframe-resizer": "^4.3.7",
37
+ imask: "^7.6.0",
38
+ rxjs: "^7.8.1",
39
+ "ts-dedent": "^2.2.0",
40
+ uuid: "^9.0.0",
41
+ yup: "^1.0.0"
42
+ };
43
+ const devDependencies = {
44
+ "@babel/preset-env": "^7.21.5",
45
+ "@babel/preset-react": "^7.18.6",
46
+ "@babel/preset-typescript": "^7.21.5",
47
+ "@rollup/plugin-replace": "^5.0.7",
48
+ "@stencil/sass": "^3.0.1",
49
+ "@types/jest": "27.0.3",
50
+ "@types/react": "^18.0.37",
51
+ "@types/react-dom": "^18.0.11",
52
+ dotenv: "^16.3.1",
53
+ jest: "^29.7.0",
54
+ "jest-cli": "^29.7.0",
55
+ "jest-environment-node": "^29.7.0",
56
+ "ts-jest": "^29.1.2"
57
+ };
58
+ const license = "MIT";
59
+ const gitHead = "507bac1d941eae6e1f56e185ecd9bc9d22637783";
60
+ const packageJson = {
61
+ name: name,
62
+ version: version,
63
+ description: description,
64
+ collection: collection,
65
+ main: main,
66
+ module: module,
67
+ types: types,
68
+ repository: repository,
69
+ homepage: homepage,
70
+ publishConfig: publishConfig,
71
+ files: files,
72
+ scripts: scripts,
73
+ dependencies: dependencies,
74
+ devDependencies: devDependencies,
75
+ license: license,
76
+ gitHead: gitHead
77
+ };
78
+
79
+ export { packageJson as p };
@@ -1 +1,22 @@
1
- const a={US:"(000) 000-0000"},s={US:"00-0000000"},r="000-00-0000",o={WHOLE:{mask:Number,thousandsSeparator:",",normalizeZeros:!0},DECIMAL:{mask:Number,scale:2,thousandsSeparator:",",padFractionalZeros:!0,normalizeZeros:!0,radix:"."}};export{o as C,a as P,r as S,s as T}
1
+ const PHONE_MASKS = {
2
+ US: '(000) 000-0000',
3
+ };
4
+ const TAX_ID_MASKS = { US: '00-0000000' };
5
+ const SSN_MASK = '000-00-0000';
6
+ const CURRENCY_MASK = {
7
+ WHOLE: {
8
+ mask: Number,
9
+ thousandsSeparator: ',',
10
+ normalizeZeros: true,
11
+ },
12
+ DECIMAL: {
13
+ mask: Number,
14
+ scale: 2,
15
+ thousandsSeparator: ',',
16
+ padFractionalZeros: true,
17
+ normalizeZeros: true,
18
+ radix: '.',
19
+ }
20
+ };
21
+
22
+ export { CURRENCY_MASK as C, PHONE_MASKS as P, SSN_MASK as S, TAX_ID_MASKS as T };
@@ -0,0 +1,21 @@
1
+ import { r as registerInstance, h, H as Host } from './p-fad19d75.js';
2
+ import { E as ExtendedPagingDefaults } from './p-56f6ce4c.js';
3
+
4
+ const PaginationMenu = class {
5
+ constructor(hostRef) {
6
+ registerInstance(this, hostRef);
7
+ this.paging = ExtendedPagingDefaults;
8
+ this.params = {};
9
+ }
10
+ render() {
11
+ return (h(Host, { key: '645df5028861aa714a814f908ccace8dcd0986f8', exportparts: `page-arrow,page-button,page-button-disabled,page-button-text` }, h("nav", { key: '6cb86ce01c625db9c31204f63258570f8a5d0a0f', "aria-label": "Table pagination", class: "d-flex justify-content-end gap-3" }, h("ul", { key: '7ffb5771a1c51553d64735721b937e53c699949d', class: "pagination m-0" }, h("li", { key: 'b439c2f7fe81ccdfa29670a6fc04715681ed5ab3', class: `page-item ${this.paging.has_previous ? '' : ' disabled'}` }, h("a", { key: 'dc59152e834a3076f09304f6fcd0195058ebefec', href: "#", class: "page-link", onClick: (e) => {
12
+ e.preventDefault();
13
+ this.paging.handleClickPrevious(this.paging.start_cursor);
14
+ }, part: `page-button${this.paging.has_previous ? '' : ' page-button-disabled'}` }, h("span", { key: 'fc640fb9ae2ca672bfed89d23c5641cb346c673d', class: "me-1", part: "page-arrow" }, "\u00AB"), h("span", { key: 'fb6fcd31ebd4d194b37f53a071537133b8c4d369', part: "page-button-text" }, "Previous"))), h("li", { key: 'b10e12ec7bc4a89cd897e868ec7b303c62599cd3', class: `page-item ${this.paging.has_next ? '' : ' disabled'}` }, h("a", { key: '51f91eb7cfef91dcbcfd9f11522213308bf717b5', href: "#", class: "page-link", onClick: (e) => {
15
+ e.preventDefault();
16
+ this.paging.handleClickNext(this.paging.end_cursor);
17
+ }, part: `page-button${this.paging.has_next ? '' : ' page-button-disabled'}` }, h("span", { key: 'd89f50a44dead676d19b8862a92ba636947fe6b1', part: "page-button-text" }, "Next"), h("span", { key: 'f5dd2ddddef86931d935df56101f1fed8118e4f6', class: "ms-1", part: "page-arrow" }, "\u00BB")))))));
18
+ }
19
+ };
20
+
21
+ export { PaginationMenu as pagination_menu };
@@ -1 +1,10 @@
1
- const e={amount:25,start_cursor:"",end_cursor:"",has_previous:!1,has_next:!1},s=Object.assign(Object.assign({},e),{handleClickNext:()=>{},handleClickPrevious:()=>{}});export{s as E,e as p}
1
+ const pagingDefaults = {
2
+ amount: 25,
3
+ start_cursor: '',
4
+ end_cursor: '',
5
+ has_previous: false,
6
+ has_next: false,
7
+ };
8
+ const ExtendedPagingDefaults = Object.assign(Object.assign({}, pagingDefaults), { handleClickNext: () => { }, handleClickPrevious: () => { } });
9
+
10
+ export { ExtendedPagingDefaults as E, pagingDefaults as p };
@@ -0,0 +1,43 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './p-fad19d75.js';
2
+
3
+ const NumberInput = class {
4
+ constructor(hostRef) {
5
+ registerInstance(this, hostRef);
6
+ this.formControlInput = createEvent(this, "formControlInput", 7);
7
+ this.formControlBlur = createEvent(this, "formControlBlur", 7);
8
+ this.handleFormControlInput = (event) => {
9
+ const target = event.target;
10
+ const name = target.getAttribute('name');
11
+ this.inputHandler(name, target.value);
12
+ this.formControlInput.emit({ name, value: target.value });
13
+ };
14
+ this.updateInput = (newValue) => {
15
+ const inputElement = this.el.querySelector('input');
16
+ if (inputElement) {
17
+ inputElement.value = newValue || '';
18
+ }
19
+ };
20
+ this.label = undefined;
21
+ this.name = undefined;
22
+ this.helpText = undefined;
23
+ this.errorText = undefined;
24
+ this.defaultValue = undefined;
25
+ this.inputHandler = undefined;
26
+ this.disabled = undefined;
27
+ }
28
+ handleDefaultValueChange(newValue) {
29
+ this.updateInput(newValue);
30
+ }
31
+ componentDidLoad() {
32
+ this.updateInput(this.defaultValue);
33
+ }
34
+ render() {
35
+ return (h(Host, { key: 'dd43d75b327c05e75b453b954346c6ffcd85a2f5', exportparts: 'label,input,input-invalid' }, h("div", { key: '5215f62251bd89be493ddffe46bf0c466b42e314', class: 'form-group d-flex flex-column' }, h("label", { key: 'f0409970f8d43bcdef92b81363cc24aa1bb691a0', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("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 }), h("form-control-help-text", { key: 'cd7b4a724427383cafc04137f6feca473695b020', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '04748d3c5b1067b0312a2b7c36369e2a21a7215f', errorText: this.errorText, name: this.name }))));
36
+ }
37
+ get el() { return getElement(this); }
38
+ static get watchers() { return {
39
+ "defaultValue": ["handleDefaultValueChange"]
40
+ }; }
41
+ };
42
+
43
+ export { NumberInput as form_control_number };
@@ -1 +1,178 @@
1
- import{C as r}from"./p-14c91ffd.js";import{g as e,a as o}from"./p-8115b2f4.js";const n=({authToken:n,businessId:t,service:s})=>async({onSuccess:i,onError:c,final:a=(()=>{})})=>{var u;try{const a=await s.fetchBusiness(t,n);if(a.error){return c({error:e(a.error),code:o(null===(u=a.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(a)}catch(e){const n=o(null==e?void 0:e.code);return c({error:e.message||e,code:n,severity:r.ERROR})}finally{return a()}},t=({authToken:n,businessId:t,service:s})=>async({payload:i,onSuccess:c,onError:a,final:u=(()=>{})})=>{var d;try{const u=await s.patchBusiness(n,t,i);if(u.error){return a({error:e(u.error),code:o(null===(d=u.error)||void 0===d?void 0:d.code),severity:r.ERROR})}c(u)}catch(e){const n=o(null==e?void 0:e.code);return a({error:e.message||e,code:n,severity:r.ERROR})}finally{return u()}},s=({authToken:n,businessId:t,product:s,service:i})=>async({onSuccess:c,onError:a})=>{var u;try{const d=await i.postProvisioning(n,t,s);if(d.error){return a({error:e(d.error),code:o(null===(u=d.error)||void 0===u?void 0:u.code),severity:r.ERROR})}c(d)}catch(e){const n=o(null==e?void 0:e.code);return a({error:e.message||e,code:n,severity:r.ERROR})}},i=({authToken:n,identityId:t,service:s})=>async({onSuccess:i,onError:c,final:a=(()=>{})})=>{var u;try{const a=await s.fetchIdentity(t,n);if(a.error){return c({error:e(a.error),code:o(null===(u=a.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(a)}catch(e){const n=o(null==e?void 0:e.code);return c({error:e.message||e,code:n,severity:r.ERROR})}finally{return a()}},c=({authToken:n,identityId:t,service:s})=>async({payload:i,onSuccess:c,onError:a,final:u=(()=>{})})=>{var d;try{const u=await s.patchIdentity(n,t,i);if(u.error){return a({error:e(u.error),code:o(null===(d=u.error)||void 0===d?void 0:d.code),severity:r.ERROR})}c(u)}catch(e){const n=o(null==e?void 0:e.code);return a({error:e.message||e,code:n,severity:r.ERROR})}finally{return u()}},a=({authToken:n,service:t})=>async({payload:s,onSuccess:i,onError:c,final:a=(()=>{})})=>{var u;try{const a=await t.postIdentity(n,s);if(a.error){return c({error:e(a.error),code:o(null===(u=a.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(a)}catch(e){const n=o(null==e?void 0:e.code);return c({error:e.message||e,code:n,severity:r.ERROR})}finally{return a()}};export{s as a,t as b,i as c,c as d,a as e,n as m}
1
+ import { C as ComponentErrorSeverity } from './p-14c91ffd.js';
2
+ import { g as getErrorMessage, a as getErrorCode } from './p-8115b2f4.js';
3
+
4
+ // Entity API Actions
5
+ const makeGetBusiness = ({ authToken, businessId, service }) => async ({ onSuccess, onError, final = () => { } }) => {
6
+ var _a;
7
+ try {
8
+ const response = await service.fetchBusiness(businessId, authToken);
9
+ if (!response.error) {
10
+ onSuccess(response);
11
+ }
12
+ else {
13
+ const responseError = getErrorMessage(response.error);
14
+ const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
15
+ return onError({
16
+ error: responseError,
17
+ code,
18
+ severity: ComponentErrorSeverity.ERROR,
19
+ });
20
+ }
21
+ }
22
+ catch (error) {
23
+ const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
24
+ return onError({
25
+ error: error.message || error,
26
+ code,
27
+ severity: ComponentErrorSeverity.ERROR,
28
+ });
29
+ }
30
+ finally {
31
+ return final();
32
+ }
33
+ };
34
+ const makePatchBusiness = ({ authToken, businessId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
35
+ var _a;
36
+ try {
37
+ const response = await service.patchBusiness(authToken, businessId, payload);
38
+ if (!response.error) {
39
+ onSuccess(response);
40
+ }
41
+ else {
42
+ const responseError = getErrorMessage(response.error);
43
+ const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
44
+ return onError({
45
+ error: responseError,
46
+ code,
47
+ severity: ComponentErrorSeverity.ERROR,
48
+ });
49
+ }
50
+ }
51
+ catch (error) {
52
+ const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
53
+ return onError({
54
+ error: error.message || error,
55
+ code,
56
+ severity: ComponentErrorSeverity.ERROR,
57
+ });
58
+ }
59
+ finally {
60
+ return final();
61
+ }
62
+ };
63
+ const makePostProvisioning = ({ authToken, businessId, product, service }) => async ({ onSuccess, onError }) => {
64
+ var _a;
65
+ try {
66
+ const response = await service.postProvisioning(authToken, businessId, product);
67
+ if (!response.error) {
68
+ onSuccess(response);
69
+ }
70
+ else {
71
+ const responseError = getErrorMessage(response.error);
72
+ const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
73
+ return onError({
74
+ error: responseError,
75
+ code,
76
+ severity: ComponentErrorSeverity.ERROR,
77
+ });
78
+ }
79
+ }
80
+ catch (error) {
81
+ const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
82
+ return onError({
83
+ error: error.message || error,
84
+ code,
85
+ severity: ComponentErrorSeverity.ERROR,
86
+ });
87
+ }
88
+ };
89
+ // Identity API Actions
90
+ const makeGetIdentity = ({ authToken, identityId, service }) => async ({ onSuccess, onError, final = () => { } }) => {
91
+ var _a;
92
+ try {
93
+ const response = await service.fetchIdentity(identityId, authToken);
94
+ if (!response.error) {
95
+ onSuccess(response);
96
+ }
97
+ else {
98
+ const responseError = getErrorMessage(response.error);
99
+ const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
100
+ return onError({
101
+ error: responseError,
102
+ code,
103
+ severity: ComponentErrorSeverity.ERROR,
104
+ });
105
+ }
106
+ }
107
+ catch (error) {
108
+ const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
109
+ return onError({
110
+ error: error.message || error,
111
+ code,
112
+ severity: ComponentErrorSeverity.ERROR,
113
+ });
114
+ }
115
+ finally {
116
+ return final();
117
+ }
118
+ };
119
+ const makePatchIdentity = ({ authToken, identityId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
120
+ var _a;
121
+ try {
122
+ const response = await service.patchIdentity(authToken, identityId, payload);
123
+ if (!response.error) {
124
+ onSuccess(response);
125
+ }
126
+ else {
127
+ const responseError = getErrorMessage(response.error);
128
+ const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
129
+ return onError({
130
+ error: responseError,
131
+ code,
132
+ severity: ComponentErrorSeverity.ERROR,
133
+ });
134
+ }
135
+ }
136
+ catch (error) {
137
+ const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
138
+ return onError({
139
+ error: error.message || error,
140
+ code,
141
+ severity: ComponentErrorSeverity.ERROR,
142
+ });
143
+ }
144
+ finally {
145
+ return final();
146
+ }
147
+ };
148
+ const makePostIdentity = ({ authToken, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
149
+ var _a;
150
+ try {
151
+ const response = await service.postIdentity(authToken, payload);
152
+ if (!response.error) {
153
+ onSuccess(response);
154
+ }
155
+ else {
156
+ const responseError = getErrorMessage(response.error);
157
+ const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
158
+ return onError({
159
+ error: responseError,
160
+ code,
161
+ severity: ComponentErrorSeverity.ERROR,
162
+ });
163
+ }
164
+ }
165
+ catch (error) {
166
+ const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
167
+ return onError({
168
+ error: error.message || error,
169
+ code,
170
+ severity: ComponentErrorSeverity.ERROR,
171
+ });
172
+ }
173
+ finally {
174
+ return final();
175
+ }
176
+ };
177
+
178
+ export { makePostProvisioning as a, makePatchBusiness as b, makeGetIdentity as c, makePatchIdentity as d, makePostIdentity as e, makeGetBusiness as m };