chunk-MTFA4FTA.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import {
  2. n as n2
  3. } from "./chunk-YASLQAXE.js";
  4. import {
  5. x
  6. } from "./chunk-2VFJVI2I.js";
  7. import {
  8. c
  9. } from "./chunk-GS2NUWMB.js";
  10. import {
  11. b
  12. } from "./chunk-UD63WBG3.js";
  13. import {
  14. d,
  15. e,
  16. l3 as l,
  17. n2 as n
  18. } from "./chunk-Y3WMVFTW.js";
  19. import {
  20. S
  21. } from "./chunk-IHXECKQQ.js";
  22. // node_modules/@arcgis/core/rest/query/executeQueryJSON.js
  23. async function s(r, t2, e2) {
  24. const s3 = await a(r, t2, e2);
  25. return x.fromJSON(s3);
  26. }
  27. async function a(o, s3, a3) {
  28. const n4 = n2(o), i = { ...a3 }, p2 = b.from(s3), { data: u } = await c(n4, p2, p2.sourceSpatialReference, i);
  29. return u;
  30. }
  31. // node_modules/@arcgis/core/layers/support/exifUtils.js
  32. function n3(n4) {
  33. const { exifInfo: e2, exifName: a3, tagName: u } = n4;
  34. if (!e2 || !a3 || !u)
  35. return null;
  36. const f = e2.find((n5) => n5.name === a3);
  37. return f ? t({ tagName: u, tags: f.tags }) : null;
  38. }
  39. function t(n4) {
  40. const { tagName: t2, tags: e2 } = n4;
  41. if (!e2 || !t2)
  42. return null;
  43. const a3 = e2.find((n5) => n5.name === t2);
  44. return a3 && a3.value || null;
  45. }
  46. // node_modules/@arcgis/core/rest/query/support/AttachmentInfo.js
  47. var s2;
  48. var p = { 1: { id: 1, rotation: 0, mirrored: false }, 2: { id: 2, rotation: 0, mirrored: true }, 3: { id: 3, rotation: 180, mirrored: false }, 4: { id: 4, rotation: 180, mirrored: true }, 5: { id: 5, rotation: -90, mirrored: true }, 6: { id: 6, rotation: 90, mirrored: false }, 7: { id: 7, rotation: 90, mirrored: true }, 8: { id: 8, rotation: -90, mirrored: false } };
  49. var a2 = s2 = class extends l {
  50. constructor(t2) {
  51. super(t2), this.contentType = null, this.exifInfo = null, this.id = null, this.globalId = null, this.keywords = null, this.name = null, this.parentGlobalId = null, this.parentObjectId = null, this.size = null, this.url = null;
  52. }
  53. get orientationInfo() {
  54. const { exifInfo: t2 } = this, o = n3({ exifName: "Exif IFD0", tagName: "Orientation", exifInfo: t2 });
  55. return p[o] || null;
  56. }
  57. clone() {
  58. return new s2({ contentType: this.contentType, exifInfo: this.exifInfo, id: this.id, globalId: this.globalId, keywords: this.keywords, name: this.name, parentGlobalId: this.parentGlobalId, parentObjectId: this.parentObjectId, size: this.size, url: this.url });
  59. }
  60. };
  61. e([d({ type: String })], a2.prototype, "contentType", void 0), e([d()], a2.prototype, "exifInfo", void 0), e([d({ readOnly: true })], a2.prototype, "orientationInfo", null), e([d({ type: S })], a2.prototype, "id", void 0), e([d({ type: String })], a2.prototype, "globalId", void 0), e([d({ type: String })], a2.prototype, "keywords", void 0), e([d({ type: String })], a2.prototype, "name", void 0), e([d({ json: { read: false } })], a2.prototype, "parentGlobalId", void 0), e([d({ json: { read: false } })], a2.prototype, "parentObjectId", void 0), e([d({ type: S })], a2.prototype, "size", void 0), e([d({ json: { read: false } })], a2.prototype, "url", void 0), a2 = s2 = e([n("esri.layers.support.AttachmentInfo")], a2);
  62. var l2 = a2;
  63. export {
  64. s,
  65. a,
  66. l2 as l
  67. };
  68. //# sourceMappingURL=chunk-MTFA4FTA.js.map