{"version":3,"file":"VideoEmbed.D6fM3pIS.mjs","names":["__esmMin","p","c","init_jsx_runtime","addPropertyControls","init_framer_Bf4_tcb2","toEmbed","u","raw","m","VideoEmbed","props","src","url","style","isFile","sectionSpacing","title","showTitle","titleColor","radius","init_VideoEmbed","ControlType"],"sources":["https:/framerusercontent.com/modules/LvB3kLKCTQYAQJLTh29U/a6InCA2oosoyEKORefCL/VideoEmbed.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function toEmbed(raw){const u=String(raw||\"\").trim();if(!u||u.startsWith(\"var(--\"))return null;let m=u.match(/youtube\\.com\\/embed\\/([\\w-]{6,})/);if(m)return\"https://www.youtube.com/embed/\"+m[1];m=u.match(/youtube\\.com\\/watch\\?v=([\\w-]{6,})/);if(m)return\"https://www.youtube.com/embed/\"+m[1];m=u.match(/youtu\\.be\\/([\\w-]{6,})/);if(m)return\"https://www.youtube.com/embed/\"+m[1];m=u.match(/vimeo\\.com\\/(\\d{6,})/);if(m)return\"https://player.vimeo.com/video/\"+m[1];if(/\\.(mp4|webm)(\\?|$)/.test(u))return u;return null;}/**\n * CMS-driven video embed. Renders nothing at all when the URL field is empty,\n * so case studies without a video skip the whole section.\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function VideoEmbed(props){const{url=\"\",title=\"Hear it from the team\",titleColor=\"#FFFFFF\",radius=16,sectionSpacing=false,showTitle=true,style}=props;const src=toEmbed(url);if(!src)return /*#__PURE__*/_jsx(\"div\",{style:{...style,display:\"none\"}});const isFile=/\\.(mp4|webm)(\\?|$)/.test(src);return /*#__PURE__*/_jsxs(\"div\",{className:sectionSpacing?\"cl-video-space\":undefined,style:{...style,display:\"flex\",flexDirection:\"column\",gap:26,width:\"100%\"},children:[sectionSpacing?/*#__PURE__*/_jsx(\"style\",{children:`.cl-video-space{padding-top:92px}@media(max-width:1199.98px){.cl-video-space{padding-top:80px}}@media(max-width:809.98px){.cl-video-space{padding-top:64px}}@media(min-width:1600px){.cl-video-space{padding-top:116px}}@media(min-width:2000px){.cl-video-space{padding-top:138px}}`}):null,title&&showTitle?/*#__PURE__*/_jsx(\"h3\",{style:{fontFamily:\"'Bebas Neue', sans-serif\",fontWeight:400,fontSize:30,lineHeight:1,color:titleColor,margin:0},children:title}):null,/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",aspectRatio:\"16 / 9\",borderRadius:radius,overflow:\"hidden\",background:\"#101010\"},children:isFile?/*#__PURE__*/_jsx(\"video\",{src:src,controls:true,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\"}}):/*#__PURE__*/_jsx(\"iframe\",{src:src,title:title||\"Case study video\",allow:\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\",allowFullScreen:true,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",border:0}})})]});}addPropertyControls(VideoEmbed,{url:{type:ControlType.Link,title:\"Video URL\"},title:{type:ControlType.String,defaultValue:\"Hear it from the team\"},radius:{type:ControlType.Number,defaultValue:16,min:0,max:32},showTitle:{type:ControlType.Boolean,defaultValue:true,title:\"Show title\"},titleColor:{type:ControlType.Color,defaultValue:\"#FFFFFF\",title:\"Title color\"},sectionSpacing:{type:ControlType.Boolean,defaultValue:false,title:\"Top spacing\",description:\"Adds the section's top spacing inside the component, so an empty video leaves no gap.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VideoEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VideoEmbed.map"],"mappings":"A,8JAA6G,SAASM,EAAQ,EAAI,CAAC,IAAMC,EAAE,OAAOC,GAAK,EAAE,CAAC,CAAC,KAAK,EAAE,GAAG,CAACD,GAAGA,E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