{"version":3,"sources":["node_modules/@arcgis/core/rest/support/RelationshipQuery.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as t } from \"../../chunks/tslib.es6.js\";\nimport \"../../geometry.js\";\nimport { JSONSupport as e } from \"../../core/JSONSupport.js\";\nimport { clone as o } from \"../../core/lang.js\";\nimport { property as r } from \"../../core/accessorSupport/decorators/property.js\";\nimport { ensureType as i } from \"../../core/accessorSupport/ensureType.js\";\nimport { subclass as s } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { writer as n } from \"../../core/accessorSupport/decorators/writer.js\";\nimport { DataLayerSource as p } from \"../../layers/support/source/DataLayerSource.js\";\nimport a from \"../../geometry/SpatialReference.js\";\nvar u;\nlet c = u = class extends e {\n constructor(t) {\n super(t), this.cacheHint = void 0, this.dynamicDataSource = void 0, this.gdbVersion = null, this.geometryPrecision = void 0, this.historicMoment = null, this.maxAllowableOffset = void 0, this.objectIds = null, this.orderByFields = null, this.outFields = null, this.outSpatialReference = null, this.relationshipId = void 0, this.start = void 0, this.num = void 0, this.returnGeometry = !1, this.returnM = void 0, this.returnZ = void 0, this.where = null;\n }\n _writeHistoricMoment(t, e) {\n e.historicMoment = t && t.getTime();\n }\n writeStart(t, e) {\n e.resultOffset = this.start, e.resultRecordCount = this.num || 10, this.start > 0 && null == this.where && (e.definitionExpression = \"1=1\");\n }\n clone() {\n return new u(o({\n cacheHint: this.cacheHint,\n dynamicDataSource: this.dynamicDataSource,\n gdbVersion: this.gdbVersion,\n geometryPrecision: this.geometryPrecision,\n historicMoment: this.historicMoment && new Date(this.historicMoment.getTime()),\n maxAllowableOffset: this.maxAllowableOffset,\n objectIds: this.objectIds,\n orderByFields: this.orderByFields,\n outFields: this.outFields,\n outSpatialReference: this.outSpatialReference,\n relationshipId: this.relationshipId,\n start: this.start,\n num: this.num,\n returnGeometry: this.returnGeometry,\n where: this.where,\n returnZ: this.returnZ,\n returnM: this.returnM\n }));\n }\n};\nt([r({\n type: Boolean,\n json: {\n write: !0\n }\n})], c.prototype, \"cacheHint\", void 0), t([r({\n type: p,\n json: {\n write: !0\n }\n})], c.prototype, \"dynamicDataSource\", void 0), t([r({\n type: String,\n json: {\n write: !0\n }\n})], c.prototype, \"gdbVersion\", void 0), t([r({\n type: Number,\n json: {\n write: !0\n }\n})], c.prototype, \"geometryPrecision\", void 0), t([r({\n type: Date\n})], c.prototype, \"historicMoment\", void 0), t([n(\"historicMoment\")], c.prototype, \"_writeHistoricMoment\", null), t([r({\n type: Number,\n json: {\n write: !0\n }\n})], c.prototype, \"maxAllowableOffset\", void 0), t([r({\n json: {\n write: !0\n }\n})], c.prototype, \"objectIds\", void 0), t([r({\n type: [String],\n json: {\n write: !0\n }\n})], c.prototype, \"orderByFields\", void 0), t([r({\n type: [String],\n json: {\n write: !0\n }\n})], c.prototype, \"outFields\", void 0), t([r({\n type: a,\n json: {\n read: {\n source: \"outSR\"\n },\n write: {\n target: \"outSR\"\n }\n }\n})], c.prototype, \"outSpatialReference\", void 0), t([r({\n json: {\n write: !0\n }\n})], c.prototype, \"relationshipId\", void 0), t([r({\n type: Number,\n json: {\n read: {\n source: \"resultOffset\"\n }\n }\n})], c.prototype, \"start\", void 0), t([n(\"start\"), n(\"num\")], c.prototype, \"writeStart\", null), t([r({\n type: Number,\n json: {\n read: {\n source: \"resultRecordCount\"\n }\n }\n})], c.prototype, \"num\", void 0), t([r({\n json: {\n write: !0\n }\n})], c.prototype, \"returnGeometry\", void 0), t([r({\n type: Boolean,\n json: {\n write: {\n overridePolicy: t => ({\n enabled: t\n })\n }\n }\n})], c.prototype, \"returnM\", void 0), t([r({\n type: Boolean,\n json: {\n write: {\n overridePolicy: t => ({\n enabled: t\n })\n }\n }\n})], c.prototype, \"returnZ\", void 0), t([r({\n type: String,\n json: {\n read: {\n source: \"definitionExpression\"\n },\n write: {\n target: \"definitionExpression\"\n }\n }\n})], c.prototype, \"where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