{"version":3,"file":"VimeoPlayerCustom.CPCsGCFf.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Iz9g4ITlKLArqak67eh6/mBIZhzCTxMaB5L1yoqE0/VimeoPlayerCustom.js"],"sourcesContent":["// Vimeo single-video component that accepts a Vimeo URL or ID\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/** Extract Vimeo ID from a URL or return the string if it's already an ID */function extractVimeoId(input){if(!input)return\"\";const trimmed=input.trim();// If it's just digits, assume it's already an ID\nif(/^\\d+$/.test(trimmed))return trimmed;// Try to pull the ID out of common Vimeo URL patterns\nconst match=trimmed.match(/vimeo\\.com\\/(?:video\\/)?(\\d+)/);if(match&&match[1])return match[1];// Fallback – return original (may fail gracefully in iframe)\nreturn trimmed;}/**\n * @framerIntrinsicWidth 960\n * @framerIntrinsicHeight 540\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function VimeoPlayerCustom(props){const{video=\"https://vimeo.com/76979871\",title=\"Video\",backgroundColor=\"#000000\",borderRadius=8,autoplay=true,muted=false,loop=false,controls=true,style}=props;const videoId=extractVimeoId(video);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",aspectRatio:\"16 / 9\",borderRadius,overflow:\"hidden\",position:\"relative\",backgroundColor,...style},children:videoId&&/*#__PURE__*/_jsx(\"iframe\",{src:`https://player.vimeo.com/video/${videoId}?api=1&autoplay=${autoplay?1:0}&muted=${muted?1:0}&loop=${loop?1:0}&controls=${controls?1:0}`,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",border:\"none\",display:\"block\",borderRadius},allow:\"autoplay; fullscreen; picture-in-picture\",title:title})});}addPropertyControls(VimeoPlayerCustom,{video:{type:ControlType.String,title:\"Vimeo URL / ID\",defaultValue:\"https://vimeo.com/76979871\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Video\"},autoplay:{type:ControlType.Boolean,title:\"Autoplay\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},muted:{type:ControlType.Boolean,title:\"Muted\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},controls:{type:ControlType.Boolean,title:\"Controls\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:32,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VimeoPlayerCustom\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"960\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"540\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VimeoPlayerCustom.map"],"mappings":"4JAC4K,SAAS,EAAe,EAAM,CAAC,GAAG,CAAC,EAAM,MAAM,GAAG,IAAM,EAAQ,EAAM,MAAM,CACxP,GAAG,QAAQ,KAAK,EAAQ,CAAC,OAAO,EAChC,IAAM,EAAM,EAAQ,MAAM,gCAAgC,CAC1D,OAD8D,GAAO,EAAM,GAAU,EAAM,GACpF,EAMJ,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,QAAM,6BAA6B,QAAM,QAAQ,kBAAgB,UAAU,eAAa,EAAE,WAAS,GAAK,QAAM,GAAM,OAAK,GAAM,WAAS,GAAK,SAAO,EAAY,EAAQ,EAAe,EAAM,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,YAAY,SAAS,eAAa,SAAS,SAAS,SAAS,WAAW,kBAAgB,GAAG,EAAM,CAAC,SAAS,GAAsB,EAAK,SAAS,CAAC,IAAI,kCAAkC,EAAQ,kBAAkB,EAAS,EAAE,EA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