/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import e from"../../core/Error.js";import has from"../../core/has.js";function n(e){return e&&"function"==typeof e.highlight}function t(e){return e&&"function"==typeof e.maskOccludee}function i(e,n,t){return null==e||e>=t&&(0===n||e<=n)}function r(e,n){if(n&&e){const{minScale:t,maxScale:r}=e;if(u(t,r))return i(n,t,r)}return!0}function u(e,n){return null!=e&&e>0||null!=n&&n>0}function c(e){return!e?.minScale||!e.maxScale||e.minScale>=e.maxScale}const a=()=>!has("disable-feature:layer-based-scale-visibility");function o(e){return null!=e&&"object"==typeof e&&"createQuery"in e&&"queryFeatures"in e&&"layer"in e&&"view"in e}function l(n,t,i){return new e("layerview:spatial-reference-incompatible",`The spatial reference of this ${n} (wkid: ${t??"undefined"}) is incompatible with the spatial reference of the view (wkid: ${i??"undefined"}).`,{})}function f(e){return"integrated-mesh-3d"===e.type||"integrated-mesh-3dtiles"===e.type}export{a as hasLayerBasedScaleVisibility,n as highlightsSupported,r as isInEffectiveScaleRange,f as isIntegratedMeshLayerView,u as isScaleRangeActive,o as isSelectableLayerView2D,t as occludeesSupported,i as scaleBoundsPredicate,l as spatialReferenceIncompatibleError,c as validateScaleRange};
