@zanichelli/albe-web-components 19.3.0-RC5 → 19.3.0-RC6

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 (770) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/dist/cjs/{iconset-Bcbz2MS1.js → iconset-Cz-UsfoU.js} +19 -7
  3. package/dist/cjs/{index-2H1EJ2Tl.js → index-DnscebL4.js} +9 -9
  4. package/dist/cjs/index.cjs.js +2 -2
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/{utils-Ctc6JP2n.js → utils-BY7xrW7W.js} +6 -0
  7. package/dist/cjs/web-components-library.cjs.js +2 -2
  8. package/dist/cjs/z-accordion.cjs.entry.js +2 -2
  9. package/dist/cjs/z-alert.cjs.entry.js +2 -2
  10. package/dist/cjs/z-anchor-navigation.cjs.entry.js +3 -3
  11. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +2 -2
  12. package/dist/cjs/z-app-header_12.cjs.entry.js +192 -229
  13. package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
  14. package/dist/cjs/z-avatar.cjs.entry.js +3 -3
  15. package/dist/cjs/z-book-card-app.cjs.entry.js +2 -2
  16. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +3 -3
  17. package/dist/cjs/z-book-card.cjs.entry.js +2 -2
  18. package/dist/cjs/z-book-cover.cjs.entry.js +2 -2
  19. package/dist/cjs/z-breadcrumb.cjs.entry.js +7 -7
  20. package/dist/cjs/z-button-sort.cjs.entry.js +2 -2
  21. package/dist/cjs/z-card.cjs.entry.js +1 -1
  22. package/dist/cjs/z-carousel.cjs.entry.js +2 -2
  23. package/dist/cjs/z-chip.cjs.entry.js +3 -3
  24. package/dist/cjs/z-color-picker.cjs.entry.js +3 -3
  25. package/dist/cjs/z-combobox.cjs.entry.js +21 -16
  26. package/dist/cjs/z-cover-hero.cjs.entry.js +3 -3
  27. package/dist/cjs/z-date-picker.cjs.entry.js +2 -2
  28. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +8 -8
  29. package/dist/cjs/z-file-upload.cjs.entry.js +3 -3
  30. package/dist/cjs/z-file.cjs.entry.js +2 -2
  31. package/dist/cjs/z-ghost-loading.cjs.entry.js +2 -2
  32. package/dist/cjs/z-info-box.cjs.entry.js +2 -2
  33. package/dist/cjs/z-info-reveal.cjs.entry.js +2 -2
  34. package/dist/cjs/z-logo.cjs.entry.js +3 -3
  35. package/dist/cjs/z-menu-deprecated.cjs.entry.js +3 -3
  36. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +2 -2
  37. package/dist/cjs/z-menu-section.cjs.entry.js +2 -2
  38. package/dist/cjs/z-menu.cjs.entry.js +2 -2
  39. package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  40. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
  41. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +2 -2
  42. package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
  43. package/dist/cjs/z-myz-card-icon.cjs.entry.js +2 -2
  44. package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -3
  45. package/dist/cjs/z-myz-card-list.cjs.entry.js +2 -2
  46. package/dist/cjs/z-myz-card_4.cjs.entry.js +5 -5
  47. package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
  48. package/dist/cjs/z-myz-list.cjs.entry.js +2 -2
  49. package/dist/cjs/z-navigation-tabs.cjs.entry.js +3 -3
  50. package/dist/cjs/z-notification.cjs.entry.js +3 -3
  51. package/dist/cjs/z-otp.cjs.entry.js +3 -3
  52. package/dist/cjs/z-pagination.cjs.entry.js +3 -3
  53. package/dist/cjs/z-panel-elem.cjs.entry.js +3 -3
  54. package/dist/cjs/z-popover.cjs.entry.js +3 -3
  55. package/dist/cjs/z-range-picker.cjs.entry.js +4 -4
  56. package/dist/cjs/z-result-card.cjs.entry.js +2 -2
  57. package/dist/cjs/z-section-title.cjs.entry.js +2 -2
  58. package/dist/cjs/z-select.cjs.entry.js +5 -9
  59. package/dist/cjs/z-skip-to-content.cjs.entry.js +3 -3
  60. package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
  61. package/dist/cjs/z-stepper-item.cjs.entry.js +2 -2
  62. package/dist/cjs/z-stepper.cjs.entry.js +2 -2
  63. package/dist/cjs/z-table.cjs.entry.js +7 -5
  64. package/dist/cjs/z-tbody.cjs.entry.js +6 -4
  65. package/dist/cjs/z-td.cjs.entry.js +6 -4
  66. package/dist/cjs/z-tfoot.cjs.entry.js +6 -4
  67. package/dist/cjs/z-th.cjs.entry.js +8 -4
  68. package/dist/cjs/z-thead.cjs.entry.js +6 -4
  69. package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
  70. package/dist/cjs/z-toast-notification.cjs.entry.js +96 -35
  71. package/dist/cjs/z-toggle-button.cjs.entry.js +3 -3
  72. package/dist/cjs/z-toggle-switch.cjs.entry.js +5 -5
  73. package/dist/cjs/z-tool.cjs.entry.js +4 -4
  74. package/dist/cjs/z-toolbar.cjs.entry.js +2 -2
  75. package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
  76. package/dist/cjs/z-tr.cjs.entry.js +7 -5
  77. package/dist/cjs/z-tree-list.cjs.entry.js +2 -2
  78. package/dist/cjs/z-visually-hidden.cjs.entry.js +2 -2
  79. package/dist/collection/collection-manifest.json +11 -11
  80. package/dist/collection/components/book-card/z-book-card/index.js +1 -8
  81. package/dist/collection/components/book-card/z-book-card/styles.css +9 -0
  82. package/dist/collection/components/book-card/z-book-card-app/index.js +1 -3
  83. package/dist/collection/components/book-card/z-book-card-app/styles.css +4 -0
  84. package/dist/collection/components/css-components/z-scrollbar/styles.css +40 -0
  85. package/dist/collection/components/css-components/z-table/styles.css +61 -0
  86. package/dist/collection/components/date-picker/z-date-picker/index.js +1 -1
  87. package/dist/collection/components/date-picker/z-range-picker/index.js +3 -3
  88. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +1 -54
  89. package/dist/collection/components/deprecated/z-app-header-deprecated/styles.css +49 -0
  90. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +1 -5
  91. package/dist/collection/components/deprecated/z-book-card-deprecated/styles.css +6 -0
  92. package/dist/collection/components/deprecated/z-menu-deprecated/index.js +1 -2
  93. package/dist/collection/components/deprecated/z-menu-deprecated/styles.css +5 -2
  94. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +1 -1
  95. package/dist/collection/components/deprecated/z-section-title/index.js +1 -2
  96. package/dist/collection/components/deprecated/z-section-title/styles.css +3 -0
  97. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +2 -2
  98. package/dist/collection/components/file-upload/z-file/index.js +1 -1
  99. package/dist/collection/components/file-upload/z-file-upload/index.js +2 -2
  100. package/dist/collection/components/list/z-list/index.js +1 -1
  101. package/dist/collection/components/list/z-list-element/index.js +1 -1
  102. package/dist/collection/components/list/z-list-group/index.js +2 -2
  103. package/dist/collection/components/list/z-tree-list/index.js +1 -1
  104. package/dist/collection/components/table/cells/{z-td/styles.css → z-table-cells.css} +0 -2
  105. package/dist/collection/components/table/cells/z-td/index.js +3 -3
  106. package/dist/collection/components/table/cells/z-th/index.js +3 -3
  107. package/dist/collection/components/table/cells/z-th/styles.css +2 -74
  108. package/dist/collection/components/table/z-table/index.js +3 -4
  109. package/dist/collection/components/table/z-table/styles.css +3 -6
  110. package/dist/collection/components/table/z-tbody/index.js +3 -3
  111. package/dist/collection/components/table/z-tfoot/index.js +3 -3
  112. package/dist/collection/components/table/z-tfoot/styles.css +1 -2
  113. package/dist/collection/components/table/z-thead/index.js +3 -3
  114. package/dist/collection/components/table/z-thead/styles.css +0 -4
  115. package/dist/collection/components/table/z-tr/index.js +3 -3
  116. package/dist/collection/components/table/z-tr/styles.css +5 -11
  117. package/dist/collection/components/z-accordion/index.js +3 -11
  118. package/dist/collection/components/z-accordion/styles.css +12 -0
  119. package/dist/collection/components/z-anchor-navigation/index.js +3 -3
  120. package/dist/collection/components/z-app-header/index.js +40 -8
  121. package/dist/collection/components/z-app-header/styles.css +12 -12
  122. package/dist/collection/components/z-aria-alert/index.js +1 -1
  123. package/dist/collection/components/z-avatar/index.js +2 -2
  124. package/dist/collection/components/z-book-cover/index.js +1 -5
  125. package/dist/collection/components/z-book-cover/styles.css +6 -0
  126. package/dist/collection/components/z-breadcrumb/index.js +5 -5
  127. package/dist/collection/components/z-button/index.js +7 -4
  128. package/dist/collection/components/z-button-sort/index.js +1 -1
  129. package/dist/collection/components/z-card/index.js +1 -8
  130. package/dist/collection/components/z-card/styles.css +9 -0
  131. package/dist/collection/components/z-carousel/index.js +0 -2
  132. package/dist/collection/components/z-carousel/styles.css +7 -3
  133. package/dist/collection/components/z-chip/index.js +2 -2
  134. package/dist/collection/components/z-color-picker/index.js +1 -1
  135. package/dist/collection/components/z-combobox/index.js +18 -15
  136. package/dist/collection/components/z-combobox/styles.css +0 -12
  137. package/dist/collection/components/z-cover-hero/index.js +2 -5
  138. package/dist/collection/components/z-cover-hero/styles.css +5 -0
  139. package/dist/collection/components/z-divider/index.js +1 -1
  140. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  141. package/dist/collection/components/z-icon/index.js +31 -2
  142. package/dist/collection/components/z-info-box/index.js +1 -1
  143. package/dist/collection/components/z-info-reveal/index.js +1 -5
  144. package/dist/collection/components/z-info-reveal/styles.css +7 -1
  145. package/dist/collection/components/z-input/index.js +52 -32
  146. package/dist/collection/components/z-input/styles-checkbox-radio.css +132 -0
  147. package/dist/collection/components/z-input/styles-general.css +166 -0
  148. package/dist/collection/components/z-input/styles-text.css +92 -0
  149. package/dist/collection/components/z-input/styles-textarea.css +19 -0
  150. package/dist/collection/components/z-input-message/index.js +1 -1
  151. package/dist/collection/components/z-logo/index.js +1 -1
  152. package/dist/collection/components/z-logo/styles.css +5 -0
  153. package/dist/collection/components/z-menu/index.js +0 -1
  154. package/dist/collection/components/z-menu/styles.css +3 -0
  155. package/dist/collection/components/z-menu-section/index.js +1 -1
  156. package/dist/collection/components/z-modal/index.js +4 -5
  157. package/dist/collection/components/z-modal/styles.css +5 -2
  158. package/dist/collection/components/z-navigation-tabs/index.js +2 -4
  159. package/dist/collection/components/z-navigation-tabs/styles.css +4 -0
  160. package/dist/collection/components/z-notification/index.js +1 -3
  161. package/dist/collection/components/z-notification/styles.css +13 -6
  162. package/dist/collection/components/z-offcanvas/index.js +2 -5
  163. package/dist/collection/components/z-offcanvas/styles.css +5 -0
  164. package/dist/collection/components/z-pagination/index.js +2 -4
  165. package/dist/collection/components/z-pagination/styles.css +6 -0
  166. package/dist/collection/components/z-panel-elem/index.js +2 -2
  167. package/dist/collection/components/z-popover/index.js +1 -6
  168. package/dist/collection/components/z-popover/styles.css +6 -0
  169. package/dist/collection/components/z-result-card/styles.css +8 -5
  170. package/dist/collection/components/z-searchbar/index.js +133 -198
  171. package/dist/collection/components/z-searchbar/styles.css +92 -201
  172. package/dist/collection/components/z-select/index.js +4 -8
  173. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  174. package/dist/collection/components/z-stepper/index.js +1 -1
  175. package/dist/collection/components/z-stepper-item/index.js +1 -1
  176. package/dist/collection/components/z-tag/index.js +2 -4
  177. package/dist/collection/components/z-tag/styles.css +5 -0
  178. package/dist/collection/components/z-toast-notification/index.js +3 -3
  179. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  180. package/dist/collection/components/z-toggle-button/index.js +2 -2
  181. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  182. package/dist/collection/components/z-tool/index.js +3 -3
  183. package/dist/collection/components/z-toolbar/index.js +1 -2
  184. package/dist/collection/components/z-toolbar/styles.css +4 -0
  185. package/dist/collection/components/z-tooltip/index.js +1 -5
  186. package/dist/collection/components/z-tooltip/styles.css +6 -0
  187. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  188. package/dist/collection/constants/iconset.js +19 -7
  189. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +2 -2
  190. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  191. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  192. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  193. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  194. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  195. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  196. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  197. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  198. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +2 -2
  199. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  200. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  201. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  202. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  203. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  204. package/dist/collection/utils/storybook-utils.js +7 -0
  205. package/dist/collection/utils/utils.js +5 -0
  206. package/dist/components/iconset.js +1 -1
  207. package/dist/components/index10.js +1 -1
  208. package/dist/components/index11.js +1 -1
  209. package/dist/components/index12.js +1 -1
  210. package/dist/components/index13.js +1 -1
  211. package/dist/components/index14.js +1 -1
  212. package/dist/components/index15.js +1 -1
  213. package/dist/components/index16.js +1 -1
  214. package/dist/components/index17.js +1 -1
  215. package/dist/components/index18.js +1 -1
  216. package/dist/components/index19.js +1 -1
  217. package/dist/components/index20.js +1 -1
  218. package/dist/components/index21.js +1 -1
  219. package/dist/components/index22.js +1 -1
  220. package/dist/components/index23.js +1 -1
  221. package/dist/components/index24.js +1 -1
  222. package/dist/components/index25.js +1 -1
  223. package/dist/components/index26.js +1 -1
  224. package/dist/components/index27.js +1 -1
  225. package/dist/components/index3.js +1 -1
  226. package/dist/components/index4.js +1 -1
  227. package/dist/components/index5.js +1 -1
  228. package/dist/components/index6.js +1 -1
  229. package/dist/components/index7.js +1 -1
  230. package/dist/components/index8.js +1 -1
  231. package/dist/components/index9.js +1 -1
  232. package/dist/components/utils.js +1 -1
  233. package/dist/components/z-accordion.js +1 -1
  234. package/dist/components/z-anchor-navigation.js +1 -1
  235. package/dist/components/z-app-header-deprecated.js +1 -1
  236. package/dist/components/z-app-header.js +1 -1
  237. package/dist/components/z-aria-alert.js +1 -1
  238. package/dist/components/z-avatar.js +1 -1
  239. package/dist/components/z-book-card-app.js +1 -1
  240. package/dist/components/z-book-card-deprecated.js +1 -1
  241. package/dist/components/z-book-card.js +1 -1
  242. package/dist/components/z-breadcrumb.js +1 -1
  243. package/dist/components/z-button-sort.js +1 -1
  244. package/dist/components/z-carousel.js +1 -1
  245. package/dist/components/z-color-picker.js +1 -1
  246. package/dist/components/z-combobox.js +1 -1
  247. package/dist/components/z-cover-hero.js +1 -1
  248. package/dist/components/z-date-picker.js +1 -1
  249. package/dist/components/z-file-upload.js +1 -1
  250. package/dist/components/z-file.js +1 -1
  251. package/dist/components/z-info-box.js +1 -1
  252. package/dist/components/z-logo.js +1 -1
  253. package/dist/components/z-menu-deprecated.js +1 -1
  254. package/dist/components/z-menu-section-deprecated.js +1 -1
  255. package/dist/components/z-menu-section.js +1 -1
  256. package/dist/components/z-myz-card-alert.js +1 -1
  257. package/dist/components/z-myz-card-dictionary.js +1 -1
  258. package/dist/components/z-myz-card-footer-sections.js +1 -1
  259. package/dist/components/z-myz-card-footer.js +1 -1
  260. package/dist/components/z-myz-card-icon.js +1 -1
  261. package/dist/components/z-myz-card-info.js +1 -1
  262. package/dist/components/z-myz-card-list.js +1 -1
  263. package/dist/components/z-myz-list.js +1 -1
  264. package/dist/components/z-navigation-tabs.js +1 -1
  265. package/dist/components/z-notification.js +1 -1
  266. package/dist/components/z-otp.js +1 -1
  267. package/dist/components/z-pagination.js +1 -1
  268. package/dist/components/z-panel-elem.js +1 -1
  269. package/dist/components/z-range-picker.js +1 -1
  270. package/dist/components/z-result-card.js +1 -1
  271. package/dist/components/z-section-title.js +1 -1
  272. package/dist/components/z-select.js +1 -1
  273. package/dist/components/z-skip-to-content.js +1 -1
  274. package/dist/components/z-slideshow.js +1 -1
  275. package/dist/components/z-stepper-item.js +1 -1
  276. package/dist/components/z-stepper.js +1 -1
  277. package/dist/components/z-table.js +1 -1
  278. package/dist/components/z-tbody.js +1 -1
  279. package/dist/components/z-td.js +1 -1
  280. package/dist/components/z-tfoot.js +1 -1
  281. package/dist/components/z-th.js +1 -1
  282. package/dist/components/z-thead.js +1 -1
  283. package/dist/components/z-toast-notification-list.js +1 -1
  284. package/dist/components/z-toast-notification.js +1 -1
  285. package/dist/components/z-toggle-button.js +1 -1
  286. package/dist/components/z-toggle-switch.js +1 -1
  287. package/dist/components/z-tool.js +1 -1
  288. package/dist/components/z-toolbar.js +1 -1
  289. package/dist/components/z-tr.js +1 -1
  290. package/dist/components/z-tree-list.js +1 -1
  291. package/dist/components/z-visually-hidden.js +1 -1
  292. package/dist/esm/{iconset-BanpkIXZ.js → iconset-AwzX9V8L.js} +19 -7
  293. package/dist/esm/{index-ByN2sYu6.js → index-fIt9Ytc6.js} +9 -9
  294. package/dist/esm/index.js +2 -2
  295. package/dist/esm/loader.js +3 -3
  296. package/dist/esm/{utils-0PByxJyN.js → utils-BEzZQwOB.js} +7 -2
  297. package/dist/esm/web-components-library.js +3 -3
  298. package/dist/esm/z-accordion.entry.js +2 -2
  299. package/dist/esm/z-alert.entry.js +2 -2
  300. package/dist/esm/z-anchor-navigation.entry.js +3 -3
  301. package/dist/esm/z-app-header-deprecated.entry.js +2 -2
  302. package/dist/esm/z-app-header_12.entry.js +193 -230
  303. package/dist/esm/z-aria-alert.entry.js +2 -2
  304. package/dist/esm/z-avatar.entry.js +3 -3
  305. package/dist/esm/z-book-card-app.entry.js +2 -2
  306. package/dist/esm/z-book-card-deprecated.entry.js +3 -3
  307. package/dist/esm/z-book-card.entry.js +2 -2
  308. package/dist/esm/z-book-cover.entry.js +2 -2
  309. package/dist/esm/z-breadcrumb.entry.js +7 -7
  310. package/dist/esm/z-button-sort.entry.js +2 -2
  311. package/dist/esm/z-card.entry.js +1 -1
  312. package/dist/esm/z-carousel.entry.js +2 -2
  313. package/dist/esm/z-chip.entry.js +3 -3
  314. package/dist/esm/z-color-picker.entry.js +3 -3
  315. package/dist/esm/z-combobox.entry.js +21 -16
  316. package/dist/esm/z-cover-hero.entry.js +3 -3
  317. package/dist/esm/z-date-picker.entry.js +2 -2
  318. package/dist/esm/z-dragdrop-area_2.entry.js +8 -8
  319. package/dist/esm/z-file-upload.entry.js +3 -3
  320. package/dist/esm/z-file.entry.js +2 -2
  321. package/dist/esm/z-ghost-loading.entry.js +2 -2
  322. package/dist/esm/z-info-box.entry.js +2 -2
  323. package/dist/esm/z-info-reveal.entry.js +2 -2
  324. package/dist/esm/z-logo.entry.js +3 -3
  325. package/dist/esm/z-menu-deprecated.entry.js +3 -3
  326. package/dist/esm/z-menu-section-deprecated.entry.js +2 -2
  327. package/dist/esm/z-menu-section.entry.js +2 -2
  328. package/dist/esm/z-menu.entry.js +2 -2
  329. package/dist/esm/z-myz-card-alert.entry.js +2 -2
  330. package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
  331. package/dist/esm/z-myz-card-footer-sections.entry.js +2 -2
  332. package/dist/esm/z-myz-card-footer.entry.js +2 -2
  333. package/dist/esm/z-myz-card-icon.entry.js +2 -2
  334. package/dist/esm/z-myz-card-info.entry.js +3 -3
  335. package/dist/esm/z-myz-card-list.entry.js +2 -2
  336. package/dist/esm/z-myz-card_4.entry.js +5 -5
  337. package/dist/esm/z-myz-list-item.entry.js +3 -3
  338. package/dist/esm/z-myz-list.entry.js +2 -2
  339. package/dist/esm/z-navigation-tabs.entry.js +3 -3
  340. package/dist/esm/z-notification.entry.js +3 -3
  341. package/dist/esm/z-otp.entry.js +3 -3
  342. package/dist/esm/z-pagination.entry.js +3 -3
  343. package/dist/esm/z-panel-elem.entry.js +3 -3
  344. package/dist/esm/z-popover.entry.js +3 -3
  345. package/dist/esm/z-range-picker.entry.js +4 -4
  346. package/dist/esm/z-result-card.entry.js +2 -2
  347. package/dist/esm/z-section-title.entry.js +2 -2
  348. package/dist/esm/z-select.entry.js +5 -9
  349. package/dist/esm/z-skip-to-content.entry.js +3 -3
  350. package/dist/esm/z-slideshow.entry.js +2 -2
  351. package/dist/esm/z-stepper-item.entry.js +2 -2
  352. package/dist/esm/z-stepper.entry.js +2 -2
  353. package/dist/esm/z-table.entry.js +7 -5
  354. package/dist/esm/z-tbody.entry.js +6 -4
  355. package/dist/esm/z-td.entry.js +6 -4
  356. package/dist/esm/z-tfoot.entry.js +6 -4
  357. package/dist/esm/z-th.entry.js +8 -4
  358. package/dist/esm/z-thead.entry.js +6 -4
  359. package/dist/esm/z-toast-notification-list.entry.js +2 -2
  360. package/dist/esm/z-toast-notification.entry.js +96 -35
  361. package/dist/esm/z-toggle-button.entry.js +3 -3
  362. package/dist/esm/z-toggle-switch.entry.js +5 -5
  363. package/dist/esm/z-tool.entry.js +4 -4
  364. package/dist/esm/z-toolbar.entry.js +2 -2
  365. package/dist/esm/z-tooltip.entry.js +2 -2
  366. package/dist/esm/z-tr.entry.js +7 -5
  367. package/dist/esm/z-tree-list.entry.js +2 -2
  368. package/dist/esm/z-visually-hidden.entry.js +2 -2
  369. package/dist/types/components/book-card/z-book-card/index.d.ts +0 -7
  370. package/dist/types/components/book-card/z-book-card-app/index.d.ts +0 -2
  371. package/dist/types/components/deprecated/z-app-header-deprecated/index.d.ts +0 -53
  372. package/dist/types/components/deprecated/z-book-card-deprecated/index.d.ts +0 -4
  373. package/dist/types/components/deprecated/z-menu-deprecated/index.d.ts +0 -1
  374. package/dist/types/components/deprecated/z-section-title/index.d.ts +0 -1
  375. package/dist/types/components/table/z-table/index.d.ts +0 -1
  376. package/dist/types/components/z-accordion/index.d.ts +2 -10
  377. package/dist/types/components/z-anchor-navigation/index.d.ts +1 -1
  378. package/dist/types/components/z-app-header/index.d.ts +8 -6
  379. package/dist/types/components/z-book-cover/index.d.ts +0 -4
  380. package/dist/types/components/z-button/index.d.ts +1 -1
  381. package/dist/types/components/z-card/index.d.ts +1 -8
  382. package/dist/types/components/z-carousel/index.d.ts +0 -2
  383. package/dist/types/components/z-combobox/index.d.ts +1 -0
  384. package/dist/types/components/z-cover-hero/index.d.ts +0 -3
  385. package/dist/types/components/z-icon/index.d.ts +13 -0
  386. package/dist/types/components/z-info-reveal/index.d.ts +0 -4
  387. package/dist/types/components/z-input/index.d.ts +6 -4
  388. package/dist/types/components/z-menu/index.d.ts +0 -1
  389. package/dist/types/components/z-modal/index.d.ts +0 -1
  390. package/dist/types/components/z-navigation-tabs/index.d.ts +0 -2
  391. package/dist/types/components/z-notification/index.d.ts +0 -2
  392. package/dist/types/components/z-offcanvas/index.d.ts +0 -3
  393. package/dist/types/components/z-pagination/index.d.ts +0 -2
  394. package/dist/types/components/z-popover/index.d.ts +0 -5
  395. package/dist/types/components/z-searchbar/index.d.ts +26 -33
  396. package/dist/types/components/z-select/index.d.ts +0 -1
  397. package/dist/types/components/z-tag/index.d.ts +0 -2
  398. package/dist/types/components/z-toolbar/index.d.ts +0 -1
  399. package/dist/types/components/z-tooltip/index.d.ts +0 -4
  400. package/dist/types/components.d.ts +60 -610
  401. package/dist/types/constants/iconset.d.ts +30 -6
  402. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +1 -1
  403. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +1 -1
  404. package/dist/types/utils/storybook-utils.d.ts +7 -2
  405. package/dist/types/utils/utils.d.ts +2 -0
  406. package/dist/web-components-library/index.esm.js +1 -1
  407. package/dist/web-components-library/{p-1210c90f.entry.js → p-053470ec.entry.js} +1 -1
  408. package/dist/web-components-library/p-071d2a57.entry.js +1 -0
  409. package/dist/web-components-library/p-0e9e73ed.entry.js +1 -0
  410. package/dist/web-components-library/{p-ebdbd84c.entry.js → p-1397ebb2.entry.js} +1 -1
  411. package/dist/web-components-library/{p-30c86858.entry.js → p-13d3c53c.entry.js} +1 -1
  412. package/dist/web-components-library/p-1418f4d2.entry.js +1 -0
  413. package/dist/web-components-library/{p-abfdc045.entry.js → p-1432864e.entry.js} +1 -1
  414. package/dist/web-components-library/p-150171da.entry.js +1 -0
  415. package/dist/web-components-library/{p-794c613e.entry.js → p-16d99a59.entry.js} +1 -1
  416. package/dist/web-components-library/p-17276ae7.entry.js +1 -0
  417. package/dist/web-components-library/{p-ed74f357.entry.js → p-1afc3227.entry.js} +1 -1
  418. package/dist/web-components-library/{p-4b0a730e.entry.js → p-1d00c30e.entry.js} +1 -1
  419. package/{www/build/p-5c85b7f4.entry.js → dist/web-components-library/p-2621b31f.entry.js} +1 -1
  420. package/{www/build/p-a3a7c406.entry.js → dist/web-components-library/p-263b4960.entry.js} +1 -1
  421. package/dist/web-components-library/p-2f79d3fd.entry.js +1 -0
  422. package/dist/web-components-library/p-3aa12417.entry.js +1 -0
  423. package/dist/web-components-library/p-4170d86b.entry.js +1 -0
  424. package/dist/web-components-library/p-41edfbd3.entry.js +1 -0
  425. package/dist/web-components-library/{p-294f7b4e.entry.js → p-420b547f.entry.js} +1 -1
  426. package/dist/web-components-library/p-473594e3.entry.js +1 -0
  427. package/dist/web-components-library/{p-896470e8.entry.js → p-48ef2fb1.entry.js} +1 -1
  428. package/{www/build/p-ad2ed505.entry.js → dist/web-components-library/p-50a15c76.entry.js} +2 -2
  429. package/dist/web-components-library/{p-2f99634d.entry.js → p-5c3bc8a1.entry.js} +1 -1
  430. package/{www/build/p-1b851174.entry.js → dist/web-components-library/p-733ddcca.entry.js} +1 -1
  431. package/dist/web-components-library/{p-c8f40472.entry.js → p-7648a0b0.entry.js} +1 -1
  432. package/dist/web-components-library/{p-0727e9aa.entry.js → p-7a58bb24.entry.js} +1 -1
  433. package/dist/web-components-library/p-7b4ca721.entry.js +1 -0
  434. package/dist/web-components-library/p-7fa3211f.entry.js +2 -0
  435. package/{www/build/p-8745878e.entry.js → dist/web-components-library/p-80eb4ada.entry.js} +1 -1
  436. package/dist/web-components-library/{p-59d4ac9e.entry.js → p-8237255f.entry.js} +1 -1
  437. package/dist/web-components-library/{p-9d3bde23.entry.js → p-8711674f.entry.js} +1 -1
  438. package/dist/web-components-library/p-90a25f58.entry.js +1 -0
  439. package/dist/web-components-library/{p-8f945346.entry.js → p-93e2f49e.entry.js} +1 -1
  440. package/dist/web-components-library/{p-acf23ad8.entry.js → p-94bc612d.entry.js} +1 -1
  441. package/dist/web-components-library/{p-a975b91d.entry.js → p-98165529.entry.js} +1 -1
  442. package/{www/build/p-366d2553.entry.js → dist/web-components-library/p-99d355d6.entry.js} +1 -1
  443. package/dist/web-components-library/p-9b2589a6.entry.js +1 -0
  444. package/{www/build/p-631f111d.entry.js → dist/web-components-library/p-9f9b9b8e.entry.js} +1 -1
  445. package/dist/web-components-library/p-AwzX9V8L.js +1 -0
  446. package/dist/web-components-library/p-B0bOjMSb.js +1 -0
  447. package/dist/web-components-library/p-a0675e97.entry.js +1 -0
  448. package/dist/web-components-library/{p-5bb77af2.entry.js → p-a26011c7.entry.js} +1 -1
  449. package/dist/web-components-library/{p-c23bfec2.entry.js → p-a336b496.entry.js} +1 -1
  450. package/dist/web-components-library/{p-fade8c19.entry.js → p-a9282ee9.entry.js} +1 -1
  451. package/dist/web-components-library/p-acd32089.entry.js +1 -0
  452. package/{www/build/p-6ece59b5.entry.js → dist/web-components-library/p-addac0e0.entry.js} +1 -1
  453. package/{www/build/p-1e984688.entry.js → dist/web-components-library/p-b127d150.entry.js} +1 -1
  454. package/dist/web-components-library/p-b64dd64c.entry.js +1 -0
  455. package/dist/web-components-library/{p-241eaed0.entry.js → p-b757d2dc.entry.js} +1 -1
  456. package/dist/web-components-library/{p-19536f5e.entry.js → p-b76f39fa.entry.js} +1 -1
  457. package/dist/web-components-library/p-b7907578.entry.js +1 -0
  458. package/dist/web-components-library/p-bb319405.entry.js +1 -0
  459. package/dist/web-components-library/p-c3a6159b.entry.js +1 -0
  460. package/{www/build/p-0ca6e928.entry.js → dist/web-components-library/p-ca89f8e8.entry.js} +1 -1
  461. package/dist/web-components-library/{p-00f09ae2.entry.js → p-cb6af60f.entry.js} +1 -1
  462. package/dist/web-components-library/p-d0c0e9f1.entry.js +1 -0
  463. package/dist/web-components-library/{p-17429bce.entry.js → p-d6ff2160.entry.js} +1 -1
  464. package/dist/web-components-library/p-d756e131.entry.js +1 -0
  465. package/{www/build/p-41b55222.entry.js → dist/web-components-library/p-d79a7787.entry.js} +1 -1
  466. package/dist/web-components-library/p-d7fc390f.entry.js +1 -0
  467. package/{www/build/p-f5e7fa96.entry.js → dist/web-components-library/p-d9998674.entry.js} +1 -1
  468. package/dist/web-components-library/{p-5797bf38.entry.js → p-d9a20a51.entry.js} +1 -1
  469. package/dist/web-components-library/p-da977942.entry.js +1 -0
  470. package/dist/web-components-library/{p-6d53942a.entry.js → p-e03fc01d.entry.js} +1 -1
  471. package/{www/build/p-1afd69ba.entry.js → dist/web-components-library/p-eb093728.entry.js} +1 -1
  472. package/{www/build/p-d57c5efc.entry.js → dist/web-components-library/p-ebd8c113.entry.js} +1 -1
  473. package/dist/web-components-library/{p-d304ce44.entry.js → p-ecf55fe6.entry.js} +1 -1
  474. package/dist/web-components-library/{p-b5c180bc.entry.js → p-f2ebf81b.entry.js} +1 -1
  475. package/dist/web-components-library/{p-081b1648.entry.js → p-f33d8f8d.entry.js} +1 -1
  476. package/dist/web-components-library/p-f4082ec2.entry.js +1 -0
  477. package/dist/web-components-library/{p-ByN2sYu6.js → p-fIt9Ytc6.js} +1 -1
  478. package/dist/web-components-library/{p-48d72b52.entry.js → p-fad8e9b8.entry.js} +1 -1
  479. package/dist/web-components-library/{p-9b181c2c.entry.js → p-fb7edb66.entry.js} +1 -1
  480. package/{www/build/p-0a819ab4.entry.js → dist/web-components-library/p-fea76ac6.entry.js} +1 -1
  481. package/dist/web-components-library/web-components-library.css +63 -1
  482. package/dist/web-components-library/web-components-library.esm.js +1 -1
  483. package/package.json +15 -15
  484. package/readme.md +8 -19
  485. package/www/build/index.esm.js +1 -1
  486. package/www/build/{p-1210c90f.entry.js → p-053470ec.entry.js} +1 -1
  487. package/www/build/p-071d2a57.entry.js +1 -0
  488. package/www/build/p-0e9e73ed.entry.js +1 -0
  489. package/www/build/{p-ebdbd84c.entry.js → p-1397ebb2.entry.js} +1 -1
  490. package/www/build/{p-30c86858.entry.js → p-13d3c53c.entry.js} +1 -1
  491. package/www/build/p-1418f4d2.entry.js +1 -0
  492. package/www/build/{p-abfdc045.entry.js → p-1432864e.entry.js} +1 -1
  493. package/www/build/p-150171da.entry.js +1 -0
  494. package/www/build/{p-794c613e.entry.js → p-16d99a59.entry.js} +1 -1
  495. package/www/build/p-17276ae7.entry.js +1 -0
  496. package/www/build/{p-ed74f357.entry.js → p-1afc3227.entry.js} +1 -1
  497. package/www/build/{p-4b0a730e.entry.js → p-1d00c30e.entry.js} +1 -1
  498. package/{dist/web-components-library/p-5c85b7f4.entry.js → www/build/p-2621b31f.entry.js} +1 -1
  499. package/{dist/web-components-library/p-a3a7c406.entry.js → www/build/p-263b4960.entry.js} +1 -1
  500. package/www/build/p-2f79d3fd.entry.js +1 -0
  501. package/www/build/p-3aa12417.entry.js +1 -0
  502. package/www/build/{p-ea2cbe37.js → p-40eed148.js} +1 -1
  503. package/www/build/p-4170d86b.entry.js +1 -0
  504. package/www/build/p-41edfbd3.entry.js +1 -0
  505. package/www/build/{p-294f7b4e.entry.js → p-420b547f.entry.js} +1 -1
  506. package/www/build/p-473594e3.entry.js +1 -0
  507. package/www/build/{p-896470e8.entry.js → p-48ef2fb1.entry.js} +1 -1
  508. package/{dist/web-components-library/p-ad2ed505.entry.js → www/build/p-50a15c76.entry.js} +2 -2
  509. package/www/build/{p-2f99634d.entry.js → p-5c3bc8a1.entry.js} +1 -1
  510. package/{dist/web-components-library/p-1b851174.entry.js → www/build/p-733ddcca.entry.js} +1 -1
  511. package/www/build/{p-c8f40472.entry.js → p-7648a0b0.entry.js} +1 -1
  512. package/www/build/{p-0727e9aa.entry.js → p-7a58bb24.entry.js} +1 -1
  513. package/www/build/p-7b4ca721.entry.js +1 -0
  514. package/www/build/p-7fa3211f.entry.js +2 -0
  515. package/{dist/web-components-library/p-8745878e.entry.js → www/build/p-80eb4ada.entry.js} +1 -1
  516. package/www/build/{p-59d4ac9e.entry.js → p-8237255f.entry.js} +1 -1
  517. package/www/build/{p-9d3bde23.entry.js → p-8711674f.entry.js} +1 -1
  518. package/www/build/p-90a25f58.entry.js +1 -0
  519. package/www/build/{p-8f945346.entry.js → p-93e2f49e.entry.js} +1 -1
  520. package/www/build/{p-acf23ad8.entry.js → p-94bc612d.entry.js} +1 -1
  521. package/www/build/{p-a975b91d.entry.js → p-98165529.entry.js} +1 -1
  522. package/{dist/web-components-library/p-366d2553.entry.js → www/build/p-99d355d6.entry.js} +1 -1
  523. package/www/build/p-9b2589a6.entry.js +1 -0
  524. package/{dist/web-components-library/p-631f111d.entry.js → www/build/p-9f9b9b8e.entry.js} +1 -1
  525. package/www/build/p-AwzX9V8L.js +1 -0
  526. package/www/build/p-B0bOjMSb.js +1 -0
  527. package/www/build/p-a0675e97.entry.js +1 -0
  528. package/www/build/{p-5bb77af2.entry.js → p-a26011c7.entry.js} +1 -1
  529. package/www/build/{p-c23bfec2.entry.js → p-a336b496.entry.js} +1 -1
  530. package/www/build/{p-fade8c19.entry.js → p-a9282ee9.entry.js} +1 -1
  531. package/www/build/p-acd32089.entry.js +1 -0
  532. package/{dist/web-components-library/p-6ece59b5.entry.js → www/build/p-addac0e0.entry.js} +1 -1
  533. package/{dist/web-components-library/p-1e984688.entry.js → www/build/p-b127d150.entry.js} +1 -1
  534. package/www/build/p-b64dd64c.entry.js +1 -0
  535. package/www/build/{p-241eaed0.entry.js → p-b757d2dc.entry.js} +1 -1
  536. package/www/build/{p-19536f5e.entry.js → p-b76f39fa.entry.js} +1 -1
  537. package/www/build/p-b7907578.entry.js +1 -0
  538. package/www/build/p-bb319405.entry.js +1 -0
  539. package/www/build/p-c3a6159b.entry.js +1 -0
  540. package/www/build/{p-813bd63b.css → p-c9523ede.css} +63 -1
  541. package/{dist/web-components-library/p-0ca6e928.entry.js → www/build/p-ca89f8e8.entry.js} +1 -1
  542. package/www/build/{p-00f09ae2.entry.js → p-cb6af60f.entry.js} +1 -1
  543. package/www/build/p-d0c0e9f1.entry.js +1 -0
  544. package/www/build/{p-17429bce.entry.js → p-d6ff2160.entry.js} +1 -1
  545. package/www/build/p-d756e131.entry.js +1 -0
  546. package/{dist/web-components-library/p-41b55222.entry.js → www/build/p-d79a7787.entry.js} +1 -1
  547. package/www/build/p-d7fc390f.entry.js +1 -0
  548. package/{dist/web-components-library/p-f5e7fa96.entry.js → www/build/p-d9998674.entry.js} +1 -1
  549. package/www/build/{p-5797bf38.entry.js → p-d9a20a51.entry.js} +1 -1
  550. package/www/build/p-da977942.entry.js +1 -0
  551. package/www/build/{p-6d53942a.entry.js → p-e03fc01d.entry.js} +1 -1
  552. package/{dist/web-components-library/p-1afd69ba.entry.js → www/build/p-eb093728.entry.js} +1 -1
  553. package/{dist/web-components-library/p-d57c5efc.entry.js → www/build/p-ebd8c113.entry.js} +1 -1
  554. package/www/build/{p-d304ce44.entry.js → p-ecf55fe6.entry.js} +1 -1
  555. package/www/build/{p-b5c180bc.entry.js → p-f2ebf81b.entry.js} +1 -1
  556. package/www/build/{p-081b1648.entry.js → p-f33d8f8d.entry.js} +1 -1
  557. package/www/build/p-f4082ec2.entry.js +1 -0
  558. package/www/build/{p-ByN2sYu6.js → p-fIt9Ytc6.js} +1 -1
  559. package/www/build/{p-48d72b52.entry.js → p-fad8e9b8.entry.js} +1 -1
  560. package/www/build/{p-9b181c2c.entry.js → p-fb7edb66.entry.js} +1 -1
  561. package/{dist/web-components-library/p-0a819ab4.entry.js → www/build/p-fea76ac6.entry.js} +1 -1
  562. package/www/build/web-components-library.css +63 -1
  563. package/www/build/web-components-library.esm.js +1 -1
  564. package/www/index.html +1 -1
  565. package/dist/collection/__mocks__/fileMock.js +0 -1
  566. package/dist/collection/components/book-card/z-book-card/index.stories.js +0 -175
  567. package/dist/collection/components/book-card/z-book-card-app/index.stories.js +0 -40
  568. package/dist/collection/components/css-components/z-fab/index.stories.js +0 -103
  569. package/dist/collection/components/css-components/z-label/index.stories.js +0 -9
  570. package/dist/collection/components/css-components/z-link/index.stories.js +0 -73
  571. package/dist/collection/components/css-components/z-scrollbar/index.stories.js +0 -72
  572. package/dist/collection/components/date-picker/z-date-picker/index.stories.js +0 -111
  573. package/dist/collection/components/date-picker/z-range-picker/index.stories.js +0 -109
  574. package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js +0 -636
  575. package/dist/collection/components/deprecated/z-book-card-deprecated/index.stories.js +0 -383
  576. package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js +0 -128
  577. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js +0 -40
  578. package/dist/collection/components/deprecated/z-section-title/index.stories.js +0 -56
  579. package/dist/collection/components/file-upload/z-file/index.stories.js +0 -16
  580. package/dist/collection/components/file-upload/z-file-upload/index.stories.js +0 -139
  581. package/dist/collection/components/list/z-list/index.stories.js +0 -184
  582. package/dist/collection/components/list/z-list-element/index.stories.js +0 -127
  583. package/dist/collection/components/list/z-list-group/index.stories.js +0 -120
  584. package/dist/collection/components/list/z-tree-list/index.stories.js +0 -119
  585. package/dist/collection/components/table/z-table/index.stories.js +0 -282
  586. package/dist/collection/components/z-accordion/index.stories.js +0 -164
  587. package/dist/collection/components/z-anchor-navigation/index.stories.js +0 -350
  588. package/dist/collection/components/z-app-header/index.stories.js +0 -302
  589. package/dist/collection/components/z-aria-alert/index.stories.js +0 -75
  590. package/dist/collection/components/z-avatar/index.stories.js +0 -50
  591. package/dist/collection/components/z-book-cover/index.stories.js +0 -30
  592. package/dist/collection/components/z-breadcrumb/index.stories.js +0 -67
  593. package/dist/collection/components/z-button/index.stories.js +0 -103
  594. package/dist/collection/components/z-button-sort/index.stories.js +0 -30
  595. package/dist/collection/components/z-card/index.stories.js +0 -302
  596. package/dist/collection/components/z-carousel/index.stories.js +0 -128
  597. package/dist/collection/components/z-chip/index.stories.js +0 -69
  598. package/dist/collection/components/z-color-picker/index.stories.js +0 -33
  599. package/dist/collection/components/z-combobox/index.stories.js +0 -77
  600. package/dist/collection/components/z-cover-hero/index.stories.js +0 -255
  601. package/dist/collection/components/z-divider/index.stories.js +0 -44
  602. package/dist/collection/components/z-ghost-loading/index.stories.js +0 -21
  603. package/dist/collection/components/z-icon/index.stories.js +0 -70
  604. package/dist/collection/components/z-info-box/index.stories.js +0 -19
  605. package/dist/collection/components/z-info-reveal/index.stories.js +0 -58
  606. package/dist/collection/components/z-input/index.stories.js +0 -293
  607. package/dist/collection/components/z-input/styles.css +0 -406
  608. package/dist/collection/components/z-input-message/index.stories.js +0 -36
  609. package/dist/collection/components/z-logo/index.stories.js +0 -25
  610. package/dist/collection/components/z-menu/index.stories.js +0 -122
  611. package/dist/collection/components/z-menu-section/index.stories.js +0 -40
  612. package/dist/collection/components/z-modal/index.stories.js +0 -201
  613. package/dist/collection/components/z-navigation-tabs/index.stories.js +0 -190
  614. package/dist/collection/components/z-notification/index.stories.js +0 -172
  615. package/dist/collection/components/z-offcanvas/index.stories.js +0 -143
  616. package/dist/collection/components/z-pagination/index.stories.js +0 -117
  617. package/dist/collection/components/z-panel-elem/index.stories.js +0 -25
  618. package/dist/collection/components/z-popover/index.stories.js +0 -282
  619. package/dist/collection/components/z-result-card/z-result-card.stories.js +0 -147
  620. package/dist/collection/components/z-searchbar/index.stories.js +0 -336
  621. package/dist/collection/components/z-select/index.stories.js +0 -359
  622. package/dist/collection/components/z-skip-to-content/index.stories.js +0 -40
  623. package/dist/collection/components/z-stepper/index.stories.js +0 -108
  624. package/dist/collection/components/z-stepper-item/index.stories.js +0 -58
  625. package/dist/collection/components/z-tag/index.stories.js +0 -63
  626. package/dist/collection/components/z-toast-notification/index.stories.js +0 -176
  627. package/dist/collection/components/z-toast-notification-list/index.stories.js +0 -147
  628. package/dist/collection/components/z-toggle-button/index.stories.js +0 -22
  629. package/dist/collection/components/z-toggle-switch/index.stories.js +0 -26
  630. package/dist/collection/components/z-tool/index.stories.js +0 -146
  631. package/dist/collection/components/z-toolbar/index.stories.js +0 -317
  632. package/dist/collection/components/z-tooltip/index.stories.js +0 -122
  633. package/dist/collection/components/z-visually-hidden/index.stories.js +0 -27
  634. package/dist/collection/snowflakes/myz/card/z-myz-card/index.stories.js +0 -72
  635. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.stories.js +0 -24
  636. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.stories.js +0 -24
  637. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.stories.js +0 -128
  638. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.stories.js +0 -28
  639. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.stories.js +0 -16
  640. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.stories.js +0 -22
  641. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.stories.js +0 -22
  642. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.stories.js +0 -18
  643. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.stories.js +0 -14
  644. package/dist/collection/snowflakes/myz/list/z-myz-list/index.stories.js +0 -18
  645. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.stories.js +0 -28
  646. package/dist/collection/snowflakes/myz/z-alert/index.stories.js +0 -30
  647. package/dist/collection/snowflakes/myz/z-otp/index.stories.js +0 -32
  648. package/dist/collection/snowflakes/myz/z-slideshow/index.stories.js +0 -16
  649. package/dist/types/__mocks__/fileMock.d.ts +0 -2
  650. package/dist/types/components/book-card/z-book-card/index.stories.d.ts +0 -50
  651. package/dist/types/components/book-card/z-book-card-app/index.stories.d.ts +0 -39
  652. package/dist/types/components/css-components/z-fab/index.stories.d.ts +0 -63
  653. package/dist/types/components/css-components/z-label/index.stories.d.ts +0 -9
  654. package/dist/types/components/css-components/z-link/index.stories.d.ts +0 -45
  655. package/dist/types/components/css-components/z-scrollbar/index.stories.d.ts +0 -57
  656. package/dist/types/components/date-picker/z-date-picker/index.stories.d.ts +0 -33
  657. package/dist/types/components/date-picker/z-range-picker/index.stories.d.ts +0 -51
  658. package/dist/types/components/deprecated/z-app-header-deprecated/index.stories.d.ts +0 -120
  659. package/dist/types/components/deprecated/z-book-card-deprecated/index.stories.d.ts +0 -106
  660. package/dist/types/components/deprecated/z-menu-deprecated/index.stories.d.ts +0 -27
  661. package/dist/types/components/deprecated/z-menu-section-deprecated/index.stories.d.ts +0 -16
  662. package/dist/types/components/deprecated/z-section-title/index.stories.d.ts +0 -41
  663. package/dist/types/components/file-upload/z-file/index.stories.d.ts +0 -14
  664. package/dist/types/components/file-upload/z-file-upload/index.stories.d.ts +0 -58
  665. package/dist/types/components/list/z-list/index.stories.d.ts +0 -62
  666. package/dist/types/components/list/z-list-element/index.stories.d.ts +0 -77
  667. package/dist/types/components/list/z-list-group/index.stories.d.ts +0 -47
  668. package/dist/types/components/list/z-tree-list/index.stories.d.ts +0 -25
  669. package/dist/types/components/table/z-table/index.stories.d.ts +0 -98
  670. package/dist/types/components/z-accordion/index.stories.d.ts +0 -142
  671. package/dist/types/components/z-anchor-navigation/index.stories.d.ts +0 -34
  672. package/dist/types/components/z-app-header/index.stories.d.ts +0 -121
  673. package/dist/types/components/z-aria-alert/index.stories.d.ts +0 -26
  674. package/dist/types/components/z-avatar/index.stories.d.ts +0 -42
  675. package/dist/types/components/z-book-cover/index.stories.d.ts +0 -21
  676. package/dist/types/components/z-breadcrumb/index.stories.d.ts +0 -52
  677. package/dist/types/components/z-button/index.stories.d.ts +0 -79
  678. package/dist/types/components/z-button-sort/index.stories.d.ts +0 -22
  679. package/dist/types/components/z-card/index.stories.d.ts +0 -75
  680. package/dist/types/components/z-carousel/index.stories.d.ts +0 -100
  681. package/dist/types/components/z-chip/index.stories.d.ts +0 -46
  682. package/dist/types/components/z-color-picker/index.stories.d.ts +0 -33
  683. package/dist/types/components/z-combobox/index.stories.d.ts +0 -58
  684. package/dist/types/components/z-cover-hero/index.stories.d.ts +0 -113
  685. package/dist/types/components/z-divider/index.stories.d.ts +0 -37
  686. package/dist/types/components/z-ghost-loading/index.stories.d.ts +0 -9
  687. package/dist/types/components/z-icon/index.stories.d.ts +0 -56
  688. package/dist/types/components/z-info-box/index.stories.d.ts +0 -12
  689. package/dist/types/components/z-info-reveal/index.stories.d.ts +0 -42
  690. package/dist/types/components/z-input/index.stories.d.ts +0 -126
  691. package/dist/types/components/z-input-message/index.stories.d.ts +0 -33
  692. package/dist/types/components/z-logo/index.stories.d.ts +0 -18
  693. package/dist/types/components/z-menu/index.stories.d.ts +0 -26
  694. package/dist/types/components/z-menu-section/index.stories.d.ts +0 -16
  695. package/dist/types/components/z-modal/index.stories.d.ts +0 -37
  696. package/dist/types/components/z-navigation-tabs/index.stories.d.ts +0 -78
  697. package/dist/types/components/z-notification/index.stories.d.ts +0 -72
  698. package/dist/types/components/z-offcanvas/index.stories.d.ts +0 -76
  699. package/dist/types/components/z-pagination/index.stories.d.ts +0 -102
  700. package/dist/types/components/z-panel-elem/index.stories.d.ts +0 -18
  701. package/dist/types/components/z-popover/index.stories.d.ts +0 -82
  702. package/dist/types/components/z-result-card/z-result-card.stories.d.ts +0 -12
  703. package/dist/types/components/z-searchbar/index.stories.d.ts +0 -159
  704. package/dist/types/components/z-select/index.stories.d.ts +0 -84
  705. package/dist/types/components/z-skip-to-content/index.stories.d.ts +0 -31
  706. package/dist/types/components/z-stepper/index.stories.d.ts +0 -25
  707. package/dist/types/components/z-stepper-item/index.stories.d.ts +0 -34
  708. package/dist/types/components/z-tag/index.stories.d.ts +0 -39
  709. package/dist/types/components/z-toast-notification/index.stories.d.ts +0 -96
  710. package/dist/types/components/z-toast-notification-list/index.stories.d.ts +0 -87
  711. package/dist/types/components/z-toggle-button/index.stories.d.ts +0 -16
  712. package/dist/types/components/z-toggle-switch/index.stories.d.ts +0 -22
  713. package/dist/types/components/z-tool/index.stories.d.ts +0 -70
  714. package/dist/types/components/z-toolbar/index.stories.d.ts +0 -52
  715. package/dist/types/components/z-tooltip/index.stories.d.ts +0 -40
  716. package/dist/types/components/z-visually-hidden/index.stories.d.ts +0 -9
  717. package/dist/web-components-library/p-02e588b4.entry.js +0 -1
  718. package/dist/web-components-library/p-040fbd28.entry.js +0 -1
  719. package/dist/web-components-library/p-062ba668.entry.js +0 -1
  720. package/dist/web-components-library/p-0eb7baa4.entry.js +0 -1
  721. package/dist/web-components-library/p-1c5bbea1.entry.js +0 -1
  722. package/dist/web-components-library/p-2294f1b0.entry.js +0 -1
  723. package/dist/web-components-library/p-27f93251.entry.js +0 -1
  724. package/dist/web-components-library/p-314302ce.entry.js +0 -1
  725. package/dist/web-components-library/p-3c861d49.entry.js +0 -1
  726. package/dist/web-components-library/p-50b59012.entry.js +0 -1
  727. package/dist/web-components-library/p-5883dbc1.entry.js +0 -1
  728. package/dist/web-components-library/p-58933ba5.entry.js +0 -1
  729. package/dist/web-components-library/p-5fc4048b.entry.js +0 -1
  730. package/dist/web-components-library/p-7a55d688.entry.js +0 -2
  731. package/dist/web-components-library/p-8042aaf7.entry.js +0 -1
  732. package/dist/web-components-library/p-BanpkIXZ.js +0 -1
  733. package/dist/web-components-library/p-D4yqZKyM.js +0 -1
  734. package/dist/web-components-library/p-a1127213.entry.js +0 -1
  735. package/dist/web-components-library/p-a336c241.entry.js +0 -1
  736. package/dist/web-components-library/p-a9534450.entry.js +0 -1
  737. package/dist/web-components-library/p-aabb5aea.entry.js +0 -1
  738. package/dist/web-components-library/p-afab22fc.entry.js +0 -1
  739. package/dist/web-components-library/p-afcabf3b.entry.js +0 -1
  740. package/dist/web-components-library/p-b38d52e5.entry.js +0 -1
  741. package/dist/web-components-library/p-db0a60fc.entry.js +0 -1
  742. package/dist/web-components-library/p-eb722234.entry.js +0 -1
  743. package/dist/web-components-library/p-ecea3d09.entry.js +0 -1
  744. package/www/build/p-02e588b4.entry.js +0 -1
  745. package/www/build/p-040fbd28.entry.js +0 -1
  746. package/www/build/p-062ba668.entry.js +0 -1
  747. package/www/build/p-0eb7baa4.entry.js +0 -1
  748. package/www/build/p-1c5bbea1.entry.js +0 -1
  749. package/www/build/p-2294f1b0.entry.js +0 -1
  750. package/www/build/p-27f93251.entry.js +0 -1
  751. package/www/build/p-314302ce.entry.js +0 -1
  752. package/www/build/p-3c861d49.entry.js +0 -1
  753. package/www/build/p-50b59012.entry.js +0 -1
  754. package/www/build/p-5883dbc1.entry.js +0 -1
  755. package/www/build/p-58933ba5.entry.js +0 -1
  756. package/www/build/p-5fc4048b.entry.js +0 -1
  757. package/www/build/p-7a55d688.entry.js +0 -2
  758. package/www/build/p-8042aaf7.entry.js +0 -1
  759. package/www/build/p-BanpkIXZ.js +0 -1
  760. package/www/build/p-D4yqZKyM.js +0 -1
  761. package/www/build/p-a1127213.entry.js +0 -1
  762. package/www/build/p-a336c241.entry.js +0 -1
  763. package/www/build/p-a9534450.entry.js +0 -1
  764. package/www/build/p-aabb5aea.entry.js +0 -1
  765. package/www/build/p-afab22fc.entry.js +0 -1
  766. package/www/build/p-afcabf3b.entry.js +0 -1
  767. package/www/build/p-b38d52e5.entry.js +0 -1
  768. package/www/build/p-db0a60fc.entry.js +0 -1
  769. package/www/build/p-eb722234.entry.js +0 -1
  770. package/www/build/p-ecea3d09.entry.js +0 -1
@@ -1,2 +1,2 @@
1
1
  import{proxyCustomElement as t,HTMLElement as e,createEvent as i,h as n,Host as o,transformTag as r}from"@stencil/core/internal/client";import{r as s,g as a}from"./index2.js";import{g as c}from"./_commonjsHelpers.js";import{d as u}from"./index3.js";
2
- /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:l,setPrototypeOf:h,isFrozen:f,getPrototypeOf:d,getOwnPropertyDescriptor:p}=Object;let{freeze:m,seal:g,create:v}=Object,{apply:b,construct:y}="undefined"!=typeof Reflect&&Reflect;m||(m=function(t){return t}),g||(g=function(t){return t}),b||(b=function(t,e,i){return t.apply(e,i)}),y||(y=function(t,e){return new t(...e)});const w=O(Array.prototype.forEach),T=O(Array.prototype.lastIndexOf),x=O(Array.prototype.pop),E=O(Array.prototype.push),k=O(Array.prototype.splice),A=O(String.prototype.toLowerCase),S=O(String.prototype.toString),R=O(String.prototype.match),z=O(String.prototype.replace),_=O(String.prototype.indexOf),D=O(String.prototype.trim),I=O(Object.prototype.hasOwnProperty),M=O(RegExp.prototype.test),P=function(t){return function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return y(t,i)}}(TypeError);function O(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var i=arguments.length,n=Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return b(t,e,n)}}function C(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A;h&&h(t,null);let n=e.length;for(;n--;){let o=e[n];if("string"==typeof o){const t=i(o);t!==o&&(f(e)||(e[n]=t),o=t)}t[o]=!0}return t}function N(t){for(let e=0;e<t.length;e++)I(t,e)||(t[e]=null);return t}function L(t){const e=v(null);for(const[i,n]of l(t))I(t,i)&&(e[i]=Array.isArray(n)?N(n):n&&"object"==typeof n&&n.constructor===Object?L(n):n);return e}function F(t,e){for(;null!==t;){const i=p(t,e);if(i){if(i.get)return O(i.get);if("function"==typeof i.value)return O(i.value)}t=d(t)}return function(){return null}}const j=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),W=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),X=m(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),B=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),H=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y=m(["#text"]),q=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),G=m(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Z=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),K=g(/<%[\w\W]*|[\w\W]*%>/gm),J=g(/\$\{[\w\W]*/gm),Q=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),tt=g(/^aria-[\-\w]+$/),et=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),it=g(/^(?:\w+script|data):/i),nt=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ot=g(/^html$/i),rt=g(/^[a-z][.\w]*(-[.\w]+)+$/i);var st=Object.freeze({__proto__:null,ARIA_ATTR:tt,ATTR_WHITESPACE:nt,CUSTOM_ELEMENT:rt,DATA_ATTR:Q,DOCTYPE_NAME:ot,ERB_EXPR:K,IS_ALLOWED_URI:et,IS_SCRIPT_OR_DATA:it,MUSTACHE_EXPR:Z,TMPLIT_EXPR:J});const at=function(){return"undefined"==typeof window?null:window};var ct,ut=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:at();const i=e=>t(e);if(i.version="3.2.6",i.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return i.isSupported=!1,i;let{document:n}=e;const o=n,r=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:c,Element:u,NodeFilter:h,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:p,trustedTypes:g}=e,b=u.prototype,y=F(b,"cloneNode"),O=F(b,"remove"),N=F(b,"nextSibling"),Z=F(b,"childNodes"),K=F(b,"parentNode");if("function"==typeof a){const t=n.createElement("template");t.content&&t.content.ownerDocument&&(n=t.content.ownerDocument)}let J,Q="";const{implementation:tt,createNodeIterator:it,createDocumentFragment:nt,getElementsByTagName:rt}=n,{importNode:ct}=o;let ut={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof l&&"function"==typeof K&&tt&&void 0!==tt.createHTMLDocument;const{MUSTACHE_EXPR:lt,ERB_EXPR:ht,TMPLIT_EXPR:ft,DATA_ATTR:dt,ARIA_ATTR:pt,IS_SCRIPT_OR_DATA:mt,ATTR_WHITESPACE:gt,CUSTOM_ELEMENT:vt}=st;let{IS_ALLOWED_URI:bt}=st,yt=null;const wt=C({},[...j,...U,...W,...B,...Y]);let Tt=null;const xt=C({},[...q,...G,...$,...V]);let Et=Object.seal(v(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),kt=null,At=null,St=!0,Rt=!0,zt=!1,_t=!0,Dt=!1,It=!0,Mt=!1,Pt=!1,Ot=!1,Ct=!1,Nt=!1,Lt=!1,Ft=!0,jt=!1,Ut=!0,Wt=!1,Xt={},Bt=null;const Ht=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Yt=null;const qt=C({},["audio","video","img","source","image","track"]);let Gt=null;const $t=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vt="http://www.w3.org/1998/Math/MathML",Zt="http://www.w3.org/2000/svg",Kt="http://www.w3.org/1999/xhtml";let Jt=Kt,Qt=!1,te=null;const ee=C({},[Vt,Zt,Kt],S);let ie=C({},["mi","mo","mn","ms","mtext"]),ne=C({},["annotation-xml"]);const oe=C({},["title","style","font","a","script"]);let re=null;const se=["application/xhtml+xml","text/html"];let ae=null,ce=null;const ue=n.createElement("form"),le=function(t){return t instanceof RegExp||t instanceof Function},he=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ce||ce!==t){if(t&&"object"==typeof t||(t={}),t=L(t),re=-1===se.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ae="application/xhtml+xml"===re?S:A,yt=I(t,"ALLOWED_TAGS")?C({},t.ALLOWED_TAGS,ae):wt,Tt=I(t,"ALLOWED_ATTR")?C({},t.ALLOWED_ATTR,ae):xt,te=I(t,"ALLOWED_NAMESPACES")?C({},t.ALLOWED_NAMESPACES,S):ee,Gt=I(t,"ADD_URI_SAFE_ATTR")?C(L($t),t.ADD_URI_SAFE_ATTR,ae):$t,Yt=I(t,"ADD_DATA_URI_TAGS")?C(L(qt),t.ADD_DATA_URI_TAGS,ae):qt,Bt=I(t,"FORBID_CONTENTS")?C({},t.FORBID_CONTENTS,ae):Ht,kt=I(t,"FORBID_TAGS")?C({},t.FORBID_TAGS,ae):L({}),At=I(t,"FORBID_ATTR")?C({},t.FORBID_ATTR,ae):L({}),Xt=!!I(t,"USE_PROFILES")&&t.USE_PROFILES,St=!1!==t.ALLOW_ARIA_ATTR,Rt=!1!==t.ALLOW_DATA_ATTR,zt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,_t=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Dt=t.SAFE_FOR_TEMPLATES||!1,It=!1!==t.SAFE_FOR_XML,Mt=t.WHOLE_DOCUMENT||!1,Ct=t.RETURN_DOM||!1,Nt=t.RETURN_DOM_FRAGMENT||!1,Lt=t.RETURN_TRUSTED_TYPE||!1,Ot=t.FORCE_BODY||!1,Ft=!1!==t.SANITIZE_DOM,jt=t.SANITIZE_NAMED_PROPS||!1,Ut=!1!==t.KEEP_CONTENT,Wt=t.IN_PLACE||!1,bt=t.ALLOWED_URI_REGEXP||et,Jt=t.NAMESPACE||Kt,ie=t.MATHML_TEXT_INTEGRATION_POINTS||ie,ne=t.HTML_INTEGRATION_POINTS||ne,Et=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&le(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Et.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&le(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Et.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Et.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Dt&&(Rt=!1),Nt&&(Ct=!0),Xt&&(yt=C({},Y),Tt=[],!0===Xt.html&&(C(yt,j),C(Tt,q)),!0===Xt.svg&&(C(yt,U),C(Tt,G),C(Tt,V)),!0===Xt.svgFilters&&(C(yt,W),C(Tt,G),C(Tt,V)),!0===Xt.mathMl&&(C(yt,B),C(Tt,$),C(Tt,V))),t.ADD_TAGS&&(yt===wt&&(yt=L(yt)),C(yt,t.ADD_TAGS,ae)),t.ADD_ATTR&&(Tt===xt&&(Tt=L(Tt)),C(Tt,t.ADD_ATTR,ae)),t.ADD_URI_SAFE_ATTR&&C(Gt,t.ADD_URI_SAFE_ATTR,ae),t.FORBID_CONTENTS&&(Bt===Ht&&(Bt=L(Bt)),C(Bt,t.FORBID_CONTENTS,ae)),Ut&&(yt["#text"]=!0),Mt&&C(yt,["html","head","body"]),yt.table&&(C(yt,["tbody"]),delete kt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw P('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw P('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=t.TRUSTED_TYPES_POLICY,Q=J.createHTML("")}else void 0===J&&(J=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(i=e.getAttribute(n));const o="dompurify"+(i?"#"+i:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(g,r)),null!==J&&"string"==typeof Q&&(Q=J.createHTML(""));m&&m(t),ce=t}},fe=C({},[...U,...W,...X]),de=C({},[...B,...H]),pe=function(t){E(i.removed,{element:t});try{K(t).removeChild(t)}catch(e){O(t)}},me=function(t,e){try{E(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){E(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Ct||Nt)try{pe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ge=function(t){let e=null,i=null;if(Ot)t="<remove></remove>"+t;else{const e=R(t,/^[\r\n\t ]+/);i=e&&e[0]}"application/xhtml+xml"===re&&Jt===Kt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=J?J.createHTML(t):t;if(Jt===Kt)try{e=(new p).parseFromString(o,re)}catch(t){}if(!e||!e.documentElement){e=tt.createDocument(Jt,"template",null);try{e.documentElement.innerHTML=Qt?Q:o}catch(t){}}const r=e.body||e.documentElement;return t&&i&&r.insertBefore(n.createTextNode(i),r.childNodes[0]||null),Jt===Kt?rt.call(e,Mt?"html":"body")[0]:Mt?e.documentElement:r},ve=function(t){return it.call(t.ownerDocument||t,t,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},be=function(t){return t instanceof d&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof f)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},ye=function(t){return"function"==typeof c&&t instanceof c};function we(t,e,n){w(t,(t=>{t.call(i,e,n,ce)}))}const Te=function(t){let e=null;if(we(ut.beforeSanitizeElements,t,null),be(t))return pe(t),!0;const n=ae(t.nodeName);if(we(ut.uponSanitizeElement,t,{tagName:n,allowedTags:yt}),It&&t.hasChildNodes()&&!ye(t.firstElementChild)&&M(/<[/\w!]/g,t.innerHTML)&&M(/<[/\w!]/g,t.textContent))return pe(t),!0;if(7===t.nodeType)return pe(t),!0;if(It&&8===t.nodeType&&M(/<[/\w]/g,t.data))return pe(t),!0;if(!yt[n]||kt[n]){if(!kt[n]&&Ee(n)){if(Et.tagNameCheck instanceof RegExp&&M(Et.tagNameCheck,n))return!1;if(Et.tagNameCheck instanceof Function&&Et.tagNameCheck(n))return!1}if(Ut&&!Bt[n]){const e=K(t)||t.parentNode,i=Z(t)||t.childNodes;if(i&&e)for(let n=i.length-1;n>=0;--n){const o=y(i[n],!0);o.__removalCount=(t.__removalCount||0)+1,e.insertBefore(o,N(t))}}return pe(t),!0}return t instanceof u&&!function(t){let e=K(t);e&&e.tagName||(e={namespaceURI:Jt,tagName:"template"});const i=A(t.tagName),n=A(e.tagName);return!!te[t.namespaceURI]&&(t.namespaceURI===Zt?e.namespaceURI===Kt?"svg"===i:e.namespaceURI===Vt?"svg"===i&&("annotation-xml"===n||ie[n]):!!fe[i]:t.namespaceURI===Vt?e.namespaceURI===Kt?"math"===i:e.namespaceURI===Zt?"math"===i&&ne[n]:!!de[i]:t.namespaceURI===Kt?!(e.namespaceURI===Zt&&!ne[n])&&!(e.namespaceURI===Vt&&!ie[n])&&!de[i]&&(oe[i]||!fe[i]):!("application/xhtml+xml"!==re||!te[t.namespaceURI]))}(t)?(pe(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!M(/<\/no(script|embed|frames)/i,t.innerHTML)?(Dt&&3===t.nodeType&&(e=t.textContent,w([lt,ht,ft],(t=>{e=z(e,t," ")})),t.textContent!==e&&(E(i.removed,{element:t.cloneNode()}),t.textContent=e)),we(ut.afterSanitizeElements,t,null),!1):(pe(t),!0)},xe=function(t,e,i){if(Ft&&("id"===e||"name"===e)&&(i in n||i in ue))return!1;if(Rt&&!At[e]&&M(dt,e));else if(St&&M(pt,e));else if(!Tt[e]||At[e]){if(!(Ee(t)&&(Et.tagNameCheck instanceof RegExp&&M(Et.tagNameCheck,t)||Et.tagNameCheck instanceof Function&&Et.tagNameCheck(t))&&(Et.attributeNameCheck instanceof RegExp&&M(Et.attributeNameCheck,e)||Et.attributeNameCheck instanceof Function&&Et.attributeNameCheck(e))||"is"===e&&Et.allowCustomizedBuiltInElements&&(Et.tagNameCheck instanceof RegExp&&M(Et.tagNameCheck,i)||Et.tagNameCheck instanceof Function&&Et.tagNameCheck(i))))return!1}else if(Gt[e]);else if(M(bt,z(i,gt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==_(i,"data:")||!Yt[t])if(zt&&!M(mt,z(i,gt,"")));else if(i)return!1;return!0},Ee=function(t){return"annotation-xml"!==t&&R(t,vt)},ke=function(t){we(ut.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||be(t))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Tt,forceKeepAttr:void 0};let o=e.length;for(;o--;){const r=e[o],{name:s,namespaceURI:a,value:c}=r,u=ae(s),l=c;let h="value"===s?l:D(l);if(n.attrName=u,n.attrValue=h,n.keepAttr=!0,n.forceKeepAttr=void 0,we(ut.uponSanitizeAttribute,t,n),h=n.attrValue,!jt||"id"!==u&&"name"!==u||(me(s,t),h="user-content-"+h),It&&M(/((--!?|])>)|<\/(style|title)/i,h)){me(s,t);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){me(s,t);continue}if(!_t&&M(/\/>/i,h)){me(s,t);continue}Dt&&w([lt,ht,ft],(t=>{h=z(h,t," ")}));const f=ae(t.nodeName);if(xe(f,u,h)){if(J&&"object"==typeof g&&"function"==typeof g.getAttributeType)if(a);else switch(g.getAttributeType(f,u)){case"TrustedHTML":h=J.createHTML(h);break;case"TrustedScriptURL":h=J.createScriptURL(h)}if(h!==l)try{a?t.setAttributeNS(a,s,h):t.setAttribute(s,h),be(t)?pe(t):x(i.removed)}catch(e){me(s,t)}}else me(s,t)}we(ut.afterSanitizeAttributes,t,null)},Ae=function t(e){let i=null;const n=ve(e);for(we(ut.beforeSanitizeShadowDOM,e,null);i=n.nextNode();)we(ut.uponSanitizeShadowNode,i,null),Te(i),ke(i),i.content instanceof s&&t(i.content);we(ut.afterSanitizeShadowDOM,e,null)};return i.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,a=null,u=null;if(Qt=!t,Qt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!ye(t)){if("function"!=typeof t.toString)throw P("toString is not a function");if("string"!=typeof(t=""+t))throw P("dirty is not a string, aborting")}if(!i.isSupported)return t;if(Pt||he(e),i.removed=[],"string"==typeof t&&(Wt=!1),Wt){if(t.nodeName){const e=ae(t.nodeName);if(!yt[e]||kt[e])throw P("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)n=ge("\x3c!----\x3e"),r=n.ownerDocument.importNode(t,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Ct&&!Dt&&!Mt&&-1===t.indexOf("<"))return J&&Lt?J.createHTML(t):t;if(n=ge(t),!n)return Ct?null:Lt?Q:""}n&&Ot&&pe(n.firstChild);const l=ve(Wt?t:n);for(;a=l.nextNode();)Te(a),ke(a),a.content instanceof s&&Ae(a.content);if(Wt)return t;if(Ct){if(Nt)for(u=nt.call(n.ownerDocument);n.firstChild;)u.appendChild(n.firstChild);else u=n;return(Tt.shadowroot||Tt.shadowrootmode)&&(u=ct.call(o,u,!0)),u}let h=Mt?n.outerHTML:n.innerHTML;return Mt&&yt["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&M(ot,n.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+h),Dt&&w([lt,ht,ft],(t=>{h=z(h,t," ")})),J&&Lt?J.createHTML(h):h},i.setConfig=function(){he(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Pt=!0},i.clearConfig=function(){ce=null,Pt=!1},i.isValidAttribute=function(t,e,i){ce||he({});const n=ae(t),o=ae(e);return xe(n,o,i)},i.addHook=function(t,e){"function"==typeof e&&E(ut[t],e)},i.removeHook=function(t,e){if(void 0!==e){const i=T(ut[t],e);return-1===i?void 0:k(ut[t],i,1)[0]}return x(ut[t])},i.removeHooks=function(t){ut[t]=[]},i.removeAllHooks=function(){ut={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}(),lt={exports:{}},ht=(ct||(ct=1,function(t){!function(e,i,n,o){var r,s=["","webkit","Moz","MS","ms","o"],a=i.createElement("div"),c=Math.round,u=Math.abs,l=Date.now;function h(t,e,i){return setTimeout(b(t,i),e)}function f(t,e,i){return!!Array.isArray(t)&&(d(t,i[e],i),!0)}function d(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==o)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function p(t,i,n){var o="DEPRECATED METHOD: "+i+"\n"+n+" AT \n";return function(){var i=Error("get-stack-trace"),n=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=e.console&&(e.console.warn||e.console.log);return r&&r.call(e.console,o,n),t.apply(this,arguments)}}r="function"!=typeof Object.assign?function(t){if(t===o||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==o&&null!==n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}:Object.assign;var m=p((function(t,e,i){for(var n=Object.keys(e),r=0;r<n.length;)(!i||i&&t[n[r]]===o)&&(t[n[r]]=e[n[r]]),r++;return t}),"extend","Use `assign`."),g=p((function(t,e){return m(t,e,!0)}),"merge","Use `assign`.");function v(t,e,i){var n,o=e.prototype;(n=t.prototype=Object.create(o)).constructor=t,n._super=o,i&&r(n,i)}function b(t,e){return function(){return t.apply(e,arguments)}}function y(t,e){return"function"==typeof t?t.apply(e&&e[0]||o,e):t}function w(t,e){return t===o?e:t}function T(t,e,i){d(A(e),(function(e){t.addEventListener(e,i,!1)}))}function x(t,e,i){d(A(e),(function(e){t.removeEventListener(e,i,!1)}))}function E(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function k(t,e){return t.indexOf(e)>-1}function A(t){return t.trim().split(/\s+/g)}function S(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function R(t){return Array.prototype.slice.call(t,0)}function z(t,e){for(var i=[],n=[],o=0;o<t.length;){var r=t[o][e];S(n,r)<0&&i.push(t[o]),n[o]=r,o++}return i.sort((function(t,i){return t[e]>i[e]}))}function _(t,e){for(var i,n,r=e[0].toUpperCase()+e.slice(1),a=0;a<s.length;){if((n=(i=s[a])?i+r:e)in t)return n;a++}return o}var D=1;function I(t){var i=t.ownerDocument||t;return i.defaultView||i.parentWindow||e}var M="ontouchstart"in e,P=_(e,"PointerEvent")!==o,O=M&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),C="touch",N="mouse",L=["x","y"],F=["clientX","clientY"];function j(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){y(t.options.enable,[t])&&i.handler(e)},this.init()}function U(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,s=1&e&&n-r==0,a=12&e&&n-r==0;i.isFirst=!!s,i.isFinal=!!a,s&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=W(e)),r>1&&!i.firstMultiple?i.firstMultiple=W(e):1===r&&(i.firstMultiple=!1);var s=i.firstInput,a=i.firstMultiple,c=a?a.center:s.center,h=e.center=X(n);e.timeStamp=l(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=q(c,h),e.distance=Y(c,h),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};1!==e.eventType&&4!==r.eventType||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}(i,e),e.offsetDirection=H(e.deltaX,e.deltaY);var f=B(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=f.x,e.overallVelocityY=f.y,e.overallVelocity=u(f.x)>u(f.y)?f.x:f.y,e.scale=a?function(t,e){return Y(e[0],e[1],F)/Y(t[0],t[1],F)}(a.pointers,n):1,e.rotation=a?function(t,e){return q(e[1],e[0],F)+q(t[1],t[0],F)}(a.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,r,s,a=t.lastInterval||e,c=e.timeStamp-a.timeStamp;if(8!=e.eventType&&(c>25||a.velocity===o)){var l=e.deltaX-a.deltaX,h=e.deltaY-a.deltaY,f=B(c,l,h);n=f.x,r=f.y,i=u(f.x)>u(f.y)?f.x:f.y,s=H(l,h),t.lastInterval=e}else i=a.velocity,n=a.velocityX,r=a.velocityY,s=a.direction;e.velocity=i,e.velocityX=n,e.velocityY=r,e.direction=s}(i,e);var d=t.element;E(e.srcEvent.target,d)&&(d=e.srcEvent.target),e.target=d}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function W(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:c(t.pointers[i].clientX),clientY:c(t.pointers[i].clientY)},i++;return{timeStamp:l(),pointers:e,center:X(e),deltaX:t.deltaX,deltaY:t.deltaY}}function X(t){var e=t.length;if(1===e)return{x:c(t[0].clientX),y:c(t[0].clientY)};for(var i=0,n=0,o=0;o<e;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:c(i/e),y:c(n/e)}}function B(t,e,i){return{x:e/t||0,y:i/t||0}}function H(t,e){return t===e?1:u(t)>=u(e)?t<0?2:4:e<0?8:16}function Y(t,e,i){i||(i=L);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}function q(t,e,i){return i||(i=L),180*Math.atan2(e[i[1]]-t[i[1]],e[i[0]]-t[i[0]])/Math.PI}j.prototype={handler:function(){},init:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(I(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4};function $(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,j.apply(this,arguments)}v($,j,{handler:function(t){var e=G[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:N,srcEvent:t}))}});var V={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Z={2:C,3:"pen",4:N,5:"kinect"},K="pointerdown",J="pointermove pointerup pointercancel";function Q(){this.evEl=K,this.evWin=J,j.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}e.MSPointerEvent&&!e.PointerEvent&&(K="MSPointerDown",J="MSPointerMove MSPointerUp MSPointerCancel"),v(Q,j,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),o=V[n],r=Z[t.pointerType]||t.pointerType,s=r==C,a=S(e,t.pointerId,"pointerId");1&o&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&o&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),i&&e.splice(a,1))}});var tt={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function et(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,j.apply(this,arguments)}v(et,j,{handler:function(t){var e=tt[t.type];if(1===e&&(this.started=!0),this.started){var i=function(t,e){var i=R(t.touches),n=R(t.changedTouches);return 12&e&&(i=z(i.concat(n),"identifier")),[i,n]}(t,e);12&e&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:C,srcEvent:t})}}});var it={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},j.apply(this,arguments)}function ot(t,e){var i=R(t.touches),n=this.targetIds;if(3&e&&1===i.length)return n[i[0].identifier]=!0,[i,i];var o,r,s=R(t.changedTouches),a=[],c=this.target;if(r=i.filter((function(t){return E(t.target,c)})),1===e)for(o=0;o<r.length;)n[r[o].identifier]=!0,o++;for(o=0;o<s.length;)n[s[o].identifier]&&a.push(s[o]),12&e&&delete n[s[o].identifier],o++;return a.length?[z(r.concat(a),"identifier"),a]:void 0}function rt(){j.apply(this,arguments);var t=b(this.handler,this);this.touch=new nt(this.manager,t),this.mouse=new $(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function st(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,at.call(this,e)):12&t&&at.call(this,e)}function at(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout((function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)}),2500)}}function ct(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var o=this.lastTouches[n];if(Math.abs(e-o.x)<=25&&Math.abs(i-o.y)<=25)return!0}return!1}v(nt,j,{handler:function(t){var e=it[t.type],i=ot.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:C,srcEvent:t})}}),v(rt,j,{handler:function(t,e,i){var n=i.pointerType==N;if(!(n&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(i.pointerType==C)st.call(this,e,i);else if(n&&ct.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ut=_(a.style,"touchAction"),lt=ut!==o,ht="compute",ft="auto",dt="manipulation",pt="none",mt="pan-x",gt="pan-y",vt=function(){if(!lt)return!1;var t={},i=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!i||e.CSS.supports("touch-action",n)})),t}();function bt(t,e){this.manager=t,this.set(e)}bt.prototype={set:function(t){t==ht&&(t=this.compute()),lt&&this.manager.element.style&&vt[t]&&(this.manager.element.style[ut]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return d(this.manager.recognizers,(function(e){y(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(k(t,pt))return pt;var e=k(t,mt),i=k(t,gt);return e&&i?pt:e||i?e?mt:gt:k(t,dt)?dt:ft}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,o=k(n,pt)&&!vt[pt],r=k(n,gt)&&!vt[gt],s=k(n,mt)&&!vt[mt];if(o&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!s||!r)return o||r&&6&i||s&&24&i?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var yt=32;function wt(t){this.options=r({},this.defaults,t||{}),this.id=D++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Tt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function xt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Et(t,e){var i=e.manager;return i?i.get(t):t}function kt(){wt.apply(this,arguments)}function At(){kt.apply(this,arguments),this.pX=null,this.pY=null}function St(){kt.apply(this,arguments)}function Rt(){wt.apply(this,arguments),this._timer=null,this._input=null}function zt(){kt.apply(this,arguments)}function _t(){kt.apply(this,arguments)}function Dt(){wt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function It(t,e){return(e=e||{}).recognizers=w(e.recognizers,It.defaults.preset),new Mt(t,e)}function Mt(t,e){this.options=r({},It.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){return new(t.options.inputClass||(P?Q:O?nt:M?rt:$))(t,U)}(this),this.touchAction=new bt(this,this.options.touchAction),Pt(this,!0),d(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Pt(t,e){var i,n=t.element;n.style&&(d(t.options.cssProps,(function(o,r){i=_(n.style,r),e?(t.oldCssProps[i]=n.style[i],n.style[i]=o):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}wt.prototype={defaults:{},set:function(t){return r(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(f(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Et(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return f(t,"dropRecognizeWith",this)||(t=Et(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(f(t,"requireFailure",this))return this;var e=this.requireFail;return-1===S(e,t=Et(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(f(t,"dropRequireFailure",this))return this;t=Et(t,this);var e=S(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+Tt(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+Tt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=yt},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=r({},t);if(!y(this.options.enable,[this,e]))return this.reset(),void(this.state=yt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(){},getTouchAction:function(){},reset:function(){}},v(kt,wt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=6&e,o=this.attrTest(t);return n&&(8&i||!o)?16|e:n||o?4&i?8|e:2&e?4|e:2:yt}}),v(At,kt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(gt),24&t&&e.push(mt),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,o=t.direction,r=t.deltaX,s=t.deltaY;return o&e.direction||(6&e.direction?(o=0===r?1:r<0?2:4,i=r!=this.pX,n=Math.abs(t.deltaX)):(o=0===s?1:s<0?8:16,i=s!=this.pY,n=Math.abs(t.deltaY))),t.direction=o,i&&n>e.threshold&&o&e.direction},attrTest:function(t){return kt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=xt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),v(St,kt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[pt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),v(Rt,wt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ft]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,!n||!i||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=h((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return yt},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=l(),this.manager.emit(this.options.event,this._input)))}}),v(zt,kt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[pt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),v(_t,kt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return At.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return 30&i?e=t.overallVelocity:6&i?e=t.overallVelocityX:24&i&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&u(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=xt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),v(Dt,wt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[dt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(n&&o&&i){if(4!=t.eventType)return this.failTimeout();var r=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||Y(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&r?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=h((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return yt},failTimeout:function(){return this._timer=h((function(){this.state=yt}),this.options.interval,this),yt},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),It.VERSION="2.0.7",It.defaults={domEvents:!1,touchAction:ht,enable:!0,inputTarget:null,inputClass:null,preset:[[zt,{enable:!1}],[St,{enable:!1},["rotate"]],[_t,{direction:6}],[At,{direction:6},["swipe"]],[Dt],[Dt,{event:"doubletap",taps:2},["tap"]],[Rt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Mt.prototype={set:function(t){return r(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,o=e.curRecognizer;(!o||o&&8&o.state)&&(o=e.curRecognizer=null);for(var r=0;r<n.length;)i=n[r],2===e.stopped||o&&i!=o&&!i.canRecognizeWith(o)?i.reset():i.recognize(t),!o&&14&i.state&&(o=e.curRecognizer=i),r++}},get:function(t){if(t instanceof wt)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(f(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(f(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=S(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==o&&e!==o){var i=this.handlers;return d(A(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this}},off:function(t,e){if(t!==o){var i=this.handlers;return d(A(t),(function(t){e?i[t]&&i[t].splice(S(i[t],e),1):delete i[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=i.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var o=0;o<n.length;)n[o](e),o++}},destroy:function(){this.element&&Pt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},r(It,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:yt,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Mt,Input:j,TouchAction:bt,TouchInput:nt,MouseInput:$,PointerEventInput:Q,TouchMouseInput:rt,SingleTouchInput:et,Recognizer:wt,AttrRecognizer:kt,Tap:Dt,Pan:At,Swipe:_t,Pinch:St,Rotate:zt,Press:Rt,on:T,off:x,each:d,merge:g,extend:m,assign:r,inherit:v,bindFn:b,prefixed:_}),(void 0!==e?e:"undefined"!=typeof self?self:{}).Hammer=It,t.exports?t.exports=It:e.Hammer=It}(window,document)}(lt)),lt.exports),ft=c(ht);const dt={[s.SLIDE_IN_DOWN]:s.SLIDE_OUT_UP,[s.SLIDE_IN_UP]:s.SLIDE_OUT_DOWN,[s.SLIDE_IN_LEFT]:s.SLIDE_OUT_RIGHT,[s.SLIDE_IN_RIGHT]:s.SLIDE_OUT_LEFT},pt=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.toastClose=i(this,"toastClose",7),this.pauseonfocusloss=!0,this.isdraggable=!0,this.draggablepercentage=80,this.isCloseEventCalled=!1}watchPropIsdraggable(t){t?this.sliderManager.get("pan").set({enable:!0}):this.sliderManager.get("pan").set({enable:!1})}watchPropAutoclose(t){clearTimeout(this.timeoutHandle),this.startClosingTimeout(t)}watchPropPauseonfocusloss(t){this.autoclose&&(t?document.addEventListener("visibilitychange",this.visibilityChangeEventHandler):document.removeEventListener("visibilitychange",this.visibilityChangeEventHandler))}close(t,e){e&&this.timeoutHandle&&clearTimeout(this.timeoutHandle),this.timeoutHandle=null,this.elapsedTime=null,this.toastClose.emit(),t?this.hostElement.classList.add(t):this.hostElement.parentNode.removeChild(this.hostElement)}visibilityChangeEventHandler(){"hidden"===document.visibilityState?this.timeoutHandle&&this.onBlur():this.elapsedTime&&this.onFocus()}validateAutoclose(){this.autoclose||this.closebutton||console.error("At least one between autoclose and closebutton must be present")}calculateDraggedPercentage(t){const e=this.hostElement.getBoundingClientRect();return Math.round(100*t.deltaX/e.width)}handleSlideOutDragAnimation(){this.sliderManager=new ft(this.hostElement),this.sliderManager.get("pan").set({direction:ft.DIRECTION_HORIZONTAL}),this.sliderManager.on("pan",(t=>{this.percentage=this.calculateDraggedPercentage(t),this.hostElement.style.transition="none",this.transition&&this.hostElement.classList.remove(this.transition);const e={translate:`translateX(${this.percentage}%)`,translateBack:"translateX(0)"};this.hostElement.style.opacity=100-Math.abs(this.percentage)+"%",t.eventType!==ft.DIRECTION_LEFT&&t.eventType!==ft.DIRECTION_RIGHT||(this.hostElement.style.transform=e.translate,Math.abs(this.percentage)>this.draggablepercentage&&!this.isCloseEventCalled&&(this.isCloseEventCalled=!0,this.close(t.direction===ft.DIRECTION_LEFT?s.SLIDE_OUT_LEFT:s.SLIDE_OUT_RIGHT,!0))),t.isFinal&&Math.abs(this.percentage)<this.draggablepercentage&&(this.hostElement.style.transform=e.translateBack,this.hostElement.style.transition="all 1s",this.hostElement.style.opacity="100%",this.percentage=0)}))}onFocus(){let t=this.autoclose;this.elapsedTime&&(t=this.autoclose-this.elapsedTime),t>0&&this.startClosingTimeout(t)}onBlur(){this.elapsedTime=Date.now()-this.startTime,clearTimeout(this.timeoutHandle)}startClosingTimeout(t){this.timeoutHandle=window.setTimeout((()=>this.close(dt[this.transition],!1)),t)}checkSlottedButton(){this.hasSlottedButton=!!this.hostElement.querySelector("[slot='button']")}componentWillLoad(){this.validateAutoclose(),this.checkSlottedButton(),this.percentage=0}componentDidLoad(){this.startTime=Date.now(),this.autoclose&&(this.pauseonfocusloss&&document.addEventListener("visibilitychange",this.visibilityChangeEventHandler),this.transition||this.startClosingTimeout(this.autoclose)),this.isdraggable&&this.handleSlideOutDragAnimation()}render(){return n(o,{key:"e0a58f45156d16fb3ec1cac2e4a13e6bdaf719b7",style:{"--percentuale":this.percentage+"%"},class:{[this.transition]:!!this.transition,[this.type]:!!this.type},onAnimationEnd:t=>{this.autoclose&&t.animationName.includes("slidein")&&this.startClosingTimeout(this.autoclose),t.animationName.includes("slideout")&&this.hostElement.parentNode.removeChild(this.hostElement)}},n("div",{key:"dc37f25eddcc763014c01766f43fba82ed54eb64",class:"toast-notification-container"},n("div",{key:"3b832ddf285d2f203a5172ea20c221d7c5fecf8b",class:"toast-notification-content"},n("div",{key:"b701ba1ea667e98092b858cd31275f8beb1cf89a",class:"toast-notification-text"},this.heading&&n("span",{key:"643748547bf51bbb5ffeae968e9a6f5fb1f8db1e",class:"title"},this.heading),n("span",{key:"2c1d2f616dc9c34b847732af066a0750e1ea49a2",class:"message"},n("slot",{key:"fea0d0b716ff11a64eeb98d2013da6887eeb5c99",name:"message"},this.message&&n("span",{key:"5867861be21564191c97f7cabace3c33645b4cd2",innerHTML:ut.sanitize(this.message)})))),n("div",{key:"3405e83126816b47017f59da2bd95a8195c30a25",class:"button-container",hidden:!this.hasSlottedButton},n("slot",{key:"821f8f8ce998969cf16323c72c151c5dc0a72d62",name:"button",onSlotchange:()=>this.checkSlottedButton()}))),this.closebutton&&n("button",{key:"c3e84a06feaf5632d0733971786dc824b2fa3ab6",class:"close-button","aria-label":"Chiudi notifica",onClick:()=>this.close(dt[this.transition],!0),onKeyDown:t=>{t.code!=a.SPACE&&t.code!=a.ENTER||(t.preventDefault(),this.close(dt[this.transition],!0))}},n("z-icon",{key:"67397c893a19e479e6f76e5c1428ce301f12416e",name:"multiply-circled"}))))}get hostElement(){return this}static get watchers(){return{isdraggable:[{watchPropIsdraggable:0}],autoclose:[{watchPropAutoclose:0}],pauseonfocusloss:[{watchPropPauseonfocusloss:0}]}}static get style(){return":host{--percentuale:0;display:flex;width:100%;min-width:200px;max-width:100dvw;box-sizing:border-box;background:var(--color-surface01);border-radius:var(--border-size-large);box-shadow:var(--shadow-3);color:var(--color-default-text);fill:var(--color-primary01-icon);font-family:var(--font-family-sans);font-size:var(--font-size-2);font-weight:var(--font-rg)}:host(.slide-in-left){animation:slideinleft 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-right){animation:slideinright 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-down){animation:slideindown 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-up){animation:slideinup 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-left){animation:slideoutleft 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-right){animation:slideoutright 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-down){animation:slideoutdown 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-up){animation:slideoutup 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}.toast-notification-container{display:flex;width:100%;align-items:baseline;justify-content:space-between;padding:calc(var(--space-unit) * 2);border-radius:var(--border-radius);gap:calc(var(--space-unit) * 2)}.toast-notification-content{display:flex;width:100%;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:calc(var(--space-unit) * 2)}.toast-notification-content .toast-notification-text{color:inherit;letter-spacing:0.16px;line-height:1.25rem}.toast-notification-content .toast-notification-text .title{margin-right:calc(var(--space-unit) / 2);font-weight:var(--font-sb)}.close-button{height:1.125rem;padding:0;border:none;background-color:transparent;cursor:pointer}.close-button z-icon{--z-icon-width:1.125rem;--z-icon-height:1.125rem;display:inline-block;height:1.25rem}.close-button:focus:focus-visible{border-radius:50%;box-shadow:var(--shadow-focus-primary);outline:none}:host(.dark){background:var(--color-surface05);color:var(--color-text-inverse);fill:var(--color-inverse-icon)}:host(.dark) .close-button:focus:focus-visible{box-shadow:0 0 0 2px var(--gray900), 0 0 2px 5px var(--blue25)}:host(.accent){background:var(--color-primary01)}:host(.error){background:var(--color-default-error)}:host(.success){background:var(--color-default-success)}:host(.warning){background:var(--color-default-warning)}:host(.accent),:host(.error),:host(.success){color:var(--color-text-inverse);fill:var(--color-inverse-icon)}:host(.warning) .close-button{fill:var(--color-default-icon)}@media (min-width: 768px){:host{width:fit-content;max-width:50vw}.toast-notification-content{flex-wrap:nowrap}}@media (min-width: 1366px){:host{max-width:33vw}}@keyframes slideinleft{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes slideinright{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes slideinup{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slideindown{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slideoutleft{0%{opacity:calc(100% - var(--percentuale));transform:translateX(var(--percentuale))}100%{opacity:0;transform:translateX(-100%)}}@keyframes slideoutright{0%{opacity:calc(100% - var(--percentuale));transform:translateX(var(--percentuale))}100%{opacity:0;transform:translateX(100%)}}@keyframes slideoutup{0%{opacity:1;transform:translateY(var(--percentuale))}100%{opacity:0;transform:translateY(-100%)}}@keyframes slideoutdown{0%{opacity:1;transform:translateY(var(--percentuale))}100%{opacity:0;transform:translateY(100%)}}"}},[257,"z-toast-notification",{heading:[1],message:[1],closebutton:[4],autoclose:[2],pauseonfocusloss:[4],type:[1],isdraggable:[4],draggablepercentage:[2],transition:[1],percentage:[32],hasSlottedButton:[32]},void 0,{isdraggable:[{watchPropIsdraggable:0}],autoclose:[{watchPropAutoclose:0}],pauseonfocusloss:[{watchPropPauseonfocusloss:0}]}]),mt=pt,gt=function(){"undefined"!=typeof customElements&&["z-toast-notification","z-icon"].forEach((t=>{switch(t){case"z-toast-notification":customElements.get(r(t))||customElements.define(r(t),pt);break;case"z-icon":customElements.get(r(t))||u()}}))};export{mt as ZToastNotification,gt as defineCustomElement}
2
+ /*! @license DOMPurify 3.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.0/LICENSE */const{entries:l,setPrototypeOf:h,isFrozen:f,getPrototypeOf:d,getOwnPropertyDescriptor:p}=Object;let{freeze:m,seal:g,create:v}=Object,{apply:b,construct:y}="undefined"!=typeof Reflect&&Reflect;m||(m=function(t){return t}),g||(g=function(t){return t}),b||(b=function(t,e){for(var i=arguments.length,n=Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];return t.apply(e,n)}),y||(y=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return new t(...i)});const w=O(Array.prototype.forEach),T=O(Array.prototype.lastIndexOf),x=O(Array.prototype.pop),E=O(Array.prototype.push),k=O(Array.prototype.splice),A=O(String.prototype.toLowerCase),S=O(String.prototype.toString),R=O(String.prototype.match),z=O(String.prototype.replace),_=O(String.prototype.indexOf),D=O(String.prototype.trim),I=O(Object.prototype.hasOwnProperty),M=O(RegExp.prototype.test),P=function(t){return function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return y(t,i)}}(TypeError);function O(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var i=arguments.length,n=Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return b(t,e,n)}}function C(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A;h&&h(t,null);let n=e.length;for(;n--;){let o=e[n];if("string"==typeof o){const t=i(o);t!==o&&(f(e)||(e[n]=t),o=t)}t[o]=!0}return t}function N(t){for(let e=0;e<t.length;e++)I(t,e)||(t[e]=null);return t}function L(t){const e=v(null);for(const[i,n]of l(t))I(t,i)&&(e[i]=Array.isArray(n)?N(n):n&&"object"==typeof n&&n.constructor===Object?L(n):n);return e}function F(t,e){for(;null!==t;){const i=p(t,e);if(i){if(i.get)return O(i.get);if("function"==typeof i.value)return O(i.value)}t=d(t)}return function(){return null}}const j=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),W=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),X=m(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),B=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),H=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y=m(["#text"]),q=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),G=m(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$=m(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Z=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),K=g(/<%[\w\W]*|[\w\W]*%>/gm),J=g(/\$\{[\w\W]*/gm),Q=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),tt=g(/^aria-[\-\w]+$/),et=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),it=g(/^(?:\w+script|data):/i),nt=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ot=g(/^html$/i),rt=g(/^[a-z][.\w]*(-[.\w]+)+$/i);var st=Object.freeze({__proto__:null,ARIA_ATTR:tt,ATTR_WHITESPACE:nt,CUSTOM_ELEMENT:rt,DATA_ATTR:Q,DOCTYPE_NAME:ot,ERB_EXPR:K,IS_ALLOWED_URI:et,IS_SCRIPT_OR_DATA:it,MUSTACHE_EXPR:Z,TMPLIT_EXPR:J});const at=function(){return"undefined"==typeof window?null:window};var ct,ut=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:at();const i=e=>t(e);if(i.version="3.4.0",i.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return i.isSupported=!1,i;let{document:n}=e;const o=n,r=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:c,Element:u,NodeFilter:h,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:p,trustedTypes:g}=e,b=u.prototype,y=F(b,"cloneNode"),O=F(b,"remove"),N=F(b,"nextSibling"),Z=F(b,"childNodes"),K=F(b,"parentNode");if("function"==typeof a){const t=n.createElement("template");t.content&&t.content.ownerDocument&&(n=t.content.ownerDocument)}let J,Q="";const{implementation:tt,createNodeIterator:it,createDocumentFragment:nt,getElementsByTagName:rt}=n,{importNode:ct}=o;let ut={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof l&&"function"==typeof K&&tt&&void 0!==tt.createHTMLDocument;const{MUSTACHE_EXPR:lt,ERB_EXPR:ht,TMPLIT_EXPR:ft,DATA_ATTR:dt,ARIA_ATTR:pt,IS_SCRIPT_OR_DATA:mt,ATTR_WHITESPACE:gt,CUSTOM_ELEMENT:vt}=st;let{IS_ALLOWED_URI:bt}=st,yt=null;const wt=C({},[...j,...U,...W,...B,...Y]);let Tt=null;const xt=C({},[...q,...G,...$,...V]);let Et=Object.seal(v(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),kt=null,At=null;const St=Object.seal(v(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Rt=!0,zt=!0,_t=!1,Dt=!0,It=!1,Mt=!0,Pt=!1,Ot=!1,Ct=!1,Nt=!1,Lt=!1,Ft=!1,jt=!0,Ut=!1,Wt=!0,Xt=!1,Bt={},Ht=null;const Yt=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qt=null;const Gt=C({},["audio","video","img","source","image","track"]);let $t=null;const Vt=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Zt="http://www.w3.org/1998/Math/MathML",Kt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1999/xhtml";let Qt=Jt,te=!1,ee=null;const ie=C({},[Zt,Kt,Jt],S);let ne=C({},["mi","mo","mn","ms","mtext"]),oe=C({},["annotation-xml"]);const re=C({},["title","style","font","a","script"]);let se=null;const ae=["application/xhtml+xml","text/html"];let ce=null,ue=null;const le=n.createElement("form"),he=function(t){return t instanceof RegExp||t instanceof Function},fe=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ue||ue!==t){if(t&&"object"==typeof t||(t={}),t=L(t),se=-1===ae.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ce="application/xhtml+xml"===se?S:A,yt=I(t,"ALLOWED_TAGS")?C({},t.ALLOWED_TAGS,ce):wt,Tt=I(t,"ALLOWED_ATTR")?C({},t.ALLOWED_ATTR,ce):xt,ee=I(t,"ALLOWED_NAMESPACES")?C({},t.ALLOWED_NAMESPACES,S):ie,$t=I(t,"ADD_URI_SAFE_ATTR")?C(L(Vt),t.ADD_URI_SAFE_ATTR,ce):Vt,qt=I(t,"ADD_DATA_URI_TAGS")?C(L(Gt),t.ADD_DATA_URI_TAGS,ce):Gt,Ht=I(t,"FORBID_CONTENTS")?C({},t.FORBID_CONTENTS,ce):Yt,kt=I(t,"FORBID_TAGS")?C({},t.FORBID_TAGS,ce):L({}),At=I(t,"FORBID_ATTR")?C({},t.FORBID_ATTR,ce):L({}),Bt=!!I(t,"USE_PROFILES")&&t.USE_PROFILES,Rt=!1!==t.ALLOW_ARIA_ATTR,zt=!1!==t.ALLOW_DATA_ATTR,_t=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Dt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,It=t.SAFE_FOR_TEMPLATES||!1,Mt=!1!==t.SAFE_FOR_XML,Pt=t.WHOLE_DOCUMENT||!1,Nt=t.RETURN_DOM||!1,Lt=t.RETURN_DOM_FRAGMENT||!1,Ft=t.RETURN_TRUSTED_TYPE||!1,Ct=t.FORCE_BODY||!1,jt=!1!==t.SANITIZE_DOM,Ut=t.SANITIZE_NAMED_PROPS||!1,Wt=!1!==t.KEEP_CONTENT,Xt=t.IN_PLACE||!1,bt=t.ALLOWED_URI_REGEXP||et,Qt=t.NAMESPACE||Jt,ne=t.MATHML_TEXT_INTEGRATION_POINTS||ne,oe=t.HTML_INTEGRATION_POINTS||oe,Et=t.CUSTOM_ELEMENT_HANDLING||v(null),t.CUSTOM_ELEMENT_HANDLING&&he(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Et.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&he(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Et.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Et.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),It&&(zt=!1),Lt&&(Nt=!0),Bt&&(yt=C({},Y),Tt=v(null),!0===Bt.html&&(C(yt,j),C(Tt,q)),!0===Bt.svg&&(C(yt,U),C(Tt,G),C(Tt,V)),!0===Bt.svgFilters&&(C(yt,W),C(Tt,G),C(Tt,V)),!0===Bt.mathMl&&(C(yt,B),C(Tt,$),C(Tt,V))),St.tagCheck=null,St.attributeCheck=null,t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?St.tagCheck=t.ADD_TAGS:(yt===wt&&(yt=L(yt)),C(yt,t.ADD_TAGS,ce))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?St.attributeCheck=t.ADD_ATTR:(Tt===xt&&(Tt=L(Tt)),C(Tt,t.ADD_ATTR,ce))),t.ADD_URI_SAFE_ATTR&&C($t,t.ADD_URI_SAFE_ATTR,ce),t.FORBID_CONTENTS&&(Ht===Yt&&(Ht=L(Ht)),C(Ht,t.FORBID_CONTENTS,ce)),t.ADD_FORBID_CONTENTS&&(Ht===Yt&&(Ht=L(Ht)),C(Ht,t.ADD_FORBID_CONTENTS,ce)),Wt&&(yt["#text"]=!0),Pt&&C(yt,["html","head","body"]),yt.table&&(C(yt,["tbody"]),delete kt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw P('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw P('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=t.TRUSTED_TYPES_POLICY,Q=J.createHTML("")}else void 0===J&&(J=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(i=e.getAttribute(n));const o="dompurify"+(i?"#"+i:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(g,r)),null!==J&&"string"==typeof Q&&(Q=J.createHTML(""));m&&m(t),ue=t}},de=C({},[...U,...W,...X]),pe=C({},[...B,...H]),me=function(t){E(i.removed,{element:t});try{K(t).removeChild(t)}catch(e){O(t)}},ge=function(t,e){try{E(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){E(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Nt||Lt)try{me(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ve=function(t){let e=null,i=null;if(Ct)t="<remove></remove>"+t;else{const e=R(t,/^[\r\n\t ]+/);i=e&&e[0]}"application/xhtml+xml"===se&&Qt===Jt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=J?J.createHTML(t):t;if(Qt===Jt)try{e=(new p).parseFromString(o,se)}catch(t){}if(!e||!e.documentElement){e=tt.createDocument(Qt,"template",null);try{e.documentElement.innerHTML=te?Q:o}catch(t){}}const r=e.body||e.documentElement;return t&&i&&r.insertBefore(n.createTextNode(i),r.childNodes[0]||null),Qt===Jt?rt.call(e,Pt?"html":"body")[0]:Pt?e.documentElement:r},be=function(t){return it.call(t.ownerDocument||t,t,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},ye=function(t){return t instanceof d&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof f)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},we=function(t){return"function"==typeof c&&t instanceof c};function Te(t,e,n){w(t,(t=>{t.call(i,e,n,ue)}))}const xe=function(t){let e=null;if(Te(ut.beforeSanitizeElements,t,null),ye(t))return me(t),!0;const n=ce(t.nodeName);if(Te(ut.uponSanitizeElement,t,{tagName:n,allowedTags:yt}),Mt&&t.hasChildNodes()&&!we(t.firstElementChild)&&M(/<[/\w!]/g,t.innerHTML)&&M(/<[/\w!]/g,t.textContent))return me(t),!0;if(Mt&&t.namespaceURI===Jt&&"style"===n&&we(t.firstElementChild))return me(t),!0;if(7===t.nodeType)return me(t),!0;if(Mt&&8===t.nodeType&&M(/<[/\w]/g,t.data))return me(t),!0;if(kt[n]||!(St.tagCheck instanceof Function&&St.tagCheck(n))&&!yt[n]){if(!kt[n]&&ke(n)){if(Et.tagNameCheck instanceof RegExp&&M(Et.tagNameCheck,n))return!1;if(Et.tagNameCheck instanceof Function&&Et.tagNameCheck(n))return!1}if(Wt&&!Ht[n]){const e=K(t)||t.parentNode,i=Z(t)||t.childNodes;if(i&&e)for(let n=i.length-1;n>=0;--n){const o=y(i[n],!0);o.__removalCount=(t.__removalCount||0)+1,e.insertBefore(o,N(t))}}return me(t),!0}return t instanceof u&&!function(t){let e=K(t);e&&e.tagName||(e={namespaceURI:Qt,tagName:"template"});const i=A(t.tagName),n=A(e.tagName);return!!ee[t.namespaceURI]&&(t.namespaceURI===Kt?e.namespaceURI===Jt?"svg"===i:e.namespaceURI===Zt?"svg"===i&&("annotation-xml"===n||ne[n]):!!de[i]:t.namespaceURI===Zt?e.namespaceURI===Jt?"math"===i:e.namespaceURI===Kt?"math"===i&&oe[n]:!!pe[i]:t.namespaceURI===Jt?!(e.namespaceURI===Kt&&!oe[n])&&!(e.namespaceURI===Zt&&!ne[n])&&!pe[i]&&(re[i]||!de[i]):!("application/xhtml+xml"!==se||!ee[t.namespaceURI]))}(t)?(me(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!M(/<\/no(script|embed|frames)/i,t.innerHTML)?(It&&3===t.nodeType&&(e=t.textContent,w([lt,ht,ft],(t=>{e=z(e,t," ")})),t.textContent!==e&&(E(i.removed,{element:t.cloneNode()}),t.textContent=e)),Te(ut.afterSanitizeElements,t,null),!1):(me(t),!0)},Ee=function(t,e,i){if(At[e])return!1;if(jt&&("id"===e||"name"===e)&&(i in n||i in le))return!1;if(zt&&!At[e]&&M(dt,e));else if(Rt&&M(pt,e));else if(St.attributeCheck instanceof Function&&St.attributeCheck(e,t));else if(!Tt[e]||At[e]){if(!(ke(t)&&(Et.tagNameCheck instanceof RegExp&&M(Et.tagNameCheck,t)||Et.tagNameCheck instanceof Function&&Et.tagNameCheck(t))&&(Et.attributeNameCheck instanceof RegExp&&M(Et.attributeNameCheck,e)||Et.attributeNameCheck instanceof Function&&Et.attributeNameCheck(e,t))||"is"===e&&Et.allowCustomizedBuiltInElements&&(Et.tagNameCheck instanceof RegExp&&M(Et.tagNameCheck,i)||Et.tagNameCheck instanceof Function&&Et.tagNameCheck(i))))return!1}else if($t[e]);else if(M(bt,z(i,gt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==_(i,"data:")||!qt[t])if(_t&&!M(mt,z(i,gt,"")));else if(i)return!1;return!0},ke=function(t){return"annotation-xml"!==t&&R(t,vt)},Ae=function(t){Te(ut.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||ye(t))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Tt,forceKeepAttr:void 0};let o=e.length;for(;o--;){const r=e[o],{name:s,namespaceURI:a,value:c}=r,u=ce(s),l=c;let h="value"===s?l:D(l);if(n.attrName=u,n.attrValue=h,n.keepAttr=!0,n.forceKeepAttr=void 0,Te(ut.uponSanitizeAttribute,t,n),h=n.attrValue,!Ut||"id"!==u&&"name"!==u||(ge(s,t),h="user-content-"+h),Mt&&M(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)){ge(s,t);continue}if("attributename"===u&&R(h,"href")){ge(s,t);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){ge(s,t);continue}if(!Dt&&M(/\/>/i,h)){ge(s,t);continue}It&&w([lt,ht,ft],(t=>{h=z(h,t," ")}));const f=ce(t.nodeName);if(Ee(f,u,h)){if(J&&"object"==typeof g&&"function"==typeof g.getAttributeType)if(a);else switch(g.getAttributeType(f,u)){case"TrustedHTML":h=J.createHTML(h);break;case"TrustedScriptURL":h=J.createScriptURL(h)}if(h!==l)try{a?t.setAttributeNS(a,s,h):t.setAttribute(s,h),ye(t)?me(t):x(i.removed)}catch(e){ge(s,t)}}else ge(s,t)}Te(ut.afterSanitizeAttributes,t,null)},Se=function(t){let e=null;const i=be(t);for(Te(ut.beforeSanitizeShadowDOM,t,null);e=i.nextNode();)Te(ut.uponSanitizeShadowNode,e,null),xe(e),Ae(e),e.content instanceof s&&Se(e.content);Te(ut.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,a=null,u=null;if(te=!t,te&&(t="\x3c!--\x3e"),"string"!=typeof t&&!we(t)){if("function"!=typeof t.toString)throw P("toString is not a function");if("string"!=typeof(t=""+t))throw P("dirty is not a string, aborting")}if(!i.isSupported)return t;if(Ot||fe(e),i.removed=[],"string"==typeof t&&(Xt=!1),Xt){if(t.nodeName){const e=ce(t.nodeName);if(!yt[e]||kt[e])throw P("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)n=ve("\x3c!----\x3e"),r=n.ownerDocument.importNode(t,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Nt&&!It&&!Pt&&-1===t.indexOf("<"))return J&&Ft?J.createHTML(t):t;if(n=ve(t),!n)return Nt?null:Ft?Q:""}n&&Ct&&me(n.firstChild);const l=be(Xt?t:n);for(;a=l.nextNode();)xe(a),Ae(a),a.content instanceof s&&Se(a.content);if(Xt)return t;if(Nt){if(It){n.normalize();let t=n.innerHTML;w([lt,ht,ft],(e=>{t=z(t,e," ")})),n.innerHTML=t}if(Lt)for(u=nt.call(n.ownerDocument);n.firstChild;)u.appendChild(n.firstChild);else u=n;return(Tt.shadowroot||Tt.shadowrootmode)&&(u=ct.call(o,u,!0)),u}let h=Pt?n.outerHTML:n.innerHTML;return Pt&&yt["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&M(ot,n.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+h),It&&w([lt,ht,ft],(t=>{h=z(h,t," ")})),J&&Ft?J.createHTML(h):h},i.setConfig=function(){fe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ot=!0},i.clearConfig=function(){ue=null,Ot=!1},i.isValidAttribute=function(t,e,i){ue||fe({});const n=ce(t),o=ce(e);return Ee(n,o,i)},i.addHook=function(t,e){"function"==typeof e&&E(ut[t],e)},i.removeHook=function(t,e){if(void 0!==e){const i=T(ut[t],e);return-1===i?void 0:k(ut[t],i,1)[0]}return x(ut[t])},i.removeHooks=function(t){ut[t]=[]},i.removeAllHooks=function(){ut={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}(),lt={exports:{}},ht=(ct||(ct=1,function(t){!function(e,i,n,o){var r,s=["","webkit","Moz","MS","ms","o"],a=i.createElement("div"),c=Math.round,u=Math.abs,l=Date.now;function h(t,e,i){return setTimeout(b(t,i),e)}function f(t,e,i){return!!Array.isArray(t)&&(d(t,i[e],i),!0)}function d(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==o)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function p(t,i,n){var o="DEPRECATED METHOD: "+i+"\n"+n+" AT \n";return function(){var i=Error("get-stack-trace"),n=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=e.console&&(e.console.warn||e.console.log);return r&&r.call(e.console,o,n),t.apply(this,arguments)}}r="function"!=typeof Object.assign?function(t){if(t===o||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==o&&null!==n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}:Object.assign;var m=p((function(t,e,i){for(var n=Object.keys(e),r=0;r<n.length;)(!i||i&&t[n[r]]===o)&&(t[n[r]]=e[n[r]]),r++;return t}),"extend","Use `assign`."),g=p((function(t,e){return m(t,e,!0)}),"merge","Use `assign`.");function v(t,e,i){var n,o=e.prototype;(n=t.prototype=Object.create(o)).constructor=t,n._super=o,i&&r(n,i)}function b(t,e){return function(){return t.apply(e,arguments)}}function y(t,e){return"function"==typeof t?t.apply(e&&e[0]||o,e):t}function w(t,e){return t===o?e:t}function T(t,e,i){d(A(e),(function(e){t.addEventListener(e,i,!1)}))}function x(t,e,i){d(A(e),(function(e){t.removeEventListener(e,i,!1)}))}function E(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function k(t,e){return t.indexOf(e)>-1}function A(t){return t.trim().split(/\s+/g)}function S(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function R(t){return Array.prototype.slice.call(t,0)}function z(t,e){for(var i=[],n=[],o=0;o<t.length;){var r=t[o][e];S(n,r)<0&&i.push(t[o]),n[o]=r,o++}return i.sort((function(t,i){return t[e]>i[e]}))}function _(t,e){for(var i,n,r=e[0].toUpperCase()+e.slice(1),a=0;a<s.length;){if((n=(i=s[a])?i+r:e)in t)return n;a++}return o}var D=1;function I(t){var i=t.ownerDocument||t;return i.defaultView||i.parentWindow||e}var M="ontouchstart"in e,P=_(e,"PointerEvent")!==o,O=M&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),C="touch",N="mouse",L=["x","y"],F=["clientX","clientY"];function j(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){y(t.options.enable,[t])&&i.handler(e)},this.init()}function U(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,s=1&e&&n-r==0,a=12&e&&n-r==0;i.isFirst=!!s,i.isFinal=!!a,s&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=W(e)),r>1&&!i.firstMultiple?i.firstMultiple=W(e):1===r&&(i.firstMultiple=!1);var s=i.firstInput,a=i.firstMultiple,c=a?a.center:s.center,h=e.center=X(n);e.timeStamp=l(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=q(c,h),e.distance=Y(c,h),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};1!==e.eventType&&4!==r.eventType||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}(i,e),e.offsetDirection=H(e.deltaX,e.deltaY);var f=B(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=f.x,e.overallVelocityY=f.y,e.overallVelocity=u(f.x)>u(f.y)?f.x:f.y,e.scale=a?function(t,e){return Y(e[0],e[1],F)/Y(t[0],t[1],F)}(a.pointers,n):1,e.rotation=a?function(t,e){return q(e[1],e[0],F)+q(t[1],t[0],F)}(a.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,r,s,a=t.lastInterval||e,c=e.timeStamp-a.timeStamp;if(8!=e.eventType&&(c>25||a.velocity===o)){var l=e.deltaX-a.deltaX,h=e.deltaY-a.deltaY,f=B(c,l,h);n=f.x,r=f.y,i=u(f.x)>u(f.y)?f.x:f.y,s=H(l,h),t.lastInterval=e}else i=a.velocity,n=a.velocityX,r=a.velocityY,s=a.direction;e.velocity=i,e.velocityX=n,e.velocityY=r,e.direction=s}(i,e);var d=t.element;E(e.srcEvent.target,d)&&(d=e.srcEvent.target),e.target=d}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function W(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:c(t.pointers[i].clientX),clientY:c(t.pointers[i].clientY)},i++;return{timeStamp:l(),pointers:e,center:X(e),deltaX:t.deltaX,deltaY:t.deltaY}}function X(t){var e=t.length;if(1===e)return{x:c(t[0].clientX),y:c(t[0].clientY)};for(var i=0,n=0,o=0;o<e;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:c(i/e),y:c(n/e)}}function B(t,e,i){return{x:e/t||0,y:i/t||0}}function H(t,e){return t===e?1:u(t)>=u(e)?t<0?2:4:e<0?8:16}function Y(t,e,i){i||(i=L);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}function q(t,e,i){return i||(i=L),180*Math.atan2(e[i[1]]-t[i[1]],e[i[0]]-t[i[0]])/Math.PI}j.prototype={handler:function(){},init:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(I(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4};function $(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,j.apply(this,arguments)}v($,j,{handler:function(t){var e=G[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:N,srcEvent:t}))}});var V={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Z={2:C,3:"pen",4:N,5:"kinect"},K="pointerdown",J="pointermove pointerup pointercancel";function Q(){this.evEl=K,this.evWin=J,j.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}e.MSPointerEvent&&!e.PointerEvent&&(K="MSPointerDown",J="MSPointerMove MSPointerUp MSPointerCancel"),v(Q,j,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),o=V[n],r=Z[t.pointerType]||t.pointerType,s=r==C,a=S(e,t.pointerId,"pointerId");1&o&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&o&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),i&&e.splice(a,1))}});var tt={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function et(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,j.apply(this,arguments)}v(et,j,{handler:function(t){var e=tt[t.type];if(1===e&&(this.started=!0),this.started){var i=function(t,e){var i=R(t.touches),n=R(t.changedTouches);return 12&e&&(i=z(i.concat(n),"identifier")),[i,n]}(t,e);12&e&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:C,srcEvent:t})}}});var it={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},j.apply(this,arguments)}function ot(t,e){var i=R(t.touches),n=this.targetIds;if(3&e&&1===i.length)return n[i[0].identifier]=!0,[i,i];var o,r,s=R(t.changedTouches),a=[],c=this.target;if(r=i.filter((function(t){return E(t.target,c)})),1===e)for(o=0;o<r.length;)n[r[o].identifier]=!0,o++;for(o=0;o<s.length;)n[s[o].identifier]&&a.push(s[o]),12&e&&delete n[s[o].identifier],o++;return a.length?[z(r.concat(a),"identifier"),a]:void 0}function rt(){j.apply(this,arguments);var t=b(this.handler,this);this.touch=new nt(this.manager,t),this.mouse=new $(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function st(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,at.call(this,e)):12&t&&at.call(this,e)}function at(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout((function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)}),2500)}}function ct(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var o=this.lastTouches[n];if(Math.abs(e-o.x)<=25&&Math.abs(i-o.y)<=25)return!0}return!1}v(nt,j,{handler:function(t){var e=it[t.type],i=ot.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:C,srcEvent:t})}}),v(rt,j,{handler:function(t,e,i){var n=i.pointerType==N;if(!(n&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(i.pointerType==C)st.call(this,e,i);else if(n&&ct.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ut=_(a.style,"touchAction"),lt=ut!==o,ht="compute",ft="auto",dt="manipulation",pt="none",mt="pan-x",gt="pan-y",vt=function(){if(!lt)return!1;var t={},i=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!i||e.CSS.supports("touch-action",n)})),t}();function bt(t,e){this.manager=t,this.set(e)}bt.prototype={set:function(t){t==ht&&(t=this.compute()),lt&&this.manager.element.style&&vt[t]&&(this.manager.element.style[ut]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return d(this.manager.recognizers,(function(e){y(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(k(t,pt))return pt;var e=k(t,mt),i=k(t,gt);return e&&i?pt:e||i?e?mt:gt:k(t,dt)?dt:ft}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,o=k(n,pt)&&!vt[pt],r=k(n,gt)&&!vt[gt],s=k(n,mt)&&!vt[mt];if(o&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!s||!r)return o||r&&6&i||s&&24&i?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var yt=32;function wt(t){this.options=r({},this.defaults,t||{}),this.id=D++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Tt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function xt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Et(t,e){var i=e.manager;return i?i.get(t):t}function kt(){wt.apply(this,arguments)}function At(){kt.apply(this,arguments),this.pX=null,this.pY=null}function St(){kt.apply(this,arguments)}function Rt(){wt.apply(this,arguments),this._timer=null,this._input=null}function zt(){kt.apply(this,arguments)}function _t(){kt.apply(this,arguments)}function Dt(){wt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function It(t,e){return(e=e||{}).recognizers=w(e.recognizers,It.defaults.preset),new Mt(t,e)}function Mt(t,e){this.options=r({},It.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){return new(t.options.inputClass||(P?Q:O?nt:M?rt:$))(t,U)}(this),this.touchAction=new bt(this,this.options.touchAction),Pt(this,!0),d(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Pt(t,e){var i,n=t.element;n.style&&(d(t.options.cssProps,(function(o,r){i=_(n.style,r),e?(t.oldCssProps[i]=n.style[i],n.style[i]=o):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}wt.prototype={defaults:{},set:function(t){return r(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(f(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Et(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return f(t,"dropRecognizeWith",this)||(t=Et(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(f(t,"requireFailure",this))return this;var e=this.requireFail;return-1===S(e,t=Et(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(f(t,"dropRequireFailure",this))return this;t=Et(t,this);var e=S(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+Tt(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+Tt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=yt},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=r({},t);if(!y(this.options.enable,[this,e]))return this.reset(),void(this.state=yt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(){},getTouchAction:function(){},reset:function(){}},v(kt,wt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=6&e,o=this.attrTest(t);return n&&(8&i||!o)?16|e:n||o?4&i?8|e:2&e?4|e:2:yt}}),v(At,kt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(gt),24&t&&e.push(mt),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,o=t.direction,r=t.deltaX,s=t.deltaY;return o&e.direction||(6&e.direction?(o=0===r?1:r<0?2:4,i=r!=this.pX,n=Math.abs(t.deltaX)):(o=0===s?1:s<0?8:16,i=s!=this.pY,n=Math.abs(t.deltaY))),t.direction=o,i&&n>e.threshold&&o&e.direction},attrTest:function(t){return kt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=xt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),v(St,kt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[pt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),v(Rt,wt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ft]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,!n||!i||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=h((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return yt},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=l(),this.manager.emit(this.options.event,this._input)))}}),v(zt,kt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[pt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),v(_t,kt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return At.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return 30&i?e=t.overallVelocity:6&i?e=t.overallVelocityX:24&i&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&u(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=xt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),v(Dt,wt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[dt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(n&&o&&i){if(4!=t.eventType)return this.failTimeout();var r=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||Y(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&r?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=h((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return yt},failTimeout:function(){return this._timer=h((function(){this.state=yt}),this.options.interval,this),yt},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),It.VERSION="2.0.7",It.defaults={domEvents:!1,touchAction:ht,enable:!0,inputTarget:null,inputClass:null,preset:[[zt,{enable:!1}],[St,{enable:!1},["rotate"]],[_t,{direction:6}],[At,{direction:6},["swipe"]],[Dt],[Dt,{event:"doubletap",taps:2},["tap"]],[Rt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Mt.prototype={set:function(t){return r(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,o=e.curRecognizer;(!o||o&&8&o.state)&&(o=e.curRecognizer=null);for(var r=0;r<n.length;)i=n[r],2===e.stopped||o&&i!=o&&!i.canRecognizeWith(o)?i.reset():i.recognize(t),!o&&14&i.state&&(o=e.curRecognizer=i),r++}},get:function(t){if(t instanceof wt)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(f(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(f(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=S(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==o&&e!==o){var i=this.handlers;return d(A(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this}},off:function(t,e){if(t!==o){var i=this.handlers;return d(A(t),(function(t){e?i[t]&&i[t].splice(S(i[t],e),1):delete i[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=i.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var o=0;o<n.length;)n[o](e),o++}},destroy:function(){this.element&&Pt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},r(It,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:yt,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Mt,Input:j,TouchAction:bt,TouchInput:nt,MouseInput:$,PointerEventInput:Q,TouchMouseInput:rt,SingleTouchInput:et,Recognizer:wt,AttrRecognizer:kt,Tap:Dt,Pan:At,Swipe:_t,Pinch:St,Rotate:zt,Press:Rt,on:T,off:x,each:d,merge:g,extend:m,assign:r,inherit:v,bindFn:b,prefixed:_}),(void 0!==e?e:"undefined"!=typeof self?self:{}).Hammer=It,t.exports?t.exports=It:e.Hammer=It}(window,document)}(lt)),lt.exports),ft=c(ht);const dt={[s.SLIDE_IN_DOWN]:s.SLIDE_OUT_UP,[s.SLIDE_IN_UP]:s.SLIDE_OUT_DOWN,[s.SLIDE_IN_LEFT]:s.SLIDE_OUT_RIGHT,[s.SLIDE_IN_RIGHT]:s.SLIDE_OUT_LEFT},pt=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.toastClose=i(this,"toastClose",7),this.pauseonfocusloss=!0,this.isdraggable=!0,this.draggablepercentage=80,this.isCloseEventCalled=!1}watchPropIsdraggable(t){t?this.sliderManager.get("pan").set({enable:!0}):this.sliderManager.get("pan").set({enable:!1})}watchPropAutoclose(t){clearTimeout(this.timeoutHandle),this.startClosingTimeout(t)}watchPropPauseonfocusloss(t){this.autoclose&&(t?document.addEventListener("visibilitychange",this.visibilityChangeEventHandler):document.removeEventListener("visibilitychange",this.visibilityChangeEventHandler))}close(t,e){e&&this.timeoutHandle&&clearTimeout(this.timeoutHandle),this.timeoutHandle=null,this.elapsedTime=null,this.toastClose.emit(),t?this.hostElement.classList.add(t):this.hostElement.parentNode.removeChild(this.hostElement)}visibilityChangeEventHandler(){"hidden"===document.visibilityState?this.timeoutHandle&&this.onBlur():this.elapsedTime&&this.onFocus()}validateAutoclose(){this.autoclose||this.closebutton||console.error("At least one between autoclose and closebutton must be present")}calculateDraggedPercentage(t){const e=this.hostElement.getBoundingClientRect();return Math.round(100*t.deltaX/e.width)}handleSlideOutDragAnimation(){this.sliderManager=new ft(this.hostElement),this.sliderManager.get("pan").set({direction:ft.DIRECTION_HORIZONTAL}),this.sliderManager.on("pan",(t=>{this.percentage=this.calculateDraggedPercentage(t),this.hostElement.style.transition="none",this.transition&&this.hostElement.classList.remove(this.transition);const e={translate:`translateX(${this.percentage}%)`,translateBack:"translateX(0)"};this.hostElement.style.opacity=100-Math.abs(this.percentage)+"%",t.eventType!==ft.DIRECTION_LEFT&&t.eventType!==ft.DIRECTION_RIGHT||(this.hostElement.style.transform=e.translate,Math.abs(this.percentage)>this.draggablepercentage&&!this.isCloseEventCalled&&(this.isCloseEventCalled=!0,this.close(t.direction===ft.DIRECTION_LEFT?s.SLIDE_OUT_LEFT:s.SLIDE_OUT_RIGHT,!0))),t.isFinal&&Math.abs(this.percentage)<this.draggablepercentage&&(this.hostElement.style.transform=e.translateBack,this.hostElement.style.transition="all 1s",this.hostElement.style.opacity="100%",this.percentage=0)}))}onFocus(){let t=this.autoclose;this.elapsedTime&&(t=this.autoclose-this.elapsedTime),t>0&&this.startClosingTimeout(t)}onBlur(){this.elapsedTime=Date.now()-this.startTime,clearTimeout(this.timeoutHandle)}startClosingTimeout(t){this.timeoutHandle=window.setTimeout((()=>this.close(dt[this.transition],!1)),t)}checkSlottedButton(){this.hasSlottedButton=!!this.hostElement.querySelector("[slot='button']")}componentWillLoad(){this.validateAutoclose(),this.checkSlottedButton(),this.percentage=0}componentDidLoad(){this.startTime=Date.now(),this.autoclose&&(this.pauseonfocusloss&&document.addEventListener("visibilitychange",this.visibilityChangeEventHandler),this.transition||this.startClosingTimeout(this.autoclose)),this.isdraggable&&this.handleSlideOutDragAnimation()}render(){return n(o,{key:"cb958b060a71a07a4ecce7638880632a729b244e",style:{"--percentuale":this.percentage+"%"},class:{[this.transition]:!!this.transition,[this.type]:!!this.type},onAnimationEnd:t=>{this.autoclose&&t.animationName.includes("slidein")&&this.startClosingTimeout(this.autoclose),t.animationName.includes("slideout")&&this.hostElement.parentNode.removeChild(this.hostElement)}},n("div",{key:"bb0c924c4bf765c3c5b10497a705b46ea9355e57",class:"toast-notification-container"},n("div",{key:"d4c0c26704b32f411c0c2d31fa76d870869fca20",class:"toast-notification-content"},n("div",{key:"e8e4ed45ff772f585df2c64211e931d27fe65605",class:"toast-notification-text"},this.heading&&n("span",{key:"3498d097acea2e76513990226b9e1a25f82dcf36",class:"title"},this.heading),n("span",{key:"ce6794321d893ed41fbe155326b3e24d7768923b",class:"message"},n("slot",{key:"5af5d1d7a6ebb52ac2e866443a07af15488043be",name:"message"},this.message&&n("span",{key:"e9a525bb1342fb801a96aa6b9c81b485c0e0ddf9",innerHTML:ut.sanitize(this.message)})))),n("div",{key:"d1505e5111a6e9886847828dfa0007273017536b",class:"button-container",hidden:!this.hasSlottedButton},n("slot",{key:"fd1e6eda846a9351058b0b9103f1564bd7641a04",name:"button",onSlotchange:()=>this.checkSlottedButton()}))),this.closebutton&&n("button",{key:"57243b952bc95fd15669fa39ac43848e652559f6",class:"close-button","aria-label":"Chiudi notifica",onClick:()=>this.close(dt[this.transition],!0),onKeyDown:t=>{t.code!=a.SPACE&&t.code!=a.ENTER||(t.preventDefault(),this.close(dt[this.transition],!0))}},n("z-icon",{key:"5c88075aa5be21bf3e8838701473793fe5e04dfe",name:"multiply-circled"}))))}get hostElement(){return this}static get watchers(){return{isdraggable:[{watchPropIsdraggable:0}],autoclose:[{watchPropAutoclose:0}],pauseonfocusloss:[{watchPropPauseonfocusloss:0}]}}static get style(){return":host{--percentuale:0;display:flex;width:100%;min-width:200px;max-width:100dvw;box-sizing:border-box;background:var(--color-surface01);border-radius:var(--border-size-large);box-shadow:var(--shadow-3);color:var(--color-default-text);fill:var(--color-primary01-icon);font-family:var(--font-family-sans);font-size:var(--font-size-2);font-weight:var(--font-rg)}:host(.slide-in-left){animation:slideinleft 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-right){animation:slideinright 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-down){animation:slideindown 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-up){animation:slideinup 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-left){animation:slideoutleft 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-right){animation:slideoutright 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-down){animation:slideoutdown 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-up){animation:slideoutup 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}.toast-notification-container{display:flex;width:100%;align-items:baseline;justify-content:space-between;padding:calc(var(--space-unit) * 2);border-radius:var(--border-radius);gap:calc(var(--space-unit) * 2)}.toast-notification-content{display:flex;width:100%;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:calc(var(--space-unit) * 2)}.toast-notification-content .toast-notification-text{color:inherit;letter-spacing:0.16px;line-height:1.25rem}.toast-notification-content .toast-notification-text .title{margin-right:calc(var(--space-unit) / 2);font-weight:var(--font-sb)}.close-button{height:1.125rem;padding:0;border:none;background-color:transparent;cursor:pointer}.close-button z-icon{--z-icon-width:1.125rem;--z-icon-height:1.125rem;display:inline-block;height:1.25rem}.close-button:focus:focus-visible{border-radius:50%;box-shadow:var(--shadow-focus-primary);outline:none}:host(.dark){background:var(--color-surface05);color:var(--color-text-inverse);fill:var(--color-inverse-icon)}:host(.dark) .close-button:focus:focus-visible{box-shadow:0 0 0 2px var(--gray900), 0 0 2px 5px var(--blue25)}:host(.accent){background:var(--color-primary01)}:host(.error){background:var(--color-default-error)}:host(.success){background:var(--color-default-success)}:host(.warning){background:var(--color-default-warning)}:host(.accent),:host(.error),:host(.success){color:var(--color-text-inverse);fill:var(--color-inverse-icon)}:host(.warning) .close-button{fill:var(--color-default-icon)}@media (min-width: 768px){:host{width:fit-content;max-width:50vw}.toast-notification-content{flex-wrap:nowrap}}@media (min-width: 1366px){:host{max-width:33vw}}@keyframes slideinleft{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes slideinright{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes slideinup{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slideindown{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slideoutleft{0%{opacity:calc(100% - var(--percentuale));transform:translateX(var(--percentuale))}100%{opacity:0;transform:translateX(-100%)}}@keyframes slideoutright{0%{opacity:calc(100% - var(--percentuale));transform:translateX(var(--percentuale))}100%{opacity:0;transform:translateX(100%)}}@keyframes slideoutup{0%{opacity:1;transform:translateY(var(--percentuale))}100%{opacity:0;transform:translateY(-100%)}}@keyframes slideoutdown{0%{opacity:1;transform:translateY(var(--percentuale))}100%{opacity:0;transform:translateY(100%)}}"}},[257,"z-toast-notification",{heading:[1],message:[1],closebutton:[4],autoclose:[2],pauseonfocusloss:[4],type:[1],isdraggable:[4],draggablepercentage:[2],transition:[1],percentage:[32],hasSlottedButton:[32]},void 0,{isdraggable:[{watchPropIsdraggable:0}],autoclose:[{watchPropAutoclose:0}],pauseonfocusloss:[{watchPropPauseonfocusloss:0}]}]),mt=pt,gt=function(){"undefined"!=typeof customElements&&["z-toast-notification","z-icon"].forEach((t=>{switch(t){case"z-toast-notification":customElements.get(r(t))||customElements.define(r(t),pt);break;case"z-icon":customElements.get(r(t))||u()}}))};export{mt as ZToastNotification,gt as defineCustomElement}
@@ -1 +1 @@
1
- import{proxyCustomElement as o,HTMLElement as r,createEvent as t,h as e,transformTag as i}from"@stencil/core/internal/client";import{d as a}from"./index3.js";const s=o(class extends r{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.toggleClick=t(this,"toggleClick",7),this.isdisabled=!1,this.opened=!1,this.ariaLabel=""}emitToggleClick(){this.isdisabled||(this.opened=!this.opened,this.toggleClick.emit(this.opened))}render(){return e("button",{key:"246d3cb54f0af334717c38005e7494388420e2fd",tabindex:this.avoidclick?"-1":"0",class:{isopen:this.opened,"avoid-clicks":this.avoidclick},disabled:this.isdisabled,"aria-expanded":this.opened?"true":"false","aria-label":this.ariaLabel,onClick:()=>this.emitToggleClick()},e("z-icon",{key:"a971c5521659db9d407f39592907e9ad9e755cf5",name:this.opened?"chevron-down":"chevron-up",width:16,height:16}),this.label)}static get style(){return"button{display:flex;height:36px;align-items:center;padding-right:calc(var(--space-unit) * 2);padding-left:0;border:var(--border-size-medium) solid;border-color:transparent;background-color:var(--color-surface01);border-radius:var(--border-radius);box-shadow:var(--shadow-2);color:var(--color-primary01);cursor:pointer;fill:var(--color-primary01);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);outline:none;text-transform:uppercase}button::-moz-focus-inner{border:0}button:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary)}button:focus{box-shadow:var(--shadow-focus-primary)}button:active{border-color:var(--color-pressed-primary);box-shadow:var(--shadow-2);color:var(--color-pressed-primary);fill:var(--color-pressed-primary)}button:disabled{color:var(--color-disabled03);fill:var(--color-disabled03)}z-icon{display:inline-block;margin:0 var(--space-unit) 0 calc(var(--space-unit) * 2);transform:rotate(360deg);transition:all 200ms linear}button.isopen{top:-20px}button.avoid-clicks{pointer-events:none}"}},[1,"z-toggle-button",{label:[1],isdisabled:[4],avoidclick:[4],opened:[1028],ariaLabel:[1,"aria-label"]}]),n=s,l=function(){"undefined"!=typeof customElements&&["z-toggle-button","z-icon"].forEach((o=>{switch(o){case"z-toggle-button":customElements.get(i(o))||customElements.define(i(o),s);break;case"z-icon":customElements.get(i(o))||a()}}))};export{n as ZToggleButton,l as defineCustomElement}
1
+ import{proxyCustomElement as o,HTMLElement as r,createEvent as e,h as t,transformTag as i}from"@stencil/core/internal/client";import{d as a}from"./index3.js";const s=o(class extends r{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.toggleClick=e(this,"toggleClick",7),this.isdisabled=!1,this.opened=!1,this.ariaLabel=""}emitToggleClick(){this.isdisabled||(this.opened=!this.opened,this.toggleClick.emit(this.opened))}render(){return t("button",{key:"12715211c2a202659aebbbafce50ef723523e5b5",tabindex:this.avoidclick?"-1":"0",class:{isopen:this.opened,"avoid-clicks":this.avoidclick},disabled:this.isdisabled,"aria-expanded":this.opened?"true":"false","aria-label":this.ariaLabel,onClick:()=>this.emitToggleClick()},t("z-icon",{key:"2e6c9c85c5728eb03116da7b58f13da76abd1cf1",name:this.opened?"chevron-down":"chevron-up",width:16,height:16}),this.label)}static get style(){return"button{display:flex;height:36px;align-items:center;padding-right:calc(var(--space-unit) * 2);padding-left:0;border:var(--border-size-medium) solid;border-color:transparent;background-color:var(--color-surface01);border-radius:var(--border-radius);box-shadow:var(--shadow-2);color:var(--color-primary01);cursor:pointer;fill:var(--color-primary01);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);outline:none;text-transform:uppercase}button::-moz-focus-inner{border:0}button:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary)}button:focus{box-shadow:var(--shadow-focus-primary)}button:active{border-color:var(--color-pressed-primary);box-shadow:var(--shadow-2);color:var(--color-pressed-primary);fill:var(--color-pressed-primary)}button:disabled{color:var(--color-disabled03);fill:var(--color-disabled03)}z-icon{display:inline-block;margin:0 var(--space-unit) 0 calc(var(--space-unit) * 2);transform:rotate(360deg);transition:all 200ms linear}button.isopen{top:-20px}button.avoid-clicks{pointer-events:none}"}},[1,"z-toggle-button",{label:[1],isdisabled:[4],avoidclick:[4],opened:[1028],ariaLabel:[1,"aria-label"]}]),n=s,l=function(){"undefined"!=typeof customElements&&["z-toggle-button","z-icon"].forEach((o=>{switch(o){case"z-toggle-button":customElements.get(i(o))||customElements.define(i(o),s);break;case"z-icon":customElements.get(i(o))||a()}}))};export{n as ZToggleButton,l as defineCustomElement}
@@ -1 +1 @@
1
- import{proxyCustomElement as e,HTMLElement as t,createEvent as s,h as c,Host as i,transformTag as l}from"@stencil/core/internal/client";import{k as o}from"./index2.js";import{r as a}from"./utils.js";import{d as r}from"./index3.js";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.toggleClick=s(this,"toggleClick",7),this.disabled=!1,this.labelPosition=o.LEFT,this.checked=!1,this.htmlid="toggle-switch-id-"+a()}emitToggleClick(){this.toggleClick.emit({id:this.htmlid,checked:this.checked})}handleClick(e){this.disabled||(this.checked=e.target.checked,this.emitToggleClick())}render(){return c(i,{key:"a71496b0436b37aaf6b0af879bae53be6a627efa"},c("input",{key:"716eec97479d25139fe00b144a58d26941ded2a3",id:this.htmlid,type:"checkbox",checked:this.checked,disabled:this.disabled,onChange:this.handleClick.bind(this)}),c("label",{key:"8907147d34ed7b1c944936e1c3e73519ef77f00b",htmlFor:this.htmlid,class:{[this.labelPosition]:!0,disabled:this.disabled}},c("span",{key:"c3a9dc659fee0c089799a011568b2df707f62c34"},c("slot",{key:"68be5cec64b7d973bd40d59be54580170bd7ec5e"})),c("span",{key:"206640ff4c480d2923f8c99b80093b8bf08ee68a",class:{container:!0,disabled:this.disabled,checked:this.checked}},c("span",{key:"31d158040dfc2cb2e605ee5271cd1b992016c1e2",class:"circle"},this.checked&&c("z-icon",{key:"2d45f7c22746d2db091e0ee2096b3f580064e8aa",width:12,height:12,name:"checkmark"})))))}static get style(){return'.sc-z-toggle-switch-h{position:relative;display:inline-flex;font-family:var(--font-family-sans);font-weight:var(--font-rg)}label.sc-z-toggle-switch{display:flex;flex-direction:row;align-items:center;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{color:var(--color-default-text);letter-spacing:0}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{position:relative;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 4);height:18px;align-items:center;background-color:var(--gray500);border-radius:var(--space-unit);color:var(--gray500);cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){box-shadow:var(--shadow-focus-primary);outline:none}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{position:absolute;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);align-items:center;justify-content:center;margin:0;background-color:var(--color-white);border-radius:7px;box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type="checkbox"].sc-z-toggle-switch{position:absolute;z-index:-1;opacity:0;pointer-events:none}'}},[262,"z-toggle-switch",{disabled:[516],labelPosition:[513,"label-position"],checked:[1028],htmlid:[1]}]),g=n,h=function(){"undefined"!=typeof customElements&&["z-toggle-switch","z-icon"].forEach((e=>{switch(e){case"z-toggle-switch":customElements.get(l(e))||customElements.define(l(e),n);break;case"z-icon":customElements.get(l(e))||r()}}))};export{g as ZToggleSwitch,h as defineCustomElement}
1
+ import{proxyCustomElement as e,HTMLElement as t,createEvent as c,h as s,Host as i,transformTag as a}from"@stencil/core/internal/client";import{k as l}from"./index2.js";import{r as o}from"./utils.js";import{d as r}from"./index3.js";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.toggleClick=c(this,"toggleClick",7),this.disabled=!1,this.labelPosition=l.LEFT,this.checked=!1,this.htmlid="toggle-switch-id-"+o()}emitToggleClick(){this.toggleClick.emit({id:this.htmlid,checked:this.checked})}handleClick(e){this.disabled||(this.checked=e.target.checked,this.emitToggleClick())}render(){return s(i,{key:"56f9d8ff6eb13dfa9c113cbf6c0938e141d55c67"},s("input",{key:"3417b90e089286fad9bccb61a5f4b39ae4168f91",id:this.htmlid,type:"checkbox",checked:this.checked,disabled:this.disabled,onChange:this.handleClick.bind(this)}),s("label",{key:"ddd2fe347095d9551d8881c83a9a88f2a76baa75",htmlFor:this.htmlid,class:{[this.labelPosition]:!0,disabled:this.disabled}},s("span",{key:"8532e35c90ac967e7bd5ba19b6cfb427e30a8a9e"},s("slot",{key:"013eb019d7033bdf49fc2ca79ec647dc47aa5516"})),s("span",{key:"4aa4b5abb12d819bb253c68f8315baf89935dd70",class:{container:!0,disabled:this.disabled,checked:this.checked}},s("span",{key:"1379aa626ccb15cc65337fd09063865051078dfb",class:"circle"},this.checked&&s("z-icon",{key:"c69f5f85fd886ae9ab30a559a6db66c1ad4f1db7",width:12,height:12,name:"checkmark"})))))}static get style(){return'.sc-z-toggle-switch-h{position:relative;display:inline-flex;font-family:var(--font-family-sans);font-weight:var(--font-rg)}label.sc-z-toggle-switch{display:flex;flex-direction:row;align-items:center;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{color:var(--color-default-text);letter-spacing:0}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{position:relative;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 4);height:18px;align-items:center;background-color:var(--gray500);border-radius:var(--space-unit);color:var(--gray500);cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){box-shadow:var(--shadow-focus-primary);outline:none}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{position:absolute;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);align-items:center;justify-content:center;margin:0;background-color:var(--color-white);border-radius:7px;box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type="checkbox"].sc-z-toggle-switch{position:absolute;z-index:-1;opacity:0;pointer-events:none}'}},[262,"z-toggle-switch",{disabled:[516],labelPosition:[513,"label-position"],checked:[1028],htmlid:[1]}]),g=n,h=function(){"undefined"!=typeof customElements&&["z-toggle-switch","z-icon"].forEach((e=>{switch(e){case"z-toggle-switch":customElements.get(a(e))||customElements.define(a(e),n);break;case"z-icon":customElements.get(a(e))||r()}}))};export{g as ZToggleSwitch,h as defineCustomElement}
@@ -1 +1 @@
1
- import{proxyCustomElement as t,HTMLElement as e,createEvent as i,h as o,Host as n,transformTag as s}from"@stencil/core/internal/client";import{P as a,g as r}from"./index2.js";import{a as l}from"./utils.js";import{d as h}from"./index3.js";import{d}from"./index17.js";import{d as f}from"./index27.js";const b=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.toggleSubmenu=i(this,"toggleSubmenu",7),this.toggleTooltip=i(this,"toggleTooltip",7),this.tooltipPosition=a.TOP,this.active=!1,this.disabled=!1,this.open=!1,this.tooltipOpen=!1,this.hasSlottedContent=!1,this.isMobile=!1,this.hasNestedOpenTools=!1,this.isNested=!1,this.handleTooltipOpen=t=>{this.tooltip&&!this.open&&this.buttonRef.contains(t.target)&&(clearTimeout(this.hoverDelay),this.hoverDelay=setTimeout((()=>{this.tooltipOpen=!0}),1e3))},this.handleTooltipClose=t=>{var e;this.tooltip&&(null===(e=t.relatedTarget)||void 0===e?void 0:e.closest("z-tooltip"))!==this.tooltipRef&&(clearTimeout(this.hoverDelay),this.tooltipOpen=!1)},this.handleClick=()=>{if(!this.disabled&&this.hasSlottedContent&&(this.open=!this.open,this.open)){const t=this.hostElement.querySelector(":scope > z-color-picker");if(t)return void t.setFocus();const e=this.hostElement.querySelector(":scope > z-toolbar z-tool[active]:not(:disabled)")||this.hostElement.querySelector(":scope > z-toolbar z-tool:not(:disabled)");null==e||e.setFocus()}},this.onTooltipOpenChange=t=>{t.target!==this.tooltipRef&&(this.tooltipOpen=t.detail.open)}}handleOpenChange(){this.toggleSubmenu.emit(this.open)}handleTooltipOpenChange(){this.toggleTooltip.emit(this.tooltipOpen)}handleKeyDown(t){if(this.open&&!this.hasNestedOpenTools)switch(t.key){case r.ESC:t.stopPropagation(),this.open=!1,this.setFocus();break;case r.TAB:t.shiftKey&&t.target.closest("z-tool:not(:scope)")===this.hostElement&&(this.open=!1)}}onOutsideClick(t){const e=t.composedPath()[0];!this.open||l(this.hostElement,e)||this.hasNestedOpenTools||(this.open=!1)}onNestedToolToggle(t){t.target!==this.hostElement&&(this.hasNestedOpenTools=!0===t.detail||Array.from(this.hostElement.querySelectorAll("z-tool")).some((t=>t.open)))}handleColorSelected(t){Array.from(this.hostElement.children).includes(t.target)&&(this.indicatorColor=t.detail,this.open=!1,this.setFocus())}handleExternalFocusin(t){l(this.hostElement,t.target)||(this.open=!1)}async setFocus(){this.disabled||setTimeout((()=>{var t;null===(t=this.buttonRef)||void 0===t||t.focus()}),50)}async setTabIndex(t){this.buttonRef&&(this.buttonRef.tabIndex=this.disabled?-1:t)}async closeTooltip(){clearTimeout(this.hoverDelay),this.tooltipOpen=!1}componentWillLoad(){this.hasSlottedContent=this.hostElement.children.length>0,this.isNested=!!this.hostElement.closest("z-tool:not(:scope)"),this.mainToolbar=this.hostElement.closest("z-toolbar:not(z-toolbar z-toolbar)"),this.hasNestedOpenTools=!!this.hostElement.querySelector("z-tool[open]"),this.mql=matchMedia("(max-width: 767px)"),this.onMobileViewChange=t=>this.isMobile=t.matches,this.mql.addEventListener("change",this.onMobileViewChange),this.isMobile=this.mql.matches}disconnectedCallback(){var t;clearTimeout(this.hoverDelay),null===(t=this.mql)||void 0===t||t.removeEventListener("change",this.onMobileViewChange)}render(){return o(n,{key:"1a87f70e20dca23bc4207f03aa1cd933c5fa668e",class:{"z-tool-tooltip-open":this.tooltipOpen}},o("button",{key:"df7f4ad8a47dee955b9c4c249354fa114410409d",class:"z-tool",type:"button",ref:t=>this.buttonRef=t,"aria-pressed":this.hasSlottedContent?void 0:this.active?"true":"false","aria-expanded":this.hasSlottedContent?this.open?"true":"false":void 0,"aria-haspopup":this.hasSlottedContent?"true":void 0,"aria-label":this.htmlAriaLabel||this.tooltip||void 0,disabled:this.disabled,onClick:this.handleClick,onMouseEnter:this.handleTooltipOpen,onMouseLeave:this.handleTooltipClose,onFocus:this.handleTooltipOpen,onBlur:this.handleTooltipClose},o("z-icon",{key:"43bd668b9d58377caa755e7eeaf68e3381b036f0",ref:t=>this.iconRef=t,name:this.icon,indicatorColor:this.indicatorColor})),this.tooltip&&o("z-tooltip",{key:"a86766b86ee4cf878f5a48f48e135b8cd3092f3a",class:"z-tool-tooltip",ref:t=>this.tooltipRef=t,bindTo:this.iconRef,open:this.tooltipOpen&&!this.open,position:this.isNested?a.BOTTOM:this.tooltipPosition,dark:!0,onMouseLeave:this.handleTooltipClose,onBlur:this.handleTooltipClose,onOpenChange:this.onTooltipOpenChange},o("span",{key:"91ddd32599a6a6a3b4fbf34fb69fdabff0dbbda9",class:"body-4"},this.tooltip)),this.hasSlottedContent&&o("z-popover",{key:"ec7b937f451db4a1b206b386d6f199b5cf71117d",class:"z-tool-submenu",open:this.open,bindTo:this.isMobile&&this.mainToolbar?this.mainToolbar:this.hostElement,center:!0,closable:!1,position:this.isMobile?a.TOP:a.BOTTOM},o("slot",{key:"85e016cb92ce6c7356afa7f93bbdd278ab3ff88e"})))}get hostElement(){return this}static get watchers(){return{open:[{handleOpenChange:0}],tooltipOpen:[{handleTooltipOpenChange:0}]}}static get style(){return':host,*{box-sizing:border-box}.z-tool{--z-tool-size:calc(var(--space-unit) * 5.5);--z-tool-icon-size:calc(var(--space-unit) * 2.5);position:relative;display:inline-flex;width:var(--z-tool-size);height:var(--z-tool-size);align-items:center;justify-content:center;padding:0;border:none;margin:0;background-color:var(--color-surface01);border-radius:var(--border-radius);cursor:pointer}:host(:is([active],[open])) .z-tool{box-shadow:inset 0 0 0 2px var(--color-primary01)}:host([open]) .z-tool{background:var(--color-primary03)}@media (hover: hover){:host(:hover),:host(.z-tool-tooltip-open){z-index:1}:host(:not([disabled])) .z-tool:hover{background-color:var(--color-primary03)}}.z-tool:focus:focus-visible{background-color:var(--color-primary03);outline:none}z-icon{--z-icon-width:var(--z-tool-icon-size);--z-icon-height:var(--z-tool-icon-size);display:block;fill:var(--color-default-icon)}:host([disabled]) .z-tool{color:var(--color-disabled01-icon);cursor:not-allowed}:host([disabled]) z-icon{fill:var(--color-disabled01-icon)}.z-tool-tooltip{--z-tooltip-padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);--z-tooltip-shadow-filter:drop-shadow(0 4px 8px var(--shadow-color-base));position:relative;z-index:2;font-family:var(--font-family-sans);white-space:nowrap}.z-tool-submenu{z-index:3;border-radius:calc(var(--border-radius) + var(--border-size-small))}.z-tool-submenu ::slotted(z-color-picker){border:var(--border-size-small) solid var(--color-surface03);border-radius:var(--border-radius)}@media (max-width: 767px) and (hover: none){.z-tool-tooltip{display:none !important}}:root{--font-family-sans:"IBM Plex Sans", sans-serif;--font-family-serif:"IBM Plex Serif", serif;--font-lt:300;--font-rg:400;--font-sb:600;--font-bd:700;--font-size-1:0.75rem;--font-size-2:0.875rem;--font-size-3:1rem;--font-size-4:1.125rem;--font-size-5:1.25rem;--font-size-6:1.5rem;--font-size-7:1.75rem;--font-size-8:2rem;--font-size-9:2.25rem;--font-size-10:2.625rem;--font-size-11:3rem;--font-size-12:3.375rem;--font-size-13:3.75rem;--font-size-14:4.25rem;--font-size-15:4.75rem;--font-size-16:5.25rem;--font-size-17:5.75rem;--section-title-1:var(--font-sb) var(--font-size-11) / 1.083 var(--font-family-serif);--section-title-2:var(--font-sb) var(--font-size-10) / 1.142 var(--font-family-serif);--section-title-3:var(--font-sb) var(--font-size-9) / 1.222 var(--font-family-serif);--section-title-4:var(--font-sb) var(--font-size-8) / 1.25 var(--font-family-serif);--section-title-5:var(--font-sb) var(--font-size-7) / 1.2857 var(--font-family-serif);--section-title-6:var(--font-sb) var(--font-size-6) / 1.333 var(--font-family-serif)}.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-3,.heading-3-sb,.heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-4,.heading-4-sb,.heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-1,.body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-2,.body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.body-3,.body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.body-4,.body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.body-5,.body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.interactive-1,.interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.interactive-2,.interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.interactive-3,.interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.helper,.helper-sb{font-size:var(--font-size-1);font-style:italic;font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.section-title-1{font:var(--section-title-1)}.section-title-2{font:var(--section-title-2)}.section-title-3{font:var(--section-title-3)}.section-title-4{font:var(--section-title-4)}.section-title-5{font:var(--section-title-5)}.section-title-6{font:var(--section-title-6)}@media (min-width: 1152px){.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}}@media (max-width: 767px){.mobile-heading-1,.mobile-heading-1-sb,.mobile-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.mobile-heading-2,.mobile-heading-2-sb,.mobile-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-3,.mobile-heading-3-sb,.mobile-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-4,.mobile-heading-4-sb,.mobile-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-1,.mobile-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-2,.mobile-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.mobile-body-3,.mobile-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-body-4,.mobile-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-body-5,.mobile-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-interactive-1,.mobile-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-interactive-2,.mobile-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-interactive-3,.mobile-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-section-title-1{font:var(--section-title-1)}.mobile-section-title-2{font:var(--section-title-2)}.mobile-section-title-3{font:var(--section-title-3)}.mobile-section-title-4{font:var(--section-title-4)}.mobile-section-title-5{font:var(--section-title-5)}.mobile-section-title-6{font:var(--section-title-6)}.mobile-heading-1-lt,.mobile-heading-2-lt,.mobile-heading-3-lt,.mobile-heading-4-lt{font-weight:var(--font-lt)}.mobile-heading-1-sb,.mobile-heading-2-sb,.mobile-heading-3-sb,.mobile-heading-4-sb,.mobile-body-1-sb,.mobile-body-2-sb,.mobile-body-3-sb,.mobile-body-4-sb,.mobile-body-5-sb,.mobile-interactive-1-sb,.mobile-interactive-2-sb,.mobile-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 768px) and (max-width: 1151px){.tablet-heading-1,.tablet-heading-1-sb,.tablet-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.tablet-heading-2,.tablet-heading-2-sb,.tablet-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-3,.tablet-heading-3-sb,.tablet-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-4,.tablet-heading-4-sb,.tablet-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-1,.tablet-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-2,.tablet-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.tablet-body-3,.tablet-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-body-4,.tablet-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-body-5,.tablet-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-interactive-1,.tablet-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-interactive-2,.tablet-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-interactive-3,.tablet-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-section-title-1{font:var(--section-title-1)}.tablet-section-title-2{font:var(--section-title-2)}.tablet-section-title-3{font:var(--section-title-3)}.tablet-section-title-4{font:var(--section-title-4)}.tablet-section-title-5{font:var(--section-title-5)}.tablet-section-title-6{font:var(--section-title-6)}.tablet-heading-1-lt,.tablet-heading-2-lt,.tablet-heading-3-lt,.tablet-heading-4-lt{font-weight:var(--font-lt)}.tablet-heading-1-sb,.tablet-heading-2-sb,.tablet-heading-3-sb,.tablet-heading-4-sb,.tablet-body-1-sb,.tablet-body-2-sb,.tablet-body-3-sb,.tablet-body-4-sb,.tablet-body-5-sb,.tablet-interactive-1-sb,.tablet-interactive-2-sb,.tablet-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1152px) and (max-width: 1365px){.desktop-heading-1,.desktop-heading-1-sb,.desktop-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.desktop-heading-2,.desktop-heading-2-sb,.desktop-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.desktop-heading-3,.desktop-heading-3-sb,.desktop-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.desktop-heading-4,.desktop-heading-4-sb,.desktop-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-1,.desktop-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-2,.desktop-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.desktop-body-3,.desktop-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-body-4,.desktop-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-body-5,.desktop-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-interactive-1,.desktop-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-interactive-2,.desktop-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-interactive-3,.desktop-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-section-title-1{font:var(--section-title-1)}.desktop-section-title-2{font:var(--section-title-2)}.desktop-section-title-3{font:var(--section-title-3)}.desktop-section-title-4{font:var(--section-title-4)}.desktop-section-title-5{font:var(--section-title-5)}.desktop-section-title-6{font:var(--section-title-6)}.desktop-heading-1-lt,.desktop-heading-2-lt,.desktop-heading-3-lt,.desktop-heading-4-lt{font-weight:var(--font-lt)}.desktop-heading-1-sb,.desktop-heading-2-sb,.desktop-heading-3-sb,.desktop-heading-4-sb,.desktop-body-1-sb,.desktop-body-2-sb,.desktop-body-3-sb,.desktop-body-4-sb,.desktop-body-5-sb,.desktop-interactive-1-sb,.desktop-interactive-2-sb,.desktop-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1366px){.wide-heading-1,.wide-heading-1-sb,.wide-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.wide-heading-2,.wide-heading-2-sb,.wide-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.wide-heading-3,.wide-heading-3-sb,.wide-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.wide-heading-4,.wide-heading-4-sb,.wide-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-1,.wide-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-2,.wide-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.wide-body-3,.wide-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-body-4,.wide-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-body-5,.wide-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-interactive-1,.wide-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-interactive-2,.wide-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-interactive-3,.wide-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-section-title-1{font:var(--section-title-1)}.wide-section-title-2{font:var(--section-title-2)}.wide-section-title-3{font:var(--section-title-3)}.wide-section-title-4{font:var(--section-title-4)}.wide-section-title-5{font:var(--section-title-5)}.wide-section-title-6{font:var(--section-title-6)}.wide-heading-1-lt,.wide-heading-2-lt,.wide-heading-3-lt,.wide-heading-4-lt{font-weight:var(--font-lt)}.wide-heading-1-sb,.wide-heading-2-sb,.wide-heading-3-sb,.wide-heading-4-sb,.wide-body-1-sb,.wide-body-2-sb,.wide-body-3-sb,.wide-body-4-sb,.wide-body-5-sb,.wide-interactive-1-sb,.wide-interactive-2-sb,.wide-interactive-3-sb{font-weight:var(--font-sb)}}.heading-1-lt,.heading-2-lt,.heading-3-lt,.heading-4-lt{font-weight:var(--font-lt)}.heading-1-sb,.heading-2-sb,.heading-3-sb,.heading-4-sb,.body-1-sb,.body-2-sb,.body-3-sb,.body-4-sb,.body-5-sb,.interactive-1-sb,.interactive-2-sb,.interactive-3-sb,.helper-sb{font-weight:var(--font-sb)}'}},[257,"z-tool",{icon:[1],tooltip:[1],tooltipPosition:[1,"tooltip-position"],htmlAriaLabel:[1,"html-aria-label"],active:[516],disabled:[516],open:[1540],indicatorColor:[1025,"indicator-color"],tooltipOpen:[32],hasSlottedContent:[32],isMobile:[32],hasNestedOpenTools:[32],setFocus:[64],setTabIndex:[64],closeTooltip:[64]},[[0,"keydown","handleKeyDown"],[16,"click","onOutsideClick"],[0,"toggleSubmenu","onNestedToolToggle"],[0,"colorSelected","handleColorSelected"],[17,"focusin","handleExternalFocusin"]],{open:[{handleOpenChange:0}],tooltipOpen:[{handleTooltipOpenChange:0}]}]),g=b,c=function(){"undefined"!=typeof customElements&&["z-tool","z-icon","z-popover","z-tooltip"].forEach((t=>{switch(t){case"z-tool":customElements.get(s(t))||customElements.define(s(t),b);break;case"z-icon":customElements.get(s(t))||h();break;case"z-popover":customElements.get(s(t))||d();break;case"z-tooltip":customElements.get(s(t))||f()}}))};export{g as ZTool,c as defineCustomElement}
1
+ import{proxyCustomElement as t,HTMLElement as e,createEvent as i,h as o,Host as n,transformTag as s}from"@stencil/core/internal/client";import{P as a,g as r}from"./index2.js";import{a as l}from"./utils.js";import{d as h}from"./index3.js";import{d}from"./index17.js";import{d as f}from"./index27.js";const b=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.toggleSubmenu=i(this,"toggleSubmenu",7),this.toggleTooltip=i(this,"toggleTooltip",7),this.tooltipPosition=a.TOP,this.active=!1,this.disabled=!1,this.open=!1,this.tooltipOpen=!1,this.hasSlottedContent=!1,this.isMobile=!1,this.hasNestedOpenTools=!1,this.isNested=!1,this.handleTooltipOpen=t=>{this.tooltip&&!this.open&&this.buttonRef.contains(t.target)&&(clearTimeout(this.hoverDelay),this.hoverDelay=setTimeout((()=>{this.tooltipOpen=!0}),1e3))},this.handleTooltipClose=t=>{var e;this.tooltip&&(null===(e=t.relatedTarget)||void 0===e?void 0:e.closest("z-tooltip"))!==this.tooltipRef&&(clearTimeout(this.hoverDelay),this.tooltipOpen=!1)},this.handleClick=()=>{if(!this.disabled&&this.hasSlottedContent&&(this.open=!this.open,this.open)){const t=this.hostElement.querySelector(":scope > z-color-picker");if(t)return void t.setFocus();const e=this.hostElement.querySelector(":scope > z-toolbar z-tool[active]:not(:disabled)")||this.hostElement.querySelector(":scope > z-toolbar z-tool:not(:disabled)");null==e||e.setFocus()}},this.onTooltipOpenChange=t=>{t.target!==this.tooltipRef&&(this.tooltipOpen=t.detail.open)}}handleOpenChange(){this.toggleSubmenu.emit(this.open)}handleTooltipOpenChange(){this.toggleTooltip.emit(this.tooltipOpen)}handleKeyDown(t){if(this.open&&!this.hasNestedOpenTools)switch(t.key){case r.ESC:t.stopPropagation(),this.open=!1,this.setFocus();break;case r.TAB:t.shiftKey&&t.target.closest("z-tool:not(:scope)")===this.hostElement&&(this.open=!1)}}onOutsideClick(t){const e=t.composedPath()[0];!this.open||l(this.hostElement,e)||this.hasNestedOpenTools||(this.open=!1)}onNestedToolToggle(t){t.target!==this.hostElement&&(this.hasNestedOpenTools=!0===t.detail||Array.from(this.hostElement.querySelectorAll("z-tool")).some((t=>t.open)))}handleColorSelected(t){Array.from(this.hostElement.children).includes(t.target)&&(this.indicatorColor=t.detail,this.open=!1,this.setFocus())}handleExternalFocusin(t){l(this.hostElement,t.target)||(this.open=!1)}async setFocus(){this.disabled||setTimeout((()=>{var t;null===(t=this.buttonRef)||void 0===t||t.focus()}),50)}async setTabIndex(t){this.buttonRef&&(this.buttonRef.tabIndex=this.disabled?-1:t)}async closeTooltip(){clearTimeout(this.hoverDelay),this.tooltipOpen=!1}componentWillLoad(){this.hasSlottedContent=this.hostElement.children.length>0,this.isNested=!!this.hostElement.closest("z-tool:not(:scope)"),this.mainToolbar=this.hostElement.closest("z-toolbar:not(z-toolbar z-toolbar)"),this.hasNestedOpenTools=!!this.hostElement.querySelector("z-tool[open]"),this.mql=matchMedia("(max-width: 767px)"),this.onMobileViewChange=t=>this.isMobile=t.matches,this.mql.addEventListener("change",this.onMobileViewChange),this.isMobile=this.mql.matches}disconnectedCallback(){var t;clearTimeout(this.hoverDelay),null===(t=this.mql)||void 0===t||t.removeEventListener("change",this.onMobileViewChange)}render(){return o(n,{key:"5adf35d9c14bc55415a5f333f032d07e70c679ce",class:{"z-tool-tooltip-open":this.tooltipOpen}},o("button",{key:"9042104162bc039b37f109bac99f3213a3865f7f",class:"z-tool",type:"button",ref:t=>this.buttonRef=t,"aria-pressed":this.hasSlottedContent?void 0:this.active?"true":"false","aria-expanded":this.hasSlottedContent?this.open?"true":"false":void 0,"aria-haspopup":this.hasSlottedContent?"true":void 0,"aria-label":this.htmlAriaLabel||this.tooltip||void 0,disabled:this.disabled,onClick:this.handleClick,onMouseEnter:this.handleTooltipOpen,onMouseLeave:this.handleTooltipClose,onFocus:this.handleTooltipOpen,onBlur:this.handleTooltipClose},o("z-icon",{key:"21f9a4e4a429b3d4a8cc294195ebcec03baebdff",ref:t=>this.iconRef=t,name:this.icon,indicatorColor:this.indicatorColor})),this.tooltip&&o("z-tooltip",{key:"98d553c4bc74b15b5762284dd3f973086a5dc39c",class:"z-tool-tooltip",ref:t=>this.tooltipRef=t,bindTo:this.iconRef,open:this.tooltipOpen&&!this.open,position:this.isNested?a.BOTTOM:this.tooltipPosition,dark:!0,onMouseLeave:this.handleTooltipClose,onBlur:this.handleTooltipClose,onOpenChange:this.onTooltipOpenChange},o("span",{key:"ae88d5b59fe21ec1df190c3599042740c3a76634",class:"body-4"},this.tooltip)),this.hasSlottedContent&&o("z-popover",{key:"796d9040bbf935d87b0981d64d6e0404a36189b0",class:"z-tool-submenu",open:this.open,bindTo:this.isMobile&&this.mainToolbar?this.mainToolbar:this.hostElement,center:!0,closable:!1,position:this.isMobile?a.TOP:a.BOTTOM},o("slot",{key:"a16a3b105a1488373193752b3c9eeb2eab0dc0c2"})))}get hostElement(){return this}static get watchers(){return{open:[{handleOpenChange:0}],tooltipOpen:[{handleTooltipOpenChange:0}]}}static get style(){return':host,*{box-sizing:border-box}.z-tool{--z-tool-size:calc(var(--space-unit) * 5.5);--z-tool-icon-size:calc(var(--space-unit) * 2.5);position:relative;display:inline-flex;width:var(--z-tool-size);height:var(--z-tool-size);align-items:center;justify-content:center;padding:0;border:none;margin:0;background-color:var(--color-surface01);border-radius:var(--border-radius);cursor:pointer}:host(:is([active],[open])) .z-tool{box-shadow:inset 0 0 0 2px var(--color-primary01)}:host([open]) .z-tool{background:var(--color-primary03)}@media (hover: hover){:host(:hover),:host(.z-tool-tooltip-open){z-index:1}:host(:not([disabled])) .z-tool:hover{background-color:var(--color-primary03)}}.z-tool:focus:focus-visible{background-color:var(--color-primary03);outline:none}z-icon{--z-icon-width:var(--z-tool-icon-size);--z-icon-height:var(--z-tool-icon-size);display:block;fill:var(--color-default-icon)}:host([disabled]) .z-tool{color:var(--color-disabled01-icon);cursor:not-allowed}:host([disabled]) z-icon{fill:var(--color-disabled01-icon)}.z-tool-tooltip{--z-tooltip-padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);--z-tooltip-shadow-filter:drop-shadow(0 4px 8px var(--shadow-color-base));position:relative;z-index:2;font-family:var(--font-family-sans);white-space:nowrap}.z-tool-submenu{z-index:3;border-radius:calc(var(--border-radius) + var(--border-size-small))}.z-tool-submenu ::slotted(z-color-picker){border:var(--border-size-small) solid var(--color-surface03);border-radius:var(--border-radius)}@media (max-width: 767px) and (hover: none){.z-tool-tooltip{display:none !important}}:root{--font-family-sans:"IBM Plex Sans", sans-serif;--font-family-serif:"IBM Plex Serif", serif;--font-lt:300;--font-rg:400;--font-sb:600;--font-bd:700;--font-size-1:0.75rem;--font-size-2:0.875rem;--font-size-3:1rem;--font-size-4:1.125rem;--font-size-5:1.25rem;--font-size-6:1.5rem;--font-size-7:1.75rem;--font-size-8:2rem;--font-size-9:2.25rem;--font-size-10:2.625rem;--font-size-11:3rem;--font-size-12:3.375rem;--font-size-13:3.75rem;--font-size-14:4.25rem;--font-size-15:4.75rem;--font-size-16:5.25rem;--font-size-17:5.75rem;--section-title-1:var(--font-sb) var(--font-size-11) / 1.083 var(--font-family-serif);--section-title-2:var(--font-sb) var(--font-size-10) / 1.142 var(--font-family-serif);--section-title-3:var(--font-sb) var(--font-size-9) / 1.222 var(--font-family-serif);--section-title-4:var(--font-sb) var(--font-size-8) / 1.25 var(--font-family-serif);--section-title-5:var(--font-sb) var(--font-size-7) / 1.2857 var(--font-family-serif);--section-title-6:var(--font-sb) var(--font-size-6) / 1.333 var(--font-family-serif)}.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-3,.heading-3-sb,.heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-4,.heading-4-sb,.heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-1,.body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-2,.body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.body-3,.body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.body-4,.body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.body-5,.body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.interactive-1,.interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.interactive-2,.interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.interactive-3,.interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.helper,.helper-sb{font-size:var(--font-size-1);font-style:italic;font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.section-title-1{font:var(--section-title-1)}.section-title-2{font:var(--section-title-2)}.section-title-3{font:var(--section-title-3)}.section-title-4{font:var(--section-title-4)}.section-title-5{font:var(--section-title-5)}.section-title-6{font:var(--section-title-6)}@media (min-width: 1152px){.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}}@media (max-width: 767px){.mobile-heading-1,.mobile-heading-1-sb,.mobile-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.mobile-heading-2,.mobile-heading-2-sb,.mobile-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-3,.mobile-heading-3-sb,.mobile-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-4,.mobile-heading-4-sb,.mobile-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-1,.mobile-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-2,.mobile-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.mobile-body-3,.mobile-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-body-4,.mobile-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-body-5,.mobile-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-interactive-1,.mobile-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-interactive-2,.mobile-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-interactive-3,.mobile-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-section-title-1{font:var(--section-title-1)}.mobile-section-title-2{font:var(--section-title-2)}.mobile-section-title-3{font:var(--section-title-3)}.mobile-section-title-4{font:var(--section-title-4)}.mobile-section-title-5{font:var(--section-title-5)}.mobile-section-title-6{font:var(--section-title-6)}.mobile-heading-1-lt,.mobile-heading-2-lt,.mobile-heading-3-lt,.mobile-heading-4-lt{font-weight:var(--font-lt)}.mobile-heading-1-sb,.mobile-heading-2-sb,.mobile-heading-3-sb,.mobile-heading-4-sb,.mobile-body-1-sb,.mobile-body-2-sb,.mobile-body-3-sb,.mobile-body-4-sb,.mobile-body-5-sb,.mobile-interactive-1-sb,.mobile-interactive-2-sb,.mobile-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 768px) and (max-width: 1151px){.tablet-heading-1,.tablet-heading-1-sb,.tablet-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.tablet-heading-2,.tablet-heading-2-sb,.tablet-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-3,.tablet-heading-3-sb,.tablet-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-4,.tablet-heading-4-sb,.tablet-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-1,.tablet-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-2,.tablet-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.tablet-body-3,.tablet-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-body-4,.tablet-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-body-5,.tablet-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-interactive-1,.tablet-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-interactive-2,.tablet-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-interactive-3,.tablet-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-section-title-1{font:var(--section-title-1)}.tablet-section-title-2{font:var(--section-title-2)}.tablet-section-title-3{font:var(--section-title-3)}.tablet-section-title-4{font:var(--section-title-4)}.tablet-section-title-5{font:var(--section-title-5)}.tablet-section-title-6{font:var(--section-title-6)}.tablet-heading-1-lt,.tablet-heading-2-lt,.tablet-heading-3-lt,.tablet-heading-4-lt{font-weight:var(--font-lt)}.tablet-heading-1-sb,.tablet-heading-2-sb,.tablet-heading-3-sb,.tablet-heading-4-sb,.tablet-body-1-sb,.tablet-body-2-sb,.tablet-body-3-sb,.tablet-body-4-sb,.tablet-body-5-sb,.tablet-interactive-1-sb,.tablet-interactive-2-sb,.tablet-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1152px) and (max-width: 1365px){.desktop-heading-1,.desktop-heading-1-sb,.desktop-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.desktop-heading-2,.desktop-heading-2-sb,.desktop-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.desktop-heading-3,.desktop-heading-3-sb,.desktop-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.desktop-heading-4,.desktop-heading-4-sb,.desktop-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-1,.desktop-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-2,.desktop-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.desktop-body-3,.desktop-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-body-4,.desktop-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-body-5,.desktop-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-interactive-1,.desktop-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-interactive-2,.desktop-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-interactive-3,.desktop-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-section-title-1{font:var(--section-title-1)}.desktop-section-title-2{font:var(--section-title-2)}.desktop-section-title-3{font:var(--section-title-3)}.desktop-section-title-4{font:var(--section-title-4)}.desktop-section-title-5{font:var(--section-title-5)}.desktop-section-title-6{font:var(--section-title-6)}.desktop-heading-1-lt,.desktop-heading-2-lt,.desktop-heading-3-lt,.desktop-heading-4-lt{font-weight:var(--font-lt)}.desktop-heading-1-sb,.desktop-heading-2-sb,.desktop-heading-3-sb,.desktop-heading-4-sb,.desktop-body-1-sb,.desktop-body-2-sb,.desktop-body-3-sb,.desktop-body-4-sb,.desktop-body-5-sb,.desktop-interactive-1-sb,.desktop-interactive-2-sb,.desktop-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1366px){.wide-heading-1,.wide-heading-1-sb,.wide-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.wide-heading-2,.wide-heading-2-sb,.wide-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.wide-heading-3,.wide-heading-3-sb,.wide-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.wide-heading-4,.wide-heading-4-sb,.wide-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-1,.wide-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-2,.wide-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.wide-body-3,.wide-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-body-4,.wide-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-body-5,.wide-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-interactive-1,.wide-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-interactive-2,.wide-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-interactive-3,.wide-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-section-title-1{font:var(--section-title-1)}.wide-section-title-2{font:var(--section-title-2)}.wide-section-title-3{font:var(--section-title-3)}.wide-section-title-4{font:var(--section-title-4)}.wide-section-title-5{font:var(--section-title-5)}.wide-section-title-6{font:var(--section-title-6)}.wide-heading-1-lt,.wide-heading-2-lt,.wide-heading-3-lt,.wide-heading-4-lt{font-weight:var(--font-lt)}.wide-heading-1-sb,.wide-heading-2-sb,.wide-heading-3-sb,.wide-heading-4-sb,.wide-body-1-sb,.wide-body-2-sb,.wide-body-3-sb,.wide-body-4-sb,.wide-body-5-sb,.wide-interactive-1-sb,.wide-interactive-2-sb,.wide-interactive-3-sb{font-weight:var(--font-sb)}}.heading-1-lt,.heading-2-lt,.heading-3-lt,.heading-4-lt{font-weight:var(--font-lt)}.heading-1-sb,.heading-2-sb,.heading-3-sb,.heading-4-sb,.body-1-sb,.body-2-sb,.body-3-sb,.body-4-sb,.body-5-sb,.interactive-1-sb,.interactive-2-sb,.interactive-3-sb,.helper-sb{font-weight:var(--font-sb)}'}},[257,"z-tool",{icon:[1],tooltip:[1],tooltipPosition:[1,"tooltip-position"],htmlAriaLabel:[1,"html-aria-label"],active:[516],disabled:[516],open:[1540],indicatorColor:[1025,"indicator-color"],tooltipOpen:[32],hasSlottedContent:[32],isMobile:[32],hasNestedOpenTools:[32],setFocus:[64],setTabIndex:[64],closeTooltip:[64]},[[0,"keydown","handleKeyDown"],[16,"click","onOutsideClick"],[0,"toggleSubmenu","onNestedToolToggle"],[0,"colorSelected","handleColorSelected"],[17,"focusin","handleExternalFocusin"]],{open:[{handleOpenChange:0}],tooltipOpen:[{handleTooltipOpenChange:0}]}]),g=b,c=function(){"undefined"!=typeof customElements&&["z-tool","z-icon","z-popover","z-tooltip"].forEach((t=>{switch(t){case"z-tool":customElements.get(s(t))||customElements.define(s(t),b);break;case"z-icon":customElements.get(s(t))||h();break;case"z-popover":customElements.get(s(t))||d();break;case"z-tooltip":customElements.get(s(t))||f()}}))};export{g as ZTool,c as defineCustomElement}
@@ -1 +1 @@
1
- import{proxyCustomElement as t,HTMLElement as o,h as s,Host as e,transformTag as i}from"@stencil/core/internal/client";import{g as r}from"./index2.js";const a=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.currentFocusIndex=0,this.toolItems=[]}componentDidLoad(){this.collectToolItems(),this.updateTabIndexes();let t=parseInt(getComputedStyle(this.hostElement).getPropertyValue("--z-toolbar-columns")||"6");t=this.toolItems.length<=t?this.toolItems.length:t,this.hostElement.style.setProperty("--z-toolbar-columns",""+t)}collectToolItems(){this.toolItems=Array.from(this.hostElement.querySelectorAll("z-tool:not(:scope z-tool z-tool)"))}updateTabIndexes(){this.toolItems.forEach(((t,o)=>{t.setTabIndex(o===this.currentFocusIndex?0:-1)}))}focusToolAt(t,o="next"){const s=this.toolItems[t];if(s){if(this.currentFocusIndex=t,!s.disabled)return s.setFocus(),void this.updateTabIndexes();"next"===o?this.focusNextTool():this.focusPreviousTool()}}focusNextTool(){this.focusToolAt((this.currentFocusIndex+1)%this.toolItems.length)}focusPreviousTool(){this.focusToolAt((this.currentFocusIndex-1+this.toolItems.length)%this.toolItems.length,"previous")}closeSiblingSubmenusOnOpen(t){if(!0!==t.detail)return;const o=t.target.closest("z-tool");o&&this.toolItems.includes(o)&&this.toolItems.forEach((t=>{t!==o&&t.open&&(t.open=!1)}))}closeSiblingTooltipsOnOpen(t){if(!0!==t.detail)return;const o=t.target;this.toolItems.includes(o)&&this.toolItems.forEach((t=>{t!==o&&t.closeTooltip()}))}handleKeyDown(t){const o=t.target.closest("z-tool");if(!o||!this.toolItems.includes(o))return;const s=this.toolItems.indexOf(o);switch(-1!==s&&(this.currentFocusIndex=s),t.key){case r.ARROW_RIGHT:t.preventDefault(),this.focusNextTool();break;case r.ARROW_LEFT:t.preventDefault(),this.focusPreviousTool()}}handleFocusIn(t){const o=t.target.closest("z-tool"),s=this.toolItems.indexOf(o);-1!==s&&s!==this.currentFocusIndex&&(this.currentFocusIndex=s,this.updateTabIndexes())}render(){return s(e,{key:"d766b9377953f92994c693221a9ea7c5104cd1c6",role:"toolbar","aria-label":this.htmlAriaLabel},s("slot",{key:"37d3079836475575d0267725589798a39025a517",onSlotchange:()=>{this.collectToolItems(),this.updateTabIndexes()}}))}get hostElement(){return this}static get style(){return":host,*{box-sizing:border-box}:host{display:flex;width:fit-content;align-items:center;padding:0;border:var(--border-size-small) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:calc(var(--border-radius) + var(--border-size-small));box-shadow:var(--shadow-4);gap:calc(var(--space-unit) / 2)}::slotted(z-divider){height:calc(var(--space-unit) * 4.5) !important}@media (max-width: 767px){:host{--z-toolbar-columns:6;position:relative;display:grid;max-width:100%;background:repeating-linear-gradient( to bottom, transparent 0, transparent calc(var(--space-unit) * 5.5), var(--color-surface03) calc(var(--space-unit) * 5.5), var(--color-surface03) calc(var(--space-unit) * 5.5 + 1px) ) center / calc(100% - var(--space-unit)) 100% no-repeat var(--color-surface01);gap:var(--border-size-small) calc(var(--space-unit) / 2);grid-template-columns:repeat(var(--z-toolbar-columns, auto-fill), minmax(44px, auto))}::slotted(z-divider){display:none !important}}"}},[257,"z-toolbar",{htmlAriaLabel:[1,"html-aria-label"],currentFocusIndex:[32]},[[0,"toggleSubmenu","closeSiblingSubmenusOnOpen"],[0,"toggleTooltip","closeSiblingTooltipsOnOpen"],[0,"keydown","handleKeyDown"],[0,"focusin","handleFocusIn"]]]),n=a,l=function(){"undefined"!=typeof customElements&&["z-toolbar"].forEach((t=>{"z-toolbar"===t&&(customElements.get(i(t))||customElements.define(i(t),a))}))};export{n as ZToolbar,l as defineCustomElement}
1
+ import{proxyCustomElement as t,HTMLElement as o,h as e,Host as s,transformTag as i}from"@stencil/core/internal/client";import{g as a}from"./index2.js";const r=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.currentFocusIndex=0,this.toolItems=[]}componentDidLoad(){this.collectToolItems(),this.updateTabIndexes();let t=parseInt(getComputedStyle(this.hostElement).getPropertyValue("--z-toolbar-columns")||"6");t=this.toolItems.length<=t?this.toolItems.length:t,this.hostElement.style.setProperty("--z-toolbar-columns",""+t)}collectToolItems(){this.toolItems=Array.from(this.hostElement.querySelectorAll("z-tool:not(:scope z-tool z-tool)"))}updateTabIndexes(){this.toolItems.forEach(((t,o)=>{t.setTabIndex(o===this.currentFocusIndex?0:-1)}))}focusToolAt(t,o="next"){const e=this.toolItems[t];if(e){if(this.currentFocusIndex=t,!e.disabled)return e.setFocus(),void this.updateTabIndexes();"next"===o?this.focusNextTool():this.focusPreviousTool()}}focusNextTool(){this.focusToolAt((this.currentFocusIndex+1)%this.toolItems.length)}focusPreviousTool(){this.focusToolAt((this.currentFocusIndex-1+this.toolItems.length)%this.toolItems.length,"previous")}closeSiblingSubmenusOnOpen(t){if(!0!==t.detail)return;const o=t.target.closest("z-tool");o&&this.toolItems.includes(o)&&this.toolItems.forEach((t=>{t!==o&&t.open&&(t.open=!1)}))}closeSiblingTooltipsOnOpen(t){if(!0!==t.detail)return;const o=t.target;this.toolItems.includes(o)&&this.toolItems.forEach((t=>{t!==o&&t.closeTooltip()}))}handleKeyDown(t){const o=t.target.closest("z-tool");if(!o||!this.toolItems.includes(o))return;const e=this.toolItems.indexOf(o);switch(-1!==e&&(this.currentFocusIndex=e),t.key){case a.ARROW_RIGHT:t.preventDefault(),this.focusNextTool();break;case a.ARROW_LEFT:t.preventDefault(),this.focusPreviousTool()}}handleFocusIn(t){const o=t.target.closest("z-tool"),e=this.toolItems.indexOf(o);-1!==e&&e!==this.currentFocusIndex&&(this.currentFocusIndex=e,this.updateTabIndexes())}render(){return e(s,{key:"da37a1abe86b6c96aaabdc4f5714716ea3ce7281",role:"toolbar","aria-label":this.htmlAriaLabel},e("slot",{key:"73b950e1efb794a75930915ccb39cf58dc524fb0",onSlotchange:()=>{this.collectToolItems(),this.updateTabIndexes()}}))}get hostElement(){return this}static get style(){return":host,*{box-sizing:border-box}:host{display:flex;width:fit-content;align-items:center;padding:0;border:var(--border-size-small) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:calc(var(--border-radius) + var(--border-size-small));box-shadow:var(--shadow-4);gap:calc(var(--space-unit) / 2)}::slotted(z-divider){height:calc(var(--space-unit) * 4.5) !important}@media (max-width: 767px){:host{--z-toolbar-columns:6;position:relative;display:grid;max-width:100%;background:repeating-linear-gradient( to bottom, transparent 0, transparent calc(var(--space-unit) * 5.5), var(--color-surface03) calc(var(--space-unit) * 5.5), var(--color-surface03) calc(var(--space-unit) * 5.5 + 1px) ) center / calc(100% - var(--space-unit)) 100% no-repeat var(--color-surface01);gap:var(--border-size-small) calc(var(--space-unit) / 2);grid-template-columns:repeat(var(--z-toolbar-columns, auto-fill), minmax(44px, auto))}::slotted(z-divider){display:none !important}}"}},[257,"z-toolbar",{htmlAriaLabel:[1,"html-aria-label"],currentFocusIndex:[32]},[[0,"toggleSubmenu","closeSiblingSubmenusOnOpen"],[0,"toggleTooltip","closeSiblingTooltipsOnOpen"],[0,"keydown","handleKeyDown"],[0,"focusin","handleFocusIn"]]]),n=r,l=function(){"undefined"!=typeof customElements&&["z-toolbar"].forEach((t=>{"z-toolbar"===t&&(customElements.get(i(t))||customElements.define(i(t),r))}))};export{n as ZToolbar,l as defineCustomElement}
@@ -1 +1 @@
1
- import{proxyCustomElement as t,HTMLElement as e,createEvent as o,h as n,Host as a,transformTag as r}from"@stencil/core/internal/client";import{r as s}from"./utils.js";import"./index2.js";import{d as i}from"./index3.js";import"./index17.js";const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.expand=o(this,"expand",7),this.expandable=!1,this.expanded=!1}updateColumns(){const t=Array.from(this.host.querySelectorAll("z-td, z-th"));this.expandable&&t.pop();const e=t.map((t=>t.colspan||1)).reduce(((t,e)=>t+e),0);if(this.host.style.setProperty("--columns",""+e),this.expandable){const e=t.pop();e.id=e.id||"z-tr-expandable-content-"+s(),this.expandableContentId=e.id}}onRowClick(t){const e=t.target.closest(".prevent-expand");this.expandable&&!e&&(this.expanded=!this.expanded,this.expand.emit({expanded:this.expanded}))}onKeyDown(t){this.expandable&&document.activeElement===this.host&&("Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.expanded=!this.expanded,this.expand.emit({expanded:this.expanded})))}componentWillLoad(){this.updateColumns()}render(){return n(a,{key:"22e2a75bc63f96ec1f293ecfd818f16e0aa9eb96",role:"row",tabIndex:0,expanded:this.expanded,onClick:this.onRowClick.bind(this),onKeyDown:this.onKeyDown.bind(this)},n("div",{key:"7d71cd5da22b1e921a53831316fa1cf0a90b4178",class:"z-tr--focus-overlay","aria-hidden":"true"}),n("div",{key:"707e10ebfe2df07fd6f151af992d7289d76ab43c",class:"z-tr--expand-button-container"},this.expandable&&n("button",{key:"375fe42258137e52520556487cccb2bcf2378833",tabIndex:-1,"aria-expanded":this.expanded?"true":"false","aria-label":this.expanded?"Comprimi riga":"Espandi riga","aria-controls":this.expandableContentId,type:"button"},n("z-icon",{key:"5e478114e1ba9d7982995acefa52f8ffc1b51831",name:this.expanded?"minus-circled":"plus-circled"}))),n("slot",{key:"56f1c4bad517ee41792f500bd56408a42da440bb",onSlotchange:this.updateColumns.bind(this)}))}get host(){return this}static get watchers(){return{expandable:[{updateColumns:0}]}}static get style(){return":host{position:relative;display:grid;width:100%;box-sizing:border-box;grid-auto-flow:column;grid-template-columns:var(--z-table--expand-button-size, 0) repeat(var(--columns), minmax(128px, 1fr));--columns:1}*{box-sizing:border-box}.z-tr--expand-button-container,::slotted(*){border-bottom:var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03)}::slotted(*:not(:last-child)){border-right:var(--z-table--cell-left-border, none)}:host([expandable]){--show-expandable-button:visible;cursor:pointer}:host([expandable]) ::slotted(*){grid-row:1}:host([expandable]) ::slotted(:nth-last-child(2)){border-right:none}:host([expandable]) ::slotted(*:last-child){border-left:0;grid-column:1 / span calc(var(--columns) + 1);grid-row:2}:host([expandable]:not([expanded])) ::slotted(*:last-child){display:none}:host([expanded]){margin-bottom:4px;box-shadow:0 4px 4px -2px var(--shadow-color-base)}:host([expanded]) .z-tr--expand-button-container,:host([expanded]) ::slotted(*){background-color:var(--color-background)}:host(:hover) ::slotted(z-td),:host(:hover) ::slotted(z-th){border-top:var(--border-size-small) solid var(--color-surface04);border-bottom:var(--border-size-small) solid var(--color-surface04);background-color:var(--color-surface02)}:host(:focus){position:relative;z-index:20;box-shadow:var(--shadow-focus-primary);outline:none}.z-tr--expand-button-container{display:flex;align-items:center;justify-content:center;background-color:var(--z-table--cells-background, var(--color-surface01))}.z-tr--expand-button-container button{display:flex;align-items:center;justify-content:center;padding:0;border:none;margin:auto;appearance:none;background:transparent;cursor:pointer;visibility:var(--show-expandable-button, hidden)}.z-tr--expand-button-container button z-icon{--z-icon-width:16px;--z-icon-height:16px}.z-tr--focus-overlay{position:absolute;z-index:30;right:0;left:0;width:100%;border-radius:4px;box-shadow:none;inset:0;outline:none;pointer-events:none;transition:box-shadow 0.2s}:host(:focus) .z-tr--focus-overlay{box-shadow:0 0 0 2px var(--shadow-focus-primary), var(--shadow-focus-primary);outline:none}:host(:focus) ::slotted(*){border-bottom:none}:host(:focus) .z-tr--expand-button-container{border-bottom:none}"}},[257,"z-tr",{expandable:[516],expanded:[32],expandableContentId:[32]},[[0,"colspanchange","updateColumns"]],{expandable:[{updateColumns:0}]}]),l=d,c=function(){"undefined"!=typeof customElements&&["z-tr","z-icon"].forEach((t=>{switch(t){case"z-tr":customElements.get(r(t))||customElements.define(r(t),d);break;case"z-icon":customElements.get(r(t))||i()}}))};export{l as ZTr,c as defineCustomElement}
1
+ import{proxyCustomElement as e,HTMLElement as t,createEvent as o,h as r,Host as a,transformTag as s}from"@stencil/core/internal/client";import{r as n}from"./utils.js";import"./index2.js";import{d as l}from"./index3.js";import"./index17.js";const i=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.expand=o(this,"expand",7),this.expandable=!1,this.expanded=!1}updateColumns(){const e=Array.from(this.host.querySelectorAll("z-td, z-th"));this.expandable&&e.pop();const t=e.map((e=>e.colspan||1)).reduce(((e,t)=>e+t),0);if(this.host.style.setProperty("--columns",""+t),this.expandable){const t=e.pop();t.id=t.id||"z-tr-expandable-content-"+n(),this.expandableContentId=t.id}}onRowClick(e){const t=e.target.closest(".prevent-expand");this.expandable&&!t&&(this.expanded=!this.expanded,this.expand.emit({expanded:this.expanded}))}onKeyDown(e){this.expandable&&document.activeElement===this.host&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.expanded=!this.expanded,this.expand.emit({expanded:this.expanded})))}componentWillLoad(){this.updateColumns()}render(){return r(a,{key:"6675f95eeb22b498594fba6534c4c827febecc73",role:"row",tabIndex:this.expandable?0:void 0,expanded:this.expanded,onClick:this.onRowClick.bind(this),onKeyDown:this.onKeyDown.bind(this)},r("div",{key:"587ff79c6259984e7cbff6fae284a454152d1cf7",class:"z-tr--focus-overlay","aria-hidden":"true"}),r("div",{key:"fa283ba74f8b62c16b37853031f01d278bb6e707",class:"z-tr--expand-button-container"},this.expandable&&r("button",{key:"e009923873641b3cecf5f6736e56c7136134f226",tabIndex:-1,"aria-expanded":this.expanded?"true":"false","aria-label":this.expanded?"Comprimi riga":"Espandi riga","aria-controls":this.expandableContentId,type:"button"},r("z-icon",{key:"403d4e5d99c796af9887c8d8f2b4ec8a9de7f9bd",name:this.expanded?"minus-circled":"plus-circled"}))),r("slot",{key:"afc75a162e1782b9aeb746961f0f51686e8c9213",onSlotchange:this.updateColumns.bind(this)}))}get host(){return this}static get watchers(){return{expandable:[{updateColumns:0}]}}static get style(){return":host{position:relative;display:grid;width:100%;box-sizing:border-box;grid-auto-flow:column;grid-template-columns:var(--z-table--expand-button-size, 0) repeat(var(--columns), minmax(128px, 1fr));--columns:1}*{box-sizing:border-box}:host([expandable]){--show-expandable-button:visible;cursor:pointer}:host([expandable]) ::slotted(*){grid-row:1}:host([expandable]) ::slotted(:nth-last-child(2)){border-right:none}:host([expandable]) ::slotted(*:last-child){border-top:var(--border-size-small) solid var(--color-surface03);border-left:0;grid-column:1 / span calc(var(--columns) + 1);grid-row:2}:host([expandable]:not([expanded])) ::slotted(*:last-child){display:none}:host([expanded]){margin-bottom:4px;box-shadow:0 4px 4px -2px var(--shadow-color-base)}:host([expanded]) .z-tr--expand-button-container,:host([expanded]) ::slotted(*){border-left:0 !important;background-color:var(--color-background)}:host(:hover):has([tabIndex]) ::slotted(z-td),:host(:hover):has([tabIndex]) ::slotted(z-th){border-top:var(--border-size-small) solid var(--color-surface04);border-bottom:var(--border-size-small) solid var(--color-surface04);background-color:var(--color-surface02)}:host(:focus){position:relative;z-index:20;border:none !important;box-shadow:var(--shadow-focus-primary);outline:none}.z-tr--expand-button-container{display:flex;align-items:center;justify-content:center;background-color:var(--z-table--cells-background, var(--color-surface01))}.z-tr--expand-button-container button{display:flex;align-items:center;justify-content:center;padding:0;border:none;margin:auto;appearance:none;background:transparent;cursor:pointer;visibility:var(--show-expandable-button, hidden)}.z-tr--expand-button-container button z-icon{--z-icon-width:16px;--z-icon-height:16px}.z-tr--focus-overlay{position:absolute;z-index:30;right:0;left:0;width:100%;border-radius:4px;box-shadow:none;inset:0;outline:none;pointer-events:none;transition:box-shadow 0.2s}:host(:focus) .z-tr--focus-overlay{box-shadow:0 0 0 2px var(--shadow-focus-primary), var(--shadow-focus-primary);outline:none}:host(:focus) ::slotted(*){border-bottom:none}:host(:focus) .z-tr--expand-button-container{border-bottom:none}z-table,table.z-table{background-color:var(--color-surface01);--z-table--cells-padding:calc(var(--space-unit) * 2)}table.z-table{border-collapse:collapse}z-thead,table.z-table thead{background-color:var(--color-background);--z-table--cells-bottom-border-size:var(--border-size-medium)}z-tfoot,table.z-table tfoot{border-top:var(--border-size-medium) solid var(--color-surface03);border-bottom:var(--border-size-medium) solid var(--color-surface03)}z-tfoot z-tr,table.z-table tfoot tr{border-bottom:calc(var(--z-table--cells-bottom-border-size)) solid var(--color-surface03) !important}z-tr,table.z-table tr{border-bottom:var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03)}z-td,z-th,table.z-table td,table.z-table th{padding:var(--z-table--cells-padding, calc(var(--space-unit) * 2));text-align:left}z-th:not(:first-child),z-td:not(:first-child),table.z-table th:not(:first-child),table.z-table td:not(:first-child){border-left:var(--z-table--cell-left-border, none)}z-table[bordered],table.z-table.z-table-bordered{--z-table--cell-left-border:1px solid var(--color-surface03)}table.z-table-hover tr:hover>td,table.z-table-hover tr:hover>th{background-color:var(--color-surface02);box-shadow:inset 0 var(--border-size-small) 0 var(--color-surface04), inset 0 calc(var(--border-size-small) * -1) 0 var(--color-surface04)}"}},[257,"z-tr",{expandable:[516],expanded:[32],expandableContentId:[32]},[[0,"colspanchange","updateColumns"]],{expandable:[{updateColumns:0}]}]),d=i,c=function(){"undefined"!=typeof customElements&&["z-tr","z-icon"].forEach((e=>{switch(e){case"z-tr":customElements.get(s(e))||customElements.define(s(e),i);break;case"z-icon":customElements.get(s(e))||l()}}))};export{d as ZTr,c as defineCustomElement}
@@ -1 +1 @@
1
- import{proxyCustomElement as e,HTMLElement as t,createEvent as i,h as l,Host as s,transformTag as n}from"@stencil/core/internal/client";import{g as r}from"./index2.js";import{d as o}from"./index6.js";import{d as a}from"./index3.js";import{d}from"./index9.js";import{d as c}from"./index10.js";const m=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.treeItemClicked=i(this,"treeItemClicked",7),this.items=[],this.parsedItems=[]}watchItems(){this.parsedItems="string"==typeof this.items?JSON.parse(this.items):this.items}componentWillLoad(){this.watchItems()}handleClick(e){this.treeItemClicked.emit({id:e.id,name:e.name,url:e.url})}getFocusableElements(){return Array.from(this.host.shadowRoot.querySelectorAll('a[tabindex="0"]'))}getAncestor(e,t){let i=e;for(let e=0;e<t;e++)if(i=null==i?void 0:i.parentElement,!i)return;return i}handleArrowNav(e){if(e.code===r.TAB)return void e.preventDefault();const t=this.getFocusableElements(),i=t.indexOf(e.target);if(-1!==i){if(e.code===r.ARROW_DOWN||e.code===r.ARROW_UP){e.preventDefault();const l=i+(e.code===r.ARROW_DOWN?1:-1);if(l<0||l>=t.length)return;t[l].focus()}if(e.code===r.ARROW_LEFT){e.preventDefault();const l=this.getAncestor(t[i],4);if(!l||!l.children[0]||"a"!==l.children[0].tagName.toLowerCase()&&null===l.getAttribute("tabindex"))return;l.children[0].focus()}if(e.code===r.ARROW_RIGHT){e.preventDefault();const t=e.target.closest("z-list-element");if(!t)return;const i=t.querySelector("z-list");if(!i)return;const l=i.querySelector('a[tabindex="0"]');if(!l)return;l.focus()}}}renderTreeList(e,t,i=1){var s,n;this.htmlTag=e.url?"a":"span";const o=l("z-list-element",{id:t,class:e.icon?"":"no-icon-elm",clickable:!!e.url,hasTreeItems:!0,role:"none","aria-hidden":void 0},l(this.htmlTag,{class:{"list-element":!0,"z-link":!!e.url,"link-clickable":!!e.url},tabIndex:e.url?0:-1,onClick:()=>this.handleClick(e),onKeyUp:t=>{t.code!==r.ENTER&&t.code!==r.SPACE||this.handleClick(e)},onKeyDown:e=>this.handleArrowNav(e),role:e.url?"treeitem":void 0,"aria-hidden":e.url?void 0:"true","aria-expanded":(null===(s=e.children)||void 0===s?void 0:s.length)>0&&!0,"aria-level":i,"aria-label":e.name,href:e.url},l("span",{class:"item ellipsis"},e.icon&&l("z-icon",{width:16,height:16,fill:e.url?"color-primary01":"color-default-icon",class:"item-icon",name:e.icon}),l("span",{class:{"item-label":!0,"no-icon-label":!e.icon,"bold-item":e.bold},title:e.name},e.name))),(null===(n=e.children)||void 0===n?void 0:n.length)>0&&l("z-list",{role:"group"},l("div",{class:"children-node"},e.children.map(((e,t)=>this.renderTreeList(e,""+t,i+1))))));return o}render(){const e=this.parsedItems.some((e=>!!e.url));return l(s,{key:"ca5b846e86140efd7a98028001e646349cc5683a",class:"tree-list",role:e?"navigation":"none","aria-hidden":e?void 0:"true","aria-labelledby":this.htmlAriaLabelledby},l("div",{key:"eac955c253173abb6e5f0992d356311dc52f9ee6",tabIndex:-1,role:e?"tree":"none","aria-hidden":e?void 0:"true","aria-label":this.htmlSectionTitle},this.parsedItems.map(((e,t)=>this.renderTreeList(e,""+t)))))}get host(){return this}static get watchers(){return{items:[{watchItems:0}]}}static get style(){return':host{font-family:var(--font-family-sans)}z-list-element{position:relative;display:block;padding-top:var(--space-unit)}z-list-element::before,z-list-element::after{position:absolute;z-index:100;top:0.125rem;left:-0.5rem;content:""}z-list z-list-element::before{width:var(--space-unit);height:calc(var(--space-unit) * 2);border-bottom:var(--border-size-small) solid var(--color-disabled01-icon);border-left:var(--border-size-small) solid var(--color-disabled01-icon)}z-list z-list-element::after{width:var(--space-unit);height:100%;border-left:var(--border-size-small) solid var(--color-disabled01-icon)}z-list z-list-element:last-child::after,z-list>z-list-element::before,z-list>z-list-element::after,z-list>z-list-group>z-list-element::before,z-list>z-list-group>z-list-element::after{display:none}z-list>div.children-node{padding-left:calc(var(--space-unit) * 2)}z-list-element>.list-element{z-index:100;display:flex;justify-content:space-between;padding:0;color:var(--color-default-text);font-size:var(--font-size-2);font-style:normal;font-weight:var(--font-rg);text-decoration:none}z-list-element>.list-element.link-clickable{color:var(--color-primary01)}z-list-element>.list-element.link-clickable:hover{text-decoration:underline}z-list-element>.list-element .item.ellipsis{overflow:hidden}z-list-element .list-element::after{position:absolute;top:0;right:-0.0625rem;display:block;width:100%;height:calc(var(--space-unit) * 5);content:"";transform:translateX(-100%)}.item-label{overflow:hidden;flex-grow:1;font-size:var(--font-size-2);font-style:normal;font-weight:var(--font-rg);letter-spacing:0.0032rem;line-height:1.25rem;text-overflow:ellipsis;white-space:nowrap}.item-label.bold-item{font-weight:var(--font-sb)}.item.ellipsis{display:flex;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.children-node>z-list-element{padding:0;padding-top:0.125;padding-left:calc(var(--space-unit) * 1.25)}.item-icon{margin-right:var(--space-unit)}.no-icon-label{padding-left:var(--space-unit)}.children-node>z-list-element.no-icon-elm{padding-left:0}z-list-element>.list-element:focus:focus-visible{position:relative;z-index:200;box-shadow:var(--shadow-focus-primary);outline:none}@media (max-width: 767px){z-list-element::before,z-list-element::after{top:0.1875rem}z-list z-list-element::before{height:calc(var(--space-unit) * 2.5)}.children-node>z-list-element{padding-top:var(--space-unit)}}'}},[1,"z-tree-list",{items:[1],htmlAriaLabelledby:[513,"html-aria-labelledby"],htmlSectionTitle:[513,"html-section-title"]},void 0,{items:[{watchItems:0}]}]),h=m,f=function(){"undefined"!=typeof customElements&&["z-tree-list","z-divider","z-icon","z-list","z-list-element"].forEach((e=>{switch(e){case"z-tree-list":customElements.get(n(e))||customElements.define(n(e),m);break;case"z-divider":customElements.get(n(e))||o();break;case"z-icon":customElements.get(n(e))||a();break;case"z-list":customElements.get(n(e))||d();break;case"z-list-element":customElements.get(n(e))||c()}}))};export{h as ZTreeList,f as defineCustomElement}
1
+ import{proxyCustomElement as e,HTMLElement as t,createEvent as i,h as l,Host as s,transformTag as n}from"@stencil/core/internal/client";import{g as r}from"./index2.js";import{d as o}from"./index6.js";import{d as a}from"./index3.js";import{d}from"./index9.js";import{d as c}from"./index10.js";const m=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.treeItemClicked=i(this,"treeItemClicked",7),this.items=[],this.parsedItems=[]}watchItems(){this.parsedItems="string"==typeof this.items?JSON.parse(this.items):this.items}componentWillLoad(){this.watchItems()}handleClick(e){this.treeItemClicked.emit({id:e.id,name:e.name,url:e.url})}getFocusableElements(){return Array.from(this.host.shadowRoot.querySelectorAll('a[tabindex="0"]'))}getAncestor(e,t){let i=e;for(let e=0;e<t;e++)if(i=null==i?void 0:i.parentElement,!i)return;return i}handleArrowNav(e){if(e.code===r.TAB)return void e.preventDefault();const t=this.getFocusableElements(),i=t.indexOf(e.target);if(-1!==i){if(e.code===r.ARROW_DOWN||e.code===r.ARROW_UP){e.preventDefault();const l=i+(e.code===r.ARROW_DOWN?1:-1);if(l<0||l>=t.length)return;t[l].focus()}if(e.code===r.ARROW_LEFT){e.preventDefault();const l=this.getAncestor(t[i],4);if(!l||!l.children[0]||"a"!==l.children[0].tagName.toLowerCase()&&null===l.getAttribute("tabindex"))return;l.children[0].focus()}if(e.code===r.ARROW_RIGHT){e.preventDefault();const t=e.target.closest("z-list-element");if(!t)return;const i=t.querySelector("z-list");if(!i)return;const l=i.querySelector('a[tabindex="0"]');if(!l)return;l.focus()}}}renderTreeList(e,t,i=1){var s,n;this.htmlTag=e.url?"a":"span";const o=l("z-list-element",{id:t,class:e.icon?"":"no-icon-elm",clickable:!!e.url,hasTreeItems:!0,role:"none","aria-hidden":void 0},l(this.htmlTag,{class:{"list-element":!0,"z-link":!!e.url,"link-clickable":!!e.url},tabIndex:e.url?0:-1,onClick:()=>this.handleClick(e),onKeyUp:t=>{t.code!==r.ENTER&&t.code!==r.SPACE||this.handleClick(e)},onKeyDown:e=>this.handleArrowNav(e),role:e.url?"treeitem":void 0,"aria-hidden":e.url?void 0:"true","aria-expanded":(null===(s=e.children)||void 0===s?void 0:s.length)>0&&!0,"aria-level":i,"aria-label":e.name,href:e.url},l("span",{class:"item ellipsis"},e.icon&&l("z-icon",{width:16,height:16,fill:e.url?"color-primary01":"color-default-icon",class:"item-icon",name:e.icon}),l("span",{class:{"item-label":!0,"no-icon-label":!e.icon,"bold-item":e.bold},title:e.name},e.name))),(null===(n=e.children)||void 0===n?void 0:n.length)>0&&l("z-list",{role:"group"},l("div",{class:"children-node"},e.children.map(((e,t)=>this.renderTreeList(e,""+t,i+1))))));return o}render(){const e=this.parsedItems.some((e=>!!e.url));return l(s,{key:"68d06fd53ad0f4bce01853b95aef0f7482f3304a",class:"tree-list",role:e?"navigation":"none","aria-hidden":e?void 0:"true","aria-labelledby":this.htmlAriaLabelledby},l("div",{key:"6b8010ae9caf73ec0a43b09f5d9610247110d1a6",tabIndex:-1,role:e?"tree":"none","aria-hidden":e?void 0:"true","aria-label":this.htmlSectionTitle},this.parsedItems.map(((e,t)=>this.renderTreeList(e,""+t)))))}get host(){return this}static get watchers(){return{items:[{watchItems:0}]}}static get style(){return':host{font-family:var(--font-family-sans)}z-list-element{position:relative;display:block;padding-top:var(--space-unit)}z-list-element::before,z-list-element::after{position:absolute;z-index:100;top:0.125rem;left:-0.5rem;content:""}z-list z-list-element::before{width:var(--space-unit);height:calc(var(--space-unit) * 2);border-bottom:var(--border-size-small) solid var(--color-disabled01-icon);border-left:var(--border-size-small) solid var(--color-disabled01-icon)}z-list z-list-element::after{width:var(--space-unit);height:100%;border-left:var(--border-size-small) solid var(--color-disabled01-icon)}z-list z-list-element:last-child::after,z-list>z-list-element::before,z-list>z-list-element::after,z-list>z-list-group>z-list-element::before,z-list>z-list-group>z-list-element::after{display:none}z-list>div.children-node{padding-left:calc(var(--space-unit) * 2)}z-list-element>.list-element{z-index:100;display:flex;justify-content:space-between;padding:0;color:var(--color-default-text);font-size:var(--font-size-2);font-style:normal;font-weight:var(--font-rg);text-decoration:none}z-list-element>.list-element.link-clickable{color:var(--color-primary01)}z-list-element>.list-element.link-clickable:hover{text-decoration:underline}z-list-element>.list-element .item.ellipsis{overflow:hidden}z-list-element .list-element::after{position:absolute;top:0;right:-0.0625rem;display:block;width:100%;height:calc(var(--space-unit) * 5);content:"";transform:translateX(-100%)}.item-label{overflow:hidden;flex-grow:1;font-size:var(--font-size-2);font-style:normal;font-weight:var(--font-rg);letter-spacing:0.0032rem;line-height:1.25rem;text-overflow:ellipsis;white-space:nowrap}.item-label.bold-item{font-weight:var(--font-sb)}.item.ellipsis{display:flex;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.children-node>z-list-element{padding:0;padding-top:0.125;padding-left:calc(var(--space-unit) * 1.25)}.item-icon{margin-right:var(--space-unit)}.no-icon-label{padding-left:var(--space-unit)}.children-node>z-list-element.no-icon-elm{padding-left:0}z-list-element>.list-element:focus:focus-visible{position:relative;z-index:200;box-shadow:var(--shadow-focus-primary);outline:none}@media (max-width: 767px){z-list-element::before,z-list-element::after{top:0.1875rem}z-list z-list-element::before{height:calc(var(--space-unit) * 2.5)}.children-node>z-list-element{padding-top:var(--space-unit)}}'}},[1,"z-tree-list",{items:[1],htmlAriaLabelledby:[513,"html-aria-labelledby"],htmlSectionTitle:[513,"html-section-title"]},void 0,{items:[{watchItems:0}]}]),h=m,f=function(){"undefined"!=typeof customElements&&["z-tree-list","z-divider","z-icon","z-list","z-list-element"].forEach((e=>{switch(e){case"z-tree-list":customElements.get(n(e))||customElements.define(n(e),m);break;case"z-divider":customElements.get(n(e))||o();break;case"z-icon":customElements.get(n(e))||a();break;case"z-list":customElements.get(n(e))||d();break;case"z-list-element":customElements.get(n(e))||c()}}))};export{h as ZTreeList,f as defineCustomElement}
@@ -1 +1 @@
1
- import{proxyCustomElement as e,HTMLElement as t,h as i,transformTag as n}from"@stencil/core/internal/client";const s=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return i("slot",{key:"7ddc72b3dc926a0205188bf75d5e42c15f913771"})}static get style(){return":host{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:0 -1px -1px 0;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}"}},[257,"z-visually-hidden"]),o=s,d=function(){"undefined"!=typeof customElements&&["z-visually-hidden"].forEach((e=>{"z-visually-hidden"===e&&(customElements.get(n(e))||customElements.define(n(e),s))}))};export{o as ZVisuallyHidden,d as defineCustomElement}
1
+ import{proxyCustomElement as e,HTMLElement as t,h as i,transformTag as n}from"@stencil/core/internal/client";const s=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return i("slot",{key:"e1a4d7e8ec823326ce9decd1bcbf5ffc3e2987bf"})}static get style(){return":host{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:0 -1px -1px 0;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}"}},[257,"z-visually-hidden"]),c=s,o=function(){"undefined"!=typeof customElements&&["z-visually-hidden"].forEach((e=>{"z-visually-hidden"===e&&(customElements.get(n(e))||customElements.define(n(e),s))}))};export{c as ZVisuallyHidden,o as defineCustomElement}