@swisspost/design-system-components 10.8.0 → 10.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/{package-DAEQGHsE.js → package-kgRYEtTJ.js} +1 -1
  4. package/dist/cjs/post-accordion_2.cjs.entry.js +1 -1
  5. package/dist/cjs/post-autocomplete.cjs.entry.js +1 -1
  6. package/dist/cjs/post-avatar.cjs.entry.js +1 -1
  7. package/dist/cjs/post-back-to-top.cjs.entry.js +1 -1
  8. package/dist/cjs/post-banner.cjs.entry.js +1 -1
  9. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +1 -1
  10. package/dist/cjs/post-breadcrumbs.cjs.entry.js +1 -1
  11. package/dist/cjs/post-closebutton_14.cjs.entry.js +83 -23
  12. package/dist/cjs/post-collapsible_2.cjs.entry.js +1 -1
  13. package/dist/cjs/post-components.cjs.js +1 -1
  14. package/dist/cjs/post-date-picker.cjs.entry.js +6 -5
  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-listbox-option.cjs.entry.js +3 -3
  18. package/dist/cjs/post-listbox.cjs.entry.js +3 -3
  19. package/dist/cjs/post-number-input.cjs.entry.js +3 -3
  20. package/dist/cjs/post-pagination.cjs.entry.js +1 -1
  21. package/dist/cjs/post-popover-trigger.cjs.entry.js +2 -2
  22. package/dist/cjs/post-popover.cjs.entry.js +3 -3
  23. package/dist/cjs/post-progressbar.cjs.entry.js +1 -1
  24. package/dist/cjs/post-rating.cjs.entry.js +2 -2
  25. package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +2 -2
  26. package/dist/cjs/post-side-navigation.cjs.entry.js +2 -2
  27. package/dist/cjs/post-stepper-item.cjs.entry.js +2 -2
  28. package/dist/cjs/post-stepper.cjs.entry.js +2 -2
  29. package/dist/cjs/post-tab-item.cjs.entry.js +2 -2
  30. package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
  31. package/dist/cjs/post-tabs.cjs.entry.js +32 -4
  32. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +2 -2
  33. package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
  34. package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
  35. package/dist/collection/components/post-date-picker/post-date-picker.js +4 -3
  36. package/dist/collection/components/post-footer/post-footer.css +1 -1
  37. package/dist/collection/components/post-header/post-header.css +1 -1
  38. package/dist/collection/components/post-header/post-header.js +71 -8
  39. package/dist/collection/components/post-icon/post-icon.css +1 -1
  40. package/dist/collection/components/post-icon/post-icon.js +1 -2
  41. package/dist/collection/components/post-language-menu/post-language-menu.js +1 -1
  42. package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
  43. package/dist/collection/components/post-listbox/post-listbox.css +1 -1
  44. package/dist/collection/components/post-listbox/post-listbox.js +1 -1
  45. package/dist/collection/components/post-listbox-option/post-listbox-option.js +2 -2
  46. package/dist/collection/components/post-logo/post-logo.js +1 -1
  47. package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
  48. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
  49. package/dist/collection/components/post-megadropdown/post-megadropdown.js +1 -1
  50. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
  51. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
  52. package/dist/collection/components/post-menu/post-menu.js +2 -2
  53. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
  54. package/dist/collection/components/post-number-input/post-number-input.js +2 -2
  55. package/dist/collection/components/post-popover/post-popover.js +2 -2
  56. package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
  57. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +1 -1
  58. package/dist/collection/components/post-progressbar/post-progressbar.js +1 -1
  59. package/dist/collection/components/post-rating/post-rating.js +1 -1
  60. package/dist/collection/components/post-side-navigation/post-side-navigation.js +1 -1
  61. package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.js +1 -1
  62. package/dist/collection/components/post-stepper/post-stepper.js +1 -1
  63. package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
  64. package/dist/collection/components/post-tab-item/post-tab-item.js +2 -2
  65. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  66. package/dist/collection/components/post-tabs/post-tabs.js +31 -3
  67. package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
  68. package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
  69. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
  70. package/dist/collection/test-setup.js +28 -0
  71. package/dist/components/package.js +1 -1
  72. package/dist/components/post-date-picker.js +1 -1
  73. package/dist/components/post-footer.js +1 -1
  74. package/dist/components/post-header.js +1 -1
  75. package/dist/components/post-icon2.js +1 -1
  76. package/dist/components/post-linkarea.js +1 -1
  77. package/dist/components/post-listbox-option.js +1 -1
  78. package/dist/components/post-listbox.js +1 -1
  79. package/dist/components/post-logo.js +1 -1
  80. package/dist/components/post-mainnavigation.js +1 -1
  81. package/dist/components/post-megadropdown-trigger.js +1 -1
  82. package/dist/components/post-megadropdown.js +1 -1
  83. package/dist/components/post-menu-trigger2.js +1 -1
  84. package/dist/components/post-menu2.js +1 -1
  85. package/dist/components/post-number-input.js +1 -1
  86. package/dist/components/post-popover-trigger.js +1 -1
  87. package/dist/components/post-popover.js +1 -1
  88. package/dist/components/post-popovercontainer2.js +1 -1
  89. package/dist/components/post-progressbar.js +1 -1
  90. package/dist/components/post-rating.js +1 -1
  91. package/dist/components/post-side-navigation-trigger.js +1 -1
  92. package/dist/components/post-side-navigation.js +1 -1
  93. package/dist/components/post-stepper-item.js +1 -1
  94. package/dist/components/post-stepper.js +1 -1
  95. package/dist/components/post-tab-item.js +1 -1
  96. package/dist/components/post-tab-panel.js +1 -1
  97. package/dist/components/post-tabs.js +1 -1
  98. package/dist/components/post-togglebutton2.js +1 -1
  99. package/dist/components/post-tooltip-trigger.js +1 -1
  100. package/dist/components/post-tooltip.js +1 -1
  101. package/dist/components/react/p-CAL337jJ.js +1 -0
  102. package/dist/components/react/{p-Q5LQWL2X.js → p-CBVthgj-.js} +1 -1
  103. package/dist/components/react/{p-C8i672qm.js → p-CLkb55ud.js} +1 -1
  104. package/dist/components/react/{p-UXyZDQt4.js → p-CYBXVnUJ.js} +1 -1
  105. package/dist/components/react/{p-DRJ9K8sv.js → p-Ci-TsJYj.js} +1 -1
  106. package/dist/components/react/{p-DzYMQFK2.js → p-CtgMQs_Q.js} +1 -1
  107. package/dist/components/react/{p-BMCit4BU.js → p-D4LBzsbB.js} +1 -1
  108. package/dist/components/react/{p-5kW0ZF_f.js → p-D5lqOfVk.js} +1 -1
  109. package/dist/components/react/p-DGpWjdFJ.js +1 -0
  110. package/dist/components/react/{p-C_JY6ipN.js → p-DSk0Nq8U.js} +1 -1
  111. package/dist/components/react/{p-DygUkCKz.js → p-Db3d6dKF.js} +1 -1
  112. package/dist/components/react/{p-BeRGbt65.js → p-DkDIUTRi.js} +1 -1
  113. package/dist/components/react/post-accordion-item.js +1 -1
  114. package/dist/components/react/post-accordion.js +1 -1
  115. package/dist/components/react/post-autocomplete.js +1 -1
  116. package/dist/components/react/post-avatar.js +1 -1
  117. package/dist/components/react/post-back-to-top.js +1 -1
  118. package/dist/components/react/post-banner.js +1 -1
  119. package/dist/components/react/post-breadcrumb-item.js +1 -1
  120. package/dist/components/react/post-breadcrumbs.js +1 -1
  121. package/dist/components/react/post-closebutton.js +1 -1
  122. package/dist/components/react/post-collapsible-trigger.js +1 -1
  123. package/dist/components/react/post-collapsible.js +1 -1
  124. package/dist/components/react/post-date-picker.js +1 -1
  125. package/dist/components/react/post-footer.js +1 -1
  126. package/dist/components/react/post-header.js +1 -1
  127. package/dist/components/react/post-icon.js +1 -1
  128. package/dist/components/react/post-language-menu-item.js +1 -1
  129. package/dist/components/react/post-language-menu.js +1 -1
  130. package/dist/components/react/post-linkarea.js +1 -1
  131. package/dist/components/react/post-listbox-option.js +1 -1
  132. package/dist/components/react/post-listbox.js +1 -1
  133. package/dist/components/react/post-logo.js +1 -1
  134. package/dist/components/react/post-mainnavigation.js +1 -1
  135. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  136. package/dist/components/react/post-megadropdown.js +1 -1
  137. package/dist/components/react/post-menu-item.js +1 -1
  138. package/dist/components/react/post-menu-trigger.js +1 -1
  139. package/dist/components/react/post-menu.js +1 -1
  140. package/dist/components/react/post-number-input.js +1 -1
  141. package/dist/components/react/post-pagination.js +1 -1
  142. package/dist/components/react/post-popover-trigger.js +1 -1
  143. package/dist/components/react/post-popover.js +1 -1
  144. package/dist/components/react/post-popovercontainer.js +1 -1
  145. package/dist/components/react/post-progressbar.js +1 -1
  146. package/dist/components/react/post-rating.js +1 -1
  147. package/dist/components/react/post-side-navigation-trigger.js +1 -1
  148. package/dist/components/react/post-side-navigation.js +1 -1
  149. package/dist/components/react/post-stepper-item.js +1 -1
  150. package/dist/components/react/post-stepper.js +1 -1
  151. package/dist/components/react/post-tab-item.js +1 -1
  152. package/dist/components/react/post-tab-panel.js +1 -1
  153. package/dist/components/react/post-tabs.js +1 -1
  154. package/dist/components/react/post-togglebutton.js +1 -1
  155. package/dist/components/react/post-tooltip-trigger.js +1 -1
  156. package/dist/components/react/post-tooltip.js +1 -1
  157. package/dist/docs.json +1 -1
  158. package/dist/esm/loader.js +1 -1
  159. package/dist/esm/{package-BdiQsTQm.js → package-CAL337jJ.js} +1 -1
  160. package/dist/esm/post-accordion_2.entry.js +1 -1
  161. package/dist/esm/post-autocomplete.entry.js +1 -1
  162. package/dist/esm/post-avatar.entry.js +1 -1
  163. package/dist/esm/post-back-to-top.entry.js +1 -1
  164. package/dist/esm/post-banner.entry.js +1 -1
  165. package/dist/esm/post-breadcrumb-item.entry.js +1 -1
  166. package/dist/esm/post-breadcrumbs.entry.js +1 -1
  167. package/dist/esm/post-closebutton_14.entry.js +83 -23
  168. package/dist/esm/post-collapsible_2.entry.js +1 -1
  169. package/dist/esm/post-components.js +1 -1
  170. package/dist/esm/post-date-picker.entry.js +6 -5
  171. package/dist/esm/post-footer.entry.js +2 -2
  172. package/dist/esm/post-linkarea.entry.js +2 -2
  173. package/dist/esm/post-listbox-option.entry.js +3 -3
  174. package/dist/esm/post-listbox.entry.js +3 -3
  175. package/dist/esm/post-number-input.entry.js +3 -3
  176. package/dist/esm/post-pagination.entry.js +1 -1
  177. package/dist/esm/post-popover-trigger.entry.js +2 -2
  178. package/dist/esm/post-popover.entry.js +3 -3
  179. package/dist/esm/post-progressbar.entry.js +1 -1
  180. package/dist/esm/post-rating.entry.js +2 -2
  181. package/dist/esm/post-side-navigation-trigger.entry.js +2 -2
  182. package/dist/esm/post-side-navigation.entry.js +2 -2
  183. package/dist/esm/post-stepper-item.entry.js +2 -2
  184. package/dist/esm/post-stepper.entry.js +2 -2
  185. package/dist/esm/post-tab-item.entry.js +2 -2
  186. package/dist/esm/post-tab-panel.entry.js +2 -2
  187. package/dist/esm/post-tabs.entry.js +32 -4
  188. package/dist/esm/post-tooltip-trigger.entry.js +2 -2
  189. package/dist/esm/post-tooltip.entry.js +2 -2
  190. package/dist/post-components/{p-ab0500b7.entry.js → p-077be898.entry.js} +1 -1
  191. package/dist/post-components/{p-3712133b.entry.js → p-184bd61c.entry.js} +1 -1
  192. package/dist/post-components/p-1933e4fa.entry.js +1 -0
  193. package/dist/post-components/{p-c123ecde.entry.js → p-21e6f82a.entry.js} +1 -1
  194. package/dist/post-components/{p-534ca27e.entry.js → p-2220db4c.entry.js} +1 -1
  195. package/dist/post-components/{p-dffeb751.entry.js → p-2aff3873.entry.js} +1 -1
  196. package/dist/post-components/{p-6ad44691.entry.js → p-2b475cd7.entry.js} +1 -1
  197. package/dist/post-components/p-33a898ec.entry.js +1 -0
  198. package/dist/post-components/{p-0688d296.entry.js → p-405c1fff.entry.js} +1 -1
  199. package/dist/post-components/{p-379780a3.entry.js → p-5efaca25.entry.js} +1 -1
  200. package/dist/post-components/{p-6833be12.entry.js → p-6a9661d9.entry.js} +1 -1
  201. package/dist/post-components/{p-2a5312a7.entry.js → p-7dd192b3.entry.js} +1 -1
  202. package/dist/post-components/{p-0b0b2f02.entry.js → p-8e5052d5.entry.js} +1 -1
  203. package/dist/post-components/{p-9fedcfba.entry.js → p-9440738d.entry.js} +1 -1
  204. package/dist/post-components/{p-0d25c033.entry.js → p-965a02fb.entry.js} +1 -1
  205. package/dist/post-components/{p-d2de31b7.entry.js → p-9740719e.entry.js} +1 -1
  206. package/dist/post-components/{p-5369b9c2.entry.js → p-9af8f5af.entry.js} +1 -1
  207. package/dist/post-components/p-CAL337jJ.js +1 -0
  208. package/dist/post-components/p-a6971c1c.entry.js +1 -0
  209. package/dist/post-components/p-a7d8f328.entry.js +1 -0
  210. package/dist/post-components/{p-e11ccdbe.entry.js → p-bb9a0e1e.entry.js} +1 -1
  211. package/dist/post-components/{p-82c62e90.entry.js → p-bf8c7dca.entry.js} +1 -1
  212. package/dist/post-components/p-c3351def.entry.js +1 -0
  213. package/dist/post-components/{p-e560767b.entry.js → p-c87f33f0.entry.js} +1 -1
  214. package/dist/post-components/{p-456b0786.entry.js → p-e30b534d.entry.js} +1 -1
  215. package/dist/post-components/{p-330fd6cd.entry.js → p-e73eabac.entry.js} +1 -1
  216. package/dist/post-components/{p-f2629077.entry.js → p-e84fe883.entry.js} +1 -1
  217. package/dist/post-components/{p-229d324e.entry.js → p-eaa28736.entry.js} +1 -1
  218. package/dist/post-components/{p-91a2ef3c.entry.js → p-f2cb8ed1.entry.js} +1 -1
  219. package/dist/post-components/{p-f2b24bbd.entry.js → p-ffbf2375.entry.js} +1 -1
  220. package/dist/post-components/post-components.esm.js +1 -1
  221. package/dist/types/components/post-header/post-header.d.ts +12 -0
  222. package/dist/types/components/post-tabs/post-tabs.d.ts +4 -0
  223. package/hydrate/index.js +140 -50
  224. package/hydrate/index.mjs +140 -50
  225. package/package.json +21 -21
  226. package/dist/components/react/p-BdiQsTQm.js +0 -1
  227. package/dist/components/react/p-E-8qAn1z.js +0 -1
  228. package/dist/post-components/p-3fdb8ebc.entry.js +0 -1
  229. package/dist/post-components/p-4d30c65d.entry.js +0 -1
  230. package/dist/post-components/p-95f5d5ea.entry.js +0 -1
  231. package/dist/post-components/p-9dd286bf.entry.js +0 -1
  232. package/dist/post-components/p-BdiQsTQm.js +0 -1
  233. package/dist/post-components/p-ee7fade4.entry.js +0 -1
@@ -1 +1 @@
1
- import{p as t,H as e,h as o,a as i,t as s}from"./index.js";import"./p-DeO0rZ1T.js";import{c as r}from"./p-lpWRZjJp.js";import{n as a}from"./p-8LXe8Zt_.js";import{v as n}from"./p-BdiQsTQm.js";import{t as c}from"./p-bR8vy6-s.js";import{d as m}from"./p-E-8qAn1z.js";import{d as l}from"./p-DzYMQFK2.js";import{d}from"./p-BeRGbt65.js";import{d as h}from"./p-UXyZDQt4.js";import{d as u}from"./p-5kW0ZF_f.js";import{R as p}from"./p-B2jsM_Ov.js";import{U as b}from"./p-BdLRXQqY.js";import{T as g}from"./p-CVVXnYLU.js";var v=function(t,e,o,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,o,a):s(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};const f=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.debounceUpdateCollapsedItems=c(50,this.updateCollapsedItems.bind(this)),this.resizeObserver=new ResizeObserver(this.debounceUpdateCollapsedItems),this.mutationObserver=new MutationObserver((()=>{this.updateAfterMutation()})),this.loaded=!1,this.hasSlottedHomeAnchor=!1,this.hasSlottedHomeIcon=!1,this.collapsed=0,this.homeCollapsed=!1,this.lastItemWraps=!1,this.nav=null,this.hiddenNav=null,this.homeTextOnly=!1}componentWillLoad(){this.id=this.host.id||"b"+a(6),this.checkSlottedHomeAnchor()}async componentDidLoad(){this.resizeObserver?.observe(document.body),this.mutationObserver?.observe(this.host,{childList:!0,characterData:!0,subtree:!0}),await this.updateHiddenNav(),await this.updateCollapsedItems(),this.loaded=!0}disconnectedCallback(){this.resizeObserver?.disconnect(),this.mutationObserver?.disconnect(),this.debounceUpdateCollapsedItems.cancel()}checkSlottedHomeAnchor(){const t=Array.from(this.host.children).find((t=>"home"===t.getAttribute("slot")));this.hasSlottedHomeAnchor="A"===t?.tagName,this.hasSlottedHomeIcon=this.hasSlottedHomeAnchor&&!!t?.querySelector("post-icon")}get usesHomeText(){return this.hasSlottedHomeAnchor?!this.hasSlottedHomeIcon:this.homeTextOnly}async updateCollapsedItems(){if(!this.nav)return;const{overflowing:t,homeOverflows:e,lastItemWraps:o}=await this.calculateCollapsedItems();this.collapsed=t,this.homeCollapsed=e,this.lastItemWraps=o}async calculateCollapsedItems(){const t=this.host.querySelectorAll("post-breadcrumb-item"),{overflowing:e,homeOverflows:o,lastItemWraps:i}=await this.calculateOverflowingItems();return{overflowing:Math.max(e,t.length-6),homeOverflows:o,lastItemWraps:i}}async calculateOverflowingItems(){if(!this.hiddenNav)return{overflowing:0,homeOverflows:!1,lastItemWraps:!1};const t=this.hiddenNav,e=t.clientWidth,o=Number.parseFloat(getComputedStyle(t.firstElementChild).gap),i=t.querySelector(".menu")?.clientWidth??0,s=t.querySelector(".home")?.clientWidth??0,r=Array.from(t.querySelectorAll("post-breadcrumb-item")).slice(0,-1),{overflowing:a,remainingWidth:n}=this.collapseMiddleItems(r,o,i,e),c=this.usesHomeText&&n>e;return{overflowing:a,homeOverflows:c,lastItemWraps:this.usesHomeText?c&&n-s+(0===a?i:0)>e:n>e}}collapseMiddleItems(t,e,o,i){let s=this.hiddenNav.scrollWidth-o+e,r=0;for(;r<t.length&&s>i;)0===r&&(s+=o),s-=t[r++].clientWidth+e;return{overflowing:r,remainingWidth:s}}updateItems(t,e,o){t.forEach(((i,s)=>{const r=s===t.length-1;i.setAttribute("variant",s<e?"menuitem":"listitem"),i.setAttribute("selected",r+""),i.setAttribute("standalone",(r&&s===e&&o)+"")}))}async updateHiddenNav(){this.hiddenNav?.remove(),this.hiddenNav=await this.renderHiddenNav()}async updateAfterMutation(){await this.updateHiddenNav(),await this.updateCollapsedItems()}async renderHiddenNav(){const t=this.host.shadowRoot;if(!t||!this.nav)return null;const e=this.nav.cloneNode(!0),o=e.querySelectorAll("slot");this.nav.querySelectorAll("slot").forEach(((t,e)=>{const i=o[e],s=t.assignedElements();if(s.length>0)s.forEach((t=>{i.insertAdjacentElement("beforebegin",t.cloneNode(!0))})),i.remove();else{const t=i.parentNode;t&&(Array.from(i.childNodes).forEach((e=>t.insertBefore(e,i))),i.remove())}}));const i=e.querySelector(".home");i?.parentNode?.replaceChild(this.buildMeasurementHomeElement(),i),e.classList.remove("loading"),e.classList.add("invisible"),e.querySelector(".menu").classList.remove("empty"),t.append(e);const s=e.querySelectorAll("post-breadcrumb-item");return await Promise.all(Array.from(s).map((t=>r(t)))),this.updateItems(s,0,!1),e}buildMeasurementHomeElement(){const t=document.createElement("div");t.className="breadcrumb-item home"+(this.usesHomeText?"":" icon"),t.setAttribute("role","listitem");const e=this.hasSlottedHomeAnchor?Array.from(this.host.children).find((t=>"home"===t.getAttribute("slot"))):null;if(e)return t.append(e.cloneNode(!0)),t;const o=document.createElement("a");this.homeUrl&&(o.href=this.homeUrl);const i=document.createElement("span");if(this.usesHomeText||(i.className="visually-hidden"),i.textContent=this.textHome,o.append(i),!this.usesHomeText){const t=document.createElement("post-icon");t.setAttribute("aria-hidden","true"),t.setAttribute("name","home"),o.append(t)}return t.append(o),t}renderMenu(){const t=this.id+"-menu";return o("div",{class:"breadcrumb-item menu "+(0!==this.collapsed||this.homeCollapsed?"":"empty"),role:"listitem"},o("post-menu-trigger",{for:t},o("button",null,o("span",{class:"visually-hidden"},this.textMoreItems),o("span",{"aria-hidden":"true"},"..."))),o("post-menu",{id:t,label:this.textMoreItems,placement:"bottom-start"},this.homeCollapsed&&this.usesHomeText&&o("post-menu-item",null,this.renderHomeContent()),o("slot",{name:"menu"})))}renderHomeContent(){return o("slot",{name:"home",onSlotchange:()=>this.checkSlottedHomeAnchor()},o("a",{href:this.homeUrl},o("span",{class:this.usesHomeText?void 0:"visually-hidden"},this.textHome),!this.usesHomeText&&o("post-icon",{"aria-hidden":"true",name:"home"})))}renderHome(){return o("div",{class:"breadcrumb-item home"+(this.usesHomeText?"":" icon"),role:"listitem"},this.renderHomeContent())}render(){if(this.loaded){const t=this.host.querySelectorAll("post-breadcrumb-item");this.updateItems(t,this.collapsed,this.lastItemWraps)}return o(i,{key:"8d5f457a7c6a2df0cfaf5c31f3ffc6937de76e57","data-version":n,class:this.homeCollapsed&&this.usesHomeText?"home-collapsed":void 0},o("nav",{key:"ce3fd7ad69060dd6968afaad6170e27eee72682f","aria-label":this.textBreadcrumbs,ref:t=>this.nav=t,class:this.loaded?"":"loading"},o("div",{key:"1c400c8c1e1b625203876cc9804936782a2202c6",role:"list"},(!this.homeCollapsed||!this.usesHomeText)&&this.renderHome(),this.renderMenu(),o("slot",{key:"5cf6618b487961c0e7d70637f5396d023660ec55"}),o("slot",{key:"f4fb662d04d9966c76a22444844d692611472b2d",name:"selected"}))))}get host(){return this}static get style(){return':host{display:block;position:relative}nav{max-width:100%}nav.invisible{overflow:hidden;visibility:hidden;position:absolute;inset:0}nav.loading>div>:not(.home){display:none}[role=list]{display:flex;align-items:flex-start;gap:var(--post-device-spacing-gap-inline-4)}[role=list]>.menu:first-child::before{content:none}.breadcrumb-item{display:flex;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item :is(button,a){display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;border-radius:var(--post-device-border-radius-focus);color:var(--post-scheme-color-interactive-primary-enabled-fg1);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item :is(button,a):not(:disabled):hover{text-decoration:none}.breadcrumb-item :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.breadcrumb-item :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item :is(button,a):focus-visible{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):focus-visible{outline-color:Highlight !important}}.breadcrumb-item :is(button,a).pretend-focus{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a).pretend-focus{outline-color:Highlight !important}}.breadcrumb-item :is(button,a):has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a){border-width:1px !important;transition:none}.breadcrumb-item :is(button,a):is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}.breadcrumb-item :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item::before{mask-image:var(--post-icon-chevronright);background-color:currentColor;flex:0 0 auto;content:"";display:block;height:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}post-menu-item>slot[name=home]>a{position:relative;display:flex;align-items:center;padding:8px 12px 8px 16px;gap:12px;font-size:.875rem;color:#050400;border-radius:0;text-decoration:none;min-width:0;white-space:normal;overflow:visible;text-overflow:unset;justify-content:start;overflow-wrap:anywhere;hyphens:auto;line-break:strict}@media screen and (min-width: 780px){post-menu-item>slot[name=home]>a{font-size:1rem;padding-block:12px;gap:16px}}@media screen and (min-width: 1024px){post-menu-item>slot[name=home]>a{font-size:1.25rem;padding-block:13px}}post-menu-item>slot[name=home]>a:focus-visible{outline:none !important}post-menu-item>slot[name=home]>a.pretend-focus{outline:none !important}post-menu-item>slot[name=home]>a:has(:focus-visible){outline:none !important}@supports not selector(:has(:focus-visible)){post-menu-item>slot[name=home]>a:is(:focus-visible,:focus-within,.pretend-focus){outline:none !important}}post-menu-item>slot[name=home]>a::after{content:"";position:absolute;inset:0;width:100%;height:100%;border-radius:calc(var(--post-device-border-radius-focus) - var(--post-device-spacing-padding-44))}post-menu-item>slot[name=home]>a::after{outline-offset:var(--post-device-spacing-padding-44) !important;outline:#050400 none var(--post-device-border-width-focus) !important}post-menu-item>slot[name=home]>a:focus-visible::after{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item>slot[name=home]>a:focus-visible::after{outline-color:Highlight !important}}post-menu-item>slot[name=home]>a.pretend-focus::after{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item>slot[name=home]>a.pretend-focus::after{outline-color:Highlight !important}}post-menu-item>slot[name=home]>a:has(:focus-visible)::after{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item>slot[name=home]>a:has(:focus-visible)::after{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-menu-item>slot[name=home]>a:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item>slot[name=home]>a:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-color:Highlight !important}}}post-menu-item>slot[name=home]>a:hover{background-color:#504f4b;color:#fff}post-menu-item>slot[name=home]>a:hover:focus-visible::after{outline-color:#fff !important}post-menu-item>slot[name=home]>a:hover.pretend-focus::after{outline-color:#fff !important}post-menu-item>slot[name=home]>a:hover:has(:focus-visible)::after{outline-color:#fff !important}@supports not selector(:has(:focus-visible)){post-menu-item>slot[name=home]>a:hover:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-color:#fff !important}}.home{flex:none}.home::before{content:unset}.home.icon{padding-block:var(--post-device-spacing-padding-47)}.home.icon post-icon{width:var(--post-device-sizing-interactive-icon-size2);height:var(--post-device-sizing-interactive-icon-size2)}.menu{margin-inline-end:calc(-1*var(--post-device-spacing-gap-inline-4))}.menu.empty{display:none}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}'}},[257,"post-breadcrumbs",{homeUrl:[513,"home-url"],textHome:[513,"text-home"],homeTextOnly:[516,"home-text-only"],textBreadcrumbs:[513,"text-breadcrumbs"],textMoreItems:[513,"text-more-items"],id:[32],loaded:[32],hasSlottedHomeAnchor:[32],hasSlottedHomeIcon:[32],collapsed:[32],homeCollapsed:[32],lastItemWraps:[32]}]);function M(){"undefined"!=typeof customElements&&["post-breadcrumbs","post-icon","post-menu","post-menu-item","post-menu-trigger","post-popovercontainer"].forEach((t=>{switch(t){case"post-breadcrumbs":customElements.get(s(t))||customElements.define(s(t),f);break;case"post-icon":customElements.get(s(t))||m();break;case"post-menu":customElements.get(s(t))||l();break;case"post-menu-item":customElements.get(s(t))||d();break;case"post-menu-trigger":customElements.get(s(t))||h();break;case"post-popovercontainer":customElements.get(s(t))||u()}}))}v([p({when:"hasSlottedHomeAnchor",truthy:!1}),b()],f.prototype,"homeUrl",void 0),v([p({when:"hasSlottedHomeAnchor",truthy:!1}),g("string")],f.prototype,"textHome",void 0),v([p(),g("boolean")],f.prototype,"homeTextOnly",void 0),v([p(),g("string")],f.prototype,"textBreadcrumbs",void 0),v([p(),g("string")],f.prototype,"textMoreItems",void 0),M();const I=f,j=M;export{I as PostBreadcrumbs,j as defineCustomElement}
1
+ import{p as t,H as e,h as o,a as i,t as s}from"./index.js";import"./p-DeO0rZ1T.js";import{c as r}from"./p-lpWRZjJp.js";import{n as a}from"./p-8LXe8Zt_.js";import{v as n}from"./p-CAL337jJ.js";import{t as c}from"./p-bR8vy6-s.js";import{d as m}from"./p-DGpWjdFJ.js";import{d as l}from"./p-CtgMQs_Q.js";import{d}from"./p-DkDIUTRi.js";import{d as h}from"./p-CYBXVnUJ.js";import{d as u}from"./p-D5lqOfVk.js";import{R as p}from"./p-B2jsM_Ov.js";import{U as b}from"./p-BdLRXQqY.js";import{T as g}from"./p-CVVXnYLU.js";var v=function(t,e,o,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,o,a):s(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};const f=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.debounceUpdateCollapsedItems=c(50,this.updateCollapsedItems.bind(this)),this.resizeObserver=new ResizeObserver(this.debounceUpdateCollapsedItems),this.mutationObserver=new MutationObserver((()=>{this.updateAfterMutation()})),this.loaded=!1,this.hasSlottedHomeAnchor=!1,this.hasSlottedHomeIcon=!1,this.collapsed=0,this.homeCollapsed=!1,this.lastItemWraps=!1,this.nav=null,this.hiddenNav=null,this.homeTextOnly=!1}componentWillLoad(){this.id=this.host.id||"b"+a(6),this.checkSlottedHomeAnchor()}async componentDidLoad(){this.resizeObserver?.observe(document.body),this.mutationObserver?.observe(this.host,{childList:!0,characterData:!0,subtree:!0}),await this.updateHiddenNav(),await this.updateCollapsedItems(),this.loaded=!0}disconnectedCallback(){this.resizeObserver?.disconnect(),this.mutationObserver?.disconnect(),this.debounceUpdateCollapsedItems.cancel()}checkSlottedHomeAnchor(){const t=Array.from(this.host.children).find((t=>"home"===t.getAttribute("slot")));this.hasSlottedHomeAnchor="A"===t?.tagName,this.hasSlottedHomeIcon=this.hasSlottedHomeAnchor&&!!t?.querySelector("post-icon")}get usesHomeText(){return this.hasSlottedHomeAnchor?!this.hasSlottedHomeIcon:this.homeTextOnly}async updateCollapsedItems(){if(!this.nav)return;const{overflowing:t,homeOverflows:e,lastItemWraps:o}=await this.calculateCollapsedItems();this.collapsed=t,this.homeCollapsed=e,this.lastItemWraps=o}async calculateCollapsedItems(){const t=this.host.querySelectorAll("post-breadcrumb-item"),{overflowing:e,homeOverflows:o,lastItemWraps:i}=await this.calculateOverflowingItems();return{overflowing:Math.max(e,t.length-6),homeOverflows:o,lastItemWraps:i}}async calculateOverflowingItems(){if(!this.hiddenNav)return{overflowing:0,homeOverflows:!1,lastItemWraps:!1};const t=this.hiddenNav,e=t.clientWidth,o=Number.parseFloat(getComputedStyle(t.firstElementChild).gap),i=t.querySelector(".menu")?.clientWidth??0,s=t.querySelector(".home")?.clientWidth??0,r=Array.from(t.querySelectorAll("post-breadcrumb-item")).slice(0,-1),{overflowing:a,remainingWidth:n}=this.collapseMiddleItems(r,o,i,e),c=this.usesHomeText&&n>e;return{overflowing:a,homeOverflows:c,lastItemWraps:this.usesHomeText?c&&n-s+(0===a?i:0)>e:n>e}}collapseMiddleItems(t,e,o,i){let s=this.hiddenNav.scrollWidth-o+e,r=0;for(;r<t.length&&s>i;)0===r&&(s+=o),s-=t[r++].clientWidth+e;return{overflowing:r,remainingWidth:s}}updateItems(t,e,o){t.forEach(((i,s)=>{const r=s===t.length-1;i.setAttribute("variant",s<e?"menuitem":"listitem"),i.setAttribute("selected",r+""),i.setAttribute("standalone",(r&&s===e&&o)+"")}))}async updateHiddenNav(){this.hiddenNav?.remove(),this.hiddenNav=await this.renderHiddenNav()}async updateAfterMutation(){await this.updateHiddenNav(),await this.updateCollapsedItems()}async renderHiddenNav(){const t=this.host.shadowRoot;if(!t||!this.nav)return null;const e=this.nav.cloneNode(!0),o=e.querySelectorAll("slot");this.nav.querySelectorAll("slot").forEach(((t,e)=>{const i=o[e],s=t.assignedElements();if(s.length>0)s.forEach((t=>{i.insertAdjacentElement("beforebegin",t.cloneNode(!0))})),i.remove();else{const t=i.parentNode;t&&(Array.from(i.childNodes).forEach((e=>t.insertBefore(e,i))),i.remove())}}));const i=e.querySelector(".home");i?.parentNode?.replaceChild(this.buildMeasurementHomeElement(),i),e.classList.remove("loading"),e.classList.add("invisible"),e.querySelector(".menu").classList.remove("empty"),t.append(e);const s=e.querySelectorAll("post-breadcrumb-item");return await Promise.all(Array.from(s).map((t=>r(t)))),this.updateItems(s,0,!1),e}buildMeasurementHomeElement(){const t=document.createElement("div");t.className="breadcrumb-item home"+(this.usesHomeText?"":" icon"),t.setAttribute("role","listitem");const e=this.hasSlottedHomeAnchor?Array.from(this.host.children).find((t=>"home"===t.getAttribute("slot"))):null;if(e)return t.append(e.cloneNode(!0)),t;const o=document.createElement("a");this.homeUrl&&(o.href=this.homeUrl);const i=document.createElement("span");if(this.usesHomeText||(i.className="visually-hidden"),i.textContent=this.textHome,o.append(i),!this.usesHomeText){const t=document.createElement("post-icon");t.setAttribute("aria-hidden","true"),t.setAttribute("name","home"),o.append(t)}return t.append(o),t}renderMenu(){const t=this.id+"-menu";return o("div",{class:"breadcrumb-item menu "+(0!==this.collapsed||this.homeCollapsed?"":"empty"),role:"listitem"},o("post-menu-trigger",{for:t},o("button",null,o("span",{class:"visually-hidden"},this.textMoreItems),o("span",{"aria-hidden":"true"},"..."))),o("post-menu",{id:t,label:this.textMoreItems,placement:"bottom-start"},this.homeCollapsed&&this.usesHomeText&&o("post-menu-item",null,this.renderHomeContent()),o("slot",{name:"menu"})))}renderHomeContent(){return o("slot",{name:"home",onSlotchange:()=>this.checkSlottedHomeAnchor()},o("a",{href:this.homeUrl},o("span",{class:this.usesHomeText?void 0:"visually-hidden"},this.textHome),!this.usesHomeText&&o("post-icon",{"aria-hidden":"true",name:"home"})))}renderHome(){return o("div",{class:"breadcrumb-item home"+(this.usesHomeText?"":" icon"),role:"listitem"},this.renderHomeContent())}render(){if(this.loaded){const t=this.host.querySelectorAll("post-breadcrumb-item");this.updateItems(t,this.collapsed,this.lastItemWraps)}return o(i,{key:"8d5f457a7c6a2df0cfaf5c31f3ffc6937de76e57","data-version":n,class:this.homeCollapsed&&this.usesHomeText?"home-collapsed":void 0},o("nav",{key:"ce3fd7ad69060dd6968afaad6170e27eee72682f","aria-label":this.textBreadcrumbs,ref:t=>this.nav=t,class:this.loaded?"":"loading"},o("div",{key:"1c400c8c1e1b625203876cc9804936782a2202c6",role:"list"},(!this.homeCollapsed||!this.usesHomeText)&&this.renderHome(),this.renderMenu(),o("slot",{key:"5cf6618b487961c0e7d70637f5396d023660ec55"}),o("slot",{key:"f4fb662d04d9966c76a22444844d692611472b2d",name:"selected"}))))}get host(){return this}static get style(){return':host{display:block;position:relative}nav{max-width:100%}nav.invisible{overflow:hidden;visibility:hidden;position:absolute;inset:0}nav.loading>div>:not(.home){display:none}[role=list]{display:flex;align-items:flex-start;gap:var(--post-device-spacing-gap-inline-4)}[role=list]>.menu:first-child::before{content:none}.breadcrumb-item{display:flex;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item :is(button,a){display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;border-radius:var(--post-device-border-radius-focus);color:var(--post-scheme-color-interactive-primary-enabled-fg1);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item :is(button,a):not(:disabled):hover{text-decoration:none}.breadcrumb-item :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.breadcrumb-item :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item :is(button,a):focus-visible{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):focus-visible{outline-color:Highlight !important}}.breadcrumb-item :is(button,a).pretend-focus{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a).pretend-focus{outline-color:Highlight !important}}.breadcrumb-item :is(button,a):has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a){border-width:1px !important;transition:none}.breadcrumb-item :is(button,a):is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}.breadcrumb-item :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item::before{mask-image:var(--post-icon-chevronright);background-color:currentColor;flex:0 0 auto;content:"";display:block;height:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}post-menu-item>slot[name=home]>a{position:relative;display:flex;align-items:center;padding:8px 12px 8px 16px;gap:12px;font-size:.875rem;color:#050400;border-radius:0;text-decoration:none;min-width:0;white-space:normal;overflow:visible;text-overflow:unset;justify-content:start;overflow-wrap:anywhere;hyphens:auto;line-break:strict}@media screen and (min-width: 780px){post-menu-item>slot[name=home]>a{font-size:1rem;padding-block:12px;gap:16px}}@media screen and (min-width: 1024px){post-menu-item>slot[name=home]>a{font-size:1.25rem;padding-block:13px}}post-menu-item>slot[name=home]>a:focus-visible{outline:none !important}post-menu-item>slot[name=home]>a.pretend-focus{outline:none !important}post-menu-item>slot[name=home]>a:has(:focus-visible){outline:none !important}@supports not selector(:has(:focus-visible)){post-menu-item>slot[name=home]>a:is(:focus-visible,:focus-within,.pretend-focus){outline:none !important}}post-menu-item>slot[name=home]>a::after{content:"";position:absolute;inset:0;width:100%;height:100%;border-radius:calc(var(--post-device-border-radius-focus) - var(--post-device-spacing-padding-44))}post-menu-item>slot[name=home]>a::after{outline-offset:var(--post-device-spacing-padding-44) !important;outline:#050400 none var(--post-device-border-width-focus) !important}post-menu-item>slot[name=home]>a:focus-visible::after{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item>slot[name=home]>a:focus-visible::after{outline-color:Highlight !important}}post-menu-item>slot[name=home]>a.pretend-focus::after{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item>slot[name=home]>a.pretend-focus::after{outline-color:Highlight !important}}post-menu-item>slot[name=home]>a:has(:focus-visible)::after{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item>slot[name=home]>a:has(:focus-visible)::after{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-menu-item>slot[name=home]>a:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item>slot[name=home]>a:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-color:Highlight !important}}}post-menu-item>slot[name=home]>a:hover{background-color:#504f4b;color:#fff}post-menu-item>slot[name=home]>a:hover:focus-visible::after{outline-color:#fff !important}post-menu-item>slot[name=home]>a:hover.pretend-focus::after{outline-color:#fff !important}post-menu-item>slot[name=home]>a:hover:has(:focus-visible)::after{outline-color:#fff !important}@supports not selector(:has(:focus-visible)){post-menu-item>slot[name=home]>a:hover:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-color:#fff !important}}.home{flex:none}.home::before{content:unset}.home.icon{padding-block:var(--post-device-spacing-padding-47)}.home.icon post-icon{width:var(--post-device-sizing-interactive-icon-size2);height:var(--post-device-sizing-interactive-icon-size2)}.menu{margin-inline-end:calc(-1*var(--post-device-spacing-gap-inline-4))}.menu.empty{display:none}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}'}},[257,"post-breadcrumbs",{homeUrl:[513,"home-url"],textHome:[513,"text-home"],homeTextOnly:[516,"home-text-only"],textBreadcrumbs:[513,"text-breadcrumbs"],textMoreItems:[513,"text-more-items"],id:[32],loaded:[32],hasSlottedHomeAnchor:[32],hasSlottedHomeIcon:[32],collapsed:[32],homeCollapsed:[32],lastItemWraps:[32]}]);function M(){"undefined"!=typeof customElements&&["post-breadcrumbs","post-icon","post-menu","post-menu-item","post-menu-trigger","post-popovercontainer"].forEach((t=>{switch(t){case"post-breadcrumbs":customElements.get(s(t))||customElements.define(s(t),f);break;case"post-icon":customElements.get(s(t))||m();break;case"post-menu":customElements.get(s(t))||l();break;case"post-menu-item":customElements.get(s(t))||d();break;case"post-menu-trigger":customElements.get(s(t))||h();break;case"post-popovercontainer":customElements.get(s(t))||u()}}))}v([p({when:"hasSlottedHomeAnchor",truthy:!1}),b()],f.prototype,"homeUrl",void 0),v([p({when:"hasSlottedHomeAnchor",truthy:!1}),g("string")],f.prototype,"textHome",void 0),v([p(),g("boolean")],f.prototype,"homeTextOnly",void 0),v([p(),g("string")],f.prototype,"textBreadcrumbs",void 0),v([p(),g("string")],f.prototype,"textMoreItems",void 0),M();const j=f,I=M;export{j as PostBreadcrumbs,I as defineCustomElement}
@@ -1 +1 @@
1
- import{P as o,d as s}from"./p-BMCit4BU.js";const t=o,p=s;export{t as PostClosebutton,p as defineCustomElement}
1
+ import{P as s,d as o}from"./p-D4LBzsbB.js";const p=s,r=o;export{p as PostClosebutton,r as defineCustomElement}
@@ -1 +1 @@
1
- import{P as o,d as s}from"./p-C8i672qm.js";const m=o,p=s;export{m as PostCollapsibleTrigger,p as defineCustomElement}
1
+ import{P as o,d as s}from"./p-CLkb55ud.js";const p=o,r=s;export{p as PostCollapsibleTrigger,r as defineCustomElement}
@@ -1 +1 @@
1
- import{P as o,d as s}from"./p-Q5LQWL2X.js";const p=o,r=s;export{p as PostCollapsible,r as defineCustomElement}
1
+ import{P as o,d as s}from"./p-CBVthgj-.js";const t=o,p=s;export{t as PostCollapsible,p as defineCustomElement}