/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["../../chunks/_rollupPluginBabelHelpers","../../chunks/tslib.es6","../../core/Clonable","../../core/jsonMap","../../core/JSONSupport","../../core/accessorSupport/decorators/property","../../core/arrayUtils","../../core/has","../../core/accessorSupport/ensureType","../../core/accessorSupport/decorators/subclass"],(function(e,r,o,t,i,a,n,l,p,s){"use strict";const d=new t.JSONMap({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),c=new t.JSONMap({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let y=function(r){function o(e){var o;return(o=r.call(this,e)||this).cardinality=null,o.composite=null,o.id=null,o.keyField=null,o.keyFieldInRelationshipTable=null,o.name=null,o.relatedTableId=null,o.relationshipTableId=null,o.role=null,o}return e._inheritsLoose(o,r),o}(o.ClonableMixin(i.JSONSupport));r.__decorate([a.property({json:{read:d.read,write:d.write}})],y.prototype,"cardinality",void 0),r.__decorate([a.property({json:{read:!0,write:!0}})],y.prototype,"composite",void 0),r.__decorate([a.property({json:{read:!0,write:!0}})],y.prototype,"id",void 0),r.__decorate([a.property({json:{read:!0,write:!0}})],y.prototype,"keyField",void 0),r.__decorate([a.property({json:{read:!0,write:!0}})],y.prototype,"keyFieldInRelationshipTable",void 0),r.__decorate([a.property({json:{read:!0,write:!0}})],y.prototype,"name",void 0),r.__decorate([a.property({json:{read:!0,write:!0}})],y.prototype,"relatedTableId",void 0),r.__decorate([a.property({json:{read:!0,write:!0}})],y.prototype,"relationshipTableId",void 0),r.__decorate([a.property({json:{read:c.read,write:c.write}})],y.prototype,"role",void 0),y=r.__decorate([s.subclass("esri.layers.support.Relationship")],y);return y}));
