{"version":3,"sources":["node_modules/@arcgis/core/layers/mixins/ScaleRangeLayer.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 e } from \"../../chunks/tslib.es6.js\";\nimport { property as a } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/Logger.js\";\nimport \"../../core/RandomLCG.js\";\nimport { subclass as c } from \"../../core/accessorSupport/decorators/subclass.js\";\nconst t = t => {\n let l = class extends t {\n constructor() {\n super(...arguments), this.minScale = 0, this.maxScale = 0;\n }\n get effectiveScaleRange() {\n const e = {\n minScale: this.minScale,\n maxScale: this.maxScale\n },\n a = this.parent;\n a && \"effectiveScaleRange\" in a && r(e, a.effectiveScaleRange);\n const c = this._get(\"effectiveScaleRange\");\n return c && c.minScale === e.minScale && c.maxScale === e.maxScale ? c : e;\n }\n };\n return e([a({\n type: Number,\n nonNullable: !0,\n json: {\n write: !0\n }\n })], l.prototype, \"minScale\", void 0), e([a({\n type: Number,\n nonNullable: !0,\n json: {\n write: !0\n }\n })], l.prototype, \"maxScale\", void 0), e([a({\n readOnly: !0\n })], l.prototype, \"effectiveScaleRange\", null), l = e([c(\"esri.layers.mixins.ScaleRangeLayer\")], l), l;\n};\nfunction r(e, a) {\n return e.minScale = e.minScale > 0 ? a.minScale > 0 ? Math.min(e.minScale, a.minScale) : e.minScale : a.minScale, e.maxScale = e.maxScale > 0 ? a.maxScale > 0 ? Math.max(e.maxScale, a.maxScale) : e.maxScale : a.maxScale, e;\n}\nexport { t as ScaleRangeLayer };"],"mappings":"wHAUA,IAAMA,EAAIA,GAAK,CACb,IAAIC,EAAI,cAAcD,CAAE,CACtB,aAAc,CACZ,MAAM,GAAG,SAAS,EAAG,KAAK,SAAW,EAAG,KAAK,SAAW,CAC1D,CACA,IAAI,qBAAsB,CACxB,IAAME,EAAI,CACN,SAAU,KAAK,SACf,SAAU,KAAK,QACjB,EACAC,EAAI,KAAK,OACXA,GAAK,wBAAyBA,GAAK,EAAED,EAAGC,EAAE,mBAAmB,EAC7D,IAAMC,EAAI,KAAK,KAAK,qBAAqB,EACzC,OAAOA,GAAKA,EAAE,WAAaF,EAAE,UAAYE,EAAE,WAAaF,EAAE,SAAWE,EAAIF,CAC3E,CACF,EACA,OAAOG,EAAE,CAACC,EAAE,CACV,KAAM,OACN,YAAa,GACb,KAAM,CACJ,MAAO,EACT,CACF,CAAC,CAAC,EAAGL,EAAE,UAAW,WAAY,MAAM,EAAGI,EAAE,CAACC,EAAE,CAC1C,KAAM,OACN,YAAa,GACb,KAAM,CACJ,MAAO,EACT,CACF,CAAC,CAAC,EAAGL,EAAE,UAAW,WAAY,MAAM,EAAGI,EAAE,CAACC,EAAE,CAC1C,SAAU,EACZ,CAAC,CAAC,EAAGL,EAAE,UAAW,sBAAuB,IAAI,EAAGA,EAAII,EAAE,CAACF,EAAE,oCAAoC,CAAC,EAAGF,CAAC,EAAGA,CACvG,EACA,SAAS,EAAEC,EAAGC,EAAG,CACf,OAAOD,EAAE,SAAWA,EAAE,SAAW,EAAIC,EAAE,SAAW,EAAI,KAAK,IAAID,EAAE,SAAUC,EAAE,QAAQ,EAAID,EAAE,SAAWC,EAAE,SAAUD,EAAE,SAAWA,EAAE,SAAW,EAAIC,EAAE,SAAW,EAAI,KAAK,IAAID,EAAE,SAAUC,EAAE,QAAQ,EAAID,EAAE,SAAWC,EAAE,SAAUD,CAC/N","names":["t","l","e","a","c","r","m"],"x_google_ignoreList":[0]}