BookmarksUserState.js 1.0 KB

12345
  1. /*
  2. All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  3. See https://js.arcgis.com/4.25/esri/copyright.txt for details.
  4. */
  5. import{_ as t}from"../../chunks/tslib.es6.js";import o from"../../core/Accessor.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import"../../core/arrayUtils.js";import"../../core/accessorSupport/ensureType.js";import{subclass as r}from"../../core/accessorSupport/decorators/subclass.js";let s=class extends o{constructor(t){super(t)}get editedBookmark(){const{bookmark:t}=this;return t?this._get("editedBookmark")||t.clone():null}get state(){return this._get("state")}set state(t){this.validationState=void 0,this.loading=void 0,this._set("state",t)}};t([e()],s.prototype,"bookmark",void 0),t([e({readOnly:!0})],s.prototype,"editedBookmark",null),t([e()],s.prototype,"state",null),t([e()],s.prototype,"validationState",void 0),t([e()],s.prototype,"loading",void 0),s=t([r("esri.widgets.Bookmarks.UserState")],s);const a=s;export{a as default};