/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as t}from"tslib";import{JSONSupport as e}from"../../core/JSONSupport.js";import{property as o,subclass as r}from"../../core/accessorSupport/decorators.js";import{ensureType as i}from"../../core/accessorSupport/ensureType.js";import s from"../../geometry/Extent.js";import n from"../../geometry/Point.js";import p from"../../geometry/SpatialReference.js";import{apiKey as a}from"./commonProperties.js";let l=class extends e{constructor(t){super(t),this.apiKey=null,this.categories=null,this.countryCode=null,this.location=null,this.maxSuggestions=null,this.outSpatialReference=null,this.searchExtent=null,this.text=null}};t([o(a)],l.prototype,"apiKey",void 0),t([o({type:[String],json:{read:{source:"category",reader:t=>t?t.split(","):null},write:{target:"category",writer:(t,e)=>{e.category=t?t.join(","):null}}}})],l.prototype,"categories",void 0),t([o({type:String,json:{write:!0}})],l.prototype,"countryCode",void 0),t([o({type:n,json:{write:{writer:(t,e)=>{e.location=t?t.clone().normalize():null}}}})],l.prototype,"location",void 0),t([o({type:Number,json:{write:!0}})],l.prototype,"maxSuggestions",void 0),t([o({type:p,json:{read:{source:"outSR"},write:{target:"outSR"}}})],l.prototype,"outSpatialReference",void 0),t([o({type:s,json:{write:{writer:(t,e)=>{const o=t?t.shiftCentralMeridian():null;e.searchExtent=JSON.stringify(o)}}}})],l.prototype,"searchExtent",void 0),t([o({type:String,json:{write:!0}})],l.prototype,"text",void 0),l=t([r("esri.rest.support.SuggestLocationsParameters")],l),l.from=i(l);const c=l;export{c as default};
