@justifi/webcomponents 4.19.1-rc-5 → 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-8949ea18.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-a3cbc925.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-38d3bafb.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-89734008.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-0179fbb2.entry.js +0 -1684
  197. package/dist/webcomponents/p-01a404ca.entry.js +0 -44
  198. package/dist/webcomponents/p-03d35880.entry.js +0 -130
  199. package/dist/webcomponents/p-06ff0429.entry.js +0 -65
  200. package/dist/webcomponents/p-220fc2cc.entry.js +0 -98
  201. package/dist/webcomponents/p-258b1ee2.entry.js +0 -149
  202. package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
  203. package/dist/webcomponents/p-2988ac56.js +0 -79
  204. package/dist/webcomponents/p-2e405359.entry.js +0 -73
  205. package/dist/webcomponents/p-3e9ef4a8.js +0 -28
  206. package/dist/webcomponents/p-3fd13ca3.js +0 -52
  207. package/dist/webcomponents/p-5482d030.entry.js +0 -21
  208. package/dist/webcomponents/p-576826b1.entry.js +0 -43
  209. package/dist/webcomponents/p-5cb3f0b2.entry.js +0 -261
  210. package/dist/webcomponents/p-5f835b89.entry.js +0 -606
  211. package/dist/webcomponents/p-6fed319e.entry.js +0 -99
  212. package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
  213. package/dist/webcomponents/p-74d0d0e1.entry.js +0 -75
  214. package/dist/webcomponents/p-7582b554.entry.js +0 -18
  215. package/dist/webcomponents/p-79646550.entry.js +0 -61
  216. package/dist/webcomponents/p-7b0400cd.entry.js +0 -131
  217. package/dist/webcomponents/p-800d31fe.entry.js +0 -162
  218. package/dist/webcomponents/p-85fc69e5.js +0 -90
  219. package/dist/webcomponents/p-890088fc.entry.js +0 -298
  220. package/dist/webcomponents/p-89887332.js +0 -301
  221. package/dist/webcomponents/p-8eb774df.entry.js +0 -54
  222. package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
  223. package/dist/webcomponents/p-a2da97f2.entry.js +0 -145
  224. package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
  225. package/dist/webcomponents/p-a5c5821e.entry.js +0 -101
  226. package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
  227. package/dist/webcomponents/p-a6d04afc.js +0 -44
  228. package/dist/webcomponents/p-ac086069.entry.js +0 -58
  229. package/dist/webcomponents/p-ad5cfa9d.js +0 -77
  230. package/dist/webcomponents/p-b82c146f.entry.js +0 -111
  231. package/dist/webcomponents/p-b9a41ec2.entry.js +0 -74
  232. package/dist/webcomponents/p-ba5fae28.js +0 -90
  233. package/dist/webcomponents/p-c636f563.entry.js +0 -791
  234. package/dist/webcomponents/p-c64abefc.entry.js +0 -117
  235. package/dist/webcomponents/p-cb26f708.js +0 -18
  236. package/dist/webcomponents/p-cbf2437a.entry.js +0 -80
  237. package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
  238. package/dist/webcomponents/p-d894aed2.entry.js +0 -133
  239. package/dist/webcomponents/p-e356f280.entry.js +0 -29
  240. package/dist/webcomponents/p-e837a453.entry.js +0 -94
  241. package/dist/webcomponents/p-e84a2dcb.entry.js +0 -97
  242. package/dist/webcomponents/p-ec2bd24f.entry.js +0 -94
  243. package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
  244. package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
@@ -1,244 +1 @@
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 };
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}
@@ -0,0 +1 @@
1
+ import{r as o,c as r,h as t}from"./p-fad19d75.js";import{f as i}from"./p-83125497.js";import{c as a}from"./p-ae263544.js";import{C as s}from"./p-14c91ffd.js";import{i as e,v as d,a as c}from"./p-2338affa.js";import{B as l}from"./p-9c9c7dac.js";import{S as n}from"./p-ba4bae6f.js";import{S as f}from"./p-08b0fb31.js";class b{constructor(o){Object.assign(this,o)}}const h=class{constructor(t){o(this,t),this.submitted=r(this,"submitted",7),this.errorEvent=r(this,"error-event",7),this.loaded=r(this,"loaded",7),this.completeCheckout=async o=>{this.complete({payment:o,onSuccess:this.onSubmitted,onError:this.onError})},this.onSubmitted=o=>{this.submitted.emit(o),this.renderState="success"},this.onError=({error:o,code:r,severity:t})=>{this.serverError=o,this.errorEvent.emit({errorCode:r,message:o,severity:t}),this.renderState="error"},this.iframeOrigin=a.iframeOrigin,this.authToken=void 0,this.getCheckout=void 0,this.complete=void 0,this.checkoutId=void 0,this.disableCreditCard=void 0,this.disableBankAccount=void 0,this.disableBnpl=void 0,this.disablePaymentMethodGroup=void 0,this.hasLoadedFonts=!1,this.checkout=void 0,this.serverError=void 0,this.renderState="loading",this.creatingNewPaymentMethod=!1,this.insuranceToggled=!1}async fillBillingForm(o){this.paymentMethodOptionsRef.fillBillingForm(o)}componentWillLoad(){this.getCheckout&&(this.fetchData(),e("set",(o=>{const r=c[o];void 0!==r&&(this.insuranceToggled=r,this.fetchData())})))}fetchData(){this.renderState="loading",this.getCheckout({onSuccess:({checkout:o})=>{this.checkout=new b(o);const{status:r}=this.checkout;this.loaded.emit({checkout_status:r}),this.renderState="success"},onError:({error:o,code:r,severity:t})=>{this.serverError=o,this.renderState="error",this.errorEvent.emit({errorCode:r,message:o,severity:t})}})}async submit(o){var r;o.preventDefault(),this.renderState="loading";const t=d(),i=await this.paymentMethodOptionsRef.resolvePaymentMethod(t);i.validationError?this.renderState="error":i.error?(this.renderState="error",this.serverError=i.error.message,this.onError({code:i.error.code,error:i.error.message,severity:s.ERROR})):i.token?this.completeCheckout({payment_mode:"ecom",payment_token:i.token}):"success"===(null===(r=i.bnpl)||void 0===r?void 0:r.status)?this.completeCheckout({payment_mode:"bnpl"}):this.renderState="error"}get isLoading(){return"loading"===this.renderState}get isError(){return"error"===this.renderState}get paymentType(){var o,r,i,a,s;return t("section",null,t("div",{class:!this.isLoading&&"visually-hidden"},t(f,{variant:"rounded",height:"300px"})),t("div",{class:this.isLoading&&"visually-hidden"},t("justifi-payment-method-options",{ref:o=>this.paymentMethodOptionsRef=o,"show-card":!this.disableCreditCard,"show-ach":!this.disableBankAccount,"show-bnpl":!this.disableBnpl,paymentMethodGroupId:null===(o=this.checkout)||void 0===o?void 0:o.payment_method_group_id,"show-saved-payment-methods":!this.disablePaymentMethodGroup,bnpl:null===(r=this.checkout)||void 0===r?void 0:r.bnpl,authToken:this.authToken,"account-id":null===(i=this.checkout)||void 0===i?void 0:i.account_id,savedPaymentMethods:(null===(a=this.checkout)||void 0===a?void 0:a.payment_methods)||[],paymentAmount:null===(s=this.checkout)||void 0===s?void 0:s.payment_amount,insuranceToggled:this.insuranceToggled})))}get summary(){var o,r;return t("section",null,t("div",{class:!this.isLoading&&"visually-hidden"},t(f,{height:"24px"})),t("div",{class:this.isLoading&&"visually-hidden"},t("div",{class:"jfi-payment-description"},null===(o=this.checkout)||void 0===o?void 0:o.payment_description),t("div",{class:"jfi-payment-total"},t("span",{class:"jfi-payment-total-label"},"Total")," ",t("span",{class:"jfi-payment-total-amount"},i(+(null===(r=this.checkout)||void 0===r?void 0:r.total_amount))))))}render(){return t(n,{key:"e322f280a57bb0baab61174bca21f0a7e9afa3c1"},t("div",{key:"4ad8cc4f6243de8ddc03fb184ac4e960a04280eb",class:"row gy-3 jfi-checkout-core"},t("div",{key:"7f13e26b36790558c8eb455f4d5ab3d0952b4e62",class:"col-12"},t("h2",{key:"c5e4b6fc30f51821537915f3ce5d4830ed3f8da9",class:"fs-5 fw-bold pb-3 jfi-header"},"Summary"),this.summary),t("div",{key:"164b7a2cc51d871ad4a92044d0f7240e376bd4b3",class:"col-12"},t("slot",{key:"a98b7c6a0bb9e4d1b102e832ee7aa43218432298",name:"insurance"})),t("div",{key:"415d3aac64b4190f54d785695c50a92ce02a76c2",class:"col-12 mt-4"},t("h2",{key:"6d7f0df1165ec359877459a8bada855ef353c3b3",class:"fs-5 fw-bold pb-3 jfi-header"},"Payment"),t("h3",{key:"be8495d792cf065d2cbc7d3b46648c887951e313",class:"fs-6 fw-bold lh-lg"},"Select payment type"),t("div",{key:"5c9d8baffb50b0b10e9911463f307581cad7619c",class:"d-flex flex-column"},this.paymentType)),t("div",{key:"9351832b69a8e5285cae35534299b51193248719",class:"col-12"},t("div",{key:"5b0e382836c858369caf93a287272922024ce72b",class:"d-flex justify-content-end"},t(l,{key:"f76d37000f7b026e97f083e7cf817bed8f84f34f",type:"submit",variant:"primary",onClick:o=>this.submit(o),disabled:this.isLoading,isLoading:this.isLoading,style:{width:"100%"}},"Pay")))))}};h.style=":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}.jfi-checkout-core{color:var(--jfi-body-color)}*::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-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)}*::part(invalid-feedback){color:var(--jfi-error-message-color);font-size:var(--jfi-error-message-font-size);margin:var(--jfi-error-message-margin);line-height:normal}.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);line-height:var(--jfi-submit-button-line-height);text-transform:var(--jfi-submit-button-text-transform)}.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)}.jfi-header{color:var(--jfi-header-color);border-bottom:var(--jfi-header-border)}";export{h as justifi_checkout_core}
@@ -0,0 +1 @@
1
+ import{r as e,c as i,h as o}from"./p-fad19d75.js";import{f as t}from"./p-83125497.js";import{v as a,a as r,b as s}from"./p-2338affa.js";import{S as c}from"./p-ba4bae6f.js";const d=class{constructor(o){e(this,o),this.insuranceUpdated=i(this,"insurance-updated",7),this.errorEvent=i(this,"error-event",7),this.checkoutId=void 0,this.getQuote=void 0,this.toggleCoverage=void 0,this.primaryIdentityFirstName=void 0,this.primaryIdentityLastName=void 0,this.primaryIdentityState=void 0,this.primaryIdentityPostalCode=void 0,this.primaryIdentityCountry=void 0,this.primaryIdentityEmailAddress=void 0,this.policyAttributesInsurableAmount=void 0,this.policyAttributesStartDate=void 0,this.policyAttributesEndDate=void 0,this.coveredIdentityFirstName=void 0,this.coveredIdentityLastName=void 0,this.quote=void 0,this.isLoading=!0,this.accepted=void 0}async validate(){return a()}componentWillLoad(){this.getQuote&&this.fetchData()}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:e})=>{this.quote=e,r[e.policy_type]=e.accepted,this.isLoading=!1},onError:({error:e,code:i,severity:o})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:i,message:e,severity:o})}})}onChangeHandler(e){this.accepted=e.target.value,s[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),r[this.quote.policy_type]=this.accepted},onError:({error:e,code:i,severity:o})=>{this.errorEvent.emit({errorCode:i,message:e,severity:o})}})}get error(){var e;return s[null===(e=this.quote)||void 0===e?void 0:e.policy_type]}render(){var e,i,a,r;return o(c,{key:"7b1384ddbc83b5f92d3a2c4f8e544c8bd06fa716"},!this.isLoading&&o("div",{key:"d94a61158ceb79c30d81ee5186195d3454c01323"},o("h2",{key:"05d5b1499cf7de28823ec98ebd2c220eca7471f1",class:"fs-5 fw-bold pb-3 jfi-header"},null===(e=this.quote)||void 0===e?void 0:e.product.title),o("small",{key:"fa26cf97a06a9910d7f4cb04d149bbcd9f30d103",innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),o("div",{key:"287de8ed4ca603b3162b4158d18d7e8a53e3b453"},o("input",{key:"59adbc8ac892e572bc1aa68f3c626beab76af282",id:"accept",type:"radio",name:"opt-in",value:"true",onChange:e=>this.onChangeHandler(e),class:this.error?"form-check-input me-2 is-invalid":"form-check-input me-2"}),o("label",{key:"469ac2622be0c76564de8102a499d3d3790380b2",htmlFor:"accept"},"Accept coverage for ",t(null===(a=this.quote)||void 0===a?void 0:a.total_cents))),o("div",{key:"7a8827c4261d5978ecca31fc42397f233b3e37fc",class:"mb-2"},o("input",{key:"e25994c491ca5d74d20ec5f5787ff88ee9575ca0",id:"decline",type:"radio",name:"opt-in",value:"false",onChange:e=>this.onChangeHandler(e),class:this.error?"form-check-input me-2 is-invalid":"form-check-input me-2"}),o("label",{key:"0a5f13213a19e13258c72ccbbe7a2e148daf1750",htmlFor:"decline"},"Decline coverage")),o("div",{key:"33a190aa52dfefd6accf77a9e00598563a8f5e6c",class:"invalid-feedback",style:{display:this.error?"block":"none"}},"Please select an option"),o("small",{key:"f10e4ebd9a896fc792bb3d18d6014100013cb0b7",innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};d.style=":host{display:block}a{color:var(--jfi-body-color) !important}.form-check-input,label{cursor:pointer}.form-check-input{background-color:var(--jfi-radio-button-background-color);border-color:var(--jfi-radio-button-border-color)}.form-check-input:checked,.form-check-input:checked:focus{background-color:var(--jfi-radio-button-background-color-selected);border-color:var(--jfi-radio-button-border-color-selected)}.form-check-input:focus{border-color:var(--jfi-radio-button-border-color-focus);box-shadow:var(--jfi-radio-button-box-shadow-focus)}.jfi-header{color:var(--jfi-header-color);border-bottom:var(--jfi-header-border)}";export{d as justifi_season_interruption_insurance_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-fad19d75.js";import{P as i}from"./p-d101c5db.js";import"./p-56f6ce4c.js";import{P as r}from"./p-df21aaad.js";import"./p-e3fab0e2.js";import{C as o,a}from"./p-14c91ffd.js";import{g as n,a as h}from"./p-8115b2f4.js";import{E as p}from"./p-dce846bf.js";import{J as d}from"./p-554a3c18.js";import"./p-29c0b182.js";import"./p-ae263544.js";import"./p-d765d638.js";const c=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event",7),this.paymentService=new i,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.paymentId=void 0,this.authToken=void 0,this.getPaymentDetails=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new d(this),this.initializeGetPaymentDetails()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=(({id:t,authToken:s,service:e})=>async({onSuccess:i,onError:a})=>{var p;try{const d=await e.fetchPayment(t,s);d.error?a({error:n(d.error),code:h(null===(p=d.error)||void 0===p?void 0:p.code),severity:o.ERROR}):i({payment:new r(d.data)})}catch(t){const s=h(null==t?void 0:t.code);a({error:n(t),code:s,severity:o.ERROR})}})({id:this.paymentId,authToken:this.authToken,service:new i}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?p(this.errorMessage):e("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{c as justifi_payment_details}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-fad19d75.js";import{P as r}from"./p-d101c5db.js";import"./p-56f6ce4c.js";import{P as e}from"./p-df21aaad.js";import"./p-e3fab0e2.js";import{C as o,a}from"./p-14c91ffd.js";import{g as n,a as p}from"./p-8115b2f4.js";import{E as c}from"./p-dce846bf.js";import{J as h}from"./p-554a3c18.js";import"./p-29c0b182.js";import"./p-ae263544.js";import"./p-d765d638.js";const d=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.accountId=void 0,this.authToken=void 0,this.getPayments=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new h(this),this.initializeGetPayments()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:a,onError:c})=>{var h,d;try{const m=await i.fetchPayments(t,s,r);if(m.error)return c({error:n(m.error),code:p(null===(d=m.error)||void 0===d?void 0:d.code),severity:o.ERROR});{const t=Object.assign({},m.page_info);a({payments:(null===(h=m.data)||void 0===h?void 0:h.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=p(null==t?void 0:t.code);return c({error:t.message||t,code:s,severity:o.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new r}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}render(){return this.errorMessage?c(this.errorMessage):i("payments-list-core",{getPayments:this.getPayments,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_payments_list}
@@ -0,0 +1 @@
1
+ import{c as t}from"./p-ae263544.js";import{A as i}from"./p-29c0b182.js";class n{async fetchBusiness(n,s){const e=`entities/business/${n}`;return i({authToken:s,apiOrigin:t.proxyApiOrigin}).get(e)}async patchBusiness(n,s,e){const a=`entities/business/${s}`;return i({authToken:n,apiOrigin:t.proxyApiOrigin}).patch(a,e)}}class s{async fetchIdentity(n,s){const e=`entities/identity/${n}`;return i({authToken:s,apiOrigin:t.proxyApiOrigin}).get(e)}async patchIdentity(n,s,e){const a=`entities/identity/${s}`;return i({authToken:n,apiOrigin:t.proxyApiOrigin}).patch(a,e)}async postIdentity(n,s){return i({authToken:n,apiOrigin:t.proxyApiOrigin}).post("entities/identity",s)}}export{n as B,s as I}
@@ -1,16 +1 @@
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 };
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,28 +1 @@
1
- import { a as ComponentErrorCodes } from './p-14c91ffd.js';
2
-
3
- // Errors on [capital]/config/locales/en.yml
4
- // Add more errors as needed
5
- const API_ERRORS = {
6
- NOT_AUTHENTICATED: 'not_authenticated',
7
- INVALID_PARAMETER: 'invalid_parameter',
8
- };
9
-
10
- const getErrorMessage = (error) => {
11
- if (typeof error === 'string') {
12
- return error;
13
- }
14
- return error.message;
15
- };
16
- const getErrorCode = (code) => {
17
- switch (code) {
18
- case API_ERRORS.NOT_AUTHENTICATED:
19
- return ComponentErrorCodes.NOT_AUTHENTICATED;
20
- case API_ERRORS.INVALID_PARAMETER:
21
- return ComponentErrorCodes.INVALID_PARAMETER;
22
- // add more cases as needed
23
- default:
24
- return ComponentErrorCodes.FETCH_ERROR;
25
- }
26
- };
27
-
28
- export { getErrorCode as a, getErrorMessage as g };
1
+ import{a as t}from"./p-14c91ffd.js";const a=t=>"string"==typeof t?t:t.message,e=a=>{switch(a){case"not_authenticated":return t.NOT_AUTHENTICATED;case"invalid_parameter":return t.INVALID_PARAMETER;default:return t.FETCH_ERROR}};export{e as a,a as g}