@swisspost/design-system-components 1.5.1 → 1.6.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 (294) hide show
  1. package/dist/cjs/check-non-empty-ae713942.js +13 -0
  2. package/dist/cjs/check-non-empty-ae713942.js.map +1 -0
  3. package/dist/cjs/{check-one-of-4c2e8b2e.js → check-one-of-27ad3154.js} +1 -1
  4. package/dist/cjs/check-one-of-27ad3154.js.map +1 -0
  5. package/dist/cjs/constants-238701d3.js +7 -0
  6. package/dist/cjs/constants-238701d3.js.map +1 -0
  7. package/dist/cjs/fade-35a3633a.js +12 -0
  8. package/dist/cjs/fade-35a3633a.js.map +1 -0
  9. package/dist/cjs/index-b38a23e0.js +41 -0
  10. package/dist/cjs/index-b38a23e0.js.map +1 -0
  11. package/dist/cjs/{index-12cc37c9.js → index-b619e205.js} +245 -41
  12. package/dist/cjs/index-b619e205.js.map +1 -0
  13. package/dist/cjs/index.cjs.js +26 -0
  14. package/dist/cjs/index.cjs.js.map +1 -1
  15. package/dist/cjs/loader.cjs.js +3 -12
  16. package/dist/cjs/loader.cjs.js.map +1 -1
  17. package/dist/cjs/package-7c4db872.js +7 -0
  18. package/dist/cjs/package-7c4db872.js.map +1 -0
  19. package/dist/cjs/post-accordion.cjs.entry.js +89 -0
  20. package/dist/cjs/post-accordion.cjs.entry.js.map +1 -0
  21. package/dist/cjs/post-alert-c037e6a3.js +101 -0
  22. package/dist/{post-components/p-7240ae7b.entry.js.map → cjs/post-alert-c037e6a3.js.map} +1 -1
  23. package/dist/cjs/post-alert.cjs.entry.js +9 -96
  24. package/dist/cjs/post-alert.cjs.entry.js.map +1 -1
  25. package/dist/cjs/post-collapsible-7c9d23a2.js +93 -0
  26. package/dist/cjs/post-collapsible-7c9d23a2.js.map +1 -0
  27. package/dist/cjs/post-collapsible.cjs.entry.js +7 -119
  28. package/dist/cjs/post-collapsible.cjs.entry.js.map +1 -1
  29. package/dist/cjs/post-components.cjs.js +3 -6
  30. package/dist/cjs/post-components.cjs.js.map +1 -1
  31. package/dist/cjs/post-icon-f418f76a.js +105 -0
  32. package/dist/cjs/post-icon-f418f76a.js.map +1 -0
  33. package/dist/cjs/post-icon.cjs.entry.js +8 -100
  34. package/dist/cjs/post-icon.cjs.entry.js.map +1 -1
  35. package/dist/cjs/post-tab-header-e08c2a42.js +33 -0
  36. package/dist/cjs/post-tab-header-e08c2a42.js.map +1 -0
  37. package/dist/cjs/post-tab-header.cjs.entry.js +6 -26
  38. package/dist/cjs/post-tab-header.cjs.entry.js.map +1 -1
  39. package/dist/cjs/post-tab-panel-721f7f32.js +27 -0
  40. package/dist/cjs/post-tab-panel-721f7f32.js.map +1 -0
  41. package/dist/cjs/post-tab-panel.cjs.entry.js +4 -20
  42. package/dist/cjs/post-tab-panel.cjs.entry.js.map +1 -1
  43. package/dist/cjs/post-tabs-4bcc867b.js +153 -0
  44. package/dist/cjs/post-tabs-4bcc867b.js.map +1 -0
  45. package/dist/cjs/post-tabs.cjs.entry.js +5 -146
  46. package/dist/cjs/post-tabs.cjs.entry.js.map +1 -1
  47. package/dist/cjs/post-tooltip-261c5cda.js +5095 -0
  48. package/dist/cjs/post-tooltip-261c5cda.js.map +1 -0
  49. package/dist/cjs/post-tooltip.cjs.entry.js +5 -5088
  50. package/dist/cjs/post-tooltip.cjs.entry.js.map +1 -1
  51. package/dist/collection/animations/collapse.js +13 -0
  52. package/dist/collection/animations/collapse.js.map +1 -0
  53. package/dist/collection/animations/fade.js +4 -4
  54. package/dist/collection/animations/fade.js.map +1 -1
  55. package/dist/collection/collection-manifest.json +10 -9
  56. package/dist/collection/components/post-accordion/post-accordion.css +1 -0
  57. package/dist/collection/components/post-accordion/post-accordion.js +178 -0
  58. package/dist/collection/components/post-accordion/post-accordion.js.map +1 -0
  59. package/dist/collection/components/post-alert/post-alert.css +1 -1
  60. package/dist/collection/components/post-alert/post-alert.js +9 -7
  61. package/dist/collection/components/post-alert/post-alert.js.map +1 -1
  62. package/dist/collection/components/post-collapsible/heading-levels.js +2 -0
  63. package/dist/collection/components/post-collapsible/heading-levels.js.map +1 -0
  64. package/dist/collection/components/post-collapsible/post-collapsible.css +1 -29
  65. package/dist/collection/components/post-collapsible/post-collapsible.js +65 -63
  66. package/dist/collection/components/post-collapsible/post-collapsible.js.map +1 -1
  67. package/dist/collection/components/post-icon/post-icon.js +5 -4
  68. package/dist/collection/components/post-icon/post-icon.js.map +1 -1
  69. package/dist/collection/components/post-tab-header/post-tab-header.css +1 -1
  70. package/dist/collection/components/post-tab-header/post-tab-header.js +5 -4
  71. package/dist/collection/components/post-tab-header/post-tab-header.js.map +1 -1
  72. package/dist/collection/components/post-tab-panel/post-tab-panel.js +2 -2
  73. package/dist/collection/components/post-tabs/post-tabs.js +11 -7
  74. package/dist/collection/components/post-tabs/post-tabs.js.map +1 -1
  75. package/dist/collection/components/post-tooltip/post-tooltip.js +22 -15
  76. package/dist/collection/components/post-tooltip/post-tooltip.js.map +1 -1
  77. package/dist/collection/index.js +8 -1
  78. package/dist/collection/index.js.map +1 -1
  79. package/dist/collection/utils/index.js +1 -3
  80. package/dist/collection/utils/index.js.map +1 -1
  81. package/dist/collection/utils/is-motion-reduced.js +4 -0
  82. package/dist/collection/utils/is-motion-reduced.js.map +1 -0
  83. package/dist/collection/utils/property-checkers/check-non-empty.js +1 -1
  84. package/dist/collection/utils/property-checkers/empty-or.js +1 -1
  85. package/dist/collection/utils/property-checkers/index.js +4 -4
  86. package/dist/components/check-non-empty.js +2 -2
  87. package/dist/components/check-non-empty.js.map +1 -1
  88. package/dist/components/check-one-of.js.map +1 -1
  89. package/dist/components/constants.js +5 -0
  90. package/dist/components/constants.js.map +1 -0
  91. package/dist/components/fade.js +4 -4
  92. package/dist/components/fade.js.map +1 -1
  93. package/dist/components/index.d.ts +6 -0
  94. package/dist/components/index.js +8 -1
  95. package/dist/components/index.js.map +1 -1
  96. package/dist/components/index2.js +36 -0
  97. package/dist/components/index2.js.map +1 -0
  98. package/dist/components/package.js +1 -1
  99. package/dist/components/post-accordion.d.ts +11 -0
  100. package/dist/components/post-accordion.js +108 -0
  101. package/dist/components/post-accordion.js.map +1 -0
  102. package/dist/components/post-alert.js +1 -128
  103. package/dist/components/post-alert.js.map +1 -1
  104. package/dist/components/post-alert2.js +138 -0
  105. package/dist/components/post-alert2.js.map +1 -0
  106. package/dist/components/post-collapsible.js +1 -146
  107. package/dist/components/post-collapsible.js.map +1 -1
  108. package/dist/components/post-collapsible2.js +117 -0
  109. package/dist/components/post-collapsible2.js.map +1 -0
  110. package/dist/components/post-icon2.js +11 -21
  111. package/dist/components/post-icon2.js.map +1 -1
  112. package/dist/components/post-tab-header.js +1 -45
  113. package/dist/components/post-tab-header.js.map +1 -1
  114. package/dist/components/post-tab-header2.js +51 -0
  115. package/dist/components/post-tab-header2.js.map +1 -0
  116. package/dist/components/post-tab-panel.js +1 -39
  117. package/dist/components/post-tab-panel.js.map +1 -1
  118. package/dist/components/post-tab-panel2.js +43 -0
  119. package/dist/components/post-tab-panel2.js.map +1 -0
  120. package/dist/components/post-tabs.js +1 -165
  121. package/dist/components/post-tabs.js.map +1 -1
  122. package/dist/components/post-tabs2.js +169 -0
  123. package/dist/components/post-tabs2.js.map +1 -0
  124. package/dist/components/post-tooltip.js +1 -5111
  125. package/dist/components/post-tooltip.js.map +1 -1
  126. package/dist/components/post-tooltip2.js +5117 -0
  127. package/dist/components/post-tooltip2.js.map +1 -0
  128. package/dist/docs.d.ts +334 -235
  129. package/dist/docs.json +458 -14
  130. package/dist/esm/check-non-empty-09c39561.js +11 -0
  131. package/dist/esm/check-non-empty-09c39561.js.map +1 -0
  132. package/dist/esm/{check-one-of-ded5e15e.js → check-one-of-74750af9.js} +1 -1
  133. package/dist/esm/check-one-of-74750af9.js.map +1 -0
  134. package/dist/esm/constants-8d548297.js +5 -0
  135. package/dist/esm/constants-8d548297.js.map +1 -0
  136. package/dist/esm/fade-7fd71785.js +9 -0
  137. package/dist/esm/fade-7fd71785.js.map +1 -0
  138. package/dist/esm/index-35921354.js +36 -0
  139. package/dist/esm/index-35921354.js.map +1 -0
  140. package/dist/esm/{index-5611074b.js → index-4eff5fc5.js} +245 -41
  141. package/dist/esm/index-4eff5fc5.js.map +1 -0
  142. package/dist/esm/index.js +14 -1
  143. package/dist/esm/index.js.map +1 -1
  144. package/dist/esm/loader.js +4 -13
  145. package/dist/esm/loader.js.map +1 -1
  146. package/dist/esm/package-3bbdb32c.js +5 -0
  147. package/dist/esm/package-3bbdb32c.js.map +1 -0
  148. package/dist/esm/post-accordion.entry.js +85 -0
  149. package/dist/esm/post-accordion.entry.js.map +1 -0
  150. package/dist/{post-components/p-7240ae7b.entry.js → esm/post-alert-5dd43c8b.js} +99 -2
  151. package/dist/esm/post-alert-5dd43c8b.js.map +1 -0
  152. package/dist/esm/post-alert.entry.js +8 -99
  153. package/dist/esm/post-alert.entry.js.map +1 -1
  154. package/dist/esm/post-collapsible-26dc2340.js +91 -0
  155. package/dist/esm/post-collapsible-26dc2340.js.map +1 -0
  156. package/dist/esm/post-collapsible.entry.js +6 -122
  157. package/dist/esm/post-collapsible.entry.js.map +1 -1
  158. package/dist/esm/post-components.js +4 -7
  159. package/dist/esm/post-components.js.map +1 -1
  160. package/dist/esm/post-icon-fb0eb8aa.js +103 -0
  161. package/dist/esm/post-icon-fb0eb8aa.js.map +1 -0
  162. package/dist/esm/post-icon.entry.js +7 -103
  163. package/dist/esm/post-icon.entry.js.map +1 -1
  164. package/dist/esm/post-tab-header-deebc551.js +31 -0
  165. package/dist/esm/post-tab-header-deebc551.js.map +1 -0
  166. package/dist/esm/post-tab-header.entry.js +5 -29
  167. package/dist/esm/post-tab-header.entry.js.map +1 -1
  168. package/dist/esm/post-tab-panel-4b820f71.js +25 -0
  169. package/dist/esm/post-tab-panel-4b820f71.js.map +1 -0
  170. package/dist/esm/post-tab-panel.entry.js +3 -23
  171. package/dist/esm/post-tab-panel.entry.js.map +1 -1
  172. package/dist/esm/post-tabs-2d8d6a33.js +151 -0
  173. package/dist/esm/post-tabs-2d8d6a33.js.map +1 -0
  174. package/dist/esm/post-tabs.entry.js +4 -149
  175. package/dist/esm/post-tabs.entry.js.map +1 -1
  176. package/dist/esm/post-tooltip-811309c5.js +5093 -0
  177. package/dist/esm/post-tooltip-811309c5.js.map +1 -0
  178. package/dist/esm/post-tooltip.entry.js +4 -5091
  179. package/dist/esm/post-tooltip.entry.js.map +1 -1
  180. package/dist/post-components/index.esm.js +1 -1
  181. package/dist/post-components/{p-8c386036.entry.js → p-01e8dfe6.js} +3 -3
  182. package/dist/post-components/p-01e8dfe6.js.map +1 -0
  183. package/dist/post-components/p-0a49c1a3.entry.js +2 -0
  184. package/dist/post-components/{p-bcc705f1.js → p-1339f8cd.js} +1 -1
  185. package/dist/post-components/p-1339f8cd.js.map +1 -0
  186. package/dist/post-components/{p-123bb6fb.entry.js → p-1a8a8ef2.js} +2 -2
  187. package/dist/post-components/p-1a8a8ef2.js.map +1 -0
  188. package/dist/post-components/p-27092ac3.entry.js +2 -0
  189. package/dist/post-components/p-27092ac3.entry.js.map +1 -0
  190. package/dist/post-components/{p-e5306504.js → p-2737eaf5.js} +1 -1
  191. package/dist/post-components/p-2737eaf5.js.map +1 -0
  192. package/dist/post-components/p-332eef46.js +2 -0
  193. package/dist/post-components/p-332eef46.js.map +1 -0
  194. package/dist/post-components/p-440193f4.js +2 -0
  195. package/dist/post-components/p-440193f4.js.map +1 -0
  196. package/dist/post-components/p-541142fd.js +2 -0
  197. package/dist/post-components/p-541142fd.js.map +1 -0
  198. package/dist/post-components/{p-0d37fe44.entry.js → p-574acdb0.js} +2 -2
  199. package/dist/post-components/p-574acdb0.js.map +1 -0
  200. package/dist/post-components/p-66460e3f.entry.js +2 -0
  201. package/dist/post-components/p-66460e3f.entry.js.map +1 -0
  202. package/dist/post-components/p-810ee105.entry.js +2 -0
  203. package/dist/post-components/p-810ee105.entry.js.map +1 -0
  204. package/dist/post-components/p-939df031.entry.js +2 -0
  205. package/dist/post-components/p-939df031.entry.js.map +1 -0
  206. package/dist/post-components/p-94b3f291.entry.js +2 -0
  207. package/dist/post-components/p-94b3f291.entry.js.map +1 -0
  208. package/dist/post-components/p-97000cb6.js +2 -0
  209. package/dist/post-components/p-97000cb6.js.map +1 -0
  210. package/dist/post-components/p-a7649277.js +3 -0
  211. package/dist/post-components/p-a7649277.js.map +1 -0
  212. package/dist/post-components/p-abd149b3.entry.js +2 -0
  213. package/dist/post-components/p-abd149b3.entry.js.map +1 -0
  214. package/dist/post-components/p-b531475e.js +2 -0
  215. package/dist/post-components/p-b531475e.js.map +1 -0
  216. package/dist/post-components/p-c6b73d6e.js +2 -0
  217. package/dist/post-components/p-c6b73d6e.js.map +1 -0
  218. package/dist/post-components/p-d4fb9f16.js +2 -0
  219. package/dist/post-components/p-d4fb9f16.js.map +1 -0
  220. package/dist/post-components/p-dfe29f7f.js +2 -0
  221. package/dist/post-components/p-dfe29f7f.js.map +1 -0
  222. package/dist/post-components/p-e9dc9039.entry.js +2 -0
  223. package/dist/post-components/p-e9dc9039.entry.js.map +1 -0
  224. package/dist/post-components/post-components.esm.js +1 -1
  225. package/dist/post-components/post-components.esm.js.map +1 -1
  226. package/dist/types/animations/collapse.d.ts +2 -0
  227. package/dist/types/components/post-accordion/post-accordion.d.ts +28 -0
  228. package/dist/types/components/post-alert/post-alert.d.ts +1 -1
  229. package/dist/types/components/post-collapsible/heading-levels.d.ts +2 -0
  230. package/dist/types/components/post-collapsible/post-collapsible.d.ts +16 -12
  231. package/dist/types/components.d.ts +79 -3
  232. package/dist/types/index.d.ts +7 -0
  233. package/dist/types/stencil-public-runtime.d.ts +38 -5
  234. package/dist/types/utils/index.d.ts +1 -3
  235. package/dist/types/utils/is-motion-reduced.d.ts +1 -0
  236. package/loader/index.d.ts +1 -1
  237. package/package.json +8 -8
  238. package/dist/cjs/check-non-empty-35b4d0b5.js +0 -14
  239. package/dist/cjs/check-non-empty-35b4d0b5.js.map +0 -1
  240. package/dist/cjs/check-one-of-4c2e8b2e.js.map +0 -1
  241. package/dist/cjs/check-type-508a21a5.js +0 -18
  242. package/dist/cjs/check-type-508a21a5.js.map +0 -1
  243. package/dist/cjs/fade-8c6d4fa7.js +0 -12
  244. package/dist/cjs/fade-8c6d4fa7.js.map +0 -1
  245. package/dist/cjs/index-12cc37c9.js.map +0 -1
  246. package/dist/cjs/index-f8f6f146.js +0 -28
  247. package/dist/cjs/index-f8f6f146.js.map +0 -1
  248. package/dist/cjs/package-112e1698.js +0 -7
  249. package/dist/cjs/package-112e1698.js.map +0 -1
  250. package/dist/collection/utils/get-element-height.js +0 -12
  251. package/dist/collection/utils/get-element-height.js.map +0 -1
  252. package/dist/collection/utils/on-transition-end.js +0 -15
  253. package/dist/collection/utils/on-transition-end.js.map +0 -1
  254. package/dist/collection/utils/should-reduce-motion.js +0 -4
  255. package/dist/collection/utils/should-reduce-motion.js.map +0 -1
  256. package/dist/components/check-type.js +0 -16
  257. package/dist/components/check-type.js.map +0 -1
  258. package/dist/esm/check-non-empty-554bdf88.js +0 -11
  259. package/dist/esm/check-non-empty-554bdf88.js.map +0 -1
  260. package/dist/esm/check-one-of-ded5e15e.js.map +0 -1
  261. package/dist/esm/check-type-18ebb4e7.js +0 -16
  262. package/dist/esm/check-type-18ebb4e7.js.map +0 -1
  263. package/dist/esm/fade-671f1489.js +0 -9
  264. package/dist/esm/fade-671f1489.js.map +0 -1
  265. package/dist/esm/index-5611074b.js.map +0 -1
  266. package/dist/esm/index-7f723686.js +0 -24
  267. package/dist/esm/index-7f723686.js.map +0 -1
  268. package/dist/esm/package-331628f1.js +0 -5
  269. package/dist/esm/package-331628f1.js.map +0 -1
  270. package/dist/esm/polyfills/css-shim.js +0 -1
  271. package/dist/post-components/p-0d37fe44.entry.js.map +0 -1
  272. package/dist/post-components/p-123bb6fb.entry.js.map +0 -1
  273. package/dist/post-components/p-15fc087f.js +0 -2
  274. package/dist/post-components/p-15fc087f.js.map +0 -1
  275. package/dist/post-components/p-65a9d1c2.entry.js +0 -2
  276. package/dist/post-components/p-65a9d1c2.entry.js.map +0 -1
  277. package/dist/post-components/p-75a7b352.js +0 -2
  278. package/dist/post-components/p-75a7b352.js.map +0 -1
  279. package/dist/post-components/p-8c386036.entry.js.map +0 -1
  280. package/dist/post-components/p-97a064da.entry.js +0 -2
  281. package/dist/post-components/p-97a064da.entry.js.map +0 -1
  282. package/dist/post-components/p-bcc705f1.js.map +0 -1
  283. package/dist/post-components/p-c8efe0ae.js +0 -2
  284. package/dist/post-components/p-c8efe0ae.js.map +0 -1
  285. package/dist/post-components/p-ccae1c68.entry.js +0 -2
  286. package/dist/post-components/p-ccae1c68.entry.js.map +0 -1
  287. package/dist/post-components/p-d94db268.js +0 -3
  288. package/dist/post-components/p-d94db268.js.map +0 -1
  289. package/dist/post-components/p-e5306504.js.map +0 -1
  290. package/dist/post-components/p-eb3ff4dc.js +0 -2
  291. package/dist/types/utils/get-element-height.d.ts +0 -3
  292. package/dist/types/utils/on-transition-end.d.ts +0 -1
  293. package/dist/types/utils/should-reduce-motion.d.ts +0 -1
  294. /package/dist/post-components/{p-eb3ff4dc.js.map → p-0a49c1a3.entry.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ export{P as post_alert}from"./p-c6b73d6e.js";import"./p-a7649277.js";import"./p-541142fd.js";import"./p-2737eaf5.js";import"./p-dfe29f7f.js";import"./p-440193f4.js";import"./p-1339f8cd.js";import"./p-b531475e.js";
2
+ //# sourceMappingURL=p-0a49c1a3.entry.js.map
@@ -1,2 +1,2 @@
1
1
  function r(r,o,n){if(!o.includes(r))throw new Error(n)}export{r as c};
2
- //# sourceMappingURL=p-bcc705f1.js.map
2
+ //# sourceMappingURL=p-1339f8cd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["checkOneOf","value","possibleValues","error","includes","Error"],"sources":["src/utils/property-checkers/check-one-of.ts"],"sourcesContent":["export function checkOneOf<T>(value: T, possibleValues: readonly T[], error: string) {\n if (!possibleValues.includes(value)) throw new Error(error);\n}\n"],"mappings":"SAAgBA,EAAcC,EAAUC,EAA8BC,GACpE,IAAKD,EAAeE,SAASH,GAAQ,MAAM,IAAII,MAAMF,EACvD,Q"}
@@ -1,2 +1,2 @@
1
- import{r as t,c as a,h as r,H as o,g as s}from"./p-d94db268.js";import{v as e}from"./p-eb3ff4dc.js";import{f as i,a as b}from"./p-e5306504.js";const c='.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:#faf9f8}.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{margin:0;padding:0;list-style:none;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem;padding-bottom:1rem}.bg-yellow .tabs-wrapper{background-color:#fc0}.bg-light .tabs-wrapper{background-color:#faf9f8}.bg-gray .tabs-wrapper{background-color:#f4f3f1}.bg-dark .tabs-wrapper{background-color:#333}.bg-primary .tabs-wrapper{background-color:#333}.bg-white .tabs-wrapper{background-color:#fff}.bg-black .tabs-wrapper{background-color:#000}.bg-success .tabs-wrapper{background-color:#2c911c}.bg-info .tabs-wrapper{background-color:#cce4ee}.bg-warning .tabs-wrapper{background-color:#f49e00}.bg-danger .tabs-wrapper{background-color:#a51728}.bg-nightblue .tabs-wrapper{background-color:#004976}.bg-nightblue-bright .tabs-wrapper{background-color:#0076a8}.bg-petrol .tabs-wrapper{background-color:#006d68}.bg-petrol-bright .tabs-wrapper{background-color:#00968f}.bg-coral .tabs-wrapper{background-color:#9e2a2f}.bg-coral-bright .tabs-wrapper{background-color:#e03c31}.bg-olive .tabs-wrapper{background-color:#716135}.bg-olive-bright .tabs-wrapper{background-color:#aa9d2e}.bg-purple .tabs-wrapper{background-color:#80276c}.bg-purple-bright .tabs-wrapper{background-color:#c5299b}.bg-aubergine .tabs-wrapper{background-color:#523178}.bg-aubergine-bright .tabs-wrapper{background-color:#7566a0}:host{display:block}';const n=class{constructor(r){t(this,r);this.tabChange=a(this,"tabChange",7);this.isLoaded=false;this.activePanel=undefined}get tabs(){return this.host.querySelectorAll("post-tab-header")}componentDidLoad(){this.moveMisplacedTabs();this.enableTabs();const t=this.activePanel||this.tabs.item(0).panel;void this.show(t);this.isLoaded=true}async show(t){var a;if(t===((a=this.activeTab)===null||a===void 0?void 0:a.panel)){return}const r=this.activeTab;const o=this.host.querySelector(`post-tab-header[panel=${t}]`);this.activateTab(o);if(this.showing){this.showing.effect["target"].style.display="none";this.showing.finish()}if(r&&!this.showing&&!this.hiding){this.hidePanel(r.panel)}if(this.hiding){await this.hiding.finished}this.showSelectedPanel();if(this.showing){await this.showing.finished}this.tabChange.emit(this.activeTab.panel)}moveMisplacedTabs(){if(!this.tabs)return;this.tabs.forEach((t=>{if(t.getAttribute("slot")==="tabs")return;t.setAttribute("slot","tabs")}))}enableTabs(){if(!this.tabs)return;this.tabs.forEach((async t=>{await t.componentOnReady();const a=t.shadowRoot.querySelector(".tab-title");if(a.getAttribute("aria-controls"))return;const r=this.getPanel(t.panel).shadowRoot.querySelector(".tab-pane");a.setAttribute("aria-controls",r.id);r.setAttribute("aria-labelledby",a.id);t.addEventListener("click",(()=>{void this.show(t.panel)}));t.addEventListener("keydown",(({key:a})=>{if(a==="ArrowRight"||a==="ArrowLeft")this.navigateTabs(t,a)}))}));if(this.activeTab&&!this.activeTab.isConnected){void this.show(this.tabs.item(0).panel)}}activateTab(t){if(this.activeTab){const t=this.activeTab.shadowRoot.querySelector(".tab-title");t.setAttribute("aria-selected","false");t.setAttribute("tabindex","-1");t.classList.remove("active")}const a=t.shadowRoot.querySelector(".tab-title");a.setAttribute("aria-selected","true");a.removeAttribute("tabindex");a.classList.add("active");this.activeTab=t}hidePanel(t){const a=this.getPanel(t);if(!a)return;this.hiding=i(a);this.hiding.onfinish=()=>{a.style.display="none";this.hiding=null}}showSelectedPanel(){const t=this.getPanel(this.activeTab.panel);t.style.display="block";if(!this.isLoaded)return;this.showing=b(t);this.showing.onfinish=()=>{this.showing=null}}getPanel(t){return this.host.querySelector(`post-tab-panel[name=${t}]`)}navigateTabs(t,a){const r=Array.from(this.tabs).indexOf(t);let o;if(a==="ArrowRight"){o=this.tabs[r+1]||this.tabs[0]}else{o=this.tabs[r-1]||this.tabs[this.tabs.length-1]}if(!o)return;const s=o.shadowRoot.querySelector(".tab-title");s.focus()}render(){return r(o,{"data-version":e},r("div",{class:"tabs-wrapper"},r("div",{class:"tabs",role:"tablist"},r("slot",{name:"tabs",onSlotchange:()=>this.enableTabs()}))),r("div",{class:"tab-content"},r("slot",{onSlotchange:()=>this.moveMisplacedTabs()})))}get host(){return s(this)}};n.style=c;export{n as post_tabs};
2
- //# sourceMappingURL=p-123bb6fb.entry.js.map
1
+ import{r as t,c as a,h as r,H as o,g as s}from"./p-a7649277.js";import{v as i}from"./p-541142fd.js";import{f as e,a as b}from"./p-2737eaf5.js";const c='.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:#faf9f8}.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{margin:0;padding:0;list-style:none;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem;padding-bottom:1rem}.bg-yellow .tabs-wrapper{background-color:#fc0}.bg-light .tabs-wrapper{background-color:#faf9f8}.bg-gray .tabs-wrapper{background-color:#f4f3f1}.bg-dark .tabs-wrapper{background-color:#333}.bg-primary .tabs-wrapper{background-color:#333}.bg-white .tabs-wrapper{background-color:#fff}.bg-black .tabs-wrapper{background-color:#000}.bg-success .tabs-wrapper{background-color:#2c911c}.bg-info .tabs-wrapper{background-color:#cce4ee}.bg-warning .tabs-wrapper{background-color:#f49e00}.bg-danger .tabs-wrapper{background-color:#a51728}.bg-nightblue .tabs-wrapper{background-color:#004976}.bg-nightblue-bright .tabs-wrapper{background-color:#0076a8}.bg-petrol .tabs-wrapper{background-color:#006d68}.bg-petrol-bright .tabs-wrapper{background-color:#00968f}.bg-coral .tabs-wrapper{background-color:#9e2a2f}.bg-coral-bright .tabs-wrapper{background-color:#e03c31}.bg-olive .tabs-wrapper{background-color:#716135}.bg-olive-bright .tabs-wrapper{background-color:#aa9d2e}.bg-purple .tabs-wrapper{background-color:#80276c}.bg-purple-bright .tabs-wrapper{background-color:#c5299b}.bg-aubergine .tabs-wrapper{background-color:#523178}.bg-aubergine-bright .tabs-wrapper{background-color:#7566a0}:host{display:block}';const n=class{constructor(r){t(this,r);this.tabChange=a(this,"tabChange",7);this.isLoaded=false;this.activePanel=undefined}get tabs(){return this.host.querySelectorAll("post-tab-header")}componentDidLoad(){this.moveMisplacedTabs();this.enableTabs();const t=this.activePanel||this.tabs.item(0).panel;void this.show(t);this.isLoaded=true}async show(t){var a;if(t===((a=this.activeTab)===null||a===void 0?void 0:a.panel)){return}const r=this.activeTab;const o=this.host.querySelector(`post-tab-header[panel=${t}]`);this.activateTab(o);if(this.showing){this.showing.effect["target"].style.display="none";this.showing.finish()}if(r&&!this.showing&&!this.hiding){this.hidePanel(r.panel)}if(this.hiding){await this.hiding.finished}this.showSelectedPanel();if(this.showing){await this.showing.finished}this.tabChange.emit(this.activeTab.panel)}moveMisplacedTabs(){if(!this.tabs)return;this.tabs.forEach((t=>{if(t.getAttribute("slot")==="tabs")return;t.setAttribute("slot","tabs")}))}enableTabs(){if(!this.tabs)return;this.tabs.forEach((async t=>{await t.componentOnReady();const a=t.shadowRoot.querySelector(".tab-title");if(a.getAttribute("aria-controls"))return;const r=this.getPanel(t.panel).shadowRoot.querySelector(".tab-pane");a.setAttribute("aria-controls",r.id);r.setAttribute("aria-labelledby",a.id);t.addEventListener("click",(()=>{void this.show(t.panel)}));t.addEventListener("keydown",(({key:a})=>{if(a==="ArrowRight"||a==="ArrowLeft")this.navigateTabs(t,a)}))}));if(this.activeTab&&!this.activeTab.isConnected){void this.show(this.tabs.item(0).panel)}}activateTab(t){if(this.activeTab){const t=this.activeTab.shadowRoot.querySelector(".tab-title");t.setAttribute("aria-selected","false");t.setAttribute("tabindex","-1");t.classList.remove("active")}const a=t.shadowRoot.querySelector(".tab-title");a.setAttribute("aria-selected","true");a.removeAttribute("tabindex");a.classList.add("active");this.activeTab=t}hidePanel(t){const a=this.getPanel(t);if(!a)return;this.hiding=e(a);this.hiding.onfinish=()=>{a.style.display="none";this.hiding=null}}showSelectedPanel(){const t=this.getPanel(this.activeTab.panel);t.style.display="block";if(!this.isLoaded)return;this.showing=b(t);this.showing.onfinish=()=>{this.showing=null}}getPanel(t){return this.host.querySelector(`post-tab-panel[name=${t}]`)}navigateTabs(t,a){const r=Array.from(this.tabs).indexOf(t);let o;if(a==="ArrowRight"){o=this.tabs[r+1]||this.tabs[0]}else{o=this.tabs[r-1]||this.tabs[this.tabs.length-1]}if(!o)return;const s=o.shadowRoot.querySelector(".tab-title");s.focus()}render(){return r(o,{"data-version":i},r("div",{class:"tabs-wrapper"},r("div",{class:"tabs",role:"tablist"},r("slot",{name:"tabs",onSlotchange:()=>this.enableTabs()}))),r("div",{class:"tab-content"},r("slot",{onSlotchange:()=>this.moveMisplacedTabs()})))}get host(){return s(this)}};n.style=c;export{n as P};
2
+ //# sourceMappingURL=p-1a8a8ef2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["postTabsCss","PostTabs","this","isLoaded","tabs","host","querySelectorAll","componentDidLoad","moveMisplacedTabs","enableTabs","initiallyActivePanel","activePanel","item","panel","show","panelName","_a","activeTab","previousTab","newTab","querySelector","activateTab","showing","effect","style","display","finish","hiding","hidePanel","finished","showSelectedPanel","tabChange","emit","forEach","tab","getAttribute","setAttribute","async","componentOnReady","tabTitle","shadowRoot","tabPanel","getPanel","id","addEventListener","key","navigateTabs","isConnected","classList","remove","removeAttribute","add","previousPanel","fadeOut","onfinish","fadeIn","name","activeTabIndex","Array","from","indexOf","nextTab","length","nextTabTitle","focus","render","h","Host","version","class","role","onSlotchange"],"sources":["src/components/post-tabs/post-tabs.scss?tag=post-tabs&encapsulation=shadow","src/components/post-tabs/post-tabs.tsx"],"sourcesContent":["@use '@swisspost/design-system-styles/components/tabs/tabs-wrapper';\n\n:host {\n display: block;\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop } from '@stencil/core';\nimport { version } from '../../../package.json';\nimport { fadeIn, fadeOut } from '../../animations';\n\n@Component({\n tag: 'post-tabs',\n styleUrl: 'post-tabs.scss',\n shadow: true,\n})\nexport class PostTabs {\n private activeTab: HTMLPostTabHeaderElement;\n private showing: Animation;\n private hiding: Animation;\n private isLoaded = false;\n\n private get tabs(): NodeListOf<HTMLPostTabHeaderElement> {\n return this.host.querySelectorAll('post-tab-header');\n }\n\n @Element() host: HTMLPostTabsElement;\n\n /**\n * The name of the panel that is initially shown.\n * If not specified, it defaults to the panel associated with the first tab.\n *\n * **Changing this value after initialization has no effect.**\n */\n @Prop() readonly activePanel: HTMLPostTabPanelElement['name'];\n\n /**\n * An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.\n * The payload is the name of the newly shown panel.\n */\n @Event() tabChange: EventEmitter<HTMLPostTabPanelElement['name']>;\n\n componentDidLoad() {\n this.moveMisplacedTabs();\n this.enableTabs();\n\n const initiallyActivePanel = this.activePanel || this.tabs.item(0).panel;\n void this.show(initiallyActivePanel);\n\n this.isLoaded = true;\n }\n\n /**\n * Shows the panel with the given name and selects its associated tab.\n * Any other panel that was previously shown becomes hidden and its associated tab is unselected.\n */\n @Method()\n async show(panelName: string) {\n // do nothing if the tab is already active\n if (panelName === this.activeTab?.panel) {\n return;\n }\n\n const previousTab = this.activeTab;\n const newTab: HTMLPostTabHeaderElement = this.host.querySelector(\n `post-tab-header[panel=${panelName}]`,\n );\n this.activateTab(newTab);\n\n // if a panel is currently being displayed, remove it from the view and complete the associated animation\n if (this.showing) {\n this.showing.effect['target'].style.display = 'none';\n this.showing.finish();\n }\n\n // hide the currently visible panel only if no other animation is running\n if (previousTab && !this.showing && !this.hiding) {\n this.hidePanel(previousTab.panel);\n }\n\n // wait for any hiding animation to complete before showing the selected tab\n if (this.hiding) {\n await this.hiding.finished;\n }\n\n this.showSelectedPanel();\n\n // wait for any display animation to complete for the returned promise to fully resolve\n if (this.showing) {\n await this.showing.finished;\n }\n\n this.tabChange.emit(this.activeTab.panel);\n }\n\n private moveMisplacedTabs() {\n if (!this.tabs) return;\n\n this.tabs.forEach(tab => {\n if (tab.getAttribute('slot') === 'tabs') return;\n tab.setAttribute('slot', 'tabs');\n });\n }\n\n private enableTabs() {\n if (!this.tabs) return;\n\n this.tabs.forEach(async tab => {\n await tab.componentOnReady();\n\n const tabTitle = tab.shadowRoot.querySelector('.tab-title');\n\n // if the tab has an \"aria-controls\" attribute it was already linked to its panel: do nothing\n if (tabTitle.getAttribute('aria-controls')) return;\n\n const tabPanel = this.getPanel(tab.panel).shadowRoot.querySelector('.tab-pane');\n tabTitle.setAttribute('aria-controls', tabPanel.id);\n tabPanel.setAttribute('aria-labelledby', tabTitle.id);\n\n tab.addEventListener('click', () => {\n void this.show(tab.panel);\n });\n\n tab.addEventListener('keydown', ({ key }) => {\n if (key === 'ArrowRight' || key === 'ArrowLeft') this.navigateTabs(tab, key);\n });\n });\n\n // if the currently active tab was removed from the DOM then select the first one\n if (this.activeTab && !this.activeTab.isConnected) {\n void this.show(this.tabs.item(0).panel);\n }\n }\n\n private activateTab(tab: HTMLPostTabHeaderElement) {\n if (this.activeTab) {\n const tabTitle = this.activeTab.shadowRoot.querySelector('.tab-title');\n tabTitle.setAttribute('aria-selected', 'false');\n tabTitle.setAttribute('tabindex', '-1');\n tabTitle.classList.remove('active');\n }\n\n const tabTitle = tab.shadowRoot.querySelector('.tab-title');\n tabTitle.setAttribute('aria-selected', 'true');\n tabTitle.removeAttribute('tabindex');\n tabTitle.classList.add('active');\n\n this.activeTab = tab;\n }\n\n private hidePanel(panelName: HTMLPostTabPanelElement['name']) {\n const previousPanel = this.getPanel(panelName);\n\n if (!previousPanel) return;\n\n this.hiding = fadeOut(previousPanel);\n this.hiding.onfinish = () => {\n previousPanel.style.display = 'none';\n this.hiding = null;\n };\n }\n\n private showSelectedPanel() {\n const panel = this.getPanel(this.activeTab.panel);\n panel.style.display = 'block';\n\n // prevent the initially selected panel from fading in\n if (!this.isLoaded) return;\n\n this.showing = fadeIn(panel);\n this.showing.onfinish = () => {\n this.showing = null;\n };\n }\n\n private getPanel(name: string): HTMLPostTabPanelElement {\n return this.host.querySelector(`post-tab-panel[name=${name}]`);\n }\n\n private navigateTabs(tab: HTMLPostTabHeaderElement, key: 'ArrowRight' | 'ArrowLeft') {\n const activeTabIndex = Array.from(this.tabs).indexOf(tab);\n\n let nextTab: HTMLPostTabHeaderElement;\n if (key === 'ArrowRight') {\n nextTab = this.tabs[activeTabIndex + 1] || this.tabs[0];\n } else {\n nextTab = this.tabs[activeTabIndex - 1] || this.tabs[this.tabs.length - 1];\n }\n\n if (!nextTab) return;\n\n const nextTabTitle = nextTab.shadowRoot.querySelector('.tab-title') as HTMLAnchorElement;\n nextTabTitle.focus();\n }\n\n render() {\n return (\n <Host data-version={version}>\n <div class=\"tabs-wrapper\">\n <div class=\"tabs\" role=\"tablist\">\n <slot name=\"tabs\" onSlotchange={() => this.enableTabs()} />\n </div>\n </div>\n <div class=\"tab-content\">\n <slot onSlotchange={() => this.moveMisplacedTabs()} />\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"+IAAA,MAAMA,EAAc,szD,MCSPC,EAAQ,M,8DAIXC,KAAAC,SAAW,M,2BAEnB,QAAYC,GACV,OAAOF,KAAKG,KAAKC,iBAAiB,kB,CAmBpC,gBAAAC,GACEL,KAAKM,oBACLN,KAAKO,aAEL,MAAMC,EAAuBR,KAAKS,aAAeT,KAAKE,KAAKQ,KAAK,GAAGC,WAC9DX,KAAKY,KAAKJ,GAEfR,KAAKC,SAAW,I,CAQlB,UAAMW,CAAKC,G,MAET,GAAIA,MAAcC,EAAAd,KAAKe,aAAS,MAAAD,SAAA,SAAAA,EAAEH,OAAO,CACvC,M,CAGF,MAAMK,EAAchB,KAAKe,UACzB,MAAME,EAAmCjB,KAAKG,KAAKe,cACjD,yBAAyBL,MAE3Bb,KAAKmB,YAAYF,GAGjB,GAAIjB,KAAKoB,QAAS,CAChBpB,KAAKoB,QAAQC,OAAO,UAAUC,MAAMC,QAAU,OAC9CvB,KAAKoB,QAAQI,Q,CAIf,GAAIR,IAAgBhB,KAAKoB,UAAYpB,KAAKyB,OAAQ,CAChDzB,KAAK0B,UAAUV,EAAYL,M,CAI7B,GAAIX,KAAKyB,OAAQ,OACTzB,KAAKyB,OAAOE,Q,CAGpB3B,KAAK4B,oBAGL,GAAI5B,KAAKoB,QAAS,OACVpB,KAAKoB,QAAQO,Q,CAGrB3B,KAAK6B,UAAUC,KAAK9B,KAAKe,UAAUJ,M,CAG7B,iBAAAL,GACN,IAAKN,KAAKE,KAAM,OAEhBF,KAAKE,KAAK6B,SAAQC,IAChB,GAAIA,EAAIC,aAAa,UAAY,OAAQ,OACzCD,EAAIE,aAAa,OAAQ,OAAO,G,CAI5B,UAAA3B,GACN,IAAKP,KAAKE,KAAM,OAEhBF,KAAKE,KAAK6B,SAAQI,MAAMH,UAChBA,EAAII,mBAEV,MAAMC,EAAWL,EAAIM,WAAWpB,cAAc,cAG9C,GAAImB,EAASJ,aAAa,iBAAkB,OAE5C,MAAMM,EAAWvC,KAAKwC,SAASR,EAAIrB,OAAO2B,WAAWpB,cAAc,aACnEmB,EAASH,aAAa,gBAAiBK,EAASE,IAChDF,EAASL,aAAa,kBAAmBG,EAASI,IAElDT,EAAIU,iBAAiB,SAAS,UACvB1C,KAAKY,KAAKoB,EAAIrB,MAAM,IAG3BqB,EAAIU,iBAAiB,WAAW,EAAGC,UACjC,GAAIA,IAAQ,cAAgBA,IAAQ,YAAa3C,KAAK4C,aAAaZ,EAAKW,EAAI,GAC5E,IAIJ,GAAI3C,KAAKe,YAAcf,KAAKe,UAAU8B,YAAa,MAC5C7C,KAAKY,KAAKZ,KAAKE,KAAKQ,KAAK,GAAGC,M,EAI7B,WAAAQ,CAAYa,GAClB,GAAIhC,KAAKe,UAAW,CAClB,MAAMsB,EAAWrC,KAAKe,UAAUuB,WAAWpB,cAAc,cACzDmB,EAASH,aAAa,gBAAiB,SACvCG,EAASH,aAAa,WAAY,MAClCG,EAASS,UAAUC,OAAO,S,CAG5B,MAAMV,EAAWL,EAAIM,WAAWpB,cAAc,cAC9CmB,EAASH,aAAa,gBAAiB,QACvCG,EAASW,gBAAgB,YACzBX,EAASS,UAAUG,IAAI,UAEvBjD,KAAKe,UAAYiB,C,CAGX,SAAAN,CAAUb,GAChB,MAAMqC,EAAgBlD,KAAKwC,SAAS3B,GAEpC,IAAKqC,EAAe,OAEpBlD,KAAKyB,OAAS0B,EAAQD,GACtBlD,KAAKyB,OAAO2B,SAAW,KACrBF,EAAc5B,MAAMC,QAAU,OAC9BvB,KAAKyB,OAAS,IAAI,C,CAId,iBAAAG,GACN,MAAMjB,EAAQX,KAAKwC,SAASxC,KAAKe,UAAUJ,OAC3CA,EAAMW,MAAMC,QAAU,QAGtB,IAAKvB,KAAKC,SAAU,OAEpBD,KAAKoB,QAAUiC,EAAO1C,GACtBX,KAAKoB,QAAQgC,SAAW,KACtBpD,KAAKoB,QAAU,IAAI,C,CAIf,QAAAoB,CAASc,GACf,OAAOtD,KAAKG,KAAKe,cAAc,uBAAuBoC,K,CAGhD,YAAAV,CAAaZ,EAA+BW,GAClD,MAAMY,EAAiBC,MAAMC,KAAKzD,KAAKE,MAAMwD,QAAQ1B,GAErD,IAAI2B,EACJ,GAAIhB,IAAQ,aAAc,CACxBgB,EAAU3D,KAAKE,KAAKqD,EAAiB,IAAMvD,KAAKE,KAAK,E,KAChD,CACLyD,EAAU3D,KAAKE,KAAKqD,EAAiB,IAAMvD,KAAKE,KAAKF,KAAKE,KAAK0D,OAAS,E,CAG1E,IAAKD,EAAS,OAEd,MAAME,EAAeF,EAAQrB,WAAWpB,cAAc,cACtD2C,EAAaC,O,CAGf,MAAAC,GACE,OACEC,EAACC,EAAI,gBAAeC,GAClBF,EAAA,OAAKG,MAAM,gBACTH,EAAA,OAAKG,MAAM,OAAOC,KAAK,WACrBJ,EAAA,QAAMV,KAAK,OAAOe,aAAc,IAAMrE,KAAKO,iBAG/CyD,EAAA,OAAKG,MAAM,eACTH,EAAA,QAAMK,aAAc,IAAMrE,KAAKM,uB"}
@@ -0,0 +1,2 @@
1
+ export{P as post_tab_panel}from"./p-d4fb9f16.js";import"./p-a7649277.js";import"./p-541142fd.js";
2
+ //# sourceMappingURL=p-27092ac3.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":[],"mappings":""}
@@ -1,2 +1,2 @@
1
1
  const o=200;const t={opacity:"0"};const a={opacity:"1"};const c=c=>c.animate([t,a],{duration:o});const n=c=>c.animate([a,t],{duration:o});export{c as a,n as f};
2
- //# sourceMappingURL=p-e5306504.js.map
2
+ //# sourceMappingURL=p-2737eaf5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["fadeDuration","fadedOutKeyframe","opacity","fadedInKeyframe","fadeIn","el","animate","duration","fadeOut"],"sources":["src/animations/fade.ts"],"sourcesContent":["const fadeDuration = 200;\nconst fadedOutKeyframe: Keyframe = {opacity: '0'};\nconst fadedInKeyframe: Keyframe = {opacity: '1'};\n\nexport const fadeIn = (el: Element): Animation => el.animate(\n [ fadedOutKeyframe, fadedInKeyframe ],\n { duration: fadeDuration }\n);\n\nexport const fadeOut = (el: Element): Animation => el.animate(\n [ fadedInKeyframe, fadedOutKeyframe ],\n { duration: fadeDuration }\n);\n"],"mappings":"AAAA,MAAMA,EAAe,IACrB,MAAMC,EAA6B,CAACC,QAAS,KAC7C,MAAMC,EAA4B,CAACD,QAAS,K,MAE/BE,EAAUC,GAA2BA,EAAGC,QACnD,CAAEL,EAAkBE,GACpB,CAAEI,SAAUP,I,MAGDQ,EAAWH,GAA2BA,EAAGC,QACpD,CAAEH,EAAiBF,GACnB,CAAEM,SAAUP,W"}
@@ -0,0 +1,2 @@
1
+ import{r as o,c as i,h as t,H as e,g as n}from"./p-a7649277.js";import{v as a}from"./p-541142fd.js";import{d as r,b as d}from"./p-dfe29f7f.js";function s(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}const c=350;const h="ease";const l={height:"0",overflow:"hidden"};const b=o=>{const{height:i}=window.getComputedStyle(o);const t={height:i};return o.animate([t,l],{duration:c,easing:h,fill:"forwards"})};const m=o=>{const i={height:`${o.scrollHeight}px`};return o.animate([l,i],{duration:c,easing:h,fill:"forwards"})};const p=[1,2,3,4,5,6];const g=".accordion-item{border-block-start:2px solid #e6e6e6}.accordion-header{font-size:1.0625rem;font-weight:700;line-height:1.5;margin:0}@media (min-width: 1024px){.accordion-header{font-size:1.25rem}}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;-webkit-appearance:button;appearance:button;width:100%;position:relative;padding-block:1rem;padding-inline-start:1rem;padding-inline-end:2.5rem;text-align:start}.accordion-button:not(:disabled){cursor:pointer}.accordion-button:disabled{opacity:.4}.accordion-button:focus{outline:none;box-shadow:0 0 0 .125rem rgba(51,51,51,.25)}.accordion-button::after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6 7.6 7.6z'/%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6 7.6 7.6z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;content:\"\";display:block;height:1.5rem;width:1.5rem;position:absolute;inset-inline-end:1rem;inset-block-start:50%;transform:translateY(-50%);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);border:1px solid rgb(var(--post-bg-rgb, 255, 255, 255))}.accordion-button.collapsed::after{transform:translateY(-50%) rotate(-180deg)}.accordion-button>.text-truncate{display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover:not(:disabled),.accordion-button:focus-visible:not(:disabled){outline:2px solid Highlight}.accordion-button:disabled{opacity:1 !important}}.accordion-body{padding:.75rem 1rem 2.5rem;border-block-start:2px solid #e6e6e6}.accordion-body h1,.accordion-body .h1{font-size:1.0625rem;margin:2.5rem 0 0;font-weight:700}@media (min-width: 1024px){.accordion-body h1,.accordion-body .h1{font-size:1.25rem}}.accordion-body h2,.accordion-body .h2{font-size:1.0625rem;margin:2.5rem 0 0;font-weight:700}@media (min-width: 1024px){.accordion-body h2,.accordion-body .h2{font-size:1.25rem}}.accordion-body h3,.accordion-body .h3{font-size:1.0625rem;margin:2.5rem 0 0;font-weight:700}@media (min-width: 1024px){.accordion-body h3,.accordion-body .h3{font-size:1.25rem}}.accordion-body h4,.accordion-body .h4{font-size:1.0625rem;margin:2.5rem 0 0;font-weight:700}@media (min-width: 1024px){.accordion-body h4,.accordion-body .h4{font-size:1.25rem}}.accordion-body h5,.accordion-body .h5{font-size:1.0625rem;margin:2.5rem 0 0;font-weight:700}@media (min-width: 1024px){.accordion-body h5,.accordion-body .h5{font-size:1.25rem}}.accordion-body h6,.accordion-body .h6{font-size:1.0625rem;margin:2.5rem 0 0;font-weight:700}@media (min-width: 1024px){.accordion-body h6,.accordion-body .h6{font-size:1.25rem}}.accordion-button>:first-child,.accordion-body>:first-child{margin-block-start:0 !important}.accordion-button>:last-child,.accordion-body>:last-child{margin-block-end:0 !important}:host{display:block}:host .accordion-button>::slotted(.text-truncate){display:block}";const f=class{constructor(t){o(this,t);this.collapseChange=i(this,"collapseChange",7);this.isLoaded=false;this.id=undefined;this.isOpen=true;this.hasHeader=undefined;this.headingTag=undefined;this.collapsed=false;this.headingLevel=2}validateCollapsed(o=this.collapsed){r(o,"boolean","The `collapsed` property of the `post-collapsible` must be a boolean.")}validateHeadingLevel(o=this.headingLevel){d(o,p,"The `headingLevel` property of the `post-collapsible` must be a number between 1 and 6.")}connectedCallback(){this.validateCollapsed();this.validateHeadingLevel()}componentWillRender(){var o;this.id=this.host.id||`c${crypto.randomUUID()}`;this.hasHeader=this.host.querySelectorAll('[slot="header"]').length>0;this.headingTag=`h${(o=this.headingLevel)!==null&&o!==void 0?o:2}`}componentDidLoad(){if(this.collapsed)void this.toggle(false);this.isLoaded=true}async toggle(o=!this.isOpen){if(o===this.isOpen)return o;this.isOpen=!this.isOpen;if(this.isLoaded)this.collapseChange.emit();const i=o?m(this.collapsible):b(this.collapsible);if(!this.isLoaded||s())i.finish();await i.finished;i.commitStyles();return this.isOpen}render(){const o=t("div",{"aria-labelledby":this.hasHeader?`${this.id}--header`:undefined,class:`collapse${this.hasHeader?" accordion-collapse":""}`,id:`${this.id}--collapse`,ref:o=>this.collapsible=o},this.hasHeader?t("div",{class:"accordion-body"},t("slot",null)):t("slot",null));return t(e,{id:this.id,"data-version":a},this.hasHeader?t("div",{class:"accordion-item"},t(this.headingTag,{class:"accordion-header",id:`${this.id}--header`},t("button",{"aria-controls":`${this.id}--collapse`,"aria-expanded":`${this.isOpen}`,class:`accordion-button${this.isOpen?"":" collapsed"}`,onClick:()=>this.toggle(),type:"button"},t("slot",{name:"header"}))),o):o)}get host(){return n(this)}static get watchers(){return{collapsed:["validateCollapsed"],headingLevel:["validateHeadingLevel"]}}};f.style=g;export{f as P};
2
+ //# sourceMappingURL=p-332eef46.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isMotionReduced","window","matchMedia","matches","collapseDuration","collapseEasing","collapsedKeyframe","height","overflow","collapse","el","getComputedStyle","expandedKeyframe","animate","duration","easing","fill","expand","scrollHeight","HEADING_LEVELS","postCollapsibleCss","PostCollapsible","this","isLoaded","validateCollapsed","newValue","collapsed","checkEmptyOrType","validateHeadingLevel","headingLevel","checkEmptyOrOneOf","connectedCallback","componentWillRender","id","host","crypto","randomUUID","hasHeader","querySelectorAll","length","headingTag","_a","componentDidLoad","toggle","open","isOpen","collapseChange","emit","animation","collapsible","finish","finished","commitStyles","render","h","undefined","class","ref","Host","version","onClick","type","name"],"sources":["src/utils/is-motion-reduced.ts","src/animations/collapse.ts","src/components/post-collapsible/heading-levels.ts","src/components/post-collapsible/post-collapsible.scss?tag=post-collapsible&encapsulation=shadow","src/components/post-collapsible/post-collapsible.tsx"],"sourcesContent":["export function isMotionReduced(): boolean {\n return window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n}\n","const collapseDuration = 350;\nconst collapseEasing = 'ease';\nconst collapsedKeyframe: Keyframe = { height: '0', overflow: 'hidden' };\n\nexport const collapse = (el: HTMLElement): Animation => {\n const { height } = window.getComputedStyle(el);\n const expandedKeyframe: Keyframe = { height };\n\n return el.animate(\n [expandedKeyframe, collapsedKeyframe],\n { duration: collapseDuration, easing: collapseEasing, fill: 'forwards' },\n );\n};\n\nexport const expand = (el: HTMLElement): Animation => {\n const expandedKeyframe: Keyframe = { height: `${el.scrollHeight}px` };\n\n return el.animate(\n [collapsedKeyframe, expandedKeyframe],\n { duration: collapseDuration, easing: collapseEasing, fill: 'forwards' },\n );\n};\n","export const HEADING_LEVELS = [1, 2, 3, 4, 5, 6] as const;\n\nexport type HeadingLevel = typeof HEADING_LEVELS[number];\n","@use '@swisspost/design-system-styles/components/accordion';\n\n:host {\n display: block;\n\n .accordion-button > ::slotted(.text-truncate) {\n display: block;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { version } from '../../../package.json';\nimport { collapse, expand } from '../../animations/collapse';\nimport { checkEmptyOrOneOf, checkEmptyOrType, isMotionReduced } from '../../utils';\nimport { HEADING_LEVELS, HeadingLevel } from './heading-levels';\n\n@Component({\n tag: 'post-collapsible',\n styleUrl: 'post-collapsible.scss',\n shadow: true,\n})\nexport class PostCollapsible {\n private isLoaded = false;\n private collapsible: HTMLElement;\n\n @Element() host: HTMLPostCollapsibleElement;\n\n @State() id: string;\n @State() isOpen = true;\n @State() hasHeader: boolean;\n @State() headingTag: string;\n\n /**\n * If `true`, the element is initially collapsed otherwise it is displayed.\n */\n @Prop() readonly collapsed?: boolean = false;\n\n @Watch('collapsed')\n validateCollapsed(newValue = this.collapsed) {\n checkEmptyOrType(newValue, 'boolean', 'The `collapsed` property of the `post-collapsible` must be a boolean.');\n }\n\n /**\n * Defines the hierarchical level of the collapsible header within the headings structure.\n */\n @Prop() readonly headingLevel?: HeadingLevel = 2;\n\n @Watch('headingLevel')\n validateHeadingLevel(newValue = this.headingLevel) {\n checkEmptyOrOneOf(newValue, HEADING_LEVELS, 'The `headingLevel` property of the `post-collapsible` must be a number between 1 and 6.');\n }\n\n /**\n * An event emitted when the collapse element is shown or hidden, before the transition. It has no payload.\n */\n @Event() collapseChange: EventEmitter<void>;\n\n connectedCallback() {\n this.validateCollapsed();\n this.validateHeadingLevel();\n }\n\n componentWillRender() {\n this.id = this.host.id || `c${crypto.randomUUID()}`;\n this.hasHeader = this.host.querySelectorAll('[slot=\"header\"]').length > 0;\n this.headingTag = `h${this.headingLevel ?? 2}`;\n }\n\n componentDidLoad() {\n if (this.collapsed) void this.toggle(false);\n this.isLoaded = true;\n }\n\n /**\n * Triggers the collapse programmatically.\n *\n * If there is a collapsing transition running already, it will be reversed.\n */\n @Method()\n async toggle(open = !this.isOpen): Promise<boolean> {\n if (open === this.isOpen) return open;\n\n this.isOpen = !this.isOpen;\n if (this.isLoaded) this.collapseChange.emit();\n\n const animation = open ? expand(this.collapsible): collapse(this.collapsible);\n\n if (!this.isLoaded || isMotionReduced()) animation.finish();\n\n await animation.finished;\n\n animation.commitStyles();\n\n return this.isOpen;\n }\n\n render() {\n const collapse = (\n <div\n aria-labelledby={this.hasHeader ? `${this.id}--header` : undefined}\n class={`collapse${this.hasHeader ? ' accordion-collapse' : ''}`}\n id={`${this.id}--collapse`}\n ref={el => this.collapsible = el}\n >\n {this.hasHeader ? (\n <div class=\"accordion-body\">\n <slot/>\n </div>\n ) : (\n <slot/>\n )}\n </div>\n );\n\n return (\n <Host id={this.id} data-version={version}>\n {this.hasHeader ? (\n <div class=\"accordion-item\">\n <this.headingTag class=\"accordion-header\" id={`${this.id}--header`}>\n <button\n aria-controls={`${this.id}--collapse`}\n aria-expanded={`${this.isOpen}`}\n class={`accordion-button${this.isOpen ? '' : ' collapsed'}`}\n onClick={() => this.toggle()}\n type=\"button\"\n >\n <slot name=\"header\"/>\n </button>\n </this.headingTag>\n\n {collapse}\n </div>\n ) : collapse}\n </Host>\n );\n }\n}\n"],"mappings":"wJAAgBA,IACd,OAAOC,OAAOC,WAAW,oCAAoCC,OAC/D,CCFA,MAAMC,EAAmB,IACzB,MAAMC,EAAiB,OACvB,MAAMC,EAA8B,CAAEC,OAAQ,IAAKC,SAAU,UAEtD,MAAMC,EAAYC,IACvB,MAAMH,OAAEA,GAAWN,OAAOU,iBAAiBD,GAC3C,MAAME,EAA6B,CAAEL,UAErC,OAAOG,EAAGG,QACR,CAACD,EAAkBN,GACnB,CAAEQ,SAAUV,EAAkBW,OAAQV,EAAgBW,KAAM,YAC7D,EAGI,MAAMC,EAAUP,IACrB,MAAME,EAA6B,CAAEL,OAAQ,GAAGG,EAAGQ,kBAEnD,OAAOR,EAAGG,QACR,CAACP,EAAmBM,GACpB,CAAEE,SAAUV,EAAkBW,OAAQV,EAAgBW,KAAM,YAC7D,ECpBI,MAAMG,EAAiB,CAAC,EAAG,EAAG,EAAG,EAAG,EAAG,GCA9C,MAAMC,EAAqB,uqG,MCWdC,EAAe,M,wEAClBC,KAAAC,SAAW,M,8BAMD,K,kEAOqB,M,kBAUQ,C,CAP/C,iBAAAC,CAAkBC,EAAWH,KAAKI,WAChCC,EAAiBF,EAAU,UAAW,wE,CASxC,oBAAAG,CAAqBH,EAAWH,KAAKO,cACnCC,EAAkBL,EAAUN,EAAgB,0F,CAQ9C,iBAAAY,GACET,KAAKE,oBACLF,KAAKM,sB,CAGP,mBAAAI,G,MACEV,KAAKW,GAAKX,KAAKY,KAAKD,IAAM,IAAIE,OAAOC,eACrCd,KAAKe,UAAYf,KAAKY,KAAKI,iBAAiB,mBAAmBC,OAAS,EACxEjB,KAAKkB,WAAa,KAAIC,EAAAnB,KAAKO,gBAAY,MAAAY,SAAA,EAAAA,EAAI,G,CAG7C,gBAAAC,GACE,GAAIpB,KAAKI,eAAgBJ,KAAKqB,OAAO,OACrCrB,KAAKC,SAAW,I,CASlB,YAAMoB,CAAOC,GAAQtB,KAAKuB,QACxB,GAAID,IAAStB,KAAKuB,OAAQ,OAAOD,EAEjCtB,KAAKuB,QAAUvB,KAAKuB,OACpB,GAAIvB,KAAKC,SAAUD,KAAKwB,eAAeC,OAEvC,MAAMC,EAAYJ,EAAO3B,EAAOK,KAAK2B,aAAcxC,EAASa,KAAK2B,aAEjE,IAAK3B,KAAKC,UAAYvB,IAAmBgD,EAAUE,eAE7CF,EAAUG,SAEhBH,EAAUI,eAEV,OAAO9B,KAAKuB,M,CAGd,MAAAQ,GACE,MAAM5C,EACJ6C,EAAA,yBACmBhC,KAAKe,UAAY,GAAGf,KAAKW,aAAesB,UACzDC,MAAO,WAAWlC,KAAKe,UAAY,sBAAwB,KAC3DJ,GAAI,GAAGX,KAAKW,eACZwB,IAAK/C,GAAMY,KAAK2B,YAAcvC,GAE7BY,KAAKe,UACJiB,EAAA,OAAKE,MAAM,kBACTF,EAAA,cAGFA,EAAA,cAKN,OACEA,EAACI,EAAI,CAACzB,GAAIX,KAAKW,GAAE,eAAgB0B,GAC9BrC,KAAKe,UACJiB,EAAA,OAAKE,MAAM,kBACTF,EAAChC,KAAKkB,WAAU,CAACgB,MAAM,mBAAmBvB,GAAI,GAAGX,KAAKW,cACpDqB,EAAA,0BACiB,GAAGhC,KAAKW,eAAc,gBACtB,GAAGX,KAAKuB,SACvBW,MAAO,mBAAmBlC,KAAKuB,OAAS,GAAK,eAC7Ce,QAAS,IAAMtC,KAAKqB,SACpBkB,KAAK,UAELP,EAAA,QAAMQ,KAAK,aAIdrD,GAEDA,E"}
@@ -0,0 +1,2 @@
1
+ const n=[undefined,null,""];export{n as E};
2
+ //# sourceMappingURL=p-440193f4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["EMPTY_VALUES","undefined"],"sources":["src/utils/property-checkers/constants.ts"],"sourcesContent":["export const EMPTY_VALUES = [undefined, null, ''];\n"],"mappings":"MAAaA,EAAe,CAACC,UAAW,KAAM,W"}
@@ -0,0 +1,2 @@
1
+ const o="1.6.0";export{o as v};
2
+ //# sourceMappingURL=p-541142fd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{r as o,h as t,H as r,g as a}from"./p-d94db268.js";import{v as b}from"./p-eb3ff4dc.js";import{c as e}from"./p-c8efe0ae.js";const c='.tab-title[role=tab]{display:inline-block;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:#fff;color:var(--post-contrast-color)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:#fff;color:var(--post-contrast-color);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:#fff;color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:is(.bg-dark,.bg-primary,.bg-black,.bg-danger,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:is(.bg-dark,.bg-primary,.bg-black,.bg-danger,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-success .tab-title{background-color:#2c911c}.bg-success .tab-title.active{background-color:#2c911c}.bg-success .nav-item{background-color:#2c911c}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-danger .tab-title{background-color:#a51728}.bg-danger .tab-title.active{background-color:#a51728}.bg-danger .nav-item{background-color:#a51728}.bg-nightblue .tab-title{background-color:#004976}.bg-nightblue .tab-title.active{background-color:#004976}.bg-nightblue .nav-item{background-color:#004976}.bg-nightblue-bright .tab-title{background-color:#0076a8}.bg-nightblue-bright .tab-title.active{background-color:#0076a8}.bg-nightblue-bright .nav-item{background-color:#0076a8}.bg-petrol .tab-title{background-color:#006d68}.bg-petrol .tab-title.active{background-color:#006d68}.bg-petrol .nav-item{background-color:#006d68}.bg-petrol-bright .tab-title{background-color:#00968f}.bg-petrol-bright .tab-title.active{background-color:#00968f}.bg-petrol-bright .nav-item{background-color:#00968f}.bg-coral .tab-title{background-color:#9e2a2f}.bg-coral .tab-title.active{background-color:#9e2a2f}.bg-coral .nav-item{background-color:#9e2a2f}.bg-coral-bright .tab-title{background-color:#e03c31}.bg-coral-bright .tab-title.active{background-color:#e03c31}.bg-coral-bright .nav-item{background-color:#e03c31}.bg-olive .tab-title{background-color:#716135}.bg-olive .tab-title.active{background-color:#716135}.bg-olive .nav-item{background-color:#716135}.bg-olive-bright .tab-title{background-color:#aa9d2e}.bg-olive-bright .tab-title.active{background-color:#aa9d2e}.bg-olive-bright .nav-item{background-color:#aa9d2e}.bg-purple .tab-title{background-color:#80276c}.bg-purple .tab-title.active{background-color:#80276c}.bg-purple .nav-item{background-color:#80276c}.bg-purple-bright .tab-title{background-color:#c5299b}.bg-purple-bright .tab-title.active{background-color:#c5299b}.bg-purple-bright .nav-item{background-color:#c5299b}.bg-aubergine .tab-title{background-color:#523178}.bg-aubergine .tab-title.active{background-color:#523178}.bg-aubergine .nav-item{background-color:#523178}.bg-aubergine-bright .tab-title{background-color:#7566a0}.bg-aubergine-bright .tab-title.active{background-color:#7566a0}.bg-aubergine-bright .nav-item{background-color:#7566a0}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;user-select:none;appearance:button}';const l=class{constructor(t){o(this,t);this.tabId=undefined;this.panel=undefined}validateFor(o){e(o,'The "panel" prop is required for the post-tab-header.')}componentWillLoad(){this.tabId=`tab-${this.host.id||crypto.randomUUID()}`}render(){return t(r,{"data-version":b},t("button",{"aria-selected":"false",class:"tab-title",id:this.tabId,role:"tab",tabindex:"-1",type:"button"},t("slot",null)))}get host(){return a(this)}static get watchers(){return{panel:["validateFor"]}}};l.style=c;export{l as post_tab_header};
2
- //# sourceMappingURL=p-0d37fe44.entry.js.map
1
+ import{r as o,h as t,H as r,g as a}from"./p-a7649277.js";import{v as b}from"./p-541142fd.js";import{c as e}from"./p-b531475e.js";const c='.tab-title[role=tab]{display:inline-block;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:#fff;color:var(--post-contrast-color)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:#fff;color:var(--post-contrast-color);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:#fff;color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:is(.bg-dark,.bg-primary,.bg-black,.bg-danger,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:is(.bg-dark,.bg-primary,.bg-black,.bg-danger,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-success .tab-title{background-color:#2c911c}.bg-success .tab-title.active{background-color:#2c911c}.bg-success .nav-item{background-color:#2c911c}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-danger .tab-title{background-color:#a51728}.bg-danger .tab-title.active{background-color:#a51728}.bg-danger .nav-item{background-color:#a51728}.bg-nightblue .tab-title{background-color:#004976}.bg-nightblue .tab-title.active{background-color:#004976}.bg-nightblue .nav-item{background-color:#004976}.bg-nightblue-bright .tab-title{background-color:#0076a8}.bg-nightblue-bright .tab-title.active{background-color:#0076a8}.bg-nightblue-bright .nav-item{background-color:#0076a8}.bg-petrol .tab-title{background-color:#006d68}.bg-petrol .tab-title.active{background-color:#006d68}.bg-petrol .nav-item{background-color:#006d68}.bg-petrol-bright .tab-title{background-color:#00968f}.bg-petrol-bright .tab-title.active{background-color:#00968f}.bg-petrol-bright .nav-item{background-color:#00968f}.bg-coral .tab-title{background-color:#9e2a2f}.bg-coral .tab-title.active{background-color:#9e2a2f}.bg-coral .nav-item{background-color:#9e2a2f}.bg-coral-bright .tab-title{background-color:#e03c31}.bg-coral-bright .tab-title.active{background-color:#e03c31}.bg-coral-bright .nav-item{background-color:#e03c31}.bg-olive .tab-title{background-color:#716135}.bg-olive .tab-title.active{background-color:#716135}.bg-olive .nav-item{background-color:#716135}.bg-olive-bright .tab-title{background-color:#aa9d2e}.bg-olive-bright .tab-title.active{background-color:#aa9d2e}.bg-olive-bright .nav-item{background-color:#aa9d2e}.bg-purple .tab-title{background-color:#80276c}.bg-purple .tab-title.active{background-color:#80276c}.bg-purple .nav-item{background-color:#80276c}.bg-purple-bright .tab-title{background-color:#c5299b}.bg-purple-bright .tab-title.active{background-color:#c5299b}.bg-purple-bright .nav-item{background-color:#c5299b}.bg-aubergine .tab-title{background-color:#523178}.bg-aubergine .tab-title.active{background-color:#523178}.bg-aubergine .nav-item{background-color:#523178}.bg-aubergine-bright .tab-title{background-color:#7566a0}.bg-aubergine-bright .tab-title.active{background-color:#7566a0}.bg-aubergine-bright .nav-item{background-color:#7566a0}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;-webkit-appearance:button;appearance:button}';const l=class{constructor(t){o(this,t);this.tabId=undefined;this.panel=undefined}validateFor(o){e(o,'The "panel" prop is required for the post-tab-header.')}componentWillLoad(){this.tabId=`tab-${this.host.id||crypto.randomUUID()}`}render(){return t(r,{"data-version":b},t("button",{"aria-selected":"false",class:"tab-title",id:this.tabId,role:"tab",tabindex:"-1",type:"button"},t("slot",null)))}get host(){return a(this)}static get watchers(){return{panel:["validateFor"]}}};l.style=c;export{l as P};
2
+ //# sourceMappingURL=p-574acdb0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["postTabHeaderCss","PostTabHeader","validateFor","newValue","checkNonEmpty","componentWillLoad","this","tabId","host","id","crypto","randomUUID","render","h","Host","version","class","role","tabindex","type"],"sources":["src/components/post-tab-header/post-tab-header.scss?tag=post-tab-header&encapsulation=shadow","src/components/post-tab-header/post-tab-header.tsx"],"sourcesContent":["@use '@swisspost/design-system-styles/components/tabs/tab-title';\n@use '@swisspost/design-system-styles/core' as post;\n\n:host {\n display: block;\n}\n\n.tab-title {\n @include post.reset-button;\n}\n","import { Component, Element, h, Host, Prop, State, Watch } from '@stencil/core';\nimport { version } from '../../../package.json';\nimport { checkNonEmpty } from '../../utils';\n\n@Component({\n tag: 'post-tab-header',\n styleUrl: 'post-tab-header.scss',\n shadow: true,\n})\nexport class PostTabHeader {\n @Element() host: HTMLPostTabHeaderElement;\n\n @State() tabId: string;\n\n /**\n * The name of the panel controlled by the tab header.\n */\n @Prop() readonly panel: HTMLPostTabPanelElement['name'];\n\n @Watch('panel')\n validateFor(newValue: HTMLPostTabPanelElement['name']) {\n checkNonEmpty(newValue, 'The \"panel\" prop is required for the post-tab-header.');\n }\n\n componentWillLoad() {\n this.tabId = `tab-${this.host.id || crypto.randomUUID()}`;\n }\n\n render() {\n return (\n <Host data-version={version}>\n <button aria-selected=\"false\" class=\"tab-title\" id={this.tabId} role=\"tab\" tabindex=\"-1\" type=\"button\">\n <slot />\n </button>\n </Host>\n );\n }\n}\n"],"mappings":"iIAAA,MAAMA,EAAmB,+9L,MCSZC,EAAa,M,mEAWxB,WAAAC,CAAYC,GACVC,EAAcD,EAAU,wD,CAG1B,iBAAAE,GACEC,KAAKC,MAAQ,OAAOD,KAAKE,KAAKC,IAAMC,OAAOC,c,CAG7C,MAAAC,GACE,OACEC,EAACC,EAAI,gBAAeC,GAClBF,EAAA,0BAAsB,QAAQG,MAAM,YAAYP,GAAIH,KAAKC,MAAOU,KAAK,MAAMC,SAAS,KAAKC,KAAK,UAC5FN,EAAA,c"}
@@ -0,0 +1,2 @@
1
+ export{P as post_collapsible}from"./p-332eef46.js";import"./p-a7649277.js";import"./p-541142fd.js";import"./p-dfe29f7f.js";import"./p-440193f4.js";import"./p-1339f8cd.js";
2
+ //# sourceMappingURL=p-66460e3f.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export{P as post_tooltip}from"./p-01e8dfe6.js";import"./p-a7649277.js";import"./p-541142fd.js";import"./p-1339f8cd.js";
2
+ //# sourceMappingURL=p-810ee105.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export{P as post_icon}from"./p-97000cb6.js";import"./p-a7649277.js";import"./p-dfe29f7f.js";import"./p-440193f4.js";import"./p-1339f8cd.js";import"./p-541142fd.js";import"./p-b531475e.js";
2
+ //# sourceMappingURL=p-939df031.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export{P as post_tab_header}from"./p-574acdb0.js";import"./p-a7649277.js";import"./p-541142fd.js";import"./p-b531475e.js";import"./p-440193f4.js";
2
+ //# sourceMappingURL=p-94b3f291.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{r as i,h as t,H as a,g as n}from"./p-a7649277.js";import{b as e,d as o,c as s}from"./p-dfe29f7f.js";import{v as l}from"./p-541142fd.js";import{c as r}from"./p-b531475e.js";const m=":host{display:inline-block;width:1em;vertical-align:-0.15em}svg{display:block;width:100%;height:100%;fill:currentColor;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";const c="https://unpkg.com/@swisspost/design-system-icons/public/post-icons";const h=["cylon","cylon-vertical","spin","spin-reverse","fade","throb"];const p=[...h];const f=class{constructor(t){i(this,t);this.svgStyles=undefined;this.svgOutput=undefined;this.animation=null;this.base=null;this.flipH=false;this.flipV=false;this.name=undefined;this.rotate=null;this.scale=null}validateAnimation(i=this.animation){if(i!==undefined)e(i,p,`The post-icon "animation" prop requires one of the following values: ${p.join(", ")}.`)}validateBase(i=this.base){o(i,"string",'The post-icon "base" prop should be a string.')}validateFlipH(i=this.flipH){o(i,"boolean",'The post-icon "flipH" prop should be a boolean.')}validateFlipV(i=this.flipV){o(i,"boolean",'The post-icon "flipV" prop should be a boolean.')}validateName(i=this.name){r(i,'The post-icon "name" prop is required!.');s(i,"string",'The post-icon "name" prop should be a string.')}validateRotate(i=this.rotate){o(i,"number",'The post-icon "rotate" prop should be a number.')}validateScale(i=this.scale){o(i,"number",'The post-icon "scale" prop should be a number.')}componentWillLoad(){this.validateBase();this.validateName();this.validateFlipH();this.validateFlipV();this.validateScale();this.validateRotate();this.validateAnimation()}componentWillRender(){this.setPath()}setPath(){var i,t,a,n;const e=(t=(i=document.head.querySelector('meta[name="design-system-settings"][data-post-icon-base]'))===null||i===void 0?void 0:i.getAttribute("data-post-icon-base"))!==null&&t!==void 0?t:null;const o=`${(n=(a=this.base)!==null&&a!==void 0?a:e)!==null&&n!==void 0?n:c}/`.replace(/\/\/$/,"/");const s=`${this.name}.svg#icon`;const l=`${o}${s}`;this.path=new URL(l,window.location.origin).toString()}render(){const i=Object.entries({"-webkit-mask-image":`url('${this.path}')`,"mask-image":`url('${this.path}')`,scale:this.scale&&!isNaN(Number(this.scale))?`${this.scale}`:null,rotate:this.rotate&&!isNaN(Number(this.rotate))?`${this.rotate}deg`:null}).filter((([i,t])=>t!==null)).reduce(((i,[t,a])=>Object.assign(i,{[t]:a})),{});return t(a,{"data-version":l},t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",style:i}))}get host(){return n(this)}static get watchers(){return{animation:["validateAnimation"],base:["validateBase"],flipH:["validateFlipH"],flipV:["validateFlipV"],name:["validateName"],rotate:["validateRotate"],scale:["validateScale"]}}};f.style=m;export{f as P};
2
+ //# sourceMappingURL=p-97000cb6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["postIconCss","CDN_URL","ANIMATION_NAMES","ANIMATION_KEYS","PostIcon","validateAnimation","newValue","this","animation","undefined","checkEmptyOrOneOf","join","validateBase","base","checkEmptyOrType","validateFlipH","flipH","validateFlipV","flipV","validateName","name","checkNonEmpty","checkType","validateRotate","rotate","validateScale","scale","componentWillLoad","componentWillRender","setPath","metaBase","_b","_a","document","head","querySelector","getAttribute","fileBase","_d","_c","replace","fileName","filePath","path","URL","window","location","origin","toString","render","svgStyles","Object","entries","isNaN","Number","filter","_key","value","reduce","styles","key","assign","h","Host","version","xmlns","viewBox","style"],"sources":["src/components/post-icon/post-icon.scss?tag=post-icon&encapsulation=shadow","src/components/post-icon/post-icon.tsx"],"sourcesContent":["@use 'sass:map';\n\n$post-icon-animations: (\n 'cylon': icon-animation-cylon 0.75s ease-in-out infinite alternate,\n 'cylon-vertical': icon-animation-cylon-vertical 0.75s ease-in-out infinite alternate,\n 'spin': icon-animation-spin 2s linear infinite normal,\n 'spin-reverse': icon-animation-spin 2s linear infinite reverse,\n 'fade': icon-animation-fade 0.75s ease-in-out infinite alternate,\n 'throb': icon-animation-throb 0.75s ease-in-out infinite alternate,\n);\n\n:host {\n display: inline-block;\n width: 1em;\n vertical-align: -0.15em;\n}\n\nsvg {\n display: block;\n width: 100%;\n height: 100%;\n fill: currentColor;\n background-color: currentColor;\n -webkit-mask-position: center center;\n mask-position: center center;\n -webkit-mask-repeat: no-repeat;\n mask-repeat: no-repeat;\n -webkit-mask-size: 100%;\n mask-size: 100%;\n}\n\n// flip\n\n:host([flip-h]:not([flip-h='false'])) {\n scale: -1 1;\n}\n\n:host([flip-v]:not([flip-v='false'])) {\n scale: 1 -1;\n}\n\n:host([flip-h][flip-v]:not([flip-h='false'], [flip-v='false'])) {\n scale: -1;\n}\n\n// scale\n// done with inline styling\n\n// rotate\n// done with inline styling\n\n// animation\n\n:host([animation]) {\n transform-origin: center;\n}\n\n@each $key, $value in $post-icon-animations {\n :host([animation='#{$key}']) {\n animation: $value;\n }\n}\n\n@keyframes icon-animation-cylon {\n from {\n transform: translateX(-25%);\n }\n to {\n transform: translateX(25%);\n }\n}\n\n@keyframes icon-animation-cylon-vertical {\n from {\n transform: translateY(25%);\n }\n to {\n transform: translateY(-25%);\n }\n}\n\n@keyframes icon-animation-fade {\n from {\n opacity: 0.1;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes icon-animation-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n\n@keyframes icon-animation-throb {\n from {\n opacity: 0.5;\n transform: scale(0.5);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n","import { Component, Element, Host, h, Prop, State, Watch } from '@stencil/core';\nimport { checkNonEmpty, checkType, checkEmptyOrType, checkEmptyOrOneOf } from '../../utils';\nimport { version } from '../../../package.json';\n\nconst CDN_URL = 'https://unpkg.com/@swisspost/design-system-icons/public/post-icons';\nconst ANIMATION_NAMES = [\n 'cylon',\n 'cylon-vertical',\n 'spin',\n 'spin-reverse',\n 'fade',\n 'throb',\n] as const;\nconst ANIMATION_KEYS = [...ANIMATION_NAMES];\n\ntype Animation = (typeof ANIMATION_NAMES)[number];\n\n/**\n * @class PostIcon - representing a stencil component\n */\n@Component({\n tag: 'post-icon',\n styleUrl: 'post-icon.scss',\n shadow: true,\n})\nexport class PostIcon {\n private path: string;\n\n @Element() host: HTMLPostIconElement;\n\n @State() svgStyles: string;\n @State() svgOutput: string;\n\n /**\n * The name of the animation.\n */\n @Prop() readonly animation?: Animation | null = null;\n\n @Watch('animation')\n validateAnimation(newValue = this.animation) {\n if (newValue !== undefined)\n checkEmptyOrOneOf(\n newValue,\n ANIMATION_KEYS,\n `The post-icon \"animation\" prop requires one of the following values: ${ANIMATION_KEYS.join(\n ', ',\n )}.`,\n );\n }\n\n /**\n * The base path, where the icons are located (must be a public url).<br/>Leave this field empty to use the default cdn url.\n */\n @Prop() readonly base?: string | null = null;\n\n @Watch('base')\n validateBase(newValue = this.base) {\n checkEmptyOrType(newValue, 'string', 'The post-icon \"base\" prop should be a string.');\n }\n\n /**\n * When set to `true`, the icon will be flipped horizontally.\n */\n @Prop() readonly flipH?: boolean = false;\n\n @Watch('flipH')\n validateFlipH(newValue = this.flipH) {\n checkEmptyOrType(newValue, 'boolean', 'The post-icon \"flipH\" prop should be a boolean.');\n }\n\n /**\n * When set to `true`, the icon will be flipped vertically.\n */\n @Prop() readonly flipV?: boolean = false;\n\n @Watch('flipV')\n validateFlipV(newValue = this.flipV) {\n checkEmptyOrType(newValue, 'boolean', 'The post-icon \"flipV\" prop should be a boolean.');\n }\n\n /**\n * The name/id of the icon (e.g. 1000, 1001, ...).\n */\n @Prop() readonly name!: string;\n\n @Watch('name')\n validateName(newValue = this.name) {\n checkNonEmpty(newValue, 'The post-icon \"name\" prop is required!.');\n checkType(newValue, 'string', 'The post-icon \"name\" prop should be a string.');\n }\n\n /**\n * The number of degree for the css rotate transformation.\n */\n @Prop() readonly rotate?: number | null = null;\n\n @Watch('rotate')\n validateRotate(newValue = this.rotate) {\n checkEmptyOrType(newValue, 'number', 'The post-icon \"rotate\" prop should be a number.');\n }\n\n /**\n * The number for the css scale transformation.\n */\n @Prop() readonly scale?: number | null = null;\n\n @Watch('scale')\n validateScale(newValue = this.scale) {\n checkEmptyOrType(newValue, 'number', 'The post-icon \"scale\" prop should be a number.');\n }\n\n componentWillLoad() {\n this.validateBase();\n this.validateName();\n this.validateFlipH();\n this.validateFlipV();\n this.validateScale();\n this.validateRotate();\n this.validateAnimation();\n }\n\n componentWillRender() {\n this.setPath();\n }\n\n private setPath() {\n // Construct icon path from different possible sources\n const metaBase =\n document.head\n .querySelector('meta[name=\"design-system-settings\"][data-post-icon-base]')\n ?.getAttribute('data-post-icon-base') ?? null;\n\n const fileBase = `${this.base ?? metaBase ?? CDN_URL}/`.replace(/\\/\\/$/, '/');\n const fileName = `${this.name}.svg#icon`;\n const filePath = `${fileBase}${fileName}`;\n\n this.path = new URL(filePath, window.location.origin).toString();\n }\n\n render() {\n // create inline styles for some properties\n const svgStyles = Object.entries({\n '-webkit-mask-image': `url('${this.path}')`,\n 'mask-image': `url('${this.path}')`,\n 'scale': this.scale && !isNaN(Number(this.scale)) ? `${this.scale}` : null,\n 'rotate': this.rotate && !isNaN(Number(this.rotate)) ? `${this.rotate}deg` : null,\n })\n .filter(([_key, value]) => value !== null)\n .reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});\n\n return (\n <Host data-version={version}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" style={svgStyles}>\n </svg>\n </Host>\n );\n }\n}\n"],"mappings":"mLAAA,MAAMA,EAAc,w+CCIpB,MAAMC,EAAU,qEAChB,MAAMC,EAAkB,CACtB,QACA,iBACA,OACA,eACA,OACA,SAEF,MAAMC,EAAiB,IAAID,G,MAYdE,EAAQ,M,0FAW6B,K,UAiBR,K,WAUL,M,WAUA,M,gCAqBO,K,WAUD,I,CAjEzC,iBAAAC,CAAkBC,EAAWC,KAAKC,WAChC,GAAIF,IAAaG,UACfC,EACEJ,EACAH,EACA,wEAAwEA,EAAeQ,KACrF,S,CAWR,YAAAC,CAAaN,EAAWC,KAAKM,MAC3BC,EAAiBR,EAAU,SAAU,gD,CASvC,aAAAS,CAAcT,EAAWC,KAAKS,OAC5BF,EAAiBR,EAAU,UAAW,kD,CASxC,aAAAW,CAAcX,EAAWC,KAAKW,OAC5BJ,EAAiBR,EAAU,UAAW,kD,CASxC,YAAAa,CAAab,EAAWC,KAAKa,MAC3BC,EAAcf,EAAU,2CACxBgB,EAAUhB,EAAU,SAAU,gD,CAShC,cAAAiB,CAAejB,EAAWC,KAAKiB,QAC7BV,EAAiBR,EAAU,SAAU,kD,CASvC,aAAAmB,CAAcnB,EAAWC,KAAKmB,OAC5BZ,EAAiBR,EAAU,SAAU,iD,CAGvC,iBAAAqB,GACEpB,KAAKK,eACLL,KAAKY,eACLZ,KAAKQ,gBACLR,KAAKU,gBACLV,KAAKkB,gBACLlB,KAAKgB,iBACLhB,KAAKF,mB,CAGP,mBAAAuB,GACErB,KAAKsB,S,CAGC,OAAAA,G,YAEN,MAAMC,GACJC,GAAAC,EAAAC,SAASC,KACNC,cAAc,+DAA2D,MAAAH,SAAA,SAAAA,EACxEI,aAAa,0BAAsB,MAAAL,SAAA,EAAAA,EAAI,KAE7C,MAAMM,EAAW,IAAGC,GAAAC,EAAAhC,KAAKM,QAAI,MAAA0B,SAAA,EAAAA,EAAIT,KAAQ,MAAAQ,SAAA,EAAAA,EAAIrC,KAAWuC,QAAQ,QAAS,KACzE,MAAMC,EAAW,GAAGlC,KAAKa,gBACzB,MAAMsB,EAAW,GAAGL,IAAWI,IAE/BlC,KAAKoC,KAAO,IAAIC,IAAIF,EAAUG,OAAOC,SAASC,QAAQC,U,CAGxD,MAAAC,GAEE,MAAMC,EAAYC,OAAOC,QAAQ,CAC/B,qBAAsB,QAAQ7C,KAAKoC,SACnC,aAAc,QAAQpC,KAAKoC,SAC3BjB,MAASnB,KAAKmB,QAAU2B,MAAMC,OAAO/C,KAAKmB,QAAU,GAAGnB,KAAKmB,QAAU,KACtEF,OAAUjB,KAAKiB,SAAW6B,MAAMC,OAAO/C,KAAKiB,SAAW,GAAGjB,KAAKiB,YAAc,OAE5E+B,QAAO,EAAEC,EAAMC,KAAWA,IAAU,OACpCC,QAAO,CAACC,GAASC,EAAKH,KAAWN,OAAOU,OAAOF,EAAQ,CAAEC,CAACA,GAAMH,KAAU,IAE7E,OACEK,EAACC,EAAI,gBAAeC,GAClBF,EAAA,OAAKG,MAAM,6BAA6BC,QAAQ,YAAYC,MAAOjB,I"}
@@ -0,0 +1,3 @@
1
+ const t="post-components";let e;let n;let s=false;let o=false;const l=(t,e="")=>{{return()=>{}}};const c=(t,e)=>{{return()=>{}}};const i="{visibility:hidden}.hydrated{visibility:inherit}";const f={};const r="http://www.w3.org/2000/svg";const u="http://www.w3.org/1999/xhtml";const a=t=>t!=null;const d=t=>{t=typeof t;return t==="object"||t==="function"};function p(t){var e,n,s;return(s=(n=(e=t.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&s!==void 0?s:undefined}const h=(t,e,...n)=>{let s=null;let o=null;let l=false;let c=false;const i=[];const f=e=>{for(let n=0;n<e.length;n++){s=e[n];if(Array.isArray(s)){f(s)}else if(s!=null&&typeof s!=="boolean"){if(l=typeof t!=="function"&&!d(s)){s=String(s)}if(l&&c){i[i.length-1].t+=s}else{i.push(l?y(null,s):s)}c=l}}};f(n);if(e){if(e.key){o=e.key}{const t=e.className||e.class;if(t){e.class=typeof t!=="object"?t:Object.keys(t).filter((e=>t[e])).join(" ")}}}if(typeof t==="function"){return t(e===null?{}:e,i,b)}const r=y(t,null);r.o=e;if(i.length>0){r.l=i}{r.i=o}return r};const y=(t,e)=>{const n={u:0,p:t,t:e,h:null,l:null};{n.o=null}{n.i=null}return n};const v={};const m=t=>t&&t.p===v;const b={forEach:(t,e)=>t.map(w).forEach(e),map:(t,e)=>t.map(w).map(e).map($)};const w=t=>({vattrs:t.o,vchildren:t.l,vkey:t.i,vname:t.v,vtag:t.p,vtext:t.t});const $=t=>{if(typeof t.vtag==="function"){const e=Object.assign({},t.vattrs);if(t.vkey){e.key=t.vkey}if(t.vname){e.name=t.vname}return h(t.vtag,e,...t.vchildren||[])}const e=y(t.vtag,t.vtext);e.o=t.vattrs;e.l=t.vchildren;e.i=t.vkey;e.v=t.vname;return e};const g=(t,e)=>{if(t!=null&&!d(t)){if(e&4){return t==="false"?false:t===""||!!t}if(e&2){return parseFloat(t)}if(e&1){return String(t)}return t}return t};const S=t=>pt(t).$hostElement$;const j=(t,e,n)=>{const s=S(t);return{emit:t=>k(s,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:t})}};const k=(t,e,n)=>{const s=jt.ce(e,n);t.dispatchEvent(s);return s};const O=new WeakMap;const C=(t,e,n)=>{let s=$t.get(t);if(Ot&&n){s=s||new CSSStyleSheet;if(typeof s==="string"){s=e}else{s.replaceSync(e)}}else{s=e}$t.set(t,s)};const M=(t,e,n)=>{var s;const o=x(e);const l=$t.get(o);t=t.nodeType===11?t:St;if(l){if(typeof l==="string"){t=t.head||t;let e=O.get(t);let n;if(!e){O.set(t,e=new Set)}if(!e.has(o)){{n=St.createElement("style");n.innerHTML=l;const e=(s=jt.m)!==null&&s!==void 0?s:p(St);if(e!=null){n.setAttribute("nonce",e)}t.insertBefore(n,t.querySelector("link"))}if(e){e.add(o)}}}else if(!t.adoptedStyleSheets.includes(l)){t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]}}return o};const P=t=>{const e=t.$;const n=t.$hostElement$;const s=e.u;const o=l("attachStyles",e.S);const c=M(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(s&10){n["s-sc"]=c;n.classList.add(c+"-h")}o()};const x=(t,e)=>"sc-"+t.S;const E=(t,e,n,s,o,l)=>{if(n!==s){let c=vt(t,e);let i=e.toLowerCase();if(e==="class"){const e=t.classList;const o=U(n);const l=U(s);e.remove(...o.filter((t=>t&&!l.includes(t))));e.add(...l.filter((t=>t&&!o.includes(t))))}else if(e==="style"){{for(const e in n){if(!s||s[e]==null){if(e.includes("-")){t.style.removeProperty(e)}else{t.style[e]=""}}}}for(const e in s){if(!n||s[e]!==n[e]){if(e.includes("-")){t.style.setProperty(e,s[e])}else{t.style[e]=s[e]}}}}else if(e==="key");else if(e==="ref"){if(s){s(t)}}else if(!c&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(vt(gt,i)){e=i.slice(2)}else{e=i[2]+e.slice(3)}if(n){jt.rel(t,e,n,false)}if(s){jt.ael(t,e,s,false)}}else{const i=d(s);if((c||i&&s!==null)&&!o){try{if(!t.tagName.includes("-")){const o=s==null?"":s;if(e==="list"){c=false}else if(n==null||t[e]!=o){t[e]=o}}else{t[e]=s}}catch(t){}}if(s==null||s===false){if(s!==false||t.getAttribute(e)===""){{t.removeAttribute(e)}}}else if((!c||l&4||o)&&!i){s=s===true?"":s;{t.setAttribute(e,s)}}}}};const L=/\s/;const U=t=>!t?[]:t.split(L);const W=(t,e,n,s)=>{const o=e.h.nodeType===11&&e.h.host?e.h.host:e.h;const l=t&&t.o||f;const c=e.o||f;{for(s in l){if(!(s in c)){E(o,s,l[s],undefined,n,e.u)}}}for(s in c){E(o,s,l[s],c[s],n,e.u)}};const A=(t,n,o,l)=>{const c=n.l[o];let i=0;let f;let d;if(c.t!==null){f=c.h=St.createTextNode(c.t)}else{if(!s){s=c.p==="svg"}f=c.h=St.createElementNS(s?r:u,c.p);if(s&&c.p==="foreignObject"){s=false}{W(null,c,s)}if(a(e)&&f["s-si"]!==e){f.classList.add(f["s-si"]=e)}if(c.l){for(i=0;i<c.l.length;++i){d=A(t,c,i);if(d){f.appendChild(d)}}}{if(c.p==="svg"){s=false}else if(f.tagName==="foreignObject"){s=true}}}return f};const N=(t,e,s,o,l,c)=>{let i=t;let f;if(i.shadowRoot&&i.tagName===n){i=i.shadowRoot}for(;l<=c;++l){if(o[l]){f=A(null,s,l);if(f){o[l].h=f;i.insertBefore(f,e)}}}};const R=(t,e,n)=>{for(let s=e;s<=n;++s){const e=t[s];if(e){const t=e.h;q(e);if(t){t.remove()}}}};const T=(t,e,n,s)=>{let o=0;let l=0;let c=0;let i=0;let f=e.length-1;let r=e[0];let u=e[f];let a=s.length-1;let d=s[0];let p=s[a];let h;let y;while(o<=f&&l<=a){if(r==null){r=e[++o]}else if(u==null){u=e[--f]}else if(d==null){d=s[++l]}else if(p==null){p=s[--a]}else if(F(r,d)){H(r,d);r=e[++o];d=s[++l]}else if(F(u,p)){H(u,p);u=e[--f];p=s[--a]}else if(F(r,p)){H(r,p);t.insertBefore(r.h,u.h.nextSibling);r=e[++o];p=s[--a]}else if(F(u,d)){H(u,d);t.insertBefore(u.h,r.h);u=e[--f];d=s[++l]}else{c=-1;{for(i=o;i<=f;++i){if(e[i]&&e[i].i!==null&&e[i].i===d.i){c=i;break}}}if(c>=0){y=e[c];if(y.p!==d.p){h=A(e&&e[l],n,c)}else{H(y,d);e[c]=undefined;h=y.h}d=s[++l]}else{h=A(e&&e[l],n,l);d=s[++l]}if(h){{r.h.parentNode.insertBefore(h,r.h)}}}}if(o>f){N(t,s[a+1]==null?null:s[a+1].h,n,s,l,a)}else if(l>a){R(e,o,f)}};const F=(t,e)=>{if(t.p===e.p){{return t.i===e.i}}return false};const H=(t,e)=>{const n=e.h=t.h;const o=t.l;const l=e.l;const c=e.p;const i=e.t;if(i===null){{s=c==="svg"?true:c==="foreignObject"?false:s}{if(c==="slot");else{W(t,e,s)}}if(o!==null&&l!==null){T(n,o,e,l)}else if(l!==null){if(t.t!==null){n.textContent=""}N(n,null,e,l,0,l.length-1)}else if(o!==null){R(o,0,o.length-1)}if(s&&c==="svg"){s=false}}else if(t.t!==i){n.data=i}};const q=t=>{{t.o&&t.o.ref&&t.o.ref(null);t.l&&t.l.map(q)}};const D=(t,s,o=false)=>{const l=t.$hostElement$;const c=t.j||y(null,null);const i=m(s)?s:h(null,null,s);n=l.tagName;if(o&&i.o){for(const t of Object.keys(i.o)){if(l.hasAttribute(t)&&!["key","ref","style","class"].includes(t)){i.o[t]=l[t]}}}i.p=null;i.u|=4;t.j=i;i.h=c.h=l.shadowRoot||l;{e=l["s-sc"]}H(c,i)};const I=(t,e)=>{if(e&&!t.k&&e["s-p"]){e["s-p"].push(new Promise((e=>t.k=e)))}};const V=(t,e)=>{{t.u|=16}if(t.u&4){t.u|=512;return}I(t,t.O);const n=()=>_(t,e);return Ut(n)};const _=(t,e)=>{const n=l("scheduleUpdate",t.$.S);const s=t.C;let o;if(e){{t.u|=256;if(t.M){t.M.map((([t,e])=>X(s,t,e)));t.M=undefined}}{o=X(s,"componentWillLoad")}}{o=z(o,(()=>X(s,"componentWillRender")))}n();return z(o,(()=>G(t,s,e)))};const z=(t,e)=>B(t)?t.then(e):e();const B=t=>t instanceof Promise||t&&t.then&&typeof t.then==="function";const G=async(t,e,n)=>{var s;const o=t.$hostElement$;const c=l("update",t.$.S);const i=o["s-rc"];if(n){P(t)}const f=l("render",t.$.S);{J(t,e,o,n)}if(i){i.map((t=>t()));o["s-rc"]=undefined}f();c();{const e=(s=o["s-p"])!==null&&s!==void 0?s:[];const n=()=>K(t);if(e.length===0){n()}else{Promise.all(e).then(n);t.u|=4;e.length=0}}};const J=(t,e,n,s)=>{try{e=e.render();{t.u&=~16}{t.u|=2}{{{D(t,e,s)}}}}catch(e){mt(e,t.$hostElement$)}return null};const K=t=>{const e=t.$.S;const n=t.$hostElement$;const s=l("postUpdate",e);const o=t.C;const c=t.O;if(!(t.u&64)){t.u|=64;{Y(n)}{X(o,"componentDidLoad")}s();{t.P(n);if(!c){Q()}}}else{s()}{t.L(n)}{if(t.k){t.k();t.k=undefined}if(t.u&512){Lt((()=>V(t,false)))}t.u&=~(4|512)}};const Q=e=>{{Y(St.documentElement)}Lt((()=>k(gt,"appload",{detail:{namespace:t}})))};const X=(t,e,n)=>{if(t&&t[e]){try{return t[e](n)}catch(t){mt(t)}}return undefined};const Y=t=>t.classList.add("hydrated");const Z=(t,e)=>pt(t).U.get(e);const tt=(t,e,n,s)=>{const o=pt(t);const l=o.$hostElement$;const c=o.U.get(e);const i=o.u;const f=o.C;n=g(n,s.W[e][0]);const r=Number.isNaN(c)&&Number.isNaN(n);const u=n!==c&&!r;if((!(i&8)||c===undefined)&&u){o.U.set(e,n);if(f){if(s.A&&i&128){const t=s.A[e];if(t){t.map((t=>{try{f[t](n,c,e)}catch(t){mt(t,l)}}))}}if((i&(2|16))===2){V(o,false)}}}};const et=(t,e,n)=>{var s;if(e.W){if(t.watchers){e.A=t.watchers}const o=Object.entries(e.W);const l=t.prototype;o.map((([t,[s]])=>{if(s&31||n&2&&s&32){Object.defineProperty(l,t,{get(){return Z(this,t)},set(n){tt(this,t,n,e)},configurable:true,enumerable:true})}else if(n&1&&s&64){Object.defineProperty(l,t,{value(...e){const n=pt(this);return n.N.then((()=>n.C[t](...e)))}})}}));if(n&1){const n=new Map;l.attributeChangedCallback=function(t,s,o){jt.jmp((()=>{const c=n.get(t);if(this.hasOwnProperty(c)){o=this[c];delete this[c]}else if(l.hasOwnProperty(c)&&typeof this[c]==="number"&&this[c]==o){return}else if(c==null){const n=pt(this);const l=n===null||n===void 0?void 0:n.u;if(!(l&8)&&l&128&&o!==s){const l=n.C;const c=e.A[t];c===null||c===void 0?void 0:c.forEach((e=>{if(l[e]!=null){l[e].call(l,o,s,t)}}))}return}this[c]=o===null&&typeof this[c]==="boolean"?false:o}))};t.observedAttributes=Array.from(new Set([...Object.keys((s=e.A)!==null&&s!==void 0?s:{}),...o.filter((([t,e])=>e[0]&15)).map((([t,e])=>{const s=e[1]||t;n.set(s,t);return s}))]))}}return t};const nt=async(t,e,n,s)=>{let o;if((e.u&32)===0){e.u|=32;{o=wt(n);if(o.then){const t=c();o=await o;t()}if(!o.isProxied){{n.A=o.watchers}et(o,n,2);o.isProxied=true}const t=l("createInstance",n.S);{e.u|=8}try{new o(e)}catch(t){mt(t)}{e.u&=~8}{e.u|=128}t();st(e.C)}if(o.style){let t=o.style;const e=x(n);if(!$t.has(e)){const s=l("registerStyles",n.S);C(e,t,!!(n.u&1));s()}}}const i=e.O;const f=()=>V(e,true);if(i&&i["s-rc"]){i["s-rc"].push(f)}else{f()}};const st=t=>{{X(t,"connectedCallback")}};const ot=t=>{if((jt.u&1)===0){const e=pt(t);const n=e.$;const s=l("connectedCallback",n.S);if(!(e.u&1)){e.u|=1;{let n=t;while(n=n.parentNode||n.host){if(n["s-p"]){I(e,e.O=n);break}}}if(n.W){Object.entries(n.W).map((([e,[n]])=>{if(n&31&&t.hasOwnProperty(e)){const n=t[e];delete t[e];t[e]=n}}))}{nt(t,e,n)}}else{ft(t,e,n.R);if(e===null||e===void 0?void 0:e.C){st(e.C)}else if(e===null||e===void 0?void 0:e.T){e.T.then((()=>st(e.C)))}}s()}};const lt=t=>{{X(t,"disconnectedCallback")}};const ct=async t=>{if((jt.u&1)===0){const e=pt(t);{if(e.F){e.F.map((t=>t()));e.F=undefined}}if(e===null||e===void 0?void 0:e.C){lt(e.C)}else if(e===null||e===void 0?void 0:e.T){e.T.then((()=>lt(e.C)))}}};const it=(t,e={})=>{var n;const s=l();const o=[];const c=e.exclude||[];const f=gt.customElements;const r=St.head;const u=r.querySelector("meta[charset]");const a=St.createElement("style");const d=[];let h;let y=true;Object.assign(jt,e);jt.H=new URL(e.resourcesUrl||"./",St.baseURI).href;t.map((t=>{t[1].map((e=>{var n;const s={u:e[0],S:e[1],W:e[2],R:e[3]};{s.W=e[2]}{s.R=e[3]}{s.A=(n=e[4])!==null&&n!==void 0?n:{}}const l=s.S;const i=class extends HTMLElement{constructor(t){super(t);t=this;yt(t,s);if(s.u&1){{{t.attachShadow({mode:"open"})}}}}connectedCallback(){if(h){clearTimeout(h);h=null}if(y){d.push(this)}else{jt.jmp((()=>ot(this)))}}disconnectedCallback(){jt.jmp((()=>ct(this)))}componentOnReady(){return pt(this).T}};s.q=t[0];if(!c.includes(l)&&!f.get(l)){o.push(l);f.define(l,et(i,s,1))}}))}));{a.innerHTML=o+i;a.setAttribute("data-styles","");const t=(n=jt.m)!==null&&n!==void 0?n:p(St);if(t!=null){a.setAttribute("nonce",t)}r.insertBefore(a,u?u.nextSibling:r.firstChild)}y=false;if(d.length){d.map((t=>t.connectedCallback()))}else{{jt.jmp((()=>h=setTimeout(Q,30)))}}s()};const ft=(t,e,n,s)=>{if(n){n.map((([n,s,o])=>{const l=t;const c=rt(e,o);const i=ut(n);jt.ael(l,s,c,i);(e.F=e.F||[]).push((()=>jt.rel(l,s,c,i)))}))}};const rt=(t,e)=>n=>{try{{if(t.u&256){t.C[e](n)}else{(t.M=t.M||[]).push([e,n])}}}catch(t){mt(t)}};const ut=t=>(t&2)!==0;const at=t=>jt.m=t;const dt=new WeakMap;const pt=t=>dt.get(t);const ht=(t,e)=>dt.set(e.C=t,e);const yt=(t,e)=>{const n={u:0,$hostElement$:t,$:e,U:new Map};{n.N=new Promise((t=>n.L=t))}{n.T=new Promise((t=>n.P=t));t["s-p"]=[];t["s-rc"]=[]}ft(t,n,e.R);return dt.set(t,n)};const vt=(t,e)=>e in t;const mt=(t,e)=>(0,console.error)(t,e);const bt=new Map;const wt=(t,e,n)=>{const s=t.S.replace(/-/g,"_");const o=t.q;const l=bt.get(o);if(l){return l[s]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${o}.entry.js${""}`).then((t=>{{bt.set(o,t)}return t[s]}),mt)};const $t=new Map;const gt=typeof window!=="undefined"?window:{};const St=gt.document||{head:{}};const jt={u:0,H:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)};const kt=t=>Promise.resolve(t);const Ot=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(t){}return false})();const Ct=[];const Mt=[];const Pt=(t,e)=>n=>{t.push(n);if(!o){o=true;if(e&&jt.u&4){Lt(Et)}else{jt.raf(Et)}}};const xt=t=>{for(let e=0;e<t.length;e++){try{t[e](performance.now())}catch(t){mt(t)}}t.length=0};const Et=()=>{xt(Ct);{xt(Mt);if(o=Ct.length>0){jt.raf(Et)}}};const Lt=t=>kt().then(t);const Ut=Pt(Mt,true);export{v as H,it as b,j as c,S as g,h,kt as p,ht as r,at as s};
3
+ //# sourceMappingURL=p-a7649277.js.map