@zanichelli/albe-web-components 16.4.1 → 17.0.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 (774) hide show
  1. package/CHANGELOG.md +0 -2
  2. package/dist/cjs/{index-22bdf239.js → index-33b64381.js} +3 -3
  3. package/dist/cjs/{index-22bdf239.js.map → index-33b64381.js.map} +1 -1
  4. package/dist/cjs/{index-b26fbd76.js → index-5fe3e314.js} +2 -2
  5. package/dist/cjs/{index-b26fbd76.js.map → index-5fe3e314.js.map} +1 -1
  6. package/dist/cjs/{index-01778132.js → index-675adf8b.js} +2 -2
  7. package/dist/cjs/{index-01778132.js.map → index-675adf8b.js.map} +1 -1
  8. package/dist/cjs/{index-6726b7d2.js → index-8662ab0e.js} +5 -5
  9. package/dist/cjs/{index-6726b7d2.js.map → index-8662ab0e.js.map} +1 -1
  10. package/dist/cjs/index-96af6326.js +12 -4
  11. package/dist/cjs/{index-97f9a3a0.js → index-acf58aff.js} +3 -3
  12. package/dist/cjs/{index-97f9a3a0.js.map → index-acf58aff.js.map} +1 -1
  13. package/dist/cjs/{index-ef486baa.js → index-cfab5bb3.js} +2 -2
  14. package/dist/cjs/{index-ef486baa.js.map → index-cfab5bb3.js.map} +1 -1
  15. package/dist/cjs/{index-daad5eae.js → index-f5ebcaa2.js} +14 -4
  16. package/dist/cjs/index-f5ebcaa2.js.map +1 -0
  17. package/dist/cjs/index.cjs.js +14 -2
  18. package/dist/cjs/index.cjs.js.map +1 -1
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/cjs/{utils-4a30b263.js → utils-c95c97b8.js} +2 -2
  21. package/dist/cjs/{utils-4a30b263.js.map → utils-c95c97b8.js.map} +1 -1
  22. package/dist/cjs/{utils-24df887f.js → utils-d08d4b80.js} +2 -2
  23. package/dist/cjs/{utils-24df887f.js.map → utils-d08d4b80.js.map} +1 -1
  24. package/dist/cjs/web-components-library.cjs.js +1 -1
  25. package/dist/cjs/z-accordion.cjs.entry.js +2 -2
  26. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  27. package/dist/cjs/z-anchor-navigation.cjs.entry.js +2 -2
  28. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +2 -2
  29. package/dist/cjs/z-app-header_12.cjs.entry.js +15 -25
  30. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  31. package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
  32. package/dist/cjs/z-avatar.cjs.entry.js +3 -3
  33. package/dist/cjs/z-book-card-app.cjs.entry.js +41 -0
  34. package/dist/cjs/z-book-card-app.cjs.entry.js.map +1 -0
  35. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +138 -0
  36. package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +1 -0
  37. package/dist/cjs/z-book-card.cjs.entry.js +98 -94
  38. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
  39. package/dist/cjs/z-breadcrumb.cjs.entry.js +4 -4
  40. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  41. package/dist/cjs/z-card.cjs.entry.js +1 -1
  42. package/dist/cjs/z-carousel.cjs.entry.js +1 -1
  43. package/dist/cjs/z-chip.cjs.entry.js +3 -3
  44. package/dist/cjs/z-combobox.cjs.entry.js +3 -3
  45. package/dist/cjs/z-cover-hero.cjs.entry.js +3 -3
  46. package/dist/cjs/z-date-picker.cjs.entry.js +3 -3
  47. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +13 -7
  48. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -1
  49. package/dist/cjs/z-file-upload.cjs.entry.js +3 -3
  50. package/dist/cjs/z-file.cjs.entry.js +2 -2
  51. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  52. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  53. package/dist/cjs/z-info-reveal.cjs.entry.js +2 -2
  54. package/dist/cjs/z-logo.cjs.entry.js +1 -1
  55. package/dist/cjs/z-menu-deprecated.cjs.entry.js +1 -1
  56. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +1 -1
  57. package/dist/cjs/z-menu-section.cjs.entry.js +2 -2
  58. package/dist/cjs/z-menu.cjs.entry.js +2 -2
  59. package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  60. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
  61. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  62. package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
  63. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  64. package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -3
  65. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  66. package/dist/cjs/z-myz-card_4.cjs.entry.js +5 -5
  67. package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
  68. package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
  69. package/dist/cjs/z-navigation-tabs.cjs.entry.js +3 -3
  70. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  71. package/dist/cjs/z-otp.cjs.entry.js +3 -3
  72. package/dist/cjs/z-pagination.cjs.entry.js +1 -1
  73. package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
  74. package/dist/cjs/z-popover.cjs.entry.js +2 -2
  75. package/dist/cjs/z-range-picker.cjs.entry.js +5 -5
  76. package/dist/cjs/z-section-title.cjs.entry.js +2 -2
  77. package/dist/cjs/z-select.cjs.entry.js +3 -3
  78. package/dist/cjs/z-skip-to-content.cjs.entry.js +3 -3
  79. package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
  80. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  81. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  82. package/dist/cjs/z-table.cjs.entry.js +9 -9
  83. package/dist/cjs/z-tbody.cjs.entry.js +1 -1
  84. package/dist/cjs/z-td.cjs.entry.js +2 -2
  85. package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
  86. package/dist/cjs/z-th.cjs.entry.js +2 -2
  87. package/dist/cjs/z-thead.cjs.entry.js +1 -1
  88. package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
  89. package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
  90. package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
  91. package/dist/cjs/z-toggle-switch.cjs.entry.js +5 -5
  92. package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
  93. package/dist/cjs/z-tr.cjs.entry.js +5 -5
  94. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  95. package/dist/collection/beans/index.js +13 -3
  96. package/dist/collection/beans/index.js.map +1 -1
  97. package/dist/collection/collection-manifest.json +5 -3
  98. package/dist/collection/components/book-card/z-book-card/index.js +498 -0
  99. package/dist/collection/components/book-card/z-book-card/index.js.map +1 -0
  100. package/dist/collection/components/book-card/z-book-card/index.stories.js +149 -0
  101. package/dist/collection/components/book-card/z-book-card/index.stories.js.map +1 -0
  102. package/dist/collection/components/book-card/z-book-card/styles.css +201 -0
  103. package/dist/collection/components/book-card/z-book-card-app/index.js +124 -0
  104. package/dist/collection/components/book-card/z-book-card-app/index.js.map +1 -0
  105. package/dist/collection/components/book-card/z-book-card-app/index.stories.js +29 -0
  106. package/dist/collection/components/book-card/z-book-card-app/index.stories.js.map +1 -0
  107. package/dist/collection/components/book-card/z-book-card-app/styles.css +56 -0
  108. package/dist/collection/components/css-components/z-link/styles.css +174 -0
  109. package/dist/collection/components/date-picker/z-date-picker/index.js +1 -1
  110. package/dist/collection/components/date-picker/z-range-picker/index.js +3 -3
  111. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +1 -1
  112. package/dist/collection/components/{z-book-card → deprecated/z-book-card-deprecated}/index.js +16 -16
  113. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js.map +1 -0
  114. package/dist/collection/components/{z-book-card → deprecated/z-book-card-deprecated}/index.stories.js +24 -24
  115. package/dist/collection/components/deprecated/z-book-card-deprecated/index.stories.js.map +1 -0
  116. package/dist/collection/components/deprecated/z-menu-deprecated/index.js +1 -1
  117. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +1 -1
  118. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +2 -2
  119. package/dist/collection/components/file-upload/z-file/index.js +1 -1
  120. package/dist/collection/components/file-upload/z-file-upload/index.js +1 -1
  121. package/dist/collection/components/list/z-list/index.js +1 -1
  122. package/dist/collection/components/list/z-list-element/index.js +1 -1
  123. package/dist/collection/components/list/z-list-group/index.js +2 -2
  124. package/dist/collection/components/table/cells/z-td/index.js +1 -1
  125. package/dist/collection/components/table/cells/z-th/index.js +1 -1
  126. package/dist/collection/components/table/z-table/index.js +1 -1
  127. package/dist/collection/components/table/z-tbody/index.js +1 -1
  128. package/dist/collection/components/table/z-tfoot/index.js +1 -1
  129. package/dist/collection/components/table/z-thead/index.js +1 -1
  130. package/dist/collection/components/table/z-tr/index.js +1 -1
  131. package/dist/collection/components/z-accordion/index.js +1 -1
  132. package/dist/collection/components/z-anchor-navigation/index.js +1 -1
  133. package/dist/collection/components/z-app-header/index.js +1 -1
  134. package/dist/collection/components/z-aria-alert/index.js +1 -1
  135. package/dist/collection/components/z-avatar/index.js +2 -2
  136. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  137. package/dist/collection/components/z-button-sort/index.js +1 -1
  138. package/dist/collection/components/z-chip/index.js +2 -2
  139. package/dist/collection/components/z-combobox/index.js +1 -1
  140. package/dist/collection/components/z-cover-hero/index.js +2 -2
  141. package/dist/collection/components/z-divider/index.js +1 -1
  142. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  143. package/dist/collection/components/z-icon/index.js +1 -1
  144. package/dist/collection/components/z-info-box/index.js +1 -1
  145. package/dist/collection/components/z-info-reveal/index.js +1 -1
  146. package/dist/collection/components/z-input/index.js +1 -1
  147. package/dist/collection/components/z-input-message/index.js +1 -1
  148. package/dist/collection/components/z-logo/index.js +1 -1
  149. package/dist/collection/components/z-menu-section/index.js +1 -1
  150. package/dist/collection/components/z-modal/index.js +10 -4
  151. package/dist/collection/components/z-modal/index.js.map +1 -1
  152. package/dist/collection/components/z-navigation-tabs/index.js +2 -2
  153. package/dist/collection/components/z-notification/index.js +1 -1
  154. package/dist/collection/components/z-offcanvas/index.js +1 -1
  155. package/dist/collection/components/z-panel-elem/index.js +2 -2
  156. package/dist/collection/components/z-popover/index.js +1 -1
  157. package/dist/collection/components/z-searchbar/index.js +1 -1
  158. package/dist/collection/components/z-section-title/index.js +1 -1
  159. package/dist/collection/components/z-select/index.js +1 -1
  160. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  161. package/dist/collection/components/z-stepper/index.js +1 -1
  162. package/dist/collection/components/z-stepper-item/index.js +1 -1
  163. package/dist/collection/components/z-tag/index.js +2 -2
  164. package/dist/collection/components/z-toast-notification/index.js +1 -1
  165. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  166. package/dist/collection/components/z-toggle-button/index.js +2 -2
  167. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  168. package/dist/collection/components/z-tooltip/index.js +1 -1
  169. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  170. package/dist/collection/constants/iconset.js +0 -10
  171. package/dist/collection/constants/iconset.js.map +1 -1
  172. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  173. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  174. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  175. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  176. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  177. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  178. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  179. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  180. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  181. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  182. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  183. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  184. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  185. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  186. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  187. package/dist/collection/tokens/typography.css +681 -0
  188. package/dist/components/iconset.js +0 -10
  189. package/dist/components/iconset.js.map +1 -1
  190. package/dist/components/index.d.ts +5 -1
  191. package/dist/components/index.js +3 -1
  192. package/dist/components/index.js.map +1 -1
  193. package/dist/components/index10.js +58 -308
  194. package/dist/components/index10.js.map +1 -1
  195. package/dist/components/index11.js +314 -36
  196. package/dist/components/index11.js.map +1 -1
  197. package/dist/components/index12.js +38 -27
  198. package/dist/components/index12.js.map +1 -1
  199. package/dist/components/index13.js +23 -146
  200. package/dist/components/index13.js.map +1 -1
  201. package/dist/components/index14.js +141 -36
  202. package/dist/components/index14.js.map +1 -1
  203. package/dist/components/index15.js +39 -989
  204. package/dist/components/index15.js.map +1 -1
  205. package/dist/components/index16.js +1000 -38
  206. package/dist/components/index16.js.map +1 -1
  207. package/dist/components/index17.js +42 -10
  208. package/dist/components/index17.js.map +1 -1
  209. package/dist/components/index18.js +10 -22
  210. package/dist/components/index18.js.map +1 -1
  211. package/dist/components/index19.js +16 -33
  212. package/dist/components/index19.js.map +1 -1
  213. package/dist/components/index2.js +14 -4
  214. package/dist/components/index2.js.map +1 -1
  215. package/dist/components/index20.js +39 -43
  216. package/dist/components/index20.js.map +1 -1
  217. package/dist/components/index21.js +44 -81
  218. package/dist/components/index21.js.map +1 -1
  219. package/dist/components/index22.js +63 -301
  220. package/dist/components/index22.js.map +1 -1
  221. package/dist/components/index23.js +286 -347
  222. package/dist/components/index23.js.map +1 -1
  223. package/dist/components/index24.js +376 -19
  224. package/dist/components/index24.js.map +1 -1
  225. package/dist/components/index25.js +45 -0
  226. package/dist/components/index25.js.map +1 -0
  227. package/dist/components/index3.js +1 -1
  228. package/dist/components/index5.js +2 -2
  229. package/dist/components/index6.js +1 -1
  230. package/dist/components/index7.js +2 -2
  231. package/dist/components/index8.js +1 -1
  232. package/dist/components/index9.js +1 -1
  233. package/dist/components/z-accordion.js +2 -2
  234. package/dist/components/z-anchor-navigation.js +1 -1
  235. package/dist/components/z-app-header-deprecated.js +9 -9
  236. package/dist/components/z-app-header.js +9 -9
  237. package/dist/components/z-aria-alert.js +1 -1
  238. package/dist/components/z-avatar.js +2 -2
  239. package/dist/components/z-book-card-app.d.ts +11 -0
  240. package/dist/components/z-book-card-app.js +73 -0
  241. package/dist/components/z-book-card-app.js.map +1 -0
  242. package/dist/components/z-book-card-deprecated.d.ts +11 -0
  243. package/dist/components/z-book-card-deprecated.js +175 -0
  244. package/dist/components/z-book-card-deprecated.js.map +1 -0
  245. package/dist/components/z-book-card.js +128 -106
  246. package/dist/components/z-book-card.js.map +1 -1
  247. package/dist/components/z-breadcrumb.js +6 -6
  248. package/dist/components/z-button-sort.js +1 -1
  249. package/dist/components/z-combobox.js +6 -6
  250. package/dist/components/z-cover-hero.js +2 -2
  251. package/dist/components/z-date-picker.js +3 -3
  252. package/dist/components/z-file-upload.js +2 -2
  253. package/dist/components/z-file.js +2 -2
  254. package/dist/components/z-info-box.js +1 -1
  255. package/dist/components/z-info-reveal.js +1 -88
  256. package/dist/components/z-info-reveal.js.map +1 -1
  257. package/dist/components/z-input-message.js +1 -1
  258. package/dist/components/z-input.js +1 -1
  259. package/dist/components/z-list-element.js +1 -1
  260. package/dist/components/z-list-group.js +1 -1
  261. package/dist/components/z-list.js +1 -1
  262. package/dist/components/z-logo.js +1 -1
  263. package/dist/components/z-menu-deprecated.js +1 -1
  264. package/dist/components/z-menu-section-deprecated.js +1 -1
  265. package/dist/components/z-menu-section.js +1 -1
  266. package/dist/components/z-modal.js +1 -1
  267. package/dist/components/z-myz-card-alert.js +1 -1
  268. package/dist/components/z-myz-card-body.js +1 -1
  269. package/dist/components/z-myz-card-cover.js +1 -1
  270. package/dist/components/z-myz-card-dictionary.js +5 -5
  271. package/dist/components/z-myz-card-footer-sections.js +1 -1
  272. package/dist/components/z-myz-card-footer.js +1 -1
  273. package/dist/components/z-myz-card-header.js +1 -1
  274. package/dist/components/z-myz-card-icon.js +1 -1
  275. package/dist/components/z-myz-card-info.js +2 -2
  276. package/dist/components/z-myz-card-list.js +1 -1
  277. package/dist/components/z-myz-card.js +1 -1
  278. package/dist/components/z-myz-list-item.js +1 -1
  279. package/dist/components/z-myz-list.js +2 -2
  280. package/dist/components/z-navigation-tabs.js +2 -2
  281. package/dist/components/z-notification.js +1 -1
  282. package/dist/components/z-offcanvas.js +1 -1
  283. package/dist/components/z-otp.js +3 -3
  284. package/dist/components/z-pagination.js +2 -2
  285. package/dist/components/z-panel-elem.js +2 -2
  286. package/dist/components/z-popover.js +1 -1
  287. package/dist/components/z-range-picker.js +5 -5
  288. package/dist/components/z-searchbar.js +1 -1
  289. package/dist/components/z-section-title.js +1 -1
  290. package/dist/components/z-select.js +7 -7
  291. package/dist/components/z-skip-to-content.js +1 -1
  292. package/dist/components/z-stepper-item.js +1 -1
  293. package/dist/components/z-stepper.js +1 -1
  294. package/dist/components/z-table.js +1 -1
  295. package/dist/components/z-tag.js +1 -1
  296. package/dist/components/z-tbody.js +1 -1
  297. package/dist/components/z-td.js +2 -2
  298. package/dist/components/z-tfoot.js +1 -1
  299. package/dist/components/z-th.js +2 -2
  300. package/dist/components/z-thead.js +1 -1
  301. package/dist/components/z-toast-notification-list.js +1 -1
  302. package/dist/components/z-toast-notification.js +1 -1
  303. package/dist/components/z-toggle-button.js +2 -2
  304. package/dist/components/z-toggle-switch.js +3 -3
  305. package/dist/components/z-tooltip.js +2 -2
  306. package/dist/components/z-tr.js +1 -1
  307. package/dist/components/z-visually-hidden.js +1 -1
  308. package/dist/esm/{index-7b64c875.js → index-350c25c9.js} +5 -5
  309. package/dist/esm/{index-7b64c875.js.map → index-350c25c9.js.map} +1 -1
  310. package/dist/esm/{index-09ff70db.js → index-3f261ba1.js} +2 -2
  311. package/dist/esm/{index-09ff70db.js.map → index-3f261ba1.js.map} +1 -1
  312. package/dist/esm/{index-fe4fc8da.js → index-53b72ad2.js} +2 -2
  313. package/dist/esm/{index-fe4fc8da.js.map → index-53b72ad2.js.map} +1 -1
  314. package/dist/esm/{index-8e5c830a.js → index-608103c2.js} +2 -2
  315. package/dist/esm/{index-8e5c830a.js.map → index-608103c2.js.map} +1 -1
  316. package/dist/esm/{index-681cc2b7.js → index-a93175b6.js} +3 -3
  317. package/dist/esm/{index-681cc2b7.js.map → index-a93175b6.js.map} +1 -1
  318. package/dist/esm/index-c8ceadeb.js +12 -4
  319. package/dist/esm/{index-19b24f63.js → index-cdaab374.js} +3 -3
  320. package/dist/esm/{index-19b24f63.js.map → index-cdaab374.js.map} +1 -1
  321. package/dist/esm/{index-a63060e9.js → index-ee40e66b.js} +15 -5
  322. package/dist/esm/index-ee40e66b.js.map +1 -0
  323. package/dist/esm/index.js +2 -2
  324. package/dist/esm/loader.js +1 -1
  325. package/dist/esm/{utils-5e595d4f.js → utils-a31c16d9.js} +2 -2
  326. package/dist/esm/{utils-5e595d4f.js.map → utils-a31c16d9.js.map} +1 -1
  327. package/dist/esm/{utils-305762b5.js → utils-ed82ce58.js} +2 -2
  328. package/dist/esm/{utils-305762b5.js.map → utils-ed82ce58.js.map} +1 -1
  329. package/dist/esm/web-components-library.js +1 -1
  330. package/dist/esm/z-accordion.entry.js +2 -2
  331. package/dist/esm/z-alert.entry.js +1 -1
  332. package/dist/esm/z-anchor-navigation.entry.js +2 -2
  333. package/dist/esm/z-app-header-deprecated.entry.js +2 -2
  334. package/dist/esm/z-app-header_12.entry.js +15 -25
  335. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  336. package/dist/esm/z-aria-alert.entry.js +2 -2
  337. package/dist/esm/z-avatar.entry.js +3 -3
  338. package/dist/esm/z-book-card-app.entry.js +37 -0
  339. package/dist/esm/z-book-card-app.entry.js.map +1 -0
  340. package/dist/esm/z-book-card-deprecated.entry.js +134 -0
  341. package/dist/esm/z-book-card-deprecated.entry.js.map +1 -0
  342. package/dist/esm/z-book-card.entry.js +99 -95
  343. package/dist/esm/z-book-card.entry.js.map +1 -1
  344. package/dist/esm/z-breadcrumb.entry.js +4 -4
  345. package/dist/esm/z-button-sort.entry.js +1 -1
  346. package/dist/esm/z-card.entry.js +1 -1
  347. package/dist/esm/z-carousel.entry.js +1 -1
  348. package/dist/esm/z-chip.entry.js +3 -3
  349. package/dist/esm/z-combobox.entry.js +3 -3
  350. package/dist/esm/z-cover-hero.entry.js +3 -3
  351. package/dist/esm/z-date-picker.entry.js +3 -3
  352. package/dist/esm/z-dragdrop-area_2.entry.js +13 -7
  353. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -1
  354. package/dist/esm/z-file-upload.entry.js +3 -3
  355. package/dist/esm/z-file.entry.js +2 -2
  356. package/dist/esm/z-ghost-loading.entry.js +1 -1
  357. package/dist/esm/z-info-box.entry.js +1 -1
  358. package/dist/esm/z-info-reveal.entry.js +2 -2
  359. package/dist/esm/z-logo.entry.js +1 -1
  360. package/dist/esm/z-menu-deprecated.entry.js +1 -1
  361. package/dist/esm/z-menu-section-deprecated.entry.js +1 -1
  362. package/dist/esm/z-menu-section.entry.js +2 -2
  363. package/dist/esm/z-menu.entry.js +2 -2
  364. package/dist/esm/z-myz-card-alert.entry.js +2 -2
  365. package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
  366. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  367. package/dist/esm/z-myz-card-footer.entry.js +2 -2
  368. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  369. package/dist/esm/z-myz-card-info.entry.js +3 -3
  370. package/dist/esm/z-myz-card-list.entry.js +1 -1
  371. package/dist/esm/z-myz-card_4.entry.js +5 -5
  372. package/dist/esm/z-myz-list-item.entry.js +3 -3
  373. package/dist/esm/z-myz-list.entry.js +1 -1
  374. package/dist/esm/z-navigation-tabs.entry.js +3 -3
  375. package/dist/esm/z-notification.entry.js +1 -1
  376. package/dist/esm/z-otp.entry.js +3 -3
  377. package/dist/esm/z-pagination.entry.js +1 -1
  378. package/dist/esm/z-panel-elem.entry.js +2 -2
  379. package/dist/esm/z-popover.entry.js +2 -2
  380. package/dist/esm/z-range-picker.entry.js +5 -5
  381. package/dist/esm/z-section-title.entry.js +2 -2
  382. package/dist/esm/z-select.entry.js +3 -3
  383. package/dist/esm/z-skip-to-content.entry.js +3 -3
  384. package/dist/esm/z-slideshow.entry.js +2 -2
  385. package/dist/esm/z-stepper-item.entry.js +1 -1
  386. package/dist/esm/z-stepper.entry.js +1 -1
  387. package/dist/esm/z-table.entry.js +9 -9
  388. package/dist/esm/z-tbody.entry.js +1 -1
  389. package/dist/esm/z-td.entry.js +2 -2
  390. package/dist/esm/z-tfoot.entry.js +1 -1
  391. package/dist/esm/z-th.entry.js +2 -2
  392. package/dist/esm/z-thead.entry.js +1 -1
  393. package/dist/esm/z-toast-notification-list.entry.js +2 -2
  394. package/dist/esm/z-toast-notification.entry.js +2 -2
  395. package/dist/esm/z-toggle-button.entry.js +2 -2
  396. package/dist/esm/z-toggle-switch.entry.js +5 -5
  397. package/dist/esm/z-tooltip.entry.js +2 -2
  398. package/dist/esm/z-tr.entry.js +5 -5
  399. package/dist/esm/z-visually-hidden.entry.js +1 -1
  400. package/dist/types/beans/index.d.ts +16 -0
  401. package/dist/types/components/book-card/z-book-card/index.d.ts +68 -0
  402. package/dist/types/components/book-card/z-book-card/index.stories.d.ts +77 -0
  403. package/dist/types/components/book-card/z-book-card-app/index.d.ts +25 -0
  404. package/dist/types/components/book-card/z-book-card-app/index.stories.d.ts +22 -0
  405. package/dist/types/components/{z-book-card → deprecated/z-book-card-deprecated}/index.d.ts +6 -6
  406. package/dist/types/components/{z-book-card → deprecated/z-book-card-deprecated}/index.stories.d.ts +9 -9
  407. package/dist/types/components/z-modal/index.d.ts +1 -0
  408. package/dist/types/components.d.ts +234 -14
  409. package/dist/types/constants/iconset.d.ts +0 -20
  410. package/dist/web-components-library/index.esm.js +1 -1
  411. package/dist/web-components-library/index.esm.js.map +1 -1
  412. package/dist/web-components-library/p-01b73978.entry.js +2 -0
  413. package/dist/web-components-library/{p-9a48e70b.entry.js → p-03fff274.entry.js} +2 -2
  414. package/dist/web-components-library/{p-ab45ba6d.js → p-05f6053f.js} +2 -2
  415. package/{www/build/p-0778e75d.entry.js → dist/web-components-library/p-0623cb0c.entry.js} +2 -2
  416. package/dist/web-components-library/{p-910fd48c.entry.js → p-09f6f502.entry.js} +2 -2
  417. package/dist/web-components-library/p-0cd10649.entry.js +2 -0
  418. package/dist/web-components-library/{p-90908f36.js → p-10607a39.js} +2 -2
  419. package/{www/build/p-63488a2b.entry.js → dist/web-components-library/p-11977cf4.entry.js} +2 -2
  420. package/{www/build/p-b7af7fa4.entry.js → dist/web-components-library/p-14cb6906.entry.js} +2 -2
  421. package/dist/web-components-library/p-15cb27a5.entry.js +2 -0
  422. package/{www/build/p-a9805b32.entry.js → dist/web-components-library/p-1630e240.entry.js} +2 -2
  423. package/dist/web-components-library/{p-e0a0bfb2.entry.js → p-1c243d34.entry.js} +2 -2
  424. package/dist/web-components-library/{p-140b5d8f.entry.js → p-201742d8.entry.js} +2 -2
  425. package/dist/web-components-library/p-2dd5e7f6.entry.js +2 -0
  426. package/dist/web-components-library/{p-13366542.js → p-2eddce0d.js} +2 -2
  427. package/dist/web-components-library/{p-0b100bd7.entry.js → p-2fbfd156.entry.js} +2 -2
  428. package/dist/web-components-library/{p-6ed39f10.entry.js → p-36935fa0.entry.js} +2 -2
  429. package/dist/web-components-library/{p-8b24d801.entry.js → p-38e8c15d.entry.js} +2 -2
  430. package/dist/web-components-library/p-3aa8d377.js +2 -0
  431. package/dist/web-components-library/p-4bf0a07d.entry.js +2 -0
  432. package/{www/build/p-48b2e967.entry.js → dist/web-components-library/p-5226fa9e.entry.js} +2 -2
  433. package/dist/web-components-library/p-554f3de2.entry.js +2 -0
  434. package/dist/web-components-library/{p-ceb4403d.entry.js → p-563e86c0.entry.js} +2 -2
  435. package/{www/build/p-e38df1a4.entry.js → dist/web-components-library/p-56f76e8b.entry.js} +3 -3
  436. package/dist/web-components-library/{p-f7ef289b.entry.js → p-57a479e2.entry.js} +2 -2
  437. package/dist/web-components-library/{p-be2405e2.entry.js → p-5b677d6c.entry.js} +2 -2
  438. package/{www/build/p-3618e227.entry.js → dist/web-components-library/p-5f220178.entry.js} +2 -2
  439. package/dist/web-components-library/{p-273f3c53.entry.js → p-6a5429eb.entry.js} +2 -2
  440. package/dist/web-components-library/{p-6e92df75.entry.js → p-6af64b62.entry.js} +2 -2
  441. package/dist/web-components-library/{p-03cd1ead.entry.js → p-6c24917e.entry.js} +2 -2
  442. package/dist/web-components-library/p-7073453b.entry.js +2 -0
  443. package/dist/web-components-library/p-7073453b.entry.js.map +1 -0
  444. package/dist/web-components-library/{p-350f84c5.entry.js → p-72463e1e.entry.js} +2 -2
  445. package/dist/web-components-library/{p-eb3985d0.entry.js → p-7af2be0f.entry.js} +2 -2
  446. package/dist/web-components-library/p-7b2938cf.js +2 -0
  447. package/dist/web-components-library/{p-0c489c4b.entry.js → p-7c4d7591.entry.js} +2 -2
  448. package/dist/web-components-library/p-88ce9c5e.entry.js +2 -0
  449. package/dist/web-components-library/{p-228db53f.entry.js → p-8aa0f4d0.entry.js} +2 -2
  450. package/dist/web-components-library/{p-db340bc6.entry.js → p-8abbecc6.entry.js} +2 -2
  451. package/{www/build/p-b1039f3d.entry.js → dist/web-components-library/p-8afbf9c1.entry.js} +2 -2
  452. package/dist/web-components-library/p-8cbc8d17.entry.js +2 -0
  453. package/dist/web-components-library/p-8cbc8d17.entry.js.map +1 -0
  454. package/{www/build/p-c62825e1.js → dist/web-components-library/p-8ed50cbe.js} +2 -2
  455. package/{www/build/p-d847bfcd.entry.js → dist/web-components-library/p-8f9ee669.entry.js} +2 -2
  456. package/dist/web-components-library/p-94ac3a8e.js +2 -0
  457. package/{www/build/p-b222df41.entry.js → dist/web-components-library/p-a0512ae0.entry.js} +2 -2
  458. package/{www/build/p-a4aaffd3.entry.js → dist/web-components-library/p-a1d6f996.entry.js} +2 -2
  459. package/dist/web-components-library/p-a23151fa.entry.js +2 -0
  460. package/dist/web-components-library/{p-ec740313.entry.js.map → p-a23151fa.entry.js.map} +1 -1
  461. package/{www/build/p-03e85eac.entry.js → dist/web-components-library/p-a75e11fd.entry.js} +2 -2
  462. package/{www/build/p-417ed850.entry.js → dist/web-components-library/p-a95bf077.entry.js} +3 -3
  463. package/dist/web-components-library/{p-f3037ac9.entry.js → p-aad8da85.entry.js} +2 -2
  464. package/dist/web-components-library/p-ac953072.entry.js +2 -0
  465. package/dist/web-components-library/p-ad2d1d63.entry.js +2 -0
  466. package/dist/web-components-library/p-b34993de.js +2 -0
  467. package/dist/web-components-library/p-b34993de.js.map +1 -0
  468. package/dist/web-components-library/{p-c451b4d7.entry.js → p-b3bb1d8e.entry.js} +2 -2
  469. package/dist/web-components-library/p-b6ef8bc3.entry.js +2 -0
  470. package/dist/web-components-library/p-b6ef8bc3.entry.js.map +1 -0
  471. package/dist/web-components-library/{p-ecae1a7a.entry.js → p-b7c2d03b.entry.js} +2 -2
  472. package/dist/web-components-library/p-b82f7ecc.entry.js +2 -0
  473. package/dist/web-components-library/p-b8a14060.entry.js +2 -0
  474. package/dist/web-components-library/p-b8a14060.entry.js.map +1 -0
  475. package/dist/web-components-library/p-ba289415.entry.js +2 -0
  476. package/dist/web-components-library/{p-eb5a148f.entry.js → p-be082561.entry.js} +2 -2
  477. package/{www/build/p-985e61f5.entry.js → dist/web-components-library/p-bfd756c2.entry.js} +2 -2
  478. package/dist/web-components-library/p-bfd756c2.entry.js.map +1 -0
  479. package/dist/web-components-library/{p-456f984f.js → p-cab91789.js} +2 -2
  480. package/dist/web-components-library/{p-b6ea478b.entry.js → p-cb7f0092.entry.js} +2 -2
  481. package/dist/web-components-library/{p-571f1e1d.entry.js → p-cda77971.entry.js} +2 -2
  482. package/{www/build/p-51f5e5e6.entry.js → dist/web-components-library/p-cf0f4b17.entry.js} +2 -2
  483. package/dist/web-components-library/p-df10fbaa.entry.js +2 -0
  484. package/dist/web-components-library/{p-d13520c2.entry.js → p-e0c8a601.entry.js} +2 -2
  485. package/dist/web-components-library/{p-7c20b8f6.entry.js → p-e83dc145.entry.js} +2 -2
  486. package/{www/build/p-db04ba75.entry.js → dist/web-components-library/p-ea74101f.entry.js} +2 -2
  487. package/{www/build/p-b3272516.entry.js → dist/web-components-library/p-ed091723.entry.js} +2 -2
  488. package/dist/web-components-library/p-eda4a138.entry.js +2 -0
  489. package/dist/web-components-library/{p-ef8a7250.entry.js → p-f160f987.entry.js} +2 -2
  490. package/dist/web-components-library/{p-38d5e74f.entry.js → p-f3cecece.entry.js} +2 -2
  491. package/dist/web-components-library/{p-09552f18.entry.js → p-f64c0f65.entry.js} +2 -2
  492. package/{www/build/p-47137e39.entry.js → dist/web-components-library/p-f90de798.entry.js} +2 -2
  493. package/dist/web-components-library/web-components-library.esm.js +1 -1
  494. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  495. package/package.json +1 -1
  496. package/react/components.d.ts +2 -0
  497. package/react/components.js +4 -2
  498. package/react/components.js.map +1 -1
  499. package/www/build/index.esm.js +1 -1
  500. package/www/build/index.esm.js.map +1 -1
  501. package/www/build/p-01b73978.entry.js +2 -0
  502. package/www/build/{p-9a48e70b.entry.js → p-03fff274.entry.js} +2 -2
  503. package/www/build/{p-ab45ba6d.js → p-05f6053f.js} +2 -2
  504. package/{dist/web-components-library/p-0778e75d.entry.js → www/build/p-0623cb0c.entry.js} +2 -2
  505. package/www/build/{p-910fd48c.entry.js → p-09f6f502.entry.js} +2 -2
  506. package/www/build/p-0cd10649.entry.js +2 -0
  507. package/www/build/{p-90908f36.js → p-10607a39.js} +2 -2
  508. package/{dist/web-components-library/p-63488a2b.entry.js → www/build/p-11977cf4.entry.js} +2 -2
  509. package/{dist/web-components-library/p-b7af7fa4.entry.js → www/build/p-14cb6906.entry.js} +2 -2
  510. package/www/build/p-15cb27a5.entry.js +2 -0
  511. package/{dist/web-components-library/p-a9805b32.entry.js → www/build/p-1630e240.entry.js} +2 -2
  512. package/www/build/p-19e60f95.js +2 -0
  513. package/www/build/{p-e0a0bfb2.entry.js → p-1c243d34.entry.js} +2 -2
  514. package/www/build/{p-140b5d8f.entry.js → p-201742d8.entry.js} +2 -2
  515. package/www/build/p-2dd5e7f6.entry.js +2 -0
  516. package/www/build/{p-13366542.js → p-2eddce0d.js} +2 -2
  517. package/www/build/{p-0b100bd7.entry.js → p-2fbfd156.entry.js} +2 -2
  518. package/www/build/{p-6ed39f10.entry.js → p-36935fa0.entry.js} +2 -2
  519. package/www/build/{p-8b24d801.entry.js → p-38e8c15d.entry.js} +2 -2
  520. package/www/build/p-3aa8d377.js +2 -0
  521. package/www/build/p-4bf0a07d.entry.js +2 -0
  522. package/{dist/web-components-library/p-48b2e967.entry.js → www/build/p-5226fa9e.entry.js} +2 -2
  523. package/www/build/p-554f3de2.entry.js +2 -0
  524. package/www/build/{p-ceb4403d.entry.js → p-563e86c0.entry.js} +2 -2
  525. package/{dist/web-components-library/p-e38df1a4.entry.js → www/build/p-56f76e8b.entry.js} +3 -3
  526. package/www/build/{p-f7ef289b.entry.js → p-57a479e2.entry.js} +2 -2
  527. package/www/build/{p-be2405e2.entry.js → p-5b677d6c.entry.js} +2 -2
  528. package/{dist/web-components-library/p-3618e227.entry.js → www/build/p-5f220178.entry.js} +2 -2
  529. package/www/build/{p-273f3c53.entry.js → p-6a5429eb.entry.js} +2 -2
  530. package/www/build/{p-6e92df75.entry.js → p-6af64b62.entry.js} +2 -2
  531. package/www/build/{p-03cd1ead.entry.js → p-6c24917e.entry.js} +2 -2
  532. package/www/build/p-7073453b.entry.js +2 -0
  533. package/www/build/p-7073453b.entry.js.map +1 -0
  534. package/www/build/{p-350f84c5.entry.js → p-72463e1e.entry.js} +2 -2
  535. package/www/build/{p-eb3985d0.entry.js → p-7af2be0f.entry.js} +2 -2
  536. package/www/build/p-7b2938cf.js +2 -0
  537. package/www/build/{p-0c489c4b.entry.js → p-7c4d7591.entry.js} +2 -2
  538. package/www/build/p-88ce9c5e.entry.js +2 -0
  539. package/www/build/{p-228db53f.entry.js → p-8aa0f4d0.entry.js} +2 -2
  540. package/www/build/{p-db340bc6.entry.js → p-8abbecc6.entry.js} +2 -2
  541. package/{dist/web-components-library/p-b1039f3d.entry.js → www/build/p-8afbf9c1.entry.js} +2 -2
  542. package/www/build/p-8cbc8d17.entry.js +2 -0
  543. package/www/build/p-8cbc8d17.entry.js.map +1 -0
  544. package/{dist/web-components-library/p-c62825e1.js → www/build/p-8ed50cbe.js} +2 -2
  545. package/{dist/web-components-library/p-d847bfcd.entry.js → www/build/p-8f9ee669.entry.js} +2 -2
  546. package/www/build/p-94ac3a8e.js +2 -0
  547. package/{dist/web-components-library/p-b222df41.entry.js → www/build/p-a0512ae0.entry.js} +2 -2
  548. package/{dist/web-components-library/p-a4aaffd3.entry.js → www/build/p-a1d6f996.entry.js} +2 -2
  549. package/www/build/p-a23151fa.entry.js +2 -0
  550. package/www/build/{p-ec740313.entry.js.map → p-a23151fa.entry.js.map} +1 -1
  551. package/{dist/web-components-library/p-03e85eac.entry.js → www/build/p-a75e11fd.entry.js} +2 -2
  552. package/{dist/web-components-library/p-417ed850.entry.js → www/build/p-a95bf077.entry.js} +3 -3
  553. package/www/build/{p-f3037ac9.entry.js → p-aad8da85.entry.js} +2 -2
  554. package/www/build/p-ac953072.entry.js +2 -0
  555. package/www/build/p-ad2d1d63.entry.js +2 -0
  556. package/www/build/p-b34993de.js +2 -0
  557. package/www/build/p-b34993de.js.map +1 -0
  558. package/www/build/{p-c451b4d7.entry.js → p-b3bb1d8e.entry.js} +2 -2
  559. package/www/build/p-b6ef8bc3.entry.js +2 -0
  560. package/www/build/p-b6ef8bc3.entry.js.map +1 -0
  561. package/www/build/{p-ecae1a7a.entry.js → p-b7c2d03b.entry.js} +2 -2
  562. package/www/build/p-b82f7ecc.entry.js +2 -0
  563. package/www/build/p-b8a14060.entry.js +2 -0
  564. package/www/build/p-b8a14060.entry.js.map +1 -0
  565. package/www/build/p-ba289415.entry.js +2 -0
  566. package/www/build/{p-eb5a148f.entry.js → p-be082561.entry.js} +2 -2
  567. package/{dist/web-components-library/p-985e61f5.entry.js → www/build/p-bfd756c2.entry.js} +2 -2
  568. package/www/build/p-bfd756c2.entry.js.map +1 -0
  569. package/www/build/{p-456f984f.js → p-cab91789.js} +2 -2
  570. package/www/build/{p-b6ea478b.entry.js → p-cb7f0092.entry.js} +2 -2
  571. package/www/build/{p-571f1e1d.entry.js → p-cda77971.entry.js} +2 -2
  572. package/{dist/web-components-library/p-51f5e5e6.entry.js → www/build/p-cf0f4b17.entry.js} +2 -2
  573. package/www/build/p-df10fbaa.entry.js +2 -0
  574. package/www/build/{p-d13520c2.entry.js → p-e0c8a601.entry.js} +2 -2
  575. package/www/build/{p-7c20b8f6.entry.js → p-e83dc145.entry.js} +2 -2
  576. package/{dist/web-components-library/p-db04ba75.entry.js → www/build/p-ea74101f.entry.js} +2 -2
  577. package/{dist/web-components-library/p-b3272516.entry.js → www/build/p-ed091723.entry.js} +2 -2
  578. package/www/build/p-eda4a138.entry.js +2 -0
  579. package/www/build/{p-ef8a7250.entry.js → p-f160f987.entry.js} +2 -2
  580. package/www/build/{p-38d5e74f.entry.js → p-f3cecece.entry.js} +2 -2
  581. package/www/build/{p-09552f18.entry.js → p-f64c0f65.entry.js} +2 -2
  582. package/{dist/web-components-library/p-47137e39.entry.js → www/build/p-f90de798.entry.js} +2 -2
  583. package/www/build/web-components-library.esm.js +1 -1
  584. package/www/build/web-components-library.esm.js.map +1 -1
  585. package/www/index.html +1 -1
  586. package/www/pages/book-cards.html +75 -573
  587. package/dist/cjs/index-daad5eae.js.map +0 -1
  588. package/dist/collection/components/z-book-card/index.js.map +0 -1
  589. package/dist/collection/components/z-book-card/index.stories.js.map +0 -1
  590. package/dist/esm/index-a63060e9.js.map +0 -1
  591. package/dist/web-components-library/p-06b8521b.entry.js +0 -2
  592. package/dist/web-components-library/p-11df2c0a.entry.js +0 -2
  593. package/dist/web-components-library/p-11df2c0a.entry.js.map +0 -1
  594. package/dist/web-components-library/p-16719dff.entry.js +0 -2
  595. package/dist/web-components-library/p-17d2d60b.entry.js +0 -2
  596. package/dist/web-components-library/p-1c24255c.js +0 -2
  597. package/dist/web-components-library/p-1c24255c.js.map +0 -1
  598. package/dist/web-components-library/p-291319ed.entry.js +0 -2
  599. package/dist/web-components-library/p-32d603b8.js +0 -2
  600. package/dist/web-components-library/p-3d97dedf.entry.js +0 -2
  601. package/dist/web-components-library/p-6297dfaa.entry.js +0 -2
  602. package/dist/web-components-library/p-6b759395.entry.js +0 -2
  603. package/dist/web-components-library/p-6b791915.entry.js +0 -2
  604. package/dist/web-components-library/p-8855aef4.js +0 -2
  605. package/dist/web-components-library/p-8d443cac.entry.js +0 -2
  606. package/dist/web-components-library/p-985e61f5.entry.js.map +0 -1
  607. package/dist/web-components-library/p-9c36d574.entry.js +0 -2
  608. package/dist/web-components-library/p-a167bdd5.js +0 -2
  609. package/dist/web-components-library/p-af7e5773.entry.js +0 -2
  610. package/dist/web-components-library/p-b20bfb34.entry.js +0 -2
  611. package/dist/web-components-library/p-b20bfb34.entry.js.map +0 -1
  612. package/dist/web-components-library/p-ec740313.entry.js +0 -2
  613. package/dist/web-components-library/p-fb2eb3c0.entry.js +0 -2
  614. package/dist/web-components-library/p-febc4982.entry.js +0 -2
  615. package/www/build/p-06b8521b.entry.js +0 -2
  616. package/www/build/p-11df2c0a.entry.js +0 -2
  617. package/www/build/p-11df2c0a.entry.js.map +0 -1
  618. package/www/build/p-16719dff.entry.js +0 -2
  619. package/www/build/p-17d2d60b.entry.js +0 -2
  620. package/www/build/p-1c24255c.js +0 -2
  621. package/www/build/p-1c24255c.js.map +0 -1
  622. package/www/build/p-1fcf4111.js +0 -2
  623. package/www/build/p-291319ed.entry.js +0 -2
  624. package/www/build/p-32d603b8.js +0 -2
  625. package/www/build/p-3d97dedf.entry.js +0 -2
  626. package/www/build/p-6297dfaa.entry.js +0 -2
  627. package/www/build/p-6b759395.entry.js +0 -2
  628. package/www/build/p-6b791915.entry.js +0 -2
  629. package/www/build/p-8855aef4.js +0 -2
  630. package/www/build/p-8d443cac.entry.js +0 -2
  631. package/www/build/p-985e61f5.entry.js.map +0 -1
  632. package/www/build/p-9c36d574.entry.js +0 -2
  633. package/www/build/p-a167bdd5.js +0 -2
  634. package/www/build/p-af7e5773.entry.js +0 -2
  635. package/www/build/p-b20bfb34.entry.js +0 -2
  636. package/www/build/p-b20bfb34.entry.js.map +0 -1
  637. package/www/build/p-ec740313.entry.js +0 -2
  638. package/www/build/p-fb2eb3c0.entry.js +0 -2
  639. package/www/build/p-febc4982.entry.js +0 -2
  640. /package/dist/collection/components/{z-book-card → deprecated/z-book-card-deprecated}/styles.css +0 -0
  641. /package/dist/web-components-library/{p-06b8521b.entry.js.map → p-01b73978.entry.js.map} +0 -0
  642. /package/dist/web-components-library/{p-9a48e70b.entry.js.map → p-03fff274.entry.js.map} +0 -0
  643. /package/dist/web-components-library/{p-ab45ba6d.js.map → p-05f6053f.js.map} +0 -0
  644. /package/dist/web-components-library/{p-0778e75d.entry.js.map → p-0623cb0c.entry.js.map} +0 -0
  645. /package/dist/web-components-library/{p-910fd48c.entry.js.map → p-09f6f502.entry.js.map} +0 -0
  646. /package/dist/web-components-library/{p-291319ed.entry.js.map → p-0cd10649.entry.js.map} +0 -0
  647. /package/dist/web-components-library/{p-90908f36.js.map → p-10607a39.js.map} +0 -0
  648. /package/dist/web-components-library/{p-63488a2b.entry.js.map → p-11977cf4.entry.js.map} +0 -0
  649. /package/dist/web-components-library/{p-b7af7fa4.entry.js.map → p-14cb6906.entry.js.map} +0 -0
  650. /package/dist/web-components-library/{p-16719dff.entry.js.map → p-15cb27a5.entry.js.map} +0 -0
  651. /package/dist/web-components-library/{p-a9805b32.entry.js.map → p-1630e240.entry.js.map} +0 -0
  652. /package/dist/web-components-library/{p-e0a0bfb2.entry.js.map → p-1c243d34.entry.js.map} +0 -0
  653. /package/dist/web-components-library/{p-140b5d8f.entry.js.map → p-201742d8.entry.js.map} +0 -0
  654. /package/dist/web-components-library/{p-17d2d60b.entry.js.map → p-2dd5e7f6.entry.js.map} +0 -0
  655. /package/dist/web-components-library/{p-13366542.js.map → p-2eddce0d.js.map} +0 -0
  656. /package/dist/web-components-library/{p-0b100bd7.entry.js.map → p-2fbfd156.entry.js.map} +0 -0
  657. /package/dist/web-components-library/{p-6ed39f10.entry.js.map → p-36935fa0.entry.js.map} +0 -0
  658. /package/dist/web-components-library/{p-8b24d801.entry.js.map → p-38e8c15d.entry.js.map} +0 -0
  659. /package/dist/web-components-library/{p-32d603b8.js.map → p-3aa8d377.js.map} +0 -0
  660. /package/dist/web-components-library/{p-6297dfaa.entry.js.map → p-4bf0a07d.entry.js.map} +0 -0
  661. /package/dist/web-components-library/{p-48b2e967.entry.js.map → p-5226fa9e.entry.js.map} +0 -0
  662. /package/dist/web-components-library/{p-6b759395.entry.js.map → p-554f3de2.entry.js.map} +0 -0
  663. /package/dist/web-components-library/{p-ceb4403d.entry.js.map → p-563e86c0.entry.js.map} +0 -0
  664. /package/dist/web-components-library/{p-e38df1a4.entry.js.map → p-56f76e8b.entry.js.map} +0 -0
  665. /package/dist/web-components-library/{p-f7ef289b.entry.js.map → p-57a479e2.entry.js.map} +0 -0
  666. /package/dist/web-components-library/{p-be2405e2.entry.js.map → p-5b677d6c.entry.js.map} +0 -0
  667. /package/dist/web-components-library/{p-3618e227.entry.js.map → p-5f220178.entry.js.map} +0 -0
  668. /package/dist/web-components-library/{p-273f3c53.entry.js.map → p-6a5429eb.entry.js.map} +0 -0
  669. /package/dist/web-components-library/{p-6e92df75.entry.js.map → p-6af64b62.entry.js.map} +0 -0
  670. /package/dist/web-components-library/{p-03cd1ead.entry.js.map → p-6c24917e.entry.js.map} +0 -0
  671. /package/dist/web-components-library/{p-350f84c5.entry.js.map → p-72463e1e.entry.js.map} +0 -0
  672. /package/dist/web-components-library/{p-eb3985d0.entry.js.map → p-7af2be0f.entry.js.map} +0 -0
  673. /package/dist/web-components-library/{p-8855aef4.js.map → p-7b2938cf.js.map} +0 -0
  674. /package/dist/web-components-library/{p-0c489c4b.entry.js.map → p-7c4d7591.entry.js.map} +0 -0
  675. /package/dist/web-components-library/{p-6b791915.entry.js.map → p-88ce9c5e.entry.js.map} +0 -0
  676. /package/dist/web-components-library/{p-228db53f.entry.js.map → p-8aa0f4d0.entry.js.map} +0 -0
  677. /package/dist/web-components-library/{p-db340bc6.entry.js.map → p-8abbecc6.entry.js.map} +0 -0
  678. /package/dist/web-components-library/{p-b1039f3d.entry.js.map → p-8afbf9c1.entry.js.map} +0 -0
  679. /package/dist/web-components-library/{p-c62825e1.js.map → p-8ed50cbe.js.map} +0 -0
  680. /package/dist/web-components-library/{p-d847bfcd.entry.js.map → p-8f9ee669.entry.js.map} +0 -0
  681. /package/dist/web-components-library/{p-a167bdd5.js.map → p-94ac3a8e.js.map} +0 -0
  682. /package/dist/web-components-library/{p-b222df41.entry.js.map → p-a0512ae0.entry.js.map} +0 -0
  683. /package/dist/web-components-library/{p-a4aaffd3.entry.js.map → p-a1d6f996.entry.js.map} +0 -0
  684. /package/dist/web-components-library/{p-03e85eac.entry.js.map → p-a75e11fd.entry.js.map} +0 -0
  685. /package/dist/web-components-library/{p-417ed850.entry.js.map → p-a95bf077.entry.js.map} +0 -0
  686. /package/dist/web-components-library/{p-f3037ac9.entry.js.map → p-aad8da85.entry.js.map} +0 -0
  687. /package/dist/web-components-library/{p-9c36d574.entry.js.map → p-ac953072.entry.js.map} +0 -0
  688. /package/dist/web-components-library/{p-8d443cac.entry.js.map → p-ad2d1d63.entry.js.map} +0 -0
  689. /package/dist/web-components-library/{p-c451b4d7.entry.js.map → p-b3bb1d8e.entry.js.map} +0 -0
  690. /package/dist/web-components-library/{p-ecae1a7a.entry.js.map → p-b7c2d03b.entry.js.map} +0 -0
  691. /package/dist/web-components-library/{p-3d97dedf.entry.js.map → p-b82f7ecc.entry.js.map} +0 -0
  692. /package/dist/web-components-library/{p-febc4982.entry.js.map → p-ba289415.entry.js.map} +0 -0
  693. /package/dist/web-components-library/{p-eb5a148f.entry.js.map → p-be082561.entry.js.map} +0 -0
  694. /package/dist/web-components-library/{p-456f984f.js.map → p-cab91789.js.map} +0 -0
  695. /package/dist/web-components-library/{p-b6ea478b.entry.js.map → p-cb7f0092.entry.js.map} +0 -0
  696. /package/dist/web-components-library/{p-571f1e1d.entry.js.map → p-cda77971.entry.js.map} +0 -0
  697. /package/dist/web-components-library/{p-51f5e5e6.entry.js.map → p-cf0f4b17.entry.js.map} +0 -0
  698. /package/dist/web-components-library/{p-fb2eb3c0.entry.js.map → p-df10fbaa.entry.js.map} +0 -0
  699. /package/dist/web-components-library/{p-d13520c2.entry.js.map → p-e0c8a601.entry.js.map} +0 -0
  700. /package/dist/web-components-library/{p-7c20b8f6.entry.js.map → p-e83dc145.entry.js.map} +0 -0
  701. /package/dist/web-components-library/{p-db04ba75.entry.js.map → p-ea74101f.entry.js.map} +0 -0
  702. /package/dist/web-components-library/{p-b3272516.entry.js.map → p-ed091723.entry.js.map} +0 -0
  703. /package/dist/web-components-library/{p-af7e5773.entry.js.map → p-eda4a138.entry.js.map} +0 -0
  704. /package/dist/web-components-library/{p-ef8a7250.entry.js.map → p-f160f987.entry.js.map} +0 -0
  705. /package/dist/web-components-library/{p-38d5e74f.entry.js.map → p-f3cecece.entry.js.map} +0 -0
  706. /package/dist/web-components-library/{p-09552f18.entry.js.map → p-f64c0f65.entry.js.map} +0 -0
  707. /package/dist/web-components-library/{p-47137e39.entry.js.map → p-f90de798.entry.js.map} +0 -0
  708. /package/www/build/{p-06b8521b.entry.js.map → p-01b73978.entry.js.map} +0 -0
  709. /package/www/build/{p-9a48e70b.entry.js.map → p-03fff274.entry.js.map} +0 -0
  710. /package/www/build/{p-ab45ba6d.js.map → p-05f6053f.js.map} +0 -0
  711. /package/www/build/{p-0778e75d.entry.js.map → p-0623cb0c.entry.js.map} +0 -0
  712. /package/www/build/{p-910fd48c.entry.js.map → p-09f6f502.entry.js.map} +0 -0
  713. /package/www/build/{p-291319ed.entry.js.map → p-0cd10649.entry.js.map} +0 -0
  714. /package/www/build/{p-90908f36.js.map → p-10607a39.js.map} +0 -0
  715. /package/www/build/{p-63488a2b.entry.js.map → p-11977cf4.entry.js.map} +0 -0
  716. /package/www/build/{p-b7af7fa4.entry.js.map → p-14cb6906.entry.js.map} +0 -0
  717. /package/www/build/{p-16719dff.entry.js.map → p-15cb27a5.entry.js.map} +0 -0
  718. /package/www/build/{p-a9805b32.entry.js.map → p-1630e240.entry.js.map} +0 -0
  719. /package/www/build/{p-e0a0bfb2.entry.js.map → p-1c243d34.entry.js.map} +0 -0
  720. /package/www/build/{p-140b5d8f.entry.js.map → p-201742d8.entry.js.map} +0 -0
  721. /package/www/build/{p-17d2d60b.entry.js.map → p-2dd5e7f6.entry.js.map} +0 -0
  722. /package/www/build/{p-13366542.js.map → p-2eddce0d.js.map} +0 -0
  723. /package/www/build/{p-0b100bd7.entry.js.map → p-2fbfd156.entry.js.map} +0 -0
  724. /package/www/build/{p-6ed39f10.entry.js.map → p-36935fa0.entry.js.map} +0 -0
  725. /package/www/build/{p-8b24d801.entry.js.map → p-38e8c15d.entry.js.map} +0 -0
  726. /package/www/build/{p-32d603b8.js.map → p-3aa8d377.js.map} +0 -0
  727. /package/www/build/{p-6297dfaa.entry.js.map → p-4bf0a07d.entry.js.map} +0 -0
  728. /package/www/build/{p-48b2e967.entry.js.map → p-5226fa9e.entry.js.map} +0 -0
  729. /package/www/build/{p-6b759395.entry.js.map → p-554f3de2.entry.js.map} +0 -0
  730. /package/www/build/{p-ceb4403d.entry.js.map → p-563e86c0.entry.js.map} +0 -0
  731. /package/www/build/{p-e38df1a4.entry.js.map → p-56f76e8b.entry.js.map} +0 -0
  732. /package/www/build/{p-f7ef289b.entry.js.map → p-57a479e2.entry.js.map} +0 -0
  733. /package/www/build/{p-be2405e2.entry.js.map → p-5b677d6c.entry.js.map} +0 -0
  734. /package/www/build/{p-3618e227.entry.js.map → p-5f220178.entry.js.map} +0 -0
  735. /package/www/build/{p-273f3c53.entry.js.map → p-6a5429eb.entry.js.map} +0 -0
  736. /package/www/build/{p-6e92df75.entry.js.map → p-6af64b62.entry.js.map} +0 -0
  737. /package/www/build/{p-03cd1ead.entry.js.map → p-6c24917e.entry.js.map} +0 -0
  738. /package/www/build/{p-350f84c5.entry.js.map → p-72463e1e.entry.js.map} +0 -0
  739. /package/www/build/{p-eb3985d0.entry.js.map → p-7af2be0f.entry.js.map} +0 -0
  740. /package/www/build/{p-8855aef4.js.map → p-7b2938cf.js.map} +0 -0
  741. /package/www/build/{p-0c489c4b.entry.js.map → p-7c4d7591.entry.js.map} +0 -0
  742. /package/www/build/{p-6b791915.entry.js.map → p-88ce9c5e.entry.js.map} +0 -0
  743. /package/www/build/{p-228db53f.entry.js.map → p-8aa0f4d0.entry.js.map} +0 -0
  744. /package/www/build/{p-db340bc6.entry.js.map → p-8abbecc6.entry.js.map} +0 -0
  745. /package/www/build/{p-b1039f3d.entry.js.map → p-8afbf9c1.entry.js.map} +0 -0
  746. /package/www/build/{p-c62825e1.js.map → p-8ed50cbe.js.map} +0 -0
  747. /package/www/build/{p-d847bfcd.entry.js.map → p-8f9ee669.entry.js.map} +0 -0
  748. /package/www/build/{p-a167bdd5.js.map → p-94ac3a8e.js.map} +0 -0
  749. /package/www/build/{p-b222df41.entry.js.map → p-a0512ae0.entry.js.map} +0 -0
  750. /package/www/build/{p-a4aaffd3.entry.js.map → p-a1d6f996.entry.js.map} +0 -0
  751. /package/www/build/{p-03e85eac.entry.js.map → p-a75e11fd.entry.js.map} +0 -0
  752. /package/www/build/{p-417ed850.entry.js.map → p-a95bf077.entry.js.map} +0 -0
  753. /package/www/build/{p-f3037ac9.entry.js.map → p-aad8da85.entry.js.map} +0 -0
  754. /package/www/build/{p-9c36d574.entry.js.map → p-ac953072.entry.js.map} +0 -0
  755. /package/www/build/{p-8d443cac.entry.js.map → p-ad2d1d63.entry.js.map} +0 -0
  756. /package/www/build/{p-c451b4d7.entry.js.map → p-b3bb1d8e.entry.js.map} +0 -0
  757. /package/www/build/{p-ecae1a7a.entry.js.map → p-b7c2d03b.entry.js.map} +0 -0
  758. /package/www/build/{p-3d97dedf.entry.js.map → p-b82f7ecc.entry.js.map} +0 -0
  759. /package/www/build/{p-febc4982.entry.js.map → p-ba289415.entry.js.map} +0 -0
  760. /package/www/build/{p-eb5a148f.entry.js.map → p-be082561.entry.js.map} +0 -0
  761. /package/www/build/{p-456f984f.js.map → p-cab91789.js.map} +0 -0
  762. /package/www/build/{p-b6ea478b.entry.js.map → p-cb7f0092.entry.js.map} +0 -0
  763. /package/www/build/{p-571f1e1d.entry.js.map → p-cda77971.entry.js.map} +0 -0
  764. /package/www/build/{p-51f5e5e6.entry.js.map → p-cf0f4b17.entry.js.map} +0 -0
  765. /package/www/build/{p-fb2eb3c0.entry.js.map → p-df10fbaa.entry.js.map} +0 -0
  766. /package/www/build/{p-d13520c2.entry.js.map → p-e0c8a601.entry.js.map} +0 -0
  767. /package/www/build/{p-7c20b8f6.entry.js.map → p-e83dc145.entry.js.map} +0 -0
  768. /package/www/build/{p-db04ba75.entry.js.map → p-ea74101f.entry.js.map} +0 -0
  769. /package/www/build/{p-b3272516.entry.js.map → p-ed091723.entry.js.map} +0 -0
  770. /package/www/build/{p-af7e5773.entry.js.map → p-eda4a138.entry.js.map} +0 -0
  771. /package/www/build/{p-ef8a7250.entry.js.map → p-f160f987.entry.js.map} +0 -0
  772. /package/www/build/{p-38d5e74f.entry.js.map → p-f3cecece.entry.js.map} +0 -0
  773. /package/www/build/{p-09552f18.entry.js.map → p-f64c0f65.entry.js.map} +0 -0
  774. /package/www/build/{p-47137e39.entry.js.map → p-f90de798.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{r as i,c as t,h as e,a as s,g as o}from"./p-75c4a726.js";import{U as r,V as n,p as a,g as l,P as h,i as p}from"./p-1c24255c.js";import{g as c,d}from"./p-90908f36.js";import"./p-5145a606.js";const f=":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-link-primary);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);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-link-primary)}z-icon.separator{--z-icon-width:10px;--z-icon-height:10px;fill:var(--gray500)}button.dots{display:inline-block;color:var(--color-link-primary);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-surface02);--z-popover-padding:0}.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)}}@media (max-width: 767px){li a{display:flex;align-items:center;column-gap:var(--space-unit)}}";const u=f;const m=class{constructor(e){i(this,e);this.clickOnNode=t(this,"clickOnNode",7);this.collapsedElements=[];this.currentIndex=0;this.truncatePosition=null;this.pathStyle=r.UNDERLINED;this.homepageVariant=n.ICON;this.maxNodesToShow=5;this.preventFollowUrl=false;this.overflowMenuItemRows=0;this.truncateChar=30;this.viewPortWidth=undefined;this.hasOverflow=false;this.popoverEllipsisOpen=false}handleResize(){this.viewPortWidth=c();if(this.viewPortWidth!==a.MOBILE&&this.wrapElement&&this.wrapElement.scrollWidth>this.wrapElement.clientWidth){this.hasOverflow=true}}handlePropChange(){this.initializeBreadcrumb()}handleResizeUp(i,t){if(i===a.MOBILE||t===a.MOBILE&&i===a.TABLET||t===a.MOBILE&&i===a.DESKTOP||t===a.MOBILE&&i===a.DESKTOP_WIDE||t===a.TABLET&&i===a.DESKTOP||t===a.TABLET&&i===a.DESKTOP_WIDE||t===a.DESKTOP&&i===a.DESKTOP_WIDE){this.initializeBreadcrumb()}}componentWillLoad(){this.viewPortWidth=c();this.initializeBreadcrumb()}componentWillRender(){if(this.viewPortWidth!==a.MOBILE&&this.hasOverflow){this.checkEllipsisOrOverflowMenu();this.hasOverflow=false}}componentDidRender(){if(this.collapsedElementsRef){this.anchorElements=Array.from(this.hostElement.shadowRoot.querySelectorAll("z-list-group a"))}if(this.viewPortWidth!==a.MOBILE&&this.wrapElement.scrollWidth>this.wrapElement.clientWidth){this.hasOverflow=true}}initializeBreadcrumb(){if(this.viewPortWidth===a.MOBILE){this.pathsList=this.getPathsItemsList().filter((i=>!!i.path))}else{this.pathsList=this.getPathsItemsList()}this.homepageNode=this.pathsList.shift();this.pathListCopy=[...this.pathsList];this.collapsedElements=[];if(this.pathsList.length>this.maxNodesToShow){this.collapsedElements=this.pathsList.splice(0,this.pathsList.length-2)}}checkEllipsisOrOverflowMenu(){for(let i=0;i<this.pathsList.length;i++){if(this.pathsList[i].text.length<=this.truncateChar){continue}if(this.truncatePosition>0){this.collapsedElements.push(...this.pathListCopy.splice(0,this.truncatePosition));this.pathsList.splice(0,this.truncatePosition);this.truncatePosition=0;return}else if(this.truncatePosition===0){this.collapsedElements.push(...this.pathListCopy.splice(0,this.truncatePosition+1));this.pathsList.splice(0,this.truncatePosition+1);this.truncatePosition=null;return}if(i!==this.pathsList.length-1){const t=this.truncateWithEllipsis(this.pathsList[i].text,this.truncateChar);this.currentEllipsisText=this.pathsList[i].text;this.pathsList[i].text=t;this.pathsList[i].hasTooltip=true;this.truncatePosition=i;return}}}truncateWithEllipsis(i,t){if(i.length<=t){return i}return i.substring(0,t-1)+"&mldr;"}getPathsItemsList(){return Array.from(this.hostElement.children).map((i=>({text:i.textContent,path:i.href,hasTooltip:false})))}renderHomepageNode(){return e("li",null,e("a",{class:{"homepage-text":this.homepageVariant===n.TEXT},href:this.homepageNode.path,onClick:i=>this.handlePreventFollowUrl(i,this.homepageNode),innerHTML:this.homepageVariant===n.ICON?`<z-icon name="home" />`:this.homepageNode.text||"Home"}),this.pathsList.length>0&&e("z-icon",{class:"separator",name:"chevron-right"}))}togglePopover(){if(!this.collapsedElementsRef.open){this.collapsedElementsRef.open=true}}handlePreventFollowUrl(i,t){if(this.preventFollowUrl){i.preventDefault();this.clickOnNode.emit(t.path)}}handleOverflowMenuAccessibility(i){const t=this.anchorElements.length;if(i.key===l.TAB){i.preventDefault();return}i.stopPropagation();const e=[l.ARROW_DOWN,l.ARROW_UP];if(e.includes(i.key)){i.preventDefault();if(i.key===l.ARROW_DOWN){this.currentIndex=t===this.currentIndex+1?0:this.currentIndex+1}if(i.key===l.ARROW_UP){this.currentIndex=this.currentIndex<=0?t-1:this.currentIndex-1}this.anchorElements[this.currentIndex].focus()}if(i.key===l.ESC){this.triggerButton.focus()}}renderOverflowMenu(){return e("li",null,e("z-popover",{class:"hidden-paths-popover",ref:i=>this.collapsedElementsRef=i,bindTo:this.triggerButton,position:h.BOTTOM_RIGHT,closable:true,showArrow:true},e("div",{class:"popover-content"},e("z-list",null,e("z-list-group",{size:p.SMALL},this.collapsedElements.map(((i,t,s)=>e("div",null,e("z-list-element",{clickable:true},e("a",{class:"text-ellipsis",href:i.path,onClick:t=>this.handlePreventFollowUrl(t,i),onKeyDown:i=>this.handleOverflowMenuAccessibility(i),innerHTML:i.text})),t<s.length-1&&e("z-divider",{color:"color-surface03"})))))))),e("button",{class:"dots",ref:i=>this.triggerButton=i,"aria-label":"Mostra più breadcrumb","aria-haspopup":"true",onClick:()=>{this.togglePopover()},onKeyDown:i=>{d(i,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 i=this.pathsList[this.pathsList.length-1];if(!i){return}return e("li",null,e("a",{"aria-current":i.path?undefined:"page",href:i.path,onClick:t=>this.handlePreventFollowUrl(t,i)},e("z-icon",{name:"chevron-left"}),e("span",{class:{"missing-path":!i.path,"text-ellipsis":true}},i.text)))}renderItems(){let i;return[this.renderHomepageNode(),this.collapsedElements.length>0&&this.renderOverflowMenu(),...this.pathsList.map(((t,s)=>e("li",null,t.hasTooltip&&e("z-popover",{class:"full-path-tooltip",bindTo:i,open:this.popoverEllipsisOpen,position:h.BOTTOM_RIGHT,closable:false,showArrow:true},e("span",{class:"tooltip-content"},this.currentEllipsisText)),e("a",{class:{"missing-path":!t.path},ref:t=>i=t,"aria-current":t.path?undefined:"page",href:t.path,onClick:i=>this.handlePreventFollowUrl(i,t),onMouseOver:()=>{if(t.hasTooltip){this.popoverEllipsisOpen=true}},onMouseLeave:()=>{if(t.hasTooltip){this.popoverEllipsisOpen=false}},innerHTML:t.text}),s!==this.pathsList.length-1&&e("z-icon",{class:"separator",name:"chevron-right"}))))]}render(){return e(s,{key:"ec59a3c1afe2d946df4b5ef8dae569b40e20e083",style:{"--line-clamp-popover":`${this.overflowMenuItemRows}`}},e("nav",{key:"9b1668c981c22cd2d52f31f58e2ac38a18f574fb",ref:i=>this.wrapElement=i,"aria-label":"Breadcrumb",class:{semibold:this.pathStyle===r.SEMIBOLD,underlined:this.pathStyle===r.UNDERLINED}},e("ol",{key:"fedac8ea463ba9b20784d20cf50f9f8526055d3b"},this.viewPortWidth===a.MOBILE?this.renderMobileItems():this.renderItems())))}get hostElement(){return o(this)}static get watchers(){return{maxNodesToShow:["handlePropChange"],viewPortWidth:["handleResizeUp"]}}};m.style=u;export{m as z_breadcrumb};
2
- //# sourceMappingURL=p-6ed39f10.entry.js.map
1
+ import{r as i,c as t,h as e,a as s,g as o}from"./p-75c4a726.js";import{U as r,V as n,p as a,g as l,P as h,i as p}from"./p-b34993de.js";import{g as c,d}from"./p-10607a39.js";import"./p-5145a606.js";const f=":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-link-primary);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);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-link-primary)}z-icon.separator{--z-icon-width:10px;--z-icon-height:10px;fill:var(--gray500)}button.dots{display:inline-block;color:var(--color-link-primary);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-surface02);--z-popover-padding:0}.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)}}@media (max-width: 767px){li a{display:flex;align-items:center;column-gap:var(--space-unit)}}";const u=f;const m=class{constructor(e){i(this,e);this.clickOnNode=t(this,"clickOnNode",7);this.collapsedElements=[];this.currentIndex=0;this.truncatePosition=null;this.pathStyle=r.UNDERLINED;this.homepageVariant=n.ICON;this.maxNodesToShow=5;this.preventFollowUrl=false;this.overflowMenuItemRows=0;this.truncateChar=30;this.viewPortWidth=undefined;this.hasOverflow=false;this.popoverEllipsisOpen=false}handleResize(){this.viewPortWidth=c();if(this.viewPortWidth!==a.MOBILE&&this.wrapElement&&this.wrapElement.scrollWidth>this.wrapElement.clientWidth){this.hasOverflow=true}}handlePropChange(){this.initializeBreadcrumb()}handleResizeUp(i,t){if(i===a.MOBILE||t===a.MOBILE&&i===a.TABLET||t===a.MOBILE&&i===a.DESKTOP||t===a.MOBILE&&i===a.DESKTOP_WIDE||t===a.TABLET&&i===a.DESKTOP||t===a.TABLET&&i===a.DESKTOP_WIDE||t===a.DESKTOP&&i===a.DESKTOP_WIDE){this.initializeBreadcrumb()}}componentWillLoad(){this.viewPortWidth=c();this.initializeBreadcrumb()}componentWillRender(){if(this.viewPortWidth!==a.MOBILE&&this.hasOverflow){this.checkEllipsisOrOverflowMenu();this.hasOverflow=false}}componentDidRender(){if(this.collapsedElementsRef){this.anchorElements=Array.from(this.hostElement.shadowRoot.querySelectorAll("z-list-group a"))}if(this.viewPortWidth!==a.MOBILE&&this.wrapElement.scrollWidth>this.wrapElement.clientWidth){this.hasOverflow=true}}initializeBreadcrumb(){if(this.viewPortWidth===a.MOBILE){this.pathsList=this.getPathsItemsList().filter((i=>!!i.path))}else{this.pathsList=this.getPathsItemsList()}this.homepageNode=this.pathsList.shift();this.pathListCopy=[...this.pathsList];this.collapsedElements=[];if(this.pathsList.length>this.maxNodesToShow){this.collapsedElements=this.pathsList.splice(0,this.pathsList.length-2)}}checkEllipsisOrOverflowMenu(){for(let i=0;i<this.pathsList.length;i++){if(this.pathsList[i].text.length<=this.truncateChar){continue}if(this.truncatePosition>0){this.collapsedElements.push(...this.pathListCopy.splice(0,this.truncatePosition));this.pathsList.splice(0,this.truncatePosition);this.truncatePosition=0;return}else if(this.truncatePosition===0){this.collapsedElements.push(...this.pathListCopy.splice(0,this.truncatePosition+1));this.pathsList.splice(0,this.truncatePosition+1);this.truncatePosition=null;return}if(i!==this.pathsList.length-1){const t=this.truncateWithEllipsis(this.pathsList[i].text,this.truncateChar);this.currentEllipsisText=this.pathsList[i].text;this.pathsList[i].text=t;this.pathsList[i].hasTooltip=true;this.truncatePosition=i;return}}}truncateWithEllipsis(i,t){if(i.length<=t){return i}return i.substring(0,t-1)+"&mldr;"}getPathsItemsList(){return Array.from(this.hostElement.children).map((i=>({text:i.textContent,path:i.href,hasTooltip:false})))}renderHomepageNode(){return e("li",null,e("a",{class:{"homepage-text":this.homepageVariant===n.TEXT},href:this.homepageNode.path,onClick:i=>this.handlePreventFollowUrl(i,this.homepageNode),innerHTML:this.homepageVariant===n.ICON?`<z-icon name="home" />`:this.homepageNode.text||"Home"}),this.pathsList.length>0&&e("z-icon",{class:"separator",name:"chevron-right"}))}togglePopover(){if(!this.collapsedElementsRef.open){this.collapsedElementsRef.open=true}}handlePreventFollowUrl(i,t){if(this.preventFollowUrl){i.preventDefault();this.clickOnNode.emit(t.path)}}handleOverflowMenuAccessibility(i){const t=this.anchorElements.length;if(i.key===l.TAB){i.preventDefault();return}i.stopPropagation();const e=[l.ARROW_DOWN,l.ARROW_UP];if(e.includes(i.key)){i.preventDefault();if(i.key===l.ARROW_DOWN){this.currentIndex=t===this.currentIndex+1?0:this.currentIndex+1}if(i.key===l.ARROW_UP){this.currentIndex=this.currentIndex<=0?t-1:this.currentIndex-1}this.anchorElements[this.currentIndex].focus()}if(i.key===l.ESC){this.triggerButton.focus()}}renderOverflowMenu(){return e("li",null,e("z-popover",{class:"hidden-paths-popover",ref:i=>this.collapsedElementsRef=i,bindTo:this.triggerButton,position:h.BOTTOM_RIGHT,closable:true,showArrow:true},e("div",{class:"popover-content"},e("z-list",null,e("z-list-group",{size:p.SMALL},this.collapsedElements.map(((i,t,s)=>e("div",null,e("z-list-element",{clickable:true},e("a",{class:"text-ellipsis",href:i.path,onClick:t=>this.handlePreventFollowUrl(t,i),onKeyDown:i=>this.handleOverflowMenuAccessibility(i),innerHTML:i.text})),t<s.length-1&&e("z-divider",{color:"color-surface03"})))))))),e("button",{class:"dots",ref:i=>this.triggerButton=i,"aria-label":"Mostra più breadcrumb","aria-haspopup":"true",onClick:()=>{this.togglePopover()},onKeyDown:i=>{d(i,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 i=this.pathsList[this.pathsList.length-1];if(!i){return}return e("li",null,e("a",{"aria-current":i.path?undefined:"page",href:i.path,onClick:t=>this.handlePreventFollowUrl(t,i)},e("z-icon",{name:"chevron-left"}),e("span",{class:{"missing-path":!i.path,"text-ellipsis":true}},i.text)))}renderItems(){let i;return[this.renderHomepageNode(),this.collapsedElements.length>0&&this.renderOverflowMenu(),...this.pathsList.map(((t,s)=>e("li",null,t.hasTooltip&&e("z-popover",{class:"full-path-tooltip",bindTo:i,open:this.popoverEllipsisOpen,position:h.BOTTOM_RIGHT,closable:false,showArrow:true},e("span",{class:"tooltip-content"},this.currentEllipsisText)),e("a",{class:{"missing-path":!t.path},ref:t=>i=t,"aria-current":t.path?undefined:"page",href:t.path,onClick:i=>this.handlePreventFollowUrl(i,t),onMouseOver:()=>{if(t.hasTooltip){this.popoverEllipsisOpen=true}},onMouseLeave:()=>{if(t.hasTooltip){this.popoverEllipsisOpen=false}},innerHTML:t.text}),s!==this.pathsList.length-1&&e("z-icon",{class:"separator",name:"chevron-right"}))))]}render(){return e(s,{key:"5bcdf767ac76b00a9b648c2690d6928e34574606",style:{"--line-clamp-popover":`${this.overflowMenuItemRows}`}},e("nav",{key:"ac8a7f77b6ee9c8ec07cf4eba8a0d144d7bf22b7",ref:i=>this.wrapElement=i,"aria-label":"Breadcrumb",class:{semibold:this.pathStyle===r.SEMIBOLD,underlined:this.pathStyle===r.UNDERLINED}},e("ol",{key:"0161de4f9fc2cf496bacaafde6b2097bc928dcb2"},this.viewPortWidth===a.MOBILE?this.renderMobileItems():this.renderItems())))}get hostElement(){return o(this)}static get watchers(){return{maxNodesToShow:["handlePropChange"],viewPortWidth:["handleResizeUp"]}}};m.style=u;export{m as z_breadcrumb};
2
+ //# sourceMappingURL=p-36935fa0.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as i,h as a,a as n,g as o}from"./p-75c4a726.js";import{I as s}from"./p-1c24255c.js";const e="z-pagination{--z-pagination--page-button-width:64px;--z-pagination--pages-container-max-width:100%;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(--color-surface03);color:var(--color-primary01);cursor:pointer;font-family:inherit;font-weight:inherit;transition:background-color 0.15s ease-out,\n color 0.15s ease-out,\n border-bottom-color 0.15s ease-out,\n font-size 0.15s ease-in-out,\n font-weight 0.15s ease-in-out}z-pagination .pagination-bar button:focus-visible{background-color:var(--color-hover-surface);box-shadow:inset var(--shadow-focus-primary);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{background-color:var(--color-disabled01);color:var(--color-disabled03);cursor:default;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:focus-visible{border-bottom-color:var(--color-hover-light)}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;row-gap:var(--space-unit)}z-pagination .go-to-page .label{color:var(--color-default-text);text-transform:uppercase}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-surface03)}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(--color-hover-surface)}z-pagination .pagination-bar .page-button:hover{border-bottom-color:var(--color-hover-light)}}@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)}}";const r=e;const h=class{constructor(a){t(this,a);this.pageChanged=i(this,"pageChanged",7);this.label=undefined;this.navArrows=true;this.totalPages=undefined;this.skip=0;this.edges=false;this.split=undefined;this.visiblePages=undefined;this.currentPage=1;this.goToPage=undefined;this._visiblePages=this.visiblePages;this.isMobile=false;this.goToPageValue=null}setPagesContainerWidth(){if(!this._visiblePages||this.split){this.host.style.setProperty("--z-pagination--pages-container-max-width","100%");return}const t=window.getComputedStyle(this.host);const i=t.getPropertyValue("--z-pagination--page-button-width");this.host.style.setProperty("--z-pagination--pages-container-max-width",`calc(${i} * ${this._visiblePages})`)}setVisiblePages(){this._visiblePages=Math.min(this.visiblePages||this.totalPages,this.totalPages)}onPageChanged(){this.pageChanged.emit(this.currentPage);this.scrollToPage()}onSplitChanged(){if(this.split){this.edges=false}}onResize(){this.setMobile()}setMobile(){const t="screen and (max-width: 767px)";this.isMobile=window.matchMedia(t).matches}getPagesChunks(){const t=Array.from({length:this.totalPages},((t,i)=>i+1));const i=[];const 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(){const t=this.host.querySelector(`[data-page="${this.currentPage}"]`);if(!t){return}t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}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}return t.map((t=>a("div",{class:"pages-chunk"},t.map((t=>this.renderPage(t))))))}renderSplitPages(){if(this.totalPages<=this.split*2+5){return Array.from({length:this.totalPages},((t,i)=>this.renderPage(i+1)))}if(this.currentPage<=this.split*2+2){return[...Array.from({length:this.split*2+3},((t,i)=>this.renderPage(i+1))),this.renderEllipsisButton(this.split*2+4),this.renderPage(this.totalPages)]}if(this.currentPage>this.split*2+2&&this.currentPage<this.totalPages-this.split*2-1){return[this.renderPage(1),this.renderEllipsisButton(this.currentPage-this.split-1),...Array.from({length:this.split*2+1},((t,i)=>this.renderPage(this.currentPage-this.split+i))),this.renderEllipsisButton(this.currentPage+this.split+1),this.renderPage(this.totalPages)]}return[this.renderPage(1),this.renderEllipsisButton(this.totalPages-this.split*2-3),...Array.from({length:this.split*2+3},((t,i)=>this.renderPage(this.totalPages-this.split*2-2+i)))]}renderBackButton(){return a("button",{class:"navigation-button",type:"button",title:"Vai alla pagina precedente",disabled:this.currentPage===1,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:false,onInput:t=>{this.goToPageValue=t.target.value},placeholder:this.currentPage.toString(),hasclearicon:false}),a("span",null,`/${this.totalPages}`)),this.renderForwardButton())]}componentDidLoad(){this.setVisiblePages()}componentDidRender(){if(this.split){this.edges=false}this.setPagesContainerWidth();this.setMobile()}render(){if(this.isMobile){return a(n,null,this.renderMobile())}return 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:this.currentPage===1,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:"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:false,placeholder:"2",hasclearicon:false,onInput:t=>{this.goToPageValue=t.target.value},onKeyDown:t=>t.key==="Enter"&&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"],visiblePages:["setVisiblePages"],currentPage:["onPageChanged"],split:["onSplitChanged"]}}};h.style=r;export{h as z_pagination};
2
- //# sourceMappingURL=p-8b24d801.entry.js.map
1
+ import{r as t,c as i,h as a,a as n,g as o}from"./p-75c4a726.js";import{I as s}from"./p-b34993de.js";const e="z-pagination{--z-pagination--page-button-width:64px;--z-pagination--pages-container-max-width:100%;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(--color-surface03);color:var(--color-primary01);cursor:pointer;font-family:inherit;font-weight:inherit;transition:background-color 0.15s ease-out,\n color 0.15s ease-out,\n border-bottom-color 0.15s ease-out,\n font-size 0.15s ease-in-out,\n font-weight 0.15s ease-in-out}z-pagination .pagination-bar button:focus-visible{background-color:var(--color-hover-surface);box-shadow:inset var(--shadow-focus-primary);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{background-color:var(--color-disabled01);color:var(--color-disabled03);cursor:default;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:focus-visible{border-bottom-color:var(--color-hover-light)}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;row-gap:var(--space-unit)}z-pagination .go-to-page .label{color:var(--color-default-text);text-transform:uppercase}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-surface03)}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(--color-hover-surface)}z-pagination .pagination-bar .page-button:hover{border-bottom-color:var(--color-hover-light)}}@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)}}";const r=e;const h=class{constructor(a){t(this,a);this.pageChanged=i(this,"pageChanged",7);this.label=undefined;this.navArrows=true;this.totalPages=undefined;this.skip=0;this.edges=false;this.split=undefined;this.visiblePages=undefined;this.currentPage=1;this.goToPage=undefined;this._visiblePages=this.visiblePages;this.isMobile=false;this.goToPageValue=null}setPagesContainerWidth(){if(!this._visiblePages||this.split){this.host.style.setProperty("--z-pagination--pages-container-max-width","100%");return}const t=window.getComputedStyle(this.host);const i=t.getPropertyValue("--z-pagination--page-button-width");this.host.style.setProperty("--z-pagination--pages-container-max-width",`calc(${i} * ${this._visiblePages})`)}setVisiblePages(){this._visiblePages=Math.min(this.visiblePages||this.totalPages,this.totalPages)}onPageChanged(){this.pageChanged.emit(this.currentPage);this.scrollToPage()}onSplitChanged(){if(this.split){this.edges=false}}onResize(){this.setMobile()}setMobile(){const t="screen and (max-width: 767px)";this.isMobile=window.matchMedia(t).matches}getPagesChunks(){const t=Array.from({length:this.totalPages},((t,i)=>i+1));const i=[];const 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(){const t=this.host.querySelector(`[data-page="${this.currentPage}"]`);if(!t){return}t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}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}return t.map((t=>a("div",{class:"pages-chunk"},t.map((t=>this.renderPage(t))))))}renderSplitPages(){if(this.totalPages<=this.split*2+5){return Array.from({length:this.totalPages},((t,i)=>this.renderPage(i+1)))}if(this.currentPage<=this.split*2+2){return[...Array.from({length:this.split*2+3},((t,i)=>this.renderPage(i+1))),this.renderEllipsisButton(this.split*2+4),this.renderPage(this.totalPages)]}if(this.currentPage>this.split*2+2&&this.currentPage<this.totalPages-this.split*2-1){return[this.renderPage(1),this.renderEllipsisButton(this.currentPage-this.split-1),...Array.from({length:this.split*2+1},((t,i)=>this.renderPage(this.currentPage-this.split+i))),this.renderEllipsisButton(this.currentPage+this.split+1),this.renderPage(this.totalPages)]}return[this.renderPage(1),this.renderEllipsisButton(this.totalPages-this.split*2-3),...Array.from({length:this.split*2+3},((t,i)=>this.renderPage(this.totalPages-this.split*2-2+i)))]}renderBackButton(){return a("button",{class:"navigation-button",type:"button",title:"Vai alla pagina precedente",disabled:this.currentPage===1,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:false,onInput:t=>{this.goToPageValue=t.target.value},placeholder:this.currentPage.toString(),hasclearicon:false}),a("span",null,`/${this.totalPages}`)),this.renderForwardButton())]}componentDidLoad(){this.setVisiblePages()}componentDidRender(){if(this.split){this.edges=false}this.setPagesContainerWidth();this.setMobile()}render(){if(this.isMobile){return a(n,null,this.renderMobile())}return 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:this.currentPage===1,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:"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:false,placeholder:"2",hasclearicon:false,onInput:t=>{this.goToPageValue=t.target.value},onKeyDown:t=>t.key==="Enter"&&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"],visiblePages:["setVisiblePages"],currentPage:["onPageChanged"],split:["onSplitChanged"]}}};h.style=r;export{h as z_pagination};
2
+ //# sourceMappingURL=p-38e8c15d.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as o,h as s,a as r}from"./p-75c4a726.js";const a=":host{--z-table--cells-bottom-border-size:var(\n --border-size-medium\n );--z-table--cells-background:var(\n --color-surface02\n );display:block;box-sizing:border-box}:host([sticky]){position:sticky;z-index:2;top:0;box-shadow:0 2px 4px -2px var(--shadow-color-base)}";const c=a;const e=class{constructor(s){o(this,s);this.sticky=false}render(){return s(r,{key:"ad4f78d64587c716f2b873a02a2473426d0c1d3f",role:"rowgroup"},s("slot",{key:"5606cc9d05f711573a130def219cb4d44c5a74a0"}))}};e.style=c;export{e as Z};
2
+ //# sourceMappingURL=p-3aa8d377.js.map
@@ -0,0 +1,2 @@
1
+ export{Z as z_tr}from"./p-2eddce0d.js";import"./p-75c4a726.js";import"./p-10607a39.js";import"./p-b34993de.js";import"./p-5145a606.js";import"./p-8ed50cbe.js";import"./p-cab91789.js";
2
+ //# sourceMappingURL=p-4bf0a07d.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r,c as t,h as o}from"./p-75c4a726.js";import{B as i}from"./p-5145a606.js";const a="button{display:flex;max-width:100%;height:36px;align-items:center;padding:0 var(--space-unit);border:var(--border-size-medium) solid var(--color-primary01);background-color:var(--color-surface01);border-radius:var(--border-radius);color:var(--color-primary01);cursor:pointer;fill:var(--color-primary01);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);outline:none}button::-moz-focus-inner{border:0}button:hover{border-color:var(--color-hover-primary);color:var(--color-hover-primary);fill:var(--color-hover-primary)}button:focus{border-color:var(--color-primary01);box-shadow:var(--shadow-focus-primary);color:var(--color-primary01);fill:var(--color-primary01)}button:active{border-color:var(--color-pressed-primary);box-shadow:var(--shadow-2);color:var(--color-pressed-primary);fill:var(--color-pressed-primary)}button.selected{border-color:var(--color-active-primary);background-color:var(--color-active-primary);color:var(--color-text-inverse);fill:var(--color-text-inverse)}button>span.ellipsis{overflow:hidden;padding:0;margin:0;text-overflow:ellipsis;white-space:nowrap}button>span.counter{margin-right:calc(var(--space-unit) * 2);margin-left:calc(var(--space-unit) / 2)}button>span.sort{margin-right:calc(var(--space-unit) / 2);white-space:nowrap}button>span{margin-right:calc(var(--space-unit) / 2)}@media (min-width: 768px){button{max-width:325px}}@media (min-width: 1152px){button{max-width:490px}}";const s=a;const e=class{constructor(o){r(this,o);this.buttonSortClick=t(this,"buttonSortClick",7);this.buttonid=undefined;this.label=undefined;this.desclabel=undefined;this.counter=undefined;this.sortlabelasc="A-Z";this.sortlabeldesc="Z-A";this.isselected=false;this.sortasc=true;this.allowTooltip=false}emitButtonSortClick(){if(!this.isselected){this.isselected=true}else{this.sortasc=!this.sortasc}this.buttonSortClick.emit({buttonid:this.buttonid,sortAsc:this.sortasc})}componentDidLoad(){if(this.elementHasEllipsis()&&window.innerWidth>i.TABLET){this.allowTooltip=true}}setButtonTitle(){return this.allowTooltip?`${this.sortasc?this.label:this.desclabel}`:""}elementHasEllipsis(){return this.ellipsis.offsetWidth<this.ellipsis.scrollWidth}render(){return o("button",{key:"0cb1fb4cd3661deb66e79e85bcc87657691af1a9",title:this.setButtonTitle(),id:this.buttonid,class:{selected:this.isselected},onClick:()=>this.emitButtonSortClick()},o("span",{key:"24c3b8e7b8c6acc83f55cbf7bc0233382a3a2738",ref:r=>this.ellipsis=r,class:"ellipsis"},!this.sortasc&&this.desclabel?this.desclabel:this.label),o("span",{key:"a9ae20d5e3926dc6b6cd3d54757a9c829c15c823",class:"counter"},this.counter&&` (${this.counter})`),o("span",{key:"d3d3aa5e07074dfd72da40f8059f70e25d1a1f58",class:"sort"},this.sortasc?this.sortlabelasc:this.sortlabeldesc),o("z-icon",{key:"e0003ebe4688bf0af648aa9b7eb01c446460f069",name:"caret-up-down",width:16,height:16}))}};e.style=s;export{e as z_button_sort};
2
- //# sourceMappingURL=p-48b2e967.entry.js.map
1
+ import{r,c as t,h as o}from"./p-75c4a726.js";import{B as i}from"./p-5145a606.js";const a="button{display:flex;max-width:100%;height:36px;align-items:center;padding:0 var(--space-unit);border:var(--border-size-medium) solid var(--color-primary01);background-color:var(--color-surface01);border-radius:var(--border-radius);color:var(--color-primary01);cursor:pointer;fill:var(--color-primary01);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);outline:none}button::-moz-focus-inner{border:0}button:hover{border-color:var(--color-hover-primary);color:var(--color-hover-primary);fill:var(--color-hover-primary)}button:focus{border-color:var(--color-primary01);box-shadow:var(--shadow-focus-primary);color:var(--color-primary01);fill:var(--color-primary01)}button:active{border-color:var(--color-pressed-primary);box-shadow:var(--shadow-2);color:var(--color-pressed-primary);fill:var(--color-pressed-primary)}button.selected{border-color:var(--color-active-primary);background-color:var(--color-active-primary);color:var(--color-text-inverse);fill:var(--color-text-inverse)}button>span.ellipsis{overflow:hidden;padding:0;margin:0;text-overflow:ellipsis;white-space:nowrap}button>span.counter{margin-right:calc(var(--space-unit) * 2);margin-left:calc(var(--space-unit) / 2)}button>span.sort{margin-right:calc(var(--space-unit) / 2);white-space:nowrap}button>span{margin-right:calc(var(--space-unit) / 2)}@media (min-width: 768px){button{max-width:325px}}@media (min-width: 1152px){button{max-width:490px}}";const s=a;const e=class{constructor(o){r(this,o);this.buttonSortClick=t(this,"buttonSortClick",7);this.buttonid=undefined;this.label=undefined;this.desclabel=undefined;this.counter=undefined;this.sortlabelasc="A-Z";this.sortlabeldesc="Z-A";this.isselected=false;this.sortasc=true;this.allowTooltip=false}emitButtonSortClick(){if(!this.isselected){this.isselected=true}else{this.sortasc=!this.sortasc}this.buttonSortClick.emit({buttonid:this.buttonid,sortAsc:this.sortasc})}componentDidLoad(){if(this.elementHasEllipsis()&&window.innerWidth>i.TABLET){this.allowTooltip=true}}setButtonTitle(){return this.allowTooltip?`${this.sortasc?this.label:this.desclabel}`:""}elementHasEllipsis(){return this.ellipsis.offsetWidth<this.ellipsis.scrollWidth}render(){return o("button",{key:"5254d0f81ee547b9841651f4c983ceaa00f6639b",title:this.setButtonTitle(),id:this.buttonid,class:{selected:this.isselected},onClick:()=>this.emitButtonSortClick()},o("span",{key:"2bfcf3a440f1c4b17fdf4bad0a38c9951a7f9ec8",ref:r=>this.ellipsis=r,class:"ellipsis"},!this.sortasc&&this.desclabel?this.desclabel:this.label),o("span",{key:"917e5afee07a7b0cd751e476f9dd4b56f2335cd9",class:"counter"},this.counter&&` (${this.counter})`),o("span",{key:"3ce3cf927f7cbd40508cea8070501f6149067219",class:"sort"},this.sortasc?this.sortlabelasc:this.sortlabeldesc),o("z-icon",{key:"9c680f7e4381ebb2a6215d30a3e503aaf93365a8",name:"caret-up-down",width:16,height:16}))}};e.style=s;export{e as z_button_sort};
2
+ //# sourceMappingURL=p-5226fa9e.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as a,h as r,a as t}from"./p-75c4a726.js";import{t as e}from"./p-b34993de.js";const s=class{constructor(r){a(this,r);this.mode=e.POLITE}render(){return r(t,{key:"120c8a0745e55316dc0b74597af02b462cf8672e","aria-live":this.mode,"aria-atomic":"true","aria-relevant":"additions"},r("slot",{key:"38a9ce7ff0b008f74c4674877c16d14f812836dc"}))}};export{s as z_aria_alert};
2
+ //# sourceMappingURL=p-554f3de2.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as i,h as e,a as s,g as o}from"./p-75c4a726.js";import{g as n}from"./p-1c24255c.js";import{a}from"./p-90908f36.js";import"./p-5145a606.js";const h=':host,::slotted(*),*{box-sizing:border-box;outline:none}:host{position:relative;display:inline-flex;height:fit-content;flex-direction:column}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{position:relative;display:flex;width:100%;align-items:center;padding:0;border:0;border-bottom:var(--border-size-large) solid transparent;margin:0;background:transparent;border-radius:0;color:inherit;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-visible,div.menu-label:focus-within{box-shadow:var(--shadow-focus-primary)}:host(:is([active],[open])) .menu-label ::slotted(*),.menu-label:focus-visible ::slotted(*),div.menu-label:focus-within ::slotted(*){color:var(--color-primary01);font-weight:var(--font-bd)}:host([vertical-context]) .menu-label{padding:var(--space-unit) 0;border-width:var(--border-size-small);border-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label,.menu-label:hover,.menu-label:focus-visible,div.menu-label:focus-within{border-color:var(--color-secondary01)}:host([vertical-context]:is([active],[open])) .menu-label::after,:host([vertical-context]) .menu-label:hover::after,:host([vertical-context]) .menu-label:focus-visible::after,:host([vertical-context]) div.menu-label:focus-within::after{position:absolute;bottom:0;left:0;width:100%;height:var(--border-size-large);background-color:var(--color-secondary01);content:""}:host([vertical-context]) .menu-label ::slotted(*){padding:0}.menu-label ::slotted(*){display:inline-flex;width:100%;min-width:fit-content;padding-bottom:2px;margin:0;appearance:none;color:var(--z-menu-label-color, var(--color-default-text));font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:inherit;line-height:1.5;white-space:nowrap}.menu-label z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:var(--color-default-icon)}::slotted([data-text]:not([slot]))::after{height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text]:not([slot]))::after{display:none}}::slotted([data-text]:not([slot])){display:inline-flex;flex-direction:column}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]:not([vertical-context])) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:0 calc(var(--space-unit) * 2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:flex;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot="header"]){width:calc(var(--space-unit) * 11.25);height:auto;object-fit:contain}.header ::slotted([slot="header"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:flex;flex-direction:column;align-items:flex-start;background:inherit}.items>::slotted([slot="item"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.items>::slotted([slot="item"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot="item"]:not(z-menu-section)){padding:var(--space-unit) 0;border-bottom:var(--border-size-small) solid var(--color-surface03)}:host(:not([vertical-context])) .items>::slotted([slot="item"]:last-child){border-bottom:0}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"]:active){border-color:var(--color-secondary01);font-weight:var(--font-bd)}';const r=h;const l=t=>(t===null||t===void 0?void 0:t.tagName)==="Z-MENU-SECTION";const c=class{get focusableItem(){return this.items.find((t=>l(t)?t.htmlTabindex===0:t.tabIndex===0))}toggle(){if(!this.hasContent){return}this.open=!this.open}onLabelSlotChange(t){const i=t.target.assignedElements()[0];i.dataset.text=i===null||i===void 0?void 0:i.textContent;this.setLabelA11yAttrs()}reflow(t=false){if(!this.floating){return}if(this.content&&this.hasContent){const{style:t}=this.content;const{left:i}=this.host.getBoundingClientRect();const e=getComputedStyle(this.content).width;const s=e?parseFloat(e.replace("px","")):375;const o=30;t.left=`${Math.min(window.innerWidth-i-s-o,0)}px`}if(t){this.raf=requestAnimationFrame(this.reflow.bind(this,t))}}checkContent(){this.hasHeader=!!this.host.querySelectorAll("[slot=header]").length;this.hasContent=!!this.host.querySelectorAll("[slot=item]").length||this.hasHeader}setItemTabindex(t,i){if(l(t)){t.htmlTabindex=i}else{t.tabIndex=i}}setItemsA11yAttrs(){this.items.forEach(((t,i)=>{const e=i===0?0:-1;this.setItemTabindex(t,e);if(!l(t)){t.setAttribute("role","menuitem")}}))}onItemsChange(){this.checkContent();this.items=Array.from(this.host.children).filter((({slot:t})=>t==="item"));this.setItemsA11yAttrs();this.items.forEach((t=>{if(!l(t)){t.dataset.text=t.textContent}}))}moveFocus(t,i){if(l(t)){t.setFocus()}else{t.tabIndex=0;setTimeout((()=>{t.focus()}),100)}if(!i){return}this.setItemTabindex(i,-1)}onLabelClick(){this.toggle();this.setFocus()}onLabelKeydown(t){if(t.key===n.ENTER||t.key===n.SPACE){t.preventDefault();t.stopPropagation();this.toggle();if(this.open){this.moveFocus(this.items[0])}return}if(!this.verticalContext){return}if(t.key===n.ARROW_RIGHT&&!this.open){t.preventDefault();t.stopPropagation();this.open=true;this.moveFocus(this.items[0])}}async setFocus(){this.htmlTabindex=0;const t=this.hasContent?this.labelButton:this.host.firstElementChild;t.focus()}async focusLastItem(){const t=this.items[this.items.length-1];if(l(t)&&t.open){t.focusLastItem();return}this.moveFocus(t)}onOpenChanged(){if(!this.open){cancelAnimationFrame(this.raf);this.closed.emit();this.items.forEach((t=>{if(l(t)&&t.open){t.open=false}}));return}this.setItemsA11yAttrs();this.opened.emit();if(this.floating){this.reflow(true)}}setLabelA11yAttrs(){if(this.hasContent&&this.labelButton){this.labelButton.tabIndex=this.htmlTabindex;return}const t=this.host.firstElementChild;t.role="menuitem";t.tabIndex=this.htmlTabindex}onItemClick(t){const i=this.items.find((i=>a(i,t.target)));if(i){this.items.forEach((t=>{if(t===i){return}if(l(t)){t.htmlTabindex=-1}else{t.tabIndex=-1}}))}}onKeyDown(t){var i;if(!this.hasContent){return}switch(t.key){case n.ESC:if(!this.open){break}t.stopPropagation();t.preventDefault();this.open=false;this.setFocus();break;case n.ARROW_DOWN:{if(document.activeElement===this.host){if(this.verticalContext&&!this.open){break}t.stopPropagation();t.preventDefault();if(!this.open){this.open=true}this.moveFocus(this.items[0]);break}const i=this.items.indexOf(this.focusableItem);if(this.verticalContext&&i===this.items.length-1){this.setItemTabindex(this.items[i],-1);this.htmlTabindex=0;break}t.stopPropagation();t.preventDefault();const e=this.items[i+1];this.moveFocus(e!==null&&e!==void 0?e:this.items[0],this.focusableItem);break}case n.ARROW_UP:{if(document.activeElement===this.host){if(this.verticalContext){break}t.stopPropagation();t.preventDefault();if(!this.open){this.open=true}this.moveFocus(this.items[this.items.length-1],this.focusableItem);break}t.stopPropagation();t.preventDefault();const e=this.items.indexOf(this.focusableItem);if(e===0&&this.verticalContext){this.setItemTabindex(this.focusableItem,-1);this.setFocus();break}const s=(i=this.items[e-1])!==null&&i!==void 0?i:this.items[this.items.length-1];if(l(s)&&s.open){this.setItemTabindex(this.focusableItem,-1);s.focusLastItem();break}this.moveFocus(s,this.focusableItem);break}case n.ARROW_LEFT:if(!this.open||!this.verticalContext){break}t.preventDefault();t.stopPropagation();this.open=false;this.setFocus()}}constructor(e){t(this,e);this.opened=i(this,"opened",7);this.closed=i(this,"closed",7);this.items=[];this.active=undefined;this.floating=true;this.open=false;this.verticalContext=false;this.htmlTabindex=-1;this.hasHeader=undefined;this.hasContent=undefined;this.toggle=this.toggle.bind(this);this.checkContent=this.checkContent.bind(this);this.onLabelSlotChange=this.onLabelSlotChange.bind(this);this.onLabelClick=this.onLabelClick.bind(this);this.onItemsChange=this.onItemsChange.bind(this);this.onLabelKeydown=this.onLabelKeydown.bind(this)}componentWillLoad(){this.setLabelA11yAttrs();this.onItemsChange()}render(){if(!this.hasContent){return e("div",{class:"menu-label"},e("slot",{onSlotchange:this.onLabelSlotChange}))}return e(s,null,e("button",{ref:t=>this.labelButton=t,class:"menu-label","aria-expanded":`${!!this.open}`,"aria-haspopup":`${this.hasContent}`,"aria-label":this.open?"Chiudi menù":"Apri menù",role:"menuitem",tabIndex:this.htmlTabindex,onClick:this.onLabelClick,onKeyDown:this.onLabelKeydown},e("slot",{onSlotchange:this.onLabelSlotChange}),e("z-icon",{name:this.open?"chevron-up":"chevron-down"})),e("div",{class:"content",ref:t=>this.content=t},this.hasHeader&&e("header",{class:"header"},e("slot",{name:"header",onSlotchange:this.checkContent})),e("div",{class:"items",role:"menu"},e("slot",{name:"item",onSlotchange:this.onItemsChange}))))}get host(){return o(this)}static get watchers(){return{open:["onOpenChanged"],htmlTabindex:["setLabelA11yAttrs"]}}};c.style=r;export{c as z_menu};
2
- //# sourceMappingURL=p-ceb4403d.entry.js.map
1
+ import{r as t,c as i,h as e,a as s,g as o}from"./p-75c4a726.js";import{g as n}from"./p-b34993de.js";import{a}from"./p-10607a39.js";import"./p-5145a606.js";const h=':host,::slotted(*),*{box-sizing:border-box;outline:none}:host{position:relative;display:inline-flex;height:fit-content;flex-direction:column}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{position:relative;display:flex;width:100%;align-items:center;padding:0;border:0;border-bottom:var(--border-size-large) solid transparent;margin:0;background:transparent;border-radius:0;color:inherit;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-visible,div.menu-label:focus-within{box-shadow:var(--shadow-focus-primary)}:host(:is([active],[open])) .menu-label ::slotted(*),.menu-label:focus-visible ::slotted(*),div.menu-label:focus-within ::slotted(*){color:var(--color-primary01);font-weight:var(--font-bd)}:host([vertical-context]) .menu-label{padding:var(--space-unit) 0;border-width:var(--border-size-small);border-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label,.menu-label:hover,.menu-label:focus-visible,div.menu-label:focus-within{border-color:var(--color-secondary01)}:host([vertical-context]:is([active],[open])) .menu-label::after,:host([vertical-context]) .menu-label:hover::after,:host([vertical-context]) .menu-label:focus-visible::after,:host([vertical-context]) div.menu-label:focus-within::after{position:absolute;bottom:0;left:0;width:100%;height:var(--border-size-large);background-color:var(--color-secondary01);content:""}:host([vertical-context]) .menu-label ::slotted(*){padding:0}.menu-label ::slotted(*){display:inline-flex;width:100%;min-width:fit-content;padding-bottom:2px;margin:0;appearance:none;color:var(--z-menu-label-color, var(--color-default-text));font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:inherit;line-height:1.5;white-space:nowrap}.menu-label z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:var(--color-default-icon)}::slotted([data-text]:not([slot]))::after{height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text]:not([slot]))::after{display:none}}::slotted([data-text]:not([slot])){display:inline-flex;flex-direction:column}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]:not([vertical-context])) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:0 calc(var(--space-unit) * 2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:flex;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot="header"]){width:calc(var(--space-unit) * 11.25);height:auto;object-fit:contain}.header ::slotted([slot="header"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:flex;flex-direction:column;align-items:flex-start;background:inherit}.items>::slotted([slot="item"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.items>::slotted([slot="item"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot="item"]:not(z-menu-section)){padding:var(--space-unit) 0;border-bottom:var(--border-size-small) solid var(--color-surface03)}:host(:not([vertical-context])) .items>::slotted([slot="item"]:last-child){border-bottom:0}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"]:active){border-color:var(--color-secondary01);font-weight:var(--font-bd)}';const r=h;const l=t=>(t===null||t===void 0?void 0:t.tagName)==="Z-MENU-SECTION";const c=class{get focusableItem(){return this.items.find((t=>l(t)?t.htmlTabindex===0:t.tabIndex===0))}toggle(){if(!this.hasContent){return}this.open=!this.open}onLabelSlotChange(t){const i=t.target.assignedElements()[0];i.dataset.text=i===null||i===void 0?void 0:i.textContent;this.setLabelA11yAttrs()}reflow(t=false){if(!this.floating){return}if(this.content&&this.hasContent){const{style:t}=this.content;const{left:i}=this.host.getBoundingClientRect();const e=getComputedStyle(this.content).width;const s=e?parseFloat(e.replace("px","")):375;const o=30;t.left=`${Math.min(window.innerWidth-i-s-o,0)}px`}if(t){this.raf=requestAnimationFrame(this.reflow.bind(this,t))}}checkContent(){this.hasHeader=!!this.host.querySelectorAll("[slot=header]").length;this.hasContent=!!this.host.querySelectorAll("[slot=item]").length||this.hasHeader}setItemTabindex(t,i){if(l(t)){t.htmlTabindex=i}else{t.tabIndex=i}}setItemsA11yAttrs(){this.items.forEach(((t,i)=>{const e=i===0?0:-1;this.setItemTabindex(t,e);if(!l(t)){t.setAttribute("role","menuitem")}}))}onItemsChange(){this.checkContent();this.items=Array.from(this.host.children).filter((({slot:t})=>t==="item"));this.setItemsA11yAttrs();this.items.forEach((t=>{if(!l(t)){t.dataset.text=t.textContent}}))}moveFocus(t,i){if(l(t)){t.setFocus()}else{t.tabIndex=0;setTimeout((()=>{t.focus()}),100)}if(!i){return}this.setItemTabindex(i,-1)}onLabelClick(){this.toggle();this.setFocus()}onLabelKeydown(t){if(t.key===n.ENTER||t.key===n.SPACE){t.preventDefault();t.stopPropagation();this.toggle();if(this.open){this.moveFocus(this.items[0])}return}if(!this.verticalContext){return}if(t.key===n.ARROW_RIGHT&&!this.open){t.preventDefault();t.stopPropagation();this.open=true;this.moveFocus(this.items[0])}}async setFocus(){this.htmlTabindex=0;const t=this.hasContent?this.labelButton:this.host.firstElementChild;t.focus()}async focusLastItem(){const t=this.items[this.items.length-1];if(l(t)&&t.open){t.focusLastItem();return}this.moveFocus(t)}onOpenChanged(){if(!this.open){cancelAnimationFrame(this.raf);this.closed.emit();this.items.forEach((t=>{if(l(t)&&t.open){t.open=false}}));return}this.setItemsA11yAttrs();this.opened.emit();if(this.floating){this.reflow(true)}}setLabelA11yAttrs(){if(this.hasContent&&this.labelButton){this.labelButton.tabIndex=this.htmlTabindex;return}const t=this.host.firstElementChild;t.role="menuitem";t.tabIndex=this.htmlTabindex}onItemClick(t){const i=this.items.find((i=>a(i,t.target)));if(i){this.items.forEach((t=>{if(t===i){return}if(l(t)){t.htmlTabindex=-1}else{t.tabIndex=-1}}))}}onKeyDown(t){var i;if(!this.hasContent){return}switch(t.key){case n.ESC:if(!this.open){break}t.stopPropagation();t.preventDefault();this.open=false;this.setFocus();break;case n.ARROW_DOWN:{if(document.activeElement===this.host){if(this.verticalContext&&!this.open){break}t.stopPropagation();t.preventDefault();if(!this.open){this.open=true}this.moveFocus(this.items[0]);break}const i=this.items.indexOf(this.focusableItem);if(this.verticalContext&&i===this.items.length-1){this.setItemTabindex(this.items[i],-1);this.htmlTabindex=0;break}t.stopPropagation();t.preventDefault();const e=this.items[i+1];this.moveFocus(e!==null&&e!==void 0?e:this.items[0],this.focusableItem);break}case n.ARROW_UP:{if(document.activeElement===this.host){if(this.verticalContext){break}t.stopPropagation();t.preventDefault();if(!this.open){this.open=true}this.moveFocus(this.items[this.items.length-1],this.focusableItem);break}t.stopPropagation();t.preventDefault();const e=this.items.indexOf(this.focusableItem);if(e===0&&this.verticalContext){this.setItemTabindex(this.focusableItem,-1);this.setFocus();break}const s=(i=this.items[e-1])!==null&&i!==void 0?i:this.items[this.items.length-1];if(l(s)&&s.open){this.setItemTabindex(this.focusableItem,-1);s.focusLastItem();break}this.moveFocus(s,this.focusableItem);break}case n.ARROW_LEFT:if(!this.open||!this.verticalContext){break}t.preventDefault();t.stopPropagation();this.open=false;this.setFocus()}}constructor(e){t(this,e);this.opened=i(this,"opened",7);this.closed=i(this,"closed",7);this.items=[];this.active=undefined;this.floating=true;this.open=false;this.verticalContext=false;this.htmlTabindex=-1;this.hasHeader=undefined;this.hasContent=undefined;this.toggle=this.toggle.bind(this);this.checkContent=this.checkContent.bind(this);this.onLabelSlotChange=this.onLabelSlotChange.bind(this);this.onLabelClick=this.onLabelClick.bind(this);this.onItemsChange=this.onItemsChange.bind(this);this.onLabelKeydown=this.onLabelKeydown.bind(this)}componentWillLoad(){this.setLabelA11yAttrs();this.onItemsChange()}render(){if(!this.hasContent){return e("div",{class:"menu-label"},e("slot",{onSlotchange:this.onLabelSlotChange}))}return e(s,null,e("button",{ref:t=>this.labelButton=t,class:"menu-label","aria-expanded":`${!!this.open}`,"aria-haspopup":`${this.hasContent}`,"aria-label":this.open?"Chiudi menù":"Apri menù",role:"menuitem",tabIndex:this.htmlTabindex,onClick:this.onLabelClick,onKeyDown:this.onLabelKeydown},e("slot",{onSlotchange:this.onLabelSlotChange}),e("z-icon",{name:this.open?"chevron-up":"chevron-down"})),e("div",{class:"content",ref:t=>this.content=t},this.hasHeader&&e("header",{class:"header"},e("slot",{name:"header",onSlotchange:this.checkContent})),e("div",{class:"items",role:"menu"},e("slot",{name:"item",onSlotchange:this.onItemsChange}))))}get host(){return o(this)}static get watchers(){return{open:["onOpenChanged"],htmlTabindex:["setLabelA11yAttrs"]}}};c.style=r;export{c as z_menu};
2
+ //# sourceMappingURL=p-563e86c0.entry.js.map
@@ -1,7 +1,7 @@
1
- import{r as t,c as i,h as n,a as e,g as r}from"./p-75c4a726.js";import{r as s}from"./p-1c24255c.js";import{B as a}from"./p-5145a606.js";var o={exports:{}};
1
+ import{r as t,c as i,h as n,a as e,g as r}from"./p-75c4a726.js";import{r as s}from"./p-b34993de.js";import{B as a}from"./p-5145a606.js";var o={exports:{}};
2
2
  /*! Hammer.JS - v2.0.7 - 2016-04-22
3
3
  * http://hammerjs.github.io/
4
4
  *
5
5
  * Copyright (c) 2016 Jorik Tangelder;
6
- * Licensed under the MIT license */(function(t){(function(i,n,e,r){var s=["","webkit","Moz","MS","ms","o"];var a=n.createElement("div");var o="function";var h=Math.round;var u=Math.abs;var c=Date.now;function f(t,i,n){return setTimeout(b(t,n),i)}function l(t,i,n){if(Array.isArray(t)){v(t,n[i],n);return true}return false}function v(t,i,n){var e;if(!t){return}if(t.forEach){t.forEach(i,n)}else if(t.length!==r){e=0;while(e<t.length){i.call(n,t[e],e,t);e++}}else{for(e in t){t.hasOwnProperty(e)&&i.call(n,t[e],e,t)}}}function d(t,n,e){var r="DEPRECATED METHOD: "+n+"\n"+e+" AT \n";return function(){var n=new Error("get-stack-trace");var e=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace";var s=i.console&&(i.console.warn||i.console.log);if(s){s.call(i.console,r,e)}return t.apply(this,arguments)}}var p;if(typeof Object.assign!=="function"){p=function t(i){if(i===r||i===null){throw new TypeError("Cannot convert undefined or null to object")}var n=Object(i);for(var e=1;e<arguments.length;e++){var s=arguments[e];if(s!==r&&s!==null){for(var a in s){if(s.hasOwnProperty(a)){n[a]=s[a]}}}}return n}}else{p=Object.assign}var m=d((function t(i,n,e){var s=Object.keys(n);var a=0;while(a<s.length){if(!e||e&&i[s[a]]===r){i[s[a]]=n[s[a]]}a++}return i}),"extend","Use `assign`.");var g=d((function t(i,n){return m(i,n,true)}),"merge","Use `assign`.");function w(t,i,n){var e=i.prototype,r;r=t.prototype=Object.create(e);r.constructor=t;r._super=e;if(n){p(r,n)}}function b(t,i){return function n(){return t.apply(i,arguments)}}function x(t,i){if(typeof t==o){return t.apply(i?i[0]||r:r,i)}return t}function y(t,i){return t===r?i:t}function T(t,i,n){v(P(i),(function(i){t.addEventListener(i,n,false)}))}function E(t,i,n){v(P(i),(function(i){t.removeEventListener(i,n,false)}))}function I(t,i){while(t){if(t==i){return true}t=t.parentNode}return false}function A(t,i){return t.indexOf(i)>-1}function P(t){return t.trim().split(/\s+/g)}function C(t,i,n){if(t.indexOf&&!n){return t.indexOf(i)}else{var e=0;while(e<t.length){if(n&&t[e][n]==i||!n&&t[e]===i){return e}e++}return-1}}function D(t){return Array.prototype.slice.call(t,0)}function M(t,i,n){var e=[];var r=[];var s=0;while(s<t.length){var a=i?t[s][i]:t[s];if(C(r,a)<0){e.push(t[s])}r[s]=a;s++}if(n){if(!i){e=e.sort()}else{e=e.sort((function t(n,e){return n[i]>e[i]}))}}return e}function k(t,i){var n,e;var a=i[0].toUpperCase()+i.slice(1);var o=0;while(o<s.length){n=s[o];e=n?n+a:i;if(e in t){return e}o++}return r}var z=1;function O(){return z++}function S(t){var n=t.ownerDocument||t;return n.defaultView||n.parentWindow||i}var N=/mobile|tablet|ip(ad|hone|od)|android/i;var R="ontouchstart"in i;var _=k(i,"PointerEvent")!==r;var X=R&&N.test(navigator.userAgent);var j="touch";var L="pen";var Y="mouse";var F="kinect";var U=25;var W=1;var H=2;var B=4;var q=8;var G=1;var $=2;var Z=4;var V=8;var K=16;var J=$|Z;var Q=V|K;var tt=J|Q;var it=["x","y"];var nt=["clientX","clientY"];function et(t,i){var n=this;this.manager=t;this.callback=i;this.element=t.element;this.target=t.options.inputTarget;this.domHandler=function(i){if(x(t.options.enable,[t])){n.handler(i)}};this.init()}et.prototype={handler:function(){},init:function(){this.evEl&&T(this.element,this.evEl,this.domHandler);this.evTarget&&T(this.target,this.evTarget,this.domHandler);this.evWin&&T(S(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler);this.evTarget&&E(this.target,this.evTarget,this.domHandler);this.evWin&&E(S(this.element),this.evWin,this.domHandler)}};function rt(t){var i;var n=t.options.inputClass;if(n){i=n}else if(_){i=At}else if(X){i=St}else if(!R){i=xt}else{i=Xt}return new i(t,st)}function st(t,i,n){var e=n.pointers.length;var r=n.changedPointers.length;var s=i&W&&e-r===0;var a=i&(B|q)&&e-r===0;n.isFirst=!!s;n.isFinal=!!a;if(s){t.session={}}n.eventType=i;at(t,n);t.emit("hammer.input",n);t.recognize(n);t.session.prevInput=n}function at(t,i){var n=t.session;var e=i.pointers;var r=e.length;if(!n.firstInput){n.firstInput=ut(i)}if(r>1&&!n.firstMultiple){n.firstMultiple=ut(i)}else if(r===1){n.firstMultiple=false}var s=n.firstInput;var a=n.firstMultiple;var o=a?a.center:s.center;var h=i.center=ct(e);i.timeStamp=c();i.deltaTime=i.timeStamp-s.timeStamp;i.angle=dt(o,h);i.distance=vt(o,h);ot(n,i);i.offsetDirection=lt(i.deltaX,i.deltaY);var f=ft(i.deltaTime,i.deltaX,i.deltaY);i.overallVelocityX=f.x;i.overallVelocityY=f.y;i.overallVelocity=u(f.x)>u(f.y)?f.x:f.y;i.scale=a?mt(a.pointers,e):1;i.rotation=a?pt(a.pointers,e):0;i.maxPointers=!n.prevInput?i.pointers.length:i.pointers.length>n.prevInput.maxPointers?i.pointers.length:n.prevInput.maxPointers;ht(n,i);var l=t.element;if(I(i.srcEvent.target,l)){l=i.srcEvent.target}i.target=l}function ot(t,i){var n=i.center;var e=t.offsetDelta||{};var r=t.prevDelta||{};var s=t.prevInput||{};if(i.eventType===W||s.eventType===B){r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0};e=t.offsetDelta={x:n.x,y:n.y}}i.deltaX=r.x+(n.x-e.x);i.deltaY=r.y+(n.y-e.y)}function ht(t,i){var n=t.lastInterval||i,e=i.timeStamp-n.timeStamp,s,a,o,h;if(i.eventType!=q&&(e>U||n.velocity===r)){var c=i.deltaX-n.deltaX;var f=i.deltaY-n.deltaY;var l=ft(e,c,f);a=l.x;o=l.y;s=u(l.x)>u(l.y)?l.x:l.y;h=lt(c,f);t.lastInterval=i}else{s=n.velocity;a=n.velocityX;o=n.velocityY;h=n.direction}i.velocity=s;i.velocityX=a;i.velocityY=o;i.direction=h}function ut(t){var i=[];var n=0;while(n<t.pointers.length){i[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)};n++}return{timeStamp:c(),pointers:i,center:ct(i),deltaX:t.deltaX,deltaY:t.deltaY}}function ct(t){var i=t.length;if(i===1){return{x:h(t[0].clientX),y:h(t[0].clientY)}}var n=0,e=0,r=0;while(r<i){n+=t[r].clientX;e+=t[r].clientY;r++}return{x:h(n/i),y:h(e/i)}}function ft(t,i,n){return{x:i/t||0,y:n/t||0}}function lt(t,i){if(t===i){return G}if(u(t)>=u(i)){return t<0?$:Z}return i<0?V:K}function vt(t,i,n){if(!n){n=it}var e=i[n[0]]-t[n[0]],r=i[n[1]]-t[n[1]];return Math.sqrt(e*e+r*r)}function dt(t,i,n){if(!n){n=it}var e=i[n[0]]-t[n[0]],r=i[n[1]]-t[n[1]];return Math.atan2(r,e)*180/Math.PI}function pt(t,i){return dt(i[1],i[0],nt)+dt(t[1],t[0],nt)}function mt(t,i){return vt(i[0],i[1],nt)/vt(t[0],t[1],nt)}var gt={mousedown:W,mousemove:H,mouseup:B};var wt="mousedown";var bt="mousemove mouseup";function xt(){this.evEl=wt;this.evWin=bt;this.pressed=false;et.apply(this,arguments)}w(xt,et,{handler:function t(i){var n=gt[i.type];if(n&W&&i.button===0){this.pressed=true}if(n&H&&i.which!==1){n=B}if(!this.pressed){return}if(n&B){this.pressed=false}this.callback(this.manager,n,{pointers:[i],changedPointers:[i],pointerType:Y,srcEvent:i})}});var yt={pointerdown:W,pointermove:H,pointerup:B,pointercancel:q,pointerout:q};var Tt={2:j,3:L,4:Y,5:F};var Et="pointerdown";var It="pointermove pointerup pointercancel";if(i.MSPointerEvent&&!i.PointerEvent){Et="MSPointerDown";It="MSPointerMove MSPointerUp MSPointerCancel"}function At(){this.evEl=Et;this.evWin=It;et.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}w(At,et,{handler:function t(i){var n=this.store;var e=false;var r=i.type.toLowerCase().replace("ms","");var s=yt[r];var a=Tt[i.pointerType]||i.pointerType;var o=a==j;var h=C(n,i.pointerId,"pointerId");if(s&W&&(i.button===0||o)){if(h<0){n.push(i);h=n.length-1}}else if(s&(B|q)){e=true}if(h<0){return}n[h]=i;this.callback(this.manager,s,{pointers:n,changedPointers:[i],pointerType:a,srcEvent:i});if(e){n.splice(h,1)}}});var Pt={touchstart:W,touchmove:H,touchend:B,touchcancel:q};var Ct="touchstart";var Dt="touchstart touchmove touchend touchcancel";function Mt(){this.evTarget=Ct;this.evWin=Dt;this.started=false;et.apply(this,arguments)}w(Mt,et,{handler:function t(i){var n=Pt[i.type];if(n===W){this.started=true}if(!this.started){return}var e=kt.call(this,i,n);if(n&(B|q)&&e[0].length-e[1].length===0){this.started=false}this.callback(this.manager,n,{pointers:e[0],changedPointers:e[1],pointerType:j,srcEvent:i})}});function kt(t,i){var n=D(t.touches);var e=D(t.changedTouches);if(i&(B|q)){n=M(n.concat(e),"identifier",true)}return[n,e]}var zt={touchstart:W,touchmove:H,touchend:B,touchcancel:q};var Ot="touchstart touchmove touchend touchcancel";function St(){this.evTarget=Ot;this.targetIds={};et.apply(this,arguments)}w(St,et,{handler:function t(i){var n=zt[i.type];var e=Nt.call(this,i,n);if(!e){return}this.callback(this.manager,n,{pointers:e[0],changedPointers:e[1],pointerType:j,srcEvent:i})}});function Nt(t,i){var n=D(t.touches);var e=this.targetIds;if(i&(W|H)&&n.length===1){e[n[0].identifier]=true;return[n,n]}var r,s,a=D(t.changedTouches),o=[],h=this.target;s=n.filter((function(t){return I(t.target,h)}));if(i===W){r=0;while(r<s.length){e[s[r].identifier]=true;r++}}r=0;while(r<a.length){if(e[a[r].identifier]){o.push(a[r])}if(i&(B|q)){delete e[a[r].identifier]}r++}if(!o.length){return}return[M(s.concat(o),"identifier",true),o]}var Rt=2500;var _t=25;function Xt(){et.apply(this,arguments);var t=b(this.handler,this);this.touch=new St(this.manager,t);this.mouse=new xt(this.manager,t);this.primaryTouch=null;this.lastTouches=[]}w(Xt,et,{handler:function t(i,n,e){var r=e.pointerType==j,s=e.pointerType==Y;if(s&&e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents){return}if(r){jt.call(this,n,e)}else if(s&&Yt.call(this,e)){return}this.callback(i,n,e)},destroy:function t(){this.touch.destroy();this.mouse.destroy()}});function jt(t,i){if(t&W){this.primaryTouch=i.changedPointers[0].identifier;Lt.call(this,i)}else if(t&(B|q)){Lt.call(this,i)}}function Lt(t){var i=t.changedPointers[0];if(i.identifier===this.primaryTouch){var n={x:i.clientX,y:i.clientY};this.lastTouches.push(n);var e=this.lastTouches;var r=function(){var t=e.indexOf(n);if(t>-1){e.splice(t,1)}};setTimeout(r,Rt)}}function Yt(t){var i=t.srcEvent.clientX,n=t.srcEvent.clientY;for(var e=0;e<this.lastTouches.length;e++){var r=this.lastTouches[e];var s=Math.abs(i-r.x),a=Math.abs(n-r.y);if(s<=_t&&a<=_t){return true}}return false}var Ft=k(a.style,"touchAction");var Ut=Ft!==r;var Wt="compute";var Ht="auto";var Bt="manipulation";var qt="none";var Gt="pan-x";var $t="pan-y";var Zt=Jt();function Vt(t,i){this.manager=t;this.set(i)}Vt.prototype={set:function(t){if(t==Wt){t=this.compute()}if(Ut&&this.manager.element.style&&Zt[t]){this.manager.element.style[Ft]=t}this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];v(this.manager.recognizers,(function(i){if(x(i.options.enable,[i])){t=t.concat(i.getTouchAction())}}));return Kt(t.join(" "))},preventDefaults:function(t){var i=t.srcEvent;var n=t.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var e=this.actions;var r=A(e,qt)&&!Zt[qt];var s=A(e,$t)&&!Zt[$t];var a=A(e,Gt)&&!Zt[Gt];if(r){var o=t.pointers.length===1;var h=t.distance<2;var u=t.deltaTime<250;if(o&&h&&u){return}}if(a&&s){return}if(r||s&&n&J||a&&n&Q){return this.preventSrc(i)}},preventSrc:function(t){this.manager.session.prevented=true;t.preventDefault()}};function Kt(t){if(A(t,qt)){return qt}var i=A(t,Gt);var n=A(t,$t);if(i&&n){return qt}if(i||n){return i?Gt:$t}if(A(t,Bt)){return Bt}return Ht}function Jt(){if(!Ut){return false}var t={};var n=i.CSS&&i.CSS.supports;["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(e){t[e]=n?i.CSS.supports("touch-action",e):true}));return t}var Qt=1;var ti=2;var ii=4;var ni=8;var ei=ni;var ri=16;var si=32;function ai(t){this.options=p({},this.defaults,t||{});this.id=O();this.manager=null;this.options.enable=y(this.options.enable,true);this.state=Qt;this.simultaneous={};this.requireFail=[]}ai.prototype={defaults:{},set:function(t){p(this.options,t);this.manager&&this.manager.touchAction.update();return this},recognizeWith:function(t){if(l(t,"recognizeWith",this)){return this}var i=this.simultaneous;t=ui(t,this);if(!i[t.id]){i[t.id]=t;t.recognizeWith(this)}return this},dropRecognizeWith:function(t){if(l(t,"dropRecognizeWith",this)){return this}t=ui(t,this);delete this.simultaneous[t.id];return this},requireFailure:function(t){if(l(t,"requireFailure",this)){return this}var i=this.requireFail;t=ui(t,this);if(C(i,t)===-1){i.push(t);t.requireFailure(this)}return this},dropRequireFailure:function(t){if(l(t,"dropRequireFailure",this)){return this}t=ui(t,this);var i=C(this.requireFail,t);if(i>-1){this.requireFail.splice(i,1)}return this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var i=this;var n=this.state;function e(n){i.manager.emit(n,t)}if(n<ni){e(i.options.event+oi(n))}e(i.options.event);if(t.additionalEvent){e(t.additionalEvent)}if(n>=ni){e(i.options.event+oi(n))}},tryEmit:function(t){if(this.canEmit()){return this.emit(t)}this.state=si},canEmit:function(){var t=0;while(t<this.requireFail.length){if(!(this.requireFail[t].state&(si|Qt))){return false}t++}return true},recognize:function(t){var i=p({},t);if(!x(this.options.enable,[this,i])){this.reset();this.state=si;return}if(this.state&(ei|ri|si)){this.state=Qt}this.state=this.process(i);if(this.state&(ti|ii|ni|ri)){this.tryEmit(i)}},process:function(t){},getTouchAction:function(){},reset:function(){}};function oi(t){if(t&ri){return"cancel"}else if(t&ni){return"end"}else if(t&ii){return"move"}else if(t&ti){return"start"}return""}function hi(t){if(t==K){return"down"}else if(t==V){return"up"}else if(t==$){return"left"}else if(t==Z){return"right"}return""}function ui(t,i){var n=i.manager;if(n){return n.get(t)}return t}function ci(){ai.apply(this,arguments)}w(ci,ai,{defaults:{pointers:1},attrTest:function(t){var i=this.options.pointers;return i===0||t.pointers.length===i},process:function(t){var i=this.state;var n=t.eventType;var e=i&(ti|ii);var r=this.attrTest(t);if(e&&(n&q||!r)){return i|ri}else if(e||r){if(n&B){return i|ni}else if(!(i&ti)){return ti}return i|ii}return si}});function fi(){ci.apply(this,arguments);this.pX=null;this.pY=null}w(fi,ci,{defaults:{event:"pan",threshold:10,pointers:1,direction:tt},getTouchAction:function(){var t=this.options.direction;var i=[];if(t&J){i.push($t)}if(t&Q){i.push(Gt)}return i},directionTest:function(t){var i=this.options;var n=true;var e=t.distance;var r=t.direction;var s=t.deltaX;var a=t.deltaY;if(!(r&i.direction)){if(i.direction&J){r=s===0?G:s<0?$:Z;n=s!=this.pX;e=Math.abs(t.deltaX)}else{r=a===0?G:a<0?V:K;n=a!=this.pY;e=Math.abs(t.deltaY)}}t.direction=r;return n&&e>i.threshold&&r&i.direction},attrTest:function(t){return ci.prototype.attrTest.call(this,t)&&(this.state&ti||!(this.state&ti)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX;this.pY=t.deltaY;var i=hi(t.direction);if(i){t.additionalEvent=this.options.event+i}this._super.emit.call(this,t)}});function li(){ci.apply(this,arguments)}w(li,ci,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&ti)},emit:function(t){if(t.scale!==1){var i=t.scale<1?"in":"out";t.additionalEvent=this.options.event+i}this._super.emit.call(this,t)}});function vi(){ai.apply(this,arguments);this._timer=null;this._input=null}w(vi,ai,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ht]},process:function(t){var i=this.options;var n=t.pointers.length===i.pointers;var e=t.distance<i.threshold;var r=t.deltaTime>i.time;this._input=t;if(!e||!n||t.eventType&(B|q)&&!r){this.reset()}else if(t.eventType&W){this.reset();this._timer=f((function(){this.state=ei;this.tryEmit()}),i.time,this)}else if(t.eventType&B){return ei}return si},reset:function(){clearTimeout(this._timer)},emit:function(t){if(this.state!==ei){return}if(t&&t.eventType&B){this.manager.emit(this.options.event+"up",t)}else{this._input.timeStamp=c();this.manager.emit(this.options.event,this._input)}}});function di(){ci.apply(this,arguments)}w(di,ci,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&ti)}});function pi(){ci.apply(this,arguments)}w(pi,ci,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:J|Q,pointers:1},getTouchAction:function(){return fi.prototype.getTouchAction.call(this)},attrTest:function(t){var i=this.options.direction;var n;if(i&(J|Q)){n=t.overallVelocity}else if(i&J){n=t.overallVelocityX}else if(i&Q){n=t.overallVelocityY}return this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&u(n)>this.options.velocity&&t.eventType&B},emit:function(t){var i=hi(t.offsetDirection);if(i){this.manager.emit(this.options.event+i,t)}this.manager.emit(this.options.event,t)}});function mi(){ai.apply(this,arguments);this.pTime=false;this.pCenter=false;this._timer=null;this._input=null;this.count=0}w(mi,ai,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Bt]},process:function(t){var i=this.options;var n=t.pointers.length===i.pointers;var e=t.distance<i.threshold;var r=t.deltaTime<i.time;this.reset();if(t.eventType&W&&this.count===0){return this.failTimeout()}if(e&&r&&n){if(t.eventType!=B){return this.failTimeout()}var s=this.pTime?t.timeStamp-this.pTime<i.interval:true;var a=!this.pCenter||vt(this.pCenter,t.center)<i.posThreshold;this.pTime=t.timeStamp;this.pCenter=t.center;if(!a||!s){this.count=1}else{this.count+=1}this._input=t;var o=this.count%i.taps;if(o===0){if(!this.hasRequireFailures()){return ei}else{this._timer=f((function(){this.state=ei;this.tryEmit()}),i.interval,this);return ti}}}return si},failTimeout:function(){this._timer=f((function(){this.state=si}),this.options.interval,this);return si},reset:function(){clearTimeout(this._timer)},emit:function(){if(this.state==ei){this._input.tapCount=this.count;this.manager.emit(this.options.event,this._input)}}});function gi(t,i){i=i||{};i.recognizers=y(i.recognizers,gi.defaults.preset);return new xi(t,i)}gi.VERSION="2.0.7";gi.defaults={domEvents:false,touchAction:Wt,enable:true,inputTarget:null,inputClass:null,preset:[[di,{enable:false}],[li,{enable:false},["rotate"]],[pi,{direction:J}],[fi,{direction:J},["swipe"]],[mi],[mi,{event:"doubletap",taps:2},["tap"]],[vi]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var wi=1;var bi=2;function xi(t,i){this.options=p({},gi.defaults,i||{});this.options.inputTarget=this.options.inputTarget||t;this.handlers={};this.session={};this.recognizers=[];this.oldCssProps={};this.element=t;this.input=rt(this);this.touchAction=new Vt(this,this.options.touchAction);yi(this,true);v(this.options.recognizers,(function(t){var i=this.add(new t[0](t[1]));t[2]&&i.recognizeWith(t[2]);t[3]&&i.requireFailure(t[3])}),this)}xi.prototype={set:function(t){p(this.options,t);if(t.touchAction){this.touchAction.update()}if(t.inputTarget){this.input.destroy();this.input.target=t.inputTarget;this.input.init()}return this},stop:function(t){this.session.stopped=t?bi:wi},recognize:function(t){var i=this.session;if(i.stopped){return}this.touchAction.preventDefaults(t);var n;var e=this.recognizers;var r=i.curRecognizer;if(!r||r&&r.state&ei){r=i.curRecognizer=null}var s=0;while(s<e.length){n=e[s];if(i.stopped!==bi&&(!r||n==r||n.canRecognizeWith(r))){n.recognize(t)}else{n.reset()}if(!r&&n.state&(ti|ii|ni)){r=i.curRecognizer=n}s++}},get:function(t){if(t instanceof ai){return t}var i=this.recognizers;for(var n=0;n<i.length;n++){if(i[n].options.event==t){return i[n]}}return null},add:function(t){if(l(t,"add",this)){return this}var i=this.get(t.options.event);if(i){this.remove(i)}this.recognizers.push(t);t.manager=this;this.touchAction.update();return t},remove:function(t){if(l(t,"remove",this)){return this}t=this.get(t);if(t){var i=this.recognizers;var n=C(i,t);if(n!==-1){i.splice(n,1);this.touchAction.update()}}return this},on:function(t,i){if(t===r){return}if(i===r){return}var n=this.handlers;v(P(t),(function(t){n[t]=n[t]||[];n[t].push(i)}));return this},off:function(t,i){if(t===r){return}var n=this.handlers;v(P(t),(function(t){if(!i){delete n[t]}else{n[t]&&n[t].splice(C(n[t],i),1)}}));return this},emit:function(t,i){if(this.options.domEvents){Ti(t,i)}var n=this.handlers[t]&&this.handlers[t].slice();if(!n||!n.length){return}i.type=t;i.preventDefault=function(){i.srcEvent.preventDefault()};var e=0;while(e<n.length){n[e](i);e++}},destroy:function(){this.element&&yi(this,false);this.handlers={};this.session={};this.input.destroy();this.element=null}};function yi(t,i){var n=t.element;if(!n.style){return}var e;v(t.options.cssProps,(function(r,s){e=k(n.style,s);if(i){t.oldCssProps[e]=n.style[e];n.style[e]=r}else{n.style[e]=t.oldCssProps[e]||""}}));if(!i){t.oldCssProps={}}}function Ti(t,i){var e=n.createEvent("Event");e.initEvent(t,true,true);e.gesture=i;i.target.dispatchEvent(e)}p(gi,{INPUT_START:W,INPUT_MOVE:H,INPUT_END:B,INPUT_CANCEL:q,STATE_POSSIBLE:Qt,STATE_BEGAN:ti,STATE_CHANGED:ii,STATE_ENDED:ni,STATE_RECOGNIZED:ei,STATE_CANCELLED:ri,STATE_FAILED:si,DIRECTION_NONE:G,DIRECTION_LEFT:$,DIRECTION_RIGHT:Z,DIRECTION_UP:V,DIRECTION_DOWN:K,DIRECTION_HORIZONTAL:J,DIRECTION_VERTICAL:Q,DIRECTION_ALL:tt,Manager:xi,Input:et,TouchAction:Vt,TouchInput:St,MouseInput:xt,PointerEventInput:At,TouchMouseInput:Xt,SingleTouchInput:Mt,Recognizer:ai,AttrRecognizer:ci,Tap:mi,Pan:fi,Swipe:pi,Pinch:li,Rotate:di,Press:vi,on:T,off:E,each:v,merge:g,extend:m,assign:p,inherit:w,bindFn:b,prefixed:k});var Ei=typeof i!=="undefined"?i:typeof self!=="undefined"?self:{};Ei.Hammer=gi;if(typeof r==="function"&&r.amd){r((function(){return gi}))}else if(t.exports){t.exports=gi}else{i[e]=gi}})(window,document,"Hammer")})(o);const h=o.exports;const u=":host{display:inline-block;width:100vw;min-width:200px;--percentuale:0}: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}@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%)}}:host>#external-container{display:flex;min-height:52px;box-sizing:border-box;align-items:center;justify-content:space-between;padding:calc(var(--space-unit) * 1) calc(var(--space-unit) * 2);border-radius:4px;box-shadow:var(--shadow-3);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-rg);letter-spacing:0.16px}:host>#external-container.mobile-wrapped>#icon{align-self:flex-start}:host>#external-container.several-lines-padding{padding:calc(var(--space-unit) * 2)}:host>#external-container>#flex-container{display:flex;width:100%;flex-wrap:wrap;align-items:center;justify-content:space-between}:host>#external-container #text{margin-right:calc(var(--space-unit) * 2);color:var(--color-white);letter-spacing:0.16px;line-height:20px;text-align:left}:host>#external-container #text>.title{margin-right:4px;font-weight:600}:host>#external-container.mobile-wrapped #button ::slotted(z-button){margin-top:calc(var(--space-unit) * 2)}:host>#external-container #icon{margin-left:calc(var(--space-unit) * 2);cursor:pointer;fill:var(--color-white)}z-icon{display:inline-block;vertical-align:0}z-icon:focus{padding:calc(var(--space-unit) / 4);border-radius:50%;box-shadow:var(--shadow-focus-primary);outline:none !important}:host>#external-container.dark{background:var(--gray800)}:host>#external-container.light{background:var(--color-background)}:host>#external-container.light #icon,:host>#external-container.warning #text,:host>#external-container.warning #icon{fill:var(--color-primary01-icon)}:host>#external-container.light #text,:host>#external-container.warning #text{color:var(--gray800)}:host>#external-container.accent{background:var(--color-primary01)}:host>#external-container.error{background:var(--color-error-default)}:host>#external-container.success{background:var(--color-success-default)}:host>#external-container.warning{background:var(--color-warning-default)}@media only screen and (min-width: 768px){:host{width:unset;max-width:50vw}:host>#external-container>#flex-container{flex-wrap:nowrap}:host>#external-container #text{width:100%}}@media only screen and (min-width: 1366px){:host{width:unset;max-width:33vw}}";const c=u;const f=class{constructor(n){t(this,n);this.toastClose=i(this,"toastClose",7);this.isCloseEventCalled=false;this.heading=undefined;this.message=undefined;this.closebutton=undefined;this.autoclose=undefined;this.pauseonfocusloss=true;this.type=undefined;this.isdraggable=true;this.draggablepercentage=80;this.transition=undefined;this.percentage=undefined}watchPropIsdraggable(t){if(t){this.sliderManager.get("pan").set({enable:true})}else{this.sliderManager.get("pan").set({enable:false})}}watchPropAutoclose(t){clearTimeout(this.timeoutHandle);this.startClosingTimeout(t)}watchPropPauseonfocusloss(t){if(this.autoclose){if(t){document.addEventListener("visibilitychange",this.visibilityChangeEventHandler)}else{document.removeEventListener("visibilitychange",this.visibilityChangeEventHandler)}}}emitToastClose(t){this.timeoutHandle=null;this.elapsedTime=null;this.hostElement.classList.add(t);this.toastClose.emit()}componentWillLoad(){this.isMobile=window.innerWidth<=a.MOBILE;this.validateAutoclose();this.percentage=0}componentDidLoad(){this.isTextLong=this.detectWrap()||this.toastText.offsetHeight>20;this.startTime=Date.now();if(this.autoclose&&this.pauseonfocusloss){document.addEventListener("visibilitychange",this.visibilityChangeEventHandler)}this.isdraggable&&this.handleSlideOutDragAnimation()}visibilityChangeEventHandler(){if(document.visibilityState==="hidden"){this.timeoutHandle&&this.onBlur()}else{this.elapsedTime&&this.onFocus()}}validateAutoclose(){if(!this.autoclose&&!this.closebutton){console.error("At least one between autoclose and closebutton must be present")}}mapSlideOutClass(){switch(this.transition){case s.SLIDE_IN_DOWN:return s.SLIDE_OUT_UP;case s.SLIDE_IN_UP:return s.SLIDE_OUT_DOWN;case s.SLIDE_IN_LEFT:return s.SLIDE_OUT_RIGHT;case s.SLIDE_IN_RIGHT:return s.SLIDE_OUT_LEFT}}calculateDraggedPercentage(t){const i=this.hostElement.getBoundingClientRect();return Math.round(100*t.deltaX/i.width)}handleSlideOutDragAnimation(){this.sliderManager=new h(this.hostElement);this.sliderManager.get("pan").set({direction:h.DIRECTION_HORIZONTAL});this.sliderManager.on("pan",(t=>{this.percentage=this.calculateDraggedPercentage(t);this.hostElement.style.transition="none";this.hostElement.classList.remove(this.transition);const i={translate:`translateX(${this.percentage}%)`,translateBack:"translateX(0)"};this.hostElement.style.opacity=`${100-Math.abs(this.percentage)}%`;if(t.eventType===h.DIRECTION_LEFT||t.eventType===h.DIRECTION_RIGHT){this.hostElement.style.transform=i.translate;if(Math.abs(this.percentage)>this.draggablepercentage&&!this.isCloseEventCalled){this.isCloseEventCalled=true;this.emitToastClose(t.direction===h.DIRECTION_LEFT?"slide-out-left":"slide-out-right")}}if(t.isFinal&&Math.abs(this.percentage)<this.draggablepercentage){this.hostElement.style.transform=i.translateBack;this.hostElement.style.transition="all 1s";this.hostElement.style.opacity="100%";this.percentage=0}}))}onFocus(){let t=this.autoclose;if(this.elapsedTime){t=this.autoclose-this.elapsedTime}if(t>0){this.startClosingTimeout(t)}}onBlur(){this.elapsedTime=Date.now()-this.startTime;clearTimeout(this.timeoutHandle)}startClosingTimeout(t){this.timeoutHandle=window.setTimeout((()=>this.emitToastClose(this.mapSlideOutClass())),t)}detectWrap(){const t=this.container.offsetWidth;const i=this.container.children;let n=0;for(let t=0;t<i.length;t++){n+=i[t].offsetWidth}return n>t}renderText(){return n("div",{id:"text",ref:t=>this.toastText=t},n("span",{class:"title"},this.heading),n("span",{class:"message"},this.message))}renderButton(){return n("div",{id:"button"},n("slot",{name:"button"}))}renderCloseIcon(){if(!this.closebutton){return}return n("div",{id:"icon"},n("z-icon",{tabIndex:0,name:"multiply-circled",width:15,height:15,onClick:()=>this.emitToastClose(this.mapSlideOutClass()),onKeyPress:t=>{if(t.keyCode==32||t.keyCode==13){t.preventDefault();this.emitToastClose(this.mapSlideOutClass())}}}))}renderContainer(){return n("div",{tabIndex:0,id:"external-container",class:{[this.type]:!!this.type,"several-lines-padding":this.isTextLong},ref:t=>this.container=t},this.renderText(),this.renderButton(),this.renderCloseIcon())}renderMobileContainer(){return n("div",{id:"external-container",class:{[this.type]:!!this.type,"several-lines-padding":this.isTextLong,"mobile-wrapped":this.isTextLong}},n("div",{id:"flex-container",ref:t=>this.container=t},this.renderText(),this.renderButton()),this.renderCloseIcon())}render(){return n(e,{key:"64e3bc3f5fea2d418f58e010fb4660fc2369dacb",style:{"--percentuale":`${this.percentage}%`},class:this.transition?this.transition:s.SLIDE_IN_DOWN,onAnimationEnd:t=>{if(this.autoclose&&t.animationName.includes("slidein")){this.startClosingTimeout(this.autoclose)}if(t.animationName.includes("slideout")){this.hostElement.parentNode.removeChild(this.hostElement)}}},this.isMobile?this.renderMobileContainer():this.renderContainer())}get hostElement(){return r(this)}static get watchers(){return{isdraggable:["watchPropIsdraggable"],autoclose:["watchPropAutoclose"],pauseonfocusloss:["watchPropPauseonfocusloss"]}}};f.style=c;export{f as z_toast_notification};
7
- //# sourceMappingURL=p-e38df1a4.entry.js.map
6
+ * Licensed under the MIT license */(function(t){(function(i,n,e,r){var s=["","webkit","Moz","MS","ms","o"];var a=n.createElement("div");var o="function";var h=Math.round;var u=Math.abs;var c=Date.now;function f(t,i,n){return setTimeout(b(t,n),i)}function l(t,i,n){if(Array.isArray(t)){v(t,n[i],n);return true}return false}function v(t,i,n){var e;if(!t){return}if(t.forEach){t.forEach(i,n)}else if(t.length!==r){e=0;while(e<t.length){i.call(n,t[e],e,t);e++}}else{for(e in t){t.hasOwnProperty(e)&&i.call(n,t[e],e,t)}}}function d(t,n,e){var r="DEPRECATED METHOD: "+n+"\n"+e+" AT \n";return function(){var n=new Error("get-stack-trace");var e=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace";var s=i.console&&(i.console.warn||i.console.log);if(s){s.call(i.console,r,e)}return t.apply(this,arguments)}}var p;if(typeof Object.assign!=="function"){p=function t(i){if(i===r||i===null){throw new TypeError("Cannot convert undefined or null to object")}var n=Object(i);for(var e=1;e<arguments.length;e++){var s=arguments[e];if(s!==r&&s!==null){for(var a in s){if(s.hasOwnProperty(a)){n[a]=s[a]}}}}return n}}else{p=Object.assign}var m=d((function t(i,n,e){var s=Object.keys(n);var a=0;while(a<s.length){if(!e||e&&i[s[a]]===r){i[s[a]]=n[s[a]]}a++}return i}),"extend","Use `assign`.");var g=d((function t(i,n){return m(i,n,true)}),"merge","Use `assign`.");function w(t,i,n){var e=i.prototype,r;r=t.prototype=Object.create(e);r.constructor=t;r._super=e;if(n){p(r,n)}}function b(t,i){return function n(){return t.apply(i,arguments)}}function x(t,i){if(typeof t==o){return t.apply(i?i[0]||r:r,i)}return t}function y(t,i){return t===r?i:t}function T(t,i,n){v(P(i),(function(i){t.addEventListener(i,n,false)}))}function E(t,i,n){v(P(i),(function(i){t.removeEventListener(i,n,false)}))}function I(t,i){while(t){if(t==i){return true}t=t.parentNode}return false}function A(t,i){return t.indexOf(i)>-1}function P(t){return t.trim().split(/\s+/g)}function C(t,i,n){if(t.indexOf&&!n){return t.indexOf(i)}else{var e=0;while(e<t.length){if(n&&t[e][n]==i||!n&&t[e]===i){return e}e++}return-1}}function D(t){return Array.prototype.slice.call(t,0)}function M(t,i,n){var e=[];var r=[];var s=0;while(s<t.length){var a=i?t[s][i]:t[s];if(C(r,a)<0){e.push(t[s])}r[s]=a;s++}if(n){if(!i){e=e.sort()}else{e=e.sort((function t(n,e){return n[i]>e[i]}))}}return e}function k(t,i){var n,e;var a=i[0].toUpperCase()+i.slice(1);var o=0;while(o<s.length){n=s[o];e=n?n+a:i;if(e in t){return e}o++}return r}var z=1;function O(){return z++}function S(t){var n=t.ownerDocument||t;return n.defaultView||n.parentWindow||i}var N=/mobile|tablet|ip(ad|hone|od)|android/i;var R="ontouchstart"in i;var _=k(i,"PointerEvent")!==r;var X=R&&N.test(navigator.userAgent);var j="touch";var L="pen";var Y="mouse";var F="kinect";var U=25;var W=1;var H=2;var B=4;var q=8;var G=1;var $=2;var Z=4;var V=8;var K=16;var J=$|Z;var Q=V|K;var tt=J|Q;var it=["x","y"];var nt=["clientX","clientY"];function et(t,i){var n=this;this.manager=t;this.callback=i;this.element=t.element;this.target=t.options.inputTarget;this.domHandler=function(i){if(x(t.options.enable,[t])){n.handler(i)}};this.init()}et.prototype={handler:function(){},init:function(){this.evEl&&T(this.element,this.evEl,this.domHandler);this.evTarget&&T(this.target,this.evTarget,this.domHandler);this.evWin&&T(S(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler);this.evTarget&&E(this.target,this.evTarget,this.domHandler);this.evWin&&E(S(this.element),this.evWin,this.domHandler)}};function rt(t){var i;var n=t.options.inputClass;if(n){i=n}else if(_){i=At}else if(X){i=St}else if(!R){i=xt}else{i=Xt}return new i(t,st)}function st(t,i,n){var e=n.pointers.length;var r=n.changedPointers.length;var s=i&W&&e-r===0;var a=i&(B|q)&&e-r===0;n.isFirst=!!s;n.isFinal=!!a;if(s){t.session={}}n.eventType=i;at(t,n);t.emit("hammer.input",n);t.recognize(n);t.session.prevInput=n}function at(t,i){var n=t.session;var e=i.pointers;var r=e.length;if(!n.firstInput){n.firstInput=ut(i)}if(r>1&&!n.firstMultiple){n.firstMultiple=ut(i)}else if(r===1){n.firstMultiple=false}var s=n.firstInput;var a=n.firstMultiple;var o=a?a.center:s.center;var h=i.center=ct(e);i.timeStamp=c();i.deltaTime=i.timeStamp-s.timeStamp;i.angle=dt(o,h);i.distance=vt(o,h);ot(n,i);i.offsetDirection=lt(i.deltaX,i.deltaY);var f=ft(i.deltaTime,i.deltaX,i.deltaY);i.overallVelocityX=f.x;i.overallVelocityY=f.y;i.overallVelocity=u(f.x)>u(f.y)?f.x:f.y;i.scale=a?mt(a.pointers,e):1;i.rotation=a?pt(a.pointers,e):0;i.maxPointers=!n.prevInput?i.pointers.length:i.pointers.length>n.prevInput.maxPointers?i.pointers.length:n.prevInput.maxPointers;ht(n,i);var l=t.element;if(I(i.srcEvent.target,l)){l=i.srcEvent.target}i.target=l}function ot(t,i){var n=i.center;var e=t.offsetDelta||{};var r=t.prevDelta||{};var s=t.prevInput||{};if(i.eventType===W||s.eventType===B){r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0};e=t.offsetDelta={x:n.x,y:n.y}}i.deltaX=r.x+(n.x-e.x);i.deltaY=r.y+(n.y-e.y)}function ht(t,i){var n=t.lastInterval||i,e=i.timeStamp-n.timeStamp,s,a,o,h;if(i.eventType!=q&&(e>U||n.velocity===r)){var c=i.deltaX-n.deltaX;var f=i.deltaY-n.deltaY;var l=ft(e,c,f);a=l.x;o=l.y;s=u(l.x)>u(l.y)?l.x:l.y;h=lt(c,f);t.lastInterval=i}else{s=n.velocity;a=n.velocityX;o=n.velocityY;h=n.direction}i.velocity=s;i.velocityX=a;i.velocityY=o;i.direction=h}function ut(t){var i=[];var n=0;while(n<t.pointers.length){i[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)};n++}return{timeStamp:c(),pointers:i,center:ct(i),deltaX:t.deltaX,deltaY:t.deltaY}}function ct(t){var i=t.length;if(i===1){return{x:h(t[0].clientX),y:h(t[0].clientY)}}var n=0,e=0,r=0;while(r<i){n+=t[r].clientX;e+=t[r].clientY;r++}return{x:h(n/i),y:h(e/i)}}function ft(t,i,n){return{x:i/t||0,y:n/t||0}}function lt(t,i){if(t===i){return G}if(u(t)>=u(i)){return t<0?$:Z}return i<0?V:K}function vt(t,i,n){if(!n){n=it}var e=i[n[0]]-t[n[0]],r=i[n[1]]-t[n[1]];return Math.sqrt(e*e+r*r)}function dt(t,i,n){if(!n){n=it}var e=i[n[0]]-t[n[0]],r=i[n[1]]-t[n[1]];return Math.atan2(r,e)*180/Math.PI}function pt(t,i){return dt(i[1],i[0],nt)+dt(t[1],t[0],nt)}function mt(t,i){return vt(i[0],i[1],nt)/vt(t[0],t[1],nt)}var gt={mousedown:W,mousemove:H,mouseup:B};var wt="mousedown";var bt="mousemove mouseup";function xt(){this.evEl=wt;this.evWin=bt;this.pressed=false;et.apply(this,arguments)}w(xt,et,{handler:function t(i){var n=gt[i.type];if(n&W&&i.button===0){this.pressed=true}if(n&H&&i.which!==1){n=B}if(!this.pressed){return}if(n&B){this.pressed=false}this.callback(this.manager,n,{pointers:[i],changedPointers:[i],pointerType:Y,srcEvent:i})}});var yt={pointerdown:W,pointermove:H,pointerup:B,pointercancel:q,pointerout:q};var Tt={2:j,3:L,4:Y,5:F};var Et="pointerdown";var It="pointermove pointerup pointercancel";if(i.MSPointerEvent&&!i.PointerEvent){Et="MSPointerDown";It="MSPointerMove MSPointerUp MSPointerCancel"}function At(){this.evEl=Et;this.evWin=It;et.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}w(At,et,{handler:function t(i){var n=this.store;var e=false;var r=i.type.toLowerCase().replace("ms","");var s=yt[r];var a=Tt[i.pointerType]||i.pointerType;var o=a==j;var h=C(n,i.pointerId,"pointerId");if(s&W&&(i.button===0||o)){if(h<0){n.push(i);h=n.length-1}}else if(s&(B|q)){e=true}if(h<0){return}n[h]=i;this.callback(this.manager,s,{pointers:n,changedPointers:[i],pointerType:a,srcEvent:i});if(e){n.splice(h,1)}}});var Pt={touchstart:W,touchmove:H,touchend:B,touchcancel:q};var Ct="touchstart";var Dt="touchstart touchmove touchend touchcancel";function Mt(){this.evTarget=Ct;this.evWin=Dt;this.started=false;et.apply(this,arguments)}w(Mt,et,{handler:function t(i){var n=Pt[i.type];if(n===W){this.started=true}if(!this.started){return}var e=kt.call(this,i,n);if(n&(B|q)&&e[0].length-e[1].length===0){this.started=false}this.callback(this.manager,n,{pointers:e[0],changedPointers:e[1],pointerType:j,srcEvent:i})}});function kt(t,i){var n=D(t.touches);var e=D(t.changedTouches);if(i&(B|q)){n=M(n.concat(e),"identifier",true)}return[n,e]}var zt={touchstart:W,touchmove:H,touchend:B,touchcancel:q};var Ot="touchstart touchmove touchend touchcancel";function St(){this.evTarget=Ot;this.targetIds={};et.apply(this,arguments)}w(St,et,{handler:function t(i){var n=zt[i.type];var e=Nt.call(this,i,n);if(!e){return}this.callback(this.manager,n,{pointers:e[0],changedPointers:e[1],pointerType:j,srcEvent:i})}});function Nt(t,i){var n=D(t.touches);var e=this.targetIds;if(i&(W|H)&&n.length===1){e[n[0].identifier]=true;return[n,n]}var r,s,a=D(t.changedTouches),o=[],h=this.target;s=n.filter((function(t){return I(t.target,h)}));if(i===W){r=0;while(r<s.length){e[s[r].identifier]=true;r++}}r=0;while(r<a.length){if(e[a[r].identifier]){o.push(a[r])}if(i&(B|q)){delete e[a[r].identifier]}r++}if(!o.length){return}return[M(s.concat(o),"identifier",true),o]}var Rt=2500;var _t=25;function Xt(){et.apply(this,arguments);var t=b(this.handler,this);this.touch=new St(this.manager,t);this.mouse=new xt(this.manager,t);this.primaryTouch=null;this.lastTouches=[]}w(Xt,et,{handler:function t(i,n,e){var r=e.pointerType==j,s=e.pointerType==Y;if(s&&e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents){return}if(r){jt.call(this,n,e)}else if(s&&Yt.call(this,e)){return}this.callback(i,n,e)},destroy:function t(){this.touch.destroy();this.mouse.destroy()}});function jt(t,i){if(t&W){this.primaryTouch=i.changedPointers[0].identifier;Lt.call(this,i)}else if(t&(B|q)){Lt.call(this,i)}}function Lt(t){var i=t.changedPointers[0];if(i.identifier===this.primaryTouch){var n={x:i.clientX,y:i.clientY};this.lastTouches.push(n);var e=this.lastTouches;var r=function(){var t=e.indexOf(n);if(t>-1){e.splice(t,1)}};setTimeout(r,Rt)}}function Yt(t){var i=t.srcEvent.clientX,n=t.srcEvent.clientY;for(var e=0;e<this.lastTouches.length;e++){var r=this.lastTouches[e];var s=Math.abs(i-r.x),a=Math.abs(n-r.y);if(s<=_t&&a<=_t){return true}}return false}var Ft=k(a.style,"touchAction");var Ut=Ft!==r;var Wt="compute";var Ht="auto";var Bt="manipulation";var qt="none";var Gt="pan-x";var $t="pan-y";var Zt=Jt();function Vt(t,i){this.manager=t;this.set(i)}Vt.prototype={set:function(t){if(t==Wt){t=this.compute()}if(Ut&&this.manager.element.style&&Zt[t]){this.manager.element.style[Ft]=t}this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];v(this.manager.recognizers,(function(i){if(x(i.options.enable,[i])){t=t.concat(i.getTouchAction())}}));return Kt(t.join(" "))},preventDefaults:function(t){var i=t.srcEvent;var n=t.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var e=this.actions;var r=A(e,qt)&&!Zt[qt];var s=A(e,$t)&&!Zt[$t];var a=A(e,Gt)&&!Zt[Gt];if(r){var o=t.pointers.length===1;var h=t.distance<2;var u=t.deltaTime<250;if(o&&h&&u){return}}if(a&&s){return}if(r||s&&n&J||a&&n&Q){return this.preventSrc(i)}},preventSrc:function(t){this.manager.session.prevented=true;t.preventDefault()}};function Kt(t){if(A(t,qt)){return qt}var i=A(t,Gt);var n=A(t,$t);if(i&&n){return qt}if(i||n){return i?Gt:$t}if(A(t,Bt)){return Bt}return Ht}function Jt(){if(!Ut){return false}var t={};var n=i.CSS&&i.CSS.supports;["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(e){t[e]=n?i.CSS.supports("touch-action",e):true}));return t}var Qt=1;var ti=2;var ii=4;var ni=8;var ei=ni;var ri=16;var si=32;function ai(t){this.options=p({},this.defaults,t||{});this.id=O();this.manager=null;this.options.enable=y(this.options.enable,true);this.state=Qt;this.simultaneous={};this.requireFail=[]}ai.prototype={defaults:{},set:function(t){p(this.options,t);this.manager&&this.manager.touchAction.update();return this},recognizeWith:function(t){if(l(t,"recognizeWith",this)){return this}var i=this.simultaneous;t=ui(t,this);if(!i[t.id]){i[t.id]=t;t.recognizeWith(this)}return this},dropRecognizeWith:function(t){if(l(t,"dropRecognizeWith",this)){return this}t=ui(t,this);delete this.simultaneous[t.id];return this},requireFailure:function(t){if(l(t,"requireFailure",this)){return this}var i=this.requireFail;t=ui(t,this);if(C(i,t)===-1){i.push(t);t.requireFailure(this)}return this},dropRequireFailure:function(t){if(l(t,"dropRequireFailure",this)){return this}t=ui(t,this);var i=C(this.requireFail,t);if(i>-1){this.requireFail.splice(i,1)}return this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var i=this;var n=this.state;function e(n){i.manager.emit(n,t)}if(n<ni){e(i.options.event+oi(n))}e(i.options.event);if(t.additionalEvent){e(t.additionalEvent)}if(n>=ni){e(i.options.event+oi(n))}},tryEmit:function(t){if(this.canEmit()){return this.emit(t)}this.state=si},canEmit:function(){var t=0;while(t<this.requireFail.length){if(!(this.requireFail[t].state&(si|Qt))){return false}t++}return true},recognize:function(t){var i=p({},t);if(!x(this.options.enable,[this,i])){this.reset();this.state=si;return}if(this.state&(ei|ri|si)){this.state=Qt}this.state=this.process(i);if(this.state&(ti|ii|ni|ri)){this.tryEmit(i)}},process:function(t){},getTouchAction:function(){},reset:function(){}};function oi(t){if(t&ri){return"cancel"}else if(t&ni){return"end"}else if(t&ii){return"move"}else if(t&ti){return"start"}return""}function hi(t){if(t==K){return"down"}else if(t==V){return"up"}else if(t==$){return"left"}else if(t==Z){return"right"}return""}function ui(t,i){var n=i.manager;if(n){return n.get(t)}return t}function ci(){ai.apply(this,arguments)}w(ci,ai,{defaults:{pointers:1},attrTest:function(t){var i=this.options.pointers;return i===0||t.pointers.length===i},process:function(t){var i=this.state;var n=t.eventType;var e=i&(ti|ii);var r=this.attrTest(t);if(e&&(n&q||!r)){return i|ri}else if(e||r){if(n&B){return i|ni}else if(!(i&ti)){return ti}return i|ii}return si}});function fi(){ci.apply(this,arguments);this.pX=null;this.pY=null}w(fi,ci,{defaults:{event:"pan",threshold:10,pointers:1,direction:tt},getTouchAction:function(){var t=this.options.direction;var i=[];if(t&J){i.push($t)}if(t&Q){i.push(Gt)}return i},directionTest:function(t){var i=this.options;var n=true;var e=t.distance;var r=t.direction;var s=t.deltaX;var a=t.deltaY;if(!(r&i.direction)){if(i.direction&J){r=s===0?G:s<0?$:Z;n=s!=this.pX;e=Math.abs(t.deltaX)}else{r=a===0?G:a<0?V:K;n=a!=this.pY;e=Math.abs(t.deltaY)}}t.direction=r;return n&&e>i.threshold&&r&i.direction},attrTest:function(t){return ci.prototype.attrTest.call(this,t)&&(this.state&ti||!(this.state&ti)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX;this.pY=t.deltaY;var i=hi(t.direction);if(i){t.additionalEvent=this.options.event+i}this._super.emit.call(this,t)}});function li(){ci.apply(this,arguments)}w(li,ci,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&ti)},emit:function(t){if(t.scale!==1){var i=t.scale<1?"in":"out";t.additionalEvent=this.options.event+i}this._super.emit.call(this,t)}});function vi(){ai.apply(this,arguments);this._timer=null;this._input=null}w(vi,ai,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ht]},process:function(t){var i=this.options;var n=t.pointers.length===i.pointers;var e=t.distance<i.threshold;var r=t.deltaTime>i.time;this._input=t;if(!e||!n||t.eventType&(B|q)&&!r){this.reset()}else if(t.eventType&W){this.reset();this._timer=f((function(){this.state=ei;this.tryEmit()}),i.time,this)}else if(t.eventType&B){return ei}return si},reset:function(){clearTimeout(this._timer)},emit:function(t){if(this.state!==ei){return}if(t&&t.eventType&B){this.manager.emit(this.options.event+"up",t)}else{this._input.timeStamp=c();this.manager.emit(this.options.event,this._input)}}});function di(){ci.apply(this,arguments)}w(di,ci,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&ti)}});function pi(){ci.apply(this,arguments)}w(pi,ci,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:J|Q,pointers:1},getTouchAction:function(){return fi.prototype.getTouchAction.call(this)},attrTest:function(t){var i=this.options.direction;var n;if(i&(J|Q)){n=t.overallVelocity}else if(i&J){n=t.overallVelocityX}else if(i&Q){n=t.overallVelocityY}return this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&u(n)>this.options.velocity&&t.eventType&B},emit:function(t){var i=hi(t.offsetDirection);if(i){this.manager.emit(this.options.event+i,t)}this.manager.emit(this.options.event,t)}});function mi(){ai.apply(this,arguments);this.pTime=false;this.pCenter=false;this._timer=null;this._input=null;this.count=0}w(mi,ai,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Bt]},process:function(t){var i=this.options;var n=t.pointers.length===i.pointers;var e=t.distance<i.threshold;var r=t.deltaTime<i.time;this.reset();if(t.eventType&W&&this.count===0){return this.failTimeout()}if(e&&r&&n){if(t.eventType!=B){return this.failTimeout()}var s=this.pTime?t.timeStamp-this.pTime<i.interval:true;var a=!this.pCenter||vt(this.pCenter,t.center)<i.posThreshold;this.pTime=t.timeStamp;this.pCenter=t.center;if(!a||!s){this.count=1}else{this.count+=1}this._input=t;var o=this.count%i.taps;if(o===0){if(!this.hasRequireFailures()){return ei}else{this._timer=f((function(){this.state=ei;this.tryEmit()}),i.interval,this);return ti}}}return si},failTimeout:function(){this._timer=f((function(){this.state=si}),this.options.interval,this);return si},reset:function(){clearTimeout(this._timer)},emit:function(){if(this.state==ei){this._input.tapCount=this.count;this.manager.emit(this.options.event,this._input)}}});function gi(t,i){i=i||{};i.recognizers=y(i.recognizers,gi.defaults.preset);return new xi(t,i)}gi.VERSION="2.0.7";gi.defaults={domEvents:false,touchAction:Wt,enable:true,inputTarget:null,inputClass:null,preset:[[di,{enable:false}],[li,{enable:false},["rotate"]],[pi,{direction:J}],[fi,{direction:J},["swipe"]],[mi],[mi,{event:"doubletap",taps:2},["tap"]],[vi]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var wi=1;var bi=2;function xi(t,i){this.options=p({},gi.defaults,i||{});this.options.inputTarget=this.options.inputTarget||t;this.handlers={};this.session={};this.recognizers=[];this.oldCssProps={};this.element=t;this.input=rt(this);this.touchAction=new Vt(this,this.options.touchAction);yi(this,true);v(this.options.recognizers,(function(t){var i=this.add(new t[0](t[1]));t[2]&&i.recognizeWith(t[2]);t[3]&&i.requireFailure(t[3])}),this)}xi.prototype={set:function(t){p(this.options,t);if(t.touchAction){this.touchAction.update()}if(t.inputTarget){this.input.destroy();this.input.target=t.inputTarget;this.input.init()}return this},stop:function(t){this.session.stopped=t?bi:wi},recognize:function(t){var i=this.session;if(i.stopped){return}this.touchAction.preventDefaults(t);var n;var e=this.recognizers;var r=i.curRecognizer;if(!r||r&&r.state&ei){r=i.curRecognizer=null}var s=0;while(s<e.length){n=e[s];if(i.stopped!==bi&&(!r||n==r||n.canRecognizeWith(r))){n.recognize(t)}else{n.reset()}if(!r&&n.state&(ti|ii|ni)){r=i.curRecognizer=n}s++}},get:function(t){if(t instanceof ai){return t}var i=this.recognizers;for(var n=0;n<i.length;n++){if(i[n].options.event==t){return i[n]}}return null},add:function(t){if(l(t,"add",this)){return this}var i=this.get(t.options.event);if(i){this.remove(i)}this.recognizers.push(t);t.manager=this;this.touchAction.update();return t},remove:function(t){if(l(t,"remove",this)){return this}t=this.get(t);if(t){var i=this.recognizers;var n=C(i,t);if(n!==-1){i.splice(n,1);this.touchAction.update()}}return this},on:function(t,i){if(t===r){return}if(i===r){return}var n=this.handlers;v(P(t),(function(t){n[t]=n[t]||[];n[t].push(i)}));return this},off:function(t,i){if(t===r){return}var n=this.handlers;v(P(t),(function(t){if(!i){delete n[t]}else{n[t]&&n[t].splice(C(n[t],i),1)}}));return this},emit:function(t,i){if(this.options.domEvents){Ti(t,i)}var n=this.handlers[t]&&this.handlers[t].slice();if(!n||!n.length){return}i.type=t;i.preventDefault=function(){i.srcEvent.preventDefault()};var e=0;while(e<n.length){n[e](i);e++}},destroy:function(){this.element&&yi(this,false);this.handlers={};this.session={};this.input.destroy();this.element=null}};function yi(t,i){var n=t.element;if(!n.style){return}var e;v(t.options.cssProps,(function(r,s){e=k(n.style,s);if(i){t.oldCssProps[e]=n.style[e];n.style[e]=r}else{n.style[e]=t.oldCssProps[e]||""}}));if(!i){t.oldCssProps={}}}function Ti(t,i){var e=n.createEvent("Event");e.initEvent(t,true,true);e.gesture=i;i.target.dispatchEvent(e)}p(gi,{INPUT_START:W,INPUT_MOVE:H,INPUT_END:B,INPUT_CANCEL:q,STATE_POSSIBLE:Qt,STATE_BEGAN:ti,STATE_CHANGED:ii,STATE_ENDED:ni,STATE_RECOGNIZED:ei,STATE_CANCELLED:ri,STATE_FAILED:si,DIRECTION_NONE:G,DIRECTION_LEFT:$,DIRECTION_RIGHT:Z,DIRECTION_UP:V,DIRECTION_DOWN:K,DIRECTION_HORIZONTAL:J,DIRECTION_VERTICAL:Q,DIRECTION_ALL:tt,Manager:xi,Input:et,TouchAction:Vt,TouchInput:St,MouseInput:xt,PointerEventInput:At,TouchMouseInput:Xt,SingleTouchInput:Mt,Recognizer:ai,AttrRecognizer:ci,Tap:mi,Pan:fi,Swipe:pi,Pinch:li,Rotate:di,Press:vi,on:T,off:E,each:v,merge:g,extend:m,assign:p,inherit:w,bindFn:b,prefixed:k});var Ei=typeof i!=="undefined"?i:typeof self!=="undefined"?self:{};Ei.Hammer=gi;if(typeof r==="function"&&r.amd){r((function(){return gi}))}else if(t.exports){t.exports=gi}else{i[e]=gi}})(window,document,"Hammer")})(o);const h=o.exports;const u=":host{display:inline-block;width:100vw;min-width:200px;--percentuale:0}: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}@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%)}}:host>#external-container{display:flex;min-height:52px;box-sizing:border-box;align-items:center;justify-content:space-between;padding:calc(var(--space-unit) * 1) calc(var(--space-unit) * 2);border-radius:4px;box-shadow:var(--shadow-3);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-rg);letter-spacing:0.16px}:host>#external-container.mobile-wrapped>#icon{align-self:flex-start}:host>#external-container.several-lines-padding{padding:calc(var(--space-unit) * 2)}:host>#external-container>#flex-container{display:flex;width:100%;flex-wrap:wrap;align-items:center;justify-content:space-between}:host>#external-container #text{margin-right:calc(var(--space-unit) * 2);color:var(--color-white);letter-spacing:0.16px;line-height:20px;text-align:left}:host>#external-container #text>.title{margin-right:4px;font-weight:600}:host>#external-container.mobile-wrapped #button ::slotted(z-button){margin-top:calc(var(--space-unit) * 2)}:host>#external-container #icon{margin-left:calc(var(--space-unit) * 2);cursor:pointer;fill:var(--color-white)}z-icon{display:inline-block;vertical-align:0}z-icon:focus{padding:calc(var(--space-unit) / 4);border-radius:50%;box-shadow:var(--shadow-focus-primary);outline:none !important}:host>#external-container.dark{background:var(--gray800)}:host>#external-container.light{background:var(--color-background)}:host>#external-container.light #icon,:host>#external-container.warning #text,:host>#external-container.warning #icon{fill:var(--color-primary01-icon)}:host>#external-container.light #text,:host>#external-container.warning #text{color:var(--gray800)}:host>#external-container.accent{background:var(--color-primary01)}:host>#external-container.error{background:var(--color-error-default)}:host>#external-container.success{background:var(--color-success-default)}:host>#external-container.warning{background:var(--color-warning-default)}@media only screen and (min-width: 768px){:host{width:unset;max-width:50vw}:host>#external-container>#flex-container{flex-wrap:nowrap}:host>#external-container #text{width:100%}}@media only screen and (min-width: 1366px){:host{width:unset;max-width:33vw}}";const c=u;const f=class{constructor(n){t(this,n);this.toastClose=i(this,"toastClose",7);this.isCloseEventCalled=false;this.heading=undefined;this.message=undefined;this.closebutton=undefined;this.autoclose=undefined;this.pauseonfocusloss=true;this.type=undefined;this.isdraggable=true;this.draggablepercentage=80;this.transition=undefined;this.percentage=undefined}watchPropIsdraggable(t){if(t){this.sliderManager.get("pan").set({enable:true})}else{this.sliderManager.get("pan").set({enable:false})}}watchPropAutoclose(t){clearTimeout(this.timeoutHandle);this.startClosingTimeout(t)}watchPropPauseonfocusloss(t){if(this.autoclose){if(t){document.addEventListener("visibilitychange",this.visibilityChangeEventHandler)}else{document.removeEventListener("visibilitychange",this.visibilityChangeEventHandler)}}}emitToastClose(t){this.timeoutHandle=null;this.elapsedTime=null;this.hostElement.classList.add(t);this.toastClose.emit()}componentWillLoad(){this.isMobile=window.innerWidth<=a.MOBILE;this.validateAutoclose();this.percentage=0}componentDidLoad(){this.isTextLong=this.detectWrap()||this.toastText.offsetHeight>20;this.startTime=Date.now();if(this.autoclose&&this.pauseonfocusloss){document.addEventListener("visibilitychange",this.visibilityChangeEventHandler)}this.isdraggable&&this.handleSlideOutDragAnimation()}visibilityChangeEventHandler(){if(document.visibilityState==="hidden"){this.timeoutHandle&&this.onBlur()}else{this.elapsedTime&&this.onFocus()}}validateAutoclose(){if(!this.autoclose&&!this.closebutton){console.error("At least one between autoclose and closebutton must be present")}}mapSlideOutClass(){switch(this.transition){case s.SLIDE_IN_DOWN:return s.SLIDE_OUT_UP;case s.SLIDE_IN_UP:return s.SLIDE_OUT_DOWN;case s.SLIDE_IN_LEFT:return s.SLIDE_OUT_RIGHT;case s.SLIDE_IN_RIGHT:return s.SLIDE_OUT_LEFT}}calculateDraggedPercentage(t){const i=this.hostElement.getBoundingClientRect();return Math.round(100*t.deltaX/i.width)}handleSlideOutDragAnimation(){this.sliderManager=new h(this.hostElement);this.sliderManager.get("pan").set({direction:h.DIRECTION_HORIZONTAL});this.sliderManager.on("pan",(t=>{this.percentage=this.calculateDraggedPercentage(t);this.hostElement.style.transition="none";this.hostElement.classList.remove(this.transition);const i={translate:`translateX(${this.percentage}%)`,translateBack:"translateX(0)"};this.hostElement.style.opacity=`${100-Math.abs(this.percentage)}%`;if(t.eventType===h.DIRECTION_LEFT||t.eventType===h.DIRECTION_RIGHT){this.hostElement.style.transform=i.translate;if(Math.abs(this.percentage)>this.draggablepercentage&&!this.isCloseEventCalled){this.isCloseEventCalled=true;this.emitToastClose(t.direction===h.DIRECTION_LEFT?"slide-out-left":"slide-out-right")}}if(t.isFinal&&Math.abs(this.percentage)<this.draggablepercentage){this.hostElement.style.transform=i.translateBack;this.hostElement.style.transition="all 1s";this.hostElement.style.opacity="100%";this.percentage=0}}))}onFocus(){let t=this.autoclose;if(this.elapsedTime){t=this.autoclose-this.elapsedTime}if(t>0){this.startClosingTimeout(t)}}onBlur(){this.elapsedTime=Date.now()-this.startTime;clearTimeout(this.timeoutHandle)}startClosingTimeout(t){this.timeoutHandle=window.setTimeout((()=>this.emitToastClose(this.mapSlideOutClass())),t)}detectWrap(){const t=this.container.offsetWidth;const i=this.container.children;let n=0;for(let t=0;t<i.length;t++){n+=i[t].offsetWidth}return n>t}renderText(){return n("div",{id:"text",ref:t=>this.toastText=t},n("span",{class:"title"},this.heading),n("span",{class:"message"},this.message))}renderButton(){return n("div",{id:"button"},n("slot",{name:"button"}))}renderCloseIcon(){if(!this.closebutton){return}return n("div",{id:"icon"},n("z-icon",{tabIndex:0,name:"multiply-circled",width:15,height:15,onClick:()=>this.emitToastClose(this.mapSlideOutClass()),onKeyPress:t=>{if(t.keyCode==32||t.keyCode==13){t.preventDefault();this.emitToastClose(this.mapSlideOutClass())}}}))}renderContainer(){return n("div",{tabIndex:0,id:"external-container",class:{[this.type]:!!this.type,"several-lines-padding":this.isTextLong},ref:t=>this.container=t},this.renderText(),this.renderButton(),this.renderCloseIcon())}renderMobileContainer(){return n("div",{id:"external-container",class:{[this.type]:!!this.type,"several-lines-padding":this.isTextLong,"mobile-wrapped":this.isTextLong}},n("div",{id:"flex-container",ref:t=>this.container=t},this.renderText(),this.renderButton()),this.renderCloseIcon())}render(){return n(e,{key:"7c37f56b51dc4e57f1ef68dcb33d92a7b312797e",style:{"--percentuale":`${this.percentage}%`},class:this.transition?this.transition:s.SLIDE_IN_DOWN,onAnimationEnd:t=>{if(this.autoclose&&t.animationName.includes("slidein")){this.startClosingTimeout(this.autoclose)}if(t.animationName.includes("slideout")){this.hostElement.parentNode.removeChild(this.hostElement)}}},this.isMobile?this.renderMobileContainer():this.renderContainer())}get hostElement(){return r(this)}static get watchers(){return{isdraggable:["watchPropIsdraggable"],autoclose:["watchPropAutoclose"],pauseonfocusloss:["watchPropPauseonfocusloss"]}}};f.style=c;export{f as z_toast_notification};
7
+ //# sourceMappingURL=p-56f76e8b.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as i,c as t,h as s}from"./p-75c4a726.js";import{d as a}from"./p-90908f36.js";import"./p-1c24255c.js";import"./p-5145a606.js";const e=":host li{all:unset;all:reset;width:100%;line-height:14px;list-style-type:none}:host li>span{display:flex;padding:calc(var(--space-unit) * 2) 0;color:var(--color-default-text);fill:var(--color-default-icon);font-family:var(--font-family-sans);font-size:16px;font-weight:var(--font-rg);letter-spacing:0.23px;line-height:14px}:host(.small) li>span{padding:calc(var(--space-unit) * 1.5) 0;font-size:var(--font-size-2)}:host(.x-small) li>span{padding:var(--space-unit) 0;font-size:var(--font-size-2)}:host(.small) li>span>z-icon,:host(.x-small) li>span>z-icon{--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:calc(var(--space-unit) * 0.5);padding:0}:host li>span.border{border-bottom:2px solid var(--color-surface03)}:host li span:hover,a:hover{color:var(--color-primary01);fill:var(--color-primary01)}a,a:visited,a:active{color:inherit;fill:inherit;text-decoration:none}:host li span z-icon{width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);padding:0 calc(var(--space-unit) * 1.5) 0 0;background-repeat:no-repeat;background-size:contain;color:var(--color-primary01);fill:var(--color-primary01)}";const n=e;const o=class{emitZListItemLinkClick(i,t){this.zListItemLinkClick.emit({e:i,linkId:t})}emitZListItemClick(i,t){this.zListItemClick.emit({e:i,listitemid:t})}constructor(s){i(this,s);this.zListItemLinkClick=t(this,"zListItemLinkClick",7);this.zListItemClick=t(this,"zListItemClick",7);this.text=undefined;this.link=undefined;this.linktarget="_self";this.icon=undefined;this.listitemid=undefined;this.action=undefined;this.underlined=true;this.emitZListItemLinkClick=this.emitZListItemLinkClick.bind(this);this.emitZListItemClick=this.emitZListItemClick.bind(this)}render(){const i=this.listitemid?`link_${this.listitemid}`:"";return s("li",{key:"724946d19b711854f81ba9ea9aa30e931c35ac3b",role:"button",id:this.listitemid,"data-action":this.action,onClick:i=>this.emitZListItemClick(i,this.listitemid),onKeyPress:i=>a(i,this.emitZListItemClick,this.listitemid)},s("span",{key:"f10d3d95d9e36acb282c7d17beb5af69aa71bb4c",class:this.underlined&&"border"},this.icon&&s("z-icon",{key:"4aee715f8daab185a502e446cdfc1c3e51e549b9",name:this.icon}),this.link?s("a",{href:this.link?this.link:null,target:this.linktarget,id:i,onClick:t=>this.emitZListItemLinkClick(t,i),onKeyPress:t=>a(t,this.emitZListItemLinkClick,i),role:this.link?"link":"button",tabindex:"0"},this.text):s("span",{innerHTML:this.text}),s("slot",{key:"8347ee62c05d2262ea4df2efb8cbef29254b0759"})))}};o.style=n;export{o as z_myz_list_item};
2
- //# sourceMappingURL=p-f7ef289b.entry.js.map
1
+ import{r as i,c as t,h as s}from"./p-75c4a726.js";import{d as a}from"./p-10607a39.js";import"./p-b34993de.js";import"./p-5145a606.js";const e=":host li{all:unset;all:reset;width:100%;line-height:14px;list-style-type:none}:host li>span{display:flex;padding:calc(var(--space-unit) * 2) 0;color:var(--color-default-text);fill:var(--color-default-icon);font-family:var(--font-family-sans);font-size:16px;font-weight:var(--font-rg);letter-spacing:0.23px;line-height:14px}:host(.small) li>span{padding:calc(var(--space-unit) * 1.5) 0;font-size:var(--font-size-2)}:host(.x-small) li>span{padding:var(--space-unit) 0;font-size:var(--font-size-2)}:host(.small) li>span>z-icon,:host(.x-small) li>span>z-icon{--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:calc(var(--space-unit) * 0.5);padding:0}:host li>span.border{border-bottom:2px solid var(--color-surface03)}:host li span:hover,a:hover{color:var(--color-primary01);fill:var(--color-primary01)}a,a:visited,a:active{color:inherit;fill:inherit;text-decoration:none}:host li span z-icon{width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);padding:0 calc(var(--space-unit) * 1.5) 0 0;background-repeat:no-repeat;background-size:contain;color:var(--color-primary01);fill:var(--color-primary01)}";const n=e;const o=class{emitZListItemLinkClick(i,t){this.zListItemLinkClick.emit({e:i,linkId:t})}emitZListItemClick(i,t){this.zListItemClick.emit({e:i,listitemid:t})}constructor(s){i(this,s);this.zListItemLinkClick=t(this,"zListItemLinkClick",7);this.zListItemClick=t(this,"zListItemClick",7);this.text=undefined;this.link=undefined;this.linktarget="_self";this.icon=undefined;this.listitemid=undefined;this.action=undefined;this.underlined=true;this.emitZListItemLinkClick=this.emitZListItemLinkClick.bind(this);this.emitZListItemClick=this.emitZListItemClick.bind(this)}render(){const i=this.listitemid?`link_${this.listitemid}`:"";return s("li",{key:"4bdbf59c4418b4a7ab715910f38585dfe0d5ea87",role:"button",id:this.listitemid,"data-action":this.action,onClick:i=>this.emitZListItemClick(i,this.listitemid),onKeyPress:i=>a(i,this.emitZListItemClick,this.listitemid)},s("span",{key:"105019bbc75ce2ba77763bfdafa1784b6d9f429f",class:this.underlined&&"border"},this.icon&&s("z-icon",{key:"3775492f7287a0ed23129117c55c9a0f10610a79",name:this.icon}),this.link?s("a",{href:this.link?this.link:null,target:this.linktarget,id:i,onClick:t=>this.emitZListItemLinkClick(t,i),onKeyPress:t=>a(t,this.emitZListItemLinkClick,i),role:this.link?"link":"button",tabindex:"0"},this.text):s("span",{innerHTML:this.text}),s("slot",{key:"52f717b5edc5a4f213e5e369b5e3db4a235e5cf0"})))}};o.style=n;export{o as z_myz_list_item};
2
+ //# sourceMappingURL=p-57a479e2.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,h as e,g as i}from"./p-75c4a726.js";import{p as r}from"./p-1c24255c.js";import{i as s,g as o,d as n}from"./p-90908f36.js";import"./p-5145a606.js";const a=':host{display:block;width:inherit;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{display:flex;width:inherit;flex-direction:column}main{position:relative;overflow:hidden;width:100%}main z-icon.scroll{position:absolute;z-index:10;top:50%;width:auto;margin:0 var(--space-unit);cursor:pointer;fill:var(--color-primary01);transition:0.6s ease}main .scroll.disabled{opacity:0.5;pointer-events:none}main .scroll.right{right:0}#slides{display:flex;flex-wrap:wrap;line-height:0px;overflow-y:hidden;transition:all 300ms}footer{display:grid;width:100%;height:56px;align-items:center;border-top:var(--border-size-medium) solid var(--color-surface02);grid-template:2 / 2;grid-template-areas:"center center" "left right"}footer>div{width:100%;align-items:center}footer .footer-center{grid-area:center}footer .footer-left{grid-area:left}footer .footer-right{grid-area:right}footer .bullet-container{display:flex;min-height:60px;align-items:center;justify-content:center;margin:0 auto}footer .bullet-container .bullet{width:8px;height:8px;margin:var(--space-unit) 2px;background-color:var(--gray200);border-radius:50%;pointer-events:none}footer .bullet-container .bullet.selected{background-color:var(--gray400)}main z-icon:focus,footer .bullet-container .bullet:focus{border-radius:50%;box-shadow:var(--shadow-focus-primary);outline:none !important}@media only screen and (min-width: 768px){footer{height:76px;border-top:var(--border-size-medium) solid var(--color-surface02);grid-template:1 / 1fr 2fr 1fr;grid-template-areas:"left center right"}footer .bullet-container .bullet{width:10px;height:10px;margin:var(--space-unit) 3px}}@media only screen and (min-width: 1025px){main z-icon.scroll{margin:0 10px}footer .bullet-container .bullet{width:16px;height:16px;margin:var(--space-unit) calc(var(--space-unit) * 0.5);cursor:pointer;pointer-events:auto}}';const l=a;function d(t){return Array.isArray(t)&&t.every((t=>typeof t==="string"))}const h=class{constructor(e){t(this,e);this.slideshowid=undefined;this.data=undefined;this.device=undefined;this.currentSlide=0}watchData(){this.parseLinks()}componentWillLoad(){this.parseLinks();this.setDevice();window.addEventListener("resize",this.handleResize.bind(this))}componentDidRender(){this.setStyle()}handleResize(){this.setDevice();this.setStyle()}parseLinks(){var t;switch(typeof this.data){case"string":{const e=(t=s(this.data))!==null&&t!==void 0?t:[];if(!d(e)){throw new Error("Passed data is invalid")}this.links=e;break}default:this.links=this.data;break}}setStyle(){const t=this.el.shadowRoot.querySelector("#slides");if(!t){return}const e=this.el.shadowRoot.querySelectorAll(".slide");const i=this.el.offsetWidth;const r=i*this.links.length;t.style.width=`${r}px`;t.style.transform=`translate(-${i*this.currentSlide}px)`;e.forEach((t=>{const e=t.querySelector("img");e.style.width=`${i}px`}))}setDevice(){this.device=o()}setCurrentSlide(t){this.currentSlide=t}getBulletDimension(){switch(this.device){case r.MOBILE:return 24;case r.TABLET:return 32;default:return 40}}renderSlides(t){return e("div",{id:"slides"},t.map(((t,i)=>e("div",{id:"slide"+i,class:`slide ${this.currentSlide!==i&&"hide"}`},e("img",{src:t})))))}renderScroll(t){let i=false,r=this.currentSlide;if(t==="left"){i=this.currentSlide===0;r--}else if(t==="right"){i=this.currentSlide===this.links.length-1;r++}return e("z-icon",{class:`scroll ${t} ${i&&"disabled"}`,width:this.getBulletDimension(),height:this.getBulletDimension(),name:`chevron-${t}-circle`,onClick:()=>{!i&&this.setCurrentSlide(r)},onKeyUp:t=>!i&&n(t,(()=>{this.setCurrentSlide(r)})),tabindex:0,role:"button"})}renderSlideshowMain(){return e("main",null,this.renderScroll("left"),this.renderSlides(this.links),this.renderScroll("right"))}renderBullet(t){return e("a",{class:`bullet ${this.currentSlide===t&&"selected"}`,onClick:()=>this.setCurrentSlide(t),onKeyUp:e=>n(e,(()=>this.setCurrentSlide(t))),tabindex:0,role:"button"})}renderSlideshowFooter(){return e("footer",null,e("div",{class:"footer-left"},e("slot",{name:"footer-left"})),e("div",{class:"footer-center"},e("div",{class:"bullet-container"},Object.keys(this.links).map((t=>this.renderBullet(parseInt(t)))))),e("div",{class:"footer-right"},e("slot",{name:"footer-right"})))}render(){if(!this.links||!this.links.length){return e("div",null)}return e("div",{id:this.slideshowid},this.renderSlideshowMain(),this.renderSlideshowFooter())}get el(){return i(this)}static get watchers(){return{data:["watchData"]}}};h.style=l;export{h as z_slideshow};
2
- //# sourceMappingURL=p-be2405e2.entry.js.map
1
+ import{r as t,h as e,g as i}from"./p-75c4a726.js";import{p as r}from"./p-b34993de.js";import{i as s,g as o,d as n}from"./p-10607a39.js";import"./p-5145a606.js";const a=':host{display:block;width:inherit;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{display:flex;width:inherit;flex-direction:column}main{position:relative;overflow:hidden;width:100%}main z-icon.scroll{position:absolute;z-index:10;top:50%;width:auto;margin:0 var(--space-unit);cursor:pointer;fill:var(--color-primary01);transition:0.6s ease}main .scroll.disabled{opacity:0.5;pointer-events:none}main .scroll.right{right:0}#slides{display:flex;flex-wrap:wrap;line-height:0px;overflow-y:hidden;transition:all 300ms}footer{display:grid;width:100%;height:56px;align-items:center;border-top:var(--border-size-medium) solid var(--color-surface02);grid-template:2 / 2;grid-template-areas:"center center" "left right"}footer>div{width:100%;align-items:center}footer .footer-center{grid-area:center}footer .footer-left{grid-area:left}footer .footer-right{grid-area:right}footer .bullet-container{display:flex;min-height:60px;align-items:center;justify-content:center;margin:0 auto}footer .bullet-container .bullet{width:8px;height:8px;margin:var(--space-unit) 2px;background-color:var(--gray200);border-radius:50%;pointer-events:none}footer .bullet-container .bullet.selected{background-color:var(--gray400)}main z-icon:focus,footer .bullet-container .bullet:focus{border-radius:50%;box-shadow:var(--shadow-focus-primary);outline:none !important}@media only screen and (min-width: 768px){footer{height:76px;border-top:var(--border-size-medium) solid var(--color-surface02);grid-template:1 / 1fr 2fr 1fr;grid-template-areas:"left center right"}footer .bullet-container .bullet{width:10px;height:10px;margin:var(--space-unit) 3px}}@media only screen and (min-width: 1025px){main z-icon.scroll{margin:0 10px}footer .bullet-container .bullet{width:16px;height:16px;margin:var(--space-unit) calc(var(--space-unit) * 0.5);cursor:pointer;pointer-events:auto}}';const l=a;function d(t){return Array.isArray(t)&&t.every((t=>typeof t==="string"))}const h=class{constructor(e){t(this,e);this.slideshowid=undefined;this.data=undefined;this.device=undefined;this.currentSlide=0}watchData(){this.parseLinks()}componentWillLoad(){this.parseLinks();this.setDevice();window.addEventListener("resize",this.handleResize.bind(this))}componentDidRender(){this.setStyle()}handleResize(){this.setDevice();this.setStyle()}parseLinks(){var t;switch(typeof this.data){case"string":{const e=(t=s(this.data))!==null&&t!==void 0?t:[];if(!d(e)){throw new Error("Passed data is invalid")}this.links=e;break}default:this.links=this.data;break}}setStyle(){const t=this.el.shadowRoot.querySelector("#slides");if(!t){return}const e=this.el.shadowRoot.querySelectorAll(".slide");const i=this.el.offsetWidth;const r=i*this.links.length;t.style.width=`${r}px`;t.style.transform=`translate(-${i*this.currentSlide}px)`;e.forEach((t=>{const e=t.querySelector("img");e.style.width=`${i}px`}))}setDevice(){this.device=o()}setCurrentSlide(t){this.currentSlide=t}getBulletDimension(){switch(this.device){case r.MOBILE:return 24;case r.TABLET:return 32;default:return 40}}renderSlides(t){return e("div",{id:"slides"},t.map(((t,i)=>e("div",{id:"slide"+i,class:`slide ${this.currentSlide!==i&&"hide"}`},e("img",{src:t})))))}renderScroll(t){let i=false,r=this.currentSlide;if(t==="left"){i=this.currentSlide===0;r--}else if(t==="right"){i=this.currentSlide===this.links.length-1;r++}return e("z-icon",{class:`scroll ${t} ${i&&"disabled"}`,width:this.getBulletDimension(),height:this.getBulletDimension(),name:`chevron-${t}-circle`,onClick:()=>{!i&&this.setCurrentSlide(r)},onKeyUp:t=>!i&&n(t,(()=>{this.setCurrentSlide(r)})),tabindex:0,role:"button"})}renderSlideshowMain(){return e("main",null,this.renderScroll("left"),this.renderSlides(this.links),this.renderScroll("right"))}renderBullet(t){return e("a",{class:`bullet ${this.currentSlide===t&&"selected"}`,onClick:()=>this.setCurrentSlide(t),onKeyUp:e=>n(e,(()=>this.setCurrentSlide(t))),tabindex:0,role:"button"})}renderSlideshowFooter(){return e("footer",null,e("div",{class:"footer-left"},e("slot",{name:"footer-left"})),e("div",{class:"footer-center"},e("div",{class:"bullet-container"},Object.keys(this.links).map((t=>this.renderBullet(parseInt(t)))))),e("div",{class:"footer-right"},e("slot",{name:"footer-right"})))}render(){if(!this.links||!this.links.length){return e("div",null)}return e("div",{id:this.slideshowid},this.renderSlideshowMain(),this.renderSlideshowFooter())}get el(){return i(this)}static get watchers(){return{data:["watchData"]}}};h.style=l;export{h as z_slideshow};
2
+ //# sourceMappingURL=p-5b677d6c.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as i,h as a,a as n,g as e}from"./p-75c4a726.js";import{N as o,a as s,b as r}from"./p-1c24255c.js";const l='z-navigation-tabs{position:relative;z-index:0;display:flex;overflow:hidden;flex-direction:row;font-family:var(--font-family-sans);font-weight:var(--font-rg)}z-navigation-tabs,z-navigation-tabs *{box-sizing:border-box}z-navigation-tabs>nav::-webkit-scrollbar{display:none}z-navigation-tabs .navigation-button{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;padding:0;border:none;margin:0;background-color:var(--z-navigation-tabs-nav-buttons-bg, var(--color-surface01));border-radius:var(--border-no-radius);box-shadow:0 0 4px 1px var(--shadow-color-base);cursor:pointer;fill:var(--z-navigation-tabs-nav-buttons-fg, var(--color-primary01));outline:none}z-navigation-tabs .navigation-button:disabled{display:none}z-navigation-tabs>nav{z-index:0;display:flex;overflow:auto;align-items:center;justify-content:flex-start;scroll-behavior:smooth;scrollbar-width:none}z-navigation-tabs[orientation="horizontal"]>nav{width:100%}z-navigation-tabs[orientation="horizontal"] .navigation-button{top:0;width:calc(var(--space-unit) * 4);height:100%}z-navigation-tabs[orientation="horizontal"] .navigation-button:first-child{left:0}z-navigation-tabs[orientation="horizontal"] .navigation-button:last-child{right:0}z-navigation-tabs[orientation="vertical"]{width:fit-content;flex-direction:column}z-navigation-tabs[orientation="vertical"]>nav{height:100%;flex-direction:column;align-items:stretch}z-navigation-tabs[orientation="vertical"] .navigation-button{left:0;width:100%;height:calc(var(--space-unit) * 4)}z-navigation-tabs[orientation="vertical"] .navigation-button:first-child{top:0}z-navigation-tabs[orientation="vertical"] .navigation-button:last-child{bottom:0}z-navigation-tabs[size="small"][orientation="vertical"] .navigation-button{height:calc(var(--space-unit) * 4)}z-navigation-tabs>nav>*{position:relative;z-index:0;display:inline-flex;width:auto;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);border:none;margin:0;background-color:unset;border-radius:var(--border-no-radius);color:var(--color-primary01);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:inherit;gap:var(--space-unit);letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tabs>nav>a{text-decoration:none}z-navigation-tabs>nav>*:focus:focus-visible{z-index:1;box-shadow:inset 0 0 4px 3px var(--blue800)}z-navigation-tabs>nav>:not([disabled]):hover{background-color:var(--color-surface02)}z-navigation-tabs>nav>button[disabled]{color:var(--color-disabled03);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tabs>nav>:not([disabled]):hover,nav>[aria-selected="true"]{color:var(--color-hover-secondary);fill:currentcolor}z-navigation-tabs>nav>:not([disabled]):hover::after,nav>[aria-selected="true"]::after{position:absolute;background-color:var(--color-hover-secondary);content:""}z-navigation-tabs[orientation="horizontal"]>nav>:not([disabled]):hover::after,z-navigation-tabs[orientation="horizontal"]>nav>[aria-selected="true"]::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tabs>nav>* z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tabs[size="small"][orientation="horizontal"]>nav>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tabs[size="small"][orientation="horizontal"]>nav>:not([disabled]):hover::after,z-navigation-tabs[size="small"][orientation="horizontal"]>nav>[aria-selected="true"]::after{height:var(--border-size-medium)}z-navigation-tabs[size="small"]:not([orientation="vertical"])>nav>* z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tabs[orientation="vertical"]>nav>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tabs[orientation="vertical"]>nav>*>:not(z-icon){display:none}z-navigation-tabs[orientation="vertical"]>nav>:not([disabled]):hover::after,z-navigation-tabs[orientation="vertical"]>nav>[aria-selected="true"]::after{top:0;right:0;width:var(--border-size-large);height:100%}';const h=l;const c=class{constructor(a){t(this,a);this.selected=i(this,"selected",7);this.focusedTab=undefined;this.ariaLabel="";this.orientation=o.HORIZONTAL;this.size=s.BIG;this.selectedTab=undefined;this.canNavigate=undefined;this.canNavigatePrev=undefined;this.canNavigateNext=undefined}get direction(){return this.orientation==o.HORIZONTAL?"Left":"Top"}get dimension(){return this.orientation==o.HORIZONTAL?"Width":"Height"}get tabs(){return Array.from(this.nav.children)}scrollToTab(t){const i=this.orientation===o.HORIZONTAL?{block:"nearest",inline:"center"}:{block:"center",inline:"nearest"};t.scrollIntoView(Object.assign({behavior:"smooth"},i))}navigateBackwards(){this.nav.scrollBy({[this.direction.toLowerCase()]:0-this.nav[`client${this.dimension}`]/2,behavior:"smooth"})}navigateForward(){this.nav.scrollBy({[this.direction.toLowerCase()]:this.nav[`scroll${this.direction}`]+this.nav[`client${this.dimension}`]/2,behavior:"smooth"})}isArrowNavigation(t){return Object.values(r).includes(t.key)}checkScrollVisible(){if(!this.nav){return}this.canNavigate=this.nav[`scroll${this.dimension}`]>this.nav[`client${this.dimension}`]}checkScrollEnabled(){if(!this.nav){return}this.canNavigateNext=this.nav[`scroll${this.direction}`]+this.nav[`client${this.dimension}`]<this.nav[`scroll${this.dimension}`];this.canNavigatePrev=this.nav[`scroll${this.direction}`]>0}onTabSelected(){this.tabs.forEach(((t,i)=>{const a=t.querySelector("z-icon");const n=a===null||a===void 0?void 0:a.name.replace("-filled","");if(i!==this.selectedTab){t.setAttribute("aria-selected","false");t.tabIndex=-1;if(a){a.name=n}return}if(a){a.name=`${n}-filled`}t.setAttribute("aria-selected","true")}));this.selected.emit(this.selectedTab);if(this.selectedTab!==undefined){this.scrollToTab(this.tabs[this.selectedTab])}}handleTabClick(t){const i=t.target.closest("[role='tab']");if(!this.tabs.some((t=>t.contains(i)))){return}this.selectedTab=this.tabs.indexOf(i)}onTabFocusIn(t){const i=this.tabs.findIndex((i=>i.contains(t.target)));if(i===-1){return}if(this.selectedTab!==undefined){this.tabs[this.selectedTab].tabIndex=-1}this.focusedTab=i;this.tabs[this.focusedTab].tabIndex=-1;this.scrollToTab(this.tabs[this.focusedTab])}navigateThroughTabs(t){if(!this.tabs.some((i=>i.contains(t.target)))||!this.isArrowNavigation(t)){return true}t.preventDefault();if(t.key===r.RIGHT&&this.orientation==o.HORIZONTAL||t.key===r.DOWN&&this.orientation==o.VERTICAL){this.focusedTab++;if(this.focusedTab>=this.tabs.length){this.focusedTab=0}}else if(t.key===r.LEFT&&this.orientation==o.HORIZONTAL||t.key===r.UP&&this.orientation==o.VERTICAL){this.focusedTab--;if(this.focusedTab<0){this.focusedTab=this.tabs.length-1}}if(this.tabs[this.focusedTab].hasAttribute("disabled")&&this.tabs[this.focusedTab].getAttribute("disabled")!=="false"){return this.navigateThroughTabs(t)}this.tabs[this.focusedTab].focus();this.scrollToTab(this.tabs[this.focusedTab])}onTabFocusOut(t){var i;if(!this.tabs.some((i=>i.contains(t.relatedTarget)))){this.tabs[(i=this.selectedTab)!==null&&i!==void 0?i:0].tabIndex=0;this.focusedTab=undefined}}connectedCallback(){this.resizeObserver=new ResizeObserver((()=>this.checkScrollVisible()))}componentDidLoad(){var t;this.tabs.forEach((t=>{t.setAttribute("role","tab");t.tabIndex=-1}));const i=(t=this.selectedTab)!==null&&t!==void 0?t:this.tabs.findIndex((t=>t.ariaSelected==="true"));if(i!==-1){this.selectedTab=i;this.tabs[i].tabIndex=0;this.onTabSelected()}else{this.tabs[0].tabIndex=0}this.resizeObserver.observe(this.nav)}disconnectedCallback(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()}render(){return a(n,{key:"0b12b029411faa03fde8c7cab690c655a9222d96",class:{"interactive-2":this.size===s.SMALL,"interactive-1":this.size!==s.SMALL},scrollable:this.canNavigate},a("button",{key:"5022271cf8f6d8a48de6186af7cb54d75bb92427",class:"navigation-button",onClick:this.navigateBackwards.bind(this),tabIndex:-1,disabled:!this.canNavigatePrev,"aria-label":"Mostra elementi precedenti",hidden:!this.canNavigate},a("z-icon",{key:"8262403c712f134208a3bdbec48e71d3d446758c",name:this.orientation===o.HORIZONTAL?"chevron-left":"chevron-up",width:16,height:16})),a("nav",{key:"f6ac7d4ac917af513600e6eed2c545000d6508ec",role:"tablist","aria-label":this.ariaLabel,ref:t=>this.nav=t!==null&&t!==void 0?t:this.nav,onScroll:this.checkScrollEnabled.bind(this),"aria-orientation":this.orientation},a("slot",{key:"3de431022c169350f1a2dd342d8e6170d2b64210"})),a("button",{key:"2a5b18aa8280e94d610ffc2a1b30e527d65df8a6",class:"navigation-button",onClick:this.navigateForward.bind(this),tabIndex:-1,disabled:!this.canNavigateNext,"aria-label":"Mostra elementi successivi",hidden:!this.canNavigate},a("z-icon",{key:"3733f645a9c05166413740c7f5854d121c5f7cdd",name:this.orientation===o.HORIZONTAL?"chevron-right":"chevron-down",width:16,height:16})))}get host(){return e(this)}static get watchers(){return{canNavigate:["checkScrollEnabled"],selectedTab:["onTabSelected"]}}};c.style=h;export{c as z_navigation_tabs};
2
- //# sourceMappingURL=p-3618e227.entry.js.map
1
+ import{r as t,c as i,h as a,a as n,g as e}from"./p-75c4a726.js";import{N as o,a as s,b as r}from"./p-b34993de.js";const l='z-navigation-tabs{position:relative;z-index:0;display:flex;overflow:hidden;flex-direction:row;font-family:var(--font-family-sans);font-weight:var(--font-rg)}z-navigation-tabs,z-navigation-tabs *{box-sizing:border-box}z-navigation-tabs>nav::-webkit-scrollbar{display:none}z-navigation-tabs .navigation-button{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;padding:0;border:none;margin:0;background-color:var(--z-navigation-tabs-nav-buttons-bg, var(--color-surface01));border-radius:var(--border-no-radius);box-shadow:0 0 4px 1px var(--shadow-color-base);cursor:pointer;fill:var(--z-navigation-tabs-nav-buttons-fg, var(--color-primary01));outline:none}z-navigation-tabs .navigation-button:disabled{display:none}z-navigation-tabs>nav{z-index:0;display:flex;overflow:auto;align-items:center;justify-content:flex-start;scroll-behavior:smooth;scrollbar-width:none}z-navigation-tabs[orientation="horizontal"]>nav{width:100%}z-navigation-tabs[orientation="horizontal"] .navigation-button{top:0;width:calc(var(--space-unit) * 4);height:100%}z-navigation-tabs[orientation="horizontal"] .navigation-button:first-child{left:0}z-navigation-tabs[orientation="horizontal"] .navigation-button:last-child{right:0}z-navigation-tabs[orientation="vertical"]{width:fit-content;flex-direction:column}z-navigation-tabs[orientation="vertical"]>nav{height:100%;flex-direction:column;align-items:stretch}z-navigation-tabs[orientation="vertical"] .navigation-button{left:0;width:100%;height:calc(var(--space-unit) * 4)}z-navigation-tabs[orientation="vertical"] .navigation-button:first-child{top:0}z-navigation-tabs[orientation="vertical"] .navigation-button:last-child{bottom:0}z-navigation-tabs[size="small"][orientation="vertical"] .navigation-button{height:calc(var(--space-unit) * 4)}z-navigation-tabs>nav>*{position:relative;z-index:0;display:inline-flex;width:auto;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);border:none;margin:0;background-color:unset;border-radius:var(--border-no-radius);color:var(--color-primary01);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:inherit;gap:var(--space-unit);letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tabs>nav>a{text-decoration:none}z-navigation-tabs>nav>*:focus:focus-visible{z-index:1;box-shadow:inset 0 0 4px 3px var(--blue800)}z-navigation-tabs>nav>:not([disabled]):hover{background-color:var(--color-surface02)}z-navigation-tabs>nav>button[disabled]{color:var(--color-disabled03);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tabs>nav>:not([disabled]):hover,nav>[aria-selected="true"]{color:var(--color-hover-secondary);fill:currentcolor}z-navigation-tabs>nav>:not([disabled]):hover::after,nav>[aria-selected="true"]::after{position:absolute;background-color:var(--color-hover-secondary);content:""}z-navigation-tabs[orientation="horizontal"]>nav>:not([disabled]):hover::after,z-navigation-tabs[orientation="horizontal"]>nav>[aria-selected="true"]::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tabs>nav>* z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tabs[size="small"][orientation="horizontal"]>nav>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tabs[size="small"][orientation="horizontal"]>nav>:not([disabled]):hover::after,z-navigation-tabs[size="small"][orientation="horizontal"]>nav>[aria-selected="true"]::after{height:var(--border-size-medium)}z-navigation-tabs[size="small"]:not([orientation="vertical"])>nav>* z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tabs[orientation="vertical"]>nav>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tabs[orientation="vertical"]>nav>*>:not(z-icon){display:none}z-navigation-tabs[orientation="vertical"]>nav>:not([disabled]):hover::after,z-navigation-tabs[orientation="vertical"]>nav>[aria-selected="true"]::after{top:0;right:0;width:var(--border-size-large);height:100%}';const h=l;const c=class{constructor(a){t(this,a);this.selected=i(this,"selected",7);this.focusedTab=undefined;this.ariaLabel="";this.orientation=o.HORIZONTAL;this.size=s.BIG;this.selectedTab=undefined;this.canNavigate=undefined;this.canNavigatePrev=undefined;this.canNavigateNext=undefined}get direction(){return this.orientation==o.HORIZONTAL?"Left":"Top"}get dimension(){return this.orientation==o.HORIZONTAL?"Width":"Height"}get tabs(){return Array.from(this.nav.children)}scrollToTab(t){const i=this.orientation===o.HORIZONTAL?{block:"nearest",inline:"center"}:{block:"center",inline:"nearest"};t.scrollIntoView(Object.assign({behavior:"smooth"},i))}navigateBackwards(){this.nav.scrollBy({[this.direction.toLowerCase()]:0-this.nav[`client${this.dimension}`]/2,behavior:"smooth"})}navigateForward(){this.nav.scrollBy({[this.direction.toLowerCase()]:this.nav[`scroll${this.direction}`]+this.nav[`client${this.dimension}`]/2,behavior:"smooth"})}isArrowNavigation(t){return Object.values(r).includes(t.key)}checkScrollVisible(){if(!this.nav){return}this.canNavigate=this.nav[`scroll${this.dimension}`]>this.nav[`client${this.dimension}`]}checkScrollEnabled(){if(!this.nav){return}this.canNavigateNext=this.nav[`scroll${this.direction}`]+this.nav[`client${this.dimension}`]<this.nav[`scroll${this.dimension}`];this.canNavigatePrev=this.nav[`scroll${this.direction}`]>0}onTabSelected(){this.tabs.forEach(((t,i)=>{const a=t.querySelector("z-icon");const n=a===null||a===void 0?void 0:a.name.replace("-filled","");if(i!==this.selectedTab){t.setAttribute("aria-selected","false");t.tabIndex=-1;if(a){a.name=n}return}if(a){a.name=`${n}-filled`}t.setAttribute("aria-selected","true")}));this.selected.emit(this.selectedTab);if(this.selectedTab!==undefined){this.scrollToTab(this.tabs[this.selectedTab])}}handleTabClick(t){const i=t.target.closest("[role='tab']");if(!this.tabs.some((t=>t.contains(i)))){return}this.selectedTab=this.tabs.indexOf(i)}onTabFocusIn(t){const i=this.tabs.findIndex((i=>i.contains(t.target)));if(i===-1){return}if(this.selectedTab!==undefined){this.tabs[this.selectedTab].tabIndex=-1}this.focusedTab=i;this.tabs[this.focusedTab].tabIndex=-1;this.scrollToTab(this.tabs[this.focusedTab])}navigateThroughTabs(t){if(!this.tabs.some((i=>i.contains(t.target)))||!this.isArrowNavigation(t)){return true}t.preventDefault();if(t.key===r.RIGHT&&this.orientation==o.HORIZONTAL||t.key===r.DOWN&&this.orientation==o.VERTICAL){this.focusedTab++;if(this.focusedTab>=this.tabs.length){this.focusedTab=0}}else if(t.key===r.LEFT&&this.orientation==o.HORIZONTAL||t.key===r.UP&&this.orientation==o.VERTICAL){this.focusedTab--;if(this.focusedTab<0){this.focusedTab=this.tabs.length-1}}if(this.tabs[this.focusedTab].hasAttribute("disabled")&&this.tabs[this.focusedTab].getAttribute("disabled")!=="false"){return this.navigateThroughTabs(t)}this.tabs[this.focusedTab].focus();this.scrollToTab(this.tabs[this.focusedTab])}onTabFocusOut(t){var i;if(!this.tabs.some((i=>i.contains(t.relatedTarget)))){this.tabs[(i=this.selectedTab)!==null&&i!==void 0?i:0].tabIndex=0;this.focusedTab=undefined}}connectedCallback(){this.resizeObserver=new ResizeObserver((()=>this.checkScrollVisible()))}componentDidLoad(){var t;this.tabs.forEach((t=>{t.setAttribute("role","tab");t.tabIndex=-1}));const i=(t=this.selectedTab)!==null&&t!==void 0?t:this.tabs.findIndex((t=>t.ariaSelected==="true"));if(i!==-1){this.selectedTab=i;this.tabs[i].tabIndex=0;this.onTabSelected()}else{this.tabs[0].tabIndex=0}this.resizeObserver.observe(this.nav)}disconnectedCallback(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()}render(){return a(n,{key:"d192d751519659abe6a7276077871c62b0c09132",class:{"interactive-2":this.size===s.SMALL,"interactive-1":this.size!==s.SMALL},scrollable:this.canNavigate},a("button",{key:"9306e51dafe13daf47d02f2bc2c1165bbca852bf",class:"navigation-button",onClick:this.navigateBackwards.bind(this),tabIndex:-1,disabled:!this.canNavigatePrev,"aria-label":"Mostra elementi precedenti",hidden:!this.canNavigate},a("z-icon",{key:"12c02634275c9465042b782f797876c892afb88f",name:this.orientation===o.HORIZONTAL?"chevron-left":"chevron-up",width:16,height:16})),a("nav",{key:"87fcc53d787cc5889ab3098f5815190baad83f60",role:"tablist","aria-label":this.ariaLabel,ref:t=>this.nav=t!==null&&t!==void 0?t:this.nav,onScroll:this.checkScrollEnabled.bind(this),"aria-orientation":this.orientation},a("slot",{key:"8b4b0be5170b59d9d3acebbb510e64630a92f024"})),a("button",{key:"3c50cddedd525a8e392ae199da12edbdfcfa3f0f",class:"navigation-button",onClick:this.navigateForward.bind(this),tabIndex:-1,disabled:!this.canNavigateNext,"aria-label":"Mostra elementi successivi",hidden:!this.canNavigate},a("z-icon",{key:"0224c950d506b47926392395953a4e2a0bb76aa5",name:this.orientation===o.HORIZONTAL?"chevron-right":"chevron-down",width:16,height:16})))}get host(){return e(this)}static get watchers(){return{canNavigate:["checkScrollEnabled"],selectedTab:["onTabSelected"]}}};c.style=h;export{c as z_navigation_tabs};
2
+ //# sourceMappingURL=p-5f220178.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as e,h as o,a as i,g as s}from"./p-75c4a726.js";const a=':host{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host(:is([active],[open])) .label,.label:hover{border-color:var(--color-secondary01)}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}.label{display:flex;width:100%;align-items:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);border:0;border-bottom:var(--border-size-small) solid var(--color-surface05);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items>::slotted([slot="item"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-2);line-height:1.4;outline:none}.items>::slotted([slot="item"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-secondary01)}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"][active]){color:var(--color-secondary01);font-weight:var(--font-bd)}';const n=a;const l=class{constructor(o){t(this,o);this.opened=e(this,"opened",7);this.closed=e(this,"closed",7);this.active=undefined;this.open=undefined;this.hasContent=undefined}toggle(){if(!this.hasContent){return}this.open=!this.open;this.open?this.opened.emit():this.closed.emit()}handleClick(t){if(!this.open||this.hostElement.contains(t.target)){return}this.open=false;this.closed.emit()}checkContent(){this.hasContent=this.hostElement.querySelectorAll('[slot="item"]').length>0}onLabelSlotChange(t){const e=t.target.assignedElements()[0];e.dataset.text=(e===null||e===void 0?void 0:e.innerText)||null}componentWillLoad(){this.checkContent()}render(){return o(i,{key:"9f5e6272fec856fc30b8f00632105cf2d41f53cc",role:"menu",open:this.open},o("button",{key:"31fbf5069fe344a43e5835f14459300dcf3359ac",class:"label","aria-pressed":this.open?"true":"false",onClick:this.toggle.bind(this)},o("slot",{key:"789bf049b23b099e4fb07f12a3fa5a80a221f833",onSlotchange:this.onLabelSlotChange.bind(this)}),this.hasContent&&o("z-icon",{key:"ffc7213860bca2db3fc12d575aaf26a0c598caaa",name:this.open?"chevron-up":"chevron-down"})),this.open&&o("div",{key:"14cc6b2bb5f80030df79598464af61c4e375293b",class:"items"},o("slot",{key:"830b84cf4ce1028c7cfed3ec5051f206f742e66f",name:"item",onSlotchange:this.checkContent.bind(this)})))}get hostElement(){return s(this)}};l.style=n;export{l as z_menu_section_deprecated};
2
- //# sourceMappingURL=p-273f3c53.entry.js.map
1
+ import{r as e,c as t,h as o,a as i,g as s}from"./p-75c4a726.js";const a=':host{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host(:is([active],[open])) .label,.label:hover{border-color:var(--color-secondary01)}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}.label{display:flex;width:100%;align-items:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);border:0;border-bottom:var(--border-size-small) solid var(--color-surface05);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items>::slotted([slot="item"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-2);line-height:1.4;outline:none}.items>::slotted([slot="item"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-secondary01)}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"][active]){color:var(--color-secondary01);font-weight:var(--font-bd)}';const n=a;const l=class{constructor(o){e(this,o);this.opened=t(this,"opened",7);this.closed=t(this,"closed",7);this.active=undefined;this.open=undefined;this.hasContent=undefined}toggle(){if(!this.hasContent){return}this.open=!this.open;this.open?this.opened.emit():this.closed.emit()}handleClick(e){if(!this.open||this.hostElement.contains(e.target)){return}this.open=false;this.closed.emit()}checkContent(){this.hasContent=this.hostElement.querySelectorAll('[slot="item"]').length>0}onLabelSlotChange(e){const t=e.target.assignedElements()[0];t.dataset.text=(t===null||t===void 0?void 0:t.innerText)||null}componentWillLoad(){this.checkContent()}render(){return o(i,{key:"c7d2a29ae2e56daa03be387dbf1f5f9e48185962",role:"menu",open:this.open},o("button",{key:"ec6cb222a29976ce929101a30f3cdefd12bf78bb",class:"label","aria-pressed":this.open?"true":"false",onClick:this.toggle.bind(this)},o("slot",{key:"91fc9b115c4b6a161efe7f043e59cb326e3b01e3",onSlotchange:this.onLabelSlotChange.bind(this)}),this.hasContent&&o("z-icon",{key:"0b186924f29ddb7da4848cfb6de49a6289050d14",name:this.open?"chevron-up":"chevron-down"})),this.open&&o("div",{key:"6b366b818ffaeb799d5892d5e640ca42f0ffd3fe",class:"items"},o("slot",{key:"57fe732de25b22342d8be5bb83084429e398838a",name:"item",onSlotchange:this.checkContent.bind(this)})))}get hostElement(){return s(this)}};l.style=n;export{l as z_menu_section_deprecated};
2
+ //# sourceMappingURL=p-6a5429eb.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as o,h as n,a as e}from"./p-75c4a726.js";const i=':host{--z-notification--top-offset:0;display:flex;width:100%;box-sizing:border-box;align-items:flex-start;padding:calc(var(--space-unit) * 2);border-bottom:var(--border-size-medium) solid var(--color-surface03);font-family:var(--font-family-sans);outline:none}: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-success-inverse)}:host([type="warning"]){background:var(--color-warning-inverse)}:host([type="error"]){background:var(--color-error-inverse)}.status-icon,.close-button{display:flex;height:20px;align-items:center}:host([type="success"]) .status-icon{fill:var(--color-success01)}:host([type="warning"]) .status-icon{fill:var(--color-warning02)}:host([type="error"]) .status-icon{fill:var(--color-error01)}:host>button,.content-container>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{max-width:800px;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)}}';const a=i;const s=class{handleActionButtonClick(t){t.preventDefault();this.notificationAction.emit()}handleCloseButtonClick(t){t.preventDefault();this.notificationClose.emit()}constructor(n){t(this,n);this.notificationAction=o(this,"notificationAction",7);this.notificationClose=o(this,"notificationClose",7);this.contenticonname=undefined;this.actiontext=undefined;this.type=undefined;this.showclose=false;this.showshadow=false;this.sticky=false;this.handleActionButtonClick=this.handleActionButtonClick.bind(this);this.handleCloseButtonClick=this.handleCloseButtonClick.bind(this)}render(){var t;return n(e,{key:"275c4d98f56fb388d1bb3373664f5ba52b22a613"},this.contenticonname&&n("z-icon",{key:"6f947ada02ec82736df5c099285e8ad84bbd07ed",class:"status-icon",name:this.contenticonname,width:16,height:16}),n("div",{key:"71fcf67cb01c84e0bef856dab960e4a04b472d7a",class:"content-container"},n("div",{key:"c590fccba3708952d3c71c8f274f7b5305f85583",class:"content-text"},n("slot",{key:"104ae4ef5a77cb371f0b4d928a4804b71c33e23a"})),!!((t=this.actiontext)===null||t===void 0?void 0:t.trim())&&n("button",{key:"e43f9e7499e027131e76839cc21c9cc5ec332355",class:"action-button",type:"button",onClick:this.handleActionButtonClick},this.actiontext)),this.showclose&&n("button",{key:"afc2acfa687d499bff6720423fa86afd335560ef",class:"close-button",type:"button",onClick:this.handleCloseButtonClick},n("z-icon",{key:"f03fafa58bdc583c34552e9f5d4114608ad82de1",name:"multiply-circle",width:16,height:16})))}};s.style=a;export{s as z_notification};
2
- //# sourceMappingURL=p-6e92df75.entry.js.map
1
+ import{r as t,c as o,h as e,a as n}from"./p-75c4a726.js";const i=':host{--z-notification--top-offset:0;display:flex;width:100%;box-sizing:border-box;align-items:flex-start;padding:calc(var(--space-unit) * 2);border-bottom:var(--border-size-medium) solid var(--color-surface03);font-family:var(--font-family-sans);outline:none}: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-success-inverse)}:host([type="warning"]){background:var(--color-warning-inverse)}:host([type="error"]){background:var(--color-error-inverse)}.status-icon,.close-button{display:flex;height:20px;align-items:center}:host([type="success"]) .status-icon{fill:var(--color-success01)}:host([type="warning"]) .status-icon{fill:var(--color-warning02)}:host([type="error"]) .status-icon{fill:var(--color-error01)}:host>button,.content-container>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{max-width:800px;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)}}';const a=i;const s=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.contenticonname=undefined;this.actiontext=undefined;this.type=undefined;this.showclose=false;this.showshadow=false;this.sticky=false;this.handleActionButtonClick=this.handleActionButtonClick.bind(this);this.handleCloseButtonClick=this.handleCloseButtonClick.bind(this)}render(){var t;return e(n,{key:"e8416850a84b427fef7b6ba0d9c8b9166e4799ab"},this.contenticonname&&e("z-icon",{key:"12598bed47c61eb4f526eb5e274b3d22986bc4b8",class:"status-icon",name:this.contenticonname,width:16,height:16}),e("div",{key:"84c2a22d8b0061b9fea55945b2a3007ea1e9b63a",class:"content-container"},e("div",{key:"947f63eb8cc4b3711ee97e5a8fdc34e22d2bed9f",class:"content-text"},e("slot",{key:"0cc909e320c921f2d0d2b2ee884e62e970bc6d3a"})),!!((t=this.actiontext)===null||t===void 0?void 0:t.trim())&&e("button",{key:"3a185d65b4fc48e62c134543ae5725659ffa9a7c",class:"action-button",type:"button",onClick:this.handleActionButtonClick},this.actiontext)),this.showclose&&e("button",{key:"b5fee566524a4e6c9be009a77a7679a7d1c68b78",class:"close-button",type:"button",onClick:this.handleCloseButtonClick},e("z-icon",{key:"c3658a322c699ee57b706cc58a7c5f53877a6620",name:"multiply-circle",width:16,height:16})))}};s.style=a;export{s as z_notification};
2
+ //# sourceMappingURL=p-6af64b62.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,h as o,g as s}from"./p-75c4a726.js";import{s as i}from"./p-1c24255c.js";const e=':host{position:fixed;z-index:10000;display:flex;flex-flow:column nowrap;margin-top:calc(var(--space-unit) * 2);margin-bottom:calc(var(--space-unit) * 2);font-family:var(--font-family-sans);font-weight:var(--font-rg)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host([position="bottom-centre"]),:host([position="bottom-right"]),:host([position="bottom-left"]){bottom:0;align-items:flex-end;justify-content:flex-end}:host([position="top-left"]),:host([position="top-right"]),:host([position="top-centre"]){top:0;align-items:flex-start;justify-content:flex-start}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host([position="top-centre"]){top:0;left:50%;align-items:center;justify-content:flex-start;transform:translateX(-50%)}:host([position="top-left"]){top:0;left:0;align-items:flex-start;justify-content:flex-start}:host([position="top-right"]){top:0;right:0;align-items:flex-end;justify-content:flex-start}:host([position="bottom-centre"]){bottom:0;left:50%;align-items:center;justify-content:flex-end;transform:translateX(-50%)}:host([position="bottom-right"]){right:0;bottom:0;align-items:flex-end;justify-content:flex-end}:host([position="bottom-left"]){bottom:0;left:0;align-items:flex-start;justify-content:flex-end}::slotted(z-toast-notification){width:50vw}}@media only screen and (min-width: 1366px){:host{margin:calc(var(--space-unit) * 4)}::slotted(z-toast-notification){width:33vw}}';const n=e;const a=class{constructor(o){t(this,o);this.position=i.TOP_RIGHT;this.newestontop=true}watchPropNewestontop(t){this.hostElement.append(...this.notificationArray.reverse());if(t){this.hostElement.shadowRoot.addEventListener("slotchange",this.slotChangeHandler)}else{this.hostElement.shadowRoot.removeEventListener("slotchange",this.slotChangeHandler)}}componentWillLoad(){if(this.newestontop){this.handleNewestOnTop()}}handleNewestOnTop(){this.notificationArray=Array.from(this.hostElement.children);this.hostElement.append(...this.notificationArray.reverse());this.hostElement.shadowRoot.addEventListener("slotchange",this.slotChangeHandler.bind(this))}slotChangeHandler(){const t=Array.from(this.hostElement.children).filter((t=>!this.notificationArray.includes(t)));if(t){t.forEach((t=>{this.notificationArray.push(t);const o=t;t.remove();this.hostElement.prepend(o)}))}}render(){return o("slot",{key:"92d1e3eb3d27b178014dec77a61efcf6de185933",name:"toasts"})}get hostElement(){return s(this)}static get watchers(){return{newestontop:["watchPropNewestontop"]}}};a.style=n;export{a as z_toast_notification_list};
2
- //# sourceMappingURL=p-03cd1ead.entry.js.map
1
+ import{r as t,h as o,g as s}from"./p-75c4a726.js";import{s as i}from"./p-b34993de.js";const e=':host{position:fixed;z-index:10000;display:flex;flex-flow:column nowrap;margin-top:calc(var(--space-unit) * 2);margin-bottom:calc(var(--space-unit) * 2);font-family:var(--font-family-sans);font-weight:var(--font-rg)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host([position="bottom-centre"]),:host([position="bottom-right"]),:host([position="bottom-left"]){bottom:0;align-items:flex-end;justify-content:flex-end}:host([position="top-left"]),:host([position="top-right"]),:host([position="top-centre"]){top:0;align-items:flex-start;justify-content:flex-start}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host([position="top-centre"]){top:0;left:50%;align-items:center;justify-content:flex-start;transform:translateX(-50%)}:host([position="top-left"]){top:0;left:0;align-items:flex-start;justify-content:flex-start}:host([position="top-right"]){top:0;right:0;align-items:flex-end;justify-content:flex-start}:host([position="bottom-centre"]){bottom:0;left:50%;align-items:center;justify-content:flex-end;transform:translateX(-50%)}:host([position="bottom-right"]){right:0;bottom:0;align-items:flex-end;justify-content:flex-end}:host([position="bottom-left"]){bottom:0;left:0;align-items:flex-start;justify-content:flex-end}::slotted(z-toast-notification){width:50vw}}@media only screen and (min-width: 1366px){:host{margin:calc(var(--space-unit) * 4)}::slotted(z-toast-notification){width:33vw}}';const n=e;const a=class{constructor(o){t(this,o);this.position=i.TOP_RIGHT;this.newestontop=true}watchPropNewestontop(t){this.hostElement.append(...this.notificationArray.reverse());if(t){this.hostElement.shadowRoot.addEventListener("slotchange",this.slotChangeHandler)}else{this.hostElement.shadowRoot.removeEventListener("slotchange",this.slotChangeHandler)}}componentWillLoad(){if(this.newestontop){this.handleNewestOnTop()}}handleNewestOnTop(){this.notificationArray=Array.from(this.hostElement.children);this.hostElement.append(...this.notificationArray.reverse());this.hostElement.shadowRoot.addEventListener("slotchange",this.slotChangeHandler.bind(this))}slotChangeHandler(){const t=Array.from(this.hostElement.children).filter((t=>!this.notificationArray.includes(t)));if(t){t.forEach((t=>{this.notificationArray.push(t);const o=t;t.remove();this.hostElement.prepend(o)}))}}render(){return o("slot",{key:"4f16e2a3e7925804c82c22adf27df7467b2991e5",name:"toasts"})}get hostElement(){return s(this)}static get watchers(){return{newestontop:["watchPropNewestontop"]}}};a.style=n;export{a as z_toast_notification_list};
2
+ //# sourceMappingURL=p-6c24917e.entry.js.map