@swisspost/design-system-components 1.6.3 → 1.7.1

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 (309) hide show
  1. package/dist/cjs/{check-non-empty-ae713942.js → check-non-empty-eeaa8f77.js} +4 -4
  2. package/dist/cjs/check-non-empty-eeaa8f77.js.map +1 -0
  3. package/dist/cjs/index-8c288b1a.js +45 -0
  4. package/dist/cjs/index-8c288b1a.js.map +1 -0
  5. package/dist/cjs/{index-b619e205.js → index-c07c0cdb.js} +144 -65
  6. package/dist/cjs/index-c07c0cdb.js.map +1 -0
  7. package/dist/cjs/index.cjs.js +17 -12
  8. package/dist/cjs/index.cjs.js.map +1 -1
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/package-989e0b36.js +7 -0
  11. package/dist/cjs/package-989e0b36.js.map +1 -0
  12. package/dist/cjs/post-accordion-bc0c6f31.js +87 -0
  13. package/dist/cjs/post-accordion-bc0c6f31.js.map +1 -0
  14. package/dist/cjs/post-accordion.cjs.entry.js +4 -80
  15. package/dist/cjs/post-accordion.cjs.entry.js.map +1 -1
  16. package/dist/cjs/post-alert-39ac30a4.js +101 -0
  17. package/dist/cjs/{post-alert-b46943e0.js.map → post-alert-39ac30a4.js.map} +1 -1
  18. package/dist/cjs/post-alert.cjs.entry.js +5 -6
  19. package/dist/cjs/post-alert.cjs.entry.js.map +1 -1
  20. package/dist/cjs/{post-collapsible-04364cda.js → post-collapsible-85f8ace5.js} +69 -69
  21. package/dist/cjs/{post-collapsible-04364cda.js.map → post-collapsible-85f8ace5.js.map} +1 -1
  22. package/dist/cjs/post-collapsible.cjs.entry.js +4 -5
  23. package/dist/cjs/post-collapsible.cjs.entry.js.map +1 -1
  24. package/dist/cjs/post-components.cjs.js +3 -3
  25. package/dist/cjs/post-components.cjs.js.map +1 -1
  26. package/dist/cjs/post-icon-53e50c15.js +105 -0
  27. package/dist/cjs/post-icon-53e50c15.js.map +1 -0
  28. package/dist/cjs/post-icon.cjs.entry.js +5 -6
  29. package/dist/cjs/post-icon.cjs.entry.js.map +1 -1
  30. package/dist/cjs/post-popover-5a75c1b2.js +118 -0
  31. package/dist/cjs/post-popover-5a75c1b2.js.map +1 -0
  32. package/dist/cjs/post-popover.cjs.entry.js +13 -0
  33. package/dist/cjs/post-popover.cjs.entry.js.map +1 -0
  34. package/dist/cjs/post-popovercontainer-84378594.js +1878 -0
  35. package/dist/cjs/post-popovercontainer-84378594.js.map +1 -0
  36. package/dist/cjs/post-popovercontainer.cjs.entry.js +13 -0
  37. package/dist/cjs/post-popovercontainer.cjs.entry.js.map +1 -0
  38. package/dist/cjs/post-tab-header-02c6e31e.js +33 -0
  39. package/dist/cjs/{post-tab-header-805c0a52.js.map → post-tab-header-02c6e31e.js.map} +1 -1
  40. package/dist/cjs/post-tab-header.cjs.entry.js +4 -4
  41. package/dist/cjs/post-tab-panel-3973b707.js +27 -0
  42. package/dist/cjs/{post-tab-panel-caa44a77.js.map → post-tab-panel-3973b707.js.map} +1 -1
  43. package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
  44. package/dist/cjs/post-tabs-7a4fead7.js +153 -0
  45. package/dist/cjs/post-tabs-7a4fead7.js.map +1 -0
  46. package/dist/cjs/post-tabs.cjs.entry.js +3 -3
  47. package/dist/cjs/{post-tooltip-32a9c549.js → post-tooltip-79a9c96d.js} +78 -1754
  48. package/dist/cjs/post-tooltip-79a9c96d.js.map +1 -0
  49. package/dist/cjs/post-tooltip.cjs.entry.js +3 -4
  50. package/dist/cjs/post-tooltip.cjs.entry.js.map +1 -1
  51. package/dist/collection/animations/collapse.js +5 -5
  52. package/dist/collection/animations/collapse.js.map +1 -1
  53. package/dist/collection/collection-manifest.json +5 -3
  54. package/dist/collection/components/post-accordion/post-accordion.js +167 -166
  55. package/dist/collection/components/post-accordion/post-accordion.js.map +1 -1
  56. package/dist/collection/components/post-alert/post-alert.css +2 -2
  57. package/dist/collection/components/post-alert/post-alert.js +246 -246
  58. package/dist/collection/components/post-alert/post-alert.js.map +1 -1
  59. package/dist/collection/components/post-collapsible/post-collapsible.js +169 -168
  60. package/dist/collection/components/post-collapsible/post-collapsible.js.map +1 -1
  61. package/dist/collection/components/post-icon/post-icon.css +1 -1
  62. package/dist/collection/components/post-icon/post-icon.js +250 -250
  63. package/dist/collection/components/post-icon/post-icon.js.map +1 -1
  64. package/dist/collection/components/post-popover/post-popover.css +3 -0
  65. package/dist/collection/components/post-popover/post-popover.js +267 -0
  66. package/dist/collection/components/post-popover/post-popover.js.map +1 -0
  67. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -0
  68. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +288 -0
  69. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js.map +1 -0
  70. package/dist/collection/components/post-tab-header/post-tab-header.css +1 -1
  71. package/dist/collection/components/post-tab-header/post-tab-header.js +62 -62
  72. package/dist/collection/components/post-tab-header/post-tab-header.js.map +1 -1
  73. package/dist/collection/components/post-tab-panel/post-tab-panel.js +50 -50
  74. package/dist/collection/components/post-tab-panel/post-tab-panel.js.map +1 -1
  75. package/dist/collection/components/post-tabs/post-tabs.css +1 -1
  76. package/dist/collection/components/post-tabs/post-tabs.js +224 -223
  77. package/dist/collection/components/post-tabs/post-tabs.js.map +1 -1
  78. package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
  79. package/dist/collection/components/post-tooltip/post-tooltip.js +192 -325
  80. package/dist/collection/components/post-tooltip/post-tooltip.js.map +1 -1
  81. package/dist/collection/index.js +3 -0
  82. package/dist/collection/index.js.map +1 -1
  83. package/dist/collection/utils/is-motion-reduced.js +1 -1
  84. package/dist/collection/utils/is-motion-reduced.js.map +1 -1
  85. package/dist/collection/utils/property-checkers/check-non-empty.js +3 -3
  86. package/dist/collection/utils/property-checkers/check-non-empty.js.map +1 -1
  87. package/dist/collection/utils/property-checkers/check-one-of.js +2 -2
  88. package/dist/collection/utils/property-checkers/check-one-of.js.map +1 -1
  89. package/dist/collection/utils/property-checkers/check-pattern.js +2 -2
  90. package/dist/collection/utils/property-checkers/check-pattern.js.map +1 -1
  91. package/dist/collection/utils/property-checkers/check-type.js +10 -10
  92. package/dist/collection/utils/property-checkers/check-type.js.map +1 -1
  93. package/dist/collection/utils/property-checkers/empty-or.js +5 -5
  94. package/dist/collection/utils/property-checkers/empty-or.js.map +1 -1
  95. package/dist/components/check-non-empty.js +3 -3
  96. package/dist/components/check-non-empty.js.map +1 -1
  97. package/dist/components/index.js +3 -0
  98. package/dist/components/index.js.map +1 -1
  99. package/dist/components/index2.js +22 -18
  100. package/dist/components/index2.js.map +1 -1
  101. package/dist/components/package.js +1 -1
  102. package/dist/components/post-accordion.d.ts +2 -2
  103. package/dist/components/post-accordion.js +1 -101
  104. package/dist/components/post-accordion.js.map +1 -1
  105. package/dist/components/post-accordion2.js +105 -0
  106. package/dist/components/post-accordion2.js.map +1 -0
  107. package/dist/components/post-alert.d.ts +2 -2
  108. package/dist/components/post-alert2.js +119 -119
  109. package/dist/components/post-alert2.js.map +1 -1
  110. package/dist/components/post-collapsible.d.ts +2 -2
  111. package/dist/components/post-collapsible2.js +90 -90
  112. package/dist/components/post-collapsible2.js.map +1 -1
  113. package/dist/components/post-icon.d.ts +2 -2
  114. package/dist/components/post-icon2.js +118 -118
  115. package/dist/components/post-icon2.js.map +1 -1
  116. package/dist/components/post-popover.d.ts +11 -0
  117. package/dist/components/post-popover.js +8 -0
  118. package/dist/components/post-popover.js.map +1 -0
  119. package/dist/components/post-popover2.js +144 -0
  120. package/dist/components/post-popover2.js.map +1 -0
  121. package/dist/components/post-popovercontainer.d.ts +11 -0
  122. package/dist/components/post-popovercontainer.js +8 -0
  123. package/dist/components/post-popovercontainer.js.map +1 -0
  124. package/dist/components/post-popovercontainer2.js +1897 -0
  125. package/dist/components/post-popovercontainer2.js.map +1 -0
  126. package/dist/components/post-tab-header.d.ts +2 -2
  127. package/dist/components/post-tab-header2.js +38 -38
  128. package/dist/components/post-tab-header2.js.map +1 -1
  129. package/dist/components/post-tab-panel.d.ts +2 -2
  130. package/dist/components/post-tab-panel2.js +30 -30
  131. package/dist/components/post-tab-panel2.js.map +1 -1
  132. package/dist/components/post-tabs.d.ts +2 -2
  133. package/dist/components/post-tabs2.js +147 -147
  134. package/dist/components/post-tabs2.js.map +1 -1
  135. package/dist/components/post-tooltip.d.ts +2 -2
  136. package/dist/components/post-tooltip2.js +100 -1774
  137. package/dist/components/post-tooltip2.js.map +1 -1
  138. package/dist/docs.d.ts +1 -21
  139. package/dist/docs.json +604 -77
  140. package/dist/esm/check-non-empty-58bd6b17.js +11 -0
  141. package/dist/esm/{check-non-empty-09c39561.js.map → check-non-empty-58bd6b17.js.map} +1 -1
  142. package/dist/esm/index-1427953c.js +40 -0
  143. package/dist/esm/index-1427953c.js.map +1 -0
  144. package/dist/esm/{index-4eff5fc5.js → index-35998e08.js} +144 -65
  145. package/dist/esm/index-35998e08.js.map +1 -0
  146. package/dist/esm/index.js +14 -12
  147. package/dist/esm/index.js.map +1 -1
  148. package/dist/esm/loader.js +3 -3
  149. package/dist/esm/package-e13ef9ad.js +5 -0
  150. package/dist/esm/package-e13ef9ad.js.map +1 -0
  151. package/dist/esm/post-accordion-8e96598a.js +85 -0
  152. package/dist/esm/post-accordion-8e96598a.js.map +1 -0
  153. package/dist/esm/post-accordion.entry.js +3 -83
  154. package/dist/esm/post-accordion.entry.js.map +1 -1
  155. package/dist/esm/post-alert-5e352303.js +99 -0
  156. package/dist/esm/{post-alert-e457e249.js.map → post-alert-5e352303.js.map} +1 -1
  157. package/dist/esm/post-alert.entry.js +5 -6
  158. package/dist/esm/post-alert.entry.js.map +1 -1
  159. package/dist/esm/{post-collapsible-c0a826b2.js → post-collapsible-3cc5dd87.js} +69 -69
  160. package/dist/esm/{post-collapsible-c0a826b2.js.map → post-collapsible-3cc5dd87.js.map} +1 -1
  161. package/dist/esm/post-collapsible.entry.js +4 -5
  162. package/dist/esm/post-collapsible.entry.js.map +1 -1
  163. package/dist/esm/post-components.js +4 -4
  164. package/dist/esm/post-components.js.map +1 -1
  165. package/dist/esm/post-icon-fdda3f99.js +103 -0
  166. package/dist/esm/post-icon-fdda3f99.js.map +1 -0
  167. package/dist/esm/post-icon.entry.js +5 -6
  168. package/dist/esm/post-icon.entry.js.map +1 -1
  169. package/dist/esm/post-popover-ff2c259f.js +116 -0
  170. package/dist/esm/post-popover-ff2c259f.js.map +1 -0
  171. package/dist/esm/post-popover.entry.js +5 -0
  172. package/dist/esm/post-popover.entry.js.map +1 -0
  173. package/dist/esm/post-popovercontainer-f4cd18cd.js +1876 -0
  174. package/dist/esm/post-popovercontainer-f4cd18cd.js.map +1 -0
  175. package/dist/esm/post-popovercontainer.entry.js +5 -0
  176. package/dist/esm/post-popovercontainer.entry.js.map +1 -0
  177. package/dist/esm/post-tab-header-486b267b.js +31 -0
  178. package/dist/esm/{post-tab-header-f0c355d6.js.map → post-tab-header-486b267b.js.map} +1 -1
  179. package/dist/esm/post-tab-header.entry.js +4 -4
  180. package/dist/esm/post-tab-panel-13940300.js +25 -0
  181. package/dist/esm/{post-tab-panel-46f02247.js.map → post-tab-panel-13940300.js.map} +1 -1
  182. package/dist/esm/post-tab-panel.entry.js +3 -3
  183. package/dist/esm/post-tabs-6f44ed1d.js +151 -0
  184. package/dist/esm/post-tabs-6f44ed1d.js.map +1 -0
  185. package/dist/esm/post-tabs.entry.js +3 -3
  186. package/dist/esm/{post-tooltip-fa7b4a0a.js → post-tooltip-1d99cd0c.js} +78 -1754
  187. package/dist/esm/post-tooltip-1d99cd0c.js.map +1 -0
  188. package/dist/esm/post-tooltip.entry.js +3 -4
  189. package/dist/esm/post-tooltip.entry.js.map +1 -1
  190. package/dist/post-components/index.esm.js +1 -1
  191. package/dist/post-components/p-169b8ef7.entry.js +2 -0
  192. package/dist/post-components/p-28be44d7.js +2 -0
  193. package/dist/post-components/{p-8b6fe20d.js.map → p-28be44d7.js.map} +1 -1
  194. package/dist/post-components/p-3ef3a1d2.js +2 -0
  195. package/dist/post-components/p-3ef3a1d2.js.map +1 -0
  196. package/dist/post-components/p-4b94c2a1.entry.js +2 -0
  197. package/dist/post-components/p-4cbb5212.entry.js +2 -0
  198. package/dist/post-components/p-51ae6f46.entry.js +2 -0
  199. package/dist/post-components/p-668bf58c.entry.js +2 -0
  200. package/dist/post-components/p-67d0a4fa.entry.js +2 -0
  201. package/dist/post-components/p-6b3a5063.entry.js +2 -0
  202. package/dist/post-components/{p-3604be27.js → p-6cdc82c6.js} +2 -2
  203. package/dist/post-components/p-723336f2.js +2 -0
  204. package/dist/post-components/{p-ca1e407c.js.map → p-723336f2.js.map} +1 -1
  205. package/dist/post-components/p-7d08e4f1.js +2 -0
  206. package/dist/post-components/p-7d08e4f1.js.map +1 -0
  207. package/dist/post-components/p-81591ad0.js +3 -0
  208. package/dist/post-components/p-81591ad0.js.map +1 -0
  209. package/dist/post-components/p-96f4ebc4.js +2 -0
  210. package/dist/post-components/p-96f4ebc4.js.map +1 -0
  211. package/dist/post-components/p-9b1b6e06.entry.js +2 -0
  212. package/dist/post-components/{p-9f71d450.js → p-a5a23448.js} +2 -2
  213. package/dist/post-components/p-aca6e9c1.js +2 -0
  214. package/dist/post-components/{p-fffce1d7.js.map → p-aca6e9c1.js.map} +1 -1
  215. package/dist/post-components/{p-b531475e.js → p-b095519d.js} +1 -1
  216. package/dist/post-components/p-bc27f061.js +9 -0
  217. package/dist/post-components/p-bc27f061.js.map +1 -0
  218. package/dist/post-components/p-bd1d0117.js +2 -0
  219. package/dist/post-components/p-bd1d0117.js.map +1 -0
  220. package/dist/post-components/p-d3ed113e.js +2 -0
  221. package/dist/post-components/p-d3ed113e.js.map +1 -0
  222. package/dist/post-components/p-d8365401.entry.js +2 -0
  223. package/dist/post-components/p-d8365401.entry.js.map +1 -0
  224. package/dist/post-components/p-e78d158d.entry.js +2 -0
  225. package/dist/post-components/p-e78d158d.entry.js.map +1 -0
  226. package/dist/post-components/{p-7b8797c6.entry.js → p-f695aab4.js} +2 -2
  227. package/dist/post-components/post-components.esm.js +1 -1
  228. package/dist/post-components/post-components.esm.js.map +1 -1
  229. package/dist/types/components/post-accordion/post-accordion.d.ts +26 -26
  230. package/dist/types/components/post-alert/post-alert.d.ts +45 -45
  231. package/dist/types/components/post-collapsible/post-collapsible.d.ts +31 -31
  232. package/dist/types/components/post-icon/post-icon.d.ts +43 -43
  233. package/dist/types/components/post-popover/post-popover.d.ts +53 -0
  234. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +62 -0
  235. package/dist/types/components/post-tab-header/post-tab-header.d.ts +9 -9
  236. package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +8 -8
  237. package/dist/types/components/post-tabs/post-tabs.d.ts +32 -32
  238. package/dist/types/components/post-tooltip/post-tooltip.d.ts +35 -62
  239. package/dist/types/components.d.ts +115 -10
  240. package/dist/types/index.d.ts +3 -0
  241. package/dist/types/stencil-public-runtime.d.ts +8 -0
  242. package/package.json +15 -13
  243. package/dist/cjs/check-non-empty-ae713942.js.map +0 -1
  244. package/dist/cjs/check-one-of-27ad3154.js +0 -10
  245. package/dist/cjs/check-one-of-27ad3154.js.map +0 -1
  246. package/dist/cjs/index-b38a23e0.js +0 -41
  247. package/dist/cjs/index-b38a23e0.js.map +0 -1
  248. package/dist/cjs/index-b619e205.js.map +0 -1
  249. package/dist/cjs/package-4e9ab85c.js +0 -7
  250. package/dist/cjs/package-4e9ab85c.js.map +0 -1
  251. package/dist/cjs/post-alert-b46943e0.js +0 -101
  252. package/dist/cjs/post-icon-5b36814e.js +0 -105
  253. package/dist/cjs/post-icon-5b36814e.js.map +0 -1
  254. package/dist/cjs/post-tab-header-805c0a52.js +0 -33
  255. package/dist/cjs/post-tab-panel-caa44a77.js +0 -27
  256. package/dist/cjs/post-tabs-29d4dc70.js +0 -153
  257. package/dist/cjs/post-tabs-29d4dc70.js.map +0 -1
  258. package/dist/cjs/post-tooltip-32a9c549.js.map +0 -1
  259. package/dist/components/check-one-of.js +0 -8
  260. package/dist/components/check-one-of.js.map +0 -1
  261. package/dist/esm/check-non-empty-09c39561.js +0 -11
  262. package/dist/esm/check-one-of-74750af9.js +0 -8
  263. package/dist/esm/check-one-of-74750af9.js.map +0 -1
  264. package/dist/esm/index-35921354.js +0 -36
  265. package/dist/esm/index-35921354.js.map +0 -1
  266. package/dist/esm/index-4eff5fc5.js.map +0 -1
  267. package/dist/esm/package-b9b10dd3.js +0 -5
  268. package/dist/esm/package-b9b10dd3.js.map +0 -1
  269. package/dist/esm/post-alert-e457e249.js +0 -99
  270. package/dist/esm/post-icon-b34da686.js +0 -103
  271. package/dist/esm/post-icon-b34da686.js.map +0 -1
  272. package/dist/esm/post-tab-header-f0c355d6.js +0 -31
  273. package/dist/esm/post-tab-panel-46f02247.js +0 -25
  274. package/dist/esm/post-tabs-5dd55290.js +0 -151
  275. package/dist/esm/post-tabs-5dd55290.js.map +0 -1
  276. package/dist/esm/post-tooltip-fa7b4a0a.js.map +0 -1
  277. package/dist/post-components/p-1339f8cd.js +0 -2
  278. package/dist/post-components/p-1339f8cd.js.map +0 -1
  279. package/dist/post-components/p-195b8c88.entry.js +0 -2
  280. package/dist/post-components/p-3225e008.entry.js +0 -2
  281. package/dist/post-components/p-61ffffa9.entry.js +0 -2
  282. package/dist/post-components/p-88262544.js +0 -2
  283. package/dist/post-components/p-8b6fe20d.js +0 -2
  284. package/dist/post-components/p-a7649277.js +0 -3
  285. package/dist/post-components/p-a7649277.js.map +0 -1
  286. package/dist/post-components/p-a7c78dea.entry.js +0 -2
  287. package/dist/post-components/p-b2c3ed97.entry.js +0 -2
  288. package/dist/post-components/p-ba9aba3a.entry.js +0 -2
  289. package/dist/post-components/p-bd293ff3.entry.js +0 -2
  290. package/dist/post-components/p-ca1e407c.js +0 -2
  291. package/dist/post-components/p-d407b1c3.js +0 -2
  292. package/dist/post-components/p-d407b1c3.js.map +0 -1
  293. package/dist/post-components/p-dfe29f7f.js +0 -2
  294. package/dist/post-components/p-dfe29f7f.js.map +0 -1
  295. package/dist/post-components/p-fd7015ae.js +0 -9
  296. package/dist/post-components/p-fd7015ae.js.map +0 -1
  297. package/dist/post-components/p-fffce1d7.js +0 -2
  298. /package/dist/post-components/{p-195b8c88.entry.js.map → p-169b8ef7.entry.js.map} +0 -0
  299. /package/dist/post-components/{p-3225e008.entry.js.map → p-4b94c2a1.entry.js.map} +0 -0
  300. /package/dist/post-components/{p-61ffffa9.entry.js.map → p-4cbb5212.entry.js.map} +0 -0
  301. /package/dist/post-components/{p-88262544.js.map → p-51ae6f46.entry.js.map} +0 -0
  302. /package/dist/post-components/{p-a7c78dea.entry.js.map → p-668bf58c.entry.js.map} +0 -0
  303. /package/dist/post-components/{p-b2c3ed97.entry.js.map → p-67d0a4fa.entry.js.map} +0 -0
  304. /package/dist/post-components/{p-ba9aba3a.entry.js.map → p-6b3a5063.entry.js.map} +0 -0
  305. /package/dist/post-components/{p-3604be27.js.map → p-6cdc82c6.js.map} +0 -0
  306. /package/dist/post-components/{p-bd293ff3.entry.js.map → p-9b1b6e06.entry.js.map} +0 -0
  307. /package/dist/post-components/{p-9f71d450.js.map → p-a5a23448.js.map} +0 -0
  308. /package/dist/post-components/{p-b531475e.js.map → p-b095519d.js.map} +0 -0
  309. /package/dist/post-components/{p-7b8797c6.entry.js.map → p-f695aab4.js.map} +0 -0
@@ -0,0 +1,11 @@
1
+ import { E as EMPTY_VALUES } from './constants-8d548297.js';
2
+
3
+ function checkNonEmpty(value, error) {
4
+ if (EMPTY_VALUES.some(v => v === value)) {
5
+ throw new Error(error);
6
+ }
7
+ }
8
+
9
+ export { checkNonEmpty as c };
10
+
11
+ //# sourceMappingURL=check-non-empty-58bd6b17.js.map
@@ -1 +1 @@
1
- {"file":"check-non-empty-09c39561.js","mappings":";;SAEgB,aAAa,CAAC,KAAc,EAAE,KAAa;EACzD,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC,EAAE;IACvC,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;GACxB;AACH;;;;","names":[],"sources":["src/utils/property-checkers/check-non-empty.ts"],"sourcesContent":["import { EMPTY_VALUES } from './constants';\n\nexport function checkNonEmpty(value: unknown, error: string) {\n if (EMPTY_VALUES.some(v => v === value)) {\n throw new Error(error);\n }\n}\n"],"version":3}
1
+ {"file":"check-non-empty-58bd6b17.js","mappings":";;SAEgB,aAAa,CAAC,KAAc,EAAE,KAAa;IACzD,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC,EAAE;QACvC,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;KACxB;AACH;;;;","names":[],"sources":["src/utils/property-checkers/check-non-empty.ts"],"sourcesContent":["import { EMPTY_VALUES } from './constants';\n\nexport function checkNonEmpty(value: unknown, error: string) {\n if (EMPTY_VALUES.some(v => v === value)) {\n throw new Error(error);\n }\n}\n"],"version":3}
@@ -0,0 +1,40 @@
1
+ import { E as EMPTY_VALUES } from './constants-8d548297.js';
2
+
3
+ function emptyOr(check) {
4
+ return (...args) => {
5
+ const value = args[0];
6
+ if (!EMPTY_VALUES.some(v => v === value))
7
+ check(...args);
8
+ };
9
+ }
10
+
11
+ function checkOneOf(value, possibleValues, error) {
12
+ if (!possibleValues.includes(value))
13
+ throw new Error(error);
14
+ }
15
+
16
+ function checkPattern(value, pattern, errorMessage) {
17
+ if (typeof value !== 'string' || !pattern.test(value))
18
+ throw new Error(errorMessage);
19
+ }
20
+
21
+ function checkType(value, type, error) {
22
+ const typeIsArray = type === 'array';
23
+ const valueIsArray = Array.isArray(value);
24
+ if (typeIsArray || valueIsArray) {
25
+ if (valueIsArray !== typeIsArray)
26
+ throw new Error(error);
27
+ }
28
+ else {
29
+ if (typeof value !== type)
30
+ throw new Error(error);
31
+ }
32
+ }
33
+
34
+ const checkEmptyOrOneOf = emptyOr(checkOneOf);
35
+ const checkEmptyOrPattern = emptyOr(checkPattern);
36
+ const checkEmptyOrType = emptyOr(checkType);
37
+
38
+ export { checkEmptyOrPattern as a, checkEmptyOrOneOf as b, checkType as c, checkEmptyOrType as d };
39
+
40
+ //# sourceMappingURL=index-1427953c.js.map
@@ -0,0 +1 @@
1
+ {"file":"index-1427953c.js","mappings":";;SAEgB,OAAO,CAAsB,KAA2B;IACtE,OAAO,CAAC,GAAG,IAAO;QAChB,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC;YAAE,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;KAC1D,CAAC;AACJ;;SCPgB,UAAU,CAAI,KAAQ,EAAE,cAA4B,EAAE,KAAa;IACjF,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;AAC9D;;SCFgB,YAAY,CAAC,KAAc,EAAE,OAAe,EAAE,YAAoB;IAChF,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;AACvF;;SCMgB,SAAS,CAAC,KAAc,EAAE,IAAkB,EAAE,KAAa;IACzE,MAAM,WAAW,GAAG,IAAI,KAAK,OAAO,CAAC;IACrC,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAE1C,IAAI,WAAW,IAAI,YAAY,EAAE;QAC/B,IAAI,YAAY,KAAK,WAAW;YAAE,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;KAC1D;SAAM;QACL,IAAI,OAAO,KAAK,KAAK,IAAI;YAAE,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;KACnD;AACH;;MCZa,iBAAiB,GAAG,OAAO,CAAC,UAAU,EAAE;MACxC,mBAAmB,GAAG,OAAO,CAAC,YAAY,EAAE;MAC5C,gBAAgB,GAAG,OAAO,CAAC,SAAS;;;;","names":[],"sources":["src/utils/property-checkers/empty-or.ts","src/utils/property-checkers/check-one-of.ts","src/utils/property-checkers/check-pattern.ts","src/utils/property-checkers/check-type.ts","src/utils/property-checkers/index.ts"],"sourcesContent":["import { EMPTY_VALUES } from './constants';\n\nexport function emptyOr<T extends unknown[]>(check: (...args: T) => void) {\n return (...args: T) => {\n const value = args[0];\n if (!EMPTY_VALUES.some(v => v === value)) check(...args);\n };\n}\n","export function checkOneOf<T>(value: T, possibleValues: readonly T[], error: string) {\n if (!possibleValues.includes(value)) throw new Error(error);\n}\n","export function checkPattern(value: unknown, pattern: RegExp, errorMessage: string) {\n if (typeof value !== 'string' || !pattern.test(value)) throw new Error(errorMessage);\n}\n","export type PropertyType =\n | 'boolean'\n | 'number'\n | 'string'\n | 'array'\n | 'object'\n | 'function';\n\nexport function checkType(value: unknown, type: PropertyType, error: string) {\n const typeIsArray = type === 'array';\n const valueIsArray = Array.isArray(value);\n\n if (typeIsArray || valueIsArray) {\n if (valueIsArray !== typeIsArray) throw new Error(error);\n } else {\n if (typeof value !== type) throw new Error(error);\n }\n}\n","import { emptyOr } from './empty-or';\nimport { checkOneOf } from './check-one-of';\nimport { checkPattern } from './check-pattern';\nimport { checkType } from './check-type';\n\nexport const checkEmptyOrOneOf = emptyOr(checkOneOf);\nexport const checkEmptyOrPattern = emptyOr(checkPattern);\nexport const checkEmptyOrType = emptyOr(checkType);\n\nexport * from './check-non-empty';\nexport * from './check-one-of';\nexport * from './check-pattern';\nexport * from './check-type';\n"],"version":3}
@@ -27,6 +27,13 @@ const uniqueTime = (key, measureText) => {
27
27
  }
28
28
  };
29
29
  const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
30
+ /**
31
+ * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
32
+ *
33
+ * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
34
+ * support as of Stencil v4.
35
+ */
36
+ const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
30
37
  /**
31
38
  * Default style mode id
32
39
  */
@@ -35,11 +42,6 @@ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
35
42
  * Don't add values to these!!
36
43
  */
37
44
  const EMPTY_OBJ = {};
38
- /**
39
- * Namespaces
40
- */
41
- const SVG_NS = 'http://www.w3.org/2000/svg';
42
- const HTML_NS = 'http://www.w3.org/1999/xhtml';
43
45
  const isDef = (v) => v != null;
44
46
  /**
45
47
  * Check whether a value is a 'complex type', defined here as an object or a
@@ -336,6 +338,10 @@ const addStyle = (styleContainerNode, cmpMeta, mode) => {
336
338
  }
337
339
  styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
338
340
  }
341
+ // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
342
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
343
+ styleElm.innerHTML += SLOT_FB_CSS;
344
+ }
339
345
  if (appliedStyles) {
340
346
  appliedStyles.add(scopeId);
341
347
  }
@@ -466,11 +472,19 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
466
472
  // except for the first character, we keep the event name case
467
473
  memberName = ln[2] + memberName.slice(3);
468
474
  }
469
- if (oldValue) {
470
- plt.rel(elm, memberName, oldValue, false);
471
- }
472
- if (newValue) {
473
- plt.ael(elm, memberName, newValue, false);
475
+ if (oldValue || newValue) {
476
+ // Need to account for "capture" events.
477
+ // If the event name ends with "Capture", we'll update the name to remove
478
+ // the "Capture" suffix and make sure the event listener is setup to handle the capture event.
479
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
480
+ // Make sure we only replace the last instance of "Capture"
481
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, '');
482
+ if (oldValue) {
483
+ plt.rel(elm, memberName, oldValue, capture);
484
+ }
485
+ if (newValue) {
486
+ plt.ael(elm, memberName, newValue, capture);
487
+ }
474
488
  }
475
489
  }
476
490
  else {
@@ -492,7 +506,11 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
492
506
  elm[memberName] = newValue;
493
507
  }
494
508
  }
495
- catch (e) { }
509
+ catch (e) {
510
+ /**
511
+ * in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
512
+ */
513
+ }
496
514
  }
497
515
  if (newValue == null || newValue === false) {
498
516
  if (newValue !== false || elm.getAttribute(memberName) === '') {
@@ -511,7 +529,14 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
511
529
  }
512
530
  };
513
531
  const parseClassListRegex = /\s/;
532
+ /**
533
+ * Parsed a string of classnames into an array
534
+ * @param value className string, e.g. "foo bar baz"
535
+ * @returns list of classes, e.g. ["foo", "bar", "baz"]
536
+ */
514
537
  const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
538
+ const CAPTURE_EVENT_SUFFIX = 'Capture';
539
+ const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
515
540
  const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
516
541
  // if the element passed in is a shadow root, which is a document fragment
517
542
  // then we want to be adding attrs/props to the shadow root's "host" element
@@ -555,15 +580,8 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
555
580
  elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
556
581
  }
557
582
  else {
558
- if (!isSvgMode) {
559
- isSvgMode = newVNode.$tag$ === 'svg';
560
- }
561
583
  // create element
562
- elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$tag$)
563
- );
564
- if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
565
- isSvgMode = false;
566
- }
584
+ elm = newVNode.$elm$ = (doc.createElement(newVNode.$tag$));
567
585
  // add css classes, attrs, props, listeners, etc.
568
586
  {
569
587
  updateElement(null, newVNode, isSvgMode);
@@ -584,17 +602,10 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
584
602
  }
585
603
  }
586
604
  }
587
- {
588
- if (newVNode.$tag$ === 'svg') {
589
- // Only reset the SVG context when we're exiting <svg> element
590
- isSvgMode = false;
591
- }
592
- else if (elm.tagName === 'foreignObject') {
593
- // Reenter SVG context when we're exiting <foreignObject> element
594
- isSvgMode = true;
595
- }
596
- }
597
605
  }
606
+ // This needs to always happen so we can hide nodes that are projected
607
+ // to another component but don't end up in a slot
608
+ elm['s-hn'] = hostTagName;
598
609
  return elm;
599
610
  };
600
611
  /**
@@ -719,8 +730,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
719
730
  * @param oldCh the old children of the parent node
720
731
  * @param newVNode the new VNode which will replace the parent
721
732
  * @param newCh the new children of the parent node
733
+ * @param isInitialRender whether or not this is the first render of the vdom
722
734
  */
723
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
735
+ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
724
736
  let oldStartIdx = 0;
725
737
  let newStartIdx = 0;
726
738
  let idxInOld = 0;
@@ -747,25 +759,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
747
759
  else if (newEndVnode == null) {
748
760
  newEndVnode = newCh[--newEndIdx];
749
761
  }
750
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
762
+ else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
751
763
  // if the start nodes are the same then we should patch the new VNode
752
764
  // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
753
765
  // indices to reflect that. We don't need to move any DOM Nodes around
754
766
  // since things are matched up in order.
755
- patch(oldStartVnode, newStartVnode);
767
+ patch(oldStartVnode, newStartVnode, isInitialRender);
756
768
  oldStartVnode = oldCh[++oldStartIdx];
757
769
  newStartVnode = newCh[++newStartIdx];
758
770
  }
759
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
771
+ else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
760
772
  // likewise, if the end nodes are the same we patch new onto old and
761
773
  // decrement our end indices, and also likewise in this case we don't
762
774
  // need to move any DOM Nodes.
763
- patch(oldEndVnode, newEndVnode);
775
+ patch(oldEndVnode, newEndVnode, isInitialRender);
764
776
  oldEndVnode = oldCh[--oldEndIdx];
765
777
  newEndVnode = newCh[--newEndIdx];
766
778
  }
767
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
768
- patch(oldStartVnode, newEndVnode);
779
+ else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
780
+ patch(oldStartVnode, newEndVnode, isInitialRender);
769
781
  // We need to move the element for `oldStartVnode` into a position which
770
782
  // will be appropriate for `newEndVnode`. For this we can use
771
783
  // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
@@ -787,8 +799,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
787
799
  oldStartVnode = oldCh[++oldStartIdx];
788
800
  newEndVnode = newCh[--newEndIdx];
789
801
  }
790
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
791
- patch(oldEndVnode, newStartVnode);
802
+ else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
803
+ patch(oldEndVnode, newStartVnode, isInitialRender);
792
804
  // We've already checked above if `oldStartVnode` and `newStartVnode` are
793
805
  // the same node, so since we're here we know that they are not. Thus we
794
806
  // can move the element for `oldEndVnode` _before_ the element for
@@ -825,7 +837,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
825
837
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
826
838
  }
827
839
  else {
828
- patch(elmToMove, newStartVnode);
840
+ patch(elmToMove, newStartVnode, isInitialRender);
829
841
  // invalidate the matching old node so that we won't try to update it
830
842
  // again later on
831
843
  oldCh[idxInOld] = undefined;
@@ -876,16 +888,22 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
876
888
  *
877
889
  * @param leftVNode the first VNode to check
878
890
  * @param rightVNode the second VNode to check
891
+ * @param isInitialRender whether or not this is the first render of the vdom
879
892
  * @returns whether they're equal or not
880
893
  */
881
- const isSameVnode = (leftVNode, rightVNode) => {
894
+ const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
882
895
  // compare if two vnode to see if they're "technically" the same
883
896
  // need to have the same element tag, and same key to be the same
884
897
  if (leftVNode.$tag$ === rightVNode.$tag$) {
885
- // this will be set if components in the build have `key` attrs set on them
886
- {
898
+ // this will be set if JSX tags in the build have `key` attrs set on them
899
+ // we only want to check this if we're not on the first render since on
900
+ // first render `leftVNode.$key$` will always be `null`, so we can be led
901
+ // astray and, for instance, accidentally delete a DOM node that we want to
902
+ // keep around.
903
+ if (!isInitialRender) {
887
904
  return leftVNode.$key$ === rightVNode.$key$;
888
905
  }
906
+ return true;
889
907
  }
890
908
  return false;
891
909
  };
@@ -896,19 +914,15 @@ const isSameVnode = (leftVNode, rightVNode) => {
896
914
  *
897
915
  * @param oldVNode an old VNode whose DOM element and children we want to update
898
916
  * @param newVNode a new VNode representing an updated version of the old one
917
+ * @param isInitialRender whether or not this is the first render of the vdom
899
918
  */
900
- const patch = (oldVNode, newVNode) => {
919
+ const patch = (oldVNode, newVNode, isInitialRender = false) => {
901
920
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
902
921
  const oldChildren = oldVNode.$children$;
903
922
  const newChildren = newVNode.$children$;
904
923
  const tag = newVNode.$tag$;
905
924
  const text = newVNode.$text$;
906
925
  if (text === null) {
907
- {
908
- // test if we're rendering an svg element, or still rendering nodes inside of one
909
- // only add this to the when the compiler sees we're using an svg somewhere
910
- isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
911
- }
912
926
  {
913
927
  if (tag === 'slot')
914
928
  ;
@@ -922,7 +936,7 @@ const patch = (oldVNode, newVNode) => {
922
936
  if (oldChildren !== null && newChildren !== null) {
923
937
  // looks like there's child vnodes for both the old and new vnodes
924
938
  // so we need to call `updateChildren` to reconcile them
925
- updateChildren(elm, oldChildren, newVNode, newChildren);
939
+ updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
926
940
  }
927
941
  else if (newChildren !== null) {
928
942
  // no old child vnodes, but there are new child vnodes to add
@@ -937,9 +951,6 @@ const patch = (oldVNode, newVNode) => {
937
951
  // no new child vnodes, but there are old child vnodes to remove
938
952
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
939
953
  }
940
- if (isSvgMode && tag === 'svg') {
941
- isSvgMode = false;
942
- }
943
954
  }
944
955
  else if (oldVNode.$text$ !== text) {
945
956
  // update the text content for the text only vnode
@@ -1012,7 +1023,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1012
1023
  scopeId = hostElm['s-sc'];
1013
1024
  }
1014
1025
  // synchronous patch
1015
- patch(oldVNode, rootVnode);
1026
+ patch(oldVNode, rootVnode, isInitialLoad);
1016
1027
  };
1017
1028
  const attachToAncestor = (hostRef, ancestorComponent) => {
1018
1029
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
@@ -1329,13 +1340,13 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1329
1340
  */
1330
1341
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1331
1342
  var _a;
1343
+ const prototype = Cstr.prototype;
1332
1344
  if (cmpMeta.$members$) {
1333
1345
  if (Cstr.watchers) {
1334
1346
  cmpMeta.$watchers$ = Cstr.watchers;
1335
1347
  }
1336
1348
  // It's better to have a const than two Object.entries()
1337
1349
  const members = Object.entries(cmpMeta.$members$);
1338
- const prototype = Cstr.prototype;
1339
1350
  members.map(([memberName, [memberFlags]]) => {
1340
1351
  if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1341
1352
  ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
@@ -1358,8 +1369,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1358
1369
  // proxyComponent - method
1359
1370
  Object.defineProperty(prototype, memberName, {
1360
1371
  value(...args) {
1372
+ var _a;
1361
1373
  const ref = getHostRef(this);
1362
- return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1374
+ return (_a = ref === null || ref === void 0 ? void 0 : ref.$onInstancePromise$) === null || _a === void 0 ? void 0 : _a.then(() => { var _a; return (_a = ref.$lazyInstance$) === null || _a === void 0 ? void 0 : _a[memberName](...args); });
1363
1375
  },
1364
1376
  });
1365
1377
  }
@@ -1368,6 +1380,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1368
1380
  const attrNameToPropName = new Map();
1369
1381
  prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1370
1382
  plt.jmp(() => {
1383
+ var _a;
1371
1384
  const propName = attrNameToPropName.get(attrName);
1372
1385
  // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1373
1386
  // in the case where an attribute was set inline.
@@ -1423,11 +1436,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1423
1436
  // 1. The instance is ready
1424
1437
  // 2. The watchers are ready
1425
1438
  // 3. The value has changed
1426
- if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1439
+ if (flags &&
1440
+ !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1427
1441
  flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1428
1442
  newValue !== oldValue) {
1429
1443
  const instance = hostRef.$lazyInstance$ ;
1430
- const entry = cmpMeta.$watchers$[attrName];
1444
+ const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1431
1445
  entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1432
1446
  if (instance[callbackName] != null) {
1433
1447
  instance[callbackName].call(instance, newValue, oldValue, attrName);
@@ -1637,12 +1651,13 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1637
1651
  const customElements = win.customElements;
1638
1652
  const head = doc.head;
1639
1653
  const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1640
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1654
+ const dataStyles = /*@__PURE__*/ doc.createElement('style');
1641
1655
  const deferredConnectedCallbacks = [];
1642
1656
  let appLoadFallback;
1643
1657
  let isBootstrapping = true;
1644
1658
  Object.assign(plt, options);
1645
1659
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1660
+ let hasSlotRelocation = false;
1646
1661
  lazyBundles.map((lazyBundle) => {
1647
1662
  lazyBundle[1].map((compactMeta) => {
1648
1663
  var _a;
@@ -1652,6 +1667,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1652
1667
  $members$: compactMeta[2],
1653
1668
  $listeners$: compactMeta[3],
1654
1669
  };
1670
+ // Check if we are using slots outside the shadow DOM in this component.
1671
+ // We'll use this information later to add styles for `slot-fb` elements
1672
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
1673
+ hasSlotRelocation = true;
1674
+ }
1655
1675
  {
1656
1676
  cmpMeta.$members$ = compactMeta[2];
1657
1677
  }
@@ -1708,15 +1728,25 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1708
1728
  }
1709
1729
  });
1710
1730
  });
1731
+ // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
1732
+ if (hasSlotRelocation) {
1733
+ dataStyles.innerHTML += SLOT_FB_CSS;
1734
+ }
1735
+ // Add hydration styles
1711
1736
  {
1712
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1713
- visibilityStyle.setAttribute('data-styles', '');
1737
+ dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
1738
+ }
1739
+ // If we have styles, add them to the DOM
1740
+ if (dataStyles.innerHTML.length) {
1741
+ dataStyles.setAttribute('data-styles', '');
1714
1742
  // Apply CSP nonce to the style tag if it exists
1715
1743
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1716
1744
  if (nonce != null) {
1717
- visibilityStyle.setAttribute('nonce', nonce);
1745
+ dataStyles.setAttribute('nonce', nonce);
1718
1746
  }
1719
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1747
+ // Insert the styles into the document head
1748
+ // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
1749
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1720
1750
  }
1721
1751
  // Process deferred connectedCallbacks now all components have been registered
1722
1752
  isBootstrapping = false;
@@ -1826,7 +1856,56 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1826
1856
  if (module) {
1827
1857
  return module[exportName];
1828
1858
  }
1829
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1859
+
1860
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1861
+ const processMod = importedModule => {
1862
+ cmpModules.set(bundleId, importedModule);
1863
+ return importedModule[exportName];
1864
+ }
1865
+ switch(bundleId) {
1866
+
1867
+ case 'post-accordion':
1868
+ return import(
1869
+ /* webpackMode: "lazy" */
1870
+ './post-accordion.entry.js').then(processMod, consoleError);
1871
+ case 'post-alert':
1872
+ return import(
1873
+ /* webpackMode: "lazy" */
1874
+ './post-alert.entry.js').then(processMod, consoleError);
1875
+ case 'post-collapsible':
1876
+ return import(
1877
+ /* webpackMode: "lazy" */
1878
+ './post-collapsible.entry.js').then(processMod, consoleError);
1879
+ case 'post-popover':
1880
+ return import(
1881
+ /* webpackMode: "lazy" */
1882
+ './post-popover.entry.js').then(processMod, consoleError);
1883
+ case 'post-tab-header':
1884
+ return import(
1885
+ /* webpackMode: "lazy" */
1886
+ './post-tab-header.entry.js').then(processMod, consoleError);
1887
+ case 'post-tab-panel':
1888
+ return import(
1889
+ /* webpackMode: "lazy" */
1890
+ './post-tab-panel.entry.js').then(processMod, consoleError);
1891
+ case 'post-tabs':
1892
+ return import(
1893
+ /* webpackMode: "lazy" */
1894
+ './post-tabs.entry.js').then(processMod, consoleError);
1895
+ case 'post-tooltip':
1896
+ return import(
1897
+ /* webpackMode: "lazy" */
1898
+ './post-tooltip.entry.js').then(processMod, consoleError);
1899
+ case 'post-icon':
1900
+ return import(
1901
+ /* webpackMode: "lazy" */
1902
+ './post-icon.entry.js').then(processMod, consoleError);
1903
+ case 'post-popovercontainer':
1904
+ return import(
1905
+ /* webpackMode: "lazy" */
1906
+ './post-popovercontainer.entry.js').then(processMod, consoleError);
1907
+ }
1908
+ }
1830
1909
  return import(
1831
1910
  /* @vite-ignore */
1832
1911
  /* webpackInclude: /\.entry\.js$/ */
@@ -1901,9 +1980,9 @@ const flush = () => {
1901
1980
  }
1902
1981
  }
1903
1982
  };
1904
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1983
+ const nextTick = (cb) => promiseResolve().then(cb);
1905
1984
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1906
1985
 
1907
1986
  export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1908
1987
 
1909
- //# sourceMappingURL=index-4eff5fc5.js.map
1988
+ //# sourceMappingURL=index-35998e08.js.map