chunk-JFNNSBWL.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import {
  2. a
  3. } from "./chunk-C43UE3Z5.js";
  4. import {
  5. r as r2
  6. } from "./chunk-7ZIDBK7B.js";
  7. import {
  8. b
  9. } from "./chunk-WZQZRKNH.js";
  10. import {
  11. o
  12. } from "./chunk-ECW2QABR.js";
  13. import {
  14. r
  15. } from "./chunk-MRJEICT6.js";
  16. import {
  17. d,
  18. e,
  19. n2 as n
  20. } from "./chunk-Y3WMVFTW.js";
  21. import {
  22. c,
  23. m
  24. } from "./chunk-IKP3YN53.js";
  25. // node_modules/@arcgis/core/symbols/CIMSymbol.js
  26. var m2;
  27. var l = m2 = 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. if (this.data.type === "CIMSymbolReference") {
  41. const t = this.data.primitiveOverrides;
  42. if (t) {
  43. const e2 = t.map((t2) => {
  44. const e3 = t2.valueExpressionInfo;
  45. return b(r3, o2, e3.expression);
  46. });
  47. await Promise.all(e2);
  48. }
  49. }
  50. }
  51. clone() {
  52. return new m2({ data: m(this.data) });
  53. }
  54. hash() {
  55. return c(JSON.stringify(this.data)).toString();
  56. }
  57. };
  58. e([d({ json: { write: false } })], l.prototype, "color", void 0), e([d({ 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 = m2 = e([n("esri.symbols.CIMSymbol")], l);
  59. var d2 = l;
  60. export {
  61. d2 as d
  62. };
  63. //# sourceMappingURL=chunk-JFNNSBWL.js.map