import{aU as l,aI as c,aC as m,aX as f,p as h}from"./index-a76b28be.js";import{u as d}from"./index-4d966268.js";import{c as u}from"./Component-c8533dc0.js";import"./postmen-a4b10828.js";import{c as M}from"./createOnModelChange-b57a0da8.js";import{R}from"./ReferencedMaterial-8754168f.js";import{M as C}from"./MeshRendererBaseComponent-817d34b7.js";import"./MaterialInspector-b9e7c829.js";import"./IconPointFilled-4673caaf.js";const v=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 x=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&&x(r,s,t),t};let p=class extends C{constructor(o,r){super(o,r)}};i([h({assetType:["PrimitiveMesh","Mesh"]})],p.prototype,"mesh",2);p=i([u({type:"MeshRenderer",customInspector:v,componentsMenu:{label:"component.renderer.mesh.title"}})],p);export{p as MeshRendererComponent};
