{"version":3,"file":"Youtube.kEYEzeO2.mjs","names":[],"sources":["https:/framerusercontent.com/modules/2EKZwuzbK5qqRmtKLqTS/IE5EwFhdfywAQSHbWNQC/Youtube.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerDefaultWidth 300\n * @framerDefaultHeight 150\n */export default function Youtube(props){const getYouTubeID=input=>{// Regex die verschillende YouTube URL formaten matcht\nconst regex=/(?:youtube\\.com\\/(?:[^\\/]+\\/.+\\/|(?:v|e(?:mbed)?)\\/|.*[?&]v=)|youtu\\.be\\/)([^\"&?\\/\\s]{11})/i;const match=input.match(regex);// Als er een match is, geef de ID terug (groep 1), anders de originele input\nreturn match?match[1]:input;};const videoId=getYouTubeID(props.videoId);return /*#__PURE__*/_jsx(\"div\",{style:{width:props.width,height:props.height,background:\"transparent\"},children:/*#__PURE__*/_jsxs(\"article\",{role:\"presentation\",style:{width:\"100%\",height:\"100%\",position:\"relative\",borderRadius:\"0px\",transform:\"unset\",cursor:\"pointer\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"link\",{rel:\"preconnect\",href:\"https://www.youtube.com\"}),/*#__PURE__*/_jsx(\"link\",{rel:\"preconnect\",href:\"https://www.google.com\"}),/*#__PURE__*/_jsx(\"link\",{rel:\"preconnect\",href:\"https://i.ytimg.com\"}),/*#__PURE__*/_jsx(\"img\",{decoding:\"async\",src:\"https://i.ytimg.com/vi_webp/\"+videoId+\"/sddefault.webp\",alt:\"Thumbnail\",style:{position:\"absolute\",top:\"0px\",left:\"0px\",height:\"100%\",width:\"100%\",objectFit:\"cover\"}}),/*#__PURE__*/_jsx(\"iframe\",{title:\"Youtube Video\",allow:\"presentation; fullscreen; accelerometer; encrypted-media; gyroscope; picture-in-picture\",referrerPolicy:\"strict-origin-when-cross-origin\",src:\"https://www.youtube.com/embed/\"+videoId+\"?v=\"+videoId+\"&iv_load_policy=3&rel=0&modestbranding=1&playsinline=1\",frameBorder:\"0\",style:{position:\"absolute\",top:\"0px\",left:\"0px\",height:\"100%\",width:\"100%\"}})]})});}// Defining the defaults\naddPropertyControls(Youtube,{width:{type:ControlType.Number,defaultValue:300,min:0},height:{type:ControlType.Number,defaultValue:150,min:0},videoId:{type:ControlType.String,defaultValue:\"aFBIWGcbuDs\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Youtube\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerDefaultWidth\":\"300\",\"framerDefaultHeight\":\"150\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Youtube.map"],"mappings":"mKAKG,SAAwB,EAAQ,EAAM,CAEX,IAAM,GAFyB,GAAO,CACsC,IAAM,EAAM,EAAM,MAAM,6FAAK,EACvI,OAAO,EAAM,EAAM,GAAG,CAAM,EAAgB,CAAa,EAAM,OAAO,EAAE,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAM,MAAM,OAAO,EAAM,OAAO,WAAW,aAAa,EAAE,SAAsB,EAAM,UAAU,CAAC,KAAK,eAAe,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,aAAa,MAAM,UAAU,QAAQ,OAAO,UAAU,SAAS,QAAQ,EAAE,SAAS,CAAc,EAAK,OAAO,CAAC,IAAI,aAAa,KAAK,yBAAyB,CAAC,EAAe,EAAK,OAAO,CAAC,IAAI,aAAa,KAAK,wBAAwB,CAAC,EAAe,EAAK,OAAO,CAAC,IAAI,aAAa,KAAK,qBAAqB,CAAC,EAAe,EAAK,MAAM,CAAC,SAAS,QAAQ,IAAI,+BAA+B,EAAQ,kBAAkB,IAAI,YAAY,MAAM,CAAC,SAAS,WAAW,IAAI,MAAM,KAAK,MAAM,OAAO,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