@justifi/webcomponents 4.19.0 → 4.19.1-rc-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/dist/cjs/{Analytics-ff013cbc.js → Analytics-1ca4e47e.js} +2 -3
  2. package/dist/cjs/{business.service-f63650f5.js → business.service-6bb7ac82.js} +5 -6
  3. package/dist/cjs/{get-payout-csv-f3aee6d0.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-cb0f8cb1.js → package-bc2632e4.js} +2 -4
  24. package/dist/cjs/{payment.service-0a64f9cd.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-33b8fa8d.js → Analytics-c51439be.js} +2 -3
  48. package/dist/esm/{business.service-74bd1212.js → business.service-f45decfc.js} +5 -6
  49. package/dist/esm/{get-payout-csv-b494abfe.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-3e407c6d.js → package-09a354e0.js} +2 -4
  70. package/dist/esm/{payment.service-3ca4a492.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-03d35880.entry.js +130 -0
  98. package/dist/webcomponents/p-06ff0429.entry.js +65 -0
  99. package/dist/webcomponents/p-08b0fb31.js +41 -1
  100. package/dist/webcomponents/p-14c91ffd.js +20 -1
  101. package/dist/webcomponents/p-1a17ea7d.entry.js +1684 -0
  102. package/dist/webcomponents/p-1ad5995e.js +3599 -1
  103. package/dist/webcomponents/p-1ff8810b.js +29 -1
  104. package/dist/webcomponents/p-21aeb013.entry.js +80 -0
  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-2dabeb5a.js +79 -0
  111. package/dist/webcomponents/p-2eab3c90.js +3052 -1
  112. package/dist/webcomponents/p-33272d05.entry.js +94 -0
  113. package/dist/webcomponents/p-3642ad71.entry.js +145 -0
  114. package/dist/webcomponents/p-387450f6.js +77 -0
  115. package/dist/webcomponents/p-3e9ef4a8.js +28 -0
  116. package/dist/webcomponents/p-3fd13ca3.js +52 -1
  117. package/dist/webcomponents/p-41bc7c5c.entry.js +97 -0
  118. package/dist/webcomponents/p-4d8b45c6.entry.js +98 -0
  119. package/dist/webcomponents/p-525db3e8.js +22 -1
  120. package/dist/webcomponents/p-5482d030.entry.js +21 -0
  121. package/dist/webcomponents/p-56f6ce4c.js +10 -1
  122. package/dist/webcomponents/p-576826b1.entry.js +43 -0
  123. package/dist/webcomponents/p-5968ff8a.js +178 -1
  124. package/dist/webcomponents/p-5bd7b204.entry.js +75 -0
  125. package/dist/webcomponents/p-5cb3f0b2.entry.js +261 -0
  126. package/dist/webcomponents/p-5e70442b.entry.js +74 -0
  127. package/dist/webcomponents/p-5f835b89.entry.js +606 -0
  128. package/dist/webcomponents/p-6078a370.js +244 -1
  129. package/dist/webcomponents/p-68843186.entry.js +73 -0
  130. package/dist/webcomponents/p-70a2aa74.entry.js +76 -0
  131. package/dist/webcomponents/p-7582b554.entry.js +18 -0
  132. package/dist/webcomponents/p-79646550.entry.js +61 -0
  133. package/dist/webcomponents/p-7c76e67c.entry.js +117 -0
  134. package/dist/webcomponents/p-7d85af5c.js +16 -1
  135. package/dist/webcomponents/p-800d31fe.entry.js +162 -0
  136. package/dist/webcomponents/p-8115b2f4.js +28 -1
  137. package/dist/webcomponents/p-83125497.js +4027 -1
  138. package/dist/webcomponents/p-85fc69e5.js +90 -1
  139. package/dist/webcomponents/p-890088fc.entry.js +298 -0
  140. package/dist/webcomponents/p-89887332.js +301 -1
  141. package/dist/webcomponents/p-8df7bde8.js +27 -1
  142. package/dist/webcomponents/p-8eb774df.entry.js +54 -0
  143. package/dist/webcomponents/p-9c9c7dac.js +24 -1
  144. package/dist/webcomponents/p-9f94bbb6.entry.js +118 -0
  145. package/dist/webcomponents/p-a5a225d9.entry.js +125 -0
  146. package/dist/webcomponents/p-a5c5821e.entry.js +101 -0
  147. package/dist/webcomponents/p-a5fb51dc.entry.js +131 -0
  148. package/dist/webcomponents/p-a6d04afc.js +44 -0
  149. package/dist/webcomponents/p-ac086069.entry.js +58 -0
  150. package/dist/webcomponents/p-af244664.js +126 -1
  151. package/dist/webcomponents/p-b82c146f.entry.js +111 -0
  152. package/dist/webcomponents/p-b8a03a4b.entry.js +131 -0
  153. package/dist/webcomponents/p-ba4bae6f.js +12 -1
  154. package/dist/webcomponents/p-ba5fae28.js +90 -1
  155. package/dist/webcomponents/p-c636f563.entry.js +791 -0
  156. package/dist/webcomponents/p-c86c24d2.entry.js +94 -0
  157. package/dist/webcomponents/p-cb26f708.js +18 -0
  158. package/dist/webcomponents/p-ce733539.entry.js +99 -0
  159. package/dist/webcomponents/p-d17aee2b.entry.js +26 -0
  160. package/dist/webcomponents/p-d5095f6c.entry.js +133 -0
  161. package/dist/webcomponents/p-d89bad72.js +39 -1
  162. package/dist/webcomponents/p-dce846bf.js +27 -1
  163. package/dist/webcomponents/p-df21aaad.js +120 -1
  164. package/dist/webcomponents/p-e1255160.js +3 -1
  165. package/dist/webcomponents/p-e333620e.js +34 -1
  166. package/dist/webcomponents/p-e356f280.entry.js +29 -0
  167. package/dist/webcomponents/p-e3fab0e2.js +43 -1
  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-ff2dda66.js +0 -15
  175. package/dist/config.js +0 -11
  176. package/dist/esm/config-476c7241.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-07109641.entry.js +0 -1
  180. package/dist/webcomponents/p-0f7b9555.entry.js +0 -1
  181. package/dist/webcomponents/p-17e4246f.entry.js +0 -1
  182. package/dist/webcomponents/p-195f92e9.entry.js +0 -1
  183. package/dist/webcomponents/p-1a43e355.entry.js +0 -19
  184. package/dist/webcomponents/p-23014988.entry.js +0 -1
  185. package/dist/webcomponents/p-25dba252.entry.js +0 -1
  186. package/dist/webcomponents/p-27981600.entry.js +0 -1
  187. package/dist/webcomponents/p-301e0493.entry.js +0 -1
  188. package/dist/webcomponents/p-304dd644.entry.js +0 -1
  189. package/dist/webcomponents/p-30a493cd.entry.js +0 -1
  190. package/dist/webcomponents/p-462dc522.entry.js +0 -1
  191. package/dist/webcomponents/p-487b72a8.entry.js +0 -1
  192. package/dist/webcomponents/p-4abc17f0.entry.js +0 -1
  193. package/dist/webcomponents/p-4b4580dd.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-60a370fc.entry.js +0 -1
  197. package/dist/webcomponents/p-623a4479.entry.js +0 -1
  198. package/dist/webcomponents/p-62b32c4c.entry.js +0 -1
  199. package/dist/webcomponents/p-63acf322.js +0 -1
  200. package/dist/webcomponents/p-6f03b35a.entry.js +0 -1
  201. package/dist/webcomponents/p-75b4daef.js +0 -1
  202. package/dist/webcomponents/p-8603348a.js +0 -1
  203. package/dist/webcomponents/p-8c1e981b.entry.js +0 -1
  204. package/dist/webcomponents/p-8e541a32.entry.js +0 -1
  205. package/dist/webcomponents/p-9279aa49.entry.js +0 -1
  206. package/dist/webcomponents/p-96b42e7d.entry.js +0 -1
  207. package/dist/webcomponents/p-99022846.entry.js +0 -1
  208. package/dist/webcomponents/p-ae263544.js +0 -1
  209. package/dist/webcomponents/p-b16dfd5d.entry.js +0 -1
  210. package/dist/webcomponents/p-bbed6107.entry.js +0 -1
  211. package/dist/webcomponents/p-bc92235c.entry.js +0 -1
  212. package/dist/webcomponents/p-be39c802.entry.js +0 -1
  213. package/dist/webcomponents/p-c4b87db2.entry.js +0 -1
  214. package/dist/webcomponents/p-c9f8f7ec.entry.js +0 -1
  215. package/dist/webcomponents/p-cd7105dd.entry.js +0 -1
  216. package/dist/webcomponents/p-d101c5db.js +0 -1
  217. package/dist/webcomponents/p-d1fbeae5.entry.js +0 -1
  218. package/dist/webcomponents/p-d8355f91.entry.js +0 -1
  219. package/dist/webcomponents/p-e2c88817.entry.js +0 -1
  220. package/dist/webcomponents/p-e31f0f3e.entry.js +0 -1
  221. package/dist/webcomponents/p-e7067ef2.entry.js +0 -1
  222. package/dist/webcomponents/p-f0866375.entry.js +0 -1
  223. package/dist/webcomponents/p-fb58feb5.entry.js +0 -1
  224. package/dist/webcomponents/p-fe33151d.entry.js +0 -1
@@ -1 +1,244 @@
1
- const l=[{label:"Choose state",value:""},{label:"Alabama",value:"AL"},{label:"Alaska",value:"AK"},{label:"American Samoa",value:"AS"},{label:"Arizona",value:"AZ"},{label:"Arkansas",value:"AR"},{label:"California",value:"CA"},{label:"Colorado",value:"CO"},{label:"Connecticut",value:"CT"},{label:"Delaware",value:"DE"},{label:"District Of Columbia",value:"DC"},{label:"Federated States Of Micronesia",value:"FM"},{label:"Florida",value:"FL"},{label:"Georgia",value:"GA"},{label:"Guam",value:"GU"},{label:"Hawaii",value:"HI"},{label:"Idaho",value:"ID"},{label:"Illinois",value:"IL"},{label:"Indiana",value:"IN"},{label:"Iowa",value:"IA"},{label:"Kansas",value:"KS"},{label:"Kentucky",value:"KY"},{label:"Louisiana",value:"LA"},{label:"Maine",value:"ME"},{label:"Marshall Islands",value:"MH"},{label:"Maryland",value:"MD"},{label:"Massachusetts",value:"MA"},{label:"Michigan",value:"MI"},{label:"Minnesota",value:"MN"},{label:"Mississippi",value:"MS"},{label:"Missouri",value:"MO"},{label:"Montana",value:"MT"},{label:"Nebraska",value:"NE"},{label:"Nevada",value:"NV"},{label:"New Hampshire",value:"NH"},{label:"New Jersey",value:"NJ"},{label:"New Mexico",value:"NM"},{label:"New York",value:"NY"},{label:"North Carolina",value:"NC"},{label:"North Dakota",value:"ND"},{label:"Northern Mariana Islands",value:"MP"},{label:"Ohio",value:"OH"},{label:"Oklahoma",value:"OK"},{label:"Oregon",value:"OR"},{label:"Palau",value:"PW"},{label:"Pennsylvania",value:"PA"},{label:"Puerto Rico",value:"PR"},{label:"Rhode Island",value:"RI"},{label:"South Carolina",value:"SC"},{label:"South Dakota",value:"SD"},{label:"Tennessee",value:"TN"},{label:"Texas",value:"TX"},{label:"Utah",value:"UT"},{label:"Vermont",value:"VT"},{label:"Virgin Islands",value:"VI"},{label:"Virginia",value:"VA"},{label:"Washington",value:"WA"},{label:"West Virginia",value:"WV"},{label:"Wisconsin",value:"WI"},{label:"Wyoming",value:"WY"}];export{l as S}
1
+ const StateOptions = [
2
+ {
3
+ label: 'Choose state',
4
+ value: '',
5
+ },
6
+ {
7
+ label: 'Alabama',
8
+ value: 'AL',
9
+ },
10
+ {
11
+ label: 'Alaska',
12
+ value: 'AK',
13
+ },
14
+ {
15
+ label: 'American Samoa',
16
+ value: 'AS',
17
+ },
18
+ {
19
+ label: 'Arizona',
20
+ value: 'AZ',
21
+ },
22
+ {
23
+ label: 'Arkansas',
24
+ value: 'AR',
25
+ },
26
+ {
27
+ label: 'California',
28
+ value: 'CA',
29
+ },
30
+ {
31
+ label: 'Colorado',
32
+ value: 'CO',
33
+ },
34
+ {
35
+ label: 'Connecticut',
36
+ value: 'CT',
37
+ },
38
+ {
39
+ label: 'Delaware',
40
+ value: 'DE',
41
+ },
42
+ {
43
+ label: 'District Of Columbia',
44
+ value: 'DC',
45
+ },
46
+ {
47
+ label: 'Federated States Of Micronesia',
48
+ value: 'FM',
49
+ },
50
+ {
51
+ label: 'Florida',
52
+ value: 'FL',
53
+ },
54
+ {
55
+ label: 'Georgia',
56
+ value: 'GA',
57
+ },
58
+ {
59
+ label: 'Guam',
60
+ value: 'GU',
61
+ },
62
+ {
63
+ label: 'Hawaii',
64
+ value: 'HI',
65
+ },
66
+ {
67
+ label: 'Idaho',
68
+ value: 'ID',
69
+ },
70
+ {
71
+ label: 'Illinois',
72
+ value: 'IL',
73
+ },
74
+ {
75
+ label: 'Indiana',
76
+ value: 'IN',
77
+ },
78
+ {
79
+ label: 'Iowa',
80
+ value: 'IA',
81
+ },
82
+ {
83
+ label: 'Kansas',
84
+ value: 'KS',
85
+ },
86
+ {
87
+ label: 'Kentucky',
88
+ value: 'KY',
89
+ },
90
+ {
91
+ label: 'Louisiana',
92
+ value: 'LA',
93
+ },
94
+ {
95
+ label: 'Maine',
96
+ value: 'ME',
97
+ },
98
+ {
99
+ label: 'Marshall Islands',
100
+ value: 'MH',
101
+ },
102
+ {
103
+ label: 'Maryland',
104
+ value: 'MD',
105
+ },
106
+ {
107
+ label: 'Massachusetts',
108
+ value: 'MA',
109
+ },
110
+ {
111
+ label: 'Michigan',
112
+ value: 'MI',
113
+ },
114
+ {
115
+ label: 'Minnesota',
116
+ value: 'MN',
117
+ },
118
+ {
119
+ label: 'Mississippi',
120
+ value: 'MS',
121
+ },
122
+ {
123
+ label: 'Missouri',
124
+ value: 'MO',
125
+ },
126
+ {
127
+ label: 'Montana',
128
+ value: 'MT',
129
+ },
130
+ {
131
+ label: 'Nebraska',
132
+ value: 'NE',
133
+ },
134
+ {
135
+ label: 'Nevada',
136
+ value: 'NV',
137
+ },
138
+ {
139
+ label: 'New Hampshire',
140
+ value: 'NH',
141
+ },
142
+ {
143
+ label: 'New Jersey',
144
+ value: 'NJ',
145
+ },
146
+ {
147
+ label: 'New Mexico',
148
+ value: 'NM',
149
+ },
150
+ {
151
+ label: 'New York',
152
+ value: 'NY',
153
+ },
154
+ {
155
+ label: 'North Carolina',
156
+ value: 'NC',
157
+ },
158
+ {
159
+ label: 'North Dakota',
160
+ value: 'ND',
161
+ },
162
+ {
163
+ label: 'Northern Mariana Islands',
164
+ value: 'MP',
165
+ },
166
+ {
167
+ label: 'Ohio',
168
+ value: 'OH',
169
+ },
170
+ {
171
+ label: 'Oklahoma',
172
+ value: 'OK',
173
+ },
174
+ {
175
+ label: 'Oregon',
176
+ value: 'OR',
177
+ },
178
+ {
179
+ label: 'Palau',
180
+ value: 'PW',
181
+ },
182
+ {
183
+ label: 'Pennsylvania',
184
+ value: 'PA',
185
+ },
186
+ {
187
+ label: 'Puerto Rico',
188
+ value: 'PR',
189
+ },
190
+ {
191
+ label: 'Rhode Island',
192
+ value: 'RI',
193
+ },
194
+ {
195
+ label: 'South Carolina',
196
+ value: 'SC',
197
+ },
198
+ {
199
+ label: 'South Dakota',
200
+ value: 'SD',
201
+ },
202
+ {
203
+ label: 'Tennessee',
204
+ value: 'TN',
205
+ },
206
+ {
207
+ label: 'Texas',
208
+ value: 'TX',
209
+ },
210
+ {
211
+ label: 'Utah',
212
+ value: 'UT',
213
+ },
214
+ {
215
+ label: 'Vermont',
216
+ value: 'VT',
217
+ },
218
+ {
219
+ label: 'Virgin Islands',
220
+ value: 'VI',
221
+ },
222
+ {
223
+ label: 'Virginia',
224
+ value: 'VA',
225
+ },
226
+ {
227
+ label: 'Washington',
228
+ value: 'WA',
229
+ },
230
+ {
231
+ label: 'West Virginia',
232
+ value: 'WV',
233
+ },
234
+ {
235
+ label: 'Wisconsin',
236
+ value: 'WI',
237
+ },
238
+ {
239
+ label: 'Wyoming',
240
+ value: 'WY',
241
+ },
242
+ ];
243
+
244
+ export { StateOptions as S };
@@ -0,0 +1,73 @@
1
+ import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
2
+ import { J as JustifiAnalytics } from './p-387450f6.js';
3
+ import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './p-14c91ffd.js';
4
+ import { m as makeGetBusiness, a as makePostProvisioning } from './p-5968ff8a.js';
5
+ import { B as BusinessService } from './p-3e9ef4a8.js';
6
+ import { A as Api } from './p-29c0b182.js';
7
+ import './p-2dabeb5a.js';
8
+ import './p-8115b2f4.js';
9
+
10
+ class ProvisionService {
11
+ async postProvisioning(authToken, businessId, product) {
12
+ const endpoint = `entities/provisioning`;
13
+ const payload = {
14
+ business_id: businessId,
15
+ product_category: product,
16
+ };
17
+ return Api({ authToken, apiOrigin: undefined }).post(endpoint, JSON.stringify(payload));
18
+ }
19
+ }
20
+
21
+ const PaymentProvisioning = class {
22
+ constructor(hostRef) {
23
+ registerInstance(this, hostRef);
24
+ this.errorEvent = createEvent(this, "error-event", 7);
25
+ this.postProvisioning = undefined;
26
+ this.getBusiness = undefined;
27
+ this.businessId = undefined;
28
+ this.authToken = undefined;
29
+ this.allowOptionalFields = false;
30
+ this.formTitle = 'Business Information';
31
+ }
32
+ propChanged() {
33
+ this.initializeApi();
34
+ }
35
+ componentWillLoad() {
36
+ this.analytics = new JustifiAnalytics(this);
37
+ this.initializeApi();
38
+ }
39
+ disconnectedCallback() {
40
+ this.analytics.cleanup();
41
+ }
42
+ initializeApi() {
43
+ if (this.authToken && this.businessId) {
44
+ this.getBusiness = makeGetBusiness({
45
+ authToken: this.authToken,
46
+ businessId: this.businessId,
47
+ service: new BusinessService()
48
+ });
49
+ this.postProvisioning = makePostProvisioning({
50
+ authToken: this.authToken,
51
+ businessId: this.businessId,
52
+ product: 'payment',
53
+ service: new ProvisionService()
54
+ });
55
+ }
56
+ else {
57
+ this.errorEvent.emit({
58
+ message: 'auth-token and business-id are required',
59
+ errorCode: ComponentErrorCodes.MISSING_PROPS,
60
+ severity: ComponentErrorSeverity.ERROR,
61
+ });
62
+ }
63
+ }
64
+ render() {
65
+ return (h("justifi-payment-provisioning-core", { key: 'a93ee23fabf4bdeb381e924bfdf684ddd183075a', businessId: this.businessId, authToken: this.authToken, allowOptionalFields: this.allowOptionalFields, formTitle: this.formTitle, getBusiness: this.getBusiness, postProvisioning: this.postProvisioning }));
66
+ }
67
+ static get watchers() { return {
68
+ "authToken": ["propChanged"],
69
+ "businessId": ["propChanged"]
70
+ }; }
71
+ };
72
+
73
+ export { PaymentProvisioning as justifi_payment_provisioning };
@@ -0,0 +1,76 @@
1
+ import { r as registerInstance, h, c as createEvent } from './p-fad19d75.js';
2
+ import { c as create$3, F as FormController } from './p-2eab3c90.js';
3
+ import { i as identityNameValidation, l as lineOneValidation, a as lineTwoValidation, c as cityValidation, s as stateValidation, p as postalValidation } from './p-89887332.js';
4
+ import { S as StateOptions } from './p-6078a370.js';
5
+ import { n as numberOnlyHandler } from './p-8df7bde8.js';
6
+ import { S as StyledHost } from './p-ba4bae6f.js';
7
+ import './p-ba5fae28.js';
8
+ import './p-af244664.js';
9
+ import './p-1ff8810b.js';
10
+
11
+ const BillingFormSchema = create$3({
12
+ name: identityNameValidation.required('Enter full name'),
13
+ address_line1: lineOneValidation.required('Enter street address'),
14
+ address_line2: lineTwoValidation.nullable(),
15
+ address_city: cityValidation.required('Enter city'),
16
+ address_state: stateValidation.required('Select state'),
17
+ address_postal_code: postalValidation.required('Enter postal code'),
18
+ });
19
+
20
+ const billingFormCss = ":host{display:block}justifi-billing-form{margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}";
21
+ const JustifiBillingFormStyle0 = billingFormCss;
22
+
23
+ const BillingForm = class {
24
+ constructor(hostRef) {
25
+ registerInstance(this, hostRef);
26
+ this.inputHandler = (name, value) => {
27
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
28
+ };
29
+ this.legend = undefined;
30
+ this.formController = undefined;
31
+ this.billingInfo = undefined;
32
+ this.errors = {};
33
+ }
34
+ componentWillLoad() {
35
+ this.formController = new FormController(BillingFormSchema);
36
+ }
37
+ componentDidLoad() {
38
+ this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
39
+ this.formController.errors.subscribe(errors => {
40
+ this.errors = Object.assign({}, errors);
41
+ });
42
+ }
43
+ async getValues() {
44
+ return this.formController.values.getValue();
45
+ }
46
+ async fill(fields) {
47
+ this.formController.setInitialValues(fields);
48
+ }
49
+ async validate() {
50
+ let isValid = await this.formController.validate();
51
+ return { isValid: isValid };
52
+ }
53
+ render() {
54
+ const billingFormDefaultValue = this.formController.getInitialValues();
55
+ return (h(StyledHost, { key: 'b08094d3c44d35cdb3c21b4bc360dbbee19d7d15', exportparts: "label,input,input-invalid" }, h("form", { key: '392538a781ffa2ac299cbc4203bab5efd10e77cc' }, h("fieldset", { key: 'f4b5a5ec9a91e9f50a3847c5eb16635c4f9d569a' }, this.legend && h("legend", { key: 'eb75e22f9df33c13e3851ece784d237b8973e2c5' }, this.legend), h("div", { key: 'd7ffdc1cfeda5568ad003a4d3bbe94765de04605', class: "row gy-3" }, h("div", { key: 'c22f9e7b2f33b5c298bb5f0a5c7bcaa709c231a0', class: "col-12" }, h("form-control-text", { key: 'd6eb4d2f4d1a2a709e0f29bf18b5d9700bd91a13', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '8494ee3c14f8923d18d8708077e030c2f141a251', class: "col-12" }, h("form-control-text", { key: '63266eb0e2b2b006a3c914a68703ee1cdf848f83', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: '0a19fcf5c172d2539f23e147f39461d84dfd9d37', class: "col-12" }, h("form-control-text", { key: '0e5fae5d65d5ea195de0227d1e4f79cee7c7a0fb', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: '13104554e8247cb0534c3dc9e6a16b2f44397795', class: "col-12" }, h("form-control-text", { key: '430e59713ec66ff7a6f735ca24640c27b05cbeee', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: '5b81499717f67d5f499f4ebfc585056ef5bd3d56', class: "col-12" }, h("form-control-select", { key: '726c724eda5f25a92bad7e549ff7845ece7b41e1', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: '5d5a6e0949c5ad93da5bc1837dadf88c2128212d', class: "col-12" }, h("form-control-text", { key: 'ebb4e77126d86011d9a1ed5d118461198b399092', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler })))))));
56
+ }
57
+ };
58
+ BillingForm.style = JustifiBillingFormStyle0;
59
+
60
+ const SaveNewPaymentMethod = class {
61
+ constructor(hostRef) {
62
+ registerInstance(this, hostRef);
63
+ this.checkboxChanged = createEvent(this, "checkboxChanged", 7);
64
+ this.isChecked = false;
65
+ }
66
+ handleCheckboxChange(event) {
67
+ const target = event.target;
68
+ this.isChecked = target.checked;
69
+ this.checkboxChanged.emit(this.isChecked);
70
+ }
71
+ render() {
72
+ return (h("div", { key: 'f22a132a518a98786c8486e08c9a65050f3c5ea0', class: "mt-4 form-check" }, h("input", { key: '6f1392f9dd29a9761f5942b0a40e05a899858ada', type: "checkbox", checked: this.isChecked, onChange: (event) => this.handleCheckboxChange(event), class: "form-check-input" }), h("label", { key: 'e6e5908ba70ece8ea19370a04104d88d17237fc7', class: "form-check-label" }, "Save new payment method")));
73
+ }
74
+ };
75
+
76
+ export { BillingForm as justifi_billing_form, SaveNewPaymentMethod as justifi_save_new_payment_method };
@@ -0,0 +1,18 @@
1
+ import { r as registerInstance, h } from './p-fad19d75.js';
2
+ import { E as ErrorState } from './p-dce846bf.js';
3
+ import { S as StyledHost } from './p-ba4bae6f.js';
4
+
5
+ const Details = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.errorMessage = undefined;
9
+ }
10
+ render() {
11
+ return (h(StyledHost, { key: '00b10fc4e459688ae06147ef1535f03609ec35e4', exportParts: 'detail-empty-state, detail-metadata-title, detail-metadata, detail-section, detail-section-title, \n detail-section-item-title, detail-section-item-data, detail-head, detail-title, detail-head-info' }, this.errorMessage ?
12
+ ErrorState(this.errorMessage)
13
+ :
14
+ h("main", { class: "p-2" }, h("slot", { name: "head-info" }), h("slot", { name: 'detail-sections' }))));
15
+ }
16
+ };
17
+
18
+ export { Details as justifi_details };
@@ -0,0 +1,61 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './p-fad19d75.js';
2
+ import { I as IMask } from './p-1ad5995e.js';
3
+ import { C as CURRENCY_MASK } from './p-525db3e8.js';
4
+
5
+ const MonetaryInput = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.formControlInput = createEvent(this, "formControlInput", 7);
9
+ this.formControlBlur = createEvent(this, "formControlBlur", 7);
10
+ this.imask = null;
11
+ this.initializeIMask = () => {
12
+ if (!this.textInput)
13
+ return;
14
+ this.imask = IMask(this.textInput, this.maskOptions);
15
+ this.imask.on('accept', () => {
16
+ const rawValue = this.imask.unmaskedValue;
17
+ this.inputHandler(this.name, rawValue);
18
+ this.formControlInput.emit({ name: this.name, value: rawValue });
19
+ });
20
+ this.textInput.addEventListener('blur', () => this.formControlBlur.emit());
21
+ };
22
+ this.handleFormControlInput = (event) => {
23
+ const target = event.target;
24
+ const name = target.getAttribute('name');
25
+ const rawValue = this.imask.unmaskedValue;
26
+ this.formControlInput.emit({ name: name, value: rawValue });
27
+ };
28
+ this.updateInput = (newValue) => {
29
+ if (this.imask) {
30
+ this.imask.value = String(newValue);
31
+ }
32
+ };
33
+ this.label = undefined;
34
+ this.name = undefined;
35
+ this.helpText = undefined;
36
+ this.errorText = undefined;
37
+ this.defaultValue = undefined;
38
+ this.inputHandler = undefined;
39
+ this.maskOptions = CURRENCY_MASK.DECIMAL;
40
+ this.disabled = undefined;
41
+ }
42
+ handleDefaultValueChange(newValue) {
43
+ this.updateInput(newValue);
44
+ }
45
+ componentDidLoad() {
46
+ this.initializeIMask();
47
+ this.updateInput(this.defaultValue);
48
+ }
49
+ disconnectedCallback() {
50
+ var _a;
51
+ (_a = this.imask) === null || _a === void 0 ? void 0 : _a.destroy();
52
+ }
53
+ render() {
54
+ return (h(Host, { key: '8797b3aa5c6a30f472d51e2b9437b6158b0566fc', exportparts: "label,input,input-group-input,input-group-text,input-invalid" }, h("div", { key: '0d3e068cf104aec3f6250f5cd6c00a9342928fe8', class: "form-group d-flex flex-column" }, h("label", { key: '0e86db7c0d981bdae74c51dd75bf5579d07b4793', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("div", { key: '8fc773de3995bb37e6fa00b34d8d9e2deaef4bbd', class: "input-group" }, h("span", { key: '83860eac764be9eeea31302d60525fb56af9dc1d', class: "input-group-text", part: "input-group-text" }, "$"), h("input", { key: 'b8c655c0b8eeb6ec328eeaed651773c293aa3100', ref: el => (this.textInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input input-group-input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h("form-control-help-text", { key: 'b3f142b9c67a792a96b597bdaf91fd3abe1b7ce3', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'daefe97a15bde309c397a506de6cda9a0376323b', errorText: this.errorText, name: this.name }))));
55
+ }
56
+ static get watchers() { return {
57
+ "defaultValue": ["handleDefaultValueChange"]
58
+ }; }
59
+ };
60
+
61
+ export { MonetaryInput as form_control_monetary };
@@ -0,0 +1,117 @@
1
+ import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
2
+ import { c as create$3, F as FormController } from './p-2eab3c90.js';
3
+ import { b as businessCoreInfoSchema, a as additionalQuestionsSchema } from './p-3fd13ca3.js';
4
+ import { a as addressSchema, i as identitySchema, p as parseBusiness } from './p-85fc69e5.js';
5
+ import { A as Api } from './p-29c0b182.js';
6
+ import './p-56f6ce4c.js';
7
+ import './p-df21aaad.js';
8
+ import './p-e3fab0e2.js';
9
+ import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './p-d89bad72.js';
10
+ import { B as Business } from './p-af244664.js';
11
+ import { J as JustifiAnalytics } from './p-387450f6.js';
12
+ import { S as StyledHost } from './p-ba4bae6f.js';
13
+ import './p-89887332.js';
14
+ import './p-6078a370.js';
15
+ import './p-ba5fae28.js';
16
+ import './p-1ff8810b.js';
17
+ import './p-2dabeb5a.js';
18
+
19
+ const businessFormSchema = create$3(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
20
+
21
+ const businessFormCss = ":host{display:block}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-checkbox){font-family:var(--jfi-layout-font-family);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);line-height:var(--jfi-form-control-line-height)}*::part(input-checkbox):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-checkbox-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-checkbox-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";
22
+ const JustifiBusinessFormStyle0 = businessFormCss;
23
+
24
+ const BusinessForm = class {
25
+ constructor(hostRef) {
26
+ registerInstance(this, hostRef);
27
+ this.submitted = createEvent(this, "submitted", 7);
28
+ this.clickEventNew = createEvent(this, "click-event", 7);
29
+ this.clickEventOld = createEvent(this, "clickEvent", 7);
30
+ this.instantiateBusiness = (data) => {
31
+ const business = new Business(data);
32
+ this.formController.setInitialValues(Object.assign({}, business));
33
+ };
34
+ this.sendData = async () => {
35
+ this.isLoading = true;
36
+ try {
37
+ const values = this.formController.values.getValue();
38
+ const initialValues = this.formController.getInitialValues();
39
+ const payload = parseBusiness(values, initialValues);
40
+ const response = await this.api.patch(this.businessEndpoint, JSON.stringify(payload));
41
+ this.handleReponse(response);
42
+ }
43
+ catch (error) {
44
+ this.errorMessage = BusinessFormServerErrors.patchData;
45
+ }
46
+ finally {
47
+ this.isLoading = false;
48
+ }
49
+ };
50
+ this.fetchData = async () => {
51
+ this.isLoading = true;
52
+ try {
53
+ const response = await this.api.get(this.businessEndpoint);
54
+ this.instantiateBusiness(response.data);
55
+ }
56
+ catch (error) {
57
+ this.errorMessage = BusinessFormServerErrors.fetchData;
58
+ }
59
+ finally {
60
+ this.isLoading = false;
61
+ }
62
+ };
63
+ this.validateAndSubmit = (event) => {
64
+ event.preventDefault();
65
+ this.formController.validateAndSubmit(this.sendData);
66
+ };
67
+ this.authToken = undefined;
68
+ this.businessId = undefined;
69
+ this.hideErrors = false;
70
+ this.formTitle = 'Business Information';
71
+ this.removeTitle = false;
72
+ this.isLoading = false;
73
+ this.errorMessage = undefined;
74
+ }
75
+ componentWillLoad() {
76
+ this.analytics = new JustifiAnalytics(this);
77
+ const missingAuthTokenMessage = 'Warning: Missing auth-token. The form will not be functional without it.';
78
+ const missingBusinessIdMessage = 'Warning: Missing business-id. The form requires an existing business-id to function.';
79
+ if (!this.authToken)
80
+ console.error(missingAuthTokenMessage);
81
+ if (!this.businessId)
82
+ console.error(missingBusinessIdMessage);
83
+ this.formController = new FormController(businessFormSchema);
84
+ this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
85
+ this.fetchData();
86
+ }
87
+ disconnectedCallback() {
88
+ this.analytics.cleanup();
89
+ }
90
+ fireClickEvents(event) {
91
+ console.warn('`clickEvent` is deprecated and will be removed in the next major release. Please use `click-event` instead.');
92
+ this.clickEventNew.emit(event);
93
+ this.clickEventOld.emit(event);
94
+ }
95
+ get title() {
96
+ return this.removeTitle ? '' : this.formTitle;
97
+ }
98
+ get disabledState() {
99
+ return this.isLoading;
100
+ }
101
+ get businessEndpoint() {
102
+ return `entities/business/${this.businessId}`;
103
+ }
104
+ handleReponse(response) {
105
+ if (response.error) {
106
+ this.errorMessage = BusinessFormServerErrors.patchData;
107
+ }
108
+ this.submitted.emit({ data: response });
109
+ this.instantiateBusiness(response.data);
110
+ }
111
+ render() {
112
+ return (h(StyledHost, { key: '8fb79d577c13246fcf3ec1ee8460713fee07d01a', exportparts: "label,input,input-invalid" }, h("form", { key: '1fe23a8cc8714aee257b6c73c6b7b096d684ea1c', onSubmit: this.validateAndSubmit }, h("div", { key: 'e501f6963ed5bfd9eb80f67df13108289db6eba7', class: "row gap-3" }, h("h1", { key: 'f81f22704bda1480c467b872cd3fd309505b0e94' }, this.title), h("form-alert", { key: '15b2ff75d4db6447bfd1892542e8e972ede0ac7e', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'fd6a375fd187426940df3f28262be7aec3fedbe5', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: 'd16818a2124cb04dd5a5e84ea40639991fb04a80', formController: this.formController })), h("div", { key: 'd48b04718cf938484cf65cc956bf798f44ed17a7', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '3a2bc6babfe8a0a265b2a7f9e7bea1abebd3eb43', formController: this.formController })), h("div", { key: '5c4d5d1fa1e2aba32f42c2bb9e97c0d796ecf709', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: 'c888fb627380d05302cb106c5642e39b1f2652fa', formController: this.formController })), h("div", { key: '623e94d84976cfe29f4501a781c750d1bb537605', class: "col-12 mb-4" }, h("justifi-business-representative", { key: '594c893c0976b58a309679a031f6f1c787e66f48', formController: this.formController })), h("div", { key: '9fbc36ed183b1ebf171da14276092195c7aaf3a9', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: 'a60da6fdda5193d3c41c589b00b040c05ae425ac', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
113
+ }
114
+ };
115
+ BusinessForm.style = JustifiBusinessFormStyle0;
116
+
117
+ export { BusinessForm as justifi_business_form };
@@ -1 +1,16 @@
1
- import{d as b}from"./p-1ff8810b.js";const t=(b,t)=>{b.setValues(Object.assign(Object.assign({},b.values.getValue()),t))},e=(b,e)=>{t(b,{address:Object.assign(Object.assign({},b.values.getValue().address),e)})},o=(e,o)=>{const s=b(e.detail);t(o,Object.assign(Object.assign({},o.values.getValue()),{dob_day:s.dob_day,dob_month:s.dob_month,dob_year:s.dob_year}))};export{e as a,o as b,t as u}
1
+ import { d as deconstructDate } from './p-1ff8810b.js';
2
+
3
+ const updateFormValues = (formController, newValues) => {
4
+ formController.setValues(Object.assign(Object.assign({}, formController.values.getValue()), newValues));
5
+ };
6
+ const updateAddressFormValues = (formController, newValues) => {
7
+ updateFormValues(formController, {
8
+ address: Object.assign(Object.assign({}, formController.values.getValue().address), newValues),
9
+ });
10
+ };
11
+ const updateDateOfBirthFormValues = (event, formController) => {
12
+ const dob_values = deconstructDate(event.detail);
13
+ updateFormValues(formController, Object.assign(Object.assign({}, formController.values.getValue()), { dob_day: dob_values.dob_day, dob_month: dob_values.dob_month, dob_year: dob_values.dob_year }));
14
+ };
15
+
16
+ export { updateAddressFormValues as a, updateDateOfBirthFormValues as b, updateFormValues as u };