chunk-DLMAGHHC.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import {
  2. a
  3. } from "./chunk-MCWCB5IY.js";
  4. import {
  5. S
  6. } from "./chunk-CRGY2SDS.js";
  7. import {
  8. r as r2
  9. } from "./chunk-5N7JLUJJ.js";
  10. import {
  11. o
  12. } from "./chunk-6T6G6LCQ.js";
  13. import {
  14. r
  15. } from "./chunk-PQFTYGF5.js";
  16. import {
  17. e,
  18. n5 as n,
  19. y3 as y2
  20. } from "./chunk-2Z2TG5CU.js";
  21. import {
  22. c,
  23. y
  24. } from "./chunk-SPWQ3AWG.js";
  25. // node_modules/@arcgis/core/symbols/CIMSymbol.js
  26. var m;
  27. var l = m = class extends a {
  28. constructor(r3) {
  29. super(r3), this.data = null, this.type = "cim";
  30. }
  31. readData(r3, o2) {
  32. return o2;
  33. }
  34. writeData(r3, o2) {
  35. if (r3)
  36. for (const t in r3)
  37. o2[t] = r3[t];
  38. }
  39. async collectRequiredFields(r3, o2) {
  40. var _a;
  41. if ("CIMSymbolReference" === ((_a = this.data) == null ? void 0 : _a.type)) {
  42. const t = this.data.primitiveOverrides;
  43. if (t) {
  44. const e2 = t.map((t2) => {
  45. const e3 = t2.valueExpressionInfo;
  46. return S(r3, o2, e3.expression);
  47. });
  48. await Promise.all(e2);
  49. }
  50. }
  51. }
  52. clone() {
  53. return new m({ data: y(this.data) });
  54. }
  55. hash() {
  56. return c(JSON.stringify(this.data)).toString();
  57. }
  58. };
  59. e([y2({ json: { write: false } })], l.prototype, "color", void 0), e([y2({ json: { write: true } })], l.prototype, "data", void 0), e([o("data", ["symbol"])], l.prototype, "readData", null), e([r("data", {})], l.prototype, "writeData", null), e([r2({ CIMSymbolReference: "cim" }, { readOnly: true })], l.prototype, "type", void 0), l = m = e([n("esri.symbols.CIMSymbol")], l);
  60. var d = l;
  61. export {
  62. d
  63. };
  64. //# sourceMappingURL=chunk-DLMAGHHC.js.map