{"version":3,"file":"BlogVideoTriptych.D8_T6Tc7.mjs","names":["useState","useMemo","useCallback","__esmMin","window","pe","te","init_ssg_sandbox_shims","init_npm_react_18_3_1","_e","ne","p","c","init_jsx_runtime","addPropertyControls","init_framer_DcxuU94H","ControlType","BlogVideoTriptych","props","activeAudioIndex","setActiveAudioIndex","videos","video1","caption1","video2","caption2","video3","caption3","cardBasis","gap","hasFixedHeight","explicitHeight","style","normalized","handleMuteToggle","current","index","navigateToLink","linkUrl","openInNewTab","hideScrollbars","event","video","cardRadius","borderColor","backgroundColor","fitMode","showMuteButtons","muteButtonBackground","muteButtonColor","showCaptions","captionColor","captionFont","__FramerMetadata__","init_BlogVideoTriptych","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerSupportedLayoutWidth\"","\"framerContractVersion\"","\"framerSupportedLayoutHeight\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/7SuVMjqL1kpMSjmT0n3t/sCevAqQ1q7FubDxTMBBl/BlogVideoTriptych.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{startTransition,useCallback,useMemo,useState}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function BlogVideoTriptych(props){const{video1,video2,video3,caption1,caption2,caption3,showCaptions,fitMode,hideScrollbars,cardRadius,gap,borderColor,backgroundColor,captionColor,showMuteButtons,muteButtonBackground,muteButtonColor,linkUrl,openInNewTab,captionFont,style}=props;const[activeAudioIndex,setActiveAudioIndex]=useState(null);const videos=useMemo(()=>[{src:video1,caption:caption1},{src:video2,caption:caption2},{src:video3,caption:caption3}],[video1,video2,video3,caption1,caption2,caption3]);const cardBasis=useMemo(()=>{return`max(180px, calc((100% - ${gap*2}px) / 3))`;},[gap]);const hasFixedHeight=useMemo(()=>{const explicitHeight=style?.height;if(explicitHeight===undefined||explicitHeight===null)return false;if(typeof explicitHeight===\"number\")return true;const normalized=String(explicitHeight).trim().toLowerCase();return normalized!==\"\"&&normalized!==\"auto\";},[style?.height]);const handleMuteToggle=useCallback(index=>{startTransition(()=>{setActiveAudioIndex(current=>current===index?null:index);});},[]);const navigateToLink=useCallback(()=>{if(!linkUrl)return;if(typeof window!==\"undefined\"){if(openInNewTab){window.open(linkUrl,\"_blank\",\"noopener,noreferrer\");}else{window.location.assign(linkUrl);}}},[linkUrl,openInNewTab]);return /*#__PURE__*/_jsx(\"section\",{style:{position:\"relative\",width:\"100%\",height:hasFixedHeight?\"100%\":\"auto\",display:\"flex\",flexWrap:\"nowrap\",alignItems:\"stretch\",gap,overflowX:\"auto\",overflowY:\"hidden\",WebkitOverflowScrolling:\"touch\",scrollbarWidth:hideScrollbars?\"none\":\"auto\",msOverflowStyle:hideScrollbars?\"none\":\"auto\",...style},children:videos.map((video,index)=>/*#__PURE__*/_jsxs(\"figure\",{style:{margin:0,flex:`0 0 ${cardBasis}`,width:cardBasis,minWidth:180,display:\"flex\",flexDirection:\"column\",gap:10,height:hasFixedHeight?\"100%\":\"auto\"},children:[/*#__PURE__*/_jsxs(\"div\",{role:\"link\",tabIndex:0,onClick:navigateToLink,onKeyDown:event=>{if(event.key===\"Enter\"||event.key===\" \"){event.preventDefault();navigateToLink();}},\"aria-label\":`Open external link for ${video.caption||`video ${index+1}`}`,style:{position:\"relative\",borderRadius:cardRadius,border:`1px solid ${borderColor}`,background:backgroundColor,overflow:\"hidden\",flex:hasFixedHeight?1:undefined,minHeight:hasFixedHeight?0:undefined,cursor:\"pointer\"},children:[/*#__PURE__*/_jsx(\"video\",{src:video.src,autoPlay:true,muted:activeAudioIndex!==index,loop:true,playsInline:true,controls:false,\"aria-label\":video.caption||`Video ${index+1}`,style:{width:\"100%\",height:hasFixedHeight?\"100%\":\"auto\",display:\"block\",aspectRatio:hasFixedHeight?undefined:\"9 / 16\",objectFit:fitMode,background:\"transparent\"}}),showMuteButtons?/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:event=>{event.preventDefault();event.stopPropagation();handleMuteToggle(index);},onKeyDown:event=>{event.stopPropagation();},\"aria-label\":activeAudioIndex===index?`Mute video ${index+1}`:`Unmute video ${index+1}`,\"aria-pressed\":activeAudioIndex===index,style:{position:\"absolute\",top:10,right:10,border:\"none\",borderRadius:999,padding:\"6px 10px\",fontSize:12,lineHeight:1,cursor:\"pointer\",background:muteButtonBackground,color:muteButtonColor},children:activeAudioIndex===index?\"Mute\":\"Unmute\"}):null]}),showCaptions&&video.caption?/*#__PURE__*/_jsx(\"figcaption\",{style:{color:captionColor,fontSize:captionFont?.fontSize,lineHeight:captionFont?.lineHeight,letterSpacing:captionFont?.letterSpacing,textAlign:captionFont?.textAlign,fontFamily:captionFont?.fontFamily,fontWeight:captionFont?.fontWeight,fontStyle:captionFont?.fontStyle,width:\"max-content\",maxWidth:\"100%\"},children:video.caption}):null]},`${video.src}-${index}`))});}addPropertyControls(BlogVideoTriptych,{video1:{type:ControlType.String,title:\"Video 1\",defaultValue:\"https://framerusercontent.com/assets/csfLCE2ICcTe6NVgN2WnXS6KVLM.mp4\"},video2:{type:ControlType.String,title:\"Video 2\",defaultValue:\"https://framerusercontent.com/assets/QdgmAyDKBMnKKxbwYWG5jFjwH4.mp4\"},video3:{type:ControlType.String,title:\"Video 3\",defaultValue:\"https://framerusercontent.com/assets/EpeIUBByyVjOFhL8hV1oam1whT8.mp4\"},caption1:{type:ControlType.String,title:\"Caption 1\",defaultValue:\"\",placeholder:\"Optional caption\"},caption2:{type:ControlType.String,title:\"Caption 2\",defaultValue:\"\",placeholder:\"Optional caption\"},caption3:{type:ControlType.String,title:\"Caption 3\",defaultValue:\"\",placeholder:\"Optional caption\"},showCaptions:{type:ControlType.Boolean,title:\"Show Captions\",defaultValue:true},fitMode:{type:ControlType.Enum,title:\"Fit\",options:[\"contain\",\"cover\"],optionTitles:[\"Contain\",\"Cover\"],defaultValue:\"cover\"},hideScrollbars:{type:ControlType.Boolean,title:\"Hide Scrollbars\",defaultValue:true},cardRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:16,min:0,max:48,step:1},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:16,min:0,max:48,step:1},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"#EEEEEE\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},captionColor:{type:ControlType.Color,title:\"Caption Color\",defaultValue:\"#000000\"},showMuteButtons:{type:ControlType.Boolean,title:\"Mute Buttons\",defaultValue:true},muteButtonBackground:{type:ControlType.Color,title:\"Mute BG\",defaultValue:\"#000000\",optional:true},muteButtonColor:{type:ControlType.Color,title:\"Mute Color\",defaultValue:\"#FFFFFF\",optional:true},linkUrl:{type:ControlType.String,title:\"Link URL\",defaultValue:\"https://www.linkedin.com/company/folioco/posts/\"},openInNewTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:true},captionFont:{type:ControlType.Font,title:\"Caption Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BlogVideoTriptych\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BlogVideoTriptych.map"],"mappings":"A,oNAGG,SAAwBiB,EAAkB,EAAM,CAAC,GAAK,CAAC,SAAO,SAAO,SAAO,WAAS,WAAS,WAAS,eAAa,UAAQ,iBAAe,aAAW,MAAI,cAAY,kBAAgB,eAAa,kBAAgB,uBAAqB,kBAAgB,UAAQ,eAAa,cAAY,SAAOC,EAAW,CAACC,EAAiBC,GAAqBpB,EAAS,IAAI,EAAQqB,EAAOpB,MAAY,CAAC,CAAC,IAA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