@aurodesignsystem/auro-formkit 2.0.0-beta.7 → 2.0.0-beta.9

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 (291) hide show
  1. package/.turbo/cache/012997da408d7381-meta.json +1 -0
  2. package/.turbo/cache/0c8124a987c1cc05-meta.json +1 -1
  3. package/.turbo/cache/114f70925d97840c-meta.json +1 -0
  4. package/.turbo/cache/114f70925d97840c.tar.zst +0 -0
  5. package/.turbo/cache/144803363093af6b-meta.json +1 -0
  6. package/.turbo/cache/18129dba20f51b6b-meta.json +1 -1
  7. package/.turbo/cache/19afa09c8e45c25d-meta.json +1 -0
  8. package/.turbo/cache/19afa09c8e45c25d.tar.zst +0 -0
  9. package/.turbo/cache/20a17be1e896dc95-meta.json +1 -0
  10. package/.turbo/cache/20a17be1e896dc95.tar.zst +0 -0
  11. package/.turbo/cache/2624bedf18a03ab1-meta.json +1 -0
  12. package/.turbo/cache/2624bedf18a03ab1.tar.zst +0 -0
  13. package/.turbo/cache/2706814699cff63a-meta.json +1 -0
  14. package/.turbo/cache/2787020e69f50af2-meta.json +1 -1
  15. package/.turbo/cache/29d704afd7578cda-meta.json +1 -0
  16. package/.turbo/cache/29d704afd7578cda.tar.zst +0 -0
  17. package/.turbo/cache/2edcc8b31cd713fc-meta.json +1 -0
  18. package/.turbo/cache/2edcc8b31cd713fc.tar.zst +0 -0
  19. package/.turbo/cache/318a9085a92f2d32-meta.json +1 -0
  20. package/.turbo/cache/326d9e4692d61af1-meta.json +1 -0
  21. package/.turbo/cache/326d9e4692d61af1.tar.zst +0 -0
  22. package/.turbo/cache/36962b1c4c89a3a2-meta.json +1 -0
  23. package/.turbo/cache/36962b1c4c89a3a2.tar.zst +0 -0
  24. package/.turbo/cache/3cd8fc5f388323db-meta.json +1 -1
  25. package/.turbo/cache/3f8ea42b850fd7b1-meta.json +1 -0
  26. package/.turbo/cache/{c114d428251f56a5.tar.zst → 3f8ea42b850fd7b1.tar.zst} +0 -0
  27. package/.turbo/cache/4006a206400d5c7b-meta.json +1 -1
  28. package/.turbo/cache/457af7906413d2ff-meta.json +1 -0
  29. package/.turbo/cache/492dda333b8d15f1-meta.json +1 -1
  30. package/.turbo/cache/508f2fcc60e5046f-meta.json +1 -0
  31. package/.turbo/cache/508f2fcc60e5046f.tar.zst +0 -0
  32. package/.turbo/cache/50993de942ec15a9-meta.json +1 -1
  33. package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -1
  34. package/.turbo/cache/5567d6b2fdae56a9-meta.json +1 -0
  35. package/.turbo/cache/5a6290b52b84f5ef-meta.json +1 -0
  36. package/.turbo/cache/5a6290b52b84f5ef.tar.zst +0 -0
  37. package/.turbo/cache/5aadae8d3f94202e-meta.json +1 -1
  38. package/.turbo/cache/6081837e8943b62e-meta.json +1 -0
  39. package/.turbo/cache/6081837e8943b62e.tar.zst +0 -0
  40. package/.turbo/cache/60ad74320c682a2b-meta.json +1 -1
  41. package/.turbo/cache/61e218aba69cff58-meta.json +1 -1
  42. package/.turbo/cache/64ac8d6a4669ba20-meta.json +1 -0
  43. package/.turbo/cache/64ac8d6a4669ba20.tar.zst +0 -0
  44. package/.turbo/cache/706649b429184693-meta.json +1 -0
  45. package/.turbo/cache/706649b429184693.tar.zst +0 -0
  46. package/.turbo/cache/71dbeaf0706c12fe-meta.json +1 -1
  47. package/.turbo/cache/7445df6e7feed2a7-meta.json +1 -1
  48. package/.turbo/cache/769652d1b874d7cf-meta.json +1 -0
  49. package/.turbo/cache/77da375a012de9d0-meta.json +1 -1
  50. package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -1
  51. package/.turbo/cache/7c4645de5001b034-meta.json +1 -0
  52. package/.turbo/cache/7c4645de5001b034.tar.zst +0 -0
  53. package/.turbo/cache/7e3244d67de2d977-meta.json +1 -0
  54. package/.turbo/cache/7e3244d67de2d977.tar.zst +0 -0
  55. package/.turbo/cache/7f3b42ddf36d0158-meta.json +1 -1
  56. package/.turbo/cache/804ad767c7ba2fc3-meta.json +1 -0
  57. package/.turbo/cache/804ad767c7ba2fc3.tar.zst +0 -0
  58. package/.turbo/cache/8366405184d123d2-meta.json +1 -0
  59. package/.turbo/cache/{a3db8f78e018a955.tar.zst → 8366405184d123d2.tar.zst} +0 -0
  60. package/.turbo/cache/85cc23a2de6b1009-meta.json +1 -0
  61. package/.turbo/cache/99936b010f1533f9-meta.json +1 -0
  62. package/.turbo/cache/{dc6fbe2a8d5b9d9b.tar.zst → 99936b010f1533f9.tar.zst} +0 -0
  63. package/.turbo/cache/9a9b4e449cd84be4-meta.json +1 -1
  64. package/.turbo/cache/9ae99e8e7bd83d06-meta.json +1 -1
  65. package/.turbo/cache/a275406512608e45-meta.json +1 -1
  66. package/.turbo/cache/a54b4d75b5d265de-meta.json +1 -0
  67. package/.turbo/cache/b280ed4daaf15dcb-meta.json +1 -0
  68. package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -1
  69. package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -1
  70. package/.turbo/cache/c44efc9e4ddd8a0e-meta.json +1 -1
  71. package/.turbo/cache/c47b8032d18fc452-meta.json +1 -0
  72. package/.turbo/cache/c47b8032d18fc452.tar.zst +0 -0
  73. package/.turbo/cache/c6c6411199b68170-meta.json +1 -1
  74. package/.turbo/cache/d3a05e38449c9b24-meta.json +1 -1
  75. package/.turbo/cache/d44acd685455b288-meta.json +1 -0
  76. package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -1
  77. package/.turbo/cache/d683a7d23b0d7073-meta.json +1 -0
  78. package/.turbo/cache/d683a7d23b0d7073.tar.zst +0 -0
  79. package/.turbo/cache/d7caaacb8114772f-meta.json +1 -0
  80. package/.turbo/cache/d7caaacb8114772f.tar.zst +0 -0
  81. package/.turbo/cache/dad3d78b33edd9e4-meta.json +1 -0
  82. package/.turbo/cache/dad3d78b33edd9e4.tar.zst +0 -0
  83. package/.turbo/cache/db4ea5071b44ee8c-meta.json +1 -1
  84. package/.turbo/cache/de44707e76bdd80c-meta.json +1 -0
  85. package/.turbo/cache/de44707e76bdd80c.tar.zst +0 -0
  86. package/.turbo/cache/e03997efe5adad43-meta.json +1 -0
  87. package/.turbo/cache/e1aa836f0cc2d7c5-meta.json +1 -0
  88. package/.turbo/cache/e1aa836f0cc2d7c5.tar.zst +0 -0
  89. package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -1
  90. package/.turbo/cache/e820cc8f220a05f3-meta.json +1 -0
  91. package/.turbo/cache/e9e36823f6c98f07-meta.json +1 -0
  92. package/.turbo/cache/e9e36823f6c98f07.tar.zst +0 -0
  93. package/.turbo/cache/f3f4ddfd3230e489-meta.json +1 -0
  94. package/.turbo/cache/f3f4ddfd3230e489.tar.zst +0 -0
  95. package/.turbo/cache/fdaf484b1ec4b5ed-meta.json +1 -0
  96. package/.vscode/settings.json +3 -0
  97. package/CHANGELOG.md +27 -0
  98. package/components/checkbox/.turbo/turbo-build.log +2 -2
  99. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  100. package/components/checkbox/README.md +1 -1
  101. package/components/checkbox/demo/api.min.js +79 -20
  102. package/components/checkbox/demo/index.min.js +79 -20
  103. package/components/checkbox/dist/index.js +79 -20
  104. package/components/combobox/.turbo/turbo-build.log +2 -2
  105. package/components/combobox/.turbo/turbo-bundler.log +3 -3
  106. package/components/combobox/README.md +4 -4
  107. package/components/combobox/demo/api.min.js +160 -42
  108. package/components/combobox/demo/index.min.js +160 -42
  109. package/components/combobox/dist/index.js +158 -40
  110. package/components/counter/.turbo/turbo-build$colon$sass.log +172 -0
  111. package/components/counter/.turbo/turbo-build$colon$version.log +10 -0
  112. package/components/counter/.turbo/turbo-build.log +278 -4
  113. package/components/counter/.turbo/turbo-bundler.log +3 -3
  114. package/components/counter/.turbo/turbo-sass$colon$render.log +36 -0
  115. package/components/counter/README.md +188 -0
  116. package/components/counter/demo/api.md +98 -1016
  117. package/components/counter/demo/api.min.js +1670 -32
  118. package/components/counter/demo/index.js +2 -1
  119. package/components/counter/demo/index.md +194 -0
  120. package/components/counter/demo/index.min.js +1702 -19
  121. package/components/counter/dist/auro-counter-button.d.ts +13 -0
  122. package/components/counter/dist/auro-counter-button.d.ts.map +1 -0
  123. package/components/counter/dist/auro-counter-group.d.ts +77 -6
  124. package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
  125. package/components/counter/dist/auro-counter.d.ts +78 -0
  126. package/components/counter/dist/auro-counter.d.ts.map +1 -1
  127. package/components/counter/dist/formkit/auro-dropdownVersion.d.ts +3 -0
  128. package/components/counter/dist/formkit/auro-dropdownVersion.d.ts.map +1 -0
  129. package/components/counter/dist/iconVersion.d.ts +3 -0
  130. package/components/counter/dist/iconVersion.d.ts.map +1 -0
  131. package/components/counter/dist/index.js +1670 -32
  132. package/components/counter/dist/styles/color-css.d.ts +3 -0
  133. package/components/counter/dist/styles/color-css.d.ts.map +1 -0
  134. package/components/counter/dist/styles/counter-button-color-css.d.ts +3 -0
  135. package/components/counter/dist/styles/counter-button-color-css.d.ts.map +1 -0
  136. package/components/counter/dist/styles/counter-button-css.d.ts +3 -0
  137. package/components/counter/dist/styles/counter-button-css.d.ts.map +1 -0
  138. package/components/counter/dist/styles/counter-button-tokens-css.d.ts +3 -0
  139. package/components/counter/dist/styles/counter-button-tokens-css.d.ts.map +1 -0
  140. package/components/counter/dist/styles/counter-group-color-css.d.ts +3 -0
  141. package/components/counter/dist/styles/counter-group-color-css.d.ts.map +1 -0
  142. package/components/counter/dist/styles/tokens-css.d.ts +3 -0
  143. package/components/counter/dist/styles/tokens-css.d.ts.map +1 -0
  144. package/components/counter/package.json +8 -2
  145. package/components/counter/src/auro-counter-button.js +42 -0
  146. package/components/counter/src/auro-counter-group.js +150 -21
  147. package/components/counter/src/auro-counter.js +272 -12
  148. package/components/counter/src/formkit/auro-dropdownVersion.js +1 -0
  149. package/components/counter/src/iconVersion.js +1 -0
  150. package/components/counter/src/index.js +1 -1
  151. package/components/counter/src/styles/color-css.js +2 -0
  152. package/components/counter/src/styles/color.css +25 -0
  153. package/components/counter/src/styles/color.scss +44 -0
  154. package/components/counter/src/styles/counter-button-color-css.js +2 -0
  155. package/components/counter/src/styles/counter-button-color.css +14 -0
  156. package/components/counter/src/styles/counter-button-color.scss +29 -0
  157. package/components/counter/src/styles/counter-button-css.js +2 -0
  158. package/components/counter/src/styles/counter-button-tokens-css.js +2 -0
  159. package/components/counter/src/styles/counter-button-tokens.css +7 -0
  160. package/components/counter/src/styles/counter-button-tokens.scss +9 -0
  161. package/components/counter/src/styles/counter-button.css +187 -0
  162. package/components/counter/src/styles/counter-button.scss +83 -0
  163. package/components/counter/src/styles/counter-group-color-css.js +2 -0
  164. package/components/counter/src/styles/counter-group-color.css +4 -0
  165. package/components/counter/src/styles/counter-group-color.scss +19 -0
  166. package/components/counter/src/styles/counter-group-css.js +1 -1
  167. package/components/counter/src/styles/counter-group.css +13 -1
  168. package/components/counter/src/styles/counter-group.scss +14 -1
  169. package/components/counter/src/styles/style-css.js +1 -1
  170. package/components/counter/src/styles/style.css +43 -1
  171. package/components/counter/src/styles/style.scss +48 -2
  172. package/components/counter/src/styles/tokens-css.js +2 -0
  173. package/components/counter/src/styles/tokens.css +11 -0
  174. package/components/counter/src/styles/tokens.scss +24 -0
  175. package/components/datepicker/.turbo/turbo-build.log +2 -2
  176. package/components/datepicker/.turbo/turbo-bundler.log +2 -2
  177. package/components/datepicker/README.md +4 -4
  178. package/components/datepicker/demo/api.min.js +160 -41
  179. package/components/datepicker/demo/index.min.js +160 -41
  180. package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
  181. package/components/datepicker/dist/index.js +160 -41
  182. package/components/datepicker/src/auro-datepicker.js +2 -1
  183. package/components/dropdown/.turbo/turbo-build.log +3 -3
  184. package/components/dropdown/.turbo/turbo-bundler.log +3 -3
  185. package/components/dropdown/README.md +1 -1
  186. package/components/form/.turbo/turbo-build.log +3 -3
  187. package/components/form/.turbo/turbo-bundler.log +3 -3
  188. package/components/form/README.md +1 -1
  189. package/components/input/.turbo/turbo-build.log +3 -3
  190. package/components/input/.turbo/turbo-bundler.log +3 -3
  191. package/components/input/README.md +1 -1
  192. package/components/input/demo/api.min.js +79 -20
  193. package/components/input/demo/index.min.js +79 -20
  194. package/components/input/dist/index.js +79 -20
  195. package/components/menu/.turbo/turbo-build.log +3 -3
  196. package/components/menu/.turbo/turbo-bundler.log +3 -3
  197. package/components/menu/README.md +1 -1
  198. package/components/radio/.turbo/turbo-build.log +3 -3
  199. package/components/radio/.turbo/turbo-bundler.log +3 -3
  200. package/components/radio/README.md +1 -1
  201. package/components/radio/demo/api.min.js +79 -20
  202. package/components/radio/demo/index.min.js +79 -20
  203. package/components/radio/dist/index.js +79 -20
  204. package/components/select/.turbo/turbo-build.log +3 -3
  205. package/components/select/.turbo/turbo-bundler.log +3 -3
  206. package/components/select/README.md +3 -3
  207. package/components/select/demo/api.min.js +79 -20
  208. package/components/select/demo/index.min.js +79 -20
  209. package/components/select/dist/index.js +79 -20
  210. package/package.json +1 -1
  211. package/packages/form-validation/src/validation.js +79 -20
  212. package/packages/utils/package.json +12 -0
  213. package/packages/utils/src/iconUtil.js +25 -0
  214. package/packages/utils/src/index.js +1 -0
  215. package/.turbo/cache/06845874cc82b186-meta.json +0 -1
  216. package/.turbo/cache/06845874cc82b186.tar.zst +0 -0
  217. package/.turbo/cache/0a96f136af026d57-meta.json +0 -1
  218. package/.turbo/cache/0a96f136af026d57.tar.zst +0 -0
  219. package/.turbo/cache/0c9ee13a7c863709-meta.json +0 -1
  220. package/.turbo/cache/0ca9c5ccf3e90704-meta.json +0 -1
  221. package/.turbo/cache/0ca9c5ccf3e90704.tar.zst +0 -0
  222. package/.turbo/cache/1a8d6e4cab38121a-meta.json +0 -1
  223. package/.turbo/cache/2ec1b6d23563659e-meta.json +0 -1
  224. package/.turbo/cache/3afc5b2ea7c1bf51-meta.json +0 -1
  225. package/.turbo/cache/3afc5b2ea7c1bf51.tar.zst +0 -0
  226. package/.turbo/cache/40de011abc31c0cf-meta.json +0 -1
  227. package/.turbo/cache/40de011abc31c0cf.tar.zst +0 -0
  228. package/.turbo/cache/426c825f57054f5f-meta.json +0 -1
  229. package/.turbo/cache/426c825f57054f5f.tar.zst +0 -0
  230. package/.turbo/cache/4524aae614598308-meta.json +0 -1
  231. package/.turbo/cache/4524aae614598308.tar.zst +0 -0
  232. package/.turbo/cache/45ea3e30ae949d53-meta.json +0 -1
  233. package/.turbo/cache/45ea3e30ae949d53.tar.zst +0 -0
  234. package/.turbo/cache/577d86e4072c01f5-meta.json +0 -1
  235. package/.turbo/cache/577d86e4072c01f5.tar.zst +0 -0
  236. package/.turbo/cache/5d770c787aa78d4d-meta.json +0 -1
  237. package/.turbo/cache/5d770c787aa78d4d.tar.zst +0 -0
  238. package/.turbo/cache/624bf5350aacae42-meta.json +0 -1
  239. package/.turbo/cache/66333b75c8f57565-meta.json +0 -1
  240. package/.turbo/cache/66333b75c8f57565.tar.zst +0 -0
  241. package/.turbo/cache/66e9cca767930b1d-meta.json +0 -1
  242. package/.turbo/cache/66e9cca767930b1d.tar.zst +0 -0
  243. package/.turbo/cache/68060c79df03f45a-meta.json +0 -1
  244. package/.turbo/cache/68060c79df03f45a.tar.zst +0 -0
  245. package/.turbo/cache/68e3afb31feab4e9-meta.json +0 -1
  246. package/.turbo/cache/6a1c28febca6163f-meta.json +0 -1
  247. package/.turbo/cache/6bc4e2d881af6ffb-meta.json +0 -1
  248. package/.turbo/cache/6bc4e2d881af6ffb.tar.zst +0 -0
  249. package/.turbo/cache/6c8ea74dc3b07640-meta.json +0 -1
  250. package/.turbo/cache/7a6ef918375d4010-meta.json +0 -1
  251. package/.turbo/cache/7a6ef918375d4010.tar.zst +0 -0
  252. package/.turbo/cache/83e1029b14af6545-meta.json +0 -1
  253. package/.turbo/cache/98936c69a55361fc-meta.json +0 -1
  254. package/.turbo/cache/a3db8f78e018a955-meta.json +0 -1
  255. package/.turbo/cache/ad2b775dd9172ae8-meta.json +0 -1
  256. package/.turbo/cache/ad2b775dd9172ae8.tar.zst +0 -0
  257. package/.turbo/cache/b91d2888e699c76a-meta.json +0 -1
  258. package/.turbo/cache/b91d2888e699c76a.tar.zst +0 -0
  259. package/.turbo/cache/bdc6aadfdbb6feb9-meta.json +0 -1
  260. package/.turbo/cache/be128506a9bcaa65-meta.json +0 -1
  261. package/.turbo/cache/be128506a9bcaa65.tar.zst +0 -0
  262. package/.turbo/cache/c114d428251f56a5-meta.json +0 -1
  263. package/.turbo/cache/c7338727efbc457a-meta.json +0 -1
  264. package/.turbo/cache/c7338727efbc457a.tar.zst +0 -0
  265. package/.turbo/cache/cf235df1ef8d90b0-meta.json +0 -1
  266. package/.turbo/cache/d1d1a072ee099992-meta.json +0 -1
  267. package/.turbo/cache/d9331772756d3d94-meta.json +0 -1
  268. package/.turbo/cache/d9331772756d3d94.tar.zst +0 -0
  269. package/.turbo/cache/dc6fbe2a8d5b9d9b-meta.json +0 -1
  270. package/.turbo/cache/e1e2582a7131011f-meta.json +0 -1
  271. package/.turbo/cache/e6271174c00888fe-meta.json +0 -1
  272. package/.turbo/cache/e8485d2a584b5f08-meta.json +0 -1
  273. package/.turbo/cache/e8485d2a584b5f08.tar.zst +0 -0
  274. package/.turbo/cache/e86451b8f88594b2-meta.json +0 -1
  275. package/.turbo/cache/e86451b8f88594b2.tar.zst +0 -0
  276. package/.turbo/cache/e9872ba002963dd3-meta.json +0 -1
  277. package/.turbo/cache/e9872ba002963dd3.tar.zst +0 -0
  278. /package/.turbo/cache/{e6271174c00888fe.tar.zst → 012997da408d7381.tar.zst} +0 -0
  279. /package/.turbo/cache/{6a1c28febca6163f.tar.zst → 144803363093af6b.tar.zst} +0 -0
  280. /package/.turbo/cache/{0c9ee13a7c863709.tar.zst → 2706814699cff63a.tar.zst} +0 -0
  281. /package/.turbo/cache/{68e3afb31feab4e9.tar.zst → 318a9085a92f2d32.tar.zst} +0 -0
  282. /package/.turbo/cache/{1a8d6e4cab38121a.tar.zst → 457af7906413d2ff.tar.zst} +0 -0
  283. /package/.turbo/cache/{6c8ea74dc3b07640.tar.zst → 5567d6b2fdae56a9.tar.zst} +0 -0
  284. /package/.turbo/cache/{d1d1a072ee099992.tar.zst → 769652d1b874d7cf.tar.zst} +0 -0
  285. /package/.turbo/cache/{bdc6aadfdbb6feb9.tar.zst → 85cc23a2de6b1009.tar.zst} +0 -0
  286. /package/.turbo/cache/{e1e2582a7131011f.tar.zst → a54b4d75b5d265de.tar.zst} +0 -0
  287. /package/.turbo/cache/{83e1029b14af6545.tar.zst → b280ed4daaf15dcb.tar.zst} +0 -0
  288. /package/.turbo/cache/{624bf5350aacae42.tar.zst → d44acd685455b288.tar.zst} +0 -0
  289. /package/.turbo/cache/{cf235df1ef8d90b0.tar.zst → e03997efe5adad43.tar.zst} +0 -0
  290. /package/.turbo/cache/{2ec1b6d23563659e.tar.zst → e820cc8f220a05f3.tar.zst} +0 -0
  291. /package/.turbo/cache/{98936c69a55361fc.tar.zst → fdaf484b1ec4b5ed.tar.zst} +0 -0
@@ -1,107 +1,1745 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const t$2=globalThis,e$4=t$2.ShadowRoot&&(undefined===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&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$4.get(s)),undefined===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+"",undefined,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;undefined!==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;
7
+
8
+ /**
9
+ * @license
10
+ * Copyright 2017 Google LLC
11
+ * SPDX-License-Identifier: BSD-3-Clause
12
+ */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);undefined!==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(),undefined!==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(undefined!==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);undefined!==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 undefined!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,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),undefined!==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(undefined!==e&&true===i.reflect){const r=(undefined!==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(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==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(undefined!==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=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===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");
13
+
1
14
  /**
2
15
  * @license
3
16
  * Copyright 2017 Google LLC
4
17
  * SPDX-License-Identifier: BSD-3-Clause
5
18
  */
6
- const t$1=globalThis,i$3=t$1.trustedTypes,s$1=i$3?i$3.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$2="$lit$",h$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o$3="?"+h$1,n$3=`<${o$3}>`,r$3=document,l$2=()=>r$3.createComment(""),c$2=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2=Array.isArray,u$2=t=>a$2(t)||"function"==typeof t?.[Symbol.iterator],d$1="[ \t\n\f\r]",f$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d$1}(?:([^\\s"'>=/]+)(${d$1}*=${d$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$1=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y$1=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y$1(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$3.createTreeWalker(r$3,129);function P(t,i){if(!a$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==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$1;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$1?"!--"===u[1]?c=v:undefined!==u[1]?c=_:undefined!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):undefined!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f$1,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m:'"'===u[3]?g:p$1):c===g||c===p$1?c=m:c===v||c===_?c=f$1:(c=m,r=undefined);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f$1?s+n$3:d>=0?(o.push(a),s.slice(0,d)+e$2+s.slice(d)+h$1+x):s+h$1+(-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$1),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$1)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h$1),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$2()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$2());}}}else if(8===r.nodeType)if(r.data===o$3)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$1,t+1));)d.push({type:7,index:c}),t+=h$1.length-1;}c++;}}static createElement(t,i){const s=r$3.createElement("template");return s.innerHTML=t,s}}function S$1(t,i,s=t,e){if(i===T)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$2(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S$1(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=undefined,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$3).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;undefined!==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$3,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==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=undefined,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 undefined!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$1(this,t,i),c$2(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$2(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$2(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$3.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===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 undefined===i&&A.set(t.strings,i=new N(t)),i}k(t){a$2(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$2()),this.O(l$2()),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){ undefined===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=undefined,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(undefined===h)t=S$1(this,t,i,0),o=!c$2(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$1(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c$2(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?undefined: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$1(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=undefined,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$1(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(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$2(),t),t,undefined,s??{});}return h._$AI(t),h};
19
+ const t$1=globalThis,i$3=t$1.trustedTypes,s$1=i$3?i$3.createPolicy("lit-html",{createHTML:t=>t}):undefined,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,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),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 undefined!==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:undefined!==u[1]?c=_:undefined!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):undefined!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m:'"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=undefined);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=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=undefined,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(;undefined!==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) undefined!==s&&(undefined!==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=undefined,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 undefined!==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):undefined!==t._$litType$?this.$(t):undefined!==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):(undefined===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 undefined===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){ undefined===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=undefined,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(undefined===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?undefined: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=undefined,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(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$1(),t),t,undefined,s??{});}return h._$AI(t),h};
20
+
21
+ /**
22
+ * @license
23
+ * Copyright 2017 Google LLC
24
+ * SPDX-License-Identifier: BSD-3-Clause
25
+ */class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}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");
7
26
 
8
27
  /**
9
28
  * @license
10
29
  * Copyright 2020 Google LLC
11
30
  * SPDX-License-Identifier: BSD-3-Clause
12
31
  */
13
- const a$1=Symbol.for(""),o$2=t=>{if(t?.r===a$1)return t?._$litStatic$},l$1=new Map,n$2=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$2(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$$");undefined===(r=l$1.get(t))&&(n.raw=n,l$1.set(t,r=n)),e=u;}return t(r,...e)},u$1=n$2(x);
32
+ const a=Symbol.for(""),o$1=t=>{if(t?.r===a)return t?._$litStatic$},s=t=>({_$litStatic$:t,r:a}),i$1=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==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}),l=new Map,n=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$1(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$$");undefined===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u;}return t(r,...e)},u=n(x);
33
+
34
+ var styleButtonTokenCss = i$5`:host{--ds-auro-counter-control-ui-hover: var(--ds-color-ui-bkg-hover-default, rgba(0, 0, 0, 0.06));--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #054687);--ds-auro-counter-control-border-active: var(--ds-color-border-active-default, #0074c8);--ds-auro-counter-control-border-hover: var(--ds-color-ui-bkg-hover-default, rgba(0, 0, 0, 0.06));--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, rgba(0, 0, 0, 0.03))}`;
35
+
36
+ var styleButtonColorCss = i$5`.auroButton{border-color:unset;background-color:var(--ds-auro-counter-control-ui-bkg);color:var(--ds-auro-button-text-color);-webkit-tap-highlight-color:var(--ds-auro-button-tap-color)}.auroButton:focus-visible:not(.auroButton:focus-visible:disabled){outline-color:var(--ds-auro-counter-control-border-active)}@media(hover: hover){.auroButton:active:not(:disabled),.auroButton:hover:not(:disabled){background-color:var(--ds-auro-counter-control-ui-hover)}}`;
37
+
38
+ var styleButtonCss = 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_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.contentWrapper{display:flex;align-items:center}.contentWrapper span{display:block;height:var(--ds-size-300, 1.5rem)}.auroButton{position:relative;display:inline-flex;overflow:visible;width:calc(var(--ds-size-50, 0.25rem) + var(--ds-size-400, 2rem));height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));flex-direction:row;align-items:center;justify-content:center;padding:var(--ds-auro-counter-control-padding);border:none;border-radius:var(--ds-auro-counter-control-border-radius);margin:0;cursor:pointer;gap:var(--ds-size-100, 0.5rem);line-height:unset;-webkit-touch-callout:none;user-select:none;white-space:nowrap}.auroButton:active .contentWrapper{transform:scale(0.95)}.auroButton:disabled{cursor:not-allowed;transform:unset}.auroButton:focus-visible:not(.auroButton:focus-visible:disabled){outline-offset:0;outline-style:solid;outline-width:var(--ds-size-25, 0.125rem);transform:unset}`;
14
39
 
15
40
  /**
16
41
  * @license
17
- * Copyright 2019 Google LLC
42
+ * Copyright 2017 Google LLC
18
43
  * SPDX-License-Identifier: BSD-3-Clause
19
44
  */
20
- const t=globalThis,e$1=t.ShadowRoot&&(undefined===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o$1=new WeakMap;let n$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s)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$1&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$1.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$1.set(s,t));}return t}toString(){return this.cssText}};const r$2=t=>new n$1("string"==typeof t?t:t+"",undefined,s),i$2=(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$1(o,t,s)},S=(s,o)=>{if(e$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.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$1=e$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2(e)})(t):t;
45
+ const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$1=t=>(...e)=>({_$litDirective$:t,values:e});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)}}
21
46
 
22
47
  /**
23
48
  * @license
24
- * Copyright 2017 Google LLC
49
+ * Copyright 2018 Google LLC
25
50
  * SPDX-License-Identifier: BSD-3-Clause
26
- */const{is:i$1,defineProperty:e,getOwnPropertyDescriptor:r$1,getOwnPropertyNames:h,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l: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=(t,s)=>!i$1(t,s),y={attribute:true,type:String,converter:u,reflect:false,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.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){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$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}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...h(t),...o(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(undefined!==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);undefined!==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$1(s));}else undefined!==s&&i.push(c$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,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),undefined!==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(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(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u).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(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f)(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=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===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("elementProperties")]=new Map,b[d("finalized")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push("2.0.4");
51
+ */const e=e$1(class extends i{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"class"!==t$1.name||t$1.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(undefined===this.st){this.st=new Set,undefined!==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}});
27
52
 
28
53
  /**
29
54
  * @license
30
- * Copyright 2017 Google LLC
55
+ * Copyright 2018 Google LLC
31
56
  * SPDX-License-Identifier: BSD-3-Clause
32
- */class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}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=globalThis.litElementPolyfillSupport;i?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
57
+ */const o=o=>o??E;
58
+
59
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
60
+ // See LICENSE in the project root for license information.
61
+
62
+
63
+ class AuroDependencyVersioning {
64
+
65
+ /**
66
+ * Generates a unique string to be used for child auro element naming.
67
+ * @private
68
+ * @param {string} baseName - Defines the first part of the unique element name.
69
+ * @param {string} version - Version of the component that will be appended to the baseName.
70
+ * @returns {string} - Unique string to be used for naming.
71
+ */
72
+ generateElementName(baseName, version) {
73
+ let result = baseName;
74
+
75
+ result += '-';
76
+ result += version.replace(/[.]/g, '_');
77
+
78
+ return result;
79
+ }
80
+
81
+ /**
82
+ * Generates a unique string to be used for child auro element naming.
83
+ * @param {string} baseName - Defines the first part of the unique element name.
84
+ * @param {string} version - Version of the component that will be appended to the baseName.
85
+ * @returns {string} - Unique string to be used for naming.
86
+ */
87
+ generateTag(baseName, version, tagClass) {
88
+ const elementName = this.generateElementName(baseName, version);
89
+ const tag = i$1`${s(elementName)}`;
33
90
 
34
- var styleCss$1 = i$2`:host{position:relative}`;
91
+ if (!customElements.get(elementName)) {
92
+ customElements.define(elementName, class extends tagClass {});
93
+ }
35
94
 
36
- // Copyright (c) 2024 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
95
+ return tag;
96
+ }
97
+ }
98
+
99
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
37
100
  // See LICENSE in the project root for license information.
38
101
 
102
+ // ---------------------------------------------------------------------
39
103
 
40
- class AuroCounter extends r {
104
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
105
+
106
+ class AuroLibraryRuntimeUtils {
107
+
108
+ /* eslint-disable jsdoc/require-param */
109
+
110
+ /**
111
+ * This will register a new custom element with the browser.
112
+ * @param {String} name - The name of the custom element.
113
+ * @param {Object} componentClass - The class to register as a custom element.
114
+ * @returns {void}
115
+ */
116
+ registerComponent(name, componentClass) {
117
+ if (!customElements.get(name)) {
118
+ customElements.define(name, class extends componentClass {});
119
+ }
120
+ }
121
+
122
+ /**
123
+ * Finds and returns the closest HTML Element based on a selector.
124
+ * @returns {void}
125
+ */
126
+ closestElement(
127
+ selector, // selector like in .closest()
128
+ base = this, // extra functionality to skip a parent
129
+ __Closest = (el, found = el && el.closest(selector)) =>
130
+ !el || el === document || el === window
131
+ ? null // standard .closest() returns null for non-found selectors also
132
+ : found
133
+ ? found // found a selector INside this element
134
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
135
+ ) {
136
+ return __Closest(base);
137
+ }
138
+ /* eslint-enable jsdoc/require-param */
139
+
140
+ /**
141
+ * 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.
142
+ * @param {Object} elem - The element to check.
143
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
144
+ * @returns {void}
145
+ */
146
+ handleComponentTagRename(elem, tagName) {
147
+ const tag = tagName.toLowerCase();
148
+ const elemTag = elem.tagName.toLowerCase();
149
+
150
+ if (elemTag !== tag) {
151
+ elem.setAttribute(tag, true);
152
+ }
153
+ }
154
+
155
+ /**
156
+ * Validates if an element is a specific Auro component.
157
+ * @param {Object} elem - The element to validate.
158
+ * @param {String} tagName - The name of the Auro component to check against.
159
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
160
+ */
161
+ elementMatch(elem, tagName) {
162
+ const tag = tagName.toLowerCase();
163
+ const elemTag = elem.tagName.toLowerCase();
164
+
165
+ return elemTag === tag || elem.hasAttribute(tag);
166
+ }
167
+ }
168
+
169
+ var styleCss$4 = 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_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-size:var(--ds-text-body-size-sm, 0.875rem);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
170
+
171
+ var colorCss$4 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
172
+
173
+ var tokensCss$3 = i$5`:host{--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-emphasis-inverse, #f2f7fb);--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-loader-color: var(--ds-color-utility-navy-default, #265688);--ds-auro-button-text-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-tap-color: transparent}`;
174
+
175
+ var styleCss$3 = 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}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: 0.375rem;--margin-xs: 0.2rem;--margin-sm: 0.5rem;--margin-md: 0.75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
176
+
177
+ var colorCss$3 = i$5`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color: var(--ds-color-utility-navy-default, #265688)}:host([ondark]){--ds-auro-loader-color: var(--ds-color-utility-cyan-inverse, #a8e9f7)}:host([white]){--ds-auro-loader-color: var(--ds-color-utility-neutral-inverse, #ccd2db)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
178
+
179
+ var tokensCss$2 = i$5`:host{--ds-auro-loader-background-color: currentcolor;--ds-auro-loader-border-color: currentcolor;--ds-auro-loader-color: currentcolor}`;
180
+
181
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
182
+ // See LICENSE in the project root for license information.
183
+
184
+
185
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
186
+ /**
187
+ * The auro-loader element is an easy to use animated loader component.
188
+ *
189
+ * @attr {Boolean} pulse - sets loader type
190
+ * @attr {Boolean} ringworm - sets loader type
191
+ * @attr {Boolean} laser - sets loader type
192
+ * @attr {Boolean} orbit - sets loader type
193
+ * @attr {Boolean} white - sets color of loader to white
194
+ * @attr {Boolean} ondark - sets color of loader to auro-color-ui-default-on-dark
195
+ * @attr {Boolean} onlight - sets color of loader to auro-color-ui-default-on-light
196
+ * @attr {Boolean} xs - sets size to extra small
197
+ * @attr {Boolean} sm - sets size to small
198
+ * @attr {Boolean} md - sets size to medium
199
+ * @attr {Boolean} lg - sets size to large
200
+ * @csspart element - apply style to adjust speed of animation
201
+ */
202
+
203
+ // build the component class
204
+ class AuroLoader extends r {
205
+ constructor() {
206
+ super();
207
+
208
+ /**
209
+ * @private
210
+ */
211
+ this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
212
+
213
+ /**
214
+ * @private
215
+ */
216
+ this.mdCount = 3;
217
+
218
+ /**
219
+ * @private
220
+ */
221
+ this.smCount = 2;
222
+
223
+ /**
224
+ * @private
225
+ */
226
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
227
+
228
+ this.orbit = false;
229
+ this.ringworm = false;
230
+ this.laser = false;
231
+ this.pulse = false;
232
+ }
233
+
234
+ // function to define props used within the scope of this component
235
+ static get properties() {
236
+ return {
237
+ pulse: {
238
+ type: Boolean,
239
+ reflect: true
240
+ },
241
+ orbit: {
242
+ type: Boolean,
243
+ reflect: true
244
+ },
245
+ ringworm: {
246
+ type: Boolean,
247
+ reflect: true
248
+ },
249
+ laser: {
250
+ type: Boolean,
251
+ reflect: true
252
+ }
253
+ };
254
+ }
41
255
 
42
256
  static get styles() {
43
- return [styleCss$1];
257
+ return [
258
+ i$5`${styleCss$3}`,
259
+ i$5`${colorCss$3}`,
260
+ i$5`${tokensCss$2}`
261
+ ];
262
+ }
263
+
264
+ /**
265
+ * This will register this element with the browser.
266
+ * @param {string} [name="auro-loader"] - The name of element that you want to register to.
267
+ *
268
+ * @example
269
+ * AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
270
+ *
271
+ */
272
+ static register(name = "auro-loader") {
273
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroLoader);
274
+ }
275
+
276
+ firstUpdated() {
277
+ // Add the tag name as an attribute if it is different than the component name
278
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
279
+ }
280
+
281
+ connectedCallback() {
282
+ super.connectedCallback();
44
283
  }
45
284
 
285
+ /**
286
+ * @private
287
+ * @returns {Array} Numbered array for template map.
288
+ */
289
+ defineTemplate() {
290
+ let nodes = Array.from(Array(this.mdCount).keys());
291
+
292
+ if (this.orbit || this.laser) {
293
+ nodes = Array.from(Array(this.smCount).keys());
294
+ } else if (this.ringworm) {
295
+ nodes = Array.from(Array(0).keys());
296
+ }
297
+
298
+ return nodes;
299
+ }
300
+
301
+ // When using auroElement, use the following attribute and function when hiding content from screen readers.
302
+ // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
303
+
46
304
  // function that renders the HTML and CSS into the scope of the component
47
305
  render() {
48
- return u$1`
49
- <div>
50
- <slot></slot>
51
- </div>
306
+ return x`
307
+ ${this.defineTemplate().map((idx) => x`
308
+ <span part="element" class="loader node-${idx}"></span>
309
+ `)}
310
+
311
+ <div class="no-animation">Loading...</div>
312
+
313
+ ${this.ringworm ? x`
314
+ <svg part="element" class="circular" viewBox="25 25 50 50">
315
+ <circle class="path" cx="50" cy="50" r="20" fill="none"/>
316
+ </svg>`
317
+ : ``
318
+ }
52
319
  `;
53
320
  }
54
321
  }
55
322
 
323
+ var loaderVersion = '3.1.1';
324
+
325
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
326
+ // See LICENSE in the project root for license information.
327
+
328
+
329
+ /**
330
+ * @attr {Boolean} autofocus - This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user
331
+ * @attr {Boolean} disabled - If set to true button will become disabled and not allow for interactions
332
+ * @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
333
+ * @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
334
+ * @attr {Boolean} onDark - Set value for on-dark version of auro-button
335
+ * @attr {Boolean} rounded - If set to true, the button will have a rounded shape
336
+ * @attr {Boolean} slim - Set value for slim version of auro-button
337
+ * @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
338
+ * @attr {String} arialabel - Populates the `aria-label` attribute that is used to define a string that labels the current element. Use it in cases where a text label is not visible on the screen. If there is visible text labeling the element, use `aria-labelledby` instead.
339
+ * @attr {String} arialabelledby - Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s), and its value should be one or more element IDs, which refer to elements that have the text needed for labeling. List multiple element IDs in a space delimited fashion.
340
+ * @attr {String} id - Set the unique ID of an element.
341
+ * @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
342
+ * @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
343
+ * @attr {String} value - Defines the value associated with the button which is submitted with the form data.
344
+ * @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
345
+ * @attr {Boolean} secondary - DEPRECATED
346
+ * @attr {Boolean} tertiary - DEPRECATED
347
+ * @prop {Boolean} ready - When false the component API should not be called.
348
+ * @event auroButton-ready - Notifies that the component has finished initializing.
349
+ * @slot - Default slot for the text of the button.
350
+ * @slot icon - Slot to provide auro-icon for the button.
351
+ * @csspart button - Apply CSS to HTML5 button.
352
+ * @csspart loader - Apply CSS to auro-loader.
353
+ * @csspart text - Apply CSS to text slot.
354
+ * @csspart icon - Apply CSS to icon slot.
355
+ */
356
+
357
+ /* eslint-disable lit/no-invalid-html, lit/binding-positions */
358
+
359
+ class AuroButton extends r {
360
+
361
+ constructor() {
362
+ super();
363
+ this.autofocus = false;
364
+ this.disabled = false;
365
+ this.iconOnly = false;
366
+ this.loading = false;
367
+ this.onDark = false;
368
+ this.ready = false;
369
+ this.secondary = false;
370
+ this.tertiary = false;
371
+ this.rounded = false;
372
+ this.slim = false;
373
+ this.fluid = false;
374
+
375
+ /**
376
+ * Generate unique names for dependency components.
377
+ */
378
+ const versioning = new AuroDependencyVersioning();
379
+
380
+ /**
381
+ * @private
382
+ */
383
+ this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
384
+ }
385
+
386
+ static get styles() {
387
+ return [
388
+ tokensCss$3,
389
+ styleCss$4,
390
+ colorCss$4
391
+ ];
392
+ }
393
+
394
+ static get properties() {
395
+ return {
396
+ autofocus: {
397
+ type: Boolean,
398
+ reflect: true
399
+ },
400
+ disabled: {
401
+ type: Boolean,
402
+ reflect: true
403
+ },
404
+ secondary: {
405
+ type: Boolean,
406
+ reflect: true
407
+ },
408
+ tertiary: {
409
+ type: Boolean,
410
+ reflect: true
411
+ },
412
+ fluid: {
413
+ type: Boolean,
414
+ reflect: true
415
+ },
416
+ iconOnly: {
417
+ type: Boolean,
418
+ reflect: true
419
+ },
420
+ loading: {
421
+ type: Boolean,
422
+ reflect: true
423
+ },
424
+ onDark: {
425
+ type: Boolean,
426
+ reflect: true
427
+ },
428
+ rounded: {
429
+ type: Boolean,
430
+ reflect: true
431
+ },
432
+ slim: {
433
+ type: Boolean,
434
+ reflect: true
435
+ },
436
+ arialabel: {
437
+ type: String,
438
+ reflect: true
439
+ },
440
+ arialabelledby: {
441
+ type: String,
442
+ reflect: true
443
+ },
444
+ title: {
445
+ type: String,
446
+ reflect: true
447
+ },
448
+ type: {
449
+ type: String,
450
+ reflect: true
451
+ },
452
+ value: {
453
+ type: String,
454
+ reflect: true
455
+ },
456
+ variant: {
457
+ type: String,
458
+ reflect: true
459
+ },
460
+ ready: { type: Boolean },
461
+ };
462
+ }
463
+
464
+ /**
465
+ * This will register this element with the browser.
466
+ * @param {string} [name="auro-button"] - The name of element that you want to register to.
467
+ *
468
+ * @example
469
+ * AuroButton.register("custom-button") // this will register this element to <custom-button/>
470
+ *
471
+ */
472
+ static register(name = "auro-button") {
473
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroButton);
474
+ }
475
+
476
+ /**
477
+ * Internal method to apply focus to the HTML5 button.
478
+ * @private
479
+ * @returns {void}
480
+ */
481
+ focus() {
482
+ this.renderRoot.querySelector('button').focus();
483
+ }
484
+
485
+ /**
486
+ * Marks the component as ready and sends event.
487
+ * @private
488
+ * @returns {void}
489
+ */
490
+ notifyReady() {
491
+ this.ready = true;
492
+
493
+ this.dispatchEvent(new CustomEvent('auroButton-ready', {
494
+ bubbles: true,
495
+ cancelable: false,
496
+ composed: true,
497
+ }));
498
+ }
499
+
500
+ updated() {
501
+ // support the old `secondary` and `tertiary` attributes` that are deprecated
502
+ if (this.secondary) {
503
+ this.setAttribute('variant', 'secondary');
504
+ }
505
+
506
+ if (this.tertiary) {
507
+ this.setAttribute('variant', 'tertiary');
508
+ }
509
+ }
510
+
511
+ firstUpdated() {
512
+ this.notifyReady();
513
+ }
514
+
515
+ render() {
516
+ const classes = {
517
+ 'util_insetLg--squish': true,
518
+ 'auro-button': true,
519
+ 'auroButton': true,
520
+ 'auro-button--rounded': this.rounded,
521
+ 'auro-button--slim': this.slim,
522
+ 'auro-button--iconOnly': this.iconOnly,
523
+ 'auro-button--iconOnlySlim': this.iconOnly && this.slim,
524
+ 'loading': this.loading
525
+ };
526
+
527
+ return u`
528
+ <button
529
+ part="button"
530
+ aria-label="${o(this.arialabel ? this.arialabel : undefined)}"
531
+ aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
532
+ ?autofocus="${this.autofocus}"
533
+ class="${e(classes)}"
534
+ ?disabled="${this.disabled || this.loading}"
535
+ ?onDark="${this.onDark}"
536
+ title="${o(this.title ? this.title : undefined)}"
537
+ name="${o(this.name ? this.name : undefined)}"
538
+ type="${o(this.type ? this.type : undefined)}"
539
+ variant="${o(this.variant ? this.variant : undefined)}"
540
+ .value="${o(this.value ? this.value : undefined)}"
541
+ @click="${() => {}}"
542
+ >
543
+ ${o(this.loading ? u`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
544
+
545
+ <span class="contentWrapper">
546
+ <span class="textSlot" part="text">
547
+ ${this.iconOnly ? undefined : u`<slot></slot>`}
548
+ </span>
549
+
550
+ <span part="icon">
551
+ <slot name="icon"></slot>
552
+ </span>
553
+ </span>
554
+ </button>
555
+ `;
556
+ }
557
+ }
558
+
559
+ // Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
560
+ // See LICENSE in the project root for license information.
561
+
562
+
563
+ // build the component class
564
+ class AuroCounterButton extends AuroButton {
565
+
566
+ static get styles() {
567
+ return [
568
+ styleButtonCss,
569
+ styleButtonColorCss,
570
+ styleButtonTokenCss
571
+ ];
572
+ }
573
+
574
+ /**
575
+ * This will register this element with the browser.
576
+ * @param {string} [name="auro-counter-button"] - The name of element that you want to register to.
577
+ *
578
+ * @example
579
+ * AuroCounterButton.register("custom-counter-button") // this will register this element to <custom-counter-button/>
580
+ *
581
+ */
582
+ static register(name = "auro-counter-button") {
583
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroCounterButton);
584
+ }
585
+ }
586
+
56
587
  /* istanbul ignore else */
57
588
  // define the name of the custom component
58
- if (!customElements.get("auro-counter")) {
59
- customElements.define("auro-counter", AuroCounter);
589
+ if (!customElements.get("auro-counter-button")) {
590
+ customElements.define("auro-counter-button", AuroCounterButton);
60
591
  }
61
592
 
62
- var styleCss = i$2`:host{position:relative}`;
593
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
594
+ // See LICENSE in the project root for license information.
595
+
596
+
597
+ /**
598
+ * @attr {Boolean} hidden - If present, the component will be hidden both visually and from screen readers
599
+ * @attr {Boolean} hiddenVisually - If present, the component will be hidden visually, but still read by screen readers
600
+ * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
601
+ */
602
+
603
+ class AuroElement extends r {
604
+
605
+ // function to define props used within the scope of this component
606
+ static get properties() {
607
+ return {
608
+ hidden: { type: Boolean,
609
+ reflect: true },
610
+ hiddenVisually: { type: Boolean,
611
+ reflect: true },
612
+ hiddenAudible: { type: Boolean,
613
+ reflect: true },
614
+ };
615
+ }
616
+
617
+ /**
618
+ * @private Function that determines state of aria-hidden
619
+ */
620
+ hideAudible(value) {
621
+ if (value) {
622
+ return 'true'
623
+ }
624
+
625
+ return 'false'
626
+ }
627
+ }
628
+
629
+ var error = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"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>"};
630
+
631
+ /* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
632
+
633
+ const _fetchMap = new Map();
634
+
635
+ /**
636
+ * A callback to parse Response body.
637
+ *
638
+ * @callback ResponseParser
639
+ * @param {Fetch.Response} response
640
+ * @returns {Promise}
641
+ */
642
+
643
+ /**
644
+ * A minimal in-memory map to de-duplicate Fetch API media requests.
645
+ *
646
+ * @param {String} uri
647
+ * @param {Object} [options={}]
648
+ * @param {ResponseParser} [options.responseParser=(response) => response.text()]
649
+ * @returns {Promise}
650
+ */
651
+ const cacheFetch = (uri, options = {}) => {
652
+ const responseParser = options.responseParser || ((response) => response.text());
653
+ if (!_fetchMap.has(uri)) {
654
+ _fetchMap.set(uri, fetch(uri).then(responseParser));
655
+ }
656
+ return _fetchMap.get(uri);
657
+ };
658
+
659
+ var styleCss$2 = 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}`;
63
660
 
64
661
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
65
662
  // See LICENSE in the project root for license information.
66
663
 
67
664
 
68
- class AuroCounterGroup extends r {
665
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
666
+ /**
667
+ * @attr {Boolean} onDark - Set value for on-dark version of auro-icon
668
+ * @slot - Hidden from visibility, used for a11y if icon description is needed
669
+ */
670
+
671
+ // build the component class
672
+ class BaseIcon extends AuroElement {
673
+ constructor() {
674
+ super();
675
+ this.onDark = false;
676
+ }
677
+
678
+ // function to define props used within the scope of this component
679
+ static get properties() {
680
+ return {
681
+ ...super.properties,
682
+ onDark: {
683
+ type: Boolean,
684
+ reflect: true
685
+ },
686
+
687
+ /**
688
+ * @private
689
+ */
690
+ svg: {
691
+ attribute: false,
692
+ reflect: true
693
+ }
694
+ };
695
+ }
69
696
 
70
697
  static get styles() {
71
- return [styleCss];
698
+ return i$5`
699
+ ${styleCss$2}
700
+ `;
701
+ }
702
+
703
+ /**
704
+ * Async function to fetch requested icon from npm CDN.
705
+ * @private
706
+ * @param {string} category - Icon category.
707
+ * @param {string} name - Icon name.
708
+ * @returns {SVGElement} DOM - Ready HTML to be appended.
709
+ */
710
+ async fetchIcon(category, name) {
711
+ let iconHTML = '';
712
+
713
+ if (category === 'logos') {
714
+ iconHTML = await cacheFetch(`${this.uri}/${category}/${name}.svg`);
715
+ } else {
716
+ iconHTML = await cacheFetch(`${this.uri}/icons/${category}/${name}.svg`);
717
+ }
718
+
719
+ const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
720
+
721
+ return dom.body.querySelector('svg');
722
+ }
723
+
724
+ // lifecycle function
725
+ async firstUpdated() {
726
+ if (!this.customSvg) {
727
+ const svg = await this.fetchIcon(this.category, this.name);
728
+
729
+ if (svg) {
730
+ this.svg = svg;
731
+ } else if (!svg) {
732
+ const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
733
+
734
+ this.svg = penDOM.body.firstChild;
735
+ }
736
+ }
737
+ }
738
+ }
739
+
740
+ var tokensCss$1 = 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)}`;
741
+
742
+ var colorCss$2 = 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)}`;
743
+
744
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
745
+ // See LICENSE in the project root for license information.
746
+
747
+
748
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
749
+ /**
750
+ * auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
751
+ *
752
+ * @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
753
+ * @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
754
+ * @attr {Boolean} customColor - Removes primary selector.
755
+ * @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
756
+ * @attr {Boolean} label - Exposes content in slot as icon label.
757
+ * @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
758
+ * @attr {Boolean} accent - Sets the icon to use the accent style.
759
+ * @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
760
+ * @attr {Boolean} disabled - Sets the icon to use the disabled style.
761
+ * @attr {Boolean} error - Sets the icon to use the error style.
762
+ * @attr {Boolean} info - Sets the icon to use the info style.
763
+ * @attr {Boolean} secondary - Sets the icon to use the secondary style.
764
+ * @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
765
+ * @attr {Boolean} subtle - Sets the icon to use the subtle style.
766
+ * @attr {Boolean} success - Sets the icon to use the success style.
767
+ * @attr {Boolean} warning - Sets the icon to use the warning style.
768
+ * @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
769
+ * @attr {String} uri - Set the uri for CDN used when fetching icons
770
+ * @slot - Hidden from visibility, used for a11y if icon description is needed.
771
+ * @slot svg - Used for custom SVG content.
772
+ */
773
+
774
+ // build the component class
775
+ class AuroIcon extends BaseIcon {
776
+ constructor() {
777
+ super();
778
+
779
+ this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
780
+
781
+ this.privateDefaults();
782
+ }
783
+
784
+ /**
785
+ * Internal Defaults.
786
+ * @private
787
+ * @returns {void}
788
+ */
789
+ privateDefaults() {
790
+ this.accent = false;
791
+ this.customColor = false;
792
+ this.customSvg = false;
793
+ this.disabled = false;
794
+ this.emphasis = false;
795
+ this.error = false;
796
+ this.info = false;
797
+ this.label = false;
798
+ this.primary = false;
799
+ this.secondary = false;
800
+ this.subtle = false;
801
+ this.success = false;
802
+ this.tertiary = false;
803
+ this.warning = false;
804
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
72
805
  }
73
806
 
807
+ // function to define props used within the scope of this component
74
808
  static get properties() {
75
809
  return {
76
- common: {
810
+ ...super.properties,
811
+ accent: {
812
+ type: Boolean,
813
+ reflect: true
814
+ },
815
+ ariaHidden: {
816
+ type: String,
817
+ reflect: true
818
+ },
819
+ category: {
820
+ type: String,
821
+ reflect: true
822
+ },
823
+ customColor: {
824
+ type: Boolean
825
+ },
826
+ customSvg: {
827
+ type: Boolean
828
+ },
829
+ disabled: {
77
830
  type: Boolean,
78
831
  reflect: true
79
832
  },
80
- inset: {
833
+ emphasis: {
81
834
  type: Boolean,
82
835
  reflect: true
83
836
  },
84
- rounded: {
837
+ error: {
838
+ type: Boolean,
839
+ reflect: true
840
+ },
841
+ info: {
842
+ type: Boolean,
843
+ reflect: true
844
+ },
845
+ label: {
846
+ type: Boolean,
847
+ reflect: true
848
+ },
849
+ name: {
850
+ type: String,
851
+ reflect: true
852
+ },
853
+ primary: {
854
+ type: Boolean,
855
+ reflect: true
856
+ },
857
+ secondary: {
858
+ type: Boolean,
859
+ reflect: true
860
+ },
861
+ subtle: {
862
+ type: Boolean,
863
+ reflect: true
864
+ },
865
+ success: {
866
+ type: Boolean,
867
+ reflect: true
868
+ },
869
+ tertiary: {
870
+ type: Boolean,
871
+ reflect: true
872
+ },
873
+ uri: {
874
+ type: String
875
+ },
876
+ warning: {
85
877
  type: Boolean,
86
878
  reflect: true
87
879
  }
88
880
  };
89
881
  }
90
882
 
91
- // function that renders the HTML and CSS into the scope of the component
883
+ static get styles() {
884
+ return [
885
+ super.styles,
886
+ i$5`${tokensCss$1}`,
887
+ i$5`${styleCss$2}`,
888
+ i$5`${colorCss$2}`
889
+ ];
890
+ }
891
+
892
+ /**
893
+ * This will register this element with the browser.
894
+ * @param {string} [name="auro-icon"] - The name of element that you want to register to.
895
+ *
896
+ * @example
897
+ * AuroIcon.register("custom-icon") // this will register this element to <custom-icon/>
898
+ *
899
+ */
900
+ static register(name = "auro-icon") {
901
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
902
+ }
903
+
904
+ connectedCallback() {
905
+ super.connectedCallback();
906
+
907
+ // Add the tag name as an attribute if it is different than the component name
908
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-icon');
909
+ }
910
+
911
+ /**
912
+ * @returns {void} Exposes CSS parts for styling from parent components.
913
+ */
914
+ exposeCssParts() {
915
+ this.setAttribute('exportparts', 'svg:iconSvg');
916
+ }
917
+
918
+ // function that renders the HTML and CSS into the scope of the component
92
919
  render() {
93
- return u$1`
94
- <div>
95
- <slot></slot>
920
+ const a11y = {
921
+ 'labelContainer': true,
922
+ 'util_displayHiddenVisually': !this.label
923
+ };
924
+
925
+ const classes = {
926
+ 'label': this.label,
927
+ 'wrapper': true,
928
+ };
929
+
930
+ return x`
931
+ <div
932
+ class="${e(classes)}"
933
+ title="${o(this.title || undefined)}">
934
+ <span aria-hidden="${o(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
935
+ ${this.customSvg ? x`
936
+ <slot name="svg"></slot>
937
+ ` : x`
938
+ ${this.svg}
939
+ `
940
+ }
941
+ </span>
942
+
943
+ <div class="${e(a11y)}">
944
+ <slot></slot>
945
+ </div>
96
946
  </div>
97
947
  `;
98
948
  }
99
949
  }
100
950
 
101
- /* istanbul ignore else */
102
- // define the name of the custom component
103
- if (!customElements.get("auro-counter-group")) {
104
- customElements.define("auro-counter-group", AuroCounterGroup);
951
+ var iconVersion = '6.1.2';
952
+
953
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
954
+ // See LICENSE in the project root for license information.
955
+
956
+
957
+ class AuroFormValidation {
958
+ constructor() {
959
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
960
+ }
961
+
962
+ /**
963
+ * Resets the element to its initial state.
964
+ * @private
965
+ * @param {object} elem - HTML element to reset.
966
+ * @returns {void}
967
+ */
968
+ reset(elem) {
969
+ elem.validity = undefined;
970
+ elem.value = undefined;
971
+
972
+ // Resets the second value of the datepicker in range state
973
+ if (elem.valueEnd) {
974
+ elem.valueEnd = undefined;
975
+ }
976
+
977
+ // Resets selected option of element
978
+ if (elem.optionSelected) {
979
+ elem.optionSelected = undefined;
980
+ }
981
+
982
+ // Runs validation to handle error attribute
983
+ this.validate(elem);
984
+ }
985
+
986
+ /**
987
+ * Validates the attributes of a given element based on predefined validation rules.
988
+ *
989
+ * @param {HTMLElement} elem - The element to be validated.
990
+ * @returns {void}
991
+ *
992
+ * @example
993
+ * // Assuming `inputElement` is a reference to an input element in the DOM
994
+ * validateElementAttributes(inputElement);
995
+ *
996
+ * The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
997
+ * If a validation rule is violated, it sets the element's validity state and error message accordingly.
998
+ *
999
+ * Validation rules:
1000
+ * - input:
1001
+ * - length:
1002
+ * - tooShort: Checks if the value length is less than the minimum length.
1003
+ * - tooLong: Checks if the value length exceeds the maximum length.
1004
+ * - pattern:
1005
+ * - patternMismatch: Checks if the value does not match the specified pattern.
1006
+ * - counter:
1007
+ * - range:
1008
+ * - rangeOverflow: Checks if the value exceeds the maximum value.
1009
+ * - rangeUnderflow: Checks if the value is less than the minimum value.
1010
+ */
1011
+ validateElementAttributes(elem) {
1012
+ const validationRules = {
1013
+ input: {
1014
+ length: [
1015
+ {
1016
+ check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
1017
+ validity: 'tooShort',
1018
+ message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
1019
+ },
1020
+ {
1021
+ check: (e) => e.value?.length > e.maxLength,
1022
+ validity: 'tooLong',
1023
+ message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
1024
+ }
1025
+ ],
1026
+ pattern: [
1027
+ {
1028
+ check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
1029
+ validity: 'patternMismatch',
1030
+ message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
1031
+ }
1032
+ ]
1033
+ },
1034
+ counter: {
1035
+ range: [
1036
+ {
1037
+ check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
1038
+ validity: 'rangeOverflow',
1039
+ message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
1040
+ },
1041
+ {
1042
+ check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
1043
+ validity: 'rangeUnderflow',
1044
+ message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
1045
+ }
1046
+ ]
1047
+ }
1048
+ };
1049
+
1050
+ let elementType;
1051
+ if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
1052
+ elementType = 'input';
1053
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
1054
+ elementType = 'counter';
1055
+ }
1056
+
1057
+ if (elementType) {
1058
+ const rules = validationRules[elementType];
1059
+
1060
+ if (rules) {
1061
+ Object.values(rules).flat().forEach(rule => {
1062
+ if (rule.check(elem)) {
1063
+ elem.validity = rule.validity;
1064
+ elem.errorMessage = rule.message(elem);
1065
+ }
1066
+ });
1067
+ }
1068
+ }
1069
+ }
1070
+
1071
+ /**
1072
+ * Determines the validity state of the element based on the type attribute.
1073
+ * @private
1074
+ * @param {object} elem - HTML element to validate.
1075
+ * @returns {void}
1076
+ */
1077
+ validateType(elem) {
1078
+ if (elem.hasAttribute('type')) {
1079
+ if (elem.type === 'email') {
1080
+ const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
1081
+
1082
+ if (!elem.value.match(emailRegex)) {
1083
+ elem.validity = 'patternMismatch';
1084
+ elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
1085
+ }
1086
+ } else if (elem.type === 'credit-card') {
1087
+ if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
1088
+ elem.validity = 'tooShort';
1089
+ elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
1090
+ }
1091
+ } else if (elem.type === 'number') {
1092
+ if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
1093
+ elem.validity = 'rangeOverflow';
1094
+ elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
1095
+ }
1096
+
1097
+ if (elem.min !== undefined && elem.value?.length > 0 && Number(elem.min) > Number(elem.value)) {
1098
+ elem.validity = 'rangeUnderflow';
1099
+ elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
1100
+ }
1101
+ } else if (elem.type === 'month-day-year' ||
1102
+ elem.type === 'month-year' ||
1103
+ elem.type === 'month-fullYear' ||
1104
+ elem.type === 'year-month-day'
1105
+ ) {
1106
+ if (elem.value?.length > 0 && elem.value.length < elem.dateStrLength) {
1107
+ elem.validity = 'tooShort';
1108
+ elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
1109
+ } else {
1110
+ const valueDate = new Date(elem.value);
1111
+
1112
+ // validate max
1113
+ if (elem.max !== undefined) {
1114
+ const maxDate = new Date(elem.max);
1115
+
1116
+ if (valueDate > maxDate) {
1117
+ elem.validity = 'rangeOverflow';
1118
+ elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
1119
+ }
1120
+ }
1121
+
1122
+ // validate min
1123
+ if (elem.min) {
1124
+ const minDate = new Date(elem.min);
1125
+
1126
+ if (valueDate < minDate) {
1127
+ elem.validity = 'rangeUnderflow';
1128
+ elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
1129
+ }
1130
+ }
1131
+ }
1132
+ }
1133
+ }
1134
+ }
1135
+
1136
+ /**
1137
+ * Determines the validity state of the element.
1138
+ * @param {object} elem - HTML element to validate.
1139
+ * @param {boolean} force - Boolean that forces validation to run.
1140
+ * @returns {void}
1141
+ */
1142
+ validate(elem, force) {
1143
+ this.getInputElements(elem);
1144
+ this.getAuroInputs(elem);
1145
+
1146
+ // Validate only if noValidate is not true and the input does not have focus
1147
+ const validationShouldRun = force || (!elem.contains(document.activeElement) && elem.value !== undefined) || elem.validateOnInput;
1148
+
1149
+ if (elem.hasAttribute('error')) {
1150
+ elem.validity = 'customError';
1151
+ elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
1152
+ } else if (validationShouldRun) {
1153
+ elem.validity = 'valid';
1154
+ elem.errorMessage = '';
1155
+
1156
+ /**
1157
+ * Only validate once we interact with the datepicker
1158
+ * elem.value === undefined is the initial state pre-interaction.
1159
+ *
1160
+ * The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
1161
+ */
1162
+
1163
+ let hasValue = elem.value && elem.value.length > 0;
1164
+
1165
+ // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
1166
+ if (this.auroInputElements?.length === 2) {
1167
+ if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
1168
+ hasValue = false;
1169
+ }
1170
+ }
1171
+
1172
+ if (!hasValue && elem.required) {
1173
+ elem.validity = 'valueMissing';
1174
+ elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
1175
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
1176
+ this.validateType(elem);
1177
+ this.validateElementAttributes(elem);
1178
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
1179
+ this.validateElementAttributes(elem);
1180
+ }
1181
+ }
1182
+
1183
+ if (this.auroInputElements?.length > 0) {
1184
+ elem.validity = this.auroInputElements[0].validity;
1185
+ elem.errorMessage = this.auroInputElements[0].errorMessage;
1186
+
1187
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
1188
+ elem.validity = this.auroInputElements[1].validity;
1189
+ elem.errorMessage = this.auroInputElements[1].errorMessage;
1190
+ }
1191
+ }
1192
+
1193
+ if (validationShouldRun || elem.hasAttribute('error')) {
1194
+ // Use the validity message override if it is declared
1195
+ if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
1196
+ elem.errorMessage = elem.ValidityMessageOverride;
1197
+ }
1198
+
1199
+ this.getErrorMessage(elem);
1200
+
1201
+ elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
1202
+ bubbles: true,
1203
+ composed: true,
1204
+ detail: {
1205
+ validity: elem.validity,
1206
+ message: elem.errorMessage
1207
+ }
1208
+ }));
1209
+ }
1210
+ }
1211
+
1212
+ /**
1213
+ * Gets all the HTML5 `inputs` in the element shadow DOM.
1214
+ * @private
1215
+ * @param {object} elem - HTML element to validate.
1216
+ * @returns {void}
1217
+ */
1218
+ getInputElements(elem) {
1219
+ this.inputElements = elem.renderRoot.querySelectorAll('input');
1220
+ }
1221
+
1222
+ /**
1223
+ * Gets all the `auro-inputs` in the element shadow DOM.
1224
+ * @private
1225
+ * @param {object} elem - HTML element to validate.
1226
+ * @returns {void}
1227
+ */
1228
+ getAuroInputs(elem) {
1229
+ this.auroInputElements = elem.shadowRoot.querySelectorAll('auro-input, [auro-input]');
1230
+ }
1231
+
1232
+ /**
1233
+ * Return appropriate error message.
1234
+ * @private
1235
+ * @param {object} elem - HTML element to validate.
1236
+ * @returns {void}
1237
+ */
1238
+ getErrorMessage(elem) {
1239
+ if (elem.validity !== 'valid') {
1240
+ if (elem.setCustomValidity) {
1241
+ elem.errorMessage = elem.setCustomValidity;
1242
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
1243
+ const input = elem.renderRoot.querySelector('input');
1244
+
1245
+ if (input.validationMessage.length > 0) {
1246
+ elem.errorMessage = input.validationMessage;
1247
+ }
1248
+ } else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
1249
+ const firstInput = this.inputElements[0];
1250
+
1251
+ if (firstInput.validationMessage.length > 0) {
1252
+ elem.errorMessage = firstInput.validationMessage;
1253
+ } else if (this.inputElements?.length === 2) {
1254
+ const secondInput = this.inputElements[1];
1255
+
1256
+ if (secondInput.validationMessage.length > 0) {
1257
+ elem.errorMessage = secondInput.validationMessage;
1258
+ }
1259
+ }
1260
+ }
1261
+ } else {
1262
+ elem.errorMessage = undefined;
1263
+ }
1264
+ }
1265
+ }
1266
+
1267
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1268
+ // See LICENSE in the project root for license information.
1269
+
1270
+
1271
+ class IconUtil {
1272
+
1273
+ /**
1274
+ * Generates an HTML element containing an SVG icon based on the provided `svgContent`.
1275
+ *
1276
+ * @param {string} svgContent - The SVG content to be embedded.
1277
+ * @param {Object} _attributes - Additional attributes to set on the icon element.
1278
+ * @returns {Element} The HTML element containing the SVG icon.
1279
+ */
1280
+ static generateSvgHtml(svgContent) {
1281
+ const dom = new DOMParser().parseFromString(svgContent.svg, 'text/html');
1282
+ const svg = dom.body.firstChild;
1283
+
1284
+ svg.setAttribute('slot', 'svg');
1285
+
1286
+ return u`${svg}`;
1287
+ }
1288
+ }
1289
+
1290
+ var plusIcon = {"role":"img","color":"currentColor","title":"","desc":"","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"plus-lg","category":"interface","svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-hidden=\"true\" class=\"ico_squareLarge\" 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/><path d=\"M11.898 5.007 12 5a.75.75 0 0 1 .743.648l.007.102v5.5h5.5a.75.75 0 0 1 .743.648L19 12a.75.75 0 0 1-.648.743l-.102.007h-5.501l.001 5.5a.75.75 0 0 1-.648.743L12 19a.75.75 0 0 1-.743-.648l-.007-.102-.001-5.5H5.75a.75.75 0 0 1-.743-.648L5 12a.75.75 0 0 1 .648-.743l.102-.007h5.5v-5.5a.75.75 0 0 1 .648-.743L12 5z\"/></svg>"};
1291
+
1292
+ var minusIcon = {"role":"img","color":"currentColor","title":"","desc":"","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"minus-lg","category":"interface","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-hidden=\"true\" 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/><path d=\"M5.75 12.75h12.5a.75.75 0 1 0 0-1.5H5.75a.75.75 0 1 0 0 1.5\"/></svg>"};
1293
+
1294
+ var tokensCss = i$5`:host{--ds-auro-counter-text-default: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-counter-text-secondary: var(--ds-color-text-secondary-default, #525252);--ds-auro-counter-text-disabled: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #054687);--ds-auro-counter-control-ui-hover: var(--ds-color-ui-hover-default, #054687);--ds-auro-counter-control-ui-disabled: var(--ds-color-ui-disabled-default, rgba(0, 116, 200, 0.2));--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, rgba(0, 0, 0, 0.03));--ds-auro-counter-control-line-height: var(--ds-text-body-size-sm, 0.875rem);--ds-auro-counter-icon-color-default: var(--ds-color-ui-default-default, #0074c8)}`;
1295
+
1296
+ var colorCss$1 = i$5`.counter{color:var(--ds-auro-counter-text-default)}[name=description]::slotted(*){color:var(--ds-auro-counter-text-secondary)}.controlIcon{color:var(--ds-auro-counter-icon-color-default)}.quantityWrapper{background-color:var(--ds-auro-counter-control-ui-bkg)}[disabled] .controlIcon,:host([disabled]) .controlIcon{color:var(--ds-auro-counter-control-ui-disabled)}[disabled] label,[disabled] [name=description]::slotted(*),[disabled]::part(counterControl),:host([disabled]) label,:host([disabled]) [name=description]::slotted(*),:host([disabled])::part(counterControl){color:var(--ds-auro-counter-text-disabled)}`;
1297
+
1298
+ var styleCss$1 = i$5`.counter{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ds-size-150, 0.75rem)}.content{display:flex;flex-flow:column}[name=description]::slotted(*){display:block;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}.quantityWrapper{width:var(--ds-size-400, 2rem);height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));align-content:center;cursor:default;font-size:var(--ds-size-250, 1.25rem);text-align:center}:host{position:relative}:host::part(counterControl){display:flex;line-height:0}:host::part(controlMinus){--ds-auro-counter-control-border-radius: var(--ds-size-500, 2.5rem) 0 0 var(--ds-size-500, 2.5rem);--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem)}:host::part(controlPlus){--ds-auro-counter-control-border-radius: 0 var(--ds-size-500, 2.5rem) var(--ds-size-500, 2.5rem) 0;--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem)}auro-counter-button{display:flex}`;
1299
+
1300
+ /* eslint-disable lit/binding-positions, lit/no-invalid-html */
1301
+ // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1302
+ // See LICENSE in the project root for license information.
1303
+
1304
+
1305
+ /**
1306
+ * Auro Counter is a customizable counter component for user interface interactions.
1307
+ *
1308
+ * This web component provides a flexible counter interface with increment and decrement buttons,
1309
+ * supporting optional sub-labels and disabled states.
1310
+ *
1311
+ * @element auro-counter
1312
+ * @extends LitElement
1313
+ * @slot Default - Main label content for the counter.
1314
+ * @slot description - Descriptive content for the counter.
1315
+ */
1316
+ class AuroCounter extends r {
1317
+ constructor() {
1318
+ super();
1319
+
1320
+ this.disabled = false;
1321
+ this.disableMax = false;
1322
+ this.disableMin = false;
1323
+ this.max = 9;
1324
+ this.min = 0;
1325
+ this.validity = undefined;
1326
+ this.value = undefined;
1327
+
1328
+ /**
1329
+ * @private
1330
+ */
1331
+ this.validation = new AuroFormValidation();
1332
+
1333
+ /**
1334
+ * Generate unique names for dependency components.
1335
+ * @private
1336
+ */
1337
+ const versioning = new AuroDependencyVersioning();
1338
+
1339
+ /**
1340
+ * Dynamically generated icon tag for counter buttons.
1341
+ * @private
1342
+ * @type {string}
1343
+ */
1344
+ this.iconTag = versioning.generateTag("auro-icon", iconVersion, AuroIcon);
1345
+ }
1346
+
1347
+ /**
1348
+ * Defines reactive properties for the component.
1349
+ * @returns {Object} Property configuration.
1350
+ */
1351
+ static get properties() {
1352
+ return {
1353
+
1354
+ /**
1355
+ * Indicates if the counter is disabled.
1356
+ */
1357
+ disabled: {
1358
+ type: Boolean,
1359
+ reflect: true,
1360
+ },
1361
+
1362
+ /**
1363
+ * Group will attach to counter to disable the increment button.
1364
+ * @private
1365
+ */
1366
+ disableMax: {
1367
+ type: Boolean,
1368
+ },
1369
+
1370
+ /**
1371
+ * Group will attach to counter to disable the decrement button.
1372
+ * @private
1373
+ */
1374
+ disableMin: {
1375
+ type: Boolean,
1376
+ },
1377
+
1378
+ /**
1379
+ * The maximum value for the counter.
1380
+ */
1381
+ max: {
1382
+ type: Number,
1383
+ reflect: true,
1384
+ },
1385
+
1386
+ /**
1387
+ * The minimum value for the counter.
1388
+ */
1389
+ min: {
1390
+ type: Number,
1391
+ reflect: true,
1392
+ },
1393
+
1394
+ /**
1395
+ * The validity state of the counter.
1396
+ */
1397
+ validity: {
1398
+ type: String,
1399
+ reflect: true,
1400
+ },
1401
+
1402
+ /**
1403
+ * The current value of the counter.
1404
+ */
1405
+ value: {
1406
+ type: Number,
1407
+ },
1408
+ };
1409
+ }
1410
+
1411
+ /**
1412
+ * Registers the custom element with the browser.
1413
+ * @param {string} [name="auro-counter"] - Custom element name to register.
1414
+ * @example
1415
+ * AuroCounter.register("custom-counter") // registers <custom-counter/>
1416
+ */
1417
+ static register(name = "auro-counter") {
1418
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroCounter);
1419
+ }
1420
+
1421
+ static get styles() {
1422
+ return [
1423
+ tokensCss,
1424
+ colorCss$1,
1425
+ styleCss$1
1426
+ ];
1427
+ }
1428
+
1429
+ /**
1430
+ * Increments the counter value by 1. If a value is provided, it increments by that amount.
1431
+ * @method increment
1432
+ * @param {number} [value] - The amount to increment by.
1433
+ * @returns {void}
1434
+ */
1435
+ increment(value) {
1436
+ this.value += value !== undefined ? value : 1;
1437
+ }
1438
+
1439
+ /**
1440
+ * Decrements the value of the counter by 1. If a value is provided, it decrements by that amount.
1441
+ * @method decrement
1442
+ * @param {number} [value] - The amount to decrement by.
1443
+ * @returns {void}
1444
+ */
1445
+ decrement(value) {
1446
+ this.value -= value !== undefined ? value : 1;
1447
+ }
1448
+
1449
+ /**
1450
+ * Initializes the value of the counter.
1451
+ * If the current value is undefined, it sets the value to the minimum value.
1452
+ * @private
1453
+ */
1454
+ initValue() {
1455
+ if (this.value === undefined) {
1456
+ this.value = this.min;
1457
+ }
1458
+ }
1459
+
1460
+ /**
1461
+ * Determines if the increment button should be disabled based on the current value and extrema.
1462
+ *
1463
+ * @param {number} extrema - The extreme value (either min or max) to compare against the current value.
1464
+ * @returns {boolean} - Returns true if the increment button should be disabled, otherwise false.
1465
+ * @private
1466
+ */
1467
+ isIncrementDisabled(extrema) {
1468
+ // Initially, the value is undefined and then set to the minimum value. During this transition, the increment button should be disabled.
1469
+ if (this.value === undefined) {
1470
+ return false;
1471
+ } else if (extrema === this.min && this.value > extrema) {
1472
+ return false;
1473
+ } else if (extrema === this.max && this.value < extrema) {
1474
+ return false;
1475
+ }
1476
+
1477
+ return true;
1478
+ }
1479
+
1480
+ /**
1481
+ * Moves the focus to the first enabled button within the shadow DOM.
1482
+ * This method searches for the first `auro-counter-button` element that is not disabled
1483
+ * and sets the focus on it.
1484
+ * @private
1485
+ */
1486
+ jumpFocusToEnabled() {
1487
+ const button = this.shadowRoot.querySelector("auro-counter-button:not([disabled])");
1488
+ if (button !== null) {
1489
+ button.focus();
1490
+ }
1491
+ }
1492
+
1493
+ handleSlotChange() {
1494
+ this.checkSlots();
1495
+ }
1496
+
1497
+ firstUpdated() {
1498
+ this.initValue();
1499
+ }
1500
+
1501
+ updated(changedProperties) {
1502
+ if (changedProperties.has("value")) {
1503
+ this.validation.validate(this);
1504
+ this.dispatchEvent(
1505
+ new CustomEvent("input", {
1506
+ detail: {
1507
+ value: this.value,
1508
+ },
1509
+ }),
1510
+ {
1511
+ bubble: true,
1512
+ composable: true,
1513
+ }
1514
+ );
1515
+
1516
+ if (
1517
+ this.value === this.max ||
1518
+ this.value === this.min ||
1519
+ changedProperties.get("disableMax") ||
1520
+ changedProperties.get("disableMin")
1521
+ ) {
1522
+ this.jumpFocusToEnabled();
1523
+ }
1524
+ }
1525
+ /* eslint-disable no-extra-parens */
1526
+ if (
1527
+ (changedProperties.has("disableMax") &&
1528
+ changedProperties.get("disableMax") !== undefined) ||
1529
+ (changedProperties.has("disableMin") &&
1530
+ changedProperties.get("disableMin") !== undefined)
1531
+ ) {
1532
+ this.jumpFocusToEnabled();
1533
+ }
1534
+ /* eslint-enable no-extra-parens */
1535
+ }
1536
+
1537
+ render() {
1538
+ return u`
1539
+ <div class="counter">
1540
+ <div class="content" >
1541
+ <label class="label"><slot></slot></label>
1542
+ <slot name="description"></slot>
1543
+ </div>
1544
+
1545
+ <div part="counterControl">
1546
+ <auro-counter-button
1547
+ part="controlMinus"
1548
+ @click="${() => this.decrement()}"
1549
+ ?disabled="${this.disabled || this.disableMin || this.isIncrementDisabled(this.min)}"
1550
+ >
1551
+ <${this.iconTag} class="controlIcon" slot="icon" customSvg> ${IconUtil.generateSvgHtml(minusIcon)} </${this.iconTag}>
1552
+ </auro-counter-button>
1553
+
1554
+ <div class="quantityWrapper">
1555
+ <div class="quantity">${this.value !== undefined ? this.value : this.min}</div>
1556
+ </div>
1557
+
1558
+ <auro-counter-button
1559
+ part="controlPlus"
1560
+ @click="${() => this.increment()}"
1561
+ ?disabled="${this.disabled || this.disableMax || this.isIncrementDisabled(this.max)}"
1562
+ >
1563
+ <${this.iconTag} class="controlIcon" slot="icon" customSvg> ${IconUtil.generateSvgHtml(plusIcon)} </${this.iconTag}>
1564
+ </auro-counter-button>
1565
+ </div>
1566
+ </div>
1567
+ `;
1568
+ }
1569
+ }
1570
+
1571
+ var styleCss = i$5`:host{position:relative;display:block}.counters{display:flex;flex-direction:column;gap:var(--ds-size-300, 1.5rem)}.counters ::slotted(*:not(:first-child)){padding-top:var(--ds-size-300, 1.5rem);border-top-width:1px;border-top-style:solid}`;
1572
+
1573
+ var colorCss = i$5`.counters ::slotted(*:not(:first-child)){border-color:var(--ds-color-border-divider-default, rgba(0, 0, 0, 0.12))}`;
1574
+
1575
+ // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1576
+ // See LICENSE in the project root for license information.
1577
+
1578
+
1579
+ /**
1580
+ * Auro Counter Group is a group of counter components.
1581
+ *
1582
+ * This web component provides a flexible interface for grouping multiple counters, supporting
1583
+ * validation, custom validity messages, and disabled states based on the group's value.
1584
+ *
1585
+ * @element auro-counter-group
1586
+ * @extends LitElement
1587
+ * @slot Default - Slot for counter elements.
1588
+ */
1589
+ class AuroCounterGroup extends r {
1590
+ constructor() {
1591
+ super();
1592
+
1593
+ this.max = undefined;
1594
+ this.min = undefined;
1595
+ this.validity = undefined;
1596
+ this.value = undefined;
1597
+
1598
+ /**
1599
+ * @private
1600
+ */
1601
+ this.validation = new AuroFormValidation();
1602
+ }
1603
+
1604
+ static get styles() {
1605
+ return [
1606
+ colorCss,
1607
+ styleCss
1608
+ ];
1609
+ }
1610
+
1611
+ static get properties() {
1612
+ return {
1613
+
1614
+ /**
1615
+ * The maximum value allowed for the whole group of counters.
1616
+ */
1617
+ max: {
1618
+ type: Number,
1619
+ reflect: true,
1620
+ },
1621
+
1622
+ /**
1623
+ * The minimum value allowed for the whole group of counters.
1624
+ */
1625
+ min: {
1626
+ type: Number,
1627
+ reflect: true,
1628
+ },
1629
+
1630
+ /**
1631
+ * Reflects the validity state.
1632
+ */
1633
+ validity: {
1634
+ type: String,
1635
+ reflect: true,
1636
+ },
1637
+
1638
+ /**
1639
+ * The current value.
1640
+ */
1641
+ value: {
1642
+ type: Number,
1643
+ },
1644
+ };
1645
+ }
1646
+
1647
+ /**
1648
+ * Dynamically disables increment/decrement buttons on a counter based on group value.
1649
+ * This method checks the total aggregated value against the group's min and max properties.
1650
+ * If the total value is at or below the minimum, the counter's decrement button is disabled; if at or above the maximum, the increment button is disabled.
1651
+ *
1652
+ * @param {HTMLElement} counter - The counter element to potentially disable.
1653
+ * @private
1654
+ */
1655
+ manageDisabled(counter) {
1656
+ counter.disableMax = false;
1657
+ counter.disableMin = false;
1658
+
1659
+ if (this.value <= this.min) {
1660
+ counter.disableMin = true;
1661
+ } else if (this.value >= this.max) {
1662
+ counter.disableMax = true;
1663
+ }
1664
+ }
1665
+
1666
+
1667
+ /**
1668
+ * Attaches input event listeners to all auro-counter elements within the component.
1669
+ * This method selects all `auro-counter` and `[auto-counter]` elements and adds an `input` event listener to each.
1670
+ * The listener calls `this.updateValue()` whenever the value of a counter changes.
1671
+ * @private
1672
+ */
1673
+ configureCounters() {
1674
+ const counters = this.querySelectorAll("auro-counter, [auto-counter]");
1675
+ counters.forEach((counter) => {
1676
+ counter.addEventListener("input", () => this.updateValue());
1677
+ });
1678
+ }
1679
+
1680
+ /**
1681
+ * Safely converts a value to a number, returning 0 if invalid.
1682
+ * @private
1683
+ * @param {*} value - The value to convert.
1684
+ * @returns {number} The converted number or 0 if invalid.
1685
+ */
1686
+ safeNumberConversion(value) {
1687
+ const num = Number(value);
1688
+ return Number.isNaN(num) ? 0 : num;
1689
+ }
1690
+
1691
+ /**
1692
+ * Updates the aggregate value based on the values of contained auro-counter components.
1693
+ * This method queries for all `auro-counter` elements, sums their values, and updates the component's `value` property.
1694
+ * Additionally, it iterates through each counter and calls `manageDisabled()` on it.
1695
+ * @private
1696
+ */
1697
+ updateValue() {
1698
+ const counters = this.querySelectorAll("auro-counter, [auro-counter]");
1699
+ this.value = Array.from(counters).reduce(
1700
+ (total, counter) => total + this.safeNumberConversion(counter.value),
1701
+ 0,
1702
+ );
1703
+ counters.forEach((counter) => {
1704
+ this.manageDisabled(counter);
1705
+ });
1706
+ }
1707
+
1708
+ updated(changedProperties) {
1709
+ if (changedProperties.has("value")) {
1710
+ this.validation.validate(this);
1711
+ this.dispatchEvent(
1712
+ new CustomEvent("input", {
1713
+ detail: {
1714
+ value: this.value,
1715
+ },
1716
+ }),
1717
+ {
1718
+ bubble: true,
1719
+ composable: true,
1720
+ }
1721
+ );
1722
+ }
1723
+ }
1724
+
1725
+ /**
1726
+ * Registers the custom element with the browser.
1727
+ * @param {string} [name="auro-counter-group"] - Custom element name to register.
1728
+ * @example
1729
+ * AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
1730
+ */
1731
+ static register(name = "auro-counter-group") {
1732
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroCounterGroup);
1733
+ }
1734
+
1735
+ // function that renders the HTML and CSS into the scope of the component
1736
+ render() {
1737
+ return u`
1738
+ <div class="counters">
1739
+ <slot @slotchange=${() => this.configureCounters()}></slot>
1740
+ </div>
1741
+ `;
1742
+ }
105
1743
  }
106
1744
 
107
1745
  AuroCounter.register();