@govbr-ds/webcomponents 2.0.0-next.20 → 2.0.0-next.22

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 (375) hide show
  1. package/dist/cjs/br-avatar.cjs.entry.js +2 -2
  2. package/dist/cjs/br-avatar.cjs.entry.js.map +1 -1
  3. package/dist/cjs/br-button_2.cjs.entry.js +175 -56
  4. package/dist/cjs/br-button_2.cjs.entry.js.map +1 -1
  5. package/dist/cjs/br-checkbox.cjs.entry.js +2 -2
  6. package/dist/cjs/br-checkbox.cjs.entry.js.map +1 -1
  7. package/dist/cjs/br-checkgroup.cjs.entry.js +101 -0
  8. package/dist/cjs/br-checkgroup.cjs.entry.js.map +1 -0
  9. package/dist/cjs/br-dropdown.cjs.entry.js +3 -3
  10. package/dist/cjs/br-dropdown.cjs.entry.js.map +1 -1
  11. package/dist/cjs/br-input_3.cjs.entry.js +284 -0
  12. package/dist/cjs/br-input_3.cjs.entry.js.map +1 -0
  13. package/dist/cjs/br-item.cjs.entry.js +40 -20
  14. package/dist/cjs/br-item.cjs.entry.js.map +1 -1
  15. package/dist/cjs/br-loading.cjs.entry.js +3 -3
  16. package/dist/cjs/br-loading.cjs.entry.js.map +1 -1
  17. package/dist/cjs/br-message.cjs.entry.js +3 -3
  18. package/dist/cjs/br-message.cjs.entry.js.map +1 -1
  19. package/dist/cjs/br-select.cjs.entry.js +281 -0
  20. package/dist/cjs/br-select.cjs.entry.js.map +1 -0
  21. package/dist/cjs/br-switch.cjs.entry.js +9 -6
  22. package/dist/cjs/br-switch.cjs.entry.js.map +1 -1
  23. package/dist/cjs/br-tag.cjs.entry.js +3 -3
  24. package/dist/cjs/br-tag.cjs.entry.js.map +1 -1
  25. package/dist/cjs/br-textarea.cjs.entry.js +3 -3
  26. package/dist/cjs/br-textarea.cjs.entry.js.map +1 -1
  27. package/dist/cjs/br-upload.cjs.entry.js +3 -3
  28. package/dist/cjs/br-upload.cjs.entry.js.map +1 -1
  29. package/dist/cjs/{index-81c11ce2.js → index-4fc1aab1.js} +851 -624
  30. package/dist/cjs/index-4fc1aab1.js.map +1 -0
  31. package/dist/cjs/loader.cjs.js +2 -2
  32. package/dist/cjs/webcomponents.cjs.js +3 -3
  33. package/dist/cjs/webcomponents.cjs.js.map +1 -1
  34. package/dist/collection/collection-manifest.json +3 -1
  35. package/dist/collection/components/avatar/avatar.css +11 -1
  36. package/dist/collection/components/avatar/avatar.js +16 -0
  37. package/dist/collection/components/avatar/avatar.js.map +1 -1
  38. package/dist/collection/components/button/button.css +11 -1
  39. package/dist/collection/components/button/button.js +18 -0
  40. package/dist/collection/components/button/button.js.map +1 -1
  41. package/dist/collection/components/checkbox/checkbox.css +11 -1
  42. package/dist/collection/components/checkbox/checkbox.js +18 -0
  43. package/dist/collection/components/checkbox/checkbox.js.map +1 -1
  44. package/dist/collection/components/checkgroup/checkgroup.css +605 -0
  45. package/dist/collection/components/checkgroup/checkgroup.js +197 -0
  46. package/dist/collection/components/checkgroup/checkgroup.js.map +1 -0
  47. package/dist/collection/components/dropdown/dropdown.css +11 -1
  48. package/dist/collection/components/dropdown/dropdown.js +3 -1
  49. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  50. package/dist/collection/components/icon/icon.css +11 -1
  51. package/dist/collection/components/icon/icon.js +15 -1
  52. package/dist/collection/components/icon/icon.js.map +1 -1
  53. package/dist/collection/components/input/input.css +11 -1
  54. package/dist/collection/components/input/input.js +47 -1
  55. package/dist/collection/components/input/input.js.map +1 -1
  56. package/dist/collection/components/item/item.css +11 -1
  57. package/dist/collection/components/item/item.js +65 -19
  58. package/dist/collection/components/item/item.js.map +1 -1
  59. package/dist/collection/components/list/list.css +11 -1
  60. package/dist/collection/components/list/list.js +7 -1
  61. package/dist/collection/components/list/list.js.map +1 -1
  62. package/dist/collection/components/loading/loading.css +11 -1
  63. package/dist/collection/components/loading/loading.js +9 -1
  64. package/dist/collection/components/loading/loading.js.map +1 -1
  65. package/dist/collection/components/message/message.css +11 -1
  66. package/dist/collection/components/message/message.js +15 -1
  67. package/dist/collection/components/message/message.js.map +1 -1
  68. package/dist/collection/components/radio/radio.css +11 -1
  69. package/dist/collection/components/radio/radio.js +17 -1
  70. package/dist/collection/components/radio/radio.js.map +1 -1
  71. package/dist/collection/components/select/select.css +865 -0
  72. package/dist/collection/components/select/select.js +509 -0
  73. package/dist/collection/components/select/select.js.map +1 -0
  74. package/dist/collection/components/switch/switch.css +11 -1
  75. package/dist/collection/components/switch/switch.js +30 -5
  76. package/dist/collection/components/switch/switch.js.map +1 -1
  77. package/dist/collection/components/tag/tag.css +11 -1
  78. package/dist/collection/components/tag/tag.js +17 -1
  79. package/dist/collection/components/tag/tag.js.map +1 -1
  80. package/dist/collection/components/textarea/textarea.css +11 -1
  81. package/dist/collection/components/textarea/textarea.js +19 -1
  82. package/dist/collection/components/textarea/textarea.js.map +1 -1
  83. package/dist/collection/components/upload/upload.css +11 -1
  84. package/dist/collection/components/upload/upload.js +13 -3
  85. package/dist/collection/components/upload/upload.js.map +1 -1
  86. package/dist/collection/index.js.map +1 -1
  87. package/dist/collection/pages/components/checkgroup/index.js +20 -0
  88. package/dist/collection/pages/components/item/index.js +1 -1
  89. package/dist/collection/pages/components/select/index.js +18 -0
  90. package/dist/collection/pages/components/switch/index.js +1 -1
  91. package/dist/collection/pages/scripts/menu.js +22 -2
  92. package/dist/collection/utils/inherited-attributes.js.map +1 -1
  93. package/dist/collection/utils/interfaces.js.map +1 -1
  94. package/dist/collection/utils/unique-id-generator.js.map +1 -1
  95. package/dist/components/br-avatar.js +1 -1
  96. package/dist/components/br-avatar.js.map +1 -1
  97. package/dist/components/br-button.js +1 -1
  98. package/dist/components/br-checkbox.js +1 -1
  99. package/dist/components/br-checkbox.js.map +1 -1
  100. package/dist/components/br-checkgroup.d.ts +11 -0
  101. package/dist/components/br-checkgroup.js +6 -0
  102. package/dist/components/br-checkgroup.js.map +1 -0
  103. package/dist/components/br-dropdown.js +1 -1
  104. package/dist/components/br-dropdown.js.map +1 -1
  105. package/dist/components/br-icon.js +1 -1
  106. package/dist/components/br-input.js +1 -1
  107. package/dist/components/br-input.js.map +1 -1
  108. package/dist/components/br-item.js +1 -1
  109. package/dist/components/br-item.js.map +1 -1
  110. package/dist/components/br-list.js +1 -1
  111. package/dist/components/br-list.js.map +1 -1
  112. package/dist/components/br-loading.js +1 -1
  113. package/dist/components/br-loading.js.map +1 -1
  114. package/dist/components/br-message.js +1 -1
  115. package/dist/components/br-message.js.map +1 -1
  116. package/dist/components/br-radio.js +1 -1
  117. package/dist/components/br-radio.js.map +1 -1
  118. package/dist/components/br-select.d.ts +11 -0
  119. package/dist/components/br-select.js +6 -0
  120. package/dist/components/br-select.js.map +1 -0
  121. package/dist/components/br-switch.js +1 -1
  122. package/dist/components/br-switch.js.map +1 -1
  123. package/dist/components/br-tag.js +1 -1
  124. package/dist/components/br-tag.js.map +1 -1
  125. package/dist/components/br-textarea.js +1 -1
  126. package/dist/components/br-textarea.js.map +1 -1
  127. package/dist/components/br-upload.js +1 -1
  128. package/dist/components/br-upload.js.map +1 -1
  129. package/dist/components/index.js +1 -1
  130. package/dist/components/p-126ad66d.js +17 -0
  131. package/dist/components/p-126ad66d.js.map +1 -0
  132. package/dist/components/p-184a3074.js +6 -0
  133. package/dist/components/p-184a3074.js.map +1 -0
  134. package/dist/components/p-5cb170a7.js +6 -0
  135. package/dist/components/p-5cb170a7.js.map +1 -0
  136. package/dist/components/p-65616dbd.js +7 -0
  137. package/dist/components/p-65616dbd.js.map +1 -0
  138. package/dist/components/p-65c54cc8.js +6 -0
  139. package/dist/components/p-65c54cc8.js.map +1 -0
  140. package/dist/components/p-a6dcabb0.js +6 -0
  141. package/dist/components/p-a6dcabb0.js.map +1 -0
  142. package/dist/components/p-ace62688.js +6 -0
  143. package/dist/components/p-ace62688.js.map +1 -0
  144. package/dist/esm/br-avatar.entry.js +2 -2
  145. package/dist/esm/br-avatar.entry.js.map +1 -1
  146. package/dist/esm/br-button_2.entry.js +175 -56
  147. package/dist/esm/br-button_2.entry.js.map +1 -1
  148. package/dist/esm/br-checkbox.entry.js +2 -2
  149. package/dist/esm/br-checkbox.entry.js.map +1 -1
  150. package/dist/esm/br-checkgroup.entry.js +97 -0
  151. package/dist/esm/br-checkgroup.entry.js.map +1 -0
  152. package/dist/esm/br-dropdown.entry.js +3 -3
  153. package/dist/esm/br-dropdown.entry.js.map +1 -1
  154. package/dist/esm/br-input_3.entry.js +278 -0
  155. package/dist/esm/br-input_3.entry.js.map +1 -0
  156. package/dist/esm/br-item.entry.js +40 -20
  157. package/dist/esm/br-item.entry.js.map +1 -1
  158. package/dist/esm/br-loading.entry.js +3 -3
  159. package/dist/esm/br-loading.entry.js.map +1 -1
  160. package/dist/esm/br-message.entry.js +3 -3
  161. package/dist/esm/br-message.entry.js.map +1 -1
  162. package/dist/esm/br-select.entry.js +277 -0
  163. package/dist/esm/br-select.entry.js.map +1 -0
  164. package/dist/esm/br-switch.entry.js +9 -6
  165. package/dist/esm/br-switch.entry.js.map +1 -1
  166. package/dist/esm/br-tag.entry.js +3 -3
  167. package/dist/esm/br-tag.entry.js.map +1 -1
  168. package/dist/esm/br-textarea.entry.js +3 -3
  169. package/dist/esm/br-textarea.entry.js.map +1 -1
  170. package/dist/esm/br-upload.entry.js +3 -3
  171. package/dist/esm/br-upload.entry.js.map +1 -1
  172. package/dist/esm/{index-aab4a630.js → index-45af9b53.js} +851 -624
  173. package/dist/esm/index-45af9b53.js.map +1 -0
  174. package/dist/esm/loader.js +3 -3
  175. package/dist/esm/webcomponents.js +4 -4
  176. package/dist/esm/webcomponents.js.map +1 -1
  177. package/dist/esm-es5/br-avatar.entry.js +1 -1
  178. package/dist/esm-es5/br-avatar.entry.js.map +1 -1
  179. package/dist/esm-es5/br-button_2.entry.js +4 -4
  180. package/dist/esm-es5/br-button_2.entry.js.map +1 -1
  181. package/dist/esm-es5/br-checkbox.entry.js +1 -1
  182. package/dist/esm-es5/br-checkbox.entry.js.map +1 -1
  183. package/dist/esm-es5/br-checkgroup.entry.js +6 -0
  184. package/dist/esm-es5/br-checkgroup.entry.js.map +1 -0
  185. package/dist/esm-es5/br-dropdown.entry.js +1 -1
  186. package/dist/esm-es5/br-dropdown.entry.js.map +1 -1
  187. package/dist/esm-es5/br-input_3.entry.js +6 -0
  188. package/dist/esm-es5/br-input_3.entry.js.map +1 -0
  189. package/dist/esm-es5/br-item.entry.js +1 -1
  190. package/dist/esm-es5/br-item.entry.js.map +1 -1
  191. package/dist/esm-es5/br-loading.entry.js +1 -1
  192. package/dist/esm-es5/br-loading.entry.js.map +1 -1
  193. package/dist/esm-es5/br-message.entry.js +1 -1
  194. package/dist/esm-es5/br-message.entry.js.map +1 -1
  195. package/dist/esm-es5/br-select.entry.js +6 -0
  196. package/dist/esm-es5/br-select.entry.js.map +1 -0
  197. package/dist/esm-es5/br-switch.entry.js +2 -2
  198. package/dist/esm-es5/br-switch.entry.js.map +1 -1
  199. package/dist/esm-es5/br-tag.entry.js +1 -1
  200. package/dist/esm-es5/br-tag.entry.js.map +1 -1
  201. package/dist/esm-es5/br-textarea.entry.js +1 -1
  202. package/dist/esm-es5/br-textarea.entry.js.map +1 -1
  203. package/dist/esm-es5/br-upload.entry.js +1 -1
  204. package/dist/esm-es5/br-upload.entry.js.map +1 -1
  205. package/dist/esm-es5/index-45af9b53.js +6 -0
  206. package/dist/esm-es5/index-45af9b53.js.map +1 -0
  207. package/dist/esm-es5/loader.js +2 -2
  208. package/dist/esm-es5/loader.js.map +1 -1
  209. package/dist/esm-es5/webcomponents.js +2 -2
  210. package/dist/esm-es5/webcomponents.js.map +1 -1
  211. package/dist/types/components/checkgroup/checkgroup.d.ts +52 -0
  212. package/dist/types/components/item/item.d.ts +5 -3
  213. package/dist/types/components/select/select.d.ts +98 -0
  214. package/dist/types/components/switch/switch.d.ts +2 -1
  215. package/dist/types/components/upload/upload.d.ts +2 -2
  216. package/dist/types/components.d.ts +171 -6
  217. package/dist/webcomponents/p-04a3d24e.system.entry.js +6 -0
  218. package/dist/webcomponents/{p-71be2e3f.system.entry.js.map → p-04a3d24e.system.entry.js.map} +1 -1
  219. package/dist/webcomponents/p-057dcb7c.system.entry.js +6 -0
  220. package/dist/webcomponents/p-057dcb7c.system.entry.js.map +1 -0
  221. package/dist/webcomponents/p-19b77f11.entry.js +6 -0
  222. package/dist/webcomponents/{p-5539ffa8.entry.js.map → p-19b77f11.entry.js.map} +1 -1
  223. package/dist/webcomponents/p-1acbc680.entry.js +6 -0
  224. package/dist/webcomponents/p-1acbc680.entry.js.map +1 -0
  225. package/dist/webcomponents/p-25d82c85.system.entry.js +6 -0
  226. package/dist/webcomponents/p-25d82c85.system.entry.js.map +1 -0
  227. package/dist/webcomponents/p-27b820ac.system.entry.js +6 -0
  228. package/dist/webcomponents/p-27b820ac.system.entry.js.map +1 -0
  229. package/dist/webcomponents/p-2b0430f4.entry.js +6 -0
  230. package/dist/webcomponents/p-2b0430f4.entry.js.map +1 -0
  231. package/dist/webcomponents/p-2ff5f694.system.entry.js +6 -0
  232. package/dist/webcomponents/p-2ff5f694.system.entry.js.map +1 -0
  233. package/dist/webcomponents/p-357e1105.system.entry.js +6 -0
  234. package/dist/webcomponents/p-357e1105.system.entry.js.map +1 -0
  235. package/dist/webcomponents/p-35f07e4b.entry.js +6 -0
  236. package/dist/webcomponents/p-35f07e4b.entry.js.map +1 -0
  237. package/dist/webcomponents/p-3e449bd5.system.entry.js +6 -0
  238. package/dist/webcomponents/p-3e449bd5.system.entry.js.map +1 -0
  239. package/dist/webcomponents/p-46a75920.system.js +6 -0
  240. package/dist/webcomponents/p-46a75920.system.js.map +1 -0
  241. package/dist/webcomponents/p-491cdd00.entry.js +6 -0
  242. package/dist/webcomponents/p-491cdd00.entry.js.map +1 -0
  243. package/dist/webcomponents/p-52e5bcdd.entry.js +6 -0
  244. package/dist/webcomponents/p-52e5bcdd.entry.js.map +1 -0
  245. package/dist/webcomponents/p-60879543.system.entry.js +6 -0
  246. package/dist/webcomponents/p-60879543.system.entry.js.map +1 -0
  247. package/dist/webcomponents/p-6bfb8eb6.entry.js +6 -0
  248. package/dist/webcomponents/p-6bfb8eb6.entry.js.map +1 -0
  249. package/dist/webcomponents/p-6d0d2846.system.js +7 -0
  250. package/dist/webcomponents/p-6d0d2846.system.js.map +1 -0
  251. package/dist/webcomponents/p-7c3554a7.system.entry.js +17 -0
  252. package/dist/webcomponents/p-7c3554a7.system.entry.js.map +1 -0
  253. package/dist/webcomponents/p-8fd11f97.system.entry.js +6 -0
  254. package/dist/webcomponents/p-8fd11f97.system.entry.js.map +1 -0
  255. package/dist/webcomponents/p-907fab5d.entry.js +6 -0
  256. package/dist/webcomponents/p-907fab5d.entry.js.map +1 -0
  257. package/dist/webcomponents/p-929db2b8.entry.js +17 -0
  258. package/dist/webcomponents/p-929db2b8.entry.js.map +1 -0
  259. package/dist/webcomponents/p-98e6f0c1.system.entry.js +6 -0
  260. package/dist/webcomponents/p-98e6f0c1.system.entry.js.map +1 -0
  261. package/dist/webcomponents/p-9b0f20d7.entry.js +6 -0
  262. package/dist/webcomponents/p-9b0f20d7.entry.js.map +1 -0
  263. package/dist/webcomponents/p-ad5a7b8b.system.entry.js +6 -0
  264. package/dist/webcomponents/{p-f5e674ba.system.entry.js.map → p-ad5a7b8b.system.entry.js.map} +1 -1
  265. package/dist/webcomponents/p-c3811f09.js +7 -0
  266. package/dist/webcomponents/p-c3811f09.js.map +1 -0
  267. package/dist/webcomponents/p-c6a9c8ac.entry.js +6 -0
  268. package/dist/webcomponents/p-c6a9c8ac.entry.js.map +1 -0
  269. package/dist/webcomponents/p-d46495d5.system.entry.js +6 -0
  270. package/dist/webcomponents/p-d46495d5.system.entry.js.map +1 -0
  271. package/dist/webcomponents/p-dc3d284a.entry.js +6 -0
  272. package/dist/webcomponents/p-dc3d284a.entry.js.map +1 -0
  273. package/dist/webcomponents/p-e98418a4.entry.js +6 -0
  274. package/dist/webcomponents/{p-e8b5b14f.entry.js.map → p-e98418a4.entry.js.map} +1 -1
  275. package/dist/webcomponents/p-ef89bcc9.system.entry.js +6 -0
  276. package/dist/webcomponents/p-ef89bcc9.system.entry.js.map +1 -0
  277. package/dist/webcomponents/p-fc11eac9.entry.js +6 -0
  278. package/dist/webcomponents/p-fc11eac9.entry.js.map +1 -0
  279. package/dist/webcomponents/webcomponents.esm.js +1 -1
  280. package/dist/webcomponents/webcomponents.esm.js.map +1 -1
  281. package/dist/webcomponents/webcomponents.js +1 -1
  282. package/hydrate/index.js +1434 -645
  283. package/hydrate/index.mjs +1434 -645
  284. package/package.json +2 -2
  285. package/vscode-data.json +72 -2
  286. package/dist/cjs/br-input.cjs.entry.js +0 -150
  287. package/dist/cjs/br-input.cjs.entry.js.map +0 -1
  288. package/dist/cjs/br-list.cjs.entry.js +0 -82
  289. package/dist/cjs/br-list.cjs.entry.js.map +0 -1
  290. package/dist/cjs/br-radio.cjs.entry.js +0 -79
  291. package/dist/cjs/br-radio.cjs.entry.js.map +0 -1
  292. package/dist/cjs/index-81c11ce2.js.map +0 -1
  293. package/dist/collection/scripts/menu.js +0 -146
  294. package/dist/components/p-2d8e59f6.js +0 -7
  295. package/dist/components/p-2d8e59f6.js.map +0 -1
  296. package/dist/components/p-64831033.js +0 -17
  297. package/dist/components/p-64831033.js.map +0 -1
  298. package/dist/components/p-e4af8eac.js +0 -6
  299. package/dist/components/p-e4af8eac.js.map +0 -1
  300. package/dist/esm/br-input.entry.js +0 -146
  301. package/dist/esm/br-input.entry.js.map +0 -1
  302. package/dist/esm/br-list.entry.js +0 -78
  303. package/dist/esm/br-list.entry.js.map +0 -1
  304. package/dist/esm/br-radio.entry.js +0 -75
  305. package/dist/esm/br-radio.entry.js.map +0 -1
  306. package/dist/esm/index-aab4a630.js.map +0 -1
  307. package/dist/esm-es5/br-input.entry.js +0 -6
  308. package/dist/esm-es5/br-input.entry.js.map +0 -1
  309. package/dist/esm-es5/br-list.entry.js +0 -6
  310. package/dist/esm-es5/br-list.entry.js.map +0 -1
  311. package/dist/esm-es5/br-radio.entry.js +0 -6
  312. package/dist/esm-es5/br-radio.entry.js.map +0 -1
  313. package/dist/esm-es5/index-aab4a630.js +0 -6
  314. package/dist/esm-es5/index-aab4a630.js.map +0 -1
  315. package/dist/playwright.config.js +0 -39
  316. package/dist/playwright.config.js.map +0 -1
  317. package/dist/types/builds/govbr-ds/bibliotecas/wbc/govbr-ds-wbc/packages/webcomponents/.stencil/playwright.config.d.ts +0 -5
  318. package/dist/webcomponents/p-05343155.system.entry.js +0 -6
  319. package/dist/webcomponents/p-05343155.system.entry.js.map +0 -1
  320. package/dist/webcomponents/p-183614c8.system.entry.js +0 -6
  321. package/dist/webcomponents/p-183614c8.system.entry.js.map +0 -1
  322. package/dist/webcomponents/p-2083ff7b.entry.js +0 -6
  323. package/dist/webcomponents/p-2083ff7b.entry.js.map +0 -1
  324. package/dist/webcomponents/p-24da392a.entry.js +0 -6
  325. package/dist/webcomponents/p-24da392a.entry.js.map +0 -1
  326. package/dist/webcomponents/p-28476b17.system.entry.js +0 -6
  327. package/dist/webcomponents/p-28476b17.system.entry.js.map +0 -1
  328. package/dist/webcomponents/p-2c2c8629.js +0 -7
  329. package/dist/webcomponents/p-2c2c8629.js.map +0 -1
  330. package/dist/webcomponents/p-3f00a196.entry.js +0 -6
  331. package/dist/webcomponents/p-3f00a196.entry.js.map +0 -1
  332. package/dist/webcomponents/p-430afeb5.system.js +0 -7
  333. package/dist/webcomponents/p-430afeb5.system.js.map +0 -1
  334. package/dist/webcomponents/p-447c8036.entry.js +0 -6
  335. package/dist/webcomponents/p-447c8036.entry.js.map +0 -1
  336. package/dist/webcomponents/p-5539ffa8.entry.js +0 -6
  337. package/dist/webcomponents/p-55604b7f.system.entry.js +0 -6
  338. package/dist/webcomponents/p-55604b7f.system.entry.js.map +0 -1
  339. package/dist/webcomponents/p-61523bc9.entry.js +0 -6
  340. package/dist/webcomponents/p-61523bc9.entry.js.map +0 -1
  341. package/dist/webcomponents/p-626fe2cb.entry.js +0 -6
  342. package/dist/webcomponents/p-626fe2cb.entry.js.map +0 -1
  343. package/dist/webcomponents/p-6a8226b3.system.entry.js +0 -6
  344. package/dist/webcomponents/p-6a8226b3.system.entry.js.map +0 -1
  345. package/dist/webcomponents/p-71be2e3f.system.entry.js +0 -6
  346. package/dist/webcomponents/p-7a4e1265.system.entry.js +0 -6
  347. package/dist/webcomponents/p-7a4e1265.system.entry.js.map +0 -1
  348. package/dist/webcomponents/p-8039a644.system.entry.js +0 -6
  349. package/dist/webcomponents/p-8039a644.system.entry.js.map +0 -1
  350. package/dist/webcomponents/p-842b2513.entry.js +0 -6
  351. package/dist/webcomponents/p-842b2513.entry.js.map +0 -1
  352. package/dist/webcomponents/p-8f156fc4.system.entry.js +0 -6
  353. package/dist/webcomponents/p-8f156fc4.system.entry.js.map +0 -1
  354. package/dist/webcomponents/p-9f0d01d1.entry.js +0 -6
  355. package/dist/webcomponents/p-9f0d01d1.entry.js.map +0 -1
  356. package/dist/webcomponents/p-ae629243.system.entry.js +0 -6
  357. package/dist/webcomponents/p-ae629243.system.entry.js.map +0 -1
  358. package/dist/webcomponents/p-b88a5d9a.system.js +0 -6
  359. package/dist/webcomponents/p-b88a5d9a.system.js.map +0 -1
  360. package/dist/webcomponents/p-b9fd2bc0.system.entry.js +0 -6
  361. package/dist/webcomponents/p-b9fd2bc0.system.entry.js.map +0 -1
  362. package/dist/webcomponents/p-baad00f8.system.entry.js +0 -6
  363. package/dist/webcomponents/p-baad00f8.system.entry.js.map +0 -1
  364. package/dist/webcomponents/p-d174c8cd.entry.js +0 -6
  365. package/dist/webcomponents/p-d174c8cd.entry.js.map +0 -1
  366. package/dist/webcomponents/p-d83e2172.system.entry.js +0 -17
  367. package/dist/webcomponents/p-d83e2172.system.entry.js.map +0 -1
  368. package/dist/webcomponents/p-dcf41d91.entry.js +0 -6
  369. package/dist/webcomponents/p-dcf41d91.entry.js.map +0 -1
  370. package/dist/webcomponents/p-e027fca2.entry.js +0 -6
  371. package/dist/webcomponents/p-e027fca2.entry.js.map +0 -1
  372. package/dist/webcomponents/p-e6d921ef.entry.js +0 -17
  373. package/dist/webcomponents/p-e6d921ef.entry.js.map +0 -1
  374. package/dist/webcomponents/p-e8b5b14f.entry.js +0 -6
  375. package/dist/webcomponents/p-f5e674ba.system.entry.js +0 -6
@@ -6,7 +6,7 @@ const NAMESPACE = 'webcomponents';
6
6
  const BUILD = /* webcomponents */ { allRenderFn: true, appendChildSlotFix: true, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: true, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: true, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, 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: true, vdomXlink: true, watchCallback: true };
7
7
 
8
8
  /*
9
- Stencil Client Platform v4.22.2 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Platform v4.23.0 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var __defProp = Object.defineProperty;
12
12
  var __export = (target, all) => {
@@ -60,26 +60,18 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
60
60
  return import(
61
61
  /* webpackMode: "lazy" */
62
62
  './br-avatar.entry.js').then(processMod, consoleError);
63
- case 'br-checkbox':
63
+ case 'br-checkgroup':
64
64
  return import(
65
65
  /* webpackMode: "lazy" */
66
- './br-checkbox.entry.js').then(processMod, consoleError);
66
+ './br-checkgroup.entry.js').then(processMod, consoleError);
67
67
  case 'br-dropdown':
68
68
  return import(
69
69
  /* webpackMode: "lazy" */
70
70
  './br-dropdown.entry.js').then(processMod, consoleError);
71
- case 'br-input':
72
- return import(
73
- /* webpackMode: "lazy" */
74
- './br-input.entry.js').then(processMod, consoleError);
75
71
  case 'br-item':
76
72
  return import(
77
73
  /* webpackMode: "lazy" */
78
74
  './br-item.entry.js').then(processMod, consoleError);
79
- case 'br-list':
80
- return import(
81
- /* webpackMode: "lazy" */
82
- './br-list.entry.js').then(processMod, consoleError);
83
75
  case 'br-loading':
84
76
  return import(
85
77
  /* webpackMode: "lazy" */
@@ -88,10 +80,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
88
80
  return import(
89
81
  /* webpackMode: "lazy" */
90
82
  './br-message.entry.js').then(processMod, consoleError);
91
- case 'br-radio':
83
+ case 'br-select':
92
84
  return import(
93
85
  /* webpackMode: "lazy" */
94
- './br-radio.entry.js').then(processMod, consoleError);
86
+ './br-select.entry.js').then(processMod, consoleError);
95
87
  case 'br-switch':
96
88
  return import(
97
89
  /* webpackMode: "lazy" */
@@ -108,6 +100,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
108
100
  return import(
109
101
  /* webpackMode: "lazy" */
110
102
  './br-upload.entry.js').then(processMod, consoleError);
103
+ case 'br-input_3':
104
+ return import(
105
+ /* webpackMode: "lazy" */
106
+ './br-input_3.entry.js').then(processMod, consoleError);
107
+ case 'br-checkbox':
108
+ return import(
109
+ /* webpackMode: "lazy" */
110
+ './br-checkbox.entry.js').then(processMod, consoleError);
111
111
  case 'br-button_2':
112
112
  return import(
113
113
  /* webpackMode: "lazy" */
@@ -136,6 +136,7 @@ var CONTENT_REF_ID = "r";
136
136
  var ORG_LOCATION_ID = "o";
137
137
  var SLOT_NODE_ID = "s";
138
138
  var TEXT_NODE_ID = "t";
139
+ var COMMENT_NODE_ID = "c";
139
140
  var HYDRATE_ID = "s-id";
140
141
  var HYDRATED_STYLE_ID = "sty-id";
141
142
  var HYDRATE_CHILD_ID = "c-id";
@@ -287,20 +288,6 @@ var unwrapErr = (result) => {
287
288
  throw result.value;
288
289
  }
289
290
  };
290
- var createTime = (fnName, tagName = "") => {
291
- {
292
- return () => {
293
- return;
294
- };
295
- }
296
- };
297
- var uniqueTime = (key, measureText) => {
298
- {
299
- return () => {
300
- return;
301
- };
302
- }
303
- };
304
291
  var h = (nodeName, vnodeData, ...children) => {
305
292
  let child = null;
306
293
  let key = null;
@@ -402,444 +389,128 @@ var convertToPrivate = (node) => {
402
389
  vnode.$name$ = node.vname;
403
390
  return vnode;
404
391
  };
405
-
406
- // src/runtime/client-hydrate.ts
407
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
408
- const endHydrate = createTime("hydrateClient", tagName);
409
- const shadowRoot = hostElm.shadowRoot;
410
- const childRenderNodes = [];
411
- const slotNodes = [];
412
- const shadowRootNodes = shadowRoot ? [] : null;
413
- const vnode = hostRef.$vnode$ = newVNode(tagName, null);
414
- if (!plt.$orgLocNodes$) {
415
- initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
416
- }
417
- hostElm[HYDRATE_ID] = hostId;
418
- hostElm.removeAttribute(HYDRATE_ID);
419
- clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
420
- childRenderNodes.map((c) => {
421
- const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
422
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
423
- const node = c.$elm$;
424
- if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
425
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
426
- }
427
- if (!shadowRoot) {
428
- node["s-hn"] = tagName;
429
- if (orgLocationNode) {
430
- node["s-ol"] = orgLocationNode;
431
- node["s-ol"]["s-nr"] = node;
432
- }
433
- }
434
- plt.$orgLocNodes$.delete(orgLocationId);
435
- });
436
- if (shadowRoot) {
437
- shadowRootNodes.map((shadowRootNode) => {
438
- if (shadowRootNode) {
439
- shadowRoot.appendChild(shadowRootNode);
392
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
393
+ if (oldValue !== newValue) {
394
+ let isProp = isMemberInElement(elm, memberName);
395
+ let ln = memberName.toLowerCase();
396
+ if (memberName === "class") {
397
+ const classList = elm.classList;
398
+ const oldClasses = parseClassList(oldValue);
399
+ const newClasses = parseClassList(newValue);
400
+ if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
401
+ newClasses.push(elm["s-si"]);
440
402
  }
441
- });
442
- }
443
- endHydrate();
444
- };
445
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
446
- let childNodeType;
447
- let childIdSplt;
448
- let childVNode;
449
- let i2;
450
- if (node.nodeType === 1 /* ElementNode */) {
451
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
452
- if (childNodeType) {
453
- childIdSplt = childNodeType.split(".");
454
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
455
- childVNode = {
456
- $flags$: 0,
457
- $hostId$: childIdSplt[0],
458
- $nodeId$: childIdSplt[1],
459
- $depth$: childIdSplt[2],
460
- $index$: childIdSplt[3],
461
- $tag$: node.tagName.toLowerCase(),
462
- $elm$: node,
463
- $attrs$: null,
464
- $children$: null,
465
- $key$: null,
466
- $name$: null,
467
- $text$: null
468
- };
469
- childRenderNodes.push(childVNode);
470
- node.removeAttribute(HYDRATE_CHILD_ID);
471
- if (!parentVNode.$children$) {
472
- parentVNode.$children$ = [];
403
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
404
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
405
+ } else if (memberName === "style") {
406
+ {
407
+ for (const prop in oldValue) {
408
+ if (!newValue || newValue[prop] == null) {
409
+ if (prop.includes("-")) {
410
+ elm.style.removeProperty(prop);
411
+ } else {
412
+ elm.style[prop] = "";
413
+ }
414
+ }
473
415
  }
474
- parentVNode.$children$[childVNode.$index$] = childVNode;
475
- parentVNode = childVNode;
476
- if (shadowRootNodes && childVNode.$depth$ === "0") {
477
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
416
+ }
417
+ for (const prop in newValue) {
418
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
419
+ if (prop.includes("-")) {
420
+ elm.style.setProperty(prop, newValue[prop]);
421
+ } else {
422
+ elm.style[prop] = newValue[prop];
423
+ }
478
424
  }
479
425
  }
480
- }
481
- if (node.shadowRoot) {
482
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
483
- clientHydrate(
484
- parentVNode,
485
- childRenderNodes,
486
- slotNodes,
487
- shadowRootNodes,
488
- hostElm,
489
- node.shadowRoot.childNodes[i2],
490
- hostId
491
- );
426
+ } else if (memberName === "key") ; else if (memberName === "ref") {
427
+ if (newValue) {
428
+ newValue(elm);
492
429
  }
493
- }
494
- for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
495
- clientHydrate(
496
- parentVNode,
497
- childRenderNodes,
498
- slotNodes,
499
- shadowRootNodes,
500
- hostElm,
501
- node.childNodes[i2],
502
- hostId
503
- );
504
- }
505
- } else if (node.nodeType === 8 /* CommentNode */) {
506
- childIdSplt = node.nodeValue.split(".");
507
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
508
- childNodeType = childIdSplt[0];
509
- childVNode = {
510
- $flags$: 0,
511
- $hostId$: childIdSplt[1],
512
- $nodeId$: childIdSplt[2],
513
- $depth$: childIdSplt[3],
514
- $index$: childIdSplt[4],
515
- $elm$: node,
516
- $attrs$: null,
517
- $children$: null,
518
- $key$: null,
519
- $name$: null,
520
- $tag$: null,
521
- $text$: null
522
- };
523
- if (childNodeType === TEXT_NODE_ID) {
524
- childVNode.$elm$ = node.nextSibling;
525
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
526
- childVNode.$text$ = childVNode.$elm$.textContent;
527
- childRenderNodes.push(childVNode);
528
- node.remove();
529
- if (!parentVNode.$children$) {
530
- parentVNode.$children$ = [];
531
- }
532
- parentVNode.$children$[childVNode.$index$] = childVNode;
533
- if (shadowRootNodes && childVNode.$depth$ === "0") {
534
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
535
- }
430
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
431
+ if (memberName[2] === "-") {
432
+ memberName = memberName.slice(3);
433
+ } else if (isMemberInElement(win, ln)) {
434
+ memberName = ln.slice(2);
435
+ } else {
436
+ memberName = ln[2] + memberName.slice(3);
437
+ }
438
+ if (oldValue || newValue) {
439
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
440
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
441
+ if (oldValue) {
442
+ plt.rel(elm, memberName, oldValue, capture);
536
443
  }
537
- } else if (childVNode.$hostId$ === hostId) {
538
- if (childNodeType === SLOT_NODE_ID) {
539
- childVNode.$tag$ = "slot";
540
- if (childIdSplt[5]) {
541
- node["s-sn"] = childVNode.$name$ = childIdSplt[5];
542
- } else {
543
- node["s-sn"] = "";
544
- }
545
- node["s-sr"] = true;
546
- if (shadowRootNodes) {
547
- childVNode.$elm$ = doc.createElement(childVNode.$tag$);
548
- if (childVNode.$name$) {
549
- childVNode.$elm$.setAttribute("name", childVNode.$name$);
550
- }
551
- node.parentNode.insertBefore(childVNode.$elm$, node);
552
- node.remove();
553
- if (childVNode.$depth$ === "0") {
554
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
444
+ if (newValue) {
445
+ plt.ael(elm, memberName, newValue, capture);
446
+ }
447
+ }
448
+ } else {
449
+ const isComplex = isComplexType(newValue);
450
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
451
+ try {
452
+ if (!elm.tagName.includes("-")) {
453
+ const n = newValue == null ? "" : newValue;
454
+ if (memberName === "list") {
455
+ isProp = false;
456
+ } else if (oldValue == null || elm[memberName] != n) {
457
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
458
+ elm[memberName] = n;
459
+ } else {
460
+ elm.setAttribute(memberName, n);
461
+ }
555
462
  }
463
+ } else {
464
+ elm[memberName] = newValue;
556
465
  }
557
- slotNodes.push(childVNode);
558
- if (!parentVNode.$children$) {
559
- parentVNode.$children$ = [];
560
- }
561
- parentVNode.$children$[childVNode.$index$] = childVNode;
562
- } else if (childNodeType === CONTENT_REF_ID) {
563
- if (shadowRootNodes) {
564
- node.remove();
466
+ } catch (e) {
467
+ }
468
+ }
469
+ let xlink = false;
470
+ {
471
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
472
+ memberName = ln;
473
+ xlink = true;
474
+ }
475
+ }
476
+ if (newValue == null || newValue === false) {
477
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
478
+ if (xlink) {
479
+ elm.removeAttributeNS(XLINK_NS, memberName);
480
+ } else {
481
+ elm.removeAttribute(memberName);
565
482
  }
566
483
  }
484
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
485
+ newValue = newValue === true ? "" : newValue;
486
+ if (xlink) {
487
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
488
+ } else {
489
+ elm.setAttribute(memberName, newValue);
490
+ }
567
491
  }
568
492
  }
569
- } else if (parentVNode && parentVNode.$tag$ === "style") {
570
- const vnode = newVNode(null, node.textContent);
571
- vnode.$elm$ = node;
572
- vnode.$index$ = "0";
573
- parentVNode.$children$ = [vnode];
574
493
  }
575
494
  };
576
- var initializeDocumentHydrate = (node, orgLocNodes) => {
577
- if (node.nodeType === 1 /* ElementNode */) {
578
- let i2 = 0;
579
- if (node.shadowRoot) {
580
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
581
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
495
+ var parseClassListRegex = /\s/;
496
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
497
+ var CAPTURE_EVENT_SUFFIX = "Capture";
498
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
499
+
500
+ // src/runtime/vdom/update-element.ts
501
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
502
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
503
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
504
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
505
+ {
506
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
507
+ if (!(memberName in newVnodeAttrs)) {
508
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
582
509
  }
583
510
  }
584
- for (i2 = 0; i2 < node.childNodes.length; i2++) {
585
- initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
586
- }
587
- } else if (node.nodeType === 8 /* CommentNode */) {
588
- const childIdSplt = node.nodeValue.split(".");
589
- if (childIdSplt[0] === ORG_LOCATION_ID) {
590
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
591
- node.nodeValue = "";
592
- node["s-en"] = childIdSplt[3];
593
- }
594
- }
595
- };
596
- var parsePropertyValue = (propValue, propType) => {
597
- if (propValue != null && !isComplexType(propValue)) {
598
- if (propType & 4 /* Boolean */) {
599
- return propValue === "false" ? false : propValue === "" || !!propValue;
600
- }
601
- if (propType & 2 /* Number */) {
602
- return parseFloat(propValue);
603
- }
604
- if (propType & 1 /* String */) {
605
- return String(propValue);
606
- }
607
- return propValue;
608
- }
609
- return propValue;
610
- };
611
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
612
-
613
- // src/runtime/event-emitter.ts
614
- var createEvent = (ref, name, flags) => {
615
- const elm = getElement(ref);
616
- return {
617
- emit: (detail) => {
618
- return emitEvent(elm, name, {
619
- bubbles: !!(flags & 4 /* Bubbles */),
620
- composed: !!(flags & 2 /* Composed */),
621
- cancelable: !!(flags & 1 /* Cancellable */),
622
- detail
623
- });
624
- }
625
- };
626
- };
627
- var emitEvent = (elm, name, opts) => {
628
- const ev = plt.ce(name, opts);
629
- elm.dispatchEvent(ev);
630
- return ev;
631
- };
632
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
633
- var registerStyle = (scopeId2, cssText, allowCS) => {
634
- let style = styles.get(scopeId2);
635
- if (supportsConstructableStylesheets && allowCS) {
636
- style = style || new CSSStyleSheet();
637
- if (typeof style === "string") {
638
- style = cssText;
639
- } else {
640
- style.replaceSync(cssText);
641
- }
642
- } else {
643
- style = cssText;
644
- }
645
- styles.set(scopeId2, style);
646
- };
647
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
648
- var _a;
649
- const scopeId2 = getScopeId(cmpMeta);
650
- const style = styles.get(scopeId2);
651
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
652
- if (style) {
653
- if (typeof style === "string") {
654
- styleContainerNode = styleContainerNode.head || styleContainerNode;
655
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
656
- let styleElm;
657
- if (!appliedStyles) {
658
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
659
- }
660
- if (!appliedStyles.has(scopeId2)) {
661
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
662
- styleElm.innerHTML = style;
663
- } else {
664
- styleElm = doc.createElement("style");
665
- styleElm.innerHTML = style;
666
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
667
- if (nonce != null) {
668
- styleElm.setAttribute("nonce", nonce);
669
- }
670
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
671
- if (styleContainerNode.nodeName === "HEAD") {
672
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
673
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
674
- styleContainerNode.insertBefore(styleElm, referenceNode2);
675
- } else if ("host" in styleContainerNode) {
676
- if (supportsConstructableStylesheets) {
677
- const stylesheet = new CSSStyleSheet();
678
- stylesheet.replaceSync(style);
679
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
680
- } else {
681
- const existingStyleContainer = styleContainerNode.querySelector("style");
682
- if (existingStyleContainer) {
683
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
684
- } else {
685
- styleContainerNode.prepend(styleElm);
686
- }
687
- }
688
- } else {
689
- styleContainerNode.append(styleElm);
690
- }
691
- }
692
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
693
- styleContainerNode.insertBefore(styleElm, null);
694
- }
695
- }
696
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
697
- styleElm.innerHTML += SLOT_FB_CSS;
698
- }
699
- if (appliedStyles) {
700
- appliedStyles.add(scopeId2);
701
- }
702
- }
703
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
704
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
705
- }
706
- }
707
- return scopeId2;
708
- };
709
- var attachStyles = (hostRef) => {
710
- const cmpMeta = hostRef.$cmpMeta$;
711
- const elm = hostRef.$hostElement$;
712
- const flags = cmpMeta.$flags$;
713
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
714
- const scopeId2 = addStyle(
715
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
716
- cmpMeta);
717
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
718
- elm["s-sc"] = scopeId2;
719
- elm.classList.add(scopeId2 + "-h");
720
- }
721
- endAttachStyles();
722
- };
723
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
724
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
725
- if (oldValue !== newValue) {
726
- let isProp = isMemberInElement(elm, memberName);
727
- let ln = memberName.toLowerCase();
728
- if (memberName === "class") {
729
- const classList = elm.classList;
730
- const oldClasses = parseClassList(oldValue);
731
- const newClasses = parseClassList(newValue);
732
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
733
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
734
- } else if (memberName === "style") {
735
- {
736
- for (const prop in oldValue) {
737
- if (!newValue || newValue[prop] == null) {
738
- if (prop.includes("-")) {
739
- elm.style.removeProperty(prop);
740
- } else {
741
- elm.style[prop] = "";
742
- }
743
- }
744
- }
745
- }
746
- for (const prop in newValue) {
747
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
748
- if (prop.includes("-")) {
749
- elm.style.setProperty(prop, newValue[prop]);
750
- } else {
751
- elm.style[prop] = newValue[prop];
752
- }
753
- }
754
- }
755
- } else if (memberName === "key") ; else if (memberName === "ref") {
756
- if (newValue) {
757
- newValue(elm);
758
- }
759
- } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
760
- if (memberName[2] === "-") {
761
- memberName = memberName.slice(3);
762
- } else if (isMemberInElement(win, ln)) {
763
- memberName = ln.slice(2);
764
- } else {
765
- memberName = ln[2] + memberName.slice(3);
766
- }
767
- if (oldValue || newValue) {
768
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
769
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
770
- if (oldValue) {
771
- plt.rel(elm, memberName, oldValue, capture);
772
- }
773
- if (newValue) {
774
- plt.ael(elm, memberName, newValue, capture);
775
- }
776
- }
777
- } else {
778
- const isComplex = isComplexType(newValue);
779
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
780
- try {
781
- if (!elm.tagName.includes("-")) {
782
- const n = newValue == null ? "" : newValue;
783
- if (memberName === "list") {
784
- isProp = false;
785
- } else if (oldValue == null || elm[memberName] != n) {
786
- if (typeof elm.__lookupSetter__(memberName) === "function") {
787
- elm[memberName] = n;
788
- } else {
789
- elm.setAttribute(memberName, n);
790
- }
791
- }
792
- } else {
793
- elm[memberName] = newValue;
794
- }
795
- } catch (e) {
796
- }
797
- }
798
- let xlink = false;
799
- {
800
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
801
- memberName = ln;
802
- xlink = true;
803
- }
804
- }
805
- if (newValue == null || newValue === false) {
806
- if (newValue !== false || elm.getAttribute(memberName) === "") {
807
- if (xlink) {
808
- elm.removeAttributeNS(XLINK_NS, memberName);
809
- } else {
810
- elm.removeAttribute(memberName);
811
- }
812
- }
813
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
814
- newValue = newValue === true ? "" : newValue;
815
- if (xlink) {
816
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
817
- } else {
818
- elm.setAttribute(memberName, newValue);
819
- }
820
- }
821
- }
822
- }
823
- };
824
- var parseClassListRegex = /\s/;
825
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
826
- var CAPTURE_EVENT_SUFFIX = "Capture";
827
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
828
-
829
- // src/runtime/vdom/update-element.ts
830
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
831
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
832
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
833
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
834
- {
835
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
836
- if (!(memberName in newVnodeAttrs)) {
837
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
838
- }
839
- }
840
- }
841
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
842
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
511
+ }
512
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
513
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
843
514
  }
844
515
  };
845
516
  function sortedAttrNames(attrNames) {
@@ -1021,89 +692,683 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1021
692
  updateElement(oldVNode, newVNode2, isSvgMode);
1022
693
  }
1023
694
  }
1024
- if (oldChildren !== null && newChildren !== null) {
1025
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1026
- } else if (newChildren !== null) {
1027
- if (oldVNode.$text$ !== null) {
1028
- elm.textContent = "";
1029
- }
1030
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1031
- } else if (
1032
- // don't do this on initial render as it can cause non-hydrated content to be removed
1033
- !isInitialRender && BUILD.updatable && oldChildren !== null
1034
- ) {
1035
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
695
+ if (oldChildren !== null && newChildren !== null) {
696
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
697
+ } else if (newChildren !== null) {
698
+ if (oldVNode.$text$ !== null) {
699
+ elm.textContent = "";
700
+ }
701
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
702
+ } else if (
703
+ // don't do this on initial render as it can cause non-hydrated content to be removed
704
+ !isInitialRender && BUILD.updatable && oldChildren !== null
705
+ ) {
706
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
707
+ }
708
+ } else if (oldVNode.$text$ !== text) {
709
+ elm.data = text;
710
+ }
711
+ };
712
+ var updateFallbackSlotVisibility = (elm) => {
713
+ const childNodes = elm.__childNodes || elm.childNodes;
714
+ for (const childNode of childNodes) {
715
+ if (childNode.nodeType === 1 /* ElementNode */) {
716
+ if (childNode["s-sr"]) {
717
+ const slotName = childNode["s-sn"];
718
+ childNode.hidden = false;
719
+ for (const siblingNode of childNodes) {
720
+ if (siblingNode !== childNode) {
721
+ if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
722
+ if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
723
+ childNode.hidden = true;
724
+ break;
725
+ }
726
+ } else if (slotName === siblingNode["s-sn"]) {
727
+ if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
728
+ childNode.hidden = true;
729
+ break;
730
+ }
731
+ }
732
+ }
733
+ }
734
+ }
735
+ updateFallbackSlotVisibility(childNode);
736
+ }
737
+ }
738
+ };
739
+ var nullifyVNodeRefs = (vNode) => {
740
+ {
741
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
742
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
743
+ }
744
+ };
745
+ var insertBefore = (parent, newNode, reference) => {
746
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
747
+ return inserted;
748
+ };
749
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
750
+ const hostElm = hostRef.$hostElement$;
751
+ const cmpMeta = hostRef.$cmpMeta$;
752
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
753
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
754
+ hostTagName = hostElm.tagName;
755
+ if (cmpMeta.$attrsToReflect$) {
756
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
757
+ cmpMeta.$attrsToReflect$.map(
758
+ ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
759
+ );
760
+ }
761
+ if (isInitialLoad && rootVnode.$attrs$) {
762
+ for (const key of Object.keys(rootVnode.$attrs$)) {
763
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
764
+ rootVnode.$attrs$[key] = hostElm[key];
765
+ }
766
+ }
767
+ }
768
+ rootVnode.$tag$ = null;
769
+ rootVnode.$flags$ |= 4 /* isHost */;
770
+ hostRef.$vnode$ = rootVnode;
771
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
772
+ {
773
+ scopeId = hostElm["s-sc"];
774
+ }
775
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
776
+ patch(oldVNode, rootVnode, isInitialLoad);
777
+ };
778
+ var patchCloneNode = (HostElementPrototype) => {
779
+ const orgCloneNode = HostElementPrototype.cloneNode;
780
+ HostElementPrototype.cloneNode = function(deep) {
781
+ const srcNode = this;
782
+ const isShadowDom = srcNode.shadowRoot && supportsShadow ;
783
+ const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
784
+ if (!isShadowDom && deep) {
785
+ let i2 = 0;
786
+ let slotted, nonStencilNode;
787
+ const stencilPrivates = [
788
+ "s-id",
789
+ "s-cr",
790
+ "s-lr",
791
+ "s-rc",
792
+ "s-sc",
793
+ "s-p",
794
+ "s-cn",
795
+ "s-sr",
796
+ "s-sn",
797
+ "s-hn",
798
+ "s-ol",
799
+ "s-nr",
800
+ "s-si",
801
+ "s-rf",
802
+ "s-scs"
803
+ ];
804
+ const childNodes = this.__childNodes || this.childNodes;
805
+ for (; i2 < childNodes.length; i2++) {
806
+ slotted = childNodes[i2]["s-nr"];
807
+ nonStencilNode = stencilPrivates.every((privateField) => !childNodes[i2][privateField]);
808
+ if (slotted) {
809
+ if (clonedNode.__appendChild) {
810
+ clonedNode.__appendChild(slotted.cloneNode(true));
811
+ } else {
812
+ clonedNode.appendChild(slotted.cloneNode(true));
813
+ }
814
+ }
815
+ if (nonStencilNode) {
816
+ clonedNode.appendChild(childNodes[i2].cloneNode(true));
817
+ }
818
+ }
819
+ }
820
+ return clonedNode;
821
+ };
822
+ };
823
+ var patchSlotAppendChild = (HostElementPrototype) => {
824
+ HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
825
+ HostElementPrototype.appendChild = function(newChild) {
826
+ const slotName = newChild["s-sn"] = getSlotName(newChild);
827
+ const slotNode = getHostSlotNode(this.__childNodes || this.childNodes, slotName, this.tagName);
828
+ if (slotNode) {
829
+ addSlotRelocateNode(newChild, slotNode);
830
+ const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
831
+ const appendAfter = slotChildNodes[slotChildNodes.length - 1];
832
+ const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
833
+ updateFallbackSlotVisibility(this);
834
+ return insertedNode;
835
+ }
836
+ return this.__appendChild(newChild);
837
+ };
838
+ };
839
+ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
840
+ let slottedNodeLocation;
841
+ if (newChild["s-ol"] && newChild["s-ol"].isConnected) {
842
+ slottedNodeLocation = newChild["s-ol"];
843
+ } else {
844
+ slottedNodeLocation = document.createTextNode("");
845
+ slottedNodeLocation["s-nr"] = newChild;
846
+ }
847
+ if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
848
+ const parent = slotNode["s-cr"].parentNode;
849
+ const appendMethod = prepend ? parent.__prepend || parent.prepend : parent.__appendChild || parent.appendChild;
850
+ if (typeof position !== "undefined") {
851
+ {
852
+ slottedNodeLocation["s-oo"] = position;
853
+ const childNodes = parent.__childNodes || parent.childNodes;
854
+ const slotRelocateNodes = [slottedNodeLocation];
855
+ childNodes.forEach((n) => {
856
+ if (n["s-nr"]) slotRelocateNodes.push(n);
857
+ });
858
+ slotRelocateNodes.sort((a, b) => {
859
+ if (!a["s-oo"] || a["s-oo"] < b["s-oo"]) return -1;
860
+ else if (!b["s-oo"] || b["s-oo"] < a["s-oo"]) return 1;
861
+ return 0;
862
+ });
863
+ slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));
864
+ }
865
+ } else {
866
+ appendMethod.call(parent, slottedNodeLocation);
867
+ }
868
+ newChild["s-ol"] = slottedNodeLocation;
869
+ newChild["s-sh"] = slotNode["s-hn"];
870
+ };
871
+ var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
872
+ var getHostSlotNode = (childNodes, slotName, hostName) => {
873
+ let i2 = 0;
874
+ let childNode;
875
+ for (; i2 < childNodes.length; i2++) {
876
+ childNode = childNodes[i2];
877
+ if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
878
+ return childNode;
879
+ }
880
+ childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
881
+ if (childNode) {
882
+ return childNode;
883
+ }
884
+ }
885
+ return null;
886
+ };
887
+ var getHostSlotChildNodes = (n, slotName) => {
888
+ const childNodes = [n];
889
+ while ((n = n.nextSibling) && n["s-sn"] === slotName) {
890
+ childNodes.push(n);
891
+ }
892
+ return childNodes;
893
+ };
894
+ var createTime = (fnName, tagName = "") => {
895
+ {
896
+ return () => {
897
+ return;
898
+ };
899
+ }
900
+ };
901
+ var uniqueTime = (key, measureText) => {
902
+ {
903
+ return () => {
904
+ return;
905
+ };
906
+ }
907
+ };
908
+
909
+ // src/runtime/client-hydrate.ts
910
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
911
+ const endHydrate = createTime("hydrateClient", tagName);
912
+ const shadowRoot = hostElm.shadowRoot;
913
+ const childRenderNodes = [];
914
+ const slotNodes = [];
915
+ const slottedNodes = [];
916
+ const shadowRootNodes = shadowRoot ? [] : null;
917
+ const vnode = newVNode(tagName, null);
918
+ vnode.$elm$ = hostElm;
919
+ if (!plt.$orgLocNodes$) {
920
+ initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
921
+ }
922
+ hostElm[HYDRATE_ID] = hostId;
923
+ hostElm.removeAttribute(HYDRATE_ID);
924
+ hostRef.$vnode$ = clientHydrate(
925
+ vnode,
926
+ childRenderNodes,
927
+ slotNodes,
928
+ shadowRootNodes,
929
+ hostElm,
930
+ hostElm,
931
+ hostId,
932
+ slottedNodes
933
+ );
934
+ let crIndex = 0;
935
+ const crLength = childRenderNodes.length;
936
+ let childRenderNode;
937
+ for (crIndex; crIndex < crLength; crIndex++) {
938
+ childRenderNode = childRenderNodes[crIndex];
939
+ const orgLocationId = childRenderNode.$hostId$ + "." + childRenderNode.$nodeId$;
940
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
941
+ const node = childRenderNode.$elm$;
942
+ if (!shadowRoot) {
943
+ node["s-hn"] = tagName.toUpperCase();
944
+ if (childRenderNode.$tag$ === "slot") {
945
+ node["s-cr"] = hostElm["s-cr"];
946
+ }
947
+ }
948
+ if (orgLocationNode && orgLocationNode.isConnected) {
949
+ if (shadowRoot && orgLocationNode["s-en"] === "") {
950
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
951
+ }
952
+ orgLocationNode.parentNode.removeChild(orgLocationNode);
953
+ if (!shadowRoot) {
954
+ node["s-oo"] = parseInt(childRenderNode.$nodeId$);
955
+ }
956
+ }
957
+ plt.$orgLocNodes$.delete(orgLocationId);
958
+ }
959
+ const hosts = [];
960
+ let snIndex = 0;
961
+ const snLen = slottedNodes.length;
962
+ let slotGroup;
963
+ let snGroupIdx;
964
+ let snGroupLen;
965
+ let slottedItem;
966
+ for (snIndex; snIndex < snLen; snIndex++) {
967
+ slotGroup = slottedNodes[snIndex];
968
+ if (!slotGroup || !slotGroup.length) continue;
969
+ snGroupLen = slotGroup.length;
970
+ snGroupIdx = 0;
971
+ for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {
972
+ slottedItem = slotGroup[snGroupIdx];
973
+ if (!hosts[slottedItem.hostId]) {
974
+ hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);
975
+ }
976
+ if (!hosts[slottedItem.hostId]) continue;
977
+ const hostEle = hosts[slottedItem.hostId];
978
+ if (!hostEle.shadowRoot || !shadowRoot) {
979
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
980
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
981
+ slottedItem.slot["s-cr"] = hostEle;
982
+ } else {
983
+ const hostChildren = hostEle.__childNodes || hostEle.childNodes;
984
+ slottedItem.slot["s-cr"] = hostChildren[0];
985
+ }
986
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
987
+ }
988
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
989
+ hostEle.appendChild(slottedItem.node);
990
+ }
991
+ }
992
+ }
993
+ if (shadowRoot) {
994
+ let rnIdex = 0;
995
+ const rnLen = shadowRootNodes.length;
996
+ for (rnIdex; rnIdex < rnLen; rnIdex++) {
997
+ shadowRoot.appendChild(shadowRootNodes[rnIdex]);
998
+ }
999
+ Array.from(hostElm.childNodes).forEach((node) => {
1000
+ if (node.nodeType === 8 /* CommentNode */ && typeof node["s-sn"] !== "string") {
1001
+ node.parentNode.removeChild(node);
1002
+ }
1003
+ });
1004
+ }
1005
+ hostRef.$hostElement$ = hostElm;
1006
+ endHydrate();
1007
+ };
1008
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {
1009
+ let childNodeType;
1010
+ let childIdSplt;
1011
+ let childVNode;
1012
+ let i2;
1013
+ const scopeId2 = hostElm["s-sc"];
1014
+ if (node.nodeType === 1 /* ElementNode */) {
1015
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1016
+ if (childNodeType) {
1017
+ childIdSplt = childNodeType.split(".");
1018
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
1019
+ childVNode = createSimpleVNode({
1020
+ $flags$: 0,
1021
+ $hostId$: childIdSplt[0],
1022
+ $nodeId$: childIdSplt[1],
1023
+ $depth$: childIdSplt[2],
1024
+ $index$: childIdSplt[3],
1025
+ $tag$: node.tagName.toLowerCase(),
1026
+ $elm$: node,
1027
+ // If we don't add the initial classes to the VNode, the first `vdom-render.ts` reconciliation will fail:
1028
+ // client side changes before componentDidLoad will be ignored, `set-accessor.ts` will just take the element's initial classes
1029
+ $attrs$: { class: node.className }
1030
+ });
1031
+ childRenderNodes.push(childVNode);
1032
+ node.removeAttribute(HYDRATE_CHILD_ID);
1033
+ if (!parentVNode.$children$) {
1034
+ parentVNode.$children$ = [];
1035
+ }
1036
+ const slotName = childVNode.$elm$.getAttribute("s-sn");
1037
+ if (typeof slotName === "string") {
1038
+ if (childVNode.$tag$ === "slot-fb") {
1039
+ addSlot(
1040
+ slotName,
1041
+ childIdSplt[2],
1042
+ childVNode,
1043
+ node,
1044
+ parentVNode,
1045
+ childRenderNodes,
1046
+ slotNodes,
1047
+ shadowRootNodes,
1048
+ slottedNodes
1049
+ );
1050
+ }
1051
+ childVNode.$elm$["s-sn"] = slotName;
1052
+ childVNode.$elm$.removeAttribute("s-sn");
1053
+ }
1054
+ if (childVNode.$index$ !== void 0) {
1055
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1056
+ }
1057
+ if (scopeId2) node["s-si"] = scopeId2;
1058
+ parentVNode = childVNode;
1059
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1060
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1061
+ }
1062
+ }
1063
+ }
1064
+ if (node.shadowRoot) {
1065
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
1066
+ clientHydrate(
1067
+ parentVNode,
1068
+ childRenderNodes,
1069
+ slotNodes,
1070
+ shadowRootNodes,
1071
+ hostElm,
1072
+ node.shadowRoot.childNodes[i2],
1073
+ hostId,
1074
+ slottedNodes
1075
+ );
1076
+ }
1077
+ }
1078
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1079
+ for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {
1080
+ clientHydrate(
1081
+ parentVNode,
1082
+ childRenderNodes,
1083
+ slotNodes,
1084
+ shadowRootNodes,
1085
+ hostElm,
1086
+ nonShadowNodes[i2],
1087
+ hostId,
1088
+ slottedNodes
1089
+ );
1090
+ }
1091
+ } else if (node.nodeType === 8 /* CommentNode */) {
1092
+ childIdSplt = node.nodeValue.split(".");
1093
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
1094
+ childNodeType = childIdSplt[0];
1095
+ childVNode = createSimpleVNode({
1096
+ $hostId$: childIdSplt[1],
1097
+ $nodeId$: childIdSplt[2],
1098
+ $depth$: childIdSplt[3],
1099
+ $index$: childIdSplt[4] || "0",
1100
+ $elm$: node,
1101
+ $attrs$: null,
1102
+ $children$: null,
1103
+ $key$: null,
1104
+ $name$: null,
1105
+ $tag$: null,
1106
+ $text$: null
1107
+ });
1108
+ if (childNodeType === TEXT_NODE_ID) {
1109
+ childVNode.$elm$ = node.nextSibling;
1110
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
1111
+ childVNode.$text$ = childVNode.$elm$.textContent;
1112
+ childRenderNodes.push(childVNode);
1113
+ node.remove();
1114
+ if (hostId === childVNode.$hostId$) {
1115
+ if (!parentVNode.$children$) {
1116
+ parentVNode.$children$ = [];
1117
+ }
1118
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1119
+ }
1120
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
1121
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1122
+ }
1123
+ }
1124
+ } else if (childNodeType === COMMENT_NODE_ID) {
1125
+ childVNode.$elm$ = node.nextSibling;
1126
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {
1127
+ childRenderNodes.push(childVNode);
1128
+ node.remove();
1129
+ }
1130
+ } else if (childVNode.$hostId$ === hostId) {
1131
+ if (childNodeType === SLOT_NODE_ID) {
1132
+ childVNode.$tag$ = "slot";
1133
+ const slotName = node["s-sn"] = childVNode.$name$ = childIdSplt[5] || "";
1134
+ addSlot(
1135
+ slotName,
1136
+ childIdSplt[2],
1137
+ childVNode,
1138
+ node,
1139
+ parentVNode,
1140
+ childRenderNodes,
1141
+ slotNodes,
1142
+ shadowRootNodes,
1143
+ slottedNodes
1144
+ );
1145
+ } else if (childNodeType === CONTENT_REF_ID) {
1146
+ if (shadowRootNodes) {
1147
+ node.remove();
1148
+ }
1149
+ }
1150
+ }
1151
+ }
1152
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
1153
+ const vnode = newVNode(null, node.textContent);
1154
+ vnode.$elm$ = node;
1155
+ vnode.$index$ = "0";
1156
+ parentVNode.$children$ = [vnode];
1157
+ }
1158
+ return parentVNode;
1159
+ };
1160
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
1161
+ if (node.nodeType === 1 /* ElementNode */) {
1162
+ const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);
1163
+ if (componentId) {
1164
+ orgLocNodes.set(componentId, node);
1165
+ }
1166
+ let i2 = 0;
1167
+ if (node.shadowRoot) {
1168
+ for (; i2 < node.shadowRoot.childNodes.length; i2++) {
1169
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
1170
+ }
1171
+ }
1172
+ const nonShadowNodes = node.__childNodes || node.childNodes;
1173
+ for (i2 = 0; i2 < nonShadowNodes.length; i2++) {
1174
+ initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);
1175
+ }
1176
+ } else if (node.nodeType === 8 /* CommentNode */) {
1177
+ const childIdSplt = node.nodeValue.split(".");
1178
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
1179
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
1180
+ node.nodeValue = "";
1181
+ node["s-en"] = childIdSplt[3];
1182
+ }
1183
+ }
1184
+ };
1185
+ var createSimpleVNode = (vnode) => {
1186
+ const defaultVNode = {
1187
+ $flags$: 0,
1188
+ $hostId$: null,
1189
+ $nodeId$: null,
1190
+ $depth$: null,
1191
+ $index$: "0",
1192
+ $elm$: null,
1193
+ $attrs$: null,
1194
+ $children$: null,
1195
+ $key$: null,
1196
+ $name$: null,
1197
+ $tag$: null,
1198
+ $text$: null
1199
+ };
1200
+ return { ...defaultVNode, ...vnode };
1201
+ };
1202
+ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {
1203
+ node["s-sr"] = true;
1204
+ const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
1205
+ if (shadowRootNodes) {
1206
+ const slot = childVNode.$elm$ = doc.createElement(childVNode.$tag$);
1207
+ if (childVNode.$name$) {
1208
+ childVNode.$elm$.setAttribute("name", slotName);
1209
+ }
1210
+ if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
1211
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1212
+ } else {
1213
+ node.parentNode.insertBefore(childVNode.$elm$, node);
1214
+ }
1215
+ addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
1216
+ node.remove();
1217
+ if (childVNode.$depth$ === "0") {
1218
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
1219
+ }
1220
+ } else {
1221
+ const slot = childVNode.$elm$;
1222
+ const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;
1223
+ addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);
1224
+ if (shouldMove) {
1225
+ parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1226
+ }
1227
+ childRenderNodes.push(childVNode);
1228
+ }
1229
+ slotNodes.push(childVNode);
1230
+ if (!parentVNode.$children$) {
1231
+ parentVNode.$children$ = [];
1232
+ }
1233
+ parentVNode.$children$[childVNode.$index$] = childVNode;
1234
+ }
1235
+ var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1236
+ let slottedNode = slotNode.nextSibling;
1237
+ slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
1238
+ while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
1239
+ slottedNode["s-sn"] = slotName;
1240
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1241
+ slottedNode = slottedNode.nextSibling;
1242
+ }
1243
+ };
1244
+ var parsePropertyValue = (propValue, propType) => {
1245
+ if (propValue != null && !isComplexType(propValue)) {
1246
+ if (propType & 4 /* Boolean */) {
1247
+ return propValue === "false" ? false : propValue === "" || !!propValue;
1248
+ }
1249
+ if (propType & 2 /* Number */) {
1250
+ return parseFloat(propValue);
1251
+ }
1252
+ if (propType & 1 /* String */) {
1253
+ return String(propValue);
1254
+ }
1255
+ return propValue;
1256
+ }
1257
+ return propValue;
1258
+ };
1259
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1260
+
1261
+ // src/runtime/event-emitter.ts
1262
+ var createEvent = (ref, name, flags) => {
1263
+ const elm = getElement(ref);
1264
+ return {
1265
+ emit: (detail) => {
1266
+ return emitEvent(elm, name, {
1267
+ bubbles: !!(flags & 4 /* Bubbles */),
1268
+ composed: !!(flags & 2 /* Composed */),
1269
+ cancelable: !!(flags & 1 /* Cancellable */),
1270
+ detail
1271
+ });
1272
+ }
1273
+ };
1274
+ };
1275
+ var emitEvent = (elm, name, opts) => {
1276
+ const ev = plt.ce(name, opts);
1277
+ elm.dispatchEvent(ev);
1278
+ return ev;
1279
+ };
1280
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1281
+ var registerStyle = (scopeId2, cssText, allowCS) => {
1282
+ let style = styles.get(scopeId2);
1283
+ if (supportsConstructableStylesheets && allowCS) {
1284
+ style = style || new CSSStyleSheet();
1285
+ if (typeof style === "string") {
1286
+ style = cssText;
1287
+ } else {
1288
+ style.replaceSync(cssText);
1036
1289
  }
1037
- } else if (oldVNode.$text$ !== text) {
1038
- elm.data = text;
1290
+ } else {
1291
+ style = cssText;
1039
1292
  }
1293
+ styles.set(scopeId2, style);
1040
1294
  };
1041
- var updateFallbackSlotVisibility = (elm) => {
1042
- const childNodes = elm.childNodes;
1043
- for (const childNode of childNodes) {
1044
- if (childNode.nodeType === 1 /* ElementNode */) {
1045
- if (childNode["s-sr"]) {
1046
- const slotName = childNode["s-sn"];
1047
- childNode.hidden = false;
1048
- for (const siblingNode of childNodes) {
1049
- if (siblingNode !== childNode) {
1050
- if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
1051
- if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
1052
- childNode.hidden = true;
1053
- break;
1295
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
1296
+ var _a;
1297
+ const scopeId2 = getScopeId(cmpMeta);
1298
+ const style = styles.get(scopeId2);
1299
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
1300
+ if (style) {
1301
+ if (typeof style === "string") {
1302
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
1303
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1304
+ let styleElm;
1305
+ if (!appliedStyles) {
1306
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1307
+ }
1308
+ if (!appliedStyles.has(scopeId2)) {
1309
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1310
+ styleElm.innerHTML = style;
1311
+ } else {
1312
+ styleElm = doc.createElement("style");
1313
+ styleElm.innerHTML = style;
1314
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1315
+ if (nonce != null) {
1316
+ styleElm.setAttribute("nonce", nonce);
1317
+ }
1318
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1319
+ if (styleContainerNode.nodeName === "HEAD") {
1320
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1321
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1322
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
1323
+ } else if ("host" in styleContainerNode) {
1324
+ if (supportsConstructableStylesheets) {
1325
+ const stylesheet = new CSSStyleSheet();
1326
+ stylesheet.replaceSync(style);
1327
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1328
+ } else {
1329
+ const existingStyleContainer = styleContainerNode.querySelector("style");
1330
+ if (existingStyleContainer) {
1331
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1332
+ } else {
1333
+ styleContainerNode.prepend(styleElm);
1334
+ }
1054
1335
  }
1055
1336
  } else {
1056
- if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
1057
- childNode.hidden = true;
1058
- break;
1059
- }
1337
+ styleContainerNode.append(styleElm);
1060
1338
  }
1061
1339
  }
1340
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
1341
+ styleContainerNode.insertBefore(styleElm, null);
1342
+ }
1343
+ }
1344
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1345
+ styleElm.innerHTML += SLOT_FB_CSS;
1346
+ }
1347
+ if (appliedStyles) {
1348
+ appliedStyles.add(scopeId2);
1062
1349
  }
1063
1350
  }
1064
- updateFallbackSlotVisibility(childNode);
1351
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1352
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1065
1353
  }
1066
1354
  }
1355
+ return scopeId2;
1067
1356
  };
1068
- var nullifyVNodeRefs = (vNode) => {
1069
- {
1070
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1071
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1072
- }
1073
- };
1074
- var insertBefore = (parent, newNode, reference) => {
1075
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
1076
- return inserted;
1077
- };
1078
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1079
- const hostElm = hostRef.$hostElement$;
1357
+ var attachStyles = (hostRef) => {
1080
1358
  const cmpMeta = hostRef.$cmpMeta$;
1081
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1082
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1083
- hostTagName = hostElm.tagName;
1084
- if (cmpMeta.$attrsToReflect$) {
1085
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1086
- cmpMeta.$attrsToReflect$.map(
1087
- ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
1088
- );
1089
- }
1090
- if (isInitialLoad && rootVnode.$attrs$) {
1091
- for (const key of Object.keys(rootVnode.$attrs$)) {
1092
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1093
- rootVnode.$attrs$[key] = hostElm[key];
1094
- }
1095
- }
1096
- }
1097
- rootVnode.$tag$ = null;
1098
- rootVnode.$flags$ |= 4 /* isHost */;
1099
- hostRef.$vnode$ = rootVnode;
1100
- rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1101
- {
1102
- scopeId = hostElm["s-sc"];
1359
+ const elm = hostRef.$hostElement$;
1360
+ const flags = cmpMeta.$flags$;
1361
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1362
+ const scopeId2 = addStyle(
1363
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1364
+ cmpMeta);
1365
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
1366
+ elm["s-sc"] = scopeId2;
1367
+ elm.classList.add(scopeId2 + "-h");
1103
1368
  }
1104
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1105
- patch(oldVNode, rootVnode, isInitialLoad);
1369
+ endAttachStyles();
1106
1370
  };
1371
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1107
1372
 
1108
1373
  // src/runtime/update-component.ts
1109
1374
  var attachToAncestor = (hostRef, ancestorComponent) => {
@@ -1324,23 +1589,23 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1324
1589
  var _a, _b;
1325
1590
  const prototype = Cstr.prototype;
1326
1591
  if (cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
1327
- FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach(
1328
- (cbName) => Object.defineProperty(prototype, cbName, {
1592
+ FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
1593
+ Object.defineProperty(prototype, cbName, {
1329
1594
  value(...args) {
1330
1595
  const hostRef = getHostRef(this);
1331
1596
  const instance = hostRef.$lazyInstance$ ;
1332
1597
  if (!instance) {
1333
- hostRef.$onReadyPromise$.then((instance2) => {
1334
- const cb = instance2[cbName];
1335
- typeof cb === "function" && cb.call(instance2, ...args);
1598
+ hostRef.$onReadyPromise$.then((asyncInstance) => {
1599
+ const cb = asyncInstance[cbName];
1600
+ typeof cb === "function" && cb.call(asyncInstance, ...args);
1336
1601
  });
1337
1602
  } else {
1338
- const cb = instance[cbName];
1603
+ const cb = instance[cbName] ;
1339
1604
  typeof cb === "function" && cb.call(instance, ...args);
1340
1605
  }
1341
1606
  }
1342
- })
1343
- );
1607
+ });
1608
+ });
1344
1609
  }
1345
1610
  if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1346
1611
  if (Cstr.watchers && !cmpMeta.$watchers$) {
@@ -1349,16 +1614,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1349
1614
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1350
1615
  members.map(([memberName, [memberFlags]]) => {
1351
1616
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1352
- Object.defineProperty(prototype, memberName, {
1353
- get() {
1354
- return getValue(this, memberName);
1355
- },
1356
- set(newValue) {
1357
- setValue(this, memberName, newValue, cmpMeta);
1358
- },
1359
- configurable: true,
1360
- enumerable: true
1361
- });
1617
+ if ((memberFlags & 2048 /* Getter */) === 0) {
1618
+ Object.defineProperty(prototype, memberName, {
1619
+ get() {
1620
+ return getValue(this, memberName);
1621
+ },
1622
+ set(newValue) {
1623
+ setValue(this, memberName, newValue, cmpMeta);
1624
+ },
1625
+ configurable: true,
1626
+ enumerable: true
1627
+ });
1628
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
1629
+ {
1630
+ Object.defineProperty(prototype, memberName, {
1631
+ get() {
1632
+ const ref = getHostRef(this);
1633
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1634
+ if (!instance) return;
1635
+ return instance[memberName];
1636
+ },
1637
+ configurable: true,
1638
+ enumerable: true
1639
+ });
1640
+ }
1641
+ if (memberFlags & 4096 /* Setter */) {
1642
+ const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
1643
+ Object.defineProperty(prototype, memberName, {
1644
+ set(newValue) {
1645
+ const ref = getHostRef(this);
1646
+ if (origSetter) {
1647
+ const currentValue = ref.$hostElement$[memberName];
1648
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1649
+ ref.$instanceValues$.set(memberName, currentValue);
1650
+ }
1651
+ origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
1652
+ setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
1653
+ return;
1654
+ }
1655
+ if (!ref) return;
1656
+ const setterSetVal = () => {
1657
+ const currentValue = ref.$lazyInstance$[memberName];
1658
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1659
+ ref.$instanceValues$.set(memberName, currentValue);
1660
+ }
1661
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
1662
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1663
+ };
1664
+ if (ref.$lazyInstance$) {
1665
+ setterSetVal();
1666
+ } else {
1667
+ ref.$onReadyPromise$.then(() => setterSetVal());
1668
+ }
1669
+ }
1670
+ });
1671
+ }
1672
+ }
1362
1673
  } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1363
1674
  Object.defineProperty(prototype, memberName, {
1364
1675
  value(...args) {
@@ -1398,7 +1709,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1398
1709
  }
1399
1710
  return;
1400
1711
  }
1401
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1712
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1713
+ if (!propDesc.get || !!propDesc.set) {
1714
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1715
+ }
1402
1716
  });
1403
1717
  };
1404
1718
  Cstr.observedAttributes = Array.from(
@@ -1566,93 +1880,6 @@ var disconnectedCallback = async (elm) => {
1566
1880
  }
1567
1881
  }
1568
1882
  };
1569
- var patchCloneNode = (HostElementPrototype) => {
1570
- const orgCloneNode = HostElementPrototype.cloneNode;
1571
- HostElementPrototype.cloneNode = function(deep) {
1572
- const srcNode = this;
1573
- const isShadowDom = srcNode.shadowRoot && supportsShadow ;
1574
- const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
1575
- if (!isShadowDom && deep) {
1576
- let i2 = 0;
1577
- let slotted, nonStencilNode;
1578
- const stencilPrivates = [
1579
- "s-id",
1580
- "s-cr",
1581
- "s-lr",
1582
- "s-rc",
1583
- "s-sc",
1584
- "s-p",
1585
- "s-cn",
1586
- "s-sr",
1587
- "s-sn",
1588
- "s-hn",
1589
- "s-ol",
1590
- "s-nr",
1591
- "s-si",
1592
- "s-rf",
1593
- "s-scs"
1594
- ];
1595
- for (; i2 < srcNode.childNodes.length; i2++) {
1596
- slotted = srcNode.childNodes[i2]["s-nr"];
1597
- nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i2][privateField]);
1598
- if (slotted) {
1599
- if (clonedNode.__appendChild) {
1600
- clonedNode.__appendChild(slotted.cloneNode(true));
1601
- } else {
1602
- clonedNode.appendChild(slotted.cloneNode(true));
1603
- }
1604
- }
1605
- if (nonStencilNode) {
1606
- clonedNode.appendChild(srcNode.childNodes[i2].cloneNode(true));
1607
- }
1608
- }
1609
- }
1610
- return clonedNode;
1611
- };
1612
- };
1613
- var patchSlotAppendChild = (HostElementPrototype) => {
1614
- HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
1615
- HostElementPrototype.appendChild = function(newChild) {
1616
- const slotName = newChild["s-sn"] = getSlotName(newChild);
1617
- const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
1618
- if (slotNode) {
1619
- const slotPlaceholder = document.createTextNode("");
1620
- slotPlaceholder["s-nr"] = newChild;
1621
- slotNode["s-cr"].parentNode.__appendChild(slotPlaceholder);
1622
- newChild["s-ol"] = slotPlaceholder;
1623
- newChild["s-sh"] = slotNode["s-hn"];
1624
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1625
- const appendAfter = slotChildNodes[slotChildNodes.length - 1];
1626
- const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1627
- updateFallbackSlotVisibility(this);
1628
- return insertedNode;
1629
- }
1630
- return this.__appendChild(newChild);
1631
- };
1632
- };
1633
- var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
1634
- var getHostSlotNode = (childNodes, slotName, hostName) => {
1635
- let i2 = 0;
1636
- let childNode;
1637
- for (; i2 < childNodes.length; i2++) {
1638
- childNode = childNodes[i2];
1639
- if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
1640
- return childNode;
1641
- }
1642
- childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
1643
- if (childNode) {
1644
- return childNode;
1645
- }
1646
- }
1647
- return null;
1648
- };
1649
- var getHostSlotChildNodes = (n, slotName) => {
1650
- const childNodes = [n];
1651
- while ((n = n.nextSibling) && n["s-sn"] === slotName) {
1652
- childNodes.push(n);
1653
- }
1654
- return childNodes;
1655
- };
1656
1883
 
1657
1884
  // src/runtime/bootstrap-lazy.ts
1658
1885
  var bootstrapLazy = (lazyBundles, options = {}) => {
@@ -1831,4 +2058,4 @@ var setNonce = (nonce) => plt.$nonce$ = nonce;
1831
2058
 
1832
2059
  export { H, Host as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1833
2060
 
1834
- //# sourceMappingURL=index-aab4a630.js.map
2061
+ //# sourceMappingURL=index-45af9b53.js.map