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

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 (430) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/cjs/{iconset-Bcbz2MS1.js → iconset-oiCBBbd2.js} +15 -3
  3. package/dist/cjs/{index-2H1EJ2Tl.js → index-D_S5lGcb.js} +5 -5
  4. package/dist/cjs/index.cjs.js +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/web-components-library.cjs.js +2 -2
  7. package/dist/cjs/z-accordion.cjs.entry.js +1 -1
  8. package/dist/cjs/z-alert.cjs.entry.js +2 -2
  9. package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  10. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +1 -1
  11. package/dist/cjs/z-app-header_12.cjs.entry.js +137 -204
  12. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  13. package/dist/cjs/z-avatar.cjs.entry.js +1 -1
  14. package/dist/cjs/z-book-card-app.cjs.entry.js +1 -1
  15. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +1 -1
  16. package/dist/cjs/z-book-card.cjs.entry.js +1 -1
  17. package/dist/cjs/z-book-cover.cjs.entry.js +1 -1
  18. package/dist/cjs/z-breadcrumb.cjs.entry.js +6 -6
  19. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  20. package/dist/cjs/z-card.cjs.entry.js +1 -1
  21. package/dist/cjs/z-carousel.cjs.entry.js +1 -1
  22. package/dist/cjs/z-chip.cjs.entry.js +1 -1
  23. package/dist/cjs/z-color-picker.cjs.entry.js +1 -1
  24. package/dist/cjs/z-combobox.cjs.entry.js +6 -4
  25. package/dist/cjs/z-cover-hero.cjs.entry.js +1 -1
  26. package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
  27. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +1 -1
  28. package/dist/cjs/z-file-upload.cjs.entry.js +1 -1
  29. package/dist/cjs/z-file.cjs.entry.js +1 -1
  30. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  31. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  32. package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
  33. package/dist/cjs/z-logo.cjs.entry.js +1 -1
  34. package/dist/cjs/z-menu-deprecated.cjs.entry.js +1 -1
  35. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +1 -1
  36. package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
  37. package/dist/cjs/z-menu.cjs.entry.js +1 -1
  38. package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  39. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
  40. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +2 -2
  41. package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
  42. package/dist/cjs/z-myz-card-icon.cjs.entry.js +2 -2
  43. package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
  44. package/dist/cjs/z-myz-card-list.cjs.entry.js +2 -2
  45. package/dist/cjs/z-myz-card_4.cjs.entry.js +5 -5
  46. package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
  47. package/dist/cjs/z-myz-list.cjs.entry.js +2 -2
  48. package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
  49. package/dist/cjs/z-notification.cjs.entry.js +3 -3
  50. package/dist/cjs/z-otp.cjs.entry.js +3 -3
  51. package/dist/cjs/z-pagination.cjs.entry.js +3 -3
  52. package/dist/cjs/z-panel-elem.cjs.entry.js +1 -1
  53. package/dist/cjs/z-popover.cjs.entry.js +1 -1
  54. package/dist/cjs/z-range-picker.cjs.entry.js +1 -1
  55. package/dist/cjs/z-result-card.cjs.entry.js +1 -1
  56. package/dist/cjs/z-section-title.cjs.entry.js +1 -1
  57. package/dist/cjs/z-select.cjs.entry.js +1 -1
  58. package/dist/cjs/z-skip-to-content.cjs.entry.js +2 -2
  59. package/dist/cjs/z-slideshow.cjs.entry.js +1 -1
  60. package/dist/cjs/z-stepper-item.cjs.entry.js +2 -2
  61. package/dist/cjs/z-stepper.cjs.entry.js +2 -2
  62. package/dist/cjs/z-table.cjs.entry.js +1 -1
  63. package/dist/cjs/z-tbody.cjs.entry.js +1 -1
  64. package/dist/cjs/z-td.cjs.entry.js +4 -4
  65. package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
  66. package/dist/cjs/z-th.cjs.entry.js +6 -4
  67. package/dist/cjs/z-thead.cjs.entry.js +1 -1
  68. package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
  69. package/dist/cjs/z-toast-notification.cjs.entry.js +96 -35
  70. package/dist/cjs/z-toggle-button.cjs.entry.js +3 -3
  71. package/dist/cjs/z-toggle-switch.cjs.entry.js +4 -4
  72. package/dist/cjs/z-tool.cjs.entry.js +3 -3
  73. package/dist/cjs/z-toolbar.cjs.entry.js +2 -2
  74. package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
  75. package/dist/cjs/z-tr.cjs.entry.js +1 -1
  76. package/dist/cjs/z-tree-list.cjs.entry.js +1 -1
  77. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  78. package/dist/collection/components/css-components/z-scrollbar/styles.css +40 -0
  79. package/dist/collection/components/table/cells/{z-td/styles.css → z-table-cells.css} +0 -1
  80. package/dist/collection/components/table/cells/z-td/index.js +3 -3
  81. package/dist/collection/components/table/cells/z-th/index.js +3 -3
  82. package/dist/collection/components/table/cells/z-th/styles.css +0 -72
  83. package/dist/collection/components/z-app-header/index.js +21 -2
  84. package/dist/collection/components/z-app-header/index.stories.js +25 -9
  85. package/dist/collection/components/z-breadcrumb/index.js +5 -5
  86. package/dist/collection/components/z-button/index.js +5 -2
  87. package/dist/collection/components/z-combobox/index.js +3 -3
  88. package/dist/collection/components/z-combobox/styles.css +0 -12
  89. package/dist/collection/components/z-input/index.js +3 -3
  90. package/dist/collection/components/z-input/styles-checkbox-radio.css +130 -0
  91. package/dist/collection/components/z-input/styles-general.css +166 -0
  92. package/dist/collection/components/z-input/styles-text.css +87 -0
  93. package/dist/collection/components/z-input/styles-textarea.css +19 -0
  94. package/dist/collection/components/z-notification/index.js +3 -2
  95. package/dist/collection/components/z-notification/index.stories.js +79 -77
  96. package/dist/collection/components/z-notification/styles.css +8 -6
  97. package/dist/collection/components/z-pagination/index.js +2 -2
  98. package/dist/collection/components/z-searchbar/index.js +133 -193
  99. package/dist/collection/components/z-searchbar/index.stories.js +12 -16
  100. package/dist/collection/components/z-searchbar/styles.css +87 -201
  101. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  102. package/dist/collection/components/z-stepper/index.js +1 -1
  103. package/dist/collection/components/z-stepper-item/index.js +1 -1
  104. package/dist/collection/components/z-toast-notification/index.js +3 -3
  105. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  106. package/dist/collection/components/z-toggle-button/index.js +2 -2
  107. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  108. package/dist/collection/components/z-tool/index.js +3 -3
  109. package/dist/collection/components/z-toolbar/index.js +1 -1
  110. package/dist/collection/components/z-tooltip/index.js +1 -1
  111. package/dist/collection/constants/iconset.js +15 -3
  112. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  113. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  114. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  115. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  116. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  117. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  118. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  119. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  120. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  121. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  122. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  123. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  124. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  125. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  126. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  127. package/dist/components/iconset.js +1 -1
  128. package/dist/components/index13.js +1 -1
  129. package/dist/components/index22.js +1 -1
  130. package/dist/components/index23.js +1 -1
  131. package/dist/components/index24.js +1 -1
  132. package/dist/components/index25.js +1 -1
  133. package/dist/components/index26.js +1 -1
  134. package/dist/components/index27.js +1 -1
  135. package/dist/components/index4.js +1 -1
  136. package/dist/components/index5.js +1 -1
  137. package/dist/components/index7.js +1 -1
  138. package/dist/components/z-app-header.js +1 -1
  139. package/dist/components/z-breadcrumb.js +1 -1
  140. package/dist/components/z-combobox.js +1 -1
  141. package/dist/components/z-myz-card-alert.js +1 -1
  142. package/dist/components/z-myz-card-dictionary.js +1 -1
  143. package/dist/components/z-myz-card-footer-sections.js +1 -1
  144. package/dist/components/z-myz-card-footer.js +1 -1
  145. package/dist/components/z-myz-card-icon.js +1 -1
  146. package/dist/components/z-myz-card-info.js +1 -1
  147. package/dist/components/z-myz-card-list.js +1 -1
  148. package/dist/components/z-myz-list.js +1 -1
  149. package/dist/components/z-notification.js +1 -1
  150. package/dist/components/z-otp.js +1 -1
  151. package/dist/components/z-pagination.js +1 -1
  152. package/dist/components/z-skip-to-content.js +1 -1
  153. package/dist/components/z-stepper-item.js +1 -1
  154. package/dist/components/z-stepper.js +1 -1
  155. package/dist/components/z-td.js +1 -1
  156. package/dist/components/z-th.js +1 -1
  157. package/dist/components/z-toast-notification-list.js +1 -1
  158. package/dist/components/z-toast-notification.js +1 -1
  159. package/dist/components/z-toggle-button.js +1 -1
  160. package/dist/components/z-toggle-switch.js +1 -1
  161. package/dist/components/z-tool.js +1 -1
  162. package/dist/components/z-toolbar.js +1 -1
  163. package/dist/esm/{iconset-BanpkIXZ.js → iconset-CjHS9zeM.js} +15 -3
  164. package/dist/esm/{index-ByN2sYu6.js → index-DPdXlnVe.js} +5 -5
  165. package/dist/esm/index.js +2 -2
  166. package/dist/esm/loader.js +3 -3
  167. package/dist/esm/{utils-0PByxJyN.js → utils-DYd3kO0P.js} +1 -1
  168. package/dist/esm/web-components-library.js +3 -3
  169. package/dist/esm/z-accordion.entry.js +1 -1
  170. package/dist/esm/z-alert.entry.js +2 -2
  171. package/dist/esm/z-anchor-navigation.entry.js +1 -1
  172. package/dist/esm/z-app-header-deprecated.entry.js +1 -1
  173. package/dist/esm/z-app-header_12.entry.js +139 -206
  174. package/dist/esm/z-aria-alert.entry.js +1 -1
  175. package/dist/esm/z-avatar.entry.js +1 -1
  176. package/dist/esm/z-book-card-app.entry.js +1 -1
  177. package/dist/esm/z-book-card-deprecated.entry.js +2 -2
  178. package/dist/esm/z-book-card.entry.js +1 -1
  179. package/dist/esm/z-book-cover.entry.js +1 -1
  180. package/dist/esm/z-breadcrumb.entry.js +7 -7
  181. package/dist/esm/z-button-sort.entry.js +1 -1
  182. package/dist/esm/z-card.entry.js +1 -1
  183. package/dist/esm/z-carousel.entry.js +1 -1
  184. package/dist/esm/z-chip.entry.js +1 -1
  185. package/dist/esm/z-color-picker.entry.js +2 -2
  186. package/dist/esm/z-combobox.entry.js +7 -5
  187. package/dist/esm/z-cover-hero.entry.js +1 -1
  188. package/dist/esm/z-date-picker.entry.js +1 -1
  189. package/dist/esm/z-dragdrop-area_2.entry.js +1 -1
  190. package/dist/esm/z-file-upload.entry.js +1 -1
  191. package/dist/esm/z-file.entry.js +1 -1
  192. package/dist/esm/z-ghost-loading.entry.js +1 -1
  193. package/dist/esm/z-info-box.entry.js +1 -1
  194. package/dist/esm/z-info-reveal.entry.js +1 -1
  195. package/dist/esm/z-logo.entry.js +1 -1
  196. package/dist/esm/z-menu-deprecated.entry.js +1 -1
  197. package/dist/esm/z-menu-section-deprecated.entry.js +1 -1
  198. package/dist/esm/z-menu-section.entry.js +1 -1
  199. package/dist/esm/z-menu.entry.js +2 -2
  200. package/dist/esm/z-myz-card-alert.entry.js +2 -2
  201. package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
  202. package/dist/esm/z-myz-card-footer-sections.entry.js +2 -2
  203. package/dist/esm/z-myz-card-footer.entry.js +2 -2
  204. package/dist/esm/z-myz-card-icon.entry.js +2 -2
  205. package/dist/esm/z-myz-card-info.entry.js +3 -3
  206. package/dist/esm/z-myz-card-list.entry.js +2 -2
  207. package/dist/esm/z-myz-card_4.entry.js +5 -5
  208. package/dist/esm/z-myz-list-item.entry.js +3 -3
  209. package/dist/esm/z-myz-list.entry.js +2 -2
  210. package/dist/esm/z-navigation-tabs.entry.js +1 -1
  211. package/dist/esm/z-notification.entry.js +3 -3
  212. package/dist/esm/z-otp.entry.js +3 -3
  213. package/dist/esm/z-pagination.entry.js +3 -3
  214. package/dist/esm/z-panel-elem.entry.js +1 -1
  215. package/dist/esm/z-popover.entry.js +2 -2
  216. package/dist/esm/z-range-picker.entry.js +1 -1
  217. package/dist/esm/z-result-card.entry.js +1 -1
  218. package/dist/esm/z-section-title.entry.js +1 -1
  219. package/dist/esm/z-select.entry.js +2 -2
  220. package/dist/esm/z-skip-to-content.entry.js +3 -3
  221. package/dist/esm/z-slideshow.entry.js +2 -2
  222. package/dist/esm/z-stepper-item.entry.js +2 -2
  223. package/dist/esm/z-stepper.entry.js +2 -2
  224. package/dist/esm/z-table.entry.js +2 -2
  225. package/dist/esm/z-tbody.entry.js +1 -1
  226. package/dist/esm/z-td.entry.js +4 -4
  227. package/dist/esm/z-tfoot.entry.js +1 -1
  228. package/dist/esm/z-th.entry.js +6 -4
  229. package/dist/esm/z-thead.entry.js +1 -1
  230. package/dist/esm/z-toast-notification-list.entry.js +2 -2
  231. package/dist/esm/z-toast-notification.entry.js +96 -35
  232. package/dist/esm/z-toggle-button.entry.js +3 -3
  233. package/dist/esm/z-toggle-switch.entry.js +5 -5
  234. package/dist/esm/z-tool.entry.js +4 -4
  235. package/dist/esm/z-toolbar.entry.js +2 -2
  236. package/dist/esm/z-tooltip.entry.js +2 -2
  237. package/dist/esm/z-tr.entry.js +2 -2
  238. package/dist/esm/z-tree-list.entry.js +1 -1
  239. package/dist/esm/z-visually-hidden.entry.js +1 -1
  240. package/dist/types/components/z-app-header/index.d.ts +4 -0
  241. package/dist/types/components/z-app-header/index.stories.d.ts +7 -0
  242. package/dist/types/components/z-notification/index.d.ts +2 -1
  243. package/dist/types/components/z-notification/index.stories.d.ts +27 -22
  244. package/dist/types/components/z-searchbar/index.d.ts +26 -28
  245. package/dist/types/components/z-searchbar/index.stories.d.ts +4 -0
  246. package/dist/types/components.d.ts +42 -18
  247. package/dist/types/constants/iconset.d.ts +30 -6
  248. package/dist/web-components-library/index.esm.js +1 -1
  249. package/dist/web-components-library/p-087956fa.entry.js +1 -0
  250. package/dist/web-components-library/{p-9b181c2c.entry.js → p-10e5e16e.entry.js} +1 -1
  251. package/dist/web-components-library/{p-8f945346.entry.js → p-13e7f751.entry.js} +1 -1
  252. package/dist/web-components-library/{p-366d2553.entry.js → p-14b804f9.entry.js} +1 -1
  253. package/{www/build/p-9d3bde23.entry.js → dist/web-components-library/p-1580db58.entry.js} +1 -1
  254. package/dist/web-components-library/p-15825811.entry.js +1 -0
  255. package/dist/web-components-library/{p-1210c90f.entry.js → p-1993b0ad.entry.js} +1 -1
  256. package/dist/web-components-library/{p-eb722234.entry.js → p-1a95491d.entry.js} +1 -1
  257. package/dist/web-components-library/{p-ebdbd84c.entry.js → p-1d023220.entry.js} +1 -1
  258. package/dist/web-components-library/{p-5fc4048b.entry.js → p-21c85e04.entry.js} +1 -1
  259. package/dist/web-components-library/{p-081b1648.entry.js → p-23b46642.entry.js} +1 -1
  260. package/dist/web-components-library/{p-59d4ac9e.entry.js → p-299f0f85.entry.js} +1 -1
  261. package/dist/web-components-library/p-29dde955.entry.js +1 -0
  262. package/dist/web-components-library/p-2c036e17.entry.js +1 -0
  263. package/dist/web-components-library/{p-c23bfec2.entry.js → p-2d4c01c3.entry.js} +1 -1
  264. package/dist/web-components-library/p-2dabe353.entry.js +1 -0
  265. package/dist/web-components-library/{p-1afd69ba.entry.js → p-2df6d169.entry.js} +1 -1
  266. package/dist/web-components-library/{p-2f99634d.entry.js → p-2ef82e17.entry.js} +1 -1
  267. package/dist/web-components-library/{p-30c86858.entry.js → p-324933f6.entry.js} +1 -1
  268. package/{www/build/p-50b59012.entry.js → dist/web-components-library/p-37e84b71.entry.js} +1 -1
  269. package/dist/web-components-library/{p-1e984688.entry.js → p-3c53e451.entry.js} +1 -1
  270. package/dist/web-components-library/{p-5883dbc1.entry.js → p-3ea03d34.entry.js} +1 -1
  271. package/dist/web-components-library/p-41584e90.entry.js +1 -0
  272. package/{www/build/p-6ece59b5.entry.js → dist/web-components-library/p-50e10a10.entry.js} +1 -1
  273. package/dist/web-components-library/{p-17429bce.entry.js → p-52899754.entry.js} +1 -1
  274. package/dist/web-components-library/p-53670be4.entry.js +1 -0
  275. package/dist/web-components-library/{p-02e588b4.entry.js → p-583b8152.entry.js} +1 -1
  276. package/dist/web-components-library/{p-afab22fc.entry.js → p-5a05dc1e.entry.js} +1 -1
  277. package/dist/web-components-library/{p-a975b91d.entry.js → p-5d20fc3d.entry.js} +1 -1
  278. package/{www/build/p-5c85b7f4.entry.js → dist/web-components-library/p-622466f9.entry.js} +1 -1
  279. package/dist/web-components-library/{p-0727e9aa.entry.js → p-658f022d.entry.js} +1 -1
  280. package/dist/web-components-library/{p-ecea3d09.entry.js → p-6bd35edf.entry.js} +1 -1
  281. package/dist/web-components-library/{p-00f09ae2.entry.js → p-7226f07a.entry.js} +1 -1
  282. package/dist/web-components-library/p-7371a543.entry.js +2 -0
  283. package/dist/web-components-library/{p-b5c180bc.entry.js → p-77bf39a4.entry.js} +1 -1
  284. package/dist/web-components-library/{p-acf23ad8.entry.js → p-788eaac7.entry.js} +1 -1
  285. package/{www/build/p-631f111d.entry.js → dist/web-components-library/p-7bf7539a.entry.js} +1 -1
  286. package/dist/web-components-library/p-81eb43fd.entry.js +1 -0
  287. package/dist/web-components-library/{p-abfdc045.entry.js → p-8261c869.entry.js} +1 -1
  288. package/{www/build/p-5bb77af2.entry.js → dist/web-components-library/p-83da1031.entry.js} +1 -1
  289. package/{www/build/p-d57c5efc.entry.js → dist/web-components-library/p-85cac60d.entry.js} +1 -1
  290. package/dist/web-components-library/{p-2294f1b0.entry.js → p-88a3ba7c.entry.js} +1 -1
  291. package/dist/web-components-library/{p-0ca6e928.entry.js → p-8a8df4f4.entry.js} +1 -1
  292. package/dist/web-components-library/{p-040fbd28.entry.js → p-8b026993.entry.js} +1 -1
  293. package/dist/web-components-library/{p-294f7b4e.entry.js → p-8d7e2e16.entry.js} +1 -1
  294. package/dist/web-components-library/{p-19536f5e.entry.js → p-8de064a4.entry.js} +1 -1
  295. package/dist/web-components-library/{p-aabb5aea.entry.js → p-8f4a04aa.entry.js} +1 -1
  296. package/dist/web-components-library/{p-D4yqZKyM.js → p-CPsEG702.js} +1 -1
  297. package/dist/web-components-library/p-CjHS9zeM.js +1 -0
  298. package/dist/web-components-library/{p-ByN2sYu6.js → p-DPdXlnVe.js} +1 -1
  299. package/dist/web-components-library/{p-58933ba5.entry.js → p-a4f673f8.entry.js} +1 -1
  300. package/dist/web-components-library/{p-a336c241.entry.js → p-aa4fc3d3.entry.js} +1 -1
  301. package/{www/build/p-48d72b52.entry.js → dist/web-components-library/p-aa72d766.entry.js} +1 -1
  302. package/{www/build/p-b38d52e5.entry.js → dist/web-components-library/p-ad2cd7fc.entry.js} +1 -1
  303. package/dist/web-components-library/{p-241eaed0.entry.js → p-b6223d7e.entry.js} +1 -1
  304. package/{www/build/p-41b55222.entry.js → dist/web-components-library/p-b851f20b.entry.js} +1 -1
  305. package/dist/web-components-library/{p-d304ce44.entry.js → p-b9343431.entry.js} +1 -1
  306. package/dist/web-components-library/{p-a3a7c406.entry.js → p-be354b22.entry.js} +1 -1
  307. package/dist/web-components-library/{p-c8f40472.entry.js → p-c42ddd93.entry.js} +1 -1
  308. package/dist/web-components-library/{p-896470e8.entry.js → p-c4e7bd16.entry.js} +1 -1
  309. package/dist/web-components-library/{p-794c613e.entry.js → p-c944a943.entry.js} +1 -1
  310. package/dist/web-components-library/{p-4b0a730e.entry.js → p-cd33f4b1.entry.js} +1 -1
  311. package/dist/web-components-library/{p-ad2ed505.entry.js → p-cdd88182.entry.js} +1 -1
  312. package/dist/web-components-library/{p-8745878e.entry.js → p-d3053434.entry.js} +1 -1
  313. package/dist/web-components-library/{p-fade8c19.entry.js → p-d63665c1.entry.js} +1 -1
  314. package/dist/web-components-library/{p-1b851174.entry.js → p-dabccb20.entry.js} +1 -1
  315. package/dist/web-components-library/p-dc5ab2cc.entry.js +1 -0
  316. package/dist/web-components-library/{p-5797bf38.entry.js → p-dfd43710.entry.js} +1 -1
  317. package/dist/web-components-library/{p-0a819ab4.entry.js → p-e1d0a6e3.entry.js} +1 -1
  318. package/dist/web-components-library/p-e48497f0.entry.js +1 -0
  319. package/dist/web-components-library/{p-a9534450.entry.js → p-ec4940ce.entry.js} +1 -1
  320. package/dist/web-components-library/{p-ed74f357.entry.js → p-eddc2d19.entry.js} +1 -1
  321. package/dist/web-components-library/{p-6d53942a.entry.js → p-ef5018bb.entry.js} +1 -1
  322. package/dist/web-components-library/{p-f5e7fa96.entry.js → p-f7e46ef2.entry.js} +1 -1
  323. package/dist/web-components-library/web-components-library.css +1 -1
  324. package/dist/web-components-library/web-components-library.esm.js +1 -1
  325. package/package.json +3 -3
  326. package/www/build/index.esm.js +1 -1
  327. package/www/build/p-087956fa.entry.js +1 -0
  328. package/www/build/{p-9b181c2c.entry.js → p-10e5e16e.entry.js} +1 -1
  329. package/www/build/{p-8f945346.entry.js → p-13e7f751.entry.js} +1 -1
  330. package/www/build/{p-366d2553.entry.js → p-14b804f9.entry.js} +1 -1
  331. package/{dist/web-components-library/p-9d3bde23.entry.js → www/build/p-1580db58.entry.js} +1 -1
  332. package/www/build/p-15825811.entry.js +1 -0
  333. package/www/build/{p-1210c90f.entry.js → p-1993b0ad.entry.js} +1 -1
  334. package/www/build/{p-eb722234.entry.js → p-1a95491d.entry.js} +1 -1
  335. package/www/build/{p-ebdbd84c.entry.js → p-1d023220.entry.js} +1 -1
  336. package/www/build/{p-5fc4048b.entry.js → p-21c85e04.entry.js} +1 -1
  337. package/www/build/{p-081b1648.entry.js → p-23b46642.entry.js} +1 -1
  338. package/www/build/{p-59d4ac9e.entry.js → p-299f0f85.entry.js} +1 -1
  339. package/www/build/p-29dde955.entry.js +1 -0
  340. package/www/build/p-2c036e17.entry.js +1 -0
  341. package/www/build/{p-c23bfec2.entry.js → p-2d4c01c3.entry.js} +1 -1
  342. package/www/build/p-2dabe353.entry.js +1 -0
  343. package/www/build/{p-1afd69ba.entry.js → p-2df6d169.entry.js} +1 -1
  344. package/www/build/{p-2f99634d.entry.js → p-2ef82e17.entry.js} +1 -1
  345. package/www/build/{p-30c86858.entry.js → p-324933f6.entry.js} +1 -1
  346. package/{dist/web-components-library/p-50b59012.entry.js → www/build/p-37e84b71.entry.js} +1 -1
  347. package/www/build/{p-1e984688.entry.js → p-3c53e451.entry.js} +1 -1
  348. package/www/build/{p-5883dbc1.entry.js → p-3ea03d34.entry.js} +1 -1
  349. package/www/build/p-41584e90.entry.js +1 -0
  350. package/{dist/web-components-library/p-6ece59b5.entry.js → www/build/p-50e10a10.entry.js} +1 -1
  351. package/www/build/{p-17429bce.entry.js → p-52899754.entry.js} +1 -1
  352. package/www/build/p-53670be4.entry.js +1 -0
  353. package/www/build/{p-02e588b4.entry.js → p-583b8152.entry.js} +1 -1
  354. package/www/build/{p-afab22fc.entry.js → p-5a05dc1e.entry.js} +1 -1
  355. package/www/build/{p-a975b91d.entry.js → p-5d20fc3d.entry.js} +1 -1
  356. package/{dist/web-components-library/p-5c85b7f4.entry.js → www/build/p-622466f9.entry.js} +1 -1
  357. package/www/build/{p-0727e9aa.entry.js → p-658f022d.entry.js} +1 -1
  358. package/www/build/{p-ecea3d09.entry.js → p-6bd35edf.entry.js} +1 -1
  359. package/www/build/{p-00f09ae2.entry.js → p-7226f07a.entry.js} +1 -1
  360. package/www/build/p-7371a543.entry.js +2 -0
  361. package/www/build/{p-b5c180bc.entry.js → p-77bf39a4.entry.js} +1 -1
  362. package/www/build/{p-acf23ad8.entry.js → p-788eaac7.entry.js} +1 -1
  363. package/{dist/web-components-library/p-631f111d.entry.js → www/build/p-7bf7539a.entry.js} +1 -1
  364. package/www/build/p-81eb43fd.entry.js +1 -0
  365. package/www/build/{p-abfdc045.entry.js → p-8261c869.entry.js} +1 -1
  366. package/{dist/web-components-library/p-5bb77af2.entry.js → www/build/p-83da1031.entry.js} +1 -1
  367. package/{dist/web-components-library/p-d57c5efc.entry.js → www/build/p-85cac60d.entry.js} +1 -1
  368. package/www/build/{p-2294f1b0.entry.js → p-88a3ba7c.entry.js} +1 -1
  369. package/www/build/{p-0ca6e928.entry.js → p-8a8df4f4.entry.js} +1 -1
  370. package/www/build/{p-040fbd28.entry.js → p-8b026993.entry.js} +1 -1
  371. package/www/build/{p-294f7b4e.entry.js → p-8d7e2e16.entry.js} +1 -1
  372. package/www/build/{p-19536f5e.entry.js → p-8de064a4.entry.js} +1 -1
  373. package/www/build/{p-aabb5aea.entry.js → p-8f4a04aa.entry.js} +1 -1
  374. package/www/build/{p-D4yqZKyM.js → p-CPsEG702.js} +1 -1
  375. package/www/build/p-CjHS9zeM.js +1 -0
  376. package/www/build/{p-ByN2sYu6.js → p-DPdXlnVe.js} +1 -1
  377. package/www/build/{p-58933ba5.entry.js → p-a4f673f8.entry.js} +1 -1
  378. package/www/build/{p-a336c241.entry.js → p-aa4fc3d3.entry.js} +1 -1
  379. package/{dist/web-components-library/p-48d72b52.entry.js → www/build/p-aa72d766.entry.js} +1 -1
  380. package/{dist/web-components-library/p-b38d52e5.entry.js → www/build/p-ad2cd7fc.entry.js} +1 -1
  381. package/www/build/{p-241eaed0.entry.js → p-b6223d7e.entry.js} +1 -1
  382. package/{dist/web-components-library/p-41b55222.entry.js → www/build/p-b851f20b.entry.js} +1 -1
  383. package/www/build/{p-d304ce44.entry.js → p-b9343431.entry.js} +1 -1
  384. package/www/build/{p-a3a7c406.entry.js → p-be354b22.entry.js} +1 -1
  385. package/www/build/{p-c8f40472.entry.js → p-c42ddd93.entry.js} +1 -1
  386. package/www/build/{p-896470e8.entry.js → p-c4e7bd16.entry.js} +1 -1
  387. package/www/build/{p-ea2cbe37.js → p-c5c5a64f.js} +1 -1
  388. package/www/build/{p-813bd63b.css → p-c60c851a.css} +1 -1
  389. package/www/build/{p-794c613e.entry.js → p-c944a943.entry.js} +1 -1
  390. package/www/build/{p-4b0a730e.entry.js → p-cd33f4b1.entry.js} +1 -1
  391. package/www/build/{p-ad2ed505.entry.js → p-cdd88182.entry.js} +1 -1
  392. package/www/build/{p-8745878e.entry.js → p-d3053434.entry.js} +1 -1
  393. package/www/build/{p-fade8c19.entry.js → p-d63665c1.entry.js} +1 -1
  394. package/www/build/{p-1b851174.entry.js → p-dabccb20.entry.js} +1 -1
  395. package/www/build/p-dc5ab2cc.entry.js +1 -0
  396. package/www/build/{p-5797bf38.entry.js → p-dfd43710.entry.js} +1 -1
  397. package/www/build/{p-0a819ab4.entry.js → p-e1d0a6e3.entry.js} +1 -1
  398. package/www/build/p-e48497f0.entry.js +1 -0
  399. package/www/build/{p-a9534450.entry.js → p-ec4940ce.entry.js} +1 -1
  400. package/www/build/{p-ed74f357.entry.js → p-eddc2d19.entry.js} +1 -1
  401. package/www/build/{p-6d53942a.entry.js → p-ef5018bb.entry.js} +1 -1
  402. package/www/build/{p-f5e7fa96.entry.js → p-f7e46ef2.entry.js} +1 -1
  403. package/www/build/web-components-library.css +1 -1
  404. package/www/build/web-components-library.esm.js +1 -1
  405. package/www/index.html +1 -1
  406. package/dist/collection/components/z-input/styles.css +0 -406
  407. package/dist/web-components-library/p-062ba668.entry.js +0 -1
  408. package/dist/web-components-library/p-0eb7baa4.entry.js +0 -1
  409. package/dist/web-components-library/p-1c5bbea1.entry.js +0 -1
  410. package/dist/web-components-library/p-27f93251.entry.js +0 -1
  411. package/dist/web-components-library/p-314302ce.entry.js +0 -1
  412. package/dist/web-components-library/p-3c861d49.entry.js +0 -1
  413. package/dist/web-components-library/p-7a55d688.entry.js +0 -2
  414. package/dist/web-components-library/p-8042aaf7.entry.js +0 -1
  415. package/dist/web-components-library/p-BanpkIXZ.js +0 -1
  416. package/dist/web-components-library/p-a1127213.entry.js +0 -1
  417. package/dist/web-components-library/p-afcabf3b.entry.js +0 -1
  418. package/dist/web-components-library/p-db0a60fc.entry.js +0 -1
  419. package/www/build/p-062ba668.entry.js +0 -1
  420. package/www/build/p-0eb7baa4.entry.js +0 -1
  421. package/www/build/p-1c5bbea1.entry.js +0 -1
  422. package/www/build/p-27f93251.entry.js +0 -1
  423. package/www/build/p-314302ce.entry.js +0 -1
  424. package/www/build/p-3c861d49.entry.js +0 -1
  425. package/www/build/p-7a55d688.entry.js +0 -2
  426. package/www/build/p-8042aaf7.entry.js +0 -1
  427. package/www/build/p-BanpkIXZ.js +0 -1
  428. package/www/build/p-a1127213.entry.js +0 -1
  429. package/www/build/p-afcabf3b.entry.js +0 -1
  430. package/www/build/p-db0a60fc.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as e,h as t,H as i}from"./p-ByN2sYu6.js";const o=class{constructor(t){e(this,t)}render(){return t(i,{key:"ebb63998048529b08157000dd0b6e444732ccb28",role:"navigation"},t("slot",{key:"14743c8ee6a293c944b32b522ff78e763be263c2"}))}};o.style=":host{position:relative;display:flex;width:100%;max-width:100%;box-sizing:border-box;flex-direction:row;padding:0;margin:0;font-family:var(--font-family-sans);font-weight:var(--font-rg);list-style:none}@media (min-width: 768px){:host{padding:0 calc(var(--space-unit) * 2)}}";export{o as z_stepper}
@@ -1 +0,0 @@
1
- import{r as a,h as r,H as t}from"./p-ByN2sYu6.js";import{t as e}from"./p-BKCj6NR2.js";const s=class{constructor(r){a(this,r),this.mode=e.POLITE}render(){return r(t,{key:"13857c631b48af312fa399d224dd299d24ad7026","aria-live":this.mode,"aria-atomic":"true","aria-relevant":"additions"},r("slot",{key:"b5f4501e8230e2d669eb24d431a39e58232eab20"}))}};export{s as z_aria_alert}
@@ -1 +0,0 @@
1
- import{r,h as e}from"./p-ByN2sYu6.js";import{L as a}from"./p-BKCj6NR2.js";const t=class{constructor(e){r(this,e),this.ispressed=!1,this.ishighlighted=!1}retrieveClass(){let r="";return this.cardtype===a.REAL?r+="real":this.cardtype===a.TRIAL?r+="trial":this.cardtype===a.TEMP&&(r+="temp"),this.faded?r+=" faded":this.ispressed?r+=" pressed":this.ishighlighted&&(r+=" highlighted"),r}render(){return e("div",{key:"2c0c85e0fcdc9f97ccdd48248df012b863fcba9d",class:this.retrieveClass(),tabindex:"0"},e("slot",{key:"fc337a050b59e77698d916bb17f8d83eb2631a52"}))}};t.style=":host{--card-overflow:hidden}div{display:flex;overflow:var(--card-overflow);width:auto;width:256px;height:522px;box-sizing:border-box;flex-direction:column;border:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius)}div.real,div.trial,div.temp{border-color:var(--blue100)}div.faded{border:var(--border-size-medium) solid var(--color-background)}div.highlighted{box-shadow:var(--shadow-4);outline:none}div.pressed{box-shadow:var(--shadow-8);outline:none}div:focus{box-shadow:var(--shadow-focus-primary);outline:none}";const i=class{constructor(e){r(this,e)}render(){return e("div",{key:"42a8b5cd164a26010f0a4f5b24111fce46734faf"},e("slot",{key:"c16fdc0b5b4903994c6806989fe0e08acda7de07",name:"alert"}),e("slot",{key:"37aa2d3560a4e4abcead0bcf5a242da3ef64a56d",name:"cover"}))}};i.style=":host{width:auto;height:340px}:host>div{position:relative;display:flex;width:auto;height:340px;align-items:center;justify-content:center}";const o=class{constructor(e){r(this,e)}hadleOnImageError(){this.img=this.defaultimg}render(){return e("img",{key:"abaa6c16a6cb827834669e78332968bf741208c1",class:this.faded&&"faded",onError:this.hadleOnImageError.bind(this),alt:this.titolo,src:this.img})}};o.style="img{display:block;max-width:100%;height:340px;margin:auto;object-fit:cover}img.faded{opacity:0.3}";const d=class{constructor(e){r(this,e),this.allowTooltip=!1}getTitle(){return this.allowTooltip?this.titolo:""}componentDidLoad(){this.elementHasEllipsis()&&(this.allowTooltip=!0)}elementHasEllipsis(){return this.ellipsis.offsetWidth<this.ellipsis.scrollWidth}retrieveClass(){return{real:this.cardtype===a.REAL,trial:this.cardtype===a.TRIAL,temp:this.cardtype===a.TEMP,faded:this.faded}}render(){return e("header",{key:"cb6d37eb3216830f6077ead88b023626ac70d533",class:this.retrieveClass()},e("slot",{key:"3f75c5d25d0d7fb8c4d8fd4d1ef8579565cbff58",name:"aria-heading"}),e("span",{key:"450a394125795418318d6988826803831285a9c2",class:"card-title",ref:r=>this.ellipsis=r,title:this.getTitle()},this.titolo),e("slot",{key:"9aabb4daea8a2065290d5dc5d06fc7a61bc5a2ca",name:"icon"}))}};d.style='header{position:relative;display:flex;width:auto;height:calc(var(--space-unit) * 6);flex-direction:row;align-items:flex-start;justify-content:space-between;border-bottom:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius) var(--border-radius) var(--border-no-radius) var(--border-no-radius)}slot[name="aria-heading"]::slotted(*){position:absolute;overflow:hidden !important;width:1px !important;height:1px !important;padding:0 !important;border:0 none !important;margin:-1px !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important}header.real,header.trial,header.temp{border-bottom:var(--border-size-medium) solid var(--blue100);background-color:var(--color-primary03)}.card-title{overflow:hidden;height:calc(var(--space-unit) * 2);padding:calc(var(--space-unit) * 2);margin:0;color:var(--color-surface05);font-family:var(--font-family-sans);font-size:12px;font-weight:var(--font-sb);letter-spacing:0.22px;line-height:calc(var(--space-unit) * 2);text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.faded{border-bottom:var(--border-size-medium) solid var(--color-background)}.faded.real,.faded.trial,.faded.temp{border-top:var(--border-size-medium) solid var(--blue100);border-right:var(--border-size-medium) solid var(--blue100);border-left:var(--border-size-medium) solid var(--blue100)}';export{t as z_myz_card,i as z_myz_card_body,o as z_myz_card_cover,d as z_myz_card_header}
@@ -1 +0,0 @@
1
- import{h as t,F as i,r as e,c as s,H as a,d as n}from"./p-ByN2sYu6.js";import{g as r,e as o,B as c,u as l,O as h,c as d,$ as p,D as u,h as b,k as v,I as f,f as z,i as m,m as g,j as x,l as w,E as y,p as k}from"./p-BKCj6NR2.js";import{B as C}from"./p-Q-tWjk7P.js";import{a as O,r as j,d as S,g as I,m as $}from"./p-D4yqZKyM.js";import{I as M,C as L}from"./p-BanpkIXZ.js";const H="undefined"!=typeof IntersectionObserver,T=class{onStuck(){this.scrollParent&&this.sticking.emit(this._stuck)}setMenuFloatingMode(){0!==this.menuElements.length&&this.menuElements.forEach((t=>{t.open=!1,t.verticalContext=this.drawerOpen}))}onStuckChange(){var t,i;this.container&&(this.stuck?null===(t=this.stuckIntersecObserver)||void 0===t||t.observe(this.container):(this._stuck=!1,null===(i=this.stuckIntersecObserver)||void 0===i||i.unobserve(this.container)))}get title(){var t;return null===(t=this.hostElement.querySelector('[slot="title"]'))||void 0===t?void 0:t.textContent.trim()}get scrollParent(){const t=this.hostElement.offsetParent;return t===document.body||t===document.documentElement?window:t}get canShowMenu(){return!this.enableOffcanvas&&this.menuElements.length>0&&!this.isMobile&&!this.drawerOpen}get focusableMenu(){return this.menuElements.find((t=>0===t.htmlTabindex))}openDrawer(){this.drawerOpen=!0,this.menuElements.forEach(((t,i)=>t.htmlTabindex=0===i?0:-1)),setTimeout((()=>this.menuElements[0].setFocus()),400)}closeDrawer(){this.drawerOpen=!1,setTimeout((()=>this.burgerButton.focus()),100)}collectMenuElements(){this.menuElements=Array.from(this.hostElement.querySelectorAll('[slot="menu"]')),this.menuElements.forEach(((t,i)=>t.htmlTabindex=0===i?0:-1)),this.menuLength=this.menuElements.length,this.enableOffcanvas||(this.menuWidth=this.menuElements.reduce(((t,i)=>t+i.getBoundingClientRect().width),0)+32*(this.menuLength-1)),this.setMenuFloatingMode()}setupMenuResizeObserver(){this.enableOffcanvas||(this.menuResizeObserver=new ResizeObserver((t=>{if(this.isMobile)return void(this.enableOffcanvas=!0);const i=t[0].contentBoxSize[0].inlineSize;0!==this.menuWidth&&(this.menuWidth>i&&!this.enableOffcanvas?this.enableOffcanvas=!0:this.menuWidth<=i&&this.enableOffcanvas&&(this.enableOffcanvas=!1))})),this.menuResizeObserver.observe(this.container))}hasSlot(t){return null!==this.hostElement.querySelector(`[slot="${t}"]`)}moveFocus(t,i){t.htmlTabindex=-1,i.setFocus()}onOffcanvasKeydown(t){var i,e;if(t.key!==r.TAB||!this.drawerOpen)return;const s=t.target.closest("z-menu");s?(t.preventDefault(),t.stopPropagation(),s.htmlTabindex=0,this.closeDrawerButton.focus()):t.target===this.closeDrawerButton&&(t.preventDefault(),t.stopPropagation(),t.shiftKey?(null!==(i=this.menuElements.filter((t=>t.open)).pop())&&void 0!==i?i:this.menuElements[this.menuLength-1]).setFocus():(null!==(e=this.menuElements.find((t=>t.open)))&&void 0!==e?e:this.menuElements[0]).setFocus())}manageMenus(t){const i=this.menuElements.find((i=>O(i,t.target)));i?this.menuElements.forEach((t=>{t!==i&&(t.htmlTabindex=-1,this.drawerOpen||(t.open=!1))})):this.drawerOpen||this.menuElements.forEach((t=>{t.open=!1}))}handleKeydown(t){var i,e;if(t.key===r.ESC&&this.drawerOpen)return void this.closeDrawer();if(!this.menuElements.some((i=>i.contains(t.target))))return;const s=this.focusableMenu,a=this.menuElements.indexOf(s);let n;return t.key===r.ARROW_RIGHT&&!s.verticalContext||t.key===r.ARROW_DOWN&&s.verticalContext?n=null!==(i=this.menuElements[a+1])&&void 0!==i?i:this.menuElements[0]:(t.key===r.ARROW_LEFT&&!s.verticalContext||t.key===r.ARROW_UP&&s.verticalContext)&&(n=null!==(e=this.menuElements[a-1])&&void 0!==e?e:this.menuElements[this.menuLength-1]),n?t.key===r.ARROW_UP&&s.verticalContext&&n.open?(s.htmlTabindex=-1,void n.focusLastItem()):void this.moveFocus(s,n):void 0}renderSeachbar(){if(!this.isMobile||this.searchPageUrl||!this._stuck)return this.searchPageUrl&&(this.isMobile||this.isTablet)?t("z-button",{class:"search-page-button",variant:c.SECONDARY,href:this.searchPageUrl,icon:"search",size:o.X_SMALL}):t("z-searchbar",{value:this.searchString,placeholder:this.searchPlaceholder,showSearchButton:!0,searchButtonIconOnly:this.isMobile||this.isTablet,size:o.X_SMALL,variant:c.SECONDARY,preventSubmit:this.searchString.length<3,onSearchTyping:t=>this.searchString=t.detail})}renderProductLogos(){return t(i,null,this.enableZLogo&&t("span",{class:"z-logo"},t("img",{alt:"Logo Zanichelli"})),this.hostElement.querySelector("[slot='product-logo']")&&t("span",{class:"product-logo"},t("slot",{name:"product-logo"})))}renderMenuButton(){return this.menuLength>0&&(this.enableOffcanvas||this._stuck||this.isMobile)&&t("button",{ref:t=>this.burgerButton=t,class:"drawer-trigger","aria-label":"Apri menu","aria-haspopup":"menu","aria-expanded":`${this.drawerOpen}`,"aria-controls":"offcanvas-menu",onClick:this.openDrawer},t("z-icon",{name:"burger-menu"}))}renderOffcanvas(){return t("z-offcanvas",{id:"offcanvas-menu",variant:h.OVERLAY,transitiondirection:l.RIGHT,open:this.drawerOpen,onCanvasOpenStatusChanged:t=>this.drawerOpen=t.detail,onKeyDown:this.onOffcanvasKeydown},t("div",{slot:"canvasContent"},t("button",{ref:t=>this.closeDrawerButton=t,class:"drawer-close","aria-label":"Chiudi menu",onClick:this.closeDrawer,"aria-hidden":`${!this.drawerOpen}`,disabled:!this.drawerOpen},t("z-icon",{name:"close"})),t("div",{class:"drawer-content","aria-hidden":`${!this.drawerOpen}`},t("slot",{name:"menu",onSlotchange:this.collectMenuElements}))))}renderStuck(){return t("div",{class:"heading-stuck"},t("div",{class:"heading-stuck-content"},this.renderMenuButton(),t("div",{class:"heading-title"},this.renderProductLogos(),t("div",{class:"stucked-title"},t("slot",{name:"stucked-title"},this.title))),this.enableSearch&&this.renderSeachbar()))}constructor(t){e(this,t),this.sticking=s(this,"sticking",7),this.stuck=!1,this.enableOffcanvas=!1,this.enableSearch=!1,this.searchPlaceholder="Cerca",this.searchString="",this.enableZLogo=!0,this.drawerOpen=!1,this._stuck=!1,this.isMobile=!0,this.isTablet=!1,this.menuElements=[],this.stuckIntersecObserver=H?new IntersectionObserver((([t])=>{this._stuck=!t.isIntersecting}),{threshold:.5}):void 0,this.openDrawer=this.openDrawer.bind(this),this.closeDrawer=this.closeDrawer.bind(this),this.collectMenuElements=this.collectMenuElements.bind(this),this.onOffcanvasKeydown=this.onOffcanvasKeydown.bind(this)}componentWillLoad(){this.collectMenuElements();const t=window.matchMedia(`(max-width: ${C.MOBILE}px)`);this.isMobile=t.matches,t.addEventListener("change",(t=>this.isMobile=t.matches));const i=window.matchMedia(`(min-width: ${C.MOBILE+1}px) and (max-width: ${C.TABLET}px)`);this.isTablet=i.matches,i.addEventListener("change",(t=>this.isTablet=t.matches))}componentDidLoad(){this.onStuckChange(),this.setupMenuResizeObserver()}disconnectedCallback(){var t;null===(t=this.menuResizeObserver)||void 0===t||t.disconnect()}render(){const i=this.hasSlot("top-subtitle");return t(a,{key:"dc030db81c271ed36850fb287d29ace79851d4a1","menu-length":this.menuLength},t("div",{key:"49d34b66c216a92c80eb9216fa52e48add4cee0a",class:{"heading-panel":!0,"has-menubar":this.menuLength>0&&!this.enableOffcanvas},ref:t=>this.container=t},t("div",{key:"29639ab6d0620491c69651139ddf8311e2177122",class:{"heading-container":!0,"has-top-subtitle":i}},(!this.enableSearch&&this.isMobile||!this.isMobile)&&t("div",{key:"bc685fb828a89777bec6dcc5bc754534f83361cd",class:{"top-subtitle":!0,"has-product-logo":i&&this.hasSlot("product-logo")}},t("slot",{key:"cb2b1468f4b34d11dbf444f2cde0c7cce86cbd1e",name:"top-subtitle"})),t("div",{key:"80036c45fcbd3d490b85f653efb35010b1639b6f",class:"heading-title"},t("slot",{key:"bc4a0397893534c0dac99e081ef0ba5d6db2ecd3",name:"menu-button"},this.renderMenuButton()),!this._stuck&&this.renderProductLogos(),t("slot",{key:"a72c2c657ae430e0cc6b134e843fec1c983e7777",name:"title"}),this.enableSearch&&!this.isMobile&&this.renderSeachbar()),this.enableSearch&&this.isMobile&&this.renderSeachbar()),t("nav",{key:"b620b02b62b99b13e6b4c0c1be0997d3af448aeb",class:"menu-container","aria-label":this.title||void 0},this.canShowMenu&&t("div",{key:"6c1887c703734a0e1ab4b77b821dad2e9bc0c3df",role:"menubar","aria-label":this.title||void 0},t("slot",{key:"2daaf3501852cab84cf2b3a85a770553dc70a101",name:"menu",onSlotchange:this.collectMenuElements})))),this.renderOffcanvas(),this._stuck&&this.renderStuck())}get hostElement(){return n(this)}static get watchers(){return{_stuck:[{onStuck:0}],drawerOpen:[{setMenuFloatingMode:0}],stuck:[{onStuckChange:0}]}}};T.style=':host{position:relative;display:block;box-shadow:var(--shadow-2)}:host,*{box-sizing:border-box}.heading-panel{--title-line-height:1.333;--title-font-size:var(--font-size-6);position:relative;display:flex;width:100%;max-width:var(--app-header-content-max-width, 100%);flex-direction:column;flex-grow:0;flex-shrink:0;align-items:baseline;padding:calc(var(--space-unit) * 2);margin:0 auto;background:var(--app-header-bg, var(--color-surface01))}:host(:empty) .heading-panel{padding:0}.heading-container{position:relative;z-index:1;display:flex;width:100%;max-width:100%;flex:1 auto;flex-direction:column;justify-content:flex-start}.heading-panel.has-menubar{padding-bottom:0}.heading-panel .heading-container{flex-direction:column-reverse}:host([enable-search]) .heading-panel .heading-container{flex-direction:column}:host([enable-search][search-page-url]) .heading-panel .heading-container{flex-direction:row}.heading-title{display:flex;width:100%;flex-direction:row;align-items:flex-start}.heading-title:not(:last-child){margin-right:var(--space-unit)}.z-logo,.search-page-button{display:flex;height:calc(var(--title-font-size) * var(--title-line-height));align-items:center}.z-logo img{height:24px;margin:0 var(--space-unit) 0 0;content:url(\'data:image/svg+xml,<svg width="61" height="32" viewBox="0 0 61 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.9874 32C7.1595 32 0 24.8349 0 16C0 7.16513 7.1595 0 15.9874 0H45.0126C53.8405 0 61 7.16513 61 16C61 24.8349 53.8405 32 45.0126 32H15.9874Z" fill="%23E2011A"/><path d="M58.5435 15.9992C58.5435 23.4743 52.4892 29.5403 45.0129 29.5403C37.5367 29.5403 31.4824 23.4813 31.4824 15.9992C31.4824 8.51701 37.5367 2.45801 45.0129 2.45801C52.4892 2.45801 58.5435 8.51701 58.5435 15.9992Z" fill="white"/><path d="M40.7107 8.01862H49.8976V11.3158L44.139 21.7077H50.0384V24.6457H39.9785V21.4048L45.7371 10.9636H40.7107V8.01862Z" fill="%23E2011A"/><path d="M12.2914 24.6449C10.982 24.6449 10.271 23.8136 10.271 22.6722V7.04565H12.1718V22.9822H13.981V24.6449H12.2914Z" fill="white"/><path d="M25.6461 24.6448C24.2452 24.6448 23.675 23.7853 23.5342 22.6439H23.4145C22.8935 24.1446 21.5841 24.9266 19.8735 24.9266C17.2828 24.9266 15.7622 23.4964 15.7622 21.2137C15.7622 18.931 17.4236 17.6206 20.9928 17.6206H23.4145V16.4088C23.4145 14.6756 22.4641 13.7245 20.5141 13.7245C19.0428 13.7245 18.0642 14.4361 17.4025 15.5563L16.262 14.4854C16.9308 13.175 18.4021 12.0829 20.6126 12.0829C23.5623 12.0829 25.3152 13.6259 25.3152 16.2186V22.9751H26.7162V24.6378H25.6461V24.6448ZM23.4145 21.0799V19.0578H20.8942C18.733 19.0578 17.7545 19.7272 17.7545 20.9108V21.411C17.7545 22.6228 18.7049 23.3132 20.1762 23.3132C22.0558 23.3132 23.4074 22.341 23.4074 21.0799H23.4145Z" fill="white"/></svg>\')}.product-logo{display:none}.product-logo ::slotted([slot="product-logo"]){width:32px;height:32px;margin-right:var(--space-unit)}.product-logo ::slotted([slot="product-logo"]) img{width:100%;height:100%;object-fit:cover}::slotted([slot="title"]),::slotted([slot="stucked-title"]),.stucked-title{margin:0;color:var(--app-header-text-color, var(--color-default-text));font-family:var(--font-family-serif);font-weight:var(--font-sb)}::slotted([slot="title"]){display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;font-size:var(--title-font-size);-webkit-line-clamp:2;line-clamp:2;line-height:var(--title-line-height);text-overflow:ellipsis}::slotted(a:is([slot="title"],[slot="stucked-title"])){text-decoration:none}:host([enable-search]) ::slotted([slot="title"])+*{margin-left:calc(var(--space-unit) * 2)}:host([enable-offcanvas]:not([menu-length="0"])) .top-subtitle{padding-left:calc(var(--space-unit) * 4 + var(--space-unit))}::slotted([slot="top-subtitle"]){display:-webkit-box;overflow:hidden;max-width:80%;margin:0;-webkit-box-orient:vertical;color:var(--color-default-text);font-family:var(--font-family-sans);font-size:var(--font-size-2);font-style:italic;font-weight:var(--font-rg);-webkit-line-clamp:2;line-clamp:2}.search-page-button{margin-left:auto}.menu-container{display:flex;flex:1 auto;column-gap:calc(var(--space-unit) * 4)}.menu-container:focus:focus-visible{outline:none}:host([menu-length="0"]) .menu-container,.menu-container:empty{display:none}.menu-container ::slotted([open]){position:relative;z-index:3}.menu-container ::slotted([slot="menu"]:not(:last-child))::after{position:absolute;top:calc(1.5em / 2);right:calc(var(--space-unit) * -2);width:var(--border-size-small);height:1em;background-color:var(--color-default-icon);content:"";font-size:var(--font-size-3);transform:translateY(-50%)}z-searchbar{z-index:0;display:flex;width:100%;align-items:center}.heading-stuck{position:fixed;z-index:20;top:var(--app-header-top-offset, 48px);left:0;width:100%;max-width:100%;animation:slide-stuck-heading-in 250ms ease-out;background:var(--app-header-stucked-bg, var(--color-surface01));box-shadow:var(--shadow-2);color:var(--app-header-stucked-text-color, var(--color-default-text))}.heading-stuck-content{display:flex;max-width:var(--app-header-content-max-width, 100%);align-items:center;padding:var(--space-unit) var(--grid-margin);margin:0 auto}.heading-stuck .heading-title{--title-font-size:var(--font-size-5);--title-line-height:1.4;overflow:hidden;align-items:center}.heading-stuck .stucked-title{overflow:hidden;font-size:var(--title-font-size);line-height:var(--title-line-height);text-overflow:ellipsis;white-space:nowrap}.drawer-trigger,::slotted([slot="menu-button"]){display:flex;height:calc(var(--title-font-size) * var(--title-line-height));align-items:center;padding:0;border:0;margin-right:var(--space-unit);appearance:none;background:none;border-radius:0;color:inherit;cursor:pointer;outline:none}.drawer-trigger:focus:focus-visible z-icon{box-shadow:var(--shadow-focus-primary)}.drawer-trigger z-icon{--z-icon-width:calc(var(--space-unit) * 4);--z-icon-height:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.drawer-content{display:none}z-offcanvas{--z-offcanvas--top-space:var(--app-header-top-offset)}z-offcanvas[open] .drawer-content{display:flex;width:100%;flex:1 auto;flex-direction:column}z-offcanvas[open] .drawer-content ::slotted(z-menu){width:100%}.drawer-close{--z-icon-width:calc(var(--space-unit) * 4);--z-icon-height:calc(var(--space-unit) * 4);padding:0;border:0;margin:var(--space-unit) 0 calc(var(--space-unit) * 2.5);appearance:none;background:transparent;border-radius:0;cursor:pointer;outline:none}.drawer-close z-icon{fill:var(--color-default-icon)}.drawer-close:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}@media (max-width: 767px){:host([enable-search]) .heading-panel .heading-container{row-gap:calc(var(--space-unit) * 1.5)}}@media (min-width: 768px){.heading-panel{--title-font-size:var(--font-size-9);padding:calc(var(--space-unit) * 1.5) var(--grid-margin) calc(var(--space-unit) * 1.25)}:host([enable-search][search-page-url]) .heading-panel .heading-container{flex-direction:column}.heading-panel .heading-container{flex-direction:column;margin-right:auto}.z-logo img{height:32px}.product-logo{display:flex;height:calc(var(--title-font-size) * var(--title-line-height));align-items:center}.has-top-subtitle .z-logo{display:none}.top-subtitle.has-product-logo{padding-left:calc(32px + var(--space-unit))}z-searchbar{width:30%;height:calc(var(--title-font-size) * var(--title-line-height));margin-left:auto}.menu-container{flex:initial}.menu-container>[role="menubar"]{display:contents}:host(:not([enable-offcanvas])) .menu-container{margin-top:calc((var(--space-unit) * 1.75))}:host(:not([enable-offcanvas])) .heading-container .drawer-trigger{display:none}.heading-stuck .heading-title{--title-font-size:var(--font-size-8);--title-line-height:1.5}.heading-stuck-content{padding:6px var(--grid-margin)}:host(:not([enable-offcanvas],[menu-length="0"])){padding-left:0}}@media (min-width: 1152px){z-searchbar{min-width:calc(var(--space-unit) * 45)}}@keyframes slide-stuck-heading-in{0%{transform:translate3d(0, -100%, 0)}100%{transform:none}}';const F=class{constructor(t){e(this,t),this.ariaLabel=void 0,this.role="",this.disabled=!1,this.type=d.BUTTON,this.variant=c.PRIMARY,this.iconPosition=p.LEFT,this.size=o.BIG,this.hasText=!1}componentWillLoad(){var t;this.hasText=!!(null===(t=this.hostElement.textContent)||void 0===t?void 0:t.trim())}get attributes(){return{id:this.htmlid,class:{"z-button--container":!0,"z-button--has-text":this.hasText}}}renderIcon(){return this.icon&&t("z-icon",{name:this.icon})}render(){return this.href?t("a",Object.assign({},this.attributes,{"aria-label":this.ariaLabel||void 0,href:this.href,target:this.target}),this.renderIcon(),t("slot",null)):t("button",Object.assign({},this.attributes,{"aria-label":this.ariaLabel||void 0,name:this.name,type:this.type,disabled:this.disabled,role:this.htmlrole||this.role||void 0}),this.renderIcon(),t("slot",null))}get hostElement(){return n(this)}};F.style='.sc-z-button-h{display:inline-block;--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:0;--z-icon-left-margin:0}[disabled].sc-z-button-h:not([disabled="false"]){pointer-events:none}.sc-z-button-h .z-button--container.sc-z-button{display:inline-flex;width:100%;box-sizing:border-box;align-items:center;justify-content:center;padding:0;border-width:var(--border-size-medium);border-style:solid;border-radius:var(--border-radius);column-gap:var(--space-unit);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);letter-spacing:0.3px;line-height:1;outline:none;text-decoration:none;text-transform:uppercase;white-space:nowrap}.sc-z-button-h .z-button--container.sc-z-button:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-button-h .z-button--container.z-button--has-text.sc-z-button{min-width:calc(var(--space-unit) * 8);padding:0 calc(var(--space-unit) * 2)}[icon-position="right"].sc-z-button-h .z-button--container.z-button--has-text.sc-z-button{flex-direction:row-reverse}[size="big"].sc-z-button-h .z-button--container.sc-z-button{min-width:44px;height:44px}[size="small"].sc-z-button-h .z-button--container.sc-z-button{min-width:36px;height:36px}[size="x-small"].sc-z-button-h .z-button--container.sc-z-button{min-width:32px;height:32px}[variant="primary"].sc-z-button-h .z-button--container.sc-z-button{border-color:var(--color-primary01);background-color:var(--color-primary01);color:var(--color-text-inverse)}@media (hover: hover){[variant="primary"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-hover-primary);background-color:var(--color-hover-primary);color:var(--color-text-inverse)}}[variant="primary"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-pressed-primary);background-color:var(--color-pressed-primary);box-shadow:var(--shadow-2);color:var(--color-text-inverse)}[variant="primary"][disabled].sc-z-button-h:not([disabled="false"]) .z-button--container.sc-z-button{border-color:var(--color-disabled01);background-color:var(--color-disabled01);color:var(--color-disabled03)}[variant="secondary"].sc-z-button-h .z-button--container.sc-z-button{border-color:var(--color-primary01);background-color:var(--color-button-secondary);color:var(--color-primary01)}@media (hover: hover){[variant="secondary"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-hover-primary);background-color:var(--color-button-secondary);color:var(--color-hover-primary)}}[variant="secondary"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-pressed-primary);background-color:var(--color-button-secondary);box-shadow:var(--shadow-2);color:var(--color-pressed-primary)}[variant="secondary"][disabled].sc-z-button-h:not([disabled="false"]) .z-button--container.sc-z-button{border-color:var(--color-disabled01);background-color:var(--color-button-secondary);color:var(--color-disabled03)}[variant="tertiary"].sc-z-button-h .z-button--container.sc-z-button{border-color:var(--color-primary02);background-color:var(--color-primary02);color:var(--color-primary01)}@media (hover: hover){[variant="tertiary"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-primary03);background-color:var(--color-primary03);color:var(--color-hover-primary)}}[variant="tertiary"].sc-z-button-h .z-button--container.sc-z-button:focus:focus-visible{border-color:var(--color-primary02);background-color:var(--color-primary02);color:var(--color-primary01)}[variant="tertiary"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-primary02);background-color:var(--color-primary02);box-shadow:var(--shadow-2);color:var(--color-primary01)}[variant="tertiary"][disabled].sc-z-button-h:not([disabled="false"]) .z-button--container.sc-z-button{border-color:var(--color-disabled01);background-color:var(--color-disabled01);color:var(--color-disabled03)}';const R=class{constructor(t){e(this,t),this.size=u.SMALL,this.color="gray200",this.orientation=b.HORIZONTAL}render(){return t(a,{key:"2be45be46ca78f9c49d78bb39d88a49a3e226074",class:`divider-${this.size} divider-${this.orientation}`,style:{backgroundColor:`var(--${this.color})`}})}};R.style=".sc-z-divider-h{display:block;padding:0;margin:0}.divider-horizontal.sc-z-divider-h{width:100%}.divider-vertical.sc-z-divider-h{height:100%}.divider-small.divider-horizontal.sc-z-divider-h{height:var(--border-size-small)}.divider-medium.divider-horizontal.sc-z-divider-h{height:var(--border-size-medium)}.divider-large.divider-horizontal.sc-z-divider-h{height:var(--border-size-large)}.divider-small.divider-vertical.sc-z-divider-h{width:var(--border-size-small)}.divider-medium.divider-vertical.sc-z-divider-h{width:var(--border-size-medium)}.divider-large.divider-vertical.sc-z-divider-h{width:var(--border-size-large)}";const A=class{constructor(t){e(this,t)}selectPathOrPolygon(i){return(null==i?void 0:i.startsWith("M"))?t("path",{d:i}):t("polygon",{points:i})}renderBaseIcon(){return t("svg",{id:this.iconid||void 0,fill:this.fill?`var(--${this.fill})`:void 0,viewBox:"0 0 1000 1000",width:this.width,height:this.height},this.selectPathOrPolygon(M[this.name]))}render(){return t(a,{key:"65da13cefdf22f1935d9e1dbc171522955b24f1b","aria-hidden":"true"},L.includes(this.name)?t("div",{class:"icon-wrapper"},t("svg",{class:"color-indicator",fill:this.indicatorColor||"#FFFFFF00",viewBox:"0 0 1000 1000",width:this.width,height:this.height},this.selectPathOrPolygon(M["picker-color"])),this.renderBaseIcon()):this.renderBaseIcon())}};A.style=":host{display:inline;margin-right:var(--z-icon-right-margin, 0);margin-left:var(--z-icon-left-margin, 0);line-height:0;vertical-align:middle}.icon-wrapper{position:relative;z-index:0;display:inline-block}svg:not([width]){width:var(--z-icon-width, 1.125rem)}svg:not([height]){height:var(--z-icon-height, 1.125rem)}.icon-wrapper svg.color-indicator{position:absolute;z-index:-1;bottom:0;left:0}";const B=class{constructor(t){e(this,t),this.inputChange=s(this,"inputChange",7),this.startTyping=s(this,"startTyping",7),this.stopTyping=s(this,"stopTyping",7),this.inputCheck=s(this,"inputCheck",7),this.inputFocus=s(this,"inputFocus",7),this.inputBlur=s(this,"inputBlur",7),this.htmlid=`id-${j()}`,this.ariaLabel="",this.htmlAriaExpanded="",this.disabled=!1,this.readonly=!1,this.required=!1,this.checked=!1,this.message=!0,this.labelPosition=v.RIGHT,this.role="",this.hasclearicon=!0,this.size=o.BIG,this.isTyping=!1,this.passwordHidden=!0,this.typingtimeout=300}inputCheckListener(t){const i=t.detail;this.type===f.RADIO&&i.type===f.RADIO&&i.name===this.name&&i.id!==this.htmlid&&(this.checked=!1)}async isChecked(){switch(this.type){case f.CHECKBOX:case f.RADIO:return this.checked;default:return console.warn("`isChecked` method is only available for type `checkbox` and `radio`"),!1}}emitInputChange(t){let i;this.isTyping||this.emitStartTyping(),i=this.getValidity(this.type===f.TEXTAREA?"textarea":"input"),this.value=t,this.inputChange.emit({value:t,validity:i}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.emitStopTyping(this.value,i)}),this.typingtimeout)}emitStartTyping(){this.isTyping=!0,this.startTyping.emit()}emitStopTyping(t,i){this.isTyping=!1,this.stopTyping.emit({value:t,validity:i})}emitInputCheck(t){this.inputCheck.emit({id:this.htmlid,checked:t,type:this.type,name:this.name,value:this.value,validity:this.getValidity("input")})}emitInputFocus(){this.inputFocus.emit({id:this.htmlid})}emitInputBlur(){this.inputBlur.emit({id:this.htmlid})}getValidity(t){return this.hostElement.querySelector(t).validity}getTextAttributes(){return{id:this.htmlid,name:this.name,placeholder:this.placeholder,value:this.value,disabled:this.disabled,readonly:this.readonly,required:this.required,title:this.htmltitle,minlength:this.minlength,maxlength:this.maxlength,class:{[`input-${this.status}`]:!!this.status},autocomplete:this.autocomplete,onInput:t=>this.emitInputChange(t.target.value)}}getNumberAttributes(t){if(t==f.NUMBER)return{min:this.min,max:this.max,step:this.step}}getPatternAttribute(t){if(t==f.PASSWORD||t==f.TEXT||t==f.TEL||t==f.SEARCH||t==f.URL||t==f.EMAIL)return{pattern:this.pattern}}getRoleAttribute(){return this.role?{role:this.role}:{}}inputHasMessage(){return!1!==S(this.message)&&!0!==S(this.message)}getAriaAttrubutes(){const t=this.htmlAriaExpanded?{"aria-expanded":this.htmlAriaExpanded}:{},i=this.htmlAriaControls?{"aria-controls":this.htmlAriaControls}:{},e=this.htmlAriaAutocomplete?{"aria-autocomplete":this.htmlAriaAutocomplete}:{},s=this.htmlAriaActivedescendant?{"aria-activedescendant":this.htmlAriaActivedescendant}:{},a=this.htmlAriaDescribedBy||this.inputHasMessage()?{"aria-describedby":this.htmlAriaDescribedBy||`${this.htmlid}-message`}:{},n=this.status===z.ERROR?{"aria-invalid":"true"}:{};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),i),e),s),a),n)}getFocusBlurAttributes(){return{onFocus:()=>this.emitInputFocus(),onBlur:()=>this.emitInputBlur()}}renderInputText(i=f.TEXT){const e=this.ariaLabel?{"aria-label":this.ariaLabel}:{},s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.getTextAttributes()),this.getNumberAttributes(i)),this.getPatternAttribute(i)),e),this.getRoleAttribute()),this.getAriaAttrubutes()),this.getFocusBlurAttributes());return(this.icon||i===f.PASSWORD)&&Object.assign(s.class,{"has-icon":!0}),this.hasclearicon&&i!=f.NUMBER&&Object.assign(s.class,{"has-clear-icon":!0}),t("div",{class:"text-wrapper"},this.renderLabel(),t("div",null,t("input",Object.assign({type:i!==f.PASSWORD||this.passwordHidden?i:f.TEXT},s,{ref:t=>this.inputRef=t})),this.renderIcons()),this.renderMessage())}renderLabel(){if(this.label)return t("label",{class:"z-label body-5-sb",id:`${this.htmlid}_label`,htmlFor:this.htmlid},this.label)}renderIcons(){return t("span",{class:"icons-wrapper"},this.renderResetIcon(),this.renderIcon())}renderIcon(){return this.type===f.PASSWORD?this.renderShowHidePassword():this.icon?t("z-icon",{name:this.icon,class:{[this.size]:!0,"input-icon":!0}}):void 0}renderResetIcon(){let i=!1;return this.hasclearicon&&this.value&&!this.disabled&&!this.readonly&&this.type!=f.NUMBER||(i=!0),t("button",{type:"button",class:{"reset-icon":!0,"input-icon":!0,hidden:i},"aria-label":"cancella il contenuto dell'input",onClick:()=>{this.inputRef.value="",this.emitInputChange("")}},t("z-icon",{name:"multiply",class:this.size}))}renderShowHidePassword(){return t("button",{type:"button",class:"input-icon toggle-password-icon",disabled:this.disabled,"aria-label":this.passwordHidden?"mostra password":"nascondi password",onClick:()=>this.passwordHidden=!this.passwordHidden},t("z-icon",{name:this.passwordHidden?"view-filled":"view-off-filled",class:this.size}))}renderMessage(){if(!1!==S(this.message))return t("z-input-message",{"html-id":`${this.htmlid}-message`,message:!0===S(this.message)?void 0:this.message,status:this.status,class:this.size,disabled:this.disabled})}renderTextarea(){const e=this.getTextAttributes(),s=this.getAriaAttrubutes();return t(i,null,this.renderLabel(),t("div",{class:Object.assign(Object.assign({},e.class),{"textarea-wrapper":!0,readonly:!!e.readonly})},t("textarea",Object.assign({},e,s,{class:Object.assign(Object.assign({},e.class),{"z-scrollbar":!0}),"aria-label":this.ariaLabel||void 0},this.getRoleAttribute()))),this.renderMessage())}handleCheck(t){this.checked=t.target.checked,this.emitInputCheck(this.checked)}renderCheckbox(){return t("div",{class:"checkbox-wrapper"},t("input",Object.assign({id:this.htmlid,type:"checkbox",name:this.name,checked:this.checked,disabled:this.disabled,readonly:this.readonly,required:this.required,onChange:this.handleCheck.bind(this),value:this.value},this.getRoleAttribute(),this.getFocusBlurAttributes())),t("label",{htmlFor:this.htmlid,class:{"checkbox-label":!0,after:this.labelPosition===v.RIGHT,before:this.labelPosition===v.LEFT}},t("z-icon",{name:this.checked?"checkbox-checked":"checkbox",class:this.size}),this.label&&t("span",{innerHTML:this.label})))}renderRadio(){return t("div",{class:"radio-wrapper"},t("input",Object.assign({id:this.htmlid,type:"radio",name:this.name,checked:this.checked,disabled:this.disabled,readonly:this.readonly,onChange:this.handleCheck.bind(this),value:this.value},this.getRoleAttribute(),this.getFocusBlurAttributes())),t("label",{htmlFor:this.htmlid,class:{"radio-label":!0,after:this.labelPosition===v.RIGHT,before:this.labelPosition===v.LEFT}},t("z-icon",{name:this.checked?"radio-button-checked":"radio-button",class:this.size}),this.label&&t("span",{innerHTML:this.label})))}render(){let i;switch(this.type){case f.TEXTAREA:i=this.renderTextarea();break;case f.CHECKBOX:i=this.renderCheckbox();break;case f.RADIO:i=this.renderRadio();break;default:i=this.renderInputText(this.type)}return t(a,{key:"e3f830979b2d6306b19c5a0357ca48b42d142a74"},i)}get hostElement(){return n(this)}};B.style='.sc-z-input-h{display:inline-block;width:inherit}.sc-z-input-h *.sc-z-input{box-sizing:border-box}input.sc-z-input::-ms-clear,input.sc-z-input::-ms-reveal{display:none}input[type="search"].sc-z-input::-webkit-search-decoration,input[type="search"].sc-z-input::-webkit-search-cancel-button,input[type="search"].sc-z-input::-webkit-search-results-button,input[type="search"].sc-z-input::-webkit-search-results-decoration{display:none}input.sc-z-input,textarea.sc-z-input{background:var(--color-form-background);fill:var(--color-form-default-icon);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg);outline:none}input.sc-z-input,.textarea-wrapper.sc-z-input{border:var(--border-size-small) solid var(--color-form-surface04);border-radius:var(--border-radius-small);color:var(--color-form-default-text)}[size="small"].sc-z-input-h input.sc-z-input,[size="small"].sc-z-input-h textarea.sc-z-input,[size="x-small"].sc-z-input-h input.sc-z-input,[size="x-small"].sc-z-input-h textarea.sc-z-input{font-size:var(--font-size-2)}.cursor-select.sc-z-input-h input.sc-z-input{cursor:pointer}input.sc-z-input:not([readonly]):hover,.textarea-wrapper.sc-z-input:not(.readonly):hover{outline:var(--border-size-medium) solid var(--color-surface04);outline-offset:-2px}.sc-z-input-h:not(.active-select) input.sc-z-input:focus:focus-visible,.sc-z-input-h:not([readonly="true"]) .textarea-wrapper.sc-z-input:focus-within{border-color:var(--color-form-active-primary);box-shadow:var(--shadow-focus-primary);color:var(--color-form-active-primary)}.sc-z-input-h input.sc-z-input:focus:focus-visible:hover,.textarea-wrapper.sc-z-input:not(.readonly):focus-within:hover{outline-color:var(--color-form-active-primary)}.sc-z-input-h input.sc-z-input:focus:focus-visible+.icons-wrapper.sc-z-input{fill:var(--color-form-active-primary)}.active-select.sc-z-input-h input.sc-z-input{border:var(--border-size-small) solid var(--color-form-active-primary)}.cursor-select.sc-z-input-h input.sc-z-input:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-input-h input[readonly].sc-z-input:focus:focus-visible{border-color:var(--color-form-surface03);box-shadow:none}.input-success.sc-z-input{border-color:var(--color-form-success01);background:var(--color-form-inverse-success)}.input-success.sc-z-input:focus:focus-visible+.icons-wrapper.sc-z-input,.input-success.sc-z-input+.icons-wrapper.sc-z-input{fill:var(--color-form-success01)}.input-error.sc-z-input{border-color:var(--color-form-hover-error);background:var(--color-form-inverse-error)}.input-error.sc-z-input:focus:focus-visible+.icons-wrapper.sc-z-input,.input-error.sc-z-input+.icons-wrapper.sc-z-input{fill:var(--color-form-hover-error)}.input-warning.sc-z-input{border-color:var(--color-form-hover-warning);background:var(--color-form-inverse-warning)}.input-warning.sc-z-input:focus:focus-visible+.icons-wrapper.sc-z-input,.input-warning.sc-z-input+.icons-wrapper.sc-z-input{fill:var(--color-form-hover-warning)}.sc-z-input:is(.input-success,.input-error.sc-z-input,.input-warning).sc-z-input:focus:focus-visible{color:var(--color-form-default-text)}.sc-z-input-h:not(.active-select) input[readonly].sc-z-input,.textarea-wrapper.readonly.sc-z-input{border-color:var(--color-form-surface03);fill:var(--color-form-disabled01-icon);pointer-events:none}[disabled].sc-z-input-h:not([disabled="false"]) input.sc-z-input,[disabled].sc-z-input-h:not([disabled="false"]) .textarea-wrapper.sc-z-input,[disabled].sc-z-input-h:not([disabled="false"]) z-icon.sc-z-input{border-color:var(--color-form-disabled03);box-shadow:none;color:var(--color-form-disabled-text);fill:var(--color-form-disabled01-icon);pointer-events:none}[disabled].sc-z-input-h:not([disabled="false"]) input.sc-z-input:hover{border-width:var(--border-size-small)}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-form-placeholder-text)}.sc-z-input::-webkit-textarea-placeholder{color:var(--color-form-placeholder-text)}.sc-z-input:-ms-textarea-placeholder{color:var(--color-form-placeholder-text)}.sc-z-input::placeholder{color:var(--color-form-placeholder-text)}[disabled].sc-z-input-h:not([disabled="false"]) label.z-label.sc-z-input{color:var(--color-disabled03)}.text-wrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1;fill:var(--color-form-default-icon)}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);box-sizing:border-box;padding:0 calc(var(--space-unit) * 1.5);margin:0}[size="small"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4.5)}[size="x-small"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.sc-z-input,.text-wrapper.sc-z-input>div.sc-z-input>input.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 5.25)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 8)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input{position:absolute;z-index:2;top:50%;right:calc(var(--space-unit) * 1.5);display:flex;pointer-events:none;transform:translateY(-50%)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.input-icon.sc-z-input{display:flex;padding:0;border:0;background:none;color:inherit;font:inherit;pointer-events:initial}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>.input-icon.sc-z-input+.input-icon.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.input-icon.hidden.sc-z-input{display:none}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.reset-icon.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.toggle-password-icon.sc-z-input{cursor:pointer}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>.input-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>.input-icon.small.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>.input-icon.x-small.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.input-icon.sc-z-input:focus{box-shadow:var(--shadow-focus-primary);outline:none !important}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset;-webkit-text-fill-color:currentcolor}.textarea-wrapper.sc-z-input{width:100%;height:100%;padding:calc(var(--space-unit) * 1.5)}.textarea-wrapper.sc-z-input:not(.input-error,.input-success.sc-z-input,.input-warning).sc-z-input{background-color:var(--color-form-background)}textarea.sc-z-input{width:100%;min-height:132px;padding:0;border:none;margin:0;color:currentcolor;resize:none}.radio-wrapper.sc-z-input,.checkbox-wrapper.sc-z-input{position:relative;display:inline-flex;flex-direction:row;align-items:center;color:var(--color-default-text);fill:var(--color-primary01);font-family:var(--font-family-sans)}.radio-wrapper.sc-z-input:hover,.checkbox-wrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary-icon)}.radio-wrapper.sc-z-input>input.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input{position:absolute;z-index:-1;opacity:0;pointer-events:none}.radio-wrapper.sc-z-input .radio-label.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{display:inline-flex;align-items:center;margin:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1;text-transform:inherit}.radio-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkbox-label.sc-z-input{cursor:pointer}.radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{cursor:pointer;fill:inherit}[size="small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size="small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}[size="small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size="small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-2)}[size="x-small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size="x-small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:14px;--z-icon-height:14px}[size="x-small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size="x-small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-1)}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input{flex-direction:row}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input{flex-direction:row-reverse}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}[size="small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size="small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input,[size="x-small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size="x-small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}[size="small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size="small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input,[size="x-small"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size="x-small"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:calc(var(--space-unit) * 0.5)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input{border-radius:50%}.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{border-radius:var(--border-radius-small)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{box-shadow:var(--shadow-focus-primary)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input{color:var(--color-disabled03)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input>z-icon.sc-z-input{cursor:default;fill:var(--color-disabled01)}';const D=class{constructor(t){e(this,t),this.htmlId=`id-${j()}`,this.htmlRole="alert",this.statusIcons={success:"checkmark-circle",error:"multiply-circled",warning:"exclamation-circle"},this.statusRole={}}onMessageChange(){this.statusRole=this.htmlRole&&this.message&&this.status?{role:this.htmlRole}:{}}componentWillLoad(){this.onMessageChange()}render(){return t(a,Object.assign({key:"2a344b237779b36f3c6fcbd41d1b96c71c08d286"},this.statusRole),this.statusIcons[this.status]&&this.message&&t("z-icon",{key:"dbd6314657659bc49619393ae30a1fbfd8051635",name:this.statusIcons[this.status]}),t("span",{key:"fe39967aedc46a55bff2719881f793d0c0e9283b",id:this.htmlId,innerHTML:this.message}))}static get watchers(){return{message:[{onMessageChange:0}],status:[{onMessageChange:0}],htmlRole:[{onMessageChange:0}]}}};D.style=':host{display:flex;min-height:calc(var(--space-unit) * 2.5);align-items:start;margin-top:var(--space-unit);color:var(--color-default-text);fill:currentcolor;font-family:var(--font-family-sans);font-size:var(--font-size-2);letter-spacing:0.16px}:host(.small),:host(.x-small){margin-top:calc(var(--space-unit) * 0.5);font-size:var(--font-size-1)}:host([status="success"]){color:var(--color-hover-success)}:host([status="error"]){color:var(--color-hover-error)}:host([status="warning"]){color:var(--color-hover-warning)}:host(:focus){outline:none}:host>z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);--z-icon-right-margin:var(--space-unit);margin-top:calc(var(--space-unit) * 0.25)}:host(.small)>z-icon,:host(.x-small)>z-icon{--z-icon-width:14px;--z-icon-height:14px;--z-icon-right-margin:calc(var(--space-unit) * 0.5)}:host([disabled]){color:var(--color-disabled03);fill:var(--color-disabled03)}';const V=class{constructor(t){e(this,t),this.size=m.MEDIUM,this.listType=g.NONE,this.role="list"}setChildrenSizeType(){const t=this.host.children;for(let i=0;i<t.length;i++)t[i].setAttribute("size",this.size),t[i].setAttribute("list-type",this.listType),t[i].setAttribute("list-element-position",(i+1).toString())}componentDidLoad(){this.setChildrenSizeType()}render(){return t(a,{key:"f34729eb14ef690bf0aeb7da4b406e955a66fbf7"},t("slot",{key:"82b4a9c72937797bb8f7e4141f7a4c609908c702"}))}get host(){return n(this)}};V.style=":host{display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}";const _=class{accessibleFocusHandler(t){this.listElementId===t.detail&&this.host.shadowRoot.getElementById(`z-list-element-id-${t.detail}`).focus()}constructor(t){e(this,t),this.accessibleFocus=s(this,"accessibleFocus",7),this.ariaDescendantFocus=s(this,"ariaDescendantFocus",7),this.clickItem=s(this,"clickItem",7),this.alignButton=x.LEFT,this.clickable=!1,this.dividerColor="color-surface03",this.dividerType=w.NONE,this.dividerSize=u.SMALL,this.expandable=!1,this.expandableStyle=y.ACCORDION,this.size=m.MEDIUM,this.color="none",this.disabled=!1,this.listElementPosition="0",this.listType=g.NONE,this.role="listitem",this.htmlTabindex=0,this.showInnerContent=!1,this.openElementConfig={accordion:{open:"minus-circled",close:"plus-circled"},menu:{open:"chevron-up",close:"chevron-down"}},this.handleClick=this.handleClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}handleClick(){this.disabled||(this.clickItem.emit(this.listElementId),this.expandable&&(this.showInnerContent=!this.showInnerContent))}handleKeyDown(t){const i=t.code===r.ENTER;switch(t.code){case r.ARROW_DOWN:t.preventDefault(),this.accessibleFocus.emit(this.listElementId+1);break;case r.ARROW_UP:t.preventDefault(),this.accessibleFocus.emit(this.listElementId-1);break;case r.ENTER:t.preventDefault(),this.clickItem.emit(this.listElementId)}this.expandable&&i&&(this.showInnerContent=!this.showInnerContent)}renderExpandableButton(){return this.expandable?t("z-icon",{name:this.showInnerContent?this.openElementConfig[this.expandableStyle].open:this.openElementConfig[this.expandableStyle].close}):null}renderExpandedContent(){return this.expandable?t("div",{class:{"z-list-element-inner-container":!0,expanded:this.showInnerContent}},t("slot",{name:"inner-content"})):null}renderContent(){return this.listType===g.NONE?t("slot",null):this.listType===g.ORDERED?t("div",{class:"z-list-content-container"},t("div",null,this.listElementPosition,". "),t("slot",null)):this.listType===g.UNORDERED?t("div",{class:"z-list-content-container"},t("span",null,"• "),t("slot",null)):void 0}render(){return t(a,{key:"565d88705b517e78e6b9c05f5923903704472751","aria-expanded":this.expandable?this.showInnerContent:null,onClick:this.handleClick,onFocus:()=>this.ariaDescendantFocus.emit(this.listElementId),onKeyDown:this.handleKeyDown,clickable:this.clickable&&!this.disabled,tabIndex:this.hasTreeItems?void 0:this.htmlTabindex,role:this.hasTreeItems?"none":this.role},t("div",{key:"6a1ccb7af0b9455e52e4b0b7699722a2f2e98f01",class:this.hasTreeItems?"tree-element-container":"container",style:!this.disabled&&{color:`var(--${this.color})`},tabindex:"-1",id:`z-list-element-id-${this.listElementId}`,part:"list-item-container"},t("div",{key:"64a7d40c04afdb7cd9fc1f090926d7de10341ef4",class:"z-list-element-container"},this.renderExpandableButton(),this.renderContent()),this.renderExpandedContent()),this.dividerType===w.ELEMENT&&t("z-divider",{key:"e781e6f655bd4a7d0987fef33d8b426caa7ed0aa",class:{"z-tree-list-divider":this.hasTreeItems},color:this.dividerColor,size:this.dividerSize}))}get host(){return n(this)}};_.style=':host{outline:none}:host>.container{display:flex;box-sizing:border-box;flex-direction:column;justify-content:center;background-color:var(--background-color-list-element, var(--color-surface01));font-family:var(--font-family-sans);font-weight:var(--font-rg);outline:none}:host([size="small"])>.container{min-height:calc(var(--space-unit) * 4);padding:calc(var(--space-unit) / 2) 0}:host([size="medium"])>.container{min-height:calc(var(--space-unit) * 5);padding:var(--space-unit) 0}:host([size="medium"])>.tree-element-container{padding-top:0;padding-bottom:0}:host([size="large"])>.container{min-height:calc(var(--space-unit) * 7);padding:calc(var(--space-unit) * 2) 0}:host([size="x-large"])>.container{min-height:calc(var(--space-unit) * 9);padding:calc(var(--space-unit) * 3) 0}:host([expandable])>.container,:host([clickable])>.container{cursor:pointer}:host([expandable]:hover)>.container,:host([clickable]:hover)>.container{background-color:var(--background-hover-color-list-element, var(--color-background))}:host([expandable]:focus:focus-visible)>.container,:host([clickable]:focus:focus-visible)>.container{position:relative;z-index:1;box-shadow:var(--shadow-focus-primary)}:host([expandable]:active)>.container,:host([clickable]:active)>.container{background-color:var(--background-active-color-list-element, var(--color-background))}:host([align-button="left"][expandable])>.container>.z-list-element-container{display:flex}:host([align-button="right"][expandable])>.container>.z-list-element-container{display:flex;flex-direction:row-reverse;justify-content:space-between}:host([align-button="left"][expandable])>.container>.z-list-element-container>z-icon{margin-right:var(--space-unit)}:host([align-button="right"][expandable])>.container>.z-list-element-container>z-icon{margin-left:var(--space-unit)}:host>.container>.z-list-element-inner-container{display:none}:host>.container>.z-list-element-inner-container.expanded{display:block}.z-list-content-container{display:flex;align-items:center}:host .z-tree-list-divider{position:absolute;z-index:100;left:0}:host([disabled])>.container{color:var(--color-form-disabled03);cursor:default}';const E=class{constructor(t){e(this,t),this.size=m.MEDIUM,this.dividerType=w.NONE,this.dividerSize=u.SMALL,this.dividerColor="gray200",this.listType=g.NONE,this.role="group"}componentDidLoad(){const t=this.host.children;for(let i=0;i<t.length;i++)t.length-1>i&&(t[i].setAttribute("divider-type",this.dividerType),t[i].setAttribute("divider-size",this.dividerSize),t[i].setAttribute("divider-color",this.dividerColor)),t[i].setAttribute("size",this.size),t[i].setAttribute("list-type",this.listType),t[i].setAttribute("list-element-position",i.toString())}componentWillLoad(){this.hasHeader=!!this.host.querySelector('[slot="header-title"]')}render(){return t(a,{key:"a2b30a3071d35ba28d8e485ff92a88e537a85290"},t("div",{key:"528f17bfa6de4ccb252e86ec424b388f3d6d4ff0",class:{"z-list-group-header-container":!0,"has-header":this.hasHeader&&!this.hasTreeItems,"grouped-tree-list-header":this.hasTreeItems}},t("slot",{key:"318ed932865eef9943a0f7ff7ae87e02a2ce968e",name:"header-title"}),this.dividerType===w.HEADER&&t("z-divider",{key:"3d6d1ea46c42420c86b4f5f22bf5d5bcb1c5268f",color:this.dividerColor,size:this.dividerSize})),t("slot",{key:"f02a9b862b895d421be12ba4eb9625269f086e03"}))}get host(){return n(this)}};E.style=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.z-list-group-header-container{color:var(--gray700);font-size:var(--font-size-2);font-weight:var(--font-sb) !important;letter-spacing:0.16px;line-height:1.4}:host>.z-list-group-header-container.has-header{padding-top:calc(var(--space-unit) * 1.5);padding-bottom:var(--space-unit)}:host>.z-list-group-header-container.has-header>z-divider{margin-top:var(--space-unit)}:host>.grouped-tree-list-header{padding-top:calc(var(--space-unit) * 1.5);padding-bottom:var(--space-unit)}";const K=class{constructor(t){e(this,t),this.canvasOpenStatusChanged=s(this,"canvasOpenStatusChanged",7),this.variant=h.PUSHCONTENT,this.open=!1,this.transitiondirection=l.LEFT,this.skipLoadAnimation=!1,this.showBackdrop=!0,this.skipAnimation=!1,this.allFocusableElements=[],this.previouslyFocusedElement=null}getFocusableElements(){return this.canvasContent?Array.from(this.canvasContent.querySelectorAll("*")).filter((t=>{const i=t.getAttribute("tabindex");return!t.hasAttribute("disabled")&&!(null===t.offsetParent)&&(t.tabIndex>=0||"0"===i)})):[]}trapFocus(t){if(!this.allFocusableElements.length)return;const i=this.allFocusableElements[0],e=this.allFocusableElements[this.allFocusableElements.length-1],s=document.activeElement;t.shiftKey&&s===i&&(t.preventDefault(),e.focus()),t.shiftKey||s!==e||(t.preventDefault(),i.focus())}handleKeyDown(t){if(this.open)return t.key===r.ESC?(t.preventDefault(),void(this.open=!1)):void(t.key===r.TAB&&this.trapFocus(t))}stopEvent(t){this.open||(t.preventDefault(),t.stopPropagation())}handlePageOverflow(){document.body.style[this.variant===h.OVERLAY||this.transitiondirection===l.UP?"overflow-y":"overflow-x"]=this.open?"hidden":""}onOpenChanged(){var t,i,e;if(this.canvasOpenStatusChanged.emit(this.open),this.open)this.previouslyFocusedElement=document.activeElement,this.allFocusableElements.length>0?this.allFocusableElements[0].focus():null===(t=this.canvasContent)||void 0===t||t.focus(),this.handlePageOverflow();else{null===(i=this.previouslyFocusedElement)||void 0===i||i.focus();const t=()=>{this.handlePageOverflow(),this.canvasContainer.removeEventListener("transitionend",t)};null===(e=this.canvasContainer)||void 0===e||e.addEventListener("transitionend",t)}}componentWillLoad(){this.open&&(this.skipAnimation=!0)}componentDidLoad(){this.handlePageOverflow()}componentDidRender(){this.skipAnimation=!1,this.allFocusableElements=this.getFocusableElements()}connectedCallback(){this.handlePageOverflow()}disconnectedCallback(){this.open=!1}render(){return t(a,{key:"4a7d050590730574ccb25ecd1f93032fac113549","skip-animation":this.skipAnimation,"aria-hidden":this.open?null:"true"},t("div",{key:"4507bf74ea9c8b097173ed048cd52af0704b8fb6",class:"canvas-container",role:"presentation",ref:t=>this.canvasContainer=t},t("div",{key:"79c69732bcdf90d5dc25713bdec66034b595f75d",class:"canvas-content z-scrollbar",role:"presentation",ref:t=>this.canvasContent=t},t("slot",{key:"f133b7048d147138f4db154f2591070b5c74bd8a",name:"canvasContent"}))),(this.variant==h.OVERLAY||this.transitiondirection===l.UP)&&this.showBackdrop&&t("div",{key:"885eeed8b2ebd31467366f208c5f66eace44ad0c",class:"backdrop",onClick:()=>this.open=!1}))}static get watchers(){return{variant:[{handlePageOverflow:0}],open:[{onOpenChanged:0}]}}};K.style='.sc-z-offcanvas-h{font-family:var(--font-family-sans);font-weight:var(--font-rg)}[variant="pushcontent"].sc-z-offcanvas-h:not([transitiondirection="up"]){overflow:hidden}.canvas-container.sc-z-offcanvas{display:flex;overflow:hidden;min-width:100%;height:100%;background:var(--color-surface01);transform:translateX(0);transition:transform 0.4s ease-out}.sc-z-offcanvas-h>*.sc-z-offcanvas{position:fixed;top:var(--z-offcanvas--top-space, 0);right:0;bottom:0;left:0}[open].sc-z-offcanvas-h>*.sc-z-offcanvas{height:calc(100% - var(--z-offcanvas--top-space, 0px))}[transitiondirection="right"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{transform:translateX(-100%)}[transitiondirection="left"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{transform:translateX(100%)}[open][transitiondirection="right"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas,[open][transitiondirection="left"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{transform:translateX(0)}[transitiondirection="up"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{top:auto;bottom:0;height:var(--z-offcanvas--container-height, 90%);transform:translateY(100%)}[transitiondirection="up"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas,[variant="overlay"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{z-index:1001}[open][transitiondirection="up"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{transform:translateY(0)}[variant="pushcontent"].sc-z-offcanvas-h:not([transitiondirection="up"])>.canvas-container.sc-z-offcanvas{position:relative;height:100%}[variant="pushcontent"].sc-z-offcanvas-h:not([open]){display:none}[skip-animation].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{transition:none}.backdrop.sc-z-offcanvas{z-index:1000;width:100%;height:100%;background-color:var(--gray900);opacity:0;pointer-events:none;transition:opacity 0.4s ease-out}[open].sc-z-offcanvas-h>.backdrop.sc-z-offcanvas{opacity:0.7;pointer-events:unset}.canvas-container.sc-z-offcanvas>.canvas-content.sc-z-offcanvas{overflow:hidden auto;flex:1 auto;padding:0 calc(var(--space-unit) * 2);margin:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2) calc(var(--space-unit) * 2) 0}@media (min-width: 768px){[variant="pushcontent"].sc-z-offcanvas-h:not([transitiondirection="up"]){flex:none}.canvas-container.sc-z-offcanvas{width:var(--z-offcanvas--container-width, 375px);min-width:var(--z-offcanvas--container-width, 375px)}[transitiondirection="up"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{width:100%}[transitiondirection="right"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{right:auto;left:0}[transitiondirection="left"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{right:0;left:auto}}';const P=class{constructor(t){e(this,t),this.searchSubmit=s(this,"searchSubmit",7),this.searchTyping=s(this,"searchTyping",7),this.searchItemClick=s(this,"searchItemClick",7),this.htmlid=`searchbar-${j()}`,this.preventSubmit=!1,this.autocomplete=!1,this.autocompleteMinChars=3,this.searchHelperLabel="Cerca {searchString}",this.sortResultsItems=!1,this.showSearchButton=!1,this.searchButtonIconOnly=!1,this.size=o.BIG,this.variant=c.PRIMARY,this.searchString=this.value,this.currResultsCount=0,this.showResults=!1,this.isMobile=!1,this.resultsItemsList=null,this.items=[]}emitSearchSubmit(){this.searchSubmit.emit(this.inputRef.value)}emitSearchTyping(t){this.searchTyping.emit(t)}emitSearchItemClick(t){this.searchItemClick.emit(t),this.selectedItem=t,this.searchString=""}watchItems(){this.resultsItemsList=this.getResultsItemsList()}watchResultsCount(){this.currResultsCount=this.resultsCount}watchValue(){this.searchString=this.value}watchSearchString(){this.emitSearchTyping(this.searchString),this.items=[],this.searchString||(this.currResultsCount=this.resultsCount)}watchShowResults(){this.showResults||(this.items=[])}disconnectedCallback(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}componentDidLoad(){this.resizeObserver=new ResizeObserver((()=>{I()!==k.MOBILE||this.isMobile||(this.isMobile=!0),I()!==k.MOBILE&&this.isMobile&&(this.isMobile=!1)})),this.resizeObserver.observe(this.element)}componentWillLoad(){this.resultsItemsList=this.getResultsItemsList(),this.currResultsCount=this.resultsCount}getResultsItemsList(){return"string"==typeof this.resultsItems?JSON.parse(this.resultsItems):this.resultsItems}getGroupedItems(t){const i={};return t.forEach((t=>{var e;const s=`${null==t?void 0:t.category}${null==t?void 0:t.subcategory}`;i[s]=null!==(e=i[s])&&void 0!==e?e:{category:null==t?void 0:t.category,subcategory:null==t?void 0:t.subcategory,items:[]},i[s].items.push(t)})),this.sortResultsItems?Object.keys(i).sort().reduce(((t,e)=>(t[e]=Object.assign(Object.assign({},i[e]),{items:i[e].items.sort(((t,i)=>{const e=t.label.toUpperCase(),s=i.label.toUpperCase();return e<s?-1:e>s?1:0}))}),t)),{}):i}checkResultsCount(t){return!this.currResultsCount||t<this.currResultsCount}handleStopTyping(t){t.stopPropagation(),this.searchString=t.detail.value,this.selectedItem&&(this.selectedItem=void 0)}handleSubmit(){this.preventSubmit||this.emitSearchSubmit()}handleOutsideClick(t){const i=t.composedPath(),e=i.find((t=>"Z-SEARCHBAR"===t.nodeName));this.showResults=!(!e||e.htmlid!==this.htmlid||!i.find((t=>{var i;return"Z-INPUT"===(null==t?void 0:t.nodeName)||(null===(i=null==t?void 0:t.classList)||void 0===i?void 0:i.contains("results"))})))}renderInput(){var i;return t("z-input",{ref:t=>{this.inputRef=t},htmlid:`input-${this.htmlid}`,message:!1,placeholder:this.placeholder,onStopTyping:t=>this.handleStopTyping(t),onKeyUp:t=>{$(t,(()=>this.handleSubmit())),this.handleArrowsNavigation(t)},value:this.searchString||(null===(i=this.selectedItem)||void 0===i?void 0:i.label),size:this.size,label:this.label,"aria-label":this.htmlAriaLabel||this.placeholder})}renderButton(){if(!this.showSearchButton)return null;const i=this.searchButtonIconOnly?"":"CERCA",e=this.searchButtonIconOnly?{"aria-label":"CERCA"}:null,s=Object.assign(Object.assign({disabled:this.preventSubmit,variant:this.variant,size:this.size,onClick:()=>this.handleSubmit()},this.searchButtonIconOnly?{icon:"search"}:null),e);return t("z-button",Object.assign({},s),i)}renderResults(){return this.showResults&&this.autocomplete&&this.searchString&&!(this.searchString.length<this.autocompleteMinChars)&&this.resultsItemsList?t("div",{class:"results-wrapper"},t("div",{class:"results"},this.renderResultsList())):null}renderResultsList(){var i,e;return this.preventSubmit&&!(null===(i=this.resultsItemsList)||void 0===i?void 0:i.length)?t("span",{class:"item item-no-results"},"Non abbiamo trovato risultati per ",t("b",null,this.searchString),t("br",null),t("br",null),"Cosa puoi fare?",t("ul",null,t("li",null,"Verificare di aver scritto bene"),t("li",null,"Provare a cercare un'altra parola"),t("li",null,"Provare a cercare qualcosa di più generico"))):t("z-list",{role:"listbox",id:`list-${this.htmlid}`,"aria-label":this.htmlAriaLabel||this.label},this.renderSearchHelper(!!(null===(e=this.resultsItemsList)||void 0===e?void 0:e.length)),this.renderItems(),this.renderShowAllResults())}renderItems(){var i;if(!(null===(i=this.resultsItemsList)||void 0===i?void 0:i.length))return[];const e=this.getGroupedItems(this.resultsItemsList),s=[];let a=0;return Object.values(e).forEach(((i,e,n)=>{if(this.checkResultsCount(a)){const r=[];i.items.forEach(((t,i,s)=>{this.checkResultsCount(a)&&r.push(this.renderItem(t,i,!(e===n.length-1&&i===s.length-1))),a++})),r.length&&s.push(t("z-list-group",{"divider-type":w.ELEMENT},this.renderItemCategory(i),r))}})),s}handleArrowsNavigation(t){const i=t.target;if(![r.ARROW_DOWN,r.ARROW_UP].includes(t.key))return void t.preventDefault();if(!this.items.length){const t=this.element.shadowRoot.querySelector("z-list");if(!t)return;this.items=Array.from(t.querySelectorAll(".list-element"))}this.items.forEach((t=>{t.classList.toggle("focused",!1)}));const e=this.items.indexOf(i);if(t.key===r.ARROW_DOWN){t.preventDefault();const i=e+1;i<this.items.length&&(this.items[i].focus(),this.items[i].classList.add("focused"))}if(t.key===r.ARROW_UP){t.preventDefault();const i=e-1;i<0&&(this.element.shadowRoot.querySelector("input").focus(),this.element.shadowRoot.querySelector("input").setSelectionRange(this.inputRef.value.length,this.inputRef.value.length)),i>=0&&(this.items[i].focus(),this.items[i].classList.add("focused"))}}renderItem(i,e,s){return t("z-list-element",{id:`list-item-${this.htmlid}-${e}`,tabIndex:0,role:"option",dividerType:s?w.ELEMENT:void 0,onKeyDown:t=>this.handleArrowsNavigation(t)},t("div",{class:"list-element",tabIndex:0,onClick:()=>this.emitSearchItemClick(i),onKeyDown:t=>$(t,(()=>this.emitSearchItemClick(i))),onMouseEnter:t=>{t.target.classList.add("hovered")},onMouseLeave:t=>{t.target.classList.toggle("hovered",!1)}},t("span",{class:"item ellipsis"},(null==i?void 0:i.icon)&&t("z-icon",{class:"item-icon",name:i.icon}),t("span",{class:"item-label",title:i.label,innerHTML:this.renderItemLabel(i.label)})),(null==i?void 0:i.tag)&&t("z-tag",{icon:i.tag.icon},this.isMobile?"":i.tag.text)),i.children&&i.children.length>0?t("z-list",null,t("div",{class:"children-node"},i.children.map(((t,i)=>this.renderItem(t,i,!1))))):null)}renderItemLabel(t){return this.searchString?t.replace(new RegExp(this.searchString.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gmi"),(t=>`<mark>${t}</mark>`)):t}renderItemCategory(i){return(null==i?void 0:i.category)?t("span",{class:"category-heading",slot:"header-title"},t("span",{class:"category"},i.category),(null==i?void 0:i.subcategory)&&t("span",{class:"subcategory"},i.subcategory)):null}renderSearchHelper(i=!0){return this.autocomplete&&!this.preventSubmit&&this.searchString?t("z-list-element",{role:"option",dividerType:i?w.ELEMENT:void 0,id:`list-item-${this.htmlid}-search`,onKeyDown:t=>this.handleArrowsNavigation(t)},t("div",{tabindex:0,onClick:()=>this.emitSearchSubmit(),onKeyDown:t=>$(t,(()=>this.emitSearchSubmit())),class:"list-element"},t("span",{class:"item item-search"},t("z-icon",{class:"search-icon",name:"left-magnifying-glass"}),t("span",{class:"item-label",innerHTML:this.searchHelperLabel.replace("{searchString}",`<mark>${this.searchString}</mark>`)})))):null}renderShowAllResults(){var i,e;return!this.currResultsCount||!this.searchString||!(null===(i=this.resultsItemsList)||void 0===i?void 0:i.length)||this.currResultsCount>=(null===(e=this.resultsItemsList)||void 0===e?void 0:e.length)?null:t("z-list-element",{role:"option",tabindex:0,clickable:!0,id:`list-item-${this.htmlid}-show-all`,onClickItem:()=>this.currResultsCount=0,color:"color-primary01"},t("div",{class:"item-show-all"},"Vedi tutti i risultati"))}render(){return t(a,{key:"6ccdb51d39d0e211de9b79cbbed90f4597b2c25b",onFocus:()=>this.showResults=!0,onClick:t=>this.handleOutsideClick(t),class:{"has-submit":this.showSearchButton,"has-results":this.autocomplete}},t("div",{key:"90e51c50fe4b06429aad4d222cb26e5789183c30",class:"input-container"},this.renderInput(),this.renderResults()),this.renderButton())}get element(){return n(this)}static get watchers(){return{resultsItems:[{watchItems:0}],resultsCount:[{watchResultsCount:0}],value:[{watchValue:0}],searchString:[{watchSearchString:0}],showResults:[{watchShowResults:0}]}}};P.style=':host{--z-searchbar-tag-text-color:var(--color-primary03);--z-searchbar-tag-bg:var(--color-hover-primary);--z-searchbar-item-height:44px;z-index:15;display:flex;column-gap:calc(var(--space-unit) * 2);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host,*{box-sizing:border-box}:host::part(list-item-container){display:block;min-height:unset;padding:0}.input-container{position:relative;display:flex;width:100%;flex-direction:column}.results-wrapper{position:absolute;top:calc(100% - 1px);left:0;width:100%;padding:calc(var(--space-unit) / 4);border:var(--border-size-small) solid var(--color-surface03);border-top:none;background:var(--color-surface01)}.results{overflow:auto;max-height:var(--z-searchbar-results-height, 540px);padding:calc(var(--space-unit) / 2) calc(var(--space-unit) * 1.5)}.results::-webkit-scrollbar{width:6px;background:linear-gradient(to right, transparent 0 1px, var(--gray200) 1px 5px, transparent 5px 6px)}.results::-webkit-scrollbar-thumb{background-color:var(--color-primary01)}.results::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}@supports not selector(.results::-webkit-scrollbar-track){.results{scrollbar-color:var(--color-primary01) transparent}}.results .category-heading{display:block;font-size:var(--font-size-2);font-weight:var(--font-rg);line-height:var(--font-size-3)}.results .category-heading>*{display:block}.results .category-heading>.category{color:var(--color-text05);font-style:italic}.results .category-heading>.subcategory{margin-top:var(--space-unit);color:var(--color-default-text);text-transform:uppercase}.results z-list-element{position:relative;display:block}z-list-element>.item-search{padding:var(--space-unit) 0}z-list z-list-element::before{position:absolute;z-index:100;top:5px;left:-20px;width:8px;height:1em;border-bottom:1px solid var(--color-disabled01-icon);border-left:1px solid var(--color-disabled01-icon);content:"";cursor:pointer}z-list z-list-element::after{position:absolute;z-index:100;top:5px;left:-20px;width:8px;height:100%;border-left:1px solid var(--color-disabled01-icon);content:"";cursor:pointer}z-list z-list-element:last-child::after{display:none}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) * 3)}.results z-list-element>.list-element{display:flex;justify-content:space-between;padding:calc(var(--space-unit) * 1.25) 0;cursor:pointer}.results z-list-element>.list-element:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.results z-list-element>.list-element .item.ellipsis{overflow:hidden}.results z-list-element .list-element::after{position:absolute;top:0;right:0;display:block;width:100%;height:44px;content:"";transform:translateX(-100%)}.results z-list-element .list-element.focused.hovered::after{padding-left:6px}.results z-list-element>.list-element:hover,.results z-list-element>.list-element:hover::after{background-color:var(--color-background);cursor:pointer}.results z-list-element>.list-element>z-tag{border:1px solid var(--gray800);font-size:var(--font-size-1);font-weight:var(--font-sb);--z-tag-bg:var(--z-searchbar-tag-bg);--z-tag-text-color:var(--z-searchbar-tag-text-color)}.results .item{--z-icon-height:12px;--z-icon-width:12px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-start;color:var(--color-default-text);column-gap:calc(var(--space-unit) * 1.5);fill:var(--color-default-icon);font-size:var(--font-size-2);line-height:var(--font-size-6)}.results .item.ellipsis>.item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.results .item>.item-label mark{background:var(--color-primary03)}.results .item.item-search{--z-icon-height:16px;--z-icon-width:16px}.results .item-show-all{text-align:center}.results .item-no-results{display:block;font-size:var(--font-size-2);font-style:italic;line-height:var(--font-size-5)}.results .item-no-results>ul{padding-left:calc(var(--space-unit) * 2);margin:var(--space-unit)}@media (min-width: 768px){.results .category-heading{font-size:var(--font-size-3);line-height:var(--font-size-6)}.results .item{font-size:var(--font-size-3);line-height:var(--font-size-6)}.results .item.item-search{--z-icon-height:18px;--z-icon-width:18px}.results .item.ellipsis>.item-label{height:1.5rem}.results z-list-element>.list-element>z-tag{min-width:max-content}}@media (min-width: 1152px){.results .item{cursor:pointer}.results .item-no-results{cursor:default;font-size:var(--font-size-3);line-height:var(--font-size-6)}}:host([size="small"]) .results :is(.item,.category-heading),:host([size="x-small"]) .results :is(.item,.category-heading){font-size:var(--font-size-2)}:host([size="small"]) .results .item:not(.has-category),:host([size="x-small"]) .results .item:not(.has-category){--z-icon-height:16px;--z-icon-width:16px}:host([size="small"]) z-list-element>.list-element,:host([size="small"]) z-list-element>.item-search{padding:calc(var(--space-unit) * 0.75) 0}:host([size="x-small"]) z-list-element>.list-element,:host([size="x-small"]) z-list-element>.item-search{padding:calc(var(--space-unit) / 2) 0}:host([size="small"]) z-list-element .list-element::after{height:36px}:host([size="x-small"]) z-list-element .list-element::after{height:32px}.z-label{display:block;padding-bottom:var(--space-unit);color:var(--color-default-text);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-align:left;text-transform:uppercase}';const Z=class{constructor(t){e(this,t)}render(){return t(a,{key:"79058b7bd9a1c161e6bc55fc0a737e6f2f3c8a06",class:{expandable:this.expandable&&!!this.icon,"has-text":!!this.host.textContent.trim()}},this.icon&&t("z-icon",{key:"ac25c974cbb40a04bb83adabe53011bb4dd89dd3",name:this.icon}),t("div",{key:"4150a1f6301110f690a595c5e2b5169d90aa4802"},t("slot",{key:"d3f2e88bf2635ec142a71c5752f264cd9e0077f7"})))}get host(){return n(this)}};Z.style=".sc-z-tag-h{--z-icon-width:14px;--z-icon-height:14px;display:flex;width:fit-content;max-width:inherit;height:fit-content;max-height:inherit;align-items:flex-start;padding:calc(var(--space-unit) / 2);background-color:var(--z-tag-bg, var(--color-hover-primary));border-radius:var(--border-radius);color:var(--z-tag-text-color, var(--color-text-inverse));fill:currentcolor;font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);letter-spacing:0.32px;line-height:14px;text-transform:uppercase}.sc-z-tag-h>z-icon.sc-z-tag{margin-right:0;transition:margin-right 0.3s ease-out}.has-text.sc-z-tag-h:not(.expandable)>z-icon.sc-z-tag{margin-right:var(--space-unit)}.has-text.expandable.sc-z-tag-h:hover>z-icon.sc-z-tag{margin-right:var(--space-unit)}.expandable.sc-z-tag-h>div.sc-z-tag{overflow:hidden;max-width:0;max-height:0}.expandable.sc-z-tag-h:hover>div.sc-z-tag{max-width:100%;max-height:100%}";export{T as z_app_header,F as z_button,R as z_divider,A as z_icon,B as z_input,D as z_input_message,V as z_list,_ as z_list_element,E as z_list_group,K as z_offcanvas,P as z_searchbar,Z as z_tag}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s,H as c}from"./p-ByN2sYu6.js";import{k as i}from"./p-BKCj6NR2.js";import{r as a}from"./p-D4yqZKyM.js";import"./p-Q-tWjk7P.js";const l=class{constructor(s){e(this,s),this.toggleClick=t(this,"toggleClick",7),this.disabled=!1,this.labelPosition=i.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 s(c,{key:"a71496b0436b37aaf6b0af879bae53be6a627efa"},s("input",{key:"716eec97479d25139fe00b144a58d26941ded2a3",id:this.htmlid,type:"checkbox",checked:this.checked,disabled:this.disabled,onChange:this.handleClick.bind(this)}),s("label",{key:"8907147d34ed7b1c944936e1c3e73519ef77f00b",htmlFor:this.htmlid,class:{[this.labelPosition]:!0,disabled:this.disabled}},s("span",{key:"c3a9dc659fee0c089799a011568b2df707f62c34"},s("slot",{key:"68be5cec64b7d973bd40d59be54580170bd7ec5e"})),s("span",{key:"206640ff4c480d2923f8c99b80093b8bf08ee68a",class:{container:!0,disabled:this.disabled,checked:this.checked}},s("span",{key:"31d158040dfc2cb2e605ee5271cd1b992016c1e2",class:"circle"},this.checked&&s("z-icon",{key:"2d45f7c22746d2db091e0ee2096b3f580064e8aa",width:12,height:12,name:"checkmark"})))))}};l.style='.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}';export{l as z_toggle_switch}
@@ -1 +0,0 @@
1
- import{r as o,h as e}from"./p-ByN2sYu6.js";const a=class{constructor(e){o(this,e)}render(){return e("div",{key:"97d3727bac19ede546388a2b3a859087132579d9"},e("footer",{key:"1a936af0a57164d76e12d39243553439e01acd59"},e("div",{key:"5cfa3a09588303e958cb3e03fb4047e4ee940b25",class:"top"},e("slot",{key:"a94b5f1583dad8ab8b65ae6cf2666b2822669eda",name:"top"})),e("div",{key:"6915a0421bb342c7e1374aa92b49aa6836af0f38",class:"bottom"},e("slot",{key:"9617f8e997b8c66d0cac543b191f73e4ce64c070",name:"bottom"}))))}};a.style=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div>footer{height:128px;box-sizing:border-box;padding:var(--space-unit) calc(var(--space-unit) * 2) 0;border-top:var(--border-size-medium) solid var(--color-surface03);border-radius:0 0 var(--border-radius) var(--border-radius);color:var(--color-surface05);font-size:16px;line-height:24px}:host>div>footer>div.top,:host>div>footer>div.bottom{height:60px}";export{a as z_myz_card_footer_sections}
@@ -1 +0,0 @@
1
- import{r as o,h as r,H as b}from"./p-ByN2sYu6.js";const e=class{constructor(r){o(this,r)}render(){return r(b,{key:"62b5b227fbdaac2918101db68c60cb68ae9e1ed8",role:"rowgroup"},r("slot",{key:"ecfc5c26435fb7f03b5e9ea89111499b3b75f3ca"}))}};e.style=":host{display:block;box-sizing:border-box}";export{e as z_tbody}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as e,H as s,d as o}from"./p-ByN2sYu6.js";import{U as n,V as a,p as r,g as l,P as h,i as p}from"./p-BKCj6NR2.js";import{g as c,h as d}from"./p-D4yqZKyM.js";import"./p-Q-tWjk7P.js";const u=class{constructor(e){t(this,e),this.clickOnNode=i(this,"clickOnNode",7),this.pathStyle=n.UNDERLINED,this.homepageVariant=a.ICON,this.maxNodesToShow=5,this.preventFollowUrl=!1,this.overflowMenuItemRows=0,this.truncateChar=30,this.hasOverflow=!1,this.popoverEllipsisOpen=!1,this.collapsedElements=[],this.currentIndex=0,this.truncatePosition=null}handleResize(){this.viewPortWidth=c(),this.viewPortWidth!==r.MOBILE&&this.wrapElement&&this.wrapElement.scrollWidth>this.wrapElement.clientWidth&&(this.hasOverflow=!0)}handlePropChange(){this.initializeBreadcrumb()}handleResizeUp(t,i){(t===r.MOBILE||i===r.MOBILE&&t===r.TABLET||i===r.MOBILE&&t===r.DESKTOP||i===r.MOBILE&&t===r.DESKTOP_WIDE||i===r.TABLET&&t===r.DESKTOP||i===r.TABLET&&t===r.DESKTOP_WIDE||i===r.DESKTOP&&t===r.DESKTOP_WIDE)&&this.initializeBreadcrumb()}componentWillLoad(){this.viewPortWidth=c(),this.initializeBreadcrumb()}componentWillRender(){this.viewPortWidth!==r.MOBILE&&this.hasOverflow&&(this.checkEllipsisOrOverflowMenu(),this.hasOverflow=!1)}componentDidRender(){this.collapsedElementsRef&&(this.anchorElements=Array.from(this.hostElement.shadowRoot.querySelectorAll("z-list-group a"))),this.viewPortWidth!==r.MOBILE&&requestAnimationFrame((()=>{this.wrapElement.scrollWidth>this.wrapElement.clientWidth&&(this.hasOverflow||(this.hasOverflow=!0))}))}initializeBreadcrumb(){this.pathsList=this.viewPortWidth===r.MOBILE?this.getPathsItemsList().filter((t=>!!t.path)):this.getPathsItemsList(),this.homepageNode=this.pathsList.shift(),this.pathListCopy=[...this.pathsList],this.collapsedElements=[],this.pathsList.length>this.maxNodesToShow&&(this.collapsedElements=this.pathsList.splice(0,this.pathsList.length-2))}checkEllipsisOrOverflowMenu(){for(let t=0;t<this.pathsList.length;t++)if(!(this.pathsList[t].text.length<=this.truncateChar)){if(this.truncatePosition>0)return this.collapsedElements.push(...this.pathListCopy.splice(0,this.truncatePosition)),this.pathsList.splice(0,this.truncatePosition),void(this.truncatePosition=0);if(0===this.truncatePosition)return this.collapsedElements.push(...this.pathListCopy.splice(0,this.truncatePosition+1)),this.pathsList.splice(0,this.truncatePosition+1),void(this.truncatePosition=null);if(t!==this.pathsList.length-1){const i=this.truncateWithEllipsis(this.pathsList[t].text,this.truncateChar);return this.currentEllipsisText=this.pathsList[t].text,this.pathsList[t].text=i,this.pathsList[t].hasTooltip=!0,void(this.truncatePosition=t)}}}truncateWithEllipsis(t,i){return t.length<=i?t:t.substring(0,i-1)+"&mldr;"}getPathsItemsList(){return Array.from(this.hostElement.children).map((t=>({text:t.textContent,path:t.href,hasTooltip:!1})))}renderHomepageNode(){return e("li",null,e("a",{class:{"homepage-text":this.homepageVariant===a.TEXT},href:this.homepageNode.path,onClick:t=>this.handlePreventFollowUrl(t,this.homepageNode),innerHTML:this.homepageVariant===a.ICON?'<z-icon name="home" />':this.homepageNode.text||"Home"}),this.pathsList.length>0&&e("z-icon",{class:"separator",name:"chevron-right"}))}togglePopover(){this.collapsedElementsRef.open||(this.collapsedElementsRef.open=!0)}handlePreventFollowUrl(t,i){this.preventFollowUrl&&(t.preventDefault(),this.clickOnNode.emit(i.path))}handleOverflowMenuAccessibility(t){const i=this.anchorElements.length;t.key!==l.TAB?(t.stopPropagation(),[l.ARROW_DOWN,l.ARROW_UP].includes(t.key)&&(t.preventDefault(),t.key===l.ARROW_DOWN&&(this.currentIndex=i===this.currentIndex+1?0:this.currentIndex+1),t.key===l.ARROW_UP&&(this.currentIndex=this.currentIndex<=0?i-1:this.currentIndex-1),this.anchorElements[this.currentIndex].focus()),t.key===l.ESC&&this.triggerButton.focus()):t.preventDefault()}renderOverflowMenu(){return e("li",null,e("z-popover",{class:"hidden-paths-popover",ref:t=>this.collapsedElementsRef=t,bindTo:this.triggerButton,position:h.BOTTOM_RIGHT,closable:!0,showArrow:!0},e("div",{class:"popover-content"},e("z-list",null,e("z-list-group",{size:p.SMALL},this.collapsedElements.map(((t,i,s)=>e("div",null,e("z-list-element",{clickable:!0},e("a",{class:"text-ellipsis",href:t.path,onClick:i=>this.handlePreventFollowUrl(i,t),onKeyDown:t=>this.handleOverflowMenuAccessibility(t),innerHTML:t.text})),i<s.length-1&&e("z-divider",{color:"color-surface03"})))))))),e("button",{class:"dots",ref:t=>this.triggerButton=t,"aria-label":"Mostra più breadcrumb","aria-haspopup":"true",onClick:()=>{this.togglePopover()},onKeyDown:t=>{d(t,this.togglePopover.bind(this)),setTimeout((()=>{this.anchorElements[0].focus()}),100)},innerHTML:"&mldr;"}),this.pathsList.length>0&&e("z-icon",{class:"separator",name:"chevron-right"}))}renderMobileItems(){const t=this.pathsList[this.pathsList.length-1];if(t)return e("li",null,e("a",{"aria-current":t.path?void 0:"page",href:t.path,onClick:i=>this.handlePreventFollowUrl(i,t)},e("z-icon",{name:"chevron-left"}),e("span",{class:{"missing-path":!t.path,"text-ellipsis":!0}},t.text)))}renderItems(){let t;return[this.renderHomepageNode(),this.collapsedElements.length>0&&this.renderOverflowMenu(),...this.pathsList.map(((i,s)=>e("li",null,i.hasTooltip&&e("z-popover",{class:"full-path-tooltip",bindTo:t,open:this.popoverEllipsisOpen,position:h.BOTTOM_RIGHT,closable:!1,showArrow:!0},e("span",{class:"tooltip-content"},this.currentEllipsisText)),e("a",{class:{"missing-path":!i.path},ref:i=>t=i,"aria-current":i.path?void 0:"page",href:i.path,onClick:t=>this.handlePreventFollowUrl(t,i),onMouseOver:()=>{i.hasTooltip&&(this.popoverEllipsisOpen=!0)},onMouseLeave:()=>{i.hasTooltip&&(this.popoverEllipsisOpen=!1)},innerHTML:i.text}),s!==this.pathsList.length-1&&e("z-icon",{class:"separator",name:"chevron-right"}))))]}render(){return e(s,{key:"b0e69674c7e600f237dd64db7aee54aa1a29529e",style:{"--line-clamp-popover":`${this.overflowMenuItemRows}`}},e("nav",{key:"ab4672d78b961bf88e3cbe29a7a880c872b7370c",ref:t=>this.wrapElement=t,"aria-label":"Breadcrumb",class:{semibold:this.pathStyle===n.SEMIBOLD,underlined:this.pathStyle===n.UNDERLINED}},e("ol",{key:"bf1d0a0686b68240bcfd866012d3f4236b450bf1"},this.viewPortWidth===r.MOBILE?this.renderMobileItems():this.renderItems())))}get hostElement(){return o(this)}static get watchers(){return{maxNodesToShow:[{handlePropChange:0}],viewPortWidth:[{handleResizeUp:0}]}}};u.style=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);--line-clamp-popover:0;--line-clamp-mobile:1}*{box-sizing:border-box}button{padding:0;border:none;margin:0;background-color:transparent}nav{display:flex;align-items:center}ol{display:flex;align-items:center;padding:0;margin:0;column-gap:var(--space-unit);list-style:none}li{display:flex;align-items:center;justify-content:flex-start;column-gap:var(--space-unit)}ol li>a,ol li>button{font-size:var(--font-size-2);letter-spacing:0.16px;line-height:1.4}a:focus,button:focus{box-shadow:var(--shadow-focus-primary);outline:none}a{color:var(--color-text-link-blue);white-space:nowrap}a.missing-path{color:var(--color-default-text)}.text-ellipsis{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:var(--line-clamp-mobile);line-clamp:var(--line-clamp-mobile);text-overflow:ellipsis;white-space:initial}nav.semibold>ol>li>a:not(.missing-path),nav.semibold>ol>li>button{font-weight:var(--font-sb);text-decoration:none}nav.underlined a,nav.underlined button{text-decoration:underline}z-icon{--z-icon-width:16px;--z-icon-height:16px;display:block;fill:var(--color-text-link-blue)}z-icon.separator{--z-icon-width:10px;--z-icon-height:10px;fill:var(--gray500)}button.dots{display:inline-block;color:var(--color-text-link-blue);cursor:pointer}.hidden-paths-popover .popover-content{max-width:302px;padding:calc(var(--space-unit) / 2) var(--space-unit);text-align:left}.hidden-paths-popover .popover-content a{font-weight:var(--font-rg);text-decoration:none}.hidden-paths-popover{--z-popover-theme--surface:var(--color-background);--z-popover-padding:0;--background-color-list-element:var(--color-background)}.hidden-paths-popover::before,.full-path-tooltip::before{--arrow-edge-offset:calc(100% - (var(--space-unit) * 2.55))}.full-path-tooltip{--z-popover-theme--surface:var(--color-surface05);--z-popover-theme--text:var(--color-text-inverse);--z-popover-padding:0}.tooltip-content{padding:0 var(--space-unit);font-size:var(--font-size-2)}@media (min-width: 768px){.text-ellipsis{-webkit-line-clamp:var(--line-clamp-popover);line-clamp:var(--line-clamp-popover)}}@media (max-width: 767px){li a{display:flex;align-items:center;column-gap:var(--space-unit)}}";export{u as z_breadcrumb}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as a,H as n,d as o}from"./p-ByN2sYu6.js";import{I as s}from"./p-BKCj6NR2.js";const e=class{constructor(a){t(this,a),this.pageChanged=i(this,"pageChanged",7),this.navArrows=!0,this.skip=0,this.edges=!1,this.currentPage=1,this._visiblePages=this.visiblePages,this.isMobile=!1,this.goToPageValue=null}setPagesContainerWidth(){if(!this._visiblePages||this.split)return void this.host.style.setProperty("--z-pagination--pages-container-max-width","100%");const t=window.getComputedStyle(this.host).getPropertyValue("--z-pagination--page-button-width");this.host.style.setProperty("--z-pagination--pages-container-max-width",`calc(${t} * ${this._visiblePages})`)}setVisiblePages(){this._visiblePages=Math.min(this.visiblePages||this.totalPages,this.totalPages)}onPageChanged(){this.pageChanged.emit(this.currentPage),this.scrollToPage()}onSplitChanged(){this.split&&(this.edges=!1)}onResize(){this.setMobile()}setMobile(){this.isMobile=window.matchMedia("screen and (max-width: 767px)").matches}getPagesChunks(){const t=Array.from({length:this.totalPages},((t,i)=>i+1)),i=[],a=Math.ceil(t.length/this._visiblePages);for(let n=0;n<a;n++)i.push(t.slice(n*this._visiblePages,(n+1)*this._visiblePages));return i}scrollToPage(){var t,i;const a=this.host.querySelector(".pages-container"),n=this.host.querySelector(`[data-page="${this.currentPage}"]`),o=this.host.querySelector(".navigation-button");if(!n||!a)return;const s=a.getBoundingClientRect().width,e=n.getBoundingClientRect().width,r=null!==(i=null===(t=null==o?void 0:o.getBoundingClientRect())||void 0===t?void 0:t.width)&&void 0!==i?i:0;a.scrollLeft=this.currentPage*e-r-s/2}selectPage(t){this.currentPage=Math.min(Math.max(t,1),this.totalPages)}renderPage(t){return a("button",{class:"page-button",type:"button","aria-current":this.currentPage===t?"page":"false",title:`Vai alla pagina ${t}`,"data-page":t,"data-current":this.currentPage===t,onClick:()=>this.selectPage(t)},t)}renderEllipsisButton(t){return a("button",{class:"ellipsis-button",type:"button",title:`Vai alla pagina ${t}`,onClick:()=>this.selectPage(t)},"…")}renderPages(){const t=this.getPagesChunks();if(!(t.length<=0))return t.map((t=>a("div",{class:"pages-chunk"},t.map((t=>this.renderPage(t))))))}renderSplitPages(){return this.totalPages<=2*this.split+5?Array.from({length:this.totalPages},((t,i)=>this.renderPage(i+1))):this.currentPage<=2*this.split+2?[...Array.from({length:2*this.split+3},((t,i)=>this.renderPage(i+1))),this.renderEllipsisButton(2*this.split+4),this.renderPage(this.totalPages)]:this.currentPage>2*this.split+2&&this.currentPage<this.totalPages-2*this.split-1?[this.renderPage(1),this.renderEllipsisButton(this.currentPage-this.split-1),...Array.from({length:2*this.split+1},((t,i)=>this.renderPage(this.currentPage-this.split+i))),this.renderEllipsisButton(this.currentPage+this.split+1),this.renderPage(this.totalPages)]:[this.renderPage(1),this.renderEllipsisButton(this.totalPages-2*this.split-3),...Array.from({length:2*this.split+3},((t,i)=>this.renderPage(this.totalPages-2*this.split-2+i)))]}renderBackButton(){return a("button",{class:"navigation-button",type:"button",title:"Vai alla pagina precedente",disabled:1===this.currentPage,onClick:()=>this.selectPage(this.currentPage-1)},a("z-icon",{name:"chevron-left"}))}renderForwardButton(){return a("button",{class:"navigation-button",type:"button",title:"Vai alla prossima pagina",disabled:this.currentPage===this.totalPages,onClick:()=>this.selectPage(this.currentPage+1)},a("z-icon",{name:"chevron-right"}))}renderMobile(){const t=this.getPagesChunks();return[this.label&&a("span",{class:"page-label body-1-sb"},this.label),a("div",{class:"pagination-bar"},this.renderBackButton(),!this.goToPage&&a("div",{class:"pages-container",role:"navigation",tabIndex:-1},t.length>0&&t.map((t=>a("div",{class:"pages-chunk"},t.map((t=>this.renderPage(t))))))),this.goToPage&&a("form",{class:"mobile-go-to-page",onSubmit:t=>{t.preventDefault(),this.selectPage(this.goToPageValue)}},a("z-input",{class:"go-to-page-input",type:s.NUMBER,min:1,max:this.totalPages,message:!1,onInput:t=>{this.goToPageValue=t.target.value},placeholder:this.currentPage.toString(),hasclearicon:!1}),a("span",null,`/${this.totalPages}`)),this.renderForwardButton())]}componentDidLoad(){this.setVisiblePages()}componentDidRender(){this.split&&(this.edges=!1),this.setPagesContainerWidth(),this.setMobile(),this.scrollToPage()}render(){return this.isMobile?a(n,null,this.renderMobile()):a(n,null,a("div",{class:"pagination-bar"},this.label&&a("span",{class:"page-label body-1-sb"},this.label),this.edges&&a("button",{class:"pagination-button",type:"button",title:"Vai alla pagina 1",disabled:1===this.currentPage,onClick:()=>this.selectPage(1)},"Pagina 1"),this.skip<this.totalPages&&this.skip>1&&a("button",{class:"pagination-button",type:"button",title:"Vai alla pagina "+(this.currentPage-this.skip),disabled:this.currentPage<=this.skip,onClick:()=>this.selectPage(this.currentPage-this.skip)},"-",this.skip),this.navArrows&&this.renderBackButton(),a("div",{class:"pages-container",role:"navigation",tabIndex:-1},this.split?this.renderSplitPages():this.renderPages()),this.navArrows&&this.renderForwardButton(),this.skip<this.totalPages&&this.skip>1&&a("button",{class:"pagination-button",type:"button",title:`Vai alla pagina ${this.currentPage+this.skip}`,disabled:this.currentPage>this.totalPages-this.skip,onClick:()=>this.selectPage(this.currentPage+this.skip)},"+",this.skip),this.edges&&a("button",{class:"pagination-button",type:"button",title:`Vai alla pagina ${this.totalPages}`,disabled:this.currentPage===this.totalPages,onClick:()=>this.selectPage(this.totalPages)},"Pagina ",this.totalPages)),this.goToPage&&a("div",{class:"go-to-page"},a("span",{class:"z-label body-5-sb"},"Vai a pagina:"),a("div",{class:"inputs"},a("z-input",{class:"go-to-page-input",type:s.NUMBER,min:1,max:this.totalPages,message:!1,placeholder:"2",hasclearicon:!1,onInput:t=>{this.goToPageValue=t.target.value},onKeyDown:t=>"Enter"===t.key&&this.selectPage(this.goToPageValue)}),a("z-button",{disabled:!this.goToPageValue,title:"Vai alla pagina inserita",onClick:()=>this.selectPage(this.goToPageValue)},"vai"))))}get host(){return o(this)}static get watchers(){return{_visiblePages:[{setPagesContainerWidth:0}],visiblePages:[{setVisiblePages:0}],currentPage:[{onPageChanged:0}],split:[{onSplitChanged:0}]}}};e.style="z-pagination{--z-pagination--page-button-width:64px;--z-pagination--pages-container-max-width:100%;--z-pagination-background-color:var(--color-background);--z-pagination-background-color-hover:var(--color-surface01);display:flex;max-width:100%;flex-flow:column wrap;font-family:var(--font-family-sans);font-weight:var(--font-rg);gap:calc(var(--space-unit) * 2) calc(var(--space-unit) * 4)}z-pagination,z-pagination *{box-sizing:border-box}z-pagination button{height:100%}z-pagination z-icon{fill:var(--color-primary01-icon)}z-pagination *:disabled z-icon{fill:var(--color-disabled03)}z-pagination .page-label{margin-right:calc(var(--space-unit) * 3);color:var(--color-default-text)}z-pagination .pagination-bar{display:flex;max-width:100%;height:48px;align-items:center}z-pagination .pagination-bar button{display:flex;align-items:center;justify-content:center;border:none;margin:0;background-color:var(--z-pagination-background-color);color:var(--color-primary01);cursor:pointer;font-family:inherit;font-weight:inherit;transition:background-color 0.15s ease-out, color 0.15s ease-out, border-bottom-color 0.15s ease-out, font-size 0.15s ease-in-out, font-weight 0.15s ease-in-out}z-pagination .pagination-bar button:focus-visible{background-color:var(--color-surface01);outline:none}z-pagination .pagination-bar .pagination-button{padding:calc(var(--space-unit) * 2);font-weight:var(--font-sb);text-transform:uppercase;white-space:nowrap}z-pagination .pagination-bar .navigation-button{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 1.5)}z-pagination .pagination-bar .pagination-button:disabled,z-pagination .pagination-bar .navigation-button:disabled{color:var(--color-disabled03);cursor:default;fill:var(--color-disabled03);pointer-events:none}z-pagination .pagination-bar .page-button,z-pagination .pagination-bar .ellipsis-button{width:var(--z-pagination--page-button-width)}z-pagination .pages-container{position:relative;display:inline-flex;max-width:100%;height:100%;overflow-x:auto;scroll-behavior:smooth;scroll-snap-align:center;scrollbar-width:none}z-pagination .pages-container::-webkit-scrollbar{display:none}z-pagination .pages-chunk{display:flex;scroll-snap-align:center}z-pagination .pagination-bar .page-button{padding-top:var(--border-size-large) solid transparent;border-bottom:var(--border-size-large) solid transparent;font-size:var(--font-size-2);font-weight:var(--font-sb)}z-pagination .pagination-bar .page-button[data-current]{border-bottom-color:var(--color-primary01);font-size:var(--font-size-7)}z-pagination .go-to-page{display:flex;flex-direction:column}z-pagination .go-to-page .inputs{display:flex;column-gap:var(--space-unit)}z-pagination .go-to-page .inputs z-input{width:calc(var(--space-unit) * 11)}z-pagination .go-to-page .inputs z-input input,z-pagination .mobile-go-to-page z-input input{padding:0 calc(var(--space-unit) * 1.5) !important;appearance:none}z-pagination .mobile-go-to-page{display:flex;height:100%;flex:1 auto;align-items:center;justify-content:center;background-color:var(--color-surface02)}z-pagination .mobile-go-to-page z-input{width:var(--z-pagination--page-button-width);margin-right:var(--space-unit)}z-pagination .mobile-go-to-page z-input input{text-align:center}z-pagination .mobile-go-to-page z-input input::-webkit-outer-spin-button,z-pagination .mobile-go-to-page z-input input::-webkit-inner-spin-button{appearance:none}z-pagination .mobile-go-to-page>span{font-size:var(--font-size-2)}@media (hover: hover){z-pagination .pagination-bar button:hover{background-color:var(--z-pagination-background-color-hover)}z-pagination .pagination-bar .page-button:hover{border-bottom-color:var(--color-hover-primary);color:var(--color-hover-primary)}}@media (min-width: 768px){z-pagination{--z-pagination--page-button-width:88px;flex-direction:row;align-items:flex-end}z-pagination .pages-container{max-width:var(--z-pagination--pages-container-max-width)}}";export{e as z_pagination}
@@ -1,2 +0,0 @@
1
- import{r as t,c as e,h as i,H as n,d as o}from"./p-ByN2sYu6.js";import{r,g as s}from"./p-BKCj6NR2.js";import{g as a}from"./p-B85MJLTf.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:c,setPrototypeOf:u,isFrozen:l,getPrototypeOf:h,getOwnPropertyDescriptor:f}=Object;let{freeze:d,seal:p,create:m}=Object,{apply:g,construct:v}="undefined"!=typeof Reflect&&Reflect;d||(d=function(t){return t}),p||(p=function(t){return t}),g||(g=function(t,e,i){return t.apply(e,i)}),v||(v=function(t,e){return new t(...e)});const b=O(Array.prototype.forEach),y=O(Array.prototype.lastIndexOf),w=O(Array.prototype.pop),T=O(Array.prototype.push),x=O(Array.prototype.splice),E=O(String.prototype.toLowerCase),k=O(String.prototype.toString),A=O(String.prototype.match),S=O(String.prototype.replace),R=O(String.prototype.indexOf),_=O(String.prototype.trim),z=O(Object.prototype.hasOwnProperty),D=O(RegExp.prototype.test),I=(M=TypeError,function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return v(M,e)});var M;function O(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return g(t,e,n)}}function P(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;u&&u(t,null);let n=e.length;for(;n--;){let o=e[n];if("string"==typeof o){const t=i(o);t!==o&&(l(e)||(e[n]=t),o=t)}t[o]=!0}return t}function N(t){for(let e=0;e<t.length;e++)z(t,e)||(t[e]=null);return t}function C(t){const e=m(null);for(const[i,n]of c(t))z(t,i)&&(e[i]=Array.isArray(n)?N(n):n&&"object"==typeof n&&n.constructor===Object?C(n):n);return e}function L(t,e){for(;null!==t;){const i=f(t,e);if(i){if(i.get)return O(i.get);if("function"==typeof i.value)return O(i.value)}t=h(t)}return function(){return null}}const F=d(["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"]),j=d(["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"]),U=d(["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"]),B=d(["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"]),W=d(["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"]),X=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y=d(["#text"]),H=d(["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"]),q=d(["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"]),G=d(["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"]),$=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),K=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V=p(/<%[\w\W]*|[\w\W]*%>/gm),Z=p(/\$\{[\w\W]*/gm),J=p(/^data-[\-\w.\u00B7-\uFFFF]+$/),Q=p(/^aria-[\-\w]+$/),tt=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),et=p(/^(?:\w+script|data):/i),it=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nt=p(/^html$/i),ot=p(/^[a-z][.\w]*(-[.\w]+)+$/i);var rt=Object.freeze({__proto__:null,ARIA_ATTR:Q,ATTR_WHITESPACE:it,CUSTOM_ELEMENT:ot,DATA_ATTR:J,DOCTYPE_NAME:nt,ERB_EXPR:V,IS_ALLOWED_URI:tt,IS_SCRIPT_OR_DATA:et,MUSTACHE_EXPR:K,TMPLIT_EXPR:Z});const st=function(){return"undefined"==typeof window?null:window};var at,ct,ut=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:st();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:u,Element:l,NodeFilter:h,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:g,trustedTypes:v}=e,M=l.prototype,O=L(M,"cloneNode"),N=L(M,"remove"),K=L(M,"nextSibling"),V=L(M,"childNodes"),Z=L(M,"parentNode");if("function"==typeof a){const t=n.createElement("template");t.content&&t.content.ownerDocument&&(n=t.content.ownerDocument)}let J,Q="";const{implementation:et,createNodeIterator:it,createDocumentFragment:ot,getElementsByTagName:at}=n,{importNode:ct}=o;let ut={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof c&&"function"==typeof Z&&et&&void 0!==et.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}=rt;let{IS_ALLOWED_URI:bt}=rt,yt=null;const wt=P({},[...F,...j,...U,...W,...Y]);let Tt=null;const xt=P({},[...H,...q,...G,...$]);let Et=Object.seal(m(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,_t=!1,zt=!0,Dt=!1,It=!0,Mt=!1,Ot=!1,Pt=!1,Nt=!1,Ct=!1,Lt=!1,Ft=!0,jt=!1,Ut=!0,Bt=!1,Wt={},Xt=null;const Yt=P({},["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 Ht=null;const qt=P({},["audio","video","img","source","image","track"]);let Gt=null;const $t=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Kt="http://www.w3.org/1998/Math/MathML",Vt="http://www.w3.org/2000/svg",Zt="http://www.w3.org/1999/xhtml";let Jt=Zt,Qt=!1,te=null;const ee=P({},[Kt,Vt,Zt],k);let ie=P({},["mi","mo","mn","ms","mtext"]),ne=P({},["annotation-xml"]);const oe=P({},["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=C(t),re=-1===se.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ae="application/xhtml+xml"===re?k:E,yt=z(t,"ALLOWED_TAGS")?P({},t.ALLOWED_TAGS,ae):wt,Tt=z(t,"ALLOWED_ATTR")?P({},t.ALLOWED_ATTR,ae):xt,te=z(t,"ALLOWED_NAMESPACES")?P({},t.ALLOWED_NAMESPACES,k):ee,Gt=z(t,"ADD_URI_SAFE_ATTR")?P(C($t),t.ADD_URI_SAFE_ATTR,ae):$t,Ht=z(t,"ADD_DATA_URI_TAGS")?P(C(qt),t.ADD_DATA_URI_TAGS,ae):qt,Xt=z(t,"FORBID_CONTENTS")?P({},t.FORBID_CONTENTS,ae):Yt,kt=z(t,"FORBID_TAGS")?P({},t.FORBID_TAGS,ae):C({}),At=z(t,"FORBID_ATTR")?P({},t.FORBID_ATTR,ae):C({}),Wt=!!z(t,"USE_PROFILES")&&t.USE_PROFILES,St=!1!==t.ALLOW_ARIA_ATTR,Rt=!1!==t.ALLOW_DATA_ATTR,_t=t.ALLOW_UNKNOWN_PROTOCOLS||!1,zt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Dt=t.SAFE_FOR_TEMPLATES||!1,It=!1!==t.SAFE_FOR_XML,Mt=t.WHOLE_DOCUMENT||!1,Nt=t.RETURN_DOM||!1,Ct=t.RETURN_DOM_FRAGMENT||!1,Lt=t.RETURN_TRUSTED_TYPE||!1,Pt=t.FORCE_BODY||!1,Ft=!1!==t.SANITIZE_DOM,jt=t.SANITIZE_NAMED_PROPS||!1,Ut=!1!==t.KEEP_CONTENT,Bt=t.IN_PLACE||!1,bt=t.ALLOWED_URI_REGEXP||tt,Jt=t.NAMESPACE||Zt,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),Ct&&(Nt=!0),Wt&&(yt=P({},Y),Tt=[],!0===Wt.html&&(P(yt,F),P(Tt,H)),!0===Wt.svg&&(P(yt,j),P(Tt,q),P(Tt,$)),!0===Wt.svgFilters&&(P(yt,U),P(Tt,q),P(Tt,$)),!0===Wt.mathMl&&(P(yt,W),P(Tt,G),P(Tt,$))),t.ADD_TAGS&&(yt===wt&&(yt=C(yt)),P(yt,t.ADD_TAGS,ae)),t.ADD_ATTR&&(Tt===xt&&(Tt=C(Tt)),P(Tt,t.ADD_ATTR,ae)),t.ADD_URI_SAFE_ATTR&&P(Gt,t.ADD_URI_SAFE_ATTR,ae),t.FORBID_CONTENTS&&(Xt===Yt&&(Xt=C(Xt)),P(Xt,t.FORBID_CONTENTS,ae)),Ut&&(yt["#text"]=!0),Mt&&P(yt,["html","head","body"]),yt.table&&(P(yt,["tbody"]),delete kt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw I('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}}(v,r)),null!==J&&"string"==typeof Q&&(Q=J.createHTML(""));d&&d(t),ce=t}},fe=P({},[...j,...U,...B]),de=P({},[...W,...X]),pe=function(t){T(i.removed,{element:t});try{Z(t).removeChild(t)}catch(e){N(t)}},me=function(t,e){try{T(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){T(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Nt||Ct)try{pe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ge=function(t){let e=null,i=null;if(Pt)t="<remove></remove>"+t;else{const e=A(t,/^[\r\n\t ]+/);i=e&&e[0]}"application/xhtml+xml"===re&&Jt===Zt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=J?J.createHTML(t):t;if(Jt===Zt)try{e=(new g).parseFromString(o,re)}catch(t){}if(!e||!e.documentElement){e=et.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===Zt?at.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 p&&("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 u&&t instanceof u};function we(t,e,n){b(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)&&D(/<[/\w!]/g,t.innerHTML)&&D(/<[/\w!]/g,t.textContent))return pe(t),!0;if(7===t.nodeType)return pe(t),!0;if(It&&8===t.nodeType&&D(/<[/\w]/g,t.data))return pe(t),!0;if(!yt[n]||kt[n]){if(!kt[n]&&Ee(n)){if(Et.tagNameCheck instanceof RegExp&&D(Et.tagNameCheck,n))return!1;if(Et.tagNameCheck instanceof Function&&Et.tagNameCheck(n))return!1}if(Ut&&!Xt[n]){const e=Z(t)||t.parentNode,i=V(t)||t.childNodes;if(i&&e)for(let n=i.length-1;n>=0;--n){const o=O(i[n],!0);o.__removalCount=(t.__removalCount||0)+1,e.insertBefore(o,K(t))}}return pe(t),!0}return t instanceof l&&!function(t){let e=Z(t);e&&e.tagName||(e={namespaceURI:Jt,tagName:"template"});const i=E(t.tagName),n=E(e.tagName);return!!te[t.namespaceURI]&&(t.namespaceURI===Vt?e.namespaceURI===Zt?"svg"===i:e.namespaceURI===Kt?"svg"===i&&("annotation-xml"===n||ie[n]):Boolean(fe[i]):t.namespaceURI===Kt?e.namespaceURI===Zt?"math"===i:e.namespaceURI===Vt?"math"===i&&ne[n]:Boolean(de[i]):t.namespaceURI===Zt?!(e.namespaceURI===Vt&&!ne[n])&&!(e.namespaceURI===Kt&&!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||!D(/<\/no(script|embed|frames)/i,t.innerHTML)?(Dt&&3===t.nodeType&&(e=t.textContent,b([lt,ht,ft],(t=>{e=S(e,t," ")})),t.textContent!==e&&(T(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]&&D(dt,e));else if(St&&D(pt,e));else if(!Tt[e]||At[e]){if(!(Ee(t)&&(Et.tagNameCheck instanceof RegExp&&D(Et.tagNameCheck,t)||Et.tagNameCheck instanceof Function&&Et.tagNameCheck(t))&&(Et.attributeNameCheck instanceof RegExp&&D(Et.attributeNameCheck,e)||Et.attributeNameCheck instanceof Function&&Et.attributeNameCheck(e))||"is"===e&&Et.allowCustomizedBuiltInElements&&(Et.tagNameCheck instanceof RegExp&&D(Et.tagNameCheck,i)||Et.tagNameCheck instanceof Function&&Et.tagNameCheck(i))))return!1}else if(Gt[e]);else if(D(bt,S(i,gt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==R(i,"data:")||!Ht[t])if(_t&&!D(mt,S(i,gt,"")));else if(i)return!1;return!0},Ee=function(t){return"annotation-xml"!==t&&A(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:_(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&&D(/((--!?|])>)|<\/(style|title)/i,h)){me(s,t);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){me(s,t);continue}if(!zt&&D(/\/>/i,h)){me(s,t);continue}Dt&&b([lt,ht,ft],(t=>{h=S(h,t," ")}));const f=ae(t.nodeName);if(xe(f,u,h)){if(J&&"object"==typeof v&&"function"==typeof v.getAttributeType)if(a);else switch(v.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):w(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,c=null;if(Qt=!t,Qt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!ye(t)){if("function"!=typeof t.toString)throw I("toString is not a function");if("string"!=typeof(t=t.toString()))throw I("dirty is not a string, aborting")}if(!i.isSupported)return t;if(Ot||he(e),i.removed=[],"string"==typeof t&&(Bt=!1),Bt){if(t.nodeName){const e=ae(t.nodeName);if(!yt[e]||kt[e])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof u)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(!Nt&&!Dt&&!Mt&&-1===t.indexOf("<"))return J&&Lt?J.createHTML(t):t;if(n=ge(t),!n)return Nt?null:Lt?Q:""}n&&Pt&&pe(n.firstChild);const l=ve(Bt?t:n);for(;a=l.nextNode();)Te(a),ke(a),a.content instanceof s&&Ae(a.content);if(Bt)return t;if(Nt){if(Ct)for(c=ot.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(Tt.shadowroot||Tt.shadowrootmode)&&(c=ct.call(o,c,!0)),c}let h=Mt?n.outerHTML:n.innerHTML;return Mt&&yt["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&D(nt,n.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+h),Dt&&b([lt,ht,ft],(t=>{h=S(h,t," ")})),J&&Lt?J.createHTML(h):h},i.setConfig=function(){he(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ot=!0},i.clearConfig=function(){ce=null,Ot=!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&&T(ut[t],e)},i.removeHook=function(t,e){if(void 0!==e){const i=y(ut[t],e);return-1===i?void 0:x(ut[t],i,1)[0]}return w(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=(at||(at=1,ct=lt,function(t,e,i,n){var o,r=["","webkit","Moz","MS","ms","o"],s=e.createElement("div"),a=Math.round,c=Math.abs,u=Date.now;function l(t,e,i){return setTimeout(v(t,i),e)}function h(t,e,i){return!!Array.isArray(t)&&(f(t,i[e],i),!0)}function f(t,e,i){var o;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==n)for(o=0;o<t.length;)e.call(i,t[o],o,t),o++;else for(o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function d(e,i,n){var o="DEPRECATED METHOD: "+i+"\n"+n+" AT \n";return function(){var i=new 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=t.console&&(t.console.warn||t.console.log);return r&&r.call(t.console,o,n),e.apply(this,arguments)}}o="function"!=typeof Object.assign?function(t){if(t===n||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var o=arguments[i];if(o!==n&&null!==o)for(var r in o)o.hasOwnProperty(r)&&(e[r]=o[r])}return e}:Object.assign;var p=d((function(t,e,i){for(var o=Object.keys(e),r=0;r<o.length;)(!i||i&&t[o[r]]===n)&&(t[o[r]]=e[o[r]]),r++;return t}),"extend","Use `assign`."),m=d((function(t,e){return p(t,e,!0)}),"merge","Use `assign`.");function g(t,e,i){var n,r=e.prototype;(n=t.prototype=Object.create(r)).constructor=t,n._super=r,i&&o(n,i)}function v(t,e){return function(){return t.apply(e,arguments)}}function b(t,e){return"function"==typeof t?t.apply(e&&e[0]||n,e):t}function y(t,e){return t===n?e:t}function w(t,e,i){f(k(e),(function(e){t.addEventListener(e,i,!1)}))}function T(t,e,i){f(k(e),(function(e){t.removeEventListener(e,i,!1)}))}function x(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function E(t,e){return t.indexOf(e)>-1}function k(t){return t.trim().split(/\s+/g)}function A(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 S(t){return Array.prototype.slice.call(t,0)}function R(t,e){for(var i=[],n=[],o=0;o<t.length;){var r=t[o][e];A(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,o,s=e[0].toUpperCase()+e.slice(1),a=0;a<r.length;){if((o=(i=r[a])?i+s:e)in t)return o;a++}return n}var z=1;function D(e){var i=e.ownerDocument||e;return i.defaultView||i.parentWindow||t}var I="ontouchstart"in t,M=_(t,"PointerEvent")!==n,O=I&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),P="touch",N="mouse",C=["x","y"],L=["clientX","clientY"];function F(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){b(t.options.enable,[t])&&i.handler(e)},this.init()}function j(t,e,i){var o=i.pointers.length,r=i.changedPointers.length,s=1&e&&o-r==0,a=12&e&&o-r==0;i.isFirst=!!s,i.isFinal=!!a,s&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,o=e.pointers,r=o.length;i.firstInput||(i.firstInput=U(e)),r>1&&!i.firstMultiple?i.firstMultiple=U(e):1===r&&(i.firstMultiple=!1);var s=i.firstInput,a=i.firstMultiple,l=a?a.center:s.center,h=e.center=B(o);e.timeStamp=u(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=H(l,h),e.distance=Y(l,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=X(e.deltaX,e.deltaY);var f,d,p=W(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=p.x,e.overallVelocityY=p.y,e.overallVelocity=c(p.x)>c(p.y)?p.x:p.y,e.scale=a?(f=a.pointers,Y((d=o)[0],d[1],L)/Y(f[0],f[1],L)):1,e.rotation=a?function(t,e){return H(e[1],e[0],L)+H(t[1],t[0],L)}(a.pointers,o):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,o,r,s,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(8!=e.eventType&&(u>25||a.velocity===n)){var l=e.deltaX-a.deltaX,h=e.deltaY-a.deltaY,f=W(u,l,h);o=f.x,r=f.y,i=c(f.x)>c(f.y)?f.x:f.y,s=X(l,h),t.lastInterval=e}else i=a.velocity,o=a.velocityX,r=a.velocityY,s=a.direction;e.velocity=i,e.velocityX=o,e.velocityY=r,e.direction=s}(i,e);var m=t.element;x(e.srcEvent.target,m)&&(m=e.srcEvent.target),e.target=m}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function U(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:a(t.pointers[i].clientX),clientY:a(t.pointers[i].clientY)},i++;return{timeStamp:u(),pointers:e,center:B(e),deltaX:t.deltaX,deltaY:t.deltaY}}function B(t){var e=t.length;if(1===e)return{x:a(t[0].clientX),y:a(t[0].clientY)};for(var i=0,n=0,o=0;o<e;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:a(i/e),y:a(n/e)}}function W(t,e,i){return{x:e/t||0,y:i/t||0}}function X(t,e){return t===e?1:c(t)>=c(e)?t<0?2:4:e<0?8:16}function Y(t,e,i){i||(i=C);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}function H(t,e,i){return i||(i=C),180*Math.atan2(e[i[1]]-t[i[1]],e[i[0]]-t[i[0]])/Math.PI}F.prototype={handler:function(){},init:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(D(this.element),this.evWin,this.domHandler)}};var q={mousedown:1,mousemove:2,mouseup:4};function G(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,F.apply(this,arguments)}g(G,F,{handler:function(t){var e=q[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 $={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},K={2:P,3:"pen",4:N,5:"kinect"},V="pointerdown",Z="pointermove pointerup pointercancel";function J(){this.evEl=V,this.evWin=Z,F.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(V="MSPointerDown",Z="MSPointerMove MSPointerUp MSPointerCancel"),g(J,F,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),o=$[n],r=K[t.pointerType]||t.pointerType,s=r==P,a=A(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 Q={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function tt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,F.apply(this,arguments)}function et(t,e){var i=S(t.touches),n=S(t.changedTouches);return 12&e&&(i=R(i.concat(n),"identifier")),[i,n]}g(tt,F,{handler:function(t){var e=Q[t.type];if(1===e&&(this.started=!0),this.started){var i=et.call(this,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:P,srcEvent:t})}}});var it={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},F.apply(this,arguments)}function ot(t,e){var i=S(t.touches),n=this.targetIds;if(3&e&&1===i.length)return n[i[0].identifier]=!0,[i,i];var o,r,s=S(t.changedTouches),a=[],c=this.target;if(r=i.filter((function(t){return x(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?[R(r.concat(a),"identifier"),a]:void 0}function rt(){F.apply(this,arguments);var t=v(this.handler,this);this.touch=new nt(this.manager,t),this.mouse=new G(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 ut(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var o=this.lastTouches[n],r=Math.abs(e-o.x),s=Math.abs(i-o.y);if(r<=25&&s<=25)return!0}return!1}g(nt,F,{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:P,srcEvent:t})}}),g(rt,F,{handler:function(t,e,i){var n=i.pointerType==N;if(!(n&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(i.pointerType==P)st.call(this,e,i);else if(n&&ut.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var lt=_(s.style,"touchAction"),ht=lt!==n,ft="compute",dt="auto",pt="manipulation",mt="none",gt="pan-x",vt="pan-y",bt=function(){if(!ht)return!1;var e={},i=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!i||t.CSS.supports("touch-action",n)})),e}();function yt(t,e){this.manager=t,this.set(e)}yt.prototype={set:function(t){t==ft&&(t=this.compute()),ht&&this.manager.element.style&&bt[t]&&(this.manager.element.style[lt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return f(this.manager.recognizers,(function(e){b(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(E(t,mt))return mt;var e=E(t,gt),i=E(t,vt);return e&&i?mt:e||i?e?gt:vt:E(t,pt)?pt:dt}(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=E(n,mt)&&!bt[mt],r=E(n,vt)&&!bt[vt],s=E(n,gt)&&!bt[gt];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 wt=32;function Tt(t){this.options=o({},this.defaults,t||{}),this.id=z++,this.manager=null,this.options.enable=y(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function xt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Et(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function kt(t,e){var i=e.manager;return i?i.get(t):t}function At(){Tt.apply(this,arguments)}function St(){At.apply(this,arguments),this.pX=null,this.pY=null}function Rt(){At.apply(this,arguments)}function _t(){Tt.apply(this,arguments),this._timer=null,this._input=null}function zt(){At.apply(this,arguments)}function Dt(){At.apply(this,arguments)}function It(){Tt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Mt(t,e){return(e=e||{}).recognizers=y(e.recognizers,Mt.defaults.preset),new Ot(t,e)}function Ot(t,e){this.options=o({},Mt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||(M?J:O?nt:I?rt:G))(this,j),this.touchAction=new yt(this,this.options.touchAction),Pt(this,!0),f(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&&(f(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={}))}Tt.prototype={defaults:{},set:function(t){return o(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(h(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=kt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return h(t,"dropRecognizeWith",this)||(t=kt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(h(t,"requireFailure",this))return this;var e=this.requireFail;return-1===A(e,t=kt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(h(t,"dropRequireFailure",this))return this;t=kt(t,this);var e=A(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+xt(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+xt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=wt},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=o({},t);if(!b(this.options.enable,[this,e]))return this.reset(),void(this.state=wt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(){},getTouchAction:function(){},reset:function(){}},g(At,Tt,{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:wt}}),g(St,At,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(vt),24&t&&e.push(gt),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 At.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=Et(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),g(Rt,At,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[mt]},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)}}),g(_t,Tt,{defaults:{event:"press",pointers:1,time:251,threshold:9},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._input=t,!n||!i||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=l((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return wt},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=u(),this.manager.emit(this.options.event,this._input)))}}),g(zt,At,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[mt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),g(Dt,At,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return St.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&&c(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=Et(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),g(It,Tt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[pt]},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=l((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return wt},failTimeout:function(){return this._timer=l((function(){this.state=wt}),this.options.interval,this),wt},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Mt.VERSION="2.0.7",Mt.defaults={domEvents:!1,touchAction:ft,enable:!0,inputTarget:null,inputClass:null,preset:[[zt,{enable:!1}],[Rt,{enable:!1},["rotate"]],[Dt,{direction:6}],[St,{direction:6},["swipe"]],[It],[It,{event:"doubletap",taps:2},["tap"]],[_t]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Ot.prototype={set:function(t){return o(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 Tt)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(h(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(h(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=A(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==n&&e!==n){var i=this.handlers;return f(k(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this}},off:function(t,e){if(t!==n){var i=this.handlers;return f(k(t),(function(t){e?i[t]&&i[t].splice(A(i[t],e),1):delete i[t]})),this}},emit:function(t,i){this.options.domEvents&&function(t,i){var n=e.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=i,i.target.dispatchEvent(n)}(t,i);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){i.type=t,i.preventDefault=function(){i.srcEvent.preventDefault()};for(var o=0;o<n.length;)n[o](i),o++}},destroy:function(){this.element&&Pt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(Mt,{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:wt,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:Ot,Input:F,TouchAction:yt,TouchInput:nt,MouseInput:G,PointerEventInput:J,TouchMouseInput:rt,SingleTouchInput:tt,Recognizer:Tt,AttrRecognizer:At,Tap:It,Pan:St,Swipe:Dt,Pinch:Rt,Rotate:zt,Press:_t,on:w,off:T,each:f,merge:m,extend:p,assign:o,inherit:g,bindFn:v,prefixed:_}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=Mt,ct.exports?ct.exports=Mt:t.Hammer=Mt}(window,document)),lt.exports),ft=a(ht);const dt={[r.SLIDE_IN_DOWN]:r.SLIDE_OUT_UP,[r.SLIDE_IN_UP]:r.SLIDE_OUT_DOWN,[r.SLIDE_IN_LEFT]:r.SLIDE_OUT_RIGHT,[r.SLIDE_IN_RIGHT]:r.SLIDE_OUT_LEFT},pt=class{constructor(i){t(this,i),this.toastClose=e(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?r.SLIDE_OUT_LEFT:r.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 i(n,{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)}},i("div",{key:"dc37f25eddcc763014c01766f43fba82ed54eb64",class:"toast-notification-container"},i("div",{key:"3b832ddf285d2f203a5172ea20c221d7c5fecf8b",class:"toast-notification-content"},i("div",{key:"b701ba1ea667e98092b858cd31275f8beb1cf89a",class:"toast-notification-text"},this.heading&&i("span",{key:"643748547bf51bbb5ffeae968e9a6f5fb1f8db1e",class:"title"},this.heading),i("span",{key:"2c1d2f616dc9c34b847732af066a0750e1ea49a2",class:"message"},i("slot",{key:"fea0d0b716ff11a64eeb98d2013da6887eeb5c99",name:"message"},this.message&&i("span",{key:"5867861be21564191c97f7cabace3c33645b4cd2",innerHTML:ut.sanitize(this.message)})))),i("div",{key:"3405e83126816b47017f59da2bd95a8195c30a25",class:"button-container",hidden:!this.hasSlottedButton},i("slot",{key:"821f8f8ce998969cf16323c72c151c5dc0a72d62",name:"button",onSlotchange:()=>this.checkSlottedButton()}))),this.closebutton&&i("button",{key:"c3e84a06feaf5632d0733971786dc824b2fa3ab6",class:"close-button","aria-label":"Chiudi notifica",onClick:()=>this.close(dt[this.transition],!0),onKeyDown:t=>{t.code!=s.SPACE&&t.code!=s.ENTER||(t.preventDefault(),this.close(dt[this.transition],!0))}},i("z-icon",{key:"67397c893a19e479e6f76e5c1428ce301f12416e",name:"multiply-circled"}))))}get hostElement(){return o(this)}static get watchers(){return{isdraggable:[{watchPropIsdraggable:0}],autoclose:[{watchPropAutoclose:0}],pauseonfocusloss:[{watchPropPauseonfocusloss:0}]}}};pt.style=":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%)}}";export{pt as z_toast_notification}
@@ -1 +0,0 @@
1
- import{r as t,c as o,h as e,H as i}from"./p-ByN2sYu6.js";const n=class{handleActionButtonClick(t){t.preventDefault(),this.notificationAction.emit()}handleCloseButtonClick(t){t.preventDefault(),this.notificationClose.emit()}constructor(e){t(this,e),this.notificationAction=o(this,"notificationAction",7),this.notificationClose=o(this,"notificationClose",7),this.showclose=!1,this.showshadow=!1,this.sticky=!1,this.borderposition="bottom",this.handleActionButtonClick=this.handleActionButtonClick.bind(this),this.handleCloseButtonClick=this.handleCloseButtonClick.bind(this)}render(){var t;return e(i,{key:"40da9cc297666e279f89631cede4c24d16abbc79"},e("div",{key:"1591d69902fe6ed78424da9363b5aa6ca56b21fe",class:"main-container"},this.contenticonname&&e("z-icon",{key:"585a4bc748ce664b6a3cb6e13879f98f48eed38d",class:"status-icon",name:this.contenticonname,width:16,height:16}),e("div",{key:"f3a415e24907ade9cff0c966cbc905a2ee2b0982",class:"content-container"},e("div",{key:"adc775c0294adc136e2138cc32b8b86b32c765ef",class:"content-text"},e("slot",{key:"e467e4ea81b76bf092650d2a52cb249bc70bed78"})),!!(null===(t=this.actiontext)||void 0===t?void 0:t.trim())&&e("button",{key:"6253c14815223122888d3b71b7e5a08fa9ab72c1",class:"action-button",type:"button",onClick:this.handleActionButtonClick},this.actiontext)),this.showclose&&e("button",{key:"0baeb981e72a49fec6055b16c37ef7395204861f",class:"close-button",type:"button",onClick:this.handleCloseButtonClick},e("z-icon",{key:"229f88bd8ef914cb361f84f3435d207b433862c1",name:"multiply-circle",width:16,height:16}))))}};n.style=':host{--z-notification--top-offset:0;--z-notification--content-max-width:100%;display:block;width:100%}.main-container{display:flex;max-width:var(--z-notification--content-max-width);align-items:flex-start;padding:calc(var(--space-unit) * 2);margin:0 auto;background-color:transparent;font-family:var(--font-family-sans)}:host([sticky]){position:sticky;top:var(--z-notification--top-offset)}:host([sticky]),:host([showshadow]){box-shadow:var(--shadow-3)}:host([type="success"]){background:var(--color-inverse-success)}:host([type="warning"]){background:var(--color-inverse-warning)}:host([type="error"]){background:var(--color-inverse-error)}.status-icon,.close-button{display:flex;height:20px;align-items:center}:host([type="success"]) .status-icon{fill:var(--color-default-success)}:host([type="warning"]) .status-icon{fill:var(--color-default-warning)}:host([type="error"]) .status-icon{fill:var(--color-default-error)}:host([borderposition="bottom"]){border-bottom:var(--border-size-medium) solid var(--color-surface03)}:host([borderposition="top"]){border-top:var(--border-size-medium) solid var(--color-surface03)}button{padding:0;border:none;margin:0;background:transparent;cursor:pointer;font-family:inherit}.status-icon+.content-container{margin-left:var(--space-unit)}.content-container{display:flex;flex:1 auto;flex-wrap:wrap;align-items:baseline;justify-content:space-between;row-gap:calc(var(--space-unit) * 2)}.content-text{color:var(--color-default-text);font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:20px}.action-button{color:var(--color-primary01);font-size:var(--font-size-1);font-weight:var(--font-sb);letter-spacing:0.32px;line-height:16px}.action-button:focus{box-shadow:var(--shadow-focus-primary);outline:none !important}.content-container+.close-button{margin-left:calc(var(--space-unit) * 2)}.close-button z-icon{fill:var(--color-primary01)}@media only screen and (min-width: 768px){.content-container{flex-wrap:nowrap}.content-text+.action-button{margin-left:calc(var(--space-unit) * 5)}}';export{n as z_notification}