@oiz/stzh-components 2.4.0-beta → 2.5.0-alpha-carousel
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/dist/cjs/{_commonjsHelpers-dcc4cf71.js → _commonjsHelpers-bcc1208a.js} +0 -16
- package/dist/cjs/app-globals-d7bd37fe.js +889 -0
- package/dist/cjs/{js.cookie-226c94ed.js → js.cookie-9c263d23.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-actions.cjs.entry.js +3 -1
- package/dist/cjs/stzh-actionset.cjs.entry.js +11 -6
- package/dist/cjs/stzh-appnav.cjs.entry.js +3 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js +20 -8
- package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card_3.cjs.entry.js +36 -29
- package/dist/cjs/stzh-carousel.cjs.entry.js +522 -0
- package/dist/cjs/stzh-chart.cjs.entry.js +5998 -5171
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +3 -1
- package/dist/cjs/stzh-chip_2.cjs.entry.js +82 -5
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datalist_2.cjs.entry.js +10 -3
- package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datatable.cjs.entry.js +16 -4
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +3 -1
- package/dist/cjs/stzh-dialog.cjs.entry.js +16 -13
- package/dist/cjs/stzh-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/stzh-footer.cjs.entry.js +3 -1
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +17 -4
- package/dist/cjs/stzh-header.cjs.entry.js +32 -27
- package/dist/cjs/stzh-hspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +1 -1
- package/dist/cjs/stzh-invert.cjs.entry.js +1 -1
- package/dist/cjs/stzh-link.cjs.entry.js +15 -4
- package/dist/cjs/stzh-loader.cjs.entry.js +1 -1
- package/dist/cjs/stzh-menu_2.cjs.entry.js +2 -2
- package/dist/cjs/stzh-message.cjs.entry.js +2 -2
- package/dist/cjs/stzh-metanav.cjs.entry.js +3 -1
- package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +1 -1
- package/dist/cjs/stzh-olmap.cjs.entry.js +1 -1
- package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +3 -1
- package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +4 -2
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +3 -1
- package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
- package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +1 -1
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +3 -1
- package/dist/cjs/stzh-sortable.cjs.entry.js +4 -2
- package/dist/cjs/stzh-space.cjs.entry.js +1 -1
- package/dist/cjs/stzh-sticky.cjs.entry.js +3 -1
- package/dist/cjs/stzh-table.cjs.entry.js +14 -4
- package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +16 -11
- package/dist/cjs/stzh-vspace.cjs.entry.js +1 -1
- package/dist/collection/assets/i18n/de.json +10 -0
- package/dist/collection/assets/i18n/en.json +11 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/stzh-actions/stzh-actions.js +3 -1
- package/dist/collection/components/stzh-actionset/stzh-actionset.js +11 -33
- package/dist/collection/components/stzh-appnav/stzh-appnav.js +3 -1
- package/dist/collection/components/stzh-button/stzh-button.css +16 -1
- package/dist/collection/components/stzh-button/stzh-button.js +73 -7
- package/dist/collection/components/stzh-calendar/stzh-calendar.css +1 -1
- package/dist/collection/components/stzh-card/stzh-card.css +34 -9
- package/dist/collection/components/stzh-card/stzh-card.js +52 -54
- package/dist/collection/components/stzh-carousel/stzh-carousel.css +253 -0
- package/dist/collection/components/stzh-carousel/stzh-carousel.js +966 -0
- package/dist/collection/components/stzh-carousel/stzh-carousel.localization.js +1 -0
- package/dist/collection/components/stzh-carousel/stzh-carousel.stories.js +138 -0
- package/dist/collection/components/stzh-chart/stzh-chart.css +101 -54
- package/dist/collection/components/stzh-chart/stzh-chart.stories.js +1 -0
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +3 -1
- package/dist/collection/components/stzh-chip/stzh-chip.css +19 -17
- package/dist/collection/components/stzh-chip/stzh-chip.js +2 -1
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +1 -1
- package/dist/collection/components/stzh-clamp/stzh-clamp.css +46 -160
- package/dist/collection/components/stzh-clamp/stzh-clamp.js +218 -8
- package/dist/collection/components/stzh-clamp/stzh-clamp.localization.js +1 -0
- package/dist/collection/components/stzh-clamp/stzh-clamp.stories.js +1 -1
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +36 -0
- package/dist/collection/components/stzh-datalist/stzh-datalist.js +18 -18
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +11 -0
- package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +28 -1
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +10 -0
- package/dist/collection/components/stzh-datatable/stzh-datatable.js +15 -12
- package/dist/collection/components/stzh-dialog/stzh-dialog.css +2 -2
- package/dist/collection/components/stzh-dialog/stzh-dialog.js +15 -12
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +1 -1
- package/dist/collection/components/stzh-footer/stzh-footer.js +3 -1
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.js +3 -1
- package/dist/collection/components/stzh-header/stzh-header.js +32 -45
- package/dist/collection/components/stzh-hspace/stzh-hspace.css +4 -0
- package/dist/collection/components/stzh-input/stzh-input.css +1 -1
- package/dist/collection/components/stzh-input/stzh-input.stories.js +12 -12
- package/dist/collection/components/stzh-invert/stzh-invert.css +4 -4
- package/dist/collection/components/stzh-link/stzh-link.css +11 -0
- package/dist/collection/components/stzh-link/stzh-link.js +68 -3
- package/dist/collection/components/stzh-loader/stzh-loader.css +4 -4
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +27 -27
- package/dist/collection/components/stzh-metanav/stzh-metanav.js +3 -1
- package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.js +1 -1
- package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.js +3 -1
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +3 -1
- package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +4 -4
- package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.js +3 -1
- package/dist/collection/components/stzh-popover/stzh-popover.css +3 -3
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +118 -12
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +3 -1
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +3 -1
- package/dist/collection/components/stzh-richtext/stzh-richtext.css +14 -3
- package/dist/collection/components/stzh-richtext/stzh-richtext.js +32 -0
- package/dist/collection/components/stzh-sortable/stzh-sortable.css +1 -1
- package/dist/collection/components/stzh-sortable/stzh-sortable.js +3 -1
- package/dist/collection/components/stzh-space/stzh-space.css +4 -0
- package/dist/collection/components/stzh-sticky/stzh-sticky.js +3 -1
- package/dist/collection/components/stzh-table/stzh-table.js +14 -13
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js +16 -11
- package/dist/collection/components/stzh-vspace/stzh-vspace.css +4 -0
- package/dist/collection/global/js/script.js +2 -0
- package/dist/components/_commonjsHelpers.js +1 -16
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +835 -1
- package/dist/components/stzh-actions.js +3 -1
- package/dist/components/stzh-actionset2.js +12 -7
- package/dist/components/stzh-appnav.js +3 -1
- package/dist/components/stzh-button2.js +23 -8
- package/dist/components/stzh-calendar2.js +1 -1
- package/dist/components/stzh-card2.js +37 -29
- package/dist/components/stzh-carousel.d.ts +11 -0
- package/dist/components/stzh-carousel.js +568 -0
- package/dist/components/stzh-chart.js +5995 -5168
- package/dist/components/stzh-checkboxgroup.js +3 -1
- package/dist/components/stzh-chip-select2.js +21 -9
- package/dist/components/stzh-chip2.js +19 -6
- package/dist/components/stzh-clamp2.js +110 -11
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-datalist-item2.js +10 -2
- package/dist/components/stzh-datalist2.js +3 -3
- package/dist/components/stzh-datamessagelist-item.js +17 -11
- package/dist/components/stzh-datatable.js +16 -4
- package/dist/components/stzh-dialog.js +16 -13
- package/dist/components/stzh-dropdown2.js +1 -1
- package/dist/components/stzh-footer.js +3 -1
- package/dist/components/stzh-ghettobox2.js +3 -1
- package/dist/components/stzh-header.js +33 -28
- package/dist/components/stzh-hspace.js +1 -1
- package/dist/components/stzh-input2.js +1 -1
- package/dist/components/stzh-invert.js +1 -1
- package/dist/components/stzh-link2.js +18 -4
- package/dist/components/stzh-loader2.js +1 -1
- package/dist/components/stzh-menu-item2.js +4 -4
- package/dist/components/stzh-metanav.js +3 -1
- package/dist/components/stzh-microsite-teaserlist.js +1 -1
- package/dist/components/stzh-page-skiplinks.js +3 -1
- package/dist/components/stzh-pagetitle-hero.js +4 -2
- package/dist/components/stzh-pagetitle.js +3 -1
- package/dist/components/stzh-popover2.js +1 -1
- package/dist/components/stzh-portal-mitwirken.js +1 -1
- package/dist/components/stzh-radiogroup2.js +3 -1
- package/dist/components/stzh-readspeaker.js +3 -1
- package/dist/components/stzh-richtext2.js +14 -1
- package/dist/components/stzh-sortable2.js +4 -2
- package/dist/components/stzh-space.js +1 -1
- package/dist/components/stzh-sticky.js +3 -1
- package/dist/components/stzh-table.js +15 -5
- package/dist/components/stzh-upload.js +1 -1
- package/dist/components/stzh-vbz-ticker.js +16 -11
- package/dist/components/stzh-vspace.js +1 -1
- package/dist/esm/{_commonjsHelpers-f9dc4873.js → _commonjsHelpers-ba3f0406.js} +1 -16
- package/dist/esm/app-globals-62e1178d.js +887 -0
- package/dist/esm/{js.cookie-53735b72.js → js.cookie-28a40640.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-actions.entry.js +3 -1
- package/dist/esm/stzh-actionset.entry.js +11 -6
- package/dist/esm/stzh-appnav.entry.js +3 -1
- package/dist/esm/stzh-badge_3.entry.js +20 -8
- package/dist/esm/stzh-calendar.entry.js +1 -1
- package/dist/esm/stzh-card_3.entry.js +36 -29
- package/dist/esm/stzh-carousel.entry.js +518 -0
- package/dist/esm/stzh-chart.entry.js +5995 -5168
- package/dist/esm/stzh-checkboxgroup.entry.js +3 -1
- package/dist/esm/stzh-chip_2.entry.js +82 -5
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-cspace.entry.js +1 -1
- package/dist/esm/stzh-datalist_2.entry.js +10 -3
- package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
- package/dist/esm/stzh-datatable.entry.js +16 -4
- package/dist/esm/stzh-datepicker_3.entry.js +3 -1
- package/dist/esm/stzh-dialog.entry.js +16 -13
- package/dist/esm/stzh-dropdown.entry.js +2 -2
- package/dist/esm/stzh-footer.entry.js +3 -1
- package/dist/esm/stzh-ghettobox_2.entry.js +17 -4
- package/dist/esm/stzh-header.entry.js +32 -27
- package/dist/esm/stzh-hspace.entry.js +1 -1
- package/dist/esm/stzh-input.entry.js +1 -1
- package/dist/esm/stzh-invert.entry.js +1 -1
- package/dist/esm/stzh-link.entry.js +15 -4
- package/dist/esm/stzh-loader.entry.js +1 -1
- package/dist/esm/stzh-menu_2.entry.js +2 -2
- package/dist/esm/stzh-message.entry.js +2 -2
- package/dist/esm/stzh-metanav.entry.js +3 -1
- package/dist/esm/stzh-microsite-teaserlist.entry.js +1 -1
- package/dist/esm/stzh-olmap.entry.js +1 -1
- package/dist/esm/stzh-page-skiplinks.entry.js +3 -1
- package/dist/esm/stzh-pagetitle-hero.entry.js +4 -2
- package/dist/esm/stzh-pagetitle.entry.js +3 -1
- package/dist/esm/stzh-popover.entry.js +1 -1
- package/dist/esm/stzh-portal-mitwirken.entry.js +1 -1
- package/dist/esm/stzh-readspeaker.entry.js +3 -1
- package/dist/esm/stzh-sortable.entry.js +4 -2
- package/dist/esm/stzh-space.entry.js +1 -1
- package/dist/esm/stzh-sticky.entry.js +3 -1
- package/dist/esm/stzh-table.entry.js +14 -4
- package/dist/esm/stzh-upload.entry.js +1 -1
- package/dist/esm/stzh-vbz-linechip.entry.js +1 -1
- package/dist/esm/stzh-vbz-ticker.entry.js +16 -11
- package/dist/esm/stzh-vspace.entry.js +1 -1
- package/dist/esm-es5/_commonjsHelpers-ba3f0406.js +1 -0
- package/dist/esm-es5/app-globals-62e1178d.js +1 -0
- package/dist/esm-es5/{js.cookie-53735b72.js → js.cookie-28a40640.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/stzh-actions.entry.js +1 -1
- package/dist/esm-es5/stzh-actionset.entry.js +1 -1
- package/dist/esm-es5/stzh-appnav.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-card_3.entry.js +1 -1
- package/dist/esm-es5/stzh-carousel.entry.js +1 -0
- package/dist/esm-es5/stzh-chart.entry.js +3 -3
- package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-cspace.entry.js +1 -1
- package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
- package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
- package/dist/esm-es5/stzh-datatable.entry.js +2 -2
- package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm-es5/stzh-dialog.entry.js +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +2 -2
- 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-hspace.entry.js +1 -1
- package/dist/esm-es5/stzh-input.entry.js +1 -1
- package/dist/esm-es5/stzh-invert.entry.js +1 -1
- package/dist/esm-es5/stzh-link.entry.js +1 -1
- package/dist/esm-es5/stzh-loader.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-metanav.entry.js +1 -1
- package/dist/esm-es5/stzh-microsite-teaserlist.entry.js +1 -1
- package/dist/esm-es5/stzh-olmap.entry.js +1 -1
- package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle-hero.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-portal-mitwirken.entry.js +1 -1
- package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
- package/dist/esm-es5/stzh-sortable.entry.js +2 -2
- package/dist/esm-es5/stzh-space.entry.js +1 -1
- package/dist/esm-es5/stzh-sticky.entry.js +1 -1
- package/dist/esm-es5/stzh-table.entry.js +1 -1
- package/dist/esm-es5/stzh-upload.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
- package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
- package/dist/esm-es5/stzh-vspace.entry.js +1 -1
- package/dist/stzh-components/assets/i18n/de.json +10 -0
- package/dist/stzh-components/assets/i18n/en.json +11 -1
- package/dist/stzh-components/p-0a408348.entry.js +1 -0
- package/dist/stzh-components/{p-ff328114.system.entry.js → p-0c779613.system.entry.js} +1 -1
- package/dist/stzh-components/{p-55752bd5.system.entry.js → p-0e690e3e.system.entry.js} +1 -1
- package/dist/stzh-components/p-10b4fedd.system.entry.js +1 -0
- package/dist/stzh-components/p-14729939.entry.js +1 -0
- package/dist/stzh-components/p-1494b502.entry.js +1 -0
- package/dist/stzh-components/p-14d5a56d.entry.js +1 -0
- package/dist/stzh-components/p-205f5111.system.entry.js +1 -0
- package/dist/stzh-components/{p-c8cc2563.system.entry.js → p-263fd0bb.system.entry.js} +1 -1
- package/dist/stzh-components/p-2ed20db5.entry.js +1 -0
- package/dist/stzh-components/p-322e74e9.system.entry.js +1 -0
- package/dist/stzh-components/p-353294ce.entry.js +1 -0
- package/dist/stzh-components/p-396697db.system.entry.js +1 -0
- package/dist/stzh-components/p-3a73b8b5.system.js +1 -0
- package/dist/stzh-components/p-3af95b5d.entry.js +1 -0
- package/dist/stzh-components/p-3e8ff66b.js +1 -0
- package/dist/stzh-components/p-3f80ce87.entry.js +1 -0
- package/dist/stzh-components/{p-c2f909c1.system.entry.js → p-3fc51ad1.system.entry.js} +1 -1
- package/dist/stzh-components/p-4453449f.entry.js +1 -0
- package/dist/stzh-components/{p-6a94e520.system.entry.js → p-454e50f8.system.entry.js} +1 -1
- package/dist/stzh-components/{p-d54ff4d4.system.entry.js → p-47175c6f.system.entry.js} +1 -1
- package/dist/stzh-components/p-48d40c7c.system.entry.js +1 -0
- package/dist/stzh-components/{p-5c72664e.system.entry.js → p-4acb6752.system.entry.js} +1 -1
- package/dist/stzh-components/{p-b1ffc2a9.system.entry.js → p-4b995fe4.system.entry.js} +1 -1
- package/dist/stzh-components/{p-be97cb22.entry.js → p-4da7ebff.entry.js} +1 -1
- package/dist/stzh-components/p-4f8085e5.entry.js +1 -0
- package/dist/stzh-components/{p-2f4448c9.system.entry.js → p-558f336d.system.entry.js} +1 -1
- package/dist/stzh-components/p-5a4aef52.entry.js +1 -0
- package/dist/stzh-components/{p-484a366f.system.js → p-5db542ae.system.js} +1 -1
- package/dist/stzh-components/{p-72a62d0d.system.entry.js → p-6659b6f6.system.entry.js} +1 -1
- package/dist/stzh-components/{p-f3276ca5.system.entry.js → p-6a109ce9.system.entry.js} +1 -1
- package/dist/stzh-components/{p-1a98470f.system.entry.js → p-6a26c9eb.system.entry.js} +1 -1
- package/dist/stzh-components/p-6bc7f44a.entry.js +1 -0
- package/dist/stzh-components/{p-02d51685.entry.js → p-6ee87986.entry.js} +1 -1
- package/dist/stzh-components/p-7ff1640c.entry.js +1 -0
- package/dist/stzh-components/{p-26889a91.entry.js → p-814e5ae7.entry.js} +2 -2
- package/dist/stzh-components/p-821ca4af.system.entry.js +1 -0
- package/dist/stzh-components/{p-2b67b0b3.system.entry.js → p-884793dd.system.entry.js} +2 -2
- package/dist/stzh-components/{p-a32ae73a.system.entry.js → p-88fbb2fc.system.entry.js} +2 -2
- package/dist/stzh-components/p-8b16550d.entry.js +1 -0
- package/dist/stzh-components/{p-963a7526.system.entry.js → p-8c371d1d.system.entry.js} +1 -1
- package/dist/stzh-components/p-8eda017e.entry.js +1 -0
- package/dist/stzh-components/p-949f7885.system.js +1 -0
- package/dist/stzh-components/{p-6adc5f0c.system.entry.js → p-95bfbf67.system.entry.js} +1 -1
- package/dist/stzh-components/p-99d85a97.entry.js +1 -0
- package/dist/stzh-components/p-9a94b249.system.entry.js +1 -0
- package/dist/stzh-components/{p-32a03d1c.entry.js → p-9ed30a9f.entry.js} +1 -1
- package/dist/stzh-components/{p-febba79b.entry.js → p-9f29e6c3.entry.js} +1 -1
- package/dist/stzh-components/{p-67816aa4.entry.js → p-a0b2739a.entry.js} +1 -1
- package/dist/stzh-components/p-a2121744.system.entry.js +1 -0
- package/dist/stzh-components/p-a22ac109.entry.js +1 -0
- package/dist/stzh-components/p-a3bf419d.entry.js +1 -0
- package/dist/stzh-components/{p-c9c7d88a.entry.js → p-a47e205f.entry.js} +1 -1
- package/dist/stzh-components/p-aa2c81e6.system.entry.js +3 -0
- package/dist/stzh-components/{p-088b16c6.system.entry.js → p-abf13db9.system.entry.js} +1 -1
- package/dist/stzh-components/p-ad96eb50.entry.js +1 -0
- package/dist/stzh-components/p-ae7255f6.entry.js +1 -0
- package/dist/stzh-components/p-af05718d.system.entry.js +1 -0
- package/dist/stzh-components/p-af9aac53.entry.js +3 -0
- package/dist/stzh-components/{p-24b8df26.js → p-b10682ee.js} +1 -1
- package/dist/stzh-components/p-b4c28bf5.entry.js +1 -0
- package/dist/stzh-components/p-b4db3558.js +1 -0
- package/dist/stzh-components/p-b61f7404.entry.js +1 -0
- package/dist/stzh-components/p-b9adebdc.entry.js +1 -0
- package/dist/stzh-components/{p-c4c620fa.system.entry.js → p-b9bd42e6.system.entry.js} +1 -1
- package/dist/stzh-components/p-b9f784e4.system.entry.js +1 -0
- package/dist/stzh-components/{p-b92734db.entry.js → p-bcfba21f.entry.js} +1 -1
- package/dist/stzh-components/p-bd1a5d6d.system.entry.js +1 -0
- package/dist/stzh-components/p-c457dad2.system.entry.js +1 -0
- package/dist/stzh-components/{p-f8feb07b.entry.js → p-c80a9d50.entry.js} +1 -1
- package/dist/stzh-components/p-c9940c35.entry.js +1 -0
- package/dist/stzh-components/p-cab1a192.entry.js +1 -0
- package/dist/stzh-components/p-cd59cead.system.js +1 -0
- package/dist/stzh-components/{p-102e2bcd.system.entry.js → p-cd979ce9.system.entry.js} +1 -1
- package/dist/stzh-components/{p-512c38b3.system.entry.js → p-ce5db779.system.entry.js} +1 -1
- package/dist/stzh-components/p-d29fd401.entry.js +1 -0
- package/dist/stzh-components/{p-7e4261ce.system.entry.js → p-d5514e5b.system.entry.js} +1 -1
- package/dist/stzh-components/{p-51b3a560.system.entry.js → p-d585e8fd.system.entry.js} +1 -1
- package/dist/stzh-components/p-d5994419.system.entry.js +1 -0
- package/dist/stzh-components/p-d6e5f396.system.entry.js +1 -0
- package/dist/stzh-components/{p-444b2baf.entry.js → p-e085a0a0.entry.js} +1 -1
- package/dist/stzh-components/p-e1501622.system.entry.js +1 -0
- package/dist/stzh-components/p-e2d80ee3.entry.js +1 -0
- package/dist/stzh-components/p-e4aa12ba.system.entry.js +1 -0
- package/dist/stzh-components/p-e54f66ea.system.entry.js +1 -0
- package/dist/stzh-components/{p-d9ae09b5.entry.js → p-eb16ad0d.entry.js} +2 -2
- package/dist/stzh-components/p-eb1ea7f0.entry.js +1 -0
- package/dist/stzh-components/{p-e1b2785b.entry.js → p-ec87506f.entry.js} +1 -1
- package/dist/stzh-components/{p-309fc559.system.entry.js → p-ee20b95b.system.entry.js} +1 -1
- package/dist/stzh-components/p-f122e15d.system.entry.js +1 -0
- package/dist/stzh-components/{p-809ed955.system.entry.js → p-f27d1a06.system.entry.js} +1 -1
- package/dist/stzh-components/p-f449f909.entry.js +1 -0
- package/dist/stzh-components/{p-af67ea5e.entry.js → p-f4c0d928.entry.js} +1 -1
- package/dist/stzh-components/p-f725921a.entry.js +1 -0
- package/dist/stzh-components/p-fe1c8047.system.entry.js +1 -0
- package/dist/stzh-components/stzh-components.css +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-carousel/stzh-carousel.localization.d.ts +5 -0
- package/dist/types/components/stzh-clamp/stzh-clamp.localization.d.ts +5 -0
- package/dist/types/components.d.ts +250 -2
- package/dist/types/index.d.ts +20 -0
- package/dist/types/utils/translation-utils.d.ts +2 -0
- package/dist/vscode-data.json +106 -17
- package/package.json +6 -4
- package/dist/cjs/app-globals-57922fc2.js +0 -56
- package/dist/esm/app-globals-b848652e.js +0 -54
- package/dist/esm-es5/_commonjsHelpers-f9dc4873.js +0 -1
- package/dist/esm-es5/app-globals-b848652e.js +0 -1
- package/dist/stzh-components/p-07dc23a3.system.entry.js +0 -1
- package/dist/stzh-components/p-0ba944ab.entry.js +0 -1
- package/dist/stzh-components/p-12856e02.system.entry.js +0 -1
- package/dist/stzh-components/p-16c0b9ae.entry.js +0 -3
- package/dist/stzh-components/p-18e20038.entry.js +0 -1
- package/dist/stzh-components/p-1bcda13d.system.entry.js +0 -1
- package/dist/stzh-components/p-1d435dd8.system.entry.js +0 -1
- package/dist/stzh-components/p-1f74846f.entry.js +0 -1
- package/dist/stzh-components/p-29e9ad9f.system.entry.js +0 -1
- package/dist/stzh-components/p-30a9de85.system.entry.js +0 -1
- package/dist/stzh-components/p-37920e74.system.entry.js +0 -1
- package/dist/stzh-components/p-4633b93d.entry.js +0 -1
- package/dist/stzh-components/p-4c60da30.entry.js +0 -1
- package/dist/stzh-components/p-4eee30ea.system.entry.js +0 -1
- package/dist/stzh-components/p-532b4218.entry.js +0 -1
- package/dist/stzh-components/p-5d55a672.system.entry.js +0 -1
- package/dist/stzh-components/p-64cdef2f.entry.js +0 -1
- package/dist/stzh-components/p-65918f6f.system.js +0 -1
- package/dist/stzh-components/p-761ee059.entry.js +0 -1
- package/dist/stzh-components/p-798ac79c.entry.js +0 -1
- package/dist/stzh-components/p-7f857e56.entry.js +0 -1
- package/dist/stzh-components/p-84a6e023.system.entry.js +0 -1
- package/dist/stzh-components/p-89bd0d46.entry.js +0 -1
- package/dist/stzh-components/p-8caafed2.system.entry.js +0 -1
- package/dist/stzh-components/p-923dffc7.entry.js +0 -1
- package/dist/stzh-components/p-94662bed.system.js +0 -1
- package/dist/stzh-components/p-951b04ab.entry.js +0 -1
- package/dist/stzh-components/p-990f395b.entry.js +0 -1
- package/dist/stzh-components/p-99b82949.entry.js +0 -1
- package/dist/stzh-components/p-9be21c72.entry.js +0 -1
- package/dist/stzh-components/p-9c35c9cd.entry.js +0 -1
- package/dist/stzh-components/p-9c90535a.system.js +0 -1
- package/dist/stzh-components/p-9de8b25b.entry.js +0 -1
- package/dist/stzh-components/p-a11ef2d6.system.entry.js +0 -1
- package/dist/stzh-components/p-a691fe87.js +0 -1
- package/dist/stzh-components/p-a6be6aca.system.entry.js +0 -1
- package/dist/stzh-components/p-a6d4a8b1.js +0 -1
- package/dist/stzh-components/p-a7eb3e02.system.entry.js +0 -1
- package/dist/stzh-components/p-ae38f1d2.entry.js +0 -1
- package/dist/stzh-components/p-b04a9d0f.system.entry.js +0 -1
- package/dist/stzh-components/p-b422041d.entry.js +0 -1
- package/dist/stzh-components/p-b9372a2a.entry.js +0 -1
- package/dist/stzh-components/p-bb698e26.entry.js +0 -1
- package/dist/stzh-components/p-bc545121.entry.js +0 -1
- package/dist/stzh-components/p-c2a22eb8.entry.js +0 -1
- package/dist/stzh-components/p-cc722b35.system.entry.js +0 -3
- package/dist/stzh-components/p-d1cfe06b.entry.js +0 -1
- package/dist/stzh-components/p-d943e02c.system.entry.js +0 -1
- package/dist/stzh-components/p-db306e24.entry.js +0 -1
- package/dist/stzh-components/p-e4a8f1bc.system.entry.js +0 -1
- package/dist/stzh-components/p-ed783154.system.entry.js +0 -1
- package/dist/stzh-components/p-ee4b939a.entry.js +0 -1
- package/dist/stzh-components/p-f0e2a32d.entry.js +0 -1
- package/dist/stzh-components/p-fd15cc86.entry.js +0 -1
- package/dist/types/components/stzh-clamp/stzh-clamp.d.ts +0 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(r,o,a,t){function n(r){return r instanceof a?r:new a((function(o){o(r)}))}return new(a||(a=Promise))((function(a,e){function b(r){try{c(t.next(r))}catch(o){e(o)}}function i(r){try{c(t["throw"](r))}catch(o){e(o)}}function c(r){r.done?a(r.value):n(r.value).then(b,i)}c((t=t.apply(r,o||[])).next())}))};var __generator=this&&this.__generator||function(r,o){var a={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},t,n,e,b;return b={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(b[Symbol.iterator]=function(){return this}),b;function i(r){return function(o){return c([r,o])}}function c(i){if(t)throw new TypeError("Generator is already executing.");while(b&&(b=0,i[0]&&(a=0)),a)try{if(t=1,n&&(e=i[0]&2?n["return"]:i[0]?n["throw"]||((e=n["return"])&&e.call(n),0):n.next)&&!(e=e.call(n,i[1])).done)return e;if(n=0,e)i=[i[0]&2,e.value];switch(i[0]){case 0:case 1:e=i;break;case 4:a.label++;return{value:i[1],done:false};case 5:a.label++;n=i[1];i=[0];continue;case 7:i=a.ops.pop();a.trys.pop();continue;default:if(!(e=a.trys,e=e.length>0&&e[e.length-1])&&(i[0]===6||i[0]===2)){a=0;continue}if(i[0]===3&&(!e||i[1]>e[0]&&i[1]<e[3])){a.label=i[1];break}if(i[0]===6&&a.label<e[1]){a.label=e[1];e=i;break}if(e&&a.label<e[2]){a.label=e[2];a.ops.push(i);break}if(e[2])a.ops.pop();a.trys.pop();continue}i=o.call(r,a)}catch(c){i=[6,c];n=0}finally{t=e=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};import{r as registerInstance,e as createEvent,h,c as Host,g as getElement}from"./index-319b7c49.js";import{c as createCommonjsModule,b as commonjsGlobal}from"./_commonjsHelpers-f9dc4873.js";var tinycolor=createCommonjsModule((function(r,o){(function(o,a){r.exports=a()})(commonjsGlobal,(function(){var r=/^\s+/;var o=/\s+$/;function a(r,o){r=r?r:"";o=o||{};if(r instanceof a){return r}if(!(this instanceof a)){return new a(r,o)}var n=t(r);this._originalInput=r,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=o.format||n.format;this._gradientType=o.gradientType;if(this._r<1)this._r=Math.round(this._r);if(this._g<1)this._g=Math.round(this._g);if(this._b<1)this._b=Math.round(this._b);this._ok=n.ok}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},getLuminance:function(){var r=this.toRgb();var o,a,t,n,e,b;o=r.r/255;a=r.g/255;t=r.b/255;if(o<=.03928)n=o/12.92;else n=Math.pow((o+.055)/1.055,2.4);if(a<=.03928)e=a/12.92;else e=Math.pow((a+.055)/1.055,2.4);if(t<=.03928)b=t/12.92;else b=Math.pow((t+.055)/1.055,2.4);return.2126*n+.7152*e+.0722*b},setAlpha:function(r){this._a=M(r);this._roundA=Math.round(100*this._a)/100;return this},toHsv:function(){var r=i(this._r,this._g,this._b);return{h:r.h*360,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=i(this._r,this._g,this._b);var o=Math.round(r.h*360),a=Math.round(r.s*100),t=Math.round(r.v*100);return this._a==1?"hsv("+o+", "+a+"%, "+t+"%)":"hsva("+o+", "+a+"%, "+t+"%, "+this._roundA+")"},toHsl:function(){var r=e(this._r,this._g,this._b);return{h:r.h*360,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=e(this._r,this._g,this._b);var o=Math.round(r.h*360),a=Math.round(r.s*100),t=Math.round(r.l*100);return this._a==1?"hsl("+o+", "+a+"%, "+t+"%)":"hsla("+o+", "+a+"%, "+t+"%, "+this._roundA+")"},toHex:function(r){return g(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return l(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(A(this._r,255)*100)+"%",g:Math.round(A(this._g,255)*100)+"%",b:Math.round(A(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(A(this._r,255)*100)+"%, "+Math.round(A(this._g,255)*100)+"%, "+Math.round(A(this._b,255)*100)+"%)":"rgba("+Math.round(A(this._r,255)*100)+"%, "+Math.round(A(this._g,255)*100)+"%, "+Math.round(A(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){if(this._a===0){return"transparent"}if(this._a<1){return false}return x[g(this._r,this._g,this._b,true)]||false},toFilter:function(r){var o="#"+s(this._r,this._g,this._b,this._a);var t=o;var n=this._gradientType?"GradientType = 1, ":"";if(r){var e=a(r);t="#"+s(e._r,e._g,e._b,e._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+o+",endColorstr="+t+")"},toString:function(r){var o=!!r;r=r||this._format;var a=false;var t=this._a<1&&this._a>=0;var n=!o&&t&&(r==="hex"||r==="hex6"||r==="hex3"||r==="hex4"||r==="hex8"||r==="name");if(n){if(r==="name"&&this._a===0){return this.toName()}return this.toRgbString()}if(r==="rgb"){a=this.toRgbString()}if(r==="prgb"){a=this.toPercentageRgbString()}if(r==="hex"||r==="hex6"){a=this.toHexString()}if(r==="hex3"){a=this.toHexString(true)}if(r==="hex4"){a=this.toHex8String(true)}if(r==="hex8"){a=this.toHex8String()}if(r==="name"){a=this.toName()}if(r==="hsl"){a=this.toHslString()}if(r==="hsv"){a=this.toHsvString()}return a||this.toHexString()},clone:function(){return a(this.toString())},_applyModification:function(r,o){var a=r.apply(null,[this].concat([].slice.call(o)));this._r=a._r;this._g=a._g;this._b=a._b;this.setAlpha(a._a);return this},lighten:function(){return this._applyModification(d,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(f,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(r,o){return r.apply(null,[this].concat([].slice.call(o)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(_,[3])},tetrad:function(){return this._applyCombination(_,[4])}};a.fromRatio=function(r,o){if(typeof r=="object"){var t={};for(var n in r){if(r.hasOwnProperty(n)){if(n==="a"){t[n]=r[n]}else{t[n]=j(r[n])}}}r=t}return a(r,o)};function t(r){var o={r:0,g:0,b:0};var a=1;var t=null;var e=null;var i=null;var g=false;var l=false;if(typeof r=="string"){r=P(r)}if(typeof r=="object"){if(B(r.r)&&B(r.g)&&B(r.b)){o=n(r.r,r.g,r.b);g=true;l=String(r.r).substr(-1)==="%"?"prgb":"rgb"}else if(B(r.h)&&B(r.s)&&B(r.v)){t=j(r.s);e=j(r.v);o=c(r.h,t,e);g=true;l="hsv"}else if(B(r.h)&&B(r.s)&&B(r.l)){t=j(r.s);i=j(r.l);o=b(r.h,t,i);g=true;l="hsl"}if(r.hasOwnProperty("a")){a=r.a}}a=M(a);return{ok:g,format:r.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:a}}function n(r,o,a){return{r:A(r,255)*255,g:A(o,255)*255,b:A(a,255)*255}}function e(r,o,a){r=A(r,255);o=A(o,255);a=A(a,255);var t=Math.max(r,o,a),n=Math.min(r,o,a);var e,b,i=(t+n)/2;if(t==n){e=b=0}else{var c=t-n;b=i>.5?c/(2-t-n):c/(t+n);switch(t){case r:e=(o-a)/c+(o<a?6:0);break;case o:e=(a-r)/c+2;break;case a:e=(r-o)/c+4;break}e/=6}return{h:e,s:b,l:i}}function b(r,o,a){var t,n,e;r=A(r,360);o=A(o,100);a=A(a,100);function b(r,o,a){if(a<0)a+=1;if(a>1)a-=1;if(a<1/6)return r+(o-r)*6*a;if(a<1/2)return o;if(a<2/3)return r+(o-r)*(2/3-a)*6;return r}if(o===0){t=n=e=a}else{var i=a<.5?a*(1+o):a+o-a*o;var c=2*a-i;t=b(c,i,r+1/3);n=b(c,i,r);e=b(c,i,r-1/3)}return{r:t*255,g:n*255,b:e*255}}function i(r,o,a){r=A(r,255);o=A(o,255);a=A(a,255);var t=Math.max(r,o,a),n=Math.min(r,o,a);var e,b,i=t;var c=t-n;b=t===0?0:c/t;if(t==n){e=0}else{switch(t){case r:e=(o-a)/c+(o<a?6:0);break;case o:e=(a-r)/c+2;break;case a:e=(r-o)/c+4;break}e/=6}return{h:e,s:b,v:i}}function c(r,o,a){r=A(r,360)*6;o=A(o,100);a=A(a,100);var t=Math.floor(r),n=r-t,e=a*(1-o),b=a*(1-n*o),i=a*(1-(1-n)*o),c=t%6,g=[a,b,e,e,i,a][c],l=[i,a,a,b,e,e][c],s=[e,e,i,a,a,b][c];return{r:g*255,g:l*255,b:s*255}}function g(r,o,a,t){var n=[C(Math.round(r).toString(16)),C(Math.round(o).toString(16)),C(Math.round(a).toString(16))];if(t&&n[0].charAt(0)==n[0].charAt(1)&&n[1].charAt(0)==n[1].charAt(1)&&n[2].charAt(0)==n[2].charAt(1)){return n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0)}return n.join("")}function l(r,o,a,t,n){var e=[C(Math.round(r).toString(16)),C(Math.round(o).toString(16)),C(Math.round(a).toString(16)),C(L(t))];if(n&&e[0].charAt(0)==e[0].charAt(1)&&e[1].charAt(0)==e[1].charAt(1)&&e[2].charAt(0)==e[2].charAt(1)&&e[3].charAt(0)==e[3].charAt(1)){return e[0].charAt(0)+e[1].charAt(0)+e[2].charAt(0)+e[3].charAt(0)}return e.join("")}function s(r,o,a,t){var n=[C(L(t)),C(Math.round(r).toString(16)),C(Math.round(o).toString(16)),C(Math.round(a).toString(16))];return n.join("")}a.equals=function(r,o){if(!r||!o)return false;return a(r).toRgbString()==a(o).toRgbString()};a.random=function(){return a.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function u(r,o){o=o===0?0:o||10;var t=a(r).toHsl();t.s-=o/100;t.s=F(t.s);return a(t)}function h(r,o){o=o===0?0:o||10;var t=a(r).toHsl();t.s+=o/100;t.s=F(t.s);return a(t)}function f(r){return a(r).desaturate(100)}function d(r,o){o=o===0?0:o||10;var t=a(r).toHsl();t.l+=o/100;t.l=F(t.l);return a(t)}function v(r,o){o=o===0?0:o||10;var t=a(r).toRgb();t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(o/100))));t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(o/100))));t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(o/100))));return a(t)}function k(r,o){o=o===0?0:o||10;var t=a(r).toHsl();t.l-=o/100;t.l=F(t.l);return a(t)}function p(r,o){var t=a(r).toHsl();var n=(t.h+o)%360;t.h=n<0?360+n:n;return a(t)}function m(r){var o=a(r).toHsl();o.h=(o.h+180)%360;return a(o)}function _(r,o){if(isNaN(o)||o<=0){throw new Error("Argument to polyad must be a positive number")}var t=a(r).toHsl();var n=[a(r)];var e=360/o;for(var b=1;b<o;b++){n.push(a({h:(t.h+b*e)%360,s:t.s,l:t.l}))}return n}function z(r){var o=a(r).toHsl();var t=o.h;return[a(r),a({h:(t+72)%360,s:o.s,l:o.l}),a({h:(t+216)%360,s:o.s,l:o.l})]}function S(r,o,t){o=o||6;t=t||30;var n=a(r).toHsl();var e=360/t;var b=[a(r)];for(n.h=(n.h-(e*o>>1)+720)%360;--o;){n.h=(n.h+e)%360;b.push(a(n))}return b}function y(r,o){o=o||6;var t=a(r).toHsv();var n=t.h,e=t.s,b=t.v;var i=[];var c=1/o;while(o--){i.push(a({h:n,s:e,v:b}));b=(b+c)%1}return i}a.mix=function(r,o,t){t=t===0?0:t||50;var n=a(r).toRgb();var e=a(o).toRgb();var b=t/100;var i={r:(e.r-n.r)*b+n.r,g:(e.g-n.g)*b+n.g,b:(e.b-n.b)*b+n.b,a:(e.a-n.a)*b+n.a};return a(i)};a.readability=function(r,o){var t=a(r);var n=a(o);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)};a.isReadable=function(r,o,t){var n=a.readability(r,o);var e,b;b=false;e=T(t);switch(e.level+e.size){case"AAsmall":case"AAAlarge":b=n>=4.5;break;case"AAlarge":b=n>=3;break;case"AAAsmall":b=n>=7;break}return b};a.mostReadable=function(r,o,t){var n=null;var e=0;var b;var i,c,g;t=t||{};i=t.includeFallbackColors;c=t.level;g=t.size;for(var l=0;l<o.length;l++){b=a.readability(r,o[l]);if(b>e){e=b;n=a(o[l])}}if(a.isReadable(r,n,{level:c,size:g})||!i){return n}else{t.includeFallbackColors=false;return a.mostReadable(r,["#fff","#000"],t)}};var N=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var x=a.hexNames=w(N);function w(r){var o={};for(var a in r){if(r.hasOwnProperty(a)){o[r[a]]=a}}return o}function M(r){r=parseFloat(r);if(isNaN(r)||r<0||r>1){r=1}return r}function A(r,o){if(R(r))r="100%";var a=E(r);r=Math.min(o,Math.max(0,parseFloat(r)));if(a){r=parseInt(r*o,10)/100}if(Math.abs(r-o)<1e-6){return 1}return r%o/parseFloat(o)}function F(r){return Math.min(1,Math.max(0,r))}function H(r){return parseInt(r,16)}function R(r){return typeof r=="string"&&r.indexOf(".")!=-1&&parseFloat(r)===1}function E(r){return typeof r==="string"&&r.indexOf("%")!=-1}function C(r){return r.length==1?"0"+r:""+r}function j(r){if(r<=1){r=r*100+"%"}return r}function L(r){return Math.round(parseFloat(r)*255).toString(16)}function q(r){return H(r)/255}var I=function(){var r="[-\\+]?\\d+%?";var o="[-\\+]?\\d*\\.\\d+%?";var a="(?:"+o+")|(?:"+r+")";var t="[\\s|\\(]+("+a+")[,|\\s]+("+a+")[,|\\s]+("+a+")\\s*\\)?";var n="[\\s|\\(]+("+a+")[,|\\s]+("+a+")[,|\\s]+("+a+")[,|\\s]+("+a+")\\s*\\)?";return{CSS_UNIT:new RegExp(a),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function B(r){return!!I.CSS_UNIT.exec(r)}function P(a){a=a.replace(r,"").replace(o,"").toLowerCase();var t=false;if(N[a]){a=N[a];t=true}else if(a=="transparent"){return{r:0,g:0,b:0,a:0,format:"name"}}var n;if(n=I.rgb.exec(a)){return{r:n[1],g:n[2],b:n[3]}}if(n=I.rgba.exec(a)){return{r:n[1],g:n[2],b:n[3],a:n[4]}}if(n=I.hsl.exec(a)){return{h:n[1],s:n[2],l:n[3]}}if(n=I.hsla.exec(a)){return{h:n[1],s:n[2],l:n[3],a:n[4]}}if(n=I.hsv.exec(a)){return{h:n[1],s:n[2],v:n[3]}}if(n=I.hsva.exec(a)){return{h:n[1],s:n[2],v:n[3],a:n[4]}}if(n=I.hex8.exec(a)){return{r:H(n[1]),g:H(n[2]),b:H(n[3]),a:q(n[4]),format:t?"name":"hex8"}}if(n=I.hex6.exec(a)){return{r:H(n[1]),g:H(n[2]),b:H(n[3]),format:t?"name":"hex"}}if(n=I.hex4.exec(a)){return{r:H(n[1]+""+n[1]),g:H(n[2]+""+n[2]),b:H(n[3]+""+n[3]),a:q(n[4]+""+n[4]),format:t?"name":"hex8"}}if(n=I.hex3.exec(a)){return{r:H(n[1]+""+n[1]),g:H(n[2]+""+n[2]),b:H(n[3]+""+n[3]),format:t?"name":"hex"}}return false}function T(r){var o,a;r=r||{level:"AA",size:"small"};o=(r.level||"AA").toUpperCase();a=(r.size||"small").toLowerCase();if(o!=="AA"&&o!=="AAA"){o="AA"}if(a!=="small"&&a!=="large"){a="small"}return{level:o,size:a}}return a}))}));var E={color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"};var N={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N1={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N2={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N4={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N5={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N6={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N7={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N8={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N9={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N10={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N11={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N12={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N13={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N14={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N15={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N16={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N17={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N18={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N19={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N30={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N31={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N32={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N33={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N34={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N45={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N72={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N78={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var SN1={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var SN4={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var SN5={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var SN6={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var SN7={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var SN8={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var SN9={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var S2={color:"rgb(255, 255, 255)",background:"rgb(93, 165, 38)"};var S3={color:"rgb(255, 255, 255)",background:"rgb(111, 132, 191)"};var S4={color:"rgb(255, 255, 255)",background:"rgb(243, 96, 76)"};var S5={color:"rgb(255, 255, 255)",background:"rgb(27, 136, 164)"};var S6={color:"rgb(255, 255, 255)",background:"rgb(70, 51, 120)"};var S7={color:"rgb(0, 0, 0)",background:"rgb(255, 162, 1)"};var S8={color:"rgb(255, 255, 255)",background:"rgb(47, 20, 97)"};var S9={color:"rgb(255, 255, 255)",background:"rgb(35, 156, 54)"};var S10={color:"rgb(0, 0, 0)",background:"rgb(255, 177, 55)"};var S11={color:"rgb(255, 255, 255)",background:"rgb(130, 118, 170)"};var S14={color:"rgb(255, 255, 255)",background:"rgb(97, 55, 23)"};var S15={color:"rgb(255, 255, 255)",background:"rgb(198, 165, 126)"};var S16={color:"rgb(255, 255, 255)",background:"rgb(130, 187, 162)"};var S18={color:"rgb(255, 255, 255)",background:"rgb(235, 60, 46)"};var S19={color:"rgb(255, 255, 255)",background:"rgb(245, 130, 32)"};var S20={color:"rgb(255, 255, 255)",background:"rgb(240, 91, 148)"};var S21={color:"rgb(255, 255, 255)",background:"rgb(121, 156, 205)"};var S23={color:"rgb(255, 255, 255)",background:"rgb(115, 178, 75)"};var S24={color:"rgb(255, 255, 255)",background:"rgb(148, 102, 68)"};var S25={color:"rgb(255, 255, 255)",background:"rgb(180, 30, 142)"};var LineColors={2:{color:"rgb(255, 255, 255)",background:"rgb(226, 10, 22)"},3:{color:"rgb(255, 255, 255)",background:"rgb(0, 137, 47)"},4:{color:"rgb(255, 255, 255)",background:"rgb(17, 41, 111)"},5:{color:"rgb(255, 255, 255)",background:"rgb(115, 69, 34)"},6:{color:"rgb(255, 255, 255)",background:"rgb(202, 125, 60)"},7:{color:"rgb(255, 255, 255)",background:"rgb(0, 0, 0)"},8:{color:"rgb(0, 0, 0)",background:"rgb(138, 181, 31)"},9:{color:"rgb(255, 255, 255)",background:"rgb(17, 41, 111)"},10:{color:"rgb(255, 255, 255)",background:"rgb(225, 36, 114)"},11:{color:"rgb(255, 255, 255)",background:"rgb(0, 137, 47)"},12:{color:"rgb(0, 0, 0)",background:"rgb(94, 179, 219)"},13:{color:"rgb(0, 0, 0)",background:"rgb(255, 193, 0)"},14:{color:"rgb(255, 255, 255)",background:"rgb(0, 141, 197)"},15:{color:"rgb(255, 255, 255)",background:"rgb(226, 10, 22)"},16:{color:"rgb(255, 255, 255)",background:"rgb(16, 55, 82)"},17:{color:"rgb(255, 255, 255)",background:"rgb(142, 34, 77)"},19:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},20:{color:"rgb(255, 255, 255)",background:"rgb(142, 34, 77)"},21:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},23:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)",comment:"Seilbahn Rigiblick"},24:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)",comment:"Polybahn"},25:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)",comment:"Dolderbahn"},29:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},31:{color:"rgb(255, 255, 255)",background:"rgb(165, 162, 198)"},32:{color:"rgb(0, 0, 0)",background:"rgb(204, 178, 209)"},33:{color:"rgb(0, 0, 0)",background:"rgb(218, 214, 156)"},34:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},35:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},36:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},37:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},38:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},39:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},40:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},45:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},46:{color:"rgb(0, 0, 0)",background:"rgb(193, 213, 159)"},54:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},61:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},62:{color:"rgb(0, 0, 0)",background:"rgb(202, 192, 182)"},63:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},64:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},66:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},67:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},69:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},70:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},72:{color:"rgb(0, 0, 0)",background:"rgb(198, 166, 147)"},73:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},75:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},76:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},77:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},78:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},79:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},80:{color:"rgb(0, 0, 0)",background:"rgb(203, 207, 179)"},83:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},89:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},91:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},94:{color:"rgb(255, 255, 255)",background:"rgb(169, 163, 155)"},95:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},99:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},151:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},152:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},153:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},156:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},161:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},162:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},163:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},165:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},184:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},185:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},200:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},201:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},215:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},220:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},235:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},236:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},245:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},301:{color:"rgb(0, 0, 0)",background:"rgb(138, 181, 31)"},302:{color:"rgb(255, 255, 255)",background:"rgb(0, 137, 47)"},303:{color:"rgb(255, 255, 255)",background:"rgb(17, 41, 111)"},304:{color:"rgb(255, 255, 255)",background:"rgb(226, 10, 22)"},305:{color:"rgb(255, 255, 255)",background:"rgb(115, 69, 34)"},306:{color:"rgb(0, 0, 0)",background:"rgb(255, 193, 0)"},307:{color:"rgb(255, 255, 255)",background:"rgb(202, 125, 60)"},308:{color:"rgb(255, 255, 255)",background:"rgb(225, 36, 114)"},309:{color:"rgb(255, 255, 255)",background:"rgb(0, 141, 197)"},311:{color:"rgb(255, 255, 255)",background:"rgb(255, 93, 85)"},314:{color:"rgb(0, 0, 0)",background:"rgb(255, 93, 85)"},315:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},317:{color:"rgb(255, 255, 255)",background:"rgb(17, 41, 111)"},321:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},323:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},325:{color:"rgb(255, 255, 255)",background:"rgb(225, 36, 114)"},350:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},444:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},445:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},701:{color:"rgb(255, 255, 255)",background:"rgb(0, 141, 197)"},702:{color:"rgb(255, 255, 255)",background:"rgb(115, 69, 34)"},703:{color:"rgb(0, 0, 0)",background:"rgb(255, 193, 0)"},704:{color:"rgb(255, 255, 255)",background:"rgb(142, 34, 77)"},705:{color:"rgb(255, 255, 255)",background:"rgb(0, 137, 47)"},720:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},721:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},725:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},726:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},727:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},742:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},743:{color:"rgb(255, 255, 255)",background:"rgb(226, 10, 22)"},744:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},745:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},747:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},748:{color:"rgb(255, 255, 255)",background:"rgb(225, 36, 114)"},751:{color:"rgb(255, 255, 255)",background:"rgb(17, 41, 111)"},752:{color:"rgb(0, 0, 0)",background:"rgb(138, 181, 31)"},753:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},754:{color:"rgb(255, 255, 255)",background:"rgb(115, 69, 34)"},759:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},760:{color:"rgb(255, 255, 255)",background:"rgb(0, 137, 47)"},765:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},768:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},781:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},786:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},787:{color:"rgb(255, 255, 255)",background:"rgb(0, 141, 197)"},910:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},912:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},916:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},917:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},918:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},919:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},E:E,N:N,N1:N1,N2:N2,N4:N4,N5:N5,N6:N6,N7:N7,N8:N8,N9:N9,N10:N10,N11:N11,N12:N12,N13:N13,N14:N14,N15:N15,N16:N16,N17:N17,N18:N18,N19:N19,N30:N30,N31:N31,N32:N32,N33:N33,N34:N34,N45:N45,N72:N72,N78:N78,SN1:SN1,SN4:SN4,SN5:SN5,SN6:SN6,SN7:SN7,SN8:SN8,SN9:SN9,S2:S2,S3:S3,S4:S4,S5:S5,S6:S6,S7:S7,S8:S8,S9:S9,S10:S10,S11:S11,S14:S14,S15:S15,S16:S16,S18:S18,S19:S19,S20:S20,S21:S21,S23:S23,S24:S24,S25:S25};var stzhVbzLinechipCss='.sc-stzh-vbz-linechip-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-linechip-h{display:none}.sc-stzh-vbz-linechip-h *.sc-stzh-vbz-linechip,.sc-stzh-vbz-linechip-h *.sc-stzh-vbz-linechip::before,.sc-stzh-vbz-linechip-h *.sc-stzh-vbz-linechip::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-vbz-linechip-h{border-radius:var(--stzh-button-border-radius)}.stzh-vbz-linechip.sc-stzh-vbz-linechip{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);position:relative;border:none;margin:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--stzh-button-border-radius);width:2.5rem;height:1.5rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.stzh-vbz-linechip.sc-stzh-vbz-linechip::before{content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);background-color:var(--stzh-color-black16);border-radius:var(--stzh-button-border-radius)}.stzh-vbz-linechip__text.sc-stzh-vbz-linechip{position:relative}.stzh-vbz-linechip__global-icon.sc-stzh-vbz-linechip{--size:var(--stzh-icon-size-xxsmall)}.stzh-vbz-linechip__alert.sc-stzh-vbz-linechip{position:absolute;top:-0.3125rem;right:-0.3125rem;color:var(--stzh-color-error);background-color:var(--stzh-color-white);border-radius:100%;display:-ms-flexbox;display:flex}.stzh-vbz-linechip__alert-icon.sc-stzh-vbz-linechip{--size:var(--stzh-icon-size-xsmall)}.stzh-vbz-linechip.sc-stzh-vbz-linechip:hover::before,.stzh-vbz-linechip.sc-stzh-vbz-linechip:focus::before,.stzh-vbz-linechip--is-active.sc-stzh-vbz-linechip::before{opacity:1}.stzh-vbz-linechip--is-dark.sc-stzh-vbz-linechip::before{background-color:var(--stzh-color-white16)}.stzh-vbz-linechip--bg-white.sc-stzh-vbz-linechip{border:0.0625rem solid var(--stzh-color-black)}';var StzhVbzLinechip=function(){function r(r){var o=this;registerInstance(this,r);this.stzhFocus=createEvent(this,"stzhFocus",7);this.stzhBlur=createEvent(this,"stzhBlur",7);this.onFocus=function(r){var a=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});o.element.dispatchEvent(a);o.stzhFocus.emit({component:"stzh-vbz-linechip",originalEvent:r})};this.onBlur=function(r){var a=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});o.element.dispatchEvent(a);o.stzhBlur.emit({component:"stzh-vbz-linechip",originalEvent:r})};this.line=undefined;this.active=false;this.alert=false;this.global=false}r.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){this.chip.focus();return[2]}))}))};r.prototype.render=function(){var r;var o=this;var a=LineColors[this.line]||{};var t={color:this.global?"rgb(0, 0, 0)":a.color||"rgb(255, 255, 255)",background:this.global?"rgb(228, 105, 76)":a.background||"rgb(0, 0, 0)"};var n=tinycolor(t.background);var e=n.getBrightness()<50;var b=(r={"stzh-vbz-linechip":true,"stzh-vbz-linechip--is-global":this.global,"stzh-vbz-linechip--is-alert":this.alert,"stzh-vbz-linechip--is-active":this.active,"stzh-vbz-linechip--is-dark":e,"stzh-vbz-linechip--bg-white":t.background==="rgb(255, 255, 255)"},r["stzh-vbz-linechip--line-".concat(this.line)]=!!this.line,r);var i=a.comment||"";return h(Host,null,h("button",{ref:function(r){return o.chip=r},class:b,style:t,title:i,onFocus:this.onFocus,onBlur:this.onBlur},this.global?h("stzh-icon",{name:"important-warning",class:"stzh-vbz-linechip__global-icon"}):h("div",{class:"stzh-vbz-linechip__text"},this.line),this.alert&&h("div",{class:"stzh-vbz-linechip__alert"},h("stzh-icon",{name:"warning-big",class:"stzh-vbz-linechip__alert-icon"}))))};Object.defineProperty(r.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return r}();StzhVbzLinechip.style=stzhVbzLinechipCss;export{StzhVbzLinechip as stzh_vbz_linechip};
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(r,o,a,t){function n(r){return r instanceof a?r:new a((function(o){o(r)}))}return new(a||(a=Promise))((function(a,e){function b(r){try{c(t.next(r))}catch(o){e(o)}}function i(r){try{c(t["throw"](r))}catch(o){e(o)}}function c(r){r.done?a(r.value):n(r.value).then(b,i)}c((t=t.apply(r,o||[])).next())}))};var __generator=this&&this.__generator||function(r,o){var a={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},t,n,e,b;return b={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(b[Symbol.iterator]=function(){return this}),b;function i(r){return function(o){return c([r,o])}}function c(i){if(t)throw new TypeError("Generator is already executing.");while(b&&(b=0,i[0]&&(a=0)),a)try{if(t=1,n&&(e=i[0]&2?n["return"]:i[0]?n["throw"]||((e=n["return"])&&e.call(n),0):n.next)&&!(e=e.call(n,i[1])).done)return e;if(n=0,e)i=[i[0]&2,e.value];switch(i[0]){case 0:case 1:e=i;break;case 4:a.label++;return{value:i[1],done:false};case 5:a.label++;n=i[1];i=[0];continue;case 7:i=a.ops.pop();a.trys.pop();continue;default:if(!(e=a.trys,e=e.length>0&&e[e.length-1])&&(i[0]===6||i[0]===2)){a=0;continue}if(i[0]===3&&(!e||i[1]>e[0]&&i[1]<e[3])){a.label=i[1];break}if(i[0]===6&&a.label<e[1]){a.label=e[1];e=i;break}if(e&&a.label<e[2]){a.label=e[2];a.ops.push(i);break}if(e[2])a.ops.pop();a.trys.pop();continue}i=o.call(r,a)}catch(c){i=[6,c];n=0}finally{t=e=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};import{r as registerInstance,e as createEvent,h,c as Host,g as getElement}from"./index-319b7c49.js";import{c as createCommonjsModule,a as commonjsGlobal}from"./_commonjsHelpers-ba3f0406.js";var tinycolor=createCommonjsModule((function(r,o){(function(o,a){r.exports=a()})(commonjsGlobal,(function(){var r=/^\s+/;var o=/\s+$/;function a(r,o){r=r?r:"";o=o||{};if(r instanceof a){return r}if(!(this instanceof a)){return new a(r,o)}var n=t(r);this._originalInput=r,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=o.format||n.format;this._gradientType=o.gradientType;if(this._r<1)this._r=Math.round(this._r);if(this._g<1)this._g=Math.round(this._g);if(this._b<1)this._b=Math.round(this._b);this._ok=n.ok}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},getLuminance:function(){var r=this.toRgb();var o,a,t,n,e,b;o=r.r/255;a=r.g/255;t=r.b/255;if(o<=.03928)n=o/12.92;else n=Math.pow((o+.055)/1.055,2.4);if(a<=.03928)e=a/12.92;else e=Math.pow((a+.055)/1.055,2.4);if(t<=.03928)b=t/12.92;else b=Math.pow((t+.055)/1.055,2.4);return.2126*n+.7152*e+.0722*b},setAlpha:function(r){this._a=M(r);this._roundA=Math.round(100*this._a)/100;return this},toHsv:function(){var r=i(this._r,this._g,this._b);return{h:r.h*360,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=i(this._r,this._g,this._b);var o=Math.round(r.h*360),a=Math.round(r.s*100),t=Math.round(r.v*100);return this._a==1?"hsv("+o+", "+a+"%, "+t+"%)":"hsva("+o+", "+a+"%, "+t+"%, "+this._roundA+")"},toHsl:function(){var r=e(this._r,this._g,this._b);return{h:r.h*360,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=e(this._r,this._g,this._b);var o=Math.round(r.h*360),a=Math.round(r.s*100),t=Math.round(r.l*100);return this._a==1?"hsl("+o+", "+a+"%, "+t+"%)":"hsla("+o+", "+a+"%, "+t+"%, "+this._roundA+")"},toHex:function(r){return g(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return l(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(A(this._r,255)*100)+"%",g:Math.round(A(this._g,255)*100)+"%",b:Math.round(A(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(A(this._r,255)*100)+"%, "+Math.round(A(this._g,255)*100)+"%, "+Math.round(A(this._b,255)*100)+"%)":"rgba("+Math.round(A(this._r,255)*100)+"%, "+Math.round(A(this._g,255)*100)+"%, "+Math.round(A(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){if(this._a===0){return"transparent"}if(this._a<1){return false}return x[g(this._r,this._g,this._b,true)]||false},toFilter:function(r){var o="#"+s(this._r,this._g,this._b,this._a);var t=o;var n=this._gradientType?"GradientType = 1, ":"";if(r){var e=a(r);t="#"+s(e._r,e._g,e._b,e._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+o+",endColorstr="+t+")"},toString:function(r){var o=!!r;r=r||this._format;var a=false;var t=this._a<1&&this._a>=0;var n=!o&&t&&(r==="hex"||r==="hex6"||r==="hex3"||r==="hex4"||r==="hex8"||r==="name");if(n){if(r==="name"&&this._a===0){return this.toName()}return this.toRgbString()}if(r==="rgb"){a=this.toRgbString()}if(r==="prgb"){a=this.toPercentageRgbString()}if(r==="hex"||r==="hex6"){a=this.toHexString()}if(r==="hex3"){a=this.toHexString(true)}if(r==="hex4"){a=this.toHex8String(true)}if(r==="hex8"){a=this.toHex8String()}if(r==="name"){a=this.toName()}if(r==="hsl"){a=this.toHslString()}if(r==="hsv"){a=this.toHsvString()}return a||this.toHexString()},clone:function(){return a(this.toString())},_applyModification:function(r,o){var a=r.apply(null,[this].concat([].slice.call(o)));this._r=a._r;this._g=a._g;this._b=a._b;this.setAlpha(a._a);return this},lighten:function(){return this._applyModification(d,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(f,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(r,o){return r.apply(null,[this].concat([].slice.call(o)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(_,[3])},tetrad:function(){return this._applyCombination(_,[4])}};a.fromRatio=function(r,o){if(typeof r=="object"){var t={};for(var n in r){if(r.hasOwnProperty(n)){if(n==="a"){t[n]=r[n]}else{t[n]=j(r[n])}}}r=t}return a(r,o)};function t(r){var o={r:0,g:0,b:0};var a=1;var t=null;var e=null;var i=null;var g=false;var l=false;if(typeof r=="string"){r=P(r)}if(typeof r=="object"){if(B(r.r)&&B(r.g)&&B(r.b)){o=n(r.r,r.g,r.b);g=true;l=String(r.r).substr(-1)==="%"?"prgb":"rgb"}else if(B(r.h)&&B(r.s)&&B(r.v)){t=j(r.s);e=j(r.v);o=c(r.h,t,e);g=true;l="hsv"}else if(B(r.h)&&B(r.s)&&B(r.l)){t=j(r.s);i=j(r.l);o=b(r.h,t,i);g=true;l="hsl"}if(r.hasOwnProperty("a")){a=r.a}}a=M(a);return{ok:g,format:r.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:a}}function n(r,o,a){return{r:A(r,255)*255,g:A(o,255)*255,b:A(a,255)*255}}function e(r,o,a){r=A(r,255);o=A(o,255);a=A(a,255);var t=Math.max(r,o,a),n=Math.min(r,o,a);var e,b,i=(t+n)/2;if(t==n){e=b=0}else{var c=t-n;b=i>.5?c/(2-t-n):c/(t+n);switch(t){case r:e=(o-a)/c+(o<a?6:0);break;case o:e=(a-r)/c+2;break;case a:e=(r-o)/c+4;break}e/=6}return{h:e,s:b,l:i}}function b(r,o,a){var t,n,e;r=A(r,360);o=A(o,100);a=A(a,100);function b(r,o,a){if(a<0)a+=1;if(a>1)a-=1;if(a<1/6)return r+(o-r)*6*a;if(a<1/2)return o;if(a<2/3)return r+(o-r)*(2/3-a)*6;return r}if(o===0){t=n=e=a}else{var i=a<.5?a*(1+o):a+o-a*o;var c=2*a-i;t=b(c,i,r+1/3);n=b(c,i,r);e=b(c,i,r-1/3)}return{r:t*255,g:n*255,b:e*255}}function i(r,o,a){r=A(r,255);o=A(o,255);a=A(a,255);var t=Math.max(r,o,a),n=Math.min(r,o,a);var e,b,i=t;var c=t-n;b=t===0?0:c/t;if(t==n){e=0}else{switch(t){case r:e=(o-a)/c+(o<a?6:0);break;case o:e=(a-r)/c+2;break;case a:e=(r-o)/c+4;break}e/=6}return{h:e,s:b,v:i}}function c(r,o,a){r=A(r,360)*6;o=A(o,100);a=A(a,100);var t=Math.floor(r),n=r-t,e=a*(1-o),b=a*(1-n*o),i=a*(1-(1-n)*o),c=t%6,g=[a,b,e,e,i,a][c],l=[i,a,a,b,e,e][c],s=[e,e,i,a,a,b][c];return{r:g*255,g:l*255,b:s*255}}function g(r,o,a,t){var n=[C(Math.round(r).toString(16)),C(Math.round(o).toString(16)),C(Math.round(a).toString(16))];if(t&&n[0].charAt(0)==n[0].charAt(1)&&n[1].charAt(0)==n[1].charAt(1)&&n[2].charAt(0)==n[2].charAt(1)){return n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0)}return n.join("")}function l(r,o,a,t,n){var e=[C(Math.round(r).toString(16)),C(Math.round(o).toString(16)),C(Math.round(a).toString(16)),C(L(t))];if(n&&e[0].charAt(0)==e[0].charAt(1)&&e[1].charAt(0)==e[1].charAt(1)&&e[2].charAt(0)==e[2].charAt(1)&&e[3].charAt(0)==e[3].charAt(1)){return e[0].charAt(0)+e[1].charAt(0)+e[2].charAt(0)+e[3].charAt(0)}return e.join("")}function s(r,o,a,t){var n=[C(L(t)),C(Math.round(r).toString(16)),C(Math.round(o).toString(16)),C(Math.round(a).toString(16))];return n.join("")}a.equals=function(r,o){if(!r||!o)return false;return a(r).toRgbString()==a(o).toRgbString()};a.random=function(){return a.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function u(r,o){o=o===0?0:o||10;var t=a(r).toHsl();t.s-=o/100;t.s=F(t.s);return a(t)}function h(r,o){o=o===0?0:o||10;var t=a(r).toHsl();t.s+=o/100;t.s=F(t.s);return a(t)}function f(r){return a(r).desaturate(100)}function d(r,o){o=o===0?0:o||10;var t=a(r).toHsl();t.l+=o/100;t.l=F(t.l);return a(t)}function v(r,o){o=o===0?0:o||10;var t=a(r).toRgb();t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(o/100))));t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(o/100))));t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(o/100))));return a(t)}function k(r,o){o=o===0?0:o||10;var t=a(r).toHsl();t.l-=o/100;t.l=F(t.l);return a(t)}function p(r,o){var t=a(r).toHsl();var n=(t.h+o)%360;t.h=n<0?360+n:n;return a(t)}function m(r){var o=a(r).toHsl();o.h=(o.h+180)%360;return a(o)}function _(r,o){if(isNaN(o)||o<=0){throw new Error("Argument to polyad must be a positive number")}var t=a(r).toHsl();var n=[a(r)];var e=360/o;for(var b=1;b<o;b++){n.push(a({h:(t.h+b*e)%360,s:t.s,l:t.l}))}return n}function z(r){var o=a(r).toHsl();var t=o.h;return[a(r),a({h:(t+72)%360,s:o.s,l:o.l}),a({h:(t+216)%360,s:o.s,l:o.l})]}function S(r,o,t){o=o||6;t=t||30;var n=a(r).toHsl();var e=360/t;var b=[a(r)];for(n.h=(n.h-(e*o>>1)+720)%360;--o;){n.h=(n.h+e)%360;b.push(a(n))}return b}function y(r,o){o=o||6;var t=a(r).toHsv();var n=t.h,e=t.s,b=t.v;var i=[];var c=1/o;while(o--){i.push(a({h:n,s:e,v:b}));b=(b+c)%1}return i}a.mix=function(r,o,t){t=t===0?0:t||50;var n=a(r).toRgb();var e=a(o).toRgb();var b=t/100;var i={r:(e.r-n.r)*b+n.r,g:(e.g-n.g)*b+n.g,b:(e.b-n.b)*b+n.b,a:(e.a-n.a)*b+n.a};return a(i)};a.readability=function(r,o){var t=a(r);var n=a(o);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)};a.isReadable=function(r,o,t){var n=a.readability(r,o);var e,b;b=false;e=T(t);switch(e.level+e.size){case"AAsmall":case"AAAlarge":b=n>=4.5;break;case"AAlarge":b=n>=3;break;case"AAAsmall":b=n>=7;break}return b};a.mostReadable=function(r,o,t){var n=null;var e=0;var b;var i,c,g;t=t||{};i=t.includeFallbackColors;c=t.level;g=t.size;for(var l=0;l<o.length;l++){b=a.readability(r,o[l]);if(b>e){e=b;n=a(o[l])}}if(a.isReadable(r,n,{level:c,size:g})||!i){return n}else{t.includeFallbackColors=false;return a.mostReadable(r,["#fff","#000"],t)}};var N=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var x=a.hexNames=w(N);function w(r){var o={};for(var a in r){if(r.hasOwnProperty(a)){o[r[a]]=a}}return o}function M(r){r=parseFloat(r);if(isNaN(r)||r<0||r>1){r=1}return r}function A(r,o){if(R(r))r="100%";var a=E(r);r=Math.min(o,Math.max(0,parseFloat(r)));if(a){r=parseInt(r*o,10)/100}if(Math.abs(r-o)<1e-6){return 1}return r%o/parseFloat(o)}function F(r){return Math.min(1,Math.max(0,r))}function H(r){return parseInt(r,16)}function R(r){return typeof r=="string"&&r.indexOf(".")!=-1&&parseFloat(r)===1}function E(r){return typeof r==="string"&&r.indexOf("%")!=-1}function C(r){return r.length==1?"0"+r:""+r}function j(r){if(r<=1){r=r*100+"%"}return r}function L(r){return Math.round(parseFloat(r)*255).toString(16)}function q(r){return H(r)/255}var I=function(){var r="[-\\+]?\\d+%?";var o="[-\\+]?\\d*\\.\\d+%?";var a="(?:"+o+")|(?:"+r+")";var t="[\\s|\\(]+("+a+")[,|\\s]+("+a+")[,|\\s]+("+a+")\\s*\\)?";var n="[\\s|\\(]+("+a+")[,|\\s]+("+a+")[,|\\s]+("+a+")[,|\\s]+("+a+")\\s*\\)?";return{CSS_UNIT:new RegExp(a),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function B(r){return!!I.CSS_UNIT.exec(r)}function P(a){a=a.replace(r,"").replace(o,"").toLowerCase();var t=false;if(N[a]){a=N[a];t=true}else if(a=="transparent"){return{r:0,g:0,b:0,a:0,format:"name"}}var n;if(n=I.rgb.exec(a)){return{r:n[1],g:n[2],b:n[3]}}if(n=I.rgba.exec(a)){return{r:n[1],g:n[2],b:n[3],a:n[4]}}if(n=I.hsl.exec(a)){return{h:n[1],s:n[2],l:n[3]}}if(n=I.hsla.exec(a)){return{h:n[1],s:n[2],l:n[3],a:n[4]}}if(n=I.hsv.exec(a)){return{h:n[1],s:n[2],v:n[3]}}if(n=I.hsva.exec(a)){return{h:n[1],s:n[2],v:n[3],a:n[4]}}if(n=I.hex8.exec(a)){return{r:H(n[1]),g:H(n[2]),b:H(n[3]),a:q(n[4]),format:t?"name":"hex8"}}if(n=I.hex6.exec(a)){return{r:H(n[1]),g:H(n[2]),b:H(n[3]),format:t?"name":"hex"}}if(n=I.hex4.exec(a)){return{r:H(n[1]+""+n[1]),g:H(n[2]+""+n[2]),b:H(n[3]+""+n[3]),a:q(n[4]+""+n[4]),format:t?"name":"hex8"}}if(n=I.hex3.exec(a)){return{r:H(n[1]+""+n[1]),g:H(n[2]+""+n[2]),b:H(n[3]+""+n[3]),format:t?"name":"hex"}}return false}function T(r){var o,a;r=r||{level:"AA",size:"small"};o=(r.level||"AA").toUpperCase();a=(r.size||"small").toLowerCase();if(o!=="AA"&&o!=="AAA"){o="AA"}if(a!=="small"&&a!=="large"){a="small"}return{level:o,size:a}}return a}))}));var E={color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"};var N={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N1={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N2={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N4={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N5={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N6={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N7={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N8={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N9={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N10={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N11={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N12={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N13={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N14={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N15={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N16={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N17={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N18={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N19={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N30={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N31={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N32={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N33={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N34={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N45={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N72={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var N78={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var SN1={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var SN4={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var SN5={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var SN6={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var SN7={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var SN8={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var SN9={color:"rgb(255, 241, 0)",background:"rgb(0, 0, 0)"};var S2={color:"rgb(255, 255, 255)",background:"rgb(93, 165, 38)"};var S3={color:"rgb(255, 255, 255)",background:"rgb(111, 132, 191)"};var S4={color:"rgb(255, 255, 255)",background:"rgb(243, 96, 76)"};var S5={color:"rgb(255, 255, 255)",background:"rgb(27, 136, 164)"};var S6={color:"rgb(255, 255, 255)",background:"rgb(70, 51, 120)"};var S7={color:"rgb(0, 0, 0)",background:"rgb(255, 162, 1)"};var S8={color:"rgb(255, 255, 255)",background:"rgb(47, 20, 97)"};var S9={color:"rgb(255, 255, 255)",background:"rgb(35, 156, 54)"};var S10={color:"rgb(0, 0, 0)",background:"rgb(255, 177, 55)"};var S11={color:"rgb(255, 255, 255)",background:"rgb(130, 118, 170)"};var S14={color:"rgb(255, 255, 255)",background:"rgb(97, 55, 23)"};var S15={color:"rgb(255, 255, 255)",background:"rgb(198, 165, 126)"};var S16={color:"rgb(255, 255, 255)",background:"rgb(130, 187, 162)"};var S18={color:"rgb(255, 255, 255)",background:"rgb(235, 60, 46)"};var S19={color:"rgb(255, 255, 255)",background:"rgb(245, 130, 32)"};var S20={color:"rgb(255, 255, 255)",background:"rgb(240, 91, 148)"};var S21={color:"rgb(255, 255, 255)",background:"rgb(121, 156, 205)"};var S23={color:"rgb(255, 255, 255)",background:"rgb(115, 178, 75)"};var S24={color:"rgb(255, 255, 255)",background:"rgb(148, 102, 68)"};var S25={color:"rgb(255, 255, 255)",background:"rgb(180, 30, 142)"};var LineColors={2:{color:"rgb(255, 255, 255)",background:"rgb(226, 10, 22)"},3:{color:"rgb(255, 255, 255)",background:"rgb(0, 137, 47)"},4:{color:"rgb(255, 255, 255)",background:"rgb(17, 41, 111)"},5:{color:"rgb(255, 255, 255)",background:"rgb(115, 69, 34)"},6:{color:"rgb(255, 255, 255)",background:"rgb(202, 125, 60)"},7:{color:"rgb(255, 255, 255)",background:"rgb(0, 0, 0)"},8:{color:"rgb(0, 0, 0)",background:"rgb(138, 181, 31)"},9:{color:"rgb(255, 255, 255)",background:"rgb(17, 41, 111)"},10:{color:"rgb(255, 255, 255)",background:"rgb(225, 36, 114)"},11:{color:"rgb(255, 255, 255)",background:"rgb(0, 137, 47)"},12:{color:"rgb(0, 0, 0)",background:"rgb(94, 179, 219)"},13:{color:"rgb(0, 0, 0)",background:"rgb(255, 193, 0)"},14:{color:"rgb(255, 255, 255)",background:"rgb(0, 141, 197)"},15:{color:"rgb(255, 255, 255)",background:"rgb(226, 10, 22)"},16:{color:"rgb(255, 255, 255)",background:"rgb(16, 55, 82)"},17:{color:"rgb(255, 255, 255)",background:"rgb(142, 34, 77)"},19:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},20:{color:"rgb(255, 255, 255)",background:"rgb(142, 34, 77)"},21:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},23:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)",comment:"Seilbahn Rigiblick"},24:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)",comment:"Polybahn"},25:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)",comment:"Dolderbahn"},29:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},31:{color:"rgb(255, 255, 255)",background:"rgb(165, 162, 198)"},32:{color:"rgb(0, 0, 0)",background:"rgb(204, 178, 209)"},33:{color:"rgb(0, 0, 0)",background:"rgb(218, 214, 156)"},34:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},35:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},36:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},37:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},38:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},39:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},40:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},45:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},46:{color:"rgb(0, 0, 0)",background:"rgb(193, 213, 159)"},54:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},61:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},62:{color:"rgb(0, 0, 0)",background:"rgb(202, 192, 182)"},63:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},64:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},66:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},67:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},69:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},70:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},72:{color:"rgb(0, 0, 0)",background:"rgb(198, 166, 147)"},73:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},75:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},76:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},77:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},78:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},79:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},80:{color:"rgb(0, 0, 0)",background:"rgb(203, 207, 179)"},83:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},89:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},91:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},94:{color:"rgb(255, 255, 255)",background:"rgb(169, 163, 155)"},95:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},99:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},151:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},152:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},153:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},156:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},161:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},162:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},163:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},165:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},184:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},185:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},200:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},201:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},215:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},220:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},235:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},236:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},245:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},301:{color:"rgb(0, 0, 0)",background:"rgb(138, 181, 31)"},302:{color:"rgb(255, 255, 255)",background:"rgb(0, 137, 47)"},303:{color:"rgb(255, 255, 255)",background:"rgb(17, 41, 111)"},304:{color:"rgb(255, 255, 255)",background:"rgb(226, 10, 22)"},305:{color:"rgb(255, 255, 255)",background:"rgb(115, 69, 34)"},306:{color:"rgb(0, 0, 0)",background:"rgb(255, 193, 0)"},307:{color:"rgb(255, 255, 255)",background:"rgb(202, 125, 60)"},308:{color:"rgb(255, 255, 255)",background:"rgb(225, 36, 114)"},309:{color:"rgb(255, 255, 255)",background:"rgb(0, 141, 197)"},311:{color:"rgb(255, 255, 255)",background:"rgb(255, 93, 85)"},314:{color:"rgb(0, 0, 0)",background:"rgb(255, 93, 85)"},315:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},317:{color:"rgb(255, 255, 255)",background:"rgb(17, 41, 111)"},321:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},323:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},325:{color:"rgb(255, 255, 255)",background:"rgb(225, 36, 114)"},350:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},444:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},445:{color:"rgb(0, 0, 0)",background:"rgb(255, 204, 0)"},701:{color:"rgb(255, 255, 255)",background:"rgb(0, 141, 197)"},702:{color:"rgb(255, 255, 255)",background:"rgb(115, 69, 34)"},703:{color:"rgb(0, 0, 0)",background:"rgb(255, 193, 0)"},704:{color:"rgb(255, 255, 255)",background:"rgb(142, 34, 77)"},705:{color:"rgb(255, 255, 255)",background:"rgb(0, 137, 47)"},720:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},721:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},725:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},726:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},727:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},742:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},743:{color:"rgb(255, 255, 255)",background:"rgb(226, 10, 22)"},744:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},745:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},747:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},748:{color:"rgb(255, 255, 255)",background:"rgb(225, 36, 114)"},751:{color:"rgb(255, 255, 255)",background:"rgb(17, 41, 111)"},752:{color:"rgb(0, 0, 0)",background:"rgb(138, 181, 31)"},753:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},754:{color:"rgb(255, 255, 255)",background:"rgb(115, 69, 34)"},759:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},760:{color:"rgb(255, 255, 255)",background:"rgb(0, 137, 47)"},765:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},768:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},781:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},786:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},787:{color:"rgb(255, 255, 255)",background:"rgb(0, 141, 197)"},910:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},912:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},916:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},917:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},918:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},919:{color:"rgb(0, 0, 0)",background:"rgb(255, 255, 255)"},E:E,N:N,N1:N1,N2:N2,N4:N4,N5:N5,N6:N6,N7:N7,N8:N8,N9:N9,N10:N10,N11:N11,N12:N12,N13:N13,N14:N14,N15:N15,N16:N16,N17:N17,N18:N18,N19:N19,N30:N30,N31:N31,N32:N32,N33:N33,N34:N34,N45:N45,N72:N72,N78:N78,SN1:SN1,SN4:SN4,SN5:SN5,SN6:SN6,SN7:SN7,SN8:SN8,SN9:SN9,S2:S2,S3:S3,S4:S4,S5:S5,S6:S6,S7:S7,S8:S8,S9:S9,S10:S10,S11:S11,S14:S14,S15:S15,S16:S16,S18:S18,S19:S19,S20:S20,S21:S21,S23:S23,S24:S24,S25:S25};var stzhVbzLinechipCss='.sc-stzh-vbz-linechip-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-linechip-h{display:none}.sc-stzh-vbz-linechip-h *.sc-stzh-vbz-linechip,.sc-stzh-vbz-linechip-h *.sc-stzh-vbz-linechip::before,.sc-stzh-vbz-linechip-h *.sc-stzh-vbz-linechip::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-vbz-linechip-h{border-radius:var(--stzh-button-border-radius)}.stzh-vbz-linechip.sc-stzh-vbz-linechip{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);position:relative;border:none;margin:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--stzh-button-border-radius);width:2.5rem;height:1.5rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.stzh-vbz-linechip.sc-stzh-vbz-linechip::before{content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);background-color:var(--stzh-color-black16);border-radius:var(--stzh-button-border-radius)}.stzh-vbz-linechip__text.sc-stzh-vbz-linechip{position:relative}.stzh-vbz-linechip__global-icon.sc-stzh-vbz-linechip{--size:var(--stzh-icon-size-xxsmall)}.stzh-vbz-linechip__alert.sc-stzh-vbz-linechip{position:absolute;top:-0.3125rem;right:-0.3125rem;color:var(--stzh-color-error);background-color:var(--stzh-color-white);border-radius:100%;display:-ms-flexbox;display:flex}.stzh-vbz-linechip__alert-icon.sc-stzh-vbz-linechip{--size:var(--stzh-icon-size-xsmall)}.stzh-vbz-linechip.sc-stzh-vbz-linechip:hover::before,.stzh-vbz-linechip.sc-stzh-vbz-linechip:focus::before,.stzh-vbz-linechip--is-active.sc-stzh-vbz-linechip::before{opacity:1}.stzh-vbz-linechip--is-dark.sc-stzh-vbz-linechip::before{background-color:var(--stzh-color-white16)}.stzh-vbz-linechip--bg-white.sc-stzh-vbz-linechip{border:0.0625rem solid var(--stzh-color-black)}';var StzhVbzLinechip=function(){function r(r){var o=this;registerInstance(this,r);this.stzhFocus=createEvent(this,"stzhFocus",7);this.stzhBlur=createEvent(this,"stzhBlur",7);this.onFocus=function(r){var a=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});o.element.dispatchEvent(a);o.stzhFocus.emit({component:"stzh-vbz-linechip",originalEvent:r})};this.onBlur=function(r){var a=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});o.element.dispatchEvent(a);o.stzhBlur.emit({component:"stzh-vbz-linechip",originalEvent:r})};this.line=undefined;this.active=false;this.alert=false;this.global=false}r.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){this.chip.focus();return[2]}))}))};r.prototype.render=function(){var r;var o=this;var a=LineColors[this.line]||{};var t={color:this.global?"rgb(0, 0, 0)":a.color||"rgb(255, 255, 255)",background:this.global?"rgb(228, 105, 76)":a.background||"rgb(0, 0, 0)"};var n=tinycolor(t.background);var e=n.getBrightness()<50;var b=(r={"stzh-vbz-linechip":true,"stzh-vbz-linechip--is-global":this.global,"stzh-vbz-linechip--is-alert":this.alert,"stzh-vbz-linechip--is-active":this.active,"stzh-vbz-linechip--is-dark":e,"stzh-vbz-linechip--bg-white":t.background==="rgb(255, 255, 255)"},r["stzh-vbz-linechip--line-".concat(this.line)]=!!this.line,r);var i=a.comment||"";return h(Host,null,h("button",{ref:function(r){return o.chip=r},class:b,style:t,title:i,onFocus:this.onFocus,onBlur:this.onBlur},this.global?h("stzh-icon",{name:"important-warning",class:"stzh-vbz-linechip__global-icon"}):h("div",{class:"stzh-vbz-linechip__text"},this.line),this.alert&&h("div",{class:"stzh-vbz-linechip__alert"},h("stzh-icon",{name:"warning-big",class:"stzh-vbz-linechip__alert-icon"}))))};Object.defineProperty(r.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return r}();StzhVbzLinechip.style=stzhVbzLinechipCss;export{StzhVbzLinechip as stzh_vbz_linechip};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,r){function s(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function n(t){try{l(r.next(t))}catch(e){a(e)}}function c(t){try{l(r["throw"](t))}catch(e){a(e)}}function l(t){t.done?i(t.value):s(t.value).then(n,c)}l((r=r.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:[]},r,s,a,n;return n={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function c(t){return function(e){return l([t,e])}}function l(c){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,c[0]&&(i=0)),i)try{if(r=1,s&&(a=c[0]&2?s["return"]:c[0]?s["throw"]||((a=s["return"])&&a.call(s),0):s.next)&&!(a=a.call(s,c[1])).done)return a;if(s=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++;s=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(l){c=[6,l];s=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{r as registerInstance,h,F as Fragment,c as Host,g as getElement}from"./index-319b7c49.js";import{a as axios}from"./axios-e2b39666.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";import{c as createGlobalAdapter}from"./date-adapter-cbc340fa.js";import{VBZ}from"./index.js";var stzhVbzTickerCss=".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__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-medium) - 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 StzhVbzTicker=function(){function t(t){var e;registerInstance(this,t);this.globalDisturbances=[];this.lines=[];this.counter=(e={},e["".concat(VBZ.DISTURBANCE_GLOBAL)]=0,e["".concat(VBZ.DISTURBANCE_INFORMATION)]=0,e["".concat(VBZ.DISTURBANCE_CONSTRUCTION)]=0,e["".concat(VBZ.DISTURBANCE_NORMAL)]=0,e["".concat(VBZ.DISTURBANCE_EVENT)]=0,e["".concat(VBZ.DISTURBANCE_BUS)]=0,e);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.dateAdapter=undefined;this.localization=undefined}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(r){switch(r.label){case 0:if(!t){return[2]}e=this.api.replace(/\{lang\}/,this.localization.$locale);e=e+(e.includes("?")?"&":"?")+Date.now();return[4,axios.get(e)];case 1:i=r.sent().data;this.data=i;return[2]}}))}))};t.prototype.dataWatcher=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r;var s=this;return __generator(this,(function(a){if(typeof t==="string"){this._data=JSON.parse(t)}else{this._data=t}r={};(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===VBZ.CHANNEL_TICKER&&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(VBZ.CHANNEL_INFO_URL_FILTER)!==-1}));if(t.baseType===VBZ.BASE_TYPE_GLOBAL){s.counter[VBZ.DISTURBANCE_GLOBAL]++;s.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{s.counter[t.category]++}if(t.affectedProduct&&t.category!==VBZ.DISTURBANCE_INFORMATION&&t.baseType!==VBZ.BASE_TYPE_GLOBAL){t.affectedProduct.forEach((function(e){if(typeof r[e.lineId]==="undefined"){r[e.lineId]={line:e.line,name:e.name,category:e.cls,disturbances:[],alert:false}}if(t.category===VBZ.DISTURBANCE_NORMAL){r[e.lineId].alert=true}r[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(r).map((function(t){return r[t]}));this.lines.sort((function(t,e){return s.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,fetchTranslations(this.element,"vbz-ticker")];case 1:t.localization=e.sent();this.localizationWatcher();e.label=2;case 2:if(!this.dateAdapter){this.dateAdapter=createGlobalAdapter(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 h("div",{class:(e={"stzh-vbz-ticker__disturbance":true},e["stzh-vbz-ticker__disturbance--type".concat(t.category)]=!!t.category,e)},t.category===VBZ.DISTURBANCE_NORMAL||t.baseType===VBZ.BASE_TYPE_GLOBAL?h("stzh-icon",{name:"warning-big",class:"stzh-vbz-ticker__disturbance-icon"}):h("stzh-icon",{name:"construction",class:"stzh-vbz-ticker__disturbance-icon"}),h("div",{class:"stzh-vbz-ticker__disturbance-text"},h("div",{class:"stzh-vbz-ticker__disturbance-title"},t.head),h("div",{class:"stzh-vbz-ticker__disturbance-date"},t.altStart||this.dateAdapter.format(t.startDate),h("span",{innerHTML:this.localization.$formats.dateRange}),t.altEnd||this.dateAdapter.format(t.endDate)),t.infoUrl?h("stzh-link",{class:"stzh-vbz-ticker__disturbance-link",size:"small",href:t.infoUrl.url},this.localization.moreInfo):h("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 h(Host,null,h("div",{class:e},h("div",{class:"stzh-vbz-ticker__text"},h("div",{class:"stzh-vbz-ticker__title"},h("div",{class:"stzh-vbz-ticker__title-parts"},this.lines.length===0&&this.counter[VBZ.DISTURBANCE_GLOBAL]===0&&h("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--no-disturbances"},h("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"checkmark-circle"}),this.localization.noDisturbances),this.counter[VBZ.DISTURBANCE_NORMAL]>0&&h("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--disturbances"},h("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"warning"}),this.counter[VBZ.DISTURBANCE_GLOBAL]>0?this.localization.furtherDisturbanceTitle:this.localization.disturbanceTitle),(this.counter[VBZ.DISTURBANCE_CONSTRUCTION]>0||this.counter[VBZ.DISTURBANCE_EVENT]>0||this.counter[VBZ.DISTURBANCE_BUS]>0)&&h("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--others"},h("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"construction"}),this.localization.constructionsTitle))),(this.lines.length>0||this.counter[VBZ.DISTURBANCE_GLOBAL]>0)&&h(Fragment,null,h("div",{class:"stzh-vbz-ticker__chips",role:"list"},this.lines.map((function(e){return h("div",{class:"stzh-vbz-ticker__chip",role:"listitem"},h("stzh-tooltip",{class:"stzh-vbz-ticker__tooltip"},h("stzh-vbz-linechip",{line:e.line,alert:e.alert}),h("div",{class:"stzh-vbz-ticker__tooltip-content",slot:"content"},e.disturbances.map((function(e){return t.renderDisturbance(e)})))))}))))),h("div",{class:"stzh-vbz-ticker__link"},h("slot",{name:"link"}))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{localization:["localizationWatcher"],api:["apiWatcher"],data:["dataWatcher"]}},enumerable:false,configurable:true});return t}();StzhVbzTicker.style=stzhVbzTickerCss;export{StzhVbzTicker as stzh_vbz_ticker};
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,i,r){function s(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function n(t){try{l(r.next(t))}catch(e){a(e)}}function c(t){try{l(r["throw"](t))}catch(e){a(e)}}function l(t){t.done?i(t.value):s(t.value).then(n,c)}l((r=r.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:[]},r,s,a,n;return n={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function c(t){return function(e){return l([t,e])}}function l(c){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,c[0]&&(i=0)),i)try{if(r=1,s&&(a=c[0]&2?s["return"]:c[0]?s["throw"]||((a=s["return"])&&a.call(s),0):s.next)&&!(a=a.call(s,c[1])).done)return a;if(s=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++;s=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(l){c=[6,l];s=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{r as registerInstance,h,F as Fragment,c as Host,g as getElement}from"./index-319b7c49.js";import{a as axios}from"./axios-e2b39666.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";import{c as createGlobalAdapter}from"./date-adapter-cbc340fa.js";import{VBZ}from"./index.js";var stzhVbzTickerCss=".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__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-medium) - 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 StzhVbzTicker=function(){function t(t){var e;registerInstance(this,t);this.globalDisturbances=[];this.lines=[];this.counter=(e={},e["".concat(VBZ.DISTURBANCE_GLOBAL)]=0,e["".concat(VBZ.DISTURBANCE_INFORMATION)]=0,e["".concat(VBZ.DISTURBANCE_CONSTRUCTION)]=0,e["".concat(VBZ.DISTURBANCE_NORMAL)]=0,e["".concat(VBZ.DISTURBANCE_EVENT)]=0,e["".concat(VBZ.DISTURBANCE_BUS)]=0,e);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.dateAdapter=undefined;this.localization=undefined}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(r){switch(r.label){case 0:if(!t){return[2]}e=this.api.replace(/\{lang\}/,this.localization.$locale);e=e+(e.includes("?")?"&":"?")+Date.now();return[4,axios.get(e)];case 1:i=r.sent().data;this.data=i;return[2]}}))}))};t.prototype.dataWatcher=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r;var s=this;return __generator(this,(function(a){if(typeof t==="string"){this._data=JSON.parse(t)}else{this._data=t}r={};(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===VBZ.CHANNEL_TICKER&&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(VBZ.CHANNEL_INFO_URL_FILTER)!==-1}));if(t.baseType===VBZ.BASE_TYPE_GLOBAL){s.counter[VBZ.DISTURBANCE_GLOBAL]++;s.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{s.counter[t.category]++}if(t.affectedProduct&&t.category!==VBZ.DISTURBANCE_INFORMATION&&t.baseType!==VBZ.BASE_TYPE_GLOBAL){var a=[];t.affectedProduct.forEach((function(e){if(typeof r[e.lineId]==="undefined"){r[e.lineId]={line:e.line,name:e.name,category:e.cls,disturbances:[],alert:false}}if(t.category===VBZ.DISTURBANCE_NORMAL){r[e.lineId].alert=true}if(!a.includes(e.lineId)){a.push(e.lineId);r[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(r).map((function(t){return r[t]}));this.lines.sort((function(t,e){return s.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,fetchTranslations(this.element,"vbz-ticker")];case 1:t.localization=e.sent();this.localizationWatcher();e.label=2;case 2:if(!this.dateAdapter){this.dateAdapter=createGlobalAdapter(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 h("div",{class:(e={"stzh-vbz-ticker__disturbance":true},e["stzh-vbz-ticker__disturbance--type".concat(t.category)]=!!t.category,e)},t.category===VBZ.DISTURBANCE_NORMAL||t.baseType===VBZ.BASE_TYPE_GLOBAL?h("stzh-icon",{name:"warning-big",class:"stzh-vbz-ticker__disturbance-icon"}):h("stzh-icon",{name:"construction",class:"stzh-vbz-ticker__disturbance-icon"}),h("div",{class:"stzh-vbz-ticker__disturbance-text"},h("div",{class:"stzh-vbz-ticker__disturbance-title"},t.head),h("div",{class:"stzh-vbz-ticker__disturbance-date"},t.altStart||this.dateAdapter.format(t.startDate),h("span",{innerHTML:this.localization.$formats.dateRange}),t.altEnd||this.dateAdapter.format(t.endDate)),t.infoUrl?h("stzh-link",{class:"stzh-vbz-ticker__disturbance-link",size:"small",href:t.infoUrl.url},this.localization.moreInfo):h("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 h(Host,null,h("div",{class:e},h("div",{class:"stzh-vbz-ticker__text"},h("div",{class:"stzh-vbz-ticker__title"},h("div",{class:"stzh-vbz-ticker__title-parts"},this.lines.length===0&&this.counter[VBZ.DISTURBANCE_GLOBAL]===0&&h("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--no-disturbances"},h("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"checkmark-circle"}),this.localization.noDisturbances),this.counter[VBZ.DISTURBANCE_NORMAL]>0&&h("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--disturbances"},h("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"warning"}),this.counter[VBZ.DISTURBANCE_GLOBAL]>0?this.localization.furtherDisturbanceTitle:this.localization.disturbanceTitle),(this.counter[VBZ.DISTURBANCE_CONSTRUCTION]>0||this.counter[VBZ.DISTURBANCE_EVENT]>0||this.counter[VBZ.DISTURBANCE_BUS]>0)&&h("div",{class:"stzh-vbz-ticker__title-part stzh-vbz-ticker__title-part--others"},h("stzh-icon",{class:"stzh-vbz-ticker__icon",name:"construction"}),this.localization.constructionsTitle))),(this.lines.length>0||this.counter[VBZ.DISTURBANCE_GLOBAL]>0)&&h(Fragment,null,h("div",{class:"stzh-vbz-ticker__chips",role:"list"},this.lines.map((function(e){return h("div",{class:"stzh-vbz-ticker__chip",role:"listitem"},h("stzh-tooltip",{class:"stzh-vbz-ticker__tooltip"},h("stzh-vbz-linechip",{line:e.line,alert:e.alert}),h("div",{class:"stzh-vbz-ticker__tooltip-content",slot:"content"},e.disturbances.map((function(e){return t.renderDisturbance(e)})))))}))))),h("div",{class:"stzh-vbz-ticker__link"},h("slot",{name:"link"}))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{localization:["localizationWatcher"],api:["apiWatcher"],data:["dataWatcher"]}},enumerable:false,configurable:true});return t}();StzhVbzTicker.style=stzhVbzTickerCss;export{StzhVbzTicker as stzh_vbz_ticker};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,c as Host}from"./index-319b7c49.js";var stzhVspaceCss=':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}:host{--v-space:var(--stzh-space-default);--v-around:0;clear:both}:host::after{content:"";display:table;clear:both}:host ::slotted(*){max-width:100%;padding-top:calc(var(--v-space) * var(--v-around));padding-bottom:calc(var(--v-space) * var(--v-around));margin:0}:host ::slotted(*:not(:last-child)){margin-bottom:calc(var(--v-space) * (1 - var(--v-around)))}:host ::slotted(stzh-vspace),:host ::slotted(stzh-hspace),:host ::slotted(stzh-row),:host ::slotted(stzh-container),:host ::slotted(stzh-section){-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-positive:1;flex-grow:1}:host(:empty){--v-around:1;height:var(--v-space)}:host([around]:not([around=false])){--v-around:1}:host([border=top]),:host([border=top-bottom]){border-top:0.0625rem solid var(--stzh-base-border-color)}:host([border=bottom]),:host([border=top-bottom]){border-bottom:0.0625rem solid var(--stzh-base-border-color)}:host([curve=tiny]){--v-space:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){:host([curve=tiny]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 1260px){:host([curve=tiny]){--v-space:var(--stzh-space-medium)}}:host([curve=small]){--v-space:var(--stzh-space-small)}@media screen and (min-width: 1024px){:host([curve=small]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){:host([curve=small]){--v-space:var(--stzh-space-large)}}:host([curve=regular]){--v-space:var(--stzh-space-medium)}@media screen and (min-width: 1024px){:host([curve=regular]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 1260px){:host([curve=regular]){--v-space:var(--stzh-space-xlarge)}}:host([curve=medium]){--v-space:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){:host([curve=medium]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){:host([curve=medium]){--v-space:var(--stzh-space-xxxlarge)}}:host([curve=large]){--v-space:var(--stzh-space-xxlarge)}@media screen and (min-width: 1024px){:host([curve=large]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){:host([curve=large]){--v-space:var(--stzh-space-xxxxlarge)}}:host([curve=big]){--v-space:var(--stzh-space-xxxlarge)}@media screen and (min-width: 600px){:host([curve=big]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1024px){:host([curve=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 1260px){:host([curve=big]){--v-space:var(--stzh-space-xbig)}}:host([curve=huge]){--v-space:var(--stzh-space-xxxxlarge)}@media screen and (min-width: 600px){:host([curve=huge]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 1024px){:host([curve=huge]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 1260px){:host([curve=huge]){--v-space:var(--stzh-space-huge)}}:host([size=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}:host([size=xxsmall]){--v-space:var(--stzh-space-xxsmall)}:host([size=xsmall]){--v-space:var(--stzh-space-xsmall)}:host([size=small]){--v-space:var(--stzh-space-small)}:host([size=medium]){--v-space:var(--stzh-space-medium)}:host([size=large]){--v-space:var(--stzh-space-large)}:host([size=xlarge]){--v-space:var(--stzh-space-xlarge)}:host([size=xxlarge]){--v-space:var(--stzh-space-xxlarge)}:host([size=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}:host([size=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}:host([size=big]){--v-space:var(--stzh-space-big)}:host([size=xbig]){--v-space:var(--stzh-space-xbig)}:host([size=huge]){--v-space:var(--stzh-space-huge)}:host([size=xhuge]){--v-space:var(--stzh-space-xhuge)}:host([size=none]){--v-space:var(--stzh-space-none)}:host([size=default]){--v-space:var(--stzh-space-default)}@media screen and (min-width: 600px){:host([size-small=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 600px){:host([size-small=xxsmall]){--v-space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 600px){:host([size-small=xsmall]){--v-space:var(--stzh-space-xsmall)}}@media screen and (min-width: 600px){:host([size-small=small]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 600px){:host([size-small=medium]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 600px){:host([size-small=large]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 600px){:host([size-small=xlarge]){--v-space:var(--stzh-space-xlarge)}}@media screen and (min-width: 600px){:host([size-small=xxlarge]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 600px){:host([size-small=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 600px){:host([size-small=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 600px){:host([size-small=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 600px){:host([size-small=xbig]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 600px){:host([size-small=huge]){--v-space:var(--stzh-space-huge)}}@media screen and (min-width: 600px){:host([size-small=xhuge]){--v-space:var(--stzh-space-xhuge)}}@media screen and (min-width: 600px){:host([size-small=none]){--v-space:var(--stzh-space-none)}}@media screen and (min-width: 600px){:host([size-small=default]){--v-space:var(--stzh-space-default)}}@media screen and (min-width: 800px){:host([size-smallheader=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 800px){:host([size-smallheader=xxsmall]){--v-space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 800px){:host([size-smallheader=xsmall]){--v-space:var(--stzh-space-xsmall)}}@media screen and (min-width: 800px){:host([size-smallheader=small]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 800px){:host([size-smallheader=medium]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 800px){:host([size-smallheader=large]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 800px){:host([size-smallheader=xlarge]){--v-space:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=xxlarge]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 800px){:host([size-smallheader=xbig]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 800px){:host([size-smallheader=huge]){--v-space:var(--stzh-space-huge)}}@media screen and (min-width: 800px){:host([size-smallheader=xhuge]){--v-space:var(--stzh-space-xhuge)}}@media screen and (min-width: 800px){:host([size-smallheader=none]){--v-space:var(--stzh-space-none)}}@media screen and (min-width: 800px){:host([size-smallheader=default]){--v-space:var(--stzh-space-default)}}@media screen and (min-width: 1024px){:host([size-medium=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 1024px){:host([size-medium=xxsmall]){--v-space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 1024px){:host([size-medium=xsmall]){--v-space:var(--stzh-space-xsmall)}}@media screen and (min-width: 1024px){:host([size-medium=small]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 1024px){:host([size-medium=medium]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 1024px){:host([size-medium=large]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 1024px){:host([size-medium=xlarge]){--v-space:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){:host([size-medium=xxlarge]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1024px){:host([size-medium=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){:host([size-medium=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1024px){:host([size-medium=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 1024px){:host([size-medium=xbig]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 1024px){:host([size-medium=huge]){--v-space:var(--stzh-space-huge)}}@media screen and (min-width: 1024px){:host([size-medium=xhuge]){--v-space:var(--stzh-space-xhuge)}}@media screen and (min-width: 1024px){:host([size-medium=none]){--v-space:var(--stzh-space-none)}}@media screen and (min-width: 1024px){:host([size-medium=default]){--v-space:var(--stzh-space-default)}}@media screen and (min-width: 1260px){:host([size-large=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 1260px){:host([size-large=xxsmall]){--v-space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 1260px){:host([size-large=xsmall]){--v-space:var(--stzh-space-xsmall)}}@media screen and (min-width: 1260px){:host([size-large=small]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 1260px){:host([size-large=medium]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){:host([size-large=large]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 1260px){:host([size-large=xlarge]){--v-space:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){:host([size-large=xxlarge]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){:host([size-large=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){:host([size-large=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1260px){:host([size-large=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 1260px){:host([size-large=xbig]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 1260px){:host([size-large=huge]){--v-space:var(--stzh-space-huge)}}@media screen and (min-width: 1260px){:host([size-large=xhuge]){--v-space:var(--stzh-space-xhuge)}}@media screen and (min-width: 1260px){:host([size-large=none]){--v-space:var(--stzh-space-none)}}@media screen and (min-width: 1260px){:host([size-large=default]){--v-space:var(--stzh-space-default)}}@media screen and (min-width: 1440px){:host([size-ultra=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 1440px){:host([size-ultra=xxsmall]){--v-space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 1440px){:host([size-ultra=xsmall]){--v-space:var(--stzh-space-xsmall)}}@media screen and (min-width: 1440px){:host([size-ultra=small]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 1440px){:host([size-ultra=medium]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 1440px){:host([size-ultra=large]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 1440px){:host([size-ultra=xlarge]){--v-space:var(--stzh-space-xlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=xxlarge]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 1440px){:host([size-ultra=xbig]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 1440px){:host([size-ultra=huge]){--v-space:var(--stzh-space-huge)}}@media screen and (min-width: 1440px){:host([size-ultra=xhuge]){--v-space:var(--stzh-space-xhuge)}}@media screen and (min-width: 1440px){:host([size-ultra=none]){--v-space:var(--stzh-space-none)}}@media screen and (min-width: 1440px){:host([size-ultra=default]){--v-space:var(--stzh-space-default)}}.stzh-vspace{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:start;align-items:flex-start;padding:0;margin:0;}.stzh-vspace--border-top{border-top:0.0625rem solid var(--stzh-base-border-color)}.stzh-vspace--border-bottom{border-bottom:0.0625rem solid var(--stzh-base-border-color)}.stzh-vspace--justify-center{-ms-flex-pack:center;justify-content:center}.stzh-vspace--justify-end{-ms-flex-pack:end;justify-content:flex-end}.stzh-vspace--justify-between{-ms-flex-pack:justify;justify-content:space-between}.stzh-vspace--justify-around{-ms-flex-pack:distribute;justify-content:space-around}.stzh-vspace--justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.stzh-vspace--items-end{-ms-flex-align:end;align-items:flex-end}.stzh-vspace--items-center{-ms-flex-align:center;align-items:center}.stzh-vspace--items-baseline{-ms-flex-align:baseline;align-items:baseline}.stzh-vspace--items-stretch{-ms-flex-align:stretch;align-items:stretch}';var StzhVspace=function(){function e(e){registerInstance(this,e);this.curve="none";this.size="inherit";this.sizeSmall="inherit";this.sizeMedium="inherit";this.sizeLarge="inherit";this.sizeUltra="inherit";this.justify="start";this.items="start";this.around=false;this.border="none"}e.prototype.render=function(){var e;return h(Host,null,h("div",{class:(e={"stzh-vspace":true},e["stzh-vspace--justify-".concat(this.justify)]=!!this.justify,e["stzh-vspace--items-".concat(this.items)]=!!this.items,e)},h("slot",null)))};return e}();StzhVspace.style=stzhVspaceCss;export{StzhVspace as stzh_vspace};
|
|
1
|
+
import{r as registerInstance,h,c as Host}from"./index-319b7c49.js";var stzhVspaceCss=':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}:host{--v-space:var(--stzh-space-default);--v-around:0;display:-ms-flexbox;display:flex;clear:both}:host::after{content:"";display:table;clear:both}:host ::slotted(*){max-width:100%;padding-top:calc(var(--v-space) * var(--v-around));padding-bottom:calc(var(--v-space) * var(--v-around));margin:0}:host ::slotted(*:not(:last-child)){margin-bottom:calc(var(--v-space) * (1 - var(--v-around)))}:host ::slotted(stzh-vspace),:host ::slotted(stzh-hspace),:host ::slotted(stzh-row),:host ::slotted(stzh-container),:host ::slotted(stzh-section){-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-positive:1;flex-grow:1}:host(:empty){--v-around:1;height:var(--v-space)}:host([around]:not([around=false])){--v-around:1}:host([border=top]),:host([border=top-bottom]){border-top:0.0625rem solid var(--stzh-base-border-color)}:host([border=bottom]),:host([border=top-bottom]){border-bottom:0.0625rem solid var(--stzh-base-border-color)}:host([curve=tiny]){--v-space:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){:host([curve=tiny]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 1260px){:host([curve=tiny]){--v-space:var(--stzh-space-medium)}}:host([curve=small]){--v-space:var(--stzh-space-small)}@media screen and (min-width: 1024px){:host([curve=small]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){:host([curve=small]){--v-space:var(--stzh-space-large)}}:host([curve=regular]){--v-space:var(--stzh-space-medium)}@media screen and (min-width: 1024px){:host([curve=regular]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 1260px){:host([curve=regular]){--v-space:var(--stzh-space-xlarge)}}:host([curve=medium]){--v-space:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){:host([curve=medium]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){:host([curve=medium]){--v-space:var(--stzh-space-xxxlarge)}}:host([curve=large]){--v-space:var(--stzh-space-xxlarge)}@media screen and (min-width: 1024px){:host([curve=large]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){:host([curve=large]){--v-space:var(--stzh-space-xxxxlarge)}}:host([curve=big]){--v-space:var(--stzh-space-xxxlarge)}@media screen and (min-width: 600px){:host([curve=big]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1024px){:host([curve=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 1260px){:host([curve=big]){--v-space:var(--stzh-space-xbig)}}:host([curve=huge]){--v-space:var(--stzh-space-xxxxlarge)}@media screen and (min-width: 600px){:host([curve=huge]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 1024px){:host([curve=huge]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 1260px){:host([curve=huge]){--v-space:var(--stzh-space-huge)}}:host([size=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}:host([size=xxsmall]){--v-space:var(--stzh-space-xxsmall)}:host([size=xsmall]){--v-space:var(--stzh-space-xsmall)}:host([size=small]){--v-space:var(--stzh-space-small)}:host([size=medium]){--v-space:var(--stzh-space-medium)}:host([size=large]){--v-space:var(--stzh-space-large)}:host([size=xlarge]){--v-space:var(--stzh-space-xlarge)}:host([size=xxlarge]){--v-space:var(--stzh-space-xxlarge)}:host([size=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}:host([size=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}:host([size=big]){--v-space:var(--stzh-space-big)}:host([size=xbig]){--v-space:var(--stzh-space-xbig)}:host([size=huge]){--v-space:var(--stzh-space-huge)}:host([size=xhuge]){--v-space:var(--stzh-space-xhuge)}:host([size=none]){--v-space:var(--stzh-space-none)}:host([size=default]){--v-space:var(--stzh-space-default)}@media screen and (min-width: 600px){:host([size-small=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 600px){:host([size-small=xxsmall]){--v-space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 600px){:host([size-small=xsmall]){--v-space:var(--stzh-space-xsmall)}}@media screen and (min-width: 600px){:host([size-small=small]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 600px){:host([size-small=medium]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 600px){:host([size-small=large]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 600px){:host([size-small=xlarge]){--v-space:var(--stzh-space-xlarge)}}@media screen and (min-width: 600px){:host([size-small=xxlarge]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 600px){:host([size-small=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 600px){:host([size-small=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 600px){:host([size-small=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 600px){:host([size-small=xbig]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 600px){:host([size-small=huge]){--v-space:var(--stzh-space-huge)}}@media screen and (min-width: 600px){:host([size-small=xhuge]){--v-space:var(--stzh-space-xhuge)}}@media screen and (min-width: 600px){:host([size-small=none]){--v-space:var(--stzh-space-none)}}@media screen and (min-width: 600px){:host([size-small=default]){--v-space:var(--stzh-space-default)}}@media screen and (min-width: 800px){:host([size-smallheader=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 800px){:host([size-smallheader=xxsmall]){--v-space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 800px){:host([size-smallheader=xsmall]){--v-space:var(--stzh-space-xsmall)}}@media screen and (min-width: 800px){:host([size-smallheader=small]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 800px){:host([size-smallheader=medium]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 800px){:host([size-smallheader=large]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 800px){:host([size-smallheader=xlarge]){--v-space:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=xxlarge]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 800px){:host([size-smallheader=xbig]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 800px){:host([size-smallheader=huge]){--v-space:var(--stzh-space-huge)}}@media screen and (min-width: 800px){:host([size-smallheader=xhuge]){--v-space:var(--stzh-space-xhuge)}}@media screen and (min-width: 800px){:host([size-smallheader=none]){--v-space:var(--stzh-space-none)}}@media screen and (min-width: 800px){:host([size-smallheader=default]){--v-space:var(--stzh-space-default)}}@media screen and (min-width: 1024px){:host([size-medium=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 1024px){:host([size-medium=xxsmall]){--v-space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 1024px){:host([size-medium=xsmall]){--v-space:var(--stzh-space-xsmall)}}@media screen and (min-width: 1024px){:host([size-medium=small]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 1024px){:host([size-medium=medium]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 1024px){:host([size-medium=large]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 1024px){:host([size-medium=xlarge]){--v-space:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){:host([size-medium=xxlarge]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1024px){:host([size-medium=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){:host([size-medium=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1024px){:host([size-medium=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 1024px){:host([size-medium=xbig]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 1024px){:host([size-medium=huge]){--v-space:var(--stzh-space-huge)}}@media screen and (min-width: 1024px){:host([size-medium=xhuge]){--v-space:var(--stzh-space-xhuge)}}@media screen and (min-width: 1024px){:host([size-medium=none]){--v-space:var(--stzh-space-none)}}@media screen and (min-width: 1024px){:host([size-medium=default]){--v-space:var(--stzh-space-default)}}@media screen and (min-width: 1260px){:host([size-large=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 1260px){:host([size-large=xxsmall]){--v-space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 1260px){:host([size-large=xsmall]){--v-space:var(--stzh-space-xsmall)}}@media screen and (min-width: 1260px){:host([size-large=small]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 1260px){:host([size-large=medium]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){:host([size-large=large]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 1260px){:host([size-large=xlarge]){--v-space:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){:host([size-large=xxlarge]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){:host([size-large=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){:host([size-large=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1260px){:host([size-large=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 1260px){:host([size-large=xbig]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 1260px){:host([size-large=huge]){--v-space:var(--stzh-space-huge)}}@media screen and (min-width: 1260px){:host([size-large=xhuge]){--v-space:var(--stzh-space-xhuge)}}@media screen and (min-width: 1260px){:host([size-large=none]){--v-space:var(--stzh-space-none)}}@media screen and (min-width: 1260px){:host([size-large=default]){--v-space:var(--stzh-space-default)}}@media screen and (min-width: 1440px){:host([size-ultra=xxxsmall]){--v-space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 1440px){:host([size-ultra=xxsmall]){--v-space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 1440px){:host([size-ultra=xsmall]){--v-space:var(--stzh-space-xsmall)}}@media screen and (min-width: 1440px){:host([size-ultra=small]){--v-space:var(--stzh-space-small)}}@media screen and (min-width: 1440px){:host([size-ultra=medium]){--v-space:var(--stzh-space-medium)}}@media screen and (min-width: 1440px){:host([size-ultra=large]){--v-space:var(--stzh-space-large)}}@media screen and (min-width: 1440px){:host([size-ultra=xlarge]){--v-space:var(--stzh-space-xlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=xxlarge]){--v-space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=xxxlarge]){--v-space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=xxxxlarge]){--v-space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=big]){--v-space:var(--stzh-space-big)}}@media screen and (min-width: 1440px){:host([size-ultra=xbig]){--v-space:var(--stzh-space-xbig)}}@media screen and (min-width: 1440px){:host([size-ultra=huge]){--v-space:var(--stzh-space-huge)}}@media screen and (min-width: 1440px){:host([size-ultra=xhuge]){--v-space:var(--stzh-space-xhuge)}}@media screen and (min-width: 1440px){:host([size-ultra=none]){--v-space:var(--stzh-space-none)}}@media screen and (min-width: 1440px){:host([size-ultra=default]){--v-space:var(--stzh-space-default)}}.stzh-vspace{-ms-flex-positive:1;flex-grow:1;width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:start;align-items:flex-start;padding:0;margin:0;}.stzh-vspace--border-top{border-top:0.0625rem solid var(--stzh-base-border-color)}.stzh-vspace--border-bottom{border-bottom:0.0625rem solid var(--stzh-base-border-color)}.stzh-vspace--justify-center{-ms-flex-pack:center;justify-content:center}.stzh-vspace--justify-end{-ms-flex-pack:end;justify-content:flex-end}.stzh-vspace--justify-between{-ms-flex-pack:justify;justify-content:space-between}.stzh-vspace--justify-around{-ms-flex-pack:distribute;justify-content:space-around}.stzh-vspace--justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.stzh-vspace--items-end{-ms-flex-align:end;align-items:flex-end}.stzh-vspace--items-center{-ms-flex-align:center;align-items:center}.stzh-vspace--items-baseline{-ms-flex-align:baseline;align-items:baseline}.stzh-vspace--items-stretch{-ms-flex-align:stretch;align-items:stretch}';var StzhVspace=function(){function e(e){registerInstance(this,e);this.curve="none";this.size="inherit";this.sizeSmall="inherit";this.sizeMedium="inherit";this.sizeLarge="inherit";this.sizeUltra="inherit";this.justify="start";this.items="start";this.around=false;this.border="none"}e.prototype.render=function(){var e;return h(Host,null,h("div",{class:(e={"stzh-vspace":true},e["stzh-vspace--justify-".concat(this.justify)]=!!this.justify,e["stzh-vspace--items-".concat(this.items)]=!!this.items,e)},h("slot",null)))};return e}();StzhVspace.style=stzhVspaceCss;export{StzhVspace as stzh_vspace};
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"$globals": {
|
|
19
|
+
"externalLinkLabel": "Externer Link:",
|
|
20
|
+
"downloadLinkLabel": "Download von:",
|
|
19
21
|
"requiredFieldMarker": "",
|
|
20
22
|
"requiredFieldText": " (Pflichtfeld)",
|
|
21
23
|
"optionalFieldMarker": " (optional)",
|
|
@@ -154,6 +156,10 @@
|
|
|
154
156
|
"showTranscript": "Abschrift zeigen",
|
|
155
157
|
"download": "Download"
|
|
156
158
|
},
|
|
159
|
+
"clamp": {
|
|
160
|
+
"showMore": "Mehr anzeigen",
|
|
161
|
+
"showLess": "Weniger anzeigen"
|
|
162
|
+
},
|
|
157
163
|
"share": {
|
|
158
164
|
"mailSubject": "Link-Empfehlung Website Stadt Zürich",
|
|
159
165
|
"mailBody": "Folgende Seite (Stadt Zürich) wurde Ihnen empfohlen:\n\n{shareUrl}",
|
|
@@ -163,6 +169,10 @@
|
|
|
163
169
|
"shareXing": "Bei XING teilen",
|
|
164
170
|
"shareMail": "Per E-Mail versenden"
|
|
165
171
|
},
|
|
172
|
+
"carousel": {
|
|
173
|
+
"slideLabel": "Slide {current} von {total}",
|
|
174
|
+
"slidesLabel": "Slides {from} bis {to} von {total}"
|
|
175
|
+
},
|
|
166
176
|
"footer": {
|
|
167
177
|
"legalNoticeUrl": "rechtliche-hinweise",
|
|
168
178
|
"legalNoticeText": "Rechtliche Hinweise",
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"$globals": {
|
|
19
|
+
"externalLinkLabel": "External link:",
|
|
20
|
+
"downloadLinkLabel": "Download of:",
|
|
19
21
|
"requiredFieldMarker": "",
|
|
20
22
|
"requiredFieldText": " (required)",
|
|
21
23
|
"optionalFieldMarker": " (optional)",
|
|
@@ -117,7 +119,7 @@
|
|
|
117
119
|
},
|
|
118
120
|
"datamessagelist-item": {
|
|
119
121
|
"actionsPopoverLabel": "Actions",
|
|
120
|
-
"unread": "Unread"
|
|
122
|
+
"unread": "Unread"
|
|
121
123
|
},
|
|
122
124
|
"actionset": {
|
|
123
125
|
"actions": "Actions",
|
|
@@ -154,6 +156,10 @@
|
|
|
154
156
|
"showTranscript": "Show transcript",
|
|
155
157
|
"download": "Download"
|
|
156
158
|
},
|
|
159
|
+
"clamp": {
|
|
160
|
+
"showMore": "Show more",
|
|
161
|
+
"showLess": "Show less"
|
|
162
|
+
},
|
|
157
163
|
"share": {
|
|
158
164
|
"mailSubject": "Recommended link City of Zurich website",
|
|
159
165
|
"mailBody": "The following website (City of Zurich) is recommended:\n\n{shareUrl}",
|
|
@@ -163,6 +169,10 @@
|
|
|
163
169
|
"shareXing": "Share on XING",
|
|
164
170
|
"shareMail": "Send by email"
|
|
165
171
|
},
|
|
172
|
+
"carousel": {
|
|
173
|
+
"slideLabel": "Slide {current} of {total}",
|
|
174
|
+
"slidesLabel": "Slides {from} to {to} of {total}"
|
|
175
|
+
},
|
|
166
176
|
"footer": {
|
|
167
177
|
"legalNoticeUrl": "legal-notice",
|
|
168
178
|
"legalNoticeText": "Legal notice",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as s,c as e,g as a}from"./p-99a3742a.js";import{s as i,h}from"./p-5c697491.js";const l=class{constructor(s){t(this,s),this.init=()=>{const t=this.element.querySelectorAll('stzh-heading[slot="heading"], [slot="heading"] stzh-heading'),s=this.element.querySelectorAll('stzh-text[slot="lead"], [slot="lead"] stzh-text'),e=this.element.querySelectorAll('stzh-link[slot="action-left"], stzh-link[slot="action-right"], [slot="action-left"] stzh-link, [slot="action-right"] stzh-link'),a=this.element.querySelectorAll('stzh-link[slot="action-right"], [slot="action-right"] stzh-link');t.forEach((t=>{i(t,{withBorder:!0})})),s.forEach((t=>{i(t,{lead:!0})})),a.forEach((t=>{i(t,{icon:"web-link"})})),e.forEach((t=>{i(t,{size:"small"})}))}}connectedCallback(){this.init(),this.observer=new MutationObserver(this.init),this.observer.observe(this.element,{childList:!0,subtree:!0})}disconnectedCallback(){this.observer&&this.observer.disconnect()}render(){const t=h(this.element,"heading"),a=h(this.element,"image"),i=h(this.element,"lead"),l=h(this.element,"action-left"),n=h(this.element,"action-right");return s(e,null,s("div",{class:{"stzh-pagetitle":!0,"stzh-pagetitle--has-heading":t,"stzh-pagetitle--has-image":a,"stzh-pagetitle--has-lead":i,"stzh-pagetitle--has-action":l||n,"stzh-pagetitle--has-action-left":l,"stzh-pagetitle--has-action-right":n}},s("slot",{name:"heading"}),s("div",{class:"stzh-pagetitle__actions"},s("slot",{name:"action-left"}),s("slot",{name:"action-right"})),s("slot",{name:"image"}),s("slot",{name:"lead"})))}get element(){return a(this)}};l.style=".sc-stzh-pagetitle-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-pagetitle-h{display:none}.sc-stzh-pagetitle-h *.sc-stzh-pagetitle,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::before,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xxxlarge)}}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-xlarge)}}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xxxlarge)}}.stzh-pagetitle__actions.sc-stzh-pagetitle{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}";export{l as stzh_pagetitle}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,s){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function o(e){try{h(s.next(e))}catch(t){r(t)}}function a(e){try{h(s["throw"](e))}catch(t){r(t)}}function h(e){e.done?n(e.value):i(e.value).then(o,a)}h((s=s.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,i,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return h([e,t])}}function h(a){if(s)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(n=0)),n)try{if(s=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(h){a=[6,h];i=0}finally{s=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-36e72c1d.system.js","./p-d4b7a303.system.js"],(function(e){"use strict";var t,n,s,i,r,o,a;return{setters:[function(e){t=e.r;n=e.h;s=e.c;i=e.e;r=e.F;o=e.g},function(e){a=e.h}],execute:function(){var h=".sc-stzh-menu-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-menu-h{display:none}.sc-stzh-menu-h *.sc-stzh-menu,.sc-stzh-menu-h *.sc-stzh-menu::before,.sc-stzh-menu-h *.sc-stzh-menu::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-menu-h .sc-stzh-menu-s>stzh-hr{margin-top:var(--stzh-space-xsmall);margin-bottom:var(--stzh-space-xsmall)}.stzh-menu.sc-stzh-menu{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}";var l=e("stzh_menu",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(s,{role:"menu"},n("div",{class:"stzh-menu"},n("slot",null)))};return e}());l.style=h;var c=".sc-stzh-menu-item-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-menu-item-h{display:none}.sc-stzh-menu-item-h *.sc-stzh-menu-item,.sc-stzh-menu-item-h *.sc-stzh-menu-item::before,.sc-stzh-menu-item-h *.sc-stzh-menu-item::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-menu-item-h{--height:var(--stzh-menu-item-height);--color:var(--stzh-color-grey70);--background-color:transparent;--icon-size:var(--stzh-icon-size-small);--hover-color:var(--stzh-color-grey70);--hover-background-color:var(--stzh-color-grey5)}[active].sc-stzh-menu-item-h:not([active=false]){--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-background-color:var(--stzh-color-primary8)}[disabled].sc-stzh-menu-item-h:not([disabled=false]){--color:var(--stzh-color-white);--background-color:var(--stzh-color-grey13);--hover-color:var(--stzh-color-white);--hover-background-color:var(--stzh-color-grey13)}.sc-stzh-menu-item-h .sc-stzh-menu-item-s>stzh-icon,.stzh-menu-item__icon.sc-stzh-menu-item{--size:var(--icon-size)}.stzh-menu-item.sc-stzh-menu-item{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);font-family:inherit;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-decoration:none;border:none;padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large);color:var(--color);background-color:var(--background-color);width:100%;height:var(--height);line-height:var(--height);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-menu-item.sc-stzh-menu-item:hover{color:var(--hover-color);background-color:var(--hover-background-color)}.stzh-menu-item__icon-wrapper.sc-stzh-menu-item{position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;width:auto;height:1em}.stzh-menu-item__badge.sc-stzh-menu-item{position:absolute;z-index:1;top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-xsmall) * -1)}.stzh-menu-item__icon-wrapper.sc-stzh-menu-item+.stzh-menu-item__text.sc-stzh-menu-item:not(:empty){margin-left:var(--stzh-space-xsmall)}.stzh-menu-item__text.sc-stzh-menu-item{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stzh-menu-item--is-disabled.sc-stzh-menu-item{cursor:not-allowed}";var u=e("stzh_menu_item",function(){function e(e){var n=this;t(this,e);this.stzhFocus=i(this,"stzhFocus",7);this.stzhBlur=i(this,"stzhBlur",7);this.onFocus=function(e){var t=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});n.element.dispatchEvent(t);n.stzhFocus.emit({component:"stzh-menu-item",originalEvent:e})};this.onBlur=function(e){var t=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});n.element.dispatchEvent(t);n.stzhBlur.emit({component:"stzh-menu-item",originalEvent:e})};this.badge="";this.badgeType="default";this.badgeEmpty=false;this.
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,s){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function o(e){try{h(s.next(e))}catch(t){r(t)}}function a(e){try{h(s["throw"](e))}catch(t){r(t)}}function h(e){e.done?n(e.value):i(e.value).then(o,a)}h((s=s.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,i,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return h([e,t])}}function h(a){if(s)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(n=0)),n)try{if(s=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(h){a=[6,h];i=0}finally{s=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-36e72c1d.system.js","./p-d4b7a303.system.js"],(function(e){"use strict";var t,n,s,i,r,o,a;return{setters:[function(e){t=e.r;n=e.h;s=e.c;i=e.e;r=e.F;o=e.g},function(e){a=e.h}],execute:function(){var h=".sc-stzh-menu-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-menu-h{display:none}.sc-stzh-menu-h *.sc-stzh-menu,.sc-stzh-menu-h *.sc-stzh-menu::before,.sc-stzh-menu-h *.sc-stzh-menu::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-menu-h .sc-stzh-menu-s>stzh-hr{margin-top:var(--stzh-space-xsmall);margin-bottom:var(--stzh-space-xsmall)}.stzh-menu.sc-stzh-menu{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}";var l=e("stzh_menu",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(s,{role:"menu"},n("div",{class:"stzh-menu"},n("slot",null)))};return e}());l.style=h;var c=".sc-stzh-menu-item-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-menu-item-h{display:none}.sc-stzh-menu-item-h *.sc-stzh-menu-item,.sc-stzh-menu-item-h *.sc-stzh-menu-item::before,.sc-stzh-menu-item-h *.sc-stzh-menu-item::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-menu-item-h{--height:var(--stzh-menu-item-height);--color:var(--stzh-color-grey70);--background-color:transparent;--icon-size:var(--stzh-icon-size-small);--hover-color:var(--stzh-color-grey70);--hover-background-color:var(--stzh-color-grey5)}[active].sc-stzh-menu-item-h:not([active=false]){--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-background-color:var(--stzh-color-primary8)}[disabled].sc-stzh-menu-item-h:not([disabled=false]){--color:var(--stzh-color-white);--background-color:var(--stzh-color-grey13);--hover-color:var(--stzh-color-white);--hover-background-color:var(--stzh-color-grey13)}.sc-stzh-menu-item-h .sc-stzh-menu-item-s>stzh-icon,.stzh-menu-item__icon.sc-stzh-menu-item{--size:var(--icon-size)}.stzh-menu-item.sc-stzh-menu-item{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);font-family:inherit;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-decoration:none;border:none;padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large);color:var(--color);background-color:var(--background-color);width:100%;height:var(--height);line-height:var(--height);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-menu-item.sc-stzh-menu-item:hover{color:var(--hover-color);background-color:var(--hover-background-color)}.stzh-menu-item__icon-wrapper.sc-stzh-menu-item{position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;width:auto;height:1em}.stzh-menu-item__badge.sc-stzh-menu-item{position:absolute;z-index:1;top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-xsmall) * -1)}.stzh-menu-item__icon-wrapper.sc-stzh-menu-item+.stzh-menu-item__text.sc-stzh-menu-item:not(:empty){margin-left:var(--stzh-space-xsmall)}.stzh-menu-item__text.sc-stzh-menu-item{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stzh-menu-item--is-disabled.sc-stzh-menu-item{cursor:not-allowed}";var u=e("stzh_menu_item",function(){function e(e){var n=this;t(this,e);this.stzhFocus=i(this,"stzhFocus",7);this.stzhBlur=i(this,"stzhBlur",7);this.onFocus=function(e){var t=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});n.element.dispatchEvent(t);n.stzhFocus.emit({component:"stzh-menu-item",originalEvent:e})};this.onBlur=function(e){var t=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});n.element.dispatchEvent(t);n.stzhBlur.emit({component:"stzh-menu-item",originalEvent:e})};this.badge="";this.badgeType="default";this.badgeEmpty=false;this.disabled=false;this.active=false;this.icon="";this.label="";this.href="";this.target="";this.a11yLabel=undefined}e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.menuItem.focus();return[2]}))}))};e.prototype.renderInner=function(e){return n(r,null,e&&n("div",{class:"stzh-menu-item__icon-wrapper"},this.icon?n("stzh-icon",{class:"stzh-menu-item__icon",name:this.icon}):n("slot",{name:"icon"}),(this.badge||this.badgeEmpty)&&n("stzh-badge",{class:"stzh-menu-item__badge",label:this.badge,type:this.badgeType})),n("div",{class:"stzh-menu-item__text"},this.label?this.label:n("slot",null)))};e.prototype.render=function(){var e=this;var t=a(this.element,"icon")||!!this.icon;var i={"stzh-menu-item":true,"stzh-menu-item--has-icon":t,"stzh-menu-item--has-badge":!!this.badge,"stzh-menu-item--is-disabled":this.disabled,"stzh-menu-item--is-active":this.active};return n(s,{role:"menuitem"},this.href?n("a",{ref:function(t){return e.menuItem=t},href:this.disabled?null:this.href,target:this.target,class:i,"aria-label":this.a11yLabel,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(t)):n("button",{ref:function(t){return e.menuItem=t},class:i,type:"button",disabled:this.disabled,"aria-label":this.a11yLabel,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(t)))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());u.style=c}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,a,t,n){function s(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,r){function i(e){try{l(n.next(e))}catch(a){r(a)}}function o(e){try{l(n["throw"](e))}catch(a){r(a)}}function l(e){e.done?t(e.value):s(e.value).then(i,o)}l((n=n.apply(e,a||[])).next())}))};var __generator=this&&this.__generator||function(e,a){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,i;return i={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(e){return function(a){return l([e,a])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,o[0]&&(t=0)),t)try{if(n=1,s&&(r=o[0]&2?s["return"]:o[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,o[1])).done)return r;if(s=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;s=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(r=t.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){t.label=o[1];break}if(o[0]===6&&t.label<r[1]){t.label=r[1];r=o;break}if(r&&t.label<r[2]){t.label=r[2];t.ops.push(o);break}if(r[2])t.ops.pop();t.trys.pop();continue}o=a.call(e,t)}catch(l){o=[6,l];s=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-36e72c1d.system.js","./p-11816251.system.js","./p-a408bfba.system.js"],(function(e){"use strict";var a,t,n,s,r,i,o,l,c,h,d,u,f,z,p,v,y,b,_,m,g;return{setters:[function(e){a=e.h;t=e.r;n=e.e;s=e.c;r=e.g},function(e){i=e.i;o=e.b;l=e.g;c=e.c;h=e.p;d=e.D;u=e.d;f=e.a;z=e.e;p=e.s;v=e.f;y=e.h;b=e.j;_=e.k;m=e.l},function(e){g=e.f}],execute:function(){var x=function(e){var t=e.focusedDay,n=e.today,s=e.day,r=e.onDaySelect,l=e.onKeyboardNavigation,c=e.focusedDayRef,h=e.disabled,d=e.inRange,u=e.isSelected,f=e.dateFormatter;var z=i(s,n);var p=o(s,t);var v=i(s,t);var y=!d;function b(e){r(e,s)}return a("button",{class:{"stzh-calendar__day":true,"is-outside":y,"is-today":z,"is-month":p,"is-disabled":h},tabIndex:v?0:-1,onClick:b,onKeyDown:l,"aria-disabled":h?"true":undefined,disabled:y,type:"button","aria-pressed":u?"true":"false","aria-current":z?"date":undefined,ref:function(e){if(v&&e&&c){c(e)}}},a("span",{"aria-hidden":"true"},s.getDate()),a("span",{class:"stzh-calendar__vhidden"},f.format(s)))};function w(e,a){var t=[];for(var n=0;n<e.length;n+=a){t.push(e.slice(n,n+a))}return t}function D(e,a,t){return e.map((function(n,s){var r=(s+a)%e.length;return t(e[r])}))}var k=function(e){var t=e.selectedDate,n=e.focusedDate,s=e.labelledById,r=e.localization,o=e.firstDayOfWeek,h=e.min,d=e.max,u=e.dateFormatter,f=e.isDateDisabled,z=e.onDateSelect,p=e.onKeyboardNavigation,v=e.focusedDayRef;var y=new Date;var b=l(n,o);return a("table",{class:"stzh-calendar__table","aria-labelledby":s},a("thead",null,a("tr",null,D(r.$globals.dayNames,o,(function(e){return a("th",{class:"stzh-calendar__table-header",scope:"col"},a("span",{"aria-hidden":"true"},e.substring(0,2)),a("span",{class:"stzh-calendar__vhidden"},e))})))),a("tbody",null,w(b,7).map((function(e){return a("tr",{class:"stzh-calendar__row"},e.map((function(e){return a("td",{class:"stzh-calendar__cell"},a(x,{day:e,today:y,focusedDay:n,isSelected:i(e,t),disabled:f(e),inRange:c(e,h,d),onDaySelect:z,dateFormatter:u,onKeyboardNavigation:p,focusedDayRef:v}))})))}))))};var F='.sc-stzh-calendar-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-calendar-h{display:none}.sc-stzh-calendar-h *.sc-stzh-calendar,.sc-stzh-calendar-h *.sc-stzh-calendar::before,.sc-stzh-calendar-h *.sc-stzh-calendar::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-calendar-h{display:block}.stzh-calendar.sc-stzh-calendar{display:-ms-flexbox;display:flex;position:relative;text-align:left;color:var(--stzh-base-color);-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.stzh-calendar__wrapper.sc-stzh-calendar{width:100%}@media screen and (min-width: 600px){.stzh-calendar__wrapper.sc-stzh-calendar{min-width:18.125rem}}.stzh-calendar__table.sc-stzh-calendar{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;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);border-collapse:collapse;border-spacing:0;color:var(--stzh-base-color);text-align:center;width:100%}.stzh-calendar__table-header.sc-stzh-calendar,.stzh-calendar__cell.sc-stzh-calendar{padding:var(--stzh-space-xxxsmall)}.stzh-calendar__table-header.sc-stzh-calendar:first-child,.stzh-calendar__cell.sc-stzh-calendar:first-child{padding-left:0}.stzh-calendar__table-header.sc-stzh-calendar:last-child,.stzh-calendar__cell.sc-stzh-calendar:last-child{padding-right:0}.stzh-calendar__row.sc-stzh-calendar:last-child .stzh-calendar__cell.sc-stzh-calendar{padding-bottom:0}.stzh-calendar__table-header.sc-stzh-calendar{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);text-decoration:none;padding-top:0}.stzh-calendar__cell.sc-stzh-calendar{text-align:center}.stzh-calendar__day.sc-stzh-calendar{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:50%;color:var(--stzh-base-color);cursor:pointer;display:inline-block;font-variant-numeric:tabular-nums;height:2.5rem;padding:0 0 0.0625rem;position:relative;text-align:center;vertical-align:middle;width:2.5rem;z-index:1}.stzh-calendar__day.sc-stzh-calendar::before{border-radius:50%;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.stzh-calendar__day.is-today.sc-stzh-calendar{-webkit-box-shadow:0 0 0 0.0625rem var(--stzh-color-primary, var(--stzh-color-zueriblue));box-shadow:0 0 0 0.0625rem var(--stzh-color-primary, var(--stzh-color-zueriblue));position:relative;z-index:200}.stzh-calendar__day.sc-stzh-calendar:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-calendar__day.sc-stzh-calendar:hover::before{background:var(--stzh-color-primary, var(--stzh-color-zueriblue));opacity:0.08}.stzh-calendar__day[aria-pressed=true].sc-stzh-calendar,.stzh-calendar__day.sc-stzh-calendar:focus{background:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-box-shadow:none;box-shadow:none;color:var(--stzh-color-white)}.stzh-calendar__day.sc-stzh-calendar:active{background:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-box-shadow:0 0 0.3125rem var(--stzh-color-primary, var(--stzh-color-zueriblue));box-shadow:0 0 0.3125rem var(--stzh-color-primary, var(--stzh-color-zueriblue));color:var(--stzh-color-white);z-index:200}.stzh-calendar__day.sc-stzh-calendar:focus{z-index:200}.stzh-calendar__day.sc-stzh-calendar:not(.is-month){-webkit-box-shadow:none;box-shadow:none}.stzh-calendar__day.sc-stzh-calendar:not(.is-month),.stzh-calendar__day[aria-disabled=true].sc-stzh-calendar{background:transparent;color:var(--stzh-color-grey25);cursor:default}.stzh-calendar__day[aria-disabled=true].is-today.sc-stzh-calendar{-webkit-box-shadow:0 0 0 0.0625rem var(--stzh-color-grey13);box-shadow:0 0 0 0.0625rem var(--stzh-color-grey13)}.stzh-calendar__day[aria-disabled=true].is-today.sc-stzh-calendar:focus{-webkit-box-shadow:0 0 0.3125rem var(--stzh-color-primary, var(--stzh-color-zueriblue));box-shadow:0 0 0.3125rem var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-calendar__day[aria-disabled=true].sc-stzh-calendar::before{display:none}.stzh-calendar__day.is-disabled.sc-stzh-calendar{text-decoration:line-through}.stzh-calendar__day.is-outside.sc-stzh-calendar{background:var(--stzh-color-grey5);-webkit-box-shadow:none;box-shadow:none;color:var(--stzh-base-color);cursor:default;opacity:0.6;pointer-events:none;text-decoration:none}.stzh-calendar__day.is-outside.sc-stzh-calendar::before{display:none}.stzh-calendar__header.sc-stzh-calendar{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:var(--stzh-space-medium);width:100%}.stzh-calendar__nav.sc-stzh-calendar{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.stzh-calendar__prev.sc-stzh-calendar,.stzh-calendar__next.sc-stzh-calendar{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;background:transparent;border:0.0625rem solid var(--stzh-color-grey13);border-radius:50%;color:var(--stzh-color-grey70);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-pack:center;justify-content:center;margin-left:var(--stzh-space-xsmall);padding:0;-webkit-transition:background-color 300ms ease;transition:background-color 300ms ease;height:2rem;width:2rem}.stzh-calendar__prev.sc-stzh-calendar:disabled,.stzh-calendar__next.sc-stzh-calendar:disabled{cursor:default;opacity:0.5}.stzh-calendar__select-wrapper.sc-stzh-calendar{display:-ms-inline-flexbox;display:inline-flex;position:relative}.stzh-calendar__select-wrapper.sc-stzh-calendar span.sc-stzh-calendar{margin-right:0}.stzh-calendar__select.sc-stzh-calendar{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);cursor:pointer;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:2;border-radius:var(--stzh-form-input-border-radius)}.stzh-calendar__select-label.sc-stzh-calendar{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-centi-font-size);line-height:var(--stzh-font-centi-heading-line-height);letter-spacing:var(--stzh-font-curve---heading-letter-spacing);-ms-flex-align:center;align-items:center;border-radius:var(--stzh-form-input-border-radius);color:var(--stzh-color-grey70);display:-ms-flexbox;display:flex;padding:0 var(--stzh-space-xxsmall) 0 var(--stzh-space-xsmall);pointer-events:none;position:relative;width:100%;z-index:1}.stzh-calendar__icon.sc-stzh-calendar{--size:var(--stzh-icon-size-medium)}.stzh-calendar__vhidden.sc-stzh-calendar{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}';function S(e,a){var t=[];for(var n=e;n<=a;n++){t.push(n)}return t}var M={TAB:9,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var T=0;var Y=e("stzh_calendar",function(){function e(e){var a=this;t(this,e);this.stzhChange=n(this,"stzhChange",7);this.initialTouchX=null;this.initialTouchY=null;this.enableActiveFocus=function(){a.activeFocus=true};this.disableActiveFocus=function(){a.activeFocus=false};this.handleTouchStart=function(e){var t=e.changedTouches[0];a.initialTouchX=t.pageX;a.initialTouchY=t.pageY};this.handleTouchEnd=function(e){var t=e.changedTouches[0];var n=t.pageX-a.initialTouchX;var s=t.pageY-a.initialTouchY;var r=70;var i=Math.abs(n)>=r&&Math.abs(s)<=r;if(i){a.addMonths(n<0?1:-1)}a.initialTouchY=null;a.initialTouchX=null};this.handleNextMonthClick=function(e){e.preventDefault();a.addMonths(1)};this.handlePreviousMonthClick=function(e){e.preventDefault();a.addMonths(-1)};this.handleKeyboardNavigation=function(e){var t=true;switch(e.keyCode){case M.RIGHT:a.addDays(1);break;case M.LEFT:a.addDays(-1);break;case M.DOWN:a.addDays(7);break;case M.UP:a.addDays(-7);break;case M.PAGE_UP:if(e.shiftKey){a.addYears(-1)}else{a.addMonths(-1)}break;case M.PAGE_DOWN:if(e.shiftKey){a.addYears(1)}else{a.addMonths(1)}break;case M.HOME:a.startOfWeek();break;case M.END:a.endOfWeek();break;default:t=false}if(t){e.preventDefault();a.enableActiveFocus()}};this.handleDaySelect=function(e,t){var n=c(t,h(a.min),h(a.max));var s=!a.isDateDisabled(t);if(n&&s){a.setDate(t);a.stzhChange.emit({component:"stzh-calendar",value:a.value,valueAsDate:t})}else{a.setFocusedDay(t)}};this.handleMonthSelect=function(e){a.setMonth(parseInt(e.target.value,10))};this.handleYearSelect=function(e){a.setYear(parseInt(e.target.value,10))};this.processFocusedDayNode=function(e){if(a.activeFocus){setTimeout((function(){return e.focus()}),0)}};this.value="";this.min="";this.max="";this.firstDayOfWeek=d.Monday;this.localization=undefined;this.isDateDisabled=function(){return false};this.activeFocus=false;this.focusedDay=new Date}e.prototype.createDateFormatters=function(){if(this.localization){this.dateFormatShort=new Intl.DateTimeFormat(this.localization.$locale,{day:"numeric",month:"long"})}};e.prototype.valueWatcher=function(e){if(e){this.setFocusedDay(h(this.value))}else{this.setFocusedDay(new Date)}};e.prototype.setFocusedDay=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){this.focusedDay=u(e,h(this.min),h(this.max));return[2]}))}))};e.prototype.setDate=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){this.value=f(e);return[2]}))}))};e.prototype.addDays=function(e){this.setFocusedDay(z(this.focusedDay,e))};e.prototype.addMonths=function(e){this.setMonth(this.focusedDay.getMonth()+e)};e.prototype.addYears=function(e){this.setYear(this.focusedDay.getFullYear()+e)};e.prototype.startOfWeek=function(){this.setFocusedDay(p(this.focusedDay,this.firstDayOfWeek))};e.prototype.endOfWeek=function(){this.setFocusedDay(v(this.focusedDay,this.firstDayOfWeek))};e.prototype.setMonth=function(e){var a=y(b(this.focusedDay),e);var t=_(a);var n=y(this.focusedDay,e);this.setFocusedDay(u(n,a,t))};e.prototype.setYear=function(e){var a=m(b(this.focusedDay),e);var t=_(a);var n=m(this.focusedDay,e);this.setFocusedDay(u(n,a,t))};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){switch(a.label){case 0:this.monthSelectId="stzh-calendar-month-".concat(T);this.yearSelectId="stzh-calendar-year-".concat(T);this.dialogLabelId="stzh-calendar-dialog-".concat(T);T++;this.valueWatcher(this.value);if(!!this.localization)return[3,2];e=this;return[4,g(this.element,"calendar")];case 1:e.localization=a.sent();a.label=2;case 2:return[2]}}))}))};e.prototype.connectedCallback=function(){this.createDateFormatters()};e.prototype.render=function(){var e=h(this.value);var t=(e||this.focusedDay).getFullYear();var n=this.focusedDay.getMonth();var r=this.focusedDay.getFullYear();var i=h(this.min);var o=h(this.max);var l=i!=null&&i.getMonth()===n&&i.getFullYear()===r;var d=o!=null&&o.getMonth()===n&&o.getFullYear()===r;var u=i?i.getFullYear():t-10;var f=o?o.getFullYear():t+10;return a(s,null,a("div",{class:{"stzh-calendar":true},onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},a("div",{class:"stzh-calendar__wrapper"},a("div",{class:"stzh-calendar__header",onFocusin:this.disableActiveFocus},a("div",null,a("h2",{id:this.dialogLabelId,class:"stzh-calendar__vhidden","aria-live":"polite","aria-atomic":"true"},this.localization.$globals.monthNames[n],this.focusedDay.getFullYear()),a("label",{htmlFor:this.monthSelectId,class:"stzh-calendar__vhidden"},this.localization.monthSelectLabel),a("div",{class:"stzh-calendar__select-wrapper"},a("select",{id:this.monthSelectId,class:"stzh-calendar__select stzh-calendar__select--month",onChange:this.handleMonthSelect},this.localization.$globals.monthNames.map((function(e,t){return a("option",{key:e,value:t,selected:t===n,disabled:!c(new Date(r,t,1),i?b(i):null,o?_(o):null)},e)}))),a("div",{class:"stzh-calendar__select-label","aria-hidden":"true"},a("span",null,this.localization.$globals.monthNamesShort[n]),a("stzh-icon",{class:"stzh-calendar__icon",name:"angle-down"}))),a("label",{htmlFor:this.yearSelectId,class:"stzh-calendar__vhidden"},this.localization.yearSelectLabel),a("div",{class:"stzh-calendar__select-wrapper"},a("select",{id:this.yearSelectId,class:"stzh-calendar__select stzh-calendar__select--year",onChange:this.handleYearSelect},S(u,f).map((function(e){return a("option",{key:e,selected:e===r},e)}))),a("div",{class:"stzh-calendar__select-label","aria-hidden":"true"},a("span",null,this.focusedDay.getFullYear()),a("stzh-icon",{class:"stzh-calendar__icon",name:"angle-down"})))),a("div",{class:"stzh-calendar__nav"},a("button",{class:"stzh-calendar__prev",onClick:this.handlePreviousMonthClick,disabled:l,type:"button"},a("stzh-icon",{class:"stzh-calendar__icon",name:"angle-left"}),a("span",{class:"stzh-calendar__vhidden"},this.localization.prevMonthLabel)),a("button",{class:"stzh-calendar__next",onClick:this.handleNextMonthClick,disabled:d,type:"button"},a("stzh-icon",{class:"stzh-calendar__icon",name:"angle-right"}),a("span",{class:"stzh-calendar__vhidden"},this.localization.nextMonthLabel)))),a(k,{dateFormatter:this.dateFormatShort,selectedDate:e,focusedDate:this.focusedDay,onDateSelect:this.handleDaySelect,onKeyboardNavigation:this.handleKeyboardNavigation,labelledById:this.dialogLabelId,localization:this.localization,firstDayOfWeek:this.firstDayOfWeek,focusedDayRef:this.processFocusedDayNode,min:i,max:o,isDateDisabled:this.isDateDisabled}))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{localization:["createDateFormatters"],value:["valueWatcher"]}},enumerable:false,configurable:true});return e}());Y.style=F}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,a,t,n){function s(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,r){function i(e){try{l(n.next(e))}catch(a){r(a)}}function o(e){try{l(n["throw"](e))}catch(a){r(a)}}function l(e){e.done?t(e.value):s(e.value).then(i,o)}l((n=n.apply(e,a||[])).next())}))};var __generator=this&&this.__generator||function(e,a){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,i;return i={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(e){return function(a){return l([e,a])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,o[0]&&(t=0)),t)try{if(n=1,s&&(r=o[0]&2?s["return"]:o[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,o[1])).done)return r;if(s=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;s=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(r=t.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){t.label=o[1];break}if(o[0]===6&&t.label<r[1]){t.label=r[1];r=o;break}if(r&&t.label<r[2]){t.label=r[2];t.ops.push(o);break}if(r[2])t.ops.pop();t.trys.pop();continue}o=a.call(e,t)}catch(l){o=[6,l];s=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-36e72c1d.system.js","./p-11816251.system.js","./p-a408bfba.system.js"],(function(e){"use strict";var a,t,n,s,r,i,o,l,c,h,d,u,f,z,p,v,y,b,_,m,g;return{setters:[function(e){a=e.h;t=e.r;n=e.e;s=e.c;r=e.g},function(e){i=e.i;o=e.b;l=e.g;c=e.c;h=e.p;d=e.D;u=e.d;f=e.a;z=e.e;p=e.s;v=e.f;y=e.h;b=e.j;_=e.k;m=e.l},function(e){g=e.f}],execute:function(){var x=function(e){var t=e.focusedDay,n=e.today,s=e.day,r=e.onDaySelect,l=e.onKeyboardNavigation,c=e.focusedDayRef,h=e.disabled,d=e.inRange,u=e.isSelected,f=e.dateFormatter;var z=i(s,n);var p=o(s,t);var v=i(s,t);var y=!d;function b(e){r(e,s)}return a("button",{class:{"stzh-calendar__day":true,"is-outside":y,"is-today":z,"is-month":p,"is-disabled":h},tabIndex:v?0:-1,onClick:b,onKeyDown:l,"aria-disabled":h?"true":undefined,disabled:y,type:"button","aria-pressed":u?"true":"false","aria-current":z?"date":undefined,ref:function(e){if(v&&e&&c){c(e)}}},a("span",{"aria-hidden":"true"},s.getDate()),a("span",{class:"stzh-calendar__vhidden"},f.format(s)))};function w(e,a){var t=[];for(var n=0;n<e.length;n+=a){t.push(e.slice(n,n+a))}return t}function D(e,a,t){return e.map((function(n,s){var r=(s+a)%e.length;return t(e[r])}))}var k=function(e){var t=e.selectedDate,n=e.focusedDate,s=e.labelledById,r=e.localization,o=e.firstDayOfWeek,h=e.min,d=e.max,u=e.dateFormatter,f=e.isDateDisabled,z=e.onDateSelect,p=e.onKeyboardNavigation,v=e.focusedDayRef;var y=new Date;var b=l(n,o);return a("table",{class:"stzh-calendar__table","aria-labelledby":s},a("thead",null,a("tr",null,D(r.$globals.dayNames,o,(function(e){return a("th",{class:"stzh-calendar__table-header",scope:"col"},a("span",{"aria-hidden":"true"},e.substring(0,2)),a("span",{class:"stzh-calendar__vhidden"},e))})))),a("tbody",null,w(b,7).map((function(e){return a("tr",{class:"stzh-calendar__row"},e.map((function(e){return a("td",{class:"stzh-calendar__cell"},a(x,{day:e,today:y,focusedDay:n,isSelected:i(e,t),disabled:f(e),inRange:c(e,h,d),onDaySelect:z,dateFormatter:u,onKeyboardNavigation:p,focusedDayRef:v}))})))}))))};var F='.sc-stzh-calendar-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-calendar-h{display:none}.sc-stzh-calendar-h *.sc-stzh-calendar,.sc-stzh-calendar-h *.sc-stzh-calendar::before,.sc-stzh-calendar-h *.sc-stzh-calendar::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-calendar-h{display:block}.stzh-calendar.sc-stzh-calendar{display:-ms-flexbox;display:flex;position:relative;text-align:left;color:var(--stzh-base-color);-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.stzh-calendar__wrapper.sc-stzh-calendar{width:100%}@media screen and (min-width: 600px){.stzh-calendar__wrapper.sc-stzh-calendar{min-width:18.125rem}}.stzh-calendar__table.sc-stzh-calendar{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;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);border-collapse:collapse;border-spacing:0;color:var(--stzh-base-color);text-align:center;width:100%}.stzh-calendar__table-header.sc-stzh-calendar,.stzh-calendar__cell.sc-stzh-calendar{padding:var(--stzh-space-xxxsmall)}.stzh-calendar__table-header.sc-stzh-calendar:first-child,.stzh-calendar__cell.sc-stzh-calendar:first-child{padding-left:0}.stzh-calendar__table-header.sc-stzh-calendar:last-child,.stzh-calendar__cell.sc-stzh-calendar:last-child{padding-right:0}.stzh-calendar__row.sc-stzh-calendar:last-child .stzh-calendar__cell.sc-stzh-calendar{padding-bottom:0}.stzh-calendar__table-header.sc-stzh-calendar{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);text-decoration:none;padding-top:0}.stzh-calendar__cell.sc-stzh-calendar{text-align:center}.stzh-calendar__day.sc-stzh-calendar{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:50%;color:var(--stzh-base-color);cursor:pointer;display:inline-block;font-variant-numeric:tabular-nums;height:2.5rem;padding:0 0 0.0625rem;position:relative;text-align:center;vertical-align:middle;width:2.5rem;z-index:1}.stzh-calendar__day.sc-stzh-calendar::before{border-radius:50%;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.stzh-calendar__day.is-today.sc-stzh-calendar{-webkit-box-shadow:0 0 0 0.0625rem var(--stzh-color-primary, var(--stzh-color-zueriblue));box-shadow:0 0 0 0.0625rem var(--stzh-color-primary, var(--stzh-color-zueriblue));position:relative;z-index:200}.stzh-calendar__day.sc-stzh-calendar:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-calendar__day.sc-stzh-calendar:hover::before{background:var(--stzh-color-primary, var(--stzh-color-zueriblue));opacity:0.08}.stzh-calendar__day[aria-pressed=true].sc-stzh-calendar,.stzh-calendar__day.sc-stzh-calendar:focus{background:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-box-shadow:none;box-shadow:none;color:var(--stzh-color-white)}.stzh-calendar__day.sc-stzh-calendar:active{background:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-box-shadow:0 0 0.3125rem var(--stzh-color-primary, var(--stzh-color-zueriblue));box-shadow:0 0 0.3125rem var(--stzh-color-primary, var(--stzh-color-zueriblue));color:var(--stzh-color-white);z-index:200}.stzh-calendar__day.sc-stzh-calendar:focus{z-index:200}.stzh-calendar__day.sc-stzh-calendar:not(.is-month){-webkit-box-shadow:none;box-shadow:none}.stzh-calendar__day.sc-stzh-calendar:not(.is-month),.stzh-calendar__day[aria-disabled=true].sc-stzh-calendar{background:transparent;color:var(--stzh-color-grey25);cursor:default}.stzh-calendar__day[aria-disabled=true].is-today.sc-stzh-calendar{-webkit-box-shadow:0 0 0 0.0625rem var(--stzh-color-grey13);box-shadow:0 0 0 0.0625rem var(--stzh-color-grey13)}.stzh-calendar__day[aria-disabled=true].is-today.sc-stzh-calendar:focus{-webkit-box-shadow:0 0 0.3125rem var(--stzh-color-primary, var(--stzh-color-zueriblue));box-shadow:0 0 0.3125rem var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-calendar__day[aria-disabled=true].sc-stzh-calendar::before{display:none}.stzh-calendar__day.is-disabled.sc-stzh-calendar{text-decoration:line-through}.stzh-calendar__day.is-outside.sc-stzh-calendar{background:var(--stzh-color-grey5);-webkit-box-shadow:none;box-shadow:none;color:var(--stzh-base-color);cursor:default;opacity:0.6;pointer-events:none;text-decoration:none}.stzh-calendar__day.is-outside.sc-stzh-calendar::before{display:none}.stzh-calendar__header.sc-stzh-calendar{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:var(--stzh-space-medium);width:100%}.stzh-calendar__nav.sc-stzh-calendar{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.stzh-calendar__prev.sc-stzh-calendar,.stzh-calendar__next.sc-stzh-calendar{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;background:transparent;border:0.0625rem solid var(--stzh-color-grey13);border-radius:50%;color:var(--stzh-color-grey70);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-pack:center;justify-content:center;margin-left:var(--stzh-space-xsmall);padding:0;-webkit-transition:background-color 300ms ease;transition:background-color 300ms ease;height:2rem;width:2rem}.stzh-calendar__prev.sc-stzh-calendar:disabled,.stzh-calendar__next.sc-stzh-calendar:disabled{cursor:default;opacity:0.5}.stzh-calendar__select-wrapper.sc-stzh-calendar{display:-ms-inline-flexbox;display:inline-flex;position:relative}.stzh-calendar__select-wrapper.sc-stzh-calendar span.sc-stzh-calendar{margin-right:0px}.stzh-calendar__select.sc-stzh-calendar{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);cursor:pointer;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:2;border-radius:var(--stzh-form-input-border-radius)}.stzh-calendar__select-label.sc-stzh-calendar{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-centi-font-size);line-height:var(--stzh-font-centi-heading-line-height);letter-spacing:var(--stzh-font-curve---heading-letter-spacing);-ms-flex-align:center;align-items:center;border-radius:var(--stzh-form-input-border-radius);color:var(--stzh-color-grey70);display:-ms-flexbox;display:flex;padding:0 var(--stzh-space-xxsmall) 0 var(--stzh-space-xsmall);pointer-events:none;position:relative;width:100%;z-index:1}.stzh-calendar__icon.sc-stzh-calendar{--size:var(--stzh-icon-size-medium)}.stzh-calendar__vhidden.sc-stzh-calendar{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}';function S(e,a){var t=[];for(var n=e;n<=a;n++){t.push(n)}return t}var M={TAB:9,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var T=0;var Y=e("stzh_calendar",function(){function e(e){var a=this;t(this,e);this.stzhChange=n(this,"stzhChange",7);this.initialTouchX=null;this.initialTouchY=null;this.enableActiveFocus=function(){a.activeFocus=true};this.disableActiveFocus=function(){a.activeFocus=false};this.handleTouchStart=function(e){var t=e.changedTouches[0];a.initialTouchX=t.pageX;a.initialTouchY=t.pageY};this.handleTouchEnd=function(e){var t=e.changedTouches[0];var n=t.pageX-a.initialTouchX;var s=t.pageY-a.initialTouchY;var r=70;var i=Math.abs(n)>=r&&Math.abs(s)<=r;if(i){a.addMonths(n<0?1:-1)}a.initialTouchY=null;a.initialTouchX=null};this.handleNextMonthClick=function(e){e.preventDefault();a.addMonths(1)};this.handlePreviousMonthClick=function(e){e.preventDefault();a.addMonths(-1)};this.handleKeyboardNavigation=function(e){var t=true;switch(e.keyCode){case M.RIGHT:a.addDays(1);break;case M.LEFT:a.addDays(-1);break;case M.DOWN:a.addDays(7);break;case M.UP:a.addDays(-7);break;case M.PAGE_UP:if(e.shiftKey){a.addYears(-1)}else{a.addMonths(-1)}break;case M.PAGE_DOWN:if(e.shiftKey){a.addYears(1)}else{a.addMonths(1)}break;case M.HOME:a.startOfWeek();break;case M.END:a.endOfWeek();break;default:t=false}if(t){e.preventDefault();a.enableActiveFocus()}};this.handleDaySelect=function(e,t){var n=c(t,h(a.min),h(a.max));var s=!a.isDateDisabled(t);if(n&&s){a.setDate(t);a.stzhChange.emit({component:"stzh-calendar",value:a.value,valueAsDate:t})}else{a.setFocusedDay(t)}};this.handleMonthSelect=function(e){a.setMonth(parseInt(e.target.value,10))};this.handleYearSelect=function(e){a.setYear(parseInt(e.target.value,10))};this.processFocusedDayNode=function(e){if(a.activeFocus){setTimeout((function(){return e.focus()}),0)}};this.value="";this.min="";this.max="";this.firstDayOfWeek=d.Monday;this.localization=undefined;this.isDateDisabled=function(){return false};this.activeFocus=false;this.focusedDay=new Date}e.prototype.createDateFormatters=function(){if(this.localization){this.dateFormatShort=new Intl.DateTimeFormat(this.localization.$locale,{day:"numeric",month:"long"})}};e.prototype.valueWatcher=function(e){if(e){this.setFocusedDay(h(this.value))}else{this.setFocusedDay(new Date)}};e.prototype.setFocusedDay=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){this.focusedDay=u(e,h(this.min),h(this.max));return[2]}))}))};e.prototype.setDate=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){this.value=f(e);return[2]}))}))};e.prototype.addDays=function(e){this.setFocusedDay(z(this.focusedDay,e))};e.prototype.addMonths=function(e){this.setMonth(this.focusedDay.getMonth()+e)};e.prototype.addYears=function(e){this.setYear(this.focusedDay.getFullYear()+e)};e.prototype.startOfWeek=function(){this.setFocusedDay(p(this.focusedDay,this.firstDayOfWeek))};e.prototype.endOfWeek=function(){this.setFocusedDay(v(this.focusedDay,this.firstDayOfWeek))};e.prototype.setMonth=function(e){var a=y(b(this.focusedDay),e);var t=_(a);var n=y(this.focusedDay,e);this.setFocusedDay(u(n,a,t))};e.prototype.setYear=function(e){var a=m(b(this.focusedDay),e);var t=_(a);var n=m(this.focusedDay,e);this.setFocusedDay(u(n,a,t))};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){switch(a.label){case 0:this.monthSelectId="stzh-calendar-month-".concat(T);this.yearSelectId="stzh-calendar-year-".concat(T);this.dialogLabelId="stzh-calendar-dialog-".concat(T);T++;this.valueWatcher(this.value);if(!!this.localization)return[3,2];e=this;return[4,g(this.element,"calendar")];case 1:e.localization=a.sent();a.label=2;case 2:return[2]}}))}))};e.prototype.connectedCallback=function(){this.createDateFormatters()};e.prototype.render=function(){var e=h(this.value);var t=(e||this.focusedDay).getFullYear();var n=this.focusedDay.getMonth();var r=this.focusedDay.getFullYear();var i=h(this.min);var o=h(this.max);var l=i!=null&&i.getMonth()===n&&i.getFullYear()===r;var d=o!=null&&o.getMonth()===n&&o.getFullYear()===r;var u=i?i.getFullYear():t-10;var f=o?o.getFullYear():t+10;return a(s,null,a("div",{class:{"stzh-calendar":true},onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},a("div",{class:"stzh-calendar__wrapper"},a("div",{class:"stzh-calendar__header",onFocusin:this.disableActiveFocus},a("div",null,a("h2",{id:this.dialogLabelId,class:"stzh-calendar__vhidden","aria-live":"polite","aria-atomic":"true"},this.localization.$globals.monthNames[n],this.focusedDay.getFullYear()),a("label",{htmlFor:this.monthSelectId,class:"stzh-calendar__vhidden"},this.localization.monthSelectLabel),a("div",{class:"stzh-calendar__select-wrapper"},a("select",{id:this.monthSelectId,class:"stzh-calendar__select stzh-calendar__select--month",onChange:this.handleMonthSelect},this.localization.$globals.monthNames.map((function(e,t){return a("option",{key:e,value:t,selected:t===n,disabled:!c(new Date(r,t,1),i?b(i):null,o?_(o):null)},e)}))),a("div",{class:"stzh-calendar__select-label","aria-hidden":"true"},a("span",null,this.localization.$globals.monthNamesShort[n]),a("stzh-icon",{class:"stzh-calendar__icon",name:"angle-down"}))),a("label",{htmlFor:this.yearSelectId,class:"stzh-calendar__vhidden"},this.localization.yearSelectLabel),a("div",{class:"stzh-calendar__select-wrapper"},a("select",{id:this.yearSelectId,class:"stzh-calendar__select stzh-calendar__select--year",onChange:this.handleYearSelect},S(u,f).map((function(e){return a("option",{key:e,selected:e===r},e)}))),a("div",{class:"stzh-calendar__select-label","aria-hidden":"true"},a("span",null,this.focusedDay.getFullYear()),a("stzh-icon",{class:"stzh-calendar__icon",name:"angle-down"})))),a("div",{class:"stzh-calendar__nav"},a("button",{class:"stzh-calendar__prev",onClick:this.handlePreviousMonthClick,disabled:l,type:"button"},a("stzh-icon",{class:"stzh-calendar__icon",name:"angle-left"}),a("span",{class:"stzh-calendar__vhidden"},this.localization.prevMonthLabel)),a("button",{class:"stzh-calendar__next",onClick:this.handleNextMonthClick,disabled:d,type:"button"},a("stzh-icon",{class:"stzh-calendar__icon",name:"angle-right"}),a("span",{class:"stzh-calendar__vhidden"},this.localization.nextMonthLabel)))),a(k,{dateFormatter:this.dateFormatShort,selectedDate:e,focusedDate:this.focusedDay,onDateSelect:this.handleDaySelect,onKeyboardNavigation:this.handleKeyboardNavigation,labelledById:this.dialogLabelId,localization:this.localization,firstDayOfWeek:this.firstDayOfWeek,focusedDayRef:this.processFocusedDayNode,min:i,max:o,isDateDisabled:this.isDateDisabled}))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{localization:["createDateFormatters"],value:["valueWatcher"]}},enumerable:false,configurable:true});return e}());Y.style=F}}}));
|