{"version":3,"file":"lite-vimeo.1db9a171.js","sources":["../../../node_modules/@slightlyoff/lite-vimeo/lite-vimeo.js"],"sourcesContent":["/**\n *\n * The shadowDom / Intersection Observer version of Paul's concept:\n * https://github.com/paulirish/lite-youtube-embed\n *\n * A lightweight YouTube embed. Still should feel the same to the user, just\n * MUCH faster to initialize and paint.\n *\n * Thx to these as the inspiration\n * https://storage.googleapis.com/amp-vs-non-amp/youtube-lazy.html\n * https://autoplay-youtube-player.glitch.me/\n *\n * Once built it, I also found these (👍👍):\n * https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube\n * https://github.com/Daugilas/lazyYT https://github.com/vb/lazyframe\n */\n/*\n * Vimeo example embed markup:\n\n
\n Alex Russell - The Mobile Web: MIA from\n Fronteers\n on Vimeo.\n
\n */\nlet LiteVimeoEmbed = /** @class */ (() => {\n class LiteVimeoEmbed extends HTMLElement {\n constructor() {\n super();\n this.iframeLoaded = false;\n this.setupDom();\n }\n static get observedAttributes() {\n return ['videoid'];\n }\n connectedCallback() {\n this.addEventListener('pointerover', LiteVimeoEmbed.warmConnections, {\n once: true,\n });\n this.addEventListener('click', () => this.addIframe());\n }\n get videoId() {\n return encodeURIComponent(this.getAttribute('videoid') || '');\n }\n set videoId(id) {\n this.setAttribute('videoid', id);\n }\n get videoTitle() {\n return this.getAttribute('videotitle') || 'Video';\n }\n set videoTitle(title) {\n this.setAttribute('videotitle', title);\n }\n get videoPlay() {\n return this.getAttribute('videoPlay') || 'Play';\n }\n set videoPlay(name) {\n this.setAttribute('videoPlay', name);\n }\n get videoStartAt() {\n return this.getAttribute('videoPlay') || '0s';\n }\n set videoStartAt(time) {\n this.setAttribute('videoPlay', time);\n }\n get autoLoad() {\n return this.hasAttribute('autoload');\n }\n set autoLoad(value) {\n if (value) {\n this.setAttribute('autoload', '');\n }\n else {\n this.removeAttribute('autoload');\n }\n }\n get autoPlay() {\n return this.hasAttribute('autoplay');\n }\n set autoPlay(value) {\n if (value) {\n this.setAttribute('autoplay', 'autoplay');\n }\n else {\n this.removeAttribute('autoplay');\n }\n }\n /**\n * Define our shadowDOM for the component\n */\n setupDom() {\n const shadowDom = this.attachShadow({ mode: 'open' });\n shadowDom.innerHTML = `\n \n