UnsupportedLayer-PC7BDPMP.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import {
  2. v as v2
  3. } from "./chunk-KHA63LLS.js";
  4. import {
  5. O
  6. } from "./chunk-I3OBGWNS.js";
  7. import {
  8. b
  9. } from "./chunk-4DDBH2K5.js";
  10. import "./chunk-7N4X6GF3.js";
  11. import "./chunk-UXF37FQ4.js";
  12. import "./chunk-ZOEK6QHJ.js";
  13. import "./chunk-2Z6LERTI.js";
  14. import "./chunk-OWVBLVP3.js";
  15. import "./chunk-EGZW6HC3.js";
  16. import "./chunk-4NKD334K.js";
  17. import "./chunk-65K7LC56.js";
  18. import "./chunk-ATPLLI5W.js";
  19. import "./chunk-WJ3OEUD3.js";
  20. import "./chunk-MXB2XLKV.js";
  21. import "./chunk-XH7RUGVZ.js";
  22. import "./chunk-TBBTRX4O.js";
  23. import "./chunk-YBSUITLL.js";
  24. import "./chunk-DT6EAZQ5.js";
  25. import "./chunk-VNFRAYHO.js";
  26. import "./chunk-R5IG2D6H.js";
  27. import "./chunk-VBRY5KJM.js";
  28. import "./chunk-PDKDCAAD.js";
  29. import "./chunk-ECW2QABR.js";
  30. import "./chunk-GCDJLKH4.js";
  31. import "./chunk-MRJEICT6.js";
  32. import {
  33. d,
  34. e,
  35. n2 as n,
  36. v2 as v
  37. } from "./chunk-Y3WMVFTW.js";
  38. import "./chunk-SAS7RONY.js";
  39. import "./chunk-WSRBH7BF.js";
  40. import "./chunk-IHXECKQQ.js";
  41. import "./chunk-ULGDPLM2.js";
  42. import {
  43. s3 as s
  44. } from "./chunk-EMJ4ZSM2.js";
  45. import "./chunk-IKP3YN53.js";
  46. import "./chunk-GZT4BVFP.js";
  47. import "./chunk-A5ICIBVI.js";
  48. // node_modules/@arcgis/core/layers/UnsupportedLayer.js
  49. var c = class extends v2(O(b)) {
  50. constructor(r) {
  51. super(r), this.resourceInfo = null, this.type = "unsupported";
  52. }
  53. initialize() {
  54. this.addResolvingPromise(new Promise((r, o) => {
  55. v(() => {
  56. const r2 = this.resourceInfo && (this.resourceInfo.layerType || this.resourceInfo.type);
  57. let s2 = "Unsupported layer type";
  58. r2 && (s2 += " " + r2), o(new s("layer:unsupported-layer-type", s2, { layerType: r2 }));
  59. });
  60. }));
  61. }
  62. read(r, e2) {
  63. const o = { resourceInfo: r };
  64. r.id != null && (o.id = r.id), r.title != null && (o.title = r.title), super.read(o, e2);
  65. }
  66. write(r) {
  67. return Object.assign(r || {}, this.resourceInfo, { id: this.id });
  68. }
  69. };
  70. e([d({ readOnly: true })], c.prototype, "resourceInfo", void 0), e([d({ type: ["show", "hide"] })], c.prototype, "listMode", void 0), e([d({ json: { read: false }, readOnly: true, value: "unsupported" })], c.prototype, "type", void 0), c = e([n("esri.layers.UnsupportedLayer")], c);
  71. var u = c;
  72. export {
  73. u as default
  74. };
  75. //# sourceMappingURL=UnsupportedLayer-PC7BDPMP.js.map