@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.js CHANGED
@@ -3229,7 +3229,7 @@ var registerHost = (elm, cmpMeta) => {
3229
3229
  };
3230
3230
  var styles = /* @__PURE__ */ new Map();
3231
3231
 
3232
- const version$1 = "10.0.0-next.49";
3232
+ const version$1 = "10.0.0-next.51";
3233
3233
 
3234
3234
  const HEADING_LEVELS = [1, 2, 3, 4, 5, 6];
3235
3235
 
@@ -3609,12 +3609,20 @@ function debounce(callback, timeout = 200) {
3609
3609
  * @param ignoreNestedComponents - Whether to ignore events from nested components
3610
3610
  * @returns true if the event should be processed, false otherwise
3611
3611
  */
3612
- function shouldProcessEvent(event, tag, host, ignoreNestedComponents) {
3612
+ function shouldProcessEvent(event, tag, host, ignoreNestedComponents, allowDescendants = false) {
3613
3613
  if (!(event instanceof Event && event.target instanceof HTMLElement))
3614
3614
  return false;
3615
3615
  const eventTarget = event.target;
3616
- if (eventTarget.localName !== tag)
3617
- return false;
3616
+ if (allowDescendants) {
3617
+ // Accept event if target or any ancestor matches tag
3618
+ if (!eventTarget.closest(tag))
3619
+ return false;
3620
+ }
3621
+ else {
3622
+ // Only accept event if target exactly matches tag
3623
+ if (eventTarget.localName !== tag)
3624
+ return false;
3625
+ }
3618
3626
  if (ignoreNestedComponents) {
3619
3627
  // Find the closest parent with the same tag as the host
3620
3628
  const closestParentWithSameTag = findClosestParentWithTag(eventTarget, host.localName);
@@ -3629,12 +3637,18 @@ function shouldProcessEvent(event, tag, host, ignoreNestedComponents) {
3629
3637
  * @param option - Configuration options for the event guard
3630
3638
  * @param option.ignoreNestedComponents - Whether to ignore events from nested components
3631
3639
  */
3632
- function EventFrom(tag, option = { ignoreNestedComponents: true }) {
3640
+ function EventFrom(tag, option) {
3641
+ // Set default values here
3642
+ const opts = {
3643
+ ignoreNestedComponents: true,
3644
+ allowDescendants: false,
3645
+ ...option,
3646
+ };
3633
3647
  return function (target, propertyKey, descriptor) {
3634
3648
  if (descriptor) {
3635
3649
  const originalMethod = descriptor.value;
3636
3650
  descriptor.value = function (event) {
3637
- if (!shouldProcessEvent(event, tag, this.host, option.ignoreNestedComponents)) {
3651
+ if (!shouldProcessEvent(event, tag, this.host, opts.ignoreNestedComponents, opts.allowDescendants)) {
3638
3652
  return;
3639
3653
  }
3640
3654
  return originalMethod.call(this, event);
@@ -3660,7 +3674,7 @@ function EventFrom(tag, option = { ignoreNestedComponents: true }) {
3660
3674
  if (typeof originalFunction === 'function') {
3661
3675
  // Store original and add new behavior
3662
3676
  this[privateKey] = (event) => {
3663
- if (!shouldProcessEvent(event, tag, this.host, option.ignoreNestedComponents)) {
3677
+ if (!shouldProcessEvent(event, tag, this.host, opts.ignoreNestedComponents)) {
3664
3678
  return;
3665
3679
  }
3666
3680
  return originalFunction.call(this, event);
@@ -3967,7 +3981,7 @@ async function cryptify(key) {
3967
3981
  }
3968
3982
  const GRAVATAR_BASE_URL = `https://www.gravatar.com/avatar/{email}?s=${GRAVATAR_SIZE}&d=${GRAVATAR_DEFAULT}&r=${GRAVATAR_RATING}`;
3969
3983
 
3970
- 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}";
3984
+ 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}";
3971
3985
 
3972
3986
  const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
3973
3987
  var AvatarType;
@@ -4341,7 +4355,7 @@ class PostBanner {
4341
4355
  this.hasActions = this.host.querySelectorAll('[slot="actions"]').length > 0;
4342
4356
  }
4343
4357
  render() {
4344
- 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" })))));
4358
+ 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" })))));
4345
4359
  }
4346
4360
  get host() { return getElement(this); }
4347
4361
  static get watchers() { return {
@@ -4362,7 +4376,7 @@ class PostBanner {
4362
4376
  }; }
4363
4377
  }
4364
4378
  __decorate$5([
4365
- EventFrom('post-closebutton')
4379
+ EventFrom('post-closebutton', { allowDescendants: true })
4366
4380
  ], PostBanner.prototype, "onCloseButtonClick", null);
4367
4381
 
4368
4382
  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}}";
@@ -4459,12 +4473,16 @@ class PostBreadcrumbs {
4459
4473
  validateHomeText() {
4460
4474
  checkEmptyOrType(this, 'homeUrl', 'string');
4461
4475
  }
4476
+ validateLabel() {
4477
+ checkRequiredAndType(this, 'menuLabel', 'string');
4478
+ }
4462
4479
  componentWillLoad() {
4463
4480
  this.updateBreadcrumbItems();
4464
4481
  }
4465
4482
  componentDidLoad() {
4466
4483
  this.validateHomeUrl();
4467
4484
  this.validateHomeText();
4485
+ this.validateLabel();
4468
4486
  window.addEventListener('resize', this.handleResize);
4469
4487
  this.waitForBreadcrumbsRef();
4470
4488
  }
@@ -4512,23 +4530,24 @@ class PostBreadcrumbs {
4512
4530
  }
4513
4531
  render() {
4514
4532
  const visibleItems = this.breadcrumbItems.slice(0, -1);
4515
- 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 => {
4533
+ 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 => {
4516
4534
  if (e.key === 'Enter' || e.key === ' ') {
4517
4535
  e.preventDefault();
4518
4536
  this.handleBreadcrumbItemClick();
4519
4537
  }
4520
- } }, 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 => {
4538
+ } }, 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 => {
4521
4539
  if (e.key === 'Enter' || e.key === ' ') {
4522
4540
  const linkElement = e.currentTarget.querySelector('a');
4523
4541
  linkElement?.click();
4524
4542
  e.preventDefault();
4525
4543
  }
4526
- } }, 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)))))));
4544
+ } }, 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)))))));
4527
4545
  }
4528
4546
  get host() { return getElement(this); }
4529
4547
  static get watchers() { return {
4530
4548
  "homeUrl": ["validateHomeUrl"],
4531
- "homeText": ["validateHomeText"]
4549
+ "homeText": ["validateHomeText"],
4550
+ "menuLabel": ["validateLabel"]
4532
4551
  }; }
4533
4552
  static get style() { return postBreadcrumbsCss; }
4534
4553
  static get cmpMeta() { return {
@@ -4537,6 +4556,7 @@ class PostBreadcrumbs {
4537
4556
  "$members$": {
4538
4557
  "homeUrl": [1, "home-url"],
4539
4558
  "homeText": [1, "home-text"],
4559
+ "menuLabel": [1, "menu-label"],
4540
4560
  "breadcrumbItems": [32],
4541
4561
  "isConcatenated": [32],
4542
4562
  "lastWindowWidth": [32]
@@ -4854,7 +4874,9 @@ class PostCardControl {
4854
4874
  }; }
4855
4875
  }
4856
4876
 
4857
- 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}";
4877
+ const BUTTON_TYPES = ['button', 'submit', 'reset'];
4878
+
4879
+ 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}}";
4858
4880
 
4859
4881
  /**
4860
4882
  * @slot default - Slot for placing visually hidden label in the close button.
@@ -4862,24 +4884,50 @@ const postClosebuttonCss = ".btn-icon-close{padding:0;border:unset;min-height:un
4862
4884
  class PostClosebutton {
4863
4885
  constructor(hostRef) {
4864
4886
  registerInstance(this, hostRef);
4887
+ this.mutationObserver = new MutationObserver(this.checkContent.bind(this));
4888
+ /**
4889
+ * Overrides the close button's type ("button" by default)
4890
+ */
4891
+ this.buttonType = 'button';
4892
+ }
4893
+ validateButtonType() {
4894
+ checkEmptyOrOneOf(this, 'buttonType', BUTTON_TYPES);
4865
4895
  }
4866
4896
  componentDidLoad() {
4867
- this.checkHiddenLabel();
4897
+ this.checkContent();
4868
4898
  }
4869
- checkHiddenLabel(slot = this.host.shadowRoot.querySelector('.visually-hidden slot')) {
4870
- if (slot.assignedNodes().length === 0) {
4899
+ connectedCallback() {
4900
+ this.mutationObserver.observe(this.host, {
4901
+ childList: true,
4902
+ characterData: true,
4903
+ subtree: true,
4904
+ });
4905
+ }
4906
+ disconnectedCallback() {
4907
+ if (this.mutationObserver) {
4908
+ this.mutationObserver.disconnect();
4909
+ }
4910
+ }
4911
+ checkContent() {
4912
+ this.validateButtonType();
4913
+ if (!this.host.querySelector('.visually-hidden').textContent) {
4871
4914
  console.error(`The \`${this.host.localName}\` component requires content for accessibility.`);
4872
4915
  }
4873
4916
  }
4874
4917
  render() {
4875
- 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() })))));
4918
+ 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' })))));
4876
4919
  }
4877
4920
  get host() { return getElement(this); }
4921
+ static get watchers() { return {
4922
+ "buttonType": ["validateButtonType"]
4923
+ }; }
4878
4924
  static get style() { return postClosebuttonCss; }
4879
4925
  static get cmpMeta() { return {
4880
- "$flags$": 9,
4926
+ "$flags$": 4,
4881
4927
  "$tagName$": "post-closebutton",
4882
- "$members$": undefined,
4928
+ "$members$": {
4929
+ "buttonType": [1, "button-type"]
4930
+ },
4883
4931
  "$listeners$": undefined,
4884
4932
  "$lazyBundleId$": "-",
4885
4933
  "$attrsToReflect$": []
@@ -5199,7 +5247,7 @@ function slideDown(el, translateSize = '-100%') {
5199
5247
  });
5200
5248
  }
5201
5249
 
5202
- 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}}";
5250
+ 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}}";
5203
5251
 
5204
5252
  var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
5205
5253
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -5213,6 +5261,7 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
5213
5261
  };
5214
5262
  /**
5215
5263
  * @slot post-logo - Should be used together with the `<post-logo>` component.
5264
+ * @slot global-controls - Holds search button in the global header.
5216
5265
  * @slot meta-navigation - Holds an `<ul>` with meta navigation links.
5217
5266
  * @slot post-togglebutton - Holds the mobile menu toggler.
5218
5267
  * @slot post-language-switch - Should be used with the `<post-language-switch>` component.
@@ -5220,6 +5269,8 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
5220
5269
  * @slot default - Custom controls or content, right aligned in the local header.
5221
5270
  * @slot post-mainnavigation - Has a default slot because it's only meant to be used in the `<post-header>`.
5222
5271
  * @slot target-group - Holds the list of buttons to choose the target group.
5272
+ * @slot global-login - Holds the user menu or login button in the global header.
5273
+ * @slot navigation-controls - Custom controls, right aligned with the main navigation.
5223
5274
  */
5224
5275
  class PostHeader {
5225
5276
  get hasMobileMenu() {
@@ -5314,7 +5365,8 @@ class PostHeader {
5314
5365
  window.removeEventListener('postBreakpoint:device', this.breakpointChange);
5315
5366
  window.removeEventListener('resize', this.throttledResize);
5316
5367
  window.removeEventListener('scroll', this.handleScrollEvent);
5317
- scrollParent.removeEventListener('scroll', this.handleScrollEvent);
5368
+ if (scrollParent)
5369
+ scrollParent.removeEventListener('scroll', this.handleScrollEvent);
5318
5370
  document.removeEventListener('postToggleMegadropdown', this.megadropdownStateHandler);
5319
5371
  this.host.removeEventListener('keydown', this.keyboardHandler);
5320
5372
  this.host.removeEventListener('click', this.handleLinkClick);
@@ -5459,15 +5511,11 @@ class PostHeader {
5459
5511
  });
5460
5512
  }
5461
5513
  renderNavigation() {
5462
- const navigationClasses = ['navigation'];
5463
- const mobileMenuScrollTop = this.mobileMenu?.scrollTop ?? 0;
5464
- if (this.mobileMenuExtended) {
5465
- navigationClasses.push('extended');
5466
- }
5467
- if (this.megadropdownOpen) {
5468
- navigationClasses.push('megadropdown-open');
5514
+ const mainNavigation = (hAsync("slot", { name: "post-mainnavigation", onSlotchange: () => this.checkNavigationExistence() }));
5515
+ if (this.device === 'desktop') {
5516
+ return (hAsync("div", { class: { 'navigation': true, 'megadropdown-open': this.megadropdownOpen } }, mainNavigation, hAsync("slot", { name: "navigation-controls" })));
5469
5517
  }
5470
- 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" }))))));
5518
+ 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" })))));
5471
5519
  }
5472
5520
  render() {
5473
5521
  const localHeaderClasses = ['local-header'];
@@ -5477,8 +5525,7 @@ class PostHeader {
5477
5525
  localHeaderClasses.push('no-navigation');
5478
5526
  if (!this.hasTitle)
5479
5527
  localHeaderClasses.push('no-title');
5480
- 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 &&
5481
- (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()));
5528
+ 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()));
5482
5529
  }
5483
5530
  get host() { return getElement(this); }
5484
5531
  static get watchers() { return {
@@ -5620,7 +5667,7 @@ class PostIcon {
5620
5667
  this.validateAnimation();
5621
5668
  }
5622
5669
  render() {
5623
- return (hAsync(Host, { key: '521fb549cef7d0838c999628cf69c5c23e87dfc6', "data-version": version$1 }, hAsync("span", { key: 'cc9ca579bd90fee8cec7868c697bfe59dd677246', style: this.getStyles() })));
5670
+ return (hAsync(Host, { key: '0031b3e2e4016f9b28cade66fa435741940946a7', "data-version": version$1 }, hAsync("span", { key: '0efbcdd5f1dd737640238a0ab81b67ca8218adec', style: this.getStyles() })));
5624
5671
  }
5625
5672
  get host() { return getElement(this); }
5626
5673
  static get watchers() { return {
@@ -5705,7 +5752,7 @@ class PostLanguageOption {
5705
5752
  this.emitChange();
5706
5753
  }
5707
5754
  };
5708
- 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)))));
5755
+ 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)))));
5709
5756
  }
5710
5757
  get host() { return getElement(this); }
5711
5758
  static get watchers() { return {
@@ -5812,7 +5859,7 @@ class PostLanguageSwitch {
5812
5859
  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))));
5813
5860
  }
5814
5861
  renderDropdown() {
5815
- 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))));
5862
+ 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))));
5816
5863
  }
5817
5864
  render() {
5818
5865
  return this.variant === 'list' ? this.renderList() : this.renderDropdown();
@@ -5870,7 +5917,7 @@ class PostLinkarea {
5870
5917
  this.mutationObserver.disconnect();
5871
5918
  }
5872
5919
  render() {
5873
- return (hAsync(Host, { key: '37351b168e654e8c563225061510dacdbda8fef4', "data-version": version$1, onClick: (e) => this.dispatchClick(e), tabindex: "0" }, hAsync("slot", { key: '26aeb1fc5de5f610ef485396f2cec4c2ba7e5a9a' })));
5920
+ return (hAsync(Host, { key: 'faa2a8c9b2fc4261496e0dbb091bae2aeee04e3b', "data-version": version$1, onClick: (e) => this.dispatchClick(e), tabindex: "0" }, hAsync("slot", { key: '57c30507720e9a04436cb4e518aa19b023cd2c39' })));
5874
5921
  }
5875
5922
  get host() { return getElement(this); }
5876
5923
  static get style() { return postLinkareaCss; }
@@ -5919,7 +5966,7 @@ class PostList {
5919
5966
  }
5920
5967
  }
5921
5968
  render() {
5922
- 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" }))));
5969
+ 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" }))));
5923
5970
  }
5924
5971
  get host() { return getElement(this); }
5925
5972
  static get style() { return postListCss; }
@@ -5950,7 +5997,7 @@ class PostListItem {
5950
5997
  this.host.setAttribute('slot', 'post-list-item');
5951
5998
  }
5952
5999
  render() {
5953
- return (hAsync(Host, { key: 'd15e750cd663def9363bedd020f09e634aba14c9', role: "listitem", slot: "post-list-item", version: version$1 }, hAsync("slot", { key: '361853e5c5994de4e5a5884cc32d7c7280b62b56' })));
6000
+ return (hAsync(Host, { key: '67204f0c31a6bc4cad3359030a8da57a045de7c5', role: "listitem", slot: "post-list-item", version: version$1 }, hAsync("slot", { key: '0c68073c601a3792880fc0e68af24a4a204548ed' })));
5954
6001
  }
5955
6002
  get host() { return getElement(this); }
5956
6003
  static get style() { return postListItemCss; }
@@ -5988,7 +6035,7 @@ class PostLogo {
5988
6035
  render() {
5989
6036
  const logoLink = this.url && (typeof this.url === 'string' ? this.url : this.url.href);
5990
6037
  const LogoTag = logoLink ? 'a' : 'span';
5991
- 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" }))))));
6038
+ 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" }))))));
5992
6039
  }
5993
6040
  get host() { return getElement(this); }
5994
6041
  static get watchers() { return {
@@ -6007,7 +6054,7 @@ class PostLogo {
6007
6054
  }; }
6008
6055
  }
6009
6056
 
6010
- 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)}}";
6057
+ 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)}}";
6011
6058
 
6012
6059
  const SCROLL_REPEAT_INTERVAL = 100; // Interval for repeated scrolling when holding down scroll button
6013
6060
  const NAVBAR_DISABLE_DURATION = 400; // Duration to temporarily disable navbar interactions during scrolling
@@ -6152,7 +6199,7 @@ class PostMainnavigation {
6152
6199
  }, NAVBAR_DISABLE_DURATION);
6153
6200
  }
6154
6201
  render() {
6155
- 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" }))));
6202
+ 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" }))));
6156
6203
  }
6157
6204
  static get style() { return postMainnavigationCss; }
6158
6205
  static get cmpMeta() { return {
@@ -6168,7 +6215,7 @@ class PostMainnavigation {
6168
6215
  }; }
6169
6216
  }
6170
6217
 
6171
- 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}}";
6218
+ 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}}";
6172
6219
 
6173
6220
  class PostMegadropdown {
6174
6221
  constructor(hostRef) {
@@ -6203,11 +6250,20 @@ class PostMegadropdown {
6203
6250
  this.hide(false);
6204
6251
  };
6205
6252
  }
6206
- breakpointChange(e) {
6207
- this.device = e.detail;
6208
- if (this.device === 'desktop' && this.isVisible) {
6209
- this.animationClass = null;
6210
- }
6253
+ get megadropdownTrigger() {
6254
+ const hostId = this.host.getAttribute('id');
6255
+ return hostId ? document.querySelector(`post-megadropdown-trigger[for="${hostId}"] > button`) : null;
6256
+ }
6257
+ connectedCallback() {
6258
+ window.addEventListener('postBreakpoint:device', this.breakpointChange.bind(this));
6259
+ }
6260
+ componentDidRender() {
6261
+ this.getFocusableElements();
6262
+ }
6263
+ componentDidLoad() {
6264
+ this.checkInitialAriaCurrent();
6265
+ this.setupObserver();
6266
+ this.handleAriaCurrentChange([]);
6211
6267
  }
6212
6268
  disconnectedCallback() {
6213
6269
  this.removeListeners();
@@ -6215,9 +6271,7 @@ class PostMegadropdown {
6215
6271
  if (PostMegadropdown.activeDropdown === this) {
6216
6272
  PostMegadropdown.activeDropdown = null;
6217
6273
  }
6218
- }
6219
- componentDidRender() {
6220
- this.getFocusableElements();
6274
+ this.defaultSlotObserver.disconnect();
6221
6275
  }
6222
6276
  /**
6223
6277
  * Toggles the dropdown visibility based on its current state.
@@ -6266,8 +6320,11 @@ class PostMegadropdown {
6266
6320
  async focusFirst() {
6267
6321
  this.firstFocusableEl?.focus();
6268
6322
  }
6269
- connectedCallback() {
6270
- window.addEventListener('postBreakpoint:device', this.breakpointChange.bind(this));
6323
+ breakpointChange(e) {
6324
+ this.device = e.detail;
6325
+ if (this.device === 'desktop' && this.isVisible) {
6326
+ this.animationClass = null;
6327
+ }
6271
6328
  }
6272
6329
  /**
6273
6330
  * Forces the dropdown to close without animation.
@@ -6299,14 +6356,6 @@ class PostMegadropdown {
6299
6356
  getFocusableElements() {
6300
6357
  const focusableEls = Array.from(this.host.querySelectorAll('post-list-item, h3, .back-button'));
6301
6358
  const focusableChildren = focusableEls.flatMap(el => Array.from(getFocusableChildren(el)));
6302
- const hostId = this.host.getAttribute('id');
6303
- // Proceed if the host has an ID and one of its focusable children is marked as the current page (`aria-current="page"`)
6304
- if (hostId && focusableChildren.some(el => el.getAttribute('aria-current') === 'page')) {
6305
- // Find the trigger element via its "for" attribute, then locate its button and set `aria-current="page"`
6306
- document
6307
- .querySelector(`post-megadropdown-trigger[for="${hostId}"] > button`)
6308
- .classList.add('selected');
6309
- }
6310
6359
  this.firstFocusableEl = focusableChildren[0];
6311
6360
  this.lastFocusableEl = focusableChildren[focusableChildren.length - 1];
6312
6361
  }
@@ -6332,9 +6381,59 @@ class PostMegadropdown {
6332
6381
  }
6333
6382
  }
6334
6383
  }
6384
+ /**
6385
+ * Sets up a MutationObserver on the host to watch for changes
6386
+ * in `aria-current` attributes.
6387
+ */
6388
+ setupObserver() {
6389
+ const config = {
6390
+ subtree: true,
6391
+ attributes: true,
6392
+ attributeFilter: ['aria-current'],
6393
+ };
6394
+ this.defaultSlotObserver = new MutationObserver(this.handleAriaCurrentChange.bind(this));
6395
+ this.defaultSlotObserver.observe(this.host, config);
6396
+ }
6397
+ /**
6398
+ * Adds or removes the 'active' class on the megadropdown trigger button
6399
+ * based on the active state.
6400
+ *
6401
+ * @param isActive - Whether the trigger should appear active
6402
+ */
6403
+ setTriggerActive(isActive) {
6404
+ const trigger = this.megadropdownTrigger;
6405
+ if (!trigger)
6406
+ return;
6407
+ if (isActive) {
6408
+ trigger.classList.add('active');
6409
+ }
6410
+ else {
6411
+ trigger.classList.remove('active');
6412
+ }
6413
+ }
6414
+ /**
6415
+ * Updates the megadropdown trigger state when the megadropdown content changes.
6416
+ * Checks if any element inside the megadropdown has `aria-current="page"`
6417
+ * and sets the trigger as active accordingly.
6418
+ */
6419
+ handleAriaCurrentChange(mutations) {
6420
+ if (!mutations.length)
6421
+ return;
6422
+ const hasCurrentPage = mutations.some(m => m.target instanceof HTMLElement && m.target.getAttribute('aria-current') === 'page');
6423
+ this.setTriggerActive(hasCurrentPage);
6424
+ }
6425
+ /**
6426
+ * Checks on initialization if any element inside the megadropdown
6427
+ * has `aria-current="page"` and sets the trigger as active if so.
6428
+ */
6429
+ checkInitialAriaCurrent() {
6430
+ const hasCurrentPage = this.host.querySelector('[aria-current="page"]');
6431
+ if (hasCurrentPage)
6432
+ this.setTriggerActive(true);
6433
+ }
6335
6434
  render() {
6336
6435
  const containerStyle = this.isVisible ? {} : { display: 'none' };
6337
- 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" }))))));
6436
+ 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" }))))));
6338
6437
  }
6339
6438
  get host() { return getElement(this); }
6340
6439
  static get style() { return postMegadropdownCss; }
@@ -6454,7 +6553,7 @@ class PostMegadropdownTrigger {
6454
6553
  document.removeEventListener('postToggleMegadropdown', this.handleToggleMegadropdown);
6455
6554
  }
6456
6555
  render() {
6457
- return (hAsync(Host, { key: 'b5194e2160ffc439f3219807ec86196c01f60d31', "data-version": version$1, "tab-index": "-1" }, hAsync("button", { key: '3bf811bc35c85fc570a0b6ba3af9b5f7765676cb' }, hAsync("slot", { key: '15b6f17c8b812b43b4aec56b5396b4e194ccd711' }))));
6556
+ return (hAsync(Host, { key: 'a817027c84bb4a3418807ccbb200d36190e03d6f', "data-version": version$1, "tab-index": "-1" }, hAsync("button", { key: '1e560734f4a5f742a9efa2bff6833c1ae3e11117' }, hAsync("slot", { key: '42bf1a30f432b1fcf8e0fec1cd1d499126623234' }))));
6458
6557
  }
6459
6558
  get host() { return getElement(this); }
6460
6559
  static get watchers() { return {
@@ -6477,7 +6576,7 @@ __decorate$1([
6477
6576
  EventFrom('post-megadropdown', { ignoreNestedComponents: false })
6478
6577
  ], PostMegadropdownTrigger.prototype, "handleToggleMegadropdown", void 0);
6479
6578
 
6480
- const postMenuCss = ":host{display:block}:where([part=menu]){display:flex;flex-direction:column;padding-block:.5rem}";
6579
+ 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}}";
6481
6580
 
6482
6581
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6483
6582
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -6491,6 +6590,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
6491
6590
  };
6492
6591
  /**
6493
6592
  * @part menu - The container element that holds the list of menu items.
6593
+ * @slot header - Holds the header part of the menu.
6494
6594
  */
6495
6595
  class PostMenu {
6496
6596
  constructor(hostRef) {
@@ -6569,6 +6669,9 @@ class PostMenu {
6569
6669
  validatePlacement() {
6570
6670
  checkEmptyOrOneOf(this, 'placement', PLACEMENT_TYPES);
6571
6671
  }
6672
+ validateLabel() {
6673
+ checkRequiredAndType(this, 'label', 'string');
6674
+ }
6572
6675
  connectedCallback() {
6573
6676
  this.root = getRoot(this.host);
6574
6677
  this.host.addEventListener('keydown', this.handleKeyDown);
@@ -6581,6 +6684,7 @@ class PostMenu {
6581
6684
  }
6582
6685
  componentDidLoad() {
6583
6686
  this.validatePlacement();
6687
+ this.validateLabel();
6584
6688
  if (this.popoverRef) {
6585
6689
  this.popoverRef.addEventListener('postToggle', this.handlePostToggle);
6586
6690
  }
@@ -6657,8 +6761,9 @@ class PostMenu {
6657
6761
  }
6658
6762
  }
6659
6763
  getSlottedItems() {
6660
- const slot = this.host.shadowRoot.querySelector('slot');
6661
- const slottedElements = slot ? slot.assignedElements() : [];
6764
+ const slot = this.host.shadowRoot.querySelectorAll('slot');
6765
+ const slottedElements = [];
6766
+ slot.forEach(slotItem => slottedElements.push(...slotItem.assignedElements()));
6662
6767
  return (slottedElements
6663
6768
  // If the element is a slot, get the assigned elements
6664
6769
  .flatMap(el => (el instanceof HTMLSlotElement ? el.assignedElements() : el))
@@ -6666,11 +6771,12 @@ class PostMenu {
6666
6771
  .flatMap(el => Array.from(getFocusableChildren(el))));
6667
6772
  }
6668
6773
  render() {
6669
- 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' })))));
6774
+ 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' })))));
6670
6775
  }
6671
6776
  get host() { return getElement(this); }
6672
6777
  static get watchers() { return {
6673
- "placement": ["validatePlacement"]
6778
+ "placement": ["validatePlacement"],
6779
+ "label": ["validateLabel"]
6674
6780
  }; }
6675
6781
  static get style() { return postMenuCss; }
6676
6782
  static get cmpMeta() { return {
@@ -6693,14 +6799,14 @@ __decorate([
6693
6799
  EventFrom('post-popovercontainer')
6694
6800
  ], PostMenu.prototype, "handlePostToggle", void 0);
6695
6801
 
6696
- 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}";
6802
+ 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}";
6697
6803
 
6698
6804
  class PostMenuItem {
6699
6805
  constructor(hostRef) {
6700
6806
  registerInstance(this, hostRef);
6701
6807
  }
6702
6808
  render() {
6703
- return (hAsync(Host, { key: '9d6015291b82728739de4263a62a59ad4a99c94d', "data-version": version$1 }, hAsync("slot", { key: '51f5ff356cddffc806639cc343437500f898065e' })));
6809
+ return (hAsync(Host, { key: '6b2c8542aed22132c627fadb6be036124e37853e', "data-version": version$1 }, hAsync("slot", { key: '8059cb5112270641ef7ba860cdacb2cdaa75fd59' })));
6704
6810
  }
6705
6811
  static get style() { return postMenuItemCss; }
6706
6812
  static get cmpMeta() { return {
@@ -6788,7 +6894,7 @@ class PostMenuTrigger {
6788
6894
  }
6789
6895
  }
6790
6896
  render() {
6791
- return (hAsync(Host, { key: '14592f9564fdb09b2e809374d5794bf71f576dbb', "data-version": version$1, "tab-index": "-1" }, hAsync("slot", { key: 'a0f463000420df39035cc5a48369d230394b5e04' })));
6897
+ return (hAsync(Host, { key: 'e4ab1c0cd7227b83994cbd74f2bb3fe88c48126e', "data-version": version$1, "tab-index": "-1" }, hAsync("slot", { key: '9c5aa5d42457f6716c7607b50b5453cdce8d50d0' })));
6792
6898
  }
6793
6899
  get host() { return getElement(this); }
6794
6900
  static get watchers() { return {
@@ -6808,7 +6914,7 @@ class PostMenuTrigger {
6808
6914
  }; }
6809
6915
  }
6810
6916
 
6811
- 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}}";
6917
+ 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}";
6812
6918
 
6813
6919
  /**
6814
6920
  * @slot default - Slot for placing content inside the popover.
@@ -6922,7 +7028,7 @@ class PostPopover {
6922
7028
  trigger.setAttribute('aria-expanded', force ? 'false' : null);
6923
7029
  }
6924
7030
  render() {
6925
- 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))))));
7031
+ 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)))));
6926
7032
  }
6927
7033
  get host() { return getElement(this); }
6928
7034
  static get watchers() { return {
@@ -9911,9 +10017,9 @@ class PostPopovercontainer {
9911
10017
  }
9912
10018
  }
9913
10019
  render() {
9914
- 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 => {
10020
+ 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 => {
9915
10021
  this.arrowRef = el;
9916
- } })), hAsync("slot", { key: '308138890a4148c5c94b675e2a6b911fef1c31b5' }))));
10022
+ } })), hAsync("slot", { key: 'f259b6ad624cf392e0d41026b4eab586009cb3c7' }))));
9917
10023
  }
9918
10024
  get host() { return getElement(this); }
9919
10025
  static get watchers() { return {
@@ -10057,7 +10163,7 @@ class PostRating {
10057
10163
  }
10058
10164
  }
10059
10165
  render() {
10060
- 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: {
10166
+ 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: {
10061
10167
  'star': true,
10062
10168
  'before-hover': i < this.hoveredIndex,
10063
10169
  'active': i < Math.round(this.currentRating),
@@ -10104,7 +10210,7 @@ class PostTabHeader {
10104
10210
  this.tabId = `tab-${this.host.id || nanoid(6)}`;
10105
10211
  }
10106
10212
  render() {
10107
- 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' })));
10213
+ 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' })));
10108
10214
  }
10109
10215
  get host() { return getElement(this); }
10110
10216
  static get watchers() { return {
@@ -10142,7 +10248,7 @@ class PostTabPanel {
10142
10248
  this.panelId = `panel-${this.host.id || nanoid(6)}`;
10143
10249
  }
10144
10250
  render() {
10145
- return (hAsync(Host, { key: '3f4af71d9dcd4c8d3a25514c4decf322b0297e0f', "data-version": version$1, id: this.panelId, role: "tabpanel" }, hAsync("slot", { key: 'fb2106769715676d200722103855cb3f82f30b83' })));
10251
+ return (hAsync(Host, { key: '97ae92b05f495a63bd5ec5f57eb196fdf6772ca8', "data-version": version$1, id: this.panelId, role: "tabpanel" }, hAsync("slot", { key: '8b36e0849fcd65662a27bc62ac29cec0d8db4f41' })));
10146
10252
  }
10147
10253
  get host() { return getElement(this); }
10148
10254
  static get watchers() { return {
@@ -10309,7 +10415,7 @@ class PostTabs {
10309
10415
  nextTab.focus();
10310
10416
  }
10311
10417
  render() {
10312
- 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() }))));
10418
+ 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() }))));
10313
10419
  }
10314
10420
  get host() { return getElement(this); }
10315
10421
  static get style() { return postTabsCss; }
@@ -10356,7 +10462,7 @@ class PostTogglebutton {
10356
10462
  this.host.addEventListener('keydown', (e) => this.handleKeydown(e));
10357
10463
  }
10358
10464
  render() {
10359
- return (hAsync(Host, { key: 'f6b56dc64dbff8ef94e4104eebe845a04f113c75', "data-version": version$1, role: "button", tabindex: "0", "aria-pressed": this.toggled.toString() }, hAsync("slot", { key: '2846bb617c7a68ba6390fe27b043265569a9fd55' })));
10465
+ return (hAsync(Host, { key: '190c53c4bbada662698addcb288bcb50a8d179b3', "data-version": version$1, role: "button", tabindex: "0", "aria-pressed": this.toggled.toString() }, hAsync("slot", { key: '544bf7d937386a6e65be75e249f3dcc080054d74' })));
10360
10466
  }
10361
10467
  get host() { return getElement(this); }
10362
10468
  static get style() { return postTogglebuttonCss; }
@@ -10437,7 +10543,7 @@ class PostTooltip {
10437
10543
  }
10438
10544
  render() {
10439
10545
  const popoverClass = `${this.arrow ? 'has-arrow' : ''}`;
10440
- 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' }))));
10546
+ 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' }))));
10441
10547
  }
10442
10548
  get host() { return getElement(this); }
10443
10549
  static get watchers() { return {
@@ -15649,7 +15755,7 @@ class PostTooltipTrigger {
15649
15755
  this.tooltip?.hide();
15650
15756
  }
15651
15757
  render() {
15652
- return (hAsync(Host, { key: '4890519cbc8f200cd5f2d6ef79822ec17776c7f0', "data-version": version$1 }, hAsync("slot", { key: '54e5d33bf2aae19f493aaff312f574b6e5fb55e6', onSlotchange: () => this.handleSlotChange() })));
15758
+ return (hAsync(Host, { key: '49529a68fdcc56e8967cdd147ac4c5c35177e70f', "data-version": version$1 }, hAsync("slot", { key: '2b38e3412393f39dd6b2da480f591e4bec38ba34', onSlotchange: () => this.handleSlotChange() })));
15653
15759
  }
15654
15760
  get host() { return getElement(this); }
15655
15761
  static get watchers() { return {