@zanichelli/albe-web-components 7.3.4 → 7.3.6

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 (598) hide show
  1. package/CHANGELOG.md +2479 -0
  2. package/LICENSE +21 -21
  3. package/dist/cjs/{breakpoints-776c8868.js → breakpoints-88c4fd6c.js} +1 -1
  4. package/dist/cjs/{icons-dea2e345.js → icons-a9849a41.js} +763 -763
  5. package/dist/cjs/{index-677bbad4.js → index-2dfdb7e2.js} +324 -317
  6. package/dist/cjs/index.cjs.js +11 -5
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{utils-3b7e4fdf.js → utils-b447f1da.js} +94 -94
  9. package/dist/cjs/{utils-49853b30.js → utils-f21f9a4f.js} +75 -75
  10. package/dist/cjs/web-components-library.cjs.js +1 -1
  11. package/dist/cjs/z-alert.cjs.entry.js +8 -8
  12. package/dist/cjs/z-anchor-navigation.cjs.entry.js +42 -42
  13. package/dist/cjs/z-app-header_11.cjs.entry.js +989 -989
  14. package/dist/cjs/z-aria-alert.cjs.entry.js +10 -10
  15. package/dist/cjs/z-avatar.cjs.entry.js +33 -33
  16. package/dist/cjs/z-body.cjs.entry.js +9 -9
  17. package/dist/cjs/z-button-sort.cjs.entry.js +42 -42
  18. package/dist/cjs/z-card.cjs.entry.js +55 -55
  19. package/dist/cjs/z-carousel.cjs.entry.js +135 -135
  20. package/dist/cjs/z-chip.cjs.entry.js +29 -29
  21. package/dist/cjs/z-combobox.cjs.entry.js +190 -190
  22. package/dist/cjs/z-contextual-menu.cjs.entry.js +35 -35
  23. package/dist/cjs/z-cover-hero.cjs.entry.js +46 -46
  24. package/dist/cjs/z-date-picker.cjs.entry.js +164 -164
  25. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +129 -129
  26. package/dist/cjs/z-file-upload.cjs.entry.js +174 -174
  27. package/dist/cjs/z-file.cjs.entry.js +37 -37
  28. package/dist/cjs/z-ghost-loading.cjs.entry.js +9 -9
  29. package/dist/cjs/z-heading.cjs.entry.js +9 -9
  30. package/dist/cjs/z-info-box.cjs.entry.js +14 -14
  31. package/dist/cjs/z-info-reveal.cjs.entry.js +54 -54
  32. package/dist/cjs/z-link.cjs.entry.js +63 -63
  33. package/dist/cjs/z-logo.cjs.entry.js +15 -15
  34. package/dist/cjs/z-menu-section.cjs.entry.js +43 -43
  35. package/dist/cjs/z-menu.cjs.entry.js +108 -108
  36. package/dist/cjs/z-messages-pocket.cjs.entry.js +36 -36
  37. package/dist/cjs/z-myz-card-alert.cjs.entry.js +52 -52
  38. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +25 -25
  39. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +8 -8
  40. package/dist/cjs/z-myz-card-footer.cjs.entry.js +58 -58
  41. package/dist/cjs/z-myz-card-icon.cjs.entry.js +12 -12
  42. package/dist/cjs/z-myz-card-info.cjs.entry.js +118 -118
  43. package/dist/cjs/z-myz-card-list.cjs.entry.js +27 -27
  44. package/dist/cjs/z-myz-card_4.cjs.entry.js +82 -82
  45. package/dist/cjs/z-myz-list-item.cjs.entry.js +26 -26
  46. package/dist/cjs/z-myz-list.cjs.entry.js +24 -24
  47. package/dist/cjs/z-navigation-tab-link.cjs.entry.js +60 -60
  48. package/dist/cjs/z-navigation-tab.cjs.entry.js +62 -62
  49. package/dist/cjs/z-navigation-tabs.cjs.entry.js +187 -115
  50. package/dist/cjs/z-notification.cjs.entry.js +30 -30
  51. package/dist/cjs/z-otp.cjs.entry.js +30 -30
  52. package/dist/cjs/z-pagination.cjs.entry.js +219 -219
  53. package/dist/cjs/z-panel-elem.cjs.entry.js +19 -19
  54. package/dist/cjs/z-pocket-message.cjs.entry.js +8 -8
  55. package/dist/cjs/z-pocket_3.cjs.entry.js +102 -102
  56. package/dist/cjs/z-popover.cjs.entry.js +317 -317
  57. package/dist/cjs/z-range-picker.cjs.entry.js +331 -331
  58. package/dist/cjs/z-section-title.cjs.entry.js +22 -22
  59. package/dist/cjs/z-select.cjs.entry.js +322 -322
  60. package/dist/cjs/z-skip-to-content.cjs.entry.js +55 -55
  61. package/dist/cjs/z-slideshow.cjs.entry.js +118 -118
  62. package/dist/cjs/z-stepper-item.cjs.entry.js +11 -11
  63. package/dist/cjs/z-stepper.cjs.entry.js +8 -8
  64. package/dist/cjs/z-table-body.cjs.entry.js +13 -13
  65. package/dist/cjs/z-table-cell.cjs.entry.js +25 -25
  66. package/dist/cjs/z-table-empty-box.cjs.entry.js +21 -21
  67. package/dist/cjs/z-table-expanded-row.cjs.entry.js +8 -8
  68. package/dist/cjs/z-table-footer.cjs.entry.js +12 -12
  69. package/dist/cjs/z-table-head.cjs.entry.js +12 -12
  70. package/dist/cjs/z-table-header-row.cjs.entry.js +11 -11
  71. package/dist/cjs/z-table-header.cjs.entry.js +71 -71
  72. package/dist/cjs/z-table-row.cjs.entry.js +32 -32
  73. package/dist/cjs/z-table-sticky-footer.cjs.entry.js +8 -8
  74. package/dist/cjs/z-table.cjs.entry.js +69 -69
  75. package/dist/cjs/z-tag.cjs.entry.js +11 -11
  76. package/dist/cjs/z-toast-notification-list.cjs.entry.js +45 -45
  77. package/dist/cjs/z-toast-notification.cjs.entry.js +187 -187
  78. package/dist/cjs/z-toggle-button.cjs.entry.js +25 -25
  79. package/dist/cjs/z-toggle-switch.cjs.entry.js +40 -40
  80. package/dist/cjs/z-tooltip.cjs.entry.js +26 -26
  81. package/dist/cjs/z-typography.cjs.entry.js +19 -19
  82. package/dist/cjs/z-visually-hidden.cjs.entry.js +8 -8
  83. package/dist/collection/beans/index.js +325 -318
  84. package/dist/collection/components/buttons/z-button/index.js +245 -245
  85. package/dist/collection/components/buttons/z-button/styles.css +149 -149
  86. package/dist/collection/components/buttons/z-button-sort/index.js +220 -220
  87. package/dist/collection/components/buttons/z-button-sort/styles.css +101 -101
  88. package/dist/collection/components/buttons/z-chip/index.js +155 -155
  89. package/dist/collection/components/buttons/z-chip/styles.css +138 -138
  90. package/dist/collection/components/buttons/z-toggle-button/index.js +146 -146
  91. package/dist/collection/components/buttons/z-toggle-button/styles.css +60 -60
  92. package/dist/collection/components/buttons/z-toggle-switch/index.js +144 -144
  93. package/dist/collection/components/buttons/z-toggle-switch/styles.css +104 -104
  94. package/dist/collection/components/date-picker/styles.css +436 -436
  95. package/dist/collection/components/date-picker/utils.js +76 -76
  96. package/dist/collection/components/date-picker/z-date-picker/index.js +295 -295
  97. package/dist/collection/components/date-picker/z-range-picker/index.js +499 -499
  98. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +53 -53
  99. package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +51 -51
  100. package/dist/collection/components/file-upload/z-file/index.js +131 -131
  101. package/dist/collection/components/file-upload/z-file/styles.css +23 -23
  102. package/dist/collection/components/file-upload/z-file-upload/index.js +363 -363
  103. package/dist/collection/components/file-upload/z-file-upload/styles.css +84 -84
  104. package/dist/collection/components/icons/icons.js +764 -764
  105. package/dist/collection/components/icons/z-icon/index.js +114 -114
  106. package/dist/collection/components/icons/z-icon/styles.css +14 -14
  107. package/dist/collection/components/index.js +8 -8
  108. package/dist/collection/components/indicators/z-stepper/index.js +21 -21
  109. package/dist/collection/components/indicators/z-stepper/styles.css +19 -19
  110. package/dist/collection/components/indicators/z-stepper-item/index.js +93 -93
  111. package/dist/collection/components/indicators/z-stepper-item/styles.css +114 -114
  112. package/dist/collection/components/inputs/z-combobox/index.js +570 -570
  113. package/dist/collection/components/inputs/z-combobox/styles.css +197 -197
  114. package/dist/collection/components/inputs/z-input/index.js +764 -764
  115. package/dist/collection/components/inputs/z-input/styles.css +398 -398
  116. package/dist/collection/components/inputs/z-input-message/index.js +89 -89
  117. package/dist/collection/components/inputs/z-input-message/styles.css +48 -48
  118. package/dist/collection/components/inputs/z-searchbar/index.js +599 -599
  119. package/dist/collection/components/inputs/z-searchbar/styles.css +185 -185
  120. package/dist/collection/components/inputs/z-select/index.js +754 -754
  121. package/dist/collection/components/inputs/z-select/styles.css +123 -123
  122. package/dist/collection/components/list/z-list/index.js +91 -91
  123. package/dist/collection/components/list/z-list/styles.css +6 -6
  124. package/dist/collection/components/list/z-list-element/index.js +508 -508
  125. package/dist/collection/components/list/z-list-element/styles.css +121 -121
  126. package/dist/collection/components/list/z-list-group/index.js +175 -175
  127. package/dist/collection/components/list/z-list-group/styles.css +21 -21
  128. package/dist/collection/components/list/z-toast-notification-list/index.js +105 -105
  129. package/dist/collection/components/list/z-toast-notification-list/styles.css +100 -100
  130. package/dist/collection/components/logo/z-logo/index.js +131 -131
  131. package/dist/collection/components/logo/z-logo/styles.css +29 -29
  132. package/dist/collection/components/modal/z-modal/index.js +319 -319
  133. package/dist/collection/components/modal/z-modal/styles.css +198 -198
  134. package/dist/collection/components/navigation/tabs/navigation-tab.css +136 -136
  135. package/dist/collection/components/navigation/tabs/z-navigation-tab/index.js +276 -242
  136. package/dist/collection/components/navigation/tabs/z-navigation-tab-link/index.js +298 -264
  137. package/dist/collection/components/navigation/tabs/z-navigation-tabs/index.js +296 -200
  138. package/dist/collection/components/navigation/tabs/z-navigation-tabs/styles.css +104 -104
  139. package/dist/collection/components/navigation/z-app-header/index.js +428 -428
  140. package/dist/collection/components/navigation/z-app-header/index.stories.js +393 -393
  141. package/dist/collection/components/navigation/z-app-header/styles.css +420 -420
  142. package/dist/collection/components/navigation/z-link/index.js +317 -317
  143. package/dist/collection/components/navigation/z-link/styles.css +167 -167
  144. package/dist/collection/components/navigation/z-menu/index.js +250 -250
  145. package/dist/collection/components/navigation/z-menu/styles.css +213 -213
  146. package/dist/collection/components/navigation/z-menu-section/index.js +125 -125
  147. package/dist/collection/components/navigation/z-menu-section/styles.css +123 -123
  148. package/dist/collection/components/notification/z-info-box/index.js +85 -85
  149. package/dist/collection/components/notification/z-info-box/styles.css +23 -23
  150. package/dist/collection/components/notification/z-notification/index.js +195 -195
  151. package/dist/collection/components/notification/z-notification/styles.css +114 -114
  152. package/dist/collection/components/notification/z-toast-notification/index.js +399 -399
  153. package/dist/collection/components/notification/z-toast-notification/styles.css +254 -254
  154. package/dist/collection/components/notification/z-tooltip/index.js +157 -157
  155. package/dist/collection/components/notification/z-tooltip/styles.css +17 -17
  156. package/dist/collection/components/panel/z-panel-elem/index.js +193 -193
  157. package/dist/collection/components/panel/z-panel-elem/styles.css +39 -39
  158. package/dist/collection/components/z-anchor-navigation/index.js +95 -95
  159. package/dist/collection/components/z-anchor-navigation/styles.css +129 -129
  160. package/dist/collection/components/z-aria-alert/index.js +39 -39
  161. package/dist/collection/components/z-avatar/index.js +142 -142
  162. package/dist/collection/components/z-avatar/styles.css +32 -32
  163. package/dist/collection/components/z-card/index.js +186 -186
  164. package/dist/collection/components/z-card/styles.css +206 -206
  165. package/dist/collection/components/z-carousel/index.js +300 -300
  166. package/dist/collection/components/z-carousel/styles.css +129 -129
  167. package/dist/collection/components/z-contextual-menu/index.js +126 -126
  168. package/dist/collection/components/z-contextual-menu/styles.css +60 -60
  169. package/dist/collection/components/z-cover-hero/index.js +146 -146
  170. package/dist/collection/components/z-cover-hero/styles.css +93 -93
  171. package/dist/collection/components/z-divider/index.js +95 -95
  172. package/dist/collection/components/z-divider/styles.css +37 -37
  173. package/dist/collection/components/z-ghost-loading/index.js +18 -18
  174. package/dist/collection/components/z-ghost-loading/styles.css +34 -34
  175. package/dist/collection/components/z-info-reveal/index.js +147 -147
  176. package/dist/collection/components/z-info-reveal/styles.css +103 -103
  177. package/dist/collection/components/z-offcanvas/index.js +162 -162
  178. package/dist/collection/components/z-offcanvas/styles.css +182 -182
  179. package/dist/collection/components/z-pagination/index.js +435 -435
  180. package/dist/collection/components/z-pagination/styles.css +199 -199
  181. package/dist/collection/components/z-popover/index.js +513 -513
  182. package/dist/collection/components/z-popover/styles.css +147 -147
  183. package/dist/collection/components/z-section-title/index.js +88 -88
  184. package/dist/collection/components/z-section-title/styles.css +44 -44
  185. package/dist/collection/components/z-skip-to-content/index.js +139 -139
  186. package/dist/collection/components/z-skip-to-content/styles.css +80 -80
  187. package/dist/collection/components/z-table/z-table/index.js +352 -352
  188. package/dist/collection/components/z-table/z-table/styles.css +115 -115
  189. package/dist/collection/components/z-table/z-table-body/index.js +23 -23
  190. package/dist/collection/components/z-table/z-table-body/styles.css +9 -9
  191. package/dist/collection/components/z-table/z-table-cell/index.js +86 -86
  192. package/dist/collection/components/z-table/z-table-cell/styles.css +58 -58
  193. package/dist/collection/components/z-table/z-table-empty-box/index.js +72 -72
  194. package/dist/collection/components/z-table/z-table-empty-box/styles.css +38 -38
  195. package/dist/collection/components/z-table/z-table-expanded-row/index.js +39 -39
  196. package/dist/collection/components/z-table/z-table-expanded-row/styles.css +9 -9
  197. package/dist/collection/components/z-table/z-table-footer/index.js +22 -22
  198. package/dist/collection/components/z-table/z-table-footer/styles.css +5 -5
  199. package/dist/collection/components/z-table/z-table-head/index.js +22 -22
  200. package/dist/collection/components/z-table/z-table-head/styles.css +5 -5
  201. package/dist/collection/components/z-table/z-table-header/index.js +238 -238
  202. package/dist/collection/components/z-table/z-table-header/styles.css +71 -71
  203. package/dist/collection/components/z-table/z-table-header-row/index.js +41 -41
  204. package/dist/collection/components/z-table/z-table-header-row/styles.css +13 -13
  205. package/dist/collection/components/z-table/z-table-row/index.js +92 -92
  206. package/dist/collection/components/z-table/z-table-row/styles.css +45 -45
  207. package/dist/collection/components/z-table/z-table-sticky-footer/index.js +21 -21
  208. package/dist/collection/components/z-table/z-table-sticky-footer/styles.css +11 -11
  209. package/dist/collection/components/z-tag/index.js +65 -65
  210. package/dist/collection/components/z-tag/styles.css +46 -46
  211. package/dist/collection/components/z-visually-hidden/index.js +18 -18
  212. package/dist/collection/components/z-visually-hidden/styles.css +12 -12
  213. package/dist/collection/constants/breakpoints.js +3 -3
  214. package/dist/collection/constants/icons.js +6 -6
  215. package/dist/collection/deprecated/typography/z-body/index.js +68 -68
  216. package/dist/collection/deprecated/typography/z-heading/index.js +68 -68
  217. package/dist/collection/deprecated/typography/z-typography/index.js +91 -91
  218. package/dist/collection/deprecated/typography/z-typography/styles.css +65 -65
  219. package/dist/collection/index.js +7 -7
  220. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +129 -129
  221. package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +44 -44
  222. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +151 -151
  223. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/styles.css +62 -62
  224. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +22 -22
  225. package/dist/collection/snowflakes/myz/card/z-myz-card-body/styles.css +13 -13
  226. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +93 -93
  227. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/styles.css +11 -11
  228. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +177 -177
  229. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +72 -72
  230. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +219 -219
  231. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +182 -182
  232. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +22 -22
  233. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/styles.css +20 -20
  234. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +109 -109
  235. package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +59 -59
  236. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +81 -81
  237. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +69 -69
  238. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +199 -199
  239. package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +93 -93
  240. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +60 -60
  241. package/dist/collection/snowflakes/myz/card/z-myz-card-list/styles.css +41 -41
  242. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +78 -78
  243. package/dist/collection/snowflakes/myz/list/z-myz-list/styles.css +4 -4
  244. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +192 -192
  245. package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +66 -66
  246. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/index.js +120 -120
  247. package/dist/collection/snowflakes/myz/pocket/z-messages-pocket/styles.css +102 -102
  248. package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +191 -191
  249. package/dist/collection/snowflakes/myz/pocket/z-pocket/styles.css +44 -44
  250. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +84 -84
  251. package/dist/collection/snowflakes/myz/pocket/z-pocket-body/styles.css +41 -41
  252. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +93 -93
  253. package/dist/collection/snowflakes/myz/pocket/z-pocket-header/styles.css +27 -27
  254. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/index.js +22 -22
  255. package/dist/collection/snowflakes/myz/pocket/z-pocket-message/styles.css +44 -44
  256. package/dist/collection/snowflakes/myz/z-alert/index.js +47 -47
  257. package/dist/collection/snowflakes/myz/z-alert/styles.css +28 -28
  258. package/dist/collection/snowflakes/myz/z-otp/index.js +120 -120
  259. package/dist/collection/snowflakes/myz/z-otp/styles.css +47 -47
  260. package/dist/collection/snowflakes/myz/z-slideshow/index.js +180 -180
  261. package/dist/collection/snowflakes/myz/z-slideshow/styles.css +127 -127
  262. package/dist/collection/utils/storybook-utils.js +51 -51
  263. package/dist/collection/utils/utils.js +113 -113
  264. package/dist/esm/{breakpoints-14432d05.js → breakpoints-c386984e.js} +1 -1
  265. package/dist/esm/{icons-55b0b113.js → icons-6cd265c6.js} +763 -763
  266. package/dist/esm/{index-03c01696.js → index-f3202f58.js} +325 -318
  267. package/dist/esm/index.js +5 -5
  268. package/dist/esm/loader.js +1 -1
  269. package/dist/esm/polyfills/core-js.js +0 -0
  270. package/dist/esm/polyfills/dom.js +0 -0
  271. package/dist/esm/polyfills/es5-html-element.js +0 -0
  272. package/dist/esm/polyfills/index.js +0 -0
  273. package/dist/esm/polyfills/system.js +0 -0
  274. package/dist/esm/{utils-f8eb3944.js → utils-0cfc97ad.js} +94 -94
  275. package/dist/esm/{utils-a7846d0f.js → utils-930405dd.js} +75 -75
  276. package/dist/esm/web-components-library.js +1 -1
  277. package/dist/esm/z-alert.entry.js +8 -8
  278. package/dist/esm/z-anchor-navigation.entry.js +42 -42
  279. package/dist/esm/z-app-header_11.entry.js +989 -989
  280. package/dist/esm/z-aria-alert.entry.js +10 -10
  281. package/dist/esm/z-avatar.entry.js +33 -33
  282. package/dist/esm/z-body.entry.js +9 -9
  283. package/dist/esm/z-button-sort.entry.js +42 -42
  284. package/dist/esm/z-card.entry.js +55 -55
  285. package/dist/esm/z-carousel.entry.js +135 -135
  286. package/dist/esm/z-chip.entry.js +29 -29
  287. package/dist/esm/z-combobox.entry.js +190 -190
  288. package/dist/esm/z-contextual-menu.entry.js +35 -35
  289. package/dist/esm/z-cover-hero.entry.js +46 -46
  290. package/dist/esm/z-date-picker.entry.js +164 -164
  291. package/dist/esm/z-dragdrop-area_2.entry.js +129 -129
  292. package/dist/esm/z-file-upload.entry.js +174 -174
  293. package/dist/esm/z-file.entry.js +37 -37
  294. package/dist/esm/z-ghost-loading.entry.js +9 -9
  295. package/dist/esm/z-heading.entry.js +9 -9
  296. package/dist/esm/z-info-box.entry.js +14 -14
  297. package/dist/esm/z-info-reveal.entry.js +54 -54
  298. package/dist/esm/z-link.entry.js +63 -63
  299. package/dist/esm/z-logo.entry.js +15 -15
  300. package/dist/esm/z-menu-section.entry.js +43 -43
  301. package/dist/esm/z-menu.entry.js +108 -108
  302. package/dist/esm/z-messages-pocket.entry.js +36 -36
  303. package/dist/esm/z-myz-card-alert.entry.js +52 -52
  304. package/dist/esm/z-myz-card-dictionary.entry.js +25 -25
  305. package/dist/esm/z-myz-card-footer-sections.entry.js +8 -8
  306. package/dist/esm/z-myz-card-footer.entry.js +58 -58
  307. package/dist/esm/z-myz-card-icon.entry.js +12 -12
  308. package/dist/esm/z-myz-card-info.entry.js +118 -118
  309. package/dist/esm/z-myz-card-list.entry.js +27 -27
  310. package/dist/esm/z-myz-card_4.entry.js +82 -82
  311. package/dist/esm/z-myz-list-item.entry.js +26 -26
  312. package/dist/esm/z-myz-list.entry.js +24 -24
  313. package/dist/esm/z-navigation-tab-link.entry.js +60 -60
  314. package/dist/esm/z-navigation-tab.entry.js +62 -62
  315. package/dist/esm/z-navigation-tabs.entry.js +187 -115
  316. package/dist/esm/z-notification.entry.js +30 -30
  317. package/dist/esm/z-otp.entry.js +30 -30
  318. package/dist/esm/z-pagination.entry.js +219 -219
  319. package/dist/esm/z-panel-elem.entry.js +19 -19
  320. package/dist/esm/z-pocket-message.entry.js +8 -8
  321. package/dist/esm/z-pocket_3.entry.js +102 -102
  322. package/dist/esm/z-popover.entry.js +317 -317
  323. package/dist/esm/z-range-picker.entry.js +331 -331
  324. package/dist/esm/z-section-title.entry.js +22 -22
  325. package/dist/esm/z-select.entry.js +322 -322
  326. package/dist/esm/z-skip-to-content.entry.js +55 -55
  327. package/dist/esm/z-slideshow.entry.js +118 -118
  328. package/dist/esm/z-stepper-item.entry.js +11 -11
  329. package/dist/esm/z-stepper.entry.js +8 -8
  330. package/dist/esm/z-table-body.entry.js +13 -13
  331. package/dist/esm/z-table-cell.entry.js +25 -25
  332. package/dist/esm/z-table-empty-box.entry.js +21 -21
  333. package/dist/esm/z-table-expanded-row.entry.js +8 -8
  334. package/dist/esm/z-table-footer.entry.js +12 -12
  335. package/dist/esm/z-table-head.entry.js +12 -12
  336. package/dist/esm/z-table-header-row.entry.js +11 -11
  337. package/dist/esm/z-table-header.entry.js +71 -71
  338. package/dist/esm/z-table-row.entry.js +32 -32
  339. package/dist/esm/z-table-sticky-footer.entry.js +8 -8
  340. package/dist/esm/z-table.entry.js +69 -69
  341. package/dist/esm/z-tag.entry.js +11 -11
  342. package/dist/esm/z-toast-notification-list.entry.js +45 -45
  343. package/dist/esm/z-toast-notification.entry.js +187 -187
  344. package/dist/esm/z-toggle-button.entry.js +25 -25
  345. package/dist/esm/z-toggle-switch.entry.js +40 -40
  346. package/dist/esm/z-tooltip.entry.js +26 -26
  347. package/dist/esm/z-typography.entry.js +19 -19
  348. package/dist/esm/z-visually-hidden.entry.js +8 -8
  349. package/dist/types/beans/index.d.ts +380 -374
  350. package/dist/types/components/buttons/z-button/index.d.ts +29 -29
  351. package/dist/types/components/buttons/z-button-sort/index.d.ts +28 -28
  352. package/dist/types/components/buttons/z-chip/index.d.ts +20 -20
  353. package/dist/types/components/buttons/z-toggle-button/index.d.ts +17 -17
  354. package/dist/types/components/buttons/z-toggle-switch/index.d.ts +17 -17
  355. package/dist/types/components/date-picker/utils.d.ts +4 -4
  356. package/dist/types/components/date-picker/z-date-picker/index.d.ts +29 -29
  357. package/dist/types/components/date-picker/z-range-picker/index.d.ts +42 -42
  358. package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +9 -9
  359. package/dist/types/components/file-upload/z-file/index.d.ts +22 -22
  360. package/dist/types/components/file-upload/z-file-upload/index.d.ts +52 -52
  361. package/dist/types/components/icons/icons.d.ts +1362 -1362
  362. package/dist/types/components/icons/z-icon/index.d.ts +14 -14
  363. package/dist/types/components/indicators/z-stepper/index.d.ts +6 -6
  364. package/dist/types/components/indicators/z-stepper-item/index.d.ts +19 -19
  365. package/dist/types/components/inputs/z-combobox/index.d.ts +71 -71
  366. package/dist/types/components/inputs/z-input/index.d.ts +86 -86
  367. package/dist/types/components/inputs/z-input-message/index.d.ts +12 -12
  368. package/dist/types/components/inputs/z-searchbar/index.d.ts +73 -73
  369. package/dist/types/components/inputs/z-select/index.d.ts +82 -82
  370. package/dist/types/components/list/z-list/index.d.ts +15 -15
  371. package/dist/types/components/list/z-list-element/index.d.ts +95 -95
  372. package/dist/types/components/list/z-list-group/index.d.ts +28 -28
  373. package/dist/types/components/list/z-toast-notification-list/index.d.ts +14 -14
  374. package/dist/types/components/logo/z-logo/index.d.ts +15 -15
  375. package/dist/types/components/modal/z-modal/index.d.ts +47 -47
  376. package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +64 -52
  377. package/dist/types/components/navigation/tabs/z-navigation-tab-link/index.d.ts +72 -60
  378. package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +88 -70
  379. package/dist/types/components/navigation/z-app-header/index.d.ts +143 -143
  380. package/dist/types/components/navigation/z-link/index.d.ts +40 -40
  381. package/dist/types/components/navigation/z-menu/index.d.ts +61 -61
  382. package/dist/types/components/navigation/z-menu-section/index.d.ts +31 -31
  383. package/dist/types/components/notification/z-info-box/index.d.ts +14 -14
  384. package/dist/types/components/notification/z-notification/index.d.ts +32 -32
  385. package/dist/types/components/notification/z-toast-notification/index.d.ts +56 -56
  386. package/dist/types/components/notification/z-tooltip/index.d.ts +32 -32
  387. package/dist/types/components/panel/z-panel-elem/index.d.ts +25 -25
  388. package/dist/types/components/z-anchor-navigation/index.d.ts +39 -39
  389. package/dist/types/components/z-aria-alert/index.d.ts +6 -6
  390. package/dist/types/components/z-avatar/index.d.ts +16 -16
  391. package/dist/types/components/z-card/index.d.ts +44 -44
  392. package/dist/types/components/z-carousel/index.d.ts +63 -63
  393. package/dist/types/components/z-contextual-menu/index.d.ts +26 -26
  394. package/dist/types/components/z-cover-hero/index.d.ts +41 -41
  395. package/dist/types/components/z-divider/index.d.ts +10 -10
  396. package/dist/types/components/z-ghost-loading/index.d.ts +3 -3
  397. package/dist/types/components/z-info-reveal/index.d.ts +29 -29
  398. package/dist/types/components/z-offcanvas/index.d.ts +27 -27
  399. package/dist/types/components/z-pagination/index.d.ts +109 -109
  400. package/dist/types/components/z-popover/index.d.ts +69 -69
  401. package/dist/types/components/z-section-title/index.d.ts +25 -25
  402. package/dist/types/components/z-skip-to-content/index.d.ts +21 -21
  403. package/dist/types/components/z-table/z-table/index.d.ts +48 -48
  404. package/dist/types/components/z-table/z-table-body/index.d.ts +5 -5
  405. package/dist/types/components/z-table/z-table-cell/index.d.ts +12 -12
  406. package/dist/types/components/z-table/z-table-empty-box/index.d.ts +12 -12
  407. package/dist/types/components/z-table/z-table-expanded-row/index.d.ts +5 -5
  408. package/dist/types/components/z-table/z-table-footer/index.d.ts +5 -5
  409. package/dist/types/components/z-table/z-table-head/index.d.ts +5 -5
  410. package/dist/types/components/z-table/z-table-header/index.d.ts +29 -29
  411. package/dist/types/components/z-table/z-table-header-row/index.d.ts +6 -6
  412. package/dist/types/components/z-table/z-table-row/index.d.ts +13 -13
  413. package/dist/types/components/z-table/z-table-sticky-footer/index.d.ts +6 -6
  414. package/dist/types/components/z-tag/index.d.ts +13 -13
  415. package/dist/types/components/z-visually-hidden/index.d.ts +3 -3
  416. package/dist/types/components.d.ts +40 -0
  417. package/dist/types/constants/breakpoints.d.ts +3 -3
  418. package/dist/types/constants/icons.d.ts +6 -6
  419. package/dist/types/deprecated/typography/z-body/index.d.ts +9 -9
  420. package/dist/types/deprecated/typography/z-heading/index.d.ts +9 -9
  421. package/dist/types/deprecated/typography/z-typography/index.d.ts +11 -11
  422. package/dist/types/index.d.ts +7 -7
  423. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +16 -16
  424. package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +19 -19
  425. package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +7 -7
  426. package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +12 -12
  427. package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +24 -24
  428. package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +34 -34
  429. package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +7 -7
  430. package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +19 -19
  431. package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +9 -9
  432. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +36 -36
  433. package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +9 -9
  434. package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +11 -11
  435. package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +25 -25
  436. package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +16 -16
  437. package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +25 -25
  438. package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +12 -12
  439. package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +18 -18
  440. package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +7 -7
  441. package/dist/types/snowflakes/myz/z-alert/index.d.ts +9 -9
  442. package/dist/types/snowflakes/myz/z-otp/index.d.ts +17 -17
  443. package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +30 -30
  444. package/dist/types/utils/utils.d.ts +24 -24
  445. package/dist/web-components-library/index.esm.js +1 -1
  446. package/{www/build/p-c47ec900.entry.js → dist/web-components-library/p-01278f82.entry.js} +1 -1
  447. package/{www/build/p-c655b1c8.entry.js → dist/web-components-library/p-06de959d.entry.js} +1 -1
  448. package/dist/web-components-library/p-0c07b4f9.entry.js +1 -0
  449. package/dist/web-components-library/{p-d2fb8d30.entry.js → p-1505703f.entry.js} +1 -1
  450. package/dist/web-components-library/p-1b4d5a24.entry.js +1 -0
  451. package/dist/web-components-library/{p-9c3e91fd.entry.js → p-2c871e12.entry.js} +1 -1
  452. package/dist/web-components-library/{p-baabfd0d.entry.js → p-32c36f6c.entry.js} +1 -1
  453. package/dist/web-components-library/{p-d1c86e77.entry.js → p-33251591.entry.js} +1 -1
  454. package/dist/web-components-library/{p-0c3f4eed.entry.js → p-39c52a0d.entry.js} +1 -1
  455. package/dist/web-components-library/{p-b10a244b.entry.js → p-3bd60dc8.entry.js} +1 -1
  456. package/dist/web-components-library/{p-0afb1436.entry.js → p-4367f978.entry.js} +1 -1
  457. package/dist/web-components-library/{p-d152fcef.entry.js → p-4c85652a.entry.js} +1 -1
  458. package/dist/web-components-library/p-515b46d9.entry.js +1 -0
  459. package/dist/web-components-library/p-562eb005.entry.js +1 -0
  460. package/dist/web-components-library/p-5d651052.entry.js +1 -0
  461. package/dist/web-components-library/{p-50d1f5a4.entry.js → p-642d6be4.entry.js} +1 -1
  462. package/{www/build/p-cf34dfa1.entry.js → dist/web-components-library/p-66c4eda8.entry.js} +1 -1
  463. package/dist/web-components-library/{p-968d9b80.entry.js → p-6736e894.entry.js} +1 -1
  464. package/dist/web-components-library/{p-a8df4340.entry.js → p-6816cba3.entry.js} +1 -1
  465. package/dist/web-components-library/p-6b454593.js +1 -0
  466. package/dist/web-components-library/{p-da923c76.entry.js → p-74c27fc5.entry.js} +1 -1
  467. package/dist/web-components-library/{p-70e71580.entry.js → p-7a276150.entry.js} +1 -1
  468. package/dist/web-components-library/{p-8153e216.entry.js → p-7c94ae08.entry.js} +1 -1
  469. package/dist/web-components-library/{p-802723a9.entry.js → p-7d8711d1.entry.js} +1 -1
  470. package/dist/web-components-library/{p-0164ca54.entry.js → p-82291408.entry.js} +1 -1
  471. package/dist/web-components-library/{p-ad664ac3.entry.js → p-84116d2d.entry.js} +1 -1
  472. package/dist/web-components-library/{p-04631bc5.entry.js → p-8539c6f2.entry.js} +1 -1
  473. package/{www/build/p-72c76071.entry.js → dist/web-components-library/p-8d4b2131.entry.js} +1 -1
  474. package/dist/web-components-library/{p-560116ec.entry.js → p-93191e1d.entry.js} +1 -1
  475. package/dist/web-components-library/p-9566edeb.entry.js +1 -0
  476. package/dist/web-components-library/p-98eac308.entry.js +1 -0
  477. package/dist/web-components-library/{p-2415d4d8.entry.js → p-9c3f4437.entry.js} +1 -1
  478. package/dist/web-components-library/{p-25678da1.entry.js → p-9d57a84c.entry.js} +1 -1
  479. package/dist/web-components-library/p-a4e68d80.entry.js +1 -0
  480. package/dist/web-components-library/{p-50bc8152.entry.js → p-a93e5cad.entry.js} +1 -1
  481. package/dist/web-components-library/{p-32eec10f.entry.js → p-adce9752.entry.js} +1 -1
  482. package/dist/web-components-library/{p-b301e6e1.js → p-b1068026.js} +1 -1
  483. package/dist/web-components-library/{p-f0eb6020.entry.js → p-b85be817.entry.js} +1 -1
  484. package/dist/web-components-library/{p-8272a099.entry.js → p-c085be1d.entry.js} +1 -1
  485. package/dist/web-components-library/{p-356b2fc1.entry.js → p-c64c5cbb.entry.js} +1 -1
  486. package/dist/web-components-library/{p-75883172.entry.js → p-c736b92c.entry.js} +1 -1
  487. package/dist/web-components-library/p-c75451cc.entry.js +1 -0
  488. package/{www/build/p-6c9421c6.entry.js → dist/web-components-library/p-cf53ce51.entry.js} +1 -1
  489. package/dist/web-components-library/{p-e02ecf4c.entry.js → p-daf06f6f.entry.js} +1 -1
  490. package/dist/web-components-library/{p-9665df65.entry.js → p-dcea357f.entry.js} +1 -1
  491. package/{www/build/p-ad48bdb5.js → dist/web-components-library/p-e9bf5f75.js} +1 -1
  492. package/dist/web-components-library/{p-0b1de3ce.entry.js → p-eb293bba.entry.js} +1 -1
  493. package/dist/web-components-library/{p-1d19e382.entry.js → p-ffc56e80.entry.js} +1 -1
  494. package/dist/web-components-library/web-components-library.esm.js +1 -1
  495. package/package.json +106 -106
  496. package/react/components.d.ts +90 -90
  497. package/react/components.js +96 -96
  498. package/react/index.d.ts +1 -1
  499. package/react/index.js +13 -13
  500. package/react/react-component-lib/createComponent.d.ts +10 -10
  501. package/react/react-component-lib/createComponent.js +97 -97
  502. package/react/react-component-lib/createOverlayComponent.d.ts +21 -21
  503. package/react/react-component-lib/createOverlayComponent.js +115 -115
  504. package/react/react-component-lib/index.d.ts +2 -2
  505. package/react/react-component-lib/index.js +7 -7
  506. package/react/react-component-lib/interfaces.d.ts +29 -29
  507. package/react/react-component-lib/interfaces.js +2 -2
  508. package/react/react-component-lib/utils/attachProps.d.ts +12 -12
  509. package/react/react-component-lib/utils/attachProps.js +104 -104
  510. package/react/react-component-lib/utils/case.d.ts +2 -2
  511. package/react/react-component-lib/utils/case.js +11 -11
  512. package/react/react-component-lib/utils/dev.d.ts +2 -2
  513. package/react/react-component-lib/utils/dev.js +17 -17
  514. package/react/react-component-lib/utils/index.d.ts +10 -10
  515. package/react/react-component-lib/utils/index.js +53 -53
  516. package/readme.md +280 -280
  517. package/src-react/index.ts +1 -0
  518. package/www/build/index.esm.js +1 -1
  519. package/{dist/web-components-library/p-c47ec900.entry.js → www/build/p-01278f82.entry.js} +1 -1
  520. package/{dist/web-components-library/p-c655b1c8.entry.js → www/build/p-06de959d.entry.js} +1 -1
  521. package/www/build/p-0c07b4f9.entry.js +1 -0
  522. package/www/build/{p-d2fb8d30.entry.js → p-1505703f.entry.js} +1 -1
  523. package/www/build/p-18076d34.js +129 -0
  524. package/www/build/p-1b4d5a24.entry.js +1 -0
  525. package/www/build/{p-9c3e91fd.entry.js → p-2c871e12.entry.js} +1 -1
  526. package/www/build/{p-baabfd0d.entry.js → p-32c36f6c.entry.js} +1 -1
  527. package/www/build/{p-d1c86e77.entry.js → p-33251591.entry.js} +1 -1
  528. package/www/build/{p-0c3f4eed.entry.js → p-39c52a0d.entry.js} +1 -1
  529. package/www/build/{p-b10a244b.entry.js → p-3bd60dc8.entry.js} +1 -1
  530. package/www/build/{p-0afb1436.entry.js → p-4367f978.entry.js} +1 -1
  531. package/www/build/{p-d152fcef.entry.js → p-4c85652a.entry.js} +1 -1
  532. package/www/build/p-515b46d9.entry.js +1 -0
  533. package/www/build/p-562eb005.entry.js +1 -0
  534. package/www/build/p-5d651052.entry.js +1 -0
  535. package/www/build/{p-50d1f5a4.entry.js → p-642d6be4.entry.js} +1 -1
  536. package/{dist/web-components-library/p-cf34dfa1.entry.js → www/build/p-66c4eda8.entry.js} +1 -1
  537. package/www/build/{p-968d9b80.entry.js → p-6736e894.entry.js} +1 -1
  538. package/www/build/{p-a8df4340.entry.js → p-6816cba3.entry.js} +1 -1
  539. package/www/build/p-6b454593.js +1 -0
  540. package/www/build/{p-da923c76.entry.js → p-74c27fc5.entry.js} +1 -1
  541. package/www/build/{p-70e71580.entry.js → p-7a276150.entry.js} +1 -1
  542. package/www/build/{p-8153e216.entry.js → p-7c94ae08.entry.js} +1 -1
  543. package/www/build/{p-802723a9.entry.js → p-7d8711d1.entry.js} +1 -1
  544. package/www/build/{p-0164ca54.entry.js → p-82291408.entry.js} +1 -1
  545. package/www/build/{p-ad664ac3.entry.js → p-84116d2d.entry.js} +1 -1
  546. package/www/build/{p-04631bc5.entry.js → p-8539c6f2.entry.js} +1 -1
  547. package/{dist/web-components-library/p-72c76071.entry.js → www/build/p-8d4b2131.entry.js} +1 -1
  548. package/www/build/{p-560116ec.entry.js → p-93191e1d.entry.js} +1 -1
  549. package/www/build/p-9566edeb.entry.js +1 -0
  550. package/www/build/p-98eac308.entry.js +1 -0
  551. package/www/build/{p-2415d4d8.entry.js → p-9c3f4437.entry.js} +1 -1
  552. package/www/build/{p-25678da1.entry.js → p-9d57a84c.entry.js} +1 -1
  553. package/www/build/p-a4e68d80.entry.js +1 -0
  554. package/www/build/{p-50bc8152.entry.js → p-a93e5cad.entry.js} +1 -1
  555. package/www/build/{p-32eec10f.entry.js → p-adce9752.entry.js} +1 -1
  556. package/www/build/{p-b301e6e1.js → p-b1068026.js} +1 -1
  557. package/www/build/{p-f0eb6020.entry.js → p-b85be817.entry.js} +1 -1
  558. package/www/build/p-bc2bd463.css +1617 -0
  559. package/www/build/{p-8272a099.entry.js → p-c085be1d.entry.js} +1 -1
  560. package/www/build/{p-356b2fc1.entry.js → p-c64c5cbb.entry.js} +1 -1
  561. package/www/build/{p-75883172.entry.js → p-c736b92c.entry.js} +1 -1
  562. package/www/build/p-c75451cc.entry.js +1 -0
  563. package/{dist/web-components-library/p-6c9421c6.entry.js → www/build/p-cf53ce51.entry.js} +1 -1
  564. package/www/build/{p-e02ecf4c.entry.js → p-daf06f6f.entry.js} +1 -1
  565. package/www/build/{p-9665df65.entry.js → p-dcea357f.entry.js} +1 -1
  566. package/{dist/web-components-library/p-ad48bdb5.js → www/build/p-e9bf5f75.js} +1 -1
  567. package/www/build/{p-0b1de3ce.entry.js → p-eb293bba.entry.js} +1 -1
  568. package/www/build/{p-1d19e382.entry.js → p-ffc56e80.entry.js} +1 -1
  569. package/www/build/web-components-library.esm.js +1 -1
  570. package/www/index.html +1 -1
  571. package/www/pages/file-upload.html +258 -258
  572. package/www/pages/notification.html +299 -299
  573. package/dist/web-components-library/p-15bb0526.entry.js +0 -1
  574. package/dist/web-components-library/p-3d4b8a34.entry.js +0 -1
  575. package/dist/web-components-library/p-79919c84.entry.js +0 -1
  576. package/dist/web-components-library/p-825b4767.entry.js +0 -1
  577. package/dist/web-components-library/p-b6b122a3.entry.js +0 -1
  578. package/dist/web-components-library/p-bfd78f08.entry.js +0 -1
  579. package/dist/web-components-library/p-dfed050d.js +0 -1
  580. package/dist/web-components-library/p-e09f95c9.entry.js +0 -1
  581. package/dist/web-components-library/p-e5410351.entry.js +0 -1
  582. package/dist/web-components-library/p-f9d29371.entry.js +0 -1
  583. package/www/build/p-15bb0526.entry.js +0 -1
  584. package/www/build/p-3d4b8a34.entry.js +0 -1
  585. package/www/build/p-79919c84.entry.js +0 -1
  586. package/www/build/p-825b4767.entry.js +0 -1
  587. package/www/build/p-b6b122a3.entry.js +0 -1
  588. package/www/build/p-bfd78f08.entry.js +0 -1
  589. package/www/build/p-d20434c3.js +0 -1
  590. package/www/build/p-dfed050d.js +0 -1
  591. package/www/build/p-e09f95c9.entry.js +0 -1
  592. package/www/build/p-e5410351.entry.js +0 -1
  593. package/www/build/p-f39bb490.css +0 -2
  594. package/www/build/p-f9d29371.entry.js +0 -1
  595. /package/dist/web-components-library/{p-21c3aea0.js → p-bb85c467.js} +0 -0
  596. /package/dist/web-components-library/{p-e35d3552.js → p-d69e14fb.js} +0 -0
  597. /package/www/build/{p-21c3aea0.js → p-bb85c467.js} +0 -0
  598. /package/www/build/{p-e35d3552.js → p-d69e14fb.js} +0 -0
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as i,H as e}from"./p-d17ebc2f.js";import{r as c}from"./p-b1068026.js";import{l}from"./p-6b454593.js";import"./p-d69e14fb.js";const o=class{constructor(i){s(this,i),this.toggleClick=t(this,"toggleClick",7),this.disabled=!1,this.labelPosition=l.LEFT,this.checked=!1,this.htmlid=`toggle-switch-id-${c()}`}emitToggleClick(){this.toggleClick.emit({id:this.htmlid,checked:this.checked})}handleClick(s){this.disabled||(this.checked=s.target.checked,this.emitToggleClick())}render(){return i(e,null,i("input",{id:this.htmlid,type:"checkbox",checked:this.checked,disabled:this.disabled,onChange:this.handleClick.bind(this)}),i("label",{htmlFor:this.htmlid,class:{[this.labelPosition]:!0,disabled:this.disabled}},i("span",null,i("slot",null)),i("span",{class:{container:!0,disabled:this.disabled,checked:this.checked}},i("span",{class:"circle"},this.checked&&i("z-icon",{width:12,height:12,name:"checkmark"})))))}};o.style='.sc-z-toggle-switch-h{position:relative;display:inline-flex;font-family:var(--font-family-sans);font-weight:var(--font-rg)}label.sc-z-toggle-switch{display:flex;flex-direction:row;align-items:center;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{color:var(--color-text01);letter-spacing:0}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{position:relative;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 4);height:18px;align-items:center;background-color:var(--gray500);border-radius:var(--space-unit);color:var(--gray500);cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){box-shadow:var(--shadow-focus-primary);outline:none}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{position:absolute;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);align-items:center;justify-content:center;margin:0;background-color:var(--color-white);border-radius:7px;box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type="checkbox"].sc-z-toggle-switch{position:absolute;z-index:-1;opacity:0;pointer-events:none}';export{o as z_toggle_switch}
@@ -0,0 +1 @@
1
+ import{r as i,c as t,h as s}from"./p-d17ebc2f.js";import{a}from"./p-b1068026.js";import"./p-6b454593.js";import"./p-d69e14fb.js";const e=class{constructor(s){i(this,s),this.zListItemLinkClick=t(this,"zListItemLinkClick",7),this.zListItemClick=t(this,"zListItemClick",7),this.linktarget="_self",this.underlined=!0,this.emitZListItemLinkClick=this.emitZListItemLinkClick.bind(this),this.emitZListItemClick=this.emitZListItemClick.bind(this)}emitZListItemLinkClick(i,t){this.zListItemLinkClick.emit({e:i,linkId:t})}emitZListItemClick(i,t){this.zListItemClick.emit({e:i,listitemid:t})}render(){const i=this.listitemid?`link_${this.listitemid}`:"";return s("li",{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",{class:this.underlined&&"border"},this.icon&&s("z-icon",{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",null)))}};e.style=":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(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);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(--bg-grey-200)}:host li span:hover,a:hover{color:var(--myz-blue);fill:var(--myz-blue)}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(--myz-blue);fill:var(--myz-blue)}";export{e as z_myz_list_item}
@@ -1 +1 @@
1
- import{r as t,c as e,h as a,H as l,g as i}from"./p-d17ebc2f.js";import{B as o,c as r}from"./p-dfed050d.js";import{m as s}from"./p-e35d3552.js";const d=class{constructor(a){t(this,a),this.callToAction=e(this,"callToAction",7),this.callToActionTwo=e(this,"callToActionTwo",7),this.errorMessage="Siamo spiacenti, non siamo riusciti a caricare il contenuto richiesto",this.bordered=!1,this.columnSticky=!1,this.empty=!1,this.error=!1,this.headerSticky=!1,this.message="Siamo spiacenti, al momento non sono presenti dati da visualizzare",this.subtitle=""}handleResize(){this.isMobile=window.innerWidth<=s}handleOrientationChange(){this.isMobile=screen.width<=s}componentWillLoad(){var t;this.isMobile=window.innerWidth<=s;const e=this.host.querySelector('[slot="table-body"]');this.hasTableBody=!!(null===(t=null==e?void 0:e.children)||void 0===t?void 0:t.length),e&&!this.hasTableBody&&e.remove()}componentWillRender(){this.host.setAttribute("role","table")}renderError(t){const e=this.lines?`calc(40px * ${this.lines})`:"auto";return a(l,null,a("div",{class:t},a("slot",{name:"table-header"})),a("z-table-error",null,a("div",{class:"error-content",style:{minHeight:e}},a("slot",{name:"error-image"}),a("div",{class:"text"},a("span",{class:"body-3-sb error-message"},this.errorMessage),a("slot",{name:"error-action"})))))}renderEmpty(t){const e=this.isMobile?r.SMALL:r.BIG,i=this.hasTableBody?"table-content":"";return this.hasTableBody?a(l,null,a("div",{class:t},a("slot",{name:"table-header"}),a("div",{class:i},a("slot",{name:"table-body"}),a("z-table-empty-box",{class:this.bordered&&"bordered",message:this.message,subtitle:this.subtitle},!!this.callToActionLabel&&a("z-button",{slot:"cta1",variant:o.TERTIARY,onClick:()=>this.callToAction.emit(),size:e},this.callToActionLabel),!!this.callToActionTwoLabel&&a("z-button",{slot:"cta2",variant:o.TERTIARY,onClick:()=>this.callToActionTwo.emit(),size:e},this.callToActionTwoLabel))))):a(l,null,a("div",{class:t},a("slot",{name:"table-header"})),a("z-table-empty-box",{class:this.bordered&&"bordered",message:this.message,subtitle:this.subtitle},!!this.callToActionLabel&&a("z-button",{slot:"cta1",variant:o.TERTIARY,onClick:()=>this.callToAction.emit(),size:e},this.callToActionLabel),!!this.callToActionTwoLabel&&a("z-button",{slot:"cta2",variant:o.TERTIARY,onClick:()=>this.callToActionTwo.emit(),size:e},this.callToActionTwoLabel)))}render(){const t=`table ${this.empty?"table-empty":""} ${this.bordered?"table-bordered":""}\n ${this.columnSticky?"table-column-sticky":""}\n ${this.headerSticky?"table-header-sticky":""}`;return this.error?this.renderError(t):this.empty?this.renderEmpty(t):a(l,null,a("div",{class:t},a("slot",null)),a("slot",{name:"sticky-footer"}))}static get assetsDirs(){return["assets"]}get host(){return i(this)}};d.style="z-table{display:block;width:100%;background-color:var(--color-white);font-family:var(--dashboard-font);font-weight:var(--font-rg);overflow-x:auto}z-table>div.table{display:table;width:100%;border-collapse:separate}z-table>div.table-bordered>z-table-body>z-table-row>z-table-cell:not(:last-child),z-table>div.table-bordered>z-table-head>z-table-header-row>z-table-header:not(:last-child){border-right:var(--border-size-small) solid var(--bg-grey-200)}z-table>div>z-table-body>z-table-row[expandable]>z-table-cell:first-child,z-table>div>z-table-head>z-table-header-row[expandable]>z-table-header:first-child{border-right:none}z-table>div>z-table-body>z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table>div>z-table-body>z-table-row[expanded]+z-table-expanded-row{border-bottom:1px solid var(--gray200)}z-table>div.table-column-sticky>z-table-body>z-table-row>z-table-cell:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{position:sticky;z-index:1;left:0;box-shadow:1px 0 4px -1px rgb(66 69 72 / 40%)}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{position:sticky;z-index:2;top:0;box-shadow:0 2px 3px -3px rgb(66 69 72 / 40%)}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{z-index:5}z-table-body{width:auto;background-color:var(--color-white)}z-table-empty-box{display:flex;flex-direction:column;flex-grow:1;border-bottom:var(--border-size-small) solid var(--bg-grey-200)}z-table-empty-box.bordered{border-left:var(--border-size-small) solid var(--bg-grey-200)}.error-message{margin-top:calc(var(--space-unit) * 2)}.table-content{display:flex;width:100%;flex-direction:row}.error-content{display:flex;padding:calc(var(--space-unit) * 3);font-family:var(--dashboard-font)}.error-content>img{width:244px;height:188px;margin-right:calc(var(--space-unit) * 3)}@media only screen and (max-width: 768px){z-table>div.table-empty{display:none}.error-content{display:flex;flex-direction:column}.error-content>img{width:auto;height:auto}.text{padding:calc(var(--space-unit) * 3) 0}}";export{d as z_table}
1
+ import{r as t,c as e,h as a,H as l,g as i}from"./p-d17ebc2f.js";import{B as o,d as r}from"./p-6b454593.js";import{m as s}from"./p-d69e14fb.js";const d=class{constructor(a){t(this,a),this.callToAction=e(this,"callToAction",7),this.callToActionTwo=e(this,"callToActionTwo",7),this.errorMessage="Siamo spiacenti, non siamo riusciti a caricare il contenuto richiesto",this.bordered=!1,this.columnSticky=!1,this.empty=!1,this.error=!1,this.headerSticky=!1,this.message="Siamo spiacenti, al momento non sono presenti dati da visualizzare",this.subtitle=""}handleResize(){this.isMobile=window.innerWidth<=s}handleOrientationChange(){this.isMobile=screen.width<=s}componentWillLoad(){var t;this.isMobile=window.innerWidth<=s;const e=this.host.querySelector('[slot="table-body"]');this.hasTableBody=!!(null===(t=null==e?void 0:e.children)||void 0===t?void 0:t.length),e&&!this.hasTableBody&&e.remove()}componentWillRender(){this.host.setAttribute("role","table")}renderError(t){const e=this.lines?`calc(40px * ${this.lines})`:"auto";return a(l,null,a("div",{class:t},a("slot",{name:"table-header"})),a("z-table-error",null,a("div",{class:"error-content",style:{minHeight:e}},a("slot",{name:"error-image"}),a("div",{class:"text"},a("span",{class:"body-3-sb error-message"},this.errorMessage),a("slot",{name:"error-action"})))))}renderEmpty(t){const e=this.isMobile?r.SMALL:r.BIG,i=this.hasTableBody?"table-content":"";return this.hasTableBody?a(l,null,a("div",{class:t},a("slot",{name:"table-header"}),a("div",{class:i},a("slot",{name:"table-body"}),a("z-table-empty-box",{class:this.bordered&&"bordered",message:this.message,subtitle:this.subtitle},!!this.callToActionLabel&&a("z-button",{slot:"cta1",variant:o.TERTIARY,onClick:()=>this.callToAction.emit(),size:e},this.callToActionLabel),!!this.callToActionTwoLabel&&a("z-button",{slot:"cta2",variant:o.TERTIARY,onClick:()=>this.callToActionTwo.emit(),size:e},this.callToActionTwoLabel))))):a(l,null,a("div",{class:t},a("slot",{name:"table-header"})),a("z-table-empty-box",{class:this.bordered&&"bordered",message:this.message,subtitle:this.subtitle},!!this.callToActionLabel&&a("z-button",{slot:"cta1",variant:o.TERTIARY,onClick:()=>this.callToAction.emit(),size:e},this.callToActionLabel),!!this.callToActionTwoLabel&&a("z-button",{slot:"cta2",variant:o.TERTIARY,onClick:()=>this.callToActionTwo.emit(),size:e},this.callToActionTwoLabel)))}render(){const t=`table ${this.empty?"table-empty":""} ${this.bordered?"table-bordered":""}\n ${this.columnSticky?"table-column-sticky":""}\n ${this.headerSticky?"table-header-sticky":""}`;return this.error?this.renderError(t):this.empty?this.renderEmpty(t):a(l,null,a("div",{class:t},a("slot",null)),a("slot",{name:"sticky-footer"}))}static get assetsDirs(){return["assets"]}get host(){return i(this)}};d.style="z-table{display:block;width:100%;background-color:var(--color-white);font-family:var(--dashboard-font);font-weight:var(--font-rg);overflow-x:auto}z-table>div.table{display:table;width:100%;border-collapse:separate}z-table>div.table-bordered>z-table-body>z-table-row>z-table-cell:not(:last-child),z-table>div.table-bordered>z-table-head>z-table-header-row>z-table-header:not(:last-child){border-right:var(--border-size-small) solid var(--bg-grey-200)}z-table>div>z-table-body>z-table-row[expandable]>z-table-cell:first-child,z-table>div>z-table-head>z-table-header-row[expandable]>z-table-header:first-child{border-right:none}z-table>div>z-table-body>z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table>div>z-table-body>z-table-row[expanded]+z-table-expanded-row{border-bottom:1px solid var(--gray200)}z-table>div.table-column-sticky>z-table-body>z-table-row>z-table-cell:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{position:sticky;z-index:1;left:0;box-shadow:1px 0 4px -1px rgb(66 69 72 / 40%)}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{position:sticky;z-index:2;top:0;box-shadow:0 2px 3px -3px rgb(66 69 72 / 40%)}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{z-index:5}z-table-body{width:auto;background-color:var(--color-white)}z-table-empty-box{display:flex;flex-direction:column;flex-grow:1;border-bottom:var(--border-size-small) solid var(--bg-grey-200)}z-table-empty-box.bordered{border-left:var(--border-size-small) solid var(--bg-grey-200)}.error-message{margin-top:calc(var(--space-unit) * 2)}.table-content{display:flex;width:100%;flex-direction:row}.error-content{display:flex;padding:calc(var(--space-unit) * 3);font-family:var(--dashboard-font)}.error-content>img{width:244px;height:188px;margin-right:calc(var(--space-unit) * 3)}@media only screen and (max-width: 768px){z-table>div.table-empty{display:none}.error-content{display:flex;flex-direction:column}.error-content>img{width:auto;height:auto}.text{padding:calc(var(--space-unit) * 3) 0}}";export{d as z_table}
@@ -1 +1 @@
1
- import{r,h as a,H as e}from"./p-d17ebc2f.js";const n=class{constructor(a){r(this,a)}render(){return a(e,null)}};n.style=':host{display:inline-block;overflow:hidden;width:100%;height:100%;background:var(--bg-neutral-100);border-radius:4px;transform:translate3d(0, 0, 0)}:host::after{display:block;width:100%;height:100%;animation:progress 1.6s ease-in-out infinite;background-image:linear-gradient(\r\n 90deg,\r\n var(--bg-neutral-100) 0%,\r\n var(--bg-neutral-150) 95%,\r\n var(--bg-neutral-100) 100%\r\n );box-shadow:#e8ebee20 0 0 1px;content:" "}@keyframes progress{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}';export{n as z_ghost_loading}
1
+ import{r,h as a,H as e}from"./p-d17ebc2f.js";const n=class{constructor(a){r(this,a)}render(){return a(e,null)}};n.style=':host{display:inline-block;overflow:hidden;width:100%;height:100%;background:var(--bg-neutral-100);border-radius:4px;transform:translate3d(0, 0, 0)}:host::after{display:block;width:100%;height:100%;animation:progress 1.6s ease-in-out infinite;background-image:linear-gradient(\n 90deg,\n var(--bg-neutral-100) 0%,\n var(--bg-neutral-150) 95%,\n var(--bg-neutral-100) 100%\n );box-shadow:#e8ebee20 0 0 1px;content:" "}@keyframes progress{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}';export{n as z_ghost_loading}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as o,g as s}from"./p-d17ebc2f.js";import{N as n,a as e,g as a,b as r}from"./p-6b454593.js";const h=class{constructor(i){t(this,i),this.orientation=n.HORIZONTAL,this.size=e.BIG}get direction(){return this.orientation==n.HORIZONTAL?"Left":"Top"}get dimension(){return this.orientation==n.HORIZONTAL?"Width":"Height"}setChildrenSize(){Array.from(this.host.children).forEach((t=>{t.setAttribute("size",this.size)}))}setChildrenOrientation(){Array.from(this.host.children).forEach((t=>{t.setAttribute("orientation",this.orientation)}))}checkScrollVisible(){this.tabsNav&&(this.canNavigate=this.tabsNav[`scroll${this.dimension}`]>this.tabsNav[`client${this.dimension}`])}checkScrollEnabled(){this.tabsNav&&(this.canNavigateNext=this.tabsNav[`scroll${this.direction}`]+this.tabsNav[`client${this.dimension}`]<this.tabsNav[`scroll${this.dimension}`],this.canNavigatePrev=this.tabsNav[`scroll${this.direction}`]>0)}onTabSelected(t){const i=t.target;Array.from(this.host.children).forEach(((t,o)=>{t!==i?t.removeAttribute("selected"):this.tabFocus=o}))}navigateBackwards(){this.tabsNav.scrollBy({[this.direction.toLowerCase()]:0-this.tabsNav[`client${this.dimension}`]/2,behavior:"smooth"})}navigateForward(){this.tabsNav.scrollBy({[this.direction.toLowerCase()]:this.tabsNav[`scroll${this.direction}`]+this.tabsNav[`client${this.dimension}`]/2,behavior:"smooth"})}navigateThroughTabs(t){const i=Array.from(this.host.children);if(t.key!==a.TAB){if(!this.isArrowNavigation(t))return!0;t.preventDefault(),i[this.tabFocus].querySelector('[role="tab"]').setAttribute("tabindex","-1"),t.key===r.RIGHT&&this.orientation==n.HORIZONTAL||t.key===r.DOWN&&this.orientation==n.VERTICAL?(this.tabFocus++,this.tabFocus>=i.length&&(this.tabFocus=0)):(t.key===r.LEFT&&this.orientation==n.HORIZONTAL||t.key===r.UP&&this.orientation==n.VERTICAL)&&(this.tabFocus--,this.tabFocus<0&&(this.tabFocus=i.length-1)),i[this.tabFocus].querySelector('[role="tab"]').hasAttribute("disabled")?this.navigateThroughTabs(t):(i[this.tabFocus].querySelector('[role="tab"]').setAttribute("tabindex","0"),i[this.tabFocus].querySelector('[role="tab"]').focus())}else i.forEach(((i,o)=>{var s,n;i.hasAttribute("selected")&&"Z-NAVIGATION-TABS"===(null===(n=null===(s=t.target)||void 0===s?void 0:s.offsetParent)||void 0===n?void 0:n.nodeName)&&(this.tabFocus=o)}))}isArrowNavigation(t){return!!Object.keys(r).find((i=>r[i]===t.key))}setTabindex(){var t;const i=Array.from(this.host.children);i.length>0&&(i.forEach(((t,i)=>{var o;t.hasAttribute("aria-selected")&&(this.tabFocus=i),null===(o=t.querySelector('[role="tab"]'))||void 0===o||o.setAttribute("tabindex","-1")})),null===(t=i[this.tabFocus].querySelector('[role="tab"]'))||void 0===t||t.setAttribute("tabindex","0"))}componentWillLoad(){this.tabFocus=0}componentDidRender(){this.setChildrenSize(),this.setChildrenOrientation(),this.checkScrollVisible(),this.setTabindex()}render(){return i(o,{class:{"interactive-2":this.size===e.SMALL,"interactive-1":this.size!==e.SMALL},scrollable:this.canNavigate},this.canNavigate&&i("button",{class:"navigation-button",onClick:this.navigateBackwards.bind(this),tabindex:"-1",disabled:!this.canNavigatePrev},i("z-icon",{name:this.orientation===n.HORIZONTAL?"chevron-left":"chevron-up",width:16,height:16})),i("nav",{role:"tablist","aria-label":this.ariaLabel,ref:t=>this.tabsNav=null!=t?t:this.tabsNav,onScroll:this.checkScrollEnabled.bind(this)},i("slot",null)),this.canNavigate&&i("button",{class:"navigation-button",onClick:this.navigateForward.bind(this),onKeyDown:t=>{this.navigateThroughTabs(t)},tabindex:"-1",disabled:!this.canNavigateNext},i("z-icon",{name:this.orientation===n.HORIZONTAL?"chevron-right":"chevron-down",width:16,height:16})))}get host(){return s(this)}static get watchers(){return{size:["setChildrenSize"],orientation:["setChildrenOrientation"],canNavigate:["checkScrollEnabled"]}}};h.style=':host{position:relative;z-index:0;display:flex;overflow:hidden;flex-direction:row;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host,:host *,::slotted(*){box-sizing:border-box}::-webkit-scrollbar{display:none}.navigation-button{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;padding:0;border:none;margin:0;background:var(--color-white);border-radius:var(--border-no-radius);box-shadow:0 0 4px 1px rgb(66 69 72 / 40%);cursor:pointer;fill:var(--color-primary01);outline:none}.navigation-button:focus:focus-visible{box-shadow:inset var(--shadow-focus-primary);fill:var(--color-primary01)}.navigation-button:disabled{display:none}nav{display:flex;overflow:auto;align-items:center;justify-content:flex-start;scroll-behavior:smooth;scrollbar-width:none}:host([orientation="horizontal"]) nav{width:100%}:host([orientation="horizontal"]) .navigation-button{top:0;width:calc(var(--space-unit) * 4);height:100%}:host([orientation="horizontal"]) .navigation-button:first-child{left:0}:host([orientation="horizontal"]) .navigation-button:last-child{right:0}:host([orientation="vertical"]){width:fit-content;flex-direction:column}:host([orientation="vertical"]) nav{height:100%;flex-direction:column;align-items:stretch}:host([orientation="vertical"]) .navigation-button{left:0;width:100%;height:calc(var(--space-unit) * 4)}:host([orientation="vertical"]) .navigation-button:first-child{top:0}:host([orientation="vertical"]) .navigation-button:last-child{bottom:0}:host([size="small"][orientation="vertical"]) .navigation-button{height:calc(var(--space-unit) * 4)}';export{h as z_navigation_tabs}
@@ -1 +1 @@
1
- import{r,h as e}from"./p-d17ebc2f.js";import{L as t}from"./p-dfed050d.js";const i=class{constructor(e){r(this,e),this.ispressed=!1,this.ishighlighted=!1}retrieveClass(){let r="";return this.cardtype===t.REAL?r+="real":this.cardtype===t.TRIAL?r+="trial":this.cardtype===t.TEMP&&(r+="temp"),this.faded?r+=" faded":this.ispressed?r+=" pressed":this.ishighlighted&&(r+=" highlighted"),r}render(){return e("div",{class:this.retrieveClass(),tabindex:"0"},e("slot",null))}};i.style=":host{--card-overflow:hidden}div{display:flex;overflow:var(--card-overflow);width:auto;width:256px;height:522px;box-sizing:border-box;flex-direction:column;border:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius)}div.real,div.trial,div.temp{border-color:var(--accent)}div.faded{border:var(--border-size-medium) solid var(--color-surface02)}div.highlighted{box-shadow:var(--shadow-4);outline:none}div.pressed{box-shadow:var(--shadow-8);outline:none}div:focus{box-shadow:var(--shadow-focus-primary);outline:none}";const a=class{constructor(e){r(this,e)}render(){return e("div",null,e("slot",{name:"alert"}),e("slot",{name:"cover"}))}};a.style=":host{width:auto;height:340px}:host>div{position:relative;display:flex;width:auto;height:340px;align-items:center;justify-content:center}";const o=class{constructor(e){r(this,e)}hadleOnImageError(){this.img=this.defaultimg}render(){return e("img",{class:this.faded&&"faded",onError:this.hadleOnImageError.bind(this),alt:this.titolo,src:this.img})}};o.style="img{display:block;max-width:100%;height:340px;margin:auto;object-fit:cover}img.faded{opacity:0.3}";const s=class{constructor(e){r(this,e),this.allowTooltip=!1}getTitle(){return this.allowTooltip?this.titolo:""}componentDidLoad(){this.elementHasEllipsis()&&(this.allowTooltip=!0)}elementHasEllipsis(){return this.ellipsis.offsetWidth<this.ellipsis.scrollWidth}retrieveClass(){return{real:this.cardtype===t.REAL,trial:this.cardtype===t.TRIAL,temp:this.cardtype===t.TEMP,faded:this.faded}}render(){return e("header",{class:this.retrieveClass()},e("slot",{name:"aria-heading"}),e("span",{class:"card-title",ref:r=>this.ellipsis=r,title:this.getTitle()},this.titolo),e("slot",{name:"icon"}))}};s.style='header{position:relative;display:flex;width:auto;height:calc(var(--space-unit) * 6);flex-direction:row;align-items:flex-start;justify-content:space-between;border-bottom:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius) var(--border-radius) var(--border-no-radius) var(--border-no-radius)}slot[name="aria-heading"]::slotted(*){position:absolute;overflow:hidden !important;width:1px !important;height:1px !important;padding:0 !important;border:0 none !important;margin:-1px !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important}header.real,header.trial,header.temp{border-bottom:var(--border-size-medium) solid var(--accent);background-color:var(--accent-lighter)}.card-title{overflow:hidden;height:calc(var(--space-unit) * 2);padding:calc(var(--space-unit) * 2);margin:0;color:var(--color-surface05);font-family:var(--font-family-sans);font-size:12px;font-weight:var(--font-sb);letter-spacing:0.22px;line-height:calc(var(--space-unit) * 2);text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.faded{border-bottom:var(--border-size-medium) solid var(--color-surface02)}.faded.real,.faded.trial,.faded.temp{border-top:var(--border-size-medium) solid var(--accent);border-right:var(--border-size-medium) solid var(--accent);border-left:var(--border-size-medium) solid var(--accent)}';export{i as z_myz_card,a as z_myz_card_body,o as z_myz_card_cover,s as z_myz_card_header}
1
+ import{r,h as e}from"./p-d17ebc2f.js";import{L as t}from"./p-6b454593.js";const i=class{constructor(e){r(this,e),this.ispressed=!1,this.ishighlighted=!1}retrieveClass(){let r="";return this.cardtype===t.REAL?r+="real":this.cardtype===t.TRIAL?r+="trial":this.cardtype===t.TEMP&&(r+="temp"),this.faded?r+=" faded":this.ispressed?r+=" pressed":this.ishighlighted&&(r+=" highlighted"),r}render(){return e("div",{class:this.retrieveClass(),tabindex:"0"},e("slot",null))}};i.style=":host{--card-overflow:hidden}div{display:flex;overflow:var(--card-overflow);width:auto;width:256px;height:522px;box-sizing:border-box;flex-direction:column;border:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius)}div.real,div.trial,div.temp{border-color:var(--accent)}div.faded{border:var(--border-size-medium) solid var(--color-surface02)}div.highlighted{box-shadow:var(--shadow-4);outline:none}div.pressed{box-shadow:var(--shadow-8);outline:none}div:focus{box-shadow:var(--shadow-focus-primary);outline:none}";const a=class{constructor(e){r(this,e)}render(){return e("div",null,e("slot",{name:"alert"}),e("slot",{name:"cover"}))}};a.style=":host{width:auto;height:340px}:host>div{position:relative;display:flex;width:auto;height:340px;align-items:center;justify-content:center}";const o=class{constructor(e){r(this,e)}hadleOnImageError(){this.img=this.defaultimg}render(){return e("img",{class:this.faded&&"faded",onError:this.hadleOnImageError.bind(this),alt:this.titolo,src:this.img})}};o.style="img{display:block;max-width:100%;height:340px;margin:auto;object-fit:cover}img.faded{opacity:0.3}";const s=class{constructor(e){r(this,e),this.allowTooltip=!1}getTitle(){return this.allowTooltip?this.titolo:""}componentDidLoad(){this.elementHasEllipsis()&&(this.allowTooltip=!0)}elementHasEllipsis(){return this.ellipsis.offsetWidth<this.ellipsis.scrollWidth}retrieveClass(){return{real:this.cardtype===t.REAL,trial:this.cardtype===t.TRIAL,temp:this.cardtype===t.TEMP,faded:this.faded}}render(){return e("header",{class:this.retrieveClass()},e("slot",{name:"aria-heading"}),e("span",{class:"card-title",ref:r=>this.ellipsis=r,title:this.getTitle()},this.titolo),e("slot",{name:"icon"}))}};s.style='header{position:relative;display:flex;width:auto;height:calc(var(--space-unit) * 6);flex-direction:row;align-items:flex-start;justify-content:space-between;border-bottom:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius) var(--border-radius) var(--border-no-radius) var(--border-no-radius)}slot[name="aria-heading"]::slotted(*){position:absolute;overflow:hidden !important;width:1px !important;height:1px !important;padding:0 !important;border:0 none !important;margin:-1px !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important}header.real,header.trial,header.temp{border-bottom:var(--border-size-medium) solid var(--accent);background-color:var(--accent-lighter)}.card-title{overflow:hidden;height:calc(var(--space-unit) * 2);padding:calc(var(--space-unit) * 2);margin:0;color:var(--color-surface05);font-family:var(--font-family-sans);font-size:12px;font-weight:var(--font-sb);letter-spacing:0.22px;line-height:calc(var(--space-unit) * 2);text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.faded{border-bottom:var(--border-size-medium) solid var(--color-surface02)}.faded.real,.faded.trial,.faded.temp{border-top:var(--border-size-medium) solid var(--accent);border-right:var(--border-size-medium) solid var(--accent);border-left:var(--border-size-medium) solid var(--accent)}';export{i as z_myz_card,a as z_myz_card_body,o as z_myz_card_cover,s as z_myz_card_header}
@@ -1 +1 @@
1
- import{r as i,c as e,h as t,H as s,g as o}from"./p-d17ebc2f.js";import{x as n,P as l}from"./p-dfed050d.js";import{t as r}from"./p-e35d3552.js";const h=class{constructor(t){i(this,t),this.removeFile=e(this,"removeFile",7),this.allowPopover=!1,this.popoverVisible=!1}removeFileHandler(){this.removeFile.emit({fileName:this.fileName}),this.el.remove()}onMouseOver(){this.popoverVisible=!0}onMouseLeave(){this.popoverVisible=!1}onInteractiveIconClick(){this.removeFileHandler()}componentDidLoad(){var i,e;this.elementHasEllipsis()&&window.innerWidth>r&&(this.allowPopover=!0),null===(e=null===(i=this.icon)||void 0===i?void 0:i.focus)||void 0===e||e.call(i)}elementHasEllipsis(){return this.ellipsis.offsetWidth<this.ellipsis.scrollWidth}render(){return t(s,null,this.allowPopover&&t("z-popover",{open:this.popoverVisible,position:l.AUTO,bindTo:this.chip},t("span",{class:"body-5 tooltip-content"},this.ellipsis.innerText)),t("z-chip",{ref:i=>this.chip=i,id:`chip-${this.fileNumber}`,interactiveIcon:"multiply-circled",type:n.DEFAULT},t("span",{ref:i=>this.ellipsis=i,tabIndex:-1},this.fileName)))}get el(){return o(this)}};h.style=".sc-z-file-h{position:relative;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.sc-z-file-h>z-popover.sc-z-file{z-index:10}.sc-z-file-h>z-popover.sc-z-file>.tooltip-content.sc-z-file{white-space:nowrap}.sc-z-file-h>z-chip.sc-z-file span.sc-z-file{display:block;overflow:hidden;max-width:250px;letter-spacing:0.32px;line-height:1.33;text-overflow:ellipsis;white-space:nowrap}";export{h as z_file}
1
+ import{r as i,c as e,h as t,H as s,g as o}from"./p-d17ebc2f.js";import{y as n,P as l}from"./p-6b454593.js";import{t as r}from"./p-d69e14fb.js";const h=class{constructor(t){i(this,t),this.removeFile=e(this,"removeFile",7),this.allowPopover=!1,this.popoverVisible=!1}removeFileHandler(){this.removeFile.emit({fileName:this.fileName}),this.el.remove()}onMouseOver(){this.popoverVisible=!0}onMouseLeave(){this.popoverVisible=!1}onInteractiveIconClick(){this.removeFileHandler()}componentDidLoad(){var i,e;this.elementHasEllipsis()&&window.innerWidth>r&&(this.allowPopover=!0),null===(e=null===(i=this.icon)||void 0===i?void 0:i.focus)||void 0===e||e.call(i)}elementHasEllipsis(){return this.ellipsis.offsetWidth<this.ellipsis.scrollWidth}render(){return t(s,null,this.allowPopover&&t("z-popover",{open:this.popoverVisible,position:l.AUTO,bindTo:this.chip},t("span",{class:"body-5 tooltip-content"},this.ellipsis.innerText)),t("z-chip",{ref:i=>this.chip=i,id:`chip-${this.fileNumber}`,interactiveIcon:"multiply-circled",type:n.DEFAULT},t("span",{ref:i=>this.ellipsis=i,tabIndex:-1},this.fileName)))}get el(){return o(this)}};h.style=".sc-z-file-h{position:relative;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.sc-z-file-h>z-popover.sc-z-file{z-index:10}.sc-z-file-h>z-popover.sc-z-file>.tooltip-content.sc-z-file{white-space:nowrap}.sc-z-file-h>z-chip.sc-z-file span.sc-z-file{display:block;overflow:hidden;max-width:250px;letter-spacing:0.32px;line-height:1.33;text-overflow:ellipsis;white-space:nowrap}";export{h as z_file}
@@ -1 +1 @@
1
- import{f as a,p as t}from"./p-dfed050d.js";import{t as e,m as n}from"./p-e35d3552.js";function s(a){switch(a){case!0:case"true":case 1:case"1":case"on":case"yes":return!0;case!1:case"false":case 0:case"0":case"off":case"no":return!1;default:return a}}function r(){return Math.random().toString(36).replace("0.","")}function c(t,e,...n){t.code!==a.ENTER&&t.code!==a.SPACE||(t.preventDefault(),e(...n))}function u(t,e,...n){t.code===a.ENTER&&(t.preventDefault(),e(...n))}function o(a=null){return a||(a=document.activeElement),a&&a.shadowRoot&&a.shadowRoot.activeElement?o(a=a.shadowRoot.activeElement):a}function f(a,t=[]){return t.push(a),a.parentElement?f(a=a.parentElement,t):a.parentNode&&a.parentNode.host?f(a=a.parentNode.host,t):t}function i(){switch(!0){case window.innerWidth<=n:return t.MOBILE;case window.innerWidth<=e:return t.TABLET;default:return t.DESKTOP}}function d(a){try{return JSON.parse(a)}catch(a){return!1}}function h(a){const t=Math.ceil(2**31-1)*parseFloat(`0.${a}`);let e=Math.ceil(t%1*19);return 0===e&&(e=1),`avatar-C${e.toString().padStart(2,"0")}`}export{c as a,s as b,h as c,f as d,o as e,d as f,i as g,u as h,r}
1
+ import{g as a,q as t}from"./p-6b454593.js";import{t as e,m as n}from"./p-d69e14fb.js";function s(a){switch(a){case!0:case"true":case 1:case"1":case"on":case"yes":return!0;case!1:case"false":case 0:case"0":case"off":case"no":return!1;default:return a}}function r(){return Math.random().toString(36).replace("0.","")}function c(t,e,...n){t.code!==a.ENTER&&t.code!==a.SPACE||(t.preventDefault(),e(...n))}function u(t,e,...n){t.code===a.ENTER&&(t.preventDefault(),e(...n))}function o(a=null){return a||(a=document.activeElement),a&&a.shadowRoot&&a.shadowRoot.activeElement?o(a=a.shadowRoot.activeElement):a}function f(a,t=[]){return t.push(a),a.parentElement?f(a=a.parentElement,t):a.parentNode&&a.parentNode.host?f(a=a.parentNode.host,t):t}function i(){switch(!0){case window.innerWidth<=n:return t.MOBILE;case window.innerWidth<=e:return t.TABLET;default:return t.DESKTOP}}function d(a){try{return JSON.parse(a)}catch(a){return!1}}function h(a){const t=Math.ceil(2**31-1)*parseFloat(`0.${a}`);let e=Math.ceil(t%1*19);return 0===e&&(e=1),`avatar-C${e.toString().padStart(2,"0")}`}export{c as a,s as b,h as c,f as d,o as e,d as f,i as g,u as h,r}
@@ -1 +1 @@
1
- import{r as t,h as o,g as s}from"./p-d17ebc2f.js";import{t as i}from"./p-dfed050d.js";const n=class{constructor(o){t(this,o),this.position=i.TOP_RIGHT,this.newestontop=!0}watchPropNewestontop(t){this.hostElement.append(...this.notificationArray.reverse()),t?this.hostElement.shadowRoot.addEventListener("slotchange",this.slotChangeHandler):this.hostElement.shadowRoot.removeEventListener("slotchange",this.slotChangeHandler)}componentWillLoad(){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)}slotChangeHandler(){const t=Array.from(this.hostElement.children).filter((t=>!this.notificationArray.includes(t)));t&&t.forEach((t=>{this.notificationArray.push(t);const o=t;t.remove(),this.hostElement.prepend(o)}))}render(){return o("slot",{name:"toasts"})}get hostElement(){return s(this)}static get watchers(){return{newestontop:["watchPropNewestontop"]}}};n.style=':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}}';export{n as z_toast_notification_list}
1
+ import{r as t,h as o,g as s}from"./p-d17ebc2f.js";import{u as i}from"./p-6b454593.js";const n=class{constructor(o){t(this,o),this.position=i.TOP_RIGHT,this.newestontop=!0}watchPropNewestontop(t){this.hostElement.append(...this.notificationArray.reverse()),t?this.hostElement.shadowRoot.addEventListener("slotchange",this.slotChangeHandler):this.hostElement.shadowRoot.removeEventListener("slotchange",this.slotChangeHandler)}componentWillLoad(){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)}slotChangeHandler(){const t=Array.from(this.hostElement.children).filter((t=>!this.notificationArray.includes(t)));t&&t.forEach((t=>{this.notificationArray.push(t);const o=t;t.remove(),this.hostElement.prepend(o)}))}render(){return o("slot",{name:"toasts"})}get hostElement(){return s(this)}static get watchers(){return{newestontop:["watchPropNewestontop"]}}};n.style=':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}}';export{n as z_toast_notification_list}
@@ -1 +1 @@
1
- import{r as t,h as e,H as i,g as o}from"./p-d17ebc2f.js";import{y as s,D as r}from"./p-dfed050d.js";const l=class{constructor(e){t(this,e),this.dividerPosition=s.BEFORE,this.uppercase=!0}componentWillRender(){this.hasSecondaryTitle=!!this.host.querySelector("[slot=secondary-title]")}render(){return e(i,null,e("slot",{name:"secondary-title"}),!this.hasSecondaryTitle&&this.dividerPosition===s.BEFORE&&e("z-divider",{size:r.LARGE,color:"z-section-title--divider-color"}),e("slot",{name:"primary-title"}),!this.hasSecondaryTitle&&this.dividerPosition===s.AFTER&&e("z-divider",{size:r.LARGE,color:"z-section-title--divider-color"}))}get host(){return o(this)}};l.style=':host{--z-section-title--divider-color:var(--red500);display:flex;width:fit-content;flex-direction:column;align-items:flex-start;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host,:host ::slotted(*){box-sizing:border-box}::slotted(*){margin:0}::slotted([slot="secondary-title"]){padding-bottom:calc(var(--space-unit) / 2);border-bottom:var(--border-size-large) solid var(--z-section-title--divider-color);font-size:var(--font-size-3);line-height:1.5rem;text-transform:uppercase}::slotted([slot="primary-title"]){font-size:var(--font-size-6);line-height:2rem}:host([uppercase]:not([uppercase="false"])) ::slotted([slot="primary-title"]){text-transform:uppercase}@media (min-width: 1152px){::slotted([slot="primary-title"]){font-size:var(--font-size-7);line-height:2.25rem}}';export{l as z_section_title}
1
+ import{r as t,h as e,H as i,g as o}from"./p-d17ebc2f.js";import{z as s,D as r}from"./p-6b454593.js";const l=class{constructor(e){t(this,e),this.dividerPosition=s.BEFORE,this.uppercase=!0}componentWillRender(){this.hasSecondaryTitle=!!this.host.querySelector("[slot=secondary-title]")}render(){return e(i,null,e("slot",{name:"secondary-title"}),!this.hasSecondaryTitle&&this.dividerPosition===s.BEFORE&&e("z-divider",{size:r.LARGE,color:"z-section-title--divider-color"}),e("slot",{name:"primary-title"}),!this.hasSecondaryTitle&&this.dividerPosition===s.AFTER&&e("z-divider",{size:r.LARGE,color:"z-section-title--divider-color"}))}get host(){return o(this)}};l.style=':host{--z-section-title--divider-color:var(--red500);display:flex;width:fit-content;flex-direction:column;align-items:flex-start;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host,:host ::slotted(*){box-sizing:border-box}::slotted(*){margin:0}::slotted([slot="secondary-title"]){padding-bottom:calc(var(--space-unit) / 2);border-bottom:var(--border-size-large) solid var(--z-section-title--divider-color);font-size:var(--font-size-3);line-height:1.5rem;text-transform:uppercase}::slotted([slot="primary-title"]){font-size:var(--font-size-6);line-height:2rem}:host([uppercase]:not([uppercase="false"])) ::slotted([slot="primary-title"]){text-transform:uppercase}@media (min-width: 1152px){::slotted([slot="primary-title"]){font-size:var(--font-size-7);line-height:2.25rem}}';export{l as z_section_title}
@@ -1,4 +1,4 @@
1
- import{r as t,c as r,h as a,g as e}from"./p-d17ebc2f.js";import{f as i,i as o,s as n,a as p,v as l}from"./p-ad48bdb5.js";import{c,a as d}from"./p-112455b1.js";import{z as s,G as f,I as h}from"./p-dfed050d.js";var m=c((function(t){t.exports=function(){
1
+ import{r as t,c as r,h as a,g as e}from"./p-d17ebc2f.js";import{f as i,i as o,s as n,a as p,v as l}from"./p-e9bf5f75.js";import{c,a as d}from"./p-112455b1.js";import{F as s,H as f,I as h}from"./p-6b454593.js";var m=c((function(t){t.exports=function(){
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -1 +1 @@
1
- import{r as o,h as n,H as a}from"./p-d17ebc2f.js";import{B as i}from"./p-dfed050d.js";const t=class{constructor(n){o(this,n),this.hideUnselected=!1,this.collapsed=!1}setAriaCurrent(){Array.from(this.nav.children).forEach((o=>{const n=o instanceof HTMLAnchorElement?o:o.querySelector("a"),a=window.location.href===n.href;n.setAttribute("aria-current",a.toString()),o.toggleAttribute("current",a)}))}toggleCollapsed(){this.collapsed=!this.collapsed}componentDidLoad(){window.addEventListener("hashchange",this.setAriaCurrent.bind(this)),this.setAriaCurrent()}disconnectedCallback(){window.removeEventListener("hashchange",this.setAriaCurrent)}render(){return n(a,{collapsed:this.collapsed},n("z-button",{class:"toggle",variant:i.SECONDARY,icon:this.collapsed?"chevron-up":"chevron-down",onClick:this.toggleCollapsed.bind(this)},"salta a"),n("nav",{ref:o=>this.nav=o},n("slot",null)))}};t.style="html{scroll-behavior:smooth}z-anchor-navigation nav{display:none;flex-direction:column;justify-content:flex-start;row-gap:calc(var(--space-unit) / 2)}z-anchor-navigation[collapsed] nav{display:flex;margin-top:var(--space-unit)}z-anchor-navigation nav a{display:-webkit-box;overflow:clip;width:100%;box-sizing:border-box;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);-webkit-box-orient:vertical;color:inherit;font-weight:inherit;-webkit-line-clamp:2;overflow-clip-margin:content-box;text-decoration:none}z-anchor-navigation nav * a:not(:only-child){padding-right:calc(var(--space-unit) * 5)}@supports not (overflow-clip-margin: content-box){z-anchor-navigation nav a{display:inline-block;overflow:hidden;-webkit-line-clamp:none;text-overflow:ellipsis;white-space:nowrap}}z-anchor-navigation nav>*{position:relative;border-left:var(--border-size-large) solid var(--color-surface04);color:var(--color-text01);font-family:var(--font-family-sans);transition:background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out}z-anchor-navigation nav>[current]{border-left-color:var(--color-primary01);color:var(--color-link-primary);font-weight:var(--font-sb)}z-anchor-navigation nav>*>*:is(z-button,button,z-icon){position:absolute;top:50%;right:0;transform:translateY(-50%);transition:opacity 0.3s ease-in-out}z-anchor-navigation nav button{padding:0;border:none;margin:0;background-color:transparent}z-anchor-navigation nav z-icon{--z-icon-width:16px;--z-icon-height:16px;display:flex;padding:calc(var(--space-unit) * 1.5);fill:var(--color-icon02)}@media (min-width: 768px){z-anchor-navigation z-button.toggle{display:none !important}z-anchor-navigation nav{display:flex}z-anchor-navigation nav a{outline:none}@media (hover: hover){z-anchor-navigation nav>*:hover{border-left-color:var(--color-hover-secondary);background-color:var(--color-hover-surface);color:var(--color-hover-link)}}z-anchor-navigation nav>*:is(:focus,:focus-within),z-anchor-navigation nav :is(z-icon,button):focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}z-anchor-navigation[hide-unselected] nav>*:not([current],:hover,:focus,:focus-within){color:transparent}z-anchor-navigation nav>*:not([current],:hover,:focus,:focus-within)>*:is(z-button,button,z-icon):not(:focus:focus-visible){opacity:0;pointer-events:none}@media (hover: none){z-anchor-navigation:not([hide-unselected]) nav>*>*:is(z-button,button,z-icon){opacity:1;pointer-events:all}}}";export{t as z_anchor_navigation}
1
+ import{r as o,h as n,H as a}from"./p-d17ebc2f.js";import{B as i}from"./p-6b454593.js";const t=class{constructor(n){o(this,n),this.hideUnselected=!1,this.collapsed=!1}setAriaCurrent(){Array.from(this.nav.children).forEach((o=>{const n=o instanceof HTMLAnchorElement?o:o.querySelector("a"),a=window.location.href===n.href;n.setAttribute("aria-current",a.toString()),o.toggleAttribute("current",a)}))}toggleCollapsed(){this.collapsed=!this.collapsed}componentDidLoad(){window.addEventListener("hashchange",this.setAriaCurrent.bind(this)),this.setAriaCurrent()}disconnectedCallback(){window.removeEventListener("hashchange",this.setAriaCurrent)}render(){return n(a,{collapsed:this.collapsed},n("z-button",{class:"toggle",variant:i.SECONDARY,icon:this.collapsed?"chevron-up":"chevron-down",onClick:this.toggleCollapsed.bind(this)},"salta a"),n("nav",{ref:o=>this.nav=o},n("slot",null)))}};t.style="html{scroll-behavior:smooth}z-anchor-navigation nav{display:none;flex-direction:column;justify-content:flex-start;row-gap:calc(var(--space-unit) / 2)}z-anchor-navigation[collapsed] nav{display:flex;margin-top:var(--space-unit)}z-anchor-navigation nav a{display:-webkit-box;overflow:clip;width:100%;box-sizing:border-box;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);-webkit-box-orient:vertical;color:inherit;font-weight:inherit;-webkit-line-clamp:2;overflow-clip-margin:content-box;text-decoration:none}z-anchor-navigation nav * a:not(:only-child){padding-right:calc(var(--space-unit) * 5)}@supports not (overflow-clip-margin: content-box){z-anchor-navigation nav a{display:inline-block;overflow:hidden;-webkit-line-clamp:none;text-overflow:ellipsis;white-space:nowrap}}z-anchor-navigation nav>*{position:relative;border-left:var(--border-size-large) solid var(--color-surface04);color:var(--color-text01);font-family:var(--font-family-sans);transition:background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out}z-anchor-navigation nav>[current]{border-left-color:var(--color-primary01);color:var(--color-link-primary);font-weight:var(--font-sb)}z-anchor-navigation nav>*>*:is(z-button,button,z-icon){position:absolute;top:50%;right:0;transform:translateY(-50%);transition:opacity 0.3s ease-in-out}z-anchor-navigation nav button{padding:0;border:none;margin:0;background-color:transparent}z-anchor-navigation nav z-icon{--z-icon-width:16px;--z-icon-height:16px;display:flex;padding:calc(var(--space-unit) * 1.5);fill:var(--color-icon02)}@media (min-width: 768px){z-anchor-navigation z-button.toggle{display:none !important}z-anchor-navigation nav{display:flex}z-anchor-navigation nav a{outline:none}@media (hover: hover){z-anchor-navigation nav>*:hover{border-left-color:var(--color-hover-secondary);background-color:var(--color-hover-surface);color:var(--color-hover-link)}}z-anchor-navigation nav>*:is(:focus,:focus-within),z-anchor-navigation nav :is(z-icon,button):focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}z-anchor-navigation[hide-unselected] nav>*:not([current],:hover,:focus,:focus-within){color:transparent}z-anchor-navigation nav>*:not([current],:hover,:focus,:focus-within)>*:is(z-button,button,z-icon):not(:focus:focus-visible){opacity:0;pointer-events:none}@media (hover: none){z-anchor-navigation:not([hide-unselected]) nav>*>*:is(z-button,button,z-icon){opacity:1;pointer-events:all}}}";export{t as z_anchor_navigation}
@@ -0,0 +1 @@
1
+ import{r as i,c as t,h as a}from"./p-d17ebc2f.js";import{N as n,a as o}from"./p-6b454593.js";import{I as e}from"./p-bb85c467.js";const r=class{constructor(a){i(this,a),this.selectedEvent=t(this,"selected",7),this.selected=!1,this.disabled=!1,this.orientation=n.HORIZONTAL,this.size=o.BIG}scrollToTab({target:i}){i.scrollIntoView(Object.assign({behavior:"smooth"},this.orientation===n.HORIZONTAL?{block:"nearest",inline:"center"}:{block:"center",inline:"nearest"}))}onClick(){this.selected=!0}onSelected(){this.selected&&this.selectedEvent.emit()}renderIcon(){let i=this.icon;const t=`${i.replace(/-filled$/,"")}-filled`;return this.selected&&Object.keys(e).includes(t)&&(i=t),a("z-icon",{name:i})}render(){return a("a",{role:"tab",id:this.tabId,href:!this.disabled&&this.href,title:this.htmlTitle,target:this.target,onFocus:this.scrollToTab.bind(this),"aria-selected":this.selected?"true":"false","aria-controls":this.ariaControls,tabindex:this.selected?"0":"-1"},this.icon&&this.renderIcon(),"horizontal"===this.orientation&&this.label)}static get watchers(){return{selected:["onSelected"]}}};r.style='z-navigation-tab>button,z-navigation-tab-link>a{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;letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tab-link>a{text-decoration:none}z-navigation-tab *,z-navigation-tab-link *,z-navigation-tab *::before,z-navigation-tab *::after,z-navigation-tab-link *::before,z-navigation-tab-link *::after{box-sizing:border-box}z-navigation-tab>*:focus:focus-visible,z-navigation-tab-link>*:focus:focus-visible{box-shadow:inset var(--shadow-focus-primary)}z-navigation-tab:not([disabled]):hover>*,z-navigation-tab[selected]>*,z-navigation-tab-link:not([disabled]):hover>*,z-navigation-tab-link[selected]>*{color:var(--color-hover-secondary);fill:currentcolor}z-navigation-tab:not([disabled]):hover>*::after,z-navigation-tab[selected]>*::after,z-navigation-tab-link:not([disabled]):hover>*::after,z-navigation-tab-link[selected]>*::after{position:absolute;background-color:var(--color-hover-secondary);content:""}z-navigation-tab[orientation="horizontal"]:not([disabled]):hover>*::after,z-navigation-tab[orientation="horizontal"][selected]>*::after,z-navigation-tab-link[orientation="horizontal"]:not([disabled]):hover>*::after,z-navigation-tab-link[orientation="horizontal"][selected]>*::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tab z-icon,z-navigation-tab-link z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tab[orientation="horizontal"] z-icon,z-navigation-tab-link[orientation="horizontal"] z-icon{margin-right:var(--space-unit)}z-navigation-tab:not([disabled]):hover>*{background-color:var(--color-background)}z-navigation-tab[disabled]>*{color:var(--gray500);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tab[size="small"]>*,z-navigation-tab-link[size="small"]>*{font-size:var(--font-size-2);letter-spacing:0.16px;line-height:1.4}z-navigation-tab[size="small"][orientation="horizontal"]>*,z-navigation-tab-link[size="small"][orientation="horizontal"]>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tab[size="small"][orientation="horizontal"]:not([disabled]):hover>*::after,z-navigation-tab[size="small"][orientation="horizontal"][selected]>*::after,z-navigation-tab-link[size="small"][orientation="horizontal"]:hover>*::after,z-navigation-tab-link[size="small"][orientation="horizontal"][selected]>*::after{height:var(--border-size-medium)}z-navigation-tab[size="small"]:not([orientation="vertical"]) z-icon,z-navigation-tab-link[size="small"]:not([orientation="vertical"]) z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tab[orientation="vertical"]>*,z-navigation-tab-link[orientation="vertical"]>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tab[orientation="vertical"]:hover:not([disabled])>*::after,z-navigation-tab[orientation="vertical"][selected]>*::after,z-navigation-tab-link[orientation="vertical"]:hover>*::after,z-navigation-tab-link[orientation="vertical"][selected]>*::after{top:0;right:0;width:var(--border-size-large);height:100%}';export{r as z_navigation_tab_link}
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,H as a,g as s}from"./p-d17ebc2f.js";import{s as n}from"./p-dfed050d.js";import{m as r}from"./p-e35d3552.js";import{h as o}from"./p-e43e61ac.js";import"./p-112455b1.js";const l=class{constructor(i){t(this,i),this.toastClose=e(this,"toastClose",7),this.pauseonfocusloss=!0,this.isdraggable=!0,this.draggablepercentage=80,this.isCloseEventCalled=!1}watchPropIsdraggable(t){t?this.sliderManager.get("pan").set({enable:!0}):this.sliderManager.get("pan").set({enable:!1})}watchPropAutoclose(t){clearTimeout(this.timeoutHandle),this.startClosingTimeout(t)}watchPropPauseonfocusloss(t){this.autoclose&&(t?document.addEventListener("visibilitychange",this.visibilityChangeEventHandler):document.removeEventListener("visibilitychange",this.visibilityChangeEventHandler))}emitToastClose(t){this.timeoutHandle=null,this.elapsedTime=null,this.hostElement.classList.add(t),this.toastClose.emit()}componentWillLoad(){this.isMobile=window.innerWidth<=r,this.validateAutoclose(),this.percentage=0}componentDidLoad(){this.isTextLong=this.detectWrap()||this.toastText.offsetHeight>20,this.startTime=Date.now(),this.autoclose&&this.pauseonfocusloss&&document.addEventListener("visibilitychange",this.visibilityChangeEventHandler),this.isdraggable&&this.handleSlideOutDragAnimation()}visibilityChangeEventHandler(){"hidden"===document.visibilityState?this.timeoutHandle&&this.onBlur():this.elapsedTime&&this.onFocus()}validateAutoclose(){this.autoclose||this.closebutton||console.error("At least one between autoclose and closebutton must be present")}mapSlideOutClass(){switch(this.transition){case n.SLIDE_IN_DOWN:return n.SLIDE_OUT_UP;case n.SLIDE_IN_UP:return n.SLIDE_OUT_DOWN;case n.SLIDE_IN_LEFT:return n.SLIDE_OUT_RIGHT;case n.SLIDE_IN_RIGHT:return n.SLIDE_OUT_LEFT}}calculateDraggedPercentage(t){const e=this.hostElement.getBoundingClientRect();return Math.round(100*t.deltaX/e.width)}handleSlideOutDragAnimation(){this.sliderManager=new o(this.hostElement),this.sliderManager.get("pan").set({direction:o.DIRECTION_HORIZONTAL}),this.sliderManager.on("pan",(t=>{this.percentage=this.calculateDraggedPercentage(t),this.hostElement.style.transition="none",this.hostElement.classList.remove(this.transition);const e={translate:`translateX(${this.percentage}%)`,translateBack:"translateX(0)"};this.hostElement.style.opacity=100-Math.abs(this.percentage)+"%",t.eventType!==o.DIRECTION_LEFT&&t.eventType!==o.DIRECTION_RIGHT||(this.hostElement.style.transform=e.translate,Math.abs(this.percentage)>this.draggablepercentage&&!this.isCloseEventCalled&&(this.isCloseEventCalled=!0,this.emitToastClose(t.direction===o.DIRECTION_LEFT?"slide-out-left":"slide-out-right"))),t.isFinal&&Math.abs(this.percentage)<this.draggablepercentage&&(this.hostElement.style.transform=e.translateBack,this.hostElement.style.transition="all 1s",this.hostElement.style.opacity="100%",this.percentage=0)}))}onFocus(){let t=this.autoclose;this.elapsedTime&&(t=this.autoclose-this.elapsedTime),t>0&&this.startClosingTimeout(t)}onBlur(){this.elapsedTime=Date.now()-this.startTime,clearTimeout(this.timeoutHandle)}startClosingTimeout(t){this.timeoutHandle=window.setTimeout((()=>this.emitToastClose(this.mapSlideOutClass())),t)}detectWrap(){const t=this.container.offsetWidth,e=this.container.children;let i=0;for(let t=0;t<e.length;t++)i+=e[t].offsetWidth;return i>t}renderText(){return i("div",{id:"text",ref:t=>this.toastText=t},i("span",{class:"title"},this.heading),i("span",{class:"message"},this.message))}renderButton(){return i("div",{id:"button"},i("slot",{name:"button"}))}renderCloseIcon(){if(this.closebutton)return i("div",{id:"icon"},i("z-icon",{tabIndex:0,name:"multiply-circled",width:15,height:15,onClick:()=>this.emitToastClose(this.mapSlideOutClass()),onKeyPress:t=>{32!=t.keyCode&&13!=t.keyCode||(t.preventDefault(),this.emitToastClose(this.mapSlideOutClass()))}}))}renderContainer(){return i("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 i("div",{id:"external-container",class:{[this.type]:!!this.type,"several-lines-padding":this.isTextLong,"mobile-wrapped":this.isTextLong}},i("div",{id:"flex-container",ref:t=>this.container=t},this.renderText(),this.renderButton()),this.renderCloseIcon())}render(){return i(a,{style:{"--percentuale":`${this.percentage}%`},class:this.transition?this.transition:n.SLIDE_IN_DOWN,onAnimationEnd:t=>{this.autoclose&&t.animationName.includes("slidein")&&this.startClosingTimeout(this.autoclose),t.animationName.includes("slideout")&&this.hostElement.parentNode.removeChild(this.hostElement)}},this.isMobile?this.renderMobileContainer():this.renderContainer())}get hostElement(){return s(this)}static get watchers(){return{isdraggable:["watchPropIsdraggable"],autoclose:["watchPropAutoclose"],pauseonfocusloss:["watchPropPauseonfocusloss"]}}};l.style=":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)}: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-icon01)}: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}}";export{l as z_toast_notification}
1
+ import{r as t,c as i,h as e,H as a,g as s}from"./p-d17ebc2f.js";import{t as n}from"./p-6b454593.js";import{m as r}from"./p-d69e14fb.js";import{h as o}from"./p-e43e61ac.js";import"./p-112455b1.js";const l=class{constructor(e){t(this,e),this.toastClose=i(this,"toastClose",7),this.pauseonfocusloss=!0,this.isdraggable=!0,this.draggablepercentage=80,this.isCloseEventCalled=!1}watchPropIsdraggable(t){t?this.sliderManager.get("pan").set({enable:!0}):this.sliderManager.get("pan").set({enable:!1})}watchPropAutoclose(t){clearTimeout(this.timeoutHandle),this.startClosingTimeout(t)}watchPropPauseonfocusloss(t){this.autoclose&&(t?document.addEventListener("visibilitychange",this.visibilityChangeEventHandler):document.removeEventListener("visibilitychange",this.visibilityChangeEventHandler))}emitToastClose(t){this.timeoutHandle=null,this.elapsedTime=null,this.hostElement.classList.add(t),this.toastClose.emit()}componentWillLoad(){this.isMobile=window.innerWidth<=r,this.validateAutoclose(),this.percentage=0}componentDidLoad(){this.isTextLong=this.detectWrap()||this.toastText.offsetHeight>20,this.startTime=Date.now(),this.autoclose&&this.pauseonfocusloss&&document.addEventListener("visibilitychange",this.visibilityChangeEventHandler),this.isdraggable&&this.handleSlideOutDragAnimation()}visibilityChangeEventHandler(){"hidden"===document.visibilityState?this.timeoutHandle&&this.onBlur():this.elapsedTime&&this.onFocus()}validateAutoclose(){this.autoclose||this.closebutton||console.error("At least one between autoclose and closebutton must be present")}mapSlideOutClass(){switch(this.transition){case n.SLIDE_IN_DOWN:return n.SLIDE_OUT_UP;case n.SLIDE_IN_UP:return n.SLIDE_OUT_DOWN;case n.SLIDE_IN_LEFT:return n.SLIDE_OUT_RIGHT;case n.SLIDE_IN_RIGHT:return n.SLIDE_OUT_LEFT}}calculateDraggedPercentage(t){const i=this.hostElement.getBoundingClientRect();return Math.round(100*t.deltaX/i.width)}handleSlideOutDragAnimation(){this.sliderManager=new o(this.hostElement),this.sliderManager.get("pan").set({direction:o.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)+"%",t.eventType!==o.DIRECTION_LEFT&&t.eventType!==o.DIRECTION_RIGHT||(this.hostElement.style.transform=i.translate,Math.abs(this.percentage)>this.draggablepercentage&&!this.isCloseEventCalled&&(this.isCloseEventCalled=!0,this.emitToastClose(t.direction===o.DIRECTION_LEFT?"slide-out-left":"slide-out-right"))),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;this.elapsedTime&&(t=this.autoclose-this.elapsedTime),t>0&&this.startClosingTimeout(t)}onBlur(){this.elapsedTime=Date.now()-this.startTime,clearTimeout(this.timeoutHandle)}startClosingTimeout(t){this.timeoutHandle=window.setTimeout((()=>this.emitToastClose(this.mapSlideOutClass())),t)}detectWrap(){const t=this.container.offsetWidth,i=this.container.children;let e=0;for(let t=0;t<i.length;t++)e+=i[t].offsetWidth;return e>t}renderText(){return e("div",{id:"text",ref:t=>this.toastText=t},e("span",{class:"title"},this.heading),e("span",{class:"message"},this.message))}renderButton(){return e("div",{id:"button"},e("slot",{name:"button"}))}renderCloseIcon(){if(this.closebutton)return e("div",{id:"icon"},e("z-icon",{tabIndex:0,name:"multiply-circled",width:15,height:15,onClick:()=>this.emitToastClose(this.mapSlideOutClass()),onKeyPress:t=>{32!=t.keyCode&&13!=t.keyCode||(t.preventDefault(),this.emitToastClose(this.mapSlideOutClass()))}}))}renderContainer(){return e("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 e("div",{id:"external-container",class:{[this.type]:!!this.type,"several-lines-padding":this.isTextLong,"mobile-wrapped":this.isTextLong}},e("div",{id:"flex-container",ref:t=>this.container=t},this.renderText(),this.renderButton()),this.renderCloseIcon())}render(){return e(a,{style:{"--percentuale":`${this.percentage}%`},class:this.transition?this.transition:n.SLIDE_IN_DOWN,onAnimationEnd:t=>{this.autoclose&&t.animationName.includes("slidein")&&this.startClosingTimeout(this.autoclose),t.animationName.includes("slideout")&&this.hostElement.parentNode.removeChild(this.hostElement)}},this.isMobile?this.renderMobileContainer():this.renderContainer())}get hostElement(){return s(this)}static get watchers(){return{isdraggable:["watchPropIsdraggable"],autoclose:["watchPropAutoclose"],pauseonfocusloss:["watchPropPauseonfocusloss"]}}};l.style=":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)}: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-icon01)}: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}}";export{l as z_toast_notification}
@@ -1 +1 @@
1
- import{r as t,c as i,h as r}from"./p-d17ebc2f.js";import{e as n}from"./p-dfed050d.js";const s=class{constructor(r){t(this,r),this.otpChange=i(this,"otpChange",7),this.inputNum=6}emitInputChange(t){this.otpChange.emit({value:t})}componentWillLoad(){this.otp=[...Array(this.inputNum)],this.otpRef=[...Array(this.inputNum)]}render(){return r("div",{class:"otp-container"},r("div",{class:"digits-container"},this.otp.map(((t,i)=>r("input",{class:this.status==n.ERROR?"error":null,onKeyDown:t=>{t.keyCode>47&&(this.otpRef[i].value="")},onKeyUp:t=>{t.keyCode>47&&i<this.inputNum-1&&this.otpRef[i+1].focus()},onInput:t=>{this.otp[i]=t.target.value,this.emitInputChange(this.otp.join(""))},type:"text",minlength:"1",maxlength:"1",autoComplete:"off",ref:t=>this.otpRef[i]=t})))),r("z-input-message",{message:this.message,status:this.status}))}};s.style=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}.digits-container{display:flex;justify-content:flex-start}input{width:calc(var(--space-unit) * 5);height:72px;box-sizing:border-box;padding:0;caret-color:transparent;color:var(--color-surface05);font-family:var(--font-family-sans);font-size:32px;font-weight:300;text-align:center}input.error{border:1px solid;border-color:var(--color-error01);background-color:var(--color-error-inverse);border-radius:4px}input:not(:last-of-type){margin-right:var(--space-unit)}@media only screen and (min-width: 768px){input:not(:last-of-type){margin-right:calc(var(--space-unit) * 2)}}@media only screen and (min-width: 1025px){input{width:calc(var(--space-unit) * 6)}}";export{s as z_otp}
1
+ import{r as t,c as i,h as r}from"./p-d17ebc2f.js";import{f as n}from"./p-6b454593.js";const s=class{constructor(r){t(this,r),this.otpChange=i(this,"otpChange",7),this.inputNum=6}emitInputChange(t){this.otpChange.emit({value:t})}componentWillLoad(){this.otp=[...Array(this.inputNum)],this.otpRef=[...Array(this.inputNum)]}render(){return r("div",{class:"otp-container"},r("div",{class:"digits-container"},this.otp.map(((t,i)=>r("input",{class:this.status==n.ERROR?"error":null,onKeyDown:t=>{t.keyCode>47&&(this.otpRef[i].value="")},onKeyUp:t=>{t.keyCode>47&&i<this.inputNum-1&&this.otpRef[i+1].focus()},onInput:t=>{this.otp[i]=t.target.value,this.emitInputChange(this.otp.join(""))},type:"text",minlength:"1",maxlength:"1",autoComplete:"off",ref:t=>this.otpRef[i]=t})))),r("z-input-message",{message:this.message,status:this.status}))}};s.style=":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}.digits-container{display:flex;justify-content:flex-start}input{width:calc(var(--space-unit) * 5);height:72px;box-sizing:border-box;padding:0;caret-color:transparent;color:var(--color-surface05);font-family:var(--font-family-sans);font-size:32px;font-weight:300;text-align:center}input.error{border:1px solid;border-color:var(--color-error01);background-color:var(--color-error-inverse);border-radius:4px}input:not(:last-of-type){margin-right:var(--space-unit)}@media only screen and (min-width: 768px){input:not(:last-of-type){margin-right:calc(var(--space-unit) * 2)}}@media only screen and (min-width: 1025px){input{width:calc(var(--space-unit) * 6)}}";export{s as z_otp}
@@ -1 +1 @@
1
- import{r as t,c as o,h as e,g as r}from"./p-d17ebc2f.js";import{P as i,f as s}from"./p-dfed050d.js";const n=document.documentElement;function a(t){return t.parentNode.host?t.parentNode.host:t.parentNode}function h(t,o){const e=t.getBoundingClientRect(),r=e.width,i=e.height;let s,n,a=0,h=0,p=t;for(;p&&p!=o;){if(h+=p.offsetLeft,p===document.body?a+=p.getBoundingClientRect().top+window.scrollY:a+=p.offsetTop,window.DOMMatrix){const t=window.getComputedStyle(p),o=new DOMMatrix(t.transform||t.webkitTransform);o&&(h+=o.m41,p!==document.body&&(a+=o.m42))}if(!p.offsetParent)break;p=p.offsetParent}return p===document.body?(s=window.innerWidth,n=window.innerHeight):(s=p.offsetWidth,n=p.offsetHeight),{top:a,right:s-h-e.width,bottom:n-a-e.height,left:h,width:r,height:i}}const p=class{constructor(e){t(this,e),this.positionChange=o(this,"positionChange",7),this.openChange=o(this,"openChange",7),this.position=i.AUTO,this.open=!1,this.showArrow=!1,this.center=!1,this.closable=!0}closePopoverWithKeyboard(t){this.closable&&t.key===s.ESC&&(this.open=!1)}handleOutsideClick(t){if(this.closable&&this.open&&!t.composedPath().includes(this.host)){const o=t.target;(this.bindTo instanceof HTMLElement?this.bindTo.contains(o):o.closest(this.bindTo))&&t.stopPropagation(),this.open=!1,this.positionChange.emit({position:this.currentPosition})}}validatePosition(t){t&&!Object.values(i).includes(t)&&(this.position=i.AUTO),this.currentPosition=this.position,this.positionChange.emit({position:this.currentPosition})}onOpen(){if(cancelAnimationFrame(this.animationFrameRequestId),this.open){const t=()=>{this.open&&(this.setPosition(),this.animationFrameRequestId=requestAnimationFrame(t))};t()}else this.host.hasAttribute("current-position")&&(this.host.removeAttribute("current-position"),this.currentPosition=void 0);this.openChange.emit({open:this.open})}disconnectedCallback(){cancelAnimationFrame(this.animationFrameRequestId)}setPosition(){let t;if(t="string"==typeof this.bindTo?this.host.ownerDocument.querySelector(this.bindTo):this.bindTo?this.bindTo:this.host.parentElement,!t)return;const o=function(t){let o=a(t);for(;o&&o!==n;){const{overflow:t,overflowX:e,overflowY:r}=window.getComputedStyle(o);if("hidden"===t||"hidden"===r||"hidden"===e)return o;if(o.scrollHeight>o.clientHeight&&"visible"!==t&&"visible"!==r||o.scrollWidth>o.clientWidth&&"visible"!==t&&"visible"!==e)return o;o=a(o)}return n}(t),e=o.getBoundingClientRect(),r=this.host.offsetParent,s=r?h(r,o):{top:0,right:0,bottom:0,left:0},p=h(t,o),c=p.top-o.scrollTop,f=e.height-(p.top+p.height)+o.scrollTop,u=p.left-o.scrollLeft,l=e.width-(p.left+p.width)+o.scrollLeft,d=Math.max(0,e.top+e.height-window.innerHeight),b=Math.max(0,e.left+e.width-window.innerWidth),v=Math.min(c,c+e.top),w=Math.min(f,f-d),m=Math.min(u,u+e.left),g=Math.min(l,l-b),x=v+w+p.height,$=m+g+p.width;let y=this.currentPosition;const z=[];this.position===i.AUTO&&(m/$>.6?z.push(i.LEFT):m/$<.4&&z.push(i.RIGHT),v/x>.9?z.unshift(i.TOP):v/x>.6?z.push(i.TOP):v/x<.1?z.unshift(i.BOTTOM):z.push(i.BOTTOM),y=z.join("_"));const _=this.host.style;_.position="absolute";const M=p.top-s.top,k=p.right-s.right,O=p.bottom-s.bottom,P=p.left-s.left,j=this.center?.5:0,C=this.center?.5:0;y===i.TOP||y===i.TOP_RIGHT?(_.top="auto",_.right="auto",_.bottom=`${O+p.height}px`,_.left=`${P+p.width*j}px`,_.maxHeight=`${v}px`,y===i.TOP_RIGHT&&(_.maxWidth=`${g+p.width*C}px`)):y===i.TOP_LEFT?(_.top="auto",_.right=`${k+p.width*j}px`,_.bottom=`${O+p.height}px`,_.left="auto",_.maxWidth=`${m}px`,_.maxHeight=`${v}px`):y===i.BOTTOM||y===i.BOTTOM_RIGHT?(_.top=`${M+p.height}px`,_.right="auto",_.bottom="auto",_.left=`${P+p.width*j}px`,_.maxHeight=`${w}px`,y===i.BOTTOM_RIGHT&&(_.maxWidth=`${g+p.width*C}px`)):y===i.BOTTOM_LEFT?(_.top=`${M+p.height}px`,_.right=`${k+p.width*j}px`,_.bottom="auto",_.left="auto",_.maxWidth=`${m}px`,_.maxHeight=`${w}px`):y===i.RIGHT||y===i.RIGHT_BOTTOM?(_.top=`${M+p.height*j}px`,_.right="auto",_.bottom="auto",_.left=`${P+p.width}px`,_.maxWidth=`${g}px`,_.maxHeight=`${w+p.height*C}px`):y===i.RIGHT_TOP?(_.top="auto",_.right="auto",_.bottom=`${O+p.height*j}px`,_.left=`${P+p.width}px`,_.maxWidth=`${g}px`,_.maxHeight=`${v+p.height*C}px`):y===i.LEFT||y===i.LEFT_BOTTOM?(_.top=`${M+p.height*j}px`,_.right=`${k+p.width}px`,_.bottom="auto",_.left="auto",_.maxWidth=`${m}px`,_.maxHeight=`${w+p.height*C}px`):y===i.LEFT_TOP&&(_.top="auto",_.right=`${k+p.width}px`,_.bottom=`${O+p.height*j}px`,_.left="auto",_.maxWidth=`${m}px`,_.maxHeight=`${v+p.height*C}px`),this.currentPosition=y||this.position,this.host.setAttribute("current-position",this.currentPosition)}componentWillLoad(){this.validatePosition(this.position),this.onOpen()}render(){return e("slot",null)}get host(){return r(this)}static get watchers(){return{position:["validatePosition"],open:["onOpen"]}}};p.style=':host{--z-popover-theme--surface:var(--color-surface01);--z-popover-theme--text:var(--color-text01);--z-popover-padding:0;--z-popover-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base));position:relative;display:none;min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);align-items:center;justify-content:center;padding:var(--z-popover-padding);background:var(--z-popover-theme--surface);border-radius:var(--border-radius-small);color:var(--z-popover-theme--text);fill:currentcolor;filter:var(--z-popover-shadow-filter);font-family:var(--font-family-sans);text-align:center}:host([open][current-position]),:host([open="true"][current-position]){display:flex}:host([center][current-position="top"]),:host([center][current-position="bottom"]){transform:translateX(-50%)}:host([center][current-position="right"]),:host([center][current-position="left"]){transform:translateY(-50%)}:host([current-position^="top"]){margin:0 0 var(--space-unit)}:host([current-position^="bottom"]){margin:var(--space-unit) 0 0}:host([current-position^="left"]){margin:0 var(--space-unit) 0 0}:host([current-position^="right"]){margin:0 0 0 var(--space-unit)}:host([current-position])::before{--arrow-size:6px;--arrow-edge-offset:calc(100% - var(--space-unit) - (var(--arrow-size) / 2));--arrow-center-x-offset:calc(50% - (var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - (var(--arrow-size) / 2));position:absolute;display:block;width:var(--arrow-size);height:var(--arrow-size);background:var(--z-popover-theme--surface);content:"";transform:rotate(45deg)}:host([show-arrow="false"])::before,:host(:not([show-arrow]))::before{display:none}:host([current-position^="top"])::before{top:var(--arrow-center-y-offset)}:host([current-position^="bottom"])::before{bottom:var(--arrow-center-y-offset)}:host([current-position="top"])::before,:host([current-position="bottom"])::before{right:var(--arrow-edge-offset)}:host([current-position="right"])::before,:host([current-position="left"])::before{bottom:var(--arrow-edge-offset)}:host([current-position="right"])::before{right:var(--arrow-center-y-offset)}:host([current-position="left"])::before{left:var(--arrow-center-y-offset)}:host([current-position="top_right"])::before,:host([current-position="bottom_right"])::before{right:var(--arrow-edge-offset)}:host([current-position="top_left"])::before,:host([current-position="bottom_left"])::before{left:var(--arrow-edge-offset)}:host([current-position="right_top"])::before,:host([current-position="left_top"])::before{top:var(--arrow-edge-offset)}:host([current-position="right_top"])::before,:host([current-position="right_bottom"])::before{right:var(--arrow-center-y-offset)}:host([current-position="left_top"])::before,:host([current-position="left_bottom"])::before{left:var(--arrow-center-y-offset)}:host([current-position="right_bottom"])::before,:host([current-position="left_bottom"])::before{bottom:var(--arrow-edge-offset)}:host([center][current-position="top"])::before,:host([center][current-position="bottom"])::before{right:auto;left:var(--arrow-center-x-offset)}:host([center][current-position="right"])::before,:host([center][current-position="left"])::before{top:var(--arrow-center-x-offset);bottom:auto}::slotted(*){overflow:auto;flex:1 auto}';export{p as z_popover}
1
+ import{r as t,c as o,h as e,g as r}from"./p-d17ebc2f.js";import{P as i,g as s}from"./p-6b454593.js";const n=document.documentElement;function a(t){return t.parentNode.host?t.parentNode.host:t.parentNode}function h(t,o){const e=t.getBoundingClientRect(),r=e.width,i=e.height;let s,n,a=0,h=0,p=t;for(;p&&p!=o;){if(h+=p.offsetLeft,p===document.body?a+=p.getBoundingClientRect().top+window.scrollY:a+=p.offsetTop,window.DOMMatrix){const t=window.getComputedStyle(p),o=new DOMMatrix(t.transform||t.webkitTransform);o&&(h+=o.m41,p!==document.body&&(a+=o.m42))}if(!p.offsetParent)break;p=p.offsetParent}return p===document.body?(s=window.innerWidth,n=window.innerHeight):(s=p.offsetWidth,n=p.offsetHeight),{top:a,right:s-h-e.width,bottom:n-a-e.height,left:h,width:r,height:i}}const p=class{constructor(e){t(this,e),this.positionChange=o(this,"positionChange",7),this.openChange=o(this,"openChange",7),this.position=i.AUTO,this.open=!1,this.showArrow=!1,this.center=!1,this.closable=!0}closePopoverWithKeyboard(t){this.closable&&t.key===s.ESC&&(this.open=!1)}handleOutsideClick(t){if(this.closable&&this.open&&!t.composedPath().includes(this.host)){const o=t.target;(this.bindTo instanceof HTMLElement?this.bindTo.contains(o):o.closest(this.bindTo))&&t.stopPropagation(),this.open=!1,this.positionChange.emit({position:this.currentPosition})}}validatePosition(t){t&&!Object.values(i).includes(t)&&(this.position=i.AUTO),this.currentPosition=this.position,this.positionChange.emit({position:this.currentPosition})}onOpen(){if(cancelAnimationFrame(this.animationFrameRequestId),this.open){const t=()=>{this.open&&(this.setPosition(),this.animationFrameRequestId=requestAnimationFrame(t))};t()}else this.host.hasAttribute("current-position")&&(this.host.removeAttribute("current-position"),this.currentPosition=void 0);this.openChange.emit({open:this.open})}disconnectedCallback(){cancelAnimationFrame(this.animationFrameRequestId)}setPosition(){let t;if(t="string"==typeof this.bindTo?this.host.ownerDocument.querySelector(this.bindTo):this.bindTo?this.bindTo:this.host.parentElement,!t)return;const o=function(t){let o=a(t);for(;o&&o!==n;){const{overflow:t,overflowX:e,overflowY:r}=window.getComputedStyle(o);if("hidden"===t||"hidden"===r||"hidden"===e)return o;if(o.scrollHeight>o.clientHeight&&"visible"!==t&&"visible"!==r||o.scrollWidth>o.clientWidth&&"visible"!==t&&"visible"!==e)return o;o=a(o)}return n}(t),e=o.getBoundingClientRect(),r=this.host.offsetParent,s=r?h(r,o):{top:0,right:0,bottom:0,left:0},p=h(t,o),c=p.top-o.scrollTop,f=e.height-(p.top+p.height)+o.scrollTop,u=p.left-o.scrollLeft,l=e.width-(p.left+p.width)+o.scrollLeft,b=Math.max(0,e.top+e.height-window.innerHeight),d=Math.max(0,e.left+e.width-window.innerWidth),v=Math.min(c,c+e.top),w=Math.min(f,f-b),m=Math.min(u,u+e.left),g=Math.min(l,l-d),x=v+w+p.height,$=m+g+p.width;let y=this.currentPosition;const z=[];this.position===i.AUTO&&(m/$>.6?z.push(i.LEFT):m/$<.4&&z.push(i.RIGHT),v/x>.9?z.unshift(i.TOP):v/x>.6?z.push(i.TOP):v/x<.1?z.unshift(i.BOTTOM):z.push(i.BOTTOM),y=z.join("_"));const _=this.host.style;_.position="absolute";const M=p.top-s.top,k=p.right-s.right,O=p.bottom-s.bottom,P=p.left-s.left,j=this.center?.5:0,C=this.center?.5:0;y===i.TOP||y===i.TOP_RIGHT?(_.top="auto",_.right="auto",_.bottom=`${O+p.height}px`,_.left=`${P+p.width*j}px`,_.maxHeight=`${v}px`,y===i.TOP_RIGHT&&(_.maxWidth=`${g+p.width*C}px`)):y===i.TOP_LEFT?(_.top="auto",_.right=`${k+p.width*j}px`,_.bottom=`${O+p.height}px`,_.left="auto",_.maxWidth=`${m}px`,_.maxHeight=`${v}px`):y===i.BOTTOM||y===i.BOTTOM_RIGHT?(_.top=`${M+p.height}px`,_.right="auto",_.bottom="auto",_.left=`${P+p.width*j}px`,_.maxHeight=`${w}px`,y===i.BOTTOM_RIGHT&&(_.maxWidth=`${g+p.width*C}px`)):y===i.BOTTOM_LEFT?(_.top=`${M+p.height}px`,_.right=`${k+p.width*j}px`,_.bottom="auto",_.left="auto",_.maxWidth=`${m}px`,_.maxHeight=`${w}px`):y===i.RIGHT||y===i.RIGHT_BOTTOM?(_.top=`${M+p.height*j}px`,_.right="auto",_.bottom="auto",_.left=`${P+p.width}px`,_.maxWidth=`${g}px`,_.maxHeight=`${w+p.height*C}px`):y===i.RIGHT_TOP?(_.top="auto",_.right="auto",_.bottom=`${O+p.height*j}px`,_.left=`${P+p.width}px`,_.maxWidth=`${g}px`,_.maxHeight=`${v+p.height*C}px`):y===i.LEFT||y===i.LEFT_BOTTOM?(_.top=`${M+p.height*j}px`,_.right=`${k+p.width}px`,_.bottom="auto",_.left="auto",_.maxWidth=`${m}px`,_.maxHeight=`${w+p.height*C}px`):y===i.LEFT_TOP&&(_.top="auto",_.right=`${k+p.width}px`,_.bottom=`${O+p.height*j}px`,_.left="auto",_.maxWidth=`${m}px`,_.maxHeight=`${v+p.height*C}px`),this.currentPosition=y||this.position,this.host.setAttribute("current-position",this.currentPosition)}componentWillLoad(){this.validatePosition(this.position),this.onOpen()}render(){return e("slot",null)}get host(){return r(this)}static get watchers(){return{position:["validatePosition"],open:["onOpen"]}}};p.style=':host{--z-popover-theme--surface:var(--color-surface01);--z-popover-theme--text:var(--color-text01);--z-popover-padding:0;--z-popover-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base));position:relative;display:none;min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);align-items:center;justify-content:center;padding:var(--z-popover-padding);background:var(--z-popover-theme--surface);border-radius:var(--border-radius-small);color:var(--z-popover-theme--text);fill:currentcolor;filter:var(--z-popover-shadow-filter);font-family:var(--font-family-sans);text-align:center}:host([open][current-position]),:host([open="true"][current-position]){display:flex}:host([center][current-position="top"]),:host([center][current-position="bottom"]){transform:translateX(-50%)}:host([center][current-position="right"]),:host([center][current-position="left"]){transform:translateY(-50%)}:host([current-position^="top"]){margin:0 0 var(--space-unit)}:host([current-position^="bottom"]){margin:var(--space-unit) 0 0}:host([current-position^="left"]){margin:0 var(--space-unit) 0 0}:host([current-position^="right"]){margin:0 0 0 var(--space-unit)}:host([current-position])::before{--arrow-size:6px;--arrow-edge-offset:calc(100% - var(--space-unit) - (var(--arrow-size) / 2));--arrow-center-x-offset:calc(50% - (var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - (var(--arrow-size) / 2));position:absolute;display:block;width:var(--arrow-size);height:var(--arrow-size);background:var(--z-popover-theme--surface);content:"";transform:rotate(45deg)}:host([show-arrow="false"])::before,:host(:not([show-arrow]))::before{display:none}:host([current-position^="top"])::before{top:var(--arrow-center-y-offset)}:host([current-position^="bottom"])::before{bottom:var(--arrow-center-y-offset)}:host([current-position="top"])::before,:host([current-position="bottom"])::before{right:var(--arrow-edge-offset)}:host([current-position="right"])::before,:host([current-position="left"])::before{bottom:var(--arrow-edge-offset)}:host([current-position="right"])::before{right:var(--arrow-center-y-offset)}:host([current-position="left"])::before{left:var(--arrow-center-y-offset)}:host([current-position="top_right"])::before,:host([current-position="bottom_right"])::before{right:var(--arrow-edge-offset)}:host([current-position="top_left"])::before,:host([current-position="bottom_left"])::before{left:var(--arrow-edge-offset)}:host([current-position="right_top"])::before,:host([current-position="left_top"])::before{top:var(--arrow-edge-offset)}:host([current-position="right_top"])::before,:host([current-position="right_bottom"])::before{right:var(--arrow-center-y-offset)}:host([current-position="left_top"])::before,:host([current-position="left_bottom"])::before{left:var(--arrow-center-y-offset)}:host([current-position="right_bottom"])::before,:host([current-position="left_bottom"])::before{bottom:var(--arrow-edge-offset)}:host([center][current-position="top"])::before,:host([center][current-position="bottom"])::before{right:auto;left:var(--arrow-center-x-offset)}:host([center][current-position="right"])::before,:host([center][current-position="left"])::before{top:var(--arrow-center-x-offset);bottom:auto}::slotted(*){overflow:auto;flex:1 auto}';export{p as z_popover}