website-utilities 1.0.375 → 1.0.376

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.
@@ -1 +1 @@
1
- :root{--w-default-space:20px;--w-extra-extra-small-width:360px;--w-extra-small-width:500px;--w-small-width:768px;--w-medium-width:992px;--w-large-width:1200px;--w-theme-background:#fff;--w-theme-primary:#76b82a;--w-theme-on-primary:#f0f6fc;--w-theme-secondary:#238636;--w-theme-on-secondary:#d6e9da;--w-theme-error:#723637;--w-theme-on-error:#fff;--w-theme-surface:#21262d;--w-theme-on-surface:#bbc2ca;--w-typography-font-family:Open Sans,open-sans,sans-serif;--w-typography-font-family-headline:Open Sans Condensed,open-sans-condensed,sans-serif}.wu{font-family:Open Sans,open-sans,sans-serif;font-family:var(--w-typography-font-family,"Open Sans",open-sans,sans-serif);font-size:14px;margin:0}.wu lang-replacement,.wu-lang-replacement{display:none}.wu h1,.wu h2,.wu h3,.wu h4,.wu h5,.wu h6,.wu-h1,.wu-h2,.wu-h3,.wu-h4,.wu-h5,.wu-h6{font-family:Open Sans,open-sans,sans-serif;font-family:var(--w-typography-font-family,"Open Sans",open-sans,sans-serif);line-height:1.1}.wu h1,.wu h2,.wu-h1,.wu-h2{font-family:Open Sans Condensed,open-sans-condensed,sans-serif;font-family:var(--w-typography-font-family-headline,"Open Sans Condensed",open-sans-condensed,sans-serif);font-size:3em;font-weight:400}.wu h2,.wu-h2{font-size:2em}.wu a,.wu a:focus,.wu a:hover,.wu a:visited,a.wu-a,a.wu-a:focus,a.wu-a:hover,a.wu-a:visited{outline:none;-webkit-text-decoration:none;text-decoration:none}.tools-disable-scrolling{height:100%!important;overflow:hidden!important}.wu .action,.wu-action{cursor:pointer}.wu .window-loading-cover,.wu-window-loading-cover{background-color:#fff;background-color:var(--w-background-color,#fff);height:100%;position:fixed;width:100%;z-index:1002!important}.wu .window-loading-cover>div,.wu-window-loading-cover>div{left:50%;position:absolute;top:50%}.wu .icon,.wu .icon-social,.wu-icon,.wu-icon-social{font-style:normal;font-weight:400;line-height:1;position:relative;-webkit-text-decoration:none;text-decoration:none;top:1px;vertical-align:middle;zoom:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wu .icon,.wu .icon-social,.wu .icon-social:before,.wu .icon:before,.wu-icon,.wu-icon-social,.wu-icon-social:before,.wu-icon:before{display:inline-block;font-family:Glyphicons Halflings,sans-serif;font-family:var(--w-typography-font-family-social,"Glyphicons Halflings",sans-serif)}.wu .icon-social:before,.wu .icon:before,.wu-icon-social:before,.wu-icon:before{left:0;margin:0 5px 0 0;position:absolute;top:0}.wu .icon-arrow-left:before,.wu-icon-arrow-left:before{content:""}.wu .icon-social:before,.wu-icon-social:before{font:24px/1em Glyphicons Social Regular,sans-serif}.wu .icon-social-white:before,.wu-icon-social-white:before{color:#fff}.wu .icon-social-pinterest:before,.wu-icon-social-pinterest:before{content:""}.wu .icon-social-dropbox:before,.wu-icon-social-dropbox:before{content:""}.wu .icon-social-google_plus:before,.wu-icon-social-google_plus:before{content:""}.wu .icon-social-jolicloud:before,.wu-icon-social-jolicloud:before{content:""}.wu .icon-social-yahoo:before,.wu-icon-social-yahoo:before{content:""}.wu .icon-social-blogger:before,.wu-icon-social-blogger:before{content:""}.wu .icon-social-picasa:before,.wu-icon-social-picasa:before{content:""}.wu .icon-social-amazon:before,.wu-icon-social-amazon:before{content:""}.wu .icon-social-tumblr:before,.wu-icon-social-tumblr:before{content:""}.wu .icon-social-wordpress:before,.wu-icon-social-wordpress:before{content:""}.wu .icon-social-instapaper:before,.wu-icon-social-instapaper:before{content:""}.wu .icon-social-evernote:before,.wu-icon-social-evernote:before{content:""}.wu .icon-social-xing:before,.wu-icon-social-xing:before{content:""}.wu .icon-social-zootool:before,.wu-icon-social-zootool:before{content:""}.wu .icon-social-dribbble:before,.wu-icon-social-dribbble:before{content:""}.wu .icon-social-deviantart:before,.wu-icon-social-deviantart:before{content:""}.wu .icon-social-read_it_later:before,.wu-icon-social-read_it_later:before{content:""}.wu .icon-social-linked_in:before,.wu-icon-social-linked_in:before{content:""}.wu .icon-social-forrst:before,.wu-icon-social-forrst:before{content:""}.wu .icon-social-pinboard:before,.wu-icon-social-pinboard:before{content:""}.wu .icon-social-behance:before,.wu-icon-social-behance:before{content:""}.wu .icon-social-github:before,.wu-icon-social-github:before{content:""}.wu .icon-social-youtube:before,.wu-icon-social-youtube:before{content:""}.wu .icon-social-skitch:before,.wu-icon-social-skitch:before{content:""}.wu .icon-social-foursquare:before,.wu-icon-social-foursquare:before{content:""}.wu .icon-social-quora:before,.wu-icon-social-quora:before{content:""}.wu .icon-social-badoo:before,.wu-icon-social-badoo:before{content:""}.wu .icon-social-spotify:before,.wu-icon-social-spotify:before{content:""}.wu .icon-social-stumbleupon:before,.wu-icon-social-stumbleupon:before{content:""}.wu .icon-social-readability:before,.wu-icon-social-readability:before{content:""}.wu .icon-social-facebook:before,.wu-icon-social-facebook:before{content:""}.wu .icon-social-twitter:before,.wu-icon-social-twitter:before{content:""}.wu .icon-social-instagram:before,.wu-icon-social-instagram:before{content:""}.wu .icon-social-posterous_spaces:before,.wu-icon-social-posterous_spaces:before{content:""}.wu .icon-social-vimeo:before,.wu-icon-social-vimeo:before{content:""}.wu .icon-social-flickr:before,.wu-icon-social-flickr:before{content:""}.wu .icon-social-last_fm:before,.wu-icon-social-last_fm:before{content:""}.wu .icon-social-rss:before,.wu-icon-social-rss:before{content:""}.wu .icon-social-skype:before,.wu-icon-social-skype:before{content:""}.wu .icon-social-e-mail:before,.wu-icon-social-e-mail:before{content:""}.wu .icon-social-vine:before,.wu-icon-social-vine:before{content:""}.wu .icon-social-myspace:before,.wu-icon-social-myspace:before{content:""}.wu .icon-social-goodreads:before,.wu-icon-social-goodreads:before{content:""}.wu .icon-social-apple:before,.wu-icon-social-apple:before{content:""}.wu .icon-social-windows:before,.wu-icon-social-windows:before{content:""}.wu .icon-social-yelp:before,.wu-icon-social-yelp:before{content:""}.wu .icon-social-playstation:before,.wu-icon-social-playstation:before{content:""}.wu .icon-social-xbox:before,.wu-icon-social-xbox:before{content:""}.wu .icon-social-android:before,.wu-icon-social-android:before{content:""}.wu .icon-social-ios:before,.wu-icon-social-ios:before{content:""}.wu .select,.wu-select{position:relative}.wu .select__arrow,.wu-select__arrow{pointer-events:none;position:absolute;right:15px;top:3px}.wu .select__arrow span,.wu-select__arrow span{font-size:10px;vertical-align:bottom}.wu .select select,.wu-select select{padding-left:7px!important;padding-right:25px!important;position:static!important}.wu .select select::-ms-expand,.wu-select select::-ms-expand{display:none}.wu .checkbox,.wu-checkbox{margin-top:2px;padding-top:3px}.wu .checkbox label,.wu-checkbox label{padding-left:40px}.wu .checkbox label .checkbox__wrapper,.wu-checkbox label .checkbox__wrapper{margin-left:-40px;margin-top:-2px;position:absolute}.wu .checkbox label .checkbox__wrapper .checkbox__wrapper__styled,.wu-checkbox label .checkbox__wrapper .checkbox__wrapper__styled{border:2px solid #76b82a;border:2px solid var(--w-theme-primary,#76b82a);border-radius:4px;cursor:pointer;float:right;height:25px;padding:0;width:25px}.wu .checkbox label .checkbox__wrapper .checkbox__wrapper__styled .checkbox__wrapper__styled__checked,.wu-checkbox label .checkbox__wrapper .checkbox__wrapper__styled .checkbox__wrapper__styled__checked{background:transparent;border:3px solid #f0f6fc;border:3px solid var(--w-theme-on-primary,#f0f6fc);border-right:none;border-top:none;height:8px;left:4px;opacity:0;position:absolute;top:5px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);width:13px}.wu .checkbox label .checkbox__wrapper input[type=checkbox],.wu-checkbox label .checkbox__wrapper input[type=checkbox]{display:none}.wu .checkbox label .checkbox__wrapper input[type=checkbox]:checked~.checkbox-styled>.checkbox-styled-checked,.wu-checkbox label .checkbox__wrapper input[type=checkbox]:checked~.checkbox-styled>.checkbox-styled-checked{opacity:1}.wu .checkbox label .checkbox__wrapper input[type=checkbox]:disabled~.checkbox-styled,.wu-checkbox label .checkbox__wrapper input[type=checkbox]:disabled~.checkbox-styled{background-color:#21262d;background-color:var(--w-theme-surface,#21262d)}.tools-hidden-on-javascript-enabled{display:none}.tools-visible-on-javascript-enabled{display:inline;display:initial}@-webkit-keyframes spinner-line-fade-more{0%,to{opacity:0}1%{opacity:1}}@keyframes spinner-line-fade-more{0%,to{opacity:0}1%{opacity:1}}@-webkit-keyframes spinner-line-fade-quick{0%,39%,to{opacity:.25}40%{opacity:1}}@keyframes spinner-line-fade-quick{0%,39%,to{opacity:.25}40%{opacity:1}}@-webkit-keyframes spinner-line-fade-default{0%,to{opacity:.22}1%{opacity:1}}@keyframes spinner-line-fade-default{0%,to{opacity:.22}1%{opacity:1}}
1
+ :root{--w-default-space:20px;--w-extra-extra-small-width:360px;--w-extra-small-width:500px;--w-small-width:768px;--w-medium-width:992px;--w-large-width:1200px;--w-theme-background:#fff;--w-theme-primary:#76b82a;--w-theme-on-primary:#f0f6fc;--w-theme-secondary:#238636;--w-theme-on-secondary:#d6e9da;--w-theme-error:#723637;--w-theme-on-error:#fff;--w-theme-surface:#21262d;--w-theme-on-surface:#bbc2ca;--w-typography-font-family:Open Sans,open-sans,sans-serif;--w-typography-font-family-headline:Open Sans Condensed,open-sans-condensed,sans-serif}website-utilities{font-family:var(--w-typography-font-family,"Open Sans",open-sans,sans-serif);font-size:14px;margin:0}website-utilities lang-replacement{display:none}website-utilities h1,website-utilities h2,website-utilities h3,website-utilities h4,website-utilities h5,website-utilities h6{font-family:var(--w-typography-font-family,"Open Sans",open-sans,sans-serif);line-height:1.1}website-utilities h1,website-utilities h2{font-family:var(--w-typography-font-family-headline,"Open Sans Condensed",open-sans-condensed,sans-serif);font-size:3em;font-weight:400}website-utilities h2{font-size:2em}website-utilities a,website-utilities a:focus,website-utilities a:hover,website-utilities a:visited{outline:none;-webkit-text-decoration:none;text-decoration:none}website-utilities .wu-disable-scrolling{height:100%!important;overflow:hidden!important}website-utilities .wu-action{cursor:pointer}website-utilities .icon,website-utilities .icon-social{display:inline-block;font-family:var(--w-typography-font-family-social,"Glyphicons Halflings",sans-serif);font-style:normal;font-weight:400;line-height:1;position:relative;-webkit-text-decoration:none;text-decoration:none;top:1px;vertical-align:middle;zoom:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}website-utilities .icon-social:before,website-utilities .icon:before{display:inline-block;font-family:var(--w-typography-font-family-social,"Glyphicons Halflings",sans-serif);left:0;margin:0 5px 0 0;position:absolute;top:0}website-utilities .icon-arrow-left:before{content:""}website-utilities .icon-social:before{font:24px/1em Glyphicons Social Regular,sans-serif}website-utilities .icon-social-white:before{color:#fff}website-utilities .icon-social-pinterest:before{content:""}website-utilities .icon-social-dropbox:before{content:""}website-utilities .icon-social-google_plus:before{content:""}website-utilities .icon-social-jolicloud:before{content:""}website-utilities .icon-social-yahoo:before{content:""}website-utilities .icon-social-blogger:before{content:""}website-utilities .icon-social-picasa:before{content:""}website-utilities .icon-social-amazon:before{content:""}website-utilities .icon-social-tumblr:before{content:""}website-utilities .icon-social-wordpress:before{content:""}website-utilities .icon-social-instapaper:before{content:""}website-utilities .icon-social-evernote:before{content:""}website-utilities .icon-social-xing:before{content:""}website-utilities .icon-social-zootool:before{content:""}website-utilities .icon-social-dribbble:before{content:""}website-utilities .icon-social-deviantart:before{content:""}website-utilities .icon-social-read_it_later:before{content:""}website-utilities .icon-social-linked_in:before{content:""}website-utilities .icon-social-forrst:before{content:""}website-utilities .icon-social-pinboard:before{content:""}website-utilities .icon-social-behance:before{content:""}website-utilities .icon-social-github:before{content:""}website-utilities .icon-social-youtube:before{content:""}website-utilities .icon-social-skitch:before{content:""}website-utilities .icon-social-foursquare:before{content:""}website-utilities .icon-social-quora:before{content:""}website-utilities .icon-social-badoo:before{content:""}website-utilities .icon-social-spotify:before{content:""}website-utilities .icon-social-stumbleupon:before{content:""}website-utilities .icon-social-readability:before{content:""}website-utilities .icon-social-facebook:before{content:""}website-utilities .icon-social-twitter:before{content:""}website-utilities .icon-social-instagram:before{content:""}website-utilities .icon-social-posterous_spaces:before{content:""}website-utilities .icon-social-vimeo:before{content:""}website-utilities .icon-social-flickr:before{content:""}website-utilities .icon-social-last_fm:before{content:""}website-utilities .icon-social-rss:before{content:""}website-utilities .icon-social-skype:before{content:""}website-utilities .icon-social-e-mail:before{content:""}website-utilities .icon-social-vine:before{content:""}website-utilities .icon-social-myspace:before{content:""}website-utilities .icon-social-goodreads:before{content:""}website-utilities .icon-social-apple:before{content:""}website-utilities .icon-social-windows:before{content:""}website-utilities .icon-social-yelp:before{content:""}website-utilities .icon-social-playstation:before{content:""}website-utilities .icon-social-xbox:before{content:""}website-utilities .icon-social-android:before{content:""}website-utilities .icon-social-ios:before{content:""}website-utilities .wu-select{position:relative}website-utilities .wu-select__arrow{pointer-events:none;position:absolute;right:15px;top:3px}website-utilities .wu-select__arrow span{font-size:10px;vertical-align:bottom}website-utilities .wu-select select{padding-left:7px!important;padding-right:25px!important;position:static!important}website-utilities .wu-select select::-ms-expand{display:none}website-utilities .wu-checkbox{margin-top:2px;padding-top:3px}website-utilities .wu-checkbox label{padding-left:40px}website-utilities .wu-checkbox label .wu-checkbox__wrapper{margin-left:-40px;margin-top:-2px;position:absolute}website-utilities .wu-checkbox label .wu-checkbox__wrapper .wu-checkbox__wrapper__styled{border:2px solid var(--w-theme-primary,#76b82a);border-radius:4px;cursor:pointer;float:right;height:25px;padding:0;width:25px}website-utilities .wu-checkbox label .wu-checkbox__wrapper .wu-checkbox__wrapper__styled .wu-checkbox__wrapper__styled__checked{background:transparent;border:3px solid var(--w-theme-on-primary,#f0f6fc);border-right:none;border-top:none;height:8px;left:4px;opacity:0;position:absolute;top:5px;transform:rotate(-45deg);width:13px}website-utilities .wu-checkbox label .wu-checkbox__wrapper input[type=checkbox]{display:none}website-utilities .wu-checkbox label .wu-checkbox__wrapper input[type=checkbox]:checked~.wu-checkbox-styled>.wu-checkbox-styled-checked{opacity:1}website-utilities .wu-checkbox label .wu-checkbox__wrapper input[type=checkbox]:disabled~.wu-checkbox-styled{background-color:var(--w-theme-surface,#21262d)}website-utilities .wu-hidden-on-javascript-enabled{display:none}website-utilities .wu-visible-on-javascript-enabled{display:initial}website-utilities .wu-scroll-to-top{display:block;position:fixed;right:var(--w-default-space,20px);transition-duration:.5s;transition-property:bottom,opacity}website-utilities a.wu-scroll-to-top.wu-scroll-up{bottom:calc(var(--w-default-space, 20px)*3);opacity:0}website-utilities a.wu-scroll-to-top.wu-scroll-down{bottom:var(--w-default-space,20px);opacity:1}website-utilities a.wu-scroll-to-top.wu-top-settled{display:none}.wu-window-loading-cover{background-color:var(--w-surface-color,#21262d);height:100%;left:0;position:fixed;top:0;width:100%;z-index:1002!important}.wu-window-loading-cover .loading-text{height:100px;inset:0;line-height:100px;margin:auto;position:absolute;text-align:center;width:100%}.wu-window-loading-cover .loading-text span{color:var(--w-on-surface-color,#bbc2ca);display:inline-block;margin:0 5px}.wu-window-loading-cover .loading-text span:first-child{animation:blur-text 1.5s linear 0s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(2){animation:blur-text 1.5s linear .2s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(3){animation:blur-text 1.5s linear .4s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(4){animation:blur-text 1.5s linear .6s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(5){animation:blur-text 1.5s linear .8s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(6){animation:blur-text 1.5s linear 1s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(7){animation:blur-text 1.5s linear 1.2s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(8){animation:blur-text 1.5s linear 1.4s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(9){animation:blur-text 1.5s linear 1.6s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(10){animation:blur-text 1.5s linear 1.8s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(11){animation:blur-text 1.5s linear 2s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(12){animation:blur-text 1.5s linear 2.2s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(13){animation:blur-text 1.5s linear 2.4s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(14){animation:blur-text 1.5s linear 2.6s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(15){animation:blur-text 1.5s linear 2.8s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(16){animation:blur-text 1.5s linear 3s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(17){animation:blur-text 1.5s linear 3.2s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(18){animation:blur-text 1.5s linear 3.4s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(19){animation:blur-text 1.5s linear 3.6s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(20){animation:blur-text 1.5s linear 3.8s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(21){animation:blur-text 1.5s linear 4s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(22){animation:blur-text 1.5s linear 4.2s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(23){animation:blur-text 1.5s linear 4.4s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(24){animation:blur-text 1.5s linear 4.6s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(25){animation:blur-text 1.5s linear 4.8s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(26){animation:blur-text 1.5s linear 5s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(27){animation:blur-text 1.5s linear 5.2s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(28){animation:blur-text 1.5s linear 5.4s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(29){animation:blur-text 1.5s linear 5.6s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(30){animation:blur-text 1.5s linear 5.8s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(31){animation:blur-text 1.5s linear 6s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(32){animation:blur-text 1.5s linear 6.2s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(33){animation:blur-text 1.5s linear 6.4s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(34){animation:blur-text 1.5s linear 6.6s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(35){animation:blur-text 1.5s linear 6.8s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(36){animation:blur-text 1.5s linear 7s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(37){animation:blur-text 1.5s linear 7.2s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(38){animation:blur-text 1.5s linear 7.4s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(39){animation:blur-text 1.5s linear 7.6s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(40){animation:blur-text 1.5s linear 7.8s infinite alternate;filter:blur(0)}.wu-window-loading-cover .loading-text span:nth-child(41){animation:blur-text 1.5s linear 8s infinite alternate;filter:blur(0)}@keyframes blur-text{0%{filter:blur(0)}to{filter:blur(4px)}}
package/index.d.ts CHANGED
@@ -1,213 +1,163 @@
1
- import { $DomNodes, Logger, RecursivePartial, Tools } from 'clientnode';
2
- import Internationalisation from 'internationalisation';
3
- import { Spinner } from 'spin.js';
1
+ import { Logger, Mapping } from 'clientnode';
2
+ import { WebComponentAPI } from 'web-component-wrapper/type';
3
+ import { Web } from 'web-component-wrapper/Web';
4
4
  import { DefaultOptions, Options, TrackingItem } from './type';
5
5
  export declare const log: Logger;
6
6
  /**
7
7
  * This plugin holds all needed methods to extend a whole website.
8
8
  * @property _defaultOptions - Options extended by the options given to the
9
9
  * initializer method.
10
- * @property _defaultOptions.activateLanguageSupport - Indicates whether
11
- * language support should be used or not.
12
10
  * @property _defaultOptions.additionalPageLoadingTimeInMilliseconds -
13
11
  * Additional time to wait until page will be indicated as loaded.
14
- * @property _defaultOptions.domNodes - Mapping of dom node descriptions to
15
- * their corresponding selectors.
16
- * @property _defaultOptions.domNodes.mediaQueryIndicator - Selector for
17
- * indicator dom node to use to trigger current media query mode.
18
- * @property _defaultOptions.domNodes.top - Selector to indicate that viewport
19
- * is currently on top.
20
- * @property _defaultOptions.domNodes.scrollToTopButton - Selector for
21
- * starting an animated scroll to top.
22
- * @property _defaultOptions.domNodes.startUpAnimationClassPrefix - Class name
23
- * selector prefix for all dom nodes to appear during start up animations.
24
- * @property _defaultOptions.domNodes.windowLoadingCover - Selector to the full
25
- * window loading cover dom node.
26
- * @property _defaultOptions.domNodes.windowLoadingSpinner - Selector to the
27
- * window loading spinner (on top of the window loading cover).
28
- * @property _defaultOptions.domNodeSelectorInfix - Selector infix for all
29
- * nodes to take into account.
30
- * @property _defaultOptions.domNodeSelectorPrefix - Selector prefix for all
31
- * nodes to take into account.
32
12
  * @property _defaultOptions.initialSectionName - Pre-selected section name.
33
13
  * @property _defaultOptions.knownScrollEventNames - Saves all known scroll
34
14
  * events in a space separated string.
35
15
  * @property _defaultOptions.language - Options for client side
36
- * internationalisation handler.
16
+ * internationalization handler.
37
17
  * @property _defaultOptions.mediaQueryClassNameIndicator - Mapping of media
38
18
  * query class indicator names to internal event names.
39
- * @property _defaultOptions.onChangeMediaQueryMode - Callback to trigger if
40
- * media query mode changes.
41
- * @property _defaultOptions.onChangeToExtraSmallMode - Callback to trigger if
42
- * media query mode changes to extra small mode.
43
- * @property _defaultOptions.onChangeToLargeMode - Callback to trigger if media
44
- * query mode changes to large mode.
45
- * @property _defaultOptions.onChangeToMediumMode - Callback to trigger if
46
- * media query mode changes to medium mode.
47
- * @property _defaultOptions.onChangeToSmallMode - Callback to trigger if media
48
- * query mode changes to small mode.
49
- * @property _defaultOptions.onStartUpAnimationComplete - Callback to trigger
50
- * if all start up animations has finished.
51
- * @property _defaultOptions.onSwitchSection - Callback to trigger if current
52
- * section switches.
53
- * @property _defaultOptions.onViewportMovesAwayFromTop - Callback to trigger
54
- * when viewport moves away from top.
55
- * @property _defaultOptions.onViewportMovesToTop - Callback to trigger when
56
- * viewport arrives at top.
57
- * @property _defaultOptions.scrollToTop - Options for automated scroll top
58
- * animation.
59
- * @property _defaultOptions.scrollToTop.button - To top scroll button behavior
60
- * configuration.
61
- * @property _defaultOptions.scrollToTop.button.hideAnimationOptions -
62
- * Configures hide animation.
63
- * @property _defaultOptions.scrollToTop.button.showAnimationOptions -
64
- * Configures show animation.
65
- * @property _defaultOptions.scrollToTop.options - Scrolling animation options.
19
+ * @property _defaultOptions.selectors - Mapping of dom node descriptions to
20
+ * their corresponding selectors.
21
+ * @property _defaultOptions.selectors.top - Selector to indicate that viewport
22
+ * is currently on top.
23
+ * @property _defaultOptions.selectors.scrollToTopButtons - Selectors for
24
+ * starting an animated scroll to top.
25
+ * @property _defaultOptions.selectors.startUpAnimationClassPrefix - Class name
26
+ * selector prefix for all dom nodes to appear during start up animations.
27
+ * @property _defaultOptions.selectors.windowLoadingCover - Selector to the full
28
+ * window loading cover dom node.
66
29
  * @property _defaultOptions.startUpAnimationElementDelayInMilliseconds - Delay
67
30
  * between two startup animated dom nodes in order.
68
- * @property _defaultOptions.startUpHide - Options for initially hiding dom
69
- * nodes showing on startup later.
70
- * @property _defaultOptions.startUpShowAnimation - Options for startup show in
71
- * animation.
72
- * @property _defaultOptions.switchToManualScrollingIndicator - Indicator
73
- * function to stop currently running scroll animations to let the user get
74
- * control of current scrolling behavior. Given callback gets an event object.
75
- * If the function returns "true" current animated scrolls will be stopped.
76
- * @property _defaultOptions.tracking - Tracking configuration to collect
77
- * user's behavior data.
78
- * @property _defaultOptions.tracking.buttonClick - Function to call on button
79
- * click events.
80
- * @property _defaultOptions.tracking.linkClick - Function to call on link
81
- * click events.
82
- * @property _defaultOptions.tracking.sectionSwitch - Function to call on
83
- * section switches.
84
- * @property _defaultOptions.tracking.track - Tracker call itself.
85
- * @property _defaultOptions.windowLoadingCoverHideAnimation - Options for
86
- * startup loading cover hide animation.
87
- * @property _defaultOptions.windowLoadingSpinner - Options for the window
88
- * loading cover spinner.
31
+ * @property _defaultOptions.tracking - Indicates whether tracking should be
32
+ * used or not.
89
33
  * @property _defaultOptions.windowLoadedTimeoutAfterDocLoadedInMSec - Duration
90
34
  * after loading cover should be removed.
91
35
  * @property options - Finally configured given options.
92
- * @property $domNodes - Saves a set of references to all needed dom nodes.
93
36
  * @property currentMediaQueryMode - Saves current media query status depending
94
37
  * on available space in current browser window.
95
38
  * @property currentSectionName - Saves current section hash name.
96
- * @property languageHandler - Reference to the language switcher instance.
97
39
  * @property startUpAnimationIsComplete - Indicates whether start up animations
98
40
  * has finished.
41
+ * @property continueAutoScrolling - Indicates whether auto scrolling should
42
+ * continue or not. Gets set to "false" if user wants to scroll manually.
99
43
  * @property viewportIsOnTop - Indicates whether current viewport is on top.
100
44
  * @property windowLoaded - Indicates whether window is already loaded.
101
- * @property windowLoadingSpinner - The window loading spinner instance.
45
+ * @property onChangeMediaQueryMode - Callback to trigger if media query mode
46
+ * changes.
47
+ * @property onChangeToExtraSmallMode - Callback to trigger if media query mode
48
+ * changes to extra small mode.
49
+ * @property onChangeToLargeMode - Callback to trigger if media query mode
50
+ * changes to large mode.
51
+ * @property onChangeToMediumMode - Callback to trigger if media query mode
52
+ * changes to medium mode.
53
+ * @property onChangeToSmallMode - Callback to trigger if media query mode
54
+ * changes to small mode.
55
+ * @property onStartUpAnimationComplete - Callback to trigger if all start up
56
+ * animations has finished.
57
+ * @property onSwitchSection - Callback to trigger if current section switches.
58
+ * @property onViewportMovesAwayFromTop - Callback to trigger when viewport
59
+ * moves away from top.
60
+ * @property onViewportMovesToTop - Callback to trigger when viewport arrives
61
+ * at top.
62
+ * @property onSwitchToManualScrollingIndicator - Indicator
63
+ * function to stop currently running scroll animations to let the user get
64
+ * control of current scrolling behavior. Given callback gets an event object.
65
+ * If the function returns "true" current animated scrolls will be stopped.
66
+ * @property onButtonClick - Function to call on button click events.
67
+ * @property onLinkClick - Function to call on link click events.
68
+ * @property onSectionSwitch - Function to call on section switches.
69
+ * @property onTrack - Tracker call itself.
102
70
  */
103
- export declare class WebsiteUtilities extends Tools {
71
+ export declare class WebsiteUtilities<TElement = HTMLElement, ExternalProperties extends Mapping<unknown> = Mapping<unknown>, InternalProperties extends Mapping<unknown> = Mapping<unknown>> extends Web<TElement, ExternalProperties, InternalProperties> {
72
+ static _name: string;
104
73
  static _defaultOptions: DefaultOptions;
74
+ readonly self: typeof WebsiteUtilities;
105
75
  options: Options;
106
- $domNodes: $DomNodes;
107
76
  currentMediaQueryMode: string;
108
77
  currentSectionName: string;
109
- languageHandler: Internationalisation | null;
110
78
  startUpAnimationIsComplete: boolean;
111
- viewportIsOnTop: boolean;
79
+ continueAutoScrolling: boolean;
80
+ viewportIsOnTop: boolean | undefined;
112
81
  windowLoaded: boolean;
113
- windowLoadingSpinner: null | Spinner;
82
+ scrollToTopButtonDomNodes: NodeListOf<HTMLElement> | null;
83
+ topDomNode: HTMLElement | null;
84
+ windowLoadingCoverDomNode: HTMLElement | null;
85
+ onChangeMediaQueryMode: (this: WebsiteUtilities, oldMediaQueryMode: string, newMediaQueryMode: string, event?: Event) => void;
86
+ onChangeToExtraSmallMode: (this: WebsiteUtilities, oldMediaQueryMode: string, event?: Event) => void;
87
+ onChangeToLargeMode: (this: WebsiteUtilities, oldMediaQueryMode: string, event?: Event) => void;
88
+ onChangeToMediumMode: (this: WebsiteUtilities, oldMediaQueryMode: string, event?: Event) => void;
89
+ onChangeToSmallMode: (this: WebsiteUtilities, oldMediaQueryMode: string, event?: Event) => void;
90
+ onStartUpAnimationComplete: (this: WebsiteUtilities) => void;
91
+ onSwitchSection: (this: WebsiteUtilities) => void;
92
+ onViewportMovesAwayFromTop: (this: WebsiteUtilities, event?: Event) => void;
93
+ onViewportMovesToTop: (this: WebsiteUtilities, event?: Event) => void;
94
+ onSwitchToManualScrollingIndicator: (event: Event) => boolean;
95
+ onLoaded: () => void;
96
+ onButtonClick: (this: WebsiteUtilities, event: Event) => void;
97
+ onSectionSwitch: (this: WebsiteUtilities, sectionName: string, _event?: Event) => void;
98
+ onLinkClick: (this: WebsiteUtilities, event: Event) => void;
99
+ onTrack: (item: TrackingItem) => void;
100
+ /**
101
+ * Defines dynamic getter and setter interface and resolves configuration
102
+ * object. Initializes the map implementation.
103
+ */
104
+ constructor();
105
+ /**
106
+ * Triggered when ever a given attribute has changed and triggers to update
107
+ * configured dom content.
108
+ * @param name - Attribute name which was updates.
109
+ * @param newValue - New updated value.
110
+ */
111
+ onUpdateAttribute(name: string, newValue: string): void;
112
+ /**
113
+ * Updates controlled dom elements.
114
+ * @param reason - Why an update has been triggered.
115
+ */
116
+ render(reason?: string): Promise<void>;
117
+ grabDomNodes(): void;
114
118
  /**
115
- * Initializes the interactive web application.
116
- * @param options - An options object.
117
- * @returns Returns a promise containing the current instance.
119
+ * Scrolls to top of page smoothly via being interruptible.
118
120
  */
119
- initialize<R = Promise<WebsiteUtilities>>(options?: RecursivePartial<Options>): R;
121
+ interruptableScrollToTop(): void;
120
122
  /**
121
- * Scrolls to top of page. Runs the given function after viewport arrives.
122
- * @returns Returns the current instance.
123
+ * Scrolls to top of page smoothly.
123
124
  */
124
- scrollToTop(): this;
125
+ scrollToTop(): void;
125
126
  /**
126
127
  * This method disables scrolling on the given web view.
127
- * @returns Returns the current instance.
128
128
  */
129
- disableScrolling(): this;
129
+ disableScrolling(): void;
130
130
  /**
131
131
  * This method disables scrolling on the given web view.
132
- * @returns Returns the current instance.
133
132
  */
134
- enableScrolling(): this;
133
+ enableScrolling(): void;
135
134
  /**
136
135
  * Triggers an analytics event. All given arguments are forwarded to
137
136
  * configured analytics event code to defined their environment variables.
138
137
  * @param properties - Event tracking information.
139
- * @returns Returns the current instance.
140
138
  */
141
139
  track(properties: Omit<TrackingItem, 'context' | 'value'> & {
142
140
  context?: string;
143
141
  value?: number;
144
- }): this;
142
+ }): void;
145
143
  /**
146
144
  * This method triggers if the viewport moves to top.
147
- * @returns Nothing.
148
145
  */
149
- _onViewportMovesToTop: (...parameters: Array<unknown>) => Promise<void>;
146
+ _onViewportMovesToTop(): void;
150
147
  /**
151
148
  * This method triggers if the viewport moves away from top.
152
- * @returns Nothing.
153
- */
154
- _onViewportMovesAwayFromTop: (...parameters: Array<unknown>) => Promise<void>;
155
- /**
156
- * This method triggers if the responsive design switches to another mode.
157
- * @param _oldMode - Saves the previous mode.
158
- * @param _newMode - Saves the new mode.
159
149
  */
160
- _onChangeMediaQueryMode(_oldMode: string, _newMode: string): void;
161
- /**
162
- * This method triggers if the responsive design switches to large mode.
163
- * @param _oldMode - Saves the previous mode.
164
- * @param _newMode - Saves the new mode.
165
- */
166
- _onChangeToLargeMode(_oldMode: string, _newMode: string): void;
167
- /**
168
- * This method triggers if the responsive design switches to medium mode.
169
- * @param _oldMode - Saves the previous mode.
170
- * @param _newMode - Saves the new mode.
171
- */
172
- _onChangeToMediumMode(_oldMode: string, _newMode: string): void;
173
- /**
174
- * This method triggers if the responsive design switches to small mode.
175
- * @param _oldMode - Saves the previous mode.
176
- * @param _newMode - Saves the new mode.
177
- */
178
- _onChangeToSmallMode(_oldMode: string, _newMode: string): void;
179
- /**
180
- * This method triggers if the responsive design switches to extra small
181
- * mode.
182
- * @param _oldMode - Saves the previous mode.
183
- * @param _newMode - Saves the new mode.
184
- */
185
- _onChangeToExtraSmallMode(_oldMode: string, _newMode: string): void;
150
+ _onViewportMovesAwayFromTop(): Promise<void>;
186
151
  /**
187
152
  * This method triggers if we change the current section.
188
153
  * @param sectionName - Contains the new section name.
189
154
  */
190
155
  _onSwitchSection(sectionName: string): void;
191
- /**
192
- * This method is complete if last startup animation was initialized.
193
- */
194
- _onStartUpAnimationComplete(): Promise<void> | void;
195
- /**
196
- * This method adds triggers for responsive design switches.
197
- */
198
- _bindMediaQueryChangeEvents(): void;
199
- /**
200
- * This method triggers if the responsive design switches its mode.
201
- * @param parameters - All arguments will be appended to the event handler
202
- * callbacks.
203
- */
204
- _triggerWindowResizeEvents(...parameters: Array<unknown>): void;
156
+ _finishScrollToTopButtonTransition(classNames?: Array<string> | string): void;
205
157
  /**
206
158
  * This method triggers if view port arrives at special areas.
207
- * @param parameters - All arguments will be appended to the event handler
208
- * callbacks.
209
159
  */
210
- _bindScrollEvents(...parameters: Array<unknown>): void;
160
+ _bindScrollEvents(): void;
211
161
  /**
212
162
  * This method triggers after window is loaded.
213
163
  * @returns Promise resolving to nothing when loading cover has been
@@ -216,11 +166,10 @@ export declare class WebsiteUtilities extends Tools {
216
166
  _removeLoadingCover(): Promise<void>;
217
167
  /**
218
168
  * This method handles the given start up effect step.
219
- * @param elementNumber - The current startup step.
220
169
  * @returns Promise resolving to nothing when start up effects have been
221
170
  * finished.
222
171
  */
223
- _performStartUpEffects(elementNumber?: number): Promise<void>;
172
+ _performStartUpEffects(): Promise<void>;
224
173
  /**
225
174
  * This method adds triggers to switch section.
226
175
  */
@@ -234,4 +183,5 @@ export declare class WebsiteUtilities extends Tools {
234
183
  */
235
184
  _bindClickTracking(): void;
236
185
  }
186
+ export declare const api: WebComponentAPI<HTMLElement, Mapping<unknown>, Mapping<unknown>, typeof Web>;
237
187
  export default WebsiteUtilities;
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/regenerator"),require("clientnode"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","@babel/runtime/regenerator","clientnode"],t);else{var n="object"==typeof exports?t(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/regenerator"),require("clientnode")):t(e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/regenerator"],e.clientnode);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(this,(function(e,t,n,o,i){return function(){var r=[,,,function(t){t.exports=e},function(e){e.exports=t},function(e){e.exports=n},function(e){e.exports=o},function(e){e.exports=i}],a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return r[e](n,n.exports,s),n.exports}s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return function(){s.r(l),s.d(l,{WebsiteUtilities:function(){return y},default:function(){return T},log:function(){return b}});var e=s(3),t=s.n(e),n=s(4),o=s.n(n),i=s(5),r=s.n(i),a=s(6),d=s.n(a),c=s(7),u=function(){return u=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)},p={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",fadeColor:"transparent",animation:"spinner-line-fade-default",rotate:0,direction:1,speed:1,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:"0 0 1px transparent",position:"absolute"},h=function(){function e(e){void 0===e&&(e={}),this.opts=u(u({},p),e)}return e.prototype.spin=function(e){return this.stop(),this.el=document.createElement("div"),this.el.className=this.opts.className,this.el.setAttribute("role","progressbar"),this.el.style.position=this.opts.position,this.el.style.width="0",this.el.style.zIndex=this.opts.zIndex.toString(),this.el.style.left=this.opts.left,this.el.style.top=this.opts.top,this.el.style.transform="scale(".concat(this.opts.scale,")"),e&&e.insertBefore(this.el,e.firstChild||null),function(e,t){var n=Math.round(t.corners*t.width*500)/1e3+"px",o="none";!0===t.shadow?o="0 2px 4px #000":"string"==typeof t.shadow&&(o=t.shadow);for(var i=function(e){for(var t=/^\s*([a-zA-Z]+\s+)?(-?\d+(\.\d+)?)([a-zA-Z]*)\s+(-?\d+(\.\d+)?)([a-zA-Z]*)(.*)$/,n=[],o=0,i=e.split(",");o<i.length;o++){var r=i[o].match(t);if(null!==r){var a=+r[2],s=+r[5],l=r[4],d=r[7];0!==a||l||(l=d),0!==s||d||(d=l),l===d&&n.push({prefix:r[1]||"",x:a,y:s,xUnits:l,yUnits:d,end:r[8]})}}return n}(o),r=0;r<t.lines;r++){var a=~~(360/t.lines*r+t.rotate),s=document.createElement("div");s.style.position="absolute",s.style.top="".concat(-t.width/2,"px"),s.style.width=t.length+t.width+"px",s.style.height=t.width+"px",s.style.background=m(t.fadeColor,r),s.style.borderRadius=n,s.style.transformOrigin="left",s.style.transform="rotate(".concat(a,"deg) translateX(").concat(t.radius,"px)");var l=r*t.direction/t.lines/t.speed;l-=1/t.speed;var d=document.createElement("div");d.style.width="100%",d.style.height="100%",d.style.background=m(t.color,r),d.style.borderRadius=n,d.style.boxShadow=f(i,a),d.style.animation="".concat(1/t.speed,"s linear ").concat(l,"s infinite ").concat(t.animation),s.appendChild(d),e.appendChild(s)}}(this.el,this.opts),this},e.prototype.stop=function(){return this.el&&(this.el.parentNode&&this.el.parentNode.removeChild(this.el),this.el=void 0),this},e}();function m(e,t){return"string"==typeof e?e:e[t%e.length]}function f(e,t){for(var n=[],o=0,i=e;o<i.length;o++){var r=i[o],a=w(r.x,r.y,t);n.push(r.prefix+a[0]+r.xUnits+" "+a[1]+r.yUnits+r.end)}return n.join(", ")}function w(e,t,n){var o=n*Math.PI/180,i=Math.sin(o),r=Math.cos(o);return[Math.round(1e3*(e*r+t*i))/1e3,Math.round(1e3*(-e*i+t*r))/1e3]}function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var b=new c.Logger({name:"website-utilities"}),y=function(e){function n(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).options=null,t.$domNodes=null,t.currentMediaQueryMode="",t.currentSectionName="home",t.languageHandler=null,t.startUpAnimationIsComplete=!1,t.viewportIsOnTop=!1,t.windowLoaded=!1,t.windowLoadingSpinner=null,t._onViewportMovesToTop=(0,c.debounce)((function(){"hidden"===t.$domNodes.scrollToTopButton.css("visibility")?t.$domNodes.scrollToTopButton.css("opacity",0):(t.options.scrollToTop.button.hideAnimationOptions.always=function(){return t.$domNodes.scrollToTopButton.css({bottom:"-="+String(t.options.scrollToTop.button.slideDistanceInPixel),display:"none"})},t.$domNodes.scrollToTopButton.finish().animate({bottom:"+="+String(t.options.scrollToTop.button.slideDistanceInPixel),opacity:0},t.options.scrollToTop.button.hideAnimationOptions))})),t._onViewportMovesAwayFromTop=(0,c.debounce)((function(){"hidden"===t.$domNodes.scrollToTopButton.css("visibility")?t.$domNodes.scrollToTopButton.css("opacity",1):t.$domNodes.scrollToTopButton.finish().css({bottom:"+="+String(t.options.scrollToTop.button.slideDistanceInPixel),display:"block",opacity:0}).animate({bottom:"-="+String(t.options.scrollToTop.button.slideDistanceInPixel),queue:!1,opacity:1},t.options.scrollToTop.button.showAnimationOptions)})),t}r()(n,e);var i=n.prototype;return i.initialize=function(t){var o=this;return void 0===t&&(t={}),e.prototype.initialize.call(this,(0,c.extend)(!0,{},n._defaultOptions,t)),this.$domNodes=this.grabDomNodes(this.options.domNodes),this.disableScrolling(),new Promise((function(e){var t;o.$domNodes.windowLoadingSpinner.length&&(o.windowLoadingSpinner=new h(o.options.windowLoadingSpinner),o.windowLoadingSpinner.spin(o.$domNodes.windowLoadingSpinner[0])),o._bindScrollEvents(),null==(t=o.$domNodes.parent)||t.show();var n=function(){o.windowLoaded||(o.windowLoaded=!0,o._removeLoadingCover().then((function(){o._performStartUpEffects(),e(o)})))};(0,c.$)((function(){(0,c.timeout)(n,o.options.windowLoadedTimeoutAfterDocLoadedInMSec)})),o.on(o.$domNodes.window,"load",n),o._bindClickTracking(),o.options.activateLanguageSupport&&!o.languageHandler&&(0,c.$)(o.$domNodes.parent).Internationalisation(o.options.language).then((function(e){o.languageHandler=e.data("Internationalisation")})),o._bindNavigationEvents(),o._bindMediaQueryChangeEvents(),o._triggerWindowResizeEvents()}))},i.scrollToTop=function(){return c.globalContext.document&&(0,c.$)("html, body").stop().animate({scrollTop:0},this.options.scrollToTop.options),this},i.disableScrolling=function(){var e;return null==(e=this.$domNodes.parent)||e.addClass("disable-scrolling").on("touchmove",(function(e){e.preventDefault()})),this},i.enableScrolling=function(){return this.$domNodes.parent&&(this.$domNodes.parent.removeClass(["disable-scrolling","touchmove"]),this.off(this.$domNodes.parent)),this},i.track=function(e){var t;if(null!=(t=c.globalContext.window)&&t.location&&this.options.tracking){var n=o()({context:c.globalContext.window.location.pathname+"#"+this.currentSectionName},e);(isNaN(n.value)||"number"!=typeof n.value)&&(n.value=1),b.debug('Run tracking code: "event" with arguments:'),b.debug(n);try{this.options.tracking.track(n)}catch(e){b.warn('Problem in tracking "'+(0,c.represent)(n)+'":',(0,c.represent)(e))}}return this},i._onChangeMediaQueryMode=function(e,t){},i._onChangeToLargeMode=function(e,t){},i._onChangeToMediumMode=function(e,t){},i._onChangeToSmallMode=function(e,t){},i._onChangeToExtraSmallMode=function(e,t){},i._onSwitchSection=function(e){var t;if(Object.prototype.hasOwnProperty.call(c.globalContext.window,"location")&&null!=(t=this.options.tracking)&&t.sectionSwitch&&this.currentSectionName!==e){this.currentSectionName=e,b.debug("Run section switch tracking on section",'"'+this.currentSectionName+'".');try{this.options.tracking.sectionSwitch.call(this,this.currentSectionName)}catch(e){b.warn("Problem due to track section switch to",'"'+this.currentSectionName+'": '+(0,c.represent)(e))}}},i._onStartUpAnimationComplete=function(){this.startUpAnimationIsComplete=!0},i._bindMediaQueryChangeEvents=function(){this.on(this.$domNodes.window,"resize",this._triggerWindowResizeEvents.bind(this))},i._triggerWindowResizeEvents=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var o,i=v(this.options.mediaQueryClassNameIndicator);!(o=i()).done;){var r=o.value;this.$domNodes.parent&&this.$domNodes.mediaQueryIndicator.prependTo(this.$domNodes.parent).addClass("hidden-"+r[1]),this.$domNodes.mediaQueryIndicator.is(":hidden")&&r[0]!==this.currentMediaQueryMode&&(this.fireEvent.apply(this,["changeMediaQueryMode",!1,this,this.currentMediaQueryMode,r[0]].concat(t)),this.fireEvent.apply(this,["changeTo"+(0,c.capitalize)(r[0])+"Mode",!1,this,this.currentMediaQueryMode,r[0]].concat(t)),this.currentMediaQueryMode=r[0]),this.$domNodes.mediaQueryIndicator.removeClass("hidden-"+r[1])}},i._bindScrollEvents=function(){for(var e,t=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var r=(0,c.$)("body, html"),a=this.$domNodes.window?r.add(this.$domNodes.window):r;a.on(this.options.knownScrollEventNames.join(" "),(function(e){t.options.switchToManualScrollingIndicator(e)&&a.stop(!0)})),this.on(this.$domNodes.window,"scroll",(function(){var e;null!=(e=t.$domNodes.window)&&e.scrollTop()?t.viewportIsOnTop&&(t.viewportIsOnTop=!1,t.fireEvent.apply(t,["viewportMovesAwayFromTop",!1,t].concat(o))):t.viewportIsOnTop||(t.viewportIsOnTop=!0,t.fireEvent.apply(t,["viewportMovesToTop",!1,t].concat(o)))})),null!=(e=this.$domNodes.window)&&e.scrollTop()?(this.viewportIsOnTop=!1,this.fireEvent.apply(this,["viewportMovesAwayFromTop",!1,this].concat(o))):(this.viewportIsOnTop=!0,this.fireEvent.apply(this,["viewportMovesToTop",!1,this].concat(o)))},i._removeLoadingCover=function(){var e=t()(d().mark((function e(){var t=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,c.timeout)(this.options.additionalPageLoadingTimeInMilliseconds);case 1:return(0,c.$)((0,c.format)('[class^="{1}"], [class*=" {1}"]',this.sliceDomNodeSelectorPrefix(this.options.domNodes.startUpAnimationClassPrefix).substring(1))).css(this.options.startUpHide),e.next=2,new Promise((function(e){t.$domNodes.windowLoadingCover.length?(t.enableScrolling(),t.$domNodes.windowLoadingCover.animate(t.options.windowLoadingCoverHideAnimation,{always:function(){e()}})):e()}));case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),i._performStartUpEffects=function(){var e=t()(d().mark((function e(t){var n,o=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===t&&(t=1),this.$domNodes.windowLoadingCover.hide(),this.windowLoadingSpinner&&this.windowLoadingSpinner.stop(),!(0,c.$)((0,c.format)('[class^="{1}"], [class*=" {1}"]',this.sliceDomNodeSelectorPrefix(this.options.domNodes.startUpAnimationClassPrefix).substring(1))).length){e.next=5;break}return e.next=1,(0,c.timeout)(this.options.startUpAnimationElementDelayInMilliseconds);case 1:if(n=!1,(0,c.$)(this.options.domNodes.startUpAnimationClassPrefix+String(t)).animate(this.options.startUpShowAnimation,{always:function(){n&&o.fireEvent("startUpAnimationComplete")}}),!(0,c.$)(this.options.domNodes.startUpAnimationClassPrefix+String(t+1)).length){e.next=3;break}return e.next=2,this._performStartUpEffects(t+1);case 2:e.next=4;break;case 3:n=!0;case 4:e.next=6;break;case 5:this.fireEvent("startUpAnimationComplete");case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),i._bindNavigationEvents=function(){var e,t=this;null==(e=c.globalContext.window)||e.addEventListener("hashchange",(function(e){t.startUpAnimationIsComplete&&t.fireEvent("switchSection",!1,t,location.hash.substring(1),e)}),!1),this._bindScrollToTopButton()},i._bindScrollToTopButton=function(){var e=this;this.on(this.$domNodes.scrollToTopButton,"click",(function(t){t.preventDefault(),e.scrollToTop()}))},i._bindClickTracking=function(){var e,t,n=this;this.options.tracking&&(this.options.tracking.linkClick&&this.on(null==(e=this.$domNodes.parent)?void 0:e.find("a"),"click",(function(e){var t;null==(t=n.options.tracking)||null==(t=t.linkClick)||t.call(n,(0,c.$)(e.target),e)})),this.options.tracking.buttonClick&&this.on(null==(t=this.$domNodes.parent)?void 0:t.find("button"),"click",(function(e){var t;null==(t=n.options.tracking)||null==(t=t.buttonClick)||t.call(n,(0,c.$)(e.target),e)})))},n}(c.Tools);y._defaultOptions={activateLanguageSupport:!0,additionalPageLoadingTimeInMilliseconds:0,domain:"auto",domNodes:{mediaQueryIndicator:'<div class="wu-media-query-indicator">',scrollToTopButton:'a[href="#top"]',startUpAnimationClassPrefix:".wu-start-up-animation-number-",top:"header",windowLoadingCover:".window-loading-cover, .wu-window-loading-cover",windowLoadingSpinner:".window-loading-cover > div, .wu-window-loading-cover > div"},domNodeSelectorInfix:"wu",domNodeSelectorPrefix:"body.{1}",initialSectionName:"home",knownScrollEventNames:["DOMMouseScroll","keyup","mousedown","mousewheel","scroll","touchmove","wheel"],language:{},mediaQueryClassNameIndicator:[["extraSmall","xs"],["small","sm"],["medium","md"],["large","lg"]],name:"WebsiteUtilities",onChangeMediaQueryMode:c.NOOP,onChangeToExtraSmallMode:c.NOOP,onChangeToLargeMode:c.NOOP,onChangeToMediumMode:c.NOOP,onChangeToSmallMode:c.NOOP,onViewportMovesAwayFromTop:c.NOOP,onViewportMovesToTop:c.NOOP,onSwitchSection:c.NOOP,onStartUpAnimationComplete:c.NOOP,scrollToTop:{button:{hideAnimationOptions:{},showAnimationOptions:{},slideDistanceInPixel:30},options:{duration:"fast"}},startUpAnimationElementDelayInMilliseconds:100,startUpHide:{opacity:0},startUpShowAnimation:{opacity:1},switchToManualScrollingIndicator:function(e){return"number"==typeof e.which&&e.which>0||"mousedown"===e.type||"mousewheel"===e.type||"touchmove"===e.type},tracking:{buttonClick:function(e){this.track({event:"buttonClick",eventType:"click",label:e.text(),reference:e.attr("action")||e.attr("target")||e.attr("type")||e.text(),subject:"button",value:parseInt(e.attr("website-analytics-value")),userInteraction:!0})},linkClick:function(e){this.track({event:"linkClick",eventType:"click",label:e.text(),reference:e.attr("href")||e.attr("action")||e.attr("target")||e.attr("type")||e.text(),subject:"link",value:parseInt(e.attr("website-analytics-value")),userInteraction:!0})},sectionSwitch:function(e){var t;null!=(t=c.globalContext.window)&&t.location&&this.track({event:"sectionSwitch",eventType:"sectionSwitch",label:e,reference:c.globalContext.window.location.pathname+"#"+e,subject:"url",userInteraction:!1})},track:function(e){var t;null==(t=c.globalContext.dataLayer)||t.push(e)}},windowLoadingCoverHideAnimation:{opacity:0},windowLoadingSpinner:{animation:"spinner-line-fade-quick",className:"spinner",color:"#000",corners:1,direction:1,fadeColor:"transparent",left:"auto",length:23,lines:9,position:"absolute",radius:40,rotate:0,scale:1,shadow:!1,speed:1.1,top:"auto",width:11,zIndex:2e9},windowLoadedTimeoutAfterDocLoadedInMSec:2e3};var T=y;c.$.WebsiteUtilities=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c.Tools.controller(y,t)},c.$.WebsiteUtilities.class=y}(),l}()}));
1
+ "use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/initializerWarningHelper"),require("@babel/runtime/regenerator"),require("clientnode"),require("clientnode/property-types"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/applyDecoratedDescriptor","@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/initializerDefineProperty","@babel/runtime/helpers/initializerWarningHelper","@babel/runtime/regenerator","clientnode","clientnode/property-types"],t);else{var r="object"==typeof exports?t(require("@babel/runtime/helpers/applyDecoratedDescriptor"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/initializerDefineProperty"),require("@babel/runtime/helpers/initializerWarningHelper"),require("@babel/runtime/regenerator"),require("clientnode"),require("clientnode/property-types")):t(e["@babel/runtime/helpers/applyDecoratedDescriptor"],e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/initializerDefineProperty"],e["@babel/runtime/helpers/initializerWarningHelper"],e["@babel/runtime/regenerator"],e.clientnode,e["clientnode/property-types"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,((__WEBPACK_EXTERNAL_MODULE__5__,__WEBPACK_EXTERNAL_MODULE__11__,__WEBPACK_EXTERNAL_MODULE__7__,__WEBPACK_EXTERNAL_MODULE__12__,__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__6__,__WEBPACK_EXTERNAL_MODULE__13__,__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__1__)=>(()=>{var __webpack_modules__=[e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__0__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__1__},function(module,__unused_webpack_exports,__webpack_require__){var __webpack_dirname__="/",e,t,r;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(7),t=__webpack_require__(0),r=__webpack_require__(1),function(){var o=[function(t){t.exports=e},function(e){e.exports=t},function(e){e.exports=r}],n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return o[e](r,r.exports,i),r.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};i.r(s),i.d(s,{property:function(){return c}});var a=i(0),l=i.n(a),p=i(1),u=i(2);function c(e){return void 0===e&&(e={}),e=l()({readAttribute:!0,type:u.string},e),function(t,r){if("string"==typeof r){var o,n=t.self||t.constructor;if(e.readAttribute){Object.prototype.hasOwnProperty.call(n,"observedAttributes")||(n.observedAttributes=n.observedAttributes?[].concat(n.observedAttributes):[]);var i=(0,p.camelCaseToDelimited)(r);n.observedAttributes&&!n.observedAttributes.includes(i)&&n.observedAttributes.push(i)}e.type&&(Object.prototype.hasOwnProperty.call(n,"propertyTypes")||(n.propertyTypes=n.propertyTypes?l()({},n.propertyTypes):{}),!n.propertyTypes||!e.update&&Object.prototype.hasOwnProperty.call(n,r)||(n.propertyTypes[r]=e.type)),e.writeAttribute&&(Object.prototype.hasOwnProperty.call(n,"propertiesToReflectAsAttributes")||(n.propertiesToReflectAsAttributes=n.propertiesToReflectAsAttributes?(0,p.copy)(n.propertiesToReflectAsAttributes):[]),(e.update||n.propertiesToReflectAsAttributes instanceof Map&&!n.propertiesToReflectAsAttributes.has(r)||Array.isArray(n.propertiesToReflectAsAttributes)&&!n.propertiesToReflectAsAttributes.includes(r)||"object"==typeof n.propertiesToReflectAsAttributes&&!Object.prototype.hasOwnProperty.call(n.propertiesToReflectAsAttributes,r))&&("boolean"==typeof e.writeAttribute?e.writeAttribute&&n.propertyTypes&&Object.prototype.hasOwnProperty.call(n.propertyTypes,r)&&(o=n.propertyTypes[r]):o=e.writeAttribute,void 0!==o&&(Array.isArray(n.propertiesToReflectAsAttributes)&&(!0===e.writeAttribute?n.propertiesToReflectAsAttributes.push(r):n.normalizePropertyTypeList&&(n.propertiesToReflectAsAttributes=n.normalizePropertyTypeList(n.propertiesToReflectAsAttributes))),n.propertiesToReflectAsAttributes instanceof Map&&n.propertiesToReflectAsAttributes.set(r,o),"object"==typeof n.propertiesToReflectAsAttributes&&(n.propertiesToReflectAsAttributes[r]=o)))),e.alias&&(Object.prototype.hasOwnProperty.call(n,"propertyAliases")||(n.propertyAliases=n.propertyAliases?l()({},n.propertyAliases):{}),!n.propertyAliases||!e.update&&Object.prototype.hasOwnProperty.call(n,r)||(n.propertyAliases[r]=e.alias))}}}return s.default=c,s}())},function(module,__unused_webpack_exports,__webpack_require__){var __webpack_dirname__="/",e,t,r,n,i,s,o,a,l;if(module=__webpack_require__.nmd(module),null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&null!=__webpack_dirname__&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window=void 0===__webpack_require__.g||null===__webpack_require__.g?{}:__webpack_require__.g;module.exports=(e=__webpack_require__(11),t=__webpack_require__(4),r=__webpack_require__(7),n=__webpack_require__(12),i=__webpack_require__(5),s=__webpack_require__(6),o=__webpack_require__(13),a=__webpack_require__(0),l=__webpack_require__(1),function(){var p=[function(e){e.exports=r},function(e){e.exports=a},function(e){e.exports=l},function(e){e.exports=n},function(e,t,r){var o=r(0),n=r.n(o),i=r(1),s=r(2);t.default=function(e){return void 0===e&&(e={}),e=n()({readAttribute:!0,type:s.string},e),function(t,r){if("string"==typeof r){var o,s=t.self||t.constructor;if(e.readAttribute){Object.prototype.hasOwnProperty.call(s,"observedAttributes")||(s.observedAttributes=s.observedAttributes?[].concat(s.observedAttributes):[]);var a=(0,i.camelCaseToDelimited)(r);s.observedAttributes&&!s.observedAttributes.includes(a)&&s.observedAttributes.push(a)}e.type&&(Object.prototype.hasOwnProperty.call(s,"propertyTypes")||(s.propertyTypes=s.propertyTypes?n()({},s.propertyTypes):{}),!s.propertyTypes||!e.update&&Object.prototype.hasOwnProperty.call(s,r)||(s.propertyTypes[r]=e.type)),e.writeAttribute&&(Object.prototype.hasOwnProperty.call(s,"propertiesToReflectAsAttributes")||(s.propertiesToReflectAsAttributes=s.propertiesToReflectAsAttributes?(0,i.copy)(s.propertiesToReflectAsAttributes):[]),(e.update||s.propertiesToReflectAsAttributes instanceof Map&&!s.propertiesToReflectAsAttributes.has(r)||Array.isArray(s.propertiesToReflectAsAttributes)&&!s.propertiesToReflectAsAttributes.includes(r)||"object"==typeof s.propertiesToReflectAsAttributes&&!Object.prototype.hasOwnProperty.call(s.propertiesToReflectAsAttributes,r))&&("boolean"==typeof e.writeAttribute?e.writeAttribute&&s.propertyTypes&&Object.prototype.hasOwnProperty.call(s.propertyTypes,r)&&(o=s.propertyTypes[r]):o=e.writeAttribute,void 0!==o&&(Array.isArray(s.propertiesToReflectAsAttributes)&&(!0===e.writeAttribute?s.propertiesToReflectAsAttributes.push(r):s.normalizePropertyTypeList&&(s.propertiesToReflectAsAttributes=s.normalizePropertyTypeList(s.propertiesToReflectAsAttributes))),s.propertiesToReflectAsAttributes instanceof Map&&s.propertiesToReflectAsAttributes.set(r,o),"object"==typeof s.propertiesToReflectAsAttributes&&(s.propertiesToReflectAsAttributes[r]=o)))),e.alias&&(Object.prototype.hasOwnProperty.call(s,"propertyAliases")||(s.propertyAliases=s.propertyAliases?n()({},s.propertyAliases):{}),!s.propertyAliases||!e.update&&Object.prototype.hasOwnProperty.call(s,r)||(s.propertyAliases[r]=e.alias))}}}},function(t){t.exports=e},function(e){e.exports=o},,function(e){e.exports=t},function(e){e.exports=i},function(e){e.exports=s}],u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return p[e](r,r.exports,c),r.exports}c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,{a:t}),t},c.d=function(e,t){for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};c.r(d),c.d(d,{GenericHTMLElement:function(){return q},Web:function(){return I},api:function(){return j},log:function(){return M}});var h,f,b,_,y=c(5),m=c.n(y),v=c(8),g=c.n(v),w=c(0),A=c.n(w),T=c(3),P=c.n(T),E=c(9),O=c.n(E),S=(c(10),c(6)),C=c.n(S),x=c(1),N=c(2),k=c(4);function L(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}var M=new x.Logger({name:"web-component-wrapper-web"}),q="undefined"==typeof HTMLElement?function(){}:HTMLElement,I=(h=(0,k.default)({type:N.boolean,writeAttribute:!0}),_=function(e){function t(){var r;return(r=e.call(this)||this).batchAttributeUpdates=!0,r.batchPropertyUpdates=!0,r.batchUpdates=!0,r.batchedAttributeUpdateRunning=!0,r.batchedPropertyUpdateRunning=!0,r.batchedUpdateRunning=!0,r.parent=null,r.rootInstance=null,r.scope=A()({},x.UTILITY_SCOPE),r.domNodeEventBindings=new Map,r.domNodeTemplateCache=new Map,r.externalProperties={},r.ignoreAttributeUpdateObservations=!1,r.internalProperties={},r.outputEventNames=new Set,r.instance=null,g()(r,"isRoot",b,r),r.root=void 0,r.runDomConnectionAndRenderingInSameEventQueue=!1,r.self=t,r.slots={},r.self=r.constructor,r.self._propertiesToReflectAsAttributes||(r.self._propertiesToReflectAsAttributes=r.self.normalizePropertyTypeList(r.self.propertiesToReflectAsAttributes)),r.generateAliasIndex(),r.root=r,r.defineGetterAndSetterInterface(),r}P()(t,e);var r=t.prototype;return r.attributeChangedCallback=function(e,t,r){this.ignoreAttributeUpdateObservations||t===r||this.onUpdateAttribute(e,r)},r.onUpdateAttribute=function(e,t){var r=this;this.evaluateStringOrNullAndSetAsProperty(e,t),this.batchAttributeUpdates?this.batchedAttributeUpdateRunning||this.batchedUpdateRunning||(this.batchedAttributeUpdateRunning=!0,this.batchedUpdateRunning=!0,(0,x.timeout)((function(){r.batchedAttributeUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("attributeChanged")}))):this.render("attributeChanged")},r.connectedCallback=function(){var e=this;try{this.isConnected=!0}catch(e){}this.parent=this,this.rootInstance=this,this.attachEventHandler(),this.self.determineRootBinding&&this.determineRootBinding(),this.self.applyRootBinding&&this.isRoot&&(this.determineRenderScope(),this.applyBinding(this,this.scope)),this.batchedAttributeUpdateRunning=!1,this.batchedPropertyUpdateRunning=!1,this.batchedUpdateRunning=!1,this.grabGivenSlots(),this.reflectExternalProperties(this.externalProperties),this.runDomConnectionAndRenderingInSameEventQueue?this.render("connected"):(0,x.timeout)((function(){e.render("connected")}))},r.disconnectedCallback=function(){try{this.isConnected=!1}catch(e){}for(var e,t=L(this.domNodeEventBindings.values());!(e=t()).done;)for(var r,o=L(e.value.values());!(r=o()).done;)(0,r.value)();this.slots={}},r.defineGetterAndSetterInterface=function(){for(var e,t=this,r=function(){var r=e.value;Object.prototype.hasOwnProperty.call(t,r)&&t.setPropertyValue(r,t[r]),Object.defineProperty(t,r,{configurable:!0,get:function(){return t.getPropertyValue(r)},set:function(e){t.setPropertyValue(r,e),t.triggerPropertySpecificRendering(r,e)}})},o=L((0,x.unique)(Object.keys(this.self.propertyTypes).concat(this.self._propertyAliasIndex?Object.keys(this.self._propertyAliasIndex):[])));!(e=o()).done;)r()},r.getPropertyAlias=function(e){return this.self._propertyAliasIndex&&Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,e)?this.self._propertyAliasIndex[e]:null},r.getPropertyValue=function(e){var r,o,n=null!=(r=this.instance)&&null!=(r=r.current)&&r.properties&&(Object.prototype.hasOwnProperty.call(!t.propertyTypes,e)||Object.prototype.hasOwnProperty.call(this.instance.current.properties,e))?this.instance.current.properties[e]:this.externalProperties[e];return null!=(o=this.instance)&&null!=(o=o.current)&&o.state&&Object.prototype.hasOwnProperty.call(this.instance.current.state,e)?this.instance.current.state[e]:n},r.setExternalPropertyValue=function(e,t){this.externalProperties[e]=t;var r=this.getPropertyAlias(e);r&&(this.externalProperties[r]=t)},r.setInternalPropertyValue=function(e,t){this.internalProperties[e]=t;var r=this.getPropertyAlias(e);r&&(this.internalProperties[r]=t)},r.setPropertyValue=function(e,t){var r;this.reflectProperties(((r={})[e]=t,r)),this.setInternalPropertyValue(e,t)},r.triggerPropertySpecificRendering=function(e,t){var r=this;if(this.batchPropertyUpdates)this.batchedPropertyUpdateRunning||this.batchedUpdateRunning||(this.batchedPropertyUpdateRunning=!0,this.batchedUpdateRunning=!0,(0,x.timeout)((function(){void 0!==t&&r.isStateProperty(e)?(r.render("preStatePropertyChanged"),(0,x.timeout)((function(){r.setInternalPropertyValue(e,void 0),r.batchedPropertyUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("postStatePropertyChanged"),r.triggerOutputEvents()}))):(r.batchedPropertyUpdateRunning=!1,r.batchedUpdateRunning=!1,r.render("propertyChanged"),r.triggerOutputEvents())})));else{var o=this.isStateProperty(e);this.render(o?"preStatePropertyChanged":"propertyChanged"),void 0!==t&&o&&(this.setInternalPropertyValue(e,void 0),this.render("postStatePropertyChanged")),this.triggerOutputEvents()}},r.applyBinding=function(e,t){var r=this;if(e.getAttributeNames)for(var o,n=function(){var n=o.value,i="";if(n.startsWith("data-bind-")?i=n.substring(10):n.startsWith("bind-")&&(i=n.substring(5)),i){var s=e.getAttribute(n);if(null===s)return 0;if(i.startsWith("attribute-")||i.startsWith("property-")){var a=(0,x.evaluate)(s,t,!1,!0,e);if(a.error)return M.warn("Error occurred during processing given",'attribute binding "'+n+'" on node:',e,a.error),0;i.startsWith("attribute-")?e.setAttribute(i.substring(10),a.result):e[(0,x.delimitedToCamelCase)(i.substring(9))]=a.result}else if(i.startsWith("on-")){i=(0,x.delimitedToCamelCase)(i.substring(3)),t=A()({log:M,event:void 0,parameters:void 0},t);var l=(0,x.compile)(s,t,!0,!0,e);l.error?M.warn("Error occurred during compiling given event",'binding "'+n+'" on node:',e,l.error):r.addSecureEventListener(e,i,(function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t.event=o[0],t.parameters=o;try{l.templateFunction.apply(l,l.originalScopeNames.map((function(e){return t[e]})))}catch(t){M.warn("Error occurred during processing","given event binding",'"'+n+'" on node:',e,'Given expression "'+s+'" could',"not be evaluated with given scope",'names "'+l.scopeNames.join('", "')+'": '+(0,x.represent)(t))}}))}}},i=L(e.getAttributeNames());!(o=i()).done;)n()},r.applyBindings=function(e,t,r){for(void 0===r&&(r=!0);e;){var o;null==(o=e.attributes)||!o.length||!r&&e.getAttribute("slot")||this.applyBinding(e,t),e.nodeName.toLowerCase().includes("-")||this.applyBindings(e.firstChild,t),e=e.nextSibling}},r.compileDomNodeTemplate=function(e,t,r){void 0===t&&(t=[]),void 0===r&&(r={}),r=A()({ignoreComponents:!0,ignoreNestedComponents:!0,unsafe:this.self.renderUnsafe},r);var o=e.nodeName.toLowerCase();if(r.ignoreComponents&&o.includes("-"))return null;if(r.unsafe){var n=e.innerHTML;if(!n&&e.template&&(n=e.template),this.self.hasCode(n)){var i=(0,x.compile)("`"+n+"`",t);return{domNode:e,children:[],error:i.error,scopeNames:i.scopeNames,template:n,templateFunction:i.templateFunction}}return null}var s=null;if("#text"===o){var a=e.textContent;a&&this.self.hasCode(a)&&(s=a.replace(/&nbsp;/g," ").trim())}var l=[],p={children:l,domNode:e};if(s){var u=(0,x.compile)("`"+s+"`",t);p.error=u.error,p.scopeNames=u.scopeNames,p.template=s,p.templateFunction=u.templateFunction}for(var c=e.firstChild;c;){if(!r.filter||r.filter(c)){var d=this.compileDomNodeTemplate(c,t,A()({},r,{ignoreComponents:r.ignoreNestedComponents}));d&&l.push(d)}c=c.nextSibling}return p},r.evaluateCompiledDomNodeTemplate=function(e,t){var r=e.domNode,o=e.error,n=e.templateFunction,i=e.scopeNames;if(!n||!i)return null;if(o)return M.warn("Error occurred during compiling node content:",o),null;var s=null;try{s=n.apply(void 0,i.map((function(e){return t[e]})))}catch(o){M.warn('Error occurred when "'+this.self._name+'" is running','"'+String(n)+'": with bound','names "'+i.join('", "')+'":','"'+o+'". Rendering node:',r)}return s},r.evaluateDomNodeTemplate=function(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r={});var n=(r=A()({domNodeTemplateCache:this.domNodeTemplateCache,ignoreComponents:!0,ignoreNestedComponents:!0,unsafe:this.self.renderUnsafe},r)).domNodeTemplateCache;if(!n.has(e)){var i={filter:r.filter,ignoreComponents:r.ignoreComponents,ignoreNestedComponents:r.ignoreNestedComponents,unsafe:r.unsafe},s=this.compileDomNodeTemplate(e,t,i);s&&n.set(e,s)}if(n.has(e)){var a=n.get(e),l=this.evaluateCompiledDomNodeTemplate(a,t);if(null!==l&&(r.unsafe&&e.innerHTML?e.innerHTML=l:e.textContent=l),a.children.length){var p=function(e){for(var r,n=L(e);!(r=n()).done;){var i=r.value,s=o.evaluateCompiledDomNodeTemplate(i,t);null!==s&&(i.domNode.textContent=s),i.children.length&&p(i.children)}};p(a.children)}}r.applyBindings&&this.applyBindings(e,t)},t.replaceDomNodes=function(e,r){for(var o,n=L([].concat(r).reverse());!(o=n()).done;){var i,s=o.value;t.trimSlots&&s.nodeType===Node.TEXT_NODE&&""===(null==(i=s.nodeValue)?void 0:i.trim())||e.after(s)}e.remove()},t.unwrapDomNode=function(e){for(var t=e.parentNode,r=[];e.firstChild;)r.push(e.firstChild),t.insertBefore(e.firstChild,e);return t.removeChild(e),r},r.addSecureEventListener=function(e,t,r){var o=this;this.domNodeEventBindings.has(e)||this.domNodeEventBindings.set(e,new Map);var n=this.domNodeEventBindings.get(e),i=null==n?void 0:n.get(t);i&&i!==r&&i(),null==n||n.set(t,(function(){e.removeEventListener(t,r),n.delete(t),0===n.size&&o.domNodeEventBindings.delete(e)})),e.addEventListener(t,r)},r.determineRootBinding=function(){for(var e=this.parentNode;e;)(e instanceof t||e.nodeName.includes("-")||null===e.parentNode&&"[object ShadowRoot]"===e.toString())&&(this.rootInstance===this?(this.parent=e,this.rootInstance=e,this.setPropertyValue("isRoot",!1)):this.rootInstance=e),e=e.parentNode},t.hasCode=function(e){return"string"==typeof e&&e.includes("${")&&e.includes("}")&&/\${[\s\S]+}/.test(e)},t.normalizePropertyTypeList=function(e){if("string"==typeof e&&(e=[e]),Array.isArray(e)){for(var r,o=e,n=new Map,i=L(o);!(r=i()).done;){var s=r.value;Object.prototype.hasOwnProperty.call(t.propertyTypes,s)&&n.set(s,t.propertyTypes[s])}return n}return(0,x.convertPlainObjectToMap)(e)},r.attachEventHandler=function(){if(null!==this.self.eventToPropertyMapping){var e=this.attachExplicitDefinedOutputEventHandler();this.attachImplicitDefinedOutputEventHandler(!e)}},r.attachExplicitDefinedOutputEventHandler=function(){var e=this;if(!this.self.eventToPropertyMapping)return!1;for(var t=!1,r=function(){var r=n[o];Object.prototype.hasOwnProperty.call(e.internalProperties,r)||(t=!0,e.outputEventNames.add(r),e.setInternalPropertyValue(r,m()(C().mark((function t(){var o,n,i,s,a=arguments;return C().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(o=a.length,n=new Array(o),i=0;i<o;i++)n[i]=a[i];return t.next=1,e.reflectEventToProperties(r,n);case 1:(s=t.sent)&&(n[0]=s),e.forwardEvent(r,n);case 2:case"end":return t.stop()}}),t)})))))},o=0,n=Object.keys(this.self.eventToPropertyMapping);o<n.length;o++)r();return t},r.attachImplicitDefinedOutputEventHandler=function(e){var t=this;void 0===e&&(e=!0);for(var r=function(){var r=n[o],i=r[0],s=r[1];Object.prototype.hasOwnProperty.call(t.internalProperties,i)||![N.func,"function"].includes(s)||t.self.renderProperties.includes(i)||(t.outputEventNames.add(i),t.setInternalPropertyValue(i,(function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];e&&t.reflectEventToProperties(i,o),t.forwardEvent(i,o)})))},o=0,n=Object.entries(this.self.propertyTypes);o<n.length;o++)r()},r.triggerOutputEvents=function(){for(var e,t=L(this.outputEventNames);!(e=t()).done;){var r=e.value;this.forwardEvent(r,[this.externalProperties])}},r.forwardEvent=function(e,t){return e.length>3&&e.startsWith("on")&&(e=(0,x.lowerCase)(e.substring(2))),this.dispatchEvent(new CustomEvent(e,{detail:{parameters:t}}))},r.applySlots=function(e,t){for(var r=this,o=0,n=Array.from(e.querySelectorAll("slot"));o<n.length;o++){var i=n[o],s=i.getAttribute("name");if(null===s||"default"===s)if(this.slots.default){if(this.self.renderSlots){if(this.self.evaluateSlots)for(var a,l=L(this.slots.default);!(a=l()).done;){var p=a.value;this.evaluateDomNodeTemplate(p,t)}this.self.replaceDomNodes(i,this.slots.default)}}else this.slots.default=this.self.unwrapDomNode(i).map((function(e){return r.grabSlotContent(e)}));else this.slots[s]?this.self.renderSlots&&(this.self.evaluateSlots&&this.evaluateDomNodeTemplate(this.slots[s],t),this.self.replaceDomNodes(i,this.slots[s])):this.slots[s]=this.grabSlotContent(this.self.unwrapDomNode(i).filter((function(e){return"#text"!==e.nodeName.toLowerCase()}))[0])}},r.grabSlotContent=function(e){var t,r=N.node.firstElementChild?e:null;if(r&&"textarea"===(null==(t=r.firstElementChild)?void 0:t.nodeName.toLowerCase())&&(!r.firstElementChild.hasAttribute("data-no-template")||"false"===r.firstElementChild.getAttribute("data-no-template"))){var o=r.firstElementChild.value;r.classList.remove("web-component-template");var n=r.cloneNode();return r.classList.add("web-component-template"),n.innerHTML="",n.template=o,n}return this.self.cloneSlots?e.cloneNode(!0):e},r.grabGivenSlots=function(){var e=this;this.slots={};for(var t=0,r=Array.from(this.querySelectorAll("[slot]"));t<r.length;t++){for(var o,n=r[t],i=n.parentNode,s=!0;i;){if(i.nodeName.includes("-")){i===this&&(s=!1);break}i=i.parentNode}if(!s){var a=null==(o=n.getAttribute("slot"))?void 0:o.trim();this.slots[null!=a?a:n.nodeName.toLowerCase()]=this.grabSlotContent(n)}}this.slots.default?this.slots.default=[].concat(this.slots.default):this.childNodes.length>0?this.slots.default=Array.from(this.childNodes).map((function(t){return e.grabSlotContent(t)})):this.slots.default=[]},r.isStateProperty=function(e){var t;return Boolean((null==(t=this.instance)||null==(t=t.current)?void 0:t.state)&&(Object.prototype.hasOwnProperty.call(this.instance.current.state,e)||this.instance.current.state.modelState&&Object.prototype.hasOwnProperty.call(this.instance.current.state.modelState,e)))},r.generateAliasIndex=function(){if(!this.self._propertyAliasIndex){this.self._propertyAliasIndex=A()({},this.self.propertyAliases);for(var e=0,t=Object.entries(this.self._propertyAliasIndex);e<t.length;e++){var r=t[e],o=r[0],n=r[1];Object.prototype.hasOwnProperty.call(this.self._propertyAliasIndex,n)||(this.self._propertyAliasIndex[n]=o)}}},r.reflectExternalProperties=function(e){this.ignoreAttributeUpdateObservations=!0;for(var t=0,r=Object.entries(e);t<r.length;t++){var o,n=r[t],i=n[0],s=n[1];if(this.setExternalPropertyValue(i,s),this.isConnected){var a=(0,x.camelCaseToDelimited)(i);if(null!=(o=this.self._propertiesToReflectAsAttributes)&&o.has(i))switch(this.self._propertiesToReflectAsAttributes.get(i)){case N.boolean:case"boolean":s?""!==this.getAttribute(a)&&this.setAttribute(a,""):this.hasAttribute(a)&&this.removeAttribute(a);break;case N.func:case"function":break;case"json":if(s){var l=JSON.stringify(s);if(l&&this.getAttribute(a)!==l){this.setAttribute(a,l);break}}this.hasAttribute(a)&&this.removeAttribute(a);break;case N.number:case"number":if("number"!=typeof s||isNaN(s))this.hasAttribute(a)&&this.removeAttribute(a);else{var p=String(s);this.getAttribute(a)!==p&&this.setAttribute(a,p)}break;case N.string:case"string":s?this.getAttribute(a)!==s&&this.setAttribute(a,s):this.hasAttribute(a)&&this.removeAttribute(a);break;case N.any:case N.array:case N.arrayOf:case N.element:case N.elementType:case N.instanceOf:case N.node:case N.object:case"object":case N.objectOf:case N.shape:case N.exact:case N.symbol:default:if(s){var u=(0,x.represent)(s);if(u&&this.getAttribute(a)!==u){this.setAttribute(a,u);break}}this.hasAttribute(a)&&this.removeAttribute(a)}}}this.ignoreAttributeUpdateObservations=!1},r.reflectProperties=function(e){var t,r;if(this.reflectExternalProperties(e),null!=(t=this.instance)&&null!=(t=t.current)&&t.state&&"object"==typeof this.instance.current.state)for(var o,n=L(Object.keys(this.instance.current.state).concat(this.instance.current.state.modelState?Object.keys(this.instance.current.state.modelState):[]));!(o=n()).done;){var i=o.value;Object.prototype.hasOwnProperty.call(this.internalProperties,i)&&this.setInternalPropertyValue(i,void 0)}null!=(r=this.internalProperties.model)&&r.state&&(delete this.internalProperties.model.state,this.setInternalPropertyValue("model",this.internalProperties.model));for(var s,a=L(this.self.controllableProperties);!(s=a()).done;){var l=s.value;Object.prototype.hasOwnProperty.call(e,l)&&this.setInternalPropertyValue(l,e[l])}},r.reflectEventToProperties=function(){var e=m()(C().mark((function e(t,r){var o,n,i,s,a,l,p,u,c,d,h,f,b,_,y,m,v;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.batchUpdates,this.batchUpdates=!1,n=null,i=!1,!(this.self.eventToPropertyMapping&&Object.prototype.hasOwnProperty.call(this.self.eventToPropertyMapping,t)&&(0,x.isFunction)(this.self.eventToPropertyMapping[t]))){e.next=4;break}if(!((a=(s=this.self.eventToPropertyMapping)[t].apply(s,r.concat([this])))&&"then"in a&&(0,x.isFunction)(a.then))){e.next=2;break}return e.next=1,a;case 1:v=e.sent,e.next=3;break;case 2:v=a;case 3:l=v,i=!0,Array.isArray(l)?(n=l[0],this.reflectProperties(n),(0,x.extend)(!0,this.internalProperties,l[1])):null===l?i=!1:"object"==typeof l&&(n=l,this.reflectProperties(l));case 4:if(!i&&r.length>0&&(0,x.isObject)(r[0])){if(u=r[0],"persist"in r[0]&&(0,x.isFunction)(r[0].persist))for(u={},c=0,d=Object.keys(this.self.propertyTypes);c<d.length;c++)for(h=d[c],f=L([h].concat(null!==(_=this.getPropertyAlias(h))&&void 0!==_?_:[]));!(b=f()).done;)y=b.value,(m=r[0].currentTarget&&Object.prototype.hasOwnProperty.call(r[0].currentTarget,y)?r[0].currentTarget[y]:this.getPropertyValue(y))!==this.externalProperties[y]&&(u[y]=m);else[null,void 0].includes(null==(p=u.detail)?void 0:p.value)||(u=A()({},u.detail));n=u,this.reflectProperties(u)}return this.triggerRender("propertyReflected"),this.batchUpdates=o,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),r.evaluateStringOrNullAndSetAsProperty=function(e,t){var r=this,o=e.startsWith("-"),n=o?e.substring(1):e,i=(0,x.delimitedToCamelCase)(n),s=this.getPropertyAlias(i);if(s&&Object.prototype.hasOwnProperty.call(this.self.propertyTypes,s)&&(i=s),Object.prototype.hasOwnProperty.call(this.self.propertyTypes,i)){var a=this.self.propertyTypes[i];if(o){if(t){var l=(0,x.evaluate)(t,A()({},x.UTILITY_SCOPE),!1,!0,this);l.error?(M.warn("Failed to process pre-evaluation attribute",'"'+e+'": '+l.error+". Will be",'set to "undefined".'),this.setInternalPropertyValue(i,void 0)):(this.setInternalPropertyValue(i,l.result),this.setExternalPropertyValue(i,l.result))}}else switch(a){case N.boolean:case"boolean":var p=![null,"false"].includes(t);this.setInternalPropertyValue(i,p),this.setExternalPropertyValue(i,p);break;case N.func:case"function":var u,c=null,d=["data","event","firstArgument","firstParameter","options","scope","parameters"].concat(x.UTILITY_SCOPE_NAMES);if(t){var h=(0,x.compile)(t,d);c=h.error,u=h.templateFunction,c&&M.warn("Failed to compile given handler",'"'+e+'": '+c+".")}this.setInternalPropertyValue(i,(function(){for(var o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];r.outputEventNames.has(i)&&r.reflectEventToProperties(i,n);var a=void 0;if(!c)try{var l;a=null==(l=u)?void 0:l.call.apply(l,[r,n[0],n[0],n[0],n[0],n[0],n[0],n].concat(x.UTILITY_SCOPE_VALUES))}catch(r){M.warn("Failed to evaluate function",'"'+e+'" with expression','"'+t+'" and scope',"variables",'"'+d.join('", "')+'" set to','"'+(0,x.represent)(n)+'":',r+". Set property",'to "undefined".')}return r.self.renderProperties.includes(i)||r.forwardEvent(i,n),a})),c||this.setExternalPropertyValue(i,u);break;case"json":if(t){var f;try{f=JSON.parse(t)}catch(c){M.warn("Error occurred during parsing given json",'attribute "'+e+'":',(0,x.represent)(c));break}this.setInternalPropertyValue(i,f),this.setExternalPropertyValue(i,(0,x.copy)(f,!1,1))}else this.setInternalPropertyValue(i,null),this.setExternalPropertyValue(i,null);break;case N.number:case"number":if(null===t){this.setInternalPropertyValue(i,t),this.setExternalPropertyValue(i,t);break}var b=parseFloat(t);isNaN(b)&&(b=void 0),this.setInternalPropertyValue(i,b),this.setExternalPropertyValue(i,b);break;case N.string:case"string":this.setInternalPropertyValue(i,t),this.setExternalPropertyValue(i,t);break;case N.any:case N.array:case N.arrayOf:case N.element:case N.elementType:case N.instanceOf:case N.node:case N.object:case"object":case N.objectOf:case N.oneOf:case N.oneOfType:case N.shape:case N.exact:case N.symbol:default:if(t){var _=(0,x.evaluate)(t,{},!1,!0,this);if(_.error){M.warn("Error occurred during processing given",'attribute configuration "'+e+'":',_.error);break}this.setInternalPropertyValue(i,_.result),this.setExternalPropertyValue(i,(0,x.copy)(_.result,!1,1))}else this.hasAttribute(e)?(this.setInternalPropertyValue(i,!0),this.setExternalPropertyValue(i,!0)):(this.setInternalPropertyValue(i,null),this.setExternalPropertyValue(i,null))}}},r.triggerRender=function(e){var t=this;this.batchUpdates?this.batchedUpdateRunning||(this.batchedUpdateRunning=!0,(0,x.timeout)((function(){t.batchedUpdateRunning=!1,t.render(e)}))):this.render(e)},r.applyShadowRootIfNotExisting=function(){this.self.shadowDOM&&this.root===this&&(this.root=(!("attachShadow"in this)&&"ShadyDOM"in window?window.ShadyDOM.wrap(this):this).attachShadow((0,x.isObject)(this.self.shadowDOM)?this.self.shadowDOM:{mode:"open"}))},r.determineRenderScope=function(e){var t,r;void 0===e&&(e={}),this.scope=A()({},(null==(t=this.parent)?void 0:t.scope)||{},this.scope,this.internalProperties,((r={parent:this.parent,root:this.rootInstance,self:this})[(0,x.lowerCase)(this.self._name)||"instance"]=this,r),e),this.scope.scope=this.scope},r.render=function(e){if(void 0===e&&(e="unknown"),this.determineRenderScope(),!this.dispatchEvent(new CustomEvent("render",{detail:{reason:e,scope:this.scope}})))return Promise.resolve();var t=(0,x.evaluate)("`"+this.self.content+"`",this.scope);if(t.error)return M.warn("Failed to process template: "+t.error),Promise.resolve();this.applyShadowRootIfNotExisting();var r=document.createElement("div");return r.innerHTML=t.result,this.applySlots(r,A()({},this.scope,{parent:this})),this.root.innerHTML=r.innerHTML,this.applyBindings(this.root.firstChild,this.scope,this.self.renderSlots),Promise.resolve()},t}(q),_.applyRootBinding=!0,_.content="<slot>Please provide a template to transclude.</slot>",_.determineRootBinding=!0,_.shadowDOM=null,_.observedAttributes=[],_.controllableProperties=[],_.eventToPropertyMapping={},_.propertyAliases={},_.propertyTypes={onClick:N.func},_.propertiesToReflectAsAttributes=[],_.renderProperties=["children"],_.cloneSlots=!1,_.evaluateSlots=!1,_.renderSlots=!0,_.trimSlots=!0,_.renderUnsafe=!1,_._name="BaseWeb",_._propertyAliasIndex=void 0,_._propertiesToReflectAsAttributes=void 0,f=_,b=O()(f.prototype,"isRoot",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),f),j={component:I,register:function(e){void 0===e&&(e=(0,x.camelCaseToDelimited)(I._name)),customElements.define(e,I)}};return d.default=I,d}())},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__4__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__5__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__6__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__7__},,,,e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__11__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__12__},e=>{e.exports=__WEBPACK_EXTERNAL_MODULE__13__}],__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};return(()=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{WebsiteUtilities:()=>z,api:()=>F,default:()=>H,log:()=>W});var e,t,r,o,n,i,s,a,l,p,u,c,d,h,f,b,_,y,m,v,g,w,A,T,P,E,O,S,C,x,N,k,L,R,M=__webpack_require__(4),q=__webpack_require__.n(M),I=__webpack_require__(5),j=__webpack_require__.n(I),D=(__webpack_require__(6),__webpack_require__(0)),U=__webpack_require__(1),B=__webpack_require__(2),V=__webpack_require__(3);const W=new D.Logger({name:"website-utilities"});let z=(e=(0,B.property)({type:U.object}),t=(0,B.property)({type:U.func}),r=(0,B.property)({type:U.func}),o=(0,B.property)({type:U.func}),n=(0,B.property)({type:U.func}),i=(0,B.property)({type:U.func}),s=(0,B.property)({type:U.func}),a=(0,B.property)({type:U.func}),l=(0,B.property)({type:U.func}),p=(0,B.property)({type:U.func}),u=(0,B.property)({type:U.func}),c=(0,B.property)({type:U.func}),d=(0,B.property)({type:U.func}),h=(0,B.property)({type:U.func}),f=(0,B.property)({type:U.func}),b=(0,B.property)({type:U.func}),R=class e extends V.Web{constructor(){super(),this.self=e,q()(this,"options",y,this),this.currentMediaQueryMode="",this.currentSectionName="home",this.startUpAnimationIsComplete=!1,this.continueAutoScrolling=!1,this.viewportIsOnTop=void 0,this.windowLoaded=!1,this.scrollToTopButtonDomNodes=null,this.topDomNode=null,this.windowLoadingCoverDomNode=null,q()(this,"onChangeMediaQueryMode",m,this),q()(this,"onChangeToExtraSmallMode",v,this),q()(this,"onChangeToLargeMode",g,this),q()(this,"onChangeToMediumMode",w,this),q()(this,"onChangeToSmallMode",A,this),q()(this,"onStartUpAnimationComplete",T,this),q()(this,"onSwitchSection",P,this),q()(this,"onViewportMovesAwayFromTop",E,this),q()(this,"onViewportMovesToTop",O,this),q()(this,"onSwitchToManualScrollingIndicator",S,this),q()(this,"onLoaded",C,this),q()(this,"onButtonClick",x,this),q()(this,"onSectionSwitch",N,this),q()(this,"onLinkClick",k,this),q()(this,"onTrack",L,this),this.defineGetterAndSetterInterface()}onUpdateAttribute(e,t){super.onUpdateAttribute(e,t),"options"===e&&(this.options=(0,D.extend)(!0,{},this.self._defaultOptions,this.options))}async render(e){await super.render(e),0===Object.keys(this.options).length&&this.onUpdateAttribute("options","{}"),this.grabDomNodes(),this.disableScrolling(),this._bindScrollEvents(),this._bindClickTracking(),this._bindNavigationEvents();const t=()=>{this.windowLoaded||(this.windowLoaded=!0,this._removeLoadingCover().then((()=>{this._performStartUpEffects(),this.onLoaded()})))};(0,D.onDocumentReady)((()=>{(0,D.timeout)(t,this.options.windowLoadedTimeoutAfterDocLoadedInMSec)})),D.globalContext.window&&this.addSecureEventListener(D.globalContext.window,"load",t)}grabDomNodes(){var e;this.scrollToTopButtonDomNodes=this.root.querySelectorAll(this.options.selectors.scrollToTopButtons),this.topDomNode=this.root.querySelector(this.options.selectors.top),this.windowLoadingCoverDomNode=null!==(e=this.root.parentElement?.querySelector(this.options.selectors.windowLoadingCover))&&void 0!==e?e:null}interruptableScrollToTop(){const e=window.pageYOffset,t=performance.now();this.continueAutoScrolling=!0;const r=o=>{if(!this.continueAutoScrolling)return;const n=o-t,i=Math.min(n/500,1),s=i*(2-i);window.scrollTo(0,e*(1-s)),i<1?requestAnimationFrame(r):this.continueAutoScrolling=!1};requestAnimationFrame(r)}scrollToTop(){D.globalContext.document&&window.scrollTo({top:0,behavior:"smooth"})}disableScrolling(){this.root.parentElement&&(this.root.parentElement.classList.add("disable-scrolling"),this.addSecureEventListener(this.root.parentElement,"touchmove",D.preventDefault))}enableScrolling(){this.root.parentElement&&(this.root.parentElement.classList.remove("disable-scrolling"),this.root.parentElement.classList.remove("touchmove"),this.root.parentElement.removeEventListener("touchmove",D.preventDefault))}track(e){if(D.globalContext.window?.location&&this.options.tracking){const t={context:`${D.globalContext.window.location.pathname}#`+this.currentSectionName,...e};("number"!=typeof t.value||isNaN(t.value))&&(t.value=1),W.debug('Run tracking code: "event" with arguments:'),W.debug(t);try{this.onTrack(t)}catch(e){W.warn(`Problem in tracking "${(0,D.represent)(t)}":`,(0,D.represent)(e))}}}_onViewportMovesToTop(){this._finishScrollToTopButtonTransition();for(const t of null!==(e=this.scrollToTopButtonDomNodes)&&void 0!==e?e:[]){var e;const r=()=>{t.removeEventListener("transitionend",o),t.removeEventListener("transitioncancel",r)},o=()=>{this.viewportIsOnTop&&t.classList.add("wu-top-settled"),r()};t.addEventListener("transitionend",o,{once:!0}),t.addEventListener("transitioncancel",r,{once:!0}),t.classList.add("wu-scroll-up")}}async _onViewportMovesAwayFromTop(){this._finishScrollToTopButtonTransition("wu-top-settled"),await(0,D.timeout)(),this._finishScrollToTopButtonTransition();for(const t of null!==(e=this.scrollToTopButtonDomNodes)&&void 0!==e?e:[]){var e;t.classList.add("wu-scroll-down")}}_onSwitchSection(e){if(D.globalContext.window&&"location"in D.globalContext.window&&this.options.tracking&&this.currentSectionName!==e){this.currentSectionName=e,W.debug("Run section switch tracking on section",`"${this.currentSectionName}".`);try{this.onSectionSwitch.call(this,this.currentSectionName)}catch(e){W.warn("Problem due to track section switch to",`"${this.currentSectionName}": ${(0,D.represent)(e)}`)}}}_finishScrollToTopButtonTransition(e=["wu-scroll-down","wu-scroll-up"]){for(const r of null!==(t=this.scrollToTopButtonDomNodes)&&void 0!==t?t:[]){var t;r.classList.remove(...[].concat(e))}}_bindScrollEvents(){if(D.globalContext.document){for(const e of[D.globalContext.document.body,D.globalContext.document.querySelector("html"),D.globalContext.window])for(const t of this.options.knownScrollEventNames)e&&this.addSecureEventListener(e,t,(e=>{this.onSwitchToManualScrollingIndicator(e)&&(this.continueAutoScrolling=!1)}));if(D.globalContext.window&&this.addSecureEventListener(D.globalContext.window,"scroll",(e=>{D.globalContext.window?.scrollY?this.viewportIsOnTop&&(this.viewportIsOnTop=!1,this._onViewportMovesAwayFromTop().then(this.onViewportMovesAwayFromTop.bind(this,e))):this.viewportIsOnTop||(this.viewportIsOnTop=!0,this._onViewportMovesToTop(),this.onViewportMovesToTop.call(this,e))})),D.globalContext.window?.scrollY)this.viewportIsOnTop=!1,this._onViewportMovesAwayFromTop().then((()=>{this.onViewportMovesAwayFromTop.call(this)}));else{this.viewportIsOnTop=!0;for(const t of null!==(e=this.scrollToTopButtonDomNodes)&&void 0!==e?e:[]){var e;t.classList.add("wu-top-settled")}this._onViewportMovesToTop(),this.onViewportMovesToTop.call(this)}}}async _removeLoadingCover(){await(0,D.timeout)(this.options.additionalPageLoadingTimeInMilliseconds);for(const e of this.root.querySelectorAll(`[class^="${this.options.selectors.startUpAnimationClassPrefix}"], [class*=" ${this.options.selectors.startUpAnimationClassPrefix}"]`))e.style.opacity="0";this.windowLoadingCoverDomNode&&(this.enableScrolling(),await(0,D.fadeOut)(this.windowLoadingCoverDomNode))}async _performStartUpEffects(){const e=[];let t=1;for(;;){const r=this.root.querySelectorAll("."+this.options.selectors.startUpAnimationClassPrefix+String(t));if(0===r.length){await Promise.all(e),this.startUpAnimationIsComplete=!0,this.onStartUpAnimationComplete.call(this);break}await(0,D.timeout)(this.options.startUpAnimationElementDelayInMilliseconds);for(const t of r)e.push((0,D.fadeIn)(t));t+=1}}_bindNavigationEvents(){D.globalContext.window&&this.addSecureEventListener(D.globalContext.window,"hashchange",(e=>{this.startUpAnimationIsComplete&&this.onSectionSwitch.call(this,location.hash.substring(1),e)})),this._bindScrollToTopButton()}_bindScrollToTopButton(){for(const e of this.scrollToTopButtonDomNodes||[])this.addSecureEventListener(e,"click",(e=>{e.preventDefault(),this.interruptableScrollToTop()}))}_bindClickTracking(){if(this.options.tracking){for(const e of this.root.querySelectorAll("a"))this.addSecureEventListener(e,"click",this.onButtonClick.bind(this));for(const e of this.root.querySelectorAll("button"))this.addSecureEventListener(e,"click",this.onButtonClick.bind(this))}}},R._name="WebsiteUtilities",R._defaultOptions={additionalPageLoadingTimeInMilliseconds:0,domain:"auto",initialSectionName:"home",knownScrollEventNames:["DOMMouseScroll","keyup","mousedown","mousewheel","scroll","touchmove","wheel"],mediaQueryClassNameIndicator:[["extraSmall","xs"],["small","sm"],["medium","md"],["large","lg"]],selectors:{scrollToTopButtons:".wu-scroll-to-top",startUpAnimationClassPrefix:"wu-start-up-animation-number-",top:".wu-header",windowLoadingCover:".wu-window-loading-cover"},startUpAnimationElementDelayInMilliseconds:100,tracking:!1,windowLoadedTimeoutAfterDocLoadedInMSec:2e3},_=R,y=j()(_.prototype,"options",[e],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),m=j()(_.prototype,"onChangeMediaQueryMode",[t],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return D.NOOP}}),v=j()(_.prototype,"onChangeToExtraSmallMode",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return D.NOOP}}),g=j()(_.prototype,"onChangeToLargeMode",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return D.NOOP}}),w=j()(_.prototype,"onChangeToMediumMode",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return D.NOOP}}),A=j()(_.prototype,"onChangeToSmallMode",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return D.NOOP}}),T=j()(_.prototype,"onStartUpAnimationComplete",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return D.NOOP}}),P=j()(_.prototype,"onSwitchSection",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return D.NOOP}}),E=j()(_.prototype,"onViewportMovesAwayFromTop",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return D.NOOP}}),O=j()(_.prototype,"onViewportMovesToTop",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return D.NOOP}}),S=j()(_.prototype,"onSwitchToManualScrollingIndicator",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>!0}}),C=j()(_.prototype,"onLoaded",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return D.NOOP}}),x=j()(_.prototype,"onButtonClick",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return function(e){const t=e.target,r=(0,D.getText)(t).join(" ");this.onTrack({event:"buttonClick",eventType:"click",label:r,reference:t.getAttribute("action")||t.getAttribute("target")||t.getAttribute("type")||r,subject:"button",value:parseInt(t.getAttribute("website-analytics-value")||"1"),userInteraction:!0})}}}),N=j()(_.prototype,"onSectionSwitch",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return function(e,t){D.globalContext.window?.location&&this.onTrack({event:"sectionSwitch",eventType:"sectionSwitch",label:e,reference:`${D.globalContext.window.location.pathname}#${e}`,subject:"url",userInteraction:!1})}}}),k=j()(_.prototype,"onLinkClick",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return function(e){const t=e.target,r=(0,D.getText)(t).join(" ");this.onTrack({event:"linkClick",eventType:"click",label:r,reference:t.getAttribute("href")||t.getAttribute("action")||t.getAttribute("target")||t.getAttribute("type")||r,subject:"link",value:parseInt(t.getAttribute("website-analytics-value")||"1"),userInteraction:!0})}}}),L=j()(_.prototype,"onTrack",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return function(e){D.globalContext.dataLayer?.push(e)}}}),_);const F={component:z,register:(e=(0,D.camelCaseToDelimited)(z._name))=>{customElements.define(e,z)}},H=z})(),__webpack_exports__})()));