/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as o}from"tslib";import{assertIsSome as r}from"../../core/maybe.js";import{property as t,subclass as e}from"../../core/accessorSupport/decorators.js";import{goTo as s}from"./goToUtils.js";const i=i=>{const p=i;let c=class extends p{constructor(...o){super(...o),this.goToOverride=null,this.view=null}callGoTo(o){const{view:t}=this;return r(t),this.goToOverride?this.goToOverride(t,o):s(t,o.target,o.options)}};return o([t()],c.prototype,"goToOverride",void 0),o([t()],c.prototype,"view",void 0),c=o([e("esri.widgets.support.GoTo")],c),c};export{i as GoTo};
