{"version":3,"sources":["node_modules/@arcgis/core/portal/timeUnitKebabDictionary.js","node_modules/@arcgis/core/TimeInterval.js","node_modules/@arcgis/core/layers/support/TimeInfo.js","node_modules/@arcgis/core/layers/mixins/TemporalLayer.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.28/esri/copyright.txt for details.\n*/\nimport { strict as s } from \"../core/jsonMap.js\";\nconst e = s()({\n esriTimeUnitsMilliseconds: \"milliseconds\",\n esriTimeUnitsSeconds: \"seconds\",\n esriTimeUnitsMinutes: \"minutes\",\n esriTimeUnitsHours: \"hours\",\n esriTimeUnitsDays: \"days\",\n esriTimeUnitsWeeks: \"weeks\",\n esriTimeUnitsMonths: \"months\",\n esriTimeUnitsYears: \"years\",\n esriTimeUnitsDecades: \"decades\",\n esriTimeUnitsCenturies: \"centuries\",\n esriTimeUnitsUnknown: void 0\n});\nexport { e as timeUnitKebabDictionary };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.28/esri/copyright.txt for details.\n*/\nimport { _ as o } from \"./chunks/tslib.es6.js\";\nimport { ClonableMixin as r } from \"./core/Clonable.js\";\nimport { JSONSupport as s } from \"./core/JSONSupport.js\";\nimport { convertTime as t } from \"./core/timeUtils.js\";\nimport { property as e } from \"./core/accessorSupport/decorators/property.js\";\nimport \"./core/accessorSupport/ensureType.js\";\nimport \"./core/arrayUtils.js\";\nimport \"./core/has.js\";\nimport { enumeration as i } from \"./core/accessorSupport/decorators/enumeration.js\";\nimport { subclass as p } from \"./core/accessorSupport/decorators/subclass.js\";\nimport { timeUnitKebabDictionary as c } from \"./portal/timeUnitKebabDictionary.js\";\nlet a = class extends r(s) {\n constructor(o) {\n super(o), this.unit = \"milliseconds\", this.value = 0;\n }\n toMilliseconds() {\n return t(this.value, this.unit, \"milliseconds\");\n }\n};\no([i(c, {\n nonNullable: !0\n})], a.prototype, \"unit\", void 0), o([e({\n type: Number,\n json: {\n write: !0\n },\n nonNullable: !0\n})], a.prototype, \"value\", void 0), a = o([p(\"esri.TimeInterval\")], a);\nconst l = a;\nexport { l as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.28/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../chunks/tslib.es6.js\";\nimport t from \"../../TimeExtent.js\";\nimport r from \"../../TimeInterval.js\";\nimport { ClonableMixin as l } from \"../../core/Clonable.js\";\nimport { JSONSupport as i } from \"../../core/JSONSupport.js\";\nimport { property as o } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/accessorSupport/ensureType.js\";\nimport \"../../core/arrayUtils.js\";\nimport \"../../core/has.js\";\nimport { reader as n } from \"../../core/accessorSupport/decorators/reader.js\";\nimport { subclass as a } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { writer as s } from \"../../core/accessorSupport/decorators/writer.js\";\nimport { timeZoneProperty as m } from \"../../time/timeZoneUtils.js\";\nfunction p(e, t) {\n return r.fromJSON({\n value: e,\n unit: t\n });\n}\nlet u = class extends l(i) {\n constructor(e) {\n super(e), this.cumulative = !1, this.endField = null, this.fullTimeExtent = null, this.hasLiveData = !1, this.interval = null, this.startField = null, this.timeZone = null, this.trackIdField = null, this.useTime = !0;\n }\n readFullTimeExtent(e, r) {\n if (!r.timeExtent || !Array.isArray(r.timeExtent) || 2 !== r.timeExtent.length) return null;\n const l = new Date(r.timeExtent[0]),\n i = new Date(r.timeExtent[1]);\n return new t({\n start: l,\n end: i\n });\n }\n writeFullTimeExtent(e, t) {\n null != e?.start && null != e.end ? t.timeExtent = [e.start.getTime(), e.end.getTime()] : t.timeExtent = null;\n }\n readInterval(e, t) {\n return t.timeInterval && t.timeIntervalUnits ? p(t.timeInterval, t.timeIntervalUnits) : t.defaultTimeInterval && t.defaultTimeIntervalUnits ? p(t.defaultTimeInterval, t.defaultTimeIntervalUnits) : null;\n }\n writeInterval(e, t) {\n t.timeInterval = e?.toJSON().value ?? null, t.timeIntervalUnits = e?.toJSON().unit ?? null;\n }\n};\ne([o({\n type: Boolean,\n json: {\n name: \"exportOptions.timeDataCumulative\",\n write: !0\n }\n})], u.prototype, \"cumulative\", void 0), e([o({\n type: String,\n json: {\n name: \"endTimeField\",\n write: {\n enabled: !0,\n allowNull: !0\n }\n }\n})], u.prototype, \"endField\", void 0), e([o({\n type: t,\n json: {\n write: {\n enabled: !0,\n allowNull: !0\n }\n }\n})], u.prototype, \"fullTimeExtent\", void 0), e([n(\"fullTimeExtent\", [\"timeExtent\"])], u.prototype, \"readFullTimeExtent\", null), e([s(\"fullTimeExtent\")], u.prototype, \"writeFullTimeExtent\", null), e([o({\n type: Boolean,\n json: {\n write: !0\n }\n})], u.prototype, \"hasLiveData\", void 0), e([o({\n type: r,\n json: {\n write: {\n enabled: !0,\n allowNull: !0\n }\n }\n})], u.prototype, \"interval\", void 0), e([n(\"interval\", [\"timeInterval\", \"timeIntervalUnits\", \"defaultTimeInterval\", \"defaultTimeIntervalUnits\"])], u.prototype, \"readInterval\", null), e([s(\"interval\")], u.prototype, \"writeInterval\", null), e([o({\n type: String,\n json: {\n name: \"startTimeField\",\n write: {\n enabled: !0,\n allowNull: !0\n }\n }\n})], u.prototype, \"startField\", void 0), e([o(m(\"timeReference\", !0))], u.prototype, \"timeZone\", void 0), e([o({\n type: String,\n json: {\n write: {\n enabled: !0,\n allowNull: !0\n }\n }\n})], u.prototype, \"trackIdField\", void 0), e([o({\n type: Boolean,\n json: {\n name: \"exportOptions.useTime\",\n write: !0\n }\n})], u.prototype, \"useTime\", void 0), u = e([a(\"esri.layers.support.TimeInfo\")], u);\nconst d = u;\nexport { d as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.28/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../chunks/tslib.es6.js\";\nimport t from \"../../TimeExtent.js\";\nimport r from \"../../TimeInterval.js\";\nimport { property as o } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/accessorSupport/ensureType.js\";\nimport \"../../core/arrayUtils.js\";\nimport \"../../core/has.js\";\nimport { reader as s } from \"../../core/accessorSupport/decorators/reader.js\";\nimport { subclass as i } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { fixTimeInfoFields as p } from \"../support/fieldUtils.js\";\nimport m from \"../support/TimeInfo.js\";\nimport { timeUnitKebabDictionary as n } from \"../../portal/timeUnitKebabDictionary.js\";\nconst a = a => {\n let f = class extends a {\n constructor() {\n super(...arguments), this.timeExtent = null, this.timeOffset = null, this.useViewTime = !0;\n }\n readOffset(e, t) {\n const o = t.timeInfo.exportOptions;\n if (!o) return null;\n const s = o.timeOffset,\n i = n.fromJSON(o.timeOffsetUnits);\n return s && i ? new r({\n value: s,\n unit: i\n }) : null;\n }\n set timeInfo(e) {\n p(e, this.fieldsIndex), this._set(\"timeInfo\", e);\n }\n };\n return e([o({\n type: t,\n json: {\n write: !1\n }\n })], f.prototype, \"timeExtent\", void 0), e([o({\n type: r\n })], f.prototype, \"timeOffset\", void 0), e([s(\"service\", \"timeOffset\", [\"timeInfo.exportOptions\"])], f.prototype, \"readOffset\", null), e([o({\n value: null,\n type: m,\n json: {\n write: !0,\n origins: {\n \"web-document\": {\n read: !1,\n write: !1\n },\n \"portal-item\": {\n read: !1,\n write: !1\n }\n }\n }\n })], f.prototype, \"timeInfo\", null), e([o({\n type: Boolean,\n json: {\n read: {\n source: \"timeAnimation\"\n },\n write: {\n target: \"timeAnimation\"\n },\n origins: {\n \"web-scene\": {\n read: !1,\n write: !1\n }\n }\n }\n })], f.prototype, \"useViewTime\", void 0), f = e([i(\"esri.layers.mixins.TemporalLayer\")], f), f;\n};\nexport { a as TemporalLayer };"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAMA,KAAI,EAAE,EAAE;AAAA,EACZ,2BAA2B;AAAA,EAC3B,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,oBA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