/*
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","../../geometry","../../core/JSONSupport","../../core/accessorSupport/decorators/property","../../core/arrayUtils","../../core/has","../../core/accessorSupport/ensureType","../../core/accessorSupport/decorators/subclass","./commonProperties","../../geometry/Point","../../geometry/SpatialReference","../../geometry/Extent"],(function(e,t,r,o,p,n,i,s,a,c,l,u,y){"use strict";let d=function(t){function r(e){var r;return(r=t.call(this,e)||this).apiKey=null,r.categories=null,r.countryCode=null,r.location=null,r.maxSuggestions=null,r.outSpatialReference=null,r.searchExtent=null,r.text=null,r}return e._inheritsLoose(r,t),r}(o.JSONSupport);t.__decorate([p.property(c.apiKey)],d.prototype,"apiKey",void 0),t.__decorate([p.property({type:[String],json:{read:{source:"category",reader:e=>e?e.split(","):null},write:{target:"category",writer:(e,t)=>{t.category=e?e.join(","):null}}}})],d.prototype,"categories",void 0),t.__decorate([p.property({type:String,json:{write:!0}})],d.prototype,"countryCode",void 0),t.__decorate([p.property({type:l,json:{write:{writer:(e,t)=>{t.location=e?e.clone().normalize():null}}}})],d.prototype,"location",void 0),t.__decorate([p.property({type:Number,json:{write:!0}})],d.prototype,"maxSuggestions",void 0),t.__decorate([p.property({type:u,json:{read:{source:"outSR"},write:{target:"outSR"}}})],d.prototype,"outSpatialReference",void 0),t.__decorate([p.property({type:y,json:{write:{writer:(e,t)=>{const r=e?e.shiftCentralMeridian():null;t.searchExtent=JSON.stringify(r)}}}})],d.prototype,"searchExtent",void 0),t.__decorate([p.property({type:String,json:{write:!0}})],d.prototype,"text",void 0),d=t.__decorate([a.subclass("esri.rest.support.SuggestLocationsParameters")],d),d.from=s.ensureType(d);return d}));
