{"version":3,"file":"BlogShort.D6EMqUnz.mjs","names":["__esmMin","init_jsx_runtime","c","p","addPropertyControls","init_framer_BWFVvmND","videoId","m","url","BlogShort","props","id","CSS","title","caption","__FramerMetadata__","init_BlogShort","ControlType","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerSupportedLayoutHeight\"","\"framerSupportedLayoutWidth\"","\"framerContractVersion\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/Q9t24cyoFSmXjfghO1e8/lhaHJ2iVpcEYoMC7uQmj/BlogShort.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const CSS=`.fcbs { width: 100%; margin: 28px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: \"Inter\", ui-sans-serif, system-ui, sans-serif; box-sizing: border-box; }\n.fcbs-frame { width: 100%; max-width: 320px; aspect-ratio: 9 / 16; border: 2px solid #111; border-radius: 22px; overflow: hidden; background: #111; box-shadow: 6px 6px 0 #C7F6FE; box-sizing: border-box; }\n.fcbs-frame iframe { display: block; width: 100%; height: 100%; border: 0; }\n.fcbs-caption { max-width: 320px; font-size: 14px; line-height: 1.5; color: #555; text-align: center; }`;// Accepts a Shorts link, a youtu.be link, a watch link or a bare id\nfunction videoId(url){const m=(url||\"\").match(/(?:shorts\\/|youtu\\.be\\/|v=|embed\\/)([\\w-]{11})/);if(m)return m[1];return/^[\\w-]{11}$/.test(url||\"\")?url:\"\";}/**\n * Vertical YouTube Short for blog posts.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function BlogShort(props){const{url,title,caption,style}=props;const id=videoId(url);return /*#__PURE__*/_jsxs(\"div\",{className:\"fcbs\",style:style,children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:CSS}}),/*#__PURE__*/_jsx(\"div\",{className:\"fcbs-frame\",children:id?/*#__PURE__*/_jsx(\"iframe\",{src:`https://www.youtube.com/embed/${id}?rel=0&playsinline=1`,title:title||\"YouTube Short\",loading:\"lazy\",referrerPolicy:\"strict-origin-when-cross-origin\",allow:\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\",allowFullScreen:true}):null}),caption?/*#__PURE__*/_jsx(\"div\",{className:\"fcbs-caption\",children:caption}):null]});}addPropertyControls(BlogShort,{url:{type:ControlType.String,title:\"Short URL\",defaultValue:\"https://www.youtube.com/shorts/bhYI6yWj7eQ\"},title:{type:ControlType.String,title:\"Title\"},caption:{type:ControlType.String,title:\"Caption\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BlogShort\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BlogShort.map"],"mappings":"A,8JAIA,SAASM,EAAQ,EAAI,CAAC,IAAMC,GAAGC,GAAK,GAAA,CAAI,MAAM,gDAAgD,EAAmB,OAAdD,EAASA,EAAE,GAAS,cAAc,KAAKC,GAAK,EAAE,EAAEA,EAAI,EAAG,CAKvJ,SAAwBC,EAAU,EAAM,CAAC,GAAK,CAAC,MAAI,QAAM,UAAQ,SAAOC,EAAYC,EAAGL,EAAQE,CAAG,EAAE,MAAoB,gBAAM,MAAM,CAAC,UAAU,OAAa,QAAM,SAAS,CAAc,gBAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAOI,CAAG,CAAC,CAAC,EAAe,gBAAK,MAAM,CAAC,UAAU,aAAa,SAASD,EAAgB,gBAAK,SAAS,CAAC,IAAI,iCAAiCA,EAAG,sBAAsB,MAAME,GAAO,gBAAgB,QAAQ,OAAO,eAAe,kCAAkC,MAAM,sGAAsG,gBAAgB,EAAI,CAAC,EAAE,IAAI,CAAC,EAAEC,EAAqB,gBAAK,MAAM,CAAC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