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 t}from"../../chunks/tslib.es6.js";import r from"../../core/Logger.js";import{isSome as e}from"../../core/maybe.js";import{property as s}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";import{parse as i,sanitizeUrl as l}from"../support/arcgisLayerUrl.js";const p=p=>{let c=class extends p{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const t=i(this.url);if(e(t)&&t.title)return t.title}return this._get("title")||""}set title(t){this._set("title",t)}set url(t){this._set("url",l(t,r.getLogger(this.declaredClass)))}};return t([s()],c.prototype,"title",null),t([s({type:String})],c.prototype,"url",null),c=t([o("esri.layers.mixins.ArcGISService")],c),c};export{p as ArcGISService};
|