12345 |
- /*
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
- See https://js.arcgis.com/4.25/esri/copyright.txt for details.
- */
- import{_ as r}from"../chunks/tslib.es6.js";import s from"../core/Accessor.js";import{urlToObject as t}from"../core/urlUtils.js";import{property as e}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import"../core/accessorSupport/ensureType.js";import{subclass as o}from"../core/accessorSupport/decorators/subclass.js";let i=class extends s{constructor(...r){super(...r),this.requestOptions=null,this.url=null}normalizeCtorArgs(r,s){return"string"!=typeof r?r:{url:r,...s}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(r){return t(r)}_encode(r,s,t){const e={};for(const o in r){if("declaredClass"===o)continue;const i=r[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){e[o]=[];for(let r=0;r<i.length;r++)e[o][r]=this._encode(i[r])}else if("object"==typeof i)if(i.toJSON){const r=i.toJSON(t&&t[o]);e[o]=s?r:JSON.stringify(r)}else e[o]=s?i:JSON.stringify(i);else e[o]=i}return e}};r([e({readOnly:!0})],i.prototype,"parsedUrl",null),r([e()],i.prototype,"requestOptions",void 0),r([e({type:String})],i.prototype,"url",void 0),i=r([o("esri.tasks.Task")],i);const p=i;export{p as default};
|