@oiz/stzh-components 0.0.0-pretest → 1.4.0-npmjstest
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.
- package/LICENSE +21 -21
- package/README.md +56 -56
- package/dist/cjs/{animation-utils-c816beac.js → animation-utils-cfa35ce7.js} +37 -37
- package/dist/cjs/{app-globals-83a6c2d3.js → app-globals-e07b8f5f.js} +42 -42
- package/dist/cjs/{arrow-70a32014.js → arrow-3c3b0ae5.js} +3 -3
- package/dist/cjs/{date-adapter-2ffd8eaf.js → date-adapter-2a78f6f8.js} +85 -85
- package/dist/cjs/{date-utils-898a50be.js → date-utils-bb50c91f.js} +156 -156
- package/dist/cjs/{event-utils-4d7d610a.js → event-utils-9b64c792.js} +13 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{media-utils-f1720906.js → media-utils-8cfc8591.js} +19 -19
- package/dist/cjs/{string-utils-223b03e2.js → string-utils-a867b99d.js} +12 -12
- package/dist/cjs/stzh-accordion-item.cjs.entry.js +170 -170
- package/dist/cjs/stzh-accordion.cjs.entry.js +63 -63
- package/dist/cjs/stzh-actions.cjs.entry.js +42 -42
- package/dist/cjs/stzh-appnav.cjs.entry.js +39 -39
- package/dist/cjs/stzh-appointments.cjs.entry.js +260 -260
- package/dist/cjs/stzh-badge_3.cjs.entry.js +146 -146
- package/dist/cjs/stzh-calendar.cjs.entry.js +291 -291
- package/dist/cjs/stzh-cell.cjs.entry.js +24 -24
- package/dist/cjs/stzh-checkbox.cjs.entry.js +123 -123
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +157 -157
- package/dist/cjs/stzh-chip-select.cjs.entry.js +55 -55
- package/dist/cjs/stzh-chip.cjs.entry.js +90 -90
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-container.cjs.entry.js +8 -8
- package/dist/cjs/stzh-cspace.cjs.entry.js +11 -11
- package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +92 -92
- package/dist/cjs/stzh-datamessagelist.cjs.entry.js +12 -12
- package/dist/cjs/stzh-datatable.cjs.entry.js +201 -201
- package/dist/cjs/stzh-datepicker_4.cjs.entry.js +458 -458
- package/dist/cjs/stzh-dialog.cjs.entry.js +179 -179
- package/dist/cjs/stzh-dropdown.cjs.entry.js +450 -450
- package/dist/cjs/stzh-fieldset.cjs.entry.js +24 -24
- package/dist/cjs/stzh-figure.cjs.entry.js +19 -19
- package/dist/cjs/stzh-flyingfocus.cjs.entry.js +167 -167
- package/dist/cjs/stzh-footer.cjs.entry.js +56 -56
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +132 -132
- package/dist/cjs/stzh-header.cjs.entry.js +151 -151
- package/dist/cjs/stzh-heading.cjs.entry.js +21 -21
- package/dist/cjs/stzh-hr.cjs.entry.js +12 -12
- package/dist/cjs/stzh-hspace.cjs.entry.js +30 -30
- package/dist/cjs/stzh-icon-sprite.cjs.entry.js +9 -9
- package/dist/cjs/{stzh-input-description-9ed61d1d.js → stzh-input-description-9802abc2.js} +15 -15
- package/dist/cjs/stzh-input.cjs.entry.js +181 -181
- package/dist/cjs/stzh-link.cjs.entry.js +95 -95
- package/dist/cjs/stzh-list-item.cjs.entry.js +15 -15
- package/dist/cjs/stzh-list.cjs.entry.js +15 -15
- package/dist/cjs/stzh-loader.cjs.entry.js +20 -20
- package/dist/cjs/stzh-loadingbar.cjs.entry.js +22 -22
- package/dist/cjs/stzh-menu_2.cjs.entry.js +81 -81
- package/dist/cjs/stzh-message.cjs.entry.js +72 -72
- package/dist/cjs/stzh-metanav.cjs.entry.js +26 -26
- package/dist/cjs/stzh-overlay.cjs.entry.js +88 -88
- package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +26 -26
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +61 -61
- package/dist/cjs/stzh-popover.cjs.entry.js +349 -349
- package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +12 -12
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js +46 -46
- package/dist/cjs/stzh-progressbar.cjs.entry.js +114 -114
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +47 -47
- package/dist/cjs/stzh-row.cjs.entry.js +29 -29
- package/dist/cjs/stzh-saptcha.cjs.entry.js +70 -70
- package/dist/cjs/stzh-section.cjs.entry.js +13 -13
- package/dist/cjs/stzh-servicecard-list.cjs.entry.js +45 -45
- package/dist/cjs/stzh-servicecard.cjs.entry.js +201 -201
- package/dist/cjs/stzh-skiplink.cjs.entry.js +16 -16
- package/dist/cjs/stzh-sortable.cjs.entry.js +288 -288
- package/dist/cjs/stzh-status.cjs.entry.js +25 -25
- package/dist/cjs/stzh-table.cjs.entry.js +132 -132
- package/dist/cjs/stzh-toggle.cjs.entry.js +123 -123
- package/dist/cjs/stzh-tooltip.cjs.entry.js +310 -310
- package/dist/cjs/stzh-upload.cjs.entry.js +440 -440
- package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +71 -71
- package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +95 -95
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +171 -171
- package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +10 -10
- package/dist/cjs/stzh-vspace.cjs.entry.js +30 -30
- package/dist/cjs/{translation-utils-2dbbce94.js → translation-utils-73073e44.js} +54 -54
- package/dist/cjs/{utils-e84f4a8d.js → utils-d327c19d.js} +30 -30
- package/dist/collection/assets/favicons/browserconfig.xml +9 -9
- package/dist/collection/assets/favicons/site.webmanifest +19 -19
- package/dist/collection/assets/fonts.css +39 -39
- package/dist/collection/assets/i18n/de.json +154 -154
- package/dist/collection/assets/i18n/en.json +154 -154
- package/dist/collection/assets/icons/mono/alarm-bell.svg +3 -3
- package/dist/collection/assets/icons/mono/angle-down.svg +3 -3
- package/dist/collection/assets/icons/mono/angle-left.svg +3 -3
- package/dist/collection/assets/icons/mono/angle-right.svg +3 -3
- package/dist/collection/assets/icons/mono/angle-up.svg +3 -3
- package/dist/collection/assets/icons/mono/archive-box.svg +3 -3
- package/dist/collection/assets/icons/mono/arrow-down.svg +3 -3
- package/dist/collection/assets/icons/mono/arrow-left-circle.svg +4 -4
- package/dist/collection/assets/icons/mono/arrow-left.svg +3 -3
- package/dist/collection/assets/icons/mono/arrow-right-long.svg +3 -3
- package/dist/collection/assets/icons/mono/arrow-right.svg +3 -3
- package/dist/collection/assets/icons/mono/arrow-up.svg +3 -3
- package/dist/collection/assets/icons/mono/bulleted-list.svg +3 -3
- package/dist/collection/assets/icons/mono/calendar.svg +3 -3
- package/dist/collection/assets/icons/mono/cart.svg +3 -3
- package/dist/collection/assets/icons/mono/checkmark-circle.svg +3 -3
- package/dist/collection/assets/icons/mono/checkmark.svg +3 -3
- package/dist/collection/assets/icons/mono/clock.svg +3 -3
- package/dist/collection/assets/icons/mono/close-circle.svg +3 -3
- package/dist/collection/assets/icons/mono/close.svg +3 -3
- package/dist/collection/assets/icons/mono/compass-direction.svg +3 -3
- package/dist/collection/assets/icons/mono/compass-north.svg +4 -4
- package/dist/collection/assets/icons/mono/construction.svg +3 -3
- package/dist/collection/assets/icons/mono/copy.svg +3 -3
- package/dist/collection/assets/icons/mono/delete.svg +3 -3
- package/dist/collection/assets/icons/mono/download.svg +3 -3
- package/dist/collection/assets/icons/mono/drag.svg +10 -10
- package/dist/collection/assets/icons/mono/edit.svg +3 -3
- package/dist/collection/assets/icons/mono/email-check.svg +10 -10
- package/dist/collection/assets/icons/mono/expand.svg +3 -3
- package/dist/collection/assets/icons/mono/external-link.svg +4 -4
- package/dist/collection/assets/icons/mono/facebook-comment.svg +3 -3
- package/dist/collection/assets/icons/mono/facebook.svg +10 -10
- package/dist/collection/assets/icons/mono/file.svg +3 -3
- package/dist/collection/assets/icons/mono/filtering.svg +3 -3
- package/dist/collection/assets/icons/mono/flag.svg +10 -10
- package/dist/collection/assets/icons/mono/focus.svg +3 -3
- package/dist/collection/assets/icons/mono/gear.svg +3 -3
- package/dist/collection/assets/icons/mono/heart.svg +10 -10
- package/dist/collection/assets/icons/mono/home.svg +10 -10
- package/dist/collection/assets/icons/mono/important-warning.svg +3 -3
- package/dist/collection/assets/icons/mono/info-help.svg +3 -3
- package/dist/collection/assets/icons/mono/instagram.svg +3 -3
- package/dist/collection/assets/icons/mono/like-hand.svg +10 -10
- package/dist/collection/assets/icons/mono/linkedin.svg +5 -5
- package/dist/collection/assets/icons/mono/list-expanded.svg +4 -4
- package/dist/collection/assets/icons/mono/list-shrinked.svg +3 -3
- package/dist/collection/assets/icons/mono/lock.svg +10 -10
- package/dist/collection/assets/icons/mono/mail.svg +10 -10
- package/dist/collection/assets/icons/mono/map.svg +3 -3
- package/dist/collection/assets/icons/mono/menu.svg +3 -3
- package/dist/collection/assets/icons/mono/minus.svg +3 -3
- package/dist/collection/assets/icons/mono/more-horizontal.svg +5 -5
- package/dist/collection/assets/icons/mono/more-vertical.svg +5 -5
- package/dist/collection/assets/icons/mono/paper-clip.svg +10 -10
- package/dist/collection/assets/icons/mono/phone.svg +10 -10
- package/dist/collection/assets/icons/mono/pin-location.svg +10 -10
- package/dist/collection/assets/icons/mono/pin.svg +11 -11
- package/dist/collection/assets/icons/mono/play-1.svg +4 -4
- package/dist/collection/assets/icons/mono/play-button.svg +11 -11
- package/dist/collection/assets/icons/mono/play.svg +10 -10
- package/dist/collection/assets/icons/mono/plus.svg +3 -3
- package/dist/collection/assets/icons/mono/portfolio-grid.svg +11 -11
- package/dist/collection/assets/icons/mono/print.svg +10 -10
- package/dist/collection/assets/icons/mono/question-help.svg +3 -3
- package/dist/collection/assets/icons/mono/read-mail.svg +10 -10
- package/dist/collection/assets/icons/mono/reload.svg +10 -10
- package/dist/collection/assets/icons/mono/reset-time.svg +10 -10
- package/dist/collection/assets/icons/mono/reset.svg +10 -10
- package/dist/collection/assets/icons/mono/resize.svg +8 -8
- package/dist/collection/assets/icons/mono/rss.svg +12 -12
- package/dist/collection/assets/icons/mono/search.svg +3 -3
- package/dist/collection/assets/icons/mono/services.svg +6 -6
- package/dist/collection/assets/icons/mono/share.svg +3 -3
- package/dist/collection/assets/icons/mono/shrink.svg +3 -3
- package/dist/collection/assets/icons/mono/silent-mode.svg +3 -3
- package/dist/collection/assets/icons/mono/social-media.svg +23 -23
- package/dist/collection/assets/icons/mono/star-filled.svg +3 -3
- package/dist/collection/assets/icons/mono/star.svg +3 -3
- package/dist/collection/assets/icons/mono/subtitle.svg +3 -3
- package/dist/collection/assets/icons/mono/team.svg +10 -10
- package/dist/collection/assets/icons/mono/text-message.svg +6 -6
- package/dist/collection/assets/icons/mono/thermometer.svg +10 -10
- package/dist/collection/assets/icons/mono/transcript.svg +3 -3
- package/dist/collection/assets/icons/mono/twitter-reply.svg +3 -3
- package/dist/collection/assets/icons/mono/twitter-retweet.svg +3 -3
- package/dist/collection/assets/icons/mono/twitter.svg +10 -10
- package/dist/collection/assets/icons/mono/unlock.svg +10 -10
- package/dist/collection/assets/icons/mono/user.svg +3 -3
- package/dist/collection/assets/icons/mono/view-hidden.svg +3 -3
- package/dist/collection/assets/icons/mono/view.svg +4 -4
- package/dist/collection/assets/icons/mono/volume-medium.svg +3 -3
- package/dist/collection/assets/icons/mono/warning-big.svg +4 -4
- package/dist/collection/assets/icons/mono/warning.svg +3 -3
- package/dist/collection/assets/icons/mono/web-Link.svg +3 -3
- package/dist/collection/assets/icons/mono/wifi-signal.svg +3 -3
- package/dist/collection/assets/icons/mono/world-globe.svg +10 -10
- package/dist/collection/assets/icons/mono/xing.svg +11 -11
- package/dist/collection/assets/polyfills/ie11CustomProperties.min.js +8 -8
- package/dist/collection/assets/polyfills/intersection-observer.min.js +7 -7
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Common.Settings.js +278 -278
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Core.js +544 -544
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.HL.js +1111 -1111
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.PlayerAPI.js +211 -211
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.js +257 -257
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.lib.Facade.adapter.jquery.js +120 -120
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.lib.RSLib.js +796 -796
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.pub.Config.js +384 -384
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.ui.js +1241 -1241
- package/dist/collection/assets/vendors/readspeaker/ReadSpeakerClassic.css +357 -357
- package/dist/collection/assets/vendors/readspeaker/ReadSpeakerClassic.js +51 -51
- package/dist/collection/assets/vendors/readspeaker/mods/enlargeHL/ReadSpeaker.enlargeHL.js +24 -24
- package/dist/collection/components/stzh-accordion/stzh-accordion.js +156 -156
- package/dist/collection/components/stzh-accordion/stzh-accordion.stories.js +52 -52
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +429 -429
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +45 -45
- package/dist/collection/components/stzh-actions/stzh-actions.js +98 -98
- package/dist/collection/components/stzh-actions/stzh-actions.stories.js +66 -66
- package/dist/collection/components/stzh-appnav/stzh-appnav.js +112 -112
- package/dist/collection/components/stzh-appnav/stzh-appnav.stories.js +53 -53
- package/dist/collection/components/stzh-appointments/stzh-appointments.js +515 -515
- package/dist/collection/components/stzh-appointments/stzh-appointments.localization.js +1 -1
- package/dist/collection/components/stzh-appointments/stzh-appointments.stories.js +186 -186
- package/dist/collection/components/stzh-badge/stzh-badge.js +47 -47
- package/dist/collection/components/stzh-badge/stzh-badge.stories.js +36 -36
- package/dist/collection/components/stzh-button/stzh-button.js +516 -516
- package/dist/collection/components/stzh-button/stzh-button.stories.js +66 -66
- package/dist/collection/components/stzh-calendar/stzh-calendar-day.js +22 -22
- package/dist/collection/components/stzh-calendar/stzh-calendar-month.js +21 -21
- package/dist/collection/components/stzh-calendar/stzh-calendar.js +463 -463
- package/dist/collection/components/stzh-calendar/stzh-calendar.localization.js +1 -1
- package/dist/collection/components/stzh-calendar/stzh-calendar.stories.js +37 -37
- package/dist/collection/components/stzh-cell/stzh-cell.js +179 -179
- package/dist/collection/components/stzh-cell/stzh-cell.stories.js +39 -39
- package/dist/collection/components/stzh-checkbox/assets/check.svg +3 -3
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +459 -459
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.stories.js +38 -38
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +450 -450
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.stories.js +39 -39
- package/dist/collection/components/stzh-chip/stzh-chip.js +407 -407
- package/dist/collection/components/stzh-chip/stzh-chip.stories.js +64 -64
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +158 -158
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.stories.js +69 -69
- package/dist/collection/components/stzh-container/stzh-container.js +21 -21
- package/dist/collection/components/stzh-container/stzh-container.stories.js +35 -35
- package/dist/collection/components/stzh-cspace/stzh-cspace.js +24 -24
- package/dist/collection/components/stzh-cspace/stzh-cspace.stories.js +34 -34
- package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.js +24 -24
- package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.stories.js +149 -149
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +358 -358
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.js +1 -1
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.stories.js +63 -63
- package/dist/collection/components/stzh-datatable/stzh-datatable.js +413 -413
- package/dist/collection/components/stzh-datatable/stzh-datatable.localization.js +1 -1
- package/dist/collection/components/stzh-datatable/stzh-datatable.stories.js +63 -63
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +586 -586
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.localization.js +1 -1
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.stories.js +39 -39
- package/dist/collection/components/stzh-dialog/stzh-dialog.js +480 -480
- package/dist/collection/components/stzh-dialog/stzh-dialog.localization.js +1 -1
- package/dist/collection/components/stzh-dialog/stzh-dialog.stories.js +75 -75
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +1436 -1436
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.localization.js +1 -1
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.stories.js +109 -109
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +120 -120
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.stories.js +55 -55
- package/dist/collection/components/stzh-figure/stzh-figure.js +76 -76
- package/dist/collection/components/stzh-figure/stzh-figure.stories.js +36 -36
- package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.js +253 -253
- package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.stories.js +27 -27
- package/dist/collection/components/stzh-footer/stzh-footer.js +147 -147
- package/dist/collection/components/stzh-footer/stzh-footer.localization.js +1 -1
- package/dist/collection/components/stzh-footer/stzh-footer.stories.js +49 -49
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.js +319 -319
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.localization.js +1 -1
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.stories.js +49 -49
- package/dist/collection/components/stzh-header/stzh-header.js +267 -267
- package/dist/collection/components/stzh-header/stzh-header.stories.js +178 -178
- package/dist/collection/components/stzh-heading/stzh-heading.js +99 -99
- package/dist/collection/components/stzh-heading/stzh-heading.stories.js +37 -37
- package/dist/collection/components/stzh-hr/stzh-hr.js +25 -25
- package/dist/collection/components/stzh-hr/stzh-hr.stories.js +23 -23
- package/dist/collection/components/stzh-hspace/stzh-hspace.js +246 -246
- package/dist/collection/components/stzh-hspace/stzh-hspace.stories.js +73 -73
- package/dist/collection/components/stzh-icon/stzh-icon.js +76 -76
- package/dist/collection/components/stzh-icon/stzh-icon.stories.js +37 -37
- package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +1354 -1354
- package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.js +19 -19
- package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.stories.js +46 -46
- package/dist/collection/components/stzh-input/stzh-input-description.js +8 -8
- package/dist/collection/components/stzh-input/stzh-input.js +724 -724
- package/dist/collection/components/stzh-input/stzh-input.stories.js +116 -116
- package/dist/collection/components/stzh-link/stzh-link.js +427 -427
- package/dist/collection/components/stzh-link/stzh-link.stories.js +67 -67
- package/dist/collection/components/stzh-list/stzh-list.js +52 -52
- package/dist/collection/components/stzh-list/stzh-list.stories.js +42 -42
- package/dist/collection/components/stzh-list-item/assets/checkmark.svg +3 -3
- package/dist/collection/components/stzh-list-item/stzh-list-item.js +26 -26
- package/dist/collection/components/stzh-loader/stzh-loader.js +93 -93
- package/dist/collection/components/stzh-loader/stzh-loader.stories.js +36 -36
- package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.js +94 -94
- package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.stories.js +34 -34
- package/dist/collection/components/stzh-menu/stzh-menu.js +21 -21
- package/dist/collection/components/stzh-menu/stzh-menu.stories.js +69 -69
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +296 -296
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.stories.js +52 -52
- package/dist/collection/components/stzh-message/stzh-message.js +287 -287
- package/dist/collection/components/stzh-message/stzh-message.localization.js +1 -1
- package/dist/collection/components/stzh-message/stzh-message.stories.js +40 -40
- package/dist/collection/components/stzh-metanav/stzh-metanav.js +41 -41
- package/dist/collection/components/stzh-metanav/stzh-metanav.stories.js +39 -39
- package/dist/collection/components/stzh-overlay/stzh-overlay.js +239 -239
- package/dist/collection/components/stzh-overlay/stzh-overlay.stories.js +50 -50
- package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.js +41 -41
- package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.stories.js +43 -43
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +76 -76
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +107 -107
- package/dist/collection/components/stzh-popover/stzh-popover.js +673 -673
- package/dist/collection/components/stzh-popover/stzh-popover.localization.js +1 -1
- package/dist/collection/components/stzh-popover/stzh-popover.stories.js +67 -67
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +578 -578
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.js +25 -25
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.stories.js +28 -28
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +272 -272
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.stories.js +164 -164
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +250 -250
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.stories.js +36 -36
- package/dist/collection/components/stzh-radio/stzh-radio.js +458 -458
- package/dist/collection/components/stzh-radio/stzh-radio.stories.js +38 -38
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +479 -477
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.stories.js +39 -39
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +114 -114
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.stories.js +50 -50
- package/dist/collection/components/stzh-richtext/stzh-richtext.js +90 -90
- package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +79 -79
- package/dist/collection/components/stzh-row/stzh-row.js +207 -207
- package/dist/collection/components/stzh-row/stzh-row.stories.js +90 -90
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.js +221 -221
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.localization.js +1 -1
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.stories.js +34 -34
- package/dist/collection/components/stzh-section/stzh-section.js +50 -50
- package/dist/collection/components/stzh-section/stzh-section.stories.js +100 -100
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.js +592 -592
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.localization.js +1 -1
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.stories.js +73 -73
- package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.js +153 -153
- package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.localization.js +1 -1
- package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.stories.js +115 -115
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.js +106 -106
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.stories.js +53 -53
- package/dist/collection/components/stzh-sortable/stzh-sortable.js +501 -501
- package/dist/collection/components/stzh-sortable/stzh-sortable.localization.js +1 -1
- package/dist/collection/components/stzh-sortable/stzh-sortable.stories.js +34 -34
- package/dist/collection/components/stzh-status/stzh-status.js +115 -115
- package/dist/collection/components/stzh-status/stzh-status.stories.js +34 -34
- package/dist/collection/components/stzh-table/stzh-table.js +215 -215
- package/dist/collection/components/stzh-table/stzh-table.stories.js +89 -89
- package/dist/collection/components/stzh-text/stzh-text.js +232 -232
- package/dist/collection/components/stzh-text/stzh-text.stories.js +43 -43
- package/dist/collection/components/stzh-toggle/stzh-toggle.js +479 -479
- package/dist/collection/components/stzh-toggle/stzh-toggle.stories.js +38 -38
- package/dist/collection/components/stzh-tooltip/assets/arrow.svg +3 -3
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +667 -667
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.localization.js +1 -1
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.stories.js +63 -63
- package/dist/collection/components/stzh-upload/stzh-upload.js +1358 -1358
- package/dist/collection/components/stzh-upload/stzh-upload.localization.js +1 -1
- package/dist/collection/components/stzh-upload/stzh-upload.stories.js +69 -69
- package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.js +229 -229
- package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.stories.js +36 -36
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.js +236 -236
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.js +1 -1
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.stories.js +52 -52
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js +292 -292
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.js +1 -1
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.stories.js +53 -53
- package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.js +23 -23
- package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.stories.js +45 -45
- package/dist/collection/components/stzh-vspace/stzh-vspace.js +246 -246
- package/dist/collection/components/stzh-vspace/stzh-vspace.stories.js +73 -73
- package/dist/collection/global/js/helpers/autofocus.js +20 -20
- package/dist/collection/global/js/helpers/scrollbar-width.js +20 -20
- package/dist/collection/global/js/script.js +17 -17
- package/dist/collection/index.js +7 -7
- package/dist/collection/pages/egov.stories.js +262 -262
- package/dist/collection/pages/example.stories.js +170 -170
- package/dist/collection/pages/meinkonto.stories.js +660 -660
- package/dist/collection/patterns/appointments.stories.js +43 -43
- package/dist/collection/patterns/processingscreen.stories.js +43 -43
- package/dist/collection/utils/animation-utils.js +51 -51
- package/dist/collection/utils/date-adapter.js +86 -86
- package/dist/collection/utils/date-utils.js +196 -196
- package/dist/collection/utils/decorators.js +15 -15
- package/dist/collection/utils/event-utils.js +14 -14
- package/dist/collection/utils/h.js +109 -109
- package/dist/collection/utils/media-utils.js +20 -20
- package/dist/collection/utils/string-utils.js +13 -13
- package/dist/collection/utils/test-utils.js +27 -27
- package/dist/collection/utils/translation-utils.js +55 -55
- package/dist/collection/utils/utils.js +41 -41
- package/dist/components/animation-utils.js +37 -37
- package/dist/components/arrow.js +3 -3
- package/dist/components/date-adapter.js +85 -85
- package/dist/components/event-utils.js +13 -13
- package/dist/components/index.js +41 -41
- package/dist/components/media-utils.js +19 -19
- package/dist/components/string-utils.js +12 -12
- package/dist/components/stzh-accordion-item.js +192 -192
- package/dist/components/stzh-accordion.js +81 -81
- package/dist/components/stzh-actions.js +58 -58
- package/dist/components/stzh-appnav.js +56 -56
- package/dist/components/stzh-appointments.js +343 -343
- package/dist/components/stzh-badge2.js +26 -26
- package/dist/components/stzh-button2.js +155 -155
- package/dist/components/stzh-calendar2.js +475 -475
- package/dist/components/stzh-cell.js +47 -47
- package/dist/components/stzh-checkbox.js +159 -159
- package/dist/components/stzh-checkboxgroup.js +192 -192
- package/dist/components/stzh-chip-select.js +93 -93
- package/dist/components/stzh-chip2.js +122 -122
- package/dist/components/stzh-container.js +22 -22
- package/dist/components/stzh-cspace.js +25 -25
- package/dist/components/stzh-datamessagelist-item.js +156 -156
- package/dist/components/stzh-datamessagelist.js +26 -26
- package/dist/components/stzh-datatable.js +255 -255
- package/dist/components/stzh-datepicker2.js +206 -206
- package/dist/components/stzh-dialog.js +214 -214
- package/dist/components/stzh-dropdown2.js +514 -514
- package/dist/components/stzh-fieldset.js +48 -48
- package/dist/components/stzh-figure.js +35 -35
- package/dist/components/stzh-flyingfocus.js +188 -188
- package/dist/components/stzh-footer.js +88 -88
- package/dist/components/stzh-ghettobox2.js +124 -124
- package/dist/components/stzh-header.js +174 -174
- package/dist/components/stzh-heading2.js +39 -39
- package/dist/components/stzh-hr.js +26 -26
- package/dist/components/stzh-hspace.js +54 -54
- package/dist/components/stzh-icon-sprite.js +23 -23
- package/dist/components/stzh-icon2.js +41 -41
- package/dist/components/stzh-input-description.js +15 -15
- package/dist/components/stzh-input2.js +239 -239
- package/dist/components/stzh-link2.js +134 -134
- package/dist/components/stzh-list-item.js +30 -30
- package/dist/components/stzh-list.js +32 -32
- package/dist/components/stzh-loader.js +38 -38
- package/dist/components/stzh-loadingbar.js +40 -40
- package/dist/components/stzh-menu-item2.js +106 -106
- package/dist/components/stzh-menu2.js +22 -22
- package/dist/components/stzh-message.js +100 -100
- package/dist/components/stzh-metanav.js +40 -40
- package/dist/components/stzh-overlay.js +108 -108
- package/dist/components/stzh-page-skiplinks.js +40 -40
- package/dist/components/stzh-pagetitle.js +74 -74
- package/dist/components/stzh-popover2.js +376 -376
- package/dist/components/stzh-portal-mitwirken.js +26 -26
- package/dist/components/stzh-progressbar-item2.js +74 -74
- package/dist/components/stzh-progressbar.js +146 -146
- package/dist/components/stzh-radio2.js +156 -156
- package/dist/components/stzh-radiogroup2.js +202 -202
- package/dist/components/stzh-readspeaker.js +63 -63
- package/dist/components/stzh-richtext2.js +57 -57
- package/dist/components/stzh-row.js +53 -53
- package/dist/components/stzh-saptcha.js +116 -116
- package/dist/components/stzh-section.js +29 -29
- package/dist/components/stzh-servicecard-list.js +84 -84
- package/dist/components/stzh-servicecard.js +263 -263
- package/dist/components/stzh-skiplink.js +35 -35
- package/dist/components/stzh-sortable2.js +310 -310
- package/dist/components/stzh-status2.js +44 -44
- package/dist/components/stzh-table.js +153 -153
- package/dist/components/stzh-text2.js +57 -57
- package/dist/components/stzh-toggle.js +160 -160
- package/dist/components/stzh-tooltip2.js +340 -340
- package/dist/components/stzh-upload.js +502 -502
- package/dist/components/stzh-vbz-linechip2.js +96 -96
- package/dist/components/stzh-vbz-majorticker.js +139 -139
- package/dist/components/stzh-vbz-ticker.js +214 -214
- package/dist/components/stzh-visuallyhidden.js +24 -24
- package/dist/components/stzh-vspace.js +54 -54
- package/dist/components/translation-utils.js +54 -54
- package/dist/components/utils.js +30 -30
- package/dist/esm/{animation-utils-27dcfc1e.js → animation-utils-25c74e5b.js} +37 -37
- package/dist/esm/{app-globals-137e106c.js → app-globals-70c229e3.js} +42 -42
- package/dist/esm/{arrow-18769ca6.js → arrow-86a679c7.js} +3 -3
- package/dist/esm/{date-adapter-c0ee5963.js → date-adapter-cbc340fa.js} +85 -85
- package/dist/esm/{date-utils-282e96fe.js → date-utils-be83fff1.js} +156 -156
- package/dist/esm/{event-utils-68b64805.js → event-utils-7a709e21.js} +13 -13
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{media-utils-db7c9057.js → media-utils-9b041ceb.js} +19 -19
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{string-utils-33181845.js → string-utils-f98ee4e8.js} +12 -12
- package/dist/esm/stzh-accordion-item.entry.js +170 -170
- package/dist/esm/stzh-accordion.entry.js +63 -63
- package/dist/esm/stzh-actions.entry.js +42 -42
- package/dist/esm/stzh-appnav.entry.js +39 -39
- package/dist/esm/stzh-appointments.entry.js +260 -260
- package/dist/esm/stzh-badge_3.entry.js +146 -146
- package/dist/esm/stzh-calendar.entry.js +291 -291
- package/dist/esm/stzh-cell.entry.js +24 -24
- package/dist/esm/stzh-checkbox.entry.js +123 -123
- package/dist/esm/stzh-checkboxgroup.entry.js +157 -157
- package/dist/esm/stzh-chip-select.entry.js +55 -55
- package/dist/esm/stzh-chip.entry.js +90 -90
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-container.entry.js +8 -8
- package/dist/esm/stzh-cspace.entry.js +11 -11
- package/dist/esm/stzh-datamessagelist-item.entry.js +92 -92
- package/dist/esm/stzh-datamessagelist.entry.js +12 -12
- package/dist/esm/stzh-datatable.entry.js +201 -201
- package/dist/esm/stzh-datepicker_4.entry.js +458 -458
- package/dist/esm/stzh-dialog.entry.js +179 -179
- package/dist/esm/stzh-dropdown.entry.js +450 -450
- package/dist/esm/stzh-fieldset.entry.js +24 -24
- package/dist/esm/stzh-figure.entry.js +19 -19
- package/dist/esm/stzh-flyingfocus.entry.js +167 -167
- package/dist/esm/stzh-footer.entry.js +56 -56
- package/dist/esm/stzh-ghettobox_2.entry.js +132 -132
- package/dist/esm/stzh-header.entry.js +151 -151
- package/dist/esm/stzh-heading.entry.js +21 -21
- package/dist/esm/stzh-hr.entry.js +12 -12
- package/dist/esm/stzh-hspace.entry.js +30 -30
- package/dist/esm/stzh-icon-sprite.entry.js +9 -9
- package/dist/esm/{stzh-input-description-fa0a4b5b.js → stzh-input-description-da7b0e98.js} +15 -15
- package/dist/esm/stzh-input.entry.js +181 -181
- package/dist/esm/stzh-link.entry.js +95 -95
- package/dist/esm/stzh-list-item.entry.js +15 -15
- package/dist/esm/stzh-list.entry.js +15 -15
- package/dist/esm/stzh-loader.entry.js +20 -20
- package/dist/esm/stzh-loadingbar.entry.js +22 -22
- package/dist/esm/stzh-menu_2.entry.js +81 -81
- package/dist/esm/stzh-message.entry.js +72 -72
- package/dist/esm/stzh-metanav.entry.js +26 -26
- package/dist/esm/stzh-overlay.entry.js +88 -88
- package/dist/esm/stzh-page-skiplinks.entry.js +26 -26
- package/dist/esm/stzh-pagetitle.entry.js +61 -61
- package/dist/esm/stzh-popover.entry.js +349 -349
- package/dist/esm/stzh-portal-mitwirken.entry.js +12 -12
- package/dist/esm/stzh-progressbar-item.entry.js +46 -46
- package/dist/esm/stzh-progressbar.entry.js +114 -114
- package/dist/esm/stzh-readspeaker.entry.js +47 -47
- package/dist/esm/stzh-row.entry.js +29 -29
- package/dist/esm/stzh-saptcha.entry.js +70 -70
- package/dist/esm/stzh-section.entry.js +13 -13
- package/dist/esm/stzh-servicecard-list.entry.js +45 -45
- package/dist/esm/stzh-servicecard.entry.js +201 -201
- package/dist/esm/stzh-skiplink.entry.js +16 -16
- package/dist/esm/stzh-sortable.entry.js +288 -288
- package/dist/esm/stzh-status.entry.js +25 -25
- package/dist/esm/stzh-table.entry.js +132 -132
- package/dist/esm/stzh-toggle.entry.js +123 -123
- package/dist/esm/stzh-tooltip.entry.js +310 -310
- package/dist/esm/stzh-upload.entry.js +440 -440
- package/dist/esm/stzh-vbz-linechip.entry.js +71 -71
- package/dist/esm/stzh-vbz-majorticker.entry.js +95 -95
- package/dist/esm/stzh-vbz-ticker.entry.js +171 -171
- package/dist/esm/stzh-visuallyhidden.entry.js +10 -10
- package/dist/esm/stzh-vspace.entry.js +30 -30
- package/dist/esm/{translation-utils-f5b09945.js → translation-utils-2623783f.js} +54 -54
- package/dist/esm/{utils-c5d68020.js → utils-904416df.js} +30 -30
- package/dist/esm-es5/{animation-utils-27dcfc1e.js → animation-utils-25c74e5b.js} +0 -0
- package/dist/esm-es5/app-globals-70c229e3.js +1 -0
- package/dist/esm-es5/{arrow-18769ca6.js → arrow-86a679c7.js} +0 -0
- package/dist/esm-es5/{date-adapter-c0ee5963.js → date-adapter-cbc340fa.js} +0 -0
- package/dist/esm-es5/{date-utils-282e96fe.js → date-utils-be83fff1.js} +0 -0
- package/dist/esm-es5/{event-utils-68b64805.js → event-utils-7a709e21.js} +0 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{media-utils-db7c9057.js → media-utils-9b041ceb.js} +0 -0
- package/dist/esm-es5/{string-utils-33181845.js → string-utils-f98ee4e8.js} +0 -0
- package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
- package/dist/esm-es5/stzh-actions.entry.js +1 -1
- package/dist/esm-es5/stzh-appnav.entry.js +1 -1
- package/dist/esm-es5/stzh-appointments.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
- package/dist/esm-es5/stzh-calendar.entry.js +1 -1
- package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
- package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
- package/dist/esm-es5/stzh-datatable.entry.js +1 -1
- package/dist/esm-es5/stzh-datepicker_4.entry.js +1 -1
- package/dist/esm-es5/stzh-dialog.entry.js +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
- package/dist/esm-es5/stzh-figure.entry.js +1 -1
- package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
- package/dist/esm-es5/stzh-footer.entry.js +1 -1
- package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
- package/dist/esm-es5/stzh-header.entry.js +1 -1
- package/dist/esm-es5/{stzh-input-description-fa0a4b5b.js → stzh-input-description-da7b0e98.js} +0 -0
- package/dist/esm-es5/stzh-input.entry.js +1 -1
- package/dist/esm-es5/stzh-link.entry.js +1 -1
- package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
- package/dist/esm-es5/stzh-message.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
- package/dist/esm-es5/stzh-popover.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
- package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
- package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
- package/dist/esm-es5/stzh-servicecard-list.entry.js +1 -1
- package/dist/esm-es5/stzh-servicecard.entry.js +1 -1
- package/dist/esm-es5/stzh-sortable.entry.js +1 -1
- package/dist/esm-es5/stzh-table.entry.js +1 -1
- package/dist/esm-es5/stzh-toggle.entry.js +1 -1
- package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
- package/dist/esm-es5/stzh-upload.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
- package/dist/esm-es5/{translation-utils-f5b09945.js → translation-utils-2623783f.js} +0 -0
- package/dist/esm-es5/{utils-c5d68020.js → utils-904416df.js} +0 -0
- package/dist/stzh-components/assets/favicons/browserconfig.xml +9 -9
- package/dist/stzh-components/assets/favicons/site.webmanifest +19 -19
- package/dist/stzh-components/assets/fonts.css +39 -39
- package/dist/stzh-components/assets/i18n/de.json +154 -154
- package/dist/stzh-components/assets/i18n/en.json +154 -154
- package/dist/stzh-components/assets/icons/mono/alarm-bell.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/angle-down.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/angle-left.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/angle-right.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/angle-up.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/archive-box.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/arrow-down.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/arrow-left-circle.svg +4 -4
- package/dist/stzh-components/assets/icons/mono/arrow-left.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/arrow-right-long.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/arrow-right.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/arrow-up.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/bulleted-list.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/calendar.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/cart.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/checkmark-circle.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/checkmark.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/clock.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/close-circle.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/close.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/compass-direction.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/compass-north.svg +4 -4
- package/dist/stzh-components/assets/icons/mono/construction.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/copy.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/delete.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/download.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/drag.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/edit.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/email-check.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/expand.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/external-link.svg +4 -4
- package/dist/stzh-components/assets/icons/mono/facebook-comment.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/facebook.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/file.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/filtering.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/flag.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/focus.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/gear.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/heart.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/home.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/important-warning.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/info-help.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/instagram.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/like-hand.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/linkedin.svg +5 -5
- package/dist/stzh-components/assets/icons/mono/list-expanded.svg +4 -4
- package/dist/stzh-components/assets/icons/mono/list-shrinked.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/lock.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/mail.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/map.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/menu.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/minus.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/more-horizontal.svg +5 -5
- package/dist/stzh-components/assets/icons/mono/more-vertical.svg +5 -5
- package/dist/stzh-components/assets/icons/mono/paper-clip.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/phone.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/pin-location.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/pin.svg +11 -11
- package/dist/stzh-components/assets/icons/mono/play-1.svg +4 -4
- package/dist/stzh-components/assets/icons/mono/play-button.svg +11 -11
- package/dist/stzh-components/assets/icons/mono/play.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/plus.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/portfolio-grid.svg +11 -11
- package/dist/stzh-components/assets/icons/mono/print.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/question-help.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/read-mail.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/reload.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/reset-time.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/reset.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/resize.svg +8 -8
- package/dist/stzh-components/assets/icons/mono/rss.svg +12 -12
- package/dist/stzh-components/assets/icons/mono/search.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/services.svg +6 -6
- package/dist/stzh-components/assets/icons/mono/share.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/shrink.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/silent-mode.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/social-media.svg +23 -23
- package/dist/stzh-components/assets/icons/mono/star-filled.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/star.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/subtitle.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/team.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/text-message.svg +6 -6
- package/dist/stzh-components/assets/icons/mono/thermometer.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/transcript.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/twitter-reply.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/twitter-retweet.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/twitter.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/unlock.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/user.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/view-hidden.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/view.svg +4 -4
- package/dist/stzh-components/assets/icons/mono/volume-medium.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/warning-big.svg +4 -4
- package/dist/stzh-components/assets/icons/mono/warning.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/web-Link.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/wifi-signal.svg +3 -3
- package/dist/stzh-components/assets/icons/mono/world-globe.svg +10 -10
- package/dist/stzh-components/assets/icons/mono/xing.svg +11 -11
- package/dist/stzh-components/assets/polyfills/ie11CustomProperties.min.js +8 -8
- package/dist/stzh-components/assets/polyfills/intersection-observer.min.js +7 -7
- package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +1354 -1354
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Common.Settings.js +278 -278
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Core.js +544 -544
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.HL.js +1111 -1111
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.PlayerAPI.js +211 -211
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.js +257 -257
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.lib.Facade.adapter.jquery.js +120 -120
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.lib.RSLib.js +796 -796
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.pub.Config.js +384 -384
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.ui.js +1241 -1241
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeakerClassic.css +357 -357
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeakerClassic.js +51 -51
- package/dist/stzh-components/assets/vendors/readspeaker/mods/enlargeHL/ReadSpeaker.enlargeHL.js +24 -24
- package/dist/stzh-components/{p-95a3c962.system.entry.js → p-043ab41e.system.entry.js} +1 -1
- package/dist/stzh-components/{p-bf5b6523.entry.js → p-07f16263.entry.js} +1 -1
- package/dist/stzh-components/p-08d4ed80.entry.js +1 -0
- package/dist/stzh-components/{p-e1b64b8a.system.entry.js → p-0c92ee26.system.entry.js} +1 -1
- package/dist/stzh-components/{p-3e3e4bfd.system.js → p-11816251.system.js} +0 -0
- package/dist/stzh-components/{p-d790a367.entry.js → p-11d0c8f3.entry.js} +1 -1
- package/dist/stzh-components/{p-bb900d9f.entry.js → p-14d728f0.entry.js} +1 -1
- package/dist/stzh-components/{p-f481f21d.system.js → p-176db2fe.system.js} +0 -0
- package/dist/stzh-components/{p-af47430b.system.entry.js → p-19344366.system.entry.js} +1 -1
- package/dist/stzh-components/{p-afa7061e.entry.js → p-1bfc1097.entry.js} +1 -1
- package/dist/stzh-components/{p-da8218fa.system.entry.js → p-1ccbd2d6.system.entry.js} +1 -1
- package/dist/stzh-components/{p-22f948e2.entry.js → p-1d914f6c.entry.js} +1 -1
- package/dist/stzh-components/{p-9fe34fe8.system.js → p-1e4b4d71.system.js} +0 -0
- package/dist/stzh-components/{p-160c6e5f.system.entry.js → p-1f15a4e0.system.entry.js} +1 -1
- package/dist/stzh-components/{p-1a40a6e4.js → p-25a09313.js} +0 -0
- package/dist/stzh-components/{p-ab2727e6.entry.js → p-298276e4.entry.js} +1 -1
- package/dist/stzh-components/{p-3ca5c2e6.system.entry.js → p-2990206c.system.entry.js} +1 -1
- package/dist/stzh-components/{p-320aedf7.js → p-2a5855f8.js} +0 -0
- package/dist/stzh-components/{p-6113bb25.entry.js → p-2d0685e3.entry.js} +1 -1
- package/dist/stzh-components/{p-1aaa5112.system.entry.js → p-2f2cb544.system.entry.js} +1 -1
- package/dist/stzh-components/{p-99195f5a.system.js → p-309d2b66.system.js} +0 -0
- package/dist/stzh-components/{p-59bdb14a.system.entry.js → p-30cb8bc0.system.entry.js} +1 -1
- package/dist/stzh-components/{p-8ba6ca80.js → p-32b78d65.js} +0 -0
- package/dist/stzh-components/{p-b06cc533.entry.js → p-33d75303.entry.js} +1 -1
- package/dist/stzh-components/{p-45d4e9b4.system.entry.js → p-346e26f2.system.entry.js} +1 -1
- package/dist/stzh-components/{p-4b8893d1.entry.js → p-3c4478b0.entry.js} +1 -1
- package/dist/stzh-components/{p-740dd50f.entry.js → p-3c799247.entry.js} +1 -1
- package/dist/stzh-components/{p-3410ef5a.system.entry.js → p-48bbcc26.system.entry.js} +1 -1
- package/dist/stzh-components/{p-3eb7b6b4.entry.js → p-49e37004.entry.js} +1 -1
- package/dist/stzh-components/{p-e029f6c5.system.entry.js → p-49ea222f.system.entry.js} +1 -1
- package/dist/stzh-components/p-4c61dcad.js +4 -4
- package/dist/stzh-components/{p-efb9fa47.system.entry.js → p-4cfe83b5.system.entry.js} +1 -1
- package/dist/stzh-components/{p-a499fa98.system.entry.js → p-4e9bfeb8.system.entry.js} +1 -1
- package/dist/stzh-components/{p-4c68fa45.system.js → p-5318ba20.system.js} +0 -0
- package/dist/stzh-components/{p-301841e3.entry.js → p-55188328.entry.js} +1 -1
- package/dist/stzh-components/{p-3afe13ac.system.entry.js → p-58ffc722.system.entry.js} +1 -1
- package/dist/stzh-components/{p-ebf73698.entry.js → p-5f7b72c8.entry.js} +1 -1
- package/dist/stzh-components/{p-af819e4e.system.js → p-5f856307.system.js} +0 -0
- package/dist/stzh-components/{p-73d51acc.system.entry.js → p-60b4f34c.system.entry.js} +1 -1
- package/dist/stzh-components/{p-5f20178b.system.js → p-6267a327.system.js} +0 -0
- package/dist/stzh-components/{p-ac9e6d17.system.entry.js → p-634095bd.system.entry.js} +1 -1
- package/dist/stzh-components/{p-42430cdf.js → p-6c502e6e.js} +0 -0
- package/dist/stzh-components/{p-f8bb1bed.system.entry.js → p-6ea5c23d.system.entry.js} +1 -1
- package/dist/stzh-components/{p-25afa99e.entry.js → p-6ec17efc.entry.js} +1 -1
- package/dist/stzh-components/{p-4b69a3e8.system.entry.js → p-6edd58a4.system.entry.js} +1 -1
- package/dist/stzh-components/{p-58b8d309.system.entry.js → p-7279af4a.system.entry.js} +1 -1
- package/dist/stzh-components/{p-7c6f9cb3.entry.js → p-73194e28.entry.js} +1 -1
- package/dist/stzh-components/{p-81d9f3e0.js → p-77a00e55.js} +0 -0
- package/dist/stzh-components/{p-bb91feeb.entry.js → p-79ca1ba6.entry.js} +1 -1
- package/dist/stzh-components/{p-79770abe.system.entry.js → p-7a6e347d.system.entry.js} +2 -2
- package/dist/stzh-components/{p-cd29b7ca.entry.js → p-7bb1bd3b.entry.js} +1 -1
- package/dist/stzh-components/{p-649164c7.entry.js → p-7d098987.entry.js} +1 -1
- package/dist/stzh-components/{p-b9e4095d.entry.js → p-7d2237ca.entry.js} +1 -1
- package/dist/stzh-components/{p-927901f5.system.entry.js → p-7d62dfeb.system.entry.js} +1 -1
- package/dist/stzh-components/{p-c2218965.system.entry.js → p-82d85c3a.system.entry.js} +1 -1
- package/dist/stzh-components/{p-adaf8b15.entry.js → p-8462ba57.entry.js} +1 -1
- package/dist/stzh-components/{p-a42a7524.entry.js → p-86d3ce62.entry.js} +1 -1
- package/dist/stzh-components/{p-1f3e6fad.system.entry.js → p-88a4f756.system.entry.js} +1 -1
- package/dist/stzh-components/{p-d7b5770c.entry.js → p-88bef2cd.entry.js} +1 -1
- package/dist/stzh-components/{p-a8c3af68.system.entry.js → p-8db4279d.system.entry.js} +1 -1
- package/dist/stzh-components/{p-0c2b5907.js → p-9111e257.js} +0 -0
- package/dist/stzh-components/{p-d2f660e1.system.js → p-9c0494a6.system.js} +0 -0
- package/dist/stzh-components/{p-b24040ff.system.entry.js → p-9e6c25ed.system.entry.js} +1 -1
- package/dist/stzh-components/{p-582cf0f1.system.js → p-a408bfba.system.js} +0 -0
- package/dist/stzh-components/{p-c3ac1bdc.system.entry.js → p-a4100bd8.system.entry.js} +1 -1
- package/dist/stzh-components/{p-efd78d08.system.entry.js → p-a6486f64.system.entry.js} +1 -1
- package/dist/stzh-components/{p-b56c83a4.entry.js → p-a7c3b41a.entry.js} +1 -1
- package/dist/stzh-components/{p-e00139a1.entry.js → p-a86c6487.entry.js} +1 -1
- package/dist/stzh-components/{p-e3769e97.system.js → p-aa4e28cc.system.js} +1 -1
- package/dist/stzh-components/p-ac1da083.system.js +1 -0
- package/dist/stzh-components/{p-17258518.entry.js → p-b3b5ee7e.entry.js} +1 -1
- package/dist/stzh-components/{p-87140179.system.entry.js → p-b63d6ded.system.entry.js} +1 -1
- package/dist/stzh-components/{p-63bf05f1.system.entry.js → p-bba52769.system.entry.js} +1 -1
- package/dist/stzh-components/{p-9be4e960.entry.js → p-bcade28e.entry.js} +1 -1
- package/dist/stzh-components/p-be21cebd.js +1 -0
- package/dist/stzh-components/{p-67eac0a0.entry.js → p-c2d58384.entry.js} +1 -1
- package/dist/stzh-components/{p-f0422b6c.entry.js → p-c6ad1a8c.entry.js} +1 -1
- package/dist/stzh-components/{p-649621fc.js → p-c8bcceac.js} +0 -0
- package/dist/stzh-components/{p-1e2ee622.system.entry.js → p-cb4a91b7.system.entry.js} +1 -1
- package/dist/stzh-components/{p-ffa293cf.entry.js → p-cf162e67.entry.js} +1 -1
- package/dist/stzh-components/{p-a7454367.js → p-cf6003d6.js} +0 -0
- package/dist/stzh-components/{p-d1821750.system.entry.js → p-d04e8743.system.entry.js} +1 -1
- package/dist/stzh-components/{p-0e9e4c68.entry.js → p-debb00e6.entry.js} +1 -1
- package/dist/stzh-components/{p-e69a66bb.js → p-df2bb358.js} +0 -0
- package/dist/stzh-components/{p-3da37219.entry.js → p-e048de42.entry.js} +1 -1
- package/dist/stzh-components/{p-a5b616bb.system.entry.js → p-e2ce48f1.system.entry.js} +1 -1
- package/dist/stzh-components/{p-22fba26d.entry.js → p-e58d3bc7.entry.js} +1 -1
- package/dist/stzh-components/{p-08cc711a.system.entry.js → p-e972a44f.system.entry.js} +1 -1
- package/dist/stzh-components/{p-6d23fb4d.system.entry.js → p-e987954a.system.entry.js} +1 -1
- package/dist/stzh-components/{p-648695c2.js → p-ee7a68db.js} +0 -0
- package/dist/stzh-components/p-ef5d4167.js +1 -1
- package/dist/stzh-components/{p-b3b05b6c.entry.js → p-f544cf3d.entry.js} +1 -1
- package/dist/stzh-components/{p-a7785d9b.system.js → p-f58c28ad.system.js} +0 -0
- package/dist/stzh-components/{p-c51a61cb.system.entry.js → p-f8d9411d.system.entry.js} +1 -1
- package/dist/stzh-components/{p-4e9e606f.entry.js → p-f9dc7a9b.entry.js} +1 -1
- package/dist/stzh-components/{p-ab864a8a.system.entry.js → p-fc9c4fc3.system.entry.js} +1 -1
- package/dist/stzh-components/{p-75f1b800.entry.js → p-ff8a3e96.entry.js} +1 -1
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components/stzh-appointments/stzh-appointments.localization.d.ts +11 -11
- package/dist/types/components/stzh-badge/stzh-badge.d.ts +8 -8
- package/dist/types/components/stzh-calendar/stzh-calendar-day.d.ts +14 -14
- package/dist/types/components/stzh-calendar/stzh-calendar-month.d.ts +21 -21
- package/dist/types/components/stzh-calendar/stzh-calendar.localization.d.ts +7 -7
- package/dist/types/components/stzh-cell/stzh-cell.d.ts +21 -21
- package/dist/types/components/stzh-container/stzh-container.d.ts +6 -6
- package/dist/types/components/stzh-cspace/stzh-cspace.d.ts +6 -6
- package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.d.ts +4 -4
- package/dist/types/components/stzh-datatable/stzh-datatable.localization.d.ts +4 -4
- package/dist/types/components/stzh-datepicker/stzh-datepicker.localization.d.ts +5 -5
- package/dist/types/components/stzh-dialog/stzh-dialog.localization.d.ts +4 -4
- package/dist/types/components/stzh-dropdown/stzh-dropdown.localization.d.ts +7 -7
- package/dist/types/components/stzh-fieldset/stzh-fieldset.d.ts +15 -15
- package/dist/types/components/stzh-footer/stzh-footer.localization.d.ts +9 -9
- package/dist/types/components/stzh-ghettobox/stzh-ghettobox.localization.d.ts +5 -5
- package/dist/types/components/stzh-heading/stzh-heading.d.ts +13 -13
- package/dist/types/components/stzh-hspace/stzh-hspace.d.ts +25 -25
- package/dist/types/components/stzh-icon/stzh-icon.d.ts +15 -15
- package/dist/types/components/stzh-icon-sprite/stzh-icon-sprite.d.ts +3 -3
- package/dist/types/components/stzh-input/stzh-input-description.d.ts +11 -11
- package/dist/types/components/stzh-menu/stzh-menu.d.ts +6 -6
- package/dist/types/components/stzh-message/stzh-message.localization.d.ts +4 -4
- package/dist/types/components/stzh-popover/stzh-popover.localization.d.ts +4 -4
- package/dist/types/components/stzh-portal-mitwirken/stzh-portal-mitwirken.d.ts +8 -8
- package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +22 -22
- package/dist/types/components/stzh-row/stzh-row.d.ts +23 -23
- package/dist/types/components/stzh-saptcha/stzh-saptcha.localization.d.ts +7 -7
- package/dist/types/components/stzh-section/stzh-section.d.ts +8 -8
- package/dist/types/components/stzh-servicecard/stzh-servicecard.localization.d.ts +8 -8
- package/dist/types/components/stzh-servicecard-list/stzh-servicecard-list.localization.d.ts +5 -5
- package/dist/types/components/stzh-skiplink/stzh-skiplink.d.ts +16 -16
- package/dist/types/components/stzh-sortable/stzh-sortable.localization.d.ts +8 -8
- package/dist/types/components/stzh-text/stzh-text.d.ts +23 -23
- package/dist/types/components/stzh-tooltip/stzh-tooltip.localization.d.ts +4 -4
- package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +16 -16
- package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.d.ts +4 -4
- package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.d.ts +15 -15
- package/dist/types/components/stzh-visuallyhidden/stzh-visuallyhidden.d.ts +6 -6
- package/dist/types/components/stzh-vspace/stzh-vspace.d.ts +25 -25
- package/dist/types/index.d.ts +427 -427
- package/dist/types/utils/animation-utils.d.ts +10 -10
- package/dist/types/utils/date-adapter.d.ts +8 -8
- package/dist/types/utils/date-utils.d.ts +61 -61
- package/dist/types/utils/event-utils.d.ts +1 -1
- package/dist/types/utils/h.d.ts +18 -18
- package/dist/types/utils/media-utils.d.ts +3 -3
- package/dist/types/utils/string-utils.d.ts +2 -2
- package/dist/types/utils/test-utils.d.ts +9 -9
- package/dist/types/utils/translation-utils.d.ts +40 -40
- package/dist/types/utils/utils.d.ts +3 -3
- package/dist/vscode-data.json +64 -60
- package/package.json +1 -1
- package/dist/esm-es5/app-globals-137e106c.js +0 -1
- package/dist/stzh-components/p-4476344d.js +0 -1
- package/dist/stzh-components/p-5977373f.system.js +0 -1
- package/dist/stzh-components/p-91e9ccfa.entry.js +0 -1
- package/dist/types/components/stzh-accordion/stzh-accordion.d.ts +0 -15
- package/dist/types/components/stzh-accordion-item/stzh-accordion-item.d.ts +0 -44
- package/dist/types/components/stzh-actions/stzh-actions.d.ts +0 -16
- package/dist/types/components/stzh-appnav/stzh-appnav.d.ts +0 -17
- package/dist/types/components/stzh-appointments/stzh-appointments.d.ts +0 -73
- package/dist/types/components/stzh-button/stzh-button.d.ts +0 -59
- package/dist/types/components/stzh-calendar/stzh-calendar.d.ts +0 -76
- package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +0 -55
- package/dist/types/components/stzh-checkboxgroup/stzh-checkboxgroup.d.ts +0 -62
- package/dist/types/components/stzh-chip/stzh-chip.d.ts +0 -47
- package/dist/types/components/stzh-chip-select/stzh-chip-select.d.ts +0 -23
- package/dist/types/components/stzh-datamessagelist/stzh-datamessagelist.d.ts +0 -6
- package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.d.ts +0 -44
- package/dist/types/components/stzh-datatable/stzh-datatable.d.ts +0 -49
- package/dist/types/components/stzh-datepicker/stzh-datepicker.d.ts +0 -93
- package/dist/types/components/stzh-dialog/stzh-dialog.d.ts +0 -59
- package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +0 -150
- package/dist/types/components/stzh-figure/stzh-figure.d.ts +0 -13
- package/dist/types/components/stzh-flyingfocus/stzh-flyingfocus.d.ts +0 -39
- package/dist/types/components/stzh-footer/stzh-footer.d.ts +0 -21
- package/dist/types/components/stzh-ghettobox/stzh-ghettobox.d.ts +0 -49
- package/dist/types/components/stzh-header/stzh-header.d.ts +0 -57
- package/dist/types/components/stzh-hr/stzh-hr.d.ts +0 -7
- package/dist/types/components/stzh-input/stzh-input.d.ts +0 -95
- package/dist/types/components/stzh-link/stzh-link.d.ts +0 -50
- package/dist/types/components/stzh-list/stzh-list.d.ts +0 -9
- package/dist/types/components/stzh-list-item/stzh-list-item.d.ts +0 -7
- package/dist/types/components/stzh-loader/stzh-loader.d.ts +0 -13
- package/dist/types/components/stzh-loadingbar/stzh-loadingbar.d.ts +0 -12
- package/dist/types/components/stzh-menu-item/stzh-menu-item.d.ts +0 -35
- package/dist/types/components/stzh-message/stzh-message.d.ts +0 -36
- package/dist/types/components/stzh-metanav/stzh-metanav.d.ts +0 -11
- package/dist/types/components/stzh-overlay/stzh-overlay.d.ts +0 -34
- package/dist/types/components/stzh-page-skiplinks/stzh-page-skiplinks.d.ts +0 -11
- package/dist/types/components/stzh-pagetitle/stzh-pagetitle.d.ts +0 -11
- package/dist/types/components/stzh-popover/stzh-popover.d.ts +0 -73
- package/dist/types/components/stzh-progressbar/stzh-progressbar.d.ts +0 -42
- package/dist/types/components/stzh-radio/stzh-radio.d.ts +0 -55
- package/dist/types/components/stzh-radiogroup/stzh-radiogroup.d.ts +0 -64
- package/dist/types/components/stzh-readspeaker/stzh-readspeaker.d.ts +0 -18
- package/dist/types/components/stzh-richtext/stzh-richtext.d.ts +0 -14
- package/dist/types/components/stzh-saptcha/stzh-saptcha.d.ts +0 -28
- package/dist/types/components/stzh-servicecard/stzh-servicecard.d.ts +0 -72
- package/dist/types/components/stzh-servicecard-list/stzh-servicecard-list.d.ts +0 -23
- package/dist/types/components/stzh-sortable/stzh-sortable.d.ts +0 -52
- package/dist/types/components/stzh-status/stzh-status.d.ts +0 -14
- package/dist/types/components/stzh-table/stzh-table.d.ts +0 -33
- package/dist/types/components/stzh-toggle/stzh-toggle.d.ts +0 -57
- package/dist/types/components/stzh-tooltip/stzh-tooltip.d.ts +0 -78
- package/dist/types/components/stzh-upload/stzh-upload.d.ts +0 -207
- package/dist/types/components/stzh-vbz-linechip/stzh-vbz-linechip.d.ts +0 -27
- package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.d.ts +0 -34
- package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.d.ts +0 -54
- package/dist/types/types/svg.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,a,r){function i(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,s){function n(t){try{h(r.next(t))}catch(e){s(e)}}function o(t){try{h(r["throw"](t))}catch(e){s(e)}}function h(t){t.done?a(t.value):i(t.value).then(n,o)}h((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(t){return function(e){return h([t,e])}}function h(n){if(r)throw new TypeError("Generator is already executing.");while(a)try{if(r=1,i&&(s=n[0]&2?i["return"]:n[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,n[1])).done)return s;if(i=0,s)n=[n[0]&2,s.value];switch(n[0]){case 0:case 1:s=n;break;case 4:a.label++;return{value:n[1],done:false};case 5:a.label++;i=n[1];n=[0];continue;case 7:n=a.ops.pop();a.trys.pop();continue;default:if(!(s=a.trys,s=s.length>0&&s[s.length-1])&&(n[0]===6||n[0]===2)){a=0;continue}if(n[0]===3&&(!s||n[1]>s[0]&&n[1]<s[3])){a.label=n[1];break}if(n[0]===6&&a.label<s[1]){a.label=s[1];s=n;break}if(s&&a.label<s[2]){a.label=s[2];a.ops.push(n);break}if(s[2])a.ops.pop();a.trys.pop();continue}n=e.call(t,a)}catch(o){n=[6,o];i=0}finally{r=s=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,a){if(a||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++){if(s||!(r in e)){if(!s)s=Array.prototype.slice.call(e,0,r);s[r]=e[r]}}return t.concat(s||Array.prototype.slice.call(e))};System.register(["./p-30b347ee.system.js","./p-3a73b8b5.system.js","./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,a,r){function i(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,s){function n(t){try{h(r.next(t))}catch(e){s(e)}}function o(t){try{h(r["throw"](t))}catch(e){s(e)}}function h(t){t.done?a(t.value):i(t.value).then(n,o)}h((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(t){return function(e){return h([t,e])}}function h(n){if(r)throw new TypeError("Generator is already executing.");while(a)try{if(r=1,i&&(s=n[0]&2?i["return"]:n[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,n[1])).done)return s;if(i=0,s)n=[n[0]&2,s.value];switch(n[0]){case 0:case 1:s=n;break;case 4:a.label++;return{value:n[1],done:false};case 5:a.label++;i=n[1];n=[0];continue;case 7:n=a.ops.pop();a.trys.pop();continue;default:if(!(s=a.trys,s=s.length>0&&s[s.length-1])&&(n[0]===6||n[0]===2)){a=0;continue}if(n[0]===3&&(!s||n[1]>s[0]&&n[1]<s[3])){a.label=n[1];break}if(n[0]===6&&a.label<s[1]){a.label=s[1];s=n;break}if(s&&a.label<s[2]){a.label=s[2];a.ops.push(n);break}if(s[2])a.ops.pop();a.trys.pop();continue}n=e.call(t,a)}catch(o){n=[6,o];i=0}finally{r=s=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,a){if(a||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++){if(s||!(r in e)){if(!s)s=Array.prototype.slice.call(e,0,r);s[r]=e[r]}}return t.concat(s||Array.prototype.slice.call(e))};System.register(["./p-30b347ee.system.js","./p-3a73b8b5.system.js","./p-a408bfba.system.js"],(function(exports){"use strict";var registerInstance,h,Host,getElement,createCommonjsModule,commonjsGlobal,fetchTranslations;return{setters:[function(t){registerInstance=t.r;h=t.h;Host=t.a;getElement=t.g},function(t){createCommonjsModule=t.c;commonjsGlobal=t.a},function(t){fetchTranslations=t.f}],execute:function(){var flexsearch_bundle=createCommonjsModule((function(module){
|
|
2
2
|
/**!
|
|
3
3
|
* FlexSearch.js v0.7.21 (Bundle)
|
|
4
4
|
* Copyright 2018-2021 Nextapps GmbH
|
|
@@ -6,4 +6,4 @@ var __awaiter=this&&this.__awaiter||function(t,e,a,r){function i(t){return t ins
|
|
|
6
6
|
* Licence: Apache-2.0
|
|
7
7
|
* https://github.com/nextapps-de/flexsearch
|
|
8
8
|
*/
|
|
9
|
-
(function _f(self){try{if(module)self=module}catch(e){}self._factory=_f;var t;function u(t){return"undefined"!==typeof t?t:!0}function aa(t){var e=Array(t);for(var a=0;a<t;a++)e[a]=v();return e}function v(){return Object.create(null)}function ba(t,e){return e.length-t.length}function x(t){return"string"===typeof t}function C(t){return"object"===typeof t}function D(t){return"function"===typeof t}function ca(t,e){var a=da;if(t&&(e&&(t=E(t,e)),this.H&&(t=E(t,this.H)),this.J&&1<t.length&&(t=E(t,this.J)),a||""===a)){t=t.split(a);if(this.filter){e=this.filter;a=t.length;var r=[];for(var i=0,s=0;i<a;i++){var n=t[i];n&&!e[n]&&(r[s++]=n)}t=r}return t}return t}var da=/[\p{Z}\p{S}\p{P}\p{C}]+/u,ea=/[\u0300-\u036f]/g;function fa(t,e){var a=Object.keys(t),r=a.length,i=[];var s="",n=0;for(var o=0,h=void 0,l=void 0;o<r;o++)h=a[o],(l=t[h])?(i[n++]=F(e?"(?!\\b)"+h+"(\\b|_)":h),i[n++]=l):s+=(s?"|":"")+h;s&&(i[n++]=F(e?"(?!\\b)("+s+")(\\b|_)":"("+s+")"),i[n]="");return i}function E(t,e){for(var a=0,r=e.length;a<r&&(t=t.replace(e[a],e[a+1]),t);a+=2);return t}function F(t){return new RegExp(t,"g")}function ha(t){var e="",a="";for(var r=0,i=t.length,s=void 0;r<i;r++)(s=t[r])!==a&&(e+=a=s);return e}var ja={encode:ia,F:!1,G:""};function ia(t){return ca.call(this,(""+t).toLowerCase(),!1)}var ka={},G={};function la(t){I(t,"add");I(t,"append");I(t,"search");I(t,"update");I(t,"remove")}function I(t,e){t[e+"Async"]=function(){var t=this,a=arguments;var r=a[a.length-1];var i;D(r)&&(i=r,delete a[a.length-1]);r=new Promise((function(r){setTimeout((function(){t.async=!0;var i=t[e].apply(t,a);t.async=!1;r(i)}))}));return i?(r.then(i),this):r}}function ma(t,e,a,r){var i=t.length;var s=[],n,o,h=0;r&&(r=[]);for(var l=i-1;0<=l;l--){var c=t[l],f=c.length,d=v();var u=!n;for(var g=0;g<f;g++){var p=c[g],b=p.length;if(b)for(var m=0,_=void 0,y=void 0;m<b;m++)if(y=p[m],n){if(n[y]){if(!l)if(a)a--;else if(s[h++]=y,h===e)return s;if(l||r)d[y]=1;u=!0}if(r&&(o[y]=(_=o[y])?++_:_=1,_<i)){var z=r[_-2]||(r[_-2]=[]);z[z.length]=y}}else d[y]=1}if(r)n||(o=d);else if(!u)return[];n=d}if(r)for(var l=r.length-1,c=void 0,f=void 0;0<=l;l--){c=r[l];f=c.length;for(var d=0,u=void 0;d<f;d++)if(u=c[d],!n[u]){if(a)a--;else if(s[h++]=u,h===e)return s;n[u]=1}}return s}function na(t,e){var a=v(),r=v(),i=[];for(var s=0;s<t.length;s++)a[t[s]]=1;for(var s=0,n=void 0;s<e.length;s++){n=e[s];for(var o=0,h=void 0;o<n.length;o++)h=n[o],a[h]&&!r[h]&&(r[h]=1,i[i.length]=h)}return i}function J(t){this.l=!0!==t&&t;this.cache=v();this.h=[]}function oa(t,e,a){C(t)&&(t=t.query);var r=this.cache.get(t);r||(r=this.search(t,e,a),this.cache.set(t,r));return r}J.prototype.set=function(t,e){if(!this.cache[t]){var a=this.h.length;a===this.l?delete this.cache[this.h[a-1]]:a++;for(--a;0<a;a--)this.h[a]=this.h[a-1];this.h[0]=t}this.cache[t]=e};J.prototype.get=function(t){var e=this.cache[t];if(this.l&&e&&(t=this.h.indexOf(t))){var a=this.h[t-1];this.h[t-1]=this.h[t];this.h[t]=a}return e};var qa={memory:{charset:"latin:extra",D:3,B:4,m:!1},performance:{D:3,B:3,s:!1,context:{depth:2,D:1}},match:{charset:"latin:extra",G:"reverse"},score:{charset:"latin:advanced",D:20,B:3,context:{depth:3,D:9}},default:{}};function ra(t,e,a,r,i,s){setTimeout((function(){var n=t(a,JSON.stringify(s));n&&n.then?n.then((function(){e.export(t,e,a,r,i+1)})):e.export(t,e,a,r,i+1)}))}function K(t,e){if(!(this instanceof K))return new K(t);var a;if(t){x(t)?t=qa[t]:(a=t.preset)&&(t=Object.assign({},a[a],t));a=t.charset;var r=t.lang;x(a)&&(-1===a.indexOf(":")&&(a+=":default"),a=G[a]);x(r)&&(r=ka[r])}else t={};var i,s,n=t.context||{};this.encode=t.encode||a&&a.encode||ia;this.register=e||v();this.D=i=t.resolution||9;this.G=e=a&&a.G||t.tokenize||"strict";this.depth="strict"===e&&n.depth;this.l=u(n.bidirectional);this.s=s=u(t.optimize);this.m=u(t.fastupdate);this.B=t.minlength||1;this.C=t.boost;this.map=s?aa(i):v();this.A=i=n.resolution||1;this.h=s?aa(i):v();this.F=a&&a.F||t.rtl;this.H=(e=t.matcher||r&&r.H)&&fa(e,!1);this.J=(e=t.stemmer||r&&r.J)&&fa(e,!0);if(a=e=t.filter||r&&r.filter){a=e;r=v();for(var o=0,h=a.length;o<h;o++)r[a[o]]=1;a=r}this.filter=a;this.cache=(e=t.cache)&&new J(e)}t=K.prototype;t.append=function(t,e){return this.add(t,e,!0)};t.add=function(t,e,a,r){if(e&&(t||0===t)){if(!r&&!a&&this.register[t])return this.update(t,e);e=this.encode(e);if(r=e.length){var i=v(),s=v(),n=this.depth,o=this.D;for(var h=0;h<r;h++){var l=e[this.F?r-1-h:h];var c=l.length;if(l&&c>=this.B&&(n||!s[l])){var f=L(o,r,h),d="";switch(this.G){case"full":if(3<c){for(f=0;f<c;f++)for(var u=c;u>f;u--)if(u-f>=this.B){var g=L(o,r,h,c,f);d=l.substring(f,u);M(this,s,d,g,t,a)}break}case"reverse":if(2<c){for(u=c-1;0<u;u--)d=l[u]+d,d.length>=this.B&&M(this,s,d,L(o,r,h,c,u),t,a);d=""}case"forward":if(1<c){for(u=0;u<c;u++)d+=l[u],d.length>=this.B&&M(this,s,d,f,t,a);break}default:if(this.C&&(f=Math.min(f/this.C(e,l,h)|0,o-1)),M(this,s,l,f,t,a),n&&1<r&&h<r-1)for(c=v(),d=this.A,f=l,u=Math.min(n+1,r-h),c[f]=1,g=1;g<u;g++)if((l=e[this.F?r-1-h-g:h+g])&&l.length>=this.B&&!c[l]){c[l]=1;var p=this.l&&l>f;M(this,i,p?f:l,L(d+(r/2>d?0:1),r,h,u-1,g-1),t,a,p?l:f)}}}}this.m||(this.register[t]=1)}}return this};function L(t,e,a,r,i){return a&&1<t?e+(r||0)<=t?a+(i||0):(t-1)/(e+(r||0))*(a+(i||0))+1|0:0}function M(t,e,a,r,i,s,n){var o=n?t.h:t.map;if(!e[a]||n&&!e[a][n])t.s&&(o=o[r]),n?(e=e[a]||(e[a]=v()),e[n]=1,o=o[n]||(o[n]=v())):e[a]=1,o=o[a]||(o[a]=[]),t.s||(o=o[r]||(o[r]=[])),s&&-1!==o.indexOf(i)||(o[o.length]=i,t.m&&(t=t.register[i]||(t.register[i]=[]),t[t.length]=o))}t.search=function(t,e,a){a||(!e&&C(t)?(a=t,t=a.query):C(e)&&(a=e));var r=[],i;var s,n=0;if(a){e=a.limit;n=a.offset||0;var o=a.context;s=a.suggest}if(t&&(t=this.encode(t),i=t.length,1<i)){a=v();var h=[];for(var l=0,c=0,f=void 0;l<i;l++)if((f=t[l])&&f.length>=this.B&&!a[f])if(this.s||s||this.map[f])h[c++]=f,a[f]=1;else return r;t=h;i=t.length}if(!i)return r;e||(e=100);o=this.depth&&1<i&&!1!==o;a=0;var d;o?(d=t[0],a=1):1<i&&t.sort(ba);for(var l=void 0,c=void 0;a<i;a++){c=t[a];o?(l=sa(this,r,s,e,n,2===i,c,d),s&&!1===l&&r.length||(d=c)):l=sa(this,r,s,e,n,1===i,c);if(l)return l;if(s&&a===i-1){h=r.length;if(!h){if(o){o=0;a=-1;continue}return r}if(1===h)return ta(r[0],e,n)}}return ma(r,e,n,s)};function sa(t,e,a,r,i,s,n,o){var h=[],l=o?t.h:t.map;t.s||(l=ua(l,n,o,t.l));if(l){var c=0;var f=Math.min(l.length,o?t.A:t.D);for(var d=0,u=0,v=void 0,g=void 0;d<f;d++)if(v=l[d])if(t.s&&(v=ua(v,n,o,t.l)),i&&v&&s&&(g=v.length,g<=i?(i-=g,v=null):(v=v.slice(i),i=0)),v&&(h[c++]=v,s&&(u+=v.length,u>=r)))break;if(c){if(s)return ta(h,r,0);e[e.length]=h;return}}return!a&&h}function ta(t,e,a){t=1===t.length?t[0]:[].concat.apply([],t);return a||t.length>e?t.slice(a,a+e):t}function ua(t,e,a,r){a?(r=r&&e>a,t=(t=t[r?e:a])&&t[r?a:e]):t=t[e];return t}t.contain=function(t){return!!this.register[t]};t.update=function(t,e){return this.remove(t).add(t,e)};t.remove=function(t,e){var a=this.register[t];if(a){if(this.m)for(var r=0,i=void 0;r<a.length;r++)i=a[r],i.splice(i.indexOf(t),1);else N(this.map,t,this.D,this.s),this.depth&&N(this.h,t,this.A,this.s);e||delete this.register[t];if(this.cache){e=this.cache;for(var r=0,i=void 0,s=void 0;r<e.h.length;r++)s=e.h[r],i=e.cache[s],-1!==i.indexOf(t)&&(e.h.splice(r--,1),delete e.cache[s])}}return this};function N(t,e,a,r,i){var s=0;if(t.constructor===Array)if(i)e=t.indexOf(e),-1!==e?1<t.length&&(t.splice(e,1),s++):s++;else{i=Math.min(t.length,a);for(var n=0,o;n<i;n++)if(o=t[n])s=N(o,e,a,r,i),r||s||delete t[n]}else for(var n in t)(s=N(t[n],e,a,r,i))||delete t[n];return s}t.searchCache=oa;t.export=function(t,e,a,r,i){var s,n;switch(i||(i=0)){case 0:s="reg";if(this.m){n=v();for(var o in this.register)n[o]=1}else n=this.register;break;case 1:s="cfg";n={doc:0,opt:this.s?1:0};break;case 2:s="map";n=this.map;break;case 3:s="ctx";n=this.h;break;default:return}ra(t,e||this,a?a+"."+s:s,r,i,n);return!0};t.import=function(t,e){if(e)switch(x(e)&&(e=JSON.parse(e)),t){case"cfg":this.s=!!e.opt;break;case"reg":this.m=!1;this.register=e;break;case"map":this.map=e;break;case"ctx":this.h=e}};la(K.prototype);function va(t){t=t.data;var e=self._index;var a=t.args;var r=t.task;switch(r){case"init":r=t.options||{};t=t.factory;e=r.encode;r.cache=!1;e&&0===e.indexOf("function")&&(r.encode=Function("return "+e)());t?(Function("return "+t)()(self),self._index=new self.FlexSearch.Index(r),delete self.FlexSearch):self._index=new K(r);break;default:t=t.id,e=e[r].apply(e,a),postMessage("search"===r?{id:t,msg:e}:{id:t})}}var wa=0;function O(t){if(!(this instanceof O))return new O(t);var e;t?D(e=t.encode)&&(t.encode=e.toString()):t={};(e=(self||window)._factory)&&(e=e.toString());var a=self.exports,r=this;this.o=xa(e,a,t.worker);this.h=v();if(this.o){if(a)this.o.on("message",(function(t){r.h[t.id](t.msg);delete r.h[t.id]}));else this.o.onmessage=function(t){t=t.data;r.h[t.id](t.msg);delete r.h[t.id]};this.o.postMessage({task:"init",factory:e,options:t})}}P("add");P("append");P("search");P("update");P("remove");function P(t){O.prototype[t]=O.prototype[t+"Async"]=function(){var e=this,a=[].slice.call(arguments);var r=a[a.length-1];var i;D(r)&&(i=r,a.splice(a.length-1,1));r=new Promise((function(r){setTimeout((function(){e.h[++wa]=r;e.o.postMessage({task:t,id:wa,args:a})}))}));return i?(r.then(i),this):r}}function xa(a,b,c){var d;try{d=b?eval('new (require("worker_threads")["Worker"])("../dist/node/node.js")'):a?new Worker(URL.createObjectURL(new Blob(["onmessage="+va.toString()],{type:"text/javascript"}))):new Worker(x(c)?c:"worker/worker.js",{type:"module"})}catch(e){}return d}function Q(t){if(!(this instanceof Q))return new Q(t);var e=t.document||t.doc||t,a;this.K=[];this.h=[];this.A=[];this.register=v();this.key=(a=e.key||e.id)&&S(a,this.A)||"id";this.m=u(t.fastupdate);this.C=(a=e.store)&&!0!==a&&[];this.store=a&&v();this.I=(a=e.tag)&&S(a,this.A);this.l=a&&v();this.cache=(a=t.cache)&&new J(a);t.cache=!1;this.o=t.worker;this.async=!1;a=v();var r=e.index||e.field||e;x(r)&&(r=[r]);for(var i=0,s=void 0,n=void 0;i<r.length;i++)s=r[i],x(s)||(n=s,s=s.field),n=C(n)?Object.assign({},t,n):t,this.o&&(a[s]=new O(n),a[s].o||(this.o=!1)),this.o||(a[s]=new K(n,this.register)),this.K[i]=S(s,this.A),this.h[i]=s;if(this.C)for(t=e.store,x(t)&&(t=[t]),e=0;e<t.length;e++)this.C[e]=S(t[e],this.A);this.index=a}function S(t,e){var a=t.split(":");var r=0;for(var i=0;i<a.length;i++)t=a[i],0<=t.indexOf("[]")&&(t=t.substring(0,t.length-2))&&(e[r]=!0),t&&(a[r++]=t);r<a.length&&(a.length=r);return 1<r?a:a[0]}function T(t,e){if(x(e))t=t[e];else for(var a=0;t&&a<e.length;a++)t=t[e[a]];return t}function U(t,e,a,r,i){t=t[i];if(r===a.length-1)e[i]=t;else if(t)if(t.constructor===Array)for(e=e[i]=Array(t.length),i=0;i<t.length;i++)U(t,e,a,r,i);else e=e[i]||(e[i]=v()),i=a[++r],U(t,e,a,r,i)}function V(t,e,a,r,i,s,n,o){if(t=t[n])if(r===e.length-1){if(t.constructor===Array){if(a[r]){for(e=0;e<t.length;e++)i.add(s,t[e],!0,!0);return}t=t.join(" ")}i.add(s,t,o,!0)}else if(t.constructor===Array)for(n=0;n<t.length;n++)V(t,e,a,r,i,s,n,o);else n=e[++r],V(t,e,a,r,i,s,n,o)}t=Q.prototype;t.add=function(t,e,a){C(t)&&(e=t,t=T(e,this.key));if(e&&(t||0===t)){if(!a&&this.register[t])return this.update(t,e);for(var r=0,i=void 0,s=void 0;r<this.h.length;r++)s=this.h[r],i=this.K[r],x(i)&&(i=[i]),V(e,i,this.A,0,this.index[s],t,i[0],a);if(this.I){var r=T(e,this.I),i=v();x(r)&&(r=[r]);for(var s=0,n=void 0,o;s<r.length;s++)if(n=r[s],!i[n]&&(i[n]=1,o=this.l[n]||(this.l[n]=[]),!a||-1===o.indexOf(t)))if(o[o.length]=t,this.m){var h=this.register[t]||(this.register[t]=[]);h[h.length]=o}}if(this.store&&(!a||!this.store[t])){var r=void 0;if(this.C){r=v();for(var i=0,s=void 0;i<this.C.length;i++)s=this.C[i],x(s)?r[s]=e[s]:U(e,r,s,0,s[0])}this.store[t]=r||e}}return this};t.append=function(t,e){return this.add(t,e,!0)};t.update=function(t,e){return this.remove(t).add(t,e)};t.remove=function(t){C(t)&&(t=T(t,this.key));if(this.register[t]){for(var e=0;e<this.h.length&&(this.index[this.h[e]].remove(t,!this.o),!this.m);e++);if(this.I&&!this.m)for(var a in this.l){e=this.l[a];var r=e.indexOf(t);-1!==r&&(1<e.length?e.splice(r,1):delete this.l[a])}this.store&&delete this.store[t];delete this.register[t]}return this};t.search=function(t,e,a,r){a||(!e&&C(t)?(a=t,t=a.query):C(e)&&(a=e,e=0));var i=[],s=[],n,o,h,l,c,f,d=0;if(a)if(a.constructor===Array)h=a,a=null;else{h=(n=a.pluck)||a.index||a.field;l=a.tag;o=this.store&&a.enrich;c="and"===a.bool;e=a.limit||100;f=a.offset||0;if(l&&(x(l)&&(l=[l]),!t)){for(var u=0,v=void 0;u<l.length;u++)if(v=ya.call(this,l[u],e,f,o))i[i.length]=v,d++;return d?i:[]}x(h)&&(h=[h])}h||(h=this.h);c=c&&(1<h.length||l&&1<l.length);var g=!r&&(this.o||this.async)&&[];for(var u=0,v=void 0,p=void 0,b=void 0;u<h.length;u++){var m=void 0;p=h[u];x(p)||(m=p,p=p.field);if(g)g[u]=this.index[p].searchAsync(t,e,m||a);else{r?v=r[u]:v=this.index[p].search(t,e,m||a);b=v&&v.length;if(l&&b){var _=[];var y=0;c&&(_[0]=[v]);for(var z=0,w=void 0,k=void 0;z<l.length;z++)if(w=l[z],b=(k=this.l[w])&&k.length)y++,_[_.length]=c?[k]:k;y&&(v=c?ma(_,e||100,f||0):na(v,_),b=v.length)}if(b)s[d]=p,i[d++]=v;else if(c)return[]}}if(g){var S=this;return new Promise((function(r){Promise.all(g).then((function(i){r(S.search(t,e,a,i))}))}))}if(!d)return[];if(n&&(!o||!this.store))return i[0];for(var u=0,v=void 0;u<s.length;u++){v=i[u];v.length&&o&&(v=za.call(this,v));if(n)return v;i[u]={field:s[u],result:v}}return i};function ya(t,e,a,r){var i=this.l[t],s=i&&i.length-a;if(s&&0<s){if(s>e||a)i=i.slice(a,a+e);r&&(i=za.call(this,i));return{tag:t,result:i}}}function za(t){var e=Array(t.length);for(var a=0,r=void 0;a<t.length;a++)r=t[a],e[a]={id:r,doc:this.store[r]};return e}t.contain=function(t){return!!this.register[t]};t.get=function(t){return this.store[t]};t.set=function(t,e){this.store[t]=e;return this};t.searchCache=oa;t.export=function(t,e,a,r,i){i||(i=0);r||(r=0);if(r<this.h.length){var s=this.h[r],n=this.index[s];e=this;setTimeout((function(){n.export(t,e,i?s.replace(":","-"):"",r,i++)||(r++,i=1,e.export(t,e,s,r,i))}))}else{var o=void 0;switch(i){case 1:a="tag";o=this.l;break;case 2:a="store";o=this.store;break;default:return}ra(t,this,a,r,i,o)}};t.import=function(t,e){if(e)switch(x(e)&&(e=JSON.parse(e)),t){case"tag":this.l=e;break;case"reg":this.m=!1;this.register=e;for(var a=0,r=void 0;a<this.h.length;a++)r=this.index[this.h[a]],r.register=e,r.m=!1;break;case"store":this.store=e;break;default:t=t.split(".");var i=t[0];t=t[1];i&&t&&this.index[i].import(t,e)}};la(Q.prototype);var Ba={encode:Aa,F:!1,G:""};var Ca=[F("[àáâãäå]"),"a",F("[èéêë]"),"e",F("[ìíîï]"),"i",F("[òóôõöő]"),"o",F("[ùúûüű]"),"u",F("[ýŷÿ]"),"y",F("ñ"),"n",F("[çc]"),"k",F("ß"),"s",F(" & ")," and "];function Aa(t){var e=t;e.normalize&&(e=e.normalize("NFD").replace(ea,""));return ca.call(this,e.toLowerCase(),!t.normalize&&Ca)}var Ea={encode:Da,F:!1,G:"strict"};var Fa=/[^a-z0-9]+/,Ga={b:"p",v:"f",w:"f",z:"s",x:"s","ß":"s",d:"t",n:"m",c:"k",g:"k",j:"k",q:"k",i:"e",y:"e",u:"o"};function Da(t){t=Aa.call(this,t).join(" ");var e=[];if(t){var a=t.split(Fa),r=a.length;for(var i=0,s=void 0,n=0;i<r;i++)if((t=a[i])&&(!this.filter||!this.filter[t])){s=t[0];var o=Ga[s]||s,h=o;for(var l=1;l<t.length;l++){s=t[l];var c=Ga[s]||s;c&&c!==h&&(o+=c,h=c)}e[n++]=o}}return e}var Ia={encode:Ha,F:!1,G:""};var Ja=[F("ae"),"a",F("oe"),"o",F("sh"),"s",F("th"),"t",F("ph"),"f",F("pf"),"f",F("(?![aeo])h(?![aeo])"),"",F("(?!^[aeo])h(?!^[aeo])"),""];function Ha(t,e){t&&(t=Da.call(this,t).join(" "),2<t.length&&(t=E(t,Ja)),e||(1<t.length&&(t=ha(t)),t&&(t=t.split(" "))));return t}var La={encode:Ka,F:!1,G:""};var Ma=F("(?!\\b)[aeo]");function Ka(t){t&&(t=Ha.call(this,t,!0),1<t.length&&(t=t.replace(Ma,"")),1<t.length&&(t=ha(t)),t&&(t=t.split(" ")));return t}G["latin:default"]=ja;G["latin:simple"]=Ba;G["latin:balance"]=Ea;G["latin:advanced"]=Ia;G["latin:extra"]=La;var W=self;var Y;var Z={Index:K,Document:Q,Worker:O,registerCharset:function(t,e){G[t]=e},registerLanguage:function(t,e){ka[t]=e}};(Y=W.define)&&Y.amd?Y([],(function(){return Z})):W.exports?W.exports=Z:W.FlexSearch=Z})(commonjsGlobal)}));var stzhDatatableCss=':host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}stzh-datatable{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;--max-height:var(--stzh-table-max-height);--min-width:var(--stzh-table-min-width);--cell-padding:var(--stzh-table-cell-padding);--input-width:var(--stzh-table-input-width)}stzh-datatable[hidden]{display:none}stzh-datatable *,stzh-datatable *::before,stzh-datatable *::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-datatable{}.stzh-datatable__header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-bottom:0.0625rem solid var(--stzh-base-border-color);padding-bottom:var(--stzh-space-small);margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-datatable__header{padding-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1024px){.stzh-datatable__header{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-datatable__header{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){.stzh-datatable__header{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}.stzh-datatable__heading{margin-bottom:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-datatable__heading{margin-bottom:0}}.stzh-datatable__header .stzh-datatable__search{width:var(--stzh-table-input-width)}@media screen and (min-width: 1024px){.stzh-datatable__header .stzh-datatable__search{margin-left:var(--stzh-space-large)}}.stzh-datatable__outer-wrapper{position:relative}.stzh-datatable__outer-wrapper::before,.stzh-datatable__outer-wrapper::after{z-index:4;background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.16)), to(rgba(0, 0, 0, 0)));background:linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);content:"";pointer-events:none;position:absolute;top:0;height:100%;width:0.375rem;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);opacity:0}.stzh-datatable__outer-wrapper::before{left:0}.stzh-datatable__outer-wrapper::after{right:0;-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.stzh-datatable__wrapper{overflow-x:auto;max-height:var(--max-height)}.stzh-datatable__sort-button{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:inherit;line-height:inherit;color:inherit;padding:var(--cell-padding)}.stzh-datatable__sort-button:hover,.stzh-datatable__sort-button:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-datatable__sort-icon{opacity:0}.stzh-datatable__table{width:100%;border-spacing:0;min-width:var(--min-width)}.stzh-datatable__thead{position:-webkit-sticky;position:sticky;top:0;z-index:3}.stzh-datatable__row:hover .stzh-datatable__cell{background-color:var(--stzh-color-grey5)}.stzh-datatable__cell{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);text-align:left;border:none;vertical-align:top;border:none;border-bottom:0.0625rem solid var(--stzh-base-border-color);background-color:var(--stzh-color-white);-webkit-transition:background-color var(--stzh-base-transition-animation-speed);transition:background-color var(--stzh-base-transition-animation-speed);padding:var(--cell-padding);}.stzh-datatable__cell a{color:var(--stzh-link-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);border-radius:var(--stzh-button-border-radius)}.stzh-datatable__cell a:hover,.stzh-datatable__cell a:focus{color:var(--stzh-link-hover-color)}.stzh-datatable__cell b,.stzh-datatable__cell strong{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-datatable__cell i,.stzh-datatable__cell em{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-datatable__cell.align-left{text-align:left}.stzh-datatable__cell.align-right{text-align:right}.stzh-datatable__cell.align-center{text-align:center}.stzh-datatable__cell.valign-auto{vertical-align:auto}.stzh-datatable__cell.valign-middle{vertical-align:middle}.stzh-datatable__cell.valign-bottom{vertical-align:bottom}.stzh-datatable__cell.nowrap{white-space:nowrap}.stzh-datatable__cell.is-sticky-left,.stzh-datatable__cell.is-sticky-right{position:-webkit-sticky;position:sticky;z-index:1}.stzh-datatable__cell.has-sticked{z-index:2}.stzh-datatable__cell.is-sticky-left{left:0}.stzh-datatable__cell.is-sticky-right{right:0}.stzh-datatable__cell.is-sticky-left::after,.stzh-datatable__cell.is-sticky-right::after{background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.16)), to(rgba(0, 0, 0, 0)));background:linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);content:"";pointer-events:none;position:absolute;top:0;height:100%;width:0.375rem;-webkit-transform:translate(100%);transform:translate(100%);opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed)}.stzh-datatable__cell.is-sticky-left::after{right:0}.stzh-datatable__cell.is-sticky-right::after{left:0;-webkit-transform:rotate(-180deg) translate(100%);transform:rotate(-180deg) translate(100%)}.stzh-datatable__cell.has-sticked.is-sticky-left::after,.stzh-datatable__cell.has-sticked.is-sticky-right::after{opacity:1}.stzh-datatable__cell--head{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-datatable__cell--head.is-sortable{padding:0}.stzh-datatable__cell.has-sorted .stzh-datatable__sort-icon{opacity:1}.stzh-datatable__cell.has-sorted-desc .stzh-datatable__sort-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.stzh-datatable.has-scroll-left-shadow .stzh-datatable__outer-wrapper::before,.stzh-datatable.has-scroll-right-shadow .stzh-datatable__outer-wrapper::after{opacity:1}';var StzhDatatable=exports("stzh_datatable",function(){function t(t){var e=this;registerInstance(this,t);this.label="";this.sortBy="";this.sortDirection="asc";this.tokenize="forward";this.idField="id";this.rows=[];this.columns=[];this.query="";this.hasScrollLeft=false;this.hasScrollRight=false;this.isScrollable=false;this.cellsStickyLeft=[];this.cellsStickyRight=[];this.updateScrollStates=function(){if(!e.tableWrapper){return}var t=e.tableWrapper.scrollLeft;var a=e.tableWrapper.scrollWidth;var r=e.tableWrapper.clientWidth;e.isScrollable=a>r;e.hasScrollLeft=t>0;e.hasScrollRight=t<a-r;var i=Array.from(e.tableWrapper.querySelectorAll("tr"));var s=i[0];if(!s){return}e.cellsStickyLeft=[];e.cellsStickyRight=[];var n=Array.from(s.children);n.forEach((function(a,i){var s=a.offsetLeft;var n=s+a.offsetWidth;if(e.hasScrollLeft&&e._columns[i].fixed==="left"&&Math.ceil(t)>=s){e.cellsStickyLeft.push(i)}if(e.hasScrollRight&&e._columns[i].fixed==="right"&&Math.ceil(t)+r<=n){e.cellsStickyRight.push(i)}}))};this.handleScroll=function(){if(e.debounceScroll){window.cancelAnimationFrame(e.debounceScroll)}e.debounceScroll=requestAnimationFrame(e.updateScrollStates)};this.onInputChange=function(){e.query=e.input.value}}t.prototype.toggleSort=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(t===this.sortBy){this.sortDirection=this.sortDirection==="asc"?"desc":"asc"}else{this.sortDirection="asc";this.sortBy=t}return[2]}))}))};t.prototype.rowsWatcher=function(t){if(typeof t==="string"){this._rows=JSON.parse(t)}else{this._rows=t}this.buildSearchIndex()};t.prototype.columnsWatcher=function(t){if(typeof t==="string"){this._columns=JSON.parse(t)}else{this._columns=t}this.buildSearchIndex()};t.prototype.handleResize=function(){this.updateScrollStates()};t.prototype.buildSearchIndex=function(){var t=this;if(!this._rows||this._rows.length===0||!this._columns||this._columns.length===0){return}this.searchIndex=new flexsearch_bundle.Document({tokenize:this.tokenize,matcher:{"[äà]":"a","[öó]":"o","[üûúù]":"u","[éè]":"e"},document:{id:this.idField,index:this._columns.map((function(t){return t.key}))}});this._rows.forEach((function(e){t.searchIndex.add(e)}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.columnsWatcher(this.columns);this.rowsWatcher(this.rows);if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"datatable")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentDidLoad=function(){this.updateScrollStates()};t.prototype.componentWillRender=function(){var t=this;this._rowsManaged=[];if(this.query){var e=[];this.searchIndex.search(this.query).forEach((function(t){e=__spreadArray(__spreadArray([],e,true),t.result,true)}));e=e.filter((function(t,a){return e.indexOf(t)===a}));this._rows.forEach((function(a){if(e.indexOf(a[t.idField])>-1){t._rowsManaged.push(a)}}))}else{this._rowsManaged=__spreadArray([],this._rows,true)}if(this.sortBy){this._rowsManaged.sort((function(e,a){var r=e[t.sortBy].localeCompare(a[t.sortBy]);return t.sortDirection==="asc"?r:r/-1}))}};t.prototype.render=function(){var t=this;var e={"stzh-datatable":true,"is-scrollable":this.isScrollable,"has-scroll-left":this.hasScrollLeft,"has-scroll-right":this.hasScrollRight,"has-scroll-left-shadow":this.hasScrollLeft&&this.cellsStickyLeft.length===0,"has-scroll-right-shadow":this.hasScrollRight&&this.cellsStickyRight.length===0};return h(Host,null,h("div",{class:e},h("div",{class:"stzh-datatable__header"},h("div",{class:"stzh-datatable__heading"},h("slot",{name:"heading"})),h("stzh-input",{ref:function(e){return t.input=e},class:"stzh-datatable__search",size:"small",name:"stzh-datatable-search",onStzhChange:this.onInputChange,label:this.localization.searchLabel})),h("div",{class:"stzh-datatable__outer-wrapper"},h("div",{ref:function(e){return t.tableWrapper=e},class:"stzh-datatable__wrapper",onScroll:this.handleScroll},h("table",{class:"stzh-datatable__table"},h("thead",{class:"stzh-datatable__thead"},h("tr",{class:"stzh-datatable__row stzh-datatable__row--head"},this._columns.map((function(e,a){var r;return h("th",{class:(r={"stzh-datatable__cell stzh-datatable__cell--head":true,"is-sticky-left":e.fixed==="left","is-sticky-right":e.fixed==="right","is-sortable":e.sort,"has-sticked":t.cellsStickyLeft.indexOf(a)>-1||t.cellsStickyRight.indexOf(a)>-1,"has-sorted":e.key===t.sortBy,"has-sorted-asc":e.key===t.sortBy&&t.sortDirection==="asc","has-sorted-desc":e.key===t.sortBy&&t.sortDirection==="desc"},r["align-".concat(e.align)]=e.align,r["valign-".concat(e.valign)]=e.valign,r)},e.sort?h("button",{class:"stzh-datatable__sort-button",type:"button",onClick:function(){return t.toggleSort(e.key)}},h("span",null,e.text),h("stzh-icon",{name:"arrow-up",class:"stzh-datatable__sort-icon"})):h("span",null,e.text))})))),h("tbody",null,this._rowsManaged.map((function(e){return h("tr",{class:"stzh-datatable__row stzh-datatable__row--body"},t._columns.map((function(a,r){var i;var s,n,o,l,c;return h("td",{innerHTML:((s=e[a.key])===null||s===void 0?void 0:s.text)||e[a.key]||"",class:(i={"stzh-datatable__cell stzh-datatable__cell--body":true,"is-sticky-left":a.fixed==="left","is-sticky-right":a.fixed==="right","is-sortable":a.sort,"has-sticked":t.cellsStickyLeft.indexOf(r)>-1||t.cellsStickyRight.indexOf(r)>-1,"has-sorted":a.key===t.sortBy,"has-sorted-asc":a.key===t.sortBy&&t.sortDirection==="asc","has-sorted-desc":a.key===t.sortBy&&t.sortDirection==="desc"},i["align-".concat(((n=e[a.key])===null||n===void 0?void 0:n.align)||a.align)]=((o=e[a.key])===null||o===void 0?void 0:o.align)||a.align,i["valign-".concat(((l=e[a.key])===null||l===void 0?void 0:l.valign)||a.valign)]=((c=e[a.key])===null||c===void 0?void 0:c.valign)||a.valign,i)})})))}))))))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{rows:["rowsWatcher"],columns:["columnsWatcher"]}},enumerable:false,configurable:true});return t}());StzhDatatable.style=stzhDatatableCss}}}));
|
|
9
|
+
(function _f(self){try{if(module)self=module}catch(e){}self._factory=_f;var t;function u(t){return"undefined"!==typeof t?t:!0}function aa(t){var e=Array(t);for(var a=0;a<t;a++)e[a]=v();return e}function v(){return Object.create(null)}function ba(t,e){return e.length-t.length}function x(t){return"string"===typeof t}function C(t){return"object"===typeof t}function D(t){return"function"===typeof t}function ca(t,e){var a=da;if(t&&(e&&(t=E(t,e)),this.H&&(t=E(t,this.H)),this.J&&1<t.length&&(t=E(t,this.J)),a||""===a)){t=t.split(a);if(this.filter){e=this.filter;a=t.length;var r=[];for(var i=0,s=0;i<a;i++){var n=t[i];n&&!e[n]&&(r[s++]=n)}t=r}return t}return t}var da=/[\p{Z}\p{S}\p{P}\p{C}]+/u,ea=/[\u0300-\u036f]/g;function fa(t,e){var a=Object.keys(t),r=a.length,i=[];var s="",n=0;for(var o=0,h=void 0,l=void 0;o<r;o++)h=a[o],(l=t[h])?(i[n++]=F(e?"(?!\\b)"+h+"(\\b|_)":h),i[n++]=l):s+=(s?"|":"")+h;s&&(i[n++]=F(e?"(?!\\b)("+s+")(\\b|_)":"("+s+")"),i[n]="");return i}function E(t,e){for(var a=0,r=e.length;a<r&&(t=t.replace(e[a],e[a+1]),t);a+=2);return t}function F(t){return new RegExp(t,"g")}function ha(t){var e="",a="";for(var r=0,i=t.length,s=void 0;r<i;r++)(s=t[r])!==a&&(e+=a=s);return e}var ja={encode:ia,F:!1,G:""};function ia(t){return ca.call(this,(""+t).toLowerCase(),!1)}var ka={},G={};function la(t){I(t,"add");I(t,"append");I(t,"search");I(t,"update");I(t,"remove")}function I(t,e){t[e+"Async"]=function(){var t=this,a=arguments;var r=a[a.length-1];var i;D(r)&&(i=r,delete a[a.length-1]);r=new Promise((function(r){setTimeout((function(){t.async=!0;var i=t[e].apply(t,a);t.async=!1;r(i)}))}));return i?(r.then(i),this):r}}function ma(t,e,a,r){var i=t.length;var s=[],n,o,h=0;r&&(r=[]);for(var l=i-1;0<=l;l--){var c=t[l],f=c.length,d=v();var u=!n;for(var g=0;g<f;g++){var b=c[g],p=b.length;if(p)for(var m=0,_=void 0,y=void 0;m<p;m++)if(y=b[m],n){if(n[y]){if(!l)if(a)a--;else if(s[h++]=y,h===e)return s;if(l||r)d[y]=1;u=!0}if(r&&(o[y]=(_=o[y])?++_:_=1,_<i)){var z=r[_-2]||(r[_-2]=[]);z[z.length]=y}}else d[y]=1}if(r)n||(o=d);else if(!u)return[];n=d}if(r)for(var l=r.length-1,c=void 0,f=void 0;0<=l;l--){c=r[l];f=c.length;for(var d=0,u=void 0;d<f;d++)if(u=c[d],!n[u]){if(a)a--;else if(s[h++]=u,h===e)return s;n[u]=1}}return s}function na(t,e){var a=v(),r=v(),i=[];for(var s=0;s<t.length;s++)a[t[s]]=1;for(var s=0,n=void 0;s<e.length;s++){n=e[s];for(var o=0,h=void 0;o<n.length;o++)h=n[o],a[h]&&!r[h]&&(r[h]=1,i[i.length]=h)}return i}function J(t){this.l=!0!==t&&t;this.cache=v();this.h=[]}function oa(t,e,a){C(t)&&(t=t.query);var r=this.cache.get(t);r||(r=this.search(t,e,a),this.cache.set(t,r));return r}J.prototype.set=function(t,e){if(!this.cache[t]){var a=this.h.length;a===this.l?delete this.cache[this.h[a-1]]:a++;for(--a;0<a;a--)this.h[a]=this.h[a-1];this.h[0]=t}this.cache[t]=e};J.prototype.get=function(t){var e=this.cache[t];if(this.l&&e&&(t=this.h.indexOf(t))){var a=this.h[t-1];this.h[t-1]=this.h[t];this.h[t]=a}return e};var qa={memory:{charset:"latin:extra",D:3,B:4,m:!1},performance:{D:3,B:3,s:!1,context:{depth:2,D:1}},match:{charset:"latin:extra",G:"reverse"},score:{charset:"latin:advanced",D:20,B:3,context:{depth:3,D:9}},default:{}};function ra(t,e,a,r,i,s){setTimeout((function(){var n=t(a,JSON.stringify(s));n&&n.then?n.then((function(){e.export(t,e,a,r,i+1)})):e.export(t,e,a,r,i+1)}))}function K(t,e){if(!(this instanceof K))return new K(t);var a;if(t){x(t)?t=qa[t]:(a=t.preset)&&(t=Object.assign({},a[a],t));a=t.charset;var r=t.lang;x(a)&&(-1===a.indexOf(":")&&(a+=":default"),a=G[a]);x(r)&&(r=ka[r])}else t={};var i,s,n=t.context||{};this.encode=t.encode||a&&a.encode||ia;this.register=e||v();this.D=i=t.resolution||9;this.G=e=a&&a.G||t.tokenize||"strict";this.depth="strict"===e&&n.depth;this.l=u(n.bidirectional);this.s=s=u(t.optimize);this.m=u(t.fastupdate);this.B=t.minlength||1;this.C=t.boost;this.map=s?aa(i):v();this.A=i=n.resolution||1;this.h=s?aa(i):v();this.F=a&&a.F||t.rtl;this.H=(e=t.matcher||r&&r.H)&&fa(e,!1);this.J=(e=t.stemmer||r&&r.J)&&fa(e,!0);if(a=e=t.filter||r&&r.filter){a=e;r=v();for(var o=0,h=a.length;o<h;o++)r[a[o]]=1;a=r}this.filter=a;this.cache=(e=t.cache)&&new J(e)}t=K.prototype;t.append=function(t,e){return this.add(t,e,!0)};t.add=function(t,e,a,r){if(e&&(t||0===t)){if(!r&&!a&&this.register[t])return this.update(t,e);e=this.encode(e);if(r=e.length){var i=v(),s=v(),n=this.depth,o=this.D;for(var h=0;h<r;h++){var l=e[this.F?r-1-h:h];var c=l.length;if(l&&c>=this.B&&(n||!s[l])){var f=L(o,r,h),d="";switch(this.G){case"full":if(3<c){for(f=0;f<c;f++)for(var u=c;u>f;u--)if(u-f>=this.B){var g=L(o,r,h,c,f);d=l.substring(f,u);M(this,s,d,g,t,a)}break}case"reverse":if(2<c){for(u=c-1;0<u;u--)d=l[u]+d,d.length>=this.B&&M(this,s,d,L(o,r,h,c,u),t,a);d=""}case"forward":if(1<c){for(u=0;u<c;u++)d+=l[u],d.length>=this.B&&M(this,s,d,f,t,a);break}default:if(this.C&&(f=Math.min(f/this.C(e,l,h)|0,o-1)),M(this,s,l,f,t,a),n&&1<r&&h<r-1)for(c=v(),d=this.A,f=l,u=Math.min(n+1,r-h),c[f]=1,g=1;g<u;g++)if((l=e[this.F?r-1-h-g:h+g])&&l.length>=this.B&&!c[l]){c[l]=1;var b=this.l&&l>f;M(this,i,b?f:l,L(d+(r/2>d?0:1),r,h,u-1,g-1),t,a,b?l:f)}}}}this.m||(this.register[t]=1)}}return this};function L(t,e,a,r,i){return a&&1<t?e+(r||0)<=t?a+(i||0):(t-1)/(e+(r||0))*(a+(i||0))+1|0:0}function M(t,e,a,r,i,s,n){var o=n?t.h:t.map;if(!e[a]||n&&!e[a][n])t.s&&(o=o[r]),n?(e=e[a]||(e[a]=v()),e[n]=1,o=o[n]||(o[n]=v())):e[a]=1,o=o[a]||(o[a]=[]),t.s||(o=o[r]||(o[r]=[])),s&&-1!==o.indexOf(i)||(o[o.length]=i,t.m&&(t=t.register[i]||(t.register[i]=[]),t[t.length]=o))}t.search=function(t,e,a){a||(!e&&C(t)?(a=t,t=a.query):C(e)&&(a=e));var r=[],i;var s,n=0;if(a){e=a.limit;n=a.offset||0;var o=a.context;s=a.suggest}if(t&&(t=this.encode(t),i=t.length,1<i)){a=v();var h=[];for(var l=0,c=0,f=void 0;l<i;l++)if((f=t[l])&&f.length>=this.B&&!a[f])if(this.s||s||this.map[f])h[c++]=f,a[f]=1;else return r;t=h;i=t.length}if(!i)return r;e||(e=100);o=this.depth&&1<i&&!1!==o;a=0;var d;o?(d=t[0],a=1):1<i&&t.sort(ba);for(var l=void 0,c=void 0;a<i;a++){c=t[a];o?(l=sa(this,r,s,e,n,2===i,c,d),s&&!1===l&&r.length||(d=c)):l=sa(this,r,s,e,n,1===i,c);if(l)return l;if(s&&a===i-1){h=r.length;if(!h){if(o){o=0;a=-1;continue}return r}if(1===h)return ta(r[0],e,n)}}return ma(r,e,n,s)};function sa(t,e,a,r,i,s,n,o){var h=[],l=o?t.h:t.map;t.s||(l=ua(l,n,o,t.l));if(l){var c=0;var f=Math.min(l.length,o?t.A:t.D);for(var d=0,u=0,v=void 0,g=void 0;d<f;d++)if(v=l[d])if(t.s&&(v=ua(v,n,o,t.l)),i&&v&&s&&(g=v.length,g<=i?(i-=g,v=null):(v=v.slice(i),i=0)),v&&(h[c++]=v,s&&(u+=v.length,u>=r)))break;if(c){if(s)return ta(h,r,0);e[e.length]=h;return}}return!a&&h}function ta(t,e,a){t=1===t.length?t[0]:[].concat.apply([],t);return a||t.length>e?t.slice(a,a+e):t}function ua(t,e,a,r){a?(r=r&&e>a,t=(t=t[r?e:a])&&t[r?a:e]):t=t[e];return t}t.contain=function(t){return!!this.register[t]};t.update=function(t,e){return this.remove(t).add(t,e)};t.remove=function(t,e){var a=this.register[t];if(a){if(this.m)for(var r=0,i=void 0;r<a.length;r++)i=a[r],i.splice(i.indexOf(t),1);else N(this.map,t,this.D,this.s),this.depth&&N(this.h,t,this.A,this.s);e||delete this.register[t];if(this.cache){e=this.cache;for(var r=0,i=void 0,s=void 0;r<e.h.length;r++)s=e.h[r],i=e.cache[s],-1!==i.indexOf(t)&&(e.h.splice(r--,1),delete e.cache[s])}}return this};function N(t,e,a,r,i){var s=0;if(t.constructor===Array)if(i)e=t.indexOf(e),-1!==e?1<t.length&&(t.splice(e,1),s++):s++;else{i=Math.min(t.length,a);for(var n=0,o;n<i;n++)if(o=t[n])s=N(o,e,a,r,i),r||s||delete t[n]}else for(var n in t)(s=N(t[n],e,a,r,i))||delete t[n];return s}t.searchCache=oa;t.export=function(t,e,a,r,i){var s,n;switch(i||(i=0)){case 0:s="reg";if(this.m){n=v();for(var o in this.register)n[o]=1}else n=this.register;break;case 1:s="cfg";n={doc:0,opt:this.s?1:0};break;case 2:s="map";n=this.map;break;case 3:s="ctx";n=this.h;break;default:return}ra(t,e||this,a?a+"."+s:s,r,i,n);return!0};t.import=function(t,e){if(e)switch(x(e)&&(e=JSON.parse(e)),t){case"cfg":this.s=!!e.opt;break;case"reg":this.m=!1;this.register=e;break;case"map":this.map=e;break;case"ctx":this.h=e}};la(K.prototype);function va(t){t=t.data;var e=self._index;var a=t.args;var r=t.task;switch(r){case"init":r=t.options||{};t=t.factory;e=r.encode;r.cache=!1;e&&0===e.indexOf("function")&&(r.encode=Function("return "+e)());t?(Function("return "+t)()(self),self._index=new self.FlexSearch.Index(r),delete self.FlexSearch):self._index=new K(r);break;default:t=t.id,e=e[r].apply(e,a),postMessage("search"===r?{id:t,msg:e}:{id:t})}}var wa=0;function O(t){if(!(this instanceof O))return new O(t);var e;t?D(e=t.encode)&&(t.encode=e.toString()):t={};(e=(self||window)._factory)&&(e=e.toString());var a=self.exports,r=this;this.o=xa(e,a,t.worker);this.h=v();if(this.o){if(a)this.o.on("message",(function(t){r.h[t.id](t.msg);delete r.h[t.id]}));else this.o.onmessage=function(t){t=t.data;r.h[t.id](t.msg);delete r.h[t.id]};this.o.postMessage({task:"init",factory:e,options:t})}}P("add");P("append");P("search");P("update");P("remove");function P(t){O.prototype[t]=O.prototype[t+"Async"]=function(){var e=this,a=[].slice.call(arguments);var r=a[a.length-1];var i;D(r)&&(i=r,a.splice(a.length-1,1));r=new Promise((function(r){setTimeout((function(){e.h[++wa]=r;e.o.postMessage({task:t,id:wa,args:a})}))}));return i?(r.then(i),this):r}}function xa(a,b,c){var d;try{d=b?eval('new (require("worker_threads")["Worker"])("../dist/node/node.js")'):a?new Worker(URL.createObjectURL(new Blob(["onmessage="+va.toString()],{type:"text/javascript"}))):new Worker(x(c)?c:"worker/worker.js",{type:"module"})}catch(e){}return d}function Q(t){if(!(this instanceof Q))return new Q(t);var e=t.document||t.doc||t,a;this.K=[];this.h=[];this.A=[];this.register=v();this.key=(a=e.key||e.id)&&S(a,this.A)||"id";this.m=u(t.fastupdate);this.C=(a=e.store)&&!0!==a&&[];this.store=a&&v();this.I=(a=e.tag)&&S(a,this.A);this.l=a&&v();this.cache=(a=t.cache)&&new J(a);t.cache=!1;this.o=t.worker;this.async=!1;a=v();var r=e.index||e.field||e;x(r)&&(r=[r]);for(var i=0,s=void 0,n=void 0;i<r.length;i++)s=r[i],x(s)||(n=s,s=s.field),n=C(n)?Object.assign({},t,n):t,this.o&&(a[s]=new O(n),a[s].o||(this.o=!1)),this.o||(a[s]=new K(n,this.register)),this.K[i]=S(s,this.A),this.h[i]=s;if(this.C)for(t=e.store,x(t)&&(t=[t]),e=0;e<t.length;e++)this.C[e]=S(t[e],this.A);this.index=a}function S(t,e){var a=t.split(":");var r=0;for(var i=0;i<a.length;i++)t=a[i],0<=t.indexOf("[]")&&(t=t.substring(0,t.length-2))&&(e[r]=!0),t&&(a[r++]=t);r<a.length&&(a.length=r);return 1<r?a:a[0]}function T(t,e){if(x(e))t=t[e];else for(var a=0;t&&a<e.length;a++)t=t[e[a]];return t}function U(t,e,a,r,i){t=t[i];if(r===a.length-1)e[i]=t;else if(t)if(t.constructor===Array)for(e=e[i]=Array(t.length),i=0;i<t.length;i++)U(t,e,a,r,i);else e=e[i]||(e[i]=v()),i=a[++r],U(t,e,a,r,i)}function V(t,e,a,r,i,s,n,o){if(t=t[n])if(r===e.length-1){if(t.constructor===Array){if(a[r]){for(e=0;e<t.length;e++)i.add(s,t[e],!0,!0);return}t=t.join(" ")}i.add(s,t,o,!0)}else if(t.constructor===Array)for(n=0;n<t.length;n++)V(t,e,a,r,i,s,n,o);else n=e[++r],V(t,e,a,r,i,s,n,o)}t=Q.prototype;t.add=function(t,e,a){C(t)&&(e=t,t=T(e,this.key));if(e&&(t||0===t)){if(!a&&this.register[t])return this.update(t,e);for(var r=0,i=void 0,s=void 0;r<this.h.length;r++)s=this.h[r],i=this.K[r],x(i)&&(i=[i]),V(e,i,this.A,0,this.index[s],t,i[0],a);if(this.I){var r=T(e,this.I),i=v();x(r)&&(r=[r]);for(var s=0,n=void 0,o;s<r.length;s++)if(n=r[s],!i[n]&&(i[n]=1,o=this.l[n]||(this.l[n]=[]),!a||-1===o.indexOf(t)))if(o[o.length]=t,this.m){var h=this.register[t]||(this.register[t]=[]);h[h.length]=o}}if(this.store&&(!a||!this.store[t])){var r=void 0;if(this.C){r=v();for(var i=0,s=void 0;i<this.C.length;i++)s=this.C[i],x(s)?r[s]=e[s]:U(e,r,s,0,s[0])}this.store[t]=r||e}}return this};t.append=function(t,e){return this.add(t,e,!0)};t.update=function(t,e){return this.remove(t).add(t,e)};t.remove=function(t){C(t)&&(t=T(t,this.key));if(this.register[t]){for(var e=0;e<this.h.length&&(this.index[this.h[e]].remove(t,!this.o),!this.m);e++);if(this.I&&!this.m)for(var a in this.l){e=this.l[a];var r=e.indexOf(t);-1!==r&&(1<e.length?e.splice(r,1):delete this.l[a])}this.store&&delete this.store[t];delete this.register[t]}return this};t.search=function(t,e,a,r){a||(!e&&C(t)?(a=t,t=a.query):C(e)&&(a=e,e=0));var i=[],s=[],n,o,h,l,c,f,d=0;if(a)if(a.constructor===Array)h=a,a=null;else{h=(n=a.pluck)||a.index||a.field;l=a.tag;o=this.store&&a.enrich;c="and"===a.bool;e=a.limit||100;f=a.offset||0;if(l&&(x(l)&&(l=[l]),!t)){for(var u=0,v=void 0;u<l.length;u++)if(v=ya.call(this,l[u],e,f,o))i[i.length]=v,d++;return d?i:[]}x(h)&&(h=[h])}h||(h=this.h);c=c&&(1<h.length||l&&1<l.length);var g=!r&&(this.o||this.async)&&[];for(var u=0,v=void 0,b=void 0,p=void 0;u<h.length;u++){var m=void 0;b=h[u];x(b)||(m=b,b=b.field);if(g)g[u]=this.index[b].searchAsync(t,e,m||a);else{r?v=r[u]:v=this.index[b].search(t,e,m||a);p=v&&v.length;if(l&&p){var _=[];var y=0;c&&(_[0]=[v]);for(var z=0,w=void 0,k=void 0;z<l.length;z++)if(w=l[z],p=(k=this.l[w])&&k.length)y++,_[_.length]=c?[k]:k;y&&(v=c?ma(_,e||100,f||0):na(v,_),p=v.length)}if(p)s[d]=b,i[d++]=v;else if(c)return[]}}if(g){var S=this;return new Promise((function(r){Promise.all(g).then((function(i){r(S.search(t,e,a,i))}))}))}if(!d)return[];if(n&&(!o||!this.store))return i[0];for(var u=0,v=void 0;u<s.length;u++){v=i[u];v.length&&o&&(v=za.call(this,v));if(n)return v;i[u]={field:s[u],result:v}}return i};function ya(t,e,a,r){var i=this.l[t],s=i&&i.length-a;if(s&&0<s){if(s>e||a)i=i.slice(a,a+e);r&&(i=za.call(this,i));return{tag:t,result:i}}}function za(t){var e=Array(t.length);for(var a=0,r=void 0;a<t.length;a++)r=t[a],e[a]={id:r,doc:this.store[r]};return e}t.contain=function(t){return!!this.register[t]};t.get=function(t){return this.store[t]};t.set=function(t,e){this.store[t]=e;return this};t.searchCache=oa;t.export=function(t,e,a,r,i){i||(i=0);r||(r=0);if(r<this.h.length){var s=this.h[r],n=this.index[s];e=this;setTimeout((function(){n.export(t,e,i?s.replace(":","-"):"",r,i++)||(r++,i=1,e.export(t,e,s,r,i))}))}else{var o=void 0;switch(i){case 1:a="tag";o=this.l;break;case 2:a="store";o=this.store;break;default:return}ra(t,this,a,r,i,o)}};t.import=function(t,e){if(e)switch(x(e)&&(e=JSON.parse(e)),t){case"tag":this.l=e;break;case"reg":this.m=!1;this.register=e;for(var a=0,r=void 0;a<this.h.length;a++)r=this.index[this.h[a]],r.register=e,r.m=!1;break;case"store":this.store=e;break;default:t=t.split(".");var i=t[0];t=t[1];i&&t&&this.index[i].import(t,e)}};la(Q.prototype);var Ba={encode:Aa,F:!1,G:""};var Ca=[F("[àáâãäå]"),"a",F("[èéêë]"),"e",F("[ìíîï]"),"i",F("[òóôõöő]"),"o",F("[ùúûüű]"),"u",F("[ýŷÿ]"),"y",F("ñ"),"n",F("[çc]"),"k",F("ß"),"s",F(" & ")," and "];function Aa(t){var e=t;e.normalize&&(e=e.normalize("NFD").replace(ea,""));return ca.call(this,e.toLowerCase(),!t.normalize&&Ca)}var Ea={encode:Da,F:!1,G:"strict"};var Fa=/[^a-z0-9]+/,Ga={b:"p",v:"f",w:"f",z:"s",x:"s","ß":"s",d:"t",n:"m",c:"k",g:"k",j:"k",q:"k",i:"e",y:"e",u:"o"};function Da(t){t=Aa.call(this,t).join(" ");var e=[];if(t){var a=t.split(Fa),r=a.length;for(var i=0,s=void 0,n=0;i<r;i++)if((t=a[i])&&(!this.filter||!this.filter[t])){s=t[0];var o=Ga[s]||s,h=o;for(var l=1;l<t.length;l++){s=t[l];var c=Ga[s]||s;c&&c!==h&&(o+=c,h=c)}e[n++]=o}}return e}var Ia={encode:Ha,F:!1,G:""};var Ja=[F("ae"),"a",F("oe"),"o",F("sh"),"s",F("th"),"t",F("ph"),"f",F("pf"),"f",F("(?![aeo])h(?![aeo])"),"",F("(?!^[aeo])h(?!^[aeo])"),""];function Ha(t,e){t&&(t=Da.call(this,t).join(" "),2<t.length&&(t=E(t,Ja)),e||(1<t.length&&(t=ha(t)),t&&(t=t.split(" "))));return t}var La={encode:Ka,F:!1,G:""};var Ma=F("(?!\\b)[aeo]");function Ka(t){t&&(t=Ha.call(this,t,!0),1<t.length&&(t=t.replace(Ma,"")),1<t.length&&(t=ha(t)),t&&(t=t.split(" ")));return t}G["latin:default"]=ja;G["latin:simple"]=Ba;G["latin:balance"]=Ea;G["latin:advanced"]=Ia;G["latin:extra"]=La;var W=self;var Y;var Z={Index:K,Document:Q,Worker:O,registerCharset:function(t,e){G[t]=e},registerLanguage:function(t,e){ka[t]=e}};(Y=W.define)&&Y.amd?Y([],(function(){return Z})):W.exports?W.exports=Z:W.FlexSearch=Z})(commonjsGlobal)}));var stzhDatatableCss=':host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}stzh-datatable{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;--max-height:var(--stzh-table-max-height);--min-width:var(--stzh-table-min-width);--cell-padding:var(--stzh-table-cell-padding);--input-width:var(--stzh-table-input-width)}stzh-datatable[hidden]{display:none}stzh-datatable *,stzh-datatable *::before,stzh-datatable *::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-datatable{}.stzh-datatable__header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-bottom:0.0625rem solid var(--stzh-base-border-color);padding-bottom:var(--stzh-space-small);margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-datatable__header{padding-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1024px){.stzh-datatable__header{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-datatable__header{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){.stzh-datatable__header{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}.stzh-datatable__heading{margin-bottom:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-datatable__heading{margin-bottom:0}}.stzh-datatable__header .stzh-datatable__search{width:var(--stzh-table-input-width)}@media screen and (min-width: 1024px){.stzh-datatable__header .stzh-datatable__search{margin-left:var(--stzh-space-large)}}.stzh-datatable__outer-wrapper{position:relative}.stzh-datatable__outer-wrapper::before,.stzh-datatable__outer-wrapper::after{z-index:4;background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.16)), to(rgba(0, 0, 0, 0)));background:linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);content:"";pointer-events:none;position:absolute;top:0;height:100%;width:0.375rem;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);opacity:0}.stzh-datatable__outer-wrapper::before{left:0}.stzh-datatable__outer-wrapper::after{right:0;-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.stzh-datatable__wrapper{overflow-x:auto;max-height:var(--max-height)}.stzh-datatable__sort-button{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:inherit;line-height:inherit;color:inherit;padding:var(--cell-padding)}.stzh-datatable__sort-button:hover,.stzh-datatable__sort-button:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-datatable__sort-icon{opacity:0}.stzh-datatable__table{width:100%;border-spacing:0;min-width:var(--min-width)}.stzh-datatable__thead{position:-webkit-sticky;position:sticky;top:0;z-index:3}.stzh-datatable__row:hover .stzh-datatable__cell{background-color:var(--stzh-color-grey5)}.stzh-datatable__cell{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);text-align:left;border:none;vertical-align:top;border:none;border-bottom:0.0625rem solid var(--stzh-base-border-color);background-color:var(--stzh-color-white);-webkit-transition:background-color var(--stzh-base-transition-animation-speed);transition:background-color var(--stzh-base-transition-animation-speed);padding:var(--cell-padding);}.stzh-datatable__cell a{color:var(--stzh-link-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);border-radius:var(--stzh-button-border-radius)}.stzh-datatable__cell a:hover,.stzh-datatable__cell a:focus{color:var(--stzh-link-hover-color)}.stzh-datatable__cell b,.stzh-datatable__cell strong{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-datatable__cell i,.stzh-datatable__cell em{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-datatable__cell.align-left{text-align:left}.stzh-datatable__cell.align-right{text-align:right}.stzh-datatable__cell.align-center{text-align:center}.stzh-datatable__cell.valign-auto{vertical-align:auto}.stzh-datatable__cell.valign-middle{vertical-align:middle}.stzh-datatable__cell.valign-bottom{vertical-align:bottom}.stzh-datatable__cell.nowrap{white-space:nowrap}.stzh-datatable__cell.is-sticky-left,.stzh-datatable__cell.is-sticky-right{position:-webkit-sticky;position:sticky;z-index:1}.stzh-datatable__cell.has-sticked{z-index:2}.stzh-datatable__cell.is-sticky-left{left:0}.stzh-datatable__cell.is-sticky-right{right:0}.stzh-datatable__cell.is-sticky-left::after,.stzh-datatable__cell.is-sticky-right::after{background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.16)), to(rgba(0, 0, 0, 0)));background:linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);content:"";pointer-events:none;position:absolute;top:0;height:100%;width:0.375rem;-webkit-transform:translate(100%);transform:translate(100%);opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed)}.stzh-datatable__cell.is-sticky-left::after{right:0}.stzh-datatable__cell.is-sticky-right::after{left:0;-webkit-transform:rotate(-180deg) translate(100%);transform:rotate(-180deg) translate(100%)}.stzh-datatable__cell.has-sticked.is-sticky-left::after,.stzh-datatable__cell.has-sticked.is-sticky-right::after{opacity:1}.stzh-datatable__cell--head{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-datatable__cell--head.is-sortable{padding:0}.stzh-datatable__cell.has-sorted .stzh-datatable__sort-icon{opacity:1}.stzh-datatable__cell.has-sorted-desc .stzh-datatable__sort-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.stzh-datatable.has-scroll-left-shadow .stzh-datatable__outer-wrapper::before,.stzh-datatable.has-scroll-right-shadow .stzh-datatable__outer-wrapper::after{opacity:1}';var StzhDatatable=exports("stzh_datatable",function(){function t(t){var e=this;registerInstance(this,t);this.label="";this.sortBy="";this.sortDirection="asc";this.tokenize="forward";this.idField="id";this.rows=[];this.columns=[];this.query="";this.hasScrollLeft=false;this.hasScrollRight=false;this.isScrollable=false;this.cellsStickyLeft=[];this.cellsStickyRight=[];this.updateScrollStates=function(){if(!e.tableWrapper){return}var t=e.tableWrapper.scrollLeft;var a=e.tableWrapper.scrollWidth;var r=e.tableWrapper.clientWidth;e.isScrollable=a>r;e.hasScrollLeft=t>0;e.hasScrollRight=t<a-r;var i=Array.from(e.tableWrapper.querySelectorAll("tr"));var s=i[0];if(!s){return}e.cellsStickyLeft=[];e.cellsStickyRight=[];var n=Array.from(s.children);n.forEach((function(a,i){var s=a.offsetLeft;var n=s+a.offsetWidth;if(e.hasScrollLeft&&e._columns[i].fixed==="left"&&Math.ceil(t)>=s){e.cellsStickyLeft.push(i)}if(e.hasScrollRight&&e._columns[i].fixed==="right"&&Math.ceil(t)+r<=n){e.cellsStickyRight.push(i)}}))};this.handleScroll=function(){if(e.debounceScroll){window.cancelAnimationFrame(e.debounceScroll)}e.debounceScroll=requestAnimationFrame(e.updateScrollStates)};this.onInputChange=function(){e.query=e.input.value}}t.prototype.toggleSort=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(t===this.sortBy){this.sortDirection=this.sortDirection==="asc"?"desc":"asc"}else{this.sortDirection="asc";this.sortBy=t}return[2]}))}))};t.prototype.rowsWatcher=function(t){if(typeof t==="string"){this._rows=JSON.parse(t)}else{this._rows=t}this.buildSearchIndex()};t.prototype.columnsWatcher=function(t){if(typeof t==="string"){this._columns=JSON.parse(t)}else{this._columns=t}this.buildSearchIndex()};t.prototype.handleResize=function(){this.updateScrollStates()};t.prototype.buildSearchIndex=function(){var t=this;if(!this._rows||this._rows.length===0||!this._columns||this._columns.length===0){return}this.searchIndex=new flexsearch_bundle.Document({tokenize:this.tokenize,matcher:{"[äà]":"a","[öó]":"o","[üûúù]":"u","[éè]":"e"},document:{id:this.idField,index:this._columns.map((function(t){return t.key}))}});this._rows.forEach((function(e){t.searchIndex.add(e)}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.columnsWatcher(this.columns);this.rowsWatcher(this.rows);if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"datatable")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentDidLoad=function(){this.updateScrollStates()};t.prototype.componentWillRender=function(){var t=this;this._rowsManaged=[];if(this.query){var e=[];this.searchIndex.search(this.query).forEach((function(t){e=__spreadArray(__spreadArray([],e,true),t.result,true)}));e=e.filter((function(t,a){return e.indexOf(t)===a}));this._rows.forEach((function(a){if(e.indexOf(a[t.idField])>-1){t._rowsManaged.push(a)}}))}else{this._rowsManaged=__spreadArray([],this._rows,true)}if(this.sortBy){this._rowsManaged.sort((function(e,a){var r=e[t.sortBy].localeCompare(a[t.sortBy]);return t.sortDirection==="asc"?r:r/-1}))}};t.prototype.render=function(){var t=this;var e={"stzh-datatable":true,"is-scrollable":this.isScrollable,"has-scroll-left":this.hasScrollLeft,"has-scroll-right":this.hasScrollRight,"has-scroll-left-shadow":this.hasScrollLeft&&this.cellsStickyLeft.length===0,"has-scroll-right-shadow":this.hasScrollRight&&this.cellsStickyRight.length===0};return h(Host,null,h("div",{class:e},h("div",{class:"stzh-datatable__header"},h("div",{class:"stzh-datatable__heading"},h("slot",{name:"heading"})),h("stzh-input",{ref:function(e){return t.input=e},class:"stzh-datatable__search",size:"small",name:"stzh-datatable-search",onStzhChange:this.onInputChange,label:this.localization.searchLabel})),h("div",{class:"stzh-datatable__outer-wrapper"},h("div",{ref:function(e){return t.tableWrapper=e},class:"stzh-datatable__wrapper",onScroll:this.handleScroll},h("table",{class:"stzh-datatable__table"},h("thead",{class:"stzh-datatable__thead"},h("tr",{class:"stzh-datatable__row stzh-datatable__row--head"},this._columns.map((function(e,a){var r;return h("th",{class:(r={"stzh-datatable__cell stzh-datatable__cell--head":true,"is-sticky-left":e.fixed==="left","is-sticky-right":e.fixed==="right","is-sortable":e.sort,"has-sticked":t.cellsStickyLeft.indexOf(a)>-1||t.cellsStickyRight.indexOf(a)>-1,"has-sorted":e.key===t.sortBy,"has-sorted-asc":e.key===t.sortBy&&t.sortDirection==="asc","has-sorted-desc":e.key===t.sortBy&&t.sortDirection==="desc"},r["align-".concat(e.align)]=e.align,r["valign-".concat(e.valign)]=e.valign,r)},e.sort?h("button",{class:"stzh-datatable__sort-button",type:"button",onClick:function(){return t.toggleSort(e.key)}},h("span",null,e.text),h("stzh-icon",{name:"arrow-up",class:"stzh-datatable__sort-icon"})):h("span",null,e.text))})))),h("tbody",null,this._rowsManaged.map((function(e){return h("tr",{class:"stzh-datatable__row stzh-datatable__row--body"},t._columns.map((function(a,r){var i;var s,n,o,l,c;return h("td",{innerHTML:((s=e[a.key])===null||s===void 0?void 0:s.text)||e[a.key]||"",class:(i={"stzh-datatable__cell stzh-datatable__cell--body":true,"is-sticky-left":a.fixed==="left","is-sticky-right":a.fixed==="right","is-sortable":a.sort,"has-sticked":t.cellsStickyLeft.indexOf(r)>-1||t.cellsStickyRight.indexOf(r)>-1,"has-sorted":a.key===t.sortBy,"has-sorted-asc":a.key===t.sortBy&&t.sortDirection==="asc","has-sorted-desc":a.key===t.sortBy&&t.sortDirection==="desc"},i["align-".concat(((n=e[a.key])===null||n===void 0?void 0:n.align)||a.align)]=((o=e[a.key])===null||o===void 0?void 0:o.align)||a.align,i["valign-".concat(((l=e[a.key])===null||l===void 0?void 0:l.valign)||a.valign)]=((c=e[a.key])===null||c===void 0?void 0:c.valign)||a.valign,i)})})))}))))))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{rows:["rowsWatcher"],columns:["columnsWatcher"]}},enumerable:false,configurable:true});return t}());StzhDatatable.style=stzhDatatableCss}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as o,a as i,g as h}from"./p-65282c9d.js";import{c as e,a,A as r,o as l,f as n,s as p,b as c}from"./p-a7454367.js";import{c as d}from"./p-40a19ce6.js";import{f as z}from"./p-1a40a6e4.js";import{w as m}from"./p-e69a66bb.js";import{s as b,a as u}from"./p-320aedf7.js";const f=[{opacity:"0"},{opacity:"1"}],w={duration:100,easing:"linear"},g=[{opacity:"1"},{opacity:"0"}],_={duration:200,easing:"linear"};let v=0;const x=class{constructor(o){t(this,o),this.stzhOpen=s(this,"stzhOpen",7),this.stzhOpened=s(this,"stzhOpened",7),this.stzhClose=s(this,"stzhClose",7),this.stzhClosed=s(this,"stzhClosed",7),this.open=!1,this.label="",this.content="",this.placement="bottom",this.skidding=0,this.distance=16,this.interactive=!1,this.trigger="hover focus",this.toggledByMethod=!1,this.isHovering=!1,this.onEscKey=t=>{27===t.keyCode&&this.hide()},this.computePosition=async()=>{if(!this.open)return;const{x:t=0,y:s=0,strategy:o="absolute",placement:i,middlewareData:h}=await e(this.triggerElement.firstElementChild,this.contentElement,{placement:this.placement,middleware:[l({mainAxis:this.distance,crossAxis:this.skidding}),n({padding:5}),p({padding:5}),c({element:this.arrowElement,padding:5})]});this.middlewareData=h,this.computedPlacement=i,Object.assign(this.contentElement.style,{position:o,left:`${t}px`,top:`${s}px`}),Object.assign(this.arrowElement.style,{left:null!=t?`${h.arrow.x}px`:"",top:null!=s?`${h.arrow.y}px`:""})},this.onClickTrigger=()=>{this.hasTrigger("click")&&this.toggle()},this.onMouseEnterTrigger=()=>{this.hasTrigger("hover")&&(this.isHovering=!0,this.show())},this.onMouseLeaveTrigger=()=>{this.hasTrigger("hover")&&(this.isHovering=!1,document.addEventListener("mousemove",this.onMouseMoveDocument))},this.onFocusTrigger=()=>{this.hasTrigger("focus")&&this.show()},this.onBlurTrigger=()=>{this.hasTrigger("focus")&&this.hide()},this.onMouseMoveDocument=t=>{const{clientX:s,clientY:o}=t;if(!this.computedPlacement)return!0;const i=this.computedPlacement.split("-")[0],h=this.middlewareData.offset,e=this.contentElement.getBoundingClientRect();if(!h)return!0;(e.top-o>("bottom"===i?h.y:0)||o-e.bottom>("top"===i?h.y:0)||e.left-s>("right"===i?h.x:0)||s-e.right>("left"===i?h.x:0))&&(document.removeEventListener("mousemove",this.onMouseMoveDocument),this.isHovering||this.hide())}}async show(){if(!this.open)return this.toggledByMethod=!0,this.open=!0,m(this.element,"stzhOpened")}async hide(){if(this.open)return this.toggledByMethod=!0,this.open=!1,m(this.element,"stzhClosed")}async toggle(){return this.open?await this.hide():await this.show()}async update(){return await this.computePosition()}async openWatcher(t){t?(this.toggledByMethod&&this.stzhOpen.emit({component:"stzh-tooltip"}),await b(this.contentElement),this.contentElement.style.willChange="transform, opacity, position, top, left, bottom, right",this.contentElement.hidden=!1,await u(this.contentElement,f,w),this.toggledByMethod&&this.stzhOpened.emit({component:"stzh-tooltip"})):(this.toggledByMethod&&this.stzhClose.emit({component:"stzh-tooltip"}),await b(this.contentElement),await u(this.contentElement,g,_),this.contentElement.hidden=!0,this.contentElement.style.willChange="auto",this.toggledByMethod&&this.stzhClosed.emit({component:"stzh-tooltip"})),this.toggledByMethod=!1}triggerWatcher(t){this._trigger=t.split(" ")}handleDocumentClick(t){if(!this.open)return;const s=t.target!==this.contentElement&&!1===this.contentElement.contains(t.target),o=t.target===this.triggerElement||this.triggerElement.contains(t.target);s&&!o&&this.hasTrigger("click")&&this.hide()}hasTrigger(t){return this._trigger.indexOf(t)>-1}async componentWillLoad(){this.labelId=`stzh-tooltip-label-${v}`,v++,this.triggerWatcher(this.trigger),this.localization||(this.localization=await z(this.element,"tooltip"))}componentDidRender(){this.computePosition(),this.interactive&&this.triggerElement.firstElementChild.setAttribute("aria-expanded",this.open?"true":"false"),this.trap&&(this.open?this.trap.activate():this.trap.deactivate())}componentDidUpdate(){this.trap&&this.trap.updateContainerElements(this.contentElement)}componentDidLoad(){this.autoUpdateCleanup=a(this.element,this.contentElement,this.computePosition),this.interactive&&(this.trap=d(this.contentElement,{fallbackFocus:this.contentElement,clickOutsideDeactivates:!0,returnFocusOnDeactivate:!0}),this.open&&this.trap.activate()),this.contentElement.hidden=!this.open}connectedCallback(){var t;let s=null===(t=this.triggerElement)||void 0===t?void 0:t.firstElementChild;s||(s=Array.from(this.element.children).find((t=>!t.hasAttribute("slot")))),s&&(s.addEventListener("click",this.onClickTrigger),s.addEventListener("mouseenter",this.onMouseEnterTrigger),s.addEventListener("mouseleave",this.onMouseLeaveTrigger),s.addEventListener("focusin",this.onFocusTrigger),s.addEventListener("focusout",this.onBlurTrigger))}disconnectedCallback(){this.autoUpdateCleanup&&this.autoUpdateCleanup(),this.triggerElement.firstElementChild.removeEventListener("click",this.onClickTrigger),this.triggerElement.firstElementChild.removeEventListener("mouseenter",this.onMouseEnterTrigger),this.triggerElement.firstElementChild.removeEventListener("mouseleave",this.onMouseLeaveTrigger),this.triggerElement.firstElementChild.removeEventListener("focusin",this.onFocusTrigger),this.triggerElement.firstElementChild.removeEventListener("focusout",this.onBlurTrigger)}render(){return o(i,null,o("div",{class:{"stzh-tooltip":!0,"stzh-tooltip--open":this.open,[`stzh-tooltip--placement-${this.computedPlacement}`]:!!this.computedPlacement}},o("div",{class:"stzh-tooltip__trigger",ref:t=>this.triggerElement=t},o("slot",null)),o("div",{class:"stzh-tooltip__content",ref:t=>this.contentElement=t,tabindex:"-1","aria-labelledby":this.label?this.labelId:null,"aria-hidden":this.open?"false":"true",onKeyDown:this.onEscKey,onMouseEnter:this.onMouseEnterTrigger,onMouseLeave:this.onMouseLeaveTrigger,onFocusin:this.onFocusTrigger,onFocusout:this.onBlurTrigger},o("div",{class:"stzh-tooltip__arrow",ref:t=>this.arrowElement=t,innerHTML:r}),this.label&&o("h2",{id:this.labelId,class:"stzh-tooltip__vhidden"},this.label),o("div",{class:"stzh-tooltip__content-slot"},this.content?this.content:o("slot",{name:"content"})),this.hasTrigger("click")&&o("button",{class:"stzh-tooltip__close",onClick:()=>this.hide(),type:"button"},o("stzh-icon",{name:"close",class:"stzh-tooltip__icon"}),o("span",{class:"stzh-tooltip__vhidden"},this.localization.close)))))}get element(){return h(this)}static get watchers(){return{open:["openWatcher"],trigger:["triggerWatcher"]}}};x.style=".sc-stzh-tooltip-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-tooltip-h{display:none}.sc-stzh-tooltip-h *.sc-stzh-tooltip,.sc-stzh-tooltip-h *.sc-stzh-tooltip::before,.sc-stzh-tooltip-h *.sc-stzh-tooltip::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-tooltip-h{--width:var(--stzh-tooltip-width);--min-width:var(--stzh-tooltip-min-width);--max-width:var(--stzh-tooltip-max-width);--padding:var(--stzh-tooltip-padding);--border-radius:var(--stzh-tooltip-border-radius)}.stzh-tooltip__arrow.sc-stzh-tooltip{position:absolute;display:-ms-flexbox;display:flex;color:var(--stzh-color-white)}.stzh-tooltip--placement-bottom.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-bottom-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-bottom-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{top:0;-webkit-transform:translateY(-0.5rem);transform:translateY(-0.5rem)}.stzh-tooltip--placement-top.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-top-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-top-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{bottom:0;-webkit-transform:translateY(0.5rem) rotate(180deg);transform:translateY(0.5rem) rotate(180deg)}.stzh-tooltip--placement-left.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-left-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-left-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{right:0;-webkit-transform:translateX(0.75rem) rotate(90deg);transform:translateX(0.75rem) rotate(90deg)}.stzh-tooltip--placement-right.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-right-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-right-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{left:0;-webkit-transform:translateX(-0.75rem) rotate(-90deg);transform:translateX(-0.75rem) rotate(-90deg)}.stzh-tooltip__content.sc-stzh-tooltip{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);position:absolute;z-index:var(--stzh-z-index-popover);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border-radius:var(--border-radius);background-color:var(--stzh-color-white);width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}@supports ((-webkit-filter: var(--stzh-tooltip-drop-shadow)) or (filter: var(--stzh-tooltip-drop-shadow))){.stzh-tooltip__content.sc-stzh-tooltip{-webkit-box-shadow:none;box-shadow:none;-webkit-filter:var(--stzh-tooltip-drop-shadow);filter:var(--stzh-tooltip-drop-shadow)}}.stzh-tooltip__content-slot.sc-stzh-tooltip{padding:var(--padding)}.stzh-tooltip__close.sc-stzh-tooltip{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background-color:transparent;padding:0;position:absolute;top:0;right:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;padding:var(--stzh-space-xxsmall);padding-bottom:var(--stzh-space-xxxsmall);color:var(--stzh-base-lead-color);border-radius:var(--stzh-button-border-radius)}.stzh-tooltip__icon.sc-stzh-tooltip{--size:var(--stzh-icon-size-xxsmall)}.stzh-tooltip__vhidden.sc-stzh-tooltip{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}";export{x as stzh_tooltip}
|
|
1
|
+
import{r as t,c as s,h as o,a as i,g as h}from"./p-65282c9d.js";import{c as e,a,A as r,o as l,f as n,s as p,b as c}from"./p-cf6003d6.js";import{c as d}from"./p-40a19ce6.js";import{f as z}from"./p-25a09313.js";import{w as m}from"./p-df2bb358.js";import{s as b,a as u}from"./p-2a5855f8.js";const f=[{opacity:"0"},{opacity:"1"}],w={duration:100,easing:"linear"},g=[{opacity:"1"},{opacity:"0"}],_={duration:200,easing:"linear"};let v=0;const x=class{constructor(o){t(this,o),this.stzhOpen=s(this,"stzhOpen",7),this.stzhOpened=s(this,"stzhOpened",7),this.stzhClose=s(this,"stzhClose",7),this.stzhClosed=s(this,"stzhClosed",7),this.open=!1,this.label="",this.content="",this.placement="bottom",this.skidding=0,this.distance=16,this.interactive=!1,this.trigger="hover focus",this.toggledByMethod=!1,this.isHovering=!1,this.onEscKey=t=>{27===t.keyCode&&this.hide()},this.computePosition=async()=>{if(!this.open)return;const{x:t=0,y:s=0,strategy:o="absolute",placement:i,middlewareData:h}=await e(this.triggerElement.firstElementChild,this.contentElement,{placement:this.placement,middleware:[l({mainAxis:this.distance,crossAxis:this.skidding}),n({padding:5}),p({padding:5}),c({element:this.arrowElement,padding:5})]});this.middlewareData=h,this.computedPlacement=i,Object.assign(this.contentElement.style,{position:o,left:`${t}px`,top:`${s}px`}),Object.assign(this.arrowElement.style,{left:null!=t?`${h.arrow.x}px`:"",top:null!=s?`${h.arrow.y}px`:""})},this.onClickTrigger=()=>{this.hasTrigger("click")&&this.toggle()},this.onMouseEnterTrigger=()=>{this.hasTrigger("hover")&&(this.isHovering=!0,this.show())},this.onMouseLeaveTrigger=()=>{this.hasTrigger("hover")&&(this.isHovering=!1,document.addEventListener("mousemove",this.onMouseMoveDocument))},this.onFocusTrigger=()=>{this.hasTrigger("focus")&&this.show()},this.onBlurTrigger=()=>{this.hasTrigger("focus")&&this.hide()},this.onMouseMoveDocument=t=>{const{clientX:s,clientY:o}=t;if(!this.computedPlacement)return!0;const i=this.computedPlacement.split("-")[0],h=this.middlewareData.offset,e=this.contentElement.getBoundingClientRect();if(!h)return!0;(e.top-o>("bottom"===i?h.y:0)||o-e.bottom>("top"===i?h.y:0)||e.left-s>("right"===i?h.x:0)||s-e.right>("left"===i?h.x:0))&&(document.removeEventListener("mousemove",this.onMouseMoveDocument),this.isHovering||this.hide())}}async show(){if(!this.open)return this.toggledByMethod=!0,this.open=!0,m(this.element,"stzhOpened")}async hide(){if(this.open)return this.toggledByMethod=!0,this.open=!1,m(this.element,"stzhClosed")}async toggle(){return this.open?await this.hide():await this.show()}async update(){return await this.computePosition()}async openWatcher(t){t?(this.toggledByMethod&&this.stzhOpen.emit({component:"stzh-tooltip"}),await b(this.contentElement),this.contentElement.style.willChange="transform, opacity, position, top, left, bottom, right",this.contentElement.hidden=!1,await u(this.contentElement,f,w),this.toggledByMethod&&this.stzhOpened.emit({component:"stzh-tooltip"})):(this.toggledByMethod&&this.stzhClose.emit({component:"stzh-tooltip"}),await b(this.contentElement),await u(this.contentElement,g,_),this.contentElement.hidden=!0,this.contentElement.style.willChange="auto",this.toggledByMethod&&this.stzhClosed.emit({component:"stzh-tooltip"})),this.toggledByMethod=!1}triggerWatcher(t){this._trigger=t.split(" ")}handleDocumentClick(t){if(!this.open)return;const s=t.target!==this.contentElement&&!1===this.contentElement.contains(t.target),o=t.target===this.triggerElement||this.triggerElement.contains(t.target);s&&!o&&this.hasTrigger("click")&&this.hide()}hasTrigger(t){return this._trigger.indexOf(t)>-1}async componentWillLoad(){this.labelId=`stzh-tooltip-label-${v}`,v++,this.triggerWatcher(this.trigger),this.localization||(this.localization=await z(this.element,"tooltip"))}componentDidRender(){this.computePosition(),this.interactive&&this.triggerElement.firstElementChild.setAttribute("aria-expanded",this.open?"true":"false"),this.trap&&(this.open?this.trap.activate():this.trap.deactivate())}componentDidUpdate(){this.trap&&this.trap.updateContainerElements(this.contentElement)}componentDidLoad(){this.autoUpdateCleanup=a(this.element,this.contentElement,this.computePosition),this.interactive&&(this.trap=d(this.contentElement,{fallbackFocus:this.contentElement,clickOutsideDeactivates:!0,returnFocusOnDeactivate:!0}),this.open&&this.trap.activate()),this.contentElement.hidden=!this.open}connectedCallback(){var t;let s=null===(t=this.triggerElement)||void 0===t?void 0:t.firstElementChild;s||(s=Array.from(this.element.children).find((t=>!t.hasAttribute("slot")))),s&&(s.addEventListener("click",this.onClickTrigger),s.addEventListener("mouseenter",this.onMouseEnterTrigger),s.addEventListener("mouseleave",this.onMouseLeaveTrigger),s.addEventListener("focusin",this.onFocusTrigger),s.addEventListener("focusout",this.onBlurTrigger))}disconnectedCallback(){this.autoUpdateCleanup&&this.autoUpdateCleanup(),this.triggerElement.firstElementChild.removeEventListener("click",this.onClickTrigger),this.triggerElement.firstElementChild.removeEventListener("mouseenter",this.onMouseEnterTrigger),this.triggerElement.firstElementChild.removeEventListener("mouseleave",this.onMouseLeaveTrigger),this.triggerElement.firstElementChild.removeEventListener("focusin",this.onFocusTrigger),this.triggerElement.firstElementChild.removeEventListener("focusout",this.onBlurTrigger)}render(){return o(i,null,o("div",{class:{"stzh-tooltip":!0,"stzh-tooltip--open":this.open,[`stzh-tooltip--placement-${this.computedPlacement}`]:!!this.computedPlacement}},o("div",{class:"stzh-tooltip__trigger",ref:t=>this.triggerElement=t},o("slot",null)),o("div",{class:"stzh-tooltip__content",ref:t=>this.contentElement=t,tabindex:"-1","aria-labelledby":this.label?this.labelId:null,"aria-hidden":this.open?"false":"true",onKeyDown:this.onEscKey,onMouseEnter:this.onMouseEnterTrigger,onMouseLeave:this.onMouseLeaveTrigger,onFocusin:this.onFocusTrigger,onFocusout:this.onBlurTrigger},o("div",{class:"stzh-tooltip__arrow",ref:t=>this.arrowElement=t,innerHTML:r}),this.label&&o("h2",{id:this.labelId,class:"stzh-tooltip__vhidden"},this.label),o("div",{class:"stzh-tooltip__content-slot"},this.content?this.content:o("slot",{name:"content"})),this.hasTrigger("click")&&o("button",{class:"stzh-tooltip__close",onClick:()=>this.hide(),type:"button"},o("stzh-icon",{name:"close",class:"stzh-tooltip__icon"}),o("span",{class:"stzh-tooltip__vhidden"},this.localization.close)))))}get element(){return h(this)}static get watchers(){return{open:["openWatcher"],trigger:["triggerWatcher"]}}};x.style=".sc-stzh-tooltip-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-tooltip-h{display:none}.sc-stzh-tooltip-h *.sc-stzh-tooltip,.sc-stzh-tooltip-h *.sc-stzh-tooltip::before,.sc-stzh-tooltip-h *.sc-stzh-tooltip::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-tooltip-h{--width:var(--stzh-tooltip-width);--min-width:var(--stzh-tooltip-min-width);--max-width:var(--stzh-tooltip-max-width);--padding:var(--stzh-tooltip-padding);--border-radius:var(--stzh-tooltip-border-radius)}.stzh-tooltip__arrow.sc-stzh-tooltip{position:absolute;display:-ms-flexbox;display:flex;color:var(--stzh-color-white)}.stzh-tooltip--placement-bottom.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-bottom-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-bottom-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{top:0;-webkit-transform:translateY(-0.5rem);transform:translateY(-0.5rem)}.stzh-tooltip--placement-top.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-top-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-top-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{bottom:0;-webkit-transform:translateY(0.5rem) rotate(180deg);transform:translateY(0.5rem) rotate(180deg)}.stzh-tooltip--placement-left.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-left-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-left-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{right:0;-webkit-transform:translateX(0.75rem) rotate(90deg);transform:translateX(0.75rem) rotate(90deg)}.stzh-tooltip--placement-right.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-right-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-right-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{left:0;-webkit-transform:translateX(-0.75rem) rotate(-90deg);transform:translateX(-0.75rem) rotate(-90deg)}.stzh-tooltip__content.sc-stzh-tooltip{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);position:absolute;z-index:var(--stzh-z-index-popover);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border-radius:var(--border-radius);background-color:var(--stzh-color-white);width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}@supports ((-webkit-filter: var(--stzh-tooltip-drop-shadow)) or (filter: var(--stzh-tooltip-drop-shadow))){.stzh-tooltip__content.sc-stzh-tooltip{-webkit-box-shadow:none;box-shadow:none;-webkit-filter:var(--stzh-tooltip-drop-shadow);filter:var(--stzh-tooltip-drop-shadow)}}.stzh-tooltip__content-slot.sc-stzh-tooltip{padding:var(--padding)}.stzh-tooltip__close.sc-stzh-tooltip{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background-color:transparent;padding:0;position:absolute;top:0;right:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;padding:var(--stzh-space-xxsmall);padding-bottom:var(--stzh-space-xxxsmall);color:var(--stzh-base-lead-color);border-radius:var(--stzh-button-border-radius)}.stzh-tooltip__icon.sc-stzh-tooltip{--size:var(--stzh-icon-size-xxsmall)}.stzh-tooltip__vhidden.sc-stzh-tooltip{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}";export{x as stzh_tooltip}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as registerInstance,h,a as Host,g as getElement}from"./p-65282c9d.js";import{c as createCommonjsModule,a as commonjsGlobal}from"./p-3e8ff66b.js";import{f as fetchTranslations}from"./p-
|
|
1
|
+
import{r as registerInstance,h,a as Host,g as getElement}from"./p-65282c9d.js";import{c as createCommonjsModule,a as commonjsGlobal}from"./p-3e8ff66b.js";import{f as fetchTranslations}from"./p-25a09313.js";var flexsearch_bundle=createCommonjsModule((function(module){
|
|
2
2
|
/**!
|
|
3
3
|
* FlexSearch.js v0.7.21 (Bundle)
|
|
4
4
|
* Copyright 2018-2021 Nextapps GmbH
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,F as i,a as e,g as r}from"./p-65282c9d.js";import{a as c}from"./p-53934cfd.js";import{f as a}from"./p-1a40a6e4.js";import{c as z}from"./p-649621fc.js";const h=class{constructor(s){t(this,s),this.api="https://fpbe.zvv.ch/restproxy/himsearch?format=json&accessId=unic&channels=ticker&additionalfields=tickers:VBZ&orderBy=LMOD_DESC&lang={lang}",this.data="",this.moreInfoLink="https://zvv.ch/zvv/{lang}/fahrplan/vl.html?himIds={id}",this.globalDisturbances=[],this.lines=[],this.counter={__global__:0,0:0,1:0,2:0,4:0,5:0}}localizationWatcher(){this.collator=new Intl.Collator(this.localization.$locale,{numeric:!0})}async apiWatcher(t){if(!t)return;let s=this.api.replace(/\{lang\}/,this.localization.$locale);s=s+(s.includes("?")?"&":"?")+Date.now();const{data:i}=await c.get(s);this.data=i}async dataWatcher(t){var s,i;this._data="string"==typeof t?JSON.parse(t):t;const e={};null===(i=null===(s=this._data)||void 0===s?void 0:s.Message)||void 0===i||i.forEach((t=>{const s=t.channel.filter((t=>"ticker"===t.name&&t.url)).map((t=>t.url)).reduce(((t,s)=>t.concat(s)),[]).find((t=>-1!==t.url.indexOf("stadt-zuerich.ch/vbz")));"GLOBAL"===t.baseType?(this.counter.__global__++,this.globalDisturbances.push({id:t.id,head:t.head,category:t.category,baseType:t.baseType,startDate:new Date(`${t.sDate}T${t.sTime}+02:00`),endDate:new Date(`${t.eDate}T${t.eTime}+02:00`),altStart:t.altStart,altEnd:t.altEnd,infoUrl:s})):this.counter[t.category]++,t.affectedProduct&&"0"!==t.category&&"GLOBAL"!==t.baseType&&t.affectedProduct.forEach((i=>{void 0===e[i.lineId]&&(e[i.lineId]={line:i.line,name:i.name,category:i.cls,disturbances:[],alert:!1}),"2"===t.category&&(e[i.lineId].alert=!0),e[i.lineId].disturbances.push({id:t.id,head:t.head,category:t.category,baseType:t.baseType,startDate:new Date(`${t.sDate}T${t.sTime}+02:00`),endDate:new Date(`${t.eDate}T${t.eTime}+02:00`),altStart:t.altStart,altEnd:t.altEnd,infoUrl:s})}))})),this.lines=Object.keys(e).map((t=>e[t])),this.lines.sort(((t,s)=>this.collator.compare(t.line,s.line)))}async componentWillLoad(){this.localization||(this.localization=await a(this.element,"vbz-ticker"),this.localizationWatcher()),this.dateAdapter||(this.dateAdapter=z(this.localization.$formats,this.localization.$globals)),this.data?await this.dataWatcher(this.data):await this.apiWatcher(this.api)}renderDisturbance(t){return s("div",{class:{"stzh-vbz-ticker__disturbance":!0,[`stzh-vbz-ticker__disturbance--type${t.category}`]:!!t.category}},s("stzh-icon","2"===t.category||"GLOBAL"===t.baseType?{name:"warning-big",class:"stzh-vbz-ticker__disturbance-icon"}:{name:"construction",class:"stzh-vbz-ticker__disturbance-icon"}),s("div",{class:"stzh-vbz-ticker__disturbance-text"},s("div",{class:"stzh-vbz-ticker__disturbance-title"},t.head),s("div",{class:"stzh-vbz-ticker__disturbance-date"},t.altStart||this.dateAdapter.format(t.startDate),s("span",{innerHTML:this.localization.$formats.dateRange}),t.altEnd||this.dateAdapter.format(t.endDate)),s("stzh-link",t.infoUrl?{class:"stzh-vbz-ticker__disturbance-link",size:"small",href:t.infoUrl.url}:{class:"stzh-vbz-ticker__disturbance-link",size:"small",target:"_blank",icon:"external-link",href:this.moreInfoLink.replace(/\{lang\}/,this.localization.$locale).replace(/\{id\}/,t.id)},this.localization.moreInfo)))}render(){return s(e,null,s("div",{class:{"stzh-vbz-ticker":!0}},s("div",{class:"stzh-vbz-ticker__text"},s("div",{class:"stzh-vbz-ticker__title"},s("div",{class:"stzh-vbz-ticker__title-parts"},0===this.lines.length&&0===this.counter.__global__&&s("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--no-disturbances"},s("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"checkmark-circle"}),this.localization.noDisturbances),this.counter.__global__>0&&s("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--major-events"},s("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"important-warning"}),this.localization.majorEventTitle),this.counter[2]>0&&s("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--disturbances"},s("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"warning"}),this.localization.disturbanceTitle),(this.counter[1]>0||this.counter[4]>0||this.counter[5]>0)&&s("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--others"},s("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"construction"}),this.localization.othersTitle))),(this.lines.length>0||this.counter.__global__>0)&&s(i,null,s("div",{class:"stzh-vbz-ticker__description"},this.counter.__global__>0?this.localization.globalDisturbance:this.localization.affectedLines),s("div",{class:"stzh-vbz-ticker__chips",role:"list"},this.counter.__global__>0&&s("div",{class:"stzh-vbz-ticker__chip",role:"listitem"},s("stzh-tooltip",{class:"stzh-vbz-ticker__tooltip"},s("stzh-vbz-linechip",{global:!0}),s("div",{class:"stzh-vbz-ticker__tooltip-content",slot:"content"},this.globalDisturbances.map((t=>this.renderDisturbance(t)))))),this.lines.map((t=>s("div",{class:"stzh-vbz-ticker__chip",role:"listitem"},s("stzh-tooltip",{class:"stzh-vbz-ticker__tooltip"},s("stzh-vbz-linechip",{line:t.line,alert:t.alert}),s("div",{class:"stzh-vbz-ticker__tooltip-content",slot:"content"},t.disturbances.map((t=>this.renderDisturbance(t))))))))))),s("div",{class:"stzh-vbz-ticker__link"},s("slot",{name:"link"}))))}get element(){return r(this)}static get watchers(){return{localization:["localizationWatcher"],api:["apiWatcher"],data:["dataWatcher"]}}};h.style=".sc-stzh-vbz-ticker-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-vbz-ticker-h{display:none}.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker,.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker::before,.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-vbz-ticker.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}@media screen and (min-width: 1024px){.stzh-vbz-ticker.sc-stzh-vbz-ticker{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start}}.stzh-vbz-ticker__icon.sc-stzh-vbz-ticker{--size:var(--stzh-icon-size-small);margin-right:var(--stzh-space-xsmall)}.stzh-vbz-ticker__title.sc-stzh-vbz-ticker{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:normal;font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}@media screen and (min-width: 1024px){.stzh-vbz-ticker__title.sc-stzh-vbz-ticker{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-vbz-ticker__title-parts.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:calc(var(--stzh-space-xxxsmall) / -1) 0}.stzh-vbz-ticker__title-part.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;white-space:nowrap;margin:var(--stzh-space-xxxsmall) 0}.stzh-vbz-ticker__title-part.sc-stzh-vbz-ticker:not(:last-child){margin-right:var(--stzh-space-large)}.stzh-vbz-ticker__title-part--no-disturbances.sc-stzh-vbz-ticker{color:var(--stzh-color-truegreen)}.stzh-vbz-ticker__title-part--major-events.sc-stzh-vbz-ticker{color:var(--stzh-color-coral)}.stzh-vbz-ticker__title-part--disturbances.sc-stzh-vbz-ticker{color:var(--stzh-color-error)}.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);margin-top:var(--stzh-space-xsmall)}@media screen and (min-width: 600px){.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-large)}}.stzh-vbz-ticker__link.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-vbz-ticker__link.sc-stzh-vbz-ticker{position:absolute;top:0;right:0;margin-top:0}}.stzh-vbz-ticker__chips.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.stzh-vbz-ticker__chips.sc-stzh-vbz-ticker:not(:empty){margin:calc(var(--stzh-space-xxsmall) * -1);margin-top:calc(var(--stzh-space-small) - var(--stzh-space-xxsmall))}.stzh-vbz-ticker__chip.sc-stzh-vbz-ticker{margin:var(--stzh-space-xxsmall)}.stzh-vbz-ticker__tooltip.sc-stzh-vbz-ticker{--width:20.875rem}.stzh-vbz-ticker__disturbance.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-vbz-ticker__disturbance.sc-stzh-vbz-ticker:not(:first-child){margin-top:var(--stzh-space-small)}.stzh-vbz-ticker__disturbance--type0.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type0.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-icon.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type2.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type2.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-icon.sc-stzh-vbz-ticker{color:var(--stzh-color-error)}.stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:normal;display:-ms-flexbox;display:flex}.stzh-vbz-ticker__disturbance--type0.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type2.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-vbz-ticker__disturbance-icon.sc-stzh-vbz-ticker{--size:var(--stzh-icon-size-xsmall);margin-top:var(--stzh-space-xxxsmall);margin-right:var(--stzh-space-xsmall)}.stzh-vbz-ticker__disturbance-link.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-xsmall)}";export{h as stzh_vbz_ticker}
|
|
1
|
+
import{r as t,h as s,F as i,a as e,g as r}from"./p-65282c9d.js";import{a as c}from"./p-53934cfd.js";import{f as a}from"./p-25a09313.js";import{c as z}from"./p-c8bcceac.js";const h=class{constructor(s){t(this,s),this.api="https://fpbe.zvv.ch/restproxy/himsearch?format=json&accessId=unic&channels=ticker&additionalfields=tickers:VBZ&orderBy=LMOD_DESC&lang={lang}",this.data="",this.moreInfoLink="https://zvv.ch/zvv/{lang}/fahrplan/vl.html?himIds={id}",this.globalDisturbances=[],this.lines=[],this.counter={__global__:0,0:0,1:0,2:0,4:0,5:0}}localizationWatcher(){this.collator=new Intl.Collator(this.localization.$locale,{numeric:!0})}async apiWatcher(t){if(!t)return;let s=this.api.replace(/\{lang\}/,this.localization.$locale);s=s+(s.includes("?")?"&":"?")+Date.now();const{data:i}=await c.get(s);this.data=i}async dataWatcher(t){var s,i;this._data="string"==typeof t?JSON.parse(t):t;const e={};null===(i=null===(s=this._data)||void 0===s?void 0:s.Message)||void 0===i||i.forEach((t=>{const s=t.channel.filter((t=>"ticker"===t.name&&t.url)).map((t=>t.url)).reduce(((t,s)=>t.concat(s)),[]).find((t=>-1!==t.url.indexOf("stadt-zuerich.ch/vbz")));"GLOBAL"===t.baseType?(this.counter.__global__++,this.globalDisturbances.push({id:t.id,head:t.head,category:t.category,baseType:t.baseType,startDate:new Date(`${t.sDate}T${t.sTime}+02:00`),endDate:new Date(`${t.eDate}T${t.eTime}+02:00`),altStart:t.altStart,altEnd:t.altEnd,infoUrl:s})):this.counter[t.category]++,t.affectedProduct&&"0"!==t.category&&"GLOBAL"!==t.baseType&&t.affectedProduct.forEach((i=>{void 0===e[i.lineId]&&(e[i.lineId]={line:i.line,name:i.name,category:i.cls,disturbances:[],alert:!1}),"2"===t.category&&(e[i.lineId].alert=!0),e[i.lineId].disturbances.push({id:t.id,head:t.head,category:t.category,baseType:t.baseType,startDate:new Date(`${t.sDate}T${t.sTime}+02:00`),endDate:new Date(`${t.eDate}T${t.eTime}+02:00`),altStart:t.altStart,altEnd:t.altEnd,infoUrl:s})}))})),this.lines=Object.keys(e).map((t=>e[t])),this.lines.sort(((t,s)=>this.collator.compare(t.line,s.line)))}async componentWillLoad(){this.localization||(this.localization=await a(this.element,"vbz-ticker"),this.localizationWatcher()),this.dateAdapter||(this.dateAdapter=z(this.localization.$formats,this.localization.$globals)),this.data?await this.dataWatcher(this.data):await this.apiWatcher(this.api)}renderDisturbance(t){return s("div",{class:{"stzh-vbz-ticker__disturbance":!0,[`stzh-vbz-ticker__disturbance--type${t.category}`]:!!t.category}},s("stzh-icon","2"===t.category||"GLOBAL"===t.baseType?{name:"warning-big",class:"stzh-vbz-ticker__disturbance-icon"}:{name:"construction",class:"stzh-vbz-ticker__disturbance-icon"}),s("div",{class:"stzh-vbz-ticker__disturbance-text"},s("div",{class:"stzh-vbz-ticker__disturbance-title"},t.head),s("div",{class:"stzh-vbz-ticker__disturbance-date"},t.altStart||this.dateAdapter.format(t.startDate),s("span",{innerHTML:this.localization.$formats.dateRange}),t.altEnd||this.dateAdapter.format(t.endDate)),s("stzh-link",t.infoUrl?{class:"stzh-vbz-ticker__disturbance-link",size:"small",href:t.infoUrl.url}:{class:"stzh-vbz-ticker__disturbance-link",size:"small",target:"_blank",icon:"external-link",href:this.moreInfoLink.replace(/\{lang\}/,this.localization.$locale).replace(/\{id\}/,t.id)},this.localization.moreInfo)))}render(){return s(e,null,s("div",{class:{"stzh-vbz-ticker":!0}},s("div",{class:"stzh-vbz-ticker__text"},s("div",{class:"stzh-vbz-ticker__title"},s("div",{class:"stzh-vbz-ticker__title-parts"},0===this.lines.length&&0===this.counter.__global__&&s("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--no-disturbances"},s("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"checkmark-circle"}),this.localization.noDisturbances),this.counter.__global__>0&&s("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--major-events"},s("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"important-warning"}),this.localization.majorEventTitle),this.counter[2]>0&&s("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--disturbances"},s("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"warning"}),this.localization.disturbanceTitle),(this.counter[1]>0||this.counter[4]>0||this.counter[5]>0)&&s("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--others"},s("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"construction"}),this.localization.othersTitle))),(this.lines.length>0||this.counter.__global__>0)&&s(i,null,s("div",{class:"stzh-vbz-ticker__description"},this.counter.__global__>0?this.localization.globalDisturbance:this.localization.affectedLines),s("div",{class:"stzh-vbz-ticker__chips",role:"list"},this.counter.__global__>0&&s("div",{class:"stzh-vbz-ticker__chip",role:"listitem"},s("stzh-tooltip",{class:"stzh-vbz-ticker__tooltip"},s("stzh-vbz-linechip",{global:!0}),s("div",{class:"stzh-vbz-ticker__tooltip-content",slot:"content"},this.globalDisturbances.map((t=>this.renderDisturbance(t)))))),this.lines.map((t=>s("div",{class:"stzh-vbz-ticker__chip",role:"listitem"},s("stzh-tooltip",{class:"stzh-vbz-ticker__tooltip"},s("stzh-vbz-linechip",{line:t.line,alert:t.alert}),s("div",{class:"stzh-vbz-ticker__tooltip-content",slot:"content"},t.disturbances.map((t=>this.renderDisturbance(t))))))))))),s("div",{class:"stzh-vbz-ticker__link"},s("slot",{name:"link"}))))}get element(){return r(this)}static get watchers(){return{localization:["localizationWatcher"],api:["apiWatcher"],data:["dataWatcher"]}}};h.style=".sc-stzh-vbz-ticker-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-vbz-ticker-h{display:none}.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker,.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker::before,.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-vbz-ticker.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}@media screen and (min-width: 1024px){.stzh-vbz-ticker.sc-stzh-vbz-ticker{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start}}.stzh-vbz-ticker__icon.sc-stzh-vbz-ticker{--size:var(--stzh-icon-size-small);margin-right:var(--stzh-space-xsmall)}.stzh-vbz-ticker__title.sc-stzh-vbz-ticker{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:normal;font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}@media screen and (min-width: 1024px){.stzh-vbz-ticker__title.sc-stzh-vbz-ticker{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-vbz-ticker__title-parts.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:calc(var(--stzh-space-xxxsmall) / -1) 0}.stzh-vbz-ticker__title-part.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;white-space:nowrap;margin:var(--stzh-space-xxxsmall) 0}.stzh-vbz-ticker__title-part.sc-stzh-vbz-ticker:not(:last-child){margin-right:var(--stzh-space-large)}.stzh-vbz-ticker__title-part--no-disturbances.sc-stzh-vbz-ticker{color:var(--stzh-color-truegreen)}.stzh-vbz-ticker__title-part--major-events.sc-stzh-vbz-ticker{color:var(--stzh-color-coral)}.stzh-vbz-ticker__title-part--disturbances.sc-stzh-vbz-ticker{color:var(--stzh-color-error)}.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);margin-top:var(--stzh-space-xsmall)}@media screen and (min-width: 600px){.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-large)}}.stzh-vbz-ticker__link.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-vbz-ticker__link.sc-stzh-vbz-ticker{position:absolute;top:0;right:0;margin-top:0}}.stzh-vbz-ticker__chips.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.stzh-vbz-ticker__chips.sc-stzh-vbz-ticker:not(:empty){margin:calc(var(--stzh-space-xxsmall) * -1);margin-top:calc(var(--stzh-space-small) - var(--stzh-space-xxsmall))}.stzh-vbz-ticker__chip.sc-stzh-vbz-ticker{margin:var(--stzh-space-xxsmall)}.stzh-vbz-ticker__tooltip.sc-stzh-vbz-ticker{--width:20.875rem}.stzh-vbz-ticker__disturbance.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-vbz-ticker__disturbance.sc-stzh-vbz-ticker:not(:first-child){margin-top:var(--stzh-space-small)}.stzh-vbz-ticker__disturbance--type0.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type0.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-icon.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type2.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type2.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-icon.sc-stzh-vbz-ticker{color:var(--stzh-color-error)}.stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:normal;display:-ms-flexbox;display:flex}.stzh-vbz-ticker__disturbance--type0.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type2.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-vbz-ticker__disturbance-icon.sc-stzh-vbz-ticker{--size:var(--stzh-icon-size-xsmall);margin-top:var(--stzh-space-xxxsmall);margin-right:var(--stzh-space-xsmall)}.stzh-vbz-ticker__disturbance-link.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-xsmall)}";export{h as stzh_vbz_ticker}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,s){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function c(t){try{l(s.next(t))}catch(e){a(e)}}function n(t){try{l(s["throw"](t))}catch(e){a(e)}}function l(t){t.done?i(t.value):r(t.value).then(c,n)}l((s=s.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,r,a,c;return c={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function n(t){return function(e){return l([t,e])}}function l(c){if(s)throw new TypeError("Generator is already executing.");while(i)try{if(s=1,r&&(a=c[0]&2?r["return"]:c[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;if(r=0,a)c=[c[0]&2,a.value];switch(c[0]){case 0:case 1:a=c;break;case 4:i.label++;return{value:c[1],done:false};case 5:i.label++;r=c[1];c=[0];continue;case 7:c=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){i.label=c[1];break}if(c[0]===6&&i.label<a[1]){i.label=a[1];a=c;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(c);break}if(a[2])i.ops.pop();i.trys.pop();continue}c=e.call(t,i)}catch(n){c=[6,n];r=0}finally{s=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-30b347ee.system.js","./p-ded16c0e.system.js","./p-582cf0f1.system.js","./p-99195f5a.system.js"],(function(t){"use strict";var e,i,s,r,a,c,n,l;return{setters:[function(t){e=t.r;i=t.h;s=t.F;r=t.a;a=t.g},function(t){c=t.a},function(t){n=t.f},function(t){l=t.c}],execute:function(){var o=".sc-stzh-vbz-ticker-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-vbz-ticker-h{display:none}.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker,.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker::before,.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-vbz-ticker.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}@media screen and (min-width: 1024px){.stzh-vbz-ticker.sc-stzh-vbz-ticker{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start}}.stzh-vbz-ticker__icon.sc-stzh-vbz-ticker{--size:var(--stzh-icon-size-small);margin-right:var(--stzh-space-xsmall)}.stzh-vbz-ticker__title.sc-stzh-vbz-ticker{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:normal;font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}@media screen and (min-width: 1024px){.stzh-vbz-ticker__title.sc-stzh-vbz-ticker{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-vbz-ticker__title-parts.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:calc(var(--stzh-space-xxxsmall) / -1) 0}.stzh-vbz-ticker__title-part.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;white-space:nowrap;margin:var(--stzh-space-xxxsmall) 0}.stzh-vbz-ticker__title-part.sc-stzh-vbz-ticker:not(:last-child){margin-right:var(--stzh-space-large)}.stzh-vbz-ticker__title-part--no-disturbances.sc-stzh-vbz-ticker{color:var(--stzh-color-truegreen)}.stzh-vbz-ticker__title-part--major-events.sc-stzh-vbz-ticker{color:var(--stzh-color-coral)}.stzh-vbz-ticker__title-part--disturbances.sc-stzh-vbz-ticker{color:var(--stzh-color-error)}.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);margin-top:var(--stzh-space-xsmall)}@media screen and (min-width: 600px){.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-large)}}.stzh-vbz-ticker__link.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-vbz-ticker__link.sc-stzh-vbz-ticker{position:absolute;top:0;right:0;margin-top:0}}.stzh-vbz-ticker__chips.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.stzh-vbz-ticker__chips.sc-stzh-vbz-ticker:not(:empty){margin:calc(var(--stzh-space-xxsmall) * -1);margin-top:calc(var(--stzh-space-small) - var(--stzh-space-xxsmall))}.stzh-vbz-ticker__chip.sc-stzh-vbz-ticker{margin:var(--stzh-space-xxsmall)}.stzh-vbz-ticker__tooltip.sc-stzh-vbz-ticker{--width:20.875rem}.stzh-vbz-ticker__disturbance.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-vbz-ticker__disturbance.sc-stzh-vbz-ticker:not(:first-child){margin-top:var(--stzh-space-small)}.stzh-vbz-ticker__disturbance--type0.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type0.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-icon.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type2.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type2.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-icon.sc-stzh-vbz-ticker{color:var(--stzh-color-error)}.stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:normal;display:-ms-flexbox;display:flex}.stzh-vbz-ticker__disturbance--type0.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type2.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-vbz-ticker__disturbance-icon.sc-stzh-vbz-ticker{--size:var(--stzh-icon-size-xsmall);margin-top:var(--stzh-space-xxxsmall);margin-right:var(--stzh-space-xsmall)}.stzh-vbz-ticker__disturbance-link.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-xsmall)}";var h="ticker";var z="stadt-zuerich.ch/vbz";var v="GLOBAL";var b="__global__";var u="0";var d="1";var f="2";var p="4";var _="5";var m=t("stzh_vbz_ticker",function(){function t(t){var i;e(this,t);this.api="https://fpbe.zvv.ch/restproxy/himsearch?format=json&accessId=unic&channels=ticker&additionalfields=tickers:VBZ&orderBy=LMOD_DESC&lang={lang}";this.data="";this.moreInfoLink="https://zvv.ch/zvv/{lang}/fahrplan/vl.html?himIds={id}";this.globalDisturbances=[];this.lines=[];this.counter=(i={},i["".concat(b)]=0,i["".concat(u)]=0,i["".concat(d)]=0,i["".concat(f)]=0,i["".concat(p)]=0,i["".concat(_)]=0,i)}t.prototype.localizationWatcher=function(){this.collator=new Intl.Collator(this.localization.$locale,{numeric:true})};t.prototype.apiWatcher=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(s){switch(s.label){case 0:if(!t){return[2]}e=this.api.replace(/\{lang\}/,this.localization.$locale);e=e+(e.includes("?")?"&":"?")+Date.now();return[4,c.get(e)];case 1:i=s.sent().data;this.data=i;return[2]}}))}))};t.prototype.dataWatcher=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,s;var r=this;return __generator(this,(function(a){if(typeof t==="string"){this._data=JSON.parse(t)}else{this._data=t}s={};(i=(e=this._data)===null||e===void 0?void 0:e.Message)===null||i===void 0?void 0:i.forEach((function(t){var e=t.channel.filter((function(t){return t.name===h&&t.url})).map((function(t){return t.url})).reduce((function(t,e){return t.concat(e)}),[]);var i=e.find((function(t){return t.url.indexOf(z)!==-1}));if(t.baseType===v){r.counter[b]++;r.globalDisturbances.push({id:t.id,head:t.head,category:t.category,baseType:t.baseType,startDate:new Date("".concat(t.sDate,"T").concat(t.sTime,"+02:00")),endDate:new Date("".concat(t.eDate,"T").concat(t.eTime,"+02:00")),altStart:t.altStart,altEnd:t.altEnd,infoUrl:i})}else{r.counter[t.category]++}if(t.affectedProduct&&t.category!==u&&t.baseType!==v){t.affectedProduct.forEach((function(e){if(typeof s[e.lineId]==="undefined"){s[e.lineId]={line:e.line,name:e.name,category:e.cls,disturbances:[],alert:false}}if(t.category===f){s[e.lineId].alert=true}s[e.lineId].disturbances.push({id:t.id,head:t.head,category:t.category,baseType:t.baseType,startDate:new Date("".concat(t.sDate,"T").concat(t.sTime,"+02:00")),endDate:new Date("".concat(t.eDate,"T").concat(t.eTime,"+02:00")),altStart:t.altStart,altEnd:t.altEnd,infoUrl:i})}))}}));this.lines=Object.keys(s).map((function(t){return s[t]}));this.lines.sort((function(t,e){return r.collator.compare(t.line,e.line)}));return[2]}))}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,n(this.element,"vbz-ticker")];case 1:t.localization=e.sent();this.localizationWatcher();e.label=2;case 2:if(!this.dateAdapter){this.dateAdapter=l(this.localization.$formats,this.localization.$globals)}if(!this.data)return[3,4];return[4,this.dataWatcher(this.data)];case 3:e.sent();return[3,6];case 4:return[4,this.apiWatcher(this.api)];case 5:e.sent();e.label=6;case 6:return[2]}}))}))};t.prototype.renderDisturbance=function(t){var e;return i("div",{class:(e={"stzh-vbz-ticker__disturbance":true},e["stzh-vbz-ticker__disturbance--type".concat(t.category)]=!!t.category,e)},t.category===f||t.baseType===v?i("stzh-icon",{name:"warning-big",class:"stzh-vbz-ticker__disturbance-icon"}):i("stzh-icon",{name:"construction",class:"stzh-vbz-ticker__disturbance-icon"}),i("div",{class:"stzh-vbz-ticker__disturbance-text"},i("div",{class:"stzh-vbz-ticker__disturbance-title"},t.head),i("div",{class:"stzh-vbz-ticker__disturbance-date"},t.altStart||this.dateAdapter.format(t.startDate),i("span",{innerHTML:this.localization.$formats.dateRange}),t.altEnd||this.dateAdapter.format(t.endDate)),t.infoUrl?i("stzh-link",{class:"stzh-vbz-ticker__disturbance-link",size:"small",href:t.infoUrl.url},this.localization.moreInfo):i("stzh-link",{class:"stzh-vbz-ticker__disturbance-link",size:"small",target:"_blank",icon:"external-link",href:this.moreInfoLink.replace(/\{lang\}/,this.localization.$locale).replace(/\{id\}/,t.id)},this.localization.moreInfo)))};t.prototype.render=function(){var t=this;var e={"stzh-vbz-ticker":true};return i(r,null,i("div",{class:e},i("div",{class:"stzh-vbz-ticker__text"},i("div",{class:"stzh-vbz-ticker__title"},i("div",{class:"stzh-vbz-ticker__title-parts"},this.lines.length===0&&this.counter[b]===0&&i("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--no-disturbances"},i("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"checkmark-circle"}),this.localization.noDisturbances),this.counter[b]>0&&i("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--major-events"},i("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"important-warning"}),this.localization.majorEventTitle),this.counter[f]>0&&i("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--disturbances"},i("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"warning"}),this.localization.disturbanceTitle),(this.counter[d]>0||this.counter[p]>0||this.counter[_]>0)&&i("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--others"},i("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"construction"}),this.localization.othersTitle))),(this.lines.length>0||this.counter[b]>0)&&i(s,null,i("div",{class:"stzh-vbz-ticker__description"},this.counter[b]>0?this.localization.globalDisturbance:this.localization.affectedLines),i("div",{class:"stzh-vbz-ticker__chips",role:"list"},this.counter[b]>0&&i("div",{class:"stzh-vbz-ticker__chip",role:"listitem"},i("stzh-tooltip",{class:"stzh-vbz-ticker__tooltip"},i("stzh-vbz-linechip",{global:true}),i("div",{class:"stzh-vbz-ticker__tooltip-content",slot:"content"},this.globalDisturbances.map((function(e){return t.renderDisturbance(e)}))))),this.lines.map((function(e){return i("div",{class:"stzh-vbz-ticker__chip",role:"listitem"},i("stzh-tooltip",{class:"stzh-vbz-ticker__tooltip"},i("stzh-vbz-linechip",{line:e.line,alert:e.alert}),i("div",{class:"stzh-vbz-ticker__tooltip-content",slot:"content"},e.disturbances.map((function(e){return t.renderDisturbance(e)})))))}))))),i("div",{class:"stzh-vbz-ticker__link"},i("slot",{name:"link"}))))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{localization:["localizationWatcher"],api:["apiWatcher"],data:["dataWatcher"]}},enumerable:false,configurable:true});return t}());m.style=o}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,i,s){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function c(t){try{l(s.next(t))}catch(e){a(e)}}function n(t){try{l(s["throw"](t))}catch(e){a(e)}}function l(t){t.done?i(t.value):r(t.value).then(c,n)}l((s=s.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,r,a,c;return c={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function n(t){return function(e){return l([t,e])}}function l(c){if(s)throw new TypeError("Generator is already executing.");while(i)try{if(s=1,r&&(a=c[0]&2?r["return"]:c[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;if(r=0,a)c=[c[0]&2,a.value];switch(c[0]){case 0:case 1:a=c;break;case 4:i.label++;return{value:c[1],done:false};case 5:i.label++;r=c[1];c=[0];continue;case 7:c=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){i.label=c[1];break}if(c[0]===6&&i.label<a[1]){i.label=a[1];a=c;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(c);break}if(a[2])i.ops.pop();i.trys.pop();continue}c=e.call(t,i)}catch(n){c=[6,n];r=0}finally{s=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-30b347ee.system.js","./p-ded16c0e.system.js","./p-a408bfba.system.js","./p-309d2b66.system.js"],(function(t){"use strict";var e,i,s,r,a,c,n,l;return{setters:[function(t){e=t.r;i=t.h;s=t.F;r=t.a;a=t.g},function(t){c=t.a},function(t){n=t.f},function(t){l=t.c}],execute:function(){var o=".sc-stzh-vbz-ticker-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-vbz-ticker-h{display:none}.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker,.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker::before,.sc-stzh-vbz-ticker-h *.sc-stzh-vbz-ticker::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-vbz-ticker.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}@media screen and (min-width: 1024px){.stzh-vbz-ticker.sc-stzh-vbz-ticker{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start}}.stzh-vbz-ticker__icon.sc-stzh-vbz-ticker{--size:var(--stzh-icon-size-small);margin-right:var(--stzh-space-xsmall)}.stzh-vbz-ticker__title.sc-stzh-vbz-ticker{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:normal;font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}@media screen and (min-width: 1024px){.stzh-vbz-ticker__title.sc-stzh-vbz-ticker{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-vbz-ticker__title-parts.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:calc(var(--stzh-space-xxxsmall) / -1) 0}.stzh-vbz-ticker__title-part.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;white-space:nowrap;margin:var(--stzh-space-xxxsmall) 0}.stzh-vbz-ticker__title-part.sc-stzh-vbz-ticker:not(:last-child){margin-right:var(--stzh-space-large)}.stzh-vbz-ticker__title-part--no-disturbances.sc-stzh-vbz-ticker{color:var(--stzh-color-truegreen)}.stzh-vbz-ticker__title-part--major-events.sc-stzh-vbz-ticker{color:var(--stzh-color-coral)}.stzh-vbz-ticker__title-part--disturbances.sc-stzh-vbz-ticker{color:var(--stzh-color-error)}.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);margin-top:var(--stzh-space-xsmall)}@media screen and (min-width: 600px){.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-vbz-ticker__description.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-large)}}.stzh-vbz-ticker__link.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-vbz-ticker__link.sc-stzh-vbz-ticker{position:absolute;top:0;right:0;margin-top:0}}.stzh-vbz-ticker__chips.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.stzh-vbz-ticker__chips.sc-stzh-vbz-ticker:not(:empty){margin:calc(var(--stzh-space-xxsmall) * -1);margin-top:calc(var(--stzh-space-small) - var(--stzh-space-xxsmall))}.stzh-vbz-ticker__chip.sc-stzh-vbz-ticker{margin:var(--stzh-space-xxsmall)}.stzh-vbz-ticker__tooltip.sc-stzh-vbz-ticker{--width:20.875rem}.stzh-vbz-ticker__disturbance.sc-stzh-vbz-ticker{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-vbz-ticker__disturbance.sc-stzh-vbz-ticker:not(:first-child){margin-top:var(--stzh-space-small)}.stzh-vbz-ticker__disturbance--type0.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type0.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-icon.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type2.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type2.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-icon.sc-stzh-vbz-ticker{color:var(--stzh-color-error)}.stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker{font-family:var(--stzh-font-family-medium);font-weight:var(--stzh-font-weight-medium);font-style:normal;display:-ms-flexbox;display:flex}.stzh-vbz-ticker__disturbance--type0.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker,.stzh-vbz-ticker__disturbance--type2.sc-stzh-vbz-ticker .stzh-vbz-ticker__disturbance-title.sc-stzh-vbz-ticker{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-vbz-ticker__disturbance-icon.sc-stzh-vbz-ticker{--size:var(--stzh-icon-size-xsmall);margin-top:var(--stzh-space-xxxsmall);margin-right:var(--stzh-space-xsmall)}.stzh-vbz-ticker__disturbance-link.sc-stzh-vbz-ticker{margin-top:var(--stzh-space-xsmall)}";var h="ticker";var z="stadt-zuerich.ch/vbz";var v="GLOBAL";var b="__global__";var u="0";var d="1";var p="2";var f="4";var _="5";var m=t("stzh_vbz_ticker",function(){function t(t){var i;e(this,t);this.api="https://fpbe.zvv.ch/restproxy/himsearch?format=json&accessId=unic&channels=ticker&additionalfields=tickers:VBZ&orderBy=LMOD_DESC&lang={lang}";this.data="";this.moreInfoLink="https://zvv.ch/zvv/{lang}/fahrplan/vl.html?himIds={id}";this.globalDisturbances=[];this.lines=[];this.counter=(i={},i["".concat(b)]=0,i["".concat(u)]=0,i["".concat(d)]=0,i["".concat(p)]=0,i["".concat(f)]=0,i["".concat(_)]=0,i)}t.prototype.localizationWatcher=function(){this.collator=new Intl.Collator(this.localization.$locale,{numeric:true})};t.prototype.apiWatcher=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(s){switch(s.label){case 0:if(!t){return[2]}e=this.api.replace(/\{lang\}/,this.localization.$locale);e=e+(e.includes("?")?"&":"?")+Date.now();return[4,c.get(e)];case 1:i=s.sent().data;this.data=i;return[2]}}))}))};t.prototype.dataWatcher=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,s;var r=this;return __generator(this,(function(a){if(typeof t==="string"){this._data=JSON.parse(t)}else{this._data=t}s={};(i=(e=this._data)===null||e===void 0?void 0:e.Message)===null||i===void 0?void 0:i.forEach((function(t){var e=t.channel.filter((function(t){return t.name===h&&t.url})).map((function(t){return t.url})).reduce((function(t,e){return t.concat(e)}),[]);var i=e.find((function(t){return t.url.indexOf(z)!==-1}));if(t.baseType===v){r.counter[b]++;r.globalDisturbances.push({id:t.id,head:t.head,category:t.category,baseType:t.baseType,startDate:new Date("".concat(t.sDate,"T").concat(t.sTime,"+02:00")),endDate:new Date("".concat(t.eDate,"T").concat(t.eTime,"+02:00")),altStart:t.altStart,altEnd:t.altEnd,infoUrl:i})}else{r.counter[t.category]++}if(t.affectedProduct&&t.category!==u&&t.baseType!==v){t.affectedProduct.forEach((function(e){if(typeof s[e.lineId]==="undefined"){s[e.lineId]={line:e.line,name:e.name,category:e.cls,disturbances:[],alert:false}}if(t.category===p){s[e.lineId].alert=true}s[e.lineId].disturbances.push({id:t.id,head:t.head,category:t.category,baseType:t.baseType,startDate:new Date("".concat(t.sDate,"T").concat(t.sTime,"+02:00")),endDate:new Date("".concat(t.eDate,"T").concat(t.eTime,"+02:00")),altStart:t.altStart,altEnd:t.altEnd,infoUrl:i})}))}}));this.lines=Object.keys(s).map((function(t){return s[t]}));this.lines.sort((function(t,e){return r.collator.compare(t.line,e.line)}));return[2]}))}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,n(this.element,"vbz-ticker")];case 1:t.localization=e.sent();this.localizationWatcher();e.label=2;case 2:if(!this.dateAdapter){this.dateAdapter=l(this.localization.$formats,this.localization.$globals)}if(!this.data)return[3,4];return[4,this.dataWatcher(this.data)];case 3:e.sent();return[3,6];case 4:return[4,this.apiWatcher(this.api)];case 5:e.sent();e.label=6;case 6:return[2]}}))}))};t.prototype.renderDisturbance=function(t){var e;return i("div",{class:(e={"stzh-vbz-ticker__disturbance":true},e["stzh-vbz-ticker__disturbance--type".concat(t.category)]=!!t.category,e)},t.category===p||t.baseType===v?i("stzh-icon",{name:"warning-big",class:"stzh-vbz-ticker__disturbance-icon"}):i("stzh-icon",{name:"construction",class:"stzh-vbz-ticker__disturbance-icon"}),i("div",{class:"stzh-vbz-ticker__disturbance-text"},i("div",{class:"stzh-vbz-ticker__disturbance-title"},t.head),i("div",{class:"stzh-vbz-ticker__disturbance-date"},t.altStart||this.dateAdapter.format(t.startDate),i("span",{innerHTML:this.localization.$formats.dateRange}),t.altEnd||this.dateAdapter.format(t.endDate)),t.infoUrl?i("stzh-link",{class:"stzh-vbz-ticker__disturbance-link",size:"small",href:t.infoUrl.url},this.localization.moreInfo):i("stzh-link",{class:"stzh-vbz-ticker__disturbance-link",size:"small",target:"_blank",icon:"external-link",href:this.moreInfoLink.replace(/\{lang\}/,this.localization.$locale).replace(/\{id\}/,t.id)},this.localization.moreInfo)))};t.prototype.render=function(){var t=this;var e={"stzh-vbz-ticker":true};return i(r,null,i("div",{class:e},i("div",{class:"stzh-vbz-ticker__text"},i("div",{class:"stzh-vbz-ticker__title"},i("div",{class:"stzh-vbz-ticker__title-parts"},this.lines.length===0&&this.counter[b]===0&&i("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--no-disturbances"},i("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"checkmark-circle"}),this.localization.noDisturbances),this.counter[b]>0&&i("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--major-events"},i("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"important-warning"}),this.localization.majorEventTitle),this.counter[p]>0&&i("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--disturbances"},i("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"warning"}),this.localization.disturbanceTitle),(this.counter[d]>0||this.counter[f]>0||this.counter[_]>0)&&i("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--others"},i("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"construction"}),this.localization.othersTitle))),(this.lines.length>0||this.counter[b]>0)&&i(s,null,i("div",{class:"stzh-vbz-ticker__description"},this.counter[b]>0?this.localization.globalDisturbance:this.localization.affectedLines),i("div",{class:"stzh-vbz-ticker__chips",role:"list"},this.counter[b]>0&&i("div",{class:"stzh-vbz-ticker__chip",role:"listitem"},i("stzh-tooltip",{class:"stzh-vbz-ticker__tooltip"},i("stzh-vbz-linechip",{global:true}),i("div",{class:"stzh-vbz-ticker__tooltip-content",slot:"content"},this.globalDisturbances.map((function(e){return t.renderDisturbance(e)}))))),this.lines.map((function(e){return i("div",{class:"stzh-vbz-ticker__chip",role:"listitem"},i("stzh-tooltip",{class:"stzh-vbz-ticker__tooltip"},i("stzh-vbz-linechip",{line:e.line,alert:e.alert}),i("div",{class:"stzh-vbz-ticker__tooltip-content",slot:"content"},e.disturbances.map((function(e){return t.renderDisturbance(e)})))))}))))),i("div",{class:"stzh-vbz-ticker__link"},i("slot",{name:"link"}))))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{localization:["localizationWatcher"],api:["apiWatcher"],data:["dataWatcher"]}},enumerable:false,configurable:true});return t}());m.style=o}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-30b347ee.system.js","./p-
|
|
1
|
+
System.register(["./p-30b347ee.system.js","./p-5f856307.system.js"],(function(t){"use strict";var s,o,i,e,n;return{setters:[function(t){s=t.r;o=t.h;i=t.a;e=t.g},function(t){n=t.s}],execute:function(){var c=".sc-stzh-actions-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-actions-h{display:none}.sc-stzh-actions-h *.sc-stzh-actions,.sc-stzh-actions-h *.sc-stzh-actions::before,.sc-stzh-actions-h *.sc-stzh-actions::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-actions-h .sc-stzh-actions-s>[slot=primary],.sc-stzh-actions-h .sc-stzh-actions-s>[slot=secondary]{-ms-flex-positive:1;flex-grow:1;margin:var(--stzh-space-xxsmall)}.stzh-actions__actions.sc-stzh-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:calc(var(--stzh-space-xxsmall) * -1)}@media screen and (min-width: 600px){.stzh-actions__actions.sc-stzh-actions{-ms-flex-direction:row;flex-direction:row}}.stzh-actions__primary-actions.sc-stzh-actions,.stzh-actions__secondary-actions.sc-stzh-actions{display:-ms-flexbox;display:flex}.stzh-actions--dialog.sc-stzh-actions .stzh-actions__actions.sc-stzh-actions{-ms-flex-pack:end;justify-content:flex-end}.stzh-actions--process.sc-stzh-actions .stzh-actions__actions.sc-stzh-actions{-ms-flex-pack:justify;justify-content:space-between}.stzh-actions--with-border.sc-stzh-actions{padding-top:var(--stzh-space-medium);border-top:0.0625rem solid var(--stzh-base-border-color)}";var a=t("stzh_actions",function(){function t(t){var o=this;s(this,t);this.variant="form";this.withBorder=false;this.init=function(){var t=o.element.querySelectorAll('stzh-button[slot="secondary"], [slot="secondary"] stzh-button');var s=o.element.querySelectorAll("stzh-button");t.forEach((function(t){n(t,{variant:"secondary"})}));s.forEach((function(t){t.setAttribute("role","listitem")}))}}t.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){this.observer.disconnect()};t.prototype.render=function(){var t;var s=(t={"stzh-actions":true,"stzh-actions--with-border":this.withBorder},t["stzh-actions--".concat(this.variant)]=!!this.variant,t);return o(i,null,o("div",{class:s},o("div",{class:"stzh-actions__actions",role:"list"},o("div",{class:"stzh-actions__secondary-actions"},o("slot",{name:"secondary"})),o("div",{class:"stzh-actions__primary-actions"},o("slot",{name:"primary"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return e(this)},enumerable:false,configurable:true});return t}());a.style=c}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as e,i as r,h as t,F as i,a as c,g as a}from"./p-65282c9d.js";import{h as d}from"./p-42430cdf.js";import{m as h}from"./p-0c2b5907.js";import{f as n}from"./p-1a40a6e4.js";const o=class{constructor(t){s(this,t),this.stzhCollapse=e(this,"stzhCollapse",7),this.stzhSubtitleClick=e(this,"stzhSubtitleClick",7),this.stzhStarClick=e(this,"stzhStarClick",7),this.stzhActionClick=e(this,"stzhActionClick",7),this.collapsed=!1,this.starred=!1,this.starrable=!1,this.heading="",this.subtitle="",this._subtitles=[],this.actions=[],this.subtitleInteractive=!1,this.type="default",this.middleVariant="to-right",this.middleVerticalSpacing="default",this.rightVerticalSpacing="default",this.sortableDisabled=!1,this.collapsible=!1,this.hideMovementActions=!1,this.nodeChange=s=>{let e=!1;s.forEach((s=>{(s.target.closest("[slot]")||s.target.hasAttribute("slot"))&&(e=!0)})),e&&r(this.element)},this.update=()=>{this.mainElement.classList.remove("stzh-servicecard--has-collapsed-header"),h("medium").matches&&this.headerElement.clientWidth-this.headerLeftElement.clientWidth<=this.headerRightElement.clientWidth&&this.mainElement.classList.add("stzh-servicecard--has-collapsed-header")},this.headerClick=s=>{if(!this.collapsible)return;const e=["stzh-popover","stzh-tooltip","button","a","input","select","textarea","iframe","details","label","area"];s.composedPath().map((s=>{var e;return null===(e=s.tagName)||void 0===e?void 0:e.toLowerCase()})).some((s=>e.includes(s)))||(this.collapsed=!this.collapsed,this.stzhCollapse.emit({component:"stzh-servicecard",collapsed:this.collapsed}))},this.subtitleClick=()=>{this.subtitleInteractive&&this.stzhSubtitleClick.emit({component:"stzh-servicecard"})},this.starToggleClick=()=>{this.stzhStarClick.emit({component:"stzh-servicecard",starred:this.starred})},this.actionClick=s=>{this.stzhActionClick.emit({component:"stzh-servicecard",action:s})},this.arrowUpClick=()=>{const s=this.element.closest("stzh-sortable");s&&s.moveItem(this.element,"up")},this.arrowDownClick=()=>{const s=this.element.closest("stzh-sortable");s&&s.moveItem(this.element,"down")}}handleResize(){this.debounceResize&&window.cancelAnimationFrame(this.debounceResize),this.debounceResize=requestAnimationFrame(this.update)}subtitleWatcher(s){if("string"==typeof s)try{this._subtitles=JSON.parse(s)}catch(e){this._subtitles=[s]}else this._subtitles=s}actionsWatcher(s){this._actions="string"==typeof s?JSON.parse(s):s}async componentWillLoad(){this.subtitleWatcher(this.subtitle),this.actionsWatcher(this.actions),this.localization||(this.localization=await n(this.element,"servicecard"))}connectedCallback(){this.observer=new MutationObserver(this.nodeChange),this.observer.observe(this.element,{childList:!0,subtree:!0})}disconnectedCallback(){this.observer.disconnect()}render(){const s=d(this.element,"left"),e=d(this.element,"middle"),r=d(this.element,"right"),a=this.subtitleInteractive?"button":"span";return t(c,{role:"listitem","aria-label":this.heading},t("article",{ref:s=>this.mainElement=s,class:{"stzh-servicecard":!0,"stzh-servicecard--has-left":s,"stzh-servicecard--has-middle":e,"stzh-servicecard--has-right":r,"stzh-servicecard--has-subtitle":!!this.subtitle,"stzh-servicecard--has-subtitle-interactive":!!this.subtitle&&this.subtitleInteractive,"stzh-servicecard--is-collapsed":this.collapsed,"stzh-servicecard--is-starred":this.starred,[`stzh-servicecard--middle-${this.middleVariant}`]:!!this.middleVariant&&e,[`stzh-servicecard--type-${this.type}`]:!!this.type}},t("stzh-icon",{class:"stzh-servicecard__dnd",name:"drag"}),t("header",{ref:s=>this.headerElement=s,class:"stzh-servicecard__header",onClick:this.headerClick},t("div",{ref:s=>this.headerLeftElement=s,class:"stzh-servicecard__header-left"},t("div",{class:"stzh-servicecard__title-area","data-dashboardmknlist":"title"},t("h3",{class:"stzh-servicecard__title","data-dashboardmknlist":"dnd"},this.heading),this._subtitles.length>0&&t(a,{class:"stzh-servicecard__subtitle",onClick:this.subtitleClick},this._subtitles.map((s=>t("span",{class:"stzh-servicecard__subtitle-text"},s)))))),t("div",{ref:s=>this.headerRightElement=s,class:"stzh-servicecard__header-right"},t("div",{class:"stzh-servicecard__card-actions"},this._actions.map((s=>t("stzh-button",{class:{"stzh-servicecard__card-action":!0,"is-button":!0,"show-medium":!s.onlyCollapseText,"hide-when-collapsed":!s.onlyCollapseText,"hide-text-when-collapsed":s.onlyCollapseText},icon:s.icon,badge:s.badge,variant:"tertiary",size:"tiny",badgePosition:"icon",onClick:()=>{this.actionClick(s)}},t("span",{class:{"show-medium":s.onlyCollapseText,"hide-when-collapsed":s.onlyCollapseText}},s.label)))),this.starrable&&t("stzh-tooltip",null,t("stzh-button",{class:"stzh-servicecard__card-action is-star",icon:this.starred?"star-filled":"star",variant:"tertiary",size:"tiny",iconOnly:!0,onClick:this.starToggleClick}),t("div",{slot:"content"},this.starred?this.localization.actionRemove:this.localization.actionAdd)),t("stzh-popover",{label:this.localization.actionsPopoverLabel,placement:"bottom-end",class:"stzh-servicecard__card-action-popover"},t("stzh-button",{class:"stzh-servicecard__card-action is-further",variant:"tertiary",size:"tiny",icon:"more-vertical",iconOnly:!0}),t("stzh-menu",{slot:"content"},this.starrable&&t("stzh-menu-item",{icon:this.starred?"star-filled":"star",onClick:this.starToggleClick},this.starred?this.localization.actionRemove:this.localization.actionAdd),this._actions.filter((s=>!s.onlyCollapseText)).map((s=>t("stzh-menu-item",{class:"hide-medium show-when-collapsed",icon:s.icon,badge:s.badge,onClick:()=>{this.actionClick(s)}},s.label))),!this.sortableDisabled&&!this.hideMovementActions&&t(i,null,t("stzh-menu-item",{icon:"arrow-up",onClick:this.arrowUpClick},this.localization.actionMoveUp),t("stzh-menu-item",{icon:"arrow-down",onClick:this.arrowDownClick},this.localization.actionMoveDown))))))),t("div",{class:"stzh-servicecard__columns hide-when-collapsed"},t("div",{class:{"stzh-servicecard__column":!0,"is-left":!0}},t("slot",{name:"left"})),t("div",{class:{"stzh-servicecard__column":!0,"is-middle":!0,"has-no-spacing":"none"===this.middleVerticalSpacing}},t("slot",{name:"middle"})),t("div",{class:{"stzh-servicecard__column":!0,"is-right":!0,"has-no-spacing":"none"===this.rightVerticalSpacing}},t("slot",{name:"right"})))))}get element(){return a(this)}static get watchers(){return{subtitle:["subtitleWatcher"],actions:["actionsWatcher"]}}};o.style='.sc-stzh-servicecard-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-servicecard-h{display:none}.sc-stzh-servicecard-h *.sc-stzh-servicecard,.sc-stzh-servicecard-h *.sc-stzh-servicecard::before,.sc-stzh-servicecard-h *.sc-stzh-servicecard::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-servicecard-h{--box-shadow:var(--stzh-box-shadow-popover);--border:0.0625rem solid var(--stzh-base-border-color);--border-radius:0.1875rem;--dnd-visibility:hidden;--dnd-opacity:0;position:relative;border-radius:var(--border-radius)}.is-ghost.sc-stzh-servicecard-h::after{border-radius:var(--border-radius)}.is-selected.sc-stzh-servicecard-h,.is-chosen.sc-stzh-servicecard-h{--box-shadow:var(--stzh-box-shadow-overlay)}.is-ghost.sc-stzh-servicecard-h{--box-shadow:none;--border:0.0625rem solid transparent;overflow:hidden}.is-drag.sc-stzh-servicecard-h,.is-chosen.sc-stzh-servicecard-h,.is-ghost.sc-stzh-servicecard-h,.is-selected.sc-stzh-servicecard-h{--dnd-visibility:visible;--dnd-opacity:1}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>*{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing)}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table{border:0;border-spacing:0}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table th{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table td,.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table th{padding:0}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table td{color:var(--stzh-color-black);padding-left:var(--stzh-space-xsmall)}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>*:not(:first-child){margin-top:var(--stzh-space-medium)}.stzh-servicecard.sc-stzh-servicecard{background-color:var(--stzh-color-white);border-radius:var(--border-radius);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);border:var(--border);-webkit-transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed), -webkit-box-shadow var(--stzh-base-transition-animation-speed)}@media screen and (max-width: 1023px){.stzh-servicecard.sc-stzh-servicecard .show-medium.sc-stzh-servicecard{display:none}}@media screen and (min-width: 1024px){.stzh-servicecard.sc-stzh-servicecard .hide-medium.sc-stzh-servicecard{display:none}}.stzh-servicecard__dnd.sc-stzh-servicecard{--size:var(--stzh-icon-size-xsmall);position:absolute;left:0.1875rem;top:1.4375rem;display:-ms-flexbox;display:flex;visibility:var(--dnd-visibility);opacity:var(--dnd-opacity);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);display:none}@media screen and (min-width: 1024px){.stzh-servicecard__dnd.sc-stzh-servicecard{display:block}}@media screen and (min-width: 1260px){.stzh-servicecard__dnd.sc-stzh-servicecard{left:0.25rem;top:1.6875rem}}.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-xsmall);padding-bottom:var(--stzh-space-xsmall);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start;border-bottom:0.0625rem solid var(--stzh-base-border-color)}@media screen and (min-width: 600px){.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-large)}}@media screen and (min-width: 600px){.stzh-servicecard__header.sc-stzh-servicecard{padding-bottom:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-servicecard__header.sc-stzh-servicecard{padding-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-servicecard__header.sc-stzh-servicecard{padding-bottom:var(--stzh-space-large)}}.stzh-servicecard__header-left.sc-stzh-servicecard,.stzh-servicecard__header-right.sc-stzh-servicecard{display:-ms-flexbox;display:flex}.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-xsmall)}@media screen and (min-width: 600px){.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-large)}}.stzh-servicecard__header.sc-stzh-servicecard,.stzh-servicecard__columns.sc-stzh-servicecard{padding-left:var(--stzh-space-medium);padding-right:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-servicecard__header.sc-stzh-servicecard,.stzh-servicecard__columns.sc-stzh-servicecard{padding-left:var(--stzh-space-large);padding-right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__header.sc-stzh-servicecard,.stzh-servicecard__columns.sc-stzh-servicecard{padding-left:var(--stzh-space-xlarge);padding-right:var(--stzh-space-xlarge)}}.stzh-servicecard__left.sc-stzh-servicecard{-ms-flex-item-align:center;align-self:center}.stzh-servicecard__title-area.sc-stzh-servicecard{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden}.stzh-servicecard__title.sc-stzh-servicecard,.stzh-servicecard__subtitle.sc-stzh-servicecard{margin:0}.stzh-servicecard__title.sc-stzh-servicecard{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-curve-h3-default-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h3-default-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-default-heading-letter-spacing);color:var(--stzh-base-lead-color)}@media screen and (min-width: 600px){.stzh-servicecard__title.sc-stzh-servicecard{font-size:var(--stzh-font-curve-h3-small-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h3-small-heading-line-height, var(--stzh-font-deci-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-small-heading-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-servicecard__title.sc-stzh-servicecard{font-size:var(--stzh-font-curve-h3-medium-font-size, var(--stzh-font-regular-font-size));line-height:var(--stzh-font-curve-h3-medium-heading-line-height, var(--stzh-font-regular-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-medium-heading-letter-spacing)}}.stzh-servicecard__subtitle.sc-stzh-servicecard{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;text-decoration:none;margin-left:-0.5625em}@media screen and (min-width: 1024px){.stzh-servicecard__subtitle.sc-stzh-servicecard{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-servicecard__subtitle-text.sc-stzh-servicecard{position:relative;display:-ms-inline-flexbox;display:inline-flex;padding-left:0.5625em}.stzh-servicecard__subtitle-text.sc-stzh-servicecard::after{content:",";position:absolute;left:0}.stzh-servicecard__columns.sc-stzh-servicecard{margin-top:var(--stzh-space-medium);margin-bottom:var(--stzh-space-medium);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}@media screen and (min-width: 1024px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-top:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){.stzh-servicecard__columns.sc-stzh-servicecard{display:grid;grid-template-columns:50% 50%;grid-template-rows:auto auto;margin-left:calc(var(--stzh-space-medium) / -1);margin-right:calc(var(--stzh-space-medium) / -1)}}@media screen and (min-width: 1024px){.stzh-servicecard__columns.sc-stzh-servicecard{grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto;margin-left:calc(var(--stzh-space-large) / -1);margin-right:calc(var(--stzh-space-large) / -1)}}@media screen and (min-width: 1260px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-left:calc(var(--stzh-space-xlarge) / -1);margin-right:calc(var(--stzh-space-xlarge) / -1)}}@media screen and (min-width: 800px){.stzh-servicecard__column.sc-stzh-servicecard{padding-left:var(--stzh-space-medium);padding-right:var(--stzh-space-medium)}}@media screen and (min-width: 1024px){.stzh-servicecard__column.sc-stzh-servicecard{padding-left:var(--stzh-space-large);padding-right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__column.sc-stzh-servicecard{padding-left:var(--stzh-space-xlarge);padding-right:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 2}}@media screen and (min-width: 1024px){.stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 2;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-middle.sc-stzh-servicecard{grid-column:2/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-right.sc-stzh-servicecard{align-self:end;grid-column:2/span 1;grid-row:2/span 1}}@media screen and (min-width: 1024px){.stzh-servicecard__column.is-right.sc-stzh-servicecard{grid-column:3/span 1;grid-row:1/span 1}}.stzh-servicecard__column.sc-stzh-servicecard:not(:empty):not(:first-child):not(.has-no-spacing){margin-top:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-servicecard__column.sc-stzh-servicecard:not(:empty):not(:first-child):not(.has-no-spacing){margin-top:0}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-middle.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-right.sc-stzh-servicecard{margin-top:0}}.stzh-servicecard__column.is-left.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-middle.sc-stzh-servicecard:not(:empty),.stzh-servicecard__column.is-left.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-middle.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-right.sc-stzh-servicecard:not(:empty){margin-top:0}.stzh-servicecard__card-actions.sc-stzh-servicecard{display:-ms-inline-flexbox;display:inline-flex;white-space:nowrap}@media screen and (max-width: 1023px){.stzh-servicecard__card-action.sc-stzh-servicecard{--icon-text-margin:0;--badge-icon-text-margin:0}}.stzh-servicecard__card-action[variant=tertiary].sc-stzh-servicecard{--color:var(--stzh-color-grey70)}.stzh-servicecard__card-action.is-button.sc-stzh-servicecard{--icon-size:var(--stzh-icon-size-small)}.stzh-servicecard__card-action.is-placeholder.sc-stzh-servicecard{width:var(--stzh-space-xxlarge);height:var(--stzh-space-xxlarge)}.stzh-servicecard__card-action-popover.sc-stzh-servicecard{--width:auto}@media screen and (min-width: 800px){.stzh-servicecard--has-middle.sc-stzh-servicecard .stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 2}}@media screen and (min-width: 1024px){.stzh-servicecard--has-middle.sc-stzh-servicecard .stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-right.sc-stzh-servicecard .stzh-servicecard__column.is-middle.sc-stzh-servicecard{margin-top:0}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-right.sc-stzh-servicecard{grid-column:2/span 1;grid-row:1/span 2}}@media screen and (min-width: 1024px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-right.sc-stzh-servicecard{grid-column:3/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-middle.sc-stzh-servicecard{grid-column:1/span 1;grid-row:2/span 1}}@media screen and (min-width: 1024px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-middle.sc-stzh-servicecard{grid-column:2/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-right.sc-stzh-servicecard{margin-top:0}}.stzh-servicecard--has-subtitle-interactive.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard{cursor:pointer;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-servicecard--has-subtitle-interactive.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:hover,.stzh-servicecard--has-subtitle-interactive.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-servicecard--type-alert.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard{color:var(--stzh-color-error)}.stzh-servicecard--type-alert.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:hover,.stzh-servicecard--type-alert.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:focus{color:var(--stzh-color-error)}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .hide-when-collapsed.sc-stzh-servicecard,.stzh-servicecard--has-collapsed-header.sc-stzh-servicecard .stzh-servicecard__header.sc-stzh-servicecard .hide-when-collapsed.sc-stzh-servicecard{display:none}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .show-when-collapsed.sc-stzh-servicecard,.stzh-servicecard--has-collapsed-header.sc-stzh-servicecard .stzh-servicecard__header.sc-stzh-servicecard .show-when-collapsed.sc-stzh-servicecard{display:block}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .stzh-servicecard__header.sc-stzh-servicecard{border-bottom:none}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .stzh-servicecard__card-action.sc-stzh-servicecard,.stzh-servicecard--has-collapsed-header.sc-stzh-servicecard .stzh-servicecard__card-action.sc-stzh-servicecard{--icon-text-margin:0;--badge-icon-text-margin:0}.stzh-servicecard--is-starred.sc-stzh-servicecard .stzh-servicecard__card-action.is-star.sc-stzh-servicecard{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-servicecard--is-starred.sc-stzh-servicecard .stzh-servicecard__card-action.is-star.sc-stzh-servicecard:hover,.stzh-servicecard--is-starred.sc-stzh-servicecard .stzh-servicecard__card-action.is-star.sc-stzh-servicecard:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}';export{o as stzh_servicecard}
|
|
1
|
+
import{r as s,c as e,i as r,h as t,F as i,a as c,g as a}from"./p-65282c9d.js";import{h as d}from"./p-6c502e6e.js";import{m as h}from"./p-9111e257.js";import{f as n}from"./p-25a09313.js";const o=class{constructor(t){s(this,t),this.stzhCollapse=e(this,"stzhCollapse",7),this.stzhSubtitleClick=e(this,"stzhSubtitleClick",7),this.stzhStarClick=e(this,"stzhStarClick",7),this.stzhActionClick=e(this,"stzhActionClick",7),this.collapsed=!1,this.starred=!1,this.starrable=!1,this.heading="",this.subtitle="",this._subtitles=[],this.actions=[],this.subtitleInteractive=!1,this.type="default",this.middleVariant="to-right",this.middleVerticalSpacing="default",this.rightVerticalSpacing="default",this.sortableDisabled=!1,this.collapsible=!1,this.hideMovementActions=!1,this.nodeChange=s=>{let e=!1;s.forEach((s=>{(s.target.closest("[slot]")||s.target.hasAttribute("slot"))&&(e=!0)})),e&&r(this.element)},this.update=()=>{this.mainElement.classList.remove("stzh-servicecard--has-collapsed-header"),h("medium").matches&&this.headerElement.clientWidth-this.headerLeftElement.clientWidth<=this.headerRightElement.clientWidth&&this.mainElement.classList.add("stzh-servicecard--has-collapsed-header")},this.headerClick=s=>{if(!this.collapsible)return;const e=["stzh-popover","stzh-tooltip","button","a","input","select","textarea","iframe","details","label","area"];s.composedPath().map((s=>{var e;return null===(e=s.tagName)||void 0===e?void 0:e.toLowerCase()})).some((s=>e.includes(s)))||(this.collapsed=!this.collapsed,this.stzhCollapse.emit({component:"stzh-servicecard",collapsed:this.collapsed}))},this.subtitleClick=()=>{this.subtitleInteractive&&this.stzhSubtitleClick.emit({component:"stzh-servicecard"})},this.starToggleClick=()=>{this.stzhStarClick.emit({component:"stzh-servicecard",starred:this.starred})},this.actionClick=s=>{this.stzhActionClick.emit({component:"stzh-servicecard",action:s})},this.arrowUpClick=()=>{const s=this.element.closest("stzh-sortable");s&&s.moveItem(this.element,"up")},this.arrowDownClick=()=>{const s=this.element.closest("stzh-sortable");s&&s.moveItem(this.element,"down")}}handleResize(){this.debounceResize&&window.cancelAnimationFrame(this.debounceResize),this.debounceResize=requestAnimationFrame(this.update)}subtitleWatcher(s){if("string"==typeof s)try{this._subtitles=JSON.parse(s)}catch(e){this._subtitles=[s]}else this._subtitles=s}actionsWatcher(s){this._actions="string"==typeof s?JSON.parse(s):s}async componentWillLoad(){this.subtitleWatcher(this.subtitle),this.actionsWatcher(this.actions),this.localization||(this.localization=await n(this.element,"servicecard"))}connectedCallback(){this.observer=new MutationObserver(this.nodeChange),this.observer.observe(this.element,{childList:!0,subtree:!0})}disconnectedCallback(){this.observer.disconnect()}render(){const s=d(this.element,"left"),e=d(this.element,"middle"),r=d(this.element,"right"),a=this.subtitleInteractive?"button":"span";return t(c,{role:"listitem","aria-label":this.heading},t("article",{ref:s=>this.mainElement=s,class:{"stzh-servicecard":!0,"stzh-servicecard--has-left":s,"stzh-servicecard--has-middle":e,"stzh-servicecard--has-right":r,"stzh-servicecard--has-subtitle":!!this.subtitle,"stzh-servicecard--has-subtitle-interactive":!!this.subtitle&&this.subtitleInteractive,"stzh-servicecard--is-collapsed":this.collapsed,"stzh-servicecard--is-starred":this.starred,[`stzh-servicecard--middle-${this.middleVariant}`]:!!this.middleVariant&&e,[`stzh-servicecard--type-${this.type}`]:!!this.type}},t("stzh-icon",{class:"stzh-servicecard__dnd",name:"drag"}),t("header",{ref:s=>this.headerElement=s,class:"stzh-servicecard__header",onClick:this.headerClick},t("div",{ref:s=>this.headerLeftElement=s,class:"stzh-servicecard__header-left"},t("div",{class:"stzh-servicecard__title-area","data-dashboardmknlist":"title"},t("h3",{class:"stzh-servicecard__title","data-dashboardmknlist":"dnd"},this.heading),this._subtitles.length>0&&t(a,{class:"stzh-servicecard__subtitle",onClick:this.subtitleClick},this._subtitles.map((s=>t("span",{class:"stzh-servicecard__subtitle-text"},s)))))),t("div",{ref:s=>this.headerRightElement=s,class:"stzh-servicecard__header-right"},t("div",{class:"stzh-servicecard__card-actions"},this._actions.map((s=>t("stzh-button",{class:{"stzh-servicecard__card-action":!0,"is-button":!0,"show-medium":!s.onlyCollapseText,"hide-when-collapsed":!s.onlyCollapseText,"hide-text-when-collapsed":s.onlyCollapseText},icon:s.icon,badge:s.badge,variant:"tertiary",size:"tiny",badgePosition:"icon",onClick:()=>{this.actionClick(s)}},t("span",{class:{"show-medium":s.onlyCollapseText,"hide-when-collapsed":s.onlyCollapseText}},s.label)))),this.starrable&&t("stzh-tooltip",null,t("stzh-button",{class:"stzh-servicecard__card-action is-star",icon:this.starred?"star-filled":"star",variant:"tertiary",size:"tiny",iconOnly:!0,onClick:this.starToggleClick}),t("div",{slot:"content"},this.starred?this.localization.actionRemove:this.localization.actionAdd)),t("stzh-popover",{label:this.localization.actionsPopoverLabel,placement:"bottom-end",class:"stzh-servicecard__card-action-popover"},t("stzh-button",{class:"stzh-servicecard__card-action is-further",variant:"tertiary",size:"tiny",icon:"more-vertical",iconOnly:!0}),t("stzh-menu",{slot:"content"},this.starrable&&t("stzh-menu-item",{icon:this.starred?"star-filled":"star",onClick:this.starToggleClick},this.starred?this.localization.actionRemove:this.localization.actionAdd),this._actions.filter((s=>!s.onlyCollapseText)).map((s=>t("stzh-menu-item",{class:"hide-medium show-when-collapsed",icon:s.icon,badge:s.badge,onClick:()=>{this.actionClick(s)}},s.label))),!this.sortableDisabled&&!this.hideMovementActions&&t(i,null,t("stzh-menu-item",{icon:"arrow-up",onClick:this.arrowUpClick},this.localization.actionMoveUp),t("stzh-menu-item",{icon:"arrow-down",onClick:this.arrowDownClick},this.localization.actionMoveDown))))))),t("div",{class:"stzh-servicecard__columns hide-when-collapsed"},t("div",{class:{"stzh-servicecard__column":!0,"is-left":!0}},t("slot",{name:"left"})),t("div",{class:{"stzh-servicecard__column":!0,"is-middle":!0,"has-no-spacing":"none"===this.middleVerticalSpacing}},t("slot",{name:"middle"})),t("div",{class:{"stzh-servicecard__column":!0,"is-right":!0,"has-no-spacing":"none"===this.rightVerticalSpacing}},t("slot",{name:"right"})))))}get element(){return a(this)}static get watchers(){return{subtitle:["subtitleWatcher"],actions:["actionsWatcher"]}}};o.style='.sc-stzh-servicecard-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-servicecard-h{display:none}.sc-stzh-servicecard-h *.sc-stzh-servicecard,.sc-stzh-servicecard-h *.sc-stzh-servicecard::before,.sc-stzh-servicecard-h *.sc-stzh-servicecard::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-servicecard-h{--box-shadow:var(--stzh-box-shadow-popover);--border:0.0625rem solid var(--stzh-base-border-color);--border-radius:0.1875rem;--dnd-visibility:hidden;--dnd-opacity:0;position:relative;border-radius:var(--border-radius)}.is-ghost.sc-stzh-servicecard-h::after{border-radius:var(--border-radius)}.is-selected.sc-stzh-servicecard-h,.is-chosen.sc-stzh-servicecard-h{--box-shadow:var(--stzh-box-shadow-overlay)}.is-ghost.sc-stzh-servicecard-h{--box-shadow:none;--border:0.0625rem solid transparent;overflow:hidden}.is-drag.sc-stzh-servicecard-h,.is-chosen.sc-stzh-servicecard-h,.is-ghost.sc-stzh-servicecard-h,.is-selected.sc-stzh-servicecard-h{--dnd-visibility:visible;--dnd-opacity:1}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>*{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing)}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table{border:0;border-spacing:0}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table th{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table td,.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table th{padding:0}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>table td{color:var(--stzh-color-black);padding-left:var(--stzh-space-xsmall)}.sc-stzh-servicecard-h .sc-stzh-servicecard-s>*:not(:first-child){margin-top:var(--stzh-space-medium)}.stzh-servicecard.sc-stzh-servicecard{background-color:var(--stzh-color-white);border-radius:var(--border-radius);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);border:var(--border);-webkit-transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed), -webkit-box-shadow var(--stzh-base-transition-animation-speed)}@media screen and (max-width: 1023px){.stzh-servicecard.sc-stzh-servicecard .show-medium.sc-stzh-servicecard{display:none}}@media screen and (min-width: 1024px){.stzh-servicecard.sc-stzh-servicecard .hide-medium.sc-stzh-servicecard{display:none}}.stzh-servicecard__dnd.sc-stzh-servicecard{--size:var(--stzh-icon-size-xsmall);position:absolute;left:0.1875rem;top:1.4375rem;display:-ms-flexbox;display:flex;visibility:var(--dnd-visibility);opacity:var(--dnd-opacity);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);display:none}@media screen and (min-width: 1024px){.stzh-servicecard__dnd.sc-stzh-servicecard{display:block}}@media screen and (min-width: 1260px){.stzh-servicecard__dnd.sc-stzh-servicecard{left:0.25rem;top:1.6875rem}}.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-xsmall);padding-bottom:var(--stzh-space-xsmall);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start;border-bottom:0.0625rem solid var(--stzh-base-border-color)}@media screen and (min-width: 600px){.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-servicecard__header.sc-stzh-servicecard{padding-top:var(--stzh-space-large)}}@media screen and (min-width: 600px){.stzh-servicecard__header.sc-stzh-servicecard{padding-bottom:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-servicecard__header.sc-stzh-servicecard{padding-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-servicecard__header.sc-stzh-servicecard{padding-bottom:var(--stzh-space-large)}}.stzh-servicecard__header-left.sc-stzh-servicecard,.stzh-servicecard__header-right.sc-stzh-servicecard{display:-ms-flexbox;display:flex}.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-xsmall)}@media screen and (min-width: 600px){.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-servicecard__header-right.sc-stzh-servicecard{padding-left:var(--stzh-space-large)}}.stzh-servicecard__header.sc-stzh-servicecard,.stzh-servicecard__columns.sc-stzh-servicecard{padding-left:var(--stzh-space-medium);padding-right:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-servicecard__header.sc-stzh-servicecard,.stzh-servicecard__columns.sc-stzh-servicecard{padding-left:var(--stzh-space-large);padding-right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__header.sc-stzh-servicecard,.stzh-servicecard__columns.sc-stzh-servicecard{padding-left:var(--stzh-space-xlarge);padding-right:var(--stzh-space-xlarge)}}.stzh-servicecard__left.sc-stzh-servicecard{-ms-flex-item-align:center;align-self:center}.stzh-servicecard__title-area.sc-stzh-servicecard{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden}.stzh-servicecard__title.sc-stzh-servicecard,.stzh-servicecard__subtitle.sc-stzh-servicecard{margin:0}.stzh-servicecard__title.sc-stzh-servicecard{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-curve-h3-default-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h3-default-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-default-heading-letter-spacing);color:var(--stzh-base-lead-color)}@media screen and (min-width: 600px){.stzh-servicecard__title.sc-stzh-servicecard{font-size:var(--stzh-font-curve-h3-small-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h3-small-heading-line-height, var(--stzh-font-deci-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-small-heading-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-servicecard__title.sc-stzh-servicecard{font-size:var(--stzh-font-curve-h3-medium-font-size, var(--stzh-font-regular-font-size));line-height:var(--stzh-font-curve-h3-medium-heading-line-height, var(--stzh-font-regular-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-medium-heading-letter-spacing)}}.stzh-servicecard__subtitle.sc-stzh-servicecard{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;text-decoration:none;margin-left:-0.5625em}@media screen and (min-width: 1024px){.stzh-servicecard__subtitle.sc-stzh-servicecard{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-servicecard__subtitle-text.sc-stzh-servicecard{position:relative;display:-ms-inline-flexbox;display:inline-flex;padding-left:0.5625em}.stzh-servicecard__subtitle-text.sc-stzh-servicecard::after{content:",";position:absolute;left:0}.stzh-servicecard__columns.sc-stzh-servicecard{margin-top:var(--stzh-space-medium);margin-bottom:var(--stzh-space-medium);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}@media screen and (min-width: 1024px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-top:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){.stzh-servicecard__columns.sc-stzh-servicecard{display:grid;grid-template-columns:50% 50%;grid-template-rows:auto auto;margin-left:calc(var(--stzh-space-medium) / -1);margin-right:calc(var(--stzh-space-medium) / -1)}}@media screen and (min-width: 1024px){.stzh-servicecard__columns.sc-stzh-servicecard{grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto;margin-left:calc(var(--stzh-space-large) / -1);margin-right:calc(var(--stzh-space-large) / -1)}}@media screen and (min-width: 1260px){.stzh-servicecard__columns.sc-stzh-servicecard{margin-left:calc(var(--stzh-space-xlarge) / -1);margin-right:calc(var(--stzh-space-xlarge) / -1)}}@media screen and (min-width: 800px){.stzh-servicecard__column.sc-stzh-servicecard{padding-left:var(--stzh-space-medium);padding-right:var(--stzh-space-medium)}}@media screen and (min-width: 1024px){.stzh-servicecard__column.sc-stzh-servicecard{padding-left:var(--stzh-space-large);padding-right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-servicecard__column.sc-stzh-servicecard{padding-left:var(--stzh-space-xlarge);padding-right:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 2}}@media screen and (min-width: 1024px){.stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 2;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-middle.sc-stzh-servicecard{grid-column:2/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-right.sc-stzh-servicecard{align-self:end;grid-column:2/span 1;grid-row:2/span 1}}@media screen and (min-width: 1024px){.stzh-servicecard__column.is-right.sc-stzh-servicecard{grid-column:3/span 1;grid-row:1/span 1}}.stzh-servicecard__column.sc-stzh-servicecard:not(:empty):not(:first-child):not(.has-no-spacing){margin-top:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-servicecard__column.sc-stzh-servicecard:not(:empty):not(:first-child):not(.has-no-spacing){margin-top:0}}@media screen and (min-width: 800px){.stzh-servicecard__column.is-middle.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-right.sc-stzh-servicecard{margin-top:0}}.stzh-servicecard__column.is-left.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-middle.sc-stzh-servicecard:not(:empty),.stzh-servicecard__column.is-left.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-middle.sc-stzh-servicecard:empty+.stzh-servicecard__column.is-right.sc-stzh-servicecard:not(:empty){margin-top:0}.stzh-servicecard__card-actions.sc-stzh-servicecard{display:-ms-inline-flexbox;display:inline-flex;white-space:nowrap}@media screen and (max-width: 1023px){.stzh-servicecard__card-action.sc-stzh-servicecard{--icon-text-margin:0;--badge-icon-text-margin:0}}.stzh-servicecard__card-action[variant=tertiary].sc-stzh-servicecard{--color:var(--stzh-color-grey70)}.stzh-servicecard__card-action.is-button.sc-stzh-servicecard{--icon-size:var(--stzh-icon-size-small)}.stzh-servicecard__card-action.is-placeholder.sc-stzh-servicecard{width:var(--stzh-space-xxlarge);height:var(--stzh-space-xxlarge)}.stzh-servicecard__card-action-popover.sc-stzh-servicecard{--width:auto}@media screen and (min-width: 800px){.stzh-servicecard--has-middle.sc-stzh-servicecard .stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 2}}@media screen and (min-width: 1024px){.stzh-servicecard--has-middle.sc-stzh-servicecard .stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-right.sc-stzh-servicecard .stzh-servicecard__column.is-middle.sc-stzh-servicecard{margin-top:0}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-left.sc-stzh-servicecard{grid-column:1/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-right.sc-stzh-servicecard{grid-column:2/span 1;grid-row:1/span 2}}@media screen and (min-width: 1024px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-right.sc-stzh-servicecard{grid-column:3/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-middle.sc-stzh-servicecard{grid-column:1/span 1;grid-row:2/span 1}}@media screen and (min-width: 1024px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-middle.sc-stzh-servicecard{grid-column:2/span 1;grid-row:1/span 1}}@media screen and (min-width: 800px){.stzh-servicecard--middle-to-left.sc-stzh-servicecard .stzh-servicecard__column.is-right.sc-stzh-servicecard{margin-top:0}}.stzh-servicecard--has-subtitle-interactive.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard{cursor:pointer;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-servicecard--has-subtitle-interactive.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:hover,.stzh-servicecard--has-subtitle-interactive.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-servicecard--type-alert.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard{color:var(--stzh-color-error)}.stzh-servicecard--type-alert.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:hover,.stzh-servicecard--type-alert.sc-stzh-servicecard .stzh-servicecard__subtitle.sc-stzh-servicecard:focus{color:var(--stzh-color-error)}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .hide-when-collapsed.sc-stzh-servicecard,.stzh-servicecard--has-collapsed-header.sc-stzh-servicecard .stzh-servicecard__header.sc-stzh-servicecard .hide-when-collapsed.sc-stzh-servicecard{display:none}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .show-when-collapsed.sc-stzh-servicecard,.stzh-servicecard--has-collapsed-header.sc-stzh-servicecard .stzh-servicecard__header.sc-stzh-servicecard .show-when-collapsed.sc-stzh-servicecard{display:block}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .stzh-servicecard__header.sc-stzh-servicecard{border-bottom:none}.stzh-servicecard--is-collapsed.sc-stzh-servicecard .stzh-servicecard__card-action.sc-stzh-servicecard,.stzh-servicecard--has-collapsed-header.sc-stzh-servicecard .stzh-servicecard__card-action.sc-stzh-servicecard{--icon-text-margin:0;--badge-icon-text-margin:0}.stzh-servicecard--is-starred.sc-stzh-servicecard .stzh-servicecard__card-action.is-star.sc-stzh-servicecard{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-servicecard--is-starred.sc-stzh-servicecard .stzh-servicecard__card-action.is-star.sc-stzh-servicecard:hover,.stzh-servicecard--is-starred.sc-stzh-servicecard .stzh-servicecard__card-action.is-star.sc-stzh-servicecard:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}';export{o as stzh_servicecard}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,g as o}from"./p-65282c9d.js";import{h as r}from"./p-42430cdf.js";import{f as g}from"./p-1a40a6e4.js";import{S as l}from"./p-8ba6ca80.js";let h=0;const i=class{constructor(e){t(this,e),this.stzhChange=s(this,"stzhChange",7),this.stzhFocus=s(this,"stzhFocus",7),this.stzhBlur=s(this,"stzhBlur",7),this.disabled=!1,this.name="",this.value="",this.invalid=!1,this.required=!1,this.showMarker=!1,this.checked=!1,this.label="",this.labelPosition="right",this.a11yDescribedby="",this.onInput=t=>{this.checked=this.input.checked,this.stzhChange.emit({component:"stzh-toggle",originalEvent:t,value:this.value,checked:this.checked})},this.onFocus=t=>{const s=new FocusEvent("focus",{view:window,bubbles:!1,cancelable:!1});this.element.dispatchEvent(s),this.stzhFocus.emit({component:"stzh-toggle",originalEvent:t})},this.onBlur=t=>{const s=new FocusEvent("blur",{view:window,bubbles:!1,cancelable:!1});this.element.dispatchEvent(s),this.stzhBlur.emit({component:"stzh-toggle",originalEvent:t})}}async setFocus(){this.input.focus()}errorWatcher(t){if("string"==typeof t)try{this._error=JSON.parse(t)}catch(s){this._error=t?[t]:[]}else this._error=t||[];this.invalid=this._error.length>0}async componentWillLoad(){this.inputId="stzh-toggle-"+h++,this.errorWatcher(this.error),this.localization||(this.localization=await g(this.element,"toggle"))}render(){const t=r(this.element,"description")||!!this.description,s=r(this.element,"description-long")||!!this.descriptionLong,o=r(this.element,"error")||!!this.error;return e("div",{class:{"stzh-toggle":!0,"stzh-toggle--has-error":o,"stzh-toggle--is-required":this.required,"stzh-toggle--is-invalid":this.invalid,"stzh-toggle--is-disabled":this.disabled,"stzh-toggle--has-description":t,"stzh-toggle--has-description-long":s,[`stzh-toggle--has-label-${this.labelPosition}`]:!!this.labelPosition}},e("label",{class:"stzh-toggle__field-wrapper"},e("input",{class:"stzh-toggle__input",ref:t=>this.input=t,type:"checkbox",id:this.inputId,name:this.name,value:this.value,disabled:this.disabled,"aria-describedby":`${this.inputId}-description ${this.a11yDescribedby}`,"aria-required":this.required?"true":"false","aria-invalid":this.invalid?"true":"false",checked:this.checked,onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur}),e("div",{class:"stzh-toggle__mark"},e("div",{class:"stzh-toggle__check"})),e("div",{class:"stzh-toggle__label"},this.label?this.label:e("slot",null),this.showMarker&&e("span",{class:"stzh-toggle__marker"},e("span",{class:"stzh-toggle__marker-symbol","aria-hidden":"true"},this.required?this.localization.$globals.requiredFieldMarker:this.localization.$globals.optionalFieldMarker),e("span",{class:"stzh-toggle__marker-text"},this.required?this.localization.$globals.requiredFieldText:this.localization.$globals.optionalFieldText)))),e(l,{classPrefix:"stzh-toggle",id:`${this.inputId}-description`,error:this._error,description:this.description,descriptionLong:this.descriptionLong,descriptionLongUsed:s,moreInfoButtonLabel:this.localization.$globals.moreInfoButtonLabel}))}get element(){return o(this)}static get watchers(){return{error:["errorWatcher"]}}};i.style=".sc-stzh-toggle-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-toggle-h{display:none}.sc-stzh-toggle-h *.sc-stzh-toggle,.sc-stzh-toggle-h *.sc-stzh-toggle::before,.sc-stzh-toggle-h *.sc-stzh-toggle::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-toggle-h{display:inline-block;border-radius:var(--stzh-form-input-border-radius)}.sc-stzh-toggle-h .sc-stzh-toggle-s>stzh-text{--color:inherit}.stzh-toggle__marker-symbol.sc-stzh-toggle{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-toggle__marker-text.sc-stzh-toggle{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-toggle__description-wrapper.sc-stzh-toggle{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-toggle__error.sc-stzh-toggle,.stzh-toggle__description.sc-stzh-toggle{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-toggle__error.sc-stzh-toggle{color:var(--stzh-color-error)}.stzh-toggle__error-list.sc-stzh-toggle{list-style:none;margin:0;padding:0}.stzh-toggle__description.sc-stzh-toggle{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-toggle__description-long.sc-stzh-toggle{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-toggle__description-long-popover.sc-stzh-toggle{--width:auto;--max-width:27.3125rem}.stzh-toggle__description-long-popover[open].sc-stzh-toggle:not([open=false]) .stzh-toggle__description-long-button.sc-stzh-toggle{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-toggle__description-long-button.sc-stzh-toggle{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-base-lead-color)}.stzh-toggle__description-long-button.sc-stzh-toggle:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-toggle.sc-stzh-toggle stzh-icon.stzh-toggle__description-long-icon.sc-stzh-toggle{--size:var(--stzh-icon-size-xsmall)}.stzh-toggle--has-error.sc-stzh-toggle .stzh-toggle__error.sc-stzh-toggle,.stzh-toggle--has-description.sc-stzh-toggle .stzh-toggle__description.sc-stzh-toggle{margin-top:var(--stzh-space-xxsmall)}.stzh-toggle__field-wrapper.sc-stzh-toggle{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);position:relative;display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.stzh-toggle__input.sc-stzh-toggle{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;z-index:-1;opacity:0;pointer-events:none}.stzh-toggle__mark.sc-stzh-toggle{position:relative;background-color:var(--stzh-color-black8);width:2.75rem;height:1rem;-ms-flex-negative:0;flex-shrink:0;border-radius:0.75rem;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transition:background-color var(--stzh-base-transition-animation-speed);transition:background-color var(--stzh-base-transition-animation-speed);margin-top:0.25rem}.stzh-toggle__check.sc-stzh-toggle{position:absolute;border:0.125rem solid var(--stzh-base-color);width:1.5rem;height:1.5rem;border-radius:50%;background-color:var(--stzh-color-white);top:50%;left:0;-webkit-transform:translate(0, -50%);transform:translate(0, -50%);-webkit-transition-property:border-color, background-color, -webkit-transform;transition-property:border-color, background-color, -webkit-transform;transition-property:border-color, background-color, transform;transition-property:border-color, background-color, transform, -webkit-transform;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed)}.stzh-toggle__label.sc-stzh-toggle{display:inline-block;color:var(--stzh-base-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);line-height:1.5rem}.stzh-toggle__label.sc-stzh-toggle:empty{display:none}.stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle{background-color:var(--stzh-color-primary48)}.stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}.stzh-toggle.sc-stzh-toggle:hover .stzh-toggle__label.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:hover~.stzh-toggle__label.sc-stzh-toggle{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__label.sc-stzh-toggle{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-toggle.sc-stzh-toggle:hover .stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:focus:hover~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:hover~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:focus~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-toggle__input.sc-stzh-toggle:checked:hover~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:focus~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-toggle--has-label-right.sc-stzh-toggle .stzh-toggle__label.sc-stzh-toggle{margin-left:var(--stzh-space-xsmall)}.stzh-toggle--has-label-left.sc-stzh-toggle .stzh-toggle__field-wrapper.sc-stzh-toggle{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.stzh-toggle--has-label-left.sc-stzh-toggle .stzh-toggle__label.sc-stzh-toggle{margin-right:var(--stzh-space-xsmall)}.stzh-toggle--is-invalid.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle~.stzh-toggle__label.sc-stzh-toggle{color:var(--stzh-color-error)}.stzh-toggle--is-invalid.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:var(--stzh-color-error)}.stzh-toggle--is-invalid.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle{background-color:var(--stzh-color-black8)}.stzh-toggle--is-invalid.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{background-color:var(--stzh-color-error)}.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__field-wrapper.sc-stzh-toggle{cursor:not-allowed}.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle~.stzh-toggle__label.sc-stzh-toggle{color:var(--stzh-color-grey61)}.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:var(--stzh-color-grey25)}.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle{background-color:var(--stzh-color-black8)}.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{background-color:var(--stzh-color-grey25)}";export{i as stzh_toggle}
|
|
1
|
+
import{r as t,c as s,h as e,g as o}from"./p-65282c9d.js";import{h as r}from"./p-6c502e6e.js";import{f as g}from"./p-25a09313.js";import{S as l}from"./p-32b78d65.js";let h=0;const i=class{constructor(e){t(this,e),this.stzhChange=s(this,"stzhChange",7),this.stzhFocus=s(this,"stzhFocus",7),this.stzhBlur=s(this,"stzhBlur",7),this.disabled=!1,this.name="",this.value="",this.invalid=!1,this.required=!1,this.showMarker=!1,this.checked=!1,this.label="",this.labelPosition="right",this.a11yDescribedby="",this.onInput=t=>{this.checked=this.input.checked,this.stzhChange.emit({component:"stzh-toggle",originalEvent:t,value:this.value,checked:this.checked})},this.onFocus=t=>{const s=new FocusEvent("focus",{view:window,bubbles:!1,cancelable:!1});this.element.dispatchEvent(s),this.stzhFocus.emit({component:"stzh-toggle",originalEvent:t})},this.onBlur=t=>{const s=new FocusEvent("blur",{view:window,bubbles:!1,cancelable:!1});this.element.dispatchEvent(s),this.stzhBlur.emit({component:"stzh-toggle",originalEvent:t})}}async setFocus(){this.input.focus()}errorWatcher(t){if("string"==typeof t)try{this._error=JSON.parse(t)}catch(s){this._error=t?[t]:[]}else this._error=t||[];this.invalid=this._error.length>0}async componentWillLoad(){this.inputId="stzh-toggle-"+h++,this.errorWatcher(this.error),this.localization||(this.localization=await g(this.element,"toggle"))}render(){const t=r(this.element,"description")||!!this.description,s=r(this.element,"description-long")||!!this.descriptionLong,o=r(this.element,"error")||!!this.error;return e("div",{class:{"stzh-toggle":!0,"stzh-toggle--has-error":o,"stzh-toggle--is-required":this.required,"stzh-toggle--is-invalid":this.invalid,"stzh-toggle--is-disabled":this.disabled,"stzh-toggle--has-description":t,"stzh-toggle--has-description-long":s,[`stzh-toggle--has-label-${this.labelPosition}`]:!!this.labelPosition}},e("label",{class:"stzh-toggle__field-wrapper"},e("input",{class:"stzh-toggle__input",ref:t=>this.input=t,type:"checkbox",id:this.inputId,name:this.name,value:this.value,disabled:this.disabled,"aria-describedby":`${this.inputId}-description ${this.a11yDescribedby}`,"aria-required":this.required?"true":"false","aria-invalid":this.invalid?"true":"false",checked:this.checked,onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur}),e("div",{class:"stzh-toggle__mark"},e("div",{class:"stzh-toggle__check"})),e("div",{class:"stzh-toggle__label"},this.label?this.label:e("slot",null),this.showMarker&&e("span",{class:"stzh-toggle__marker"},e("span",{class:"stzh-toggle__marker-symbol","aria-hidden":"true"},this.required?this.localization.$globals.requiredFieldMarker:this.localization.$globals.optionalFieldMarker),e("span",{class:"stzh-toggle__marker-text"},this.required?this.localization.$globals.requiredFieldText:this.localization.$globals.optionalFieldText)))),e(l,{classPrefix:"stzh-toggle",id:`${this.inputId}-description`,error:this._error,description:this.description,descriptionLong:this.descriptionLong,descriptionLongUsed:s,moreInfoButtonLabel:this.localization.$globals.moreInfoButtonLabel}))}get element(){return o(this)}static get watchers(){return{error:["errorWatcher"]}}};i.style=".sc-stzh-toggle-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-toggle-h{display:none}.sc-stzh-toggle-h *.sc-stzh-toggle,.sc-stzh-toggle-h *.sc-stzh-toggle::before,.sc-stzh-toggle-h *.sc-stzh-toggle::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-toggle-h{display:inline-block;border-radius:var(--stzh-form-input-border-radius)}.sc-stzh-toggle-h .sc-stzh-toggle-s>stzh-text{--color:inherit}.stzh-toggle__marker-symbol.sc-stzh-toggle{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-toggle__marker-text.sc-stzh-toggle{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-toggle__description-wrapper.sc-stzh-toggle{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-toggle__error.sc-stzh-toggle,.stzh-toggle__description.sc-stzh-toggle{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-toggle__error.sc-stzh-toggle{color:var(--stzh-color-error)}.stzh-toggle__error-list.sc-stzh-toggle{list-style:none;margin:0;padding:0}.stzh-toggle__description.sc-stzh-toggle{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-toggle__description-long.sc-stzh-toggle{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-toggle__description-long-popover.sc-stzh-toggle{--width:auto;--max-width:27.3125rem}.stzh-toggle__description-long-popover[open].sc-stzh-toggle:not([open=false]) .stzh-toggle__description-long-button.sc-stzh-toggle{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-toggle__description-long-button.sc-stzh-toggle{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-base-lead-color)}.stzh-toggle__description-long-button.sc-stzh-toggle:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-toggle.sc-stzh-toggle stzh-icon.stzh-toggle__description-long-icon.sc-stzh-toggle{--size:var(--stzh-icon-size-xsmall)}.stzh-toggle--has-error.sc-stzh-toggle .stzh-toggle__error.sc-stzh-toggle,.stzh-toggle--has-description.sc-stzh-toggle .stzh-toggle__description.sc-stzh-toggle{margin-top:var(--stzh-space-xxsmall)}.stzh-toggle__field-wrapper.sc-stzh-toggle{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);position:relative;display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.stzh-toggle__input.sc-stzh-toggle{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;z-index:-1;opacity:0;pointer-events:none}.stzh-toggle__mark.sc-stzh-toggle{position:relative;background-color:var(--stzh-color-black8);width:2.75rem;height:1rem;-ms-flex-negative:0;flex-shrink:0;border-radius:0.75rem;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transition:background-color var(--stzh-base-transition-animation-speed);transition:background-color var(--stzh-base-transition-animation-speed);margin-top:0.25rem}.stzh-toggle__check.sc-stzh-toggle{position:absolute;border:0.125rem solid var(--stzh-base-color);width:1.5rem;height:1.5rem;border-radius:50%;background-color:var(--stzh-color-white);top:50%;left:0;-webkit-transform:translate(0, -50%);transform:translate(0, -50%);-webkit-transition-property:border-color, background-color, -webkit-transform;transition-property:border-color, background-color, -webkit-transform;transition-property:border-color, background-color, transform;transition-property:border-color, background-color, transform, -webkit-transform;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed)}.stzh-toggle__label.sc-stzh-toggle{display:inline-block;color:var(--stzh-base-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);line-height:1.5rem}.stzh-toggle__label.sc-stzh-toggle:empty{display:none}.stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle{background-color:var(--stzh-color-primary48)}.stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}.stzh-toggle.sc-stzh-toggle:hover .stzh-toggle__label.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:hover~.stzh-toggle__label.sc-stzh-toggle{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__label.sc-stzh-toggle{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-toggle.sc-stzh-toggle:hover .stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:focus:hover~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:hover~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:focus~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-toggle__input.sc-stzh-toggle:checked:hover~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle,.stzh-toggle__input.sc-stzh-toggle:checked:focus~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-toggle--has-label-right.sc-stzh-toggle .stzh-toggle__label.sc-stzh-toggle{margin-left:var(--stzh-space-xsmall)}.stzh-toggle--has-label-left.sc-stzh-toggle .stzh-toggle__field-wrapper.sc-stzh-toggle{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.stzh-toggle--has-label-left.sc-stzh-toggle .stzh-toggle__label.sc-stzh-toggle{margin-right:var(--stzh-space-xsmall)}.stzh-toggle--is-invalid.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle~.stzh-toggle__label.sc-stzh-toggle{color:var(--stzh-color-error)}.stzh-toggle--is-invalid.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:var(--stzh-color-error)}.stzh-toggle--is-invalid.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle{background-color:var(--stzh-color-black8)}.stzh-toggle--is-invalid.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{background-color:var(--stzh-color-error)}.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__field-wrapper.sc-stzh-toggle{cursor:not-allowed}.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle~.stzh-toggle__label.sc-stzh-toggle{color:var(--stzh-color-grey61)}.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{border-color:var(--stzh-color-grey25)}.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle{background-color:var(--stzh-color-black8)}.stzh-toggle--is-disabled.sc-stzh-toggle .stzh-toggle__input.sc-stzh-toggle:checked~.stzh-toggle__mark.sc-stzh-toggle .stzh-toggle__check.sc-stzh-toggle{background-color:var(--stzh-color-grey25)}";export{i as stzh_toggle}
|