/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["../chunks/_rollupPluginBabelHelpers","../chunks/tslib.es6","../core/lang","../core/screenUtils","../core/accessorSupport/decorators/property","../core/accessorSupport/ensureType","../core/accessorSupport/decorators/enumeration","../core/accessorSupport/decorators/reader","../core/accessorSupport/decorators/subclass","./MarkerSymbol","./support/urlUtils"],(function(e,r,t,o,i,s,n,c,u,p,l){"use strict";var a;let h=a=function(r){function i(...e){var t;return(t=r.call(this,...e)||this).color=null,t.type="picture-marker",t.url=null,t.source=null,t.height=12,t.width=12,t.size=null,t}e._inheritsLoose(i,r);var s=i.prototype;return s.normalizeCtorArgs=function(e,r,t){if(e&&"string"!=typeof e&&null==e.imageData)return e;const i={};return e&&(i.url=e),null!=r&&(i.width=o.toPt(r)),null!=t&&(i.height=o.toPt(t)),i},s.readHeight=function(e,r){return r.size||e},s.readWidth=function(e,r){return r.size||e},s.clone=function(){const e=new a({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return e._set("source",t.clone(this.source)),e},s.hash=function(){return`${r.prototype.hash.call(this)}.${this.height}.${this.url}.${this.width}`},i}(p);r.__decorate([i.property({json:{write:!1}})],h.prototype,"color",void 0),r.__decorate([n.enumeration({esriPMS:"picture-marker"},{readOnly:!0})],h.prototype,"type",void 0),r.__decorate([i.property(l.urlPropertyDefinition)],h.prototype,"url",void 0),r.__decorate([i.property(l.sourcePropertyDefinition)],h.prototype,"source",void 0),r.__decorate([i.property({type:Number,cast:o.toPt,json:{write:!0}})],h.prototype,"height",void 0),r.__decorate([c.reader("height",["height","size"])],h.prototype,"readHeight",null),r.__decorate([i.property({type:Number,cast:o.toPt,json:{write:!0}})],h.prototype,"width",void 0),r.__decorate([i.property({json:{write:!1}})],h.prototype,"size",void 0),h=a=r.__decorate([u.subclass("esri.symbols.PictureMarkerSymbol")],h);return h}));
