"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.canUseHubDownloadSystem = canUseHubDownloadSystem;
const feature_service_urls_1 = require("../urls/feature-service-urls");
function canUseHubDownloadSystem(entity) {
    const isMapOrFeatureService = (0, feature_service_urls_1.isMapOrFeatureServerUrl)(entity.url);
    const isPublic = entity.access === "public";
    // TODO: use `extendedProps.serverQueryCapability` instead
    const isQueryEnabled = entity.serverQueryCapability;
    return isMapOrFeatureService && isPublic && isQueryEnabled;
}
//# sourceMappingURL=canUseHubDownloadSystem.js.map