import{aJ as l,aM as c,av as m,aO as f,p as h}from"./index-03b6134d.js";import{u as d}from"./index-0a53aaef.js";import{c as u}from"./Component-3cb422ab.js";import"./postmen-9e6354af.js";import{c as M}from"./createOnModelChange-73358d10.js";import{R}from"./ReferencedMaterial-27ba90e2.js";import{M as v}from"./MeshRendererBaseComponent-2af8db12.js";import"./MaterialInspector-21fc5b67.js";import"./IconPointFilled-f8224625.js";import"./createReactComponent-fcd6848b.js";const x=l(function(o){const[r,s]=c.useState(null),e=o.data,{assetStore:t,inspectorFacade:n}=d();return c.useEffect(()=>{t.getAssetByRef(e.material).then(a=>{s(a)})},[e.material]),m.jsxs(m.Fragment,{children:[m.jsx(f.List,{model:e,configs:e.formSchema.items,onModelChange:M("component",e.id,n,e)}),r&&m.jsx(R,{materialAsset:r})]})});var C=Object.defineProperty,j=Object.getOwnPropertyDescriptor,i=(o,r,s,e)=>{for(var t=e>1?void 0:e?j(r,s):r,n=o.length-1,a;n>=0;n--)(a=o[n])&&(t=(e?a(r,s,t):a(t))||t);return e&&t&&C(r,s,t),t};let p=class extends v{constructor(o,r){super(o,r)}};i([h({assetType:["PrimitiveMesh","Mesh"]})],p.prototype,"mesh",2);p=i([u({type:"MeshRenderer",customInspector:x,componentsMenu:{label:"component.renderer.mesh.title"}})],p);export{p as MeshRendererComponent};
