{"version":3,"file":"ModelViewer3D.BkpPoiPV.mjs","names":[],"sources":["https:/framerusercontent.com/modules/zl07EgZm2s0rCpGuRnHR/hzHWWTpvrZe9yrr74sMg/ModelViewer3D.js"],"sourcesContent":["import{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);};},[]);// Costruisci dinamicamente il tag <model-viewer>\nconst autoRotateAttribute=props.auto_rotate?\"auto-rotate\":\"\"// Aggiungi solo se true\n;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\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ModelViewer3D.map"],"mappings":"0KAGG,SAAwB,EAAc,EAAM,CAAC,MAAc,CAAC,IAAM,EAAO,SAAS,cAAc,SAAS,CAAuH,MAAtH,GAAO,IAAI,oDAAoD,EAAO,KAAK,SAAS,SAAS,KAAK,YAAY,EAAO,KAAW,CAAC,SAAS,KAAK,YAAY,EAAO,GAAK,EAAE,CAAC,CACvR,IAAM,EAAoB,EAAM,YAAY,cAAc,GACzD,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,CAAC,wBAAwB,CAAC,OAAO;;2BAEzE,EAAM,MAAM;;sBAEjB,EAAoB;;;;;cAK5B,CAAC,CAAC,kBAd2B,IAAoD,IAA6B,CAc1G,EAAoB,EAAc,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,QAAQ,sHAAsH,CAAC,YAAY,CAAC,KAAK,EAAY,QAAQ,MAAM,cAAc,QAAQ,GAAK,CAAC,CAAC"}