{"version":3,"file":"lite-vimeo.min.js","sources":["lite-vimeo.js"],"sourcesContent":["// src/index.ts\nvar _LiteVimeoEmbed = 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 } 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 } 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