chunk-JM5OVQAD.js 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. import {
  2. T,
  3. g
  4. } from "./chunk-VRLXUHP2.js";
  5. import {
  6. o
  7. } from "./chunk-HZRKBTHJ.js";
  8. import {
  9. o as o2
  10. } from "./chunk-6T6G6LCQ.js";
  11. import {
  12. r as r2
  13. } from "./chunk-PQFTYGF5.js";
  14. import {
  15. e,
  16. l3 as l,
  17. n5 as n,
  18. y3 as y2
  19. } from "./chunk-2Z2TG5CU.js";
  20. import {
  21. y
  22. } from "./chunk-SPWQ3AWG.js";
  23. import {
  24. r
  25. } from "./chunk-YXWMMD76.js";
  26. // node_modules/@arcgis/core/portal/timeUnitKebabDictionary.js
  27. var e2 = o()({ 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([y2({ type: Number, json: { write: true }, nonNullable: true })], a.prototype, "value", void 0), e([y2({ 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 void 0 !== t.respectsDaylightSaving ? t.respectsDaylightSaving : void 0 !== t.respectDaylightSaving && t.respectDaylightSaving;
  51. }
  52. clone() {
  53. const { respectsDaylightSaving: e3, timezone: t } = this;
  54. return new i({ respectsDaylightSaving: e3, timezone: t });
  55. }
  56. };
  57. e([y2({ type: Boolean, json: { write: true } })], a2.prototype, "respectsDaylightSaving", void 0), e([o2("respectsDaylightSaving", ["respectsDaylightSaving", "respectDaylightSaving"])], a2.prototype, "readRespectsDaylightSaving", null), e([y2({ 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 d;
  61. var c = d = 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) || 2 !== r3.timeExtent.length)
  67. return null;
  68. const i2 = new Date(r3.timeExtent[0]), l3 = new Date(r3.timeExtent[1]);
  69. return new T({ 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: m } = this;
  86. return new d({ cumulative: e3, endField: t, hasLiveData: r3, interval: i2, startField: o3, timeReference: y(n2), fullTimeExtent: y(a3), trackIdField: s, useTime: m });
  87. }
  88. };
  89. e([y2({ type: Boolean, json: { read: { source: "exportOptions.timeDataCumulative" }, write: { target: "exportOptions.timeDataCumulative" } } })], c.prototype, "cumulative", void 0), e([y2({ type: String, json: { read: { source: "endTimeField" }, write: { target: "endTimeField", allowNull: true } } })], c.prototype, "endField", void 0), e([y2({ type: T, json: { write: { enabled: true, allowNull: true } } })], c.prototype, "fullTimeExtent", void 0), e([o2("fullTimeExtent", ["timeExtent"])], c.prototype, "readFullTimeExtent", null), e([r2("fullTimeExtent")], c.prototype, "writeFullTimeExtent", null), e([y2({ type: Boolean, json: { write: true } })], c.prototype, "hasLiveData", void 0), e([y2({ type: l2, json: { write: { enabled: true, allowNull: true } } })], c.prototype, "interval", void 0), e([o2("interval", ["timeInterval", "timeIntervalUnits", "defaultTimeInterval", "defaultTimeIntervalUnits"])], c.prototype, "readInterval", null), e([r2("interval")], c.prototype, "writeInterval", null), e([y2({ type: String, json: { read: { source: "startTimeField" }, write: { target: "startTimeField", allowNull: true } } })], c.prototype, "startField", void 0), e([y2({ type: p2, json: { write: { enabled: true, allowNull: true } } })], c.prototype, "timeReference", void 0), e([y2({ type: String, json: { write: { enabled: true, allowNull: true } } })], c.prototype, "trackIdField", void 0), e([y2({ type: Boolean, json: { read: { source: "exportOptions.useTime" }, write: { target: "exportOptions.useTime" } } })], c.prototype, "useTime", void 0), c = d = 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-JM5OVQAD.js.map