@justifi/webcomponents 4.19.1-rc-6 → 4.19.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 (244) hide show
  1. package/dist/cjs/{Analytics-54b8e890.js → Analytics-f870b3ee.js} +3 -2
  2. package/dist/cjs/{business-additional-questions-schema-cf545610.js → business-additional-questions-schema-11ce0005.js} +1 -1
  3. package/dist/cjs/{business-form-options-582467fe.js → business-form-options-26f9900c.js} +1 -1
  4. package/dist/cjs/{business.service-6bb7ac82.js → business.service-f63650f5.js} +6 -5
  5. package/dist/cjs/config-ff2dda66.js +15 -0
  6. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  7. package/dist/cjs/form-control-checkbox_9.cjs.entry.js +4 -4
  8. package/dist/cjs/{get-payout-csv-1391ff3e.js → get-payout-csv-f3aee6d0.js} +4 -3
  9. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +10 -9
  10. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -4
  11. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-business-details.cjs.entry.js +4 -3
  13. package/dist/cjs/justifi-business-form.cjs.entry.js +9 -8
  14. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -4
  15. package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -3
  16. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -4
  17. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -3
  18. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +9 -11
  19. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +5 -4
  20. package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -3
  21. package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -5
  22. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
  23. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -5
  24. package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -3
  25. package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -3
  26. package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -3
  27. package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -2
  28. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -4
  29. package/dist/cjs/{package-b75f8267.js → package-1321b070.js} +4 -2
  30. package/dist/cjs/{payload-parsers-1cbc3b57.js → payload-parsers-969ab9b6.js} +1 -1
  31. package/dist/cjs/{payment.service-dfcfa19b.js → payment.service-0a64f9cd.js} +3 -2
  32. package/dist/cjs/{schema-validations-2733de42.js → schema-validations-f3db892c.js} +1 -1
  33. package/dist/collection/api/services/analytics.service.js +2 -1
  34. package/dist/collection/api/services/business.service.js +6 -5
  35. package/dist/collection/api/services/checkout.service.js +3 -2
  36. package/dist/collection/api/services/insurance.service.js +3 -2
  37. package/dist/collection/api/services/payment.service.js +3 -2
  38. package/dist/collection/api/services/payout.service.js +4 -3
  39. package/dist/collection/api/services/provision.service.js +4 -2
  40. package/dist/collection/api/services/reports.service.js +2 -1
  41. package/dist/collection/components/bank-account-form/bank-account-form.js +4 -3
  42. package/dist/collection/components/business-forms/business-form/business-form.js +3 -2
  43. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +3 -2
  44. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +3 -2
  45. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +3 -2
  46. package/dist/collection/components/business-forms/utils/business-form-options.js +1 -1
  47. package/dist/collection/components/card-form/card-form.js +4 -3
  48. package/dist/collection/components/checkout/checkout-core.js +4 -4
  49. package/dist/collection/components/checkout/new-payment-method.js +4 -6
  50. package/dist/collection/components/checkout/payment-method-options.js +4 -3
  51. package/dist/collection/components/checkout/saved-payment-method.js +4 -3
  52. package/dist/collection/components/checkout/sezzle-payment-method.js +4 -3
  53. package/dist/collection/components/payment-form/payment-form.js +4 -3
  54. package/dist/collection/components/refund-form/refund-form.js +3 -2
  55. package/dist/config.js +11 -0
  56. package/dist/docs.json +8 -8
  57. package/dist/esm/{Analytics-25ef1b60.js → Analytics-262cdde5.js} +3 -2
  58. package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-e39bc781.js} +1 -1
  59. package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-0b08e08c.js} +1 -1
  60. package/dist/esm/{business.service-f45decfc.js → business.service-74bd1212.js} +6 -5
  61. package/dist/esm/config-476c7241.js +13 -0
  62. package/dist/esm/form-alert_5.entry.js +1 -1
  63. package/dist/esm/form-control-checkbox_9.entry.js +4 -4
  64. package/dist/esm/{get-payout-csv-e784a2ab.js → get-payout-csv-b494abfe.js} +4 -3
  65. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +10 -9
  66. package/dist/esm/justifi-bank-account-form.entry.js +5 -4
  67. package/dist/esm/justifi-billing-form_2.entry.js +2 -2
  68. package/dist/esm/justifi-business-details.entry.js +4 -3
  69. package/dist/esm/justifi-business-form.entry.js +9 -8
  70. package/dist/esm/justifi-card-form.entry.js +5 -4
  71. package/dist/esm/justifi-checkout-core.entry.js +3 -3
  72. package/dist/esm/justifi-checkout.entry.js +5 -4
  73. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -3
  74. package/dist/esm/justifi-new-payment-method_4.entry.js +9 -11
  75. package/dist/esm/justifi-owner-form_3.entry.js +5 -4
  76. package/dist/esm/justifi-payment-details.entry.js +4 -3
  77. package/dist/esm/justifi-payment-form.entry.js +6 -5
  78. package/dist/esm/justifi-payment-method-form.entry.js +1 -1
  79. package/dist/esm/justifi-payment-provisioning.entry.js +6 -5
  80. package/dist/esm/justifi-payments-list.entry.js +4 -3
  81. package/dist/esm/justifi-payout-details.entry.js +4 -3
  82. package/dist/esm/justifi-payouts-list.entry.js +4 -3
  83. package/dist/esm/justifi-refund-form.entry.js +3 -2
  84. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -4
  85. package/dist/esm/{package-478b028a.js → package-d88677e9.js} +4 -2
  86. package/dist/esm/{payload-parsers-acb719d1.js → payload-parsers-62f443e1.js} +1 -1
  87. package/dist/esm/{payment.service-dad5153b.js → payment.service-3ca4a492.js} +3 -2
  88. package/dist/esm/{schema-validations-a83ff220.js → schema-validations-2f4fdebb.js} +1 -1
  89. package/dist/module/Analytics.js +2 -1
  90. package/dist/module/business-bank-account-form-step.js +3 -2
  91. package/dist/module/business-document-upload-form-step.js +3 -2
  92. package/dist/module/business-form-options.js +1 -1
  93. package/dist/module/business-terms-conditions-form-step.js +3 -2
  94. package/dist/module/business.service.js +6 -5
  95. package/dist/module/checkout-core.js +3 -3
  96. package/dist/module/config.js +13 -0
  97. package/dist/module/get-payout-csv.js +4 -3
  98. package/dist/module/justifi-bank-account-form.js +3 -2
  99. package/dist/module/justifi-business-form.js +3 -2
  100. package/dist/module/justifi-card-form.js +3 -2
  101. package/dist/module/justifi-checkout.js +3 -2
  102. package/dist/module/justifi-gross-payment-chart.js +2 -1
  103. package/dist/module/justifi-payment-form.js +4 -3
  104. package/dist/module/justifi-payment-provisioning.js +3 -2
  105. package/dist/module/justifi-refund-form.js +3 -2
  106. package/dist/module/justifi-season-interruption-insurance.js +3 -2
  107. package/dist/module/new-payment-method.js +3 -5
  108. package/dist/module/package.js +4 -2
  109. package/dist/module/payment-method-options.js +3 -2
  110. package/dist/module/payment.service.js +3 -2
  111. package/dist/module/saved-payment-method.js +3 -2
  112. package/dist/module/sezzle-payment-method.js +3 -2
  113. package/dist/types/components/checkout/new-payment-method.d.ts +0 -1
  114. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
  115. package/dist/webcomponents/index.esm.js +0 -1
  116. package/dist/webcomponents/p-04a0dbb6.js +1 -0
  117. package/dist/webcomponents/p-061dcb79.entry.js +1 -0
  118. package/dist/webcomponents/p-07109641.entry.js +1 -0
  119. package/dist/webcomponents/p-08b0fb31.js +1 -41
  120. package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
  121. package/dist/webcomponents/p-14c91ffd.js +1 -20
  122. package/dist/webcomponents/p-198994c0.entry.js +1 -0
  123. package/dist/webcomponents/p-1a43e355.entry.js +19 -0
  124. package/dist/webcomponents/p-1ad5995e.js +1 -3599
  125. package/dist/webcomponents/p-1f70fa27.entry.js +1 -0
  126. package/dist/webcomponents/p-1ff8810b.js +1 -29
  127. package/dist/webcomponents/p-2338affa.js +1 -213
  128. package/dist/webcomponents/p-241b0ed9.js +1 -0
  129. package/dist/webcomponents/p-2799383d.entry.js +1 -0
  130. package/dist/webcomponents/p-29c0b182.js +1 -114
  131. package/dist/webcomponents/p-2b6c9c4f.js +1 -7
  132. package/dist/webcomponents/p-2eab3c90.js +1 -3052
  133. package/dist/webcomponents/p-3affadfc.entry.js +1 -0
  134. package/dist/webcomponents/p-3d4d566d.entry.js +1 -0
  135. package/dist/webcomponents/p-3dd4c6c3.entry.js +1 -0
  136. package/dist/webcomponents/p-462dc522.entry.js +1 -0
  137. package/dist/webcomponents/p-46f679a9.js +1 -0
  138. package/dist/webcomponents/p-487b72a8.entry.js +1 -0
  139. package/dist/webcomponents/p-48ae16e0.entry.js +1 -0
  140. package/dist/webcomponents/p-4abc17f0.entry.js +1 -0
  141. package/dist/webcomponents/p-4bac636e.entry.js +1 -0
  142. package/dist/webcomponents/p-52021fa1.entry.js +1 -0
  143. package/dist/webcomponents/p-525db3e8.js +1 -22
  144. package/dist/webcomponents/p-53948ff8.entry.js +1 -0
  145. package/dist/webcomponents/p-53e64f15.entry.js +1 -0
  146. package/dist/webcomponents/p-554a3c18.js +1 -0
  147. package/dist/webcomponents/p-56f6ce4c.js +1 -10
  148. package/dist/webcomponents/p-5968ff8a.js +1 -178
  149. package/dist/webcomponents/p-6078a370.js +1 -244
  150. package/dist/webcomponents/p-60a370fc.entry.js +1 -0
  151. package/dist/webcomponents/p-62b32c4c.entry.js +1 -0
  152. package/dist/webcomponents/p-65b561da.entry.js +1 -0
  153. package/dist/webcomponents/p-72c9e6b3.entry.js +1 -0
  154. package/dist/webcomponents/p-75b4daef.js +1 -0
  155. package/dist/webcomponents/p-7d85af5c.js +1 -16
  156. package/dist/webcomponents/p-8115b2f4.js +1 -28
  157. package/dist/webcomponents/p-83125497.js +1 -4027
  158. package/dist/webcomponents/p-8603348a.js +1 -0
  159. package/dist/webcomponents/p-890b3254.entry.js +1 -0
  160. package/dist/webcomponents/p-8df7bde8.js +1 -27
  161. package/dist/webcomponents/p-92bb1e5f.entry.js +1 -0
  162. package/dist/webcomponents/p-9c9c7dac.js +1 -24
  163. package/dist/webcomponents/p-9ccfa1c9.entry.js +1 -0
  164. package/dist/webcomponents/p-9dc36f76.entry.js +1 -0
  165. package/dist/webcomponents/p-ad41c8c7.entry.js +1 -0
  166. package/dist/webcomponents/p-ae263544.js +1 -0
  167. package/dist/webcomponents/p-af244664.js +1 -126
  168. package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
  169. package/dist/webcomponents/p-ba4bae6f.js +1 -12
  170. package/dist/webcomponents/p-bbed6107.entry.js +1 -0
  171. package/dist/webcomponents/p-bc92235c.entry.js +1 -0
  172. package/dist/webcomponents/p-be39c802.entry.js +1 -0
  173. package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
  174. package/dist/webcomponents/p-d101c5db.js +1 -0
  175. package/dist/webcomponents/p-d1c8d794.entry.js +1 -0
  176. package/dist/webcomponents/p-d25c2f12.js +1 -0
  177. package/dist/webcomponents/p-d2a5054f.entry.js +1 -0
  178. package/dist/webcomponents/p-d765d638.js +1 -0
  179. package/dist/webcomponents/p-d8355f91.entry.js +1 -0
  180. package/dist/webcomponents/p-d89bad72.js +1 -39
  181. package/dist/webcomponents/p-dce846bf.js +1 -27
  182. package/dist/webcomponents/p-df21aaad.js +1 -120
  183. package/dist/webcomponents/p-e1255160.js +1 -3
  184. package/dist/webcomponents/p-e2c88817.entry.js +1 -0
  185. package/dist/webcomponents/p-e31f0f3e.entry.js +1 -0
  186. package/dist/webcomponents/p-e333620e.js +1 -34
  187. package/dist/webcomponents/p-e3fab0e2.js +1 -43
  188. package/dist/webcomponents/p-f0866375.entry.js +1 -0
  189. package/dist/webcomponents/p-fad19d75.js +2 -1638
  190. package/dist/webcomponents/p-fb58feb5.entry.js +1 -0
  191. package/dist/webcomponents/p-fe33151d.entry.js +1 -0
  192. package/dist/webcomponents/webcomponents.css +4 -362
  193. package/dist/webcomponents/webcomponents.esm.js +1 -20
  194. package/package.json +4 -2
  195. package/dist/globals.d.ts +0 -2
  196. package/dist/webcomponents/p-01a404ca.entry.js +0 -44
  197. package/dist/webcomponents/p-03d35880.entry.js +0 -130
  198. package/dist/webcomponents/p-06ff0429.entry.js +0 -65
  199. package/dist/webcomponents/p-0e2384b5.entry.js +0 -1684
  200. package/dist/webcomponents/p-1bbbf15d.js +0 -79
  201. package/dist/webcomponents/p-20abace7.js +0 -77
  202. package/dist/webcomponents/p-258b1ee2.entry.js +0 -149
  203. package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
  204. package/dist/webcomponents/p-3b5948ea.entry.js +0 -133
  205. package/dist/webcomponents/p-3c50942c.entry.js +0 -94
  206. package/dist/webcomponents/p-3e9ef4a8.js +0 -28
  207. package/dist/webcomponents/p-3fd13ca3.js +0 -52
  208. package/dist/webcomponents/p-40236338.entry.js +0 -80
  209. package/dist/webcomponents/p-5482d030.entry.js +0 -21
  210. package/dist/webcomponents/p-576826b1.entry.js +0 -43
  211. package/dist/webcomponents/p-5cb3f0b2.entry.js +0 -261
  212. package/dist/webcomponents/p-5f835b89.entry.js +0 -606
  213. package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
  214. package/dist/webcomponents/p-73210c03.entry.js +0 -75
  215. package/dist/webcomponents/p-7582b554.entry.js +0 -18
  216. package/dist/webcomponents/p-79646550.entry.js +0 -61
  217. package/dist/webcomponents/p-800d31fe.entry.js +0 -162
  218. package/dist/webcomponents/p-8371f61c.entry.js +0 -94
  219. package/dist/webcomponents/p-85fc69e5.js +0 -90
  220. package/dist/webcomponents/p-890088fc.entry.js +0 -298
  221. package/dist/webcomponents/p-89887332.js +0 -301
  222. package/dist/webcomponents/p-8eb774df.entry.js +0 -54
  223. package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
  224. package/dist/webcomponents/p-a096bc5b.entry.js +0 -145
  225. package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
  226. package/dist/webcomponents/p-a5c5821e.entry.js +0 -101
  227. package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
  228. package/dist/webcomponents/p-a64f0ebe.entry.js +0 -117
  229. package/dist/webcomponents/p-a6d04afc.js +0 -44
  230. package/dist/webcomponents/p-ac086069.entry.js +0 -58
  231. package/dist/webcomponents/p-b233d1e2.entry.js +0 -74
  232. package/dist/webcomponents/p-b82c146f.entry.js +0 -111
  233. package/dist/webcomponents/p-ba5fae28.js +0 -90
  234. package/dist/webcomponents/p-ba6661f2.entry.js +0 -73
  235. package/dist/webcomponents/p-c636f563.entry.js +0 -791
  236. package/dist/webcomponents/p-cb26f708.js +0 -18
  237. package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
  238. package/dist/webcomponents/p-e26541b9.entry.js +0 -98
  239. package/dist/webcomponents/p-e356f280.entry.js +0 -29
  240. package/dist/webcomponents/p-e78af6d3.entry.js +0 -97
  241. package/dist/webcomponents/p-e7b8199d.entry.js +0 -131
  242. package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
  243. package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
  244. package/dist/webcomponents/p-fd7918c2.entry.js +0 -99
@@ -1,96 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './p-fad19d75.js';
2
- import { c as DetailItem, D as DetailSectionTitle } from './p-dce846bf.js';
3
- import { i as isEmptyObject, s as snakeCaseToHumanReadable, e as formatMediumDate } from './p-83125497.js';
4
-
5
- const sharedBusinessDetailsCss$4 = ".flex-1{flex:1}";
6
- const AdditionalQuestionsDetailsStyle0 = sharedBusinessDetailsCss$4;
7
-
8
- const AdditionalQuestionsDetails = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- this.additionalQuestions = undefined;
12
- }
13
- render() {
14
- var _a, _b;
15
- if (isEmptyObject(this.additionalQuestions))
16
- return null;
17
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Additional Questions" }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Revenue", value: (_a = this.additionalQuestions.business_revenue) === null || _a === void 0 ? void 0 : _a.toString() }), h(DetailItem, { title: "Business Payment Volume", value: (_b = this.additionalQuestions.business_payment_volume) === null || _b === void 0 ? void 0 : _b.toString() }))))));
18
- }
19
- };
20
- AdditionalQuestionsDetails.style = AdditionalQuestionsDetailsStyle0;
21
-
22
- const sharedBusinessDetailsCss$3 = ".flex-1{flex:1}";
23
- const GenericInfoDetailsStyle0 = sharedBusinessDetailsCss$3;
24
-
25
- const GenericInfoDetails = class {
26
- constructor(hostRef) {
27
- registerInstance(this, hostRef);
28
- this.business = undefined;
29
- }
30
- render() {
31
- var _a, _b, _c, _d, _e, _f, _g, _h;
32
- if (!this.business)
33
- return null;
34
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Generic Info Details" }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: (_a = this.business) === null || _a === void 0 ? void 0 : _a.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: (_b = this.business) === null || _b === void 0 ? void 0 : _b.doing_business_as }), h(DetailItem, { title: "Business Classification", value: snakeCaseToHumanReadable((_c = this.business) === null || _c === void 0 ? void 0 : _c.classification) }), h(DetailItem, { title: "Industry", value: (_d = this.business) === null || _d === void 0 ? void 0 : _d.industry })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Tax ID", value: (_e = this.business) === null || _e === void 0 ? void 0 : _e.tax_id }), h(DetailItem, { title: "Website URL", value: (_f = this.business) === null || _f === void 0 ? void 0 : _f.website_url }), h(DetailItem, { title: "Email Address", value: (_g = this.business) === null || _g === void 0 ? void 0 : _g.email }), h(DetailItem, { title: "Phone Number", value: (_h = this.business) === null || _h === void 0 ? void 0 : _h.phone }))))));
35
- }
36
- };
37
- GenericInfoDetails.style = GenericInfoDetailsStyle0;
38
-
39
- const sharedBusinessDetailsCss$2 = ".flex-1{flex:1}";
40
- const LegalAddressDetailsStyle0 = sharedBusinessDetailsCss$2;
41
-
42
- const LegalAddressDetails = class {
43
- constructor(hostRef) {
44
- registerInstance(this, hostRef);
45
- this.legalAddress = undefined;
46
- }
47
- render() {
48
- var _a, _b, _c, _d, _e, _f, _g;
49
- if (isEmptyObject(this.legalAddress))
50
- return null;
51
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Legal Address Details" }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Country", value: (_a = this.legalAddress) === null || _a === void 0 ? void 0 : _a.country }), h(DetailItem, { title: "Legal Address", value: (_b = this.legalAddress) === null || _b === void 0 ? void 0 : _b.line1 }), h(DetailItem, { title: "Address Line 2", value: (_c = this.legalAddress) === null || _c === void 0 ? void 0 : _c.line2 })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "City", value: (_d = this.legalAddress) === null || _d === void 0 ? void 0 : _d.city }), h(DetailItem, { title: "State", value: (_e = this.legalAddress) === null || _e === void 0 ? void 0 : _e.state }), h(DetailItem, { title: "Postal Code", value: (_g = (_f = this.legalAddress) === null || _f === void 0 ? void 0 : _f.postal_code) === null || _g === void 0 ? void 0 : _g.toString() }))))));
52
- }
53
- };
54
- LegalAddressDetails.style = LegalAddressDetailsStyle0;
55
-
56
- const sharedBusinessDetailsCss$1 = ".flex-1{flex:1}";
57
- const OwnerDetailsStyle0 = sharedBusinessDetailsCss$1;
58
-
59
- const OwnerDetails = class {
60
- constructor(hostRef) {
61
- registerInstance(this, hostRef);
62
- this.owners = undefined;
63
- }
64
- render() {
65
- var _a;
66
- if (!((_a = this === null || this === void 0 ? void 0 : this.owners) === null || _a === void 0 ? void 0 : _a.length))
67
- return null;
68
- return (h(Host, null, !!(this === null || this === void 0 ? void 0 : this.owners.length) && (this.owners.map(owner => {
69
- var _a, _b, _c, _d, _e;
70
- return [
71
- h(DetailSectionTitle, { sectionTitle: `Owner ${owner === null || owner === void 0 ? void 0 : owner.name}'s Details` }),
72
- h("div", { class: "d-table gap-2 w-100" }, h(DetailItem, { title: "Name", value: owner === null || owner === void 0 ? void 0 : owner.name }), h(DetailItem, { title: "Title", value: owner === null || owner === void 0 ? void 0 : owner.title }), h(DetailItem, { title: "Email", value: owner === null || owner === void 0 ? void 0 : owner.email }), h(DetailItem, { title: "Phone", value: owner === null || owner === void 0 ? void 0 : owner.phone }), h(DetailItem, { title: "Date of Birth", value: formatMediumDate(new Date(Number(owner === null || owner === void 0 ? void 0 : owner.dob_day), Number(owner === null || owner === void 0 ? void 0 : owner.dob_month), Number(owner === null || owner === void 0 ? void 0 : owner.dob_year))) }), h(DetailItem, { title: "Identification Number", value: `********${owner === null || owner === void 0 ? void 0 : owner.ssn_last4}` }), h(DetailItem, { title: "Line 1", value: (_a = owner === null || owner === void 0 ? void 0 : owner.address) === null || _a === void 0 ? void 0 : _a.line1 }), h(DetailItem, { title: "Line 2", value: (_b = owner === null || owner === void 0 ? void 0 : owner.address) === null || _b === void 0 ? void 0 : _b.line2 }), h(DetailItem, { title: "City", value: (_c = owner === null || owner === void 0 ? void 0 : owner.address) === null || _c === void 0 ? void 0 : _c.city }), h(DetailItem, { title: "State", value: (_d = owner === null || owner === void 0 ? void 0 : owner.address) === null || _d === void 0 ? void 0 : _d.state }), h(DetailItem, { title: "Zip", value: (_e = owner === null || owner === void 0 ? void 0 : owner.address) === null || _e === void 0 ? void 0 : _e.postal_code }))
73
- ];
74
- }))));
75
- }
76
- };
77
- OwnerDetails.style = OwnerDetailsStyle0;
78
-
79
- const sharedBusinessDetailsCss = ".flex-1{flex:1}";
80
- const RepresentativeDetailsStyle0 = sharedBusinessDetailsCss;
81
-
82
- const JustifiRepresentativeDetails = class {
83
- constructor(hostRef) {
84
- registerInstance(this, hostRef);
85
- this.representative = undefined;
86
- }
87
- render() {
88
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
89
- if (isEmptyObject(this.representative))
90
- return null;
91
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Representative Details" }), h("div", { class: "d-table gap-2 w-100" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Name", value: (_a = this.representative) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { title: "ID", value: (_b = this.representative) === null || _b === void 0 ? void 0 : _b.id }), h(DetailItem, { title: "Address", value: (_d = (_c = this.representative) === null || _c === void 0 ? void 0 : _c.address) === null || _d === void 0 ? void 0 : _d.line1 }), h(DetailItem, { title: "Created At", value: ((_e = this.representative) === null || _e === void 0 ? void 0 : _e.created_at) && formatMediumDate((_f = this.representative) === null || _f === void 0 ? void 0 : _f.created_at) })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Title", value: (_g = this.representative) === null || _g === void 0 ? void 0 : _g.title }), h(DetailItem, { title: "Is Owner?", value: (_h = this.representative) === null || _h === void 0 ? void 0 : _h.is_owner.toString() }), h(DetailItem, { title: "Date Of Birth", value: this.representative && formatMediumDate(new Date(Number((_j = this.representative) === null || _j === void 0 ? void 0 : _j.dob_year), Number((_k = this.representative) === null || _k === void 0 ? void 0 : _k.dob_month) - 1, Number((_l = this.representative) === null || _l === void 0 ? void 0 : _l.dob_day))) }), h(DetailItem, { title: "Email", value: (_m = this.representative) === null || _m === void 0 ? void 0 : _m.email }), h(DetailItem, { title: "Phone", value: (_o = this.representative) === null || _o === void 0 ? void 0 : _o.phone }), h(DetailItem, { title: "Updated At", value: this.representative && formatMediumDate((_p = this.representative) === null || _p === void 0 ? void 0 : _p.updated_at) }))))));
92
- }
93
- };
94
- JustifiRepresentativeDetails.style = RepresentativeDetailsStyle0;
95
-
96
- export { AdditionalQuestionsDetails as additional_questions_details, GenericInfoDetails as generic_info_details, LegalAddressDetails as legal_address_details, OwnerDetails as owner_details, JustifiRepresentativeDetails as representative_details };
@@ -1,99 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
2
- import { m as makeGetPayoutCSV, P as PayoutService } from './p-a6d04afc.js';
3
- import './p-56f6ce4c.js';
4
- import './p-df21aaad.js';
5
- import { P as Payout } from './p-e3fab0e2.js';
6
- import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './p-14c91ffd.js';
7
- import { g as getErrorMessage, a as getErrorCode } from './p-8115b2f4.js';
8
- import { E as ErrorState } from './p-dce846bf.js';
9
- import { J as JustifiAnalytics } from './p-20abace7.js';
10
- import './p-29c0b182.js';
11
- import './p-1bbbf15d.js';
12
-
13
- const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
14
- var _a;
15
- try {
16
- const response = await service.fetchPayout(id, authToken);
17
- if (!response.error) {
18
- const payout = new Payout(response.data);
19
- onSuccess(payout);
20
- }
21
- else {
22
- const errorMessage = getErrorMessage(response.error);
23
- const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
24
- onError({
25
- error: errorMessage,
26
- code,
27
- severity: ComponentErrorSeverity.ERROR,
28
- });
29
- }
30
- }
31
- catch (error) {
32
- const errorMessage = getErrorMessage(error);
33
- const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
34
- onError({
35
- error: errorMessage,
36
- code,
37
- severity: ComponentErrorSeverity.ERROR,
38
- });
39
- }
40
- };
41
-
42
- const PayoutDetails = class {
43
- constructor(hostRef) {
44
- registerInstance(this, hostRef);
45
- this.errorEvent = createEvent(this, "error-event", 7);
46
- this.handleErrorEvent = (event) => {
47
- this.errorMessage = event.detail.message;
48
- this.errorEvent.emit(event.detail);
49
- };
50
- this.payoutId = undefined;
51
- this.authToken = undefined;
52
- this.getPayout = undefined;
53
- this.getPayoutCSV = undefined;
54
- this.errorMessage = null;
55
- }
56
- componentWillLoad() {
57
- this.analytics = new JustifiAnalytics(this);
58
- this.initializeServices();
59
- }
60
- disconnectedCallback() {
61
- this.analytics.cleanup();
62
- }
63
- propChanged() {
64
- this.initializeServices();
65
- }
66
- initializeServices() {
67
- if (this.payoutId && this.authToken) {
68
- this.getPayout = makeGetPayoutDetails({
69
- id: this.payoutId,
70
- authToken: this.authToken,
71
- service: new PayoutService()
72
- });
73
- this.getPayoutCSV = makeGetPayoutCSV({
74
- authToken: this.authToken,
75
- service: new PayoutService()
76
- });
77
- }
78
- else {
79
- this.errorMessage = 'Failed to load payout details. payoutId or authToken is not provided.';
80
- this.errorEvent.emit({
81
- message: this.errorMessage,
82
- errorCode: ComponentErrorCodes.MISSING_PROPS,
83
- severity: ComponentErrorSeverity.ERROR
84
- });
85
- }
86
- }
87
- render() {
88
- if (this.errorMessage) {
89
- return ErrorState(this.errorMessage);
90
- }
91
- return (h("payout-details-core", { getPayout: this.getPayout, getPayoutCSV: this.getPayoutCSV, "onError-event": this.handleErrorEvent }));
92
- }
93
- static get watchers() { return {
94
- "payoutId": ["propChanged"],
95
- "authToken": ["propChanged"]
96
- }; }
97
- };
98
-
99
- export { PayoutDetails as justifi_payout_details };