chunk-NQA5XJGK.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import {
  2. p
  3. } from "./chunk-EKYSPJO6.js";
  4. import {
  5. i
  6. } from "./chunk-JOYXMSKE.js";
  7. import {
  8. t
  9. } from "./chunk-JGBXYDGB.js";
  10. import {
  11. o
  12. } from "./chunk-6T6G6LCQ.js";
  13. import {
  14. r
  15. } from "./chunk-PQFTYGF5.js";
  16. import {
  17. e,
  18. l3 as l,
  19. n5 as n,
  20. y3 as y
  21. } from "./chunk-2Z2TG5CU.js";
  22. // node_modules/@arcgis/core/layers/support/FeatureType.js
  23. var c = class extends i(l) {
  24. constructor(o2) {
  25. super(o2), this.id = null, this.name = null, this.domains = null, this.templates = null;
  26. }
  27. readDomains(o2) {
  28. const r2 = {};
  29. for (const t2 of Object.keys(o2))
  30. r2[t2] = t(o2[t2]);
  31. return r2;
  32. }
  33. writeDomains(o2, r2) {
  34. var _a;
  35. const t2 = {};
  36. for (const s of Object.keys(o2))
  37. o2[s] && (t2[s] = (_a = o2[s]) == null ? void 0 : _a.toJSON());
  38. r2.domains = t2;
  39. }
  40. };
  41. e([y({ json: { write: true } })], c.prototype, "id", void 0), e([y({ json: { write: true } })], c.prototype, "name", void 0), e([y({ json: { write: true } })], c.prototype, "domains", void 0), e([o("domains")], c.prototype, "readDomains", null), e([r("domains")], c.prototype, "writeDomains", null), e([y({ type: [p], json: { write: true } })], c.prototype, "templates", void 0), c = e([n("esri.layers.support.FeatureType")], c);
  42. var n2 = c;
  43. export {
  44. n2 as n
  45. };
  46. //# sourceMappingURL=chunk-NQA5XJGK.js.map