var c=Object.defineProperty;var f=(e,r,t)=>r in e?c(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var s=(e,r,t)=>(f(e,typeof r!="symbol"?r+"":r,t),t);import{p as n,C as d,s as p,f as u,z as v,E as b,v as y,x as P,aR as w}from"./index-a76b28be.js";import"./index-4d966268.js";import"./postmen-a4b10828.js";var M=Object.defineProperty,O=Object.getOwnPropertyDescriptor,i=(e,r,t,l)=>{for(var a=l>1?void 0:l?O(r,t):r,h=e.length-1,m;h>=0;h--)(m=e[h])&&(a=(l?m(r,t,a):m(a))||a);return l&&a&&M(r,t,a),a};class o extends b{constructor(){super(...arguments);s(this,"mesh",null);s(this,"material",{refId:"0000200"});s(this,"receiveShadows",!0);s(this,"castShadows",!0);s(this,"priority",0);s(this,"materialOpen",!1)}setMaterialOpen(t){this.materialOpen=t}}i([n({type:d.AssetPicker,assetType:["Mesh"],label:"mesh-renderer.mesh.title",info:"mesh-renderer.mesh.info",bindPath:"mesh"}),p()],o.prototype,"mesh",2);i([n({type:d.AssetPicker,assetType:"Material",label:"mesh-renderer.material.title",info:"mesh-renderer.material.info",customFilter:e=>{var r;return((r=e.engineObject.shader)==null?void 0:r.name)!=="particle-shader"}}),u({engineKey:"setMaterial",setPath:"setMaterial()",getPath:"getMaterial()",valueType:v.ReferResource,getEngineValue:e=>e.getMaterial()}),p({type:"methods",key:"setMaterial",onSerialize:e=>e?[[e]]:void 0,onDeserialize(e){return e?e[0][0]:void 0}})],o.prototype,"material",2);i([n({label:"mesh-renderer.receive-shadows.title",info:"mesh-renderer.receive-shadows.info",bindPath:"receiveShadows"}),y(),p()],o.prototype,"receiveShadows",2);i([n({label:"mesh-renderer.cast-shadows.title",info:"mesh-renderer.cast-shadows.info",bindPath:"castShadows"}),y(),p()],o.prototype,"castShadows",2);i([n({label:"mesh-renderer.priority.title",info:"mesh-renderer.priority.info",bindPath:"priority"}),p()],o.prototype,"priority",2);i([P],o.prototype,"materialOpen",2);i([w],o.prototype,"setMaterialOpen",1);export{o as M};
