{"version":3,"file":"LoopVideo.mwqKDjMN.mjs","names":["useState","_Fragment","__esmMin","init_npm_react_18_3_1","l","_e","p","c","init_jsx_runtime","init_framer_CKT6jEEQ","addPropertyControls","ControlType","ClickToPlayVideo","props","playing","setPlaying","radius","style","poster","label","init_ClickToPlayVideo","LoopVideo","src","fit","init_LoopVideo"],"sources":["https:/framerusercontent.com/modules/fnPCyFz2yWV2mcnWvxyM/aqquzU8LESayW9AF36Ns/ClickToPlayVideo.js","https:/framerusercontent.com/modules/AzDIIh7LwR8EiIjFMqhh/Jl7qUW6eAUooJtV0VoBv/LoopVideo.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ClickToPlayVideo(props){const{src=\"\",poster=\"\",label=\"\",radius=\"20px\",style}=props;const[playing,setPlaying]=useState(false);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",borderRadius:radius,background:\"#000\",cursor:playing?\"default\":\"pointer\",...style},onClick:()=>setPlaying(true),children:playing?/*#__PURE__*/_jsx(\"video\",{src:src,autoPlay:true,controls:true,playsInline:true,style:{width:\"100%\",height:\"100%\",objectFit:\"contain\",display:\"block\",background:\"#000\"}}):/*#__PURE__*/_jsxs(_Fragment,{children:[poster?/*#__PURE__*/_jsx(\"img\",{src:poster,alt:label,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}}):null,/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:\"linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0) 45%)\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:\"50%\",top:\"50%\",width:64,height:64,marginLeft:-32,marginTop:-32,borderRadius:32,background:\"#C7F73E\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:0,height:0,marginLeft:5,borderTop:\"11px solid transparent\",borderBottom:\"11px solid transparent\",borderLeft:\"18px solid #0a0a0a\"}})}),label?/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:16,right:16,bottom:14,color:\"#fff\",fontFamily:\"Space Grotesk, Inter, sans-serif\",fontSize:15,fontWeight:500},children:label}):null]})});}addPropertyControls(ClickToPlayVideo,{src:{type:ControlType.String,title:\"Video URL\",defaultValue:\"\"},poster:{type:ControlType.String,title:\"Poster URL\",defaultValue:\"\"},label:{type:ControlType.String,title:\"Label\",defaultValue:\"\"},radius:{type:ControlType.String,title:\"Radius\",defaultValue:\"20px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ClickToPlayVideo\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ClickToPlayVideo.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function LoopVideo(props){const{src=\"\",fit=\"cover\",radius=\"20px\",style}=props;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",overflow:\"hidden\",borderRadius:radius,background:\"#000\",...style},children:src?/*#__PURE__*/_jsx(\"video\",{src:src,autoPlay:true,loop:true,muted:true,playsInline:true,preload:\"metadata\",style:{width:\"100%\",height:\"100%\",objectFit:fit,display:\"block\"}}):null});}addPropertyControls(LoopVideo,{src:{type:ControlType.String,title:\"Video URL\",defaultValue:\"\"},fit:{type:ControlType.Enum,title:\"Fit\",options:[\"cover\",\"contain\"],optionTitles:[\"Cover\",\"Contain\"],defaultValue:\"cover\"},radius:{type:ControlType.String,title:\"Radius\",defaultValue:\"20px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LoopVideo\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LoopVideo.map"],"mappings":"A,wLAGG,SAAwBY,EAAiB,EAAM,CAAC,GAAK,CAAC,MAAI,GAAG,SAAO,GAAG,QAAM,GAAG,SAAO,OAAO,SAAOC,EAAW,CAACC,EAAQC,GAAYf,EAAS,EAAK,EAAE,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,aAAagB,EAAO,WAAW,OAAO,OAAOF,EAAQ,UAAU,UAAU,GAAGG,CAAK,EAAE,YAAYF,EAAW,EAAI,EAAE,SAASD,EAAqB,gBAAK,QAAQ,CAAK,MAAI,SAAS,GAAK,SAAS,GAAK,YAAY,GAAK,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,UAAU,QAAQ,QAAQ,WAAW,MAAM,CAAC,CAAC,EAAe,gBAAMb,EAAU,CAAC,SAAS,CAACiB,EAAoB,gBAAK,MAAM,CAAC,IAAIA,EAAO,IAAIC,EAAM,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,QAAQ,OAAO,CAAC,CAAC,EAAE,KAAkB,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,WAAW,8DAA8D,CAAC,CAAC,EAAe,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,KAAK,MAAM,IAAI,MAAM,MAAM,GAAG,OAAO,GAAG,WAAW,IAAI,UAAU,IAAI,aAAa,GAAG,WAAW,UAA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