!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","tslib","./esriDelegate!esri/tasks/support/RelationshipQuery","../../Validation","./ArcGisApiVersion","./tools","./MapProvider","../../Hooks","esri/tasks/QueryTask"],e)}(function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var o=e("tslib"),r=e("./esriDelegate!esri/tasks/support/RelationshipQuery"),n=e("../../Validation"),a=e("./ArcGisApiVersion"),s=e("./tools"),t=e("./MapProvider"),l=e("../../Hooks"),d=o.__importDefault(e("esri/tasks/QueryTask")),t=(u.prototype.execute=function(e,i,o){var t=new r.RelationshipQuery;t.definitionExpression=n.validation.string("definitionExpression",e.definitionExpression,void 0),t.geometryPrecision=n.validation.number("definitionExpression",e.geometryPrecision,void 0),t.maxAllowableOffset=n.validation.number("maxAllowableOffset",e.maxAllowableOffset,void 0),t.objectIds=n.validation.array("objectIds",e.objectIds,n.validation.never),t.outFields=n.validation.array("outFields",e.outFields,["*"]),t.outSpatialReference=o.getOutSR(n.validation.exists("outSpatialReference",e.outSpatialReference,void 0)),t.relationshipId=n.validation.number("relationshipId",e.relationshipId,n.validation.never),t.returnGeometry=n.validation.boolean("returnGeometry",e.returnGeometry,!0);o=n.validation.urlOrLayer(e,a.isArcGisApiVersion3x),e=n.validation.string("gdbVersion",e.gdbVersion,void 0),o=new d.default(o,{gdbVersion:e}),e=s.isAbortable(i.cancellationToken)?{signal:i.cancellationToken.signal}:void 0,e=o.executeRelationshipQuery(t,e);return s.schedulePromiseCancellation(i,e),s.inline(e,function(e){return{results:e}})},u.action="gcx:wf:arcgis:query:RelationshipQueryTask",u.suite="gcx:wf:builtin",o.__decorate([l.activate(t.MapProvider)],u));function u(){}i.RelationshipQueryTask=t});