{"version":3,"file":"shared-lib.BA1jtRGP.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/U7zMxVI8CSiet5WQxGFc/3m8Rdyp4QFez8Xmn7hf7/Iphone_mockup.js","https:/framerusercontent.com/modules/enyMQuzNKQs7S1OJzSzv/A9tZTmGdUpctt982ZzMy/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useRef,useState,useEffect}from\"react\";export default function iPhoneMockup({phoneImage,videoSrc,screenTop,screenBottom,screenLeft,screenRight,baseRadius}){const containerRef=useRef(null);const[width,setWidth]=useState(244);const baseWidth=244;useEffect(()=>{if(!containerRef.current)return;const observer=new ResizeObserver(([entry])=>{setWidth(entry.contentRect.width);});observer.observe(containerRef.current);return()=>observer.disconnect();},[]);const scaledRadius=width/baseWidth*baseRadius;return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{position:\"relative\",width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:`${screenTop}%`,bottom:`${screenBottom}%`,left:`${screenLeft}%`,right:`${screenRight}%`,borderRadius:`${scaledRadius}px`,overflow:\"hidden\",backgroundColor:\"#000\"},children:/*#__PURE__*/_jsx(\"video\",{src:videoSrc,autoPlay:true,loop:true,muted:true,playsInline:true,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}})}),/*#__PURE__*/_jsx(\"img\",{src:phoneImage,style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",pointerEvents:\"none\",display:\"block\"}})]});}iPhoneMockup.defaultProps={phoneImage:\"\",videoSrc:\"\",screenTop:3,screenBottom:3,screenLeft:6,screenRight:6,baseRadius:40};addPropertyControls(iPhoneMockup,{phoneImage:{type:ControlType.Image,title:\"Phone PNG\"},videoSrc:{type:ControlType.File,title:\"Video\",allowedFileTypes:[\"mp4\",\"webm\",\"mov\"]},screenTop:{type:ControlType.Number,title:\"Screen Top %\",min:0,max:30,step:.1,defaultValue:3},screenBottom:{type:ControlType.Number,title:\"Screen Bottom %\",min:0,max:30,step:.1,defaultValue:3},screenLeft:{type:ControlType.Number,title:\"Screen Left %\",min:0,max:30,step:.1,defaultValue:6},screenRight:{type:ControlType.Number,title:\"Screen Right %\",min:0,max:30,step:.1,defaultValue:6},baseRadius:{type:ControlType.Number,title:\"Base Radius\",min:0,max:80,step:1,defaultValue:40}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"iPhoneMockup\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Iphone_mockup.map","// Generated by Framer (199f97e)\nexport default function metadata(params,activeLocale){return{description:\"The future belongs to products that people feel. Studio Felt  is a small team of craftsmen who design emotion\",favicon:\"https://framerusercontent.com/assets/9dRZZa9zaGVsNVJ4nnTi4SXSWg.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/i8KnbOnohz4KwLPvIHFaRO6wiP0.png\",title:\"Studio Felt : A Design & Technology Studio\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"+LAA0J,SAAwB,EAAa,CAAC,aAAW,WAAS,YAAU,eAAa,aAAW,cAAY,cAAY,CAAC,IAAM,EAAaA,EAAO,IAAI,EAAO,CAAC,EAAM,GAAUC,EAAS,GAAG,EAAsB,MAAc,CAAC,GAAG,CAAC,EAAa,QAAQ,OAAO,IAAM,EAAS,IAAI,gBAAgB,CAAC,KAAS,CAAC,EAAS,EAAM,YAAY,KAAK,CAAE,CAAC,EAAyC,OAAvC,EAAS,QAAQ,EAAa,OAAO,MAAY,EAAS,W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