@arcgis/map-components 5.0.8 → 5.0.10
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/{RUNR4PHJ.js → 26UCEAP3.js} +1 -1
- package/dist/cdn/{WCBA3F5G.js → 2CD26SYH.js} +1 -1
- package/dist/cdn/2DXXZCIQ.js +2 -0
- package/dist/cdn/{DLCRIX3F.js → 2SVYHHVN.js} +1 -1
- package/dist/cdn/{7SBVVOP3.js → 34YLSNWS.js} +1 -1
- package/dist/cdn/{ZDMBWQNI.js → 3643BBK6.js} +1 -1
- package/dist/cdn/{TPGQZBGS.js → 3GVKFZWQ.js} +1 -1
- package/dist/cdn/{7BSE4Y2A.js → 3PY5Y64M.js} +1 -1
- package/dist/cdn/{HC3MHWTP.js → 3Q7XL7W7.js} +1 -1
- package/dist/cdn/{62PPRW5H.js → 3WARW7XG.js} +1 -1
- package/dist/cdn/{H5ZGEYHN.js → 3ZOV6BXY.js} +1 -1
- package/dist/cdn/{JY37VVM4.js → 444XIRZM.js} +1 -1
- package/dist/cdn/4DS724NP.js +2 -0
- package/dist/cdn/{FWLGMF7U.js → 4FTAIGTM.js} +1 -1
- package/dist/cdn/{IENGLEJA.js → 54IVMNFB.js} +1 -1
- package/dist/cdn/{OIXQVXVX.js → 57JWHCAH.js} +1 -1
- package/dist/cdn/5DWOHF4O.js +2 -0
- package/dist/cdn/{QK23OZPY.js → 5F2P2HHQ.js} +1 -1
- package/dist/cdn/{4QL2L5HG.js → 5GAZ5576.js} +1 -1
- package/dist/cdn/{DGBQDSJV.js → 5QQGD5IE.js} +1 -1
- package/dist/cdn/{64DLLWCT.js → 5R3MYPZN.js} +1 -1
- package/dist/cdn/{NJBN5VJA.js → 5RH2Q2XJ.js} +1 -1
- package/dist/cdn/{WB6NANDC.js → 5XL57S3R.js} +1 -1
- package/dist/cdn/{6Z5BZD4S.js → 6EWHBACJ.js} +1 -1
- package/dist/cdn/6NP6SP7N.js +2 -0
- package/dist/cdn/{452XJTUD.js → 6O2ZQG6K.js} +1 -1
- package/dist/cdn/{IPN4LJ7V.js → 6PR5ZAGE.js} +1 -1
- package/dist/cdn/{65GHL7AK.js → 6QVNN73N.js} +1 -1
- package/dist/cdn/{N46RUHPV.js → 73ADD2ST.js} +1 -1
- package/dist/cdn/{2ERUSYFG.js → 74OHXSLR.js} +1 -1
- package/dist/cdn/{CWTYBVDX.js → 7BL4R6UO.js} +1 -1
- package/dist/cdn/{32Q5BYKS.js → 7HU5L4UW.js} +1 -1
- package/dist/cdn/{NXMSFJ7A.js → 7LO5AUFO.js} +1 -1
- package/dist/cdn/{FRQBH455.js → 7UM3MUX2.js} +1 -1
- package/dist/cdn/{G5CFCDWX.js → 7W7KIY47.js} +1 -1
- package/dist/cdn/{XFRWBORH.js → A2JM7YOI.js} +1 -1
- package/dist/cdn/{BNQQ7JMQ.js → A67UIGNH.js} +1 -1
- package/dist/cdn/{QLKVY23N.js → A7DUC33A.js} +1 -1
- package/dist/cdn/{RMXIPB4F.js → AVFJRQFL.js} +1 -1
- package/dist/cdn/{QOYZ3JEZ.js → AWQ5JJQ2.js} +1 -1
- package/dist/cdn/{QIVD6SID.js → AXRMZ7U6.js} +1 -1
- package/dist/cdn/{ZAXHNBK4.js → B4U3EWER.js} +1 -1
- package/dist/cdn/{6FKMR33M.js → B65SDLV4.js} +1 -1
- package/dist/cdn/{MS7JRJ6R.js → BHM5WW5A.js} +1 -1
- package/dist/cdn/{CVVCPCHQ.js → BLTDBKUR.js} +1 -1
- package/dist/cdn/{DAXUZZYI.js → BU3L3NMX.js} +1 -1
- package/dist/cdn/{OJS2HGOV.js → BUL44EC3.js} +1 -1
- package/dist/cdn/{SKTGMQNL.js → C6AF4MSP.js} +1 -1
- package/dist/cdn/{7VUB7AFJ.js → CKYQURFS.js} +1 -1
- package/dist/cdn/{HX5VKOH7.js → CRZ4HTQ7.js} +1 -1
- package/dist/cdn/{L7U7JQYH.js → CX6UPSNM.js} +1 -1
- package/dist/cdn/{EZNR44ZZ.js → CXOB4PZV.js} +1 -1
- package/dist/cdn/CZQ5NDPB.js +2 -0
- package/dist/cdn/{VRQRANLV.js → DMKJ6K6T.js} +1 -1
- package/dist/cdn/{C4OFSKWZ.js → EB57QKAY.js} +1 -1
- package/dist/cdn/{RLGD7QFK.js → ED3L6FYZ.js} +1 -1
- package/dist/cdn/{KLUJHBJX.js → EJESLMSS.js} +1 -1
- package/dist/cdn/{JQA7633S.js → EKVMZYRA.js} +1 -1
- package/dist/cdn/{5226JY7U.js → EN5UJU7M.js} +1 -1
- package/dist/cdn/{Y6QLR3JD.js → ERBWWZQA.js} +1 -1
- package/dist/cdn/{33YWYJ4B.js → ET47SHS3.js} +1 -1
- package/dist/cdn/{2WZ3RMR7.js → EWEYUKDY.js} +1 -1
- package/dist/cdn/{GYOEIXYM.js → FAXGMRG4.js} +1 -1
- package/dist/cdn/{M2MYLPEX.js → FBRFXPYT.js} +1 -1
- package/dist/cdn/{DZXBV52D.js → FIBOLFW6.js} +1 -1
- package/dist/cdn/{VF5OXNNE.js → FLJEHVGP.js} +1 -1
- package/dist/cdn/FMALIUO4.js +2 -0
- package/dist/cdn/{OEEM2YOU.js → FMKDJBHO.js} +1 -1
- package/dist/cdn/{KH3CK4NM.js → FPYYHVUG.js} +1 -1
- package/dist/cdn/{MYPHE7JL.js → FQERYING.js} +1 -1
- package/dist/cdn/{BXEQ2GR7.js → FQGSB7BH.js} +1 -1
- package/dist/cdn/{WUDIJWPW.js → FTLFLDIB.js} +1 -1
- package/dist/cdn/{A5GHD7L7.js → FWBUBKS7.js} +1 -1
- package/dist/cdn/{GNF5NJB7.js → G52VTWWT.js} +1 -1
- package/dist/cdn/{KBXRLSRQ.js → G53QNLVP.js} +1 -1
- package/dist/cdn/{R4BFR6CR.js → G73P2REW.js} +1 -1
- package/dist/cdn/{LNKIDH5D.js → GGQGE7ZF.js} +1 -1
- package/dist/cdn/{QITFIJJH.js → GLGLU47Q.js} +1 -1
- package/dist/cdn/{ARB7ESUF.js → H2WPK23B.js} +1 -1
- package/dist/cdn/{MRRD3ZPK.js → H7QIL2RM.js} +1 -1
- package/dist/cdn/{E4NS5EP3.js → H7WGDHML.js} +1 -1
- package/dist/cdn/{43SFYWBA.js → HCVJLZP6.js} +1 -1
- package/dist/cdn/{PTX37QR4.js → HE2EMIPI.js} +1 -1
- package/dist/cdn/{OIPOVOS7.js → HIP6RFN2.js} +1 -1
- package/dist/cdn/{JW4IYKZW.js → HMJE37EF.js} +1 -1
- package/dist/cdn/{KS2NA752.js → IJ5E43JT.js} +1 -1
- package/dist/cdn/{NQ7AJXP5.js → IPUTUWHD.js} +1 -1
- package/dist/cdn/{ZLYS2U4C.js → IQI6KCQH.js} +1 -1
- package/dist/cdn/{NZEXJWD3.js → IRVSV5KJ.js} +1 -1
- package/dist/cdn/{GCJHT65W.js → ISKWJGGD.js} +1 -1
- package/dist/cdn/{4HIKXNLJ.js → IUT2VFA4.js} +1 -1
- package/dist/cdn/{YLCINN3O.js → IVLODVOE.js} +1 -1
- package/dist/cdn/{GHNGYP3W.js → JJNMGYIF.js} +1 -1
- package/dist/cdn/JR6VM7VT.js +2 -0
- package/dist/cdn/{3QMAQRDF.js → JTWSHWNO.js} +1 -1
- package/dist/cdn/{ZRR7SK7S.js → JTWYBRTA.js} +1 -1
- package/dist/cdn/{QDB572U4.js → JXDYG2IQ.js} +1 -1
- package/dist/cdn/{SUKF2DNP.js → JZLBVTTJ.js} +1 -1
- package/dist/cdn/{4QLSHCCH.js → K42GGHFW.js} +1 -1
- package/dist/cdn/{FDCGR4B4.js → K6GXXW3D.js} +1 -1
- package/dist/cdn/{I3EZXW2U.js → KCSDUZEW.js} +1 -1
- package/dist/cdn/{ZCZAVJTC.js → KM32PCCD.js} +1 -1
- package/dist/cdn/{GEEP3X2Y.js → KTFH4OMN.js} +1 -1
- package/dist/cdn/{AYFGP5ZN.js → KXW5VKYX.js} +1 -1
- package/dist/cdn/{2KLBPWCO.js → KYPWKQTO.js} +1 -1
- package/dist/cdn/{3AJGQWWJ.js → MCGJBF6G.js} +1 -1
- package/dist/cdn/{PAIWJPLK.js → MIX2NW3K.js} +1 -1
- package/dist/cdn/{FKAXOX2G.js → MKIJ4OO6.js} +1 -1
- package/dist/cdn/{BXMF7CDZ.js → MTX42FRB.js} +1 -1
- package/dist/cdn/{ZZDZPOW3.js → N7JNITFB.js} +1 -1
- package/dist/cdn/{3XA7FNHU.js → NDOU6XUL.js} +1 -1
- package/dist/cdn/{BLRU43VQ.js → NJUXKUDJ.js} +1 -1
- package/dist/cdn/NM6TCMXU.js +2 -0
- package/dist/cdn/{V5KZVJFN.js → NQRQEZLD.js} +1 -1
- package/dist/cdn/{TM62FNIH.js → O62ODZW4.js} +1 -1
- package/dist/cdn/{AJAD4RUP.js → O75XVQT5.js} +1 -1
- package/dist/cdn/OHQWZMXB.js +2 -0
- package/dist/cdn/{NIIMT3SS.js → OIRQX4K4.js} +1 -1
- package/dist/cdn/{H6NJXUN6.js → OMFGZXZL.js} +1 -1
- package/dist/cdn/{AGBHCVRA.js → OSIIOSSS.js} +1 -1
- package/dist/cdn/{4MJ6RR6C.js → OXWTHPY6.js} +1 -1
- package/dist/cdn/{UPJWDEDA.js → OZS77YEK.js} +1 -1
- package/dist/cdn/{BWSEQK6S.js → P7P7J36T.js} +1 -1
- package/dist/cdn/{V7B4YUMV.js → PEZSSXWS.js} +1 -1
- package/dist/cdn/{L4TUBH7W.js → PLZPYBQR.js} +1 -1
- package/dist/cdn/{O2CHOEOT.js → POD3MFGZ.js} +1 -1
- package/dist/cdn/{CWMCSQSK.js → PWV6D2SL.js} +1 -1
- package/dist/cdn/Q3G44O4X.js +2 -0
- package/dist/cdn/{PF2QXZ63.js → Q5O3TAIF.js} +1 -1
- package/dist/cdn/{RS7XEIXD.js → Q76ESOVF.js} +1 -1
- package/dist/cdn/{AWIUYN3W.js → QEFULS3X.js} +1 -1
- package/dist/cdn/{A3ZA5MCJ.js → QIJP3J5Z.js} +1 -1
- package/dist/cdn/{OMUYJPC3.js → QNFTWF3H.js} +1 -1
- package/dist/cdn/{UQN4KPNM.js → R3IRIYO5.js} +1 -1
- package/dist/cdn/{IB2J54RM.js → R4CKGCKN.js} +1 -1
- package/dist/cdn/{DJ3SEHH7.js → REPV7Y3Z.js} +1 -1
- package/dist/cdn/{AXFOWKQN.js → RMKR32JP.js} +1 -1
- package/dist/cdn/{VUEBCRTT.js → RT4IDHHI.js} +1 -1
- package/dist/cdn/{QUMXEH6O.js → RUOVJOLE.js} +1 -1
- package/dist/cdn/{YRRD6IOX.js → RWOVJDSP.js} +1 -1
- package/dist/cdn/{THWXFLFI.js → RZMAT6ZB.js} +1 -1
- package/dist/cdn/{QDM5XPXZ.js → S75CBWY7.js} +1 -1
- package/dist/cdn/{LGKCESB4.js → SLZSHM5D.js} +1 -1
- package/dist/cdn/{U2AWOURC.js → SQ4TM5PR.js} +1 -1
- package/dist/cdn/{I2JJUUZQ.js → SUC5V273.js} +1 -1
- package/dist/cdn/{LU6GBARZ.js → TCLV7Q7J.js} +1 -1
- package/dist/cdn/{UPEU3R2L.js → TMXXSKKH.js} +1 -1
- package/dist/cdn/{F3QMZQEN.js → TMY6KO4C.js} +1 -1
- package/dist/cdn/{YK2NREJU.js → U2E3O2S4.js} +1 -1
- package/dist/cdn/{4VANT2H2.js → U67IMY5G.js} +1 -1
- package/dist/cdn/{4Y5ZV64K.js → UIII7DGV.js} +1 -1
- package/dist/cdn/{M2M7DHX2.js → UJC6SFYK.js} +1 -1
- package/dist/cdn/{TX2C55A4.js → ULULSU27.js} +1 -1
- package/dist/cdn/{6KELW6YE.js → URLJ4O3R.js} +1 -1
- package/dist/cdn/{E52S65JA.js → VBIZIGF3.js} +1 -1
- package/dist/cdn/{JADRITCD.js → VDKAGGLJ.js} +1 -1
- package/dist/cdn/{HM67OIIC.js → VHCWNQVT.js} +1 -1
- package/dist/cdn/{IPMDK4MT.js → VKQ2KPFK.js} +1 -1
- package/dist/cdn/{WH46XXVN.js → VNNHQTF5.js} +1 -1
- package/dist/cdn/{3UQI2KLK.js → VOC4AMMN.js} +1 -1
- package/dist/cdn/{RL3YYALU.js → VQT7BSXU.js} +1 -1
- package/dist/cdn/{P6WTQUAO.js → W2BFLHN5.js} +1 -1
- package/dist/cdn/{LDESQMMT.js → W3JGBX2V.js} +1 -1
- package/dist/cdn/{O2756ASS.js → WJ5C5UAU.js} +1 -1
- package/dist/cdn/{YCCZLRZB.js → WNUQWTS5.js} +1 -1
- package/dist/cdn/{SQ2BHLMX.js → WOEZ7IZP.js} +1 -1
- package/dist/cdn/{3MNBJANP.js → X562IF4C.js} +1 -1
- package/dist/cdn/{IE2YLVLQ.js → XAXPEQ52.js} +1 -1
- package/dist/cdn/{5HY425PW.js → XFS62KN4.js} +1 -1
- package/dist/cdn/{HEUVUMO7.js → XGBC6MSH.js} +1 -1
- package/dist/cdn/{X2MXOMPH.js → XQOKECHI.js} +1 -1
- package/dist/cdn/{4K34BUTQ.js → XTTUQ2RA.js} +1 -1
- package/dist/cdn/{K6KI46YC.js → XV5BKEEX.js} +1 -1
- package/dist/cdn/{JTB4D5Y2.js → Y5XRMGH4.js} +1 -1
- package/dist/cdn/{VF3Q4EFN.js → Y7E4JKAI.js} +1 -1
- package/dist/cdn/{LNKGOWH7.js → YA6XYOU6.js} +1 -1
- package/dist/cdn/{AKBJKSH3.js → YSPMYODD.js} +1 -1
- package/dist/cdn/{2BKO4X64.js → YVIMCR3P.js} +1 -1
- package/dist/cdn/{BGCXNQ5U.js → YXT4NNLG.js} +1 -1
- package/dist/cdn/{2PSYTKRG.js → ZGXLR24C.js} +1 -1
- package/dist/cdn/{CQ4OP5KR.js → ZHVC4UBZ.js} +1 -1
- package/dist/cdn/{G6Z2GTC7.js → ZI7LN2XU.js} +1 -1
- package/dist/cdn/{V64WJLLP.js → ZTQHMZWL.js} +1 -1
- package/dist/cdn/{57QXQ42V.js → ZWFVPETR.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/slots.js +4 -4
- package/dist/chunks/useArcgisViewReadyError.js +6 -6
- package/dist/components/arcgis-daylight/customElement.js +132 -132
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +5 -5
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +20 -19
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +34 -34
- package/dist/components/arcgis-slice/customElement.js +5 -4
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +9 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +4 -4
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +5 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +3 -3
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +5 -0
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +3 -3
- 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 +3 -3
- package/dist/types/lumina.d.ts +3 -3
- package/dist/types/preact.d.ts +3 -3
- package/dist/types/react.d.ts +3 -3
- package/dist/types/stencil.d.ts +3 -3
- package/package.json +4 -4
- package/dist/cdn/BC5B7PGD.js +0 -2
- package/dist/cdn/J3TV3V5W.js +0 -2
- package/dist/cdn/LFH2LJU7.js +0 -2
- package/dist/cdn/LTDNG7YS.js +0 -2
- package/dist/cdn/MI2C6GGG.js +0 -2
- package/dist/cdn/MPTRSZMX.js +0 -2
- package/dist/cdn/N4RWJWIQ.js +0 -2
- package/dist/cdn/QT5JEHEL.js +0 -2
- package/dist/cdn/UPP7IN72.js +0 -2
- package/dist/cdn/W5ABTJHB.js +0 -2
|
@@ -15,78 +15,78 @@ import { r as ye, b as xe, d as Se } from "../../chunks/async-utils.js";
|
|
|
15
15
|
import { createTrackingTarget as De, runTracked as W, signal as Te } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
16
16
|
import { C as K } from "../../chunks/component-wrapper.js";
|
|
17
17
|
import { V as D } from "../../chunks/visible-element.js";
|
|
18
|
-
function ke(
|
|
19
|
-
return
|
|
18
|
+
function ke(t, e) {
|
|
19
|
+
return t / 15;
|
|
20
20
|
}
|
|
21
|
-
function Pe(
|
|
22
|
-
const
|
|
23
|
-
if (
|
|
21
|
+
function Pe(t, e) {
|
|
22
|
+
const i = t?.[0];
|
|
23
|
+
if (i == null)
|
|
24
24
|
return null;
|
|
25
|
-
e || (e = { hours: 0, minutes: 0, seconds: 0 }), e.hours = ke(
|
|
25
|
+
e || (e = { hours: 0, minutes: 0, seconds: 0 }), e.hours = ke(i);
|
|
26
26
|
const r = e.hours % 1;
|
|
27
27
|
e.hours -= r, e.minutes = r * 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 Ce(
|
|
32
|
-
const e = Pe([
|
|
31
|
+
function Ce(t) {
|
|
32
|
+
const e = Pe([t.longitude, t.latitude]);
|
|
33
33
|
return e == null ? 0 : Math.round(e.hours + e.minutes / 60 + e.seconds / 3600);
|
|
34
34
|
}
|
|
35
|
-
function ne(
|
|
36
|
-
return (
|
|
35
|
+
function ne(t, e) {
|
|
36
|
+
return (t % e + e) % e;
|
|
37
37
|
}
|
|
38
38
|
class $e {
|
|
39
|
-
#
|
|
39
|
+
#i;
|
|
40
40
|
#r;
|
|
41
41
|
#n = De(() => {
|
|
42
|
-
this.#
|
|
42
|
+
this.#t();
|
|
43
43
|
});
|
|
44
44
|
constructor(e) {
|
|
45
45
|
this.#r = e;
|
|
46
|
-
let
|
|
46
|
+
let i;
|
|
47
47
|
W(this.#n, () => {
|
|
48
|
-
|
|
49
|
-
}), this.#
|
|
48
|
+
i = e();
|
|
49
|
+
}), this.#i = Te(i);
|
|
50
50
|
}
|
|
51
|
-
#
|
|
52
|
-
const e = this.#
|
|
51
|
+
#t() {
|
|
52
|
+
const e = this.#i.value;
|
|
53
53
|
W(this.#n, () => {
|
|
54
|
-
this.#
|
|
54
|
+
this.#i.value = this.#r(e);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
mutate(e) {
|
|
58
|
-
this.#
|
|
58
|
+
this.#i.value = e;
|
|
59
59
|
}
|
|
60
60
|
get value() {
|
|
61
|
-
return this.#
|
|
61
|
+
return this.#i.value;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function I(
|
|
65
|
-
return new $e(
|
|
64
|
+
function I(t) {
|
|
65
|
+
return new $e(t);
|
|
66
66
|
}
|
|
67
67
|
var U = Math.PI, u = Math.sin, T = Math.cos, ze = Math.asin, Me = Math.acos, y = U / 180, se = 1e3 * 60 * 60 * 24, oe = 2440588, ae = 2451545;
|
|
68
|
-
function Oe(
|
|
69
|
-
return
|
|
68
|
+
function Oe(t) {
|
|
69
|
+
return t.valueOf() / se - 0.5 + oe;
|
|
70
70
|
}
|
|
71
|
-
function M(
|
|
72
|
-
return new Date((
|
|
71
|
+
function M(t) {
|
|
72
|
+
return new Date((t + 0.5 - oe) * se);
|
|
73
73
|
}
|
|
74
|
-
function Le(
|
|
75
|
-
return Oe(
|
|
74
|
+
function Le(t) {
|
|
75
|
+
return Oe(t) - ae;
|
|
76
76
|
}
|
|
77
77
|
var Q = y * 23.4397;
|
|
78
|
-
function Ue(
|
|
79
|
-
return ze(u(e) * T(Q) + T(e) * u(Q) * u(
|
|
78
|
+
function Ue(t, e) {
|
|
79
|
+
return ze(u(e) * T(Q) + T(e) * u(Q) * u(t));
|
|
80
80
|
}
|
|
81
|
-
function Ee(
|
|
82
|
-
return y * (357.5291 + 0.98560028 *
|
|
81
|
+
function Ee(t) {
|
|
82
|
+
return y * (357.5291 + 0.98560028 * t);
|
|
83
83
|
}
|
|
84
|
-
function He(
|
|
85
|
-
return y * (1.9148 * u(
|
|
84
|
+
function He(t) {
|
|
85
|
+
return y * (1.9148 * u(t) + 0.02 * u(2 * t) + 3e-4 * u(3 * t));
|
|
86
86
|
}
|
|
87
|
-
function Ae(
|
|
88
|
-
var
|
|
89
|
-
return
|
|
87
|
+
function Ae(t, e) {
|
|
88
|
+
var i = y * 102.9372;
|
|
89
|
+
return t + e + i + U;
|
|
90
90
|
}
|
|
91
91
|
var S = {};
|
|
92
92
|
S.PolarException = {
|
|
@@ -106,20 +106,20 @@ var N = [
|
|
|
106
106
|
[ 6, "goldenHourEnd", "goldenHour" ]
|
|
107
107
|
*/
|
|
108
108
|
], le = 9e-4;
|
|
109
|
-
function Ie(
|
|
110
|
-
return Math.round(
|
|
109
|
+
function Ie(t, e) {
|
|
110
|
+
return Math.round(t - le - e / (2 * U));
|
|
111
111
|
}
|
|
112
|
-
function X(
|
|
113
|
-
return le + (
|
|
112
|
+
function X(t, e, i) {
|
|
113
|
+
return le + (t + e) / (2 * U) + i;
|
|
114
114
|
}
|
|
115
|
-
function ee(
|
|
116
|
-
return ae +
|
|
115
|
+
function ee(t, e, i) {
|
|
116
|
+
return ae + t + 53e-4 * u(e) - 69e-4 * u(2 * i);
|
|
117
117
|
}
|
|
118
|
-
function Ne(
|
|
119
|
-
return Me((u(
|
|
118
|
+
function Ne(t, e, i) {
|
|
119
|
+
return Me((u(t) - u(e) * u(i)) / (T(e) * T(i)));
|
|
120
120
|
}
|
|
121
|
-
S.getTimes = function(
|
|
122
|
-
var r = y * -
|
|
121
|
+
S.getTimes = function(t, e, i) {
|
|
122
|
+
var r = y * -i, n = y * e, s = Le(t), o = Ie(s, r), a = X(0, r, o), c = Ee(a), d = He(c), l = Ae(c, d), h = Ue(l, 0), g = ee(a, c, l);
|
|
123
123
|
function w(H) {
|
|
124
124
|
var z = Ne(H, n, h), ce = X(z, r, o);
|
|
125
125
|
return ee(ce, c, l);
|
|
@@ -147,31 +147,31 @@ const Je = {
|
|
|
147
147
|
winter: { dayOfMonth: 21, month: 11 }
|
|
148
148
|
// Northern Winter solstice in 2014 - December 21
|
|
149
149
|
}, R = ["spring", "summer", "fall", "winter"];
|
|
150
|
-
function P(
|
|
151
|
-
const r = F(e,
|
|
150
|
+
function P(t, e, i) {
|
|
151
|
+
const r = F(e, i), { dayOfMonth: n, month: s } = Je[r], o = new Date(t.getTime());
|
|
152
152
|
return o.setMonth(s, n), o;
|
|
153
153
|
}
|
|
154
|
-
function Re(
|
|
155
|
-
const
|
|
156
|
-
return F(
|
|
154
|
+
function Re(t, e) {
|
|
155
|
+
const i = Ve(t);
|
|
156
|
+
return F(i, e);
|
|
157
157
|
}
|
|
158
|
-
function Ve(
|
|
159
|
-
const e =
|
|
160
|
-
return e >=
|
|
158
|
+
function Ve(t) {
|
|
159
|
+
const e = t.getTime(), i = P(t, "spring", "northern").getTime(), r = P(t, "summer", "northern").getTime(), n = P(t, "fall", "northern").getTime(), s = P(t, "winter", "northern").getTime();
|
|
160
|
+
return e >= i && e < r ? "spring" : e >= r && e < n ? "summer" : e >= n && e < s ? "fall" : "winter";
|
|
161
161
|
}
|
|
162
|
-
function F(
|
|
163
|
-
return e === "northern" ?
|
|
162
|
+
function F(t, e) {
|
|
163
|
+
return e === "northern" ? t : Fe(t);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
return
|
|
165
|
+
function ie(t) {
|
|
166
|
+
return t >= 0 ? "northern" : "southern";
|
|
167
167
|
}
|
|
168
|
-
function Fe(
|
|
169
|
-
const e = R.indexOf(
|
|
168
|
+
function Fe(t) {
|
|
169
|
+
const e = R.indexOf(t);
|
|
170
170
|
return R[(e + 2) % 4];
|
|
171
171
|
}
|
|
172
172
|
const je = 1440, Be = 864e5;
|
|
173
|
-
function Ge(
|
|
174
|
-
const n = S.getTimes(
|
|
173
|
+
function Ge(t, e, i, r) {
|
|
174
|
+
const n = S.getTimes(t, e, i), s = n.sunrise, o = n.sunset, a = C(t, r), c = C(s, r), d = C(o, r);
|
|
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);
|
|
@@ -182,25 +182,25 @@ function Ge(i, e, t, r) {
|
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
184
|
const Ye = 100, qe = 1e3, v = 12e5, O = 72e5;
|
|
185
|
-
function
|
|
186
|
-
return ne(
|
|
185
|
+
function te(t, e) {
|
|
186
|
+
return ne(t + e, 24);
|
|
187
187
|
}
|
|
188
188
|
function Ze({
|
|
189
|
-
mode:
|
|
189
|
+
mode: t,
|
|
190
190
|
lighting: e,
|
|
191
|
-
getPlaySpeed:
|
|
191
|
+
getPlaySpeed: i,
|
|
192
192
|
onProgress: r,
|
|
193
193
|
beforeProgress: n
|
|
194
194
|
}) {
|
|
195
195
|
let s = -1;
|
|
196
196
|
function o(a = Date.now()) {
|
|
197
197
|
const c = e.date, d = Date.now() - (a ?? 0);
|
|
198
|
-
if (
|
|
198
|
+
if (t === "day") {
|
|
199
199
|
a = Date.now();
|
|
200
|
-
const h =
|
|
200
|
+
const h = i() / Ye * d;
|
|
201
201
|
if (h > 0) {
|
|
202
202
|
let g = new Date(c.getTime() + h);
|
|
203
|
-
const w = e.displayUTCOffset ?? 0, x =
|
|
203
|
+
const w = e.displayUTCOffset ?? 0, x = te(g.getUTCHours(), w), _ = te(c.getUTCHours(), w);
|
|
204
204
|
x < _ && (g = new Date(c.getTime() + h - Be));
|
|
205
205
|
const b = e.clone();
|
|
206
206
|
n?.(), e.date = g, r?.(b, e);
|
|
@@ -217,19 +217,19 @@ function Ze({
|
|
|
217
217
|
return o(), J(() => cancelAnimationFrame(s));
|
|
218
218
|
}
|
|
219
219
|
const L = v / 4;
|
|
220
|
-
function We(
|
|
220
|
+
function We(t, e, i, r) {
|
|
221
221
|
const {
|
|
222
222
|
day: n,
|
|
223
223
|
night: s = n,
|
|
224
224
|
twilight: o = n
|
|
225
225
|
} = r, a = n * L, c = s * L, d = o * L;
|
|
226
|
-
if (
|
|
226
|
+
if (t == null || e == null || Number.isNaN(t.getTime()) && Number.isNaN(e.getTime()))
|
|
227
227
|
return a;
|
|
228
|
-
const l =
|
|
228
|
+
const l = i.getTime(), h = t.getTime(), g = e.getTime(), w = h - O / 2, x = h + O / 2, _ = g - O / 3 * 2, b = g + O / 3;
|
|
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 = _e`.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:hidden;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-plus);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 Ke = _e`.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-plus);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 = {
|
|
233
233
|
day: 1,
|
|
234
234
|
night: 6,
|
|
235
235
|
twilight: 2 / 3
|
|
@@ -238,9 +238,9 @@ class Xe extends fe {
|
|
|
238
238
|
constructor() {
|
|
239
239
|
super(...arguments), this.messages = be({ blocking: !0 }), this.#r = "none", this.#n = null, this.#o = q(), this.#a = q(), this.#d = 200, this.#h = 200, this.#e = {}, this._offset = I((e) => p(this._lighting) ? this._lighting.displayUTCOffset ?? e : e), this._timesliderPosition = I((e) => {
|
|
240
240
|
if (p(this._lighting)) {
|
|
241
|
-
const
|
|
241
|
+
const i = this._lighting.displayUTCOffset ?? 0, r = this._lighting.date;
|
|
242
242
|
if (A(r)) {
|
|
243
|
-
const { minutesSinceMidnight: n } = k(r,
|
|
243
|
+
const { minutesSinceMidnight: n } = k(r, i);
|
|
244
244
|
return n;
|
|
245
245
|
} else
|
|
246
246
|
return e;
|
|
@@ -257,39 +257,39 @@ class Xe extends fe {
|
|
|
257
257
|
get _view() {
|
|
258
258
|
return this.view?.type === "3d" ? this.view : void 0;
|
|
259
259
|
}
|
|
260
|
-
#
|
|
260
|
+
#i;
|
|
261
261
|
#r;
|
|
262
262
|
#n;
|
|
263
|
-
#
|
|
263
|
+
#t;
|
|
264
264
|
#o;
|
|
265
265
|
#a;
|
|
266
266
|
#d;
|
|
267
267
|
#h;
|
|
268
268
|
#l() {
|
|
269
|
-
if (this.#
|
|
269
|
+
if (this.#t)
|
|
270
270
|
return;
|
|
271
271
|
const e = ye(() => {
|
|
272
|
-
if (this.#
|
|
273
|
-
const
|
|
274
|
-
this._lighting.date = o, this._lighting.displayUTCOffset =
|
|
272
|
+
if (this.#t?.remove(), p(this._lighting)) {
|
|
273
|
+
const i = this.utcOffset ?? 0, r = this.timeSliderPosition ?? 0, n = this.localDate, s = r - i * 60, o = C(n, s, "minutes");
|
|
274
|
+
this._lighting.date = o, this._lighting.displayUTCOffset = i;
|
|
275
275
|
}
|
|
276
276
|
}, { timeout: this.#d });
|
|
277
|
-
this.#
|
|
278
|
-
Se(e), this.#
|
|
277
|
+
this.#t = J(() => {
|
|
278
|
+
Se(e), this.#t = void 0;
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
#u({ scale: e, disabled:
|
|
281
|
+
#u({ scale: e, disabled: i }) {
|
|
282
282
|
const { messages: r } = this;
|
|
283
|
-
return m`<calcite-label .scale=${e} class="date-picker-container">${r.date}${
|
|
283
|
+
return m`<calcite-label .scale=${e} class="date-picker-container">${r.date}${ei({ disabled: i, scale: e, date: this.localDateAsString, onDateChange: (n) => {
|
|
284
284
|
const s = n.currentTarget.value, o = Array.isArray(s) ? s[0] : s;
|
|
285
285
|
this._stopPlaying(), this.localDate = o, this._emitUserDateTimeChangeEvent();
|
|
286
|
-
} })}</calcite-label>${D({ hidden: this.hidePlayButtons, children: re({ playing: this.yearPlaying, disabled:
|
|
286
|
+
} })}</calcite-label>${D({ hidden: this.hidePlayButtons, children: re({ playing: this.yearPlaying, disabled: i, label: r.playYear, onClick: () => {
|
|
287
287
|
this._playingState === "year" ? this._playingState = "none" : this._playingState = "year";
|
|
288
288
|
}, scale: e }) })}`;
|
|
289
289
|
}
|
|
290
|
-
#p({ scale: e, disabled:
|
|
290
|
+
#p({ scale: e, disabled: i }) {
|
|
291
291
|
const { messages: r } = this;
|
|
292
|
-
return m`<calcite-label .scale=${e} class="date-picker-container">${r.season}${
|
|
292
|
+
return m`<calcite-label .scale=${e} class="date-picker-container">${r.season}${ii({ scale: e, selectedSeason: this.currentSeason, disabled: i, messages: r, onSeasonChange: (n) => {
|
|
293
293
|
this._stopPlaying(), this.currentSeason = n.currentTarget.value;
|
|
294
294
|
} })}</calcite-label>`;
|
|
295
295
|
}
|
|
@@ -304,7 +304,7 @@ class Xe extends fe {
|
|
|
304
304
|
return this.#r;
|
|
305
305
|
}
|
|
306
306
|
set _playingState(e) {
|
|
307
|
-
this.#r = e, this.#s?.remove(), e === "none" ? this.#
|
|
307
|
+
this.#r = e, this.#s?.remove(), e === "none" ? this.#i?.remove() : (this._play(e), this._emitUserDateTimeChangeEvent());
|
|
308
308
|
}
|
|
309
309
|
get _lighting() {
|
|
310
310
|
return this._view?.environment?.lighting;
|
|
@@ -314,10 +314,10 @@ class Xe extends fe {
|
|
|
314
314
|
}
|
|
315
315
|
set _sunlightingDisabled(e) {
|
|
316
316
|
this.#e.sunlightingDisabled = e;
|
|
317
|
-
const
|
|
318
|
-
if (
|
|
317
|
+
const i = this._view?.environment;
|
|
318
|
+
if (i == null)
|
|
319
319
|
return;
|
|
320
|
-
const r =
|
|
320
|
+
const r = i.lighting, n = this.#n;
|
|
321
321
|
this.#n = r;
|
|
322
322
|
const s = {
|
|
323
323
|
directShadowsEnabled: r.directShadowsEnabled,
|
|
@@ -326,15 +326,15 @@ class Xe extends fe {
|
|
|
326
326
|
p(r) && (s.cameraTrackingEnabled = r.cameraTrackingEnabled);
|
|
327
327
|
const o = e ? "virtual" : "sun";
|
|
328
328
|
let a;
|
|
329
|
-
n?.type === o ? a = n : a = e ? new me() : new pe(), a.set(s),
|
|
329
|
+
n?.type === o ? a = n : a = e ? new me() : new pe(), a.set(s), i.lighting = a, e || (this._stopPlaying(), this.#o.value && (this.#o.value.open = !1));
|
|
330
330
|
}
|
|
331
331
|
get currentSeason() {
|
|
332
|
-
const e = this._view?.camera?.position?.latitude ?? 0,
|
|
333
|
-
return Re(this.localDate,
|
|
332
|
+
const e = this._view?.camera?.position?.latitude ?? 0, i = ie(e);
|
|
333
|
+
return Re(this.localDate, i);
|
|
334
334
|
}
|
|
335
335
|
set currentSeason(e) {
|
|
336
336
|
this._stopPlaying();
|
|
337
|
-
const
|
|
337
|
+
const i = this._view?.camera?.position?.latitude ?? 0, r = ie(i), n = F(e, r);
|
|
338
338
|
this.localDate = P(this.localDate, n, "northern"), this._emitUserDateTimeChangeEvent();
|
|
339
339
|
}
|
|
340
340
|
get dayPlaying() {
|
|
@@ -365,10 +365,10 @@ class Xe extends fe {
|
|
|
365
365
|
return this._localDate.value != null ? new Date(this._localDate.value) : /* @__PURE__ */ new Date();
|
|
366
366
|
}
|
|
367
367
|
set localDate(e) {
|
|
368
|
-
const
|
|
369
|
-
if (A(
|
|
370
|
-
|
|
371
|
-
const r =
|
|
368
|
+
const i = new Date(e);
|
|
369
|
+
if (A(i)) {
|
|
370
|
+
i.setUTCFullYear(i.getFullYear(), i.getMonth(), i.getDate());
|
|
371
|
+
const r = i.toISOString().slice(0, 10);
|
|
372
372
|
this._localDate.mutate(r), this.#l();
|
|
373
373
|
}
|
|
374
374
|
}
|
|
@@ -386,23 +386,23 @@ class Xe extends fe {
|
|
|
386
386
|
B(() => {
|
|
387
387
|
let e = null;
|
|
388
388
|
if (p(this._lighting)) {
|
|
389
|
-
const
|
|
389
|
+
const i = this._lighting.displayUTCOffset ?? 0, r = this._lighting.date;
|
|
390
390
|
if (A(r)) {
|
|
391
|
-
const { minutesSinceMidnight: n } = k(r,
|
|
391
|
+
const { minutesSinceMidnight: n } = k(r, i);
|
|
392
392
|
e = n;
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
return e;
|
|
396
396
|
}, (e) => {
|
|
397
|
-
const
|
|
398
|
-
e != null &&
|
|
397
|
+
const i = this.#g;
|
|
398
|
+
e != null && i !== e && this._emitUserDateTimeChangeEvent();
|
|
399
399
|
}, { sync: !0 }),
|
|
400
400
|
B(() => {
|
|
401
401
|
const e = this._view?.camera?.position;
|
|
402
402
|
return e ? Ce(e) : void 0;
|
|
403
403
|
}, (e) => {
|
|
404
|
-
const
|
|
405
|
-
p(
|
|
404
|
+
const i = this._lighting;
|
|
405
|
+
p(i) && i.cameraTrackingEnabled && (i.displayUTCOffset = e);
|
|
406
406
|
}, { sync: !0, initial: !0 }),
|
|
407
407
|
he(() => !p(this._lighting), () => {
|
|
408
408
|
this._stopPlaying();
|
|
@@ -411,12 +411,12 @@ class Xe extends fe {
|
|
|
411
411
|
this.requestUpdate();
|
|
412
412
|
})
|
|
413
413
|
]), this.manager.onDisconnected(() => {
|
|
414
|
-
this.#
|
|
414
|
+
this.#i?.remove(), this.#t?.remove(), this.#s?.remove();
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
willUpdate(e) {
|
|
418
418
|
if (super.willUpdate(e), !!this.#c && p(this._lighting) && e.has("utcOffset")) {
|
|
419
|
-
const
|
|
419
|
+
const i = this.utcOffset ?? 0, r = this._lighting.displayUTCOffset ?? 0, n = this.timeSliderPosition ?? 0, s = this.localDate, o = n - r * 60, a = C(s, o, "minutes"), { minutesSinceMidnight: c, localDate: d } = k(a, i);
|
|
420
420
|
this._timesliderPosition.mutate(c), this._localDate.mutate(d);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
@@ -429,8 +429,8 @@ class Xe extends fe {
|
|
|
429
429
|
}
|
|
430
430
|
})), await xe(ge(() => this._view?.ready, { signal: e.signal }).then(() => {
|
|
431
431
|
this.utcOffset = this.#e.utcOffset ?? this.utcOffset, this.timeSliderPosition = this.#e.timeSliderPosition ?? this.timeSliderPosition, this.localDate = this.#e.localDate ?? this.localDate, this.#e.directShadowsDisabled != null && (this._directShadowsDisabled = this.#e.directShadowsDisabled), this.#e.sunlightingDisabled != null && (this._sunlightingDisabled = this.#e.sunlightingDisabled), this.#e = {};
|
|
432
|
-
const
|
|
433
|
-
|
|
432
|
+
const i = this._playingState;
|
|
433
|
+
i !== "none" && this.#i == null && this._play(i);
|
|
434
434
|
})), this.#c = !0;
|
|
435
435
|
}
|
|
436
436
|
_emitUserDateTimeChangeEvent() {
|
|
@@ -443,12 +443,12 @@ class Xe extends fe {
|
|
|
443
443
|
#m(e) {
|
|
444
444
|
if (this.#s)
|
|
445
445
|
return;
|
|
446
|
-
const
|
|
446
|
+
const i = setTimeout(() => {
|
|
447
447
|
const r = e.displayUTCOffset ?? 0, n = e.date, { minutesSinceMidnight: s } = k(n, r);
|
|
448
448
|
this._timesliderPosition.mutate(s), this.#s?.remove();
|
|
449
449
|
}, this.#h);
|
|
450
450
|
this.#s = J(() => {
|
|
451
|
-
clearTimeout(
|
|
451
|
+
clearTimeout(i), this.#s = void 0;
|
|
452
452
|
const r = this._lighting;
|
|
453
453
|
if (p(r)) {
|
|
454
454
|
const n = r.displayUTCOffset ?? 0, s = r.date, { minutesSinceMidnight: o } = k(s, n);
|
|
@@ -457,15 +457,15 @@ class Xe extends fe {
|
|
|
457
457
|
});
|
|
458
458
|
}
|
|
459
459
|
_play(e) {
|
|
460
|
-
this.#
|
|
461
|
-
const
|
|
462
|
-
if (
|
|
460
|
+
this.#i?.remove();
|
|
461
|
+
const i = this._view;
|
|
462
|
+
if (i == null || this._sunlightingDisabled)
|
|
463
463
|
return;
|
|
464
|
-
const r =
|
|
464
|
+
const r = i.environment.lighting;
|
|
465
465
|
if (!p(r))
|
|
466
466
|
return;
|
|
467
467
|
let n = 0;
|
|
468
|
-
this.#
|
|
468
|
+
this.#i = Ze({
|
|
469
469
|
mode: e,
|
|
470
470
|
lighting: r,
|
|
471
471
|
beforeProgress: () => {
|
|
@@ -485,7 +485,7 @@ class Xe extends fe {
|
|
|
485
485
|
});
|
|
486
486
|
}
|
|
487
487
|
render() {
|
|
488
|
-
const { messages: e, dateOrSeason:
|
|
488
|
+
const { messages: e, dateOrSeason: i } = this, r = this._sunlightingDisabled, n = "m";
|
|
489
489
|
if (!(this._view?.type === "3d"))
|
|
490
490
|
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>` });
|
|
491
491
|
const o = (this.utcOffset ?? 0) * 60, a = this.view?.ready === !0, c = Array.isArray(this.timeSliderSteps) ? this.timeSliderSteps.at(0) : this.timeSliderSteps;
|
|
@@ -496,29 +496,29 @@ class Xe extends fe {
|
|
|
496
496
|
}, scale: n }) })}${D({ 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) => {
|
|
497
497
|
const l = +d.target.value;
|
|
498
498
|
this.utcOffset = l / 60, this._stopPlaying();
|
|
499
|
-
}} ${Z(this.#o)}></calcite-input-time-zone></calcite-label><span></span>` })}${D({ hidden: this.hideDatePicker, children:
|
|
499
|
+
}} ${Z(this.#o)}></calcite-input-time-zone></calcite-label><span></span>` })}${D({ hidden: this.hideDatePicker, children: i === "date" ? this.#u({ scale: n, disabled: r }) : this.#p({ scale: n, disabled: r }) })}</div>${D({ hidden: this.hideSunLightingToggle, children: ti({ scale: n, messages: e.sunLightingToggle, sunlightingEnabled: !this._sunlightingDisabled, onSunLightingToggle: (d) => {
|
|
500
500
|
this._sunlightingDisabled = !d;
|
|
501
|
-
} }) })}${D({ hidden: this.hideShadowsToggle, children:
|
|
501
|
+
} }) })}${D({ hidden: this.hideShadowsToggle, children: ri({ scale: n, messages: e.shadowsToggle, onShadowCheckboxChange: (d) => {
|
|
502
502
|
this._directShadowsDisabled = !d;
|
|
503
503
|
}, shadowEnabled: !this._directShadowsDisabled }) })}` });
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function re({ disabled:
|
|
507
|
-
return m`<calcite-button appearance=solid .scale=${n} .disabled=${
|
|
506
|
+
function re({ disabled: t, playing: e, onClick: i, label: r, scale: n = "m" }) {
|
|
507
|
+
return m`<calcite-button appearance=solid .scale=${n} .disabled=${t} .iconStart=${e ? "pause-f" : "play-f"} .label=${r} @click=${i} round title=${r ?? V} type=button></calcite-button>`;
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
return m`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${
|
|
509
|
+
function ei({ disabled: t, date: e, onDateChange: i, scale: r }) {
|
|
510
|
+
return m`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${t} overlay-positioning=fixed placement=bottom .value=${e} .scale=${r} @calciteInputDatePickerChange=${i}></calcite-input-date-picker>`;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
513
|
-
return m`<calcite-select .disabled=${e} .label=${
|
|
512
|
+
function ii({ messages: t, disabled: e, scale: i, selectedSeason: r, onSeasonChange: n }) {
|
|
513
|
+
return m`<calcite-select .disabled=${e} .label=${t.season} .scale=${i} .value=${r} @calciteSelectChange=${(s) => {
|
|
514
514
|
n(s);
|
|
515
|
-
}}>${R.map((s) => m`<calcite-option .selected=${r === s} .value=${s}>${
|
|
515
|
+
}}>${R.map((s) => m`<calcite-option .selected=${r === s} .value=${s}>${t[s]}</calcite-option>`)}</calcite-select>`;
|
|
516
516
|
}
|
|
517
|
-
function
|
|
518
|
-
return m`<calcite-label layout=inline .scale=${r} title=${
|
|
517
|
+
function ti({ messages: t, sunlightingEnabled: e, onSunLightingToggle: i, scale: r }) {
|
|
518
|
+
return m`<calcite-label layout=inline .scale=${r} title=${t?.tooltip ?? V}><calcite-checkbox .scale=${r} .checked=${e} @calciteCheckboxChange=${(n) => i(n.target.checked)}></calcite-checkbox>${t?.label}</calcite-label>`;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
521
|
-
return m`<calcite-label layout=inline .scale=${r} title=${
|
|
520
|
+
function ri({ messages: t, shadowEnabled: e, onShadowCheckboxChange: i, scale: r }) {
|
|
521
|
+
return m`<calcite-label layout=inline .scale=${r} title=${t?.tooltip ?? V}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${(n) => i(n.target.checked)}></calcite-checkbox>${t.label}</calcite-label>`;
|
|
522
522
|
}
|
|
523
523
|
de("arcgis-daylight", Xe);
|
|
524
524
|
export {
|