@arcgis/map-components 5.1.0 → 5.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{CNBB4OAP.js → 2AKK5ZKG.js} +1 -1
- package/dist/cdn/{JVHD4XZ4.js → 2HOCZD2I.js} +1 -1
- package/dist/cdn/{E2Y4C7UC.js → 2JTPRZNY.js} +1 -1
- package/dist/cdn/{QX6JBVSV.js → 2PMBQVDJ.js} +1 -1
- package/dist/cdn/{47ZO527Q.js → 2YMZU2DI.js} +1 -1
- package/dist/cdn/{TR2VB2IK.js → 34KX2CZ2.js} +1 -1
- package/dist/cdn/37ZP4563.js +2 -0
- package/dist/cdn/{3ME4Y4IR.js → 3LUAFLYH.js} +1 -1
- package/dist/cdn/{GOR3WFW2.js → 3Q6H4RYO.js} +1 -1
- package/dist/cdn/{X7FGX3FP.js → 44CYTUO7.js} +1 -1
- package/dist/cdn/{CGSPJR3Z.js → 4NETFLDI.js} +1 -1
- package/dist/cdn/{AVK2UTIS.js → 4PFCZYCL.js} +1 -1
- package/dist/cdn/{7A2SJX2B.js → 4WV4BCZL.js} +1 -1
- package/dist/cdn/{Q4Z35FIG.js → 56HPXBAX.js} +1 -1
- package/dist/cdn/{7QRJ6WFY.js → 5AKUQIOQ.js} +1 -1
- package/dist/cdn/{FI5YHMGI.js → 5ALJO7UH.js} +1 -1
- package/dist/cdn/{K2FUNX7H.js → 5EO7L5PZ.js} +1 -1
- package/dist/cdn/{2774R67H.js → 5EXHPG7W.js} +1 -1
- package/dist/cdn/{DX52OFV6.js → 5WWVWTLV.js} +1 -1
- package/dist/cdn/{I45ZOXOS.js → 6APQBBDM.js} +1 -1
- package/dist/cdn/{ADQYA3BL.js → 6JPTHKPG.js} +1 -1
- package/dist/cdn/{FZFKVOAP.js → 6MQTAMXU.js} +1 -1
- package/dist/cdn/{EV3GVFDD.js → 6RZSTHRB.js} +1 -1
- package/dist/cdn/{W6DV6G5S.js → 6SWLNG5U.js} +1 -1
- package/dist/cdn/{YEGZ5RAR.js → 6UIQON4J.js} +1 -1
- package/dist/cdn/{FQHBLMZH.js → 6UZI5Y3V.js} +1 -1
- package/dist/cdn/{WLFKB2E3.js → 6ZHIODBL.js} +1 -1
- package/dist/cdn/765ALWKM.js +2 -0
- package/dist/cdn/{4X6BBC7X.js → 7BJ2XF54.js} +1 -1
- package/dist/cdn/{R4EQ6RLR.js → 7DOKGLVM.js} +1 -1
- package/dist/cdn/{5ZCGVF67.js → 7SUBS4HT.js} +1 -1
- package/dist/cdn/{UY4G27XG.js → 7TTB6IBQ.js} +1 -1
- package/dist/cdn/{VQ7MDM4U.js → 7UAUOLPG.js} +1 -1
- package/dist/cdn/{P6N3QTFX.js → 7UTPZBBS.js} +1 -1
- package/dist/cdn/{T2TLXSXO.js → 7WLS3KJQ.js} +1 -1
- package/dist/cdn/{DCF2NP3Q.js → 7ZVCWVJ4.js} +1 -1
- package/dist/cdn/{FXABF7PO.js → A2Y4L3CO.js} +1 -1
- package/dist/cdn/{XAJZF66D.js → AG6YMYYG.js} +1 -1
- package/dist/cdn/{3C77ZNNK.js → ARE6XXZN.js} +1 -1
- package/dist/cdn/{UXSJ5IZE.js → ATQJXHRC.js} +1 -1
- package/dist/cdn/{H5EWWX3A.js → BFOAKOBV.js} +1 -1
- package/dist/cdn/BHEPSUS4.js +2 -0
- package/dist/cdn/{IPZXVV7Q.js → BHRMN454.js} +1 -1
- package/dist/cdn/{DFNZOIJ7.js → BI6C5QWY.js} +1 -1
- package/dist/cdn/{EMPJ5KAF.js → BJFYUEWF.js} +1 -1
- package/dist/cdn/{XBR7OZW6.js → BPQEFPAB.js} +1 -1
- package/dist/cdn/{5NYFRD4G.js → BQGAXWJH.js} +1 -1
- package/dist/cdn/{2JDTCMA7.js → BQRQUB7L.js} +1 -1
- package/dist/cdn/{2FDMI4DA.js → C46USWU3.js} +1 -1
- package/dist/cdn/{HRLHQGSE.js → CCWC5JAB.js} +1 -1
- package/dist/cdn/{XBK3AP6G.js → CF4W2DNT.js} +1 -1
- package/dist/cdn/{RYAWTMWW.js → CKTJHIDM.js} +1 -1
- package/dist/cdn/{ZSFPWRAN.js → CON3M6Z5.js} +1 -1
- package/dist/cdn/{I5RBKFSV.js → CSP2FJKC.js} +1 -1
- package/dist/cdn/{Q6IHRYJS.js → CU6D4FDO.js} +1 -1
- package/dist/cdn/{GNP7IJGB.js → CVFALL4S.js} +1 -1
- package/dist/cdn/{EJQANAWG.js → CWFQYXQG.js} +1 -1
- package/dist/cdn/{23JW3FE4.js → CWQJJUOX.js} +1 -1
- package/dist/cdn/{ZQ7PUEYQ.js → D2YGTQUJ.js} +1 -1
- package/dist/cdn/{6IIKZQAM.js → D3J2KBQF.js} +1 -1
- package/dist/cdn/{CDADCITA.js → DFKYJ3TJ.js} +1 -1
- package/dist/cdn/{SAPMLOP5.js → DFXZ77W6.js} +1 -1
- package/dist/cdn/{FY4NB6VI.js → DJFGZDPY.js} +1 -1
- package/dist/cdn/{ZXVNWO3G.js → DKPPAY7S.js} +1 -1
- package/dist/cdn/{4DMJXL5M.js → DOCOL5GC.js} +1 -1
- package/dist/cdn/{ADGPAFJ3.js → DOXOIFUY.js} +1 -1
- package/dist/cdn/{EV7LW6OI.js → DQSUSD33.js} +1 -1
- package/dist/cdn/{N5VSVPBU.js → DX5IW4LD.js} +1 -1
- package/dist/cdn/{LGDPY6QT.js → DYIGVLWT.js} +1 -1
- package/dist/cdn/{RHN4PCQC.js → DYN47Y7R.js} +1 -1
- package/dist/cdn/{6P2CUPUG.js → EA3H5LNK.js} +1 -1
- package/dist/cdn/{H4PVIMTY.js → ECLPZ5RI.js} +1 -1
- package/dist/cdn/{F3RE3B4A.js → EFEEI6XK.js} +1 -1
- package/dist/cdn/{5A7ZCSKS.js → ENJ32A62.js} +1 -1
- package/dist/cdn/{RFHI57FA.js → EQSJ5YJJ.js} +1 -1
- package/dist/cdn/{Y2FCGJWQ.js → ETOHKNYW.js} +1 -1
- package/dist/cdn/{QRAYLDN7.js → EVSYTEQK.js} +1 -1
- package/dist/cdn/{3BGMIZIF.js → EXJC56IX.js} +1 -1
- package/dist/cdn/{VBDGAGYG.js → F56R6NNL.js} +1 -1
- package/dist/cdn/{2EBCVQIK.js → FGCLPEYP.js} +1 -1
- package/dist/cdn/{C4VKHRCE.js → FKQZ5V6R.js} +1 -1
- package/dist/cdn/{C7RCSLCW.js → FMEISWZH.js} +1 -1
- package/dist/cdn/{VCL43C7Z.js → FUSXXX2H.js} +1 -1
- package/dist/cdn/{LLAIWFEX.js → GIEH2633.js} +1 -1
- package/dist/cdn/{M53J43J4.js → GVHLQK4X.js} +1 -1
- package/dist/cdn/{2LVBTP6J.js → GW4KIJTE.js} +1 -1
- package/dist/cdn/{TUBFHZ5T.js → GXNR2JOT.js} +1 -1
- package/dist/cdn/{P3VYEOLC.js → GY4THDW6.js} +1 -1
- package/dist/cdn/{CBOQE356.js → H5AYWCIW.js} +1 -1
- package/dist/cdn/{WVDU7AK3.js → H7LJBN7J.js} +1 -1
- package/dist/cdn/{6TBC2K6E.js → HIZGTBQP.js} +1 -1
- package/dist/cdn/{TIYIU4N5.js → HOTRPDNE.js} +1 -1
- package/dist/cdn/{VK42WCNU.js → I3ZPH7M5.js} +1 -1
- package/dist/cdn/{R52P244B.js → IH57AOIE.js} +1 -1
- package/dist/cdn/{FSVEOB4K.js → IKSX6FKO.js} +1 -1
- package/dist/cdn/{FOCXFVF3.js → IOJPGOON.js} +1 -1
- package/dist/cdn/{PGDFX76G.js → ITHFRHDS.js} +1 -1
- package/dist/cdn/{MLSCYVGN.js → IYBSQOCK.js} +1 -1
- package/dist/cdn/{47IJNU4H.js → J2U5EPDT.js} +1 -1
- package/dist/cdn/{YLRMVRTD.js → J2XCQDID.js} +1 -1
- package/dist/cdn/{75KAQK5W.js → JNHR22ZB.js} +1 -1
- package/dist/cdn/{4MEXDTW2.js → JO5GGDBR.js} +1 -1
- package/dist/cdn/{LNKTTFCD.js → JQBG6N6T.js} +1 -1
- package/dist/cdn/JSBX7T66.js +2 -0
- package/dist/cdn/{LN4DGPOY.js → JWFUYNQL.js} +1 -1
- package/dist/cdn/{TFKKI7N2.js → KDS4IULF.js} +1 -1
- package/dist/cdn/{N2M6RRD5.js → KG6NYEKA.js} +1 -1
- package/dist/cdn/{KCHGPTWB.js → KGXW3NCW.js} +1 -1
- package/dist/cdn/{CSOKXSF3.js → KL6P26PU.js} +1 -1
- package/dist/cdn/{PKNMTLE6.js → KLSSO2IB.js} +1 -1
- package/dist/cdn/{3NZRVVP6.js → KOSEAFDF.js} +1 -1
- package/dist/cdn/{F2DB4E3A.js → KQGEFVQX.js} +1 -1
- package/dist/cdn/{CITM26Z6.js → KUHZAASH.js} +1 -1
- package/dist/cdn/{DA2KI2AL.js → LEIE3RAW.js} +1 -1
- package/dist/cdn/{PBSPJU5V.js → LH5EEOUE.js} +1 -1
- package/dist/cdn/{KFEQ2QMJ.js → LHN2QDKV.js} +1 -1
- package/dist/cdn/{JI6F7VHS.js → LJ4STQXJ.js} +1 -1
- package/dist/cdn/{KT6YG7EY.js → LJBJBQNB.js} +1 -1
- package/dist/cdn/{EHYRPO5S.js → LLPQYUPW.js} +1 -1
- package/dist/cdn/{TEG6P2XY.js → LN5UJQQN.js} +1 -1
- package/dist/cdn/LS254AGB.js +2 -0
- package/dist/cdn/{PVPQB3IP.js → LTIOECNS.js} +1 -1
- package/dist/cdn/{WZAS25VV.js → LV5WJ5J7.js} +1 -1
- package/dist/cdn/{I5QDBRT2.js → MBIHEJP7.js} +1 -1
- package/dist/cdn/{JNS5LUN5.js → MEXVYRBT.js} +1 -1
- package/dist/cdn/{C7XDO62B.js → MLYJ4SA5.js} +1 -1
- package/dist/cdn/{O7TL52E5.js → MNV6C5ZE.js} +1 -1
- package/dist/cdn/{VE64YJ6S.js → MQOSO6YX.js} +1 -1
- package/dist/cdn/{FLC3HOTH.js → MWIYHELY.js} +1 -1
- package/dist/cdn/{CU4K6ORI.js → N3775HAR.js} +1 -1
- package/dist/cdn/{MLGHTQM7.js → N5TOUUMP.js} +1 -1
- package/dist/cdn/{3A7TQPLW.js → N7UWJZJN.js} +1 -1
- package/dist/cdn/{5GZAF42T.js → NPRZRV7N.js} +1 -1
- package/dist/cdn/NTESPOTX.js +2 -0
- package/dist/cdn/{A2LFJED6.js → O6U4WH4G.js} +1 -1
- package/dist/cdn/{DLV6ATJD.js → OA3H52O2.js} +1 -1
- package/dist/cdn/{UJE3BNWT.js → OBAYSCIU.js} +1 -1
- package/dist/cdn/{ECMLCTEF.js → OBGINW7D.js} +1 -1
- package/dist/cdn/{YIQJKSCA.js → OG6CGCQR.js} +1 -1
- package/dist/cdn/{53UCEHPX.js → OG6DSDF4.js} +1 -1
- package/dist/cdn/{7MXK3CTK.js → ONBIIQSD.js} +1 -1
- package/dist/cdn/{IR332NMY.js → OT62GDM7.js} +1 -1
- package/dist/cdn/{ZNU5UDWS.js → OTKIXRQV.js} +1 -1
- package/dist/cdn/{K6AIKC7X.js → P32YELXJ.js} +1 -1
- package/dist/cdn/P3LUQEUB.js +2 -0
- package/dist/cdn/{UDHEIWK7.js → P7XVSVLJ.js} +1 -1
- package/dist/cdn/{4F6B3CF4.js → PIWGSAQF.js} +1 -1
- package/dist/cdn/{ZT5RCCKQ.js → PLB2IOFI.js} +1 -1
- package/dist/cdn/{OG5EZ3GE.js → PLFEJPQ4.js} +1 -1
- package/dist/cdn/{7HSITXJW.js → PTDDLSKF.js} +1 -1
- package/dist/cdn/{TLFNYU3S.js → PYF4Y6SP.js} +1 -1
- package/dist/cdn/{JNDHN6L3.js → PYTF3K7R.js} +1 -1
- package/dist/cdn/{5K3VN4MG.js → Q776G7X5.js} +1 -1
- package/dist/cdn/{WD7KGGRS.js → Q7KIJ3P5.js} +1 -1
- package/dist/cdn/{OOMHA34F.js → QODAKOAD.js} +1 -1
- package/dist/cdn/{UVJA6OLE.js → QP6IONYI.js} +1 -1
- package/dist/cdn/{2E3IH5B3.js → QQGP2YSG.js} +1 -1
- package/dist/cdn/{CLYFBPCD.js → QSU3LQPB.js} +1 -1
- package/dist/cdn/{AULCLLGR.js → QVABJ2GG.js} +1 -1
- package/dist/cdn/{EAW7HVUW.js → QVGTWFEN.js} +1 -1
- package/dist/cdn/{RQ5EXH7E.js → QWP4PXBX.js} +1 -1
- package/dist/cdn/{3GI7OJKE.js → RCODAEH5.js} +1 -1
- package/dist/cdn/{TSKXALKH.js → RI54YWGC.js} +1 -1
- package/dist/cdn/{VTPQJRMD.js → ROQ3ZMNX.js} +1 -1
- package/dist/cdn/{6FVSBG7V.js → RVLWTZAT.js} +1 -1
- package/dist/cdn/{EBH4JZW4.js → RVQMNX4D.js} +1 -1
- package/dist/cdn/{2PS3ASUU.js → RXZTEC5Z.js} +1 -1
- package/dist/cdn/{DUG44T3N.js → S6MIUB7T.js} +1 -1
- package/dist/cdn/{X2WCJO46.js → SDXUPDBK.js} +1 -1
- package/dist/cdn/{3LRMTZVJ.js → SEV6YOS5.js} +1 -1
- package/dist/cdn/{Q6NHCCLM.js → SF2STORW.js} +1 -1
- package/dist/cdn/{7TA4PRXG.js → SILCE4O4.js} +1 -1
- package/dist/cdn/{PZ7NRMKX.js → SL2D573Y.js} +1 -1
- package/dist/cdn/{7BMIGNTN.js → T5PK3CSG.js} +1 -1
- package/dist/cdn/{UAWYD5KM.js → TBUQX27Z.js} +1 -1
- package/dist/cdn/{M3BF67NU.js → THWNQRP5.js} +1 -1
- package/dist/cdn/{LYC6ZXT2.js → TK4Q74KL.js} +1 -1
- package/dist/cdn/{AATLFNFA.js → TM3BGDCH.js} +1 -1
- package/dist/cdn/{O5RM7JTM.js → TP3HEJQL.js} +1 -1
- package/dist/cdn/{BGUR5HUL.js → TVG3G3CQ.js} +1 -1
- package/dist/cdn/{UH5KH4WY.js → U7ME6ZY2.js} +1 -1
- package/dist/cdn/{LZSARDLM.js → UEQHIK7T.js} +1 -1
- package/dist/cdn/{V33XHAAE.js → UL3AN5J2.js} +1 -1
- package/dist/cdn/{HZDTMUA4.js → ULAPVDLG.js} +1 -1
- package/dist/cdn/{UXRGDIXR.js → UMOM6TOJ.js} +1 -1
- package/dist/cdn/{JF7U73I2.js → UXO5X7OY.js} +1 -1
- package/dist/cdn/{LLULN426.js → VC3ODN5I.js} +1 -1
- package/dist/cdn/{7VOVFZ2E.js → VDI6V7A7.js} +1 -1
- package/dist/cdn/{HNCYEJ4F.js → VDTJT5WM.js} +1 -1
- package/dist/cdn/{RBDUCK5G.js → W257I7HW.js} +1 -1
- package/dist/cdn/{DUJXAU5A.js → WAY7FVQT.js} +1 -1
- package/dist/cdn/{62PESVYM.js → WHGRCGYI.js} +1 -1
- package/dist/cdn/{7RVECP2X.js → WHWRXOOY.js} +1 -1
- package/dist/cdn/{VBDO4GGL.js → WP6IZGJG.js} +1 -1
- package/dist/cdn/{36LPVKN6.js → WS6O6JDT.js} +1 -1
- package/dist/cdn/{IDUCPIR5.js → WSGEYDSY.js} +1 -1
- package/dist/cdn/{L4L677GZ.js → XBVK56RR.js} +1 -1
- package/dist/cdn/{AGMGZPHL.js → XC5JKO2J.js} +1 -1
- package/dist/cdn/XMF2WHDG.js +2 -0
- package/dist/cdn/{LO27YJWT.js → XOPYGAIJ.js} +1 -1
- package/dist/cdn/{FZA4UFP4.js → XUHASJUA.js} +1 -1
- package/dist/cdn/{ZUF7Q7A5.js → XW3G7QDY.js} +1 -1
- package/dist/cdn/{Z7Y75VPC.js → Y2R2Z5YV.js} +1 -1
- package/dist/cdn/{FXNBDGQH.js → Y3MUXO2N.js} +1 -1
- package/dist/cdn/{AXUDTQH5.js → Y6F5INEC.js} +1 -1
- package/dist/cdn/{NTKPWRPO.js → YALHHW5A.js} +1 -1
- package/dist/cdn/{WIX5GTN2.js → YCVGEU74.js} +1 -1
- package/dist/cdn/{JDRN2HTQ.js → YFOSZSWF.js} +1 -1
- package/dist/cdn/{IN555Z3Q.js → YPK7YXNJ.js} +1 -1
- package/dist/cdn/YXJZ4BLP.js +2 -0
- package/dist/cdn/{TO7SMQ72.js → Z2ZUNDTK.js} +1 -1
- package/dist/cdn/{323JWGW6.js → ZAQBVTA2.js} +1 -1
- package/dist/cdn/{WGJITQOG.js → ZJEARGVC.js} +1 -1
- package/dist/cdn/ZK7PHXMP.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/time-utils.js +23 -19
- package/dist/components/arcgis-daylight/customElement.js +136 -131
- package/dist/components/arcgis-editor/customElement.js +18 -6
- package/dist/components/arcgis-feature-table/customElement.js +17 -17
- package/dist/components/arcgis-feature-templates/customElement.d.ts +7 -0
- package/dist/components/arcgis-feature-templates/customElement.js +3 -3
- package/dist/components/arcgis-paste/customElement.js +234 -227
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +32 -29
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +4 -4
- package/dist/cdn/2WKNIBY5.js +0 -2
- package/dist/cdn/4NIHRJ6Y.js +0 -2
- package/dist/cdn/F5HP6NYZ.js +0 -2
- package/dist/cdn/FPDLCE5B.js +0 -2
- package/dist/cdn/IVMKXAPQ.js +0 -2
- package/dist/cdn/JSQ5Y57G.js +0 -2
- package/dist/cdn/OBTS6BUY.js +0 -2
- package/dist/cdn/TKAKN2UU.js +0 -2
- package/dist/cdn/YFBOWKAT.js +0 -2
- package/dist/cdn/ZRHYL7ZS.js +0 -2
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { watch as
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { LitElement as
|
|
8
|
-
import { css as
|
|
2
|
+
import { c as he } from "../../chunks/runtime.js";
|
|
3
|
+
import { watch as ge, when as ue, whenOnce as pe } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
|
+
import * as me from "@arcgis/core/intl.js";
|
|
5
|
+
import fe from "@arcgis/core/views/3d/environment/SunLighting.js";
|
|
6
|
+
import _e from "@arcgis/core/views/3d/environment/VirtualLighting.js";
|
|
7
|
+
import { LitElement as be, createEvent as B, safeStyleMap as V, nothing as J } from "@arcgis/lumina";
|
|
8
|
+
import { css as ve, html as m } from "lit";
|
|
9
9
|
import { createRef as q, ref as G } from "lit/directives/ref.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
10
|
+
import { u as we } from "../../chunks/useT9n.js";
|
|
11
|
+
import { u as ye } from "../../chunks/useView.js";
|
|
12
12
|
import { m as N } from "../../chunks/handle.js";
|
|
13
|
-
import { o as
|
|
14
|
-
import { r as
|
|
15
|
-
import { createTrackingTarget as
|
|
16
|
-
import { C as
|
|
17
|
-
import { V as
|
|
18
|
-
function
|
|
13
|
+
import { o as C, i as p, l as Y, b as D, d as Z, g as xe } from "../../chunks/time-utils.js";
|
|
14
|
+
import { r as Se, b as De, d as Te } from "../../chunks/async-utils.js";
|
|
15
|
+
import { createTrackingTarget as ke, runTracked as W, signal as Pe } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
16
|
+
import { C as K } from "../../chunks/component-wrapper.js";
|
|
17
|
+
import { V as T } from "../../chunks/visible-element.js";
|
|
18
|
+
function Ce(r, e) {
|
|
19
19
|
return r / 15;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function $e(r, e) {
|
|
22
22
|
const t = r?.[0];
|
|
23
23
|
if (t == null)
|
|
24
24
|
return null;
|
|
25
|
-
e || (e = { hours: 0, minutes: 0, seconds: 0 }), e.hours =
|
|
25
|
+
e || (e = { hours: 0, minutes: 0, seconds: 0 }), e.hours = Ce(t);
|
|
26
26
|
const i = e.hours % 1;
|
|
27
27
|
e.hours -= i, e.minutes = i * 60;
|
|
28
28
|
const n = e.minutes % 1;
|
|
29
29
|
return e.minutes -= n, e.seconds = Math.round(n * 60), e;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
const e =
|
|
31
|
+
function Q(r) {
|
|
32
|
+
const e = $e([r.longitude, r.latitude]);
|
|
33
33
|
return e == null ? 0 : Math.round(e.hours + e.minutes / 60 + e.seconds / 3600);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function se(r, e) {
|
|
36
36
|
return (r % e + e) % e;
|
|
37
37
|
}
|
|
38
|
-
class
|
|
38
|
+
class ze {
|
|
39
39
|
#e;
|
|
40
40
|
#i;
|
|
41
|
-
#r =
|
|
41
|
+
#r = ke(() => {
|
|
42
42
|
this.#t();
|
|
43
43
|
});
|
|
44
44
|
constructor(e) {
|
|
45
45
|
this.#i = e;
|
|
46
46
|
let t;
|
|
47
|
-
|
|
47
|
+
W(this.#r, () => {
|
|
48
48
|
t = e();
|
|
49
|
-
}), this.#e =
|
|
49
|
+
}), this.#e = Pe(t);
|
|
50
50
|
}
|
|
51
51
|
#t() {
|
|
52
52
|
const e = this.#e.value;
|
|
53
|
-
|
|
53
|
+
W(this.#r, () => {
|
|
54
54
|
this.#e.value = this.#i(e);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
@@ -62,29 +62,29 @@ class $e {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
function A(r) {
|
|
65
|
-
return new
|
|
65
|
+
return new ze(r);
|
|
66
66
|
}
|
|
67
|
-
var L = Math.PI, u = Math.sin, k = Math.cos,
|
|
68
|
-
function
|
|
69
|
-
return r.valueOf() /
|
|
67
|
+
var L = Math.PI, u = Math.sin, k = Math.cos, Oe = Math.asin, Me = Math.acos, y = L / 180, oe = 1e3 * 60 * 60 * 24, ae = 2440588, le = 2451545;
|
|
68
|
+
function Ue(r) {
|
|
69
|
+
return r.valueOf() / oe - 0.5 + ae;
|
|
70
70
|
}
|
|
71
71
|
function O(r) {
|
|
72
|
-
return new Date((r + 0.5 -
|
|
72
|
+
return new Date((r + 0.5 - ae) * oe);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return
|
|
74
|
+
function Le(r) {
|
|
75
|
+
return Ue(r) - le;
|
|
76
76
|
}
|
|
77
|
-
var
|
|
78
|
-
function
|
|
79
|
-
return
|
|
77
|
+
var X = y * 23.4397;
|
|
78
|
+
function Ee(r, e) {
|
|
79
|
+
return Oe(u(e) * k(X) + k(e) * u(X) * u(r));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function He(r) {
|
|
82
82
|
return y * (357.5291 + 0.98560028 * r);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Ae(r) {
|
|
85
85
|
return y * (1.9148 * u(r) + 0.02 * u(2 * r) + 3e-4 * u(3 * r));
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Ie(r, e) {
|
|
88
88
|
var t = y * 102.9372;
|
|
89
89
|
return r + e + t + L;
|
|
90
90
|
}
|
|
@@ -105,24 +105,24 @@ var I = [
|
|
|
105
105
|
[ -18, "nightEnd", "night" ],
|
|
106
106
|
[ 6, "goldenHourEnd", "goldenHour" ]
|
|
107
107
|
*/
|
|
108
|
-
],
|
|
109
|
-
function
|
|
110
|
-
return Math.round(r -
|
|
111
|
-
}
|
|
112
|
-
function X(r, e, t) {
|
|
113
|
-
return le + (r + e) / (2 * L) + t;
|
|
108
|
+
], ce = 9e-4;
|
|
109
|
+
function Ne(r, e) {
|
|
110
|
+
return Math.round(r - ce - e / (2 * L));
|
|
114
111
|
}
|
|
115
112
|
function ee(r, e, t) {
|
|
116
|
-
return
|
|
113
|
+
return ce + (r + e) / (2 * L) + t;
|
|
114
|
+
}
|
|
115
|
+
function te(r, e, t) {
|
|
116
|
+
return le + r + 53e-4 * u(e) - 69e-4 * u(2 * t);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
119
|
-
return
|
|
118
|
+
function Fe(r, e, t) {
|
|
119
|
+
return Me((u(r) - u(e) * u(t)) / (k(e) * k(t)));
|
|
120
120
|
}
|
|
121
121
|
S.getTimes = function(r, e, t) {
|
|
122
|
-
var i = y * -t, n = y * e, s =
|
|
122
|
+
var i = y * -t, n = y * e, s = Le(r), o = Ne(s, i), a = ee(0, i, o), c = He(a), d = Ae(c), l = Ie(c, d), h = Ee(l, 0), g = te(a, c, l);
|
|
123
123
|
function w(H) {
|
|
124
|
-
var z =
|
|
125
|
-
return
|
|
124
|
+
var z = Fe(H, n, h), de = ee(z, i, o);
|
|
125
|
+
return te(de, c, l);
|
|
126
126
|
}
|
|
127
127
|
function x(H) {
|
|
128
128
|
var z = (u(H) - u(n) * u(h)) / (k(n) * k(h));
|
|
@@ -137,7 +137,7 @@ S.getTimes = function(r, e, t) {
|
|
|
137
137
|
$ = I[b], E = w($[0] * y), j = g - (E - g), _[$[1]] = O(j), _[$[2]] = O(E);
|
|
138
138
|
return _.polarException = x(I[0][0] * y), _;
|
|
139
139
|
};
|
|
140
|
-
const
|
|
140
|
+
const Je = {
|
|
141
141
|
spring: { dayOfMonth: 20, month: 2 },
|
|
142
142
|
// Northern Spring equinox in 2014 - March 20
|
|
143
143
|
summer: { dayOfMonth: 21, month: 5 },
|
|
@@ -147,31 +147,31 @@ const Fe = {
|
|
|
147
147
|
winter: { dayOfMonth: 21, month: 11 }
|
|
148
148
|
// Northern Winter solstice in 2014 - December 21
|
|
149
149
|
}, F = ["spring", "summer", "fall", "winter"];
|
|
150
|
-
function
|
|
151
|
-
const i = R(e, t), { dayOfMonth: n, month: s } =
|
|
150
|
+
function P(r, e, t) {
|
|
151
|
+
const i = R(e, t), { dayOfMonth: n, month: s } = Je[i], o = new Date(r.getTime());
|
|
152
152
|
return o.setMonth(s, n), o;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
const t =
|
|
154
|
+
function Re(r, e) {
|
|
155
|
+
const t = je(r);
|
|
156
156
|
return R(t, e);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
const e = r.getTime(), t =
|
|
158
|
+
function je(r) {
|
|
159
|
+
const e = r.getTime(), t = P(r, "spring", "northern").getTime(), i = P(r, "summer", "northern").getTime(), n = P(r, "fall", "northern").getTime(), s = P(r, "winter", "northern").getTime();
|
|
160
160
|
return e >= t && e < i ? "spring" : e >= i && e < n ? "summer" : e >= n && e < s ? "fall" : "winter";
|
|
161
161
|
}
|
|
162
162
|
function R(r, e) {
|
|
163
|
-
return e === "northern" ? r :
|
|
163
|
+
return e === "northern" ? r : Be(r);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function ie(r) {
|
|
166
166
|
return r >= 0 ? "northern" : "southern";
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Be(r) {
|
|
169
169
|
const e = F.indexOf(r);
|
|
170
170
|
return F[(e + 2) % 4];
|
|
171
171
|
}
|
|
172
|
-
const
|
|
173
|
-
function
|
|
174
|
-
const n = S.getTimes(r, e, t), s = n.sunrise, o = n.sunset, a =
|
|
172
|
+
const Ve = 1440, qe = 864e5;
|
|
173
|
+
function Ge(r, e, t, i) {
|
|
174
|
+
const n = S.getTimes(r, e, t), s = n.sunrise, o = n.sunset, a = C(r, i), c = C(s, i), d = C(o, i);
|
|
175
175
|
if (a.getUTCDate() !== c.getUTCDate() || a.getUTCDate() !== d.getUTCDate()) {
|
|
176
176
|
const l = a.getTime() - c.getTime() > 0 ? 1 : -1;
|
|
177
177
|
s.setUTCDate(s.getUTCDate() + l), o.setUTCDate(o.getUTCDate() + l);
|
|
@@ -181,11 +181,11 @@ function qe(r, e, t, i) {
|
|
|
181
181
|
sunset: o
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
-
const
|
|
185
|
-
function
|
|
186
|
-
return
|
|
184
|
+
const Ye = 100, Ze = 1e3, v = 12e5, M = 72e5;
|
|
185
|
+
function re(r, e) {
|
|
186
|
+
return se(r + e, 24);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function We({
|
|
189
189
|
mode: r,
|
|
190
190
|
lighting: e,
|
|
191
191
|
getPlaySpeed: t,
|
|
@@ -197,15 +197,15 @@ function Ze({
|
|
|
197
197
|
const c = e.date, d = Date.now() - (a ?? 0);
|
|
198
198
|
if (r === "day") {
|
|
199
199
|
a = Date.now();
|
|
200
|
-
const h = t() /
|
|
200
|
+
const h = t() / Ye * d;
|
|
201
201
|
if (h > 0) {
|
|
202
202
|
let g = new Date(c.getTime() + h);
|
|
203
|
-
const w = e.displayUTCOffset ?? 0, x =
|
|
204
|
-
x < _ && (g = new Date(c.getTime() + h -
|
|
203
|
+
const w = e.displayUTCOffset ?? 0, x = re(g.getUTCHours(), w), _ = re(c.getUTCHours(), w);
|
|
204
|
+
x < _ && (g = new Date(c.getTime() + h - qe));
|
|
205
205
|
const b = e.clone();
|
|
206
206
|
n?.(), e.date = g, i?.(b, e);
|
|
207
207
|
}
|
|
208
|
-
} else if (d >
|
|
208
|
+
} else if (d > Ze) {
|
|
209
209
|
a = Date.now();
|
|
210
210
|
const l = (c.getUTCMonth() + 1) % 12, h = new Date(c.getTime());
|
|
211
211
|
h.setUTCMonth(l);
|
|
@@ -217,7 +217,7 @@ function Ze({
|
|
|
217
217
|
return o(), N(() => cancelAnimationFrame(s));
|
|
218
218
|
}
|
|
219
219
|
const U = v / 4;
|
|
220
|
-
function
|
|
220
|
+
function Ke(r, e, t, i) {
|
|
221
221
|
const {
|
|
222
222
|
day: n,
|
|
223
223
|
night: s = n,
|
|
@@ -229,14 +229,14 @@ function We(r, e, t, i) {
|
|
|
229
229
|
let f = a;
|
|
230
230
|
return l >= w && l <= x ? l - w <= v ? f = c - (l - w) / v * (c - d) : x - l <= v / 2 ? f = a - (x - l) / v * 2 * (a - d) : f = d : l >= _ && l <= b ? l - _ <= v / 2 ? f = a - (l - _) / v * 2 * (a - d) : b - l <= v ? f = c - (b - l) / v * (c - d) : f = d : (l < h || l > g) && (f = c), f;
|
|
231
231
|
}
|
|
232
|
-
const Ke = be`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:350px}.root{display:flex;flex-direction:column;overflow:visible;gap:var(--calcite-spacing-md);justify-content:space-between;padding:var(--arcgis-internal-padding);position:relative;calcite-label{--calcite-label-margin-bottom: 0}&.loading>*:not(calcite-scrim){opacity:0}}.unsupported{padding:0 var(--calcite-spacing-lg);animation:esri-fade-in .25s ease-in-out}.slider{margin-block-start:0rem}.time-configuration{--date-play-button-offset: 11px;--slider-play-button-offset: var(--calcite-spacing-md);display:grid;gap:var(--calcite-spacing-md);grid-template-columns:1fr min-content;.slider-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--slider-play-button-offset))}}.timezone-input-container{grid-column:1;min-width:0;+span{grid-column:2}}.date-picker-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--date-play-button-offset))}}calcite-button{place-self:center}}`, Qe = {
|
|
232
|
+
const Qe = ve`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:350px}.root{display:flex;flex-direction:column;overflow:visible;gap:var(--calcite-spacing-md);justify-content:space-between;padding:var(--arcgis-internal-padding);position:relative;calcite-label{--calcite-label-margin-bottom: 0}&.loading>*:not(calcite-scrim){opacity:0}}.unsupported{padding:0 var(--calcite-spacing-lg);animation:esri-fade-in .25s ease-in-out}.slider{margin-block-start:0rem}.time-configuration{--date-play-button-offset: 11px;--slider-play-button-offset: var(--calcite-spacing-md);display:grid;gap:var(--calcite-spacing-md);grid-template-columns:1fr min-content;.slider-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--slider-play-button-offset))}}.timezone-input-container{grid-column:1;min-width:0;+span{grid-column:2}}.date-picker-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--date-play-button-offset))}}calcite-button{place-self:center}}`, Xe = {
|
|
233
233
|
day: 1,
|
|
234
234
|
night: 6,
|
|
235
235
|
twilight: 2 / 3
|
|
236
236
|
};
|
|
237
|
-
class
|
|
237
|
+
class et extends be {
|
|
238
238
|
constructor() {
|
|
239
|
-
super(...arguments), this.messages =
|
|
239
|
+
super(...arguments), this.messages = we({ blocking: !0 }), this.#i = "none", this.#r = null, this.#l = q(), this.#g = q(), this.#u = 200, this.#p = 200, this.#c = !1, this.#o = {}, this._offset = A((e) => {
|
|
240
240
|
const t = this._lighting, i = p(t) ? t.displayUTCOffset : void 0;
|
|
241
241
|
return this.#t ? e : i ?? e;
|
|
242
242
|
}), this._timesliderPosition = A((e) => {
|
|
@@ -246,21 +246,21 @@ class Xe extends _e {
|
|
|
246
246
|
const i = t.displayUTCOffset ?? this.utcOffset ?? 0, n = t.date;
|
|
247
247
|
if (this.#t)
|
|
248
248
|
return e;
|
|
249
|
-
if (
|
|
250
|
-
const { minutesSinceMidnight: s } =
|
|
249
|
+
if (Z(n)) {
|
|
250
|
+
const { minutesSinceMidnight: s } = D(n, i);
|
|
251
251
|
return s;
|
|
252
252
|
}
|
|
253
253
|
return e;
|
|
254
254
|
}), this._localDate = A((e) => {
|
|
255
|
-
const t =
|
|
255
|
+
const t = xe(this._view, this.utcOffset);
|
|
256
256
|
return this.#t ? e : t ?? e;
|
|
257
|
-
}), this.view =
|
|
257
|
+
}), this.view = ye(this), this.autoDestroyDisabled = !1, this.dateOrSeason = "date", this.headingLevel = 2, this.hideDatePicker = !1, this.hideHeader = !1, this.hidePlayButtons = !1, this.hideShadowsToggle = !1, this.hideSunLightingToggle = !1, this.hideTimezone = !1, this.icon = "brightness", this.playSpeedMultiplier = 1, this.timeSliderSteps = 5, this.arcgisReady = B(), this.arcgisUserDateTimeChange = B(), this.#a = !1;
|
|
258
258
|
}
|
|
259
259
|
static {
|
|
260
260
|
this.properties = { localDateAsString: 32, view: 0, _playingState: 16, _sunlightingDisabled: 16, autoDestroyDisabled: 5, currentSeason: 1, dateOrSeason: 3, dayPlaying: 5, _directShadowsDisabled: 16, headingLevel: 9, hideDatePicker: 5, hideHeader: 5, hidePlayButtons: 5, hideShadowsToggle: 5, hideSunLightingToggle: 5, hideTimezone: 5, icon: 3, label: 1, playSpeedMultiplier: 9, referenceElement: 1, timeSliderSteps: 9, utcOffset: 9, timeSliderPosition: 9, localDate: 1, yearPlaying: 5 };
|
|
261
261
|
}
|
|
262
262
|
static {
|
|
263
|
-
this.styles =
|
|
263
|
+
this.styles = Qe;
|
|
264
264
|
}
|
|
265
265
|
get _view() {
|
|
266
266
|
return this.view?.type === "3d" ? this.view : void 0;
|
|
@@ -290,34 +290,38 @@ class Xe extends _e {
|
|
|
290
290
|
#d() {
|
|
291
291
|
if (this.requestUpdate(), this.#t)
|
|
292
292
|
return;
|
|
293
|
-
const e =
|
|
293
|
+
const e = Se(() => {
|
|
294
294
|
if (p(this._lighting)) {
|
|
295
|
-
const t = this.utcOffset ?? 0, i = this.timeSliderPosition ?? 0, n = this.localDate
|
|
296
|
-
this._lighting.date =
|
|
295
|
+
const t = this.utcOffset ?? 0, i = this.timeSliderPosition ?? 0, n = this.localDate;
|
|
296
|
+
this._lighting.date = Y(n, i, t), this._lighting.displayUTCOffset = t;
|
|
297
297
|
}
|
|
298
298
|
this.#t?.remove();
|
|
299
299
|
}, { timeout: this.#u });
|
|
300
300
|
this.#t = N(() => {
|
|
301
|
-
|
|
301
|
+
Te(e), this.#t = void 0;
|
|
302
302
|
});
|
|
303
303
|
}
|
|
304
|
-
#f(
|
|
304
|
+
#f(e) {
|
|
305
|
+
const t = this.utcOffset ?? e.displayUTCOffset ?? 0, { minutesSinceMidnight: i, localDate: n } = D(e.date, t), s = this.timeSliderPosition ?? i, o = this.localDateAsString ?? n;
|
|
306
|
+
this.#t?.remove(), e.date = Y(o, s, t), e.displayUTCOffset = t;
|
|
307
|
+
}
|
|
308
|
+
#_({ scale: e, disabled: t }) {
|
|
305
309
|
const { messages: i } = this;
|
|
306
|
-
return m`<calcite-label .scale=${e} class="date-picker-container">${i.date}${
|
|
310
|
+
return m`<calcite-label .scale=${e} class="date-picker-container">${i.date}${tt({ disabled: t, scale: e, date: this.localDateAsString, onDateChange: (n) => {
|
|
307
311
|
const s = n.currentTarget.value, o = Array.isArray(s) ? s[0] : s;
|
|
308
312
|
this._stopPlaying(), this.localDate = o, this._emitUserDateTimeChangeEvent();
|
|
309
|
-
} })}</calcite-label>${
|
|
313
|
+
} })}</calcite-label>${T({ hidden: this.hidePlayButtons, children: ne({ playing: this.yearPlaying, disabled: t, label: i.playYear, onClick: () => {
|
|
310
314
|
this._playingState === "year" ? this._playingState = "none" : this._playingState = "year";
|
|
311
315
|
}, scale: e }) })}`;
|
|
312
316
|
}
|
|
313
|
-
#
|
|
317
|
+
#b({ scale: e, disabled: t }) {
|
|
314
318
|
const { messages: i } = this;
|
|
315
|
-
return m`<calcite-label .scale=${e} class="date-picker-container">${i.season}${
|
|
319
|
+
return m`<calcite-label .scale=${e} class="date-picker-container">${i.season}${it({ scale: e, selectedSeason: this.currentSeason, disabled: t, messages: i, onSeasonChange: (n) => {
|
|
316
320
|
this._stopPlaying(), this.currentSeason = n.currentTarget.value;
|
|
317
321
|
} })}</calcite-label>`;
|
|
318
322
|
}
|
|
319
323
|
#o;
|
|
320
|
-
get #
|
|
324
|
+
get #v() {
|
|
321
325
|
return this.#g?.value?.startTime;
|
|
322
326
|
}
|
|
323
327
|
get localDateAsString() {
|
|
@@ -349,9 +353,9 @@ class Xe extends _e {
|
|
|
349
353
|
p(i) && (s.cameraTrackingEnabled = i.cameraTrackingEnabled);
|
|
350
354
|
const o = e ? "virtual" : "sun";
|
|
351
355
|
let a;
|
|
352
|
-
n?.type === o ? a = n : a = e ? new
|
|
353
|
-
date:
|
|
354
|
-
|
|
356
|
+
n?.type === o ? a = n : a = e ? new _e() : new fe({
|
|
357
|
+
date: C(
|
|
358
|
+
C(this.localDate, this.timeSliderPosition ?? 0, "minutes"),
|
|
355
359
|
// this.localDate already includes the UTC offset, so we need to remove the offset to get the correct UTC date for the SunLighting configuration
|
|
356
360
|
this.utcOffset ?? 0
|
|
357
361
|
),
|
|
@@ -359,13 +363,13 @@ class Xe extends _e {
|
|
|
359
363
|
}), a.set(s), t.lighting = a, e || (this._stopPlaying(), this.#l.value && (this.#l.value.open = !1));
|
|
360
364
|
}
|
|
361
365
|
get currentSeason() {
|
|
362
|
-
const e = this._view?.camera?.position?.latitude ?? 0, t =
|
|
363
|
-
return
|
|
366
|
+
const e = this._view?.camera?.position?.latitude ?? 0, t = ie(e);
|
|
367
|
+
return Re(this.localDate, t);
|
|
364
368
|
}
|
|
365
369
|
set currentSeason(e) {
|
|
366
370
|
this._stopPlaying();
|
|
367
|
-
const t = this._view?.camera?.position?.latitude ?? 0, i =
|
|
368
|
-
this.localDate =
|
|
371
|
+
const t = this._view?.camera?.position?.latitude ?? 0, i = ie(t), n = R(e, i);
|
|
372
|
+
this.localDate = P(this.localDate, n, "northern"), this._emitUserDateTimeChangeEvent();
|
|
369
373
|
}
|
|
370
374
|
get dayPlaying() {
|
|
371
375
|
return this._playingState === "day";
|
|
@@ -389,7 +393,7 @@ class Xe extends _e {
|
|
|
389
393
|
return this._timesliderPosition.value;
|
|
390
394
|
}
|
|
391
395
|
set timeSliderPosition(e) {
|
|
392
|
-
this._timesliderPosition.mutate(
|
|
396
|
+
this._timesliderPosition.mutate(se(e ?? 0, Ve)), !this.#n("timeSliderPosition", e) && this.#d();
|
|
393
397
|
}
|
|
394
398
|
get localDate() {
|
|
395
399
|
return this._localDate.value != null ? new Date(this._localDate.value) : /* @__PURE__ */ new Date();
|
|
@@ -402,7 +406,7 @@ class Xe extends _e {
|
|
|
402
406
|
return;
|
|
403
407
|
}
|
|
404
408
|
const t = new Date(e);
|
|
405
|
-
if (
|
|
409
|
+
if (Z(t)) {
|
|
406
410
|
t.setUTCFullYear(t.getFullYear(), t.getMonth(), t.getDate());
|
|
407
411
|
const i = t.toISOString().slice(0, 10);
|
|
408
412
|
if (this._localDate.mutate(i), this.#n("localDate", i))
|
|
@@ -423,16 +427,16 @@ class Xe extends _e {
|
|
|
423
427
|
this.manager.onLifecycle(() => [
|
|
424
428
|
// When camera tracking is enabled, update the displayed timezone whenever the camera crosses into a new rounded
|
|
425
429
|
// UTC offset.
|
|
426
|
-
|
|
430
|
+
ge(() => {
|
|
427
431
|
const e = this._view?.camera?.position;
|
|
428
|
-
return e ?
|
|
432
|
+
return e ? Q(e) : void 0;
|
|
429
433
|
}, (e, t) => {
|
|
430
|
-
this.#
|
|
434
|
+
this.#w(e, t);
|
|
431
435
|
}, { sync: !0, initial: !0 }),
|
|
432
|
-
|
|
436
|
+
ue(() => !p(this._lighting), () => {
|
|
433
437
|
this._stopPlaying();
|
|
434
438
|
}),
|
|
435
|
-
|
|
439
|
+
me.onLocaleChange(() => {
|
|
436
440
|
this.requestUpdate();
|
|
437
441
|
})
|
|
438
442
|
]), this.manager.onDisconnected(() => {
|
|
@@ -441,7 +445,7 @@ class Xe extends _e {
|
|
|
441
445
|
}
|
|
442
446
|
willUpdate(e) {
|
|
443
447
|
if (super.willUpdate(e), !!this.#a && p(this._lighting) && e.has("utcOffset") && !e.has("localDate") && !e.has("timeSliderPosition")) {
|
|
444
|
-
const t = this.utcOffset ?? 0, { minutesSinceMidnight: i, localDate: n } =
|
|
448
|
+
const t = this.utcOffset ?? 0, { minutesSinceMidnight: i, localDate: n } = D(this._lighting.date, t);
|
|
445
449
|
this._timesliderPosition.mutate(i), this._localDate.mutate(n);
|
|
446
450
|
}
|
|
447
451
|
}
|
|
@@ -452,10 +456,10 @@ class Xe extends _e {
|
|
|
452
456
|
remove: () => {
|
|
453
457
|
e.abort();
|
|
454
458
|
}
|
|
455
|
-
})), await
|
|
459
|
+
})), await De(pe(() => this._view?.ready, { signal: e.signal }).then(() => {
|
|
456
460
|
const t = this._lighting, i = this._view?.camera?.position;
|
|
457
461
|
if (this.#o.utcOffset == null && p(t) && t.displayUTCOffset == null && i) {
|
|
458
|
-
const s =
|
|
462
|
+
const s = Q(i);
|
|
459
463
|
this.#h(s, t);
|
|
460
464
|
}
|
|
461
465
|
this.#a = !0, this.#m();
|
|
@@ -463,7 +467,7 @@ class Xe extends _e {
|
|
|
463
467
|
n !== "none" && this.#e == null && this._play(n);
|
|
464
468
|
}));
|
|
465
469
|
}
|
|
466
|
-
#
|
|
470
|
+
#w(e, t) {
|
|
467
471
|
const i = this._lighting;
|
|
468
472
|
if (!(!this.#a || !p(i) || !i.cameraTrackingEnabled || e == null)) {
|
|
469
473
|
if (t == null && i.displayUTCOffset == null) {
|
|
@@ -474,8 +478,8 @@ class Xe extends _e {
|
|
|
474
478
|
}
|
|
475
479
|
}
|
|
476
480
|
#h(e, t) {
|
|
477
|
-
this._offset.mutate(e);
|
|
478
|
-
const { minutesSinceMidnight: i, localDate: n } =
|
|
481
|
+
t.displayUTCOffset = e, this._offset.mutate(e);
|
|
482
|
+
const { minutesSinceMidnight: i, localDate: n } = D(t.date, e);
|
|
479
483
|
this._timesliderPosition.mutate(i), this._localDate.mutate(n), this.requestUpdate();
|
|
480
484
|
}
|
|
481
485
|
_emitUserDateTimeChangeEvent() {
|
|
@@ -485,18 +489,18 @@ class Xe extends _e {
|
|
|
485
489
|
this._playingState = "none";
|
|
486
490
|
}
|
|
487
491
|
#s;
|
|
488
|
-
#
|
|
492
|
+
#y(e) {
|
|
489
493
|
if (this.#s)
|
|
490
494
|
return;
|
|
491
495
|
const t = setTimeout(() => {
|
|
492
|
-
const i = e.displayUTCOffset ?? 0, n = e.date, { minutesSinceMidnight: s } =
|
|
496
|
+
const i = e.displayUTCOffset ?? 0, n = e.date, { minutesSinceMidnight: s } = D(n, i);
|
|
493
497
|
this._timesliderPosition.mutate(s), this.#s?.remove();
|
|
494
498
|
}, this.#p);
|
|
495
499
|
this.#s = N(() => {
|
|
496
500
|
clearTimeout(t), this.#s = void 0;
|
|
497
501
|
const i = this._lighting;
|
|
498
502
|
if (p(i)) {
|
|
499
|
-
const n = i.displayUTCOffset ?? 0, s = i.date, { minutesSinceMidnight: o } =
|
|
503
|
+
const n = i.displayUTCOffset ?? 0, s = i.date, { minutesSinceMidnight: o } = D(s, n);
|
|
500
504
|
this._timesliderPosition.mutate(o);
|
|
501
505
|
}
|
|
502
506
|
});
|
|
@@ -509,21 +513,22 @@ class Xe extends _e {
|
|
|
509
513
|
const i = t.environment.lighting;
|
|
510
514
|
if (!p(i))
|
|
511
515
|
return;
|
|
516
|
+
this.#f(i);
|
|
512
517
|
let n = 0;
|
|
513
|
-
this.#e =
|
|
518
|
+
this.#e = We({
|
|
514
519
|
mode: e,
|
|
515
520
|
lighting: i,
|
|
516
521
|
beforeProgress: () => {
|
|
517
|
-
n = this.#
|
|
522
|
+
n = this.#v ?? 0;
|
|
518
523
|
},
|
|
519
524
|
onProgress: (s, o) => {
|
|
520
|
-
this._timesliderPosition.mutate(n), this.#
|
|
525
|
+
this._timesliderPosition.mutate(n), this.#y(o);
|
|
521
526
|
},
|
|
522
527
|
getPlaySpeed: () => {
|
|
523
528
|
const s = this._view, o = this._view?.environment.lighting;
|
|
524
529
|
if (s != null && p(o)) {
|
|
525
|
-
const a = s.camera.position.latitude ?? 0, c = s.camera.position.longitude ?? 0, { sunrise: d, sunset: l } =
|
|
526
|
-
return
|
|
530
|
+
const a = s.camera.position.latitude ?? 0, c = s.camera.position.longitude ?? 0, { sunrise: d, sunset: l } = Ge(o.date, a, c, o.displayUTCOffset ?? 0);
|
|
531
|
+
return Ke(d, l, o.date, Xe) * this.playSpeedMultiplier;
|
|
527
532
|
} else
|
|
528
533
|
return U * this.playSpeedMultiplier;
|
|
529
534
|
}
|
|
@@ -532,40 +537,40 @@ class Xe extends _e {
|
|
|
532
537
|
render() {
|
|
533
538
|
const { messages: e, dateOrSeason: t } = this, i = this._sunlightingDisabled, n = "m";
|
|
534
539
|
if (!(this._view?.type === "3d"))
|
|
535
|
-
return
|
|
540
|
+
return K({ class: "root", label: e.componentLabel, title: e.title, hideHeader: this.hideHeader, headingLevel: this.headingLevel, children: m`<div class="unsupported"><p>${e.unsupported}</p></div>` });
|
|
536
541
|
const o = (this.utcOffset ?? 0) * 60, a = this.view?.ready === !0, c = Array.isArray(this.timeSliderSteps) ? this.timeSliderSteps.at(0) : this.timeSliderSteps;
|
|
537
|
-
return
|
|
542
|
+
return K({ class: { root: !0, loading: !a }, label: e.componentLabel, title: e.title, hideHeader: this.hideHeader, headingLevel: this.headingLevel, children: m`${a ? void 0 : m`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${V({ columnGap: this.hidePlayButtons ? "0" : void 0 })}><calcite-label class="slider-container" .scale=${n}>${e.timeSliderLabel}<arcgis-time-of-day-slider class="slider" .disabled=${this._sunlightingDisabled} mode=single .startTime=${this.timeSliderPosition ?? 0} .steps=${c} style=${V({ gridArea: "slider" })} @arcgisTimeChange=${({ currentTarget: d }) => {
|
|
538
543
|
this._stopPlaying(), this._emitUserDateTimeChangeEvent(), this.timeSliderPosition = d.startTime;
|
|
539
|
-
}} ${G(this.#g)}></arcgis-time-of-day-slider></calcite-label>${
|
|
544
|
+
}} ${G(this.#g)}></arcgis-time-of-day-slider></calcite-label>${T({ hidden: this.hidePlayButtons, children: ne({ disabled: this._sunlightingDisabled, playing: this.dayPlaying, label: e.playDay, onClick: () => {
|
|
540
545
|
this._playingState === "day" ? this._stopPlaying() : this._playingState = "day";
|
|
541
|
-
}, scale: n }) })}${
|
|
546
|
+
}, scale: n }) })}${T({ hidden: this.hideTimezone, children: m`<calcite-label .scale=${n} class="timezone-input-container">${e.timezone}<calcite-input-time-zone mode=offset overlay-positioning=fixed .scale=${n} .disabled=${this._sunlightingDisabled} .value=${`${o}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${(d) => {
|
|
542
547
|
const l = +d.target.value;
|
|
543
548
|
this.utcOffset = l / 60, this._stopPlaying();
|
|
544
|
-
}} ${G(this.#l)}></calcite-input-time-zone></calcite-label><span></span>` })}${
|
|
549
|
+
}} ${G(this.#l)}></calcite-input-time-zone></calcite-label><span></span>` })}${T({ hidden: this.hideDatePicker, children: t === "date" ? this.#_({ scale: n, disabled: i }) : this.#b({ scale: n, disabled: i }) })}</div>${T({ hidden: this.hideSunLightingToggle, children: rt({ scale: n, messages: e.sunLightingToggle, sunlightingEnabled: !this._sunlightingDisabled, onSunLightingToggle: (d) => {
|
|
545
550
|
this._sunlightingDisabled = !d;
|
|
546
|
-
} }) })}${
|
|
551
|
+
} }) })}${T({ hidden: this.hideShadowsToggle, children: nt({ scale: n, messages: e.shadowsToggle, onShadowCheckboxChange: (d) => {
|
|
547
552
|
this._directShadowsDisabled = !d;
|
|
548
553
|
}, shadowEnabled: !this._directShadowsDisabled }) })}` });
|
|
549
554
|
}
|
|
550
555
|
}
|
|
551
|
-
function
|
|
556
|
+
function ne({ disabled: r, playing: e, onClick: t, label: i, scale: n = "m" }) {
|
|
552
557
|
return m`<calcite-button appearance=solid .scale=${n} .disabled=${r} .iconStart=${e ? "pause-f" : "play-f"} .label=${i} @click=${t} round title=${i ?? J} type=button></calcite-button>`;
|
|
553
558
|
}
|
|
554
|
-
function
|
|
559
|
+
function tt({ disabled: r, date: e, onDateChange: t, scale: i }) {
|
|
555
560
|
return m`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${r} overlay-positioning=fixed placement=bottom .value=${e} .scale=${i} @calciteInputDatePickerChange=${t}></calcite-input-date-picker>`;
|
|
556
561
|
}
|
|
557
|
-
function
|
|
562
|
+
function it({ messages: r, disabled: e, scale: t, selectedSeason: i, onSeasonChange: n }) {
|
|
558
563
|
return m`<calcite-select .disabled=${e} .label=${r.season} .scale=${t} .value=${i} @calciteSelectChange=${(s) => {
|
|
559
564
|
n(s);
|
|
560
565
|
}}>${F.map((s) => m`<calcite-option .selected=${i === s} .value=${s}>${r[s]}</calcite-option>`)}</calcite-select>`;
|
|
561
566
|
}
|
|
562
|
-
function
|
|
567
|
+
function rt({ messages: r, sunlightingEnabled: e, onSunLightingToggle: t, scale: i }) {
|
|
563
568
|
return m`<calcite-label layout=inline .scale=${i} title=${r?.tooltip ?? J}><calcite-checkbox .scale=${i} .checked=${e} @calciteCheckboxChange=${(n) => t(n.target.checked)}></calcite-checkbox>${r?.label}</calcite-label>`;
|
|
564
569
|
}
|
|
565
|
-
function
|
|
570
|
+
function nt({ messages: r, shadowEnabled: e, onShadowCheckboxChange: t, scale: i }) {
|
|
566
571
|
return m`<calcite-label layout=inline .scale=${i} title=${r?.tooltip ?? J}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${(n) => t(n.target.checked)}></calcite-checkbox>${r.label}</calcite-label>`;
|
|
567
572
|
}
|
|
568
|
-
|
|
573
|
+
he("arcgis-daylight", et);
|
|
569
574
|
export {
|
|
570
|
-
|
|
575
|
+
et as ArcgisDaylight
|
|
571
576
|
};
|