{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/0sWquksFr1YDkaIgrl9Z/I3GA1LNcnfX23fOhSUyv/Vimeo.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,withCSS}from\"framer\";import{motion}from\"framer-motion\";import Player from\"@vimeo/player\";import{useEffect,useRef,useState}from\"react\";const vimeoRegex=/^https?:\\/\\/vimeo\\.com\\/(\\d+)/;/**\n * VIMEO\n *\n * @framerIntrinsicWidth 375\n * @framerIntrinsicHeight 210\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */ const Vimeo=withCSS(function Vimeo({video,autoplay,playOnCanvas,mute,controls,loop,titles,backgroundColor,onPlay=()=>{},onEnd=()=>{},style,...props}){const[key,setKey]=useState(0);const player=useRef();useEffect(()=>{if(!player.current)return;var ref;const[,id]=(ref=video.match(vimeoRegex))!==null&&ref!==void 0?ref:[null,0];const embeddedPlayer=new Player(player.current,{id,autopause:false,autoplay:RenderTarget.current()===RenderTarget.canvas?playOnCanvas&&autoplay:autoplay,byline:titles,controls:controls,loop:loop,title:titles,muted:mute,responsive:true});embeddedPlayer.on(\"play\",onPlay);embeddedPlayer.on(\"ended\",onEnd);},[player,key]);useEffect(()=>{setKey(key=>key+1);},[video,playOnCanvas,autoplay,mute,controls,loop,titles]);return /*#__PURE__*/ _jsx(motion.div,{style:{background:backgroundColor,...style,position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\"},...props,children:/*#__PURE__*/ _jsx(\"div\",{className:\"framer-vimeo\",ref:player,style:{width:\"100%\",height:\"100%\"}},key)});},[\".framer-vimeo > div { padding: 0 !important; width: 100%; height: 100%; }\",]);Vimeo.defaultProps={video:\"https://vimeo.com/642263700\",autoplay:false,playOnCanvas:false,loop:false,mute:false,backgroundColor:\"rgba(0, 0, 0, 0)\"};addPropertyControls(Vimeo,{video:{title:\"URL\",type:ControlType.String},autoplay:{title:\"Autoplay\",type:ControlType.Boolean,enabledTitle:\"Play\",disabledTitle:\"Pause\"},playOnCanvas:{title:\"On Canvas\",type:ControlType.Boolean,enabledTitle:\"Play\",disabledTitle:\"Pause\"},loop:{title:\"Loop\",type:ControlType.Boolean,enabledTitle:\"Yes\",disabledTitle:\"No\"},mute:{title:\"Mute\",type:ControlType.Boolean,enabledTitle:\"Yes\",disabledTitle:\"No\"},controls:{title:\"Controls\",type:ControlType.Boolean,enabledTitle:\"Show\",disabledTitle:\"Hide\"},titles:{title:\"Titles\",type:ControlType.Boolean,enabledTitle:\"Show\",disabledTitle:\"Hide\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(0, 0, 0, 0)\"},onPlay:{type:ControlType.EventHandler},onEnd:{type:ControlType.EventHandler}});export default Vimeo;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Vimeo\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"375\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"210\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Vimeo.map"],
  "mappings": "4KAAqO,IAAMA,EAAW,gCAQ5OC,EAAMC,EAAQ,SAAe,CAAC,MAAAC,EAAM,SAAAC,EAAS,aAAAC,EAAa,KAAAC,EAAK,SAAAC,EAAS,KAAAC,EAAK,OAAAC,EAAO,gBAAAC,EAAgB,OAAAC,EAAO,IAAI,CAAC,EAAE,MAAAC,EAAM,IAAI,CAAC,EAAE,MAAAC,EAAM,GAAGC,CAAK,EAAE,CAAC,GAAK,CAACC,EAAIC,CAAM,EAAEC,EAAS,CAAC,EAAQC,EAAOC,EAAO,EAAE,OAAAC,EAAU,IAAI,CAAC,GAAG,CAACF,EAAO,QAAQ,OAAO,IAAIG,EAAI,GA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AAM,OAAO,KAAKA,EAAY,QAAQ,aAAa,MAAM,cAAc,IAAI,EAAE,KAAK,CAAC,MAAM,OAAO,KAAKA,EAAY,QAAQ,aAAa,MAAM,cAAc,IAAI,EAAE,SAAS,CAAC,MAAM,WAAW,KAAKA,EAAY,QAAQ,aAAa,OAAO,cAAc,MAAM,EAAE,OAAO,CAAC,MAAM,SAAS,KAAKA,EAAY,QAAQ,aAAa,OAAO,cAAc,MAAM,EAAE,gBAAgB,CAAC,KAAKA,EAAY,MAAM,MAAM,aAAa,aAAa,kBAAkB,EAAE,OAAO,CAAC,KAAKA,EAAY,YAAY,EAAE,MAAM,CAAC,KAAKA,EAAY,YAAY,CAAC,CAAC,EAAE,IAAOC,EAAQ7B",
  "names": ["vimeoRegex", "Vimeo", "withCSS", "video", "autoplay", "playOnCanvas", "mute", "controls", "loop", "titles", "backgroundColor", "onPlay", "onEnd", "style", "props", "key", "setKey", "ye", "player", "pe", "ue", "ref", "id", "embeddedPlayer", "c", "RenderTarget", "p", "motion", "addPropertyControls", "ControlType", "Vimeo_default"]
}
