chunk-VIUIPJ2T.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. import {
  2. x
  3. } from "./chunk-K6QDYFZU.js";
  4. import {
  5. T
  6. } from "./chunk-AR2YN3E2.js";
  7. import {
  8. a,
  9. n as n2
  10. } from "./chunk-3OSQ6GXO.js";
  11. import {
  12. i
  13. } from "./chunk-44GMIOGP.js";
  14. import {
  15. s as s2
  16. } from "./chunk-HZRKBTHJ.js";
  17. import {
  18. e,
  19. l3 as l,
  20. n5 as n,
  21. y3 as y2
  22. } from "./chunk-6SOHRC7T.js";
  23. import {
  24. s3 as s
  25. } from "./chunk-E5O6P5I2.js";
  26. import {
  27. o,
  28. y
  29. } from "./chunk-SPWQ3AWG.js";
  30. import {
  31. r
  32. } from "./chunk-YXWMMD76.js";
  33. // node_modules/@arcgis/core/layers/support/FeatureFilter.js
  34. var c;
  35. var m = 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 d = 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 x({ geometry: y(i2), objectIds: y(n4), spatialRelationship: r2, timeExtent: y(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: y(t), objectIds: y(s3), spatialRelationship: i2, timeExtent: y(r2), where: e2, units: n4, distance: a3 });
  48. }
  49. };
  50. e([y2({ type: String, json: { write: true } })], d.prototype, "where", void 0), e([y2({ types: i, json: { write: true } })], d.prototype, "geometry", void 0), e([y2({ type: m.apiValues, json: { name: "spatialRel", read: { reader: m.read }, write: { allowNull: false, writer: m.write, overridePolicy() {
  51. return { enabled: r(this.geometry) };
  52. } } } })], d.prototype, "spatialRelationship", void 0), e([y2({ type: Number, json: { write: { overridePolicy(e2) {
  53. return { enabled: null != e2 && null != this.geometry };
  54. } } } })], d.prototype, "distance", void 0), e([y2({ type: [Number], json: { write: true } })], d.prototype, "objectIds", void 0), e([y2({ type: u.apiValues, json: { read: u.read, write: { writer: u.write, overridePolicy(e2) {
  55. return { enabled: null != e2 && null != this.geometry };
  56. } } } })], d.prototype, "units", void 0), e([y2({ type: T, json: { write: true } })], d.prototype, "timeExtent", void 0), d = c = e([n("esri.layers.support.FeatureFilter")], d);
  57. var y3 = d;
  58. // node_modules/@arcgis/core/layers/support/FeatureEffect.js
  59. var d2;
  60. var n3 = { read: { reader: n2 }, write: { writer: a, overridePolicy() {
  61. return { allowNull: null != this.excludedEffect, isRequired: null == this.excludedEffect };
  62. } } };
  63. var a2 = { read: { reader: n2 }, write: { writer: a, overridePolicy() {
  64. return { allowNull: null != this.includedEffect, isRequired: null == this.includedEffect };
  65. } } };
  66. var p = { name: "showExcludedLabels", default: true };
  67. var m2 = d2 = 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. var _a, _b;
  73. const l2 = super.write(e2, t);
  74. if (t == null ? void 0 : t.origin) {
  75. if (l2.filter) {
  76. const e3 = Object.keys(l2.filter);
  77. if (e3.length > 1 || "where" !== e3[0])
  78. return (_a = t.messages) == null ? void 0 : _a.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;
  79. }
  80. if ("showExcludedLabels" in l2)
  81. return (_b = t.messages) == null ? void 0 : _b.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;
  82. }
  83. return l2;
  84. }
  85. clone() {
  86. return new d2({ filter: r(this.filter) ? this.filter.clone() : null, includedEffect: this.includedEffect, excludedEffect: this.excludedEffect, excludedLabelsVisible: this.excludedLabelsVisible });
  87. }
  88. };
  89. e([y2({ type: y3, json: { write: { allowNull: true, writer(e2, r2, t, l2) {
  90. const s3 = e2 == null ? void 0 : e2.write({}, l2);
  91. s3 && 0 !== Object.keys(s3).length ? o(t, s3, r2) : o(t, null, r2);
  92. } } } })], m2.prototype, "filter", void 0), e([y2({ json: { write: true, origins: { "web-map": n3, "portal-item": n3 } } })], m2.prototype, "includedEffect", void 0), e([y2({ json: { write: true, origins: { "web-map": a2, "portal-item": a2 } } })], m2.prototype, "excludedEffect", void 0), e([y2({ type: Boolean, json: { write: true, name: "showExcludedLabels", origins: { "web-map": p, "portal-item": p } } })], m2.prototype, "excludedLabelsVisible", void 0), m2 = d2 = e([n("esri.layers.support.FeatureEffect")], m2);
  93. var w = m2;
  94. export {
  95. y3 as y,
  96. w
  97. };
  98. //# sourceMappingURL=chunk-VIUIPJ2T.js.map