{"version":3,"file":"ModelViewer.C1_pUgmF.mjs","names":[],"sources":["https:/framerusercontent.com/modules/N9K09icKLOORyqjN4w2Q/xflYZcRAw5mLViOyJ4nu/ModelViewer.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function ModelViewer(props){const{src,alt,cameraControls,fieldOfView,minCameraOrbit,maxCameraOrbit,backgroundColor,borderColor,exposure,environmentImage}=props;useEffect(()=>{// Dynamically load the <model-viewer> library\nconst script=document.createElement(\"script\");script.type=\"module\";script.src=\"https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js\";script.async=true;document.head.appendChild(script);return()=>{// Cleanup script on component unmount\ndocument.head.removeChild(script);};},[]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",background:backgroundColor,border:`2px solid ${borderColor}`,overflow:\"hidden\",borderRadius:\"8px\"},children:/*#__PURE__*/_jsx(\"model-viewer\",{src:src,alt:alt,\"camera-controls\":cameraControls,\"field-of-view\":fieldOfView,\"min-camera-orbit\":minCameraOrbit,\"max-camera-orbit\":maxCameraOrbit,\"environment-image\":environmentImage||\"neutral\",exposure:exposure,style:{width:\"100%\",height:\"100%\",pointerEvents:\"auto\"}})});}// Default Props\nModelViewer.defaultProps={src:\"https://raw.githubusercontent.com/thefumeister/heyday3d/a774fd1dc07bd9afc82348d975e81613b79e384c/AI-Hub.glb\",alt:\"3D Model\",cameraControls:true,fieldOfView:\"35deg\",minCameraOrbit:\"auto auto 1m\",maxCameraOrbit:\"auto auto 10m\",backgroundColor:\"#333333\",borderColor:\"#cccccc\",exposure:1,environmentImage:\"neutral\"};// Property Controls for Framer UI\naddPropertyControls(ModelViewer,{src:{type:ControlType.String,title:\"Model URL\"},alt:{type:ControlType.String,title:\"Alt Text\"},cameraControls:{type:ControlType.Boolean,title:\"Camera Controls\"},fieldOfView:{type:ControlType.String,title:\"Field of View\"},minCameraOrbit:{type:ControlType.String,title:\"Min Camera Orbit\"},maxCameraOrbit:{type:ControlType.String,title:\"Max Camera Orbit\"},backgroundColor:{type:ControlType.Color,title:\"Background Color\"},borderColor:{type:ControlType.Color,title:\"Border Color\"},exposure:{type:ControlType.Number,title:\"Exposure\",min:.1,max:2,step:.1,defaultValue:1},environmentImage:{type:ControlType.String,title:\"Environment Image URL\",defaultValue:\"neutral\",description:\"Leave empty for neutral lighting or provide a custom HDRI URL.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"ModelViewer\":{\"type\":\"reactComponent\",\"name\":\"ModelViewer\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ModelViewer.map"],"mappings":"0KAA4H,SAAgB,EAAY,EAAM,CAAC,GAAK,CAAC,MAAI,MAAI,iBAAe,cAAY,iBAAe,iBAAe,kBAAgB,cAAY,WAAS,oBAAkB,EAEnP,OAFyP,MAAc,CACjT,IAAM,EAAO,SAAS,cAAc,SAAS,CAAuJ,MAAtJ,GAAO,KAAK,SAAS,EAAO,IAAI,kEAAkE,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,EAAO,KAAW,CAC9M,SAAS,KAAK,YAAY,EAAO,GAAK,EAAE,CAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,WAAW,EAAgB,OAAO,aAAa,IAAc,SAAS,SAAS,aAAa,MAAM,CAAC,SAAsB,EAAK,eAAe,CAAK,MAAQ,MAAI,kBAAkB,EAAe,gBAAgB,EAAY,mBAAmB,EAAe,mBAAmB,EAAe,oBAAoB,GAAkB,UAAmB,WAAS,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,cAAc,OAAO,CAAC,CAAC,CAAC,CAAC,kBAFxhB,IAA6B,IAAoD,CAG5H,EAAY,aAAa,CAAC,IAAI,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