@zanichelli/albe-web-components 12.1.3-rc → 12.2.0-rc

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 (811) hide show
  1. package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
  2. package/dist/cjs/breakpoints-ebe1a437.js +9 -0
  3. package/dist/cjs/hammer-4f20813e.js +2650 -0
  4. package/dist/cjs/icons-d385b990.js +862 -0
  5. package/dist/cjs/index-00b6f6ba.js +20 -0
  6. package/dist/cjs/index-115387e6.js +17 -0
  7. package/dist/cjs/index-195ca522.js +2326 -0
  8. package/dist/cjs/index-20f305f7.js +17 -0
  9. package/dist/cjs/index-23ca3837.js +53 -0
  10. package/dist/cjs/index-270a4cf7.js +22 -0
  11. package/dist/cjs/index-2b0eb1f0.js +34 -0
  12. package/dist/cjs/index-4e41767c.js +21 -0
  13. package/dist/cjs/index-53c72420.js +79 -0
  14. package/dist/cjs/index-544902f0.js +21 -0
  15. package/dist/cjs/index-bb84dc1c.js +21 -0
  16. package/dist/cjs/index-cf9497bc.js +344 -0
  17. package/dist/cjs/index-d30158ef.js +67 -0
  18. package/dist/cjs/index-df08bc63.js +29 -0
  19. package/dist/cjs/index-e3bf75bc.js +41 -0
  20. package/dist/cjs/index-e78caf11.js +74 -0
  21. package/dist/cjs/index-f64e5dfe.js +17 -0
  22. package/dist/cjs/index-f6910e7f.js +21 -0
  23. package/dist/cjs/index.cjs.js +331 -0
  24. package/dist/cjs/loader.cjs.js +21 -0
  25. package/dist/cjs/utils-8335dca3.js +2706 -0
  26. package/dist/cjs/utils-ee86db4f.js +110 -0
  27. package/dist/cjs/web-components-library.cjs.js +19 -0
  28. package/dist/cjs/z-accordion.cjs.entry.js +67 -0
  29. package/dist/cjs/z-alert.cjs.entry.js +19 -0
  30. package/dist/cjs/z-anchor-navigation.cjs.entry.js +53 -0
  31. package/dist/cjs/z-app-header_11.cjs.entry.js +1058 -0
  32. package/dist/cjs/z-aria-alert.cjs.entry.js +19 -0
  33. package/dist/cjs/z-avatar.cjs.entry.js +44 -0
  34. package/dist/cjs/z-book-card.cjs.entry.js +126 -0
  35. package/dist/cjs/z-breadcrumb.cjs.entry.js +232 -0
  36. package/dist/cjs/z-button-sort.cjs.entry.js +53 -0
  37. package/dist/cjs/z-card.cjs.entry.js +53 -0
  38. package/dist/cjs/z-carousel.cjs.entry.js +150 -0
  39. package/dist/cjs/z-chip.cjs.entry.js +32 -0
  40. package/dist/cjs/z-combobox.cjs.entry.js +201 -0
  41. package/dist/cjs/z-contextual-menu.cjs.entry.js +46 -0
  42. package/dist/cjs/z-cover-hero.cjs.entry.js +57 -0
  43. package/dist/cjs/z-date-picker.cjs.entry.js +477 -0
  44. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +1016 -0
  45. package/dist/cjs/z-file-upload.cjs.entry.js +185 -0
  46. package/dist/cjs/z-file.cjs.entry.js +48 -0
  47. package/dist/cjs/z-ghost-loading.cjs.entry.js +19 -0
  48. package/dist/cjs/z-info-box.cjs.entry.js +25 -0
  49. package/dist/cjs/z-info-reveal.cjs.entry.js +65 -0
  50. package/dist/cjs/z-link.cjs.entry.js +74 -0
  51. package/dist/cjs/z-logo.cjs.entry.js +26 -0
  52. package/dist/cjs/z-menu-section.cjs.entry.js +54 -0
  53. package/dist/cjs/z-menu.cjs.entry.js +119 -0
  54. package/dist/cjs/z-messages-pocket.cjs.entry.js +46 -0
  55. package/dist/cjs/z-myz-card-alert.cjs.entry.js +63 -0
  56. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +36 -0
  57. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +19 -0
  58. package/dist/cjs/z-myz-card-footer.cjs.entry.js +69 -0
  59. package/dist/cjs/z-myz-card-icon.cjs.entry.js +23 -0
  60. package/dist/cjs/z-myz-card-info.cjs.entry.js +129 -0
  61. package/dist/cjs/z-myz-card-list.cjs.entry.js +38 -0
  62. package/dist/cjs/z-myz-card_4.cjs.entry.js +108 -0
  63. package/dist/cjs/z-myz-list-item.cjs.entry.js +37 -0
  64. package/dist/cjs/z-myz-list.cjs.entry.js +35 -0
  65. package/dist/cjs/z-navigation-tab-link.cjs.entry.js +74 -0
  66. package/dist/cjs/z-navigation-tab.cjs.entry.js +73 -0
  67. package/dist/cjs/z-navigation-tabs.cjs.entry.js +229 -0
  68. package/dist/cjs/z-notification.cjs.entry.js +41 -0
  69. package/dist/cjs/z-otp.cjs.entry.js +41 -0
  70. package/dist/cjs/z-pagination.cjs.entry.js +229 -0
  71. package/dist/cjs/z-panel-elem.cjs.entry.js +34 -0
  72. package/dist/cjs/z-pocket-message.cjs.entry.js +19 -0
  73. package/dist/cjs/z-pocket_3.cjs.entry.js +125 -0
  74. package/dist/cjs/z-popover.cjs.entry.js +328 -0
  75. package/dist/cjs/z-range-picker.cjs.entry.js +361 -0
  76. package/dist/cjs/z-section-title.cjs.entry.js +33 -0
  77. package/dist/cjs/z-select.cjs.entry.js +332 -0
  78. package/dist/cjs/z-skip-to-content.cjs.entry.js +74 -0
  79. package/dist/cjs/z-slideshow.cjs.entry.js +129 -0
  80. package/dist/cjs/z-stepper-item.cjs.entry.js +22 -0
  81. package/dist/cjs/z-stepper.cjs.entry.js +19 -0
  82. package/dist/cjs/z-table-body.cjs.entry.js +10 -0
  83. package/dist/cjs/z-table-cell.cjs.entry.js +11 -0
  84. package/dist/cjs/z-table-deprecated.cjs.entry.js +91 -0
  85. package/dist/cjs/z-table-empty-box.cjs.entry.js +10 -0
  86. package/dist/cjs/z-table-expanded-row.cjs.entry.js +10 -0
  87. package/dist/cjs/z-table-footer.cjs.entry.js +10 -0
  88. package/dist/cjs/z-table-head.cjs.entry.js +10 -0
  89. package/dist/cjs/z-table-header-row.cjs.entry.js +10 -0
  90. package/dist/cjs/z-table-header.cjs.entry.js +13 -0
  91. package/dist/cjs/z-table-row.cjs.entry.js +11 -0
  92. package/dist/cjs/z-table-sticky-footer.cjs.entry.js +10 -0
  93. package/dist/cjs/z-table.cjs.entry.js +58 -0
  94. package/dist/cjs/z-tag.cjs.entry.js +22 -0
  95. package/dist/cjs/z-tbody.cjs.entry.js +10 -0
  96. package/dist/cjs/z-td.cjs.entry.js +11 -0
  97. package/dist/cjs/z-tfoot.cjs.entry.js +10 -0
  98. package/dist/cjs/z-th.cjs.entry.js +11 -0
  99. package/dist/cjs/z-thead.cjs.entry.js +10 -0
  100. package/dist/cjs/z-toast-notification-list.cjs.entry.js +56 -0
  101. package/dist/cjs/z-toast-notification.cjs.entry.js +200 -0
  102. package/dist/cjs/z-toggle-button.cjs.entry.js +36 -0
  103. package/dist/cjs/z-toggle-switch.cjs.entry.js +51 -0
  104. package/dist/cjs/z-tooltip.cjs.entry.js +37 -0
  105. package/dist/cjs/z-tr.cjs.entry.js +15 -0
  106. package/dist/cjs/z-visually-hidden.cjs.entry.js +19 -0
  107. package/dist/collection/beans/index.js +342 -0
  108. package/dist/collection/collection-manifest.json +106 -0
  109. package/dist/collection/components/buttons/z-button/index.js +262 -0
  110. package/dist/collection/components/buttons/z-button/styles.css +149 -0
  111. package/dist/collection/components/buttons/z-button-sort/index.js +220 -0
  112. package/dist/collection/components/buttons/z-button-sort/styles.css +84 -0
  113. package/dist/collection/components/buttons/z-chip/index.js +147 -0
  114. package/dist/collection/components/buttons/z-chip/styles.css +122 -0
  115. package/dist/collection/components/buttons/z-toggle-button/index.js +146 -0
  116. package/dist/collection/components/buttons/z-toggle-button/styles.css +60 -0
  117. package/dist/collection/components/buttons/z-toggle-switch/index.js +144 -0
  118. package/dist/collection/components/buttons/z-toggle-switch/styles.css +104 -0
  119. package/dist/collection/components/date-picker/styles.css +565 -0
  120. package/dist/collection/components/date-picker/utils.js +76 -0
  121. package/dist/collection/components/date-picker/z-date-picker/index.js +295 -0
  122. package/dist/collection/components/date-picker/z-range-picker/index.js +593 -0
  123. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +53 -0
  124. package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +51 -0
  125. package/dist/collection/components/file-upload/z-file/index.js +131 -0
  126. package/dist/collection/components/file-upload/z-file/styles.css +23 -0
  127. package/dist/collection/components/file-upload/z-file-upload/index.js +363 -0
  128. package/dist/collection/components/file-upload/z-file-upload/styles.css +84 -0
  129. package/dist/collection/components/icons/icons.js +858 -0
  130. package/dist/collection/components/icons/z-icon/index.js +114 -0
  131. package/dist/collection/components/icons/z-icon/styles.css +14 -0
  132. package/dist/collection/components/index.js +8 -0
  133. package/dist/collection/components/indicators/z-stepper/index.js +21 -0
  134. package/dist/collection/components/indicators/z-stepper/styles.css +19 -0
  135. package/dist/collection/components/indicators/z-stepper-item/index.js +93 -0
  136. package/dist/collection/components/indicators/z-stepper-item/styles.css +114 -0
  137. package/dist/collection/components/inputs/z-combobox/index.js +570 -0
  138. package/dist/collection/components/inputs/z-combobox/styles.css +194 -0
  139. package/dist/collection/components/inputs/z-input/index.js +804 -0
  140. package/dist/collection/components/inputs/z-input/styles.css +397 -0
  141. package/dist/collection/components/inputs/z-input-message/index.js +89 -0
  142. package/dist/collection/components/inputs/z-input-message/styles.css +48 -0
  143. package/dist/collection/components/inputs/z-searchbar/index.js +599 -0
  144. package/dist/collection/components/inputs/z-searchbar/styles.css +185 -0
  145. package/dist/collection/components/inputs/z-select/index.js +753 -0
  146. package/dist/collection/components/inputs/z-select/styles.css +123 -0
  147. package/dist/collection/components/list/z-list/index.js +91 -0
  148. package/dist/collection/components/list/z-list/styles.css +6 -0
  149. package/dist/collection/components/list/z-list-element/index.js +508 -0
  150. package/dist/collection/components/list/z-list-element/styles.css +121 -0
  151. package/dist/collection/components/list/z-list-group/index.js +175 -0
  152. package/dist/collection/components/list/z-list-group/styles.css +21 -0
  153. package/dist/collection/components/list/z-toast-notification-list/index.js +105 -0
  154. package/dist/collection/components/list/z-toast-notification-list/styles.css +100 -0
  155. package/dist/collection/components/logo/z-logo/index.js +131 -0
  156. package/dist/collection/components/logo/z-logo/styles.css +29 -0
  157. package/dist/collection/components/modal/z-modal/index.js +351 -0
  158. package/dist/collection/components/modal/z-modal/styles.css +251 -0
  159. package/dist/collection/components/navigation/z-app-header/index.js +449 -0
  160. package/dist/collection/components/navigation/z-app-header/index.stories.js +393 -0
  161. package/dist/collection/components/navigation/z-app-header/styles.css +441 -0
  162. package/dist/collection/components/navigation/z-menu/index.js +250 -0
  163. package/dist/collection/components/navigation/z-menu/styles.css +217 -0
  164. package/dist/collection/components/navigation/z-menu-section/index.js +125 -0
  165. package/dist/collection/components/navigation/z-menu-section/styles.css +123 -0
  166. package/dist/collection/components/navigation/z-navigation-tabs/index.js +367 -0
  167. package/dist/collection/components/navigation/z-navigation-tabs/index.stories.js +12 -0
  168. package/dist/collection/components/navigation/z-navigation-tabs/styles.css +212 -0
  169. package/dist/collection/components/notification/z-info-box/index.js +85 -0
  170. package/dist/collection/components/notification/z-info-box/styles.css +23 -0
  171. package/dist/collection/components/notification/z-notification/index.js +195 -0
  172. package/dist/collection/components/notification/z-notification/styles.css +114 -0
  173. package/dist/collection/components/notification/z-toast-notification/index.js +399 -0
  174. package/dist/collection/components/notification/z-toast-notification/styles.css +254 -0
  175. package/dist/collection/components/notification/z-tooltip/index.js +157 -0
  176. package/dist/collection/components/notification/z-tooltip/styles.css +17 -0
  177. package/dist/collection/components/panel/z-panel-elem/index.js +197 -0
  178. package/dist/collection/components/panel/z-panel-elem/styles.css +46 -0
  179. package/dist/collection/components/table/cells/z-td/index.js +147 -0
  180. package/dist/collection/components/table/cells/z-td/styles.css +59 -0
  181. package/dist/collection/components/table/cells/z-th/index.js +209 -0
  182. package/dist/collection/components/table/cells/z-th/styles.css +88 -0
  183. package/dist/collection/components/table/z-table/index.js +86 -0
  184. package/dist/collection/components/table/z-table/styles.css +22 -0
  185. package/dist/collection/components/table/z-tbody/index.js +22 -0
  186. package/dist/collection/components/table/z-tbody/styles.css +4 -0
  187. package/dist/collection/components/table/z-tfoot/index.js +50 -0
  188. package/dist/collection/components/table/z-tfoot/styles.css +13 -0
  189. package/dist/collection/components/table/z-thead/index.js +50 -0
  190. package/dist/collection/components/table/z-thead/styles.css +19 -0
  191. package/dist/collection/components/table/z-tr/index.js +133 -0
  192. package/dist/collection/components/table/z-tr/styles.css +87 -0
  193. package/dist/collection/components/z-accordion/index.js +255 -0
  194. package/dist/collection/components/z-accordion/styles.css +255 -0
  195. package/dist/collection/components/z-anchor-navigation/index.js +95 -0
  196. package/dist/collection/components/z-anchor-navigation/styles.css +128 -0
  197. package/dist/collection/components/z-aria-alert/index.js +39 -0
  198. package/dist/collection/components/z-avatar/index.js +142 -0
  199. package/dist/collection/components/z-avatar/styles.css +32 -0
  200. package/dist/collection/components/z-book-card/index.js +392 -0
  201. package/dist/collection/components/z-book-card/styles.css +476 -0
  202. package/dist/collection/components/z-breadcrumb/index.js +392 -0
  203. package/dist/collection/components/z-breadcrumb/styles.css +146 -0
  204. package/dist/collection/components/z-card/index.js +148 -0
  205. package/dist/collection/components/z-card/styles.css +213 -0
  206. package/dist/collection/components/z-carousel/index.js +304 -0
  207. package/dist/collection/components/z-carousel/styles.css +129 -0
  208. package/dist/collection/components/z-contextual-menu/index.js +126 -0
  209. package/dist/collection/components/z-contextual-menu/styles.css +60 -0
  210. package/dist/collection/components/z-cover-hero/index.js +146 -0
  211. package/dist/collection/components/z-cover-hero/styles.css +93 -0
  212. package/dist/collection/components/z-divider/index.js +95 -0
  213. package/dist/collection/components/z-divider/styles.css +37 -0
  214. package/dist/collection/components/z-ghost-loading/index.js +18 -0
  215. package/dist/collection/components/z-ghost-loading/styles.css +34 -0
  216. package/dist/collection/components/z-info-reveal/index.js +147 -0
  217. package/dist/collection/components/z-info-reveal/styles.css +103 -0
  218. package/dist/collection/components/z-offcanvas/index.js +162 -0
  219. package/dist/collection/components/z-offcanvas/styles.css +182 -0
  220. package/dist/collection/components/z-pagination/index.js +435 -0
  221. package/dist/collection/components/z-pagination/styles.css +199 -0
  222. package/dist/collection/components/z-popover/index.js +513 -0
  223. package/dist/collection/components/z-popover/styles.css +147 -0
  224. package/dist/collection/components/z-section-title/index.js +88 -0
  225. package/dist/collection/components/z-section-title/styles.css +45 -0
  226. package/dist/collection/components/z-skip-to-content/index.js +147 -0
  227. package/dist/collection/components/z-skip-to-content/styles.css +81 -0
  228. package/dist/collection/components/z-tag/index.js +65 -0
  229. package/dist/collection/components/z-tag/styles.css +46 -0
  230. package/dist/collection/components/z-visually-hidden/index.js +18 -0
  231. package/dist/collection/components/z-visually-hidden/styles.css +12 -0
  232. package/dist/collection/constants/breakpoints.js +4 -0
  233. package/dist/collection/constants/icons.js +6 -0
  234. package/dist/collection/deprecated/navigation-tab.css +138 -0
  235. package/dist/collection/deprecated/z-link/index.js +318 -0
  236. package/dist/collection/deprecated/z-link/styles.css +167 -0
  237. package/dist/collection/deprecated/z-navigation-tab/index.js +290 -0
  238. package/dist/collection/deprecated/z-navigation-tab-link/index.js +313 -0
  239. package/dist/collection/deprecated/z-table-deprecated/z-table-body/index.js +26 -0
  240. package/dist/collection/deprecated/z-table-deprecated/z-table-body/styles.css +9 -0
  241. package/dist/collection/deprecated/z-table-deprecated/z-table-cell/index.js +84 -0
  242. package/dist/collection/deprecated/z-table-deprecated/z-table-cell/styles.css +58 -0
  243. package/dist/collection/deprecated/z-table-deprecated/z-table-deprecated/index.js +363 -0
  244. package/dist/collection/deprecated/z-table-deprecated/z-table-deprecated/styles.css +115 -0
  245. package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/index.js +75 -0
  246. package/dist/collection/deprecated/z-table-deprecated/z-table-empty-box/styles.css +38 -0
  247. package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/index.js +42 -0
  248. package/dist/collection/deprecated/z-table-deprecated/z-table-expanded-row/styles.css +9 -0
  249. package/dist/collection/deprecated/z-table-deprecated/z-table-footer/index.js +25 -0
  250. package/dist/collection/deprecated/z-table-deprecated/z-table-footer/styles.css +5 -0
  251. package/dist/collection/deprecated/z-table-deprecated/z-table-head/index.js +25 -0
  252. package/dist/collection/deprecated/z-table-deprecated/z-table-head/styles.css +5 -0
  253. package/dist/collection/deprecated/z-table-deprecated/z-table-header/index.js +226 -0
  254. package/dist/collection/deprecated/z-table-deprecated/z-table-header/styles.css +71 -0
  255. package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/index.js +44 -0
  256. package/dist/collection/deprecated/z-table-deprecated/z-table-header-row/styles.css +13 -0
  257. package/dist/collection/deprecated/z-table-deprecated/z-table-row/index.js +95 -0
  258. package/dist/collection/deprecated/z-table-deprecated/z-table-row/styles.css +45 -0
  259. package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/index.js +22 -0
  260. package/dist/collection/deprecated/z-table-deprecated/z-table-sticky-footer/styles.css +11 -0
  261. package/dist/collection/index.js +7 -0
  262. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +129 -0
  263. package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +44 -0
  264. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +151 -0
  265. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/styles.css +62 -0
  266. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +22 -0
  267. package/dist/collection/snowflakes/myz/card/z-myz-card-body/styles.css +13 -0
  268. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +93 -0
  269. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/styles.css +11 -0
  270. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +177 -0
  271. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +72 -0
  272. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +219 -0
  273. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +181 -0
  274. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +22 -0
  275. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/styles.css +20 -0
  276. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +109 -0
  277. package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +59 -0
  278. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +81 -0
  279. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +69 -0
  280. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +199 -0
  281. package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +93 -0
  282. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +60 -0
  283. package/dist/collection/snowflakes/myz/card/z-myz-card-list/styles.css +41 -0
  284. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +78 -0
  285. package/dist/collection/snowflakes/myz/list/z-myz-list/styles.css +4 -0
  286. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +192 -0
  287. package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +66 -0
  288. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +120 -0
  289. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/styles.css +102 -0
  290. package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +191 -0
  291. package/dist/collection/snowflakes/myz/pocket/z-pocket/styles.css +44 -0
  292. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +84 -0
  293. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/styles.css +41 -0
  294. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +93 -0
  295. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/styles.css +27 -0
  296. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js +22 -0
  297. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/styles.css +44 -0
  298. package/dist/collection/snowflakes/myz/z-alert/index.js +47 -0
  299. package/dist/collection/snowflakes/myz/z-alert/styles.css +28 -0
  300. package/dist/collection/snowflakes/myz/z-otp/index.js +120 -0
  301. package/dist/collection/snowflakes/myz/z-otp/styles.css +47 -0
  302. package/dist/collection/snowflakes/myz/z-slideshow/index.js +180 -0
  303. package/dist/collection/snowflakes/myz/z-slideshow/styles.css +127 -0
  304. package/dist/collection/utils/storybook-utils.js +76 -0
  305. package/dist/collection/utils/utils.js +115 -0
  306. package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
  307. package/dist/esm/breakpoints-9b81eb1b.js +5 -0
  308. package/dist/esm/hammer-c3266b17.js +2648 -0
  309. package/dist/esm/icons-e3232103.js +860 -0
  310. package/dist/esm/index-0a587f24.js +51 -0
  311. package/dist/esm/index-0cdc998f.js +19 -0
  312. package/dist/esm/index-361b27f9.js +15 -0
  313. package/dist/esm/index-47f23745.js +344 -0
  314. package/dist/esm/index-4968ce56.js +2298 -0
  315. package/dist/esm/index-4d1853ea.js +77 -0
  316. package/dist/esm/index-531501d7.js +15 -0
  317. package/dist/esm/index-6161978d.js +27 -0
  318. package/dist/esm/index-772a7413.js +20 -0
  319. package/dist/esm/index-816801e5.js +18 -0
  320. package/dist/esm/index-85dc8bc0.js +32 -0
  321. package/dist/esm/index-88a23895.js +19 -0
  322. package/dist/esm/index-8f7fd43f.js +19 -0
  323. package/dist/esm/index-af5c6b4c.js +15 -0
  324. package/dist/esm/index-dc50a9ae.js +72 -0
  325. package/dist/esm/index-e6ee76f0.js +39 -0
  326. package/dist/esm/index-fac1fe6c.js +19 -0
  327. package/dist/esm/index-fb19ca57.js +65 -0
  328. package/dist/esm/index.js +9 -0
  329. package/dist/esm/loader.js +17 -0
  330. package/dist/esm/polyfills/core-js.js +11 -0
  331. package/dist/esm/polyfills/css-shim.js +1 -0
  332. package/dist/esm/polyfills/dom.js +79 -0
  333. package/dist/esm/polyfills/es5-html-element.js +1 -0
  334. package/dist/esm/polyfills/index.js +34 -0
  335. package/dist/esm/polyfills/system.js +6 -0
  336. package/dist/esm/utils-2a4ef29d.js +100 -0
  337. package/dist/esm/utils-8e0bd81d.js +2700 -0
  338. package/dist/esm/web-components-library.js +17 -0
  339. package/dist/esm/z-accordion.entry.js +63 -0
  340. package/dist/esm/z-alert.entry.js +15 -0
  341. package/dist/esm/z-anchor-navigation.entry.js +49 -0
  342. package/dist/esm/z-app-header_11.entry.js +1044 -0
  343. package/dist/esm/z-aria-alert.entry.js +15 -0
  344. package/dist/esm/z-avatar.entry.js +40 -0
  345. package/dist/esm/z-book-card.entry.js +122 -0
  346. package/dist/esm/z-breadcrumb.entry.js +228 -0
  347. package/dist/esm/z-button-sort.entry.js +49 -0
  348. package/dist/esm/z-card.entry.js +49 -0
  349. package/dist/esm/z-carousel.entry.js +146 -0
  350. package/dist/esm/z-chip.entry.js +28 -0
  351. package/dist/esm/z-combobox.entry.js +197 -0
  352. package/dist/esm/z-contextual-menu.entry.js +42 -0
  353. package/dist/esm/z-cover-hero.entry.js +53 -0
  354. package/dist/esm/z-date-picker.entry.js +473 -0
  355. package/dist/esm/z-dragdrop-area_2.entry.js +1011 -0
  356. package/dist/esm/z-file-upload.entry.js +181 -0
  357. package/dist/esm/z-file.entry.js +44 -0
  358. package/dist/esm/z-ghost-loading.entry.js +15 -0
  359. package/dist/esm/z-info-box.entry.js +21 -0
  360. package/dist/esm/z-info-reveal.entry.js +61 -0
  361. package/dist/esm/z-link.entry.js +70 -0
  362. package/dist/esm/z-logo.entry.js +22 -0
  363. package/dist/esm/z-menu-section.entry.js +50 -0
  364. package/dist/esm/z-menu.entry.js +115 -0
  365. package/dist/esm/z-messages-pocket.entry.js +42 -0
  366. package/dist/esm/z-myz-card-alert.entry.js +59 -0
  367. package/dist/esm/z-myz-card-dictionary.entry.js +32 -0
  368. package/dist/esm/z-myz-card-footer-sections.entry.js +15 -0
  369. package/dist/esm/z-myz-card-footer.entry.js +65 -0
  370. package/dist/esm/z-myz-card-icon.entry.js +19 -0
  371. package/dist/esm/z-myz-card-info.entry.js +125 -0
  372. package/dist/esm/z-myz-card-list.entry.js +34 -0
  373. package/dist/esm/z-myz-card_4.entry.js +101 -0
  374. package/dist/esm/z-myz-list-item.entry.js +33 -0
  375. package/dist/esm/z-myz-list.entry.js +31 -0
  376. package/dist/esm/z-navigation-tab-link.entry.js +70 -0
  377. package/dist/esm/z-navigation-tab.entry.js +69 -0
  378. package/dist/esm/z-navigation-tabs.entry.js +225 -0
  379. package/dist/esm/z-notification.entry.js +37 -0
  380. package/dist/esm/z-otp.entry.js +37 -0
  381. package/dist/esm/z-pagination.entry.js +225 -0
  382. package/dist/esm/z-panel-elem.entry.js +30 -0
  383. package/dist/esm/z-pocket-message.entry.js +15 -0
  384. package/dist/esm/z-pocket_3.entry.js +119 -0
  385. package/dist/esm/z-popover.entry.js +324 -0
  386. package/dist/esm/z-range-picker.entry.js +357 -0
  387. package/dist/esm/z-section-title.entry.js +29 -0
  388. package/dist/esm/z-select.entry.js +328 -0
  389. package/dist/esm/z-skip-to-content.entry.js +70 -0
  390. package/dist/esm/z-slideshow.entry.js +125 -0
  391. package/dist/esm/z-stepper-item.entry.js +18 -0
  392. package/dist/esm/z-stepper.entry.js +15 -0
  393. package/dist/esm/z-table-body.entry.js +2 -0
  394. package/dist/esm/z-table-cell.entry.js +3 -0
  395. package/dist/esm/z-table-deprecated.entry.js +87 -0
  396. package/dist/esm/z-table-empty-box.entry.js +2 -0
  397. package/dist/esm/z-table-expanded-row.entry.js +2 -0
  398. package/dist/esm/z-table-footer.entry.js +2 -0
  399. package/dist/esm/z-table-head.entry.js +2 -0
  400. package/dist/esm/z-table-header-row.entry.js +2 -0
  401. package/dist/esm/z-table-header.entry.js +5 -0
  402. package/dist/esm/z-table-row.entry.js +3 -0
  403. package/dist/esm/z-table-sticky-footer.entry.js +2 -0
  404. package/dist/esm/z-table.entry.js +54 -0
  405. package/dist/esm/z-tag.entry.js +18 -0
  406. package/dist/esm/z-tbody.entry.js +2 -0
  407. package/dist/esm/z-td.entry.js +3 -0
  408. package/dist/esm/z-tfoot.entry.js +2 -0
  409. package/dist/esm/z-th.entry.js +3 -0
  410. package/dist/esm/z-thead.entry.js +2 -0
  411. package/dist/esm/z-toast-notification-list.entry.js +52 -0
  412. package/dist/esm/z-toast-notification.entry.js +196 -0
  413. package/dist/esm/z-toggle-button.entry.js +32 -0
  414. package/dist/esm/z-toggle-switch.entry.js +47 -0
  415. package/dist/esm/z-tooltip.entry.js +33 -0
  416. package/dist/esm/z-tr.entry.js +7 -0
  417. package/dist/esm/z-visually-hidden.entry.js +15 -0
  418. package/dist/index.cjs.js +1 -0
  419. package/dist/index.js +1 -0
  420. package/dist/types/beans/index.d.ts +398 -0
  421. package/dist/types/components/buttons/z-button/index.d.ts +31 -0
  422. package/dist/types/components/buttons/z-button-sort/index.d.ts +28 -0
  423. package/dist/types/components/buttons/z-chip/index.d.ts +18 -0
  424. package/dist/types/components/buttons/z-toggle-button/index.d.ts +17 -0
  425. package/dist/types/components/buttons/z-toggle-switch/index.d.ts +17 -0
  426. package/dist/types/components/date-picker/utils.d.ts +4 -0
  427. package/dist/types/components/date-picker/z-date-picker/index.d.ts +29 -0
  428. package/dist/types/components/date-picker/z-range-picker/index.d.ts +52 -0
  429. package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +9 -0
  430. package/dist/types/components/file-upload/z-file/index.d.ts +22 -0
  431. package/dist/types/components/file-upload/z-file-upload/index.d.ts +52 -0
  432. package/dist/types/components/icons/icons.d.ts +1549 -0
  433. package/dist/types/components/icons/z-icon/index.d.ts +14 -0
  434. package/dist/types/components/index.d.ts +0 -0
  435. package/dist/types/components/indicators/z-stepper/index.d.ts +6 -0
  436. package/dist/types/components/indicators/z-stepper-item/index.d.ts +19 -0
  437. package/dist/types/components/inputs/z-combobox/index.d.ts +71 -0
  438. package/dist/types/components/inputs/z-input/index.d.ts +91 -0
  439. package/dist/types/components/inputs/z-input-message/index.d.ts +12 -0
  440. package/dist/types/components/inputs/z-searchbar/index.d.ts +73 -0
  441. package/dist/types/components/inputs/z-select/index.d.ts +82 -0
  442. package/dist/types/components/list/z-list/index.d.ts +15 -0
  443. package/dist/types/components/list/z-list-element/index.d.ts +95 -0
  444. package/dist/types/components/list/z-list-group/index.d.ts +28 -0
  445. package/dist/types/components/list/z-toast-notification-list/index.d.ts +14 -0
  446. package/dist/types/components/logo/z-logo/index.d.ts +15 -0
  447. package/dist/types/components/modal/z-modal/index.d.ts +49 -0
  448. package/dist/types/components/navigation/z-app-header/index.d.ts +149 -0
  449. package/dist/types/components/navigation/z-menu/index.d.ts +61 -0
  450. package/dist/types/components/navigation/z-menu-section/index.d.ts +31 -0
  451. package/dist/types/components/navigation/z-navigation-tabs/index.d.ts +114 -0
  452. package/dist/types/components/notification/z-info-box/index.d.ts +14 -0
  453. package/dist/types/components/notification/z-notification/index.d.ts +32 -0
  454. package/dist/types/components/notification/z-toast-notification/index.d.ts +56 -0
  455. package/dist/types/components/notification/z-tooltip/index.d.ts +32 -0
  456. package/dist/types/components/panel/z-panel-elem/index.d.ts +25 -0
  457. package/dist/types/components/table/cells/z-td/index.d.ts +37 -0
  458. package/dist/types/components/table/cells/z-th/index.d.ts +56 -0
  459. package/dist/types/components/table/z-table/index.d.ts +28 -0
  460. package/dist/types/components/table/z-tbody/index.d.ts +7 -0
  461. package/dist/types/components/table/z-tfoot/index.d.ts +11 -0
  462. package/dist/types/components/table/z-thead/index.d.ts +11 -0
  463. package/dist/types/components/table/z-tr/index.d.ts +41 -0
  464. package/dist/types/components/z-accordion/index.d.ts +65 -0
  465. package/dist/types/components/z-anchor-navigation/index.d.ts +39 -0
  466. package/dist/types/components/z-aria-alert/index.d.ts +6 -0
  467. package/dist/types/components/z-avatar/index.d.ts +16 -0
  468. package/dist/types/components/z-book-card/index.d.ts +95 -0
  469. package/dist/types/components/z-breadcrumb/index.d.ts +56 -0
  470. package/dist/types/components/z-card/index.d.ts +38 -0
  471. package/dist/types/components/z-carousel/index.d.ts +63 -0
  472. package/dist/types/components/z-contextual-menu/index.d.ts +26 -0
  473. package/dist/types/components/z-cover-hero/index.d.ts +41 -0
  474. package/dist/types/components/z-divider/index.d.ts +10 -0
  475. package/dist/types/components/z-ghost-loading/index.d.ts +3 -0
  476. package/dist/types/components/z-info-reveal/index.d.ts +29 -0
  477. package/dist/types/components/z-offcanvas/index.d.ts +27 -0
  478. package/dist/types/components/z-pagination/index.d.ts +109 -0
  479. package/dist/types/components/z-popover/index.d.ts +69 -0
  480. package/dist/types/components/z-section-title/index.d.ts +25 -0
  481. package/dist/types/components/z-skip-to-content/index.d.ts +21 -0
  482. package/dist/types/components/z-tag/index.d.ts +13 -0
  483. package/dist/types/components/z-visually-hidden/index.d.ts +3 -0
  484. package/dist/types/components.d.ts +5198 -0
  485. package/dist/types/constants/breakpoints.d.ts +4 -0
  486. package/dist/types/constants/icons.d.ts +6 -0
  487. package/dist/types/deprecated/z-link/index.d.ts +41 -0
  488. package/dist/types/deprecated/z-navigation-tab/index.d.ts +69 -0
  489. package/dist/types/deprecated/z-navigation-tab-link/index.d.ts +77 -0
  490. package/dist/types/deprecated/z-table-deprecated/z-table-body/index.d.ts +8 -0
  491. package/dist/types/deprecated/z-table-deprecated/z-table-cell/index.d.ts +14 -0
  492. package/dist/types/deprecated/z-table-deprecated/z-table-deprecated/index.d.ts +59 -0
  493. package/dist/types/deprecated/z-table-deprecated/z-table-empty-box/index.d.ts +15 -0
  494. package/dist/types/deprecated/z-table-deprecated/z-table-expanded-row/index.d.ts +8 -0
  495. package/dist/types/deprecated/z-table-deprecated/z-table-footer/index.d.ts +8 -0
  496. package/dist/types/deprecated/z-table-deprecated/z-table-head/index.d.ts +8 -0
  497. package/dist/types/deprecated/z-table-deprecated/z-table-header/index.d.ts +31 -0
  498. package/dist/types/deprecated/z-table-deprecated/z-table-header-row/index.d.ts +9 -0
  499. package/dist/types/deprecated/z-table-deprecated/z-table-row/index.d.ts +16 -0
  500. package/dist/types/deprecated/z-table-deprecated/z-table-sticky-footer/index.d.ts +7 -0
  501. package/dist/types/index.d.ts +7 -0
  502. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +16 -0
  503. package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +19 -0
  504. package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +7 -0
  505. package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +12 -0
  506. package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +24 -0
  507. package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +34 -0
  508. package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +7 -0
  509. package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +19 -0
  510. package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +9 -0
  511. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +36 -0
  512. package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +9 -0
  513. package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +11 -0
  514. package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +25 -0
  515. package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +16 -0
  516. package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +25 -0
  517. package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +12 -0
  518. package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +18 -0
  519. package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +7 -0
  520. package/dist/types/snowflakes/myz/z-alert/index.d.ts +9 -0
  521. package/dist/types/snowflakes/myz/z-otp/index.d.ts +17 -0
  522. package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +30 -0
  523. package/dist/types/stencil-public-runtime.d.ts +1576 -0
  524. package/dist/types/utils/storybook-utils.d.ts +50 -0
  525. package/dist/types/utils/utils.d.ts +24 -0
  526. package/dist/web-components-library/index.esm.js +1 -0
  527. package/dist/web-components-library/p-01e2e8d4.entry.js +1 -0
  528. package/dist/web-components-library/p-035fbb3e.entry.js +1 -0
  529. package/dist/web-components-library/p-03b13390.entry.js +1 -0
  530. package/dist/web-components-library/p-04b2ab0d.entry.js +1 -0
  531. package/dist/web-components-library/p-05ba9739.entry.js +1 -0
  532. package/dist/web-components-library/p-06c94384.entry.js +1 -0
  533. package/dist/web-components-library/p-100207d8.entry.js +1 -0
  534. package/dist/web-components-library/p-1086a0fa.entry.js +1 -0
  535. package/dist/web-components-library/p-112455b1.js +1 -0
  536. package/dist/web-components-library/p-138bc87e.entry.js +1 -0
  537. package/dist/web-components-library/p-13fc4378.js +1 -0
  538. package/dist/web-components-library/p-15a606ce.entry.js +1 -0
  539. package/dist/web-components-library/p-19876b0d.entry.js +1 -0
  540. package/dist/web-components-library/p-1d805413.entry.js +1 -0
  541. package/dist/web-components-library/p-29fa362c.entry.js +1 -0
  542. package/dist/web-components-library/p-2cb45213.entry.js +1 -0
  543. package/dist/web-components-library/p-33305cc8.entry.js +1 -0
  544. package/dist/web-components-library/p-3636078a.entry.js +1 -0
  545. package/dist/web-components-library/p-376f2928.entry.js +1 -0
  546. package/dist/web-components-library/p-392899e9.entry.js +1 -0
  547. package/dist/web-components-library/p-39a446ec.entry.js +1 -0
  548. package/dist/web-components-library/p-39b7ad4f.entry.js +1 -0
  549. package/dist/web-components-library/p-3bb2d909.entry.js +1 -0
  550. package/dist/web-components-library/p-417482b0.entry.js +1 -0
  551. package/dist/web-components-library/p-485fd3db.entry.js +1 -0
  552. package/dist/web-components-library/p-49f4e9a0.entry.js +1 -0
  553. package/dist/web-components-library/p-4d0d5d93.entry.js +1 -0
  554. package/dist/web-components-library/p-50f78a81.entry.js +1 -0
  555. package/dist/web-components-library/p-5338cc37.entry.js +1 -0
  556. package/dist/web-components-library/p-571b55dc.js +1 -0
  557. package/dist/web-components-library/p-57c6d414.entry.js +1 -0
  558. package/dist/web-components-library/p-5944a8f2.entry.js +1 -0
  559. package/dist/web-components-library/p-5c177ba5.entry.js +1 -0
  560. package/dist/web-components-library/p-5d274fcc.entry.js +1 -0
  561. package/dist/web-components-library/p-5f202970.entry.js +1 -0
  562. package/dist/web-components-library/p-5fd3ed9c.entry.js +1 -0
  563. package/dist/web-components-library/p-61c00383.entry.js +1 -0
  564. package/dist/web-components-library/p-68410ea2.js +1 -0
  565. package/dist/web-components-library/p-6a4403c6.entry.js +1 -0
  566. package/dist/web-components-library/p-6ed0aaab.entry.js +1 -0
  567. package/dist/web-components-library/p-7426f322.js +1 -0
  568. package/dist/web-components-library/p-7588fbf0.js +1 -0
  569. package/dist/web-components-library/p-7907bdf7.entry.js +1 -0
  570. package/dist/web-components-library/p-7b990086.js +1 -0
  571. package/dist/web-components-library/p-7c5ddeb0.entry.js +1 -0
  572. package/dist/web-components-library/p-80e52459.js +1 -0
  573. package/dist/web-components-library/p-81006561.js +2 -0
  574. package/dist/web-components-library/p-86758f78.entry.js +1 -0
  575. package/dist/web-components-library/p-8a45ae2a.entry.js +1 -0
  576. package/dist/web-components-library/p-8c31e60b.entry.js +1 -0
  577. package/dist/web-components-library/p-9021c92a.js +1 -0
  578. package/dist/web-components-library/p-94afe4dd.entry.js +1 -0
  579. package/dist/web-components-library/p-9508cd3e.js +1 -0
  580. package/dist/web-components-library/p-95370f75.js +1 -0
  581. package/dist/web-components-library/p-96fc8078.entry.js +1 -0
  582. package/dist/web-components-library/p-98204840.entry.js +1 -0
  583. package/dist/web-components-library/p-98badafc.js +1 -0
  584. package/dist/web-components-library/p-9b0bcd43.entry.js +1 -0
  585. package/dist/web-components-library/p-9c1ed1e8.entry.js +1 -0
  586. package/dist/web-components-library/p-9ff2fc8e.entry.js +1 -0
  587. package/dist/web-components-library/p-a01baa71.js +1 -0
  588. package/dist/web-components-library/p-a1663ab1.entry.js +1 -0
  589. package/dist/web-components-library/p-a3587fd6.entry.js +16 -0
  590. package/dist/web-components-library/p-a4502b1e.entry.js +1 -0
  591. package/dist/web-components-library/p-a48e5c46.entry.js +1 -0
  592. package/dist/web-components-library/p-a50262e8.entry.js +1 -0
  593. package/dist/web-components-library/p-a862a070.entry.js +1 -0
  594. package/dist/web-components-library/p-a9d2edee.entry.js +1 -0
  595. package/dist/web-components-library/p-acb89afa.entry.js +1 -0
  596. package/dist/web-components-library/p-b2527ca1.entry.js +1 -0
  597. package/dist/web-components-library/p-b497e33e.js +1 -0
  598. package/dist/web-components-library/p-b99039ed.js +1 -0
  599. package/dist/web-components-library/p-c298cb2f.js +1 -0
  600. package/dist/web-components-library/p-c44d87bd.entry.js +1 -0
  601. package/dist/web-components-library/p-c6e7991f.entry.js +1 -0
  602. package/dist/web-components-library/p-c9bc5148.js +1 -0
  603. package/dist/web-components-library/p-ca472d1c.entry.js +1 -0
  604. package/dist/web-components-library/p-cbb670c5.js +1 -0
  605. package/dist/web-components-library/p-cc009af8.entry.js +1 -0
  606. package/dist/web-components-library/p-cd561d69.js +1 -0
  607. package/dist/web-components-library/p-d2946762.entry.js +1 -0
  608. package/dist/web-components-library/p-db0a64af.js +1 -0
  609. package/dist/web-components-library/p-dd4fc386.entry.js +1 -0
  610. package/dist/web-components-library/p-de5688e9.entry.js +1 -0
  611. package/dist/web-components-library/p-decbd59d.entry.js +1 -0
  612. package/dist/web-components-library/p-e43e61ac.js +7 -0
  613. package/dist/web-components-library/p-e54d4ef9.entry.js +1 -0
  614. package/dist/web-components-library/p-e7c6d651.entry.js +1 -0
  615. package/dist/web-components-library/p-ed42ceca.entry.js +1 -0
  616. package/dist/web-components-library/p-f058316f.entry.js +1 -0
  617. package/dist/web-components-library/p-f14105c6.entry.js +1 -0
  618. package/dist/web-components-library/p-f3cc3f27.entry.js +1 -0
  619. package/dist/web-components-library/p-f46fa177.entry.js +1 -0
  620. package/dist/web-components-library/p-f4e2e76b.entry.js +1 -0
  621. package/dist/web-components-library/p-f5ae1514.entry.js +1 -0
  622. package/dist/web-components-library/p-f5bc7dda.entry.js +1 -0
  623. package/dist/web-components-library/p-f8383e14.entry.js +1 -0
  624. package/dist/web-components-library/p-f976f29f.js +1 -0
  625. package/dist/web-components-library/p-f9873cb9.entry.js +1 -0
  626. package/dist/web-components-library/p-fd58b7a2.entry.js +1 -0
  627. package/dist/web-components-library/p-fde82dc3.js +1 -0
  628. package/dist/web-components-library/p-ff5a6e34.entry.js +1 -0
  629. package/dist/web-components-library/p-ffde06d1.entry.js +1 -0
  630. package/dist/web-components-library/web-components-library.css +3 -0
  631. package/dist/web-components-library/web-components-library.esm.js +1 -0
  632. package/loader/cdn.js +3 -0
  633. package/loader/index.cjs.js +3 -0
  634. package/loader/index.d.ts +12 -0
  635. package/loader/index.es2017.js +3 -0
  636. package/loader/index.js +4 -0
  637. package/loader/package.json +11 -0
  638. package/package.json +1 -1
  639. package/react/components.d.ts +97 -0
  640. package/react/components.js +104 -0
  641. package/react/components.js.map +1 -0
  642. package/react/index.d.ts +1 -0
  643. package/react/index.js +14 -0
  644. package/react/index.js.map +1 -0
  645. package/react/react-component-lib/createComponent.d.ts +10 -0
  646. package/react/react-component-lib/createComponent.js +98 -0
  647. package/react/react-component-lib/createComponent.js.map +1 -0
  648. package/react/react-component-lib/createOverlayComponent.d.ts +21 -0
  649. package/react/react-component-lib/createOverlayComponent.js +116 -0
  650. package/react/react-component-lib/createOverlayComponent.js.map +1 -0
  651. package/react/react-component-lib/index.d.ts +2 -0
  652. package/react/react-component-lib/index.js +8 -0
  653. package/react/react-component-lib/index.js.map +1 -0
  654. package/react/react-component-lib/interfaces.d.ts +29 -0
  655. package/react/react-component-lib/interfaces.js +3 -0
  656. package/react/react-component-lib/interfaces.js.map +1 -0
  657. package/react/react-component-lib/utils/attachProps.d.ts +12 -0
  658. package/react/react-component-lib/utils/attachProps.js +105 -0
  659. package/react/react-component-lib/utils/attachProps.js.map +1 -0
  660. package/react/react-component-lib/utils/case.d.ts +2 -0
  661. package/react/react-component-lib/utils/case.js +12 -0
  662. package/react/react-component-lib/utils/case.js.map +1 -0
  663. package/react/react-component-lib/utils/dev.d.ts +2 -0
  664. package/react/react-component-lib/utils/dev.js +18 -0
  665. package/react/react-component-lib/utils/dev.js.map +1 -0
  666. package/react/react-component-lib/utils/index.d.ts +10 -0
  667. package/react/react-component-lib/utils/index.js +54 -0
  668. package/react/react-component-lib/utils/index.js.map +1 -0
  669. package/www/assets/favicon.png +0 -0
  670. package/www/assets/images/png/arrowDown.png +0 -0
  671. package/www/assets/images/png/arrowUp.png +0 -0
  672. package/www/assets/images/png/back-button.png +0 -0
  673. package/www/assets/images/png/bovolenta-logo.png +0 -0
  674. package/www/assets/images/png/cart-icon.png +0 -0
  675. package/www/assets/images/png/cea-logo.png +0 -0
  676. package/www/assets/images/png/clitt-logo.png +0 -0
  677. package/www/assets/images/png/down-arrow.png +0 -0
  678. package/www/assets/images/png/download.png +0 -0
  679. package/www/assets/images/png/facebook.png +0 -0
  680. package/www/assets/images/png/gruoss.png +0 -0
  681. package/www/assets/images/png/instagram.png +0 -0
  682. package/www/assets/images/png/lucisano-logo.png +0 -0
  683. package/www/assets/images/png/myzanichelli-logo.png +0 -0
  684. package/www/assets/images/png/question-mark.png +0 -0
  685. package/www/assets/images/png/suitcase-icon.png +0 -0
  686. package/www/assets/images/png/twitter.png +0 -0
  687. package/www/assets/images/png/up-arrow.png +0 -0
  688. package/www/assets/images/png/user.png +0 -0
  689. package/www/assets/images/png/user_transparent.png +0 -0
  690. package/www/assets/images/png/youtube.png +0 -0
  691. package/www/assets/images/png/zanichelli-add-book-gray@8x.png +0 -0
  692. package/www/assets/images/png/zanichelli-book-remove-gray@8x.png +0 -0
  693. package/www/assets/images/png/zanichelli-error-image.png +0 -0
  694. package/www/assets/images/png/zanichelli-external-link-2@8x.png +0 -0
  695. package/www/assets/images/png/zanichelli-external-link-3@8x.png +0 -0
  696. package/www/assets/images/png/zanichelli-external-link@8x.png +0 -0
  697. package/www/assets/images/png/zanichelli-logo-2.png +0 -0
  698. package/www/assets/images/png/zanichelli-logo-footer.png +0 -0
  699. package/www/assets/images/png/zanichelli-logo.png +0 -0
  700. package/www/build/index.esm.js +1 -0
  701. package/www/build/p-01e2e8d4.entry.js +1 -0
  702. package/www/build/p-035fbb3e.entry.js +1 -0
  703. package/www/build/p-03b13390.entry.js +1 -0
  704. package/www/build/p-04b2ab0d.entry.js +1 -0
  705. package/www/build/p-05ba9739.entry.js +1 -0
  706. package/www/build/p-06c94384.entry.js +1 -0
  707. package/www/build/p-100207d8.entry.js +1 -0
  708. package/www/build/p-1086a0fa.entry.js +1 -0
  709. package/www/build/p-112455b1.js +1 -0
  710. package/www/build/p-138bc87e.entry.js +1 -0
  711. package/www/build/p-13fc4378.js +1 -0
  712. package/www/build/p-15a606ce.entry.js +1 -0
  713. package/www/build/p-19876b0d.entry.js +1 -0
  714. package/www/build/p-1d805413.entry.js +1 -0
  715. package/www/build/p-29fa362c.entry.js +1 -0
  716. package/www/build/p-2cb45213.entry.js +1 -0
  717. package/www/build/p-33305cc8.entry.js +1 -0
  718. package/www/build/p-3636078a.entry.js +1 -0
  719. package/www/build/p-376f2928.entry.js +1 -0
  720. package/www/build/p-392899e9.entry.js +1 -0
  721. package/www/build/p-39a446ec.entry.js +1 -0
  722. package/www/build/p-39b7ad4f.entry.js +1 -0
  723. package/www/build/p-3bb2d909.entry.js +1 -0
  724. package/www/build/p-417482b0.entry.js +1 -0
  725. package/www/build/p-485fd3db.entry.js +1 -0
  726. package/www/build/p-49f4e9a0.entry.js +1 -0
  727. package/www/build/p-4d0d5d93.entry.js +1 -0
  728. package/www/build/p-50f78a81.entry.js +1 -0
  729. package/www/build/p-5338cc37.entry.js +1 -0
  730. package/www/build/p-571b55dc.js +1 -0
  731. package/www/build/p-57c6d414.entry.js +1 -0
  732. package/www/build/p-5944a8f2.entry.js +1 -0
  733. package/www/build/p-5c177ba5.entry.js +1 -0
  734. package/www/build/p-5d274fcc.entry.js +1 -0
  735. package/www/build/p-5f202970.entry.js +1 -0
  736. package/www/build/p-5fd3ed9c.entry.js +1 -0
  737. package/www/build/p-61c00383.entry.js +1 -0
  738. package/www/build/p-68410ea2.js +1 -0
  739. package/www/build/p-6a4403c6.entry.js +1 -0
  740. package/www/build/p-6ed0aaab.entry.js +1 -0
  741. package/www/build/p-7426f322.js +1 -0
  742. package/www/build/p-7588fbf0.js +1 -0
  743. package/www/build/p-7907bdf7.entry.js +1 -0
  744. package/www/build/p-7b990086.js +1 -0
  745. package/www/build/p-7c5ddeb0.entry.js +1 -0
  746. package/www/build/p-80e52459.js +1 -0
  747. package/www/build/p-81006561.js +2 -0
  748. package/www/build/p-86758f78.entry.js +1 -0
  749. package/www/build/p-8a45ae2a.entry.js +1 -0
  750. package/www/build/p-8c31e60b.entry.js +1 -0
  751. package/www/build/p-9021c92a.js +1 -0
  752. package/www/build/p-94afe4dd.entry.js +1 -0
  753. package/www/build/p-9508cd3e.js +1 -0
  754. package/www/build/p-95370f75.js +1 -0
  755. package/www/build/p-96fc8078.entry.js +1 -0
  756. package/www/build/p-98204840.entry.js +1 -0
  757. package/www/build/p-98badafc.js +1 -0
  758. package/www/build/p-9b0bcd43.entry.js +1 -0
  759. package/www/build/p-9c1ed1e8.entry.js +1 -0
  760. package/www/build/p-9ff2fc8e.entry.js +1 -0
  761. package/www/build/p-a01baa71.js +1 -0
  762. package/www/build/p-a1663ab1.entry.js +1 -0
  763. package/www/build/p-a3587fd6.entry.js +16 -0
  764. package/www/build/p-a4502b1e.entry.js +1 -0
  765. package/www/build/p-a48e5c46.entry.js +1 -0
  766. package/www/build/p-a50262e8.entry.js +1 -0
  767. package/www/build/p-a862a070.entry.js +1 -0
  768. package/www/build/p-a9d2edee.entry.js +1 -0
  769. package/www/build/p-acb89afa.entry.js +1 -0
  770. package/www/build/p-b2527ca1.entry.js +1 -0
  771. package/www/build/p-b497e33e.js +1 -0
  772. package/www/build/p-b99039ed.js +1 -0
  773. package/www/build/p-c298cb2f.js +1 -0
  774. package/www/build/p-c44d87bd.entry.js +1 -0
  775. package/www/build/p-c6e7991f.entry.js +1 -0
  776. package/www/build/p-c9bc5148.js +1 -0
  777. package/www/build/p-ca472d1c.entry.js +1 -0
  778. package/www/build/p-cbb670c5.js +1 -0
  779. package/www/build/p-cc009af8.entry.js +1 -0
  780. package/www/build/p-cd561d69.js +1 -0
  781. package/www/build/p-d2946762.entry.js +1 -0
  782. package/www/build/p-db0a64af.js +1 -0
  783. package/www/build/p-dd4fc386.entry.js +1 -0
  784. package/www/build/p-de5688e9.entry.js +1 -0
  785. package/www/build/p-decbd59d.entry.js +1 -0
  786. package/www/build/p-e43e61ac.js +7 -0
  787. package/www/build/p-e54d4ef9.entry.js +1 -0
  788. package/www/build/p-e7c6d651.entry.js +1 -0
  789. package/www/build/p-ed42ceca.entry.js +1 -0
  790. package/www/build/p-f058316f.entry.js +1 -0
  791. package/www/build/p-f14105c6.entry.js +1 -0
  792. package/www/build/p-f3cc3f27.entry.js +1 -0
  793. package/www/build/p-f46fa177.entry.js +1 -0
  794. package/www/build/p-f4e2e76b.entry.js +1 -0
  795. package/www/build/p-f5ae1514.entry.js +1 -0
  796. package/www/build/p-f5bc7dda.entry.js +1 -0
  797. package/www/build/p-f8383e14.entry.js +1 -0
  798. package/www/build/p-f976f29f.js +1 -0
  799. package/www/build/p-f9873cb9.entry.js +1 -0
  800. package/www/build/p-fd58b7a2.entry.js +1 -0
  801. package/www/build/p-fde82dc3.js +1 -0
  802. package/www/build/p-ff5a6e34.entry.js +1 -0
  803. package/www/build/p-ffde06d1.entry.js +1 -0
  804. package/www/build/web-components-library.css +3 -0
  805. package/www/build/web-components-library.esm.js +1 -0
  806. package/www/build/web-components-library.js +33 -0
  807. package/www/host.config.json +15 -0
  808. package/www/index.html +1 -0
  809. package/www/pages/book-cards.html +595 -0
  810. package/www/pages/file-upload.html +258 -0
  811. package/www/pages/notification.html +299 -0
@@ -0,0 +1,2298 @@
1
+ const NAMESPACE = 'web-components-library';
2
+
3
+ /**
4
+ * Virtual DOM patching algorithm based on Snabbdom by
5
+ * Simon Friis Vindum (@paldepind)
6
+ * Licensed under the MIT License
7
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
8
+ *
9
+ * Modified for Stencil's renderer and slot projection
10
+ */
11
+ let scopeId;
12
+ let contentRef;
13
+ let hostTagName;
14
+ let useNativeShadowDom = false;
15
+ let checkSlotFallbackVisibility = false;
16
+ let checkSlotRelocate = false;
17
+ let isSvgMode = false;
18
+ let queuePending = false;
19
+ const createTime = (fnName, tagName = '') => {
20
+ {
21
+ return () => {
22
+ return;
23
+ };
24
+ }
25
+ };
26
+ const uniqueTime = (key, measureText) => {
27
+ {
28
+ return () => {
29
+ return;
30
+ };
31
+ }
32
+ };
33
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
34
+ const XLINK_NS = 'http://www.w3.org/1999/xlink';
35
+ /**
36
+ * Default style mode id
37
+ */
38
+ /**
39
+ * Reusable empty obj/array
40
+ * Don't add values to these!!
41
+ */
42
+ const EMPTY_OBJ = {};
43
+ /**
44
+ * Namespaces
45
+ */
46
+ const SVG_NS = 'http://www.w3.org/2000/svg';
47
+ const HTML_NS = 'http://www.w3.org/1999/xhtml';
48
+ const isDef = (v) => v != null;
49
+ const isComplexType = (o) => {
50
+ // https://jsperf.com/typeof-fn-object/5
51
+ o = typeof o;
52
+ return o === 'object' || o === 'function';
53
+ };
54
+ /**
55
+ * Production h() function based on Preact by
56
+ * Jason Miller (@developit)
57
+ * Licensed under the MIT License
58
+ * https://github.com/developit/preact/blob/master/LICENSE
59
+ *
60
+ * Modified for Stencil's compiler and vdom
61
+ */
62
+ // const stack: any[] = [];
63
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
64
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
65
+ const h = (nodeName, vnodeData, ...children) => {
66
+ let child = null;
67
+ let key = null;
68
+ let slotName = null;
69
+ let simple = false;
70
+ let lastSimple = false;
71
+ const vNodeChildren = [];
72
+ const walk = (c) => {
73
+ for (let i = 0; i < c.length; i++) {
74
+ child = c[i];
75
+ if (Array.isArray(child)) {
76
+ walk(child);
77
+ }
78
+ else if (child != null && typeof child !== 'boolean') {
79
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
80
+ child = String(child);
81
+ }
82
+ if (simple && lastSimple) {
83
+ // If the previous child was simple (string), we merge both
84
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
85
+ }
86
+ else {
87
+ // Append a new vNode, if it's text, we create a text vNode
88
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
89
+ }
90
+ lastSimple = simple;
91
+ }
92
+ }
93
+ };
94
+ walk(children);
95
+ if (vnodeData) {
96
+ // normalize class / classname attributes
97
+ if (vnodeData.key) {
98
+ key = vnodeData.key;
99
+ }
100
+ if (vnodeData.name) {
101
+ slotName = vnodeData.name;
102
+ }
103
+ {
104
+ const classData = vnodeData.className || vnodeData.class;
105
+ if (classData) {
106
+ vnodeData.class =
107
+ typeof classData !== 'object'
108
+ ? classData
109
+ : Object.keys(classData)
110
+ .filter((k) => classData[k])
111
+ .join(' ');
112
+ }
113
+ }
114
+ }
115
+ const vnode = newVNode(nodeName, null);
116
+ vnode.$attrs$ = vnodeData;
117
+ if (vNodeChildren.length > 0) {
118
+ vnode.$children$ = vNodeChildren;
119
+ }
120
+ {
121
+ vnode.$key$ = key;
122
+ }
123
+ {
124
+ vnode.$name$ = slotName;
125
+ }
126
+ return vnode;
127
+ };
128
+ const newVNode = (tag, text) => {
129
+ const vnode = {
130
+ $flags$: 0,
131
+ $tag$: tag,
132
+ $text$: text,
133
+ $elm$: null,
134
+ $children$: null,
135
+ };
136
+ {
137
+ vnode.$attrs$ = null;
138
+ }
139
+ {
140
+ vnode.$key$ = null;
141
+ }
142
+ {
143
+ vnode.$name$ = null;
144
+ }
145
+ return vnode;
146
+ };
147
+ const Host = {};
148
+ const isHost = (node) => node && node.$tag$ === Host;
149
+ /**
150
+ * Parse a new property value for a given property type.
151
+ *
152
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
153
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
154
+ * 1. `any`, the type given to `propValue` in the function signature
155
+ * 2. the type stored from `propType`.
156
+ *
157
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
158
+ *
159
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
160
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
161
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
162
+ * ```tsx
163
+ * <my-cmp prop-val={0}></my-cmp>
164
+ * ```
165
+ *
166
+ * HTML prop values on the other hand, will always a string
167
+ *
168
+ * @param propValue the new value to coerce to some type
169
+ * @param propType the type of the prop, expressed as a binary number
170
+ * @returns the parsed/coerced value
171
+ */
172
+ const parsePropertyValue = (propValue, propType) => {
173
+ // ensure this value is of the correct prop type
174
+ if (propValue != null && !isComplexType(propValue)) {
175
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
176
+ // per the HTML spec, any string value means it is a boolean true value
177
+ // but we'll cheat here and say that the string "false" is the boolean false
178
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
179
+ }
180
+ if (propType & 2 /* MEMBER_FLAGS.Number */) {
181
+ // force it to be a number
182
+ return parseFloat(propValue);
183
+ }
184
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
185
+ // could have been passed as a number or boolean
186
+ // but we still want it as a string
187
+ return String(propValue);
188
+ }
189
+ // redundant return here for better minification
190
+ return propValue;
191
+ }
192
+ // not sure exactly what type we want
193
+ // so no need to change to a different type
194
+ return propValue;
195
+ };
196
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
197
+ const createEvent = (ref, name, flags) => {
198
+ const elm = getElement(ref);
199
+ return {
200
+ emit: (detail) => {
201
+ return emitEvent(elm, name, {
202
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
203
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
204
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
205
+ detail,
206
+ });
207
+ },
208
+ };
209
+ };
210
+ /**
211
+ * Helper function to create & dispatch a custom Event on a provided target
212
+ * @param elm the target of the Event
213
+ * @param name the name to give the custom Event
214
+ * @param opts options for configuring a custom Event
215
+ * @returns the custom Event
216
+ */
217
+ const emitEvent = (elm, name, opts) => {
218
+ const ev = plt.ce(name, opts);
219
+ elm.dispatchEvent(ev);
220
+ return ev;
221
+ };
222
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
223
+ const registerStyle = (scopeId, cssText, allowCS) => {
224
+ let style = styles.get(scopeId);
225
+ if (supportsConstructableStylesheets && allowCS) {
226
+ style = (style || new CSSStyleSheet());
227
+ if (typeof style === 'string') {
228
+ style = cssText;
229
+ }
230
+ else {
231
+ style.replaceSync(cssText);
232
+ }
233
+ }
234
+ else {
235
+ style = cssText;
236
+ }
237
+ styles.set(scopeId, style);
238
+ };
239
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
240
+ let scopeId = getScopeId(cmpMeta);
241
+ const style = styles.get(scopeId);
242
+ // if an element is NOT connected then getRootNode() will return the wrong root node
243
+ // so the fallback is to always use the document for the root node in those cases
244
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
245
+ if (style) {
246
+ if (typeof style === 'string') {
247
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
248
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
249
+ let styleElm;
250
+ if (!appliedStyles) {
251
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
252
+ }
253
+ if (!appliedStyles.has(scopeId)) {
254
+ {
255
+ {
256
+ styleElm = doc.createElement('style');
257
+ styleElm.innerHTML = style;
258
+ }
259
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
260
+ }
261
+ if (appliedStyles) {
262
+ appliedStyles.add(scopeId);
263
+ }
264
+ }
265
+ }
266
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
267
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
268
+ }
269
+ }
270
+ return scopeId;
271
+ };
272
+ const attachStyles = (hostRef) => {
273
+ const cmpMeta = hostRef.$cmpMeta$;
274
+ const elm = hostRef.$hostElement$;
275
+ const flags = cmpMeta.$flags$;
276
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
277
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
278
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
279
+ // only required when we're NOT using native shadow dom (slot)
280
+ // or this browser doesn't support native shadow dom
281
+ // and this host element was NOT created with SSR
282
+ // let's pick out the inner content for slot projection
283
+ // create a node to represent where the original
284
+ // content was first placed, which is useful later on
285
+ // DOM WRITE!!
286
+ elm['s-sc'] = scopeId;
287
+ elm.classList.add(scopeId + '-h');
288
+ if (flags & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
289
+ elm.classList.add(scopeId + '-s');
290
+ }
291
+ }
292
+ endAttachStyles();
293
+ };
294
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
295
+ /**
296
+ * Production setAccessor() function based on Preact by
297
+ * Jason Miller (@developit)
298
+ * Licensed under the MIT License
299
+ * https://github.com/developit/preact/blob/master/LICENSE
300
+ *
301
+ * Modified for Stencil's compiler and vdom
302
+ */
303
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
304
+ if (oldValue !== newValue) {
305
+ let isProp = isMemberInElement(elm, memberName);
306
+ let ln = memberName.toLowerCase();
307
+ if (memberName === 'class') {
308
+ const classList = elm.classList;
309
+ const oldClasses = parseClassList(oldValue);
310
+ const newClasses = parseClassList(newValue);
311
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
312
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
313
+ }
314
+ else if (memberName === 'style') {
315
+ // update style attribute, css properties and values
316
+ {
317
+ for (const prop in oldValue) {
318
+ if (!newValue || newValue[prop] == null) {
319
+ if (prop.includes('-')) {
320
+ elm.style.removeProperty(prop);
321
+ }
322
+ else {
323
+ elm.style[prop] = '';
324
+ }
325
+ }
326
+ }
327
+ }
328
+ for (const prop in newValue) {
329
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
330
+ if (prop.includes('-')) {
331
+ elm.style.setProperty(prop, newValue[prop]);
332
+ }
333
+ else {
334
+ elm.style[prop] = newValue[prop];
335
+ }
336
+ }
337
+ }
338
+ }
339
+ else if (memberName === 'key')
340
+ ;
341
+ else if (memberName === 'ref') {
342
+ // minifier will clean this up
343
+ if (newValue) {
344
+ newValue(elm);
345
+ }
346
+ }
347
+ else if ((!isProp ) &&
348
+ memberName[0] === 'o' &&
349
+ memberName[1] === 'n') {
350
+ // Event Handlers
351
+ // so if the member name starts with "on" and the 3rd characters is
352
+ // a capital letter, and it's not already a member on the element,
353
+ // then we're assuming it's an event listener
354
+ if (memberName[2] === '-') {
355
+ // on- prefixed events
356
+ // allows to be explicit about the dom event to listen without any magic
357
+ // under the hood:
358
+ // <my-cmp on-click> // listens for "click"
359
+ // <my-cmp on-Click> // listens for "Click"
360
+ // <my-cmp on-ionChange> // listens for "ionChange"
361
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
362
+ memberName = memberName.slice(3);
363
+ }
364
+ else if (isMemberInElement(win, ln)) {
365
+ // standard event
366
+ // the JSX attribute could have been "onMouseOver" and the
367
+ // member name "onmouseover" is on the window's prototype
368
+ // so let's add the listener "mouseover", which is all lowercased
369
+ memberName = ln.slice(2);
370
+ }
371
+ else {
372
+ // custom event
373
+ // the JSX attribute could have been "onMyCustomEvent"
374
+ // so let's trim off the "on" prefix and lowercase the first character
375
+ // and add the listener "myCustomEvent"
376
+ // except for the first character, we keep the event name case
377
+ memberName = ln[2] + memberName.slice(3);
378
+ }
379
+ if (oldValue) {
380
+ plt.rel(elm, memberName, oldValue, false);
381
+ }
382
+ if (newValue) {
383
+ plt.ael(elm, memberName, newValue, false);
384
+ }
385
+ }
386
+ else {
387
+ // Set property if it exists and it's not a SVG
388
+ const isComplex = isComplexType(newValue);
389
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
390
+ try {
391
+ if (!elm.tagName.includes('-')) {
392
+ const n = newValue == null ? '' : newValue;
393
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
394
+ if (memberName === 'list') {
395
+ isProp = false;
396
+ }
397
+ else if (oldValue == null || elm[memberName] != n) {
398
+ elm[memberName] = n;
399
+ }
400
+ }
401
+ else {
402
+ elm[memberName] = newValue;
403
+ }
404
+ }
405
+ catch (e) { }
406
+ }
407
+ /**
408
+ * Need to manually update attribute if:
409
+ * - memberName is not an attribute
410
+ * - if we are rendering the host element in order to reflect attribute
411
+ * - if it's a SVG, since properties might not work in <svg>
412
+ * - if the newValue is null/undefined or 'false'.
413
+ */
414
+ let xlink = false;
415
+ {
416
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
417
+ memberName = ln;
418
+ xlink = true;
419
+ }
420
+ }
421
+ if (newValue == null || newValue === false) {
422
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
423
+ if (xlink) {
424
+ elm.removeAttributeNS(XLINK_NS, memberName);
425
+ }
426
+ else {
427
+ elm.removeAttribute(memberName);
428
+ }
429
+ }
430
+ }
431
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
432
+ newValue = newValue === true ? '' : newValue;
433
+ if (xlink) {
434
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
435
+ }
436
+ else {
437
+ elm.setAttribute(memberName, newValue);
438
+ }
439
+ }
440
+ }
441
+ }
442
+ };
443
+ const parseClassListRegex = /\s/;
444
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
445
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
446
+ // if the element passed in is a shadow root, which is a document fragment
447
+ // then we want to be adding attrs/props to the shadow root's "host" element
448
+ // if it's not a shadow root, then we add attrs/props to the same element
449
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
450
+ ? newVnode.$elm$.host
451
+ : newVnode.$elm$;
452
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
453
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
454
+ {
455
+ // remove attributes no longer present on the vnode by setting them to undefined
456
+ for (memberName in oldVnodeAttrs) {
457
+ if (!(memberName in newVnodeAttrs)) {
458
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
459
+ }
460
+ }
461
+ }
462
+ // add new & update changed attributes
463
+ for (memberName in newVnodeAttrs) {
464
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
465
+ }
466
+ };
467
+ /**
468
+ * Create a DOM Node corresponding to one of the children of a given VNode.
469
+ *
470
+ * @param oldParentVNode the parent VNode from the previous render
471
+ * @param newParentVNode the parent VNode from the current render
472
+ * @param childIndex the index of the VNode, in the _new_ parent node's
473
+ * children, for which we will create a new DOM node
474
+ * @param parentElm the parent DOM node which our new node will be a child of
475
+ * @returns the newly created node
476
+ */
477
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
478
+ // tslint:disable-next-line: prefer-const
479
+ const newVNode = newParentVNode.$children$[childIndex];
480
+ let i = 0;
481
+ let elm;
482
+ let childNode;
483
+ let oldVNode;
484
+ if (!useNativeShadowDom) {
485
+ // remember for later we need to check to relocate nodes
486
+ checkSlotRelocate = true;
487
+ if (newVNode.$tag$ === 'slot') {
488
+ if (scopeId) {
489
+ // scoped css needs to add its scoped id to the parent element
490
+ parentElm.classList.add(scopeId + '-s');
491
+ }
492
+ newVNode.$flags$ |= newVNode.$children$
493
+ ? // slot element has fallback content
494
+ 2 /* VNODE_FLAGS.isSlotFallback */
495
+ : // slot element does not have fallback content
496
+ 1 /* VNODE_FLAGS.isSlotReference */;
497
+ }
498
+ }
499
+ if (newVNode.$text$ !== null) {
500
+ // create text node
501
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
502
+ }
503
+ else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
504
+ // create a slot reference node
505
+ elm = newVNode.$elm$ =
506
+ doc.createTextNode('');
507
+ }
508
+ else {
509
+ if (!isSvgMode) {
510
+ isSvgMode = newVNode.$tag$ === 'svg';
511
+ }
512
+ // create element
513
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
514
+ ? 'slot-fb'
515
+ : newVNode.$tag$)
516
+ );
517
+ if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
518
+ isSvgMode = false;
519
+ }
520
+ // add css classes, attrs, props, listeners, etc.
521
+ {
522
+ updateElement(null, newVNode, isSvgMode);
523
+ }
524
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
525
+ // if there is a scopeId and this is the initial render
526
+ // then let's add the scopeId as a css class
527
+ elm.classList.add((elm['s-si'] = scopeId));
528
+ }
529
+ if (newVNode.$children$) {
530
+ for (i = 0; i < newVNode.$children$.length; ++i) {
531
+ // create the node
532
+ childNode = createElm(oldParentVNode, newVNode, i, elm);
533
+ // return node could have been null
534
+ if (childNode) {
535
+ // append our new node
536
+ elm.appendChild(childNode);
537
+ }
538
+ }
539
+ }
540
+ {
541
+ if (newVNode.$tag$ === 'svg') {
542
+ // Only reset the SVG context when we're exiting <svg> element
543
+ isSvgMode = false;
544
+ }
545
+ else if (elm.tagName === 'foreignObject') {
546
+ // Reenter SVG context when we're exiting <foreignObject> element
547
+ isSvgMode = true;
548
+ }
549
+ }
550
+ }
551
+ {
552
+ elm['s-hn'] = hostTagName;
553
+ if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
554
+ // remember the content reference comment
555
+ elm['s-sr'] = true;
556
+ // remember the content reference comment
557
+ elm['s-cr'] = contentRef;
558
+ // remember the slot name, or empty string for default slot
559
+ elm['s-sn'] = newVNode.$name$ || '';
560
+ // check if we've got an old vnode for this slot
561
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
562
+ if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
563
+ // we've got an old slot vnode and the wrapper is being replaced
564
+ // so let's move the old slot content back to it's original location
565
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
566
+ }
567
+ }
568
+ }
569
+ return elm;
570
+ };
571
+ const putBackInOriginalLocation = (parentElm, recursive) => {
572
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
573
+ const oldSlotChildNodes = parentElm.childNodes;
574
+ for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
575
+ const childNode = oldSlotChildNodes[i];
576
+ if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
577
+ // // this child node in the old element is from another component
578
+ // // remove this node from the old slot's parent
579
+ // childNode.remove();
580
+ // and relocate it back to it's original location
581
+ parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
582
+ // remove the old original location comment entirely
583
+ // later on the patch function will know what to do
584
+ // and move this to the correct spot in need be
585
+ childNode['s-ol'].remove();
586
+ childNode['s-ol'] = undefined;
587
+ checkSlotRelocate = true;
588
+ }
589
+ if (recursive) {
590
+ putBackInOriginalLocation(childNode, recursive);
591
+ }
592
+ }
593
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
594
+ };
595
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
596
+ let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
597
+ let childNode;
598
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
599
+ containerElm = containerElm.shadowRoot;
600
+ }
601
+ for (; startIdx <= endIdx; ++startIdx) {
602
+ if (vnodes[startIdx]) {
603
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
604
+ if (childNode) {
605
+ vnodes[startIdx].$elm$ = childNode;
606
+ containerElm.insertBefore(childNode, referenceNode(before) );
607
+ }
608
+ }
609
+ }
610
+ };
611
+ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
612
+ for (; startIdx <= endIdx; ++startIdx) {
613
+ if ((vnode = vnodes[startIdx])) {
614
+ elm = vnode.$elm$;
615
+ callNodeRefs(vnode);
616
+ {
617
+ // we're removing this element
618
+ // so it's possible we need to show slot fallback content now
619
+ checkSlotFallbackVisibility = true;
620
+ if (elm['s-ol']) {
621
+ // remove the original location comment
622
+ elm['s-ol'].remove();
623
+ }
624
+ else {
625
+ // it's possible that child nodes of the node
626
+ // that's being removed are slot nodes
627
+ putBackInOriginalLocation(elm, true);
628
+ }
629
+ }
630
+ // remove the vnode's element from the dom
631
+ elm.remove();
632
+ }
633
+ }
634
+ };
635
+ /**
636
+ * Reconcile the children of a new VNode with the children of an old VNode by
637
+ * traversing the two collections of children, identifying nodes that are
638
+ * conserved or changed, calling out to `patch` to make any necessary
639
+ * updates to the DOM, and rearranging DOM nodes as needed.
640
+ *
641
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
642
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
643
+ * 'windows' by storing start and end indices and references to the
644
+ * corresponding array entries. Initially the two 'windows' are basically equal
645
+ * to the entire array, but we progressively narrow the windows until there are
646
+ * no children left to update by doing the following:
647
+ *
648
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
649
+ * that if we have an initial array like the following we'll end up dealing
650
+ * only with a window bounded by the highlighted elements:
651
+ *
652
+ * [null, null, VNode1 , ... , VNode2, null, null]
653
+ * ^^^^^^ ^^^^^^
654
+ *
655
+ * 2. Check to see if the elements at the head and tail positions are equal
656
+ * across the windows. This will basically detect elements which haven't
657
+ * been added, removed, or changed position, i.e. if you had the following
658
+ * VNode elements (represented as HTML):
659
+ *
660
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
661
+ * newVNode: `<div><p><span>THERE</span></p></div>`
662
+ *
663
+ * Then when comparing the children of the `<div>` tag we check the equality
664
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
665
+ * same tag in the same position, we'd be able to avoid completely
666
+ * re-rendering the subtree under them with a new DOM element and would just
667
+ * call out to `patch` to handle reconciling their children and so on.
668
+ *
669
+ * 3. Check, for both windows, to see if the element at the beginning of the
670
+ * window corresponds to the element at the end of the other window. This is
671
+ * a heuristic which will let us identify _some_ situations in which
672
+ * elements have changed position, for instance it _should_ detect that the
673
+ * children nodes themselves have not changed but merely moved in the
674
+ * following example:
675
+ *
676
+ * oldVNode: `<div><element-one /><element-two /></div>`
677
+ * newVNode: `<div><element-two /><element-one /></div>`
678
+ *
679
+ * If we find cases like this then we also need to move the concrete DOM
680
+ * elements corresponding to the moved children to write the re-order to the
681
+ * DOM.
682
+ *
683
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
684
+ * nodes in the old children which have the same key as the first element in
685
+ * our window on the new children. If we find such a node we handle calling
686
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
687
+ * what we find.
688
+ *
689
+ * Finally, once we've narrowed our 'windows' to the point that either of them
690
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
691
+ * insertion or deletion that needs to happen to get a DOM state that correctly
692
+ * reflects the new child VNodes. If, for instance, after our window on the old
693
+ * children has collapsed we still have more nodes on the new children that
694
+ * we haven't dealt with yet then we need to add them, or if the new children
695
+ * collapse but we still have unhandled _old_ children then we need to make
696
+ * sure the corresponding DOM nodes are removed.
697
+ *
698
+ * @param parentElm the node into which the parent VNode is rendered
699
+ * @param oldCh the old children of the parent node
700
+ * @param newVNode the new VNode which will replace the parent
701
+ * @param newCh the new children of the parent node
702
+ */
703
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
704
+ let oldStartIdx = 0;
705
+ let newStartIdx = 0;
706
+ let idxInOld = 0;
707
+ let i = 0;
708
+ let oldEndIdx = oldCh.length - 1;
709
+ let oldStartVnode = oldCh[0];
710
+ let oldEndVnode = oldCh[oldEndIdx];
711
+ let newEndIdx = newCh.length - 1;
712
+ let newStartVnode = newCh[0];
713
+ let newEndVnode = newCh[newEndIdx];
714
+ let node;
715
+ let elmToMove;
716
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
717
+ if (oldStartVnode == null) {
718
+ // VNode might have been moved left
719
+ oldStartVnode = oldCh[++oldStartIdx];
720
+ }
721
+ else if (oldEndVnode == null) {
722
+ oldEndVnode = oldCh[--oldEndIdx];
723
+ }
724
+ else if (newStartVnode == null) {
725
+ newStartVnode = newCh[++newStartIdx];
726
+ }
727
+ else if (newEndVnode == null) {
728
+ newEndVnode = newCh[--newEndIdx];
729
+ }
730
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
731
+ // if the start nodes are the same then we should patch the new VNode
732
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
733
+ // indices to reflect that. We don't need to move any DOM Nodes around
734
+ // since things are matched up in order.
735
+ patch(oldStartVnode, newStartVnode);
736
+ oldStartVnode = oldCh[++oldStartIdx];
737
+ newStartVnode = newCh[++newStartIdx];
738
+ }
739
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
740
+ // likewise, if the end nodes are the same we patch new onto old and
741
+ // decrement our end indices, and also likewise in this case we don't
742
+ // need to move any DOM Nodes.
743
+ patch(oldEndVnode, newEndVnode);
744
+ oldEndVnode = oldCh[--oldEndIdx];
745
+ newEndVnode = newCh[--newEndIdx];
746
+ }
747
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
748
+ // case: "Vnode moved right"
749
+ //
750
+ // We've found that the last node in our window on the new children is
751
+ // the same VNode as the _first_ node in our window on the old children
752
+ // we're dealing with now. Visually, this is the layout of these two
753
+ // nodes:
754
+ //
755
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
756
+ // ^^^^^^^^^^^
757
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
758
+ // ^^^^^^^^^^^^^
759
+ //
760
+ // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
761
+ // and move the DOM element for `oldStartVnode`.
762
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
763
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
764
+ }
765
+ patch(oldStartVnode, newEndVnode);
766
+ // We need to move the element for `oldStartVnode` into a position which
767
+ // will be appropriate for `newEndVnode`. For this we can use
768
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
769
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
770
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
771
+ //
772
+ // <old-start-node />
773
+ // <some-intervening-node />
774
+ // <old-end-node />
775
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
776
+ // <next-sibling />
777
+ //
778
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
779
+ // the node for `oldStartVnode` at the end of the children of
780
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
781
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
782
+ // append it to the children of the parent element.
783
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
784
+ oldStartVnode = oldCh[++oldStartIdx];
785
+ newEndVnode = newCh[--newEndIdx];
786
+ }
787
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
788
+ // case: "Vnode moved left"
789
+ //
790
+ // We've found that the first node in our window on the new children is
791
+ // the same VNode as the _last_ node in our window on the old children.
792
+ // Visually, this is the layout of these two nodes:
793
+ //
794
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
795
+ // ^^^^^^^^^^^^^
796
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
797
+ // ^^^^^^^^^^^
798
+ //
799
+ // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
800
+ // (which will handle updating any changed attributes, reconciling their
801
+ // children etc) but we also need to move the DOM node to which
802
+ // `oldEndVnode` corresponds.
803
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
804
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
805
+ }
806
+ patch(oldEndVnode, newStartVnode);
807
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
808
+ // the same node, so since we're here we know that they are not. Thus we
809
+ // can move the element for `oldEndVnode` _before_ the element for
810
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
811
+ // future.
812
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
813
+ oldEndVnode = oldCh[--oldEndIdx];
814
+ newStartVnode = newCh[++newStartIdx];
815
+ }
816
+ else {
817
+ // Here we do some checks to match up old and new nodes based on the
818
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
819
+ // in the JSX for a DOM element in the implementation of a Stencil
820
+ // component.
821
+ //
822
+ // First we check to see if there are any nodes in the array of old
823
+ // children which have the same key as the first node in the new
824
+ // children.
825
+ idxInOld = -1;
826
+ {
827
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
828
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
829
+ idxInOld = i;
830
+ break;
831
+ }
832
+ }
833
+ }
834
+ if (idxInOld >= 0) {
835
+ // We found a node in the old children which matches up with the first
836
+ // node in the new children! So let's deal with that
837
+ elmToMove = oldCh[idxInOld];
838
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
839
+ // the tag doesn't match so we'll need a new DOM element
840
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
841
+ }
842
+ else {
843
+ patch(elmToMove, newStartVnode);
844
+ // invalidate the matching old node so that we won't try to update it
845
+ // again later on
846
+ oldCh[idxInOld] = undefined;
847
+ node = elmToMove.$elm$;
848
+ }
849
+ newStartVnode = newCh[++newStartIdx];
850
+ }
851
+ else {
852
+ // We either didn't find an element in the old children that matches
853
+ // the key of the first new child OR the build is not using `key`
854
+ // attributes at all. In either case we need to create a new element
855
+ // for the new node.
856
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
857
+ newStartVnode = newCh[++newStartIdx];
858
+ }
859
+ if (node) {
860
+ // if we created a new node then handle inserting it to the DOM
861
+ {
862
+ parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
863
+ }
864
+ }
865
+ }
866
+ }
867
+ if (oldStartIdx > oldEndIdx) {
868
+ // we have some more new nodes to add which don't match up with old nodes
869
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
870
+ }
871
+ else if (newStartIdx > newEndIdx) {
872
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
873
+ // in the new array, so lets remove them (which entails cleaning up the
874
+ // relevant DOM nodes)
875
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
876
+ }
877
+ };
878
+ /**
879
+ * Compare two VNodes to determine if they are the same
880
+ *
881
+ * **NB**: This function is an equality _heuristic_ based on the available
882
+ * information set on the two VNodes and can be misleading under certain
883
+ * circumstances. In particular, if the two nodes do not have `key` attrs
884
+ * (available under `$key$` on VNodes) then the function falls back on merely
885
+ * checking that they have the same tag.
886
+ *
887
+ * So, in other words, if `key` attrs are not set on VNodes which may be
888
+ * changing order within a `children` array or something along those lines then
889
+ * we could obtain a false positive and then have to do needless re-rendering.
890
+ *
891
+ * @param leftVNode the first VNode to check
892
+ * @param rightVNode the second VNode to check
893
+ * @returns whether they're equal or not
894
+ */
895
+ const isSameVnode = (leftVNode, rightVNode) => {
896
+ // compare if two vnode to see if they're "technically" the same
897
+ // need to have the same element tag, and same key to be the same
898
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
899
+ if (leftVNode.$tag$ === 'slot') {
900
+ return leftVNode.$name$ === rightVNode.$name$;
901
+ }
902
+ // this will be set if components in the build have `key` attrs set on them
903
+ {
904
+ return leftVNode.$key$ === rightVNode.$key$;
905
+ }
906
+ }
907
+ return false;
908
+ };
909
+ const referenceNode = (node) => {
910
+ // this node was relocated to a new location in the dom
911
+ // because of some other component's slot
912
+ // but we still have an html comment in place of where
913
+ // it's original location was according to it's original vdom
914
+ return (node && node['s-ol']) || node;
915
+ };
916
+ const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
917
+ /**
918
+ * Handle reconciling an outdated VNode with a new one which corresponds to
919
+ * it. This function handles flushing updates to the DOM and reconciling the
920
+ * children of the two nodes (if any).
921
+ *
922
+ * @param oldVNode an old VNode whose DOM element and children we want to update
923
+ * @param newVNode a new VNode representing an updated version of the old one
924
+ */
925
+ const patch = (oldVNode, newVNode) => {
926
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
927
+ const oldChildren = oldVNode.$children$;
928
+ const newChildren = newVNode.$children$;
929
+ const tag = newVNode.$tag$;
930
+ const text = newVNode.$text$;
931
+ let defaultHolder;
932
+ if (text === null) {
933
+ {
934
+ // test if we're rendering an svg element, or still rendering nodes inside of one
935
+ // only add this to the when the compiler sees we're using an svg somewhere
936
+ isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
937
+ }
938
+ {
939
+ if (tag === 'slot')
940
+ ;
941
+ else {
942
+ // either this is the first render of an element OR it's an update
943
+ // AND we already know it's possible it could have changed
944
+ // this updates the element's css classes, attrs, props, listeners, etc.
945
+ updateElement(oldVNode, newVNode, isSvgMode);
946
+ }
947
+ }
948
+ if (oldChildren !== null && newChildren !== null) {
949
+ // looks like there's child vnodes for both the old and new vnodes
950
+ // so we need to call `updateChildren` to reconcile them
951
+ updateChildren(elm, oldChildren, newVNode, newChildren);
952
+ }
953
+ else if (newChildren !== null) {
954
+ // no old child vnodes, but there are new child vnodes to add
955
+ if (oldVNode.$text$ !== null) {
956
+ // the old vnode was text, so be sure to clear it out
957
+ elm.textContent = '';
958
+ }
959
+ // add the new vnode children
960
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
961
+ }
962
+ else if (oldChildren !== null) {
963
+ // no new child vnodes, but there are old child vnodes to remove
964
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
965
+ }
966
+ if (isSvgMode && tag === 'svg') {
967
+ isSvgMode = false;
968
+ }
969
+ }
970
+ else if ((defaultHolder = elm['s-cr'])) {
971
+ // this element has slotted content
972
+ defaultHolder.parentNode.textContent = text;
973
+ }
974
+ else if (oldVNode.$text$ !== text) {
975
+ // update the text content for the text only vnode
976
+ // and also only if the text is different than before
977
+ elm.data = text;
978
+ }
979
+ };
980
+ const updateFallbackSlotVisibility = (elm) => {
981
+ // tslint:disable-next-line: prefer-const
982
+ const childNodes = elm.childNodes;
983
+ let childNode;
984
+ let i;
985
+ let ilen;
986
+ let j;
987
+ let slotNameAttr;
988
+ let nodeType;
989
+ for (i = 0, ilen = childNodes.length; i < ilen; i++) {
990
+ childNode = childNodes[i];
991
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
992
+ if (childNode['s-sr']) {
993
+ // this is a slot fallback node
994
+ // get the slot name for this slot reference node
995
+ slotNameAttr = childNode['s-sn'];
996
+ // by default always show a fallback slot node
997
+ // then hide it if there are other slots in the light dom
998
+ childNode.hidden = false;
999
+ for (j = 0; j < ilen; j++) {
1000
+ nodeType = childNodes[j].nodeType;
1001
+ if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
1002
+ // this sibling node is from a different component OR is a named fallback slot node
1003
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1004
+ childNode.hidden = true;
1005
+ break;
1006
+ }
1007
+ }
1008
+ else {
1009
+ // this is a default fallback slot node
1010
+ // any element or text node (with content)
1011
+ // should hide the default fallback slot node
1012
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1013
+ (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
1014
+ childNode.hidden = true;
1015
+ break;
1016
+ }
1017
+ }
1018
+ }
1019
+ }
1020
+ // keep drilling down
1021
+ updateFallbackSlotVisibility(childNode);
1022
+ }
1023
+ }
1024
+ };
1025
+ const relocateNodes = [];
1026
+ const relocateSlotContent = (elm) => {
1027
+ // tslint:disable-next-line: prefer-const
1028
+ let childNode;
1029
+ let node;
1030
+ let hostContentNodes;
1031
+ let slotNameAttr;
1032
+ let relocateNodeData;
1033
+ let j;
1034
+ let i = 0;
1035
+ const childNodes = elm.childNodes;
1036
+ const ilen = childNodes.length;
1037
+ for (; i < ilen; i++) {
1038
+ childNode = childNodes[i];
1039
+ if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1040
+ // first got the content reference comment node
1041
+ // then we got it's parent, which is where all the host content is in now
1042
+ hostContentNodes = node.parentNode.childNodes;
1043
+ slotNameAttr = childNode['s-sn'];
1044
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1045
+ node = hostContentNodes[j];
1046
+ if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
1047
+ // let's do some relocating to its new home
1048
+ // but never relocate a content reference node
1049
+ // that is suppose to always represent the original content location
1050
+ if (isNodeLocatedInSlot(node, slotNameAttr)) {
1051
+ // it's possible we've already decided to relocate this node
1052
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1053
+ // made some changes to slots
1054
+ // let's make sure we also double check
1055
+ // fallbacks are correctly hidden or shown
1056
+ checkSlotFallbackVisibility = true;
1057
+ node['s-sn'] = node['s-sn'] || slotNameAttr;
1058
+ if (relocateNodeData) {
1059
+ // previously we never found a slot home for this node
1060
+ // but turns out we did, so let's remember it now
1061
+ relocateNodeData.$slotRefNode$ = childNode;
1062
+ }
1063
+ else {
1064
+ // add to our list of nodes to relocate
1065
+ relocateNodes.push({
1066
+ $slotRefNode$: childNode,
1067
+ $nodeToRelocate$: node,
1068
+ });
1069
+ }
1070
+ if (node['s-sr']) {
1071
+ relocateNodes.map((relocateNode) => {
1072
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1073
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1074
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1075
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1076
+ }
1077
+ }
1078
+ });
1079
+ }
1080
+ }
1081
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1082
+ // so far this element does not have a slot home, not setting slotRefNode on purpose
1083
+ // if we never find a home for this element then we'll need to hide it
1084
+ relocateNodes.push({
1085
+ $nodeToRelocate$: node,
1086
+ });
1087
+ }
1088
+ }
1089
+ }
1090
+ }
1091
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1092
+ relocateSlotContent(childNode);
1093
+ }
1094
+ }
1095
+ };
1096
+ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
1097
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1098
+ if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
1099
+ return true;
1100
+ }
1101
+ if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
1102
+ return true;
1103
+ }
1104
+ return false;
1105
+ }
1106
+ if (nodeToRelocate['s-sn'] === slotNameAttr) {
1107
+ return true;
1108
+ }
1109
+ return slotNameAttr === '';
1110
+ };
1111
+ const callNodeRefs = (vNode) => {
1112
+ {
1113
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1114
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
1115
+ }
1116
+ };
1117
+ const renderVdom = (hostRef, renderFnResults) => {
1118
+ const hostElm = hostRef.$hostElement$;
1119
+ const cmpMeta = hostRef.$cmpMeta$;
1120
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1121
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1122
+ hostTagName = hostElm.tagName;
1123
+ if (cmpMeta.$attrsToReflect$) {
1124
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1125
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1126
+ }
1127
+ rootVnode.$tag$ = null;
1128
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1129
+ hostRef.$vnode$ = rootVnode;
1130
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
1131
+ {
1132
+ scopeId = hostElm['s-sc'];
1133
+ }
1134
+ {
1135
+ contentRef = hostElm['s-cr'];
1136
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1137
+ // always reset
1138
+ checkSlotFallbackVisibility = false;
1139
+ }
1140
+ // synchronous patch
1141
+ patch(oldVNode, rootVnode);
1142
+ {
1143
+ // while we're moving nodes around existing nodes, temporarily disable
1144
+ // the disconnectCallback from working
1145
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1146
+ if (checkSlotRelocate) {
1147
+ relocateSlotContent(rootVnode.$elm$);
1148
+ let relocateData;
1149
+ let nodeToRelocate;
1150
+ let orgLocationNode;
1151
+ let parentNodeRef;
1152
+ let insertBeforeNode;
1153
+ let refNode;
1154
+ let i = 0;
1155
+ for (; i < relocateNodes.length; i++) {
1156
+ relocateData = relocateNodes[i];
1157
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1158
+ if (!nodeToRelocate['s-ol']) {
1159
+ // add a reference node marking this node's original location
1160
+ // keep a reference to this node for later lookups
1161
+ orgLocationNode =
1162
+ doc.createTextNode('');
1163
+ orgLocationNode['s-nr'] = nodeToRelocate;
1164
+ nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1165
+ }
1166
+ }
1167
+ for (i = 0; i < relocateNodes.length; i++) {
1168
+ relocateData = relocateNodes[i];
1169
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1170
+ if (relocateData.$slotRefNode$) {
1171
+ // by default we're just going to insert it directly
1172
+ // after the slot reference node
1173
+ parentNodeRef = relocateData.$slotRefNode$.parentNode;
1174
+ insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1175
+ orgLocationNode = nodeToRelocate['s-ol'];
1176
+ while ((orgLocationNode = orgLocationNode.previousSibling)) {
1177
+ refNode = orgLocationNode['s-nr'];
1178
+ if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1179
+ refNode = refNode.nextSibling;
1180
+ if (!refNode || !refNode['s-nr']) {
1181
+ insertBeforeNode = refNode;
1182
+ break;
1183
+ }
1184
+ }
1185
+ }
1186
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1187
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
1188
+ // we've checked that it's worth while to relocate
1189
+ // since that the node to relocate
1190
+ // has a different next sibling or parent relocated
1191
+ if (nodeToRelocate !== insertBeforeNode) {
1192
+ if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1193
+ // probably a component in the index.html that doesn't have it's hostname set
1194
+ nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1195
+ }
1196
+ // add it back to the dom but in its new home
1197
+ parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1198
+ }
1199
+ }
1200
+ }
1201
+ else {
1202
+ // this node doesn't have a slot home to go to, so let's hide it
1203
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1204
+ nodeToRelocate.hidden = true;
1205
+ }
1206
+ }
1207
+ }
1208
+ }
1209
+ if (checkSlotFallbackVisibility) {
1210
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1211
+ }
1212
+ // done moving nodes around
1213
+ // allow the disconnect callback to work again
1214
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1215
+ // always reset
1216
+ relocateNodes.length = 0;
1217
+ }
1218
+ };
1219
+ const attachToAncestor = (hostRef, ancestorComponent) => {
1220
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1221
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1222
+ }
1223
+ };
1224
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
1225
+ {
1226
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1227
+ }
1228
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1229
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1230
+ return;
1231
+ }
1232
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1233
+ // there is no ancestor component or the ancestor component
1234
+ // has already fired off its lifecycle update then
1235
+ // fire off the initial update
1236
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1237
+ return writeTask(dispatch) ;
1238
+ };
1239
+ const dispatchHooks = (hostRef, isInitialLoad) => {
1240
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1241
+ const instance = hostRef.$lazyInstance$ ;
1242
+ let promise;
1243
+ if (isInitialLoad) {
1244
+ {
1245
+ hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
1246
+ if (hostRef.$queuedListeners$) {
1247
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1248
+ hostRef.$queuedListeners$ = null;
1249
+ }
1250
+ }
1251
+ {
1252
+ promise = safeCall(instance, 'componentWillLoad');
1253
+ }
1254
+ }
1255
+ else {
1256
+ {
1257
+ promise = safeCall(instance, 'componentWillUpdate');
1258
+ }
1259
+ }
1260
+ {
1261
+ promise = then(promise, () => safeCall(instance, 'componentWillRender'));
1262
+ }
1263
+ endSchedule();
1264
+ return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1265
+ };
1266
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1267
+ // updateComponent
1268
+ const elm = hostRef.$hostElement$;
1269
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1270
+ const rc = elm['s-rc'];
1271
+ if (isInitialLoad) {
1272
+ // DOM WRITE!
1273
+ attachStyles(hostRef);
1274
+ }
1275
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1276
+ {
1277
+ callRender(hostRef, instance);
1278
+ }
1279
+ if (rc) {
1280
+ // ok, so turns out there are some child host elements
1281
+ // waiting on this parent element to load
1282
+ // let's fire off all update callbacks waiting
1283
+ rc.map((cb) => cb());
1284
+ elm['s-rc'] = undefined;
1285
+ }
1286
+ endRender();
1287
+ endUpdate();
1288
+ {
1289
+ const childrenPromises = elm['s-p'];
1290
+ const postUpdate = () => postUpdateComponent(hostRef);
1291
+ if (childrenPromises.length === 0) {
1292
+ postUpdate();
1293
+ }
1294
+ else {
1295
+ Promise.all(childrenPromises).then(postUpdate);
1296
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1297
+ childrenPromises.length = 0;
1298
+ }
1299
+ }
1300
+ };
1301
+ const callRender = (hostRef, instance, elm) => {
1302
+ try {
1303
+ instance = instance.render() ;
1304
+ {
1305
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1306
+ }
1307
+ {
1308
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1309
+ }
1310
+ {
1311
+ {
1312
+ // looks like we've got child nodes to render into this host element
1313
+ // or we need to update the css class/attrs on the host element
1314
+ // DOM WRITE!
1315
+ {
1316
+ renderVdom(hostRef, instance);
1317
+ }
1318
+ }
1319
+ }
1320
+ }
1321
+ catch (e) {
1322
+ consoleError(e, hostRef.$hostElement$);
1323
+ }
1324
+ return null;
1325
+ };
1326
+ const postUpdateComponent = (hostRef) => {
1327
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1328
+ const elm = hostRef.$hostElement$;
1329
+ const endPostUpdate = createTime('postUpdate', tagName);
1330
+ const instance = hostRef.$lazyInstance$ ;
1331
+ const ancestorComponent = hostRef.$ancestorComponent$;
1332
+ {
1333
+ safeCall(instance, 'componentDidRender');
1334
+ }
1335
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1336
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1337
+ {
1338
+ // DOM WRITE!
1339
+ addHydratedFlag(elm);
1340
+ }
1341
+ {
1342
+ safeCall(instance, 'componentDidLoad');
1343
+ }
1344
+ endPostUpdate();
1345
+ {
1346
+ hostRef.$onReadyResolve$(elm);
1347
+ if (!ancestorComponent) {
1348
+ appDidLoad();
1349
+ }
1350
+ }
1351
+ }
1352
+ else {
1353
+ {
1354
+ safeCall(instance, 'componentDidUpdate');
1355
+ }
1356
+ endPostUpdate();
1357
+ }
1358
+ {
1359
+ hostRef.$onInstanceResolve$(elm);
1360
+ }
1361
+ // load events fire from bottom to top
1362
+ // the deepest elements load first then bubbles up
1363
+ {
1364
+ if (hostRef.$onRenderResolve$) {
1365
+ hostRef.$onRenderResolve$();
1366
+ hostRef.$onRenderResolve$ = undefined;
1367
+ }
1368
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1369
+ nextTick(() => scheduleUpdate(hostRef, false));
1370
+ }
1371
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1372
+ }
1373
+ // ( •_•)
1374
+ // ( •_•)>⌐■-■
1375
+ // (⌐■_■)
1376
+ };
1377
+ const appDidLoad = (who) => {
1378
+ // on appload
1379
+ // we have finish the first big initial render
1380
+ {
1381
+ addHydratedFlag(doc.documentElement);
1382
+ }
1383
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1384
+ };
1385
+ const safeCall = (instance, method, arg) => {
1386
+ if (instance && instance[method]) {
1387
+ try {
1388
+ return instance[method](arg);
1389
+ }
1390
+ catch (e) {
1391
+ consoleError(e);
1392
+ }
1393
+ }
1394
+ return undefined;
1395
+ };
1396
+ const then = (promise, thenFn) => {
1397
+ return promise && promise.then ? promise.then(thenFn) : thenFn();
1398
+ };
1399
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1400
+ ;
1401
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1402
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1403
+ // check our new property value against our internal value
1404
+ const hostRef = getHostRef(ref);
1405
+ const elm = hostRef.$hostElement$ ;
1406
+ const oldVal = hostRef.$instanceValues$.get(propName);
1407
+ const flags = hostRef.$flags$;
1408
+ const instance = hostRef.$lazyInstance$ ;
1409
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1410
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1411
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1412
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1413
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1414
+ // gadzooks! the property's value has changed!!
1415
+ // set our new value!
1416
+ hostRef.$instanceValues$.set(propName, newVal);
1417
+ if (instance) {
1418
+ // get an array of method names of watch functions to call
1419
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1420
+ const watchMethods = cmpMeta.$watchers$[propName];
1421
+ if (watchMethods) {
1422
+ // this instance is watching for when this property changed
1423
+ watchMethods.map((watchMethodName) => {
1424
+ try {
1425
+ // fire off each of the watch methods that are watching this property
1426
+ instance[watchMethodName](newVal, oldVal, propName);
1427
+ }
1428
+ catch (e) {
1429
+ consoleError(e, elm);
1430
+ }
1431
+ });
1432
+ }
1433
+ }
1434
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1435
+ // looks like this value actually changed, so we've got work to do!
1436
+ // but only if we've already rendered, otherwise just chill out
1437
+ // queue that we need to do an update, but don't worry about queuing
1438
+ // up millions cuz this function ensures it only runs once
1439
+ scheduleUpdate(hostRef, false);
1440
+ }
1441
+ }
1442
+ }
1443
+ };
1444
+ /**
1445
+ * Attach a series of runtime constructs to a compiled Stencil component
1446
+ * constructor, including getters and setters for the `@Prop` and `@State`
1447
+ * decorators, callbacks for when attributes change, and so on.
1448
+ *
1449
+ * @param Cstr the constructor for a component that we need to process
1450
+ * @param cmpMeta metadata collected previously about the component
1451
+ * @param flags a number used to store a series of bit flags
1452
+ * @returns a reference to the same constructor passed in (but now mutated)
1453
+ */
1454
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1455
+ if (cmpMeta.$members$) {
1456
+ if (Cstr.watchers) {
1457
+ cmpMeta.$watchers$ = Cstr.watchers;
1458
+ }
1459
+ // It's better to have a const than two Object.entries()
1460
+ const members = Object.entries(cmpMeta.$members$);
1461
+ const prototype = Cstr.prototype;
1462
+ members.map(([memberName, [memberFlags]]) => {
1463
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1464
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1465
+ // proxyComponent - prop
1466
+ Object.defineProperty(prototype, memberName, {
1467
+ get() {
1468
+ // proxyComponent, get value
1469
+ return getValue(this, memberName);
1470
+ },
1471
+ set(newValue) {
1472
+ // proxyComponent, set value
1473
+ setValue(this, memberName, newValue, cmpMeta);
1474
+ },
1475
+ configurable: true,
1476
+ enumerable: true,
1477
+ });
1478
+ }
1479
+ else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1480
+ memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1481
+ // proxyComponent - method
1482
+ Object.defineProperty(prototype, memberName, {
1483
+ value(...args) {
1484
+ const ref = getHostRef(this);
1485
+ return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1486
+ },
1487
+ });
1488
+ }
1489
+ });
1490
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1491
+ const attrNameToPropName = new Map();
1492
+ prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1493
+ plt.jmp(() => {
1494
+ const propName = attrNameToPropName.get(attrName);
1495
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1496
+ // in the case where an attribute was set inline.
1497
+ // ```html
1498
+ // <my-component some-attribute="some-value"></my-component>
1499
+ // ```
1500
+ //
1501
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1502
+ // programmatically changes it before it has been upgraded as shown below:
1503
+ //
1504
+ // ```html
1505
+ // <!-- this component has _not_ been upgraded yet -->
1506
+ // <my-component id="test" some-attribute="some-value"></my-component>
1507
+ // <script>
1508
+ // // grab non-upgraded component
1509
+ // el = document.querySelector("#test");
1510
+ // el.someAttribute = "another-value";
1511
+ // // upgrade component
1512
+ // customElements.define('my-component', MyComponent);
1513
+ // </script>
1514
+ // ```
1515
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1516
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1517
+ // to the value that was set inline i.e. "some-value" from above example. When
1518
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1519
+ //
1520
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1521
+ // by connectedCallback as this attributeChangedCallback will not fire.
1522
+ //
1523
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1524
+ //
1525
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1526
+ // properties here given that this goes against best practices outlined here
1527
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1528
+ if (this.hasOwnProperty(propName)) {
1529
+ newValue = this[propName];
1530
+ delete this[propName];
1531
+ }
1532
+ else if (prototype.hasOwnProperty(propName) &&
1533
+ typeof this[propName] === 'number' &&
1534
+ this[propName] == newValue) {
1535
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1536
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1537
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1538
+ return;
1539
+ }
1540
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1541
+ });
1542
+ };
1543
+ // create an array of attributes to observe
1544
+ // and also create a map of html attribute name to js property name
1545
+ Cstr.observedAttributes = members
1546
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1547
+ .map(([propName, m]) => {
1548
+ const attrName = m[1] || propName;
1549
+ attrNameToPropName.set(attrName, propName);
1550
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1551
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1552
+ }
1553
+ return attrName;
1554
+ });
1555
+ }
1556
+ }
1557
+ return Cstr;
1558
+ };
1559
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1560
+ // initializeComponent
1561
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1562
+ {
1563
+ // we haven't initialized this element yet
1564
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1565
+ // lazy loaded components
1566
+ // request the component's implementation to be
1567
+ // wired up with the host element
1568
+ Cstr = loadModule(cmpMeta);
1569
+ if (Cstr.then) {
1570
+ // Await creates a micro-task avoid if possible
1571
+ const endLoad = uniqueTime();
1572
+ Cstr = await Cstr;
1573
+ endLoad();
1574
+ }
1575
+ if (!Cstr.isProxied) {
1576
+ // we've never proxied this Constructor before
1577
+ // let's add the getters/setters to its prototype before
1578
+ // the first time we create an instance of the implementation
1579
+ {
1580
+ cmpMeta.$watchers$ = Cstr.watchers;
1581
+ }
1582
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1583
+ Cstr.isProxied = true;
1584
+ }
1585
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1586
+ // ok, time to construct the instance
1587
+ // but let's keep track of when we start and stop
1588
+ // so that the getters/setters don't incorrectly step on data
1589
+ {
1590
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1591
+ }
1592
+ // construct the lazy-loaded component implementation
1593
+ // passing the hostRef is very important during
1594
+ // construction in order to directly wire together the
1595
+ // host element and the lazy-loaded instance
1596
+ try {
1597
+ new Cstr(hostRef);
1598
+ }
1599
+ catch (e) {
1600
+ consoleError(e);
1601
+ }
1602
+ {
1603
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1604
+ }
1605
+ {
1606
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1607
+ }
1608
+ endNewInstance();
1609
+ fireConnectedCallback(hostRef.$lazyInstance$);
1610
+ }
1611
+ if (Cstr.style) {
1612
+ // this component has styles but we haven't registered them yet
1613
+ let style = Cstr.style;
1614
+ const scopeId = getScopeId(cmpMeta);
1615
+ if (!styles.has(scopeId)) {
1616
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1617
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1618
+ endRegisterStyles();
1619
+ }
1620
+ }
1621
+ }
1622
+ // we've successfully created a lazy instance
1623
+ const ancestorComponent = hostRef.$ancestorComponent$;
1624
+ const schedule = () => scheduleUpdate(hostRef, true);
1625
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1626
+ // this is the initial load and this component it has an ancestor component
1627
+ // but the ancestor component has NOT fired its will update lifecycle yet
1628
+ // so let's just cool our jets and wait for the ancestor to continue first
1629
+ // this will get fired off when the ancestor component
1630
+ // finally gets around to rendering its lazy self
1631
+ // fire off the initial update
1632
+ ancestorComponent['s-rc'].push(schedule);
1633
+ }
1634
+ else {
1635
+ schedule();
1636
+ }
1637
+ };
1638
+ const fireConnectedCallback = (instance) => {
1639
+ {
1640
+ safeCall(instance, 'connectedCallback');
1641
+ }
1642
+ };
1643
+ const connectedCallback = (elm) => {
1644
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1645
+ const hostRef = getHostRef(elm);
1646
+ const cmpMeta = hostRef.$cmpMeta$;
1647
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1648
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1649
+ // first time this component has connected
1650
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1651
+ {
1652
+ // initUpdate
1653
+ // if the slot polyfill is required we'll need to put some nodes
1654
+ // in here to act as original content anchors as we move nodes around
1655
+ // host element has been connected to the DOM
1656
+ if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1657
+ setContentReference(elm);
1658
+ }
1659
+ }
1660
+ {
1661
+ // find the first ancestor component (if there is one) and register
1662
+ // this component as one of the actively loading child components for its ancestor
1663
+ let ancestorComponent = elm;
1664
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1665
+ // climb up the ancestors looking for the first
1666
+ // component that hasn't finished its lifecycle update yet
1667
+ if (ancestorComponent['s-p']) {
1668
+ // we found this components first ancestor component
1669
+ // keep a reference to this component's ancestor component
1670
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1671
+ break;
1672
+ }
1673
+ }
1674
+ }
1675
+ // Lazy properties
1676
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1677
+ if (cmpMeta.$members$) {
1678
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1679
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1680
+ const value = elm[memberName];
1681
+ delete elm[memberName];
1682
+ elm[memberName] = value;
1683
+ }
1684
+ });
1685
+ }
1686
+ {
1687
+ initializeComponent(elm, hostRef, cmpMeta);
1688
+ }
1689
+ }
1690
+ else {
1691
+ // not the first time this has connected
1692
+ // reattach any event listeners to the host
1693
+ // since they would have been removed when disconnected
1694
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1695
+ // fire off connectedCallback() on component instance
1696
+ fireConnectedCallback(hostRef.$lazyInstance$);
1697
+ }
1698
+ endConnected();
1699
+ }
1700
+ };
1701
+ const setContentReference = (elm) => {
1702
+ // only required when we're NOT using native shadow dom (slot)
1703
+ // or this browser doesn't support native shadow dom
1704
+ // and this host element was NOT created with SSR
1705
+ // let's pick out the inner content for slot projection
1706
+ // create a node to represent where the original
1707
+ // content was first placed, which is useful later on
1708
+ const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1709
+ contentRefElm['s-cn'] = true;
1710
+ elm.insertBefore(contentRefElm, elm.firstChild);
1711
+ };
1712
+ const disconnectedCallback = (elm) => {
1713
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1714
+ const hostRef = getHostRef(elm);
1715
+ const instance = hostRef.$lazyInstance$ ;
1716
+ {
1717
+ if (hostRef.$rmListeners$) {
1718
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1719
+ hostRef.$rmListeners$ = undefined;
1720
+ }
1721
+ }
1722
+ {
1723
+ safeCall(instance, 'disconnectedCallback');
1724
+ }
1725
+ }
1726
+ };
1727
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1728
+ const endBootstrap = createTime();
1729
+ const cmpTags = [];
1730
+ const exclude = options.exclude || [];
1731
+ const customElements = win.customElements;
1732
+ const head = doc.head;
1733
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1734
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1735
+ const deferredConnectedCallbacks = [];
1736
+ let appLoadFallback;
1737
+ let isBootstrapping = true;
1738
+ Object.assign(plt, options);
1739
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1740
+ lazyBundles.map((lazyBundle) => {
1741
+ lazyBundle[1].map((compactMeta) => {
1742
+ const cmpMeta = {
1743
+ $flags$: compactMeta[0],
1744
+ $tagName$: compactMeta[1],
1745
+ $members$: compactMeta[2],
1746
+ $listeners$: compactMeta[3],
1747
+ };
1748
+ {
1749
+ cmpMeta.$members$ = compactMeta[2];
1750
+ }
1751
+ {
1752
+ cmpMeta.$listeners$ = compactMeta[3];
1753
+ }
1754
+ {
1755
+ cmpMeta.$attrsToReflect$ = [];
1756
+ }
1757
+ {
1758
+ cmpMeta.$watchers$ = {};
1759
+ }
1760
+ const tagName = cmpMeta.$tagName$;
1761
+ const HostElement = class extends HTMLElement {
1762
+ // StencilLazyHost
1763
+ constructor(self) {
1764
+ // @ts-ignore
1765
+ super(self);
1766
+ self = this;
1767
+ registerHost(self, cmpMeta);
1768
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1769
+ // this component is using shadow dom
1770
+ // and this browser supports shadow dom
1771
+ // add the read-only property "shadowRoot" to the host element
1772
+ // adding the shadow root build conditionals to minimize runtime
1773
+ {
1774
+ {
1775
+ self.attachShadow({ mode: 'open' });
1776
+ }
1777
+ }
1778
+ }
1779
+ }
1780
+ connectedCallback() {
1781
+ if (appLoadFallback) {
1782
+ clearTimeout(appLoadFallback);
1783
+ appLoadFallback = null;
1784
+ }
1785
+ if (isBootstrapping) {
1786
+ // connectedCallback will be processed once all components have been registered
1787
+ deferredConnectedCallbacks.push(this);
1788
+ }
1789
+ else {
1790
+ plt.jmp(() => connectedCallback(this));
1791
+ }
1792
+ }
1793
+ disconnectedCallback() {
1794
+ plt.jmp(() => disconnectedCallback(this));
1795
+ }
1796
+ componentOnReady() {
1797
+ return getHostRef(this).$onReadyPromise$;
1798
+ }
1799
+ };
1800
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1801
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1802
+ cmpTags.push(tagName);
1803
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1804
+ }
1805
+ });
1806
+ });
1807
+ {
1808
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1809
+ visibilityStyle.setAttribute('data-styles', '');
1810
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1811
+ }
1812
+ // Process deferred connectedCallbacks now all components have been registered
1813
+ isBootstrapping = false;
1814
+ if (deferredConnectedCallbacks.length) {
1815
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1816
+ }
1817
+ else {
1818
+ {
1819
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1820
+ }
1821
+ }
1822
+ // Fallback appLoad event
1823
+ endBootstrap();
1824
+ };
1825
+ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1826
+ if (listeners) {
1827
+ listeners.map(([flags, name, method]) => {
1828
+ const target = getHostListenerTarget(elm, flags) ;
1829
+ const handler = hostListenerProxy(hostRef, method);
1830
+ const opts = hostListenerOpts(flags);
1831
+ plt.ael(target, name, handler, opts);
1832
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
1833
+ });
1834
+ }
1835
+ };
1836
+ const hostListenerProxy = (hostRef, methodName) => (ev) => {
1837
+ try {
1838
+ {
1839
+ if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
1840
+ // instance is ready, let's call it's member method for this event
1841
+ hostRef.$lazyInstance$[methodName](ev);
1842
+ }
1843
+ else {
1844
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1845
+ }
1846
+ }
1847
+ }
1848
+ catch (e) {
1849
+ consoleError(e);
1850
+ }
1851
+ };
1852
+ const getHostListenerTarget = (elm, flags) => {
1853
+ if (flags & 4 /* LISTENER_FLAGS.TargetDocument */)
1854
+ return doc;
1855
+ if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
1856
+ return win;
1857
+ if (flags & 16 /* LISTENER_FLAGS.TargetBody */)
1858
+ return doc.body;
1859
+ return elm;
1860
+ };
1861
+ // prettier-ignore
1862
+ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
1863
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1864
+ const getHostRef = (ref) => hostRefs.get(ref);
1865
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1866
+ const registerHost = (elm, cmpMeta) => {
1867
+ const hostRef = {
1868
+ $flags$: 0,
1869
+ $hostElement$: elm,
1870
+ $cmpMeta$: cmpMeta,
1871
+ $instanceValues$: new Map(),
1872
+ };
1873
+ {
1874
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1875
+ }
1876
+ {
1877
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1878
+ elm['s-p'] = [];
1879
+ elm['s-rc'] = [];
1880
+ }
1881
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1882
+ return hostRefs.set(elm, hostRef);
1883
+ };
1884
+ const isMemberInElement = (elm, memberName) => memberName in elm;
1885
+ const consoleError = (e, el) => (0, console.error)(e, el);
1886
+ const cmpModules = /*@__PURE__*/ new Map();
1887
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1888
+ // loadModuleImport
1889
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1890
+ const bundleId = cmpMeta.$lazyBundleId$;
1891
+ const module = cmpModules.get(bundleId) ;
1892
+ if (module) {
1893
+ return module[exportName];
1894
+ }
1895
+
1896
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1897
+ const processMod = importedModule => {
1898
+ cmpModules.set(bundleId, importedModule);
1899
+ return importedModule[exportName];
1900
+ }
1901
+ switch(bundleId) {
1902
+
1903
+ case 'z-app-header_11':
1904
+ return import(
1905
+ /* webpackMode: "lazy" */
1906
+ './z-app-header_11.entry.js').then(processMod, consoleError);
1907
+ case 'z-accordion':
1908
+ return import(
1909
+ /* webpackMode: "lazy" */
1910
+ './z-accordion.entry.js').then(processMod, consoleError);
1911
+ case 'z-anchor-navigation':
1912
+ return import(
1913
+ /* webpackMode: "lazy" */
1914
+ './z-anchor-navigation.entry.js').then(processMod, consoleError);
1915
+ case 'z-aria-alert':
1916
+ return import(
1917
+ /* webpackMode: "lazy" */
1918
+ './z-aria-alert.entry.js').then(processMod, consoleError);
1919
+ case 'z-avatar':
1920
+ return import(
1921
+ /* webpackMode: "lazy" */
1922
+ './z-avatar.entry.js').then(processMod, consoleError);
1923
+ case 'z-book-card':
1924
+ return import(
1925
+ /* webpackMode: "lazy" */
1926
+ './z-book-card.entry.js').then(processMod, consoleError);
1927
+ case 'z-breadcrumb':
1928
+ return import(
1929
+ /* webpackMode: "lazy" */
1930
+ './z-breadcrumb.entry.js').then(processMod, consoleError);
1931
+ case 'z-button-sort':
1932
+ return import(
1933
+ /* webpackMode: "lazy" */
1934
+ './z-button-sort.entry.js').then(processMod, consoleError);
1935
+ case 'z-card':
1936
+ return import(
1937
+ /* webpackMode: "lazy" */
1938
+ './z-card.entry.js').then(processMod, consoleError);
1939
+ case 'z-carousel':
1940
+ return import(
1941
+ /* webpackMode: "lazy" */
1942
+ './z-carousel.entry.js').then(processMod, consoleError);
1943
+ case 'z-combobox':
1944
+ return import(
1945
+ /* webpackMode: "lazy" */
1946
+ './z-combobox.entry.js').then(processMod, consoleError);
1947
+ case 'z-contextual-menu':
1948
+ return import(
1949
+ /* webpackMode: "lazy" */
1950
+ './z-contextual-menu.entry.js').then(processMod, consoleError);
1951
+ case 'z-cover-hero':
1952
+ return import(
1953
+ /* webpackMode: "lazy" */
1954
+ './z-cover-hero.entry.js').then(processMod, consoleError);
1955
+ case 'z-date-picker':
1956
+ return import(
1957
+ /* webpackMode: "lazy" */
1958
+ './z-date-picker.entry.js').then(processMod, consoleError);
1959
+ case 'z-file':
1960
+ return import(
1961
+ /* webpackMode: "lazy" */
1962
+ './z-file.entry.js').then(processMod, consoleError);
1963
+ case 'z-file-upload':
1964
+ return import(
1965
+ /* webpackMode: "lazy" */
1966
+ './z-file-upload.entry.js').then(processMod, consoleError);
1967
+ case 'z-info-box':
1968
+ return import(
1969
+ /* webpackMode: "lazy" */
1970
+ './z-info-box.entry.js').then(processMod, consoleError);
1971
+ case 'z-info-reveal':
1972
+ return import(
1973
+ /* webpackMode: "lazy" */
1974
+ './z-info-reveal.entry.js').then(processMod, consoleError);
1975
+ case 'z-link':
1976
+ return import(
1977
+ /* webpackMode: "lazy" */
1978
+ './z-link.entry.js').then(processMod, consoleError);
1979
+ case 'z-logo':
1980
+ return import(
1981
+ /* webpackMode: "lazy" */
1982
+ './z-logo.entry.js').then(processMod, consoleError);
1983
+ case 'z-menu':
1984
+ return import(
1985
+ /* webpackMode: "lazy" */
1986
+ './z-menu.entry.js').then(processMod, consoleError);
1987
+ case 'z-menu-section':
1988
+ return import(
1989
+ /* webpackMode: "lazy" */
1990
+ './z-menu-section.entry.js').then(processMod, consoleError);
1991
+ case 'z-messages-pocket':
1992
+ return import(
1993
+ /* webpackMode: "lazy" */
1994
+ './z-messages-pocket.entry.js').then(processMod, consoleError);
1995
+ case 'z-myz-card-alert':
1996
+ return import(
1997
+ /* webpackMode: "lazy" */
1998
+ './z-myz-card-alert.entry.js').then(processMod, consoleError);
1999
+ case 'z-myz-card-dictionary':
2000
+ return import(
2001
+ /* webpackMode: "lazy" */
2002
+ './z-myz-card-dictionary.entry.js').then(processMod, consoleError);
2003
+ case 'z-myz-card-footer':
2004
+ return import(
2005
+ /* webpackMode: "lazy" */
2006
+ './z-myz-card-footer.entry.js').then(processMod, consoleError);
2007
+ case 'z-myz-card-footer-sections':
2008
+ return import(
2009
+ /* webpackMode: "lazy" */
2010
+ './z-myz-card-footer-sections.entry.js').then(processMod, consoleError);
2011
+ case 'z-myz-card-icon':
2012
+ return import(
2013
+ /* webpackMode: "lazy" */
2014
+ './z-myz-card-icon.entry.js').then(processMod, consoleError);
2015
+ case 'z-myz-card-info':
2016
+ return import(
2017
+ /* webpackMode: "lazy" */
2018
+ './z-myz-card-info.entry.js').then(processMod, consoleError);
2019
+ case 'z-myz-card-list':
2020
+ return import(
2021
+ /* webpackMode: "lazy" */
2022
+ './z-myz-card-list.entry.js').then(processMod, consoleError);
2023
+ case 'z-myz-list':
2024
+ return import(
2025
+ /* webpackMode: "lazy" */
2026
+ './z-myz-list.entry.js').then(processMod, consoleError);
2027
+ case 'z-navigation-tab':
2028
+ return import(
2029
+ /* webpackMode: "lazy" */
2030
+ './z-navigation-tab.entry.js').then(processMod, consoleError);
2031
+ case 'z-navigation-tab-link':
2032
+ return import(
2033
+ /* webpackMode: "lazy" */
2034
+ './z-navigation-tab-link.entry.js').then(processMod, consoleError);
2035
+ case 'z-navigation-tabs':
2036
+ return import(
2037
+ /* webpackMode: "lazy" */
2038
+ './z-navigation-tabs.entry.js').then(processMod, consoleError);
2039
+ case 'z-notification':
2040
+ return import(
2041
+ /* webpackMode: "lazy" */
2042
+ './z-notification.entry.js').then(processMod, consoleError);
2043
+ case 'z-otp':
2044
+ return import(
2045
+ /* webpackMode: "lazy" */
2046
+ './z-otp.entry.js').then(processMod, consoleError);
2047
+ case 'z-pagination':
2048
+ return import(
2049
+ /* webpackMode: "lazy" */
2050
+ './z-pagination.entry.js').then(processMod, consoleError);
2051
+ case 'z-panel-elem':
2052
+ return import(
2053
+ /* webpackMode: "lazy" */
2054
+ './z-panel-elem.entry.js').then(processMod, consoleError);
2055
+ case 'z-pocket-message':
2056
+ return import(
2057
+ /* webpackMode: "lazy" */
2058
+ './z-pocket-message.entry.js').then(processMod, consoleError);
2059
+ case 'z-range-picker':
2060
+ return import(
2061
+ /* webpackMode: "lazy" */
2062
+ './z-range-picker.entry.js').then(processMod, consoleError);
2063
+ case 'z-section-title':
2064
+ return import(
2065
+ /* webpackMode: "lazy" */
2066
+ './z-section-title.entry.js').then(processMod, consoleError);
2067
+ case 'z-select':
2068
+ return import(
2069
+ /* webpackMode: "lazy" */
2070
+ './z-select.entry.js').then(processMod, consoleError);
2071
+ case 'z-skip-to-content':
2072
+ return import(
2073
+ /* webpackMode: "lazy" */
2074
+ './z-skip-to-content.entry.js').then(processMod, consoleError);
2075
+ case 'z-slideshow':
2076
+ return import(
2077
+ /* webpackMode: "lazy" */
2078
+ './z-slideshow.entry.js').then(processMod, consoleError);
2079
+ case 'z-stepper':
2080
+ return import(
2081
+ /* webpackMode: "lazy" */
2082
+ './z-stepper.entry.js').then(processMod, consoleError);
2083
+ case 'z-stepper-item':
2084
+ return import(
2085
+ /* webpackMode: "lazy" */
2086
+ './z-stepper-item.entry.js').then(processMod, consoleError);
2087
+ case 'z-table':
2088
+ return import(
2089
+ /* webpackMode: "lazy" */
2090
+ './z-table.entry.js').then(processMod, consoleError);
2091
+ case 'z-table-body':
2092
+ return import(
2093
+ /* webpackMode: "lazy" */
2094
+ './z-table-body.entry.js').then(processMod, consoleError);
2095
+ case 'z-table-deprecated':
2096
+ return import(
2097
+ /* webpackMode: "lazy" */
2098
+ './z-table-deprecated.entry.js').then(processMod, consoleError);
2099
+ case 'z-table-expanded-row':
2100
+ return import(
2101
+ /* webpackMode: "lazy" */
2102
+ './z-table-expanded-row.entry.js').then(processMod, consoleError);
2103
+ case 'z-table-footer':
2104
+ return import(
2105
+ /* webpackMode: "lazy" */
2106
+ './z-table-footer.entry.js').then(processMod, consoleError);
2107
+ case 'z-table-head':
2108
+ return import(
2109
+ /* webpackMode: "lazy" */
2110
+ './z-table-head.entry.js').then(processMod, consoleError);
2111
+ case 'z-table-header-row':
2112
+ return import(
2113
+ /* webpackMode: "lazy" */
2114
+ './z-table-header-row.entry.js').then(processMod, consoleError);
2115
+ case 'z-table-row':
2116
+ return import(
2117
+ /* webpackMode: "lazy" */
2118
+ './z-table-row.entry.js').then(processMod, consoleError);
2119
+ case 'z-table-sticky-footer':
2120
+ return import(
2121
+ /* webpackMode: "lazy" */
2122
+ './z-table-sticky-footer.entry.js').then(processMod, consoleError);
2123
+ case 'z-tag':
2124
+ return import(
2125
+ /* webpackMode: "lazy" */
2126
+ './z-tag.entry.js').then(processMod, consoleError);
2127
+ case 'z-tbody':
2128
+ return import(
2129
+ /* webpackMode: "lazy" */
2130
+ './z-tbody.entry.js').then(processMod, consoleError);
2131
+ case 'z-td':
2132
+ return import(
2133
+ /* webpackMode: "lazy" */
2134
+ './z-td.entry.js').then(processMod, consoleError);
2135
+ case 'z-tfoot':
2136
+ return import(
2137
+ /* webpackMode: "lazy" */
2138
+ './z-tfoot.entry.js').then(processMod, consoleError);
2139
+ case 'z-th':
2140
+ return import(
2141
+ /* webpackMode: "lazy" */
2142
+ './z-th.entry.js').then(processMod, consoleError);
2143
+ case 'z-thead':
2144
+ return import(
2145
+ /* webpackMode: "lazy" */
2146
+ './z-thead.entry.js').then(processMod, consoleError);
2147
+ case 'z-toast-notification':
2148
+ return import(
2149
+ /* webpackMode: "lazy" */
2150
+ './z-toast-notification.entry.js').then(processMod, consoleError);
2151
+ case 'z-toast-notification-list':
2152
+ return import(
2153
+ /* webpackMode: "lazy" */
2154
+ './z-toast-notification-list.entry.js').then(processMod, consoleError);
2155
+ case 'z-toggle-button':
2156
+ return import(
2157
+ /* webpackMode: "lazy" */
2158
+ './z-toggle-button.entry.js').then(processMod, consoleError);
2159
+ case 'z-toggle-switch':
2160
+ return import(
2161
+ /* webpackMode: "lazy" */
2162
+ './z-toggle-switch.entry.js').then(processMod, consoleError);
2163
+ case 'z-tooltip':
2164
+ return import(
2165
+ /* webpackMode: "lazy" */
2166
+ './z-tooltip.entry.js').then(processMod, consoleError);
2167
+ case 'z-tr':
2168
+ return import(
2169
+ /* webpackMode: "lazy" */
2170
+ './z-tr.entry.js').then(processMod, consoleError);
2171
+ case 'z-visually-hidden':
2172
+ return import(
2173
+ /* webpackMode: "lazy" */
2174
+ './z-visually-hidden.entry.js').then(processMod, consoleError);
2175
+ case 'z-alert':
2176
+ return import(
2177
+ /* webpackMode: "lazy" */
2178
+ './z-alert.entry.js').then(processMod, consoleError);
2179
+ case 'z-chip':
2180
+ return import(
2181
+ /* webpackMode: "lazy" */
2182
+ './z-chip.entry.js').then(processMod, consoleError);
2183
+ case 'z-dragdrop-area_2':
2184
+ return import(
2185
+ /* webpackMode: "lazy" */
2186
+ './z-dragdrop-area_2.entry.js').then(processMod, consoleError);
2187
+ case 'z-ghost-loading':
2188
+ return import(
2189
+ /* webpackMode: "lazy" */
2190
+ './z-ghost-loading.entry.js').then(processMod, consoleError);
2191
+ case 'z-myz-card_4':
2192
+ return import(
2193
+ /* webpackMode: "lazy" */
2194
+ './z-myz-card_4.entry.js').then(processMod, consoleError);
2195
+ case 'z-pocket_3':
2196
+ return import(
2197
+ /* webpackMode: "lazy" */
2198
+ './z-pocket_3.entry.js').then(processMod, consoleError);
2199
+ case 'z-table-cell':
2200
+ return import(
2201
+ /* webpackMode: "lazy" */
2202
+ './z-table-cell.entry.js').then(processMod, consoleError);
2203
+ case 'z-table-empty-box':
2204
+ return import(
2205
+ /* webpackMode: "lazy" */
2206
+ './z-table-empty-box.entry.js').then(processMod, consoleError);
2207
+ case 'z-table-header':
2208
+ return import(
2209
+ /* webpackMode: "lazy" */
2210
+ './z-table-header.entry.js').then(processMod, consoleError);
2211
+ case 'z-myz-list-item':
2212
+ return import(
2213
+ /* webpackMode: "lazy" */
2214
+ './z-myz-list-item.entry.js').then(processMod, consoleError);
2215
+ case 'z-popover':
2216
+ return import(
2217
+ /* webpackMode: "lazy" */
2218
+ './z-popover.entry.js').then(processMod, consoleError);
2219
+ }
2220
+ }
2221
+ return import(
2222
+ /* @vite-ignore */
2223
+ /* webpackInclude: /\.entry\.js$/ */
2224
+ /* webpackExclude: /\.system\.entry\.js$/ */
2225
+ /* webpackMode: "lazy" */
2226
+ `./${bundleId}.entry.js${''}`).then((importedModule) => {
2227
+ {
2228
+ cmpModules.set(bundleId, importedModule);
2229
+ }
2230
+ return importedModule[exportName];
2231
+ }, consoleError);
2232
+ };
2233
+ const styles = /*@__PURE__*/ new Map();
2234
+ const win = typeof window !== 'undefined' ? window : {};
2235
+ const doc = win.document || { head: {} };
2236
+ const plt = {
2237
+ $flags$: 0,
2238
+ $resourcesUrl$: '',
2239
+ jmp: (h) => h(),
2240
+ raf: (h) => requestAnimationFrame(h),
2241
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2242
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2243
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
2244
+ };
2245
+ const promiseResolve = (v) => Promise.resolve(v);
2246
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2247
+ try {
2248
+ new CSSStyleSheet();
2249
+ return typeof new CSSStyleSheet().replaceSync === 'function';
2250
+ }
2251
+ catch (e) { }
2252
+ return false;
2253
+ })()
2254
+ ;
2255
+ const queueDomReads = [];
2256
+ const queueDomWrites = [];
2257
+ const queueTask = (queue, write) => (cb) => {
2258
+ queue.push(cb);
2259
+ if (!queuePending) {
2260
+ queuePending = true;
2261
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
2262
+ nextTick(flush);
2263
+ }
2264
+ else {
2265
+ plt.raf(flush);
2266
+ }
2267
+ }
2268
+ };
2269
+ const consume = (queue) => {
2270
+ for (let i = 0; i < queue.length; i++) {
2271
+ try {
2272
+ queue[i](performance.now());
2273
+ }
2274
+ catch (e) {
2275
+ consoleError(e);
2276
+ }
2277
+ }
2278
+ queue.length = 0;
2279
+ };
2280
+ const flush = () => {
2281
+ // always force a bunch of medium callbacks to run, but still have
2282
+ // a throttle on how many can run in a certain time
2283
+ // DOM READS!!!
2284
+ consume(queueDomReads);
2285
+ // DOM WRITES!!!
2286
+ {
2287
+ consume(queueDomWrites);
2288
+ if ((queuePending = queueDomReads.length > 0)) {
2289
+ // still more to do yet, but we've run out of time
2290
+ // let's let this thing cool off and try again in the next tick
2291
+ plt.raf(flush);
2292
+ }
2293
+ }
2294
+ };
2295
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
2296
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2297
+
2298
+ export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };