{"version":3,"file":"PrototypeVideo.DVFGKLmR.mjs","names":[],"sources":["https:/framerusercontent.com/modules/G8bKvRv2aqmbIqJWVYVd/XPl2wmv0o75RWPIzExCz/PrototypeVideo.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Video player for the portfolio, set up like the other case study videos:\n * autoplay, loop, muted, plays inline on phones, no controls, fills its frame.\n * Select the layer and choose a video file in the right-hand panel.\n *\n * Height can be fixed, or set to \"Fit\" so the player keeps the chosen\n * aspect ratio at any width (useful for responsive thumbnails and heroes).\n * \"Scale\" zooms the video inside its frame (1 = no zoom), cropping the edges.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 320\n * @framerIntrinsicHeight 696\n */export default function PrototypeVideo(props){const{video,poster,autoplay,loop,muted,controls,fit,radius,background,aspect,zoom,label,style}=props;const frame={width:\"100%\",height:\"100%\",aspectRatio:aspect,borderRadius:radius,overflow:\"hidden\",background,...style};if(!video){return /*#__PURE__*/_jsxs(\"div\",{style:{...frame,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",gap:8,padding:24,boxSizing:\"border-box\",border:\"2px dashed rgb(107, 107, 107)\",fontFamily:\"Outfit, sans-serif\",textAlign:\"center\",color:\"rgb(26, 26, 26)\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:18,fontWeight:600},children:label}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:14,color:\"rgb(107, 107, 107)\"},children:\"Select this layer, then choose a video file in the right panel\"})]});}return /*#__PURE__*/_jsx(\"div\",{style:frame,children:/*#__PURE__*/_jsx(\"video\",{src:video,poster:poster||undefined,autoPlay:autoplay,loop:loop,muted:muted,controls:controls,playsInline:true,preload:\"auto\",style:{width:\"100%\",height:\"100%\",objectFit:fit,display:\"block\",transform:zoom&&zoom!==1?`scale(${zoom})`:undefined,transformOrigin:\"50% 50%\"}},video)});}PrototypeVideo.defaultProps={autoplay:true,loop:true,muted:true,controls:false,fit:\"cover\",radius:40,background:\"rgb(245, 245, 242)\",aspect:.46,zoom:1,label:\"Prototype video\"};addPropertyControls(PrototypeVideo,{video:{type:ControlType.File,title:\"Video\",allowedFileTypes:[\"mp4\",\"webm\",\"mov\"]},poster:{type:ControlType.Image,title:\"Poster\"},autoplay:{type:ControlType.Boolean,title:\"Autoplay\",defaultValue:true},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:true},muted:{type:ControlType.Boolean,title:\"Muted\",defaultValue:true},controls:{type:ControlType.Boolean,title:\"Controls\",defaultValue:false},fit:{type:ControlType.Enum,title:\"Fit\",options:[\"cover\",\"contain\"],optionTitles:[\"Fill\",\"Fit\"],defaultValue:\"cover\"},aspect:{type:ControlType.Number,title:\"Aspect ratio\",defaultValue:.46,min:.2,max:3,step:.01,description:\"Width \\xf7 height, used when the height is set to Fit. 16:9 is 1.78.\"},zoom:{type:ControlType.Number,title:\"Scale\",defaultValue:1,min:1,max:2.5,step:.05,description:\"Zooms the video inside its frame. 1 = no zoom.\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:40,min:0,max:100,unit:\"px\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgb(245, 245, 242)\"},label:{type:ControlType.String,title:\"Placeholder label\",defaultValue:\"Prototype video\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PrototypeVideo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"320\",\"framerIntrinsicHeight\":\"696\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PrototypeVideo.map"],"mappings":"mKAaG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,QAAM,SAAO,WAAS,OAAK,QAAM,WAAS,MAAI,SAAO,aAA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