{
  "version": 3,
  "sources": ["../../Features/Video/Types/vimeo.ts", "../../Features/Video/Inline/inline-video.ts"],
  "sourcesContent": ["\uFEFFexport const Vimeo = (window as any).Vimeo;\r\n", "import { Vimeo } from \"../Types/vimeo\";\r\n\r\nif (!Vimeo) {\r\n  console.error(\"Vimeo is not loaded\");\r\n} else {\r\n  document.querySelectorAll(\"[data-vimeo-inline]\").forEach(inlineVideoComponent => {\r\n    const inlineVideo = inlineVideoComponent.querySelector(\"[data-vimeo-inline-video]\");\r\n\r\n    if (!inlineVideo) {\r\n      console.error(\"No video element found in inline video component\");\r\n      return;\r\n    }\r\n\r\n    const coverImage = inlineVideoComponent.querySelector(\"[data-vimeo-inline-cover]\");\r\n    const playButton = inlineVideoComponent.querySelector(\"[data-vimeo-inline-play]\");\r\n\r\n    if (coverImage && playButton) {\r\n      playButton.addEventListener(\"click\", () => {\r\n        playButton\r\n          .querySelectorAll(\"[data-vimeo-play-icon], [data-vimeo-spinner]\")\r\n          .forEach(element => element.classList.toggle(\"scale-0\"));\r\n\r\n        const options = {\r\n          url: inlineVideo.getAttribute(\"data-vimeo-inline-video\"),\r\n          dnt: true,\r\n        };\r\n\r\n        const videoPlayer = new Vimeo.Player(inlineVideo, options);\r\n\r\n        videoPlayer.on(\"loaded\", () => {\r\n          coverImage.classList.add(\"opacity-0\", \"pointer-events-none\");\r\n          videoPlayer.play();\r\n        });\r\n      });\r\n    }\r\n  });\r\n}\r\n"],
  "mappings": "mBAAQ,IAAMA,EAAS,OAAe,MCEjCC,EAGH,SAAS,iBAAiB,qBAAqB,EAAE,QAAQC,GAAwB,CAC/E,IAAMC,EAAcD,EAAqB,cAAc,2BAA2B,EAElF,GAAI,CAACC,EAAa,CAChB,QAAQ,MAAM,kDAAkD,EAChE,MACF,CAEA,IAAMC,EAAaF,EAAqB,cAAc,2BAA2B,EAC3EG,EAAaH,EAAqB,cAAc,0BAA0B,EAE5EE,GAAcC,GAChBA,EAAW,iBAAiB,QAAS,IAAM,CACzCA,EACG,iBAAiB,8CAA8C,EAC/D,QAAQC,GAAWA,EAAQ,UAAU,OAAO,SAAS,CAAC,EAEzD,IAAMC,EAAU,CACd,IAAKJ,EAAY,aAAa,yBAAyB,EACvD,IAAK,EACP,EAEMK,EAAc,IAAIP,EAAM,OAAOE,EAAaI,CAAO,EAEzDC,EAAY,GAAG,SAAU,IAAM,CAC7BJ,EAAW,UAAU,IAAI,YAAa,qBAAqB,EAC3DI,EAAY,KAAK,CACnB,CAAC,CACH,CAAC,CAEL,CAAC,EAhCD,QAAQ,MAAM,qBAAqB",
  "names": ["Vimeo", "Vimeo", "inlineVideoComponent", "inlineVideo", "coverImage", "playButton", "element", "options", "videoPlayer"]
}