// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("../../chunks/tslib.es6 ../../geometry ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass ./commonProperties ../../geometry/Point ../../geometry/SpatialReference ../../geometry/Extent".split(" "),function(c,b,f,d,g,p,q,h,k,l,m,n){b=class extends f.JSONSupport{constructor(a){super(a);this.text=this.searchExtent=this.outSpatialReference=this.maxSuggestions= this.location=this.countryCode=this.categories=this.apiKey=null}};c.__decorate([d.property(k.apiKey)],b.prototype,"apiKey",void 0);c.__decorate([d.property({type:[String],json:{read:{source:"category",reader:a=>a?a.split(","):null},write:{target:"category",writer:(a,e)=>{e.category=a?a.join(","):null}}}})],b.prototype,"categories",void 0);c.__decorate([d.property({type:String,json:{write:!0}})],b.prototype,"countryCode",void 0);c.__decorate([d.property({type:l,json:{write:{writer:(a,e)=>{e.location= a?a.clone().normalize():null}}}})],b.prototype,"location",void 0);c.__decorate([d.property({type:Number,json:{write:!0}})],b.prototype,"maxSuggestions",void 0);c.__decorate([d.property({type:m,json:{read:{source:"outSR"},write:{target:"outSR"}}})],b.prototype,"outSpatialReference",void 0);c.__decorate([d.property({type:n,json:{write:{writer:(a,e)=>{a=a?a.shiftCentralMeridian():null;e.searchExtent=JSON.stringify(a)}}}})],b.prototype,"searchExtent",void 0);c.__decorate([d.property({type:String,json:{write:!0}})], b.prototype,"text",void 0);b=c.__decorate([h.subclass("esri.rest.support.SuggestLocationsParameters")],b);b.from=g.ensureType(b);return b});