/*
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 r}from"tslib";import{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{property as e,subclass as p}from"../../core/accessorSupport/decorators.js";import i from"../../portal/PortalItem.js";import{reader as s}from"../../core/accessorSupport/decorators/reader.js";import{writer as m}from"../../core/accessorSupport/decorators/writer.js";let a=class extends(t(o)){constructor(r){super(r),this.portalItem=null}readPortalItem(r,t,o){const{itemId:e}=t;if(e)return new i({id:e,portal:o?.portal})}writePortalItem(r,t){r?.id&&(t.itemId=r.id)}};r([e({type:i,json:{write:{isRequired:!0}}})],a.prototype,"portalItem",void 0),r([s("portalItem",["itemId"])],a.prototype,"readPortalItem",null),r([m("portalItem",{itemId:{type:String}})],a.prototype,"writePortalItem",null),a=r([p("esri.webdoc.ips.PositioningService")],a);const l=a;export{l as default};
