/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as t}from"tslib";import e from"../../core/Logger.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import{parse as s,sanitizeUrl as o}from"../support/arcgisLayerUrl.js";const l=l=>{const p=l;let u=class extends p{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const t=s(this.url);if(t?.title)return t.title}return this._get("title")||""}set title(t){this._set("title",t)}set url(t){this._set("url",o(t,e.getLogger(this)))}};return t([r()],u.prototype,"title",null),t([r({type:String})],u.prototype,"url",null),u=t([i("esri.layers.mixins.ArcGISService")],u),u};export{l as ArcGISService};
