@swisspost/design-system-components 10.0.0-next.68 → 10.0.0-next.69

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 (462) hide show
  1. package/dist/.config/rollup-plugin.air-datepicker-locale.js +30 -0
  2. package/dist/cjs/_air-datepicker-locale_ar-CWOSiErt.js +5 -0
  3. package/dist/cjs/_air-datepicker-locale_bg-JFWSZzWm.js +5 -0
  4. package/dist/cjs/_air-datepicker-locale_ca-D4TAa7rI.js +5 -0
  5. package/dist/cjs/_air-datepicker-locale_cs-DosuWhKM.js +5 -0
  6. package/dist/cjs/_air-datepicker-locale_da-B5NHFJuC.js +5 -0
  7. package/dist/cjs/_air-datepicker-locale_de-pCyAfzJ2.js +5 -0
  8. package/dist/cjs/_air-datepicker-locale_el-Cpwc-DA1.js +5 -0
  9. package/dist/cjs/_air-datepicker-locale_en-Be7ImjN_.js +5 -0
  10. package/dist/cjs/_air-datepicker-locale_es-Cv0KAzTX.js +5 -0
  11. package/dist/cjs/_air-datepicker-locale_eu-DIWyMMth.js +5 -0
  12. package/dist/cjs/_air-datepicker-locale_fi-D0NlYCfL.js +5 -0
  13. package/dist/cjs/_air-datepicker-locale_fr-SkEOXj1I.js +5 -0
  14. package/dist/cjs/_air-datepicker-locale_hr-BrTsx2iQ.js +5 -0
  15. package/dist/cjs/_air-datepicker-locale_hu-a5Toa3rt.js +5 -0
  16. package/dist/cjs/_air-datepicker-locale_id-h0ieLcJv.js +5 -0
  17. package/dist/cjs/_air-datepicker-locale_it-DQeeF5n7.js +5 -0
  18. package/dist/cjs/_air-datepicker-locale_ja-C78DHDAv.js +5 -0
  19. package/dist/cjs/_air-datepicker-locale_ko-BGSYNW_t.js +5 -0
  20. package/dist/cjs/_air-datepicker-locale_nb-BQkZ_Pvp.js +5 -0
  21. package/dist/cjs/_air-datepicker-locale_nl-DG6dvxj-.js +5 -0
  22. package/dist/cjs/_air-datepicker-locale_pl-mZxBq8TF.js +5 -0
  23. package/dist/cjs/_air-datepicker-locale_pt-sCO-c8dQ.js +5 -0
  24. package/dist/cjs/_air-datepicker-locale_ro-Cf2HyYTE.js +5 -0
  25. package/dist/cjs/_air-datepicker-locale_ru-BS-yHOKw.js +5 -0
  26. package/dist/cjs/_air-datepicker-locale_si-C-vceOjt.js +5 -0
  27. package/dist/cjs/_air-datepicker-locale_sk-D6Sexd7V.js +5 -0
  28. package/dist/cjs/_air-datepicker-locale_sl-C769P2Cr.js +5 -0
  29. package/dist/cjs/_air-datepicker-locale_sv-DV21M0v9.js +5 -0
  30. package/dist/cjs/_air-datepicker-locale_th-HFoj3y5r.js +5 -0
  31. package/dist/cjs/_air-datepicker-locale_tr-C4soRqRo.js +5 -0
  32. package/dist/cjs/_air-datepicker-locale_uk-BM5nVNZS.js +5 -0
  33. package/dist/cjs/_air-datepicker-locale_zh-B4bR_9wv.js +5 -0
  34. package/dist/cjs/{index-Du1lKw8D.js → index-DPdHkdGf.js} +353 -1933
  35. package/dist/cjs/index-YBj3gUJp.js +114540 -0
  36. package/dist/cjs/{index.browser-Doj636JV.js → index.browser-BVb9l9T_.js} +1 -1
  37. package/dist/cjs/loader.cjs.js +2 -2
  38. package/dist/{esm/long-press-event-C_2k3G1c.js → cjs/long-press-event-Dx21Ojod.js} +13 -1
  39. package/dist/cjs/{package-DB6yM9Rp.js → package-CzSn3NmD.js} +1 -1
  40. package/dist/cjs/post-accordion_2.cjs.entry.js +4 -4
  41. package/dist/cjs/post-autocomplete.cjs.entry.js +36 -10
  42. package/dist/cjs/post-avatar.cjs.entry.js +4 -4
  43. package/dist/cjs/post-back-to-top.cjs.entry.js +4 -4
  44. package/dist/cjs/post-banner.cjs.entry.js +4 -4
  45. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +4 -4
  46. package/dist/cjs/post-breadcrumbs.cjs.entry.js +5 -5
  47. package/dist/cjs/post-closebutton_14.cjs.entry.js +59 -57
  48. package/dist/cjs/post-collapsible_2.cjs.entry.js +5 -5
  49. package/dist/cjs/post-components.cjs.js +3 -3
  50. package/dist/cjs/post-date-picker.cjs.entry.js +368 -268
  51. package/dist/cjs/post-footer.cjs.entry.js +5 -5
  52. package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
  53. package/dist/cjs/post-listbox-option.cjs.entry.js +4 -4
  54. package/dist/cjs/post-listbox.cjs.entry.js +4 -4
  55. package/dist/cjs/post-login-widget.cjs.entry.js +3 -3
  56. package/dist/cjs/post-number-input.cjs.entry.js +7 -7
  57. package/dist/cjs/post-pagination.cjs.entry.js +5 -5
  58. package/dist/cjs/post-popover-trigger.cjs.entry.js +4 -4
  59. package/dist/cjs/post-popover.cjs.entry.js +4 -4
  60. package/dist/cjs/post-rating.cjs.entry.js +4 -4
  61. package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
  62. package/dist/cjs/post-stepper.cjs.entry.js +6 -6
  63. package/dist/cjs/post-tab-item.cjs.entry.js +5 -5
  64. package/dist/cjs/post-tab-panel.cjs.entry.js +5 -5
  65. package/dist/cjs/post-tabs.cjs.entry.js +5 -5
  66. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +5 -5
  67. package/dist/cjs/post-tooltip.cjs.entry.js +5 -5
  68. package/dist/collection/collection-manifest.json +2 -1
  69. package/dist/collection/components/post-autocomplete/post-autocomplete.css +1 -1
  70. package/dist/collection/components/post-autocomplete/post-autocomplete.js +52 -7
  71. package/dist/collection/components/post-avatar/post-avatar.js +1 -1
  72. package/dist/collection/components/post-back-to-top/post-back-to-top.js +1 -1
  73. package/dist/collection/components/post-banner/post-banner.js +1 -1
  74. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +1 -1
  75. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +2 -2
  76. package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
  77. package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
  78. package/dist/collection/components/post-collapsible/post-collapsible.js +1 -1
  79. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +1 -1
  80. package/dist/collection/components/post-date-picker/air-locales.js +34 -0
  81. package/dist/collection/components/post-date-picker/constants.js +42 -0
  82. package/dist/collection/components/post-date-picker/post-date-picker.css +6 -2
  83. package/dist/collection/components/post-date-picker/post-date-picker.js +295 -135
  84. package/dist/collection/components/post-footer/post-footer.js +1 -1
  85. package/dist/collection/components/post-header/post-header.css +1 -1
  86. package/dist/collection/components/post-header/post-header.js +5 -5
  87. package/dist/collection/components/post-icon/post-icon.js +1 -1
  88. package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
  89. package/dist/collection/components/post-language-menu/post-language-menu.js +11 -1
  90. package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
  91. package/dist/collection/components/post-listbox/post-listbox.js +1 -1
  92. package/dist/collection/components/post-listbox-option/post-listbox-option.js +2 -2
  93. package/dist/collection/components/post-login-widget/post-login-widget.js +1 -1
  94. package/dist/collection/components/post-logo/post-logo.js +1 -1
  95. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
  96. package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
  97. package/dist/collection/components/post-megadropdown/post-megadropdown.js +1 -1
  98. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
  99. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
  100. package/dist/collection/components/post-menu/post-menu.js +3 -2
  101. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
  102. package/dist/collection/components/post-number-input/post-number-input.css +1 -1
  103. package/dist/collection/components/post-number-input/post-number-input.js +2 -2
  104. package/dist/collection/components/post-pagination/post-pagination.css +1 -1
  105. package/dist/collection/components/post-popover/post-popover.js +2 -2
  106. package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
  107. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  108. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +4 -11
  109. package/dist/collection/components/post-rating/post-rating.js +1 -1
  110. package/dist/collection/components/post-stepper/post-stepper.js +4 -4
  111. package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
  112. package/dist/collection/components/post-tab-item/post-tab-item.js +1 -1
  113. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  114. package/dist/collection/components/post-tabs/post-tabs.js +2 -2
  115. package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
  116. package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
  117. package/dist/collection/components/post-tooltip/post-tooltip.js +2 -2
  118. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
  119. package/dist/collection/utils/index.js +1 -0
  120. package/dist/collection/utils/is-iso-date.js +7 -6
  121. package/dist/collection/utils/locales.js +17 -0
  122. package/dist/components/_air-datepicker-locale_ar.js +1 -0
  123. package/dist/components/_air-datepicker-locale_bg.js +1 -0
  124. package/dist/components/_air-datepicker-locale_ca.js +1 -0
  125. package/dist/components/_air-datepicker-locale_cs.js +1 -0
  126. package/dist/components/_air-datepicker-locale_da.js +1 -0
  127. package/dist/components/_air-datepicker-locale_de.js +1 -0
  128. package/dist/components/_air-datepicker-locale_el.js +1 -0
  129. package/dist/components/_air-datepicker-locale_en.js +1 -0
  130. package/dist/components/_air-datepicker-locale_es.js +1 -0
  131. package/dist/components/_air-datepicker-locale_eu.js +1 -0
  132. package/dist/components/_air-datepicker-locale_fi.js +1 -0
  133. package/dist/components/_air-datepicker-locale_fr.js +1 -0
  134. package/dist/components/_air-datepicker-locale_hr.js +1 -0
  135. package/dist/components/_air-datepicker-locale_hu.js +1 -0
  136. package/dist/components/_air-datepicker-locale_id.js +1 -0
  137. package/dist/components/_air-datepicker-locale_it.js +1 -0
  138. package/dist/components/_air-datepicker-locale_ja.js +1 -0
  139. package/dist/components/_air-datepicker-locale_ko.js +1 -0
  140. package/dist/components/_air-datepicker-locale_nb.js +1 -0
  141. package/dist/components/_air-datepicker-locale_nl.js +1 -0
  142. package/dist/components/_air-datepicker-locale_pl.js +1 -0
  143. package/dist/components/_air-datepicker-locale_pt.js +1 -0
  144. package/dist/components/_air-datepicker-locale_ro.js +1 -0
  145. package/dist/components/_air-datepicker-locale_ru.js +1 -0
  146. package/dist/components/_air-datepicker-locale_si.js +1 -0
  147. package/dist/components/_air-datepicker-locale_sk.js +1 -0
  148. package/dist/components/_air-datepicker-locale_sl.js +1 -0
  149. package/dist/components/_air-datepicker-locale_sv.js +1 -0
  150. package/dist/components/_air-datepicker-locale_th.js +1 -0
  151. package/dist/components/_air-datepicker-locale_tr.js +1 -0
  152. package/dist/components/_air-datepicker-locale_uk.js +1 -0
  153. package/dist/components/_air-datepicker-locale_zh.js +1 -0
  154. package/dist/components/index3.js +6 -0
  155. package/dist/components/long-press-event.js +1 -1
  156. package/dist/components/package.js +1 -1
  157. package/dist/components/post-accordion-item2.js +1 -1
  158. package/dist/components/post-accordion2.js +1 -1
  159. package/dist/components/post-autocomplete.js +1 -1
  160. package/dist/components/post-avatar.js +1 -1
  161. package/dist/components/post-back-to-top.js +1 -1
  162. package/dist/components/post-banner.js +1 -1
  163. package/dist/components/post-breadcrumb-item2.js +1 -1
  164. package/dist/components/post-breadcrumbs.js +1 -1
  165. package/dist/components/post-closebutton2.js +1 -1
  166. package/dist/components/post-collapsible-trigger2.js +1 -1
  167. package/dist/components/post-collapsible2.js +1 -1
  168. package/dist/components/post-date-picker.js +1 -1
  169. package/dist/components/post-footer.js +1 -1
  170. package/dist/components/post-header.js +1 -1
  171. package/dist/components/post-icon2.js +1 -1
  172. package/dist/components/post-language-menu-item.js +1 -1
  173. package/dist/components/post-language-menu.js +1 -1
  174. package/dist/components/post-linkarea.js +1 -1
  175. package/dist/components/post-listbox-option.js +1 -1
  176. package/dist/components/post-listbox.js +1 -1
  177. package/dist/components/post-login-widget.js +1 -1
  178. package/dist/components/post-logo.js +1 -1
  179. package/dist/components/post-mainnavigation.js +1 -1
  180. package/dist/components/post-megadropdown-trigger.js +1 -1
  181. package/dist/components/post-megadropdown.js +1 -1
  182. package/dist/components/post-menu-trigger2.js +1 -1
  183. package/dist/components/post-menu2.js +1 -1
  184. package/dist/components/post-number-input.js +1 -1
  185. package/dist/components/post-pagination.js +1 -1
  186. package/dist/components/post-popover-trigger.js +1 -1
  187. package/dist/components/post-popover.js +1 -1
  188. package/dist/components/post-popovercontainer2.js +1 -1
  189. package/dist/components/post-rating.js +1 -1
  190. package/dist/components/post-stepper-item.js +1 -1
  191. package/dist/components/post-stepper.js +1 -1
  192. package/dist/components/post-tab-item.js +1 -1
  193. package/dist/components/post-tab-panel.js +1 -1
  194. package/dist/components/post-tabs.js +1 -1
  195. package/dist/components/post-togglebutton2.js +1 -1
  196. package/dist/components/post-tooltip-trigger.js +1 -1
  197. package/dist/components/post-tooltip.js +1 -1
  198. package/dist/components/react/index.js +1 -1
  199. package/dist/components/react/p-B0UL6WWC.js +1 -0
  200. package/dist/components/react/p-B4l5EAoq.js +1 -0
  201. package/dist/components/react/{p-CmkOK7QT.js → p-B4tq6hiA.js} +1 -1
  202. package/dist/components/react/p-B5zHEJHg.js +1 -0
  203. package/dist/components/react/p-BI8IDv3x.js +1 -0
  204. package/dist/components/react/p-BL8Kkhue.js +1 -0
  205. package/dist/components/react/{p-C_2k3G1c.js → p-BNgqqRsB.js} +1 -1
  206. package/dist/components/react/{p-DSw_A3Mh.js → p-BYfHrHCb.js} +1 -1
  207. package/dist/components/react/p-B_mxRlWV.js +1 -0
  208. package/dist/components/react/p-BaE0RQYu.js +1 -0
  209. package/dist/components/react/p-BbOp03Tv.js +1 -0
  210. package/dist/components/react/p-BfPjPzPS.js +1 -0
  211. package/dist/components/react/p-BhrWATcv.js +1 -0
  212. package/dist/components/react/{p-CuiEdxy9.js → p-Bj33xnuq.js} +1 -1
  213. package/dist/components/react/p-Blr-q_ib.js +1 -0
  214. package/dist/components/react/p-ByHlofKQ.js +1 -0
  215. package/dist/components/react/p-BzFuQlXL.js +1 -0
  216. package/dist/components/react/p-C820VY6h.js +1 -0
  217. package/dist/components/react/p-CHD6fZJe.js +1 -0
  218. package/dist/components/react/p-CJcRbvrI.js +6 -0
  219. package/dist/components/react/p-CKeMJgsB.js +1 -0
  220. package/dist/components/react/p-CKmlbvS5.js +1 -0
  221. package/dist/components/react/p-CLO4Gc79.js +1 -0
  222. package/dist/components/react/p-COcQTTvB.js +1 -0
  223. package/dist/components/react/p-CY0xDY7T.js +1 -0
  224. package/dist/components/react/p-CaXZrKGy.js +1 -0
  225. package/dist/components/react/{p-BOqFllSV.js → p-CfQqdIV2.js} +1 -1
  226. package/dist/components/react/p-Cp9RABzO.js +1 -0
  227. package/dist/components/react/{p-wHDwT4JH.js → p-D1KBbwmi.js} +1 -1
  228. package/dist/components/react/p-D74-8pcb.js +1 -0
  229. package/dist/components/react/p-D7MKQ7S-.js +1 -0
  230. package/dist/components/react/p-DAIxJysJ.js +1 -0
  231. package/dist/components/react/p-DLWEDodU.js +1 -0
  232. package/dist/components/react/p-DQq5Bnk2.js +1 -0
  233. package/dist/components/react/{p-DPFq3I2q.js → p-DRtzK3cr.js} +1 -1
  234. package/dist/components/react/p-DYpJ3j2A.js +1 -0
  235. package/dist/components/react/{p-aFH1oGSZ.js → p-De_QjSNJ.js} +1 -1
  236. package/dist/components/react/p-DiNZLG90.js +1 -0
  237. package/dist/components/react/p-Dp41Pg4o.js +1 -0
  238. package/dist/components/react/{p-BFAXoyMM.js → p-DwJ5SwpN.js} +1 -1
  239. package/dist/components/react/{p-rEK_D60T.js → p-HNUXY1z7.js} +1 -1
  240. package/dist/components/react/p-TmutBiUy.js +1 -0
  241. package/dist/components/react/{p-ByN3t9FX.js → p-UY924tHr.js} +1 -1
  242. package/dist/components/react/p-bl3gSRgH.js +1 -0
  243. package/dist/components/react/p-jZZU8-Dx.js +1 -0
  244. package/dist/components/react/p-r5tpdxcW.js +1 -0
  245. package/dist/components/react/p-tHlklq2F.js +1 -0
  246. package/dist/components/react/post-accordion-item.js +1 -1
  247. package/dist/components/react/post-accordion.js +1 -1
  248. package/dist/components/react/post-autocomplete.js +1 -1
  249. package/dist/components/react/post-avatar.js +1 -1
  250. package/dist/components/react/post-back-to-top.js +1 -1
  251. package/dist/components/react/post-banner.js +1 -1
  252. package/dist/components/react/post-breadcrumb-item.js +1 -1
  253. package/dist/components/react/post-breadcrumbs.js +1 -1
  254. package/dist/components/react/post-closebutton.js +1 -1
  255. package/dist/components/react/post-collapsible-trigger.js +1 -1
  256. package/dist/components/react/post-collapsible.js +1 -1
  257. package/dist/components/react/post-date-picker.js +1 -1
  258. package/dist/components/react/post-footer.js +1 -1
  259. package/dist/components/react/post-header.js +1 -1
  260. package/dist/components/react/post-icon.js +1 -1
  261. package/dist/components/react/post-language-menu-item.js +1 -1
  262. package/dist/components/react/post-language-menu.js +1 -1
  263. package/dist/components/react/post-linkarea.js +1 -1
  264. package/dist/components/react/post-listbox-option.js +1 -1
  265. package/dist/components/react/post-listbox.js +1 -1
  266. package/dist/components/react/post-login-widget.js +1 -1
  267. package/dist/components/react/post-logo.js +1 -1
  268. package/dist/components/react/post-mainnavigation.js +1 -1
  269. package/dist/components/react/post-megadropdown-trigger.js +1 -1
  270. package/dist/components/react/post-megadropdown.js +1 -1
  271. package/dist/components/react/post-menu-item.js +1 -1
  272. package/dist/components/react/post-menu-trigger.js +1 -1
  273. package/dist/components/react/post-menu.js +1 -1
  274. package/dist/components/react/post-number-input.js +1 -1
  275. package/dist/components/react/post-pagination.js +1 -1
  276. package/dist/components/react/post-popover-trigger.js +1 -1
  277. package/dist/components/react/post-popover.js +1 -1
  278. package/dist/components/react/post-popovercontainer.js +1 -1
  279. package/dist/components/react/post-rating.js +1 -1
  280. package/dist/components/react/post-stepper-item.js +1 -1
  281. package/dist/components/react/post-stepper.js +1 -1
  282. package/dist/components/react/post-tab-item.js +1 -1
  283. package/dist/components/react/post-tab-panel.js +1 -1
  284. package/dist/components/react/post-tabs.js +1 -1
  285. package/dist/components/react/post-togglebutton.js +1 -1
  286. package/dist/components/react/post-tooltip-trigger.js +1 -1
  287. package/dist/components/react/post-tooltip.js +1 -1
  288. package/dist/docs.d.ts +26 -0
  289. package/dist/docs.json +113 -9
  290. package/dist/esm/_air-datepicker-locale_ar-DQq5Bnk2.js +3 -0
  291. package/dist/esm/_air-datepicker-locale_bg-bl3gSRgH.js +3 -0
  292. package/dist/esm/_air-datepicker-locale_ca-BI8IDv3x.js +3 -0
  293. package/dist/esm/_air-datepicker-locale_cs-COcQTTvB.js +3 -0
  294. package/dist/esm/_air-datepicker-locale_da-jZZU8-Dx.js +3 -0
  295. package/dist/esm/_air-datepicker-locale_de-DiNZLG90.js +3 -0
  296. package/dist/esm/_air-datepicker-locale_el-CY0xDY7T.js +3 -0
  297. package/dist/esm/_air-datepicker-locale_en-D74-8pcb.js +3 -0
  298. package/dist/esm/_air-datepicker-locale_es-TmutBiUy.js +3 -0
  299. package/dist/esm/_air-datepicker-locale_eu-Blr-q_ib.js +3 -0
  300. package/dist/esm/_air-datepicker-locale_fi-B5zHEJHg.js +3 -0
  301. package/dist/esm/_air-datepicker-locale_fr-CLO4Gc79.js +3 -0
  302. package/dist/esm/_air-datepicker-locale_hr-CKeMJgsB.js +3 -0
  303. package/dist/esm/_air-datepicker-locale_hu-B_mxRlWV.js +3 -0
  304. package/dist/esm/_air-datepicker-locale_id-BhrWATcv.js +3 -0
  305. package/dist/esm/_air-datepicker-locale_it-B0UL6WWC.js +3 -0
  306. package/dist/esm/_air-datepicker-locale_ja-DLWEDodU.js +3 -0
  307. package/dist/esm/_air-datepicker-locale_ko-BL8Kkhue.js +3 -0
  308. package/dist/esm/_air-datepicker-locale_nb-BzFuQlXL.js +3 -0
  309. package/dist/esm/_air-datepicker-locale_nl-ByHlofKQ.js +3 -0
  310. package/dist/esm/_air-datepicker-locale_pl-CaXZrKGy.js +3 -0
  311. package/dist/esm/_air-datepicker-locale_pt-CKmlbvS5.js +3 -0
  312. package/dist/esm/_air-datepicker-locale_ro-r5tpdxcW.js +3 -0
  313. package/dist/esm/_air-datepicker-locale_ru-BfPjPzPS.js +3 -0
  314. package/dist/esm/_air-datepicker-locale_si-Dp41Pg4o.js +3 -0
  315. package/dist/esm/_air-datepicker-locale_sk-BaE0RQYu.js +3 -0
  316. package/dist/esm/_air-datepicker-locale_sl-tHlklq2F.js +3 -0
  317. package/dist/esm/_air-datepicker-locale_sv-DYpJ3j2A.js +3 -0
  318. package/dist/esm/_air-datepicker-locale_th-D7MKQ7S-.js +3 -0
  319. package/dist/esm/_air-datepicker-locale_tr-CHD6fZJe.js +3 -0
  320. package/dist/esm/_air-datepicker-locale_uk-Cp9RABzO.js +3 -0
  321. package/dist/esm/_air-datepicker-locale_zh-C820VY6h.js +3 -0
  322. package/dist/esm/index-CJcRbvrI.js +114535 -0
  323. package/dist/esm/{index-Ci4L1rzN.js → index-DmAi35UF.js} +353 -1933
  324. package/dist/esm/{index.browser-BLchVpF6.js → index.browser-nA1BKco0.js} +1 -1
  325. package/dist/esm/loader.js +3 -3
  326. package/dist/{cjs/long-press-event-Q8jMUNXD.js → esm/long-press-event-BNgqqRsB.js} +11 -3
  327. package/dist/esm/package-B4l5EAoq.js +3 -0
  328. package/dist/esm/post-accordion_2.entry.js +4 -4
  329. package/dist/esm/post-autocomplete.entry.js +36 -10
  330. package/dist/esm/post-avatar.entry.js +4 -4
  331. package/dist/esm/post-back-to-top.entry.js +4 -4
  332. package/dist/esm/post-banner.entry.js +4 -4
  333. package/dist/esm/post-breadcrumb-item.entry.js +4 -4
  334. package/dist/esm/post-breadcrumbs.entry.js +5 -5
  335. package/dist/esm/post-closebutton_14.entry.js +56 -54
  336. package/dist/esm/post-collapsible_2.entry.js +5 -5
  337. package/dist/esm/post-components.js +4 -4
  338. package/dist/esm/post-date-picker.entry.js +352 -252
  339. package/dist/esm/post-footer.entry.js +4 -4
  340. package/dist/esm/post-linkarea.entry.js +3 -3
  341. package/dist/esm/post-listbox-option.entry.js +4 -4
  342. package/dist/esm/post-listbox.entry.js +4 -4
  343. package/dist/esm/post-login-widget.entry.js +3 -3
  344. package/dist/esm/post-number-input.entry.js +6 -6
  345. package/dist/esm/post-pagination.entry.js +5 -5
  346. package/dist/esm/post-popover-trigger.entry.js +4 -4
  347. package/dist/esm/post-popover.entry.js +4 -4
  348. package/dist/esm/post-rating.entry.js +4 -4
  349. package/dist/esm/post-stepper-item.entry.js +3 -3
  350. package/dist/esm/post-stepper.entry.js +6 -6
  351. package/dist/esm/post-tab-item.entry.js +5 -5
  352. package/dist/esm/post-tab-panel.entry.js +5 -5
  353. package/dist/esm/post-tabs.entry.js +5 -5
  354. package/dist/esm/post-tooltip-trigger.entry.js +5 -5
  355. package/dist/esm/post-tooltip.entry.js +5 -5
  356. package/dist/post-components/{p-4ad6993e.entry.js → p-0992cba9.entry.js} +1 -1
  357. package/dist/post-components/{p-9bdb92c0.entry.js → p-0c249c71.entry.js} +1 -1
  358. package/dist/post-components/{p-4c021d5f.entry.js → p-1e28d279.entry.js} +1 -1
  359. package/dist/post-components/{p-5f86479f.entry.js → p-220d0eab.entry.js} +1 -1
  360. package/dist/post-components/{p-38880c61.entry.js → p-272de102.entry.js} +1 -1
  361. package/dist/post-components/{p-5c66d070.entry.js → p-30e5bc99.entry.js} +1 -1
  362. package/dist/post-components/p-500a3fc7.entry.js +1 -0
  363. package/dist/post-components/{p-eb89eecb.entry.js → p-52f85cba.entry.js} +1 -1
  364. package/dist/post-components/{p-602960ff.entry.js → p-5664d5b5.entry.js} +1 -1
  365. package/dist/post-components/p-5ade4255.entry.js +1 -0
  366. package/dist/post-components/p-6644e626.entry.js +1 -0
  367. package/dist/post-components/p-694e76be.entry.js +1 -0
  368. package/dist/post-components/p-8b68164f.entry.js +1 -0
  369. package/dist/post-components/{p-cdc11592.entry.js → p-906b669b.entry.js} +1 -1
  370. package/dist/post-components/p-92e4a7f7.entry.js +1 -0
  371. package/dist/post-components/{p-df54677a.entry.js → p-95df4d4e.entry.js} +1 -1
  372. package/dist/post-components/{p-7ad4e293.entry.js → p-9fab1847.entry.js} +1 -1
  373. package/dist/post-components/p-B0UL6WWC.js +1 -0
  374. package/dist/post-components/p-B4l5EAoq.js +1 -0
  375. package/dist/post-components/p-B5zHEJHg.js +1 -0
  376. package/dist/post-components/p-BI8IDv3x.js +1 -0
  377. package/dist/post-components/p-BL8Kkhue.js +1 -0
  378. package/dist/post-components/{p-C_2k3G1c.js → p-BNgqqRsB.js} +1 -1
  379. package/dist/post-components/p-B_mxRlWV.js +1 -0
  380. package/dist/post-components/p-BaE0RQYu.js +1 -0
  381. package/dist/post-components/p-BfPjPzPS.js +1 -0
  382. package/dist/post-components/p-BhrWATcv.js +1 -0
  383. package/dist/post-components/p-Blr-q_ib.js +1 -0
  384. package/dist/post-components/p-ByHlofKQ.js +1 -0
  385. package/dist/post-components/p-BzFuQlXL.js +1 -0
  386. package/dist/post-components/p-C820VY6h.js +1 -0
  387. package/dist/post-components/p-CHD6fZJe.js +1 -0
  388. package/dist/post-components/p-CJcRbvrI.js +6 -0
  389. package/dist/post-components/p-CKeMJgsB.js +1 -0
  390. package/dist/post-components/p-CKmlbvS5.js +1 -0
  391. package/dist/post-components/p-CLO4Gc79.js +1 -0
  392. package/dist/post-components/p-COcQTTvB.js +1 -0
  393. package/dist/post-components/p-CY0xDY7T.js +1 -0
  394. package/dist/post-components/p-CaXZrKGy.js +1 -0
  395. package/dist/post-components/p-Cp9RABzO.js +1 -0
  396. package/dist/post-components/p-D74-8pcb.js +1 -0
  397. package/dist/post-components/p-D7MKQ7S-.js +1 -0
  398. package/dist/post-components/p-DLWEDodU.js +1 -0
  399. package/dist/post-components/p-DQq5Bnk2.js +1 -0
  400. package/dist/post-components/p-DYpJ3j2A.js +1 -0
  401. package/dist/post-components/p-DiNZLG90.js +1 -0
  402. package/dist/post-components/p-DmAi35UF.js +2 -0
  403. package/dist/post-components/p-Dp41Pg4o.js +1 -0
  404. package/dist/post-components/p-TmutBiUy.js +1 -0
  405. package/dist/post-components/p-bl3gSRgH.js +1 -0
  406. package/dist/post-components/p-c70cad6e.entry.js +1 -0
  407. package/dist/post-components/{p-319959ee.entry.js → p-c95fcb40.entry.js} +1 -1
  408. package/dist/post-components/{p-39b2b086.entry.js → p-cca0cf23.entry.js} +1 -1
  409. package/dist/post-components/{p-fd10d5b9.entry.js → p-cd6684e1.entry.js} +1 -1
  410. package/dist/post-components/p-d57462a3.entry.js +1 -0
  411. package/dist/post-components/{p-f64c6491.entry.js → p-d99bdef2.entry.js} +1 -1
  412. package/dist/post-components/{p-e331093d.entry.js → p-dfe811cc.entry.js} +1 -1
  413. package/dist/post-components/p-f14ca918.entry.js +1 -0
  414. package/dist/post-components/{p-e01ce660.entry.js → p-f88a161a.entry.js} +1 -1
  415. package/dist/post-components/p-fc2882a8.entry.js +1 -0
  416. package/dist/post-components/p-jZZU8-Dx.js +1 -0
  417. package/dist/post-components/p-r5tpdxcW.js +1 -0
  418. package/dist/post-components/p-tHlklq2F.js +1 -0
  419. package/dist/post-components/post-components.css +1 -1
  420. package/dist/post-components/post-components.esm.js +1 -1
  421. package/dist/prebuild.js +4 -1
  422. package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +10 -0
  423. package/dist/types/components/post-date-picker/air-locales.d.ts +5 -0
  424. package/dist/types/components/post-date-picker/constants.d.ts +37 -0
  425. package/dist/types/components/post-date-picker/post-date-picker.d.ts +74 -18
  426. package/dist/types/components/post-language-menu/post-language-menu.d.ts +2 -0
  427. package/dist/types/components/post-stepper/post-stepper.d.ts +2 -2
  428. package/dist/types/components.d.ts +286 -80
  429. package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/.config/rollup-plugin.air-datepicker-locale.d.ts +12 -0
  430. package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/types/language-tags.d.ts +1 -0
  431. package/dist/types/language-tags.js +0 -0
  432. package/dist/types/stencil-public-runtime.d.ts +23 -2
  433. package/dist/types/utils/index.d.ts +1 -0
  434. package/dist/types/utils/locales.d.ts +11 -0
  435. package/hydrate/index.js +120010 -4831
  436. package/hydrate/index.mjs +120010 -4831
  437. package/package.json +14 -13
  438. package/dist/cjs/breakpoints-B0Olgvgc.js +0 -206
  439. package/dist/collection/components/post-date-picker/locales.js +0 -10
  440. package/dist/components/breakpoints.js +0 -1
  441. package/dist/components/react/p-BADyL6qQ.js +0 -1
  442. package/dist/components/react/p-BQ3HlJPr.js +0 -1
  443. package/dist/components/react/p-NDMNbu5d.js +0 -1
  444. package/dist/components/react/p-_AAbD0Gm.js +0 -1
  445. package/dist/esm/breakpoints-BQ3HlJPr.js +0 -202
  446. package/dist/esm/package-NDMNbu5d.js +0 -3
  447. package/dist/post-components/p-1edd4d7c.entry.js +0 -1
  448. package/dist/post-components/p-3364b421.entry.js +0 -1
  449. package/dist/post-components/p-631f4bdd.entry.js +0 -1
  450. package/dist/post-components/p-6336ea0b.entry.js +0 -1
  451. package/dist/post-components/p-82871134.entry.js +0 -1
  452. package/dist/post-components/p-8c91a9d8.entry.js +0 -1
  453. package/dist/post-components/p-BQ3HlJPr.js +0 -1
  454. package/dist/post-components/p-Ci4L1rzN.js +0 -2
  455. package/dist/post-components/p-NDMNbu5d.js +0 -1
  456. package/dist/post-components/p-e4fd234d.entry.js +0 -1
  457. package/dist/post-components/p-ee03eed0.entry.js +0 -1
  458. package/dist/post-components/p-f1813327.entry.js +0 -1
  459. package/dist/post-components/p-f1bff988.entry.js +0 -1
  460. package/dist/types/components/post-date-picker/locales.d.ts +0 -6
  461. /package/dist/components/react/{p-BLchVpF6.js → p-nA1BKco0.js} +0 -0
  462. /package/dist/post-components/{p-BLchVpF6.js → p-nA1BKco0.js} +0 -0
@@ -1 +1 @@
1
- import{r as t,h as i,H as e,a}from"./p-Ci4L1rzN.js";import{v as s}from"./p-NDMNbu5d.js";import{c as r,b as o,g as n}from"./p-D9bU2pIE.js";import"./p-BQ3HlJPr.js";const c=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;var d;!function(t){t.Slotted="slotted",t.Image="image",t.Initials="initials",t[t.Null=null]="Null"}(d||(d={}));const h=class{constructor(i){t(this,i),this.avatarType=null,this.imageUrl="",this.imageAlt="",this.initials="",this.storageKey=""}validateFirstname(){r(this,"firstname","string")}validateLastname(){o(this,"lastname","string")}updateUserid(){this.validateUserId(),this.getAvatarImage()}updateEmail(){this.validateEmail(),this.getAvatarImage()}validateDescription(){o(this,"description","string")}validateUserId(){o(this,"userid","string")}validateEmail(){this.email&&n(this,"email",c)}async getAvatarImage(){let t=!1;this.slottedImage=this.host.querySelector("img");const i=this.slottedImage?.getAttribute("src");i?await this.getImageByProp(i,this.fetchSlottedImage.bind(this))?this.slottedImage.style.display="block":(this.slottedImage.style.display="none",this.avatarType=d.Initials):(this.userid&&(t=await this.getImageByProp(this.userid,this.fetchImageByUserId.bind(this))),!t&&this.email?.match(c)&&(t=await this.getImageByProp(this.email,this.fetchImageByEmail.bind(this))),t||(this.avatarType=d.Initials))}async getImageByProp(t,i){if(!t)return!1;let e;try{e=await i(t)}catch(t){return console.info("Loading avatar image failed.",t),!1}return!!e?.ok&&(this.imageUrl=e.url,this.imageAlt=`${this.firstname} ${this.lastname} avatar`,this.avatarType=d.Image,!0)}async fetchImageByUserId(){return await fetch(h.INTERNAL_USERID_IMAGE_SRC.replace("{userid}",encodeURIComponent(this.userid)))}async fetchImageByEmail(){const t=await async function(t){return await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t)).then((t=>Array.from(new Uint8Array(t)).map((t=>t.toString(16).padStart(2,"0"))).join("")))}(this.email),i="https://www.gravatar.com/avatar/{email}?s=80&d=404&r=g".replace("{email}",t);return await fetch(i)}async fetchSlottedImage(t){return await fetch(t,{method:"HEAD"})}slotChanged(){const t=this.host.shadowRoot.querySelector("slot");(t?.assignedNodes({flatten:!0})||[]).forEach((t=>{t.nodeType===Node.ELEMENT_NODE&&"IMG"===t.tagName&&this.observeImageSrcChanges(t)})),this.getAvatarImage()}observeImageSrcChanges(t){this.slottedImageObserver&&this.slottedImageObserver.disconnect(),this.slottedImageObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"src"===t.attributeName&&this.getAvatarImage()}))})),this.slottedImageObserver.observe(t,{attributes:!0,attributeFilter:["src"]})}connectedCallback(){this.avatarType=d.Initials,this.getAvatarImage()}componentDidLoad(){this.validateFirstname(),this.validateLastname(),this.validateDescription(),this.validateUserId(),this.validateEmail()}render(){const t=[this.firstname,this.lastname].filter(Boolean).map((t=>t.trim())),a=t.map((t=>t.charAt(0))).join("").trim(),r=t.join(" ");return i(e,{key:"56547a49f35e2d9ebafa54c2736b2ab60761c07b","data-version":s},i("span",{key:"864c5ab36c64bb440580ed307ce2f3dcefe2839d",class:"slotted"===this.avatarType?"":"d-none"},i("slot",{key:"cb06a958dc710675a97d197bffcee6ab742ad391",onSlotchange:this.slotChanged.bind(this)})),"image"===this.avatarType&&i("img",{key:"abb6262b43b5fc5e2a7e4147c2375c6c623b5bf5",src:this.imageUrl,alt:this.imageAlt}),"initials"===this.avatarType&&i("span",{key:"8bead70c99c12f3bbaab414e9431c3459553d36e",class:"initials"},a,i("span",{key:"45db185da4d9d82b1f08650f4dc40cd759e18c00"},this.description??r)))}get host(){return a(this)}static get watchers(){return{firstname:[{validateFirstname:0}],lastname:[{validateLastname:0}],userid:[{updateUserid:0}],email:[{updateEmail:0}],description:[{validateDescription:0}]}}};h.INTERNAL_USERID_IMAGE_SRC="https://web.post.ch/UserProfileImage/{userid}.png",h.style=':host{--post-avatar-bg:var(--post-scheme-color-interactive-primary-enabled-bg2);--post-avatar-fg:var(--post-scheme-color-interactive-primary-enabled-fg3);display:inline-flex;position:relative;width:var(--post-device-sizing-interactive-icon-size3);height:var(--post-device-sizing-interactive-icon-size3);background-color:var(--post-scheme-color-interactive-primary-enabled-stroke3);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3);border-radius:var(--post-device-border-radius-round);font-size:var(--post-device-font-size-8);vertical-align:top;line-height:1}:host::after{display:block;content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}*,*::before,*::after{box-sizing:border-box}slot,img,::slotted(img){display:block;width:100%;height:100%}img,::slotted(img){border-radius:var(--post-device-border-radius-round)}::slotted(:not(img)){display:none !important}.initials{display:flex;justify-content:center;align-items:center;position:relative;width:100%;height:100%;background-color:var(--post-avatar-bg);border-radius:var(--post-device-border-radius-round);color:var(--post-avatar-fg);text-transform:uppercase;font-weight:400;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.initials span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{h as post_avatar}
1
+ import{r as t,h as i,H as e,a}from"./p-DmAi35UF.js";import{v as s}from"./p-B4l5EAoq.js";import{c as r,b as o,g as n}from"./p-D9bU2pIE.js";import"./p-CJcRbvrI.js";const c=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;var d;!function(t){t.Slotted="slotted",t.Image="image",t.Initials="initials",t[t.Null=null]="Null"}(d||(d={}));const h=class{constructor(i){t(this,i),this.avatarType=null,this.imageUrl="",this.imageAlt="",this.initials="",this.storageKey=""}validateFirstname(){r(this,"firstname","string")}validateLastname(){o(this,"lastname","string")}updateUserid(){this.validateUserId(),this.getAvatarImage()}updateEmail(){this.validateEmail(),this.getAvatarImage()}validateDescription(){o(this,"description","string")}validateUserId(){o(this,"userid","string")}validateEmail(){this.email&&n(this,"email",c)}async getAvatarImage(){let t=!1;this.slottedImage=this.host.querySelector("img");const i=this.slottedImage?.getAttribute("src");i?await this.getImageByProp(i,this.fetchSlottedImage.bind(this))?this.slottedImage.style.display="block":(this.slottedImage.style.display="none",this.avatarType=d.Initials):(this.userid&&(t=await this.getImageByProp(this.userid,this.fetchImageByUserId.bind(this))),!t&&this.email?.match(c)&&(t=await this.getImageByProp(this.email,this.fetchImageByEmail.bind(this))),t||(this.avatarType=d.Initials))}async getImageByProp(t,i){if(!t)return!1;let e;try{e=await i(t)}catch(t){return console.info("Loading avatar image failed.",t),!1}return!!e?.ok&&(this.imageUrl=e.url,this.imageAlt=`${this.firstname} ${this.lastname} avatar`,this.avatarType=d.Image,!0)}async fetchImageByUserId(){return await fetch(h.INTERNAL_USERID_IMAGE_SRC.replace("{userid}",encodeURIComponent(this.userid)))}async fetchImageByEmail(){const t=await async function(t){return await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t)).then((t=>Array.from(new Uint8Array(t)).map((t=>t.toString(16).padStart(2,"0"))).join("")))}(this.email),i="https://www.gravatar.com/avatar/{email}?s=80&d=404&r=g".replace("{email}",t);return await fetch(i)}async fetchSlottedImage(t){return await fetch(t,{method:"HEAD"})}slotChanged(){const t=this.host.shadowRoot.querySelector("slot");(t?.assignedNodes({flatten:!0})||[]).forEach((t=>{t.nodeType===Node.ELEMENT_NODE&&"IMG"===t.tagName&&this.observeImageSrcChanges(t)})),this.getAvatarImage()}observeImageSrcChanges(t){this.slottedImageObserver&&this.slottedImageObserver.disconnect(),this.slottedImageObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"src"===t.attributeName&&this.getAvatarImage()}))})),this.slottedImageObserver.observe(t,{attributes:!0,attributeFilter:["src"]})}connectedCallback(){this.avatarType=d.Initials,this.getAvatarImage()}componentDidLoad(){this.validateFirstname(),this.validateLastname(),this.validateDescription(),this.validateUserId(),this.validateEmail()}render(){const t=[this.firstname,this.lastname].filter(Boolean).map((t=>t.trim())),a=t.map((t=>t.charAt(0))).join("").trim(),r=t.join(" ");return i(e,{key:"27b541f1ac7546a3c56799c1cbf8f4347b2a0942","data-version":s},i("span",{key:"5652c2cec0f4455e44d73d7de22dfe53cc4baf13",class:"slotted"===this.avatarType?"":"d-none"},i("slot",{key:"ed8c5e541ed9ae1b43036a540327e426ef6caac4",onSlotchange:this.slotChanged.bind(this)})),"image"===this.avatarType&&i("img",{key:"c11bc3e761a1ea470547a32bfd74b465382fcf95",src:this.imageUrl,alt:this.imageAlt}),"initials"===this.avatarType&&i("span",{key:"16afcb46c524440b0071d8346d7ddcc80bda0cf4",class:"initials"},a,i("span",{key:"99c190d5d829c0a11385dfc0fe66cbd916961813"},this.description??r)))}get host(){return a(this)}static get watchers(){return{firstname:[{validateFirstname:0}],lastname:[{validateLastname:0}],userid:[{updateUserid:0}],email:[{updateEmail:0}],description:[{validateDescription:0}]}}};h.INTERNAL_USERID_IMAGE_SRC="https://web.post.ch/UserProfileImage/{userid}.png",h.style=':host{--post-avatar-bg:var(--post-scheme-color-interactive-primary-enabled-bg2);--post-avatar-fg:var(--post-scheme-color-interactive-primary-enabled-fg3);display:inline-flex;position:relative;width:var(--post-device-sizing-interactive-icon-size3);height:var(--post-device-sizing-interactive-icon-size3);background-color:var(--post-scheme-color-interactive-primary-enabled-stroke3);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3);border-radius:var(--post-device-border-radius-round);font-size:var(--post-device-font-size-8);vertical-align:top;line-height:1}:host::after{display:block;content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}*,*::before,*::after{box-sizing:border-box}slot,img,::slotted(img){display:block;width:100%;height:100%}img,::slotted(img){border-radius:var(--post-device-border-radius-round)}::slotted(:not(img)){display:none !important}.initials{display:flex;justify-content:center;align-items:center;position:relative;width:100%;height:100%;background-color:var(--post-avatar-bg);border-radius:var(--post-device-border-radius-round);color:var(--post-avatar-fg);text-transform:uppercase;font-weight:400;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.initials span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{h as post_avatar}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e,a as h}from"./p-DmAi35UF.js";import{v as o}from"./p-B4l5EAoq.js";import{c as a}from"./p-D9bU2pIE.js";import"./p-CJcRbvrI.js";import{d as n}from"./p-C9hMpmsD.js";const c=class{constructor(s){t(this,s),this.postFilteringEvent=i(this,"postFilteringEvent"),this.debouncedHandleInput=n((t=>{this.handleInput(t)}),250),this.filterThreshold=0,this.clearable=!1,this.inputValue="",this.handleOnBlur=()=>{this.inputElement.value=this.inputValue,this.listBoxElement.filter(""),this.hideListBox()},this.handleInput=async t=>{if(!this.listBoxElement)return;const i=t.target.value.trim(),s=i.length>=this.filterThreshold?i:"",{defaultPrevented:e}=this.postFilteringEvent.emit(s&&s.length>=this.filterThreshold?s:"");e||(await this.listBoxElement.filter(s),s?(this.showListBox(),this.announceCount()):(this.inputValue="",this.clearAnnouncement()))},this.handleKeyDown=t=>{const{key:i,altKey:s}=t;switch(i){case"ArrowDown":t.preventDefault(),this.showListBox(),s||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 i=t.detail;this.inputElement.value=i,this.inputValue=i,this.hideListBox()},this.handleOptionActive=t=>{const i=t.detail;i?this.inputElement.setAttribute("aria-activedescendant",i):this.inputElement.removeAttribute("aria-activedescendant")},this.hideListBox=()=>{this.clearAnnouncement(),this.listBoxElement.hide(),this.inputElement.ariaExpanded="false",this.host.removeAttribute("open"),this.inputElement.removeAttribute("aria-activedescendant")},this.showListBox=async()=>{await this.listBoxElement.show(),this.inputElement.ariaExpanded="true",this.host.setAttribute("open",""),this.announceCount()},this.clearInput=()=>{this.inputElement&&(this.inputElement.value="",this.inputValue="",this.listBoxElement.clearSelection(),this.hideListBox())}}validateTextAvailableSuggestions(){a(this,"textAvailableSuggestions","string")}get inputElement(){return this.host.querySelector("input")}get listBoxElement(){return this.listbox?document.getElementById(this.listbox):this.host.querySelector("post-listbox")}componentWillLoad(){this.validateTextAvailableSuggestions(),this.inputElement&&(this.inputElement.role="combobox",this.inputElement.ariaAutoComplete="list",this.listBoxElement&&(this.listBoxElement.id||(this.listBoxElement.id=crypto.randomUUID()),this.inputElement.setAttribute("aria-controls",this.listBoxElement.id),this.inputElement.setAttribute("aria-expanded","false"),this.inputElement.autocomplete="off",this.attachInputListeners(),this.attachListboxListeners()))}disconnectedCallback(){this.detachInputListeners(),this.detachListboxListeners()}attachInputListeners(){this.inputElement&&(this.inputElement.addEventListener("input",this.debouncedHandleInput),this.inputElement.addEventListener("keydown",this.handleKeyDown),this.inputElement.addEventListener("blur",this.handleOnBlur),this.inputElement.addEventListener("click",this.showListBox))}detachInputListeners(){this.inputElement&&(this.inputElement.removeEventListener("input",this.debouncedHandleInput),this.inputElement.removeEventListener("keydown",this.handleKeyDown),this.inputElement.removeEventListener("blur",this.handleOnBlur),this.inputElement.removeEventListener("click",this.showListBox))}attachListboxListeners(){this.listBoxElement&&(this.listBoxElement.addEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.addEventListener("postOptionActive",this.handleOptionActive))}detachListboxListeners(){this.listBoxElement&&(this.listBoxElement.removeEventListener("postOptionSelected",this.handleOptionSelected),this.listBoxElement.removeEventListener("postOptionActive",this.handleOptionActive))}clearAnnouncement(){this.outputElement&&(this.outputElement.textContent="")}announceCount(){if(!this.outputElement||!this.listBoxElement)return;const t=this.listBoxElement.querySelectorAll("post-listbox-option:not([hidden])").length;this.outputElement.textContent=this.textAvailableSuggestions.replace("{count}",String(t))}render(){return s(e,{key:"f384c1ed106ad5764078f166bfc692a0f1360956","data-version":o},s("slot",{key:"f7b2859a994888a93c19274d26b473aeae35d1b6"}),this.clearable&&this.inputValue&&s("button",{key:"d87eb95ec872bc4d1ec29cd04f88334541863cf1",type:"button",class:"autocomplete-clear",onClick:this.clearInput},s("post-icon",{key:"48b4dc91762b8c15af9fc1aeb953e97e6cc81af0","aria-hidden":"true",name:"closex"})),s("post-icon",{key:"0a0330204698338da6ddd48b5cacfb51f80c1497","aria-hidden":"true",class:"autocomplete-icon",name:"chevronDown"}),s("output",{key:"5e98430b55f4cf2f915061540e6e002749dd2501",class:"visually-hidden",ref:t=>this.outputElement=t}))}get host(){return h(this)}static get watchers(){return{textAvailableSuggestions:[{validateTextAvailableSuggestions:0}]}}};c.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;transition:transform .2s ease-in-out}:host([open]) .autocomplete-icon{transform:rotate(180deg)}.autocomplete-clear{display:flex;align-items:center;justify-content:center;inset-inline-end:42px;background:none;border:none;cursor:pointer}.autocomplete-clear>post-icon{width:20px;height:20px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";export{c as post_autocomplete}
@@ -1 +1 @@
1
- import{r as t,h as e,H as i,a as r}from"./p-Ci4L1rzN.js";import{v as o}from"./p-NDMNbu5d.js";import{f as s}from"./p-D9bU2pIE.js";import"./p-BQ3HlJPr.js";const a=class{constructor(e){t(this,e)}validateUrl(){try{this.validUrl=this.constructUrl(this.url)}catch{this.validUrl=void 0}}constructUrl(t){const e=/^https?:\/\//.test(String(this.url));if("string"==typeof t)return this.fullUrl=e?t:`${globalThis.location.origin}${t}`,s(this,"fullUrl"),this.fullUrl}connectedCallback(){this.validateUrl()}handleKeyDown(t){if("Enter"===t.key||" "===t.key){const e=this.host.shadowRoot?.querySelector("a");e&&(t.preventDefault(),e.click())}}render(){return e(i,{key:"0e991f1d731e932884c1d03650fc9deb743df5ce","data-version":o},e("post-icon",{key:"1a29e4d7a3c80a9a42dd3a63bea84b97bbe4f0a8",name:"chevronright",class:"breadcrumb-item-icon"}),this.validUrl?e("a",{class:"breadcrumb-item",href:this.validUrl,onKeyDown:t=>this.handleKeyDown(t),"aria-label":this.label,"aria-description":this.description},e("slot",null)):e("span",{class:"breadcrumb-item"},e("slot",null)))}get host(){return r(this)}static get watchers(){return{url:[{validateUrl:0}]}}};a.style=":host{display:flex;align-items:center;justify-content:start;gap:var(--post-device-spacing-gap-inline-5)}:host post-icon{box-sizing:border-box;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24);padding-block:var(--post-core-dimension-4);padding-inline:var(--post-core-dimension-4)}.breadcrumb-item{white-space:nowrap;line-height:150%;padding-block:var(--post-device-spacing-padding-block-7);color:var(--post-scheme-color-interactive-primary-enabled-fg1);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.breadcrumb-item:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item:focus-visible{border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item,.breadcrumb-item:focus,.breadcrumb-item:hover{color:LinkText !important}.breadcrumb-item:visited{color:VisitedText !important}}";export{a as post_breadcrumb_item}
1
+ import{r as t,h as e,H as i,a as o}from"./p-DmAi35UF.js";import{v as r}from"./p-B4l5EAoq.js";import{f as s}from"./p-D9bU2pIE.js";import"./p-CJcRbvrI.js";const a=class{constructor(e){t(this,e)}validateUrl(){try{this.validUrl=this.constructUrl(this.url)}catch{this.validUrl=void 0}}constructUrl(t){const e=/^https?:\/\//.test(String(this.url));if("string"==typeof t)return this.fullUrl=e?t:`${globalThis.location.origin}${t}`,s(this,"fullUrl"),this.fullUrl}connectedCallback(){this.validateUrl()}handleKeyDown(t){if("Enter"===t.key||" "===t.key){const e=this.host.shadowRoot?.querySelector("a");e&&(t.preventDefault(),e.click())}}render(){return e(i,{key:"2b4e7426d804073e5974e3e75303e149c48b3f84","data-version":r},e("post-icon",{key:"03f454a41a7f4b28832b05e5d2142aaf1695aa84",name:"chevronright",class:"breadcrumb-item-icon"}),this.validUrl?e("a",{class:"breadcrumb-item",href:this.validUrl,onKeyDown:t=>this.handleKeyDown(t),"aria-label":this.label,"aria-description":this.description},e("slot",null)):e("span",{class:"breadcrumb-item"},e("slot",null)))}get host(){return o(this)}static get watchers(){return{url:[{validateUrl:0}]}}};a.style=":host{display:flex;align-items:center;justify-content:start;gap:var(--post-device-spacing-gap-inline-5)}:host post-icon{box-sizing:border-box;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24);padding-block:var(--post-core-dimension-4);padding-inline:var(--post-core-dimension-4)}.breadcrumb-item{white-space:nowrap;line-height:150%;padding-block:var(--post-device-spacing-padding-block-7);color:var(--post-scheme-color-interactive-primary-enabled-fg1);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.breadcrumb-item:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item:focus-visible{border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item,.breadcrumb-item:focus,.breadcrumb-item:hover{color:LinkText !important}.breadcrumb-item:visited{color:VisitedText !important}}";export{a as post_breadcrumb_item}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as e,a}from"./p-Ci4L1rzN.js";import{v as o}from"./p-NDMNbu5d.js";import{f as h}from"./p-D5knoiyy.js";import{c as n}from"./p-D9bU2pIE.js";import"./p-BQ3HlJPr.js";import"./p-CoDiS_Ik.js";const r=class{constructor(i){t(this,i),this.postChange=s(this,"postChange"),this.isLoaded=!1,this.isNavigationMode=!1,this.fullWidth=!1}get tabs(){return Array.from(this.host.querySelectorAll("post-tab-item")).filter((t=>t.closest("post-tabs")===this.host))}get panels(){return Array.from(this.host.querySelectorAll("post-tab-panel")).filter((t=>t.closest("post-tabs")===this.host))}validateLabel(){this.isNavigationMode&&n(this,"label","string")}componentWillRender(){this.detectMode()}componentDidLoad(){if(this.moveMisplacedTabs(),this.moveMisplacedPanels(),this.enableTabs(),this.setupContentObserver(),this.validateLabel(),this.isNavigationMode){const t=this.findActiveNavigationTab();t&&this.activateTab(t)}else{const t=this.activeTab||this.tabs[0]?.name;t&&this.show(t)}this.isLoaded=!0}disconnectedCallback(){this.showing&&(this.showing.cancel(),this.showing=null),this.hiding&&(this.hiding.cancel(),this.hiding=null),this.contentObserver&&this.contentObserver.disconnect()}setupContentObserver(){this.contentObserver=new MutationObserver(this.handleContentChange.bind(this)),this.contentObserver.observe(this.host,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-navigation-mode","aria-current"]})}handleContentChange(t){const s=this.shouldRedetectMode(t);this.hasAriaCurrentChanged(t)&&this.isNavigationMode&&this.updateActiveNavigationTab(),s&&this.handleModeChange()}shouldRedetectMode(t){return t.some((t=>"childList"===t.type?t.addedNodes.length>0||t.removedNodes.length>0:"attributes"===t.type&&"data-navigation-mode"===t.attributeName))}hasAriaCurrentChanged(t){return t.some((t=>"attributes"===t.type&&"aria-current"===t.attributeName))}updateActiveNavigationTab(){const t=this.findActiveNavigationTab();t&&t!==this.currentActiveTab&&this.activateTab(t)}handleModeChange(){const t=this.isNavigationMode;this.detectMode(),t!==this.isNavigationMode&&(this.enableTabs(),this.initializeActiveTab())}initializeActiveTab(){if(this.isNavigationMode){const t=this.findActiveNavigationTab();t&&this.activateTab(t)}else{const t=this.activeTab||this.tabs[0]?.name;t&&this.show(t)}}detectMode(){const t=this.tabs.some((t=>null!==t.querySelector("a")||"true"===t.dataset.navigationMode));if(t&&this.panels.length>0)throw new Error("PostTabs: Mixed mode detected. Cannot use both navigation mode (anchor elements) and panel mode (post-tab-panel elements) at the same time.");this.isNavigationMode=t}findActiveNavigationTab(){return this.tabs.find((t=>null!==t.querySelector('a[aria-current="page"]')))||null}async show(t){if(t===this.currentActiveTab?.name)return;const s=this.currentActiveTab,i=this.host.querySelector(`post-tab-item[name=${t}]`);this.activateTab(i),this.showing&&(this.showing.finish(),this.showing=null),!s||this.showing||this.hiding||this.hidePanel(s.name),this.hiding&&await this.hiding.finished,this.showSelectedPanel(),this.showing&&await this.showing.finished,this.isLoaded&&this.postChange.emit(this.currentActiveTab.name)}moveMisplacedTabs(){this.tabs&&this.tabs.forEach((t=>{t.getAttribute("slot")&&t.removeAttribute("slot")}))}moveMisplacedPanels(){this.panels&&this.panels.forEach((t=>{"panels"!==t.getAttribute("slot")&&t.setAttribute("slot","panels")}))}enableTabs(){this.tabs&&(this.tabs.forEach((async t=>{if(await(s=t,"function"==typeof s.componentOnReady?s.componentOnReady():new Promise((t=>{return i=()=>{t(s)},"function"==typeof requestAnimationFrame?requestAnimationFrame(i):setTimeout(i);var i}))),this.isNavigationMode)return;var s;if(t.getAttribute("aria-controls"))return;const i=this.getPanel(t.name);i&&(t.setAttribute("aria-controls",i.id),i.setAttribute("aria-labelledby",t.id)),t.addEventListener("click",(()=>{this.show(t.name)})),t.addEventListener("keydown",(s=>{"Enter"!==s.key&&" "!==s.key||(s.preventDefault(),this.show(t.name))})),t.addEventListener("keydown",(s=>{"ArrowRight"!==s.key&&"ArrowLeft"!==s.key||this.navigateTabs(t,s.key)}))})),this.currentActiveTab&&!this.currentActiveTab.isConnected&&this.show(this.tabs[0]?.name))}activateTab(t){this.currentActiveTab&&(this.currentActiveTab.classList.remove("active"),this.isNavigationMode||(this.currentActiveTab.setAttribute("aria-selected","false"),this.currentActiveTab.setAttribute("tabindex","-1"))),t.classList.add("active"),this.isNavigationMode||(t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0")),this.currentActiveTab=t}hidePanel(t){const s=this.getPanel(t);s&&(this.hiding=h(s,"out"),this.hiding.onfinish=()=>{s.style.display="none",this.hiding=null})}showSelectedPanel(){const t=this.getPanel(this.currentActiveTab.name);t&&(t.style.display="block",this.isLoaded&&(this.showing=h(t,"in"),this.showing.onfinish=()=>{this.showing=null}))}getPanel(t){return this.host.querySelector(`post-tab-panel[for=${t}]`)}navigateTabs(t,s){const i=Array.from(this.tabs).indexOf(t);let e;e="ArrowRight"===s?this.tabs[i+1]||this.tabs[0]:this.tabs[i-1]||this.tabs.at(-1),e&&(e.focus(),this.show(e.name))}render(){return i(e,{key:"edb1e06b1b1cdd23db32e42ff77dbc64a44905f0","data-version":o},i("div",{key:"d86eb9bb592aff23c38c92b12dfd72623d67f194",class:"tabs-wrapper",part:"post-tabs"},i(this.isNavigationMode?"nav":"div",{key:"6646284be80e647c96065b3c791f34c4b64627f3",class:"tabs",role:this.isNavigationMode?void 0:"tablist","aria-label":this.isNavigationMode?this.label:void 0},i("slot",{key:"c71ddf4391144b7cb71671e8f564e723c408e723",onSlotchange:()=>{this.moveMisplacedTabs(),this.enableTabs()}}))),!this.isNavigationMode&&i("div",{key:"625d5b7d8ab2e8cfacce0c2ac6fa94d6f6fc2953",class:"tab-content",part:"post-tabs-content"},i("slot",{key:"1ddaf37e585d3e9fbb9722e09829956e28dc7fd6",name:"panels",onSlotchange:()=>this.moveMisplacedPanels()})))}get host(){return a(this)}static get watchers(){return{label:[{validateLabel:0}]}}};r.style='.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(0,0,0,.02)}.tabs-wrapper::after{content:"";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;padding-inline-start:0;list-style:none}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}:host{display:block}:host([full-width=true]) .tabs-wrapper{margin-inline:calc(-1*var(--post-container-offset))}:host([full-width=true]) .tabs-wrapper .tabs{padding-inline:var(--post-container-offset)}';export{r as post_tabs}
1
+ import{r as t,c as s,h as i,H as e,a}from"./p-DmAi35UF.js";import{v as o}from"./p-B4l5EAoq.js";import{f as h}from"./p-D5knoiyy.js";import{c as n}from"./p-D9bU2pIE.js";import"./p-CJcRbvrI.js";import"./p-CoDiS_Ik.js";const r=class{constructor(i){t(this,i),this.postChange=s(this,"postChange"),this.isLoaded=!1,this.isNavigationMode=!1,this.fullWidth=!1}get tabs(){return Array.from(this.host.querySelectorAll("post-tab-item")).filter((t=>t.closest("post-tabs")===this.host))}get panels(){return Array.from(this.host.querySelectorAll("post-tab-panel")).filter((t=>t.closest("post-tabs")===this.host))}validateLabel(){this.isNavigationMode&&n(this,"label","string")}componentWillRender(){this.detectMode()}componentDidLoad(){if(this.moveMisplacedTabs(),this.moveMisplacedPanels(),this.enableTabs(),this.setupContentObserver(),this.validateLabel(),this.isNavigationMode){const t=this.findActiveNavigationTab();t&&this.activateTab(t)}else{const t=this.activeTab||this.tabs[0]?.name;t&&this.show(t)}this.isLoaded=!0}disconnectedCallback(){this.showing&&(this.showing.cancel(),this.showing=null),this.hiding&&(this.hiding.cancel(),this.hiding=null),this.contentObserver&&this.contentObserver.disconnect()}setupContentObserver(){this.contentObserver=new MutationObserver(this.handleContentChange.bind(this)),this.contentObserver.observe(this.host,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-navigation-mode","aria-current"]})}handleContentChange(t){const s=this.shouldRedetectMode(t);this.hasAriaCurrentChanged(t)&&this.isNavigationMode&&this.updateActiveNavigationTab(),s&&this.handleModeChange()}shouldRedetectMode(t){return t.some((t=>"childList"===t.type?t.addedNodes.length>0||t.removedNodes.length>0:"attributes"===t.type&&"data-navigation-mode"===t.attributeName))}hasAriaCurrentChanged(t){return t.some((t=>"attributes"===t.type&&"aria-current"===t.attributeName))}updateActiveNavigationTab(){const t=this.findActiveNavigationTab();t&&t!==this.currentActiveTab&&this.activateTab(t)}handleModeChange(){const t=this.isNavigationMode;this.detectMode(),t!==this.isNavigationMode&&(this.enableTabs(),this.initializeActiveTab())}initializeActiveTab(){if(this.isNavigationMode){const t=this.findActiveNavigationTab();t&&this.activateTab(t)}else{const t=this.activeTab||this.tabs[0]?.name;t&&this.show(t)}}detectMode(){const t=this.tabs.some((t=>null!==t.querySelector("a")||"true"===t.dataset.navigationMode));if(t&&this.panels.length>0)throw new Error("PostTabs: Mixed mode detected. Cannot use both navigation mode (anchor elements) and panel mode (post-tab-panel elements) at the same time.");this.isNavigationMode=t}findActiveNavigationTab(){return this.tabs.find((t=>null!==t.querySelector('a[aria-current="page"]')))||null}async show(t){if(t===this.currentActiveTab?.name)return;const s=this.currentActiveTab,i=this.host.querySelector(`post-tab-item[name=${t}]`);this.activateTab(i),this.showing&&(this.showing.finish(),this.showing=null),!s||this.showing||this.hiding||this.hidePanel(s.name),this.hiding&&await this.hiding.finished,this.showSelectedPanel(),this.showing&&await this.showing.finished,this.isLoaded&&this.postChange.emit(this.currentActiveTab.name)}moveMisplacedTabs(){this.tabs&&this.tabs.forEach((t=>{t.getAttribute("slot")&&t.removeAttribute("slot")}))}moveMisplacedPanels(){this.panels&&this.panels.forEach((t=>{"panels"!==t.getAttribute("slot")&&t.setAttribute("slot","panels")}))}enableTabs(){this.tabs&&(this.tabs.forEach((async t=>{if(await(s=t,"function"==typeof s.componentOnReady?s.componentOnReady():new Promise((t=>{return i=()=>{t(s)},"function"==typeof requestAnimationFrame?requestAnimationFrame(i):setTimeout(i);var i}))),this.isNavigationMode)return;var s;if(t.getAttribute("aria-controls"))return;const i=this.getPanel(t.name);i&&(t.setAttribute("aria-controls",i.id),i.setAttribute("aria-labelledby",t.id)),t.addEventListener("click",(()=>{this.show(t.name)})),t.addEventListener("keydown",(s=>{"Enter"!==s.key&&" "!==s.key||(s.preventDefault(),this.show(t.name))})),t.addEventListener("keydown",(s=>{"ArrowRight"!==s.key&&"ArrowLeft"!==s.key||this.navigateTabs(t,s.key)}))})),this.currentActiveTab&&!this.currentActiveTab.isConnected&&this.show(this.tabs[0]?.name))}activateTab(t){this.currentActiveTab&&(this.currentActiveTab.classList.remove("active"),this.isNavigationMode||(this.currentActiveTab.setAttribute("aria-selected","false"),this.currentActiveTab.setAttribute("tabindex","-1"))),t.classList.add("active"),this.isNavigationMode||(t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0")),this.currentActiveTab=t}hidePanel(t){const s=this.getPanel(t);s&&(this.hiding=h(s,"out"),this.hiding.onfinish=()=>{s.style.display="none",this.hiding=null})}showSelectedPanel(){const t=this.getPanel(this.currentActiveTab.name);t&&(t.style.display="block",this.isLoaded&&(this.showing=h(t,"in"),this.showing.onfinish=()=>{this.showing=null}))}getPanel(t){return this.host.querySelector(`post-tab-panel[for=${t}]`)}navigateTabs(t,s){const i=Array.from(this.tabs).indexOf(t);let e;e="ArrowRight"===s?this.tabs[i+1]||this.tabs[0]:this.tabs[i-1]||this.tabs.at(-1),e&&(e.focus(),this.show(e.name))}render(){return i(e,{key:"383093508d7c7ff8871ded0bcbe5fb88f8211ffa","data-version":o},i("div",{key:"e54724f5c4427c1ee76bc29bcf24bc26e9589898",class:"tabs-wrapper",part:"post-tabs"},i(this.isNavigationMode?"nav":"div",{key:"f053c146995de984d42844e0f3e2159e77ef5ec4",class:"tabs",role:this.isNavigationMode?void 0:"tablist","aria-label":this.isNavigationMode?this.label:void 0},i("slot",{key:"6f5165c9e3109a0e04b5e0717cc29770490de49b",onSlotchange:()=>{this.moveMisplacedTabs(),this.enableTabs()}}))),!this.isNavigationMode&&i("div",{key:"9f49ba439d84a56b5c71004e361eb856d2fb9476",class:"tab-content",part:"post-tabs-content"},i("slot",{key:"837899fd44e5e36c782fb1f3242e4765a1301f71",name:"panels",onSlotchange:()=>this.moveMisplacedPanels()})))}get host(){return a(this)}static get watchers(){return{label:[{validateLabel:0}]}}};r.style='.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(0,0,0,.02)}.tabs-wrapper::after{content:"";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;padding-inline-start:0;list-style:none}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}:host{display:block}:host([full-width=true]) .tabs-wrapper{margin-inline:calc(-1*var(--post-container-offset))}:host([full-width=true]) .tabs-wrapper .tabs{padding-inline:var(--post-container-offset)}';export{r as post_tabs}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,H as a,a as o}from"./p-DmAi35UF.js";import{v as r}from"./p-B4l5EAoq.js";import{n as e}from"./p-nA1BKco0.js";import{c as i}from"./p-D9bU2pIE.js";import"./p-CJcRbvrI.js";const p=class{constructor(s){t(this,s)}validateFor(){i(this,"for","string")}componentWillLoad(){this.validateFor(),this.panelId=`panel-${this.host.id||e(6)}`}render(){return s(a,{key:"54aa43b74f51d8e68423a5fd268ce02652f4d85a","data-version":r,id:this.panelId,role:"tabpanel",slot:"panels"},s("slot",{key:"ac6c05d411546d8aa226a969b1b0e5bcce664b62"}))}get host(){return o(this)}static get watchers(){return{for:[{validateFor:0}]}}};p.style=":host{display:none}";export{p as post_tab_panel}
@@ -1 +1 @@
1
- import{r as e,h as t,H as i}from"./p-Ci4L1rzN.js";import{v as o}from"./p-NDMNbu5d.js";const r=class{constructor(t){e(this,t)}render(){return t(i,{key:"7f3df658eb7640f582e438f218e3ec62fbb4edee","data-version":o,role:"listitem"},t("span",{key:"bb7b02a3cca04d16626f66c52eb08085a8e9cb26",class:"stepper-item-content"},t("span",{key:"78ca87ae8956838bc7fffec8e6d9121aa4aa14da",class:"step-hidden-label visually-hidden"}),t("span",{key:"6beecc79f02ed51046e6b7cc5006c305c821f9bc",class:"label"},t("slot",{key:"5701a12b73a29bd629fa361bcd838c9a7ec88869"}))))}};r.style=':host{grid-row:1;position:relative;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)){padding-inline-start:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2)}:host(:not(:last-of-type)){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)::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:fit-content;word-break:break-word;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{margin-inline-start:auto;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{counter-increment:step-index;content:counter(step-index);display:flex;align-items:center;justify-content:center;z-index:1;height:var(--post-device-sizing-interactive-stepper-indicator);width:var(--post-device-sizing-interactive-stepper-indicator);box-sizing:border-box;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{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;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+PHBhdGggZD0iTTE0Ljg3IDI0LjgxIDguMjMgMTcuN2MtLjY2LS43MS0uNjItMS44M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2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+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{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+PHN5bWJvbCBpZD0iczE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiPjxwYXRoIGQ9Im0xLjUgMTAuOTkgOC41LTguNXMuMDMuMDUuMDUuMDdsMy41IDMuNDUtOC41MiA4LjUxem0tLjkyIDEuMi0uNTYgMy44IDMuODEtLjU2LTMuMjQtMy4yNFptMTUuMjUtOS4zN0wxMy4xOS4xOGEuNjMuNjMgMCAwIDAtLjg4IDBsLTEuMjcgMS4yN3MuMDQuMDIuMDYuMDRsMy41IDMuNDUgMS4yMy0xLjIzYy4yNC0uMjQuMjQtLjY0IDAtLjg4WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InMyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNNS44NCAyMy4xNS4wMiAyNGwuODUtNS44MnptMS40MS0xLjA4TDIwLjQ5IDguODNsLTUuMjUtNS4xN3MtLjA0LS4wNy0uMDctLjFMMS45NSAxNi43OGw1LjMgNS4zWm0xNi41LTE3LjgzTDE5Ljc4LjI3YS45MzYuOTM2IDAgMCAwLTEuMzMgMGwtMi4wOSAyLjA5cy4wNi4wMy4wOS4wNmw1LjI2IDUuMTggMi4wMy0yLjAzYy4zNy0uMzcuMzctLjk2IDAtMS4zM1oiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAz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bmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWVkaXQtc29saWQiLz48L2c+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)}@media screen and (max-width: 779.98px){:host{flex-grow:1;margin-inline:0;padding:0 !important}:host::before{content:unset}:host::after{inset-inline-start:0 !important}:host(:last-of-type){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}';export{r as post_stepper_item}
1
+ import{r as e,h as t,H as i}from"./p-DmAi35UF.js";import{v as o}from"./p-B4l5EAoq.js";const r=class{constructor(t){e(this,t)}render(){return t(i,{key:"0919891d67f961e1ee2c8a7fb556d232ed34ed94","data-version":o,role:"listitem"},t("span",{key:"862705599a537267080fbf054e06353c65888bba",class:"stepper-item-content"},t("span",{key:"96c62cc07fd460402d4e49a36fad70c80eb52f78",class:"step-hidden-label visually-hidden"}),t("span",{key:"6cce8bef3684d50f8dbb72f48b1ca3b0bbcd57ca",class:"label"},t("slot",{key:"9ec06d2716870180309bbfde83a04953e7abb011"}))))}};r.style=':host{grid-row:1;position:relative;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)){padding-inline-start:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2)}:host(:not(:last-of-type)){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)::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:fit-content;word-break:break-word;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{margin-inline-start:auto;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{counter-increment:step-index;content:counter(step-index);display:flex;align-items:center;justify-content:center;z-index:1;height:var(--post-device-sizing-interactive-stepper-indicator);width:var(--post-device-sizing-interactive-stepper-indicator);box-sizing:border-box;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{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;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,PHN2ZyB4bWxucz0i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bWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZWNrbWFyay1zb2xpZCIvPjwvZz48L3N2Zz4=")}: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{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+PHN5b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zIi8+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)}@media screen and (max-width: 779.98px){:host{flex-grow:1;margin-inline:0;padding:0 !important}:host::before{content:unset}:host::after{inset-inline-start:0 !important}:host(:last-of-type){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}';export{r as post_stepper_item}