{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/NEd4VmDdsxM3StIUbddO/4b2t9Fx4KOsM4G7k9Rv5/Youtube.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{ControlType,addPropertyControls,RenderTarget}from\"framer\";import{defaultEvents}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";var YoutubeSettings;(function(YoutubeSettings){YoutubeSettings[\"playNormal\"]=\"Off\";YoutubeSettings[\"playAuto\"]=\"On\";YoutubeSettings[\"playLoop\"]=\"Loop\";YoutubeSettings[\"controlsPlayback\"]=\"Playback\";YoutubeSettings[\"controlsInfo\"]=\"Video Info\";YoutubeSettings[\"controlsNone\"]=\"None\";})(YoutubeSettings||(YoutubeSettings={}));/**\n * YOUTUBE\n *\n * @framerIntrinsicWidth 375\n * @framerIntrinsicHeight 210\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */ export function Youtube(props){const{url,play,shouldMute,controls=false,onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp,canvasPlay}=props;const guessIdentifier=urlMaybe=>{if(!urlMaybe)return null;let identifier=\"\";// https://www.youtube.com/watch?v=cAs3senSITIve\nconst watchPrefix=\"youtube.com/watch?v=\";const watchIndex=urlMaybe.indexOf(watchPrefix);if(watchIndex>=0){identifier=urlMaybe.substring(watchIndex+watchPrefix.length);}else{// https://www.youtube.com/embed/cAs3senSITIve\nconst embedPrefix=\"youtube.com/embed/\";const embedIndex=urlMaybe.indexOf(embedPrefix);if(embedIndex>=0){identifier=urlMaybe.substring(embedIndex+embedPrefix.length);}else{// https://youtu.be/cAs3senSITIve\nconst shortenedPrefix=\"youtu.be/\";const shortenedIndex=urlMaybe.indexOf(shortenedPrefix);if(shortenedIndex>=0){identifier=urlMaybe.substring(shortenedIndex+shortenedPrefix.length);}else{// Everything else\nidentifier=urlMaybe;}}}// Strip off the query string, if any\nconst queryIndex=identifier.indexOf(\"?\");if(queryIndex>=0){identifier=identifier.substring(0,queryIndex);}// What's left might be an identifier\nreturn identifier.match(/[\\w_]+/)?identifier:null;};const identifier1=guessIdentifier(url||Youtube.defaultProps.url)||\"none\";if(RenderTarget.current()===RenderTarget.canvas){return(/*#__PURE__*/ _jsx(\"div\",{style:{// https://stackoverflow.com/a/18400445\nbackgroundImage:`url(https://i.ytimg.com/vi/${identifier1}/hqdefault.jpg)`,backgroundPosition:\"center\",backgroundSize:\"cover\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",width:\"100%\",height:\"100%\"},children:/*#__PURE__*/ _jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"68\",height:\"48\",children:[/*#__PURE__*/ _jsx(\"path\",{d:\"M 66.52 7.74 C 65.74 4.81 64.03 2.33 61.1 1.55 C 55.79 0.13 34 0 34 0 C 34 0 12.21 0.13 6.9 1.55 C 3.97 2.33 2.27 4.81 1.48 7.74 C 0.06 13.05 0 24 0 24 C 0 24 0.06 34.95 1.48 40.26 C 2.26 43.19 3.97 45.67 6.9 46.45 C 12.21 47.87 34 48 34 48 C 34 48 55.79 47.87 61.1 46.45 C 64.03 45.67 65.74 43.19 66.52 40.26 C 67.94 34.95 68 24 68 24 C 68 24 67.94 13.05 66.52 7.74 Z\",fill:\"rgba(34, 34, 34, 0.85)\"}),/*#__PURE__*/ _jsx(\"path\",{d:\"M 45 24 L 27 14 L 27 34\",fill:\"rgb(255,255,255)\"})]})}));}const autoplay=RenderTarget.current()==RenderTarget.preview&&(play===YoutubeSettings.playAuto||play===YoutubeSettings.playLoop);const loop=autoplay&&play===YoutubeSettings.playLoop;const mute=shouldMute&&autoplay;const showsInfo=controls===YoutubeSettings.controlsInfo;const showsControls=controls===YoutubeSettings.controlsPlayback;// Notes on https://developers.google.com/youtube/player_parameters\n// If \"controls\" is defined at all, an inactive video will get a Youtube logo in the corner\nlet src=`https://www.youtube.com/embed/${identifier1}?playlist=${identifier1}&showinfo=${showsInfo?\"1\":\"0\"}&autoplay=${autoplay?\"1\":\"0\"}&loop=${loop?\"1\":\"0\"}&mute=${mute?\"1\":\"0\"}&iv_load_policy=3&rel=0&?modestbranding=1&playsinline=1`;if(showsControls||autoplay){src+=\"&controls=\"+(showsControls?\"1\":\"0\");}return(/*#__PURE__*/ _jsx(\"iframe\",{width:\"100%\",height:\"100%\",allowFullScreen:true,onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp,frameBorder:0,src:src}));}Youtube.displayName=\"YouTube\";addPropertyControls(Youtube,{url:{type:ControlType.String,title:\"Video\"},play:{type:ControlType.Enum,title:\"Autoplay\",options:[YoutubeSettings.playNormal,YoutubeSettings.playAuto,YoutubeSettings.playLoop,]},canvasPlay:{type:ControlType.Boolean,title:\"On Canvas\",enabledTitle:\"Play\",disabledTitle:\"Pause\"},shouldMute:{title:\"Mute\",type:ControlType.Boolean,enabledTitle:\"Yes\",disabledTitle:\"No\"},...defaultEvents});Youtube.defaultProps={url:\"https://www.youtube.com/watch?v=Fop2oskTug8\",controls:YoutubeSettings.controlsPlayback,play:YoutubeSettings.playNormal,width:375,height:210,canvasPlay:false};\nexport const __FramerMetadata__ = {\"exports\":{\"Youtube\":{\"type\":\"reactComponent\",\"name\":\"Youtube\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"210\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"375\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Youtube.map"],
  "mappings": "yLAAAA,IAA0M,IAAIC,GAAiB,SAASA,EAAgB,CAACA,EAAgB,WAAc,MAAMA,EAAgB,SAAY,KAAKA,EAAgB,SAAY,OAAOA,EAAgB,iBAAoB,WAAWA,EAAgB,aAAgB,aAAaA,EAAgB,aAAgB,MAAO,GAAGA,IAAkBA,EAAgB,CAAC,EAAE,EAQjgB,SAASC,EAAQC,EAAM,CAAC,GAAK,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ay", "identifier1", "urlMaybe", "identifier", "watchPrefix", "watchIndex", "embedPrefix", "embedIndex", "shortenedPrefix", "shortenedIndex", "queryIndex", "RenderTarget", "p", "u", "autoplay", "loop", "mute", "showsInfo", "showsControls", "src", "addPropertyControls", "ControlType", "defaultEvents"]
}
