{"version":3,"file":"ModelViewer3D.Cmwt4iFs.mjs","names":[],"sources":["https:/framerusercontent.com/modules/zl07EgZm2s0rCpGuRnHR/DTa0wRVXNdwsLuXQ07tS/ModelViewer3D.js"],"sourcesContent":["//Pasquale Pepe\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect}from\"react\";/*\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ModelViewer3D(props){useEffect(()=>{const script=document.createElement(\"script\");script.src=\"https://cdn.jsdelivr.net/npm/@google/model-viewer\";script.type=\"module\";document.head.appendChild(script);return()=>{document.head.removeChild(script);};},[]);const autoRotateAttribute=props.auto_rotate?\"auto-rotate\":\"\";return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\"},dangerouslySetInnerHTML:{__html:`\n                <model-viewer\n                    src=\"${props.model}\"\n                    alt=\"3D Model\"\n                    ${autoRotateAttribute}\n                    camera-controls\n                    style=\"width: 100%; height: 100%;\"\n                    poster=\"https://i.gifer.com/ZKZg.gif\"\n                ></model-viewer>\n            `}});}addPropertyControls(ModelViewer3D,{model:{type:ControlType.String,title:\"Url-3DModel\",default:\"https://raw.githubusercontent.com/pasqualepepe887/3D_Model_Framer_Plugin/main/models/G0RavHupYWMD79sBADEbwiQEvqAGKS\"},auto_rotate:{type:ControlType.Boolean,title:\"Auto Rotate\",default:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ModelViewer3D\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ModelViewer3D.map"],"mappings":"kQAIG,SAAwB,EAAc,EAAM,CAAC,EAAU,IAAI,CAAC,IAAM,EAAO,SAAS,cAAc,SAAS,CAAuH,OAAtH,EAAO,IAAI,oDAAoD,EAAO,KAAK,SAAS,SAAS,KAAK,YAAY,EAAO,CAAO,IAAI,CAAC,SAAS,KAAK,YAAY,EAAO,AAAE,CAAE,EAAC,CAAE,EAAC,CAAC,IAAM,EAAoB,EAAM,YAAY,cAAc,GAAG,MAAoB,GAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,MAAO,EAAC,wBAAwB,CAAC,QAAQ;;2BAE9Z,EAAM,MAAM;;sBAEjB,EAAoB;;;;;aAK5B,CAAC,EAAC,AAAE,cAAA,AAZlB,GAA2C,IAAoD,IAA6B,CAY1G,EAAoB,EAAc,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,QAAQ,qHAAsH,EAAC,YAAY,CAAC,KAAK,EAAY,QAAQ,MAAM,cAAc,SAAQ,CAAK,CAAC,EAAC"}