{"version":3,"sources":["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.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../chunks/tslib.es6.js\";\nimport { property as t } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/Logger.js\";\nimport \"../../core/RandomLCG.js\";\nimport { reader as o } from \"../../core/accessorSupport/decorators/reader.js\";\nimport { subclass as r } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { excludeTables as i } from \"../../core/accessorSupport/layerContainerType.js\";\nimport { fixTimeInfoFields as s } from \"../support/fieldUtils.js\";\nimport m from \"../support/TimeInfo.js\";\nimport { timeUnitKebabDictionary as p } from \"../../portal/timeUnitKebabDictionary.js\";\nimport n from \"../../time/TimeExtent.js\";\nimport a from \"../../time/TimeInterval.js\";\nconst f = {\n type: Boolean,\n json: {\n read: {\n source: \"timeAnimation\"\n },\n write: {\n target: \"timeAnimation\",\n layerContainerTypes: i\n }\n }\n },\n l = i => {\n let l = class extends i {\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 r = o.timeOffset,\n i = p.fromJSON(o.timeOffsetUnits);\n return r && i ? new a({\n value: r,\n unit: i\n }) : null;\n }\n set timeInfo(e) {\n s(e, this.fieldsIndex), this._set(\"timeInfo\", e);\n }\n };\n return e([t({\n type: n,\n json: {\n write: !1\n }\n })], l.prototype, \"timeExtent\", void 0), e([t({\n type: a\n })], l.prototype, \"timeOffset\", void 0), e([o(\"service\", \"timeOffset\", [\"timeInfo.exportOptions\"])], l.prototype, \"readOffset\", null), e([t({\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 })], l.prototype, \"timeInfo\", null), e([t(f)], l.prototype, \"useViewTime\", void 0), l = e([r(\"esri.layers.mixins.TemporalLayer\")], l), l;\n };\nexport { l as TemporalLayer, f as useViewTimeProperty };"],"mappings":"yUAiBA,IAAMA,EAAI,CACN,KAAM,QACN,KAAM,CACJ,KAAM,CACJ,OAAQ,eACV,EACA,MAAO,CACL,OAAQ,gBACR,oBAAqBC,CACvB,CACF,CACF,EACAC,EAAIC,GAAK,CACP,IAAID,EAAI,cAAcC,CAAE,CACtB,aAAc,CACZ,MAAM,GAAG,SAAS,EAAG,KAAK,WAAa,KAAM,KAAK,WAAa,KAAM,KAAK,YAAc,EAC1F,CACA,WAAWC,EAAGC,EAAG,CACf,IAAM,EAAIA,EAAE,SAAS,cACrB,GAAI,CAAC,EAAG,OAAO,KACf,IAAMC,EAAI,EAAE,WACVH,EAAIC,EAAE,SAAS,EAAE,eAAe,EAClC,OAAOE,GAAKH,EAAI,IAAID,EAAE,CACpB,MAAOI,EACP,KAAMH,CACR,CAAC,EAAI,IACP,CACA,IAAI,SAASC,EAAG,CACdG,EAAEH,EAAG,KAAK,WAAW,EAAG,KAAK,KAAK,WAAYA,CAAC,CACjD,CACF,EACA,OAAOE,EAAE,CAACE,EAAE,CACV,KAAMC,EACN,KAAM,CACJ,MAAO,EACT,CACF,CAAC,CAAC,EAAGP,EAAE,UAAW,aAAc,MAAM,EAAGI,EAAE,CAACE,EAAE,CAC5C,KAAMN,CACR,CAAC,CAAC,EAAGA,EAAE,UAAW,aAAc,MAAM,EAAGI,EAAE,CAACI,EAAE,UAAW,aAAc,CAAC,wBAAwB,CAAC,CAAC,EAAGR,EAAE,UAAW,aAAc,IAAI,EAAGI,EAAE,CAACE,EAAE,CAC1I,MAAO,KACP,KAAMG,EACN,KAAM,CACJ,MAAO,GACP,QAAS,CACP,eAAgB,CACd,KAAM,GACN,MAAO,EACT,EACA,cAAe,CACb,KAAM,GACN,MAAO,EACT,CACF,CACF,CACF,CAAC,CAAC,EAAGT,EAAE,UAAW,WAAY,IAAI,EAAGI,EAAE,CAACE,EAAER,CAAC,CAAC,EAAGE,EAAE,UAAW,cAAe,MAAM,EAAGA,EAAII,EAAE,CAACL,EAAE,kCAAkC,CAAC,EAAGC,CAAC,EAAGA,CACzI","names":["f","a","l","i","e","t","r","g","m","p","o","d"],"x_google_ignoreList":[0]}