@rarui/components 0.0.0-rc.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 (334) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +13 -0
  3. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  4. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  5. package/dist/cjs/index-b5398c4a.js +1428 -0
  6. package/dist/cjs/index-b5398c4a.js.map +1 -0
  7. package/dist/cjs/index.cjs.js +4 -0
  8. package/dist/cjs/index.cjs.js.map +1 -0
  9. package/dist/cjs/loader.cjs.js +17 -0
  10. package/dist/cjs/loader.cjs.js.map +1 -0
  11. package/dist/cjs/rarui-box.cjs.entry.js +28 -0
  12. package/dist/cjs/rarui-box.cjs.entry.js.map +1 -0
  13. package/dist/cjs/rarui-button.cjs.entry.js +35 -0
  14. package/dist/cjs/rarui-button.cjs.entry.js.map +1 -0
  15. package/dist/cjs/rarui-components.cjs.js +27 -0
  16. package/dist/cjs/rarui-components.cjs.js.map +1 -0
  17. package/dist/cjs/rarui-tabs-item.cjs.entry.js +20 -0
  18. package/dist/cjs/rarui-tabs-item.cjs.entry.js.map +1 -0
  19. package/dist/cjs/rarui-tabs.cjs.entry.js +39 -0
  20. package/dist/cjs/rarui-tabs.cjs.entry.js.map +1 -0
  21. package/dist/cjs/rarui-text.cjs.entry.js +36 -0
  22. package/dist/cjs/rarui-text.cjs.entry.js.map +1 -0
  23. package/dist/cjs/rarui-title.cjs.entry.js +36 -0
  24. package/dist/cjs/rarui-title.cjs.entry.js.map +1 -0
  25. package/dist/cjs/tslib.es6-512c1da2.js +32 -0
  26. package/dist/cjs/tslib.es6-512c1da2.js.map +1 -0
  27. package/dist/collection/collection-manifest.json +17 -0
  28. package/dist/collection/exhibition/Text/dist/cjs/app-globals-3a1e7e63.js +7 -0
  29. package/dist/collection/exhibition/Text/dist/cjs/index-d70084e6.js +1319 -0
  30. package/dist/collection/exhibition/Text/dist/cjs/index.cjs.js +4 -0
  31. package/dist/collection/exhibition/Text/dist/cjs/loader.cjs.js +17 -0
  32. package/dist/collection/exhibition/Text/dist/cjs/rarui-button.cjs.entry.js +35 -0
  33. package/dist/collection/exhibition/Text/dist/cjs/rarui-button.cjs.js +27 -0
  34. package/dist/collection/exhibition/Text/dist/collection/Button.js +233 -0
  35. package/dist/collection/exhibition/Text/dist/collection/index.js +2 -0
  36. package/dist/collection/exhibition/Text/dist/esm/app-globals-0f993ce5.js +5 -0
  37. package/dist/collection/exhibition/Text/dist/esm/index-51e345c1.js +1291 -0
  38. package/dist/collection/exhibition/Text/dist/esm/index.js +3 -0
  39. package/dist/collection/exhibition/Text/dist/esm/loader.js +13 -0
  40. package/dist/collection/exhibition/Text/dist/esm/rarui-button.entry.js +31 -0
  41. package/dist/collection/exhibition/Text/dist/esm/rarui-button.js +22 -0
  42. package/dist/collection/exhibition/Text/dist/index.cjs.js +1 -0
  43. package/dist/collection/exhibition/Text/dist/index.js +1 -0
  44. package/dist/collection/exhibition/Text/dist/loader/cdn.js +1 -0
  45. package/dist/collection/exhibition/Text/dist/loader/index.cjs.js +1 -0
  46. package/dist/collection/exhibition/Text/dist/loader/index.es2017.js +1 -0
  47. package/dist/collection/exhibition/Text/dist/loader/index.js +2 -0
  48. package/dist/collection/exhibition/Text/dist/rarui-button/index.esm.js +2 -0
  49. package/dist/collection/exhibition/Text/dist/rarui-button/p-54ec5e00.js +3 -0
  50. package/dist/collection/exhibition/Text/dist/rarui-button/p-e1255160.js +2 -0
  51. package/dist/collection/exhibition/Text/dist/rarui-button/p-e35c2483.entry.js +2 -0
  52. package/dist/collection/exhibition/Text/dist/rarui-button/rarui-button.esm.js +2 -0
  53. package/dist/collection/exhibition/Text/src/Text.js +67 -0
  54. package/dist/collection/exhibition/Text/src/Text.js.map +1 -0
  55. package/dist/collection/exhibition/Text/src/index.js +2 -0
  56. package/dist/collection/exhibition/Text/src/index.js.map +1 -0
  57. package/dist/collection/exhibition/Text/src/text.stories.js +66 -0
  58. package/dist/collection/exhibition/Text/src/text.stories.js.map +1 -0
  59. package/dist/collection/exhibition/Text/stencil.config.js +5 -0
  60. package/dist/collection/exhibition/Text/stencil.config.js.map +1 -0
  61. package/dist/collection/exhibition/Title/dist/cjs/app-globals-3a1e7e63.js +7 -0
  62. package/dist/collection/exhibition/Title/dist/cjs/index-d70084e6.js +1319 -0
  63. package/dist/collection/exhibition/Title/dist/cjs/index.cjs.js +4 -0
  64. package/dist/collection/exhibition/Title/dist/cjs/loader.cjs.js +17 -0
  65. package/dist/collection/exhibition/Title/dist/cjs/rarui-button.cjs.entry.js +35 -0
  66. package/dist/collection/exhibition/Title/dist/cjs/rarui-button.cjs.js +27 -0
  67. package/dist/collection/exhibition/Title/dist/collection/Button.js +233 -0
  68. package/dist/collection/exhibition/Title/dist/collection/index.js +2 -0
  69. package/dist/collection/exhibition/Title/dist/esm/app-globals-0f993ce5.js +5 -0
  70. package/dist/collection/exhibition/Title/dist/esm/index-51e345c1.js +1291 -0
  71. package/dist/collection/exhibition/Title/dist/esm/index.js +3 -0
  72. package/dist/collection/exhibition/Title/dist/esm/loader.js +13 -0
  73. package/dist/collection/exhibition/Title/dist/esm/rarui-button.entry.js +31 -0
  74. package/dist/collection/exhibition/Title/dist/esm/rarui-button.js +22 -0
  75. package/dist/collection/exhibition/Title/dist/index.cjs.js +1 -0
  76. package/dist/collection/exhibition/Title/dist/index.js +1 -0
  77. package/dist/collection/exhibition/Title/dist/loader/cdn.js +1 -0
  78. package/dist/collection/exhibition/Title/dist/loader/index.cjs.js +1 -0
  79. package/dist/collection/exhibition/Title/dist/loader/index.es2017.js +1 -0
  80. package/dist/collection/exhibition/Title/dist/loader/index.js +2 -0
  81. package/dist/collection/exhibition/Title/dist/rarui-button/index.esm.js +2 -0
  82. package/dist/collection/exhibition/Title/dist/rarui-button/p-54ec5e00.js +3 -0
  83. package/dist/collection/exhibition/Title/dist/rarui-button/p-e1255160.js +2 -0
  84. package/dist/collection/exhibition/Title/dist/rarui-button/p-e35c2483.entry.js +2 -0
  85. package/dist/collection/exhibition/Title/dist/rarui-button/rarui-button.esm.js +2 -0
  86. package/dist/collection/exhibition/Title/src/Title.js +67 -0
  87. package/dist/collection/exhibition/Title/src/Title.js.map +1 -0
  88. package/dist/collection/exhibition/Title/src/index.js +2 -0
  89. package/dist/collection/exhibition/Title/src/index.js.map +1 -0
  90. package/dist/collection/exhibition/Title/src/title.stories.js +62 -0
  91. package/dist/collection/exhibition/Title/src/title.stories.js.map +1 -0
  92. package/dist/collection/exhibition/Title/stencil.config.js +5 -0
  93. package/dist/collection/exhibition/Title/stencil.config.js.map +1 -0
  94. package/dist/collection/index.js +2 -0
  95. package/dist/collection/index.js.map +1 -0
  96. package/dist/collection/input/Button/dist/cjs/app-globals-3a1e7e63.js +7 -0
  97. package/dist/collection/input/Button/dist/cjs/index-2f27cc5f.js +1318 -0
  98. package/dist/collection/input/Button/dist/cjs/index.cjs.js +4 -0
  99. package/dist/collection/input/Button/dist/cjs/loader.cjs.js +17 -0
  100. package/dist/collection/input/Button/dist/cjs/rarui-button.cjs.entry.js +35 -0
  101. package/dist/collection/input/Button/dist/cjs/rarui-button.cjs.js +27 -0
  102. package/dist/collection/input/Button/dist/collection/Button.js +233 -0
  103. package/dist/collection/input/Button/dist/collection/index.js +2 -0
  104. package/dist/collection/input/Button/dist/esm/app-globals-0f993ce5.js +5 -0
  105. package/dist/collection/input/Button/dist/esm/index-7434516d.js +1291 -0
  106. package/dist/collection/input/Button/dist/esm/index.js +3 -0
  107. package/dist/collection/input/Button/dist/esm/loader.js +13 -0
  108. package/dist/collection/input/Button/dist/esm/rarui-button.entry.js +31 -0
  109. package/dist/collection/input/Button/dist/esm/rarui-button.js +22 -0
  110. package/dist/collection/input/Button/dist/index.cjs.js +1 -0
  111. package/dist/collection/input/Button/dist/index.js +1 -0
  112. package/dist/collection/input/Button/dist/loader/cdn.js +1 -0
  113. package/dist/collection/input/Button/dist/loader/index.cjs.js +1 -0
  114. package/dist/collection/input/Button/dist/loader/index.es2017.js +1 -0
  115. package/dist/collection/input/Button/dist/loader/index.js +2 -0
  116. package/dist/collection/input/Button/dist/rarui-button/index.esm.js +2 -0
  117. package/dist/collection/input/Button/dist/rarui-button/p-c9d5c486.entry.js +2 -0
  118. package/dist/collection/input/Button/dist/rarui-button/p-de52cca4.js +3 -0
  119. package/dist/collection/input/Button/dist/rarui-button/p-e1255160.js +2 -0
  120. package/dist/collection/input/Button/dist/rarui-button/rarui-button.esm.js +2 -0
  121. package/dist/collection/input/Button/src/Button.js +233 -0
  122. package/dist/collection/input/Button/src/Button.js.map +1 -0
  123. package/dist/collection/input/Button/src/button.stories.js +70 -0
  124. package/dist/collection/input/Button/src/button.stories.js.map +1 -0
  125. package/dist/collection/input/Button/src/index.js +2 -0
  126. package/dist/collection/input/Button/src/index.js.map +1 -0
  127. package/dist/collection/input/Button/stencil.config.js +5 -0
  128. package/dist/collection/input/Button/stencil.config.js.map +1 -0
  129. package/dist/collection/layout/Box/dist/cjs/app-globals-3a1e7e63.js +7 -0
  130. package/dist/collection/layout/Box/dist/cjs/index-5fda0522.js +1332 -0
  131. package/dist/collection/layout/Box/dist/cjs/index.cjs.js +4 -0
  132. package/dist/collection/layout/Box/dist/cjs/loader.cjs.js +17 -0
  133. package/dist/collection/layout/Box/dist/cjs/rarui-box.cjs.entry.js +54 -0
  134. package/dist/collection/layout/Box/dist/cjs/rarui-box.cjs.js +27 -0
  135. package/dist/collection/layout/Box/dist/collection/Box.js +42 -0
  136. package/dist/collection/layout/Box/dist/collection/index.js +2 -0
  137. package/dist/collection/layout/Box/dist/esm/app-globals-0f993ce5.js +5 -0
  138. package/dist/collection/layout/Box/dist/esm/index-131cdfc1.js +1305 -0
  139. package/dist/collection/layout/Box/dist/esm/index.js +3 -0
  140. package/dist/collection/layout/Box/dist/esm/loader.js +13 -0
  141. package/dist/collection/layout/Box/dist/esm/rarui-box.entry.js +50 -0
  142. package/dist/collection/layout/Box/dist/esm/rarui-box.js +22 -0
  143. package/dist/collection/layout/Box/dist/index.cjs.js +1 -0
  144. package/dist/collection/layout/Box/dist/index.js +1 -0
  145. package/dist/collection/layout/Box/dist/loader/cdn.js +1 -0
  146. package/dist/collection/layout/Box/dist/loader/index.cjs.js +1 -0
  147. package/dist/collection/layout/Box/dist/loader/index.es2017.js +1 -0
  148. package/dist/collection/layout/Box/dist/loader/index.js +2 -0
  149. package/dist/collection/layout/Box/dist/rarui-box/index.esm.js +2 -0
  150. package/dist/collection/layout/Box/dist/rarui-box/p-6a233dc8.js +3 -0
  151. package/dist/collection/layout/Box/dist/rarui-box/p-8c90ee66.entry.js +2 -0
  152. package/dist/collection/layout/Box/dist/rarui-box/p-e1255160.js +2 -0
  153. package/dist/collection/layout/Box/dist/rarui-box/rarui-box.esm.js +2 -0
  154. package/dist/collection/layout/Box/src/Box.js +42 -0
  155. package/dist/collection/layout/Box/src/Box.js.map +1 -0
  156. package/dist/collection/layout/Box/src/box.stories.js +54 -0
  157. package/dist/collection/layout/Box/src/box.stories.js.map +1 -0
  158. package/dist/collection/layout/Box/src/index.js +2 -0
  159. package/dist/collection/layout/Box/src/index.js.map +1 -0
  160. package/dist/collection/layout/Box/stencil.config.js +5 -0
  161. package/dist/collection/layout/Box/stencil.config.js.map +1 -0
  162. package/dist/collection/navigation/Tabs/Item/dist/cjs/app-globals-3a1e7e63.js +7 -0
  163. package/dist/collection/navigation/Tabs/Item/dist/cjs/index-962dfb5a.js +1264 -0
  164. package/dist/collection/navigation/Tabs/Item/dist/cjs/index.cjs.js +4 -0
  165. package/dist/collection/navigation/Tabs/Item/dist/cjs/loader.cjs.js +17 -0
  166. package/dist/collection/navigation/Tabs/Item/dist/cjs/rarui-tabs-item.cjs.entry.js +20 -0
  167. package/dist/collection/navigation/Tabs/Item/dist/cjs/rarui-tabs-item.cjs.js +27 -0
  168. package/dist/collection/navigation/Tabs/Item/dist/collection/Item.js +34 -0
  169. package/dist/collection/navigation/Tabs/Item/dist/collection/index.js +2 -0
  170. package/dist/collection/navigation/Tabs/Item/dist/esm/app-globals-0f993ce5.js +5 -0
  171. package/dist/collection/navigation/Tabs/Item/dist/esm/index-be92efca.js +1237 -0
  172. package/dist/collection/navigation/Tabs/Item/dist/esm/index.js +3 -0
  173. package/dist/collection/navigation/Tabs/Item/dist/esm/loader.js +13 -0
  174. package/dist/collection/navigation/Tabs/Item/dist/esm/rarui-tabs-item.entry.js +16 -0
  175. package/dist/collection/navigation/Tabs/Item/dist/esm/rarui-tabs-item.js +22 -0
  176. package/dist/collection/navigation/Tabs/Item/dist/index.cjs.js +1 -0
  177. package/dist/collection/navigation/Tabs/Item/dist/index.js +1 -0
  178. package/dist/collection/navigation/Tabs/Item/dist/loader/cdn.js +1 -0
  179. package/dist/collection/navigation/Tabs/Item/dist/loader/index.cjs.js +1 -0
  180. package/dist/collection/navigation/Tabs/Item/dist/loader/index.es2017.js +1 -0
  181. package/dist/collection/navigation/Tabs/Item/dist/loader/index.js +2 -0
  182. package/dist/collection/navigation/Tabs/Item/dist/rarui-tabs-item/index.esm.js +2 -0
  183. package/dist/collection/navigation/Tabs/Item/dist/rarui-tabs-item/p-3d591146.entry.js +2 -0
  184. package/dist/collection/navigation/Tabs/Item/dist/rarui-tabs-item/p-d0520efc.js +3 -0
  185. package/dist/collection/navigation/Tabs/Item/dist/rarui-tabs-item/p-e1255160.js +2 -0
  186. package/dist/collection/navigation/Tabs/Item/dist/rarui-tabs-item/rarui-tabs-item.esm.js +2 -0
  187. package/dist/collection/navigation/Tabs/Item/src/Item.js +34 -0
  188. package/dist/collection/navigation/Tabs/Item/src/Item.js.map +1 -0
  189. package/dist/collection/navigation/Tabs/Item/src/index.js +2 -0
  190. package/dist/collection/navigation/Tabs/Item/src/index.js.map +1 -0
  191. package/dist/collection/navigation/Tabs/Item/src/item.stories.js +17 -0
  192. package/dist/collection/navigation/Tabs/Item/src/item.stories.js.map +1 -0
  193. package/dist/collection/navigation/Tabs/Item/stencil.config.js +5 -0
  194. package/dist/collection/navigation/Tabs/Item/stencil.config.js.map +1 -0
  195. package/dist/collection/navigation/Tabs/Root/dist/cjs/app-globals-3a1e7e63.js +7 -0
  196. package/dist/collection/navigation/Tabs/Root/dist/cjs/index-c1cf5e11.js +1074 -0
  197. package/dist/collection/navigation/Tabs/Root/dist/cjs/index.cjs.js +4 -0
  198. package/dist/collection/navigation/Tabs/Root/dist/cjs/loader.cjs.js +17 -0
  199. package/dist/collection/navigation/Tabs/Root/dist/cjs/rarui-tabs.cjs.entry.js +39 -0
  200. package/dist/collection/navigation/Tabs/Root/dist/cjs/rarui-tabs.cjs.js +27 -0
  201. package/dist/collection/navigation/Tabs/Root/dist/collection/Root.js +146 -0
  202. package/dist/collection/navigation/Tabs/Root/dist/collection/index.js +2 -0
  203. package/dist/collection/navigation/Tabs/Root/dist/esm/app-globals-0f993ce5.js +5 -0
  204. package/dist/collection/navigation/Tabs/Root/dist/esm/index-dbe371ba.js +1045 -0
  205. package/dist/collection/navigation/Tabs/Root/dist/esm/index.js +3 -0
  206. package/dist/collection/navigation/Tabs/Root/dist/esm/loader.js +13 -0
  207. package/dist/collection/navigation/Tabs/Root/dist/esm/rarui-tabs.entry.js +35 -0
  208. package/dist/collection/navigation/Tabs/Root/dist/esm/rarui-tabs.js +22 -0
  209. package/dist/collection/navigation/Tabs/Root/dist/index.cjs.js +1 -0
  210. package/dist/collection/navigation/Tabs/Root/dist/index.js +1 -0
  211. package/dist/collection/navigation/Tabs/Root/dist/loader/cdn.js +1 -0
  212. package/dist/collection/navigation/Tabs/Root/dist/loader/index.cjs.js +1 -0
  213. package/dist/collection/navigation/Tabs/Root/dist/loader/index.es2017.js +1 -0
  214. package/dist/collection/navigation/Tabs/Root/dist/loader/index.js +2 -0
  215. package/dist/collection/navigation/Tabs/Root/dist/rarui-tabs/index.esm.js +2 -0
  216. package/dist/collection/navigation/Tabs/Root/dist/rarui-tabs/p-325ce1b1.js +3 -0
  217. package/dist/collection/navigation/Tabs/Root/dist/rarui-tabs/p-43fc3e90.entry.js +2 -0
  218. package/dist/collection/navigation/Tabs/Root/dist/rarui-tabs/p-e1255160.js +2 -0
  219. package/dist/collection/navigation/Tabs/Root/dist/rarui-tabs/rarui-tabs.esm.js +2 -0
  220. package/dist/collection/navigation/Tabs/Root/src/Root.js +146 -0
  221. package/dist/collection/navigation/Tabs/Root/src/Root.js.map +1 -0
  222. package/dist/collection/navigation/Tabs/Root/src/index.js +2 -0
  223. package/dist/collection/navigation/Tabs/Root/src/index.js.map +1 -0
  224. package/dist/collection/navigation/Tabs/Root/src/root.stories.js +59 -0
  225. package/dist/collection/navigation/Tabs/Root/src/root.stories.js.map +1 -0
  226. package/dist/collection/navigation/Tabs/Root/stencil.config.js +5 -0
  227. package/dist/collection/navigation/Tabs/Root/stencil.config.js.map +1 -0
  228. package/dist/esm/app-globals-0f993ce5.js +5 -0
  229. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  230. package/dist/esm/index-81e77ca5.js +1399 -0
  231. package/dist/esm/index-81e77ca5.js.map +1 -0
  232. package/dist/esm/index.js +3 -0
  233. package/dist/esm/index.js.map +1 -0
  234. package/dist/esm/loader.js +13 -0
  235. package/dist/esm/loader.js.map +1 -0
  236. package/dist/esm/rarui-box.entry.js +24 -0
  237. package/dist/esm/rarui-box.entry.js.map +1 -0
  238. package/dist/esm/rarui-button.entry.js +31 -0
  239. package/dist/esm/rarui-button.entry.js.map +1 -0
  240. package/dist/esm/rarui-components.js +22 -0
  241. package/dist/esm/rarui-components.js.map +1 -0
  242. package/dist/esm/rarui-tabs-item.entry.js +16 -0
  243. package/dist/esm/rarui-tabs-item.entry.js.map +1 -0
  244. package/dist/esm/rarui-tabs.entry.js +35 -0
  245. package/dist/esm/rarui-tabs.entry.js.map +1 -0
  246. package/dist/esm/rarui-text.entry.js +32 -0
  247. package/dist/esm/rarui-text.entry.js.map +1 -0
  248. package/dist/esm/rarui-title.entry.js +32 -0
  249. package/dist/esm/rarui-title.entry.js.map +1 -0
  250. package/dist/esm/tslib.es6-46fef1fc.js +30 -0
  251. package/dist/esm/tslib.es6-46fef1fc.js.map +1 -0
  252. package/dist/index.cjs.js +1 -0
  253. package/dist/index.js +1 -0
  254. package/dist/loader/cdn.js +1 -0
  255. package/dist/loader/index.cjs.js +1 -0
  256. package/dist/loader/index.d.ts +24 -0
  257. package/dist/loader/index.es2017.js +1 -0
  258. package/dist/loader/index.js +2 -0
  259. package/dist/loader/package.json +11 -0
  260. package/dist/rarui-components/index.esm.js +2 -0
  261. package/dist/rarui-components/index.esm.js.map +1 -0
  262. package/dist/rarui-components/p-2160244e.entry.js +2 -0
  263. package/dist/rarui-components/p-2160244e.entry.js.map +1 -0
  264. package/dist/rarui-components/p-4235f9e9.entry.js +2 -0
  265. package/dist/rarui-components/p-4235f9e9.entry.js.map +1 -0
  266. package/dist/rarui-components/p-4e227328.entry.js +2 -0
  267. package/dist/rarui-components/p-4e227328.entry.js.map +1 -0
  268. package/dist/rarui-components/p-8495565d.js +2 -0
  269. package/dist/rarui-components/p-8495565d.js.map +1 -0
  270. package/dist/rarui-components/p-9492df61.js +3 -0
  271. package/dist/rarui-components/p-9492df61.js.map +1 -0
  272. package/dist/rarui-components/p-d48974f3.entry.js +2 -0
  273. package/dist/rarui-components/p-d48974f3.entry.js.map +1 -0
  274. package/dist/rarui-components/p-e1255160.js +2 -0
  275. package/dist/rarui-components/p-e1255160.js.map +1 -0
  276. package/dist/rarui-components/p-ee513f26.entry.js +2 -0
  277. package/dist/rarui-components/p-ee513f26.entry.js.map +1 -0
  278. package/dist/rarui-components/p-ffb1013c.entry.js +2 -0
  279. package/dist/rarui-components/p-ffb1013c.entry.js.map +1 -0
  280. package/dist/rarui-components/rarui-components.esm.js +2 -0
  281. package/dist/rarui-components/rarui-components.esm.js.map +1 -0
  282. package/dist/types/Users/juniorconquista/Desktop/Workdir/rarui/packages/implementations/web-components/.stencil/.storybook/utils.d.ts +24 -0
  283. package/dist/types/components.d.ts +158 -0
  284. package/dist/types/exhibition/Text/dist/loader/index.d.ts +24 -0
  285. package/dist/types/exhibition/Text/dist/types/Button.d.ts +14 -0
  286. package/dist/types/exhibition/Text/dist/types/index.d.ts +10 -0
  287. package/dist/types/exhibition/Text/dist/types/stencil-public-runtime.d.ts +1674 -0
  288. package/dist/types/exhibition/Text/src/Text.d.ts +7 -0
  289. package/dist/types/exhibition/Text/src/index.d.ts +10 -0
  290. package/dist/types/exhibition/Text/src/text.stories.d.ts +21 -0
  291. package/dist/types/exhibition/Text/stencil.config.d.ts +54 -0
  292. package/dist/types/exhibition/Title/dist/loader/index.d.ts +24 -0
  293. package/dist/types/exhibition/Title/dist/types/Button.d.ts +14 -0
  294. package/dist/types/exhibition/Title/dist/types/index.d.ts +10 -0
  295. package/dist/types/exhibition/Title/dist/types/stencil-public-runtime.d.ts +1674 -0
  296. package/dist/types/exhibition/Title/src/Title.d.ts +7 -0
  297. package/dist/types/exhibition/Title/src/index.d.ts +10 -0
  298. package/dist/types/exhibition/Title/src/title.stories.d.ts +19 -0
  299. package/dist/types/exhibition/Title/stencil.config.d.ts +54 -0
  300. package/dist/types/index.d.ts +1 -0
  301. package/dist/types/input/Button/dist/loader/index.d.ts +24 -0
  302. package/dist/types/input/Button/dist/types/Button.d.ts +14 -0
  303. package/dist/types/input/Button/dist/types/index.d.ts +10 -0
  304. package/dist/types/input/Button/dist/types/stencil-public-runtime.d.ts +1674 -0
  305. package/dist/types/input/Button/src/Button.d.ts +14 -0
  306. package/dist/types/input/Button/src/button.stories.d.ts +21 -0
  307. package/dist/types/input/Button/src/index.d.ts +10 -0
  308. package/dist/types/input/Button/stencil.config.d.ts +54 -0
  309. package/dist/types/layout/Box/dist/loader/index.d.ts +24 -0
  310. package/dist/types/layout/Box/dist/types/Box.d.ts +6 -0
  311. package/dist/types/layout/Box/dist/types/index.d.ts +10 -0
  312. package/dist/types/layout/Box/dist/types/stencil-public-runtime.d.ts +1674 -0
  313. package/dist/types/layout/Box/src/Box.d.ts +6 -0
  314. package/dist/types/layout/Box/src/box.stories.d.ts +13 -0
  315. package/dist/types/layout/Box/src/index.d.ts +10 -0
  316. package/dist/types/layout/Box/stencil.config.d.ts +54 -0
  317. package/dist/types/navigation/Tabs/Item/dist/loader/index.d.ts +24 -0
  318. package/dist/types/navigation/Tabs/Item/dist/types/Item.d.ts +5 -0
  319. package/dist/types/navigation/Tabs/Item/dist/types/index.d.ts +10 -0
  320. package/dist/types/navigation/Tabs/Item/dist/types/stencil-public-runtime.d.ts +1674 -0
  321. package/dist/types/navigation/Tabs/Item/src/Item.d.ts +5 -0
  322. package/dist/types/navigation/Tabs/Item/src/index.d.ts +10 -0
  323. package/dist/types/navigation/Tabs/Item/src/item.stories.d.ts +13 -0
  324. package/dist/types/navigation/Tabs/Item/stencil.config.d.ts +54 -0
  325. package/dist/types/navigation/Tabs/Root/dist/loader/index.d.ts +24 -0
  326. package/dist/types/navigation/Tabs/Root/dist/types/Root.d.ts +14 -0
  327. package/dist/types/navigation/Tabs/Root/dist/types/index.d.ts +10 -0
  328. package/dist/types/navigation/Tabs/Root/dist/types/stencil-public-runtime.d.ts +1674 -0
  329. package/dist/types/navigation/Tabs/Root/src/Root.d.ts +14 -0
  330. package/dist/types/navigation/Tabs/Root/src/index.d.ts +10 -0
  331. package/dist/types/navigation/Tabs/Root/src/root.stories.d.ts +15 -0
  332. package/dist/types/navigation/Tabs/Root/stencil.config.d.ts +54 -0
  333. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  334. package/package.json +37 -0
@@ -0,0 +1,1305 @@
1
+ const NAMESPACE = 'rarui-box';
2
+ const BUILD = /* rarui-box */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: true, slotChildNodesFix: false, slotRelocation: true, state: false, style: false, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: false, vdomXlink: true, watchCallback: false };
3
+
4
+ /*
5
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
6
+ */
7
+ var __defProp = Object.defineProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var hostRefs = /* @__PURE__ */ new WeakMap();
13
+ var getHostRef = (ref) => hostRefs.get(ref);
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
15
+ var registerHost = (hostElement, cmpMeta) => {
16
+ const hostRef = {
17
+ $flags$: 0,
18
+ $hostElement$: hostElement,
19
+ $cmpMeta$: cmpMeta,
20
+ $instanceValues$: /* @__PURE__ */ new Map()
21
+ };
22
+ {
23
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
24
+ hostElement["s-p"] = [];
25
+ hostElement["s-rc"] = [];
26
+ }
27
+ return hostRefs.set(hostElement, hostRef);
28
+ };
29
+ var isMemberInElement = (elm, memberName) => memberName in elm;
30
+ var consoleError = (e, el) => (0, console.error)(e, el);
31
+
32
+ // src/client/client-load-module.ts
33
+ var cmpModules = /* @__PURE__ */ new Map();
34
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
35
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
36
+ const bundleId = cmpMeta.$lazyBundleId$;
37
+ if (!bundleId) {
38
+ return void 0;
39
+ }
40
+ const module = cmpModules.get(bundleId) ;
41
+ if (module) {
42
+ return module[exportName];
43
+ }
44
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
45
+ return import(
46
+ /* @vite-ignore */
47
+ /* webpackInclude: /\.entry\.js$/ */
48
+ /* webpackExclude: /\.system\.entry\.js$/ */
49
+ /* webpackMode: "lazy" */
50
+ `./${bundleId}.entry.js${""}`
51
+ ).then((importedModule) => {
52
+ {
53
+ cmpModules.set(bundleId, importedModule);
54
+ }
55
+ return importedModule[exportName];
56
+ }, consoleError);
57
+ };
58
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
59
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
60
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
61
+ var win = typeof window !== "undefined" ? window : {};
62
+ var doc = win.document || { head: {} };
63
+ var plt = {
64
+ $flags$: 0,
65
+ $resourcesUrl$: "",
66
+ jmp: (h2) => h2(),
67
+ raf: (h2) => requestAnimationFrame(h2),
68
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
69
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
70
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
71
+ };
72
+ var supportsShadow = BUILD.shadowDom;
73
+ var promiseResolve = (v) => Promise.resolve(v);
74
+ var queuePending = false;
75
+ var queueDomReads = [];
76
+ var queueDomWrites = [];
77
+ var queueTask = (queue, write) => (cb) => {
78
+ queue.push(cb);
79
+ if (!queuePending) {
80
+ queuePending = true;
81
+ if (write && plt.$flags$ & 4 /* queueSync */) {
82
+ nextTick(flush);
83
+ } else {
84
+ plt.raf(flush);
85
+ }
86
+ }
87
+ };
88
+ var consume = (queue) => {
89
+ for (let i2 = 0; i2 < queue.length; i2++) {
90
+ try {
91
+ queue[i2](performance.now());
92
+ } catch (e) {
93
+ consoleError(e);
94
+ }
95
+ }
96
+ queue.length = 0;
97
+ };
98
+ var flush = () => {
99
+ consume(queueDomReads);
100
+ {
101
+ consume(queueDomWrites);
102
+ if (queuePending = queueDomReads.length > 0) {
103
+ plt.raf(flush);
104
+ }
105
+ }
106
+ };
107
+ var nextTick = (cb) => promiseResolve().then(cb);
108
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
109
+
110
+ // src/utils/constants.ts
111
+ var EMPTY_OBJ = {};
112
+ var isComplexType = (o) => {
113
+ o = typeof o;
114
+ return o === "object" || o === "function";
115
+ };
116
+
117
+ // src/utils/query-nonce-meta-tag-content.ts
118
+ function queryNonceMetaTagContent(doc2) {
119
+ var _a, _b, _c;
120
+ return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
121
+ }
122
+
123
+ // src/utils/result.ts
124
+ var result_exports = {};
125
+ __export(result_exports, {
126
+ err: () => err,
127
+ map: () => map,
128
+ ok: () => ok,
129
+ unwrap: () => unwrap,
130
+ unwrapErr: () => unwrapErr
131
+ });
132
+ var ok = (value) => ({
133
+ isOk: true,
134
+ isErr: false,
135
+ value
136
+ });
137
+ var err = (value) => ({
138
+ isOk: false,
139
+ isErr: true,
140
+ value
141
+ });
142
+ function map(result, fn) {
143
+ if (result.isOk) {
144
+ const val = fn(result.value);
145
+ if (val instanceof Promise) {
146
+ return val.then((newVal) => ok(newVal));
147
+ } else {
148
+ return ok(val);
149
+ }
150
+ }
151
+ if (result.isErr) {
152
+ const value = result.value;
153
+ return err(value);
154
+ }
155
+ throw "should never get here";
156
+ }
157
+ var unwrap = (result) => {
158
+ if (result.isOk) {
159
+ return result.value;
160
+ } else {
161
+ throw result.value;
162
+ }
163
+ };
164
+ var unwrapErr = (result) => {
165
+ if (result.isErr) {
166
+ return result.value;
167
+ } else {
168
+ throw result.value;
169
+ }
170
+ };
171
+ var createTime = (fnName, tagName = "") => {
172
+ {
173
+ return () => {
174
+ return;
175
+ };
176
+ }
177
+ };
178
+ var uniqueTime = (key, measureText) => {
179
+ {
180
+ return () => {
181
+ return;
182
+ };
183
+ }
184
+ };
185
+ var h = (nodeName, vnodeData, ...children) => {
186
+ let child = null;
187
+ let key = null;
188
+ let slotName = null;
189
+ let simple = false;
190
+ let lastSimple = false;
191
+ const vNodeChildren = [];
192
+ const walk = (c) => {
193
+ for (let i2 = 0; i2 < c.length; i2++) {
194
+ child = c[i2];
195
+ if (Array.isArray(child)) {
196
+ walk(child);
197
+ } else if (child != null && typeof child !== "boolean") {
198
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
199
+ child = String(child);
200
+ }
201
+ if (simple && lastSimple) {
202
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
203
+ } else {
204
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
205
+ }
206
+ lastSimple = simple;
207
+ }
208
+ }
209
+ };
210
+ walk(children);
211
+ if (vnodeData) {
212
+ if (vnodeData.key) {
213
+ key = vnodeData.key;
214
+ }
215
+ if (vnodeData.name) {
216
+ slotName = vnodeData.name;
217
+ }
218
+ {
219
+ const classData = vnodeData.className || vnodeData.class;
220
+ if (classData) {
221
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
222
+ }
223
+ }
224
+ }
225
+ if (typeof nodeName === "function") {
226
+ return nodeName(
227
+ vnodeData === null ? {} : vnodeData,
228
+ vNodeChildren,
229
+ vdomFnUtils
230
+ );
231
+ }
232
+ const vnode = newVNode(nodeName, null);
233
+ vnode.$attrs$ = vnodeData;
234
+ if (vNodeChildren.length > 0) {
235
+ vnode.$children$ = vNodeChildren;
236
+ }
237
+ {
238
+ vnode.$key$ = key;
239
+ }
240
+ {
241
+ vnode.$name$ = slotName;
242
+ }
243
+ return vnode;
244
+ };
245
+ var newVNode = (tag, text) => {
246
+ const vnode = {
247
+ $flags$: 0,
248
+ $tag$: tag,
249
+ $text$: text,
250
+ $elm$: null,
251
+ $children$: null
252
+ };
253
+ {
254
+ vnode.$attrs$ = null;
255
+ }
256
+ {
257
+ vnode.$key$ = null;
258
+ }
259
+ {
260
+ vnode.$name$ = null;
261
+ }
262
+ return vnode;
263
+ };
264
+ var Host = {};
265
+ var isHost = (node) => node && node.$tag$ === Host;
266
+ var vdomFnUtils = {
267
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
268
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
269
+ };
270
+ var convertToPublic = (node) => ({
271
+ vattrs: node.$attrs$,
272
+ vchildren: node.$children$,
273
+ vkey: node.$key$,
274
+ vname: node.$name$,
275
+ vtag: node.$tag$,
276
+ vtext: node.$text$
277
+ });
278
+ var convertToPrivate = (node) => {
279
+ if (typeof node.vtag === "function") {
280
+ const vnodeData = { ...node.vattrs };
281
+ if (node.vkey) {
282
+ vnodeData.key = node.vkey;
283
+ }
284
+ if (node.vname) {
285
+ vnodeData.name = node.vname;
286
+ }
287
+ return h(node.vtag, vnodeData, ...node.vchildren || []);
288
+ }
289
+ const vnode = newVNode(node.vtag, node.vtext);
290
+ vnode.$attrs$ = node.vattrs;
291
+ vnode.$children$ = node.vchildren;
292
+ vnode.$key$ = node.vkey;
293
+ vnode.$name$ = node.vname;
294
+ return vnode;
295
+ };
296
+ var parsePropertyValue = (propValue, propType) => {
297
+ if (propValue != null && !isComplexType(propValue)) {
298
+ if (propType & 1 /* String */) {
299
+ return String(propValue);
300
+ }
301
+ return propValue;
302
+ }
303
+ return propValue;
304
+ };
305
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
306
+ var emitEvent = (elm, name, opts) => {
307
+ const ev = plt.ce(name, opts);
308
+ elm.dispatchEvent(ev);
309
+ return ev;
310
+ };
311
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
312
+ if (oldValue !== newValue) {
313
+ let isProp = isMemberInElement(elm, memberName);
314
+ let ln = memberName.toLowerCase();
315
+ if (memberName === "class") {
316
+ const classList = elm.classList;
317
+ const oldClasses = parseClassList(oldValue);
318
+ const newClasses = parseClassList(newValue);
319
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
320
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
321
+ } else if (memberName === "style") {
322
+ {
323
+ for (const prop in oldValue) {
324
+ if (!newValue || newValue[prop] == null) {
325
+ if (prop.includes("-")) {
326
+ elm.style.removeProperty(prop);
327
+ } else {
328
+ elm.style[prop] = "";
329
+ }
330
+ }
331
+ }
332
+ }
333
+ for (const prop in newValue) {
334
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
335
+ if (prop.includes("-")) {
336
+ elm.style.setProperty(prop, newValue[prop]);
337
+ } else {
338
+ elm.style[prop] = newValue[prop];
339
+ }
340
+ }
341
+ }
342
+ } else if (memberName === "key") ; else if (memberName === "ref") {
343
+ if (newValue) {
344
+ newValue(elm);
345
+ }
346
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
347
+ if (memberName[2] === "-") {
348
+ memberName = memberName.slice(3);
349
+ } else if (isMemberInElement(win, ln)) {
350
+ memberName = ln.slice(2);
351
+ } else {
352
+ memberName = ln[2] + memberName.slice(3);
353
+ }
354
+ if (oldValue || newValue) {
355
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
356
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
357
+ if (oldValue) {
358
+ plt.rel(elm, memberName, oldValue, capture);
359
+ }
360
+ if (newValue) {
361
+ plt.ael(elm, memberName, newValue, capture);
362
+ }
363
+ }
364
+ } else {
365
+ const isComplex = isComplexType(newValue);
366
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
367
+ try {
368
+ if (!elm.tagName.includes("-")) {
369
+ const n = newValue == null ? "" : newValue;
370
+ if (memberName === "list") {
371
+ isProp = false;
372
+ } else if (oldValue == null || elm[memberName] != n) {
373
+ elm[memberName] = n;
374
+ }
375
+ } else {
376
+ elm[memberName] = newValue;
377
+ }
378
+ } catch (e) {
379
+ }
380
+ }
381
+ let xlink = false;
382
+ {
383
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
384
+ memberName = ln;
385
+ xlink = true;
386
+ }
387
+ }
388
+ if (newValue == null || newValue === false) {
389
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
390
+ if (xlink) {
391
+ elm.removeAttributeNS(XLINK_NS, memberName);
392
+ } else {
393
+ elm.removeAttribute(memberName);
394
+ }
395
+ }
396
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
397
+ newValue = newValue === true ? "" : newValue;
398
+ if (xlink) {
399
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
400
+ } else {
401
+ elm.setAttribute(memberName, newValue);
402
+ }
403
+ }
404
+ }
405
+ }
406
+ };
407
+ var parseClassListRegex = /\s/;
408
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
409
+ var CAPTURE_EVENT_SUFFIX = "Capture";
410
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
411
+
412
+ // src/runtime/vdom/update-element.ts
413
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
414
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
415
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
416
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
417
+ {
418
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
419
+ if (!(memberName in newVnodeAttrs)) {
420
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
421
+ }
422
+ }
423
+ }
424
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
425
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
426
+ }
427
+ };
428
+ function sortedAttrNames(attrNames) {
429
+ return attrNames.includes("ref") ? (
430
+ // we need to sort these to ensure that `'ref'` is the last attr
431
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
432
+ ) : (
433
+ // no need to sort, return the original array
434
+ attrNames
435
+ );
436
+ }
437
+ var contentRef;
438
+ var hostTagName;
439
+ var useNativeShadowDom = false;
440
+ var checkSlotFallbackVisibility = false;
441
+ var checkSlotRelocate = false;
442
+ var isSvgMode = false;
443
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
444
+ var _a;
445
+ const newVNode2 = newParentVNode.$children$[childIndex];
446
+ let i2 = 0;
447
+ let elm;
448
+ let childNode;
449
+ let oldVNode;
450
+ if (!useNativeShadowDom) {
451
+ checkSlotRelocate = true;
452
+ if (newVNode2.$tag$ === "slot") {
453
+ newVNode2.$flags$ |= newVNode2.$children$ ? (
454
+ // slot element has fallback content
455
+ // still create an element that "mocks" the slot element
456
+ 2 /* isSlotFallback */
457
+ ) : (
458
+ // slot element does not have fallback content
459
+ // create an html comment we'll use to always reference
460
+ // where actual slot content should sit next to
461
+ 1 /* isSlotReference */
462
+ );
463
+ }
464
+ }
465
+ if (newVNode2.$flags$ & 1 /* isSlotReference */) {
466
+ elm = newVNode2.$elm$ = doc.createTextNode("");
467
+ } else {
468
+ elm = newVNode2.$elm$ = doc.createElement(
469
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
470
+ );
471
+ {
472
+ updateElement(null, newVNode2, isSvgMode);
473
+ }
474
+ if (newVNode2.$children$) {
475
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
476
+ childNode = createElm(oldParentVNode, newVNode2, i2);
477
+ if (childNode) {
478
+ elm.appendChild(childNode);
479
+ }
480
+ }
481
+ }
482
+ }
483
+ elm["s-hn"] = hostTagName;
484
+ {
485
+ if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
486
+ elm["s-sr"] = true;
487
+ elm["s-cr"] = contentRef;
488
+ elm["s-sn"] = newVNode2.$name$ || "";
489
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
490
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
491
+ if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
492
+ {
493
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
494
+ }
495
+ }
496
+ }
497
+ }
498
+ return elm;
499
+ };
500
+ var putBackInOriginalLocation = (parentElm, recursive) => {
501
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
502
+ const oldSlotChildNodes = Array.from(parentElm.childNodes);
503
+ if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
504
+ let node = parentElm;
505
+ while (node = node.nextSibling) {
506
+ if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
507
+ oldSlotChildNodes.push(node);
508
+ }
509
+ }
510
+ }
511
+ for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
512
+ const childNode = oldSlotChildNodes[i2];
513
+ if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
514
+ insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
515
+ childNode["s-ol"].remove();
516
+ childNode["s-ol"] = void 0;
517
+ childNode["s-sh"] = void 0;
518
+ checkSlotRelocate = true;
519
+ }
520
+ if (recursive) {
521
+ putBackInOriginalLocation(childNode, recursive);
522
+ }
523
+ }
524
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
525
+ };
526
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
527
+ let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
528
+ let childNode;
529
+ for (; startIdx <= endIdx; ++startIdx) {
530
+ if (vnodes[startIdx]) {
531
+ childNode = createElm(null, parentVNode, startIdx);
532
+ if (childNode) {
533
+ vnodes[startIdx].$elm$ = childNode;
534
+ insertBefore(containerElm, childNode, referenceNode(before) );
535
+ }
536
+ }
537
+ }
538
+ };
539
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
540
+ for (let index = startIdx; index <= endIdx; ++index) {
541
+ const vnode = vnodes[index];
542
+ if (vnode) {
543
+ const elm = vnode.$elm$;
544
+ nullifyVNodeRefs(vnode);
545
+ if (elm) {
546
+ {
547
+ checkSlotFallbackVisibility = true;
548
+ if (elm["s-ol"]) {
549
+ elm["s-ol"].remove();
550
+ } else {
551
+ putBackInOriginalLocation(elm, true);
552
+ }
553
+ }
554
+ elm.remove();
555
+ }
556
+ }
557
+ }
558
+ };
559
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
560
+ let oldStartIdx = 0;
561
+ let newStartIdx = 0;
562
+ let idxInOld = 0;
563
+ let i2 = 0;
564
+ let oldEndIdx = oldCh.length - 1;
565
+ let oldStartVnode = oldCh[0];
566
+ let oldEndVnode = oldCh[oldEndIdx];
567
+ let newEndIdx = newCh.length - 1;
568
+ let newStartVnode = newCh[0];
569
+ let newEndVnode = newCh[newEndIdx];
570
+ let node;
571
+ let elmToMove;
572
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
573
+ if (oldStartVnode == null) {
574
+ oldStartVnode = oldCh[++oldStartIdx];
575
+ } else if (oldEndVnode == null) {
576
+ oldEndVnode = oldCh[--oldEndIdx];
577
+ } else if (newStartVnode == null) {
578
+ newStartVnode = newCh[++newStartIdx];
579
+ } else if (newEndVnode == null) {
580
+ newEndVnode = newCh[--newEndIdx];
581
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
582
+ patch(oldStartVnode, newStartVnode, isInitialRender);
583
+ oldStartVnode = oldCh[++oldStartIdx];
584
+ newStartVnode = newCh[++newStartIdx];
585
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
586
+ patch(oldEndVnode, newEndVnode, isInitialRender);
587
+ oldEndVnode = oldCh[--oldEndIdx];
588
+ newEndVnode = newCh[--newEndIdx];
589
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
590
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
591
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
592
+ }
593
+ patch(oldStartVnode, newEndVnode, isInitialRender);
594
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
595
+ oldStartVnode = oldCh[++oldStartIdx];
596
+ newEndVnode = newCh[--newEndIdx];
597
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
598
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
599
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
600
+ }
601
+ patch(oldEndVnode, newStartVnode, isInitialRender);
602
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
603
+ oldEndVnode = oldCh[--oldEndIdx];
604
+ newStartVnode = newCh[++newStartIdx];
605
+ } else {
606
+ idxInOld = -1;
607
+ {
608
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
609
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
610
+ idxInOld = i2;
611
+ break;
612
+ }
613
+ }
614
+ }
615
+ if (idxInOld >= 0) {
616
+ elmToMove = oldCh[idxInOld];
617
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
618
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
619
+ } else {
620
+ patch(elmToMove, newStartVnode, isInitialRender);
621
+ oldCh[idxInOld] = void 0;
622
+ node = elmToMove.$elm$;
623
+ }
624
+ newStartVnode = newCh[++newStartIdx];
625
+ } else {
626
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
627
+ newStartVnode = newCh[++newStartIdx];
628
+ }
629
+ if (node) {
630
+ {
631
+ insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
632
+ }
633
+ }
634
+ }
635
+ }
636
+ if (oldStartIdx > oldEndIdx) {
637
+ addVnodes(
638
+ parentElm,
639
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
640
+ newVNode2,
641
+ newCh,
642
+ newStartIdx,
643
+ newEndIdx
644
+ );
645
+ } else if (newStartIdx > newEndIdx) {
646
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
647
+ }
648
+ };
649
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
650
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
651
+ if (leftVNode.$tag$ === "slot") {
652
+ return leftVNode.$name$ === rightVNode.$name$;
653
+ }
654
+ if (!isInitialRender) {
655
+ return leftVNode.$key$ === rightVNode.$key$;
656
+ }
657
+ return true;
658
+ }
659
+ return false;
660
+ };
661
+ var referenceNode = (node) => {
662
+ return node && node["s-ol"] || node;
663
+ };
664
+ var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
665
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
666
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
667
+ const oldChildren = oldVNode.$children$;
668
+ const newChildren = newVNode2.$children$;
669
+ const tag = newVNode2.$tag$;
670
+ {
671
+ {
672
+ if (tag === "slot" && !useNativeShadowDom) ; else {
673
+ updateElement(oldVNode, newVNode2, isSvgMode);
674
+ }
675
+ }
676
+ if (oldChildren !== null && newChildren !== null) {
677
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
678
+ } else if (newChildren !== null) {
679
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
680
+ } else if (oldChildren !== null) {
681
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
682
+ }
683
+ }
684
+ };
685
+ var updateFallbackSlotVisibility = (elm) => {
686
+ const childNodes = elm.childNodes;
687
+ for (const childNode of childNodes) {
688
+ if (childNode.nodeType === 1 /* ElementNode */) {
689
+ if (childNode["s-sr"]) {
690
+ const slotName = childNode["s-sn"];
691
+ childNode.hidden = false;
692
+ for (const siblingNode of childNodes) {
693
+ if (siblingNode !== childNode) {
694
+ if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
695
+ if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
696
+ childNode.hidden = true;
697
+ break;
698
+ }
699
+ } else {
700
+ if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
701
+ childNode.hidden = true;
702
+ break;
703
+ }
704
+ }
705
+ }
706
+ }
707
+ }
708
+ updateFallbackSlotVisibility(childNode);
709
+ }
710
+ }
711
+ };
712
+ var relocateNodes = [];
713
+ var markSlotContentForRelocation = (elm) => {
714
+ let node;
715
+ let hostContentNodes;
716
+ let j;
717
+ for (const childNode of elm.childNodes) {
718
+ if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
719
+ hostContentNodes = node.parentNode.childNodes;
720
+ const slotName = childNode["s-sn"];
721
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
722
+ node = hostContentNodes[j];
723
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
724
+ if (isNodeLocatedInSlot(node, slotName)) {
725
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
726
+ checkSlotFallbackVisibility = true;
727
+ node["s-sn"] = node["s-sn"] || slotName;
728
+ if (relocateNodeData) {
729
+ relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
730
+ relocateNodeData.$slotRefNode$ = childNode;
731
+ } else {
732
+ node["s-sh"] = childNode["s-hn"];
733
+ relocateNodes.push({
734
+ $slotRefNode$: childNode,
735
+ $nodeToRelocate$: node
736
+ });
737
+ }
738
+ if (node["s-sr"]) {
739
+ relocateNodes.map((relocateNode) => {
740
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
741
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
742
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
743
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
744
+ }
745
+ }
746
+ });
747
+ }
748
+ } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
749
+ relocateNodes.push({
750
+ $nodeToRelocate$: node
751
+ });
752
+ }
753
+ }
754
+ }
755
+ }
756
+ if (childNode.nodeType === 1 /* ElementNode */) {
757
+ markSlotContentForRelocation(childNode);
758
+ }
759
+ }
760
+ };
761
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
762
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
763
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
764
+ return true;
765
+ }
766
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
767
+ return true;
768
+ }
769
+ return false;
770
+ }
771
+ if (nodeToRelocate["s-sn"] === slotName) {
772
+ return true;
773
+ }
774
+ return slotName === "";
775
+ };
776
+ var nullifyVNodeRefs = (vNode) => {
777
+ {
778
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
779
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
780
+ }
781
+ };
782
+ var insertBefore = (parent, newNode, reference) => {
783
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
784
+ return inserted;
785
+ };
786
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
787
+ var _a, _b, _c, _d;
788
+ const hostElm = hostRef.$hostElement$;
789
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
790
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
791
+ hostTagName = hostElm.tagName;
792
+ if (isInitialLoad && rootVnode.$attrs$) {
793
+ for (const key of Object.keys(rootVnode.$attrs$)) {
794
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
795
+ rootVnode.$attrs$[key] = hostElm[key];
796
+ }
797
+ }
798
+ }
799
+ rootVnode.$tag$ = null;
800
+ rootVnode.$flags$ |= 4 /* isHost */;
801
+ hostRef.$vnode$ = rootVnode;
802
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm;
803
+ useNativeShadowDom = supportsShadow ;
804
+ {
805
+ contentRef = hostElm["s-cr"];
806
+ checkSlotFallbackVisibility = false;
807
+ }
808
+ patch(oldVNode, rootVnode, isInitialLoad);
809
+ {
810
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
811
+ if (checkSlotRelocate) {
812
+ markSlotContentForRelocation(rootVnode.$elm$);
813
+ for (const relocateData of relocateNodes) {
814
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
815
+ if (!nodeToRelocate["s-ol"]) {
816
+ const orgLocationNode = doc.createTextNode("");
817
+ orgLocationNode["s-nr"] = nodeToRelocate;
818
+ insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
819
+ }
820
+ }
821
+ for (const relocateData of relocateNodes) {
822
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
823
+ const slotRefNode = relocateData.$slotRefNode$;
824
+ if (slotRefNode) {
825
+ const parentNodeRef = slotRefNode.parentNode;
826
+ let insertBeforeNode = slotRefNode.nextSibling;
827
+ {
828
+ let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
829
+ while (orgLocationNode) {
830
+ let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
831
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
832
+ refNode = refNode.nextSibling;
833
+ while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
834
+ refNode = refNode == null ? void 0 : refNode.nextSibling;
835
+ }
836
+ if (!refNode || !refNode["s-nr"]) {
837
+ insertBeforeNode = refNode;
838
+ break;
839
+ }
840
+ }
841
+ orgLocationNode = orgLocationNode.previousSibling;
842
+ }
843
+ }
844
+ if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
845
+ if (nodeToRelocate !== insertBeforeNode) {
846
+ if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
847
+ nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
848
+ }
849
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
850
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
851
+ nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
852
+ }
853
+ }
854
+ }
855
+ nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
856
+ } else {
857
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
858
+ if (isInitialLoad) {
859
+ nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
860
+ }
861
+ nodeToRelocate.hidden = true;
862
+ }
863
+ }
864
+ }
865
+ }
866
+ if (checkSlotFallbackVisibility) {
867
+ updateFallbackSlotVisibility(rootVnode.$elm$);
868
+ }
869
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
870
+ relocateNodes.length = 0;
871
+ }
872
+ contentRef = void 0;
873
+ };
874
+
875
+ // src/runtime/update-component.ts
876
+ var attachToAncestor = (hostRef, ancestorComponent) => {
877
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
878
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
879
+ }
880
+ };
881
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
882
+ {
883
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
884
+ }
885
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
886
+ hostRef.$flags$ |= 512 /* needsRerender */;
887
+ return;
888
+ }
889
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
890
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
891
+ return writeTask(dispatch) ;
892
+ };
893
+ var dispatchHooks = (hostRef, isInitialLoad) => {
894
+ const elm = hostRef.$hostElement$;
895
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
896
+ const instance = hostRef.$lazyInstance$ ;
897
+ if (!instance) {
898
+ throw new Error(
899
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
900
+ );
901
+ }
902
+ let maybePromise;
903
+ endSchedule();
904
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
905
+ };
906
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
907
+ console.error(err2);
908
+ fn();
909
+ }) : fn();
910
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
911
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
912
+ var _a;
913
+ const elm = hostRef.$hostElement$;
914
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
915
+ const rc = elm["s-rc"];
916
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
917
+ {
918
+ callRender(hostRef, instance, elm, isInitialLoad);
919
+ }
920
+ if (rc) {
921
+ rc.map((cb) => cb());
922
+ elm["s-rc"] = void 0;
923
+ }
924
+ endRender();
925
+ endUpdate();
926
+ {
927
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
928
+ const postUpdate = () => postUpdateComponent(hostRef);
929
+ if (childrenPromises.length === 0) {
930
+ postUpdate();
931
+ } else {
932
+ Promise.all(childrenPromises).then(postUpdate);
933
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
934
+ childrenPromises.length = 0;
935
+ }
936
+ }
937
+ };
938
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
939
+ try {
940
+ instance = instance.render() ;
941
+ {
942
+ hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
943
+ }
944
+ {
945
+ hostRef.$flags$ |= 2 /* hasRendered */;
946
+ }
947
+ {
948
+ {
949
+ {
950
+ renderVdom(hostRef, instance, isInitialLoad);
951
+ }
952
+ }
953
+ }
954
+ } catch (e) {
955
+ consoleError(e, hostRef.$hostElement$);
956
+ }
957
+ return null;
958
+ };
959
+ var postUpdateComponent = (hostRef) => {
960
+ const tagName = hostRef.$cmpMeta$.$tagName$;
961
+ const elm = hostRef.$hostElement$;
962
+ const endPostUpdate = createTime("postUpdate", tagName);
963
+ const ancestorComponent = hostRef.$ancestorComponent$;
964
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
965
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
966
+ {
967
+ addHydratedFlag(elm);
968
+ }
969
+ endPostUpdate();
970
+ {
971
+ hostRef.$onReadyResolve$(elm);
972
+ if (!ancestorComponent) {
973
+ appDidLoad();
974
+ }
975
+ }
976
+ } else {
977
+ endPostUpdate();
978
+ }
979
+ {
980
+ if (hostRef.$onRenderResolve$) {
981
+ hostRef.$onRenderResolve$();
982
+ hostRef.$onRenderResolve$ = void 0;
983
+ }
984
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
985
+ nextTick(() => scheduleUpdate(hostRef, false));
986
+ }
987
+ hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
988
+ }
989
+ };
990
+ var appDidLoad = (who) => {
991
+ {
992
+ addHydratedFlag(doc.documentElement);
993
+ }
994
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
995
+ };
996
+ var addHydratedFlag = (elm) => {
997
+ var _a;
998
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
999
+ };
1000
+
1001
+ // src/runtime/set-value.ts
1002
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1003
+ var setValue = (ref, propName, newVal, cmpMeta) => {
1004
+ const hostRef = getHostRef(ref);
1005
+ if (!hostRef) {
1006
+ throw new Error(
1007
+ `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
1008
+ );
1009
+ }
1010
+ const oldVal = hostRef.$instanceValues$.get(propName);
1011
+ const flags = hostRef.$flags$;
1012
+ const instance = hostRef.$lazyInstance$ ;
1013
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1014
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1015
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1016
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1017
+ hostRef.$instanceValues$.set(propName, newVal);
1018
+ if (instance) {
1019
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1020
+ scheduleUpdate(hostRef, false);
1021
+ }
1022
+ }
1023
+ }
1024
+ };
1025
+
1026
+ // src/runtime/proxy-component.ts
1027
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
1028
+ var _a, _b;
1029
+ const prototype = Cstr.prototype;
1030
+ if (cmpMeta.$members$ || BUILD.watchCallback ) {
1031
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1032
+ members.map(([memberName, [memberFlags]]) => {
1033
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1034
+ Object.defineProperty(prototype, memberName, {
1035
+ get() {
1036
+ return getValue(this, memberName);
1037
+ },
1038
+ set(newValue) {
1039
+ setValue(this, memberName, newValue, cmpMeta);
1040
+ },
1041
+ configurable: true,
1042
+ enumerable: true
1043
+ });
1044
+ }
1045
+ });
1046
+ if ((flags & 1 /* isElementConstructor */)) {
1047
+ const attrNameToPropName = /* @__PURE__ */ new Map();
1048
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1049
+ plt.jmp(() => {
1050
+ var _a2;
1051
+ const propName = attrNameToPropName.get(attrName);
1052
+ if (this.hasOwnProperty(propName)) {
1053
+ newValue = this[propName];
1054
+ delete this[propName];
1055
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1056
+ return;
1057
+ } else if (propName == null) {
1058
+ const hostRef = getHostRef(this);
1059
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1060
+ if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1061
+ const instance = hostRef.$lazyInstance$ ;
1062
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1063
+ entry == null ? void 0 : entry.forEach((callbackName) => {
1064
+ if (instance[callbackName] != null) {
1065
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
1066
+ }
1067
+ });
1068
+ }
1069
+ return;
1070
+ }
1071
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1072
+ });
1073
+ };
1074
+ Cstr.observedAttributes = Array.from(
1075
+ /* @__PURE__ */ new Set([
1076
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1077
+ ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1078
+ const attrName = m[1] || propName;
1079
+ attrNameToPropName.set(attrName, propName);
1080
+ return attrName;
1081
+ })
1082
+ ])
1083
+ );
1084
+ }
1085
+ }
1086
+ return Cstr;
1087
+ };
1088
+
1089
+ // src/runtime/initialize-component.ts
1090
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1091
+ let Cstr;
1092
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1093
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1094
+ const bundleId = cmpMeta.$lazyBundleId$;
1095
+ if (bundleId) {
1096
+ const CstrImport = loadModule(cmpMeta);
1097
+ if (CstrImport && "then" in CstrImport) {
1098
+ const endLoad = uniqueTime();
1099
+ Cstr = await CstrImport;
1100
+ endLoad();
1101
+ } else {
1102
+ Cstr = CstrImport;
1103
+ }
1104
+ if (!Cstr) {
1105
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1106
+ }
1107
+ if (!Cstr.isProxied) {
1108
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1109
+ Cstr.isProxied = true;
1110
+ }
1111
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1112
+ {
1113
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1114
+ }
1115
+ try {
1116
+ new Cstr(hostRef);
1117
+ } catch (e) {
1118
+ consoleError(e);
1119
+ }
1120
+ {
1121
+ hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1122
+ }
1123
+ endNewInstance();
1124
+ } else {
1125
+ Cstr = elm.constructor;
1126
+ const cmpTag = elm.localName;
1127
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1128
+ }
1129
+ }
1130
+ const ancestorComponent = hostRef.$ancestorComponent$;
1131
+ const schedule = () => scheduleUpdate(hostRef, true);
1132
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
1133
+ ancestorComponent["s-rc"].push(schedule);
1134
+ } else {
1135
+ schedule();
1136
+ }
1137
+ };
1138
+ var fireConnectedCallback = (instance) => {
1139
+ };
1140
+
1141
+ // src/runtime/connected-callback.ts
1142
+ var connectedCallback = (elm) => {
1143
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1144
+ const hostRef = getHostRef(elm);
1145
+ const cmpMeta = hostRef.$cmpMeta$;
1146
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1147
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1148
+ hostRef.$flags$ |= 1 /* hasConnected */;
1149
+ {
1150
+ if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
1151
+ cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
1152
+ setContentReference(elm);
1153
+ }
1154
+ }
1155
+ {
1156
+ let ancestorComponent = elm;
1157
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1158
+ if (ancestorComponent["s-p"]) {
1159
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1160
+ break;
1161
+ }
1162
+ }
1163
+ }
1164
+ if (cmpMeta.$members$) {
1165
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1166
+ if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1167
+ const value = elm[memberName];
1168
+ delete elm[memberName];
1169
+ elm[memberName] = value;
1170
+ }
1171
+ });
1172
+ }
1173
+ {
1174
+ initializeComponent(elm, hostRef, cmpMeta);
1175
+ }
1176
+ } else {
1177
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1178
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1179
+ }
1180
+ }
1181
+ endConnected();
1182
+ }
1183
+ };
1184
+ var setContentReference = (elm) => {
1185
+ const contentRefElm = elm["s-cr"] = doc.createComment(
1186
+ ""
1187
+ );
1188
+ contentRefElm["s-cn"] = true;
1189
+ insertBefore(elm, contentRefElm, elm.firstChild);
1190
+ };
1191
+ var disconnectInstance = (instance) => {
1192
+ };
1193
+ var disconnectedCallback = async (elm) => {
1194
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1195
+ const hostRef = getHostRef(elm);
1196
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1197
+ hostRef.$onReadyPromise$.then(() => disconnectInstance());
1198
+ }
1199
+ }
1200
+ };
1201
+
1202
+ // src/runtime/bootstrap-lazy.ts
1203
+ var bootstrapLazy = (lazyBundles, options = {}) => {
1204
+ var _a;
1205
+ const endBootstrap = createTime();
1206
+ const cmpTags = [];
1207
+ const exclude = options.exclude || [];
1208
+ const customElements2 = win.customElements;
1209
+ const head = doc.head;
1210
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1211
+ const dataStyles = /* @__PURE__ */ doc.createElement("style");
1212
+ const deferredConnectedCallbacks = [];
1213
+ let appLoadFallback;
1214
+ let isBootstrapping = true;
1215
+ Object.assign(plt, options);
1216
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
1217
+ let hasSlotRelocation = false;
1218
+ lazyBundles.map((lazyBundle) => {
1219
+ lazyBundle[1].map((compactMeta) => {
1220
+ const cmpMeta = {
1221
+ $flags$: compactMeta[0],
1222
+ $tagName$: compactMeta[1],
1223
+ $members$: compactMeta[2],
1224
+ $listeners$: compactMeta[3]
1225
+ };
1226
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1227
+ hasSlotRelocation = true;
1228
+ }
1229
+ {
1230
+ cmpMeta.$members$ = compactMeta[2];
1231
+ }
1232
+ const tagName = cmpMeta.$tagName$;
1233
+ const HostElement = class extends HTMLElement {
1234
+ // StencilLazyHost
1235
+ constructor(self) {
1236
+ super(self);
1237
+ this.hasRegisteredEventListeners = false;
1238
+ self = this;
1239
+ registerHost(self, cmpMeta);
1240
+ }
1241
+ connectedCallback() {
1242
+ getHostRef(this);
1243
+ if (!this.hasRegisteredEventListeners) {
1244
+ this.hasRegisteredEventListeners = true;
1245
+ }
1246
+ if (appLoadFallback) {
1247
+ clearTimeout(appLoadFallback);
1248
+ appLoadFallback = null;
1249
+ }
1250
+ if (isBootstrapping) {
1251
+ deferredConnectedCallbacks.push(this);
1252
+ } else {
1253
+ plt.jmp(() => connectedCallback(this));
1254
+ }
1255
+ }
1256
+ disconnectedCallback() {
1257
+ plt.jmp(() => disconnectedCallback(this));
1258
+ }
1259
+ componentOnReady() {
1260
+ return getHostRef(this).$onReadyPromise$;
1261
+ }
1262
+ };
1263
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1264
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
1265
+ cmpTags.push(tagName);
1266
+ customElements2.define(
1267
+ tagName,
1268
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
1269
+ );
1270
+ }
1271
+ });
1272
+ });
1273
+ if (cmpTags.length > 0) {
1274
+ if (hasSlotRelocation) {
1275
+ dataStyles.textContent += SLOT_FB_CSS;
1276
+ }
1277
+ {
1278
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
1279
+ }
1280
+ if (dataStyles.innerHTML.length) {
1281
+ dataStyles.setAttribute("data-styles", "");
1282
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1283
+ if (nonce != null) {
1284
+ dataStyles.setAttribute("nonce", nonce);
1285
+ }
1286
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1287
+ }
1288
+ }
1289
+ isBootstrapping = false;
1290
+ if (deferredConnectedCallbacks.length) {
1291
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1292
+ } else {
1293
+ {
1294
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
1295
+ }
1296
+ }
1297
+ endBootstrap();
1298
+ };
1299
+
1300
+ // src/runtime/nonce.ts
1301
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
1302
+
1303
+ export { bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1304
+
1305
+ //# sourceMappingURL=index-131cdfc1.js.map