@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,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
@@ -0,0 +1,2 @@
1
+ import{r as t,c as e,h as i,g as o}from"./p-75c4a726.js";import{g as a}from"./p-b34993de.js";import{B as n}from"./p-5145a606.js";const r=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.dragdrop{position:relative;display:flex;height:228px;flex-direction:column;padding:calc(var(--space-unit) * 2);border-color:var(--color-surface04);background-color:var(--color-surface02);background-image:url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='2' ry='2' stroke='%23CACCCEFF' stroke-width='2' stroke-dasharray='15%2c 10%2c 14%2c 11' stroke-dashoffset='3' stroke-linecap='square'/%3e%3c/svg%3e\");border-radius:2px;color:var(--color-default-text)}:host>.dragdrop:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none !important}:host>.dragdrop.dragover *{pointer-events:none}:host>.dragdrop .dragover-container{position:absolute;z-index:10;top:0;left:0;display:none;width:100%;height:100%;background-color:var(--color-primary03);box-shadow:var(--shadow-focus-primary)}:host>.dragdrop .dragover-container .dragover-message{padding:10px 28px;background-color:var(--color-link-primary);color:var(--color-text-inverse)}:host>.dragdrop.dragover .dragover-container{display:flex;align-items:center;justify-content:center}";const s=r;const d=class{constructor(i){t(this,i);this.fileDropped=e(this,"fileDropped",7);this.dragAndDropLabel=undefined}fileDroppedHandler(t){this.fileDropped.emit(t)}renderOnDragOverMessage(){return i("div",{class:"dragover-container"},i("div",{class:"dragover-message"},i("span",{class:"body-2-sb"},this.dragAndDropLabel)))}render(){return i("div",{key:"f03237175af7dd7898f56cd22af5594d8c429b7c",tabIndex:0,ref:t=>this.dragDropContainer=t,class:"dragdrop",onDragOver:t=>{t.preventDefault();this.dragDropContainer.classList.add("dragover")},onDragLeave:()=>{this.dragDropContainer.classList.remove("dragover")},onDrop:t=>{t.preventDefault();if(t.dataTransfer.files.length){this.dragDropContainer.classList.remove("dragover");this.fileDroppedHandler(t.dataTransfer.files)}}},this.renderOnDragOverMessage(),i("slot",{key:"a8fe4b44fde1d59fb0bf2ef9b1b2b999ca2b820c"}))}};d.style=s;var l=window.CustomEvent;if(!l||typeof l==="object"){l=function t(e,i){i=i||{};var o=document.createEvent("CustomEvent");o.initCustomEvent(e,!!i.bubbles,!!i.cancelable,i.detail||null);return o};l.prototype=window.Event.prototype}function c(t,e){var i="on"+e.type.toLowerCase();if(typeof t[i]==="function"){t[i](e)}return t.dispatchEvent(e)}function h(t){while(t&&t!==document.body){var e=window.getComputedStyle(t);var i=function(t,i){return!(e[t]===undefined||e[t]===i)};if(e.opacity<1||i("zIndex","auto")||i("transform","none")||i("mixBlendMode","normal")||i("filter","none")||i("perspective","none")||e["isolation"]==="isolate"||e.position==="fixed"||e.webkitOverflowScrolling==="touch"){return true}t=t.parentElement}return false}function u(t){while(t){if(t.localName==="dialog"){return t}if(t.parentElement){t=t.parentElement}else if(t.parentNode){t=t.parentNode.host}else{t=null}}return null}function f(t){while(t&&t.shadowRoot&&t.shadowRoot.activeElement){t=t.shadowRoot.activeElement}if(t&&t.blur&&t!==document.body){t.blur()}}function m(t,e){for(var i=0;i<t.length;++i){if(t[i]===e){return true}}return false}function v(t){if(!t||!t.hasAttribute("method")){return false}return t.getAttribute("method").toLowerCase()==="dialog"}function b(t){var e=["button","input","keygen","select","textarea"];var i=e.map((function(t){return t+":not([disabled])"}));i.push('[tabindex]:not([disabled]):not([tabindex=""])');var o=t.querySelector(i.join(", "));if(!o&&"attachShadow"in Element.prototype){var a=t.querySelectorAll("*");for(var n=0;n<a.length;n++){if(a[n].tagName&&a[n].shadowRoot){o=b(a[n].shadowRoot);if(o){break}}}}return o}function p(t){return t.isConnected||document.body.contains(t)}function g(t){if(t.submitter){return t.submitter}var e=t.target;if(!(e instanceof HTMLFormElement)){return null}var i=k.formSubmitter;if(!i){var o=t.target;var a="getRootNode"in o&&o.getRootNode()||document;i=a.activeElement}if(!i||i.form!==e){return null}return i}function w(t){if(t.defaultPrevented){return}var e=t.target;var i=k.imagemapUseValue;var o=g(t);if(i===null&&o){i=o.value}var a=u(e);if(!a){return}var n=o&&o.getAttribute("formmethod")||e.getAttribute("method");if(n!=="dialog"){return}t.preventDefault();if(i!=null){a.close(i)}else{a.close()}}function y(t){this.dialog_=t;this.replacedStyleTop_=false;this.openAsModal_=false;if(!t.hasAttribute("role")){t.setAttribute("role","dialog")}t.show=this.show.bind(this);t.showModal=this.showModal.bind(this);t.close=this.close.bind(this);t.addEventListener("submit",w,false);if(!("returnValue"in t)){t.returnValue=""}if("MutationObserver"in window){var e=new MutationObserver(this.maybeHideModal.bind(this));e.observe(t,{attributes:true,attributeFilter:["open"]})}else{var i=false;var o=function(){i?this.downgradeModal():this.maybeHideModal();i=false}.bind(this);var a;var n=function(e){if(e.target!==t){return}var n="DOMNodeRemoved";i|=e.type.substr(0,n.length)===n;window.clearTimeout(a);a=window.setTimeout(o,0)};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach((function(e){t.addEventListener(e,n)}))}Object.defineProperty(t,"open",{set:this.setOpen.bind(this),get:t.hasAttribute.bind(t,"open")});this.backdrop_=document.createElement("div");this.backdrop_.className="backdrop";this.backdrop_.addEventListener("mouseup",this.backdropMouseEvent_.bind(this));this.backdrop_.addEventListener("mousedown",this.backdropMouseEvent_.bind(this));this.backdrop_.addEventListener("click",this.backdropMouseEvent_.bind(this))}y.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){if(this.dialog_.hasAttribute("open")&&p(this.dialog_)){return}this.downgradeModal()},downgradeModal:function(){if(!this.openAsModal_){return}this.openAsModal_=false;this.dialog_.style.zIndex="";if(this.replacedStyleTop_){this.dialog_.style.top="";this.replacedStyleTop_=false}this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_);k.dm.removeDialog(this)},setOpen:function(t){if(t){this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open","")}else{this.dialog_.removeAttribute("open");this.maybeHideModal()}},backdropMouseEvent_:function(t){if(!this.dialog_.hasAttribute("tabindex")){var e=document.createElement("div");this.dialog_.insertBefore(e,this.dialog_.firstChild);e.tabIndex=-1;e.focus();this.dialog_.removeChild(e)}else{this.dialog_.focus()}var i=document.createEvent("MouseEvents");i.initMouseEvent(t.type,t.bubbles,t.cancelable,window,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget);this.dialog_.dispatchEvent(i);t.stopPropagation()},focus_:function(){var t=this.dialog_.querySelector("[autofocus]:not([disabled])");if(!t&&this.dialog_.tabIndex>=0){t=this.dialog_}if(!t){t=b(this.dialog_)}f(document.activeElement);t&&t.focus()},updateZIndex:function(t,e){if(t<e){throw new Error("dialogZ should never be < backdropZ")}this.dialog_.style.zIndex=t;this.backdrop_.style.zIndex=e},show:function(){if(!this.dialog_.open){this.setOpen(true);this.focus_()}},showModal:function(){if(this.dialog_.hasAttribute("open")){throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.")}if(!p(this.dialog_)){throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.")}if(!k.dm.pushDialog(this)){throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.")}if(h(this.dialog_.parentElement)){console.warn("A dialog is being shown inside a stacking context. "+"This may cause it to be unusable. For more information, see this link: "+"https://github.com/GoogleChrome/dialog-polyfill/#stacking-context")}this.setOpen(true);this.openAsModal_=true;if(k.needsCentering(this.dialog_)){k.reposition(this.dialog_);this.replacedStyleTop_=true}else{this.replacedStyleTop_=false}this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling);this.focus_()},close:function(t){if(!this.dialog_.hasAttribute("open")){throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.")}this.setOpen(false);if(t!==undefined){this.dialog_.returnValue=t}var e=new l("close",{bubbles:false,cancelable:false});c(this.dialog_,e)}};var k={};k.reposition=function(t){var e=document.body.scrollTop||document.documentElement.scrollTop;var i=e+(window.innerHeight-t.offsetHeight)/2;t.style.top=Math.max(e,i)+"px"};k.isInlinePositionSetByStylesheet=function(t){for(var e=0;e<document.styleSheets.length;++e){var i=document.styleSheets[e];var o=null;try{o=i.cssRules}catch(t){}if(!o){continue}for(var a=0;a<o.length;++a){var n=o[a];var r=null;try{r=document.querySelectorAll(n.selectorText)}catch(t){}if(!r||!m(r,t)){continue}var s=n.style.getPropertyValue("top");var d=n.style.getPropertyValue("bottom");if(s&&s!=="auto"||d&&d!=="auto"){return true}}}return false};k.needsCentering=function(t){var e=window.getComputedStyle(t);if(e.position!=="absolute"){return false}if(t.style.top!=="auto"&&t.style.top!==""||t.style.bottom!=="auto"&&t.style.bottom!==""){return false}return!k.isInlinePositionSetByStylesheet(t)};k.forceRegisterDialog=function(t){if(window.HTMLDialogElement||t.showModal){console.warn("This browser already supports <dialog>, the polyfill "+"may not work correctly",t)}if(t.localName!=="dialog"){throw new Error("Failed to register dialog: The element is not a dialog.")}new y(t)};k.registerDialog=function(t){if(!t.showModal){k.forceRegisterDialog(t)}};k.DialogManager=function(){this.pendingDialogStack=[];var t=this.checkDOM_.bind(this);this.overlay=document.createElement("div");this.overlay.className="_dialog_overlay";this.overlay.addEventListener("click",function(e){this.forwardTab_=undefined;e.stopPropagation();t([])}.bind(this));this.handleKey_=this.handleKey_.bind(this);this.handleFocus_=this.handleFocus_.bind(this);this.zIndexLow_=1e5;this.zIndexHigh_=1e5+150;this.forwardTab_=undefined;if("MutationObserver"in window){this.mo_=new MutationObserver((function(e){var i=[];e.forEach((function(t){for(var e=0,o;o=t.removedNodes[e];++e){if(!(o instanceof Element)){continue}else if(o.localName==="dialog"){i.push(o)}i=i.concat(o.querySelectorAll("dialog"))}}));i.length&&t(i)}))}};k.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,true);document.addEventListener("keydown",this.handleKey_);this.mo_&&this.mo_.observe(document,{childList:true,subtree:true})};k.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,true);document.removeEventListener("keydown",this.handleKey_);this.mo_&&this.mo_.disconnect()};k.DialogManager.prototype.updateStacking=function(){var t=this.zIndexHigh_;for(var e=0,i;i=this.pendingDialogStack[e];++e){i.updateZIndex(--t,--t);if(e===0){this.overlay.style.zIndex=--t}}var o=this.pendingDialogStack[0];if(o){var a=o.dialog.parentNode||document.body;a.appendChild(this.overlay)}else if(this.overlay.parentNode){this.overlay.parentNode.removeChild(this.overlay)}};k.DialogManager.prototype.containedByTopDialog_=function(t){while(t=u(t)){for(var e=0,i;i=this.pendingDialogStack[e];++e){if(i.dialog===t){return e===0}}t=t.parentElement}return false};k.DialogManager.prototype.handleFocus_=function(t){var e=t.composedPath?t.composedPath()[0]:t.target;if(this.containedByTopDialog_(e)){return}if(document.activeElement===document.documentElement){return}t.preventDefault();t.stopPropagation();f(e);if(this.forwardTab_===undefined){return}var i=this.pendingDialogStack[0];var o=i.dialog;var a=o.compareDocumentPosition(e);if(a&Node.DOCUMENT_POSITION_PRECEDING){if(this.forwardTab_){i.focus_()}else if(e!==document.documentElement){document.documentElement.focus()}}return false};k.DialogManager.prototype.handleKey_=function(t){this.forwardTab_=undefined;if(t.keyCode===27){t.preventDefault();t.stopPropagation();var e=new l("cancel",{bubbles:false,cancelable:true});var i=this.pendingDialogStack[0];if(i&&c(i.dialog,e)){i.dialog.close()}}else if(t.keyCode===9){this.forwardTab_=!t.shiftKey}};k.DialogManager.prototype.checkDOM_=function(t){var e=this.pendingDialogStack.slice();e.forEach((function(e){if(t.indexOf(e.dialog)!==-1){e.downgradeModal()}else{e.maybeHideModal()}}))};k.DialogManager.prototype.pushDialog=function(t){var e=(this.zIndexHigh_-this.zIndexLow_)/2-1;if(this.pendingDialogStack.length>=e){return false}if(this.pendingDialogStack.unshift(t)===1){this.blockDocument()}this.updateStacking();return true};k.DialogManager.prototype.removeDialog=function(t){var e=this.pendingDialogStack.indexOf(t);if(e===-1){return}this.pendingDialogStack.splice(e,1);if(this.pendingDialogStack.length===0){this.unblockDocument()}this.updateStacking()};k.dm=new k.DialogManager;k.formSubmitter=null;k.imagemapUseValue=null;if(window.HTMLDialogElement===undefined){var x=document.createElement("form");x.setAttribute("method","dialog");if(x.method!=="dialog"){var M=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(M){var z=M.get;M.get=function(){if(v(this)){return"dialog"}return z.call(this)};var C=M.set;M.set=function(t){if(typeof t==="string"&&t.toLowerCase()==="dialog"){return this.setAttribute("method",t)}return C.call(this,t)};Object.defineProperty(HTMLFormElement.prototype,"method",M)}}document.addEventListener("click",(function(t){k.formSubmitter=null;k.imagemapUseValue=null;if(t.defaultPrevented){return}var e=t.target;if("composedPath"in t){var i=t.composedPath();e=i.shift()||e}if(!e||!v(e.form)){return}var o=e.type==="submit"&&["button","input"].indexOf(e.localName)>-1;if(!o){if(!(e.localName==="input"&&e.type==="image")){return}k.imagemapUseValue=t.offsetX+","+t.offsetY}var a=u(e);if(!a){return}k.formSubmitter=e}),false);document.addEventListener("submit",(function(t){var e=t.target;var i=u(e);if(i){return}var o=g(t);var a=o&&o.getAttribute("formmethod")||e.getAttribute("method");if(a==="dialog"){t.preventDefault()}}));var E=HTMLFormElement.prototype.submit;var O=function(){if(!v(this)){return E.call(this)}var t=u(this);t&&t.close()};HTMLFormElement.prototype.submit=O}const F=':host{font-family:var(--font-family-sans);font-weight:var(--font-rg);--z-modal-content-padding:calc(var(--space-unit) * 2)}:host>dialog{padding:0;border:none;margin:0;background-color:transparent}:host>dialog:modal{width:100%;max-width:100%;max-height:100%}:host>dialog::backdrop{display:none}:host>dialog+.backdrop{display:none}:host>dialog:not([open]){display:none}:host>dialog[open]{display:block}::slotted([slot="modalContent"]){padding:var(--z-modal-content-padding)}.modal-container{z-index:1010;display:flex;overflow:-moz-scrollbars-none;width:100%;height:100vh;flex-direction:column}.modal-container>.modal-content-scroll-outside{overflow:auto;background:var(--color-surface01)}.modal-container>header{padding:calc(var(--space-unit) * 1.75) calc(var(--space-unit) * 2) calc(var(--space-unit) * 1.75)\n calc(var(--space-unit) * 2);background:var(--color-surface02)}.modal-container>header button{padding:0;border:none;margin:0;margin-left:auto;background:transparent;cursor:pointer}.modal-container>header button:focus-visible{border-radius:50%;box-shadow:var(--shadow-focus-primary);outline:none !important}.modal-container>header button::after{position:absolute;top:6px;right:4px;display:block;width:40px;height:40px;background-color:transparent;content:""}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 2.25);--z-icon-height:calc(var(--space-unit) * 2.25);display:flex;fill:var(--color-primary01-icon)}.modal-container>header>div{display:flex;width:100%;align-items:baseline;margin-right:calc(var(--space-unit) * 2)}.modal-container>header h1,.modal-container>header .subtitle{padding:0;margin:0;color:var(--color-default-text);font-weight:var(--font-sb)}.modal-container>header h1{font-size:var(--font-size-5);letter-spacing:0;line-height:1.4}.modal-container>header .subtitle{font-size:var(--font-size-3);font-weight:var(--font-rg);letter-spacing:0;line-height:1.5}.modal-container>header>div>h1 *:empty{display:none}.modal-container>header h1+.subtitle{margin-top:calc(var(--space-unit) * 0.5)}.modal-container-scroll-inside>.modal-content-scroll-inside{overflow:hidden auto;flex:1 auto;background:var(--color-surface01)}.modal-container-scroll-inside>.modal-content-scroll-inside::-webkit-scrollbar,.modal-container-scroll-outside>.modal-content-scroll-outside::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.modal-container-scroll-inside>.modal-content-scroll-inside::-webkit-scrollbar-thumb,.modal-container-scroll-outside>.modal-content-scroll-outside::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01)}.modal-container-scroll-inside>.modal-content-scroll-inside::-webkit-scrollbar-thumb:hover,.modal-container-scroll-outside>.modal-content-scroll-outside::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.modal-container-scroll-inside .modal-content-scroll-inside,.modal-container-scroll-outside .modal-content-scroll-outside{scrollbar-color:var(--color-primary01) transparent}@media only screen and (min-width: 768px){.modal-background{position:fixed;top:0;left:0;overflow:hidden;width:100vw;height:100vh;background-color:var(--gray900);opacity:0.7}.modal-background.modal-background-scroll-outside{position:sticky}.modal-container-scroll-inside{position:fixed;top:calc(var(--space-unit) * 6);left:50%;overflow:hidden;width:auto;min-width:calc(var(--space-unit) * 40);height:auto;min-height:calc(var(--space-unit) * 40);max-height:calc(100vh - calc(var(--space-unit) * 6 * 2));border-radius:var(--border-radius);transform:translateX(-50%)}.modal-container-scroll-outside{position:absolute;top:calc(var(--space-unit) * 6);left:50%;display:block;overflow:initial;width:auto;min-width:calc(var(--space-unit) * 40);height:auto;min-height:calc(var(--space-unit) * 40);max-height:calc(100vh - calc(var(--space-unit) * 6 * 2));transform:translateX(-50%)}.modal-container>.modal-content-scroll-outside{overflow:initial}.modal-container-scroll-outside>header,.modal-container-scroll-inside>header{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.modal-container-scroll-outside::after{display:block;height:calc(var(--space-unit) * 6);content:" "}.modal-dialog{position:fixed;top:0;left:0;height:auto;overflow-x:hidden;overflow-y:auto}.modal-content-scroll-outside{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.modal-dialog::-webkit-scrollbar{display:none}}@media only screen and (min-width: 1152px){.modal-container>header{padding-top:calc(var(--space-unit) * 1.5);padding-bottom:calc(var(--space-unit) * 1.5)}.modal-container>header h1{font-size:var(--font-size-6);font-weight:var(--font-sb);letter-spacing:0;line-height:1.333}.modal-container>header .subtitle{font-size:var(--font-size-4);font-weight:var(--font-rg);letter-spacing:0;line-height:1.5}.modal-container>header h1+.subtitle{margin-top:0}}';const D=F;const T=':is(button, input, select, textarea, [contenteditable=""], [contenteditable="true"], a[href], [tabindex], summary):not([disabled], [disabled=""], [tabindex="-1"], [aria-hidden="true"], [hidden])';const j=class{constructor(i){t(this,i);this.modalClose=e(this,"modalClose",7);this.modalHeaderActive=e(this,"modalHeaderActive",7);this.modalBackgroundClick=e(this,"modalBackgroundClick",7);this.modalid=undefined;this.modaltitle=undefined;this.modalsubtitle=undefined;this.closeButtonLabel="chiudi modale";this.alertdialog=false;this.closable=true;this.scrollInside=true}emitModalClose(){if(this.closable){this.modalClose.emit({modalid:this.modalid})}}emitModalHeaderActive(){this.modalHeaderActive.emit({modalid:this.modalid})}emitBackgroundClick(){if(this.closable){this.modalBackgroundClick.emit({modalid:this.modalid})}}handlePageOverflow(){const t=window.matchMedia(`(max-width: ${n.MOBILE}px)`);document.body.style["overflow-y"]=t.matches?"hidden":""}componentDidLoad(){if(typeof window.HTMLDialogElement!=="function"){if(!this.dialog.localName){Object.defineProperty(this.dialog,"localName",{value:"dialog"})}k.registerDialog(this.dialog);this.dialog.setAttribute("open","true")}else{this.open()}this.handlePageOverflow()}async open(){var t;(t=this.dialog)===null||t===void 0?void 0:t.showModal()}async close(){var t;if(this.closable){(t=this.dialog)===null||t===void 0?void 0:t.close()}}get focusableElements(){return[...Array.from(this.host.shadowRoot.querySelectorAll(T)),...Array.from(this.host.querySelectorAll(T))].filter((t=>getComputedStyle(t).display!=="none"))}handleKeyDown(t){if(t.code===a.ESC&&!this.closable){t.preventDefault()}if(t.code!==a.TAB){return}const e=this.focusableElements;const i=this.host.shadowRoot.activeElement;const o=this.host.ownerDocument.activeElement;const n=e[0];const r=e[e.length-1];if(t.shiftKey&&(i==n||o==n)){t.preventDefault();r.focus()}else if(!t.shiftKey&&(i==r||o==r)){t.preventDefault();n.focus()}}closeButtonSlot(){if(this.closable){return i("slot",{name:"modalCloseButton"},i("button",{"aria-label":this.closeButtonLabel,onClick:()=>this.close()},i("z-icon",{name:"multiply-circle-filled"})))}}handleEscape(t){if(this.closable){return}t.preventDefault()}render(){return i("dialog",{key:"5da8e4ff1e24a5d3bfcf378e84e19da201548f14",class:{"modal-dialog":!this.scrollInside},"aria-labelledby":"modal-title","aria-describedby":"modal-content",role:this.alertdialog?"alertdialog":undefined,ref:t=>this.dialog=t,onClose:()=>this.emitModalClose(),onCancel:t=>this.handleEscape(t)},i("div",{key:"1784e267b3a7e5a702751e5463325be79e940692",class:{"modal-container":true,"modal-container-scroll-inside":this.scrollInside,"modal-container-scroll-outside":!this.scrollInside},id:this.modalid},i("header",{key:"ba6a5d60a414cc4e111b98ba6a2ba096a7f487cd",onClick:this.emitModalHeaderActive.bind(this)},i("div",{key:"9d83bc27bcfe735a7197186c8149aeb2b88ed597"},this.modaltitle&&i("h1",{key:"e0d611a56a72c619a455e093c6f57b6c713a4926",id:"modal-title"},this.modaltitle),this.closeButtonSlot()),this.modalsubtitle&&i("div",{key:"a159731352318c11438abd354cab47006a22dadb",class:"subtitle",id:"modal-subtitle"},this.modalsubtitle)),i("div",{key:"51c575ae0212082390d9174a1ba5e8d95e9ac488",class:{"modal-content-scroll-inside":this.scrollInside,"modal-content-scroll-outside":!this.scrollInside},id:"modal-content"},i("slot",{key:"fb98d41d0f6fb924d10fcf3171e203afb21a3e17",name:"modalContent"}))),i("div",{key:"02e8e0dfca14ad69a7d27fbe546f64620918c907",class:{"modal-background":true,"modal-background-scroll-outside":!this.scrollInside},"data-action":"modalBackground","data-modal":this.modalid,onClick:()=>{this.emitBackgroundClick();this.close()}}))}get host(){return o(this)}};j.style=D;export{d as z_dragdrop_area,j as z_modal};
2
+ //# sourceMappingURL=p-7073453b.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZDragdropAreaStyle0","ZDragdropArea","fileDroppedHandler","files","this","fileDropped","emit","renderOnDragOverMessage","h","class","dragAndDropLabel","render","key","tabIndex","ref","val","dragDropContainer","onDragOver","e","preventDefault","classList","add","onDragLeave","remove","onDrop","dataTransfer","length","supportCustomEvent","window","CustomEvent","event","x","ev","document","createEvent","initCustomEvent","bubbles","cancelable","detail","prototype","Event","safeDispatchEvent","target","check","type","toLowerCase","dispatchEvent","createsStackingContext","el","body","s","getComputedStyle","invalid","k","ok","undefined","opacity","position","webkitOverflowScrolling","parentElement","findNearestDialog","localName","parentNode","host","safeBlur","shadowRoot","activeElement","blur","inNodeList","nodeList","node","i","isFormMethodDialog","hasAttribute","getAttribute","findFocusableElementWithin","hostElement","opts","query","map","push","querySelector","join","Element","elems","querySelectorAll","tagName","isConnected","element","contains","findFormSubmitter","submitter","form","HTMLFormElement","dialogPolyfill","formSubmitter","root","getRootNode","maybeHandleSubmit","defaultPrevented","value","imagemapUseValue","dialog","formmethod","close","dialogPolyfillInfo","dialog_","replacedStyleTop_","openAsModal_","setAttribute","show","bind","showModal","addEventListener","returnValue","mo","MutationObserver","maybeHideModal","observe","attributes","attributeFilter","removed","cb","downgradeModal","timeout","delayModel","cand","substr","clearTimeout","setTimeout","forEach","name","Object","defineProperty","set","setOpen","get","backdrop_","createElement","className","backdropMouseEvent_","style","zIndex","top","removeChild","dm","removeDialog","removeAttribute","fake","insertBefore","firstChild","focus","redirectedEvent","initMouseEvent","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","stopPropagation","focus_","updateZIndex","dialogZ","backdropZ","Error","open","pushDialog","console","warn","needsCentering","reposition","nextSibling","opt_returnValue","closeEvent","scrollTop","documentElement","topValue","innerHeight","offsetHeight","Math","max","isInlinePositionSetByStylesheet","styleSheets","styleSheet","cssRules","j","rule","selectedNodes","selectorText","cssTop","getPropertyValue","cssBottom","computedStyle","bottom","forceRegisterDialog","HTMLDialogElement","registerDialog","DialogManager","pendingDialogStack","checkDOM","checkDOM_","overlay","forwardTab_","handleKey_","handleFocus_","zIndexLow_","zIndexHigh_","mo_","records","rec","c","removedNodes","concat","blockDocument","childList","subtree","unblockDocument","removeEventListener","disconnect","updateStacking","dpi","last","p","appendChild","containedByTopDialog_","candidate","composedPath","compareDocumentPosition","Node","DOCUMENT_POSITION_PRECEDING","keyCode","cancelEvent","clone","slice","indexOf","allowed","unshift","index","splice","testForm","method","methodDescriptor","getOwnPropertyDescriptor","realGet","call","realSet","v","path","shift","valid","offsetX","offsetY","nativeFormSubmit","submit","replacementFormSubmit","ZModalStyle0","FOCUSABLE_ELEMENTS_SELECTOR","ZModal","emitModalClose","closable","modalClose","modalid","emitModalHeaderActive","modalHeaderActive","emitBackgroundClick","modalBackgroundClick","handlePageOverflow","mobileMediaQuery","matchMedia","Breakpoints","MOBILE","matches","componentDidLoad","_a","focusableElements","Array","from","filter","display","handleKeyDown","code","KeyboardCode","ESC","TAB","shadowActiveElement","ownerDocument","firstFocusableElement","lastFocusableElement","closeButtonSlot","closeButtonLabel","onClick","handleEscape","scrollInside","role","alertdialog","onClose","onCancel","id","modaltitle","modalsubtitle"],"sources":["src/components/file-upload/z-dragdrop-area/styles.css?tag=z-dragdrop-area&encapsulation=shadow","src/components/file-upload/z-dragdrop-area/index.tsx","node_modules/dialog-polyfill/dist/dialog-polyfill.esm.js","src/components/z-modal/styles.css?tag=z-modal&encapsulation=shadow","src/components/z-modal/index.tsx"],"sourcesContent":[":host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > .dragdrop {\n position: relative;\n display: flex;\n height: 228px;\n flex-direction: column;\n padding: calc(var(--space-unit) * 2);\n border-color: var(--color-surface04);\n background-color: var(--color-surface02);\n\n /* Native CSS properties don't support the customization of border-style.\n Therefore, we use a trick with an SVG image inside background-image property.\n The SVG features give us the ability to change the distance between dashed lines, set custom pattern, add dash offset or even change a line cap.\n Generated SVG image is vector and it fills width and height of elements by 100%, so it doesn't matter what size elements have. */\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='2' ry='2' stroke='%23CACCCEFF' stroke-width='2' stroke-dasharray='15%2c 10%2c 14%2c 11' stroke-dashoffset='3' stroke-linecap='square'/%3e%3c/svg%3e\");\n border-radius: 2px;\n color: var(--color-default-text);\n}\n\n:host > .dragdrop:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\n/* https://stackoverflow.com/questions/7110353/html5-dragleave-fired-when-hovering-a-child-element */\n:host > .dragdrop.dragover * {\n pointer-events: none;\n}\n\n:host > .dragdrop .dragover-container {\n position: absolute;\n z-index: 10;\n top: 0;\n left: 0;\n display: none;\n width: 100%;\n height: 100%;\n background-color: var(--color-primary03);\n box-shadow: var(--shadow-focus-primary);\n}\n\n:host > .dragdrop .dragover-container .dragover-message {\n padding: 10px 28px;\n background-color: var(--color-link-primary);\n color: var(--color-text-inverse);\n}\n\n:host > .dragdrop.dragover .dragover-container {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n","import {Component, Event, EventEmitter, Prop, h} from \"@stencil/core\";\n\n@Component({\n tag: \"z-dragdrop-area\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZDragdropArea {\n /** drag & drop button label */\n @Prop()\n dragAndDropLabel: string;\n\n /** Emitted when user drop one or more files */\n @Event()\n fileDropped: EventEmitter;\n\n private fileDroppedHandler(files: FileList): void {\n this.fileDropped.emit(files);\n }\n\n private dragDropContainer: HTMLDivElement;\n\n private renderOnDragOverMessage(): HTMLDivElement {\n return (\n <div class=\"dragover-container\">\n <div class=\"dragover-message\">\n <span class=\"body-2-sb\">{this.dragAndDropLabel}</span>\n </div>\n </div>\n );\n }\n\n render(): HTMLDivElement {\n return (\n <div\n tabIndex={0}\n ref={(val) => (this.dragDropContainer = val)}\n class=\"dragdrop\"\n onDragOver={(e) => {\n e.preventDefault();\n this.dragDropContainer.classList.add(\"dragover\");\n }}\n onDragLeave={() => {\n this.dragDropContainer.classList.remove(\"dragover\");\n }}\n onDrop={(e) => {\n e.preventDefault();\n if (e.dataTransfer.files.length) {\n this.dragDropContainer.classList.remove(\"dragover\");\n this.fileDroppedHandler(e.dataTransfer.files);\n }\n }}\n >\n {this.renderOnDragOverMessage()}\n <slot />\n </div>\n );\n }\n}\n","// nb. This is for IE10 and lower _only_.\nvar supportCustomEvent = window.CustomEvent;\nif (!supportCustomEvent || typeof supportCustomEvent === 'object') {\n supportCustomEvent = function CustomEvent(event, x) {\n x = x || {};\n var ev = document.createEvent('CustomEvent');\n ev.initCustomEvent(event, !!x.bubbles, !!x.cancelable, x.detail || null);\n return ev;\n };\n supportCustomEvent.prototype = window.Event.prototype;\n}\n\n/**\n * Dispatches the passed event to both an \"on<type>\" handler as well as via the\n * normal dispatch operation. Does not bubble.\n *\n * @param {!EventTarget} target\n * @param {!Event} event\n * @return {boolean}\n */\nfunction safeDispatchEvent(target, event) {\n var check = 'on' + event.type.toLowerCase();\n if (typeof target[check] === 'function') {\n target[check](event);\n }\n return target.dispatchEvent(event);\n}\n\n/**\n * @param {Element} el to check for stacking context\n * @return {boolean} whether this el or its parents creates a stacking context\n */\nfunction createsStackingContext(el) {\n while (el && el !== document.body) {\n var s = window.getComputedStyle(el);\n var invalid = function(k, ok) {\n return !(s[k] === undefined || s[k] === ok);\n };\n\n if (s.opacity < 1 ||\n invalid('zIndex', 'auto') ||\n invalid('transform', 'none') ||\n invalid('mixBlendMode', 'normal') ||\n invalid('filter', 'none') ||\n invalid('perspective', 'none') ||\n s['isolation'] === 'isolate' ||\n s.position === 'fixed' ||\n s.webkitOverflowScrolling === 'touch') {\n return true;\n }\n el = el.parentElement;\n }\n return false;\n}\n\n/**\n * Finds the nearest <dialog> from the passed element.\n *\n * @param {Element} el to search from\n * @return {HTMLDialogElement} dialog found\n */\nfunction findNearestDialog(el) {\n while (el) {\n if (el.localName === 'dialog') {\n return /** @type {HTMLDialogElement} */ (el);\n }\n if (el.parentElement) {\n el = el.parentElement;\n } else if (el.parentNode) {\n el = el.parentNode.host;\n } else {\n el = null;\n }\n }\n return null;\n}\n\n/**\n * Blur the specified element, as long as it's not the HTML body element.\n * This works around an IE9/10 bug - blurring the body causes Windows to\n * blur the whole application.\n *\n * @param {Element} el to blur\n */\nfunction safeBlur(el) {\n // Find the actual focused element when the active element is inside a shadow root\n while (el && el.shadowRoot && el.shadowRoot.activeElement) {\n el = el.shadowRoot.activeElement;\n }\n\n if (el && el.blur && el !== document.body) {\n el.blur();\n }\n}\n\n/**\n * @param {!NodeList} nodeList to search\n * @param {Node} node to find\n * @return {boolean} whether node is inside nodeList\n */\nfunction inNodeList(nodeList, node) {\n for (var i = 0; i < nodeList.length; ++i) {\n if (nodeList[i] === node) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * @param {HTMLFormElement} el to check\n * @return {boolean} whether this form has method=\"dialog\"\n */\nfunction isFormMethodDialog(el) {\n if (!el || !el.hasAttribute('method')) {\n return false;\n }\n return el.getAttribute('method').toLowerCase() === 'dialog';\n}\n\n/**\n * @param {!DocumentFragment|!Element} hostElement\n * @return {?Element}\n */\nfunction findFocusableElementWithin(hostElement) {\n // Note that this is 'any focusable area'. This list is probably not exhaustive, but the\n // alternative involves stepping through and trying to focus everything.\n var opts = ['button', 'input', 'keygen', 'select', 'textarea'];\n var query = opts.map(function(el) {\n return el + ':not([disabled])';\n });\n // TODO(samthor): tabindex values that are not numeric are not focusable.\n query.push('[tabindex]:not([disabled]):not([tabindex=\"\"])'); // tabindex != \"\", not disabled\n var target = hostElement.querySelector(query.join(', '));\n\n if (!target && 'attachShadow' in Element.prototype) {\n // If we haven't found a focusable target, see if the host element contains an element\n // which has a shadowRoot.\n // Recursively search for the first focusable item in shadow roots.\n var elems = hostElement.querySelectorAll('*');\n for (var i = 0; i < elems.length; i++) {\n if (elems[i].tagName && elems[i].shadowRoot) {\n target = findFocusableElementWithin(elems[i].shadowRoot);\n if (target) {\n break;\n }\n }\n }\n }\n return target;\n}\n\n/**\n * Determines if an element is attached to the DOM.\n * @param {Element} element to check\n * @return {boolean} whether the element is in DOM\n */\nfunction isConnected(element) {\n return element.isConnected || document.body.contains(element);\n}\n\n/**\n * @param {!Event} event\n * @return {?Element}\n */\nfunction findFormSubmitter(event) {\n if (event.submitter) {\n return event.submitter;\n }\n\n var form = event.target;\n if (!(form instanceof HTMLFormElement)) {\n return null;\n }\n\n var submitter = dialogPolyfill.formSubmitter;\n if (!submitter) {\n var target = event.target;\n var root = ('getRootNode' in target && target.getRootNode() || document);\n submitter = root.activeElement;\n }\n\n if (!submitter || submitter.form !== form) {\n return null;\n }\n return submitter;\n}\n\n/**\n * @param {!Event} event\n */\nfunction maybeHandleSubmit(event) {\n if (event.defaultPrevented) {\n return;\n }\n var form = /** @type {!HTMLFormElement} */ (event.target);\n\n // We'd have a value if we clicked on an imagemap.\n var value = dialogPolyfill.imagemapUseValue;\n var submitter = findFormSubmitter(event);\n if (value === null && submitter) {\n value = submitter.value;\n }\n\n // There should always be a dialog as this handler is added specifically on them, but check just\n // in case.\n var dialog = findNearestDialog(form);\n if (!dialog) {\n return;\n }\n\n // Prefer formmethod on the button.\n var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');\n if (formmethod !== 'dialog') {\n return;\n }\n event.preventDefault();\n\n if (value != null) {\n // nb. we explicitly check against null/undefined\n dialog.close(value);\n } else {\n dialog.close();\n }\n}\n\n/**\n * @param {!HTMLDialogElement} dialog to upgrade\n * @constructor\n */\nfunction dialogPolyfillInfo(dialog) {\n this.dialog_ = dialog;\n this.replacedStyleTop_ = false;\n this.openAsModal_ = false;\n\n // Set a11y role. Browsers that support dialog implicitly know this already.\n if (!dialog.hasAttribute('role')) {\n dialog.setAttribute('role', 'dialog');\n }\n\n dialog.show = this.show.bind(this);\n dialog.showModal = this.showModal.bind(this);\n dialog.close = this.close.bind(this);\n\n dialog.addEventListener('submit', maybeHandleSubmit, false);\n\n if (!('returnValue' in dialog)) {\n dialog.returnValue = '';\n }\n\n if ('MutationObserver' in window) {\n var mo = new MutationObserver(this.maybeHideModal.bind(this));\n mo.observe(dialog, {attributes: true, attributeFilter: ['open']});\n } else {\n // IE10 and below support. Note that DOMNodeRemoved etc fire _before_ removal. They also\n // seem to fire even if the element was removed as part of a parent removal. Use the removed\n // events to force downgrade (useful if removed/immediately added).\n var removed = false;\n var cb = function() {\n removed ? this.downgradeModal() : this.maybeHideModal();\n removed = false;\n }.bind(this);\n var timeout;\n var delayModel = function(ev) {\n if (ev.target !== dialog) { return; } // not for a child element\n var cand = 'DOMNodeRemoved';\n removed |= (ev.type.substr(0, cand.length) === cand);\n window.clearTimeout(timeout);\n timeout = window.setTimeout(cb, 0);\n };\n ['DOMAttrModified', 'DOMNodeRemoved', 'DOMNodeRemovedFromDocument'].forEach(function(name) {\n dialog.addEventListener(name, delayModel);\n });\n }\n // Note that the DOM is observed inside DialogManager while any dialog\n // is being displayed as a modal, to catch modal removal from the DOM.\n\n Object.defineProperty(dialog, 'open', {\n set: this.setOpen.bind(this),\n get: dialog.hasAttribute.bind(dialog, 'open')\n });\n\n this.backdrop_ = document.createElement('div');\n this.backdrop_.className = 'backdrop';\n this.backdrop_.addEventListener('mouseup' , this.backdropMouseEvent_.bind(this));\n this.backdrop_.addEventListener('mousedown', this.backdropMouseEvent_.bind(this));\n this.backdrop_.addEventListener('click' , this.backdropMouseEvent_.bind(this));\n}\n\ndialogPolyfillInfo.prototype = /** @type {HTMLDialogElement.prototype} */ ({\n\n get dialog() {\n return this.dialog_;\n },\n\n /**\n * Maybe remove this dialog from the modal top layer. This is called when\n * a modal dialog may no longer be tenable, e.g., when the dialog is no\n * longer open or is no longer part of the DOM.\n */\n maybeHideModal: function() {\n if (this.dialog_.hasAttribute('open') && isConnected(this.dialog_)) { return; }\n this.downgradeModal();\n },\n\n /**\n * Remove this dialog from the modal top layer, leaving it as a non-modal.\n */\n downgradeModal: function() {\n if (!this.openAsModal_) { return; }\n this.openAsModal_ = false;\n this.dialog_.style.zIndex = '';\n\n // This won't match the native <dialog> exactly because if the user set top on a centered\n // polyfill dialog, that top gets thrown away when the dialog is closed. Not sure it's\n // possible to polyfill this perfectly.\n if (this.replacedStyleTop_) {\n this.dialog_.style.top = '';\n this.replacedStyleTop_ = false;\n }\n\n // Clear the backdrop and remove from the manager.\n this.backdrop_.parentNode && this.backdrop_.parentNode.removeChild(this.backdrop_);\n dialogPolyfill.dm.removeDialog(this);\n },\n\n /**\n * @param {boolean} value whether to open or close this dialog\n */\n setOpen: function(value) {\n if (value) {\n this.dialog_.hasAttribute('open') || this.dialog_.setAttribute('open', '');\n } else {\n this.dialog_.removeAttribute('open');\n this.maybeHideModal(); // nb. redundant with MutationObserver\n }\n },\n\n /**\n * Handles mouse events ('mouseup', 'mousedown', 'click') on the fake .backdrop element, redirecting them as if\n * they were on the dialog itself.\n *\n * @param {!Event} e to redirect\n */\n backdropMouseEvent_: function(e) {\n if (!this.dialog_.hasAttribute('tabindex')) {\n // Clicking on the backdrop should move the implicit cursor, even if dialog cannot be\n // focused. Create a fake thing to focus on. If the backdrop was _before_ the dialog, this\n // would not be needed - clicks would move the implicit cursor there.\n var fake = document.createElement('div');\n this.dialog_.insertBefore(fake, this.dialog_.firstChild);\n fake.tabIndex = -1;\n fake.focus();\n this.dialog_.removeChild(fake);\n } else {\n this.dialog_.focus();\n }\n\n var redirectedEvent = document.createEvent('MouseEvents');\n redirectedEvent.initMouseEvent(e.type, e.bubbles, e.cancelable, window,\n e.detail, e.screenX, e.screenY, e.clientX, e.clientY, e.ctrlKey,\n e.altKey, e.shiftKey, e.metaKey, e.button, e.relatedTarget);\n this.dialog_.dispatchEvent(redirectedEvent);\n e.stopPropagation();\n },\n\n /**\n * Focuses on the first focusable element within the dialog. This will always blur the current\n * focus, even if nothing within the dialog is found.\n */\n focus_: function() {\n // Find element with `autofocus` attribute, or fall back to the first form/tabindex control.\n var target = this.dialog_.querySelector('[autofocus]:not([disabled])');\n if (!target && this.dialog_.tabIndex >= 0) {\n target = this.dialog_;\n }\n if (!target) {\n target = findFocusableElementWithin(this.dialog_);\n }\n safeBlur(document.activeElement);\n target && target.focus();\n },\n\n /**\n * Sets the zIndex for the backdrop and dialog.\n *\n * @param {number} dialogZ\n * @param {number} backdropZ\n */\n updateZIndex: function(dialogZ, backdropZ) {\n if (dialogZ < backdropZ) {\n throw new Error('dialogZ should never be < backdropZ');\n }\n this.dialog_.style.zIndex = dialogZ;\n this.backdrop_.style.zIndex = backdropZ;\n },\n\n /**\n * Shows the dialog. If the dialog is already open, this does nothing.\n */\n show: function() {\n if (!this.dialog_.open) {\n this.setOpen(true);\n this.focus_();\n }\n },\n\n /**\n * Show this dialog modally.\n */\n showModal: function() {\n if (this.dialog_.hasAttribute('open')) {\n throw new Error('Failed to execute \\'showModal\\' on dialog: The element is already open, and therefore cannot be opened modally.');\n }\n if (!isConnected(this.dialog_)) {\n throw new Error('Failed to execute \\'showModal\\' on dialog: The element is not in a Document.');\n }\n if (!dialogPolyfill.dm.pushDialog(this)) {\n throw new Error('Failed to execute \\'showModal\\' on dialog: There are too many open modal dialogs.');\n }\n\n if (createsStackingContext(this.dialog_.parentElement)) {\n console.warn('A dialog is being shown inside a stacking context. ' +\n 'This may cause it to be unusable. For more information, see this link: ' +\n 'https://github.com/GoogleChrome/dialog-polyfill/#stacking-context');\n }\n\n this.setOpen(true);\n this.openAsModal_ = true;\n\n // Optionally center vertically, relative to the current viewport.\n if (dialogPolyfill.needsCentering(this.dialog_)) {\n dialogPolyfill.reposition(this.dialog_);\n this.replacedStyleTop_ = true;\n } else {\n this.replacedStyleTop_ = false;\n }\n\n // Insert backdrop.\n this.dialog_.parentNode.insertBefore(this.backdrop_, this.dialog_.nextSibling);\n\n // Focus on whatever inside the dialog.\n this.focus_();\n },\n\n /**\n * Closes this HTMLDialogElement. This is optional vs clearing the open\n * attribute, however this fires a 'close' event.\n *\n * @param {string=} opt_returnValue to use as the returnValue\n */\n close: function(opt_returnValue) {\n if (!this.dialog_.hasAttribute('open')) {\n throw new Error('Failed to execute \\'close\\' on dialog: The element does not have an \\'open\\' attribute, and therefore cannot be closed.');\n }\n this.setOpen(false);\n\n // Leave returnValue untouched in case it was set directly on the element\n if (opt_returnValue !== undefined) {\n this.dialog_.returnValue = opt_returnValue;\n }\n\n // Triggering \"close\" event for any attached listeners on the <dialog>.\n var closeEvent = new supportCustomEvent('close', {\n bubbles: false,\n cancelable: false\n });\n safeDispatchEvent(this.dialog_, closeEvent);\n }\n\n});\n\nvar dialogPolyfill = {};\n\ndialogPolyfill.reposition = function(element) {\n var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;\n var topValue = scrollTop + (window.innerHeight - element.offsetHeight) / 2;\n element.style.top = Math.max(scrollTop, topValue) + 'px';\n};\n\ndialogPolyfill.isInlinePositionSetByStylesheet = function(element) {\n for (var i = 0; i < document.styleSheets.length; ++i) {\n var styleSheet = document.styleSheets[i];\n var cssRules = null;\n // Some browsers throw on cssRules.\n try {\n cssRules = styleSheet.cssRules;\n } catch (e) {}\n if (!cssRules) { continue; }\n for (var j = 0; j < cssRules.length; ++j) {\n var rule = cssRules[j];\n var selectedNodes = null;\n // Ignore errors on invalid selector texts.\n try {\n selectedNodes = document.querySelectorAll(rule.selectorText);\n } catch(e) {}\n if (!selectedNodes || !inNodeList(selectedNodes, element)) {\n continue;\n }\n var cssTop = rule.style.getPropertyValue('top');\n var cssBottom = rule.style.getPropertyValue('bottom');\n if ((cssTop && cssTop !== 'auto') || (cssBottom && cssBottom !== 'auto')) {\n return true;\n }\n }\n }\n return false;\n};\n\ndialogPolyfill.needsCentering = function(dialog) {\n var computedStyle = window.getComputedStyle(dialog);\n if (computedStyle.position !== 'absolute') {\n return false;\n }\n\n // We must determine whether the top/bottom specified value is non-auto. In\n // WebKit/Blink, checking computedStyle.top == 'auto' is sufficient, but\n // Firefox returns the used value. So we do this crazy thing instead: check\n // the inline style and then go through CSS rules.\n if ((dialog.style.top !== 'auto' && dialog.style.top !== '') ||\n (dialog.style.bottom !== 'auto' && dialog.style.bottom !== '')) {\n return false;\n }\n return !dialogPolyfill.isInlinePositionSetByStylesheet(dialog);\n};\n\n/**\n * @param {!Element} element to force upgrade\n */\ndialogPolyfill.forceRegisterDialog = function(element) {\n if (window.HTMLDialogElement || element.showModal) {\n console.warn('This browser already supports <dialog>, the polyfill ' +\n 'may not work correctly', element);\n }\n if (element.localName !== 'dialog') {\n throw new Error('Failed to register dialog: The element is not a dialog.');\n }\n new dialogPolyfillInfo(/** @type {!HTMLDialogElement} */ (element));\n};\n\n/**\n * @param {!Element} element to upgrade, if necessary\n */\ndialogPolyfill.registerDialog = function(element) {\n if (!element.showModal) {\n dialogPolyfill.forceRegisterDialog(element);\n }\n};\n\n/**\n * @constructor\n */\ndialogPolyfill.DialogManager = function() {\n /** @type {!Array<!dialogPolyfillInfo>} */\n this.pendingDialogStack = [];\n\n var checkDOM = this.checkDOM_.bind(this);\n\n // The overlay is used to simulate how a modal dialog blocks the document.\n // The blocking dialog is positioned on top of the overlay, and the rest of\n // the dialogs on the pending dialog stack are positioned below it. In the\n // actual implementation, the modal dialog stacking is controlled by the\n // top layer, where z-index has no effect.\n this.overlay = document.createElement('div');\n this.overlay.className = '_dialog_overlay';\n this.overlay.addEventListener('click', function(e) {\n this.forwardTab_ = undefined;\n e.stopPropagation();\n checkDOM([]); // sanity-check DOM\n }.bind(this));\n\n this.handleKey_ = this.handleKey_.bind(this);\n this.handleFocus_ = this.handleFocus_.bind(this);\n\n this.zIndexLow_ = 100000;\n this.zIndexHigh_ = 100000 + 150;\n\n this.forwardTab_ = undefined;\n\n if ('MutationObserver' in window) {\n this.mo_ = new MutationObserver(function(records) {\n var removed = [];\n records.forEach(function(rec) {\n for (var i = 0, c; c = rec.removedNodes[i]; ++i) {\n if (!(c instanceof Element)) {\n continue;\n } else if (c.localName === 'dialog') {\n removed.push(c);\n }\n removed = removed.concat(c.querySelectorAll('dialog'));\n }\n });\n removed.length && checkDOM(removed);\n });\n }\n};\n\n/**\n * Called on the first modal dialog being shown. Adds the overlay and related\n * handlers.\n */\ndialogPolyfill.DialogManager.prototype.blockDocument = function() {\n document.documentElement.addEventListener('focus', this.handleFocus_, true);\n document.addEventListener('keydown', this.handleKey_);\n this.mo_ && this.mo_.observe(document, {childList: true, subtree: true});\n};\n\n/**\n * Called on the first modal dialog being removed, i.e., when no more modal\n * dialogs are visible.\n */\ndialogPolyfill.DialogManager.prototype.unblockDocument = function() {\n document.documentElement.removeEventListener('focus', this.handleFocus_, true);\n document.removeEventListener('keydown', this.handleKey_);\n this.mo_ && this.mo_.disconnect();\n};\n\n/**\n * Updates the stacking of all known dialogs.\n */\ndialogPolyfill.DialogManager.prototype.updateStacking = function() {\n var zIndex = this.zIndexHigh_;\n\n for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {\n dpi.updateZIndex(--zIndex, --zIndex);\n if (i === 0) {\n this.overlay.style.zIndex = --zIndex;\n }\n }\n\n // Make the overlay a sibling of the dialog itself.\n var last = this.pendingDialogStack[0];\n if (last) {\n var p = last.dialog.parentNode || document.body;\n p.appendChild(this.overlay);\n } else if (this.overlay.parentNode) {\n this.overlay.parentNode.removeChild(this.overlay);\n }\n};\n\n/**\n * @param {Element} candidate to check if contained or is the top-most modal dialog\n * @return {boolean} whether candidate is contained in top dialog\n */\ndialogPolyfill.DialogManager.prototype.containedByTopDialog_ = function(candidate) {\n while (candidate = findNearestDialog(candidate)) {\n for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {\n if (dpi.dialog === candidate) {\n return i === 0; // only valid if top-most\n }\n }\n candidate = candidate.parentElement;\n }\n return false;\n};\n\ndialogPolyfill.DialogManager.prototype.handleFocus_ = function(event) {\n var target = event.composedPath ? event.composedPath()[0] : event.target;\n\n if (this.containedByTopDialog_(target)) { return; }\n\n if (document.activeElement === document.documentElement) { return; }\n\n event.preventDefault();\n event.stopPropagation();\n safeBlur(/** @type {Element} */ (target));\n\n if (this.forwardTab_ === undefined) { return; } // move focus only from a tab key\n\n var dpi = this.pendingDialogStack[0];\n var dialog = dpi.dialog;\n var position = dialog.compareDocumentPosition(target);\n if (position & Node.DOCUMENT_POSITION_PRECEDING) {\n if (this.forwardTab_) {\n // forward\n dpi.focus_();\n } else if (target !== document.documentElement) {\n // backwards if we're not already focused on <html>\n document.documentElement.focus();\n }\n }\n\n return false;\n};\n\ndialogPolyfill.DialogManager.prototype.handleKey_ = function(event) {\n this.forwardTab_ = undefined;\n if (event.keyCode === 27) {\n event.preventDefault();\n event.stopPropagation();\n var cancelEvent = new supportCustomEvent('cancel', {\n bubbles: false,\n cancelable: true\n });\n var dpi = this.pendingDialogStack[0];\n if (dpi && safeDispatchEvent(dpi.dialog, cancelEvent)) {\n dpi.dialog.close();\n }\n } else if (event.keyCode === 9) {\n this.forwardTab_ = !event.shiftKey;\n }\n};\n\n/**\n * Finds and downgrades any known modal dialogs that are no longer displayed. Dialogs that are\n * removed and immediately readded don't stay modal, they become normal.\n *\n * @param {!Array<!HTMLDialogElement>} removed that have definitely been removed\n */\ndialogPolyfill.DialogManager.prototype.checkDOM_ = function(removed) {\n // This operates on a clone because it may cause it to change. Each change also calls\n // updateStacking, which only actually needs to happen once. But who removes many modal dialogs\n // at a time?!\n var clone = this.pendingDialogStack.slice();\n clone.forEach(function(dpi) {\n if (removed.indexOf(dpi.dialog) !== -1) {\n dpi.downgradeModal();\n } else {\n dpi.maybeHideModal();\n }\n });\n};\n\n/**\n * @param {!dialogPolyfillInfo} dpi\n * @return {boolean} whether the dialog was allowed\n */\ndialogPolyfill.DialogManager.prototype.pushDialog = function(dpi) {\n var allowed = (this.zIndexHigh_ - this.zIndexLow_) / 2 - 1;\n if (this.pendingDialogStack.length >= allowed) {\n return false;\n }\n if (this.pendingDialogStack.unshift(dpi) === 1) {\n this.blockDocument();\n }\n this.updateStacking();\n return true;\n};\n\n/**\n * @param {!dialogPolyfillInfo} dpi\n */\ndialogPolyfill.DialogManager.prototype.removeDialog = function(dpi) {\n var index = this.pendingDialogStack.indexOf(dpi);\n if (index === -1) { return; }\n\n this.pendingDialogStack.splice(index, 1);\n if (this.pendingDialogStack.length === 0) {\n this.unblockDocument();\n }\n this.updateStacking();\n};\n\ndialogPolyfill.dm = new dialogPolyfill.DialogManager();\ndialogPolyfill.formSubmitter = null;\ndialogPolyfill.imagemapUseValue = null;\n\n/**\n * Installs global handlers, such as click listers and native method overrides. These are needed\n * even if a no dialog is registered, as they deal with <form method=\"dialog\">.\n */\nif (window.HTMLDialogElement === undefined) {\n\n /**\n * If HTMLFormElement translates method=\"DIALOG\" into 'get', then replace the descriptor with\n * one that returns the correct value.\n */\n var testForm = document.createElement('form');\n testForm.setAttribute('method', 'dialog');\n if (testForm.method !== 'dialog') {\n var methodDescriptor = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, 'method');\n if (methodDescriptor) {\n // nb. Some older iOS and older PhantomJS fail to return the descriptor. Don't do anything\n // and don't bother to update the element.\n var realGet = methodDescriptor.get;\n methodDescriptor.get = function() {\n if (isFormMethodDialog(this)) {\n return 'dialog';\n }\n return realGet.call(this);\n };\n var realSet = methodDescriptor.set;\n /** @this {HTMLElement} */\n methodDescriptor.set = function(v) {\n if (typeof v === 'string' && v.toLowerCase() === 'dialog') {\n return this.setAttribute('method', v);\n }\n return realSet.call(this, v);\n };\n Object.defineProperty(HTMLFormElement.prototype, 'method', methodDescriptor);\n }\n }\n\n /**\n * Global 'click' handler, to capture the <input type=\"submit\"> or <button> element which has\n * submitted a <form method=\"dialog\">. Needed as Safari and others don't report this inside\n * document.activeElement.\n */\n document.addEventListener('click', function(ev) {\n dialogPolyfill.formSubmitter = null;\n dialogPolyfill.imagemapUseValue = null;\n if (ev.defaultPrevented) { return; } // e.g. a submit which prevents default submission\n\n var target = /** @type {Element} */ (ev.target);\n if ('composedPath' in ev) {\n var path = ev.composedPath();\n target = path.shift() || target;\n }\n if (!target || !isFormMethodDialog(target.form)) { return; }\n\n var valid = (target.type === 'submit' && ['button', 'input'].indexOf(target.localName) > -1);\n if (!valid) {\n if (!(target.localName === 'input' && target.type === 'image')) { return; }\n // this is a <input type=\"image\">, which can submit forms\n dialogPolyfill.imagemapUseValue = ev.offsetX + ',' + ev.offsetY;\n }\n\n var dialog = findNearestDialog(target);\n if (!dialog) { return; }\n\n dialogPolyfill.formSubmitter = target;\n\n }, false);\n\n /**\n * Global 'submit' handler. This handles submits of `method=\"dialog\"` which are invalid, i.e.,\n * outside a dialog. They get prevented.\n */\n document.addEventListener('submit', function(ev) {\n var form = ev.target;\n var dialog = findNearestDialog(form);\n if (dialog) {\n return; // ignore, handle there\n }\n\n var submitter = findFormSubmitter(ev);\n var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');\n if (formmethod === 'dialog') {\n ev.preventDefault();\n }\n });\n\n /**\n * Replace the native HTMLFormElement.submit() method, as it won't fire the\n * submit event and give us a chance to respond.\n */\n var nativeFormSubmit = HTMLFormElement.prototype.submit;\n var replacementFormSubmit = function () {\n if (!isFormMethodDialog(this)) {\n return nativeFormSubmit.call(this);\n }\n var dialog = findNearestDialog(this);\n dialog && dialog.close();\n };\n HTMLFormElement.prototype.submit = replacementFormSubmit;\n}\n\nexport default dialogPolyfill;\n",":host {\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n\n --z-modal-content-padding: calc(var(--space-unit) * 2);\n}\n\n:host > dialog {\n padding: 0;\n border: none;\n margin: 0;\n background-color: transparent;\n}\n\n/* stylelint-disable selector-pseudo-class-no-unknown */\n:host > dialog:modal {\n width: 100%;\n max-width: 100%;\n max-height: 100%;\n}\n\n:host > dialog::backdrop {\n display: none;\n}\n\n/* polyfill style */\n:host > dialog + .backdrop {\n display: none;\n}\n\n:host > dialog:not([open]) {\n display: none;\n}\n\n:host > dialog[open] {\n display: block;\n}\n\n::slotted([slot=\"modalContent\"]) {\n padding: var(--z-modal-content-padding);\n}\n\n.modal-container {\n z-index: 1010;\n display: flex;\n overflow: -moz-scrollbars-none;\n width: 100%;\n height: 100vh;\n flex-direction: column;\n}\n\n.modal-container > .modal-content-scroll-outside {\n overflow: auto;\n background: var(--color-surface01);\n}\n\n.modal-container > header {\n padding: calc(var(--space-unit) * 1.75) calc(var(--space-unit) * 2) calc(var(--space-unit) * 1.75)\n calc(var(--space-unit) * 2);\n background: var(--color-surface02);\n}\n\n.modal-container > header button {\n padding: 0;\n border: none;\n margin: 0;\n margin-left: auto;\n background: transparent;\n cursor: pointer;\n}\n\n.modal-container > header button:focus-visible {\n border-radius: 50%;\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\n.modal-container > header button::after {\n position: absolute;\n top: 6px;\n right: 4px;\n display: block;\n width: 40px;\n height: 40px;\n background-color: transparent;\n content: \"\";\n}\n\n.modal-container > header z-icon {\n --z-icon-width: calc(var(--space-unit) * 2.25);\n --z-icon-height: calc(var(--space-unit) * 2.25);\n\n display: flex;\n fill: var(--color-primary01-icon);\n}\n\n.modal-container > header > div {\n display: flex;\n width: 100%;\n align-items: baseline;\n margin-right: calc(var(--space-unit) * 2);\n}\n\n.modal-container > header h1,\n.modal-container > header .subtitle {\n padding: 0;\n margin: 0;\n color: var(--color-default-text);\n font-weight: var(--font-sb);\n}\n\n.modal-container > header h1 {\n font-size: var(--font-size-5);\n letter-spacing: 0;\n line-height: 1.4;\n}\n\n.modal-container > header .subtitle {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n letter-spacing: 0;\n line-height: 1.5;\n}\n\n.modal-container > header > div > h1 *:empty {\n display: none;\n}\n\n.modal-container > header h1 + .subtitle {\n margin-top: calc(var(--space-unit) * 0.5);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside {\n overflow: hidden auto;\n flex: 1 auto;\n background: var(--color-surface01);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside::-webkit-scrollbar,\n.modal-container-scroll-outside > .modal-content-scroll-outside::-webkit-scrollbar {\n width: 10px;\n background: linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);\n border-radius: var(--border-radius);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside::-webkit-scrollbar-thumb,\n.modal-container-scroll-outside > .modal-content-scroll-outside::-webkit-scrollbar-thumb {\n width: 10px;\n background-color: var(--color-primary01);\n}\n\n.modal-container-scroll-inside > .modal-content-scroll-inside::-webkit-scrollbar-thumb:hover,\n.modal-container-scroll-outside > .modal-content-scroll-outside::-webkit-scrollbar-thumb:hover {\n background-color: var(--color-hover-primary);\n}\n\n/* Firefox */\n.modal-container-scroll-inside .modal-content-scroll-inside,\n.modal-container-scroll-outside .modal-content-scroll-outside {\n scrollbar-color: var(--color-primary01) transparent;\n}\n\n/* Tablet / Desktop */\n@media only screen and (min-width: 768px) {\n .modal-background {\n position: fixed;\n top: 0;\n left: 0;\n overflow: hidden;\n width: 100vw;\n height: 100vh;\n background-color: var(--gray900);\n opacity: 0.7;\n }\n\n .modal-background.modal-background-scroll-outside {\n position: sticky;\n }\n\n .modal-container-scroll-inside {\n position: fixed;\n top: calc(var(--space-unit) * 6);\n left: 50%;\n overflow: hidden;\n width: auto;\n min-width: calc(var(--space-unit) * 40);\n height: auto;\n min-height: calc(var(--space-unit) * 40);\n max-height: calc(100vh - calc(var(--space-unit) * 6 * 2));\n border-radius: var(--border-radius);\n transform: translateX(-50%);\n }\n\n .modal-container-scroll-outside {\n position: absolute;\n top: calc(var(--space-unit) * 6);\n left: 50%;\n display: block;\n overflow: initial;\n width: auto;\n min-width: calc(var(--space-unit) * 40);\n height: auto;\n min-height: calc(var(--space-unit) * 40);\n max-height: calc(100vh - calc(var(--space-unit) * 6 * 2));\n transform: translateX(-50%);\n }\n\n .modal-container > .modal-content-scroll-outside {\n overflow: initial;\n }\n\n .modal-container-scroll-outside > header,\n .modal-container-scroll-inside > header {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n\n .modal-container-scroll-outside::after {\n display: block;\n height: calc(var(--space-unit) * 6);\n content: \" \";\n }\n\n .modal-dialog {\n position: fixed;\n top: 0;\n left: 0;\n height: auto;\n overflow-x: hidden;\n overflow-y: auto;\n }\n\n .modal-content-scroll-outside {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n\n .modal-dialog::-webkit-scrollbar {\n display: none;\n }\n}\n\n/* Desktop */\n@media only screen and (min-width: 1152px) {\n .modal-container > header {\n padding-top: calc(var(--space-unit) * 1.5);\n padding-bottom: calc(var(--space-unit) * 1.5);\n }\n\n .modal-container > header h1 {\n font-size: var(--font-size-6);\n font-weight: var(--font-sb);\n letter-spacing: 0;\n line-height: 1.333;\n }\n\n .modal-container > header .subtitle {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n letter-spacing: 0;\n line-height: 1.5;\n }\n\n .modal-container > header h1 + .subtitle {\n margin-top: 0;\n }\n}\n","import {Component, Element, Event, EventEmitter, Listen, Method, Prop, h} from \"@stencil/core\";\nimport dialogPolyfill from \"dialog-polyfill\";\nimport {KeyboardCode} from \"../../beans\";\nimport {Breakpoints} from \"../../constants/breakpoints\";\n\nconst FOCUSABLE_ELEMENTS_SELECTOR =\n ':is(button, input, select, textarea, [contenteditable=\"\"], [contenteditable=\"true\"], a[href], [tabindex], summary):not([disabled], [disabled=\"\"], [tabindex=\"-1\"], [aria-hidden=\"true\"], [hidden])';\n\n/**\n * @slot modalCloseButton - accept custom close button\n * @slot modalContent - set the content of the modal\n * @cssprop --z-modal-content-padding - set a default padding for the modal content slot to 16px\n */\n@Component({\n tag: \"z-modal\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZModal {\n /** unique id */\n @Prop()\n modalid: string;\n\n /** title text (optional) */\n @Prop()\n modaltitle?: string;\n\n /** subtitle (optional) */\n @Prop()\n modalsubtitle?: string;\n\n /** aria-label for close button (optional) */\n @Prop()\n closeButtonLabel = \"chiudi modale\";\n\n /** add role \"alertdialog\" to dialog (optional, default is false) */\n @Prop()\n alertdialog?: boolean = false;\n\n /** if true, the modal is closable (optional, default is true) */\n @Prop()\n closable?: boolean = true;\n\n /** if true, the modal can scroll inside, if false the viewport can scroll */\n @Prop()\n scrollInside?: boolean = true;\n\n private dialog: HTMLDialogElement;\n\n @Element() host: HTMLZModalElement;\n\n /** emitted on close button click, returns modalid */\n @Event()\n modalClose: EventEmitter;\n\n private emitModalClose(): void {\n if (this.closable) {\n this.modalClose.emit({modalid: this.modalid});\n }\n }\n\n /** emitted on modal header click, returns modalid */\n @Event()\n modalHeaderActive: EventEmitter;\n\n private emitModalHeaderActive(): void {\n this.modalHeaderActive.emit({modalid: this.modalid});\n }\n\n /** emitted on background click, returns modalid */\n @Event()\n modalBackgroundClick: EventEmitter;\n\n private emitBackgroundClick(): void {\n if (this.closable) {\n this.modalBackgroundClick.emit({modalid: this.modalid});\n }\n }\n\n private handlePageOverflow(): void {\n const mobileMediaQuery = window.matchMedia(`(max-width: ${Breakpoints.MOBILE}px)`);\n document.body.style[\"overflow-y\"] = mobileMediaQuery.matches ? \"hidden\" : \"\";\n }\n\n componentDidLoad(): void {\n if (typeof window.HTMLDialogElement !== \"function\") {\n /* workaround to fix `registerDialog` in test environment:\n stencil converts html elements to MockHTMLElement but this element is missing the `localName` property,\n which is used by `registerDialog` to recognize the element as dialog */\n if (!this.dialog.localName) {\n Object.defineProperty(this.dialog, \"localName\", {value: \"dialog\"});\n }\n dialogPolyfill.registerDialog(this.dialog);\n this.dialog.setAttribute(\"open\", \"true\");\n } else {\n this.open();\n }\n\n this.handlePageOverflow();\n }\n\n /** open modal */\n @Method()\n async open(): Promise<void> {\n this.dialog?.showModal();\n }\n\n /** close modal */\n @Method()\n async close(): Promise<void> {\n if (this.closable) {\n this.dialog?.close();\n }\n }\n\n /**\n * Get a list of focusable elements in the dialog.\n * Remove elements with `display: none` from the list, because they're not focusable.\n *\n * N.B. The list is built on the assumption that elements inside shadow root are placed ALL before the `modalContent` slot.\n * Adding focusable elements after the `modalContent` slot would break the order of elements in the list.\n */\n private get focusableElements(): HTMLElement[] {\n return [\n ...Array.from(this.host.shadowRoot.querySelectorAll<HTMLElement>(FOCUSABLE_ELEMENTS_SELECTOR)),\n ...Array.from(this.host.querySelectorAll<HTMLElement>(FOCUSABLE_ELEMENTS_SELECTOR)),\n ].filter((element) => getComputedStyle(element).display !== \"none\");\n }\n\n @Listen(\"keydown\")\n handleKeyDown(e: KeyboardEvent): void {\n if (e.code === KeyboardCode.ESC && !this.closable) {\n e.preventDefault();\n }\n\n if (e.code !== KeyboardCode.TAB) {\n return;\n }\n\n const focusableElements = this.focusableElements;\n const shadowActiveElement = this.host.shadowRoot.activeElement;\n const activeElement = this.host.ownerDocument.activeElement;\n const firstFocusableElement = focusableElements[0];\n const lastFocusableElement = focusableElements[focusableElements.length - 1];\n if (e.shiftKey && (shadowActiveElement == firstFocusableElement || activeElement == firstFocusableElement)) {\n // shift + tab was pressed and current active element is the first focusable element\n e.preventDefault();\n lastFocusableElement.focus();\n } else if (!e.shiftKey && (shadowActiveElement == lastFocusableElement || activeElement == lastFocusableElement)) {\n // shift + tab was pressed and current active element is the first focusable element\n e.preventDefault();\n firstFocusableElement.focus();\n }\n }\n\n private closeButtonSlot(): HTMLElement | void {\n if (this.closable) {\n return (\n <slot name=\"modalCloseButton\">\n <button\n aria-label={this.closeButtonLabel}\n onClick={() => this.close()}\n >\n <z-icon name=\"multiply-circle-filled\"></z-icon>\n </button>\n </slot>\n );\n }\n }\n\n private handleEscape(e: Event): void {\n if (this.closable) {\n return;\n }\n e.preventDefault();\n }\n\n render(): HTMLZModalElement {\n return (\n <dialog\n class={{\n \"modal-dialog\": !this.scrollInside,\n }}\n aria-labelledby=\"modal-title\"\n aria-describedby=\"modal-content\"\n role={this.alertdialog ? \"alertdialog\" : undefined}\n ref={(el) => (this.dialog = el as HTMLDialogElement)}\n onClose={() => this.emitModalClose()}\n onCancel={(e) => this.handleEscape(e)}\n >\n <div\n class={{\n \"modal-container\": true,\n \"modal-container-scroll-inside\": this.scrollInside,\n \"modal-container-scroll-outside\": !this.scrollInside,\n }}\n id={this.modalid}\n >\n <header onClick={this.emitModalHeaderActive.bind(this)}>\n <div>\n {this.modaltitle && <h1 id=\"modal-title\">{this.modaltitle}</h1>}\n {this.closeButtonSlot()}\n </div>\n {this.modalsubtitle && (\n <div\n class=\"subtitle\"\n id=\"modal-subtitle\"\n >\n {this.modalsubtitle}\n </div>\n )}\n </header>\n\n <div\n class={{\n \"modal-content-scroll-inside\": this.scrollInside,\n \"modal-content-scroll-outside\": !this.scrollInside,\n }}\n id=\"modal-content\"\n >\n <slot name=\"modalContent\"></slot>\n </div>\n </div>\n <div\n class={{\n \"modal-background\": true,\n \"modal-background-scroll-outside\": !this.scrollInside,\n }}\n data-action=\"modalBackground\"\n data-modal={this.modalid}\n onClick={() => {\n this.emitBackgroundClick();\n this.close();\n }}\n ></div>\n </dialog>\n );\n }\n}\n"],"mappings":"iIAAA,MAAMA,EAAY,msCAClB,MAAAC,EAAeD,E,MCMFE,EAAa,M,kGAShB,kBAAAC,CAAmBC,GACzBC,KAAKC,YAAYC,KAAKH,E,CAKhB,uBAAAI,GACN,OACEC,EAAA,OAAKC,MAAM,sBACTD,EAAA,OAAKC,MAAM,oBACTD,EAAA,QAAMC,MAAM,aAAaL,KAAKM,mB,CAMtC,MAAAC,GACE,OACEH,EAAA,OAAAI,IAAA,2CACEC,SAAU,EACVC,IAAMC,GAASX,KAAKY,kBAAoBD,EACxCN,MAAM,WACNQ,WAAaC,IACXA,EAAEC,iBACFf,KAAKY,kBAAkBI,UAAUC,IAAI,WAAW,EAElDC,YAAa,KACXlB,KAAKY,kBAAkBI,UAAUG,OAAO,WAAW,EAErDC,OAASN,IACPA,EAAEC,iBACF,GAAID,EAAEO,aAAatB,MAAMuB,OAAQ,CAC/BtB,KAAKY,kBAAkBI,UAAUG,OAAO,YACxCnB,KAAKF,mBAAmBgB,EAAEO,aAAatB,M,IAI1CC,KAAKG,0BACNC,EAAA,QAAAI,IAAA,6C,aCrDR,IAAIe,EAAqBC,OAAOC,YAChC,IAAKF,UAA6BA,IAAuB,SAAU,CACjEA,EAAqB,SAASE,EAAYC,EAAOC,GAC/CA,EAAIA,GAAK,GACT,IAAIC,EAAKC,SAASC,YAAY,eAC9BF,EAAGG,gBAAgBL,IAASC,EAAEK,UAAWL,EAAEM,WAAYN,EAAEO,QAAU,MACnE,OAAON,CACX,EACEL,EAAmBY,UAAYX,OAAOY,MAAMD,SAC9C,CAUA,SAASE,EAAkBC,EAAQZ,GACjC,IAAIa,EAAQ,KAAOb,EAAMc,KAAKC,cAC9B,UAAWH,EAAOC,KAAW,WAAY,CACvCD,EAAOC,GAAOb,EAClB,CACE,OAAOY,EAAOI,cAAchB,EAC9B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