/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as o}from"tslib";import r from"../core/Collection.js";import{clone as e}from"../core/lang.js";import{property as t,subclass as s}from"../core/accessorSupport/decorators.js";import m from"./ExtrudeSymbol3DLayer.js";import l from"./FillSymbol3DLayer.js";import y from"./IconSymbol3DLayer.js";import i from"./ObjectSymbol3DLayer.js";import p from"./Symbol3D.js";import a from"./WaterSymbol3DLayer.js";import{enumeration as n}from"../core/accessorSupport/decorators/enumeration.js";var c;const b=r.ofType({base:null,key:"type",typeMap:{extrude:m,fill:l,icon:y,object:i,water:a}});let f=c=class extends p{constructor(o){super(o),this.symbolLayers=new b,this.type="polygon-3d"}clone(){return new c({styleOrigin:e(this.styleOrigin),symbolLayers:e(this.symbolLayers),thumbnail:e(this.thumbnail)})}static fromJSON(o){const r=new c;return r.read(o),r}static fromSimpleFillSymbol(o){return new c({symbolLayers:new r([l.fromSimpleFillSymbol(o)])})}};o([t({type:b,json:{write:!0}})],f.prototype,"symbolLayers",void 0),o([n({PolygonSymbol3D:"polygon-3d"},{readOnly:!0})],f.prototype,"type",void 0),f=c=o([s("esri.symbols.PolygonSymbol3D")],f);export{f as default};
