@iamproperty/components 7.6.1 → 7.6.2

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 (347) 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/actionbar.global.css +1 -1
  4. package/assets/css/components/actionbar.global.css.map +1 -1
  5. package/assets/css/components/address-lookup.component.css +1 -1
  6. package/assets/css/components/address-lookup.component.css.map +1 -1
  7. package/assets/css/components/applied-filters.css +1 -1
  8. package/assets/css/components/applied-filters.css.map +1 -1
  9. package/assets/css/components/barchart.component.css +1 -1
  10. package/assets/css/components/barchart.component.css.map +1 -1
  11. package/assets/css/components/calendar.component.css +1 -1
  12. package/assets/css/components/calendar.component.css.map +1 -1
  13. package/assets/css/components/calendar.config.css +1 -1
  14. package/assets/css/components/calendar.config.css.map +1 -1
  15. package/assets/css/components/card.component.css +1 -1
  16. package/assets/css/components/card.component.css.map +1 -1
  17. package/assets/css/components/carousel.component.css +1 -1
  18. package/assets/css/components/carousel.component.css.map +1 -1
  19. package/assets/css/components/carousel.config.css.map +1 -1
  20. package/assets/css/components/charts.config.css +1 -1
  21. package/assets/css/components/charts.config.css.map +1 -1
  22. package/assets/css/components/charts.css +1 -1
  23. package/assets/css/components/charts.css.map +1 -1
  24. package/assets/css/components/charts.module.css +1 -1
  25. package/assets/css/components/charts.module.css.map +1 -1
  26. package/assets/css/components/collapsible-side.css +1 -1
  27. package/assets/css/components/collapsible-side.css.map +1 -1
  28. package/assets/css/components/content.component.css +1 -1
  29. package/assets/css/components/content.component.css.map +1 -1
  30. package/assets/css/components/darkmode.component.css +1 -1
  31. package/assets/css/components/darkmode.component.css.map +1 -1
  32. package/assets/css/components/doughnutchart.component.css +1 -1
  33. package/assets/css/components/doughnutchart.component.css.map +1 -1
  34. package/assets/css/components/fileupload.css +1 -1
  35. package/assets/css/components/fileupload.css.map +1 -1
  36. package/assets/css/components/header.css +1 -1
  37. package/assets/css/components/header.css.map +1 -1
  38. package/assets/css/components/inline-edit.css +1 -1
  39. package/assets/css/components/inline-edit.css.map +1 -1
  40. package/assets/css/components/inline-edit.preload.css.map +1 -1
  41. package/assets/css/components/input-range.component.css.map +1 -1
  42. package/assets/css/components/input.component.css +1 -1
  43. package/assets/css/components/input.component.css.map +1 -1
  44. package/assets/css/components/marketing.component.css +1 -1
  45. package/assets/css/components/marketing.component.css.map +1 -1
  46. package/assets/css/components/menu.global.css.map +1 -1
  47. package/assets/css/components/modal.component.css +1 -1
  48. package/assets/css/components/modal.component.css.map +1 -1
  49. package/assets/css/components/multi-step-modal.component.css +1 -1
  50. package/assets/css/components/multi-step-modal.component.css.map +1 -1
  51. package/assets/css/components/multi-step-modal.global.css.map +1 -1
  52. package/assets/css/components/multi-step.component.css.map +1 -1
  53. package/assets/css/components/multiselect.css +1 -1
  54. package/assets/css/components/multiselect.css.map +1 -1
  55. package/assets/css/components/multiselect.preload.css +1 -1
  56. package/assets/css/components/multiselect.preload.css.map +1 -1
  57. package/assets/css/components/nav.component.css +1 -1
  58. package/assets/css/components/nav.component.css.map +1 -1
  59. package/assets/css/components/nav.docs.css.map +1 -1
  60. package/assets/css/components/nav.global.css.map +1 -1
  61. package/assets/css/components/nav.preload.css.map +1 -1
  62. package/assets/css/components/notification.css +1 -1
  63. package/assets/css/components/notification.css.map +1 -1
  64. package/assets/css/components/pagination.css +1 -1
  65. package/assets/css/components/pagination.css.map +1 -1
  66. package/assets/css/components/password.component.css +1 -1
  67. package/assets/css/components/password.component.css.map +1 -1
  68. package/assets/css/components/popover.component.css +1 -1
  69. package/assets/css/components/popover.component.css.map +1 -1
  70. package/assets/css/components/property-searchbar.css +1 -1
  71. package/assets/css/components/property-searchbar.css.map +1 -1
  72. package/assets/css/components/rank.component.css +1 -1
  73. package/assets/css/components/rank.component.css.map +1 -1
  74. package/assets/css/components/rankings.component.css +1 -1
  75. package/assets/css/components/rankings.component.css.map +1 -1
  76. package/assets/css/components/rankings.global.css +1 -1
  77. package/assets/css/components/rankings.global.css.map +1 -1
  78. package/assets/css/components/slider.css +1 -1
  79. package/assets/css/components/slider.css.map +1 -1
  80. package/assets/css/components/snapshot.css.map +1 -1
  81. package/assets/css/components/split-button.component.css +1 -1
  82. package/assets/css/components/split-button.component.css.map +1 -1
  83. package/assets/css/components/stepper.css.map +1 -1
  84. package/assets/css/components/table-basic.component.css +1 -1
  85. package/assets/css/components/table-basic.component.css.map +1 -1
  86. package/assets/css/components/table-basic.global.css +1 -1
  87. package/assets/css/components/table-basic.global.css.map +1 -1
  88. package/assets/css/components/table.component.css +1 -1
  89. package/assets/css/components/table.component.css.map +1 -1
  90. package/assets/css/components/table.global.css +1 -1
  91. package/assets/css/components/table.global.css.map +1 -1
  92. package/assets/css/components/tabs.component.css +1 -1
  93. package/assets/css/components/tabs.component.css.map +1 -1
  94. package/assets/css/components/tabs.config.css +1 -1
  95. package/assets/css/components/tabs.config.css.map +1 -1
  96. package/assets/css/components/testimonial.css.map +1 -1
  97. package/assets/css/components/timeline.css +1 -1
  98. package/assets/css/components/timeline.css.map +1 -1
  99. package/assets/css/components/tooltip.component.css.map +1 -1
  100. package/assets/css/core.min.css +1 -1
  101. package/assets/css/core.min.css.map +1 -1
  102. package/assets/css/style.min.css +1 -1
  103. package/assets/css/style.min.css.map +1 -1
  104. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  105. package/assets/js/components/actionbar/actionbar.component.js +1 -1
  106. package/assets/js/components/actionbar/actionbar.component.min.js +7 -7
  107. package/assets/js/components/actionbar/actionbar.component.min.js.map +1 -1
  108. package/assets/js/components/address-lookup/address-lookup.component.js +18 -2
  109. package/assets/js/components/address-lookup/address-lookup.component.min.js +5 -5
  110. package/assets/js/components/address-lookup/address-lookup.component.min.js.map +1 -1
  111. package/assets/js/components/advanced-select/advanced-select.component.min.js +1 -1
  112. package/assets/js/components/applied-filters/applied-filters.component.min.js +2 -2
  113. package/assets/js/components/barchart/barchart.component.min.js +6 -6
  114. package/assets/js/components/barchart/barchart.component.min.js.map +1 -1
  115. package/assets/js/components/bento-grid/bento-grid.component.min.js +1 -1
  116. package/assets/js/components/calendar/calendar.component.min.js +5 -5
  117. package/assets/js/components/card/card.component.min.js +5 -5
  118. package/assets/js/components/card/card.component.min.js.map +1 -1
  119. package/assets/js/components/carousel/carousel.component.min.js +2 -2
  120. package/assets/js/components/collapsible-side/collapsible-side.component.min.js +4 -4
  121. package/assets/js/components/content/content.component.min.js +2 -2
  122. package/assets/js/components/darkmode/darkmode.component.min.js +4 -4
  123. package/assets/js/components/doughnutchart/doughnutchart.component.min.js +7 -7
  124. package/assets/js/components/doughnutchart/doughnutchart.component.min.js.map +1 -1
  125. package/assets/js/components/fileupload/fileupload.component.min.js +4 -4
  126. package/assets/js/components/filter-card/filter-card.component.min.js +1 -1
  127. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  128. package/assets/js/components/header/header.component.min.js +4 -4
  129. package/assets/js/components/inline-edit/inline-edit.component.min.js +3 -3
  130. package/assets/js/components/input/input.component.min.js +2 -2
  131. package/assets/js/components/input-range/input-range.component.min.js +1 -1
  132. package/assets/js/components/marketing/marketing.component.min.js +2 -2
  133. package/assets/js/components/menu/menu.component.min.js +1 -1
  134. package/assets/js/components/milestone/milestone.component.min.js +1 -1
  135. package/assets/js/components/milestone-group/milestone-group.component.min.js +1 -1
  136. package/assets/js/components/modal/modal.component.min.js +2 -2
  137. package/assets/js/components/multi-step/multi-step.component.min.js +1 -1
  138. package/assets/js/components/multi-step-modal/multi-step-modal.component.min.js +2 -2
  139. package/assets/js/components/multiselect/multiselect.component.min.js +4 -4
  140. package/assets/js/components/nav/nav.component.min.js +2 -2
  141. package/assets/js/components/notification/notification.component.min.js +2 -2
  142. package/assets/js/components/pagination/pagination.component.min.js +5 -5
  143. package/assets/js/components/password/password.component.min.js +5 -5
  144. package/assets/js/components/popover/popover.component.min.js +2 -2
  145. package/assets/js/components/rank/rank.component.min.js +1 -1
  146. package/assets/js/components/rankings/rankings.component.min.js +7 -7
  147. package/assets/js/components/record-card/record-card.component.min.js +1 -1
  148. package/assets/js/components/search/search.component.min.js +1 -1
  149. package/assets/js/components/slider/slider.component.min.js +2 -2
  150. package/assets/js/components/split-button/split-button.component.min.js +2 -2
  151. package/assets/js/components/std-address-lookup/std-address-lookup.component.js +1 -1
  152. package/assets/js/components/std-address-lookup/std-address-lookup.component.min.js +7 -7
  153. package/assets/js/components/std-address-lookup/std-address-lookup.component.min.js.map +1 -1
  154. package/assets/js/components/table/table.component.min.js +6 -6
  155. package/assets/js/components/table-ajax/table-ajax.component.min.js +6 -6
  156. package/assets/js/components/table-basic/table-basic.component.min.js +3 -3
  157. package/assets/js/components/table-no-submit/table-no-submit.component.min.js +6 -6
  158. package/assets/js/components/table-submit/table-submit.component.min.js +6 -6
  159. package/assets/js/components/tabs/tabs.component.min.js +4 -4
  160. package/assets/js/components/tooltip/tooltip.component.min.js +1 -1
  161. package/assets/js/components/video-card/video-card.component.min.js +1 -1
  162. package/assets/js/components/word-count/word-count.component.min.js +1 -1
  163. package/assets/js/modules/chart.module.js +1 -1
  164. package/assets/js/scripts.bundle.js +1 -1
  165. package/assets/js/scripts.bundle.min.js +1 -1
  166. package/assets/sass/_bs_grid.scss +6 -4
  167. package/assets/sass/_bs_utilities.scss +51 -0
  168. package/assets/sass/_components.scss +16 -53
  169. package/assets/sass/_corefiles.scss +10 -40
  170. package/assets/sass/_elements.scss +25 -118
  171. package/assets/sass/_fonts.scss +3 -3
  172. package/assets/sass/_func.scss +0 -8
  173. package/assets/sass/_functions/bs_functions.scss +487 -0
  174. package/assets/sass/_functions/bs_mixins.scss +2103 -0
  175. package/assets/sass/_functions/bs_utilities.scss +1 -1
  176. package/assets/sass/_functions/{variables_old.scss → bs_variables.scss} +11 -9
  177. package/assets/sass/_functions/functions.scss +9 -449
  178. package/assets/sass/_functions/mixins.scss +1 -643
  179. package/assets/sass/_functions/utility-mixins.scss +1 -1523
  180. package/assets/sass/_functions/variables.scss +1 -729
  181. package/assets/sass/_grid.scss +51 -39
  182. package/assets/sass/_utilities.scss +28 -50
  183. package/assets/sass/components/actionbar.component.scss +33 -33
  184. package/assets/sass/components/actionbar.global.scss +6 -6
  185. package/assets/sass/components/address-lookup.component.scss +4 -9
  186. package/assets/sass/components/address-lookup.preload.scss +3 -3
  187. package/assets/sass/components/barchart.component.scss +14 -14
  188. package/assets/sass/components/calendar.component.scss +20 -20
  189. package/assets/sass/components/calendar.config.scss +19 -19
  190. package/assets/sass/components/card.component.scss +8 -10
  191. package/assets/sass/components/card.module.scss +9 -9
  192. package/assets/sass/components/carousel.component.scss +15 -15
  193. package/assets/sass/components/carousel.config.scss +5 -5
  194. package/assets/sass/components/charts.config.scss +6 -6
  195. package/assets/sass/components/charts.module.scss +16 -69
  196. package/assets/sass/components/charts.scss +8 -8
  197. package/assets/sass/components/collapsible-side.scss +42 -42
  198. package/assets/sass/components/darkmode.component.scss +2 -4
  199. package/assets/sass/components/doughnutchart.component.scss +4 -4
  200. package/assets/sass/components/fileupload.scss +23 -24
  201. package/assets/sass/components/filter-card.component.scss +9 -9
  202. package/assets/sass/components/header.scss +4 -4
  203. package/assets/sass/components/inline-edit.preload.scss +5 -5
  204. package/assets/sass/components/inline-edit.scss +1 -1
  205. package/assets/sass/components/input-range.component.scss +2 -2
  206. package/assets/sass/components/input.component.scss +2 -3
  207. package/assets/sass/components/marketing.component.scss +1 -1
  208. package/assets/sass/components/menu.component.scss +6 -6
  209. package/assets/sass/components/menu.global.scss +6 -6
  210. package/assets/sass/components/modal.component.scss +9 -9
  211. package/assets/sass/components/multi-step-modal.component.scss +14 -14
  212. package/assets/sass/components/multi-step-modal.global.scss +2 -2
  213. package/assets/sass/components/multi-step.component.scss +10 -10
  214. package/assets/sass/components/multiselect.preload.scss +5 -5
  215. package/assets/sass/components/multiselect.scss +11 -16
  216. package/assets/sass/components/nav.component.scss +55 -55
  217. package/assets/sass/components/nav.docs.scss +2 -2
  218. package/assets/sass/components/nav.global.scss +30 -30
  219. package/assets/sass/components/nav.preload.scss +8 -8
  220. package/assets/sass/components/notification.scss +14 -14
  221. package/assets/sass/components/pagination.scss +15 -15
  222. package/assets/sass/components/password.component.scss +6 -10
  223. package/assets/sass/components/popover.component.scss +5 -5
  224. package/assets/sass/components/property-searchbar.scss +9 -9
  225. package/assets/sass/components/rank.component.scss +3 -3
  226. package/assets/sass/components/rankings.component.scss +2 -2
  227. package/assets/sass/components/rankings.global.scss +7 -7
  228. package/assets/sass/components/record-card.component.scss +4 -4
  229. package/assets/sass/components/slider.scss +3 -3
  230. package/assets/sass/components/snapshot.scss +2 -2
  231. package/assets/sass/components/stepper.scss +7 -7
  232. package/assets/sass/components/table-basic.component.scss +4 -4
  233. package/assets/sass/components/table-basic.global.scss +11 -11
  234. package/assets/sass/components/table.component.scss +1 -1
  235. package/assets/sass/components/table.global.scss +7 -14
  236. package/assets/sass/components/tabs.config.scss +10 -10
  237. package/assets/sass/components/testimonial.scss +7 -7
  238. package/assets/sass/components/timeline.scss +2 -2
  239. package/assets/sass/components/tooltip.component.scss +3 -3
  240. package/assets/sass/core.scss +1 -13
  241. package/assets/sass/elements/admin-panel.scss +20 -20
  242. package/assets/sass/elements/badge-tag.scss +9 -9
  243. package/assets/sass/elements/brand.css +80 -0
  244. package/assets/sass/elements/buttons--action.scss +8 -8
  245. package/assets/sass/elements/buttons--compact.scss +12 -12
  246. package/assets/sass/elements/buttons--global.scss +31 -33
  247. package/assets/sass/elements/buttons--secondary.scss +4 -4
  248. package/assets/sass/elements/buttons--special.scss +3 -3
  249. package/assets/sass/elements/buttons--tertiary.scss +7 -7
  250. package/assets/sass/elements/buttons.scss +9 -33
  251. package/assets/sass/elements/code.css +46 -0
  252. package/assets/sass/elements/container.scss +14 -63
  253. package/assets/sass/elements/details.scss +35 -35
  254. package/assets/sass/elements/dialog.scss +7 -7
  255. package/assets/sass/elements/feature.scss +4 -4
  256. package/assets/sass/elements/forms.scss +121 -89
  257. package/assets/sass/elements/{hr.scss → hr.css} +1 -10
  258. package/assets/sass/elements/{icons.scss → icons.css} +6 -12
  259. package/assets/sass/elements/input.scss +58 -8
  260. package/assets/sass/elements/links.scss +27 -26
  261. package/assets/sass/elements/lists--breadcrumbs.scss +26 -0
  262. package/assets/sass/elements/lists--steps.css +171 -0
  263. package/assets/sass/elements/lists--tick-list.scss +81 -0
  264. package/assets/sass/elements/lists.scss +19 -310
  265. package/assets/sass/elements/media.css +20 -0
  266. package/assets/sass/elements/modal.scss +23 -23
  267. package/assets/sass/elements/popover.scss +13 -13
  268. package/assets/sass/elements/prefix.scss +9 -9
  269. package/assets/sass/elements/progress.scss +24 -24
  270. package/assets/sass/elements/table.element.scss +19 -19
  271. package/assets/sass/elements/toggle-button.scss +4 -4
  272. package/assets/sass/elements/tooltips.scss +41 -49
  273. package/assets/sass/elements/type.css +158 -0
  274. package/assets/sass/email.scss +7 -6
  275. package/assets/sass/error.scss +7 -14
  276. package/assets/sass/foundations/colours.scss +91 -0
  277. package/assets/sass/foundations/reboot.scss +16 -64
  278. package/assets/sass/foundations/root.scss +150 -138
  279. package/assets/sass/main.scss +3 -13
  280. package/assets/sass/templates/auth.scss +14 -14
  281. package/assets/sass/templates/form.scss +10 -12
  282. package/assets/sass/utilities/align.scss +25 -0
  283. package/assets/sass/utilities/border.scss +81 -0
  284. package/assets/sass/utilities/clearfix.scss +9 -0
  285. package/assets/sass/utilities/colours.scss +43 -0
  286. package/assets/sass/utilities/display.scss +90 -0
  287. package/assets/sass/utilities/fixed.scss +17 -0
  288. package/assets/sass/utilities/flex.scss +150 -0
  289. package/assets/sass/utilities/gap.scss +8 -0
  290. package/assets/sass/utilities/gradients.scss +40 -0
  291. package/assets/sass/utilities/js-display.scss +13 -0
  292. package/assets/sass/utilities/line-clamp.scss +25 -0
  293. package/assets/sass/utilities/margins.scss +75 -0
  294. package/assets/sass/utilities/max-height.scss +94 -0
  295. package/assets/sass/utilities/opacity.scss +21 -0
  296. package/assets/sass/utilities/order.scss +43 -0
  297. package/assets/sass/utilities/overflow.scss +17 -0
  298. package/assets/sass/utilities/paddings.scss +34 -0
  299. package/assets/sass/utilities/pointer-events.scss +9 -0
  300. package/assets/sass/utilities/position.scss +90 -0
  301. package/assets/sass/utilities/ratio.scss +33 -0
  302. package/assets/sass/utilities/rounded.scss +57 -0
  303. package/assets/sass/utilities/sizes.scss +89 -0
  304. package/assets/sass/utilities/sticky.scss +39 -0
  305. package/assets/sass/utilities/text-truncate.scss +7 -0
  306. package/assets/sass/utilities/text.scss +122 -0
  307. package/assets/sass/utilities/visible.scss +9 -0
  308. package/assets/sass/utilities/visually-hidden.scss +14 -0
  309. package/assets/sass/utilities/wider-colours.scss +10 -0
  310. package/assets/ts/components/actionbar/actionbar.component.ts +1 -1
  311. package/assets/ts/components/address-lookup/address-lookup.component.ts +24 -3
  312. package/assets/ts/components/darkmode/darkmode.component.ts +2 -2
  313. package/assets/ts/components/input/input.component.ts +3 -3
  314. package/assets/ts/components/modal/modal.component.ts +2 -2
  315. package/assets/ts/components/multi-step-modal/multi-step-modal.component.ts +2 -2
  316. package/assets/ts/components/multiselect/multiselect.component.ts +1 -1
  317. package/assets/ts/components/std-address-lookup/std-address-lookup.component.ts +2 -3
  318. package/assets/ts/modules/advanced-select.ts +1 -1
  319. package/assets/ts/modules/applied-filters.ts +2 -2
  320. package/assets/ts/modules/chart.module.ts +1 -1
  321. package/dist/components.es.js +28 -28
  322. package/dist/components.umd.js +178 -178
  323. package/package.json +7 -7
  324. package/src/components/Snapshot/Snapshot.vue +1 -1
  325. package/assets/css/mobile-core.min.css +0 -1
  326. package/assets/css/mobile-core.min.css.map +0 -1
  327. package/assets/css/mobile.min.css +0 -1
  328. package/assets/css/mobile.min.css.map +0 -1
  329. package/assets/sass/_example.scss +0 -61
  330. package/assets/sass/_tests/colours.spec.js +0 -9
  331. package/assets/sass/_tests/colours.spec.scss +0 -32
  332. package/assets/sass/_tests/func.spec.js +0 -9
  333. package/assets/sass/_tests/func.spec.scss +0 -196
  334. package/assets/sass/_tests/mixins.spec.js +0 -9
  335. package/assets/sass/_tests/mixins.spec.scss +0 -113
  336. package/assets/sass/_tests/typography.spec.js +0 -9
  337. package/assets/sass/_tests/typography.spec.scss +0 -35
  338. package/assets/sass/_utility-mixins.scss +0 -38
  339. package/assets/sass/elements/brand.scss +0 -83
  340. package/assets/sass/elements/media.scss +0 -26
  341. package/assets/sass/elements/type.scss +0 -174
  342. package/assets/sass/helpers/dynamic.scss +0 -15
  343. package/assets/sass/helpers/line-clamp.scss +0 -0
  344. package/assets/sass/helpers/max-height.scss +0 -86
  345. package/assets/sass/helpers/wider-colours.scss +0 -8
  346. package/assets/sass/mobile-core.scss +0 -14
  347. package/assets/sass/mobile.scss +0 -16
@@ -1 +1 @@
1
- {"version":3,"file":"std-address-lookup.component.min.js","sources":["../../modules/advanced-select.js","../../modules/helpers.js","../address-lookup/address-lookup.component.js","std-address-lookup.component.js"],"sourcesContent":["function advancedSelect(advancedSelect, displayInputField, datalist, isSearch = false) {\n let currentFocus = -1;\n const datalistWrapper = datalist.closest('.datalist__wrapper') ? datalist.closest('.datalist__wrapper') : datalist;\n // Hide the default datalist\n displayInputField.setAttribute('data-list', displayInputField.getAttribute('list'));\n displayInputField.setAttribute('list', '');\n if (displayInputField.hasAttribute('placeholder'))\n displayInputField.setAttribute('data-placeholder', displayInputField.getAttribute('placeholder'));\n if (displayInputField.hasAttribute('placeholder'))\n displayInputField.setAttribute('data-original-placeholder', displayInputField.getAttribute('placeholder'));\n displayInputField.addEventListener('focus', function () {\n if (displayInputField.value != \"\") {\n displayInputField.setAttribute('placeholder', displayInputField.value);\n displayInputField.setAttribute('data-value', displayInputField.value);\n }\n displayInputField.value = '';\n });\n displayInputField.addEventListener('keyup', function () {\n if (displayInputField.value != \"\") {\n displayInputField.setAttribute('data-value', displayInputField.value);\n }\n });\n displayInputField.addEventListener('blur', function () {\n if (displayInputField.hasAttribute('data-value')) {\n displayInputField.value = displayInputField.getAttribute('data-value');\n }\n if (displayInputField.hasAttribute('data-placeholder'))\n displayInputField.setAttribute('placeholder', displayInputField.getAttribute('data-placeholder'));\n });\n for (const option of datalist.options) {\n if (option.innerHTML == '')\n option.innerHTML = option.value;\n }\n datalist.addEventListener('click', function (event) {\n if (event && event.target instanceof HTMLElement && event.target.closest('option')) {\n const option = event.target.closest('option');\n displayInputField.value = option.value;\n if (typeof window.triggerDynamicEvent == 'function')\n window.triggerDynamicEvent(displayInputField);\n for (const optionInner of datalist.options) {\n optionInner.classList.remove('active');\n }\n option.classList.add('active');\n }\n });\n displayInputField.addEventListener('input', function () {\n displayInputField.removeAttribute('data-value');\n currentFocus = -1;\n const text = displayInputField.value.toUpperCase();\n for (const option of datalist.options) {\n if (option.value.toUpperCase().indexOf(text) > -1) {\n option.style.display = 'block';\n option.classList.remove('hide');\n }\n else {\n option.style.display = 'none';\n option.classList.add('hide');\n }\n }\n });\n advancedSelect.addEventListener('keydown', function (e) {\n if (e.keyCode == 40) {\n currentFocus++;\n addActive(datalist.options);\n }\n else if (e.keyCode == 38) {\n currentFocus--;\n addActive(datalist.options);\n }\n else if (e.keyCode == 13) {\n e.preventDefault();\n if (currentFocus > -1) {\n /*and simulate a click on the \"active\" item:*/\n if (datalist.options)\n datalist.options[currentFocus].click();\n }\n }\n });\n function addActive(x) {\n if (!x)\n return false;\n removeActive(x);\n if (currentFocus >= x.length)\n currentFocus = 0;\n if (currentFocus < 0)\n currentFocus = x.length - 1;\n x[currentFocus].classList.add('active');\n }\n function removeActive(x) {\n if (!x)\n return false;\n for (let i = 0; i < x.length; i++) {\n x[i].classList.remove('active');\n }\n }\n // Add the empty button\n displayInputField\n .closest('label')\n .insertAdjacentHTML('beforeend', '<button class=\"empty btn btn-action\" type=\"button\"><i class=\"fa-light fa-times me-0\"></i></button>');\n const emptyField = () => {\n displayInputField.removeAttribute('placeholder');\n if (displayInputField.hasAttribute('data-original-placeholder'))\n displayInputField.setAttribute('placeholder', displayInputField.getAttribute('data-original-placeholder'));\n displayInputField.removeAttribute('data-value');\n displayInputField.value = '';\n for (const optionInner of datalist.options) {\n optionInner.classList.remove('active');\n optionInner.removeAttribute('style');\n }\n const updateEvent = new CustomEvent('close-button-pressed');\n advancedSelect.dispatchEvent(updateEvent);\n };\n const closeBtn = advancedSelect.querySelector('.empty') ? advancedSelect.querySelector('.empty') : advancedSelect.shadowRoot.querySelector('.empty');\n closeBtn.addEventListener('click', function (e) {\n emptyField();\n });\n advancedSelect.addEventListener('empty', function (e) {\n emptyField();\n });\n}\nexport default advancedSelect;\n","/**\n * Global helper functions to help maintain and enhance framework elements.\n * @module Helpers\n */\n/**\n * Add global classes used by the CSS and later JavaScript.\n * @param {HTMLElement} body Dom element, this doesn't have to be the body but it is recommended.\n */\nexport const addBodyClasses = (body) => {\n body.classList.add('js-enabled');\n if (navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0) {\n body.classList.add('ie');\n }\n};\n/**\n * Add global events.\n * @param {HTMLElement} body Dom element, this doesn't have to be the body but it is recommended.\n */\nexport const addGlobalEvents = (body) => {\n const checkElements = function (hash) {\n const label = document.querySelector(`label[for=\"${hash.replace('#', '')}\"]`);\n const summary = document.querySelector(hash + ' summary');\n const dialog = document.querySelector(`dialog${hash}`);\n const detail = document.querySelector(`detail${hash}`);\n if (label instanceof HTMLElement)\n label.click();\n else if (summary instanceof HTMLElement)\n summary.click();\n else if (dialog instanceof HTMLElement)\n dialog.showModal();\n else if (detail instanceof HTMLElement)\n detail.addAttribute('open');\n };\n if (location.hash)\n checkElements(location.hash);\n window.addEventListener('hashchange', function () {\n checkElements(location.hash);\n }, false);\n addEventListener('popstate', (event) => {\n if (event && event.state && event.state.type && event.state.type == 'pagination') {\n const form = document.querySelector(`#${event.state.form}`);\n const pageInput = document.querySelector(`#${event.state.form} [data-pagination]`);\n if (pageInput)\n pageInput.value = event.state.page;\n else\n form.innerHTML += `<input name=\"page\" type=\"hidden\" data-pagination=\"true\" value=\"${event.state.page}\" />`;\n form.dispatchEvent(new Event('submit'));\n }\n });\n Array.from(document.querySelectorAll('form')).forEach((form) => {\n form.addEventListener('submit', (event) => {\n var _a;\n if (form.querySelector(':invalid')) {\n form.classList.add('was-validated');\n (_a = form === null || form === void 0 ? void 0 : form.querySelector('input:invalid')) === null || _a === void 0 ? void 0 : _a.scrollIntoView();\n event.preventDefault();\n }\n });\n });\n document.addEventListener('click', (event) => {\n var _a;\n if (event && event.target instanceof HTMLElement && event.target.matches('form button:not([type=button])')) {\n const form = event.target.closest('form');\n // Reset password types\n Array.from(form.querySelectorAll('[data-password-type]')).forEach((input) => {\n input.setAttribute('type', 'password');\n });\n if (form.querySelector(':invalid') ||\n form.querySelector('.pwd-checker[data-strength=\"1\"]') ||\n form.querySelector('.pwd-checker[data-strength=\"2\"]')) {\n form.classList.add('was-validated');\n (_a = form === null || form === void 0 ? void 0 : form.querySelector('input:invalid')) === null || _a === void 0 ? void 0 : _a.scrollIntoView();\n event.preventDefault();\n }\n if (form.querySelector('iam-multiselect[data-is-required][data-error]')) {\n form.classList.add('was-validated');\n event.preventDefault();\n }\n }\n });\n document.addEventListener('keydown', (e) => {\n if (e.key === 'Escape') {\n if (document.querySelector('.dialog--transactional[open], .dialog--acknowledgement[open]')) {\n e.preventDefault();\n e.stopPropagation();\n }\n }\n });\n Array.from(document.querySelectorAll('label progress')).forEach((progress) => {\n const label = progress.closest('label');\n label.setAttribute('data-percent', progress.getAttribute('value'));\n });\n};\nexport const isNumeric = function (str) {\n if (typeof str != 'string')\n return false; // we only process strings!\n return (!isNaN(str) && // use type coercion to parse the _entirety_ of the string (`parseFloat` alone does not do this)...\n !isNaN(parseFloat(str))); // ...and ensure strings of whitespace fail\n};\nexport const zeroPad = (num, places) => String(num).padStart(places, '0');\nexport const ucfirst = (str) => str.charAt(0).toUpperCase() + str.slice(1);\nexport const ucwords = (str) => str\n .split(' ')\n .map((s) => ucfirst(s))\n .join(' ');\nexport const unsnake = (str) => str.replace(/_/g, ' ');\nexport const snake = (str) => str.replace(/ /g, '_');\nexport const safeID = function (str) {\n str = str.toLowerCase();\n str = snake(str);\n str = str.replace(/\\W/g, '');\n return str;\n};\nexport const numberOfDays = function (startDateString, endDateString) {\n const convertStart = startDateString.split('/');\n const convertEnd = endDateString.split('/');\n const dateStart = new Date(convertStart[1] + '/' + convertStart[0] + '/' + convertStart[2]);\n const dateEnd = new Date(convertEnd[1] + '/' + convertEnd[0] + '/' + convertEnd[2]);\n if (dateStart == 'Invalid Date')\n throw 'Start date is not a valid date';\n if (dateEnd == 'Invalid Date')\n throw 'End date is not a valid date';\n // To calculate the time difference of two dates\n const diffTime = dateEnd.getTime() - dateStart.getTime();\n const numberOfDays = diffTime / (1000 * 3600 * 24) + 1;\n if (numberOfDays < 0)\n throw 'The start date should be before the end date';\n return numberOfDays;\n};\n// Used to get values from nested json objects\nexport const resolvePath = (object, path, defaultValue) => path\n // eslint-disable-next-line no-useless-escape\n .split(/[\\.\\[\\]\\'\\\"]/)\n .filter((p) => p)\n .reduce((o, p) => (o ? o[p] : defaultValue), object);\nexport const isTraversable = (o) => Array.isArray(o) || (o !== null && ['function', 'object'].includes(typeof o));\nexport const getSwipeDirection = (touchstartX, touchstartY, touchendX, touchendY) => {\n const limit = Math.tan(((45 * 1.5) / 180) * Math.PI);\n const pageWidth = window.innerWidth || document.body.clientWidth;\n const treshold = Math.max(1, Math.floor(0.01 * pageWidth));\n const x = touchendX - touchstartX;\n const y = touchendY - touchstartY;\n const xy = Math.abs(x / y);\n const yx = Math.abs(y / x);\n if (Math.abs(x) > treshold || Math.abs(y) > treshold) {\n if (yx <= limit) {\n if (x < 0) {\n return 'left';\n }\n else {\n return 'right';\n }\n }\n if (xy <= limit) {\n if (y < 0) {\n return 'top';\n }\n else {\n return 'bottom';\n }\n }\n }\n else {\n return 'tap';\n }\n};\nexport const uniqueID = (index = 1) => {\n const ID = Math.floor(Math.random() * Date.now() * (index + 1));\n return ID;\n};\nexport const isValidPostcode = (searchValue) => {\n const regexp = /^([A-Z][A-HJ-Y]?[0-9][A-Z0-9]? ?[0-9][A-Z]{2}|GIR ?0A{2})$/gmi;\n return regexp.test(searchValue.trim());\n};\n","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport Cookies from 'js-cookie';\nimport advancedSelect from '../../modules/advanced-select.js';\nimport { isValidPostcode } from '../../modules/helpers.js';\nwindow.dataLayer = window.dataLayer || [];\nwindow.dataLayer.push({\n event: 'customElementRegistered',\n element: 'Address Lookup',\n});\nclass iamAddressLookup extends HTMLElement {\n constructor() {\n var _a;\n super();\n this.attachShadow({ mode: 'open' });\n const assetLocation = document.body.hasAttribute('data-assets-location')\n ? document.body.getAttribute('data-assets-location')\n : '/assets';\n const loadCSS = `@import \"${assetLocation}/css/components/address-lookup.component.css\";`;\n const template = document.createElement('template');\n template.innerHTML = `\n <style>\n ${loadCSS}\n \n </style>\n <link rel=\"stylesheet\" href=\"https://kit.fontawesome.com/26fdbf0179.css\" crossorigin=\"anonymous\" />\n <div class=\"wrapper\">\n\n <div class=\"matched d-none\">\n <div class=\"inner\">\n <p><span class=\"matched-address\"></span></p>\n <button class=\"link use-matched\">Yes, use this address</button>\n <button class=\"link use-entered\">No, use the address I entered</button>\n </div>\n <span class=\"invalid-feedback\">We found a matching address based on the details you entered. Is this address correct?</span>\n </div>\n <div class=\"postcode-lookup was-validated\">\n <div>\n <label class=\"mb-1\"><span class=\"title text-lowercase\"></span>\n <span>\n <input type=\"text\" name=\"postcode\" class=\"${this.hasAttribute('data-input-class') ? this.getAttribute('data-input-class') : ''}\" list=\"address-lookup__addressess\" autocomplete=\"one-time-code\" aria-autocomplete=\"none\" placeholder=\"${(this === null || this === void 0 ? void 0 : this.hasAttribute('data-placeholder')) ? this === null || this === void 0 ? void 0 : this.getAttribute('data-placeholder') : 'Postcode'}\" value=\"${this.hasAttribute('data-postcode-value') ? this.getAttribute('data-postcode-value') : ''}\" part=\"input\" />\n <button id=\"postcode__submit\" class=\"suffix fa-regular fa-search\" part=\"suffix\"></button>\n </span>\n </label>\n \n <span class=\"invalid-feedback mb-2\">${this.hasAttribute('data-error-msg') ? this.getAttribute('data-error-msg') : 'Required address fields'}</span>\n\n <div class=\"datalist__wrapper ${this.hasAttribute('data-list-class') ? this.getAttribute('data-list-class') : ''}\" tabindex=\"0\" part=\"list-wrapper\">\n <slot name=\"beforeList\"></slot>\n <slot name=\"preloadedList\"></slot>\n <datalist id=\"address-lookup__addressess\" class=\"\"></datalist>\n <div id=\"paginationWrapper\"></div>\n <slot name=\"afterList\"></slot>\n </div>\n </div>\n <slot name=\"hint\"></slot>\n <div class=\"actions\">\n <button class=\"btn btn-tertiary switch-to-manual-btn\" type=\"button\" part=\"manualButton\">Or enter address manually</button>\n <slot name=\"actions\"></slot>\n </div>\n </div>\n\n <div class=\"manual-address pb-2 js-hide\">\n <slot part=\"contents\"></slot>\n <button class=\"btn btn-tertiary switch-to-lookup-btn\" type=\"button\" part=\"button\">${this.hasAttribute('data-postcode-lookup-label') ? this.getAttribute('data-postcode-lookup-label') : 'Use postcode lookup'}</button>\n <slot name=\"after\"></slot>\n </div>\n <div class=\"pre-filled p-2 js-hide\">\n <strong class=\"title text-primary d-block\"></strong>\n <p><span class=\"pre-filled-address\"></span>\n <button class=\"link m-0 text-primary ms-2 cursor-pointer\" type=\"button\" part=\"edit-button\">\n <i class=\"fa-regular fa-pen-to-square m-0\"></i> <span class=\"visually-hidden\">Edit</span>\n </button>\n <button class=\"link m-0 text-primary ms-2 cursor-pointer\" type=\"button\" part=\"remove-button\">\n <i class=\"fa-regular fa-trash m-0\"></i> <span class=\"visually-hidden\">Remove</span>\n </button>\n <slot name=\"prefilled\"></slot></p>\n </div>\n </div>\n `;\n (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.appendChild(template.content.cloneNode(true));\n }\n connectedCallback() {\n return __awaiter(this, void 0, void 0, function* () {\n var _a, _b, _c;\n const lookup = this.shadowRoot.querySelector('[name=\"postcode\"]');\n const lookupWrapper = this.shadowRoot.querySelector('.postcode-lookup');\n const manualWrapper = this.shadowRoot.querySelector('.manual-address');\n const preFilledWrapper = this.shadowRoot.querySelector('.pre-filled');\n const list = this.querySelector('datalist[slot=\"preloadedList\"]') ? this.querySelector('datalist[slot=\"preloadedList\"]') : this.shadowRoot.querySelector('.datalist__wrapper datalist');\n const listWrapper = this.shadowRoot.querySelector('.datalist__wrapper');\n const switchManualBtn = this.shadowRoot.querySelector('.switch-to-manual-btn');\n const switchLookupBtn = this.shadowRoot.querySelector('.switch-to-lookup-btn');\n const title = this.hasAttribute('data-title') ? this.getAttribute('data-title') : 'Find an address';\n const preFilledAddressBtn = this.shadowRoot.querySelector('[part=\"edit-button\"]');\n const preFilledAddressRemoveBtn = this.shadowRoot.querySelector('[part=\"remove-button\"]');\n const dataDisplayText = this.hasAttribute('data-display-text');\n const postcodeSubmit = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('#postcode__submit');\n const errorMsg = (_b = this.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.invalid-feedback');\n const paginationWrapper = (_c = this.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('#paginationWrapper');\n const minChars = this.hasAttribute('data-min-chars') ? parseInt(this.getAttribute('data-min-chars')) : 3;\n let pageNumber = 1;\n const atleastone = this.querySelector('.atleastone');\n const matchedAddress = this.shadowRoot.querySelector('.matched-address');\n const matchedAddressWrapper = this.shadowRoot.querySelector('.matched');\n const matchedAddressUse = this.shadowRoot.querySelector('.matched .use-matched');\n const matchedAddressEntered = this.shadowRoot.querySelector('.matched .use-entered');\n Array.from(this.shadowRoot.querySelectorAll('.title')).forEach((titleElement) => {\n titleElement.innerHTML = title;\n });\n // #region functions\n function checkFilled(component) {\n const preFilledAddress = component.shadowRoot.querySelector('.pre-filled-address');\n let preFilled = true;\n preFilledAddress.innerHTML = '';\n Array.from(component.querySelectorAll('input[required],input[data-required],select[required],select[data-required]')).forEach((input) => {\n let value = input.hasAttribute('data-value') ? input.getAttribute('data-value') : input.value;\n if (input.tagName == \"SELECT\" && component.querySelector(`[value=\"${input.value}\"][data-value]`))\n value = component.querySelector(`[value=\"${input.value}\"][data-value]`).getAttribute('data-value');\n if (!value) {\n if (input.closest('.atleastone')) {\n if (!atleastone.querySelector('input:valid, input.is-valid')) {\n preFilled = false;\n }\n }\n else {\n preFilled = false;\n }\n }\n else {\n preFilledAddress.innerHTML += value + (/^-?\\d+$/.test(value) ? ' ' : ', ');\n }\n });\n preFilledAddress.innerHTML = preFilledAddress.innerHTML.slice(0, -2);\n // If has label then use that\n if (preFilled) {\n if (component.querySelector('[name=\"label\"]'))\n preFilledAddress.innerHTML = component.querySelector('[name=\"label\"]').value;\n // If has label then use that\n preFilledWrapper.classList.remove('js-hide');\n lookupWrapper.classList.add('js-hide');\n manualWrapper.classList.add('js-hide');\n }\n }\n function openManualWrapper() {\n lookupWrapper.classList.add('js-hide');\n manualWrapper.classList.remove('js-hide');\n Array.from(manualWrapper.querySelectorAll('[data-required]')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n manualWrapper.scrollIntoView();\n }\n const atleastoneValidate = () => {\n if (atleastone.querySelector('input:valid, input.is-valid')) {\n Array.from(atleastone.querySelectorAll('input')).forEach(element => {\n element.removeAttribute('required');\n });\n }\n else {\n Array.from(atleastone.querySelectorAll('input')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n }\n };\n const fillInputs = (values) => {\n lookupWrapper.classList.add('js-hide');\n manualWrapper.classList.remove('js-hide');\n Object.keys(values).forEach((key) => {\n const value = values[key];\n let input = false;\n if (this.querySelector(`[data-name=\"${key}\"]`))\n input = this.querySelector(`[data-name=\"${key}\"]`);\n else if (this.querySelector(`[data-name-alt=\"${key}\"]`))\n input = this.querySelector(`[data-name-alt=\"${key}\"]`);\n else if (this.querySelector(`[name=\"${key}\"]`))\n input = this.querySelector(`[name=\"${key}\"]`);\n if (input && input.tagName == \"SELECT\" && value.id) {\n input.value = value.id;\n }\n else if (input && value != '') {\n input.value = value;\n if (input.hasAttribute('data-readonly')) {\n input.setAttribute('readonly', true);\n input.classList.add('is-valid');\n }\n }\n else if (value != \"\") {\n this.insertAdjacentHTML('beforeend', `<input type=\"hidden\" class=\"inserted\" data-hidden name=\"${key}\" value=\"${value}\" />`);\n }\n if (this.querySelector(`[data-name-2=\"${key}\"]`))\n this.querySelector(`[data-name-2=\"${key}\"]`).value += ' ' + value;\n });\n Array.from(this.querySelectorAll('[data-required]')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n lookup.removeAttribute('required');\n if (atleastone) {\n atleastoneValidate();\n }\n if (!this.hasAttribute('data-force-manual'))\n checkFilled(this);\n };\n const search = (searchValue_1, ...args_1) => __awaiter(this, [searchValue_1, ...args_1], void 0, function* (searchValue, paginate = false) {\n // check if postcode is valid\n const limit = this.hasAttribute('data-limit') ? parseInt(this.getAttribute('data-limit')) : 100;\n if (paginate)\n pageNumber++;\n else\n pageNumber = 1;\n let ajaxURL = this.getAttribute('data-url');\n ajaxURL += `${encodeURI(searchValue)}&page[number]=${pageNumber}&page[size]=${limit}`;\n if (this.hasAttribute('data-url-2')) {\n ajaxURL += this.getAttribute('data-url-2');\n }\n const postcode = searchValue; // TODO: remove when postcode comes from response\n if (this.hasAttribute('data-postcode')) {\n if (!isValidPostcode(searchValue)) {\n return \"Invalid postcode, please enter a valid postcode\";\n }\n else {\n if (!paginate)\n list.innerHTML = \"\";\n list === null || list === void 0 ? void 0 : list.classList.add('loading');\n list === null || list === void 0 ? void 0 : list.classList.remove('noresults');\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.remove('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = \"\";\n list === null || list === void 0 ? void 0 : list.classList.remove('show-welsh-banner');\n Array.from(this.querySelectorAll('[data-required]')).forEach((input) => {\n input.removeAttribute('required');\n });\n Array.from(this.querySelectorAll('[data-readonly]')).forEach((input) => {\n input.removeAttribute('readonly');\n input.classList.remove('is-valid');\n });\n Array.from(this.querySelectorAll('.inserted')).forEach((input) => {\n input.remove();\n });\n }\n }\n this.classList.add('searched');\n this.classList.add('was-validated');\n // Setup controller vars if not already set\n if (!window.controller)\n window.controller = [];\n // Abort if controller already present for this url\n if (window.controller[ajaxURL])\n window.controller[ajaxURL].abort();\n // Create a new controller so it can be aborted if new fetch made\n window.controller[ajaxURL] = new AbortController();\n const { signal } = controller[ajaxURL];\n try {\n return yield fetch(ajaxURL, {\n signal: signal,\n method: 'get',\n credentials: 'same-origin',\n headers: new Headers({\n 'Content-Type': 'application/json',\n Accept: 'application/json',\n 'X-Requested-With': 'XMLHttpRequest',\n 'X-XSRF-TOKEN': Cookies.get('XSRF-TOKEN'),\n }),\n })\n .then((response) => response.json())\n .then((response) => {\n var _a;\n // populate datalist\n let listString = '';\n const addresses = response['data'] ? response['data'] : response;\n addresses.forEach((address) => {\n // Deal with agent platform response\n if (typeof address.attributes == 'object' && address.attributes.label) {\n const values = JSON.stringify(address.attributes);\n listString += `<option data-values='${values}' >${address.attributes.label}</option>`;\n }\n else if (typeof address.value == 'object') {\n const values = JSON.stringify(address.value);\n listString += `<option data-values='${values}'>${address['label']}, ${postcode}</option>`;\n }\n else {\n const values = JSON.stringify(address);\n if (dataDisplayText) {\n listString += `<option data-values='${values}'>${address[dataDisplayText]}, ${postcode}</option>`;\n }\n else {\n let itemString = '';\n for (const [key, value] of Object.entries(address)) {\n if (key == 'address_number_name')\n itemString += `${value} `;\n else if (key != 'postcode' && key != 'address_title' && key != 'group')\n itemString += `${value}${/^-?\\d+$/.test(value) ? '' : ','} `;\n }\n listString += `<option data-values='${values}'>${itemString}, ${postcode}</option>`; // TODO postcode should come from the response\n }\n }\n });\n if (paginate)\n list.innerHTML += listString;\n else\n list.innerHTML = listString;\n if (addresses.length) {\n list === null || list === void 0 ? void 0 : list.classList.remove('loading');\n }\n else {\n list === null || list === void 0 ? void 0 : list.classList.remove('loading');\n list === null || list === void 0 ? void 0 : list.classList.add('noresults');\n }\n // pagination\n if (response.meta && response.meta.current_page && response.meta.total_pages && response.meta.total_pages > response.meta.current_page) {\n paginationWrapper === null || paginationWrapper === void 0 ? void 0 : paginationWrapper.innerHTML = `<div class=\"bg-light text-center p-2\"><p class=\"m-0\">Showing 1-${response.meta.current_page * limit} of ${response.meta.total_results} addresses <br /><button type=\"button\" data-next=\"${response.meta.current_page + 1}\" class=\"mt-1 mb-0 btn btn-action\"><i class=\"fa-regular fa-eye me-1\"></i>Show more addresses</button></p></div>`;\n }\n else {\n paginationWrapper === null || paginationWrapper === void 0 ? void 0 : paginationWrapper.innerHTML = '';\n }\n if (response.meta && response.meta.welsh_language) {\n list === null || list === void 0 ? void 0 : list.classList.add('show-welsh-banner');\n }\n listWrapper === null || listWrapper === void 0 ? void 0 : listWrapper.focus();\n (_a = list === null || list === void 0 ? void 0 : list.querySelector('option')) === null || _a === void 0 ? void 0 : _a.focus();\n return true;\n });\n }\n catch (error) {\n console.log(error);\n return \"There has been a problem. Please try again in a few moments.\";\n }\n });\n // #endregion\n // #region check attributes and trigger functions \n if (!this.hasAttribute('data-force-manual'))\n checkFilled(this);\n this.addEventListener('filled', () => {\n if (!this.hasAttribute('data-force-manual'))\n checkFilled(this);\n });\n if (this.hasAttribute('data-use')) {\n const useLabel = this.hasAttribute('data-use-label') ? this.getAttribute('data-use-label') : 'Use saved address';\n const useCheckbox = `<div><input type=\"checkbox\" name=\"use\" id=\"use\" value=\"yes\"><label for=\"use\">${useLabel}</label></div>`;\n lookupWrapper.insertAdjacentHTML('afterbegin', useCheckbox);\n this.shadowRoot.addEventListener('change', (event) => {\n if (event && event.target instanceof HTMLElement && event.target.closest('[name=\"use\"]')) {\n const checkbox = event.target.closest('[name=\"use\"]');\n if (checkbox.checked) {\n lookupWrapper.classList.add('js-hide');\n manualWrapper.classList.remove('js-hide');\n const values = JSON.parse(this.getAttribute('data-use'));\n Object.keys(values).forEach((key) => {\n const value = values[key];\n if (this.querySelector(`[data-name=\"${key}\"]`))\n this.querySelector(`[data-name=\"${key}\"]`).value = value;\n else if (this.querySelector(`[name=\"${key}\"]`))\n this.querySelector(`[name=\"${key}\"]`).value = value;\n });\n }\n }\n });\n if (this.hasAttribute('data-use-default')) {\n lookupWrapper.querySelector('[name=\"use\"]').checked = true;\n const values = JSON.parse(this.getAttribute('data-use'));\n fillInputs(values);\n }\n }\n if (this.hasAttribute('data-manual')) {\n fillInputs({});\n }\n if (this.classList.contains('show-pagination'))\n paginationWrapper === null || paginationWrapper === void 0 ? void 0 : paginationWrapper.innerHTML = `<div class=\"bg-light text-center p-2\"><p class=\"m-0\">Showing 1-500 of 585 addresses <br /><button type=\"button\" data-next=\"2\" class=\"mt-1 mb-0 btn btn-action\"><i class=\"fa-regular fa-eye me-1\"></i>Show more addresses</button></p></div>`;\n if (this.classList.contains('scroll-to-bottom-results'))\n paginationWrapper.scrollIntoView({ container: 'nearest' });\n // #endregion\n // #region event listeners\n preFilledAddressBtn.addEventListener('click', () => {\n preFilledWrapper.classList.add('js-hide');\n openManualWrapper();\n });\n preFilledAddressRemoveBtn.addEventListener('click', () => {\n preFilledWrapper.classList.add('js-hide');\n lookupWrapper.classList.remove('js-hide');\n manualWrapper.classList.add('js-hide');\n list.innerHTML = \"\";\n list === null || list === void 0 ? void 0 : list.classList.remove('loading');\n list === null || list === void 0 ? void 0 : list.classList.remove('noresults');\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.remove('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = \"\";\n list === null || list === void 0 ? void 0 : list.classList.remove('show-welsh-banner');\n lookup.focus();\n lookup.value = \"\";\n if (lookup === null || lookup === void 0 ? void 0 : lookup.hasAttribute('data-placeholder'))\n lookup.setAttribute('placeholder', lookup === null || lookup === void 0 ? void 0 : lookup.getAttribute('data-placeholder'));\n const updateEvent = new CustomEvent('switch-to-lookup');\n this.dispatchEvent(updateEvent);\n lookupWrapper.scrollIntoView();\n });\n switchManualBtn.addEventListener('click', () => {\n openManualWrapper();\n });\n this.addEventListener('open-manual', () => {\n openManualWrapper();\n });\n switchLookupBtn.addEventListener('click', () => {\n lookupWrapper.classList.remove('js-hide');\n manualWrapper.classList.add('js-hide');\n const updateEvent = new CustomEvent('switch-to-lookup');\n this.dispatchEvent(updateEvent);\n lookupWrapper.scrollIntoView();\n });\n lookup.addEventListener('keyup', (e) => __awaiter(this, void 0, void 0, function* () {\n if (![40, 38, 13].includes(e.keyCode) && lookup.value.length >= minChars) {\n const valid = yield search(lookup.value);\n if (valid != true) {\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.add('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = valid;\n }\n }\n if (e.keyCode == 13) {\n const valid = yield search(lookup.value);\n if (valid != true) {\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.add('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = valid;\n }\n }\n }));\n lookup.addEventListener('change', () => __awaiter(this, void 0, void 0, function* () {\n if (lookup.value.length >= minChars) {\n const valid = yield search(lookup.value);\n if (valid != true) {\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.add('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = valid;\n }\n }\n }));\n list.addEventListener('click', (e) => {\n if (e.target.tagName == \"OPTION\") {\n const values = JSON.parse(e.target.getAttribute('data-values'));\n fillInputs(values);\n if (this.shadowRoot.querySelector('[name=\"use\"]'))\n this.shadowRoot.querySelector('[name=\"use\"]').checked = false;\n }\n });\n atleastone === null || atleastone === void 0 ? void 0 : atleastone.addEventListener('input', (e) => {\n Array.from(atleastone.querySelectorAll('[data-required]')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n atleastoneValidate();\n });\n postcodeSubmit === null || postcodeSubmit === void 0 ? void 0 : postcodeSubmit.addEventListener('click', () => __awaiter(this, void 0, void 0, function* () {\n const valid = yield search(lookup.value);\n if (valid != true) {\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.add('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = valid;\n }\n }));\n this === null || this === void 0 ? void 0 : this.addEventListener('search', () => __awaiter(this, void 0, void 0, function* () {\n const valid = yield search(lookup.value);\n if (valid != true) {\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.add('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = valid;\n }\n }));\n this === null || this === void 0 ? void 0 : this.addEventListener('close-button-pressed', () => {\n list.innerHTML = \"\";\n list === null || list === void 0 ? void 0 : list.classList.remove('loading');\n list === null || list === void 0 ? void 0 : list.classList.remove('noresults');\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.remove('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = \"\";\n list === null || list === void 0 ? void 0 : list.classList.remove('show-welsh-banner');\n lookup.focus();\n });\n paginationWrapper === null || paginationWrapper === void 0 ? void 0 : paginationWrapper.addEventListener('click', (e) => __awaiter(this, void 0, void 0, function* () {\n if (e.target.tagName == \"BUTTON\") {\n const valid = yield search(lookup.value, true);\n if (valid != true) {\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.add('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = valid;\n }\n }\n }));\n // #endregion\n // #region Matched address\n if (this.hasAttribute('data-matched')) {\n matchedAddressWrapper === null || matchedAddressWrapper === void 0 ? void 0 : matchedAddressWrapper.classList.remove('d-none');\n if (this.hasAttribute('data-matched-label'))\n matchedAddress === null || matchedAddress === void 0 ? void 0 : matchedAddress.innerHTML = this.getAttribute('data-matched-label');\n matchedAddressEntered === null || matchedAddressEntered === void 0 ? void 0 : matchedAddressEntered.addEventListener('click', () => {\n var _a;\n matchedAddressWrapper === null || matchedAddressWrapper === void 0 ? void 0 : matchedAddressWrapper.remove();\n const useCheckbox = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('[name=\"use\"]');\n useCheckbox.checked = true;\n lookupWrapper.classList.add('js-hide');\n manualWrapper.classList.remove('js-hide');\n const values = JSON.parse(this.getAttribute('data-use'));\n Object.keys(values).forEach((key) => {\n const value = values[key];\n if (this.querySelector(`[data-name=\"${key}\"]`))\n this.querySelector(`[data-name=\"${key}\"]`).value = value;\n else if (this.querySelector(`[name=\"${key}\"]`))\n this.querySelector(`[name=\"${key}\"]`).value = value;\n });\n checkFilled(this);\n });\n matchedAddressUse === null || matchedAddressUse === void 0 ? void 0 : matchedAddressUse.addEventListener('click', () => {\n matchedAddressWrapper === null || matchedAddressWrapper === void 0 ? void 0 : matchedAddressWrapper.remove();\n const values = JSON.parse(this.getAttribute('data-matched'));\n fillInputs(values);\n checkFilled(this);\n });\n }\n else {\n matchedAddressWrapper === null || matchedAddressWrapper === void 0 ? void 0 : matchedAddressWrapper.remove();\n }\n // #endregion\n advancedSelect(this, lookup, list, true);\n });\n }\n}\nexport default iamAddressLookup;\n","import iamAddressLookup from '../address-lookup/address-lookup.component.js';\nconst countries = [\n {\n \"id\": \"urn:iamproperty:country:AF\",\n \"country_name\": \"Afghanistan\"\n },\n {\n \"id\": \"urn:iamproperty:country:AX\",\n \"country_name\": \"Aland Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:AL\",\n \"country_name\": \"Albania\"\n },\n {\n \"id\": \"urn:iamproperty:country:DZ\",\n \"country_name\": \"Algeria\"\n },\n {\n \"id\": \"urn:iamproperty:country:AS\",\n \"country_name\": \"American Samoa\"\n },\n {\n \"id\": \"urn:iamproperty:country:AD\",\n \"country_name\": \"Andorra\"\n },\n {\n \"id\": \"urn:iamproperty:country:AO\",\n \"country_name\": \"Angola\"\n },\n {\n \"id\": \"urn:iamproperty:country:AI\",\n \"country_name\": \"Anguilla\"\n },\n {\n \"id\": \"urn:iamproperty:country:AQ\",\n \"country_name\": \"Antarctica\"\n },\n {\n \"id\": \"urn:iamproperty:country:AG\",\n \"country_name\": \"Antigua and Barbuda\"\n },\n {\n \"id\": \"urn:iamproperty:country:AR\",\n \"country_name\": \"Argentina\"\n },\n {\n \"id\": \"urn:iamproperty:country:AM\",\n \"country_name\": \"Armenia\"\n },\n {\n \"id\": \"urn:iamproperty:country:AW\",\n \"country_name\": \"Aruba\"\n },\n {\n \"id\": \"urn:iamproperty:country:AU\",\n \"country_name\": \"Australia\"\n },\n {\n \"id\": \"urn:iamproperty:country:AT\",\n \"country_name\": \"Austria\"\n },\n {\n \"id\": \"urn:iamproperty:country:AZ\",\n \"country_name\": \"Azerbaijan\"\n },\n {\n \"id\": \"urn:iamproperty:country:BS\",\n \"country_name\": \"Bahamas\"\n },\n {\n \"id\": \"urn:iamproperty:country:BH\",\n \"country_name\": \"Bahrain\"\n },\n {\n \"id\": \"urn:iamproperty:country:BD\",\n \"country_name\": \"Bangladesh\"\n },\n {\n \"id\": \"urn:iamproperty:country:BB\",\n \"country_name\": \"Barbados\"\n },\n {\n \"id\": \"urn:iamproperty:country:BY\",\n \"country_name\": \"Belarus\"\n },\n {\n \"id\": \"urn:iamproperty:country:BE\",\n \"country_name\": \"Belgium\"\n },\n {\n \"id\": \"urn:iamproperty:country:BZ\",\n \"country_name\": \"Belize\"\n },\n {\n \"id\": \"urn:iamproperty:country:BJ\",\n \"country_name\": \"Benin\"\n },\n {\n \"id\": \"urn:iamproperty:country:BM\",\n \"country_name\": \"Bermuda\"\n },\n {\n \"id\": \"urn:iamproperty:country:BT\",\n \"country_name\": \"Bhutan\"\n },\n {\n \"id\": \"urn:iamproperty:country:BO\",\n \"country_name\": \"Bolivia (Plurinational State of)\"\n },\n {\n \"id\": \"urn:iamproperty:country:BQ\",\n \"country_name\": \"Bonaire, Sint Eustatius and Saba\"\n },\n {\n \"id\": \"urn:iamproperty:country:BA\",\n \"country_name\": \"Bosnia and Herzegovina\"\n },\n {\n \"id\": \"urn:iamproperty:country:BW\",\n \"country_name\": \"Botswana\"\n },\n {\n \"id\": \"urn:iamproperty:country:BV\",\n \"country_name\": \"Bouvet Island\"\n },\n {\n \"id\": \"urn:iamproperty:country:BR\",\n \"country_name\": \"Brazil\"\n },\n {\n \"id\": \"urn:iamproperty:country:IO\",\n \"country_name\": \"British Indian Ocean Territory\"\n },\n {\n \"id\": \"urn:iamproperty:country:BN\",\n \"country_name\": \"Brunei Darussalam\"\n },\n {\n \"id\": \"urn:iamproperty:country:BG\",\n \"country_name\": \"Bulgaria\"\n },\n {\n \"id\": \"urn:iamproperty:country:BF\",\n \"country_name\": \"Burkina Faso\"\n },\n {\n \"id\": \"urn:iamproperty:country:BI\",\n \"country_name\": \"Burundi\"\n },\n {\n \"id\": \"urn:iamproperty:country:KH\",\n \"country_name\": \"Cambodia\"\n },\n {\n \"id\": \"urn:iamproperty:country:CM\",\n \"country_name\": \"Cameroon\"\n },\n {\n \"id\": \"urn:iamproperty:country:CA\",\n \"country_name\": \"Canada\"\n },\n {\n \"id\": \"urn:iamproperty:country:CV\",\n \"country_name\": \"Cabo Verde\"\n },\n {\n \"id\": \"urn:iamproperty:country:KY\",\n \"country_name\": \"Cayman Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:CF\",\n \"country_name\": \"Central African Republic\"\n },\n {\n \"id\": \"urn:iamproperty:country:TD\",\n \"country_name\": \"Chad\"\n },\n {\n \"id\": \"urn:iamproperty:country:CL\",\n \"country_name\": \"Chile\"\n },\n {\n \"id\": \"urn:iamproperty:country:CN\",\n \"country_name\": \"China\"\n },\n {\n \"id\": \"urn:iamproperty:country:CX\",\n \"country_name\": \"Christmas Island\"\n },\n {\n \"id\": \"urn:iamproperty:country:CC\",\n \"country_name\": \"Cocos (Keeling) Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:CO\",\n \"country_name\": \"Colombia\"\n },\n {\n \"id\": \"urn:iamproperty:country:KM\",\n \"country_name\": \"Comoros\"\n },\n {\n \"id\": \"urn:iamproperty:country:CG\",\n \"country_name\": \"Congo\"\n },\n {\n \"id\": \"urn:iamproperty:country:CD\",\n \"country_name\": \"Congo (Democratic Republic of the)\"\n },\n {\n \"id\": \"urn:iamproperty:country:CK\",\n \"country_name\": \"Cook Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:CR\",\n \"country_name\": \"Costa Rica\"\n },\n {\n \"id\": \"urn:iamproperty:country:CI\",\n \"country_name\": \"Côte d’Ivoire\"\n },\n {\n \"id\": \"urn:iamproperty:country:HR\",\n \"country_name\": \"Croatia\"\n },\n {\n \"id\": \"urn:iamproperty:country:CU\",\n \"country_name\": \"Cuba\"\n },\n {\n \"id\": \"urn:iamproperty:country:CW\",\n \"country_name\": \"Curaçao\"\n },\n {\n \"id\": \"urn:iamproperty:country:CY\",\n \"country_name\": \"Cyprus\"\n },\n {\n \"id\": \"urn:iamproperty:country:CZ\",\n \"country_name\": \"Czech Republic\"\n },\n {\n \"id\": \"urn:iamproperty:country:DK\",\n \"country_name\": \"Denmark\"\n },\n {\n \"id\": \"urn:iamproperty:country:DJ\",\n \"country_name\": \"Djibouti\"\n },\n {\n \"id\": \"urn:iamproperty:country:DM\",\n \"country_name\": \"Dominica\"\n },\n {\n \"id\": \"urn:iamproperty:country:DO\",\n \"country_name\": \"Dominican Republic\"\n },\n {\n \"id\": \"urn:iamproperty:country:EC\",\n \"country_name\": \"Ecuador\"\n },\n {\n \"id\": \"urn:iamproperty:country:EG\",\n \"country_name\": \"Egypt\"\n },\n {\n \"id\": \"urn:iamproperty:country:SV\",\n \"country_name\": \"El Salvador\"\n },\n {\n \"id\": \"urn:iamproperty:country:GQ\",\n \"country_name\": \"Equatorial Guinea\"\n },\n {\n \"id\": \"urn:iamproperty:country:ER\",\n \"country_name\": \"Eritrea\"\n },\n {\n \"id\": \"urn:iamproperty:country:EE\",\n \"country_name\": \"Estonia\"\n },\n {\n \"id\": \"urn:iamproperty:country:ET\",\n \"country_name\": \"Ethiopia\"\n },\n {\n \"id\": \"urn:iamproperty:country:FK\",\n \"country_name\": \"Falkland Islands (Malvinas)\"\n },\n {\n \"id\": \"urn:iamproperty:country:FO\",\n \"country_name\": \"Faroe Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:FJ\",\n \"country_name\": \"Fiji\"\n },\n {\n \"id\": \"urn:iamproperty:country:FI\",\n \"country_name\": \"Finland\"\n },\n {\n \"id\": \"urn:iamproperty:country:FR\",\n \"country_name\": \"France\"\n },\n {\n \"id\": \"urn:iamproperty:country:GF\",\n \"country_name\": \"French Guiana\"\n },\n {\n \"id\": \"urn:iamproperty:country:PF\",\n \"country_name\": \"French Polynesia\"\n },\n {\n \"id\": \"urn:iamproperty:country:TF\",\n \"country_name\": \"French Southern Territories\"\n },\n {\n \"id\": \"urn:iamproperty:country:GA\",\n \"country_name\": \"Gabon\"\n },\n {\n \"id\": \"urn:iamproperty:country:GM\",\n \"country_name\": \"Gambia\"\n },\n {\n \"id\": \"urn:iamproperty:country:GE\",\n \"country_name\": \"Georgia\"\n },\n {\n \"id\": \"urn:iamproperty:country:DE\",\n \"country_name\": \"Germany\"\n },\n {\n \"id\": \"urn:iamproperty:country:GH\",\n \"country_name\": \"Ghana\"\n },\n {\n \"id\": \"urn:iamproperty:country:GI\",\n \"country_name\": \"Gibraltar\"\n },\n {\n \"id\": \"urn:iamproperty:country:GR\",\n \"country_name\": \"Greece\"\n },\n {\n \"id\": \"urn:iamproperty:country:GL\",\n \"country_name\": \"Greenland\"\n },\n {\n \"id\": \"urn:iamproperty:country:GD\",\n \"country_name\": \"Grenada\"\n },\n {\n \"id\": \"urn:iamproperty:country:GP\",\n \"country_name\": \"Guadeloupe\"\n },\n {\n \"id\": \"urn:iamproperty:country:GU\",\n \"country_name\": \"Guam\"\n },\n {\n \"id\": \"urn:iamproperty:country:GT\",\n \"country_name\": \"Guatemala\"\n },\n {\n \"id\": \"urn:iamproperty:country:GG\",\n \"country_name\": \"Guernsey\"\n },\n {\n \"id\": \"urn:iamproperty:country:GN\",\n \"country_name\": \"Guinea\"\n },\n {\n \"id\": \"urn:iamproperty:country:GW\",\n \"country_name\": \"Guinea-Bissau\"\n },\n {\n \"id\": \"urn:iamproperty:country:GY\",\n \"country_name\": \"Guyana\"\n },\n {\n \"id\": \"urn:iamproperty:country:HT\",\n \"country_name\": \"Haiti\"\n },\n {\n \"id\": \"urn:iamproperty:country:HM\",\n \"country_name\": \"Heard Island and McDonald Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:VA\",\n \"country_name\": \"Holy See\"\n },\n {\n \"id\": \"urn:iamproperty:country:HN\",\n \"country_name\": \"Honduras\"\n },\n {\n \"id\": \"urn:iamproperty:country:HK\",\n \"country_name\": \"Hong Kong\"\n },\n {\n \"id\": \"urn:iamproperty:country:HU\",\n \"country_name\": \"Hungary\"\n },\n {\n \"id\": \"urn:iamproperty:country:IS\",\n \"country_name\": \"Iceland\"\n },\n {\n \"id\": \"urn:iamproperty:country:IN\",\n \"country_name\": \"India\"\n },\n {\n \"id\": \"urn:iamproperty:country:ID\",\n \"country_name\": \"Indonesia\"\n },\n {\n \"id\": \"urn:iamproperty:country:IR\",\n \"country_name\": \"Iran (Islamic Republic of)\"\n },\n {\n \"id\": \"urn:iamproperty:country:IQ\",\n \"country_name\": \"Iraq\"\n },\n {\n \"id\": \"urn:iamproperty:country:IE\",\n \"country_name\": \"Ireland\"\n },\n {\n \"id\": \"urn:iamproperty:country:IM\",\n \"country_name\": \"Isle of Man\"\n },\n {\n \"id\": \"urn:iamproperty:country:IL\",\n \"country_name\": \"Israel\"\n },\n {\n \"id\": \"urn:iamproperty:country:IT\",\n \"country_name\": \"Italy\"\n },\n {\n \"id\": \"urn:iamproperty:country:JM\",\n \"country_name\": \"Jamaica\"\n },\n {\n \"id\": \"urn:iamproperty:country:JP\",\n \"country_name\": \"Japan\"\n },\n {\n \"id\": \"urn:iamproperty:country:JE\",\n \"country_name\": \"Jersey\"\n },\n {\n \"id\": \"urn:iamproperty:country:JO\",\n \"country_name\": \"Jordan\"\n },\n {\n \"id\": \"urn:iamproperty:country:KZ\",\n \"country_name\": \"Kazakhstan\"\n },\n {\n \"id\": \"urn:iamproperty:country:KE\",\n \"country_name\": \"Kenya\"\n },\n {\n \"id\": \"urn:iamproperty:country:KI\",\n \"country_name\": \"Kiribati\"\n },\n {\n \"id\": \"urn:iamproperty:country:KP\",\n \"country_name\": \"Korea (Democratic People's Republic of)\"\n },\n {\n \"id\": \"urn:iamproperty:country:KR\",\n \"country_name\": \"Korea (Republic of)\"\n },\n {\n \"id\": \"urn:iamproperty:country:KW\",\n \"country_name\": \"Kuwait\"\n },\n {\n \"id\": \"urn:iamproperty:country:KG\",\n \"country_name\": \"Kyrgyzstan\"\n },\n {\n \"id\": \"urn:iamproperty:country:LA\",\n \"country_name\": \"Lao People's Democratic Republic\"\n },\n {\n \"id\": \"urn:iamproperty:country:LV\",\n \"country_name\": \"Latvia\"\n },\n {\n \"id\": \"urn:iamproperty:country:LB\",\n \"country_name\": \"Lebanon\"\n },\n {\n \"id\": \"urn:iamproperty:country:LS\",\n \"country_name\": \"Lesotho\"\n },\n {\n \"id\": \"urn:iamproperty:country:LR\",\n \"country_name\": \"Liberia\"\n },\n {\n \"id\": \"urn:iamproperty:country:LY\",\n \"country_name\": \"Libya\"\n },\n {\n \"id\": \"urn:iamproperty:country:LI\",\n \"country_name\": \"Liechtenstein\"\n },\n {\n \"id\": \"urn:iamproperty:country:LT\",\n \"country_name\": \"Lithuania\"\n },\n {\n \"id\": \"urn:iamproperty:country:LU\",\n \"country_name\": \"Luxembourg\"\n },\n {\n \"id\": \"urn:iamproperty:country:MO\",\n \"country_name\": \"Macao\"\n },\n {\n \"id\": \"urn:iamproperty:country:MK\",\n \"country_name\": \"Republic of North Macedonia\"\n },\n {\n \"id\": \"urn:iamproperty:country:MG\",\n \"country_name\": \"Madagascar\"\n },\n {\n \"id\": \"urn:iamproperty:country:MW\",\n \"country_name\": \"Malawi\"\n },\n {\n \"id\": \"urn:iamproperty:country:MY\",\n \"country_name\": \"Malaysia\"\n },\n {\n \"id\": \"urn:iamproperty:country:MV\",\n \"country_name\": \"Maldives\"\n },\n {\n \"id\": \"urn:iamproperty:country:ML\",\n \"country_name\": \"Mali\"\n },\n {\n \"id\": \"urn:iamproperty:country:MT\",\n \"country_name\": \"Malta\"\n },\n {\n \"id\": \"urn:iamproperty:country:MH\",\n \"country_name\": \"Marshall Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:MQ\",\n \"country_name\": \"Martinique\"\n },\n {\n \"id\": \"urn:iamproperty:country:MR\",\n \"country_name\": \"Mauritania\"\n },\n {\n \"id\": \"urn:iamproperty:country:MU\",\n \"country_name\": \"Mauritius\"\n },\n {\n \"id\": \"urn:iamproperty:country:YT\",\n \"country_name\": \"Mayotte\"\n },\n {\n \"id\": \"urn:iamproperty:country:MX\",\n \"country_name\": \"Mexico\"\n },\n {\n \"id\": \"urn:iamproperty:country:FM\",\n \"country_name\": \"Micronesia (Federated States of)\"\n },\n {\n \"id\": \"urn:iamproperty:country:MD\",\n \"country_name\": \"Moldova (Republic of)\"\n },\n {\n \"id\": \"urn:iamproperty:country:MC\",\n \"country_name\": \"Monaco\"\n },\n {\n \"id\": \"urn:iamproperty:country:MN\",\n \"country_name\": \"Mongolia\"\n },\n {\n \"id\": \"urn:iamproperty:country:ME\",\n \"country_name\": \"Montenegro\"\n },\n {\n \"id\": \"urn:iamproperty:country:MS\",\n \"country_name\": \"Montserrat\"\n },\n {\n \"id\": \"urn:iamproperty:country:MA\",\n \"country_name\": \"Morocco\"\n },\n {\n \"id\": \"urn:iamproperty:country:MZ\",\n \"country_name\": \"Mozambique\"\n },\n {\n \"id\": \"urn:iamproperty:country:MM\",\n \"country_name\": \"Myanmar\"\n },\n {\n \"id\": \"urn:iamproperty:country:NA\",\n \"country_name\": \"Namibia\"\n },\n {\n \"id\": \"urn:iamproperty:country:NR\",\n \"country_name\": \"Nauru\"\n },\n {\n \"id\": \"urn:iamproperty:country:NP\",\n \"country_name\": \"Nepal\"\n },\n {\n \"id\": \"urn:iamproperty:country:NL\",\n \"country_name\": \"Netherlands\"\n },\n {\n \"id\": \"urn:iamproperty:country:NC\",\n \"country_name\": \"New Caledonia\"\n },\n {\n \"id\": \"urn:iamproperty:country:NZ\",\n \"country_name\": \"New Zealand\"\n },\n {\n \"id\": \"urn:iamproperty:country:NI\",\n \"country_name\": \"Nicaragua\"\n },\n {\n \"id\": \"urn:iamproperty:country:NE\",\n \"country_name\": \"Niger\"\n },\n {\n \"id\": \"urn:iamproperty:country:NG\",\n \"country_name\": \"Nigeria\"\n },\n {\n \"id\": \"urn:iamproperty:country:NU\",\n \"country_name\": \"Niue\"\n },\n {\n \"id\": \"urn:iamproperty:country:NF\",\n \"country_name\": \"Norfolk Island\"\n },\n {\n \"id\": \"urn:iamproperty:country:MP\",\n \"country_name\": \"Northern Mariana Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:NO\",\n \"country_name\": \"Norway\"\n },\n {\n \"id\": \"urn:iamproperty:country:OM\",\n \"country_name\": \"Oman\"\n },\n {\n \"id\": \"urn:iamproperty:country:PK\",\n \"country_name\": \"Pakistan\"\n },\n {\n \"id\": \"urn:iamproperty:country:PW\",\n \"country_name\": \"Palau\"\n },\n {\n \"id\": \"urn:iamproperty:country:PS\",\n \"country_name\": \"Palestine, State of\"\n },\n {\n \"id\": \"urn:iamproperty:country:PA\",\n \"country_name\": \"Panama\"\n },\n {\n \"id\": \"urn:iamproperty:country:PG\",\n \"country_name\": \"Papua New Guinea\"\n },\n {\n \"id\": \"urn:iamproperty:country:PY\",\n \"country_name\": \"Paraguay\"\n },\n {\n \"id\": \"urn:iamproperty:country:PE\",\n \"country_name\": \"Peru\"\n },\n {\n \"id\": \"urn:iamproperty:country:PH\",\n \"country_name\": \"Philippines\"\n },\n {\n \"id\": \"urn:iamproperty:country:PN\",\n \"country_name\": \"Pitcairn\"\n },\n {\n \"id\": \"urn:iamproperty:country:PL\",\n \"country_name\": \"Poland\"\n },\n {\n \"id\": \"urn:iamproperty:country:PT\",\n \"country_name\": \"Portugal\"\n },\n {\n \"id\": \"urn:iamproperty:country:PR\",\n \"country_name\": \"Puerto Rico\"\n },\n {\n \"id\": \"urn:iamproperty:country:QA\",\n \"country_name\": \"Qatar\"\n },\n {\n \"id\": \"urn:iamproperty:country:RE\",\n \"country_name\": \"Réunion\"\n },\n {\n \"id\": \"urn:iamproperty:country:RO\",\n \"country_name\": \"Romania\"\n },\n {\n \"id\": \"urn:iamproperty:country:RU\",\n \"country_name\": \"Russian Federation\"\n },\n {\n \"id\": \"urn:iamproperty:country:RW\",\n \"country_name\": \"Rwanda\"\n },\n {\n \"id\": \"urn:iamproperty:country:BL\",\n \"country_name\": \"Saint Barthélemy\"\n },\n {\n \"id\": \"urn:iamproperty:country:SH\",\n \"country_name\": \"Saint Helena, Ascension and Tristan da Cunha\"\n },\n {\n \"id\": \"urn:iamproperty:country:KN\",\n \"country_name\": \"Saint Kitts and Nevis\"\n },\n {\n \"id\": \"urn:iamproperty:country:LC\",\n \"country_name\": \"Saint Lucia\"\n },\n {\n \"id\": \"urn:iamproperty:country:MF\",\n \"country_name\": \"Saint Martin (French part)\"\n },\n {\n \"id\": \"urn:iamproperty:country:PM\",\n \"country_name\": \"Saint Pierre and Miquelon\"\n },\n {\n \"id\": \"urn:iamproperty:country:VC\",\n \"country_name\": \"Saint Vincent and the Grenadines\"\n },\n {\n \"id\": \"urn:iamproperty:country:WS\",\n \"country_name\": \"Samoa\"\n },\n {\n \"id\": \"urn:iamproperty:country:SM\",\n \"country_name\": \"San Marino\"\n },\n {\n \"id\": \"urn:iamproperty:country:ST\",\n \"country_name\": \"Sao Tome and Principe\"\n },\n {\n \"id\": \"urn:iamproperty:country:SA\",\n \"country_name\": \"Saudi Arabia\"\n },\n {\n \"id\": \"urn:iamproperty:country:SN\",\n \"country_name\": \"Senegal\"\n },\n {\n \"id\": \"urn:iamproperty:country:RS\",\n \"country_name\": \"Serbia\"\n },\n {\n \"id\": \"urn:iamproperty:country:SC\",\n \"country_name\": \"Seychelles\"\n },\n {\n \"id\": \"urn:iamproperty:country:SL\",\n \"country_name\": \"Sierra Leone\"\n },\n {\n \"id\": \"urn:iamproperty:country:SG\",\n \"country_name\": \"Singapore\"\n },\n {\n \"id\": \"urn:iamproperty:country:SX\",\n \"country_name\": \"Sint Maarten (Dutch part)\"\n },\n {\n \"id\": \"urn:iamproperty:country:SK\",\n \"country_name\": \"Slovakia\"\n },\n {\n \"id\": \"urn:iamproperty:country:SI\",\n \"country_name\": \"Slovenia\"\n },\n {\n \"id\": \"urn:iamproperty:country:SB\",\n \"country_name\": \"Solomon Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:SO\",\n \"country_name\": \"Somalia\"\n },\n {\n \"id\": \"urn:iamproperty:country:ZA\",\n \"country_name\": \"South Africa\"\n },\n {\n \"id\": \"urn:iamproperty:country:GS\",\n \"country_name\": \"South Georgia and the South Sandwich Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:SS\",\n \"country_name\": \"South Sudan\"\n },\n {\n \"id\": \"urn:iamproperty:country:ES\",\n \"country_name\": \"Spain\"\n },\n {\n \"id\": \"urn:iamproperty:country:LK\",\n \"country_name\": \"Sri Lanka\"\n },\n {\n \"id\": \"urn:iamproperty:country:SD\",\n \"country_name\": \"Sudan\"\n },\n {\n \"id\": \"urn:iamproperty:country:SR\",\n \"country_name\": \"Suriname\"\n },\n {\n \"id\": \"urn:iamproperty:country:SJ\",\n \"country_name\": \"Svalbard and Jan Mayen\"\n },\n {\n \"id\": \"urn:iamproperty:country:SZ\",\n \"country_name\": \"The Kingdom of Eswatini\"\n },\n {\n \"id\": \"urn:iamproperty:country:SE\",\n \"country_name\": \"Sweden\"\n },\n {\n \"id\": \"urn:iamproperty:country:CH\",\n \"country_name\": \"Switzerland\"\n },\n {\n \"id\": \"urn:iamproperty:country:SY\",\n \"country_name\": \"Syrian Arab Republic\"\n },\n {\n \"id\": \"urn:iamproperty:country:TW\",\n \"country_name\": \"Taiwan, Province of China\"\n },\n {\n \"id\": \"urn:iamproperty:country:TJ\",\n \"country_name\": \"Tajikistan\"\n },\n {\n \"id\": \"urn:iamproperty:country:TZ\",\n \"country_name\": \"Tanzania, United Republic of\"\n },\n {\n \"id\": \"urn:iamproperty:country:TH\",\n \"country_name\": \"Thailand\"\n },\n {\n \"id\": \"urn:iamproperty:country:TL\",\n \"country_name\": \"Timor-Leste\"\n },\n {\n \"id\": \"urn:iamproperty:country:TG\",\n \"country_name\": \"Togo\"\n },\n {\n \"id\": \"urn:iamproperty:country:TK\",\n \"country_name\": \"Tokelau\"\n },\n {\n \"id\": \"urn:iamproperty:country:TO\",\n \"country_name\": \"Tonga\"\n },\n {\n \"id\": \"urn:iamproperty:country:TT\",\n \"country_name\": \"Trinidad and Tobago\"\n },\n {\n \"id\": \"urn:iamproperty:country:TN\",\n \"country_name\": \"Tunisia\"\n },\n {\n \"id\": \"urn:iamproperty:country:TR\",\n \"country_name\": \"Republic of Türkiye\"\n },\n {\n \"id\": \"urn:iamproperty:country:TM\",\n \"country_name\": \"Turkmenistan\"\n },\n {\n \"id\": \"urn:iamproperty:country:TC\",\n \"country_name\": \"Turks and Caicos Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:TV\",\n \"country_name\": \"Tuvalu\"\n },\n {\n \"id\": \"urn:iamproperty:country:UG\",\n \"country_name\": \"Uganda\"\n },\n {\n \"id\": \"urn:iamproperty:country:UA\",\n \"country_name\": \"Ukraine\"\n },\n {\n \"id\": \"urn:iamproperty:country:AE\",\n \"country_name\": \"United Arab Emirates\"\n },\n {\n \"id\": \"urn:iamproperty:country:GB\",\n \"country_name\": \"United Kingdom of Great Britain and Northern Ireland\"\n },\n {\n \"id\": \"urn:iamproperty:country:US\",\n \"country_name\": \"United States of America\"\n },\n {\n \"id\": \"urn:iamproperty:country:UM\",\n \"country_name\": \"United States Minor Outlying Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:UY\",\n \"country_name\": \"Uruguay\"\n },\n {\n \"id\": \"urn:iamproperty:country:UZ\",\n \"country_name\": \"Uzbekistan\"\n },\n {\n \"id\": \"urn:iamproperty:country:VU\",\n \"country_name\": \"Vanuatu\"\n },\n {\n \"id\": \"urn:iamproperty:country:VE\",\n \"country_name\": \"Venezuela (Bolivarian Republic of)\"\n },\n {\n \"id\": \"urn:iamproperty:country:VN\",\n \"country_name\": \"Viet Nam\"\n },\n {\n \"id\": \"urn:iamproperty:country:VG\",\n \"country_name\": \"Virgin Islands (British)\"\n },\n {\n \"id\": \"urn:iamproperty:country:VI\",\n \"country_name\": \"Virgin Islands (U.S.)\"\n },\n {\n \"id\": \"urn:iamproperty:country:WF\",\n \"country_name\": \"Wallis and Futuna\"\n },\n {\n \"id\": \"urn:iamproperty:country:EH\",\n \"country_name\": \"Western Sahara\"\n },\n {\n \"id\": \"urn:iamproperty:country:YE\",\n \"country_name\": \"Yemen\"\n },\n {\n \"id\": \"urn:iamproperty:country:ZM\",\n \"country_name\": \"Zambia\"\n },\n {\n \"id\": \"urn:iamproperty:country:ZW\",\n \"country_name\": \"Zimbabwe\"\n }\n];\nconst counties = [\n {\n \"id\": \"urn:iamproperty:county:ekHuOPAhk\",\n \"county\": \"Monmouthshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:AEbmaIiuw\",\n \"county\": \"Cambridgeshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:HN2Hekmbp\",\n \"county\": \"South Lanarkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:520Tnh4wg\",\n \"county\": \"Derbyshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:l5UCrwlvB\",\n \"county\": \"Devon\"\n },\n {\n \"id\": \"urn:iamproperty:county:GCA8Jh6Ic\",\n \"county\": \"Bristol\"\n },\n {\n \"id\": \"urn:iamproperty:county:Mi1lAB5uQ\",\n \"county\": \"Rhondda Cynon Taf\"\n },\n {\n \"id\": \"urn:iamproperty:county:n4jPkt4qP\",\n \"county\": \"Carmarthenshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:XO1G4TTb5\",\n \"county\": \"Aberdeenshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:JIaxjhlxx\",\n \"county\": \"North Somerset\"\n },\n {\n \"id\": \"urn:iamproperty:county:hLrOnlFfB\",\n \"county\": \"Nottinghamshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:oGMGorIRg\",\n \"county\": \"Durham\"\n },\n {\n \"id\": \"urn:iamproperty:county:eBaLXgG8Y\",\n \"county\": \"Isle of Wight\"\n },\n {\n \"id\": \"urn:iamproperty:county:NMsdqInpw\",\n \"county\": \"Northamptonshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:xRBQIke3k\",\n \"county\": \"Warwickshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:R7yUpOlb4\",\n \"county\": \"Berwickshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:S9DHMO2Hh\",\n \"county\": \"East Sussex\"\n },\n {\n \"id\": \"urn:iamproperty:county:rj4pK09x7\",\n \"county\": \"Denbighshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:vuduFOMex\",\n \"county\": \"Lanarkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:5W66e6apO\",\n \"county\": \"East Riding of Yorkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:Hb6eqUJQj\",\n \"county\": \"North Ayrshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:fwRrCvJ4C\",\n \"county\": \"Greater Manchester\"\n },\n {\n \"id\": \"urn:iamproperty:county:aekGxogbo\",\n \"county\": \"East Renfrewshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:f3srYWllA\",\n \"county\": \"Cardiff\"\n },\n {\n \"id\": \"urn:iamproperty:county:DhVZEpSj5\",\n \"county\": \"West Lothian\"\n },\n {\n \"id\": \"urn:iamproperty:county:URWWHN7s0\",\n \"county\": \"Dorset\"\n },\n {\n \"id\": \"urn:iamproperty:county:jYK8wiDnY\",\n \"county\": \"Leicestershire\"\n },\n {\n \"id\": \"urn:iamproperty:county:048PGRA4X\",\n \"county\": \"Blaenau Gwent\"\n },\n {\n \"id\": \"urn:iamproperty:county:wrHCVsCva\",\n \"county\": \"Berkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:cCH4TjJ9q\",\n \"county\": \"Norfolk\"\n },\n {\n \"id\": \"urn:iamproperty:county:mvHEsdXhM\",\n \"county\": \"Suffolk\"\n },\n {\n \"id\": \"urn:iamproperty:county:faXBprr9q\",\n \"county\": \"East Ayrshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:5wGBTbwou\",\n \"county\": \"Conwy\"\n },\n {\n \"id\": \"urn:iamproperty:county:5YXi0mQkk\",\n \"county\": \"Cheshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:fuYiP18oc\",\n \"county\": \"Bridgend\"\n },\n {\n \"id\": \"urn:iamproperty:county:QaX0cXbOV\",\n \"county\": \"West Yorkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:Lo7JLx9og\",\n \"county\": \"South Gloucestershire\"\n },\n {\n \"id\": \"urn:iamproperty:county:B64E1f4T3\",\n \"county\": \"Merthyr Tydfil\"\n },\n {\n \"id\": \"urn:iamproperty:county:vacNt3Iie\",\n \"county\": \"Banffshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:HSETldFbK\",\n \"county\": \"Staffordshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:njUDNfLD3\",\n \"county\": \"Western Isles\"\n },\n {\n \"id\": \"urn:iamproperty:county:smlxqTdZE\",\n \"county\": \"Bath and North East Somerset\"\n },\n {\n \"id\": \"urn:iamproperty:county:2asBQ47Jh\",\n \"county\": \"South Yorkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:5hYXpCuJ7\",\n \"county\": \"Stirling\"\n },\n {\n \"id\": \"urn:iamproperty:county:lhFYBMSuq\",\n \"county\": \"Powys\"\n },\n {\n \"id\": \"urn:iamproperty:county:PamgW3ebq\",\n \"county\": \"Vale of Glamorgan\"\n },\n {\n \"id\": \"urn:iamproperty:county:zIasSsrlZ\",\n \"county\": \"Clackmannanshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:WZUQNZxOy\",\n \"county\": \"Lancashire\"\n },\n {\n \"id\": \"urn:iamproperty:county:HoTgPpS58\",\n \"county\": \"Hertfordshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:oNrluXBHA\",\n \"county\": \"Fife\"\n },\n {\n \"id\": \"urn:iamproperty:county:2OxE9CASK\",\n \"county\": \"Neath Port Talbot\"\n },\n {\n \"id\": \"urn:iamproperty:county:9J7YezLBA\",\n \"county\": \"Highland\"\n },\n {\n \"id\": \"urn:iamproperty:county:7IfpMh1Gx\",\n \"county\": \"Ceredigion\"\n },\n {\n \"id\": \"urn:iamproperty:county:ZwQ3mTTE2\",\n \"county\": \"Orkney Islands\"\n },\n {\n \"id\": \"urn:iamproperty:county:ZyNmV7NCn\",\n \"county\": \"North Yorkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:LwrVeERzu\",\n \"county\": \"Pembrokeshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:porOuVsSM\",\n \"county\": \"Wrexham\"\n },\n {\n \"id\": \"urn:iamproperty:county:3o4Rx4sO8\",\n \"county\": \"Renfrewshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:loLWjKyk8\",\n \"county\": \"Oxfordshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:AN7Bz5tny\",\n \"county\": \"Moray\"\n },\n {\n \"id\": \"urn:iamproperty:county:RGzSdoQp3\",\n \"county\": \"Ayrshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:nEBK48RIK\",\n \"county\": \"Caithness\"\n },\n {\n \"id\": \"urn:iamproperty:county:a90XABrjs\",\n \"county\": \"West Dunbartonshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:Qjkb0wsyP\",\n \"county\": \"West Sussex\"\n },\n {\n \"id\": \"urn:iamproperty:county:fNJcfheKq\",\n \"county\": \"Cornwall\"\n },\n {\n \"id\": \"urn:iamproperty:county:lx0kEWvsb\",\n \"county\": \"Anglesey\"\n },\n {\n \"id\": \"urn:iamproperty:county:rkvgiBRHz\",\n \"county\": \"Caerphilly\"\n },\n {\n \"id\": \"urn:iamproperty:county:kx0t2zRVP\",\n \"county\": \"Tyne and Wear\"\n },\n {\n \"id\": \"urn:iamproperty:county:lVb75qnOW\",\n \"county\": \"Merseyside\"\n },\n {\n \"id\": \"urn:iamproperty:county:M7eZzrA8u\",\n \"county\": \"Wiltshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:8Uo4sJw3x\",\n \"county\": \"Perth and Kinross\"\n },\n {\n \"id\": \"urn:iamproperty:county:73kc3w0cu\",\n \"county\": \"Dumfries & Galloway\"\n },\n {\n \"id\": \"urn:iamproperty:county:VFjExDeTO\",\n \"county\": \"Swansea\"\n },\n {\n \"id\": \"urn:iamproperty:county:lzsJuaRiS\",\n \"county\": \"Isles of Scilly\"\n },\n {\n \"id\": \"urn:iamproperty:county:abvvK0ZwH\",\n \"county\": \"Worcestershire\"\n },\n {\n \"id\": \"urn:iamproperty:county:1FKCbFkt2\",\n \"county\": \"Scottish Borders\"\n },\n {\n \"id\": \"urn:iamproperty:county:WKaOjrTLM\",\n \"county\": \"Essex\"\n },\n {\n \"id\": \"urn:iamproperty:county:0F00szlVA\",\n \"county\": \"South Ayrshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:KDtAS0c8U\",\n \"county\": \"Inverclyde\"\n },\n {\n \"id\": \"urn:iamproperty:county:Md88sraTz\",\n \"county\": \"Shetland Islands\"\n },\n {\n \"id\": \"urn:iamproperty:county:LzzEE6zpp\",\n \"county\": \"Herefordshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:lXaRRDNrq\",\n \"county\": \"Angus\"\n },\n {\n \"id\": \"urn:iamproperty:county:A5B4FFytC\",\n \"county\": \"Surrey\"\n },\n {\n \"id\": \"urn:iamproperty:county:B3siky9El\",\n \"county\": \"Kent\"\n },\n {\n \"id\": \"urn:iamproperty:county:V9njlL3kq\",\n \"county\": \"Northumberland\"\n },\n {\n \"id\": \"urn:iamproperty:county:WJiolIFFI\",\n \"county\": \"Flintshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:4lXGX7NbU\",\n \"county\": \"Gwynedd\"\n },\n {\n \"id\": \"urn:iamproperty:county:7gzISbzTK\",\n \"county\": \"Lincolnshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:D5GgqTxzN\",\n \"county\": \"East Dunbartonshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:hhwXe4hTH\",\n \"county\": \"Somerset\"\n },\n {\n \"id\": \"urn:iamproperty:county:nECEnleYv\",\n \"county\": \"Midlothian\"\n },\n {\n \"id\": \"urn:iamproperty:county:2jksb8BIf\",\n \"county\": \"Cumbria\"\n },\n {\n \"id\": \"urn:iamproperty:county:ttfY8qr15\",\n \"county\": \"Bedfordshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:YhQVg1amj\",\n \"county\": \"West Midlands\"\n },\n {\n \"id\": \"urn:iamproperty:county:EnbDIubYS\",\n \"county\": \"North Lanarkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:5SdVf3hnm\",\n \"county\": \"Kincardineshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:BPedWUQXc\",\n \"county\": \"Dunbartonshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:YLngqBWd4\",\n \"county\": \"Hampshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:zBZHWiWon\",\n \"county\": \"Buckinghamshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:kLes1W5ny\",\n \"county\": \"East Lothian\"\n },\n {\n \"id\": \"urn:iamproperty:county:yCMA4ANpN\",\n \"county\": \"Rutland\"\n },\n {\n \"id\": \"urn:iamproperty:county:jhourkJ4W\",\n \"county\": \"Torfaen\"\n },\n {\n \"id\": \"urn:iamproperty:county:aC8dF3IVE\",\n \"county\": \"Newport\"\n },\n {\n \"id\": \"urn:iamproperty:county:AnfqGRnhm\",\n \"county\": \"Argyll & Bute\"\n },\n {\n \"id\": \"urn:iamproperty:county:5BjmQe9mS\",\n \"county\": \"Gloucestershire\"\n },\n {\n \"id\": \"urn:iamproperty:county:G7WiUO5Sh\",\n \"county\": \"Cleveland\"\n },\n {\n \"id\": \"urn:iamproperty:county:zu7zHJPWh\",\n \"county\": \"Shropshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:Bt301fwoy\",\n \"county\": \"Greater London\"\n },\n {\n \"id\": \"urn:iamproperty:county:LXHPqo5nj\",\n \"county\": \"City of Edinburgh\"\n },\n {\n \"id\": \"urn:iamproperty:county:YejLSQLAx\",\n \"county\": \"Aberdeen City\"\n },\n {\n \"id\": \"urn:iamproperty:county:o5lgD8dv7\",\n \"county\": \"Dundee City\"\n },\n {\n \"id\": \"urn:iamproperty:county:0HPMQtb09\",\n \"county\": \"Falkirk\"\n },\n {\n \"id\": \"urn:iamproperty:county:z1rPhQlGB\",\n \"county\": \"Glasgow City\"\n },\n {\n \"id\": \"urn:iamproperty:county:CskSiG5W0\",\n \"county\": \"Brecknockshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:zulaN5fgu\",\n \"county\": \"Caernarfonshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:D1YYNRchZ\",\n \"county\": \"Cardiganshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:3DDFfQzoP\",\n \"county\": \"Clwyd\"\n },\n {\n \"id\": \"urn:iamproperty:county:hBr4CCduy\",\n \"county\": \"Dyfed\"\n },\n {\n \"id\": \"urn:iamproperty:county:7wcgGTpU9\",\n \"county\": \"Antrim\"\n },\n {\n \"id\": \"urn:iamproperty:county:PKM8DGZbI\",\n \"county\": \"Armagh\"\n },\n {\n \"id\": \"urn:iamproperty:county:LrvLXtQv4\",\n \"county\": \"Down\"\n },\n {\n \"id\": \"urn:iamproperty:county:HXDwhW1QG\",\n \"county\": \"Fermanagh\"\n },\n {\n \"id\": \"urn:iamproperty:county:eRHjMdT0e\",\n \"county\": \"Londonderry\"\n },\n {\n \"id\": \"urn:iamproperty:county:Xqs7aJsen\",\n \"county\": \"Tyrone\"\n },\n {\n \"id\": \"urn:iamproperty:county:rYAgcPlXZ\",\n \"county\": \"Middlesex\"\n }\n];\nlet countriesString = '';\ncountries.forEach((country) => {\n countriesString += `<option value=\"${country['id']}\" data-value=\"${country['country_name']}\">${country['country_name']}</option>`;\n});\nlet countiesString = '';\ncounties.forEach((county) => {\n countiesString += `<option value=\"${county['id']}\" data-value=\"${county['county']}\">${county['county']}</option>`;\n});\nwindow.dataLayer = window.dataLayer || [];\nwindow.dataLayer.push({\n event: 'customElementRegistered',\n element: 'STD Address Lookup',\n});\nclass iamSTDAddressLookup extends HTMLElement {\n constructor() {\n super();\n /*\n this.attachShadow({ mode: 'open' });\n \n const template = document.createElement('template');\n template.innerHTML = `\n <style>\n \n </style>\n `;\n this.shadowRoot?.appendChild(template.content.cloneNode(true));\n */\n }\n connectedCallback() {\n if (!window.customElements.get(`iam-address-lookup`))\n window.customElements.define(`iam-address-lookup`, iamAddressLookup);\n const currentContent = this.innerHTML;\n this.innerHTML = `<iam-address-lookup \n class=\"${this.getAttribute('class')}\" \n data-url=\"/standardaddress.json?search_query=\" \n data-postcode=\"true\" \n data-min-chars=\"5\" \n ${this.hasAttribute('data-title') ? `data-title='${this.getAttribute('data-title')}'` : `data-title='Find an address by postcode'`}\n data-placeholder=\"UK, Isle of Man, & Channel Islands \" \n ${this.hasAttribute('data-manual') ? 'data-manual' : ''} \n ${this.hasAttribute('data-allow-manual') ? 'data-allow-manual' : ''} \n ${this.hasAttribute('data-use') ? `data-use='${this.getAttribute('data-use')}'` : ''} \n ${this.hasAttribute('data-use-label') ? `data-use-label='${this.getAttribute('data-use-label')}'` : ''} \n ${this.hasAttribute('data-postcode-value') ? `data-postcode-value='${this.getAttribute('data-postcode-value')}'` : ''}\n ${this.hasAttribute('data-list-class') ? `data-list-class='${this.getAttribute('data-list-class')}'` : ''}\n ${this.hasAttribute('data-input-class') ? `data-input-class='${this.getAttribute('data-input-class')}'` : ''}\n ${this.hasAttribute('data-error-msg') ? `data-error-msg='${this.getAttribute('data-error-msg')}'` : ''}\n ${this.hasAttribute('data-use-default') ? `data-use-default` : ''}\n ${this.hasAttribute('data-force-manual') ? `data-force-manual` : ''}\n ${this.hasAttribute('data-matched') ? `data-matched='${this.getAttribute('data-matched')}'` : ''}\n ${this.hasAttribute('data-matched-label') ? `data-matched-label='${this.getAttribute('data-matched-label')}'` : ''}\n data-postcode-lookup-label=\"Back to UK postcode lookup\">\n\n <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>\n <span class=\"h3 pb-2\">Street address</span>\n\n <fieldset class=\"atleastone mb-3\">\n <span class=\"invalid-feedback\">You must complete at least one of the highlighted fields.</span>\n\n <span class=\"hint mb-4\">Please ensure details are provided for at least one of these fields.</span>\n\n <label class=\"mb-1\">Flat number <input name=\"sub_building_name\" type=\"text\" data-readonly data-required /></label>\n <span class=\"hint mb-2\">Flat, unit or floor number (e.g. Flat 5, or Floor 6)</span>\n \n <label class=\"mb-1\">Building name <input name=\"building_name\" type=\"text\" data-required maxlength=\"50\"/></label>\n <span class=\"hint mb-2\">Name of the house or building</span>\n\n <label>House Number <input name=\"building_number\" type=\"text\" data-required data-readonly maxlength=\"50\"/></label>\n <span class=\"hint mb-2\">House or street number (e.g. 42)</span>\n\n <label class=\"mb-1\">Street 1 <input name=\"dependent_thoroughfare\" type=\"text\" data-readonly data-required maxlength=\"81\"/></label>\n <span class=\"hint mb-2\">Additional street name </span>\n\n <label class=\"mb-1\">Street 2 <input name=\"thoroughfare\" type=\"text\" data-readonly data-required maxlength=\"81\"/></label>\n <span class=\"hint mb-2\">Primary street name</span>\n </fieldset>\n\n\n <span class=\"h3 pb-2\">Locality details</span>\n <label>Area${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name=\"dependent_locality\" type=\"text\" maxlength=\"35\" data-readonly/></label>\n <label>Village${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name=\"locality\" type=\"text\" maxlength=\"35\" data-readonly/></label>\n <label>Town / City${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name=\"post_town\" type=\"text\" maxlength=\"30\" data-readonly/></label>\n <label>County${this.hasAttribute('data-show-required') && this.hasAttribute('data-county-required') ? '*' : (!this.hasAttribute('data-show-required') && !this.hasAttribute('data-county-required') ? ' (optional)' : '')} \n <select name=\"postal_county\" ${this.hasAttribute('data-county-required') ? 'data-required' : ''} data-readonly>\n <option></option> \n ${countiesString}\n </select></label>\n <label>Postcode${this.hasAttribute('data-show-required') ? '*' : ''} <input name=\"postcode\" type=\"text\" ${!this.hasAttribute('data-required') || this.hasAttribute('data-required') && this.getAttribute('data-required') == 'false' ? 'required data-required' : ''} data-readonly maxlength=\"8\" ${this.hasAttribute('data-required') ? ' required' : ''}/></label>\n <label>Country${this.hasAttribute('data-show-required') && this.hasAttribute('data-country-required') ? '*' : (!this.hasAttribute('data-show-required') && !this.hasAttribute('data-county-required') ? ' (optional)' : '')} \n <select name=\"region\" data-readonly ${this.hasAttribute('data-country-required') ? 'data-required' : ''}>\n <option value=\"\"></option>\n <option value=\"urn:iamproperty:region:qo7jMNaA4\" data-value=\"England\">England</option>\n <option value=\"urn:iamproperty:region:JPBkFjL6I\" data-value=\"Scotland\">Scotland</option>\n <option value=\"urn:iamproperty:region:3lqe2D3qO\" data-value=\"Wales\">Wales</option>\n <option value=\"urn:iamproperty:region:Tm5pOBfK9\" data-value=\"Northern Ireland\">Northern Ireland</option>\n <option value=\"urn:iamproperty:region:ZwIRAnNJo\" data-value=\"Channel Islands\">Channel Islands</option>\n <option value=\"urn:iamproperty:region:8CIOi1khw\" data-value=\"Jersey\">Jersey</option>\n <option value=\"urn:iamproperty:region:qHdx7tNtL\" data-value=\"Guernsey\">Guernsey</option>\n <option value=\"urn:iamproperty:region:DH6LU70lY\" data-value=\"Isle of Man\">Isle of Man</option>\n </select>\n </label>\n\n ${this.hasAttribute('data-allow-overseas') ?\n `<fieldset class=\"overseas\">\n\n <span class=\"h3 pb-2\">Street address</span>\n\n <fieldset class=\"overseas-atleastone\">\n <span class=\"invalid-feedback\">You must complete at least one of the highlighted fields.</span>\n\n <span class=\"hint mb-4\">Please ensure details are provided for at least one of these fields.</span>\n\n\n <label class=\"mb-1\">Flat number${this.hasAttribute('data-show-required') ? '*' : ''} <input name=\"overseas[sub_building_name]\" type=\"text\" data-overseas-required /></label>\n <span class=\"hint d-block mb-2\">Flat, unit or floor number (e.g. Flat 5, or Floor 6)</span>\n\n <label class=\"mb-1\">Building name${this.hasAttribute('data-show-required') ? '*' : ''} <input name=\"overseas[building_name]\" type=\"text\" data-overseas-required maxlength=\"50\" /></label>\n <span class=\"hint d-block mb-2\">Name of the house or building</span>\n\n <label class=\"mb-1\">House number${this.hasAttribute('data-show-required') ? '*' : ''} <input name=\"overseas[building_number]\" type=\"text\" data-overseas-required maxlength=\"50\" /></label>\n <span class=\"hint d-block mb-2\">House or street number (e.g. 42)</span>\n\n <label class=\"mb-2\">Street name${this.hasAttribute('data-show-required') ? '*' : ''} <input name=\"overseas[thoroughfare]\" type=\"text\" data-overseas-required maxlength=\"81\" /></label>\n </fieldset>\n <span class=\"h3 pb-2\">Locality details</span>\n\n\n\n <label class=\"mb-1\">Locality${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name=\"overseas[dependent_locality]\" type=\"text\" /></label>\n <span class=\"hint d-block mb-2\">Main locality, such as the village, suburb, or district</span>\n\n\n <label>Town / City${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name=\"overseas[post_town]\" type=\"text\" maxlength=\"30\" /></label>\n <label>State / Province / Region${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name=\"overseas[double_dependent_locality]\" type=\"text\" /></label>\n <label>Postcode / ZIP code${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name=\"overseas[zip_code]\" type=\"text\" /></label>\n \n <label>Country <select name=\"overseas[country_code]\" data-overseas-required>\n <option value=\"\"></option>\n ${countriesString}\n <option value=\"urn:als:country:ndjIqa72\" data-value=\"Poland\">Poland</option>\n </select></label>\n </fieldset>\n\n <button slot=\"actions\" type=\"button\" id=\"overseasToggle\" class=\"link toggleOverseas\">Use overseas address</button>` : ''}\n ${this.hasAttribute('data-address-unknown') ? `<label slot=\"actions\"><input type=\"checkbox\" value=\"true\" name=\"${this.getAttribute('data-address-unknown')}\" ${this.hasAttribute('data-address-unknown-checked') ? 'checked=\"checked\"' : ''}/> Address unknown</label>` : ``}\n <div class=\"bg-light text-center px-3\" slot=\"afterList\">\n <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>\n ${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>` : ''}\n </div>\n <div class=\"bg-light text-center px-3\" slot=\"beforeList\">\n <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>\n </div>\n ${currentContent}\n </iam-address-lookup>`;\n const addressComponent = this.querySelector('iam-address-lookup');\n const overseasToggle = this.querySelector('#overseasToggle');\n const overseasToggleInline = this.querySelector('#overseasToggleInline');\n const languageToggle = this.querySelector('#languageToggle');\n const atleastone = this.querySelector('.overseas-atleastone');\n const overseasFields = this.querySelector('.overseas');\n const openOverseas = () => {\n const updateEvent = new CustomEvent('open-manual');\n addressComponent.dispatchEvent(updateEvent);\n this.classList.add('show-overseas');\n Array.from(addressComponent.querySelectorAll('[data-required]')).forEach((input) => {\n input.removeAttribute('required');\n });\n Array.from(overseasFields.querySelectorAll('[data-overseas-required]')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n };\n overseasToggle === null || overseasToggle === void 0 ? void 0 : overseasToggle.addEventListener('click', () => {\n if (!this.classList.contains('show-overseas')) {\n openOverseas();\n }\n });\n overseasToggleInline === null || overseasToggleInline === void 0 ? void 0 : overseasToggleInline.addEventListener('click', () => {\n if (!this.classList.contains('show-overseas')) {\n openOverseas();\n }\n });\n addressComponent === null || addressComponent === void 0 ? void 0 : addressComponent.addEventListener('switch-to-lookup', () => {\n this.classList.remove('show-overseas');\n Array.from(overseasFields.querySelectorAll('[data-overseas-required]')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n });\n languageToggle === null || languageToggle === void 0 ? void 0 : languageToggle.addEventListener('click', () => {\n if (!addressComponent.classList.contains('show-welsh')) {\n addressComponent.classList.add('show-welsh');\n addressComponent === null || addressComponent === void 0 ? void 0 : addressComponent.setAttribute('data-url-2', '&welsh_language=true');\n }\n else {\n addressComponent.classList.remove('show-welsh');\n addressComponent === null || addressComponent === void 0 ? void 0 : addressComponent.setAttribute('data-url-2', '&welsh_language=false');\n }\n const updateEvent = new CustomEvent('search');\n addressComponent.dispatchEvent(updateEvent);\n languageToggle.focus();\n });\n atleastone === null || atleastone === void 0 ? void 0 : atleastone.addEventListener('input', (e) => {\n Array.from(atleastone.querySelectorAll('[data-overseas-required]')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n if (atleastone.querySelector('input:valid, input.is-valid')) {\n Array.from(atleastone.querySelectorAll('input')).forEach(element => {\n element.removeAttribute('required');\n });\n }\n else {\n Array.from(atleastone.querySelectorAll('input')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n }\n });\n // If the address unknown checkbox if checked then remove any required fields so you can post the form\n if (this.hasAttribute('data-address-unknown')) {\n const addressUnknownInput = this.querySelector(`[name=\"${this.getAttribute('data-address-unknown')}\"]`);\n if (addressUnknownInput && addressUnknownInput.checked) {\n Array.from(this.querySelectorAll('[required]')).forEach(element => {\n element.removeAttribute('required');\n element.setAttribute('data-not-unknown-required', 'true');\n });\n }\n addressUnknownInput === null || addressUnknownInput === void 0 ? void 0 : addressUnknownInput.addEventListener('change', (event) => {\n if (addressUnknownInput.checked) {\n Array.from(this.querySelectorAll('[required]')).forEach(element => {\n element.removeAttribute('required');\n element.setAttribute('data-not-unknown-required', 'true');\n });\n const updateEvent = new CustomEvent('address-unknown');\n this.dispatchEvent(updateEvent);\n }\n else {\n Array.from(this.querySelectorAll('[data-not-unknown-required')).forEach(element => {\n element.setAttribute('required', 'true');\n });\n const updateEvent = new CustomEvent('address-known');\n this.dispatchEvent(updateEvent);\n }\n });\n }\n }\n}\nexport default iamSTDAddressLookup;\n"],"names":["advancedSelect","displayInputField","datalist","isSearch","currentFocus","option","event","optionInner","text","e","addActive","x","removeActive","i","emptyField","updateEvent","isValidPostcode","searchValue","__awaiter","thisArg","_arguments","P","generator","adopt","value","resolve","reject","fulfilled","step","rejected","result","iamAddressLookup","_a","template","_b","_c","lookup","lookupWrapper","manualWrapper","preFilledWrapper","list","listWrapper","switchManualBtn","switchLookupBtn","title","preFilledAddressBtn","preFilledAddressRemoveBtn","dataDisplayText","postcodeSubmit","errorMsg","paginationWrapper","minChars","pageNumber","atleastone","matchedAddress","matchedAddressWrapper","matchedAddressUse","matchedAddressEntered","titleElement","checkFilled","component","preFilledAddress","preFilled","input","openManualWrapper","atleastoneValidate","element","fillInputs","values","key","search","searchValue_1","args_1","paginate","limit","ajaxURL","postcode","signal","Cookies","response","listString","addresses","address","itemString","error","useCheckbox","valid","countries","counties","countriesString","country","countiesString","county","iamSTDAddressLookup","currentContent","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xB,EACI,CACI,GAAM,6BACN,aAAgB,gBACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,qBACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,kCACxB,EACI,CACI,GAAM,6BACN,aAAgB,kCACxB,EACI,CACI,GAAM,6BACN,aAAgB,wBACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,eACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,gCACxB,EACI,CACI,GAAM,6BACN,aAAgB,mBACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,cACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,gBACxB,EACI,CACI,GAAM,6BACN,aAAgB,0BACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,kBACxB,EACI,CACI,GAAM,6BACN,aAAgB,yBACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,oCACxB,EACI,CACI,GAAM,6BACN,aAAgB,cACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,uBACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,gBACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,oBACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,mBACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,6BACxB,EACI,CACI,GAAM,6BACN,aAAgB,eACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,eACxB,EACI,CACI,GAAM,6BACN,aAAgB,kBACxB,EACI,CACI,GAAM,6BACN,aAAgB,6BACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,eACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,mCACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,4BACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,yCACxB,EACI,CACI,GAAM,6BACN,aAAgB,qBACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,kCACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,eACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,6BACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,kBACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,kCACxB,EACI,CACI,GAAM,6BACN,aAAgB,uBACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,eACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,gBACxB,EACI,CACI,GAAM,6BACN,aAAgB,0BACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,qBACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,kBACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,oBACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,qBACxB,EACI,CACI,GAAM,6BACN,aAAgB,8CACxB,EACI,CACI,GAAM,6BACN,aAAgB,uBACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,4BACxB,EACI,CACI,GAAM,6BACN,aAAgB,2BACxB,EACI,CACI,GAAM,6BACN,aAAgB,kCACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,uBACxB,EACI,CACI,GAAM,6BACN,aAAgB,cACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,cACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,2BACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,iBACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,cACxB,EACI,CACI,GAAM,6BACN,aAAgB,8CACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,wBACxB,EACI,CACI,GAAM,6BACN,aAAgB,yBACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,sBACxB,EACI,CACI,GAAM,6BACN,aAAgB,2BACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,8BACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,qBACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,wBACxB,EACI,CACI,GAAM,6BACN,aAAgB,cACxB,EACI,CACI,GAAM,6BACN,aAAgB,0BACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,sBACxB,EACI,CACI,GAAM,6BACN,aAAgB,sDACxB,EACI,CACI,GAAM,6BACN,aAAgB,0BACxB,EACI,CACI,GAAM,6BACN,aAAgB,sCACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,oCACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,0BACxB,EACI,CACI,GAAM,6BACN,aAAgB,uBACxB,EACI,CACI,GAAM,6BACN,aAAgB,mBACxB,EACI,CACI,GAAM,6BACN,aAAgB,gBACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,CACA,EACMC,GAAW,CACb,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,mBAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,OAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,mBAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,QAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,kBAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,aAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,aAClB,EACI,CACI,GAAM,mCACN,OAAU,0BAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,oBAClB,EACI,CACI,GAAM,mCACN,OAAU,mBAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,QAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,WAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,OAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,uBAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,8BAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,OAClB,EACI,CACI,GAAM,mCACN,OAAU,mBAClB,EACI,CACI,GAAM,mCACN,OAAU,kBAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,MAClB,EACI,CACI,GAAM,mCACN,OAAU,mBAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,aAClB,EACI,CACI,GAAM,mCACN,OAAU,OAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,WAClB,EACI,CACI,GAAM,mCACN,OAAU,qBAClB,EACI,CACI,GAAM,mCACN,OAAU,aAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,WAClB,EACI,CACI,GAAM,mCACN,OAAU,mBAClB,EACI,CACI,GAAM,mCACN,OAAU,qBAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,kBAClB,EACI,CACI,GAAM,mCACN,OAAU,OAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,kBAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,OAClB,EACI,CACI,GAAM,mCACN,OAAU,QAClB,EACI,CACI,GAAM,mCACN,OAAU,MAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,qBAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,mBAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,WAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,WAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,gB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,KAAK,iBAAiB,YAAY,CAAC,EAAE,QAAQnC,GAAW,CAC/DA,EAAQ,gBAAgB,UAAU,EAClCA,EAAQ,aAAa,4BAA6B,MAAM,CAC5D,CAAC,EACD,MAAMnD,EAAc,IAAI,YAAY,iBAAiB,EACrD,KAAK,cAAcA,CAAW,CAClC,KACK,CACD,MAAM,KAAK,KAAK,iBAAiB,4BAA4B,CAAC,EAAE,QAAQmD,GAAW,CAC/EA,EAAQ,aAAa,WAAY,MAAM,CAC3C,CAAC,EACD,MAAMnD,EAAc,IAAI,YAAY,eAAe,EACnD,KAAK,cAAcA,CAAW,CAClC,CACJ,CAAC,CACL,CACJ,CACJ"}
1
+ {"version":3,"file":"std-address-lookup.component.min.js","sources":["../../modules/advanced-select.js","../../modules/helpers.js","../address-lookup/address-lookup.component.js","std-address-lookup.component.js"],"sourcesContent":["function advancedSelect(advancedSelect, displayInputField, datalist, isSearch = false) {\n let currentFocus = -1;\n const datalistWrapper = datalist.closest('.datalist__wrapper') ? datalist.closest('.datalist__wrapper') : datalist;\n // Hide the default datalist\n displayInputField.setAttribute('data-list', displayInputField.getAttribute('list'));\n displayInputField.setAttribute('list', '');\n if (displayInputField.hasAttribute('placeholder'))\n displayInputField.setAttribute('data-placeholder', displayInputField.getAttribute('placeholder'));\n if (displayInputField.hasAttribute('placeholder'))\n displayInputField.setAttribute('data-original-placeholder', displayInputField.getAttribute('placeholder'));\n displayInputField.addEventListener('focus', function () {\n if (displayInputField.value != \"\") {\n displayInputField.setAttribute('placeholder', displayInputField.value);\n displayInputField.setAttribute('data-value', displayInputField.value);\n }\n displayInputField.value = '';\n });\n displayInputField.addEventListener('keyup', function () {\n if (displayInputField.value != \"\") {\n displayInputField.setAttribute('data-value', displayInputField.value);\n }\n });\n displayInputField.addEventListener('blur', function () {\n if (displayInputField.hasAttribute('data-value')) {\n displayInputField.value = displayInputField.getAttribute('data-value');\n }\n if (displayInputField.hasAttribute('data-placeholder'))\n displayInputField.setAttribute('placeholder', displayInputField.getAttribute('data-placeholder'));\n });\n for (const option of datalist.options) {\n if (option.innerHTML == '')\n option.innerHTML = option.value;\n }\n datalist.addEventListener('click', function (event) {\n if (event && event.target instanceof HTMLElement && event.target.closest('option')) {\n const option = event.target.closest('option');\n displayInputField.value = option.value;\n if (typeof window.triggerDynamicEvent == 'function')\n window.triggerDynamicEvent(displayInputField);\n for (const optionInner of datalist.options) {\n optionInner.classList.remove('active');\n }\n option.classList.add('active');\n }\n });\n displayInputField.addEventListener('input', function () {\n displayInputField.removeAttribute('data-value');\n currentFocus = -1;\n const text = displayInputField.value.toUpperCase();\n for (const option of datalist.options) {\n if (option.value.toUpperCase().indexOf(text) > -1) {\n option.style.display = 'block';\n option.classList.remove('hide');\n }\n else {\n option.style.display = 'none';\n option.classList.add('hide');\n }\n }\n });\n advancedSelect.addEventListener('keydown', function (e) {\n if (e.keyCode == 40) {\n currentFocus++;\n addActive(datalist.options);\n }\n else if (e.keyCode == 38) {\n currentFocus--;\n addActive(datalist.options);\n }\n else if (e.keyCode == 13) {\n e.preventDefault();\n if (currentFocus > -1) {\n /*and simulate a click on the \"active\" item:*/\n if (datalist.options)\n datalist.options[currentFocus].click();\n }\n }\n });\n function addActive(x) {\n if (!x)\n return false;\n removeActive(x);\n if (currentFocus >= x.length)\n currentFocus = 0;\n if (currentFocus < 0)\n currentFocus = x.length - 1;\n x[currentFocus].classList.add('active');\n }\n function removeActive(x) {\n if (!x)\n return false;\n for (let i = 0; i < x.length; i++) {\n x[i].classList.remove('active');\n }\n }\n // Add the empty button\n displayInputField\n .closest('label')\n .insertAdjacentHTML('beforeend', '<button class=\"empty btn btn-action\" type=\"button\"><i class=\"fa-light fa-times me-0\"></i></button>');\n const emptyField = () => {\n displayInputField.removeAttribute('placeholder');\n if (displayInputField.hasAttribute('data-original-placeholder'))\n displayInputField.setAttribute('placeholder', displayInputField.getAttribute('data-original-placeholder'));\n displayInputField.removeAttribute('data-value');\n displayInputField.value = '';\n for (const optionInner of datalist.options) {\n optionInner.classList.remove('active');\n optionInner.removeAttribute('style');\n }\n const updateEvent = new CustomEvent('close-button-pressed');\n advancedSelect.dispatchEvent(updateEvent);\n };\n const closeBtn = advancedSelect.querySelector('.empty') ? advancedSelect.querySelector('.empty') : advancedSelect.shadowRoot.querySelector('.empty');\n closeBtn.addEventListener('click', function (e) {\n emptyField();\n });\n advancedSelect.addEventListener('empty', function (e) {\n emptyField();\n });\n}\nexport default advancedSelect;\n","/**\n * Global helper functions to help maintain and enhance framework elements.\n * @module Helpers\n */\n/**\n * Add global classes used by the CSS and later JavaScript.\n * @param {HTMLElement} body Dom element, this doesn't have to be the body but it is recommended.\n */\nexport const addBodyClasses = (body) => {\n body.classList.add('js-enabled');\n if (navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0) {\n body.classList.add('ie');\n }\n};\n/**\n * Add global events.\n * @param {HTMLElement} body Dom element, this doesn't have to be the body but it is recommended.\n */\nexport const addGlobalEvents = (body) => {\n const checkElements = function (hash) {\n const label = document.querySelector(`label[for=\"${hash.replace('#', '')}\"]`);\n const summary = document.querySelector(hash + ' summary');\n const dialog = document.querySelector(`dialog${hash}`);\n const detail = document.querySelector(`detail${hash}`);\n if (label instanceof HTMLElement)\n label.click();\n else if (summary instanceof HTMLElement)\n summary.click();\n else if (dialog instanceof HTMLElement)\n dialog.showModal();\n else if (detail instanceof HTMLElement)\n detail.addAttribute('open');\n };\n if (location.hash)\n checkElements(location.hash);\n window.addEventListener('hashchange', function () {\n checkElements(location.hash);\n }, false);\n addEventListener('popstate', (event) => {\n if (event && event.state && event.state.type && event.state.type == 'pagination') {\n const form = document.querySelector(`#${event.state.form}`);\n const pageInput = document.querySelector(`#${event.state.form} [data-pagination]`);\n if (pageInput)\n pageInput.value = event.state.page;\n else\n form.innerHTML += `<input name=\"page\" type=\"hidden\" data-pagination=\"true\" value=\"${event.state.page}\" />`;\n form.dispatchEvent(new Event('submit'));\n }\n });\n Array.from(document.querySelectorAll('form')).forEach((form) => {\n form.addEventListener('submit', (event) => {\n var _a;\n if (form.querySelector(':invalid')) {\n form.classList.add('was-validated');\n (_a = form === null || form === void 0 ? void 0 : form.querySelector('input:invalid')) === null || _a === void 0 ? void 0 : _a.scrollIntoView();\n event.preventDefault();\n }\n });\n });\n document.addEventListener('click', (event) => {\n var _a;\n if (event && event.target instanceof HTMLElement && event.target.matches('form button:not([type=button])')) {\n const form = event.target.closest('form');\n // Reset password types\n Array.from(form.querySelectorAll('[data-password-type]')).forEach((input) => {\n input.setAttribute('type', 'password');\n });\n if (form.querySelector(':invalid') ||\n form.querySelector('.pwd-checker[data-strength=\"1\"]') ||\n form.querySelector('.pwd-checker[data-strength=\"2\"]')) {\n form.classList.add('was-validated');\n (_a = form === null || form === void 0 ? void 0 : form.querySelector('input:invalid')) === null || _a === void 0 ? void 0 : _a.scrollIntoView();\n event.preventDefault();\n }\n if (form.querySelector('iam-multiselect[data-is-required][data-error]')) {\n form.classList.add('was-validated');\n event.preventDefault();\n }\n }\n });\n document.addEventListener('keydown', (e) => {\n if (e.key === 'Escape') {\n if (document.querySelector('.dialog--transactional[open], .dialog--acknowledgement[open]')) {\n e.preventDefault();\n e.stopPropagation();\n }\n }\n });\n Array.from(document.querySelectorAll('label progress')).forEach((progress) => {\n const label = progress.closest('label');\n label.setAttribute('data-percent', progress.getAttribute('value'));\n });\n};\nexport const isNumeric = function (str) {\n if (typeof str != 'string')\n return false; // we only process strings!\n return (!isNaN(str) && // use type coercion to parse the _entirety_ of the string (`parseFloat` alone does not do this)...\n !isNaN(parseFloat(str))); // ...and ensure strings of whitespace fail\n};\nexport const zeroPad = (num, places) => String(num).padStart(places, '0');\nexport const ucfirst = (str) => str.charAt(0).toUpperCase() + str.slice(1);\nexport const ucwords = (str) => str\n .split(' ')\n .map((s) => ucfirst(s))\n .join(' ');\nexport const unsnake = (str) => str.replace(/_/g, ' ');\nexport const snake = (str) => str.replace(/ /g, '_');\nexport const safeID = function (str) {\n str = str.toLowerCase();\n str = snake(str);\n str = str.replace(/\\W/g, '');\n return str;\n};\nexport const numberOfDays = function (startDateString, endDateString) {\n const convertStart = startDateString.split('/');\n const convertEnd = endDateString.split('/');\n const dateStart = new Date(convertStart[1] + '/' + convertStart[0] + '/' + convertStart[2]);\n const dateEnd = new Date(convertEnd[1] + '/' + convertEnd[0] + '/' + convertEnd[2]);\n if (dateStart == 'Invalid Date')\n throw 'Start date is not a valid date';\n if (dateEnd == 'Invalid Date')\n throw 'End date is not a valid date';\n // To calculate the time difference of two dates\n const diffTime = dateEnd.getTime() - dateStart.getTime();\n const numberOfDays = diffTime / (1000 * 3600 * 24) + 1;\n if (numberOfDays < 0)\n throw 'The start date should be before the end date';\n return numberOfDays;\n};\n// Used to get values from nested json objects\nexport const resolvePath = (object, path, defaultValue) => path\n // eslint-disable-next-line no-useless-escape\n .split(/[\\.\\[\\]\\'\\\"]/)\n .filter((p) => p)\n .reduce((o, p) => (o ? o[p] : defaultValue), object);\nexport const isTraversable = (o) => Array.isArray(o) || (o !== null && ['function', 'object'].includes(typeof o));\nexport const getSwipeDirection = (touchstartX, touchstartY, touchendX, touchendY) => {\n const limit = Math.tan(((45 * 1.5) / 180) * Math.PI);\n const pageWidth = window.innerWidth || document.body.clientWidth;\n const treshold = Math.max(1, Math.floor(0.01 * pageWidth));\n const x = touchendX - touchstartX;\n const y = touchendY - touchstartY;\n const xy = Math.abs(x / y);\n const yx = Math.abs(y / x);\n if (Math.abs(x) > treshold || Math.abs(y) > treshold) {\n if (yx <= limit) {\n if (x < 0) {\n return 'left';\n }\n else {\n return 'right';\n }\n }\n if (xy <= limit) {\n if (y < 0) {\n return 'top';\n }\n else {\n return 'bottom';\n }\n }\n }\n else {\n return 'tap';\n }\n};\nexport const uniqueID = (index = 1) => {\n const ID = Math.floor(Math.random() * Date.now() * (index + 1));\n return ID;\n};\nexport const isValidPostcode = (searchValue) => {\n const regexp = /^([A-Z][A-HJ-Y]?[0-9][A-Z0-9]? ?[0-9][A-Z]{2}|GIR ?0A{2})$/gmi;\n return regexp.test(searchValue.trim());\n};\n","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport Cookies from 'js-cookie';\nimport advancedSelect from '../../modules/advanced-select.js';\nimport { isValidPostcode } from '../../modules/helpers.js';\nwindow.dataLayer = window.dataLayer || [];\nwindow.dataLayer.push({\n event: 'customElementRegistered',\n element: 'Address Lookup',\n});\nclass iamAddressLookup extends HTMLElement {\n constructor() {\n var _a;\n super();\n this.attachShadow({ mode: 'open' });\n const assetLocation = document.body.hasAttribute('data-assets-location')\n ? document.body.getAttribute('data-assets-location')\n : '/assets';\n const loadCSS = `@import \"${assetLocation}/css/components/address-lookup.component.css\";`;\n const template = document.createElement('template');\n template.innerHTML = `\n <style>\n ${loadCSS}\n \n </style>\n <link rel=\"stylesheet\" href=\"https://kit.fontawesome.com/26fdbf0179.css\" crossorigin=\"anonymous\" />\n <div class=\"wrapper\">\n\n <div class=\"matched d-none\">\n <div class=\"inner\">\n <p><span class=\"matched-address\"></span></p>\n <button class=\"link use-matched\">Yes, use this address</button>\n <button class=\"link use-entered\">No, use the address I entered</button>\n </div>\n <span class=\"invalid-feedback\">We found a matching address based on the details you entered. Is this address correct?</span>\n </div>\n <div class=\"postcode-lookup was-validated\">\n <div>\n <label class=\"mb-1\"><span class=\"title text-lowercase\"></span>\n <span>\n <input type=\"text\" name=\"postcode\" class=\"${this.hasAttribute('data-input-class') ? this.getAttribute('data-input-class') : ''}\" list=\"address-lookup__addressess\" autocomplete=\"one-time-code\" aria-autocomplete=\"none\" placeholder=\"${(this === null || this === void 0 ? void 0 : this.hasAttribute('data-placeholder')) ? this === null || this === void 0 ? void 0 : this.getAttribute('data-placeholder') : 'Postcode'}\" value=\"${this.hasAttribute('data-postcode-value') ? this.getAttribute('data-postcode-value') : ''}\" part=\"input\" />\n <button id=\"postcode__submit\" class=\"suffix fa-regular fa-search\" part=\"suffix\"></button>\n </span>\n </label>\n \n <span class=\"invalid-feedback mb-2\" id=\"invalid-feedback-address-lookup\">${this.hasAttribute('data-error-msg') ? this.getAttribute('data-error-msg') : 'Required address fields'}</span>\n\n <div class=\"datalist__wrapper ${this.hasAttribute('data-list-class') ? this.getAttribute('data-list-class') : ''}\" tabindex=\"0\" part=\"list-wrapper\">\n <slot name=\"beforeList\"></slot>\n <slot name=\"preloadedList\"></slot>\n <datalist id=\"address-lookup__addressess\" class=\"\"></datalist>\n <div id=\"paginationWrapper\"></div>\n <slot name=\"afterList\"></slot>\n </div>\n </div>\n <slot name=\"hint\"></slot>\n <div class=\"actions\">\n <button class=\"btn btn-tertiary switch-to-manual-btn\" type=\"button\" part=\"manualButton\">Or enter address manually</button>\n <slot name=\"actions\"></slot>\n </div>\n </div>\n\n <div class=\"manual-address pb-2 js-hide\">\n <slot part=\"contents\"></slot>\n <button class=\"btn btn-tertiary switch-to-lookup-btn\" type=\"button\" part=\"button\">${this.hasAttribute('data-postcode-lookup-label') ? this.getAttribute('data-postcode-lookup-label') : 'Use postcode lookup'}</button>\n <slot name=\"after\"></slot>\n </div>\n <div class=\"pre-filled p-2 js-hide\">\n <strong class=\"title text-primary d-block\"></strong>\n <p><span class=\"pre-filled-address\"></span>\n <button class=\"link m-0 text-primary ms-2 cursor-pointer\" type=\"button\" part=\"edit-button\">\n <i class=\"fa-regular fa-pen-to-square m-0\"></i> <span class=\"visually-hidden\">Edit</span>\n </button>\n <button class=\"link m-0 text-primary ms-2 cursor-pointer\" type=\"button\" part=\"remove-button\">\n <i class=\"fa-regular fa-trash m-0\"></i> <span class=\"visually-hidden\">Remove</span>\n </button>\n <slot name=\"prefilled\"></slot></p>\n </div>\n </div>\n `;\n (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.appendChild(template.content.cloneNode(true));\n }\n connectedCallback() {\n return __awaiter(this, void 0, void 0, function* () {\n var _a, _b, _c;\n const lookup = this.shadowRoot.querySelector('[name=\"postcode\"]');\n const lookupWrapper = this.shadowRoot.querySelector('.postcode-lookup');\n const manualWrapper = this.shadowRoot.querySelector('.manual-address');\n const preFilledWrapper = this.shadowRoot.querySelector('.pre-filled');\n const list = this.querySelector('datalist[slot=\"preloadedList\"]') ? this.querySelector('datalist[slot=\"preloadedList\"]') : this.shadowRoot.querySelector('.datalist__wrapper datalist');\n const listWrapper = this.shadowRoot.querySelector('.datalist__wrapper');\n const switchManualBtn = this.shadowRoot.querySelector('.switch-to-manual-btn');\n const switchLookupBtn = this.shadowRoot.querySelector('.switch-to-lookup-btn');\n const title = this.hasAttribute('data-title') ? this.getAttribute('data-title') : 'Find an address';\n const preFilledAddressBtn = this.shadowRoot.querySelector('[part=\"edit-button\"]');\n const preFilledAddressRemoveBtn = this.shadowRoot.querySelector('[part=\"remove-button\"]');\n const dataDisplayText = this.hasAttribute('data-display-text');\n const postcodeSubmit = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('#postcode__submit');\n const errorMsg = (_b = this.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('#invalid-feedback-address-lookup');\n const paginationWrapper = (_c = this.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('#paginationWrapper');\n const minChars = this.hasAttribute('data-min-chars') ? parseInt(this.getAttribute('data-min-chars')) : 3;\n let pageNumber = 1;\n const atleastone = this.querySelector('.atleastone');\n const matchedAddress = this.shadowRoot.querySelector('.matched-address');\n const matchedAddressWrapper = this.shadowRoot.querySelector('.matched');\n const matchedAddressUse = this.shadowRoot.querySelector('.matched .use-matched');\n const matchedAddressEntered = this.shadowRoot.querySelector('.matched .use-entered');\n Array.from(this.shadowRoot.querySelectorAll('.title')).forEach((titleElement) => {\n titleElement.innerHTML = title;\n });\n // #region functions\n function checkFilled(component) {\n const preFilledAddress = component.shadowRoot.querySelector('.pre-filled-address');\n let preFilled = true;\n preFilledAddress.innerHTML = '';\n Array.from(component.querySelectorAll('input[required],input[data-required],select[required],select[data-required]')).forEach((input) => {\n let value = input.hasAttribute('data-value') ? input.getAttribute('data-value') : input.value;\n if (input.tagName == \"SELECT\" && component.querySelector(`[value=\"${input.value}\"][data-value]`))\n value = component.querySelector(`[value=\"${input.value}\"][data-value]`).getAttribute('data-value');\n if (!value) {\n if (input.closest('.atleastone')) {\n if (!atleastone.querySelector('input:valid, input.is-valid')) {\n preFilled = false;\n }\n }\n else {\n preFilled = false;\n }\n }\n else {\n preFilledAddress.innerHTML += value + (/^-?\\d+$/.test(value) ? ' ' : ', ');\n }\n });\n preFilledAddress.innerHTML = preFilledAddress.innerHTML.slice(0, -2);\n // If has label then use that\n if (preFilled) {\n if (component.querySelector('[name=\"label\"]'))\n preFilledAddress.innerHTML = component.querySelector('[name=\"label\"]').value;\n // If has label then use that\n preFilledWrapper.classList.remove('js-hide');\n lookupWrapper.classList.add('js-hide');\n manualWrapper.classList.add('js-hide');\n }\n }\n function openManualWrapper() {\n lookupWrapper.classList.add('js-hide');\n manualWrapper.classList.remove('js-hide');\n Array.from(manualWrapper.querySelectorAll('[data-required]')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n manualWrapper.scrollIntoView();\n }\n const atleastoneValidate = () => {\n if (atleastone.querySelector('input:valid, input.is-valid')) {\n Array.from(atleastone.querySelectorAll('input')).forEach(element => {\n element.removeAttribute('required');\n });\n }\n else {\n Array.from(atleastone.querySelectorAll('input')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n }\n };\n const fillInputs = (values) => {\n lookupWrapper.classList.add('js-hide');\n manualWrapper.classList.remove('js-hide');\n Object.keys(values).forEach((key) => {\n const value = values[key];\n let input = false;\n if (this.querySelector(`[data-name=\"${key}\"]`))\n input = this.querySelector(`[data-name=\"${key}\"]`);\n else if (this.querySelector(`[data-name-alt=\"${key}\"]`))\n input = this.querySelector(`[data-name-alt=\"${key}\"]`);\n else if (this.querySelector(`[name=\"${key}\"]`))\n input = this.querySelector(`[name=\"${key}\"]`);\n if (input && input.tagName == \"SELECT\" && value.id) {\n input.value = value.id;\n }\n else if (input && value != '') {\n input.value = value;\n if (input.hasAttribute('data-readonly')) {\n input.setAttribute('readonly', true);\n input.classList.add('is-valid');\n }\n }\n else if (value != \"\") {\n this.insertAdjacentHTML('beforeend', `<input type=\"hidden\" class=\"inserted\" data-hidden name=\"${key}\" value=\"${value}\" />`);\n }\n if (this.querySelector(`[data-name-2=\"${key}\"]`))\n this.querySelector(`[data-name-2=\"${key}\"]`).value += ' ' + value;\n });\n Array.from(this.querySelectorAll('[data-required]')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n lookup.removeAttribute('required');\n if (atleastone) {\n atleastoneValidate();\n }\n if (!this.hasAttribute('data-force-manual'))\n checkFilled(this);\n };\n const search = (searchValue_1, ...args_1) => __awaiter(this, [searchValue_1, ...args_1], void 0, function* (searchValue, paginate = false) {\n // check if postcode is valid\n const limit = this.hasAttribute('data-limit') ? parseInt(this.getAttribute('data-limit')) : 100;\n if (paginate)\n pageNumber++;\n else\n pageNumber = 1;\n let ajaxURL = this.getAttribute('data-url');\n ajaxURL += `${encodeURI(searchValue)}&page[number]=${pageNumber}&page[size]=${limit}`;\n if (this.hasAttribute('data-url-2')) {\n ajaxURL += this.getAttribute('data-url-2');\n }\n const postcode = searchValue; // TODO: remove when postcode comes from response\n if (this.hasAttribute('data-postcode')) {\n if (!isValidPostcode(searchValue)) {\n return \"Invalid postcode, please enter a valid postcode\";\n }\n else {\n if (!paginate)\n list.innerHTML = \"\";\n list === null || list === void 0 ? void 0 : list.classList.add('loading');\n list === null || list === void 0 ? void 0 : list.classList.remove('noresults');\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.remove('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = \"\";\n list === null || list === void 0 ? void 0 : list.classList.remove('show-welsh-banner');\n Array.from(this.querySelectorAll('[data-required]')).forEach((input) => {\n input.removeAttribute('required');\n });\n Array.from(this.querySelectorAll('[data-readonly]')).forEach((input) => {\n input.removeAttribute('readonly');\n input.classList.remove('is-valid');\n });\n Array.from(this.querySelectorAll('.inserted')).forEach((input) => {\n input.remove();\n });\n }\n }\n this.classList.add('searched');\n this.classList.add('was-validated');\n // Setup controller vars if not already set\n if (!window.controller)\n window.controller = [];\n // Abort if controller already present for this url\n if (window.controller[ajaxURL])\n window.controller[ajaxURL].abort();\n // Create a new controller so it can be aborted if new fetch made\n window.controller[ajaxURL] = new AbortController();\n const { signal } = controller[ajaxURL];\n try {\n return yield fetch(ajaxURL, {\n signal: signal,\n method: 'get',\n credentials: 'same-origin',\n headers: new Headers({\n 'Content-Type': 'application/json',\n Accept: 'application/json',\n 'X-Requested-With': 'XMLHttpRequest',\n 'X-XSRF-TOKEN': Cookies.get('XSRF-TOKEN'),\n }),\n })\n .then((response) => response.json())\n .then((response) => {\n var _a;\n // populate datalist\n let listString = '';\n const addresses = response['data'] ? response['data'] : response;\n addresses.forEach((address) => {\n // Deal with agent platform response\n if (typeof address.attributes == 'object' && address.attributes.label) {\n const values = JSON.stringify(address.attributes);\n listString += `<option data-values='${values}' >${address.attributes.label}</option>`;\n }\n else if (typeof address.value == 'object') {\n const values = JSON.stringify(address.value);\n listString += `<option data-values='${values}'>${address['label']}, ${postcode}</option>`;\n }\n else {\n const values = JSON.stringify(address);\n if (dataDisplayText) {\n listString += `<option data-values='${values}'>${address[dataDisplayText]}, ${postcode}</option>`;\n }\n else {\n let itemString = '';\n for (const [key, value] of Object.entries(address)) {\n if (key == 'address_number_name')\n itemString += `${value} `;\n else if (key != 'postcode' && key != 'address_title' && key != 'group')\n itemString += `${value}${/^-?\\d+$/.test(value) ? '' : ','} `;\n }\n listString += `<option data-values='${values}'>${itemString}, ${postcode}</option>`; // TODO postcode should come from the response\n }\n }\n });\n if (paginate)\n list.innerHTML += listString;\n else\n list.innerHTML = listString;\n if (addresses.length) {\n list === null || list === void 0 ? void 0 : list.classList.remove('loading');\n }\n else {\n list === null || list === void 0 ? void 0 : list.classList.remove('loading');\n list === null || list === void 0 ? void 0 : list.classList.add('noresults');\n }\n // pagination\n if (response.meta && response.meta.current_page && response.meta.total_pages && response.meta.total_pages > response.meta.current_page) {\n paginationWrapper === null || paginationWrapper === void 0 ? void 0 : paginationWrapper.innerHTML = `<div class=\"bg-light text-center p-2\"><p class=\"m-0\">Showing 1-${response.meta.current_page * limit} of ${response.meta.total_results} addresses <br /><button type=\"button\" data-next=\"${response.meta.current_page + 1}\" class=\"mt-1 mb-0 btn btn-action\"><i class=\"fa-regular fa-eye me-1\"></i>Show more addresses</button></p></div>`;\n }\n else {\n paginationWrapper === null || paginationWrapper === void 0 ? void 0 : paginationWrapper.innerHTML = '';\n }\n if (response.meta && response.meta.welsh_language) {\n list === null || list === void 0 ? void 0 : list.classList.add('show-welsh-banner');\n }\n listWrapper === null || listWrapper === void 0 ? void 0 : listWrapper.focus();\n (_a = list === null || list === void 0 ? void 0 : list.querySelector('option')) === null || _a === void 0 ? void 0 : _a.focus();\n return true;\n });\n }\n catch (error) {\n console.log(error);\n return \"There has been a problem. Please try again in a few moments.\";\n }\n });\n // #endregion\n // #region check attributes and trigger functions \n if (!this.hasAttribute('data-force-manual'))\n checkFilled(this);\n this.addEventListener('filled', () => {\n if (!this.hasAttribute('data-force-manual'))\n checkFilled(this);\n });\n if (this.hasAttribute('data-use')) {\n const useLabel = this.hasAttribute('data-use-label') ? this.getAttribute('data-use-label') : 'Use saved address';\n const useCheckbox = `<div><input type=\"checkbox\" name=\"use\" id=\"use\" value=\"yes\"><label for=\"use\">${useLabel}</label></div>`;\n lookupWrapper.insertAdjacentHTML('afterbegin', useCheckbox);\n this.shadowRoot.addEventListener('change', (event) => {\n if (event && event.target instanceof HTMLElement && event.target.closest('[name=\"use\"]')) {\n const checkbox = event.target.closest('[name=\"use\"]');\n if (checkbox.checked) {\n lookupWrapper.classList.add('js-hide');\n manualWrapper.classList.remove('js-hide');\n const values = JSON.parse(this.getAttribute('data-use'));\n Object.keys(values).forEach((key) => {\n const value = values[key];\n if (this.querySelector(`[data-name=\"${key}\"]`))\n this.querySelector(`[data-name=\"${key}\"]`).value = value;\n else if (this.querySelector(`[name=\"${key}\"]`))\n this.querySelector(`[name=\"${key}\"]`).value = value;\n });\n }\n }\n });\n if (this.hasAttribute('data-use-default')) {\n lookupWrapper.querySelector('[name=\"use\"]').checked = true;\n const values = JSON.parse(this.getAttribute('data-use'));\n fillInputs(values);\n }\n }\n if (this.hasAttribute('data-manual')) {\n fillInputs({});\n }\n if (this.classList.contains('show-pagination'))\n paginationWrapper === null || paginationWrapper === void 0 ? void 0 : paginationWrapper.innerHTML = `<div class=\"bg-light text-center p-2\"><p class=\"m-0\">Showing 1-500 of 585 addresses <br /><button type=\"button\" data-next=\"2\" class=\"mt-1 mb-0 btn btn-action\"><i class=\"fa-regular fa-eye me-1\"></i>Show more addresses</button></p></div>`;\n if (this.classList.contains('scroll-to-bottom-results'))\n paginationWrapper.scrollIntoView({ container: 'nearest' });\n // #endregion\n // #region event listeners\n preFilledAddressBtn.addEventListener('click', () => {\n preFilledWrapper.classList.add('js-hide');\n openManualWrapper();\n });\n preFilledAddressRemoveBtn.addEventListener('click', () => {\n preFilledWrapper.classList.add('js-hide');\n lookupWrapper.classList.remove('js-hide');\n manualWrapper.classList.add('js-hide');\n list.innerHTML = \"\";\n list === null || list === void 0 ? void 0 : list.classList.remove('loading');\n list === null || list === void 0 ? void 0 : list.classList.remove('noresults');\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.remove('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = \"\";\n list === null || list === void 0 ? void 0 : list.classList.remove('show-welsh-banner');\n lookup.focus();\n lookup.value = \"\";\n if (lookup === null || lookup === void 0 ? void 0 : lookup.hasAttribute('data-placeholder'))\n lookup.setAttribute('placeholder', lookup === null || lookup === void 0 ? void 0 : lookup.getAttribute('data-placeholder'));\n const updateEvent = new CustomEvent('switch-to-lookup');\n this.dispatchEvent(updateEvent);\n lookupWrapper.scrollIntoView();\n });\n switchManualBtn.addEventListener('click', () => {\n openManualWrapper();\n });\n this.addEventListener('open-manual', () => {\n openManualWrapper();\n });\n switchLookupBtn.addEventListener('click', () => {\n lookupWrapper.classList.remove('js-hide');\n manualWrapper.classList.add('js-hide');\n const updateEvent = new CustomEvent('switch-to-lookup');\n this.dispatchEvent(updateEvent);\n lookupWrapper.scrollIntoView();\n });\n lookup.addEventListener('keyup', (e) => __awaiter(this, void 0, void 0, function* () {\n if (![40, 38, 13].includes(e.keyCode) && lookup.value.length >= minChars) {\n const valid = yield search(lookup.value);\n console.log(errorMsg);\n console.log(valid);\n if (valid != true) {\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.add('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = valid;\n }\n }\n if (e.keyCode == 13) {\n const valid = yield search(lookup.value);\n if (valid != true) {\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.add('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = valid;\n }\n }\n }));\n lookup.addEventListener('change', () => __awaiter(this, void 0, void 0, function* () {\n if (lookup.value.length >= minChars) {\n const valid = yield search(lookup.value);\n if (valid != true) {\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.add('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = valid;\n }\n }\n }));\n list.addEventListener('click', (e) => {\n if (e.target.tagName == \"OPTION\") {\n const values = JSON.parse(e.target.getAttribute('data-values'));\n fillInputs(values);\n if (this.shadowRoot.querySelector('[name=\"use\"]'))\n this.shadowRoot.querySelector('[name=\"use\"]').checked = false;\n }\n });\n atleastone === null || atleastone === void 0 ? void 0 : atleastone.addEventListener('input', (e) => {\n Array.from(atleastone.querySelectorAll('[data-required]')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n atleastoneValidate();\n });\n postcodeSubmit === null || postcodeSubmit === void 0 ? void 0 : postcodeSubmit.addEventListener('click', () => __awaiter(this, void 0, void 0, function* () {\n const valid = yield search(lookup.value);\n if (valid != true) {\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.add('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = valid;\n }\n }));\n this === null || this === void 0 ? void 0 : this.addEventListener('search', () => __awaiter(this, void 0, void 0, function* () {\n const valid = yield search(lookup.value);\n if (valid != true) {\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.add('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = valid;\n }\n }));\n this === null || this === void 0 ? void 0 : this.addEventListener('close-button-pressed', () => {\n list.innerHTML = \"\";\n list === null || list === void 0 ? void 0 : list.classList.remove('loading');\n list === null || list === void 0 ? void 0 : list.classList.remove('noresults');\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.remove('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = \"\";\n list === null || list === void 0 ? void 0 : list.classList.remove('show-welsh-banner');\n lookup.focus();\n });\n paginationWrapper === null || paginationWrapper === void 0 ? void 0 : paginationWrapper.addEventListener('click', (e) => __awaiter(this, void 0, void 0, function* () {\n if (e.target.tagName == \"BUTTON\") {\n const valid = yield search(lookup.value, true);\n if (valid != true) {\n lookup === null || lookup === void 0 ? void 0 : lookup.classList.add('is-invalid');\n errorMsg === null || errorMsg === void 0 ? void 0 : errorMsg.innerHTML = valid;\n }\n }\n }));\n // #endregion\n // #region Matched address\n if (this.hasAttribute('data-matched')) {\n matchedAddressWrapper === null || matchedAddressWrapper === void 0 ? void 0 : matchedAddressWrapper.classList.remove('d-none');\n if (this.hasAttribute('data-matched-label'))\n matchedAddress === null || matchedAddress === void 0 ? void 0 : matchedAddress.innerHTML = this.getAttribute('data-matched-label');\n matchedAddressEntered === null || matchedAddressEntered === void 0 ? void 0 : matchedAddressEntered.addEventListener('click', () => {\n var _a;\n matchedAddressWrapper === null || matchedAddressWrapper === void 0 ? void 0 : matchedAddressWrapper.remove();\n const useCheckbox = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('[name=\"use\"]');\n useCheckbox.checked = true;\n lookupWrapper.classList.add('js-hide');\n manualWrapper.classList.remove('js-hide');\n const values = JSON.parse(this.getAttribute('data-use'));\n Object.keys(values).forEach((key) => {\n const value = values[key];\n if (this.querySelector(`[data-name=\"${key}\"]`))\n this.querySelector(`[data-name=\"${key}\"]`).value = value;\n else if (this.querySelector(`[name=\"${key}\"]`))\n this.querySelector(`[name=\"${key}\"]`).value = value;\n });\n checkFilled(this);\n });\n matchedAddressUse === null || matchedAddressUse === void 0 ? void 0 : matchedAddressUse.addEventListener('click', () => {\n matchedAddressWrapper === null || matchedAddressWrapper === void 0 ? void 0 : matchedAddressWrapper.remove();\n const values = JSON.parse(this.getAttribute('data-matched'));\n fillInputs(values);\n checkFilled(this);\n });\n }\n else {\n matchedAddressWrapper === null || matchedAddressWrapper === void 0 ? void 0 : matchedAddressWrapper.remove();\n }\n // #endregion\n advancedSelect(this, lookup, list, true);\n });\n }\n static get observedAttributes() {\n return ['data-url'];\n }\n attributeChangedCallback(attrName, oldVal, newVal) {\n const addressComponent = this.querySelector('iam-address-lookup');\n switch (attrName) {\n case 'data-url': {\n if (oldVal != newVal && addressComponent) {\n addressComponent.setAttribute('data-url', newVal + '?search_string=');\n }\n break;\n }\n }\n }\n}\nexport default iamAddressLookup;\n","import iamAddressLookup from '../address-lookup/address-lookup.component.js';\nconst countries = [\n {\n \"id\": \"urn:iamproperty:country:AF\",\n \"country_name\": \"Afghanistan\"\n },\n {\n \"id\": \"urn:iamproperty:country:AX\",\n \"country_name\": \"Aland Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:AL\",\n \"country_name\": \"Albania\"\n },\n {\n \"id\": \"urn:iamproperty:country:DZ\",\n \"country_name\": \"Algeria\"\n },\n {\n \"id\": \"urn:iamproperty:country:AS\",\n \"country_name\": \"American Samoa\"\n },\n {\n \"id\": \"urn:iamproperty:country:AD\",\n \"country_name\": \"Andorra\"\n },\n {\n \"id\": \"urn:iamproperty:country:AO\",\n \"country_name\": \"Angola\"\n },\n {\n \"id\": \"urn:iamproperty:country:AI\",\n \"country_name\": \"Anguilla\"\n },\n {\n \"id\": \"urn:iamproperty:country:AQ\",\n \"country_name\": \"Antarctica\"\n },\n {\n \"id\": \"urn:iamproperty:country:AG\",\n \"country_name\": \"Antigua and Barbuda\"\n },\n {\n \"id\": \"urn:iamproperty:country:AR\",\n \"country_name\": \"Argentina\"\n },\n {\n \"id\": \"urn:iamproperty:country:AM\",\n \"country_name\": \"Armenia\"\n },\n {\n \"id\": \"urn:iamproperty:country:AW\",\n \"country_name\": \"Aruba\"\n },\n {\n \"id\": \"urn:iamproperty:country:AU\",\n \"country_name\": \"Australia\"\n },\n {\n \"id\": \"urn:iamproperty:country:AT\",\n \"country_name\": \"Austria\"\n },\n {\n \"id\": \"urn:iamproperty:country:AZ\",\n \"country_name\": \"Azerbaijan\"\n },\n {\n \"id\": \"urn:iamproperty:country:BS\",\n \"country_name\": \"Bahamas\"\n },\n {\n \"id\": \"urn:iamproperty:country:BH\",\n \"country_name\": \"Bahrain\"\n },\n {\n \"id\": \"urn:iamproperty:country:BD\",\n \"country_name\": \"Bangladesh\"\n },\n {\n \"id\": \"urn:iamproperty:country:BB\",\n \"country_name\": \"Barbados\"\n },\n {\n \"id\": \"urn:iamproperty:country:BY\",\n \"country_name\": \"Belarus\"\n },\n {\n \"id\": \"urn:iamproperty:country:BE\",\n \"country_name\": \"Belgium\"\n },\n {\n \"id\": \"urn:iamproperty:country:BZ\",\n \"country_name\": \"Belize\"\n },\n {\n \"id\": \"urn:iamproperty:country:BJ\",\n \"country_name\": \"Benin\"\n },\n {\n \"id\": \"urn:iamproperty:country:BM\",\n \"country_name\": \"Bermuda\"\n },\n {\n \"id\": \"urn:iamproperty:country:BT\",\n \"country_name\": \"Bhutan\"\n },\n {\n \"id\": \"urn:iamproperty:country:BO\",\n \"country_name\": \"Bolivia (Plurinational State of)\"\n },\n {\n \"id\": \"urn:iamproperty:country:BQ\",\n \"country_name\": \"Bonaire, Sint Eustatius and Saba\"\n },\n {\n \"id\": \"urn:iamproperty:country:BA\",\n \"country_name\": \"Bosnia and Herzegovina\"\n },\n {\n \"id\": \"urn:iamproperty:country:BW\",\n \"country_name\": \"Botswana\"\n },\n {\n \"id\": \"urn:iamproperty:country:BV\",\n \"country_name\": \"Bouvet Island\"\n },\n {\n \"id\": \"urn:iamproperty:country:BR\",\n \"country_name\": \"Brazil\"\n },\n {\n \"id\": \"urn:iamproperty:country:IO\",\n \"country_name\": \"British Indian Ocean Territory\"\n },\n {\n \"id\": \"urn:iamproperty:country:BN\",\n \"country_name\": \"Brunei Darussalam\"\n },\n {\n \"id\": \"urn:iamproperty:country:BG\",\n \"country_name\": \"Bulgaria\"\n },\n {\n \"id\": \"urn:iamproperty:country:BF\",\n \"country_name\": \"Burkina Faso\"\n },\n {\n \"id\": \"urn:iamproperty:country:BI\",\n \"country_name\": \"Burundi\"\n },\n {\n \"id\": \"urn:iamproperty:country:KH\",\n \"country_name\": \"Cambodia\"\n },\n {\n \"id\": \"urn:iamproperty:country:CM\",\n \"country_name\": \"Cameroon\"\n },\n {\n \"id\": \"urn:iamproperty:country:CA\",\n \"country_name\": \"Canada\"\n },\n {\n \"id\": \"urn:iamproperty:country:CV\",\n \"country_name\": \"Cabo Verde\"\n },\n {\n \"id\": \"urn:iamproperty:country:KY\",\n \"country_name\": \"Cayman Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:CF\",\n \"country_name\": \"Central African Republic\"\n },\n {\n \"id\": \"urn:iamproperty:country:TD\",\n \"country_name\": \"Chad\"\n },\n {\n \"id\": \"urn:iamproperty:country:CL\",\n \"country_name\": \"Chile\"\n },\n {\n \"id\": \"urn:iamproperty:country:CN\",\n \"country_name\": \"China\"\n },\n {\n \"id\": \"urn:iamproperty:country:CX\",\n \"country_name\": \"Christmas Island\"\n },\n {\n \"id\": \"urn:iamproperty:country:CC\",\n \"country_name\": \"Cocos (Keeling) Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:CO\",\n \"country_name\": \"Colombia\"\n },\n {\n \"id\": \"urn:iamproperty:country:KM\",\n \"country_name\": \"Comoros\"\n },\n {\n \"id\": \"urn:iamproperty:country:CG\",\n \"country_name\": \"Congo\"\n },\n {\n \"id\": \"urn:iamproperty:country:CD\",\n \"country_name\": \"Congo (Democratic Republic of the)\"\n },\n {\n \"id\": \"urn:iamproperty:country:CK\",\n \"country_name\": \"Cook Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:CR\",\n \"country_name\": \"Costa Rica\"\n },\n {\n \"id\": \"urn:iamproperty:country:CI\",\n \"country_name\": \"Côte d’Ivoire\"\n },\n {\n \"id\": \"urn:iamproperty:country:HR\",\n \"country_name\": \"Croatia\"\n },\n {\n \"id\": \"urn:iamproperty:country:CU\",\n \"country_name\": \"Cuba\"\n },\n {\n \"id\": \"urn:iamproperty:country:CW\",\n \"country_name\": \"Curaçao\"\n },\n {\n \"id\": \"urn:iamproperty:country:CY\",\n \"country_name\": \"Cyprus\"\n },\n {\n \"id\": \"urn:iamproperty:country:CZ\",\n \"country_name\": \"Czech Republic\"\n },\n {\n \"id\": \"urn:iamproperty:country:DK\",\n \"country_name\": \"Denmark\"\n },\n {\n \"id\": \"urn:iamproperty:country:DJ\",\n \"country_name\": \"Djibouti\"\n },\n {\n \"id\": \"urn:iamproperty:country:DM\",\n \"country_name\": \"Dominica\"\n },\n {\n \"id\": \"urn:iamproperty:country:DO\",\n \"country_name\": \"Dominican Republic\"\n },\n {\n \"id\": \"urn:iamproperty:country:EC\",\n \"country_name\": \"Ecuador\"\n },\n {\n \"id\": \"urn:iamproperty:country:EG\",\n \"country_name\": \"Egypt\"\n },\n {\n \"id\": \"urn:iamproperty:country:SV\",\n \"country_name\": \"El Salvador\"\n },\n {\n \"id\": \"urn:iamproperty:country:GQ\",\n \"country_name\": \"Equatorial Guinea\"\n },\n {\n \"id\": \"urn:iamproperty:country:ER\",\n \"country_name\": \"Eritrea\"\n },\n {\n \"id\": \"urn:iamproperty:country:EE\",\n \"country_name\": \"Estonia\"\n },\n {\n \"id\": \"urn:iamproperty:country:ET\",\n \"country_name\": \"Ethiopia\"\n },\n {\n \"id\": \"urn:iamproperty:country:FK\",\n \"country_name\": \"Falkland Islands (Malvinas)\"\n },\n {\n \"id\": \"urn:iamproperty:country:FO\",\n \"country_name\": \"Faroe Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:FJ\",\n \"country_name\": \"Fiji\"\n },\n {\n \"id\": \"urn:iamproperty:country:FI\",\n \"country_name\": \"Finland\"\n },\n {\n \"id\": \"urn:iamproperty:country:FR\",\n \"country_name\": \"France\"\n },\n {\n \"id\": \"urn:iamproperty:country:GF\",\n \"country_name\": \"French Guiana\"\n },\n {\n \"id\": \"urn:iamproperty:country:PF\",\n \"country_name\": \"French Polynesia\"\n },\n {\n \"id\": \"urn:iamproperty:country:TF\",\n \"country_name\": \"French Southern Territories\"\n },\n {\n \"id\": \"urn:iamproperty:country:GA\",\n \"country_name\": \"Gabon\"\n },\n {\n \"id\": \"urn:iamproperty:country:GM\",\n \"country_name\": \"Gambia\"\n },\n {\n \"id\": \"urn:iamproperty:country:GE\",\n \"country_name\": \"Georgia\"\n },\n {\n \"id\": \"urn:iamproperty:country:DE\",\n \"country_name\": \"Germany\"\n },\n {\n \"id\": \"urn:iamproperty:country:GH\",\n \"country_name\": \"Ghana\"\n },\n {\n \"id\": \"urn:iamproperty:country:GI\",\n \"country_name\": \"Gibraltar\"\n },\n {\n \"id\": \"urn:iamproperty:country:GR\",\n \"country_name\": \"Greece\"\n },\n {\n \"id\": \"urn:iamproperty:country:GL\",\n \"country_name\": \"Greenland\"\n },\n {\n \"id\": \"urn:iamproperty:country:GD\",\n \"country_name\": \"Grenada\"\n },\n {\n \"id\": \"urn:iamproperty:country:GP\",\n \"country_name\": \"Guadeloupe\"\n },\n {\n \"id\": \"urn:iamproperty:country:GU\",\n \"country_name\": \"Guam\"\n },\n {\n \"id\": \"urn:iamproperty:country:GT\",\n \"country_name\": \"Guatemala\"\n },\n {\n \"id\": \"urn:iamproperty:country:GG\",\n \"country_name\": \"Guernsey\"\n },\n {\n \"id\": \"urn:iamproperty:country:GN\",\n \"country_name\": \"Guinea\"\n },\n {\n \"id\": \"urn:iamproperty:country:GW\",\n \"country_name\": \"Guinea-Bissau\"\n },\n {\n \"id\": \"urn:iamproperty:country:GY\",\n \"country_name\": \"Guyana\"\n },\n {\n \"id\": \"urn:iamproperty:country:HT\",\n \"country_name\": \"Haiti\"\n },\n {\n \"id\": \"urn:iamproperty:country:HM\",\n \"country_name\": \"Heard Island and McDonald Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:VA\",\n \"country_name\": \"Holy See\"\n },\n {\n \"id\": \"urn:iamproperty:country:HN\",\n \"country_name\": \"Honduras\"\n },\n {\n \"id\": \"urn:iamproperty:country:HK\",\n \"country_name\": \"Hong Kong\"\n },\n {\n \"id\": \"urn:iamproperty:country:HU\",\n \"country_name\": \"Hungary\"\n },\n {\n \"id\": \"urn:iamproperty:country:IS\",\n \"country_name\": \"Iceland\"\n },\n {\n \"id\": \"urn:iamproperty:country:IN\",\n \"country_name\": \"India\"\n },\n {\n \"id\": \"urn:iamproperty:country:ID\",\n \"country_name\": \"Indonesia\"\n },\n {\n \"id\": \"urn:iamproperty:country:IR\",\n \"country_name\": \"Iran (Islamic Republic of)\"\n },\n {\n \"id\": \"urn:iamproperty:country:IQ\",\n \"country_name\": \"Iraq\"\n },\n {\n \"id\": \"urn:iamproperty:country:IE\",\n \"country_name\": \"Ireland\"\n },\n {\n \"id\": \"urn:iamproperty:country:IM\",\n \"country_name\": \"Isle of Man\"\n },\n {\n \"id\": \"urn:iamproperty:country:IL\",\n \"country_name\": \"Israel\"\n },\n {\n \"id\": \"urn:iamproperty:country:IT\",\n \"country_name\": \"Italy\"\n },\n {\n \"id\": \"urn:iamproperty:country:JM\",\n \"country_name\": \"Jamaica\"\n },\n {\n \"id\": \"urn:iamproperty:country:JP\",\n \"country_name\": \"Japan\"\n },\n {\n \"id\": \"urn:iamproperty:country:JE\",\n \"country_name\": \"Jersey\"\n },\n {\n \"id\": \"urn:iamproperty:country:JO\",\n \"country_name\": \"Jordan\"\n },\n {\n \"id\": \"urn:iamproperty:country:KZ\",\n \"country_name\": \"Kazakhstan\"\n },\n {\n \"id\": \"urn:iamproperty:country:KE\",\n \"country_name\": \"Kenya\"\n },\n {\n \"id\": \"urn:iamproperty:country:KI\",\n \"country_name\": \"Kiribati\"\n },\n {\n \"id\": \"urn:iamproperty:country:KP\",\n \"country_name\": \"Korea (Democratic People's Republic of)\"\n },\n {\n \"id\": \"urn:iamproperty:country:KR\",\n \"country_name\": \"Korea (Republic of)\"\n },\n {\n \"id\": \"urn:iamproperty:country:KW\",\n \"country_name\": \"Kuwait\"\n },\n {\n \"id\": \"urn:iamproperty:country:KG\",\n \"country_name\": \"Kyrgyzstan\"\n },\n {\n \"id\": \"urn:iamproperty:country:LA\",\n \"country_name\": \"Lao People's Democratic Republic\"\n },\n {\n \"id\": \"urn:iamproperty:country:LV\",\n \"country_name\": \"Latvia\"\n },\n {\n \"id\": \"urn:iamproperty:country:LB\",\n \"country_name\": \"Lebanon\"\n },\n {\n \"id\": \"urn:iamproperty:country:LS\",\n \"country_name\": \"Lesotho\"\n },\n {\n \"id\": \"urn:iamproperty:country:LR\",\n \"country_name\": \"Liberia\"\n },\n {\n \"id\": \"urn:iamproperty:country:LY\",\n \"country_name\": \"Libya\"\n },\n {\n \"id\": \"urn:iamproperty:country:LI\",\n \"country_name\": \"Liechtenstein\"\n },\n {\n \"id\": \"urn:iamproperty:country:LT\",\n \"country_name\": \"Lithuania\"\n },\n {\n \"id\": \"urn:iamproperty:country:LU\",\n \"country_name\": \"Luxembourg\"\n },\n {\n \"id\": \"urn:iamproperty:country:MO\",\n \"country_name\": \"Macao\"\n },\n {\n \"id\": \"urn:iamproperty:country:MK\",\n \"country_name\": \"Republic of North Macedonia\"\n },\n {\n \"id\": \"urn:iamproperty:country:MG\",\n \"country_name\": \"Madagascar\"\n },\n {\n \"id\": \"urn:iamproperty:country:MW\",\n \"country_name\": \"Malawi\"\n },\n {\n \"id\": \"urn:iamproperty:country:MY\",\n \"country_name\": \"Malaysia\"\n },\n {\n \"id\": \"urn:iamproperty:country:MV\",\n \"country_name\": \"Maldives\"\n },\n {\n \"id\": \"urn:iamproperty:country:ML\",\n \"country_name\": \"Mali\"\n },\n {\n \"id\": \"urn:iamproperty:country:MT\",\n \"country_name\": \"Malta\"\n },\n {\n \"id\": \"urn:iamproperty:country:MH\",\n \"country_name\": \"Marshall Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:MQ\",\n \"country_name\": \"Martinique\"\n },\n {\n \"id\": \"urn:iamproperty:country:MR\",\n \"country_name\": \"Mauritania\"\n },\n {\n \"id\": \"urn:iamproperty:country:MU\",\n \"country_name\": \"Mauritius\"\n },\n {\n \"id\": \"urn:iamproperty:country:YT\",\n \"country_name\": \"Mayotte\"\n },\n {\n \"id\": \"urn:iamproperty:country:MX\",\n \"country_name\": \"Mexico\"\n },\n {\n \"id\": \"urn:iamproperty:country:FM\",\n \"country_name\": \"Micronesia (Federated States of)\"\n },\n {\n \"id\": \"urn:iamproperty:country:MD\",\n \"country_name\": \"Moldova (Republic of)\"\n },\n {\n \"id\": \"urn:iamproperty:country:MC\",\n \"country_name\": \"Monaco\"\n },\n {\n \"id\": \"urn:iamproperty:country:MN\",\n \"country_name\": \"Mongolia\"\n },\n {\n \"id\": \"urn:iamproperty:country:ME\",\n \"country_name\": \"Montenegro\"\n },\n {\n \"id\": \"urn:iamproperty:country:MS\",\n \"country_name\": \"Montserrat\"\n },\n {\n \"id\": \"urn:iamproperty:country:MA\",\n \"country_name\": \"Morocco\"\n },\n {\n \"id\": \"urn:iamproperty:country:MZ\",\n \"country_name\": \"Mozambique\"\n },\n {\n \"id\": \"urn:iamproperty:country:MM\",\n \"country_name\": \"Myanmar\"\n },\n {\n \"id\": \"urn:iamproperty:country:NA\",\n \"country_name\": \"Namibia\"\n },\n {\n \"id\": \"urn:iamproperty:country:NR\",\n \"country_name\": \"Nauru\"\n },\n {\n \"id\": \"urn:iamproperty:country:NP\",\n \"country_name\": \"Nepal\"\n },\n {\n \"id\": \"urn:iamproperty:country:NL\",\n \"country_name\": \"Netherlands\"\n },\n {\n \"id\": \"urn:iamproperty:country:NC\",\n \"country_name\": \"New Caledonia\"\n },\n {\n \"id\": \"urn:iamproperty:country:NZ\",\n \"country_name\": \"New Zealand\"\n },\n {\n \"id\": \"urn:iamproperty:country:NI\",\n \"country_name\": \"Nicaragua\"\n },\n {\n \"id\": \"urn:iamproperty:country:NE\",\n \"country_name\": \"Niger\"\n },\n {\n \"id\": \"urn:iamproperty:country:NG\",\n \"country_name\": \"Nigeria\"\n },\n {\n \"id\": \"urn:iamproperty:country:NU\",\n \"country_name\": \"Niue\"\n },\n {\n \"id\": \"urn:iamproperty:country:NF\",\n \"country_name\": \"Norfolk Island\"\n },\n {\n \"id\": \"urn:iamproperty:country:MP\",\n \"country_name\": \"Northern Mariana Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:NO\",\n \"country_name\": \"Norway\"\n },\n {\n \"id\": \"urn:iamproperty:country:OM\",\n \"country_name\": \"Oman\"\n },\n {\n \"id\": \"urn:iamproperty:country:PK\",\n \"country_name\": \"Pakistan\"\n },\n {\n \"id\": \"urn:iamproperty:country:PW\",\n \"country_name\": \"Palau\"\n },\n {\n \"id\": \"urn:iamproperty:country:PS\",\n \"country_name\": \"Palestine, State of\"\n },\n {\n \"id\": \"urn:iamproperty:country:PA\",\n \"country_name\": \"Panama\"\n },\n {\n \"id\": \"urn:iamproperty:country:PG\",\n \"country_name\": \"Papua New Guinea\"\n },\n {\n \"id\": \"urn:iamproperty:country:PY\",\n \"country_name\": \"Paraguay\"\n },\n {\n \"id\": \"urn:iamproperty:country:PE\",\n \"country_name\": \"Peru\"\n },\n {\n \"id\": \"urn:iamproperty:country:PH\",\n \"country_name\": \"Philippines\"\n },\n {\n \"id\": \"urn:iamproperty:country:PN\",\n \"country_name\": \"Pitcairn\"\n },\n {\n \"id\": \"urn:iamproperty:country:PL\",\n \"country_name\": \"Poland\"\n },\n {\n \"id\": \"urn:iamproperty:country:PT\",\n \"country_name\": \"Portugal\"\n },\n {\n \"id\": \"urn:iamproperty:country:PR\",\n \"country_name\": \"Puerto Rico\"\n },\n {\n \"id\": \"urn:iamproperty:country:QA\",\n \"country_name\": \"Qatar\"\n },\n {\n \"id\": \"urn:iamproperty:country:RE\",\n \"country_name\": \"Réunion\"\n },\n {\n \"id\": \"urn:iamproperty:country:RO\",\n \"country_name\": \"Romania\"\n },\n {\n \"id\": \"urn:iamproperty:country:RU\",\n \"country_name\": \"Russian Federation\"\n },\n {\n \"id\": \"urn:iamproperty:country:RW\",\n \"country_name\": \"Rwanda\"\n },\n {\n \"id\": \"urn:iamproperty:country:BL\",\n \"country_name\": \"Saint Barthélemy\"\n },\n {\n \"id\": \"urn:iamproperty:country:SH\",\n \"country_name\": \"Saint Helena, Ascension and Tristan da Cunha\"\n },\n {\n \"id\": \"urn:iamproperty:country:KN\",\n \"country_name\": \"Saint Kitts and Nevis\"\n },\n {\n \"id\": \"urn:iamproperty:country:LC\",\n \"country_name\": \"Saint Lucia\"\n },\n {\n \"id\": \"urn:iamproperty:country:MF\",\n \"country_name\": \"Saint Martin (French part)\"\n },\n {\n \"id\": \"urn:iamproperty:country:PM\",\n \"country_name\": \"Saint Pierre and Miquelon\"\n },\n {\n \"id\": \"urn:iamproperty:country:VC\",\n \"country_name\": \"Saint Vincent and the Grenadines\"\n },\n {\n \"id\": \"urn:iamproperty:country:WS\",\n \"country_name\": \"Samoa\"\n },\n {\n \"id\": \"urn:iamproperty:country:SM\",\n \"country_name\": \"San Marino\"\n },\n {\n \"id\": \"urn:iamproperty:country:ST\",\n \"country_name\": \"Sao Tome and Principe\"\n },\n {\n \"id\": \"urn:iamproperty:country:SA\",\n \"country_name\": \"Saudi Arabia\"\n },\n {\n \"id\": \"urn:iamproperty:country:SN\",\n \"country_name\": \"Senegal\"\n },\n {\n \"id\": \"urn:iamproperty:country:RS\",\n \"country_name\": \"Serbia\"\n },\n {\n \"id\": \"urn:iamproperty:country:SC\",\n \"country_name\": \"Seychelles\"\n },\n {\n \"id\": \"urn:iamproperty:country:SL\",\n \"country_name\": \"Sierra Leone\"\n },\n {\n \"id\": \"urn:iamproperty:country:SG\",\n \"country_name\": \"Singapore\"\n },\n {\n \"id\": \"urn:iamproperty:country:SX\",\n \"country_name\": \"Sint Maarten (Dutch part)\"\n },\n {\n \"id\": \"urn:iamproperty:country:SK\",\n \"country_name\": \"Slovakia\"\n },\n {\n \"id\": \"urn:iamproperty:country:SI\",\n \"country_name\": \"Slovenia\"\n },\n {\n \"id\": \"urn:iamproperty:country:SB\",\n \"country_name\": \"Solomon Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:SO\",\n \"country_name\": \"Somalia\"\n },\n {\n \"id\": \"urn:iamproperty:country:ZA\",\n \"country_name\": \"South Africa\"\n },\n {\n \"id\": \"urn:iamproperty:country:GS\",\n \"country_name\": \"South Georgia and the South Sandwich Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:SS\",\n \"country_name\": \"South Sudan\"\n },\n {\n \"id\": \"urn:iamproperty:country:ES\",\n \"country_name\": \"Spain\"\n },\n {\n \"id\": \"urn:iamproperty:country:LK\",\n \"country_name\": \"Sri Lanka\"\n },\n {\n \"id\": \"urn:iamproperty:country:SD\",\n \"country_name\": \"Sudan\"\n },\n {\n \"id\": \"urn:iamproperty:country:SR\",\n \"country_name\": \"Suriname\"\n },\n {\n \"id\": \"urn:iamproperty:country:SJ\",\n \"country_name\": \"Svalbard and Jan Mayen\"\n },\n {\n \"id\": \"urn:iamproperty:country:SZ\",\n \"country_name\": \"The Kingdom of Eswatini\"\n },\n {\n \"id\": \"urn:iamproperty:country:SE\",\n \"country_name\": \"Sweden\"\n },\n {\n \"id\": \"urn:iamproperty:country:CH\",\n \"country_name\": \"Switzerland\"\n },\n {\n \"id\": \"urn:iamproperty:country:SY\",\n \"country_name\": \"Syrian Arab Republic\"\n },\n {\n \"id\": \"urn:iamproperty:country:TW\",\n \"country_name\": \"Taiwan, Province of China\"\n },\n {\n \"id\": \"urn:iamproperty:country:TJ\",\n \"country_name\": \"Tajikistan\"\n },\n {\n \"id\": \"urn:iamproperty:country:TZ\",\n \"country_name\": \"Tanzania, United Republic of\"\n },\n {\n \"id\": \"urn:iamproperty:country:TH\",\n \"country_name\": \"Thailand\"\n },\n {\n \"id\": \"urn:iamproperty:country:TL\",\n \"country_name\": \"Timor-Leste\"\n },\n {\n \"id\": \"urn:iamproperty:country:TG\",\n \"country_name\": \"Togo\"\n },\n {\n \"id\": \"urn:iamproperty:country:TK\",\n \"country_name\": \"Tokelau\"\n },\n {\n \"id\": \"urn:iamproperty:country:TO\",\n \"country_name\": \"Tonga\"\n },\n {\n \"id\": \"urn:iamproperty:country:TT\",\n \"country_name\": \"Trinidad and Tobago\"\n },\n {\n \"id\": \"urn:iamproperty:country:TN\",\n \"country_name\": \"Tunisia\"\n },\n {\n \"id\": \"urn:iamproperty:country:TR\",\n \"country_name\": \"Republic of Türkiye\"\n },\n {\n \"id\": \"urn:iamproperty:country:TM\",\n \"country_name\": \"Turkmenistan\"\n },\n {\n \"id\": \"urn:iamproperty:country:TC\",\n \"country_name\": \"Turks and Caicos Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:TV\",\n \"country_name\": \"Tuvalu\"\n },\n {\n \"id\": \"urn:iamproperty:country:UG\",\n \"country_name\": \"Uganda\"\n },\n {\n \"id\": \"urn:iamproperty:country:UA\",\n \"country_name\": \"Ukraine\"\n },\n {\n \"id\": \"urn:iamproperty:country:AE\",\n \"country_name\": \"United Arab Emirates\"\n },\n {\n \"id\": \"urn:iamproperty:country:GB\",\n \"country_name\": \"United Kingdom of Great Britain and Northern Ireland\"\n },\n {\n \"id\": \"urn:iamproperty:country:US\",\n \"country_name\": \"United States of America\"\n },\n {\n \"id\": \"urn:iamproperty:country:UM\",\n \"country_name\": \"United States Minor Outlying Islands\"\n },\n {\n \"id\": \"urn:iamproperty:country:UY\",\n \"country_name\": \"Uruguay\"\n },\n {\n \"id\": \"urn:iamproperty:country:UZ\",\n \"country_name\": \"Uzbekistan\"\n },\n {\n \"id\": \"urn:iamproperty:country:VU\",\n \"country_name\": \"Vanuatu\"\n },\n {\n \"id\": \"urn:iamproperty:country:VE\",\n \"country_name\": \"Venezuela (Bolivarian Republic of)\"\n },\n {\n \"id\": \"urn:iamproperty:country:VN\",\n \"country_name\": \"Viet Nam\"\n },\n {\n \"id\": \"urn:iamproperty:country:VG\",\n \"country_name\": \"Virgin Islands (British)\"\n },\n {\n \"id\": \"urn:iamproperty:country:VI\",\n \"country_name\": \"Virgin Islands (U.S.)\"\n },\n {\n \"id\": \"urn:iamproperty:country:WF\",\n \"country_name\": \"Wallis and Futuna\"\n },\n {\n \"id\": \"urn:iamproperty:country:EH\",\n \"country_name\": \"Western Sahara\"\n },\n {\n \"id\": \"urn:iamproperty:country:YE\",\n \"country_name\": \"Yemen\"\n },\n {\n \"id\": \"urn:iamproperty:country:ZM\",\n \"country_name\": \"Zambia\"\n },\n {\n \"id\": \"urn:iamproperty:country:ZW\",\n \"country_name\": \"Zimbabwe\"\n }\n];\nconst counties = [\n {\n \"id\": \"urn:iamproperty:county:ekHuOPAhk\",\n \"county\": \"Monmouthshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:AEbmaIiuw\",\n \"county\": \"Cambridgeshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:HN2Hekmbp\",\n \"county\": \"South Lanarkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:520Tnh4wg\",\n \"county\": \"Derbyshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:l5UCrwlvB\",\n \"county\": \"Devon\"\n },\n {\n \"id\": \"urn:iamproperty:county:GCA8Jh6Ic\",\n \"county\": \"Bristol\"\n },\n {\n \"id\": \"urn:iamproperty:county:Mi1lAB5uQ\",\n \"county\": \"Rhondda Cynon Taf\"\n },\n {\n \"id\": \"urn:iamproperty:county:n4jPkt4qP\",\n \"county\": \"Carmarthenshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:XO1G4TTb5\",\n \"county\": \"Aberdeenshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:JIaxjhlxx\",\n \"county\": \"North Somerset\"\n },\n {\n \"id\": \"urn:iamproperty:county:hLrOnlFfB\",\n \"county\": \"Nottinghamshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:oGMGorIRg\",\n \"county\": \"Durham\"\n },\n {\n \"id\": \"urn:iamproperty:county:eBaLXgG8Y\",\n \"county\": \"Isle of Wight\"\n },\n {\n \"id\": \"urn:iamproperty:county:NMsdqInpw\",\n \"county\": \"Northamptonshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:xRBQIke3k\",\n \"county\": \"Warwickshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:R7yUpOlb4\",\n \"county\": \"Berwickshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:S9DHMO2Hh\",\n \"county\": \"East Sussex\"\n },\n {\n \"id\": \"urn:iamproperty:county:rj4pK09x7\",\n \"county\": \"Denbighshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:vuduFOMex\",\n \"county\": \"Lanarkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:5W66e6apO\",\n \"county\": \"East Riding of Yorkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:Hb6eqUJQj\",\n \"county\": \"North Ayrshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:fwRrCvJ4C\",\n \"county\": \"Greater Manchester\"\n },\n {\n \"id\": \"urn:iamproperty:county:aekGxogbo\",\n \"county\": \"East Renfrewshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:f3srYWllA\",\n \"county\": \"Cardiff\"\n },\n {\n \"id\": \"urn:iamproperty:county:DhVZEpSj5\",\n \"county\": \"West Lothian\"\n },\n {\n \"id\": \"urn:iamproperty:county:URWWHN7s0\",\n \"county\": \"Dorset\"\n },\n {\n \"id\": \"urn:iamproperty:county:jYK8wiDnY\",\n \"county\": \"Leicestershire\"\n },\n {\n \"id\": \"urn:iamproperty:county:048PGRA4X\",\n \"county\": \"Blaenau Gwent\"\n },\n {\n \"id\": \"urn:iamproperty:county:wrHCVsCva\",\n \"county\": \"Berkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:cCH4TjJ9q\",\n \"county\": \"Norfolk\"\n },\n {\n \"id\": \"urn:iamproperty:county:mvHEsdXhM\",\n \"county\": \"Suffolk\"\n },\n {\n \"id\": \"urn:iamproperty:county:faXBprr9q\",\n \"county\": \"East Ayrshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:5wGBTbwou\",\n \"county\": \"Conwy\"\n },\n {\n \"id\": \"urn:iamproperty:county:5YXi0mQkk\",\n \"county\": \"Cheshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:fuYiP18oc\",\n \"county\": \"Bridgend\"\n },\n {\n \"id\": \"urn:iamproperty:county:QaX0cXbOV\",\n \"county\": \"West Yorkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:Lo7JLx9og\",\n \"county\": \"South Gloucestershire\"\n },\n {\n \"id\": \"urn:iamproperty:county:B64E1f4T3\",\n \"county\": \"Merthyr Tydfil\"\n },\n {\n \"id\": \"urn:iamproperty:county:vacNt3Iie\",\n \"county\": \"Banffshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:HSETldFbK\",\n \"county\": \"Staffordshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:njUDNfLD3\",\n \"county\": \"Western Isles\"\n },\n {\n \"id\": \"urn:iamproperty:county:smlxqTdZE\",\n \"county\": \"Bath and North East Somerset\"\n },\n {\n \"id\": \"urn:iamproperty:county:2asBQ47Jh\",\n \"county\": \"South Yorkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:5hYXpCuJ7\",\n \"county\": \"Stirling\"\n },\n {\n \"id\": \"urn:iamproperty:county:lhFYBMSuq\",\n \"county\": \"Powys\"\n },\n {\n \"id\": \"urn:iamproperty:county:PamgW3ebq\",\n \"county\": \"Vale of Glamorgan\"\n },\n {\n \"id\": \"urn:iamproperty:county:zIasSsrlZ\",\n \"county\": \"Clackmannanshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:WZUQNZxOy\",\n \"county\": \"Lancashire\"\n },\n {\n \"id\": \"urn:iamproperty:county:HoTgPpS58\",\n \"county\": \"Hertfordshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:oNrluXBHA\",\n \"county\": \"Fife\"\n },\n {\n \"id\": \"urn:iamproperty:county:2OxE9CASK\",\n \"county\": \"Neath Port Talbot\"\n },\n {\n \"id\": \"urn:iamproperty:county:9J7YezLBA\",\n \"county\": \"Highland\"\n },\n {\n \"id\": \"urn:iamproperty:county:7IfpMh1Gx\",\n \"county\": \"Ceredigion\"\n },\n {\n \"id\": \"urn:iamproperty:county:ZwQ3mTTE2\",\n \"county\": \"Orkney Islands\"\n },\n {\n \"id\": \"urn:iamproperty:county:ZyNmV7NCn\",\n \"county\": \"North Yorkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:LwrVeERzu\",\n \"county\": \"Pembrokeshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:porOuVsSM\",\n \"county\": \"Wrexham\"\n },\n {\n \"id\": \"urn:iamproperty:county:3o4Rx4sO8\",\n \"county\": \"Renfrewshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:loLWjKyk8\",\n \"county\": \"Oxfordshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:AN7Bz5tny\",\n \"county\": \"Moray\"\n },\n {\n \"id\": \"urn:iamproperty:county:RGzSdoQp3\",\n \"county\": \"Ayrshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:nEBK48RIK\",\n \"county\": \"Caithness\"\n },\n {\n \"id\": \"urn:iamproperty:county:a90XABrjs\",\n \"county\": \"West Dunbartonshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:Qjkb0wsyP\",\n \"county\": \"West Sussex\"\n },\n {\n \"id\": \"urn:iamproperty:county:fNJcfheKq\",\n \"county\": \"Cornwall\"\n },\n {\n \"id\": \"urn:iamproperty:county:lx0kEWvsb\",\n \"county\": \"Anglesey\"\n },\n {\n \"id\": \"urn:iamproperty:county:rkvgiBRHz\",\n \"county\": \"Caerphilly\"\n },\n {\n \"id\": \"urn:iamproperty:county:kx0t2zRVP\",\n \"county\": \"Tyne and Wear\"\n },\n {\n \"id\": \"urn:iamproperty:county:lVb75qnOW\",\n \"county\": \"Merseyside\"\n },\n {\n \"id\": \"urn:iamproperty:county:M7eZzrA8u\",\n \"county\": \"Wiltshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:8Uo4sJw3x\",\n \"county\": \"Perth and Kinross\"\n },\n {\n \"id\": \"urn:iamproperty:county:73kc3w0cu\",\n \"county\": \"Dumfries & Galloway\"\n },\n {\n \"id\": \"urn:iamproperty:county:VFjExDeTO\",\n \"county\": \"Swansea\"\n },\n {\n \"id\": \"urn:iamproperty:county:lzsJuaRiS\",\n \"county\": \"Isles of Scilly\"\n },\n {\n \"id\": \"urn:iamproperty:county:abvvK0ZwH\",\n \"county\": \"Worcestershire\"\n },\n {\n \"id\": \"urn:iamproperty:county:1FKCbFkt2\",\n \"county\": \"Scottish Borders\"\n },\n {\n \"id\": \"urn:iamproperty:county:WKaOjrTLM\",\n \"county\": \"Essex\"\n },\n {\n \"id\": \"urn:iamproperty:county:0F00szlVA\",\n \"county\": \"South Ayrshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:KDtAS0c8U\",\n \"county\": \"Inverclyde\"\n },\n {\n \"id\": \"urn:iamproperty:county:Md88sraTz\",\n \"county\": \"Shetland Islands\"\n },\n {\n \"id\": \"urn:iamproperty:county:LzzEE6zpp\",\n \"county\": \"Herefordshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:lXaRRDNrq\",\n \"county\": \"Angus\"\n },\n {\n \"id\": \"urn:iamproperty:county:A5B4FFytC\",\n \"county\": \"Surrey\"\n },\n {\n \"id\": \"urn:iamproperty:county:B3siky9El\",\n \"county\": \"Kent\"\n },\n {\n \"id\": \"urn:iamproperty:county:V9njlL3kq\",\n \"county\": \"Northumberland\"\n },\n {\n \"id\": \"urn:iamproperty:county:WJiolIFFI\",\n \"county\": \"Flintshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:4lXGX7NbU\",\n \"county\": \"Gwynedd\"\n },\n {\n \"id\": \"urn:iamproperty:county:7gzISbzTK\",\n \"county\": \"Lincolnshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:D5GgqTxzN\",\n \"county\": \"East Dunbartonshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:hhwXe4hTH\",\n \"county\": \"Somerset\"\n },\n {\n \"id\": \"urn:iamproperty:county:nECEnleYv\",\n \"county\": \"Midlothian\"\n },\n {\n \"id\": \"urn:iamproperty:county:2jksb8BIf\",\n \"county\": \"Cumbria\"\n },\n {\n \"id\": \"urn:iamproperty:county:ttfY8qr15\",\n \"county\": \"Bedfordshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:YhQVg1amj\",\n \"county\": \"West Midlands\"\n },\n {\n \"id\": \"urn:iamproperty:county:EnbDIubYS\",\n \"county\": \"North Lanarkshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:5SdVf3hnm\",\n \"county\": \"Kincardineshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:BPedWUQXc\",\n \"county\": \"Dunbartonshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:YLngqBWd4\",\n \"county\": \"Hampshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:zBZHWiWon\",\n \"county\": \"Buckinghamshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:kLes1W5ny\",\n \"county\": \"East Lothian\"\n },\n {\n \"id\": \"urn:iamproperty:county:yCMA4ANpN\",\n \"county\": \"Rutland\"\n },\n {\n \"id\": \"urn:iamproperty:county:jhourkJ4W\",\n \"county\": \"Torfaen\"\n },\n {\n \"id\": \"urn:iamproperty:county:aC8dF3IVE\",\n \"county\": \"Newport\"\n },\n {\n \"id\": \"urn:iamproperty:county:AnfqGRnhm\",\n \"county\": \"Argyll & Bute\"\n },\n {\n \"id\": \"urn:iamproperty:county:5BjmQe9mS\",\n \"county\": \"Gloucestershire\"\n },\n {\n \"id\": \"urn:iamproperty:county:G7WiUO5Sh\",\n \"county\": \"Cleveland\"\n },\n {\n \"id\": \"urn:iamproperty:county:zu7zHJPWh\",\n \"county\": \"Shropshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:Bt301fwoy\",\n \"county\": \"Greater London\"\n },\n {\n \"id\": \"urn:iamproperty:county:LXHPqo5nj\",\n \"county\": \"City of Edinburgh\"\n },\n {\n \"id\": \"urn:iamproperty:county:YejLSQLAx\",\n \"county\": \"Aberdeen City\"\n },\n {\n \"id\": \"urn:iamproperty:county:o5lgD8dv7\",\n \"county\": \"Dundee City\"\n },\n {\n \"id\": \"urn:iamproperty:county:0HPMQtb09\",\n \"county\": \"Falkirk\"\n },\n {\n \"id\": \"urn:iamproperty:county:z1rPhQlGB\",\n \"county\": \"Glasgow City\"\n },\n {\n \"id\": \"urn:iamproperty:county:CskSiG5W0\",\n \"county\": \"Brecknockshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:zulaN5fgu\",\n \"county\": \"Caernarfonshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:D1YYNRchZ\",\n \"county\": \"Cardiganshire\"\n },\n {\n \"id\": \"urn:iamproperty:county:3DDFfQzoP\",\n \"county\": \"Clwyd\"\n },\n {\n \"id\": \"urn:iamproperty:county:hBr4CCduy\",\n \"county\": \"Dyfed\"\n },\n {\n \"id\": \"urn:iamproperty:county:7wcgGTpU9\",\n \"county\": \"Antrim\"\n },\n {\n \"id\": \"urn:iamproperty:county:PKM8DGZbI\",\n \"county\": \"Armagh\"\n },\n {\n \"id\": \"urn:iamproperty:county:LrvLXtQv4\",\n \"county\": \"Down\"\n },\n {\n \"id\": \"urn:iamproperty:county:HXDwhW1QG\",\n \"county\": \"Fermanagh\"\n },\n {\n \"id\": \"urn:iamproperty:county:eRHjMdT0e\",\n \"county\": \"Londonderry\"\n },\n {\n \"id\": \"urn:iamproperty:county:Xqs7aJsen\",\n \"county\": \"Tyrone\"\n },\n {\n \"id\": \"urn:iamproperty:county:rYAgcPlXZ\",\n \"county\": \"Middlesex\"\n }\n];\nlet countriesString = '';\ncountries.forEach((country) => {\n countriesString += `<option value=\"${country['id']}\" data-value=\"${country['country_name']}\">${country['country_name']}</option>`;\n});\nlet countiesString = '';\ncounties.forEach((county) => {\n countiesString += `<option value=\"${county['id']}\" data-value=\"${county['county']}\">${county['county']}</option>`;\n});\nwindow.dataLayer = window.dataLayer || [];\nwindow.dataLayer.push({\n event: 'customElementRegistered',\n element: 'STD Address Lookup',\n});\nclass iamSTDAddressLookup extends HTMLElement {\n constructor() {\n super();\n /*\n this.attachShadow({ mode: 'open' });\n \n const template = document.createElement('template');\n template.innerHTML = `\n <style>\n \n </style>\n `;\n this.shadowRoot?.appendChild(template.content.cloneNode(true));\n */\n }\n connectedCallback() {\n if (!window.customElements.get(`iam-address-lookup`))\n window.customElements.define(`iam-address-lookup`, iamAddressLookup);\n const currentContent = this.innerHTML;\n this.innerHTML = `<iam-address-lookup \n class=\"${this.getAttribute('class')}\" \n ${this.hasAttribute('data-url') ? `data-url='${this.getAttribute('data-url')}?search_query='` : `data-url='/stand-ardaddress.json?search_query='`}\n data-postcode=\"true\" \n data-min-chars=\"5\" \n ${this.hasAttribute('data-title') ? `data-title='${this.getAttribute('data-title')}'` : `data-title='Find an address by postcode'`}\n data-placeholder=\"UK, Isle of Man, & Channel Islands \" \n ${this.hasAttribute('data-manual') ? 'data-manual' : ''} \n ${this.hasAttribute('data-allow-manual') ? 'data-allow-manual' : ''} \n ${this.hasAttribute('data-use') ? `data-use='${this.getAttribute('data-use')}'` : ''} \n ${this.hasAttribute('data-use-label') ? `data-use-label='${this.getAttribute('data-use-label')}'` : ''} \n ${this.hasAttribute('data-postcode-value') ? `data-postcode-value='${this.getAttribute('data-postcode-value')}'` : ''}\n ${this.hasAttribute('data-list-class') ? `data-list-class='${this.getAttribute('data-list-class')}'` : ''}\n ${this.hasAttribute('data-input-class') ? `data-input-class='${this.getAttribute('data-input-class')}'` : ''}\n ${this.hasAttribute('data-error-msg') ? `data-error-msg='${this.getAttribute('data-error-msg')}'` : ''}\n ${this.hasAttribute('data-use-default') ? `data-use-default` : ''}\n ${this.hasAttribute('data-force-manual') ? `data-force-manual` : ''}\n ${this.hasAttribute('data-matched') ? `data-matched='${this.getAttribute('data-matched')}'` : ''}\n ${this.hasAttribute('data-matched-label') ? `data-matched-label='${this.getAttribute('data-matched-label')}'` : ''}\n data-postcode-lookup-label=\"Back to UK postcode lookup\">\n\n <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>\n <span class=\"h3 pb-2\">Street address</span>\n\n <fieldset class=\"atleastone mb-3\">\n <span class=\"invalid-feedback\">You must complete at least one of the highlighted fields.</span>\n\n <span class=\"hint mb-4\">Please ensure details are provided for at least one of these fields.</span>\n\n <label class=\"mb-1\">Flat number <input name=\"sub_building_name\" type=\"text\" data-readonly data-required /></label>\n <span class=\"hint mb-2\">Flat, unit or floor number (e.g. Flat 5, or Floor 6)</span>\n \n <label class=\"mb-1\">Building name <input name=\"building_name\" type=\"text\" data-required maxlength=\"50\"/></label>\n <span class=\"hint mb-2\">Name of the house or building</span>\n\n <label>House Number <input name=\"building_number\" type=\"text\" data-required data-readonly maxlength=\"50\"/></label>\n <span class=\"hint mb-2\">House or street number (e.g. 42)</span>\n\n <label class=\"mb-1\">Street 1 <input name=\"dependent_thoroughfare\" type=\"text\" data-readonly data-required maxlength=\"81\"/></label>\n <span class=\"hint mb-2\">Additional street name </span>\n\n <label class=\"mb-1\">Street 2 <input name=\"thoroughfare\" type=\"text\" data-readonly data-required maxlength=\"81\"/></label>\n <span class=\"hint mb-2\">Primary street name</span>\n </fieldset>\n\n\n <span class=\"h3 pb-2\">Locality details</span>\n <label>Area${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name=\"dependent_locality\" type=\"text\" maxlength=\"35\" data-readonly/></label>\n <label>Village${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name=\"locality\" type=\"text\" maxlength=\"35\" data-readonly/></label>\n <label>Town / City${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name=\"post_town\" type=\"text\" maxlength=\"30\" data-readonly/></label>\n <label>County${this.hasAttribute('data-show-required') && this.hasAttribute('data-county-required') ? '*' : (!this.hasAttribute('data-show-required') && !this.hasAttribute('data-county-required') ? ' (optional)' : '')} \n <select name=\"postal_county\" ${this.hasAttribute('data-county-required') ? 'data-required' : ''} data-readonly>\n <option></option> \n ${countiesString}\n </select></label>\n <label>Postcode${this.hasAttribute('data-show-required') ? '*' : ''} <input name=\"postcode\" type=\"text\" ${!this.hasAttribute('data-required') || this.hasAttribute('data-required') && this.getAttribute('data-required') == 'false' ? 'required data-required' : ''} data-readonly maxlength=\"8\" ${this.hasAttribute('data-required') ? ' required' : ''}/></label>\n <label>Country${this.hasAttribute('data-show-required') && this.hasAttribute('data-country-required') ? '*' : (!this.hasAttribute('data-show-required') && !this.hasAttribute('data-county-required') ? ' (optional)' : '')} \n <select name=\"region\" data-readonly ${this.hasAttribute('data-country-required') ? 'data-required' : ''}>\n <option value=\"\"></option>\n <option value=\"urn:iamproperty:region:qo7jMNaA4\" data-value=\"England\">England</option>\n <option value=\"urn:iamproperty:region:JPBkFjL6I\" data-value=\"Scotland\">Scotland</option>\n <option value=\"urn:iamproperty:region:3lqe2D3qO\" data-value=\"Wales\">Wales</option>\n <option value=\"urn:iamproperty:region:Tm5pOBfK9\" data-value=\"Northern Ireland\">Northern Ireland</option>\n <option value=\"urn:iamproperty:region:ZwIRAnNJo\" data-value=\"Channel Islands\">Channel Islands</option>\n <option value=\"urn:iamproperty:region:8CIOi1khw\" data-value=\"Jersey\">Jersey</option>\n <option value=\"urn:iamproperty:region:qHdx7tNtL\" data-value=\"Guernsey\">Guernsey</option>\n <option value=\"urn:iamproperty:region:DH6LU70lY\" data-value=\"Isle of Man\">Isle of Man</option>\n </select>\n </label>\n\n ${this.hasAttribute('data-allow-overseas') ?\n `<fieldset class=\"overseas\">\n\n <span class=\"h3 pb-2\">Street address</span>\n\n <fieldset class=\"overseas-atleastone\">\n <span class=\"invalid-feedback\">You must complete at least one of the highlighted fields.</span>\n\n <span class=\"hint mb-4\">Please ensure details are provided for at least one of these fields.</span>\n\n\n <label class=\"mb-1\">Flat number${this.hasAttribute('data-show-required') ? '*' : ''} <input name=\"overseas[sub_building_name]\" type=\"text\" data-overseas-required /></label>\n <span class=\"hint d-block mb-2\">Flat, unit or floor number (e.g. Flat 5, or Floor 6)</span>\n\n <label class=\"mb-1\">Building name${this.hasAttribute('data-show-required') ? '*' : ''} <input name=\"overseas[building_name]\" type=\"text\" data-overseas-required maxlength=\"50\" /></label>\n <span class=\"hint d-block mb-2\">Name of the house or building</span>\n\n <label class=\"mb-1\">House number${this.hasAttribute('data-show-required') ? '*' : ''} <input name=\"overseas[building_number]\" type=\"text\" data-overseas-required maxlength=\"50\" /></label>\n <span class=\"hint d-block mb-2\">House or street number (e.g. 42)</span>\n\n <label class=\"mb-2\">Street name${this.hasAttribute('data-show-required') ? '*' : ''} <input name=\"overseas[thoroughfare]\" type=\"text\" data-overseas-required maxlength=\"81\" /></label>\n </fieldset>\n <span class=\"h3 pb-2\">Locality details</span>\n\n\n\n <label class=\"mb-1\">Locality${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name=\"overseas[dependent_locality]\" type=\"text\" /></label>\n <span class=\"hint d-block mb-2\">Main locality, such as the village, suburb, or district</span>\n\n\n <label>Town / City${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name=\"overseas[post_town]\" type=\"text\" maxlength=\"30\" /></label>\n <label>State / Province / Region${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name=\"overseas[double_dependent_locality]\" type=\"text\" /></label>\n <label>Postcode / ZIP code${this.hasAttribute('data-show-required') ? '' : ' (optional)'} <input name=\"overseas[zip_code]\" type=\"text\" /></label>\n \n <label>Country <select name=\"overseas[country_code]\" data-overseas-required>\n <option value=\"\"></option>\n ${countriesString}\n <option value=\"urn:als:country:ndjIqa72\" data-value=\"Poland\">Poland</option>\n </select></label>\n </fieldset>\n\n <button slot=\"actions\" type=\"button\" id=\"overseasToggle\" class=\"link toggleOverseas\">Use overseas address</button>` : ''}\n ${this.hasAttribute('data-address-unknown') ? `<label slot=\"actions\"><input type=\"checkbox\" value=\"true\" name=\"${this.getAttribute('data-address-unknown')}\" ${this.hasAttribute('data-address-unknown-checked') ? 'checked=\"checked\"' : ''}/> Address unknown</label>` : ``}\n <div class=\"bg-light text-center px-3\" slot=\"afterList\">\n <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>\n ${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>` : ''}\n </div>\n <div class=\"bg-light text-center px-3\" slot=\"beforeList\">\n <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>\n </div>\n ${currentContent}\n </iam-address-lookup>`;\n const addressComponent = this.querySelector('iam-address-lookup');\n const overseasToggle = this.querySelector('#overseasToggle');\n const overseasToggleInline = this.querySelector('#overseasToggleInline');\n const languageToggle = this.querySelector('#languageToggle');\n const atleastone = this.querySelector('.overseas-atleastone');\n const overseasFields = this.querySelector('.overseas');\n const openOverseas = () => {\n const updateEvent = new CustomEvent('open-manual');\n addressComponent.dispatchEvent(updateEvent);\n this.classList.add('show-overseas');\n Array.from(addressComponent.querySelectorAll('[data-required]')).forEach((input) => {\n input.removeAttribute('required');\n });\n Array.from(overseasFields.querySelectorAll('[data-overseas-required]')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n };\n overseasToggle === null || overseasToggle === void 0 ? void 0 : overseasToggle.addEventListener('click', () => {\n if (!this.classList.contains('show-overseas')) {\n openOverseas();\n }\n });\n overseasToggleInline === null || overseasToggleInline === void 0 ? void 0 : overseasToggleInline.addEventListener('click', () => {\n if (!this.classList.contains('show-overseas')) {\n openOverseas();\n }\n });\n addressComponent === null || addressComponent === void 0 ? void 0 : addressComponent.addEventListener('switch-to-lookup', () => {\n this.classList.remove('show-overseas');\n Array.from(overseasFields.querySelectorAll('[data-overseas-required]')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n });\n languageToggle === null || languageToggle === void 0 ? void 0 : languageToggle.addEventListener('click', () => {\n if (!addressComponent.classList.contains('show-welsh')) {\n addressComponent.classList.add('show-welsh');\n addressComponent === null || addressComponent === void 0 ? void 0 : addressComponent.setAttribute('data-url-2', '&welsh_language=true');\n }\n else {\n addressComponent.classList.remove('show-welsh');\n addressComponent === null || addressComponent === void 0 ? void 0 : addressComponent.setAttribute('data-url-2', '&welsh_language=false');\n }\n const updateEvent = new CustomEvent('search');\n addressComponent.dispatchEvent(updateEvent);\n languageToggle.focus();\n });\n atleastone === null || atleastone === void 0 ? void 0 : atleastone.addEventListener('input', (e) => {\n Array.from(atleastone.querySelectorAll('[data-overseas-required]')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n if (atleastone.querySelector('input:valid, input.is-valid')) {\n Array.from(atleastone.querySelectorAll('input')).forEach(element => {\n element.removeAttribute('required');\n });\n }\n else {\n Array.from(atleastone.querySelectorAll('input')).forEach((input) => {\n input.setAttribute('required', 'true');\n });\n }\n });\n // If the address unknown checkbox if checked then remove any required fields so you can post the form\n if (this.hasAttribute('data-address-unknown')) {\n const addressUnknownInput = this.querySelector(`[name=\"${this.getAttribute('data-address-unknown')}\"]`);\n if (addressUnknownInput && addressUnknownInput.checked) {\n Array.from(this.querySelectorAll('[required]')).forEach(element => {\n element.removeAttribute('required');\n element.setAttribute('data-not-unknown-required', 'true');\n });\n }\n addressUnknownInput === null || addressUnknownInput === void 0 ? void 0 : addressUnknownInput.addEventListener('change', (event) => {\n if (addressUnknownInput.checked) {\n Array.from(this.querySelectorAll('[required]')).forEach(element => {\n element.removeAttribute('required');\n element.setAttribute('data-not-unknown-required', 'true');\n });\n const updateEvent = new CustomEvent('address-unknown');\n this.dispatchEvent(updateEvent);\n }\n else {\n Array.from(this.querySelectorAll('[data-not-unknown-required')).forEach(element => {\n element.setAttribute('required', 'true');\n });\n const updateEvent = new CustomEvent('address-known');\n this.dispatchEvent(updateEvent);\n }\n });\n }\n }\n}\nexport default iamSTDAddressLookup;\n"],"names":["advancedSelect","displayInputField","datalist","isSearch","currentFocus","option","event","optionInner","text","e","addActive","x","removeActive","i","emptyField","updateEvent","isValidPostcode","searchValue","__awaiter","thisArg","_arguments","P","generator","adopt","value","resolve","reject","fulfilled","step","rejected","result","iamAddressLookup","_a","template","_b","_c","lookup","lookupWrapper","manualWrapper","preFilledWrapper","list","listWrapper","switchManualBtn","switchLookupBtn","title","preFilledAddressBtn","preFilledAddressRemoveBtn","dataDisplayText","postcodeSubmit","errorMsg","paginationWrapper","minChars","pageNumber","atleastone","matchedAddress","matchedAddressWrapper","matchedAddressUse","matchedAddressEntered","titleElement","checkFilled","component","preFilledAddress","preFilled","input","openManualWrapper","atleastoneValidate","element","fillInputs","values","key","search","searchValue_1","args_1","paginate","limit","ajaxURL","postcode","signal","Cookies","response","listString","addresses","address","itemString","error","useCheckbox","valid","attrName","oldVal","newVal","addressComponent","countries","counties","countriesString","country","countiesString","county","iamSTDAddressLookup","currentContent","overseasToggle","overseasToggleInline","languageToggle","overseasFields","openOverseas","addressUnknownInput"],"mappings":";;;6BAAA,SAASA,EAAeA,EAAgBC,EAAmBC,EAAUC,EAAW,GAAO,CACnF,IAAIC,EAAe,GACKF,EAAS,QAAQ,oBAAoB,GAAIA,EAAS,QAAQ,oBAAoB,EAEtGD,EAAkB,aAAa,YAAaA,EAAkB,aAAa,MAAM,CAAC,EAClFA,EAAkB,aAAa,OAAQ,EAAE,EACrCA,EAAkB,aAAa,aAAa,GAC5CA,EAAkB,aAAa,mBAAoBA,EAAkB,aAAa,aAAa,CAAC,EAChGA,EAAkB,aAAa,aAAa,GAC5CA,EAAkB,aAAa,4BAA6BA,EAAkB,aAAa,aAAa,CAAC,EAC7GA,EAAkB,iBAAiB,QAAS,UAAY,CAChDA,EAAkB,OAAS,KAC3BA,EAAkB,aAAa,cAAeA,EAAkB,KAAK,EACrEA,EAAkB,aAAa,aAAcA,EAAkB,KAAK,GAExEA,EAAkB,MAAQ,EAC9B,CAAC,EACDA,EAAkB,iBAAiB,QAAS,UAAY,CAChDA,EAAkB,OAAS,IAC3BA,EAAkB,aAAa,aAAcA,EAAkB,KAAK,CAE5E,CAAC,EACDA,EAAkB,iBAAiB,OAAQ,UAAY,CAC/CA,EAAkB,aAAa,YAAY,IAC3CA,EAAkB,MAAQA,EAAkB,aAAa,YAAY,GAErEA,EAAkB,aAAa,kBAAkB,GACjDA,EAAkB,aAAa,cAAeA,EAAkB,aAAa,kBAAkB,CAAC,CACxG,CAAC,EACD,UAAWI,KAAUH,EAAS,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B,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,kCACxB,EACI,CACI,GAAM,6BACN,aAAgB,kCACxB,EACI,CACI,GAAM,6BACN,aAAgB,wBACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,eACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,gCACxB,EACI,CACI,GAAM,6BACN,aAAgB,mBACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,cACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,gBACxB,EACI,CACI,GAAM,6BACN,aAAgB,0BACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,kBACxB,EACI,CACI,GAAM,6BACN,aAAgB,yBACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,oCACxB,EACI,CACI,GAAM,6BACN,aAAgB,cACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,uBACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,gBACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,oBACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,mBACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,6BACxB,EACI,CACI,GAAM,6BACN,aAAgB,eACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,eACxB,EACI,CACI,GAAM,6BACN,aAAgB,kBACxB,EACI,CACI,GAAM,6BACN,aAAgB,6BACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,eACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,mCACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,4BACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,yCACxB,EACI,CACI,GAAM,6BACN,aAAgB,qBACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,kCACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,eACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,6BACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,kBACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,kCACxB,EACI,CACI,GAAM,6BACN,aAAgB,uBACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,eACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,gBACxB,EACI,CACI,GAAM,6BACN,aAAgB,0BACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,qBACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,kBACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,oBACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,qBACxB,EACI,CACI,GAAM,6BACN,aAAgB,8CACxB,EACI,CACI,GAAM,6BACN,aAAgB,uBACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,4BACxB,EACI,CACI,GAAM,6BACN,aAAgB,2BACxB,EACI,CACI,GAAM,6BACN,aAAgB,kCACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,uBACxB,EACI,CACI,GAAM,6BACN,aAAgB,cACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,cACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,2BACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,iBACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,cACxB,EACI,CACI,GAAM,6BACN,aAAgB,8CACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,WACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,wBACxB,EACI,CACI,GAAM,6BACN,aAAgB,yBACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,sBACxB,EACI,CACI,GAAM,6BACN,aAAgB,2BACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,8BACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,aACxB,EACI,CACI,GAAM,6BACN,aAAgB,MACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,qBACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,wBACxB,EACI,CACI,GAAM,6BACN,aAAgB,cACxB,EACI,CACI,GAAM,6BACN,aAAgB,0BACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,sBACxB,EACI,CACI,GAAM,6BACN,aAAgB,sDACxB,EACI,CACI,GAAM,6BACN,aAAgB,0BACxB,EACI,CACI,GAAM,6BACN,aAAgB,sCACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,YACxB,EACI,CACI,GAAM,6BACN,aAAgB,SACxB,EACI,CACI,GAAM,6BACN,aAAgB,oCACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,EACI,CACI,GAAM,6BACN,aAAgB,0BACxB,EACI,CACI,GAAM,6BACN,aAAgB,uBACxB,EACI,CACI,GAAM,6BACN,aAAgB,mBACxB,EACI,CACI,GAAM,6BACN,aAAgB,gBACxB,EACI,CACI,GAAM,6BACN,aAAgB,OACxB,EACI,CACI,GAAM,6BACN,aAAgB,QACxB,EACI,CACI,GAAM,6BACN,aAAgB,UACxB,CACA,EACMC,GAAW,CACb,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,mBAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,OAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,mBAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,QAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,kBAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,aAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,aAClB,EACI,CACI,GAAM,mCACN,OAAU,0BAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,oBAClB,EACI,CACI,GAAM,mCACN,OAAU,mBAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,QAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,WAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,OAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,uBAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,8BAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,OAClB,EACI,CACI,GAAM,mCACN,OAAU,mBAClB,EACI,CACI,GAAM,mCACN,OAAU,kBAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,MAClB,EACI,CACI,GAAM,mCACN,OAAU,mBAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,aAClB,EACI,CACI,GAAM,mCACN,OAAU,OAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,WAClB,EACI,CACI,GAAM,mCACN,OAAU,qBAClB,EACI,CACI,GAAM,mCACN,OAAU,aAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,WAClB,EACI,CACI,GAAM,mCACN,OAAU,mBAClB,EACI,CACI,GAAM,mCACN,OAAU,qBAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,kBAClB,EACI,CACI,GAAM,mCACN,OAAU,OAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,kBAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,OAClB,EACI,CACI,GAAM,mCACN,OAAU,QAClB,EACI,CACI,GAAM,mCACN,OAAU,MAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,qBAClB,EACI,CACI,GAAM,mCACN,OAAU,UAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,mBAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,WAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,WAClB,EACI,CACI,GAAM,mCACN,OAAU,YAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,mBAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,aAClB,EACI,CACI,GAAM,mCACN,OAAU,SAClB,EACI,CACI,GAAM,mCACN,OAAU,cAClB,EACI,CACI,GAAM,mCACN,OAAU,gBAClB,EACI,CACI,GAAM,mCACN,OAAU,iBAClB,EACI,CACI,GAAM,mCACN,OAAU,eAClB,EACI,CACI,GAAM,mCACN,OAAU,OAClB,EACI,CACI,GAAM,mCACN,OAAU,OAClB,EACI,CACI,GAAM,mCACN,OAAU,QAClB,EACI,CACI,GAAM,mCACN,OAAU,QAClB,EACI,CACI,GAAM,mCACN,OAAU,MAClB,EACI,CACI,GAAM,mCACN,OAAU,WAClB,EACI,CACI,GAAM,mCACN,OAAU,aAClB,EACI,CACI,GAAM,mCACN,OAAU,QAClB,EACI,CACI,GAAM,mCACN,OAAU,WAClB,CACA,EACA,IAAIC,EAAkB,GACtBF,GAAU,QAASG,GAAY,CAC3BD,GAAmB,kBAAkBC,EAAQ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