chunk-HGDNY7J3.js 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. import {
  2. w
  3. } from "./chunk-GD5TMIPM.js";
  4. import {
  5. j
  6. } from "./chunk-RQJNTZAL.js";
  7. import {
  8. p2
  9. } from "./chunk-CIG5OHC7.js";
  10. import {
  11. B
  12. } from "./chunk-PUSPZYFZ.js";
  13. import {
  14. D
  15. } from "./chunk-EN7YGJWG.js";
  16. import {
  17. r
  18. } from "./chunk-7ZIDBK7B.js";
  19. import {
  20. m as m2,
  21. p
  22. } from "./chunk-PSV473TI.js";
  23. import {
  24. o
  25. } from "./chunk-WEMIK25H.js";
  26. import {
  27. d,
  28. e,
  29. l3 as l,
  30. n2 as n
  31. } from "./chunk-Y3WMVFTW.js";
  32. import {
  33. m
  34. } from "./chunk-IKP3YN53.js";
  35. // node_modules/@arcgis/core/layers/mixins/FeatureEffectLayer.js
  36. var t = { write: { allowNull: true } };
  37. var p3 = (p8) => {
  38. let c5 = class extends p8 {
  39. constructor() {
  40. super(...arguments), this.featureEffect = null;
  41. }
  42. };
  43. return e([d({ type: w, json: { origins: { "web-map": t, "portal-item": t } } })], c5.prototype, "featureEffect", void 0), c5 = e([n("esri.layers.mixins.FeatureEffectLayer")], c5), c5;
  44. };
  45. // node_modules/@arcgis/core/layers/support/FeatureReduction.js
  46. var t2 = class extends l {
  47. constructor() {
  48. super(...arguments), this.type = null;
  49. }
  50. };
  51. e([d({ type: ["selection", "cluster", "binning"], readOnly: true, json: { read: false, write: true } })], t2.prototype, "type", void 0), t2 = e([n("esri.layers.support.FeatureReduction")], t2);
  52. // node_modules/@arcgis/core/layers/support/FeatureReductionSelection.js
  53. var t3;
  54. var c = t3 = class extends t2 {
  55. constructor(r4) {
  56. super(r4), this.type = "selection";
  57. }
  58. clone() {
  59. return new t3();
  60. }
  61. };
  62. e([d({ type: ["selection"] })], c.prototype, "type", void 0), c = t3 = e([n("esri.layers.support.FeatureReductionSelection")], c);
  63. var p4 = c;
  64. // node_modules/@arcgis/core/layers/support/OutStatistic.js
  65. var r2;
  66. var e2 = r2 = class extends l {
  67. constructor() {
  68. super(...arguments), this.statisticType = null, this.onStatisticField = null, this.onStatisticValueExpression = null;
  69. }
  70. clone() {
  71. return new r2({ statisticType: this.statisticType, onStatisticField: this.onStatisticField, onStatisticValueExpression: this.onStatisticValueExpression });
  72. }
  73. };
  74. e([d({ type: String, json: { write: true } })], e2.prototype, "statisticType", void 0), e([d({ type: String, json: { write: true } })], e2.prototype, "onStatisticField", void 0), e([d({ type: String, json: { write: true } })], e2.prototype, "onStatisticValueExpression", void 0), e2 = r2 = e([n("esri.layers.support.OutStatistic")], e2);
  75. var p5 = e2;
  76. // node_modules/@arcgis/core/layers/support/AggregateField.js
  77. var i;
  78. var p6 = i = class extends l {
  79. constructor() {
  80. super(...arguments), this.name = null, this.outStatistic = null;
  81. }
  82. clone() {
  83. return new i({ name: this.name, outStatistic: this.outStatistic.clone() });
  84. }
  85. };
  86. e([d({ type: String, json: { write: true } })], p6.prototype, "name", void 0), e([d({ type: p5, json: { write: true } })], p6.prototype, "outStatistic", void 0), p6 = i = e([n("esri.layers.support.AggregateField")], p6);
  87. var c2 = p6;
  88. // node_modules/@arcgis/core/layers/support/FeatureReductionBinning.js
  89. var u;
  90. var c3 = u = class extends t2 {
  91. constructor(e3) {
  92. super(e3), this.type = "binning", this.fixedBinLevel = 3, this.labelingInfo = null, this.labelsVisible = true, this.popupEnabled = true, this.popupTemplate = null, this.fields = [], this.renderer = null;
  93. }
  94. clone() {
  95. return new u({ fields: m(this.fields), fixedBinLevel: this.fixedBinLevel, labelingInfo: m(this.labelingInfo), labelsVisible: this.labelsVisible, popupEnabled: this.popupEnabled, popupTemplate: m(this.popupTemplate), renderer: m(this.renderer) });
  96. }
  97. };
  98. e([r({ binning: "binning" })], c3.prototype, "type", void 0), e([d({ type: Number, json: { write: true } })], c3.prototype, "fixedBinLevel", void 0), e([d({ type: [j], json: { read: { source: "drawingInfo.labelingInfo" }, write: { target: "drawingInfo.labelingInfo" } } })], c3.prototype, "labelingInfo", void 0), e([d(m2)], c3.prototype, "labelsVisible", void 0), e([d(p)], c3.prototype, "popupEnabled", void 0), e([d({ type: B, json: { name: "popupInfo", write: true } })], c3.prototype, "popupTemplate", void 0), e([d({ type: [c2], json: { write: true, origins: { "web-document": { write: false }, "portal-item": { write: false } } } })], c3.prototype, "fields", void 0), e([d({ types: p2, json: { write: true } })], c3.prototype, "renderer", void 0), c3 = u = e([n("esri.layers.support.FeatureReductionBinning")], c3);
  99. var f = c3;
  100. // node_modules/@arcgis/core/layers/support/FeatureReductionCluster.js
  101. var c4;
  102. var y = c4 = class extends l {
  103. constructor(e3) {
  104. super(e3), this.type = "cluster", this.clusterRadius = o("80px"), this.clusterMinSize = o("12px"), this.clusterMaxSize = o("50px"), this.popupEnabled = true, this.popupTemplate = null, this.symbol = null, this.labelingInfo = null, this.labelsVisible = true, this.fields = null;
  105. }
  106. clone() {
  107. return new c4({ clusterRadius: this.clusterRadius, clusterMinSize: this.clusterMinSize, clusterMaxSize: this.clusterMaxSize, labelingInfo: m(this.labelingInfo), labelsVisible: this.labelsVisible, fields: m(this.fields), renderer: m(this.renderer), popupEnabled: this.popupEnabled, popupTemplate: m(this.popupTemplate) });
  108. }
  109. };
  110. e([d({ type: ["cluster"], readOnly: true, json: { write: true } })], y.prototype, "type", void 0), e([d({ type: Number, cast: (e3) => e3 === "auto" ? e3 : o(e3), json: { write: true } })], y.prototype, "clusterRadius", void 0), e([d({ type: Number, cast: o, json: { write: true } })], y.prototype, "clusterMinSize", void 0), e([d({ type: Number, cast: o, json: { write: true } })], y.prototype, "clusterMaxSize", void 0), e([d(p)], y.prototype, "popupEnabled", void 0), e([d({ type: B, json: { read: { source: "popupInfo" }, write: { target: "popupInfo" } } })], y.prototype, "popupTemplate", void 0), e([d({ types: p2, json: { write: true } })], y.prototype, "renderer", void 0), e([d({ types: D })], y.prototype, "symbol", void 0), e([d({ type: [j], json: { read: { source: "drawingInfo.labelingInfo" }, write: { target: "drawingInfo.labelingInfo" } } })], y.prototype, "labelingInfo", void 0), e([d(m2)], y.prototype, "labelsVisible", void 0), e([d({ type: [c2], json: { write: true, origins: { "web-document": { write: false }, "portal-item": { write: false } } } })], y.prototype, "fields", void 0), y = c4 = e([n("esri.layers.support.FeatureReductionCluster")], y);
  111. var j2 = y;
  112. // node_modules/@arcgis/core/layers/support/featureReductionUtils.js
  113. var n2 = { key: "type", base: t2, typeMap: { selection: j2 } };
  114. var p7 = { types: { key: "type", base: t2, typeMap: { selection: p4, cluster: j2, binning: f } }, json: { name: "layerDefinition.featureReduction", write: { allowNull: true }, origins: { "web-map": { types: n2 }, "portal-item": { types: n2 }, "web-scene": { types: { key: "type", base: t2, typeMap: { selection: p4 } } } } } };
  115. // node_modules/@arcgis/core/layers/support/labelingInfo.js
  116. var n3 = /\[([^\[\]]+)\]/gi;
  117. function r3(r4, i2, o2) {
  118. return r4 ? r4.map((r5) => {
  119. const s = new j();
  120. if (s.read(r5, o2), s.labelExpression) {
  121. const e3 = i2.fields || i2.layerDefinition && i2.layerDefinition.fields || this.fields;
  122. s.labelExpression = s.labelExpression.replace(n3, (n4, r6) => `[${t4(r6, e3)}]`);
  123. }
  124. return s;
  125. }) : null;
  126. }
  127. function t4(e3, n4) {
  128. if (!n4)
  129. return e3;
  130. const r4 = e3.toLowerCase();
  131. for (let t5 = 0; t5 < n4.length; t5++) {
  132. const e4 = n4[t5].name;
  133. if (e4.toLowerCase() === r4)
  134. return e4;
  135. }
  136. return e3;
  137. }
  138. export {
  139. p3 as p,
  140. t2 as t,
  141. p4 as p2,
  142. p7 as p3,
  143. r3 as r
  144. };
  145. //# sourceMappingURL=chunk-HGDNY7J3.js.map