123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- import {
- b
- } from "./chunk-UD63WBG3.js";
- import {
- y
- } from "./chunk-EG5OI4V4.js";
- import {
- a,
- n as n2
- } from "./chunk-GJXW4HL5.js";
- import {
- i
- } from "./chunk-UXF37FQ4.js";
- import {
- s as s2
- } from "./chunk-PDKDCAAD.js";
- import {
- d,
- e,
- l3 as l,
- n2 as n
- } from "./chunk-Y3WMVFTW.js";
- import {
- s3 as s
- } from "./chunk-EMJ4ZSM2.js";
- import {
- m,
- o
- } from "./chunk-IKP3YN53.js";
- import {
- r
- } from "./chunk-GZT4BVFP.js";
- // node_modules/@arcgis/core/layers/support/FeatureFilter.js
- var c;
- var m2 = new s2({ esriSpatialRelIntersects: "intersects", esriSpatialRelContains: "contains", esriSpatialRelCrosses: "crosses", esriSpatialRelDisjoint: "disjoint", esriSpatialRelEnvelopeIntersects: "envelope-intersects", esriSpatialRelIndexIntersects: "index-intersects", esriSpatialRelOverlaps: "overlaps", esriSpatialRelTouches: "touches", esriSpatialRelWithin: "within", esriSpatialRelRelation: "relation" });
- var u = new s2({ esriSRUnit_Meter: "meters", esriSRUnit_Kilometer: "kilometers", esriSRUnit_Foot: "feet", esriSRUnit_StatuteMile: "miles", esriSRUnit_NauticalMile: "nautical-miles", esriSRUnit_USNauticalMile: "us-nautical-miles" });
- var d2 = c = class extends l {
- constructor(e2) {
- super(e2), this.where = null, this.geometry = null, this.spatialRelationship = "intersects", this.distance = void 0, this.objectIds = null, this.units = null, this.timeExtent = null;
- }
- createQuery(e2 = {}) {
- const { where: t, geometry: i2, spatialRelationship: r2, timeExtent: s3, objectIds: n4, units: a3, distance: l2 } = this;
- return new b({ geometry: m(i2), objectIds: m(n4), spatialRelationship: r2, timeExtent: m(s3), where: t, units: a3, distance: l2, ...e2 });
- }
- clone() {
- const { where: e2, geometry: t, spatialRelationship: i2, timeExtent: r2, objectIds: s3, units: n4, distance: a3 } = this;
- return new c({ geometry: m(t), objectIds: m(s3), spatialRelationship: i2, timeExtent: m(r2), where: e2, units: n4, distance: a3 });
- }
- };
- e([d({ type: String, json: { write: true } })], d2.prototype, "where", void 0), e([d({ types: i, json: { write: true } })], d2.prototype, "geometry", void 0), e([d({ type: m2.apiValues, json: { name: "spatialRel", read: { reader: m2.read }, write: { allowNull: false, writer: m2.write, overridePolicy() {
- return { enabled: r(this.geometry) };
- } } } })], d2.prototype, "spatialRelationship", void 0), e([d({ type: Number, json: { write: { overridePolicy(e2) {
- return { enabled: e2 != null && this.geometry != null };
- } } } })], d2.prototype, "distance", void 0), e([d({ type: [Number], json: { write: true } })], d2.prototype, "objectIds", void 0), e([d({ type: u.apiValues, json: { read: u.read, write: { writer: u.write, overridePolicy(e2) {
- return { enabled: e2 != null && this.geometry != null };
- } } } })], d2.prototype, "units", void 0), e([d({ type: y, json: { write: true } })], d2.prototype, "timeExtent", void 0), d2 = c = e([n("esri.layers.support.FeatureFilter")], d2);
- var y2 = d2;
- // node_modules/@arcgis/core/layers/support/FeatureEffect.js
- var d3;
- var n3 = { read: { reader: n2 }, write: { writer: a, overridePolicy() {
- return { allowNull: this.excludedEffect != null, isRequired: this.excludedEffect == null };
- } } };
- var a2 = { read: { reader: n2 }, write: { writer: a, overridePolicy() {
- return { allowNull: this.includedEffect != null, isRequired: this.includedEffect == null };
- } } };
- var p = { name: "showExcludedLabels", default: true };
- var m3 = d3 = class extends l {
- constructor(e2) {
- super(e2), this.filter = null, this.includedEffect = null, this.excludedEffect = null, this.excludedLabelsVisible = false;
- }
- write(e2, t) {
- const l2 = super.write(e2, t);
- if (t?.origin) {
- if (l2.filter) {
- const e3 = Object.keys(l2.filter);
- if (e3.length > 1 || e3[0] !== "where")
- return t.messages?.push(new s("web-document-write:unsupported-feature-effect", "Invalid feature effect 'filter'. A filter can only contain a 'where' property", { layer: t.layer, effect: this })), null;
- }
- if ("showExcludedLabels" in l2)
- return t.messages?.push(new s("web-document-write:unsupported-feature-effect", "Invalid value for property 'excludedLabelsVisible' which should always be 'true'", { layer: t.layer, effect: this })), null;
- }
- return l2;
- }
- clone() {
- return new d3({ filter: r(this.filter) && this.filter.clone(), includedEffect: this.includedEffect, excludedEffect: this.excludedEffect, excludedLabelsVisible: this.excludedLabelsVisible });
- }
- };
- e([d({ type: y2, json: { write: { allowNull: true, writer(e2, r2, t, l2) {
- const s3 = e2?.write({}, l2);
- s3 && Object.keys(s3).length !== 0 ? o(t, s3, r2) : o(t, null, r2);
- } } } })], m3.prototype, "filter", void 0), e([d({ json: { write: true, origins: { "web-map": n3, "portal-item": n3 } } })], m3.prototype, "includedEffect", void 0), e([d({ json: { write: true, origins: { "web-map": a2, "portal-item": a2 } } })], m3.prototype, "excludedEffect", void 0), e([d({ type: Boolean, json: { write: true, name: "showExcludedLabels", origins: { "web-map": p, "portal-item": p } } })], m3.prototype, "excludedLabelsVisible", void 0), m3 = d3 = e([n("esri.layers.support.FeatureEffect")], m3);
- var w = m3;
- export {
- y2 as y,
- w
- };
- //# sourceMappingURL=chunk-GD5TMIPM.js.map
|