@swisspost/design-system-components 10.0.0-next.71 → 10.0.0-next.72

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 (390) hide show
  1. package/dist/cjs/create-validator-decorator-Bnx17kwi.js +223 -0
  2. package/dist/cjs/{index-CCteMCnR.js → index-ngUOBQot.js} +5 -1
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/one-of-BHyX4vYq.js +27 -0
  5. package/dist/cjs/{package-CscM89A7.js → package-Bi-tiNRc.js} +1 -1
  6. package/dist/cjs/pattern-BgBx5zGQ.js +27 -0
  7. package/dist/cjs/post-accordion_2.cjs.entry.js +15 -21
  8. package/dist/cjs/post-autocomplete.cjs.entry.js +26 -13
  9. package/dist/cjs/post-avatar.cjs.entry.js +30 -33
  10. package/dist/cjs/post-back-to-top.cjs.entry.js +20 -11
  11. package/dist/cjs/post-banner.cjs.entry.js +8 -13
  12. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +33 -23
  13. package/dist/cjs/post-breadcrumbs.cjs.entry.js +33 -34
  14. package/dist/cjs/post-closebutton_14.cjs.entry.js +238 -272
  15. package/dist/cjs/post-collapsible_2.cjs.entry.js +56 -39
  16. package/dist/cjs/post-components.cjs.js +2 -2
  17. package/dist/cjs/post-date-picker.cjs.entry.js +140 -138
  18. package/dist/cjs/post-footer.cjs.entry.js +24 -17
  19. package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
  20. package/dist/cjs/post-listbox-option.cjs.entry.js +2 -2
  21. package/dist/cjs/post-listbox.cjs.entry.js +3 -5
  22. package/dist/cjs/post-login-widget.cjs.entry.js +28 -29
  23. package/dist/cjs/post-number-input.cjs.entry.js +2 -2
  24. package/dist/cjs/post-pagination.cjs.entry.js +50 -80
  25. package/dist/cjs/post-popover-trigger.cjs.entry.js +21 -18
  26. package/dist/cjs/post-popover.cjs.entry.js +24 -22
  27. package/dist/cjs/post-progressbar.cjs.entry.js +147 -0
  28. package/dist/cjs/post-rating.cjs.entry.js +33 -34
  29. package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
  30. package/dist/cjs/post-stepper.cjs.entry.js +48 -37
  31. package/dist/cjs/post-tab-item.cjs.entry.js +20 -12
  32. package/dist/cjs/post-tab-panel.cjs.entry.js +20 -13
  33. package/dist/cjs/post-tabs.cjs.entry.js +21 -7
  34. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +21 -12
  35. package/dist/cjs/post-tooltip.cjs.entry.js +19 -16
  36. package/dist/cjs/required-lRDOdbd6.js +44 -0
  37. package/dist/cjs/type-shT641Eo.js +30 -0
  38. package/dist/cjs/url-DRUMqVBq.js +34 -0
  39. package/dist/collection/collection-manifest.json +1 -0
  40. package/dist/collection/components/post-accordion/post-accordion.js +11 -8
  41. package/dist/collection/components/post-accordion-item/post-accordion-item.js +4 -17
  42. package/dist/collection/components/post-autocomplete/post-autocomplete.js +23 -13
  43. package/dist/collection/components/post-avatar/post-avatar.js +27 -33
  44. package/dist/collection/components/post-back-to-top/post-back-to-top.js +17 -10
  45. package/dist/collection/components/post-banner/post-banner.js +7 -14
  46. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +27 -22
  47. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +29 -34
  48. package/dist/collection/components/post-closebutton/post-closebutton.js +24 -27
  49. package/dist/collection/components/post-collapsible/post-collapsible.js +26 -16
  50. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +34 -30
  51. package/dist/collection/components/post-date-picker/post-date-picker.js +64 -96
  52. package/dist/collection/components/post-footer/post-footer.js +17 -13
  53. package/dist/collection/components/post-header/post-header.js +18 -24
  54. package/dist/collection/components/post-icon/post-icon.js +34 -47
  55. package/dist/collection/components/post-language-menu/post-language-menu.js +15 -20
  56. package/dist/collection/components/post-language-menu-item/post-language-menu-item.js +28 -39
  57. package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
  58. package/dist/collection/components/post-listbox/post-listbox.js +3 -5
  59. package/dist/collection/components/post-listbox-option/post-listbox-option.js +1 -1
  60. package/dist/collection/components/post-login-widget/post-login-widget.js +25 -29
  61. package/dist/collection/components/post-logo/post-logo.js +16 -13
  62. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +17 -13
  63. package/dist/collection/components/post-megadropdown/post-megadropdown.js +24 -23
  64. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +7 -15
  65. package/dist/collection/components/post-menu/post-menu.js +10 -23
  66. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +17 -13
  67. package/dist/collection/components/post-number-input/post-number-input.js +3 -3
  68. package/dist/collection/components/post-pagination/post-pagination.js +47 -82
  69. package/dist/collection/components/post-popover/post-popover.js +20 -22
  70. package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +16 -14
  71. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +25 -30
  72. package/dist/collection/components/post-progressbar/post-progressbar.css +1 -0
  73. package/dist/collection/components/post-progressbar/post-progressbar.js +136 -0
  74. package/dist/collection/components/post-rating/post-rating.js +25 -29
  75. package/dist/collection/components/post-stepper/post-stepper.js +44 -36
  76. package/dist/collection/components/post-stepper-item/post-stepper-item.js +2 -2
  77. package/dist/collection/components/post-tab-item/post-tab-item.js +17 -12
  78. package/dist/collection/components/post-tab-panel/post-tab-panel.js +17 -13
  79. package/dist/collection/components/post-tabs/post-tabs.js +20 -7
  80. package/dist/collection/components/post-togglebutton/post-togglebutton.js +5 -3
  81. package/dist/collection/components/post-tooltip/post-tooltip.js +17 -16
  82. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +17 -12
  83. package/dist/collection/utils/index.js +3 -4
  84. package/dist/collection/utils/is-value-empty.js +1 -1
  85. package/dist/collection/utils/property-decorators/bound.js +75 -0
  86. package/dist/collection/utils/property-decorators/create-validator-decorator.js +24 -0
  87. package/dist/collection/utils/property-decorators/index.js +1 -1
  88. package/dist/collection/utils/property-decorators/required.js +19 -3
  89. package/dist/component-names.json +1 -0
  90. package/dist/components/breakpoints.js +1 -1
  91. package/dist/components/index.d.ts +2 -0
  92. package/dist/components/index.js +1 -1
  93. package/dist/components/one-of.js +1 -0
  94. package/dist/components/package.js +1 -1
  95. package/dist/components/pattern.js +1 -0
  96. package/dist/components/post-accordion-item2.js +1 -1
  97. package/dist/components/post-accordion2.js +1 -1
  98. package/dist/components/post-autocomplete.js +1 -1
  99. package/dist/components/post-avatar2.js +1 -1
  100. package/dist/components/post-back-to-top.js +1 -1
  101. package/dist/components/post-banner.js +1 -1
  102. package/dist/components/post-breadcrumb-item.js +1 -1
  103. package/dist/components/post-breadcrumbs.js +1 -1
  104. package/dist/components/post-closebutton2.js +1 -1
  105. package/dist/components/post-collapsible-trigger2.js +1 -1
  106. package/dist/components/post-collapsible2.js +1 -1
  107. package/dist/components/post-date-picker.js +1 -1
  108. package/dist/components/post-footer.js +1 -1
  109. package/dist/components/post-header.js +1 -1
  110. package/dist/components/post-icon2.js +1 -1
  111. package/dist/components/post-language-menu-item.js +1 -1
  112. package/dist/components/post-language-menu.js +1 -1
  113. package/dist/components/post-listbox.js +1 -1
  114. package/dist/components/post-login-widget.js +1 -1
  115. package/dist/components/post-logo.js +1 -1
  116. package/dist/components/post-mainnavigation.js +1 -1
  117. package/dist/components/post-megadropdown-trigger.js +1 -1
  118. package/dist/components/post-megadropdown.js +1 -1
  119. package/dist/components/post-menu-trigger2.js +1 -1
  120. package/dist/components/post-menu2.js +1 -1
  121. package/dist/components/post-pagination.js +1 -1
  122. package/dist/components/post-popover-trigger.js +1 -1
  123. package/dist/components/post-popover.js +1 -1
  124. package/dist/components/post-popovercontainer2.js +1 -1
  125. package/dist/components/post-progressbar.d.ts +11 -0
  126. package/dist/components/post-progressbar.js +1 -0
  127. package/dist/components/post-rating.js +1 -1
  128. package/dist/components/post-stepper-item.js +1 -1
  129. package/dist/components/post-stepper.js +1 -1
  130. package/dist/components/post-tab-item.js +1 -1
  131. package/dist/components/post-tab-panel.js +1 -1
  132. package/dist/components/post-tabs.js +1 -1
  133. package/dist/components/post-togglebutton2.js +1 -1
  134. package/dist/components/post-tooltip-trigger.js +1 -1
  135. package/dist/components/post-tooltip.js +1 -1
  136. package/dist/components/react/index.js +1 -1
  137. package/dist/components/react/p-4wtxqxXu.js +1 -0
  138. package/dist/components/react/{p-DPKR_4uI.js → p-85IGlhtB.js} +1 -1
  139. package/dist/components/react/p-B9ZFuYey.js +1 -0
  140. package/dist/components/react/p-BXqGI600.js +1 -0
  141. package/dist/components/react/p-BZSAV0-K.js +1 -0
  142. package/dist/components/react/p-B_WnO-QF.js +1 -0
  143. package/dist/components/react/p-BaB8wJvk.js +1 -0
  144. package/dist/components/react/p-Bg9dtyzK.js +1 -0
  145. package/dist/components/react/p-Bji_4dfL.js +1 -0
  146. package/dist/components/react/p-Bn66acGG.js +1 -0
  147. package/dist/components/react/p-Bu2JeHDf.js +1 -0
  148. package/dist/components/react/p-BxoRVIIr.js +1 -0
  149. package/dist/components/react/p-CX2E_IXB.js +1 -0
  150. package/dist/components/react/p-Cd1TsNm7.js +1 -0
  151. package/dist/components/react/p-CkTAQJGd.js +1 -0
  152. package/dist/components/react/p-ClG-N42b.js +1 -0
  153. package/dist/components/react/p-D1zw8FxT.js +1 -0
  154. package/dist/components/react/p-DwuW52g5.js +1 -0
  155. package/dist/components/react/{p-BC0-M_SK.js → p-PM7l--ff.js} +1 -1
  156. package/dist/components/react/post-accordion-item.js +1 -1
  157. package/dist/components/react/post-accordion.js +1 -1
  158. package/dist/components/react/post-autocomplete.js +1 -1
  159. package/dist/components/react/post-avatar.js +1 -1
  160. package/dist/components/react/post-back-to-top.js +1 -1
  161. package/dist/components/react/post-banner.js +1 -1
  162. package/dist/components/react/post-breadcrumb-item.js +1 -1
  163. package/dist/components/react/post-breadcrumbs.js +1 -1
  164. package/dist/components/react/post-closebutton.js +1 -1
  165. package/dist/components/react/post-collapsible-trigger.js +1 -1
  166. package/dist/components/react/post-collapsible.js +1 -1
  167. package/dist/components/react/post-date-picker.js +1 -1
  168. package/dist/components/react/post-footer.js +1 -1
  169. package/dist/components/react/post-header.js +1 -1
  170. package/dist/components/react/post-icon.js +1 -1
  171. package/dist/components/react/post-language-menu-item.js +1 -1
  172. package/dist/components/react/post-language-menu.js +1 -1
  173. package/dist/components/react/post-linkarea.js +1 -1
  174. package/dist/components/react/post-listbox-option.js +1 -1
  175. package/dist/components/react/post-listbox.js +1 -1
  176. package/dist/components/react/post-login-widget.js +1 -1
  177. package/dist/components/react/post-logo.js +1 -1
  178. package/dist/components/react/post-mainnavigation.js +1 -1
  179. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  180. package/dist/components/react/post-megadropdown.js +1 -1
  181. package/dist/components/react/post-menu-item.js +1 -1
  182. package/dist/components/react/post-menu-trigger.js +1 -1
  183. package/dist/components/react/post-menu.js +1 -1
  184. package/dist/components/react/post-number-input.js +1 -1
  185. package/dist/components/react/post-pagination.js +1 -1
  186. package/dist/components/react/post-popover-trigger.js +1 -1
  187. package/dist/components/react/post-popover.js +1 -1
  188. package/dist/components/react/post-popovercontainer.js +1 -1
  189. package/dist/components/react/post-progressbar.d.ts +11 -0
  190. package/dist/components/react/post-progressbar.js +1 -0
  191. package/dist/components/react/post-rating.js +1 -1
  192. package/dist/components/react/post-stepper-item.js +1 -1
  193. package/dist/components/react/post-stepper.js +1 -1
  194. package/dist/components/react/post-tab-item.js +1 -1
  195. package/dist/components/react/post-tab-panel.js +1 -1
  196. package/dist/components/react/post-tabs.js +1 -1
  197. package/dist/components/react/post-togglebutton.js +1 -1
  198. package/dist/components/react/post-tooltip-trigger.js +1 -1
  199. package/dist/components/react/post-tooltip.js +1 -1
  200. package/dist/components/required.js +1 -0
  201. package/dist/components/type.js +1 -0
  202. package/dist/components/url.js +1 -0
  203. package/dist/docs.json +106 -4
  204. package/dist/esm/create-validator-decorator-D8qwF5Qe.js +218 -0
  205. package/dist/esm/{index-DmBWUef5.js → index-BbDawWJ5.js} +5 -1
  206. package/dist/esm/loader.js +3 -3
  207. package/dist/esm/one-of-GPr3FflU.js +25 -0
  208. package/dist/esm/package-ClG-N42b.js +3 -0
  209. package/dist/esm/pattern-BWPRYpYv.js +25 -0
  210. package/dist/esm/post-accordion_2.entry.js +15 -21
  211. package/dist/esm/post-autocomplete.entry.js +26 -13
  212. package/dist/esm/post-avatar.entry.js +30 -33
  213. package/dist/esm/post-back-to-top.entry.js +20 -11
  214. package/dist/esm/post-banner.entry.js +8 -13
  215. package/dist/esm/post-breadcrumb-item.entry.js +33 -23
  216. package/dist/esm/post-breadcrumbs.entry.js +33 -34
  217. package/dist/esm/post-closebutton_14.entry.js +238 -272
  218. package/dist/esm/post-collapsible_2.entry.js +56 -39
  219. package/dist/esm/post-components.js +3 -3
  220. package/dist/esm/post-date-picker.entry.js +140 -138
  221. package/dist/esm/post-footer.entry.js +20 -13
  222. package/dist/esm/post-linkarea.entry.js +2 -2
  223. package/dist/esm/post-listbox-option.entry.js +2 -2
  224. package/dist/esm/post-listbox.entry.js +3 -5
  225. package/dist/esm/post-login-widget.entry.js +28 -29
  226. package/dist/esm/post-number-input.entry.js +2 -2
  227. package/dist/esm/post-pagination.entry.js +50 -80
  228. package/dist/esm/post-popover-trigger.entry.js +19 -16
  229. package/dist/esm/post-popover.entry.js +24 -22
  230. package/dist/esm/post-progressbar.entry.js +145 -0
  231. package/dist/esm/post-rating.entry.js +28 -29
  232. package/dist/esm/post-stepper-item.entry.js +3 -3
  233. package/dist/esm/post-stepper.entry.js +48 -37
  234. package/dist/esm/post-tab-item.entry.js +20 -12
  235. package/dist/esm/post-tab-panel.entry.js +20 -13
  236. package/dist/esm/post-tabs.entry.js +21 -7
  237. package/dist/esm/post-tooltip-trigger.entry.js +21 -12
  238. package/dist/esm/post-tooltip.entry.js +19 -16
  239. package/dist/esm/required-uK-rZZjy.js +42 -0
  240. package/dist/esm/type-obmwEgkM.js +28 -0
  241. package/dist/esm/url-B28ByZCe.js +32 -0
  242. package/dist/post-components/p-00f55af5.entry.js +1 -0
  243. package/dist/post-components/p-0288484f.entry.js +1 -0
  244. package/dist/post-components/p-07cdd022.entry.js +1 -0
  245. package/dist/post-components/{p-08a0e8e9.entry.js → p-12047216.entry.js} +1 -1
  246. package/dist/post-components/p-17df4e91.entry.js +1 -0
  247. package/dist/post-components/p-17e046fa.entry.js +1 -0
  248. package/dist/post-components/p-29bd31a0.entry.js +1 -0
  249. package/dist/post-components/p-2c6b4e6a.entry.js +1 -0
  250. package/dist/post-components/p-3b05e01d.entry.js +1 -0
  251. package/dist/post-components/p-53fd5230.entry.js +1 -0
  252. package/dist/post-components/p-5b7e6369.entry.js +1 -0
  253. package/dist/post-components/p-5f4ca179.entry.js +1 -0
  254. package/dist/post-components/p-62b6154a.entry.js +1 -0
  255. package/dist/post-components/{p-4b445a35.entry.js → p-686a6e22.entry.js} +1 -1
  256. package/dist/post-components/p-758fc84f.entry.js +1 -0
  257. package/dist/post-components/{p-bab0f27f.entry.js → p-7f929bb9.entry.js} +1 -1
  258. package/dist/post-components/p-9865f72c.entry.js +1 -0
  259. package/dist/post-components/p-99803d57.entry.js +1 -0
  260. package/dist/post-components/p-BRNqUiXj.js +1 -0
  261. package/dist/post-components/p-BbDawWJ5.js +2 -0
  262. package/dist/post-components/p-CVsNfXZd.js +1 -0
  263. package/dist/post-components/p-Ck2qPht6.js +1 -0
  264. package/dist/post-components/p-ClG-N42b.js +1 -0
  265. package/dist/post-components/p-D4F0BqBW.js +1 -0
  266. package/dist/post-components/p-DSNGJB58.js +1 -0
  267. package/dist/post-components/p-IUnDBhPg.js +1 -0
  268. package/dist/post-components/p-a0e0a760.entry.js +1 -0
  269. package/dist/post-components/p-a850652d.entry.js +1 -0
  270. package/dist/post-components/p-aac1a8ea.entry.js +1 -0
  271. package/dist/post-components/{p-39143e19.entry.js → p-b3f0f9a2.entry.js} +1 -1
  272. package/dist/post-components/p-c37dba4b.entry.js +1 -0
  273. package/dist/post-components/p-d061773b.entry.js +1 -0
  274. package/dist/post-components/p-e2370e94.entry.js +1 -0
  275. package/dist/post-components/p-f1ca1d3f.entry.js +1 -0
  276. package/dist/post-components/p-f2e5f44e.entry.js +1 -0
  277. package/dist/post-components/p-ff98ada4.entry.js +1 -0
  278. package/dist/post-components/post-components.css +1 -1
  279. package/dist/post-components/post-components.esm.js +1 -1
  280. package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
  281. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +0 -2
  282. package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +0 -1
  283. package/dist/types/components/post-avatar/post-avatar.d.ts +0 -5
  284. package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +0 -1
  285. package/dist/types/components/post-banner/post-banner.d.ts +0 -1
  286. package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +0 -3
  287. package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +0 -4
  288. package/dist/types/components/post-closebutton/post-closebutton.d.ts +0 -3
  289. package/dist/types/components/post-collapsible/post-collapsible.d.ts +1 -2
  290. package/dist/types/components/post-collapsible-trigger/post-collapsible-trigger.d.ts +3 -6
  291. package/dist/types/components/post-date-picker/post-date-picker.d.ts +0 -12
  292. package/dist/types/components/post-footer/post-footer.d.ts +0 -1
  293. package/dist/types/components/post-header/post-header.d.ts +0 -2
  294. package/dist/types/components/post-icon/post-icon.d.ts +0 -6
  295. package/dist/types/components/post-language-menu/post-language-menu.d.ts +1 -3
  296. package/dist/types/components/post-language-menu-item/post-language-menu-item.d.ts +0 -5
  297. package/dist/types/components/post-login-widget/post-login-widget.d.ts +0 -4
  298. package/dist/types/components/post-logo/post-logo.d.ts +0 -1
  299. package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -1
  300. package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +1 -3
  301. package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +0 -2
  302. package/dist/types/components/post-menu/post-menu.d.ts +1 -4
  303. package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +0 -1
  304. package/dist/types/components/post-pagination/post-pagination.d.ts +0 -17
  305. package/dist/types/components/post-popover/post-popover.d.ts +1 -4
  306. package/dist/types/components/post-popover-trigger/post-popover-trigger.d.ts +0 -1
  307. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +0 -3
  308. package/dist/types/components/post-progressbar/post-progressbar.d.ts +23 -0
  309. package/dist/types/components/post-rating/post-rating.d.ts +0 -4
  310. package/dist/types/components/post-stepper/post-stepper.d.ts +1 -4
  311. package/dist/types/components/post-tab-item/post-tab-item.d.ts +0 -1
  312. package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +0 -1
  313. package/dist/types/components/post-tooltip/post-tooltip.d.ts +0 -2
  314. package/dist/types/components/post-tooltip-trigger/post-tooltip-trigger.d.ts +0 -1
  315. package/dist/types/components.d.ts +51 -5
  316. package/dist/types/utils/index.d.ts +3 -4
  317. package/dist/types/utils/property-decorators/bound.d.ts +36 -0
  318. package/dist/types/utils/property-decorators/create-validator-decorator.d.ts +5 -0
  319. package/dist/types/utils/property-decorators/index.d.ts +1 -1
  320. package/dist/types/utils/property-decorators/required.d.ts +10 -1
  321. package/hydrate/index.js +1310 -926
  322. package/hydrate/index.mjs +1310 -926
  323. package/package.json +4 -4
  324. package/dist/cjs/index-qCzRmwgB.js +0 -114
  325. package/dist/collection/utils/property-checkers/check-array-of.js +0 -8
  326. package/dist/collection/utils/property-checkers/check-date.js +0 -13
  327. package/dist/collection/utils/property-checkers/check-iso-date.js +0 -9
  328. package/dist/collection/utils/property-checkers/check-one-of.js +0 -8
  329. package/dist/collection/utils/property-checkers/check-pattern.js +0 -8
  330. package/dist/collection/utils/property-checkers/check-type.js +0 -15
  331. package/dist/collection/utils/property-checkers/check-url.js +0 -15
  332. package/dist/collection/utils/property-checkers/constants.js +0 -1
  333. package/dist/collection/utils/property-checkers/empty-or.js +0 -9
  334. package/dist/collection/utils/property-checkers/index.js +0 -20
  335. package/dist/collection/utils/property-checkers/required-and.js +0 -14
  336. package/dist/components/heading-levels.js +0 -1
  337. package/dist/components/index2.js +0 -1
  338. package/dist/components/react/p-BQ3HlJPr.js +0 -1
  339. package/dist/components/react/p-C7s9oglQ.js +0 -1
  340. package/dist/components/react/p-CTgZ8DGr.js +0 -1
  341. package/dist/components/react/p-CVtlwDsT.js +0 -1
  342. package/dist/components/react/p-CaLwTf3T.js +0 -1
  343. package/dist/components/react/p-ClJyTIVM.js +0 -1
  344. package/dist/components/react/p-DGr-hfLq.js +0 -1
  345. package/dist/components/react/p-DJxdj9pa.js +0 -1
  346. package/dist/components/react/p-DKDEtjQe.js +0 -1
  347. package/dist/components/react/p-DcEDGaFs.js +0 -1
  348. package/dist/components/react/p-DipfA69b.js +0 -1
  349. package/dist/components/react/p-DwZxAC2u.js +0 -1
  350. package/dist/components/react/p-r4txK0AC.js +0 -1
  351. package/dist/components/react/p-x3kxyWSZ.js +0 -1
  352. package/dist/esm/index-D9bU2pIE.js +0 -104
  353. package/dist/esm/package-x3kxyWSZ.js +0 -3
  354. package/dist/post-components/p-1583817b.entry.js +0 -1
  355. package/dist/post-components/p-203d9abd.entry.js +0 -1
  356. package/dist/post-components/p-2c68af27.entry.js +0 -1
  357. package/dist/post-components/p-46dd9e7e.entry.js +0 -1
  358. package/dist/post-components/p-53a8cce5.entry.js +0 -1
  359. package/dist/post-components/p-72bff1fc.entry.js +0 -1
  360. package/dist/post-components/p-75045028.entry.js +0 -1
  361. package/dist/post-components/p-768b4516.entry.js +0 -1
  362. package/dist/post-components/p-7e072450.entry.js +0 -1
  363. package/dist/post-components/p-83cb6424.entry.js +0 -1
  364. package/dist/post-components/p-94f4da57.entry.js +0 -1
  365. package/dist/post-components/p-9dace750.entry.js +0 -1
  366. package/dist/post-components/p-9ea7e46f.entry.js +0 -1
  367. package/dist/post-components/p-D9bU2pIE.js +0 -1
  368. package/dist/post-components/p-DmBWUef5.js +0 -2
  369. package/dist/post-components/p-a0ac814c.entry.js +0 -1
  370. package/dist/post-components/p-a0d12ca8.entry.js +0 -1
  371. package/dist/post-components/p-cb039d66.entry.js +0 -1
  372. package/dist/post-components/p-e8cda4e1.entry.js +0 -1
  373. package/dist/post-components/p-e8e50d5c.entry.js +0 -1
  374. package/dist/post-components/p-eb64ec1d.entry.js +0 -1
  375. package/dist/post-components/p-f0746a9e.entry.js +0 -1
  376. package/dist/post-components/p-f5e33714.entry.js +0 -1
  377. package/dist/post-components/p-f93ce33d.entry.js +0 -1
  378. package/dist/post-components/p-fd0446b2.entry.js +0 -1
  379. package/dist/post-components/p-x3kxyWSZ.js +0 -1
  380. package/dist/types/utils/property-checkers/check-array-of.d.ts +0 -4
  381. package/dist/types/utils/property-checkers/check-date.d.ts +0 -3
  382. package/dist/types/utils/property-checkers/check-iso-date.d.ts +0 -3
  383. package/dist/types/utils/property-checkers/check-one-of.d.ts +0 -3
  384. package/dist/types/utils/property-checkers/check-pattern.d.ts +0 -3
  385. package/dist/types/utils/property-checkers/check-type.d.ts +0 -4
  386. package/dist/types/utils/property-checkers/check-url.d.ts +0 -3
  387. package/dist/types/utils/property-checkers/constants.d.ts +0 -1
  388. package/dist/types/utils/property-checkers/empty-or.d.ts +0 -3
  389. package/dist/types/utils/property-checkers/index.d.ts +0 -34
  390. package/dist/types/utils/property-checkers/required-and.d.ts +0 -3
@@ -0,0 +1 @@
1
+ import{p as t,H as i,h as e,a as n,t as a}from"./index.js";import"./p-Bji_4dfL.js";import{v as o}from"./p-ClG-N42b.js";import{O as s}from"./p-BaB8wJvk.js";import{T as r}from"./p-B_WnO-QF.js";import{R as m}from"./p-4wtxqxXu.js";var c=function(t,i,e,n){var a,o=arguments.length,s=o<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,n);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(s=(o<3?a(s):o>3?a(i,e,s):a(i,e))||s);return o>3&&s&&Object.defineProperty(i,e,s),s};const l=`https://unpkg.com/@swisspost/design-system-icons@${o}/public/post-icons/`,f=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.flipH=!1,this.flipV=!1}getUrl(){const t=`${this.name??this.host.getAttribute("name")}.svg`;if(this.url?.startsWith("data:image/"))return this.url;if(this.url)return this.url;const i=t=>/^https?:\/\//.test(t),e=t=>t&&!t.endsWith("/")?`${t}/`:t,n=t=>t.replaceAll(/([^:])\/\//g,"$1/"),a=globalThis.location.origin,o=document.querySelector("base[href]")?.getAttribute("href")||"";let s="";{const t=document.querySelector('meta[name="design-system-settings"]');s=t?.getAttribute("data-post-icon-base")||""}const r=t=>{const n=e(o),s=e(t);return i(n)?`${n}${s}`:`${a}${n}${s}`};let m;return this.base?(m=i(this.base)?`${e(this.base)}${t}`:`${r(this.base)}${t}`,n(m)):s?(m=i(s)?`${e(s)}${t}`:`${r(s)}${t}`,n(m)):n(`${l}${t}`)}getStyles(){const t=this.getUrl();return Object.fromEntries(Object.entries({"-webkit-mask-image":`url(${t})`,"mask-image":`url('${t}')`,transform:(this.scale&&!Number.isNaN(Number(this.scale))?"scale("+this.scale+")":"")+(this.rotate&&!Number.isNaN(Number(this.rotate))?" rotate("+this.rotate+"deg)":"")}).filter((([t,i])=>null!==i)))}render(){return e(n,{key:"dc20dd6be14dd0aba54231b30be89730d4a6c757","data-version":o},e("span",{key:"8ef361e6b2721db5f312e0e67fc7d13cb7440abf",style:this.getStyles()}))}get host(){return this}static get style(){return":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}"}},[1,"post-icon",{animation:[513],base:[1],url:[1],flipH:[516,"flip-h"],flipV:[516,"flip-v"],name:[513],rotate:[2],scale:[2]}]);function p(){"undefined"!=typeof customElements&&["post-icon"].forEach((t=>{"post-icon"===t&&(customElements.get(a(t))||customElements.define(a(t),f))}))}c([s(["cylon","cylon-vertical","spin","spin-reverse","fade","throb"])],f.prototype,"animation",void 0),c([r("string")],f.prototype,"base",void 0),c([m(),r("string")],f.prototype,"name",void 0),c([r("number")],f.prototype,"rotate",void 0),c([r("number")],f.prototype,"scale",void 0),p();export{f as P,p as d}
@@ -0,0 +1 @@
1
+ import{p as t,H as e,h as o,a as i,t as r}from"./index.js";import"./p-Bji_4dfL.js";import{v as n}from"./p-ClG-N42b.js";import{d as c}from"./p-D1zw8FxT.js";import{O as a}from"./p-BaB8wJvk.js";import{R as s}from"./p-4wtxqxXu.js";var d=function(t,e,o,i){var r,n=arguments.length,c=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(c=(n<3?r(c):n>3?r(e,o,c):r(e,o))||c);return n>3&&c&&Object.defineProperty(e,o,c),c};const b=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.mutationObserver=new MutationObserver(this.checkContent.bind(this)),this.buttonType="button",this.placement="auto",this.size="default"}componentDidLoad(){this.checkContent()}connectedCallback(){this.mutationObserver.observe(this.host,{childList:!0,characterData:!0,subtree:!0})}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect()}checkContent(){this.host.querySelector(".visually-hidden").textContent||console.error(`The \`${this.host.localName}\` component requires content for accessibility.`)}render(){return o(i,{key:"a685b0c1dbf08de1253d7c232800b28aa445edeb","data-version":n},o("button",{key:"e36535683023bd1cbcf560491a87ddab60f23d1c",type:this.buttonType,class:"btn btn-icon btn-secondary btn-sm"},o("post-icon",{key:"405d5ca3761bd8ee56bdd9734a2550cbbbd81f0d","aria-hidden":"true",name:"closex"}),o("span",{key:"2caa490891d922dc69ef4e6ebe8e5de813426d30",class:"visually-hidden"},o("slot",{key:"fd38d8c6da378058ea93c5c08f9f96d0b7be7813"}))))}get host(){return this}static get style(){return".btn{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-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;min-height:var(--post-device-sizing-interactive-button-height-1);gap:var(--post-device-spacing-gap-inline-10);padding:0 var(--post-device-spacing-padding-inline-6)}.btn:hover{text-decoration:none}.btn:disabled{border-style:var(--post-core-border-style-dash)}.btn{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: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){.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn: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){.btn:is(a){color:LinkText;border:unset}.btn:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.btn:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.btn:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.btn>post-icon{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-primary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg);color:var(--post-scheme-color-interactive-button-primary-enabled-fg)}.btn-primary:disabled{border-color:var(--post-scheme-color-interactive-button-primary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-disabled-bg);color:var(--post-scheme-color-interactive-button-primary-disabled-fg)}.btn-primary:not(:disabled):hover,.btn-primary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg);color:var(--post-scheme-color-interactive-button-primary-hover-fg)}.btn-default{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg)}.btn-default:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg)}.btn-default:not(:disabled):hover,.btn-default.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg);color:var(--post-scheme-color-interactive-button-secondary-hover-fg)}.btn-secondary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg)}.btn-secondary:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg)}.btn-secondary:not(:disabled):hover,.btn-secondary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg);color:var(--post-scheme-color-interactive-button-secondary-hover-fg)}.btn-tertiary{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-tertiary:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-tertiary:not(:disabled):hover,.btn-tertiary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-link{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-link:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-link:not(:disabled):hover,.btn-link.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-sm{min-height:var(--post-device-sizing-interactive-button-height-4);gap:var(--post-device-spacing-gap-inline-11);padding:0 var(--post-device-spacing-padding-inline-7)}.btn-sm>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-lg{min-height:var(--post-device-sizing-interactive-button-height-2);gap:var(--post-device-spacing-gap-inline-1);padding:0 var(--post-device-spacing-padding-inline-5)}.btn-lg>post-icon{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-link{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border:0 none;border-radius:var(--post-device-border-radius-focus);min-height:0;font-size:inherit;font-weight:inherit;padding:0}.btn-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.btn-icon{padding:0;width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-height:0;vertical-align:text-bottom}.btn-icon.btn-link{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon.btn-sm{padding:0;width:var(--post-device-sizing-interactive-button-height-4);height:var(--post-device-sizing-interactive-button-height-4);min-height:0;vertical-align:text-bottom}.btn-icon.btn-sm.btn-link{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-sm>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-lg{padding:0;width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);min-height:0;vertical-align:text-bottom}.btn-icon.btn-lg.btn-link{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-icon.btn-lg>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}post-closebutton[size=small] .btn{height:var(--post-device-sizing-interactive-button-height-7);width:var(--post-device-sizing-interactive-button-height-7)}post-closebutton:not([placement]),post-closebutton[placement=auto]{position:absolute;inset-block-start:0;inset-inline-end:0;transform:translate(50%, -50%)}post-closebutton .btn{background-color:var(--post-scheme-color-interactive-primary-enabled-bg1)}post-closebutton .btn:not(:disabled):hover,post-closebutton .btn.pretend-hover{background-color:var(--post-scheme-color-interactive-primary-hover-bg)}"}},[260,"post-closebutton",{buttonType:[1,"button-type"],placement:[513],size:[513]}]);function l(){"undefined"!=typeof customElements&&["post-closebutton","post-icon"].forEach((t=>{switch(t){case"post-closebutton":customElements.get(r(t))||customElements.define(r(t),b);break;case"post-icon":customElements.get(r(t))||c()}}))}d([a(["button","submit","reset"])],b.prototype,"buttonType",void 0),d([s(),a(["manual","auto"])],b.prototype,"placement",void 0),d([s(),a(["default","small"])],b.prototype,"size",void 0),l();export{b as P,l as d}
@@ -1 +1 @@
1
- import{p as t,H as e,h as s,a as o,t as i}from"./index.js";import{v as r}from"./p-x3kxyWSZ.js";const n=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.toggled=!1,this.handleClick=()=>{this.toggled=!this.toggled},this.handleKeydown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.host.click())}}componentWillLoad(){this.host.addEventListener("click",(()=>this.handleClick()),{capture:!0}),this.host.addEventListener("keydown",(t=>this.handleKeydown(t)),{capture:!0})}render(){return s(o,{key:"828f375bfd28dd8f46c2c233cef90abe6c27c488","data-version":r,role:"button",tabindex:"0","aria-pressed":this.toggled.toString()},s("slot",{key:"35325c8481638cf30593cda05a67ee74b38bb40c"}))}get host(){return this}static get style(){return":host{cursor:pointer;outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-visible){outline-color:Highlight !important}}:host([aria-pressed=true]) ::slotted([data-showwhen=untoggled]){display:none}:host([aria-pressed=false]) ::slotted([data-showwhen=toggled]){display:none}"}},[257,"post-togglebutton",{toggled:[1028]}]);function a(){"undefined"!=typeof customElements&&["post-togglebutton"].forEach((t=>{"post-togglebutton"===t&&(customElements.get(i(t))||customElements.define(i(t),n))}))}a();export{n as P,a as d}
1
+ import{p as t,H as e,h as s,a as o,t as i}from"./index.js";import{v as r}from"./p-ClG-N42b.js";const n=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.toggled=!1,this.handleClick=()=>{this.toggled=!this.toggled},this.handleKeydown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.host.click())}}componentWillLoad(){this.host.addEventListener("click",(()=>this.handleClick()),{capture:!0}),this.host.addEventListener("keydown",(t=>this.handleKeydown(t)),{capture:!0})}render(){return s(o,{key:"6659870a07cf41d8808660906165797572f6a24d","data-version":r,role:"button",tabindex:"0","aria-pressed":this.toggled.toString()},s("slot",{key:"08e6e5b43eeff5239eb40ec8ee960076058dede1"}))}get host(){return this}static get style(){return":host{cursor:pointer;outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-visible){outline-color:Highlight !important}}:host([aria-pressed=true]) ::slotted([data-showwhen=untoggled]){display:none}:host([aria-pressed=false]) ::slotted([data-showwhen=toggled]){display:none}"}},[257,"post-togglebutton",{toggled:[1028]}]);function a(){"undefined"!=typeof customElements&&["post-togglebutton"].forEach((t=>{"post-togglebutton"===t&&(customElements.get(i(t))||customElements.define(i(t),n))}))}a();export{n as P,a as d}
@@ -1 +1 @@
1
- import{P as o,d as p}from"./p-DJxdj9pa.js";const s=o,a=p;export{s as PostAccordionItem,a as defineCustomElement}
1
+ import{P as o,d as s}from"./p-CkTAQJGd.js";const p=o,r=s;export{p as PostAccordionItem,r as defineCustomElement}
@@ -1 +1 @@
1
- import{P as o,d as r}from"./p-CTgZ8DGr.js";const s=o,p=r;export{s as PostAccordion,p as defineCustomElement}
1
+ import{P as o,d as s}from"./p-Bg9dtyzK.js";const t=o,p=s;export{t as PostAccordion,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as s,c as i,h as e,a as o,t as a}from"./index.js";import{v as n}from"./p-x3kxyWSZ.js";import{c as h}from"./p-DGr-hfLq.js";import"./p-BQ3HlJPr.js";import{d as c}from"./p-C9hMpmsD.js";import{d as r}from"./p-DKDEtjQe.js";const l=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.postFilteringEvent=i(this,"postFilteringEvent"),this.debouncedHandleInput=c((t=>{this.handleInput(t)}),250),this.filterThreshold=0,this.clearable=!1,this.inputValue="",this.handleOnBlur=()=>{this.inputElement.value=this.inputValue,this.listBoxElement.filter(""),this.hideListBox()},this.handleInput=async t=>{if(!this.listBoxElement)return;const s=t.target.value.trim(),i=s.length>=this.filterThreshold?s:"",{defaultPrevented:e}=this.postFilteringEvent.emit(i&&i.length>=this.filterThreshold?i:"");e||(await this.listBoxElement.filter(i),i?(this.showListBox(),this.announceCount()):(this.inputValue="",this.clearAnnouncement()))},this.handleKeyDown=t=>{const{key:s,altKey:i}=t;switch(s){case"ArrowDown":t.preventDefault(),this.showListBox(),i||this.listBoxElement.navigate("down");break;case"ArrowUp":t.preventDefault(),this.listBoxElement.navigate("up");break;case"Enter":if(this.listBoxElement.hidden)return;t.preventDefault(),this.listBoxElement.selectActive(),this.hideListBox();break;case"Escape":this.hideListBox();break;case"Tab":this.listBoxElement.selectActive(),this.hideListBox();break;case"Home":t.preventDefault(),this.listBoxElement.navigate("first");break;case"End":t.preventDefault(),this.listBoxElement.navigate("last")}},this.handleOptionSelected=t=>{const s=t.detail;this.inputElement.value=s,this.inputValue=s,this.hideListBox()},this.handleOptionActive=t=>{const s=t.detail;s?this.inputElement.setAttribute("aria-activedescendant",s):this.inputElement.removeAttribute("aria-activedescendant")},this.hideListBox=()=>{this.clearAnnouncement(),this.listBoxElement.hide(),this.inputElement.ariaExpanded="false",this.host.removeAttribute("open"),this.inputElement.removeAttribute("aria-activedescendant")},this.showListBox=async()=>{await this.listBoxElement.show(),this.inputElement.ariaExpanded="true",this.host.setAttribute("open",""),this.announceCount()},this.clearInput=()=>{this.inputElement&&(this.inputElement.value="",this.inputValue="",this.listBoxElement.clearSelection(),this.hideListBox())}}validateTextAvailableSuggestions(){h(this,"textAvailableSuggestions","string")}get inputElement(){return this.host.querySelector("input")}get listBoxElement(){return this.listbox?document.getElementById(this.listbox):this.host.querySelector("post-listbox")}componentWillLoad(){this.validateTextAvailableSuggestions(),this.inputElement&&(this.inputElement.role="combobox",this.inputElement.ariaAutoComplete="list",this.listBoxElement&&(this.listBoxElement.id||(this.listBoxElement.id=crypto.randomUUID()),this.inputElement.setAttribute("aria-controls",this.listBoxElement.id),this.inputElement.setAttribute("aria-expanded","false"),this.inputElement.autocomplete="off",this.attachInputListeners(),this.attachListboxListeners()))}disconnectedCallback(){this.detachInputListeners(),this.detachListboxListeners()}attachInputListeners(){this.inputElement&&(this.inputElement.addEventListener("input",this.debouncedHandleInput),this.inputElement.addEventListener("keydown",this.handleKeyDown),this.inputElement.addEventListener("blur",this.handleOnBlur),this.inputElement.addEventListener("click",this.showListBox))}detachInputListeners(){this.inputElement&&(this.inputElement.removeEventListener("input",this.debouncedHandleInput),this.inputElement.removeEventListener("keydown",this.handleKeyDown),this.inputElement.removeEventListener("blur",this.handleOnBlur),this.inputElement.removeEventListener("click",this.showListBox))}attachListboxListeners(){this.listBoxElement&&(this.listBoxElement.addEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.addEventListener("postOptionActive",this.handleOptionActive))}detachListboxListeners(){this.listBoxElement&&(this.listBoxElement.removeEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.removeEventListener("postOptionActive",this.handleOptionActive))}clearAnnouncement(){this.outputElement&&(this.outputElement.textContent="")}announceCount(){if(!this.outputElement||!this.listBoxElement)return;const t=this.listBoxElement.querySelectorAll("post-listbox-option:not([hidden])").length;this.outputElement.textContent=this.textAvailableSuggestions.replace("{count}",t+"")}render(){return e(o,{key:"f384c1ed106ad5764078f166bfc692a0f1360956","data-version":n},e("slot",{key:"f7b2859a994888a93c19274d26b473aeae35d1b6"}),this.clearable&&this.inputValue&&e("button",{key:"d87eb95ec872bc4d1ec29cd04f88334541863cf1",type:"button",class:"autocomplete-clear",onClick:this.clearInput},e("post-icon",{key:"48b4dc91762b8c15af9fc1aeb953e97e6cc81af0","aria-hidden":"true",name:"closex"})),e("post-icon",{key:"0a0330204698338da6ddd48b5cacfb51f80c1497","aria-hidden":"true",class:"autocomplete-icon",name:"chevronDown"}),e("output",{key:"5e98430b55f4cf2f915061540e6e002749dd2501",class:"visually-hidden",ref:t=>this.outputElement=t}))}get host(){return this}static get watchers(){return{textAvailableSuggestions:[{validateTextAvailableSuggestions:0}]}}static get style(){return":host{position:relative;display:block}.autocomplete-icon,.autocomplete-clear{position:absolute;inset-block-start:16px}@media screen and (min-width: 780px){.autocomplete-icon,.autocomplete-clear{inset-block-start:20px}}.autocomplete-icon{inset-inline-end:16px;width:24px;height:24px;pointer-events:none;transition:transform .2s ease-in-out}:host([open]) .autocomplete-icon{transform:rotate(180deg)}.autocomplete-clear{display:flex;align-items:center;justify-content:center;inset-inline-end:42px;background:none;border:none;cursor:pointer}.autocomplete-clear>post-icon{width:20px;height:20px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}"}},[257,"post-autocomplete",{filterThreshold:[514,"filter-threshold"],clearable:[516],listbox:[513],textAvailableSuggestions:[513,"text-available-suggestions"],inputValue:[32]},void 0,{textAvailableSuggestions:[{validateTextAvailableSuggestions:0}]}]);function p(){"undefined"!=typeof customElements&&["post-autocomplete","post-icon"].forEach((t=>{switch(t){case"post-autocomplete":customElements.get(a(t))||customElements.define(a(t),l);break;case"post-icon":customElements.get(a(t))||r()}}))}p();const d=l,u=p;export{d as PostAutocomplete,u as defineCustomElement}
1
+ import{p as t,H as s,c as i,h as e,a as o,t as n}from"./index.js";import"./p-Bji_4dfL.js";import{d as a}from"./p-C9hMpmsD.js";import{v as h}from"./p-ClG-N42b.js";import{d as c}from"./p-D1zw8FxT.js";import{R as r}from"./p-4wtxqxXu.js";import{T as l}from"./p-B_WnO-QF.js";const p=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.postFilteringEvent=i(this,"postFilteringEvent"),this.debouncedHandleInput=a((t=>{this.handleInput(t)}),250),this.filterThreshold=0,this.clearable=!1,this.inputValue="",this.handleOnBlur=()=>{this.inputElement.value=this.inputValue,this.listBoxElement.filter(""),this.hideListBox()},this.handleInput=async t=>{if(!this.listBoxElement)return;const s=t.target.value.trim(),i=s.length>=this.filterThreshold?s:"",{defaultPrevented:e}=this.postFilteringEvent.emit(i&&i.length>=this.filterThreshold?i:"");e||(await this.listBoxElement.filter(i),i?(this.showListBox(),this.announceCount()):(this.inputValue="",this.clearAnnouncement()))},this.handleKeyDown=t=>{const{key:s,altKey:i}=t;switch(s){case"ArrowDown":t.preventDefault(),this.showListBox(),i||this.listBoxElement.navigate("down");break;case"ArrowUp":t.preventDefault(),this.listBoxElement.navigate("up");break;case"Enter":if(this.listBoxElement.hidden)return;t.preventDefault(),this.listBoxElement.selectActive(),this.hideListBox();break;case"Escape":this.hideListBox();break;case"Tab":this.listBoxElement.selectActive(),this.hideListBox();break;case"Home":t.preventDefault(),this.listBoxElement.navigate("first");break;case"End":t.preventDefault(),this.listBoxElement.navigate("last")}},this.handleOptionSelected=t=>{const s=t.detail;this.inputElement.value=s,this.inputValue=s,this.hideListBox()},this.handleOptionActive=t=>{const s=t.detail;s?this.inputElement.setAttribute("aria-activedescendant",s):this.inputElement.removeAttribute("aria-activedescendant")},this.hideListBox=()=>{this.clearAnnouncement(),this.listBoxElement.hide(),this.inputElement.ariaExpanded="false",this.host.removeAttribute("open"),this.inputElement.removeAttribute("aria-activedescendant")},this.showListBox=async()=>{await this.listBoxElement.show(),this.inputElement.ariaExpanded="true",this.host.setAttribute("open",""),this.announceCount()},this.clearInput=()=>{this.inputElement&&(this.inputElement.value="",this.inputValue="",this.listBoxElement.clearSelection(),this.hideListBox())}}get inputElement(){return this.host.querySelector("input")}get listBoxElement(){return this.listbox?document.getElementById(this.listbox):this.host.querySelector("post-listbox")}componentWillLoad(){if(!this.inputElement)return;if(this.inputElement.role="combobox",this.inputElement.ariaAutoComplete="list",!this.listBoxElement)return;this.listBoxElement.id||(this.listBoxElement.id=crypto.randomUUID()),this.inputElement.setAttribute("aria-controls",this.listBoxElement.id),this.inputElement.setAttribute("aria-expanded","false");const t=this.inputElement.labels?.[0];t&&(t.id||(t.id=crypto.randomUUID()),this.listBoxElement.setAttribute("aria-labelledby",t.id)),this.inputElement.autocomplete="off",this.attachInputListeners(),this.attachListboxListeners()}disconnectedCallback(){this.detachInputListeners(),this.detachListboxListeners()}attachInputListeners(){this.inputElement&&(this.inputElement.addEventListener("input",this.debouncedHandleInput),this.inputElement.addEventListener("keydown",this.handleKeyDown),this.inputElement.addEventListener("blur",this.handleOnBlur),this.inputElement.addEventListener("click",this.showListBox))}detachInputListeners(){this.inputElement&&(this.inputElement.removeEventListener("input",this.debouncedHandleInput),this.inputElement.removeEventListener("keydown",this.handleKeyDown),this.inputElement.removeEventListener("blur",this.handleOnBlur),this.inputElement.removeEventListener("click",this.showListBox))}attachListboxListeners(){this.listBoxElement&&(this.listBoxElement.addEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.addEventListener("postOptionActive",this.handleOptionActive))}detachListboxListeners(){this.listBoxElement&&(this.listBoxElement.removeEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.removeEventListener("postOptionActive",this.handleOptionActive))}clearAnnouncement(){this.outputElement&&(this.outputElement.textContent="")}announceCount(){if(!this.outputElement||!this.listBoxElement)return;const t=this.listBoxElement.querySelectorAll("post-listbox-option:not([hidden])").length;this.outputElement.textContent=this.textAvailableSuggestions.replace("{count}",t+"")}render(){return e(o,{key:"d8f594b17240359b03d1e443d0f8ea28a1a5f687","data-version":h},e("slot",{key:"b76771582cdfb4f84e6018551508daaa5e5c91c5"}),this.clearable&&this.inputValue&&e("button",{key:"ff6255a9b10df6609703bfa302d519b52931786e",type:"button",class:"autocomplete-clear",onClick:this.clearInput},e("post-icon",{key:"3c7da3532ae720ab6f392a8de8b2ca21e4b092aa","aria-hidden":"true",name:"closex"})),e("post-icon",{key:"d2a3c04b68a3b9b3303b80f37292578c5182157e","aria-hidden":"true",class:"autocomplete-icon",name:"chevronDown"}),e("output",{key:"187a75fa1e1935a372521c57f75c6740f330f891",class:"visually-hidden",ref:t=>this.outputElement=t}))}get host(){return this}static get style(){return":host{position:relative;display:block}.autocomplete-icon,.autocomplete-clear{position:absolute;inset-block-start:16px}@media screen and (min-width: 780px){.autocomplete-icon,.autocomplete-clear{inset-block-start:20px}}.autocomplete-icon{inset-inline-end:16px;width:24px;height:24px;pointer-events:none;transition:transform .2s ease-in-out}:host([open]) .autocomplete-icon{transform:rotate(180deg)}.autocomplete-clear{display:flex;align-items:center;justify-content:center;inset-inline-end:42px;background:none;border:none;cursor:pointer}.autocomplete-clear>post-icon{width:20px;height:20px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}"}},[257,"post-autocomplete",{filterThreshold:[514,"filter-threshold"],clearable:[516],listbox:[513],textAvailableSuggestions:[513,"text-available-suggestions"],inputValue:[32]}]);function d(){"undefined"!=typeof customElements&&["post-autocomplete","post-icon"].forEach((t=>{switch(t){case"post-autocomplete":customElements.get(n(t))||customElements.define(n(t),p);break;case"post-icon":customElements.get(n(t))||c()}}))}(function(t,s,i,e){var o,n=arguments.length,a=n<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var h=t.length-1;h>=0;h--)(o=t[h])&&(a=(n<3?o(a):n>3?o(s,i,a):o(s,i))||a);n>3&&a&&Object.defineProperty(s,i,a)})([r(),l("string")],p.prototype,"textAvailableSuggestions",void 0),d();const u=p,f=d;export{u as PostAutocomplete,f as defineCustomElement}
@@ -1 +1 @@
1
- import{P as o,d as s}from"./p-ClJyTIVM.js";const p=o,r=s;export{p as PostAvatar,r as defineCustomElement}
1
+ import{P as o,d as s}from"./p-Bn66acGG.js";const a=o,p=s;export{a as PostAvatar,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as o,h as e,a as i,t as s}from"./index.js";import{f as a}from"./p-BVCjnh6Q.js";import{v as c}from"./p-x3kxyWSZ.js";import{c as r}from"./p-DGr-hfLq.js";import"./p-BQ3HlJPr.js";import{d as n}from"./p-DKDEtjQe.js";const l=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.belowFold=!1,this.handleScroll=()=>{this.belowFold=this.isBelowFold()}}isBelowFold(){return window.scrollY>window.innerHeight}validateTextBackToTop(){r(this,"textBackToTop","string")}watchBelowFold(t){a(this.host,t?"in":"out",{translate:this.translateY,fill:"forwards"})}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}getSecondPixelValue(t){for(const o of t){const t=o.match(/\b\d+px\b/g);if(t&&t.length>1)return t[1]}}animateButton(){const t=globalThis.getComputedStyle(this.host).getPropertyValue("top"),o=this.host.shadowRoot.querySelector("button"),e=getComputedStyle(o).getPropertyValue("--post-back-to-top-elevation").split(","),i=this.getSecondPixelValue(e);t&&"auto"!==t&&i&&(this.translateY=-1-Number.parseFloat(t.replace("px",""))-Number.parseFloat(i.replace("px","")),this.belowFold&&a(this.host,"in",{translate:this.translateY,fill:"forwards"}),this.belowFold||(this.host.style.transform=`translateY(${this.translateY})`))}componentWillLoad(){this.belowFold=this.isBelowFold()}componentDidLoad(){window.addEventListener("scroll",this.handleScroll,!1),this.animateButton(),this.validateTextBackToTop()}disconnectedCallback(){window.removeEventListener("scroll",this.handleScroll)}render(){return e(i,{key:"259c07a96b529c9db791b4a8a03e545abade77f1","data-version":c},e("button",{key:"eacc98e29e7070f8486c542fc1be1d994bb14683",class:"back-to-top","aria-hidden":this.belowFold?"false":"true",tabindex:this.belowFold?"0":"-1",onClick:this.scrollToTop},e("post-icon",{key:"94c77371e34e96e4359c0857f69e971bb39e284b","aria-hidden":"true",name:"arrowup"}),e("span",{key:"0c8918689fb6c9329233247bcfe6fb5eeb31f03c",class:"visually-hidden"},this.textBackToTop)))}get host(){return this}static get watchers(){return{textBackToTop:[{validateTextBackToTop:0}],belowFold:[{watchBelowFold:0}]}}static get style(){return":host{opacity:0;--post-floating-button-position-top:var(--post-device-position-4);--post-back-to-top-position-top:calc( var(--post-header-height) + var(--post-floating-button-position-top) );--post-back-to-top-elevation:var(--post-device-elevation-300);position:fixed;z-index:1019;inset-block-start:var(--post-back-to-top-position-top);inset-inline-end:var(--post-device-position-1)}:host .back-to-top{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button;box-shadow:var(--post-back-to-top-elevation);cursor:pointer;border-radius:var(--post-device-border-radius-round);width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);display:flex;align-items:center;justify-content:center}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top{background-color:ButtonFace !important}:host .back-to-top:hover{background-color:Highlight !important}}:host .back-to-top{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}:host .back-to-top:hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:hover{color:HighlightText !important}}:host .back-to-top post-icon{height:var(--post-device-sizing-interactive-button-icon-3);width:var(--post-device-sizing-interactive-button-icon-3)}:host .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}"}},[1,"post-back-to-top",{textBackToTop:[513,"text-back-to-top"],belowFold:[32]},void 0,{textBackToTop:[{validateTextBackToTop:0}],belowFold:[{watchBelowFold:0}]}]);function p(){"undefined"!=typeof customElements&&["post-back-to-top","post-icon"].forEach((t=>{switch(t){case"post-back-to-top":customElements.get(s(t))||customElements.define(s(t),l);break;case"post-icon":customElements.get(s(t))||n()}}))}p();const h=l,d=p;export{h as PostBackToTop,d as defineCustomElement}
1
+ import{p as t,H as o,h as e,a as i,t as s}from"./index.js";import{f as a}from"./p-BVCjnh6Q.js";import"./p-Bji_4dfL.js";import{v as r}from"./p-ClG-N42b.js";import{d as c}from"./p-D1zw8FxT.js";import{R as n}from"./p-4wtxqxXu.js";import{T as l}from"./p-B_WnO-QF.js";const d=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.belowFold=!1,this.handleScroll=()=>{this.belowFold=this.isBelowFold()}}isBelowFold(){return window.scrollY>window.innerHeight}watchBelowFold(t){a(this.host,t?"in":"out",{translate:this.translateY,fill:"forwards"})}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}getSecondPixelValue(t){for(const o of t){const t=o.match(/\b\d+px\b/g);if(t&&t.length>1)return t[1]}}animateButton(){const t=globalThis.getComputedStyle(this.host).getPropertyValue("top"),o=this.host.shadowRoot.querySelector("button"),e=getComputedStyle(o).getPropertyValue("--post-back-to-top-elevation").split(","),i=this.getSecondPixelValue(e);t&&"auto"!==t&&i&&(this.translateY=-1-Number.parseFloat(t.replace("px",""))-Number.parseFloat(i.replace("px","")),this.belowFold&&a(this.host,"in",{translate:this.translateY,fill:"forwards"}),this.belowFold||(this.host.style.transform=`translateY(${this.translateY})`))}componentWillLoad(){this.belowFold=this.isBelowFold()}componentDidLoad(){window.addEventListener("scroll",this.handleScroll,!1),this.animateButton()}disconnectedCallback(){window.removeEventListener("scroll",this.handleScroll)}render(){return e(i,{key:"b4fb2fd83336752a5c67ab9ded8a20b871b8f967","data-version":r},e("button",{key:"cdee4a23f45f9293ac0da814f97df8bda73028ef",class:"back-to-top","aria-hidden":this.belowFold?"false":"true",tabindex:this.belowFold?"0":"-1",onClick:this.scrollToTop},e("post-icon",{key:"91e2be9b6c5dcd2b8e11aec4ff839de259d47a13","aria-hidden":"true",name:"arrowup"}),e("span",{key:"0bee6a5151a4919ddffc436924a8a494650b069a",class:"visually-hidden"},this.textBackToTop)))}get host(){return this}static get watchers(){return{belowFold:[{watchBelowFold:0}]}}static get style(){return":host{opacity:0;--post-floating-button-position-top:var(--post-device-position-4);--post-back-to-top-position-top:calc( var(--post-header-height) + var(--post-floating-button-position-top) );--post-back-to-top-elevation:var(--post-device-elevation-300);position:fixed;z-index:1019;inset-block-start:var(--post-back-to-top-position-top);inset-inline-end:var(--post-device-position-1)}:host .back-to-top{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button;box-shadow:var(--post-back-to-top-elevation);cursor:pointer;border-radius:var(--post-device-border-radius-round);width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);display:flex;align-items:center;justify-content:center}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top{background-color:ButtonFace !important}:host .back-to-top:hover{background-color:Highlight !important}}:host .back-to-top{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}:host .back-to-top:hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:hover{color:HighlightText !important}}:host .back-to-top post-icon{height:var(--post-device-sizing-interactive-button-icon-3);width:var(--post-device-sizing-interactive-button-icon-3)}:host .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}"}},[1,"post-back-to-top",{textBackToTop:[513,"text-back-to-top"],belowFold:[32]},void 0,{belowFold:[{watchBelowFold:0}]}]);function p(){"undefined"!=typeof customElements&&["post-back-to-top","post-icon"].forEach((t=>{switch(t){case"post-back-to-top":customElements.get(s(t))||customElements.define(s(t),d);break;case"post-icon":customElements.get(s(t))||c()}}))}(function(t,o,e,i){var s,a=arguments.length,r=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,o,e,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(r=(a<3?s(r):a>3?s(o,e,r):s(o,e))||r);a>3&&r&&Object.defineProperty(o,e,r)})([n(),l("string")],d.prototype,"textBackToTop",void 0),p();const h=d,b=p;export{h as PostBackToTop,b as defineCustomElement}
@@ -1 +1 @@
1
- import{p as o,H as t,c as e,h as i,a as s,t as c}from"./index.js";import{v as r}from"./p-x3kxyWSZ.js";import{f as a}from"./p-D5knoiyy.js";import{b as n}from"./p-DGr-hfLq.js";import"./p-BQ3HlJPr.js";import{E as d}from"./p-rEfV4v4a.js";const l=["success","warning","error","info"];const p=o(class extends t{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.postDismissed=e(this,"postDismissed"),this.mutationObserver=new MutationObserver(this.checkContent.bind(this)),this.hasActions=!1,this.type="info"}validateType(){n(this,"type",l)}connectedCallback(){this.mutationObserver.observe(this.host,{childList:!0})}componentDidLoad(){this.checkContent(),this.validateType()}disconnectedCallback(){this.mutationObserver.disconnect()}async dismiss(){const o=a(this.host,"out");await o.finished,this.postDismissed.emit(),this.host.remove()}onCloseButtonClick(){this.dismiss()}checkContent(){this.hasActions=this.host.querySelectorAll('[slot="actions"]').length>0}render(){return i(s,{key:"a57b0caac1e70b9ebcbfc17f446c7f0258aa9083","data-version":r,role:"alert","data-color-scheme":"light"},i("slot",{key:"f34600d0fa1b6dd91eff4655db906befdc74b840",name:"close-button"}),i("slot",{key:"eee0dd61936ebbcf259df5355f52d85534c4cc92",name:"heading"}),i("slot",{key:"f837c996723531ade1d8c150ef73659e90fa407c"}),this.hasActions&&i("div",{key:"cb3fa9ccf57498fb17d4c45afc93d747f7f727e2",class:"actions"},i("slot",{key:"4e59f64aff2b8d681251a8f997220b3f1efcfed5",name:"actions"})))}get host(){return this}static get watchers(){return{type:[{validateType:0}]}}static get style(){return':host{position:relative;display:grid;grid-template-columns:1fr;grid-auto-rows:auto;grid-auto-flow:row;row-gap:var(--post-device-spacing-gap-block-1);min-height:calc(var(--post-device-sizing-notification-icon-2) + (2 * var(--post-device-spacing-padding-10)));padding:var(--post-device-spacing-padding-10);padding-inline-start:calc( var(--post-device-spacing-padding-10) + var(--post-device-sizing-notification-icon-2) + var(--post-device-spacing-gap-inline-6) );color:var(--post-current-fg);border-style:var(--post-core-border-style-solid);border-width:var(--post-device-border-width-default);border-radius:var(--post-device-border-radius-2);box-shadow:var(--post-device-elevation-100);background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host::before{content:"";display:block;position:absolute;height:var(--post-device-sizing-notification-icon-2);width:var(--post-device-sizing-notification-icon-2);inset-block-start:var(--post-device-spacing-padding-10);inset-inline-start:var(--post-device-spacing-padding-10);background-image:var(--post-signal-icon-info)}:host([type=info]){background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host([type=info])::before{background-image:var(--post-signal-icon-info)}:host([type=success]){background-color:var(--post-scheme-color-interactive-notification-success-bg);border-color:var(--post-scheme-color-interactive-notification-success-stroke)}:host([type=success])::before{background-image:var(--post-signal-icon-success)}:host([type=warning]){background-color:var(--post-scheme-color-interactive-notification-warning-bg);border-color:var(--post-scheme-color-interactive-notification-warning-stroke)}:host([type=warning])::before{background-image:var(--post-signal-icon-warning)}:host([type=error]){background-color:var(--post-scheme-color-interactive-notification-error-bg);border-color:var(--post-scheme-color-interactive-notification-error-stroke)}:host([type=error])::before{background-image:var(--post-signal-icon-error)}.actions{display:flex;flex-direction:row-reverse;justify-content:flex-start;align-items:center;margin-block-start:var(--post-device-spacing-padding-block-10);gap:var(--post-device-spacing-gap-1)}@media screen and (min-width: 0)and (max-width: 599.98px){.actions{flex-direction:column;align-items:stretch}}::slotted(*){margin-block:0 !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host{border-color:CanvasText}:host::before{color:CanvasText}}'}},[257,"post-banner",{type:[513],hasActions:[32],dismiss:[64]},[[0,"click","onCloseButtonClick"]],{type:[{validateType:0}]}]);function f(){"undefined"!=typeof customElements&&["post-banner"].forEach((o=>{"post-banner"===o&&(customElements.get(c(o))||customElements.define(c(o),p))}))}(function(o,t,e,i){var s,c=arguments.length,r=c<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(c<3?s(r):c>3?s(t,e,r):s(t,e))||r);c>3&&r&&Object.defineProperty(t,e,r)})([d("post-closebutton",{allowDescendants:!0})],p.prototype,"onCloseButtonClick",null),f();const v=p,g=f;export{v as PostBanner,g as defineCustomElement}
1
+ import{p as o,H as t,c as e,h as i,a as s,t as a}from"./index.js";import{f as r}from"./p-D5knoiyy.js";import"./p-Bji_4dfL.js";import{E as n}from"./p-rEfV4v4a.js";import{v as c}from"./p-ClG-N42b.js";import{O as d}from"./p-BaB8wJvk.js";var l=function(o,t,e,i){var s,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var n=o.length-1;n>=0;n--)(s=o[n])&&(r=(a<3?s(r):a>3?s(t,e,r):s(t,e))||r);return a>3&&r&&Object.defineProperty(t,e,r),r};const p=o(class extends t{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.postDismissed=e(this,"postDismissed"),this.mutationObserver=new MutationObserver(this.checkContent.bind(this)),this.hasActions=!1,this.type="info"}connectedCallback(){this.mutationObserver.observe(this.host,{childList:!0})}componentDidLoad(){this.checkContent()}disconnectedCallback(){this.mutationObserver.disconnect()}async dismiss(){const o=r(this.host,"out");await o.finished,this.postDismissed.emit(),this.host.remove()}onCloseButtonClick(){this.dismiss()}checkContent(){this.hasActions=this.host.querySelectorAll('[slot="actions"]').length>0}render(){return i(s,{key:"97695d768495db6f56d797d58d94db4b935c5436","data-version":c,role:"alert","data-color-scheme":"light"},i("slot",{key:"d60d826952da373557af9b2362cd26f2e246796e",name:"close-button"}),i("slot",{key:"2f731ec8f29f6a8dc281fab5884a3dc2e4c4e5ae",name:"heading"}),i("slot",{key:"e4db84d239998661a3a3d68e7f1df0a076115b29"}),this.hasActions&&i("div",{key:"1b88d16970a728c3064d325296a529bc93cde41a",class:"actions"},i("slot",{key:"ea5570b8b8c23cb9a7c2b086ddd1a09a517e0f6a",name:"actions"})))}get host(){return this}static get style(){return':host{position:relative;display:grid;grid-template-columns:1fr;grid-auto-rows:auto;grid-auto-flow:row;row-gap:var(--post-device-spacing-gap-block-1);min-height:calc(var(--post-device-sizing-notification-icon-2) + (2 * var(--post-device-spacing-padding-10)));padding:var(--post-device-spacing-padding-10);padding-inline-start:calc( var(--post-device-spacing-padding-10) + var(--post-device-sizing-notification-icon-2) + var(--post-device-spacing-gap-inline-6) );color:var(--post-current-fg);border-style:var(--post-core-border-style-solid);border-width:var(--post-device-border-width-default);border-radius:var(--post-device-border-radius-2);box-shadow:var(--post-device-elevation-100);background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host::before{content:"";display:block;position:absolute;height:var(--post-device-sizing-notification-icon-2);width:var(--post-device-sizing-notification-icon-2);inset-block-start:var(--post-device-spacing-padding-10);inset-inline-start:var(--post-device-spacing-padding-10);background-image:var(--post-signal-icon-info)}:host([type=info]){background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host([type=info])::before{background-image:var(--post-signal-icon-info)}:host([type=success]){background-color:var(--post-scheme-color-interactive-notification-success-bg);border-color:var(--post-scheme-color-interactive-notification-success-stroke)}:host([type=success])::before{background-image:var(--post-signal-icon-success)}:host([type=warning]){background-color:var(--post-scheme-color-interactive-notification-warning-bg);border-color:var(--post-scheme-color-interactive-notification-warning-stroke)}:host([type=warning])::before{background-image:var(--post-signal-icon-warning)}:host([type=error]){background-color:var(--post-scheme-color-interactive-notification-error-bg);border-color:var(--post-scheme-color-interactive-notification-error-stroke)}:host([type=error])::before{background-image:var(--post-signal-icon-error)}.actions{display:flex;flex-direction:row-reverse;justify-content:flex-start;align-items:center;margin-block-start:var(--post-device-spacing-padding-block-10);gap:var(--post-device-spacing-gap-1)}@media screen and (min-width: 0)and (max-width: 599.98px){.actions{flex-direction:column;align-items:stretch}}::slotted(*){margin-block:0 !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host{border-color:CanvasText}:host::before{color:CanvasText}}'}},[257,"post-banner",{type:[513],hasActions:[32],dismiss:[64]},[[0,"click","onCloseButtonClick"]]]);function v(){"undefined"!=typeof customElements&&["post-banner"].forEach((o=>{"post-banner"===o&&(customElements.get(a(o))||customElements.define(a(o),p))}))}l([d(["success","warning","error","info"])],p.prototype,"type",void 0),l([n("post-closebutton",{allowDescendants:!0})],p.prototype,"onCloseButtonClick",null),v();const g=p,f=v;export{g as PostBanner,f as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,h as o,a as i,t as s}from"./index.js";import{g as a,b as r,c}from"./p-DGr-hfLq.js";import"./p-BQ3HlJPr.js";import{v as n}from"./p-x3kxyWSZ.js";import{d as l}from"./p-DPKR_4uI.js";const d=["listitem","menuitem"],u=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="listitem",this.selected=!1}validateURL(){a(this,"url")}validateVariant(){r(this,"variant",d)}validateSelected(){c(this,"selected","boolean")}render(){const t=this.url instanceof URL?this.url.href:this.url,e=t?o("a",{href:t,"aria-current":this.selected?"page":void 0,"aria-label":this.label,"aria-description":this.description},o("slot",null)):o("span",null,o("slot",null));return"listitem"===this.variant||this.selected?o(i,{"data-version":n,role:"listitem",slot:this.selected?"selected":void 0},e):o(i,{"data-version":n},o("post-menu-item",null,e))}get host(){return this}static get watchers(){return{url:[{validateURL:0}],variant:[{validateVariant:0}],selected:[{validateSelected:0}]}}static get style(){return'a{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border-radius:var(--post-device-border-radius-focus);color:var(--post-current-fg)}a:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}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}a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){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){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){a,a:focus{color:LinkText !important}a:hover{text-decoration-thickness:2px}a:visited{color:VisitedText}}:host(:not([variant=menuitem])){display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-5)}:host(:not([variant=menuitem])) :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-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;display:flex;align-self:start;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);text-decoration:var(--post-core-text-decoration-none)}:host(:not([variant=menuitem])) :is(button,a):hover{text-decoration:none}:host(:not([variant=menuitem])) :is(button,a):disabled{border-style:var(--post-core-border-style-dash)}:host(:not([variant=menuitem])) :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}:host(:not([variant=menuitem])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:not([variant=menuitem])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host(:not([variant=menuitem])) :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){:host(:not([variant=menuitem])) :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){:host(:not([variant=menuitem])) :is(button,a):is(a){color:LinkText;border:unset}:host(:not([variant=menuitem])) :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}:host(:not([variant=menuitem])) :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}:host(:not([variant=menuitem])) :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}:host(:not([variant=menuitem])) :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}:host(:not([variant=menuitem]))::before{mask-image:var(--post-icon-chevronright);background-color:currentColor;content:"";display:flex;height:16px;width:16px;margin-block:var(--post-device-spacing-padding-35);margin-inline:var(--post-core-dimension-4);flex-shrink:0}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2L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Y0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}:host :is(a,span){margin-block:var(--post-device-spacing-padding-block-6)}:host([selected]:not([selected=false])){display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-5)}:host([selected]:not([selected=false])) :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-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;display:flex;align-self:start;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);text-decoration:var(--post-core-text-decoration-none)}:host([selected]:not([selected=false])) :is(button,a):hover{text-decoration:none}:host([selected]:not([selected=false])) :is(button,a):disabled{border-style:var(--post-core-border-style-dash)}:host([selected]:not([selected=false])) :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}:host([selected]:not([selected=false])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host([selected]:not([selected=false])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host([selected]:not([selected=false])) :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){:host([selected]:not([selected=false])) :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){:host([selected]:not([selected=false])) :is(button,a):is(a){color:LinkText;border:unset}:host([selected]:not([selected=false])) :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}:host([selected]:not([selected=false])) :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}:host([selected]:not([selected=false])) :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}:host([selected]:not([selected=false])) :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}:host([selected]:not([selected=false]))::before{mask-image:var(--post-icon-chevronright);background-color:currentColor;content:"";display:flex;height:16px;width:16px;margin-block:var(--post-device-spacing-padding-35);margin-inline:var(--post-core-dimension-4);flex-shrink:0}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM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PjwvZz48L3N2Zz4=")}:host([selected]:not([selected=false])) :is(a,span){color:var(--post-scheme-color-interactive-primary-selected-fg1);font-weight:var(--post-device-font-weight-bold);text-decoration:var(--post-core-text-decoration-none)}:host([selected]:not([selected=false]):not([data-measuring])){align-items:start}:host([selected]:not([selected=false]):not([data-measuring])) :is(a,span){white-space:normal;overflow-wrap:anywhere}'}},[257,"post-breadcrumb-item",{url:[513],label:[513],description:[513],variant:[513],selected:[516]},void 0,{url:[{validateURL:0}],variant:[{validateVariant:0}],selected:[{validateSelected:0}]}]);function g(){"undefined"!=typeof customElements&&["post-breadcrumb-item","post-menu-item"].forEach((t=>{switch(t){case"post-breadcrumb-item":customElements.get(s(t))||customElements.define(s(t),u);break;case"post-menu-item":customElements.get(s(t))||l()}}))}g();const M=u,h=g;export{M as PostBreadcrumbItem,h as defineCustomElement}
1
+ import{p as t,H as e,h as o,a as i,t as s}from"./index.js";import"./p-Bji_4dfL.js";import{v as r}from"./p-ClG-N42b.js";import{d as a}from"./p-85IGlhtB.js";import{U as c}from"./p-CX2E_IXB.js";import{T as n}from"./p-B_WnO-QF.js";import{O as l}from"./p-BaB8wJvk.js";import{R as d}from"./p-4wtxqxXu.js";var u=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 c=t.length-1;c>=0;c--)(s=t[c])&&(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 g=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="listitem",this.selected=!1}render(){const t=this.url instanceof URL?this.url.href:this.url,e=t?o("a",{href:t,"aria-current":this.selected?"page":void 0,"aria-label":this.label,"aria-description":this.description},o("slot",null)):o("span",null,o("slot",null));return"listitem"===this.variant||this.selected?o(i,{"data-version":r,role:"listitem",slot:this.selected?"selected":void 0},e):o(i,{"data-version":r},o("post-menu-item",null,e))}get host(){return this}static get style(){return'a{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border-radius:var(--post-device-border-radius-focus);color:var(--post-current-fg)}a:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}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}a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){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){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){a,a:focus{color:LinkText !important}a:hover{text-decoration-thickness:2px}a:visited{color:VisitedText}}:host(:not([variant=menuitem])){display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-5)}:host(:not([variant=menuitem])) :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-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;display:flex;align-self:start;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);text-decoration:var(--post-core-text-decoration-none)}:host(:not([variant=menuitem])) :is(button,a):hover{text-decoration:none}:host(:not([variant=menuitem])) :is(button,a):disabled{border-style:var(--post-core-border-style-dash)}:host(:not([variant=menuitem])) :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}:host(:not([variant=menuitem])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:not([variant=menuitem])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host(:not([variant=menuitem])) :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){:host(:not([variant=menuitem])) :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){:host(:not([variant=menuitem])) :is(button,a):is(a){color:LinkText;border:unset}:host(:not([variant=menuitem])) :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}:host(:not([variant=menuitem])) :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}:host(:not([variant=menuitem])) :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}:host(:not([variant=menuitem])) :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}:host(:not([variant=menuitem]))::before{mask-image:var(--post-icon-chevronright);background-color:currentColor;content:"";display:flex;height:16px;width:16px;margin-block:var(--post-device-spacing-padding-35);margin-inline:var(--post-core-dimension-4);flex-shrink:0}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2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zPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}:host :is(a,span){margin-block:var(--post-device-spacing-padding-block-6)}:host([selected]:not([selected=false])){display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-5)}:host([selected]:not([selected=false])) :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-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;display:flex;align-self:start;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);text-decoration:var(--post-core-text-decoration-none)}:host([selected]:not([selected=false])) :is(button,a):hover{text-decoration:none}:host([selected]:not([selected=false])) :is(button,a):disabled{border-style:var(--post-core-border-style-dash)}:host([selected]:not([selected=false])) :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}:host([selected]:not([selected=false])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host([selected]:not([selected=false])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host([selected]:not([selected=false])) :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){:host([selected]:not([selected=false])) :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){:host([selected]:not([selected=false])) :is(button,a):is(a){color:LinkText;border:unset}:host([selected]:not([selected=false])) :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}:host([selected]:not([selected=false])) :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}:host([selected]:not([selected=false])) :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}:host([selected]:not([selected=false])) :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}:host([selected]:not([selected=false]))::before{mask-image:var(--post-icon-chevronright);background-color:currentColor;content:"";display:flex;height:16px;width:16px;margin-block:var(--post-device-spacing-padding-35);margin-inline:var(--post-core-dimension-4);flex-shrink:0}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiA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s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}:host([selected]:not([selected=false])) :is(a,span){color:var(--post-scheme-color-interactive-primary-selected-fg1);font-weight:var(--post-device-font-weight-bold);text-decoration:var(--post-core-text-decoration-none)}:host([selected]:not([selected=false]):not([data-measuring])){align-items:start}:host([selected]:not([selected=false]):not([data-measuring])) :is(a,span){white-space:normal;overflow-wrap:anywhere}'}},[257,"post-breadcrumb-item",{url:[513],label:[513],description:[513],variant:[513],selected:[516]}]);function M(){"undefined"!=typeof customElements&&["post-breadcrumb-item","post-menu-item"].forEach((t=>{switch(t){case"post-breadcrumb-item":customElements.get(s(t))||customElements.define(s(t),g);break;case"post-menu-item":customElements.get(s(t))||a()}}))}u([c()],g.prototype,"url",void 0),u([n("string")],g.prototype,"label",void 0),u([n("string")],g.prototype,"description",void 0),u([l(["listitem","menuitem"])],g.prototype,"variant",void 0),u([d(),n("boolean")],g.prototype,"selected",void 0),M();const h=g,I=M;export{h as PostBreadcrumbItem,I as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,h as i,a as o,t as s}from"./index.js";import{t as r}from"./p-BQ3HlJPr.js";import{v as a}from"./p-x3kxyWSZ.js";import{d as c,c as n}from"./p-DGr-hfLq.js";import{c as d}from"./p-lpWRZjJp.js";import{n as l}from"./p-8LXe8Zt_.js";import{d as m}from"./p-DKDEtjQe.js";import{d as b}from"./p-CVtlwDsT.js";import{d as u}from"./p-CaLwTf3T.js";import{d as h}from"./p-DwZxAC2u.js";const p=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.shouldRenderMenu=!1}validateHomeUrl(){c(this,"homeUrl")}validateTextHome(){n(this,"textHome","string")}validateTextBreadcrumbs(){n(this,"textBreadcrumbs","string")}validateTextMoreItems(){n(this,"textMoreItems","string")}componentWillLoad(){this.id=this.host.id||"b"+l(6)}componentDidLoad(){this.validateHomeUrl(),this.validateTextHome(),this.validateTextBreadcrumbs(),this.validateTextMoreItems(),this.createMutationObserver(),this.createResizeObserver()}disconnectedCallback(){this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect()}createMutationObserver(){this.mutationObserver=new MutationObserver(this.duplicateNavElement.bind(this)),this.mutationObserver.observe(this.host,{childList:!0,characterData:!0,subtree:!0}),this.duplicateNavElement()}createResizeObserver(){this.resizeObserver=new ResizeObserver(r(50,this.checkOverflow.bind(this))),this.resizeObserver.observe(document.body)}duplicateNavElement(){const t=this.host.shadowRoot,e=t?.querySelector("nav");if(!t||!e)return;this.prepareBreadcrumbItemsForClone();const i=e.cloneNode(!0);i.classList.add("invisible"),t.querySelector("nav.invisible")?.remove(),t.append(i),requestAnimationFrame((()=>{this.duplicateSlottedElements(i,"slot:not([name])"),this.duplicateSlottedElements(i,'slot[name="selected"]'),this.checkOverflow()}))}duplicateSlottedElements(t,e){const i=this.host.shadowRoot?.querySelector(e),o=t.querySelector(e);i&&o&&(i.assignedElements().forEach((t=>{const e=t.cloneNode(!0);e.dataset.measuring="true",o.before(e)})),o.remove())}checkOverflow(){const t=this.host.shadowRoot?.querySelector("nav.invisible");if(!t)return;const e=Array.from(t.querySelectorAll("post-breadcrumb-item"));Promise.all(e.map((t=>d(t)))).then((()=>{this.shouldRenderMenu=t.scrollWidth>t.clientWidth,this.updateBreadcrumbItemProps()}))}prepareBreadcrumbItemsForClone(){this.shouldRenderMenu=!1,this.updateBreadcrumbItemProps()}updateBreadcrumbItemProps(){const t=this.host.querySelectorAll("post-breadcrumb-item");t.forEach(((e,i)=>{e.setAttribute("variant",this.shouldRenderMenu?"menuitem":"listitem"),e.setAttribute("selected",(i===t.length-1)+"")}))}renderMenu(){const t=this.id+"-menu";return i("div",{role:"listitem"},i("div",{class:"breadcrumb-item"},i("post-menu-trigger",{for:t},i("button",null,i("span",{class:"visually-hidden"},this.textMoreItems),i("span",{"aria-hidden":"true"},"...")))),i("post-menu",{id:t,label:this.textMoreItems,placement:"bottom-start"},i("slot",null)))}render(){return i(o,{key:"85cb104032c0caed5ab2fb442be0a6d7eac5b67a","data-version":a},i("nav",{key:"be4b2b8c6333ef3bf3440de0ce61958d1a07952b","aria-label":this.textBreadcrumbs},i("div",{key:"28531f638065e6db5cbf7e29d87086933fb47235",role:"list"},i("div",{key:"4a71e5b143e271e26f032e8d4ed329aee949bf32",class:"breadcrumb-item home",role:"listitem"},i("a",{key:"3e58ac2d4bbbc2e56a7acd28119b235edadc8fa0",href:this.homeUrl},i("span",{key:"1a31a9963898005b218177d78adbb7813728b0ce",class:"visually-hidden"},this.textHome),i("post-icon",{key:"668a636881fbea1a7129b9108cc234c257e0fffb","aria-hidden":"true",name:"home"}))),this.shouldRenderMenu?this.renderMenu():i("slot",null),i("slot",{key:"0c8bad3de95f0ca51dfd8a15c4cb6e79e2499b1b",name:"selected"}))))}get host(){return this}static get watchers(){return{homeUrl:[{validateHomeUrl:0}],textHome:[{validateTextHome:0}],textBreadcrumbs:[{validateTextBreadcrumbs:0}],textMoreItems:[{validateTextMoreItems:0}]}}static get style(){return':host{position:relative}nav{max-width:100%}nav.invisible{visibility:hidden;overflow:hidden;position:absolute;inset:0}[role=list]{display:flex;align-items:start;gap:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:flex;align-items:center;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-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;display:flex;align-self:start;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item :is(button,a):hover{text-decoration:none}.breadcrumb-item :is(button,a):disabled{border-style:var(--post-core-border-style-dash)}.breadcrumb-item :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(a){color:LinkText;border:unset}.breadcrumb-item :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !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;content:"";display:flex;height:16px;width:16px;margin-block:var(--post-device-spacing-padding-35);margin-inline:var(--post-core-dimension-4);flex-shrink:0}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5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cigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}.home::before{content:unset}.home post-icon{font-size:var(--post-core-dimension-24)}@media screen and (min-width: 0)and (max-width: 599.98px){.home post-icon{font-size:20px}}.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"],textBreadcrumbs:[513,"text-breadcrumbs"],textMoreItems:[513,"text-more-items"],shouldRenderMenu:[32],id:[32]},void 0,{homeUrl:[{validateHomeUrl:0}],textHome:[{validateTextHome:0}],textBreadcrumbs:[{validateTextBreadcrumbs:0}],textMoreItems:[{validateTextMoreItems:0}]}]);function M(){"undefined"!=typeof customElements&&["post-breadcrumbs","post-icon","post-menu","post-menu-trigger","post-popovercontainer"].forEach((t=>{switch(t){case"post-breadcrumbs":customElements.get(s(t))||customElements.define(s(t),p);break;case"post-icon":customElements.get(s(t))||m();break;case"post-menu":customElements.get(s(t))||b();break;case"post-menu-trigger":customElements.get(s(t))||u();break;case"post-popovercontainer":customElements.get(s(t))||h()}}))}M();const g=p,I=M;export{g as PostBreadcrumbs,I as defineCustomElement}
1
+ import{p as t,H as e,h as i,a as o,t as s}from"./index.js";import{t as r}from"./p-Bji_4dfL.js";import{c as a}from"./p-lpWRZjJp.js";import{n as c}from"./p-8LXe8Zt_.js";import{v as n}from"./p-ClG-N42b.js";import{d}from"./p-D1zw8FxT.js";import{d as l}from"./p-BZSAV0-K.js";import{d as u}from"./p-Cd1TsNm7.js";import{d as m}from"./p-B9ZFuYey.js";import{R as b}from"./p-4wtxqxXu.js";import{U as p}from"./p-CX2E_IXB.js";import{T as h}from"./p-B_WnO-QF.js";var g=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const M=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.shouldRenderMenu=!1}componentWillLoad(){this.id=this.host.id||"b"+c(6)}componentDidLoad(){this.createMutationObserver(),this.createResizeObserver()}disconnectedCallback(){this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect()}createMutationObserver(){this.mutationObserver=new MutationObserver(this.duplicateNavElement.bind(this)),this.mutationObserver.observe(this.host,{childList:!0,characterData:!0,subtree:!0}),this.duplicateNavElement()}createResizeObserver(){this.resizeObserver=new ResizeObserver(r(50,this.checkOverflow.bind(this))),this.resizeObserver.observe(document.body)}duplicateNavElement(){const t=this.host.shadowRoot,e=t?.querySelector("nav");if(!t||!e)return;this.prepareBreadcrumbItemsForClone();const i=e.cloneNode(!0);i.classList.add("invisible"),t.querySelector("nav.invisible")?.remove(),t.append(i),requestAnimationFrame((()=>{this.duplicateSlottedElements(i,"slot:not([name])"),this.duplicateSlottedElements(i,'slot[name="selected"]'),this.checkOverflow()}))}duplicateSlottedElements(t,e){const i=this.host.shadowRoot?.querySelector(e),o=t.querySelector(e);i&&o&&(i.assignedElements().forEach((t=>{const e=t.cloneNode(!0);e.dataset.measuring="true",o.before(e)})),o.remove())}checkOverflow(){const t=this.host.shadowRoot?.querySelector("nav.invisible");if(!t)return;const e=Array.from(t.querySelectorAll("post-breadcrumb-item"));Promise.all(e.map((t=>a(t)))).then((()=>{this.shouldRenderMenu=t.scrollWidth>t.clientWidth,this.updateBreadcrumbItemProps()}))}prepareBreadcrumbItemsForClone(){this.shouldRenderMenu=!1,this.updateBreadcrumbItemProps()}updateBreadcrumbItemProps(){const t=this.host.querySelectorAll("post-breadcrumb-item");t.forEach(((e,i)=>{e.setAttribute("variant",this.shouldRenderMenu?"menuitem":"listitem"),e.setAttribute("selected",(i===t.length-1)+"")}))}renderMenu(){const t=this.id+"-menu";return i("div",{role:"listitem"},i("div",{class:"breadcrumb-item"},i("post-menu-trigger",{for:t},i("button",null,i("span",{class:"visually-hidden"},this.textMoreItems),i("span",{"aria-hidden":"true"},"...")))),i("post-menu",{id:t,label:this.textMoreItems,placement:"bottom-start"},i("slot",null)))}render(){return i(o,{key:"7ad91a47dac5999eba506744321eb59a27970687","data-version":n},i("nav",{key:"3d84a12495ccd27df028cae550b319a2191f8721","aria-label":this.textBreadcrumbs},i("div",{key:"291436db8b8f171ca070f0b4fb6e24a6fd831e8d",role:"list"},i("div",{key:"cd5aeeee11626fde17bf384ebe7f1f1f701f2a86",class:"breadcrumb-item home",role:"listitem"},i("a",{key:"9583685d73837b3971a575307621cb364c934d4e",href:this.homeUrl},i("span",{key:"4896caee6c56016ee7e0ded0363bd5ead8f672bc",class:"visually-hidden"},this.textHome),i("post-icon",{key:"8390117bb7e8527a813e3d306e16312fa1912ce6","aria-hidden":"true",name:"home"}))),this.shouldRenderMenu?this.renderMenu():i("slot",null),i("slot",{key:"314d304f3f1d1cc09af197eea221d26a9bf1c0fe",name:"selected"}))))}get host(){return this}static get style(){return':host{position:relative}nav{max-width:100%}nav.invisible{visibility:hidden;overflow:hidden;position:absolute;inset:0}[role=list]{display:flex;align-items:start;gap:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:flex;align-items:center;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-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;display:flex;align-self:start;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item :is(button,a):hover{text-decoration:none}.breadcrumb-item :is(button,a):disabled{border-style:var(--post-core-border-style-dash)}.breadcrumb-item :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(a){color:LinkText;border:unset}.breadcrumb-item :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !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;content:"";display:flex;height:16px;width:16px;margin-block:var(--post-device-spacing-padding-35);margin-inline:var(--post-core-dimension-4);flex-shrink:0}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMz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KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}.home::before{content:unset}.home post-icon{font-size:var(--post-core-dimension-24)}@media screen and (min-width: 0)and (max-width: 599.98px){.home post-icon{font-size:20px}}.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"],textBreadcrumbs:[513,"text-breadcrumbs"],textMoreItems:[513,"text-more-items"],shouldRenderMenu:[32],id:[32]}]);function j(){"undefined"!=typeof customElements&&["post-breadcrumbs","post-icon","post-menu","post-menu-trigger","post-popovercontainer"].forEach((t=>{switch(t){case"post-breadcrumbs":customElements.get(s(t))||customElements.define(s(t),M);break;case"post-icon":customElements.get(s(t))||d();break;case"post-menu":customElements.get(s(t))||l();break;case"post-menu-trigger":customElements.get(s(t))||u();break;case"post-popovercontainer":customElements.get(s(t))||m()}}))}g([b(),p()],M.prototype,"homeUrl",void 0),g([b(),h("string")],M.prototype,"textHome",void 0),g([b(),h("string")],M.prototype,"textBreadcrumbs",void 0),g([b(),h("string")],M.prototype,"textMoreItems",void 0),j();const I=M,v=j;export{I as PostBreadcrumbs,v as defineCustomElement}
@@ -1 +1 @@
1
- import{P as s,d as o}from"./p-DcEDGaFs.js";const a=s,p=o;export{a as PostClosebutton,p as defineCustomElement}
1
+ import{P as o,d as s}from"./p-DwuW52g5.js";const p=o,r=s;export{p as PostClosebutton,r as defineCustomElement}
@@ -1 +1 @@
1
- import{P as o,d as p}from"./p-DipfA69b.js";const s=o,r=p;export{s as PostCollapsibleTrigger,r as defineCustomElement}
1
+ import{P as o,d as s}from"./p-Bu2JeHDf.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-C7s9oglQ.js";const p=o,r=s;export{p as PostCollapsible,r as defineCustomElement}
1
+ import{P as o,d as r}from"./p-BxoRVIIr.js";const s=o,p=r;export{s as PostCollapsible,p as defineCustomElement}