123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- import {
- g,
- y
- } from "./chunk-EG5OI4V4.js";
- import {
- o as o2
- } from "./chunk-PDKDCAAD.js";
- import {
- o
- } from "./chunk-ECW2QABR.js";
- import {
- r as r2
- } from "./chunk-MRJEICT6.js";
- import {
- d,
- e,
- l3 as l,
- n2 as n
- } from "./chunk-Y3WMVFTW.js";
- import {
- m
- } from "./chunk-IKP3YN53.js";
- import {
- r
- } from "./chunk-GZT4BVFP.js";
- // node_modules/@arcgis/core/portal/timeUnitKebabDictionary.js
- 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 });
- // node_modules/@arcgis/core/TimeInterval.js
- var p;
- var a = p = class extends l {
- constructor(r3) {
- super(r3), this.value = 0, this.unit = "milliseconds";
- }
- toMilliseconds() {
- return g(this.value, this.unit, "milliseconds");
- }
- clone() {
- return new p({ value: this.value, unit: this.unit });
- }
- };
- 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);
- var l2 = a;
- // node_modules/@arcgis/core/layers/support/TimeReference.js
- var i;
- var a2 = i = class extends l {
- constructor(e3) {
- super(e3), this.respectsDaylightSaving = false, this.timezone = null;
- }
- readRespectsDaylightSaving(e3, t) {
- return t.respectsDaylightSaving !== void 0 ? t.respectsDaylightSaving : t.respectDaylightSaving !== void 0 && t.respectDaylightSaving;
- }
- clone() {
- const { respectsDaylightSaving: e3, timezone: t } = this;
- return new i({ respectsDaylightSaving: e3, timezone: t });
- }
- };
- 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);
- var p2 = a2;
- // node_modules/@arcgis/core/layers/support/TimeInfo.js
- var d2;
- var c = d2 = class extends l {
- constructor(e3) {
- 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;
- }
- readFullTimeExtent(e3, r3) {
- if (!r3.timeExtent || !Array.isArray(r3.timeExtent) || r3.timeExtent.length !== 2)
- return null;
- const i2 = new Date(r3.timeExtent[0]), l3 = new Date(r3.timeExtent[1]);
- return new y({ start: i2, end: l3 });
- }
- writeFullTimeExtent(e3, t) {
- e3 && r(e3.start) && r(e3.end) ? t.timeExtent = [e3.start.getTime(), e3.end.getTime()] : t.timeExtent = null;
- }
- readInterval(e3, t) {
- 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;
- }
- writeInterval(e3, t) {
- if (e3) {
- const r3 = e3.toJSON();
- t.timeInterval = r3.value, t.timeIntervalUnits = r3.unit;
- } else
- t.timeInterval = null, t.timeIntervalUnits = null;
- }
- clone() {
- const { cumulative: e3, endField: t, hasLiveData: r3, interval: i2, startField: o3, timeReference: n2, fullTimeExtent: a3, trackIdField: s, useTime: m2 } = this;
- return new d2({ cumulative: e3, endField: t, hasLiveData: r3, interval: i2, startField: o3, timeReference: m(n2), fullTimeExtent: m(a3), trackIdField: s, useTime: m2 });
- }
- };
- 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);
- var v = c;
- export {
- e2 as e,
- l2 as l,
- v
- };
- //# sourceMappingURL=chunk-T3EUPDKL.js.map
|