@swisspost/internet-header 10.2.0 → 10.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/dist/cjs/index.cjs.js +1 -1
  2. package/dist/cjs/{package-DQQbs4bt.js → package-Bk3UBVSc.js} +2 -1
  3. package/dist/cjs/{package-2syswPDO.js → package-uiAqYqcY.js} +1 -1
  4. package/dist/cjs/post-accordion_4.cjs.entry.js +1 -1
  5. package/dist/cjs/post-autocomplete.cjs.entry.js +1 -1
  6. package/dist/cjs/post-avatar.cjs.entry.js +1 -1
  7. package/dist/cjs/post-back-to-top.cjs.entry.js +1 -1
  8. package/dist/cjs/post-banner.cjs.entry.js +1 -1
  9. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +2 -2
  10. package/dist/cjs/post-breadcrumbs.cjs.entry.js +1 -1
  11. package/dist/cjs/post-closebutton.cjs.entry.js +1 -1
  12. package/dist/cjs/post-date-picker.cjs.entry.js +1 -1
  13. package/dist/cjs/post-footer.cjs.entry.js +1 -1
  14. package/dist/cjs/post-header.cjs.entry.js +13 -4
  15. package/dist/cjs/post-icon.cjs.entry.js +1 -1
  16. package/dist/cjs/post-language-menu-item.cjs.entry.js +2 -2
  17. package/dist/cjs/post-language-menu.cjs.entry.js +1 -1
  18. package/dist/cjs/post-linkarea.cjs.entry.js +1 -1
  19. package/dist/cjs/post-listbox-option.cjs.entry.js +1 -1
  20. package/dist/cjs/post-listbox.cjs.entry.js +1 -1
  21. package/dist/cjs/post-logo.cjs.entry.js +1 -1
  22. package/dist/cjs/post-mainnavigation.cjs.entry.js +1 -1
  23. package/dist/cjs/post-megadropdown-trigger.cjs.entry.js +1 -1
  24. package/dist/cjs/post-megadropdown.cjs.entry.js +1 -1
  25. package/dist/cjs/post-menu-item.cjs.entry.js +1 -1
  26. package/dist/cjs/post-menu_2.cjs.entry.js +1 -1
  27. package/dist/cjs/post-number-input.cjs.entry.js +1 -1
  28. package/dist/cjs/post-pagination.cjs.entry.js +76 -26
  29. package/dist/cjs/post-popover-trigger.cjs.entry.js +1 -1
  30. package/dist/cjs/post-popover.cjs.entry.js +1 -1
  31. package/dist/cjs/post-popovercontainer.cjs.entry.js +1 -1
  32. package/dist/cjs/post-rating.cjs.entry.js +1 -1
  33. package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +2 -2
  34. package/dist/cjs/post-side-navigation.cjs.entry.js +1 -1
  35. package/dist/cjs/post-stepper-item.cjs.entry.js +2 -2
  36. package/dist/cjs/post-stepper.cjs.entry.js +1 -1
  37. package/dist/cjs/post-tab-item.cjs.entry.js +1 -1
  38. package/dist/cjs/post-tab-panel.cjs.entry.js +1 -1
  39. package/dist/cjs/post-tabs.cjs.entry.js +1 -1
  40. package/dist/cjs/post-togglebutton.cjs.entry.js +1 -1
  41. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +1 -1
  42. package/dist/cjs/post-tooltip.cjs.entry.js +1 -1
  43. package/dist/cjs/swisspost-internet-footer.cjs.entry.js +1 -1
  44. package/dist/cjs/swisspost-internet-header.cjs.entry.js +86 -2
  45. package/dist/collection/components/post-internet-header/post-internet-header.js +25 -2
  46. package/dist/collection/data/store.js +1 -0
  47. package/dist/collection/services/alternate-link.service.js +61 -0
  48. package/dist/components/package.js +1 -1
  49. package/dist/components/package2.js +1 -1
  50. package/dist/components/post-breadcrumb-item.js +1 -1
  51. package/dist/components/post-header2.js +1 -1
  52. package/dist/components/post-language-menu-item2.js +1 -1
  53. package/dist/components/post-pagination.js +1 -1
  54. package/dist/components/post-side-navigation-trigger.js +1 -1
  55. package/dist/components/post-stepper-item.js +1 -1
  56. package/dist/components/swisspost-internet-header.js +1 -1
  57. package/dist/docs.json +1 -1
  58. package/dist/esm/index.js +1 -1
  59. package/dist/esm/{package-YQBh4peU.js → package-D9jUbrFT.js} +1 -1
  60. package/dist/esm/{package-BEOiFUNg.js → package-Dheuk3S-.js} +2 -1
  61. package/dist/esm/post-accordion_4.entry.js +1 -1
  62. package/dist/esm/post-autocomplete.entry.js +1 -1
  63. package/dist/esm/post-avatar.entry.js +1 -1
  64. package/dist/esm/post-back-to-top.entry.js +1 -1
  65. package/dist/esm/post-banner.entry.js +1 -1
  66. package/dist/esm/post-breadcrumb-item.entry.js +2 -2
  67. package/dist/esm/post-breadcrumbs.entry.js +1 -1
  68. package/dist/esm/post-closebutton.entry.js +1 -1
  69. package/dist/esm/post-date-picker.entry.js +1 -1
  70. package/dist/esm/post-footer.entry.js +1 -1
  71. package/dist/esm/post-header.entry.js +13 -4
  72. package/dist/esm/post-icon.entry.js +1 -1
  73. package/dist/esm/post-language-menu-item.entry.js +2 -2
  74. package/dist/esm/post-language-menu.entry.js +1 -1
  75. package/dist/esm/post-linkarea.entry.js +1 -1
  76. package/dist/esm/post-listbox-option.entry.js +1 -1
  77. package/dist/esm/post-listbox.entry.js +1 -1
  78. package/dist/esm/post-logo.entry.js +1 -1
  79. package/dist/esm/post-mainnavigation.entry.js +1 -1
  80. package/dist/esm/post-megadropdown-trigger.entry.js +1 -1
  81. package/dist/esm/post-megadropdown.entry.js +1 -1
  82. package/dist/esm/post-menu-item.entry.js +1 -1
  83. package/dist/esm/post-menu_2.entry.js +1 -1
  84. package/dist/esm/post-number-input.entry.js +1 -1
  85. package/dist/esm/post-pagination.entry.js +76 -26
  86. package/dist/esm/post-popover-trigger.entry.js +1 -1
  87. package/dist/esm/post-popover.entry.js +1 -1
  88. package/dist/esm/post-popovercontainer.entry.js +1 -1
  89. package/dist/esm/post-rating.entry.js +1 -1
  90. package/dist/esm/post-side-navigation-trigger.entry.js +2 -2
  91. package/dist/esm/post-side-navigation.entry.js +1 -1
  92. package/dist/esm/post-stepper-item.entry.js +2 -2
  93. package/dist/esm/post-stepper.entry.js +1 -1
  94. package/dist/esm/post-tab-item.entry.js +1 -1
  95. package/dist/esm/post-tab-panel.entry.js +1 -1
  96. package/dist/esm/post-tabs.entry.js +1 -1
  97. package/dist/esm/post-togglebutton.entry.js +1 -1
  98. package/dist/esm/post-tooltip-trigger.entry.js +1 -1
  99. package/dist/esm/post-tooltip.entry.js +1 -1
  100. package/dist/esm/swisspost-internet-footer.entry.js +1 -1
  101. package/dist/esm/swisspost-internet-header.entry.js +86 -2
  102. package/dist/esm-es5/index.js +1 -1
  103. package/dist/esm-es5/package-D9jUbrFT.js +1 -0
  104. package/dist/esm-es5/{package-BEOiFUNg.js → package-Dheuk3S-.js} +1 -1
  105. package/dist/esm-es5/post-accordion_4.entry.js +1 -1
  106. package/dist/esm-es5/post-autocomplete.entry.js +1 -1
  107. package/dist/esm-es5/post-avatar.entry.js +1 -1
  108. package/dist/esm-es5/post-back-to-top.entry.js +1 -1
  109. package/dist/esm-es5/post-banner.entry.js +1 -1
  110. package/dist/esm-es5/post-breadcrumb-item.entry.js +1 -1
  111. package/dist/esm-es5/post-breadcrumbs.entry.js +1 -1
  112. package/dist/esm-es5/post-closebutton.entry.js +1 -1
  113. package/dist/esm-es5/post-date-picker.entry.js +1 -1
  114. package/dist/esm-es5/post-footer.entry.js +1 -1
  115. package/dist/esm-es5/post-header.entry.js +1 -1
  116. package/dist/esm-es5/post-icon.entry.js +1 -1
  117. package/dist/esm-es5/post-language-menu-item.entry.js +1 -1
  118. package/dist/esm-es5/post-language-menu.entry.js +1 -1
  119. package/dist/esm-es5/post-linkarea.entry.js +1 -1
  120. package/dist/esm-es5/post-listbox-option.entry.js +1 -1
  121. package/dist/esm-es5/post-listbox.entry.js +1 -1
  122. package/dist/esm-es5/post-logo.entry.js +1 -1
  123. package/dist/esm-es5/post-mainnavigation.entry.js +1 -1
  124. package/dist/esm-es5/post-megadropdown-trigger.entry.js +1 -1
  125. package/dist/esm-es5/post-megadropdown.entry.js +1 -1
  126. package/dist/esm-es5/post-menu-item.entry.js +1 -1
  127. package/dist/esm-es5/post-menu_2.entry.js +1 -1
  128. package/dist/esm-es5/post-number-input.entry.js +1 -1
  129. package/dist/esm-es5/post-pagination.entry.js +1 -1
  130. package/dist/esm-es5/post-popover-trigger.entry.js +1 -1
  131. package/dist/esm-es5/post-popover.entry.js +1 -1
  132. package/dist/esm-es5/post-popovercontainer.entry.js +1 -1
  133. package/dist/esm-es5/post-rating.entry.js +1 -1
  134. package/dist/esm-es5/post-side-navigation-trigger.entry.js +1 -1
  135. package/dist/esm-es5/post-side-navigation.entry.js +1 -1
  136. package/dist/esm-es5/post-stepper-item.entry.js +1 -1
  137. package/dist/esm-es5/post-stepper.entry.js +1 -1
  138. package/dist/esm-es5/post-tab-item.entry.js +1 -1
  139. package/dist/esm-es5/post-tab-panel.entry.js +1 -1
  140. package/dist/esm-es5/post-tabs.entry.js +1 -1
  141. package/dist/esm-es5/post-togglebutton.entry.js +1 -1
  142. package/dist/esm-es5/post-tooltip-trigger.entry.js +1 -1
  143. package/dist/esm-es5/post-tooltip.entry.js +1 -1
  144. package/dist/esm-es5/swisspost-internet-footer.entry.js +1 -1
  145. package/dist/esm-es5/swisspost-internet-header.entry.js +1 -1
  146. package/dist/swisspost-internet-header/index.esm.js +1 -1
  147. package/dist/swisspost-internet-header/{p-693be85f.entry.js → p-043b0295.entry.js} +1 -1
  148. package/dist/swisspost-internet-header/{p-9da73a63.entry.js → p-0708d2ae.entry.js} +1 -1
  149. package/dist/swisspost-internet-header/p-091d408b.system.entry.js +1 -0
  150. package/dist/swisspost-internet-header/{p-16f9605f.entry.js → p-0a1276dc.entry.js} +1 -1
  151. package/dist/swisspost-internet-header/{p-8035438a.system.entry.js → p-0a3325bd.system.entry.js} +1 -1
  152. package/dist/swisspost-internet-header/{p-2d7fbb16.system.entry.js → p-0e3b3739.system.entry.js} +1 -1
  153. package/dist/swisspost-internet-header/{p-e0cebd00.system.entry.js → p-0fdc3e18.system.entry.js} +1 -1
  154. package/dist/swisspost-internet-header/{p-0018572d.entry.js → p-10dbaad3.entry.js} +1 -1
  155. package/dist/swisspost-internet-header/{p-1ea8aa7b.system.entry.js → p-13bae547.system.entry.js} +1 -1
  156. package/dist/swisspost-internet-header/{p-388ff4b0.system.entry.js → p-145e9419.system.entry.js} +1 -1
  157. package/dist/swisspost-internet-header/{p-994e894b.entry.js → p-15564bd8.entry.js} +1 -1
  158. package/dist/swisspost-internet-header/{p-bb71e55f.entry.js → p-1ad88e06.entry.js} +1 -1
  159. package/dist/swisspost-internet-header/{p-2f9015c7.system.entry.js → p-2069109d.system.entry.js} +1 -1
  160. package/dist/swisspost-internet-header/{p-1b3d12fe.entry.js → p-20ded6e8.entry.js} +1 -1
  161. package/dist/swisspost-internet-header/{p-30be319e.entry.js → p-26e94f0f.entry.js} +1 -1
  162. package/dist/swisspost-internet-header/{p-80c03198.entry.js → p-26f99143.entry.js} +1 -1
  163. package/dist/swisspost-internet-header/{p-664cacb4.entry.js → p-27b2a48e.entry.js} +1 -1
  164. package/dist/swisspost-internet-header/{p-1aaa2b5b.entry.js → p-2affed30.entry.js} +1 -1
  165. package/dist/swisspost-internet-header/{p-ce4e20c6.entry.js → p-2bbec1fa.entry.js} +1 -1
  166. package/dist/swisspost-internet-header/{p-d8c35ad7.system.entry.js → p-31b363d3.system.entry.js} +1 -1
  167. package/dist/swisspost-internet-header/{p-2bd9d12d.entry.js → p-324bb578.entry.js} +1 -1
  168. package/dist/swisspost-internet-header/{p-4e8fbe60.system.entry.js → p-324f6a1d.system.entry.js} +1 -1
  169. package/dist/swisspost-internet-header/{p-367bb89f.entry.js → p-32d8756e.entry.js} +1 -1
  170. package/dist/swisspost-internet-header/{p-a017f91d.system.entry.js → p-38b3e48b.system.entry.js} +1 -1
  171. package/dist/swisspost-internet-header/p-3b5b5f43.entry.js +1 -0
  172. package/dist/swisspost-internet-header/{p-d763cf81.entry.js → p-3ce5350e.entry.js} +1 -1
  173. package/dist/swisspost-internet-header/p-3e0d2f8e.entry.js +1 -0
  174. package/dist/swisspost-internet-header/p-3fb06291.entry.js +1 -0
  175. package/dist/swisspost-internet-header/{p-aebd16d2.system.entry.js → p-4615095e.system.entry.js} +1 -1
  176. package/dist/swisspost-internet-header/p-468c06f1.system.entry.js +1 -0
  177. package/dist/swisspost-internet-header/{p-e83fb5f9.system.entry.js → p-48b9d8af.system.entry.js} +1 -1
  178. package/dist/swisspost-internet-header/{p-fb22f9cc.system.entry.js → p-51c1b282.system.entry.js} +1 -1
  179. package/dist/swisspost-internet-header/{p-0bffd1b3.system.entry.js → p-522b6a34.system.entry.js} +1 -1
  180. package/dist/swisspost-internet-header/{p-2fa843b1.entry.js → p-53627d54.entry.js} +1 -1
  181. package/dist/swisspost-internet-header/{p-94b12111.system.entry.js → p-56b1fbff.system.entry.js} +1 -1
  182. package/dist/swisspost-internet-header/{p-f4ee9401.system.entry.js → p-5937df91.system.entry.js} +1 -1
  183. package/dist/swisspost-internet-header/{p-0cfd71fd.entry.js → p-5c73925e.entry.js} +1 -1
  184. package/dist/swisspost-internet-header/{p-4ade4bc8.system.entry.js → p-62e15c37.system.entry.js} +1 -1
  185. package/dist/swisspost-internet-header/{p-a8d713f0.system.entry.js → p-6dd426a3.system.entry.js} +1 -1
  186. package/dist/swisspost-internet-header/{p-ec5c1d1a.system.entry.js → p-6df1fef1.system.entry.js} +1 -1
  187. package/dist/swisspost-internet-header/{p-d230f557.system.entry.js → p-701461bc.system.entry.js} +1 -1
  188. package/dist/swisspost-internet-header/{p-50cd7954.entry.js → p-715fd00a.entry.js} +1 -1
  189. package/dist/swisspost-internet-header/{p-a4a7d445.system.entry.js → p-77075637.system.entry.js} +1 -1
  190. package/dist/swisspost-internet-header/{p-a0a9f632.entry.js → p-77955468.entry.js} +1 -1
  191. package/dist/swisspost-internet-header/{p-fa3bf2b6.entry.js → p-7a4d48c8.entry.js} +1 -1
  192. package/dist/swisspost-internet-header/{p-157333c4.system.entry.js → p-7e85acba.system.entry.js} +1 -1
  193. package/dist/swisspost-internet-header/{p-cc32910f.entry.js → p-89dbe69c.entry.js} +1 -1
  194. package/dist/swisspost-internet-header/{p-f89053da.entry.js → p-8aec6b71.entry.js} +1 -1
  195. package/dist/swisspost-internet-header/{p-658cdc8b.system.entry.js → p-8f560878.system.entry.js} +1 -1
  196. package/dist/swisspost-internet-header/{p-0432ea2e.entry.js → p-9119d1d2.entry.js} +1 -1
  197. package/dist/swisspost-internet-header/{p-6902ba81.entry.js → p-941c9d63.entry.js} +1 -1
  198. package/dist/swisspost-internet-header/p-9482fbdf.system.entry.js +1 -0
  199. package/dist/swisspost-internet-header/{p-53ab8bd7.entry.js → p-9510033c.entry.js} +1 -1
  200. package/dist/swisspost-internet-header/{p-d424deaf.system.entry.js → p-9bead48d.system.entry.js} +1 -1
  201. package/dist/swisspost-internet-header/{p-fbb8f147.system.entry.js → p-9dbc65e6.system.entry.js} +1 -1
  202. package/dist/swisspost-internet-header/{p-DaXn118n.system.js → p-B2xXTEH5.system.js} +1 -1
  203. package/dist/swisspost-internet-header/{p-EbHv-NGg.js → p-B86vJMfc.js} +1 -1
  204. package/dist/swisspost-internet-header/{p-C-jY5kgj.system.js → p-CUgd8XDw.system.js} +1 -1
  205. package/dist/swisspost-internet-header/{p-Bz5HDsjW.system.js → p-CVe9fdUw.system.js} +1 -1
  206. package/dist/swisspost-internet-header/p-D9jUbrFT.js +1 -0
  207. package/dist/swisspost-internet-header/p-R5BnOD0U.system.js +1 -1
  208. package/dist/swisspost-internet-header/{p-f33c08e6.entry.js → p-a2b590f1.entry.js} +1 -1
  209. package/dist/swisspost-internet-header/p-a3640c54.entry.js +1 -0
  210. package/dist/swisspost-internet-header/p-a5c32bd3.entry.js +1 -0
  211. package/dist/swisspost-internet-header/{p-217899fe.system.entry.js → p-a79db979.system.entry.js} +1 -1
  212. package/dist/swisspost-internet-header/{p-04d92bd1.entry.js → p-abd1654a.entry.js} +1 -1
  213. package/dist/swisspost-internet-header/{p-80860b2a.entry.js → p-b266f922.entry.js} +1 -1
  214. package/dist/swisspost-internet-header/{p-3a69d97a.system.entry.js → p-b67b88ee.system.entry.js} +1 -1
  215. package/dist/swisspost-internet-header/{p-04cf59e4.system.entry.js → p-b6f7469f.system.entry.js} +1 -1
  216. package/dist/swisspost-internet-header/{p-8630a05f.entry.js → p-b98bd035.entry.js} +1 -1
  217. package/dist/swisspost-internet-header/{p-3c55978f.entry.js → p-b9e4f3a1.entry.js} +1 -1
  218. package/dist/swisspost-internet-header/{p-6e338cb9.entry.js → p-ba60d0f6.entry.js} +1 -1
  219. package/dist/swisspost-internet-header/{p-980d6e7d.entry.js → p-c792d22e.entry.js} +1 -1
  220. package/dist/swisspost-internet-header/{p-82316b5a.system.entry.js → p-ce4549eb.system.entry.js} +1 -1
  221. package/dist/swisspost-internet-header/{p-d3e5d8ab.system.entry.js → p-d102dd8f.system.entry.js} +1 -1
  222. package/dist/swisspost-internet-header/{p-e6e3e2a1.system.entry.js → p-d586b0b6.system.entry.js} +1 -1
  223. package/dist/swisspost-internet-header/{p-946e0d66.entry.js → p-dbe1d696.entry.js} +1 -1
  224. package/dist/swisspost-internet-header/{p-8429a0f8.system.entry.js → p-e053e1b5.system.entry.js} +1 -1
  225. package/dist/swisspost-internet-header/{p-17257472.system.entry.js → p-e4b30e68.system.entry.js} +1 -1
  226. package/dist/swisspost-internet-header/{p-9d69f71c.system.entry.js → p-e711377e.system.entry.js} +1 -1
  227. package/dist/swisspost-internet-header/{p-d121eed9.system.entry.js → p-e9c6db2d.system.entry.js} +1 -1
  228. package/dist/swisspost-internet-header/{p-4ee32cba.system.entry.js → p-ea3a2c74.system.entry.js} +1 -1
  229. package/dist/swisspost-internet-header/{p-5507b066.entry.js → p-f5bc81a7.entry.js} +1 -1
  230. package/dist/swisspost-internet-header/{p-dfcbf2ae.system.entry.js → p-f917f79a.system.entry.js} +1 -1
  231. package/dist/swisspost-internet-header/{p-8e1f9fe7.entry.js → p-fc839150.entry.js} +1 -1
  232. package/dist/swisspost-internet-header/{p-2992eede.system.entry.js → p-fcf9da41.system.entry.js} +1 -1
  233. package/dist/swisspost-internet-header/{p-9b476cbf.system.entry.js → p-fde0e9e3.system.entry.js} +1 -1
  234. package/dist/swisspost-internet-header/{p-f18ed6ce.entry.js → p-ff4b3e95.entry.js} +1 -1
  235. package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
  236. package/dist/types/components/post-internet-header/post-internet-header.d.ts +9 -0
  237. package/dist/types/data/store.d.ts +1 -0
  238. package/dist/types/services/alternate-link.service.d.ts +13 -0
  239. package/package.json +4 -4
  240. package/dist/esm-es5/package-YQBh4peU.js +0 -1
  241. package/dist/swisspost-internet-header/p-311b1a06.system.entry.js +0 -1
  242. package/dist/swisspost-internet-header/p-37a651ba.system.entry.js +0 -1
  243. package/dist/swisspost-internet-header/p-8499b019.system.entry.js +0 -1
  244. package/dist/swisspost-internet-header/p-YQBh4peU.js +0 -1
  245. package/dist/swisspost-internet-header/p-b97832aa.entry.js +0 -1
  246. package/dist/swisspost-internet-header/p-c98897dc.entry.js +0 -1
  247. package/dist/swisspost-internet-header/p-d6521b69.entry.js +0 -1
  248. package/dist/swisspost-internet-header/p-eb2210a4.entry.js +0 -1
  249. package/dist/swisspost-internet-header/p-f7b1f331.entry.js +0 -1
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,r){function s(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function n(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r["throw"](t))}catch(t){o(t)}}function c(t){t.done?i(t.value):s(t.value).then(n,a)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,s,o,n=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return n.next=a(0),n["throw"]=a(1),n["return"]=a(2),typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function a(t){return function(e){return c([t,e])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,a[0]&&(i=0)),i)try{if(r=1,s&&(o=a[0]&2?s["return"]:a[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,a[1])).done)return o;if(s=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;s=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];s=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-h3opCZqH.js";import{v as version}from"./package-YQBh4peU.js";import{c as componentOnReady}from"./component-on-ready-lpWRZjJp.js";import{f as fade}from"./fade-DsgPYmAa.js";import{O as OneOf}from"./one-of-w2eXPAzD.js";import{T as Type}from"./type-Daxpt5v6.js";import"./utils-CoDiS_Ik.js";import"./create-validator-decorator--a-qkYfP.js";var postTabsCss=function(){return':host{display:block}:host .tabs-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .tabs-wrapper button.scroll-btn{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:background-color 100ms,border-color 100ms,color 100ms;transition:background-color 100ms,border-color 100ms,color 100ms;cursor:pointer}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn{background-color:ButtonFace !important}:host .tabs-wrapper button.scroll-btn:hover{background-color:Highlight !important}}:host .tabs-wrapper button.scroll-btn post-icon{color:currentColor}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn post-icon{color:Highlight}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:hover post-icon{color:canvas}}:host .tabs-wrapper button.scroll-btn[hidden]{display:none}:host .tabs-wrapper button.scroll-btn{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;outline-offset:calc(var(--post-device-spacing-padding-28) + -1*var(--post-device-border-width-default)) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){-webkit-transition:none;transition:none}:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus):hover{color:HighlightText;border-color:HighlightText}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;outline-offset:calc(var(--post-device-spacing-padding-28) + -1*var(--post-device-border-width-default)) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:focus-within,.pretend-focus){-webkit-transition:none;transition:none}:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:focus-within,.pretend-focus):hover{color:HighlightText;border-color:HighlightText}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}:host .tabs-wrapper .tabs{overflow-x:hidden;background-color:rgba(0,0,0,0) !important;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:end;align-items:end;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;-webkit-padding-start:0;padding-inline-start:0;list-style:none}:host(.page-tabs){overflow:visible !important}:host(.page-tabs) .tabs-wrapper{margin-inline:calc(-1*(var(--post-container-offset)))}:host(.page-tabs) .tabs-wrapper button.scroll-btn{color:var(--post-scheme-color-interactive-primary-enabled-fg5);background-color:var(--post-scheme-color-interactive-primary-enabled-bg5);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke);position:absolute;z-index:2;-webkit-box-shadow:var(--post-device-elevation-200);box-shadow:var(--post-device-elevation-200);border-radius:var(--post-device-border-radius-2)}:host(.page-tabs) .tabs-wrapper button.scroll-btn:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke) !important;color:var(--post-scheme-color-interactive-primary-hover-fg4);background-color:var(--post-scheme-color-interactive-primary-hover-bg8)}:host(.page-tabs) .tabs-wrapper button.scroll-btn.scroll-btn-left{inset-inline-start:0;-webkit-border-start:none;border-inline-start:none;border-radius:0 var(--post-device-border-radius-2) var(--post-device-border-radius-2) 0}:host(.page-tabs) .tabs-wrapper button.scroll-btn.scroll-btn-right{inset-inline-end:0;-webkit-border-end:none;border-inline-end:none;border-radius:var(--post-device-border-radius-2) 0 0 var(--post-device-border-radius-2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(.page-tabs) .tabs-wrapper button.scroll-btn.scroll-btn{background-color:Highlight;color:HighlightText}}:host(.page-tabs) .tabs-wrapper::after{content:"";position:absolute;inset-block-end:0;inset-inline-start:0;width:100%;height:var(--post-device-border-width-default);background-color:var(--post-palette-color-nested-tabs-page-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(.page-tabs) .tabs-wrapper::after{background-color:LinkText}}:host(.page-tabs) .tabs-wrapper .tabs{padding-inline:calc(var(--post-container-offset));gap:var(--post-device-spacing-gap-inline-5);scrollbar-width:none}:host(.page-tabs) .tabs-wrapper .tabs::-webkit-scrollbar{display:none}:host(.page-tabs:not([size=small])) button.scroll-btn{top:var(--post-device-spacing-padding-block-35)}:host(.page-tabs[size=small]) button.scroll-btn{top:var(--post-device-spacing-padding-block-8)}:host(.content-tabs) .tabs-wrapper button.scroll-btn{-ms-flex-negative:0;flex-shrink:0;color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}:host(.content-tabs) .tabs-wrapper button.scroll-btn:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke) !important;color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(.content-tabs) .tabs-wrapper button.scroll-btn:hover{color:HighlightText}}:host(post-tabs:not([size=small])) button.scroll-btn{height:var(--post-device-sizing-interactive-button-height-10);width:var(--post-device-sizing-interactive-button-width-1);border-radius:var(--post-device-border-radius-2)}:host(post-tabs:not([size=small])) button.scroll-btn post-icon{height:var(--post-device-sizing-interactive-icon-size5);width:var(--post-device-sizing-interactive-icon-size5)}:host(.page-tabs:not([size=small])) button.scroll-btn-left{padding-inline:var(--post-device-spacing-padding-38) var(--post-device-spacing-padding-39)}:host(.page-tabs:not([size=small])) button.scroll-btn-right{padding-inline:var(--post-device-spacing-padding-39) var(--post-device-spacing-padding-38)}:host([size=small]) button.scroll-btn{height:var(--post-device-sizing-interactive-button-size-1);width:var(--post-device-sizing-interactive-button-size-1);border-radius:var(--post-device-border-radius-2)}:host([size=small]) button.scroll-btn post-icon{height:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4)}:host(.page-tabs[size=small]) button.scroll-btn-left{padding-inline:var(--post-device-spacing-padding-41) var(--post-device-spacing-padding-42)}:host(.page-tabs[size=small]) button.scroll-btn-right{padding-inline:var(--post-device-spacing-padding-42) var(--post-device-spacing-padding-41)}'};var __decorate=undefined&&undefined.__decorate||function(t,e,i,r){var s=arguments.length,o=s<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)if(n=t[a])o=(s<3?n(o):s>3?n(e,i,o):n(e,i))||o;return s>3&&o&&Object.defineProperty(e,i,o),o};var PostTabs=function(){function t(t){var e=this;registerInstance(this,t);this.postChange=createEvent(this,"postChange");this.showing=null;this.hiding=null;this.isLoaded=false;this.isPagesVariant=false;this.showLeftScrollButton=false;this.showRightScrollButton=false;this.textPrevTabItems="Previous tab items";this.textNextTabItems="Next tab items";this.size="large";this.updateScrollButtons=function(){if(!e.tabsContainer)return;var t=getComputedStyle(e.tabsContainer);var i=Number.parseFloat(t.paddingInlineStart)||0;var r=Number.parseFloat(t.paddingInlineEnd)||0;var s=e.tabsContainer.clientWidth-i-r;var o=e.tabsContainer.scrollWidth-i-r;e.showLeftScrollButton=e.tabsContainer.scrollLeft>0;e.showRightScrollButton=e.tabsContainer.scrollLeft+s<o}}Object.defineProperty(t.prototype,"tabs",{get:function(){var t=this;return Array.from(this.host.querySelectorAll("post-tab-item")).filter((function(e){return e.closest("post-tabs")===t.host}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"panels",{get:function(){var t=this;return Array.from(this.host.querySelectorAll("post-tab-panel")).filter((function(e){return e.closest("post-tabs")===t.host}))},enumerable:false,configurable:true});t.prototype.validateLabel=function(){if(this.isPagesVariant&&!this.label){console.error("[".concat(this.host.localName,'] Property "label" is required in Pages variant. Received: ').concat(JSON.stringify(this.label),"."),this.host)}};t.prototype.componentWillRender=function(){this.detectVariant()};t.prototype.componentDidLoad=function(){var t;this.leftScrollButton.ariaControlsElements=[this.tabsContainer];this.rightScrollButton.ariaControlsElements=[this.tabsContainer];this.moveMisplacedTabs();this.moveMisplacedPanels();this.enableTabs();this.handleScrollButtons();this.setupContentObserver();this.setupResizeObserver();this.validateLabel();if(this.isPagesVariant){var e=this.findActivePagesTab();if(e){this.activateTab(e);this.scrollTabIntoView(e)}}else{var i=this.activeTab||((t=this.tabs[0])===null||t===void 0?void 0:t.name);if(i){void this.show(i);var e=this.tabs.find((function(t){return t.name===i}));if(e)this.scrollTabIntoView(e)}}this.isLoaded=true};t.prototype.disconnectedCallback=function(){var t,e,i;if(this.showing){this.showing.cancel();this.showing=null}if(this.hiding){this.hiding.cancel();this.hiding=null}if(this.contentObserver){(t=this.contentObserver)===null||t===void 0?void 0:t.disconnect()}(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();(i=this.tabsContainer)===null||i===void 0?void 0:i.removeEventListener("scroll",this.updateScrollButtons)};t.prototype.setupContentObserver=function(){var t;var e={childList:true,subtree:true,attributes:true,attributeFilter:["data-pages-variant","aria-current"]};this.contentObserver=new MutationObserver(this.handleContentChange.bind(this));(t=this.contentObserver)===null||t===void 0?void 0:t.observe(this.host,e)};t.prototype.setupResizeObserver=function(){this.resizeObserver=new ResizeObserver(this.updateScrollButtons);this.resizeObserver.observe(this.tabsContainer)};t.prototype.handleContentChange=function(t){var e=this.shouldRedetectVariant(t);var i=this.hasAriaCurrentChanged(t);if(i&&this.isPagesVariant){this.updateActivePagesTab()}if(e){this.handleVariantChange()}this.updateScrollButtons()};t.prototype.shouldRedetectVariant=function(t){return t.some((function(t){if(t.type==="childList"){return t.addedNodes.length>0||t.removedNodes.length>0}if(t.type==="attributes"&&t.attributeName==="data-pages-variant"){return true}return false}))};t.prototype.hasAriaCurrentChanged=function(t){return t.some((function(t){return t.type==="attributes"&&t.attributeName==="aria-current"}))};t.prototype.updateActivePagesTab=function(){var t=this.findActivePagesTab();if(t&&t!==this.currentActiveTab){this.activateTab(t);this.scrollTabIntoView(t,"smooth")}};t.prototype.handleVariantChange=function(){var t=this.isPagesVariant;this.detectVariant();if(t!==this.isPagesVariant){this.enableTabs();this.initializeActiveTab()}};t.prototype.initializeActiveTab=function(){var t;if(this.isPagesVariant){var e=this.findActivePagesTab();if(e){this.activateTab(e);this.scrollTabIntoView(e)}}else{var i=this.activeTab||((t=this.tabs[0])===null||t===void 0?void 0:t.name);if(i){void this.show(i)}}};t.prototype.detectVariant=function(){var t=this.tabs.some((function(t){var e=t.querySelector("a")!==null;var i=t.dataset.pagesVariant==="true";return e||i}));var e=this.panels.length>0;if(t&&e){throw new Error("PostTabs: Mixed mode detected. Cannot use both Page Tabs (anchor elements) and Content Tabs (post-tab-panel elements) variants at the same time.")}this.isPagesVariant=t;this.host.classList.remove("page-tabs","content-tabs");if(this.isPagesVariant){this.host.classList.add("page-tabs")}else{this.host.classList.add("content-tabs")}};t.prototype.findActivePagesTab=function(){return this.tabs.find((function(t){var e=t.querySelector('a[aria-current="page"]');return e!==null}))||null};t.prototype.show=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r;var s;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,3,,4]);if(t===((s=this.currentActiveTab)===null||s===void 0?void 0:s.name)){return[2]}e=this.currentActiveTab;i=this.host.querySelector('post-tab-item[name="'.concat(t,'"]'));if(!i)return[2];this.activateTab(i);this.scrollTabIntoView(i,"smooth");if(this.showing){this.showing.finish();this.showing=null}if(e&&!this.showing&&!this.hiding)this.hidePanel(e.name);return[4,this.awaitAnimation(this.hiding)];case 1:if(o.sent())return[2];this.showSelectedPanel();return[4,this.awaitAnimation(this.showing)];case 2:if(o.sent())return[2];if(this.isLoaded&&this.currentActiveTab)this.postChange.emit(this.currentActiveTab.name);return[3,4];case 3:r=o.sent();if(this.isAbortError(r))return[2];throw r;case 4:return[2]}}))}))};t.prototype.awaitAnimation=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:if(!t)return[2,false];i.label=1;case 1:i.trys.push([1,3,,4]);return[4,t.finished];case 2:i.sent();return[2,false];case 3:e=i.sent();if(this.isAbortError(e))return[2,true];throw e;case 4:return[2]}}))}))};t.prototype.isAbortError=function(t){return(t instanceof DOMException||t instanceof Error)&&t.name==="AbortError"};t.prototype.moveMisplacedTabs=function(){if(!this.tabs)return;this.tabs.forEach((function(t){if(t.getAttribute("slot")){t.removeAttribute("slot")}}))};t.prototype.moveMisplacedPanels=function(){if(!this.panels)return;this.panels.forEach((function(t){if(t.getAttribute("slot")!=="panels"){t.setAttribute("slot","panels")}}))};t.prototype.enableTabs=function(){var t=this;var e;if(!this.tabs)return;this.tabs.forEach((function(e){return __awaiter(t,void 0,void 0,(function(){var t;var i=this;return __generator(this,(function(r){switch(r.label){case 0:return[4,componentOnReady(e)];case 1:r.sent();if(this.isPagesVariant){return[2]}if(e.getAttribute("aria-controls"))return[2];t=this.getPanel(e.name);if(t){e.setAttribute("aria-controls",t.id);t.setAttribute("aria-labelledby",e.id)}e.addEventListener("click",(function(){void i.show(e.name)}));e.addEventListener("keydown",(function(t){if(t.key==="Enter"||t.key===" "){t.preventDefault();void i.show(e.name)}if(t.key!=="Home"&&t.key!=="End")return;t.preventDefault();var r=i.tabs.filter((function(t){return!t.hasAttribute("disabled")}));if(r.length===0)return;var s=t.key==="Home"?r[0]:r.at(-1);if(s){s===null||s===void 0?void 0:s.focus();void i.show(s.name)}}));e.addEventListener("keydown",(function(t){if(t.key==="ArrowRight"||t.key==="ArrowLeft")i.navigateTabs(e,t.key)}));return[2]}}))}))}));if(this.currentActiveTab&&!this.currentActiveTab.isConnected){void this.show((e=this.tabs[0])===null||e===void 0?void 0:e.name)}};t.prototype.activateTab=function(t){if(this.currentActiveTab){if(!this.isPagesVariant){this.currentActiveTab.setAttribute("aria-selected","false");this.currentActiveTab.setAttribute("tabindex","-1")}}if(!this.isPagesVariant){t.setAttribute("aria-selected","true");t.setAttribute("tabindex","0")}this.currentActiveTab=t};t.prototype.hidePanel=function(t){var e=this;var i=this.getPanel(t);if(!i)return;this.hiding=fade(i,"out");this.hiding.onfinish=function(){i.style.display="none";e.hiding=null}};t.prototype.showSelectedPanel=function(){var t=this;if(!this.currentActiveTab)return;var e=this.getPanel(this.currentActiveTab.name);if(!e)return;e.style.display="block";if(!this.isLoaded)return;this.showing=fade(e,"in");this.showing.onfinish=function(){t.showing=null}};t.prototype.getPanel=function(t){return this.host.querySelector("post-tab-panel[for=".concat(t,"]"))};t.prototype.navigateTabs=function(t,e){var i=Array.from(this.tabs).indexOf(t);var r;if(e==="ArrowRight"){r=this.tabs[i+1]||this.tabs[0]}else{r=this.tabs[i-1]||this.tabs.at(-1)}if(!r)return;r.focus();void this.show(r.name)};t.prototype.scrollTabs=function(t){var e=t==="prev"?-1:1;var i=getComputedStyle(this.tabsContainer);var r=Number.parseFloat(i.paddingInlineStart)||0;var s=Number.parseFloat(i.paddingInlineEnd)||0;var o=this.tabsContainer.clientWidth-r-s;this.tabsContainer.scrollBy({left:e*o,behavior:"smooth"})};t.prototype.scrollTabIntoView=function(t,e){if(e===void 0){e="instant"}var i=this.tabsContainer;var r=getComputedStyle(i);var s=Number.parseFloat(r.paddingInlineStart)||0;var o=Number.parseFloat(r.paddingInlineEnd)||0;var n=t.offsetLeft;var a=n+t.offsetWidth;var c=i.scrollLeft+s;var l=c+i.clientWidth-s-o;if(n<c){i.scrollTo({left:n-s,behavior:e})}else if(a>l){i.scrollTo({left:a-i.clientWidth+o,behavior:e})}};t.prototype.handleScrollButtons=function(){this.updateScrollButtons();this.tabsContainer.addEventListener("scroll",this.updateScrollButtons)};t.prototype.render=function(){var t=this;var e=this.isPagesVariant?"nav":"div";var i=undefined;return h(Host,{key:"0520b7aba909495feef9358b2e572f767e42dce2","data-version":version,style:i},h("div",{key:"779d35686ab406d8b60b595aea6ca67eb5b7d82a",class:"tabs-wrapper",part:"post-tabs"},h("button",{key:"2be9734aa1389baf48901e1eafe759f887ed9490",ref:function(e){return t.leftScrollButton=e},class:"scroll-btn scroll-btn-left",type:"button","aria-label":this.textPrevTabItems,tabindex:this.showLeftScrollButton?0:-1,hidden:!this.showLeftScrollButton,onClick:function(){return t.scrollTabs("prev")}},h("post-icon",{key:"ca6b0acaef9179468737d3669acbc61dfb709657",name:"chevronleft"})),h(e,{key:"df8d1f5ca66b86baeb13123459059f1f399f5383",ref:function(e){return t.tabsContainer=e},class:"tabs",role:this.isPagesVariant?undefined:"tablist","aria-label":this.isPagesVariant?this.label:undefined},h("slot",{key:"e9c618d1f018381f37c0b46aea741abe797d7e37",onSlotchange:function(){t.moveMisplacedTabs();t.enableTabs()}})),h("button",{key:"79e0ad08c240f251e5805d71319d6ce32d843367",ref:function(e){return t.rightScrollButton=e},class:"scroll-btn scroll-btn-right",type:"button","aria-label":this.textNextTabItems,tabindex:this.showRightScrollButton?0:-1,hidden:!this.showRightScrollButton,onClick:function(){return t.scrollTabs("next")}},h("post-icon",{key:"491fc9c7746896d9a140fa6cbb97a432ff174ca3",name:"chevronright"}))),!this.isPagesVariant&&h("div",{key:"04839eb63e75923e733ec4eea84cd345ae480e70",class:"tab-content",part:"post-tabs-content"},h("slot",{key:"64483606952f79810e7a24105f5c9f822180b6ca",name:"panels",onSlotchange:function(){return t.moveMisplacedPanels()}})))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{label:[{validateLabel:0}]}},enumerable:false,configurable:true});return t}();__decorate([OneOf(["small","large"])],PostTabs.prototype,"size",void 0);__decorate([Type("string")],PostTabs.prototype,"label",void 0);PostTabs.style=postTabsCss();export{PostTabs as post_tabs};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,r){function s(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function n(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r["throw"](t))}catch(t){o(t)}}function c(t){t.done?i(t.value):s(t.value).then(n,a)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,s,o,n=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return n.next=a(0),n["throw"]=a(1),n["return"]=a(2),typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function a(t){return function(e){return c([t,e])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,a[0]&&(i=0)),i)try{if(r=1,s&&(o=a[0]&2?s["return"]:a[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,a[1])).done)return o;if(s=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;s=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];s=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-h3opCZqH.js";import{v as version}from"./package-D9jUbrFT.js";import{c as componentOnReady}from"./component-on-ready-lpWRZjJp.js";import{f as fade}from"./fade-DsgPYmAa.js";import{O as OneOf}from"./one-of-w2eXPAzD.js";import{T as Type}from"./type-Daxpt5v6.js";import"./utils-CoDiS_Ik.js";import"./create-validator-decorator--a-qkYfP.js";var postTabsCss=function(){return':host{display:block}:host .tabs-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .tabs-wrapper button.scroll-btn{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:background-color 100ms,border-color 100ms,color 100ms;transition:background-color 100ms,border-color 100ms,color 100ms;cursor:pointer}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn{background-color:ButtonFace !important}:host .tabs-wrapper button.scroll-btn:hover{background-color:Highlight !important}}:host .tabs-wrapper button.scroll-btn post-icon{color:currentColor}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn post-icon{color:Highlight}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:hover post-icon{color:canvas}}:host .tabs-wrapper button.scroll-btn[hidden]{display:none}:host .tabs-wrapper button.scroll-btn{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;outline-offset:calc(var(--post-device-spacing-padding-28) + -1*var(--post-device-border-width-default)) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){-webkit-transition:none;transition:none}:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus):hover{color:HighlightText;border-color:HighlightText}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;outline-offset:calc(var(--post-device-spacing-padding-28) + -1*var(--post-device-border-width-default)) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:focus-within,.pretend-focus){-webkit-transition:none;transition:none}:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:focus-within,.pretend-focus):hover{color:HighlightText;border-color:HighlightText}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .tabs-wrapper button.scroll-btn:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}:host .tabs-wrapper .tabs{overflow-x:hidden;background-color:rgba(0,0,0,0) !important;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:end;align-items:end;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;-webkit-padding-start:0;padding-inline-start:0;list-style:none}:host(.page-tabs){overflow:visible !important}:host(.page-tabs) .tabs-wrapper{margin-inline:calc(-1*(var(--post-container-offset)))}:host(.page-tabs) .tabs-wrapper button.scroll-btn{color:var(--post-scheme-color-interactive-primary-enabled-fg5);background-color:var(--post-scheme-color-interactive-primary-enabled-bg5);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke);position:absolute;z-index:2;-webkit-box-shadow:var(--post-device-elevation-200);box-shadow:var(--post-device-elevation-200);border-radius:var(--post-device-border-radius-2)}:host(.page-tabs) .tabs-wrapper button.scroll-btn:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke) !important;color:var(--post-scheme-color-interactive-primary-hover-fg4);background-color:var(--post-scheme-color-interactive-primary-hover-bg8)}:host(.page-tabs) .tabs-wrapper button.scroll-btn.scroll-btn-left{inset-inline-start:0;-webkit-border-start:none;border-inline-start:none;border-radius:0 var(--post-device-border-radius-2) var(--post-device-border-radius-2) 0}:host(.page-tabs) .tabs-wrapper button.scroll-btn.scroll-btn-right{inset-inline-end:0;-webkit-border-end:none;border-inline-end:none;border-radius:var(--post-device-border-radius-2) 0 0 var(--post-device-border-radius-2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(.page-tabs) .tabs-wrapper button.scroll-btn.scroll-btn{background-color:Highlight;color:HighlightText}}:host(.page-tabs) .tabs-wrapper::after{content:"";position:absolute;inset-block-end:0;inset-inline-start:0;width:100%;height:var(--post-device-border-width-default);background-color:var(--post-palette-color-nested-tabs-page-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(.page-tabs) .tabs-wrapper::after{background-color:LinkText}}:host(.page-tabs) .tabs-wrapper .tabs{padding-inline:calc(var(--post-container-offset));gap:var(--post-device-spacing-gap-inline-5);scrollbar-width:none}:host(.page-tabs) .tabs-wrapper .tabs::-webkit-scrollbar{display:none}:host(.page-tabs:not([size=small])) button.scroll-btn{top:var(--post-device-spacing-padding-block-35)}:host(.page-tabs[size=small]) button.scroll-btn{top:var(--post-device-spacing-padding-block-8)}:host(.content-tabs) .tabs-wrapper button.scroll-btn{-ms-flex-negative:0;flex-shrink:0;color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}:host(.content-tabs) .tabs-wrapper button.scroll-btn:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke) !important;color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(.content-tabs) .tabs-wrapper button.scroll-btn:hover{color:HighlightText}}:host(post-tabs:not([size=small])) button.scroll-btn{height:var(--post-device-sizing-interactive-button-height-10);width:var(--post-device-sizing-interactive-button-width-1);border-radius:var(--post-device-border-radius-2)}:host(post-tabs:not([size=small])) button.scroll-btn post-icon{height:var(--post-device-sizing-interactive-icon-size5);width:var(--post-device-sizing-interactive-icon-size5)}:host(.page-tabs:not([size=small])) button.scroll-btn-left{padding-inline:var(--post-device-spacing-padding-38) var(--post-device-spacing-padding-39)}:host(.page-tabs:not([size=small])) button.scroll-btn-right{padding-inline:var(--post-device-spacing-padding-39) var(--post-device-spacing-padding-38)}:host([size=small]) button.scroll-btn{height:var(--post-device-sizing-interactive-button-size-1);width:var(--post-device-sizing-interactive-button-size-1);border-radius:var(--post-device-border-radius-2)}:host([size=small]) button.scroll-btn post-icon{height:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4)}:host(.page-tabs[size=small]) button.scroll-btn-left{padding-inline:var(--post-device-spacing-padding-41) var(--post-device-spacing-padding-42)}:host(.page-tabs[size=small]) button.scroll-btn-right{padding-inline:var(--post-device-spacing-padding-42) var(--post-device-spacing-padding-41)}'};var __decorate=undefined&&undefined.__decorate||function(t,e,i,r){var s=arguments.length,o=s<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)if(n=t[a])o=(s<3?n(o):s>3?n(e,i,o):n(e,i))||o;return s>3&&o&&Object.defineProperty(e,i,o),o};var PostTabs=function(){function t(t){var e=this;registerInstance(this,t);this.postChange=createEvent(this,"postChange");this.showing=null;this.hiding=null;this.isLoaded=false;this.isPagesVariant=false;this.showLeftScrollButton=false;this.showRightScrollButton=false;this.textPrevTabItems="Previous tab items";this.textNextTabItems="Next tab items";this.size="large";this.updateScrollButtons=function(){if(!e.tabsContainer)return;var t=getComputedStyle(e.tabsContainer);var i=Number.parseFloat(t.paddingInlineStart)||0;var r=Number.parseFloat(t.paddingInlineEnd)||0;var s=e.tabsContainer.clientWidth-i-r;var o=e.tabsContainer.scrollWidth-i-r;e.showLeftScrollButton=e.tabsContainer.scrollLeft>0;e.showRightScrollButton=e.tabsContainer.scrollLeft+s<o}}Object.defineProperty(t.prototype,"tabs",{get:function(){var t=this;return Array.from(this.host.querySelectorAll("post-tab-item")).filter((function(e){return e.closest("post-tabs")===t.host}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"panels",{get:function(){var t=this;return Array.from(this.host.querySelectorAll("post-tab-panel")).filter((function(e){return e.closest("post-tabs")===t.host}))},enumerable:false,configurable:true});t.prototype.validateLabel=function(){if(this.isPagesVariant&&!this.label){console.error("[".concat(this.host.localName,'] Property "label" is required in Pages variant. Received: ').concat(JSON.stringify(this.label),"."),this.host)}};t.prototype.componentWillRender=function(){this.detectVariant()};t.prototype.componentDidLoad=function(){var t;this.leftScrollButton.ariaControlsElements=[this.tabsContainer];this.rightScrollButton.ariaControlsElements=[this.tabsContainer];this.moveMisplacedTabs();this.moveMisplacedPanels();this.enableTabs();this.handleScrollButtons();this.setupContentObserver();this.setupResizeObserver();this.validateLabel();if(this.isPagesVariant){var e=this.findActivePagesTab();if(e){this.activateTab(e);this.scrollTabIntoView(e)}}else{var i=this.activeTab||((t=this.tabs[0])===null||t===void 0?void 0:t.name);if(i){void this.show(i);var e=this.tabs.find((function(t){return t.name===i}));if(e)this.scrollTabIntoView(e)}}this.isLoaded=true};t.prototype.disconnectedCallback=function(){var t,e,i;if(this.showing){this.showing.cancel();this.showing=null}if(this.hiding){this.hiding.cancel();this.hiding=null}if(this.contentObserver){(t=this.contentObserver)===null||t===void 0?void 0:t.disconnect()}(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();(i=this.tabsContainer)===null||i===void 0?void 0:i.removeEventListener("scroll",this.updateScrollButtons)};t.prototype.setupContentObserver=function(){var t;var e={childList:true,subtree:true,attributes:true,attributeFilter:["data-pages-variant","aria-current"]};this.contentObserver=new MutationObserver(this.handleContentChange.bind(this));(t=this.contentObserver)===null||t===void 0?void 0:t.observe(this.host,e)};t.prototype.setupResizeObserver=function(){this.resizeObserver=new ResizeObserver(this.updateScrollButtons);this.resizeObserver.observe(this.tabsContainer)};t.prototype.handleContentChange=function(t){var e=this.shouldRedetectVariant(t);var i=this.hasAriaCurrentChanged(t);if(i&&this.isPagesVariant){this.updateActivePagesTab()}if(e){this.handleVariantChange()}this.updateScrollButtons()};t.prototype.shouldRedetectVariant=function(t){return t.some((function(t){if(t.type==="childList"){return t.addedNodes.length>0||t.removedNodes.length>0}if(t.type==="attributes"&&t.attributeName==="data-pages-variant"){return true}return false}))};t.prototype.hasAriaCurrentChanged=function(t){return t.some((function(t){return t.type==="attributes"&&t.attributeName==="aria-current"}))};t.prototype.updateActivePagesTab=function(){var t=this.findActivePagesTab();if(t&&t!==this.currentActiveTab){this.activateTab(t);this.scrollTabIntoView(t,"smooth")}};t.prototype.handleVariantChange=function(){var t=this.isPagesVariant;this.detectVariant();if(t!==this.isPagesVariant){this.enableTabs();this.initializeActiveTab()}};t.prototype.initializeActiveTab=function(){var t;if(this.isPagesVariant){var e=this.findActivePagesTab();if(e){this.activateTab(e);this.scrollTabIntoView(e)}}else{var i=this.activeTab||((t=this.tabs[0])===null||t===void 0?void 0:t.name);if(i){void this.show(i)}}};t.prototype.detectVariant=function(){var t=this.tabs.some((function(t){var e=t.querySelector("a")!==null;var i=t.dataset.pagesVariant==="true";return e||i}));var e=this.panels.length>0;if(t&&e){throw new Error("PostTabs: Mixed mode detected. Cannot use both Page Tabs (anchor elements) and Content Tabs (post-tab-panel elements) variants at the same time.")}this.isPagesVariant=t;this.host.classList.remove("page-tabs","content-tabs");if(this.isPagesVariant){this.host.classList.add("page-tabs")}else{this.host.classList.add("content-tabs")}};t.prototype.findActivePagesTab=function(){return this.tabs.find((function(t){var e=t.querySelector('a[aria-current="page"]');return e!==null}))||null};t.prototype.show=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r;var s;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,3,,4]);if(t===((s=this.currentActiveTab)===null||s===void 0?void 0:s.name)){return[2]}e=this.currentActiveTab;i=this.host.querySelector('post-tab-item[name="'.concat(t,'"]'));if(!i)return[2];this.activateTab(i);this.scrollTabIntoView(i,"smooth");if(this.showing){this.showing.finish();this.showing=null}if(e&&!this.showing&&!this.hiding)this.hidePanel(e.name);return[4,this.awaitAnimation(this.hiding)];case 1:if(o.sent())return[2];this.showSelectedPanel();return[4,this.awaitAnimation(this.showing)];case 2:if(o.sent())return[2];if(this.isLoaded&&this.currentActiveTab)this.postChange.emit(this.currentActiveTab.name);return[3,4];case 3:r=o.sent();if(this.isAbortError(r))return[2];throw r;case 4:return[2]}}))}))};t.prototype.awaitAnimation=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:if(!t)return[2,false];i.label=1;case 1:i.trys.push([1,3,,4]);return[4,t.finished];case 2:i.sent();return[2,false];case 3:e=i.sent();if(this.isAbortError(e))return[2,true];throw e;case 4:return[2]}}))}))};t.prototype.isAbortError=function(t){return(t instanceof DOMException||t instanceof Error)&&t.name==="AbortError"};t.prototype.moveMisplacedTabs=function(){if(!this.tabs)return;this.tabs.forEach((function(t){if(t.getAttribute("slot")){t.removeAttribute("slot")}}))};t.prototype.moveMisplacedPanels=function(){if(!this.panels)return;this.panels.forEach((function(t){if(t.getAttribute("slot")!=="panels"){t.setAttribute("slot","panels")}}))};t.prototype.enableTabs=function(){var t=this;var e;if(!this.tabs)return;this.tabs.forEach((function(e){return __awaiter(t,void 0,void 0,(function(){var t;var i=this;return __generator(this,(function(r){switch(r.label){case 0:return[4,componentOnReady(e)];case 1:r.sent();if(this.isPagesVariant){return[2]}if(e.getAttribute("aria-controls"))return[2];t=this.getPanel(e.name);if(t){e.setAttribute("aria-controls",t.id);t.setAttribute("aria-labelledby",e.id)}e.addEventListener("click",(function(){void i.show(e.name)}));e.addEventListener("keydown",(function(t){if(t.key==="Enter"||t.key===" "){t.preventDefault();void i.show(e.name)}if(t.key!=="Home"&&t.key!=="End")return;t.preventDefault();var r=i.tabs.filter((function(t){return!t.hasAttribute("disabled")}));if(r.length===0)return;var s=t.key==="Home"?r[0]:r.at(-1);if(s){s===null||s===void 0?void 0:s.focus();void i.show(s.name)}}));e.addEventListener("keydown",(function(t){if(t.key==="ArrowRight"||t.key==="ArrowLeft")i.navigateTabs(e,t.key)}));return[2]}}))}))}));if(this.currentActiveTab&&!this.currentActiveTab.isConnected){void this.show((e=this.tabs[0])===null||e===void 0?void 0:e.name)}};t.prototype.activateTab=function(t){if(this.currentActiveTab){if(!this.isPagesVariant){this.currentActiveTab.setAttribute("aria-selected","false");this.currentActiveTab.setAttribute("tabindex","-1")}}if(!this.isPagesVariant){t.setAttribute("aria-selected","true");t.setAttribute("tabindex","0")}this.currentActiveTab=t};t.prototype.hidePanel=function(t){var e=this;var i=this.getPanel(t);if(!i)return;this.hiding=fade(i,"out");this.hiding.onfinish=function(){i.style.display="none";e.hiding=null}};t.prototype.showSelectedPanel=function(){var t=this;if(!this.currentActiveTab)return;var e=this.getPanel(this.currentActiveTab.name);if(!e)return;e.style.display="block";if(!this.isLoaded)return;this.showing=fade(e,"in");this.showing.onfinish=function(){t.showing=null}};t.prototype.getPanel=function(t){return this.host.querySelector("post-tab-panel[for=".concat(t,"]"))};t.prototype.navigateTabs=function(t,e){var i=Array.from(this.tabs).indexOf(t);var r;if(e==="ArrowRight"){r=this.tabs[i+1]||this.tabs[0]}else{r=this.tabs[i-1]||this.tabs.at(-1)}if(!r)return;r.focus();void this.show(r.name)};t.prototype.scrollTabs=function(t){var e=t==="prev"?-1:1;var i=getComputedStyle(this.tabsContainer);var r=Number.parseFloat(i.paddingInlineStart)||0;var s=Number.parseFloat(i.paddingInlineEnd)||0;var o=this.tabsContainer.clientWidth-r-s;this.tabsContainer.scrollBy({left:e*o,behavior:"smooth"})};t.prototype.scrollTabIntoView=function(t,e){if(e===void 0){e="instant"}var i=this.tabsContainer;var r=getComputedStyle(i);var s=Number.parseFloat(r.paddingInlineStart)||0;var o=Number.parseFloat(r.paddingInlineEnd)||0;var n=t.offsetLeft;var a=n+t.offsetWidth;var c=i.scrollLeft+s;var l=c+i.clientWidth-s-o;if(n<c){i.scrollTo({left:n-s,behavior:e})}else if(a>l){i.scrollTo({left:a-i.clientWidth+o,behavior:e})}};t.prototype.handleScrollButtons=function(){this.updateScrollButtons();this.tabsContainer.addEventListener("scroll",this.updateScrollButtons)};t.prototype.render=function(){var t=this;var e=this.isPagesVariant?"nav":"div";var i=undefined;return h(Host,{key:"0520b7aba909495feef9358b2e572f767e42dce2","data-version":version,style:i},h("div",{key:"779d35686ab406d8b60b595aea6ca67eb5b7d82a",class:"tabs-wrapper",part:"post-tabs"},h("button",{key:"2be9734aa1389baf48901e1eafe759f887ed9490",ref:function(e){return t.leftScrollButton=e},class:"scroll-btn scroll-btn-left",type:"button","aria-label":this.textPrevTabItems,tabindex:this.showLeftScrollButton?0:-1,hidden:!this.showLeftScrollButton,onClick:function(){return t.scrollTabs("prev")}},h("post-icon",{key:"ca6b0acaef9179468737d3669acbc61dfb709657",name:"chevronleft"})),h(e,{key:"df8d1f5ca66b86baeb13123459059f1f399f5383",ref:function(e){return t.tabsContainer=e},class:"tabs",role:this.isPagesVariant?undefined:"tablist","aria-label":this.isPagesVariant?this.label:undefined},h("slot",{key:"e9c618d1f018381f37c0b46aea741abe797d7e37",onSlotchange:function(){t.moveMisplacedTabs();t.enableTabs()}})),h("button",{key:"79e0ad08c240f251e5805d71319d6ce32d843367",ref:function(e){return t.rightScrollButton=e},class:"scroll-btn scroll-btn-right",type:"button","aria-label":this.textNextTabItems,tabindex:this.showRightScrollButton?0:-1,hidden:!this.showRightScrollButton,onClick:function(){return t.scrollTabs("next")}},h("post-icon",{key:"491fc9c7746896d9a140fa6cbb97a432ff174ca3",name:"chevronright"}))),!this.isPagesVariant&&h("div",{key:"04839eb63e75923e733ec4eea84cd345ae480e70",class:"tab-content",part:"post-tabs-content"},h("slot",{key:"64483606952f79810e7a24105f5c9f822180b6ca",name:"panels",onSlotchange:function(){return t.moveMisplacedPanels()}})))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{label:[{validateLabel:0}]}},enumerable:false,configurable:true});return t}();__decorate([OneOf(["small","large"])],PostTabs.prototype,"size",void 0);__decorate([Type("string")],PostTabs.prototype,"label",void 0);PostTabs.style=postTabsCss();export{PostTabs as post_tabs};
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-h3opCZqH.js";import{v as version}from"./package-YQBh4peU.js";var postTogglebuttonCss=function(){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}"};var PostTogglebutton=function(){function t(t){var e=this;registerInstance(this,t);this.toggled=false;this.handleClick=function(){e.toggled=!e.toggled};this.handleKeydown=function(t){if(t.key==="Enter"||t.key===" "){t.preventDefault();e.host.click()}}}t.prototype.componentWillLoad=function(){var t=this;this.host.addEventListener("click",(function(){return t.handleClick()}),{capture:true});this.host.addEventListener("keydown",(function(e){return t.handleKeydown(e)}),{capture:true})};t.prototype.render=function(){return h(Host,{key:"6f61a07946f3e67bace0a883b73c424893c4043d","data-version":version,role:"button",tabindex:"0","aria-pressed":this.toggled.toString()},h("slot",{key:"fd9b93e45da499dbb790ad675f3db36e248c1960"}))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();PostTogglebutton.style=postTogglebuttonCss();export{PostTogglebutton as post_togglebutton};
1
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-h3opCZqH.js";import{v as version}from"./package-D9jUbrFT.js";var postTogglebuttonCss=function(){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}"};var PostTogglebutton=function(){function t(t){var e=this;registerInstance(this,t);this.toggled=false;this.handleClick=function(){e.toggled=!e.toggled};this.handleKeydown=function(t){if(t.key==="Enter"||t.key===" "){t.preventDefault();e.host.click()}}}t.prototype.componentWillLoad=function(){var t=this;this.host.addEventListener("click",(function(){return t.handleClick()}),{capture:true});this.host.addEventListener("keydown",(function(e){return t.handleKeydown(e)}),{capture:true})};t.prototype.render=function(){return h(Host,{key:"6f61a07946f3e67bace0a883b73c424893c4043d","data-version":version,role:"button",tabindex:"0","aria-pressed":this.toggled.toString()},h("slot",{key:"fd9b93e45da499dbb790ad675f3db36e248c1960"}))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();PostTogglebutton.style=postTogglebuttonCss();export{PostTogglebutton as post_togglebutton};
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-h3opCZqH.js";import{v as version}from"./package-YQBh4peU.js";import{R as Required}from"./required-tHxh_hWW.js";import{T as Type}from"./type-Daxpt5v6.js";import"./create-validator-decorator--a-qkYfP.js";var postTooltipTriggerCss=function(){return"post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}"};var __decorate=undefined&&undefined.__decorate||function(t,i,e,s){var o=arguments.length,n=o<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,e):s,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)if(r=t[a])n=(o<3?r(n):o>3?r(i,e,n):r(i,e))||n;return o>3&&n&&Object.defineProperty(i,e,n),n};var TRIGGER_EVENTS=["pointerenter","pointerleave","focusin","focusout"];var isFocusable;var PostTooltipTrigger=function(){function t(t){registerInstance(this,t);this.delay=0;this.trigger=null;this.delayTimeout=null;this.boundTriggerHandler=this.handleTriggerEvent.bind(this);this.boundTooltipHandler=this.handleTooltipEvent.bind(this)}Object.defineProperty(t.prototype,"tooltip",{get:function(){var t=document.getElementById(this.for);return(t===null||t===void 0?void 0:t.localName)==="post-tooltip"?t:null},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){{import("./focusable-C7afHKmo.js").then((function(t){return t.f})).then((function(t){isFocusable!==null&&isFocusable!==void 0?isFocusable:isFocusable=t.default}))}};t.prototype.componentDidLoad=function(){this.setupTrigger();this.attachListeners();this.attachTooltipListeners()};t.prototype.disconnectedCallback=function(){this.removeListeners();this.removeTooltipListeners();this.cleanupTrigger();if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}};t.prototype.handleSlotChange=function(){this.cleanupTrigger();this.setupTrigger()};t.prototype.cleanupTrigger=function(){var t=this;if(this.trigger){var i=this.trigger.getAttribute("aria-describedby")||"";if(i.includes(this.for)){var e=i.split(" ").filter((function(i){return i!==t.for})).join(" ");if(e){this.trigger.setAttribute("aria-describedby",e)}else{this.trigger.removeAttribute("aria-describedby")}}this.trigger=null}};t.prototype.setupTrigger=function(){this.trigger=this.host.querySelector("*");if(this.trigger){if(!(isFocusable===null||isFocusable===void 0?void 0:isFocusable(this.trigger))){this.trigger.setAttribute("tabindex","0")}var t=this.trigger.getAttribute("aria-describedby")||"";if(!t.includes(this.for)){this.trigger.setAttribute("aria-describedby","".concat(t," ").concat(this.for).trim())}}else{console.warn("No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.")}};t.prototype.attachListeners=function(){var t=this;TRIGGER_EVENTS.forEach((function(i){t.host.addEventListener(i,t.boundTriggerHandler)}))};t.prototype.removeListeners=function(){var t=this;TRIGGER_EVENTS.forEach((function(i){t.host.removeEventListener(i,t.boundTriggerHandler)}))};t.prototype.attachTooltipListeners=function(){if(this.tooltip){this.tooltip.addEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.addEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.removeTooltipListeners=function(){if(this.tooltip){this.tooltip.removeEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.removeEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.handleTriggerEvent=function(t){switch(t.type){case"pointerenter":case"focusin":case"long-press":this.handleEnter();break;case"pointerleave":case"focusout":this.handleLeave(t);break}};t.prototype.handleTooltipEvent=function(t){switch(t.type){case"pointerenter":this.handleEnter();break;case"pointerleave":this.handleLeave(t);break}};t.prototype.handleEnter=function(){if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}this.interestHandler()};t.prototype.handleLeave=function(t){var i=t.relatedTarget;if(this.tooltip&&i&&this.tooltip.contains(i)||i===this.trigger){return}this.interestLostHandler()};t.prototype.interestHandler=function(){var t=this;var i;if(this.trigger){if(this.delay>0){this.delayTimeout=globalThis.setTimeout((function(){var i;(i=t.tooltip)===null||i===void 0?void 0:i.show(t.trigger);t.delayTimeout=null}),this.delay)}else{(i=this.tooltip)===null||i===void 0?void 0:i.show(this.trigger)}}};t.prototype.interestLostHandler=function(){var t;if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}(t=this.tooltip)===null||t===void 0?void 0:t.hide()};t.prototype.render=function(){var t=this;return h(Host,{key:"37f835a46c96f1f97019b611da8b6be2d6e1a8d7","data-version":version},h("slot",{key:"c2fc3d9080948fdcfbd8b2866730e76b770b87ba",onSlotchange:function(){return t.handleSlotChange()}}))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();__decorate([Required(),Type("string")],PostTooltipTrigger.prototype,"for",void 0);PostTooltipTrigger.style=postTooltipTriggerCss();export{PostTooltipTrigger as post_tooltip_trigger};
1
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-h3opCZqH.js";import{v as version}from"./package-D9jUbrFT.js";import{R as Required}from"./required-tHxh_hWW.js";import{T as Type}from"./type-Daxpt5v6.js";import"./create-validator-decorator--a-qkYfP.js";var postTooltipTriggerCss=function(){return"post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}"};var __decorate=undefined&&undefined.__decorate||function(t,i,e,s){var o=arguments.length,n=o<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,e):s,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)if(r=t[a])n=(o<3?r(n):o>3?r(i,e,n):r(i,e))||n;return o>3&&n&&Object.defineProperty(i,e,n),n};var TRIGGER_EVENTS=["pointerenter","pointerleave","focusin","focusout"];var isFocusable;var PostTooltipTrigger=function(){function t(t){registerInstance(this,t);this.delay=0;this.trigger=null;this.delayTimeout=null;this.boundTriggerHandler=this.handleTriggerEvent.bind(this);this.boundTooltipHandler=this.handleTooltipEvent.bind(this)}Object.defineProperty(t.prototype,"tooltip",{get:function(){var t=document.getElementById(this.for);return(t===null||t===void 0?void 0:t.localName)==="post-tooltip"?t:null},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){{import("./focusable-C7afHKmo.js").then((function(t){return t.f})).then((function(t){isFocusable!==null&&isFocusable!==void 0?isFocusable:isFocusable=t.default}))}};t.prototype.componentDidLoad=function(){this.setupTrigger();this.attachListeners();this.attachTooltipListeners()};t.prototype.disconnectedCallback=function(){this.removeListeners();this.removeTooltipListeners();this.cleanupTrigger();if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}};t.prototype.handleSlotChange=function(){this.cleanupTrigger();this.setupTrigger()};t.prototype.cleanupTrigger=function(){var t=this;if(this.trigger){var i=this.trigger.getAttribute("aria-describedby")||"";if(i.includes(this.for)){var e=i.split(" ").filter((function(i){return i!==t.for})).join(" ");if(e){this.trigger.setAttribute("aria-describedby",e)}else{this.trigger.removeAttribute("aria-describedby")}}this.trigger=null}};t.prototype.setupTrigger=function(){this.trigger=this.host.querySelector("*");if(this.trigger){if(!(isFocusable===null||isFocusable===void 0?void 0:isFocusable(this.trigger))){this.trigger.setAttribute("tabindex","0")}var t=this.trigger.getAttribute("aria-describedby")||"";if(!t.includes(this.for)){this.trigger.setAttribute("aria-describedby","".concat(t," ").concat(this.for).trim())}}else{console.warn("No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.")}};t.prototype.attachListeners=function(){var t=this;TRIGGER_EVENTS.forEach((function(i){t.host.addEventListener(i,t.boundTriggerHandler)}))};t.prototype.removeListeners=function(){var t=this;TRIGGER_EVENTS.forEach((function(i){t.host.removeEventListener(i,t.boundTriggerHandler)}))};t.prototype.attachTooltipListeners=function(){if(this.tooltip){this.tooltip.addEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.addEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.removeTooltipListeners=function(){if(this.tooltip){this.tooltip.removeEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.removeEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.handleTriggerEvent=function(t){switch(t.type){case"pointerenter":case"focusin":case"long-press":this.handleEnter();break;case"pointerleave":case"focusout":this.handleLeave(t);break}};t.prototype.handleTooltipEvent=function(t){switch(t.type){case"pointerenter":this.handleEnter();break;case"pointerleave":this.handleLeave(t);break}};t.prototype.handleEnter=function(){if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}this.interestHandler()};t.prototype.handleLeave=function(t){var i=t.relatedTarget;if(this.tooltip&&i&&this.tooltip.contains(i)||i===this.trigger){return}this.interestLostHandler()};t.prototype.interestHandler=function(){var t=this;var i;if(this.trigger){if(this.delay>0){this.delayTimeout=globalThis.setTimeout((function(){var i;(i=t.tooltip)===null||i===void 0?void 0:i.show(t.trigger);t.delayTimeout=null}),this.delay)}else{(i=this.tooltip)===null||i===void 0?void 0:i.show(this.trigger)}}};t.prototype.interestLostHandler=function(){var t;if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}(t=this.tooltip)===null||t===void 0?void 0:t.hide()};t.prototype.render=function(){var t=this;return h(Host,{key:"37f835a46c96f1f97019b611da8b6be2d6e1a8d7","data-version":version},h("slot",{key:"c2fc3d9080948fdcfbd8b2866730e76b770b87ba",onSlotchange:function(){return t.handleSlotChange()}}))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();__decorate([Required(),Type("string")],PostTooltipTrigger.prototype,"for",void 0);PostTooltipTrigger.style=postTooltipTriggerCss();export{PostTooltipTrigger as post_tooltip_trigger};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,o,r){function n(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r["throw"](t))}catch(t){i(t)}}function c(t){t.done?o(t.value):n(t.value).then(a,s)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(o=0)),o)try{if(r=1,n&&(i=s[0]&2?n["return"]:s[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;if(n=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;n=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(!(i=o.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(s[0]===6&&o.label<i[1]){o.label=i[1];i=s;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(s);break}if(i[2])o.ops.pop();o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t];n=0}finally{r=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,g as getElement}from"./index-h3opCZqH.js";import{P as PLACEMENT_TYPES}from"./placement-DRiVosES.js";import{v as version}from"./package-YQBh4peU.js";import{O as OneOf}from"./one-of-w2eXPAzD.js";import"./create-validator-decorator--a-qkYfP.js";var postTooltipCss=function(){return':host{display:none}:host([open]){display:contents}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer{--post-current-bg:var(--post-scheme-color-surface-accent-bg);--post-current-fg:var(--post-scheme-color-surface-accent-fg);--post-popovercontainer-arrow-border-width:var(--post-device-border-width-alternative1);--post-popovercontainer-arrow-border-color:var(--post-scheme-color-surface-accent-fg)}post-popovercontainer::part(post-popovercontainer-border-mask){display:block;-webkit-box-shadow:inset 0 0 0 var(--post-device-spacing-padding-14) var(--post-scheme-color-surface-accent-bg);box-shadow:inset 0 0 0 var(--post-device-spacing-padding-14) var(--post-scheme-color-surface-accent-bg)}post-popovercontainer::part(post-popovercontainer-content){border:var(--post-device-border-width-alternative1) solid var(--post-scheme-color-surface-accent-fg);border-radius:var(--post-device-border-radius-1);padding:var(--post-device-spacing-padding-14) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-9);max-width:var(--post-tooltip-max-width, 280px);width:inherit;word-wrap:break-word;white-space:normal}'};var __decorate=undefined&&undefined.__decorate||function(t,e,o,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,o):r,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")i=Reflect.decorate(t,e,o,r);else for(var s=t.length-1;s>=0;s--)if(a=t[s])i=(n<3?a(i):n>3?a(e,o,i):a(e,o))||i;return n>3&&i&&Object.defineProperty(e,o,i),i};var PostTooltip=function(){function t(t){registerInstance(this,t);this.placement="top";this.arrow=false;this.open=false}t.prototype.componentDidLoad=function(){if(!this.host.id){console.error("No id set: <post-tooltip> must have an id, linking it to it's target element with a <post-tooltip-trigger> element.")}};t.prototype.show=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(this.open)return[2];return[4,this.popoverRef.show(t)];case 1:e.sent();return[2]}}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.popoverRef.hide();return[2]}))}))};t.prototype.toggle=function(t,e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){this.popoverRef.toggle(t,e);return[2]}))}))};t.prototype.handleBeforeToggle=function(t){this.open=t.detail.willOpen};t.prototype.render=function(){var t=this;var e="".concat(this.arrow?"has-arrow":"");return h(Host,{key:"d49731becbb7395ec68cfae34d316a6248977b53","data-version":version},h("post-popovercontainer",{key:"12da18a58c2143ef4c2ddff207d081d091e6a40e",safeSpace:"trapezoid",class:e,role:"tooltip",arrow:this.arrow,placement:this.placement,onPostBeforeToggle:function(e){return t.handleBeforeToggle(e)},ref:function(e){return t.popoverRef=e}},h("slot",{key:"5f941c0311eff468be1c6abe7cbcdab8ba272e15"})))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();__decorate([OneOf(PLACEMENT_TYPES)],PostTooltip.prototype,"placement",void 0);PostTooltip.style=postTooltipCss();export{PostTooltip as post_tooltip};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,o,r){function n(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r["throw"](t))}catch(t){i(t)}}function c(t){t.done?o(t.value):n(t.value).then(a,s)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(o=0)),o)try{if(r=1,n&&(i=s[0]&2?n["return"]:s[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;if(n=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;n=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(!(i=o.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(s[0]===6&&o.label<i[1]){o.label=i[1];i=s;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(s);break}if(i[2])o.ops.pop();o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t];n=0}finally{r=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,g as getElement}from"./index-h3opCZqH.js";import{P as PLACEMENT_TYPES}from"./placement-DRiVosES.js";import{v as version}from"./package-D9jUbrFT.js";import{O as OneOf}from"./one-of-w2eXPAzD.js";import"./create-validator-decorator--a-qkYfP.js";var postTooltipCss=function(){return':host{display:none}:host([open]){display:contents}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer{--post-current-bg:var(--post-scheme-color-surface-accent-bg);--post-current-fg:var(--post-scheme-color-surface-accent-fg);--post-popovercontainer-arrow-border-width:var(--post-device-border-width-alternative1);--post-popovercontainer-arrow-border-color:var(--post-scheme-color-surface-accent-fg)}post-popovercontainer::part(post-popovercontainer-border-mask){display:block;-webkit-box-shadow:inset 0 0 0 var(--post-device-spacing-padding-14) var(--post-scheme-color-surface-accent-bg);box-shadow:inset 0 0 0 var(--post-device-spacing-padding-14) var(--post-scheme-color-surface-accent-bg)}post-popovercontainer::part(post-popovercontainer-content){border:var(--post-device-border-width-alternative1) solid var(--post-scheme-color-surface-accent-fg);border-radius:var(--post-device-border-radius-1);padding:var(--post-device-spacing-padding-14) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-9);max-width:var(--post-tooltip-max-width, 280px);width:inherit;word-wrap:break-word;white-space:normal}'};var __decorate=undefined&&undefined.__decorate||function(t,e,o,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,o):r,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")i=Reflect.decorate(t,e,o,r);else for(var s=t.length-1;s>=0;s--)if(a=t[s])i=(n<3?a(i):n>3?a(e,o,i):a(e,o))||i;return n>3&&i&&Object.defineProperty(e,o,i),i};var PostTooltip=function(){function t(t){registerInstance(this,t);this.placement="top";this.arrow=false;this.open=false}t.prototype.componentDidLoad=function(){if(!this.host.id){console.error("No id set: <post-tooltip> must have an id, linking it to it's target element with a <post-tooltip-trigger> element.")}};t.prototype.show=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(this.open)return[2];return[4,this.popoverRef.show(t)];case 1:e.sent();return[2]}}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.popoverRef.hide();return[2]}))}))};t.prototype.toggle=function(t,e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){this.popoverRef.toggle(t,e);return[2]}))}))};t.prototype.handleBeforeToggle=function(t){this.open=t.detail.willOpen};t.prototype.render=function(){var t=this;var e="".concat(this.arrow?"has-arrow":"");return h(Host,{key:"d49731becbb7395ec68cfae34d316a6248977b53","data-version":version},h("post-popovercontainer",{key:"12da18a58c2143ef4c2ddff207d081d091e6a40e",safeSpace:"trapezoid",class:e,role:"tooltip",arrow:this.arrow,placement:this.placement,onPostBeforeToggle:function(e){return t.handleBeforeToggle(e)},ref:function(e){return t.popoverRef=e}},h("slot",{key:"5f941c0311eff468be1c6abe7cbcdab8ba272e15"})))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();__decorate([OneOf(PLACEMENT_TYPES)],PostTooltip.prototype,"placement",void 0);PostTooltip.style=postTooltipCss();export{PostTooltip as post_tooltip};
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[o]=e[o]}return t};return __assign.apply(this,arguments)};import{r as registerInstance,h,H as Host}from"./index-h3opCZqH.js";import{c as createIdFrom,T as Title,L as Link,s as state,g as getText,v as version}from"./package-BEOiFUNg.js";var postInternetFooterCss=function(){return".cookie-settings{min-height:0;border:0 none;font-weight:inherit}"};var PostInternetFooter=function(){function t(t){var e=this;this.liveSupportEnabled=false;this.cookieSettingsEnabled=false;registerInstance(this,t);this.liveSupportEnabled=this.unbluEnabled();this.cookieSettingsEnabled=this.ucUIEnabled();if(!this.liveSupportEnabled){var i=undefined;var n=0;var o=function(){var t=e.unbluEnabled();var o=e.ucUIEnabled();var r=t&&o;if(t){e.liveSupportEnabled=true}if(o){e.cookieSettingsEnabled=true}if(r||n>=5){window.clearInterval(i)}n++};i=window.setInterval(o,1e3)}}t.prototype.unbluEnabled=function(){return typeof window["unbluLSLoad"]==="function"};t.prototype.ucUIEnabled=function(){return typeof window["UC_UI"]==="object"&&typeof window["UC_UI"]["showSecondLayer"]==="function"};t.prototype.handleCookieSettingsClick=function(){window["UC_UI"]["showSecondLayer"]()};t.prototype.renderListWithTitle=function(t,e){if(!t)return undefined;var i=e.titleProps,n=e.listProps,o=e.linkProps;var r=getText(t.title);var s=createIdFrom(r);return[h(Title,__assign(__assign({},i),{config:t.title,id:s})),h("ul",__assign(__assign({},n),{"aria-labelledby":s}),t.items.map((function(t){return h("li",{key:t.text},h(Link,__assign(__assign({},o),{config:t})))})))]};t.prototype.render=function(){var t=this;var e;if(!state.localizedConfig){return null}if(!state.localizedConfig.footer){console.warn('Internet Footer: Current project "'.concat(state.projectId,'" does not include a footer config. The footer will not be rendered. Remove '),document.querySelector("swisspost-internet-footer"),"from your markup or configure the footer in your portal config to stop seeing this warning.");return null}var i=state.localizedConfig.footer;return h(Host,{"data-version":version},h("post-footer",{textFooter:this.textFooter},i.prefooter&&h("div",{slot:"prefooter"},this.renderListWithTitle(i.prefooter,{titleProps:{tag:"h3"}})),(e=i.sections)===null||e===void 0?void 0:e.map((function(e,i){return t.renderListWithTitle(e,{titleProps:{tag:"span",slot:"grid-".concat(i+1,"-title")},listProps:{slot:"grid-".concat(i+1)}})})),i.socialLinks&&h("div",{slot:"socialmedia"},this.renderListWithTitle(i.socialLinks,{titleProps:{tag:"h3"},linkProps:{class:"btn btn-primary btn-icon",hiddenText:true}})),i.appStoreLinks&&h("div",{slot:"app"},this.renderListWithTitle(i.appStoreLinks,{titleProps:{tag:"h3"},linkProps:{class:"app-store-badge",hiddenText:true}})),i.companyLinks&&h("div",{slot:"businesssectors"},this.renderListWithTitle(i.companyLinks,{titleProps:{tag:"h3"}})),i.complianceLinks&&h("div",{slot:"meta"},h("ul",{"aria-label":getText(i.complianceLinks.title)},i.complianceLinks.items.map((function(t){return h("li",{key:t.text},h(Link,{config:t}))})),this.cookieSettingsEnabled&&h("li",null,h("button",{class:"btn btn-link cookie-settings",onClick:this.handleCookieSettingsClick},this.textCookieSettings)))),i.copyright&&h("p",{slot:"copyright"},i.copyright)))};return t}();PostInternetFooter.style=postInternetFooterCss();export{PostInternetFooter as swisspost_internet_footer};
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[o]=e[o]}return t};return __assign.apply(this,arguments)};import{r as registerInstance,h,H as Host}from"./index-h3opCZqH.js";import{c as createIdFrom,T as Title,L as Link,s as state,g as getText,v as version}from"./package-Dheuk3S-.js";var postInternetFooterCss=function(){return".cookie-settings{min-height:0;border:0 none;font-weight:inherit}"};var PostInternetFooter=function(){function t(t){var e=this;this.liveSupportEnabled=false;this.cookieSettingsEnabled=false;registerInstance(this,t);this.liveSupportEnabled=this.unbluEnabled();this.cookieSettingsEnabled=this.ucUIEnabled();if(!this.liveSupportEnabled){var n=undefined;var i=0;var o=function(){var t=e.unbluEnabled();var o=e.ucUIEnabled();var r=t&&o;if(t){e.liveSupportEnabled=true}if(o){e.cookieSettingsEnabled=true}if(r||i>=5){window.clearInterval(n)}i++};n=window.setInterval(o,1e3)}}t.prototype.unbluEnabled=function(){return typeof window["unbluLSLoad"]==="function"};t.prototype.ucUIEnabled=function(){return typeof window["UC_UI"]==="object"&&typeof window["UC_UI"]["showSecondLayer"]==="function"};t.prototype.handleCookieSettingsClick=function(){window["UC_UI"]["showSecondLayer"]()};t.prototype.renderListWithTitle=function(t,e){if(!t)return undefined;var n=e.titleProps,i=e.listProps,o=e.linkProps;var r=getText(t.title);var s=createIdFrom(r);return[h(Title,__assign(__assign({},n),{config:t.title,id:s})),h("ul",__assign(__assign({},i),{"aria-labelledby":s}),t.items.map((function(t){return h("li",{key:t.text},h(Link,__assign(__assign({},o),{config:t})))})))]};t.prototype.render=function(){var t=this;var e;if(!state.localizedConfig){return null}if(!state.localizedConfig.footer){console.warn('Internet Footer: Current project "'.concat(state.projectId,'" does not include a footer config. The footer will not be rendered. Remove '),document.querySelector("swisspost-internet-footer"),"from your markup or configure the footer in your portal config to stop seeing this warning.");return null}var n=state.localizedConfig.footer;return h(Host,{"data-version":version},h("post-footer",{textFooter:this.textFooter},n.prefooter&&h("div",{slot:"prefooter"},this.renderListWithTitle(n.prefooter,{titleProps:{tag:"h3"}})),(e=n.sections)===null||e===void 0?void 0:e.map((function(e,n){return t.renderListWithTitle(e,{titleProps:{tag:"span",slot:"grid-".concat(n+1,"-title")},listProps:{slot:"grid-".concat(n+1)}})})),n.socialLinks&&h("div",{slot:"socialmedia"},this.renderListWithTitle(n.socialLinks,{titleProps:{tag:"h3"},linkProps:{class:"btn btn-primary btn-icon",hiddenText:true}})),n.appStoreLinks&&h("div",{slot:"app"},this.renderListWithTitle(n.appStoreLinks,{titleProps:{tag:"h3"},linkProps:{class:"app-store-badge",hiddenText:true}})),n.companyLinks&&h("div",{slot:"businesssectors"},this.renderListWithTitle(n.companyLinks,{titleProps:{tag:"h3"}})),n.complianceLinks&&h("div",{slot:"meta"},h("ul",{"aria-label":getText(n.complianceLinks.title)},n.complianceLinks.items.map((function(t){return h("li",{key:t.text},h(Link,{config:t}))})),this.cookieSettingsEnabled&&h("li",null,h("button",{class:"btn btn-link cookie-settings",onClick:this.handleCookieSettingsClick},this.textCookieSettings)))),n.copyright&&h("p",{slot:"copyright"},n.copyright)))};return t}();PostInternetFooter.style=postInternetFooterCss();export{PostInternetFooter as swisspost_internet_footer};
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i))t[i]=n[i]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,n,e,r){function i(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function u(t){try{s(r["throw"](t))}catch(t){a(t)}}function s(t){t.done?e(t.value):i(t.value).then(o,u)}s((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=u(0),o["throw"]=u(1),o["return"]=u(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(t){return function(n){return s([t,n])}}function s(u){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(e=0)),e)try{if(r=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;i=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){e.label=u[1];break}if(u[0]===6&&e.label<a[1]){e.label=a[1];a=u;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(u);break}if(a[2])e.ops.pop();e.trys.pop();continue}u=n.call(t,e)}catch(t){u=[6,t];i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,n,e){if(e||arguments.length===2)for(var r=0,i=n.length,a;r<i;r++){if(a||!(r in n)){if(!a)a=Array.prototype.slice.call(n,0,r);a[r]=n[r]}}return t.concat(a||Array.prototype.slice.call(n))};import{h,r as registerInstance,c as createEvent,H as Host}from"./index-h3opCZqH.js";import{c as createIdFrom,L as Link,g as getText,T as Title,s as state,d as dispose,v as version}from"./package-BEOiFUNg.js";var Avatar=function(t){var n=t.user,e=t.description;return h("post-avatar",{firstname:n.name,lastname:n.surname,email:n.email,description:e,"aria-hidden":e?undefined:"true"})};var MegaDropdown=function(t){var n=t.config,e=t.textClose,r=t.textBack;var i=createIdFrom(n.trigger.text);return[h("post-megadropdown-trigger",{key:"trigger",for:i},n.trigger.text),h("post-megadropdown",{key:"dropdown",id:i,textClose:e,textBack:r},n.overview&&h(Link,{config:n.overview,class:"post-megadropdown-overview",ariaCurrentWhenActive:"page"}),h("div",{class:"row row-cols-1 row-cols-sm-2"},n.sections.map((function(t){return h(MegaDropdownSection,{config:t})}))))]};var MegaDropdownSection=function(t){var n=t.config;var e=getText(n.title);var r=createIdFrom(e);return h("div",{class:"col"},h(Title,{class:"post-megadropdown-list-title",id:r,config:n.title}),h("ul",{class:"post-megadropdown-list","aria-labelledby":r},n.items.map((function(t){return h("li",{key:t.url},h(Link,{config:t,ariaCurrentWhenActive:"page"}))}))))};var withReturnUrl=function(t){var n=new URL(t,window.location.href);n.searchParams.set("returnURL",window.location.href);return n.toString()};var UserMenu=function(t){var n=t.config,e=t.slot,r=t.textCurrentUser,i=t.textUserLinks,a=t.textAccessUserLinks;var o=n.user.userType==="B2C";var u=n.user.userType==="B2B";var s=(o||u)&&n.user.changeUserAndProfile==="userAndProfile";var c=u&&n.user.canChangeCompany&&n.user.company;var f=s||c;var l=[n.user.name,n.user.surname].join(" ");var v=createIdFrom(l);return h("div",{slot:e},h("post-menu-trigger",{for:v},h("button",{class:"btn btn-link",type:"button"},h(Avatar,{user:n.user,description:r.replace("{user}","".concat(l))}),h("span",{class:"visually-hidden"},a))),h("post-menu",{id:v,label:i},h("div",{slot:"header"},h(Avatar,{user:n.user}),n.user.company&&h("p",null,n.user.company),h("p",null,l)),n.accountSwitch&&f&&h("post-menu-item",null,h(Link,{config:{text:n.accountSwitch.text,url:withReturnUrl(n.accountSwitch.url),icon:n.accountSwitch.icon}})),n.companySwitch&&c&&h("post-menu-item",null,h(Link,{config:{text:n.companySwitch.text,url:withReturnUrl(n.companySwitch.url),icon:n.companySwitch.icon}})),n.options.map((function(t){return h("post-menu-item",{key:t.url},h(Link,{config:t}))})),n.logoutLink&&h("post-menu-item",null,h(Link,{config:n.logoutLink}))))};var DEFAULT_LANGUAGE="de";var getUserLang=function(t){var n;var e=new URL(window.location.href);var r=[t,e.searchParams.get("lang"),getPathLanguage(e.pathname),document.documentElement.lang,getPreferredLanguageFromBrowser(),state.currentLanguage].filter((function(t){return t!=null}));return extractLanguage((n=r[0])!==null&&n!==void 0?n:DEFAULT_LANGUAGE)};var getPathLanguage=function(t){var n=t.split("/").filter(Boolean)[0];if(!n)return undefined;try{Intl.getCanonicalLocales(n);return n}catch(t){return undefined}};var getPreferredLanguageFromBrowser=function(){if(navigator.language!=null){return extractLanguage(navigator.language)}if(navigator.languages!=null&&navigator.languages.length>0){return extractLanguage(navigator.languages[0])}return null};var extractLanguage=function(t){return t.substring(0,2).toLowerCase()};var inFlightRequests=new Map;var getPPMConfig=function(){var t=document.querySelector("#PPM_HEADER_DATA");if((t===null||t===void 0?void 0:t.textContent)!=null){return JSON.parse(t.textContent)}return null};var getLocalizedConfig=function(t){return __awaiter(void 0,[t],void 0,(function(t){var n,e,r,i,a,o,u;var s=t.projectId,c=t.environment,f=t.language;return __generator(this,(function(t){switch(t.label){case 0:n=getPPMConfig();if(n){e=document.documentElement.lang;state.currentLanguage=e;return[2,n]}r=getUserLang(f);i="".concat(s,"-").concat(c,"-").concat(r);a=inFlightRequests.get(i);if(a==null){a=fetchConfig(s,c,r).finally((function(){inFlightRequests.delete(i)}));inFlightRequests.set(i,a)}u=[{}];return[4,a];case 1:o=__assign.apply(void 0,u.concat([t.sent()]));state.currentLanguage=r;return[2,o]}}))}))};var fetchConfig=function(t,n,e){return __awaiter(void 0,void 0,void 0,(function(){var r,i,a;return __generator(this,(function(o){switch(o.label){case 0:if(!isValidProjectId(t)){throw new Error('Internet Header: invalid project id "'.concat(t,'"'))}if(t==="test"){n="int01"}r=generateConfigUrl(t,n,e);o.label=1;case 1:o.trys.push([1,4,,5]);return[4,fetch(r)];case 2:i=o.sent();return[4,i.json()];case 3:return[2,o.sent()];case 4:a=o.sent();throw new Error("Internet Header: fetching config failed. ".concat(a.message));case 5:return[2]}}))}))};var generateConfigUrl=function(t,n,e){if(t==="test")return"assets/config/test-configuration.json";var r=n.toUpperCase();var i=e.toLowerCase();var a=r==="PROD";var o="https://".concat(a?"":"int.","preview.post.ch");try{var u=new URLSearchParams({serviceId:t,environment:r,lang:i}).toString();return new URL("".concat(o,"/api/header?").concat(u)).toString()}catch(t){throw new Error("Internet Header: Config URL is invalid.")}};var isValidProjectId=function(t){return t!==""&&t.length>0&&/^[a-zA-Z][\w-]*[a-zA-Z0-9]$/.test(t)};var getActiveLink=function(t){var n;var e=getHeaderLinks((n=state.localizedConfig)===null||n===void 0?void 0:n.header);if(e.length===0||t==="none"){return null}if(t==="auto"||t==="exact"){var r=findActiveLink(e);if(r)return r}var i;if(t==="auto"||t==="exact"){i=new URL(window.location.href)}else{try{i=new URL(t,document.location.origin)}catch(n){console.warn("Active Route: ".concat(t," is not a valid URL. Navigation highlighting has been disabled."));return null}}var a=extractCandidateLinks(e);var o=t==="exact"?"exact":"auto";return findBestMatch(a,i,o)};var findActiveLink=function(t){return t.find((function(t){return t.active}))};var extractCandidateLinks=function(t){return t.filter((function(t){return t.url!==""&&t.url!=="#"&&t.url!=="/"}))};var getHeaderLinks=function(t){var n=[];if(!t){return n}var e=function(t){if(t===null||t===undefined){return}if(Array.isArray(t)){t.forEach(e);return}if(typeof t!=="object"||t===null){return}if("url"in t&&typeof t.url==="string"){n.push(t)}Object.values(t).forEach(e)};e(t);return n};var findBestMatch=function(t,n,e){var r=null;for(var i=0,a=t;i<a.length;i++){var o=a[i];try{var u=new URL(o.url,document.location.origin);var s=compareRoutes(n,u,e);if(s>0){if(!r||s>r.score){r={link:o,score:s}}if(s===Infinity)break}}catch(t){}}return r?r.link:null};var compareRoutes=function(t,n,e){if(t===null||n===null||t.origin!==n.origin){return 0}var r=t.pathname.toLocaleLowerCase();var i=n.pathname.toLocaleLowerCase();if(r===i){return Infinity}if(t.pathname.length<n.pathname.length){return 0}if(e==="auto"){var a=__spreadArray([t.origin.toLocaleLowerCase()],r.split("/").filter((function(t){return t!==null&&t!==""})),true);var o=__spreadArray([n.origin.toLocaleLowerCase()],i.split("/").filter((function(t){return t!==null&&t!==""})),true);var u=getSimilarityScore(a,o);return Math.min(a.length,o.length)===u?u:0}return 0};var getSimilarityScore=function(t,n){if(t==null||n==null||t.length===0||n.length===0){return 0}var e=0;for(;e<Math.min(t.length,n.length);e++){if(t[e]!==n[e]){return 0}}return e};var SESSION_URL="https://n.account.post.ch/v1/session/subscribe";var PostInternetHeader=function(){function t(t){this.activeRoute="auto";this.environment="prod";this.fullWidth=false;registerInstance(this,t);this.headerLoaded=createEvent(this,"headerLoaded");if(this.project===undefined||this.project===""||!isValidProjectId(this.project)){throw new Error('Internet Header project key is "'.concat(this.project,'". Please provide a valid project key.'))}}t.prototype.handleActiveRouteChange=function(){this.updateActiveUrl()};t.prototype.handleLanguageChange=function(t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(e){switch(e.label){case 0:e.trys.push([0,2,,3]);return[4,this.updateConfig(t)];case 1:e.sent();return[3,3];case 2:n=e.sent();console.error(n);return[3,3];case 3:return[2]}}))}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,Promise.all([this.fetchHeaderConfig(),this.fetchUserData()])];case 1:t.sent();return[2]}}))}))};t.prototype.componentDidLoad=function(){var t=this;window.requestAnimationFrame((function(){t.headerLoaded.emit()}))};t.prototype.disconnectedCallback=function(){dispose()};t.prototype.handleLanguageChangeEvent=function(t){if(t.target instanceof HTMLElement&&t.target.localName==="post-language-menu-item"&&t.detail!==this.language){void this.handleLanguageChange(t.detail)}};t.prototype.fetchHeaderConfig=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);state.projectId=this.project;state.environment=this.environment.toLocaleLowerCase();if(this.language!==undefined)state.currentLanguage=this.language;return[4,this.updateConfig()];case 1:n.sent();return[3,3];case 2:t=n.sent();console.error(t);return[3,3];case 3:return[2]}}))}))};t.prototype.fetchUserData=function(){return __awaiter(this,void 0,void 0,(function(){var t,n,e;return __generator(this,(function(r){switch(r.label){case 0:r.trys.push([0,4,,5]);return[4,fetch(SESSION_URL,{credentials:"include"})];case 1:t=r.sent();if(!t.ok)return[3,3];return[4,t.json()];case 2:n=r.sent();state.user=n===null||n===void 0?void 0:n.data;r.label=3;case 3:return[3,5];case 4:e=r.sent();return[3,5];case 5:return[2]}}))}))};t.prototype.updateConfig=function(t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(e){switch(e.label){case 0:n=state;return[4,getLocalizedConfig({projectId:this.project,environment:this.environment,language:t!==null&&t!==void 0?t:this.language})];case 1:n.localizedConfig=e.sent();this.updateActiveUrl();return[2]}}))}))};t.prototype.updateActiveUrl=function(){state.activeLink=getActiveLink(this.activeRoute)};t.prototype.getUserMenuOptions=function(t){var n;return __spreadArray(__spreadArray(__spreadArray([],t.userProfile?[t.userProfile]:[],true),t.settings?[t.settings]:[],true),(n=t.userLinks)!==null&&n!==void 0?n:[],true)};t.prototype.renderNavItem=function(t,n){if(n===void 0){n={}}if("url"in t){return h(Link,__assign(__assign({},n),{config:t}))}return h(UserMenu,{slot:n.slot,config:t,textCurrentUser:this.textCurrentUser,textAccessUserLinks:this.textAccessUserLinks,textUserLinks:this.textUserLinks})};t.prototype.renderNavigation=function(t,n,e){var r=this;if(e===void 0){e={}}if(n.length===0)return null;if(n.length===1){return this.renderNavItem(n[0],__assign(__assign({},e),{slot:t}))}return h("ul",{slot:t},n.map((function(t){return h("li",{key:"url"in t?t.url:t.user.email},r.renderNavItem(t,e))})))};t.prototype.render=function(){var t=this;var n;if(!((n=state.localizedConfig)===null||n===void 0?void 0:n.header)){console.error(new Error("Internet Header: Config cannot be loaded"));return}var e=state.localizedConfig.header,r=e.globalHeader,i=e.localHeader;return h(Host,{"data-version":version},h("post-header",{textMenu:this.textMenu},"image"in r.postLogo?h(Link,{slot:"post-logo",config:r.postLogo}):h("post-logo",{slot:"post-logo",url:r.postLogo.url,"aria-label":r.postLogo.label,"aria-description":r.postLogo.description},r.postLogo.text),r.audience&&this.renderNavigation("audience",r.audience,{ariaCurrentWhenActive:"location"}),r.primaryNavigation&&this.renderNavigation("global-nav-primary",r.primaryNavigation),r.secondaryNavigation&&this.renderNavigation("global-nav-secondary",r.secondaryNavigation,{ariaCurrentWhenActive:"location"}),r.languages&&r.languages.length>0&&h("post-language-menu",{slot:"language-menu",textChangeLanguage:this.textChangeLanguage,textCurrentLanguage:this.textCurrentLanguage},r.languages.map((function(t){return h("post-language-menu-item",{key:t.code,url:t.url,active:t.active,code:t.code,name:t.label,description:t.description},t.text)}))),r.postLogin&&this.renderNavItem(state.user?{user:state.user,options:this.getUserMenuOptions(r.postLogin),accountSwitch:r.postLogin.accountSwitch,companySwitch:r.postLogin.companySwitch,logoutLink:r.postLogin.logoutLink}:r.postLogin.loginLink,{slot:"post-login"}),i.title&&h("p",{slot:"title"},i.title),i.navigation&&this.renderNavigation("local-nav",i.navigation),i.mainNavigation&&i.mainNavigation.length>0&&h("post-mainnavigation",{slot:"main-nav",textMain:this.textMain},h("ul",null,i.mainNavigation.map((function(n){return h("li",{key:"url"in n?n.url:n.trigger.text},"url"in n?h(Link,{config:n,ariaCurrentWhenActive:"page"}):h(MegaDropdown,{config:n,textBack:t.textBack,textClose:t.textClose}))}))))))};Object.defineProperty(t,"watchers",{get:function(){return{activeRoute:[{handleActiveRouteChange:0}],language:[{handleLanguageChange:0}]}},enumerable:false,configurable:true});return t}();export{PostInternetHeader as swisspost_internet_header};
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function o(t){try{s(r.next(t))}catch(t){a(t)}}function u(t){try{s(r["throw"](t))}catch(t){a(t)}}function s(t){t.done?n(t.value):i(t.value).then(o,u)}s((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=u(0),o["throw"]=u(1),o["return"]=u(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(t){return function(e){return s([t,e])}}function s(u){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(r=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=e.call(t,n)}catch(t){u=[6,t];i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++){if(a||!(r in e)){if(!a)a=Array.prototype.slice.call(e,0,r);a[r]=e[r]}}return t.concat(a||Array.prototype.slice.call(e))};import{h,r as registerInstance,c as createEvent,H as Host}from"./index-h3opCZqH.js";import{c as createIdFrom,L as Link,g as getText,T as Title,s as state,d as dispose,v as version}from"./package-Dheuk3S-.js";var Avatar=function(t){var e=t.user,n=t.description;return h("post-avatar",{firstname:e.name,lastname:e.surname,email:e.email,description:n,"aria-hidden":n?undefined:"true"})};var MegaDropdown=function(t){var e=t.config,n=t.textClose,r=t.textBack;var i=createIdFrom(e.trigger.text);return[h("post-megadropdown-trigger",{key:"trigger",for:i},e.trigger.text),h("post-megadropdown",{key:"dropdown",id:i,textClose:n,textBack:r},e.overview&&h(Link,{config:e.overview,class:"post-megadropdown-overview",ariaCurrentWhenActive:"page"}),h("div",{class:"row row-cols-1 row-cols-sm-2"},e.sections.map((function(t){return h(MegaDropdownSection,{config:t})}))))]};var MegaDropdownSection=function(t){var e=t.config;var n=getText(e.title);var r=createIdFrom(n);return h("div",{class:"col"},h(Title,{class:"post-megadropdown-list-title",id:r,config:e.title}),h("ul",{class:"post-megadropdown-list","aria-labelledby":r},e.items.map((function(t){return h("li",{key:t.url},h(Link,{config:t,ariaCurrentWhenActive:"page"}))}))))};var withReturnUrl=function(t){var e=new URL(t,window.location.href);e.searchParams.set("returnURL",window.location.href);return e.toString()};var UserMenu=function(t){var e=t.config,n=t.slot,r=t.textCurrentUser,i=t.textUserLinks,a=t.textAccessUserLinks;var o=e.user.userType==="B2C";var u=e.user.userType==="B2B";var s=(o||u)&&e.user.changeUserAndProfile==="userAndProfile";var c=u&&e.user.canChangeCompany&&e.user.company;var f=s||c;var l=[e.user.name,e.user.surname].join(" ");var v=createIdFrom(l);return h("div",{slot:n},h("post-menu-trigger",{for:v},h("button",{class:"btn btn-link",type:"button"},h(Avatar,{user:e.user,description:r.replace("{user}","".concat(l))}),h("span",{class:"visually-hidden"},a))),h("post-menu",{id:v,label:i},h("div",{slot:"header"},h(Avatar,{user:e.user}),e.user.company&&h("p",null,e.user.company),h("p",null,l)),e.accountSwitch&&f&&h("post-menu-item",null,h(Link,{config:{text:e.accountSwitch.text,url:withReturnUrl(e.accountSwitch.url),icon:e.accountSwitch.icon}})),e.companySwitch&&c&&h("post-menu-item",null,h(Link,{config:{text:e.companySwitch.text,url:withReturnUrl(e.companySwitch.url),icon:e.companySwitch.icon}})),e.options.map((function(t){return h("post-menu-item",{key:t.url},h(Link,{config:t}))})),e.logoutLink&&h("post-menu-item",null,h(Link,{config:e.logoutLink}))))};var getAlternateLinks=function(){var t;var e=new Map;var n=document.querySelectorAll('head link[rel="alternate"][hreflang][href]');for(var r=0,i=n;r<i.length;r++){var a=i[r];var o=a.getAttribute("href");if(!o)continue;var u=(t=a.hreflang)===null||t===void 0?void 0:t.toLowerCase();if(e.has(u))continue;try{var s=new URL(o,document.baseURI);e.set(u,s.href)}catch(t){}}return e};var observeAlternateLinks=function(t){var e=new MutationObserver((function(e){var n=e.some((function(t){if(t.type==="attributes"){if(!(t.target instanceof HTMLLinkElement))return false;return t.attributeName==="href"||t.attributeName==="hreflang"||t.attributeName==="rel"&&t.target.rel==="alternate"}if(t.type==="childList"){return __spreadArray(__spreadArray([],t.addedNodes,true),t.removedNodes,true).some((function(t){return t instanceof HTMLLinkElement&&t.hasAttribute("href")&&t.hasAttribute("hreflang")&&t.hasAttribute("rel")&&t.rel==="alternate"}))}return false}));if(n){t(getAlternateLinks())}}));e.observe(document.head,{childList:true,subtree:true,attributes:true,attributeFilter:["href","hreflang","rel"]});return e};var DEFAULT_LANGUAGE="de";var getUserLang=function(t){var e;var n=new URL(window.location.href);var r=[t,n.searchParams.get("lang"),getPathLanguage(n.pathname),document.documentElement.lang,getPreferredLanguageFromBrowser(),state.currentLanguage].filter((function(t){return t!=null}));return extractLanguage((e=r[0])!==null&&e!==void 0?e:DEFAULT_LANGUAGE)};var getPathLanguage=function(t){var e=t.split("/").filter(Boolean)[0];if(!e)return undefined;try{Intl.getCanonicalLocales(e);return e}catch(t){return undefined}};var getPreferredLanguageFromBrowser=function(){if(navigator.language!=null){return extractLanguage(navigator.language)}if(navigator.languages!=null&&navigator.languages.length>0){return extractLanguage(navigator.languages[0])}return null};var extractLanguage=function(t){return t.substring(0,2).toLowerCase()};var inFlightRequests=new Map;var getPPMConfig=function(){var t=document.querySelector("#PPM_HEADER_DATA");if((t===null||t===void 0?void 0:t.textContent)!=null){return JSON.parse(t.textContent)}return null};var getLocalizedConfig=function(t){return __awaiter(void 0,[t],void 0,(function(t){var e,n,r,i,a,o,u;var s=t.projectId,c=t.environment,f=t.language;return __generator(this,(function(t){switch(t.label){case 0:e=getPPMConfig();if(e){n=document.documentElement.lang;state.currentLanguage=n;return[2,e]}r=getUserLang(f);i="".concat(s,"-").concat(c,"-").concat(r);a=inFlightRequests.get(i);if(a==null){a=fetchConfig(s,c,r).finally((function(){inFlightRequests.delete(i)}));inFlightRequests.set(i,a)}u=[{}];return[4,a];case 1:o=__assign.apply(void 0,u.concat([t.sent()]));state.currentLanguage=r;return[2,o]}}))}))};var fetchConfig=function(t,e,n){return __awaiter(void 0,void 0,void 0,(function(){var r,i,a;return __generator(this,(function(o){switch(o.label){case 0:if(!isValidProjectId(t)){throw new Error('Internet Header: invalid project id "'.concat(t,'"'))}if(t==="test"){e="int01"}r=generateConfigUrl(t,e,n);o.label=1;case 1:o.trys.push([1,4,,5]);return[4,fetch(r)];case 2:i=o.sent();return[4,i.json()];case 3:return[2,o.sent()];case 4:a=o.sent();throw new Error("Internet Header: fetching config failed. ".concat(a.message));case 5:return[2]}}))}))};var generateConfigUrl=function(t,e,n){if(t==="test")return"assets/config/test-configuration.json";var r=e.toUpperCase();var i=n.toLowerCase();var a=r==="PROD";var o="https://".concat(a?"":"int.","preview.post.ch");try{var u=new URLSearchParams({serviceId:t,environment:r,lang:i}).toString();return new URL("".concat(o,"/api/header?").concat(u)).toString()}catch(t){throw new Error("Internet Header: Config URL is invalid.")}};var isValidProjectId=function(t){return t!==""&&t.length>0&&/^[a-zA-Z][\w-]*[a-zA-Z0-9]$/.test(t)};var getActiveLink=function(t){var e;var n=getHeaderLinks((e=state.localizedConfig)===null||e===void 0?void 0:e.header);if(n.length===0||t==="none"){return null}if(t==="auto"||t==="exact"){var r=findActiveLink(n);if(r)return r}var i;if(t==="auto"||t==="exact"){i=new URL(window.location.href)}else{try{i=new URL(t,document.location.origin)}catch(e){console.warn("Active Route: ".concat(t," is not a valid URL. Navigation highlighting has been disabled."));return null}}var a=extractCandidateLinks(n);var o=t==="exact"?"exact":"auto";return findBestMatch(a,i,o)};var findActiveLink=function(t){return t.find((function(t){return t.active}))};var extractCandidateLinks=function(t){return t.filter((function(t){return t.url!==""&&t.url!=="#"&&t.url!=="/"}))};var getHeaderLinks=function(t){var e=[];if(!t){return e}var n=function(t){if(t===null||t===undefined){return}if(Array.isArray(t)){t.forEach(n);return}if(typeof t!=="object"||t===null){return}if("url"in t&&typeof t.url==="string"){e.push(t)}Object.values(t).forEach(n)};n(t);return e};var findBestMatch=function(t,e,n){var r=null;for(var i=0,a=t;i<a.length;i++){var o=a[i];try{var u=new URL(o.url,document.location.origin);var s=compareRoutes(e,u,n);if(s>0){if(!r||s>r.score){r={link:o,score:s}}if(s===Infinity)break}}catch(t){}}return r?r.link:null};var compareRoutes=function(t,e,n){if(t===null||e===null||t.origin!==e.origin){return 0}var r=t.pathname.toLocaleLowerCase();var i=e.pathname.toLocaleLowerCase();if(r===i){return Infinity}if(t.pathname.length<e.pathname.length){return 0}if(n==="auto"){var a=__spreadArray([t.origin.toLocaleLowerCase()],r.split("/").filter((function(t){return t!==null&&t!==""})),true);var o=__spreadArray([e.origin.toLocaleLowerCase()],i.split("/").filter((function(t){return t!==null&&t!==""})),true);var u=getSimilarityScore(a,o);return Math.min(a.length,o.length)===u?u:0}return 0};var getSimilarityScore=function(t,e){if(t==null||e==null||t.length===0||e.length===0){return 0}var n=0;for(;n<Math.min(t.length,e.length);n++){if(t[n]!==e[n]){return 0}}return n};var SESSION_URL="https://n.account.post.ch/v1/session/subscribe";var PostInternetHeader=function(){function t(t){this.activeRoute="auto";this.environment="prod";this.fullWidth=false;registerInstance(this,t);this.headerLoaded=createEvent(this,"headerLoaded");if(this.project===undefined||this.project===""||!isValidProjectId(this.project)){throw new Error('Internet Header project key is "'.concat(this.project,'". Please provide a valid project key.'))}}t.prototype.handleActiveRouteChange=function(){this.updateActiveUrl()};t.prototype.handleLanguageChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,this.updateConfig(t)];case 1:n.sent();return[3,3];case 2:e=n.sent();console.error(e);return[3,3];case 3:return[2]}}))}))};t.prototype.connectedCallback=function(){this.observeAlternateLinks()};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.initAlternateLinks();return[4,Promise.all([this.fetchHeaderConfig(),this.fetchUserData()])];case 1:t.sent();return[2]}}))}))};t.prototype.componentDidLoad=function(){var t=this;window.requestAnimationFrame((function(){t.headerLoaded.emit()}))};t.prototype.disconnectedCallback=function(){var t;(t=this.alternateLinksObserver)===null||t===void 0?void 0:t.disconnect();dispose()};t.prototype.handleLanguageChangeEvent=function(t){if(t.target instanceof HTMLElement&&t.target.localName==="post-language-menu-item"&&t.detail!==this.language){void this.handleLanguageChange(t.detail)}};t.prototype.fetchHeaderConfig=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:e.trys.push([0,2,,3]);state.projectId=this.project;state.environment=this.environment.toLocaleLowerCase();if(this.language!==undefined)state.currentLanguage=this.language;return[4,this.updateConfig()];case 1:e.sent();return[3,3];case 2:t=e.sent();console.error(t);return[3,3];case 3:return[2]}}))}))};t.prototype.fetchUserData=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,n;return __generator(this,(function(r){switch(r.label){case 0:r.trys.push([0,4,,5]);return[4,fetch(SESSION_URL,{credentials:"include"})];case 1:t=r.sent();if(!t.ok)return[3,3];return[4,t.json()];case 2:e=r.sent();state.user=e===null||e===void 0?void 0:e.data;r.label=3;case 3:return[3,5];case 4:n=r.sent();return[3,5];case 5:return[2]}}))}))};t.prototype.updateConfig=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=state;return[4,getLocalizedConfig({projectId:this.project,environment:this.environment,language:t!==null&&t!==void 0?t:this.language})];case 1:e.localizedConfig=n.sent();this.updateActiveUrl();return[2]}}))}))};t.prototype.initAlternateLinks=function(){state.alternateLinks=getAlternateLinks()};t.prototype.observeAlternateLinks=function(){this.alternateLinksObserver=observeAlternateLinks((function(t){state.alternateLinks=t}))};t.prototype.updateActiveUrl=function(){state.activeLink=getActiveLink(this.activeRoute)};t.prototype.getUserMenuOptions=function(t){var e;return __spreadArray(__spreadArray(__spreadArray([],t.userProfile?[t.userProfile]:[],true),t.settings?[t.settings]:[],true),(e=t.userLinks)!==null&&e!==void 0?e:[],true)};t.prototype.getLanguageUrl=function(t,e){var n;return(n=state.alternateLinks.get(t.toLowerCase()))!==null&&n!==void 0?n:e};t.prototype.renderNavItem=function(t,e){if(e===void 0){e={}}if("url"in t){return h(Link,__assign(__assign({},e),{config:t}))}return h(UserMenu,{slot:e.slot,config:t,textCurrentUser:this.textCurrentUser,textAccessUserLinks:this.textAccessUserLinks,textUserLinks:this.textUserLinks})};t.prototype.renderNavigation=function(t,e,n){var r=this;if(n===void 0){n={}}if(e.length===0)return null;if(e.length===1){return this.renderNavItem(e[0],__assign(__assign({},n),{slot:t}))}return h("ul",{slot:t},e.map((function(t){return h("li",{key:"url"in t?t.url:t.user.email},r.renderNavItem(t,n))})))};t.prototype.render=function(){var t=this;var e;if(!((e=state.localizedConfig)===null||e===void 0?void 0:e.header)){console.error(new Error("Internet Header: Config cannot be loaded"));return}var n=state.localizedConfig.header,r=n.globalHeader,i=n.localHeader;return h(Host,{"data-version":version},h("post-header",{textMenu:this.textMenu},"image"in r.postLogo?h(Link,{slot:"post-logo",config:r.postLogo}):h("post-logo",{slot:"post-logo",url:r.postLogo.url,"aria-label":r.postLogo.label,"aria-description":r.postLogo.description},r.postLogo.text),r.audience&&this.renderNavigation("audience",r.audience,{ariaCurrentWhenActive:"location"}),r.primaryNavigation&&this.renderNavigation("global-nav-primary",r.primaryNavigation),r.secondaryNavigation&&this.renderNavigation("global-nav-secondary",r.secondaryNavigation,{ariaCurrentWhenActive:"location"}),r.languages&&r.languages.length>0&&h("post-language-menu",{slot:"language-menu",textChangeLanguage:this.textChangeLanguage,textCurrentLanguage:this.textCurrentLanguage},r.languages.map((function(e){return h("post-language-menu-item",{key:e.code,url:t.getLanguageUrl(e.code,e.url),active:e.active,code:e.code,name:e.label,description:e.description},e.text)}))),r.postLogin&&this.renderNavItem(state.user?{user:state.user,options:this.getUserMenuOptions(r.postLogin),accountSwitch:r.postLogin.accountSwitch,companySwitch:r.postLogin.companySwitch,logoutLink:r.postLogin.logoutLink}:r.postLogin.loginLink,{slot:"post-login"}),i.title&&h("p",{slot:"title"},i.title),i.navigation&&this.renderNavigation("local-nav",i.navigation),i.mainNavigation&&i.mainNavigation.length>0&&h("post-mainnavigation",{slot:"main-nav",textMain:this.textMain},h("ul",null,i.mainNavigation.map((function(e){return h("li",{key:"url"in e?e.url:e.trigger.text},"url"in e?h(Link,{config:e,ariaCurrentWhenActive:"page"}):h(MegaDropdown,{config:e,textBack:t.textBack,textClose:t.textClose}))}))))))};Object.defineProperty(t,"watchers",{get:function(){return{activeRoute:[{handleActiveRouteChange:0}],language:[{handleLanguageChange:0}]}},enumerable:false,configurable:true});return t}();export{PostInternetHeader as swisspost_internet_header};
@@ -1 +1 @@
1
- export{swisspost_internet_footer as PostInternetFooter}from"./swisspost-internet-footer.entry.esm.js";export{swisspost_internet_header as PostInternetHeader}from"./swisspost-internet-header.entry.esm.js";import"./p-h3opCZqH.js";import"./p-EbHv-NGg.js";
1
+ export{swisspost_internet_footer as PostInternetFooter}from"./swisspost-internet-footer.entry.esm.js";export{swisspost_internet_header as PostInternetHeader}from"./swisspost-internet-header.entry.esm.js";import"./p-h3opCZqH.js";import"./p-B86vJMfc.js";
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as e,g as o}from"./p-h3opCZqH.js";import{v as h}from"./p-YQBh4peU.js";import{E as a}from"./p-rEfV4v4a.js";const n=class{constructor(i){t(this,i),this.postOptionActive=s(this,"postOptionActive"),this.highlightedIndex=-1,this.visibleOptions=[],this.diacriticPattern=/[\u0300-\u036F]/u,this.registerOptions=()=>{this.visibleOptions=this.options},this.updateSelection=t=>{this.options.forEach((s=>{s.selected=s.value===t,s.highlighted=!1})),this.highlightedIndex=-1,this.filter("")},this.clearActive=()=>{this.highlightedIndex=-1,this.postOptionActive.emit(null)},this.normalizeText=t=>t.trim().normalize("NFD").replace(this.diacriticPattern,"").toLocaleLowerCase(),this.resetFilter=()=>{this.visibleOptions=this.options,this.options.forEach((t=>{t.hidden=!1,t.highlighted=!1}))}}get options(){return Array.from(this.host.querySelectorAll("post-listbox-option"))}get inputElement(){let t=this.host.closest("post-autocomplete");return t||(t=document.querySelector(`post-autocomplete[listbox="${this.host.id}"]`)),t?.querySelector("input")}componentWillLoad(){this.registerOptions()}async show(){const t=this.inputElement;t&&this.popoverContainer?.show(t)}async hide(){this.popoverContainer?.hide()}async filter(t){const s=this.normalizeText(t);s?this.visibleOptions=this.options.filter((t=>{const i=this.normalizeText(t.textContent),e=this.normalizeText(t.value).includes(s)||i.includes(s);return t.hidden=!e,e})):this.resetFilter(),this.clearActive()}async clearSelection(){this.updateSelection()}async navigate(t){if(0===this.visibleOptions.length)return;switch(this.highlightedIndex>=0&&(this.visibleOptions[this.highlightedIndex].highlighted=!1),t){case"first":this.highlightedIndex=0;break;case"last":this.highlightedIndex=this.visibleOptions.length-1;break;case"up":this.highlightedIndex=(this.highlightedIndex-1+this.visibleOptions.length)%this.visibleOptions.length;break;case"down":this.highlightedIndex=(this.highlightedIndex+1)%this.visibleOptions.length}const s=this.visibleOptions[this.highlightedIndex];s.scrollIntoView({behavior:"smooth",block:"end"}),s.highlighted=!0,this.postOptionActive.emit(s.id)}async selectActive(){if(this.highlightedIndex>=0){const t=this.visibleOptions[this.highlightedIndex];this.updateSelection(t.value),this.host.dispatchEvent(new CustomEvent("postOptionSelected",{bubbles:!0,detail:t.value}))}}optionClicked(t){this.updateSelection(t.detail)}render(){return i(e,{key:"d9008aa55aca4e0a65fdffd67485d74ddc4069f6","data-version":h,role:"listbox"},i("post-popovercontainer",{key:"5ba4d68483581101ca4bf6fea04102fa883b71d1",placement:"bottom-start",ref:t=>this.popoverContainer=t},i("slot",{key:"286a31eff1b70ec35efcfa745103933598589f2a",name:"blank-slate"}),i("slot",{key:"4cebce7de3143c3eb1deafa57209f7295aa6ec44"})))}get host(){return o(this)}};(function(t,s,i,e){var o,h=arguments.length,a=h<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 n=t.length-1;n>=0;n--)(o=t[n])&&(a=(h<3?o(a):h>3?o(s,i,a):o(s,i))||a);h>3&&a&&Object.defineProperty(s,i,a)})([a("post-listbox-option")],n.prototype,"optionClicked",null),n.style="post-popovercontainer{border-radius:4px;overflow:hidden;-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}div[role=listbox]{max-height:384px;overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}";export{n as post_listbox}
1
+ import{r as t,c as s,h as i,H as e,g as o}from"./p-h3opCZqH.js";import{v as h}from"./p-D9jUbrFT.js";import{E as a}from"./p-rEfV4v4a.js";const n=class{constructor(i){t(this,i),this.postOptionActive=s(this,"postOptionActive"),this.highlightedIndex=-1,this.visibleOptions=[],this.diacriticPattern=/[\u0300-\u036F]/u,this.registerOptions=()=>{this.visibleOptions=this.options},this.updateSelection=t=>{this.options.forEach((s=>{s.selected=s.value===t,s.highlighted=!1})),this.highlightedIndex=-1,this.filter("")},this.clearActive=()=>{this.highlightedIndex=-1,this.postOptionActive.emit(null)},this.normalizeText=t=>t.trim().normalize("NFD").replace(this.diacriticPattern,"").toLocaleLowerCase(),this.resetFilter=()=>{this.visibleOptions=this.options,this.options.forEach((t=>{t.hidden=!1,t.highlighted=!1}))}}get options(){return Array.from(this.host.querySelectorAll("post-listbox-option"))}get inputElement(){let t=this.host.closest("post-autocomplete");return t||(t=document.querySelector(`post-autocomplete[listbox="${this.host.id}"]`)),t?.querySelector("input")}componentWillLoad(){this.registerOptions()}async show(){const t=this.inputElement;t&&this.popoverContainer?.show(t)}async hide(){this.popoverContainer?.hide()}async filter(t){const s=this.normalizeText(t);s?this.visibleOptions=this.options.filter((t=>{const i=this.normalizeText(t.textContent),e=this.normalizeText(t.value).includes(s)||i.includes(s);return t.hidden=!e,e})):this.resetFilter(),this.clearActive()}async clearSelection(){this.updateSelection()}async navigate(t){if(0===this.visibleOptions.length)return;switch(this.highlightedIndex>=0&&(this.visibleOptions[this.highlightedIndex].highlighted=!1),t){case"first":this.highlightedIndex=0;break;case"last":this.highlightedIndex=this.visibleOptions.length-1;break;case"up":this.highlightedIndex=(this.highlightedIndex-1+this.visibleOptions.length)%this.visibleOptions.length;break;case"down":this.highlightedIndex=(this.highlightedIndex+1)%this.visibleOptions.length}const s=this.visibleOptions[this.highlightedIndex];s.scrollIntoView({behavior:"smooth",block:"end"}),s.highlighted=!0,this.postOptionActive.emit(s.id)}async selectActive(){if(this.highlightedIndex>=0){const t=this.visibleOptions[this.highlightedIndex];this.updateSelection(t.value),this.host.dispatchEvent(new CustomEvent("postOptionSelected",{bubbles:!0,detail:t.value}))}}optionClicked(t){this.updateSelection(t.detail)}render(){return i(e,{key:"d9008aa55aca4e0a65fdffd67485d74ddc4069f6","data-version":h,role:"listbox"},i("post-popovercontainer",{key:"5ba4d68483581101ca4bf6fea04102fa883b71d1",placement:"bottom-start",ref:t=>this.popoverContainer=t},i("slot",{key:"286a31eff1b70ec35efcfa745103933598589f2a",name:"blank-slate"}),i("slot",{key:"4cebce7de3143c3eb1deafa57209f7295aa6ec44"})))}get host(){return o(this)}};(function(t,s,i,e){var o,h=arguments.length,a=h<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 n=t.length-1;n>=0;n--)(o=t[n])&&(a=(h<3?o(a):h>3?o(s,i,a):o(s,i))||a);h>3&&a&&Object.defineProperty(s,i,a)})([a("post-listbox-option")],n.prototype,"optionClicked",null),n.style="post-popovercontainer{border-radius:4px;overflow:hidden;-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}div[role=listbox]{max-height:384px;overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}";export{n as post_listbox}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as e,g as o}from"./p-h3opCZqH.js";import{v as n}from"./p-YQBh4peU.js";import{d as h}from"./p-C9hMpmsD.js";import{R as a}from"./p-DvaRK2lz.js";import{T as c}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const r=class{constructor(i){t(this,i),this.postFilteringEvent=s(this,"postFilteringEvent"),this.debouncedHandleInput=h((t=>{this.handleInput(t)}),250),this.filterThreshold=0,this.clearable=!1,this.inputValue="",this.handleFocus=()=>{0===this.filterThreshold&&(this.inputElement&&""!==this.inputElement.value.trim()||this.postFilteringEvent.emit(""))},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),this.inputElement.addEventListener("focus",this.handleFocus))}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),this.inputElement.removeEventListener("focus",this.handleFocus))}attachListboxListeners(){this.listBoxElement&&(this.listBoxElement.addEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.addEventListener("postOptionActive",this.handleOptionActive))}detachListboxListeners(){this.listBoxElement&&(this.listBoxElement.removeEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.removeEventListener("postOptionActive",this.handleOptionActive))}clearAnnouncement(){this.outputElement&&(this.outputElement.textContent="")}announceCount(){if(!this.outputElement||!this.listBoxElement)return;const t=this.listBoxElement.querySelectorAll("post-listbox-option:not([hidden])").length;this.outputElement.textContent=this.textAvailableSuggestions.replace("{count}",String(t))}render(){return i(e,{key:"ef5b821b235c6e6a19e9da612a7c3fbc33408e44","data-version":n},i("slot",{key:"a7855fd0e992be6c4fd737e9b7f29c77c1ec8e7f"}),this.clearable&&this.inputValue&&i("button",{key:"16a690d24deb1ac1cd50c85cea857ad3e5736fac",type:"button",class:"autocomplete-clear",onClick:this.clearInput},i("post-icon",{key:"f254bd331fb15ca6cb5a32ac2a5f5a25cb8e81ea","aria-hidden":"true",name:"closex"})),i("post-icon",{key:"87faa8280bb58683262ec40dbec383478c5999f5","aria-hidden":"true",class:"autocomplete-icon",name:"chevronDown"}),i("output",{key:"9f8ad0d40d1e12f611f4f2e9e14058dbcca3892e",class:"visually-hidden",ref:t=>this.outputElement=t}))}get host(){return o(this)}};(function(t,s,i,e){var o,n=arguments.length,h=n<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,s,i,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(h=(n<3?o(h):n>3?o(s,i,h):o(s,i))||h);n>3&&h&&Object.defineProperty(s,i,h)})([a(),c("string")],r.prototype,"textAvailableSuggestions",void 0),r.style=":host{position:relative;display:block}.autocomplete-icon,.autocomplete-clear{position:absolute;inset-block-start:16px}@media screen and (min-width: 780px){.autocomplete-icon,.autocomplete-clear{inset-block-start:20px}}.autocomplete-icon{inset-inline-end:16px;width:24px;height:24px;pointer-events:none;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out, -webkit-transform .2s ease-in-out}:host([open]) .autocomplete-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.autocomplete-clear{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;inset-inline-end:42px;background:none;border:none;cursor:pointer}.autocomplete-clear>post-icon{width:20px;height:20px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";export{r as post_autocomplete}
1
+ import{r as t,c as s,h as i,H as e,g as o}from"./p-h3opCZqH.js";import{v as n}from"./p-D9jUbrFT.js";import{d as h}from"./p-C9hMpmsD.js";import{R as a}from"./p-DvaRK2lz.js";import{T as c}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const r=class{constructor(i){t(this,i),this.postFilteringEvent=s(this,"postFilteringEvent"),this.debouncedHandleInput=h((t=>{this.handleInput(t)}),250),this.filterThreshold=0,this.clearable=!1,this.inputValue="",this.handleFocus=()=>{0===this.filterThreshold&&(this.inputElement&&""!==this.inputElement.value.trim()||this.postFilteringEvent.emit(""))},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),this.inputElement.addEventListener("focus",this.handleFocus))}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),this.inputElement.removeEventListener("focus",this.handleFocus))}attachListboxListeners(){this.listBoxElement&&(this.listBoxElement.addEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.addEventListener("postOptionActive",this.handleOptionActive))}detachListboxListeners(){this.listBoxElement&&(this.listBoxElement.removeEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.removeEventListener("postOptionActive",this.handleOptionActive))}clearAnnouncement(){this.outputElement&&(this.outputElement.textContent="")}announceCount(){if(!this.outputElement||!this.listBoxElement)return;const t=this.listBoxElement.querySelectorAll("post-listbox-option:not([hidden])").length;this.outputElement.textContent=this.textAvailableSuggestions.replace("{count}",String(t))}render(){return i(e,{key:"ef5b821b235c6e6a19e9da612a7c3fbc33408e44","data-version":n},i("slot",{key:"a7855fd0e992be6c4fd737e9b7f29c77c1ec8e7f"}),this.clearable&&this.inputValue&&i("button",{key:"16a690d24deb1ac1cd50c85cea857ad3e5736fac",type:"button",class:"autocomplete-clear",onClick:this.clearInput},i("post-icon",{key:"f254bd331fb15ca6cb5a32ac2a5f5a25cb8e81ea","aria-hidden":"true",name:"closex"})),i("post-icon",{key:"87faa8280bb58683262ec40dbec383478c5999f5","aria-hidden":"true",class:"autocomplete-icon",name:"chevronDown"}),i("output",{key:"9f8ad0d40d1e12f611f4f2e9e14058dbcca3892e",class:"visually-hidden",ref:t=>this.outputElement=t}))}get host(){return o(this)}};(function(t,s,i,e){var o,n=arguments.length,h=n<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,s,i,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(h=(n<3?o(h):n>3?o(s,i,h):o(s,i))||h);n>3&&h&&Object.defineProperty(s,i,h)})([a(),c("string")],r.prototype,"textAvailableSuggestions",void 0),r.style=":host{position:relative;display:block}.autocomplete-icon,.autocomplete-clear{position:absolute;inset-block-start:16px}@media screen and (min-width: 780px){.autocomplete-icon,.autocomplete-clear{inset-block-start:20px}}.autocomplete-icon{inset-inline-end:16px;width:24px;height:24px;pointer-events:none;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out, -webkit-transform .2s ease-in-out}:host([open]) .autocomplete-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.autocomplete-clear{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;inset-inline-end:42px;background:none;border:none;cursor:pointer}.autocomplete-clear>post-icon{width:20px;height:20px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";export{r as post_autocomplete}
@@ -0,0 +1 @@
1
+ System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js"],(function(e){"use strict";var t,i,o,r;return{setters:[function(e){t=e.r;i=e.h;o=e.H},function(e){r=e.v}],execute:function(){var c=function(){return':host{grid-row:1;position:relative;-webkit-padding-start:0;padding-inline-start:0}:host::before,:host::after{content:"";display:block;position:absolute;inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - 2px)/2);height:2px;background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);inset-inline:0}:host(:not(:first-of-type)){-webkit-padding-start:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2);padding-inline-start:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2)}:host(:not(:last-of-type)){-webkit-padding-end:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2);padding-inline-end:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2);grid-column:span 2}:host(:not(:first-of-type,:last-of-type))::before{inset-inline-end:50%}:host(:not(:first-of-type,:last-of-type))::after{inset-inline-start:50%}:host(.stepper-item-current:not(:last-of-type))::after,:host(.stepper-item-current:first-of-type)::before,:host(.stepper-item-after-current)::before,:host(.stepper-item-after-current:last-of-type)::after{background-color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::before,:host(.stepper-item-completed)::after{background-color:var(--post-scheme-color-interactive-primary-selected-bg2);z-index:1}.stepper-item-content{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;position:relative;z-index:2;overflow:hidden;text-decoration:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;overflow-wrap:anywhere;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;line-break:strict;font-size:var(--post-device-font-size-7)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content{margin-inline:auto;text-align:center}:host(:last-of-type)>.stepper-item-content{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:-20px;margin-inline-end:-20px;text-align:end}:host(.stepper-item-completed)>.stepper-item-content{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-selected)>.stepper-item-content{font-weight:var(--post-device-font-weight-bold)}:host(.stepper-item-selected)>.stepper-item-content::before{font-weight:var(--post-device-font-weight-regular)}:host(.stepper-item-current)>.stepper-item-content{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current)>.stepper-item-content::before{color:var(--post-scheme-color-interactive-primary-enabled-fg3)}.stepper-item-content::before{content:var(--step-number, "?");display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1;height:var(--post-device-sizing-interactive-stepper-indicator);width:var(--post-device-sizing-interactive-stepper-indicator);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-margin-after:var(--post-device-spacing-gap-1);margin-block-end:var(--post-device-spacing-gap-1);color:var(--post-scheme-color-interactive-primary-disabled-fg3);background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-disabled-stroke3);border-radius:var(--post-device-border-radius-round);text-indent:initial}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::before{margin-inline:auto}:host(:last-of-type)>.stepper-item-content::before{-webkit-margin-start:auto;margin-inline-start:auto}:host(.stepper-item-completed)>.stepper-item-content::before{color:rgba(0,0,0,0);background-color:var(--post-scheme-color-interactive-primary-selected-bg2);border-color:var(--post-scheme-color-interactive-primary-selected-stroke3)}:host(.stepper-item-current)>.stepper-item-content::before{color:var(--post-scheme-color-interactive-primary-enabled-fg3);background-color:var(--post-scheme-color-interactive-primary-enabled-bg2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3)}.stepper-item-content::after{display:block;position:absolute;inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2);z-index:1;-webkit-mask-image:var(--post-icon-checkmark-solid);mask-image:var(--post-icon-checkmark-solid);background-color:currentColor;width:var(--post-device-sizing-interactive-icon-size7);height:var(--post-device-sizing-interactive-icon-size7);background-color:var(--post-scheme-color-interactive-primary-enabled-fg3)}:root,:host{--post-icon-checkmark-solid:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hlY2ttYXJrLXNvbGlkIj48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0ibTcuNDkgMTIuOTktMy42NC0zLjljLS40Ny0uNS0uNDQtMS4zLjA2LTEuNzdzMS4yOS0uNDQgMS43Ny4wNmwxLjQ4IDEuNTggMy4wNS00LjYyYy4zOC0uNTggMS4xNi0uNzQgMS43My0uMzUuNTguMzguNzQgMS4xNi4zNSAxLjczeiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InMyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJtMTEuMTggMTguODgtNS4xNC01LjUxYTEuNSAxLjUgMCAwIDEgLjA3LTIuMTJjLjYtLjU2IDEuNTUtLjUzIDIuMTIuMDdsMi41NCAyLjcyIDQuODQtNy4zM2MuNDYtLjY5IDEuMzktLjg4IDIuMDgtLjQzLjY5LjQ2Ljg4IDEuMzkuNDMgMi4wOGwtNi45NCAxMC41MVoiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTE0Ljg3IDI0LjgxIDguMjMgMTcuN2MtLjY2LS43MS0uNjItMS44MS4wOC0yLjQ3LjcxLS42NiAxLjgxLS42MiAyLjQ3LjA4bDMuNjEgMy44NiA2LjYyLTEwLjA0Yy41My0uODEgMS42Mi0xLjAzIDIuNDItLjUuODEuNTMgMS4wMyAxLjYyLjUgMi40MkwxNC44NiAyNC44WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJtMTguNTYgMzAuNi04LjE0LTguNzFjLS43NS0uODEtLjcxLTIuMDcuMS0yLjgzLjgxLS43NSAyLjA3LS43MSAyLjgzLjFsNC42NyA1IDguNDEtMTIuNzRhMiAyIDAgMCAxIDMuMzQgMi4yeiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0OCIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJtMjIuMjYgMzYuNTctOS42My0xMC4zMmMtLjg1LS45MS0uOC0yLjMzLjExLTMuMThzMi4zMy0uOCAzLjE4LjExbDUuNzQgNi4xNCAxMC4yLTE1LjQ1YTIuMjU0IDIuMjU0IDAgMCAxIDMuMTItLjY0YzEuMDQuNjggMS4zMiAyLjA4LjY0IDMuMTJMMjIuMjcgMzYuNTdaIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczY0IiB2aWV3Qm94PSIwIDAgNjQgNjQiPjxwYXRoIGQ9Ik0yOS42MSA0Ny45MSAxNy4yIDM0LjYyYTIuNDk3IDIuNDk3IDAgMSAxIDMuNjUtMy40MWw4LjA4IDguNjUgMTMuOTUtMjEuMTNhMi40OTkgMi40OTkgMCAwIDEgNC4xNyAyLjc1TDI5LjYgNDcuOTFaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZWNrbWFyay1zb2xpZCIvPjwvZz48L3N2Zz4=")}:host(:first-of-type)>.stepper-item-content::after{inset-inline-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::after{inset-inline-start:calc(50% - var(--post-device-sizing-interactive-icon-size7)/2)}:host(:last-of-type)>.stepper-item-content::after{inset-inline-end:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2)}:host(.stepper-item-completed)>.stepper-item-content::after{content:""}:host([aria-current=step])>.stepper-item-content::after{-webkit-mask-image:var(--post-icon-edit-solid);mask-image:var(--post-icon-edit-solid);background-color:currentColor;width:var(--post-device-sizing-interactive-icon-size4);height:var(--post-device-sizing-interactive-icon-size4);background-color:var(--post-scheme-color-interactive-primary-enabled-fg3);inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}:root,:host{--post-icon-edit-solid:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktZWRpdC1zb2xpZCI+PHN5bWJvbCBpZD0iczE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiPjxwYXRoIGQ9Im0xLjUgMTAuOTkgOC41LTguNXMuMDMuMDUuMDUuMDdsMy41IDMuNDUtOC41MiA4LjUxem0tLjkyIDEuMi0uNTYgMy44IDMuODEtLjU2LTMuMjQtMy4yNFptMTUuMjUtOS4zN0wxMy4xOS4xOGEuNjMuNjMgMCAwIDAtLjg4IDBsLTEuMjcgMS4yN3MuMDQuMDIuMDYuMDRsMy41IDMuNDUgMS4yMy0xLjIzYy4yNC0uMjQuMjQtLjY0IDAtLjg4WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InMyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNNS44NCAyMy4xNS4wMiAyNGwuODUtNS44MnptMS40MS0xLjA4TDIwLjQ5IDguODNsLTUuMjUtNS4xN3MtLjA0LS4wNy0uMDctLjFMMS45NSAxNi43OGw1LjMgNS4zWm0xNi41LTE3LjgzTDE5Ljc4LjI3YS45MzYuOTM2IDAgMCAwLTEuMzMgMGwtMi4wOSAyLjA5cy4wNi4wMy4wOS4wNmw1LjI2IDUuMTggMi4wMy0yLjAzYy4zNy0uMzcuMzctLjk2IDAtMS4zM1oiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0ibTguMDcgMzAuNzctOC4wNCAxLjIgMS4yMS04LjA3em0xLjUzLTEuMzEgMTcuODMtMTcuODQtNi45OS02Ljg5cy0uMDYtLjA5LS4wOS0uMTRMMi41NiAyMi4zOGw3LjAzIDcuMDdaTTMxLjY2IDUuNjIgMjYuMzcuMzNjLS40OS0uNDktMS4yOC0uNDktMS43NiAwbC0yLjg5IDIuODlzLjA5LjA0LjEyLjA4bDcuMDEgNi45IDIuODItMi44MmMuNDktLjQ5LjQ5LTEuMjggMC0xLjc2WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMi40MSAyOC43OSAyNS41MiA1LjcxYy4wNC4wNi4wNi4xMi4xMS4xN2w4Ljc0IDguNkwxMS4yMyAzNy42em0tMS4wMiAyLjE2TC4wNCA0MC4wMWw5LjA0LTEuMzktNy42OS03LjY4Wk0zOS41OCA3LjA3IDMyLjk3LjQ3Yy0uNjEtLjYxLTEuNi0uNjEtMi4yMSAwbC0zLjcgMy43Yy4wNS4wNC4xMS4wNi4xNS4xbDguNzYgOC42MSAzLjYxLTMuNjFjLjYxLS42MS42MS0xLjYgMC0yLjIiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTIuODMgMzQuNTggMzEuMyA2LjExYy4wNS4wNy4wOC4xNC4xNC4ybDEwLjQ5IDEwLjMzLTI4LjU1IDI4LjU0em0tMS4xOCAyLjM2TDAgNDhsMTAuOTktMS42NnpNNDcuNDYgOC40NyAzOS41My41NGMtLjczLS43My0xLjkyLS43My0yLjY1IDBsLTMuODcgMy44N2MuMDYuMDQuMTMuMDcuMTkuMTJsMTAuNTEgMTAuMzQgMy43NS0zLjc1Yy43My0uNzMuNzMtMS45MiAwLTIuNjUiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCI+PHBhdGggZD0iTTE1LjA4IDYxLjcyIDAgNjMuOThsMi4zLTE1LjA0ek00Mi41MiA3Ljg0Yy0uMDgtLjA4LS4xMy0uMTgtLjE5LS4yOEwzLjU5IDQ2LjM0bDE0LjA5IDE0LjA5LTEuMDcgMS4wN2guMDJMNTYuNSAyMS42em0yMC43NiAzLjQ1TDUyLjcxLjcxYy0uOTctLjk3LTIuNTUtLjk3LTMuNTMgMGwtNC45OSA1Yy4wOS4wNS4xOC4xLjI2LjE3bDEzLjk5IDEzLjc4IDQuODQtNC44NGMuOTctLjk3Ljk3LTIuNTUgMC0zLjUzIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWVkaXQtc29saWQiLz48L2c+PC9zdmc+")}:host([aria-current=step]:first-of-type)>.stepper-item-content::after{inset-inline-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}:host([aria-current=step]:not(:first-of-type,:last-of-type))>.stepper-item-content::after{inset-inline-start:calc(50% - var(--post-device-sizing-interactive-icon-size4)/2)}:host([aria-current=step]:last-of-type)>.stepper-item-content::after{inset-inline-end:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}@media screen and (max-width: 779.98px){:host{-ms-flex-positive:1;flex-grow:1;margin-inline:0;padding:0 !important}:host::before{content:unset}:host::after{inset-inline-start:0 !important}:host(:last-of-type){-ms-flex:0 0 32px;flex:0 0 32px}:host(:last-of-type)::after{content:unset}.stepper-item-content{margin-inline:0 !important}.label{display:none}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host::before,:host::after{background-color:CanvasText !important}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::after,:host(.stepper-item-completed)::before{background-color:Highlight !important}.stepper-item-content::before{forced-color-adjust:none}:host(.stepper-item-current) .stepper-item-content::before{background-color:Canvas;color:CanvasText}:host(.stepper-item-completed) .stepper-item-content::before,:host(.stepper-item-inactive) .stepper-item-content::before{border-color:Canvas;background-color:CanvasText}:host(.stepper-item-inactive) .stepper-item-content::before{color:Canvas}.stepper-item-content::after{color:Canvas}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}'};var s=e("post_stepper_item",function(){function e(e){t(this,e)}e.prototype.render=function(){return i(o,{key:"53b052a2b68a93df9fda7f80f23d602d8a8efc56","data-version":r,role:"listitem"},i("span",{key:"e06841841e7fad42ff9de3e39dadf5fab96b9952",class:"stepper-item-content"},i("span",{key:"f934ef19fbdd65111b7cf561dcc9297122d62595",class:"step-hidden-label visually-hidden"}),i("span",{key:"213db918f5ab854225974678c50176bb565ac2b1",class:"label"},i("slot",{key:"d8e067ea304700e37edb996a4c715d41e209b8d8"}))))};return e}());s.style=c()}}}));
@@ -1 +1 @@
1
- import{r as o,h as e,H as t,g as i}from"./p-h3opCZqH.js";import{v as s}from"./p-YQBh4peU.js";import{U as c}from"./p-C6RsLT58.js";import"./p-vAzHgwTd.js";const r=class{constructor(e){o(this,e)}componentDidLoad(){this.checkDescription()}checkDescription(){this.host.textContent||console.warn("Be sure to add descriptive text in the post-logo to ensure good accessibility of the component.")}render(){const o=this.url&&("string"==typeof this.url?this.url:this.url.href);return e(t,{key:"84ece8e71d7dec66aa634d9a8a37d6bf3197c1b6","data-version":s},e(o?"a":"span",{key:"1531c6e8f32d42e63f5482d2983f18e4c9a23b1a",class:"logo "+(o?"logo-link":""),...o?{href:o}:{}},e("span",{key:"d45d33329e30de0de9de56f2d588995a7f97d01e",class:"description"},e("slot",{key:"e8665c8d739dc2a2968bf1193c26ba1d1e731b38",onSlotchange:()=>this.checkDescription()})),e("svg",{key:"bb3f534952e29e2e43816c5a5dd55541d05bee26",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72","aria-hidden":"true"},e("g",{key:"9ca05c263f6c9f41cc5406ccfd030a713ffe0254",id:"Logo"},e("rect",{key:"30a59adc0eec11af2d90180da1f5a95b03175d21",fill:"#ffcc00",x:"0",y:"0",width:"72",height:"72"}),e("polygon",{key:"b1cbe7c575d36cf26a1cc41c9124625c2d1e5ef1",fill:"#ff0000",points:"34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3"}),e("path",{key:"398027f23c8c9a4cf2bc7f8d7c8aa4ec0466f0be",d:"M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z"})))))}get host(){return i(this)}};(function(o,e,t,i){var s,c=arguments.length,r=c<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(c<3?s(r):c>3?s(e,t,r):s(e,t))||r);c>3&&r&&Object.defineProperty(e,t,r)})([c()],r.prototype,"url",void 0),r.style=":host,.logo{display:inline-block}:host,:host .logo>svg,.logo,.logo .logo>svg{height:100%}.description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.logo-link{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.logo-link{outline-offset:var(--post-device-spacing-padding-28) !important}.logo-link:focus,.logo-link:focus-visible{border-radius:var(--post-device-border-radius-focus)}";export{r as post_logo}
1
+ import{r as o,h as e,H as t,g as i}from"./p-h3opCZqH.js";import{v as s}from"./p-D9jUbrFT.js";import{U as c}from"./p-C6RsLT58.js";import"./p-vAzHgwTd.js";const r=class{constructor(e){o(this,e)}componentDidLoad(){this.checkDescription()}checkDescription(){this.host.textContent||console.warn("Be sure to add descriptive text in the post-logo to ensure good accessibility of the component.")}render(){const o=this.url&&("string"==typeof this.url?this.url:this.url.href);return e(t,{key:"84ece8e71d7dec66aa634d9a8a37d6bf3197c1b6","data-version":s},e(o?"a":"span",{key:"1531c6e8f32d42e63f5482d2983f18e4c9a23b1a",class:"logo "+(o?"logo-link":""),...o?{href:o}:{}},e("span",{key:"d45d33329e30de0de9de56f2d588995a7f97d01e",class:"description"},e("slot",{key:"e8665c8d739dc2a2968bf1193c26ba1d1e731b38",onSlotchange:()=>this.checkDescription()})),e("svg",{key:"bb3f534952e29e2e43816c5a5dd55541d05bee26",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72","aria-hidden":"true"},e("g",{key:"9ca05c263f6c9f41cc5406ccfd030a713ffe0254",id:"Logo"},e("rect",{key:"30a59adc0eec11af2d90180da1f5a95b03175d21",fill:"#ffcc00",x:"0",y:"0",width:"72",height:"72"}),e("polygon",{key:"b1cbe7c575d36cf26a1cc41c9124625c2d1e5ef1",fill:"#ff0000",points:"34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3"}),e("path",{key:"398027f23c8c9a4cf2bc7f8d7c8aa4ec0466f0be",d:"M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z"})))))}get host(){return i(this)}};(function(o,e,t,i){var s,c=arguments.length,r=c<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(s=o[a])&&(r=(c<3?s(r):c>3?s(e,t,r):s(e,t))||r);c>3&&r&&Object.defineProperty(e,t,r)})([c()],r.prototype,"url",void 0),r.style=":host,.logo{display:inline-block}:host,:host .logo>svg,.logo,.logo .logo>svg{height:100%}.description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.logo-link{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.logo-link{outline-offset:var(--post-device-spacing-padding-28) !important}.logo-link:focus,.logo-link:focus-visible{border-radius:var(--post-device-border-radius-focus)}";export{r as post_logo}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,o,i){function r(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,n){function a(t){try{s(i.next(t))}catch(t){n(t)}}function c(t){try{s(i["throw"](t))}catch(t){n(t)}}function s(t){t.done?o(t.value):r(t.value).then(a,c)}s((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,r,n,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=c(0),a["throw"]=c(1),a["return"]=c(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(o=0)),o)try{if(i=1,r&&(n=c[0]&2?r["return"]:c[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;if(r=0,n)c=[c[0]&2,n.value];switch(c[0]){case 0:case 1:n=c;break;case 4:o.label++;return{value:c[1],done:false};case 5:o.label++;r=c[1];c=[0];continue;case 7:c=o.ops.pop();o.trys.pop();continue;default:if(!(n=o.trys,n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){o=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(c[0]===6&&o.label<n[1]){o.label=n[1];n=c;break}if(n&&o.label<n[2]){o.label=n[2];o.ops.push(c);break}if(n[2])o.ops.pop();o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t];r=0}finally{i=n=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-Bz5HDsjW.system.js","./p-D4wq7hIE.system.js","./p-CiwQnVr3.system.js","./p-C1pxTt7y.system.js","./p-Bwi1IyPf.system.js","./p-BMZcKRx0.system.js","./p-qFxyG4GI.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,o,i,r,n,a,c,s,d,l,u,f;return{setters:[function(t){e=t.r;o=t.h;i=t.H;r=t.g;n=t.c},function(t){a=t.v},function(t){c=t.R},function(t){s=t.O},function(t){d=t.E},function(t){l=t.n},function(t){u=t.T},function(t){f=t.g},null],execute:function(){function b(){return globalThis.matchMedia?globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches:true}var h=[1,2,3,4,5,6];var p=function(){return":host{display:block;-webkit-border-before:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke);border-block-start:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}"};var v=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var g=t("post_accordion",function(){function t(t){e(this,t);this.expandedItems=new Set;this.multiple=false}t.prototype.syncHeadingLevel=function(){var t=this;this.accordionItems.forEach((function(e){e.setAttribute("heading-level",String(t.headingLevel))}))};t.prototype.componentWillLoad=function(){this.registerAccordionItems()};t.prototype.componentDidLoad=function(){this.syncHeadingLevel()};t.prototype.collapseToggleHandler=function(t){var e=t.target;var o=this.expandedItems.has(e);if(o){this.expandedItems.delete(e)}else{this.expandedItems.add(e)}if(this.multiple||o)return;Array.from(this.expandedItems.values()).filter((function(t){return t!==e})).forEach((function(t){t.toggle(false)}))};t.prototype.toggle=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(o){switch(o.label){case 0:e=this.accordionItems.find((function(e){return e.id===t}));if(!e)throw new Error("No post-accordion-item found with id #".concat(t,"."));return[4,e.toggle()];case 1:o.sent();return[2]}}))}))};t.prototype.expandAll=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.multiple)return[3,2];return[4,Promise.all(this.accordionItems.map((function(t){return t.toggle(true)})))];case 1:t.sent();return[3,4];case 2:if(!(this.expandedItems.size===0))return[3,4];return[4,this.accordionItems[0].toggle(true)];case 3:t.sent();t.label=4;case 4:return[2]}}))}))};t.prototype.collapseAll=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.accordionItems.map((function(t){return t.toggle(false)})))];case 1:t.sent();return[2]}}))}))};t.prototype.registerAccordionItems=function(){var t=this;this.accordionItems=Array.from(this.host.querySelectorAll("post-accordion-item"));this.accordionItems.filter((function(e){return!e.collapsed||t.expandedItems.has(e)})).forEach((function(e,o){if(!t.multiple&&o!==0){e.setAttribute("collapsed","");return}t.expandedItems.add(e)}))};t.prototype.render=function(){var t=this;return o(i,{key:"4e3df581ac99aa14dfaaab836c90cee788607a76","data-version":a},o("div",{key:"425615868542199dc79439d04b9ca9ba815b05f3",class:"accordion"},o("slot",{key:"ba7c05b69377101275cd76ecffb476516ca52c83",onSlotchange:function(){return t.registerAccordionItems()}})))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{headingLevel:[{syncHeadingLevel:0}]}},enumerable:false,configurable:true});return t}());v([c(),s(h)],g.prototype,"headingLevel",void 0);v([d("post-accordion-item")],g.prototype,"collapseToggleHandler",null);g.style=p();var m=function(){return':host{display:block;-webkit-border-after:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke);border-block-end:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}:host:has(.accordion-button:hover){border-block-end-color:var(--post-scheme-color-interactive-primary-hover-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host:has(.accordion-button:hover){border-block-end-color:Highlight}}:host([collapsed]) .accordion-button post-icon{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.accordion-header{color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-size:var(--post-device-font-size-5);margin:0;line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-extra-black)}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;display:-ms-flexbox;display:flex;position:relative;width:100%;-ms-flex-align:center;align-items:center;text-align:start;gap:var(--post-device-spacing-gap-7);padding-block:var(--post-device-spacing-padding-19);padding-inline:var(--post-device-spacing-padding-5);-webkit-border-after:var(--post-device-border-width-default) var(--post-core-border-style-solid) rgba(0,0,0,0);border-block-end:var(--post-device-border-width-default) var(--post-core-border-style-solid) rgba(0,0,0,0);cursor:pointer;outline:none !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button{background-color:ButtonFace !important}.accordion-button:hover{background-color:Highlight !important}}.accordion-button::before{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}.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus)::before{outline-style:var(--post-core-border-style-solid) !important;display:block;content:"";position:absolute;inset:calc(var(--post-device-border-width-default)*-1) 0 calc(var(--post-device-border-width-default)*-1);border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus)::before{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus)::before{outline-style:var(--post-core-border-style-solid) !important;display:block;content:"";position:absolute;inset:calc(var(--post-device-border-width-default)*-1) 0 calc(var(--post-device-border-width-default)*-1);border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus)::before{outline-color:Highlight !important}}}.accordion-button slot::slotted(span[slot=header]){-ms-flex-positive:1;flex-grow:1}.accordion-button post-icon{-ms-flex:none;flex:none;width:var(--post-core-dimension-24);aspect-ratio:1;-webkit-transition:-webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:var(--post-accordion-icon-initial-transform, none);transform:var(--post-accordion-icon-initial-transform, none)}.accordion-button.collapsed{-webkit-padding-before:var(--post-device-spacing-padding-19);padding-block-start:var(--post-device-spacing-padding-19);-webkit-padding-after:var(--post-device-spacing-padding-19);padding-block-end:var(--post-device-spacing-padding-19)}.accordion-button.collapsed post-icon{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.accordion-button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.accordion-button>::slotted(.text-truncate){display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover,.accordion-button:focus-visible{color:Highlight}}post-collapsible{-webkit-margin-after:calc(var(--post-device-border-width-default)*-1);margin-block-end:calc(var(--post-device-border-width-default)*-1)}.accordion-body{-webkit-padding-before:var(--post-device-spacing-padding-15);padding-block-start:var(--post-device-spacing-padding-15);-webkit-padding-after:var(--post-device-spacing-padding-block-25);padding-block-end:var(--post-device-spacing-padding-block-25);padding-inline:var(--post-device-spacing-padding-5)}.logo-container{display:none;width:var(--post-device-sizing-logo-1);aspect-ratio:1}.logo-container.has-image{display:block}.logo-container slot::slotted(img){display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.accordion-button>::slotted(:first-child),.accordion-body>::slotted(:first-child){-webkit-margin-before:0 !important;margin-block-start:0 !important}.accordion-button>::slotted(:last-child),.accordion-body>::slotted(:last-child){-webkit-margin-after:0 !important;margin-block-end:0 !important}'};var y=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var w=t("post_accordion_item",function(){function t(t){e(this,t);this.collapsed=false}t.prototype.onCollapseToggle=function(t){this.collapsed=!t.detail};t.prototype.toggle=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.collapsible.toggle(t)]}))}))};t.prototype.onSlotLogoChange=function(){this.slottedLogo=this.host.querySelector('img[slot="logo"]')};t.prototype.componentWillRender=function(){this.slottedLogo=this.host.querySelector('img[slot="logo"]')};t.prototype.render=function(){var t=this;var e;var r="c".concat(l(6));var n=(e=this.host.closest("post-accordion"))===null||e===void 0?void 0:e.getAttribute("heading-level");var c="h".concat(n!==null&&n!==void 0?n:2);return o(i,{key:"b9699596d57887d99214c6f163355535c68eae1a","data-version":a},o("post-collapsible-trigger",{key:"ebd7c9d6bf2bc35d548867edc8766e31125d8509",for:r},o(c,{key:"93806261d7dba93569b09d37dff0c01b4f29268b",class:"accordion-header"},o("button",{key:"785a4bcff2c6705aade9b045e1176d43a2ef202b",type:"button",class:"accordion-button".concat(this.collapsed?" collapsed":""),part:"post-accordion-button"},o("span",{key:"87f8ba7f7ebe2ba851b6dc134656296820c467d0",class:{"logo-container":true,"has-image":!!this.slottedLogo}},o("slot",{key:"146256cb174f5895b25fd8f44464ca32fba6b6ee",name:"logo",onSlotchange:this.onSlotLogoChange.bind(this)})),o("slot",{key:"d742ef89a88280f85c7da697536d4ad2ff825f0b",name:"header"}),o("post-icon",{key:"f83e438c9d504ebaa0066df81b6f74ec14dcb08a",name:"chevronup"})))),o("post-collapsible",{key:"179f36eab7ebdb9faa909a70eb43e1d78503e6e1",id:r,collapsed:this.collapsed,ref:function(e){return t.collapsible=e}},o("div",{key:"e93c3570cf76c971b49bf28d3d5540ac289b2469",class:"accordion-body",part:"post-accordion-body"},o("slot",{key:"db26c35edb371cb855141b6f7552d96ea10e06a4"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());y([d("post-accordion-item")],w.prototype,"onCollapseToggle",null);w.style=m();var k=350;var _="ease";var j={height:"0",overflow:"hidden"};var x={duration:b()?0:k,easing:_,fill:"forwards"};function O(t){var e=globalThis.getComputedStyle(t).height;var o={height:e};return t.animate([o,j],x)}function R(t){var e={height:"".concat(t.scrollHeight,"px"),offset:1,overflow:"hidden"};var o={height:"auto",overflow:"visible"};return t.animate([j,e,o],x)}var T=function(){return":host{display:block;position:relative;overflow:var(--post-collapsible-initial-overflow, hidden);height:var(--post-collapsible-initial-height, auto)}"};var z=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var H=t("post_collapsible",function(){function t(t){e(this,t);this.postToggle=n(this,"postToggle");this.collapsed=false}Object.defineProperty(t.prototype,"isExpanded",{get:function(){return!this.collapsed},enumerable:false,configurable:true});t.prototype.componentDidLoad=function(){this.updateTriggers()};t.prototype.toggle=function(){return __awaiter(this,arguments,void 0,(function(t){var e,o;if(t===void 0){t=!this.isExpanded}return __generator(this,(function(i){switch(i.label){case 0:if(t===this.isExpanded)return[2,this.isExpanded];this.collapsed=!t;e=this.isExpanded;o=e?R(this.host):O(this.host);this.postToggle.emit(e);return[4,o.finished];case 1:i.sent();o.commitStyles();this.updateTriggers();return[2,e]}}))}))};t.prototype.updateTriggers=function(){var t=this.host.id?Array.from(document.querySelectorAll('post-collapsible-trigger[for="'.concat(this.host.id,'"]'))):[];var e=this.host.closest("post-collapsible-trigger");if(e&&!t.includes(e)){t.push(e)}t.forEach((function(t){return t.update()}))};t.prototype.render=function(){return o(i,{key:"d4fef8eff9b716e9dff0e570f5993221ca631ed5","data-version":a,tabindex:this.collapsed?-1:undefined,style:this.collapsed?j:undefined},o("slot",{key:"ee957da050187c1cfd752e0dcb6b5f86505f5089"}))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());z([u("boolean")],H.prototype,"collapsed",void 0);H.style=T();var S=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var B=t("post_collapsible_trigger",function(){function t(t){var o=this;e(this,t);this.observer=new MutationObserver((function(){return o.setTrigger()}));this.handlePostToggle=this.handlePostToggle.bind(this)}t.prototype.connectedCallback=function(){this.root=f(this.host);this.root.addEventListener("postToggle",this.handlePostToggle);this.observer.observe(this.host,{childList:true,subtree:true})};t.prototype.componentDidLoad=function(){this.setTrigger();if(!this.trigger)console.warn("The post-collapsible-trigger must contain a button.");if(!this.collapsible){var t=this.for?'with id "'.concat(this.for,'"'):"nested inside <post-collapsible-trigger>";console.warn("No post-collapsible found ".concat(t,'. Either nest a post-collapsible inside the trigger or set the "for" attribute to the id of the collapsible.'))}};t.prototype.disconnectedCallback=function(){var t;this.observer.disconnect();(t=this.root)===null||t===void 0?void 0:t.removeEventListener("postToggle",this.handlePostToggle)};t.prototype.update=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.updateAriaAttributes();return[2]}))}))};t.prototype.handlePostToggle=function(t){if(this.trigger){this.trigger.setAttribute("aria-expanded","".concat(t.detail))}};t.prototype.updateAriaAttributes=function(){var t=this.collapsible;if(!this.trigger||!t)return;t.id||(t.id="collapsible-".concat(crypto.randomUUID()));var e=t.id;var o=this.trigger.getAttribute("aria-controls");var i=o?o.split(/\s+/):[];if(!i.includes(e)){i.push(e);this.trigger.setAttribute("aria-controls",i.join(" "))}this.trigger.setAttribute("aria-expanded","".concat(!t.collapsed))};t.prototype.toggleCollapsible=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,(t=this.collapsible)===null||t===void 0?void 0:t.toggle()];case 1:e.sent();return[2]}}))}))};Object.defineProperty(t.prototype,"collapsible",{get:function(){var t,e,o;var i=(t=this.host.querySelector("post-collapsible"))!==null&&t!==void 0?t:this.for?(o=(e=this.root)===null||e===void 0?void 0:e.getElementById(this.for))!==null&&o!==void 0?o:null:null;if(i&&i.localName==="post-collapsible"){return i}return null},enumerable:false,configurable:true});t.prototype.setTrigger=function(){var t=this;var e=Array.from(this.host.querySelectorAll("button")).find((function(e){var o=e.closest("post-collapsible");var i=!!o&&t.host.contains(o);return!i}));if(!e||this.trigger&&e.isEqualNode(this.trigger))return;this.trigger=e;this.trigger.addEventListener("click",(function(){return t.toggleCollapsible()}));this.updateAriaAttributes()};t.prototype.render=function(){return o(i,{key:"64dde42136274194be6c3c4f94fb87ded8a3a079","data-version":a},o("slot",{key:"f43727ec2f7692793178ad6c162bb56f0f2d842b"}))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());S([u("string")],B.prototype,"for",void 0);S([d("post-collapsible")],B.prototype,"handlePostToggle",null)}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,o,i){function r(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,n){function a(t){try{s(i.next(t))}catch(t){n(t)}}function c(t){try{s(i["throw"](t))}catch(t){n(t)}}function s(t){t.done?o(t.value):r(t.value).then(a,c)}s((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,r,n,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=c(0),a["throw"]=c(1),a["return"]=c(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(o=0)),o)try{if(i=1,r&&(n=c[0]&2?r["return"]:c[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;if(r=0,n)c=[c[0]&2,n.value];switch(c[0]){case 0:case 1:n=c;break;case 4:o.label++;return{value:c[1],done:false};case 5:o.label++;r=c[1];c=[0];continue;case 7:c=o.ops.pop();o.trys.pop();continue;default:if(!(n=o.trys,n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){o=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(c[0]===6&&o.label<n[1]){o.label=n[1];n=c;break}if(n&&o.label<n[2]){o.label=n[2];o.ops.push(c);break}if(n[2])o.ops.pop();o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t];r=0}finally{i=n=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js","./p-D4wq7hIE.system.js","./p-CiwQnVr3.system.js","./p-C1pxTt7y.system.js","./p-Bwi1IyPf.system.js","./p-BMZcKRx0.system.js","./p-qFxyG4GI.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,o,i,r,n,a,c,s,d,l,u,f;return{setters:[function(t){e=t.r;o=t.h;i=t.H;r=t.g;n=t.c},function(t){a=t.v},function(t){c=t.R},function(t){s=t.O},function(t){d=t.E},function(t){l=t.n},function(t){u=t.T},function(t){f=t.g},null],execute:function(){function b(){return globalThis.matchMedia?globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches:true}var h=[1,2,3,4,5,6];var p=function(){return":host{display:block;-webkit-border-before:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke);border-block-start:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}"};var v=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var g=t("post_accordion",function(){function t(t){e(this,t);this.expandedItems=new Set;this.multiple=false}t.prototype.syncHeadingLevel=function(){var t=this;this.accordionItems.forEach((function(e){e.setAttribute("heading-level",String(t.headingLevel))}))};t.prototype.componentWillLoad=function(){this.registerAccordionItems()};t.prototype.componentDidLoad=function(){this.syncHeadingLevel()};t.prototype.collapseToggleHandler=function(t){var e=t.target;var o=this.expandedItems.has(e);if(o){this.expandedItems.delete(e)}else{this.expandedItems.add(e)}if(this.multiple||o)return;Array.from(this.expandedItems.values()).filter((function(t){return t!==e})).forEach((function(t){t.toggle(false)}))};t.prototype.toggle=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(o){switch(o.label){case 0:e=this.accordionItems.find((function(e){return e.id===t}));if(!e)throw new Error("No post-accordion-item found with id #".concat(t,"."));return[4,e.toggle()];case 1:o.sent();return[2]}}))}))};t.prototype.expandAll=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.multiple)return[3,2];return[4,Promise.all(this.accordionItems.map((function(t){return t.toggle(true)})))];case 1:t.sent();return[3,4];case 2:if(!(this.expandedItems.size===0))return[3,4];return[4,this.accordionItems[0].toggle(true)];case 3:t.sent();t.label=4;case 4:return[2]}}))}))};t.prototype.collapseAll=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.accordionItems.map((function(t){return t.toggle(false)})))];case 1:t.sent();return[2]}}))}))};t.prototype.registerAccordionItems=function(){var t=this;this.accordionItems=Array.from(this.host.querySelectorAll("post-accordion-item"));this.accordionItems.filter((function(e){return!e.collapsed||t.expandedItems.has(e)})).forEach((function(e,o){if(!t.multiple&&o!==0){e.setAttribute("collapsed","");return}t.expandedItems.add(e)}))};t.prototype.render=function(){var t=this;return o(i,{key:"4e3df581ac99aa14dfaaab836c90cee788607a76","data-version":a},o("div",{key:"425615868542199dc79439d04b9ca9ba815b05f3",class:"accordion"},o("slot",{key:"ba7c05b69377101275cd76ecffb476516ca52c83",onSlotchange:function(){return t.registerAccordionItems()}})))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{headingLevel:[{syncHeadingLevel:0}]}},enumerable:false,configurable:true});return t}());v([c(),s(h)],g.prototype,"headingLevel",void 0);v([d("post-accordion-item")],g.prototype,"collapseToggleHandler",null);g.style=p();var m=function(){return':host{display:block;-webkit-border-after:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke);border-block-end:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}:host:has(.accordion-button:hover){border-block-end-color:var(--post-scheme-color-interactive-primary-hover-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host:has(.accordion-button:hover){border-block-end-color:Highlight}}:host([collapsed]) .accordion-button post-icon{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.accordion-header{color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-size:var(--post-device-font-size-5);margin:0;line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-extra-black)}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;display:-ms-flexbox;display:flex;position:relative;width:100%;-ms-flex-align:center;align-items:center;text-align:start;gap:var(--post-device-spacing-gap-7);padding-block:var(--post-device-spacing-padding-19);padding-inline:var(--post-device-spacing-padding-5);-webkit-border-after:var(--post-device-border-width-default) var(--post-core-border-style-solid) rgba(0,0,0,0);border-block-end:var(--post-device-border-width-default) var(--post-core-border-style-solid) rgba(0,0,0,0);cursor:pointer;outline:none !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button{background-color:ButtonFace !important}.accordion-button:hover{background-color:Highlight !important}}.accordion-button::before{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}.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus)::before{outline-style:var(--post-core-border-style-solid) !important;display:block;content:"";position:absolute;inset:calc(var(--post-device-border-width-default)*-1) 0 calc(var(--post-device-border-width-default)*-1);border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus)::before{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus)::before{outline-style:var(--post-core-border-style-solid) !important;display:block;content:"";position:absolute;inset:calc(var(--post-device-border-width-default)*-1) 0 calc(var(--post-device-border-width-default)*-1);border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus)::before{outline-color:Highlight !important}}}.accordion-button slot::slotted(span[slot=header]){-ms-flex-positive:1;flex-grow:1}.accordion-button post-icon{-ms-flex:none;flex:none;width:var(--post-core-dimension-24);aspect-ratio:1;-webkit-transition:-webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:var(--post-accordion-icon-initial-transform, none);transform:var(--post-accordion-icon-initial-transform, none)}.accordion-button.collapsed{-webkit-padding-before:var(--post-device-spacing-padding-19);padding-block-start:var(--post-device-spacing-padding-19);-webkit-padding-after:var(--post-device-spacing-padding-19);padding-block-end:var(--post-device-spacing-padding-19)}.accordion-button.collapsed post-icon{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.accordion-button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.accordion-button>::slotted(.text-truncate){display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover,.accordion-button:focus-visible{color:Highlight}}post-collapsible{-webkit-margin-after:calc(var(--post-device-border-width-default)*-1);margin-block-end:calc(var(--post-device-border-width-default)*-1)}.accordion-body{-webkit-padding-before:var(--post-device-spacing-padding-15);padding-block-start:var(--post-device-spacing-padding-15);-webkit-padding-after:var(--post-device-spacing-padding-block-25);padding-block-end:var(--post-device-spacing-padding-block-25);padding-inline:var(--post-device-spacing-padding-5)}.logo-container{display:none;width:var(--post-device-sizing-logo-1);aspect-ratio:1}.logo-container.has-image{display:block}.logo-container slot::slotted(img){display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.accordion-button>::slotted(:first-child),.accordion-body>::slotted(:first-child){-webkit-margin-before:0 !important;margin-block-start:0 !important}.accordion-button>::slotted(:last-child),.accordion-body>::slotted(:last-child){-webkit-margin-after:0 !important;margin-block-end:0 !important}'};var y=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var w=t("post_accordion_item",function(){function t(t){e(this,t);this.collapsed=false}t.prototype.onCollapseToggle=function(t){this.collapsed=!t.detail};t.prototype.toggle=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.collapsible.toggle(t)]}))}))};t.prototype.onSlotLogoChange=function(){this.slottedLogo=this.host.querySelector('img[slot="logo"]')};t.prototype.componentWillRender=function(){this.slottedLogo=this.host.querySelector('img[slot="logo"]')};t.prototype.render=function(){var t=this;var e;var r="c".concat(l(6));var n=(e=this.host.closest("post-accordion"))===null||e===void 0?void 0:e.getAttribute("heading-level");var c="h".concat(n!==null&&n!==void 0?n:2);return o(i,{key:"b9699596d57887d99214c6f163355535c68eae1a","data-version":a},o("post-collapsible-trigger",{key:"ebd7c9d6bf2bc35d548867edc8766e31125d8509",for:r},o(c,{key:"93806261d7dba93569b09d37dff0c01b4f29268b",class:"accordion-header"},o("button",{key:"785a4bcff2c6705aade9b045e1176d43a2ef202b",type:"button",class:"accordion-button".concat(this.collapsed?" collapsed":""),part:"post-accordion-button"},o("span",{key:"87f8ba7f7ebe2ba851b6dc134656296820c467d0",class:{"logo-container":true,"has-image":!!this.slottedLogo}},o("slot",{key:"146256cb174f5895b25fd8f44464ca32fba6b6ee",name:"logo",onSlotchange:this.onSlotLogoChange.bind(this)})),o("slot",{key:"d742ef89a88280f85c7da697536d4ad2ff825f0b",name:"header"}),o("post-icon",{key:"f83e438c9d504ebaa0066df81b6f74ec14dcb08a",name:"chevronup"})))),o("post-collapsible",{key:"179f36eab7ebdb9faa909a70eb43e1d78503e6e1",id:r,collapsed:this.collapsed,ref:function(e){return t.collapsible=e}},o("div",{key:"e93c3570cf76c971b49bf28d3d5540ac289b2469",class:"accordion-body",part:"post-accordion-body"},o("slot",{key:"db26c35edb371cb855141b6f7552d96ea10e06a4"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());y([d("post-accordion-item")],w.prototype,"onCollapseToggle",null);w.style=m();var k=350;var _="ease";var j={height:"0",overflow:"hidden"};var x={duration:b()?0:k,easing:_,fill:"forwards"};function O(t){var e=globalThis.getComputedStyle(t).height;var o={height:e};return t.animate([o,j],x)}function R(t){var e={height:"".concat(t.scrollHeight,"px"),offset:1,overflow:"hidden"};var o={height:"auto",overflow:"visible"};return t.animate([j,e,o],x)}var T=function(){return":host{display:block;position:relative;overflow:var(--post-collapsible-initial-overflow, hidden);height:var(--post-collapsible-initial-height, auto)}"};var z=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var H=t("post_collapsible",function(){function t(t){e(this,t);this.postToggle=n(this,"postToggle");this.collapsed=false}Object.defineProperty(t.prototype,"isExpanded",{get:function(){return!this.collapsed},enumerable:false,configurable:true});t.prototype.componentDidLoad=function(){this.updateTriggers()};t.prototype.toggle=function(){return __awaiter(this,arguments,void 0,(function(t){var e,o;if(t===void 0){t=!this.isExpanded}return __generator(this,(function(i){switch(i.label){case 0:if(t===this.isExpanded)return[2,this.isExpanded];this.collapsed=!t;e=this.isExpanded;o=e?R(this.host):O(this.host);this.postToggle.emit(e);return[4,o.finished];case 1:i.sent();o.commitStyles();this.updateTriggers();return[2,e]}}))}))};t.prototype.updateTriggers=function(){var t=this.host.id?Array.from(document.querySelectorAll('post-collapsible-trigger[for="'.concat(this.host.id,'"]'))):[];var e=this.host.closest("post-collapsible-trigger");if(e&&!t.includes(e)){t.push(e)}t.forEach((function(t){return t.update()}))};t.prototype.render=function(){return o(i,{key:"d4fef8eff9b716e9dff0e570f5993221ca631ed5","data-version":a,tabindex:this.collapsed?-1:undefined,style:this.collapsed?j:undefined},o("slot",{key:"ee957da050187c1cfd752e0dcb6b5f86505f5089"}))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());z([u("boolean")],H.prototype,"collapsed",void 0);H.style=T();var S=undefined&&undefined.__decorate||function(t,e,o,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)if(a=t[c])n=(r<3?a(n):r>3?a(e,o,n):a(e,o))||n;return r>3&&n&&Object.defineProperty(e,o,n),n};var C=t("post_collapsible_trigger",function(){function t(t){var o=this;e(this,t);this.observer=new MutationObserver((function(){return o.setTrigger()}));this.handlePostToggle=this.handlePostToggle.bind(this)}t.prototype.connectedCallback=function(){this.root=f(this.host);this.root.addEventListener("postToggle",this.handlePostToggle);this.observer.observe(this.host,{childList:true,subtree:true})};t.prototype.componentDidLoad=function(){this.setTrigger();if(!this.trigger)console.warn("The post-collapsible-trigger must contain a button.");if(!this.collapsible){var t=this.for?'with id "'.concat(this.for,'"'):"nested inside <post-collapsible-trigger>";console.warn("No post-collapsible found ".concat(t,'. Either nest a post-collapsible inside the trigger or set the "for" attribute to the id of the collapsible.'))}};t.prototype.disconnectedCallback=function(){var t;this.observer.disconnect();(t=this.root)===null||t===void 0?void 0:t.removeEventListener("postToggle",this.handlePostToggle)};t.prototype.update=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.updateAriaAttributes();return[2]}))}))};t.prototype.handlePostToggle=function(t){if(this.trigger){this.trigger.setAttribute("aria-expanded","".concat(t.detail))}};t.prototype.updateAriaAttributes=function(){var t=this.collapsible;if(!this.trigger||!t)return;t.id||(t.id="collapsible-".concat(crypto.randomUUID()));var e=t.id;var o=this.trigger.getAttribute("aria-controls");var i=o?o.split(/\s+/):[];if(!i.includes(e)){i.push(e);this.trigger.setAttribute("aria-controls",i.join(" "))}this.trigger.setAttribute("aria-expanded","".concat(!t.collapsed))};t.prototype.toggleCollapsible=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,(t=this.collapsible)===null||t===void 0?void 0:t.toggle()];case 1:e.sent();return[2]}}))}))};Object.defineProperty(t.prototype,"collapsible",{get:function(){var t,e,o;var i=(t=this.host.querySelector("post-collapsible"))!==null&&t!==void 0?t:this.for?(o=(e=this.root)===null||e===void 0?void 0:e.getElementById(this.for))!==null&&o!==void 0?o:null:null;if(i&&i.localName==="post-collapsible"){return i}return null},enumerable:false,configurable:true});t.prototype.setTrigger=function(){var t=this;var e=Array.from(this.host.querySelectorAll("button")).find((function(e){var o=e.closest("post-collapsible");var i=!!o&&t.host.contains(o);return!i}));if(!e||this.trigger&&e.isEqualNode(this.trigger))return;this.trigger=e;this.trigger.addEventListener("click",(function(){return t.toggleCollapsible()}));this.updateAriaAttributes()};t.prototype.render=function(){return o(i,{key:"64dde42136274194be6c3c4f94fb87ded8a3a079","data-version":a},o("slot",{key:"f43727ec2f7692793178ad6c162bb56f0f2d842b"}))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());S([u("string")],C.prototype,"for",void 0);S([d("post-collapsible")],C.prototype,"handlePostToggle",null)}}}));
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{a(i.next(t))}catch(t){o(t)}}function u(t){try{a(i["throw"](t))}catch(t){o(t)}}function a(t){t.done?n(t.value):r(t.value).then(s,u)}a((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=u(0),s["throw"]=u(1),s["return"]=u(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(t){return function(e){return a([t,e])}}function a(u){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,u[0]&&(n=0)),n)try{if(i=1,r&&(o=u[0]&2?r["return"]:u[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;if(r=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;r=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1];o=u;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(u);break}if(o[2])n.ops.pop();n.trys.pop();continue}u=e.call(t,n)}catch(t){u=[6,t];r=0}finally{i=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-Bz5HDsjW.system.js","./p-C1pxTt7y.system.js"],(function(t){"use strict";var e,n,i,r,o,s,u;return{setters:[function(t){e=t.r;n=t.c;i=t.h;r=t.H;o=t.g},function(t){s=t.v},function(t){u=t.E}],execute:function(){var a=function(){return"post-popovercontainer{border-radius:4px;overflow:hidden;-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}div[role=listbox]{max-height:384px;overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}"};var c=undefined&&undefined.__decorate||function(t,e,n,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,n,i);else for(var u=t.length-1;u>=0;u--)if(s=t[u])o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o;return r>3&&o&&Object.defineProperty(e,n,o),o};var f=t("post_listbox",function(){function t(t){var i=this;e(this,t);this.postOptionActive=n(this,"postOptionActive");this.highlightedIndex=-1;this.visibleOptions=[];this.diacriticPattern=/[\u0300-\u036F]/u;this.registerOptions=function(){i.visibleOptions=i.options};this.updateSelection=function(t){i.options.forEach((function(e){e.selected=e.value===t;e.highlighted=false}));i.highlightedIndex=-1;i.filter("")};this.clearActive=function(){i.highlightedIndex=-1;i.postOptionActive.emit(null)};this.normalizeText=function(t){return t.trim().normalize("NFD").replace(i.diacriticPattern,"").toLocaleLowerCase()};this.resetFilter=function(){i.visibleOptions=i.options;i.options.forEach((function(t){t.hidden=false;t.highlighted=false}))}}Object.defineProperty(t.prototype,"options",{get:function(){return Array.from(this.host.querySelectorAll("post-listbox-option"))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"inputElement",{get:function(){var t=this.host.closest("post-autocomplete");if(!t){t=document.querySelector('post-autocomplete[listbox="'.concat(this.host.id,'"]'))}return t===null||t===void 0?void 0:t.querySelector("input")},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){this.registerOptions()};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e;return __generator(this,(function(n){t=this.inputElement;if(t){(e=this.popoverContainer)===null||e===void 0?void 0:e.show(t)}return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){(t=this.popoverContainer)===null||t===void 0?void 0:t.hide();return[2]}))}))};t.prototype.filter=function(t){return __awaiter(this,void 0,void 0,(function(){var e;var n=this;return __generator(this,(function(i){e=this.normalizeText(t);if(e){this.visibleOptions=this.options.filter((function(t){var i=n.normalizeText(t.textContent);var r=n.normalizeText(t.value);var o=r.includes(e)||i.includes(e);t.hidden=!o;return o}))}else{this.resetFilter()}this.clearActive();return[2]}))}))};t.prototype.clearSelection=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.updateSelection();return[2]}))}))};t.prototype.navigate=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){if(this.visibleOptions.length===0)return[2];if(this.highlightedIndex>=0){this.visibleOptions[this.highlightedIndex].highlighted=false}switch(t){case"first":this.highlightedIndex=0;break;case"last":this.highlightedIndex=this.visibleOptions.length-1;break;case"up":this.highlightedIndex=(this.highlightedIndex-1+this.visibleOptions.length)%this.visibleOptions.length;break;case"down":this.highlightedIndex=(this.highlightedIndex+1)%this.visibleOptions.length;break}e=this.visibleOptions[this.highlightedIndex];e.scrollIntoView({behavior:"smooth",block:"end"});e.highlighted=true;this.postOptionActive.emit(e.id);return[2]}))}))};t.prototype.selectActive=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){if(this.highlightedIndex>=0){t=this.visibleOptions[this.highlightedIndex];this.updateSelection(t.value);this.host.dispatchEvent(new CustomEvent("postOptionSelected",{bubbles:true,detail:t.value}))}return[2]}))}))};t.prototype.optionClicked=function(t){this.updateSelection(t.detail)};t.prototype.render=function(){var t=this;return i(r,{key:"d9008aa55aca4e0a65fdffd67485d74ddc4069f6","data-version":s,role:"listbox"},i("post-popovercontainer",{key:"5ba4d68483581101ca4bf6fea04102fa883b71d1",placement:"bottom-start",ref:function(e){return t.popoverContainer=e}},i("slot",{key:"286a31eff1b70ec35efcfa745103933598589f2a",name:"blank-slate"}),i("slot",{key:"4cebce7de3143c3eb1deafa57209f7295aa6ec44"})))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());c([u("post-listbox-option")],f.prototype,"optionClicked",null);f.style=a()}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{a(i.next(t))}catch(t){o(t)}}function u(t){try{a(i["throw"](t))}catch(t){o(t)}}function a(t){t.done?n(t.value):r(t.value).then(s,u)}a((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=u(0),s["throw"]=u(1),s["return"]=u(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(t){return function(e){return a([t,e])}}function a(u){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,u[0]&&(n=0)),n)try{if(i=1,r&&(o=u[0]&2?r["return"]:u[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;if(r=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;r=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1];o=u;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(u);break}if(o[2])n.ops.pop();n.trys.pop();continue}u=e.call(t,n)}catch(t){u=[6,t];r=0}finally{i=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js","./p-C1pxTt7y.system.js"],(function(t){"use strict";var e,n,i,r,o,s,u;return{setters:[function(t){e=t.r;n=t.c;i=t.h;r=t.H;o=t.g},function(t){s=t.v},function(t){u=t.E}],execute:function(){var a=function(){return"post-popovercontainer{border-radius:4px;overflow:hidden;-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}div[role=listbox]{max-height:384px;overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}"};var f=undefined&&undefined.__decorate||function(t,e,n,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,n,i);else for(var u=t.length-1;u>=0;u--)if(s=t[u])o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o;return r>3&&o&&Object.defineProperty(e,n,o),o};var c=t("post_listbox",function(){function t(t){var i=this;e(this,t);this.postOptionActive=n(this,"postOptionActive");this.highlightedIndex=-1;this.visibleOptions=[];this.diacriticPattern=/[\u0300-\u036F]/u;this.registerOptions=function(){i.visibleOptions=i.options};this.updateSelection=function(t){i.options.forEach((function(e){e.selected=e.value===t;e.highlighted=false}));i.highlightedIndex=-1;i.filter("")};this.clearActive=function(){i.highlightedIndex=-1;i.postOptionActive.emit(null)};this.normalizeText=function(t){return t.trim().normalize("NFD").replace(i.diacriticPattern,"").toLocaleLowerCase()};this.resetFilter=function(){i.visibleOptions=i.options;i.options.forEach((function(t){t.hidden=false;t.highlighted=false}))}}Object.defineProperty(t.prototype,"options",{get:function(){return Array.from(this.host.querySelectorAll("post-listbox-option"))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"inputElement",{get:function(){var t=this.host.closest("post-autocomplete");if(!t){t=document.querySelector('post-autocomplete[listbox="'.concat(this.host.id,'"]'))}return t===null||t===void 0?void 0:t.querySelector("input")},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){this.registerOptions()};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e;return __generator(this,(function(n){t=this.inputElement;if(t){(e=this.popoverContainer)===null||e===void 0?void 0:e.show(t)}return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){(t=this.popoverContainer)===null||t===void 0?void 0:t.hide();return[2]}))}))};t.prototype.filter=function(t){return __awaiter(this,void 0,void 0,(function(){var e;var n=this;return __generator(this,(function(i){e=this.normalizeText(t);if(e){this.visibleOptions=this.options.filter((function(t){var i=n.normalizeText(t.textContent);var r=n.normalizeText(t.value);var o=r.includes(e)||i.includes(e);t.hidden=!o;return o}))}else{this.resetFilter()}this.clearActive();return[2]}))}))};t.prototype.clearSelection=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.updateSelection();return[2]}))}))};t.prototype.navigate=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){if(this.visibleOptions.length===0)return[2];if(this.highlightedIndex>=0){this.visibleOptions[this.highlightedIndex].highlighted=false}switch(t){case"first":this.highlightedIndex=0;break;case"last":this.highlightedIndex=this.visibleOptions.length-1;break;case"up":this.highlightedIndex=(this.highlightedIndex-1+this.visibleOptions.length)%this.visibleOptions.length;break;case"down":this.highlightedIndex=(this.highlightedIndex+1)%this.visibleOptions.length;break}e=this.visibleOptions[this.highlightedIndex];e.scrollIntoView({behavior:"smooth",block:"end"});e.highlighted=true;this.postOptionActive.emit(e.id);return[2]}))}))};t.prototype.selectActive=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){if(this.highlightedIndex>=0){t=this.visibleOptions[this.highlightedIndex];this.updateSelection(t.value);this.host.dispatchEvent(new CustomEvent("postOptionSelected",{bubbles:true,detail:t.value}))}return[2]}))}))};t.prototype.optionClicked=function(t){this.updateSelection(t.detail)};t.prototype.render=function(){var t=this;return i(r,{key:"d9008aa55aca4e0a65fdffd67485d74ddc4069f6","data-version":s,role:"listbox"},i("post-popovercontainer",{key:"5ba4d68483581101ca4bf6fea04102fa883b71d1",placement:"bottom-start",ref:function(e){return t.popoverContainer=e}},i("slot",{key:"286a31eff1b70ec35efcfa745103933598589f2a",name:"blank-slate"}),i("slot",{key:"4cebce7de3143c3eb1deafa57209f7295aa6ec44"})))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());f([u("post-listbox-option")],c.prototype,"optionClicked",null);c.style=a()}}}));
@@ -1 +1 @@
1
- System.register(["./p-CN_0KCBp.system.js","./p-Bz5HDsjW.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t,i){"use strict";var e,n,s,o,r,u,c;return{setters:[function(t){e=t.r;n=t.h;s=t.H;o=t.g},function(t){r=t.v},function(t){u=t.R},function(t){c=t.T},null],execute:function(){var h=function(){return"post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}"};var f=undefined&&undefined.__decorate||function(t,i,e,n){var s=arguments.length,o=s<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,e):n,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,i,e,n);else for(var u=t.length-1;u>=0;u--)if(r=t[u])o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o;return s>3&&o&&Object.defineProperty(i,e,o),o};var a=["pointerenter","pointerleave","focusin","focusout"];var l;var v=t("post_tooltip_trigger",function(){function t(t){e(this,t);this.delay=0;this.trigger=null;this.delayTimeout=null;this.boundTriggerHandler=this.handleTriggerEvent.bind(this);this.boundTooltipHandler=this.handleTooltipEvent.bind(this)}Object.defineProperty(t.prototype,"tooltip",{get:function(){var t=document.getElementById(this.for);return(t===null||t===void 0?void 0:t.localName)==="post-tooltip"?t:null},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){{i.import("./p-DoVr7uzg.system.js").then((function(t){return t.f})).then((function(t){l!==null&&l!==void 0?l:l=t.default}))}};t.prototype.componentDidLoad=function(){this.setupTrigger();this.attachListeners();this.attachTooltipListeners()};t.prototype.disconnectedCallback=function(){this.removeListeners();this.removeTooltipListeners();this.cleanupTrigger();if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}};t.prototype.handleSlotChange=function(){this.cleanupTrigger();this.setupTrigger()};t.prototype.cleanupTrigger=function(){var t=this;if(this.trigger){var i=this.trigger.getAttribute("aria-describedby")||"";if(i.includes(this.for)){var e=i.split(" ").filter((function(i){return i!==t.for})).join(" ");if(e){this.trigger.setAttribute("aria-describedby",e)}else{this.trigger.removeAttribute("aria-describedby")}}this.trigger=null}};t.prototype.setupTrigger=function(){this.trigger=this.host.querySelector("*");if(this.trigger){if(!(l===null||l===void 0?void 0:l(this.trigger))){this.trigger.setAttribute("tabindex","0")}var t=this.trigger.getAttribute("aria-describedby")||"";if(!t.includes(this.for)){this.trigger.setAttribute("aria-describedby","".concat(t," ").concat(this.for).trim())}}else{console.warn("No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.")}};t.prototype.attachListeners=function(){var t=this;a.forEach((function(i){t.host.addEventListener(i,t.boundTriggerHandler)}))};t.prototype.removeListeners=function(){var t=this;a.forEach((function(i){t.host.removeEventListener(i,t.boundTriggerHandler)}))};t.prototype.attachTooltipListeners=function(){if(this.tooltip){this.tooltip.addEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.addEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.removeTooltipListeners=function(){if(this.tooltip){this.tooltip.removeEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.removeEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.handleTriggerEvent=function(t){switch(t.type){case"pointerenter":case"focusin":case"long-press":this.handleEnter();break;case"pointerleave":case"focusout":this.handleLeave(t);break}};t.prototype.handleTooltipEvent=function(t){switch(t.type){case"pointerenter":this.handleEnter();break;case"pointerleave":this.handleLeave(t);break}};t.prototype.handleEnter=function(){if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}this.interestHandler()};t.prototype.handleLeave=function(t){var i=t.relatedTarget;if(this.tooltip&&i&&this.tooltip.contains(i)||i===this.trigger){return}this.interestLostHandler()};t.prototype.interestHandler=function(){var t=this;var i;if(this.trigger){if(this.delay>0){this.delayTimeout=globalThis.setTimeout((function(){var i;(i=t.tooltip)===null||i===void 0?void 0:i.show(t.trigger);t.delayTimeout=null}),this.delay)}else{(i=this.tooltip)===null||i===void 0?void 0:i.show(this.trigger)}}};t.prototype.interestLostHandler=function(){var t;if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}(t=this.tooltip)===null||t===void 0?void 0:t.hide()};t.prototype.render=function(){var t=this;return n(s,{key:"37f835a46c96f1f97019b611da8b6be2d6e1a8d7","data-version":r},n("slot",{key:"c2fc3d9080948fdcfbd8b2866730e76b770b87ba",onSlotchange:function(){return t.handleSlotChange()}}))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());f([u(),c("string")],v.prototype,"for",void 0);v.style=h()}}}));
1
+ System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t,i){"use strict";var e,n,s,o,r,u,c;return{setters:[function(t){e=t.r;n=t.h;s=t.H;o=t.g},function(t){r=t.v},function(t){u=t.R},function(t){c=t.T},null],execute:function(){var h=function(){return"post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}"};var f=undefined&&undefined.__decorate||function(t,i,e,n){var s=arguments.length,o=s<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,e):n,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,i,e,n);else for(var u=t.length-1;u>=0;u--)if(r=t[u])o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o;return s>3&&o&&Object.defineProperty(i,e,o),o};var a=["pointerenter","pointerleave","focusin","focusout"];var l;var v=t("post_tooltip_trigger",function(){function t(t){e(this,t);this.delay=0;this.trigger=null;this.delayTimeout=null;this.boundTriggerHandler=this.handleTriggerEvent.bind(this);this.boundTooltipHandler=this.handleTooltipEvent.bind(this)}Object.defineProperty(t.prototype,"tooltip",{get:function(){var t=document.getElementById(this.for);return(t===null||t===void 0?void 0:t.localName)==="post-tooltip"?t:null},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){{i.import("./p-DoVr7uzg.system.js").then((function(t){return t.f})).then((function(t){l!==null&&l!==void 0?l:l=t.default}))}};t.prototype.componentDidLoad=function(){this.setupTrigger();this.attachListeners();this.attachTooltipListeners()};t.prototype.disconnectedCallback=function(){this.removeListeners();this.removeTooltipListeners();this.cleanupTrigger();if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}};t.prototype.handleSlotChange=function(){this.cleanupTrigger();this.setupTrigger()};t.prototype.cleanupTrigger=function(){var t=this;if(this.trigger){var i=this.trigger.getAttribute("aria-describedby")||"";if(i.includes(this.for)){var e=i.split(" ").filter((function(i){return i!==t.for})).join(" ");if(e){this.trigger.setAttribute("aria-describedby",e)}else{this.trigger.removeAttribute("aria-describedby")}}this.trigger=null}};t.prototype.setupTrigger=function(){this.trigger=this.host.querySelector("*");if(this.trigger){if(!(l===null||l===void 0?void 0:l(this.trigger))){this.trigger.setAttribute("tabindex","0")}var t=this.trigger.getAttribute("aria-describedby")||"";if(!t.includes(this.for)){this.trigger.setAttribute("aria-describedby","".concat(t," ").concat(this.for).trim())}}else{console.warn("No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.")}};t.prototype.attachListeners=function(){var t=this;a.forEach((function(i){t.host.addEventListener(i,t.boundTriggerHandler)}))};t.prototype.removeListeners=function(){var t=this;a.forEach((function(i){t.host.removeEventListener(i,t.boundTriggerHandler)}))};t.prototype.attachTooltipListeners=function(){if(this.tooltip){this.tooltip.addEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.addEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.removeTooltipListeners=function(){if(this.tooltip){this.tooltip.removeEventListener("pointerenter",this.boundTooltipHandler);this.tooltip.removeEventListener("pointerleave",this.boundTooltipHandler)}};t.prototype.handleTriggerEvent=function(t){switch(t.type){case"pointerenter":case"focusin":case"long-press":this.handleEnter();break;case"pointerleave":case"focusout":this.handleLeave(t);break}};t.prototype.handleTooltipEvent=function(t){switch(t.type){case"pointerenter":this.handleEnter();break;case"pointerleave":this.handleLeave(t);break}};t.prototype.handleEnter=function(){if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}this.interestHandler()};t.prototype.handleLeave=function(t){var i=t.relatedTarget;if(this.tooltip&&i&&this.tooltip.contains(i)||i===this.trigger){return}this.interestLostHandler()};t.prototype.interestHandler=function(){var t=this;var i;if(this.trigger){if(this.delay>0){this.delayTimeout=globalThis.setTimeout((function(){var i;(i=t.tooltip)===null||i===void 0?void 0:i.show(t.trigger);t.delayTimeout=null}),this.delay)}else{(i=this.tooltip)===null||i===void 0?void 0:i.show(this.trigger)}}};t.prototype.interestLostHandler=function(){var t;if(this.delayTimeout){clearTimeout(this.delayTimeout);this.delayTimeout=null}(t=this.tooltip)===null||t===void 0?void 0:t.hide()};t.prototype.render=function(){var t=this;return n(s,{key:"37f835a46c96f1f97019b611da8b6be2d6e1a8d7","data-version":r},n("slot",{key:"c2fc3d9080948fdcfbd8b2866730e76b770b87ba",onSlotchange:function(){return t.handleSlotChange()}}))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());f([u(),c("string")],v.prototype,"for",void 0);v.style=h()}}}));