{"version":3,"file":"Interactive3DViewer.DcXqMuAP.mjs","names":[],"sources":["https:/framerusercontent.com/modules/P1nZDUUXP20ElRcut79g/4td7Y8z0WmqrKse2SQ8F/Interactive3DViewer.js"],"sourcesContent":["/**\n * -----------------------------------------------------------------------------\n * Created by 584.studio\n * Website: https://584.studio\n *\n * © 2026 584.studio. All rights reserved.\n *\n * For support, custom development, or licensing inquiries:\n * hello@584.studio\n * https://584.studio\n * -----------------------------------------------------------------------------\n */import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";export default function Interactive3DViewer(props){const{modelFile,backgroundColor,autoRotate,cameraControls,shadowIntensity,exposure,environmentImage}=props;const isStatic=useIsStaticRenderer();const shouldAutoRotate=!isStatic&&autoRotate;React.useEffect(()=>{if(typeof document===\"undefined\")return;const scriptId=\"model-viewer-script\";if(!document.getElementById(scriptId)){const script=document.createElement(\"script\");script.id=scriptId;script.type=\"module\";script.src=\"https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js\";document.head.appendChild(script);}},[]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",backgroundColor,overflow:\"hidden\"},children:modelFile?/*#__PURE__*/_jsx(\"model-viewer\",{src:modelFile,style:{width:\"100%\",height:\"100%\"},...shouldAutoRotate?{\"auto-rotate\":true}:{},...cameraControls?{\"camera-controls\":true}:{},\"shadow-intensity\":shadowIntensity,exposure:exposure,\"environment-image\":environmentImage,loading:\"eager\"}):/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontFamily:\"Inter, sans-serif\",fontSize:14,color:\"rgba(255,255,255,0.5)\"},children:\"Add GLB or GLTF model\"})});}Interactive3DViewer.defaultProps={modelFile:\"\",backgroundColor:\"#000000\",autoRotate:true,cameraControls:true,shadowIntensity:1,exposure:1,environmentImage:\"neutral\"};addPropertyControls(Interactive3DViewer,{modelFile:{type:ControlType.File,title:\"Model\",allowedFileTypes:[\"glb\",\"gltf\"]},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},autoRotate:{type:ControlType.Boolean,title:\"Auto Rotate\",defaultValue:true},cameraControls:{type:ControlType.Boolean,title:\"Controls\",defaultValue:true},shadowIntensity:{type:ControlType.Number,title:\"Shadow\",defaultValue:1,min:0,max:3,step:.1},exposure:{type:ControlType.Number,title:\"Exposure\",defaultValue:1,min:0,max:3,step:.1},environmentImage:{type:ControlType.Enum,title:\"Environment\",defaultValue:\"neutral\",options:[\"neutral\",\"legacy\"],optionTitles:[\"Neutral\",\"Legacy\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Interactive3DViewer\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Interactive3DViewer.map"],"mappings":"kLAWkJ,SAAwB,EAAoB,EAAM,CAAC,GAAK,CAAC,YAAU,kBAAgB,aAAW,iBAAe,kBAAgB,WAAS,oBAAkB,EAAiD,EAAiB,CAA7C,EAAqD,GAAG,EAAgW,OAArV,MAAoB,CAAC,GAAG,OAAO,SAAW,IAAY,OAAO,IAAM,EAAS,sBAAsB,GAAG,CAAC,SAAS,eAAe,CAAQ,EAAE,CAAC,IAAM,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAO,GAAG,EAAS,EAAO,KAAK,SAAS,EAAO,IAAI,kEAAkE,SAAS,KAAK,YAAY,CAAM,CAAE,CAAC,EAAE,CAAC,CAAC,EAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,kBAAgB,SAAS,QAAQ,EAAE,SAAS,EAAuB,EAAK,eAAe,CAAC,IAAI,EAAU,MAAM,CAAC,MAAM,OAAO,OAAO,MAAM,EAAE,GAAG,EAAiB,CAAC,cAAc,EAAI,EAAE,CAAC,EAAE,GAAG,E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