@swisspost/internet-header 10.3.0 → 10.5.0

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 (341) hide show
  1. package/dist/cjs/{breakpoints-CI0Xuh1L.js → breakpoints-Kruvy8Dm.js} +11 -10
  2. package/dist/cjs/{event-from-CwMw19f8.js → event-from-CTcQxB9-.js} +19 -13
  3. package/dist/cjs/index-B5ypPkK3.js +4 -4
  4. package/dist/cjs/index.cjs.js +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/{package-uiAqYqcY.js → package-DdU-rENe.js} +1 -1
  7. package/dist/cjs/{package-Bk3UBVSc.js → package-pLOjVG24.js} +1 -1
  8. package/dist/cjs/post-accordion_4.cjs.entry.js +4 -4
  9. package/dist/cjs/post-autocomplete.cjs.entry.js +65 -50
  10. package/dist/cjs/post-avatar.cjs.entry.js +1 -1
  11. package/dist/cjs/post-back-to-top.cjs.entry.js +20 -8
  12. package/dist/cjs/post-banner.cjs.entry.js +2 -9
  13. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +11 -3
  14. package/dist/cjs/post-breadcrumbs.cjs.entry.js +111 -60
  15. package/dist/cjs/post-closebutton.cjs.entry.js +47 -9
  16. package/dist/cjs/post-date-picker.cjs.entry.js +33 -10
  17. package/dist/cjs/post-footer.cjs.entry.js +9 -7
  18. package/dist/cjs/post-header.cjs.entry.js +6 -6
  19. package/dist/cjs/post-icon.cjs.entry.js +2 -2
  20. package/dist/cjs/post-language-menu-item.cjs.entry.js +1 -1
  21. package/dist/cjs/post-language-menu.cjs.entry.js +5 -4
  22. package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
  23. package/dist/cjs/post-listbox-option.cjs.entry.js +3 -3
  24. package/dist/cjs/post-listbox.cjs.entry.js +4 -4
  25. package/dist/cjs/post-logo.cjs.entry.js +2 -2
  26. package/dist/cjs/post-mainnavigation.cjs.entry.js +3 -3
  27. package/dist/cjs/post-megadropdown-trigger.cjs.entry.js +4 -4
  28. package/dist/cjs/post-megadropdown.cjs.entry.js +4 -5
  29. package/dist/cjs/post-menu-item.cjs.entry.js +2 -2
  30. package/dist/cjs/post-menu_2.cjs.entry.js +26 -11
  31. package/dist/cjs/post-number-input.cjs.entry.js +4 -4
  32. package/dist/cjs/post-pagination.cjs.entry.js +2 -2
  33. package/dist/cjs/post-popover-trigger.cjs.entry.js +3 -3
  34. package/dist/cjs/post-popover.cjs.entry.js +4 -4
  35. package/dist/cjs/post-popovercontainer.cjs.entry.js +317 -176
  36. package/dist/cjs/post-progressbar.cjs.entry.js +1 -1
  37. package/dist/cjs/post-rating.cjs.entry.js +2 -2
  38. package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +3 -3
  39. package/dist/cjs/post-side-navigation.cjs.entry.js +14 -6
  40. package/dist/cjs/post-stepper-item.cjs.entry.js +2 -2
  41. package/dist/cjs/post-stepper.cjs.entry.js +2 -2
  42. package/dist/cjs/post-tab-item.cjs.entry.js +2 -2
  43. package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
  44. package/dist/cjs/post-tabs.cjs.entry.js +4 -4
  45. package/dist/cjs/post-togglebutton.cjs.entry.js +2 -2
  46. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +2 -2
  47. package/dist/cjs/post-tooltip.cjs.entry.js +3 -3
  48. package/dist/cjs/swisspost-internet-footer.cjs.entry.js +1 -1
  49. package/dist/cjs/swisspost-internet-header.cjs.entry.js +1 -1
  50. package/dist/cjs/swisspost-internet-header.cjs.js +1 -1
  51. package/dist/components/breakpoints.js +1 -1
  52. package/dist/components/event-from.js +1 -1
  53. package/dist/components/package.js +1 -1
  54. package/dist/components/package2.js +1 -1
  55. package/dist/components/post-autocomplete.js +1 -1
  56. package/dist/components/post-back-to-top.js +1 -1
  57. package/dist/components/post-banner.js +1 -1
  58. package/dist/components/post-breadcrumb-item.js +1 -1
  59. package/dist/components/post-breadcrumbs.js +1 -1
  60. package/dist/components/post-closebutton2.js +1 -1
  61. package/dist/components/post-collapsible-trigger2.js +1 -1
  62. package/dist/components/post-collapsible2.js +1 -1
  63. package/dist/components/post-date-picker.js +1 -1
  64. package/dist/components/post-footer2.js +1 -1
  65. package/dist/components/post-header2.js +1 -1
  66. package/dist/components/post-icon2.js +1 -1
  67. package/dist/components/post-language-menu2.js +1 -1
  68. package/dist/components/post-linkarea.js +1 -1
  69. package/dist/components/post-listbox-option.js +1 -1
  70. package/dist/components/post-listbox.js +1 -1
  71. package/dist/components/post-logo2.js +1 -1
  72. package/dist/components/post-mainnavigation2.js +1 -1
  73. package/dist/components/post-megadropdown-trigger.js +1 -1
  74. package/dist/components/post-megadropdown.js +1 -1
  75. package/dist/components/post-menu-item2.js +1 -1
  76. package/dist/components/post-menu-trigger2.js +1 -1
  77. package/dist/components/post-menu2.js +1 -1
  78. package/dist/components/post-number-input.js +1 -1
  79. package/dist/components/post-pagination.js +1 -1
  80. package/dist/components/post-popover-trigger.js +1 -1
  81. package/dist/components/post-popover.js +1 -1
  82. package/dist/components/post-popovercontainer2.js +1 -1
  83. package/dist/components/post-progressbar.js +1 -1
  84. package/dist/components/post-rating.js +1 -1
  85. package/dist/components/post-side-navigation-trigger.js +1 -1
  86. package/dist/components/post-side-navigation.js +1 -1
  87. package/dist/components/post-stepper-item.js +1 -1
  88. package/dist/components/post-stepper.js +1 -1
  89. package/dist/components/post-tab-item.js +1 -1
  90. package/dist/components/post-tab-panel.js +1 -1
  91. package/dist/components/post-tabs.js +1 -1
  92. package/dist/components/post-togglebutton2.js +1 -1
  93. package/dist/components/post-tooltip-trigger.js +1 -1
  94. package/dist/components/post-tooltip.js +1 -1
  95. package/dist/docs.json +1 -1
  96. package/dist/esm/{breakpoints-C3jWktf-.js → breakpoints-I1j7a0bW.js} +11 -10
  97. package/dist/esm/{event-from-rEfV4v4a.js → event-from-BEcxHjuM.js} +19 -14
  98. package/dist/esm/index-h3opCZqH.js +4 -4
  99. package/dist/esm/index.js +1 -1
  100. package/dist/esm/loader.js +1 -1
  101. package/dist/esm/{package-Dheuk3S-.js → package-CWWSnot0.js} +1 -1
  102. package/dist/esm/{package-D9jUbrFT.js → package-Ny5VnydI.js} +1 -1
  103. package/dist/esm/post-accordion_4.entry.js +4 -4
  104. package/dist/esm/post-autocomplete.entry.js +65 -50
  105. package/dist/esm/post-avatar.entry.js +1 -1
  106. package/dist/esm/post-back-to-top.entry.js +20 -8
  107. package/dist/esm/post-banner.entry.js +2 -9
  108. package/dist/esm/post-breadcrumb-item.entry.js +11 -3
  109. package/dist/esm/post-breadcrumbs.entry.js +111 -60
  110. package/dist/esm/post-closebutton.entry.js +47 -9
  111. package/dist/esm/post-date-picker.entry.js +33 -10
  112. package/dist/esm/post-footer.entry.js +9 -7
  113. package/dist/esm/post-header.entry.js +6 -6
  114. package/dist/esm/post-icon.entry.js +2 -2
  115. package/dist/esm/post-language-menu-item.entry.js +1 -1
  116. package/dist/esm/post-language-menu.entry.js +6 -5
  117. package/dist/esm/post-linkarea.entry.js +2 -2
  118. package/dist/esm/post-listbox-option.entry.js +3 -3
  119. package/dist/esm/post-listbox.entry.js +4 -4
  120. package/dist/esm/post-logo.entry.js +2 -2
  121. package/dist/esm/post-mainnavigation.entry.js +3 -3
  122. package/dist/esm/post-megadropdown-trigger.entry.js +4 -4
  123. package/dist/esm/post-megadropdown.entry.js +4 -5
  124. package/dist/esm/post-menu-item.entry.js +2 -2
  125. package/dist/esm/post-menu_2.entry.js +26 -11
  126. package/dist/esm/post-number-input.entry.js +4 -4
  127. package/dist/esm/post-pagination.entry.js +2 -2
  128. package/dist/esm/post-popover-trigger.entry.js +3 -3
  129. package/dist/esm/post-popover.entry.js +4 -4
  130. package/dist/esm/post-popovercontainer.entry.js +317 -176
  131. package/dist/esm/post-progressbar.entry.js +1 -1
  132. package/dist/esm/post-rating.entry.js +2 -2
  133. package/dist/esm/post-side-navigation-trigger.entry.js +3 -3
  134. package/dist/esm/post-side-navigation.entry.js +14 -6
  135. package/dist/esm/post-stepper-item.entry.js +2 -2
  136. package/dist/esm/post-stepper.entry.js +2 -2
  137. package/dist/esm/post-tab-item.entry.js +2 -2
  138. package/dist/esm/post-tab-panel.entry.js +2 -2
  139. package/dist/esm/post-tabs.entry.js +4 -4
  140. package/dist/esm/post-togglebutton.entry.js +2 -2
  141. package/dist/esm/post-tooltip-trigger.entry.js +2 -2
  142. package/dist/esm/post-tooltip.entry.js +3 -3
  143. package/dist/esm/swisspost-internet-footer.entry.js +1 -1
  144. package/dist/esm/swisspost-internet-header.entry.js +1 -1
  145. package/dist/esm/swisspost-internet-header.js +1 -1
  146. package/dist/esm-es5/breakpoints-I1j7a0bW.js +1 -0
  147. package/dist/esm-es5/event-from-BEcxHjuM.js +1 -0
  148. package/dist/esm-es5/index-h3opCZqH.js +1 -1
  149. package/dist/esm-es5/index.js +1 -1
  150. package/dist/esm-es5/loader.js +1 -1
  151. package/dist/esm-es5/{package-Dheuk3S-.js → package-CWWSnot0.js} +1 -1
  152. package/dist/esm-es5/package-Ny5VnydI.js +1 -0
  153. package/dist/esm-es5/post-accordion_4.entry.js +1 -1
  154. package/dist/esm-es5/post-autocomplete.entry.js +1 -1
  155. package/dist/esm-es5/post-avatar.entry.js +1 -1
  156. package/dist/esm-es5/post-back-to-top.entry.js +1 -1
  157. package/dist/esm-es5/post-banner.entry.js +1 -1
  158. package/dist/esm-es5/post-breadcrumb-item.entry.js +1 -1
  159. package/dist/esm-es5/post-breadcrumbs.entry.js +1 -1
  160. package/dist/esm-es5/post-closebutton.entry.js +1 -1
  161. package/dist/esm-es5/post-date-picker.entry.js +1 -1
  162. package/dist/esm-es5/post-footer.entry.js +1 -1
  163. package/dist/esm-es5/post-header.entry.js +1 -1
  164. package/dist/esm-es5/post-icon.entry.js +1 -1
  165. package/dist/esm-es5/post-language-menu-item.entry.js +1 -1
  166. package/dist/esm-es5/post-language-menu.entry.js +1 -1
  167. package/dist/esm-es5/post-linkarea.entry.js +1 -1
  168. package/dist/esm-es5/post-listbox-option.entry.js +1 -1
  169. package/dist/esm-es5/post-listbox.entry.js +1 -1
  170. package/dist/esm-es5/post-logo.entry.js +1 -1
  171. package/dist/esm-es5/post-mainnavigation.entry.js +1 -1
  172. package/dist/esm-es5/post-megadropdown-trigger.entry.js +1 -1
  173. package/dist/esm-es5/post-megadropdown.entry.js +1 -1
  174. package/dist/esm-es5/post-menu-item.entry.js +1 -1
  175. package/dist/esm-es5/post-menu_2.entry.js +1 -1
  176. package/dist/esm-es5/post-number-input.entry.js +1 -1
  177. package/dist/esm-es5/post-pagination.entry.js +1 -1
  178. package/dist/esm-es5/post-popover-trigger.entry.js +1 -1
  179. package/dist/esm-es5/post-popover.entry.js +1 -1
  180. package/dist/esm-es5/post-popovercontainer.entry.js +1 -1
  181. package/dist/esm-es5/post-progressbar.entry.js +1 -1
  182. package/dist/esm-es5/post-rating.entry.js +1 -1
  183. package/dist/esm-es5/post-side-navigation-trigger.entry.js +1 -1
  184. package/dist/esm-es5/post-side-navigation.entry.js +1 -1
  185. package/dist/esm-es5/post-stepper-item.entry.js +1 -1
  186. package/dist/esm-es5/post-stepper.entry.js +1 -1
  187. package/dist/esm-es5/post-tab-item.entry.js +1 -1
  188. package/dist/esm-es5/post-tab-panel.entry.js +1 -1
  189. package/dist/esm-es5/post-tabs.entry.js +1 -1
  190. package/dist/esm-es5/post-togglebutton.entry.js +1 -1
  191. package/dist/esm-es5/post-tooltip-trigger.entry.js +1 -1
  192. package/dist/esm-es5/post-tooltip.entry.js +1 -1
  193. package/dist/esm-es5/swisspost-internet-footer.entry.js +1 -1
  194. package/dist/esm-es5/swisspost-internet-header.entry.js +1 -1
  195. package/dist/esm-es5/swisspost-internet-header.js +1 -1
  196. package/dist/swisspost-internet-header/index.esm.js +1 -1
  197. package/dist/swisspost-internet-header/{p-ff4b3e95.entry.js → p-004c6278.entry.js} +1 -1
  198. package/dist/swisspost-internet-header/{p-b67b88ee.system.entry.js → p-03a80973.system.entry.js} +1 -1
  199. package/dist/swisspost-internet-header/{p-9119d1d2.entry.js → p-04651cdc.entry.js} +1 -1
  200. package/dist/swisspost-internet-header/p-06eb086c.system.entry.js +1 -0
  201. package/dist/swisspost-internet-header/p-08a6f709.system.entry.js +1 -0
  202. package/dist/swisspost-internet-header/p-097214a3.entry.js +1 -0
  203. package/dist/swisspost-internet-header/{p-26f99143.entry.js → p-138f2186.entry.js} +1 -1
  204. package/dist/swisspost-internet-header/{p-13bae547.system.entry.js → p-14a5b926.system.entry.js} +1 -1
  205. package/dist/swisspost-internet-header/{p-dbe1d696.entry.js → p-1501e9e0.entry.js} +1 -1
  206. package/dist/swisspost-internet-header/{p-1ad88e06.entry.js → p-15613920.entry.js} +1 -1
  207. package/dist/swisspost-internet-header/p-159e96f4.system.entry.js +1 -0
  208. package/dist/swisspost-internet-header/p-1c33394a.system.entry.js +1 -0
  209. package/dist/swisspost-internet-header/{p-4615095e.system.entry.js → p-204aaba4.system.entry.js} +1 -1
  210. package/dist/swisspost-internet-header/{p-0fdc3e18.system.entry.js → p-250ff1e6.system.entry.js} +1 -1
  211. package/dist/swisspost-internet-header/p-2e23353c.system.entry.js +1 -0
  212. package/dist/swisspost-internet-header/{p-f5bc81a7.entry.js → p-2e4a1d59.entry.js} +1 -1
  213. package/dist/swisspost-internet-header/p-30b56aa5.entry.js +1 -0
  214. package/dist/swisspost-internet-header/{p-8a3118d3.entry.js → p-38159567.entry.js} +1 -1
  215. package/dist/swisspost-internet-header/p-3b8bc9bf.entry.js +1 -0
  216. package/dist/swisspost-internet-header/p-3dfdd503.system.entry.js +1 -0
  217. package/dist/swisspost-internet-header/{p-5937df91.system.entry.js → p-3f3e5828.system.entry.js} +1 -1
  218. package/dist/swisspost-internet-header/p-3f704fa4.entry.js +1 -0
  219. package/dist/swisspost-internet-header/{p-0a1276dc.entry.js → p-40ee5200.entry.js} +1 -1
  220. package/dist/swisspost-internet-header/p-436a661f.entry.js +1 -0
  221. package/dist/swisspost-internet-header/p-4e883523.system.entry.js +1 -0
  222. package/dist/swisspost-internet-header/p-51c3d47f.system.entry.js +1 -0
  223. package/dist/swisspost-internet-header/p-58318d31.entry.js +1 -0
  224. package/dist/swisspost-internet-header/{p-fcf9da41.system.entry.js → p-5e98bd48.system.entry.js} +1 -1
  225. package/dist/swisspost-internet-header/{p-9482fbdf.system.entry.js → p-638891f4.system.entry.js} +1 -1
  226. package/dist/swisspost-internet-header/p-6d4d21b7.entry.js +1 -0
  227. package/dist/swisspost-internet-header/p-6d67cc9d.entry.js +1 -0
  228. package/dist/swisspost-internet-header/{p-a5c32bd3.entry.js → p-6dea21a2.entry.js} +1 -1
  229. package/dist/swisspost-internet-header/p-7204ff05.system.entry.js +1 -0
  230. package/dist/swisspost-internet-header/{p-e053e1b5.system.entry.js → p-735effe5.system.entry.js} +1 -1
  231. package/dist/swisspost-internet-header/p-770cac8f.system.entry.js +1 -0
  232. package/dist/swisspost-internet-header/p-7f223aac.system.entry.js +1 -0
  233. package/dist/swisspost-internet-header/p-81985723.system.entry.js +1 -0
  234. package/dist/swisspost-internet-header/{p-9bead48d.system.entry.js → p-83549cef.system.entry.js} +1 -1
  235. package/dist/swisspost-internet-header/p-85d6fa3b.entry.js +1 -0
  236. package/dist/swisspost-internet-header/{p-0a3325bd.system.entry.js → p-8978be6a.system.entry.js} +1 -1
  237. package/dist/swisspost-internet-header/{p-9dbc65e6.system.entry.js → p-8afbbdf6.system.entry.js} +1 -1
  238. package/dist/swisspost-internet-header/p-8c11a307.entry.js +1 -0
  239. package/dist/swisspost-internet-header/{p-ea3a2c74.system.entry.js → p-8e81fedf.system.entry.js} +1 -1
  240. package/dist/swisspost-internet-header/{p-56b1fbff.system.entry.js → p-93653f6e.system.entry.js} +1 -1
  241. package/dist/swisspost-internet-header/p-BEcxHjuM.js +1 -0
  242. package/dist/swisspost-internet-header/{p-CUgd8XDw.system.js → p-Bkt75U1-.system.js} +1 -1
  243. package/dist/swisspost-internet-header/{p-B86vJMfc.js → p-C3HusDuA.js} +1 -1
  244. package/dist/swisspost-internet-header/{p-B2xXTEH5.system.js → p-CYCx3cRc.system.js} +1 -1
  245. package/dist/swisspost-internet-header/p-D1A3ltXC.system.js +1 -0
  246. package/dist/swisspost-internet-header/p-I1j7a0bW.js +1 -0
  247. package/dist/swisspost-internet-header/{p-CVe9fdUw.system.js → p-MZb_boDk.system.js} +1 -1
  248. package/dist/swisspost-internet-header/p-Ny5VnydI.js +1 -0
  249. package/dist/swisspost-internet-header/p-R5BnOD0U.system.js +1 -1
  250. package/dist/swisspost-internet-header/p-a1476fe8.entry.js +1 -0
  251. package/dist/swisspost-internet-header/{p-a3640c54.entry.js → p-a1a640e5.entry.js} +1 -1
  252. package/dist/swisspost-internet-header/p-a24350c6.system.entry.js +1 -0
  253. package/dist/swisspost-internet-header/{p-77075637.system.entry.js → p-a3f0cee6.system.entry.js} +1 -1
  254. package/dist/swisspost-internet-header/{p-10dbaad3.entry.js → p-a5b1c8b5.entry.js} +1 -1
  255. package/dist/swisspost-internet-header/p-a6db4d60.entry.js +1 -0
  256. package/dist/swisspost-internet-header/p-aaa51210.system.entry.js +1 -0
  257. package/dist/swisspost-internet-header/{p-b266f922.entry.js → p-b1d25e1d.entry.js} +1 -1
  258. package/dist/swisspost-internet-header/p-b62df652.entry.js +1 -0
  259. package/dist/swisspost-internet-header/p-badd758a.system.entry.js +1 -0
  260. package/dist/swisspost-internet-header/{p-5c73925e.entry.js → p-bb7fe5c4.entry.js} +1 -1
  261. package/dist/swisspost-internet-header/{p-32d8756e.entry.js → p-c0cd2db1.entry.js} +1 -1
  262. package/dist/swisspost-internet-header/p-c275ce9f.system.entry.js +1 -0
  263. package/dist/swisspost-internet-header/p-c5a114a3.system.entry.js +1 -0
  264. package/dist/swisspost-internet-header/p-c96d1aeb.system.entry.js +1 -0
  265. package/dist/swisspost-internet-header/p-cb0bcdf7.system.entry.js +1 -0
  266. package/dist/swisspost-internet-header/{p-091d408b.system.entry.js → p-cc0d4d02.system.entry.js} +1 -1
  267. package/dist/swisspost-internet-header/p-d6f0b224.entry.js +1 -0
  268. package/dist/swisspost-internet-header/{p-b6f7469f.system.entry.js → p-d90947de.system.entry.js} +1 -1
  269. package/dist/swisspost-internet-header/{p-f917f79a.system.entry.js → p-d96cbabb.system.entry.js} +1 -1
  270. package/dist/swisspost-internet-header/{p-abd1654a.entry.js → p-dbb7038b.entry.js} +1 -1
  271. package/dist/swisspost-internet-header/{p-ce5265e7.system.entry.js → p-dcee68ed.system.entry.js} +1 -1
  272. package/dist/swisspost-internet-header/p-dd20bb2e.system.entry.js +1 -0
  273. package/dist/swisspost-internet-header/{p-7a4d48c8.entry.js → p-ddbbc505.entry.js} +1 -1
  274. package/dist/swisspost-internet-header/p-deadf1bf.entry.js +1 -0
  275. package/dist/swisspost-internet-header/{p-26e94f0f.entry.js → p-e008aab0.entry.js} +1 -1
  276. package/dist/swisspost-internet-header/p-e02d5b07.entry.js +1 -0
  277. package/dist/swisspost-internet-header/{p-b9e4f3a1.entry.js → p-e0563b59.entry.js} +1 -1
  278. package/dist/swisspost-internet-header/p-e5171236.entry.js +1 -0
  279. package/dist/swisspost-internet-header/p-e6c60488.entry.js +1 -0
  280. package/dist/swisspost-internet-header/{p-941c9d63.entry.js → p-e9569ed9.entry.js} +1 -1
  281. package/dist/swisspost-internet-header/{p-fc839150.entry.js → p-eb0b4ff8.entry.js} +1 -1
  282. package/dist/swisspost-internet-header/{p-701461bc.system.entry.js → p-ee42c33b.system.entry.js} +1 -1
  283. package/dist/swisspost-internet-header/{p-522b6a34.system.entry.js → p-f04924d8.system.entry.js} +1 -1
  284. package/dist/swisspost-internet-header/p-f54a41d5.system.entry.js +1 -0
  285. package/dist/swisspost-internet-header/{p-e4b30e68.system.entry.js → p-f8cb3ed7.system.entry.js} +1 -1
  286. package/dist/swisspost-internet-header/{p-2affed30.entry.js → p-fa10409f.entry.js} +1 -1
  287. package/dist/swisspost-internet-header/p-fb4b0989.entry.js +1 -0
  288. package/dist/swisspost-internet-header/{p-15564bd8.entry.js → p-fddbd731.entry.js} +1 -1
  289. package/dist/swisspost-internet-header/p-fec7c3c1.entry.js +1 -0
  290. package/dist/swisspost-internet-header/p-iSGRM5O1.system.js +1 -0
  291. package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
  292. package/package.json +4 -4
  293. package/dist/esm-es5/breakpoints-C3jWktf-.js +0 -1
  294. package/dist/esm-es5/event-from-rEfV4v4a.js +0 -1
  295. package/dist/esm-es5/package-D9jUbrFT.js +0 -1
  296. package/dist/swisspost-internet-header/p-043b0295.entry.js +0 -1
  297. package/dist/swisspost-internet-header/p-0708d2ae.entry.js +0 -1
  298. package/dist/swisspost-internet-header/p-0e3b3739.system.entry.js +0 -1
  299. package/dist/swisspost-internet-header/p-145e9419.system.entry.js +0 -1
  300. package/dist/swisspost-internet-header/p-2069109d.system.entry.js +0 -1
  301. package/dist/swisspost-internet-header/p-20ded6e8.entry.js +0 -1
  302. package/dist/swisspost-internet-header/p-27b2a48e.entry.js +0 -1
  303. package/dist/swisspost-internet-header/p-2bbec1fa.entry.js +0 -1
  304. package/dist/swisspost-internet-header/p-31b363d3.system.entry.js +0 -1
  305. package/dist/swisspost-internet-header/p-324bb578.entry.js +0 -1
  306. package/dist/swisspost-internet-header/p-324f6a1d.system.entry.js +0 -1
  307. package/dist/swisspost-internet-header/p-38b3e48b.system.entry.js +0 -1
  308. package/dist/swisspost-internet-header/p-3b5b5f43.entry.js +0 -1
  309. package/dist/swisspost-internet-header/p-3ce5350e.entry.js +0 -1
  310. package/dist/swisspost-internet-header/p-3e0d2f8e.entry.js +0 -1
  311. package/dist/swisspost-internet-header/p-3fb06291.entry.js +0 -1
  312. package/dist/swisspost-internet-header/p-468c06f1.system.entry.js +0 -1
  313. package/dist/swisspost-internet-header/p-48b9d8af.system.entry.js +0 -1
  314. package/dist/swisspost-internet-header/p-51c1b282.system.entry.js +0 -1
  315. package/dist/swisspost-internet-header/p-53627d54.entry.js +0 -1
  316. package/dist/swisspost-internet-header/p-62e15c37.system.entry.js +0 -1
  317. package/dist/swisspost-internet-header/p-6dd426a3.system.entry.js +0 -1
  318. package/dist/swisspost-internet-header/p-6df1fef1.system.entry.js +0 -1
  319. package/dist/swisspost-internet-header/p-715fd00a.entry.js +0 -1
  320. package/dist/swisspost-internet-header/p-77955468.entry.js +0 -1
  321. package/dist/swisspost-internet-header/p-7e85acba.system.entry.js +0 -1
  322. package/dist/swisspost-internet-header/p-89dbe69c.entry.js +0 -1
  323. package/dist/swisspost-internet-header/p-8aec6b71.entry.js +0 -1
  324. package/dist/swisspost-internet-header/p-8f560878.system.entry.js +0 -1
  325. package/dist/swisspost-internet-header/p-9510033c.entry.js +0 -1
  326. package/dist/swisspost-internet-header/p-C1pxTt7y.system.js +0 -1
  327. package/dist/swisspost-internet-header/p-CGtndO2e.system.js +0 -1
  328. package/dist/swisspost-internet-header/p-Ck6UMUSA.js +0 -1
  329. package/dist/swisspost-internet-header/p-D9jUbrFT.js +0 -1
  330. package/dist/swisspost-internet-header/p-a2b590f1.entry.js +0 -1
  331. package/dist/swisspost-internet-header/p-a79db979.system.entry.js +0 -1
  332. package/dist/swisspost-internet-header/p-b98bd035.entry.js +0 -1
  333. package/dist/swisspost-internet-header/p-ba60d0f6.entry.js +0 -1
  334. package/dist/swisspost-internet-header/p-c792d22e.entry.js +0 -1
  335. package/dist/swisspost-internet-header/p-ce4549eb.system.entry.js +0 -1
  336. package/dist/swisspost-internet-header/p-d102dd8f.system.entry.js +0 -1
  337. package/dist/swisspost-internet-header/p-d586b0b6.system.entry.js +0 -1
  338. package/dist/swisspost-internet-header/p-e711377e.system.entry.js +0 -1
  339. package/dist/swisspost-internet-header/p-e9c6db2d.system.entry.js +0 -1
  340. package/dist/swisspost-internet-header/p-fde0e9e3.system.entry.js +0 -1
  341. package/dist/swisspost-internet-header/p-rEfV4v4a.js +0 -1
@@ -1 +1 @@
1
- import{r as t,h as s,H as i,g as e}from"./p-h3opCZqH.js";import{v as o}from"./p-D9jUbrFT.js";import{R as h}from"./p-DvaRK2lz.js";import{T as r}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const n=["pointerenter","pointerleave","focusin","focusout"];let a;const l=class{constructor(s){t(this,s),this.delay=0,this.trigger=null,this.delayTimeout=null,this.boundTriggerHandler=this.handleTriggerEvent.bind(this),this.boundTooltipHandler=this.handleTooltipEvent.bind(this)}get tooltip(){const t=document.getElementById(this.for);return"post-tooltip"===t?.localName?t:null}componentWillLoad(){import("./p-BrY4VWTQ.js").then((function(t){return t.f})).then((t=>{a??(a=t.default)}))}componentDidLoad(){this.setupTrigger(),this.attachListeners(),this.attachTooltipListeners()}disconnectedCallback(){this.removeListeners(),this.removeTooltipListeners(),this.cleanupTrigger(),this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null)}handleSlotChange(){this.cleanupTrigger(),this.setupTrigger()}cleanupTrigger(){if(this.trigger){const t=this.trigger.getAttribute("aria-describedby")||"";if(t.includes(this.for)){const s=t.split(" ").filter((t=>t!==this.for)).join(" ");s?this.trigger.setAttribute("aria-describedby",s):this.trigger.removeAttribute("aria-describedby")}this.trigger=null}}setupTrigger(){if(this.trigger=this.host.querySelector("*"),this.trigger){a?.(this.trigger)||this.trigger.setAttribute("tabindex","0");const t=this.trigger.getAttribute("aria-describedby")||"";t.includes(this.for)||this.trigger.setAttribute("aria-describedby",`${t} ${this.for}`.trim())}else console.warn("No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.")}attachListeners(){n.forEach((t=>{this.host.addEventListener(t,this.boundTriggerHandler)}))}removeListeners(){n.forEach((t=>{this.host.removeEventListener(t,this.boundTriggerHandler)}))}attachTooltipListeners(){this.tooltip&&(this.tooltip.addEventListener("pointerenter",this.boundTooltipHandler),this.tooltip.addEventListener("pointerleave",this.boundTooltipHandler))}removeTooltipListeners(){this.tooltip&&(this.tooltip.removeEventListener("pointerenter",this.boundTooltipHandler),this.tooltip.removeEventListener("pointerleave",this.boundTooltipHandler))}handleTriggerEvent(t){switch(t.type){case"pointerenter":case"focusin":case"long-press":this.handleEnter();break;case"pointerleave":case"focusout":this.handleLeave(t)}}handleTooltipEvent(t){switch(t.type){case"pointerenter":this.handleEnter();break;case"pointerleave":this.handleLeave(t)}}handleEnter(){this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.interestHandler()}handleLeave(t){const s=t.relatedTarget;this.tooltip&&s&&this.tooltip.contains(s)||s===this.trigger||this.interestLostHandler()}interestHandler(){this.trigger&&(this.delay>0?this.delayTimeout=globalThis.setTimeout((()=>{this.tooltip?.show(this.trigger),this.delayTimeout=null}),this.delay):this.tooltip?.show(this.trigger))}interestLostHandler(){this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.tooltip?.hide()}render(){return s(i,{key:"37f835a46c96f1f97019b611da8b6be2d6e1a8d7","data-version":o},s("slot",{key:"c2fc3d9080948fdcfbd8b2866730e76b770b87ba",onSlotchange:()=>this.handleSlotChange()}))}get host(){return e(this)}};(function(t,s,i,e){var o,h=arguments.length,r=h<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,e);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(h<3?o(r):h>3?o(s,i,r):o(s,i))||r);h>3&&r&&Object.defineProperty(s,i,r)})([h(),r("string")],l.prototype,"for",void 0),l.style="post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}";export{l as post_tooltip_trigger}
1
+ import{r as t,h as s,H as i,g as e}from"./p-h3opCZqH.js";import{v as o}from"./p-Ny5VnydI.js";import{R as h}from"./p-DvaRK2lz.js";import{T as r}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const n=["pointerenter","pointerleave","focusin","focusout"];let a;const l=class{constructor(s){t(this,s),this.delay=0,this.trigger=null,this.delayTimeout=null,this.boundTriggerHandler=this.handleTriggerEvent.bind(this),this.boundTooltipHandler=this.handleTooltipEvent.bind(this)}get tooltip(){const t=document.getElementById(this.for);return"post-tooltip"===t?.localName?t:null}componentWillLoad(){import("./p-BrY4VWTQ.js").then((function(t){return t.f})).then((t=>{a??(a=t.default)}))}componentDidLoad(){this.setupTrigger(),this.attachListeners(),this.attachTooltipListeners()}disconnectedCallback(){this.removeListeners(),this.removeTooltipListeners(),this.cleanupTrigger(),this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null)}handleSlotChange(){this.cleanupTrigger(),this.setupTrigger()}cleanupTrigger(){if(this.trigger){const t=this.trigger.getAttribute("aria-describedby")||"";if(t.includes(this.for)){const s=t.split(" ").filter((t=>t!==this.for)).join(" ");s?this.trigger.setAttribute("aria-describedby",s):this.trigger.removeAttribute("aria-describedby")}this.trigger=null}}setupTrigger(){if(this.trigger=this.host.querySelector("*"),this.trigger){a?.(this.trigger)||this.trigger.setAttribute("tabindex","0");const t=this.trigger.getAttribute("aria-describedby")||"";t.includes(this.for)||this.trigger.setAttribute("aria-describedby",`${t} ${this.for}`.trim())}else console.warn("No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.")}attachListeners(){n.forEach((t=>{this.host.addEventListener(t,this.boundTriggerHandler)}))}removeListeners(){n.forEach((t=>{this.host.removeEventListener(t,this.boundTriggerHandler)}))}attachTooltipListeners(){this.tooltip&&(this.tooltip.addEventListener("pointerenter",this.boundTooltipHandler),this.tooltip.addEventListener("pointerleave",this.boundTooltipHandler))}removeTooltipListeners(){this.tooltip&&(this.tooltip.removeEventListener("pointerenter",this.boundTooltipHandler),this.tooltip.removeEventListener("pointerleave",this.boundTooltipHandler))}handleTriggerEvent(t){switch(t.type){case"pointerenter":case"focusin":case"long-press":this.handleEnter();break;case"pointerleave":case"focusout":this.handleLeave(t)}}handleTooltipEvent(t){switch(t.type){case"pointerenter":this.handleEnter();break;case"pointerleave":this.handleLeave(t)}}handleEnter(){this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.interestHandler()}handleLeave(t){const s=t.relatedTarget;this.tooltip&&s&&this.tooltip.contains(s)||s===this.trigger||this.interestLostHandler()}interestHandler(){this.trigger&&(this.delay>0?this.delayTimeout=globalThis.setTimeout((()=>{this.tooltip?.show(this.trigger),this.delayTimeout=null}),this.delay):this.tooltip?.show(this.trigger))}interestLostHandler(){this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.tooltip?.hide()}render(){return s(i,{key:"692a3cda2890f30f0df80366a9610ec70b0872ba","data-version":o},s("slot",{key:"0a9df94a1d52ec318ecbec6740b7d3acc915b130",onSlotchange:()=>this.handleSlotChange()}))}get host(){return e(this)}};(function(t,s,i,e){var o,h=arguments.length,r=h<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,e);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(h<3?o(r):h>3?o(s,i,r):o(s,i))||r);h>3&&r&&Object.defineProperty(s,i,r)})([h(),r("string")],l.prototype,"for",void 0),l.style="post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}";export{l as post_tooltip_trigger}
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{c(i.next(t))}catch(t){o(t)}}function u(t){try{c(i["throw"](t))}catch(t){o(t)}}function c(t){t.done?n(t.value):r(t.value).then(s,u)}c((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=u(0),s["throw"]=u(1),s["return"]=u(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(t){return function(e){return c([t,e])}}function c(u){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,u[0]&&(n=0)),n)try{if(i=1,r&&(o=u[0]&2?r["return"]:u[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;if(r=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;r=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1];o=u;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(u);break}if(o[2])n.ops.pop();n.trys.pop();continue}u=e.call(t,n)}catch(t){u=[6,t];r=0}finally{i=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-MZb_boDk.system.js","./p-iSGRM5O1.system.js"],(function(t){"use strict";var e,n,i,r,o,s,u;return{setters:[function(t){e=t.r;n=t.c;i=t.h;r=t.H;o=t.g},function(t){s=t.v},function(t){u=t.E}],execute:function(){var c=function(){return"post-popovercontainer{border-radius:4px;overflow:hidden;-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}div[role=listbox]{max-height:384px;overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}"};var a=undefined&&undefined.__decorate||function(t,e,n,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,n,i);else for(var u=t.length-1;u>=0;u--)if(s=t[u])o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o;return r>3&&o&&Object.defineProperty(e,n,o),o};var f=t("post_listbox",function(){function t(t){var i=this;e(this,t);this.postOptionActive=n(this,"postOptionActive");this.highlightedIndex=-1;this.visibleOptions=[];this.diacriticPattern=/[\u0300-\u036F]/u;this.registerOptions=function(){i.visibleOptions=i.options};this.updateSelection=function(t){i.options.forEach((function(e){e.selected=e.value===t;e.highlighted=false}));i.highlightedIndex=-1;i.clearActive()};this.clearActive=function(){i.highlightedIndex=-1;i.postOptionActive.emit(null)};this.normalizeText=function(t){return t.trim().normalize("NFD").replace(i.diacriticPattern,"").toLocaleLowerCase()};this.resetFilter=function(){i.visibleOptions=i.options;i.options.forEach((function(t){t.hidden=false;t.highlighted=false}))}}Object.defineProperty(t.prototype,"options",{get:function(){return Array.from(this.host.querySelectorAll("post-listbox-option"))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"inputElement",{get:function(){var t=this.host.closest("post-autocomplete");if(!t){t=document.querySelector('post-autocomplete[listbox="'.concat(this.host.id,'"]'))}return t===null||t===void 0?void 0:t.querySelector("input")},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){this.registerOptions()};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e;return __generator(this,(function(n){t=this.inputElement;if(t){(e=this.popoverContainer)===null||e===void 0?void 0:e.show(t)}return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){(t=this.popoverContainer)===null||t===void 0?void 0:t.hide();return[2]}))}))};t.prototype.filter=function(t){return __awaiter(this,void 0,void 0,(function(){var e;var n=this;return __generator(this,(function(i){e=this.normalizeText(t);if(e){this.visibleOptions=this.options.filter((function(t){var i=n.normalizeText(t.textContent);var r=n.normalizeText(t.value);var o=r.includes(e)||i.includes(e);t.hidden=!o;return o}))}else{this.resetFilter()}this.clearActive();return[2]}))}))};t.prototype.clearSelection=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.updateSelection();return[2]}))}))};t.prototype.navigate=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){if(this.visibleOptions.length===0)return[2];if(this.highlightedIndex>=0){this.visibleOptions[this.highlightedIndex].highlighted=false}switch(t){case"first":this.highlightedIndex=0;break;case"last":this.highlightedIndex=this.visibleOptions.length-1;break;case"up":this.highlightedIndex=(this.highlightedIndex-1+this.visibleOptions.length)%this.visibleOptions.length;break;case"down":this.highlightedIndex=(this.highlightedIndex+1)%this.visibleOptions.length;break}e=this.visibleOptions[this.highlightedIndex];e.scrollIntoView({behavior:"smooth",block:"end"});e.highlighted=true;this.postOptionActive.emit(e.id);return[2]}))}))};t.prototype.selectActive=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){if(this.highlightedIndex>=0){t=this.visibleOptions[this.highlightedIndex];this.updateSelection(t.value);this.host.dispatchEvent(new CustomEvent("postOptionSelected",{bubbles:true,detail:t.value}))}return[2]}))}))};t.prototype.optionClicked=function(t){this.updateSelection(t.detail)};t.prototype.render=function(){var t=this;return i(r,{key:"793bdd535fb6b51bfd05012d180520e414519c0f","data-version":s,role:"listbox"},i("post-popovercontainer",{key:"d88195a37625fd29c47d4a8cc3ec34e0c92caa5f",placement:"bottom-start",ref:function(e){return t.popoverContainer=e}},i("slot",{key:"6882e0cdcf7b277b47a349244382eeb7f3f525e1",name:"blank-slate"}),i("slot",{key:"dd71f5d59621097df38cfbc3b69cdfc805a54272"})))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());a([u("post-listbox-option")],f.prototype,"optionClicked",null);f.style=c()}}}));
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,o,e,i){function n(t){return t instanceof e?t:new e((function(o){o(t)}))}return new(e||(e=Promise))((function(e,r){function s(t){try{c(i.next(t))}catch(t){r(t)}}function a(t){try{c(i["throw"](t))}catch(t){r(t)}}function c(t){t.done?e(t.value):n(t.value).then(s,a)}c((i=i.apply(t,o||[])).next())}))};var __generator=this&&this.__generator||function(t,o){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=a(0),s["throw"]=a(1),s["return"]=a(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(o){return c([t,o])}}function c(a){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(e=0)),e)try{if(i=1,n&&(r=a[0]&2?n["return"]:a[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;if(n=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;n=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(r=e.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){e.label=a[1];break}if(a[0]===6&&e.label<r[1]){e.label=r[1];r=a;break}if(r&&e.label<r[2]){e.label=r[2];e.ops.push(a);break}if(r[2])e.ops.pop();e.trys.pop();continue}a=o.call(t,e)}catch(t){a=[6,t];n=0}finally{i=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-BthnT4-E.system.js","./p-MZb_boDk.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-BCAukqif.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var o,e,i,n,r,s,a,c;return{setters:[function(t){o=t.r;e=t.h;i=t.H;n=t.g},function(t){r=t.f},function(t){s=t.v},function(t){a=t.R},function(t){c=t.T},null,null],execute:function(){var u=function(){return":host{opacity:0;--post-floating-button-position-top:var(--post-device-position-4);--post-back-to-top-position-top:calc( var(--post-header-height) + var(--post-floating-button-position-top) );--post-back-to-top-elevation:var(--post-device-elevation-300);position:fixed;z-index:1019;inset-block-start:var(--post-back-to-top-position-top);inset-inline-end:var(--post-device-position-1)}:host .back-to-top{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;-webkit-box-shadow:var(--post-back-to-top-elevation);box-shadow:var(--post-back-to-top-elevation);cursor:pointer;border-radius:var(--post-device-border-radius-round);width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top{background-color:ButtonFace !important}:host .back-to-top:hover{background-color:Highlight !important}}:host .back-to-top{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}:host .back-to-top:hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:hover{color:HighlightText !important}}:host .back-to-top post-icon{height:var(--post-device-sizing-interactive-button-icon-3);width:var(--post-device-sizing-interactive-button-icon-3)}:host .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}"};var h=undefined&&undefined.__decorate||function(t,o,e,i){var n=arguments.length,r=n<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,e):i,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,o,e,i);else for(var a=t.length-1;a>=0;a--)if(s=t[a])r=(n<3?s(r):n>3?s(o,e,r):s(o,e))||r;return n>3&&r&&Object.defineProperty(o,e,r),r};var l=t("post_back_to_top",function(){function t(t){var e=this;o(this,t);this.belowFold=false;this.handleScroll=function(){e.belowFold=e.isBelowFold()}}t.prototype.isBelowFold=function(){return window.scrollY>window.innerHeight};t.prototype.watchBelowFold=function(t){return __awaiter(this,void 0,void 0,(function(){var o;var e;return __generator(this,(function(i){switch(i.label){case 0:(e=this.currentAnimation)===null||e===void 0?void 0:e.cancel();this.host.hidden=false;this.currentAnimation=r(this.host,t?"in":"out",{translate:this.translateY,fill:"forwards"});i.label=1;case 1:i.trys.push([1,3,,4]);return[4,this.currentAnimation.finished];case 2:i.sent();if(!this.belowFold)this.host.hidden=true;return[3,4];case 3:o=i.sent();return[3,4];case 4:return[2]}}))}))};t.prototype.scrollToTop=function(){window.scrollTo({top:0,behavior:"smooth"})};t.prototype.getSecondPixelValue=function(t){for(var o=0,e=t;o<e.length;o++){var i=e[o];var n=i.match(/\b\d+px\b/g);if(n&&n.length>1){return n[1]}}};t.prototype.animateButton=function(){var t=globalThis.getComputedStyle(this.host).getPropertyValue("top");var o=this.host.shadowRoot.querySelector("button");var e=getComputedStyle(o).getPropertyValue("--post-back-to-top-elevation");var i=e.split(",");var n=this.getSecondPixelValue(i);if(!t||t==="auto"||!n)return;this.translateY=-1*100/100-Number.parseFloat(t.replace("px",""))-Number.parseFloat(n.replace("px",""));if(this.belowFold){r(this.host,"in",{translate:this.translateY,fill:"forwards"})}if(!this.belowFold){this.host.style.transform="translateY(".concat(this.translateY,")")}};t.prototype.componentWillLoad=function(){this.belowFold=this.isBelowFold();this.host.hidden=!this.belowFold};t.prototype.componentDidLoad=function(){window.addEventListener("scroll",this.handleScroll,{passive:true});this.animateButton()};t.prototype.disconnectedCallback=function(){window.removeEventListener("scroll",this.handleScroll)};t.prototype.render=function(){return e(i,{key:"149a8afee36c12130b3e503c4da5cffdaa3f86b5","data-version":s},e("button",{key:"4e291c5cfaa55bb6a68f436af570d83377436a3a",class:"back-to-top",onClick:this.scrollToTop},e("post-icon",{key:"c25e8d12cf6f751b368010ad2d82534fa95adf86","aria-hidden":"true",name:"arrowup"}),e("span",{key:"e16d1247a5ab7e39629e4bec7307ee562c589f7e",class:"visually-hidden"},this.textBackToTop)))};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{belowFold:[{watchBelowFold:0}]}},enumerable:false,configurable:true});return t}());h([a(),c("string")],l.prototype,"textBackToTop",void 0);l.style=u()}}}));
@@ -1 +1 @@
1
- System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js","./p-DoVr7uzg.system.js","./p-BMZcKRx0.system.js","./p-Bzy18UgU.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var i,e,n,s,o,r,u;return{setters:[function(t){i=t.r;e=t.h;n=t.H;s=t.g},function(t){o=t.v},function(t){r=t.i},function(t){u=t.T},null,null],execute:function(){var h=function(){return":host{cursor:pointer}"};var c=undefined&&undefined.__decorate||function(t,i,e,n){var s=arguments.length,o=s<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,e):n,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,i,e,n);else for(var u=t.length-1;u>=0;u--)if(r=t[u])o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o;return s>3&&o&&Object.defineProperty(i,e,o),o};var f=t("post_popover_trigger",function(){function t(t){var e=this;i(this,t);this.ariaExpanded=false;this.popoverOpen=false;this.handleKeyDown=function(t){if(t.key==="Enter"||t.key===" "){t.preventDefault();e.handleToggle()}};this.boundHandleToggle=this.handleToggle.bind(this);this.boundHandleKeyDown=this.handleKeyDown.bind(this);this.boundHandlePostToggle=function(t){e.popoverOpen=t.detail.isOpen;e.focusTrigger()}}t.prototype.syncAriaExpanded=function(t){this.ariaExpanded=t;if(this.trigger){this.trigger.setAttribute("aria-expanded",String(t))}};t.prototype.hasAriaControlsElements=function(t){return"ariaControlsElements"in t};Object.defineProperty(t.prototype,"popover",{get:function(){var t;var i=(t=this.host.querySelector("post-popover"))!==null&&t!==void 0?t:document.getElementById(this.for);if(!i){var e=this.for?"with ID: ".concat(this.for):"inside the <post-popover-trigger>";console.error("No post-popover found ".concat(e,"."));return null}return(i===null||i===void 0?void 0:i.localName)==="post-popover"?i:null},enumerable:false,configurable:true});t.prototype.setupTrigger=function(){var t,i;var e=this.popover;this.trigger=this.host.querySelector("*");if(!this.trigger){console.error("No content found in the post-popover-trigger slot. Please insert a focusable element or content that can receive focus.");return}if(!r(this.trigger)){this.trigger.setAttribute("tabindex","0");this.trigger.setAttribute("role","button")}if(!e)return;this.trigger.setAttribute("aria-expanded",this.ariaExpanded.toString());this.trigger.setAttribute("aria-haspopup","true");if(this.for){this.trigger.setAttribute("aria-controls",this.for)}else{if(this.hasAriaControlsElements(this.trigger)){this.trigger.ariaControlsElements=[e]}else{e.id||(e.id="popover-".concat(crypto.randomUUID()));this.trigger.setAttribute("aria-controls",e.id)}}(t=this.trigger)===null||t===void 0?void 0:t.addEventListener("click",this.boundHandleToggle);(i=this.trigger)===null||i===void 0?void 0:i.addEventListener("keydown",this.boundHandleKeyDown)};t.prototype.handleToggle=function(){var t;(t=this.popover)===null||t===void 0?void 0:t.toggle(this.trigger);this.focusTrigger()};t.prototype.focusTrigger=function(){if(!this.popoverOpen&&this.trigger){this.trigger.focus()}};t.prototype.componentDidLoad=function(){var t;this.setupTrigger();(t=this.popover)===null||t===void 0?void 0:t.addEventListener("postToggle",this.boundHandlePostToggle)};t.prototype.disconnectedCallback=function(){var t,i,e;(t=this.trigger)===null||t===void 0?void 0:t.removeEventListener("click",this.boundHandleToggle);(i=this.trigger)===null||i===void 0?void 0:i.removeEventListener("keydown",this.boundHandleKeyDown);(e=this.popover)===null||e===void 0?void 0:e.removeEventListener("postToggle",this.boundHandlePostToggle)};t.prototype.render=function(){var t=this;return e(n,{key:"009495ba354321f2b0162c4a0c4fcb1e165074e7","data-version":o},e("slot",{key:"f0e5ef7851b4bc9916382b0910d9500db52668d4",onSlotchange:function(){return t.setupTrigger()}}))};Object.defineProperty(t.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{popoverOpen:[{syncAriaExpanded:0}]}},enumerable:false,configurable:true});return t}());c([u("string")],f.prototype,"for",void 0);f.style=h()}}}));
1
+ System.register(["./p-CN_0KCBp.system.js","./p-MZb_boDk.system.js","./p-DoVr7uzg.system.js","./p-BMZcKRx0.system.js","./p-Bzy18UgU.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var i,e,n,o,s,r,u;return{setters:[function(t){i=t.r;e=t.h;n=t.H;o=t.g},function(t){s=t.v},function(t){r=t.i},function(t){u=t.T},null,null],execute:function(){var h=function(){return":host{cursor:pointer}"};var a=undefined&&undefined.__decorate||function(t,i,e,n){var o=arguments.length,s=o<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,e):n,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(t,i,e,n);else for(var u=t.length-1;u>=0;u--)if(r=t[u])s=(o<3?r(s):o>3?r(i,e,s):r(i,e))||s;return o>3&&s&&Object.defineProperty(i,e,s),s};var c=t("post_popover_trigger",function(){function t(t){var e=this;i(this,t);this.ariaExpanded=false;this.popoverOpen=false;this.handleKeyDown=function(t){if(t.key==="Enter"||t.key===" "){t.preventDefault();e.handleToggle()}};this.boundHandleToggle=this.handleToggle.bind(this);this.boundHandleKeyDown=this.handleKeyDown.bind(this);this.boundHandlePostToggle=function(t){e.popoverOpen=t.detail.isOpen;e.focusTrigger()}}t.prototype.syncAriaExpanded=function(t){this.ariaExpanded=t;if(this.trigger){this.trigger.setAttribute("aria-expanded",String(t))}};t.prototype.hasAriaControlsElements=function(t){return"ariaControlsElements"in t};Object.defineProperty(t.prototype,"popover",{get:function(){var t;var i=(t=this.host.querySelector("post-popover"))!==null&&t!==void 0?t:document.getElementById(this.for);if(!i){var e=this.for?"with ID: ".concat(this.for):"inside the <post-popover-trigger>";console.error("No post-popover found ".concat(e,"."));return null}return(i===null||i===void 0?void 0:i.localName)==="post-popover"?i:null},enumerable:false,configurable:true});t.prototype.setupTrigger=function(){var t,i;var e=this.popover;this.trigger=this.host.querySelector("*");if(!this.trigger){console.error("No content found in the post-popover-trigger slot. Please insert a focusable element or content that can receive focus.");return}if(!r(this.trigger)){this.trigger.setAttribute("tabindex","0");this.trigger.setAttribute("role","button")}if(!e)return;this.trigger.setAttribute("aria-expanded",this.ariaExpanded.toString());this.trigger.setAttribute("aria-haspopup","true");if(this.for){this.trigger.setAttribute("aria-controls",this.for)}else{if(this.hasAriaControlsElements(this.trigger)){this.trigger.ariaControlsElements=[e]}else{e.id||(e.id="popover-".concat(crypto.randomUUID()));this.trigger.setAttribute("aria-controls",e.id)}}(t=this.trigger)===null||t===void 0?void 0:t.addEventListener("click",this.boundHandleToggle);(i=this.trigger)===null||i===void 0?void 0:i.addEventListener("keydown",this.boundHandleKeyDown)};t.prototype.handleToggle=function(){var t;(t=this.popover)===null||t===void 0?void 0:t.toggle(this.trigger);this.focusTrigger()};t.prototype.focusTrigger=function(){if(!this.popoverOpen&&this.trigger){this.trigger.focus({preventScroll:true})}};t.prototype.componentDidLoad=function(){var t;this.setupTrigger();(t=this.popover)===null||t===void 0?void 0:t.addEventListener("postToggle",this.boundHandlePostToggle)};t.prototype.disconnectedCallback=function(){var t,i,e;(t=this.trigger)===null||t===void 0?void 0:t.removeEventListener("click",this.boundHandleToggle);(i=this.trigger)===null||i===void 0?void 0:i.removeEventListener("keydown",this.boundHandleKeyDown);(e=this.popover)===null||e===void 0?void 0:e.removeEventListener("postToggle",this.boundHandlePostToggle)};t.prototype.render=function(){var t=this;return e(n,{key:"a8a3be80d30404564add3fcbef1a24b4f59d4614","data-version":s},e("slot",{key:"1fada9d0241aa9e8ab6392e63feb61dc2c686dd5",onSlotchange:function(){return t.setupTrigger()}}))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{popoverOpen:[{syncAriaExpanded:0}]}},enumerable:false,configurable:true});return t}());a([u("string")],c.prototype,"for",void 0);c.style=h()}}}));
@@ -1 +1 @@
1
- System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t,i){"use strict";var e,n,s,o,r,u,c;return{setters:[function(t){e=t.r;n=t.h;s=t.H;o=t.g},function(t){r=t.v},function(t){u=t.R},function(t){c=t.T},null],execute:function(){var h=function(){return"post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}"};var f=undefined&&undefined.__decorate||function(t,i,e,n){var s=arguments.length,o=s<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,e):n,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,i,e,n);else for(var u=t.length-1;u>=0;u--)if(r=t[u])o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o;return s>3&&o&&Object.defineProperty(i,e,o),o};var a=["pointerenter","pointerleave","focusin","focusout"];var l;var v=t("post_tooltip_trigger",function(){function t(t){e(this,t);this.delay=0;this.trigger=null;this.delayTimeout=null;this.boundTriggerHandler=this.handleTriggerEvent.bind(this);this.boundTooltipHandler=this.handleTooltipEvent.bind(this)}Object.defineProperty(t.prototype,"tooltip",{get:function(){var t=document.getElementById(this.for);return(t===null||t===void 0?void 0:t.localName)==="post-tooltip"?t:null},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){{i.import("./p-DoVr7uzg.system.js").then((function(t){return t.f})).then((function(t){l!==null&&l!==void 0?l:l=t.default}))}};t.prototype.componentDidLoad=function(){this.setupTrigger();this.attachListeners();this.attachTooltipListeners()};t.prototype.disconnectedCallback=function(){this.removeListeners();this.removeTooltipListeners();this.cleanupTrigger();if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}};t.prototype.handleSlotChange=function(){this.cleanupTrigger();this.setupTrigger()};t.prototype.cleanupTrigger=function(){var t=this;if(this.trigger){var i=this.trigger.getAttribute("aria-describedby")||"";if(i.includes(this.for)){var e=i.split(" ").filter((function(i){return i!==t.for})).join(" ");if(e){this.trigger.setAttribute("aria-describedby",e)}else{this.trigger.removeAttribute("aria-describedby")}}this.trigger=null}};t.prototype.setupTrigger=function(){this.trigger=this.host.querySelector("*");if(this.trigger){if(!(l===null||l===void 0?void 0:l(this.trigger))){this.trigger.setAttribute("tabindex","0")}var t=this.trigger.getAttribute("aria-describedby")||"";if(!t.includes(this.for)){this.trigger.setAttribute("aria-describedby","".concat(t," ").concat(this.for).trim())}}else{console.warn("No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.")}};t.prototype.attachListeners=function(){var t=this;a.forEach((function(i){t.host.addEventListener(i,t.boundTriggerHandler)}))};t.prototype.removeListeners=function(){var t=this;a.forEach((function(i){t.host.removeEventListener(i,t.boundTriggerHandler)}))};t.prototype.attachTooltipListeners=function(){if(this.tooltip){this.tooltip.addEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.addEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.removeTooltipListeners=function(){if(this.tooltip){this.tooltip.removeEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.removeEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.handleTriggerEvent=function(t){switch(t.type){case"pointerenter":case"focusin":case"long-press":this.handleEnter();break;case"pointerleave":case"focusout":this.handleLeave(t);break}};t.prototype.handleTooltipEvent=function(t){switch(t.type){case"pointerenter":this.handleEnter();break;case"pointerleave":this.handleLeave(t);break}};t.prototype.handleEnter=function(){if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}this.interestHandler()};t.prototype.handleLeave=function(t){var i=t.relatedTarget;if(this.tooltip&&i&&this.tooltip.contains(i)||i===this.trigger){return}this.interestLostHandler()};t.prototype.interestHandler=function(){var t=this;var i;if(this.trigger){if(this.delay>0){this.delayTimeout=globalThis.setTimeout((function(){var i;(i=t.tooltip)===null||i===void 0?void 0:i.show(t.trigger);t.delayTimeout=null}),this.delay)}else{(i=this.tooltip)===null||i===void 0?void 0:i.show(this.trigger)}}};t.prototype.interestLostHandler=function(){var t;if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}(t=this.tooltip)===null||t===void 0?void 0:t.hide()};t.prototype.render=function(){var t=this;return n(s,{key:"37f835a46c96f1f97019b611da8b6be2d6e1a8d7","data-version":r},n("slot",{key:"c2fc3d9080948fdcfbd8b2866730e76b770b87ba",onSlotchange:function(){return t.handleSlotChange()}}))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());f([u(),c("string")],v.prototype,"for",void 0);v.style=h()}}}));
1
+ System.register(["./p-CN_0KCBp.system.js","./p-MZb_boDk.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t,i){"use strict";var e,n,s,o,r,c,u;return{setters:[function(t){e=t.r;n=t.h;s=t.H;o=t.g},function(t){r=t.v},function(t){c=t.R},function(t){u=t.T},null],execute:function(){var h=function(){return"post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}"};var f=undefined&&undefined.__decorate||function(t,i,e,n){var s=arguments.length,o=s<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,e):n,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,i,e,n);else for(var c=t.length-1;c>=0;c--)if(r=t[c])o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o;return s>3&&o&&Object.defineProperty(i,e,o),o};var a=["pointerenter","pointerleave","focusin","focusout"];var l;var v=t("post_tooltip_trigger",function(){function t(t){e(this,t);this.delay=0;this.trigger=null;this.delayTimeout=null;this.boundTriggerHandler=this.handleTriggerEvent.bind(this);this.boundTooltipHandler=this.handleTooltipEvent.bind(this)}Object.defineProperty(t.prototype,"tooltip",{get:function(){var t=document.getElementById(this.for);return(t===null||t===void 0?void 0:t.localName)==="post-tooltip"?t:null},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){{i.import("./p-DoVr7uzg.system.js").then((function(t){return t.f})).then((function(t){l!==null&&l!==void 0?l:l=t.default}))}};t.prototype.componentDidLoad=function(){this.setupTrigger();this.attachListeners();this.attachTooltipListeners()};t.prototype.disconnectedCallback=function(){this.removeListeners();this.removeTooltipListeners();this.cleanupTrigger();if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}};t.prototype.handleSlotChange=function(){this.cleanupTrigger();this.setupTrigger()};t.prototype.cleanupTrigger=function(){var t=this;if(this.trigger){var i=this.trigger.getAttribute("aria-describedby")||"";if(i.includes(this.for)){var e=i.split(" ").filter((function(i){return i!==t.for})).join(" ");if(e){this.trigger.setAttribute("aria-describedby",e)}else{this.trigger.removeAttribute("aria-describedby")}}this.trigger=null}};t.prototype.setupTrigger=function(){this.trigger=this.host.querySelector("*");if(this.trigger){if(!(l===null||l===void 0?void 0:l(this.trigger))){this.trigger.setAttribute("tabindex","0")}var t=this.trigger.getAttribute("aria-describedby")||"";if(!t.includes(this.for)){this.trigger.setAttribute("aria-describedby","".concat(t," ").concat(this.for).trim())}}else{console.warn("No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.")}};t.prototype.attachListeners=function(){var t=this;a.forEach((function(i){t.host.addEventListener(i,t.boundTriggerHandler)}))};t.prototype.removeListeners=function(){var t=this;a.forEach((function(i){t.host.removeEventListener(i,t.boundTriggerHandler)}))};t.prototype.attachTooltipListeners=function(){if(this.tooltip){this.tooltip.addEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.addEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.removeTooltipListeners=function(){if(this.tooltip){this.tooltip.removeEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.removeEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.handleTriggerEvent=function(t){switch(t.type){case"pointerenter":case"focusin":case"long-press":this.handleEnter();break;case"pointerleave":case"focusout":this.handleLeave(t);break}};t.prototype.handleTooltipEvent=function(t){switch(t.type){case"pointerenter":this.handleEnter();break;case"pointerleave":this.handleLeave(t);break}};t.prototype.handleEnter=function(){if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}this.interestHandler()};t.prototype.handleLeave=function(t){var i=t.relatedTarget;if(this.tooltip&&i&&this.tooltip.contains(i)||i===this.trigger){return}this.interestLostHandler()};t.prototype.interestHandler=function(){var t=this;var i;if(this.trigger){if(this.delay>0){this.delayTimeout=globalThis.setTimeout((function(){var i;(i=t.tooltip)===null||i===void 0?void 0:i.show(t.trigger);t.delayTimeout=null}),this.delay)}else{(i=this.tooltip)===null||i===void 0?void 0:i.show(this.trigger)}}};t.prototype.interestLostHandler=function(){var t;if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}(t=this.tooltip)===null||t===void 0?void 0:t.hide()};t.prototype.render=function(){var t=this;return n(s,{key:"692a3cda2890f30f0df80366a9610ec70b0872ba","data-version":r},n("slot",{key:"0a9df94a1d52ec318ecbec6740b7d3acc915b130",onSlotchange:function(){return t.handleSlotChange()}}))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());f([c(),u("string")],v.prototype,"for",void 0);v.style=h()}}}));
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,r){function s(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function n(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r["throw"](t))}catch(t){o(t)}}function c(t){t.done?i(t.value):s(t.value).then(n,a)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,s,o,n=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return n.next=a(0),n["throw"]=a(1),n["return"]=a(2),typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function a(t){return function(e){return c([t,e])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,a[0]&&(i=0)),i)try{if(r=1,s&&(o=a[0]&2?s["return"]:a[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,a[1])).done)return o;if(s=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;s=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];s=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-MZb_boDk.system.js","./p-C6zfwDtv.system.js","./p-CHIhqOmO.system.js","./p-CiwQnVr3.system.js","./p-BMZcKRx0.system.js","./p-BCAukqif.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,i,r,s,o,n,a,c,l,h;return{setters:[function(t){e=t.r;i=t.c;r=t.h;s=t.H;o=t.g},function(t){n=t.v},function(t){a=t.c},function(t){c=t.f},function(t){l=t.O},function(t){h=t.T},null,null],execute:function(){var u=function(){return':host{display:block}:host .tabs-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .tabs-wrapper button.scroll-btn{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:background-color 100ms,border-color 100ms,color 100ms;transition:background-color 100ms,border-color 100ms,color 100ms;cursor:pointer}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn{background-color:ButtonFace !important}:host .tabs-wrapper button.scroll-btn:hover{background-color:Highlight !important}}:host .tabs-wrapper button.scroll-btn post-icon{color:currentColor}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn post-icon{color:Highlight}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:hover post-icon{color:canvas}}:host .tabs-wrapper button.scroll-btn[hidden]{display:none}:host .tabs-wrapper button.scroll-btn{outline-offset:var(--post-device-spacing-padding-44) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){-webkit-transition:none;transition:none}:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus):hover{color:HighlightText;border-color:HighlightText}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:focus-within,.pretend-focus){-webkit-transition:none;transition:none}:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:focus-within,.pretend-focus):hover{color:HighlightText;border-color:HighlightText}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}:host .tabs-wrapper .tabs{overflow-x:hidden;background-color:rgba(0,0,0,0) !important;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:end;align-items:end;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;-webkit-padding-start:0;padding-inline-start:0;list-style:none}:host(.page-tabs){overflow:visible !important}:host(.page-tabs) .tabs-wrapper{margin-inline:calc(-1*(var(--post-container-offset)))}:host(.page-tabs) .tabs-wrapper button.scroll-btn{color:var(--post-scheme-color-interactive-primary-enabled-fg5);background-color:var(--post-scheme-color-interactive-primary-enabled-bg5);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke);position:absolute;z-index:2;-webkit-box-shadow:var(--post-device-elevation-200);box-shadow:var(--post-device-elevation-200);border-radius:var(--post-device-border-radius-2)}:host(.page-tabs) .tabs-wrapper button.scroll-btn:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke) !important;color:var(--post-scheme-color-interactive-primary-hover-fg4);background-color:var(--post-scheme-color-interactive-primary-hover-bg8)}:host(.page-tabs) .tabs-wrapper button.scroll-btn.scroll-btn-left{inset-inline-start:0;-webkit-border-start:none;border-inline-start:none;border-radius:0 var(--post-device-border-radius-2) var(--post-device-border-radius-2) 0}:host(.page-tabs) .tabs-wrapper button.scroll-btn.scroll-btn-right{inset-inline-end:0;-webkit-border-end:none;border-inline-end:none;border-radius:var(--post-device-border-radius-2) 0 0 var(--post-device-border-radius-2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(.page-tabs) .tabs-wrapper button.scroll-btn.scroll-btn{background-color:Highlight;color:HighlightText}}:host(.page-tabs) .tabs-wrapper::after{content:"";position:absolute;inset-block-end:0;inset-inline-start:0;width:100%;height:var(--post-device-border-width-default);background-color:var(--post-palette-color-nested-tabs-page-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(.page-tabs) .tabs-wrapper::after{background-color:LinkText}}:host(.page-tabs) .tabs-wrapper .tabs{padding-inline:calc(var(--post-container-offset));gap:var(--post-device-spacing-gap-inline-5);scrollbar-width:none}:host(.page-tabs) .tabs-wrapper .tabs::-webkit-scrollbar{display:none}:host(.page-tabs:not([size=small])) button.scroll-btn{top:var(--post-device-spacing-padding-36)}:host(.page-tabs[size=small]) button.scroll-btn{top:var(--post-device-spacing-padding-36)}:host(.content-tabs) .tabs-wrapper button.scroll-btn{-ms-flex-negative:0;flex-shrink:0;color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}:host(.content-tabs) .tabs-wrapper button.scroll-btn:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke) !important;color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(.content-tabs) .tabs-wrapper button.scroll-btn:hover{color:HighlightText}}:host(post-tabs:not([size=small])) button.scroll-btn{height:var(--post-device-sizing-interactive-button-height-10);width:var(--post-device-sizing-interactive-button-width-1);border-radius:var(--post-device-border-radius-2)}:host(post-tabs:not([size=small])) button.scroll-btn post-icon{height:var(--post-device-sizing-interactive-icon-size5);width:var(--post-device-sizing-interactive-icon-size5)}:host(.page-tabs:not([size=small])) button.scroll-btn-left{padding-inline:var(--post-device-spacing-padding-39) var(--post-device-spacing-padding-40)}:host(.page-tabs:not([size=small])) button.scroll-btn-right{padding-inline:var(--post-device-spacing-padding-40) var(--post-device-spacing-padding-39)}:host([size=small]) button.scroll-btn{height:var(--post-device-sizing-interactive-button-size-1);width:var(--post-device-sizing-interactive-button-size-1);border-radius:var(--post-device-border-radius-2)}:host([size=small]) button.scroll-btn post-icon{height:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4)}:host(.page-tabs[size=small]) button.scroll-btn-left{padding-inline:var(--post-device-spacing-padding-42) var(--post-device-spacing-padding-43)}:host(.page-tabs[size=small]) button.scroll-btn-right{padding-inline:var(--post-device-spacing-padding-43) var(--post-device-spacing-padding-42)}'};var b=undefined&&undefined.__decorate||function(t,e,i,r){var s=arguments.length,o=s<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)if(n=t[a])o=(s<3?n(o):s>3?n(e,i,o):n(e,i))||o;return s>3&&o&&Object.defineProperty(e,i,o),o};var f=t("post_tabs",function(){function t(t){var r=this;e(this,t);this.postChange=i(this,"postChange");this.showing=null;this.hiding=null;this.isLoaded=false;this.isPagesVariant=false;this.showLeftScrollButton=false;this.showRightScrollButton=false;this.textPrevTabItems="Previous tab items";this.textNextTabItems="Next tab items";this.size="large";this.updateScrollButtons=function(){if(!r.tabsContainer)return;var t=getComputedStyle(r.tabsContainer);var e=Number.parseFloat(t.paddingInlineStart)||0;var i=Number.parseFloat(t.paddingInlineEnd)||0;var s=r.tabsContainer.clientWidth-e-i;var o=r.tabsContainer.scrollWidth-e-i;r.showLeftScrollButton=r.tabsContainer.scrollLeft>0;r.showRightScrollButton=r.tabsContainer.scrollLeft+s<o}}Object.defineProperty(t.prototype,"tabs",{get:function(){var t=this;return Array.from(this.host.querySelectorAll("post-tab-item")).filter((function(e){return e.closest("post-tabs")===t.host}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"panels",{get:function(){var t=this;return Array.from(this.host.querySelectorAll("post-tab-panel")).filter((function(e){return e.closest("post-tabs")===t.host}))},enumerable:false,configurable:true});t.prototype.validateLabel=function(){if(this.isPagesVariant&&!this.label){console.error("[".concat(this.host.localName,'] Property "label" is required in Pages variant. Received: ').concat(JSON.stringify(this.label),"."),this.host)}};t.prototype.componentWillRender=function(){this.detectVariant()};t.prototype.componentDidLoad=function(){var t;this.leftScrollButton.ariaControlsElements=[this.tabsContainer];this.rightScrollButton.ariaControlsElements=[this.tabsContainer];this.moveMisplacedTabs();this.moveMisplacedPanels();this.enableTabs();this.handleScrollButtons();this.setupContentObserver();this.setupResizeObserver();this.validateLabel();if(this.isPagesVariant){var e=this.findActivePagesTab();if(e){this.activateTab(e);this.scrollTabIntoView(e)}}else{var i=this.activeTab||((t=this.tabs[0])===null||t===void 0?void 0:t.name);if(i){void this.show(i);var e=this.tabs.find((function(t){return t.name===i}));if(e)this.scrollTabIntoView(e)}}this.isLoaded=true};t.prototype.disconnectedCallback=function(){var t,e,i;if(this.showing){this.showing.cancel();this.showing=null}if(this.hiding){this.hiding.cancel();this.hiding=null}if(this.contentObserver){(t=this.contentObserver)===null||t===void 0?void 0:t.disconnect()}(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();(i=this.tabsContainer)===null||i===void 0?void 0:i.removeEventListener("scroll",this.updateScrollButtons)};t.prototype.setupContentObserver=function(){var t;var e={childList:true,subtree:true,attributes:true,attributeFilter:["data-pages-variant","aria-current"]};this.contentObserver=new MutationObserver(this.handleContentChange.bind(this));(t=this.contentObserver)===null||t===void 0?void 0:t.observe(this.host,e)};t.prototype.setupResizeObserver=function(){this.resizeObserver=new ResizeObserver(this.updateScrollButtons);this.resizeObserver.observe(this.tabsContainer)};t.prototype.handleContentChange=function(t){var e=this.shouldRedetectVariant(t);var i=this.hasAriaCurrentChanged(t);if(i&&this.isPagesVariant){this.updateActivePagesTab()}if(e){this.handleVariantChange()}this.updateScrollButtons()};t.prototype.shouldRedetectVariant=function(t){return t.some((function(t){if(t.type==="childList"){return t.addedNodes.length>0||t.removedNodes.length>0}if(t.type==="attributes"&&t.attributeName==="data-pages-variant"){return true}return false}))};t.prototype.hasAriaCurrentChanged=function(t){return t.some((function(t){return t.type==="attributes"&&t.attributeName==="aria-current"}))};t.prototype.updateActivePagesTab=function(){var t=this.findActivePagesTab();if(t&&t!==this.currentActiveTab){this.activateTab(t);this.scrollTabIntoView(t,"smooth")}};t.prototype.handleVariantChange=function(){var t=this.isPagesVariant;this.detectVariant();if(t!==this.isPagesVariant){this.enableTabs();this.initializeActiveTab()}};t.prototype.initializeActiveTab=function(){var t;if(this.isPagesVariant){var e=this.findActivePagesTab();if(e){this.activateTab(e);this.scrollTabIntoView(e)}}else{var i=this.activeTab||((t=this.tabs[0])===null||t===void 0?void 0:t.name);if(i){void this.show(i)}}};t.prototype.detectVariant=function(){var t=this.tabs.some((function(t){var e=t.querySelector("a")!==null;var i=t.dataset.pagesVariant==="true";return e||i}));var e=this.panels.length>0;if(t&&e){throw new Error("PostTabs: Mixed mode detected. Cannot use both Page Tabs (anchor elements) and Content Tabs (post-tab-panel elements) variants at the same time.")}this.isPagesVariant=t;this.host.classList.remove("page-tabs","content-tabs");if(this.isPagesVariant){this.host.classList.add("page-tabs")}else{this.host.classList.add("content-tabs")}};t.prototype.findActivePagesTab=function(){return this.tabs.find((function(t){var e=t.querySelector('a[aria-current="page"]');return e!==null}))||null};t.prototype.show=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r;var s;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,3,,4]);if(t===((s=this.currentActiveTab)===null||s===void 0?void 0:s.name)){return[2]}e=this.currentActiveTab;i=this.host.querySelector('post-tab-item[name="'.concat(t,'"]'));if(!i)return[2];this.activateTab(i);this.scrollTabIntoView(i,"smooth");if(this.showing){this.showing.finish();this.showing=null}if(e&&!this.showing&&!this.hiding)this.hidePanel(e.name);return[4,this.awaitAnimation(this.hiding)];case 1:if(o.sent())return[2];this.showSelectedPanel();return[4,this.awaitAnimation(this.showing)];case 2:if(o.sent())return[2];if(this.isLoaded&&this.currentActiveTab)this.postChange.emit(this.currentActiveTab.name);return[3,4];case 3:r=o.sent();if(this.isAbortError(r))return[2];throw r;case 4:return[2]}}))}))};t.prototype.awaitAnimation=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:if(!t)return[2,false];i.label=1;case 1:i.trys.push([1,3,,4]);return[4,t.finished];case 2:i.sent();return[2,false];case 3:e=i.sent();if(this.isAbortError(e))return[2,true];throw e;case 4:return[2]}}))}))};t.prototype.isAbortError=function(t){return(t instanceof DOMException||t instanceof Error)&&t.name==="AbortError"};t.prototype.moveMisplacedTabs=function(){if(!this.tabs)return;this.tabs.forEach((function(t){if(t.getAttribute("slot")){t.removeAttribute("slot")}}))};t.prototype.moveMisplacedPanels=function(){if(!this.panels)return;this.panels.forEach((function(t){if(t.getAttribute("slot")!=="panels"){t.setAttribute("slot","panels")}}))};t.prototype.enableTabs=function(){var t=this;var e;if(!this.tabs)return;this.tabs.forEach((function(e){return __awaiter(t,void 0,void 0,(function(){var t;var i=this;return __generator(this,(function(r){switch(r.label){case 0:return[4,a(e)];case 1:r.sent();if(this.isPagesVariant){return[2]}if(e.getAttribute("aria-controls"))return[2];t=this.getPanel(e.name);if(t){e.setAttribute("aria-controls",t.id);t.setAttribute("aria-labelledby",e.id)}e.addEventListener("click",(function(){void i.show(e.name)}));e.addEventListener("keydown",(function(t){if(t.key==="Enter"||t.key===" "){t.preventDefault();void i.show(e.name)}if(t.key!=="Home"&&t.key!=="End")return;t.preventDefault();var r=i.tabs.filter((function(t){return!t.hasAttribute("disabled")}));if(r.length===0)return;var s=t.key==="Home"?r[0]:r.at(-1);if(s){s===null||s===void 0?void 0:s.focus();void i.show(s.name)}}));e.addEventListener("keydown",(function(t){if(t.key==="ArrowRight"||t.key==="ArrowLeft")i.navigateTabs(e,t.key)}));return[2]}}))}))}));if(this.currentActiveTab&&!this.currentActiveTab.isConnected){void this.show((e=this.tabs[0])===null||e===void 0?void 0:e.name)}};t.prototype.activateTab=function(t){if(this.currentActiveTab){if(!this.isPagesVariant){this.currentActiveTab.setAttribute("aria-selected","false");this.currentActiveTab.setAttribute("tabindex","-1")}}if(!this.isPagesVariant){t.setAttribute("aria-selected","true");t.setAttribute("tabindex","0")}this.currentActiveTab=t};t.prototype.hidePanel=function(t){var e=this;var i=this.getPanel(t);if(!i)return;this.hiding=c(i,"out");this.hiding.onfinish=function(){i.style.display="none";e.hiding=null}};t.prototype.showSelectedPanel=function(){var t=this;if(!this.currentActiveTab)return;var e=this.getPanel(this.currentActiveTab.name);if(!e)return;e.style.display="block";if(!this.isLoaded)return;this.showing=c(e,"in");this.showing.onfinish=function(){t.showing=null}};t.prototype.getPanel=function(t){return this.host.querySelector("post-tab-panel[for=".concat(t,"]"))};t.prototype.navigateTabs=function(t,e){var i=Array.from(this.tabs).indexOf(t);var r;if(e==="ArrowRight"){r=this.tabs[i+1]||this.tabs[0]}else{r=this.tabs[i-1]||this.tabs.at(-1)}if(!r)return;r.focus();void this.show(r.name)};t.prototype.scrollTabs=function(t){var e=t==="prev"?-1:1;var i=getComputedStyle(this.tabsContainer);var r=Number.parseFloat(i.paddingInlineStart)||0;var s=Number.parseFloat(i.paddingInlineEnd)||0;var o=this.tabsContainer.clientWidth-r-s;this.tabsContainer.scrollBy({left:e*o,behavior:"smooth"})};t.prototype.scrollTabIntoView=function(t,e){if(e===void 0){e="instant"}var i=this.tabsContainer;var r=getComputedStyle(i);var s=Number.parseFloat(r.paddingInlineStart)||0;var o=Number.parseFloat(r.paddingInlineEnd)||0;var n=t.offsetLeft;var a=n+t.offsetWidth;var c=i.scrollLeft+s;var l=c+i.clientWidth-s-o;if(n<c){i.scrollTo({left:n-s,behavior:e})}else if(a>l){i.scrollTo({left:a-i.clientWidth+o,behavior:e})}};t.prototype.handleScrollButtons=function(){this.updateScrollButtons();this.tabsContainer.addEventListener("scroll",this.updateScrollButtons)};t.prototype.render=function(){var t=this;var e=this.isPagesVariant?"nav":"div";var i=undefined;return r(s,{key:"ad4f55f50dbd83e1383944984f79d195d1c531e7","data-version":n,style:i},r("div",{key:"48456590c7b6cead75b689e3b2b463c641600cdd",class:"tabs-wrapper",part:"post-tabs"},r("button",{key:"6337fd1ba75f53f09bd80ff0873b129cb2387498",ref:function(e){return t.leftScrollButton=e},class:"scroll-btn scroll-btn-left",type:"button","aria-label":this.textPrevTabItems,tabindex:this.showLeftScrollButton?0:-1,hidden:!this.showLeftScrollButton,onClick:function(){return t.scrollTabs("prev")}},r("post-icon",{key:"97897bb7329a070f40e6ecbacff394b10f660aec",name:"chevronleft"})),r(e,{key:"edc801dcadf41c85ed9aafdd2dda11ff4c87756b",ref:function(e){return t.tabsContainer=e},class:"tabs",role:this.isPagesVariant?undefined:"tablist","aria-label":this.isPagesVariant?this.label:undefined},r("slot",{key:"908aaf787f545de1738236412dc4094cabe87155",onSlotchange:function(){t.moveMisplacedTabs();t.enableTabs()}})),r("button",{key:"ed12a602b399e1a8dcd190fca7828fcb2683b925",ref:function(e){return t.rightScrollButton=e},class:"scroll-btn scroll-btn-right",type:"button","aria-label":this.textNextTabItems,tabindex:this.showRightScrollButton?0:-1,hidden:!this.showRightScrollButton,onClick:function(){return t.scrollTabs("next")}},r("post-icon",{key:"0ecd4444455da92f371b300299ff2f1a53f804a2",name:"chevronright"}))),!this.isPagesVariant&&r("div",{key:"2252fefeca18a6135796852e511c779d413aa2c5",class:"tab-content",part:"post-tabs-content"},r("slot",{key:"dc553352c6fa9ea4c5780108bc9ed8e3e9b29b24",name:"panels",onSlotchange:function(){return t.moveMisplacedPanels()}})))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{label:[{validateLabel:0}]}},enumerable:false,configurable:true});return t}());b([l(["small","large"])],f.prototype,"size",void 0);b([h("string")],f.prototype,"label",void 0);f.style=u()}}}));
@@ -1 +1 @@
1
- import{r as t,c as s,h as r,H as a,g as i}from"./p-h3opCZqH.js";import{v as e}from"./p-D9jUbrFT.js";import{R as o}from"./p-DvaRK2lz.js";import{T as n}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";var l=function(t,s,r,a){var i,e=arguments.length,o=e<3?s:null===a?a=Object.getOwnPropertyDescriptor(s,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,s,r,a);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(o=(e<3?i(o):e>3?i(s,r,o):i(s,r))||o);return e>3&&o&&Object.defineProperty(s,r,o),o};const h=class{constructor(r){t(this,r),this.postInput=s(this,"postInput"),this.postChange=s(this,"postChange"),this.hasChanged=!1,this.stars=5,this.currentRating=0,this.readonly=!1,this.keydownHandler=this.keydownHandler.bind(this),this.blurHandler=this.blurHandler.bind(this),this.hoverHandler=this.hoverHandler.bind(this)}update(t){this.readonly||t<0||t>this.stars||(this.currentRating=this.currentRating!==t?t:0,this.postInput.emit({value:this.currentRating}),this.hasChanged=!0)}keydownHandler(t){switch(t.key){case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.update(this.currentRating-1);break;case"ArrowUp":case"ArrowRight":t.preventDefault(),this.update(this.currentRating+1);break;case"Home":t.preventDefault(),this.update(0);break;case"End":t.preventDefault(),this.update(this.stars);break;case"Enter":case" ":this.blurHandler();break;default:return}}blurHandler(){this.hasChanged&&(this.postChange.emit({value:this.currentRating}),this.hasChanged=!1)}hoverHandler(t,s){this.readonly||("mouseenter"===s.type?this.hoveredIndex=t:"mouseleave"===s.type&&(this.hoveredIndex=void 0))}render(){return r(a,{key:"c793abbf5e0d01bb19dc4464ebd75249959a1717","data-version":e},r("div",{key:"357946df40a3d3a85ece2d0ac6ecc761951d9471",role:"slider",class:"rating",tabindex:"0","aria-label":this.label,"aria-valuemin":"0","aria-valuemax":this.stars,"aria-valuenow":this.currentRating,"aria-valuetext":`${this.currentRating} / ${this.stars}`,"aria-readonly":this.readonly?"true":"false",onKeyDown:this.keydownHandler,onBlur:this.blurHandler},Array.from({length:this.stars}).map(((t,s)=>r("div",{key:`star-${t}`,"aria-hidden":"true",class:{star:!0,"before-hover":s<this.hoveredIndex,active:s<Math.round(this.currentRating),hover:s===this.hoveredIndex,"after-active":s>this.hoveredIndex&&s<this.currentRating},onClick:()=>this.update(s+1),onMouseEnter:t=>this.hoverHandler(s,t),onMouseLeave:t=>this.hoverHandler(s,t)},r("post-icon",{name:"favoritestar",class:"stroke"}),r("post-icon",{name:"favoritestar-solid",class:"fill"}))))))}get host(){return i(this)}};l([o(),n("string")],h.prototype,"label",void 0),l([o(),n("number")],h.prototype,"stars",void 0),l([o(),n("number")],h.prototype,"currentRating",void 0),h.style=":host{display:inline-block}.rating{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;overflow:hidden;margin:0 calc(var(--post-core-dimension-4)*-1);border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;-webkit-transition:all ease 100ms;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:var(--post-core-dimension-2);outline:var(--post-core-dimension-2) solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}";export{h as post_rating}
1
+ import{r as t,c as s,h as r,H as a,g as i}from"./p-h3opCZqH.js";import{v as e}from"./p-Ny5VnydI.js";import{R as o}from"./p-DvaRK2lz.js";import{T as n}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";var l=function(t,s,r,a){var i,e=arguments.length,o=e<3?s:null===a?a=Object.getOwnPropertyDescriptor(s,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,s,r,a);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(o=(e<3?i(o):e>3?i(s,r,o):i(s,r))||o);return e>3&&o&&Object.defineProperty(s,r,o),o};const h=class{constructor(r){t(this,r),this.postInput=s(this,"postInput"),this.postChange=s(this,"postChange"),this.hasChanged=!1,this.stars=5,this.currentRating=0,this.readonly=!1,this.keydownHandler=this.keydownHandler.bind(this),this.blurHandler=this.blurHandler.bind(this),this.hoverHandler=this.hoverHandler.bind(this)}update(t){this.readonly||t<0||t>this.stars||(this.currentRating=this.currentRating!==t?t:0,this.postInput.emit({value:this.currentRating}),this.hasChanged=!0)}keydownHandler(t){switch(t.key){case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.update(this.currentRating-1);break;case"ArrowUp":case"ArrowRight":t.preventDefault(),this.update(this.currentRating+1);break;case"Home":t.preventDefault(),this.update(0);break;case"End":t.preventDefault(),this.update(this.stars);break;case"Enter":case" ":this.blurHandler();break;default:return}}blurHandler(){this.hasChanged&&(this.postChange.emit({value:this.currentRating}),this.hasChanged=!1)}hoverHandler(t,s){this.readonly||("mouseenter"===s.type?this.hoveredIndex=t:"mouseleave"===s.type&&(this.hoveredIndex=void 0))}render(){return r(a,{key:"0cf576670f16d4b8f88b714af12ded14aa1372b2","data-version":e},r("div",{key:"a53c8f8f9c617a2bd3996fd5812c7af091497f55",role:"slider",class:"rating",tabindex:"0","aria-label":this.label,"aria-valuemin":"0","aria-valuemax":this.stars,"aria-valuenow":this.currentRating,"aria-valuetext":`${this.currentRating} / ${this.stars}`,"aria-readonly":this.readonly?"true":"false",onKeyDown:this.keydownHandler,onBlur:this.blurHandler},Array.from({length:this.stars}).map(((t,s)=>r("div",{key:`star-${t}`,"aria-hidden":"true",class:{star:!0,"before-hover":s<this.hoveredIndex,active:s<Math.round(this.currentRating),hover:s===this.hoveredIndex,"after-active":s>this.hoveredIndex&&s<this.currentRating},onClick:()=>this.update(s+1),onMouseEnter:t=>this.hoverHandler(s,t),onMouseLeave:t=>this.hoverHandler(s,t)},r("post-icon",{name:"favoritestar",class:"stroke"}),r("post-icon",{name:"favoritestar-solid",class:"fill"}))))))}get host(){return i(this)}};l([o(),n("string")],h.prototype,"label",void 0),l([o(),n("number")],h.prototype,"stars",void 0),l([o(),n("number")],h.prototype,"currentRating",void 0),h.style=":host{display:inline-block}.rating{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;overflow:hidden;margin:0 calc(var(--post-core-dimension-4)*-1);border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;-webkit-transition:all ease 100ms;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:var(--post-core-dimension-2);outline:var(--post-core-dimension-2) solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}";export{h as post_rating}
@@ -0,0 +1 @@
1
+ import{r as o,h as e,H as t,g as r}from"./p-h3opCZqH.js";import{P as s}from"./p-DRiVosES.js";import{v as a}from"./p-Ny5VnydI.js";import{O as i}from"./p-Drxf8XVU.js";import"./p-vAzHgwTd.js";const p=class{constructor(e){o(this,e),this.placement="top",this.arrow=!1,this.open=!1}componentDidLoad(){this.host.id||console.error("No id set: <post-tooltip> must have an id, linking it to it's target element with a <post-tooltip-trigger> element.")}async show(o){this.open||await this.popoverRef.show(o)}async hide(){this.popoverRef.hide()}async toggle(o,e){this.popoverRef.toggle(o,e)}handleBeforeToggle(o){this.open=o.detail.willOpen}render(){return e(t,{key:"1510f7ec123b7bfaa39cc348a6b496a9051163ea","data-version":a},e("post-popovercontainer",{key:"004baf52684bfed3b8af77f773c9487d3b776fa9",safeSpace:"trapezoid",class:this.arrow?"has-arrow":"",role:"tooltip",arrow:this.arrow,placement:this.placement,autoHide:!0,onPostBeforeToggle:o=>this.handleBeforeToggle(o),ref:o=>this.popoverRef=o},e("slot",{key:"182f95928a4f70c747073e4585c18cab5f0eb277"})))}get host(){return r(this)}};(function(o,e,t,r){var s,a=arguments.length,i=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(o,e,t,r);else for(var p=o.length-1;p>=0;p--)(s=o[p])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);a>3&&i&&Object.defineProperty(e,t,i)})([i(s)],p.prototype,"placement",void 0),p.style=':host{display:none}:host([open]){display:contents}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer{--post-current-bg:var(--post-scheme-color-surface-accent-bg);--post-current-fg:var(--post-scheme-color-surface-accent-fg);--post-popovercontainer-arrow-border-width:var(--post-device-border-width-alternative1);--post-popovercontainer-arrow-border-color:var(--post-scheme-color-surface-accent-fg)}post-popovercontainer::part(post-popovercontainer-border-mask){display:block;-webkit-box-shadow:inset 0 0 0 var(--post-device-spacing-padding-14) var(--post-scheme-color-surface-accent-bg);box-shadow:inset 0 0 0 var(--post-device-spacing-padding-14) var(--post-scheme-color-surface-accent-bg)}post-popovercontainer::part(post-popovercontainer-content){border:var(--post-device-border-width-alternative1) solid var(--post-scheme-color-surface-accent-fg);border-radius:var(--post-device-border-radius-1);padding:var(--post-device-spacing-padding-14) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-9);max-width:var(--post-tooltip-max-width, 280px);word-wrap:break-word;white-space:normal}';export{p as post_tooltip}
@@ -1 +1 @@
1
- import{r as e,h as r,H as t,g as i}from"./p-h3opCZqH.js";import{r as o,c as s,g as a}from"./p-vAzHgwTd.js";import{T as n}from"./p-DZMUeI8H.js";function c(e,r,t){const i=s({priority:1,blocking:!1,run(i,o){const{value:s,showError:n}=a(i,o);if("number"!=typeof s)return!0;const c=function(e,r){const t="string"==typeof r?e[r]:r;return"number"==typeof t?t:null}(i,e);if(null===c){if("string"==typeof e){const r=typeof i[e];if("number"!==r)return n(`references property "${e}" which must be a number but got ${r}`),!1}return!0}const u=r.include??t.includeDefault;if(!t.compare(s,c,u)){const r=String("string"==typeof e?c:e);return n(`must be ${t.formatExpectation(r,u)}`),!1}return!0}});return function(r,t){"string"==typeof e&&o(r,e,t),i(r,t)}}function u(e,r={}){return c(e,{include:r.includeMin},{includeDefault:!1,compare:(e,r,t)=>t?e>=r:e>r,formatExpectation:(e,r)=>r?`greater than or equal to "${e}"`:`greater than "${e}"`})}var l=function(e,r,t,i){var o,s=arguments.length,a=s<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,t,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(s<3?o(a):s>3?o(r,t,a):o(r,t))||a);return s>3&&a&&Object.defineProperty(r,t,a),a};const p=class{constructor(r){e(this,r),this.min=0,this.max=100}getEffectiveMin(){return Number.isFinite(this.min)?this.min:0}getEffectiveMax(){return Number.isFinite(this.max)&&this.max>this.getEffectiveMin()?this.max:100}getEffectiveValue(e,r){return void 0===this.value||!Number.isFinite(this.value)||this.value<e||this.value>r?e:this.value}render(){const e=this.getEffectiveMin(),i=this.getEffectiveMax(),o=this.getEffectiveValue(e,i);return r(t,{key:"26bdbb5219393e8b44e2fe5395d8a4cd8aa7e18a",role:"progressbar","aria-valuenow":o,"aria-valuemin":e,"aria-valuemax":i},r("div",{key:"65b81479fac7aa6024556ef6589064f997f4394e",class:"progress-value",style:{"--post-progressbar-value":(o-e)/(i-e)*100+"%"}}))}get host(){return i(this)}};l([n("number")],p.prototype,"min",void 0),l([n("number"),u("min")],p.prototype,"max",void 0),l([n("number"),u("min"),function(e,r={}){return c("max",{include:r.includeMax},{includeDefault:!0,compare:(e,r,t)=>t?e<=r:e<r,formatExpectation:(e,r)=>r?`less than or equal to "${e}"`:`less than "${e}"`})}()],p.prototype,"value",void 0),p.style=":host{display:block;position:relative;height:var(--post-device-sizing-interactive-progressbar-indicator);border-radius:var(--post-device-border-radius-round);-webkit-box-shadow:0px 0px 0px var(--post-device-border-width-alternative1) var(--post-scheme-color-interactive-primary-enabled-stroke) inset;box-shadow:0px 0px 0px var(--post-device-border-width-alternative1) var(--post-scheme-color-interactive-primary-enabled-stroke) inset;overflow:hidden}.progress-value{position:absolute;inset-block:0;inset-inline-start:0;width:var(--post-progressbar-value, 0);border-radius:var(--post-device-border-radius-round);background-color:var(--post-progressbar-status-color, var(--post-scheme-color-interactive-primary-enabled-bg2));-webkit-transition:width 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:width 250ms cubic-bezier(0.4, 0, 0.2, 1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host{border:1px solid Highlight}.progress-value{background-color:Highlight}}";export{p as post_progressbar}
1
+ import{r as e,h as r,H as t,g as i}from"./p-h3opCZqH.js";import{r as o,c as s,g as a}from"./p-vAzHgwTd.js";import{T as n}from"./p-DZMUeI8H.js";function c(e,r,t){const i=s({priority:1,blocking:!1,run(i,o){const{value:s,showError:n}=a(i,o);if("number"!=typeof s)return!0;const c=function(e,r){const t="string"==typeof r?e[r]:r;return"number"==typeof t?t:null}(i,e);if(null===c){if("string"==typeof e){const r=typeof i[e];if("number"!==r)return n(`references property "${e}" which must be a number but got ${r}`),!1}return!0}const u=r.include??t.includeDefault;if(!t.compare(s,c,u)){const r=String("string"==typeof e?c:e);return n(`must be ${t.formatExpectation(r,u)}`),!1}return!0}});return function(r,t){"string"==typeof e&&o(r,e,t),i(r,t)}}function u(e,r={}){return c(e,{include:r.includeMin},{includeDefault:!1,compare:(e,r,t)=>t?e>=r:e>r,formatExpectation:(e,r)=>r?`greater than or equal to "${e}"`:`greater than "${e}"`})}var l=function(e,r,t,i){var o,s=arguments.length,a=s<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,t,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(s<3?o(a):s>3?o(r,t,a):o(r,t))||a);return s>3&&a&&Object.defineProperty(r,t,a),a};const b=class{constructor(r){e(this,r),this.min=0,this.max=100}getEffectiveMin(){return Number.isFinite(this.min)?this.min:0}getEffectiveMax(){return Number.isFinite(this.max)&&this.max>this.getEffectiveMin()?this.max:100}getEffectiveValue(e,r){return void 0===this.value||!Number.isFinite(this.value)||this.value<e||this.value>r?e:this.value}render(){const e=this.getEffectiveMin(),i=this.getEffectiveMax(),o=this.getEffectiveValue(e,i);return r(t,{key:"c08b9b976c5cb34018e48c4dafe6b87207710ba5",role:"progressbar","aria-valuenow":o,"aria-valuemin":e,"aria-valuemax":i},r("div",{key:"485eb6657d14ad5472bfbe822b1cd0eb50cd0129",class:"progress-value",style:{"--post-progressbar-value":(o-e)/(i-e)*100+"%"}}))}get host(){return i(this)}};l([n("number")],b.prototype,"min",void 0),l([n("number"),u("min")],b.prototype,"max",void 0),l([n("number"),u("min"),function(e,r={}){return c("max",{include:r.includeMax},{includeDefault:!0,compare:(e,r,t)=>t?e<=r:e<r,formatExpectation:(e,r)=>r?`less than or equal to "${e}"`:`less than "${e}"`})}()],b.prototype,"value",void 0),b.style=":host{display:block;position:relative;height:var(--post-device-sizing-interactive-progressbar-indicator);border-radius:var(--post-device-border-radius-round);-webkit-box-shadow:0px 0px 0px var(--post-device-border-width-alternative1) var(--post-scheme-color-interactive-primary-enabled-stroke) inset;box-shadow:0px 0px 0px var(--post-device-border-width-alternative1) var(--post-scheme-color-interactive-primary-enabled-stroke) inset;overflow:hidden}.progress-value{position:absolute;inset-block:0;inset-inline-start:0;width:var(--post-progressbar-value, 0);border-radius:var(--post-device-border-radius-round);background-color:var(--post-progressbar-status-color, var(--post-scheme-color-interactive-primary-enabled-bg2));-webkit-transition:width 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:width 250ms cubic-bezier(0.4, 0, 0.2, 1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host{border:1px solid Highlight}.progress-value{background-color:Highlight}}";export{b as post_progressbar}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as o,g as r}from"./p-h3opCZqH.js";import{v as i}from"./p-Ny5VnydI.js";import{R as s}from"./p-DvaRK2lz.js";import{T as n}from"./p-DZMUeI8H.js";import{E as a}from"./p-BEcxHjuM.js";import"./p-vAzHgwTd.js";var c=function(t,e,o,r){var i,s=arguments.length,n=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(n=(s<3?i(n):s>3?i(e,o,n):i(e,o))||n);return s>3&&n&&Object.defineProperty(e,o,n),n};const d=class{constructor(e){t(this,e),this.isMegadropdownExpanded=!1,this.slottedContent=null,this.active=!1}componentWillRender(){this.handleSlottedContentChanges()}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect()}onMegadropdownToggled(t){if(t.target.id===this.for){const e=this.isMegadropdownExpanded;if(this.isMegadropdownExpanded=t.detail.isVisible,!e||this.isMegadropdownExpanded||!t.detail.focusParent)return;setTimeout((()=>{this.interactiveButton.focus()}),100)}}get megadropdown(){const t=document.getElementById(this.for);return"post-megadropdown"!==t?.localName?(console.warn(`No post-megadropdown found with ID: ${this.for}`),null):t}handleSlottedContentChanges(){this.cloneSlottedButton(),this.mutationObserver=new MutationObserver(this.cloneSlottedButton.bind(this)),this.mutationObserver.observe(this.host,{childList:!0,subtree:!0})}cloneSlottedButton(){this.slottedContent=this.host.innerHTML}onClick(){this.megadropdown?.toggle()}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||this.megadropdown&&(t.preventDefault(),this.megadropdown.toggle())}render(){return e(o,{key:"d5242fd9126f3486f731ed6f369f3a6c38a5d1e9","data-version":i},e("button",{key:"6af086a50a9c788b35ba542531950b69a5e249da",ref:t=>this.interactiveButton=t,type:"button","aria-haspopup":"menu","aria-expanded":this.isMegadropdownExpanded.toString(),onClick:this.onClick.bind(this),onKeyDown:this.onKeyDown.bind(this),class:{active:this.active}},e("span",{key:"dacf0bd6dc576fa7c70353c98eacb3d81ddf83e5"},e("span",{key:"0c7b950ea9bfcae62b367900d78f155edc49de72",innerHTML:this.slottedContent}),e("span",{key:"999325546eb3196f6e704ebeb18f436ff3d53756","aria-hidden":"true"},e("slot",{key:"08fa107b944a87edf156ea7d5e12692eba64952d"}))),e("post-icon",{key:"eb32199b1ff6951b6025c1e4919674f5419f7d49",name:"chevrondown"})))}get host(){return r(this)}};c([s(),n("string")],d.prototype,"for",void 0),c([a("post-megadropdown",{ignoreNestedComponents:!1})],d.prototype,"onMegadropdownToggled",null),d.style='button{display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;overflow:hidden;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;border:unset;font-weight:unset;display:-ms-flexbox;display:flex;padding:4px 10px;gap:6px;font-size:1rem;border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg)}button:not(:disabled):hover{text-decoration:none}button:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){button{border-width:1px !important;-webkit-transition:none;transition:none}button:is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}button:hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg)}button:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){-webkit-box-shadow:var(--post-device-elevation-100);box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);color:var(--post-scheme-color-interactive-button-primary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg)}button:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active):hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);color:var(--post-scheme-color-interactive-button-primary-hover-fg);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg)}button{--post-nav-item-border-width:1px;width:100%;-ms-flex-pack:start;justify-content:start;position:relative;padding:12px 12px calc(12px - var(--post-nav-item-border-width)) 8px;gap:16px;border-radius:0;line-height:1.5;outline-color:currentColor !important;border-bottom:var(--post-nav-item-border-width) solid currentColor;height:100%}button:hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);color:var(--post-scheme-color-interactive-button-primary-hover-fg);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg);border-bottom-color:rgba(0,0,0,0)}button:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){-webkit-box-shadow:none;box-shadow:none}button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;outline:none !important}button:is(:focus-visible,:has(:focus-visible),.pretend-focus)::after{content:"";position:absolute;inset:calc(-1*var(--post-device-spacing-padding-28));border-width:var(--post-device-border-width-focus);border-style:var(--post-core-border-style-solid);border-color:var(--post-scheme-color-interactive-focus-stroke);border-radius:var(--post-device-border-radius-focus);pointer-events:none}button:is(:focus-visible,:has(:focus-visible),.pretend-focus):hover::after{border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}button:is(:focus-visible,:has(:focus-visible),.pretend-focus):is([aria-current],[aria-pressed=true],[aria-expanded=true],.active)::after{border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;outline:none !important}button:is(:focus-visible,:focus-within,.pretend-focus)::after{content:"";position:absolute;inset:calc(-1*var(--post-device-spacing-padding-28));border-width:var(--post-device-border-width-focus);border-style:var(--post-core-border-style-solid);border-color:var(--post-scheme-color-interactive-focus-stroke);border-radius:var(--post-device-border-radius-focus);pointer-events:none}button:is(:focus-visible,:focus-within,.pretend-focus):hover::after{border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}button:is(:focus-visible,:focus-within,.pretend-focus):is([aria-current],[aria-pressed=true],[aria-expanded=true],.active)::after{border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}button>post-icon:where(:last-child){-webkit-margin-start:auto;margin-inline-start:auto}@media screen and (min-width: 0)and (max-width: 599.98px){button{padding:9.5px 12px calc(9.5px - var(--post-nav-item-border-width)) 8px;gap:8px;font-size:.875rem}button>post-icon{font-size:1rem}}@media screen and (min-width: 600px)and (max-width: 1023.98px){button>post-icon{font-size:1.5rem}}@media screen and (min-width: 1024px){button{padding:16px 12px;gap:8px;border-bottom:0}}:host{position:relative;display:inline-block}button post-icon{-webkit-transition:-webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}button:is([aria-current],[aria-pressed=true],[aria-expanded=true]) post-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}button>span{position:relative}button>span>span[aria-hidden]{font-weight:700;visibility:hidden}button>span>span[aria-hidden]:where(span:empty+*){visibility:visible}button>span>span:not([aria-hidden]){position:absolute;inset:0}@media screen and (min-width: 1024px){button:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){font-weight:700}button[aria-expanded=true]{background-color:#f0efed;color:#050400;z-index:2}button[aria-expanded=true]:hover{-webkit-box-shadow:inset 0 -0.7px 0 0 #f0efed;box-shadow:inset 0 -0.7px 0 0 #f0efed}button[aria-expanded=true]{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}button[aria-expanded=true]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}button[aria-expanded=true]:is(:focus-visible,:has(:focus-visible),.pretend-focus)::after{border-color:var(--post-scheme-color-interactive-focus-stroke)}}@media screen and (min-width: 1024px)and (forced-colors: active),screen and (min-width: 1024px)and (-ms-high-contrast: active),screen and (min-width: 1024px)and (-ms-high-contrast: white-on-black){button[aria-expanded=true]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@media screen and (min-width: 1024px){@supports not selector(:has(:focus-visible)){button[aria-expanded=true]:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}button[aria-expanded=true]:is(:focus-visible,:focus-within,.pretend-focus)::after{border-color:var(--post-scheme-color-interactive-focus-stroke)}@media screen and (min-width: 1024px)and (forced-colors: active),screen and (min-width: 1024px)and (-ms-high-contrast: active),screen and (min-width: 1024px)and (-ms-high-contrast: white-on-black){button[aria-expanded=true]:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}}@media screen and (max-width: 1023.98px){button post-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-transform:rotate(-90deg) !important;transform:rotate(-90deg) !important}}';export{d as post_megadropdown_trigger}
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,e,o,r){function n(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function c(t){try{s(r["throw"](t))}catch(t){i(t)}}function s(t){t.done?o(t.value):n(t.value).then(a,c)}s((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=c(0),a["throw"]=c(1),a["return"]=c(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(o=0)),o)try{if(r=1,n&&(i=c[0]&2?n["return"]:c[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;if(n=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:o.label++;return{value:c[1],done:false};case 5:o.label++;n=c[1];c=[0];continue;case 7:c=o.ops.pop();o.trys.pop();continue;default:if(!(i=o.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){o=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(c[0]===6&&o.label<i[1]){o.label=i[1];i=c;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(c);break}if(i[2])o.ops.pop();o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t];n=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-BYB4z0RW.system.js","./p-MZb_boDk.system.js","./p-CiwQnVr3.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,o,r,n,i,a,c;return{setters:[function(t){e=t.r;o=t.h;r=t.H;n=t.g},function(t){i=t.P},function(t){a=t.v},function(t){c=t.O},null],execute:function(){var s=function(){return':host{display:none}:host([open]){display:contents}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer{--post-current-bg:var(--post-scheme-color-surface-accent-bg);--post-current-fg:var(--post-scheme-color-surface-accent-fg);--post-popovercontainer-arrow-border-width:var(--post-device-border-width-alternative1);--post-popovercontainer-arrow-border-color:var(--post-scheme-color-surface-accent-fg)}post-popovercontainer::part(post-popovercontainer-border-mask){display:block;-webkit-box-shadow:inset 0 0 0 var(--post-device-spacing-padding-14) var(--post-scheme-color-surface-accent-bg);box-shadow:inset 0 0 0 var(--post-device-spacing-padding-14) var(--post-scheme-color-surface-accent-bg)}post-popovercontainer::part(post-popovercontainer-content){border:var(--post-device-border-width-alternative1) solid var(--post-scheme-color-surface-accent-fg);border-radius:var(--post-device-border-radius-1);padding:var(--post-device-spacing-padding-14) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-9);max-width:var(--post-tooltip-max-width, 280px);word-wrap:break-word;white-space:normal}'};var u=undefined&&undefined.__decorate||function(t,e,o,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,o):r,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")i=Reflect.decorate(t,e,o,r);else for(var c=t.length-1;c>=0;c--)if(a=t[c])i=(n<3?a(i):n>3?a(e,o,i):a(e,o))||i;return n>3&&i&&Object.defineProperty(e,o,i),i};var f=t("post_tooltip",function(){function t(t){e(this,t);this.placement="top";this.arrow=false;this.open=false}t.prototype.componentDidLoad=function(){if(!this.host.id){console.error("No id set: <post-tooltip> must have an id, linking it to it's target element with a <post-tooltip-trigger> element.")}};t.prototype.show=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(this.open)return[2];return[4,this.popoverRef.show(t)];case 1:e.sent();return[2]}}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.popoverRef.hide();return[2]}))}))};t.prototype.toggle=function(t,e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){this.popoverRef.toggle(t,e);return[2]}))}))};t.prototype.handleBeforeToggle=function(t){this.open=t.detail.willOpen};t.prototype.render=function(){var t=this;var e="".concat(this.arrow?"has-arrow":"");return o(r,{key:"1510f7ec123b7bfaa39cc348a6b496a9051163ea","data-version":a},o("post-popovercontainer",{key:"004baf52684bfed3b8af77f773c9487d3b776fa9",safeSpace:"trapezoid",class:e,role:"tooltip",arrow:this.arrow,placement:this.placement,autoHide:true,onPostBeforeToggle:function(e){return t.handleBeforeToggle(e)},ref:function(e){return t.popoverRef=e}},o("slot",{key:"182f95928a4f70c747073e4585c18cab5f0eb277"})))};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());u([c(i)],f.prototype,"placement",void 0);f.style=s()}}}));
@@ -1 +1 @@
1
- System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js"],(function(t){"use strict";var e,n,r,i,o;return{setters:[function(t){e=t.r;n=t.h;r=t.H;i=t.g},function(t){o=t.v}],execute:function(){var a=function(){return":host{display:block;cursor:pointer;outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-within){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-within){outline-color:Highlight !important}}"};var s=["a","button","input","select","textarea","label","fieldset","optgroup","option"].join(",");var c=["a","label[for]",'input[type="checkbox"]','input[type="radio"]'].join(",");function u(t){var e=t.closest("fieldset");if(e&&e.disabled)return true;return"disabled"in t&&Boolean(t.disabled)}var f=t("post_linkarea",function(){function t(t){e(this,t)}t.prototype.getDirectTarget=function(t){for(var e=0,n=t.composedPath();e<n.length;e++){var r=n[e];if(r instanceof HTMLSlotElement)break;if(r===this.host)break;if(r instanceof HTMLElement&&r.matches(s)){return r}}return null};t.prototype.getDelegateTarget=function(){return this.host.querySelector(c)};t.prototype.dispatchClick=function(t){var e=this.getDirectTarget(t);if(e&&!u(e))return;var n=this.getDelegateTarget();if(!n||u(n))return;var r=t.ctrlKey,i=t.shiftKey,o=t.altKey,a=t.metaKey,s=t.button;n.dispatchEvent(new MouseEvent("click",{cancelable:true,bubbles:true,ctrlKey:r,shiftKey:i,altKey:o,metaKey:a,button:s}))};t.prototype.render=function(){var t=this;return n(r,{key:"aa721ba7506fefd66348e09fd17ce828dec89050","data-version":o,onClick:function(e){return t.dispatchClick(e)}},n("slot",{key:"1ad85663662fc0f6c877ff88a6570ff4d4b1fa33"}))};Object.defineProperty(t.prototype,"host",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());f.style=a()}}}));
1
+ System.register(["./p-CN_0KCBp.system.js","./p-MZb_boDk.system.js"],(function(t){"use strict";var e,n,r,o,i;return{setters:[function(t){e=t.r;n=t.h;r=t.H;o=t.g},function(t){i=t.v}],execute:function(){var a=function(){return":host{display:block;cursor:pointer;outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-within){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-within){outline-color:Highlight !important}}"};var c=["a","button","input","select","textarea","label","fieldset","optgroup","option"].join(",");var s=["a","label[for]",'input[type="checkbox"]','input[type="radio"]'].join(",");function u(t){var e=t.closest("fieldset");if(e&&e.disabled)return true;return"disabled"in t&&Boolean(t.disabled)}var f=t("post_linkarea",function(){function t(t){e(this,t)}t.prototype.getDirectTarget=function(t){for(var e=0,n=t.composedPath();e<n.length;e++){var r=n[e];if(r instanceof HTMLSlotElement)break;if(r===this.host)break;if(r instanceof HTMLElement&&r.matches(c)){return r}}return null};t.prototype.getDelegateTarget=function(){return this.host.querySelector(s)};t.prototype.dispatchClick=function(t){var e=this.getDirectTarget(t);if(e&&!u(e))return;var n=this.getDelegateTarget();if(!n||u(n))return;var r=t.ctrlKey,o=t.shiftKey,i=t.altKey,a=t.metaKey,c=t.button;n.dispatchEvent(new MouseEvent("click",{cancelable:true,bubbles:true,ctrlKey:r,shiftKey:o,altKey:i,metaKey:a,button:c}))};t.prototype.render=function(){var t=this;return n(r,{key:"a1ab65608098bc992cd70f98a1c60cecd00f43c5","data-version":i,onClick:function(e){return t.dispatchClick(e)}},n("slot",{key:"f3042050a7075daa1e5cc35664bde6aa6bfcdac1"}))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());f.style=a()}}}));
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as i,g as o}from"./p-h3opCZqH.js";import{v as s}from"./p-Ny5VnydI.js";import{t as a}from"./p-bR8vy6-s.js";import{n as r}from"./p-8LXe8Zt_.js";import{c as n}from"./p-lpWRZjJp.js";import{R as c}from"./p-DvaRK2lz.js";import{U as d}from"./p-C6RsLT58.js";import{T as l}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";var b=function(t,e,i,o){var s,a=arguments.length,r=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(r=(a<3?s(r):a>3?s(e,i,r):s(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};const u=class{constructor(e){t(this,e),this.debounceUpdateCollapsedItems=a(50,this.updateCollapsedItems.bind(this)),this.resizeObserver=new ResizeObserver(this.debounceUpdateCollapsedItems),this.mutationObserver=new MutationObserver(this.updateHiddenNav.bind(this)),this.loaded=!1,this.collapsed=0,this.nav=null,this.hiddenNav=null}componentWillLoad(){this.id=this.host.id||`b${r(6)}`}async componentDidLoad(){this.resizeObserver?.observe(document.body),this.mutationObserver?.observe(this.host,{childList:!0,characterData:!0,subtree:!0}),await this.updateHiddenNav(),await this.updateCollapsedItems(),this.loaded=!0}disconnectedCallback(){this.resizeObserver?.disconnect(),this.mutationObserver?.disconnect(),this.debounceUpdateCollapsedItems.cancel()}async updateCollapsedItems(){this.nav&&(this.collapsed=await this.calculateCollapsedItems())}async calculateCollapsedItems(){const t=this.host.querySelectorAll("post-breadcrumb-item"),e=await this.calculateOverflowingItems();return Math.max(e,t.length-6)}async calculateOverflowingItems(){if(!this.hiddenNav)return 0;const t=Number.parseFloat(getComputedStyle(this.hiddenNav.firstElementChild).gap),e=this.hiddenNav.querySelector(".menu").clientWidth,i=Array.from(this.hiddenNav.querySelectorAll("post-breadcrumb-item")).slice(0,-1);let o=this.hiddenNav.scrollWidth-e+t,s=0;for(;s<i.length&&o>this.hiddenNav.clientWidth;)0===s&&(o+=e),o-=i[s++].clientWidth+t;return s}updateItems(t,e){t.forEach(((i,o)=>{i.setAttribute("variant",o<e?"menuitem":"listitem"),i.setAttribute("selected",String(o===t.length-1)),i.setAttribute("standalone",String(o===t.length-1&&o===e))}))}async updateHiddenNav(){this.hiddenNav?.remove(),this.hiddenNav=await this.renderHiddenNav()}async renderHiddenNav(){const t=this.host.shadowRoot;if(!t||!this.nav)return null;const e=this.nav.cloneNode(!0),i=e.querySelectorAll("slot");this.nav.querySelectorAll("slot").forEach(((t,e)=>{const o=i[e];t.assignedElements().forEach((t=>{o.insertAdjacentElement("beforebegin",t.cloneNode(!0))})),o.remove()})),e.classList.remove("loading"),e.classList.add("invisible"),e.querySelector(".menu").classList.remove("empty"),t.append(e);const o=e.querySelectorAll("post-breadcrumb-item");return await Promise.all(Array.from(o).map((t=>n(t)))),this.updateItems(o,0),e}renderMenu(){const t=`${this.id}-menu`;return e("div",{class:"breadcrumb-item menu "+(0===this.collapsed?"empty":""),role:"listitem"},e("post-menu-trigger",{for:t},e("button",null,e("span",{class:"visually-hidden"},this.textMoreItems),e("span",{"aria-hidden":"true"},"..."))),e("post-menu",{id:t,label:this.textMoreItems,placement:"bottom-start"},e("slot",{name:"menu"})))}render(){if(this.loaded){const t=this.host.querySelectorAll("post-breadcrumb-item");this.updateItems(t,this.collapsed)}return e(i,{key:"501384cb07b2deac87a21800fc4d39d695747341","data-version":s},e("nav",{key:"20aa57da865967458169544dec75d975926eb675","aria-label":this.textBreadcrumbs,ref:t=>this.nav=t,class:this.loaded?"":"loading"},e("div",{key:"cf8f21f2ee9de01bac0edf9379ba5c183b938d70",role:"list"},e("div",{key:"9bd29a83cb976d67f3c6ea24cf23b2a07e40ca84",class:"breadcrumb-item home",role:"listitem"},e("a",{key:"675638668994f074951491040c6043819e6f7282",href:this.homeUrl},e("span",{key:"3ce1f8ea5ba5738925bff000ec5a8c32603ae963",class:"visually-hidden"},this.textHome),e("post-icon",{key:"1b35b22788d4e70c948e1067d99265e8af9c74e7","aria-hidden":"true",name:"home"}))),this.renderMenu(),e("slot",{key:"f7fe7cd0b16a9064aba28149756f785c47133351"}),e("slot",{key:"c62ce84877203586c184e1adaea1ecb6ed8a0912",name:"selected"}))))}get host(){return o(this)}};b([c(),d()],u.prototype,"homeUrl",void 0),b([c(),l("string")],u.prototype,"textHome",void 0),b([c(),l("string")],u.prototype,"textBreadcrumbs",void 0),b([c(),l("string")],u.prototype,"textMoreItems",void 0),u.style=':host{display:block;position:relative}nav{max-width:100%}nav.invisible{overflow:hidden;visibility:hidden;position:absolute;inset:0}nav.loading>div>:not(.home){display:none}[role=list]{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;gap:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item :is(button,a){display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;overflow:hidden;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item :is(button,a):not(:disabled):hover{text-decoration:none}.breadcrumb-item :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.breadcrumb-item :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a){border-width:1px !important;-webkit-transition:none;transition:none}.breadcrumb-item :is(button,a):is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}.breadcrumb-item :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item::before{-webkit-mask-image:var(--post-icon-chevronright);mask-image:var(--post-icon-chevronright);background-color:currentColor;-ms-flex:0 0 auto;flex:0 0 auto;content:"";display:block;height:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}.home{padding-block:var(--post-device-spacing-padding-47)}.home::before{content:unset}.home post-icon{width:var(--post-device-sizing-interactive-icon-size2);height:var(--post-device-sizing-interactive-icon-size2)}.menu{-webkit-margin-end:calc(-1*var(--post-device-spacing-gap-inline-4));margin-inline-end:calc(-1*var(--post-device-spacing-gap-inline-4))}.menu.empty{display:none}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{u as post_breadcrumbs}
@@ -1 +1 @@
1
- import{r as o,h as e,H as t,g as i}from"./p-h3opCZqH.js";import{v as s}from"./p-D9jUbrFT.js";import{U as c}from"./p-C6RsLT58.js";import"./p-vAzHgwTd.js";const r=class{constructor(e){o(this,e)}componentDidLoad(){this.checkDescription()}checkDescription(){this.host.textContent||console.warn("Be sure to add descriptive text in the post-logo to ensure good accessibility of the component.")}render(){const o=this.url&&("string"==typeof this.url?this.url:this.url.href);return e(t,{key:"84ece8e71d7dec66aa634d9a8a37d6bf3197c1b6","data-version":s},e(o?"a":"span",{key:"1531c6e8f32d42e63f5482d2983f18e4c9a23b1a",class:"logo "+(o?"logo-link":""),...o?{href:o}:{}},e("span",{key:"d45d33329e30de0de9de56f2d588995a7f97d01e",class:"description"},e("slot",{key:"e8665c8d739dc2a2968bf1193c26ba1d1e731b38",onSlotchange:()=>this.checkDescription()})),e("svg",{key:"bb3f534952e29e2e43816c5a5dd55541d05bee26",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72","aria-hidden":"true"},e("g",{key:"9ca05c263f6c9f41cc5406ccfd030a713ffe0254",id:"Logo"},e("rect",{key:"30a59adc0eec11af2d90180da1f5a95b03175d21",fill:"#ffcc00",x:"0",y:"0",width:"72",height:"72"}),e("polygon",{key:"b1cbe7c575d36cf26a1cc41c9124625c2d1e5ef1",fill:"#ff0000",points:"34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3"}),e("path",{key:"398027f23c8c9a4cf2bc7f8d7c8aa4ec0466f0be",d:"M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z"})))))}get host(){return i(this)}};(function(o,e,t,i){var s,c=arguments.length,r=c<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(c<3?s(r):c>3?s(e,t,r):s(e,t))||r);c>3&&r&&Object.defineProperty(e,t,r)})([c()],r.prototype,"url",void 0),r.style=":host,.logo{display:inline-block}:host,:host .logo>svg,.logo,.logo .logo>svg{height:100%}.description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.logo-link{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.logo-link{outline-offset:var(--post-device-spacing-padding-28) !important}.logo-link:focus,.logo-link:focus-visible{border-radius:var(--post-device-border-radius-focus)}";export{r as post_logo}
1
+ import{r as o,h as e,H as t,g as i}from"./p-h3opCZqH.js";import{v as s}from"./p-Ny5VnydI.js";import{U as c}from"./p-C6RsLT58.js";import"./p-vAzHgwTd.js";const r=class{constructor(e){o(this,e)}componentDidLoad(){this.checkDescription()}checkDescription(){this.host.textContent||console.warn("Be sure to add descriptive text in the post-logo to ensure good accessibility of the component.")}render(){const o=this.url&&("string"==typeof this.url?this.url:this.url.href);return e(t,{key:"dd8ddb0dcbed8062ee5adecf2a26ad98b42c94b1","data-version":s},e(o?"a":"span",{key:"f4d8ad34cdd455c3e2096ce26db7bc775d7e05c3",class:"logo "+(o?"logo-link":""),...o?{href:o}:{}},e("span",{key:"87a58c2904f3dae5406b5652787ca1d99dbda0dc",class:"description"},e("slot",{key:"ae69c86c4bfed42b25aafa948f13989c31833466",onSlotchange:()=>this.checkDescription()})),e("svg",{key:"e51164151a1a53971414ea37af5085f99575fc36",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72","aria-hidden":"true"},e("g",{key:"fa946d3ded62128ca4469b160103b464eb59329b",id:"Logo"},e("rect",{key:"18424ee0ca3256f9169d8dac6223df3d49cb09b9",fill:"#ffcc00",x:"0",y:"0",width:"72",height:"72"}),e("polygon",{key:"96381aeedbc8536fd551ec8ac4161db842b3bfc9",fill:"#ff0000",points:"34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3"}),e("path",{key:"c1bbdb1bb687390d59ec2e6dcf83e80d1606582f",d:"M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z"})))))}get host(){return i(this)}};(function(o,e,t,i){var s,c=arguments.length,r=c<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(c<3?s(r):c>3?s(e,t,r):s(e,t))||r);c>3&&r&&Object.defineProperty(e,t,r)})([c()],r.prototype,"url",void 0),r.style=":host,.logo{display:inline-block}:host,:host .logo>svg,.logo,.logo .logo>svg{height:100%}.description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.logo-link{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.logo-link{outline-offset:var(--post-device-spacing-padding-28) !important}.logo-link:focus,.logo-link:focus-visible{border-radius:var(--post-device-border-radius-focus)}";export{r as post_logo}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e,g as o}from"./p-h3opCZqH.js";import{v as a}from"./p-Ny5VnydI.js";import{d as n}from"./p-C9hMpmsD.js";import{R as h}from"./p-DvaRK2lz.js";import{T as r}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const c=class{constructor(s){t(this,s),this.postFilteringEvent=i(this,"postFilteringEvent"),this.debouncedHandleInput=n((t=>{this.handleInput(t)}),250),this.filterThreshold=0,this.clearable=!1,this.expanded=!1,this.lastQuery="",this.selectedValue=null,this.handleClick=async()=>{await this.runQuery("",!0)},this.handleBlur=()=>{this.restoreSelectedValue(),this.hideListBox()},this.handleInput=async t=>{if(!this.listBoxElement)return;const i=t.target.value.trim();await this.runQuery(i.length>=this.filterThreshold?i:"")},this.handleKeyDown=t=>{const{key:i,altKey:s}=t;switch(i){case"ArrowDown":t.preventDefault(),this.showListBox(),s||this.listBoxElement.navigate("down");break;case"ArrowUp":t.preventDefault(),this.listBoxElement.navigate("up");break;case"Enter":if(this.listBoxElement.hidden)return;t.preventDefault(),this.listBoxElement.selectActive(),this.hideListBox();break;case"Escape":this.hideListBox();break;case"Tab":this.listBoxElement.selectActive(),this.hideListBox();break;case"Home":t.preventDefault(),this.listBoxElement.navigate("first");break;case"End":t.preventDefault(),this.listBoxElement.navigate("last")}},this.handleOptionSelected=t=>{this.updateSelectedValue(t.detail),this.hideListBox()},this.handleOptionActive=t=>{const i=t.detail;i?this.inputElement.setAttribute("aria-activedescendant",i):this.inputElement.removeAttribute("aria-activedescendant")},this.handleClear=()=>{this.inputElement&&(this.updateSelectedValue(null),this.listBoxElement.clearSelection(),this.hideListBox())}}get inputElement(){return this.host.querySelector("input")}get listBoxElement(){return this.listbox?document.getElementById(this.listbox):this.host.querySelector("post-listbox")}componentWillLoad(){if(!this.inputElement)return;if(this.inputElement.role="combobox",this.inputElement.ariaAutoComplete="list",!this.listBoxElement)return;this.listBoxElement.id||(this.listBoxElement.id=crypto.randomUUID()),this.inputElement.setAttribute("aria-controls",this.listBoxElement.id),this.inputElement.setAttribute("aria-expanded","false");const t=this.inputElement.labels?.[0];t&&(t.id||(t.id=crypto.randomUUID()),this.listBoxElement.setAttribute("aria-labelledby",t.id)),this.inputElement.autocomplete="off",this.attachInputListeners(),this.attachListboxListeners()}disconnectedCallback(){this.detachInputListeners(),this.detachListboxListeners()}attachInputListeners(){this.inputElement&&(this.inputElement.addEventListener("input",this.debouncedHandleInput),this.inputElement.addEventListener("keydown",this.handleKeyDown),this.inputElement.addEventListener("blur",this.handleBlur),this.inputElement.addEventListener("click",this.handleClick))}detachInputListeners(){this.inputElement&&(this.inputElement.removeEventListener("input",this.debouncedHandleInput),this.inputElement.removeEventListener("keydown",this.handleKeyDown),this.inputElement.removeEventListener("blur",this.handleBlur),this.inputElement.removeEventListener("click",this.handleClick))}attachListboxListeners(){this.listBoxElement&&(this.listBoxElement.addEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.addEventListener("postOptionActive",this.handleOptionActive))}detachListboxListeners(){this.listBoxElement&&(this.listBoxElement.removeEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.removeEventListener("postOptionActive",this.handleOptionActive))}clearAnnouncement(){this.outputElement&&(this.outputElement.textContent="")}announceCount(){if(!this.outputElement||!this.listBoxElement)return;const t=this.listBoxElement.querySelectorAll("post-listbox-option:not([hidden])").length;this.outputElement.textContent=this.textAvailableSuggestions.replace("{count}",String(t))}async showListBox(){await this.listBoxElement.show(),this.expanded=!0,this.inputElement.ariaExpanded="true",this.host.setAttribute("open",""),this.announceCount()}async hideListBox(){this.clearAnnouncement(),this.expanded=!1,this.host.removeAttribute("open"),this.inputElement.ariaExpanded="false",this.inputElement.removeAttribute("aria-activedescendant"),await this.listBoxElement.hide()}updateSelectedValue(t){this.selectedValue=t,this.inputElement.value=this.selectedValue??""}restoreSelectedValue(){this.inputElement.value=this.selectedValue??""}async runQuery(t,i=!1){this.lastQuery!==(this.lastQuery=t)&&await this.filterListBox(t),this.expanded?this.announceCount():(i||t)&&await this.showListBox()}async filterListBox(t){this.postFilteringEvent.emit(t).defaultPrevented||await(this.listBoxElement?.filter(t))}render(){return s(e,{key:"8b386930fe5484cd73395224b5f0c5daea867b33","data-version":a},s("slot",{key:"9aa5a34de2cf18c3d6342069fc2b4ce52baac0d3"}),this.clearable&&null!==this.selectedValue&&s("button",{key:"90b459fffc29066667ca4656b6871275d061d3fd",type:"button",class:"autocomplete-clear",onClick:this.handleClear},s("post-icon",{key:"419de2b608f1638b14aed086f8e2c6064ae634bc","aria-hidden":"true",name:"closex"})),s("post-icon",{key:"56b7dd986023a0e46d902020b923ae525c88bef1","aria-hidden":"true",class:"autocomplete-icon",name:"chevronDown"}),s("output",{key:"6ef02d0baf03c7f562ba6d5c95918e4a7ae1214f",class:"visually-hidden",ref:t=>this.outputElement=t}))}get host(){return o(this)}};(function(t,i,s,e){var o,a=arguments.length,n=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var h=t.length-1;h>=0;h--)(o=t[h])&&(n=(a<3?o(n):a>3?o(i,s,n):o(i,s))||n);a>3&&n&&Object.defineProperty(i,s,n)})([h(),r("string")],c.prototype,"textAvailableSuggestions",void 0),c.style=":host{position:relative;display:block}.autocomplete-icon,.autocomplete-clear{position:absolute;inset-block-start:16px}@media screen and (min-width: 780px){.autocomplete-icon,.autocomplete-clear{inset-block-start:20px}}.autocomplete-icon{inset-inline-end:16px;width:24px;height:24px;pointer-events:none;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out, -webkit-transform .2s ease-in-out}:host([open]) .autocomplete-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.autocomplete-clear{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;inset-inline-end:42px;background:none;border:none;cursor:pointer}.autocomplete-clear>post-icon{width:20px;height:20px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";export{c as post_autocomplete}
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,i,e,n){function o(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n["throw"](t))}catch(t){r(t)}}function c(t){t.done?e(t.value):o(t.value).then(s,a)}c((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=a(0),s["throw"]=a(1),s["return"]=a(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(i){return c([t,i])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(e=0)),e)try{if(n=1,o&&(r=a[0]&2?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;o=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(r=e.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){e.label=a[1];break}if(a[0]===6&&e.label<r[1]){e.label=r[1];r=a;break}if(r&&e.label<r[2]){e.label=r[2];e.ops.push(a);break}if(r[2])e.ops.pop();e.trys.pop();continue}a=i.call(t,e)}catch(t){a=[6,t];o=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-MZb_boDk.system.js","./p-CDvD7acy.system.js","./p-Bwi1IyPf.system.js","./p-C6zfwDtv.system.js","./p-D4wq7hIE.system.js","./p-qZj3hjL-.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var i,e,n,o,r,s,a,c,u,d,l;return{setters:[function(t){i=t.r;e=t.h;n=t.H;o=t.g},function(t){r=t.v},function(t){s=t.t},function(t){a=t.n},function(t){c=t.c},function(t){u=t.R},function(t){d=t.U},function(t){l=t.T},null],execute:function(){var b=function(){return':host{display:block;position:relative}nav{max-width:100%}nav.invisible{overflow:hidden;visibility:hidden;position:absolute;inset:0}nav.loading>div>:not(.home){display:none}[role=list]{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;gap:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item :is(button,a){display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;overflow:hidden;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item :is(button,a):not(:disabled):hover{text-decoration:none}.breadcrumb-item :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.breadcrumb-item :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a){border-width:1px !important;-webkit-transition:none;transition:none}.breadcrumb-item :is(button,a):is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}.breadcrumb-item :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item::before{-webkit-mask-image:var(--post-icon-chevronright);mask-image:var(--post-icon-chevronright);background-color:currentColor;-ms-flex:0 0 auto;flex:0 0 auto;content:"";display:block;height:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}.home{padding-block:var(--post-device-spacing-padding-47)}.home::before{content:unset}.home post-icon{width:var(--post-device-sizing-interactive-icon-size2);height:var(--post-device-sizing-interactive-icon-size2)}.menu{-webkit-margin-end:calc(-1*var(--post-device-spacing-gap-inline-4));margin-inline-end:calc(-1*var(--post-device-spacing-gap-inline-4))}.menu.empty{display:none}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}'};var h=undefined&&undefined.__decorate||function(t,i,e,n){var o=arguments.length,r=o<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,e):n,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,i,e,n);else for(var a=t.length-1;a>=0;a--)if(s=t[a])r=(o<3?s(r):o>3?s(i,e,r):s(i,e))||r;return o>3&&r&&Object.defineProperty(i,e,r),r};var g=6;var m=50;var v=t("post_breadcrumbs",function(){function t(t){i(this,t);this.debounceUpdateCollapsedItems=s(m,this.updateCollapsedItems.bind(this));this.resizeObserver=new ResizeObserver(this.debounceUpdateCollapsedItems);this.mutationObserver=new MutationObserver(this.updateHiddenNav.bind(this));this.loaded=false;this.collapsed=0;this.nav=null;this.hiddenNav=null}t.prototype.componentWillLoad=function(){this.id=this.host.id||"b".concat(a(6))};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(e){switch(e.label){case 0:(t=this.resizeObserver)===null||t===void 0?void 0:t.observe(document.body);(i=this.mutationObserver)===null||i===void 0?void 0:i.observe(this.host,{childList:true,characterData:true,subtree:true});return[4,this.updateHiddenNav()];case 1:e.sent();return[4,this.updateCollapsedItems()];case 2:e.sent();this.loaded=true;return[2]}}))}))};t.prototype.disconnectedCallback=function(){var t,i;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect();(i=this.mutationObserver)===null||i===void 0?void 0:i.disconnect();this.debounceUpdateCollapsedItems.cancel()};t.prototype.updateCollapsedItems=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:if(!this.nav)return[2];t=this;return[4,this.calculateCollapsedItems()];case 1:t.collapsed=i.sent();return[2]}}))}))};t.prototype.calculateCollapsedItems=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(e){switch(e.label){case 0:t=this.host.querySelectorAll("post-breadcrumb-item");return[4,this.calculateOverflowingItems()];case 1:i=e.sent();return[2,Math.max(i,t.length-g)]}}))}))};t.prototype.calculateOverflowingItems=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,e,n,o;return __generator(this,(function(r){if(!this.hiddenNav)return[2,0];t=Number.parseFloat(getComputedStyle(this.hiddenNav.firstElementChild).gap);i=this.hiddenNav.querySelector(".menu").clientWidth;e=Array.from(this.hiddenNav.querySelectorAll("post-breadcrumb-item")).slice(0,-1);n=this.hiddenNav.scrollWidth-i+t;o=0;while(o<e.length&&n>this.hiddenNav.clientWidth){if(o===0)n+=i;n-=e[o++].clientWidth+t}return[2,o]}))}))};t.prototype.updateItems=function(t,i){t.forEach((function(e,n){e.setAttribute("variant",n<i?"menuitem":"listitem");e.setAttribute("selected",String(n===t.length-1));e.setAttribute("standalone",String(n===t.length-1&&n===i))}))};t.prototype.updateHiddenNav=function(){return __awaiter(this,void 0,void 0,(function(){var t;var i;return __generator(this,(function(e){switch(e.label){case 0:(i=this.hiddenNav)===null||i===void 0?void 0:i.remove();t=this;return[4,this.renderHiddenNav()];case 1:t.hiddenNav=e.sent();return[2]}}))}))};t.prototype.renderHiddenNav=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,e,n;return __generator(this,(function(o){switch(o.label){case 0:t=this.host.shadowRoot;if(!t||!this.nav)return[2,null];i=this.nav.cloneNode(true);e=i.querySelectorAll("slot");this.nav.querySelectorAll("slot").forEach((function(t,i){var n=e[i];t.assignedElements().forEach((function(t){n.insertAdjacentElement("beforebegin",t.cloneNode(true))}));n.remove()}));i.classList.remove("loading");i.classList.add("invisible");i.querySelector(".menu").classList.remove("empty");t.append(i);n=i.querySelectorAll("post-breadcrumb-item");return[4,Promise.all(Array.from(n).map((function(t){return c(t)})))];case 1:o.sent();this.updateItems(n,0);return[2,i]}}))}))};t.prototype.renderMenu=function(){var t="".concat(this.id,"-menu");return e("div",{class:"breadcrumb-item menu ".concat(this.collapsed===0?"empty":""),role:"listitem"},e("post-menu-trigger",{for:t},e("button",null,e("span",{class:"visually-hidden"},this.textMoreItems),e("span",{"aria-hidden":"true"},"..."))),e("post-menu",{id:t,label:this.textMoreItems,placement:"bottom-start"},e("slot",{name:"menu"})))};t.prototype.render=function(){var t=this;if(this.loaded){var i=this.host.querySelectorAll("post-breadcrumb-item");this.updateItems(i,this.collapsed)}return e(n,{key:"501384cb07b2deac87a21800fc4d39d695747341","data-version":r},e("nav",{key:"20aa57da865967458169544dec75d975926eb675","aria-label":this.textBreadcrumbs,ref:function(i){return t.nav=i},class:this.loaded?"":"loading"},e("div",{key:"cf8f21f2ee9de01bac0edf9379ba5c183b938d70",role:"list"},e("div",{key:"9bd29a83cb976d67f3c6ea24cf23b2a07e40ca84",class:"breadcrumb-item home",role:"listitem"},e("a",{key:"675638668994f074951491040c6043819e6f7282",href:this.homeUrl},e("span",{key:"3ce1f8ea5ba5738925bff000ec5a8c32603ae963",class:"visually-hidden"},this.textHome),e("post-icon",{key:"1b35b22788d4e70c948e1067d99265e8af9c74e7","aria-hidden":"true",name:"home"}))),this.renderMenu(),e("slot",{key:"f7fe7cd0b16a9064aba28149756f785c47133351"}),e("slot",{key:"c62ce84877203586c184e1adaea1ecb6ed8a0912",name:"selected"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());h([u(),d()],v.prototype,"homeUrl",void 0);h([u(),l("string")],v.prototype,"textHome",void 0);h([u(),l("string")],v.prototype,"textBreadcrumbs",void 0);h([u(),l("string")],v.prototype,"textMoreItems",void 0);v.style=b()}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-CN_0KCBp.system.js","./p-MZb_boDk.system.js"],(function(t){"use strict";var e,o,n;return{setters:[function(t){e=t.r;o=t.g},function(t){n=t.v}],execute:function(){var i=function(){return"post-menu-item button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;width:100%}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item button{background-color:ButtonFace !important}post-menu-item button:hover{background-color:Highlight !important}}post-menu-item a{text-decoration:none}post-menu-item button,post-menu-item a{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:8px 12px 8px 16px;gap:12px;font-size:.875rem;color:#050400;border-radius:0}post-menu-item button post-icon,post-menu-item a post-icon{width:16px;height:16px;margin-block:4px}@media screen and (min-width: 780px){post-menu-item button,post-menu-item a{font-size:1rem;padding-block:12px;gap:16px}post-menu-item button post-icon,post-menu-item a post-icon{width:24px;height:24px;margin:0}}@media screen and (min-width: 1024px){post-menu-item button,post-menu-item a{font-size:1.25rem;padding-block:13px}}post-menu-item button:focus-visible,post-menu-item a:focus-visible{outline-offset:2px !important;border-radius:4px}post-menu-item button:hover,post-menu-item a:hover{background-color:#504f4b;color:#fff}"};var s=t("post_menu_item",function(){function t(t){e(this,t)}t.prototype.connectedCallback=function(){this.host.dataset.version=n};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());s.style=i()}}}));
@@ -0,0 +1 @@
1
+ import{r as o,h as e,H as t,g as a}from"./p-h3opCZqH.js";import{v as i}from"./p-Ny5VnydI.js";import{b as s}from"./p-I1j7a0bW.js";import{R as r}from"./p-DvaRK2lz.js";import{T as n}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const d=["grid-1","grid-2","grid-3","grid-4"],p=["prefooter","socialmedia","app","businesssectors","meta","copyright"],l=class{constructor(e){o(this,e),this.device=s.get("device"),this.slotDisplayed={},this.breakpointChange=o=>{this.device=o.detail},this.handleGridSlotChange=this.handleGridSlotChange.bind(this),this.handleSlotChange=this.handleSlotChange.bind(this)}connectedCallback(){globalThis.addEventListener("postBreakpoint:device",this.breakpointChange)}componentWillLoad(){[...d,...p].forEach((o=>{const e=this.host.querySelectorAll(`[slot="${o}"]`);this.updateSlotDisplay(o,e.length>0)}))}disconnectedCallback(){globalThis.removeEventListener("postBreakpoint:device",this.breakpointChange)}handleGridSlotChange(...o){return e=>{o.includes(this.device)&&e.target instanceof HTMLSlotElement&&this.updateSlotDisplay(e.target.name,e.target.assignedElements().length>0)}}handleSlotChange(o){o.target instanceof HTMLSlotElement&&this.updateSlotDisplay(o.target.name,o.target.assignedElements().length>0)}updateSlotDisplay(o,e){this.slotDisplayed[o]!==e&&(this.slotDisplayed={...this.slotDisplayed,[o]:e})}renderAccordion(){return e("post-accordion",{headingLevel:3,multiple:!0},d.map((o=>e("post-accordion-item",{key:o,class:{"d-none":!this.slotDisplayed[o]},collapsed:!0},e("span",{slot:"header"},e("slot",{name:o+"-title"})),e("slot",{onSlotchange:this.handleGridSlotChange("mobile"),name:o})))))}renderColumns(){return d.map((o=>e("div",{key:o,class:{"d-none":!this.slotDisplayed[o]}},e("h3",null,e("slot",{name:o+"-title"})),e("slot",{onSlotchange:this.handleGridSlotChange("tablet","desktop"),name:o}))))}render(){const o=this.slotDisplayed.prefooter,a=this.slotDisplayed.socialmedia,s=this.slotDisplayed.app,r=this.slotDisplayed.businesssectors,n=this.slotDisplayed.meta,p=this.slotDisplayed.copyright,l=d.every((o=>!this.slotDisplayed[o])),c=!l||a||s||r,f=p||n;return e(t,{key:"02edce3d202fefa6fe21a84d1ed97a6ded2d76ce","data-version":i,"data-color-scheme":"light"},e("footer",{key:"7d67c940dc73b6dd16283e7c7a7feeda05f50f80"},e("h2",{key:"1d71a47f631f463c15b7ac02c7574d4f8adbfe2e",class:"visually-hidden"},this.textFooter),e("div",{key:"9fd3d08883d63c8aaccb4c3c32c0c8a81c3f8e1c",class:{prefooter:!0,"d-none":!o}},e("div",{key:"99a6abfe43b586e5486c4ceeff3c7176905ef631",class:"footer-container"},e("slot",{key:"5616b403340d5e2395c0d949926f99c56936b662",onSlotchange:this.handleSlotChange,name:"prefooter"}))),e("div",{key:"d6ccd3988b9951bb0e38fd612eae64a1889427ef",class:{"footer-main":!0,"d-none":!c}},e("div",{key:"4c8880c1dbf366a408402a884e61fe8e1cf45af0",class:"footer-container"},e("div",{key:"a79010da73a749002a25b03052d0427d2dcf6c2e",class:{"footer-grid":!0,"d-none":l}},"mobile"===this.device?this.renderAccordion():this.renderColumns()),e("div",{key:"335efe778d8b8e2c4a9f3eeffd4d60e5ba670ad2",class:{"footer-column":!0,"d-none":!a&&!s}},e("div",{key:"6725d6db6af39a2f2ed4d887a598f262c6314562",class:{"footer-socialmedia":!0,"d-none":!a}},e("slot",{key:"3a2d1c69bc05245842447ac104615f681b02e3a9",onSlotchange:this.handleSlotChange,name:"socialmedia"})),e("div",{key:"38f1a4b8ef975aafb7f4fd90512ea08dc18e3d4c",class:{"footer-app":!0,"d-none":!s}},e("slot",{key:"fbcb201b8ee7b9ac419c7a01e995ce3be7e4acca",onSlotchange:this.handleSlotChange,name:"app"}))),e("div",{key:"76b292642cd8587ffa95277bf43478c785aed594",class:{"footer-businesssectors":!0,"d-none":!r}},e("slot",{key:"9fa3ead24b007de21d2669421f03ab2fd870d64e",onSlotchange:this.handleSlotChange,name:"businesssectors"})))),e("div",{key:"0278475002d8a479936967c06335cc667519a902",class:{"footer-base":!0,"d-none":!f}},e("div",{key:"59d46393b2a04184a6adc445d4b0940f07ad56f8",class:"footer-container"},e("div",{key:"7bbaebdf46638ffa1946e7c5be6970c8a1e586bb",class:{"footer-copyright":!0,"d-none":!p}},e("slot",{key:"c1601db6edc32929d84897330654dbec24bb8543",onSlotchange:this.handleSlotChange,name:"copyright"})),e("div",{key:"1339ee3a91e8f18d757333b74053291080d95e2b",class:{"footer-meta":!0,"d-none":!n}},e("slot",{key:"aa98ffd65b0138b198e057dbd2c96368bf92c0b0",onSlotchange:this.handleSlotChange,name:"meta"}))))))}get host(){return a(this)}};(function(o,e,t,a){var i,s=arguments.length,r=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,e,t,a);else for(var n=o.length-1;n>=0;n--)(i=o[n])&&(r=(s<3?i(r):s>3?i(e,t,r):i(e,t))||r);s>3&&r&&Object.defineProperty(e,t,r)})([r(),n("string")],l.prototype,"textFooter",void 0),l.style=":host{display:block}footer{--post-footer-container-padding-inline:16px;--post-footer-container-max-width:1200px;--post-footer-prefooter-padding-block:16px;--post-footer-grid-template:auto / auto;--post-footer-grid-padding-block:32px;--post-footer-column-flex-direction:column;--post-footer-column-align-items:start;--post-footer-column-gap:0;--post-footer-list-flex-direction:column;--post-footer-list-gap:8px;--post-footer-list-align-items:start;--post-footer-socialmedia-padding-block:16px;--post-footer-app-padding-block:var(--post-footer-socialmedia-padding-block);--post-footer-businesssectors-padding-block:var(--post-footer-socialmedia-padding-block);--post-footer-base-padding-block:var(--post-footer-socialmedia-padding-block);--post-footer-base-gap:8px;--post-footer-meta-font-size:inherit;--post-footer-copyright-font-size:var(--post-footer-meta-font-size)}@media screen and (min-width: 600px){footer{--post-footer-prefooter-padding-block:32px;--post-footer-grid-template:repeat(2, auto) / repeat(2, auto);--post-footer-list-flex-direction:row;--post-footer-list-gap:16px;--post-footer-list-align-items:center;--post-footer-base-gap:4px}}@media screen and (min-width: 780px){footer{--post-footer-container-padding-inline:40px;--post-footer-grid-padding-block:48px;--post-footer-socialmedia-padding-block:24px}}@media screen and (min-width: 1024px){footer{--post-footer-grid-template:auto / repeat(4, auto);--post-footer-column-flex-direction:row;--post-footer-column-align-items:center;--post-footer-column-gap:32px;--post-footer-list-gap:24px;--post-footer-meta-font-size:16px}}:is(h3,.h3){margin:0;font-size:var(--post-device-font-size-6);line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-extra-black);text-wrap:balance}::slotted(ul){list-style:none;padding:0;margin:0}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.footer-container{-webkit-box-sizing:content-box;box-sizing:content-box;margin:0 auto;padding-inline:var(--post-footer-container-padding-inline);max-width:var(--post-footer-container-max-width)}.prefooter{background-color:#fafafa;-webkit-border-before:1px solid #373632;border-block-start:1px solid #373632;padding-block:var(--post-footer-prefooter-padding-block)}.prefooter .footer-container{padding-block:0}.footer-main{background-color:#fc0;-webkit-border-before:1px solid #373632;border-block-start:1px solid #373632}.prefooter:not(.d-none)+.footer-main{-webkit-border-before:unset;border-block-start:unset}.footer-grid{display:grid;grid-template:var(--post-footer-grid-template);gap:32px 24px;padding-block:var(--post-footer-grid-padding-block)}.footer-grid ::part(button),.footer-grid ::part(body){padding-inline:0}.footer-column{display:-ms-flexbox;display:flex;-ms-flex-direction:var(--post-footer-column-flex-direction);flex-direction:var(--post-footer-column-flex-direction);-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:var(--post-footer-column-align-items);align-items:var(--post-footer-column-align-items);-webkit-column-gap:var(--post-footer-column-gap);-moz-column-gap:var(--post-footer-column-gap);column-gap:var(--post-footer-column-gap)}.footer-socialmedia ::slotted(div),.footer-app ::slotted(div),.footer-meta ::slotted(div){display:-ms-flexbox !important;display:flex !important;-ms-flex-direction:var(--post-footer-list-flex-direction) !important;flex-direction:var(--post-footer-list-flex-direction) !important;gap:var(--post-footer-list-gap) !important;-ms-flex-align:var(--post-footer-list-align-items) !important;align-items:var(--post-footer-list-align-items) !important}.footer-socialmedia{padding-block:var(--post-footer-socialmedia-padding-block)}.footer-app{padding-block:var(--post-footer-app-padding-block)}.prefooter ::slotted(div),.footer-businesssectors ::slotted(div){display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;gap:var(--post-footer-list-gap) !important}.footer-businesssectors{padding-block:var(--post-footer-businesssectors-padding-block)}.footer-base{background-color:#fc0;-webkit-border-before:1px solid #373632;border-block-start:1px solid #373632;padding-block:var(--post-footer-base-padding-block);gap:var(--post-footer-base-gap)}.footer-meta{font-size:var(--post-footer-meta-font-size)}.footer-copyright{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;font-size:var(--post-footer-copyright-font-size)}.d-none{display:none}";export{l as post_footer}
@@ -1 +1 @@
1
- System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,i,n,r,s,o,a;return{setters:[function(t){e=t.r;i=t.h;n=t.H;r=t.g},function(t){s=t.v},function(t){o=t.R},function(t){a=t.T},null],execute:function(){var l=function(){return":host{display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;max-width:var(--post-header-content-max-width)}@media screen and (min-width: 1024px){:host{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-margin-start:calc(-1*var(--post-local-header-padding-inline-start));margin-inline-start:calc(-1*var(--post-local-header-padding-inline-start));-webkit-margin-end:calc(-1*var(--post-local-header-padding-inline-end));margin-inline-end:calc(-1*var(--post-local-header-padding-inline-end));overflow:hidden}}nav{-ms-flex:1 1 auto;flex:1 1 auto}@media screen and (min-width: 1024px){nav{scroll-behavior:smooth;max-width:100vw;overflow:hidden;height:var(--post-main-navigation-height)}}.scroll-control{z-index:1;cursor:pointer;padding:1rem;background:#fff;-webkit-box-shadow:var(--post-device-elevation-500);box-shadow:var(--post-device-elevation-500);line-height:1}.scroll-control.scroll-left{-webkit-margin-end:-3rem;margin-inline-end:-3rem}.scroll-control.scroll-right{-webkit-margin-start:-3rem;margin-inline-start:-3rem}.scroll-control.d-none{display:none}.scroll-control post-icon{font-size:1rem}"};var c=undefined&&undefined.__decorate||function(t,e,i,n){var r=arguments.length,s=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)if(o=t[a])s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s;return r>3&&s&&Object.defineProperty(e,i,s),s};var h=100;var f=400;var d=t("post_mainnavigation",function(){function t(t){e(this,t);this.canScrollLeft=false;this.canScrollRight=false;this.scrollRight=this.scrollRight.bind(this);this.scrollLeft=this.scrollLeft.bind(this);this.checkScrollability=this.checkScrollability.bind(this);this.resizeObserver=new ResizeObserver(this.checkScrollability);this.mutationObserver=new MutationObserver(this.checkScrollability)}t.prototype.componentDidLoad=function(){var t=this;var e;setTimeout((function(){t.checkScrollability()}));this.resizeObserver.observe(this.navbar);this.mutationObserver.observe(this.navbar,{subtree:true,childList:true});(e=this.navbar)===null||e===void 0?void 0:e.addEventListener("scrollend",this.checkScrollability)};t.prototype.disconnectedCallback=function(){var t;this.mutationObserver.disconnect();this.resizeObserver.disconnect();(t=this.navbar)===null||t===void 0?void 0:t.removeEventListener("scrollend",this.checkScrollability)};t.prototype.stopScrolling=function(){if(this.scrollRepeatInterval)clearInterval(this.scrollRepeatInterval)};Object.defineProperty(t.prototype,"navigationItems",{get:function(){return Array.from(this.host.querySelectorAll("a:not(post-megadropdown *), post-megadropdown-trigger"))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"canScroll",{get:function(){return this.canScrollLeft||this.canScrollRight},enumerable:false,configurable:true});t.prototype.checkScrollability=function(){var t=this.navbar,e=t.scrollLeft,i=t.scrollWidth,n=t.clientWidth;if(i===n){this.canScrollLeft=this.canScrollRight=false}else{this.canScrollLeft=Math.floor(e)>0;this.canScrollRight=Math.ceil(n+e)<i}};t.prototype.handleScrollButtonClick=function(t,e){if(!this.canScroll||t.button!==0)return;this.temporarilyDisableNavbar();var i=e==="right"?this.scrollRight:this.scrollLeft;i();this.scrollRepeatInterval=setInterval((function(){i()}),h)};t.prototype.scrollRight=function(){var t=this.host.shadowRoot.querySelector(".scroll-right").getBoundingClientRect().left;for(var e=0,i=this.navigationItems;e<i.length;e++){var n=i[e];var r=n.getBoundingClientRect(),s=r.right,o=r.width;var a=s-.25*o<t;if(!a){this.navbar.scrollBy({left:s-t});return}}};t.prototype.scrollLeft=function(){var t=this.host.shadowRoot.querySelector(".scroll-left").getBoundingClientRect().right;for(var e=0,i=this.navigationItems.reverse();e<i.length;e++){var n=i[e];var r=n.getBoundingClientRect(),s=r.left,o=r.width;var a=s+.25*o>t;if(!a){this.navbar.scrollBy({left:s-t});return}}};t.prototype.temporarilyDisableNavbar=function(){var t=this;if(this.navbarDisableTimer)clearTimeout(this.navbarDisableTimer);this.navbar.setAttribute("inert","");this.navbarDisableTimer=setTimeout((function(){t.navbar.removeAttribute("inert")}),f)};t.prototype.render=function(){var t=this;return i(n,{key:"2e9f2361426298f620411b1d064e166992ba326e",version:s,class:this.canScroll?"scrollable":""},i("div",{key:"10103d153e37fd591c2ce062ef7455228adbf5b9","aria-hidden":"true",class:{"scroll-control scroll-left":true,"d-none":!this.canScrollLeft},onMouseDown:function(e){return t.handleScrollButtonClick(e,"left")}},i("post-icon",{key:"8bb9b82626d05c1fe8f4fd1bb9f8e6d6be59ad8a","aria-hidden":"true",name:"chevronleft"})),i("nav",{key:"6905afe8c2dfcf0f2411b45237b52d63f187d2c9",ref:function(e){return t.navbar=e},"aria-label":this.textMain},i("slot",{key:"2db905e52b1604d9c6097734d055100a58625f09"})),i("div",{key:"f8ec4f906f1c99fec2198bb350ac1735c2de8469","aria-hidden":"true",class:{"scroll-control scroll-right":true,"d-none":!this.canScrollRight},onMouseDown:function(e){return t.handleScrollButtonClick(e,"right")}},i("post-icon",{key:"afed8c1778691ca5b849d78ee20d51a4b8c02fe6","aria-hidden":"true",name:"chevronright"})))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());c([o(),a("string")],d.prototype,"textMain",void 0);d.style=l()}}}));
1
+ System.register(["./p-CN_0KCBp.system.js","./p-MZb_boDk.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,i,n,r,s,a,o;return{setters:[function(t){e=t.r;i=t.h;n=t.H;r=t.g},function(t){s=t.v},function(t){a=t.R},function(t){o=t.T},null],execute:function(){var l=function(){return":host{display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;max-width:var(--post-header-content-max-width)}@media screen and (min-width: 1024px){:host{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-margin-start:calc(-1*var(--post-local-header-padding-inline-start));margin-inline-start:calc(-1*var(--post-local-header-padding-inline-start));-webkit-margin-end:calc(-1*var(--post-local-header-padding-inline-end));margin-inline-end:calc(-1*var(--post-local-header-padding-inline-end));overflow:hidden}}nav{-ms-flex:1 1 auto;flex:1 1 auto}@media screen and (min-width: 1024px){nav{scroll-behavior:smooth;max-width:100vw;overflow:hidden;height:var(--post-main-navigation-height)}}.scroll-control{z-index:1;cursor:pointer;padding:16px;background:#fff;-webkit-box-shadow:var(--post-device-elevation-500);box-shadow:var(--post-device-elevation-500);line-height:1}.scroll-control.scroll-left{-webkit-margin-end:-48px;margin-inline-end:-48px}.scroll-control.scroll-right{-webkit-margin-start:-48px;margin-inline-start:-48px}.scroll-control.d-none{display:none}.scroll-control post-icon{font-size:16px}"};var c=undefined&&undefined.__decorate||function(t,e,i,n){var r=arguments.length,s=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(t,e,i,n);else for(var o=t.length-1;o>=0;o--)if(a=t[o])s=(r<3?a(s):r>3?a(e,i,s):a(e,i))||s;return r>3&&s&&Object.defineProperty(e,i,s),s};var h=100;var f=400;var d=t("post_mainnavigation",function(){function t(t){e(this,t);this.canScrollLeft=false;this.canScrollRight=false;this.scrollRight=this.scrollRight.bind(this);this.scrollLeft=this.scrollLeft.bind(this);this.checkScrollability=this.checkScrollability.bind(this);this.resizeObserver=new ResizeObserver(this.checkScrollability);this.mutationObserver=new MutationObserver(this.checkScrollability)}t.prototype.componentDidLoad=function(){var t=this;var e;setTimeout((function(){t.checkScrollability()}));this.resizeObserver.observe(this.navbar);this.mutationObserver.observe(this.navbar,{subtree:true,childList:true});(e=this.navbar)===null||e===void 0?void 0:e.addEventListener("scrollend",this.checkScrollability)};t.prototype.disconnectedCallback=function(){var t;this.mutationObserver.disconnect();this.resizeObserver.disconnect();(t=this.navbar)===null||t===void 0?void 0:t.removeEventListener("scrollend",this.checkScrollability)};t.prototype.stopScrolling=function(){if(this.scrollRepeatInterval)clearInterval(this.scrollRepeatInterval)};Object.defineProperty(t.prototype,"navigationItems",{get:function(){return Array.from(this.host.querySelectorAll("a:not(post-megadropdown *), post-megadropdown-trigger"))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"canScroll",{get:function(){return this.canScrollLeft||this.canScrollRight},enumerable:false,configurable:true});t.prototype.checkScrollability=function(){var t=this.navbar,e=t.scrollLeft,i=t.scrollWidth,n=t.clientWidth;if(i===n){this.canScrollLeft=this.canScrollRight=false}else{this.canScrollLeft=Math.floor(e)>0;this.canScrollRight=Math.ceil(n+e)<i}};t.prototype.handleScrollButtonClick=function(t,e){if(!this.canScroll||t.button!==0)return;this.temporarilyDisableNavbar();var i=e==="right"?this.scrollRight:this.scrollLeft;i();this.scrollRepeatInterval=setInterval((function(){i()}),h)};t.prototype.scrollRight=function(){var t=this.host.shadowRoot.querySelector(".scroll-right").getBoundingClientRect().left;for(var e=0,i=this.navigationItems;e<i.length;e++){var n=i[e];var r=n.getBoundingClientRect(),s=r.right,a=r.width;var o=s-.25*a<t;if(!o){this.navbar.scrollBy({left:s-t});return}}};t.prototype.scrollLeft=function(){var t=this.host.shadowRoot.querySelector(".scroll-left").getBoundingClientRect().right;for(var e=0,i=this.navigationItems.reverse();e<i.length;e++){var n=i[e];var r=n.getBoundingClientRect(),s=r.left,a=r.width;var o=s+.25*a>t;if(!o){this.navbar.scrollBy({left:s-t});return}}};t.prototype.temporarilyDisableNavbar=function(){var t=this;if(this.navbarDisableTimer)clearTimeout(this.navbarDisableTimer);this.navbar.setAttribute("inert","");this.navbarDisableTimer=setTimeout((function(){t.navbar.removeAttribute("inert")}),f)};t.prototype.render=function(){var t=this;return i(n,{key:"9fe43f86cab360591a15a033e0dc657096a69c00",version:s,class:this.canScroll?"scrollable":""},i("div",{key:"f68ea70e332336e99c0b51b19e33647b40fcfbb4","aria-hidden":"true",class:{"scroll-control scroll-left":true,"d-none":!this.canScrollLeft},onMouseDown:function(e){return t.handleScrollButtonClick(e,"left")}},i("post-icon",{key:"fac01a93fd7cbfe2548a4d049d59f0bc6d01af63","aria-hidden":"true",name:"chevronleft"})),i("nav",{key:"7787a27e76350e9e86a97a58a20abe1286786ff7",ref:function(e){return t.navbar=e},"aria-label":this.textMain},i("slot",{key:"357a8f5fe1e7b6bea5ae67d87c979f785ea24b82"})),i("div",{key:"ce6091a9466fcd17aca39fcb5d6c204e1782c95d","aria-hidden":"true",class:{"scroll-control scroll-right":true,"d-none":!this.canScrollRight},onMouseDown:function(e){return t.handleScrollButtonClick(e,"right")}},i("post-icon",{key:"92d35b38a453326701a0837e6187abf82fa37bf4","aria-hidden":"true",name:"chevronright"})))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());c([a(),o("string")],d.prototype,"textMain",void 0);d.style=l()}}}));
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(n){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i))n[i]=r[i]}return n};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(n,r,t,e){function i(n){return n instanceof t?n:new t((function(r){r(n)}))}return new(t||(t=Promise))((function(t,a){function u(n){try{s(e.next(n))}catch(n){a(n)}}function o(n){try{s(e["throw"](n))}catch(n){a(n)}}function s(n){n.done?t(n.value):i(n.value).then(u,o)}s((e=e.apply(n,r||[])).next())}))};var __generator=this&&this.__generator||function(n,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},e,i,a,u=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return u.next=o(0),u["throw"]=o(1),u["return"]=o(2),typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(n){return function(r){return s([n,r])}}function s(o){if(e)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(t=0)),t)try{if(e=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;i=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){t.label=o[1];break}if(o[0]===6&&t.label<a[1]){t.label=a[1];a=o;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(o);break}if(a[2])t.ops.pop();t.trys.pop();continue}o=r.call(n,t)}catch(n){o=[6,n];i=0}finally{e=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(n,r,t){if(t||arguments.length===2)for(var e=0,i=r.length,a;e<i;e++){if(a||!(e in r)){if(!a)a=Array.prototype.slice.call(r,0,e);a[e]=r[e]}}return n.concat(a||Array.prototype.slice.call(r))};System.register(["./p-CN_0KCBp.system.js","./p-CUgd8XDw.system.js"],(function(n){"use strict";var r,t,e,i,a,u,o,s,c,f,l;return{setters:[function(n){r=n.h;t=n.r;e=n.c;i=n.H},function(n){a=n.c;u=n.L;o=n.g;s=n.T;c=n.s;f=n.d;l=n.v}],execute:function(){var v=this;var h=function(n){var t=n.user,e=n.description;return r("post-avatar",{firstname:t.name,lastname:t.surname,email:t.email,description:e,"aria-hidden":e?undefined:"true"})};var d=function(n){var t=n.config,e=n.textClose,i=n.textBack;var o=a(t.trigger.text);return[r("post-megadropdown-trigger",{key:"trigger",for:o},t.trigger.text),r("post-megadropdown",{key:"dropdown",id:o,textClose:e,textBack:i},t.overview&&r(u,{config:t.overview,class:"post-megadropdown-overview",ariaCurrentWhenActive:"page"}),r("div",{class:"row row-cols-1 row-cols-sm-2"},t.sections.map((function(n){return r(g,{config:n})}))))]};var g=function(n){var t=n.config;var e=o(t.title);var i=a(e);return r("div",{class:"col"},r(s,{class:"post-megadropdown-list-title",id:i,config:t.title}),r("ul",{class:"post-megadropdown-list","aria-labelledby":i},t.items.map((function(n){return r("li",{key:n.url},r(u,{config:n,ariaCurrentWhenActive:"page"}))}))))};var p=function(n){var r=new URL(n,window.location.href);r.searchParams.set("returnURL",window.location.href);return r.toString()};var w=function(n){var t=n.config,e=n.slot,i=n.textCurrentUser,o=n.textUserLinks,s=n.textAccessUserLinks;var c=t.user.userType==="B2C";var f=t.user.userType==="B2B";var l=(c||f)&&t.user.changeUserAndProfile==="userAndProfile";var v=f&&t.user.canChangeCompany&&t.user.company;var d=l||v;var g=[t.user.name,t.user.surname].join(" ");var w=a(g);return r("div",{slot:e},r("post-menu-trigger",{for:w},r("button",{class:"btn btn-link",type:"button"},r(h,{user:t.user,description:i.replace("{user}","".concat(g))}),r("span",{class:"visually-hidden"},s))),r("post-menu",{id:w,label:o},r("div",{slot:"header"},r(h,{user:t.user}),t.user.company&&r("p",null,t.user.company),r("p",null,g)),t.accountSwitch&&d&&r("post-menu-item",null,r(u,{config:{text:t.accountSwitch.text,url:p(t.accountSwitch.url),icon:t.accountSwitch.icon}})),t.companySwitch&&v&&r("post-menu-item",null,r(u,{config:{text:t.companySwitch.text,url:p(t.companySwitch.url),icon:t.companySwitch.icon}})),t.options.map((function(n){return r("post-menu-item",{key:n.url},r(u,{config:n}))})),t.logoutLink&&r("post-menu-item",null,r(u,{config:t.logoutLink}))))};var _=function(){var n;var r=new Map;var t=document.querySelectorAll('head link[rel="alternate"][hreflang][href]');for(var e=0,i=t;e<i.length;e++){var a=i[e];var u=a.getAttribute("href");if(!u)continue;var o=(n=a.hreflang)===null||n===void 0?void 0:n.toLowerCase();if(r.has(o))continue;try{var s=new URL(u,document.baseURI);r.set(o,s.href)}catch(n){}}return r};var m=function(n){var r=new MutationObserver((function(r){var t=r.some((function(n){if(n.type==="attributes"){if(!(n.target instanceof HTMLLinkElement))return false;return n.attributeName==="href"||n.attributeName==="hreflang"||n.attributeName==="rel"&&n.target.rel==="alternate"}if(n.type==="childList"){return __spreadArray(__spreadArray([],n.addedNodes,true),n.removedNodes,true).some((function(n){return n instanceof HTMLLinkElement&&n.hasAttribute("href")&&n.hasAttribute("hreflang")&&n.hasAttribute("rel")&&n.rel==="alternate"}))}return false}));if(t){n(_())}}));r.observe(document.head,{childList:true,subtree:true,attributes:true,attributeFilter:["href","hreflang","rel"]});return r};var y="de";var b=function(n){var r;var t=new URL(window.location.href);var e=[n,t.searchParams.get("lang"),A(t.pathname),document.documentElement.lang,L(),c.currentLanguage].filter((function(n){return n!=null}));return k((r=e[0])!==null&&r!==void 0?r:y)};var A=function(n){var r=n.split("/").filter(Boolean)[0];if(!r)return undefined;try{Intl.getCanonicalLocales(r);return r}catch(n){return undefined}};var L=function(){if(navigator.language!=null){return k(navigator.language)}if(navigator.languages!=null&&navigator.languages.length>0){return k(navigator.languages[0])}return null};var k=function(n){return n.substring(0,2).toLowerCase()};var x=new Map;var C=function(){var n=document.querySelector("#PPM_HEADER_DATA");if((n===null||n===void 0?void 0:n.textContent)!=null){return JSON.parse(n.textContent)}return null};var R=function(n){return __awaiter(v,[n],void 0,(function(n){var r,t,e,i,a,u,o;var s=n.projectId,f=n.environment,l=n.language;return __generator(this,(function(n){switch(n.label){case 0:r=C();if(r){t=document.documentElement.lang;c.currentLanguage=t;return[2,r]}e=b(l);i="".concat(s,"-").concat(f,"-").concat(e);a=x.get(i);if(a==null){a=U(s,f,e).finally((function(){x.delete(i)}));x.set(i,a)}o=[{}];return[4,a];case 1:u=__assign.apply(void 0,o.concat([n.sent()]));c.currentLanguage=e;return[2,u]}}))}))};var U=function(n,r,t){return __awaiter(v,void 0,void 0,(function(){var e,i,a;return __generator(this,(function(u){switch(u.label){case 0:if(!I(n)){throw new Error('Internet Header: invalid project id "'.concat(n,'"'))}if(n==="test"){r="int01"}e=j(n,r,t);u.label=1;case 1:u.trys.push([1,4,,5]);return[4,fetch(e)];case 2:i=u.sent();return[4,i.json()];case 3:return[2,u.sent()];case 4:a=u.sent();throw new Error("Internet Header: fetching config failed. ".concat(a.message));case 5:return[2]}}))}))};var j=function(n,r,t){if(n==="test")return"assets/config/test-configuration.json";var e=r.toUpperCase();var i=t.toLowerCase();var a=e==="PROD";var u="https://".concat(a?"":"int.","preview.post.ch");try{var o=new URLSearchParams({serviceId:n,environment:e,lang:i}).toString();return new URL("".concat(u,"/api/header?").concat(o)).toString()}catch(n){throw new Error("Internet Header: Config URL is invalid.")}};var I=function(n){return n!==""&&n.length>0&&/^[a-zA-Z][\w-]*[a-zA-Z0-9]$/.test(n)};var E=function(n){var r;var t=O((r=c.localizedConfig)===null||r===void 0?void 0:r.header);if(t.length===0||n==="none"){return null}if(n==="auto"||n==="exact"){var e=M(t);if(e)return e}var i;if(n==="auto"||n==="exact"){i=new URL(window.location.href)}else{try{i=new URL(n,document.location.origin)}catch(r){console.warn("Active Route: ".concat(n," is not a valid URL. Navigation highlighting has been disabled."));return null}}var a=H(t);var u=n==="exact"?"exact":"auto";return P(a,i,u)};var M=function(n){return n.find((function(n){return n.active}))};var H=function(n){return n.filter((function(n){return n.url!==""&&n.url!=="#"&&n.url!=="/"}))};var O=function(n){var r=[];if(!n){return r}var t=function(n){if(n===null||n===undefined){return}if(Array.isArray(n)){n.forEach(t);return}if(typeof n!=="object"||n===null){return}if("url"in n&&typeof n.url==="string"){r.push(n)}Object.values(n).forEach(t)};t(n);return r};var P=function(n,r,t){var e=null;for(var i=0,a=n;i<a.length;i++){var u=a[i];try{var o=new URL(u.url,document.location.origin);var s=B(r,o,t);if(s>0){if(!e||s>e.score){e={link:u,score:s}}if(s===Infinity)break}}catch(n){}}return e?e.link:null};var B=function(n,r,t){if(n===null||r===null||n.origin!==r.origin){return 0}var e=n.pathname.toLocaleLowerCase();var i=r.pathname.toLocaleLowerCase();if(e===i){return Infinity}if(n.pathname.length<r.pathname.length){return 0}if(t==="auto"){var a=__spreadArray([n.origin.toLocaleLowerCase()],e.split("/").filter((function(n){return n!==null&&n!==""})),true);var u=__spreadArray([r.origin.toLocaleLowerCase()],i.split("/").filter((function(n){return n!==null&&n!==""})),true);var o=S(a,u);return Math.min(a.length,u.length)===o?o:0}return 0};var S=function(n,r){if(n==null||r==null||n.length===0||r.length===0){return 0}var t=0;for(;t<Math.min(n.length,r.length);t++){if(n[t]!==r[t]){return 0}}return t};var T="https://n.account.post.ch/v1/session/subscribe";var W=n("swisspost_internet_header",function(){function n(n){this.activeRoute="auto";this.environment="prod";this.fullWidth=false;t(this,n);this.headerLoaded=e(this,"headerLoaded");if(this.project===undefined||this.project===""||!I(this.project)){throw new Error('Internet Header project key is "'.concat(this.project,'". Please provide a valid project key.'))}}n.prototype.handleActiveRouteChange=function(){this.updateActiveUrl()};n.prototype.handleLanguageChange=function(n){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,this.updateConfig(n)];case 1:t.sent();return[3,3];case 2:r=t.sent();console.error(r);return[3,3];case 3:return[2]}}))}))};n.prototype.connectedCallback=function(){this.observeAlternateLinks()};n.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:this.initAlternateLinks();return[4,Promise.all([this.fetchHeaderConfig(),this.fetchUserData()])];case 1:n.sent();return[2]}}))}))};n.prototype.componentDidLoad=function(){var n=this;window.requestAnimationFrame((function(){n.headerLoaded.emit()}))};n.prototype.disconnectedCallback=function(){var n;(n=this.alternateLinksObserver)===null||n===void 0?void 0:n.disconnect();f()};n.prototype.handleLanguageChangeEvent=function(n){if(n.target instanceof HTMLElement&&n.target.localName==="post-language-menu-item"&&n.detail!==this.language){void this.handleLanguageChange(n.detail)}};n.prototype.fetchHeaderConfig=function(){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:r.trys.push([0,2,,3]);c.projectId=this.project;c.environment=this.environment.toLocaleLowerCase();if(this.language!==undefined)c.currentLanguage=this.language;return[4,this.updateConfig()];case 1:r.sent();return[3,3];case 2:n=r.sent();console.error(n);return[3,3];case 3:return[2]}}))}))};n.prototype.fetchUserData=function(){return __awaiter(this,void 0,void 0,(function(){var n,r,t;return __generator(this,(function(e){switch(e.label){case 0:e.trys.push([0,4,,5]);return[4,fetch(T,{credentials:"include"})];case 1:n=e.sent();if(!n.ok)return[3,3];return[4,n.json()];case 2:r=e.sent();c.user=r===null||r===void 0?void 0:r.data;e.label=3;case 3:return[3,5];case 4:t=e.sent();return[3,5];case 5:return[2]}}))}))};n.prototype.updateConfig=function(n){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(t){switch(t.label){case 0:r=c;return[4,R({projectId:this.project,environment:this.environment,language:n!==null&&n!==void 0?n:this.language})];case 1:r.localizedConfig=t.sent();this.updateActiveUrl();return[2]}}))}))};n.prototype.initAlternateLinks=function(){c.alternateLinks=_()};n.prototype.observeAlternateLinks=function(){this.alternateLinksObserver=m((function(n){c.alternateLinks=n}))};n.prototype.updateActiveUrl=function(){c.activeLink=E(this.activeRoute)};n.prototype.getUserMenuOptions=function(n){var r;return __spreadArray(__spreadArray(__spreadArray([],n.userProfile?[n.userProfile]:[],true),n.settings?[n.settings]:[],true),(r=n.userLinks)!==null&&r!==void 0?r:[],true)};n.prototype.getLanguageUrl=function(n,r){var t;return(t=c.alternateLinks.get(n.toLowerCase()))!==null&&t!==void 0?t:r};n.prototype.renderNavItem=function(n,t){if(t===void 0){t={}}if("url"in n){return r(u,__assign(__assign({},t),{config:n}))}return r(w,{slot:t.slot,config:n,textCurrentUser:this.textCurrentUser,textAccessUserLinks:this.textAccessUserLinks,textUserLinks:this.textUserLinks})};n.prototype.renderNavigation=function(n,t,e){var i=this;if(e===void 0){e={}}if(t.length===0)return null;if(t.length===1){return this.renderNavItem(t[0],__assign(__assign({},e),{slot:n}))}return r("ul",{slot:n},t.map((function(n){return r("li",{key:"url"in n?n.url:n.user.email},i.renderNavItem(n,e))})))};n.prototype.render=function(){var n=this;var t;if(!((t=c.localizedConfig)===null||t===void 0?void 0:t.header)){console.error(new Error("Internet Header: Config cannot be loaded"));return}var e=c.localizedConfig.header,a=e.globalHeader,o=e.localHeader;return r(i,{"data-version":l},r("post-header",{textMenu:this.textMenu},"image"in a.postLogo?r(u,{slot:"post-logo",config:a.postLogo}):r("post-logo",{slot:"post-logo",url:a.postLogo.url,"aria-label":a.postLogo.label,"aria-description":a.postLogo.description},a.postLogo.text),a.audience&&this.renderNavigation("audience",a.audience,{ariaCurrentWhenActive:"location"}),a.primaryNavigation&&this.renderNavigation("global-nav-primary",a.primaryNavigation),a.secondaryNavigation&&this.renderNavigation("global-nav-secondary",a.secondaryNavigation,{ariaCurrentWhenActive:"location"}),a.languages&&a.languages.length>0&&r("post-language-menu",{slot:"language-menu",textChangeLanguage:this.textChangeLanguage,textCurrentLanguage:this.textCurrentLanguage},a.languages.map((function(t){return r("post-language-menu-item",{key:t.code,url:n.getLanguageUrl(t.code,t.url),active:t.active,code:t.code,name:t.label,description:t.description},t.text)}))),a.postLogin&&this.renderNavItem(c.user?{user:c.user,options:this.getUserMenuOptions(a.postLogin),accountSwitch:a.postLogin.accountSwitch,companySwitch:a.postLogin.companySwitch,logoutLink:a.postLogin.logoutLink}:a.postLogin.loginLink,{slot:"post-login"}),o.title&&r("p",{slot:"title"},o.title),o.navigation&&this.renderNavigation("local-nav",o.navigation),o.mainNavigation&&o.mainNavigation.length>0&&r("post-mainnavigation",{slot:"main-nav",textMain:this.textMain},r("ul",null,o.mainNavigation.map((function(t){return r("li",{key:"url"in t?t.url:t.trigger.text},"url"in t?r(u,{config:t,ariaCurrentWhenActive:"page"}):r(d,{config:t,textBack:n.textBack,textClose:n.textClose}))}))))))};Object.defineProperty(n,"watchers",{get:function(){return{activeRoute:[{handleActiveRouteChange:0}],language:[{handleLanguageChange:0}]}},enumerable:false,configurable:true});return n}())}}}));
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(n){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i))n[i]=r[i]}return n};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(n,r,t,e){function i(n){return n instanceof t?n:new t((function(r){r(n)}))}return new(t||(t=Promise))((function(t,a){function u(n){try{s(e.next(n))}catch(n){a(n)}}function o(n){try{s(e["throw"](n))}catch(n){a(n)}}function s(n){n.done?t(n.value):i(n.value).then(u,o)}s((e=e.apply(n,r||[])).next())}))};var __generator=this&&this.__generator||function(n,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},e,i,a,u=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return u.next=o(0),u["throw"]=o(1),u["return"]=o(2),typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(n){return function(r){return s([n,r])}}function s(o){if(e)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(t=0)),t)try{if(e=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;i=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){t.label=o[1];break}if(o[0]===6&&t.label<a[1]){t.label=a[1];a=o;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(o);break}if(a[2])t.ops.pop();t.trys.pop();continue}o=r.call(n,t)}catch(n){o=[6,n];i=0}finally{e=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(n,r,t){if(t||arguments.length===2)for(var e=0,i=r.length,a;e<i;e++){if(a||!(e in r)){if(!a)a=Array.prototype.slice.call(r,0,e);a[e]=r[e]}}return n.concat(a||Array.prototype.slice.call(r))};System.register(["./p-CN_0KCBp.system.js","./p-Bkt75U1-.system.js"],(function(n){"use strict";var r,t,e,i,a,u,o,s,c,f,l;return{setters:[function(n){r=n.h;t=n.r;e=n.c;i=n.H},function(n){a=n.c;u=n.L;o=n.g;s=n.T;c=n.s;f=n.d;l=n.v}],execute:function(){var v=this;var h=function(n){var t=n.user,e=n.description;return r("post-avatar",{firstname:t.name,lastname:t.surname,email:t.email,description:e,"aria-hidden":e?undefined:"true"})};var d=function(n){var t=n.config,e=n.textClose,i=n.textBack;var o=a(t.trigger.text);return[r("post-megadropdown-trigger",{key:"trigger",for:o},t.trigger.text),r("post-megadropdown",{key:"dropdown",id:o,textClose:e,textBack:i},t.overview&&r(u,{config:t.overview,class:"post-megadropdown-overview",ariaCurrentWhenActive:"page"}),r("div",{class:"row row-cols-1 row-cols-sm-2"},t.sections.map((function(n){return r(g,{config:n})}))))]};var g=function(n){var t=n.config;var e=o(t.title);var i=a(e);return r("div",{class:"col"},r(s,{class:"post-megadropdown-list-title",id:i,config:t.title}),r("ul",{class:"post-megadropdown-list","aria-labelledby":i},t.items.map((function(n){return r("li",{key:n.url},r(u,{config:n,ariaCurrentWhenActive:"page"}))}))))};var p=function(n){var r=new URL(n,window.location.href);r.searchParams.set("returnURL",window.location.href);return r.toString()};var w=function(n){var t=n.config,e=n.slot,i=n.textCurrentUser,o=n.textUserLinks,s=n.textAccessUserLinks;var c=t.user.userType==="B2C";var f=t.user.userType==="B2B";var l=(c||f)&&t.user.changeUserAndProfile==="userAndProfile";var v=f&&t.user.canChangeCompany&&t.user.company;var d=l||v;var g=[t.user.name,t.user.surname].join(" ");var w=a(g);return r("div",{slot:e},r("post-menu-trigger",{for:w},r("button",{class:"btn btn-link",type:"button"},r(h,{user:t.user,description:i.replace("{user}","".concat(g))}),r("span",{class:"visually-hidden"},s))),r("post-menu",{id:w,label:o},r("div",{slot:"header"},r(h,{user:t.user}),t.user.company&&r("p",null,t.user.company),r("p",null,g)),t.accountSwitch&&d&&r("post-menu-item",null,r(u,{config:{text:t.accountSwitch.text,url:p(t.accountSwitch.url),icon:t.accountSwitch.icon}})),t.companySwitch&&v&&r("post-menu-item",null,r(u,{config:{text:t.companySwitch.text,url:p(t.companySwitch.url),icon:t.companySwitch.icon}})),t.options.map((function(n){return r("post-menu-item",{key:n.url},r(u,{config:n}))})),t.logoutLink&&r("post-menu-item",null,r(u,{config:t.logoutLink}))))};var _=function(){var n;var r=new Map;var t=document.querySelectorAll('head link[rel="alternate"][hreflang][href]');for(var e=0,i=t;e<i.length;e++){var a=i[e];var u=a.getAttribute("href");if(!u)continue;var o=(n=a.hreflang)===null||n===void 0?void 0:n.toLowerCase();if(r.has(o))continue;try{var s=new URL(u,document.baseURI);r.set(o,s.href)}catch(n){}}return r};var m=function(n){var r=new MutationObserver((function(r){var t=r.some((function(n){if(n.type==="attributes"){if(!(n.target instanceof HTMLLinkElement))return false;return n.attributeName==="href"||n.attributeName==="hreflang"||n.attributeName==="rel"&&n.target.rel==="alternate"}if(n.type==="childList"){return __spreadArray(__spreadArray([],n.addedNodes,true),n.removedNodes,true).some((function(n){return n instanceof HTMLLinkElement&&n.hasAttribute("href")&&n.hasAttribute("hreflang")&&n.hasAttribute("rel")&&n.rel==="alternate"}))}return false}));if(t){n(_())}}));r.observe(document.head,{childList:true,subtree:true,attributes:true,attributeFilter:["href","hreflang","rel"]});return r};var y="de";var b=function(n){var r;var t=new URL(window.location.href);var e=[n,t.searchParams.get("lang"),k(t.pathname),document.documentElement.lang,A(),c.currentLanguage].filter((function(n){return n!=null}));return L((r=e[0])!==null&&r!==void 0?r:y)};var k=function(n){var r=n.split("/").filter(Boolean)[0];if(!r)return undefined;try{Intl.getCanonicalLocales(r);return r}catch(n){return undefined}};var A=function(){if(navigator.language!=null){return L(navigator.language)}if(navigator.languages!=null&&navigator.languages.length>0){return L(navigator.languages[0])}return null};var L=function(n){return n.substring(0,2).toLowerCase()};var x=new Map;var C=function(){var n=document.querySelector("#PPM_HEADER_DATA");if((n===null||n===void 0?void 0:n.textContent)!=null){return JSON.parse(n.textContent)}return null};var R=function(n){return __awaiter(v,[n],void 0,(function(n){var r,t,e,i,a,u,o;var s=n.projectId,f=n.environment,l=n.language;return __generator(this,(function(n){switch(n.label){case 0:r=C();if(r){t=document.documentElement.lang;c.currentLanguage=t;return[2,r]}e=b(l);i="".concat(s,"-").concat(f,"-").concat(e);a=x.get(i);if(a==null){a=U(s,f,e).finally((function(){x.delete(i)}));x.set(i,a)}o=[{}];return[4,a];case 1:u=__assign.apply(void 0,o.concat([n.sent()]));c.currentLanguage=e;return[2,u]}}))}))};var U=function(n,r,t){return __awaiter(v,void 0,void 0,(function(){var e,i,a;return __generator(this,(function(u){switch(u.label){case 0:if(!I(n)){throw new Error('Internet Header: invalid project id "'.concat(n,'"'))}if(n==="test"){r="int01"}e=j(n,r,t);u.label=1;case 1:u.trys.push([1,4,,5]);return[4,fetch(e)];case 2:i=u.sent();return[4,i.json()];case 3:return[2,u.sent()];case 4:a=u.sent();throw new Error("Internet Header: fetching config failed. ".concat(a.message));case 5:return[2]}}))}))};var j=function(n,r,t){if(n==="test")return"assets/config/test-configuration.json";var e=r.toUpperCase();var i=t.toLowerCase();var a=e==="PROD";var u="https://".concat(a?"":"int.","preview.post.ch");try{var o=new URLSearchParams({serviceId:n,environment:e,lang:i}).toString();return new URL("".concat(u,"/api/header?").concat(o)).toString()}catch(n){throw new Error("Internet Header: Config URL is invalid.")}};var I=function(n){return n!==""&&n.length>0&&/^[a-zA-Z][\w-]*[a-zA-Z0-9]$/.test(n)};var E=function(n){var r;var t=O((r=c.localizedConfig)===null||r===void 0?void 0:r.header);if(t.length===0||n==="none"){return null}if(n==="auto"||n==="exact"){var e=M(t);if(e)return e}var i;if(n==="auto"||n==="exact"){i=new URL(window.location.href)}else{try{i=new URL(n,document.location.origin)}catch(r){console.warn("Active Route: ".concat(n," is not a valid URL. Navigation highlighting has been disabled."));return null}}var a=H(t);var u=n==="exact"?"exact":"auto";return B(a,i,u)};var M=function(n){return n.find((function(n){return n.active}))};var H=function(n){return n.filter((function(n){return n.url!==""&&n.url!=="#"&&n.url!=="/"}))};var O=function(n){var r=[];if(!n){return r}var t=function(n){if(n===null||n===undefined){return}if(Array.isArray(n)){n.forEach(t);return}if(typeof n!=="object"||n===null){return}if("url"in n&&typeof n.url==="string"){r.push(n)}Object.values(n).forEach(t)};t(n);return r};var B=function(n,r,t){var e=null;for(var i=0,a=n;i<a.length;i++){var u=a[i];try{var o=new URL(u.url,document.location.origin);var s=P(r,o,t);if(s>0){if(!e||s>e.score){e={link:u,score:s}}if(s===Infinity)break}}catch(n){}}return e?e.link:null};var P=function(n,r,t){if(n===null||r===null||n.origin!==r.origin){return 0}var e=n.pathname.toLocaleLowerCase();var i=r.pathname.toLocaleLowerCase();if(e===i){return Infinity}if(n.pathname.length<r.pathname.length){return 0}if(t==="auto"){var a=__spreadArray([n.origin.toLocaleLowerCase()],e.split("/").filter((function(n){return n!==null&&n!==""})),true);var u=__spreadArray([r.origin.toLocaleLowerCase()],i.split("/").filter((function(n){return n!==null&&n!==""})),true);var o=S(a,u);return Math.min(a.length,u.length)===o?o:0}return 0};var S=function(n,r){if(n==null||r==null||n.length===0||r.length===0){return 0}var t=0;for(;t<Math.min(n.length,r.length);t++){if(n[t]!==r[t]){return 0}}return t};var T="https://n.account.post.ch/v1/session/subscribe";var W=n("swisspost_internet_header",function(){function n(n){this.activeRoute="auto";this.environment="prod";this.fullWidth=false;t(this,n);this.headerLoaded=e(this,"headerLoaded");if(this.project===undefined||this.project===""||!I(this.project)){throw new Error('Internet Header project key is "'.concat(this.project,'". Please provide a valid project key.'))}}n.prototype.handleActiveRouteChange=function(){this.updateActiveUrl()};n.prototype.handleLanguageChange=function(n){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,this.updateConfig(n)];case 1:t.sent();return[3,3];case 2:r=t.sent();console.error(r);return[3,3];case 3:return[2]}}))}))};n.prototype.connectedCallback=function(){this.observeAlternateLinks()};n.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:this.initAlternateLinks();return[4,Promise.all([this.fetchHeaderConfig(),this.fetchUserData()])];case 1:n.sent();return[2]}}))}))};n.prototype.componentDidLoad=function(){var n=this;window.requestAnimationFrame((function(){n.headerLoaded.emit()}))};n.prototype.disconnectedCallback=function(){var n;(n=this.alternateLinksObserver)===null||n===void 0?void 0:n.disconnect();f()};n.prototype.handleLanguageChangeEvent=function(n){if(n.target instanceof HTMLElement&&n.target.localName==="post-language-menu-item"&&n.detail!==this.language){void this.handleLanguageChange(n.detail)}};n.prototype.fetchHeaderConfig=function(){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:r.trys.push([0,2,,3]);c.projectId=this.project;c.environment=this.environment.toLocaleLowerCase();if(this.language!==undefined)c.currentLanguage=this.language;return[4,this.updateConfig()];case 1:r.sent();return[3,3];case 2:n=r.sent();console.error(n);return[3,3];case 3:return[2]}}))}))};n.prototype.fetchUserData=function(){return __awaiter(this,void 0,void 0,(function(){var n,r,t;return __generator(this,(function(e){switch(e.label){case 0:e.trys.push([0,4,,5]);return[4,fetch(T,{credentials:"include"})];case 1:n=e.sent();if(!n.ok)return[3,3];return[4,n.json()];case 2:r=e.sent();c.user=r===null||r===void 0?void 0:r.data;e.label=3;case 3:return[3,5];case 4:t=e.sent();return[3,5];case 5:return[2]}}))}))};n.prototype.updateConfig=function(n){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(t){switch(t.label){case 0:r=c;return[4,R({projectId:this.project,environment:this.environment,language:n!==null&&n!==void 0?n:this.language})];case 1:r.localizedConfig=t.sent();this.updateActiveUrl();return[2]}}))}))};n.prototype.initAlternateLinks=function(){c.alternateLinks=_()};n.prototype.observeAlternateLinks=function(){this.alternateLinksObserver=m((function(n){c.alternateLinks=n}))};n.prototype.updateActiveUrl=function(){c.activeLink=E(this.activeRoute)};n.prototype.getUserMenuOptions=function(n){var r;return __spreadArray(__spreadArray(__spreadArray([],n.userProfile?[n.userProfile]:[],true),n.settings?[n.settings]:[],true),(r=n.userLinks)!==null&&r!==void 0?r:[],true)};n.prototype.getLanguageUrl=function(n,r){var t;return(t=c.alternateLinks.get(n.toLowerCase()))!==null&&t!==void 0?t:r};n.prototype.renderNavItem=function(n,t){if(t===void 0){t={}}if("url"in n){return r(u,__assign(__assign({},t),{config:n}))}return r(w,{slot:t.slot,config:n,textCurrentUser:this.textCurrentUser,textAccessUserLinks:this.textAccessUserLinks,textUserLinks:this.textUserLinks})};n.prototype.renderNavigation=function(n,t,e){var i=this;if(e===void 0){e={}}if(t.length===0)return null;if(t.length===1){return this.renderNavItem(t[0],__assign(__assign({},e),{slot:n}))}return r("ul",{slot:n},t.map((function(n){return r("li",{key:"url"in n?n.url:n.user.email},i.renderNavItem(n,e))})))};n.prototype.render=function(){var n=this;var t;if(!((t=c.localizedConfig)===null||t===void 0?void 0:t.header)){console.error(new Error("Internet Header: Config cannot be loaded"));return}var e=c.localizedConfig.header,a=e.globalHeader,o=e.localHeader;return r(i,{"data-version":l},r("post-header",{textMenu:this.textMenu},"image"in a.postLogo?r(u,{slot:"post-logo",config:a.postLogo}):r("post-logo",{slot:"post-logo",url:a.postLogo.url,"aria-label":a.postLogo.label,"aria-description":a.postLogo.description},a.postLogo.text),a.audience&&this.renderNavigation("audience",a.audience,{ariaCurrentWhenActive:"location"}),a.primaryNavigation&&this.renderNavigation("global-nav-primary",a.primaryNavigation),a.secondaryNavigation&&this.renderNavigation("global-nav-secondary",a.secondaryNavigation,{ariaCurrentWhenActive:"location"}),a.languages&&a.languages.length>0&&r("post-language-menu",{slot:"language-menu",textChangeLanguage:this.textChangeLanguage,textCurrentLanguage:this.textCurrentLanguage},a.languages.map((function(t){return r("post-language-menu-item",{key:t.code,url:n.getLanguageUrl(t.code,t.url),active:t.active,code:t.code,name:t.label,description:t.description},t.text)}))),a.postLogin&&this.renderNavItem(c.user?{user:c.user,options:this.getUserMenuOptions(a.postLogin),accountSwitch:a.postLogin.accountSwitch,companySwitch:a.postLogin.companySwitch,logoutLink:a.postLogin.logoutLink}:a.postLogin.loginLink,{slot:"post-login"}),o.title&&r("p",{slot:"title"},o.title),o.navigation&&this.renderNavigation("local-nav",o.navigation),o.mainNavigation&&o.mainNavigation.length>0&&r("post-mainnavigation",{slot:"main-nav",textMain:this.textMain},r("ul",null,o.mainNavigation.map((function(t){return r("li",{key:"url"in t?t.url:t.trigger.text},"url"in t?r(u,{config:t,ariaCurrentWhenActive:"page"}):r(d,{config:t,textBack:n.textBack,textClose:n.textClose}))}))))))};Object.defineProperty(n,"watchers",{get:function(){return{activeRoute:[{handleActiveRouteChange:0}],language:[{handleLanguageChange:0}]}},enumerable:false,configurable:true});return n}())}}}));