@content-blocks/js 0.4.4 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/content-accordion_11.cjs.entry.js +54 -57
- package/dist/cjs/content-accordion_11.cjs.entry.js.map +1 -1
- package/dist/cjs/content-blocks.cjs.js +3 -3
- package/dist/cjs/content-blocks.cjs.js.map +1 -1
- package/dist/cjs/content-carousel.cjs.entry.js +2 -2
- package/dist/cjs/content-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/content-navigation-block.cjs.entry.js +11 -13
- package/dist/cjs/content-navigation-block.cjs.entry.js.map +1 -1
- package/dist/cjs/content-split-block.cjs.entry.js +5 -5
- package/dist/cjs/content-split-block.cjs.entry.js.map +1 -1
- package/dist/cjs/content-tabs.cjs.entry.js +8 -6
- package/dist/cjs/content-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/{index-66c390bf.js → index-072153fb.js} +2 -12
- package/dist/cjs/index-072153fb.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-dbda9bbc.js → utils-9856e159.js} +12 -2
- package/dist/cjs/utils-9856e159.js.map +1 -0
- package/dist/cjs/{window-resize-service-35e2ab31.js → window-resize-service-77b2c64e.js} +4 -3
- package/dist/cjs/window-resize-service-77b2c64e.js.map +1 -0
- package/dist/collection/blocks/content-hero-block/content-hero-block.css +0 -4
- package/dist/collection/blocks/content-hero-block/content-hero-block.js +2 -4
- package/dist/collection/blocks/content-hero-block/content-hero-block.js.map +1 -1
- package/dist/collection/blocks/content-split-block/content-split-block.css +0 -4
- package/dist/collection/blocks/content-split-block/content-split-block.js +1 -1
- package/dist/collection/blocks/content-split-block/content-split-block.js.map +1 -1
- package/dist/collection/blocks/content-text-block/content-text-block.css +0 -4
- package/dist/collection/blocks/content-text-block/content-text-block.js +7 -7
- package/dist/collection/blocks/content-text-block/content-text-block.js.map +1 -1
- package/dist/collection/blocks/content-tout-block/content-tout-block.css +0 -6
- package/dist/collection/blocks/content-tout-block/content-tout-block.js +0 -2
- package/dist/collection/blocks/content-tout-block/content-tout-block.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/content-accordion/content-accordion.js.map +1 -1
- package/dist/collection/components/content-accordion/libraries/w3_disclosure_button.js.map +1 -1
- package/dist/collection/components/content-carousel/content-carousel.css +0 -4
- package/dist/collection/components/content-carousel/content-carousel.js +1 -1
- package/dist/collection/components/content-carousel/content-carousel.js.map +1 -1
- package/dist/collection/components/content-navigation-block/content-navigation-block.css +0 -6
- package/dist/collection/components/content-navigation-block/content-navigation-block.js +7 -9
- package/dist/collection/components/content-navigation-block/content-navigation-block.js.map +1 -1
- package/dist/collection/components/content-overlay/content-overlay.css +2 -8
- package/dist/collection/components/content-overlay/content-overlay.js +12 -9
- package/dist/collection/components/content-overlay/content-overlay.js.map +1 -1
- package/dist/collection/components/content-overlay/libraries/aria-dialog.js.map +1 -1
- package/dist/collection/components/content-overlay/libraries/aria-utilities.js.map +1 -1
- package/dist/collection/components/content-tabs/content-tabs.css +0 -4
- package/dist/collection/components/content-tabs/content-tabs.js +4 -2
- package/dist/collection/components/content-tabs/content-tabs.js.map +1 -1
- package/dist/collection/components/content-tabs/libraries/w3_tabs.js.map +1 -1
- package/dist/collection/elements/content-button/content-button.css +0 -4
- package/dist/collection/elements/content-button/content-button.js +13 -9
- package/dist/collection/elements/content-button/content-button.js.map +1 -1
- package/dist/collection/elements/content-image/content-image.css +0 -4
- package/dist/collection/elements/content-image/content-image.js +3 -3
- package/dist/collection/elements/content-image/content-image.js.map +1 -1
- package/dist/collection/elements/content-line/content-line.js +10 -14
- package/dist/collection/elements/content-line/content-line.js.map +1 -1
- package/dist/collection/elements/content-video/content-video.css +1 -5
- package/dist/collection/elements/content-video/content-video.js +1 -1
- package/dist/collection/elements/content-video/content-video.js.map +1 -1
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.css +0 -4
- package/dist/collection/formatters/content-spacer/content-spacer.css +0 -3
- package/dist/collection/formatters/content-spacer/content-spacer.js +1 -1
- package/dist/collection/formatters/content-spacer/content-spacer.js.map +1 -1
- package/dist/collection/services/content-events-service.js.map +1 -1
- package/dist/collection/services/window-resize-service.js +2 -1
- package/dist/collection/services/window-resize-service.js.map +1 -1
- package/dist/collection/stories/ContentHeroBlock.stories.js +22 -18
- package/dist/collection/stories/ContentHeroBlock.stories.js.map +1 -1
- package/dist/collection/stories/ContentNavigationBlock.stories.js +26 -0
- package/dist/collection/stories/ContentNavigationBlock.stories.js.map +1 -0
- package/dist/collection/stories/ContentSpacer.stories.js +20 -0
- package/dist/collection/stories/ContentSpacer.stories.js.map +1 -0
- package/dist/collection/stories/ContentTextBlock.stories.js +17 -0
- package/dist/collection/stories/ContentTextBlock.stories.js.map +1 -0
- package/dist/collection/stories/ContentToutBlock.stories.js +17 -0
- package/dist/collection/stories/ContentToutBlock.stories.js.map +1 -0
- package/dist/collection/stories/FullPageExample.stories.js +482 -0
- package/dist/collection/stories/FullPageExample.stories.js.map +1 -0
- package/dist/collection/utils/utils.js +9 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/content-button.js +14 -10
- package/dist/components/content-button.js.map +1 -1
- package/dist/components/content-carousel.js +1 -1
- package/dist/components/content-carousel.js.map +1 -1
- package/dist/components/content-grid-formatter2.js +1 -1
- package/dist/components/content-grid-formatter2.js.map +1 -1
- package/dist/components/content-hero-block.js +2 -4
- package/dist/components/content-hero-block.js.map +1 -1
- package/dist/components/content-image.js +4 -4
- package/dist/components/content-image.js.map +1 -1
- package/dist/components/content-line.js +8 -12
- package/dist/components/content-line.js.map +1 -1
- package/dist/components/content-navigation-block.js +8 -10
- package/dist/components/content-navigation-block.js.map +1 -1
- package/dist/components/content-overlay.js +13 -10
- package/dist/components/content-overlay.js.map +1 -1
- package/dist/components/content-spacer.js +2 -2
- package/dist/components/content-spacer.js.map +1 -1
- package/dist/components/content-split-block.js +2 -2
- package/dist/components/content-split-block.js.map +1 -1
- package/dist/components/content-tabs.js +5 -3
- package/dist/components/content-tabs.js.map +1 -1
- package/dist/components/content-text-block.js +8 -8
- package/dist/components/content-text-block.js.map +1 -1
- package/dist/components/content-tout-block.js +1 -3
- package/dist/components/content-tout-block.js.map +1 -1
- package/dist/components/content-video.js +1 -1
- package/dist/components/content-video.js.map +1 -1
- package/dist/components/utils.js +11 -1
- package/dist/components/utils.js.map +1 -1
- package/dist/components/window-resize-service.js +2 -1
- package/dist/components/window-resize-service.js.map +1 -1
- package/dist/content-blocks/content-blocks.esm.js +1 -1
- package/dist/content-blocks/content-blocks.esm.js.map +1 -1
- package/dist/content-blocks/index.esm.js +1 -1
- package/dist/content-blocks/p-2c515f18.entry.js +2 -0
- package/dist/content-blocks/p-2c515f18.entry.js.map +1 -0
- package/dist/content-blocks/p-2faf0c78.js +3 -0
- package/dist/content-blocks/p-2faf0c78.js.map +1 -0
- package/dist/content-blocks/{p-3d21ae2b.entry.js → p-30ab003a.entry.js} +2 -2
- package/dist/content-blocks/p-30ab003a.entry.js.map +1 -0
- package/dist/content-blocks/{p-451e7694.js → p-3b4b9ad1.js} +2 -2
- package/dist/content-blocks/p-3b4b9ad1.js.map +1 -0
- package/dist/content-blocks/p-b8009321.entry.js +10 -0
- package/dist/content-blocks/p-b8009321.entry.js.map +1 -0
- package/dist/content-blocks/{p-070bc93d.js → p-da2c36ea.js} +2 -2
- package/dist/content-blocks/p-da2c36ea.js.map +1 -0
- package/dist/content-blocks/p-ebaee21f.entry.js +2 -0
- package/dist/content-blocks/p-ebaee21f.entry.js.map +1 -0
- package/dist/content-blocks/p-fd14acd9.entry.js +2 -0
- package/dist/content-blocks/p-fd14acd9.entry.js.map +1 -0
- package/dist/esm/content-accordion_11.entry.js +54 -57
- package/dist/esm/content-accordion_11.entry.js.map +1 -1
- package/dist/esm/content-blocks.js +4 -4
- package/dist/esm/content-blocks.js.map +1 -1
- package/dist/esm/content-carousel.entry.js +2 -2
- package/dist/esm/content-carousel.entry.js.map +1 -1
- package/dist/esm/content-navigation-block.entry.js +11 -13
- package/dist/esm/content-navigation-block.entry.js.map +1 -1
- package/dist/esm/content-split-block.entry.js +5 -5
- package/dist/esm/content-split-block.entry.js.map +1 -1
- package/dist/esm/content-tabs.entry.js +8 -6
- package/dist/esm/content-tabs.entry.js.map +1 -1
- package/dist/esm/{index-2674652b.js → index-5c31f78b.js} +2 -12
- package/dist/esm/index-5c31f78b.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-72b3a8bd.js → utils-4f29a9cf.js} +12 -2
- package/dist/esm/utils-4f29a9cf.js.map +1 -0
- package/dist/esm/{window-resize-service-8419bd19.js → window-resize-service-332e7420.js} +4 -3
- package/dist/esm/window-resize-service-332e7420.js.map +1 -0
- package/dist/types/blocks/content-hero-block/content-hero-block.d.ts +0 -1
- package/dist/types/blocks/content-split-block/content-split-block.d.ts +1 -1
- package/dist/types/blocks/content-text-block/content-text-block.d.ts +1 -1
- package/dist/types/blocks/content-tout-block/content-tout-block.d.ts +0 -1
- package/dist/types/components/content-navigation-block/content-navigation-block.d.ts +2 -2
- package/dist/types/components/content-overlay/content-overlay.d.ts +1 -2
- package/dist/types/components/content-tabs/content-tabs.d.ts +1 -0
- package/dist/types/elements/content-button/content-button.d.ts +1 -1
- package/dist/types/elements/content-image/content-image.d.ts +1 -1
- package/dist/types/elements/content-line/content-line.d.ts +1 -1
- package/dist/types/formatters/content-spacer/content-spacer.d.ts +1 -1
- package/dist/types/stories/ContentHeroBlock.stories.d.ts +4 -5
- package/dist/types/stories/ContentNavigationBlock.stories.d.ts +11 -0
- package/dist/types/stories/ContentSpacer.stories.d.ts +15 -0
- package/dist/types/stories/ContentTextBlock.stories.d.ts +15 -0
- package/dist/types/stories/ContentToutBlock.stories.d.ts +9 -0
- package/dist/types/stories/FullPageExample.stories.d.ts +10 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +6 -3
- package/dist/cjs/index-66c390bf.js.map +0 -1
- package/dist/cjs/utils-dbda9bbc.js.map +0 -1
- package/dist/cjs/window-resize-service-35e2ab31.js.map +0 -1
- package/dist/content-blocks/p-070bc93d.js.map +0 -1
- package/dist/content-blocks/p-171693ef.js +0 -3
- package/dist/content-blocks/p-171693ef.js.map +0 -1
- package/dist/content-blocks/p-3d21ae2b.entry.js.map +0 -1
- package/dist/content-blocks/p-3e27514e.entry.js +0 -10
- package/dist/content-blocks/p-3e27514e.entry.js.map +0 -1
- package/dist/content-blocks/p-451e7694.js.map +0 -1
- package/dist/content-blocks/p-6ddbb176.entry.js +0 -2
- package/dist/content-blocks/p-6ddbb176.entry.js.map +0 -1
- package/dist/content-blocks/p-a78f9c91.entry.js +0 -2
- package/dist/content-blocks/p-a78f9c91.entry.js.map +0 -1
- package/dist/content-blocks/p-dac292e3.entry.js +0 -2
- package/dist/content-blocks/p-dac292e3.entry.js.map +0 -1
- package/dist/esm/index-2674652b.js.map +0 -1
- package/dist/esm/utils-72b3a8bd.js.map +0 -1
- package/dist/esm/window-resize-service-8419bd19.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"content-video.js","mappings":";;;;AAAA,MAAM,eAAe,GAAG,sr9CAAsr9C;;MCmBjs9CA,cAAY;;;;sBASiB,SAAS;wBAKrB,KAAK;mBAKX,EAAE;qBAIA,EAAE;sBAID,CAAC;oBAIH,WAAW;mCAII,MAAM;;;wBAchB,IAAI;uBAIN,UAAU;4BAUH,OAAO;wBACX,KAAK;yBACJ,KAAK;wBACN,KAAK;;IAElC,mBAAmB;QACjB,IAAI,WAAW,GAAG,EAAE,CAAC;QACrB,WAAW,GAAG;YACZ,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,MAAM;YACnD,KAAK,EAAE,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,OAAO;YACrD,QAAQ,EAAE,IAAI,CAAC,QAAQ,KAAK,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EAAE,EAAE,IAAI,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,IAC9G,YAAM,IAAI,EAAC,YAAY,GAAQ,CACxB,CACV,EACD,WAAK,KAAK,EAAC,wBAAwB,IAChC,CAAC,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,QAAQ,MAChC,aACE,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,EAC7C,KAAK,EAAC,kCAAkC,EACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,WAAW,EAAC,WAAW,gBACX,IAAI,CAAC,mBAAmB,EAAE,IAEtC,YAAM,IAAI,EAAC,eAAe,GAAQ,EAClC,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACP,CACT,CACG,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentVideo"],"sources":["src/elements/content-video/content-video.scss?tag=content-video","src/elements/content-video/content-video.tsx"],"sourcesContent":["@import \"'~video.js/dist/video-js.min.css\";\ncontent-video {\n display: block;\n width: 100%;\n position: relative;\n visibility: hidden;\n &.hydrated {\n visibility: inherit;\n height: 100%;\n &.content-video--fit-container {\n .video-js.vjs-fluid {\n height: 100%;\n padding: 0; // remove padding aspect ratio hack\n }\n }\n }\n &[fit-container=\"true\"] {\n height: 100%;\n }\n\n .content-video__content {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .content-video__poster {\n position: relative;\n }\n .content-video__play {\n cursor: pointer;\n appearance: none;\n border: none;\n background: transparent;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1;\n\n &:before {\n content: '\\25BA';\n font-size: 100px;\n }\n }\n \n .vjs-content-block-theme {\n &.video-js {\n width: 100%;\n height: 100%;\n\n video.vjs-tech {\n position: static;\n }\n }\n &.vjs-ended,\n &.vjs-waiting {\n .vjs-loading-spinner { \n display: none;\n }\n }\n &:hover,\n &:focus {\n &:not(:focus-visible) {\n // background: transparent;\n }\n .vjs-big-play-button {\n background-color: transparent;\n }\n }\n .vjs-big-play-button {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: none;\n background: transparent;\n .vjs-icon-placeholder {\n display: block;\n width: 100%;\n height: 100%;\n &:before {\n display: none;\n }\n }\n }\n }\n\n .vjs-poster {\n display: none;\n }\n}","import { Component, h, Host } from '@stencil/core';\nimport { Element, HTMLStencilElement, Prop, State } from '@stencil/core/internal';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ResponsiveString } from '../../typings';\nimport { getCurrentValue, getHydratedClassString } from '../../utils/utils';\nexport type SupportedVideoMethods = 'html5' | 'youtube';\n\n/**\n * @slot poster - Poster shown before video is played.\n * @slot playButton - Play button contents.\n * @slot no-js-message - Contents of no JS message.\n * @slot content - Adjacent to no-js message for video. Usually not needed.\n * @slot - Default slot, same as content slot.\n */\n@Component({\n tag: 'content-video',\n styleUrls: ['content-video.scss'],\n shadow: false,\n})\nexport class ContentVideo {\n public player: any;\n videoElement!: HTMLVideoElement;\n @Element() hostElement: HTMLStencilElement;\n /**\n * @type Select\n * @options youtube\n * @options html5\n */\n @Prop() method: SupportedVideoMethods = 'youtube';\n /**\n * If you're using this inside a content-overlay for example, you may want the video to play immediately on launch.\n * @type Boolean\n */\n @Prop() autoplay: boolean = false;\n /**\n * Supports YouTube and self hosted URLs.\n * @type String\n */\n @Prop() src: string = '';\n /**\n * @type Number\n */\n @Prop() width: number = 16;\n /**\n * @type Number\n */\n @Prop() height: number = 9;\n /**\n * @type String\n */\n @Prop() type: string = 'video/mp4';\n /**\n * @type String\n */\n @Prop() playButtonAriaLabel: string = 'Play';\n /**\n * @type String\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n classes: ResponsiveString;\n @State() classString;\n /**\n * @type Boolean\n */\n @Prop() controls: boolean = true;\n /**\n * @type String\n */\n @Prop() preload: string = 'metadata';\n /**\n * Fit the container this video is placed in. When the video is used in an overlay or another place where the video will takeover the existing height, it is recommended to enable this option.\n * @responsive\n * @type String\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n fitContainer: ResponsiveString = 'false';\n @State() isLoaded: boolean = false;\n @State() hasPoster: boolean = false;\n @State() isPlayed: boolean = false;\n\n computedVideoConfig() {\n let videoConfig = {};\n videoConfig = {\n fill: getCurrentValue(this.fitContainer) === 'true',\n fluid: getCurrentValue(this.fitContainer) === 'false',\n autoplay: this.autoplay === true ? 'muted' : false,\n techOrder: ['youtube'],\n src: this.src,\n sources: [\n {\n type: 'video/youtube',\n src: this.src,\n },\n ],\n youtube: {\n showinfo: 0,\n rel: 0,\n modestbranding: 1,\n },\n };\n return videoConfig;\n }\n\n initVideo() {\n this.isLoaded = true;\n }\n\n componentWillLoad() {\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue));\n }\n\n componentDidLoad() {\n let self = this;\n let options = {\n root: null,\n rootMargin: '0px',\n threshold: 0.1,\n };\n\n let observer = new IntersectionObserver(entries => {\n let videojs;\n entries.forEach(async entry => {\n if (entry.isIntersecting) {\n if (!videojs) {\n videojs = await import('video.js');\n await import('videojs-youtube/dist/Youtube.js');\n }\n this.hasPoster = !!this.hostElement.querySelector('[slot=\"poster\"]');\n if (this.videoElement && !this.player) {\n this.player = videojs.default(this.videoElement, this.computedVideoConfig(), function onPlayerReady() {\n self.initVideo();\n if (self.hasPoster || self.autoplay) {\n self.isPlayed = true;\n setTimeout(() => this.play(), 1);\n }\n });\n }\n }\n });\n }, options);\n observer.observe(this.hostElement);\n }\n\n onClickHandler(event: MouseEvent) {\n event.preventDefault();\n if (!this.isLoaded) {\n return false;\n }\n this.initVideo();\n this.isPlayed = true;\n this.player.play();\n if (this.method === 'html5') {\n this.videoElement.play();\n }\n }\n\n render() {\n let showPlayButton = !this.autoplay && ((this.hasPoster && !this.isPlayed) || !this.isPlayed);\n return (\n <Host class={this.classString}>\n {this.hasPoster && !this.isLoaded && (\n <div class=\"content-video__poster\">\n <slot name=\"poster\"></slot>\n </div>\n )}\n {showPlayButton && (\n <button class=\"content-video__play\" aria-label={this.playButtonAriaLabel} onClick={ev => this.onClickHandler(ev)}>\n <slot name=\"playButton\"></slot>\n </button>\n )}\n <div class=\"content-video__content\">\n {(!this.hasPoster || this.isLoaded) && (\n <video\n ref={element => (this.videoElement = element)}\n class=\"video-js vjs-content-block-theme\"\n controls={this.controls}\n preload={this.preload}\n width={this.width}\n height={this.height}\n crossorigin=\"anonymous\"\n data-setup={this.computedVideoConfig()}\n >\n <slot name=\"no-js-message\"></slot>\n <slot name=\"content\"></slot>\n <slot></slot>\n </video>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"content-video.js","mappings":";;;;AAAA,MAAM,eAAe,GAAG,in9CAAin9C;;MCmB5n9CA,cAAY;;;;sBASiB,SAAS;wBAKrB,KAAK;mBAKX,EAAE;qBAIA,EAAE;sBAID,CAAC;oBAIH,WAAW;mCAII,MAAM;;;wBAchB,IAAI;uBAIN,UAAU;4BAUH,OAAO;wBACX,KAAK;yBACJ,KAAK;wBACN,KAAK;;IAElC,mBAAmB;QACjB,IAAI,WAAW,GAAG,EAAE,CAAC;QACrB,WAAW,GAAG;YACZ,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,MAAM;YACnD,KAAK,EAAE,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,OAAO;YACrD,QAAQ,EAAE,IAAI,CAAC,QAAQ,KAAK,IAAI,GAAG,OAAO,GAAG,KAAK;YAClD,SAAS,EAAE,CAAC,SAAS,CAAC;YACtB,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,eAAe;oBAC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IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,QAAQ,MAChC,aACE,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,EAC7C,KAAK,EAAC,kCAAkC,EACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,WAAW,EAAC,WAAW,gBACX,IAAI,CAAC,mBAAmB,EAAE,IAEtC,YAAM,IAAI,EAAC,eAAe,GAAQ,EAClC,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACP,CACT,CACG,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentVideo"],"sources":["src/elements/content-video/content-video.scss?tag=content-video","src/elements/content-video/content-video.tsx"],"sourcesContent":["@import \"'~video.js/dist/video-js.min.css\";\ncontent-video {\n display: block;\n width: 100%;\n position: relative;\n // &.hydrated {\n // height: 100%;\n // &.content-video--fit-container {\n // .video-js.vjs-fluid {\n // height: 100%;\n // padding: 0; // remove padding aspect ratio hack\n // }\n // }\n // }\n\n height: 100%;\n\n &.content-video--fit-container {\n .video-js.vjs-fluid {\n height: 100%;\n padding: 0; // remove padding aspect ratio hack\n }\n }\n \n &[fit-container='true'] {\n height: 100%;\n }\n\n .content-video__content {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .content-video__poster {\n position: relative;\n }\n .content-video__play {\n cursor: pointer;\n appearance: none;\n border: none;\n background: transparent;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1;\n\n &:before {\n content: '\\25BA';\n font-size: 100px;\n }\n }\n\n .vjs-content-block-theme {\n &.video-js {\n width: 100%;\n height: 100%;\n\n video.vjs-tech {\n position: static;\n }\n }\n &.vjs-ended,\n &.vjs-waiting {\n .vjs-loading-spinner {\n display: none;\n }\n }\n &:hover,\n &:focus {\n &:not(:focus-visible) {\n // background: transparent;\n }\n .vjs-big-play-button {\n background-color: transparent;\n }\n }\n .vjs-big-play-button {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: none;\n background: transparent;\n .vjs-icon-placeholder {\n display: block;\n width: 100%;\n height: 100%;\n &:before {\n display: none;\n }\n }\n }\n }\n\n .vjs-poster {\n display: none;\n }\n}\n","import { Component, h, Host } from '@stencil/core';\nimport { Element, HTMLStencilElement, Prop, State } from '@stencil/core/internal';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ResponsiveString } from '../../typings';\nimport { getCurrentValue, getHydratedClassString } from '../../utils/utils';\nexport type SupportedVideoMethods = 'html5' | 'youtube';\n\n/**\n * @slot poster - Poster shown before video is played.\n * @slot playButton - Play button contents.\n * @slot no-js-message - Contents of no JS message.\n * @slot content - Adjacent to no-js message for video. Usually not needed.\n * @slot - Default slot, same as content slot.\n */\n@Component({\n tag: 'content-video',\n styleUrls: ['content-video.scss'],\n shadow: false,\n})\nexport class ContentVideo {\n public player: any;\n videoElement!: HTMLVideoElement;\n @Element() hostElement: HTMLStencilElement;\n /**\n * @type Select\n * @options youtube\n * @options html5\n */\n @Prop() method: SupportedVideoMethods = 'youtube';\n /**\n * If you're using this inside a content-overlay for example, you may want the video to play immediately on launch.\n * @type Boolean\n */\n @Prop() autoplay: boolean = false;\n /**\n * Supports YouTube and self hosted URLs.\n * @type String\n */\n @Prop() src: string = '';\n /**\n * @type Number\n */\n @Prop() width: number = 16;\n /**\n * @type Number\n */\n @Prop() height: number = 9;\n /**\n * @type String\n */\n @Prop() type: string = 'video/mp4';\n /**\n * @type String\n */\n @Prop() playButtonAriaLabel: string = 'Play';\n /**\n * @type String\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n classes: ResponsiveString;\n @State() classString;\n /**\n * @type Boolean\n */\n @Prop() controls: boolean = true;\n /**\n * @type String\n */\n @Prop() preload: string = 'metadata';\n /**\n * Fit the container this video is placed in. When the video is used in an overlay or another place where the video will takeover the existing height, it is recommended to enable this option.\n * @responsive\n * @type String\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n fitContainer: ResponsiveString = 'false';\n @State() isLoaded: boolean = false;\n @State() hasPoster: boolean = false;\n @State() isPlayed: boolean = false;\n\n computedVideoConfig() {\n let videoConfig = {};\n videoConfig = {\n fill: getCurrentValue(this.fitContainer) === 'true',\n fluid: getCurrentValue(this.fitContainer) === 'false',\n autoplay: this.autoplay === true ? 'muted' : false,\n techOrder: ['youtube'],\n src: this.src,\n sources: [\n {\n type: 'video/youtube',\n src: this.src,\n },\n ],\n youtube: {\n showinfo: 0,\n rel: 0,\n modestbranding: 1,\n },\n };\n return videoConfig;\n }\n\n initVideo() {\n this.isLoaded = true;\n }\n\n componentWillLoad() {\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue));\n }\n\n componentDidLoad() {\n let self = this;\n let options = {\n root: null,\n rootMargin: '0px',\n threshold: 0.1,\n };\n\n let observer = new IntersectionObserver(entries => {\n let videojs;\n entries.forEach(async entry => {\n if (entry.isIntersecting) {\n if (!videojs) {\n videojs = await import('video.js');\n await import('videojs-youtube/dist/Youtube.js');\n }\n this.hasPoster = !!this.hostElement.querySelector('[slot=\"poster\"]');\n if (this.videoElement && !this.player) {\n this.player = videojs.default(this.videoElement, this.computedVideoConfig(), function onPlayerReady() {\n self.initVideo();\n if (self.hasPoster || self.autoplay) {\n self.isPlayed = true;\n setTimeout(() => this.play(), 1);\n }\n });\n }\n }\n });\n }, options);\n observer.observe(this.hostElement);\n }\n\n onClickHandler(event: MouseEvent) {\n event.preventDefault();\n if (!this.isLoaded) {\n return false;\n }\n this.initVideo();\n this.isPlayed = true;\n this.player.play();\n if (this.method === 'html5') {\n this.videoElement.play();\n }\n }\n\n render() {\n let showPlayButton = !this.autoplay && ((this.hasPoster && !this.isPlayed) || !this.isPlayed);\n return (\n <Host class={this.classString}>\n {this.hasPoster && !this.isLoaded && (\n <div class=\"content-video__poster\">\n <slot name=\"poster\"></slot>\n </div>\n )}\n {showPlayButton && (\n <button class=\"content-video__play\" aria-label={this.playButtonAriaLabel} onClick={ev => this.onClickHandler(ev)}>\n <slot name=\"playButton\"></slot>\n </button>\n )}\n <div class=\"content-video__content\">\n {(!this.hasPoster || this.isLoaded) && (\n <video\n ref={element => (this.videoElement = element)}\n class=\"video-js vjs-content-block-theme\"\n controls={this.controls}\n preload={this.preload}\n width={this.width}\n height={this.height}\n crossorigin=\"anonymous\"\n data-setup={this.computedVideoConfig()}\n >\n <slot name=\"no-js-message\"></slot>\n <slot name=\"content\"></slot>\n <slot></slot>\n </video>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
package/dist/components/utils.js
CHANGED
|
@@ -85,6 +85,15 @@ function getHydratedClassString(classString) {
|
|
|
85
85
|
}
|
|
86
86
|
return 'hydrated';
|
|
87
87
|
}
|
|
88
|
+
function objectToCssString(object) {
|
|
89
|
+
let string = '';
|
|
90
|
+
for (var key in object) {
|
|
91
|
+
if (object[key].length > 0 && !['px', '%'].includes(object[key])) {
|
|
92
|
+
string += `${key}: ${object[key]};`;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return string;
|
|
96
|
+
}
|
|
88
97
|
|
|
89
98
|
const utils = /*#__PURE__*/Object.freeze({
|
|
90
99
|
__proto__: null,
|
|
@@ -98,7 +107,8 @@ const utils = /*#__PURE__*/Object.freeze({
|
|
|
98
107
|
getCurrentBreakpointIndex: getCurrentBreakpointIndex,
|
|
99
108
|
getCurrentValue: getCurrentValue,
|
|
100
109
|
getValueAtIndex: getValueAtIndex,
|
|
101
|
-
getHydratedClassString: getHydratedClassString
|
|
110
|
+
getHydratedClassString: getHydratedClassString,
|
|
111
|
+
objectToCssString: objectToCssString
|
|
102
112
|
});
|
|
103
113
|
|
|
104
114
|
export { getCurrentValue as a, breakpointValues as b, getValueAtIndex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C,WAAmB;IACxD,IAAI,aAAa,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,CAAC;IACxD,IAAI,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;QACtC,OAAO,aAAa,CAAC,IAAI,EAAE,CAAC;KAC7B;IACD,IAAI,aAAa,EAAE;QACjB,OAAO,aAAa,CAAC,IAAI,EAAE,GAAG,WAAW,CAAC;KAC3C;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;SAEe,iBAAiB,CAAC,MAAc;IAC9C,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE;QACtB,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;YAChE,MAAM,IAAI,GAAG,GAAG,KAAK,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC;SACrC;KACF;IACD,OAAO,MAAM,CAAC;AAChB;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/utils/utils.ts"],"sourcesContent":["import { ResponsiveString } from \"../typings\";\n\nexport const breakpoints = ['mobile', 'tablet-portrait', 'tablet-landscape', 'tablet-pro', 'desktop-large', 'desktop-wide'];\nexport const breakpointLabels = ['Mobile', 'Tablet (Portrait)', 'Tablet (Landscape)', 'iPad Pro', 'Desktop Large', 'Desktop Wide'];\nexport const breakpointValues = [0,768,1024,1366,1440,1920];\n\nexport function getBreakpointValues() {\n return breakpointValues;\n}\nexport function insertCssIntoHead(document: Document, fontCssUrl: string) {\n let element = document.querySelector(`link[href=\"${fontCssUrl}\"]`);\n // Only inject the element if it's not yet present\n if (!element) {\n element = document.createElement('link');\n element.setAttribute('rel', 'stylesheet');\n element.setAttribute('href', fontCssUrl);\n document.head.prepend(element);\n }\n}\n\nexport function generateResponsiveClass(classPrefix: string, responsiveValue: string) {\n let index = -1;\n let classString = '';\n responsiveValue.split('|').forEach(value => {\n index++;\n if (!value || value === 'false') {\n return false;\n }\n classString += ` ${classPrefix}-${breakpoints[index]}-${value}`\n });\n return classString;\n}\n\n// Fills in default value if none exists for a breakpoint\nexport function generateResponsiveValues(responsiveValue: string): string[] {\n if (!responsiveValue) {\n return [];\n }\n let responseArray = [];\n let splitResponsiveValues = responsiveValue.split('|');\n let lastGoodValue = splitResponsiveValues[0];\n breakpointValues.forEach((_value, index) => {\n let thisBreakpointValue = splitResponsiveValues[index];\n if (thisBreakpointValue) {\n lastGoodValue = thisBreakpointValue;\n }\n responseArray.push(thisBreakpointValue ? thisBreakpointValue : lastGoodValue);\n });\n return responseArray;\n}\n\nexport function getCurrentBreakpointIndex(): number {\n let activeBreakpointIndex: number = 0;\n let windowWidth = window.innerWidth;\n breakpointValues.some((width) => {\n // The first time this is true will end the loop\n let condition = width > windowWidth;\n if (!condition) {\n activeBreakpointIndex = breakpointValues.indexOf(width);\n }\n return condition;\n });\n return activeBreakpointIndex;\n}\n\nexport function getCurrentValue(responsiveValue: string|boolean): string {\n if (!responsiveValue) {\n return '';\n }\n let currentBreakpoint = getCurrentBreakpointIndex();\n let responsiveValues = generateResponsiveValues(responsiveValue.toString());\n let returnValue: string;\n for (var i = currentBreakpoint; i >= 0; i--) {\n if (responsiveValues[i]) {\n returnValue = responsiveValues[i];\n i = -1;\n }\n }\n return returnValue;\n}\n\nexport function getValueAtIndex(index: number, responsiveValue: ResponsiveString): string {\n let responsiveValues = generateResponsiveValues(responsiveValue.toString());\n return responsiveValues[index].trim();\n}\n\nexport function getHydratedClassString(classString: string): string {\n let cleanedString = getCurrentValue(classString).trim();\n if (cleanedString.includes('hydrated')) {\n return cleanedString.trim();\n }\n if (cleanedString) {\n return cleanedString.trim() + ' hydrated';\n }\n return 'hydrated';\n}\n\nexport function objectToCssString(object: object): string {\n let string = '';\n for (var key in object) {\n if (object[key].length > 0 && !['px', '%'].includes(object[key])) {\n string += `${key}: ${object[key]};`;\n }\n }\n return string;\n}"],"version":3}
|
|
@@ -22,7 +22,8 @@ class WindowResizeController {
|
|
|
22
22
|
return new Observable(observer => {
|
|
23
23
|
observer.next(getCurrentValue(activePropValue));
|
|
24
24
|
this.breakpointIndex$.subscribe(() => {
|
|
25
|
-
|
|
25
|
+
let nextValue = getCurrentValue(activePropValue);
|
|
26
|
+
observer.next(nextValue);
|
|
26
27
|
});
|
|
27
28
|
});
|
|
28
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"window-resize-service.js","mappings":";;;AAIA,MAAM,sBAAsB;;IAK1B;QAJA,sBAAiB,GAAG,yBAAyB,EAAE,CAAC;QAChD,qBAAgB,GAA4B,IAAI,eAAe,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAKtF,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,QAAQ;YAChD,IAAI,IAAI,CAAC,aAAa,EAAE;gBACtB,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aAClC;YACD,IAAI,WAAW,GAAG,yBAAyB,EAAE,CAAC;YAC9C,IAAI,IAAI,CAAC,gBAAgB,CAAC,KAAK,KAAK,WAAW,EAAE;gBAC/C,OAAO,KAAK,CAAC;aACd;YACD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SACzC,CAAC,CAAC;QAEH,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;KAC9C;IAED,YAAY,CAAC,eAAe;QAC1B,OAAO,IAAI,UAAU,CAAC,QAAQ;YAC5B,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,CAAC;YAChD,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC;gBAC9B,
|
|
1
|
+
{"file":"window-resize-service.js","mappings":";;;AAIA,MAAM,sBAAsB;;IAK1B;QAJA,sBAAiB,GAAG,yBAAyB,EAAE,CAAC;QAChD,qBAAgB,GAA4B,IAAI,eAAe,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAKtF,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,QAAQ;YAChD,IAAI,IAAI,CAAC,aAAa,EAAE;gBACtB,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aAClC;YACD,IAAI,WAAW,GAAG,yBAAyB,EAAE,CAAC;YAC9C,IAAI,IAAI,CAAC,gBAAgB,CAAC,KAAK,KAAK,WAAW,EAAE;gBAC/C,OAAO,KAAK,CAAC;aACd;YACD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SACzC,CAAC,CAAC;QAEH,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;KAC9C;IAED,YAAY,CAAC,eAAe;QAC1B,OAAO,IAAI,UAAU,CAAC,QAAQ;YAC5B,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,CAAC;YAChD,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC;gBAC9B,IAAI,SAAS,GAAG,eAAe,CAAC,eAAe,CAAC,CAAC;gBACjD,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aAC1B,CAAC,CAAC;SACJ,CAAC,CAAC;KACJ;CACF;MAEY,mBAAmB,GAAG,IAAI,sBAAsB;;;;","names":[],"sources":["src/services/window-resize-service.ts"],"sourcesContent":["import { BehaviorSubject, Observable } from \"rxjs\";\nimport { getCurrentBreakpointIndex, getCurrentValue } from \"../utils/utils\";\nimport _ from 'underscore';\n\nclass WindowResizeController {\n currentBreakpoint = getCurrentBreakpointIndex();\n breakpointIndex$: BehaviorSubject<number> = new BehaviorSubject(this.currentBreakpoint);\n timeoutHolder: number;\n // timeoutHolder: Timeout;\n constructor() {\n\n const resizeObserver = new ResizeObserver(_entries => {\n if (this.timeoutHolder) {\n clearTimeout(this.timeoutHolder);\n }\n let activeValue = getCurrentBreakpointIndex();\n if (this.breakpointIndex$.value === activeValue) {\n return false;\n }\n this.breakpointIndex$.next(activeValue);\n });\n\n resizeObserver.observe(window.document.body);\n }\n \n registerProp(activePropValue): Observable<string|boolean|number> {\n return new Observable(observer => {\n observer.next(getCurrentValue(activePropValue));\n this.breakpointIndex$.subscribe(() => {\n let nextValue = getCurrentValue(activePropValue);\n observer.next(nextValue);\n });\n });\n }\n}\n\nexport const WindowResizeService = new WindowResizeController();"],"version":3}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as t,b as e}from"./p-
|
|
1
|
+
import{p as t,b as e}from"./p-2faf0c78.js";export{s as setNonce}from"./p-2faf0c78.js";const n=()=>{const e=import.meta.url;const n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return t(n)};n().then((t=>e([["p-fd14acd9",[[4,"content-split-block",{reverse:[1544],columns:[1],classes:[1537],classString:[32]}]]],["p-30ab003a",[[4,"content-carousel",{initMethod:[1,"init-method"],swiperOptions:[1,"swiper-options"]},[[0,"setSwiperOptions","setSwiperOptionsCallback"]]]]],["p-ebaee21f",[[4,"content-navigation-block",{hamburger:[1537],classes:[1537],classString:[32],ariaExpanded:[32],bodyToggle:[32]}]]],["p-2c515f18",[[4,"content-tabs",{classes:[1537],classString:[32]}]]],["p-b8009321",[[4,"content-accordion",{open:[1],animationStart:[1,"animation-start"],animationEnd:[1,"animation-end"],animationTime:[2,"animation-time"],revealElement:[32],isOpen:[32],randomID:[32],classString:[32]}],[4,"content-button",{href:[1537],target:[1],classes:[1],clickableBlock:[4,"clickable-block"],expanded:[1537],controls:[1],linkLabel:[1,"link-label"],linkClass:[1537,"link-class"],classString:[32],hasContentToActivate:[32]}],[4,"content-hero-block",{contentPosition:[1537,"content-position"],classes:[1],hasBackground:[32],classString:[32],revealHiddenContent:[32]},[[8,"contentBlockActivated","contentBlockActivationHandler"]]],[4,"content-image",{classes:[1537],lazyLoad:[4,"lazy-load"],src:[1025],alt:[1537],width:[1025],height:[1025],videoType:[1,"video-type"],showContent:[1537,"show-content"],activeSrc:[32],lazyLoadIsComplete:[32],showVideoAsGif:[32],activeLazyLoadClass:[32],classString:[32],inlineStyle:[32],hasMediaContent:[32]},null,{lazyLoadIsComplete:["watchLazyLoadIsComplete"]}],[4,"content-line",{tag:[1],textAlign:[1,"text-align"],classes:[8],maxWidth:[1,"max-width"],classString:[32],inlineStyle:[32]}],[4,"content-overlay",{target:[1],open:[1537],fullScreen:[1,"full-screen"],classes:[1],horizontalAlignment:[1537,"horizontal-alignment"],verticalAlignment:[1537,"vertical-alignment"],closeTitle:[1,"close-title"],isActive:[32],activeClass:[32],classString:[32],contentSlot:[32],isFullScreen:[32],openOverlay:[64],closeOverlay:[64]},[[0,"contentBlockActivated","onContentBlockActivated"]]],[4,"content-spacer",{classes:[1],maxWidth:[1,"max-width"],fullHeight:[1537,"full-height"],textAlign:[1537,"text-align"],horizontalPosition:[1537,"horizontal-position"],topOffset:[1,"top-offset"],bottomOffset:[1,"bottom-offset"],leftOffset:[1,"left-offset"],rightOffset:[1,"right-offset"],classString:[32],inlineStyle:[32]}],[4,"content-text-block",{classes:[1],minHeight:[1537,"min-height"],verticalAlignment:[1537,"vertical-alignment"],fullHeight:[1537,"full-height"],textAlign:[1537,"text-align"],classString:[32],inlineStyle:[32]}],[4,"content-tout-block",{hover:[1537],classes:[1],classString:[32],hasHoverContent:[32]}],[4,"content-video",{method:[1],autoplay:[4],src:[1],width:[2],height:[2],type:[1],playButtonAriaLabel:[1,"play-button-aria-label"],classes:[1537],controls:[4],preload:[1],fitContainer:[1537,"fit-container"],classString:[32],isLoaded:[32],hasPoster:[32],isPlayed:[32]}],[4,"content-grid-formatter",{classes:[1],type:[1537],flexGrow:[1537,"flex-grow"],flexShrink:[1537,"flex-shrink"],verticalAlignment:[1537,"vertical-alignment"],horizontalAlignment:[1537,"horizontal-alignment"],columns:[1537],classString:[32],activeClassString:[32],inlineStyle:[32]}]]]],t)));
|
|
2
2
|
//# sourceMappingURL=content-blocks.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","reverse","columns","classes","classString","initMethod","swiperOptions","hamburger","ariaExpanded","bodyToggle","open","animationStart","animationEnd","animationTime","revealElement","isOpen","randomID","target","clickableBlock","expanded","controls","linkLabel","linkClass","contentPosition","hasBackground","revealHiddenContent","lazyLoad","src","alt","width","height","videoType","showContent","activeSrc","lazyLoadIsComplete","showVideoAsGif","activeLazyLoadClass","inlineStyle","hasMediaContent","tag","textAlign","maxWidth","fullScreen","horizontalAlignment","verticalAlignment","closeTitle","isActive","activeClass","isFullScreen","openOverlay","closeOverlay","fullHeight","horizontalPosition","topOffset","bottomOffset","leftOffset","rightOffset","minHeight","hover","hasHoverContent","method","autoplay","type","playButtonAriaLabel","preload","fitContainer","isLoaded","hasPoster","isPlayed","flexGrow","flexShrink","activeClassString"],"sources":["
|
|
1
|
+
{"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","reverse","columns","classes","classString","initMethod","swiperOptions","hamburger","ariaExpanded","bodyToggle","open","animationStart","animationEnd","animationTime","revealElement","isOpen","randomID","target","clickableBlock","expanded","controls","linkLabel","linkClass","hasContentToActivate","contentPosition","hasBackground","revealHiddenContent","lazyLoad","src","alt","width","height","videoType","showContent","activeSrc","lazyLoadIsComplete","showVideoAsGif","activeLazyLoadClass","inlineStyle","hasMediaContent","tag","textAlign","maxWidth","fullScreen","horizontalAlignment","verticalAlignment","closeTitle","isActive","activeClass","contentSlot","isFullScreen","openOverlay","closeOverlay","fullHeight","horizontalPosition","topOffset","bottomOffset","leftOffset","rightOffset","minHeight","hover","hasHoverContent","method","autoplay","type","playButtonAriaLabel","preload","fitContainer","isLoaded","hasPoster","isPlayed","flexGrow","flexShrink","activeClassString"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.10.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_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,aAAA,KAAAC,YAAA,KAAAC,aAAA,oFAAAjD,QAAA,IAAAuC,SAAA,gBAAAW,WAAA,qBAAAZ,UAAA,oBAAAa,mBAAA,6BAAAC,UAAA,iBAAAC,aAAA,oBAAAC,WAAA,kBAAAC,YAAA,mBAAAtD,YAAA,KAAAkC,YAAA,gCAAAnC,QAAA,IAAAwD,UAAA,oBAAAd,kBAAA,4BAAAQ,WAAA,qBAAAZ,UAAA,oBAAArC,YAAA,KAAAkC,YAAA,gCAAAsB,MAAA,OAAAzD,QAAA,IAAAC,YAAA,KAAAyD,gBAAA,2BAAAC,OAAA,IAAAC,SAAA,IAAAnC,IAAA,IAAAE,MAAA,IAAAC,OAAA,IAAAiC,KAAA,IAAAC,oBAAA,6BAAA9D,QAAA,OAAAiB,SAAA,IAAA8C,QAAA,IAAAC,aAAA,uBAAA/D,YAAA,KAAAgE,SAAA,KAAAC,UAAA,KAAAC,SAAA,oCAAAnE,QAAA,IAAA6D,KAAA,OAAAO,SAAA,mBAAAC,WAAA,qBAAA3B,kBAAA,4BAAAD,oBAAA,8BAAA1C,QAAA,OAAAE,YAAA,KAAAqE,kBAAA,KAAAnC,YAAA,UAAAvC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{u as ResponsiveUtils}from"./p-
|
|
1
|
+
export{u as ResponsiveUtils}from"./p-da2c36ea.js";
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,h as t,H as n,g as a}from"./p-2faf0c78.js";import{W as r}from"./p-3b4b9ad1.js";import"./p-da2c36ea.js";import"./p-cd552ce2.js";class o{constructor(e){var t=e.querySelectorAll('[role="tablist"]')[0];var n;var a;r();function r(){n=e.querySelectorAll('[role="tab"]');a=e.querySelectorAll('[role="tabpanel"]')}var o={end:35,home:36,left:37,up:38,right:39,down:40,delete:46,enter:13,space:32};var i={37:-1,38:-1,39:1,40:1};for(var s=0;s<n.length;++s){c(s)}function c(e){n[e].addEventListener("click",l);n[e].addEventListener("keydown",d);n[e].addEventListener("keyup",f);n[e].index=e}function l(e){let t=e.target.closest("button");e.preventDefault();p(t,false)}function d(e){var t=e.keyCode;switch(t){case o.end:e.preventDefault();m();break;case o.home:e.preventDefault();h();break;case o.up:case o.down:u(e);break}}function f(e){var t=e.keyCode;switch(t){case o.left:case o.right:u(e);break;case o.delete:k(e);break;case o.enter:case o.space:e.preventDefault();p(e.target);break}}function u(e){var n=e.keyCode;var a=t.getAttribute("aria-orientation")=="vertical";var r=false;if(a){if(n===o.up||n===o.down){e.preventDefault();r=true}}else{if(n===o.left||n===o.right){r=true}}if(r){b(e)}}function b(e){var t=e.keyCode;if(i[t]){var a=e.target;if(a.index!==undefined){if(n[a.index+i[t]]){n[a.index+i[t]].focus()}else if(t===o.left||t===o.up){m()}else if(t===o.right||t==o.down){h()}}}}function p(e,t){t=t||true;v();e.removeAttribute("tabindex");e.setAttribute("aria-selected","true");var n=e.getAttribute("aria-controls");document.getElementById(n).removeAttribute("hidden");if(t){e.focus()}}function v(){for(var e=0;e<n.length;e++){n[e].setAttribute("tabindex","-1");n[e].setAttribute("aria-selected","false")}for(var t=0;t<a.length;t++){a[t].setAttribute("hidden","hidden")}}function h(){n[0].focus()}function m(){n[n.length-1].focus()}function k(e){var t=e.target;if(t.getAttribute("data-deletable")!==null){x(e);r();if(t.index-1<0){p(n[0])}else{p(n[t.index-1])}}}function x(e){var t=e.target;var n=document.getElementById(t.getAttribute("aria-controls"));t.parentElement.removeChild(t);n.parentElement.removeChild(n)}}}const i="*{box-sizing:border-box}content-tabs{display:block}content-tabs button[role=tab]{padding:0;border:none;font:inherit;color:inherit;background-color:inherit;cursor:pointer;border-bottom:1px solid transparent}content-tabs button[role=tab][aria-selected=true]{border-bottom:1px solid black}";const s=class{constructor(t){e(this,t);this.classes=undefined;this.classString=undefined}componentWillLoad(){r.registerProp(this.classes).subscribe((e=>{this.classString=e}))}componentDidLoad(){new o(this.element)}render(){return t(n,{class:this.classString},t("slot",{name:"content"}),t("slot",null))}get element(){return a(this)}};s.style=i;export{s as content_tabs};
|
|
2
|
+
//# sourceMappingURL=p-2c515f18.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["W3Tabs","constructor","stencilElement","tablist","querySelectorAll","tabs","panels","generateArrays","keys","end","home","left","up","right","down","delete","enter","space","direction","i","length","addListeners","index","addEventListener","clickEventListener","keydownEventListener","keyupEventListener","event","tab","target","closest","preventDefault","activateTab","key","keyCode","focusLastTab","focusFirstTab","determineOrientation","determineDeletable","vertical","getAttribute","proceed","switchTabOnArrowPress","pressed","undefined","focus","setFocus","deactivateTabs","removeAttribute","setAttribute","controls","document","getElementById","t","p","deleteTab","panel","parentElement","removeChild","contentTabsCss","ContentTabs","componentWillLoad","WindowResizeService","registerProp","this","classes","subscribe","newValue","classString","componentDidLoad","element","render","h","Host","class","name"],"sources":["src/components/content-tabs/libraries/w3_tabs.ts","src/components/content-tabs/content-tabs.scss?tag=content-tabs","src/components/content-tabs/content-tabs.tsx"],"sourcesContent":["/*\n* This content is licensed according to the W3C Software License at\n* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n*/\nexport default class W3Tabs {\n constructor(stencilElement: HTMLElement) {\n var tablist = stencilElement.querySelectorAll('[role=\"tablist\"]')[0];\n var tabs;\n var panels;\n\n generateArrays();\n\n function generateArrays () {\n tabs = stencilElement.querySelectorAll('[role=\"tab\"]');\n panels = stencilElement.querySelectorAll('[role=\"tabpanel\"]');\n };\n\n // For easy reference\n var keys = {\n end: 35,\n home: 36,\n left: 37,\n up: 38,\n right: 39,\n down: 40,\n delete: 46,\n enter: 13,\n space: 32\n };\n\n // Add or subtract depending on key pressed\n var direction = {\n 37: -1,\n 38: -1,\n 39: 1,\n 40: 1\n };\n\n // Bind listeners\n for (var i = 0; i < tabs.length; ++i) {\n addListeners(i);\n };\n\n function addListeners (index) {\n tabs[index].addEventListener('click', clickEventListener);\n tabs[index].addEventListener('keydown', keydownEventListener);\n tabs[index].addEventListener('keyup', keyupEventListener);\n\n // Build an array with all tabs (<button>s) in it\n tabs[index].index = index;\n };\n\n // When a tab is clicked, activateTab is fired to activate it\n function clickEventListener (event) {\n let tab = event.target.closest('button');\n event.preventDefault();\n activateTab(tab, false);\n };\n\n // Handle keydown on tabs\n function keydownEventListener (event) {\n var key = event.keyCode;\n\n switch (key) {\n case keys.end:\n event.preventDefault();\n // Activate last tab\n focusLastTab();\n break;\n case keys.home:\n event.preventDefault();\n // Activate first tab\n focusFirstTab();\n break;\n\n // Up and down are in keydown\n // because we need to prevent page scroll >:)\n case keys.up:\n case keys.down:\n determineOrientation(event);\n break;\n };\n };\n\n // Handle keyup on tabs\n function keyupEventListener (event) {\n var key = event.keyCode;\n\n switch (key) {\n case keys.left:\n case keys.right:\n determineOrientation(event);\n break;\n case keys.delete:\n determineDeletable(event);\n break;\n case keys.enter:\n case keys.space:\n event.preventDefault();\n activateTab(event.target);\n break;\n };\n };\n\n // When a tablist’s aria-orientation is set to vertical,\n // only up and down arrow should function.\n // In all other cases only left and right arrow function.\n function determineOrientation (event) {\n var key = event.keyCode;\n var vertical = tablist.getAttribute('aria-orientation') == 'vertical';\n var proceed = false;\n\n if (vertical) {\n if (key === keys.up || key === keys.down) {\n event.preventDefault();\n proceed = true;\n };\n }\n else {\n if (key === keys.left || key === keys.right) {\n proceed = true;\n };\n };\n\n if (proceed) {\n switchTabOnArrowPress(event);\n };\n };\n\n // Either focus the next, previous, first, or last tab\n // depending on key pressed\n function switchTabOnArrowPress (event) {\n var pressed = event.keyCode;\n\n if (direction[pressed]) {\n var target = event.target;\n if (target.index !== undefined) {\n if (tabs[target.index + direction[pressed]]) {\n tabs[target.index + direction[pressed]].focus();\n }\n else if (pressed === keys.left || pressed === keys.up) {\n focusLastTab();\n }\n else if (pressed === keys.right || pressed == keys.down) {\n focusFirstTab();\n };\n };\n };\n };\n\n // Activates any given tab panel\n function activateTab (tab, setFocus?) {\n setFocus = setFocus || true;\n // Deactivate all other tabs\n deactivateTabs();\n\n // Remove tabindex attribute\n tab.removeAttribute('tabindex');\n\n // Set the tab as selected\n tab.setAttribute('aria-selected', 'true');\n\n // Get the value of aria-controls (which is an ID)\n var controls = tab.getAttribute('aria-controls');\n\n // Remove hidden attribute from tab panel to make it visible\n document.getElementById(controls).removeAttribute('hidden');\n\n // Set focus when required\n if (setFocus) {\n tab.focus();\n };\n };\n\n // Deactivate all tabs and tab panels\n function deactivateTabs () {\n for (var t = 0; t < tabs.length; t++) {\n tabs[t].setAttribute('tabindex', '-1');\n tabs[t].setAttribute('aria-selected', 'false');\n };\n\n for (var p = 0; p < panels.length; p++) {\n panels[p].setAttribute('hidden', 'hidden');\n };\n };\n\n // Make a guess\n function focusFirstTab () {\n tabs[0].focus();\n };\n\n // Make a guess\n function focusLastTab () {\n tabs[tabs.length - 1].focus();\n };\n\n // Detect if a tab is deletable\n function determineDeletable (event) {\n var target = event.target;\n\n if (target.getAttribute('data-deletable') !== null) {\n // Delete target tab\n deleteTab(event);\n\n // Update arrays related to tabs widget\n generateArrays();\n\n // Activate the closest tab to the one that was just deleted\n if (target.index - 1 < 0) {\n activateTab(tabs[0]);\n }\n else {\n activateTab(tabs[target.index - 1]);\n };\n };\n };\n\n // Deletes a tab and its panel\n function deleteTab(event) {\n var target = event.target;\n var panel = document.getElementById(target.getAttribute('aria-controls'));\n\n target.parentElement.removeChild(target);\n panel.parentElement.removeChild(panel);\n };\n }\n};","content-tabs {\n display: block;\n button[role=\"tab\"] {\n padding: 0;\n border: none;\n font: inherit;\n color: inherit;\n background-color: inherit;\n cursor: pointer; \n border-bottom: 1px solid transparent;\n &[aria-selected=\"true\"] {\n border-bottom: 1px solid black;\n }\n }\n}\n","import { Component, h, Element, Host, Prop, State } from '@stencil/core';\nimport W3Tabs from './libraries/w3_tabs';\nimport { ResponsiveString } from '../../typings';\nimport { WindowResizeService } from '../../services/window-resize-service';\n\n/**\n * @slot content - This slot will usually serve specific markup to ensure tabs are accessible.\n * @slot - Default slot, same as content slot.\n */\n@Component({\n tag: 'content-tabs',\n styleUrl: 'content-tabs.scss',\n shadow: false,\n})\nexport class ContentTabs {\n @Element() private element: HTMLElement;\n /**\n * @type String\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n classes: ResponsiveString;\n\n @State() classString: string;\n\n componentWillLoad() {\n WindowResizeService.registerProp(this.classes).subscribe(newValue => {\n this.classString = newValue as string;\n });\n }\n\n componentDidLoad() {\n new W3Tabs(this.element);\n }\n render() {\n return (\n <Host class={this.classString}>\n <slot name=\"content\"></slot>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"mappings":"mJAIqBA,EACnB,WAAAC,CAAYC,GACV,IAAIC,EAAUD,EAAeE,iBAAiB,oBAAoB,GAClE,IAAIC,EACJ,IAAIC,EAEJC,IAEA,SAASA,IACPF,EAAOH,EAAeE,iBAAiB,gBACvCE,EAASJ,EAAeE,iBAAiB,oB,CAI3C,IAAII,EAAO,CACTC,IAAK,GACLC,KAAM,GACNC,KAAM,GACNC,GAAI,GACJC,MAAO,GACPC,KAAM,GACNC,OAAQ,GACRC,MAAO,GACPC,MAAO,IAIT,IAAIC,EAAY,CACd,IAAK,EACL,IAAK,EACL,GAAI,EACJ,GAAI,GAIN,IAAK,IAAIC,EAAI,EAAGA,EAAId,EAAKe,SAAUD,EAAG,CACpCE,EAAaF,E,CAGf,SAASE,EAAcC,GACrBjB,EAAKiB,GAAOC,iBAAiB,QAASC,GACtCnB,EAAKiB,GAAOC,iBAAiB,UAAWE,GACxCpB,EAAKiB,GAAOC,iBAAiB,QAASG,GAGtCrB,EAAKiB,GAAOA,MAAQA,C,CAItB,SAASE,EAAoBG,GAC3B,IAAIC,EAAMD,EAAME,OAAOC,QAAQ,UAC/BH,EAAMI,iBACNC,EAAYJ,EAAK,M,CAInB,SAASH,EAAsBE,GAC7B,IAAIM,EAAMN,EAAMO,QAEhB,OAAQD,GACN,KAAKzB,EAAKC,IACRkB,EAAMI,iBAENI,IACA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EAAIY,aAAa,iBAGhCW,SAASC,eAAeF,GAAUF,gBAAgB,UAGlD,GAAIF,EAAU,CACZlB,EAAIiB,O,EAKR,SAASE,IACP,IAAK,IAAIM,EAAI,EAAGA,EAAIhD,EAAKe,OAAQiC,IAAK,CACpChD,EAAKgD,GAAGJ,aAAa,WAAY,MACjC5C,EAAKgD,GAAGJ,aAAa,gBAAiB,Q,CAGxC,IAAK,IAAIK,EAAI,EAAGA,EAAIhD,EAAOc,OAAQkC,IAAK,CACtChD,EAAOgD,GAAGL,aAAa,SAAU,S,EAKrC,SAASb,IACP/B,EAAK,GAAGwC,O,CAIV,SAASV,IACP9B,EAAKA,EAAKe,OAAS,GAAGyB,O,CAIxB,SAASP,EAAoBX,GAC3B,IAAIE,EAASF,EAAME,OAEnB,GAAIA,EAAOW,aAAa,oBAAsB,KAAM,CAElDe,EAAU5B,GAGVpB,IAGA,GAAIsB,EAAOP,MAAQ,EAAI,EAAG,CACxBU,EAAY3B,EAAK,G,KAEd,CACH2B,EAAY3B,EAAKwB,EAAOP,MAAQ,G,GAMtC,SAASiC,EAAU5B,GACjB,IAAIE,EAASF,EAAME,OACnB,IAAI2B,EAAQL,SAASC,eAAevB,EAAOW,aAAa,kBAExDX,EAAO4B,cAAcC,YAAY7B,GACjC2B,EAAMC,cAAcC,YAAYF,E,GC/NtC,MAAMG,EAAiB,iS,MCcVC,EAAW,M,2EActB,iBAAAC,GACEC,EAAoBC,aAAaC,KAAKC,SAASC,WAAUC,IACvDH,KAAKI,YAAcD,CAAkB,G,CAIzC,gBAAAE,GACE,IAAIrE,EAAOgE,KAAKM,Q,CAElB,MAAAC,GACE,OACEC,EAACC,EAAI,CAACC,MAAOV,KAAKI,aAChBI,EAAA,QAAMG,KAAK,YACXH,EAAA,a"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const e="content-blocks";const t={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:false,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:false,connectedCallback:false,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:false,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:false,slot:true,slotChildNodesFix:false,slotRelocation:true,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:false,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:false,watchCallback:true};let n;let s;let l=false;let o=false;let i=false;let c=false;let f=false;const r=(e,t="")=>{{return()=>{}}};const a=(e,t)=>{{return()=>{}}};const u="{visibility:hidden}.hydrated{visibility:inherit}";const d="slot-fb{display:contents}slot-fb[hidden]{display:none}";const p={};const v=e=>{e=typeof e;return e==="object"||e==="function"};function m(e){var t,n,s;return(s=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&s!==void 0?s:undefined}const h=(e,t,...n)=>{let s=null;let l=null;let o=false;let i=false;const c=[];const f=t=>{for(let n=0;n<t.length;n++){s=t[n];if(Array.isArray(s)){f(s)}else if(s!=null&&typeof s!=="boolean"){if(o=typeof e!=="function"&&!v(s)){s=String(s)}if(o&&i){c[c.length-1].t+=s}else{c.push(o?y(null,s):s)}i=o}}};f(n);if(t){if(t.name){l=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,c,S)}const r=y(e,null);r.l=t;if(c.length>0){r.o=c}{r.i=l}return r};const y=(e,t)=>{const n={u:0,p:e,t,v:null,o:null};{n.l=null}{n.i=null}return n};const b={};const $=e=>e&&e.p===b;const S={forEach:(e,t)=>e.map(g).forEach(t),map:(e,t)=>e.map(g).map(t).map(w)};const g=e=>({vattrs:e.l,vchildren:e.o,vkey:e.m,vname:e.i,vtag:e.p,vtext:e.t});const w=e=>{if(typeof e.vtag==="function"){const t=Object.assign({},e.vattrs);if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return h(e.vtag,t,...e.vchildren||[])}const t=y(e.vtag,e.vtext);t.l=e.vattrs;t.o=e.vchildren;t.m=e.vkey;t.i=e.vname;return t};const k=(e,t)=>{if(e!=null&&!v(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};const C=e=>xe(e).$hostElement$;const T=(e,t,n)=>{const s=C(e);return{emit:e=>x(s,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};const x=(e,t,n)=>{const s=Pe.ce(t,n);e.dispatchEvent(s);return s};const L=new WeakMap;const R=(e,t,n)=>{let s=Me.get(e);if(We&&n){s=s||new CSSStyleSheet;if(typeof s==="string"){s=t}else{s.replaceSync(t)}}else{s=t}Me.set(e,s)};const j=(e,t,n)=>{var s;const l=O(t);const o=Me.get(l);e=e.nodeType===11?e:Ne;if(o){if(typeof o==="string"){e=e.head||e;let n=L.get(e);let i;if(!n){L.set(e,n=new Set)}if(!n.has(l)){{i=Ne.createElement("style");i.innerHTML=o;const t=(s=Pe.h)!==null&&s!==void 0?s:m(Ne);if(t!=null){i.setAttribute("nonce",t)}e.insertBefore(i,e.querySelector("link"))}if(t.u&4){i.innerHTML+=d}if(n){n.add(l)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]}}return l};const D=e=>{const t=e.$;const n=e.$hostElement$;const s=r("attachStyles",t.S);j(n.getRootNode(),t);s()};const O=(e,t)=>"sc-"+e.S;const F=(e,t,n,s,l,o)=>{if(n!==s){let i=je(e,t);let c=t.toLowerCase();if(t==="class"){const t=e.classList;const l=A(n);const o=A(s);t.remove(...l.filter((e=>e&&!o.includes(e))));t.add(...o.filter((e=>e&&!l.includes(e))))}else if(t==="style"){{for(const t in n){if(!s||s[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in s){if(!n||s[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,s[t])}else{e.style[t]=s[t]}}}}else if(t==="ref"){if(s){s(e)}}else if(!i&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(je(Ae,c)){t=c.slice(2)}else{t=c[2]+t.slice(3)}if(n||s){const l=t.endsWith(N);t=t.replace(P,"");if(n){Pe.rel(e,t,n,l)}if(s){Pe.ael(e,t,s,l)}}}else{const c=v(s);if((i||c&&s!==null)&&!l){try{if(!e.tagName.includes("-")){const l=s==null?"":s;if(t==="list"){i=false}else if(n==null||e[t]!=l){e[t]=l}}else{e[t]=s}}catch(e){}}if(s==null||s===false){if(s!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!i||o&4||l)&&!c){s=s===true?"":s;{e.setAttribute(t,s)}}}}};const M=/\s/;const A=e=>!e?[]:e.split(M);const N="Capture";const P=new RegExp(N+"$");const U=(e,t,n,s)=>{const l=t.v.nodeType===11&&t.v.host?t.v.host:t.v;const o=e&&e.l||p;const i=t.l||p;{for(s in o){if(!(s in i)){F(l,s,o[s],undefined,n,t.u)}}}for(s in i){F(l,s,o[s],i[s],n,t.u)}};const W=(e,t,o,f)=>{const r=t.o[o];let a=0;let u;let d;let p;if(!l){i=true;if(r.p==="slot"){r.u|=r.o?2:1}}if(r.t!==null){u=r.v=Ne.createTextNode(r.t)}else if(r.u&1){u=r.v=Ne.createTextNode("")}else{u=r.v=Ne.createElement(r.u&2?"slot-fb":r.p);{U(null,r,c)}if(r.o){for(a=0;a<r.o.length;++a){d=W(e,r,a);if(d){u.appendChild(d)}}}}u["s-hn"]=s;{if(r.u&(2|1)){u["s-sr"]=true;u["s-cr"]=n;u["s-sn"]=r.i||"";p=e&&e.o&&e.o[o];if(p&&p.p===r.p&&e.v){{E(e.v,false)}}}}return u};const E=(e,t)=>{Pe.u|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const l=n[e];if(l["s-hn"]!==s&&l["s-ol"]){I(l).insertBefore(l,q(l));l["s-ol"].remove();l["s-ol"]=undefined;l["s-sh"]=undefined;i=true}if(t){E(l,t)}}Pe.u&=~1};const z=(e,t,n,s,l,o)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e;let c;for(;l<=o;++l){if(s[l]){c=W(null,n,l);if(c){s[l].v=c;i.insertBefore(c,q(t))}}}};const B=(e,t,n)=>{for(let s=t;s<=n;++s){const t=e[s];if(t){const e=t.v;J(t);if(e){{o=true;if(e["s-ol"]){e["s-ol"].remove()}else{E(e,true)}}e.remove()}}}};const H=(e,t,n,s,l=false)=>{let o=0;let i=0;let c=t.length-1;let f=t[0];let r=t[c];let a=s.length-1;let u=s[0];let d=s[a];let p;while(o<=c&&i<=a){if(f==null){f=t[++o]}else if(r==null){r=t[--c]}else if(u==null){u=s[++i]}else if(d==null){d=s[--a]}else if(Q(f,u,l)){K(f,u,l);f=t[++o];u=s[++i]}else if(Q(r,d,l)){K(r,d,l);r=t[--c];d=s[--a]}else if(Q(f,d,l)){if(f.p==="slot"||d.p==="slot"){E(f.v.parentNode,false)}K(f,d,l);e.insertBefore(f.v,r.v.nextSibling);f=t[++o];d=s[--a]}else if(Q(r,u,l)){if(f.p==="slot"||d.p==="slot"){E(r.v.parentNode,false)}K(r,u,l);e.insertBefore(r.v,f.v);r=t[--c];u=s[++i]}else{{p=W(t&&t[i],n,i);u=s[++i]}if(p){{I(f.v).insertBefore(p,q(f.v))}}}}if(o>c){z(e,s[a+1]==null?null:s[a+1].v,n,s,i,a)}else if(i>a){B(t,o,c)}};const Q=(e,t,n=false)=>{if(e.p===t.p){if(e.p==="slot"){return e.i===t.i}return true}return false};const q=e=>e&&e["s-ol"]||e;const I=e=>(e["s-ol"]?e["s-ol"]:e).parentNode;const K=(e,t,n=false)=>{const s=t.v=e.v;const l=e.o;const o=t.o;const i=t.p;const f=t.t;let r;if(f===null){{if(i==="slot");else{U(e,t,c)}}if(l!==null&&o!==null){H(s,l,t,o,n)}else if(o!==null){if(e.t!==null){s.textContent=""}z(s,null,t,o,0,o.length-1)}else if(l!==null){B(l,0,l.length-1)}}else if(r=s["s-cr"]){r.parentNode.textContent=f}else if(e.t!==f){s.data=f}};const V=e=>{const t=e.childNodes;for(const e of t){if(e.nodeType===1){if(e["s-sr"]){const n=e["s-sn"];e.hidden=false;for(const s of t){if(s!==e){if(s["s-hn"]!==e["s-hn"]||n!==""){if(s.nodeType===1&&(n===s.getAttribute("slot")||n===s["s-sn"])){e.hidden=true;break}}else{if(s.nodeType===1||s.nodeType===3&&s.textContent.trim()!==""){e.hidden=true;break}}}}}V(e)}}};const X=[];const _=e=>{let n;let s;let l;for(const i of e.childNodes){if(i["s-sr"]&&(n=i["s-cr"])&&n.parentNode){s=n.parentNode.childNodes;const e=i["s-sn"];for(l=s.length-1;l>=0;l--){n=s[l];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==i["s-hn"]&&!t.experimentalSlotFixes){if(G(n,e)){let t=X.find((e=>e.k===n));o=true;n["s-sn"]=n["s-sn"]||e;if(t){t.k["s-sh"]=i["s-hn"];t.C=i}else{n["s-sh"]=i["s-hn"];X.push({C:i,k:n})}if(n["s-sr"]){X.map((e=>{if(G(e.k,n["s-sn"])){t=X.find((e=>e.k===n));if(t&&!e.C){e.C=t.C}}}))}}else if(!X.some((e=>e.k===n))){X.push({k:n})}}}}if(i.nodeType===1){_(i)}}};const G=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};const J=e=>{{e.l&&e.l.ref&&e.l.ref(null);e.o&&e.o.map(J)}};const Y=(e,t,c=false)=>{var f,r,a,u;const d=e.$hostElement$;const p=e.$;const v=e.T||y(null,null);const m=$(t)?t:h(null,null,t);s=d.tagName;if(p.L){m.l=m.l||{};p.L.map((([e,t])=>m.l[t]=d[e]))}if(c&&m.l){for(const e of Object.keys(m.l)){if(d.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){m.l[e]=d[e]}}}m.p=null;m.u|=4;e.T=m;m.v=v.v=d;{n=d["s-cr"];l=(p.u&1)!==0;o=false}K(v,m,c);{Pe.u|=1;if(i){_(m.v);for(const e of X){const t=e.k;if(!t["s-ol"]){const e=Ne.createTextNode("");e["s-nr"]=t;t.parentNode.insertBefore(t["s-ol"]=e,t)}}for(const e of X){const t=e.k;const n=e.C;if(n){const e=n.parentNode;let s=n.nextSibling;{let n=(f=t["s-ol"])===null||f===void 0?void 0:f.previousSibling;while(n){let l=(r=n["s-nr"])!==null&&r!==void 0?r:null;if(l&&l["s-sn"]===t["s-sn"]&&e===l.parentNode){l=l.nextSibling;if(!l||!l["s-nr"]){s=l;break}}n=n.previousSibling}}if(!s&&e!==t.parentNode||t.nextSibling!==s){if(t!==s){if(!t["s-hn"]&&t["s-ol"]){t["s-hn"]=t["s-ol"].parentNode.nodeName}e.insertBefore(t,s);if(t.nodeType===1){t.hidden=(a=t["s-ih"])!==null&&a!==void 0?a:false}}}}else{if(t.nodeType===1){if(c){t["s-ih"]=(u=t.hidden)!==null&&u!==void 0?u:false}t.hidden=true}}}}if(o){V(m.v)}Pe.u&=~1;X.length=0}};const Z=(e,t)=>{if(t&&!e.R&&t["s-p"]){t["s-p"].push(new Promise((t=>e.R=t)))}};const ee=(e,t)=>{{e.u|=16}if(e.u&4){e.u|=512;return}Z(e,e.j);const n=()=>te(e,t);return Ie(n)};const te=(e,t)=>{const n=r("scheduleUpdate",e.$.S);const s=e.D;let l;if(t){{e.u|=256;if(e.O){e.O.map((([e,t])=>fe(s,e,t)));e.O=undefined}}{l=fe(s,"componentWillLoad")}}n();return ne(l,(()=>le(e,s,t)))};const ne=(e,t)=>se(e)?e.then(t):t();const se=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";const le=async(e,t,n)=>{var s;const l=e.$hostElement$;const o=r("update",e.$.S);const i=l["s-rc"];if(n){D(e)}const c=r("render",e.$.S);{oe(e,t,l,n)}if(i){i.map((e=>e()));l["s-rc"]=undefined}c();o();{const t=(s=l["s-p"])!==null&&s!==void 0?s:[];const n=()=>ie(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.u|=4;t.length=0}}};const oe=(e,t,n,s)=>{try{t=t.render();{e.u&=~16}{e.u|=2}{{{Y(e,t,s)}}}}catch(t){De(t,e.$hostElement$)}return null};const ie=e=>{const t=e.$.S;const n=e.$hostElement$;const s=r("postUpdate",t);const l=e.D;const o=e.j;{fe(l,"componentDidRender")}if(!(e.u&64)){e.u|=64;{re(n)}{fe(l,"componentDidLoad")}s();{e.F(n);if(!o){ce()}}}else{s()}{e.M(n)}{if(e.R){e.R();e.R=undefined}if(e.u&512){qe((()=>ee(e,false)))}e.u&=~(4|512)}};const ce=t=>{{re(Ne.documentElement)}qe((()=>x(Ae,"appload",{detail:{namespace:e}})))};const fe=(e,t,n)=>{if(e&&e[t]){try{return e[t](n)}catch(e){De(e)}}return undefined};const re=e=>e.classList.add("hydrated");const ae=(e,t)=>xe(e).A.get(t);const ue=(e,t,n,s)=>{const l=xe(e);const o=l.$hostElement$;const i=l.A.get(t);const c=l.u;const f=l.D;n=k(n,s.N[t][0]);const r=Number.isNaN(i)&&Number.isNaN(n);const a=n!==i&&!r;if((!(c&8)||i===undefined)&&a){l.A.set(t,n);if(f){if(s.P&&c&128){const e=s.P[t];if(e){e.map((e=>{try{f[e](n,i,t)}catch(e){De(e,o)}}))}}if((c&(2|16))===2){ee(l,false)}}}};const de=(e,t,n)=>{var s;const l=e.prototype;if(t.N){if(e.watchers){t.P=e.watchers}const o=Object.entries(t.N);o.map((([e,[s]])=>{if(s&31||n&2&&s&32){Object.defineProperty(l,e,{get(){return ae(this,e)},set(n){ue(this,e,n,t)},configurable:true,enumerable:true})}else if(n&1&&s&64){Object.defineProperty(l,e,{value(...t){var n;const s=xe(this);return(n=s===null||s===void 0?void 0:s.U)===null||n===void 0?void 0:n.then((()=>{var n;return(n=s.D)===null||n===void 0?void 0:n[e](...t)}))}})}}));if(n&1){const n=new Map;l.attributeChangedCallback=function(e,s,o){Pe.jmp((()=>{var i;const c=n.get(e);if(this.hasOwnProperty(c)){o=this[c];delete this[c]}else if(l.hasOwnProperty(c)&&typeof this[c]==="number"&&this[c]==o){return}else if(c==null){const n=xe(this);const l=n===null||n===void 0?void 0:n.u;if(l&&!(l&8)&&l&128&&o!==s){const l=n.D;const c=(i=t.P)===null||i===void 0?void 0:i[e];c===null||c===void 0?void 0:c.forEach((t=>{if(l[t]!=null){l[t].call(l,o,s,e)}}))}return}this[c]=o===null&&typeof this[c]==="boolean"?false:o}))};e.observedAttributes=Array.from(new Set([...Object.keys((s=t.P)!==null&&s!==void 0?s:{}),...o.filter((([e,t])=>t[0]&15)).map((([e,s])=>{var l;const o=s[1]||e;n.set(o,e);if(s[0]&512){(l=t.L)===null||l===void 0?void 0:l.push([e,o])}return o}))]))}}return e};const pe=async(e,t,n,s)=>{let l;if((t.u&32)===0){t.u|=32;{l=Fe(n);if(l.then){const e=a();l=await l;e()}if(!l.isProxied){{n.P=l.watchers}de(l,n,2);l.isProxied=true}const e=r("createInstance",n.S);{t.u|=8}try{new l(t)}catch(e){De(e)}{t.u&=~8}{t.u|=128}e()}if(l.style){let e=l.style;const t=O(n);if(!Me.has(t)){const s=r("registerStyles",n.S);R(t,e,!!(n.u&1));s()}}}const o=t.j;const i=()=>ee(t,true);if(o&&o["s-rc"]){o["s-rc"].push(i)}else{i()}};const ve=e=>{};const me=e=>{if((Pe.u&1)===0){const t=xe(e);const n=t.$;const s=r("connectedCallback",n.S);if(!(t.u&1)){t.u|=1;{if(n.u&(4|8)){he(e)}}{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){Z(t,t.j=n);break}}}if(n.N){Object.entries(n.N).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{pe(e,t,n)}}else{Se(e,t,n.W);if(t===null||t===void 0?void 0:t.D);else if(t===null||t===void 0?void 0:t.B){t.B.then((()=>ve()))}}s()}};const he=e=>{const t=e["s-cr"]=Ne.createComment("");t["s-cn"]=true;e.insertBefore(t,e.firstChild)};const ye=e=>{};const be=async e=>{if((Pe.u&1)===0){const t=xe(e);{if(t.H){t.H.map((e=>e()));t.H=undefined}}if(t===null||t===void 0?void 0:t.D);else if(t===null||t===void 0?void 0:t.B){t.B.then((()=>ye()))}}};const $e=(e,t={})=>{var n;const s=r();const l=[];const o=t.exclude||[];const i=Ae.customElements;const c=Ne.head;const f=c.querySelector("meta[charset]");const a=Ne.createElement("style");const p=[];let v;let h=true;Object.assign(Pe,t);Pe.q=new URL(t.resourcesUrl||"./",Ne.baseURI).href;let y=false;e.map((e=>{e[1].map((t=>{var n;const s={u:t[0],S:t[1],N:t[2],W:t[3]};if(s.u&4){y=true}{s.N=t[2]}{s.W=t[3]}{s.L=[]}{s.P=(n=t[4])!==null&&n!==void 0?n:{}}const c=s.S;const f=class extends HTMLElement{constructor(e){super(e);e=this;Re(e,s)}connectedCallback(){if(v){clearTimeout(v);v=null}if(h){p.push(this)}else{Pe.jmp((()=>me(this)))}}disconnectedCallback(){Pe.jmp((()=>be(this)))}componentOnReady(){return xe(this).B}};s.I=e[0];if(!o.includes(c)&&!i.get(c)){l.push(c);i.define(c,de(f,s,1))}}))}));if(y){a.innerHTML+=d}{a.innerHTML+=l+u}if(a.innerHTML.length){a.setAttribute("data-styles","");const e=(n=Pe.h)!==null&&n!==void 0?n:m(Ne);if(e!=null){a.setAttribute("nonce",e)}c.insertBefore(a,f?f.nextSibling:c.firstChild)}h=false;if(p.length){p.map((e=>e.connectedCallback()))}else{{Pe.jmp((()=>v=setTimeout(ce,30)))}}s()};const Se=(e,t,n,s)=>{if(n){n.map((([n,s,l])=>{const o=we(e,n);const i=ge(t,l);const c=ke(n);Pe.ael(o,s,i,c);(t.H=t.H||[]).push((()=>Pe.rel(o,s,i,c)))}))}};const ge=(e,t)=>n=>{try{{if(e.u&256){e.D[t](n)}else{(e.O=e.O||[]).push([t,n])}}}catch(e){De(e)}};const we=(e,t)=>{if(t&8)return Ae;return e};const ke=e=>(e&2)!==0;const Ce=e=>Pe.h=e;const Te=new WeakMap;const xe=e=>Te.get(e);const Le=(e,t)=>Te.set(t.D=e,t);const Re=(e,t)=>{const n={u:0,$hostElement$:e,$:t,A:new Map};{n.U=new Promise((e=>n.M=e))}{n.B=new Promise((e=>n.F=e));e["s-p"]=[];e["s-rc"]=[]}Se(e,n,t.W);return Te.set(e,n)};const je=(e,t)=>t in e;const De=(e,t)=>(0,console.error)(e,t);const Oe=new Map;const Fe=(e,t,n)=>{const s=e.S.replace(/-/g,"_");const l=e.I;const o=Oe.get(l);if(o){return o[s]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${l}.entry.js${""}`).then((e=>{{Oe.set(l,e)}return e[s]}),De)};const Me=new Map;const Ae=typeof window!=="undefined"?window:{};const Ne=Ae.document||{head:{}};const Pe={u:0,q:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)};const Ue=e=>Promise.resolve(e);const We=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();const Ee=[];const ze=[];const Be=(e,t)=>n=>{e.push(n);if(!f){f=true;if(t&&Pe.u&4){qe(Qe)}else{Pe.raf(Qe)}}};const He=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){De(e)}}e.length=0};const Qe=()=>{He(Ee);{He(ze);if(f=Ee.length>0){Pe.raf(Qe)}}};const qe=e=>Ue().then(e);const Ie=Be(ze,true);export{b as H,$e as b,T as c,C as g,h,Ue as p,Le as r,Ce as s};
|
|
3
|
+
//# sourceMappingURL=p-2faf0c78.js.map
|