@iamproperty/components 7.5.1--beta2 → 7.5.1--beta4

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 (152) hide show
  1. package/assets/css/components/actionbar.component.css +1 -1
  2. package/assets/css/components/actionbar.component.css.map +1 -1
  3. package/assets/css/components/address-lookup.component.css +1 -1
  4. package/assets/css/components/address-lookup.component.css.map +1 -1
  5. package/assets/css/components/address-lookup.preload.css +1 -0
  6. package/assets/css/components/address-lookup.preload.css.map +1 -0
  7. package/assets/css/components/barchart.component.css +1 -1
  8. package/assets/css/components/barchart.component.css.map +1 -1
  9. package/assets/css/components/calendar.component.css +1 -1
  10. package/assets/css/components/calendar.component.css.map +1 -1
  11. package/assets/css/components/card.component.css +1 -1
  12. package/assets/css/components/card.component.css.map +1 -1
  13. package/assets/css/components/carousel.component.css +1 -1
  14. package/assets/css/components/carousel.component.css.map +1 -1
  15. package/assets/css/components/collapsible-side.css +1 -1
  16. package/assets/css/components/collapsible-side.css.map +1 -1
  17. package/assets/css/components/content.component.css +1 -1
  18. package/assets/css/components/content.component.css.map +1 -1
  19. package/assets/css/components/doughnutchart.component.css +1 -1
  20. package/assets/css/components/doughnutchart.component.css.map +1 -1
  21. package/assets/css/components/fileupload.css +1 -1
  22. package/assets/css/components/fileupload.css.map +1 -1
  23. package/assets/css/components/inline-edit.css +1 -1
  24. package/assets/css/components/inline-edit.css.map +1 -1
  25. package/assets/css/components/multiselect.css +1 -1
  26. package/assets/css/components/multiselect.css.map +1 -1
  27. package/assets/css/components/nav.component.css +1 -1
  28. package/assets/css/components/nav.component.css.map +1 -1
  29. package/assets/css/components/pagination.css +1 -1
  30. package/assets/css/components/pagination.css.map +1 -1
  31. package/assets/css/components/slider.css +1 -1
  32. package/assets/css/components/slider.css.map +1 -1
  33. package/assets/css/components/split-button.component.css +1 -1
  34. package/assets/css/components/split-button.component.css.map +1 -1
  35. package/assets/css/components/table-basic.global.css +1 -1
  36. package/assets/css/components/table-basic.global.css.map +1 -1
  37. package/assets/css/components/table.global.css +1 -1
  38. package/assets/css/components/table.global.css.map +1 -1
  39. package/assets/css/components/tabs.component.css +1 -1
  40. package/assets/css/components/tabs.component.css.map +1 -1
  41. package/assets/css/core.min.css +1 -1
  42. package/assets/css/core.min.css.map +1 -1
  43. package/assets/css/mobile-core.min.css +1 -1
  44. package/assets/css/mobile-core.min.css.map +1 -1
  45. package/assets/css/mobile.min.css +1 -1
  46. package/assets/css/mobile.min.css.map +1 -1
  47. package/assets/css/style.min.css +1 -1
  48. package/assets/css/style.min.css.map +1 -1
  49. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  50. package/assets/js/components/actionbar/actionbar.component.min.js +4 -4
  51. package/assets/js/components/actionbar/actionbar.component.min.js.map +1 -1
  52. package/assets/js/components/address-lookup/address-lookup.component.js +336 -102
  53. package/assets/js/components/address-lookup/address-lookup.component.min.js +32 -14
  54. package/assets/js/components/address-lookup/address-lookup.component.min.js.map +1 -1
  55. package/assets/js/components/advanced-select/advanced-select.component.min.js +3 -3
  56. package/assets/js/components/advanced-select/advanced-select.component.min.js.map +1 -1
  57. package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
  58. package/assets/js/components/barchart/barchart.component.min.js +2 -2
  59. package/assets/js/components/barchart/barchart.component.min.js.map +1 -1
  60. package/assets/js/components/bento-grid/bento-grid.component.min.js +1 -1
  61. package/assets/js/components/calendar/calendar.component.min.js +5 -5
  62. package/assets/js/components/calendar/calendar.component.min.js.map +1 -1
  63. package/assets/js/components/card/card.component.min.js +2 -2
  64. package/assets/js/components/carousel/carousel.component.min.js +2 -2
  65. package/assets/js/components/collapsible-side/collapsible-side.component.min.js +2 -2
  66. package/assets/js/components/content/content.component.min.js +2 -2
  67. package/assets/js/components/darkmode/darkmode.component.min.js +1 -1
  68. package/assets/js/components/doughnutchart/doughnutchart.component.min.js +2 -2
  69. package/assets/js/components/doughnutchart/doughnutchart.component.min.js.map +1 -1
  70. package/assets/js/components/fileupload/fileupload.component.min.js +4 -4
  71. package/assets/js/components/filter-card/filter-card.component.min.js +1 -1
  72. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  73. package/assets/js/components/header/header.component.min.js +1 -1
  74. package/assets/js/components/inline-edit/inline-edit.component.min.js +3 -3
  75. package/assets/js/components/marketing/marketing.component.min.js +1 -1
  76. package/assets/js/components/menu/menu.component.min.js +1 -1
  77. package/assets/js/components/milestone/milestone.component.min.js +1 -1
  78. package/assets/js/components/milestone-group/milestone-group.component.min.js +1 -1
  79. package/assets/js/components/multi-step/multi-step.component.min.js +1 -1
  80. package/assets/js/components/multiselect/multiselect.component.min.js +4 -4
  81. package/assets/js/components/nav/nav.component.min.js +5 -5
  82. package/assets/js/components/notification/notification.component.min.js +1 -1
  83. package/assets/js/components/pagination/pagination.component.min.js +3 -3
  84. package/assets/js/components/password-indicator/password-indicator.component.min.js +1 -1
  85. package/assets/js/components/rank/rank.component.min.js +1 -1
  86. package/assets/js/components/rankings/rankings.component.min.js +1 -1
  87. package/assets/js/components/record-card/record-card.component.min.js +1 -1
  88. package/assets/js/components/search/search.component.js +65 -25
  89. package/assets/js/components/search/search.component.min.js +5 -5
  90. package/assets/js/components/search/search.component.min.js.map +1 -1
  91. package/assets/js/components/slider/slider.component.min.js +3 -3
  92. package/assets/js/components/split-button/split-button.component.min.js +3 -3
  93. package/assets/js/components/std-address-lookup/std-address-lookup.component.js +1715 -0
  94. package/assets/js/components/std-address-lookup/std-address-lookup.component.min.js +172 -0
  95. package/assets/js/components/std-address-lookup/std-address-lookup.component.min.js.map +1 -0
  96. package/assets/js/components/table/table.component.min.js +2 -2
  97. package/assets/js/components/table/table.component.min.js.map +1 -1
  98. package/assets/js/components/table-ajax/table-ajax.component.min.js +2 -2
  99. package/assets/js/components/table-ajax/table-ajax.component.min.js.map +1 -1
  100. package/assets/js/components/table-basic/table-basic.component.min.js +4 -4
  101. package/assets/js/components/table-basic/table-basic.component.min.js.map +1 -1
  102. package/assets/js/components/table-no-submit/table-no-submit.component.min.js +5 -5
  103. package/assets/js/components/table-no-submit/table-no-submit.component.min.js.map +1 -1
  104. package/assets/js/components/table-submit/table-submit.component.min.js +2 -2
  105. package/assets/js/components/table-submit/table-submit.component.min.js.map +1 -1
  106. package/assets/js/components/tabs/tabs.component.min.js +2 -2
  107. package/assets/js/components/tabs/tabs.component.min.js.map +1 -1
  108. package/assets/js/components/video-card/video-card.component.min.js +1 -1
  109. package/assets/js/components/word-count/word-count.component.min.js +1 -1
  110. package/assets/js/modules/advanced-select.js +35 -26
  111. package/assets/js/modules/helpers.js +19 -3
  112. package/assets/js/scripts.bundle.js +3 -3
  113. package/assets/js/scripts.bundle.js.map +1 -1
  114. package/assets/js/scripts.bundle.min.js +2 -2
  115. package/assets/js/scripts.bundle.min.js.map +1 -1
  116. package/assets/js/tests/helpers.spec.js +26 -0
  117. package/assets/sass/_components.scss +6 -0
  118. package/assets/sass/components/address-lookup.component.scss +91 -5
  119. package/assets/sass/components/address-lookup.preload.scss +81 -0
  120. package/assets/sass/components/table-basic.global.scss +175 -0
  121. package/assets/sass/components/table.global.scss +0 -163
  122. package/assets/sass/elements/buttons--action.scss +26 -0
  123. package/assets/sass/elements/buttons--global.scss +1 -4
  124. package/assets/sass/elements/forms.scss +182 -37
  125. package/assets/ts/components/address-lookup/address-lookup.component.ts +432 -109
  126. package/assets/ts/components/advanced-select/advanced-select.component.ts +1 -0
  127. package/assets/ts/components/search/search.component.ts +86 -27
  128. package/assets/ts/components/std-address-lookup/std-address-lookup.component.ts +1757 -0
  129. package/assets/ts/modules/advanced-select.ts +55 -27
  130. package/assets/ts/modules/helpers.ts +25 -3
  131. package/assets/ts/tests/helpers.spec.ts +38 -0
  132. package/dist/components.es.js +144 -144
  133. package/dist/components.umd.js +376 -191
  134. package/package.json +2 -1
  135. package/src/components/STDAddressLookup/STDAddressLookup.vue +22 -0
  136. /package/assets/js/{tests → ui-tests}/card.spec.js +0 -0
  137. /package/assets/js/{tests → ui-tests}/carousel.spec.js +0 -0
  138. /package/assets/js/{tests → ui-tests}/chart.spec.js +0 -0
  139. /package/assets/js/{tests → ui-tests}/fileupload.spec.js +0 -0
  140. /package/assets/js/{tests → ui-tests}/filterlist.spec.js +0 -0
  141. /package/assets/js/{tests → ui-tests}/multistep.spec.js +0 -0
  142. /package/assets/js/{tests → ui-tests}/slider.spec.js +0 -0
  143. /package/assets/js/{tests → ui-tests}/table.spec.js +0 -0
  144. /package/assets/ts/{tests → ui-tests}/card.spec.ts +0 -0
  145. /package/assets/ts/{tests → ui-tests}/carousel.spec.ts +0 -0
  146. /package/assets/ts/{tests → ui-tests}/chart.spec.ts +0 -0
  147. /package/assets/ts/{tests → ui-tests}/data-layer.spec.js +0 -0
  148. /package/assets/ts/{tests → ui-tests}/fileupload.spec.ts +0 -0
  149. /package/assets/ts/{tests → ui-tests}/filterlist.spec.ts +0 -0
  150. /package/assets/ts/{tests → ui-tests}/multistep.spec.ts +0 -0
  151. /package/assets/ts/{tests → ui-tests}/slider.spec.ts +0 -0
  152. /package/assets/ts/{tests → ui-tests}/table.spec.ts +0 -0
@@ -0,0 +1,1757 @@
1
+ import iamAddressLookup from '../address-lookup/address-lookup.component';
2
+
3
+ const countries = [
4
+ {
5
+ "id": "urn:iamproperty:country:AF",
6
+ "country_name": "Afghanistan"
7
+ },
8
+ {
9
+ "id": "urn:iamproperty:country:AX",
10
+ "country_name": "Aland Islands"
11
+ },
12
+ {
13
+ "id": "urn:iamproperty:country:AL",
14
+ "country_name": "Albania"
15
+ },
16
+ {
17
+ "id": "urn:iamproperty:country:DZ",
18
+ "country_name": "Algeria"
19
+ },
20
+ {
21
+ "id": "urn:iamproperty:country:AS",
22
+ "country_name": "American Samoa"
23
+ },
24
+ {
25
+ "id": "urn:iamproperty:country:AD",
26
+ "country_name": "Andorra"
27
+ },
28
+ {
29
+ "id": "urn:iamproperty:country:AO",
30
+ "country_name": "Angola"
31
+ },
32
+ {
33
+ "id": "urn:iamproperty:country:AI",
34
+ "country_name": "Anguilla"
35
+ },
36
+ {
37
+ "id": "urn:iamproperty:country:AQ",
38
+ "country_name": "Antarctica"
39
+ },
40
+ {
41
+ "id": "urn:iamproperty:country:AG",
42
+ "country_name": "Antigua and Barbuda"
43
+ },
44
+ {
45
+ "id": "urn:iamproperty:country:AR",
46
+ "country_name": "Argentina"
47
+ },
48
+ {
49
+ "id": "urn:iamproperty:country:AM",
50
+ "country_name": "Armenia"
51
+ },
52
+ {
53
+ "id": "urn:iamproperty:country:AW",
54
+ "country_name": "Aruba"
55
+ },
56
+ {
57
+ "id": "urn:iamproperty:country:AU",
58
+ "country_name": "Australia"
59
+ },
60
+ {
61
+ "id": "urn:iamproperty:country:AT",
62
+ "country_name": "Austria"
63
+ },
64
+ {
65
+ "id": "urn:iamproperty:country:AZ",
66
+ "country_name": "Azerbaijan"
67
+ },
68
+ {
69
+ "id": "urn:iamproperty:country:BS",
70
+ "country_name": "Bahamas"
71
+ },
72
+ {
73
+ "id": "urn:iamproperty:country:BH",
74
+ "country_name": "Bahrain"
75
+ },
76
+ {
77
+ "id": "urn:iamproperty:country:BD",
78
+ "country_name": "Bangladesh"
79
+ },
80
+ {
81
+ "id": "urn:iamproperty:country:BB",
82
+ "country_name": "Barbados"
83
+ },
84
+ {
85
+ "id": "urn:iamproperty:country:BY",
86
+ "country_name": "Belarus"
87
+ },
88
+ {
89
+ "id": "urn:iamproperty:country:BE",
90
+ "country_name": "Belgium"
91
+ },
92
+ {
93
+ "id": "urn:iamproperty:country:BZ",
94
+ "country_name": "Belize"
95
+ },
96
+ {
97
+ "id": "urn:iamproperty:country:BJ",
98
+ "country_name": "Benin"
99
+ },
100
+ {
101
+ "id": "urn:iamproperty:country:BM",
102
+ "country_name": "Bermuda"
103
+ },
104
+ {
105
+ "id": "urn:iamproperty:country:BT",
106
+ "country_name": "Bhutan"
107
+ },
108
+ {
109
+ "id": "urn:iamproperty:country:BO",
110
+ "country_name": "Bolivia (Plurinational State of)"
111
+ },
112
+ {
113
+ "id": "urn:iamproperty:country:BQ",
114
+ "country_name": "Bonaire, Sint Eustatius and Saba"
115
+ },
116
+ {
117
+ "id": "urn:iamproperty:country:BA",
118
+ "country_name": "Bosnia and Herzegovina"
119
+ },
120
+ {
121
+ "id": "urn:iamproperty:country:BW",
122
+ "country_name": "Botswana"
123
+ },
124
+ {
125
+ "id": "urn:iamproperty:country:BV",
126
+ "country_name": "Bouvet Island"
127
+ },
128
+ {
129
+ "id": "urn:iamproperty:country:BR",
130
+ "country_name": "Brazil"
131
+ },
132
+ {
133
+ "id": "urn:iamproperty:country:IO",
134
+ "country_name": "British Indian Ocean Territory"
135
+ },
136
+ {
137
+ "id": "urn:iamproperty:country:BN",
138
+ "country_name": "Brunei Darussalam"
139
+ },
140
+ {
141
+ "id": "urn:iamproperty:country:BG",
142
+ "country_name": "Bulgaria"
143
+ },
144
+ {
145
+ "id": "urn:iamproperty:country:BF",
146
+ "country_name": "Burkina Faso"
147
+ },
148
+ {
149
+ "id": "urn:iamproperty:country:BI",
150
+ "country_name": "Burundi"
151
+ },
152
+ {
153
+ "id": "urn:iamproperty:country:KH",
154
+ "country_name": "Cambodia"
155
+ },
156
+ {
157
+ "id": "urn:iamproperty:country:CM",
158
+ "country_name": "Cameroon"
159
+ },
160
+ {
161
+ "id": "urn:iamproperty:country:CA",
162
+ "country_name": "Canada"
163
+ },
164
+ {
165
+ "id": "urn:iamproperty:country:CV",
166
+ "country_name": "Cabo Verde"
167
+ },
168
+ {
169
+ "id": "urn:iamproperty:country:KY",
170
+ "country_name": "Cayman Islands"
171
+ },
172
+ {
173
+ "id": "urn:iamproperty:country:CF",
174
+ "country_name": "Central African Republic"
175
+ },
176
+ {
177
+ "id": "urn:iamproperty:country:TD",
178
+ "country_name": "Chad"
179
+ },
180
+ {
181
+ "id": "urn:iamproperty:country:CL",
182
+ "country_name": "Chile"
183
+ },
184
+ {
185
+ "id": "urn:iamproperty:country:CN",
186
+ "country_name": "China"
187
+ },
188
+ {
189
+ "id": "urn:iamproperty:country:CX",
190
+ "country_name": "Christmas Island"
191
+ },
192
+ {
193
+ "id": "urn:iamproperty:country:CC",
194
+ "country_name": "Cocos (Keeling) Islands"
195
+ },
196
+ {
197
+ "id": "urn:iamproperty:country:CO",
198
+ "country_name": "Colombia"
199
+ },
200
+ {
201
+ "id": "urn:iamproperty:country:KM",
202
+ "country_name": "Comoros"
203
+ },
204
+ {
205
+ "id": "urn:iamproperty:country:CG",
206
+ "country_name": "Congo"
207
+ },
208
+ {
209
+ "id": "urn:iamproperty:country:CD",
210
+ "country_name": "Congo (Democratic Republic of the)"
211
+ },
212
+ {
213
+ "id": "urn:iamproperty:country:CK",
214
+ "country_name": "Cook Islands"
215
+ },
216
+ {
217
+ "id": "urn:iamproperty:country:CR",
218
+ "country_name": "Costa Rica"
219
+ },
220
+ {
221
+ "id": "urn:iamproperty:country:CI",
222
+ "country_name": "Côte d’Ivoire"
223
+ },
224
+ {
225
+ "id": "urn:iamproperty:country:HR",
226
+ "country_name": "Croatia"
227
+ },
228
+ {
229
+ "id": "urn:iamproperty:country:CU",
230
+ "country_name": "Cuba"
231
+ },
232
+ {
233
+ "id": "urn:iamproperty:country:CW",
234
+ "country_name": "Curaçao"
235
+ },
236
+ {
237
+ "id": "urn:iamproperty:country:CY",
238
+ "country_name": "Cyprus"
239
+ },
240
+ {
241
+ "id": "urn:iamproperty:country:CZ",
242
+ "country_name": "Czech Republic"
243
+ },
244
+ {
245
+ "id": "urn:iamproperty:country:DK",
246
+ "country_name": "Denmark"
247
+ },
248
+ {
249
+ "id": "urn:iamproperty:country:DJ",
250
+ "country_name": "Djibouti"
251
+ },
252
+ {
253
+ "id": "urn:iamproperty:country:DM",
254
+ "country_name": "Dominica"
255
+ },
256
+ {
257
+ "id": "urn:iamproperty:country:DO",
258
+ "country_name": "Dominican Republic"
259
+ },
260
+ {
261
+ "id": "urn:iamproperty:country:EC",
262
+ "country_name": "Ecuador"
263
+ },
264
+ {
265
+ "id": "urn:iamproperty:country:EG",
266
+ "country_name": "Egypt"
267
+ },
268
+ {
269
+ "id": "urn:iamproperty:country:SV",
270
+ "country_name": "El Salvador"
271
+ },
272
+ {
273
+ "id": "urn:iamproperty:country:GQ",
274
+ "country_name": "Equatorial Guinea"
275
+ },
276
+ {
277
+ "id": "urn:iamproperty:country:ER",
278
+ "country_name": "Eritrea"
279
+ },
280
+ {
281
+ "id": "urn:iamproperty:country:EE",
282
+ "country_name": "Estonia"
283
+ },
284
+ {
285
+ "id": "urn:iamproperty:country:ET",
286
+ "country_name": "Ethiopia"
287
+ },
288
+ {
289
+ "id": "urn:iamproperty:country:FK",
290
+ "country_name": "Falkland Islands (Malvinas)"
291
+ },
292
+ {
293
+ "id": "urn:iamproperty:country:FO",
294
+ "country_name": "Faroe Islands"
295
+ },
296
+ {
297
+ "id": "urn:iamproperty:country:FJ",
298
+ "country_name": "Fiji"
299
+ },
300
+ {
301
+ "id": "urn:iamproperty:country:FI",
302
+ "country_name": "Finland"
303
+ },
304
+ {
305
+ "id": "urn:iamproperty:country:FR",
306
+ "country_name": "France"
307
+ },
308
+ {
309
+ "id": "urn:iamproperty:country:GF",
310
+ "country_name": "French Guiana"
311
+ },
312
+ {
313
+ "id": "urn:iamproperty:country:PF",
314
+ "country_name": "French Polynesia"
315
+ },
316
+ {
317
+ "id": "urn:iamproperty:country:TF",
318
+ "country_name": "French Southern Territories"
319
+ },
320
+ {
321
+ "id": "urn:iamproperty:country:GA",
322
+ "country_name": "Gabon"
323
+ },
324
+ {
325
+ "id": "urn:iamproperty:country:GM",
326
+ "country_name": "Gambia"
327
+ },
328
+ {
329
+ "id": "urn:iamproperty:country:GE",
330
+ "country_name": "Georgia"
331
+ },
332
+ {
333
+ "id": "urn:iamproperty:country:DE",
334
+ "country_name": "Germany"
335
+ },
336
+ {
337
+ "id": "urn:iamproperty:country:GH",
338
+ "country_name": "Ghana"
339
+ },
340
+ {
341
+ "id": "urn:iamproperty:country:GI",
342
+ "country_name": "Gibraltar"
343
+ },
344
+ {
345
+ "id": "urn:iamproperty:country:GR",
346
+ "country_name": "Greece"
347
+ },
348
+ {
349
+ "id": "urn:iamproperty:country:GL",
350
+ "country_name": "Greenland"
351
+ },
352
+ {
353
+ "id": "urn:iamproperty:country:GD",
354
+ "country_name": "Grenada"
355
+ },
356
+ {
357
+ "id": "urn:iamproperty:country:GP",
358
+ "country_name": "Guadeloupe"
359
+ },
360
+ {
361
+ "id": "urn:iamproperty:country:GU",
362
+ "country_name": "Guam"
363
+ },
364
+ {
365
+ "id": "urn:iamproperty:country:GT",
366
+ "country_name": "Guatemala"
367
+ },
368
+ {
369
+ "id": "urn:iamproperty:country:GG",
370
+ "country_name": "Guernsey"
371
+ },
372
+ {
373
+ "id": "urn:iamproperty:country:GN",
374
+ "country_name": "Guinea"
375
+ },
376
+ {
377
+ "id": "urn:iamproperty:country:GW",
378
+ "country_name": "Guinea-Bissau"
379
+ },
380
+ {
381
+ "id": "urn:iamproperty:country:GY",
382
+ "country_name": "Guyana"
383
+ },
384
+ {
385
+ "id": "urn:iamproperty:country:HT",
386
+ "country_name": "Haiti"
387
+ },
388
+ {
389
+ "id": "urn:iamproperty:country:HM",
390
+ "country_name": "Heard Island and McDonald Islands"
391
+ },
392
+ {
393
+ "id": "urn:iamproperty:country:VA",
394
+ "country_name": "Holy See"
395
+ },
396
+ {
397
+ "id": "urn:iamproperty:country:HN",
398
+ "country_name": "Honduras"
399
+ },
400
+ {
401
+ "id": "urn:iamproperty:country:HK",
402
+ "country_name": "Hong Kong"
403
+ },
404
+ {
405
+ "id": "urn:iamproperty:country:HU",
406
+ "country_name": "Hungary"
407
+ },
408
+ {
409
+ "id": "urn:iamproperty:country:IS",
410
+ "country_name": "Iceland"
411
+ },
412
+ {
413
+ "id": "urn:iamproperty:country:IN",
414
+ "country_name": "India"
415
+ },
416
+ {
417
+ "id": "urn:iamproperty:country:ID",
418
+ "country_name": "Indonesia"
419
+ },
420
+ {
421
+ "id": "urn:iamproperty:country:IR",
422
+ "country_name": "Iran (Islamic Republic of)"
423
+ },
424
+ {
425
+ "id": "urn:iamproperty:country:IQ",
426
+ "country_name": "Iraq"
427
+ },
428
+ {
429
+ "id": "urn:iamproperty:country:IE",
430
+ "country_name": "Ireland"
431
+ },
432
+ {
433
+ "id": "urn:iamproperty:country:IM",
434
+ "country_name": "Isle of Man"
435
+ },
436
+ {
437
+ "id": "urn:iamproperty:country:IL",
438
+ "country_name": "Israel"
439
+ },
440
+ {
441
+ "id": "urn:iamproperty:country:IT",
442
+ "country_name": "Italy"
443
+ },
444
+ {
445
+ "id": "urn:iamproperty:country:JM",
446
+ "country_name": "Jamaica"
447
+ },
448
+ {
449
+ "id": "urn:iamproperty:country:JP",
450
+ "country_name": "Japan"
451
+ },
452
+ {
453
+ "id": "urn:iamproperty:country:JE",
454
+ "country_name": "Jersey"
455
+ },
456
+ {
457
+ "id": "urn:iamproperty:country:JO",
458
+ "country_name": "Jordan"
459
+ },
460
+ {
461
+ "id": "urn:iamproperty:country:KZ",
462
+ "country_name": "Kazakhstan"
463
+ },
464
+ {
465
+ "id": "urn:iamproperty:country:KE",
466
+ "country_name": "Kenya"
467
+ },
468
+ {
469
+ "id": "urn:iamproperty:country:KI",
470
+ "country_name": "Kiribati"
471
+ },
472
+ {
473
+ "id": "urn:iamproperty:country:KP",
474
+ "country_name": "Korea (Democratic People's Republic of)"
475
+ },
476
+ {
477
+ "id": "urn:iamproperty:country:KR",
478
+ "country_name": "Korea (Republic of)"
479
+ },
480
+ {
481
+ "id": "urn:iamproperty:country:KW",
482
+ "country_name": "Kuwait"
483
+ },
484
+ {
485
+ "id": "urn:iamproperty:country:KG",
486
+ "country_name": "Kyrgyzstan"
487
+ },
488
+ {
489
+ "id": "urn:iamproperty:country:LA",
490
+ "country_name": "Lao People's Democratic Republic"
491
+ },
492
+ {
493
+ "id": "urn:iamproperty:country:LV",
494
+ "country_name": "Latvia"
495
+ },
496
+ {
497
+ "id": "urn:iamproperty:country:LB",
498
+ "country_name": "Lebanon"
499
+ },
500
+ {
501
+ "id": "urn:iamproperty:country:LS",
502
+ "country_name": "Lesotho"
503
+ },
504
+ {
505
+ "id": "urn:iamproperty:country:LR",
506
+ "country_name": "Liberia"
507
+ },
508
+ {
509
+ "id": "urn:iamproperty:country:LY",
510
+ "country_name": "Libya"
511
+ },
512
+ {
513
+ "id": "urn:iamproperty:country:LI",
514
+ "country_name": "Liechtenstein"
515
+ },
516
+ {
517
+ "id": "urn:iamproperty:country:LT",
518
+ "country_name": "Lithuania"
519
+ },
520
+ {
521
+ "id": "urn:iamproperty:country:LU",
522
+ "country_name": "Luxembourg"
523
+ },
524
+ {
525
+ "id": "urn:iamproperty:country:MO",
526
+ "country_name": "Macao"
527
+ },
528
+ {
529
+ "id": "urn:iamproperty:country:MK",
530
+ "country_name": "Republic of North Macedonia"
531
+ },
532
+ {
533
+ "id": "urn:iamproperty:country:MG",
534
+ "country_name": "Madagascar"
535
+ },
536
+ {
537
+ "id": "urn:iamproperty:country:MW",
538
+ "country_name": "Malawi"
539
+ },
540
+ {
541
+ "id": "urn:iamproperty:country:MY",
542
+ "country_name": "Malaysia"
543
+ },
544
+ {
545
+ "id": "urn:iamproperty:country:MV",
546
+ "country_name": "Maldives"
547
+ },
548
+ {
549
+ "id": "urn:iamproperty:country:ML",
550
+ "country_name": "Mali"
551
+ },
552
+ {
553
+ "id": "urn:iamproperty:country:MT",
554
+ "country_name": "Malta"
555
+ },
556
+ {
557
+ "id": "urn:iamproperty:country:MH",
558
+ "country_name": "Marshall Islands"
559
+ },
560
+ {
561
+ "id": "urn:iamproperty:country:MQ",
562
+ "country_name": "Martinique"
563
+ },
564
+ {
565
+ "id": "urn:iamproperty:country:MR",
566
+ "country_name": "Mauritania"
567
+ },
568
+ {
569
+ "id": "urn:iamproperty:country:MU",
570
+ "country_name": "Mauritius"
571
+ },
572
+ {
573
+ "id": "urn:iamproperty:country:YT",
574
+ "country_name": "Mayotte"
575
+ },
576
+ {
577
+ "id": "urn:iamproperty:country:MX",
578
+ "country_name": "Mexico"
579
+ },
580
+ {
581
+ "id": "urn:iamproperty:country:FM",
582
+ "country_name": "Micronesia (Federated States of)"
583
+ },
584
+ {
585
+ "id": "urn:iamproperty:country:MD",
586
+ "country_name": "Moldova (Republic of)"
587
+ },
588
+ {
589
+ "id": "urn:iamproperty:country:MC",
590
+ "country_name": "Monaco"
591
+ },
592
+ {
593
+ "id": "urn:iamproperty:country:MN",
594
+ "country_name": "Mongolia"
595
+ },
596
+ {
597
+ "id": "urn:iamproperty:country:ME",
598
+ "country_name": "Montenegro"
599
+ },
600
+ {
601
+ "id": "urn:iamproperty:country:MS",
602
+ "country_name": "Montserrat"
603
+ },
604
+ {
605
+ "id": "urn:iamproperty:country:MA",
606
+ "country_name": "Morocco"
607
+ },
608
+ {
609
+ "id": "urn:iamproperty:country:MZ",
610
+ "country_name": "Mozambique"
611
+ },
612
+ {
613
+ "id": "urn:iamproperty:country:MM",
614
+ "country_name": "Myanmar"
615
+ },
616
+ {
617
+ "id": "urn:iamproperty:country:NA",
618
+ "country_name": "Namibia"
619
+ },
620
+ {
621
+ "id": "urn:iamproperty:country:NR",
622
+ "country_name": "Nauru"
623
+ },
624
+ {
625
+ "id": "urn:iamproperty:country:NP",
626
+ "country_name": "Nepal"
627
+ },
628
+ {
629
+ "id": "urn:iamproperty:country:NL",
630
+ "country_name": "Netherlands"
631
+ },
632
+ {
633
+ "id": "urn:iamproperty:country:NC",
634
+ "country_name": "New Caledonia"
635
+ },
636
+ {
637
+ "id": "urn:iamproperty:country:NZ",
638
+ "country_name": "New Zealand"
639
+ },
640
+ {
641
+ "id": "urn:iamproperty:country:NI",
642
+ "country_name": "Nicaragua"
643
+ },
644
+ {
645
+ "id": "urn:iamproperty:country:NE",
646
+ "country_name": "Niger"
647
+ },
648
+ {
649
+ "id": "urn:iamproperty:country:NG",
650
+ "country_name": "Nigeria"
651
+ },
652
+ {
653
+ "id": "urn:iamproperty:country:NU",
654
+ "country_name": "Niue"
655
+ },
656
+ {
657
+ "id": "urn:iamproperty:country:NF",
658
+ "country_name": "Norfolk Island"
659
+ },
660
+ {
661
+ "id": "urn:iamproperty:country:MP",
662
+ "country_name": "Northern Mariana Islands"
663
+ },
664
+ {
665
+ "id": "urn:iamproperty:country:NO",
666
+ "country_name": "Norway"
667
+ },
668
+ {
669
+ "id": "urn:iamproperty:country:OM",
670
+ "country_name": "Oman"
671
+ },
672
+ {
673
+ "id": "urn:iamproperty:country:PK",
674
+ "country_name": "Pakistan"
675
+ },
676
+ {
677
+ "id": "urn:iamproperty:country:PW",
678
+ "country_name": "Palau"
679
+ },
680
+ {
681
+ "id": "urn:iamproperty:country:PS",
682
+ "country_name": "Palestine, State of"
683
+ },
684
+ {
685
+ "id": "urn:iamproperty:country:PA",
686
+ "country_name": "Panama"
687
+ },
688
+ {
689
+ "id": "urn:iamproperty:country:PG",
690
+ "country_name": "Papua New Guinea"
691
+ },
692
+ {
693
+ "id": "urn:iamproperty:country:PY",
694
+ "country_name": "Paraguay"
695
+ },
696
+ {
697
+ "id": "urn:iamproperty:country:PE",
698
+ "country_name": "Peru"
699
+ },
700
+ {
701
+ "id": "urn:iamproperty:country:PH",
702
+ "country_name": "Philippines"
703
+ },
704
+ {
705
+ "id": "urn:iamproperty:country:PN",
706
+ "country_name": "Pitcairn"
707
+ },
708
+ {
709
+ "id": "urn:iamproperty:country:PL",
710
+ "country_name": "Poland"
711
+ },
712
+ {
713
+ "id": "urn:iamproperty:country:PT",
714
+ "country_name": "Portugal"
715
+ },
716
+ {
717
+ "id": "urn:iamproperty:country:PR",
718
+ "country_name": "Puerto Rico"
719
+ },
720
+ {
721
+ "id": "urn:iamproperty:country:QA",
722
+ "country_name": "Qatar"
723
+ },
724
+ {
725
+ "id": "urn:iamproperty:country:RE",
726
+ "country_name": "Réunion"
727
+ },
728
+ {
729
+ "id": "urn:iamproperty:country:RO",
730
+ "country_name": "Romania"
731
+ },
732
+ {
733
+ "id": "urn:iamproperty:country:RU",
734
+ "country_name": "Russian Federation"
735
+ },
736
+ {
737
+ "id": "urn:iamproperty:country:RW",
738
+ "country_name": "Rwanda"
739
+ },
740
+ {
741
+ "id": "urn:iamproperty:country:BL",
742
+ "country_name": "Saint Barthélemy"
743
+ },
744
+ {
745
+ "id": "urn:iamproperty:country:SH",
746
+ "country_name": "Saint Helena, Ascension and Tristan da Cunha"
747
+ },
748
+ {
749
+ "id": "urn:iamproperty:country:KN",
750
+ "country_name": "Saint Kitts and Nevis"
751
+ },
752
+ {
753
+ "id": "urn:iamproperty:country:LC",
754
+ "country_name": "Saint Lucia"
755
+ },
756
+ {
757
+ "id": "urn:iamproperty:country:MF",
758
+ "country_name": "Saint Martin (French part)"
759
+ },
760
+ {
761
+ "id": "urn:iamproperty:country:PM",
762
+ "country_name": "Saint Pierre and Miquelon"
763
+ },
764
+ {
765
+ "id": "urn:iamproperty:country:VC",
766
+ "country_name": "Saint Vincent and the Grenadines"
767
+ },
768
+ {
769
+ "id": "urn:iamproperty:country:WS",
770
+ "country_name": "Samoa"
771
+ },
772
+ {
773
+ "id": "urn:iamproperty:country:SM",
774
+ "country_name": "San Marino"
775
+ },
776
+ {
777
+ "id": "urn:iamproperty:country:ST",
778
+ "country_name": "Sao Tome and Principe"
779
+ },
780
+ {
781
+ "id": "urn:iamproperty:country:SA",
782
+ "country_name": "Saudi Arabia"
783
+ },
784
+ {
785
+ "id": "urn:iamproperty:country:SN",
786
+ "country_name": "Senegal"
787
+ },
788
+ {
789
+ "id": "urn:iamproperty:country:RS",
790
+ "country_name": "Serbia"
791
+ },
792
+ {
793
+ "id": "urn:iamproperty:country:SC",
794
+ "country_name": "Seychelles"
795
+ },
796
+ {
797
+ "id": "urn:iamproperty:country:SL",
798
+ "country_name": "Sierra Leone"
799
+ },
800
+ {
801
+ "id": "urn:iamproperty:country:SG",
802
+ "country_name": "Singapore"
803
+ },
804
+ {
805
+ "id": "urn:iamproperty:country:SX",
806
+ "country_name": "Sint Maarten (Dutch part)"
807
+ },
808
+ {
809
+ "id": "urn:iamproperty:country:SK",
810
+ "country_name": "Slovakia"
811
+ },
812
+ {
813
+ "id": "urn:iamproperty:country:SI",
814
+ "country_name": "Slovenia"
815
+ },
816
+ {
817
+ "id": "urn:iamproperty:country:SB",
818
+ "country_name": "Solomon Islands"
819
+ },
820
+ {
821
+ "id": "urn:iamproperty:country:SO",
822
+ "country_name": "Somalia"
823
+ },
824
+ {
825
+ "id": "urn:iamproperty:country:ZA",
826
+ "country_name": "South Africa"
827
+ },
828
+ {
829
+ "id": "urn:iamproperty:country:GS",
830
+ "country_name": "South Georgia and the South Sandwich Islands"
831
+ },
832
+ {
833
+ "id": "urn:iamproperty:country:SS",
834
+ "country_name": "South Sudan"
835
+ },
836
+ {
837
+ "id": "urn:iamproperty:country:ES",
838
+ "country_name": "Spain"
839
+ },
840
+ {
841
+ "id": "urn:iamproperty:country:LK",
842
+ "country_name": "Sri Lanka"
843
+ },
844
+ {
845
+ "id": "urn:iamproperty:country:SD",
846
+ "country_name": "Sudan"
847
+ },
848
+ {
849
+ "id": "urn:iamproperty:country:SR",
850
+ "country_name": "Suriname"
851
+ },
852
+ {
853
+ "id": "urn:iamproperty:country:SJ",
854
+ "country_name": "Svalbard and Jan Mayen"
855
+ },
856
+ {
857
+ "id": "urn:iamproperty:country:SZ",
858
+ "country_name": "The Kingdom of Eswatini"
859
+ },
860
+ {
861
+ "id": "urn:iamproperty:country:SE",
862
+ "country_name": "Sweden"
863
+ },
864
+ {
865
+ "id": "urn:iamproperty:country:CH",
866
+ "country_name": "Switzerland"
867
+ },
868
+ {
869
+ "id": "urn:iamproperty:country:SY",
870
+ "country_name": "Syrian Arab Republic"
871
+ },
872
+ {
873
+ "id": "urn:iamproperty:country:TW",
874
+ "country_name": "Taiwan, Province of China"
875
+ },
876
+ {
877
+ "id": "urn:iamproperty:country:TJ",
878
+ "country_name": "Tajikistan"
879
+ },
880
+ {
881
+ "id": "urn:iamproperty:country:TZ",
882
+ "country_name": "Tanzania, United Republic of"
883
+ },
884
+ {
885
+ "id": "urn:iamproperty:country:TH",
886
+ "country_name": "Thailand"
887
+ },
888
+ {
889
+ "id": "urn:iamproperty:country:TL",
890
+ "country_name": "Timor-Leste"
891
+ },
892
+ {
893
+ "id": "urn:iamproperty:country:TG",
894
+ "country_name": "Togo"
895
+ },
896
+ {
897
+ "id": "urn:iamproperty:country:TK",
898
+ "country_name": "Tokelau"
899
+ },
900
+ {
901
+ "id": "urn:iamproperty:country:TO",
902
+ "country_name": "Tonga"
903
+ },
904
+ {
905
+ "id": "urn:iamproperty:country:TT",
906
+ "country_name": "Trinidad and Tobago"
907
+ },
908
+ {
909
+ "id": "urn:iamproperty:country:TN",
910
+ "country_name": "Tunisia"
911
+ },
912
+ {
913
+ "id": "urn:iamproperty:country:TR",
914
+ "country_name": "Republic of Türkiye"
915
+ },
916
+ {
917
+ "id": "urn:iamproperty:country:TM",
918
+ "country_name": "Turkmenistan"
919
+ },
920
+ {
921
+ "id": "urn:iamproperty:country:TC",
922
+ "country_name": "Turks and Caicos Islands"
923
+ },
924
+ {
925
+ "id": "urn:iamproperty:country:TV",
926
+ "country_name": "Tuvalu"
927
+ },
928
+ {
929
+ "id": "urn:iamproperty:country:UG",
930
+ "country_name": "Uganda"
931
+ },
932
+ {
933
+ "id": "urn:iamproperty:country:UA",
934
+ "country_name": "Ukraine"
935
+ },
936
+ {
937
+ "id": "urn:iamproperty:country:AE",
938
+ "country_name": "United Arab Emirates"
939
+ },
940
+ {
941
+ "id": "urn:iamproperty:country:GB",
942
+ "country_name": "United Kingdom of Great Britain and Northern Ireland"
943
+ },
944
+ {
945
+ "id": "urn:iamproperty:country:US",
946
+ "country_name": "United States of America"
947
+ },
948
+ {
949
+ "id": "urn:iamproperty:country:UM",
950
+ "country_name": "United States Minor Outlying Islands"
951
+ },
952
+ {
953
+ "id": "urn:iamproperty:country:UY",
954
+ "country_name": "Uruguay"
955
+ },
956
+ {
957
+ "id": "urn:iamproperty:country:UZ",
958
+ "country_name": "Uzbekistan"
959
+ },
960
+ {
961
+ "id": "urn:iamproperty:country:VU",
962
+ "country_name": "Vanuatu"
963
+ },
964
+ {
965
+ "id": "urn:iamproperty:country:VE",
966
+ "country_name": "Venezuela (Bolivarian Republic of)"
967
+ },
968
+ {
969
+ "id": "urn:iamproperty:country:VN",
970
+ "country_name": "Viet Nam"
971
+ },
972
+ {
973
+ "id": "urn:iamproperty:country:VG",
974
+ "country_name": "Virgin Islands (British)"
975
+ },
976
+ {
977
+ "id": "urn:iamproperty:country:VI",
978
+ "country_name": "Virgin Islands (U.S.)"
979
+ },
980
+ {
981
+ "id": "urn:iamproperty:country:WF",
982
+ "country_name": "Wallis and Futuna"
983
+ },
984
+ {
985
+ "id": "urn:iamproperty:country:EH",
986
+ "country_name": "Western Sahara"
987
+ },
988
+ {
989
+ "id": "urn:iamproperty:country:YE",
990
+ "country_name": "Yemen"
991
+ },
992
+ {
993
+ "id": "urn:iamproperty:country:ZM",
994
+ "country_name": "Zambia"
995
+ },
996
+ {
997
+ "id": "urn:iamproperty:country:ZW",
998
+ "country_name": "Zimbabwe"
999
+ }
1000
+ ];
1001
+
1002
+ const counties = [
1003
+ {
1004
+ "id": "urn:iamproperty:county:ekHuOPAhk",
1005
+ "county": "Monmouthshire"
1006
+ },
1007
+ {
1008
+ "id": "urn:iamproperty:county:AEbmaIiuw",
1009
+ "county": "Cambridgeshire"
1010
+ },
1011
+ {
1012
+ "id": "urn:iamproperty:county:HN2Hekmbp",
1013
+ "county": "South Lanarkshire"
1014
+ },
1015
+ {
1016
+ "id": "urn:iamproperty:county:520Tnh4wg",
1017
+ "county": "Derbyshire"
1018
+ },
1019
+ {
1020
+ "id": "urn:iamproperty:county:l5UCrwlvB",
1021
+ "county": "Devon"
1022
+ },
1023
+ {
1024
+ "id": "urn:iamproperty:county:GCA8Jh6Ic",
1025
+ "county": "Bristol"
1026
+ },
1027
+ {
1028
+ "id": "urn:iamproperty:county:Mi1lAB5uQ",
1029
+ "county": "Rhondda Cynon Taf"
1030
+ },
1031
+ {
1032
+ "id": "urn:iamproperty:county:n4jPkt4qP",
1033
+ "county": "Carmarthenshire"
1034
+ },
1035
+ {
1036
+ "id": "urn:iamproperty:county:XO1G4TTb5",
1037
+ "county": "Aberdeenshire"
1038
+ },
1039
+ {
1040
+ "id": "urn:iamproperty:county:JIaxjhlxx",
1041
+ "county": "North Somerset"
1042
+ },
1043
+ {
1044
+ "id": "urn:iamproperty:county:hLrOnlFfB",
1045
+ "county": "Nottinghamshire"
1046
+ },
1047
+ {
1048
+ "id": "urn:iamproperty:county:oGMGorIRg",
1049
+ "county": "Durham"
1050
+ },
1051
+ {
1052
+ "id": "urn:iamproperty:county:eBaLXgG8Y",
1053
+ "county": "Isle of Wight"
1054
+ },
1055
+ {
1056
+ "id": "urn:iamproperty:county:NMsdqInpw",
1057
+ "county": "Northamptonshire"
1058
+ },
1059
+ {
1060
+ "id": "urn:iamproperty:county:xRBQIke3k",
1061
+ "county": "Warwickshire"
1062
+ },
1063
+ {
1064
+ "id": "urn:iamproperty:county:R7yUpOlb4",
1065
+ "county": "Berwickshire"
1066
+ },
1067
+ {
1068
+ "id": "urn:iamproperty:county:S9DHMO2Hh",
1069
+ "county": "East Sussex"
1070
+ },
1071
+ {
1072
+ "id": "urn:iamproperty:county:rj4pK09x7",
1073
+ "county": "Denbighshire"
1074
+ },
1075
+ {
1076
+ "id": "urn:iamproperty:county:vuduFOMex",
1077
+ "county": "Lanarkshire"
1078
+ },
1079
+ {
1080
+ "id": "urn:iamproperty:county:5W66e6apO",
1081
+ "county": "East Riding of Yorkshire"
1082
+ },
1083
+ {
1084
+ "id": "urn:iamproperty:county:Hb6eqUJQj",
1085
+ "county": "North Ayrshire"
1086
+ },
1087
+ {
1088
+ "id": "urn:iamproperty:county:fwRrCvJ4C",
1089
+ "county": "Greater Manchester"
1090
+ },
1091
+ {
1092
+ "id": "urn:iamproperty:county:aekGxogbo",
1093
+ "county": "East Renfrewshire"
1094
+ },
1095
+ {
1096
+ "id": "urn:iamproperty:county:f3srYWllA",
1097
+ "county": "Cardiff"
1098
+ },
1099
+ {
1100
+ "id": "urn:iamproperty:county:DhVZEpSj5",
1101
+ "county": "West Lothian"
1102
+ },
1103
+ {
1104
+ "id": "urn:iamproperty:county:URWWHN7s0",
1105
+ "county": "Dorset"
1106
+ },
1107
+ {
1108
+ "id": "urn:iamproperty:county:jYK8wiDnY",
1109
+ "county": "Leicestershire"
1110
+ },
1111
+ {
1112
+ "id": "urn:iamproperty:county:048PGRA4X",
1113
+ "county": "Blaenau Gwent"
1114
+ },
1115
+ {
1116
+ "id": "urn:iamproperty:county:wrHCVsCva",
1117
+ "county": "Berkshire"
1118
+ },
1119
+ {
1120
+ "id": "urn:iamproperty:county:cCH4TjJ9q",
1121
+ "county": "Norfolk"
1122
+ },
1123
+ {
1124
+ "id": "urn:iamproperty:county:mvHEsdXhM",
1125
+ "county": "Suffolk"
1126
+ },
1127
+ {
1128
+ "id": "urn:iamproperty:county:faXBprr9q",
1129
+ "county": "East Ayrshire"
1130
+ },
1131
+ {
1132
+ "id": "urn:iamproperty:county:5wGBTbwou",
1133
+ "county": "Conwy"
1134
+ },
1135
+ {
1136
+ "id": "urn:iamproperty:county:5YXi0mQkk",
1137
+ "county": "Cheshire"
1138
+ },
1139
+ {
1140
+ "id": "urn:iamproperty:county:fuYiP18oc",
1141
+ "county": "Bridgend"
1142
+ },
1143
+ {
1144
+ "id": "urn:iamproperty:county:QaX0cXbOV",
1145
+ "county": "West Yorkshire"
1146
+ },
1147
+ {
1148
+ "id": "urn:iamproperty:county:Lo7JLx9og",
1149
+ "county": "South Gloucestershire"
1150
+ },
1151
+ {
1152
+ "id": "urn:iamproperty:county:B64E1f4T3",
1153
+ "county": "Merthyr Tydfil"
1154
+ },
1155
+ {
1156
+ "id": "urn:iamproperty:county:vacNt3Iie",
1157
+ "county": "Banffshire"
1158
+ },
1159
+ {
1160
+ "id": "urn:iamproperty:county:HSETldFbK",
1161
+ "county": "Staffordshire"
1162
+ },
1163
+ {
1164
+ "id": "urn:iamproperty:county:njUDNfLD3",
1165
+ "county": "Western Isles"
1166
+ },
1167
+ {
1168
+ "id": "urn:iamproperty:county:smlxqTdZE",
1169
+ "county": "Bath and North East Somerset"
1170
+ },
1171
+ {
1172
+ "id": "urn:iamproperty:county:2asBQ47Jh",
1173
+ "county": "South Yorkshire"
1174
+ },
1175
+ {
1176
+ "id": "urn:iamproperty:county:5hYXpCuJ7",
1177
+ "county": "Stirling"
1178
+ },
1179
+ {
1180
+ "id": "urn:iamproperty:county:lhFYBMSuq",
1181
+ "county": "Powys"
1182
+ },
1183
+ {
1184
+ "id": "urn:iamproperty:county:PamgW3ebq",
1185
+ "county": "Vale of Glamorgan"
1186
+ },
1187
+ {
1188
+ "id": "urn:iamproperty:county:zIasSsrlZ",
1189
+ "county": "Clackmannanshire"
1190
+ },
1191
+ {
1192
+ "id": "urn:iamproperty:county:WZUQNZxOy",
1193
+ "county": "Lancashire"
1194
+ },
1195
+ {
1196
+ "id": "urn:iamproperty:county:HoTgPpS58",
1197
+ "county": "Hertfordshire"
1198
+ },
1199
+ {
1200
+ "id": "urn:iamproperty:county:oNrluXBHA",
1201
+ "county": "Fife"
1202
+ },
1203
+ {
1204
+ "id": "urn:iamproperty:county:2OxE9CASK",
1205
+ "county": "Neath Port Talbot"
1206
+ },
1207
+ {
1208
+ "id": "urn:iamproperty:county:9J7YezLBA",
1209
+ "county": "Highland"
1210
+ },
1211
+ {
1212
+ "id": "urn:iamproperty:county:7IfpMh1Gx",
1213
+ "county": "Ceredigion"
1214
+ },
1215
+ {
1216
+ "id": "urn:iamproperty:county:ZwQ3mTTE2",
1217
+ "county": "Orkney Islands"
1218
+ },
1219
+ {
1220
+ "id": "urn:iamproperty:county:ZyNmV7NCn",
1221
+ "county": "North Yorkshire"
1222
+ },
1223
+ {
1224
+ "id": "urn:iamproperty:county:LwrVeERzu",
1225
+ "county": "Pembrokeshire"
1226
+ },
1227
+ {
1228
+ "id": "urn:iamproperty:county:porOuVsSM",
1229
+ "county": "Wrexham"
1230
+ },
1231
+ {
1232
+ "id": "urn:iamproperty:county:3o4Rx4sO8",
1233
+ "county": "Renfrewshire"
1234
+ },
1235
+ {
1236
+ "id": "urn:iamproperty:county:loLWjKyk8",
1237
+ "county": "Oxfordshire"
1238
+ },
1239
+ {
1240
+ "id": "urn:iamproperty:county:AN7Bz5tny",
1241
+ "county": "Moray"
1242
+ },
1243
+ {
1244
+ "id": "urn:iamproperty:county:RGzSdoQp3",
1245
+ "county": "Ayrshire"
1246
+ },
1247
+ {
1248
+ "id": "urn:iamproperty:county:nEBK48RIK",
1249
+ "county": "Caithness"
1250
+ },
1251
+ {
1252
+ "id": "urn:iamproperty:county:a90XABrjs",
1253
+ "county": "West Dunbartonshire"
1254
+ },
1255
+ {
1256
+ "id": "urn:iamproperty:county:Qjkb0wsyP",
1257
+ "county": "West Sussex"
1258
+ },
1259
+ {
1260
+ "id": "urn:iamproperty:county:fNJcfheKq",
1261
+ "county": "Cornwall"
1262
+ },
1263
+ {
1264
+ "id": "urn:iamproperty:county:lx0kEWvsb",
1265
+ "county": "Anglesey"
1266
+ },
1267
+ {
1268
+ "id": "urn:iamproperty:county:rkvgiBRHz",
1269
+ "county": "Caerphilly"
1270
+ },
1271
+ {
1272
+ "id": "urn:iamproperty:county:kx0t2zRVP",
1273
+ "county": "Tyne and Wear"
1274
+ },
1275
+ {
1276
+ "id": "urn:iamproperty:county:lVb75qnOW",
1277
+ "county": "Merseyside"
1278
+ },
1279
+ {
1280
+ "id": "urn:iamproperty:county:M7eZzrA8u",
1281
+ "county": "Wiltshire"
1282
+ },
1283
+ {
1284
+ "id": "urn:iamproperty:county:8Uo4sJw3x",
1285
+ "county": "Perth and Kinross"
1286
+ },
1287
+ {
1288
+ "id": "urn:iamproperty:county:73kc3w0cu",
1289
+ "county": "Dumfries & Galloway"
1290
+ },
1291
+ {
1292
+ "id": "urn:iamproperty:county:VFjExDeTO",
1293
+ "county": "Swansea"
1294
+ },
1295
+ {
1296
+ "id": "urn:iamproperty:county:lzsJuaRiS",
1297
+ "county": "Isles of Scilly"
1298
+ },
1299
+ {
1300
+ "id": "urn:iamproperty:county:abvvK0ZwH",
1301
+ "county": "Worcestershire"
1302
+ },
1303
+ {
1304
+ "id": "urn:iamproperty:county:1FKCbFkt2",
1305
+ "county": "Scottish Borders"
1306
+ },
1307
+ {
1308
+ "id": "urn:iamproperty:county:WKaOjrTLM",
1309
+ "county": "Essex"
1310
+ },
1311
+ {
1312
+ "id": "urn:iamproperty:county:0F00szlVA",
1313
+ "county": "South Ayrshire"
1314
+ },
1315
+ {
1316
+ "id": "urn:iamproperty:county:KDtAS0c8U",
1317
+ "county": "Inverclyde"
1318
+ },
1319
+ {
1320
+ "id": "urn:iamproperty:county:Md88sraTz",
1321
+ "county": "Shetland Islands"
1322
+ },
1323
+ {
1324
+ "id": "urn:iamproperty:county:LzzEE6zpp",
1325
+ "county": "Herefordshire"
1326
+ },
1327
+ {
1328
+ "id": "urn:iamproperty:county:lXaRRDNrq",
1329
+ "county": "Angus"
1330
+ },
1331
+ {
1332
+ "id": "urn:iamproperty:county:A5B4FFytC",
1333
+ "county": "Surrey"
1334
+ },
1335
+ {
1336
+ "id": "urn:iamproperty:county:B3siky9El",
1337
+ "county": "Kent"
1338
+ },
1339
+ {
1340
+ "id": "urn:iamproperty:county:V9njlL3kq",
1341
+ "county": "Northumberland"
1342
+ },
1343
+ {
1344
+ "id": "urn:iamproperty:county:WJiolIFFI",
1345
+ "county": "Flintshire"
1346
+ },
1347
+ {
1348
+ "id": "urn:iamproperty:county:4lXGX7NbU",
1349
+ "county": "Gwynedd"
1350
+ },
1351
+ {
1352
+ "id": "urn:iamproperty:county:7gzISbzTK",
1353
+ "county": "Lincolnshire"
1354
+ },
1355
+ {
1356
+ "id": "urn:iamproperty:county:D5GgqTxzN",
1357
+ "county": "East Dunbartonshire"
1358
+ },
1359
+ {
1360
+ "id": "urn:iamproperty:county:hhwXe4hTH",
1361
+ "county": "Somerset"
1362
+ },
1363
+ {
1364
+ "id": "urn:iamproperty:county:nECEnleYv",
1365
+ "county": "Midlothian"
1366
+ },
1367
+ {
1368
+ "id": "urn:iamproperty:county:2jksb8BIf",
1369
+ "county": "Cumbria"
1370
+ },
1371
+ {
1372
+ "id": "urn:iamproperty:county:ttfY8qr15",
1373
+ "county": "Bedfordshire"
1374
+ },
1375
+ {
1376
+ "id": "urn:iamproperty:county:YhQVg1amj",
1377
+ "county": "West Midlands"
1378
+ },
1379
+ {
1380
+ "id": "urn:iamproperty:county:EnbDIubYS",
1381
+ "county": "North Lanarkshire"
1382
+ },
1383
+ {
1384
+ "id": "urn:iamproperty:county:5SdVf3hnm",
1385
+ "county": "Kincardineshire"
1386
+ },
1387
+ {
1388
+ "id": "urn:iamproperty:county:BPedWUQXc",
1389
+ "county": "Dunbartonshire"
1390
+ },
1391
+ {
1392
+ "id": "urn:iamproperty:county:YLngqBWd4",
1393
+ "county": "Hampshire"
1394
+ },
1395
+ {
1396
+ "id": "urn:iamproperty:county:zBZHWiWon",
1397
+ "county": "Buckinghamshire"
1398
+ },
1399
+ {
1400
+ "id": "urn:iamproperty:county:kLes1W5ny",
1401
+ "county": "East Lothian"
1402
+ },
1403
+ {
1404
+ "id": "urn:iamproperty:county:yCMA4ANpN",
1405
+ "county": "Rutland"
1406
+ },
1407
+ {
1408
+ "id": "urn:iamproperty:county:jhourkJ4W",
1409
+ "county": "Torfaen"
1410
+ },
1411
+ {
1412
+ "id": "urn:iamproperty:county:aC8dF3IVE",
1413
+ "county": "Newport"
1414
+ },
1415
+ {
1416
+ "id": "urn:iamproperty:county:AnfqGRnhm",
1417
+ "county": "Argyll & Bute"
1418
+ },
1419
+ {
1420
+ "id": "urn:iamproperty:county:5BjmQe9mS",
1421
+ "county": "Gloucestershire"
1422
+ },
1423
+ {
1424
+ "id": "urn:iamproperty:county:G7WiUO5Sh",
1425
+ "county": "Cleveland"
1426
+ },
1427
+ {
1428
+ "id": "urn:iamproperty:county:zu7zHJPWh",
1429
+ "county": "Shropshire"
1430
+ },
1431
+ {
1432
+ "id": "urn:iamproperty:county:Bt301fwoy",
1433
+ "county": "Greater London"
1434
+ },
1435
+ {
1436
+ "id": "urn:iamproperty:county:LXHPqo5nj",
1437
+ "county": "City of Edinburgh"
1438
+ },
1439
+ {
1440
+ "id": "urn:iamproperty:county:YejLSQLAx",
1441
+ "county": "Aberdeen City"
1442
+ },
1443
+ {
1444
+ "id": "urn:iamproperty:county:o5lgD8dv7",
1445
+ "county": "Dundee City"
1446
+ },
1447
+ {
1448
+ "id": "urn:iamproperty:county:0HPMQtb09",
1449
+ "county": "Falkirk"
1450
+ },
1451
+ {
1452
+ "id": "urn:iamproperty:county:z1rPhQlGB",
1453
+ "county": "Glasgow City"
1454
+ },
1455
+ {
1456
+ "id": "urn:iamproperty:county:CskSiG5W0",
1457
+ "county": "Brecknockshire"
1458
+ },
1459
+ {
1460
+ "id": "urn:iamproperty:county:zulaN5fgu",
1461
+ "county": "Caernarfonshire"
1462
+ },
1463
+ {
1464
+ "id": "urn:iamproperty:county:D1YYNRchZ",
1465
+ "county": "Cardiganshire"
1466
+ },
1467
+ {
1468
+ "id": "urn:iamproperty:county:3DDFfQzoP",
1469
+ "county": "Clwyd"
1470
+ },
1471
+ {
1472
+ "id": "urn:iamproperty:county:hBr4CCduy",
1473
+ "county": "Dyfed"
1474
+ },
1475
+ {
1476
+ "id": "urn:iamproperty:county:7wcgGTpU9",
1477
+ "county": "Antrim"
1478
+ },
1479
+ {
1480
+ "id": "urn:iamproperty:county:PKM8DGZbI",
1481
+ "county": "Armagh"
1482
+ },
1483
+ {
1484
+ "id": "urn:iamproperty:county:LrvLXtQv4",
1485
+ "county": "Down"
1486
+ },
1487
+ {
1488
+ "id": "urn:iamproperty:county:HXDwhW1QG",
1489
+ "county": "Fermanagh"
1490
+ },
1491
+ {
1492
+ "id": "urn:iamproperty:county:eRHjMdT0e",
1493
+ "county": "Londonderry"
1494
+ },
1495
+ {
1496
+ "id": "urn:iamproperty:county:Xqs7aJsen",
1497
+ "county": "Tyrone"
1498
+ },
1499
+ {
1500
+ "id": "urn:iamproperty:county:rYAgcPlXZ",
1501
+ "county": "Middlesex"
1502
+ }
1503
+ ]
1504
+
1505
+ let countriesString = '';
1506
+
1507
+ countries.forEach((country) => {
1508
+ countriesString += `<option value="${country['id']}" data-value="${country['country_name']}">${country['country_name']}</option>`;
1509
+ });
1510
+
1511
+ let countiesString = '';
1512
+
1513
+ counties.forEach((county) => {
1514
+ countiesString += `<option value="${county['id']}" data-value="${county['county']}">${county['county']}</option>`;
1515
+ });
1516
+
1517
+
1518
+
1519
+ // Data layer Web component created
1520
+ declare global {
1521
+ interface Window {
1522
+ dataLayer: Array<object>;
1523
+ }
1524
+ }
1525
+ window.dataLayer = window.dataLayer || [];
1526
+ window.dataLayer.push({
1527
+ event: 'customElementRegistered',
1528
+ element: 'STD Address Lookup',
1529
+ });
1530
+
1531
+ class iamSTDAddressLookup extends HTMLElement {
1532
+ constructor() {
1533
+ super();
1534
+ /*
1535
+ this.attachShadow({ mode: 'open' });
1536
+
1537
+ const template = document.createElement('template');
1538
+ template.innerHTML = `
1539
+ <style>
1540
+
1541
+ </style>
1542
+ `;
1543
+ this.shadowRoot?.appendChild(template.content.cloneNode(true));
1544
+ */
1545
+ }
1546
+
1547
+ connectedCallback(): void {
1548
+
1549
+ if (!window.customElements.get(`iam-address-lookup`)) window.customElements.define(`iam-address-lookup`, iamAddressLookup);
1550
+
1551
+ const currentContent = this.innerHTML;
1552
+ this.innerHTML = `<iam-address-lookup
1553
+ class="${this.getAttribute('class')}"
1554
+ data-url="/standardaddress.json?search_query="
1555
+ data-postcode="true"
1556
+ data-min-chars="5"
1557
+ ${this.hasAttribute('data-manual') ? 'data-manual' : ''}
1558
+ ${this.hasAttribute('data-allow-manual') ? 'data-allow-manual' : ''}
1559
+ ${this.hasAttribute('data-use') ? `data-use='${this.getAttribute('data-use')}'` : ''}
1560
+ ${this.hasAttribute('data-use-label') ? `data-use-label='${this.getAttribute('data-use-label')}'` : ''}
1561
+ ${this.hasAttribute('data-postcode-value') ? `data-postcode-value='${this.getAttribute('data-postcode-value')}'` : ''}
1562
+ ${this.hasAttribute('data-list-class') ? `data-list-class='${this.getAttribute('data-list-class')}'` : ''}
1563
+ ${this.hasAttribute('data-input-class') ? `data-input-class='${this.getAttribute('data-input-class')}'` : ''}
1564
+ ${this.hasAttribute('data-error-msg') ? `data-error-msg='${this.getAttribute('data-error-msg')}'` : ''}
1565
+ ${this.hasAttribute('data-use-default') ? `data-use-default` : ''}
1566
+ ${this.hasAttribute('data-force-manual') ? `data-force-manual` : ''}
1567
+ data-postcode-lookup-label="Back to UK postcode lookup">
1568
+
1569
+ <p class="hint pb-2 d-block" slot="hint">Unsure of the postcode? Check with the <a href="https://www.royalmail.com/find-a-postcode" target="_blank"><i class="fa-regular fa-arrow-up-right-from-square"></i>Royal Mail address finder</a></p>
1570
+ <span class="h3 pb-2">Street address</span>
1571
+
1572
+ <fieldset class="atleastone mb-3">
1573
+ <span class="invalid-feedback">You must complete at least one of the highlighted fields.</span>
1574
+
1575
+ <span class="hint mb-4">Please ensure details are provided for at least one of these fields.</span>
1576
+
1577
+ <label class="mb-1">Flat number <input name="sub_building_name" type="text" data-readonly data-required /></label>
1578
+ <span class="hint mb-2">Flat, unit or floor number (e.g. Flat 5, or Floor 6)</span>
1579
+
1580
+ <label class="mb-1">Building name <input name="building_name" type="text" data-required maxlength="50"/></label>
1581
+ <span class="hint mb-2">Name of the house or building</span>
1582
+
1583
+ <label>House Number <input name="building_number" type="text" data-required data-readonly maxlength="50"/></label>
1584
+ <span class="hint mb-2">House or street number (e.g. 42)</span>
1585
+
1586
+ <label class="mb-1">Street 1 <input name="dependent_thoroughfare" type="text" data-readonly data-required maxlength="81"/></label>
1587
+ <span class="hint mb-2">Additional street name </span>
1588
+
1589
+ <label class="mb-1">Street 2 <input name="thoroughfare" type="text" data-readonly data-required maxlength="81"/></label>
1590
+ <span class="hint mb-2">Primary street name</span>
1591
+ </fieldset>
1592
+
1593
+
1594
+ <span class="h3 pb-2">Locality details</span>
1595
+ <label>Area${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name="dependent_locality" type="text" maxlength="35" data-readonly/></label>
1596
+ <label>Village${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name="locality" type="text" maxlength="35" data-readonly/></label>
1597
+ <label>Town / City${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name="post_town" type="text" maxlength="30" data-readonly/></label>
1598
+ <label>County${this.hasAttribute('data-show-required') && this.hasAttribute('data-county-required') ? '*' : (!this.hasAttribute('data-show-required') && !this.hasAttribute('data-county-required') ? ' (optional)' : '')}
1599
+ <select name="postal_county" ${this.hasAttribute('data-county-required') ? 'data-required' : ''} data-readonly>
1600
+ <option></option>
1601
+ ${countiesString}
1602
+ </select></label>
1603
+ <label>Postcode${this.hasAttribute('data-show-required') ? '*' : ''} <input name="postcode" type="text" data-required data-readonly maxlength="8" ${this.hasAttribute('data-required') ? ' required' : ''}/></label>
1604
+ <label>Country${this.hasAttribute('data-show-required') && this.hasAttribute('data-country-required') ? '*' : (!this.hasAttribute('data-show-required') && !this.hasAttribute('data-county-required') ? ' (optional)' : '')}
1605
+ <select name="region" data-readonly ${this.hasAttribute('data-country-required') ? 'data-required' : ''}>
1606
+ <option value=""></option>
1607
+ <option value="urn:iamproperty:region:qo7jMNaA4" data-value="England">England</option>
1608
+ <option value="urn:iamproperty:region:JPBkFjL6I" data-value="Scotland">Scotland</option>
1609
+ <option value="urn:iamproperty:region:3lqe2D3qO" data-value="Wales">Wales</option>
1610
+ <option value="urn:iamproperty:region:Tm5pOBfK9" data-value="Northern Ireland">Northern Ireland</option>
1611
+ <option value="urn:iamproperty:region:ZwIRAnNJo" data-value="Channel Islands">Channel Islands</option>
1612
+ <option value="urn:iamproperty:region:8CIOi1khw" data-value="Jersey">Jersey</option>
1613
+ <option value="urn:iamproperty:region:qHdx7tNtL" data-value="Guernsey">Guernsey</option>
1614
+ <option value="urn:iamproperty:region:DH6LU70lY" data-value="Isle of Man">Isle of Man</option>
1615
+ </select>
1616
+ </label>
1617
+
1618
+ ${this.hasAttribute('data-allow-overseas') ?
1619
+ `<fieldset class="overseas">
1620
+
1621
+ <span class="h3 pb-2">Street address</span>
1622
+
1623
+ <fieldset class="overseas-atleastone">
1624
+ <span class="invalid-feedback">You must complete at least one of the highlighted fields.</span>
1625
+
1626
+ <span class="hint mb-4">Please ensure details are provided for at least one of these fields.</span>
1627
+
1628
+
1629
+ <label class="mb-1">Flat number${this.hasAttribute('data-show-required') ? '*' : ''} <input name="overseas[sub_building_name]" type="text" data-overseas-required /></label>
1630
+ <span class="hint d-block mb-2">Flat, unit or floor number (e.g. Flat 5, or Floor 6)</span>
1631
+
1632
+ <label class="mb-1">Building name${this.hasAttribute('data-show-required') ? '*' : ''} <input name="overseas[building_name]" type="text" data-overseas-required maxlength="50" /></label>
1633
+ <span class="hint d-block mb-2">Name of the house or building</span>
1634
+
1635
+ <label class="mb-1">House number${this.hasAttribute('data-show-required') ? '*' : ''} <input name="overseas[building_number]" type="text" data-overseas-required maxlength="50" /></label>
1636
+ <span class="hint d-block mb-2">House or street number (e.g. 42)</span>
1637
+
1638
+ <label class="mb-2">Street name${this.hasAttribute('data-show-required') ? '*' : ''} <input name="overseas[thoroughfare]" type="text" data-overseas-required maxlength="81" /></label>
1639
+ </fieldset>
1640
+ <span class="h3 pb-2">Locality details</span>
1641
+
1642
+
1643
+
1644
+ <label class="mb-1">Locality${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name="overseas[dependent_locality]" type="text" /></label>
1645
+ <span class="hint d-block mb-2">Main locality, such as the village, suburb, or district</span>
1646
+
1647
+
1648
+ <label>Town / City${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name="overseas[post_town]" type="text" maxlength="30" /></label>
1649
+ <label>State / Province / Region${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name="overseas[double_dependent_locality]" type="text" /></label>
1650
+ <label>Postcode / ZIP code${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name="overseas[zip_code]" type="text" /></label>
1651
+
1652
+ <label>Country <select name="overseas[country_code]" data-overseas-required>
1653
+ <option value=""></option>
1654
+ ${countriesString}
1655
+ <option value="urn:als:country:ndjIqa72" data-value="Poland">Poland</option>
1656
+ </select></label>
1657
+ </fieldset>
1658
+
1659
+ <button slot="actions" type="button" id="overseasToggle" class="link toggleOverseas">Use overseas address</button>` : ''}
1660
+
1661
+ <div class="bg-light text-center px-3" slot="afterList">
1662
+ <p class="p-2">Can't find an address? Check details with the <br/><a href="" class="fa-new"><i class="fa-regular fa-arrow-up-right-from-square"></i>Royal mail address finder</a></p>
1663
+ ${this.hasAttribute('data-allow-overseas') ? `<hr/><p class="p-2">If the address doesn’t exist you can enter manually <br /><button type="button" id="overseasToggleInline" class="mt-1 mb-0 btn btn-action"><i class="fa-regular fa-edit me-1"></i>Enter address manually</button></p>` : ''}
1664
+ </div>
1665
+ <div class="bg-light text-center px-3" slot="beforeList">
1666
+ <p class="p-2"><span class="default">Welsh</span><span class="alt">English</span> language addresses are available <br /><button type="button" id="languageToggle" class="mt-1 mb-0 btn btn-action"><i class="fa-regular fa-globe me-1"></i>Show addresses in <span class="default">Welsh</span><span class="alt">English</span></button></p>
1667
+ </div>
1668
+ ${currentContent}
1669
+ </iam-address-lookup>`;
1670
+
1671
+ const addressComponent = this.querySelector('iam-address-lookup');
1672
+ const overseasToggle = this.querySelector('#overseasToggle');
1673
+ const overseasToggleInline = this.querySelector('#overseasToggleInline');
1674
+ const languageToggle = this.querySelector('#languageToggle');
1675
+ const atleastone = this.querySelector('.overseas-atleastone');
1676
+ const overseasFields = this.querySelector('.overseas');
1677
+
1678
+
1679
+ const openOverseas = () => {
1680
+ const updateEvent = new CustomEvent('open-manual');
1681
+ addressComponent.dispatchEvent(updateEvent);
1682
+ this.classList.add('show-overseas');
1683
+
1684
+ Array.from(addressComponent.querySelectorAll('[data-required]')).forEach((input) => {
1685
+ input.removeAttribute('required');
1686
+ });
1687
+ Array.from(overseasFields.querySelectorAll('[data-overseas-required]')).forEach((input) => {
1688
+ input.setAttribute('required', 'true');
1689
+ });
1690
+ }
1691
+
1692
+ overseasToggle?.addEventListener('click', () => {
1693
+
1694
+ if (!this.classList.contains('show-overseas')) {
1695
+ openOverseas();
1696
+ }
1697
+ });
1698
+
1699
+ overseasToggleInline?.addEventListener('click', () => {
1700
+
1701
+ if (!this.classList.contains('show-overseas')) {
1702
+ openOverseas();
1703
+ }
1704
+ });
1705
+
1706
+ addressComponent?.addEventListener('switch-to-lookup', () => {
1707
+ this.classList.remove('show-overseas');
1708
+
1709
+
1710
+ Array.from(overseasFields.querySelectorAll('[data-overseas-required]')).forEach((input) => {
1711
+ input.setAttribute('required', 'true');
1712
+ });
1713
+ });
1714
+
1715
+ languageToggle?.addEventListener('click', () => {
1716
+
1717
+ if (!addressComponent.classList.contains('show-welsh')) {
1718
+ addressComponent.classList.add('show-welsh');
1719
+ addressComponent?.setAttribute('data-url-2', '&welsh_language=true');
1720
+ }
1721
+ else {
1722
+ addressComponent.classList.remove('show-welsh');
1723
+ addressComponent?.setAttribute('data-url-2', '&welsh_language=false');
1724
+ }
1725
+
1726
+ const updateEvent = new CustomEvent('search');
1727
+ addressComponent.dispatchEvent(updateEvent);
1728
+
1729
+ languageToggle.focus();
1730
+ });
1731
+
1732
+
1733
+ atleastone?.addEventListener('input', (e) => {
1734
+
1735
+ Array.from(atleastone.querySelectorAll('[data-overseas-required]')).forEach((input) => {
1736
+ input.setAttribute('required', 'true');
1737
+ });
1738
+
1739
+
1740
+ if (atleastone.querySelector('input:valid, input.is-valid')) {
1741
+ Array.from(atleastone.querySelectorAll('input')).forEach(element => {
1742
+ element.removeAttribute('required');
1743
+ });
1744
+ }
1745
+ else {
1746
+ Array.from(atleastone.querySelectorAll('input')).forEach((input) => {
1747
+ input.setAttribute('required', 'true');
1748
+ });
1749
+ }
1750
+ });
1751
+
1752
+
1753
+
1754
+ }
1755
+ }
1756
+
1757
+ export default iamSTDAddressLookup;