{"version":3,"file":"VideoCard.CbRklbBL.mjs","names":["useState","_jsxs","_jsx","__esmMin","init_npm_react_18_3_1","_e","p","c","init_jsx_runtime","init_framer_ChujFWHC","addPropertyControls","ControlType","videoId","url","m","VideoCard","props","title","video","style","playing","setPlaying","id","LINEN_100","FONT","BEAN","LINEN_50","__FramerMetadata__","init_VideoCard","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerIntrinsicWidth\"","\"framerContractVersion\"","\"framerSupportedLayoutHeight\"","\"framerSupportedLayoutWidth\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/v0wa872fbWaAaNZN7g97/mWygJY2jCSwR78fZb9qo/VideoCard.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Video Card (LegalMate design system, Kate picked V4 on 25 Nov 2026)\n// A YouTube video for blog posts, held in a card so it doesn't float on the cream page.\n// Linen 100 card, 12px corners, 20px padding, 16px gap.\n// Title row: 28px Bean 900 circle with a Linen 50 play mark, 12px gap, 14m Bean 900 title.\n// Video: 16:9, 8px corners. Shows the thumbnail first and loads the player on click.\nconst BEAN=\"var(--token-9641d032-758b-4c1e-8532-ffe1e4aed94b, rgb(43, 24, 10))\";const LINEN_50=\"var(--token-5a264bf6-58cc-4a9e-9230-261ce81d2d64, rgb(250, 246, 242))\";const LINEN_100=\"var(--token-e9e5222b-dbe2-4efc-b54e-482f2b30cdb4, rgb(246, 240, 233))\";const FONT='\"Geist\", \"Geist Placeholder\", sans-serif';function videoId(url){const m=(url||\"\").match(/(?:youtu\\.be\\/|v=|embed\\/|shorts\\/)([A-Za-z0-9_-]{11})/);return m?m[1]:\"\";}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 720\n */export default function VideoCard(props){const{title,video,style}=props;const[playing,setPlaying]=useState(false);const id=videoId(video);return /*#__PURE__*/_jsxs(\"div\",{style:{...style,width:\"100%\",boxSizing:\"border-box\",background:LINEN_100,borderRadius:12,padding:20,display:\"flex\",flexDirection:\"column\",gap:16},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:12,fontFamily:FONT,fontSize:14,fontWeight:500,lineHeight:\"150%\",letterSpacing:\"-0.04em\",color:BEAN},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{width:28,height:28,borderRadius:\"50%\",background:BEAN,display:\"grid\",placeItems:\"center\",flex:\"none\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 24 24\",fill:LINEN_50,children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 5v14l11-7z\"})})}),title]}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",aspectRatio:\"16 / 9\",borderRadius:8,overflow:\"hidden\",background:BEAN},children:playing&&id?/*#__PURE__*/_jsx(\"iframe\",{src:`https://www.youtube-nocookie.com/embed/${id}?autoplay=1&rel=0&modestbranding=1&playsinline=1&iv_load_policy=3`,title:title,allow:\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen\",allowFullScreen:true,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",border:0}}):/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setPlaying(true),\"aria-label\":`Play video: ${title}`,style:{position:\"absolute\",inset:0,padding:0,border:0,cursor:\"pointer\",background:id?`url(https://i.ytimg.com/vi/${id}/maxresdefault.jpg) center / cover no-repeat`:BEAN},children:/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",left:\"50%\",top:\"50%\",transform:\"translate(-50%, -50%)\",width:64,height:44,borderRadius:12,background:\"rgba(40, 40, 40, 0.85)\",display:\"grid\",placeItems:\"center\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"#fff\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 5v14l11-7z\"})})})})})]});}addPropertyControls(VideoCard,{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Watch: Ali scores a real intake call\"},video:{type:ControlType.String,title:\"YouTube URL\",defaultValue:\"https://youtu.be/efsYthkdZQQ\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VideoCard\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"720\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VideoCard.map"],"mappings":"A,iLAKqT,SAASY,EAAQC,EAAI,CAAC,IAAMC,GAAGD,GAAK,GAAA,CAAI,MAAM,wDAAwD,EAAE,OAAOC,EAAEA,EAAE,GAAG,EAAG,CAI3a,SAAwBC,EAAUC,EAAM,CAAC,GAAK,CAACC,QAAMC,QAAMC,SAAOH,EAAW,CAACI,EAAQC,GAAYrB,EAAS,EAAK,EAAQsB,EAAGV,EAAQM,CAAK,EAAE,MAAoBjB,gBAAM,MAAM,CAAC,MAAM,CAAC,GAAGkB,EAAM,MAAM,OAAO,UAAU,aAAa,WAAWI,EAAU,aAAa,GAAG,QAAQ,GAAG,QAAQ,OAAO,cAAc,SAAS,IAAI,EAAE,EAAE,SAAS,CAActB,gBAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,WAAW,SAAS,IAAI,GAAG,WAAWuB,EAAK,SAAS,GAAG,WAAW,IAAI,WAAW,OAAO,cAAc,UAAU,MAAMC,CAAI,EAAE,SAAS,CAAcvB,gBAAK,OAAO,CAAC,cAAc,OAAO,MAAM,CAAC,MAAM,GAAG,OAAO,GAAG,aAAa,MAAM,WAAWuB,EAAK,QAAQ,OAAO,WAAW,SAAS,KAAK,MAAM,EAAE,SAAsBvB,gBAAK,M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