chunk-T3EUPDKL.js 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. import {
  2. g,
  3. y
  4. } from "./chunk-EG5OI4V4.js";
  5. import {
  6. o as o2
  7. } from "./chunk-PDKDCAAD.js";
  8. import {
  9. o
  10. } from "./chunk-ECW2QABR.js";
  11. import {
  12. r as r2
  13. } from "./chunk-MRJEICT6.js";
  14. import {
  15. d,
  16. e,
  17. l3 as l,
  18. n2 as n
  19. } from "./chunk-Y3WMVFTW.js";
  20. import {
  21. m
  22. } from "./chunk-IKP3YN53.js";
  23. import {
  24. r
  25. } from "./chunk-GZT4BVFP.js";
  26. // node_modules/@arcgis/core/portal/timeUnitKebabDictionary.js
  27. var e2 = o2()({ esriTimeUnitsMilliseconds: "milliseconds", esriTimeUnitsSeconds: "seconds", esriTimeUnitsMinutes: "minutes", esriTimeUnitsHours: "hours", esriTimeUnitsDays: "days", esriTimeUnitsWeeks: "weeks", esriTimeUnitsMonths: "months", esriTimeUnitsYears: "years", esriTimeUnitsDecades: "decades", esriTimeUnitsCenturies: "centuries", esriTimeUnitsUnknown: void 0 });
  28. // node_modules/@arcgis/core/TimeInterval.js
  29. var p;
  30. var a = p = class extends l {
  31. constructor(r3) {
  32. super(r3), this.value = 0, this.unit = "milliseconds";
  33. }
  34. toMilliseconds() {
  35. return g(this.value, this.unit, "milliseconds");
  36. }
  37. clone() {
  38. return new p({ value: this.value, unit: this.unit });
  39. }
  40. };
  41. e([d({ type: Number, json: { write: true }, nonNullable: true })], a.prototype, "value", void 0), e([d({ type: e2.apiValues, json: { type: e2.jsonValues, read: e2.read, write: e2.write }, nonNullable: true })], a.prototype, "unit", void 0), a = p = e([n("esri.TimeInterval")], a);
  42. var l2 = a;
  43. // node_modules/@arcgis/core/layers/support/TimeReference.js
  44. var i;
  45. var a2 = i = class extends l {
  46. constructor(e3) {
  47. super(e3), this.respectsDaylightSaving = false, this.timezone = null;
  48. }
  49. readRespectsDaylightSaving(e3, t) {
  50. return t.respectsDaylightSaving !== void 0 ? t.respectsDaylightSaving : t.respectDaylightSaving !== void 0 && t.respectDaylightSaving;
  51. }
  52. clone() {
  53. const { respectsDaylightSaving: e3, timezone: t } = this;
  54. return new i({ respectsDaylightSaving: e3, timezone: t });
  55. }
  56. };
  57. e([d({ type: Boolean, json: { write: true } })], a2.prototype, "respectsDaylightSaving", void 0), e([o("respectsDaylightSaving", ["respectsDaylightSaving", "respectDaylightSaving"])], a2.prototype, "readRespectsDaylightSaving", null), e([d({ type: String, json: { read: { source: "timeZone" }, write: { target: "timeZone" } } })], a2.prototype, "timezone", void 0), a2 = i = e([n("esri.layers.support.TimeReference")], a2);
  58. var p2 = a2;
  59. // node_modules/@arcgis/core/layers/support/TimeInfo.js
  60. var d2;
  61. var c = d2 = class extends l {
  62. constructor(e3) {
  63. super(e3), this.cumulative = false, this.endField = null, this.fullTimeExtent = null, this.hasLiveData = false, this.interval = null, this.startField = null, this.timeReference = null, this.trackIdField = null, this.useTime = true;
  64. }
  65. readFullTimeExtent(e3, r3) {
  66. if (!r3.timeExtent || !Array.isArray(r3.timeExtent) || r3.timeExtent.length !== 2)
  67. return null;
  68. const i2 = new Date(r3.timeExtent[0]), l3 = new Date(r3.timeExtent[1]);
  69. return new y({ start: i2, end: l3 });
  70. }
  71. writeFullTimeExtent(e3, t) {
  72. e3 && r(e3.start) && r(e3.end) ? t.timeExtent = [e3.start.getTime(), e3.end.getTime()] : t.timeExtent = null;
  73. }
  74. readInterval(e3, t) {
  75. return t.timeInterval && t.timeIntervalUnits ? new l2({ value: t.timeInterval, unit: e2.fromJSON(t.timeIntervalUnits) }) : t.defaultTimeInterval && t.defaultTimeIntervalUnits ? new l2({ value: t.defaultTimeInterval, unit: e2.fromJSON(t.defaultTimeIntervalUnits) }) : null;
  76. }
  77. writeInterval(e3, t) {
  78. if (e3) {
  79. const r3 = e3.toJSON();
  80. t.timeInterval = r3.value, t.timeIntervalUnits = r3.unit;
  81. } else
  82. t.timeInterval = null, t.timeIntervalUnits = null;
  83. }
  84. clone() {
  85. const { cumulative: e3, endField: t, hasLiveData: r3, interval: i2, startField: o3, timeReference: n2, fullTimeExtent: a3, trackIdField: s, useTime: m2 } = this;
  86. return new d2({ cumulative: e3, endField: t, hasLiveData: r3, interval: i2, startField: o3, timeReference: m(n2), fullTimeExtent: m(a3), trackIdField: s, useTime: m2 });
  87. }
  88. };
  89. e([d({ type: Boolean, json: { read: { source: "exportOptions.timeDataCumulative" }, write: { target: "exportOptions.timeDataCumulative" } } })], c.prototype, "cumulative", void 0), e([d({ type: String, json: { read: { source: "endTimeField" }, write: { target: "endTimeField", allowNull: true } } })], c.prototype, "endField", void 0), e([d({ type: y, json: { write: { enabled: true, allowNull: true } } })], c.prototype, "fullTimeExtent", void 0), e([o("fullTimeExtent", ["timeExtent"])], c.prototype, "readFullTimeExtent", null), e([r2("fullTimeExtent")], c.prototype, "writeFullTimeExtent", null), e([d({ type: Boolean, json: { write: true } })], c.prototype, "hasLiveData", void 0), e([d({ type: l2, json: { write: { enabled: true, allowNull: true } } })], c.prototype, "interval", void 0), e([o("interval", ["timeInterval", "timeIntervalUnits", "defaultTimeInterval", "defaultTimeIntervalUnits"])], c.prototype, "readInterval", null), e([r2("interval")], c.prototype, "writeInterval", null), e([d({ type: String, json: { read: { source: "startTimeField" }, write: { target: "startTimeField", allowNull: true } } })], c.prototype, "startField", void 0), e([d({ type: p2, json: { write: { enabled: true, allowNull: true } } })], c.prototype, "timeReference", void 0), e([d({ type: String, json: { write: { enabled: true, allowNull: true } } })], c.prototype, "trackIdField", void 0), e([d({ type: Boolean, json: { read: { source: "exportOptions.useTime" }, write: { target: "exportOptions.useTime" } } })], c.prototype, "useTime", void 0), c = d2 = e([n("esri.layers.support.TimeInfo")], c);
  90. var v = c;
  91. export {
  92. e2 as e,
  93. l2 as l,
  94. v
  95. };
  96. //# sourceMappingURL=chunk-T3EUPDKL.js.map