@aurodesignsystem/auro-formkit 2.0.0-beta.5 → 2.0.0-beta.50

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 (856) hide show
  1. package/CHANGELOG.md +510 -0
  2. package/NOTICE +2 -0
  3. package/README.md +83 -15
  4. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +38 -0
  5. package/components/{combobox/dist/formkit/auro-dropdownVersion.d.ts → bibtemplate/dist/headerVersion.d.ts} +0 -1
  6. package/components/bibtemplate/dist/iconVersion.d.ts +2 -0
  7. package/components/bibtemplate/dist/index.d.ts +2 -0
  8. package/components/bibtemplate/dist/index.js +790 -0
  9. package/components/bibtemplate/dist/registered.js +790 -0
  10. package/components/{input/dist/styles/helpText-css.d.ts → bibtemplate/dist/styles/color-css.d.ts} +0 -1
  11. package/components/bibtemplate/dist/styles/style-css.d.ts +2 -0
  12. package/components/bibtemplate/dist/styles/tokens-css.d.ts +2 -0
  13. package/components/checkbox/README.md +27 -35
  14. package/components/checkbox/demo/api.md +67 -68
  15. package/components/checkbox/demo/api.min.js +498 -102
  16. package/components/checkbox/demo/index.html +49 -0
  17. package/components/checkbox/demo/index.md +62 -62
  18. package/components/checkbox/demo/index.min.js +498 -102
  19. package/components/checkbox/dist/auro-checkbox-group.d.ts +45 -18
  20. package/components/checkbox/dist/auro-checkbox.d.ts +19 -7
  21. package/components/checkbox/dist/helptextVersion.d.ts +2 -0
  22. package/components/checkbox/dist/index.d.ts +0 -1
  23. package/components/checkbox/dist/index.js +498 -105
  24. package/components/checkbox/dist/registered.js +1279 -0
  25. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +0 -1
  26. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +0 -1
  27. package/components/checkbox/dist/styles/color-css.d.ts +0 -1
  28. package/components/checkbox/dist/styles/colorGroup-css.d.ts +0 -1
  29. package/components/checkbox/dist/styles/tokens-css.d.ts +0 -1
  30. package/components/combobox/README.md +25 -28
  31. package/components/combobox/demo/api.js +1 -1
  32. package/components/combobox/demo/api.md +116 -32
  33. package/components/combobox/demo/api.min.js +8211 -3863
  34. package/components/combobox/demo/index.html +57 -0
  35. package/components/combobox/demo/index.js +1 -1
  36. package/components/combobox/demo/index.md +19 -3
  37. package/components/combobox/demo/index.min.js +8208 -3860
  38. package/components/combobox/dist/auro-combobox.d.ts +123 -76
  39. package/components/combobox/dist/bibtemplateVersion.d.ts +2 -0
  40. package/components/{select/dist/formkit/auro-dropdownVersion.d.ts → combobox/dist/dropdownVersion.d.ts} +0 -1
  41. package/components/combobox/dist/index.d.ts +0 -1
  42. package/components/combobox/dist/index.js +7848 -3816
  43. package/components/combobox/dist/{formkit/auro-inputVersion.d.ts → inputVersion.d.ts} +0 -1
  44. package/components/combobox/dist/registered.js +12269 -0
  45. package/components/combobox/dist/styles/style-css.d.ts +0 -1
  46. package/components/counter/README.md +188 -0
  47. package/components/counter/demo/api.js +3 -2
  48. package/components/counter/demo/api.md +185 -1018
  49. package/components/counter/demo/api.min.js +6190 -40
  50. package/components/counter/demo/index.html +53 -0
  51. package/components/counter/demo/index.js +2 -1
  52. package/components/counter/demo/index.md +298 -0
  53. package/components/counter/demo/index.min.js +6187 -19
  54. package/components/counter/dist/auro-counter-button.d.ts +12 -0
  55. package/components/counter/dist/auro-counter-group.d.ts +168 -5
  56. package/components/counter/dist/auro-counter-wrapper.d.ts +22 -0
  57. package/components/counter/dist/auro-counter.d.ts +91 -1
  58. package/components/counter/dist/bibtemplateVersion.d.ts +2 -0
  59. package/components/{datepicker/dist/formkit/auro-dropdownVersion.d.ts → counter/dist/dropdownVersion.d.ts} +0 -1
  60. package/components/counter/dist/iconVersion.d.ts +2 -0
  61. package/components/counter/dist/index.d.ts +0 -1
  62. package/components/counter/dist/index.js +6158 -38
  63. package/components/counter/dist/registered.js +6231 -0
  64. package/components/counter/dist/styles/color-css.d.ts +2 -0
  65. package/components/counter/dist/styles/counter-button-color-css.d.ts +2 -0
  66. package/components/counter/dist/styles/counter-button-css.d.ts +2 -0
  67. package/components/counter/dist/styles/counter-button-tokens-css.d.ts +2 -0
  68. package/components/counter/dist/styles/counter-group-css.d.ts +0 -1
  69. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +2 -0
  70. package/components/counter/dist/styles/counter-wrapper-css.d.ts +2 -0
  71. package/components/counter/dist/styles/style-css.d.ts +0 -1
  72. package/components/counter/dist/styles/tokens-css.d.ts +2 -0
  73. package/components/datepicker/README.md +25 -28
  74. package/components/datepicker/demo/api.js +3 -3
  75. package/components/datepicker/demo/api.md +219 -105
  76. package/components/datepicker/demo/api.min.js +6367 -2448
  77. package/components/datepicker/demo/index.html +57 -0
  78. package/components/datepicker/demo/index.md +7 -1
  79. package/components/datepicker/demo/index.min.js +6355 -2435
  80. package/components/datepicker/dist/auro-calendar-cell.d.ts +0 -1
  81. package/components/datepicker/dist/auro-calendar-month.d.ts +15 -1
  82. package/components/datepicker/dist/auro-calendar.d.ts +25 -2
  83. package/components/datepicker/dist/auro-datepicker.d.ts +41 -12
  84. package/components/datepicker/dist/bibtemplateVersion.d.ts +2 -0
  85. package/components/datepicker/dist/dropdownVersion.d.ts +2 -1
  86. package/components/datepicker/dist/index.d.ts +0 -1
  87. package/components/datepicker/dist/index.js +6353 -2435
  88. package/components/datepicker/dist/{formkit/auro-inputVersion.d.ts → inputVersion.d.ts} +0 -1
  89. package/components/datepicker/dist/popoverVersion.d.ts +0 -1
  90. package/components/datepicker/dist/registered.js +22466 -0
  91. package/components/datepicker/dist/styles/color-calendar-css.d.ts +0 -1
  92. package/components/datepicker/dist/styles/color-cell-css.d.ts +0 -1
  93. package/components/datepicker/dist/styles/color-css.d.ts +0 -1
  94. package/components/datepicker/dist/styles/color-month-css.d.ts +0 -1
  95. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +0 -1
  96. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +0 -1
  97. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +0 -1
  98. package/components/datepicker/dist/styles/style-css.d.ts +0 -1
  99. package/components/datepicker/dist/styles/tokens-css.d.ts +0 -1
  100. package/components/datepicker/dist/utilities.d.ts +25 -1
  101. package/components/datepicker/dist/utilitiesCalendar.d.ts +2 -2
  102. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +2 -3
  103. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +0 -1
  104. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +0 -1
  105. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +0 -1
  106. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +0 -1
  107. package/components/dropdown/README.md +19 -27
  108. package/components/dropdown/demo/api.js +1 -1
  109. package/components/dropdown/demo/api.md +43 -29
  110. package/components/dropdown/demo/api.min.js +525 -124
  111. package/components/dropdown/demo/index.html +53 -0
  112. package/components/dropdown/demo/index.js +0 -3
  113. package/components/dropdown/demo/index.min.js +525 -127
  114. package/components/dropdown/dist/auro-dropdown.d.ts +38 -7
  115. package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -2
  116. package/components/dropdown/dist/dropdownVersion.d.ts +2 -0
  117. package/components/dropdown/dist/helptextVersion.d.ts +2 -0
  118. package/components/dropdown/dist/iconVersion.d.ts +0 -1
  119. package/components/dropdown/dist/index.d.ts +0 -1
  120. package/components/dropdown/dist/index.js +525 -126
  121. package/components/dropdown/dist/registered.js +3365 -0
  122. package/components/dropdown/dist/styles/bibColors-css.d.ts +0 -1
  123. package/components/dropdown/dist/styles/bibStyles-css.d.ts +0 -1
  124. package/components/dropdown/dist/styles/color-css.d.ts +0 -1
  125. package/components/dropdown/dist/styles/style-css.d.ts +0 -1
  126. package/components/dropdown/dist/styles/tokens-css.d.ts +0 -1
  127. package/components/form/README.md +29 -35
  128. package/components/form/demo/api.js +1 -1
  129. package/components/form/demo/api.min.js +497 -25
  130. package/components/form/demo/index.html +48 -0
  131. package/components/form/demo/index.min.js +497 -25
  132. package/components/form/demo/registerDemoDeps.js +22 -0
  133. package/components/form/demo/working.html +117 -0
  134. package/components/form/dist/auro-form.d.ts +194 -3
  135. package/components/form/dist/index.d.ts +0 -1
  136. package/components/form/dist/index.js +497 -27
  137. package/components/form/dist/registered.d.ts +1 -0
  138. package/components/form/dist/registered.js +632 -0
  139. package/components/form/dist/styles/style-css.d.ts +0 -1
  140. package/components/helptext/dist/auro-helptext.d.ts +53 -0
  141. package/components/helptext/dist/index.d.ts +2 -0
  142. package/components/helptext/dist/index.js +224 -0
  143. package/components/helptext/dist/registered.js +224 -0
  144. package/components/helptext/dist/styles/color-css.d.ts +2 -0
  145. package/components/helptext/dist/styles/style-css.d.ts +2 -0
  146. package/components/helptext/dist/styles/tokens-css.d.ts +2 -0
  147. package/components/input/README.md +19 -29
  148. package/components/input/demo/api.md +152 -318
  149. package/components/input/demo/api.min.js +4214 -1780
  150. package/components/input/demo/index.html +41 -0
  151. package/components/input/demo/index.md +11 -61
  152. package/components/input/demo/index.min.js +4214 -1780
  153. package/components/input/dist/auro-input.d.ts +4 -2
  154. package/components/input/dist/base-input.d.ts +49 -16
  155. package/components/input/dist/buttonVersion.d.ts +0 -1
  156. package/components/input/dist/helptextVersion.d.ts +2 -0
  157. package/components/input/dist/i18n.d.ts +0 -1
  158. package/components/input/dist/iconVersion.d.ts +0 -1
  159. package/components/input/dist/index.d.ts +0 -1
  160. package/components/input/dist/index.js +4214 -1782
  161. package/components/input/dist/registered.js +6591 -0
  162. package/components/input/dist/styles/borders-css.d.ts +0 -1
  163. package/components/input/dist/styles/color-css.d.ts +0 -1
  164. package/components/input/dist/styles/input-css.d.ts +0 -1
  165. package/components/input/dist/styles/label-css.d.ts +0 -1
  166. package/components/input/dist/styles/mixins-css.d.ts +0 -1
  167. package/components/input/dist/styles/notificationIcons-css.d.ts +0 -1
  168. package/components/input/dist/styles/style-css.d.ts +0 -1
  169. package/components/input/dist/styles/tokens-css.d.ts +0 -1
  170. package/components/input/dist/utilities.d.ts +25 -0
  171. package/components/menu/README.md +19 -27
  172. package/components/menu/demo/api.js +1 -1
  173. package/components/menu/demo/api.md +57 -20
  174. package/components/menu/demo/api.min.js +628 -314
  175. package/components/menu/demo/index.html +50 -0
  176. package/components/menu/demo/index.min.js +626 -312
  177. package/components/menu/dist/auro-menu-utils.d.ts +42 -0
  178. package/components/menu/dist/auro-menu.d.ts +97 -82
  179. package/components/menu/dist/auro-menuoption.d.ts +0 -1
  180. package/components/menu/dist/dropdownVersion.d.ts +2 -0
  181. package/components/menu/dist/iconVersion.d.ts +0 -1
  182. package/components/menu/dist/index.d.ts +1 -1
  183. package/components/menu/dist/index.js +627 -316
  184. package/components/menu/dist/registered.js +1510 -0
  185. package/components/menu/dist/styles/color-menu-css.d.ts +0 -1
  186. package/components/menu/dist/styles/color-menuoption-css.d.ts +0 -1
  187. package/components/menu/dist/styles/style-menu-css.d.ts +0 -1
  188. package/components/menu/dist/styles/style-menuoption-css.d.ts +0 -1
  189. package/components/menu/dist/styles/tokens-css.d.ts +0 -1
  190. package/components/radio/README.md +19 -27
  191. package/components/radio/demo/api.md +9 -8
  192. package/components/radio/demo/api.min.js +429 -75
  193. package/components/radio/demo/index.html +48 -0
  194. package/components/radio/demo/index.min.js +429 -75
  195. package/components/radio/dist/auro-radio-group.d.ts +12 -3
  196. package/components/radio/dist/auro-radio.d.ts +0 -1
  197. package/components/radio/dist/helptextVersion.d.ts +2 -0
  198. package/components/radio/dist/index.d.ts +0 -1
  199. package/components/radio/dist/index.js +429 -78
  200. package/components/radio/dist/registered.js +1396 -0
  201. package/components/radio/dist/styles/auro-radio-group-css.d.ts +0 -1
  202. package/components/radio/dist/styles/color-css.d.ts +0 -1
  203. package/components/radio/dist/styles/groupColor-css.d.ts +0 -1
  204. package/components/radio/dist/styles/style-css.d.ts +0 -1
  205. package/components/radio/dist/styles/tokens-css.d.ts +0 -1
  206. package/components/select/README.md +22 -43
  207. package/components/select/demo/api.js +1 -1
  208. package/components/select/demo/api.md +52 -15
  209. package/components/select/demo/api.min.js +1564 -613
  210. package/components/select/demo/index.html +49 -0
  211. package/components/select/demo/index.js +1 -1
  212. package/components/select/demo/index.md +1 -16
  213. package/components/select/demo/index.min.js +1563 -612
  214. package/components/select/dist/auro-select.d.ts +23 -7
  215. package/components/select/dist/dropdownVersion.d.ts +2 -0
  216. package/components/select/dist/index.d.ts +0 -1
  217. package/components/select/dist/index.js +848 -213
  218. package/components/select/dist/registered.js +4562 -0
  219. package/components/select/dist/styles/color-css.d.ts +0 -1
  220. package/components/select/dist/styles/style-css.d.ts +0 -1
  221. package/components/select/dist/styles/tokens-css.d.ts +0 -1
  222. package/package.json +138 -66
  223. package/packages/build-tools/src/postinstall.mjs +8 -0
  224. package/.husky/commit-msg +0 -4
  225. package/.husky/pre-commit +0 -3
  226. package/.turbo/cache/013a48308b893dac-meta.json +0 -1
  227. package/.turbo/cache/013a48308b893dac.tar.zst +0 -0
  228. package/.turbo/cache/02244170c798a2bd-meta.json +0 -1
  229. package/.turbo/cache/02244170c798a2bd.tar.zst +0 -0
  230. package/.turbo/cache/051ff97a20add0e2-meta.json +0 -1
  231. package/.turbo/cache/051ff97a20add0e2.tar.zst +0 -0
  232. package/.turbo/cache/07ca42419b9f050c-meta.json +0 -1
  233. package/.turbo/cache/07ca42419b9f050c.tar.zst +0 -0
  234. package/.turbo/cache/0cea4c1f34f3683b-meta.json +0 -1
  235. package/.turbo/cache/0cea4c1f34f3683b.tar.zst +0 -0
  236. package/.turbo/cache/0ea853339c064fa1-meta.json +0 -1
  237. package/.turbo/cache/0ea853339c064fa1.tar.zst +0 -0
  238. package/.turbo/cache/16658beec9f4a809-meta.json +0 -1
  239. package/.turbo/cache/16658beec9f4a809.tar.zst +0 -0
  240. package/.turbo/cache/17259cf94d8f8925-meta.json +0 -1
  241. package/.turbo/cache/17259cf94d8f8925.tar.zst +0 -0
  242. package/.turbo/cache/1b9818717e4bdf9f-meta.json +0 -1
  243. package/.turbo/cache/1b9818717e4bdf9f.tar.zst +0 -0
  244. package/.turbo/cache/1c0f580d37370ba2-meta.json +0 -1
  245. package/.turbo/cache/1c0f580d37370ba2.tar.zst +0 -0
  246. package/.turbo/cache/1c99a949ec63ab35-meta.json +0 -1
  247. package/.turbo/cache/1c99a949ec63ab35.tar.zst +0 -0
  248. package/.turbo/cache/1df4710eef8ed00d-meta.json +0 -1
  249. package/.turbo/cache/1df4710eef8ed00d.tar.zst +0 -0
  250. package/.turbo/cache/204b66d1b253e9cc-meta.json +0 -1
  251. package/.turbo/cache/204b66d1b253e9cc.tar.zst +0 -0
  252. package/.turbo/cache/257a7a26ea72dbc5-meta.json +0 -1
  253. package/.turbo/cache/257a7a26ea72dbc5.tar.zst +0 -0
  254. package/.turbo/cache/2a5d0939d6fc1052-meta.json +0 -1
  255. package/.turbo/cache/2a5d0939d6fc1052.tar.zst +0 -0
  256. package/.turbo/cache/2e3b829fcf75c836-meta.json +0 -1
  257. package/.turbo/cache/2e3b829fcf75c836.tar.zst +0 -0
  258. package/.turbo/cache/3bf45120d0cc9bd8-meta.json +0 -1
  259. package/.turbo/cache/3bf45120d0cc9bd8.tar.zst +0 -0
  260. package/.turbo/cache/3d380d0d40404cac-meta.json +0 -1
  261. package/.turbo/cache/3d380d0d40404cac.tar.zst +0 -0
  262. package/.turbo/cache/3e12285c614db539-meta.json +0 -1
  263. package/.turbo/cache/3e12285c614db539.tar.zst +0 -0
  264. package/.turbo/cache/45035bf5c4147ccd-meta.json +0 -1
  265. package/.turbo/cache/45035bf5c4147ccd.tar.zst +0 -0
  266. package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +0 -1
  267. package/.turbo/cache/5bf2d3f7ba5891e0.tar.zst +0 -0
  268. package/.turbo/cache/5f304c0f37ef25f3-meta.json +0 -1
  269. package/.turbo/cache/5f304c0f37ef25f3.tar.zst +0 -0
  270. package/.turbo/cache/64de7a53e02db647-meta.json +0 -1
  271. package/.turbo/cache/64de7a53e02db647.tar.zst +0 -0
  272. package/.turbo/cache/68e5c7af799e011d-meta.json +0 -1
  273. package/.turbo/cache/68e5c7af799e011d.tar.zst +0 -0
  274. package/.turbo/cache/691a74627ec57993-meta.json +0 -1
  275. package/.turbo/cache/691a74627ec57993.tar.zst +0 -0
  276. package/.turbo/cache/6dd67d179191bda8-meta.json +0 -1
  277. package/.turbo/cache/6dd67d179191bda8.tar.zst +0 -0
  278. package/.turbo/cache/6dd7058e6703cb35-meta.json +0 -1
  279. package/.turbo/cache/6dd7058e6703cb35.tar.zst +0 -0
  280. package/.turbo/cache/73e9073a5274616d-meta.json +0 -1
  281. package/.turbo/cache/73e9073a5274616d.tar.zst +0 -0
  282. package/.turbo/cache/773edc0f83c8c5a5-meta.json +0 -1
  283. package/.turbo/cache/773edc0f83c8c5a5.tar.zst +0 -0
  284. package/.turbo/cache/786a822763403879-meta.json +0 -1
  285. package/.turbo/cache/786a822763403879.tar.zst +0 -0
  286. package/.turbo/cache/7e1043cffa69f327-meta.json +0 -1
  287. package/.turbo/cache/7e1043cffa69f327.tar.zst +0 -0
  288. package/.turbo/cache/7ffd501e81790676-meta.json +0 -1
  289. package/.turbo/cache/7ffd501e81790676.tar.zst +0 -0
  290. package/.turbo/cache/80a13352066a9801-meta.json +0 -1
  291. package/.turbo/cache/80a13352066a9801.tar.zst +0 -0
  292. package/.turbo/cache/80b5d974184a01df-meta.json +0 -1
  293. package/.turbo/cache/80b5d974184a01df.tar.zst +0 -0
  294. package/.turbo/cache/8954c6073396fadd-meta.json +0 -1
  295. package/.turbo/cache/8954c6073396fadd.tar.zst +0 -0
  296. package/.turbo/cache/8e79bd5c3a16a72e-meta.json +0 -1
  297. package/.turbo/cache/8e79bd5c3a16a72e.tar.zst +0 -0
  298. package/.turbo/cache/8e9ebc3df0e18de0-meta.json +0 -1
  299. package/.turbo/cache/8e9ebc3df0e18de0.tar.zst +0 -0
  300. package/.turbo/cache/92daa6d7c389d548-meta.json +0 -1
  301. package/.turbo/cache/92daa6d7c389d548.tar.zst +0 -0
  302. package/.turbo/cache/973d0eea26083f4b-meta.json +0 -1
  303. package/.turbo/cache/973d0eea26083f4b.tar.zst +0 -0
  304. package/.turbo/cache/9c6ad42729c7b2d8-meta.json +0 -1
  305. package/.turbo/cache/9c6ad42729c7b2d8.tar.zst +0 -0
  306. package/.turbo/cache/a77bc920ea508bb8-meta.json +0 -1
  307. package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
  308. package/.turbo/cache/a9a9d012c83882d8-meta.json +0 -1
  309. package/.turbo/cache/a9a9d012c83882d8.tar.zst +0 -0
  310. package/.turbo/cache/b4c851d4bebf3b47-meta.json +0 -1
  311. package/.turbo/cache/b4c851d4bebf3b47.tar.zst +0 -0
  312. package/.turbo/cache/ba4418918621fbcd-meta.json +0 -1
  313. package/.turbo/cache/ba4418918621fbcd.tar.zst +0 -0
  314. package/.turbo/cache/be7c23c37b8ec74b-meta.json +0 -1
  315. package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
  316. package/.turbo/cache/bffc7582905c2a5e-meta.json +0 -1
  317. package/.turbo/cache/bffc7582905c2a5e.tar.zst +0 -0
  318. package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +0 -1
  319. package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
  320. package/.turbo/cache/cc81de9c0b452a7c-meta.json +0 -1
  321. package/.turbo/cache/cc81de9c0b452a7c.tar.zst +0 -0
  322. package/.turbo/cache/d572ebb3c833e8f4-meta.json +0 -1
  323. package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
  324. package/.turbo/cache/d61543843c932504-meta.json +0 -1
  325. package/.turbo/cache/d61543843c932504.tar.zst +0 -0
  326. package/.turbo/cache/dad1301ac69bcb85-meta.json +0 -1
  327. package/.turbo/cache/dad1301ac69bcb85.tar.zst +0 -0
  328. package/.turbo/cache/db361cb6578dca84-meta.json +0 -1
  329. package/.turbo/cache/db361cb6578dca84.tar.zst +0 -0
  330. package/.turbo/cache/dea5945f55c6aba5-meta.json +0 -1
  331. package/.turbo/cache/dea5945f55c6aba5.tar.zst +0 -0
  332. package/.turbo/cache/dfe1f17e7fce890d-meta.json +0 -1
  333. package/.turbo/cache/dfe1f17e7fce890d.tar.zst +0 -0
  334. package/.turbo/cache/e3a224a17cf55bdb-meta.json +0 -1
  335. package/.turbo/cache/e3a224a17cf55bdb.tar.zst +0 -0
  336. package/.turbo/cache/e992dab20aeefbaf-meta.json +0 -1
  337. package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
  338. package/.turbo/cache/f3ff9040a2196834-meta.json +0 -1
  339. package/.turbo/cache/f3ff9040a2196834.tar.zst +0 -0
  340. package/.turbo/cache/fc57c17867dcac3d-meta.json +0 -1
  341. package/.turbo/cache/fc57c17867dcac3d.tar.zst +0 -0
  342. package/components/checkbox/.stylelintrc.json +0 -3
  343. package/components/checkbox/.turbo/turbo-build$colon$sass.log +0 -98
  344. package/components/checkbox/.turbo/turbo-build.log +0 -185
  345. package/components/checkbox/.turbo/turbo-bundler.log +0 -13
  346. package/components/checkbox/.turbo/turbo-postCss$colon$component.log +0 -5
  347. package/components/checkbox/.turbo/turbo-sass$colon$render.log +0 -34
  348. package/components/checkbox/.turbo/turbo-types.log +0 -4
  349. package/components/checkbox/dist/auro-checkbox-group.d.ts.map +0 -1
  350. package/components/checkbox/dist/auro-checkbox.d.ts.map +0 -1
  351. package/components/checkbox/dist/index.d.ts.map +0 -1
  352. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts.map +0 -1
  353. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts.map +0 -1
  354. package/components/checkbox/dist/styles/color-css.d.ts.map +0 -1
  355. package/components/checkbox/dist/styles/colorGroup-css.d.ts.map +0 -1
  356. package/components/checkbox/dist/styles/tokens-css.d.ts.map +0 -1
  357. package/components/checkbox/node_modules/chalk/package.json +0 -83
  358. package/components/checkbox/node_modules/chalk/readme.md +0 -325
  359. package/components/checkbox/node_modules/chalk/source/index.d.ts +0 -320
  360. package/components/checkbox/node_modules/chalk/source/index.js +0 -225
  361. package/components/checkbox/node_modules/chalk/source/utilities.js +0 -33
  362. package/components/checkbox/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  363. package/components/checkbox/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  364. package/components/checkbox/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  365. package/components/checkbox/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  366. package/components/checkbox/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  367. package/components/checkbox/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  368. package/components/checkbox/package.json +0 -68
  369. package/components/checkbox/src/auro-checkbox-group.js +0 -331
  370. package/components/checkbox/src/auro-checkbox.js +0 -193
  371. package/components/checkbox/src/index.js +0 -8
  372. package/components/checkbox/src/styles/auro-checkbox-css.js +0 -2
  373. package/components/checkbox/src/styles/auro-checkbox-group-css.js +0 -2
  374. package/components/checkbox/src/styles/auro-checkbox-group.css +0 -26
  375. package/components/checkbox/src/styles/auro-checkbox-group.scss +0 -38
  376. package/components/checkbox/src/styles/auro-checkbox.css +0 -123
  377. package/components/checkbox/src/styles/auro-checkbox.scss +0 -100
  378. package/components/checkbox/src/styles/color-css.js +0 -2
  379. package/components/checkbox/src/styles/color.css +0 -84
  380. package/components/checkbox/src/styles/color.scss +0 -118
  381. package/components/checkbox/src/styles/colorGroup-css.js +0 -2
  382. package/components/checkbox/src/styles/colorGroup.css +0 -16
  383. package/components/checkbox/src/styles/colorGroup.scss +0 -24
  384. package/components/checkbox/src/styles/tokens-css.js +0 -2
  385. package/components/checkbox/src/styles/tokens.css +0 -9
  386. package/components/checkbox/src/styles/tokens.scss +0 -11
  387. package/components/combobox/.stylelintrc.json +0 -3
  388. package/components/combobox/.turbo/turbo-build$colon$sass.log +0 -46
  389. package/components/combobox/.turbo/turbo-build.log +0 -163
  390. package/components/combobox/.turbo/turbo-postCss$colon$component.log +0 -5
  391. package/components/combobox/.turbo/turbo-sass$colon$render.log +0 -10
  392. package/components/combobox/dist/auro-combobox.d.ts.map +0 -1
  393. package/components/combobox/dist/formkit/auro-dropdownVersion.d.ts.map +0 -1
  394. package/components/combobox/dist/formkit/auro-inputVersion.d.ts.map +0 -1
  395. package/components/combobox/dist/index.d.ts.map +0 -1
  396. package/components/combobox/dist/styles/style-css.d.ts.map +0 -1
  397. package/components/combobox/node_modules/chalk/package.json +0 -83
  398. package/components/combobox/node_modules/chalk/readme.md +0 -325
  399. package/components/combobox/node_modules/chalk/source/index.d.ts +0 -320
  400. package/components/combobox/node_modules/chalk/source/index.js +0 -225
  401. package/components/combobox/node_modules/chalk/source/utilities.js +0 -33
  402. package/components/combobox/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  403. package/components/combobox/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  404. package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  405. package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  406. package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  407. package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  408. package/components/combobox/package.json +0 -67
  409. package/components/combobox/src/auro-combobox.js +0 -724
  410. package/components/combobox/src/formkit/auro-dropdownVersion.js +0 -1
  411. package/components/combobox/src/formkit/auro-inputVersion.js +0 -1
  412. package/components/combobox/src/index.js +0 -6
  413. package/components/combobox/src/styles/style-css.js +0 -2
  414. package/components/combobox/src/styles/style.css +0 -60
  415. package/components/combobox/src/styles/style.scss +0 -46
  416. package/components/counter/.stylelintrc.json +0 -3
  417. package/components/counter/.turbo/turbo-build$colon$sass.log +0 -66
  418. package/components/counter/.turbo/turbo-build.log +0 -87
  419. package/components/counter/.turbo/turbo-bundler.log +0 -13
  420. package/components/counter/.turbo/turbo-postCss$colon$component.log +0 -5
  421. package/components/counter/.turbo/turbo-sass$colon$render.log +0 -16
  422. package/components/counter/.turbo/turbo-types.log +0 -4
  423. package/components/counter/dist/auro-counter-group.d.ts.map +0 -1
  424. package/components/counter/dist/auro-counter.d.ts.map +0 -1
  425. package/components/counter/dist/index.d.ts.map +0 -1
  426. package/components/counter/dist/styles/counter-group-css.d.ts.map +0 -1
  427. package/components/counter/dist/styles/style-css.d.ts.map +0 -1
  428. package/components/counter/node_modules/chalk/package.json +0 -83
  429. package/components/counter/node_modules/chalk/readme.md +0 -325
  430. package/components/counter/node_modules/chalk/source/index.d.ts +0 -320
  431. package/components/counter/node_modules/chalk/source/index.js +0 -225
  432. package/components/counter/node_modules/chalk/source/utilities.js +0 -33
  433. package/components/counter/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  434. package/components/counter/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  435. package/components/counter/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  436. package/components/counter/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  437. package/components/counter/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  438. package/components/counter/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  439. package/components/counter/package.json +0 -50
  440. package/components/counter/src/auro-counter-group.js +0 -48
  441. package/components/counter/src/auro-counter.js +0 -29
  442. package/components/counter/src/index.js +0 -8
  443. package/components/counter/src/styles/counter-group-css.js +0 -2
  444. package/components/counter/src/styles/counter-group.css +0 -4
  445. package/components/counter/src/styles/counter-group.scss +0 -17
  446. package/components/counter/src/styles/style-css.js +0 -2
  447. package/components/counter/src/styles/style.css +0 -4
  448. package/components/counter/src/styles/style.scss +0 -17
  449. package/components/datepicker/.stylelintrc.json +0 -3
  450. package/components/datepicker/.turbo/turbo-build$colon$sass.log +0 -352
  451. package/components/datepicker/.turbo/turbo-build.log +0 -493
  452. package/components/datepicker/.turbo/turbo-postCss$colon$component.log +0 -5
  453. package/components/datepicker/.turbo/turbo-sass$colon$render.log +0 -58
  454. package/components/datepicker/dist/auro-calendar-cell.d.ts.map +0 -1
  455. package/components/datepicker/dist/auro-calendar-month.d.ts.map +0 -1
  456. package/components/datepicker/dist/auro-calendar.d.ts.map +0 -1
  457. package/components/datepicker/dist/auro-datepicker.d.ts.map +0 -1
  458. package/components/datepicker/dist/dropdownVersion.d.ts.map +0 -1
  459. package/components/datepicker/dist/formkit/auro-dropdownVersion.d.ts.map +0 -1
  460. package/components/datepicker/dist/formkit/auro-inputVersion.d.ts.map +0 -1
  461. package/components/datepicker/dist/index.d.ts.map +0 -1
  462. package/components/datepicker/dist/popoverVersion.d.ts.map +0 -1
  463. package/components/datepicker/dist/styles/color-calendar-css.d.ts.map +0 -1
  464. package/components/datepicker/dist/styles/color-cell-css.d.ts.map +0 -1
  465. package/components/datepicker/dist/styles/color-css.d.ts.map +0 -1
  466. package/components/datepicker/dist/styles/color-month-css.d.ts.map +0 -1
  467. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts.map +0 -1
  468. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts.map +0 -1
  469. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts.map +0 -1
  470. package/components/datepicker/dist/styles/style-css.d.ts.map +0 -1
  471. package/components/datepicker/dist/styles/tokens-css.d.ts.map +0 -1
  472. package/components/datepicker/dist/utilities.d.ts.map +0 -1
  473. package/components/datepicker/dist/utilitiesCalendar.d.ts.map +0 -1
  474. package/components/datepicker/dist/utilitiesCalendarRender.d.ts.map +0 -1
  475. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts.map +0 -1
  476. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts.map +0 -1
  477. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts.map +0 -1
  478. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts.map +0 -1
  479. package/components/datepicker/node_modules/chalk/package.json +0 -83
  480. package/components/datepicker/node_modules/chalk/readme.md +0 -325
  481. package/components/datepicker/node_modules/chalk/source/index.d.ts +0 -320
  482. package/components/datepicker/node_modules/chalk/source/index.js +0 -225
  483. package/components/datepicker/node_modules/chalk/source/utilities.js +0 -33
  484. package/components/datepicker/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  485. package/components/datepicker/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  486. package/components/datepicker/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  487. package/components/datepicker/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  488. package/components/datepicker/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  489. package/components/datepicker/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  490. package/components/datepicker/node_modules/rollup-plugin-serve/LICENSE.md +0 -21
  491. package/components/datepicker/node_modules/rollup-plugin-serve/README.md +0 -137
  492. package/components/datepicker/node_modules/rollup-plugin-serve/dist/index.cjs +0 -181
  493. package/components/datepicker/node_modules/rollup-plugin-serve/dist/index.mjs +0 -173
  494. package/components/datepicker/node_modules/rollup-plugin-serve/index.d.ts +0 -75
  495. package/components/datepicker/node_modules/rollup-plugin-serve/package.json +0 -51
  496. package/components/datepicker/package.json +0 -79
  497. package/components/datepicker/src/auro-calendar-cell.js +0 -381
  498. package/components/datepicker/src/auro-calendar-month.js +0 -128
  499. package/components/datepicker/src/auro-calendar.js +0 -329
  500. package/components/datepicker/src/auro-datepicker.js +0 -1002
  501. package/components/datepicker/src/dropdownVersion.js +0 -0
  502. package/components/datepicker/src/formkit/auro-dropdownVersion.js +0 -1
  503. package/components/datepicker/src/formkit/auro-inputVersion.js +0 -1
  504. package/components/datepicker/src/index.js +0 -6
  505. package/components/datepicker/src/popoverVersion.js +0 -1
  506. package/components/datepicker/src/styles/color-calendar-css.js +0 -2
  507. package/components/datepicker/src/styles/color-calendar.css +0 -35
  508. package/components/datepicker/src/styles/color-calendar.scss +0 -51
  509. package/components/datepicker/src/styles/color-cell-css.js +0 -2
  510. package/components/datepicker/src/styles/color-cell.css +0 -45
  511. package/components/datepicker/src/styles/color-cell.scss +0 -73
  512. package/components/datepicker/src/styles/color-css.js +0 -2
  513. package/components/datepicker/src/styles/color-month-css.js +0 -2
  514. package/components/datepicker/src/styles/color-month.css +0 -34
  515. package/components/datepicker/src/styles/color-month.scss +0 -27
  516. package/components/datepicker/src/styles/color.css +0 -43
  517. package/components/datepicker/src/styles/color.scss +0 -30
  518. package/components/datepicker/src/styles/style-auro-calendar-cell-css.js +0 -2
  519. package/components/datepicker/src/styles/style-auro-calendar-cell.css +0 -123
  520. package/components/datepicker/src/styles/style-auro-calendar-cell.scss +0 -147
  521. package/components/datepicker/src/styles/style-auro-calendar-css.js +0 -2
  522. package/components/datepicker/src/styles/style-auro-calendar-month-css.js +0 -2
  523. package/components/datepicker/src/styles/style-auro-calendar-month.css +0 -121
  524. package/components/datepicker/src/styles/style-auro-calendar-month.scss +0 -141
  525. package/components/datepicker/src/styles/style-auro-calendar.css +0 -152
  526. package/components/datepicker/src/styles/style-auro-calendar.scss +0 -191
  527. package/components/datepicker/src/styles/style-css.js +0 -2
  528. package/components/datepicker/src/styles/style.css +0 -111
  529. package/components/datepicker/src/styles/style.scss +0 -107
  530. package/components/datepicker/src/styles/tokens-css.js +0 -2
  531. package/components/datepicker/src/styles/tokens.css +0 -22
  532. package/components/datepicker/src/styles/tokens.scss +0 -25
  533. package/components/datepicker/src/utilities.js +0 -87
  534. package/components/datepicker/src/utilitiesCalendar.js +0 -138
  535. package/components/datepicker/src/utilitiesCalendarRender.js +0 -156
  536. package/components/datepicker/src/vendor/wc-range-datepicker/day.js +0 -8
  537. package/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker-calendar.js +0 -521
  538. package/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker-cell.js +0 -211
  539. package/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker.js +0 -254
  540. package/components/dropdown/.stylelintrc.json +0 -3
  541. package/components/dropdown/.turbo/turbo-build$colon$sass.log +0 -75
  542. package/components/dropdown/.turbo/turbo-build$colon$version.log +0 -7
  543. package/components/dropdown/.turbo/turbo-build.log +0 -206
  544. package/components/dropdown/.turbo/turbo-bundler.log +0 -13
  545. package/components/dropdown/.turbo/turbo-postCss$colon$component.log +0 -5
  546. package/components/dropdown/.turbo/turbo-sass$colon$render.log +0 -34
  547. package/components/dropdown/.turbo/turbo-types.log +0 -4
  548. package/components/dropdown/dist/auro-dropdown.d.ts.map +0 -1
  549. package/components/dropdown/dist/auro-dropdownBib.d.ts.map +0 -1
  550. package/components/dropdown/dist/iconVersion.d.ts.map +0 -1
  551. package/components/dropdown/dist/index.d.ts.map +0 -1
  552. package/components/dropdown/dist/styles/bibColors-css.d.ts.map +0 -1
  553. package/components/dropdown/dist/styles/bibStyles-css.d.ts.map +0 -1
  554. package/components/dropdown/dist/styles/color-css.d.ts.map +0 -1
  555. package/components/dropdown/dist/styles/style-css.d.ts.map +0 -1
  556. package/components/dropdown/dist/styles/tokens-css.d.ts.map +0 -1
  557. package/components/dropdown/node_modules/chalk/package.json +0 -83
  558. package/components/dropdown/node_modules/chalk/readme.md +0 -325
  559. package/components/dropdown/node_modules/chalk/source/index.d.ts +0 -320
  560. package/components/dropdown/node_modules/chalk/source/index.js +0 -225
  561. package/components/dropdown/node_modules/chalk/source/utilities.js +0 -33
  562. package/components/dropdown/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  563. package/components/dropdown/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  564. package/components/dropdown/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  565. package/components/dropdown/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  566. package/components/dropdown/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  567. package/components/dropdown/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  568. package/components/dropdown/package.json +0 -57
  569. package/components/dropdown/src/auro-dropdown.js +0 -474
  570. package/components/dropdown/src/auro-dropdownBib.js +0 -106
  571. package/components/dropdown/src/iconVersion.js +0 -1
  572. package/components/dropdown/src/index.js +0 -6
  573. package/components/dropdown/src/styles/bibColors-css.js +0 -2
  574. package/components/dropdown/src/styles/bibColors.css +0 -6
  575. package/components/dropdown/src/styles/bibColors.scss +0 -18
  576. package/components/dropdown/src/styles/bibStyles-css.js +0 -2
  577. package/components/dropdown/src/styles/bibStyles.css +0 -43
  578. package/components/dropdown/src/styles/bibStyles.scss +0 -60
  579. package/components/dropdown/src/styles/color-css.js +0 -2
  580. package/components/dropdown/src/styles/color.css +0 -59
  581. package/components/dropdown/src/styles/color.scss +0 -79
  582. package/components/dropdown/src/styles/style-css.js +0 -2
  583. package/components/dropdown/src/styles/style.css +0 -92
  584. package/components/dropdown/src/styles/style.scss +0 -122
  585. package/components/dropdown/src/styles/tokens-css.js +0 -2
  586. package/components/dropdown/src/styles/tokens.css +0 -13
  587. package/components/dropdown/src/styles/tokens.scss +0 -15
  588. package/components/form/.stylelintrc.json +0 -3
  589. package/components/form/.turbo/turbo-build$colon$sass.log +0 -57
  590. package/components/form/.turbo/turbo-build$colon$version.log +0 -4
  591. package/components/form/.turbo/turbo-build.log +0 -113
  592. package/components/form/.turbo/turbo-bundler.log +0 -13
  593. package/components/form/.turbo/turbo-postCss$colon$component.log +0 -5
  594. package/components/form/.turbo/turbo-sass$colon$render.log +0 -10
  595. package/components/form/.turbo/turbo-types.log +0 -4
  596. package/components/form/dist/auro-form.d.ts.map +0 -1
  597. package/components/form/dist/index.d.ts.map +0 -1
  598. package/components/form/dist/styles/style-css.d.ts.map +0 -1
  599. package/components/form/node_modules/chalk/package.json +0 -83
  600. package/components/form/node_modules/chalk/readme.md +0 -325
  601. package/components/form/node_modules/chalk/source/index.d.ts +0 -320
  602. package/components/form/node_modules/chalk/source/index.js +0 -225
  603. package/components/form/node_modules/chalk/source/utilities.js +0 -33
  604. package/components/form/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  605. package/components/form/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  606. package/components/form/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  607. package/components/form/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  608. package/components/form/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  609. package/components/form/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  610. package/components/form/package.json +0 -72
  611. package/components/form/src/auro-form.js +0 -74
  612. package/components/form/src/index.js +0 -6
  613. package/components/form/src/styles/style-css.js +0 -2
  614. package/components/form/src/styles/style.css +0 -36
  615. package/components/form/src/styles/style.scss +0 -37
  616. package/components/input/.stylelintrc.json +0 -3
  617. package/components/input/.turbo/turbo-build$colon$sass.log +0 -198
  618. package/components/input/.turbo/turbo-build$colon$version.log +0 -10
  619. package/components/input/.turbo/turbo-build.log +0 -353
  620. package/components/input/.turbo/turbo-bundler.log +0 -13
  621. package/components/input/.turbo/turbo-postCss$colon$component.log +0 -5
  622. package/components/input/.turbo/turbo-sass$colon$render.log +0 -58
  623. package/components/input/.turbo/turbo-types.log +0 -4
  624. package/components/input/dist/auro-input.d.ts.map +0 -1
  625. package/components/input/dist/base-input.d.ts.map +0 -1
  626. package/components/input/dist/buttonVersion.d.ts.map +0 -1
  627. package/components/input/dist/i18n.d.ts.map +0 -1
  628. package/components/input/dist/iconVersion.d.ts.map +0 -1
  629. package/components/input/dist/index.d.ts.map +0 -1
  630. package/components/input/dist/styles/borders-css.d.ts.map +0 -1
  631. package/components/input/dist/styles/color-css.d.ts.map +0 -1
  632. package/components/input/dist/styles/helpText-css.d.ts.map +0 -1
  633. package/components/input/dist/styles/input-css.d.ts.map +0 -1
  634. package/components/input/dist/styles/label-css.d.ts.map +0 -1
  635. package/components/input/dist/styles/mixins-css.d.ts.map +0 -1
  636. package/components/input/dist/styles/notificationIcons-css.d.ts.map +0 -1
  637. package/components/input/dist/styles/style-css.d.ts.map +0 -1
  638. package/components/input/dist/styles/tokens-css.d.ts.map +0 -1
  639. package/components/input/node_modules/chalk/package.json +0 -83
  640. package/components/input/node_modules/chalk/readme.md +0 -325
  641. package/components/input/node_modules/chalk/source/index.d.ts +0 -320
  642. package/components/input/node_modules/chalk/source/index.js +0 -225
  643. package/components/input/node_modules/chalk/source/utilities.js +0 -33
  644. package/components/input/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  645. package/components/input/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  646. package/components/input/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  647. package/components/input/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  648. package/components/input/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  649. package/components/input/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  650. package/components/input/package.json +0 -75
  651. package/components/input/src/auro-input.js +0 -241
  652. package/components/input/src/base-input.js +0 -1103
  653. package/components/input/src/buttonVersion.js +0 -1
  654. package/components/input/src/i18n.js +0 -102
  655. package/components/input/src/iconVersion.js +0 -1
  656. package/components/input/src/index.js +0 -6
  657. package/components/input/src/styles/@aurodesignsystem/webcorestylesheets/src/breakpoints +0 -0
  658. package/components/input/src/styles/borders-css.js +0 -2
  659. package/components/input/src/styles/borders.css +0 -35
  660. package/components/input/src/styles/borders.scss +0 -49
  661. package/components/input/src/styles/color-css.js +0 -2
  662. package/components/input/src/styles/color.css +0 -62
  663. package/components/input/src/styles/color.scss +0 -89
  664. package/components/input/src/styles/helpText-css.js +0 -2
  665. package/components/input/src/styles/helpText.css +0 -6
  666. package/components/input/src/styles/helpText.scss +0 -9
  667. package/components/input/src/styles/input-css.js +0 -2
  668. package/components/input/src/styles/input.css +0 -35
  669. package/components/input/src/styles/input.scss +0 -53
  670. package/components/input/src/styles/label-css.js +0 -2
  671. package/components/input/src/styles/label.css +0 -45
  672. package/components/input/src/styles/label.scss +0 -71
  673. package/components/input/src/styles/mixins-css.js +0 -2
  674. package/components/input/src/styles/mixins.css +0 -1
  675. package/components/input/src/styles/mixins.scss +0 -45
  676. package/components/input/src/styles/notificationIcons-css.js +0 -2
  677. package/components/input/src/styles/notificationIcons.css +0 -84
  678. package/components/input/src/styles/notificationIcons.scss +0 -109
  679. package/components/input/src/styles/style-css.js +0 -2
  680. package/components/input/src/styles/style.css +0 -290
  681. package/components/input/src/styles/style.scss +0 -53
  682. package/components/input/src/styles/tokens-css.js +0 -2
  683. package/components/input/src/styles/tokens.css +0 -9
  684. package/components/input/src/styles/tokens.scss +0 -11
  685. package/components/menu/.stylelintrc.json +0 -3
  686. package/components/menu/.turbo/turbo-build$colon$sass.log +0 -86
  687. package/components/menu/.turbo/turbo-build$colon$version.log +0 -7
  688. package/components/menu/.turbo/turbo-build.log +0 -184
  689. package/components/menu/.turbo/turbo-bundler.log +0 -13
  690. package/components/menu/.turbo/turbo-postCss$colon$component.log +0 -5
  691. package/components/menu/.turbo/turbo-sass$colon$render.log +0 -34
  692. package/components/menu/.turbo/turbo-types.log +0 -4
  693. package/components/menu/dist/auro-menu.d.ts.map +0 -1
  694. package/components/menu/dist/auro-menuoption.d.ts.map +0 -1
  695. package/components/menu/dist/iconVersion.d.ts.map +0 -1
  696. package/components/menu/dist/index.d.ts.map +0 -1
  697. package/components/menu/dist/styles/color-menu-css.d.ts.map +0 -1
  698. package/components/menu/dist/styles/color-menuoption-css.d.ts.map +0 -1
  699. package/components/menu/dist/styles/style-menu-css.d.ts.map +0 -1
  700. package/components/menu/dist/styles/style-menuoption-css.d.ts.map +0 -1
  701. package/components/menu/dist/styles/tokens-css.d.ts.map +0 -1
  702. package/components/menu/node_modules/chalk/package.json +0 -83
  703. package/components/menu/node_modules/chalk/readme.md +0 -325
  704. package/components/menu/node_modules/chalk/source/index.d.ts +0 -320
  705. package/components/menu/node_modules/chalk/source/index.js +0 -225
  706. package/components/menu/node_modules/chalk/source/utilities.js +0 -33
  707. package/components/menu/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  708. package/components/menu/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  709. package/components/menu/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  710. package/components/menu/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  711. package/components/menu/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  712. package/components/menu/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  713. package/components/menu/node_modules/mime/CHANGELOG.md +0 -296
  714. package/components/menu/node_modules/mime/Mime.js +0 -97
  715. package/components/menu/node_modules/mime/README.md +0 -187
  716. package/components/menu/node_modules/mime/cli.js +0 -46
  717. package/components/menu/node_modules/mime/index.js +0 -4
  718. package/components/menu/node_modules/mime/lite.js +0 -4
  719. package/components/menu/node_modules/mime/package.json +0 -52
  720. package/components/menu/node_modules/mime/types/other.js +0 -1
  721. package/components/menu/node_modules/mime/types/standard.js +0 -1
  722. package/components/menu/node_modules/rollup-plugin-serve/LICENSE.md +0 -21
  723. package/components/menu/node_modules/rollup-plugin-serve/README.md +0 -135
  724. package/components/menu/node_modules/rollup-plugin-serve/dist/index.cjs +0 -181
  725. package/components/menu/node_modules/rollup-plugin-serve/dist/index.cjs.js +0 -197
  726. package/components/menu/node_modules/rollup-plugin-serve/dist/index.es.js +0 -193
  727. package/components/menu/node_modules/rollup-plugin-serve/dist/index.mjs +0 -173
  728. package/components/menu/node_modules/rollup-plugin-serve/package.json +0 -44
  729. package/components/menu/package.json +0 -70
  730. package/components/menu/src/auro-menu.js +0 -539
  731. package/components/menu/src/auro-menuoption.js +0 -147
  732. package/components/menu/src/iconVersion.js +0 -1
  733. package/components/menu/src/index.js +0 -8
  734. package/components/menu/src/styles/color-menu-css.js +0 -2
  735. package/components/menu/src/styles/color-menu.css +0 -4
  736. package/components/menu/src/styles/color-menu.scss +0 -12
  737. package/components/menu/src/styles/color-menuoption-css.js +0 -2
  738. package/components/menu/src/styles/color-menuoption.css +0 -23
  739. package/components/menu/src/styles/color-menuoption.scss +0 -33
  740. package/components/menu/src/styles/style-menu-css.js +0 -2
  741. package/components/menu/src/styles/style-menu.css +0 -2061
  742. package/components/menu/src/styles/style-menu.scss +0 -80
  743. package/components/menu/src/styles/style-menuoption-css.js +0 -2
  744. package/components/menu/src/styles/style-menuoption.css +0 -45
  745. package/components/menu/src/styles/style-menuoption.scss +0 -66
  746. package/components/menu/src/styles/tokens-css.js +0 -2
  747. package/components/menu/src/styles/tokens.css +0 -6
  748. package/components/menu/src/styles/tokens.scss +0 -6
  749. package/components/radio/.stylelintrc.json +0 -3
  750. package/components/radio/.turbo/turbo-build$colon$sass.log +0 -130
  751. package/components/radio/.turbo/turbo-build.log +0 -216
  752. package/components/radio/.turbo/turbo-bundler.log +0 -13
  753. package/components/radio/.turbo/turbo-postCss$colon$component.log +0 -5
  754. package/components/radio/.turbo/turbo-sass$colon$render.log +0 -34
  755. package/components/radio/.turbo/turbo-types.log +0 -4
  756. package/components/radio/dist/auro-radio-group.d.ts.map +0 -1
  757. package/components/radio/dist/auro-radio.d.ts.map +0 -1
  758. package/components/radio/dist/index.d.ts.map +0 -1
  759. package/components/radio/dist/styles/auro-radio-group-css.d.ts.map +0 -1
  760. package/components/radio/dist/styles/color-css.d.ts.map +0 -1
  761. package/components/radio/dist/styles/groupColor-css.d.ts.map +0 -1
  762. package/components/radio/dist/styles/style-css.d.ts.map +0 -1
  763. package/components/radio/dist/styles/tokens-css.d.ts.map +0 -1
  764. package/components/radio/node_modules/chalk/package.json +0 -83
  765. package/components/radio/node_modules/chalk/readme.md +0 -325
  766. package/components/radio/node_modules/chalk/source/index.d.ts +0 -320
  767. package/components/radio/node_modules/chalk/source/index.js +0 -225
  768. package/components/radio/node_modules/chalk/source/utilities.js +0 -33
  769. package/components/radio/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  770. package/components/radio/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  771. package/components/radio/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  772. package/components/radio/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  773. package/components/radio/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  774. package/components/radio/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  775. package/components/radio/package.json +0 -69
  776. package/components/radio/src/auro-radio-group.js +0 -433
  777. package/components/radio/src/auro-radio.js +0 -256
  778. package/components/radio/src/index.js +0 -8
  779. package/components/radio/src/styles/auro-radio-group-css.js +0 -2
  780. package/components/radio/src/styles/auro-radio-group.css +0 -23
  781. package/components/radio/src/styles/auro-radio-group.scss +0 -36
  782. package/components/radio/src/styles/color-css.js +0 -2
  783. package/components/radio/src/styles/color.css +0 -45
  784. package/components/radio/src/styles/color.scss +0 -56
  785. package/components/radio/src/styles/groupColor-css.js +0 -2
  786. package/components/radio/src/styles/groupColor.css +0 -21
  787. package/components/radio/src/styles/groupColor.scss +0 -33
  788. package/components/radio/src/styles/style-css.js +0 -2
  789. package/components/radio/src/styles/style.css +0 -113
  790. package/components/radio/src/styles/style.scss +0 -99
  791. package/components/radio/src/styles/tokens-css.js +0 -2
  792. package/components/radio/src/styles/tokens.css +0 -9
  793. package/components/radio/src/styles/tokens.scss +0 -12
  794. package/components/select/.stylelintrc.json +0 -3
  795. package/components/select/.turbo/turbo-build$colon$sass.log +0 -122
  796. package/components/select/.turbo/turbo-build.log +0 -241
  797. package/components/select/.turbo/turbo-postCss$colon$component.log +0 -5
  798. package/components/select/.turbo/turbo-sass$colon$render.log +0 -22
  799. package/components/select/dist/auro-select.d.ts.map +0 -1
  800. package/components/select/dist/formkit/auro-dropdownVersion.d.ts.map +0 -1
  801. package/components/select/dist/index.d.ts.map +0 -1
  802. package/components/select/dist/styles/color-css.d.ts.map +0 -1
  803. package/components/select/dist/styles/style-css.d.ts.map +0 -1
  804. package/components/select/dist/styles/tokens-css.d.ts.map +0 -1
  805. package/components/select/node_modules/chalk/package.json +0 -83
  806. package/components/select/node_modules/chalk/readme.md +0 -325
  807. package/components/select/node_modules/chalk/source/index.d.ts +0 -320
  808. package/components/select/node_modules/chalk/source/index.js +0 -225
  809. package/components/select/node_modules/chalk/source/utilities.js +0 -33
  810. package/components/select/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  811. package/components/select/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  812. package/components/select/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  813. package/components/select/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
  814. package/components/select/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  815. package/components/select/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
  816. package/components/select/node_modules/mime/CHANGELOG.md +0 -296
  817. package/components/select/node_modules/mime/Mime.js +0 -97
  818. package/components/select/node_modules/mime/README.md +0 -187
  819. package/components/select/node_modules/mime/cli.js +0 -46
  820. package/components/select/node_modules/mime/index.js +0 -4
  821. package/components/select/node_modules/mime/lite.js +0 -4
  822. package/components/select/node_modules/mime/package.json +0 -52
  823. package/components/select/node_modules/mime/types/other.js +0 -1
  824. package/components/select/node_modules/mime/types/standard.js +0 -1
  825. package/components/select/node_modules/rollup-plugin-serve/LICENSE.md +0 -21
  826. package/components/select/node_modules/rollup-plugin-serve/README.md +0 -135
  827. package/components/select/node_modules/rollup-plugin-serve/dist/index.cjs +0 -181
  828. package/components/select/node_modules/rollup-plugin-serve/dist/index.cjs.js +0 -197
  829. package/components/select/node_modules/rollup-plugin-serve/dist/index.es.js +0 -193
  830. package/components/select/node_modules/rollup-plugin-serve/dist/index.mjs +0 -173
  831. package/components/select/node_modules/rollup-plugin-serve/package.json +0 -44
  832. package/components/select/package.json +0 -70
  833. package/components/select/packageScripts/postinstall.mjs +0 -28
  834. package/components/select/src/auro-select.js +0 -559
  835. package/components/select/src/formkit/auro-dropdownVersion.js +0 -1
  836. package/components/select/src/index.js +0 -6
  837. package/components/select/src/styles/color-css.js +0 -2
  838. package/components/select/src/styles/color.css +0 -63
  839. package/components/select/src/styles/color.scss +0 -33
  840. package/components/select/src/styles/style-css.js +0 -2
  841. package/components/select/src/styles/style.css +0 -104
  842. package/components/select/src/styles/style.scss +0 -76
  843. package/components/select/src/styles/tokens-css.js +0 -2
  844. package/components/select/src/styles/tokens.css +0 -3
  845. package/components/select/src/styles/tokens.scss +0 -5
  846. package/packages/build-tools/package.json +0 -15
  847. package/packages/build-tools/src/docProcessor.mjs +0 -104
  848. package/packages/build-tools/src/formVersionWriter.mjs +0 -75
  849. package/packages/build-tools/src/index.js +0 -1
  850. package/packages/build-tools/src/kitDocProcessor.mjs +0 -66
  851. package/packages/form-validation/package.json +0 -12
  852. package/packages/form-validation/src/index.js +0 -1
  853. package/packages/form-validation/src/validation.js +0 -259
  854. package/packages/typescript/base.json +0 -19
  855. package/packages/typescript/package.json +0 -20
  856. package/turbo.json +0 -100
@@ -0,0 +1,4562 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const t$7=globalThis,e$c=t$7.ShadowRoot&&(void 0===t$7.ShadyCSS||t$7.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$7=Symbol(),o$b=new WeakMap;let n$a = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$7)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$c&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$b.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$b.set(s,t));}return t}toString(){return this.cssText}};const r$c=t=>new n$a("string"==typeof t?t:t+"",void 0,s$7),i$f=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$a(o,t,s$7)},S$6=(s,o)=>{if(e$c)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$7.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$9=e$c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$c(e)})(t):t;
7
+
8
+ /**
9
+ * @license
10
+ * Copyright 2017 Google LLC
11
+ * SPDX-License-Identifier: BSD-3-Clause
12
+ */const{is:i$e,defineProperty:e$b,getOwnPropertyDescriptor:r$b,getOwnPropertyNames:h$6,getOwnPropertySymbols:o$a,getPrototypeOf:n$9}=Object,a$7=globalThis,c$8=a$7.trustedTypes,l$7=c$8?c$8.emptyScript:"",p$6=a$7.reactiveElementPolyfillSupport,d$6=(t,s)=>t,u$7={toAttribute(t,s){switch(s){case Boolean:t=t?l$7:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$6=(t,s)=>!i$e(t,s),y$5={attribute:true,type:String,converter:u$7,reflect:false,hasChanged:f$6};Symbol.metadata??=Symbol("metadata"),a$7.litPropertyMetadata??=new WeakMap;let b$3 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$5){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$b(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$b(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$5}static _$Ei(){if(this.hasOwnProperty(d$6("elementProperties")))return;const t=n$9(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$6("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$6("properties"))){const t=this.properties,s=[...h$6(t),...o$a(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$9(s));}else void 0!==s&&i.push(c$9(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$6(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$7).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$7;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$6)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$3.elementStyles=[],b$3.shadowRootOptions={mode:"open"},b$3[d$6("elementProperties")]=new Map,b$3[d$6("finalized")]=new Map,p$6?.({ReactiveElement:b$3}),(a$7.reactiveElementVersions??=[]).push("2.0.4");
13
+
14
+ /**
15
+ * @license
16
+ * Copyright 2017 Google LLC
17
+ * SPDX-License-Identifier: BSD-3-Clause
18
+ */
19
+ const t$6=globalThis,i$d=t$6.trustedTypes,s$6=i$d?i$d.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$a="$lit$",h$5=`lit$${Math.random().toFixed(9).slice(2)}$`,o$9="?"+h$5,n$8=`<${o$9}>`,r$a=document,l$6=()=>r$a.createComment(""),c$7=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$6=Array.isArray,u$6=t=>a$6(t)||"function"==typeof t?.[Symbol.iterator],d$5="[ \t\n\f\r]",f$5=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$3=/-->/g,_$3=/>/g,m$3=RegExp(`>|${d$5}(?:([^\\s"'>=/]+)(${d$5}*=${d$5}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$5=/'/g,g$3=/"/g,$$3=/^(?:script|style|textarea|title)$/i,y$4=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$2=y$4(1),T$3=Symbol.for("lit-noChange"),E$3=Symbol.for("lit-nothing"),A$3=new WeakMap,C$3=r$a.createTreeWalker(r$a,129);function P$3(t,i){if(!a$6(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$6?s$6.createHTML(i):i}const V$3=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$5;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$5?"!--"===u[1]?c=v$3:void 0!==u[1]?c=_$3:void 0!==u[2]?($$3.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$3):void 0!==u[3]&&(c=m$3):c===m$3?">"===u[0]?(c=r??f$5,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$3:'"'===u[3]?g$3:p$5):c===g$3||c===p$5?c=m$3:c===v$3||c===_$3?c=f$5:(c=m$3,r=void 0);const x=c===m$3&&t[i+1].startsWith("/>")?" ":"";l+=c===f$5?s+n$8:d>=0?(o.push(a),s.slice(0,d)+e$a+s.slice(d)+h$5+x):s+h$5+(-2===d?i:x);}return [P$3(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$3 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$3(t,s);if(this.el=N.createElement(f,n),C$3.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$3.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$a)){const i=v[a++],s=r.getAttribute(t).split(h$5),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$3:"?"===e[1]?I$3:"@"===e[1]?L$3:k$3}),r.removeAttribute(t);}else t.startsWith(h$5)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$3.test(r.tagName)){const t=r.textContent.split(h$5),s=t.length-1;if(s>0){r.textContent=i$d?i$d.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$6()),C$3.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$6());}}}else if(8===r.nodeType)if(r.data===o$9)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$5,t+1));)d.push({type:7,index:c}),t+=h$5.length-1;}c++;}}static createElement(t,i){const s=r$a.createElement("template");return s.innerHTML=t,s}};function S$5(t,i,s=t,e){if(i===T$3)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$7(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$5(t,h._$AS(t,i.values),h,e)),i}let M$3 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$a).importNode(i,true);C$3.currentNode=e;let h=C$3.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$3(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$3(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$3.nextNode(),o++);}return C$3.currentNode=r$a,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$3 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$3,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$5(this,t,i),c$7(t)?t===E$3||null==t||""===t?(this._$AH!==E$3&&this._$AR(),this._$AH=E$3):t!==this._$AH&&t!==T$3&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$6(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$3&&c$7(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$a.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$3.createElement(P$3(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$3(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$3.get(t.strings);return void 0===i&&A$3.set(t.strings,i=new N$3(t)),i}k(t){a$6(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$6()),this.O(l$6()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$3 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$3,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$3;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$5(this,t,i,0),o=!c$7(t)||t!==this._$AH&&t!==T$3,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$5(this,e[s+n],i,n),r===T$3&&(r=this._$AH[n]),o||=!c$7(r)||r!==this._$AH[n],r===E$3?t=E$3:t!==E$3&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$3?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$3 = class H extends k$3{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$3?void 0:t;}};let I$3 = class I extends k$3{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$3);}};let L$3 = class L extends k$3{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$5(this,t,i,0)??E$3)===T$3)return;const s=this._$AH,e=t===E$3&&s!==E$3||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$3&&(s===E$3||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$3 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$5(this,t);}};const j$3=t$6.litHtmlPolyfillSupport;j$3?.(N$3,R$3),(t$6.litHtmlVersions??=[]).push("3.2.1");const B$3=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$3(i.insertBefore(l$6(),t),t,void 0,s??{});}return h._$AI(t),h};
20
+
21
+ /**
22
+ * @license
23
+ * Copyright 2017 Google LLC
24
+ * SPDX-License-Identifier: BSD-3-Clause
25
+ */let r$9 = class r extends b$3{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$3(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$3}};r$9._$litElement$=true,r$9["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$9});const i$c=globalThis.litElementPolyfillSupport;i$c?.({LitElement:r$9});(globalThis.litElementVersions??=[]).push("4.1.1");
26
+
27
+ /**
28
+ * @license
29
+ * Copyright 2017 Google LLC
30
+ * SPDX-License-Identifier: BSD-3-Clause
31
+ */
32
+ const t$5={ATTRIBUTE:1},e$9=t=>(...e)=>({_$litDirective$:t,values:e});let i$b = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
33
+
34
+ /**
35
+ * @license
36
+ * Copyright 2018 Google LLC
37
+ * SPDX-License-Identifier: BSD-3-Clause
38
+ */const e$8=e$9(class extends i$b{constructor(t){if(super(t),t.type!==t$5.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$3}});
39
+
40
+ /**
41
+ * @license
42
+ * Copyright 2020 Google LLC
43
+ * SPDX-License-Identifier: BSD-3-Clause
44
+ */
45
+ const a$5=Symbol.for(""),o$8=t=>{if(t?.r===a$5)return t?._$litStatic$},s$5=t=>({_$litStatic$:t,r:a$5}),i$a=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$5}),l$5=new Map,n$7=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$8(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l$5.get(t))&&(n.raw=n,l$5.set(t,r=n)),e=u;}return t(r,...e)},u$5=n$7(x$2);
46
+
47
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
48
+ // See LICENSE in the project root for license information.
49
+
50
+ // ---------------------------------------------------------------------
51
+
52
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
53
+
54
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
55
+
56
+ /* eslint-disable jsdoc/require-param */
57
+
58
+ /**
59
+ * This will register a new custom element with the browser.
60
+ * @param {String} name - The name of the custom element.
61
+ * @param {Object} componentClass - The class to register as a custom element.
62
+ * @returns {void}
63
+ */
64
+ registerComponent(name, componentClass) {
65
+ if (!customElements.get(name)) {
66
+ customElements.define(name, class extends componentClass {});
67
+ }
68
+ }
69
+
70
+ /**
71
+ * Finds and returns the closest HTML Element based on a selector.
72
+ * @returns {void}
73
+ */
74
+ closestElement(
75
+ selector, // selector like in .closest()
76
+ base = this, // extra functionality to skip a parent
77
+ __Closest = (el, found = el && el.closest(selector)) =>
78
+ !el || el === document || el === window
79
+ ? null // standard .closest() returns null for non-found selectors also
80
+ : found
81
+ ? found // found a selector INside this element
82
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
83
+ ) {
84
+ return __Closest(base);
85
+ }
86
+ /* eslint-enable jsdoc/require-param */
87
+
88
+ /**
89
+ * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
90
+ * @param {Object} elem - The element to check.
91
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
92
+ * @returns {void}
93
+ */
94
+ handleComponentTagRename(elem, tagName) {
95
+ const tag = tagName.toLowerCase();
96
+ const elemTag = elem.tagName.toLowerCase();
97
+
98
+ if (elemTag !== tag) {
99
+ elem.setAttribute(tag, true);
100
+ }
101
+ }
102
+
103
+ /**
104
+ * Validates if an element is a specific Auro component.
105
+ * @param {Object} elem - The element to validate.
106
+ * @param {String} tagName - The name of the Auro component to check against.
107
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
108
+ */
109
+ elementMatch(elem, tagName) {
110
+ const tag = tagName.toLowerCase();
111
+ const elemTag = elem.tagName.toLowerCase();
112
+
113
+ return elemTag === tag || elem.hasAttribute(tag);
114
+ }
115
+ };
116
+
117
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
118
+ // See LICENSE in the project root for license information.
119
+
120
+
121
+ class AuroFormValidation {
122
+ constructor() {
123
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
124
+ }
125
+
126
+ /**
127
+ * Resets the element to its initial state.
128
+ * @private
129
+ * @param {object} elem - HTML element to reset.
130
+ * @returns {void}
131
+ */
132
+ reset(elem) {
133
+ elem.validity = undefined;
134
+ elem.value = undefined;
135
+
136
+ // Resets the second value of the datepicker in range state
137
+ if (elem.valueEnd) {
138
+ elem.valueEnd = undefined;
139
+ }
140
+
141
+ // Resets selected option of element
142
+ if (elem.optionSelected) {
143
+ elem.optionSelected = undefined;
144
+ }
145
+
146
+ // Runs validation to handle error attribute
147
+ this.validate(elem);
148
+ }
149
+
150
+ /**
151
+ * Validates the attributes of a given element based on predefined validation rules.
152
+ *
153
+ * @param {HTMLElement} elem - The element to be validated.
154
+ * @returns {void}
155
+ *
156
+ * @example
157
+ * // Assuming `inputElement` is a reference to an input element in the DOM
158
+ * validateElementAttributes(inputElement);
159
+ *
160
+ * The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
161
+ * If a validation rule is violated, it sets the element's validity state and error message accordingly.
162
+ *
163
+ * Validation rules:
164
+ * - input:
165
+ * - length:
166
+ * - tooShort: Checks if the value length is less than the minimum length.
167
+ * - tooLong: Checks if the value length exceeds the maximum length.
168
+ * - pattern:
169
+ * - patternMismatch: Checks if the value does not match the specified pattern.
170
+ * - counter:
171
+ * - range:
172
+ * - rangeOverflow: Checks if the value exceeds the maximum value.
173
+ * - rangeUnderflow: Checks if the value is less than the minimum value.
174
+ */
175
+ validateElementAttributes(elem) {
176
+ const validationRules = {
177
+ input: {
178
+ length: [
179
+ {
180
+ check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
181
+ validity: 'tooShort',
182
+ message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
183
+ },
184
+ {
185
+ check: (e) => e.value?.length > e.maxLength,
186
+ validity: 'tooLong',
187
+ message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
188
+ }
189
+ ],
190
+ pattern: [
191
+ {
192
+ check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
193
+ validity: 'patternMismatch',
194
+ message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
195
+ }
196
+ ]
197
+ },
198
+ counter: {
199
+ range: [
200
+ {
201
+ check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
202
+ validity: 'rangeOverflow',
203
+ message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
204
+ },
205
+ {
206
+ check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
207
+ validity: 'rangeUnderflow',
208
+ message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
209
+ }
210
+ ]
211
+ }
212
+ };
213
+
214
+ let elementType;
215
+ if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
216
+ elementType = 'input';
217
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
218
+ elementType = 'counter';
219
+ }
220
+
221
+ if (elementType) {
222
+ const rules = validationRules[elementType];
223
+
224
+ if (rules) {
225
+ Object.values(rules).flat().forEach(rule => {
226
+ if (rule.check(elem)) {
227
+ elem.validity = rule.validity;
228
+ elem.errorMessage = rule.message(elem);
229
+ }
230
+ });
231
+ }
232
+ }
233
+ }
234
+
235
+ /**
236
+ * Determines the validity state of the element based on the type attribute.
237
+ * @private
238
+ * @param {object} elem - HTML element to validate.
239
+ * @returns {void}
240
+ */
241
+ validateType(elem) {
242
+ if (elem.hasAttribute('type')) {
243
+ if (elem.type === 'email') {
244
+ const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
245
+
246
+ if (!elem.value.match(emailRegex)) {
247
+ elem.validity = 'patternMismatch';
248
+ elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
249
+ }
250
+ } else if (elem.type === 'credit-card') {
251
+ if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
252
+ elem.validity = 'tooShort';
253
+ elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
254
+ }
255
+ } else if (elem.type === 'number') {
256
+ if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
257
+ elem.validity = 'rangeOverflow';
258
+ elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
259
+ }
260
+
261
+ if (elem.min !== undefined && elem.value?.length > 0 && Number(elem.min) > Number(elem.value)) {
262
+ elem.validity = 'rangeUnderflow';
263
+ elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
264
+ }
265
+ } else if (elem.type === 'date') {
266
+ if (elem.value?.length > 0 && elem.value?.length < elem.lengthForType) {
267
+ elem.validity = 'tooShort';
268
+ elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
269
+ } else if (elem.value?.length === elem.lengthForType && elem.util.toNorthAmericanFormat(elem.value, elem.format)) {
270
+ const formattedValue = elem.util.toNorthAmericanFormat(elem.value, elem.format);
271
+ const valueDate = new Date(formattedValue.dateForComparison);
272
+
273
+ // validate max
274
+ if (elem.max?.length === elem.lengthForType) {
275
+ const maxDate = new Date(elem.util.toNorthAmericanFormat(elem.max, elem.format).dateForComparison);
276
+
277
+ if (valueDate > maxDate) {
278
+ elem.validity = 'rangeOverflow';
279
+ elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
280
+ }
281
+ }
282
+
283
+ // validate min
284
+ if (elem.min?.length === elem.lengthForType) {
285
+ const minDate = new Date(elem.util.toNorthAmericanFormat(elem.min, elem.format).dateForComparison);
286
+
287
+ if (valueDate < minDate) {
288
+ elem.validity = 'rangeUnderflow';
289
+ elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
290
+ }
291
+ }
292
+ }
293
+ }
294
+ }
295
+ }
296
+
297
+ /**
298
+ * Determines the validity state of the element.
299
+ * @param {object} elem - HTML element to validate.
300
+ * @param {boolean} force - Boolean that forces validation to run.
301
+ * @returns {void}
302
+ */
303
+ validate(elem, force) {
304
+ this.getInputElements(elem);
305
+ this.getAuroInputs(elem);
306
+
307
+ // Validate only if noValidate is not true and the input does not have focus
308
+ const validationShouldRun = force || (!elem.contains(document.activeElement) && elem.value !== undefined) || elem.validateOnInput;
309
+
310
+ if (elem.hasAttribute('error')) {
311
+ elem.validity = 'customError';
312
+ elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
313
+ } else if (validationShouldRun) {
314
+ elem.validity = 'valid';
315
+ elem.errorMessage = '';
316
+
317
+ /**
318
+ * Only validate once we interact with the datepicker
319
+ * elem.value === undefined is the initial state pre-interaction.
320
+ *
321
+ * The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
322
+ */
323
+
324
+ let hasValue = elem.value && elem.value.length > 0;
325
+
326
+ // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
327
+ if (this.auroInputElements?.length === 2) {
328
+ if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
329
+ hasValue = false;
330
+ }
331
+ }
332
+
333
+ if (!hasValue && elem.required) {
334
+ elem.validity = 'valueMissing';
335
+ elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
336
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
337
+ this.validateType(elem);
338
+ this.validateElementAttributes(elem);
339
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
340
+ this.validateElementAttributes(elem);
341
+ }
342
+ }
343
+
344
+ if (this.auroInputElements?.length > 0) {
345
+ elem.validity = this.auroInputElements[0].validity;
346
+ elem.errorMessage = this.auroInputElements[0].errorMessage;
347
+
348
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
349
+ elem.validity = this.auroInputElements[1].validity;
350
+ elem.errorMessage = this.auroInputElements[1].errorMessage;
351
+ }
352
+ }
353
+
354
+ if (validationShouldRun || elem.hasAttribute('error')) {
355
+ // Use the validity message override if it is declared
356
+ if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
357
+ elem.errorMessage = elem.ValidityMessageOverride;
358
+ }
359
+
360
+ this.getErrorMessage(elem);
361
+
362
+ elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
363
+ bubbles: true,
364
+ composed: true,
365
+ detail: {
366
+ validity: elem.validity,
367
+ message: elem.errorMessage
368
+ }
369
+ }));
370
+ }
371
+ }
372
+
373
+ /**
374
+ * Gets all the HTML5 `inputs` in the element shadow DOM.
375
+ * @private
376
+ * @param {object} elem - HTML element to validate.
377
+ * @returns {void}
378
+ */
379
+ getInputElements(elem) {
380
+ this.inputElements = elem.renderRoot.querySelectorAll('input');
381
+ }
382
+
383
+ /**
384
+ * Gets all the `auro-inputs` in the element shadow DOM.
385
+ * @private
386
+ * @param {object} elem - HTML element to validate.
387
+ * @returns {void}
388
+ */
389
+ getAuroInputs(elem) {
390
+ this.auroInputElements = elem.shadowRoot.querySelectorAll('auro-input, [auro-input]');
391
+ }
392
+
393
+ /**
394
+ * Return appropriate error message.
395
+ * @private
396
+ * @param {object} elem - HTML element to validate.
397
+ * @returns {void}
398
+ */
399
+ getErrorMessage(elem) {
400
+ if (elem.validity !== 'valid') {
401
+ if (elem.setCustomValidity) {
402
+ elem.errorMessage = elem.setCustomValidity;
403
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
404
+ const input = elem.renderRoot.querySelector('input');
405
+
406
+ if (input.validationMessage.length > 0) {
407
+ elem.errorMessage = input.validationMessage;
408
+ }
409
+ } else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
410
+ const firstInput = this.inputElements[0];
411
+
412
+ if (firstInput.validationMessage.length > 0) {
413
+ elem.errorMessage = firstInput.validationMessage;
414
+ } else if (this.inputElements?.length === 2) {
415
+ const secondInput = this.inputElements[1];
416
+
417
+ if (secondInput.validationMessage.length > 0) {
418
+ elem.errorMessage = secondInput.validationMessage;
419
+ }
420
+ }
421
+ }
422
+ } else {
423
+ elem.errorMessage = undefined;
424
+ }
425
+ }
426
+ }
427
+
428
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
429
+ // See LICENSE in the project root for license information.
430
+
431
+
432
+ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
433
+
434
+ /**
435
+ * Generates a unique string to be used for child auro element naming.
436
+ * @private
437
+ * @param {string} baseName - Defines the first part of the unique element name.
438
+ * @param {string} version - Version of the component that will be appended to the baseName.
439
+ * @returns {string} - Unique string to be used for naming.
440
+ */
441
+ generateElementName(baseName, version) {
442
+ let result = baseName;
443
+
444
+ result += '-';
445
+ result += version.replace(/[.]/g, '_');
446
+
447
+ return result;
448
+ }
449
+
450
+ /**
451
+ * Generates a unique string to be used for child auro element naming.
452
+ * @param {string} baseName - Defines the first part of the unique element name.
453
+ * @param {string} version - Version of the component that will be appended to the baseName.
454
+ * @returns {string} - Unique string to be used for naming.
455
+ */
456
+ generateTag(baseName, version, tagClass) {
457
+ const elementName = this.generateElementName(baseName, version);
458
+ const tag = i$a`${s$5(elementName)}`;
459
+
460
+ if (!customElements.get(elementName)) {
461
+ customElements.define(elementName, class extends tagClass {});
462
+ }
463
+
464
+ return tag;
465
+ }
466
+ };
467
+
468
+ /**
469
+ * @license
470
+ * Copyright 2017 Google LLC
471
+ * SPDX-License-Identifier: BSD-3-Clause
472
+ */
473
+ const t$4=globalThis,i$9=t$4.trustedTypes,s$4=i$9?i$9.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$7="$lit$",h$3=`lit$${Math.random().toFixed(9).slice(2)}$`,o$7="?"+h$3,n$6=`<${o$7}>`,r$7=document,l$4=()=>r$7.createComment(""),c$5=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$4=Array.isArray,u$4=t=>a$4(t)||"function"==typeof t?.[Symbol.iterator],d$3="[ \t\n\f\r]",f$3=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_$1=/>/g,m$1=RegExp(`>|${d$3}(?:([^\\s"'>=/]+)(${d$3}*=${d$3}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$3=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$3=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$1=y$3(1),T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A$1=new WeakMap,C$1=r$7.createTreeWalker(r$7,129);function P$1(t,i){if(!a$4(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$4?s$4.createHTML(i):i}const V$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$3;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$3?"!--"===u[1]?c=v$1:void 0!==u[1]?c=_$1:void 0!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1):void 0!==u[3]&&(c=m$1):c===m$1?">"===u[0]?(c=r??f$3,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$1:'"'===u[3]?g$1:p$3):c===g$1||c===p$3?c=m$1:c===v$1||c===_$1?c=f$3:(c=m$1,r=void 0);const x=c===m$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f$3?s+n$6:d>=0?(o.push(a),s.slice(0,d)+e$7+s.slice(d)+h$3+x):s+h$3+(-2===d?i:x);}return [P$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$1 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$1(t,s);if(this.el=N.createElement(f,n),C$1.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$1.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$7)){const i=v[a++],s=r.getAttribute(t).split(h$3),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$1:"?"===e[1]?I$1:"@"===e[1]?L$1:k$1}),r.removeAttribute(t);}else t.startsWith(h$3)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1.test(r.tagName)){const t=r.textContent.split(h$3),s=t.length-1;if(s>0){r.textContent=i$9?i$9.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$4()),C$1.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$4());}}}else if(8===r.nodeType)if(r.data===o$7)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$3,t+1));)d.push({type:7,index:c}),t+=h$3.length-1;}c++;}}static createElement(t,i){const s=r$7.createElement("template");return s.innerHTML=t,s}};function S$3(t,i,s=t,e){if(i===T$1)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$5(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$3(t,h._$AS(t,i.values),h,e)),i}let M$1 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$7).importNode(i,true);C$1.currentNode=e;let h=C$1.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$1(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$1(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$1.nextNode(),o++);}return C$1.currentNode=r$7,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$1 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$3(this,t,i),c$5(t)?t===E$1||null==t||""===t?(this._$AH!==E$1&&this._$AR(),this._$AH=E$1):t!==this._$AH&&t!==T$1&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$4(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1&&c$5(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$7.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$1.createElement(P$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$1(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$1.get(t.strings);return void 0===i&&A$1.set(t.strings,i=new N$1(t)),i}k(t){a$4(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$4()),this.O(l$4()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$1 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$1,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$3(this,t,i,0),o=!c$5(t)||t!==this._$AH&&t!==T$1,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$3(this,e[s+n],i,n),r===T$1&&(r=this._$AH[n]),o||=!c$5(r)||r!==this._$AH[n],r===E$1?t=E$1:t!==E$1&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$1 = class H extends k$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1?void 0:t;}};let I$1 = class I extends k$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1);}};let L$1 = class L extends k$1{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$3(this,t,i,0)??E$1)===T$1)return;const s=this._$AH,e=t===E$1&&s!==E$1||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$1&&(s===E$1||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$1 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$3(this,t);}};const j$1=t$4.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t$4.litHtmlVersions??=[]).push("3.2.1");const B$1=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$1(i.insertBefore(l$4(),t),t,void 0,s??{});}return h._$AI(t),h};
474
+
475
+ /**
476
+ * @license
477
+ * Copyright 2020 Google LLC
478
+ * SPDX-License-Identifier: BSD-3-Clause
479
+ */
480
+ const a$3=Symbol.for(""),o$6=t=>{if(t?.r===a$3)return t?._$litStatic$},s$3=t=>({_$litStatic$:t,r:a$3}),i$8=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$3}),l$3=new Map,n$5=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$6(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l$3.get(t))&&(n.raw=n,l$3.set(t,r=n)),e=u;}return t(r,...e)},u$3=n$5(x$1);
481
+
482
+ /**
483
+ * @license
484
+ * Copyright 2019 Google LLC
485
+ * SPDX-License-Identifier: BSD-3-Clause
486
+ */
487
+ const t$3=globalThis,e$6=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2$1=Symbol(),o$5=new WeakMap;let n$4 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2$1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$6&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$5.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$5.set(s,t));}return t}toString(){return this.cssText}};const r$6=t=>new n$4("string"==typeof t?t:t+"",void 0,s$2$1),i$7=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$4(o,t,s$2$1)},S$2=(s,o)=>{if(e$6)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$3.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$4=e$6?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$6(e)})(t):t;
488
+
489
+ /**
490
+ * @license
491
+ * Copyright 2017 Google LLC
492
+ * SPDX-License-Identifier: BSD-3-Clause
493
+ */const{is:i$6,defineProperty:e$5,getOwnPropertyDescriptor:r$5,getOwnPropertyNames:h$2,getOwnPropertySymbols:o$4$1,getPrototypeOf:n$3$1}=Object,a$2$1=globalThis,c$3=a$2$1.trustedTypes,l$2$1=c$3?c$3.emptyScript:"",p$2=a$2$1.reactiveElementPolyfillSupport,d$2=(t,s)=>t,u$2$1={toAttribute(t,s){switch(s){case Boolean:t=t?l$2$1:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$2=(t,s)=>!i$6(t,s),y$2={attribute:true,type:String,converter:u$2$1,reflect:false,hasChanged:f$2};Symbol.metadata??=Symbol("metadata"),a$2$1.litPropertyMetadata??=new WeakMap;let b$1 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$2){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$5(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$5(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$2}static _$Ei(){if(this.hasOwnProperty(d$2("elementProperties")))return;const t=n$3$1(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$2("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$2("properties"))){const t=this.properties,s=[...h$2(t),...o$4$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$4(s));}else void 0!==s&&i.push(c$4(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$2(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$2$1).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2$1;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$2)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$1.elementStyles=[],b$1.shadowRootOptions={mode:"open"},b$1[d$2("elementProperties")]=new Map,b$1[d$2("finalized")]=new Map,p$2?.({ReactiveElement:b$1}),(a$2$1.reactiveElementVersions??=[]).push("2.0.4");
494
+
495
+ /**
496
+ * @license
497
+ * Copyright 2017 Google LLC
498
+ * SPDX-License-Identifier: BSD-3-Clause
499
+ */let r$4 = class r extends b$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$1(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1}};r$4._$litElement$=true,r$4["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$4});const i$5$1=globalThis.litElementPolyfillSupport;i$5$1?.({LitElement:r$4});(globalThis.litElementVersions??=[]).push("4.1.1");
500
+
501
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
502
+ // See LICENSE in the project root for license information.
503
+
504
+ // ---------------------------------------------------------------------
505
+
506
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
507
+
508
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
509
+
510
+ /* eslint-disable jsdoc/require-param */
511
+
512
+ /**
513
+ * This will register a new custom element with the browser.
514
+ * @param {String} name - The name of the custom element.
515
+ * @param {Object} componentClass - The class to register as a custom element.
516
+ * @returns {void}
517
+ */
518
+ registerComponent(name, componentClass) {
519
+ if (!customElements.get(name)) {
520
+ customElements.define(name, class extends componentClass {});
521
+ }
522
+ }
523
+
524
+ /**
525
+ * Finds and returns the closest HTML Element based on a selector.
526
+ * @returns {void}
527
+ */
528
+ closestElement(
529
+ selector, // selector like in .closest()
530
+ base = this, // extra functionality to skip a parent
531
+ __Closest = (el, found = el && el.closest(selector)) =>
532
+ !el || el === document || el === window
533
+ ? null // standard .closest() returns null for non-found selectors also
534
+ : found
535
+ ? found // found a selector INside this element
536
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
537
+ ) {
538
+ return __Closest(base);
539
+ }
540
+ /* eslint-enable jsdoc/require-param */
541
+
542
+ /**
543
+ * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
544
+ * @param {Object} elem - The element to check.
545
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
546
+ * @returns {void}
547
+ */
548
+ handleComponentTagRename(elem, tagName) {
549
+ const tag = tagName.toLowerCase();
550
+ const elemTag = elem.tagName.toLowerCase();
551
+
552
+ if (elemTag !== tag) {
553
+ elem.setAttribute(tag, true);
554
+ }
555
+ }
556
+
557
+ /**
558
+ * Validates if an element is a specific Auro component.
559
+ * @param {Object} elem - The element to validate.
560
+ * @param {String} tagName - The name of the Auro component to check against.
561
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
562
+ */
563
+ elementMatch(elem, tagName) {
564
+ const tag = tagName.toLowerCase();
565
+ const elemTag = elem.tagName.toLowerCase();
566
+
567
+ return elemTag === tag || elem.hasAttribute(tag);
568
+ }
569
+ };
570
+
571
+ /**
572
+ * Custom positioning reference element.
573
+ * @see https://floating-ui.com/docs/virtual-elements
574
+ */
575
+
576
+ const sides = ['top', 'right', 'bottom', 'left'];
577
+ const alignments = ['start', 'end'];
578
+ const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
579
+ const min = Math.min;
580
+ const max = Math.max;
581
+ const round = Math.round;
582
+ const floor = Math.floor;
583
+ const createCoords = v => ({
584
+ x: v,
585
+ y: v
586
+ });
587
+ const oppositeSideMap = {
588
+ left: 'right',
589
+ right: 'left',
590
+ bottom: 'top',
591
+ top: 'bottom'
592
+ };
593
+ const oppositeAlignmentMap = {
594
+ start: 'end',
595
+ end: 'start'
596
+ };
597
+ function evaluate(value, param) {
598
+ return typeof value === 'function' ? value(param) : value;
599
+ }
600
+ function getSide(placement) {
601
+ return placement.split('-')[0];
602
+ }
603
+ function getAlignment(placement) {
604
+ return placement.split('-')[1];
605
+ }
606
+ function getOppositeAxis(axis) {
607
+ return axis === 'x' ? 'y' : 'x';
608
+ }
609
+ function getAxisLength(axis) {
610
+ return axis === 'y' ? 'height' : 'width';
611
+ }
612
+ function getSideAxis(placement) {
613
+ return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
614
+ }
615
+ function getAlignmentAxis(placement) {
616
+ return getOppositeAxis(getSideAxis(placement));
617
+ }
618
+ function getAlignmentSides(placement, rects, rtl) {
619
+ if (rtl === void 0) {
620
+ rtl = false;
621
+ }
622
+ const alignment = getAlignment(placement);
623
+ const alignmentAxis = getAlignmentAxis(placement);
624
+ const length = getAxisLength(alignmentAxis);
625
+ let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
626
+ if (rects.reference[length] > rects.floating[length]) {
627
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
628
+ }
629
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
630
+ }
631
+ function getExpandedPlacements(placement) {
632
+ const oppositePlacement = getOppositePlacement(placement);
633
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
634
+ }
635
+ function getOppositeAlignmentPlacement(placement) {
636
+ return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
637
+ }
638
+ function getSideList(side, isStart, rtl) {
639
+ const lr = ['left', 'right'];
640
+ const rl = ['right', 'left'];
641
+ const tb = ['top', 'bottom'];
642
+ const bt = ['bottom', 'top'];
643
+ switch (side) {
644
+ case 'top':
645
+ case 'bottom':
646
+ if (rtl) return isStart ? rl : lr;
647
+ return isStart ? lr : rl;
648
+ case 'left':
649
+ case 'right':
650
+ return isStart ? tb : bt;
651
+ default:
652
+ return [];
653
+ }
654
+ }
655
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
656
+ const alignment = getAlignment(placement);
657
+ let list = getSideList(getSide(placement), direction === 'start', rtl);
658
+ if (alignment) {
659
+ list = list.map(side => side + "-" + alignment);
660
+ if (flipAlignment) {
661
+ list = list.concat(list.map(getOppositeAlignmentPlacement));
662
+ }
663
+ }
664
+ return list;
665
+ }
666
+ function getOppositePlacement(placement) {
667
+ return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
668
+ }
669
+ function expandPaddingObject(padding) {
670
+ return {
671
+ top: 0,
672
+ right: 0,
673
+ bottom: 0,
674
+ left: 0,
675
+ ...padding
676
+ };
677
+ }
678
+ function getPaddingObject(padding) {
679
+ return typeof padding !== 'number' ? expandPaddingObject(padding) : {
680
+ top: padding,
681
+ right: padding,
682
+ bottom: padding,
683
+ left: padding
684
+ };
685
+ }
686
+ function rectToClientRect(rect) {
687
+ const {
688
+ x,
689
+ y,
690
+ width,
691
+ height
692
+ } = rect;
693
+ return {
694
+ width,
695
+ height,
696
+ top: y,
697
+ left: x,
698
+ right: x + width,
699
+ bottom: y + height,
700
+ x,
701
+ y
702
+ };
703
+ }
704
+
705
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
706
+ let {
707
+ reference,
708
+ floating
709
+ } = _ref;
710
+ const sideAxis = getSideAxis(placement);
711
+ const alignmentAxis = getAlignmentAxis(placement);
712
+ const alignLength = getAxisLength(alignmentAxis);
713
+ const side = getSide(placement);
714
+ const isVertical = sideAxis === 'y';
715
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
716
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
717
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
718
+ let coords;
719
+ switch (side) {
720
+ case 'top':
721
+ coords = {
722
+ x: commonX,
723
+ y: reference.y - floating.height
724
+ };
725
+ break;
726
+ case 'bottom':
727
+ coords = {
728
+ x: commonX,
729
+ y: reference.y + reference.height
730
+ };
731
+ break;
732
+ case 'right':
733
+ coords = {
734
+ x: reference.x + reference.width,
735
+ y: commonY
736
+ };
737
+ break;
738
+ case 'left':
739
+ coords = {
740
+ x: reference.x - floating.width,
741
+ y: commonY
742
+ };
743
+ break;
744
+ default:
745
+ coords = {
746
+ x: reference.x,
747
+ y: reference.y
748
+ };
749
+ }
750
+ switch (getAlignment(placement)) {
751
+ case 'start':
752
+ coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
753
+ break;
754
+ case 'end':
755
+ coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
756
+ break;
757
+ }
758
+ return coords;
759
+ }
760
+
761
+ /**
762
+ * Computes the `x` and `y` coordinates that will place the floating element
763
+ * next to a given reference element.
764
+ *
765
+ * This export does not have any `platform` interface logic. You will need to
766
+ * write one for the platform you are using Floating UI with.
767
+ */
768
+ const computePosition$1 = async (reference, floating, config) => {
769
+ const {
770
+ placement = 'bottom',
771
+ strategy = 'absolute',
772
+ middleware = [],
773
+ platform
774
+ } = config;
775
+ const validMiddleware = middleware.filter(Boolean);
776
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
777
+ let rects = await platform.getElementRects({
778
+ reference,
779
+ floating,
780
+ strategy
781
+ });
782
+ let {
783
+ x,
784
+ y
785
+ } = computeCoordsFromPlacement(rects, placement, rtl);
786
+ let statefulPlacement = placement;
787
+ let middlewareData = {};
788
+ let resetCount = 0;
789
+ for (let i = 0; i < validMiddleware.length; i++) {
790
+ const {
791
+ name,
792
+ fn
793
+ } = validMiddleware[i];
794
+ const {
795
+ x: nextX,
796
+ y: nextY,
797
+ data,
798
+ reset
799
+ } = await fn({
800
+ x,
801
+ y,
802
+ initialPlacement: placement,
803
+ placement: statefulPlacement,
804
+ strategy,
805
+ middlewareData,
806
+ rects,
807
+ platform,
808
+ elements: {
809
+ reference,
810
+ floating
811
+ }
812
+ });
813
+ x = nextX != null ? nextX : x;
814
+ y = nextY != null ? nextY : y;
815
+ middlewareData = {
816
+ ...middlewareData,
817
+ [name]: {
818
+ ...middlewareData[name],
819
+ ...data
820
+ }
821
+ };
822
+ if (reset && resetCount <= 50) {
823
+ resetCount++;
824
+ if (typeof reset === 'object') {
825
+ if (reset.placement) {
826
+ statefulPlacement = reset.placement;
827
+ }
828
+ if (reset.rects) {
829
+ rects = reset.rects === true ? await platform.getElementRects({
830
+ reference,
831
+ floating,
832
+ strategy
833
+ }) : reset.rects;
834
+ }
835
+ ({
836
+ x,
837
+ y
838
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
839
+ }
840
+ i = -1;
841
+ }
842
+ }
843
+ return {
844
+ x,
845
+ y,
846
+ placement: statefulPlacement,
847
+ strategy,
848
+ middlewareData
849
+ };
850
+ };
851
+
852
+ /**
853
+ * Resolves with an object of overflow side offsets that determine how much the
854
+ * element is overflowing a given clipping boundary on each side.
855
+ * - positive = overflowing the boundary by that number of pixels
856
+ * - negative = how many pixels left before it will overflow
857
+ * - 0 = lies flush with the boundary
858
+ * @see https://floating-ui.com/docs/detectOverflow
859
+ */
860
+ async function detectOverflow(state, options) {
861
+ var _await$platform$isEle;
862
+ if (options === void 0) {
863
+ options = {};
864
+ }
865
+ const {
866
+ x,
867
+ y,
868
+ platform,
869
+ rects,
870
+ elements,
871
+ strategy
872
+ } = state;
873
+ const {
874
+ boundary = 'clippingAncestors',
875
+ rootBoundary = 'viewport',
876
+ elementContext = 'floating',
877
+ altBoundary = false,
878
+ padding = 0
879
+ } = evaluate(options, state);
880
+ const paddingObject = getPaddingObject(padding);
881
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
882
+ const element = elements[altBoundary ? altContext : elementContext];
883
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
884
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
885
+ boundary,
886
+ rootBoundary,
887
+ strategy
888
+ }));
889
+ const rect = elementContext === 'floating' ? {
890
+ x,
891
+ y,
892
+ width: rects.floating.width,
893
+ height: rects.floating.height
894
+ } : rects.reference;
895
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
896
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
897
+ x: 1,
898
+ y: 1
899
+ } : {
900
+ x: 1,
901
+ y: 1
902
+ };
903
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
904
+ elements,
905
+ rect,
906
+ offsetParent,
907
+ strategy
908
+ }) : rect);
909
+ return {
910
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
911
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
912
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
913
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
914
+ };
915
+ }
916
+
917
+ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
918
+ const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
919
+ return allowedPlacementsSortedByAlignment.filter(placement => {
920
+ if (alignment) {
921
+ return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
922
+ }
923
+ return true;
924
+ });
925
+ }
926
+ /**
927
+ * Optimizes the visibility of the floating element by choosing the placement
928
+ * that has the most space available automatically, without needing to specify a
929
+ * preferred placement. Alternative to `flip`.
930
+ * @see https://floating-ui.com/docs/autoPlacement
931
+ */
932
+ const autoPlacement$1 = function (options) {
933
+ if (options === void 0) {
934
+ options = {};
935
+ }
936
+ return {
937
+ name: 'autoPlacement',
938
+ options,
939
+ async fn(state) {
940
+ var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
941
+ const {
942
+ rects,
943
+ middlewareData,
944
+ placement,
945
+ platform,
946
+ elements
947
+ } = state;
948
+ const {
949
+ crossAxis = false,
950
+ alignment,
951
+ allowedPlacements = placements,
952
+ autoAlignment = true,
953
+ ...detectOverflowOptions
954
+ } = evaluate(options, state);
955
+ const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
956
+ const overflow = await detectOverflow(state, detectOverflowOptions);
957
+ const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
958
+ const currentPlacement = placements$1[currentIndex];
959
+ if (currentPlacement == null) {
960
+ return {};
961
+ }
962
+ const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
963
+
964
+ // Make `computeCoords` start from the right place.
965
+ if (placement !== currentPlacement) {
966
+ return {
967
+ reset: {
968
+ placement: placements$1[0]
969
+ }
970
+ };
971
+ }
972
+ const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
973
+ const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
974
+ placement: currentPlacement,
975
+ overflows: currentOverflows
976
+ }];
977
+ const nextPlacement = placements$1[currentIndex + 1];
978
+
979
+ // There are more placements to check.
980
+ if (nextPlacement) {
981
+ return {
982
+ data: {
983
+ index: currentIndex + 1,
984
+ overflows: allOverflows
985
+ },
986
+ reset: {
987
+ placement: nextPlacement
988
+ }
989
+ };
990
+ }
991
+ const placementsSortedByMostSpace = allOverflows.map(d => {
992
+ const alignment = getAlignment(d.placement);
993
+ return [d.placement, alignment && crossAxis ?
994
+ // Check along the mainAxis and main crossAxis side.
995
+ d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
996
+ // Check only the mainAxis.
997
+ d.overflows[0], d.overflows];
998
+ }).sort((a, b) => a[1] - b[1]);
999
+ const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
1000
+ // Aligned placements should not check their opposite crossAxis
1001
+ // side.
1002
+ getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
1003
+ const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
1004
+ if (resetPlacement !== placement) {
1005
+ return {
1006
+ data: {
1007
+ index: currentIndex + 1,
1008
+ overflows: allOverflows
1009
+ },
1010
+ reset: {
1011
+ placement: resetPlacement
1012
+ }
1013
+ };
1014
+ }
1015
+ return {};
1016
+ }
1017
+ };
1018
+ };
1019
+
1020
+ /**
1021
+ * Optimizes the visibility of the floating element by flipping the `placement`
1022
+ * in order to keep it in view when the preferred placement(s) will overflow the
1023
+ * clipping boundary. Alternative to `autoPlacement`.
1024
+ * @see https://floating-ui.com/docs/flip
1025
+ */
1026
+ const flip$1 = function (options) {
1027
+ if (options === void 0) {
1028
+ options = {};
1029
+ }
1030
+ return {
1031
+ name: 'flip',
1032
+ options,
1033
+ async fn(state) {
1034
+ var _middlewareData$arrow, _middlewareData$flip;
1035
+ const {
1036
+ placement,
1037
+ middlewareData,
1038
+ rects,
1039
+ initialPlacement,
1040
+ platform,
1041
+ elements
1042
+ } = state;
1043
+ const {
1044
+ mainAxis: checkMainAxis = true,
1045
+ crossAxis: checkCrossAxis = true,
1046
+ fallbackPlacements: specifiedFallbackPlacements,
1047
+ fallbackStrategy = 'bestFit',
1048
+ fallbackAxisSideDirection = 'none',
1049
+ flipAlignment = true,
1050
+ ...detectOverflowOptions
1051
+ } = evaluate(options, state);
1052
+
1053
+ // If a reset by the arrow was caused due to an alignment offset being
1054
+ // added, we should skip any logic now since `flip()` has already done its
1055
+ // work.
1056
+ // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
1057
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
1058
+ return {};
1059
+ }
1060
+ const side = getSide(placement);
1061
+ const initialSideAxis = getSideAxis(initialPlacement);
1062
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
1063
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
1064
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
1065
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
1066
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
1067
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
1068
+ }
1069
+ const placements = [initialPlacement, ...fallbackPlacements];
1070
+ const overflow = await detectOverflow(state, detectOverflowOptions);
1071
+ const overflows = [];
1072
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
1073
+ if (checkMainAxis) {
1074
+ overflows.push(overflow[side]);
1075
+ }
1076
+ if (checkCrossAxis) {
1077
+ const sides = getAlignmentSides(placement, rects, rtl);
1078
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
1079
+ }
1080
+ overflowsData = [...overflowsData, {
1081
+ placement,
1082
+ overflows
1083
+ }];
1084
+
1085
+ // One or more sides is overflowing.
1086
+ if (!overflows.every(side => side <= 0)) {
1087
+ var _middlewareData$flip2, _overflowsData$filter;
1088
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
1089
+ const nextPlacement = placements[nextIndex];
1090
+ if (nextPlacement) {
1091
+ // Try next placement and re-run the lifecycle.
1092
+ return {
1093
+ data: {
1094
+ index: nextIndex,
1095
+ overflows: overflowsData
1096
+ },
1097
+ reset: {
1098
+ placement: nextPlacement
1099
+ }
1100
+ };
1101
+ }
1102
+
1103
+ // First, find the candidates that fit on the mainAxis side of overflow,
1104
+ // then find the placement that fits the best on the main crossAxis side.
1105
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
1106
+
1107
+ // Otherwise fallback.
1108
+ if (!resetPlacement) {
1109
+ switch (fallbackStrategy) {
1110
+ case 'bestFit':
1111
+ {
1112
+ var _overflowsData$filter2;
1113
+ const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
1114
+ if (hasFallbackAxisSideDirection) {
1115
+ const currentSideAxis = getSideAxis(d.placement);
1116
+ return currentSideAxis === initialSideAxis ||
1117
+ // Create a bias to the `y` side axis due to horizontal
1118
+ // reading directions favoring greater width.
1119
+ currentSideAxis === 'y';
1120
+ }
1121
+ return true;
1122
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
1123
+ if (placement) {
1124
+ resetPlacement = placement;
1125
+ }
1126
+ break;
1127
+ }
1128
+ case 'initialPlacement':
1129
+ resetPlacement = initialPlacement;
1130
+ break;
1131
+ }
1132
+ }
1133
+ if (placement !== resetPlacement) {
1134
+ return {
1135
+ reset: {
1136
+ placement: resetPlacement
1137
+ }
1138
+ };
1139
+ }
1140
+ }
1141
+ return {};
1142
+ }
1143
+ };
1144
+ };
1145
+
1146
+ // For type backwards-compatibility, the `OffsetOptions` type was also
1147
+ // Derivable.
1148
+
1149
+ async function convertValueToCoords(state, options) {
1150
+ const {
1151
+ placement,
1152
+ platform,
1153
+ elements
1154
+ } = state;
1155
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
1156
+ const side = getSide(placement);
1157
+ const alignment = getAlignment(placement);
1158
+ const isVertical = getSideAxis(placement) === 'y';
1159
+ const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
1160
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
1161
+ const rawValue = evaluate(options, state);
1162
+
1163
+ // eslint-disable-next-line prefer-const
1164
+ let {
1165
+ mainAxis,
1166
+ crossAxis,
1167
+ alignmentAxis
1168
+ } = typeof rawValue === 'number' ? {
1169
+ mainAxis: rawValue,
1170
+ crossAxis: 0,
1171
+ alignmentAxis: null
1172
+ } : {
1173
+ mainAxis: rawValue.mainAxis || 0,
1174
+ crossAxis: rawValue.crossAxis || 0,
1175
+ alignmentAxis: rawValue.alignmentAxis
1176
+ };
1177
+ if (alignment && typeof alignmentAxis === 'number') {
1178
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
1179
+ }
1180
+ return isVertical ? {
1181
+ x: crossAxis * crossAxisMulti,
1182
+ y: mainAxis * mainAxisMulti
1183
+ } : {
1184
+ x: mainAxis * mainAxisMulti,
1185
+ y: crossAxis * crossAxisMulti
1186
+ };
1187
+ }
1188
+
1189
+ /**
1190
+ * Modifies the placement by translating the floating element along the
1191
+ * specified axes.
1192
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
1193
+ * object may be passed.
1194
+ * @see https://floating-ui.com/docs/offset
1195
+ */
1196
+ const offset$1 = function (options) {
1197
+ if (options === void 0) {
1198
+ options = 0;
1199
+ }
1200
+ return {
1201
+ name: 'offset',
1202
+ options,
1203
+ async fn(state) {
1204
+ var _middlewareData$offse, _middlewareData$arrow;
1205
+ const {
1206
+ x,
1207
+ y,
1208
+ placement,
1209
+ middlewareData
1210
+ } = state;
1211
+ const diffCoords = await convertValueToCoords(state, options);
1212
+
1213
+ // If the placement is the same and the arrow caused an alignment offset
1214
+ // then we don't need to change the positioning coordinates.
1215
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
1216
+ return {};
1217
+ }
1218
+ return {
1219
+ x: x + diffCoords.x,
1220
+ y: y + diffCoords.y,
1221
+ data: {
1222
+ ...diffCoords,
1223
+ placement
1224
+ }
1225
+ };
1226
+ }
1227
+ };
1228
+ };
1229
+
1230
+ function hasWindow() {
1231
+ return typeof window !== 'undefined';
1232
+ }
1233
+ function getNodeName(node) {
1234
+ if (isNode(node)) {
1235
+ return (node.nodeName || '').toLowerCase();
1236
+ }
1237
+ // Mocked nodes in testing environments may not be instances of Node. By
1238
+ // returning `#document` an infinite loop won't occur.
1239
+ // https://github.com/floating-ui/floating-ui/issues/2317
1240
+ return '#document';
1241
+ }
1242
+ function getWindow(node) {
1243
+ var _node$ownerDocument;
1244
+ return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
1245
+ }
1246
+ function getDocumentElement(node) {
1247
+ var _ref;
1248
+ return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
1249
+ }
1250
+ function isNode(value) {
1251
+ if (!hasWindow()) {
1252
+ return false;
1253
+ }
1254
+ return value instanceof Node || value instanceof getWindow(value).Node;
1255
+ }
1256
+ function isElement(value) {
1257
+ if (!hasWindow()) {
1258
+ return false;
1259
+ }
1260
+ return value instanceof Element || value instanceof getWindow(value).Element;
1261
+ }
1262
+ function isHTMLElement(value) {
1263
+ if (!hasWindow()) {
1264
+ return false;
1265
+ }
1266
+ return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
1267
+ }
1268
+ function isShadowRoot(value) {
1269
+ if (!hasWindow() || typeof ShadowRoot === 'undefined') {
1270
+ return false;
1271
+ }
1272
+ return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
1273
+ }
1274
+ function isOverflowElement(element) {
1275
+ const {
1276
+ overflow,
1277
+ overflowX,
1278
+ overflowY,
1279
+ display
1280
+ } = getComputedStyle$1(element);
1281
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
1282
+ }
1283
+ function isTableElement(element) {
1284
+ return ['table', 'td', 'th'].includes(getNodeName(element));
1285
+ }
1286
+ function isTopLayer(element) {
1287
+ return [':popover-open', ':modal'].some(selector => {
1288
+ try {
1289
+ return element.matches(selector);
1290
+ } catch (e) {
1291
+ return false;
1292
+ }
1293
+ });
1294
+ }
1295
+ function isContainingBlock(elementOrCss) {
1296
+ const webkit = isWebKit();
1297
+ const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
1298
+
1299
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1300
+ return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
1301
+ }
1302
+ function getContainingBlock(element) {
1303
+ let currentNode = getParentNode(element);
1304
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
1305
+ if (isContainingBlock(currentNode)) {
1306
+ return currentNode;
1307
+ } else if (isTopLayer(currentNode)) {
1308
+ return null;
1309
+ }
1310
+ currentNode = getParentNode(currentNode);
1311
+ }
1312
+ return null;
1313
+ }
1314
+ function isWebKit() {
1315
+ if (typeof CSS === 'undefined' || !CSS.supports) return false;
1316
+ return CSS.supports('-webkit-backdrop-filter', 'none');
1317
+ }
1318
+ function isLastTraversableNode(node) {
1319
+ return ['html', 'body', '#document'].includes(getNodeName(node));
1320
+ }
1321
+ function getComputedStyle$1(element) {
1322
+ return getWindow(element).getComputedStyle(element);
1323
+ }
1324
+ function getNodeScroll(element) {
1325
+ if (isElement(element)) {
1326
+ return {
1327
+ scrollLeft: element.scrollLeft,
1328
+ scrollTop: element.scrollTop
1329
+ };
1330
+ }
1331
+ return {
1332
+ scrollLeft: element.scrollX,
1333
+ scrollTop: element.scrollY
1334
+ };
1335
+ }
1336
+ function getParentNode(node) {
1337
+ if (getNodeName(node) === 'html') {
1338
+ return node;
1339
+ }
1340
+ const result =
1341
+ // Step into the shadow DOM of the parent of a slotted node.
1342
+ node.assignedSlot ||
1343
+ // DOM Element detected.
1344
+ node.parentNode ||
1345
+ // ShadowRoot detected.
1346
+ isShadowRoot(node) && node.host ||
1347
+ // Fallback.
1348
+ getDocumentElement(node);
1349
+ return isShadowRoot(result) ? result.host : result;
1350
+ }
1351
+ function getNearestOverflowAncestor(node) {
1352
+ const parentNode = getParentNode(node);
1353
+ if (isLastTraversableNode(parentNode)) {
1354
+ return node.ownerDocument ? node.ownerDocument.body : node.body;
1355
+ }
1356
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
1357
+ return parentNode;
1358
+ }
1359
+ return getNearestOverflowAncestor(parentNode);
1360
+ }
1361
+ function getOverflowAncestors(node, list, traverseIframes) {
1362
+ var _node$ownerDocument2;
1363
+ if (list === void 0) {
1364
+ list = [];
1365
+ }
1366
+ if (traverseIframes === void 0) {
1367
+ traverseIframes = true;
1368
+ }
1369
+ const scrollableAncestor = getNearestOverflowAncestor(node);
1370
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
1371
+ const win = getWindow(scrollableAncestor);
1372
+ if (isBody) {
1373
+ const frameElement = getFrameElement(win);
1374
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
1375
+ }
1376
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
1377
+ }
1378
+ function getFrameElement(win) {
1379
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
1380
+ }
1381
+
1382
+ function getCssDimensions(element) {
1383
+ const css = getComputedStyle$1(element);
1384
+ // In testing environments, the `width` and `height` properties are empty
1385
+ // strings for SVG elements, returning NaN. Fallback to `0` in this case.
1386
+ let width = parseFloat(css.width) || 0;
1387
+ let height = parseFloat(css.height) || 0;
1388
+ const hasOffset = isHTMLElement(element);
1389
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
1390
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
1391
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
1392
+ if (shouldFallback) {
1393
+ width = offsetWidth;
1394
+ height = offsetHeight;
1395
+ }
1396
+ return {
1397
+ width,
1398
+ height,
1399
+ $: shouldFallback
1400
+ };
1401
+ }
1402
+
1403
+ function unwrapElement(element) {
1404
+ return !isElement(element) ? element.contextElement : element;
1405
+ }
1406
+
1407
+ function getScale(element) {
1408
+ const domElement = unwrapElement(element);
1409
+ if (!isHTMLElement(domElement)) {
1410
+ return createCoords(1);
1411
+ }
1412
+ const rect = domElement.getBoundingClientRect();
1413
+ const {
1414
+ width,
1415
+ height,
1416
+ $
1417
+ } = getCssDimensions(domElement);
1418
+ let x = ($ ? round(rect.width) : rect.width) / width;
1419
+ let y = ($ ? round(rect.height) : rect.height) / height;
1420
+
1421
+ // 0, NaN, or Infinity should always fallback to 1.
1422
+
1423
+ if (!x || !Number.isFinite(x)) {
1424
+ x = 1;
1425
+ }
1426
+ if (!y || !Number.isFinite(y)) {
1427
+ y = 1;
1428
+ }
1429
+ return {
1430
+ x,
1431
+ y
1432
+ };
1433
+ }
1434
+
1435
+ const noOffsets = /*#__PURE__*/createCoords(0);
1436
+ function getVisualOffsets(element) {
1437
+ const win = getWindow(element);
1438
+ if (!isWebKit() || !win.visualViewport) {
1439
+ return noOffsets;
1440
+ }
1441
+ return {
1442
+ x: win.visualViewport.offsetLeft,
1443
+ y: win.visualViewport.offsetTop
1444
+ };
1445
+ }
1446
+ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
1447
+ if (isFixed === void 0) {
1448
+ isFixed = false;
1449
+ }
1450
+ if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
1451
+ return false;
1452
+ }
1453
+ return isFixed;
1454
+ }
1455
+
1456
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
1457
+ if (includeScale === void 0) {
1458
+ includeScale = false;
1459
+ }
1460
+ if (isFixedStrategy === void 0) {
1461
+ isFixedStrategy = false;
1462
+ }
1463
+ const clientRect = element.getBoundingClientRect();
1464
+ const domElement = unwrapElement(element);
1465
+ let scale = createCoords(1);
1466
+ if (includeScale) {
1467
+ if (offsetParent) {
1468
+ if (isElement(offsetParent)) {
1469
+ scale = getScale(offsetParent);
1470
+ }
1471
+ } else {
1472
+ scale = getScale(element);
1473
+ }
1474
+ }
1475
+ const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
1476
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
1477
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
1478
+ let width = clientRect.width / scale.x;
1479
+ let height = clientRect.height / scale.y;
1480
+ if (domElement) {
1481
+ const win = getWindow(domElement);
1482
+ const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
1483
+ let currentWin = win;
1484
+ let currentIFrame = getFrameElement(currentWin);
1485
+ while (currentIFrame && offsetParent && offsetWin !== currentWin) {
1486
+ const iframeScale = getScale(currentIFrame);
1487
+ const iframeRect = currentIFrame.getBoundingClientRect();
1488
+ const css = getComputedStyle$1(currentIFrame);
1489
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
1490
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
1491
+ x *= iframeScale.x;
1492
+ y *= iframeScale.y;
1493
+ width *= iframeScale.x;
1494
+ height *= iframeScale.y;
1495
+ x += left;
1496
+ y += top;
1497
+ currentWin = getWindow(currentIFrame);
1498
+ currentIFrame = getFrameElement(currentWin);
1499
+ }
1500
+ }
1501
+ return rectToClientRect({
1502
+ width,
1503
+ height,
1504
+ x,
1505
+ y
1506
+ });
1507
+ }
1508
+
1509
+ // If <html> has a CSS width greater than the viewport, then this will be
1510
+ // incorrect for RTL.
1511
+ function getWindowScrollBarX(element, rect) {
1512
+ const leftScroll = getNodeScroll(element).scrollLeft;
1513
+ if (!rect) {
1514
+ return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
1515
+ }
1516
+ return rect.left + leftScroll;
1517
+ }
1518
+
1519
+ function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
1520
+ if (ignoreScrollbarX === void 0) {
1521
+ ignoreScrollbarX = false;
1522
+ }
1523
+ const htmlRect = documentElement.getBoundingClientRect();
1524
+ const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 :
1525
+ // RTL <body> scrollbar.
1526
+ getWindowScrollBarX(documentElement, htmlRect));
1527
+ const y = htmlRect.top + scroll.scrollTop;
1528
+ return {
1529
+ x,
1530
+ y
1531
+ };
1532
+ }
1533
+
1534
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
1535
+ let {
1536
+ elements,
1537
+ rect,
1538
+ offsetParent,
1539
+ strategy
1540
+ } = _ref;
1541
+ const isFixed = strategy === 'fixed';
1542
+ const documentElement = getDocumentElement(offsetParent);
1543
+ const topLayer = elements ? isTopLayer(elements.floating) : false;
1544
+ if (offsetParent === documentElement || topLayer && isFixed) {
1545
+ return rect;
1546
+ }
1547
+ let scroll = {
1548
+ scrollLeft: 0,
1549
+ scrollTop: 0
1550
+ };
1551
+ let scale = createCoords(1);
1552
+ const offsets = createCoords(0);
1553
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
1554
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1555
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1556
+ scroll = getNodeScroll(offsetParent);
1557
+ }
1558
+ if (isHTMLElement(offsetParent)) {
1559
+ const offsetRect = getBoundingClientRect(offsetParent);
1560
+ scale = getScale(offsetParent);
1561
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1562
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1563
+ }
1564
+ }
1565
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
1566
+ return {
1567
+ width: rect.width * scale.x,
1568
+ height: rect.height * scale.y,
1569
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
1570
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
1571
+ };
1572
+ }
1573
+
1574
+ function getClientRects(element) {
1575
+ return Array.from(element.getClientRects());
1576
+ }
1577
+
1578
+ // Gets the entire size of the scrollable document area, even extending outside
1579
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
1580
+ function getDocumentRect(element) {
1581
+ const html = getDocumentElement(element);
1582
+ const scroll = getNodeScroll(element);
1583
+ const body = element.ownerDocument.body;
1584
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
1585
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
1586
+ let x = -scroll.scrollLeft + getWindowScrollBarX(element);
1587
+ const y = -scroll.scrollTop;
1588
+ if (getComputedStyle$1(body).direction === 'rtl') {
1589
+ x += max(html.clientWidth, body.clientWidth) - width;
1590
+ }
1591
+ return {
1592
+ width,
1593
+ height,
1594
+ x,
1595
+ y
1596
+ };
1597
+ }
1598
+
1599
+ function getViewportRect(element, strategy) {
1600
+ const win = getWindow(element);
1601
+ const html = getDocumentElement(element);
1602
+ const visualViewport = win.visualViewport;
1603
+ let width = html.clientWidth;
1604
+ let height = html.clientHeight;
1605
+ let x = 0;
1606
+ let y = 0;
1607
+ if (visualViewport) {
1608
+ width = visualViewport.width;
1609
+ height = visualViewport.height;
1610
+ const visualViewportBased = isWebKit();
1611
+ if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
1612
+ x = visualViewport.offsetLeft;
1613
+ y = visualViewport.offsetTop;
1614
+ }
1615
+ }
1616
+ return {
1617
+ width,
1618
+ height,
1619
+ x,
1620
+ y
1621
+ };
1622
+ }
1623
+
1624
+ // Returns the inner client rect, subtracting scrollbars if present.
1625
+ function getInnerBoundingClientRect(element, strategy) {
1626
+ const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
1627
+ const top = clientRect.top + element.clientTop;
1628
+ const left = clientRect.left + element.clientLeft;
1629
+ const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
1630
+ const width = element.clientWidth * scale.x;
1631
+ const height = element.clientHeight * scale.y;
1632
+ const x = left * scale.x;
1633
+ const y = top * scale.y;
1634
+ return {
1635
+ width,
1636
+ height,
1637
+ x,
1638
+ y
1639
+ };
1640
+ }
1641
+ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
1642
+ let rect;
1643
+ if (clippingAncestor === 'viewport') {
1644
+ rect = getViewportRect(element, strategy);
1645
+ } else if (clippingAncestor === 'document') {
1646
+ rect = getDocumentRect(getDocumentElement(element));
1647
+ } else if (isElement(clippingAncestor)) {
1648
+ rect = getInnerBoundingClientRect(clippingAncestor, strategy);
1649
+ } else {
1650
+ const visualOffsets = getVisualOffsets(element);
1651
+ rect = {
1652
+ x: clippingAncestor.x - visualOffsets.x,
1653
+ y: clippingAncestor.y - visualOffsets.y,
1654
+ width: clippingAncestor.width,
1655
+ height: clippingAncestor.height
1656
+ };
1657
+ }
1658
+ return rectToClientRect(rect);
1659
+ }
1660
+ function hasFixedPositionAncestor(element, stopNode) {
1661
+ const parentNode = getParentNode(element);
1662
+ if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
1663
+ return false;
1664
+ }
1665
+ return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
1666
+ }
1667
+
1668
+ // A "clipping ancestor" is an `overflow` element with the characteristic of
1669
+ // clipping (or hiding) child elements. This returns all clipping ancestors
1670
+ // of the given element up the tree.
1671
+ function getClippingElementAncestors(element, cache) {
1672
+ const cachedResult = cache.get(element);
1673
+ if (cachedResult) {
1674
+ return cachedResult;
1675
+ }
1676
+ let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
1677
+ let currentContainingBlockComputedStyle = null;
1678
+ const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
1679
+ let currentNode = elementIsFixed ? getParentNode(element) : element;
1680
+
1681
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1682
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1683
+ const computedStyle = getComputedStyle$1(currentNode);
1684
+ const currentNodeIsContaining = isContainingBlock(currentNode);
1685
+ if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
1686
+ currentContainingBlockComputedStyle = null;
1687
+ }
1688
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
1689
+ if (shouldDropCurrentNode) {
1690
+ // Drop non-containing blocks.
1691
+ result = result.filter(ancestor => ancestor !== currentNode);
1692
+ } else {
1693
+ // Record last containing block for next iteration.
1694
+ currentContainingBlockComputedStyle = computedStyle;
1695
+ }
1696
+ currentNode = getParentNode(currentNode);
1697
+ }
1698
+ cache.set(element, result);
1699
+ return result;
1700
+ }
1701
+
1702
+ // Gets the maximum area that the element is visible in due to any number of
1703
+ // clipping ancestors.
1704
+ function getClippingRect(_ref) {
1705
+ let {
1706
+ element,
1707
+ boundary,
1708
+ rootBoundary,
1709
+ strategy
1710
+ } = _ref;
1711
+ const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
1712
+ const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1713
+ const firstClippingAncestor = clippingAncestors[0];
1714
+ const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
1715
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
1716
+ accRect.top = max(rect.top, accRect.top);
1717
+ accRect.right = min(rect.right, accRect.right);
1718
+ accRect.bottom = min(rect.bottom, accRect.bottom);
1719
+ accRect.left = max(rect.left, accRect.left);
1720
+ return accRect;
1721
+ }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
1722
+ return {
1723
+ width: clippingRect.right - clippingRect.left,
1724
+ height: clippingRect.bottom - clippingRect.top,
1725
+ x: clippingRect.left,
1726
+ y: clippingRect.top
1727
+ };
1728
+ }
1729
+
1730
+ function getDimensions(element) {
1731
+ const {
1732
+ width,
1733
+ height
1734
+ } = getCssDimensions(element);
1735
+ return {
1736
+ width,
1737
+ height
1738
+ };
1739
+ }
1740
+
1741
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1742
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
1743
+ const documentElement = getDocumentElement(offsetParent);
1744
+ const isFixed = strategy === 'fixed';
1745
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
1746
+ let scroll = {
1747
+ scrollLeft: 0,
1748
+ scrollTop: 0
1749
+ };
1750
+ const offsets = createCoords(0);
1751
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1752
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1753
+ scroll = getNodeScroll(offsetParent);
1754
+ }
1755
+ if (isOffsetParentAnElement) {
1756
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
1757
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1758
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1759
+ } else if (documentElement) {
1760
+ // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
1761
+ // Firefox with layout.scrollbar.side = 3 in about:config to test this.
1762
+ offsets.x = getWindowScrollBarX(documentElement);
1763
+ }
1764
+ }
1765
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1766
+ const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
1767
+ const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
1768
+ return {
1769
+ x,
1770
+ y,
1771
+ width: rect.width,
1772
+ height: rect.height
1773
+ };
1774
+ }
1775
+
1776
+ function isStaticPositioned(element) {
1777
+ return getComputedStyle$1(element).position === 'static';
1778
+ }
1779
+
1780
+ function getTrueOffsetParent(element, polyfill) {
1781
+ if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
1782
+ return null;
1783
+ }
1784
+ if (polyfill) {
1785
+ return polyfill(element);
1786
+ }
1787
+ let rawOffsetParent = element.offsetParent;
1788
+
1789
+ // Firefox returns the <html> element as the offsetParent if it's non-static,
1790
+ // while Chrome and Safari return the <body> element. The <body> element must
1791
+ // be used to perform the correct calculations even if the <html> element is
1792
+ // non-static.
1793
+ if (getDocumentElement(element) === rawOffsetParent) {
1794
+ rawOffsetParent = rawOffsetParent.ownerDocument.body;
1795
+ }
1796
+ return rawOffsetParent;
1797
+ }
1798
+
1799
+ // Gets the closest ancestor positioned element. Handles some edge cases,
1800
+ // such as table ancestors and cross browser bugs.
1801
+ function getOffsetParent(element, polyfill) {
1802
+ const win = getWindow(element);
1803
+ if (isTopLayer(element)) {
1804
+ return win;
1805
+ }
1806
+ if (!isHTMLElement(element)) {
1807
+ let svgOffsetParent = getParentNode(element);
1808
+ while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
1809
+ if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
1810
+ return svgOffsetParent;
1811
+ }
1812
+ svgOffsetParent = getParentNode(svgOffsetParent);
1813
+ }
1814
+ return win;
1815
+ }
1816
+ let offsetParent = getTrueOffsetParent(element, polyfill);
1817
+ while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
1818
+ offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1819
+ }
1820
+ if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
1821
+ return win;
1822
+ }
1823
+ return offsetParent || getContainingBlock(element) || win;
1824
+ }
1825
+
1826
+ const getElementRects = async function (data) {
1827
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1828
+ const getDimensionsFn = this.getDimensions;
1829
+ const floatingDimensions = await getDimensionsFn(data.floating);
1830
+ return {
1831
+ reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
1832
+ floating: {
1833
+ x: 0,
1834
+ y: 0,
1835
+ width: floatingDimensions.width,
1836
+ height: floatingDimensions.height
1837
+ }
1838
+ };
1839
+ };
1840
+
1841
+ function isRTL(element) {
1842
+ return getComputedStyle$1(element).direction === 'rtl';
1843
+ }
1844
+
1845
+ const platform = {
1846
+ convertOffsetParentRelativeRectToViewportRelativeRect,
1847
+ getDocumentElement,
1848
+ getClippingRect,
1849
+ getOffsetParent,
1850
+ getElementRects,
1851
+ getClientRects,
1852
+ getDimensions,
1853
+ getScale,
1854
+ isElement,
1855
+ isRTL
1856
+ };
1857
+
1858
+ // https://samthor.au/2021/observing-dom/
1859
+ function observeMove(element, onMove) {
1860
+ let io = null;
1861
+ let timeoutId;
1862
+ const root = getDocumentElement(element);
1863
+ function cleanup() {
1864
+ var _io;
1865
+ clearTimeout(timeoutId);
1866
+ (_io = io) == null || _io.disconnect();
1867
+ io = null;
1868
+ }
1869
+ function refresh(skip, threshold) {
1870
+ if (skip === void 0) {
1871
+ skip = false;
1872
+ }
1873
+ if (threshold === void 0) {
1874
+ threshold = 1;
1875
+ }
1876
+ cleanup();
1877
+ const {
1878
+ left,
1879
+ top,
1880
+ width,
1881
+ height
1882
+ } = element.getBoundingClientRect();
1883
+ if (!skip) {
1884
+ onMove();
1885
+ }
1886
+ if (!width || !height) {
1887
+ return;
1888
+ }
1889
+ const insetTop = floor(top);
1890
+ const insetRight = floor(root.clientWidth - (left + width));
1891
+ const insetBottom = floor(root.clientHeight - (top + height));
1892
+ const insetLeft = floor(left);
1893
+ const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
1894
+ const options = {
1895
+ rootMargin,
1896
+ threshold: max(0, min(1, threshold)) || 1
1897
+ };
1898
+ let isFirstUpdate = true;
1899
+ function handleObserve(entries) {
1900
+ const ratio = entries[0].intersectionRatio;
1901
+ if (ratio !== threshold) {
1902
+ if (!isFirstUpdate) {
1903
+ return refresh();
1904
+ }
1905
+ if (!ratio) {
1906
+ // If the reference is clipped, the ratio is 0. Throttle the refresh
1907
+ // to prevent an infinite loop of updates.
1908
+ timeoutId = setTimeout(() => {
1909
+ refresh(false, 1e-7);
1910
+ }, 1000);
1911
+ } else {
1912
+ refresh(false, ratio);
1913
+ }
1914
+ }
1915
+ isFirstUpdate = false;
1916
+ }
1917
+
1918
+ // Older browsers don't support a `document` as the root and will throw an
1919
+ // error.
1920
+ try {
1921
+ io = new IntersectionObserver(handleObserve, {
1922
+ ...options,
1923
+ // Handle <iframe>s
1924
+ root: root.ownerDocument
1925
+ });
1926
+ } catch (e) {
1927
+ io = new IntersectionObserver(handleObserve, options);
1928
+ }
1929
+ io.observe(element);
1930
+ }
1931
+ refresh(true);
1932
+ return cleanup;
1933
+ }
1934
+
1935
+ /**
1936
+ * Automatically updates the position of the floating element when necessary.
1937
+ * Should only be called when the floating element is mounted on the DOM or
1938
+ * visible on the screen.
1939
+ * @returns cleanup function that should be invoked when the floating element is
1940
+ * removed from the DOM or hidden from the screen.
1941
+ * @see https://floating-ui.com/docs/autoUpdate
1942
+ */
1943
+ function autoUpdate(reference, floating, update, options) {
1944
+ if (options === void 0) {
1945
+ options = {};
1946
+ }
1947
+ const {
1948
+ ancestorScroll = true,
1949
+ ancestorResize = true,
1950
+ elementResize = typeof ResizeObserver === 'function',
1951
+ layoutShift = typeof IntersectionObserver === 'function',
1952
+ animationFrame = false
1953
+ } = options;
1954
+ const referenceEl = unwrapElement(reference);
1955
+ const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
1956
+ ancestors.forEach(ancestor => {
1957
+ ancestorScroll && ancestor.addEventListener('scroll', update, {
1958
+ passive: true
1959
+ });
1960
+ ancestorResize && ancestor.addEventListener('resize', update);
1961
+ });
1962
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
1963
+ let reobserveFrame = -1;
1964
+ let resizeObserver = null;
1965
+ if (elementResize) {
1966
+ resizeObserver = new ResizeObserver(_ref => {
1967
+ let [firstEntry] = _ref;
1968
+ if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
1969
+ // Prevent update loops when using the `size` middleware.
1970
+ // https://github.com/floating-ui/floating-ui/issues/1740
1971
+ resizeObserver.unobserve(floating);
1972
+ cancelAnimationFrame(reobserveFrame);
1973
+ reobserveFrame = requestAnimationFrame(() => {
1974
+ var _resizeObserver;
1975
+ (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
1976
+ });
1977
+ }
1978
+ update();
1979
+ });
1980
+ if (referenceEl && !animationFrame) {
1981
+ resizeObserver.observe(referenceEl);
1982
+ }
1983
+ resizeObserver.observe(floating);
1984
+ }
1985
+ let frameId;
1986
+ let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
1987
+ if (animationFrame) {
1988
+ frameLoop();
1989
+ }
1990
+ function frameLoop() {
1991
+ const nextRefRect = getBoundingClientRect(reference);
1992
+ if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
1993
+ update();
1994
+ }
1995
+ prevRefRect = nextRefRect;
1996
+ frameId = requestAnimationFrame(frameLoop);
1997
+ }
1998
+ update();
1999
+ return () => {
2000
+ var _resizeObserver2;
2001
+ ancestors.forEach(ancestor => {
2002
+ ancestorScroll && ancestor.removeEventListener('scroll', update);
2003
+ ancestorResize && ancestor.removeEventListener('resize', update);
2004
+ });
2005
+ cleanupIo == null || cleanupIo();
2006
+ (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
2007
+ resizeObserver = null;
2008
+ if (animationFrame) {
2009
+ cancelAnimationFrame(frameId);
2010
+ }
2011
+ };
2012
+ }
2013
+
2014
+ /**
2015
+ * Modifies the placement by translating the floating element along the
2016
+ * specified axes.
2017
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
2018
+ * object may be passed.
2019
+ * @see https://floating-ui.com/docs/offset
2020
+ */
2021
+ const offset = offset$1;
2022
+
2023
+ /**
2024
+ * Optimizes the visibility of the floating element by choosing the placement
2025
+ * that has the most space available automatically, without needing to specify a
2026
+ * preferred placement. Alternative to `flip`.
2027
+ * @see https://floating-ui.com/docs/autoPlacement
2028
+ */
2029
+ const autoPlacement = autoPlacement$1;
2030
+
2031
+ /**
2032
+ * Optimizes the visibility of the floating element by flipping the `placement`
2033
+ * in order to keep it in view when the preferred placement(s) will overflow the
2034
+ * clipping boundary. Alternative to `autoPlacement`.
2035
+ * @see https://floating-ui.com/docs/flip
2036
+ */
2037
+ const flip = flip$1;
2038
+
2039
+ /**
2040
+ * Computes the `x` and `y` coordinates that will place the floating element
2041
+ * next to a given reference element.
2042
+ */
2043
+ const computePosition = (reference, floating, options) => {
2044
+ // This caches the expensive `getClippingElementAncestors` function so that
2045
+ // multiple lifecycle resets re-use the same result. It only lives for a
2046
+ // single call. If other functions become expensive, we can add them as well.
2047
+ const cache = new Map();
2048
+ const mergedOptions = {
2049
+ platform,
2050
+ ...options
2051
+ };
2052
+ const platformWithCache = {
2053
+ ...mergedOptions.platform,
2054
+ _c: cache
2055
+ };
2056
+ return computePosition$1(reference, floating, {
2057
+ ...mergedOptions,
2058
+ platform: platformWithCache
2059
+ });
2060
+ };
2061
+
2062
+ /* eslint-disable line-comment-position, no-inline-comments */
2063
+
2064
+
2065
+ class AuroFloatingUI {
2066
+ constructor() {
2067
+ // Store event listener references for cleanup
2068
+ this.focusHandler = null;
2069
+ this.clickHandler = null;
2070
+ this.keyDownHandler = null;
2071
+
2072
+ /**
2073
+ * @private
2074
+ */
2075
+ this.eventPrefix = undefined;
2076
+ }
2077
+
2078
+ /**
2079
+ * Mirrors the size of the bibSizer element to the bib content.
2080
+ * Copies the width, height, max-width, and max-height styles from the bibSizer element to the bib content container.
2081
+ * This ensures that the bib content has the same dimensions as the sizer element.
2082
+ */
2083
+ mirrorSize() {
2084
+ // mirror the boxsize from bibSizer
2085
+ if (this.element.bibSizer) {
2086
+ const sizerStyle = window.getComputedStyle(this.element.bibSizer);
2087
+ const bibContent = this.element.bib.shadowRoot.querySelector(".container");
2088
+ if (sizerStyle.width !== '0px') {
2089
+ bibContent.style.width = sizerStyle.width;
2090
+ }
2091
+ if (sizerStyle.height !== '0px') {
2092
+ bibContent.style.height = sizerStyle.height;
2093
+ }
2094
+ bibContent.style.maxWidth = sizerStyle.maxWidth;
2095
+ bibContent.style.maxHeight = sizerStyle.maxHeight;
2096
+ }
2097
+ }
2098
+
2099
+ /**
2100
+ * @private
2101
+ * Determines the positioning strategy based on the current viewport size and mobile breakpoint.
2102
+ *
2103
+ * This method checks if the current viewport width is less than or equal to the specified mobile fullscreen breakpoint
2104
+ * defined in the bib element. If it is, the strategy is set to 'fullscreen'; otherwise, it defaults to 'floating'.
2105
+ *
2106
+ * @returns {String} The positioning strategy, either 'fullscreen' or 'floating'.
2107
+ */
2108
+ getPositioningStrategy() {
2109
+ let strategy = 'floating';
2110
+ if (this.element.bib.mobileFullscreenBreakpoint) {
2111
+ const smallerThanBreakpoint = window.matchMedia(`(max-width: ${this.element.bib.mobileFullscreenBreakpoint})`).matches;
2112
+ if (smallerThanBreakpoint) {
2113
+ strategy = 'fullscreen';
2114
+ }
2115
+ }
2116
+
2117
+ return strategy;
2118
+ }
2119
+
2120
+ /**
2121
+ * @private
2122
+ * Positions the bib element based on the current configuration and positioning strategy.
2123
+ *
2124
+ * This method determines the appropriate positioning strategy (fullscreen or not) and configures the bib accordingly.
2125
+ * It also sets up middleware for the floater configuration, computes the position of the bib relative to the trigger element,
2126
+ * and applies the calculated position to the bib's style.
2127
+ */
2128
+ position() {
2129
+ const strategy = this.getPositioningStrategy();
2130
+ this.configureBibStrategy(strategy);
2131
+
2132
+ if (strategy === 'floating') {
2133
+ this.mirrorSize();
2134
+ // Define the middlware for the floater configuration
2135
+ const middleware = [
2136
+ offset(this.element.floaterConfig.offset || 0),
2137
+ ...(this.element.floaterConfig.flip ? [flip()] : []), // Add flip middleware if flip is enabled
2138
+ ...(this.element.floaterConfig.autoPlacement ? [autoPlacement()] : []), // Add autoPlacement middleware if autoPlacement is enabled
2139
+ ];
2140
+
2141
+ // Compute the position of the bib
2142
+ computePosition(this.element.trigger, this.element.bib, {
2143
+ placement: this.element.floaterConfig.placement || 'bottom',
2144
+ middleware: middleware || []
2145
+ }).then(({x, y}) => { // eslint-disable-line id-length
2146
+ Object.assign(this.element.bib.style, {
2147
+ left: `${x}px`,
2148
+ top: `${y}px`,
2149
+ });
2150
+ });
2151
+ }
2152
+ }
2153
+
2154
+ /**
2155
+ * @private
2156
+ * Controls whether to lock the scrolling for the document's body.
2157
+ * @param {Boolean} lock - If true, locks the body's scrolling functionlity; otherwise, unlock.
2158
+ */
2159
+ lockScroll(lock = true) {
2160
+ if (lock) {
2161
+ document.body.style.overflow = 'hidden'; // hide body's scrollbar
2162
+
2163
+ // Move `bib` by the amount the viewport is shifted to stay aligned in fullscreen.
2164
+ this.element.bib.style.transform = `translateY(${visualViewport.offsetTop}px)`;
2165
+ } else {
2166
+ document.body.style.overflow = '';
2167
+ }
2168
+ }
2169
+
2170
+ /**
2171
+ * @private
2172
+ * Configures the bib element's display strategy.
2173
+ *
2174
+ * Sets the bib to fullscreen or floating mode based on the provided strategy.
2175
+ * Dispatches a 'strategy-change' event if the strategy changes.
2176
+ *
2177
+ * @param {string} strategy - The positioning strategy ('fullscreen' or 'floating').
2178
+ */
2179
+ configureBibStrategy(strategy) {
2180
+ const prevStrategy = this.element.isBibFullscreen ? 'fullscreen' : 'floating';
2181
+ if (strategy === 'fullscreen') {
2182
+ this.element.isBibFullscreen = true;
2183
+ // reset the prev position
2184
+ this.element.bib.style.top = "0px";
2185
+ this.element.bib.style.left = "0px";
2186
+
2187
+ // reset the size that was mirroring `size` css-part
2188
+ const bibContent = this.element.bib.shadowRoot.querySelector(".container");
2189
+ bibContent.style.width = '';
2190
+ bibContent.style.height = '';
2191
+ bibContent.style.maxWidth = '';
2192
+ bibContent.style.maxHeight = `${window.visualViewport.height}px`;
2193
+
2194
+ if (this.element.isPopoverVisible) {
2195
+ this.lockScroll(true);
2196
+ }
2197
+ } else {
2198
+ this.element.isBibFullscreen = false;
2199
+
2200
+ this.lockScroll(false);
2201
+ }
2202
+
2203
+ if (prevStrategy !== strategy) {
2204
+ const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-strategy-change` : 'strategy-change', {
2205
+ detail: {
2206
+ strategy,
2207
+ },
2208
+ composed: true
2209
+ });
2210
+
2211
+ this.element.dispatchEvent(event);
2212
+ }
2213
+ }
2214
+
2215
+ updateState() {
2216
+ const isVisible = this.element.isPopoverVisible;
2217
+
2218
+ // Refactor this to apply attribute to correct focusable element
2219
+ // Reference Issue: https://github.com/AlaskaAirlines/auro-library/issues/105
2220
+ //
2221
+ // this.element.trigger.setAttribute('aria-expanded', isVisible);
2222
+
2223
+ if (isVisible) {
2224
+ this.element.bib.setAttribute('data-show', true);
2225
+ } else {
2226
+ this.element.bib.removeAttribute('data-show');
2227
+ }
2228
+
2229
+ if (!isVisible) {
2230
+ this.cleanupHideHandlers();
2231
+ try {
2232
+ this.element.cleanup?.();
2233
+ } catch (error) {
2234
+ // Do nothing
2235
+ }
2236
+ }
2237
+ }
2238
+
2239
+ handleFocusLoss() {
2240
+ if (this.element.noHideOnThisFocusLoss ||
2241
+ this.element.hasAttribute('noHideOnThisFocusLoss')) {
2242
+ return;
2243
+ }
2244
+
2245
+ const {activeElement} = document;
2246
+ if (activeElement === document.querySelector('body') ||
2247
+ this.element.contains(activeElement) ||
2248
+ this.element.bibContent?.contains(activeElement)) {
2249
+ return;
2250
+ }
2251
+
2252
+ this.hideBib();
2253
+ }
2254
+
2255
+ setupHideHandlers() {
2256
+ // Define handlers & store references
2257
+ this.focusHandler = () => this.handleFocusLoss();
2258
+
2259
+ this.clickHandler = (evt) => {
2260
+ if (!evt.composedPath().includes(this.element.trigger) &&
2261
+ !evt.composedPath().includes(this.element.bibContent)) {
2262
+ this.hideBib();
2263
+ }
2264
+ };
2265
+
2266
+ // ESC key handler
2267
+ this.keyDownHandler = (evt) => {
2268
+ if (evt.key === 'Escape' && this.element.isPopoverVisible) {
2269
+ this.hideBib();
2270
+ }
2271
+ };
2272
+
2273
+ // Add event listeners using the stored references
2274
+ document.addEventListener('focusin', this.focusHandler);
2275
+ window.addEventListener('click', this.clickHandler);
2276
+ document.addEventListener('keydown', this.keyDownHandler);
2277
+ }
2278
+
2279
+ cleanupHideHandlers() {
2280
+ // Remove event listeners if they exist
2281
+ if (this.focusHandler) {
2282
+ document.removeEventListener('focusin', this.focusHandler);
2283
+ this.focusHandler = null;
2284
+ }
2285
+
2286
+ if (this.clickHandler) {
2287
+ window.removeEventListener('click', this.clickHandler);
2288
+ this.clickHandler = null;
2289
+ }
2290
+
2291
+ if (this.keyDownHandler) {
2292
+ document.removeEventListener('keydown', this.keyDownHandler);
2293
+ this.keyDownHandler = null;
2294
+ }
2295
+ }
2296
+
2297
+ handleUpdate(changedProperties) {
2298
+ if (changedProperties.has('isPopoverVisible')) {
2299
+ this.updateState();
2300
+ }
2301
+ }
2302
+
2303
+ updateCurrentExpandedDropdown() {
2304
+ // Close any other dropdown that is already open
2305
+ if (document.expandedAuroDropdown) {
2306
+ this.hideBib(document.expandedAuroDropdown);
2307
+ }
2308
+
2309
+ document.expandedAuroDropdown = this;
2310
+ }
2311
+
2312
+ showBib() {
2313
+ if (!this.element.disabled && !this.element.isPopoverVisible) {
2314
+ this.updateCurrentExpandedDropdown();
2315
+ this.element.isPopoverVisible = true;
2316
+ this.element.triggerChevron?.setAttribute('data-expanded', true);
2317
+
2318
+ this.dispatchEventDropdownToggle();
2319
+ this.position();
2320
+
2321
+ // Clean up any existing handlers before setting up new ones
2322
+ this.cleanupHideHandlers();
2323
+ this.setupHideHandlers();
2324
+
2325
+ // Setup auto update to handle resize and scroll
2326
+ this.element.cleanup = autoUpdate(this.element.trigger, this.element.bib, () => {
2327
+ this.position();
2328
+ });
2329
+ }
2330
+ }
2331
+
2332
+ hideBib() {
2333
+ if (this.element.isPopoverVisible && !this.element.disabled && !this.element.noToggle) {
2334
+ this.element.isPopoverVisible = false;
2335
+ this.lockScroll(false);
2336
+ this.element.triggerChevron?.removeAttribute('data-expanded');
2337
+ this.dispatchEventDropdownToggle();
2338
+ }
2339
+ }
2340
+
2341
+ /**
2342
+ * @private
2343
+ * @returns {void} Dispatches event with an object showing the state of the dropdown.
2344
+ */
2345
+ dispatchEventDropdownToggle() {
2346
+ const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
2347
+ detail: {
2348
+ expanded: this.element.isPopoverVisible,
2349
+ },
2350
+ composed: true
2351
+ });
2352
+
2353
+ this.element.dispatchEvent(event);
2354
+ }
2355
+
2356
+ handleClick() {
2357
+ if (this.element.isPopoverVisible) {
2358
+ this.hideBib();
2359
+ } else {
2360
+ this.showBib();
2361
+ }
2362
+
2363
+ const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-triggerClick` : "triggerClick", {
2364
+ composed: true,
2365
+ detail: {
2366
+ expanded: this.element.isPopoverVisible
2367
+ }
2368
+ });
2369
+
2370
+ this.element.dispatchEvent(event);
2371
+ }
2372
+
2373
+ handleEvent(event) {
2374
+ if (!this.element.disableEventShow) {
2375
+ switch (event.type) {
2376
+ case 'keydown':
2377
+ // Support both Enter and Space keys for accessibility
2378
+ // Space is included as it's expected behavior for interactive elements
2379
+ if (event.key === 'Enter' || event.key === ' ') {
2380
+ event.preventDefault(); // Prevent page scroll on space
2381
+ this.handleClick();
2382
+ }
2383
+ break;
2384
+ case 'mouseenter':
2385
+ if (this.element.hoverToggle) {
2386
+ this.showBib();
2387
+ }
2388
+ break;
2389
+ case 'mouseleave':
2390
+ if (this.element.hoverToggle) {
2391
+ this.hideBib();
2392
+ }
2393
+ break;
2394
+ case 'focus':
2395
+ if (this.element.focusShow) {
2396
+ /*
2397
+ This needs to better handle clicking that gives focus -
2398
+ currently it shows and then immediately hides the bib
2399
+ */
2400
+ this.showBib();
2401
+ }
2402
+ break;
2403
+ case 'blur':
2404
+ this.handleFocusLoss();
2405
+ break;
2406
+ case 'click':
2407
+ if (document.activeElement === document.body) {
2408
+ event.currentTarget.focus();
2409
+ }
2410
+ this.handleClick();
2411
+ break;
2412
+ // Do nothing
2413
+ }
2414
+ }
2415
+ }
2416
+
2417
+ /**
2418
+ * Manages the tabIndex of the trigger element based on its focusability.
2419
+ *
2420
+ * If the trigger element or any of its children are inherently focusable, the tabIndex of the component is set to -1.
2421
+ * This prevents the component itself from being focusable when the trigger element already handles focus.
2422
+ */
2423
+ handleTriggerTabIndex() {
2424
+ const focusableElementSelectors = [
2425
+ 'a',
2426
+ 'button',
2427
+ 'input:not([type="hidden"])',
2428
+ 'select',
2429
+ 'textarea',
2430
+ '[tabindex]:not([tabindex="-1"])',
2431
+ 'auro-button',
2432
+ 'auro-input',
2433
+ 'auro-hyperlink'
2434
+ ];
2435
+
2436
+ const triggerNode = this.element.querySelectorAll('[slot="trigger"]')[0];
2437
+ if (!triggerNode) {
2438
+ return;
2439
+ }
2440
+ const triggerNodeTagName = triggerNode.tagName.toLowerCase();
2441
+
2442
+ focusableElementSelectors.forEach((selector) => {
2443
+ // Check if the trigger node element is focusable
2444
+ if (triggerNodeTagName === selector) {
2445
+ this.element.tabIndex = -1;
2446
+ return;
2447
+ }
2448
+
2449
+ // Check if any child is focusable
2450
+ if (triggerNode.querySelector(selector)) {
2451
+ this.element.tabIndex = -1;
2452
+ }
2453
+ });
2454
+ }
2455
+
2456
+ configure(elem, eventPrefix) {
2457
+ this.eventPrefix = eventPrefix;
2458
+ this.element = elem;
2459
+ this.element.trigger = this.element.shadowRoot.querySelector('#trigger');
2460
+ this.element.bib = this.element.shadowRoot.querySelector('#bib');
2461
+ this.element.bibSizer = this.element.shadowRoot.querySelector('#bibSizer');
2462
+ this.element.triggerChevron = this.element.shadowRoot.querySelector('#showStateIcon');
2463
+
2464
+ document.body.append(this.element.bib);
2465
+
2466
+ this.handleTriggerTabIndex();
2467
+
2468
+ this.handleEvent = this.handleEvent.bind(this);
2469
+ this.element.trigger.addEventListener('keydown', this.handleEvent);
2470
+ this.element.trigger.addEventListener('click', this.handleEvent);
2471
+ this.element.trigger.addEventListener('mouseenter', this.handleEvent);
2472
+ this.element.trigger.addEventListener('mouseleave', this.handleEvent);
2473
+ this.element.trigger.addEventListener('focus', this.handleEvent);
2474
+ this.element.trigger.addEventListener('blur', this.handleEvent);
2475
+ }
2476
+
2477
+ disconnect() {
2478
+ this.cleanupHideHandlers();
2479
+ this.element.cleanup?.();
2480
+
2481
+ // Remove event & keyboard listeners
2482
+ if (this.element?.trigger) {
2483
+ this.element.trigger.removeEventListener('keydown', this.handleEvent);
2484
+ this.element.trigger.removeEventListener('click', this.handleEvent);
2485
+ this.element.trigger.removeEventListener('mouseenter', this.handleEvent);
2486
+ this.element.trigger.removeEventListener('mouseleave', this.handleEvent);
2487
+ this.element.trigger.removeEventListener('focus', this.handleEvent);
2488
+ this.element.trigger.removeEventListener('blur', this.handleEvent);
2489
+ }
2490
+ }
2491
+ }
2492
+
2493
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
2494
+ // See LICENSE in the project root for license information.
2495
+
2496
+
2497
+ class AuroDependencyVersioning {
2498
+
2499
+ /**
2500
+ * Generates a unique string to be used for child auro element naming.
2501
+ * @private
2502
+ * @param {string} baseName - Defines the first part of the unique element name.
2503
+ * @param {string} version - Version of the component that will be appended to the baseName.
2504
+ * @returns {string} - Unique string to be used for naming.
2505
+ */
2506
+ generateElementName(baseName, version) {
2507
+ let result = baseName;
2508
+
2509
+ result += '-';
2510
+ result += version.replace(/[.]/g, '_');
2511
+
2512
+ return result;
2513
+ }
2514
+
2515
+ /**
2516
+ * Generates a unique string to be used for child auro element naming.
2517
+ * @param {string} baseName - Defines the first part of the unique element name.
2518
+ * @param {string} version - Version of the component that will be appended to the baseName.
2519
+ * @returns {string} - Unique string to be used for naming.
2520
+ */
2521
+ generateTag(baseName, version, tagClass) {
2522
+ const elementName = this.generateElementName(baseName, version);
2523
+ const tag = i$8`${s$3(elementName)}`;
2524
+
2525
+ if (!customElements.get(elementName)) {
2526
+ customElements.define(elementName, class extends tagClass {});
2527
+ }
2528
+
2529
+ return tag;
2530
+ }
2531
+ }
2532
+
2533
+ /**
2534
+ * @license
2535
+ * Copyright 2017 Google LLC
2536
+ * SPDX-License-Identifier: BSD-3-Clause
2537
+ */
2538
+ const t$2$1={ATTRIBUTE:1},e$4$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$4$1 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
2539
+
2540
+ /**
2541
+ * @license
2542
+ * Copyright 2018 Google LLC
2543
+ * SPDX-License-Identifier: BSD-3-Clause
2544
+ */const e$3$1=e$4$1(class extends i$4$1{constructor(t){if(super(t),t.type!==t$2$1.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$1}});
2545
+
2546
+ /**
2547
+ * @license
2548
+ * Copyright 2018 Google LLC
2549
+ * SPDX-License-Identifier: BSD-3-Clause
2550
+ */const o$3$1=o=>o??E$1;
2551
+
2552
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2553
+ // See LICENSE in the project root for license information.
2554
+
2555
+
2556
+ /**
2557
+ * @attr {Boolean} hidden - If present, the component will be hidden both visually and from screen readers
2558
+ * @attr {Boolean} hiddenVisually - If present, the component will be hidden visually, but still read by screen readers
2559
+ * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
2560
+ */
2561
+
2562
+ class AuroElement extends r$4 {
2563
+
2564
+ // function to define props used within the scope of this component
2565
+ static get properties() {
2566
+ return {
2567
+ hidden: { type: Boolean,
2568
+ reflect: true },
2569
+ hiddenVisually: { type: Boolean,
2570
+ reflect: true },
2571
+ hiddenAudible: { type: Boolean,
2572
+ reflect: true },
2573
+ };
2574
+ }
2575
+
2576
+ /**
2577
+ * @private Function that determines state of aria-hidden
2578
+ */
2579
+ hideAudible(value) {
2580
+ if (value) {
2581
+ return 'true'
2582
+ }
2583
+
2584
+ return 'false'
2585
+ }
2586
+ }
2587
+
2588
+ var error = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
2589
+
2590
+ /* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
2591
+
2592
+ const _fetchMap = new Map();
2593
+
2594
+ /**
2595
+ * A callback to parse Response body.
2596
+ *
2597
+ * @callback ResponseParser
2598
+ * @param {Fetch.Response} response
2599
+ * @returns {Promise}
2600
+ */
2601
+
2602
+ /**
2603
+ * A minimal in-memory map to de-duplicate Fetch API media requests.
2604
+ *
2605
+ * @param {String} uri
2606
+ * @param {Object} [options={}]
2607
+ * @param {ResponseParser} [options.responseParser=(response) => response.text()]
2608
+ * @returns {Promise}
2609
+ */
2610
+ const cacheFetch = (uri, options = {}) => {
2611
+ const responseParser = options.responseParser || ((response) => response.text());
2612
+ if (!_fetchMap.has(uri)) {
2613
+ _fetchMap.set(uri, fetch(uri).then(responseParser));
2614
+ }
2615
+ return _fetchMap.get(uri);
2616
+ };
2617
+
2618
+ var styleCss$3 = i$7`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
2619
+
2620
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2621
+ // See LICENSE in the project root for license information.
2622
+
2623
+
2624
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
2625
+ /**
2626
+ * @attr {Boolean} onDark - Set value for on-dark version of auro-icon
2627
+ * @slot - Hidden from visibility, used for a11y if icon description is needed
2628
+ */
2629
+
2630
+ // build the component class
2631
+ class BaseIcon extends AuroElement {
2632
+ constructor() {
2633
+ super();
2634
+ this.onDark = false;
2635
+ }
2636
+
2637
+ // function to define props used within the scope of this component
2638
+ static get properties() {
2639
+ return {
2640
+ ...super.properties,
2641
+ onDark: {
2642
+ type: Boolean,
2643
+ reflect: true
2644
+ },
2645
+
2646
+ /**
2647
+ * @private
2648
+ */
2649
+ svg: {
2650
+ attribute: false,
2651
+ reflect: true
2652
+ }
2653
+ };
2654
+ }
2655
+
2656
+ static get styles() {
2657
+ return i$7`
2658
+ ${styleCss$3}
2659
+ `;
2660
+ }
2661
+
2662
+ /**
2663
+ * Async function to fetch requested icon from npm CDN.
2664
+ * @private
2665
+ * @param {string} category - Icon category.
2666
+ * @param {string} name - Icon name.
2667
+ * @returns {SVGElement} DOM - Ready HTML to be appended.
2668
+ */
2669
+ async fetchIcon(category, name) {
2670
+ let iconHTML = '';
2671
+
2672
+ if (category === 'logos') {
2673
+ iconHTML = await cacheFetch(`${this.uri}/${category}/${name}.svg`);
2674
+ } else {
2675
+ iconHTML = await cacheFetch(`${this.uri}/icons/${category}/${name}.svg`);
2676
+ }
2677
+
2678
+ const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
2679
+
2680
+ return dom.body.querySelector('svg');
2681
+ }
2682
+
2683
+ // lifecycle function
2684
+ async firstUpdated() {
2685
+ if (!this.customSvg) {
2686
+ const svg = await this.fetchIcon(this.category, this.name);
2687
+
2688
+ if (svg) {
2689
+ this.svg = svg;
2690
+ } else if (!svg) {
2691
+ const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
2692
+
2693
+ this.svg = penDOM.body.firstChild;
2694
+ }
2695
+ }
2696
+ }
2697
+ }
2698
+
2699
+ var tokensCss$2 = i$7`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
2700
+
2701
+ var colorCss$3 = i$7`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color: var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color: var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color: var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color: var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color: var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color: var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color: var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-inverse, #f2c153)}`;
2702
+
2703
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2704
+ // See LICENSE in the project root for license information.
2705
+
2706
+
2707
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
2708
+ /**
2709
+ * auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
2710
+ *
2711
+ * @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
2712
+ * @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
2713
+ * @attr {Boolean} customColor - Removes primary selector.
2714
+ * @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
2715
+ * @attr {Boolean} label - Exposes content in slot as icon label.
2716
+ * @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
2717
+ * @attr {Boolean} accent - Sets the icon to use the accent style.
2718
+ * @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
2719
+ * @attr {Boolean} disabled - Sets the icon to use the disabled style.
2720
+ * @attr {Boolean} error - Sets the icon to use the error style.
2721
+ * @attr {Boolean} info - Sets the icon to use the info style.
2722
+ * @attr {Boolean} secondary - Sets the icon to use the secondary style.
2723
+ * @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
2724
+ * @attr {Boolean} subtle - Sets the icon to use the subtle style.
2725
+ * @attr {Boolean} success - Sets the icon to use the success style.
2726
+ * @attr {Boolean} warning - Sets the icon to use the warning style.
2727
+ * @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
2728
+ * @attr {String} uri - Set the uri for CDN used when fetching icons
2729
+ * @slot - Hidden from visibility, used for a11y if icon description is needed.
2730
+ * @slot svg - Used for custom SVG content.
2731
+ */
2732
+
2733
+ // build the component class
2734
+ class AuroIcon extends BaseIcon {
2735
+ constructor() {
2736
+ super();
2737
+
2738
+ this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
2739
+
2740
+ this.privateDefaults();
2741
+ }
2742
+
2743
+ /**
2744
+ * Internal Defaults.
2745
+ * @private
2746
+ * @returns {void}
2747
+ */
2748
+ privateDefaults() {
2749
+ this.accent = false;
2750
+ this.customColor = false;
2751
+ this.customSvg = false;
2752
+ this.disabled = false;
2753
+ this.emphasis = false;
2754
+ this.error = false;
2755
+ this.info = false;
2756
+ this.label = false;
2757
+ this.primary = false;
2758
+ this.secondary = false;
2759
+ this.subtle = false;
2760
+ this.success = false;
2761
+ this.tertiary = false;
2762
+ this.warning = false;
2763
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
2764
+ }
2765
+
2766
+ // function to define props used within the scope of this component
2767
+ static get properties() {
2768
+ return {
2769
+ ...super.properties,
2770
+ accent: {
2771
+ type: Boolean,
2772
+ reflect: true
2773
+ },
2774
+ ariaHidden: {
2775
+ type: String,
2776
+ reflect: true
2777
+ },
2778
+ category: {
2779
+ type: String,
2780
+ reflect: true
2781
+ },
2782
+ customColor: {
2783
+ type: Boolean
2784
+ },
2785
+ customSvg: {
2786
+ type: Boolean
2787
+ },
2788
+ disabled: {
2789
+ type: Boolean,
2790
+ reflect: true
2791
+ },
2792
+ emphasis: {
2793
+ type: Boolean,
2794
+ reflect: true
2795
+ },
2796
+ error: {
2797
+ type: Boolean,
2798
+ reflect: true
2799
+ },
2800
+ info: {
2801
+ type: Boolean,
2802
+ reflect: true
2803
+ },
2804
+ label: {
2805
+ type: Boolean,
2806
+ reflect: true
2807
+ },
2808
+ name: {
2809
+ type: String,
2810
+ reflect: true
2811
+ },
2812
+ primary: {
2813
+ type: Boolean,
2814
+ reflect: true
2815
+ },
2816
+ secondary: {
2817
+ type: Boolean,
2818
+ reflect: true
2819
+ },
2820
+ subtle: {
2821
+ type: Boolean,
2822
+ reflect: true
2823
+ },
2824
+ success: {
2825
+ type: Boolean,
2826
+ reflect: true
2827
+ },
2828
+ tertiary: {
2829
+ type: Boolean,
2830
+ reflect: true
2831
+ },
2832
+ uri: {
2833
+ type: String
2834
+ },
2835
+ warning: {
2836
+ type: Boolean,
2837
+ reflect: true
2838
+ }
2839
+ };
2840
+ }
2841
+
2842
+ static get styles() {
2843
+ return [
2844
+ super.styles,
2845
+ i$7`${tokensCss$2}`,
2846
+ i$7`${styleCss$3}`,
2847
+ i$7`${colorCss$3}`
2848
+ ];
2849
+ }
2850
+
2851
+ /**
2852
+ * This will register this element with the browser.
2853
+ * @param {string} [name="auro-icon"] - The name of element that you want to register to.
2854
+ *
2855
+ * @example
2856
+ * AuroIcon.register("custom-icon") // this will register this element to <custom-icon/>
2857
+ *
2858
+ */
2859
+ static register(name = "auro-icon") {
2860
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
2861
+ }
2862
+
2863
+ connectedCallback() {
2864
+ super.connectedCallback();
2865
+
2866
+ // Add the tag name as an attribute if it is different than the component name
2867
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-icon');
2868
+ }
2869
+
2870
+ /**
2871
+ * @returns {void} Exposes CSS parts for styling from parent components.
2872
+ */
2873
+ exposeCssParts() {
2874
+ this.setAttribute('exportparts', 'svg:iconSvg');
2875
+ }
2876
+
2877
+ // function that renders the HTML and CSS into the scope of the component
2878
+ render() {
2879
+ const a11y = {
2880
+ 'labelContainer': true,
2881
+ 'util_displayHiddenVisually': !this.label
2882
+ };
2883
+
2884
+ const classes = {
2885
+ 'label': this.label,
2886
+ 'wrapper': true,
2887
+ };
2888
+
2889
+ return x$1`
2890
+ <div
2891
+ class="${e$3$1(classes)}"
2892
+ title="${o$3$1(this.title || undefined)}">
2893
+ <span aria-hidden="${o$3$1(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
2894
+ ${this.customSvg ? x$1`
2895
+ <slot name="svg"></slot>
2896
+ ` : x$1`
2897
+ ${this.svg}
2898
+ `
2899
+ }
2900
+ </span>
2901
+
2902
+ <div class="${e$3$1(a11y)}">
2903
+ <slot></slot>
2904
+ </div>
2905
+ </div>
2906
+ `;
2907
+ }
2908
+ }
2909
+
2910
+ var iconVersion = '6.1.2';
2911
+
2912
+ var styleCss$2 = i$7`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
2913
+
2914
+ var colorCss$2 = i$7`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
2915
+
2916
+ var tokensCss$1 = i$7`:host{--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
2917
+
2918
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2919
+ // See LICENSE in the project root for license information.
2920
+
2921
+
2922
+
2923
+ const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
2924
+ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
2925
+ 'lg',
2926
+ 'md',
2927
+ 'sm',
2928
+ 'xs',
2929
+ ];
2930
+
2931
+ /**
2932
+ * @prop { String } fullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
2933
+ * @csspart bibContainer - Apply css to the bib container.
2934
+ */
2935
+
2936
+ class AuroDropdownBib extends r$4 {
2937
+
2938
+ constructor() {
2939
+ super();
2940
+
2941
+ /**
2942
+ * @private
2943
+ */
2944
+ this._mobileBreakpointValue = undefined;
2945
+
2946
+ AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
2947
+ }
2948
+
2949
+ static get styles() {
2950
+ return [
2951
+ styleCss$2,
2952
+ colorCss$2,
2953
+ tokensCss$1
2954
+ ];
2955
+ }
2956
+
2957
+ static get properties() {
2958
+ return {
2959
+
2960
+ /**
2961
+ * If declared, will take the fullscreen when the bib is displayed.
2962
+ */
2963
+ isFullscreen: {
2964
+ type: Boolean,
2965
+ reflect: true
2966
+ },
2967
+
2968
+ /**
2969
+ * If declared, will apply all styles for the common theme.
2970
+ */
2971
+ common: {
2972
+ type: Boolean,
2973
+ reflect: true
2974
+ },
2975
+
2976
+ /**
2977
+ * If declared, will apply extra padding to bib content.
2978
+ */
2979
+ inset: {
2980
+ type: Boolean,
2981
+ reflect: true
2982
+ },
2983
+
2984
+ /**
2985
+ * If declared, will apply border-radius to the bib.
2986
+ */
2987
+ rounded: {
2988
+ type: Boolean,
2989
+ reflect: true
2990
+ },
2991
+ };
2992
+ }
2993
+
2994
+ set mobileFullscreenBreakpoint(value) {
2995
+ // verify the defined breakpoint is valid and exit out if not
2996
+ const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
2997
+ if (!validatedValue) {
2998
+ this._mobileBreakpointValue = undefined;
2999
+ } else {
3000
+ // get the pixel value for the defined breakpoint
3001
+ const docStyle = getComputedStyle(document.documentElement);
3002
+ this._mobileBreakpointValue = docStyle.getPropertyValue(DESIGN_TOKEN_BREAKPOINT_PREFIX + value);
3003
+ }
3004
+ }
3005
+
3006
+ get mobileFullscreenBreakpoint() {
3007
+ return this._mobileBreakpointValue;
3008
+ }
3009
+
3010
+ updated(changedProperties) {
3011
+ if (changedProperties.has('isFullscreen')) {
3012
+ this.childNodes.forEach((child) => {
3013
+ // skip any text that is not in an HTMLElement on setting `isFullscreen` attr.
3014
+ if (child.nodeName !== '#text') {
3015
+ if (this.isFullscreen) {
3016
+ child.setAttribute('isFullscreen', 'true');
3017
+ } else {
3018
+ child.removeAttribute('isFullscreen');
3019
+ }
3020
+ }
3021
+ });
3022
+ }
3023
+ }
3024
+
3025
+ // function that renders the HTML and CSS into the scope of the component
3026
+ render() {
3027
+ return u$3`
3028
+ <div class="container" part="bibContainer">
3029
+ <slot></slot>
3030
+ </div>
3031
+ `;
3032
+ }
3033
+ }
3034
+
3035
+ var dropdownVersion$1 = '3.0.0';
3036
+
3037
+ var styleCss$1 = i$7`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center}.trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
3038
+
3039
+ var colorCss$1 = i$7`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
3040
+
3041
+ /**
3042
+ * @license
3043
+ * Copyright 2019 Google LLC
3044
+ * SPDX-License-Identifier: BSD-3-Clause
3045
+ */
3046
+ const t$1$1=globalThis,e$2$1=t$1$1.ShadowRoot&&(void 0===t$1$1.ShadyCSS||t$1$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$1$1=Symbol(),o$2$1=new WeakMap;let n$2$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$1$1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$2$1&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$2$1.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2$1.set(s,t));}return t}toString(){return this.cssText}};const r$3$1=t=>new n$2$1("string"==typeof t?t:t+"",void 0,s$1$1),i$3$1=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$2$1(o,t,s$1$1)},S$1$1=(s,o)=>{if(e$2$1)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1$1.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2$1=e$2$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3$1(e)})(t):t;
3047
+
3048
+ /**
3049
+ * @license
3050
+ * Copyright 2017 Google LLC
3051
+ * SPDX-License-Identifier: BSD-3-Clause
3052
+ */const{is:i$2$1,defineProperty:e$1,getOwnPropertyDescriptor:r$2$1,getOwnPropertyNames:h$1$1,getOwnPropertySymbols:o$1,getPrototypeOf:n$1$1}=Object,a$1$1=globalThis,c$1$1=a$1$1.trustedTypes,l$1$1=c$1$1?c$1$1.emptyScript:"",p$1$1=a$1$1.reactiveElementPolyfillSupport,d$1$1=(t,s)=>t,u$1$1={toAttribute(t,s){switch(s){case Boolean:t=t?l$1$1:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1$1=(t,s)=>!i$2$1(t,s),y$1$1={attribute:true,type:String,converter:u$1$1,reflect:false,hasChanged:f$1$1};Symbol.metadata??=Symbol("metadata"),a$1$1.litPropertyMetadata??=new WeakMap;let b$2 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$1$1){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$1(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1$1}static _$Ei(){if(this.hasOwnProperty(d$1$1("elementProperties")))return;const t=n$1$1(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1$1("properties"))){const t=this.properties,s=[...h$1$1(t),...o$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2$1(s));}else void 0!==s&&i.push(c$2$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$1$1).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$1$1;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1$1)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$2.elementStyles=[],b$2.shadowRootOptions={mode:"open"},b$2[d$1$1("elementProperties")]=new Map,b$2[d$1$1("finalized")]=new Map,p$1$1?.({ReactiveElement:b$2}),(a$1$1.reactiveElementVersions??=[]).push("2.0.4");
3053
+
3054
+ /**
3055
+ * @license
3056
+ * Copyright 2017 Google LLC
3057
+ * SPDX-License-Identifier: BSD-3-Clause
3058
+ */
3059
+ const t=globalThis,i$1=t.trustedTypes,s=i$1?i$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,e="$lit$",h$4=`lit$${Math.random().toFixed(9).slice(2)}$`,o="?"+h$4,n=`<${o}>`,r$1$1=document,l=()=>r$1$1.createComment(""),c$6=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a=Array.isArray,u=t=>a(t)||"function"==typeof t?.[Symbol.iterator],d$4="[ \t\n\f\r]",f$4=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$2=/-->/g,_$2=/>/g,m$2=RegExp(`>|${d$4}(?:([^\\s"'>=/]+)(${d$4}*=${d$4}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$4=/'/g,g$2=/"/g,$$2=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),T$2=Symbol.for("lit-noChange"),E$2=Symbol.for("lit-nothing"),A$2=new WeakMap,C$2=r$1$1.createTreeWalker(r$1$1,129);function P$2(t,i){if(!a(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(i):i}const V$2=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$4;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$4?"!--"===u[1]?c=v$2:void 0!==u[1]?c=_$2:void 0!==u[2]?($$2.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$2):void 0!==u[3]&&(c=m$2):c===m$2?">"===u[0]?(c=r??f$4,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$2:'"'===u[3]?g$2:p$4):c===g$2||c===p$4?c=m$2:c===v$2||c===_$2?c=f$4:(c=m$2,r=void 0);const x=c===m$2&&t[i+1].startsWith("/>")?" ":"";l+=c===f$4?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h$4+x):s+h$4+(-2===d?i:x);}return [P$2(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$2 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$2(t,s);if(this.el=N.createElement(f,n),C$2.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$2.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e)){const i=v[a++],s=r.getAttribute(t).split(h$4),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$2:"?"===e[1]?I$2:"@"===e[1]?L$2:k$2}),r.removeAttribute(t);}else t.startsWith(h$4)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$2.test(r.tagName)){const t=r.textContent.split(h$4),s=t.length-1;if(s>0){r.textContent=i$1?i$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l()),C$2.nextNode(),d.push({type:2,index:++c});r.append(t[s],l());}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$4,t+1));)d.push({type:7,index:c}),t+=h$4.length-1;}c++;}}static createElement(t,i){const s=r$1$1.createElement("template");return s.innerHTML=t,s}};function S$4(t,i,s=t,e){if(i===T$2)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$6(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$4(t,h._$AS(t,i.values),h,e)),i}let M$2 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$1$1).importNode(i,true);C$2.currentNode=e;let h=C$2.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$2(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$2(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$2.nextNode(),o++);}return C$2.currentNode=r$1$1,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$2 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$2,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$4(this,t,i),c$6(t)?t===E$2||null==t||""===t?(this._$AH!==E$2&&this._$AR(),this._$AH=E$2):t!==this._$AH&&t!==T$2&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$2&&c$6(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$2.createElement(P$2(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$2(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$2.get(t.strings);return void 0===i&&A$2.set(t.strings,i=new N$2(t)),i}k(t){a(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l()),this.O(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$2 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$2,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$2;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$4(this,t,i,0),o=!c$6(t)||t!==this._$AH&&t!==T$2,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$4(this,e[s+n],i,n),r===T$2&&(r=this._$AH[n]),o||=!c$6(r)||r!==this._$AH[n],r===E$2?t=E$2:t!==E$2&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$2?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$2 = class H extends k$2{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$2?void 0:t;}};let I$2 = class I extends k$2{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$2);}};let L$2 = class L extends k$2{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$4(this,t,i,0)??E$2)===T$2)return;const s=this._$AH,e=t===E$2&&s!==E$2||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$2&&(s===E$2||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$2 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$4(this,t);}};const j$2=t.litHtmlPolyfillSupport;j$2?.(N$2,R$2),(t.litHtmlVersions??=[]).push("3.2.1");const B$2=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$2(i.insertBefore(l(),t),t,void 0,s??{});}return h._$AI(t),h};
3060
+
3061
+ /**
3062
+ * @license
3063
+ * Copyright 2017 Google LLC
3064
+ * SPDX-License-Identifier: BSD-3-Clause
3065
+ */let r$8 = class r extends b$2{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$2(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$2}};r$8._$litElement$=true,r$8["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$8});const i=globalThis.litElementPolyfillSupport;i?.({LitElement:r$8});(globalThis.litElementVersions??=[]).push("4.1.1");
3066
+
3067
+ var colorCss$4 = i$3$1`:host([error]){--ds-auro-helptext-color: var(--ds-color-text-error-default, #cc1816)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
3068
+
3069
+ var styleCss$4 = i$3$1`.helptext-wrapper{display:none;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}:host([large]) .helptext-wrapper{font-size:var(--ds-text-body-size-default, 1rem)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
3070
+
3071
+ var tokensCss$3 = i$3$1`:host{--ds-auro-helptext-color: var(--ds-color-text-tertiary-default, #6a717c)}`;
3072
+
3073
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3074
+ // See LICENSE in the project root for license information.
3075
+
3076
+ // ---------------------------------------------------------------------
3077
+
3078
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3079
+
3080
+ class AuroLibraryRuntimeUtils {
3081
+
3082
+ /* eslint-disable jsdoc/require-param */
3083
+
3084
+ /**
3085
+ * This will register a new custom element with the browser.
3086
+ * @param {String} name - The name of the custom element.
3087
+ * @param {Object} componentClass - The class to register as a custom element.
3088
+ * @returns {void}
3089
+ */
3090
+ registerComponent(name, componentClass) {
3091
+ if (!customElements.get(name)) {
3092
+ customElements.define(name, class extends componentClass {});
3093
+ }
3094
+ }
3095
+
3096
+ /**
3097
+ * Finds and returns the closest HTML Element based on a selector.
3098
+ * @returns {void}
3099
+ */
3100
+ closestElement(
3101
+ selector, // selector like in .closest()
3102
+ base = this, // extra functionality to skip a parent
3103
+ __Closest = (el, found = el && el.closest(selector)) =>
3104
+ !el || el === document || el === window
3105
+ ? null // standard .closest() returns null for non-found selectors also
3106
+ : found
3107
+ ? found // found a selector INside this element
3108
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
3109
+ ) {
3110
+ return __Closest(base);
3111
+ }
3112
+ /* eslint-enable jsdoc/require-param */
3113
+
3114
+ /**
3115
+ * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
3116
+ * @param {Object} elem - The element to check.
3117
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
3118
+ * @returns {void}
3119
+ */
3120
+ handleComponentTagRename(elem, tagName) {
3121
+ const tag = tagName.toLowerCase();
3122
+ const elemTag = elem.tagName.toLowerCase();
3123
+
3124
+ if (elemTag !== tag) {
3125
+ elem.setAttribute(tag, true);
3126
+ }
3127
+ }
3128
+
3129
+ /**
3130
+ * Validates if an element is a specific Auro component.
3131
+ * @param {Object} elem - The element to validate.
3132
+ * @param {String} tagName - The name of the Auro component to check against.
3133
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
3134
+ */
3135
+ elementMatch(elem, tagName) {
3136
+ const tag = tagName.toLowerCase();
3137
+ const elemTag = elem.tagName.toLowerCase();
3138
+
3139
+ return elemTag === tag || elem.hasAttribute(tag);
3140
+ }
3141
+ }
3142
+
3143
+ // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3144
+ // See LICENSE in the project root for license information.
3145
+
3146
+
3147
+ /**
3148
+ * Displays help text or error messages within form elements - Internal Use Only.
3149
+ *
3150
+ * @attr { Boolean } large - If declared, make font-size to 1rem(16px).
3151
+ */
3152
+ class AuroHelpText extends r$8 {
3153
+
3154
+ constructor() {
3155
+ super();
3156
+
3157
+ this.error = false;
3158
+ this.hasTextContent = false;
3159
+
3160
+ AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-helptext');
3161
+ }
3162
+
3163
+ static get styles() {
3164
+ return [
3165
+ colorCss$4,
3166
+ styleCss$4,
3167
+ tokensCss$3
3168
+ ];
3169
+ }
3170
+
3171
+ // function to define props used within the scope of this component
3172
+ static get properties() {
3173
+ return {
3174
+
3175
+ /**
3176
+ * @private
3177
+ */
3178
+ slotNodes: {
3179
+ type: Boolean,
3180
+ },
3181
+
3182
+ /**
3183
+ * @private
3184
+ */
3185
+ hasTextContent: {
3186
+ type: Boolean,
3187
+ },
3188
+
3189
+ /**
3190
+ * If declared, make font color red.
3191
+ */
3192
+ error: {
3193
+ type: Boolean,
3194
+ reflect: true,
3195
+ },
3196
+ };
3197
+ }
3198
+
3199
+ /**
3200
+ * This will register this element with the browser.
3201
+ * @param {string} [name="auro-helptext"] - The name of element that you want to register to.
3202
+ *
3203
+ * @example
3204
+ * AuroCheckbox.register("custom-helptext") // this will register this element to <custom-helptext/>
3205
+ *
3206
+ */
3207
+ static register(name = "auro-helptext") {
3208
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHelpText);
3209
+ }
3210
+
3211
+ updated() {
3212
+ this.handleSlotChange();
3213
+ }
3214
+
3215
+ handleSlotChange(event) {
3216
+ if (event) {
3217
+ this.slotNodes = event.target.assignedNodes();
3218
+ }
3219
+
3220
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
3221
+ }
3222
+
3223
+ /**
3224
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
3225
+ *
3226
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
3227
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
3228
+ * @private
3229
+ */
3230
+ checkSlotsForContent(nodes) {
3231
+ if (!nodes) {
3232
+ return false;
3233
+ }
3234
+
3235
+ return nodes.some((node) => {
3236
+ if (node.textContent.trim()) {
3237
+ return true;
3238
+ }
3239
+
3240
+ if (!node.querySelector) {
3241
+ return false;
3242
+ }
3243
+
3244
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
3245
+ if (!nestedSlot) {
3246
+ return false;
3247
+ }
3248
+
3249
+ const nestedSlotNodes = nestedSlot.assignedNodes();
3250
+ return this.checkSlotsForContent(nestedSlotNodes);
3251
+ });
3252
+ }
3253
+
3254
+ // function that renders the HTML and CSS into the scope of the component
3255
+ render() {
3256
+ return x`
3257
+ <div class="helptext-wrapper" ?visible="${this.hasTextContent}">
3258
+ <slot @slotchange=${this.handleSlotChange}></slot>
3259
+ </div>
3260
+ `;
3261
+ }
3262
+ }
3263
+
3264
+ var helpTextVersion = '1.0.0';
3265
+
3266
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3267
+ // See LICENSE in the project root for license information.
3268
+
3269
+
3270
+ /**
3271
+ * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
3272
+ * @slot - Default slot for the popover content.
3273
+ * @slot label - Defines the content of the label.
3274
+ * @slot helpText - Defines the content of the helpText.
3275
+ * @slot trigger - Defines the content of the trigger.
3276
+ * @csspart trigger - The trigger content container.
3277
+ * @csspart chevron - The collapsed/expanded state icon container.
3278
+ * @csspart helpText - The helpText content container.
3279
+ * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
3280
+ * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
3281
+ */
3282
+ class AuroDropdown extends r$4 {
3283
+ constructor() {
3284
+ super();
3285
+
3286
+ this.isPopoverVisible = false;
3287
+ this.isBibFullscreen = false;
3288
+ this.matchWidth = false;
3289
+ this.noHideOnThisFocusLoss = false;
3290
+
3291
+ this.privateDefaults();
3292
+
3293
+ /**
3294
+ * @private
3295
+ * @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
3296
+ */
3297
+ this.constructor.shadowRootOptions = {
3298
+ ...r$4.shadowRootOptions,
3299
+ delegatesFocus: true,
3300
+ };
3301
+
3302
+ /**
3303
+ * @private
3304
+ */
3305
+ this.triggerContentFocusable = false;
3306
+
3307
+ /**
3308
+ * @private
3309
+ */
3310
+ this.showTriggerBorders = true;
3311
+ }
3312
+
3313
+ /**
3314
+ * @private
3315
+ * @returns {void} Internal defaults.
3316
+ */
3317
+ privateDefaults() {
3318
+ this.bordered = false;
3319
+ this.chevron = false;
3320
+ this.disabled = false;
3321
+ this.error = false;
3322
+ this.inset = false;
3323
+ this.placement = 'bottom-start';
3324
+ this.rounded = false;
3325
+ this.tabIndex = 0;
3326
+ this.noToggle = false;
3327
+
3328
+ /**
3329
+ * @private
3330
+ */
3331
+ this.hasTriggerContent = false;
3332
+
3333
+ /**
3334
+ * @private
3335
+ */
3336
+ this.triggerContentSlot = undefined;
3337
+
3338
+ /**
3339
+ * @private
3340
+ */
3341
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
3342
+
3343
+ /**
3344
+ * @private
3345
+ */
3346
+ this.floater = new AuroFloatingUI();
3347
+
3348
+ /**
3349
+ * @private
3350
+ */
3351
+ this.floaterConfig = {
3352
+ placement: 'bottom-start',
3353
+ flip: true,
3354
+ autoPlacement: false,
3355
+ offset: 0,
3356
+ };
3357
+
3358
+ /**
3359
+ * Generate unique names for dependency components.
3360
+ */
3361
+ const versioning = new AuroDependencyVersioning();
3362
+
3363
+ /**
3364
+ * @private
3365
+ */
3366
+ this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
3367
+
3368
+ /**
3369
+ * @private
3370
+ */
3371
+ this.dropdownBibTag = versioning.generateTag('auro-dropdownbib', dropdownVersion$1, AuroDropdownBib);
3372
+
3373
+ /**
3374
+ * @private
3375
+ */
3376
+ this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
3377
+ }
3378
+
3379
+ /**
3380
+ * Public method to hide the dropdown.
3381
+ * @returns {void}
3382
+ */
3383
+ hide() {
3384
+ this.floater.hideBib();
3385
+ }
3386
+
3387
+ /**
3388
+ * Public method to show the dropdown.
3389
+ * @returns {void}
3390
+ */
3391
+ show() {
3392
+ this.floater.showBib();
3393
+ }
3394
+
3395
+ // function to define props used within the scope of this component
3396
+ static get properties() {
3397
+ return {
3398
+
3399
+ /**
3400
+ * If declared, applies a border around the trigger slot.
3401
+ */
3402
+ bordered: {
3403
+ type: Boolean,
3404
+ reflect: true
3405
+ },
3406
+
3407
+ /**
3408
+ * If declared, the dropdown displays a chevron on the right.
3409
+ * @attr {Boolean} chevron
3410
+ */
3411
+ chevron: {
3412
+ type: Boolean,
3413
+ reflect: true
3414
+ },
3415
+
3416
+ /**
3417
+ * If declared, the dropdown will be styled with the common theme.
3418
+ */
3419
+ common: {
3420
+ type: Boolean,
3421
+ reflect: true
3422
+ },
3423
+
3424
+ /**
3425
+ * If declared, the dropdown is not interactive.
3426
+ */
3427
+ disabled: {
3428
+ type: Boolean,
3429
+ reflect: true
3430
+ },
3431
+
3432
+ /**
3433
+ * @private
3434
+ */
3435
+ dropdownWidth: {
3436
+ type: Number
3437
+ },
3438
+
3439
+ /**
3440
+ * If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
3441
+ */
3442
+ error: {
3443
+ type: Boolean,
3444
+ reflect: true
3445
+ },
3446
+
3447
+ /**
3448
+ * If declared, the bib will display when focus is applied to the trigger.
3449
+ */
3450
+ focusShow: {
3451
+ type: Boolean,
3452
+ reflect: true
3453
+ },
3454
+
3455
+ /**
3456
+ * Makes the trigger to be full width of its parent container.
3457
+ */
3458
+ fluid: {
3459
+ type: Boolean,
3460
+ reflect: true
3461
+ },
3462
+
3463
+ /**
3464
+ * If declared, will apply padding around trigger slot content.
3465
+ */
3466
+ inset: {
3467
+ type: Boolean,
3468
+ reflect: true
3469
+ },
3470
+
3471
+ /**
3472
+ * If true, the dropdown bib is displayed.
3473
+ */
3474
+ isPopoverVisible: {
3475
+ type: Boolean
3476
+ },
3477
+
3478
+ /**
3479
+ * If true, the dropdown bib is taking the fullscreen when it's open
3480
+ */
3481
+ isBibFullscreen: {
3482
+ type: Boolean,
3483
+ reflect: true,
3484
+ },
3485
+
3486
+ /**
3487
+ * If declared, the trigger will toggle the dropdown on mouseover/mouseout.
3488
+ */
3489
+ hoverToggle: {
3490
+ type: Boolean,
3491
+ reflect: true
3492
+ },
3493
+
3494
+ /**
3495
+ * @private
3496
+ */
3497
+ hasTriggerContent: {
3498
+ type: Boolean
3499
+ },
3500
+
3501
+ /**
3502
+ * Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
3503
+ */
3504
+ fullscreenBreakpoint: {
3505
+ type: String,
3506
+ reflect: true
3507
+ },
3508
+
3509
+ /**
3510
+ * If declared, the popover and trigger will be set to the same width.
3511
+ */
3512
+ matchWidth: {
3513
+ type: Boolean,
3514
+ reflect: true
3515
+ },
3516
+
3517
+ /**
3518
+ * If declared, the dropdown will not hide when moving focus outside the element.
3519
+ */
3520
+ noHideOnThisFocusLoss: {
3521
+ type: Boolean,
3522
+ reflect: true
3523
+ },
3524
+
3525
+ /**
3526
+ * If declared, the trigger will only show the dropdown bib.
3527
+ */
3528
+ noToggle: {
3529
+ type: Boolean,
3530
+ reflect: true
3531
+ },
3532
+
3533
+ onSlotChange: {
3534
+ type: Function,
3535
+ reflect: false
3536
+ },
3537
+
3538
+ /**
3539
+ * @private
3540
+ */
3541
+ placement: {
3542
+ type: String
3543
+ },
3544
+
3545
+ /**
3546
+ * If declared, will apply border-radius to trigger and default slots.
3547
+ */
3548
+ rounded: {
3549
+ type: Boolean,
3550
+ reflect: true
3551
+ },
3552
+
3553
+ /**
3554
+ * @private
3555
+ */
3556
+ tabIndex: {
3557
+ type: Number
3558
+ }
3559
+ };
3560
+ }
3561
+
3562
+ static get styles() {
3563
+ return [
3564
+ colorCss$1,
3565
+ styleCss$1,
3566
+ tokensCss$1
3567
+ ];
3568
+ }
3569
+
3570
+ /**
3571
+ * This will register this element with the browser.
3572
+ * @param {string} [name="auro-dropdown"] - The name of element that you want to register to.
3573
+ *
3574
+ * @example
3575
+ * AuroDropdown.register("custom-dropdown") // this will register this element to <custom-dropdown/>
3576
+ *
3577
+ */
3578
+ static register(name = "auro-dropdown") {
3579
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
3580
+ }
3581
+
3582
+ connectedCallback() {
3583
+ super.connectedCallback();
3584
+ }
3585
+
3586
+ disconnectedCallback() {
3587
+ super.disconnectedCallback();
3588
+ }
3589
+
3590
+ updated(changedProperties) {
3591
+ this.floater.handleUpdate(changedProperties);
3592
+
3593
+ if (changedProperties.has('fullscreenBreakpoint')) {
3594
+ this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
3595
+ }
3596
+
3597
+ // when trigger's content is changed without any attribute or node change,
3598
+ // `requestUpdate` needs to be called to update hasTriggerContnet
3599
+ if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
3600
+ this.handleTriggerContentSlotChange();
3601
+ }
3602
+ }
3603
+
3604
+ firstUpdated() {
3605
+ this.floater.configure(this, 'auroDropdown');
3606
+ this.bibContent = this.floater.element.bib;
3607
+
3608
+ // Add the tag name as an attribute if it is different than the component name
3609
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
3610
+ }
3611
+
3612
+ /**
3613
+ * Exposes CSS parts for styling from parent components.
3614
+ * @returns {void}
3615
+ */
3616
+ exposeCssParts() {
3617
+ this.setAttribute('exportparts', 'trigger:dropdownTrigger, chevron:dropdownChevron, helpText:dropdownHelpText, size:dropdownSize');
3618
+ }
3619
+
3620
+ /**
3621
+ * Determines if content is within a custom slot.
3622
+ * @private
3623
+ * @param {HTMLElement} element - The element to check.
3624
+ * @returns {Boolean}
3625
+ */
3626
+ isCustomSlotContent(element) {
3627
+ let currentElement = element;
3628
+
3629
+ let inCustomSlot = false;
3630
+
3631
+ while (currentElement) {
3632
+ currentElement = currentElement.parentElement;
3633
+
3634
+ if (currentElement && currentElement.hasAttribute('slot')) {
3635
+ inCustomSlot = true;
3636
+ break;
3637
+ }
3638
+ }
3639
+
3640
+ return inCustomSlot;
3641
+ }
3642
+
3643
+ /**
3644
+ * Determines if the element or any children are focusable.
3645
+ * @private
3646
+ * @param {HTMLElement} element - Element to check.
3647
+ * @returns {Boolean} - True if the element or any children are focusable.
3648
+ */
3649
+ containsFocusableElement(element) {
3650
+ this.showTriggerBorders = true;
3651
+
3652
+ const nodes = [
3653
+ element,
3654
+ ...element.children
3655
+ ];
3656
+
3657
+ const focusableElements = [
3658
+ 'a',
3659
+ 'auro-hyperlink',
3660
+ 'button',
3661
+ 'auro-button',
3662
+ 'input',
3663
+ 'auro-input',
3664
+ ];
3665
+
3666
+ const focusableElementsThatNeedBorders = ['auro-input'];
3667
+
3668
+ const result = nodes.some((node) => {
3669
+ const tagName = node.tagName.toLowerCase();
3670
+
3671
+ if (node.tabIndex > -1) {
3672
+ return true;
3673
+ }
3674
+
3675
+ if (focusableElements.includes(tagName)) {
3676
+ if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
3677
+ return true;
3678
+ }
3679
+ if (!node.hasAttribute('disabled')) {
3680
+ return true;
3681
+ }
3682
+ }
3683
+
3684
+ if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
3685
+ return true;
3686
+ }
3687
+
3688
+ return false;
3689
+ });
3690
+
3691
+ if (result) {
3692
+ this.showTriggerBorders = !nodes.some((node) => {
3693
+ const tagName = node.tagName.toLowerCase();
3694
+ return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
3695
+ });
3696
+ }
3697
+
3698
+ return result;
3699
+ }
3700
+
3701
+ /**
3702
+ * Handles changes to the trigger content slot and updates related properties.
3703
+ *
3704
+ * It first updates the floater settings
3705
+ * Then, it retrieves the assigned nodes from the event target and checks if any of
3706
+ * the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
3707
+ *
3708
+ * @private
3709
+ * @method handleTriggerContentSlotChange
3710
+ * @param {Event} event - Native slotchange event.
3711
+ * @returns {void}
3712
+ */
3713
+ handleTriggerContentSlotChange(event) {
3714
+ this.floater.handleTriggerTabIndex();
3715
+
3716
+ const triggerContentNodes = this.shadowRoot.querySelector('.triggerContent slot').assignedNodes();
3717
+
3718
+ triggerContentNodes.forEach((node) => {
3719
+ if (!this.triggerContentFocusable) {
3720
+ this.triggerContentFocusable = this.containsFocusableElement(node);
3721
+ }
3722
+ });
3723
+
3724
+ const trigger = this.shadowRoot.querySelector('#trigger');
3725
+
3726
+ if (!this.triggerContentFocusable) {
3727
+ trigger.setAttribute('tabindex', '0');
3728
+ trigger.setAttribute('role', 'button');
3729
+ } else {
3730
+ trigger.removeAttribute('tabindex');
3731
+ trigger.removeAttribute('role');
3732
+ }
3733
+
3734
+ if (event) {
3735
+ this.triggerNode = event.target;
3736
+ this.triggerContentSlot = event.target.assignedNodes();
3737
+ }
3738
+
3739
+ if (this.triggerContentSlot) {
3740
+ this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
3741
+ if (slot.textContent.trim()) {
3742
+ return true;
3743
+ }
3744
+ const slotInSlot = slot.querySelector('slot');
3745
+ if (!slotInSlot) {
3746
+ return false;
3747
+ }
3748
+ const slotsInSlotNodes = slotInSlot.assignedNodes();
3749
+ return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
3750
+ });
3751
+ } else {
3752
+ this.hasTriggerContent = false;
3753
+ }
3754
+ }
3755
+
3756
+ /**
3757
+ * Handles the default slot change event and updates the content.
3758
+ *
3759
+ * This method retrieves all nodes assigned to the default slot of the event target and appends them
3760
+ * to the `bibContent` element. If a callback function `onSlotChange` is defined, it is invoked to
3761
+ * notify about the slot change.
3762
+ *
3763
+ * @private
3764
+ * @method handleDefaultSlot
3765
+ * @param {Event} event - The event object representing the slot change.
3766
+ * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
3767
+ */
3768
+ handleDefaultSlot(event) {
3769
+ [...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
3770
+
3771
+ if (this.onSlotChange) {
3772
+ this.onSlotChange();
3773
+ }
3774
+ }
3775
+
3776
+ // function that renders the HTML and CSS into the scope of the component
3777
+ render() {
3778
+ return u$3`
3779
+ <div>
3780
+ <div
3781
+ id="trigger"
3782
+ class="trigger"
3783
+ part="trigger"
3784
+ aria-labelledby="triggerLabel"
3785
+ tabindex="${this.tabIndex}"
3786
+ ?showBorder="${this.showTriggerBorders}"
3787
+ >
3788
+ <div class="triggerContentWrapper">
3789
+ <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
3790
+ <slot name="label"></slot>
3791
+ </label>
3792
+ <div class="triggerContent">
3793
+ <slot
3794
+ name="trigger"
3795
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
3796
+ </div>
3797
+ </div>
3798
+ ${this.chevron || this.common ? u$3`
3799
+ <div
3800
+ id="showStateIcon"
3801
+ part="chevron">
3802
+ <${this.iconTag}
3803
+ category="interface"
3804
+ name="chevron-down"
3805
+ customColor
3806
+ ?disabled=${this.disabled}
3807
+ >
3808
+ </${this.iconTag}>
3809
+ </div>
3810
+ ` : undefined }
3811
+ </div>
3812
+ <${this.helpTextTag} part="helpText" ?error="${this.error}">
3813
+ <slot name="helpText"></slot>
3814
+ </${this.helpTextTag}>
3815
+ <div class="slotContent">
3816
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
3817
+ </div>
3818
+ <div id="bibSizer" part="size"></div>
3819
+ <${this.dropdownBibTag}
3820
+ id="bib"
3821
+ role="tooltip"
3822
+ ?isfullscreen="${this.isBibFullscreen}"
3823
+ ?common="${this.common}"
3824
+ ?rounded="${this.common || this.rounded}"
3825
+ ?inset="${this.common || this.inset}">
3826
+ </${this.dropdownBibTag}>
3827
+ </div>
3828
+ `;
3829
+ }
3830
+ }
3831
+
3832
+ var dropdownVersion = '3.0.0';
3833
+
3834
+ /**
3835
+ * @license
3836
+ * Copyright 2019 Google LLC
3837
+ * SPDX-License-Identifier: BSD-3-Clause
3838
+ */
3839
+ const t$2=globalThis,e$4=t$2.ShadowRoot&&(void 0===t$2.ShadyCSS||t$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$4=new WeakMap;let n$3 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$4&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$4.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$4.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$3("string"==typeof t?t:t+"",void 0,s$2),i$5=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$3(o,t,s$2)},S$1=(s,o)=>{if(e$4)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$2.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$4?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
3840
+
3841
+ /**
3842
+ * @license
3843
+ * Copyright 2017 Google LLC
3844
+ * SPDX-License-Identifier: BSD-3-Clause
3845
+ */const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:r$2,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$3,getPrototypeOf:n$2}=Object,a$2=globalThis,c$1=a$2.trustedTypes,l$2=c$1?c$1.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$4(t,s),y$1={attribute:true,type:String,converter:u$2,reflect:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$1){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$3(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...h$1(t),...o$3(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d$1("elementProperties")]=new Map,b[d$1("finalized")]=new Map,p$1?.({ReactiveElement:b}),(a$2.reactiveElementVersions??=[]).push("2.0.4");
3846
+
3847
+ /**
3848
+ * @license
3849
+ * Copyright 2017 Google LLC
3850
+ * SPDX-License-Identifier: BSD-3-Clause
3851
+ */
3852
+ const t$1=globalThis,i$3=t$1.trustedTypes,s$1=i$3?i$3.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$2="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o$2="?"+h,n$1=`<${o$2}>`,r$1=document,l$1=()=>r$1.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$1=Array.isArray,u$1=t=>a$1(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$1.createTreeWalker(r$1,129);function P(t,i){if(!a$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$1?s$1.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?"!--"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):void 0!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f?s+n$1:d>=0?(o.push(a),s.slice(0,d)+e$2+s.slice(d)+h+x):s+h+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$2)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i$3?i$3.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$1()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$1());}}}else if(8===r.nodeType)if(r.data===o$2)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1;}c++;}}static createElement(t,i){const s=r$1.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$1).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$1,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$1(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N(t)),i}k(t){a$1(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$1()),this.O(l$1()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?void 0:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t);}}const j=t$1.litHtmlPolyfillSupport;j?.(N,R),(t$1.litHtmlVersions??=[]).push("3.2.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$1(),t),t,void 0,s??{});}return h._$AI(t),h};
3853
+
3854
+ /**
3855
+ * @license
3856
+ * Copyright 2017 Google LLC
3857
+ * SPDX-License-Identifier: BSD-3-Clause
3858
+ */class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}r._$litElement$=true,r["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r});const i$2=globalThis.litElementPolyfillSupport;i$2?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
3859
+
3860
+ i$5`:root{--ds-asset-font-circular-family-name: "AS Circular";--ds-asset-font-circular-filename: "ASCircularWeb";--ds-asset-font-circular-weight-light: "-Light";--ds-asset-font-circular-weight-medium: "-Medium";--ds-asset-font-circular-weight-book: "-Book";--ds-border-radius: 0.375rem;--ds-size-25: 0.125rem;--ds-size-50: 0.25rem;--ds-size-75: 0.375rem;--ds-size-100: 0.5rem;--ds-size-150: 0.75rem;--ds-size-200: 1rem;--ds-size-250: 1.25rem;--ds-size-300: 1.5rem;--ds-size-400: 2rem;--ds-size-500: 2.5rem;--ds-size-600: 3rem;--ds-size-700: 3.5rem;--ds-size-800: 4rem;--ds-size-900: 4.5rem;--ds-size-1000: 5rem;--ds-unitless-scale-20: 0.25;--ds-unitless-scale-50: 0.5;--ds-unitless-scale-100: 1;--ds-unitless-scale-140: 1.4;--ds-unitless-scale-150: 1.5;--ds-unitless-scale-200: 2;--ds-unitless-scale-300: 3;--ds-unitless-scale-350: 3.5;--ds-animation-default-property: all;--ds-animation-default-duration: 0.3s;--ds-animation-default-timing: ease-out;--ds-depth-overlay: 200;--ds-depth-modal: 300;--ds-depth-tooltip: 400;--ds-elevation-100: 0px 0px 5px rgba(0, 0, 0, 0.15);--ds-elevation-200: 0px 0px 10px rgba(0, 0, 0, 0.15);--ds-elevation-300: 0px 0px 15px rgba(0, 0, 0, 0.2);--ds-grid-breakpoint-xs: 320px;--ds-grid-breakpoint-sm: 576px;--ds-grid-breakpoint-md: 768px;--ds-grid-breakpoint-lg: 1024px;--ds-grid-breakpoint-xl: 1232px;--ds-grid-column-xs: 6;--ds-grid-column-sm: 12;--ds-grid-column-md: 12;--ds-grid-column-lg: 12;--ds-grid-column-xl: 12;--ds-grid-gutter-xs: 0.5rem;--ds-grid-gutter-sm: 1rem;--ds-grid-gutter-md: 1.5rem;--ds-grid-gutter-lg: 1.5rem;--ds-grid-gutter-xl: 2rem;--ds-grid-margin-xs: 1rem;--ds-grid-margin-sm: 1rem;--ds-grid-margin-md: 1.5rem;--ds-grid-margin-lg: 2rem;--ds-grid-margin-xl: 2rem;--ds-font-family-default: "AS Circular", Helvetica Neue, Arial, sans-serif;--ds-font-family-mono: Menlo, Monaco, Consolas, "Courier New", monospace;--ds-text-heading-300-weight: 300;--ds-text-heading-300-px: 18px;--ds-text-heading-300-size: 1.125rem;--ds-text-heading-300-height: 1.625rem;--ds-text-heading-300-height-px: 26px;--ds-text-heading-400-weight: 300;--ds-text-heading-400-px: 20px;--ds-text-heading-400-size: 1.25rem;--ds-text-heading-400-height: 1.625rem;--ds-text-heading-400-height-px: 26px;--ds-text-heading-500-weight: 300;--ds-text-heading-500-px-breakpoint-sm: 22px;--ds-text-heading-500-px-breakpoint-md: 24px;--ds-text-heading-500-px-breakpoint-lg: 24px;--ds-text-heading-500-size-breakpoint-sm: 1.375rem;--ds-text-heading-500-size-breakpoint-md: 1.5rem;--ds-text-heading-500-size-breakpoint-lg: 1.5rem;--ds-text-heading-500-height-breakpoint-sm: 1.625rem;--ds-text-heading-500-height-breakpoint-px-sm: 26px;--ds-text-heading-500-height-breakpoint-md: 1.875rem;--ds-text-heading-500-height-breakpoint-px-md: 30px;--ds-text-heading-500-height-breakpoint-lg: 2rem;--ds-text-heading-500-height-breakpoint-px-lg: 32px;--ds-text-heading-600-weight: 300;--ds-text-heading-600-px-breakpoint-sm: 26px;--ds-text-heading-600-px-breakpoint-md: 28px;--ds-text-heading-600-px-breakpoint-lg: 28px;--ds-text-heading-600-size-breakpoint-sm: 1.625rem;--ds-text-heading-600-size-breakpoint-md: 1.75rem;--ds-text-heading-600-size-breakpoint-lg: 1.75rem;--ds-text-heading-600-height-breakpoint-sm: 1.875rem;--ds-text-heading-600-height-breakpoint-px-sm: 30px;--ds-text-heading-600-height-breakpoint-md: 2.125rem;--ds-text-heading-600-height-breakpoint-px-md: 34px;--ds-text-heading-600-height-breakpoint-lg: 2.25rem;--ds-text-heading-600-height-breakpoint-px-lg: 36px;--ds-text-heading-700-weight: 500;--ds-text-heading-700-px-breakpoint-sm: 28px;--ds-text-heading-700-px-breakpoint-md: 32px;--ds-text-heading-700-px-breakpoint-lg: 36px;--ds-text-heading-700-size-breakpoint-sm: 1.75rem;--ds-text-heading-700-size-breakpoint-md: 2rem;--ds-text-heading-700-size-breakpoint-lg: 2.25rem;--ds-text-heading-700-height-breakpoint-sm: 2.125rem;--ds-text-heading-700-height-breakpoint-px-sm: 34px;--ds-text-heading-700-height-breakpoint-md: 2.375rem;--ds-text-heading-700-height-breakpoint-px-md: 38px;--ds-text-heading-700-height-breakpoint-lg: 2.75rem;--ds-text-heading-700-height-breakpoint-px-lg: 44px;--ds-text-heading-800-weight: 500;--ds-text-heading-800-px-breakpoint-sm: 32px;--ds-text-heading-800-px-breakpoint-md: 36px;--ds-text-heading-800-px-breakpoint-lg: 40px;--ds-text-heading-800-size-breakpoint-sm: 2rem;--ds-text-heading-800-size-breakpoint-md: 2.25rem;--ds-text-heading-800-size-breakpoint-lg: 2.5rem;--ds-text-heading-800-height-breakpoint-sm: 2.375rem;--ds-text-heading-800-height-breakpoint-px-sm: 38px;--ds-text-heading-800-height-breakpoint-md: 2.625rem;--ds-text-heading-800-height-breakpoint-px-md: 42px;--ds-text-heading-800-height-breakpoint-lg: 3rem;--ds-text-heading-800-height-breakpoint-px-lg: 48px;--ds-text-heading-default-weight: 500;--ds-text-heading-default-margin: 0;--ds-text-heading-default-spacing: -0.2px;--ds-text-heading-medium-weight: 300;--ds-text-heading-display-weight: 100;--ds-text-heading-display-px-breakpoint-sm: 44px;--ds-text-heading-display-px-breakpoint-md: 48px;--ds-text-heading-display-px-breakpoint-lg: 56px;--ds-text-heading-display-size-breakpoint-sm: 2.75rem;--ds-text-heading-display-size-breakpoint-md: 3rem;--ds-text-heading-display-size-breakpoint-lg: 3.5rem;--ds-text-heading-display-height-breakpoint-sm: 3.375rem;--ds-text-heading-display-height-breakpoint-px-sm: 54px;--ds-text-heading-display-height-breakpoint-md: 3.75rem;--ds-text-heading-display-height-breakpoint-px-md: 60px;--ds-text-heading-display-height-breakpoint-lg: 4.25rem;--ds-text-heading-display-height-breakpoint-px-lg: 68px;--ds-text-body-default-weight: 500;--ds-text-body-size-xxs: 0.625rem;--ds-text-body-size-xs: 0.75rem;--ds-text-body-size-sm: 0.875rem;--ds-text-body-size-default: 1rem;--ds-text-body-size-lg: 1.125rem;--ds-text-body-height-xs: 1rem;--ds-text-body-height-sm: 1.25rem;--ds-text-body-height-default: 1.5rem;--ds-text-body-height-lg: 1.625rem;--ds-color-alert-notification-default: #0074c8;--ds-color-alert-warning-default: #de750c;--ds-color-alert-error-default: #df0b37;--ds-color-alert-success-default: #00805d;--ds-color-alert-advisory-default: #fff0cd;--ds-color-alert-bkg-success-default: #ddf6e8;--ds-color-alert-bkg-error-default: #ffedf1;--ds-color-background-primary-100-default: #ffffff;--ds-color-background-primary-100-inverse: #0e2b4f;--ds-color-background-primary-200-default: #f7f7f7;--ds-color-background-primary-200-inverse: #194069;--ds-color-background-primary-300-default: #e4e8ec;--ds-color-background-primary-300-inverse: #265688;--ds-color-background-primary-400-default: #dddddd;--ds-color-background-primary-400-inverse: #326aa5;--ds-color-background-success-default: #eef8f5;--ds-color-background-success-inverse: #173c30;--ds-color-background-error-default: #fff4f4;--ds-color-background-error-inverse: #74110e;--ds-color-background-warning-default: #fef8e9;--ds-color-background-warning-inverse: #5d4514;--ds-color-background-info-default: #f0f7fd;--ds-color-background-info-inverse: #193d73;--ds-color-background-subtle-default: #f7f8fa;--ds-color-background-subtle-inverse: #2a2a2a;--ds-color-background-accent-default: #ebfafd;--ds-color-background-accent-inverse: #275b72;--ds-color-background-emphasis-default: #c9e0f7;--ds-color-background-emphasis-inverse: #225296;--ds-color-background-scrimmed-default: rgba(0, 0, 0, 0.5);--ds-color-background-lightest: #ffffff;--ds-color-background-lighter: #f7f7f7;--ds-color-background-darker: #01426a;--ds-color-background-darkest: #00274a;--ds-color-background-gradient-default: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));--ds-color-base-white: #ffffff;--ds-color-base-white-100: rgba(255, 255, 255, 0.03);--ds-color-base-white-200: rgba(255, 255, 255, 0.06);--ds-color-base-white-300: rgba(255, 255, 255, 0.12);--ds-color-base-white-400: rgba(255, 255, 255, 0.25);--ds-color-base-white-500: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-50: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-40: rgba(255, 255, 255, 0.4);--ds-color-base-white-opacity-0: rgba(255, 255, 255, 0);--ds-color-base-black: #000000;--ds-color-base-black-100: rgba(0, 0, 0, 0.03);--ds-color-base-black-200: rgba(0, 0, 0, 0.06);--ds-color-base-black-300: rgba(0, 0, 0, 0.12);--ds-color-base-black-400: rgba(0, 0, 0, 0.25);--ds-color-base-black-500: rgba(0, 0, 0, 0.5);--ds-color-base-black-opacity-15: rgba(0, 0, 0, 0.15);--ds-color-base-blue-100: #f0f7fd;--ds-color-base-blue-200: #c9e0f7;--ds-color-base-blue-300: #a0c9f1;--ds-color-base-blue-400: #79b2ec;--ds-color-base-blue-500: #5398e6;--ds-color-base-blue-600: #3b7fd2;--ds-color-base-blue-700: #2c67b5;--ds-color-base-blue-800: #225296;--ds-color-base-blue-900: #193d73;--ds-color-base-blue-1000: #102a51;--ds-color-base-cyan-100: #ebfafd;--ds-color-base-cyan-200: #a8e9f7;--ds-color-base-cyan-300: #6ad5ef;--ds-color-base-cyan-400: #56bbde;--ds-color-base-cyan-500: #4aa2c7;--ds-color-base-cyan-600: #3e89aa;--ds-color-base-cyan-700: #32718e;--ds-color-base-cyan-800: #275b72;--ds-color-base-cyan-900: #1d4658;--ds-color-base-cyan-1000: #12303d;--ds-color-base-error-100: #fff4f4;--ds-color-base-error-200: #f9aca6;--ds-color-base-error-300: #f16359;--ds-color-base-error-400: #cc1816;--ds-color-base-error-500: #74110e;--ds-color-base-gray-100: #f7f7f7;--ds-color-base-gray-200: #d4d4d4;--ds-color-base-gray-300: #c5c5c5;--ds-color-base-gray-400: #adadad;--ds-color-base-gray-500: #959595;--ds-color-base-gray-600: #7e7e7e;--ds-color-base-gray-700: #676767;--ds-color-base-gray-800: #525252;--ds-color-base-gray-900: #3d3d3d;--ds-color-base-gray-1000: #2a2a2a;--ds-color-base-green-100: #f3faf7;--ds-color-base-green-200: #000000;--ds-color-base-green-300: #addbca;--ds-color-base-green-400: #7ec6ac;--ds-color-base-green-500: #51ae8c;--ds-color-base-green-600: #459578;--ds-color-base-green-700: #3a7d64;--ds-color-base-green-800: #306854;--ds-color-base-green-900: #285545;--ds-color-base-green-1000: #1f4436;--ds-color-base-lime-100: #f5fbeb;--ds-color-base-lime-200: #d8efb4;--ds-color-base-lime-300: #badd81;--ds-color-base-lime-400: #a2c270;--ds-color-base-lime-500: #8ca761;--ds-color-base-lime-600: #778f53;--ds-color-base-lime-700: #647845;--ds-color-base-lime-800: #53643a;--ds-color-base-lime-900: #44522f;--ds-color-base-lime-1000: #364126;--ds-color-base-navy-100: #f2f7fb;--ds-color-base-navy-200: #cfe0ef;--ds-color-base-navy-300: #acc9e2;--ds-color-base-navy-400: #89b2d4;--ds-color-base-navy-500: #6899c6;--ds-color-base-navy-600: #4a82b7;--ds-color-base-navy-700: #326aa5;--ds-color-base-navy-800: #265688;--ds-color-base-navy-900: #194069;--ds-color-base-navy-1000: #0e2b4f;--ds-color-base-neutral-100: #f7f8fa;--ds-color-base-neutral-200: #e4e8ec;--ds-color-base-neutral-300: #ccd2db;--ds-color-base-neutral-400: #afb9c6;--ds-color-base-neutral-500: #939fad;--ds-color-base-neutral-600: #7e8894;--ds-color-base-neutral-700: #6a717c;--ds-color-base-neutral-800: #585e67;--ds-color-base-neutral-900: #484d55;--ds-color-base-neutral-1000: #393d43;--ds-color-base-pink-100: #fff7f8;--ds-color-base-pink-200: #fde0e6;--ds-color-base-pink-300: #fcc2ce;--ds-color-base-pink-400: #fa9db0;--ds-color-base-pink-500: #f7738e;--ds-color-base-pink-600: #e45472;--ds-color-base-pink-700: #bf475f;--ds-color-base-pink-800: #a03b50;--ds-color-base-pink-900: #833142;--ds-color-base-pink-1000: #692734;--ds-color-base-purple-100: #fbf8fe;--ds-color-base-purple-200: #ede3fd;--ds-color-base-purple-300: #ddc9fb;--ds-color-base-purple-400: #c9a9f8;--ds-color-base-purple-500: #b588f5;--ds-color-base-purple-600: #a268f3;--ds-color-base-purple-700: #8d47f0;--ds-color-base-purple-800: #7633d7;--ds-color-base-purple-900: #622ab2;--ds-color-base-purple-1000: #4e228d;--ds-color-base-red-100: #fef7f5;--ds-color-base-red-200: #fae2da;--ds-color-base-red-300: #f5c7b8;--ds-color-base-red-400: #f0a68d;--ds-color-base-red-500: #e9815e;--ds-color-base-red-600: #e35c2f;--ds-color-base-red-700: #d03a08;--ds-color-base-red-800: #ae3007;--ds-color-base-red-900: #902806;--ds-color-base-red-1000: #732005;--ds-color-base-success-100: #eef8f5;--ds-color-base-success-200: #8eceb9;--ds-color-base-success-300: #40a080;--ds-color-base-success-400: #0b6f4d;--ds-color-base-success-500: #173c30;--ds-color-base-turquoise-100: #f7fafa;--ds-color-base-turquoise-200: #dfe9ea;--ds-color-base-turquoise-300: #c2d5d6;--ds-color-base-turquoise-400: #9fbdbe;--ds-color-base-turquoise-500: #7ba5a6;--ds-color-base-turquoise-600: #5c8f91;--ds-color-base-turquoise-700: #3d7a7d;--ds-color-base-turquoise-800: #21686a;--ds-color-base-turquoise-900: #085659;--ds-color-base-turquoise-1000: #004447;--ds-color-base-yellow-100: #fff9df;--ds-color-base-yellow-200: #ffe87e;--ds-color-base-yellow-300: #f9ce06;--ds-color-base-yellow-400: #d6b622;--ds-color-base-yellow-500: #b49d35;--ds-color-base-yellow-600: #96873e;--ds-color-base-yellow-700: #7c7140;--ds-color-base-yellow-800: #665e3d;--ds-color-base-yellow-900: #524e38;--ds-color-base-yellow-1000: #403d30;--ds-color-base-warning-100: #fef8e9;--ds-color-base-warning-200: #f2c153;--ds-color-base-warning-300: #c49432;--ds-color-base-warning-400: #8e6b22;--ds-color-base-warning-500: #5d4514;--ds-color-state-error-100: #ff999b;--ds-color-state-error-500: #df0b37;--ds-color-state-success-100: #69cf96;--ds-color-state-success-500: #00805d;--ds-color-state-warning-500: #de750c;--ds-color-border-primary-default: #585e67;--ds-color-border-primary-inverse: #afb9c6;--ds-color-border-secondary-default: #939fad;--ds-color-border-secondary-inverse: #7e8894;--ds-color-border-tertiary-default: #dddddd;--ds-color-border-tertiary-inverse: #676767;--ds-color-border-error-default: #cc1816;--ds-color-border-error-inverse: #f9aca6;--ds-color-border-divider-default: rgba(0, 0, 0, 0.12);--ds-color-border-divider-inverse: rgba(255, 255, 255, 0.25);--ds-color-border-subtle-default: #f0f7fd;--ds-color-border-subtle-inverse: #326aa5;--ds-color-border-emphasis-default: #194069;--ds-color-border-emphasis-inverse: #f2f7fb;--ds-color-border-accent-default: #badd81;--ds-color-border-accent-inverse: #a2c270;--ds-color-border-success-default: #0b6f4d;--ds-color-border-success-inverse: #8eceb9;--ds-color-border-warning-default: #c49432;--ds-color-border-warning-inverse: #f2c153;--ds-color-border-info-default: #326aa5;--ds-color-border-info-inverse: #89b2d4;--ds-color-border-ui-default-default: #2c67b5;--ds-color-border-ui-default-inverse: #56bbde;--ds-color-border-ui-hover-default: #193d73;--ds-color-border-ui-hover-inverse: #a8e9f7;--ds-color-border-ui-active-default: #225296;--ds-color-border-ui-active-inverse: #6ad5ef;--ds-color-border-ui-focus-default: #2c67b5;--ds-color-border-ui-focus-inverse: #56bbde;--ds-color-border-ui-disabled-default: #adadad;--ds-color-border-ui-disabled-inverse: #7e7e7e;--ds-color-border-active-default: #0074c8;--ds-color-border-active-inverse: #00cff0;--ds-color-border-disabled-default: #d4d4d4;--ds-color-border-focus-default: #959595;--ds-color-brand-neutral-100: #f7f8fa;--ds-color-brand-neutral-200: #e4e8ec;--ds-color-brand-neutral-300: #ccd2db;--ds-color-brand-neutral-400: #afb9c6;--ds-color-brand-neutral-500: #939fad;--ds-color-brand-neutral-600: #7e8894;--ds-color-brand-neutral-700: #6a717c;--ds-color-brand-neutral-800: #585e67;--ds-color-brand-neutral-900: #484d55;--ds-color-brand-neutral-1000: #393d43;--ds-color-brand-gray-100: #f7f7f7;--ds-color-brand-gray-200: #dddddd;--ds-color-brand-gray-300: #c5c5c5;--ds-color-brand-gray-400: #adadad;--ds-color-brand-gray-500: #959595;--ds-color-brand-gray-600: #7e7e7e;--ds-color-brand-gray-700: #676767;--ds-color-brand-gray-800: #525252;--ds-color-brand-gray-900: #3d3d3d;--ds-color-brand-gray-1000: #2a2a2a;--ds-color-brand-red-100: #fef7f5;--ds-color-brand-red-200: #fae2da;--ds-color-brand-red-300: #f5c7b8;--ds-color-brand-red-400: #f0a68d;--ds-color-brand-red-500: #e9815e;--ds-color-brand-red-600: #e35c2f;--ds-color-brand-red-700: #d03a08;--ds-color-brand-red-800: #ae3007;--ds-color-brand-red-900: #902806;--ds-color-brand-red-1000: #732005;--ds-color-brand-yellow-100: #fff9df;--ds-color-brand-yellow-200: #ffe87e;--ds-color-brand-yellow-300: #f9ce06;--ds-color-brand-yellow-400: #d6b622;--ds-color-brand-yellow-500: #b49d35;--ds-color-brand-yellow-600: #96873e;--ds-color-brand-yellow-700: #7c7140;--ds-color-brand-yellow-800: #665e3d;--ds-color-brand-yellow-900: #524e38;--ds-color-brand-yellow-1000: #403d30;--ds-color-brand-lime-100: #f5fbeb;--ds-color-brand-lime-200: #d8efb4;--ds-color-brand-lime-300: #badd81;--ds-color-brand-lime-400: #a2c270;--ds-color-brand-lime-500: #8ca761;--ds-color-brand-lime-600: #778f53;--ds-color-brand-lime-700: #647845;--ds-color-brand-lime-800: #53643a;--ds-color-brand-lime-900: #44522f;--ds-color-brand-lime-1000: #364126;--ds-color-brand-green-100: #f3faf7;--ds-color-brand-green-200: #d4ece4;--ds-color-brand-green-300: #addbca;--ds-color-brand-green-400: #7ec6ac;--ds-color-brand-green-500: #51ae8c;--ds-color-brand-green-600: #459578;--ds-color-brand-green-700: #3a7d64;--ds-color-brand-green-800: #306854;--ds-color-brand-green-900: #285545;--ds-color-brand-green-1000: #1f4436;--ds-color-brand-turquoise-100: #f7fafa;--ds-color-brand-turquoise-200: #dfe9ea;--ds-color-brand-turquoise-300: #c2d5d6;--ds-color-brand-turquoise-400: #9fbdbe;--ds-color-brand-turquoise-500: #7ba5a6;--ds-color-brand-turquoise-600: #5c8f91;--ds-color-brand-turquoise-700: #3d7a7d;--ds-color-brand-turquoise-800: #21686a;--ds-color-brand-turquoise-900: #085659;--ds-color-brand-turquoise-1000: #004447;--ds-color-brand-cyan-100: #ebfafd;--ds-color-brand-cyan-200: #a8e9f7;--ds-color-brand-cyan-300: #6ad5ef;--ds-color-brand-cyan-400: #56bbde;--ds-color-brand-cyan-500: #4aa2c7;--ds-color-brand-cyan-600: #3e89aa;--ds-color-brand-cyan-700: #32718e;--ds-color-brand-cyan-800: #275b72;--ds-color-brand-cyan-900: #1d4658;--ds-color-brand-cyan-1000: #12303d;--ds-color-brand-blue-100: #f0f7fd;--ds-color-brand-blue-200: #c9e0f7;--ds-color-brand-blue-300: #a0c9f1;--ds-color-brand-blue-400: #79b2ec;--ds-color-brand-blue-500: #5398e6;--ds-color-brand-blue-600: #3b7fd2;--ds-color-brand-blue-700: #2c67b5;--ds-color-brand-blue-800: #225296;--ds-color-brand-blue-900: #193d73;--ds-color-brand-blue-1000: #102a51;--ds-color-brand-navy-100: #f2f7fb;--ds-color-brand-navy-200: #cfe0ef;--ds-color-brand-navy-300: #acc9e2;--ds-color-brand-navy-400: #89b2d4;--ds-color-brand-navy-500: #6899c6;--ds-color-brand-navy-600: #4a82b7;--ds-color-brand-navy-700: #326aa5;--ds-color-brand-navy-800: #265688;--ds-color-brand-navy-900: #194069;--ds-color-brand-navy-1000: #0e2b4f;--ds-color-brand-purple-100: #fbf8fe;--ds-color-brand-purple-200: #ede3fd;--ds-color-brand-purple-300: #ddc9fb;--ds-color-brand-purple-400: #c9a9f8;--ds-color-brand-purple-500: #b588f5;--ds-color-brand-purple-600: #a268f3;--ds-color-brand-purple-700: #8d47f0;--ds-color-brand-purple-800: #7633d7;--ds-color-brand-purple-900: #622ab2;--ds-color-brand-purple-1000: #4e228d;--ds-color-brand-pink-100: #fff7f8;--ds-color-brand-pink-200: #fde0e6;--ds-color-brand-pink-300: #fcc2ce;--ds-color-brand-pink-400: #fa9db0;--ds-color-brand-pink-500: #f7738e;--ds-color-brand-pink-600: #e45472;--ds-color-brand-pink-700: #bf475f;--ds-color-brand-pink-800: #a03b50;--ds-color-brand-pink-900: #833142;--ds-color-brand-pink-1000: #692734;--ds-color-brand-midnight-100: #c1daf0;--ds-color-brand-midnight-200: #569ed7;--ds-color-brand-midnight-300: #156fad;--ds-color-brand-midnight-400: #01426a;--ds-color-brand-midnight-500: #00274a;--ds-color-brand-atlas-100: #cde6ff;--ds-color-brand-atlas-200: #6bb7fb;--ds-color-brand-atlas-300: #2492eb;--ds-color-brand-atlas-400: #0074c8;--ds-color-brand-atlas-500: #054687;--ds-color-brand-atlas-400-opacity-20: rgba(0, 116, 200, 0.2);--ds-color-brand-breeze-100: #c0f7ff;--ds-color-brand-breeze-200: #5de3f7;--ds-color-brand-breeze-300: #00cff0;--ds-color-brand-breeze-400: #099dc5;--ds-color-brand-breeze-500: #0b5575;--ds-color-brand-breeze-300-opacity-30: rgba(0, 207, 240, 0.3);--ds-color-brand-tropical-100: #e2ffcd;--ds-color-brand-tropical-200: #d0fba6;--ds-color-brand-tropical-300: #c0e585;--ds-color-brand-tropical-400: #91be62;--ds-color-brand-tropical-500: #5e8741;--ds-color-brand-alpine-100: #bcaae6;--ds-color-brand-alpine-200: #9e73ea;--ds-color-brand-alpine-300: #8439ef;--ds-color-brand-alpine-400: #631db8;--ds-color-brand-alpine-500: #39115c;--ds-color-brand-flamingo-100: #ffebee;--ds-color-brand-flamingo-200: #ffc0ca;--ds-color-brand-flamingo-300: #ff94a7;--ds-color-brand-flamingo-400: #f65b7b;--ds-color-brand-flamingo-500: #b82b47;--ds-color-brand-canyon-100: #ffcab6;--ds-color-brand-canyon-200: #f99574;--ds-color-brand-canyon-300: #f26135;--ds-color-brand-canyon-400: #de3e09;--ds-color-brand-canyon-500: #b83302;--ds-color-brand-goldcoast-100: #fff0cd;--ds-color-brand-goldcoast-200: #ffdb67;--ds-color-brand-goldcoast-300: #ffd200;--ds-color-brand-goldcoast-400: #e5ad07;--ds-color-brand-goldcoast-500: #b88624;--ds-color-brand-goldgray-100: #c5c1bf;--ds-color-brand-goldgray-200: #726e6c;--ds-color-brand-gold-100: #ccbc94;--ds-color-brand-gold-200: #7f682e;--ds-color-brand-emerald: #139142;--ds-color-brand-sapphire: #015daa;--ds-color-brand-ruby: #a41d4a;--ds-color-brand-lounge: #01426a;--ds-color-brand-loungeplus: #53b390;--ds-color-container-accent-default: #f5fbeb;--ds-color-container-accent-inverse: #badd81;--ds-color-container-emphasis-default: #ebfafd;--ds-color-container-emphasis-inverse: #6ad5ef;--ds-color-container-error-default: #fff4f4;--ds-color-container-error-inverse: #74110e;--ds-color-container-info-default: #f0f7fd;--ds-color-container-info-inverse: #193d73;--ds-color-container-primary-default: #ffffff;--ds-color-container-primary-inverse: #0e2b4f;--ds-color-container-secondary-default: #f7f7f7;--ds-color-container-secondary-inverse: #194069;--ds-color-container-subtle-default: #f7f8fa;--ds-color-container-subtle-inverse: #393d43;--ds-color-container-success-default: #eef8f5;--ds-color-container-success-inverse: #173c30;--ds-color-container-tertiary-default: rgba(0, 0, 0, 0.03);--ds-color-container-tertiary-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-warning-default: #fef8e9;--ds-color-container-warning-inverse: #5d4514;--ds-color-container-ui-primary-active-default: #225296;--ds-color-container-ui-primary-active-inverse: #6ad5ef;--ds-color-container-ui-primary-default-default: #2c67b5;--ds-color-container-ui-primary-default-inverse: #56bbde;--ds-color-container-ui-primary-disabled-default: #a0c9f1;--ds-color-container-ui-primary-disabled-inverse: #275b72;--ds-color-container-ui-primary-focus-default: #2c67b5;--ds-color-container-ui-primary-focus-inverse: #56bbde;--ds-color-container-ui-primary-hover-default: #193d73;--ds-color-container-ui-primary-hover-inverse: #a8e9f7;--ds-color-container-ui-secondary-active-default: #f0f7fd;--ds-color-container-ui-secondary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-secondary-default-default: #ffffff;--ds-color-container-ui-secondary-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-disabled-default: #f7f7f7;--ds-color-container-ui-secondary-disabled-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-secondary-focus-default: #ffffff;--ds-color-container-ui-secondary-focus-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-hover-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-secondary-hover-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-active-default: rgba(0, 0, 0, 0.06);--ds-color-container-ui-tertiary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-tertiary-default-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-default-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-disabled-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-disabled-inverse: rgba(255, 255, 255, 0.25);--ds-color-container-ui-tertiary-focus-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-focus-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-hover-default: rgba(0, 0, 0, 0.12);--ds-color-container-ui-tertiary-hover-inverse: rgba(255, 255, 255, 0.25);--ds-color-icon-primary-default: #676767;--ds-color-icon-primary-inverse: #f7f7f7;--ds-color-icon-secondary-default: #7e8894;--ds-color-icon-secondary-inverse: #ccd2db;--ds-color-icon-tertiary-default: #afb9c6;--ds-color-icon-tertiary-inverse: #939fad;--ds-color-icon-emphasis-default: #2a2a2a;--ds-color-icon-emphasis-inverse: #ffffff;--ds-color-icon-accent-default: #a2c270;--ds-color-icon-accent-inverse: #badd81;--ds-color-icon-info-default: #326aa5;--ds-color-icon-info-inverse: #89b2d4;--ds-color-icon-error-default: #cc1816;--ds-color-icon-error-inverse: #f9aca6;--ds-color-icon-warning-default: #c49432;--ds-color-icon-warning-inverse: #f2c153;--ds-color-icon-success-default: #40a080;--ds-color-icon-success-inverse: #8eceb9;--ds-color-icon-subtle-default: #a0c9f1;--ds-color-icon-subtle-inverse: #326aa5;--ds-color-icon-ui-primary-default-default: #2c67b5;--ds-color-icon-ui-primary-default-inverse: #56bbde;--ds-color-icon-ui-primary-hover-default: #193d73;--ds-color-icon-ui-primary-hover-inverse: #a8e9f7;--ds-color-icon-ui-primary-active-default: #225296;--ds-color-icon-ui-primary-active-inverse: #6ad5ef;--ds-color-icon-ui-primary-disabled-default: #adadad;--ds-color-icon-ui-primary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-primary-focus-default: #2c67b5;--ds-color-icon-ui-primary-focus-inverse: #56bbde;--ds-color-icon-ui-secondary-active-default: #676767;--ds-color-icon-ui-secondary-active-inverse: #c5c5c5;--ds-color-icon-ui-secondary-default-default: #7e7e7e;--ds-color-icon-ui-secondary-default-inverse: #adadad;--ds-color-icon-ui-secondary-disabled-default: #adadad;--ds-color-icon-ui-secondary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-secondary-focus-default: #7e7e7e;--ds-color-icon-ui-secondary-focus-inverse: #adadad;--ds-color-icon-ui-secondary-hover-default: #525252;--ds-color-icon-ui-secondary-hover-inverse: #dddddd;--ds-color-icon-brand-red-default: #d03a08;--ds-color-icon-brand-red-inverse: #e9815e;--ds-color-icon-brand-yellow-default: #7c7140;--ds-color-icon-brand-yellow-inverse: #f9ce06;--ds-color-icon-brand-pink-default: #bf475f;--ds-color-icon-brand-pink-inverse: #f7738e;--ds-color-icon-brand-purple-default: #8d47f0;--ds-color-icon-brand-purple-inverse: #b588f5;--ds-color-icon-brand-lime-default: #647845;--ds-color-icon-brand-lime-inverse: #badd81;--ds-color-icon-brand-green-default: #3a7d64;--ds-color-icon-brand-green-inverse: #51ae8c;--ds-color-icon-brand-turquoise-default: #3d7a7d;--ds-color-icon-brand-turquoise-inverse: #7ba5a6;--ds-color-icon-brand-navy-default: #265688;--ds-color-icon-brand-navy-inverse: #6899c6;--ds-color-icon-brand-blue-default: #2c67b5;--ds-color-icon-brand-blue-inverse: #5398e6;--ds-color-icon-brand-cyan-default: #32718e;--ds-color-icon-brand-cyan-inverse: #6ad5ef;--ds-color-icon-brand-gray-default: #676767;--ds-color-icon-brand-gray-inverse: #c5c5c5;--ds-color-icon-brand-neutral-default: #6a717c;--ds-color-icon-brand-neutral-inverse: #afb9c6;--ds-color-icon-disabled-default: rgba(0, 0, 0, 0.15);--ds-color-text-primary-default: #2a2a2a;--ds-color-text-primary-inverse: #ffffff;--ds-color-text-secondary-default: #525252;--ds-color-text-secondary-inverse: #dddddd;--ds-color-text-tertiary-default: #6a717c;--ds-color-text-tertiary-inverse: #adadad;--ds-color-text-error-default: #cc1816;--ds-color-text-error-inverse: #f9aca6;--ds-color-text-emphasis-default: #265688;--ds-color-text-emphasis-inverse: #cfe0ef;--ds-color-text-accent-default: #647845;--ds-color-text-accent-inverse: #badd81;--ds-color-text-info-default: #326aa5;--ds-color-text-info-inverse: #acc9e2;--ds-color-text-subtle-default: #32718e;--ds-color-text-subtle-inverse: #56bbde;--ds-color-text-success-default: #0b6f4d;--ds-color-text-success-inverse: #8eceb9;--ds-color-text-ui-active-default: #225296;--ds-color-text-ui-active-inverse: #6ad5ef;--ds-color-text-ui-default-default: #2c67b5;--ds-color-text-ui-default-inverse: #56bbde;--ds-color-text-ui-disabled-default: #adadad;--ds-color-text-ui-disabled-inverse: #7e7e7e;--ds-color-text-ui-focus-default: #2c67b5;--ds-color-text-ui-focus-inverse: #56bbde;--ds-color-text-ui-hover-default: #193d73;--ds-color-text-ui-hover-inverse: #a8e9f7;--ds-color-text-link-default: #0074c8;--ds-color-text-link-inverse: #00cff0;--ds-color-tier-alaska-mvp-default: #726e6c;--ds-color-tier-alaska-mvp-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold-default: #7f682e;--ds-color-tier-alaska-mvpgold-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold75k-default: #7f682e;--ds-color-tier-alaska-mvpgold75k-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold100k-default: #7f682e;--ds-color-tier-alaska-mvpgold100k-inverse: #c5c1bf;--ds-color-tier-alaska-lounge: #01426a;--ds-color-tier-alaska-loungeplus: #53b390;--ds-color-tier-fare-business-default: #005154;--ds-color-tier-fare-business-inverse: #9fbdbe;--ds-color-tier-fare-economy-default: #2c67b5;--ds-color-tier-fare-economy-inverse: #a0c9f1;--ds-color-tier-fare-first-class-default: #002c4e;--ds-color-tier-fare-first-class-inverse: #89b2d4;--ds-color-tier-fare-saver-default: #4aa2c7;--ds-color-tier-fare-saver-inverse: #a8e9f7;--ds-color-tier-oneworld-emerald: #139142;--ds-color-tier-oneworld-sapphire: #015daa;--ds-color-tier-oneworld-ruby: #a41d4a;--ds-color-ui-default-default: #0074c8;--ds-color-ui-default-inverse: #00cff0;--ds-color-ui-hover-default: #054687;--ds-color-ui-hover-inverse: #5de3f7;--ds-color-ui-active-default: #054687;--ds-color-ui-active-inverse: #5de3f7;--ds-color-ui-disabled-default: rgba(0, 116, 200, 0.2);--ds-color-ui-bkg-default-default: rgba(0, 0, 0, 0.03);--ds-color-ui-bkg-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-ui-bkg-hover-default: rgba(0, 0, 0, 0.06);--ds-color-ui-bkg-hover-inverse: rgba(255, 255, 255, 0.06);--ds-color-utility-blue-default: #79b2ec;--ds-color-utility-blue-inverse: #c9e0f7;--ds-color-utility-cyan-default: #6ad5ef;--ds-color-utility-cyan-inverse: #a8e9f7;--ds-color-utility-green-default: #7ec6ac;--ds-color-utility-green-inverse: #addbca;--ds-color-utility-gray-default: #adadad;--ds-color-utility-gray-inverse: #dddddd;--ds-color-utility-lime-default: #badd81;--ds-color-utility-lime-inverse: #d8efb4;--ds-color-utility-navy-default: #265688;--ds-color-utility-navy-inverse: #acc9e2;--ds-color-utility-neutral-default: #7e8894;--ds-color-utility-neutral-inverse: #ccd2db;--ds-color-utility-pink-default: #f7738e;--ds-color-utility-pink-inverse: #fcc2ce;--ds-color-utility-purple-default: #8d47f0;--ds-color-utility-purple-inverse: #ddc9fb;--ds-color-utility-red-default: #e35c2f;--ds-color-utility-red-inverse: #f0a68d;--ds-color-utility-turquoise-default: #5c8f91;--ds-color-utility-turquoise-inverse: #9fbdbe;--ds-color-utility-yellow-default: #f9ce06;--ds-color-utility-yellow-inverse: #ffe87e;--ds-color-utility-error-default: #cc1816;--ds-color-utility-error-inverse: #f9aca6;--ds-color-utility-warning-default: #f2c153;--ds-color-utility-warning-inverse: #f2c153;--ds-color-utility-success-default: #0b6f4d;--ds-color-utility-success-inverse: #8eceb9}*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}:host{display:inline-block;width:100%;margin:0;padding:0;vertical-align:middle}:host ::slotted(auro-menuoption),:host ::slotted([auro-menuoption]),:host auro-menuoption[loadingplaceholder]{padding-left:calc(var(--ds-size-150, 0.75rem) + 24px + var(--ds-size-100, 0.5rem))}:host ::slotted([selected]){padding-left:0}:host ::slotted(hr){box-sizing:content-box !important;height:0 !important;overflow:visible !important;margin:var(--ds-size-100, 0.5rem) 0 !important;border-width:0 !important;border-top-width:1px !important;border-top-style:solid !important}:host([nocheckmark]) ::slotted(auro-menuoption),:host([nocheckmark]) auro-menuoption[loadingplaceholder]{padding-left:var(--ds-size-200, 1rem)}:host([root]){overflow-y:auto}[loadingplaceholder]{color:var(--ds-color-text-secondary-default, #525252)}[loadingplaceholder].empty{opacity:0;position:absolute}[loadingplaceholder] slot[name=loadingIcon]{vertical-align:middle;line-height:1;display:inline-block}[loadingplaceholder] slot[name=loadingIcon]::slotted(*){margin-right:var(--ds-size-150, 0.75rem)}`;
3861
+
3862
+ i$5`:host ::slotted(hr){border-top-color:var(--ds-auro-menu-divider-color) !important}`;
3863
+
3864
+ i$5`:host{--ds-auro-menu-divider-color: var(--ds-color-border-divider-default, $ds-color-border-divider-default);--ds-auro-menuoption-container-color: transparent;--ds-auro-menuoption-icon-color: transparent;--ds-auro-menuoption-text-color: var(--ds-color-text-primary-default, $ds-color-text-primary-default)}`;
3865
+
3866
+ // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3867
+ // See LICENSE in the project root for license information.
3868
+
3869
+ // ---------------------------------------------------------------------
3870
+
3871
+ /**
3872
+ * Converts value to an array.
3873
+ * If the value is a JSON string representing an array, it will be parsed.
3874
+ * If the value is already an array, it is returned.
3875
+ * If the value is undefined, it returns undefined.
3876
+ * @private
3877
+ * @param {any} value - The value to be converted. Can be a string, array, or undefined.
3878
+ * @returns {Array|undefined} - The converted array or undefined.
3879
+ * @throws {Error} - Throws an error if the value is not an array, undefined,
3880
+ * or if the value cannot be parsed into an array from a JSON string.
3881
+ */
3882
+ function arrayConverter(value) {
3883
+ // Allow undefined
3884
+ if (value === undefined) {
3885
+ return undefined;
3886
+ }
3887
+
3888
+ // Return the value if it is already an array
3889
+ if (Array.isArray(value)) {
3890
+ return value;
3891
+ }
3892
+
3893
+ try {
3894
+ // If value is a JSON string, parse it
3895
+ const parsed = typeof value === 'string' ? JSON.parse(value) : value;
3896
+
3897
+ // Check if the parsed value is an array
3898
+ if (Array.isArray(parsed)) {
3899
+ return parsed;
3900
+ }
3901
+ } catch (error) {
3902
+ // If JSON parsing fails, continue to throw an error below
3903
+ /* eslint-disable no-console */
3904
+ console.error('JSON parsing failed:', error);
3905
+ }
3906
+
3907
+ // Throw error if the input is not an array or undefined
3908
+ throw new Error('Invalid value: Input must be an array or undefined');
3909
+ }
3910
+
3911
+ /**
3912
+ * Compare two arrays for equality.
3913
+ * @private
3914
+ * @param {Array} arr1 - First array to compare.
3915
+ * @param {Array} arr2 - Second array to compare.
3916
+ * @returns {boolean} True if arrays are equal.
3917
+ */
3918
+ function arraysAreEqual(arr1, arr2) {
3919
+ // If both arrays undefined, they are equal (true)
3920
+ if (arr1 === undefined || arr2 === undefined) {
3921
+ return arr1 === arr2;
3922
+ }
3923
+
3924
+ // If arrays have different lengths, they are not equal
3925
+ if (arr1.length !== arr2.length) {
3926
+ return false;
3927
+ }
3928
+
3929
+ // If every item at each index is the same, return true
3930
+ for (let index = 0; index < arr1.length; index += 1) {
3931
+ if (arr1[index] !== arr2[index]) {
3932
+ return false;
3933
+ }
3934
+ }
3935
+ return true;
3936
+ }
3937
+
3938
+ /**
3939
+ * Compares array for changes.
3940
+ * @private
3941
+ * @param {Array|any} newVal - New value to compare.
3942
+ * @param {Array|any} oldVal - Old value to compare.
3943
+ * @returns {boolean} True if arrays have changed.
3944
+ */
3945
+ function arrayOrUndefinedHasChanged(newVal, oldVal) {
3946
+ try {
3947
+ // Check if values are undefined or arrays
3948
+ const isArrayOrUndefined = (val) => val === undefined || Array.isArray(val);
3949
+
3950
+ // If non-array or non-undefined, throw error
3951
+ if (!isArrayOrUndefined(newVal) || !isArrayOrUndefined(oldVal)) {
3952
+ const invalidValue = isArrayOrUndefined(newVal) ? oldVal : newVal;
3953
+ throw new Error(`Value must be an array or undefined, received ${typeof invalidValue}`);
3954
+ }
3955
+
3956
+ // Return true if arrays have changed, false if they are the same
3957
+ return !arraysAreEqual(newVal, oldVal);
3958
+ } catch (error) {
3959
+ /* eslint-disable no-console */
3960
+ console.error(error);
3961
+ // If validation fails, it has changed
3962
+ return true;
3963
+ }
3964
+ }
3965
+
3966
+ i$5`:host{display:flex;align-items:center;padding:var(--ds-size-50, 0.25rem) var(--ds-size-200, 1rem) var(--ds-size-50, 0.25rem) 0;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host ::slotted(strong){font-weight:700}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
3967
+
3968
+ i$5`:host{background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color) !important}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-menuoption-text-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-color-container-ui-primary-active-default, #225296)}`;
3969
+
3970
+ i$5`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
3971
+
3972
+ i$5`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
3973
+
3974
+ i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color: var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color: var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color: var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color: var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color: var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color: var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color: var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-inverse, #f2c153)}`;
3975
+
3976
+ var styleCss = i$f`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[slot=trigger]{width:100%;padding:0;border:0;cursor:pointer;font-family:inherit;font-size:inherit;text-align:left}[slot=trigger] .nestingSpacer{display:none}[slot=trigger] #placeholder.hidden{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host [auro-dropdown]{position:relative}:host [auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}:host [auro-dropdown]::part(popover){max-width:-webkit-fill-available;overflow-y:scroll}:host([disabled]) *{user-select:none}.outerWrapper{position:relative}auro-menuoption{padding:0;pointer-events:none}.menuWrapper{padding:var(--ds-size-50, 0.25rem) 0}:host([multiselect]) [slot=trigger]{display:flex}:host([multiselect]) auro-menuoption:not(:first-child){margin-left:var(--ds-size-100)}`;
3977
+
3978
+ var colorCss = i$f`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host [auro-dropdown]::part(trigger):hover{--ds-auro-dropdown-trigger-container-color: rgba(0 0 0 / 0.06)}:host([disabled]) *{color:var(--ds-color-text-ui-disabled-default, #adadad)}.placeholder{color:var(--ds-auro-select-placeholder-text-color)}`;
3979
+
3980
+ var tokensCss = i$f`:host{--ds-auro-select-placeholder-text-color: var(--ds-color-text-secondary-default, $ds-color-text-secondary-default)}`;
3981
+
3982
+ // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3983
+ // See LICENSE in the project root for license information.
3984
+
3985
+
3986
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
3987
+ /**
3988
+ * The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
3989
+ *
3990
+ * @slot - Default slot for the menu content.
3991
+ * @slot label - Defines the content of the label.
3992
+ * @slot helpText - Defines the content of the helpText.
3993
+ * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
3994
+ * @event auroSelect-valueSet - Notifies that the component has a new value set.
3995
+ * @event input - Notifies every time the value prop of the element is changed.
3996
+ * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
3997
+ * @csspart helpText - Apply CSS to the help text.
3998
+ */
3999
+
4000
+ // build the component class
4001
+ class AuroSelect extends r$9 {
4002
+ constructor() {
4003
+ super();
4004
+
4005
+ this.optionSelected = undefined;
4006
+ this.value = undefined;
4007
+
4008
+ const idLength = 36;
4009
+ const idSubstrEnd = 8;
4010
+ const idSubstrStart = 2;
4011
+
4012
+ /**
4013
+ * @private
4014
+ */
4015
+ this.uniqueId = Math.random().
4016
+ toString(idLength).
4017
+ substring(idSubstrStart, idSubstrEnd);
4018
+
4019
+ /**
4020
+ * @private
4021
+ */
4022
+ this.validation = new AuroFormValidation();
4023
+
4024
+ /**
4025
+ * @private
4026
+ */
4027
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
4028
+
4029
+ /**
4030
+ * Generate unique names for dependency components.
4031
+ */
4032
+ const versioning = new AuroDependencyVersioning$1();
4033
+
4034
+ /**
4035
+ * @private
4036
+ */
4037
+ this.dropdownTag = versioning.generateTag('auro-dropdown', dropdownVersion, AuroDropdown);
4038
+
4039
+ /**
4040
+ * @private
4041
+ */
4042
+ this.isHiddenWhileLoading = false;
4043
+ }
4044
+
4045
+ /**
4046
+ * @private
4047
+ * @returns {void} Internal defaults.
4048
+ */
4049
+ privateDefaults() {
4050
+ this.options = [];
4051
+ this.optionActive = null;
4052
+ }
4053
+
4054
+ // This function is to define props used within the scope of this component
4055
+ // Be sure to review https://lit-element.polymer-project.org/guide/properties#reflected-attributes
4056
+ // to understand how to use reflected attributes with your property settings.
4057
+ static get properties() {
4058
+ return {
4059
+
4060
+ /**
4061
+ * When attribute is present, element shows disabled state.
4062
+ */
4063
+ disabled: {
4064
+ type: Boolean,
4065
+ reflect: true
4066
+ },
4067
+
4068
+ /**
4069
+ * If set, makes dropdown width match the size of the content, rather than the width of the trigger.
4070
+ */
4071
+ flexMenuWidth: {
4072
+ type: Boolean,
4073
+ reflect: true
4074
+ },
4075
+
4076
+ /**
4077
+ * When true, checkmark on selected option will no longer be present.
4078
+ */
4079
+ noCheckmark: {
4080
+ type: Boolean,
4081
+ reflect: true
4082
+ },
4083
+
4084
+ /**
4085
+ * If set, disables auto-validation on blur.
4086
+ */
4087
+ noValidate: {
4088
+ type: Boolean,
4089
+ reflect: true
4090
+ },
4091
+
4092
+ /**
4093
+ * @private
4094
+ */
4095
+ optionActive: {
4096
+ type: Object
4097
+ },
4098
+
4099
+ /**
4100
+ * Specifies the current selected menuOption.
4101
+ */
4102
+ optionSelected: {
4103
+ // Allow HTMLElement[] arrays and undefined
4104
+ converter: arrayConverter,
4105
+ hasChanged: arrayOrUndefinedHasChanged
4106
+ },
4107
+
4108
+ /**
4109
+ * @private
4110
+ */
4111
+ options: {
4112
+ type: Array
4113
+ },
4114
+
4115
+ /**
4116
+ * Populates the `required` attribute on the element. Used for client-side validation.
4117
+ */
4118
+ required: {
4119
+ type: Boolean,
4120
+ reflect: true
4121
+ },
4122
+
4123
+ /**
4124
+ * When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
4125
+ */
4126
+ error: {
4127
+ type: String,
4128
+ reflect: true
4129
+ },
4130
+
4131
+ /**
4132
+ * Sets a custom help text message to display for all validityStates.
4133
+ */
4134
+ setCustomValidity: {
4135
+ type: String
4136
+ },
4137
+
4138
+ /**
4139
+ * Custom help text message to display when validity = `customError`.
4140
+ */
4141
+ setCustomValidityCustomError: {
4142
+ type: String
4143
+ },
4144
+
4145
+ /**
4146
+ * Custom help text message to display when validity = `valueMissing`.
4147
+ */
4148
+ setCustomValidityValueMissing: {
4149
+ type: String
4150
+ },
4151
+
4152
+ /**
4153
+ * Specifies the `validityState` this element is in.
4154
+ */
4155
+ validity: {
4156
+ type: String,
4157
+ reflect: true
4158
+ },
4159
+
4160
+ /**
4161
+ * Value selected for the component.
4162
+ */
4163
+ value: {
4164
+ // Allow string[] arrays and undefined
4165
+ converter: arrayConverter,
4166
+ hasChanged: arrayOrUndefinedHasChanged
4167
+ },
4168
+
4169
+ /**
4170
+ * Sets multi-select mode, allowing multiple options to be selected at once.
4171
+ */
4172
+ multiSelect: {
4173
+ type: Boolean,
4174
+ reflect: true,
4175
+ attribute: 'multiselect'
4176
+ },
4177
+ };
4178
+ }
4179
+
4180
+ static get styles() {
4181
+ return [
4182
+ colorCss,
4183
+ styleCss,
4184
+ tokensCss
4185
+ ];
4186
+ }
4187
+
4188
+ /**
4189
+ * Binds all behavior needed to the dropdown after rendering.
4190
+ * @private
4191
+ * @returns {void}
4192
+ */
4193
+ configureDropdown() {
4194
+ this.dropdown = this.shadowRoot.querySelector(this.dropdownTag._$litStatic$);
4195
+ this.menuWrapper = this.dropdown.querySelector('.menuWrapper');
4196
+
4197
+ if (this.customBibWidth) {
4198
+ this.dropdown.dropdownWidth = this.customBibWidth;
4199
+ }
4200
+
4201
+ // Exposes the CSS parts from the dropdown for styling
4202
+ this.dropdown.exposeCssParts();
4203
+ }
4204
+
4205
+ /**
4206
+ * This will register this element with the browser.
4207
+ * @param {string} [name="auro-select"] - The name of element that you want to register to.
4208
+ *
4209
+ * @example
4210
+ * AuroSelect.register("custom-select") // this will register this element to <custom-select/>
4211
+ *
4212
+ */
4213
+ static register(name = "auro-select") {
4214
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroSelect);
4215
+ }
4216
+
4217
+ /**
4218
+ * Updates the displayed value in an Auro dropdown component based on optionSelected.
4219
+ * @private
4220
+ * @returns {void}
4221
+ */
4222
+ updateDisplayedValue() {
4223
+ const triggerContentEl = this.dropdown.querySelector('#triggerFocus');
4224
+
4225
+ // Clear everything except placeholder
4226
+ const placeholder = triggerContentEl.querySelector('#placeholder');
4227
+ triggerContentEl.innerHTML = '';
4228
+ if (placeholder) {
4229
+ triggerContentEl.appendChild(placeholder);
4230
+ }
4231
+
4232
+ // Handle selected options
4233
+ if (this.optionSelected && this.optionSelected.length) {
4234
+ // Create display text from selected options
4235
+ const displayText = this.optionSelected.map((option) => option.textContent).join(', ');
4236
+
4237
+ const span = document.createElement('span');
4238
+ span.textContent = displayText;
4239
+ triggerContentEl.appendChild(span);
4240
+ }
4241
+
4242
+ this.dropdown.requestUpdate();
4243
+ }
4244
+
4245
+ /**
4246
+ * Binds all behavior needed to the menu after rendering.
4247
+ * @private
4248
+ * @returns {void}
4249
+ */
4250
+ configureMenu() {
4251
+ this.menu = this.querySelector('auro-menu, [auro-menu]');
4252
+
4253
+ // racing condition on custom-select with custom-menu
4254
+ if (!this.menu) {
4255
+ setTimeout(() => {
4256
+ this.configureMenu();
4257
+ }, 0);
4258
+ return;
4259
+ }
4260
+
4261
+ if (this.multiSelect) {
4262
+ this.menu.multiSelect = this.multiSelect;
4263
+ }
4264
+
4265
+ this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
4266
+ this.menu.setAttribute('aria-hidden', 'true');
4267
+
4268
+ this.generateOptionsArray();
4269
+
4270
+ this.menu.addEventListener('auroMenu-activatedOption', (evt) => {
4271
+ this.optionActive = evt.detail;
4272
+ });
4273
+
4274
+ this.menu.addEventListener('auroMenu-selectedOption', () => {
4275
+ // Get array of selected options from menu
4276
+ this.optionSelected = this.menu.optionSelected;
4277
+ // For single select, we still use arrays but only take first value
4278
+ this.value = this.menu.value;
4279
+
4280
+ if (this.dropdown.isPopoverVisible) {
4281
+ this.dropdown.hide();
4282
+ }
4283
+ });
4284
+
4285
+ /**
4286
+ * When this.value is preset auro-menu.selectByValue(this.value) is called.
4287
+ * However, if this.value does not match one of the menu options,
4288
+ * auro-menu will notify via event. In this case, clear out this.value
4289
+ * so that it is not storing an invalid value which can then later be returned
4290
+ * with `auro-select.value`.
4291
+ */
4292
+ this.menu.addEventListener('auroMenu-selectValueFailure', () => {
4293
+ this.menu.clearSelection();
4294
+ });
4295
+
4296
+ this.menu.addEventListener('auroMenu-selectValueReset', () => {
4297
+ this.optionSelected = this.menu.optionSelected;
4298
+ this.validation.validate(this);
4299
+ });
4300
+ }
4301
+
4302
+ /**
4303
+ * Binds all behavior needed to the component after rendering.
4304
+ * @private
4305
+ * @returns {void}
4306
+ */
4307
+ configureSelect() {
4308
+ // inject menu into menuWrapper
4309
+ this.menuWrapper.append(this.menu);
4310
+
4311
+ this.addEventListener('keydown', (evt) => {
4312
+ if (evt.key === 'ArrowUp') {
4313
+ evt.preventDefault();
4314
+
4315
+ this.dropdown.show();
4316
+
4317
+ if (this.dropdown.isPopoverVisible) {
4318
+ this.menu.navigateOptions('up');
4319
+ }
4320
+ }
4321
+
4322
+ if (evt.key === 'ArrowDown') {
4323
+ evt.preventDefault();
4324
+
4325
+ this.dropdown.show();
4326
+
4327
+ if (this.dropdown.isPopoverVisible) {
4328
+ this.menu.navigateOptions('down');
4329
+ }
4330
+ }
4331
+
4332
+ if (evt.key === 'Enter') {
4333
+ if (!this.dropdown.isPopoverVisible) {
4334
+ evt.preventDefault();
4335
+ this.menu.makeSelection();
4336
+ }
4337
+ }
4338
+
4339
+ if (evt.key === 'Tab') {
4340
+ this.dropdown.hide();
4341
+ }
4342
+ });
4343
+
4344
+ this.addEventListener('focusin', this.handleFocusin);
4345
+
4346
+ this.addEventListener('blur', () => {
4347
+ this.validation.validate(this);
4348
+ });
4349
+ }
4350
+
4351
+ /**
4352
+ * Manages the visibility of the dropdown based on loading state changes.
4353
+ *
4354
+ * This method listens for loading state changes and adjusts the visibility of the dropdown accordingly.
4355
+ * If the dropdown is visible and loading is true without any loading placeholders, it hides the dropdown
4356
+ * and sets a flag to indicate it is hidden while loading. If loading is false and the dropdown was previously
4357
+ * hidden, it checks if the active element is within the dropdown and shows it again if true.
4358
+ *
4359
+ * @private
4360
+ * @param {CustomEvent} event - The event object containing details about the loading state change.
4361
+ * @param {boolean} event.detail.loading - Indicates whether the menu is currently loading.
4362
+ * @param {boolean} event.detail.hasLoadingPlaceholder - Indicates if there are loading placeholders present.
4363
+ * @returns {void}
4364
+ */
4365
+ handleMenuLoadingChange(event) {
4366
+ if (this.dropdown.isPopoverVisible && event.detail.loading && !event.detail.hasLoadingPlaceholder) {
4367
+ this.isHiddenWhileLoading = true;
4368
+ this.dropdown.hide();
4369
+ } else if (!event.detail.loading && this.isHiddenWhileLoading) {
4370
+ if (this.contains(document.activeElement)) {
4371
+ this.dropdown.show();
4372
+ }
4373
+ this.isHiddenWhileLoading = false;
4374
+ }
4375
+ }
4376
+
4377
+ /**
4378
+ * Function to support @focusin event.
4379
+ * @private
4380
+ * @return {void}
4381
+ */
4382
+ handleFocusin() {
4383
+
4384
+ /**
4385
+ * The input is considered to be in it's initial state based on
4386
+ * if this.value === undefined. The first time we interact with the
4387
+ * input manually, by applying focusin, we need to flag the
4388
+ * input as no longer in the initial state.
4389
+ */
4390
+ if (this.value === undefined) {
4391
+ this.value = undefined;
4392
+ this.removeEventListener('focusin', this.handleFocusin);
4393
+ }
4394
+ }
4395
+
4396
+ /**
4397
+ * Determines the element error state based on the `required` attribute and input value.
4398
+ * @private
4399
+ * @returns {void}
4400
+ */
4401
+ generateOptionsArray() {
4402
+ if (this.menu) {
4403
+ this.options = [...this.menu.querySelectorAll('auro-menuoption, [auro-menuoption]')];
4404
+ } else {
4405
+ this.options = [];
4406
+ }
4407
+ }
4408
+
4409
+ /**
4410
+ * Handle element attributes on update.
4411
+ * @private
4412
+ * @returns {void}
4413
+ */
4414
+ performUpdate() {
4415
+ super.performUpdate();
4416
+
4417
+ if (this.validity && this.validity !== 'valid') {
4418
+ this.dropdown.setAttribute('error', '');
4419
+ } else {
4420
+ this.dropdown.removeAttribute('error');
4421
+ }
4422
+
4423
+ if (this.disabled) {
4424
+ this.dropdown.setAttribute('disabled', '');
4425
+ } else if (!this.disabled) {
4426
+ this.dropdown.removeAttribute('disabled');
4427
+ }
4428
+
4429
+ if (this.noCheckmark) {
4430
+ this.menu.setAttribute('nocheckmark', '');
4431
+ }
4432
+ }
4433
+
4434
+ // lifecycle runs only after the element's DOM has been updated the first time
4435
+ firstUpdated() {
4436
+ // Add the tag name as an attribute if it is different than the component name
4437
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-select');
4438
+
4439
+ this.configureMenu();
4440
+ this.configureDropdown();
4441
+ this.configureSelect();
4442
+
4443
+ // Set the initial value in auro-menu if defined
4444
+ if (this.hasAttribute('value') && this.getAttribute('value').length > 0) {
4445
+ this.menu.value = this.value;
4446
+ }
4447
+ }
4448
+
4449
+ async updated(changedProperties) {
4450
+ if (changedProperties.has('value')) {
4451
+ if (this.value) {
4452
+ this.menu.value = this.value;
4453
+
4454
+ // Wait for menu to finish updating its value
4455
+ await this.menu.updateComplete;
4456
+
4457
+ this.optionSelected = this.menu.optionSelected;
4458
+ } else {
4459
+ this.menu.value = undefined;
4460
+ }
4461
+
4462
+ this.validation.validate(this);
4463
+
4464
+ // LEGACY EVENT
4465
+ this.dispatchEvent(new CustomEvent('auroSelect-valueSet', {
4466
+ bubbles: true,
4467
+ cancelable: false,
4468
+ composed: true,
4469
+ }));
4470
+
4471
+ this.dispatchEvent(new CustomEvent('input', {
4472
+ bubbles: true,
4473
+ cancelable: true,
4474
+ composed: true,
4475
+ }));
4476
+ }
4477
+
4478
+ if (changedProperties.has('optionSelected')) {
4479
+ this.updateDisplayedValue();
4480
+ }
4481
+
4482
+ if (changedProperties.has('error')) {
4483
+ this.validate(true);
4484
+ }
4485
+ }
4486
+
4487
+ /**
4488
+ * Resets component to initial state.
4489
+ * @returns {void}
4490
+ */
4491
+ reset() {
4492
+ this.validation.reset(this);
4493
+ }
4494
+
4495
+ /**
4496
+ * Validates value.
4497
+ * @param {boolean} [force=false] - Whether to force validation.
4498
+ */
4499
+ validate(force = false) {
4500
+ this.validation.validate(this, force);
4501
+ }
4502
+
4503
+ // When using auroElement, use the following attribute and function when hiding content from screen readers.
4504
+ // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
4505
+
4506
+ // function that renders the HTML and CSS into the scope of the component
4507
+ render() {
4508
+ const placeholderClass = {
4509
+ hidden: this.value,
4510
+ };
4511
+
4512
+ return u$5`
4513
+ <div class="outerWrapper">
4514
+ <div aria-live="polite" class="util_displayHiddenVisually">
4515
+ ${this.optionActive && this.options.length > 0
4516
+ ? u$5`
4517
+ ${`${this.optionActive.innerText}, option ${this.options.indexOf(this.optionActive) + 1} of ${this.options.length}`}
4518
+ `
4519
+ : undefined
4520
+ };
4521
+
4522
+ ${this.optionSelected && this.options.length > 0
4523
+ ? u$5`
4524
+ ${`${this.optionSelected.innerText} selected`}
4525
+ `
4526
+ : undefined
4527
+ };
4528
+ </div>
4529
+ <${this.dropdownTag}
4530
+ for="selectmenu"
4531
+ ?error="${this.validity !== undefined && this.validity !== 'valid'}"
4532
+ common
4533
+ fluid
4534
+ ?matchWidth="${!this.flexMenuWidth}"
4535
+ chevron
4536
+ part="dropdown">
4537
+ <span slot="trigger" aria-haspopup="true" id="triggerFocus">
4538
+ <span id="placeholder" class="${e$8(placeholderClass)}"><slot name="placeholder"></slot></span>
4539
+ </span>
4540
+ <div class="menuWrapper">
4541
+ </div>
4542
+ <slot name="label" slot="label"></slot>
4543
+ <p slot="helpText">
4544
+ ${!this.validity || this.validity === undefined || this.validity === 'valid'
4545
+ ? u$5`
4546
+ <span id="${this.uniqueId}" part="helpText">
4547
+ <slot name="helpText"></slot>
4548
+ </span>`
4549
+ : u$5`
4550
+ <span id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
4551
+ ${this.errorMessage}
4552
+ </span>`
4553
+ }
4554
+ </p>
4555
+ </${this.dropdownTag}>
4556
+ <!-- Help text and error message template -->
4557
+ </div>
4558
+ `;
4559
+ }
4560
+ }
4561
+
4562
+ AuroSelect.register();