chunk-GD5TMIPM.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. import {
  2. b
  3. } from "./chunk-UD63WBG3.js";
  4. import {
  5. y
  6. } from "./chunk-EG5OI4V4.js";
  7. import {
  8. a,
  9. n as n2
  10. } from "./chunk-GJXW4HL5.js";
  11. import {
  12. i
  13. } from "./chunk-UXF37FQ4.js";
  14. import {
  15. s as s2
  16. } from "./chunk-PDKDCAAD.js";
  17. import {
  18. d,
  19. e,
  20. l3 as l,
  21. n2 as n
  22. } from "./chunk-Y3WMVFTW.js";
  23. import {
  24. s3 as s
  25. } from "./chunk-EMJ4ZSM2.js";
  26. import {
  27. m,
  28. o
  29. } from "./chunk-IKP3YN53.js";
  30. import {
  31. r
  32. } from "./chunk-GZT4BVFP.js";
  33. // node_modules/@arcgis/core/layers/support/FeatureFilter.js
  34. var c;
  35. 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" });
  36. 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" });
  37. var d2 = c = class extends l {
  38. constructor(e2) {
  39. super(e2), this.where = null, this.geometry = null, this.spatialRelationship = "intersects", this.distance = void 0, this.objectIds = null, this.units = null, this.timeExtent = null;
  40. }
  41. createQuery(e2 = {}) {
  42. const { where: t, geometry: i2, spatialRelationship: r2, timeExtent: s3, objectIds: n4, units: a3, distance: l2 } = this;
  43. return new b({ geometry: m(i2), objectIds: m(n4), spatialRelationship: r2, timeExtent: m(s3), where: t, units: a3, distance: l2, ...e2 });
  44. }
  45. clone() {
  46. const { where: e2, geometry: t, spatialRelationship: i2, timeExtent: r2, objectIds: s3, units: n4, distance: a3 } = this;
  47. return new c({ geometry: m(t), objectIds: m(s3), spatialRelationship: i2, timeExtent: m(r2), where: e2, units: n4, distance: a3 });
  48. }
  49. };
  50. 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() {
  51. return { enabled: r(this.geometry) };
  52. } } } })], d2.prototype, "spatialRelationship", void 0), e([d({ type: Number, json: { write: { overridePolicy(e2) {
  53. return { enabled: e2 != null && this.geometry != null };
  54. } } } })], 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) {
  55. return { enabled: e2 != null && this.geometry != null };
  56. } } } })], 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);
  57. var y2 = d2;
  58. // node_modules/@arcgis/core/layers/support/FeatureEffect.js
  59. var d3;
  60. var n3 = { read: { reader: n2 }, write: { writer: a, overridePolicy() {
  61. return { allowNull: this.excludedEffect != null, isRequired: this.excludedEffect == null };
  62. } } };
  63. var a2 = { read: { reader: n2 }, write: { writer: a, overridePolicy() {
  64. return { allowNull: this.includedEffect != null, isRequired: this.includedEffect == null };
  65. } } };
  66. var p = { name: "showExcludedLabels", default: true };
  67. var m3 = d3 = class extends l {
  68. constructor(e2) {
  69. super(e2), this.filter = null, this.includedEffect = null, this.excludedEffect = null, this.excludedLabelsVisible = false;
  70. }
  71. write(e2, t) {
  72. const l2 = super.write(e2, t);
  73. if (t?.origin) {
  74. if (l2.filter) {
  75. const e3 = Object.keys(l2.filter);
  76. if (e3.length > 1 || e3[0] !== "where")
  77. 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;
  78. }
  79. if ("showExcludedLabels" in l2)
  80. 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;
  81. }
  82. return l2;
  83. }
  84. clone() {
  85. return new d3({ filter: r(this.filter) && this.filter.clone(), includedEffect: this.includedEffect, excludedEffect: this.excludedEffect, excludedLabelsVisible: this.excludedLabelsVisible });
  86. }
  87. };
  88. e([d({ type: y2, json: { write: { allowNull: true, writer(e2, r2, t, l2) {
  89. const s3 = e2?.write({}, l2);
  90. s3 && Object.keys(s3).length !== 0 ? o(t, s3, r2) : o(t, null, r2);
  91. } } } })], 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);
  92. var w = m3;
  93. export {
  94. y2 as y,
  95. w
  96. };
  97. //# sourceMappingURL=chunk-GD5TMIPM.js.map