{"version":3,"file":"ProjectVideo.CLIaH5Im.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/dMTckp4JL8CqEeViKa6t/CX25Pk6KHvSG84bGD9bh/ProjectVideo.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useState}from\"react\";const SLUG_TO_VIMEO={\"onside\":\"1177845725\",\"mvmt-raptor\":\"1172736560\",\"kosas-sport-science\":\"1174180154\",\"mvmt-sunnies\":\"1172737303\",\"jaxxon\":\"1172769560\",\"movado-bold\":\"1172737665\",\"olivia-burton\":\"1172738472\",\"mvmt-ceramic\":\"1172738669\",\"supergoop\":\"1172738948\",\"kosas-holiday\":\"1174180051\",\"mvmt-raptor-auto\":\"1172739147\",\"mvmt-ocean\":\"1172739309\",\"kosas-sport-copy\":\"1172739476\",\"mvmt-crystal\":\"1172773663\",\"kosas-chemistry\":\"1174180087\",\"mvmt-ppa-tour\":\"1172739687\",\"mvmt-sport\":\"1172740016\",\"rodan-fields\":\"1172768760\",\"mvmt-party-favor-glasses\":\"1172741572\",\"mvmt-call-of-duty\":\"1172741727\",\"movado-bold-quest\":\"1172738154\",\"mvmt-cali-diver\":\"1172741878\",\"marriott-bonvoy\":\"\",\"specs\":\"1204350503\",\"lensfest\":\"1204348890\"};function getIdFromSlug(){try{const parts=window.location.pathname.split(\"/\");const slug=parts[parts.length-1]||\"\";if(slug&&SLUG_TO_VIMEO[slug]!==undefined){return SLUG_TO_VIMEO[slug];}}catch(e){}return\"\";}export default function ProjectVideo({fallbackId}){const[vimeoId,setVimeoId]=useState(()=>{return fallbackId||getIdFromSlug()||\"\";});useEffect(()=>{if(fallbackId){setVimeoId(fallbackId);}else{const id=getIdFromSlug();if(id)setVimeoId(id);}},[fallbackId]);if(!vimeoId)return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",aspectRatio:\"16/9\",backgroundColor:\"#111\"}});return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",aspectRatio:\"16/9\",backgroundColor:\"#000\",overflow:\"hidden\",position:\"relative\"},children:/*#__PURE__*/_jsx(\"iframe\",{src:`https://player.vimeo.com/video/${vimeoId}?autoplay=1&muted=1&loop=1&background=1&quality=1080p`,style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",border:\"none\"},allow:\"autoplay; fullscreen; picture-in-picture\",allowFullScreen:true})});}addPropertyControls(ProjectVideo,{fallbackId:{type:ControlType.String,title:\"Vimeo ID\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProjectVideo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProjectVideo.map"],"mappings":"0LAA81B,SAAS,GAAe,CAAC,GAAG,CAAC,IAAM,EAAM,EAAO,SAAS,SAAS,MAAM,GAAG,EAAQ,EAAK,EAAM,EAAM,OAAO,IAAI,GAAG,GAAG,GAAM,EAAc,KAAQ,IAAA,GAAW,OAAO,EAAc,EAAO,MAAS,CAAC,CAAC,MAAM,EAAG,CAAC,SAAwB,EAAa,CAAC,cAAY,CAAC,GAAK,CAAC,EAAQ,GAAYA,MAAqB,GAAY,EAAc,GAAG,EAAI,EAAyO,OAAvO,MAAc,CAAC,GAAG,EAAY,EAAW,CAAU,MAAO,CAAC,IAAM,EAAG,EAAc,EAAK,GAAG,EAAW,CAAE,CAAE,CAAC,EAAE,CAAC,CAAU,CAAC,EAAM,EAA6H,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,YAAY,OAAO,gBAAgB,OAAO,SAAS,SAAS,SAAS,UAAU,EAAE,SAAsB,EAAK,SAAS,CAAC,IAAI,kCAAkC,EAAQ,uDAAuD,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,OAAO,OAAO,OAAO,OAAO,MAAM,EAAE,MAAM,2CAA2C,gBAAgB,E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