@swisspost/design-system-components 10.0.0-next.49 → 10.0.0-next.51

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 (207) hide show
  1. package/dist/cjs/{event-from-C6kpQwhw.js → event-from-CLvtSUKf.js} +20 -6
  2. package/dist/cjs/{get-root-CfQ2PogP.js → get-root-CyMf3Vsd.js} +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{package-CR0YynRY.js → package-D1eOXW8H.js} +1 -1
  5. package/dist/cjs/post-accordion_2.cjs.entry.js +3 -3
  6. package/dist/cjs/post-avatar.cjs.entry.js +3 -3
  7. package/dist/cjs/post-back-to-top.cjs.entry.js +2 -2
  8. package/dist/cjs/post-banner.cjs.entry.js +5 -5
  9. package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +4 -4
  10. package/dist/cjs/post-breadcrumbs.cjs.entry.js +11 -6
  11. package/dist/cjs/post-card-control.cjs.entry.js +2 -2
  12. package/dist/cjs/post-closebutton_15.cjs.entry.js +173 -93
  13. package/dist/cjs/post-collapsible_2.cjs.entry.js +4 -4
  14. package/dist/cjs/post-components.cjs.js +1 -1
  15. package/dist/cjs/post-footer.cjs.entry.js +2 -2
  16. package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
  17. package/dist/cjs/post-popover.cjs.entry.js +4 -4
  18. package/dist/cjs/post-rating.cjs.entry.js +3 -3
  19. package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
  20. package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
  21. package/dist/cjs/post-tabs.cjs.entry.js +3 -3
  22. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +3 -3
  23. package/dist/cjs/post-tooltip.cjs.entry.js +3 -3
  24. package/dist/collection/components/post-avatar/post-avatar.css +1 -1
  25. package/dist/collection/components/post-banner/post-banner.js +2 -2
  26. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +30 -4
  27. package/dist/collection/components/post-closebutton/button-types.js +1 -0
  28. package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
  29. package/dist/collection/components/post-closebutton/post-closebutton.js +65 -5
  30. package/dist/collection/components/post-header/post-header.css +1 -1
  31. package/dist/collection/components/post-header/post-header.js +10 -11
  32. package/dist/collection/components/post-icon/post-icon.js +1 -1
  33. package/dist/collection/components/post-language-option/post-language-option.js +1 -1
  34. package/dist/collection/components/post-language-switch/post-language-switch.js +1 -1
  35. package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
  36. package/dist/collection/components/post-list/post-list.js +1 -1
  37. package/dist/collection/components/post-list-item/post-list-item.js +1 -1
  38. package/dist/collection/components/post-logo/post-logo.js +1 -1
  39. package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
  40. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
  41. package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
  42. package/dist/collection/components/post-megadropdown/post-megadropdown.js +71 -19
  43. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
  44. package/dist/collection/components/post-menu/post-menu.css +1 -1
  45. package/dist/collection/components/post-menu/post-menu.js +15 -6
  46. package/dist/collection/components/post-menu-item/post-menu-item.css +1 -1
  47. package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
  48. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
  49. package/dist/collection/components/post-popover/post-popover.css +1 -1
  50. package/dist/collection/components/post-popover/post-popover.js +1 -1
  51. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +2 -2
  52. package/dist/collection/components/post-rating/post-rating.js +1 -1
  53. package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
  54. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  55. package/dist/collection/components/post-tabs/post-tabs.js +1 -1
  56. package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
  57. package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
  58. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
  59. package/dist/collection/utils/event-from.js +20 -6
  60. package/dist/components/event-from.js +20 -6
  61. package/dist/components/package.js +1 -1
  62. package/dist/components/post-avatar.js +1 -1
  63. package/dist/components/post-banner.js +2 -2
  64. package/dist/components/post-breadcrumbs.js +13 -6
  65. package/dist/components/post-closebutton.js +1 -44
  66. package/dist/components/post-closebutton2.js +77 -0
  67. package/dist/components/post-header.js +8 -12
  68. package/dist/components/post-icon2.js +1 -1
  69. package/dist/components/post-language-option.js +1 -1
  70. package/dist/components/post-language-switch.js +1 -1
  71. package/dist/components/post-linkarea.js +1 -1
  72. package/dist/components/post-list-item.js +1 -1
  73. package/dist/components/post-list.js +1 -1
  74. package/dist/components/post-logo.js +1 -1
  75. package/dist/components/post-mainnavigation.js +2 -2
  76. package/dist/components/post-megadropdown-trigger.js +1 -1
  77. package/dist/components/post-megadropdown.js +72 -20
  78. package/dist/components/post-menu-item2.js +2 -2
  79. package/dist/components/post-menu-trigger2.js +1 -1
  80. package/dist/components/post-menu2.js +14 -7
  81. package/dist/components/post-popover.js +15 -3
  82. package/dist/components/post-popovercontainer2.js +2 -2
  83. package/dist/components/post-rating.js +1 -1
  84. package/dist/components/post-tab-header.js +1 -1
  85. package/dist/components/post-tab-panel.js +1 -1
  86. package/dist/components/post-tabs.js +1 -1
  87. package/dist/components/post-togglebutton.js +1 -1
  88. package/dist/components/post-tooltip-trigger.js +1 -1
  89. package/dist/components/post-tooltip.js +1 -1
  90. package/dist/components/react/{p-B6vPT8S3.js → p-2qJcvMt7.js} +2 -2
  91. package/dist/components/react/{p-DOo9tmN-.js → p-BIslNfKd.js} +3 -3
  92. package/dist/components/react/{p-D50E7y6E.js → p-BRBszIzq.js} +17 -10
  93. package/dist/components/react/{p-BS0ZqwA-.js → p-BVVgwjV0.js} +3 -3
  94. package/dist/components/react/{p-Amg0f2Yo.js → p-BcpJoB81.js} +2 -2
  95. package/dist/components/react/p-BnCGzVcR.js +78 -0
  96. package/dist/components/react/{p-BMdFdJWl.js → p-BsuTiCyd.js} +1 -1
  97. package/dist/components/react/{p-xelWyg_P.js → p-Cpz7bn7D.js} +5 -5
  98. package/dist/{esm/event-from-kraHE1r3.js → components/react/p-CzIKqBrS.js} +20 -6
  99. package/dist/components/react/{p-BDs0pvkX.js → p-D7N0KPNm.js} +2 -2
  100. package/dist/components/react/{p-Do9awHW7.js → p-DC3aZ-Qt.js} +2 -2
  101. package/dist/components/react/p-DgSkXfqW.js +3 -0
  102. package/dist/components/react/{p-D1oOccKr.js → p-WA0BpGMu.js} +2 -2
  103. package/dist/components/react/post-accordion-item.js +1 -1
  104. package/dist/components/react/post-accordion.js +1 -1
  105. package/dist/components/react/post-avatar.js +2 -2
  106. package/dist/components/react/post-back-to-top.js +2 -2
  107. package/dist/components/react/post-banner.js +4 -4
  108. package/dist/components/react/post-breadcrumb-item.js +1 -1
  109. package/dist/components/react/post-breadcrumbs.js +20 -13
  110. package/dist/components/react/post-card-control.js +2 -2
  111. package/dist/components/react/post-closebutton.js +1 -45
  112. package/dist/components/react/post-collapsible-trigger.js +1 -1
  113. package/dist/components/react/post-collapsible.js +1 -1
  114. package/dist/components/react/post-footer.js +6 -6
  115. package/dist/components/react/post-header.js +10 -14
  116. package/dist/components/react/post-icon.js +1 -1
  117. package/dist/components/react/post-language-option.js +2 -2
  118. package/dist/components/react/post-language-switch.js +7 -7
  119. package/dist/components/react/post-linkarea.js +2 -2
  120. package/dist/components/react/post-list-item.js +2 -2
  121. package/dist/components/react/post-list.js +2 -2
  122. package/dist/components/react/post-logo.js +2 -2
  123. package/dist/components/react/post-mainnavigation.js +4 -4
  124. package/dist/components/react/post-megadropdown-trigger.js +3 -3
  125. package/dist/components/react/post-megadropdown.js +73 -21
  126. package/dist/components/react/post-menu-item.js +1 -1
  127. package/dist/components/react/post-menu-trigger.js +1 -1
  128. package/dist/components/react/post-menu.js +1 -1
  129. package/dist/components/react/post-popover.js +17 -5
  130. package/dist/components/react/post-popovercontainer.js +1 -1
  131. package/dist/components/react/post-rating.js +3 -3
  132. package/dist/components/react/post-tab-header.js +2 -2
  133. package/dist/components/react/post-tab-panel.js +2 -2
  134. package/dist/components/react/post-tabs.js +2 -2
  135. package/dist/components/react/post-togglebutton.js +2 -2
  136. package/dist/components/react/post-tooltip-trigger.js +2 -2
  137. package/dist/components/react/post-tooltip.js +3 -3
  138. package/dist/docs.json +125 -9
  139. package/dist/{components/react/p-kraHE1r3.js → esm/event-from-CzIKqBrS.js} +20 -6
  140. package/dist/esm/{get-root-hlzxoycr.js → get-root-BkQ3CrLq.js} +1 -1
  141. package/dist/esm/loader.js +1 -1
  142. package/dist/esm/package-DgSkXfqW.js +3 -0
  143. package/dist/esm/post-accordion_2.entry.js +3 -3
  144. package/dist/esm/post-avatar.entry.js +3 -3
  145. package/dist/esm/post-back-to-top.entry.js +2 -2
  146. package/dist/esm/post-banner.entry.js +5 -5
  147. package/dist/esm/post-breadcrumb-item_2.entry.js +4 -4
  148. package/dist/esm/post-breadcrumbs.entry.js +12 -7
  149. package/dist/esm/post-card-control.entry.js +2 -2
  150. package/dist/esm/post-closebutton_15.entry.js +173 -93
  151. package/dist/esm/post-collapsible_2.entry.js +4 -4
  152. package/dist/esm/post-components.js +1 -1
  153. package/dist/esm/post-footer.entry.js +2 -2
  154. package/dist/esm/post-linkarea.entry.js +2 -2
  155. package/dist/esm/post-popover.entry.js +4 -4
  156. package/dist/esm/post-rating.entry.js +3 -3
  157. package/dist/esm/post-tab-header.entry.js +3 -3
  158. package/dist/esm/post-tab-panel.entry.js +3 -3
  159. package/dist/esm/post-tabs.entry.js +3 -3
  160. package/dist/esm/post-tooltip-trigger.entry.js +3 -3
  161. package/dist/esm/post-tooltip.entry.js +3 -3
  162. package/dist/post-components/{p-8d2e5814.entry.js → p-017fbd63.entry.js} +1 -1
  163. package/dist/post-components/{p-b0aaa058.entry.js → p-0b1143d4.entry.js} +1 -1
  164. package/dist/post-components/{p-36358cd4.entry.js → p-2440cba5.entry.js} +1 -1
  165. package/dist/post-components/{p-d221395c.entry.js → p-2b003617.entry.js} +1 -1
  166. package/dist/post-components/p-2c1e0e21.entry.js +1 -0
  167. package/dist/post-components/p-509ae720.entry.js +1 -0
  168. package/dist/post-components/{p-a982458f.entry.js → p-759510e5.entry.js} +1 -1
  169. package/dist/post-components/{p-BkvZk-PA.js → p-CBFgkSgY.js} +1 -1
  170. package/dist/post-components/p-CJ80BZ06.js +1 -0
  171. package/dist/post-components/p-CzIKqBrS.js +1 -0
  172. package/dist/post-components/p-DgSkXfqW.js +1 -0
  173. package/dist/post-components/{p-33008981.entry.js → p-a9d4dc7f.entry.js} +1 -1
  174. package/dist/post-components/p-b871aa1b.entry.js +1 -0
  175. package/dist/post-components/{p-26a04741.entry.js → p-d0fea1d7.entry.js} +1 -1
  176. package/dist/post-components/p-d25fc2d8.entry.js +1 -0
  177. package/dist/post-components/{p-16da91bc.entry.js → p-d377069a.entry.js} +1 -1
  178. package/dist/post-components/{p-bdeef760.entry.js → p-e764835b.entry.js} +1 -1
  179. package/dist/post-components/{p-84395e1d.entry.js → p-ea71d9fd.entry.js} +1 -1
  180. package/dist/post-components/{p-2f2f9b22.entry.js → p-ef38c78d.entry.js} +1 -1
  181. package/dist/post-components/{p-01bc39c2.entry.js → p-efa44b64.entry.js} +1 -1
  182. package/dist/post-components/p-f86fb192.entry.js +1 -0
  183. package/dist/post-components/{p-e49aa78e.entry.js → p-feed36d6.entry.js} +1 -1
  184. package/dist/post-components/post-components.esm.js +1 -1
  185. package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +5 -0
  186. package/dist/types/components/post-closebutton/button-types.d.ts +2 -0
  187. package/dist/types/components/post-closebutton/post-closebutton.d.ts +10 -1
  188. package/dist/types/components/post-header/post-header.d.ts +3 -0
  189. package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +32 -6
  190. package/dist/types/components/post-menu/post-menu.d.ts +3 -1
  191. package/dist/types/components.d.ts +22 -2
  192. package/dist/types/utils/event-from.d.ts +2 -1
  193. package/hydrate/index.js +188 -82
  194. package/hydrate/index.mjs +188 -82
  195. package/package.json +3 -3
  196. package/dist/components/react/p-DO48NanC.js +0 -3
  197. package/dist/esm/package-DO48NanC.js +0 -3
  198. package/dist/post-components/p-0dc1e940.entry.js +0 -1
  199. package/dist/post-components/p-71c48d48.entry.js +0 -1
  200. package/dist/post-components/p-848c10ac.entry.js +0 -1
  201. package/dist/post-components/p-9dbe6595.entry.js +0 -1
  202. package/dist/post-components/p-DO48NanC.js +0 -1
  203. package/dist/post-components/p-_0G7tavk.js +0 -1
  204. package/dist/post-components/p-eb405167.entry.js +0 -1
  205. package/dist/post-components/p-kraHE1r3.js +0 -1
  206. package/dist/cjs/{breakpoints-DmZ_BQGo.js → breakpoints-CEkeixld.js} +3 -3
  207. package/dist/esm/{breakpoints-_0G7tavk.js → breakpoints-CJ80BZ06.js} +3 -3
package/hydrate/index.mjs CHANGED
@@ -3227,7 +3227,7 @@ var registerHost = (elm, cmpMeta) => {
3227
3227
  };
3228
3228
  var styles = /* @__PURE__ */ new Map();
3229
3229
 
3230
- const version$1 = "10.0.0-next.49";
3230
+ const version$1 = "10.0.0-next.51";
3231
3231
 
3232
3232
  const HEADING_LEVELS = [1, 2, 3, 4, 5, 6];
3233
3233
 
@@ -3607,12 +3607,20 @@ function debounce(callback, timeout = 200) {
3607
3607
  * @param ignoreNestedComponents - Whether to ignore events from nested components
3608
3608
  * @returns true if the event should be processed, false otherwise
3609
3609
  */
3610
- function shouldProcessEvent(event, tag, host, ignoreNestedComponents) {
3610
+ function shouldProcessEvent(event, tag, host, ignoreNestedComponents, allowDescendants = false) {
3611
3611
  if (!(event instanceof Event && event.target instanceof HTMLElement))
3612
3612
  return false;
3613
3613
  const eventTarget = event.target;
3614
- if (eventTarget.localName !== tag)
3615
- return false;
3614
+ if (allowDescendants) {
3615
+ // Accept event if target or any ancestor matches tag
3616
+ if (!eventTarget.closest(tag))
3617
+ return false;
3618
+ }
3619
+ else {
3620
+ // Only accept event if target exactly matches tag
3621
+ if (eventTarget.localName !== tag)
3622
+ return false;
3623
+ }
3616
3624
  if (ignoreNestedComponents) {
3617
3625
  // Find the closest parent with the same tag as the host
3618
3626
  const closestParentWithSameTag = findClosestParentWithTag(eventTarget, host.localName);
@@ -3627,12 +3635,18 @@ function shouldProcessEvent(event, tag, host, ignoreNestedComponents) {
3627
3635
  * @param option - Configuration options for the event guard
3628
3636
  * @param option.ignoreNestedComponents - Whether to ignore events from nested components
3629
3637
  */
3630
- function EventFrom(tag, option = { ignoreNestedComponents: true }) {
3638
+ function EventFrom(tag, option) {
3639
+ // Set default values here
3640
+ const opts = {
3641
+ ignoreNestedComponents: true,
3642
+ allowDescendants: false,
3643
+ ...option,
3644
+ };
3631
3645
  return function (target, propertyKey, descriptor) {
3632
3646
  if (descriptor) {
3633
3647
  const originalMethod = descriptor.value;
3634
3648
  descriptor.value = function (event) {
3635
- if (!shouldProcessEvent(event, tag, this.host, option.ignoreNestedComponents)) {
3649
+ if (!shouldProcessEvent(event, tag, this.host, opts.ignoreNestedComponents, opts.allowDescendants)) {
3636
3650
  return;
3637
3651
  }
3638
3652
  return originalMethod.call(this, event);
@@ -3658,7 +3672,7 @@ function EventFrom(tag, option = { ignoreNestedComponents: true }) {
3658
3672
  if (typeof originalFunction === 'function') {
3659
3673
  // Store original and add new behavior
3660
3674
  this[privateKey] = (event) => {
3661
- if (!shouldProcessEvent(event, tag, this.host, option.ignoreNestedComponents)) {
3675
+ if (!shouldProcessEvent(event, tag, this.host, opts.ignoreNestedComponents)) {
3662
3676
  return;
3663
3677
  }
3664
3678
  return originalFunction.call(this, event);
@@ -3965,7 +3979,7 @@ async function cryptify(key) {
3965
3979
  }
3966
3980
  const GRAVATAR_BASE_URL = `https://www.gravatar.com/avatar/{email}?s=${GRAVATAR_SIZE}&d=${GRAVATAR_DEFAULT}&r=${GRAVATAR_RATING}`;
3967
3981
 
3968
- const postAvatarCss = ":host{--post-avatar-bg:var(--post-scheme-color-interactive-primary-enabled-bg2);--post-avatar-fg:var(--post-scheme-color-interactive-primary-enabled-fg3);display:inline-flex;position:relative;width:var(--post-device-sizing-interactive-icon-size3);height:var(--post-device-sizing-interactive-icon-size3);background-color:var(--post-scheme-color-interactive-primary-enabled-stroke3);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3);border-radius:var(--post-device-border-radius-round);font-size:var(--post-device-font-size-8);vertical-align:top;line-height:1}:host::after{display:block;content:\"\";position:absolute;inset:0;z-index:1;border-radius:inherit}*,*::before,*::after{box-sizing:border-box}slot,img,::slotted(img){display:block;width:100%;height:100%}img,::slotted(img){border-radius:var(--post-device-border-radius-round)}::slotted(:not(img)){display:none !important}.initials{display:flex;justify-content:center;align-items:center;position:relative;z-index:2;width:100%;height:100%;background-color:var(--post-avatar-bg);border-radius:var(--post-device-border-radius-round);color:var(--post-avatar-fg);text-transform:uppercase}.initials span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";
3982
+ const postAvatarCss = ":host{--post-avatar-bg:var(--post-scheme-color-interactive-primary-enabled-bg2);--post-avatar-fg:var(--post-scheme-color-interactive-primary-enabled-fg3);display:inline-flex;position:relative;width:var(--post-device-sizing-interactive-icon-size3);height:var(--post-device-sizing-interactive-icon-size3);background-color:var(--post-scheme-color-interactive-primary-enabled-stroke3);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3);border-radius:var(--post-device-border-radius-round);font-size:var(--post-device-font-size-8);vertical-align:top;line-height:1}:host::after{display:block;content:\"\";position:absolute;inset:0;z-index:1;border-radius:inherit}*,*::before,*::after{box-sizing:border-box}slot,img,::slotted(img){display:block;width:100%;height:100%}img,::slotted(img){border-radius:var(--post-device-border-radius-round)}::slotted(:not(img)){display:none !important}.initials{display:flex;justify-content:center;align-items:center;position:relative;z-index:2;width:100%;height:100%;background-color:var(--post-avatar-bg);border-radius:var(--post-device-border-radius-round);color:var(--post-avatar-fg);text-transform:uppercase;font-weight:400}.initials span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";
3969
3983
 
3970
3984
  const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
3971
3985
  var AvatarType;
@@ -4339,7 +4353,7 @@ class PostBanner {
4339
4353
  this.hasActions = this.host.querySelectorAll('[slot="actions"]').length > 0;
4340
4354
  }
4341
4355
  render() {
4342
- return (hAsync(Host, { key: '19641b12825c94a231efe578e88311b472f0eb42', "data-version": version$1, role: "alert" }, hAsync("slot", { key: '04b74f66a745c6129bcb10d09f04a62c91a70152', name: "close-button" }), hAsync("slot", { key: '88bb29ea3a03832a5bea94a8debe70a403301cd2', name: "heading" }), hAsync("slot", { key: 'd55f25fb5b80c39cbf0b30cd1ede9dc9468976ae' }), this.hasActions && (hAsync("div", { key: '01b5f090073200b760de83345190606a4ef10bc3', class: "actions" }, hAsync("slot", { key: '3fe63a04145402158c3c3e5028ec6d1c0d85f161', name: "actions" })))));
4356
+ return (hAsync(Host, { key: 'fbaf407e5bb79e3e9ab141fe7e8c9cd30c623020', "data-version": version$1, role: "alert" }, hAsync("slot", { key: 'c33efd8785392e5ffb037cded176f0c9d15405df', name: "close-button" }), hAsync("slot", { key: '762de4f8c6996f43c88ca02968b70dbd980cde00', name: "heading" }), hAsync("slot", { key: 'e46bb26c3b85795cbd3fcb854efcba7456062d56' }), this.hasActions && (hAsync("div", { key: '7c38eb6721cf1a0e427d6e096260d9b4a0523295', class: "actions" }, hAsync("slot", { key: '7ae6ecbb21f63629ed779373ce60c7cedfb988a4', name: "actions" })))));
4343
4357
  }
4344
4358
  get host() { return getElement(this); }
4345
4359
  static get watchers() { return {
@@ -4360,7 +4374,7 @@ class PostBanner {
4360
4374
  }; }
4361
4375
  }
4362
4376
  __decorate$5([
4363
- EventFrom('post-closebutton')
4377
+ EventFrom('post-closebutton', { allowDescendants: true })
4364
4378
  ], PostBanner.prototype, "onCloseButtonClick", null);
4365
4379
 
4366
4380
  const postBreadcrumbItemCss = ":host{display:flex;align-items:center;justify-content:start;gap:var(--post-device-spacing-gap-inline-5)}:host post-icon{box-sizing:border-box;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24);padding-block:var(--post-core-dimension-4);padding-inline:var(--post-core-dimension-4)}.breadcrumb-item{white-space:nowrap;line-height:150%;padding-block:var(--post-device-spacing-padding-block-7);color:var(--post-scheme-color-interactive-primary-enabled-fg1);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item{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(: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(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item: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(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.breadcrumb-item:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item:focus-visible{border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item,.breadcrumb-item:focus,.breadcrumb-item:hover{color:LinkText !important}.breadcrumb-item:visited{color:VisitedText !important}}";
@@ -4457,12 +4471,16 @@ class PostBreadcrumbs {
4457
4471
  validateHomeText() {
4458
4472
  checkEmptyOrType(this, 'homeUrl', 'string');
4459
4473
  }
4474
+ validateLabel() {
4475
+ checkRequiredAndType(this, 'menuLabel', 'string');
4476
+ }
4460
4477
  componentWillLoad() {
4461
4478
  this.updateBreadcrumbItems();
4462
4479
  }
4463
4480
  componentDidLoad() {
4464
4481
  this.validateHomeUrl();
4465
4482
  this.validateHomeText();
4483
+ this.validateLabel();
4466
4484
  window.addEventListener('resize', this.handleResize);
4467
4485
  this.waitForBreadcrumbsRef();
4468
4486
  }
@@ -4510,23 +4528,24 @@ class PostBreadcrumbs {
4510
4528
  }
4511
4529
  render() {
4512
4530
  const visibleItems = this.breadcrumbItems.slice(0, -1);
4513
- return (hAsync(Host, { key: '63aca66513f387393298974f2aab4612e6b88582', "data-version": version$1 }, hAsync("nav", { key: '83b0d60fbef05c3949f60c87beab362c1544974e', "aria-label": "Breadcrumbs", class: "breadcrumbs-nav", ref: el => (this.breadcrumbsNavRef = el) }, hAsync("ol", { key: '601967bc5030c152ea0762e43e6401f43b70f7d6', class: "no-list breadcrumbs-list" }, hAsync("li", { key: 'f919fac42714471497c96404bda1cd04f27a6def' }, hAsync("a", { key: '564fde4ff971b0c2d6300b7150c307c118f975f0', href: this.homeUrl, class: "breadcrumb-link" }, hAsync("span", { key: 'e60db1d460abd329c09c31d83ad5f8cef91ad396', class: "visually-hidden" }, this.homeText), hAsync("post-icon", { key: '686fd3d433918044773d1e9bdc26bfeb77a06b8d', name: "home", class: "home-icon" }))), this.isConcatenated ? (hAsync("li", { role: "none", class: "menu-trigger-wrapper", onKeyDown: e => {
4531
+ return (hAsync(Host, { key: '6e0095670a7f07079a0aa135673f49d74b5308e7', "data-version": version$1 }, hAsync("nav", { key: '9558a78399f82f7168a5958470aed393a5ca035e', "aria-label": "Breadcrumbs", class: "breadcrumbs-nav", ref: el => (this.breadcrumbsNavRef = el) }, hAsync("ol", { key: 'a1cd27d3f95a23a4a94937b582588f0b87cf33f6', class: "no-list breadcrumbs-list" }, hAsync("li", { key: '7a3917328194a2676e22776f8946639d4a4e4c17' }, hAsync("a", { key: '56e224d2b484efd5a88a9df63f09450757e3f0ae', href: this.homeUrl, class: "breadcrumb-link" }, hAsync("span", { key: '94fbe7c49748926d2fdb419ce4c212b7f0b9e419', class: "visually-hidden" }, this.homeText), hAsync("post-icon", { key: '25c64b9e548eaa92ca0f3da55a0b09d2ec17f876', name: "home", class: "home-icon" }))), this.isConcatenated ? (hAsync("li", { role: "none", class: "menu-trigger-wrapper", onKeyDown: e => {
4514
4532
  if (e.key === 'Enter' || e.key === ' ') {
4515
4533
  e.preventDefault();
4516
4534
  this.handleBreadcrumbItemClick();
4517
4535
  }
4518
- } }, hAsync("post-icon", { name: "2111", class: "breadcrumb-item-icon" }), hAsync("div", { class: "actual-menu" }, hAsync("post-menu-trigger", { for: "breadcrumb-menu", tabIndex: 0 }, hAsync("button", { class: "btn test", tabIndex: -1 }, "...")), hAsync("post-menu", { id: "breadcrumb-menu" }, visibleItems.map(item => (hAsync("post-menu-item", { key: item.url || item.text, class: "breadcrumb-item", onKeyDown: e => {
4536
+ } }, hAsync("post-icon", { name: "2111", class: "breadcrumb-item-icon" }), hAsync("div", { class: "actual-menu" }, hAsync("post-menu-trigger", { for: "breadcrumb-menu", tabIndex: 0 }, hAsync("button", { class: "btn test", tabIndex: -1 }, "...")), hAsync("post-menu", { id: "breadcrumb-menu", label: this.menuLabel }, visibleItems.map(item => (hAsync("post-menu-item", { key: item.url || item.text, class: "breadcrumb-item", onKeyDown: e => {
4519
4537
  if (e.key === 'Enter' || e.key === ' ') {
4520
4538
  const linkElement = e.currentTarget.querySelector('a');
4521
4539
  linkElement?.click();
4522
4540
  e.preventDefault();
4523
4541
  }
4524
- } }, item.url ? hAsync("a", { href: item.url }, item.text) : hAsync("span", null, item.text)))))))) : (visibleItems.map(item => (hAsync("li", null, hAsync("post-breadcrumb-item", { url: item.url, key: item.url || item.text }, item.text))))), this.lastItem && (hAsync("li", { key: '3472602f057c6faa74f32c63967ac9923418d09a', "aria-current": "page" }, hAsync("post-breadcrumb-item", { key: '9211a74f3c4ec8f73e6b2e3d807b5376ad399ea5', url: this.lastItem.url, tabindex: -1 }, this.lastItem.text)))), hAsync("div", { key: '1800ad0e739e9cbf1bc44c3dc79c96602e3d9420', class: "hidden-items" }, hAsync("a", { key: '6fcfe8ca909e317454a1699c768f34fe9ba6794f', href: this.homeUrl, class: "hidden-breadcrumb-item" }, hAsync("span", { key: '541a5cfeaf59938a77feb24a86e7035a1145ecf0', class: "visually-hidden" }, this.homeText), hAsync("post-icon", { key: 'd96c44644b05d692d376000277227129207ae93f', name: "home", class: "home-icon" })), this.breadcrumbItems.map(item => (hAsync("post-breadcrumb-item", { url: item.url, key: `hidden-${item.url || item.text}`, class: "hidden-breadcrumb-item" }, item.text)))))));
4542
+ } }, item.url ? hAsync("a", { href: item.url }, item.text) : hAsync("span", null, item.text)))))))) : (visibleItems.map(item => (hAsync("li", null, hAsync("post-breadcrumb-item", { url: item.url, key: item.url || item.text }, item.text))))), this.lastItem && (hAsync("li", { key: '81337a6c458f5d9eb761f7764f12db3b442d310f', "aria-current": "page" }, hAsync("post-breadcrumb-item", { key: 'af840f26afe472d479bc8515252f4dca1f565f55', url: this.lastItem.url, tabindex: -1 }, this.lastItem.text)))), hAsync("div", { key: 'ea12eee48b386a1dc35978269e20f0e360d72e59', class: "hidden-items" }, hAsync("a", { key: '9a0427d1dbdd98b7174fbe8d117d3ab36e66ffe3', href: this.homeUrl, class: "hidden-breadcrumb-item" }, hAsync("span", { key: '661f29d2c9c2acb6d46c98f06b56e561f488c750', class: "visually-hidden" }, this.homeText), hAsync("post-icon", { key: 'e7585ea456944250e55915cdc38496c050a81a12', name: "home", class: "home-icon" })), this.breadcrumbItems.map(item => (hAsync("post-breadcrumb-item", { url: item.url, key: `hidden-${item.url || item.text}`, class: "hidden-breadcrumb-item" }, item.text)))))));
4525
4543
  }
4526
4544
  get host() { return getElement(this); }
4527
4545
  static get watchers() { return {
4528
4546
  "homeUrl": ["validateHomeUrl"],
4529
- "homeText": ["validateHomeText"]
4547
+ "homeText": ["validateHomeText"],
4548
+ "menuLabel": ["validateLabel"]
4530
4549
  }; }
4531
4550
  static get style() { return postBreadcrumbsCss; }
4532
4551
  static get cmpMeta() { return {
@@ -4535,6 +4554,7 @@ class PostBreadcrumbs {
4535
4554
  "$members$": {
4536
4555
  "homeUrl": [1, "home-url"],
4537
4556
  "homeText": [1, "home-text"],
4557
+ "menuLabel": [1, "menu-label"],
4538
4558
  "breadcrumbItems": [32],
4539
4559
  "isConcatenated": [32],
4540
4560
  "lastWindowWidth": [32]
@@ -4852,7 +4872,9 @@ class PostCardControl {
4852
4872
  }; }
4853
4873
  }
4854
4874
 
4855
- const postClosebuttonCss = ".btn-icon-close{padding:0;border:unset;min-height:unset;min-width:unset;width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1);border-radius:var(--post-device-border-radius-round);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-icon-close>post-icon{min-width:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);height:var(--post-device-sizing-interactive-icon-size4)}.btn-icon-close:not(:disabled):hover,.btn-icon-close.pretend-hover{cursor:pointer;background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-icon-close:not(:disabled):hover,.btn-icon-close.pretend-hover{color:HighlightText !important}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";
4875
+ const BUTTON_TYPES = ['button', 'submit', 'reset'];
4876
+
4877
+ const postClosebuttonCss = ".visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}post-closebutton .btn{padding:0;border:unset;min-height:unset;min-width:unset;width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1);border-radius:var(--post-device-border-radius-round);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}post-closebutton .btn>post-icon{min-width:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);height:var(--post-device-sizing-interactive-icon-size4)}post-closebutton .btn:not(:disabled):hover,post-closebutton .btn.pretend-hover{cursor:pointer;background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-closebutton .btn:not(:disabled):hover,post-closebutton .btn.pretend-hover{color:HighlightText !important}}";
4856
4878
 
4857
4879
  /**
4858
4880
  * @slot default - Slot for placing visually hidden label in the close button.
@@ -4860,24 +4882,50 @@ const postClosebuttonCss = ".btn-icon-close{padding:0;border:unset;min-height:un
4860
4882
  class PostClosebutton {
4861
4883
  constructor(hostRef) {
4862
4884
  registerInstance(this, hostRef);
4885
+ this.mutationObserver = new MutationObserver(this.checkContent.bind(this));
4886
+ /**
4887
+ * Overrides the close button's type ("button" by default)
4888
+ */
4889
+ this.buttonType = 'button';
4890
+ }
4891
+ validateButtonType() {
4892
+ checkEmptyOrOneOf(this, 'buttonType', BUTTON_TYPES);
4863
4893
  }
4864
4894
  componentDidLoad() {
4865
- this.checkHiddenLabel();
4895
+ this.checkContent();
4866
4896
  }
4867
- checkHiddenLabel(slot = this.host.shadowRoot.querySelector('.visually-hidden slot')) {
4868
- if (slot.assignedNodes().length === 0) {
4897
+ connectedCallback() {
4898
+ this.mutationObserver.observe(this.host, {
4899
+ childList: true,
4900
+ characterData: true,
4901
+ subtree: true,
4902
+ });
4903
+ }
4904
+ disconnectedCallback() {
4905
+ if (this.mutationObserver) {
4906
+ this.mutationObserver.disconnect();
4907
+ }
4908
+ }
4909
+ checkContent() {
4910
+ this.validateButtonType();
4911
+ if (!this.host.querySelector('.visually-hidden').textContent) {
4869
4912
  console.error(`The \`${this.host.localName}\` component requires content for accessibility.`);
4870
4913
  }
4871
4914
  }
4872
4915
  render() {
4873
- return (hAsync(Host, { key: 'ee54a84df2fbb214706f5f2eb527769b03846819', "data-version": version$1 }, hAsync("button", { key: '39ce661db0611bbe4387a32a9d7c91b1f5bc8b17', class: "btn btn-icon-close", type: "button" }, hAsync("post-icon", { key: '26aced13eacfa369e82178e5551372700499e556', "aria-hidden": "true", name: "closex" }), hAsync("span", { key: '01bcad725724a3ae95e79e25d58958eb4ee2ffa3', class: "visually-hidden" }, hAsync("slot", { key: 'bd794bf53acbf2fbcf1855ce882bcd442d2a846f', onSlotchange: () => this.checkHiddenLabel() })))));
4916
+ return (hAsync(Host, { key: '9b5bb7e95c6cf3039119ce485e963ac672834bc3', "data-version": version$1 }, hAsync("button", { key: '084709a7c632a8c665905a667fa6498cae1972a6', class: "btn", type: this.buttonType }, hAsync("post-icon", { key: 'e19209e0c8de59d3e187531e0185d8f2d5c85408', "aria-hidden": "true", name: "closex" }), hAsync("span", { key: '233184a45391e5a9b89635345f2324a87f5e9558', class: "visually-hidden" }, hAsync("slot", { key: 'c213ac1dbdd98d83a8b2dc1b74c85926404ad1c1' })))));
4874
4917
  }
4875
4918
  get host() { return getElement(this); }
4919
+ static get watchers() { return {
4920
+ "buttonType": ["validateButtonType"]
4921
+ }; }
4876
4922
  static get style() { return postClosebuttonCss; }
4877
4923
  static get cmpMeta() { return {
4878
- "$flags$": 9,
4924
+ "$flags$": 4,
4879
4925
  "$tagName$": "post-closebutton",
4880
- "$members$": undefined,
4926
+ "$members$": {
4927
+ "buttonType": [1, "button-type"]
4928
+ },
4881
4929
  "$listeners$": undefined,
4882
4930
  "$lazyBundleId$": "-",
4883
4931
  "$attrsToReflect$": []
@@ -5197,7 +5245,7 @@ function slideDown(el, translateSize = '-100%') {
5197
5245
  });
5198
5246
  }
5199
5247
 
5200
- const postHeaderCss = "*,::before,::after{box-sizing:border-box}:host{z-index:1020;position:relative;--post-logo-height:calc(var(--post-global-header-expanded-height) - var(--post-header-scroll-top, 0px));--post-global-header-top:calc( var(--post-global-header-reduced-height) - var(--post-global-header-expanded-height) );--post-local-header-top:calc( var(--post-global-header-reduced-height) + var(--post-local-header-reduced-height) - var(--post-local-header-expanded-height) );--post-global-controls-top:clamp( 1000 * var(--post-global-header-top), calc(-1 * min(var(--post-header-scroll-top, 0px) / 4, var(--post-global-header-reduced-height))), 0px )}@media screen and (min-width: 1024px){:host:has(.global-sub>*:not(.logo):focus-within),:host:has(.local-sub:focus-within){--post-global-header-top:0;--post-local-header-top:var(--post-global-header-expanded-height);--post-logo-height:var(--post-global-header-expanded-height);--post-global-controls-top:0}}.d-flex{display:flex}.space-between{justify-content:space-between}.global-header{background-color:#fc0;display:flex;justify-content:space-between;position:sticky;padding-inline:4px;height:var(--post-global-header-expanded-height)}@media screen and (max-width: 1023.98px){.global-header{z-index:4;inset-block-start:0}}@media screen and (min-width: 1024px){.global-header{z-index:5;padding-inline-end:8px;inset-block-start:var(--post-global-header-top);transition:inset-block-start .2s ease-in-out}}.global-header:has(+.local-header.no-navigation.no-title){box-shadow:var(--post-device-elevation-300)}.global-sub{display:flex;align-items:center;gap:24px}@media screen and (min-width: 1024px){.global-sub:not(:has(.logo)){position:relative;transition:inset-block-start .2s ease-in-out;inset-block-start:var(--post-global-controls-top)}.global-sub:not(:last-child):not(:first-child){flex-grow:1}}.align-end{align-items:flex-end}.logo{flex:1 0 auto;height:var(--post-global-header-expanded-height);width:var(--post-global-header-expanded-height);min-height:var(--post-global-header-reduced-height);align-self:flex-end}@media screen and (min-width: 1024px){.logo{transition:height .2 ease-in-out;height:var(--post-logo-height)}}::slotted(ul){margin-block:0 !important;list-style:none;display:flex;padding-inline-start:0;gap:1rem;flex-shrink:0 !important}.local-header{display:flex;position:sticky;inset-block-start:var(--post-local-header-top);flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px;min-height:var(--post-local-header-expanded-min-height);background:#fff;transition:box-shadow .2s ease-in-out}.local-header::after{content:\"\";position:absolute;width:100%;height:1px;background-color:#e1e0dc;inset-block-end:-1px;z-index:1}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.local-header::after{background-color:Highlight}}@media screen and (min-width: 1024px){.local-header{z-index:3;box-shadow:var(--post-device-elevation-300);transition:box-shadow .2s ease-in-out,inset-block-start .2s ease-in-out}.local-header:not(.no-title){padding-block-start:18px}}@media screen and (max-width: 1023.98px){.local-header{z-index:3;padding-block:8px;flex-wrap:wrap;gap:12px}.local-header.local-header-mobile-extended::after{inset-block-end:0}.local-header:not(.local-header-mobile-extended){box-shadow:var(--post-device-elevation-300)}}.local-header.no-navigation{padding-block:0}.local-header.no-navigation .navigation{display:none}.local-header.no-navigation.no-title{display:none}.local-sub{margin-inline-end:16px}@media screen and (max-width: 1023.98px){.local-sub{margin-inline-end:4px}}::slotted(.list-inline){margin:0 !important;z-index:3 !important;position:relative !important}@media screen and (min-width: 1024px){.mobile-toggle{display:none}}.navigation{width:100%}@media screen and (min-width: 1024px){.navigation{inset-block-start:var(--post-global-header-reduced-height)}.navigation::before{display:block;content:\"\";position:absolute;inset:0;z-index:2;background:#fff}}@media screen and (max-width: 1023.98px){.navigation{position:sticky;z-index:2;inset-inline:0;inset-block-start:var(--post-header-height)}.mobile-menu{background-color:#fafafa}::slotted(post-mainnavigation),.navigation-footer{padding-block:16px 24px;padding-inline:40px}::slotted(post-mainnavigation),.navigation-footer,.navigation-target-group{display:none;flex-direction:column}.navigation.extended ::slotted(post-mainnavigation),.navigation.extended .navigation-footer,.navigation.extended .navigation-target-group{display:flex}::slotted(post-mainnavigation){padding-block:24px}.navigation.extended>div{display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;height:calc(min(var(--post-header-scroll-parent-height, 100dvh),100dvh) - var(--post-header-height))}.navigation.extended.megadropdown-open>div{overflow-y:hidden}.navigation.extended ::slotted(post-mainnavigation){flex-grow:1 !important}.navigation-footer{background-color:#f0efed;gap:24px}.navigation-footer ::slotted(post-language-switch){margin-top:16px}}@media screen and (max-width: 1023.98px)and (max-width: 599.98px){.navigation-footer{gap:16px}}@media screen and (max-width: 599.98px){::slotted(post-mainnavigation),.navigation-footer{padding-inline:16px}}";
5248
+ const postHeaderCss = "*,::before,::after{box-sizing:border-box}:host{z-index:1020;position:relative;--post-logo-height:calc(var(--post-global-header-expanded-height) - var(--post-header-scroll-top, 0px));--post-global-header-top:calc( var(--post-global-header-reduced-height) - var(--post-global-header-expanded-height) );--post-local-header-top:calc( var(--post-global-header-reduced-height) + var(--post-local-header-reduced-height) - var(--post-local-header-expanded-height) );--post-global-controls-top:clamp( 1000 * var(--post-global-header-top), calc(-1 * min(var(--post-header-scroll-top, 0px) / 4, var(--post-global-header-reduced-height))), 0px )}@media screen and (min-width: 1024px){:host:has(.global-sub>*:not(.logo):focus-within),:host:has(.local-sub:focus-within){--post-global-header-top:0;--post-local-header-top:var(--post-global-header-expanded-height);--post-logo-height:var(--post-global-header-expanded-height);--post-global-controls-top:0}}.d-flex{display:flex}.space-between{justify-content:space-between}.global-header{background-color:#fc0;display:flex;justify-content:space-between;position:sticky;padding-inline:4px;height:var(--post-global-header-expanded-height)}@media screen and (max-width: 1023.98px){.global-header{z-index:4;inset-block-start:0}}@media screen and (min-width: 1024px){.global-header{z-index:5;padding-inline-end:8px;inset-block-start:var(--post-global-header-top);transition:inset-block-start .2s ease-in-out}}.global-header:has(+.local-header.no-navigation.no-title){box-shadow:var(--post-device-elevation-300)}.global-sub{display:flex;align-items:center;gap:4px}@media screen and (min-width: 1024px){.global-sub:not(:has(.logo)){position:relative;transition:inset-block-start .2s ease-in-out;inset-block-start:var(--post-global-controls-top)}.global-sub:not(:last-child):not(:first-child){flex-grow:1}}.align-end{align-items:flex-end}.logo{flex:1 0 auto;height:var(--post-global-header-expanded-height);width:var(--post-global-header-expanded-height);min-height:var(--post-global-header-reduced-height);align-self:flex-end}@media screen and (min-width: 1024px){.logo{transition:height .2 ease-in-out;height:var(--post-logo-height)}}::slotted(ul){margin-block:0 !important;list-style:none;display:flex;padding-inline-start:0;gap:1rem;flex-shrink:0 !important}.local-header{display:flex;position:sticky;inset-block-start:var(--post-local-header-top);flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px;min-height:var(--post-local-header-expanded-min-height);background:#fff;transition:box-shadow .2s ease-in-out}.local-header::after{content:\"\";position:absolute;width:100%;height:1px;background-color:#e1e0dc;inset-block-end:-1px;z-index:1}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.local-header::after{background-color:Highlight}}@media screen and (min-width: 1024px){.local-header{z-index:3;box-shadow:var(--post-device-elevation-300);transition:box-shadow .2s ease-in-out,inset-block-start .2s ease-in-out}.local-header:not(.no-title){padding-block-start:18px}}@media screen and (max-width: 1023.98px){.local-header{z-index:3;padding-block:8px;flex-wrap:wrap;gap:12px}.local-header.local-header-mobile-extended::after{inset-block-end:0}.local-header:not(.local-header-mobile-extended){box-shadow:var(--post-device-elevation-300)}}.local-header.no-navigation{padding-block:0}.local-header.no-navigation .navigation{display:none}.local-header.no-navigation.no-title{display:none}.local-sub{margin-inline-end:16px}@media screen and (max-width: 1023.98px){.local-sub{margin-inline-end:4px}}::slotted(.list-inline){margin:0 !important;z-index:3 !important;position:relative !important}@media screen and (min-width: 1024px){.mobile-toggle{display:none}}.navigation{width:100%}@media screen and (min-width: 1024px){.navigation{display:flex;align-items:center;justify-content:space-between;inset-block-start:var(--post-global-header-reduced-height)}.navigation::before{display:block;content:\"\";position:absolute;inset:0;z-index:2;background:#fff}}@media screen and (max-width: 1023.98px){.navigation{position:sticky;z-index:2;inset-inline:0;inset-block-start:var(--post-header-height)}.mobile-menu{background-color:#fafafa}::slotted(post-mainnavigation),.navigation-footer{padding-block:16px 24px;padding-inline:40px}.navigation-header,::slotted(post-mainnavigation),.navigation-footer{display:none;flex-direction:column}.navigation.extended .navigation-header,.navigation.extended ::slotted(post-mainnavigation),.navigation.extended .navigation-footer{display:flex}::slotted(post-mainnavigation){padding-block:24px}.navigation.extended>div{display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;height:calc(min(var(--post-header-scroll-parent-height, 100dvh),100dvh) - var(--post-header-height))}.navigation.extended.megadropdown-open>div{overflow-y:hidden}.navigation.extended ::slotted(post-mainnavigation){flex-grow:1 !important}.navigation-footer{background-color:#f0efed;gap:24px}.navigation-footer ::slotted(post-language-switch){margin-top:16px}}@media screen and (max-width: 1023.98px)and (max-width: 599.98px){.navigation-footer{gap:16px}}@media screen and (max-width: 599.98px){::slotted(post-mainnavigation),.navigation-footer{padding-inline:16px}}";
5201
5249
 
5202
5250
  var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
5203
5251
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -5211,6 +5259,7 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
5211
5259
  };
5212
5260
  /**
5213
5261
  * @slot post-logo - Should be used together with the `<post-logo>` component.
5262
+ * @slot global-controls - Holds search button in the global header.
5214
5263
  * @slot meta-navigation - Holds an `<ul>` with meta navigation links.
5215
5264
  * @slot post-togglebutton - Holds the mobile menu toggler.
5216
5265
  * @slot post-language-switch - Should be used with the `<post-language-switch>` component.
@@ -5218,6 +5267,8 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
5218
5267
  * @slot default - Custom controls or content, right aligned in the local header.
5219
5268
  * @slot post-mainnavigation - Has a default slot because it's only meant to be used in the `<post-header>`.
5220
5269
  * @slot target-group - Holds the list of buttons to choose the target group.
5270
+ * @slot global-login - Holds the user menu or login button in the global header.
5271
+ * @slot navigation-controls - Custom controls, right aligned with the main navigation.
5221
5272
  */
5222
5273
  class PostHeader {
5223
5274
  get hasMobileMenu() {
@@ -5312,7 +5363,8 @@ class PostHeader {
5312
5363
  window.removeEventListener('postBreakpoint:device', this.breakpointChange);
5313
5364
  window.removeEventListener('resize', this.throttledResize);
5314
5365
  window.removeEventListener('scroll', this.handleScrollEvent);
5315
- scrollParent.removeEventListener('scroll', this.handleScrollEvent);
5366
+ if (scrollParent)
5367
+ scrollParent.removeEventListener('scroll', this.handleScrollEvent);
5316
5368
  document.removeEventListener('postToggleMegadropdown', this.megadropdownStateHandler);
5317
5369
  this.host.removeEventListener('keydown', this.keyboardHandler);
5318
5370
  this.host.removeEventListener('click', this.handleLinkClick);
@@ -5457,15 +5509,11 @@ class PostHeader {
5457
5509
  });
5458
5510
  }
5459
5511
  renderNavigation() {
5460
- const navigationClasses = ['navigation'];
5461
- const mobileMenuScrollTop = this.mobileMenu?.scrollTop ?? 0;
5462
- if (this.mobileMenuExtended) {
5463
- navigationClasses.push('extended');
5464
- }
5465
- if (this.megadropdownOpen) {
5466
- navigationClasses.push('megadropdown-open');
5512
+ const mainNavigation = (hAsync("slot", { name: "post-mainnavigation", onSlotchange: () => this.checkNavigationExistence() }));
5513
+ if (this.device === 'desktop') {
5514
+ return (hAsync("div", { class: { 'navigation': true, 'megadropdown-open': this.megadropdownOpen } }, mainNavigation, hAsync("slot", { name: "navigation-controls" })));
5467
5515
  }
5468
- return (hAsync("div", { class: navigationClasses.join(' '), style: { '--post-header-navigation-current-inset': `${mobileMenuScrollTop}px` } }, hAsync("div", { class: "mobile-menu", ref: el => (this.mobileMenu = el) }, hAsync("div", { class: "navigation-target-group" }, (this.device === 'mobile' || this.device === 'tablet') && (hAsync("slot", { name: "target-group" }))), hAsync("slot", { name: "post-mainnavigation", onSlotchange: () => this.checkNavigationExistence() }), (this.device === 'mobile' || this.device === 'tablet') && (hAsync("div", { class: "navigation-footer" }, hAsync("slot", { name: "meta-navigation" }), hAsync("slot", { name: "post-language-switch" }))))));
5516
+ return (hAsync("div", { class: { navigation: true, extended: this.mobileMenuExtended }, style: { '--post-header-navigation-current-inset': `${this.mobileMenu?.scrollTop ?? 0}px` } }, hAsync("div", { class: "mobile-menu", ref: el => (this.mobileMenu = el) }, hAsync("div", { class: "navigation-header" }, hAsync("slot", { name: "navigation-controls" }), hAsync("slot", { name: "target-group" })), mainNavigation, hAsync("div", { class: "navigation-footer" }, hAsync("slot", { name: "meta-navigation" }), hAsync("slot", { name: "post-language-switch" })))));
5469
5517
  }
5470
5518
  render() {
5471
5519
  const localHeaderClasses = ['local-header'];
@@ -5475,8 +5523,7 @@ class PostHeader {
5475
5523
  localHeaderClasses.push('no-navigation');
5476
5524
  if (!this.hasTitle)
5477
5525
  localHeaderClasses.push('no-title');
5478
- return (hAsync(Host, { key: 'd327fc8735749f46cb8b38531a8514978f92c197', "data-version": version$1, "data-color-scheme": "light" }, hAsync("div", { key: '07b7a4861cc11d55fce5d749a1d074d37900b48f', class: "global-header" }, hAsync("div", { key: 'bb23cf58b62b53e273921bb0a27a2371983bc8a8', class: "global-sub" }, hAsync("div", { key: '0028ff1ba8be25a238d944eaf25f9679b9e163c6', class: "logo" }, hAsync("slot", { key: '98e0584188a391b99df904fbdf463606548859c7', name: "post-logo" }))), hAsync("div", { key: '6da75517e0923191cc4d478a3f0c7e20d89b860d', class: "global-sub" }, this.device === 'desktop' && hAsync("slot", { key: 'bf5730915d734e9accb0e10bcd0d48ee99781930', name: "target-group" })), hAsync("div", { key: '64f3eafd98d8c34248de4fb78619bb7f3147e5e9', class: "global-sub" }, !this.hasMobileMenu && (hAsync("slot", { key: 'c3ad33a44bf25fede0afbea50937626142e69b6e', name: "meta-navigation" })), hAsync("slot", { key: 'e85d50753a40958be785deebfe01ffbee91f120b', name: "global-controls" }), !this.hasMobileMenu && hAsync("slot", { key: 'e423f47daa544cb7bd11ed54f0ecef93a50e6470', name: "post-language-switch" }), this.hasNavigation && (hAsync("div", { key: '96be5d590fbee1986238e1b7b22a1e6928c1c97f', onClick: () => this.toggleMobileMenu(), class: "mobile-toggle" }, hAsync("slot", { key: '4c9db8b0c416cbd2ffa4e1df6b05aea757bdc6a6', name: "post-togglebutton" }))))), hAsync("div", { key: '43285a4032f7ae356145ce6fb62e3c9896ad8542', class: localHeaderClasses.join(' ') }, hAsync("slot", { key: '74c2313baa4da4bf37d13189c07645374df684d1', name: "title", onSlotchange: () => this.checkTitleExistence() }), this.hasTitle &&
5479
- (hAsync("div", { key: '414b5378922221715071a5d8cfc0b7920018a5b3', class: "local-sub" }, hAsync("slot", { key: 'acb09003e517669a50405a04e5dafa983e78b5f2', name: "local-controls" }), hAsync("slot", { key: '8e1043c4d2e25b6b9432a2ba1885d2128abb9f85' }))), this.device === 'desktop' && this.renderNavigation()), this.device !== 'desktop' && this.renderNavigation()));
5526
+ return (hAsync(Host, { key: 'fd3c4a534af28b2e35f4a02502283e04be0d9683', "data-version": version$1, "data-color-scheme": "light" }, hAsync("div", { key: '61c70adea7525d3daa7690ac9243c7697df5c8bc', class: "global-header" }, hAsync("div", { key: '1fdb106a9624a07d3ad3fd1cb4eade9b05282ab5', class: "global-sub" }, hAsync("div", { key: '2c62bccfa8d5fa9642528db265e76aac0d13022c', class: "logo" }, hAsync("slot", { key: '75b87c2428b7ccad6940976e46156b807257cbc5', name: "post-logo" }))), hAsync("div", { key: 'c1950198cbac96132ca5b1c886bb94238c53b903', class: "global-sub" }, this.device === 'desktop' && hAsync("slot", { key: '2e695987df3da854db3ec18cc4b1283d0f06dfd1', name: "target-group" })), hAsync("div", { key: '50366842180e3aae87d4e4da68a8f73c2f62c347', class: "global-sub" }, hAsync("slot", { key: '7eba07e3dddbc26843a50b39a69953a01d9e2a5e', name: "global-controls" }), !this.hasMobileMenu && hAsync("slot", { key: 'aa9fc50e2eb8eee4e3d9de76ccbf564ac30a8d03', name: "meta-navigation" }), !this.hasMobileMenu && hAsync("slot", { key: '7742f0d0e30d5b0d90ca9352fec72e49a97ec3cb', name: "post-language-switch" }), hAsync("slot", { key: 'a3545c4bb2a61c00105763059f3bd66ddd829681', name: "global-login" }), this.hasNavigation && (hAsync("div", { key: 'bb8df618571ea8cadb89b0cd8d50bba7c0dec038', onClick: () => this.toggleMobileMenu(), class: "mobile-toggle" }, hAsync("slot", { key: '83b9542127213e39644c280cf9f4e19aaf3f071a', name: "post-togglebutton" }))))), hAsync("div", { key: '2ab719d2610d46050fc99345237b7b9cc54fd467', class: localHeaderClasses.join(' ') }, hAsync("slot", { key: '0e02b3f7421a1c67e99fdc92aadcf61153665820', name: "title", onSlotchange: () => this.checkTitleExistence() }), this.hasTitle && (hAsync("div", { key: '94b091a29727bd556a4907ac4bdb2f8757483135', class: "local-sub" }, hAsync("slot", { key: '7647015350e21278b104ff4538525abeaea98442', name: "local-controls" }), hAsync("slot", { key: '4e42d3fe5c4f676b7bb836c976c1d7e59a1052ae' }))), this.device === 'desktop' && this.renderNavigation()), this.device !== 'desktop' && this.renderNavigation()));
5480
5527
  }
5481
5528
  get host() { return getElement(this); }
5482
5529
  static get watchers() { return {
@@ -5618,7 +5665,7 @@ class PostIcon {
5618
5665
  this.validateAnimation();
5619
5666
  }
5620
5667
  render() {
5621
- return (hAsync(Host, { key: '521fb549cef7d0838c999628cf69c5c23e87dfc6', "data-version": version$1 }, hAsync("span", { key: 'cc9ca579bd90fee8cec7868c697bfe59dd677246', style: this.getStyles() })));
5668
+ return (hAsync(Host, { key: '0031b3e2e4016f9b28cade66fa435741940946a7', "data-version": version$1 }, hAsync("span", { key: '0efbcdd5f1dd737640238a0ab81b67ca8218adec', style: this.getStyles() })));
5622
5669
  }
5623
5670
  get host() { return getElement(this); }
5624
5671
  static get watchers() { return {
@@ -5703,7 +5750,7 @@ class PostLanguageOption {
5703
5750
  this.emitChange();
5704
5751
  }
5705
5752
  };
5706
- return (hAsync(Host, { key: 'deaee69d7e0c551af5162ae124f78c9418aba062', "data-version": version$1, role: this.variant === 'list' ? 'listitem' : undefined }, this.url ? (hAsync("a", { "aria-current": this.active ? 'page' : undefined, href: this.url, hrefLang: lang, lang: lang, onClick: () => this.emitChange(), onKeyDown: emitOnKeyDown }, hAsync("slot", null), hAsync("span", { class: "visually-hidden" }, this.name))) : (hAsync("button", { "aria-current": this.active ? 'true' : undefined, lang: lang, onClick: () => this.emitChange(), onKeyDown: emitOnKeyDown }, hAsync("slot", null), hAsync("span", { class: "visually-hidden" }, this.name)))));
5753
+ return (hAsync(Host, { key: 'b86bf33feb890e5dfbfae16f45ce2e56fdfaf16a', "data-version": version$1, role: this.variant === 'list' ? 'listitem' : undefined }, this.url ? (hAsync("a", { "aria-current": this.active ? 'page' : undefined, href: this.url, hrefLang: lang, lang: lang, onClick: () => this.emitChange(), onKeyDown: emitOnKeyDown }, hAsync("slot", null), hAsync("span", { class: "visually-hidden" }, this.name))) : (hAsync("button", { "aria-current": this.active ? 'true' : undefined, lang: lang, onClick: () => this.emitChange(), onKeyDown: emitOnKeyDown }, hAsync("slot", null), hAsync("span", { class: "visually-hidden" }, this.name)))));
5707
5754
  }
5708
5755
  get host() { return getElement(this); }
5709
5756
  static get watchers() { return {
@@ -5810,7 +5857,7 @@ class PostLanguageSwitch {
5810
5857
  return (hAsync(Host, { "data-version": version$1 }, hAsync("div", { class: "post-language-switch-list", role: "list", "aria-label": this.caption, "aria-describedby": this.listSpanId }, hAsync("span", { id: this.listSpanId, class: "visually-hidden" }, this.description), hAsync("slot", null))));
5811
5858
  }
5812
5859
  renderDropdown() {
5813
- return (hAsync(Host, { "data-version": version$1 }, hAsync("post-menu-trigger", { for: this.menuId }, hAsync("button", { class: "post-language-switch-trigger" }, this.activeLang, hAsync("span", { class: "visually-hidden" }, this.caption), hAsync("span", { class: "visually-hidden" }, this.description), hAsync("post-icon", { "aria-hidden": "true", name: "chevrondown" }))), hAsync("post-menu", { id: this.menuId, class: "post-language-switch-dropdown-container" }, hAsync("slot", null))));
5860
+ return (hAsync(Host, { "data-version": version$1 }, hAsync("post-menu-trigger", { for: this.menuId }, hAsync("button", { class: "post-language-switch-trigger" }, this.activeLang, hAsync("span", { class: "visually-hidden" }, this.caption), hAsync("span", { class: "visually-hidden" }, this.description), hAsync("post-icon", { "aria-hidden": "true", name: "chevrondown" }))), hAsync("post-menu", { id: this.menuId, class: "post-language-switch-dropdown-container", label: this.caption }, hAsync("slot", null))));
5814
5861
  }
5815
5862
  render() {
5816
5863
  return this.variant === 'list' ? this.renderList() : this.renderDropdown();
@@ -5868,7 +5915,7 @@ class PostLinkarea {
5868
5915
  this.mutationObserver.disconnect();
5869
5916
  }
5870
5917
  render() {
5871
- return (hAsync(Host, { key: '37351b168e654e8c563225061510dacdbda8fef4', "data-version": version$1, onClick: (e) => this.dispatchClick(e), tabindex: "0" }, hAsync("slot", { key: '26aeb1fc5de5f610ef485396f2cec4c2ba7e5a9a' })));
5918
+ return (hAsync(Host, { key: 'faa2a8c9b2fc4261496e0dbb091bae2aeee04e3b', "data-version": version$1, onClick: (e) => this.dispatchClick(e), tabindex: "0" }, hAsync("slot", { key: '57c30507720e9a04436cb4e518aa19b023cd2c39' })));
5872
5919
  }
5873
5920
  get host() { return getElement(this); }
5874
5921
  static get style() { return postLinkareaCss; }
@@ -5917,7 +5964,7 @@ class PostList {
5917
5964
  }
5918
5965
  }
5919
5966
  render() {
5920
- return (hAsync(Host, { key: '27dc0177ba3d81149b6b5dce24d6f18b8f57c9e5', "data-version": version$1 }, hAsync("div", { key: 'f860eaeafc60605c67fb0c47e452ecfdbf03d002', ref: el => (this.titleEl = el), id: this.titleId, class: `list-title${this.titleHidden ? ' visually-hidden' : ''}` }, hAsync("slot", { key: '17e20fdcf588649a9d678f873687cdedaef931aa' })), hAsync("div", { key: 'aebdcd2fe4b5a4d232b0fe3de7f6273c93f505f6', role: "list", "aria-labelledby": this.titleId }, hAsync("slot", { key: 'fa15f227e3251d44d1519421960bb5f3056fc371', name: "post-list-item" }))));
5967
+ return (hAsync(Host, { key: '908588a3f1261efbb85dbefade9f85f8ec6f16f8', "data-version": version$1 }, hAsync("div", { key: '44b224379be814dab98e16ad12a3ca0f10e61ac0', ref: el => (this.titleEl = el), id: this.titleId, class: `list-title${this.titleHidden ? ' visually-hidden' : ''}` }, hAsync("slot", { key: '1aed36b7c286796a4d617643e7606e63bc2dd95a' })), hAsync("div", { key: '3e1d137712b3e7616bab450426964f6c9334198e', role: "list", "aria-labelledby": this.titleId }, hAsync("slot", { key: 'fd5abb2fca95d32295fbfa158795413264200ae8', name: "post-list-item" }))));
5921
5968
  }
5922
5969
  get host() { return getElement(this); }
5923
5970
  static get style() { return postListCss; }
@@ -5948,7 +5995,7 @@ class PostListItem {
5948
5995
  this.host.setAttribute('slot', 'post-list-item');
5949
5996
  }
5950
5997
  render() {
5951
- return (hAsync(Host, { key: 'd15e750cd663def9363bedd020f09e634aba14c9', role: "listitem", slot: "post-list-item", version: version$1 }, hAsync("slot", { key: '361853e5c5994de4e5a5884cc32d7c7280b62b56' })));
5998
+ return (hAsync(Host, { key: '67204f0c31a6bc4cad3359030a8da57a045de7c5', role: "listitem", slot: "post-list-item", version: version$1 }, hAsync("slot", { key: '0c68073c601a3792880fc0e68af24a4a204548ed' })));
5952
5999
  }
5953
6000
  get host() { return getElement(this); }
5954
6001
  static get style() { return postListItemCss; }
@@ -5986,7 +6033,7 @@ class PostLogo {
5986
6033
  render() {
5987
6034
  const logoLink = this.url && (typeof this.url === 'string' ? this.url : this.url.href);
5988
6035
  const LogoTag = logoLink ? 'a' : 'span';
5989
- return (hAsync(Host, { key: '1c268056329697baccc5bf65b1e66acd8531d5f3', "data-version": version$1 }, hAsync(LogoTag, { key: '9b73fc4922a5ea0f72d761e82136ef1111eb7e21', class: `logo ${logoLink ? 'logo-link' : ''}`, ...(logoLink ? { href: logoLink } : {}) }, hAsync("span", { key: '4042a64056f3d22a99d6b245201be20d1afe5dc0', class: "description" }, hAsync("slot", { key: 'eb437f087d952b4f4a961bcba0dc18eb6836c6c9', onSlotchange: () => this.checkDescription() })), hAsync("svg", { key: 'b658e94d0e7f63d2f80245e12017f87f50a0b2c9', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, hAsync("g", { key: '90c0c8f64d0c9023dfa7296e68333232b9023276', id: "Logo" }, hAsync("rect", { key: 'a1dfd6e0bcaedb485398f1896603af36e3f119dc', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), hAsync("polygon", { key: '44d5ee8e45b7b320d75530e00ab1ff8dc4b8e21c', 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" }), hAsync("path", { key: '788524d12213fdfe0d21712b14d72e30d0195b4d', 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" }))))));
6036
+ return (hAsync(Host, { key: 'acd3bfab8d395cde2d79066580a8e53e65c426f4', "data-version": version$1 }, hAsync(LogoTag, { key: 'c5c2f8a2be6204bb693d5d53fd95e75133518a1d', class: `logo ${logoLink ? 'logo-link' : ''}`, ...(logoLink ? { href: logoLink } : {}) }, hAsync("span", { key: '675b756441237173c1046b74c2dfe2dfc08bfd7f', class: "description" }, hAsync("slot", { key: '710fd3483f56ad353e1a99f4fff2acc78ee53b46', onSlotchange: () => this.checkDescription() })), hAsync("svg", { key: 'e72b70e26da0fefd52a7e9aec41772dd5c9f0258', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, hAsync("g", { key: 'b67d56c9319bb576a56c76c5299f4a81c93d6c3c', id: "Logo" }, hAsync("rect", { key: '8c073060a51c5e6942c1b33fc5c2a3a7eb422f07', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), hAsync("polygon", { key: 'f97840922aa977b0f74bc5e8a88ff99136c80e46', 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" }), hAsync("path", { key: 'f7faf347bb660e2a4550b48fc2d997ad01b2b8ae', 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" }))))));
5990
6037
  }
5991
6038
  get host() { return getElement(this); }
5992
6039
  static get watchers() { return {
@@ -6005,7 +6052,7 @@ class PostLogo {
6005
6052
  }; }
6006
6053
  }
6007
6054
 
6008
- const postMainnavigationCss = "post-mainnavigation post-list-item>a{text-decoration:none;border-radius:0}post-mainnavigation post-list-item post-megadropdown-trigger 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;user-select:none;appearance:button;text-align:start}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation post-list-item post-megadropdown-trigger button{background-color:ButtonFace !important}post-mainnavigation post-list-item post-megadropdown-trigger button:hover{background-color:Highlight !important}}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item post-megadropdown-trigger button{flex:0 0 fit-content;white-space:nowrap;display:flex;align-items:center;justify-content:space-between}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}post-mainnavigation post-list-item>a:focus-visible,post-mainnavigation post-list-item post-megadropdown-trigger button:focus-visible{border-radius:4px;outline-offset:-2px !important}post-mainnavigation>button::after,post-mainnavigation post-megadropdown-trigger button::after{content:\"\";mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 13.2-7.5 7.6-7.6-7.6.9-.9 6.6 6.6 6.6-6.6z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;height:24px;width:24px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation>button,post-mainnavigation post-megadropdown-trigger button{border:1px solid ButtonBorder !important}post-mainnavigation>button:hover::after,post-mainnavigation>button[aria-expanded=true]::after,post-mainnavigation post-megadropdown-trigger button:hover::after,post-mainnavigation post-megadropdown-trigger button[aria-expanded=true]::after{color:HighlightText}}@media screen and (min-width: 1024px){post-mainnavigation{display:block;position:relative;height:var(--post-main-navigation-height, 0);background:#fff;user-select:none}post-mainnavigation nav{flex:1 1 auto;overflow:hidden;scroll-behavior:smooth}post-mainnavigation .scroll-control{cursor:pointer;position:absolute;inset-block:0;z-index:5;padding:16px;background:#fff;box-shadow:var(--post-device-elevation-500);line-height:1}post-mainnavigation .scroll-control.scroll-left{inset-inline-start:0}post-mainnavigation .scroll-control.scroll-right{inset-inline-end:0}post-mainnavigation .scroll-control.d-none{display:none}post-mainnavigation .scroll-control post-icon{font-size:1rem}post-mainnavigation post-list>[role=list]{flex-direction:row;max-width:100vw}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{position:sticky;padding-inline:12px;height:var(--post-main-navigation-height, 0);gap:4px;font-size:16px;z-index:4}}@media screen and (min-width: 1024px)and (max-width: 1023.98px){post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{z-index:5}}@media screen and (min-width: 1024px){post-mainnavigation post-list-item>a .nav-el-active,post-mainnavigation post-list-item>button .nav-el-active,post-mainnavigation post-list-item post-megadropdown-trigger button .nav-el-active{font-weight:700;text-align:center;opacity:0}}@media screen and (min-width: 1024px){post-mainnavigation post-list-item>a .nav-el-inactive,post-mainnavigation post-list-item>button .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button .nav-el-inactive{position:absolute;opacity:1;text-align:center;width:100%;inset-inline-start:0}}@media screen and (min-width: 1024px){post-mainnavigation post-list-item>a.selected,post-mainnavigation post-list-item>a[aria-current=page]:not(post-megadropdown *),post-mainnavigation post-list-item>a[aria-expanded=true],post-mainnavigation post-list-item>button.selected,post-mainnavigation post-list-item>button[aria-current=page]:not(post-megadropdown *),post-mainnavigation post-list-item>button[aria-expanded=true],post-mainnavigation post-list-item post-megadropdown-trigger button.selected,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-current=page]:not(post-megadropdown *),post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]{background-color:#050400;color:#fff;font-weight:700}post-mainnavigation post-list-item>a.selected .nav-el-active,post-mainnavigation post-list-item>a[aria-current=page]:not(post-megadropdown *) .nav-el-active,post-mainnavigation post-list-item>a[aria-expanded=true] .nav-el-active,post-mainnavigation post-list-item>button.selected .nav-el-active,post-mainnavigation post-list-item>button[aria-current=page]:not(post-megadropdown *) .nav-el-active,post-mainnavigation post-list-item>button[aria-expanded=true] .nav-el-active,post-mainnavigation post-list-item post-megadropdown-trigger button.selected .nav-el-active,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-current=page]:not(post-megadropdown *) .nav-el-active,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true] .nav-el-active{opacity:1}post-mainnavigation post-list-item>a.selected .nav-el-inactive,post-mainnavigation post-list-item>a[aria-current=page]:not(post-megadropdown *) .nav-el-inactive,post-mainnavigation post-list-item>a[aria-expanded=true] .nav-el-inactive,post-mainnavigation post-list-item>button.selected .nav-el-inactive,post-mainnavigation post-list-item>button[aria-current=page]:not(post-megadropdown *) .nav-el-inactive,post-mainnavigation post-list-item>button[aria-expanded=true] .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button.selected .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-current=page]:not(post-megadropdown *) .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true] .nav-el-inactive{opacity:0}}@media screen and (min-width: 1024px){post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{background-color:#504f4b;color:#fff}}@media screen and (min-width: 1024px)and (max-width: 599.98px){post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{font-size:14px}}@media screen and (min-width: 1024px){post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{padding-inline-end:12px;transition:border-block-end-color 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button .nav-el-inactive{width:calc(100% - 28px)}post-mainnavigation post-list-item>button::after,post-mainnavigation post-list-item post-megadropdown-trigger button::after{transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button[aria-expanded=true]::after,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]::after{transform:rotate(180deg)}}@media screen and (min-width: 1024px){post-mainnavigation post-megadropdown button:not(.btn-icon-close),post-mainnavigation post-megadropdown a{width:100%;min-width:100%;height:48px;padding-inline:8px 12px;gap:16px;font-weight:400;position:relative}post-mainnavigation post-megadropdown button:not(.btn-icon-close)::before,post-mainnavigation post-megadropdown a::before{content:\"\";background-color:#050400;bottom:0;width:100%;height:1px;position:absolute;left:0}post-mainnavigation post-megadropdown button:not(.btn-icon-close).selected,post-mainnavigation post-megadropdown button:not(.btn-icon-close)[aria-current=page],post-mainnavigation post-megadropdown button:not(.btn-icon-close)[aria-expanded=true],post-mainnavigation post-megadropdown a.selected,post-mainnavigation post-megadropdown a[aria-current=page],post-mainnavigation post-megadropdown a[aria-expanded=true]{background-color:#050400;color:#fff}post-mainnavigation post-megadropdown button:not(.btn-icon-close):hover,post-mainnavigation post-megadropdown a:hover{background-color:#504f4b;color:#fff}post-mainnavigation post-megadropdown button:not(.btn-icon-close):hover::before,post-mainnavigation post-megadropdown a:hover::before{background-color:#504f4b}}@media screen and (max-width: 1023.98px){post-mainnavigation nav{transform:none !important}post-mainnavigation .scroll-control{display:none}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{width:100%;min-width:100%;height:48px;padding-inline:8px 12px;gap:16px;font-weight:400;position:relative}post-mainnavigation post-list-item>a::before,post-mainnavigation post-list-item>button::before,post-mainnavigation post-list-item post-megadropdown-trigger button::before{content:\"\";background-color:#050400;bottom:0;width:100%;height:1px;position:absolute;left:0}post-mainnavigation post-list-item>a.selected,post-mainnavigation post-list-item>a[aria-current=page],post-mainnavigation post-list-item>a[aria-expanded=true],post-mainnavigation post-list-item>button.selected,post-mainnavigation post-list-item>button[aria-current=page],post-mainnavigation post-list-item>button[aria-expanded=true],post-mainnavigation post-list-item post-megadropdown-trigger button.selected,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-current=page],post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]{background-color:#050400;color:#fff}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{background-color:#504f4b;color:#fff}post-mainnavigation post-list-item>a:hover::before,post-mainnavigation post-list-item>button:hover::before,post-mainnavigation post-list-item post-megadropdown-trigger button:hover::before{background-color:#504f4b}post-mainnavigation post-list-item>a .nav-el-inactive,post-mainnavigation post-list-item>button .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button .nav-el-inactive{display:none}post-mainnavigation>button::after,post-mainnavigation post-megadropdown-trigger button::after{transform:rotate(-90deg)}}";
6055
+ const postMainnavigationCss = ":root{--post-icon-2113:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktMjExMyIgdmlld0JveD0iMCAwIDMyIDMyIj48cGF0aCBkPSJtMjMuNiAxMy4yLTcuNSA3LjYtNy42LTcuNi45LS45IDYuNiA2LjYgNi42LTYuNnoiLz48L3N5bWJvbD48L2RlZnM+PHVzZSBocmVmPSIjaS0yMTEzIi8+PC9zdmc+\")}post-mainnavigation post-list-item>a{text-decoration:none;border-radius:0}post-mainnavigation post-list-item post-megadropdown-trigger 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;user-select:none;appearance:button;text-align:start}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation post-list-item post-megadropdown-trigger button{background-color:ButtonFace !important}post-mainnavigation post-list-item post-megadropdown-trigger button:hover{background-color:Highlight !important}}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item post-megadropdown-trigger button{flex:0 0 fit-content;white-space:nowrap;display:flex;align-items:center;justify-content:space-between}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}post-mainnavigation post-list-item>a:focus-visible,post-mainnavigation post-list-item post-megadropdown-trigger button:focus-visible{border-radius:4px;outline-offset:-2px !important}post-mainnavigation>button::after,post-mainnavigation post-megadropdown-trigger button::after{content:\"\";mask-image:var(--post-icon-2113);background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;height:24px;width:24px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation>button,post-mainnavigation post-megadropdown-trigger button{border:1px solid ButtonBorder !important}post-mainnavigation>button:hover::after,post-mainnavigation>button[aria-expanded=true]::after,post-mainnavigation post-megadropdown-trigger button:hover::after,post-mainnavigation post-megadropdown-trigger button[aria-expanded=true]::after{color:HighlightText}}@media screen and (min-width: 1024px){post-mainnavigation{display:flex;overflow:hidden;height:var(--post-main-navigation-height, 0);background:#fff;user-select:none}post-mainnavigation nav{flex:1 1 auto;overflow:hidden;scroll-behavior:smooth}post-mainnavigation .scroll-control{cursor:pointer;z-index:5;padding:1rem;background:#fff;box-shadow:var(--post-device-elevation-500);line-height:1}post-mainnavigation .scroll-control.scroll-left{margin-inline-end:-3rem}post-mainnavigation .scroll-control.scroll-right{margin-inline-start:-3rem}post-mainnavigation .scroll-control.d-none{display:none}post-mainnavigation .scroll-control post-icon{font-size:1rem}post-mainnavigation post-list>[role=list]{flex-direction:row;max-width:100vw}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{position:sticky;padding-inline:12px;height:var(--post-main-navigation-height, 0);gap:4px;font-size:16px;z-index:4}}@media screen and (min-width: 1024px)and (max-width: 1023.98px){post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{z-index:5}}@media screen and (min-width: 1024px){post-mainnavigation post-list-item>a .nav-el-active,post-mainnavigation post-list-item>button .nav-el-active,post-mainnavigation post-list-item post-megadropdown-trigger button .nav-el-active{font-weight:700;text-align:center;opacity:0}}@media screen and (min-width: 1024px){post-mainnavigation post-list-item>a .nav-el-inactive,post-mainnavigation post-list-item>button .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button .nav-el-inactive{position:absolute;opacity:1;text-align:center;width:100%;inset-inline-start:0}}@media screen and (min-width: 1024px){post-mainnavigation post-list-item>a.active,post-mainnavigation post-list-item>a[aria-current=page]:not(post-megadropdown *),post-mainnavigation post-list-item>a[aria-expanded=true],post-mainnavigation post-list-item>button.active,post-mainnavigation post-list-item>button[aria-current=page]:not(post-megadropdown *),post-mainnavigation post-list-item>button[aria-expanded=true],post-mainnavigation post-list-item post-megadropdown-trigger button.active,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-current=page]:not(post-megadropdown *),post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]{background-color:#050400;color:#fff;font-weight:700}post-mainnavigation post-list-item>a.active .nav-el-active,post-mainnavigation post-list-item>a[aria-current=page]:not(post-megadropdown *) .nav-el-active,post-mainnavigation post-list-item>a[aria-expanded=true] .nav-el-active,post-mainnavigation post-list-item>button.active .nav-el-active,post-mainnavigation post-list-item>button[aria-current=page]:not(post-megadropdown *) .nav-el-active,post-mainnavigation post-list-item>button[aria-expanded=true] .nav-el-active,post-mainnavigation post-list-item post-megadropdown-trigger button.active .nav-el-active,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-current=page]:not(post-megadropdown *) .nav-el-active,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true] .nav-el-active{opacity:1}post-mainnavigation post-list-item>a.active .nav-el-inactive,post-mainnavigation post-list-item>a[aria-current=page]:not(post-megadropdown *) .nav-el-inactive,post-mainnavigation post-list-item>a[aria-expanded=true] .nav-el-inactive,post-mainnavigation post-list-item>button.active .nav-el-inactive,post-mainnavigation post-list-item>button[aria-current=page]:not(post-megadropdown *) .nav-el-inactive,post-mainnavigation post-list-item>button[aria-expanded=true] .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button.active .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-current=page]:not(post-megadropdown *) .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true] .nav-el-inactive{opacity:0}}@media screen and (min-width: 1024px){post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{background-color:#504f4b;color:#fff}}@media screen and (min-width: 1024px)and (max-width: 599.98px){post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{font-size:14px}}@media screen and (min-width: 1024px){post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{padding-inline-end:12px;transition:border-block-end-color 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button .nav-el-inactive{width:calc(100% - 28px)}post-mainnavigation post-list-item>button::after,post-mainnavigation post-list-item post-megadropdown-trigger button::after{transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button[aria-expanded=true]::after,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]::after{transform:rotate(180deg)}}@media screen and (min-width: 1024px){post-mainnavigation post-megadropdown button:not(:is(post-closebutton *)),post-mainnavigation post-megadropdown a{width:100%;min-width:100%;height:48px;padding-inline:8px 12px;gap:16px;font-weight:400;position:relative}post-mainnavigation post-megadropdown button:not(:is(post-closebutton *))::before,post-mainnavigation post-megadropdown a::before{content:\"\";background-color:#050400;bottom:0;width:100%;height:1px;position:absolute;left:0}post-mainnavigation post-megadropdown button:not(:is(post-closebutton *)).active,post-mainnavigation post-megadropdown button:not(:is(post-closebutton *))[aria-current=page],post-mainnavigation post-megadropdown button:not(:is(post-closebutton *))[aria-expanded=true],post-mainnavigation post-megadropdown a.active,post-mainnavigation post-megadropdown a[aria-current=page],post-mainnavigation post-megadropdown a[aria-expanded=true]{background-color:#050400;color:#fff}post-mainnavigation post-megadropdown button:not(:is(post-closebutton *)):hover,post-mainnavigation post-megadropdown a:hover{background-color:#504f4b;color:#fff}post-mainnavigation post-megadropdown button:not(:is(post-closebutton *)):hover::before,post-mainnavigation post-megadropdown a:hover::before{background-color:#504f4b}}@media screen and (max-width: 1023.98px){post-mainnavigation nav{transform:none !important}post-mainnavigation .scroll-control{display:none}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{width:100%;min-width:100%;height:48px;padding-inline:8px 12px;gap:16px;font-weight:400;position:relative}post-mainnavigation post-list-item>a::before,post-mainnavigation post-list-item>button::before,post-mainnavigation post-list-item post-megadropdown-trigger button::before{content:\"\";background-color:#050400;bottom:0;width:100%;height:1px;position:absolute;left:0}post-mainnavigation post-list-item>a.active,post-mainnavigation post-list-item>a[aria-current=page],post-mainnavigation post-list-item>a[aria-expanded=true],post-mainnavigation post-list-item>button.active,post-mainnavigation post-list-item>button[aria-current=page],post-mainnavigation post-list-item>button[aria-expanded=true],post-mainnavigation post-list-item post-megadropdown-trigger button.active,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-current=page],post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]{background-color:#050400;color:#fff}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{background-color:#504f4b;color:#fff}post-mainnavigation post-list-item>a:hover::before,post-mainnavigation post-list-item>button:hover::before,post-mainnavigation post-list-item post-megadropdown-trigger button:hover::before{background-color:#504f4b}post-mainnavigation post-list-item>a .nav-el-inactive,post-mainnavigation post-list-item>button .nav-el-inactive,post-mainnavigation post-list-item post-megadropdown-trigger button .nav-el-inactive{display:none}post-mainnavigation>button::after,post-mainnavigation post-megadropdown-trigger button::after{transform:rotate(-90deg)}}";
6009
6056
 
6010
6057
  const SCROLL_REPEAT_INTERVAL = 100; // Interval for repeated scrolling when holding down scroll button
6011
6058
  const NAVBAR_DISABLE_DURATION = 400; // Duration to temporarily disable navbar interactions during scrolling
@@ -6150,7 +6197,7 @@ class PostMainnavigation {
6150
6197
  }, NAVBAR_DISABLE_DURATION);
6151
6198
  }
6152
6199
  render() {
6153
- return (hAsync(Host, { key: '1876abaa01a705b5bed07b6f4ab7f795ca994759', slot: "post-mainnavigation", version: version$1 }, hAsync("div", { key: 'c61592c959287dcf329921e11dd0d1414329b15a', "aria-hidden": "true", class: { 'scroll-control scroll-left': true, 'd-none': !this.canScrollLeft }, onMouseDown: e => this.handleScrollButtonClick(e, 'left') }, hAsync("post-icon", { key: '51b460d2bfdb0ce52e2639f7521de67477972fba', "aria-hidden": "true", name: "chevronleft" })), hAsync("nav", { key: '54d8f2a52c935713251d752b30ff163bf7bd8b5f', ref: el => (this.navbar = el) }, hAsync("slot", { key: '749a000aa37381cbcf7a68514f77a4ff3da7e90b' })), hAsync("div", { key: 'a42aa9a06704dfd4ebb2357b3dc1efa21f7ac136', "aria-hidden": "true", class: { 'scroll-control scroll-right': true, 'd-none': !this.canScrollRight }, onMouseDown: e => this.handleScrollButtonClick(e, 'right') }, hAsync("post-icon", { key: '64ef94d58da05da4ea86c9458b7775c431d0461b', "aria-hidden": "true", name: "chevronright" }))));
6200
+ return (hAsync(Host, { key: '04ae6ffdd6560113431b70c3c27f16057fc9a87d', slot: "post-mainnavigation", version: version$1 }, hAsync("div", { key: '2f79728dcbbfe94a343b880e2ba07331f45c9f30', "aria-hidden": "true", class: { 'scroll-control scroll-left': true, 'd-none': !this.canScrollLeft }, onMouseDown: e => this.handleScrollButtonClick(e, 'left') }, hAsync("post-icon", { key: '3e762484bbcd03ac0d67b4ab722ffcd862bb073e', "aria-hidden": "true", name: "chevronleft" })), hAsync("nav", { key: '1150bfdf724e4d93b45f1fff071fba56d31d15b5', ref: el => (this.navbar = el) }, hAsync("slot", { key: '3496b7c6d2d75300b1727148ff9b9965717d9909' })), hAsync("div", { key: '1fa6dd50d9650ab6e5047c607f7e5ed0416ed245', "aria-hidden": "true", class: { 'scroll-control scroll-right': true, 'd-none': !this.canScrollRight }, onMouseDown: e => this.handleScrollButtonClick(e, 'right') }, hAsync("post-icon", { key: '9487d621e1d7289a0afeb1d0443ec8bc70cd5f3e', "aria-hidden": "true", name: "chevronright" }))));
6154
6201
  }
6155
6202
  static get style() { return postMainnavigationCss; }
6156
6203
  static get cmpMeta() { return {
@@ -6166,7 +6213,7 @@ class PostMainnavigation {
6166
6213
  }; }
6167
6214
  }
6168
6215
 
6169
- const postMegadropdownCss = "@keyframes slide-in{0%{transform:translateX(100%)}100%{transform:translateX(0%)}}@keyframes slide-out{from{transform:translateX(0%)}to{transform:translateX(100%)}}@keyframes slide-down{from{transform:translateY(-100%)}to{transform:translateY(0%)}}@keyframes slide-up{0%{transform:translateY(0%)}100%{transform:translateY(-100%)}}*,::before,::after{box-sizing:border-box}.megadropdown-container{box-shadow:0 8px 6px rgba(0,0,0,.16);position:absolute;background-color:#fafafa;border:none;z-index:1;width:100%;inset-block-start:100%;inset-inline-start:0;border-radius:0}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.megadropdown-container{border-block-end:1px solid CanvasText}}.megadropdown-container.slide-in{animation:slide-down 350ms forwards}.megadropdown-container.slide-out{animation:slide-up 350ms forwards}@media screen and (max-width: 1023.98px){.megadropdown-container{z-index:5;position:fixed;inset-block-start:var(--post-header-navigation-current-inset);inset-inline:0;height:calc(min(var(--post-header-scroll-parent-height, 100dvh),100dvh) - var(--post-header-height));border-block-start:unset;overflow-y:auto;overscroll-behavior:contain}.megadropdown-container.slide-in{animation:slide-in 350ms forwards}.megadropdown-container.slide-out{animation:slide-out 350ms forwards}}@media screen and (min-width: 1024px){.megadropdown-container{max-height:calc(100vh - var(--post-header-height) - 48px);overflow-y:auto}}.megadropdown{padding:31px 40px 40px;background-color:#fafafa}@media screen and (max-width: 1023.98px){.megadropdown{display:flex;flex-direction:column;width:inherit;padding:16px 32px 24px}}@media screen and (max-width: 599.98px){.megadropdown{padding-inline:16px}}.megadropdown .megadropdown-content{gap:1.5rem;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(15vw, 100%), 1fr));grid-auto-rows:1fr auto;grid-auto-flow:dense}@media screen and (max-width: 1023.98px){.megadropdown .megadropdown-content{grid-template-columns:repeat(auto-fit, minmax(min(35vw, 100%), 1fr))}}@media screen and (max-width: 599.98px){.megadropdown .megadropdown-content{grid-template-columns:1fr}}.megadropdown h2{display:none;margin-block:0 8px;font-weight:900}.megadropdown h2 a{text-decoration:none;display:none;font-weight:inherit;border-block:0}@media screen and (max-width: 1023.98px){.megadropdown h2{display:block;font-size:1.25rem}}@media screen and (max-width: 599.98px){.megadropdown h2{font-size:1.125rem}}.megadropdown post-list{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:0px}.megadropdown post-list>[role=list]{flex-direction:unset;display:unset}.megadropdown post-list>*{width:100%}.megadropdown post-list .list-title{display:flex;flex-direction:column-reverse;height:100%}.megadropdown post-list .list-title h3{font-size:20px;display:block;font-weight:900}.megadropdown post-list .list-title h3:not(:has(a)),.megadropdown post-list .list-title h3 a{padding:16px 12px 14px 8px}.megadropdown post-list .list-title h3:not(:has(a)){position:relative}.megadropdown post-list .list-title h3:not(:has(a))::before{content:\"\";background-color:#050400;inset-block-end:0;inset-inline-start:0;width:100%;height:2px;position:absolute}.megadropdown post-list .list-title h3 a{border-radius:0;text-decoration:none;font-size:inherit;display:flex;align-items:center;justify-content:space-between;min-height:53px;width:100%;min-width:100%;height:48px;padding-inline:8px 12px;gap:16px;font-weight:400;position:relative;height:unset;font-weight:900}.megadropdown post-list .list-title h3 a::before{content:\"\";background-color:#050400;bottom:0;width:100%;height:1px;position:absolute;left:0}.megadropdown post-list .list-title h3 a.selected,.megadropdown post-list .list-title h3 a[aria-current=page],.megadropdown post-list .list-title h3 a[aria-expanded=true]{background-color:#050400;color:#fff}.megadropdown post-list .list-title h3 a:hover{background-color:#504f4b;color:#fff}.megadropdown post-list .list-title h3 a:hover::before{background-color:#504f4b}.megadropdown post-list .list-title h3 a::before{height:2px}@media screen and (max-width: 1023.98px){.megadropdown post-list .list-title h3{font-size:1rem}.megadropdown post-list .list-title h3:not(:has(a)),.megadropdown post-list .list-title h3 a{padding:14px 12px 12px 8px}}@media screen and (max-width: 599.98px){.megadropdown post-list .list-title h3{font-size:.875rem}}.megadropdown post-list-item>a{padding-block:13px 12px;padding-inline-start:8px;display:flex;text-decoration:none;width:100%;min-width:100%;height:auto;min-height:48px;white-space:normal;word-break:break-word}.megadropdown post-list-item>a:hover{border-block-width:0}@media screen and (min-width: 1024px){.megadropdown post-list-item>a{font-size:1.25rem}}@media screen and (max-width: 1023.98px){.megadropdown post-list-item>a{padding-block:12px 11px}}@media screen and (max-width: 599.98px){.megadropdown post-list-item>a{font-size:.875rem}}.megadropdown .back-button{display:none;margin-block-end:2rem}.megadropdown .back-button .btn{width:auto}@media screen and (max-width: 1023.98px){.megadropdown .back-button{order:-1;display:block}}.megadropdown .close-button{position:absolute;inset-block-start:1rem;inset-inline-end:1rem}@media screen and (max-width: 1023.98px){.megadropdown .close-button{display:none}}";
6216
+ const postMegadropdownCss = "@keyframes slide-in{0%{transform:translateX(100%)}100%{transform:translateX(0%)}}@keyframes slide-out{from{transform:translateX(0%)}to{transform:translateX(100%)}}@keyframes slide-down{from{transform:translateY(-100%)}to{transform:translateY(0%)}}@keyframes slide-up{0%{transform:translateY(0%)}100%{transform:translateY(-100%)}}*,::before,::after{box-sizing:border-box}.megadropdown-container{box-shadow:0 8px 6px rgba(0,0,0,.16);position:absolute;background-color:#fafafa;border:none;z-index:1;width:100%;inset-block-start:100%;inset-inline-start:0;border-radius:0}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.megadropdown-container{border-block-end:1px solid CanvasText}}.megadropdown-container.slide-in{animation:slide-down 350ms forwards}.megadropdown-container.slide-out{animation:slide-up 350ms forwards}@media screen and (max-width: 1023.98px){.megadropdown-container{z-index:5;position:fixed;inset-block-start:var(--post-header-navigation-current-inset);inset-inline:0;height:calc(min(var(--post-header-scroll-parent-height, 100dvh),100dvh) - var(--post-header-height));border-block-start:unset;overflow-y:auto;overscroll-behavior:contain}.megadropdown-container.slide-in{animation:slide-in 350ms forwards}.megadropdown-container.slide-out{animation:slide-out 350ms forwards}}@media screen and (min-width: 1024px){.megadropdown-container{max-height:calc(100vh - var(--post-header-height) - 48px);overflow-y:auto}}.megadropdown{padding:31px 40px 40px;background-color:#fafafa}@media screen and (max-width: 1023.98px){.megadropdown{display:flex;flex-direction:column;width:inherit;padding:16px 32px 24px}}@media screen and (max-width: 599.98px){.megadropdown{padding-inline:16px}}.megadropdown .megadropdown-content{gap:1.5rem;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(15vw, 100%), 1fr));grid-auto-rows:1fr auto;grid-auto-flow:dense}@media screen and (max-width: 1023.98px){.megadropdown .megadropdown-content{grid-template-columns:repeat(auto-fit, minmax(min(35vw, 100%), 1fr))}}@media screen and (max-width: 599.98px){.megadropdown .megadropdown-content{grid-template-columns:1fr}}.megadropdown h2{display:none;margin-block:0 8px;font-weight:900}.megadropdown h2 a{text-decoration:none;display:none;font-weight:inherit;border-block:0}@media screen and (max-width: 1023.98px){.megadropdown h2{display:block;font-size:1.25rem}}@media screen and (max-width: 599.98px){.megadropdown h2{font-size:1.125rem}}.megadropdown post-list{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:0px}.megadropdown post-list>[role=list]{flex-direction:unset;display:unset}.megadropdown post-list>*{width:100%}.megadropdown post-list .list-title{display:flex;flex-direction:column-reverse;height:100%}.megadropdown post-list .list-title h3{font-size:20px;display:block;font-weight:900}.megadropdown post-list .list-title h3:not(:has(a)),.megadropdown post-list .list-title h3 a{padding:16px 12px 14px 8px}.megadropdown post-list .list-title h3:not(:has(a)){position:relative}.megadropdown post-list .list-title h3:not(:has(a))::before{content:\"\";background-color:#050400;inset-block-end:0;inset-inline-start:0;width:100%;height:2px;position:absolute}.megadropdown post-list .list-title h3 a{border-radius:0;text-decoration:none;font-size:inherit;display:flex;align-items:center;justify-content:space-between;min-height:53px;width:100%;min-width:100%;height:48px;padding-inline:8px 12px;gap:16px;font-weight:400;position:relative;height:unset;font-weight:900}.megadropdown post-list .list-title h3 a::before{content:\"\";background-color:#050400;bottom:0;width:100%;height:1px;position:absolute;left:0}.megadropdown post-list .list-title h3 a.active,.megadropdown post-list .list-title h3 a[aria-current=page],.megadropdown post-list .list-title h3 a[aria-expanded=true]{background-color:#050400;color:#fff}.megadropdown post-list .list-title h3 a:hover{background-color:#504f4b;color:#fff}.megadropdown post-list .list-title h3 a:hover::before{background-color:#504f4b}.megadropdown post-list .list-title h3 a::before{height:2px}@media screen and (max-width: 1023.98px){.megadropdown post-list .list-title h3{font-size:1rem}.megadropdown post-list .list-title h3:not(:has(a)),.megadropdown post-list .list-title h3 a{padding:14px 12px 12px 8px}}@media screen and (max-width: 599.98px){.megadropdown post-list .list-title h3{font-size:.875rem}}.megadropdown post-list-item>a{padding-block:13px 12px;padding-inline-start:8px;display:flex;text-decoration:none;width:100%;min-width:100%;height:auto;min-height:48px;white-space:normal;word-break:break-word}.megadropdown post-list-item>a:hover{border-block-width:0}@media screen and (min-width: 1024px){.megadropdown post-list-item>a{font-size:1.25rem}}@media screen and (max-width: 1023.98px){.megadropdown post-list-item>a{padding-block:12px 11px}}@media screen and (max-width: 599.98px){.megadropdown post-list-item>a{font-size:.875rem}}.megadropdown .back-button{display:none;margin-block-end:2rem}.megadropdown .back-button .btn{width:auto}@media screen and (max-width: 1023.98px){.megadropdown .back-button{order:-1;display:block}}.megadropdown .close-button{position:absolute;inset-block-start:1rem;inset-inline-end:1rem}@media screen and (max-width: 1023.98px){.megadropdown .close-button{display:none}}";
6170
6217
 
6171
6218
  class PostMegadropdown {
6172
6219
  constructor(hostRef) {
@@ -6201,11 +6248,20 @@ class PostMegadropdown {
6201
6248
  this.hide(false);
6202
6249
  };
6203
6250
  }
6204
- breakpointChange(e) {
6205
- this.device = e.detail;
6206
- if (this.device === 'desktop' && this.isVisible) {
6207
- this.animationClass = null;
6208
- }
6251
+ get megadropdownTrigger() {
6252
+ const hostId = this.host.getAttribute('id');
6253
+ return hostId ? document.querySelector(`post-megadropdown-trigger[for="${hostId}"] > button`) : null;
6254
+ }
6255
+ connectedCallback() {
6256
+ window.addEventListener('postBreakpoint:device', this.breakpointChange.bind(this));
6257
+ }
6258
+ componentDidRender() {
6259
+ this.getFocusableElements();
6260
+ }
6261
+ componentDidLoad() {
6262
+ this.checkInitialAriaCurrent();
6263
+ this.setupObserver();
6264
+ this.handleAriaCurrentChange([]);
6209
6265
  }
6210
6266
  disconnectedCallback() {
6211
6267
  this.removeListeners();
@@ -6213,9 +6269,7 @@ class PostMegadropdown {
6213
6269
  if (PostMegadropdown.activeDropdown === this) {
6214
6270
  PostMegadropdown.activeDropdown = null;
6215
6271
  }
6216
- }
6217
- componentDidRender() {
6218
- this.getFocusableElements();
6272
+ this.defaultSlotObserver.disconnect();
6219
6273
  }
6220
6274
  /**
6221
6275
  * Toggles the dropdown visibility based on its current state.
@@ -6264,8 +6318,11 @@ class PostMegadropdown {
6264
6318
  async focusFirst() {
6265
6319
  this.firstFocusableEl?.focus();
6266
6320
  }
6267
- connectedCallback() {
6268
- window.addEventListener('postBreakpoint:device', this.breakpointChange.bind(this));
6321
+ breakpointChange(e) {
6322
+ this.device = e.detail;
6323
+ if (this.device === 'desktop' && this.isVisible) {
6324
+ this.animationClass = null;
6325
+ }
6269
6326
  }
6270
6327
  /**
6271
6328
  * Forces the dropdown to close without animation.
@@ -6297,14 +6354,6 @@ class PostMegadropdown {
6297
6354
  getFocusableElements() {
6298
6355
  const focusableEls = Array.from(this.host.querySelectorAll('post-list-item, h3, .back-button'));
6299
6356
  const focusableChildren = focusableEls.flatMap(el => Array.from(getFocusableChildren(el)));
6300
- const hostId = this.host.getAttribute('id');
6301
- // Proceed if the host has an ID and one of its focusable children is marked as the current page (`aria-current="page"`)
6302
- if (hostId && focusableChildren.some(el => el.getAttribute('aria-current') === 'page')) {
6303
- // Find the trigger element via its "for" attribute, then locate its button and set `aria-current="page"`
6304
- document
6305
- .querySelector(`post-megadropdown-trigger[for="${hostId}"] > button`)
6306
- .classList.add('selected');
6307
- }
6308
6357
  this.firstFocusableEl = focusableChildren[0];
6309
6358
  this.lastFocusableEl = focusableChildren[focusableChildren.length - 1];
6310
6359
  }
@@ -6330,9 +6379,59 @@ class PostMegadropdown {
6330
6379
  }
6331
6380
  }
6332
6381
  }
6382
+ /**
6383
+ * Sets up a MutationObserver on the host to watch for changes
6384
+ * in `aria-current` attributes.
6385
+ */
6386
+ setupObserver() {
6387
+ const config = {
6388
+ subtree: true,
6389
+ attributes: true,
6390
+ attributeFilter: ['aria-current'],
6391
+ };
6392
+ this.defaultSlotObserver = new MutationObserver(this.handleAriaCurrentChange.bind(this));
6393
+ this.defaultSlotObserver.observe(this.host, config);
6394
+ }
6395
+ /**
6396
+ * Adds or removes the 'active' class on the megadropdown trigger button
6397
+ * based on the active state.
6398
+ *
6399
+ * @param isActive - Whether the trigger should appear active
6400
+ */
6401
+ setTriggerActive(isActive) {
6402
+ const trigger = this.megadropdownTrigger;
6403
+ if (!trigger)
6404
+ return;
6405
+ if (isActive) {
6406
+ trigger.classList.add('active');
6407
+ }
6408
+ else {
6409
+ trigger.classList.remove('active');
6410
+ }
6411
+ }
6412
+ /**
6413
+ * Updates the megadropdown trigger state when the megadropdown content changes.
6414
+ * Checks if any element inside the megadropdown has `aria-current="page"`
6415
+ * and sets the trigger as active accordingly.
6416
+ */
6417
+ handleAriaCurrentChange(mutations) {
6418
+ if (!mutations.length)
6419
+ return;
6420
+ const hasCurrentPage = mutations.some(m => m.target instanceof HTMLElement && m.target.getAttribute('aria-current') === 'page');
6421
+ this.setTriggerActive(hasCurrentPage);
6422
+ }
6423
+ /**
6424
+ * Checks on initialization if any element inside the megadropdown
6425
+ * has `aria-current="page"` and sets the trigger as active if so.
6426
+ */
6427
+ checkInitialAriaCurrent() {
6428
+ const hasCurrentPage = this.host.querySelector('[aria-current="page"]');
6429
+ if (hasCurrentPage)
6430
+ this.setTriggerActive(true);
6431
+ }
6333
6432
  render() {
6334
6433
  const containerStyle = this.isVisible ? {} : { display: 'none' };
6335
- return (hAsync(Host, { key: '18685d3da311fd0563a3c5a498df1e1fef96b524', version: version$1 }, hAsync("div", { key: 'fb3feb160e46b80ed60c202871152ac3f7862f83', class: `megadropdown-container ${this.animationClass || ''}`, style: containerStyle, onAnimationEnd: () => this.handleAnimationEnd() }, hAsync("div", { key: '34e0d3e68bd9bfbeec8ebe37b8977076c91cfe02', class: "megadropdown" }, hAsync("slot", { key: '67d17ec51f7436f2a8acc1216b37820ff999f985', name: "megadropdown-title" }), hAsync("div", { key: '6671d31fcc17d435991a253f04a83bbe56551942', class: "megadropdown-content" }, hAsync("slot", { key: 'd0d313a98202f2d502e4574bed8802682d4da6f3' })), hAsync("div", { key: 'd42560e7a4f3142cb548a1ffb97ad391fd14871f', onClick: () => this.hide(true), class: "back-button" }, hAsync("slot", { key: '76f0a36d5ca87834b9d857a8f13d53ecb82f9a24', name: "back-button" })), hAsync("div", { key: 'a9ea0c1f24f5c997a1a4c9432f0c7d537b8d6da0', onClick: () => this.hide(true), class: "close-button" }, hAsync("slot", { key: '1c815102d7f4d1e21aaaaffcf277d98454eda17d', name: "close-button" }))))));
6434
+ return (hAsync(Host, { key: '40023f8684db4cfff78f69d2d5786e4c3a0332b4', version: version$1 }, hAsync("div", { key: '986f114148d355b7a6e92c19d1c02c925eb27fce', class: `megadropdown-container ${this.animationClass || ''}`, style: containerStyle, onAnimationEnd: () => this.handleAnimationEnd() }, hAsync("div", { key: 'c14d01be681f596148d39f272375615eafdf25c0', class: "megadropdown" }, hAsync("slot", { key: '5f60ff26e694c107c569e06d30e18a5940d3e7b1', name: "megadropdown-title" }), hAsync("div", { key: '49202a8a0dcebc086220db637cf25d96510b6eac', class: "megadropdown-content" }, hAsync("slot", { key: '98593b2824d21f065b4c183c8980d94136b175bf' })), hAsync("div", { key: 'ed1dfbbebd101a98153657007f8037c0282b47ef', onClick: () => this.hide(true), class: "back-button" }, hAsync("slot", { key: '4e737d72e77271cb025976ae5e5fe4d5f653480a', name: "back-button" })), hAsync("div", { key: '0bf1316c091efbf294be89efeebae7937c013b29', onClick: () => this.hide(true), class: "close-button" }, hAsync("slot", { key: '594a412944fff3fee09639b85cc13a9291b96a10', name: "close-button" }))))));
6336
6435
  }
6337
6436
  get host() { return getElement(this); }
6338
6437
  static get style() { return postMegadropdownCss; }
@@ -6452,7 +6551,7 @@ class PostMegadropdownTrigger {
6452
6551
  document.removeEventListener('postToggleMegadropdown', this.handleToggleMegadropdown);
6453
6552
  }
6454
6553
  render() {
6455
- return (hAsync(Host, { key: 'b5194e2160ffc439f3219807ec86196c01f60d31', "data-version": version$1, "tab-index": "-1" }, hAsync("button", { key: '3bf811bc35c85fc570a0b6ba3af9b5f7765676cb' }, hAsync("slot", { key: '15b6f17c8b812b43b4aec56b5396b4e194ccd711' }))));
6554
+ return (hAsync(Host, { key: 'a817027c84bb4a3418807ccbb200d36190e03d6f', "data-version": version$1, "tab-index": "-1" }, hAsync("button", { key: '1e560734f4a5f742a9efa2bff6833c1ae3e11117' }, hAsync("slot", { key: '42bf1a30f432b1fcf8e0fec1cd1d499126623234' }))));
6456
6555
  }
6457
6556
  get host() { return getElement(this); }
6458
6557
  static get watchers() { return {
@@ -6475,7 +6574,7 @@ __decorate$1([
6475
6574
  EventFrom('post-megadropdown', { ignoreNestedComponents: false })
6476
6575
  ], PostMegadropdownTrigger.prototype, "handleToggleMegadropdown", void 0);
6477
6576
 
6478
- const postMenuCss = ":host{display:block}:where([part=menu]){display:flex;flex-direction:column;padding-block:.5rem}";
6577
+ const postMenuCss = ":host{display:block}:where([part=menu]){display:flex;flex-direction:column;padding-block:.5rem}::slotted([slot=header]){margin-top:-0.5rem;padding:1rem;display:flex;align-items:center;gap:.5rem;border-block-end:1px solid #050400;font-weight:700}@media screen and (max-width: 1023.98px){::slotted([slot=header]){padding:.75rem 1rem}}@media screen and (max-width: 779.98px){::slotted([slot=header]){padding:.5rem 1rem}}";
6479
6578
 
6480
6579
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6481
6580
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -6489,6 +6588,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
6489
6588
  };
6490
6589
  /**
6491
6590
  * @part menu - The container element that holds the list of menu items.
6591
+ * @slot header - Holds the header part of the menu.
6492
6592
  */
6493
6593
  class PostMenu {
6494
6594
  constructor(hostRef) {
@@ -6567,6 +6667,9 @@ class PostMenu {
6567
6667
  validatePlacement() {
6568
6668
  checkEmptyOrOneOf(this, 'placement', PLACEMENT_TYPES);
6569
6669
  }
6670
+ validateLabel() {
6671
+ checkRequiredAndType(this, 'label', 'string');
6672
+ }
6570
6673
  connectedCallback() {
6571
6674
  this.root = getRoot(this.host);
6572
6675
  this.host.addEventListener('keydown', this.handleKeyDown);
@@ -6579,6 +6682,7 @@ class PostMenu {
6579
6682
  }
6580
6683
  componentDidLoad() {
6581
6684
  this.validatePlacement();
6685
+ this.validateLabel();
6582
6686
  if (this.popoverRef) {
6583
6687
  this.popoverRef.addEventListener('postToggle', this.handlePostToggle);
6584
6688
  }
@@ -6655,8 +6759,9 @@ class PostMenu {
6655
6759
  }
6656
6760
  }
6657
6761
  getSlottedItems() {
6658
- const slot = this.host.shadowRoot.querySelector('slot');
6659
- const slottedElements = slot ? slot.assignedElements() : [];
6762
+ const slot = this.host.shadowRoot.querySelectorAll('slot');
6763
+ const slottedElements = [];
6764
+ slot.forEach(slotItem => slottedElements.push(...slotItem.assignedElements()));
6660
6765
  return (slottedElements
6661
6766
  // If the element is a slot, get the assigned elements
6662
6767
  .flatMap(el => (el instanceof HTMLSlotElement ? el.assignedElements() : el))
@@ -6664,11 +6769,12 @@ class PostMenu {
6664
6769
  .flatMap(el => Array.from(getFocusableChildren(el))));
6665
6770
  }
6666
6771
  render() {
6667
- return (hAsync(Host, { key: '7b7fe6fccd27d3ff12eae3094b1a55b9b9778eb1', "data-version": version$1 }, hAsync("post-popovercontainer", { key: '6dae2883febd1e96ae1b34518dd2e9c634fafecb', placement: this.placement, ref: e => (this.popoverRef = e) }, hAsync("div", { key: 'e19c107831b020aa0039ea7a18465e4bb72380c4', part: "menu" }, hAsync("slot", { key: '9d9862e73dd222435d196e67c540bf8266952d94' })))));
6772
+ return (hAsync(Host, { key: 'd98d7b0a1c607732ab12c94f8d872408a053c19b', "data-version": version$1 }, hAsync("post-popovercontainer", { key: '669e6062e5ff0dfac0d311cc8fdd0bb51735aac1', placement: this.placement, ref: e => (this.popoverRef = e) }, hAsync("div", { key: '6bc1abb7b764e9e6985a839904ed5575ea20a519', part: "menu" }, hAsync("slot", { key: '6b8670f2e80ed93761797b9161ddf54bb88f73ec', name: "header" }), hAsync("slot", { key: '971f39ae63f22a503e36aeecb67575304ce14248' })))));
6668
6773
  }
6669
6774
  get host() { return getElement(this); }
6670
6775
  static get watchers() { return {
6671
- "placement": ["validatePlacement"]
6776
+ "placement": ["validatePlacement"],
6777
+ "label": ["validateLabel"]
6672
6778
  }; }
6673
6779
  static get style() { return postMenuCss; }
6674
6780
  static get cmpMeta() { return {
@@ -6691,14 +6797,14 @@ __decorate([
6691
6797
  EventFrom('post-popovercontainer')
6692
6798
  ], PostMenu.prototype, "handlePostToggle", void 0);
6693
6799
 
6694
- const postMenuItemCss = "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;user-select:none;appearance:button}@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:flex;width:100%;align-items:center;padding:.5rem 1rem;gap:.5rem;font-size:1rem;color:#050400;transition:color 250ms cubic-bezier(0.4, 0, 0.2, 1);outline-offset:0;padding-block:.75rem}post-menu-item button:has(post-icon:last-child),post-menu-item a:has(post-icon:last-child){padding-inline-end:.75rem}@media screen and (min-width: 1024px){post-menu-item button,post-menu-item a{font-size:1.25rem}}post-menu-item button>post-icon:last-child,post-menu-item a>post-icon:last-child{margin-inline-start:.5rem}post-menu-item button:focus-visible,post-menu-item a:focus-visible{outline-offset:-2px !important;border-radius:4px}post-menu-item button::after,post-menu-item a::after{content:\"\";display:block;position:absolute;inset-block-end:0;inset-inline:0;height:3px;background-color:rgba(0,0,0,0);transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-menu-item button:hover,post-menu-item a:hover{color:#504f4b}post-menu-item button:hover::after,post-menu-item a:hover::after{background-color:currentColor}";
6800
+ const postMenuItemCss = "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;user-select:none;appearance:button}@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:flex;width:100%;align-items:center;padding:.5rem .75rem .5rem 1rem;gap:.75rem;font-size:.875rem;color:#050400;border-radius:0}post-menu-item button post-icon,post-menu-item a post-icon{width:1rem;height:1rem;margin-block:.25rem}@media screen and (min-width: 780px){post-menu-item button,post-menu-item a{font-size:1rem;padding-block:.75rem;gap:1rem}post-menu-item button post-icon,post-menu-item a post-icon{width:1.5rem;height:1.5rem;margin:0}}@media screen and (min-width: 1024px){post-menu-item button,post-menu-item a{font-size:1.25rem;padding-block:.8125rem}}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}";
6695
6801
 
6696
6802
  class PostMenuItem {
6697
6803
  constructor(hostRef) {
6698
6804
  registerInstance(this, hostRef);
6699
6805
  }
6700
6806
  render() {
6701
- return (hAsync(Host, { key: '9d6015291b82728739de4263a62a59ad4a99c94d', "data-version": version$1 }, hAsync("slot", { key: '51f5ff356cddffc806639cc343437500f898065e' })));
6807
+ return (hAsync(Host, { key: '6b2c8542aed22132c627fadb6be036124e37853e', "data-version": version$1 }, hAsync("slot", { key: '8059cb5112270641ef7ba860cdacb2cdaa75fd59' })));
6702
6808
  }
6703
6809
  static get style() { return postMenuItemCss; }
6704
6810
  static get cmpMeta() { return {
@@ -6786,7 +6892,7 @@ class PostMenuTrigger {
6786
6892
  }
6787
6893
  }
6788
6894
  render() {
6789
- return (hAsync(Host, { key: '14592f9564fdb09b2e809374d5794bf71f576dbb', "data-version": version$1, "tab-index": "-1" }, hAsync("slot", { key: 'a0f463000420df39035cc5a48369d230394b5e04' })));
6895
+ return (hAsync(Host, { key: 'e4ab1c0cd7227b83994cbd74f2bb3fe88c48126e', "data-version": version$1, "tab-index": "-1" }, hAsync("slot", { key: '9c5aa5d42457f6716c7607b50b5453cdce8d50d0' })));
6790
6896
  }
6791
6897
  get host() { return getElement(this); }
6792
6898
  static get watchers() { return {
@@ -6806,7 +6912,7 @@ class PostMenuTrigger {
6806
6912
  }; }
6807
6913
  }
6808
6914
 
6809
- const postPopoverCss = ".btn-close{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:var(--post-device-border-radius-round);color:#000;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{background-color:ButtonFace !important}.btn-close:hover{background-color:Highlight !important}}.btn-close{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}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:#000}.btn-close:disabled{color:#999}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{color:var(--post-current-fg);background-color:var(--post-current-bg);display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:min(var(--post-popover-max-width, 280px),100vw)}.popover-content{padding:.5em;flex-grow:1}.btn-close{color:var(--post-current-fg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:hover{color:HighlightText !important}}";
6915
+ const postPopoverCss = "*{box-sizing:border-box}:host{display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{color:var(--post-current-fg);background-color:var(--post-current-bg);display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:min(var(--post-popover-max-width, 280px),100vw)}.popover-content{padding:.5em;flex-grow:1}";
6810
6916
 
6811
6917
  /**
6812
6918
  * @slot default - Slot for placing content inside the popover.
@@ -6920,7 +7026,7 @@ class PostPopover {
6920
7026
  trigger.setAttribute('aria-expanded', force ? 'false' : null);
6921
7027
  }
6922
7028
  render() {
6923
- return (hAsync(Host, { key: 'c0a36766203f4b2f6350c9c92b304eb9052d2ceb', "data-version": version$1 }, hAsync("post-popovercontainer", { key: 'ec9d9e8af53408fd3d2d5aaedab10ccee94322fd', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, hAsync("div", { key: '4edb0a99f660f5b4c1b35a934cc2d21bb84b1c44', class: "popover-container" }, hAsync("div", { key: '96d3fc664e0a8c5d0b877cf46df9e80433909f5e', class: "popover-content" }, hAsync("slot", { key: '978e3335f1214bed829042cfdf6bd7a23ae9229a' })), hAsync("button", { key: 'b42d5a48ba83d6e1b592b0607e837e8036e0cf54', class: "btn-close", onClick: () => this.hide() }, hAsync("span", { key: '95a7cfd1c4b6c30e04a86e58d4cf9a70eec885c8', class: "visually-hidden" }, this.closeButtonCaption))))));
7029
+ return (hAsync(Host, { key: '4224bfe1dc1bdb7fdfb86da67b54816e8cc6fce4', "data-version": version$1 }, hAsync("post-popovercontainer", { key: '3d7e370a89214878d33598cafd3d118c74d16312', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, hAsync("div", { key: 'ed806f93ddec2656a15a1b242246c9c09b34f58a', class: "popover-container" }, hAsync("div", { key: 'd60dd75153f88fc65d56dc9ec7387363e78cb835', class: "popover-content" }, hAsync("slot", { key: 'f37005a225ecde32a80dd5efc3e61ccea7ab6dc5' })), hAsync("post-closebutton", { key: 'c440bc94fb2832a8b8fcc0dd545b5f9d65cf834a', onClick: () => this.hide() }, this.closeButtonCaption)))));
6924
7030
  }
6925
7031
  get host() { return getElement(this); }
6926
7032
  static get watchers() { return {
@@ -9909,9 +10015,9 @@ class PostPopovercontainer {
9909
10015
  }
9910
10016
  }
9911
10017
  render() {
9912
- return (hAsync(Host, { key: '1594b782ac56ae23eba2df3f452ad40015ace67d', "data-version": version$1, popover: this.manualClose ? 'manual' : 'auto' }, hAsync("div", { key: '565cbf870aca9abbc665525a627922d1cfdb9195', class: "popover-content" }, this.arrow && (hAsync("span", { key: 'add7d6f7b176e7365b5a0c25fa81dd2a9520e7f3', class: "arrow", ref: el => {
10018
+ return (hAsync(Host, { key: '493d032d16ace815b6c031e77dbcc673f26d149b', "data-version": version$1, popover: this.manualClose ? 'manual' : 'auto' }, hAsync("div", { key: '97bb357cada0456b3aa458e12768d9ad5458ef24', class: "popover-content" }, this.arrow && (hAsync("span", { key: 'f5f2256470edad5a8ca89c32b3a44ef0fe388eea', class: "arrow", ref: el => {
9913
10019
  this.arrowRef = el;
9914
- } })), hAsync("slot", { key: '308138890a4148c5c94b675e2a6b911fef1c31b5' }))));
10020
+ } })), hAsync("slot", { key: 'f259b6ad624cf392e0d41026b4eab586009cb3c7' }))));
9915
10021
  }
9916
10022
  get host() { return getElement(this); }
9917
10023
  static get watchers() { return {
@@ -10055,7 +10161,7 @@ class PostRating {
10055
10161
  }
10056
10162
  }
10057
10163
  render() {
10058
- return (hAsync(Host, { key: 'b7dcf175b548433023ea3344be40b1b34f366f3c', "data-version": version$1 }, hAsync("div", { key: '1ec0c35a4ec969f489196116c4fdbaf89f203bed', 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} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (hAsync("div", { key: `star-${v}`, "aria-hidden": "true", class: {
10164
+ return (hAsync(Host, { key: 'befb055aff44467d2da231043db28797f843c239', "data-version": version$1 }, hAsync("div", { key: 'c231944ad2638c2b69b6ae9e8ad92a962aa50139', 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} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (hAsync("div", { key: `star-${v}`, "aria-hidden": "true", class: {
10059
10165
  'star': true,
10060
10166
  'before-hover': i < this.hoveredIndex,
10061
10167
  'active': i < Math.round(this.currentRating),
@@ -10102,7 +10208,7 @@ class PostTabHeader {
10102
10208
  this.tabId = `tab-${this.host.id || nanoid(6)}`;
10103
10209
  }
10104
10210
  render() {
10105
- return (hAsync(Host, { key: '11b7499afb05a1d7e6f9af548667ec93f7c2af77', id: this.tabId, role: "tab", "data-version": version$1, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, hAsync("slot", { key: '589c626bd31aed39c1f90b74ee81b2d9fdf3b7c0' })));
10211
+ return (hAsync(Host, { key: '387d9db0111153ca4a7da1a9ad600daeafa3b7a1', id: this.tabId, role: "tab", "data-version": version$1, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, hAsync("slot", { key: '62126f05530776ca45b151b00834fa0c68c5b26e' })));
10106
10212
  }
10107
10213
  get host() { return getElement(this); }
10108
10214
  static get watchers() { return {
@@ -10140,7 +10246,7 @@ class PostTabPanel {
10140
10246
  this.panelId = `panel-${this.host.id || nanoid(6)}`;
10141
10247
  }
10142
10248
  render() {
10143
- return (hAsync(Host, { key: '3f4af71d9dcd4c8d3a25514c4decf322b0297e0f', "data-version": version$1, id: this.panelId, role: "tabpanel" }, hAsync("slot", { key: 'fb2106769715676d200722103855cb3f82f30b83' })));
10249
+ return (hAsync(Host, { key: '97ae92b05f495a63bd5ec5f57eb196fdf6772ca8', "data-version": version$1, id: this.panelId, role: "tabpanel" }, hAsync("slot", { key: '8b36e0849fcd65662a27bc62ac29cec0d8db4f41' })));
10144
10250
  }
10145
10251
  get host() { return getElement(this); }
10146
10252
  static get watchers() { return {
@@ -10307,7 +10413,7 @@ class PostTabs {
10307
10413
  nextTab.focus();
10308
10414
  }
10309
10415
  render() {
10310
- return (hAsync(Host, { key: '8e205e26a016d6370919723522dc993befbc110a', "data-version": version$1 }, hAsync("div", { key: '1bd1b1064c87ab7dd04731a945a6169ace2ac203', class: "tabs-wrapper", part: "tabs" }, hAsync("div", { key: 'e9d7989ae0488ed8c9d8d225c9b6f95e29de15aa', class: "tabs", role: "tablist" }, hAsync("slot", { key: '381baa02f41fc07b6ae777fdcc47040ceaa553ea', name: "tabs", onSlotchange: () => this.enableTabs() }))), hAsync("div", { key: 'aef6b1b4608e2b006ac808f7fc674dbc85011faa', class: "tab-content", part: "content" }, hAsync("slot", { key: '4b98797972204262b1ebf29fe368ea90e2ccbce7', onSlotchange: () => this.moveMisplacedTabs() }))));
10416
+ return (hAsync(Host, { key: 'eb30ee19d073caf4f32e255045eff58c0cb511f5', "data-version": version$1 }, hAsync("div", { key: '0920e0cbb6565ff8a9ff663e938291c050d6c93c', class: "tabs-wrapper", part: "tabs" }, hAsync("div", { key: 'df3a5a698a77719b371879effba16e11709b2c22', class: "tabs", role: "tablist" }, hAsync("slot", { key: 'e6c9592b39e999369eb1b6f43b08e7130872add9', name: "tabs", onSlotchange: () => this.enableTabs() }))), hAsync("div", { key: '14cdae926ce10f854577de34b713c8e269568dbb', class: "tab-content", part: "content" }, hAsync("slot", { key: 'f2aaff6a23f8dd2683963cb25c95d41953e708f5', onSlotchange: () => this.moveMisplacedTabs() }))));
10311
10417
  }
10312
10418
  get host() { return getElement(this); }
10313
10419
  static get style() { return postTabsCss; }
@@ -10354,7 +10460,7 @@ class PostTogglebutton {
10354
10460
  this.host.addEventListener('keydown', (e) => this.handleKeydown(e));
10355
10461
  }
10356
10462
  render() {
10357
- return (hAsync(Host, { key: 'f6b56dc64dbff8ef94e4104eebe845a04f113c75', "data-version": version$1, role: "button", tabindex: "0", "aria-pressed": this.toggled.toString() }, hAsync("slot", { key: '2846bb617c7a68ba6390fe27b043265569a9fd55' })));
10463
+ return (hAsync(Host, { key: '190c53c4bbada662698addcb288bcb50a8d179b3', "data-version": version$1, role: "button", tabindex: "0", "aria-pressed": this.toggled.toString() }, hAsync("slot", { key: '544bf7d937386a6e65be75e249f3dcc080054d74' })));
10358
10464
  }
10359
10465
  get host() { return getElement(this); }
10360
10466
  static get style() { return postTogglebuttonCss; }
@@ -10435,7 +10541,7 @@ class PostTooltip {
10435
10541
  }
10436
10542
  render() {
10437
10543
  const popoverClass = `${this.arrow ? 'has-arrow' : ''}`;
10438
- return (hAsync(Host, { key: 'b2e72e54ae7c21cc8d47749269dea98cd5cd4fdf', "data-version": version$1 }, hAsync("post-popovercontainer", { key: '4280b99b2b919d07b40f6112ee514907eeff7211', safeSpace: "trapezoid", class: popoverClass, role: "tooltip", arrow: this.arrow, animation: this.animation, placement: this.placement, onPostToggle: e => this.handleToggle(e), ref: (el) => (this.popoverRef = el) }, hAsync("slot", { key: 'da25daf633dc82191f0002c54f29b35731e35082' }))));
10544
+ return (hAsync(Host, { key: 'cdde276f07efb0916bb3b0cd7cf761788421e251', "data-version": version$1 }, hAsync("post-popovercontainer", { key: '06b4d472448d4083f717ce13e73ff9426f422ec4', safeSpace: "trapezoid", class: popoverClass, role: "tooltip", arrow: this.arrow, animation: this.animation, placement: this.placement, onPostToggle: e => this.handleToggle(e), ref: (el) => (this.popoverRef = el) }, hAsync("slot", { key: 'c5efcac53b6c0fa207ceee34ee86580c7566f8a8' }))));
10439
10545
  }
10440
10546
  get host() { return getElement(this); }
10441
10547
  static get watchers() { return {
@@ -15647,7 +15753,7 @@ class PostTooltipTrigger {
15647
15753
  this.tooltip?.hide();
15648
15754
  }
15649
15755
  render() {
15650
- return (hAsync(Host, { key: '4890519cbc8f200cd5f2d6ef79822ec17776c7f0', "data-version": version$1 }, hAsync("slot", { key: '54e5d33bf2aae19f493aaff312f574b6e5fb55e6', onSlotchange: () => this.handleSlotChange() })));
15756
+ return (hAsync(Host, { key: '49529a68fdcc56e8967cdd147ac4c5c35177e70f', "data-version": version$1 }, hAsync("slot", { key: '2b38e3412393f39dd6b2da480f591e4bec38ba34', onSlotchange: () => this.handleSlotChange() })));
15651
15757
  }
15652
15758
  get host() { return getElement(this); }
15653
15759
  static get watchers() { return {