@warp-ds/elements 2.4.0-next.6 → 2.4.0-next.8

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 (362) hide show
  1. package/dist/api.js.map +2 -2
  2. package/dist/custom-elements.json +385 -648
  3. package/dist/index.d.ts +3334 -1407
  4. package/dist/packages/affix/{index.js → affix.js} +1 -1
  5. package/dist/packages/affix/{index.js.map → affix.js.map} +1 -1
  6. package/dist/packages/affix/affix.react.stories.d.ts +1 -1
  7. package/dist/packages/affix/affix.stories.d.ts +2 -2
  8. package/dist/packages/affix/affix.stories.js +1 -1
  9. package/dist/packages/affix/affix.test.d.ts +1 -1
  10. package/dist/packages/affix/affix.test.js +1 -1
  11. package/dist/packages/affix/react.d.ts +1 -1
  12. package/dist/packages/alert/{index.js → alert.js} +1 -1
  13. package/dist/packages/alert/{index.js.map → alert.js.map} +1 -1
  14. package/dist/packages/alert/alert.react.stories.d.ts +1 -1
  15. package/dist/packages/alert/alert.stories.d.ts +2 -2
  16. package/dist/packages/alert/alert.stories.js +1 -1
  17. package/dist/packages/alert/alert.test.d.ts +1 -1
  18. package/dist/packages/alert/alert.test.js +1 -1
  19. package/dist/packages/alert/react.d.ts +1 -1
  20. package/dist/packages/alert/react.js +1 -1
  21. package/dist/packages/attention/{index.d.ts → attention.d.ts} +1 -1
  22. package/dist/packages/attention/{index.js → attention.js} +15 -15
  23. package/dist/packages/attention/{index.js.map → attention.js.map} +4 -4
  24. package/dist/packages/attention/attention.react.stories.d.ts +1 -1
  25. package/dist/packages/attention/attention.stories.d.ts +3 -3
  26. package/dist/packages/attention/attention.stories.js +2 -2
  27. package/dist/packages/attention/attention.test.d.ts +1 -1
  28. package/dist/packages/attention/attention.test.js +1 -1
  29. package/dist/packages/attention/react.d.ts +1 -1
  30. package/dist/packages/attention/react.js +1 -1
  31. package/dist/packages/badge/{index.js → badge.js} +1 -1
  32. package/dist/packages/badge/{index.js.map → badge.js.map} +1 -1
  33. package/dist/packages/badge/badge.react.stories.d.ts +3 -3
  34. package/dist/packages/badge/badge.stories.d.ts +2 -2
  35. package/dist/packages/badge/badge.stories.js +1 -1
  36. package/dist/packages/badge/badge.test.d.ts +1 -1
  37. package/dist/packages/badge/badge.test.js +1 -1
  38. package/dist/packages/badge/react.d.ts +1 -1
  39. package/dist/packages/badge/react.js +1 -1
  40. package/dist/packages/box/{index.js → box.js} +1 -1
  41. package/dist/packages/box/{index.js.map → box.js.map} +1 -1
  42. package/dist/packages/box/box.react.stories.d.ts +3 -3
  43. package/dist/packages/box/box.stories.d.ts +2 -2
  44. package/dist/packages/box/box.stories.js +1 -1
  45. package/dist/packages/box/box.test.d.ts +1 -1
  46. package/dist/packages/box/box.test.js +1 -1
  47. package/dist/packages/box/react.d.ts +1 -1
  48. package/dist/packages/box/react.js +1 -1
  49. package/dist/packages/box/slot.test.d.ts +1 -1
  50. package/dist/packages/box/slot.test.js +1 -1
  51. package/dist/packages/breadcrumbs/{index.js → breadcrumbs.js} +1 -1
  52. package/dist/packages/breadcrumbs/{index.js.map → breadcrumbs.js.map} +1 -1
  53. package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +3 -3
  54. package/dist/packages/breadcrumbs/breadcrumbs.stories.d.ts +2 -2
  55. package/dist/packages/breadcrumbs/breadcrumbs.stories.js +1 -1
  56. package/dist/packages/breadcrumbs/breadcrumbs.test.d.ts +1 -1
  57. package/dist/packages/breadcrumbs/breadcrumbs.test.js +1 -1
  58. package/dist/packages/breadcrumbs/react.d.ts +1 -1
  59. package/dist/packages/breadcrumbs/react.js +1 -1
  60. package/dist/packages/button/{index.d.ts → button.d.ts} +1 -1
  61. package/dist/packages/button/{index.js → button.js} +12 -12
  62. package/dist/packages/button/button.js.map +7 -0
  63. package/dist/packages/button/button.react.stories.d.ts +3 -3
  64. package/dist/packages/button/button.stories.d.ts +2 -2
  65. package/dist/packages/button/button.stories.js +1 -1
  66. package/dist/packages/button/button.test.d.ts +1 -1
  67. package/dist/packages/button/button.test.js +1 -1
  68. package/dist/packages/button/react.d.ts +1 -1
  69. package/dist/packages/button/react.js +1 -1
  70. package/dist/packages/card/{index.js → card.js} +1 -1
  71. package/dist/packages/card/{index.js.map → card.js.map} +1 -1
  72. package/dist/packages/card/card.react.stories.d.ts +3 -3
  73. package/dist/packages/card/card.stories.d.ts +2 -2
  74. package/dist/packages/card/card.stories.js +1 -1
  75. package/dist/packages/card/card.test.d.ts +1 -1
  76. package/dist/packages/card/card.test.js +1 -1
  77. package/dist/packages/card/react.d.ts +1 -1
  78. package/dist/packages/card/react.js +1 -1
  79. package/dist/packages/checkbox/checkbox.stories.d.ts +2 -1
  80. package/dist/packages/checkbox/checkbox.stories.js +2 -1
  81. package/dist/packages/checkbox/react.d.ts +0 -2
  82. package/dist/packages/checkbox/react.js +0 -5
  83. package/dist/packages/{checkbox → checkbox-group}/checkbox-group.js.map +1 -1
  84. package/dist/packages/checkbox-group/react.d.ts +2 -0
  85. package/dist/packages/checkbox-group/react.js +11 -0
  86. package/dist/packages/combobox/{index.js → combobox.js} +2 -3
  87. package/dist/packages/combobox/{index.js.map → combobox.js.map} +3 -3
  88. package/dist/packages/combobox/combobox.react.stories.d.ts +4 -4
  89. package/dist/packages/combobox/combobox.stories.d.ts +3 -3
  90. package/dist/packages/combobox/combobox.stories.js +2 -2
  91. package/dist/packages/combobox/combobox.test.d.ts +2 -2
  92. package/dist/packages/combobox/combobox.test.js +2 -2
  93. package/dist/packages/combobox/react.d.ts +1 -1
  94. package/dist/packages/combobox/react.js +1 -1
  95. package/dist/packages/combobox/styles.js +1 -2
  96. package/dist/packages/datepicker/DatePicker.test.d.ts +2 -2
  97. package/dist/packages/datepicker/DatePicker.test.js +2 -2
  98. package/dist/packages/datepicker/datepicker.react.stories.d.ts +1 -1
  99. package/dist/packages/datepicker/datepicker.stories.d.ts +3 -3
  100. package/dist/packages/datepicker/datepicker.stories.js +2 -2
  101. package/dist/packages/datepicker/datepicker.test.d.ts +2 -2
  102. package/dist/packages/datepicker/datepicker.test.js +2 -2
  103. package/dist/packages/datepicker/react.js +1 -1
  104. package/dist/packages/{deadtoggle/index.js → dead-toggle/dead-toggle.js} +1 -1
  105. package/dist/packages/{deadtoggle/index.js.map → dead-toggle/dead-toggle.js.map} +1 -1
  106. package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +15 -0
  107. package/dist/packages/{deadtoggle → dead-toggle}/dead-toggle.stories.d.ts +2 -2
  108. package/dist/packages/{deadtoggle → dead-toggle}/dead-toggle.stories.js +1 -1
  109. package/dist/packages/dead-toggle/dead-toggle.test.d.ts +1 -0
  110. package/dist/packages/{deadtoggle → dead-toggle}/dead-toggle.test.js +1 -1
  111. package/dist/packages/{deadtoggle → dead-toggle}/react.d.ts +1 -1
  112. package/dist/packages/expandable/{index.js → expandable.js} +1 -1
  113. package/dist/packages/expandable/{index.js.map → expandable.js.map} +1 -1
  114. package/dist/packages/expandable/expandable.react.stories.d.ts +3 -3
  115. package/dist/packages/expandable/expandable.stories.d.ts +2 -2
  116. package/dist/packages/expandable/expandable.stories.js +1 -1
  117. package/dist/packages/expandable/expandable.test.d.ts +1 -1
  118. package/dist/packages/expandable/expandable.test.js +1 -1
  119. package/dist/packages/expandable/react.d.ts +1 -1
  120. package/dist/packages/expandable/react.js +1 -1
  121. package/dist/packages/link/{index.js → link.js} +3 -3
  122. package/dist/packages/link/link.js.map +7 -0
  123. package/dist/packages/link/link.react.stories.d.ts +3 -3
  124. package/dist/packages/link/link.stories.d.ts +2 -2
  125. package/dist/packages/link/link.stories.js +1 -1
  126. package/dist/packages/link/link.test.d.ts +1 -1
  127. package/dist/packages/link/link.test.js +1 -1
  128. package/dist/packages/link/react.d.ts +1 -1
  129. package/dist/packages/link/react.js +1 -1
  130. package/dist/packages/link/styles.js +2 -2
  131. package/dist/packages/modal/index.d.ts +6 -3
  132. package/dist/packages/modal/index.js +10 -2717
  133. package/dist/packages/modal/{modal-main.js → modal.js} +1 -1
  134. package/dist/packages/modal/{modal-main.js.map → modal.js.map} +1 -1
  135. package/dist/packages/modal/modal.react.stories.d.ts +1 -1
  136. package/dist/packages/modal/modal.stories.d.ts +6 -3
  137. package/dist/packages/modal/modal.stories.js +3 -1
  138. package/dist/packages/modal/react.d.ts +3 -6
  139. package/dist/packages/modal/react.js +4 -15
  140. package/dist/packages/{modal → modal-footer}/modal-footer.d.ts +2 -2
  141. package/dist/packages/{modal → modal-footer}/modal-footer.js +4 -4
  142. package/dist/packages/modal-footer/modal-footer.js.map +7 -0
  143. package/dist/packages/modal-footer/react.d.ts +2 -0
  144. package/dist/packages/modal-footer/react.js +11 -0
  145. package/dist/packages/{modal → modal-header}/modal-header.d.ts +1 -1
  146. package/dist/packages/{modal → modal-header}/modal-header.js +4 -4
  147. package/dist/packages/modal-header/modal-header.js.map +7 -0
  148. package/dist/packages/modal-header/react.d.ts +5 -0
  149. package/dist/packages/modal-header/react.js +15 -0
  150. package/dist/packages/{pageindicator/index.js → page-indicator/page-indicator.js} +9 -9
  151. package/dist/packages/{pageindicator/index.js.map → page-indicator/page-indicator.js.map} +3 -3
  152. package/dist/packages/{pageindicator/pageindicator.react.stories.d.ts → page-indicator/page-indicator.react.stories.d.ts} +3 -3
  153. package/dist/packages/{pageindicator/pageindicator.stories.d.ts → page-indicator/page-indicator.stories.d.ts} +1 -1
  154. package/dist/packages/{pageindicator/pageindicator.stories.js → page-indicator/page-indicator.stories.js} +7 -7
  155. package/dist/packages/{pageindicator → page-indicator}/react.d.ts +1 -1
  156. package/dist/packages/{pageindicator → page-indicator}/react.js +2 -2
  157. package/dist/packages/{pageindicator → page-indicator}/style.js +4 -4
  158. package/dist/packages/pagination/{index.js → pagination.js} +5 -5
  159. package/dist/packages/pagination/pagination.js.map +7 -0
  160. package/dist/packages/pagination/pagination.react.stories.d.ts +4 -4
  161. package/dist/packages/pagination/pagination.stories.d.ts +2 -2
  162. package/dist/packages/pagination/pagination.stories.js +1 -1
  163. package/dist/packages/pagination/pagination.test.d.ts +1 -1
  164. package/dist/packages/pagination/pagination.test.js +1 -1
  165. package/dist/packages/pagination/react.d.ts +1 -1
  166. package/dist/packages/pagination/react.js +1 -1
  167. package/dist/packages/pill/{index.js → pill.js} +1 -1
  168. package/dist/packages/pill/{index.js.map → pill.js.map} +1 -1
  169. package/dist/packages/pill/pill.react.stories.d.ts +4 -4
  170. package/dist/packages/pill/pill.stories.d.ts +2 -2
  171. package/dist/packages/pill/pill.stories.js +1 -1
  172. package/dist/packages/pill/pill.test.d.ts +1 -1
  173. package/dist/packages/pill/pill.test.js +1 -1
  174. package/dist/packages/pill/react.d.ts +1 -1
  175. package/dist/packages/pill/react.js +1 -1
  176. package/dist/packages/radio/radio-styles.js +0 -1
  177. package/dist/packages/radio/radio.js +120 -120
  178. package/dist/packages/radio/radio.js.map +4 -4
  179. package/dist/packages/radio/radio.stories.d.ts +3 -3
  180. package/dist/packages/radio/radio.stories.js +47 -3688
  181. package/dist/packages/radio/react.d.ts +0 -7
  182. package/dist/packages/radio/react.js +1 -12
  183. package/dist/packages/{radio → radio-group}/radio-group-styles.js +3 -3
  184. package/dist/packages/{radio → radio-group}/radio-group.d.ts +4 -4
  185. package/dist/packages/{radio → radio-group}/radio-group.js +112 -112
  186. package/dist/packages/radio-group/radio-group.js.map +7 -0
  187. package/dist/packages/radio-group/react.d.ts +7 -0
  188. package/dist/packages/radio-group/react.js +17 -0
  189. package/dist/packages/select/react.d.ts +1 -1
  190. package/dist/packages/select/react.js +1 -1
  191. package/dist/packages/select/{index.js → select.js} +3 -3
  192. package/dist/packages/select/select.js.map +7 -0
  193. package/dist/packages/select/select.react.stories.d.ts +4 -4
  194. package/dist/packages/select/select.react.stories.js +1 -1
  195. package/dist/packages/select/select.stories.d.ts +2 -2
  196. package/dist/packages/select/select.stories.js +1 -1
  197. package/dist/packages/select/select.test.d.ts +1 -1
  198. package/dist/packages/select/select.test.js +1 -1
  199. package/dist/packages/slider/index.d.ts +1 -1
  200. package/dist/packages/slider/index.js +1 -1
  201. package/dist/packages/slider/react.d.ts +1 -6
  202. package/dist/packages/slider/react.js +3 -10
  203. package/dist/packages/slider/slider.js +5 -5
  204. package/dist/packages/slider/slider.js.map +4 -4
  205. package/dist/packages/slider/slider.stories.d.ts +5 -4
  206. package/dist/packages/slider/slider.stories.js +5 -4
  207. package/dist/packages/slider/slider.test.d.ts +5 -4
  208. package/dist/packages/slider/slider.test.js +5 -4
  209. package/dist/packages/slider-thumb/react.d.ts +6 -0
  210. package/dist/packages/slider-thumb/react.js +15 -0
  211. package/dist/packages/{slider → slider-thumb}/slider-thumb.d.ts +1 -1
  212. package/dist/packages/{slider → slider-thumb}/slider-thumb.js +14 -14
  213. package/dist/packages/slider-thumb/slider-thumb.js.map +7 -0
  214. package/dist/packages/slider-thumb/styles.js +2 -0
  215. package/dist/packages/step/react.d.ts +2 -0
  216. package/dist/packages/step/react.js +11 -0
  217. package/dist/packages/step/step.d.ts +22 -0
  218. package/dist/packages/step/step.js +2461 -0
  219. package/dist/packages/{modal/index.js.map → step/step.js.map} +4 -4
  220. package/dist/packages/step-indicator/index.d.ts +2 -0
  221. package/dist/packages/step-indicator/index.js +2 -0
  222. package/dist/packages/step-indicator/react.d.ts +3 -0
  223. package/dist/packages/{stepindicator → step-indicator}/react.js +3 -6
  224. package/dist/packages/step-indicator/step-indicator.d.ts +15 -0
  225. package/dist/packages/step-indicator/step-indicator.js +2454 -0
  226. package/dist/packages/step-indicator/step-indicator.js.map +7 -0
  227. package/dist/packages/{stepindicator → step-indicator}/stepindicator.react.stories.d.ts +1 -1
  228. package/dist/packages/{stepindicator → step-indicator}/stepindicator.stories.d.ts +2 -1
  229. package/dist/packages/{stepindicator → step-indicator}/stepindicator.stories.js +2 -1
  230. package/dist/packages/step-indicator/styles.d.ts +1 -0
  231. package/dist/packages/step-indicator/styles.js +2 -0
  232. package/dist/packages/switch/react.d.ts +1 -1
  233. package/dist/packages/switch/react.js +1 -1
  234. package/dist/packages/switch/{index.js → switch.js} +1 -1
  235. package/dist/packages/switch/{index.js.map → switch.js.map} +1 -1
  236. package/dist/packages/switch/switch.react.stories.d.ts +1 -1
  237. package/dist/packages/switch/switch.stories.d.ts +1 -1
  238. package/dist/packages/switch/switch.stories.js +1 -1
  239. package/dist/packages/switch/switch.test.d.ts +1 -1
  240. package/dist/packages/switch/switch.test.js +2 -2
  241. package/dist/packages/tab/react.d.ts +7 -0
  242. package/dist/packages/tab/react.js +17 -0
  243. package/dist/packages/{tabs → tab}/tab.js +3 -3
  244. package/dist/packages/tab/tab.js.map +7 -0
  245. package/dist/packages/tab-panel/react.d.ts +2 -0
  246. package/dist/packages/tab-panel/react.js +11 -0
  247. package/dist/packages/{tabs → tab-panel}/tab-panel.js +1 -1
  248. package/dist/packages/tab-panel/tab-panel.js.map +7 -0
  249. package/dist/packages/tabs/index.d.ts +2 -2
  250. package/dist/packages/tabs/index.js +4 -2473
  251. package/dist/packages/tabs/react.d.ts +3 -8
  252. package/dist/packages/tabs/react.js +4 -17
  253. package/dist/packages/tabs/styles.js +1 -1
  254. package/dist/packages/tabs/tabs.js +1 -1
  255. package/dist/packages/tabs/tabs.js.map +2 -2
  256. package/dist/packages/tabs/tabs.react.stories.d.ts +1 -1
  257. package/dist/packages/tabs/tabs.react.stories.js +2 -2
  258. package/dist/packages/tabs/tabs.stories.d.ts +3 -1
  259. package/dist/packages/tabs/tabs.stories.js +3 -1
  260. package/dist/packages/textarea/react.d.ts +1 -1
  261. package/dist/packages/textarea/react.js +1 -1
  262. package/dist/packages/textarea/textarea.react.stories.d.ts +1 -1
  263. package/dist/packages/textarea/textarea.stories.d.ts +2 -2
  264. package/dist/packages/textarea/textarea.stories.js +1 -1
  265. package/dist/packages/textarea/textarea.test.d.ts +1 -1
  266. package/dist/packages/textarea/textarea.test.js +1 -1
  267. package/dist/packages/textfield/react.d.ts +1 -1
  268. package/dist/packages/textfield/react.js +1 -1
  269. package/dist/packages/textfield/{index.js → textfield.js} +1 -1
  270. package/dist/packages/textfield/{index.js.map → textfield.js.map} +1 -1
  271. package/dist/packages/textfield/textfield.react.stories.d.ts +4 -4
  272. package/dist/packages/textfield/textfield.stories.d.ts +2 -2
  273. package/dist/packages/textfield/textfield.stories.js +1 -1
  274. package/dist/packages/textfield/textfield.test.d.ts +2 -2
  275. package/dist/packages/textfield/textfield.test.js +2 -2
  276. package/dist/packages/toast/index.d.ts +5 -3
  277. package/dist/packages/toast/index.js +7 -2483
  278. package/dist/packages/toast/toast.stories.d.ts +4 -3
  279. package/dist/packages/toast/toast.stories.js +3 -2
  280. package/dist/packages/toast-container/styles.d.ts +1 -0
  281. package/dist/packages/toast-container/styles.js +2 -0
  282. package/dist/packages/{toast → toast-container}/toast-container.d.ts +1 -1
  283. package/dist/packages/toast-container/toast-container.js.map +7 -0
  284. package/dist/web-types.json +51 -51
  285. package/package.json +94 -30
  286. package/dist/packages/button/index.js.map +0 -7
  287. package/dist/packages/checkbox/index.d.ts +0 -2
  288. package/dist/packages/checkbox/index.js +0 -2
  289. package/dist/packages/datepicker/index.d.ts +0 -1
  290. package/dist/packages/datepicker/index.js +0 -2785
  291. package/dist/packages/datepicker/index.js.map +0 -7
  292. package/dist/packages/deadtoggle/dead-toggle.react.stories.d.ts +0 -15
  293. package/dist/packages/deadtoggle/dead-toggle.test.d.ts +0 -1
  294. package/dist/packages/link/index.js.map +0 -7
  295. package/dist/packages/modal/modal-footer.js.map +0 -7
  296. package/dist/packages/modal/modal-header.js.map +0 -7
  297. package/dist/packages/pagination/index.js.map +0 -7
  298. package/dist/packages/radio/index.d.ts +0 -2
  299. package/dist/packages/radio/index.js +0 -2
  300. package/dist/packages/radio/radio-group-styles.js.map +0 -7
  301. package/dist/packages/radio/radio-group.js.map +0 -7
  302. package/dist/packages/radio/radio-styles.js.map +0 -7
  303. package/dist/packages/radio/radio.stories.js.map +0 -7
  304. package/dist/packages/select/index.js.map +0 -7
  305. package/dist/packages/slider/slider-thumb.js.map +0 -7
  306. package/dist/packages/stepindicator/index.d.ts +0 -37
  307. package/dist/packages/stepindicator/index.js +0 -2465
  308. package/dist/packages/stepindicator/index.js.map +0 -7
  309. package/dist/packages/stepindicator/react.d.ts +0 -3
  310. package/dist/packages/stepindicator/styles.js +0 -2
  311. package/dist/packages/tabs/index.js.map +0 -7
  312. package/dist/packages/tabs/tab-panel.js.map +0 -7
  313. package/dist/packages/tabs/tab.js.map +0 -7
  314. package/dist/packages/textarea/index.d.ts +0 -1
  315. package/dist/packages/textarea/index.js +0 -1
  316. package/dist/packages/toast/index.js.map +0 -7
  317. package/dist/packages/toast/toast-container.js.map +0 -7
  318. package/dist/packages/affix/{index.d.ts → affix.d.ts} +0 -0
  319. package/dist/packages/alert/{index.d.ts → alert.d.ts} +0 -0
  320. package/dist/packages/badge/{index.d.ts → badge.d.ts} +0 -0
  321. package/dist/packages/box/{index.d.ts → box.d.ts} +0 -0
  322. package/dist/packages/breadcrumbs/{index.d.ts → breadcrumbs.d.ts} +0 -0
  323. package/dist/packages/card/{index.d.ts → card.d.ts} +0 -0
  324. package/dist/packages/{checkbox → checkbox-group}/checkbox-group.d.ts +0 -0
  325. package/dist/packages/{checkbox → checkbox-group}/checkbox-group.js +0 -0
  326. package/dist/packages/combobox/{index.d.ts → combobox.d.ts} +0 -0
  327. package/dist/packages/{deadtoggle/index.d.ts → dead-toggle/dead-toggle.d.ts} +0 -0
  328. package/dist/packages/{deadtoggle → dead-toggle}/dead-toggle.react.stories.js +0 -0
  329. package/dist/packages/{deadtoggle → dead-toggle}/react.js +1 -1
  330. /package/dist/packages/expandable/{index.d.ts → expandable.d.ts} +0 -0
  331. /package/dist/packages/link/{index.d.ts → link.d.ts} +0 -0
  332. /package/dist/packages/modal/{modal-main.d.ts → modal.d.ts} +0 -0
  333. /package/dist/packages/{pageindicator/index.d.ts → page-indicator/page-indicator.d.ts} +0 -0
  334. /package/dist/packages/{pageindicator/pageindicator.react.stories.js → page-indicator/page-indicator.react.stories.js} +0 -0
  335. /package/dist/packages/{pageindicator → page-indicator}/style.d.ts +0 -0
  336. /package/dist/packages/pagination/{index.d.ts → pagination.d.ts} +0 -0
  337. /package/dist/packages/pill/{index.d.ts → pill.d.ts} +0 -0
  338. /package/dist/packages/{radio → radio-group}/radio-group-styles.d.ts +0 -0
  339. /package/dist/packages/select/{index.d.ts → select.d.ts} +0 -0
  340. /package/dist/packages/{slider → slider-thumb}/SliderThumb.d.ts +0 -0
  341. /package/dist/packages/{slider → slider-thumb}/SliderThumb.js +0 -0
  342. /package/dist/packages/{slider → slider-thumb}/oddbird-css-anchor-positioning.d.ts +0 -0
  343. /package/dist/packages/{slider → slider-thumb}/oddbird-css-anchor-positioning.js +0 -0
  344. /package/dist/packages/{slider → slider-thumb}/styles/w-slider-thumb.styles.d.ts +0 -0
  345. /package/dist/packages/{slider → slider-thumb}/styles/w-slider-thumb.styles.js +0 -0
  346. /package/dist/packages/{stepindicator → slider-thumb}/styles.d.ts +0 -0
  347. /package/dist/packages/{stepindicator → step-indicator}/locales/da/messages.d.mts +0 -0
  348. /package/dist/packages/{stepindicator → step-indicator}/locales/da/messages.mjs +0 -0
  349. /package/dist/packages/{stepindicator → step-indicator}/locales/en/messages.d.mts +0 -0
  350. /package/dist/packages/{stepindicator → step-indicator}/locales/en/messages.mjs +0 -0
  351. /package/dist/packages/{stepindicator → step-indicator}/locales/fi/messages.d.mts +0 -0
  352. /package/dist/packages/{stepindicator → step-indicator}/locales/fi/messages.mjs +0 -0
  353. /package/dist/packages/{stepindicator → step-indicator}/locales/nb/messages.d.mts +0 -0
  354. /package/dist/packages/{stepindicator → step-indicator}/locales/nb/messages.mjs +0 -0
  355. /package/dist/packages/{stepindicator → step-indicator}/locales/sv/messages.d.mts +0 -0
  356. /package/dist/packages/{stepindicator → step-indicator}/locales/sv/messages.mjs +0 -0
  357. /package/dist/packages/{stepindicator → step-indicator}/stepindicator.react.stories.js +0 -0
  358. /package/dist/packages/switch/{index.d.ts → switch.d.ts} +0 -0
  359. /package/dist/packages/{tabs → tab}/tab.d.ts +0 -0
  360. /package/dist/packages/{tabs → tab-panel}/tab-panel.d.ts +0 -0
  361. /package/dist/packages/textfield/{index.d.ts → textfield.d.ts} +0 -0
  362. /package/dist/packages/{toast → toast-container}/toast-container.js +0 -0
@@ -1,5 +1,5 @@
1
- var Kr=Object.create;var dt=Object.defineProperty;var $t=Object.getOwnPropertyDescriptor;var eo=Object.getOwnPropertyNames;var to=Object.getPrototypeOf,ro=Object.prototype.hasOwnProperty;var _t=e=>{throw TypeError(e)};var Ct=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var oo=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of eo(t))!ro.call(e,i)&&i!==r&&dt(e,i,{get:()=>t[i],enumerable:!(o=$t(t,i))||o.enumerable});return e};var io=(e,t,r)=>(r=e!=null?Kr(to(e)):{},oo(t||!e||!e.__esModule?dt(r,"default",{value:e,enumerable:!0}):r,e));var $=(e,t,r,o)=>{for(var i=o>1?void 0:o?$t(t,r):t,a=e.length-1,n;a>=0;a--)(n=e[a])&&(i=(o?n(t,r,i):n(i))||i);return o&&i&&dt(t,r,i),i};var St=(e,t,r)=>t.has(e)||_t("Cannot "+r);var Et=(e,t,r)=>(St(e,t,"read from private field"),r?r.call(e):t.get(e)),Lt=(e,t,r)=>t.has(e)?_t("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ot=(e,t,r,o)=>(St(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);var At=Ct(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.errorMessages=pe.ErrorType=void 0;var ke;(function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"})(ke=pe.ErrorType||(pe.ErrorType={}));pe.errorMessages=new Map([[ke.MalformedUnicode,"malformed Unicode character escape sequence"],[ke.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[ke.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[ke.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[ke.EndOfString,"malformed escape sequence at end of string"]])});var Tt=Ct(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.unraw=ae.errorMessages=ae.ErrorType=void 0;var B=At();Object.defineProperty(ae,"ErrorType",{enumerable:!0,get:function(){return B.ErrorType}});Object.defineProperty(ae,"errorMessages",{enumerable:!0,get:function(){return B.errorMessages}});function no(e){return!e.match(/[^a-f0-9]/i)?parseInt(e,16):NaN}function je(e,t,r){let o=no(e);if(Number.isNaN(o)||r!==void 0&&r!==e.length)throw new SyntaxError(B.errorMessages.get(t));return o}function ao(e){let t=je(e,B.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}function Dt(e,t){let r=je(e,B.ErrorType.MalformedUnicode,4);if(t!==void 0){let o=je(t,B.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,o)}return String.fromCharCode(r)}function so(e){return e.charAt(0)==="{"&&e.charAt(e.length-1)==="}"}function lo(e){if(!so(e))throw new SyntaxError(B.errorMessages.get(B.ErrorType.MalformedUnicode));let t=e.slice(1,-1),r=je(t,B.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(o){throw o instanceof RangeError?new SyntaxError(B.errorMessages.get(B.ErrorType.CodePointLimit)):o}}function co(e,t=!1){if(t)throw new SyntaxError(B.errorMessages.get(B.ErrorType.OctalDeprecation));let r=parseInt(e,8);return String.fromCharCode(r)}var uo=new Map([["b","\b"],["f","\f"],["n",`
2
- `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function go(e){return uo.get(e)||e}var mo=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function zt(e,t=!1){return e.replace(mo,function(r,o,i,a,n,s,l,d,c){if(o!==void 0)return"\\";if(i!==void 0)return ao(i);if(a!==void 0)return lo(a);if(n!==void 0)return Dt(n,s);if(l!==void 0)return Dt(l);if(d==="0")return"\0";if(d!==void 0)return co(d,!t);if(c!==void 0)return go(c);throw new SyntaxError(B.errorMessages.get(B.ErrorType.EndOfString))})}ae.unraw=zt;ae.default=zt});var ye=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.reduce(function(r,o){return r.concat(typeof o=="string"?o:Array.isArray(o)?ye.apply(void 0,o):typeof o=="object"&&o?Object.keys(o).map(function(i){return o[i]?i:""}):"")},[]).join(" ")};var Rt=io(Tt(),1);var de=e=>typeof e=="string",po=e=>typeof e=="function",Mt=new Map,jt="en";function pt(e){return[...Array.isArray(e)?e:[e],jt]}function bt(e,t,r){let o=pt(e);r||(r="default");let i;if(typeof r=="string")switch(i={day:"numeric",month:"short",year:"numeric"},r){case"full":i.weekday="long";case"long":i.month="long";break;case"short":i.month="numeric";break}else i=r;return Fe(()=>Ne("date",o,r),()=>new Intl.DateTimeFormat(o,i)).format(de(t)?new Date(t):t)}function bo(e,t,r){let o;if(r||(r="default"),typeof r=="string")switch(o={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":o.timeZoneName="short";break;case"short":delete o.second}else o=r;return bt(e,t,o)}function ut(e,t,r){let o=pt(e);return Fe(()=>Ne("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function Pt(e,t,r,{offset:o=0,...i}){var s,l;let a=pt(e),n=t?Fe(()=>Ne("plural-ordinal",a),()=>new Intl.PluralRules(a,{type:"ordinal"})):Fe(()=>Ne("plural-cardinal",a),()=>new Intl.PluralRules(a,{type:"cardinal"}));return(l=(s=i[r])!=null?s:i[n.select(r-o)])!=null?l:i.other}function Fe(e,t){let r=e(),o=Mt.get(r);return o||(o=t(),Mt.set(r,o)),o}function Ne(e,t,r){let o=t.join("-");return`${e}-${o}-${JSON.stringify(r)}`}var Ft=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,Nt="%__lingui_octothorpe__%",ho=(e,t,r={})=>{let o=t||e,i=n=>typeof n=="object"?n:r[n],a=(n,s)=>{let l=Object.keys(r).length?i("number"):void 0,d=ut(o,n,l);return s.replace(new RegExp(Nt,"g"),d)};return{plural:(n,s)=>{let{offset:l=0}=s,d=Pt(o,!1,n,s);return a(n-l,d)},selectordinal:(n,s)=>{let{offset:l=0}=s,d=Pt(o,!0,n,s);return a(n-l,d)},select:fo,number:(n,s)=>ut(o,n,i(s)||{style:s}),date:(n,s)=>bt(o,n,i(s)||s),time:(n,s)=>bo(o,n,i(s)||s)}},fo=(e,t)=>{var r;return(r=t[e])!=null?r:t.other};function vo(e,t,r){return(o={},i)=>{let a=ho(t,r,i),n=(l,d=!1)=>Array.isArray(l)?l.reduce((c,g)=>{if(g==="#"&&d)return c+Nt;if(de(g))return c+g;let[f,u,h]=g,x={};u==="plural"||u==="selectordinal"||u==="select"?Object.entries(h).forEach(([_,C])=>{x[_]=n(C,u==="plural"||u==="selectordinal")}):x=h;let v;if(u){let _=a[u];v=_(o[f],x)}else v=o[f];return v==null?c:c+v},""):l,s=n(e);return de(s)&&Ft.test(s)?(0,Rt.unraw)(s):de(s)?s:s?String(s):""}}var wo=Object.defineProperty,xo=(e,t,r)=>t in e?wo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yo=(e,t,r)=>(xo(e,typeof t!="symbol"?t+"":t,r),r),gt=class{constructor(){yo(this,"_events",{})}on(t,r){var i;var o;return(i=(o=this._events)[t])!=null||(o[t]=[]),this._events[t].push(r),()=>this.removeListener(t,r)}removeListener(t,r){let o=this._getListeners(t);if(!o)return;let i=o.indexOf(r);~i&&o.splice(i,1)}emit(t,...r){let o=this._getListeners(t);o&&o.map(i=>i.apply(this,r))}_getListeners(t){let r=this._events[t];return Array.isArray(r)?r:!1}},ko=Object.defineProperty,$o=(e,t,r)=>t in e?ko(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,be=(e,t,r)=>($o(e,typeof t!="symbol"?t+"":t,r),r),mt=class extends gt{constructor(t){var r;super(),be(this,"_locale",""),be(this,"_locales"),be(this,"_localeData",{}),be(this,"_messages",{}),be(this,"_missing"),be(this,"_messageCompiler"),be(this,"t",this._.bind(this)),t.missing!=null&&(this._missing=t.missing),t.messages!=null&&this.load(t.messages),t.localeData!=null&&this.loadLocaleData(t.localeData),(typeof t.locale=="string"||t.locales)&&this.activate((r=t.locale)!=null?r:jt,t.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var t;return(t=this._messages[this._locale])!=null?t:{}}get localeData(){var t;return(t=this._localeData[this._locale])!=null?t:{}}_loadLocaleData(t,r){let o=this._localeData[t];o?Object.assign(o,r):this._localeData[t]=r}setMessagesCompiler(t){return this._messageCompiler=t,this}loadLocaleData(t,r){typeof t=="string"?this._loadLocaleData(t,r):Object.keys(t).forEach(o=>this._loadLocaleData(o,t[o])),this.emit("change")}_load(t,r){let o=this._messages[t];o?Object.assign(o,r):this._messages[t]=r}load(t,r){typeof t=="string"&&typeof r=="object"?this._load(t,r):Object.entries(t).forEach(([o,i])=>this._load(o,i)),this.emit("change")}loadAndActivate({locale:t,locales:r,messages:o}){this._locale=t,this._locales=r||void 0,this._messages[this._locale]=o,this.emit("change")}activate(t,r){this._locale=t,this._locales=r,this.emit("change")}_(t,r,o){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let i=o==null?void 0:o.message;t||(t=""),de(t)||(r=t.values||r,i=t.message,t=t.id);let a=this.messages[t],n=a===void 0,s=this._missing;if(s&&n)return po(s)?s(this._locale,t):s;n&&this.emit("missing",{id:t,locale:this._locale});let l=a||i||t;return de(l)&&(this._messageCompiler?l=this._messageCompiler(l):console.warn(`Uncompiled message detected! Message:
1
+ var eo=Object.create;var dt=Object.defineProperty;var $t=Object.getOwnPropertyDescriptor;var to=Object.getOwnPropertyNames;var ro=Object.getPrototypeOf,oo=Object.prototype.hasOwnProperty;var _t=e=>{throw TypeError(e)};var Ct=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var io=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of to(t))!oo.call(e,i)&&i!==r&&dt(e,i,{get:()=>t[i],enumerable:!(o=$t(t,i))||o.enumerable});return e};var no=(e,t,r)=>(r=e!=null?eo(ro(e)):{},io(t||!e||!e.__esModule?dt(r,"default",{value:e,enumerable:!0}):r,e));var $=(e,t,r,o)=>{for(var i=o>1?void 0:o?$t(t,r):t,a=e.length-1,n;a>=0;a--)(n=e[a])&&(i=(o?n(t,r,i):n(i))||i);return o&&i&&dt(t,r,i),i};var St=(e,t,r)=>t.has(e)||_t("Cannot "+r);var Et=(e,t,r)=>(St(e,t,"read from private field"),r?r.call(e):t.get(e)),Lt=(e,t,r)=>t.has(e)?_t("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ot=(e,t,r,o)=>(St(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);var At=Ct(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.errorMessages=pe.ErrorType=void 0;var ke;(function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"})(ke=pe.ErrorType||(pe.ErrorType={}));pe.errorMessages=new Map([[ke.MalformedUnicode,"malformed Unicode character escape sequence"],[ke.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[ke.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[ke.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[ke.EndOfString,"malformed escape sequence at end of string"]])});var Tt=Ct(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.unraw=ae.errorMessages=ae.ErrorType=void 0;var B=At();Object.defineProperty(ae,"ErrorType",{enumerable:!0,get:function(){return B.ErrorType}});Object.defineProperty(ae,"errorMessages",{enumerable:!0,get:function(){return B.errorMessages}});function ao(e){return!e.match(/[^a-f0-9]/i)?parseInt(e,16):NaN}function je(e,t,r){let o=ao(e);if(Number.isNaN(o)||r!==void 0&&r!==e.length)throw new SyntaxError(B.errorMessages.get(t));return o}function so(e){let t=je(e,B.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}function Dt(e,t){let r=je(e,B.ErrorType.MalformedUnicode,4);if(t!==void 0){let o=je(t,B.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,o)}return String.fromCharCode(r)}function lo(e){return e.charAt(0)==="{"&&e.charAt(e.length-1)==="}"}function co(e){if(!lo(e))throw new SyntaxError(B.errorMessages.get(B.ErrorType.MalformedUnicode));let t=e.slice(1,-1),r=je(t,B.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(o){throw o instanceof RangeError?new SyntaxError(B.errorMessages.get(B.ErrorType.CodePointLimit)):o}}function uo(e,t=!1){if(t)throw new SyntaxError(B.errorMessages.get(B.ErrorType.OctalDeprecation));let r=parseInt(e,8);return String.fromCharCode(r)}var go=new Map([["b","\b"],["f","\f"],["n",`
2
+ `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function mo(e){return go.get(e)||e}var po=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function zt(e,t=!1){return e.replace(po,function(r,o,i,a,n,s,l,d,c){if(o!==void 0)return"\\";if(i!==void 0)return so(i);if(a!==void 0)return co(a);if(n!==void 0)return Dt(n,s);if(l!==void 0)return Dt(l);if(d==="0")return"\0";if(d!==void 0)return uo(d,!t);if(c!==void 0)return mo(c);throw new SyntaxError(B.errorMessages.get(B.ErrorType.EndOfString))})}ae.unraw=zt;ae.default=zt});var ye=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.reduce(function(r,o){return r.concat(typeof o=="string"?o:Array.isArray(o)?ye.apply(void 0,o):typeof o=="object"&&o?Object.keys(o).map(function(i){return o[i]?i:""}):"")},[]).join(" ")};var Rt=no(Tt(),1);var de=e=>typeof e=="string",bo=e=>typeof e=="function",Mt=new Map,jt="en";function pt(e){return[...Array.isArray(e)?e:[e],jt]}function bt(e,t,r){let o=pt(e);r||(r="default");let i;if(typeof r=="string")switch(i={day:"numeric",month:"short",year:"numeric"},r){case"full":i.weekday="long";case"long":i.month="long";break;case"short":i.month="numeric";break}else i=r;return Fe(()=>Ne("date",o,r),()=>new Intl.DateTimeFormat(o,i)).format(de(t)?new Date(t):t)}function ho(e,t,r){let o;if(r||(r="default"),typeof r=="string")switch(o={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":o.timeZoneName="short";break;case"short":delete o.second}else o=r;return bt(e,t,o)}function ut(e,t,r){let o=pt(e);return Fe(()=>Ne("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function Pt(e,t,r,{offset:o=0,...i}){var s,l;let a=pt(e),n=t?Fe(()=>Ne("plural-ordinal",a),()=>new Intl.PluralRules(a,{type:"ordinal"})):Fe(()=>Ne("plural-cardinal",a),()=>new Intl.PluralRules(a,{type:"cardinal"}));return(l=(s=i[r])!=null?s:i[n.select(r-o)])!=null?l:i.other}function Fe(e,t){let r=e(),o=Mt.get(r);return o||(o=t(),Mt.set(r,o)),o}function Ne(e,t,r){let o=t.join("-");return`${e}-${o}-${JSON.stringify(r)}`}var Ft=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,Nt="%__lingui_octothorpe__%",fo=(e,t,r={})=>{let o=t||e,i=n=>typeof n=="object"?n:r[n],a=(n,s)=>{let l=Object.keys(r).length?i("number"):void 0,d=ut(o,n,l);return s.replace(new RegExp(Nt,"g"),d)};return{plural:(n,s)=>{let{offset:l=0}=s,d=Pt(o,!1,n,s);return a(n-l,d)},selectordinal:(n,s)=>{let{offset:l=0}=s,d=Pt(o,!0,n,s);return a(n-l,d)},select:vo,number:(n,s)=>ut(o,n,i(s)||{style:s}),date:(n,s)=>bt(o,n,i(s)||s),time:(n,s)=>ho(o,n,i(s)||s)}},vo=(e,t)=>{var r;return(r=t[e])!=null?r:t.other};function wo(e,t,r){return(o={},i)=>{let a=fo(t,r,i),n=(l,d=!1)=>Array.isArray(l)?l.reduce((c,g)=>{if(g==="#"&&d)return c+Nt;if(de(g))return c+g;let[f,u,h]=g,x={};u==="plural"||u==="selectordinal"||u==="select"?Object.entries(h).forEach(([_,C])=>{x[_]=n(C,u==="plural"||u==="selectordinal")}):x=h;let v;if(u){let _=a[u];v=_(o[f],x)}else v=o[f];return v==null?c:c+v},""):l,s=n(e);return de(s)&&Ft.test(s)?(0,Rt.unraw)(s):de(s)?s:s?String(s):""}}var xo=Object.defineProperty,yo=(e,t,r)=>t in e?xo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ko=(e,t,r)=>(yo(e,typeof t!="symbol"?t+"":t,r),r),gt=class{constructor(){ko(this,"_events",{})}on(t,r){var i;var o;return(i=(o=this._events)[t])!=null||(o[t]=[]),this._events[t].push(r),()=>this.removeListener(t,r)}removeListener(t,r){let o=this._getListeners(t);if(!o)return;let i=o.indexOf(r);~i&&o.splice(i,1)}emit(t,...r){let o=this._getListeners(t);o&&o.map(i=>i.apply(this,r))}_getListeners(t){let r=this._events[t];return Array.isArray(r)?r:!1}},$o=Object.defineProperty,_o=(e,t,r)=>t in e?$o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,be=(e,t,r)=>(_o(e,typeof t!="symbol"?t+"":t,r),r),mt=class extends gt{constructor(t){var r;super(),be(this,"_locale",""),be(this,"_locales"),be(this,"_localeData",{}),be(this,"_messages",{}),be(this,"_missing"),be(this,"_messageCompiler"),be(this,"t",this._.bind(this)),t.missing!=null&&(this._missing=t.missing),t.messages!=null&&this.load(t.messages),t.localeData!=null&&this.loadLocaleData(t.localeData),(typeof t.locale=="string"||t.locales)&&this.activate((r=t.locale)!=null?r:jt,t.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var t;return(t=this._messages[this._locale])!=null?t:{}}get localeData(){var t;return(t=this._localeData[this._locale])!=null?t:{}}_loadLocaleData(t,r){let o=this._localeData[t];o?Object.assign(o,r):this._localeData[t]=r}setMessagesCompiler(t){return this._messageCompiler=t,this}loadLocaleData(t,r){typeof t=="string"?this._loadLocaleData(t,r):Object.keys(t).forEach(o=>this._loadLocaleData(o,t[o])),this.emit("change")}_load(t,r){let o=this._messages[t];o?Object.assign(o,r):this._messages[t]=r}load(t,r){typeof t=="string"&&typeof r=="object"?this._load(t,r):Object.entries(t).forEach(([o,i])=>this._load(o,i)),this.emit("change")}loadAndActivate({locale:t,locales:r,messages:o}){this._locale=t,this._locales=r||void 0,this._messages[this._locale]=o,this.emit("change")}activate(t,r){this._locale=t,this._locales=r,this.emit("change")}_(t,r,o){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let i=o==null?void 0:o.message;t||(t=""),de(t)||(r=t.values||r,i=t.message,t=t.id);let a=this.messages[t],n=a===void 0,s=this._missing;if(s&&n)return bo(s)?s(this._locale,t):s;n&&this.emit("missing",{id:t,locale:this._locale});let l=a||i||t;return de(l)&&(this._messageCompiler?l=this._messageCompiler(l):console.warn(`Uncompiled message detected! Message:
3
3
 
4
4
  > ${l}
5
5
 
@@ -7,7 +7,7 @@ That means you use raw catalog or your catalog doesn't have a translation for th
7
7
  ICU features such as interpolation and plurals will not work properly for that message.
8
8
 
9
9
  Please compile your catalog first.
10
- `)),de(l)&&Ft.test(l)?JSON.parse(`"${l}"`):de(l)?l:vo(l,this._locale,this._locales)(r,o==null?void 0:o.formats)}date(t,r){return bt(this._locales||this._locale,t,r)}number(t,r){return ut(this._locales||this._locale,t,r)}};function _o(e={}){return new mt(e)}var P=_o();var Vt=["top","right","bottom","left"];var se=Math.min,U=Math.max,Oe=Math.round;var re=e=>({x:e,y:e}),Co={left:"right",right:"left",bottom:"top",top:"bottom"},So={start:"end",end:"start"};function Qe(e,t,r){return U(e,se(t,r))}function ue(e,t){return typeof e=="function"?e(t):e}function le(e){return e.split("-")[0]}function he(e){return e.split("-")[1]}function ht(e){return e==="x"?"y":"x"}function Ve(e){return e==="y"?"height":"width"}var Eo=new Set(["top","bottom"]);function ie(e){return Eo.has(le(e))?"y":"x"}function Be(e){return ht(ie(e))}function Bt(e,t,r){r===void 0&&(r=!1);let o=he(e),i=Be(e),a=Ve(i),n=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(n=Le(n)),[n,Le(n)]}function It(e){let t=Le(e);return[qe(e),t,qe(t)]}function qe(e){return e.replace(/start|end/g,t=>So[t])}var qt=["left","right"],Qt=["right","left"],Lo=["top","bottom"],Oo=["bottom","top"];function Ao(e,t,r){switch(e){case"top":case"bottom":return r?t?Qt:qt:t?qt:Qt;case"left":case"right":return t?Lo:Oo;default:return[]}}function Ht(e,t,r,o){let i=he(e),a=Ao(le(e),r==="start",o);return i&&(a=a.map(n=>n+"-"+i),t&&(a=a.concat(a.map(qe)))),a}function Le(e){return e.replace(/left|right|bottom|top/g,t=>Co[t])}function Do(e){return{top:0,right:0,bottom:0,left:0,...e}}function ft(e){return typeof e!="number"?Do(e):{top:e,right:e,bottom:e,left:e}}function fe(e){let{x:t,y:r,width:o,height:i}=e;return{width:o,height:i,top:r,left:t,right:t+o,bottom:r+i,x:t,y:r}}function Ut(e,t,r){let{reference:o,floating:i}=e,a=ie(t),n=Be(t),s=Ve(n),l=le(t),d=a==="y",c=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,f=o[s]/2-i[s]/2,u;switch(l){case"top":u={x:c,y:o.y-i.height};break;case"bottom":u={x:c,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:g};break;case"left":u={x:o.x-i.width,y:g};break;default:u={x:o.x,y:o.y}}switch(he(t)){case"start":u[n]-=f*(r&&d?-1:1);break;case"end":u[n]+=f*(r&&d?-1:1);break}return u}var Zt=async(e,t,r)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:n}=r,s=a.filter(Boolean),l=await(n.isRTL==null?void 0:n.isRTL(t)),d=await n.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:g}=Ut(d,o,l),f=o,u={},h=0;for(let x=0;x<s.length;x++){let{name:v,fn:_}=s[x],{x:C,y:E,data:q,reset:D}=await _({x:c,y:g,initialPlacement:o,placement:f,strategy:i,middlewareData:u,rects:d,platform:n,elements:{reference:e,floating:t}});c=C!=null?C:c,g=E!=null?E:g,u={...u,[v]:{...u[v],...q}},D&&h<=50&&(h++,typeof D=="object"&&(D.placement&&(f=D.placement),D.rects&&(d=D.rects===!0?await n.getElementRects({reference:e,floating:t,strategy:i}):D.rects),{x:c,y:g}=Ut(d,f,l)),x=-1)}return{x:c,y:g,placement:f,strategy:i,middlewareData:u}};async function $e(e,t){var r;t===void 0&&(t={});let{x:o,y:i,platform:a,rects:n,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:g="floating",altBoundary:f=!1,padding:u=0}=ue(t,e),h=ft(u),v=s[f?g==="floating"?"reference":"floating":g],_=fe(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:c,strategy:l})),C=g==="floating"?{x:o,y:i,width:n.floating.width,height:n.floating.height}:n.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),q=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},D=fe(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:E,strategy:l}):C);return{top:(_.top-D.top+h.top)/q.y,bottom:(D.bottom-_.bottom+h.bottom)/q.y,left:(_.left-D.left+h.left)/q.x,right:(D.right-_.right+h.right)/q.x}}var Jt=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:o,placement:i,rects:a,platform:n,elements:s,middlewareData:l}=t,{element:d,padding:c=0}=ue(e,t)||{};if(d==null)return{};let g=ft(c),f={x:r,y:o},u=Be(i),h=Ve(u),x=await n.getDimensions(d),v=u==="y",_=v?"top":"left",C=v?"bottom":"right",E=v?"clientHeight":"clientWidth",q=a.reference[h]+a.reference[u]-f[u]-a.floating[h],D=f[u]-a.reference[u],w=await(n.getOffsetParent==null?void 0:n.getOffsetParent(d)),y=w?w[E]:0;(!y||!await(n.isElement==null?void 0:n.isElement(w)))&&(y=s.floating[E]||a.floating[h]);let L=q/2-D/2,A=y/2-x[h]/2-1,z=se(g[_],A),I=se(g[C],A),V=z,H=y-x[h]-I,j=y/2-x[h]/2+L,M=Qe(V,j,H),X=!l.arrow&&he(i)!=null&&j!==M&&a.reference[h]/2-(j<V?z:I)-x[h]/2<0,F=X?j<V?j-V:j-H:0;return{[u]:f[u]+F,data:{[u]:M,centerOffset:j-M-F,...X&&{alignmentOffset:F}},reset:X}}});var Wt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;let{placement:i,middlewareData:a,rects:n,initialPlacement:s,platform:l,elements:d}=t,{mainAxis:c=!0,crossAxis:g=!0,fallbackPlacements:f,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:x=!0,...v}=ue(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let _=le(i),C=ie(s),E=le(s)===s,q=await(l.isRTL==null?void 0:l.isRTL(d.floating)),D=f||(E||!x?[Le(s)]:It(s)),w=h!=="none";!f&&w&&D.push(...Ht(s,x,h,q));let y=[s,...D],L=await $e(t,v),A=[],z=((o=a.flip)==null?void 0:o.overflows)||[];if(c&&A.push(L[_]),g){let j=Bt(i,n,q);A.push(L[j[0]],L[j[1]])}if(z=[...z,{placement:i,overflows:A}],!A.every(j=>j<=0)){var I,V;let j=(((I=a.flip)==null?void 0:I.index)||0)+1,M=y[j];if(M&&(!(g==="alignment"?C!==ie(M):!1)||z.every(G=>ie(G.placement)===C?G.overflows[0]>0:!0)))return{data:{index:j,overflows:z},reset:{placement:M}};let X=(V=z.filter(F=>F.overflows[0]<=0).sort((F,G)=>F.overflows[1]-G.overflows[1])[0])==null?void 0:V.placement;if(!X)switch(u){case"bestFit":{var H;let F=(H=z.filter(G=>{if(w){let K=ie(G.placement);return K===C||K==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(K=>K>0).reduce((K,Gr)=>K+Gr,0)]).sort((G,K)=>G[1]-K[1])[0])==null?void 0:H[0];F&&(X=F);break}case"initialPlacement":X=s;break}if(i!==X)return{reset:{placement:X}}}return{}}}};function Yt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xt(e){return Vt.some(t=>e[t]>=0)}var Gt=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:o="referenceHidden",...i}=ue(e,t);switch(o){case"referenceHidden":{let a=await $e(t,{...i,elementContext:"reference"}),n=Yt(a,r.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:Xt(n)}}}case"escaped":{let a=await $e(t,{...i,altBoundary:!0}),n=Yt(a,r.floating);return{data:{escapedOffsets:n,escaped:Xt(n)}}}default:return{}}}}};var zo=new Set(["left","top"]);async function To(e,t){let{placement:r,platform:o,elements:i}=e,a=await(o.isRTL==null?void 0:o.isRTL(i.floating)),n=le(r),s=he(r),l=ie(r)==="y",d=zo.has(n)?-1:1,c=a&&l?-1:1,g=ue(t,e),{mainAxis:f,crossAxis:u,alignmentAxis:h}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return s&&typeof h=="number"&&(u=s==="end"?h*-1:h),l?{x:u*c,y:f*d}:{x:f*d,y:u*c}}var Kt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;let{x:i,y:a,placement:n,middlewareData:s}=t,l=await To(t,e);return n===((r=s.offset)==null?void 0:r.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:n}}}}},er=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:o,placement:i}=t,{mainAxis:a=!0,crossAxis:n=!1,limiter:s={fn:v=>{let{x:_,y:C}=v;return{x:_,y:C}}},...l}=ue(e,t),d={x:r,y:o},c=await $e(t,l),g=ie(le(i)),f=ht(g),u=d[f],h=d[g];if(a){let v=f==="y"?"top":"left",_=f==="y"?"bottom":"right",C=u+c[v],E=u-c[_];u=Qe(C,u,E)}if(n){let v=g==="y"?"top":"left",_=g==="y"?"bottom":"right",C=h+c[v],E=h-c[_];h=Qe(C,h,E)}let x=s.fn({...t,[f]:u,[g]:h});return{...x,data:{x:x.x-r,y:x.y-o,enabled:{[f]:a,[g]:n}}}}}};var tr=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;let{placement:i,rects:a,platform:n,elements:s}=t,{apply:l=()=>{},...d}=ue(e,t),c=await $e(t,d),g=le(i),f=he(i),u=ie(i)==="y",{width:h,height:x}=a.floating,v,_;g==="top"||g==="bottom"?(v=g,_=f===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(_=g,v=f==="end"?"top":"bottom");let C=x-c.top-c.bottom,E=h-c.left-c.right,q=se(x-c[v],C),D=se(h-c[_],E),w=!t.middlewareData.shift,y=q,L=D;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(L=E),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(y=C),w&&!f){let z=U(c.left,0),I=U(c.right,0),V=U(c.top,0),H=U(c.bottom,0);u?L=h-2*(z!==0||I!==0?z+I:U(c.left,c.right)):y=x-2*(V!==0||H!==0?V+H:U(c.top,c.bottom))}await l({...t,availableWidth:L,availableHeight:y});let A=await n.getDimensions(s.floating);return h!==A.width||x!==A.height?{reset:{rects:!0}}:{}}}};function He(){return typeof window!="undefined"}function ve(e){return or(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ne(e){var t;return(t=(or(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function or(e){return He()?e instanceof Node||e instanceof Y(e).Node:!1}function ee(e){return He()?e instanceof Element||e instanceof Y(e).Element:!1}function oe(e){return He()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function rr(e){return!He()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}var Mo=new Set(["inline","contents"]);function _e(e){let{overflow:t,overflowX:r,overflowY:o,display:i}=te(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!Mo.has(i)}var Po=new Set(["table","td","th"]);function ir(e){return Po.has(ve(e))}var Ro=[":popover-open",":modal"];function Ae(e){return Ro.some(t=>{try{return e.matches(t)}catch(r){return!1}})}var jo=["transform","translate","scale","rotate","perspective"],Fo=["transform","translate","scale","rotate","perspective","filter"],No=["paint","layout","strict","content"];function Ue(e){let t=Ye(),r=ee(e)?te(e):e;return jo.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Fo.some(o=>(r.willChange||"").includes(o))||No.some(o=>(r.contain||"").includes(o))}function nr(e){let t=ce(e);for(;oe(t)&&!we(t);){if(Ue(t))return t;if(Ae(t))return null;t=ce(t)}return null}function Ye(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var qo=new Set(["html","body","#document"]);function we(e){return qo.has(ve(e))}function te(e){return Y(e).getComputedStyle(e)}function De(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ce(e){if(ve(e)==="html")return e;let t=e.assignedSlot||e.parentNode||rr(e)&&e.host||ne(e);return rr(t)?t.host:t}function ar(e){let t=ce(e);return we(t)?e.ownerDocument?e.ownerDocument.body:e.body:oe(t)&&_e(t)?t:ar(t)}function Ie(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=ar(e),a=i===((o=e.ownerDocument)==null?void 0:o.body),n=Y(i);if(a){let s=Xe(n);return t.concat(n,n.visualViewport||[],_e(i)?i:[],s&&r?Ie(s):[])}return t.concat(i,Ie(i,[],r))}function Xe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function dr(e){let t=te(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=oe(e),a=i?e.offsetWidth:r,n=i?e.offsetHeight:o,s=Oe(r)!==a||Oe(o)!==n;return s&&(r=a,o=n),{width:r,height:o,$:s}}function ur(e){return ee(e)?e:e.contextElement}function Ce(e){let t=ur(e);if(!oe(t))return re(1);let r=t.getBoundingClientRect(),{width:o,height:i,$:a}=dr(t),n=(a?Oe(r.width):r.width)/o,s=(a?Oe(r.height):r.height)/i;return(!n||!Number.isFinite(n))&&(n=1),(!s||!Number.isFinite(s))&&(s=1),{x:n,y:s}}var Qo=re(0);function gr(e){let t=Y(e);return!Ye()||!t.visualViewport?Qo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vo(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Y(e)?!1:t}function ze(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),a=ur(e),n=re(1);t&&(o?ee(o)&&(n=Ce(o)):n=Ce(e));let s=Vo(a,r,o)?gr(a):re(0),l=(i.left+s.x)/n.x,d=(i.top+s.y)/n.y,c=i.width/n.x,g=i.height/n.y;if(a){let f=Y(a),u=o&&ee(o)?Y(o):o,h=f,x=Xe(h);for(;x&&o&&u!==h;){let v=Ce(x),_=x.getBoundingClientRect(),C=te(x),E=_.left+(x.clientLeft+parseFloat(C.paddingLeft))*v.x,q=_.top+(x.clientTop+parseFloat(C.paddingTop))*v.y;l*=v.x,d*=v.y,c*=v.x,g*=v.y,l+=E,d+=q,h=Y(x),x=Xe(h)}}return fe({width:c,height:g,x:l,y:d})}function Ze(e,t){let r=De(e).scrollLeft;return t?t.left+r:ze(ne(e)).left+r}function mr(e,t){let r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-Ze(e,r),i=r.top+t.scrollTop;return{x:o,y:i}}function Bo(e){let{elements:t,rect:r,offsetParent:o,strategy:i}=e,a=i==="fixed",n=ne(o),s=t?Ae(t.floating):!1;if(o===n||s&&a)return r;let l={scrollLeft:0,scrollTop:0},d=re(1),c=re(0),g=oe(o);if((g||!g&&!a)&&((ve(o)!=="body"||_e(n))&&(l=De(o)),oe(o))){let u=ze(o);d=Ce(o),c.x=u.x+o.clientLeft,c.y=u.y+o.clientTop}let f=n&&!g&&!a?mr(n,l):re(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+c.x+f.x,y:r.y*d.y-l.scrollTop*d.y+c.y+f.y}}function Io(e){return Array.from(e.getClientRects())}function Ho(e){let t=ne(e),r=De(e),o=e.ownerDocument.body,i=U(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=U(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),n=-r.scrollLeft+Ze(e),s=-r.scrollTop;return te(o).direction==="rtl"&&(n+=U(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:n,y:s}}var sr=25;function Uo(e,t){let r=Y(e),o=ne(e),i=r.visualViewport,a=o.clientWidth,n=o.clientHeight,s=0,l=0;if(i){a=i.width,n=i.height;let c=Ye();(!c||c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}let d=Ze(o);if(d<=0){let c=o.ownerDocument,g=c.body,f=getComputedStyle(g),u=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(o.clientWidth-g.clientWidth-u);h<=sr&&(a-=h)}else d<=sr&&(a+=d);return{width:a,height:n,x:s,y:l}}var Yo=new Set(["absolute","fixed"]);function Xo(e,t){let r=ze(e,!0,t==="fixed"),o=r.top+e.clientTop,i=r.left+e.clientLeft,a=oe(e)?Ce(e):re(1),n=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,d=o*a.y;return{width:n,height:s,x:l,y:d}}function lr(e,t,r){let o;if(t==="viewport")o=Uo(e,r);else if(t==="document")o=Ho(ne(e));else if(ee(t))o=Xo(t,r);else{let i=gr(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return fe(o)}function pr(e,t){let r=ce(e);return r===t||!ee(r)||we(r)?!1:te(r).position==="fixed"||pr(r,t)}function Zo(e,t){let r=t.get(e);if(r)return r;let o=Ie(e,[],!1).filter(s=>ee(s)&&ve(s)!=="body"),i=null,a=te(e).position==="fixed",n=a?ce(e):e;for(;ee(n)&&!we(n);){let s=te(n),l=Ue(n);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&Yo.has(i.position)||_e(n)&&!l&&pr(e,n))?o=o.filter(c=>c!==n):i=s,n=ce(n)}return t.set(e,o),o}function Jo(e){let{element:t,boundary:r,rootBoundary:o,strategy:i}=e,n=[...r==="clippingAncestors"?Ae(t)?[]:Zo(t,this._c):[].concat(r),o],s=n[0],l=n.reduce((d,c)=>{let g=lr(t,c,i);return d.top=U(g.top,d.top),d.right=se(g.right,d.right),d.bottom=se(g.bottom,d.bottom),d.left=U(g.left,d.left),d},lr(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Wo(e){let{width:t,height:r}=dr(e);return{width:t,height:r}}function Go(e,t,r){let o=oe(t),i=ne(t),a=r==="fixed",n=ze(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=re(0);function d(){l.x=Ze(i)}if(o||!o&&!a)if((ve(t)!=="body"||_e(i))&&(s=De(t)),o){let u=ze(t,!0,a,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else i&&d();a&&!o&&i&&d();let c=i&&!o&&!a?mr(i,s):re(0),g=n.left+s.scrollLeft-l.x-c.x,f=n.top+s.scrollTop-l.y-c.y;return{x:g,y:f,width:n.width,height:n.height}}function vt(e){return te(e).position==="static"}function cr(e,t){if(!oe(e)||te(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ne(e)===r&&(r=r.ownerDocument.body),r}function br(e,t){let r=Y(e);if(Ae(e))return r;if(!oe(e)){let i=ce(e);for(;i&&!we(i);){if(ee(i)&&!vt(i))return i;i=ce(i)}return r}let o=cr(e,t);for(;o&&ir(o)&&vt(o);)o=cr(o,t);return o&&we(o)&&vt(o)&&!Ue(o)?r:o||nr(e)||r}var Ko=async function(e){let t=this.getOffsetParent||br,r=this.getDimensions,o=await r(e.floating);return{reference:Go(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ei(e){return te(e).direction==="rtl"}var ti={convertOffsetParentRelativeRectToViewportRelativeRect:Bo,getDocumentElement:ne,getClippingRect:Jo,getOffsetParent:br,getElementRects:Ko,getClientRects:Io,getDimensions:Wo,getScale:Ce,isElement:ee,isRTL:ei};var hr=Kt;var fr=er,vr=Wt,wr=tr,xr=Gt,yr=Jt;var kr=(e,t,r)=>{let o=new Map,i={platform:ti,...r},a={...i.platform,_c:o};return Zt(e,t,{...i,platform:a})};var We="top-start",Ge="top",Ke="top-end",et="right-start",tt="right",rt="right-end",ot="bottom-start",Te="bottom",it="bottom-end",nt="left-start",at="left",st="left-end",wt=[We,Ge,Ke,et,tt,rt,ot,Te,it,nt,at,st],xe={[We]:ot,[Ge]:Te,[Ke]:it,[ot]:We,[Te]:Ge,[it]:Ke,[nt]:et,[at]:tt,[st]:rt,[et]:nt,[tt]:at,[rt]:st},ri={[nt]:-45,[at]:-45,[st]:-45,[We]:45,[Ge]:45,[Ke]:45,[et]:135,[tt]:135,[rt]:135,[ot]:-135,[Te]:-135,[it]:-135},xt=e=>{let t;return/-/.test(e)?t=e.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(""):t=e.charAt(0).toUpperCase()+e.slice(1),t},oi=e=>e.split("-")[0],ii=e=>xe[oi(e)],_r=e=>xe[e],ni=e=>ri[_r(e)],ai=(e,t,r)=>{Object.assign(e==null?void 0:e.style,{borderTopLeftRadius:"4px",zIndex:1,[`margin${xt(ii(r))}`]:"-0.5px",transform:`rotate(${t}deg)`})},$r=8,Je=24;async function yt(e){var o,i,a;if(!(e!=null&&e.isShowing)||(e!=null&&e.waitForDOM&&await(e==null?void 0:e.waitForDOM()),!(e!=null&&e.targetEl)||!(e!=null&&e.attentionEl)))return;let t=e==null?void 0:e.targetEl,r=e.attentionEl;return kr(t,r,{placement:(o=e==null?void 0:e.directionName)!=null?o:Te,middleware:[hr({mainAxis:(i=e==null?void 0:e.distance)!=null?i:8,crossAxis:(a=e==null?void 0:e.skidding)!=null?a:0}),(e==null?void 0:e.flip)&&vr({crossAxis:e==null?void 0:e.crossAxis,fallbackPlacements:e==null?void 0:e.fallbackPlacements}),(e==null?void 0:e.flip)&&fr({crossAxis:!0}),!(e!=null&&e.noArrow)&&(e==null?void 0:e.arrowEl)&&yr({element:e==null?void 0:e.arrowEl}),xr(),wr({apply(){Object.assign(r.style,{paddingRight:`${$r}px`,paddingLeft:`${$r}px`})}})]}).then(({x:n,y:s,middlewareData:l,placement:d})=>{if(e.actualDirection=d,e!=null&&e.isCallout||Object.assign(r.style,{left:`${n}px`,top:`${s}px`}),l!=null&&l.hide&&!(e!=null&&e.isCallout)){let{referenceHidden:c}=l.hide;Object.assign(r.style,{visibility:c?"hidden":""})}if(l!=null&&l.arrow&&(e!=null&&e.arrowEl)){let c=e==null?void 0:e.arrowEl,{x:g,y:f}=l.arrow,u=window.getComputedStyle(r).direction==="rtl",h=_r(d).split("-")[1],x="",v="",_="",C="";if(h==="start"){let E=typeof g=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:"";x=typeof f=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:"",v=u?E:"",C=u?"":E}else if(h==="end"){let E=typeof g=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:"";v=u?"":E,C=u?E:"",_=typeof f=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:""}else C=typeof g=="number"?`${g}px`:"",x=typeof f=="number"?`${f}px`:"";Object.assign(c.style,{top:x,right:v,bottom:_,left:C}),ai(c,ni(d),d)}}),e}import{css as Ai,html as Ee,LitElement as Di,nothing as Wr}from"lit";import{property as W}from"lit/decorators.js";import{ifDefined as zi}from"lit/directives/if-defined.js";var si=["en","nb","fi","da","sv"],Sr="en",Cr=e=>si.find(t=>e===t||e.toLowerCase().includes(t))||Sr;function li(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Cr(e)}try{let e=document.documentElement.lang;return Cr(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Sr}}var ci=(e,t,r,o,i,a)=>e==="nb"?r:e==="fi"?o:e==="da"?i:e==="sv"?a:t,lt=(e,t,r,o,i)=>{let a=li(),n=ci(a,e,t,r,o,i);P.load(a,n),P.activate(a)};import{css as Er}from"lit";var Se=Er`
10
+ `)),de(l)&&Ft.test(l)?JSON.parse(`"${l}"`):de(l)?l:wo(l,this._locale,this._locales)(r,o==null?void 0:o.formats)}date(t,r){return bt(this._locales||this._locale,t,r)}number(t,r){return ut(this._locales||this._locale,t,r)}};function Co(e={}){return new mt(e)}var P=Co();var Vt=["top","right","bottom","left"];var se=Math.min,U=Math.max,Oe=Math.round;var re=e=>({x:e,y:e}),So={left:"right",right:"left",bottom:"top",top:"bottom"},Eo={start:"end",end:"start"};function Qe(e,t,r){return U(e,se(t,r))}function ue(e,t){return typeof e=="function"?e(t):e}function le(e){return e.split("-")[0]}function he(e){return e.split("-")[1]}function ht(e){return e==="x"?"y":"x"}function Ve(e){return e==="y"?"height":"width"}var Lo=new Set(["top","bottom"]);function ie(e){return Lo.has(le(e))?"y":"x"}function Be(e){return ht(ie(e))}function Bt(e,t,r){r===void 0&&(r=!1);let o=he(e),i=Be(e),a=Ve(i),n=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(n=Le(n)),[n,Le(n)]}function It(e){let t=Le(e);return[qe(e),t,qe(t)]}function qe(e){return e.replace(/start|end/g,t=>Eo[t])}var qt=["left","right"],Qt=["right","left"],Oo=["top","bottom"],Ao=["bottom","top"];function Do(e,t,r){switch(e){case"top":case"bottom":return r?t?Qt:qt:t?qt:Qt;case"left":case"right":return t?Oo:Ao;default:return[]}}function Ht(e,t,r,o){let i=he(e),a=Do(le(e),r==="start",o);return i&&(a=a.map(n=>n+"-"+i),t&&(a=a.concat(a.map(qe)))),a}function Le(e){return e.replace(/left|right|bottom|top/g,t=>So[t])}function zo(e){return{top:0,right:0,bottom:0,left:0,...e}}function ft(e){return typeof e!="number"?zo(e):{top:e,right:e,bottom:e,left:e}}function fe(e){let{x:t,y:r,width:o,height:i}=e;return{width:o,height:i,top:r,left:t,right:t+o,bottom:r+i,x:t,y:r}}function Ut(e,t,r){let{reference:o,floating:i}=e,a=ie(t),n=Be(t),s=Ve(n),l=le(t),d=a==="y",c=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,f=o[s]/2-i[s]/2,u;switch(l){case"top":u={x:c,y:o.y-i.height};break;case"bottom":u={x:c,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:g};break;case"left":u={x:o.x-i.width,y:g};break;default:u={x:o.x,y:o.y}}switch(he(t)){case"start":u[n]-=f*(r&&d?-1:1);break;case"end":u[n]+=f*(r&&d?-1:1);break}return u}var Zt=async(e,t,r)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:n}=r,s=a.filter(Boolean),l=await(n.isRTL==null?void 0:n.isRTL(t)),d=await n.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:g}=Ut(d,o,l),f=o,u={},h=0;for(let x=0;x<s.length;x++){let{name:v,fn:_}=s[x],{x:C,y:E,data:q,reset:D}=await _({x:c,y:g,initialPlacement:o,placement:f,strategy:i,middlewareData:u,rects:d,platform:n,elements:{reference:e,floating:t}});c=C!=null?C:c,g=E!=null?E:g,u={...u,[v]:{...u[v],...q}},D&&h<=50&&(h++,typeof D=="object"&&(D.placement&&(f=D.placement),D.rects&&(d=D.rects===!0?await n.getElementRects({reference:e,floating:t,strategy:i}):D.rects),{x:c,y:g}=Ut(d,f,l)),x=-1)}return{x:c,y:g,placement:f,strategy:i,middlewareData:u}};async function $e(e,t){var r;t===void 0&&(t={});let{x:o,y:i,platform:a,rects:n,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:g="floating",altBoundary:f=!1,padding:u=0}=ue(t,e),h=ft(u),v=s[f?g==="floating"?"reference":"floating":g],_=fe(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:c,strategy:l})),C=g==="floating"?{x:o,y:i,width:n.floating.width,height:n.floating.height}:n.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),q=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},D=fe(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:E,strategy:l}):C);return{top:(_.top-D.top+h.top)/q.y,bottom:(D.bottom-_.bottom+h.bottom)/q.y,left:(_.left-D.left+h.left)/q.x,right:(D.right-_.right+h.right)/q.x}}var Jt=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:o,placement:i,rects:a,platform:n,elements:s,middlewareData:l}=t,{element:d,padding:c=0}=ue(e,t)||{};if(d==null)return{};let g=ft(c),f={x:r,y:o},u=Be(i),h=Ve(u),x=await n.getDimensions(d),v=u==="y",_=v?"top":"left",C=v?"bottom":"right",E=v?"clientHeight":"clientWidth",q=a.reference[h]+a.reference[u]-f[u]-a.floating[h],D=f[u]-a.reference[u],w=await(n.getOffsetParent==null?void 0:n.getOffsetParent(d)),y=w?w[E]:0;(!y||!await(n.isElement==null?void 0:n.isElement(w)))&&(y=s.floating[E]||a.floating[h]);let L=q/2-D/2,A=y/2-x[h]/2-1,z=se(g[_],A),I=se(g[C],A),V=z,H=y-x[h]-I,j=y/2-x[h]/2+L,M=Qe(V,j,H),X=!l.arrow&&he(i)!=null&&j!==M&&a.reference[h]/2-(j<V?z:I)-x[h]/2<0,F=X?j<V?j-V:j-H:0;return{[u]:f[u]+F,data:{[u]:M,centerOffset:j-M-F,...X&&{alignmentOffset:F}},reset:X}}});var Wt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;let{placement:i,middlewareData:a,rects:n,initialPlacement:s,platform:l,elements:d}=t,{mainAxis:c=!0,crossAxis:g=!0,fallbackPlacements:f,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:x=!0,...v}=ue(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let _=le(i),C=ie(s),E=le(s)===s,q=await(l.isRTL==null?void 0:l.isRTL(d.floating)),D=f||(E||!x?[Le(s)]:It(s)),w=h!=="none";!f&&w&&D.push(...Ht(s,x,h,q));let y=[s,...D],L=await $e(t,v),A=[],z=((o=a.flip)==null?void 0:o.overflows)||[];if(c&&A.push(L[_]),g){let j=Bt(i,n,q);A.push(L[j[0]],L[j[1]])}if(z=[...z,{placement:i,overflows:A}],!A.every(j=>j<=0)){var I,V;let j=(((I=a.flip)==null?void 0:I.index)||0)+1,M=y[j];if(M&&(!(g==="alignment"?C!==ie(M):!1)||z.every(G=>ie(G.placement)===C?G.overflows[0]>0:!0)))return{data:{index:j,overflows:z},reset:{placement:M}};let X=(V=z.filter(F=>F.overflows[0]<=0).sort((F,G)=>F.overflows[1]-G.overflows[1])[0])==null?void 0:V.placement;if(!X)switch(u){case"bestFit":{var H;let F=(H=z.filter(G=>{if(w){let K=ie(G.placement);return K===C||K==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(K=>K>0).reduce((K,Kr)=>K+Kr,0)]).sort((G,K)=>G[1]-K[1])[0])==null?void 0:H[0];F&&(X=F);break}case"initialPlacement":X=s;break}if(i!==X)return{reset:{placement:X}}}return{}}}};function Yt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xt(e){return Vt.some(t=>e[t]>=0)}var Gt=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:o="referenceHidden",...i}=ue(e,t);switch(o){case"referenceHidden":{let a=await $e(t,{...i,elementContext:"reference"}),n=Yt(a,r.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:Xt(n)}}}case"escaped":{let a=await $e(t,{...i,altBoundary:!0}),n=Yt(a,r.floating);return{data:{escapedOffsets:n,escaped:Xt(n)}}}default:return{}}}}};var To=new Set(["left","top"]);async function Mo(e,t){let{placement:r,platform:o,elements:i}=e,a=await(o.isRTL==null?void 0:o.isRTL(i.floating)),n=le(r),s=he(r),l=ie(r)==="y",d=To.has(n)?-1:1,c=a&&l?-1:1,g=ue(t,e),{mainAxis:f,crossAxis:u,alignmentAxis:h}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return s&&typeof h=="number"&&(u=s==="end"?h*-1:h),l?{x:u*c,y:f*d}:{x:f*d,y:u*c}}var Kt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;let{x:i,y:a,placement:n,middlewareData:s}=t,l=await Mo(t,e);return n===((r=s.offset)==null?void 0:r.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:n}}}}},er=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:o,placement:i}=t,{mainAxis:a=!0,crossAxis:n=!1,limiter:s={fn:v=>{let{x:_,y:C}=v;return{x:_,y:C}}},...l}=ue(e,t),d={x:r,y:o},c=await $e(t,l),g=ie(le(i)),f=ht(g),u=d[f],h=d[g];if(a){let v=f==="y"?"top":"left",_=f==="y"?"bottom":"right",C=u+c[v],E=u-c[_];u=Qe(C,u,E)}if(n){let v=g==="y"?"top":"left",_=g==="y"?"bottom":"right",C=h+c[v],E=h-c[_];h=Qe(C,h,E)}let x=s.fn({...t,[f]:u,[g]:h});return{...x,data:{x:x.x-r,y:x.y-o,enabled:{[f]:a,[g]:n}}}}}};var tr=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;let{placement:i,rects:a,platform:n,elements:s}=t,{apply:l=()=>{},...d}=ue(e,t),c=await $e(t,d),g=le(i),f=he(i),u=ie(i)==="y",{width:h,height:x}=a.floating,v,_;g==="top"||g==="bottom"?(v=g,_=f===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(_=g,v=f==="end"?"top":"bottom");let C=x-c.top-c.bottom,E=h-c.left-c.right,q=se(x-c[v],C),D=se(h-c[_],E),w=!t.middlewareData.shift,y=q,L=D;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(L=E),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(y=C),w&&!f){let z=U(c.left,0),I=U(c.right,0),V=U(c.top,0),H=U(c.bottom,0);u?L=h-2*(z!==0||I!==0?z+I:U(c.left,c.right)):y=x-2*(V!==0||H!==0?V+H:U(c.top,c.bottom))}await l({...t,availableWidth:L,availableHeight:y});let A=await n.getDimensions(s.floating);return h!==A.width||x!==A.height?{reset:{rects:!0}}:{}}}};function He(){return typeof window!="undefined"}function ve(e){return or(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ne(e){var t;return(t=(or(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function or(e){return He()?e instanceof Node||e instanceof Y(e).Node:!1}function ee(e){return He()?e instanceof Element||e instanceof Y(e).Element:!1}function oe(e){return He()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function rr(e){return!He()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}var Po=new Set(["inline","contents"]);function _e(e){let{overflow:t,overflowX:r,overflowY:o,display:i}=te(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!Po.has(i)}var Ro=new Set(["table","td","th"]);function ir(e){return Ro.has(ve(e))}var jo=[":popover-open",":modal"];function Ae(e){return jo.some(t=>{try{return e.matches(t)}catch(r){return!1}})}var Fo=["transform","translate","scale","rotate","perspective"],No=["transform","translate","scale","rotate","perspective","filter"],qo=["paint","layout","strict","content"];function Ue(e){let t=Ye(),r=ee(e)?te(e):e;return Fo.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||No.some(o=>(r.willChange||"").includes(o))||qo.some(o=>(r.contain||"").includes(o))}function nr(e){let t=ce(e);for(;oe(t)&&!we(t);){if(Ue(t))return t;if(Ae(t))return null;t=ce(t)}return null}function Ye(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var Qo=new Set(["html","body","#document"]);function we(e){return Qo.has(ve(e))}function te(e){return Y(e).getComputedStyle(e)}function De(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ce(e){if(ve(e)==="html")return e;let t=e.assignedSlot||e.parentNode||rr(e)&&e.host||ne(e);return rr(t)?t.host:t}function ar(e){let t=ce(e);return we(t)?e.ownerDocument?e.ownerDocument.body:e.body:oe(t)&&_e(t)?t:ar(t)}function Ie(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=ar(e),a=i===((o=e.ownerDocument)==null?void 0:o.body),n=Y(i);if(a){let s=Xe(n);return t.concat(n,n.visualViewport||[],_e(i)?i:[],s&&r?Ie(s):[])}return t.concat(i,Ie(i,[],r))}function Xe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function dr(e){let t=te(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=oe(e),a=i?e.offsetWidth:r,n=i?e.offsetHeight:o,s=Oe(r)!==a||Oe(o)!==n;return s&&(r=a,o=n),{width:r,height:o,$:s}}function ur(e){return ee(e)?e:e.contextElement}function Ce(e){let t=ur(e);if(!oe(t))return re(1);let r=t.getBoundingClientRect(),{width:o,height:i,$:a}=dr(t),n=(a?Oe(r.width):r.width)/o,s=(a?Oe(r.height):r.height)/i;return(!n||!Number.isFinite(n))&&(n=1),(!s||!Number.isFinite(s))&&(s=1),{x:n,y:s}}var Vo=re(0);function gr(e){let t=Y(e);return!Ye()||!t.visualViewport?Vo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bo(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Y(e)?!1:t}function ze(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),a=ur(e),n=re(1);t&&(o?ee(o)&&(n=Ce(o)):n=Ce(e));let s=Bo(a,r,o)?gr(a):re(0),l=(i.left+s.x)/n.x,d=(i.top+s.y)/n.y,c=i.width/n.x,g=i.height/n.y;if(a){let f=Y(a),u=o&&ee(o)?Y(o):o,h=f,x=Xe(h);for(;x&&o&&u!==h;){let v=Ce(x),_=x.getBoundingClientRect(),C=te(x),E=_.left+(x.clientLeft+parseFloat(C.paddingLeft))*v.x,q=_.top+(x.clientTop+parseFloat(C.paddingTop))*v.y;l*=v.x,d*=v.y,c*=v.x,g*=v.y,l+=E,d+=q,h=Y(x),x=Xe(h)}}return fe({width:c,height:g,x:l,y:d})}function Ze(e,t){let r=De(e).scrollLeft;return t?t.left+r:ze(ne(e)).left+r}function mr(e,t){let r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-Ze(e,r),i=r.top+t.scrollTop;return{x:o,y:i}}function Io(e){let{elements:t,rect:r,offsetParent:o,strategy:i}=e,a=i==="fixed",n=ne(o),s=t?Ae(t.floating):!1;if(o===n||s&&a)return r;let l={scrollLeft:0,scrollTop:0},d=re(1),c=re(0),g=oe(o);if((g||!g&&!a)&&((ve(o)!=="body"||_e(n))&&(l=De(o)),oe(o))){let u=ze(o);d=Ce(o),c.x=u.x+o.clientLeft,c.y=u.y+o.clientTop}let f=n&&!g&&!a?mr(n,l):re(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+c.x+f.x,y:r.y*d.y-l.scrollTop*d.y+c.y+f.y}}function Ho(e){return Array.from(e.getClientRects())}function Uo(e){let t=ne(e),r=De(e),o=e.ownerDocument.body,i=U(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=U(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),n=-r.scrollLeft+Ze(e),s=-r.scrollTop;return te(o).direction==="rtl"&&(n+=U(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:n,y:s}}var sr=25;function Yo(e,t){let r=Y(e),o=ne(e),i=r.visualViewport,a=o.clientWidth,n=o.clientHeight,s=0,l=0;if(i){a=i.width,n=i.height;let c=Ye();(!c||c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}let d=Ze(o);if(d<=0){let c=o.ownerDocument,g=c.body,f=getComputedStyle(g),u=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(o.clientWidth-g.clientWidth-u);h<=sr&&(a-=h)}else d<=sr&&(a+=d);return{width:a,height:n,x:s,y:l}}var Xo=new Set(["absolute","fixed"]);function Zo(e,t){let r=ze(e,!0,t==="fixed"),o=r.top+e.clientTop,i=r.left+e.clientLeft,a=oe(e)?Ce(e):re(1),n=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,d=o*a.y;return{width:n,height:s,x:l,y:d}}function lr(e,t,r){let o;if(t==="viewport")o=Yo(e,r);else if(t==="document")o=Uo(ne(e));else if(ee(t))o=Zo(t,r);else{let i=gr(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return fe(o)}function pr(e,t){let r=ce(e);return r===t||!ee(r)||we(r)?!1:te(r).position==="fixed"||pr(r,t)}function Jo(e,t){let r=t.get(e);if(r)return r;let o=Ie(e,[],!1).filter(s=>ee(s)&&ve(s)!=="body"),i=null,a=te(e).position==="fixed",n=a?ce(e):e;for(;ee(n)&&!we(n);){let s=te(n),l=Ue(n);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&Xo.has(i.position)||_e(n)&&!l&&pr(e,n))?o=o.filter(c=>c!==n):i=s,n=ce(n)}return t.set(e,o),o}function Wo(e){let{element:t,boundary:r,rootBoundary:o,strategy:i}=e,n=[...r==="clippingAncestors"?Ae(t)?[]:Jo(t,this._c):[].concat(r),o],s=n[0],l=n.reduce((d,c)=>{let g=lr(t,c,i);return d.top=U(g.top,d.top),d.right=se(g.right,d.right),d.bottom=se(g.bottom,d.bottom),d.left=U(g.left,d.left),d},lr(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Go(e){let{width:t,height:r}=dr(e);return{width:t,height:r}}function Ko(e,t,r){let o=oe(t),i=ne(t),a=r==="fixed",n=ze(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=re(0);function d(){l.x=Ze(i)}if(o||!o&&!a)if((ve(t)!=="body"||_e(i))&&(s=De(t)),o){let u=ze(t,!0,a,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else i&&d();a&&!o&&i&&d();let c=i&&!o&&!a?mr(i,s):re(0),g=n.left+s.scrollLeft-l.x-c.x,f=n.top+s.scrollTop-l.y-c.y;return{x:g,y:f,width:n.width,height:n.height}}function vt(e){return te(e).position==="static"}function cr(e,t){if(!oe(e)||te(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ne(e)===r&&(r=r.ownerDocument.body),r}function br(e,t){let r=Y(e);if(Ae(e))return r;if(!oe(e)){let i=ce(e);for(;i&&!we(i);){if(ee(i)&&!vt(i))return i;i=ce(i)}return r}let o=cr(e,t);for(;o&&ir(o)&&vt(o);)o=cr(o,t);return o&&we(o)&&vt(o)&&!Ue(o)?r:o||nr(e)||r}var ei=async function(e){let t=this.getOffsetParent||br,r=this.getDimensions,o=await r(e.floating);return{reference:Ko(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ti(e){return te(e).direction==="rtl"}var ri={convertOffsetParentRelativeRectToViewportRelativeRect:Io,getDocumentElement:ne,getClippingRect:Wo,getOffsetParent:br,getElementRects:ei,getClientRects:Ho,getDimensions:Go,getScale:Ce,isElement:ee,isRTL:ti};var hr=Kt;var fr=er,vr=Wt,wr=tr,xr=Gt,yr=Jt;var kr=(e,t,r)=>{let o=new Map,i={platform:ri,...r},a={...i.platform,_c:o};return Zt(e,t,{...i,platform:a})};var We="top-start",Ge="top",Ke="top-end",et="right-start",tt="right",rt="right-end",ot="bottom-start",Te="bottom",it="bottom-end",nt="left-start",at="left",st="left-end",wt=[We,Ge,Ke,et,tt,rt,ot,Te,it,nt,at,st],xe={[We]:ot,[Ge]:Te,[Ke]:it,[ot]:We,[Te]:Ge,[it]:Ke,[nt]:et,[at]:tt,[st]:rt,[et]:nt,[tt]:at,[rt]:st},oi={[nt]:-45,[at]:-45,[st]:-45,[We]:45,[Ge]:45,[Ke]:45,[et]:135,[tt]:135,[rt]:135,[ot]:-135,[Te]:-135,[it]:-135},xt=e=>{let t;return/-/.test(e)?t=e.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(""):t=e.charAt(0).toUpperCase()+e.slice(1),t},ii=e=>e.split("-")[0],ni=e=>xe[ii(e)],_r=e=>xe[e],ai=e=>oi[_r(e)],si=(e,t,r)=>{Object.assign(e==null?void 0:e.style,{borderTopLeftRadius:"4px",zIndex:1,[`margin${xt(ni(r))}`]:"-0.5px",transform:`rotate(${t}deg)`})},$r=8,Je=24;async function yt(e){var o,i,a;if(!(e!=null&&e.isShowing)||(e!=null&&e.waitForDOM&&await(e==null?void 0:e.waitForDOM()),!(e!=null&&e.targetEl)||!(e!=null&&e.attentionEl)))return;let t=e==null?void 0:e.targetEl,r=e.attentionEl;return kr(t,r,{placement:(o=e==null?void 0:e.directionName)!=null?o:Te,middleware:[hr({mainAxis:(i=e==null?void 0:e.distance)!=null?i:8,crossAxis:(a=e==null?void 0:e.skidding)!=null?a:0}),(e==null?void 0:e.flip)&&vr({crossAxis:e==null?void 0:e.crossAxis,fallbackPlacements:e==null?void 0:e.fallbackPlacements}),(e==null?void 0:e.flip)&&fr({crossAxis:!0}),!(e!=null&&e.noArrow)&&(e==null?void 0:e.arrowEl)&&yr({element:e==null?void 0:e.arrowEl}),xr(),wr({apply(){Object.assign(r.style,{paddingRight:`${$r}px`,paddingLeft:`${$r}px`})}})]}).then(({x:n,y:s,middlewareData:l,placement:d})=>{if(e.actualDirection=d,e!=null&&e.isCallout||Object.assign(r.style,{left:`${n}px`,top:`${s}px`}),l!=null&&l.hide&&!(e!=null&&e.isCallout)){let{referenceHidden:c}=l.hide;Object.assign(r.style,{visibility:c?"hidden":""})}if(l!=null&&l.arrow&&(e!=null&&e.arrowEl)){let c=e==null?void 0:e.arrowEl,{x:g,y:f}=l.arrow,u=window.getComputedStyle(r).direction==="rtl",h=_r(d).split("-")[1],x="",v="",_="",C="";if(h==="start"){let E=typeof g=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:"";x=typeof f=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:"",v=u?E:"",C=u?"":E}else if(h==="end"){let E=typeof g=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:"";v=u?"":E,C=u?E:"",_=typeof f=="number"?`calc(${Je}px - ${c.offsetWidth/2}px)`:""}else C=typeof g=="number"?`${g}px`:"",x=typeof f=="number"?`${f}px`:"";Object.assign(c.style,{top:x,right:v,bottom:_,left:C}),si(c,ai(d),d)}}),e}import{css as Ai,html as Ee,LitElement as Di,nothing as Gr}from"lit";import{property as W}from"lit/decorators.js";import{ifDefined as zi}from"lit/directives/if-defined.js";var li=["en","nb","fi","da","sv"],Sr="en",Cr=e=>li.find(t=>e===t||e.toLowerCase().includes(t))||Sr;function ci(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Cr(e)}try{let e=document.documentElement.lang;return Cr(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Sr}}var di=(e,t,r,o,i,a)=>e==="nb"?r:e==="fi"?o:e==="da"?i:e==="sv"?a:t,lt=(e,t,r,o,i)=>{let a=ci(),n=di(a,e,t,r,o,i);P.load(a,n),P.activate(a)};import{css as Er}from"lit";var Se=Er`
11
11
  *,
12
12
  :before,
13
13
  :after {
@@ -2446,7 +2446,7 @@ Please compile your catalog first.
2446
2446
  display: none
2447
2447
  }
2448
2448
  }
2449
- `;import{classMap as gn}from"lit/directives/class-map.js";function Lr(){return`m${Math.random().toString(36).slice(2)}`}import{css as di}from"lit";var Or=di`
2449
+ `;import{classMap as gn}from"lit/directives/class-map.js";function Lr(){return`m${Math.random().toString(36).slice(2)}`}import{css as ui}from"lit";var Or=ui`
2450
2450
  .place-self-auto {
2451
2451
  place-self: auto;
2452
2452
  }
@@ -3346,7 +3346,7 @@ Please compile your catalog first.
3346
3346
  padding-top: 4rem;
3347
3347
  padding-bottom: 4rem;
3348
3348
  }
3349
- `;var Ar=JSON.parse('{"attention.aria.callout":["En gr\xF8n taleboble der introducerer noget nyt"],"attention.aria.close":["Luk"],"attention.aria.highlight":["En opm\xE6rksomhedsskabende taleboble med vigtig information"],"attention.aria.pointingDown":["peger nedad"],"attention.aria.pointingLeft":["peger til venstre"],"attention.aria.pointingRight":["peger til h\xF8jre"],"attention.aria.pointingUp":["peger opad"],"attention.aria.popover":["En hvid taleboble med mere information"],"attention.aria.tooltip":["En sort taleboble med flere oplysninger"]}');var Dr=JSON.parse('{"attention.aria.callout":["A green speech bubble introducing something new"],"attention.aria.close":["Close"],"attention.aria.highlight":["An attention speech bubble with important information"],"attention.aria.pointingDown":["pointing down"],"attention.aria.pointingLeft":["pointing left"],"attention.aria.pointingRight":["pointing right"],"attention.aria.pointingUp":["pointing up"],"attention.aria.popover":["A white speech bubble providing additional information"],"attention.aria.tooltip":["A black speech bubble providing complementary information"]}');var zr=JSON.parse('{"attention.aria.callout":["Vihre\xE4 puhekupla, joka esittelee jotain uutta"],"attention.aria.close":["Sulje"],"attention.aria.highlight":["Puhekupla, joka sis\xE4lt\xE4\xE4 t\xE4rke\xE4\xE4 tietoa"],"attention.aria.pointingDown":["osoittaa alas"],"attention.aria.pointingLeft":["osoittaa vasemmalle"],"attention.aria.pointingRight":["osoittaa oikealle"],"attention.aria.pointingUp":["osoittaa yl\xF6s"],"attention.aria.popover":["Valkoinen puhekupla, joka tarjoaa lis\xE4tietoa"],"attention.aria.tooltip":["Musta puhekupla, joka tarjoaa t\xE4ydent\xE4v\xE4\xE4 tietoa"]}');var Tr=JSON.parse('{"attention.aria.callout":["Gr\xF8nn taleboble som introduserer noe nytt"],"attention.aria.close":["Lukk"],"attention.aria.highlight":["En uthevet taleboble med viktig informasjon"],"attention.aria.pointingDown":["peker ned"],"attention.aria.pointingLeft":["peker til venstre"],"attention.aria.pointingRight":["peker til h\xF8yre"],"attention.aria.pointingUp":["peker opp"],"attention.aria.popover":["En hvit taleboble som gir tilleggsinformasjon"],"attention.aria.tooltip":["En svart taleboble som forklarer konteksten"]}');var Mr=JSON.parse('{"attention.aria.callout":["En gr\xF6n pratbubbla som introducerar n\xE5got nytt"],"attention.aria.close":["St\xE4ng"],"attention.aria.highlight":["En pratbubbla med viktig information"],"attention.aria.pointingDown":["pekar ned"],"attention.aria.pointingLeft":["pekar v\xE4nster"],"attention.aria.pointingRight":["pekar h\xF6ger"],"attention.aria.pointingUp":["pekar upp"],"attention.aria.popover":["En vit pratbubbla som ger ytterligare information"],"attention.aria.tooltip":["En svart pratbubbla som ger kompletterande information"]}');import{css as ui}from"lit";var Pr=ui`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\[--w-color-button-primary-background\\]{background-color:var(--w-color-button-primary-background)}.bg-\\[--w-color-callout-background\\]{background-color:var(--w-color-callout-background)}.bg-\\[--w-s-color-surface-elevated-300\\]{background-color:var(--w-s-color-surface-elevated-300)}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}.active\\:bg-\\[--w-color-button-primary-background-active\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-b-0{border-bottom-width:0}.border-r-0{border-right-width:0}.border-\\[--w-color-callout-border\\]{border-color:var(--w-color-callout-border)}.border-\\[--w-s-color-background-inverted\\]{border-color:var(--w-s-color-background-inverted)}.border-\\[--w-s-color-surface-elevated-300\\]{border-color:var(--w-s-color-surface-elevated-300)}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-tl-4{border-top-left-radius:4px}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.hover\\:underline:hover,.focus\\:underline:focus,.active\\:underline:active{text-decoration-line:underline}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.-bottom-\\[8px\\]{bottom:-8px}.-left-\\[8px\\]{left:-8px}.-right-\\[8px\\]{right:-8px}.-top-\\[8px\\]{top:-8px}.justify-center{justify-content:center}.absolute{position:absolute}.relative{position:relative}.static{position:static}.z-50{z-index:50}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-inverted{background-color:var(--w-s-color-background-inverted)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.drop-shadow-m{filter:drop-shadow(0 3px 8px #4040403d)drop-shadow(0 3px 6px #40404029)}.shadow-m{box-shadow:var(--w-shadow-m)}.h-\\[14px\\]{height:14px}.w-\\[14px\\]{width:14px}.last-child\\:mb-0>:last-child{margin-bottom:0}.ml-8{margin-left:.8rem}.p-16{padding:1.6rem}.p-4{padding:.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.font-bold{font-weight:700}.resize{resize:both}.translate-z-0{--w-translate-z:0rem;transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform{transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\[24\\]{line-height:2.4rem}`;import{LitElement as gi}from"lit";import{unsafeStatic as mi,html as pi}from"lit/static-html.js";var bi=JSON.parse('{"icon.title.close":["Kryss"]}'),hi=JSON.parse('{"icon.title.close":["Cross"]}'),fi=JSON.parse('{"icon.title.close":["Rasti"]}'),vi=JSON.parse('{"icon.title.close":["Kryds"]}'),wi=JSON.parse('{"icon.title.close":["Kryss"]}'),Rr=["en","nb","fi","da","sv"],jr="en",xi=()=>{var e;let t;switch((e=process==null?void 0:process.env)==null?void 0:e.NMP_BRAND){case"FINN":t="nb";break;case"TORI":t="fi";break;case"BLOCKET":t="sv";break;case"DBA":t="da";break;default:t="en"}return t},Fr=()=>{var e;let t=(e=document==null?void 0:document.location)==null?void 0:e.hostname;return t!=null&&t.includes("finn")?"nb":t.includes("tori")?"fi":t.includes("blocket")?"sv":t.includes("dba")?"da":jr},kt=e=>Rr.find(t=>e===t||e.toLowerCase().includes(t))||Fr();function yi(){var e;if(typeof window=="undefined"){let t=xi();return kt(t)}try{let t=(e=document==null?void 0:document.documentElement)==null?void 0:e.lang,r=Fr();return Rr.includes(t)?kt(t!=null?t:r):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),kt(r))}catch(t){return console.warn("could not detect locale, falling back to source locale",t),jr}}var ki=(e,t,r,o,i,a)=>e==="nb"?r:e==="fi"?o:e==="da"?i:e==="sv"?a:t,$i=(e,t,r,o,i)=>{let a=yi(),n=ki(a,e,t,r,o,i);P.load(a,n),P.activate(a)};$i(hi,bi,fi,vi,wi);var _i=class extends gi{render(){let e=P.t({message:"Cross",id:"icon.title.close",comment:"Title for close icon"});return pi`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-close-16-part">${mi(`<title>${e}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m12.5 3.5-9 9m0-9 9 9"></path></svg>`}};customElements.get("w-icon-close-16")||customElements.define("w-icon-close-16",_i);var O=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},R=function(e,t,r,o,i){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r};function Nr(e){var t,r,o,i,a,n,s,l,d,c,g,f,u,h,x,v,_,C,E;class q extends e{constructor(...w){var y,L,A;super(...w),t.add(this),this.internals=this.attachInternals(),r.set(this,!1),o.set(this,!1),i.set(this,!1),a.set(this,void 0),n.set(this,void 0),s.set(this,!0),d.set(this,""),c.set(this,()=>{R(this,i,!0,"f"),R(this,r,!0,"f"),O(this,t,"m",v).call(this)}),g.set(this,()=>{R(this,r,!1,"f"),O(this,t,"m",_).call(this,this.shouldFormValueUpdate()?O(this,d,"f"):""),!this.validity.valid&&O(this,i,"f")&&R(this,o,!0,"f");let z=O(this,t,"m",v).call(this);this.validationMessageCallback&&this.validationMessageCallback(z?this.internals.validationMessage:"")}),f.set(this,()=>{var z;O(this,s,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),R(this,s,!1,"f")),R(this,i,!0,"f"),R(this,o,!0,"f"),O(this,t,"m",v).call(this),(z=this===null||this===void 0?void 0:this.validationMessageCallback)===null||z===void 0||z.call(this,this.showError?this.internals.validationMessage:"")}),u.set(this,void 0),h.set(this,!1),x.set(this,Promise.resolve()),(y=this.addEventListener)===null||y===void 0||y.call(this,"focus",O(this,c,"f")),(L=this.addEventListener)===null||L===void 0||L.call(this,"blur",O(this,g,"f")),(A=this.addEventListener)===null||A===void 0||A.call(this,"invalid",O(this,f,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let w=this.validators.map(A=>A.attribute).flat(),y=super.observedAttributes||[];return[...new Set([...y,...w])]}static getValidator(w){return this.validators.find(y=>y.attribute===w)||null}static getValidators(w){return this.validators.filter(y=>{var L;if(y.attribute===w||!((L=y.attribute)===null||L===void 0)&&L.includes(w))return!0})}get form(){return this.internals.form}get showError(){return O(this,t,"m",v).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(w,y,L){var A;(A=super.attributeChangedCallback)===null||A===void 0||A.call(this,w,y,L);let I=this.constructor.getValidators(w);I!=null&&I.length&&this.validationTarget&&this.setValue(O(this,d,"f"))}setValue(w){var y;R(this,o,!1,"f"),(y=this.validationMessageCallback)===null||y===void 0||y.call(this,""),R(this,d,w,"f");let A=this.shouldFormValueUpdate()?w:null;this.internals.setFormValue(A),O(this,t,"m",_).call(this,A),this.valueChangedCallback&&this.valueChangedCallback(A),O(this,t,"m",v).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(w=>w(O(this,x,"f")))}formResetCallback(){var w,y;R(this,i,!1,"f"),R(this,o,!1,"f"),O(this,t,"m",v).call(this),(w=this.resetFormControl)===null||w===void 0||w.call(this),(y=this.validationMessageCallback)===null||y===void 0||y.call(this,O(this,t,"m",v).call(this)?this.validationMessage:"")}}return r=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap,d=new WeakMap,c=new WeakMap,g=new WeakMap,f=new WeakMap,u=new WeakMap,h=new WeakMap,x=new WeakMap,t=new WeakSet,l=function(){let w=this.getRootNode(),y=`${this.localName}[name="${this.getAttribute("name")}"]`;return w.querySelectorAll(y)},v=function(){if(this.hasAttribute("disabled"))return!1;let w=O(this,o,"f")||O(this,i,"f")&&!this.validity.valid&&!O(this,r,"f");return w&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),w},_=function(w){let y=this.constructor,L={},A=y.validators,z=[],I=A.some(M=>M.isValid instanceof Promise);O(this,h,"f")||(R(this,x,new Promise(M=>{R(this,u,M,"f")}),"f"),R(this,h,!0,"f")),O(this,a,"f")&&(O(this,a,"f").abort(),R(this,n,O(this,a,"f"),"f"));let V=new AbortController;R(this,a,V,"f");let H,j=!1;A.length&&(A.forEach(M=>{let X=M.key||"customError",F=M.isValid(this,w,V.signal);F instanceof Promise?(z.push(F),F.then(K=>{K!=null&&(L[X]=!K,H=O(this,t,"m",E).call(this,M,w),O(this,t,"m",C).call(this,L,H))})):(L[X]=!F,this.validity[X]!==!F&&(j=!0),!F&&!H&&(H=O(this,t,"m",E).call(this,M,w)))}),Promise.allSettled(z).then(()=>{var M;V!=null&&V.signal.aborted||(R(this,h,!1,"f"),(M=O(this,u,"f"))===null||M===void 0||M.call(this))}),(j||!I)&&O(this,t,"m",C).call(this,L,H))},C=function(w,y){if(this.validationTarget)this.internals.setValidity(w,y,this.validationTarget),R(this,s,!1,"f");else{if(this.internals.setValidity(w,y),this.internals.validity.valid)return;R(this,s,!0,"f")}},E=function(w,y){if(this.validityCallback){let L=this.validityCallback(w.key||"customError");if(L)return L}return w.message instanceof Function?w.message(this,y):w.message},q}import{html as ct,LitElement as Zr,css as Oi}from"lit";import{property as J}from"lit/decorators.js";import{html as Si,LitElement as Qr}from"lit";import{property as ge}from"lit/decorators.js";import{classMap as Ei}from"lit/directives/class-map.js";import{css as Ci}from"lit";var qr=Ci`.w-button,
3349
+ `;var Ar=JSON.parse('{"attention.aria.callout":["En gr\xF8n taleboble der introducerer noget nyt"],"attention.aria.close":["Luk"],"attention.aria.highlight":["En opm\xE6rksomhedsskabende taleboble med vigtig information"],"attention.aria.pointingDown":["peger nedad"],"attention.aria.pointingLeft":["peger til venstre"],"attention.aria.pointingRight":["peger til h\xF8jre"],"attention.aria.pointingUp":["peger opad"],"attention.aria.popover":["En hvid taleboble med mere information"],"attention.aria.tooltip":["En sort taleboble med flere oplysninger"]}');var Dr=JSON.parse('{"attention.aria.callout":["A green speech bubble introducing something new"],"attention.aria.close":["Close"],"attention.aria.highlight":["An attention speech bubble with important information"],"attention.aria.pointingDown":["pointing down"],"attention.aria.pointingLeft":["pointing left"],"attention.aria.pointingRight":["pointing right"],"attention.aria.pointingUp":["pointing up"],"attention.aria.popover":["A white speech bubble providing additional information"],"attention.aria.tooltip":["A black speech bubble providing complementary information"]}');var zr=JSON.parse('{"attention.aria.callout":["Vihre\xE4 puhekupla, joka esittelee jotain uutta"],"attention.aria.close":["Sulje"],"attention.aria.highlight":["Puhekupla, joka sis\xE4lt\xE4\xE4 t\xE4rke\xE4\xE4 tietoa"],"attention.aria.pointingDown":["osoittaa alas"],"attention.aria.pointingLeft":["osoittaa vasemmalle"],"attention.aria.pointingRight":["osoittaa oikealle"],"attention.aria.pointingUp":["osoittaa yl\xF6s"],"attention.aria.popover":["Valkoinen puhekupla, joka tarjoaa lis\xE4tietoa"],"attention.aria.tooltip":["Musta puhekupla, joka tarjoaa t\xE4ydent\xE4v\xE4\xE4 tietoa"]}');var Tr=JSON.parse('{"attention.aria.callout":["Gr\xF8nn taleboble som introduserer noe nytt"],"attention.aria.close":["Lukk"],"attention.aria.highlight":["En uthevet taleboble med viktig informasjon"],"attention.aria.pointingDown":["peker ned"],"attention.aria.pointingLeft":["peker til venstre"],"attention.aria.pointingRight":["peker til h\xF8yre"],"attention.aria.pointingUp":["peker opp"],"attention.aria.popover":["En hvit taleboble som gir tilleggsinformasjon"],"attention.aria.tooltip":["En svart taleboble som forklarer konteksten"]}');var Mr=JSON.parse('{"attention.aria.callout":["En gr\xF6n pratbubbla som introducerar n\xE5got nytt"],"attention.aria.close":["St\xE4ng"],"attention.aria.highlight":["En pratbubbla med viktig information"],"attention.aria.pointingDown":["pekar ned"],"attention.aria.pointingLeft":["pekar v\xE4nster"],"attention.aria.pointingRight":["pekar h\xF6ger"],"attention.aria.pointingUp":["pekar upp"],"attention.aria.popover":["En vit pratbubbla som ger ytterligare information"],"attention.aria.tooltip":["En svart pratbubbla som ger kompletterande information"]}');import{css as gi}from"lit";var Pr=gi`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\[--w-color-button-primary-background\\]{background-color:var(--w-color-button-primary-background)}.bg-\\[--w-color-callout-background\\]{background-color:var(--w-color-callout-background)}.bg-\\[--w-s-color-surface-elevated-300\\]{background-color:var(--w-s-color-surface-elevated-300)}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}.active\\:bg-\\[--w-color-button-primary-background-active\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-b-0{border-bottom-width:0}.border-r-0{border-right-width:0}.border-\\[--w-color-callout-border\\]{border-color:var(--w-color-callout-border)}.border-\\[--w-s-color-background-inverted\\]{border-color:var(--w-s-color-background-inverted)}.border-\\[--w-s-color-surface-elevated-300\\]{border-color:var(--w-s-color-surface-elevated-300)}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-tl-4{border-top-left-radius:4px}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.hover\\:underline:hover,.focus\\:underline:focus,.active\\:underline:active{text-decoration-line:underline}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.-bottom-\\[8px\\]{bottom:-8px}.-left-\\[8px\\]{left:-8px}.-right-\\[8px\\]{right:-8px}.-top-\\[8px\\]{top:-8px}.justify-center{justify-content:center}.absolute{position:absolute}.relative{position:relative}.static{position:static}.z-50{z-index:50}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-inverted{background-color:var(--w-s-color-background-inverted)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.drop-shadow-m{filter:drop-shadow(0 3px 8px #4040403d)drop-shadow(0 3px 6px #40404029)}.shadow-m{box-shadow:var(--w-shadow-m)}.h-\\[14px\\]{height:14px}.w-\\[14px\\]{width:14px}.last-child\\:mb-0>:last-child{margin-bottom:0}.ml-8{margin-left:.8rem}.p-16{padding:1.6rem}.p-4{padding:.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.font-bold{font-weight:700}.resize{resize:both}.translate-z-0{--w-translate-z:0rem;transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform{transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\[24\\]{line-height:2.4rem}`;import{LitElement as mi}from"lit";import{unsafeStatic as pi,html as bi}from"lit/static-html.js";var hi=JSON.parse('{"icon.title.close":["Kryss"]}'),fi=JSON.parse('{"icon.title.close":["Cross"]}'),vi=JSON.parse('{"icon.title.close":["Rasti"]}'),wi=JSON.parse('{"icon.title.close":["Kryds"]}'),xi=JSON.parse('{"icon.title.close":["Kryss"]}'),Rr=["en","nb","fi","da","sv"],jr="en",yi=()=>{var e;let t;switch((e=process==null?void 0:process.env)==null?void 0:e.NMP_BRAND){case"FINN":t="nb";break;case"TORI":t="fi";break;case"BLOCKET":t="sv";break;case"DBA":t="da";break;default:t="en"}return t},Fr=()=>{var e;let t=(e=document==null?void 0:document.location)==null?void 0:e.hostname;return t!=null&&t.includes("finn")?"nb":t.includes("tori")?"fi":t.includes("blocket")?"sv":t.includes("dba")?"da":jr},kt=e=>Rr.find(t=>e===t||e.toLowerCase().includes(t))||Fr();function ki(){var e;if(typeof window=="undefined"){let t=yi();return kt(t)}try{let t=(e=document==null?void 0:document.documentElement)==null?void 0:e.lang,r=Fr();return Rr.includes(t)?kt(t!=null?t:r):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),kt(r))}catch(t){return console.warn("could not detect locale, falling back to source locale",t),jr}}var $i=(e,t,r,o,i,a)=>e==="nb"?r:e==="fi"?o:e==="da"?i:e==="sv"?a:t,_i=(e,t,r,o,i)=>{let a=ki(),n=$i(a,e,t,r,o,i);P.load(a,n),P.activate(a)};_i(fi,hi,vi,wi,xi);var Ci=class extends mi{render(){let e=P.t({message:"Cross",id:"icon.title.close",comment:"Title for close icon"});return bi`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-close-16-part">${pi(`<title>${e}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m12.5 3.5-9 9m0-9 9 9"></path></svg>`}};customElements.get("w-icon-close-16")||customElements.define("w-icon-close-16",Ci);var O=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},R=function(e,t,r,o,i){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r};function Nr(e){var t,r,o,i,a,n,s,l,d,c,g,f,u,h,x,v,_,C,E;class q extends e{constructor(...w){var y,L,A;super(...w),t.add(this),this.internals=this.attachInternals(),r.set(this,!1),o.set(this,!1),i.set(this,!1),a.set(this,void 0),n.set(this,void 0),s.set(this,!0),d.set(this,""),c.set(this,()=>{R(this,i,!0,"f"),R(this,r,!0,"f"),O(this,t,"m",v).call(this)}),g.set(this,()=>{R(this,r,!1,"f"),O(this,t,"m",_).call(this,this.shouldFormValueUpdate()?O(this,d,"f"):""),!this.validity.valid&&O(this,i,"f")&&R(this,o,!0,"f");let z=O(this,t,"m",v).call(this);this.validationMessageCallback&&this.validationMessageCallback(z?this.internals.validationMessage:"")}),f.set(this,()=>{var z;O(this,s,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),R(this,s,!1,"f")),R(this,i,!0,"f"),R(this,o,!0,"f"),O(this,t,"m",v).call(this),(z=this===null||this===void 0?void 0:this.validationMessageCallback)===null||z===void 0||z.call(this,this.showError?this.internals.validationMessage:"")}),u.set(this,void 0),h.set(this,!1),x.set(this,Promise.resolve()),(y=this.addEventListener)===null||y===void 0||y.call(this,"focus",O(this,c,"f")),(L=this.addEventListener)===null||L===void 0||L.call(this,"blur",O(this,g,"f")),(A=this.addEventListener)===null||A===void 0||A.call(this,"invalid",O(this,f,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let w=this.validators.map(A=>A.attribute).flat(),y=super.observedAttributes||[];return[...new Set([...y,...w])]}static getValidator(w){return this.validators.find(y=>y.attribute===w)||null}static getValidators(w){return this.validators.filter(y=>{var L;if(y.attribute===w||!((L=y.attribute)===null||L===void 0)&&L.includes(w))return!0})}get form(){return this.internals.form}get showError(){return O(this,t,"m",v).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(w,y,L){var A;(A=super.attributeChangedCallback)===null||A===void 0||A.call(this,w,y,L);let I=this.constructor.getValidators(w);I!=null&&I.length&&this.validationTarget&&this.setValue(O(this,d,"f"))}setValue(w){var y;R(this,o,!1,"f"),(y=this.validationMessageCallback)===null||y===void 0||y.call(this,""),R(this,d,w,"f");let A=this.shouldFormValueUpdate()?w:null;this.internals.setFormValue(A),O(this,t,"m",_).call(this,A),this.valueChangedCallback&&this.valueChangedCallback(A),O(this,t,"m",v).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(w=>w(O(this,x,"f")))}formResetCallback(){var w,y;R(this,i,!1,"f"),R(this,o,!1,"f"),O(this,t,"m",v).call(this),(w=this.resetFormControl)===null||w===void 0||w.call(this),(y=this.validationMessageCallback)===null||y===void 0||y.call(this,O(this,t,"m",v).call(this)?this.validationMessage:"")}}return r=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap,d=new WeakMap,c=new WeakMap,g=new WeakMap,f=new WeakMap,u=new WeakMap,h=new WeakMap,x=new WeakMap,t=new WeakSet,l=function(){let w=this.getRootNode(),y=`${this.localName}[name="${this.getAttribute("name")}"]`;return w.querySelectorAll(y)},v=function(){if(this.hasAttribute("disabled"))return!1;let w=O(this,o,"f")||O(this,i,"f")&&!this.validity.valid&&!O(this,r,"f");return w&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),w},_=function(w){let y=this.constructor,L={},A=y.validators,z=[],I=A.some(M=>M.isValid instanceof Promise);O(this,h,"f")||(R(this,x,new Promise(M=>{R(this,u,M,"f")}),"f"),R(this,h,!0,"f")),O(this,a,"f")&&(O(this,a,"f").abort(),R(this,n,O(this,a,"f"),"f"));let V=new AbortController;R(this,a,V,"f");let H,j=!1;A.length&&(A.forEach(M=>{let X=M.key||"customError",F=M.isValid(this,w,V.signal);F instanceof Promise?(z.push(F),F.then(K=>{K!=null&&(L[X]=!K,H=O(this,t,"m",E).call(this,M,w),O(this,t,"m",C).call(this,L,H))})):(L[X]=!F,this.validity[X]!==!F&&(j=!0),!F&&!H&&(H=O(this,t,"m",E).call(this,M,w)))}),Promise.allSettled(z).then(()=>{var M;V!=null&&V.signal.aborted||(R(this,h,!1,"f"),(M=O(this,u,"f"))===null||M===void 0||M.call(this))}),(j||!I)&&O(this,t,"m",C).call(this,L,H))},C=function(w,y){if(this.validationTarget)this.internals.setValidity(w,y,this.validationTarget),R(this,s,!1,"f");else{if(this.internals.setValidity(w,y),this.internals.validity.valid)return;R(this,s,!0,"f")}},E=function(w,y){if(this.validityCallback){let L=this.validityCallback(w.key||"customError");if(L)return L}return w.message instanceof Function?w.message(this,y):w.message},q}import{css as Zr,html as ct,LitElement as Jr}from"lit";import{property as J}from"lit/decorators.js";import{html as Ei,LitElement as Qr}from"lit";import{property as ge}from"lit/decorators.js";import{classMap as Li}from"lit/directives/class-map.js";import{css as Si}from"lit";var qr=Si`.w-button,
3350
3350
  .w-button--secondary {
3351
3351
  /* Local scoped variables, given the default button (the secondary variant) as a default */
3352
3352
  --_background: var(--background, var(--w-s-color-background));
@@ -3357,7 +3357,7 @@ Please compile your catalog first.
3357
3357
  --_border: var(--border, var(--w-s-color-border));
3358
3358
  --_border-hover: var(--border-hover, var(--w-s-color-border-hover));
3359
3359
  --_border-active: var(--border-active, var(--w-s-color-border-active));
3360
- --_border-radius: var(--border-radius, 8px);
3360
+ --_border-radius: var(--w-button-radius-default, 8px);
3361
3361
  --_font-size: var(--font-size, var(--w-font-size-m));
3362
3362
  --_line-height: var(--line-height, var(--w-line-height-m));
3363
3363
  --_font-weight: var(--font-weight, bold);
@@ -3430,7 +3430,7 @@ Please compile your catalog first.
3430
3430
  --background-hover: var(--w-s-color-background-hover);
3431
3431
  --background-active: var(--w-s-color-background-active);
3432
3432
  --color: var(--w-s-color-text);
3433
- --border-radius: 4px;
3433
+ --border-radius: var(--w-button-radius-utility, 4px);
3434
3434
  --border-width: 1px;
3435
3435
  }
3436
3436
  .w-button--utility-quiet {
@@ -3581,14 +3581,14 @@ Please compile your catalog first.
3581
3581
  background-position: 60px 0;
3582
3582
  }
3583
3583
  }`;var Vr=["primary","secondary","negative","negativeQuiet","utility","utilityQuiet","quiet","link","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"],Z=class extends Qr{constructor(){super(...arguments);this.variant="secondary"}connectedCallback(){if(super.connectedCallback(),!Vr.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
3584
- ${Vr.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0)}render(){let r={"w-button":this.variant!=="link","w-button--primary":this.variant==="primary","w-button--secondary":this.variant==="secondary","w-button--negative":this.variant==="negative","w-button--utility":this.variant==="utility","w-button--quiet":this.variant==="quiet","w-button--negative-quiet":this.variant==="negativeQuiet","w-button--utility-quiet":this.variant==="utilityQuiet","w-button--overlay":this.variant==="overlay","w-button--overlay-inverted":this.variant==="overlayInverted","w-button--overlay-quiet":this.variant==="overlayQuiet","w-button--overlay-inverted-quiet":this.variant==="overlayInvertedQuiet","w-button--small":this.small,"w-button--full-width":this.fullWidth,"w-button--disabled":this.disabled};return Si`<a
3584
+ ${Vr.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0)}render(){let r={"w-button":this.variant!=="link","w-button--primary":this.variant==="primary","w-button--secondary":this.variant==="secondary","w-button--negative":this.variant==="negative","w-button--utility":this.variant==="utility","w-button--quiet":this.variant==="quiet","w-button--negative-quiet":this.variant==="negativeQuiet","w-button--utility-quiet":this.variant==="utilityQuiet","w-button--overlay":this.variant==="overlay","w-button--overlay-inverted":this.variant==="overlayInverted","w-button--overlay-quiet":this.variant==="overlayQuiet","w-button--overlay-inverted-quiet":this.variant==="overlayInvertedQuiet","w-button--small":this.small,"w-button--full-width":this.fullWidth,"w-button--disabled":this.disabled};return Ei`<a
3585
3585
  href=${this.href}
3586
3586
  target=${this.target}
3587
3587
  rel=${this.target==="_blank"?this.rel||"noopener":void 0}
3588
- class=${Ei(r)}>
3588
+ class=${Li(r)}>
3589
3589
  <slot></slot>
3590
- </a>`}};Z.shadowRootOptions={...Qr.shadowRootOptions,delegatesFocus:!0},Z.styles=[Se,qr],$([ge({type:Boolean,reflect:!0})],Z.prototype,"autofocus",2),$([ge({reflect:!0})],Z.prototype,"variant",2),$([ge({type:Boolean,reflect:!0})],Z.prototype,"small",2),$([ge({reflect:!0})],Z.prototype,"href",2),$([ge({type:Boolean,reflect:!0})],Z.prototype,"disabled",2),$([ge({reflect:!0})],Z.prototype,"target",2),$([ge({reflect:!0})],Z.prototype,"rel",2),$([ge({attribute:"full-width",type:Boolean,reflect:!0})],Z.prototype,"fullWidth",2);customElements.get("w-link")||customElements.define("w-link",Z);var Br=JSON.parse('{"button.aria.loading":["Indl\xE6ser..."]}');var Ir=JSON.parse('{"button.aria.loading":["Loading..."]}');var Hr=JSON.parse('{"button.aria.loading":["Ladataan..."]}');var Ur=JSON.parse('{"button.aria.loading":["Laster..."]}');var Yr=JSON.parse('{"button.aria.loading":["Laddar ..."]}');import{css as Li}from"lit";var Xr=Li`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.text-center{text-align:center}.animate-inprogress{background-size:30px 30px;animation:3s linear infinite animate-inprogress;background-image:linear-gradient(135deg,#0000000d 25%,#0000 0 50%,#0000000d 0 75%,#0000 0,#0000)!important}@keyframes animate-inprogress{0%{background-position:0 0}to{background-position:60px 0}}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\[--w-color-button-primary-background\\]{background-color:var(--w-color-button-primary-background)}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}.active\\:bg-\\[--w-color-button-primary-background-active\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-transparent{border-color:#0000}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.inline-block{display:inline-block}.inline{display:inline}.inline-flex{display:inline-flex}.hover\\:underline:hover,.focus\\:underline:focus,.active\\:underline:active{text-decoration-line:underline}.hover\\:no-underline:hover,.focus\\:no-underline:focus,.active\\:no-underline:active{text-decoration:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.max-w-full{max-width:100%}.max-w-max{max-width:max-content}.min-h-32{min-height:3.2rem}.min-w-32{min-width:3.2rem}.w-full{width:100%}.min-h-\\[44px\\]{min-height:44px}.min-w-\\[44px\\]{min-width:44px}.p-0{padding:0}.p-4{padding:.4rem}.px-14{padding-left:1.4rem;padding-right:1.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.py-10{padding-top:1rem;padding-bottom:1rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.px-\\[15px\\]{padding-left:15px;padding-right:15px}.py-\\[11px\\]{padding-top:11px;padding-bottom:11px}.py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.cursor-default{cursor:default}.font-bold{font-weight:700}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\[24\\]{line-height:2.4rem}`;var Jr=["primary","secondary","negative","utility","pill","link"],me="font-bold focusable justify-center transition-colors ease-in-out",T={primary:"s-text-inverted bg-[--w-color-button-primary-background] hover:bg-[--w-color-button-primary-background-hover] active:bg-[--w-color-button-primary-background-active]",secondary:"s-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active",utility:"s-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active",destructive:"s-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active",pill:"s-icon hover:s-icon-hover active:s-icon-active bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",disabled:"s-text-inverted s-bg-disabled",quiet:"bg-transparent s-text-link hover:s-bg-hover active:s-bg-active",utilityQuiet:"s-text bg-transparent hover:s-bg-hover active:s-bg-active",negativeQuiet:"bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active",loading:"s-text s-bg-subtle",link:"s-text-link"},S={primary:`border-0 rounded-8 ${me}`,secondary:`border-2 rounded-8 ${me}`,utility:`border rounded-4 ${me}`,negative:`border-0 rounded-8 ${me}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${me}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${T.link}`},p={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},b={medium:"text-m leading-[24]",xsmall:"text-xs"},m={inProgress:`border-transparent animate-inprogress pointer-events-none ${T.loading}`,quiet:`border-0 rounded-8 ${me}`,utilityQuiet:`border-0 rounded-4 ${me}`,negativeQuiet:`border-0 rounded-8 ${me}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${T.disabled}`},k={secondary:`${p.medium} ${b.medium} ${S.secondary} ${T.secondary}`,secondaryHref:`${p.medium} ${b.medium} ${S.secondary} ${T.secondary}`,secondaryDisabled:`${p.medium} ${b.medium} ${S.secondary} ${m.isDisabled}`,secondarySmall:`${b.xsmall} ${p.xsmall} ${S.secondary} ${T.secondary}`,secondarySmallDisabled:`${b.xsmall} ${p.xsmall} ${S.secondary} ${m.isDisabled}`,secondaryQuiet:`${p.medium} ${b.medium} ${m.quiet} ${T.quiet}`,secondaryQuietDisabled:`${p.medium} ${b.medium} ${m.quiet} ${m.isDisabled}`,secondarySmallQuiet:`${b.xsmall} ${p.xsmall} ${m.quiet} ${T.quiet}`,secondarySmallQuietDisabled:`${b.xsmall} ${p.xsmall} ${m.quiet} ${m.isDisabled}`,secondaryLoading:`${p.medium} ${b.medium} ${S.secondary} ${m.inProgress}`,secondarySmallLoading:`${b.xsmall} ${p.xsmall} ${S.secondary} ${m.inProgress}`,secondarySmallQuietLoading:`${b.xsmall} ${p.xsmall} ${m.quiet} ${m.inProgress}`,secondaryQuietLoading:`${p.medium} ${b.medium} ${m.quiet} ${m.inProgress}`,primary:`${p.large} ${b.medium} ${S.primary} ${T.primary}`,primaryDisabled:`${p.large} ${b.medium} ${m.isDisabled} ${S.primary}`,primarySmall:`${p.small} ${b.xsmall} ${S.primary} ${T.primary}`,primarySmallDisabled:`${p.small} ${b.xsmall} ${m.isDisabled} ${S.primary} `,primaryQuiet:`${p.large} ${b.medium} ${m.quiet} ${T.quiet}`,primaryQuietDisabled:`${p.large} ${b.medium} ${m.quiet} ${m.isDisabled}`,primarySmallQuiet:`${p.small} ${b.xsmall} ${m.quiet} ${T.quiet}`,primarySmallQuietDisabled:`${p.small} ${b.xsmall} ${m.quiet} ${m.isDisabled}`,primaryLoading:`${p.large} ${b.medium} ${m.inProgress} ${S.primary}`,primarySmallLoading:`${p.small} ${b.xsmall} ${m.inProgress} ${S.primary}`,primarySmallQuietLoading:`${p.small} ${b.xsmall} ${m.quiet} ${m.inProgress} ${S.primary}`,primaryQuietLoading:`${p.large} ${b.medium} ${m.quiet} ${m.inProgress}`,utility:`${p.utility} ${b.medium} ${S.utility} ${T.utility}`,utilityDisabled:`${p.utility} ${b.medium} ${S.utility} ${m.isDisabled}`,utilityQuiet:`${p.large} ${b.medium} ${m.utilityQuiet} ${T.utilityQuiet}`,utilityQuietDisabled:`${p.large} ${b.medium} ${m.utilityQuiet} ${m.isDisabled}`,utilitySmall:`${p.smallUtility} ${b.xsmall} ${S.utility} ${T.utility}`,utilitySmallDisabled:`${p.smallUtility} ${b.xsmall} ${S.utility} ${m.isDisabled}`,utilitySmallQuiet:`${p.smallUtility} ${b.xsmall} ${m.utilityQuiet} ${T.utilityQuiet}`,utilitySmallQuietDisabled:`${p.smallUtility} ${b.xsmall} ${m.utilityQuiet} ${m.isDisabled}`,utilityLoading:`${p.large} ${b.medium} ${S.utility} ${m.inProgress}`,utilitySmallLoading:`${p.smallUtility} ${b.xsmall} ${S.utility} ${m.inProgress}`,utilityQuietLoading:`${p.large} ${b.medium} ${m.inProgress} ${m.utilityQuiet}`,utilitySmallQuietLoading:`${p.smallUtility} ${b.xsmall} ${m.inProgress} ${m.utilityQuiet}`,negative:`${p.large} ${b.medium} ${S.negative} ${T.destructive}`,negativeDisabled:`${p.large} ${b.medium} ${S.negative} ${m.isDisabled}`,negativeQuiet:`${p.large} ${b.medium} ${m.negativeQuiet} ${T.negativeQuiet}`,negativeQuietDisabled:`${p.large} ${b.medium} ${m.negativeQuiet}${m.isDisabled}`,negativeSmall:`${p.small} ${b.xsmall} ${S.negative} ${T.destructive}`,negativeSmallDisabled:`${p.small} ${b.xsmall} ${S.negative} ${m.isDisabled}`,negativeSmallQuiet:`${p.small} ${b.xsmall} ${m.negativeQuiet} ${T.negativeQuiet}`,negativeSmallQuietDisabled:`${p.small} ${b.xsmall} ${m.negativeQuiet} ${m.isDisabled}`,negativeLoading:`${p.large} ${b.medium} ${S.negative} ${m.inProgress}`,negativeSmallLoading:`${p.small} ${b.xsmall} ${m.inProgress} ${S.negative}`,negativeQuietLoading:`${p.large} ${b.medium} ${m.negativeQuiet} ${S.negative} ${m.inProgress}`,negativeSmallQuietLoading:`${p.small} ${b.xsmall} ${m.negativeQuiet} ${m.inProgress}`,pill:`${p.pill} ${b.medium} ${S.pill} ${T.pill}`,pillSmall:`${p.pillSmall} ${b.xsmall} ${S.pill} ${T.pill}`,pillLoading:`${p.pill} ${b.medium} ${S.pill} ${m.inProgress}`,pillSmallLoading:`${p.pillSmall} ${b.xsmall} ${S.pill} ${m.inProgress}`,link:`${p.link} ${b.medium} ${S.link}`,linkSmall:`${p.link} ${b.xsmall} ${S.link}`,linkAsButton:"inline-block active:no-underline hover:no-underline focus:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"},Me,N=class extends Nr(Zr){constructor(){super();this.type="button";Lt(this,Me,null);lt(Ir,Ur,Hr,Br,Yr),this.variant="secondary",this.ariaValueTextLoading=P._({id:"button.aria.loading",message:"Loading...",comment:"Screen reader message for buttons that are loading"})}updated(r){r.has("value")&&this.setValue(this.value)}connectedCallback(){if(super.connectedCallback(),!Jr.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
3591
- ${Jr.join(", ")}.`);Ot(this,Me,this.value)}firstUpdated(){this.autofocus&&!this.href&&setTimeout(()=>this.focus(),0)}get _primaryClasses(){return[!this.small&&!this.quiet&&!this.loading&&k.primary,this.small&&!this.quiet&&!this.loading&&k.primarySmall,this.small&&this.quiet&&!this.loading&&k.primarySmallQuiet,this.small&&this.loading&&(this.quiet?k.primarySmallQuietLoading:k.primarySmallLoading),!this.small&&this.quiet&&!this.loading&&k.primaryQuiet,!this.small&&this.loading&&(this.quiet?k.primaryQuietLoading:k.primaryLoading)]}get _secondaryClasses(){return[!this.small&&!this.quiet&&!this.loading&&k.secondary,this.small&&!this.quiet&&!this.loading&&k.secondarySmall,this.small&&this.loading&&(this.quiet?k.secondarySmallQuietLoading:k.secondarySmallLoading),this.small&&this.quiet&&!this.loading&&k.secondarySmallQuiet,!this.small&&this.quiet&&!this.loading&&k.secondaryQuiet,!this.small&&this.loading&&(this.quiet?k.secondaryQuietLoading:k.secondaryLoading)]}get _utilityClasses(){return[!this.small&&!this.quiet&&!this.loading&&k.utility,this.small&&!this.quiet&&!this.loading&&k.utilitySmall,this.small&&this.quiet&&!this.loading&&k.utilitySmallQuiet,this.small&&this.loading&&(this.quiet?k.utilitySmallQuietLoading:k.utilitySmallLoading),!this.small&&this.quiet&&!this.loading&&k.utilityQuiet,!this.small&&this.loading&&(this.quiet?k.utilityQuietLoading:k.utilityLoading)]}get _negativeClasses(){return[!this.small&&!this.quiet&&!this.loading&&k.negative,this.small&&!this.quiet&&!this.loading&&k.negativeSmall,this.small&&this.quiet&&!this.loading&&k.negativeSmallQuiet,this.small&&this.loading&&(this.quiet?k.negativeSmallQuietLoading:k.negativeSmallLoading),!this.small&&this.quiet&&!this.loading&&k.negativeQuiet,!this.small&&this.loading&&(this.quiet?k.negativeQuietLoading:k.negativeLoading)]}get _pillClasses(){return[!this.loading&&(this.small?k.pillSmall:k.pill),this.loading&&(this.small?k.pillSmallLoading:k.pillLoading)]}get _linkClasses(){return[this.small?k.linkSmall:k.link]}get _classes(){return ye(this.buttonClass,[this.variant==="primary"&&this._primaryClasses,this.variant==="secondary"&&this._secondaryClasses,this.variant==="utility"&&this._utilityClasses,this.variant==="negative"&&this._negativeClasses,this.variant==="pill"&&this._pillClasses,this.variant==="link"&&this._linkClasses,this.href&&k.linkAsButton,this.fullWidth?k.fullWidth:k.contentWidth])}_handleButtonClick(){this.type==="submit"?this.internals.form.requestSubmit():this.type==="reset"&&this.internals.form.reset()}resetFormControl(){this.value=Et(this,Me)}render(){return ct` ${this.href?ct`<w-link
3590
+ </a>`}};Z.shadowRootOptions={...Qr.shadowRootOptions,delegatesFocus:!0},Z.styles=[Se,qr],$([ge({type:Boolean,reflect:!0})],Z.prototype,"autofocus",2),$([ge({reflect:!0})],Z.prototype,"variant",2),$([ge({type:Boolean,reflect:!0})],Z.prototype,"small",2),$([ge({reflect:!0})],Z.prototype,"href",2),$([ge({type:Boolean,reflect:!0})],Z.prototype,"disabled",2),$([ge({reflect:!0})],Z.prototype,"target",2),$([ge({reflect:!0})],Z.prototype,"rel",2),$([ge({attribute:"full-width",type:Boolean,reflect:!0})],Z.prototype,"fullWidth",2);customElements.get("w-link")||customElements.define("w-link",Z);var Br=JSON.parse('{"button.aria.loading":["Indl\xE6ser..."]}');var Ir=JSON.parse('{"button.aria.loading":["Loading..."]}');var Hr=JSON.parse('{"button.aria.loading":["Ladataan..."]}');var Ur=JSON.parse('{"button.aria.loading":["Laster..."]}');var Yr=JSON.parse('{"button.aria.loading":["Laddar ..."]}');import{css as Oi}from"lit";var Xr=Oi`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.text-center{text-align:center}.animate-inprogress{background-size:30px 30px;animation:3s linear infinite animate-inprogress;background-image:linear-gradient(135deg,#0000000d 25%,#0000 0 50%,#0000000d 0 75%,#0000 0,#0000)!important}@keyframes animate-inprogress{0%{background-position:0 0}to{background-position:60px 0}}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\[--w-color-button-primary-background\\]{background-color:var(--w-color-button-primary-background)}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}.active\\:bg-\\[--w-color-button-primary-background-active\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-transparent{border-color:#0000}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.inline-block{display:inline-block}.inline{display:inline}.inline-flex{display:inline-flex}.hover\\:underline:hover,.focus\\:underline:focus,.active\\:underline:active{text-decoration-line:underline}.hover\\:no-underline:hover,.focus\\:no-underline:focus,.active\\:no-underline:active{text-decoration:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.max-w-full{max-width:100%}.max-w-max{max-width:max-content}.min-h-32{min-height:3.2rem}.min-w-32{min-width:3.2rem}.w-full{width:100%}.min-h-\\[44px\\]{min-height:44px}.min-w-\\[44px\\]{min-width:44px}.p-0{padding:0}.p-4{padding:.4rem}.px-14{padding-left:1.4rem;padding-right:1.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.py-10{padding-top:1rem;padding-bottom:1rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.px-\\[15px\\]{padding-left:15px;padding-right:15px}.py-\\[11px\\]{padding-top:11px;padding-bottom:11px}.py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.cursor-default{cursor:default}.font-bold{font-weight:700}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\[24\\]{line-height:2.4rem}`;var Wr=["primary","secondary","negative","utility","pill","link"],me="font-bold focusable justify-center transition-colors ease-in-out",T={primary:"s-text-inverted bg-[--w-color-button-primary-background] hover:bg-[--w-color-button-primary-background-hover] active:bg-[--w-color-button-primary-background-active]",secondary:"s-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active",utility:"s-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active",destructive:"s-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active",pill:"s-icon hover:s-icon-hover active:s-icon-active bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",disabled:"s-text-inverted s-bg-disabled",quiet:"bg-transparent s-text-link hover:s-bg-hover active:s-bg-active",utilityQuiet:"s-text bg-transparent hover:s-bg-hover active:s-bg-active",negativeQuiet:"bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active",loading:"s-text s-bg-subtle",link:"s-text-link"},S={primary:`border-0 rounded-radius-default ${me}`,secondary:`border-2 rounded-radius-default ${me}`,utility:`border rounded-radius-utility ${me}`,negative:`border-0 rounded-radius-default ${me}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${me}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${T.link}`},p={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},b={medium:"text-m leading-[24]",xsmall:"text-xs"},m={inProgress:`border-transparent animate-inprogress pointer-events-none ${T.loading}`,quiet:`border-0 rounded-8 ${me}`,utilityQuiet:`border-0 rounded-4 ${me}`,negativeQuiet:`border-0 rounded-8 ${me}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${T.disabled}`},k={secondary:`${p.medium} ${b.medium} ${S.secondary} ${T.secondary}`,secondaryHref:`${p.medium} ${b.medium} ${S.secondary} ${T.secondary}`,secondaryDisabled:`${p.medium} ${b.medium} ${S.secondary} ${m.isDisabled}`,secondarySmall:`${b.xsmall} ${p.xsmall} ${S.secondary} ${T.secondary}`,secondarySmallDisabled:`${b.xsmall} ${p.xsmall} ${S.secondary} ${m.isDisabled}`,secondaryQuiet:`${p.medium} ${b.medium} ${m.quiet} ${T.quiet}`,secondaryQuietDisabled:`${p.medium} ${b.medium} ${m.quiet} ${m.isDisabled}`,secondarySmallQuiet:`${b.xsmall} ${p.xsmall} ${m.quiet} ${T.quiet}`,secondarySmallQuietDisabled:`${b.xsmall} ${p.xsmall} ${m.quiet} ${m.isDisabled}`,secondaryLoading:`${p.medium} ${b.medium} ${S.secondary} ${m.inProgress}`,secondarySmallLoading:`${b.xsmall} ${p.xsmall} ${S.secondary} ${m.inProgress}`,secondarySmallQuietLoading:`${b.xsmall} ${p.xsmall} ${m.quiet} ${m.inProgress}`,secondaryQuietLoading:`${p.medium} ${b.medium} ${m.quiet} ${m.inProgress}`,primary:`${p.large} ${b.medium} ${S.primary} ${T.primary}`,primaryDisabled:`${p.large} ${b.medium} ${m.isDisabled} ${S.primary}`,primarySmall:`${p.small} ${b.xsmall} ${S.primary} ${T.primary}`,primarySmallDisabled:`${p.small} ${b.xsmall} ${m.isDisabled} ${S.primary} `,primaryQuiet:`${p.large} ${b.medium} ${m.quiet} ${T.quiet}`,primaryQuietDisabled:`${p.large} ${b.medium} ${m.quiet} ${m.isDisabled}`,primarySmallQuiet:`${p.small} ${b.xsmall} ${m.quiet} ${T.quiet}`,primarySmallQuietDisabled:`${p.small} ${b.xsmall} ${m.quiet} ${m.isDisabled}`,primaryLoading:`${p.large} ${b.medium} ${m.inProgress} ${S.primary}`,primarySmallLoading:`${p.small} ${b.xsmall} ${m.inProgress} ${S.primary}`,primarySmallQuietLoading:`${p.small} ${b.xsmall} ${m.quiet} ${m.inProgress} ${S.primary}`,primaryQuietLoading:`${p.large} ${b.medium} ${m.quiet} ${m.inProgress}`,utility:`${p.utility} ${b.medium} ${S.utility} ${T.utility}`,utilityDisabled:`${p.utility} ${b.medium} ${S.utility} ${m.isDisabled}`,utilityQuiet:`${p.large} ${b.medium} ${m.utilityQuiet} ${T.utilityQuiet}`,utilityQuietDisabled:`${p.large} ${b.medium} ${m.utilityQuiet} ${m.isDisabled}`,utilitySmall:`${p.smallUtility} ${b.xsmall} ${S.utility} ${T.utility}`,utilitySmallDisabled:`${p.smallUtility} ${b.xsmall} ${S.utility} ${m.isDisabled}`,utilitySmallQuiet:`${p.smallUtility} ${b.xsmall} ${m.utilityQuiet} ${T.utilityQuiet}`,utilitySmallQuietDisabled:`${p.smallUtility} ${b.xsmall} ${m.utilityQuiet} ${m.isDisabled}`,utilityLoading:`${p.large} ${b.medium} ${S.utility} ${m.inProgress}`,utilitySmallLoading:`${p.smallUtility} ${b.xsmall} ${S.utility} ${m.inProgress}`,utilityQuietLoading:`${p.large} ${b.medium} ${m.inProgress} ${m.utilityQuiet}`,utilitySmallQuietLoading:`${p.smallUtility} ${b.xsmall} ${m.inProgress} ${m.utilityQuiet}`,negative:`${p.large} ${b.medium} ${S.negative} ${T.destructive}`,negativeDisabled:`${p.large} ${b.medium} ${S.negative} ${m.isDisabled}`,negativeQuiet:`${p.large} ${b.medium} ${m.negativeQuiet} ${T.negativeQuiet}`,negativeQuietDisabled:`${p.large} ${b.medium} ${m.negativeQuiet}${m.isDisabled}`,negativeSmall:`${p.small} ${b.xsmall} ${S.negative} ${T.destructive}`,negativeSmallDisabled:`${p.small} ${b.xsmall} ${S.negative} ${m.isDisabled}`,negativeSmallQuiet:`${p.small} ${b.xsmall} ${m.negativeQuiet} ${T.negativeQuiet}`,negativeSmallQuietDisabled:`${p.small} ${b.xsmall} ${m.negativeQuiet} ${m.isDisabled}`,negativeLoading:`${p.large} ${b.medium} ${S.negative} ${m.inProgress}`,negativeSmallLoading:`${p.small} ${b.xsmall} ${m.inProgress} ${S.negative}`,negativeQuietLoading:`${p.large} ${b.medium} ${m.negativeQuiet} ${S.negative} ${m.inProgress}`,negativeSmallQuietLoading:`${p.small} ${b.xsmall} ${m.negativeQuiet} ${m.inProgress}`,pill:`${p.pill} ${b.medium} ${S.pill} ${T.pill}`,pillSmall:`${p.pillSmall} ${b.xsmall} ${S.pill} ${T.pill}`,pillLoading:`${p.pill} ${b.medium} ${S.pill} ${m.inProgress}`,pillSmallLoading:`${p.pillSmall} ${b.xsmall} ${S.pill} ${m.inProgress}`,link:`${p.link} ${b.medium} ${S.link}`,linkSmall:`${p.link} ${b.xsmall} ${S.link}`,linkAsButton:"inline-block active:no-underline hover:no-underline focus:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"},Me,N=class extends Nr(Jr){constructor(){super();this.type="button";Lt(this,Me,null);lt(Ir,Ur,Hr,Br,Yr),this.variant="secondary",this.ariaValueTextLoading=P._({id:"button.aria.loading",message:"Loading...",comment:"Screen reader message for buttons that are loading"})}updated(r){r.has("value")&&this.setValue(this.value)}connectedCallback(){if(super.connectedCallback(),!Wr.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
3591
+ ${Wr.join(", ")}.`);Ot(this,Me,this.value)}firstUpdated(){this.autofocus&&!this.href&&setTimeout(()=>this.focus(),0)}get _primaryClasses(){return[!this.small&&!this.quiet&&!this.loading&&k.primary,this.small&&!this.quiet&&!this.loading&&k.primarySmall,this.small&&this.quiet&&!this.loading&&k.primarySmallQuiet,this.small&&this.loading&&(this.quiet?k.primarySmallQuietLoading:k.primarySmallLoading),!this.small&&this.quiet&&!this.loading&&k.primaryQuiet,!this.small&&this.loading&&(this.quiet?k.primaryQuietLoading:k.primaryLoading)]}get _secondaryClasses(){return[!this.small&&!this.quiet&&!this.loading&&k.secondary,this.small&&!this.quiet&&!this.loading&&k.secondarySmall,this.small&&this.loading&&(this.quiet?k.secondarySmallQuietLoading:k.secondarySmallLoading),this.small&&this.quiet&&!this.loading&&k.secondarySmallQuiet,!this.small&&this.quiet&&!this.loading&&k.secondaryQuiet,!this.small&&this.loading&&(this.quiet?k.secondaryQuietLoading:k.secondaryLoading)]}get _utilityClasses(){return[!this.small&&!this.quiet&&!this.loading&&k.utility,this.small&&!this.quiet&&!this.loading&&k.utilitySmall,this.small&&this.quiet&&!this.loading&&k.utilitySmallQuiet,this.small&&this.loading&&(this.quiet?k.utilitySmallQuietLoading:k.utilitySmallLoading),!this.small&&this.quiet&&!this.loading&&k.utilityQuiet,!this.small&&this.loading&&(this.quiet?k.utilityQuietLoading:k.utilityLoading)]}get _negativeClasses(){return[!this.small&&!this.quiet&&!this.loading&&k.negative,this.small&&!this.quiet&&!this.loading&&k.negativeSmall,this.small&&this.quiet&&!this.loading&&k.negativeSmallQuiet,this.small&&this.loading&&(this.quiet?k.negativeSmallQuietLoading:k.negativeSmallLoading),!this.small&&this.quiet&&!this.loading&&k.negativeQuiet,!this.small&&this.loading&&(this.quiet?k.negativeQuietLoading:k.negativeLoading)]}get _pillClasses(){return[!this.loading&&(this.small?k.pillSmall:k.pill),this.loading&&(this.small?k.pillSmallLoading:k.pillLoading)]}get _linkClasses(){return[this.small?k.linkSmall:k.link]}get _classes(){return ye(this.buttonClass,[this.variant==="primary"&&this._primaryClasses,this.variant==="secondary"&&this._secondaryClasses,this.variant==="utility"&&this._utilityClasses,this.variant==="negative"&&this._negativeClasses,this.variant==="pill"&&this._pillClasses,this.variant==="link"&&this._linkClasses,this.href&&k.linkAsButton,this.fullWidth?k.fullWidth:k.contentWidth])}_handleButtonClick(){this.type==="submit"?this.internals.form.requestSubmit():this.type==="reset"&&this.internals.form.reset()}resetFormControl(){this.value=Et(this,Me)}render(){return ct` ${this.href?ct`<w-link
3592
3592
  href=${this.href}
3593
3593
  target=${this.target}
3594
3594
  variant=${this.variant}
@@ -3603,7 +3603,7 @@ ${Jr.join(", ")}.`);Ot(this,Me,this.value)}firstUpdated(){this.autofocus&&!this.
3603
3603
  </w-link>`:ct`<button type=${this.type||"button"} class=${this._classes} @click="${this._handleButtonClick}">
3604
3604
  <slot></slot>
3605
3605
  </button>`}
3606
- ${this.loading?ct`<span class="sr-only" role="progressbar" aria-valuenow="{0}" aria-valuetext=${this.ariaValueTextLoading}></span>`:null}`}};Me=new WeakMap,N.shadowRootOptions={...Zr.shadowRootOptions,delegatesFocus:!0},N.styles=[Se,Xr,Oi`:host([full-width]) { width: 100%; }`],$([J({reflect:!0})],N.prototype,"type",2),$([J({type:Boolean,reflect:!0})],N.prototype,"autofocus",2),$([J({reflect:!0})],N.prototype,"variant",2),$([J({type:Boolean,reflect:!0})],N.prototype,"quiet",2),$([J({type:Boolean,reflect:!0})],N.prototype,"small",2),$([J({type:Boolean,reflect:!0})],N.prototype,"loading",2),$([J({reflect:!0})],N.prototype,"href",2),$([J({reflect:!0})],N.prototype,"target",2),$([J({reflect:!0})],N.prototype,"rel",2),$([J({attribute:"full-width",type:Boolean,reflect:!0})],N.prototype,"fullWidth",2),$([J({attribute:"button-class",reflect:!0})],N.prototype,"buttonClass",2),$([J({reflect:!0})],N.prototype,"name",2),$([J({reflect:!0})],N.prototype,"value",2);customElements.get("w-button")||customElements.define("w-button",N);var Ti={primary:"s-text-inverted bg-[--w-color-button-primary-background] hover:bg-[--w-color-button-primary-background-hover] active:bg-[--w-color-button-primary-background-active]",secondary:"s-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active",utility:"s-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active",destructive:"s-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active",pill:"s-icon hover:s-icon-hover active:s-icon-active bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",disabled:"s-text-inverted s-bg-disabled",quiet:"bg-transparent s-text-link hover:s-bg-hover active:s-bg-active",utilityQuiet:"s-text bg-transparent hover:s-bg-hover active:s-bg-active",negativeQuiet:"bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active",loading:"s-text s-bg-subtle",link:"s-text-link"},Pe="font-bold focusable justify-center transition-colors ease-in-out",La={primary:`border-0 rounded-8 ${Pe}`,secondary:`border-2 rounded-8 ${Pe}`,utility:`border rounded-4 ${Pe}`,negative:`border-0 rounded-8 ${Pe}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${Pe}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${Ti.link}`},Re={base:"border-2 relative flex items-center",tooltip:"s-bg-inverted border-[--w-s-color-background-inverted] shadow-m s-text-inverted rounded-4 py-6 px-8",callout:"bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8",highlight:"bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8 drop-shadow-m translate-z-0",popover:"bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300] s-text rounded-8 p-16 drop-shadow-m translate-z-0",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeftStart:"-left-[8px]",arrowDirectionLeft:"-left-[8px]",arrowDirectionLeftEnd:"-left-[8px]",arrowDirectionRightStart:"-right-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionRightEnd:"-right-[8px]",arrowDirectionBottomStart:"-bottom-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionBottomEnd:"-bottom-[8px]",arrowDirectionTopStart:"-top-[8px]",arrowDirectionTop:"-top-[8px]",arrowDirectionTopEnd:"-top-[8px]",arrowTooltip:"s-bg-inverted border-[--w-s-color-background-inverted]",arrowCallout:"bg-[--w-color-callout-background] border-[--w-color-callout-border]",arrowPopover:"bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300]",arrowHighlight:"bg-[--w-color-callout-background] border-[--w-color-callout-border]",content:"last-child:mb-0",notCallout:"absolute z-50"},Q=class extends Di{constructor(){super(),lt(Dr,Tr,zr,Ar,Mr),this.handleDone=this.handleDone.bind(this),this.show=!1,this.placement="bottom",this.tooltip=!1,this.callout=!1,this.popover=!1,this.highlight=!1,this.canClose=!1,this.noArrow=!1,this.distance=8,this.skidding=0,this.flip=!1,this.crossAxis=!1,this._initialPlacement=this.placement,this._actualDirection=this.placement}connectedCallback(){if(super.connectedCallback(),this.placement&&!Object.keys(xe).includes(this.placement))throw new Error(`Invalid "placement" attribute. Set its value to one of the following:
3606
+ ${this.loading?ct`<span class="sr-only" role="progressbar" aria-valuenow="{0}" aria-valuetext=${this.ariaValueTextLoading}></span>`:null}`}};Me=new WeakMap,N.shadowRootOptions={...Jr.shadowRootOptions,delegatesFocus:!0},N.styles=[Se,Xr,Zr`:host([full-width]) { width: 100%; }`,Zr`.rounded-radius-default{border-radius:var(--w-button-radius-default,8px);}.rounded-radius-utility{border-radius:var(--w-button-radius-utility,4px);}`],$([J({reflect:!0})],N.prototype,"type",2),$([J({type:Boolean,reflect:!0})],N.prototype,"autofocus",2),$([J({reflect:!0})],N.prototype,"variant",2),$([J({type:Boolean,reflect:!0})],N.prototype,"quiet",2),$([J({type:Boolean,reflect:!0})],N.prototype,"small",2),$([J({type:Boolean,reflect:!0})],N.prototype,"loading",2),$([J({reflect:!0})],N.prototype,"href",2),$([J({reflect:!0})],N.prototype,"target",2),$([J({reflect:!0})],N.prototype,"rel",2),$([J({attribute:"full-width",type:Boolean,reflect:!0})],N.prototype,"fullWidth",2),$([J({attribute:"button-class",reflect:!0})],N.prototype,"buttonClass",2),$([J({reflect:!0})],N.prototype,"name",2),$([J({reflect:!0})],N.prototype,"value",2);customElements.get("w-button")||customElements.define("w-button",N);var Ti={primary:"s-text-inverted bg-[--w-color-button-primary-background] hover:bg-[--w-color-button-primary-background-hover] active:bg-[--w-color-button-primary-background-active]",secondary:"s-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active",utility:"s-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active",destructive:"s-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active",pill:"s-icon hover:s-icon-hover active:s-icon-active bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",disabled:"s-text-inverted s-bg-disabled",quiet:"bg-transparent s-text-link hover:s-bg-hover active:s-bg-active",utilityQuiet:"s-text bg-transparent hover:s-bg-hover active:s-bg-active",negativeQuiet:"bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active",loading:"s-text s-bg-subtle",link:"s-text-link"},Pe="font-bold focusable justify-center transition-colors ease-in-out",La={primary:`border-0 rounded-8 ${Pe}`,secondary:`border-2 rounded-8 ${Pe}`,utility:`border rounded-4 ${Pe}`,negative:`border-0 rounded-8 ${Pe}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${Pe}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${Ti.link}`},Re={base:"border-2 relative flex items-center",tooltip:"s-bg-inverted border-[--w-s-color-background-inverted] shadow-m s-text-inverted rounded-4 py-6 px-8",callout:"bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8",highlight:"bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8 drop-shadow-m translate-z-0",popover:"bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300] s-text rounded-8 p-16 drop-shadow-m translate-z-0",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeftStart:"-left-[8px]",arrowDirectionLeft:"-left-[8px]",arrowDirectionLeftEnd:"-left-[8px]",arrowDirectionRightStart:"-right-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionRightEnd:"-right-[8px]",arrowDirectionBottomStart:"-bottom-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionBottomEnd:"-bottom-[8px]",arrowDirectionTopStart:"-top-[8px]",arrowDirectionTop:"-top-[8px]",arrowDirectionTopEnd:"-top-[8px]",arrowTooltip:"s-bg-inverted border-[--w-s-color-background-inverted]",arrowCallout:"bg-[--w-color-callout-background] border-[--w-color-callout-border]",arrowPopover:"bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300]",arrowHighlight:"bg-[--w-color-callout-background] border-[--w-color-callout-border]",content:"last-child:mb-0",notCallout:"absolute z-50"},Q=class extends Di{constructor(){super(),lt(Dr,Tr,zr,Ar,Mr),this.handleDone=this.handleDone.bind(this),this.show=!1,this.placement="bottom",this.tooltip=!1,this.callout=!1,this.popover=!1,this.highlight=!1,this.canClose=!1,this.noArrow=!1,this.distance=8,this.skidding=0,this.flip=!1,this.crossAxis=!1,this._initialPlacement=this.placement,this._actualDirection=this.placement}connectedCallback(){if(super.connectedCallback(),this.placement&&!Object.keys(xe).includes(this.placement))throw new Error(`Invalid "placement" attribute. Set its value to one of the following:
3607
3607
  ${JSON.stringify(Object.keys(xe))}`);if(this.fallbackPlacements&&!this.fallbackPlacements.every(t=>wt.includes(t)))throw new Error(`Invalid "fallbackPlacements" attribute. Set its value to an array with one or more of the following:
3608
3608
  ${JSON.stringify(wt)}`);setTimeout(()=>{this.requestUpdate(),this.handleDone()},0),this.callout||(window.addEventListener("click",this.handleDone),window.addEventListener("scroll",this.handleDone),window.addEventListener("resize",this.handleDone),window.addEventListener("touch",this.handleDone)),this.tooltip&&(window.addEventListener("mouseover",this.handleDone),window.addEventListener("mouseout",this.handleDone))}disconnectedCallback(){window.removeEventListener("click",this.handleDone),window.removeEventListener("scroll",this.handleDone),window.removeEventListener("resize",this.handleDone),window.removeEventListener("touch",this.handleDone),window.removeEventListener("mouseover",this.handleDone),window.removeEventListener("mouseout",this.handleDone),super.disconnectedCallback()}handleDone(){window.requestAnimationFrame(()=>{this.show&&this._targetEl&&this._attentionEl?yt(this.attentionState).then(t=>{this._actualDirection=t==null?void 0:t.actualDirection}):this._actualDirection=this._initialPlacement})}get _actualDirection(){return this.placement}set _actualDirection(t){this.placement=t}get _arrowEl(){return this.renderRoot.querySelector("#arrow")}get _arrowDirection(){return xe[this._actualDirection]}get _arrowClasses(){return ye([Re.arrowBase,this._activeVariantClasses.arrow,Re[`arrowDirection${xt(this._arrowDirection)}`]])}get _arrowHtml(){return this.noArrow?"":Ee`<div id="arrow" class="${this._arrowClasses}"></div>`}get _activeVariantClasses(){let t={callout:this.callout,popover:this.popover,tooltip:this.tooltip,highlight:this.highlight},r=Object.keys(t).find(o=>!!t[o])||"";return{wrapper:Re[r],arrow:Re[`arrow${r.charAt(0).toUpperCase()+r.slice(1)}`]}}get _attentionEl(){return this.renderRoot.querySelector("#attention")}get _targetEl(){var r;let t=(r=this.renderRoot)==null?void 0:r.querySelector("slot[name='target']");return t?t.assignedElements()[0]:null}get _messageEl(){let t=this.renderRoot.querySelector("slot[name='message']");return t?t.assignedElements()[0]:null}get _wrapperClasses(){return ye([Re.base,this._activeVariantClasses.wrapper])}get _ariaClose(){return P._({id:"attention.aria.close",message:"Close",comment:"Aria label for the close button in attention"})}get _closeBtnHtml(){return Ee`
3609
3609
  <w-button
@@ -3626,13 +3626,13 @@ ${JSON.stringify(wt)}`);setTimeout(()=>{this.requestUpdate(),this.handleDone()},
3626
3626
  <div id="attention" class="${this._wrapperClasses}">
3627
3627
  <div role="${this.tooltip?"tooltip":"img"}" aria-label="${this.defaultAriaLabel()}">${this._arrowHtml}</div>
3628
3628
  <slot name="message"></slot>
3629
- ${this.canClose?this._closeBtnHtml:Wr}
3629
+ ${this.canClose?this._closeBtnHtml:Gr}
3630
3630
  </div>
3631
3631
  `:Ee`
3632
3632
  <div id="attention" class="${this._wrapperClasses}">
3633
3633
  <slot name="message"></slot>
3634
3634
  <div role="${this.tooltip?"tooltip":"img"}" aria-label="${this.defaultAriaLabel()}">${this._arrowHtml}</div>
3635
- ${this.canClose?this._closeBtnHtml:Wr}
3635
+ ${this.canClose?this._closeBtnHtml:Gr}
3636
3636
  </div>
3637
3637
  <slot name="target"></slot>
3638
3638
  `}
@@ -3648,4 +3648,4 @@ ${JSON.stringify(wt)}`);setTimeout(()=>{this.requestUpdate(),this.handleDone()},
3648
3648
  display: contents;
3649
3649
  }
3650
3650
  `],$([W({type:Boolean,reflect:!0})],Q.prototype,"show",2),$([W({type:String,reflect:!0})],Q.prototype,"placement",2),$([W({type:Boolean,reflect:!0})],Q.prototype,"tooltip",2),$([W({type:Boolean,reflect:!0})],Q.prototype,"callout",2),$([W({type:Boolean,reflect:!0})],Q.prototype,"popover",2),$([W({type:Boolean,reflect:!0})],Q.prototype,"highlight",2),$([W({attribute:"can-close",type:Boolean,reflect:!0})],Q.prototype,"canClose",2),$([W({attribute:"no-arrow",type:Boolean,reflect:!0})],Q.prototype,"noArrow",2),$([W({type:Number,reflect:!0})],Q.prototype,"distance",2),$([W({type:Number,reflect:!0})],Q.prototype,"skidding",2),$([W({type:Boolean,reflect:!0})],Q.prototype,"flip",2),$([W({attribute:"cross-axis",type:Boolean,reflect:!0})],Q.prototype,"crossAxis",2),$([W({attribute:"fallback-placements",type:Array,reflect:!0})],Q.prototype,"fallbackPlacements",2);customElements.get("w-attention")||customElements.define("w-attention",Q);export{Q as WarpAttention};
3651
- //# sourceMappingURL=index.js.map
3651
+ //# sourceMappingURL=attention.js.map