@arcgis/map-components 6.0.0-next.20 → 6.0.0-next.21
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/{VQDXE456.js → 22RLIDCP.js} +1 -1
- package/dist/cdn/{CD2XIXN5.js → 27TSPXYV.js} +1 -1
- package/dist/cdn/{THIUS6HZ.js → 2GPVEWYM.js} +1 -1
- package/dist/cdn/{UHP6ZS6H.js → 2IBL2HKQ.js} +1 -1
- package/dist/cdn/{VYM3TR3Q.js → 2NM6UWC4.js} +1 -1
- package/dist/cdn/{CYUO2UNT.js → 2PLAZVGP.js} +1 -1
- package/dist/cdn/{M6COQWFB.js → 2RQGZLOJ.js} +1 -1
- package/dist/cdn/{AD2IA3IS.js → 2SQGIY7T.js} +1 -1
- package/dist/cdn/{R2KMEDRH.js → 2UAH624K.js} +1 -1
- package/dist/cdn/{C2YP473B.js → 2WJ53TNR.js} +1 -1
- package/dist/cdn/{IEZGQ2LC.js → 2YXWKKNB.js} +1 -1
- package/dist/cdn/{VTER7AQ2.js → 32526XJ7.js} +1 -1
- package/dist/cdn/{WQF3SS53.js → 34XDXFK6.js} +1 -1
- package/dist/cdn/3B4VHD67.js +2 -0
- package/dist/cdn/{LKMQHTBY.js → 3EXEL7AM.js} +1 -1
- package/dist/cdn/{MGQA3G43.js → 3GN3DAON.js} +1 -1
- package/dist/cdn/{AI3ETXGZ.js → 3MWXYWKR.js} +1 -1
- package/dist/cdn/{J7VECW7F.js → 3SXQLU4S.js} +1 -1
- package/dist/cdn/{WD4TPDI6.js → 3W7KESW7.js} +1 -1
- package/dist/cdn/{Y3S6WJN2.js → 43IGD6V3.js} +1 -1
- package/dist/cdn/{UKB45JOM.js → 4DPAOAMZ.js} +1 -1
- package/dist/cdn/{YAVRBZ5C.js → 4FFEPX2D.js} +1 -1
- package/dist/cdn/{IZKG2DP3.js → 4H2REMNG.js} +1 -1
- package/dist/cdn/{VHYR3UPY.js → 4I6F64B2.js} +1 -1
- package/dist/cdn/{DUKK2PHD.js → 4IG6WUCI.js} +1 -1
- package/dist/cdn/4LNXCEM5.js +2 -0
- package/dist/cdn/4LO7PNX7.js +2 -0
- package/dist/cdn/{ALZFPS2D.js → 4P4NKBQC.js} +1 -1
- package/dist/cdn/{SQI6CU3W.js → 4PDZTEB2.js} +1 -1
- package/dist/cdn/{LPXSF4M6.js → 4WZZZTT5.js} +1 -1
- package/dist/cdn/{XSEDC76K.js → 55VX76T5.js} +1 -1
- package/dist/cdn/{UBCDF55B.js → 57LPG3BE.js} +1 -1
- package/dist/cdn/{6BMZP72L.js → 5A7LDBDR.js} +1 -1
- package/dist/cdn/{6NCZTAOF.js → 5DN4ONEW.js} +1 -1
- package/dist/cdn/{YMAEN7NR.js → 5FBHHKRV.js} +1 -1
- package/dist/cdn/{DYUFBVXE.js → 5GFPOTOB.js} +1 -1
- package/dist/cdn/{LL3DXDKE.js → 5V6BNJ5O.js} +1 -1
- package/dist/cdn/{QABRDQFJ.js → 5V6K43GW.js} +1 -1
- package/dist/cdn/{GD4XR5XA.js → 5XZKVLHC.js} +1 -1
- package/dist/cdn/{F2EOAAKS.js → 62OAO327.js} +1 -1
- package/dist/cdn/{3YQDH3QT.js → 6DRXFSTW.js} +1 -1
- package/dist/cdn/{YFYFQWXG.js → 6G5QADEG.js} +1 -1
- package/dist/cdn/{4IJC4V6Z.js → 6HDYZ7WW.js} +1 -1
- package/dist/cdn/6KYZMT4A.js +2 -0
- package/dist/cdn/{XNHTHY3W.js → 6QWLMG5M.js} +1 -1
- package/dist/cdn/{NEQJAZLZ.js → 6WFVZM5S.js} +1 -1
- package/dist/cdn/{HJZRNUBU.js → 6Y7Q7GRB.js} +1 -1
- package/dist/cdn/{D7T33U5Z.js → 74PUSJU5.js} +1 -1
- package/dist/cdn/{H7QBBTTP.js → 7EIN5VCY.js} +1 -1
- package/dist/cdn/{KQZYGYQO.js → 7EKBNXGL.js} +1 -1
- package/dist/cdn/7ILT5PDJ.js +2 -0
- package/dist/cdn/{IU7BOICX.js → 7JK4JGPG.js} +1 -1
- package/dist/cdn/{KRJCOTGC.js → 7JPHMESH.js} +1 -1
- package/dist/cdn/{XCHCC6HT.js → 7LO6ACC7.js} +1 -1
- package/dist/cdn/{P7XX5RSZ.js → 7V7LQ35Q.js} +1 -1
- package/dist/cdn/{27HLXBPP.js → 7Y4SF2NT.js} +1 -1
- package/dist/cdn/{XFPFS6PS.js → 7Y6PADB5.js} +1 -1
- package/dist/cdn/{CYXNSUYF.js → 7ZWBGSCM.js} +1 -1
- package/dist/cdn/{OLEUR4YB.js → A5IFDSOU.js} +1 -1
- package/dist/cdn/{5FA37EZ6.js → AHWBCZBO.js} +1 -1
- package/dist/cdn/{4EGKJPJ2.js → AKGUTL2V.js} +1 -1
- package/dist/cdn/AMRGLUBB.js +2 -0
- package/dist/cdn/{RQ2MM3DQ.js → AOGDXJ2J.js} +1 -1
- package/dist/cdn/ARN5ZKLI.js +2 -0
- package/dist/cdn/{KLY36SOM.js → AUP633OS.js} +1 -1
- package/dist/cdn/{JCCTYIZ2.js → B2TICPHR.js} +1 -1
- package/dist/cdn/{CI6VWQ63.js → BDZHLGVT.js} +1 -1
- package/dist/cdn/{H6SIAY6D.js → BFYJTV6Q.js} +1 -1
- package/dist/cdn/{7NB627L5.js → BJ35LPCU.js} +1 -1
- package/dist/cdn/{66RQ6K6J.js → BJI5DVB5.js} +1 -1
- package/dist/cdn/{5Y45LLBY.js → BJJZGYBG.js} +1 -1
- package/dist/cdn/{EPNWPJZ6.js → BLYXYNGB.js} +1 -1
- package/dist/cdn/{F4AJCUZ6.js → BOPNSNUT.js} +1 -1
- package/dist/cdn/{LMI7MLKS.js → BUH3AQ7E.js} +1 -1
- package/dist/cdn/{Y7ILKQZU.js → BVRQWRKX.js} +1 -1
- package/dist/cdn/{JSHCS4Y6.js → C6K7TZ27.js} +1 -1
- package/dist/cdn/{2ZNQABOI.js → CLICUS2A.js} +1 -1
- package/dist/cdn/{2JOUXCA5.js → COSETVX4.js} +1 -1
- package/dist/cdn/{EBQ537XN.js → CWCVAPXD.js} +1 -1
- package/dist/cdn/{YCQWS3JT.js → CXXBV6RJ.js} +1 -1
- package/dist/cdn/{YR4YEJ2N.js → DCO26B7J.js} +1 -1
- package/dist/cdn/{KV5K3ATE.js → DDGUDJJZ.js} +1 -1
- package/dist/cdn/{ASHCHM4V.js → DEW5IWND.js} +1 -1
- package/dist/cdn/{OBQUHPHJ.js → DFNH6YRR.js} +1 -1
- package/dist/cdn/{DE4OSJG5.js → DFTYQJWJ.js} +1 -1
- package/dist/cdn/{ZOLOOVHX.js → DFZ22GLY.js} +1 -1
- package/dist/cdn/{R3VD3PEO.js → DGSTI5DI.js} +1 -1
- package/dist/cdn/{5JRZJANG.js → DS6EUOYE.js} +1 -1
- package/dist/cdn/{ZDLHDQCX.js → DWPXOIRF.js} +1 -1
- package/dist/cdn/{2T3ALADJ.js → DZIJPJS3.js} +1 -1
- package/dist/cdn/{6DDIOOI6.js → E6ZXXC74.js} +1 -1
- package/dist/cdn/{RTZG4WTI.js → EB4V6SPF.js} +1 -1
- package/dist/cdn/{EXSZCSCL.js → ECUVJOIW.js} +1 -1
- package/dist/cdn/{M6CSJLXC.js → ED2T4ASN.js} +1 -1
- package/dist/cdn/{LB52TH7O.js → EP27GLNL.js} +1 -1
- package/dist/cdn/{BE5M3N7T.js → EXB4CY2Y.js} +1 -1
- package/dist/cdn/{QMH2OBF6.js → EZHYSI6R.js} +1 -1
- package/dist/cdn/{RUMWDBIU.js → F2DTKJTK.js} +1 -1
- package/dist/cdn/{NU75HQA2.js → F74YQZ2X.js} +1 -1
- package/dist/cdn/{DIXSGC2P.js → FDESUDJ5.js} +1 -1
- package/dist/cdn/{BWM4ZVN7.js → FGU7NUST.js} +1 -1
- package/dist/cdn/{KQDXSX5Y.js → FH6Q5A5L.js} +1 -1
- package/dist/cdn/{Z24QDG3E.js → FMLDKHWP.js} +2 -2
- package/dist/cdn/{7EIWYGE2.js → FOKE5ILO.js} +1 -1
- package/dist/cdn/{WALR7J3I.js → FQ3ZJA4Q.js} +1 -1
- package/dist/cdn/{QYOTQQAL.js → FZGMIIBX.js} +1 -1
- package/dist/cdn/{DQSP4RFL.js → G2ACNJGG.js} +1 -1
- package/dist/cdn/{6S6CZJKN.js → G2PLGAUY.js} +1 -1
- package/dist/cdn/{X5WMEO4X.js → G56N6RF4.js} +1 -1
- package/dist/cdn/{CESPPRYQ.js → GEOME3IC.js} +1 -1
- package/dist/cdn/{WV2GLDRQ.js → GFC6LS4L.js} +1 -1
- package/dist/cdn/{WNRWNZGL.js → GKNGEZCO.js} +1 -1
- package/dist/cdn/{SW6UOJIE.js → GPYZM5CC.js} +1 -1
- package/dist/cdn/{U7FYQAUZ.js → GQQTIX2X.js} +1 -1
- package/dist/cdn/{KM7PWRG2.js → H4BTVLCG.js} +1 -1
- package/dist/cdn/{M76PF7SP.js → HLOH2QPV.js} +1 -1
- package/dist/cdn/{C6XAWMZK.js → I52P5EXK.js} +1 -1
- package/dist/cdn/{TTGQ4Y7X.js → IFLDLAK4.js} +1 -1
- package/dist/cdn/{XYEUSNMJ.js → IN7TMVRK.js} +1 -1
- package/dist/cdn/{IAIVTB2Q.js → IOUO7KBT.js} +1 -1
- package/dist/cdn/{LXLZB2JC.js → IZFEOYED.js} +1 -1
- package/dist/cdn/{L4HKKYNC.js → JBD7Q5YD.js} +1 -1
- package/dist/cdn/{GWXQ6CHV.js → JN6RVFAM.js} +1 -1
- package/dist/cdn/{RYQW6GPV.js → JUOOKKZJ.js} +1 -1
- package/dist/cdn/{NY7PPWFQ.js → JUYPQUPQ.js} +1 -1
- package/dist/cdn/{35EYUDTJ.js → KAG4QZ7K.js} +1 -1
- package/dist/cdn/{OFBCNFBW.js → KE2ER3F7.js} +1 -1
- package/dist/cdn/{AA4RF7H6.js → KIHYSYOL.js} +1 -1
- package/dist/cdn/{IQ4ADF3I.js → KIWV2RIN.js} +1 -1
- package/dist/cdn/{3ZFHZPWM.js → KXD4VEKE.js} +1 -1
- package/dist/cdn/{SDMJGSR7.js → L4WLEN3C.js} +1 -1
- package/dist/cdn/{STOPSNWH.js → L5XC4FXT.js} +1 -1
- package/dist/cdn/{AXJE2SZV.js → L6FLCEH6.js} +1 -1
- package/dist/cdn/{BRGIHQI3.js → LILX2DJE.js} +1 -1
- package/dist/cdn/{ZN52ACGS.js → LKGURYDH.js} +1 -1
- package/dist/cdn/{CEW6QJGT.js → LRH4FKHU.js} +1 -1
- package/dist/cdn/{BNZFCSS2.js → LSLTIN2Q.js} +1 -1
- package/dist/cdn/{BK2UM27Y.js → LTFGTX7S.js} +1 -1
- package/dist/cdn/{T2UN4CJT.js → LUW2PXWZ.js} +1 -1
- package/dist/cdn/{QFWFBHIF.js → LWVYNWD5.js} +1 -1
- package/dist/cdn/{NIMNZJJZ.js → LXHZGIW5.js} +1 -1
- package/dist/cdn/{TJC7VHRZ.js → LXJURAXP.js} +1 -1
- package/dist/cdn/{3XEUTP6J.js → M37TWKYP.js} +1 -1
- package/dist/cdn/{SMRY445Z.js → M3CIFZFR.js} +1 -1
- package/dist/cdn/{5P7WPXOY.js → M5OK7RKI.js} +1 -1
- package/dist/cdn/{RLYKTTAI.js → M7MRLBZA.js} +1 -1
- package/dist/cdn/{QYYYQIAI.js → MA2DWIGR.js} +1 -1
- package/dist/cdn/{6XODSQWR.js → MBLS5ES4.js} +1 -1
- package/dist/cdn/{EVQL7FMR.js → MDS3NVWM.js} +1 -1
- package/dist/cdn/{K7OB5AHB.js → MGH6EHT7.js} +1 -1
- package/dist/cdn/{OT43XHBV.js → MNL7ONFB.js} +1 -1
- package/dist/cdn/{FNJBBQT5.js → N4D5I6Y4.js} +1 -1
- package/dist/cdn/{5RCFYMHK.js → NHMHVWNB.js} +1 -1
- package/dist/cdn/{XDQ6UHVN.js → NKFAPBY3.js} +1 -1
- package/dist/cdn/{LDC5FSWA.js → NQ3COROI.js} +1 -1
- package/dist/cdn/{454VHWQQ.js → NTHSQXKG.js} +1 -1
- package/dist/cdn/{5VXEMMLV.js → NTT5IV4A.js} +1 -1
- package/dist/cdn/{7QA26M4F.js → NZQLQGTQ.js} +1 -1
- package/dist/cdn/{UJLIKFS6.js → O46PVNMT.js} +1 -1
- package/dist/cdn/{AWB7XOHF.js → O5HQ5YZK.js} +1 -1
- package/dist/cdn/{FFVPO4JB.js → OJJSIN3V.js} +1 -1
- package/dist/cdn/{U7WRQCRV.js → OLY5EME5.js} +1 -1
- package/dist/cdn/{D6GJRZJV.js → ONYCZO7Y.js} +1 -1
- package/dist/cdn/{TIUFHDP2.js → OQ6SYZBT.js} +1 -1
- package/dist/cdn/{4EHW2LXW.js → ORVSAF3Z.js} +1 -1
- package/dist/cdn/{AVLV4PPI.js → OZF64H7N.js} +1 -1
- package/dist/cdn/P3565WG3.js +2 -0
- package/dist/cdn/{5EBCPTE5.js → P65FMRMP.js} +1 -1
- package/dist/cdn/{AB74IWXX.js → PCXDOSKQ.js} +1 -1
- package/dist/cdn/{B7D5ZTB2.js → PFSIUSDJ.js} +1 -1
- package/dist/cdn/{I3FQUA77.js → PHVKEWZ7.js} +1 -1
- package/dist/cdn/{XX6G24PV.js → PKYYNRBS.js} +1 -1
- package/dist/cdn/{7IGSTLKW.js → PQ7NUE5C.js} +2 -2
- package/dist/cdn/{M2HYKS62.js → PRUHLC54.js} +1 -1
- package/dist/cdn/{RSNXBYXL.js → PXDX3LCI.js} +1 -1
- package/dist/cdn/PYBUTNHM.js +2 -0
- package/dist/cdn/Q6RSVQNE.js +2 -0
- package/dist/cdn/{GIBXI44G.js → Q7GF26CL.js} +1 -1
- package/dist/cdn/{QPHKPPYM.js → QAOT2TJ6.js} +1 -1
- package/dist/cdn/{MRCZ6R25.js → QET5SVDO.js} +1 -1
- package/dist/cdn/QKGJVGXJ.js +2 -0
- package/dist/cdn/{KIFEVB5D.js → QUPDTNAC.js} +1 -1
- package/dist/cdn/{OISNNHIG.js → QVJ2FUNW.js} +1 -1
- package/dist/cdn/{NR2RFSZB.js → QZVF23GH.js} +1 -1
- package/dist/cdn/{XOOSPWUF.js → RBRDUDEY.js} +1 -1
- package/dist/cdn/{7465ANAR.js → REB4CHAK.js} +1 -1
- package/dist/cdn/{F2QSG3HU.js → RINX3CTL.js} +1 -1
- package/dist/cdn/{YNMIPIKK.js → S4L4V6FJ.js} +1 -1
- package/dist/cdn/{4JL3FLRV.js → SAQ5BNZJ.js} +1 -1
- package/dist/cdn/{R5DBF7SZ.js → SDLZ4BNM.js} +1 -1
- package/dist/cdn/{SBYVR52H.js → SI2DEXWH.js} +1 -1
- package/dist/cdn/{UQLRFL2S.js → SIT5NBLS.js} +1 -1
- package/dist/cdn/{GCTF7CS7.js → SJGQALDG.js} +1 -1
- package/dist/cdn/{XYQWC4QA.js → SJGWHUCR.js} +1 -1
- package/dist/cdn/{QE7SN2DZ.js → SKAZPI3A.js} +1 -1
- package/dist/cdn/{ZNAOFUAU.js → SU2SAOBL.js} +1 -1
- package/dist/cdn/{CBAI4VLY.js → SXW4GFL3.js} +1 -1
- package/dist/cdn/{IU5QHF6T.js → T3MDSQ3T.js} +1 -1
- package/dist/cdn/T4Z2B3T7.js +2 -0
- package/dist/cdn/{WTRZ6OZV.js → TDYIVFVF.js} +1 -1
- package/dist/cdn/{YECZWYQZ.js → TKD5T5DW.js} +1 -1
- package/dist/cdn/{RQT2PVDJ.js → U77WHUC6.js} +1 -1
- package/dist/cdn/{PVAKLYII.js → UE6EBLH3.js} +1 -1
- package/dist/cdn/{UJYW2LBF.js → UFDB6U6V.js} +1 -1
- package/dist/cdn/{2CV4EHYO.js → UFK7DHVC.js} +1 -1
- package/dist/cdn/{SQXGDXHV.js → UHDJ2SI5.js} +1 -1
- package/dist/cdn/{3POODM7N.js → UI4IEVSV.js} +1 -1
- package/dist/cdn/{QCYQNVPL.js → UKIVMO7H.js} +1 -1
- package/dist/cdn/{YSE67FR2.js → UPCWZNTA.js} +1 -1
- package/dist/cdn/{RVJKTOGT.js → UR3Z5YHW.js} +1 -1
- package/dist/cdn/{DAZLYCHV.js → UVAUYBWF.js} +1 -1
- package/dist/cdn/{VIMOA3H7.js → UVPQKV5P.js} +1 -1
- package/dist/cdn/{3ND2HQVC.js → UYAOMCP7.js} +1 -1
- package/dist/cdn/UYDXI4AK.js +4 -0
- package/dist/cdn/{T2ONRGQX.js → V4AT7ENI.js} +1 -1
- package/dist/cdn/{5UF6YKFN.js → V4JCZIP5.js} +1 -1
- package/dist/cdn/{H22SGLVH.js → V7DMA5ZO.js} +1 -1
- package/dist/cdn/{AFYLXNX3.js → VEV3AAVP.js} +1 -1
- package/dist/cdn/{6IF5KBOJ.js → VHZM25YV.js} +1 -1
- package/dist/cdn/{5T4TPTPA.js → VKO3CVBS.js} +1 -1
- package/dist/cdn/{FUJYJKDU.js → VLHURRRU.js} +1 -1
- package/dist/cdn/{HKB7SRFI.js → VM5QVCMC.js} +1 -1
- package/dist/cdn/{JVC5XNYJ.js → VPDDFGYQ.js} +1 -1
- package/dist/cdn/{3TGVVG6M.js → VWUH2VUY.js} +1 -1
- package/dist/cdn/{3VB6M2GX.js → VWW5GBIK.js} +1 -1
- package/dist/cdn/{3SZ3FE66.js → W4GNRGIN.js} +1 -1
- package/dist/cdn/{ERULVBEV.js → WG5PHRPT.js} +1 -1
- package/dist/cdn/{KWPVYPJ5.js → WKI4XW7G.js} +1 -1
- package/dist/cdn/WTAAQHO3.js +2 -0
- package/dist/cdn/{BKSKZ6W6.js → WUWF6ZDM.js} +1 -1
- package/dist/cdn/{CYH72IDQ.js → WVKMYNN7.js} +1 -1
- package/dist/cdn/{64TOY3PA.js → WW7YOPDY.js} +1 -1
- package/dist/cdn/{TTDOASDI.js → XLB473BN.js} +1 -1
- package/dist/cdn/XLZB6JMZ.js +2 -0
- package/dist/cdn/{CUFP5Q3Z.js → XO7X6L4B.js} +1 -1
- package/dist/cdn/{JPFLHUNR.js → XPBFBRSY.js} +1 -1
- package/dist/cdn/{MWFZNICV.js → XTCYIS4Z.js} +1 -1
- package/dist/cdn/{BT755NSP.js → XYAJT7LP.js} +1 -1
- package/dist/cdn/{NHGQ7T4H.js → Y3E2FJPQ.js} +1 -1
- package/dist/cdn/Y4C7JJCJ.js +2 -0
- package/dist/cdn/{VLGRGILZ.js → Y6NC7ML3.js} +1 -1
- package/dist/cdn/{4NW2V4RQ.js → Y7IM3OFU.js} +1 -1
- package/dist/cdn/{FTFHL3EA.js → Y7XSHXVA.js} +1 -1
- package/dist/cdn/YAWLVMV6.js +2 -0
- package/dist/cdn/{SNGKRGPF.js → YBJ6ZAPO.js} +1 -1
- package/dist/cdn/{ZMXN6PZS.js → YBSEIOQX.js} +1 -1
- package/dist/cdn/{2C4EHM32.js → YBXCTOS7.js} +1 -1
- package/dist/cdn/{BPNUA7MC.js → YC7VLNKI.js} +1 -1
- package/dist/cdn/{FUSAMFLS.js → YDILFOHE.js} +1 -1
- package/dist/cdn/{7CHCF6IX.js → YEKQVWF5.js} +1 -1
- package/dist/cdn/{H6KJMGY6.js → YJROHURO.js} +1 -1
- package/dist/cdn/{LOF4XAJZ.js → YYCTSS52.js} +1 -1
- package/dist/cdn/{CG7BTPM3.js → Z42MH42I.js} +1 -1
- package/dist/cdn/{ID3UU7QE.js → Z6NHKWWS.js} +1 -1
- package/dist/cdn/{4XEZYOW7.js → ZC5YVHZ3.js} +1 -1
- package/dist/cdn/{SNEMD7IN.js → ZE4UHSTB.js} +1 -1
- package/dist/cdn/{HS2TQPAG.js → ZH3MW6H3.js} +1 -1
- package/dist/cdn/{BSTT6ICQ.js → ZJPYW3TN.js} +1 -1
- package/dist/cdn/{L726CUBZ.js → ZKKZQVJT.js} +1 -1
- package/dist/cdn/{4IQJMQQZ.js → ZNV3M5P2.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +14 -20
- package/dist/components/arcgis-features-next/customElement.d.ts +2 -2
- package/dist/components/arcgis-features-next/customElement.js +27 -20
- package/dist/components/arcgis-floor-filter/customElement.d.ts +3 -0
- package/dist/components/arcgis-floor-filter/customElement.js +3 -3
- package/dist/components/arcgis-floor-filter/interfaces.d.ts +72 -0
- package/dist/components/arcgis-sketch/customElement.js +394 -204
- package/dist/components/arcgis-sketch/toolbar-sizing-controller.d.ts +96 -0
- package/dist/components/arcgis-time-bar-slider/customElement.d.ts +8 -0
- package/dist/components/arcgis-time-bar-slider/customElement.js +35 -35
- 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/index.d.ts +6 -0
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +3 -1
- package/dist/types/preact.d.ts +3 -1
- package/dist/types/react.d.ts +3 -1
- package/dist/types/stencil.d.ts +3 -1
- package/package.json +7 -7
- package/dist/cdn/3SX4JMXA.js +0 -2
- package/dist/cdn/4CLSMFD2.js +0 -2
- package/dist/cdn/7FA44B44.js +0 -2
- package/dist/cdn/ATLQSGEK.js +0 -2
- package/dist/cdn/ELAKAKPE.js +0 -2
- package/dist/cdn/EVJFKABL.js +0 -4
- package/dist/cdn/EWM5PERI.js +0 -2
- package/dist/cdn/GBJY4A36.js +0 -2
- package/dist/cdn/HWRPCOVE.js +0 -2
- package/dist/cdn/M4M3QTI4.js +0 -2
- package/dist/cdn/O7ZXS622.js +0 -2
- package/dist/cdn/SIXKHDVJ.js +0 -2
- package/dist/cdn/TFXSKVB7.js +0 -2
- package/dist/cdn/TWPVYHJG.js +0 -2
- package/dist/cdn/VBSWB2VR.js +0 -2
- package/dist/cdn/W472ZYUY.js +0 -2
- package/dist/cdn/ZIQRARXE.js +0 -2
- /package/dist/cdn/{PBXO27K2.js → 2P5AJORF.js} +0 -0
- /package/dist/cdn/{GGUWUNUA.js → 4LWSF6AI.js} +0 -0
- /package/dist/cdn/{VCJ6M3PX.js → 5GGAWGSN.js} +0 -0
- /package/dist/cdn/{FIYZBOAN.js → 5GTPIPN7.js} +0 -0
- /package/dist/cdn/{BP7H6IBX.js → 62HMPABL.js} +0 -0
- /package/dist/cdn/{KZUUBMYO.js → 6SL7YNKF.js} +0 -0
- /package/dist/cdn/{7SDUVBEL.js → 7YT5W57B.js} +0 -0
- /package/dist/cdn/{X5RVRRKO.js → AKTIOEYM.js} +0 -0
- /package/dist/cdn/{LFSVKJXI.js → AYQJ2LTV.js} +0 -0
- /package/dist/cdn/{S5MD2X3H.js → CHMBPPHS.js} +0 -0
- /package/dist/cdn/{Z66I2FAE.js → DLUFAV4S.js} +0 -0
- /package/dist/cdn/{VWHNYGBM.js → DPEWQQEB.js} +0 -0
- /package/dist/cdn/{PSD74QRS.js → ECA47Z37.js} +0 -0
- /package/dist/cdn/{ZUYPKJYL.js → FJMXBIN5.js} +0 -0
- /package/dist/cdn/{DRD2FAEC.js → G4IKO2R6.js} +0 -0
- /package/dist/cdn/{GE4QV5JC.js → GCPR7XFU.js} +0 -0
- /package/dist/cdn/{DQDUD556.js → IAYL44LK.js} +0 -0
- /package/dist/cdn/{CEVISDMV.js → IRFIHD5X.js} +0 -0
- /package/dist/cdn/{DQRQZK5Y.js → KOMTNQPT.js} +0 -0
- /package/dist/cdn/{MPIIQAQO.js → LS4U4GD5.js} +0 -0
- /package/dist/cdn/{6LUCQLB7.js → LVIYMA67.js} +0 -0
- /package/dist/cdn/{WQIIAMYV.js → MEISDI2H.js} +0 -0
- /package/dist/cdn/{V3HQQ6TJ.js → N2YWWQOS.js} +0 -0
- /package/dist/cdn/{ENHMLZOY.js → NVKOZL7X.js} +0 -0
- /package/dist/cdn/{SIIF27TS.js → NVN2CATF.js} +0 -0
- /package/dist/cdn/{JAH2AKJ5.js → OFBWNR54.js} +0 -0
- /package/dist/cdn/{AKAOYYJ7.js → OLSESBZ7.js} +0 -0
- /package/dist/cdn/{SFMD5PPC.js → PWZHB6VD.js} +0 -0
- /package/dist/cdn/{UN65FKRA.js → QWMDZDQA.js} +0 -0
- /package/dist/cdn/{23L5GSFN.js → RTDY3HLR.js} +0 -0
- /package/dist/cdn/{MGE3J5KE.js → SFDCS6A2.js} +0 -0
- /package/dist/cdn/{ONSMVZAM.js → SLNXNVPI.js} +0 -0
- /package/dist/cdn/{DWQQDLIU.js → SLQPDAGN.js} +0 -0
- /package/dist/cdn/{EGD2CSA7.js → T34W3GKP.js} +0 -0
- /package/dist/cdn/{PST64E7E.js → TP2KQRW6.js} +0 -0
- /package/dist/cdn/{33LESQ6T.js → UDXDE3LW.js} +0 -0
- /package/dist/cdn/{ZQL4CTJK.js → XCSF7KJK.js} +0 -0
- /package/dist/cdn/{V7OBQRSG.js → XGWYQ7FU.js} +0 -0
- /package/dist/cdn/{P3ZJLVKC.js → XQ2WXTW7.js} +0 -0
- /package/dist/cdn/{TT57O767.js → ZCL4XHIZ.js} +0 -0
- /package/dist/cdn/{T5XVILYA.js → ZHYXFOYU.js} +0 -0
- /package/dist/cdn/{ZO5WNVFD.js → ZNIMZP5R.js} +0 -0
- /package/dist/cdn/{ITRBNYSS.js → ZSKO7HLH.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import f from"./3VB6M2GX.js";import{c as et}from"./Y6WTYXVP.js";import{a as K,b as Q,k as tt}from"./IM6IDWYR.js";import e from"./F4AJCUZ6.js";import"./WJQUE4DR.js";import d from"./OISNNHIG.js";import{a as G}from"./7465ANAR.js";import c from"./KRJCOTGC.js";import b from"./U7WRQCRV.js";import{f as L,h as H}from"./GIBXI44G.js";import"./RQT2PVDJ.js";import a from"./SBYVR52H.js";import"./LXME6MU5.js";import{P as q,Q as M,R as B,_ as V,a as I,b as p,f as y,p as W,x as j}from"./7IGSTLKW.js";import"./TAVTDQ6S.js";export default $arcgis.t(([pt,f,dt,vt,{convertDateFormatToIntlOptions:E},gt,{getTimeSliderSettingsFromWebDocument:ft},{property:l,subclass:yt},{watch:g,whenOnce:lt},,,,J,{c:U,e:X,h:Y},{a:it,b:st,c:D,d:k,e:at,f:nt,g:ot,h:P,i:rt}])=>{var ct=new WeakMap,mt=new WeakMap;function wt(t){let{locale:e,formatOptions:a}=t,o=_t(a),c=new Intl.DateTimeFormat(e,o);return ct.set(t,c),c}function xt(t){let{locale:e,formatOptions:a}=t,o=new Intl.NumberFormat(e,a);return mt.set(t,o),o}function bt(t){return ct.get(t)??wt(t)}function Et(t){return mt.get(t)??xt(t)}function _t(t){return t.timeZone?{...t,timeZone:tt(t.timeZone)}:t}var i=(t,e)=>({tick:t,tickFormat:e}),s={sf:{second:"numeric",fractionalSecondDigits:3},s:{second:"numeric"},ms:{minute:"numeric",second:"numeric"},mi:{minute:"numeric"},hm:{hour:"numeric",minute:"numeric"},dm:{day:"numeric",month:"short"},m:{month:"short"},my:{month:"short",year:"numeric"},y:{year:"numeric"}},Tt=[i({value:10,unit:"milliseconds"},s.sf),i({value:20,unit:"milliseconds"},s.sf),i({value:50,unit:"milliseconds"},s.sf),i({value:100,unit:"milliseconds"},s.sf),i({value:200,unit:"milliseconds"},s.sf),i({value:500,unit:"milliseconds"},s.sf),i({value:1,unit:"seconds"},s.s),i({value:2,unit:"seconds"},s.s),i({value:5,unit:"seconds"},s.s),i({value:10,unit:"seconds"},s.s),i({value:20,unit:"seconds"},s.ms),i({value:30,unit:"seconds"},s.ms),i({value:1,unit:"minutes"},s.mi),i({value:2,unit:"minutes"},s.mi),i({value:5,unit:"minutes"},s.mi),i({value:10,unit:"minutes"},s.mi),i({value:30,unit:"minutes"},s.hm),i({value:1,unit:"hours"},s.hm),i({value:2,unit:"hours"},s.hm),i({value:4,unit:"hours"},s.hm),i({value:8,unit:"hours"},s.hm),i({value:1,unit:"days"},s.dm),i({value:1,unit:"days"},s.dm),i({value:2,unit:"days"},s.dm),i({value:4,unit:"days"},s.dm),i({value:10,unit:"days"},s.dm),i({value:15,unit:"days"},s.dm),i({value:20,unit:"days"},s.dm),i({value:1,unit:"months"},s.m),i({value:3,unit:"months"},s.m),i({value:6,unit:"months"},s.my),i({value:1,unit:"years"},s.y),i({value:2,unit:"years"},s.y),i({value:4,unit:"years"},s.y),i({value:10,unit:"years"},s.y),i({value:20,unit:"years"},s.y),i({value:50,unit:"years"},s.y),i({value:100,unit:"years"},s.y),i({value:200,unit:"years"},s.y),i({value:500,unit:"years"},s.y),i({value:10,unit:"centuries"},s.y),i({value:20,unit:"centuries"},s.y),i({value:50,unit:"centuries"},s.y),i({value:100,unit:"centuries"},s.y),i({value:200,unit:"centuries"},s.y),i({value:500,unit:"centuries"},s.y),i({value:1e3,unit:"centuries"},s.y),i({value:2e3,unit:"centuries"},s.y),i({value:5e3,unit:"centuries"},s.y),i({value:1e4,unit:"centuries"},s.y),i({value:2e4,unit:"centuries"},s.y)];function St(t){return Tt.map(({tick:e,tickFormat:a})=>{let o=new gt(e),c=o.toMilliseconds(),m={...a,timeZone:t};return{duration:c,format:m,timeInterval:o}})}var $t=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,ht=t=>{throw TypeError(t)},r=(t,e,a,o)=>{for(var c=o>1?void 0:o?Mt(e,a):e,m=t.length-1,d;m>=0;m--)(d=t[m])&&(c=(o?d(e,a,c):d(c))||c);return o&&c&&$t(e,a,c),c},N=(t,e,a)=>e.has(t)||ht("Cannot "+a),_=(t,e,a)=>(N(t,e,"read from private field"),a?a.call(t):e.get(t)),Z=(t,e,a)=>e.has(t)?ht("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,a),Dt=(t,e,a,o)=>(N(t,e,"write to private field"),e.set(t,a),a),u=(t,e,a)=>(N(t,e,"access private method"),a),w,T,h,F,O,A,R,x,S,C,n=class extends pt{constructor(){super(...arguments),Z(this,h),Z(this,w,new AbortController),Z(this,T,!1),this.disabled=!1,this.format="date",this.loadPersistedSettingsDisabled=!1,this.loop=!1,this.mode="time-window",this.reverseAnimation=!1,this.savePersistedSettingsDisabled=!1,this.stops=it}get _adjustedTickFormat(){let{era:t,timeZone:e}=this;return{...this.tickFormat?.format,era:this.tickFormat?.format.year?t:void 0,timeZone:e}}get _dateFormat(){let{era:t,timeZone:e}=this;return{...E("short-date"),era:t,timeZone:e}}get _dateTimeFormat(){let{era:t,timeZone:e}=this;return{...E("short-date"),...E("long-time"),era:t,timeZone:e}}get _thumbPositions(){if(!this.timeExtent||this.timeExtent.isAllTime||this.timeExtent.isEmpty)return null;let{start:t,end:e}=this.timeExtent;switch(this.mode){case"cumulative-from-end":case"instant":return t?[t.getTime()]:null;case"cumulative-from-start":return e?[e.getTime()]:null;case"time-window":return t&&e?[t.getTime(),e.getTime()]:null}}get _thumbStopIndices(){let{_thumbPositions:t,effectiveStopsEpoch:e}=this;return!t||!e?null:t.map(a=>{let o=e.indexOf(a);if(o!==-1)return o;let c=e.reduce((m,d)=>Math.abs(d-a)<Math.abs(m-a)?d:m);return e.indexOf(c)})}get _timeFormat(){let{timeZone:t}=this;return{...E("long-time"),timeZone:t}}get canPrevious(){return this._thumbStopIndices?.map(t=>--t).every(t=>u(this,h,A).call(this,t))??!1}get canNext(){return this._thumbStopIndices?.map(t=>++t).every(t=>u(this,h,A).call(this,t))??!1}get effectiveStops(){let{fullTimeExtent:t,stops:e}=this;if(!e)return;if(k(e)){let{dates:o}=e;if(!o?.length)return;let c=o.sort(($,b)=>$.getTime()-b.getTime());if(!t?.start||!t?.end)return c;let{start:m,end:d}=t,v=m.getTime(),ut=d.getTime();return c.filter($=>{let b=$.getTime();return b>=v&&b<=ut})}let a=e.timeExtent??t;if(a)return D(e)?nt(a,e.count):ot(a,e.interval)}get effectiveStopsEpoch(){return this.effectiveStops?.map(t=>t.getTime())}get era(){return(this.fullTimeExtent?.start?.getFullYear()??0)<0?"short":void 0}get interactive(){return!(this.disabled||this.state==="disabled"||this.timeZone===Q)}get isOutOfRange(){let{timeExtent:t,fullTimeExtent:e}=this,{start:a,end:o}=e??{};if(!a||!o||!t||t.isAllTime||t.isEmpty)return!0;let{start:c,end:m}=t??{},d=c!=null&&(c<a||c>o),v=m!=null&&(m>o||m<a);return d||v}set playRate(t){t<=0||t>1e3*60*60||(this.state==="playing"&&u(this,h,R).call(this),this._set("playRate",t))}get state(){return this.fullTimeExtent?this._animationController?"playing":"ready":"disabled"}get tickFormatter(){return t=>this._formatDate(t,this._adjustedTickFormat)}get tickFormats(){return St(this.timeZone)}get tickValues(){let{fullTimeExtent:t,tickFormat:e,timeZone:a}=this;if(!t||!e)return[];let{start:o,end:c}=t;return!o||!c?[]:rt(o,c,e.timeInterval,a).map(m=>m.getTime())}get timeZone(){return this._userTimeZone??this.viewTimeZone??K}set timeZone(t){this._userTimeZone=t??void 0}get viewTimeZone(){return this.view?.timeZone}destroy(){_(this,w).abort(),this.view?.unregisterComponent(this),u(this,h,S).call(this)}formatDate(t){return this._formatDate(t,this._dateFormat)}formatDateTime(t){return this._formatDate(t,this._dateTimeFormat)}formatNumber(t,e){return this._formatNumber(t,e)}formatTime(t){return this._formatDate(t,this._timeFormat)}async initialize(){this.addHandles([g(()=>this.effectiveStops,t=>{t&&(this.timeExtent??=P(t,this.mode))},{initial:!0}),g(()=>this.timeExtent,t=>{!this.view||(!t||t.isAllTime)&&(!this.view.timeExtent||this.view.timeExtent.isAllTime)||this.view.timeExtent&&t?.equals(this.view.timeExtent)||(this.view.timeExtent=t)},{initial:!0}),g(()=>this.view,t=>{t?.timeExtent&&(this.timeExtent=t.timeExtent)}),g(()=>this.view,(t,e)=>{e?.unregisterComponent(this),t?.registerComponent(this)},{initial:!0,sync:!0}),g(()=>this.view?.timeExtent,t=>{if(this.view){if(!_(this,T)){Dt(this,T,!0);return}(!t||t.isAllTime)&&(!this.timeExtent||this.timeExtent.isAllTime)||t&&this.timeExtent&&t.equals(this.timeExtent)||(this.timeExtent=t??void 0)}}),g(()=>this.mode,t=>{if(!(!this.timeExtent||this.timeExtent.isAllTime||this.timeExtent.isEmpty||!this.fullTimeExtent?.start||!this.fullTimeExtent.end))switch(t){case"time-window":this.timeExtent=new f({start:this.timeExtent.start??this.timeExtent.end,end:this.timeExtent.end??this.timeExtent.start});break;case"cumulative-from-start":this.timeExtent=new f({start:null,end:this.timeExtent.end??this.timeExtent.start});break;case"cumulative-from-end":this.timeExtent=new f({start:this.timeExtent.start??this.timeExtent.end,end:null});break;case"instant":this.timeExtent=new f({start:this.timeExtent.start??this.timeExtent.end,end:this.timeExtent.start??this.timeExtent.end});break}})]),await X((async()=>{if(await lt(()=>this.view?.ready,{signal:_(this,w).signal}),this.loadPersistedSettingsDisabled)return;let t=await ft(this.view?.map,_(this,w).signal);t&&(this.fullTimeExtent=t.fullTimeExtent??void 0,this.loop=t.loop,this.mode=t.mode,this.playRate=t.playRate,this.stops=t.stops??void 0,this.timeExtent=t.timeExtent??void 0)})())}next(){u(this,h,x).call(this,{forward:!0,allowRestart:!1})}play(){u(this,h,R).call(this)}previous(){u(this,h,x).call(this,{forward:!1,allowRestart:!1})}stop(){u(this,h,S).call(this)}updateWebDocument(t){if(this.savePersistedSettingsDisabled)return;let e=new dt({currentTimeExtent:this.timeExtent,fullTimeExtent:this.fullTimeExtent,loop:this.loop,numStops:D(this.stops)?this.stops.count:null,numThumbs:this.mode==="time-window"?2:1,stopDelay:this.playRate,stopInterval:at(this.stops)?this.stops.interval:null,stops:k(this.stops)?this.stops.dates:null});t.widgets??=new vt,t.widgets.timeSlider=e}_formatDate(t,e){return bt({locale:this.locale,formatOptions:e}).format(t)}_formatNumber(t,e){return Et({locale:this.locale,formatOptions:e}).format(t)}};w=new WeakMap;T=new WeakMap;h=new WeakSet;F=async function(){try{let{view:t}=this,e=this._animationController?.signal;await Promise.all([Y(this.playRate,e),t&<(()=>!t.updating,e)])}catch(t){U(t)||W("error","arcgis-slider-time","animation error",{detail:{error:t}}),this._animationController=void 0;return}u(this,h,x).call(this,{forward:!this.reverseAnimation,allowRestart:!1}),this._animationController&&u(this,h,F).call(this)};O=function(t){return t?this.canNext:this.canPrevious};A=function(t){return t>=0&&t<(this.effectiveStopsEpoch?.length??0)};R=function(){u(this,h,S).call(this),this._animationController=new AbortController,u(this,h,x).call(this,{forward:!this.reverseAnimation,allowRestart:!0}),u(this,h,F).call(this)};x=function({forward:t,allowRestart:e}){let{_thumbStopIndices:a,effectiveStopsEpoch:o}=this;if(!(!a||!o))if(u(this,h,O).call(this,t)){let c=a.map(m=>m+(t?1:-1)).map(m=>o[m]);this.timeExtent=u(this,h,C).call(this,c),!this.loop&&!u(this,h,O).call(this,t)&&this.stop()}else if(this.loop||e){let c=Math.min(...a),m=Math.max(...a),d=(t?a.map(v=>v-c):a.map(v=>v+(o.length-1-m))).map(v=>o[v]);this.timeExtent=u(this,h,C).call(this,d)}else this.stop()};S=function(){this._animationController?.abort(),this._animationController=void 0};C=function(t){if(!t)return;let e=[...t].sort((a,o)=>a-o).map(a=>new Date(a));return P(e,this.mode)};r([l()],n.prototype,"_adjustedTickFormat",1);r([l()],n.prototype,"_animationController",2);r([l()],n.prototype,"_dateFormat",1);r([l()],n.prototype,"_dateTimeFormat",1);r([l()],n.prototype,"_thumbPositions",1);r([l()],n.prototype,"_thumbStopIndices",1);r([l()],n.prototype,"_timeFormat",1);r([l()],n.prototype,"_userTimeZone",2);r([l()],n.prototype,"canPrevious",1);r([l()],n.prototype,"canNext",1);r([l()],n.prototype,"disabled",2);r([l()],n.prototype,"effectiveStops",1);r([l()],n.prototype,"effectiveStopsEpoch",1);r([l()],n.prototype,"era",1);r([l()],n.prototype,"format",2);r([l({type:f})],n.prototype,"fullTimeExtent",2);r([l()],n.prototype,"interactive",1);r([l()],n.prototype,"isOutOfRange",1);r([l()],n.prototype,"loadPersistedSettingsDisabled",2);r([l()],n.prototype,"locale",2);r([l()],n.prototype,"loop",2);r([l()],n.prototype,"mode",2);r([l({value:1e3})],n.prototype,"playRate",1);r([l()],n.prototype,"reverseAnimation",2);r([l()],n.prototype,"savePersistedSettingsDisabled",2);r([l()],n.prototype,"state",1);r([l({cast:st})],n.prototype,"stops",2);r([l()],n.prototype,"tickFormat",2);r([l()],n.prototype,"tickFormatter",1);r([l()],n.prototype,"tickFormats",1);r([l()],n.prototype,"tickValues",1);r([l({type:f})],n.prototype,"timeExtent",2);r([l()],n.prototype,"timeZone",1);r([l()],n.prototype,"view",2);r([l()],n.prototype,"viewTimeZone",1);n=r([yt("components.time-bar.TimeBarViewModel")],n);var kt=I`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight);transition:max-height var(--calcite-internal-animation-timing-medium) ease-in-out}:host([floating]) .action-bar{--calcite-action-bar-shadow: var(--arcgis-internal-box-shadow)}::slotted([slot="actions-end"]){border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding-inline-start:var(--calcite-spacing-sm)}.action-bar,.time-extent-group,.time-extent-group>slot{display:flex;flex:1 0 auto;place-items:center}.action-bar{--calcite-action-bar-shadow: none;--calcite-action-bar-background-color: var(--calcite-color-foreground-1)}.label{block-size:var(--calcite-size-fixed-xxxl);inline-size:175px}.settings{inline-size:calc(var(--arcgis-internal-panel-width) - 2 * var(--calcite-spacing-lg))}`,Pt=J(n),z=class extends B{constructor(){super(...arguments),this._direction=L(),this._viewModel=Pt(this),this.messages=G({name:"time-bar",blocking:!0}),this.#t=q(),this.#e=e=>{this._settingsActionElement=e},this.autoDestroyDisabled=!1,this.disabled=this._viewModel.disabled,this.effectiveStops=this._viewModel.effectiveStops,this.floating=!1,this.format=this._viewModel.format,this.fullTimeExtent=this._viewModel.fullTimeExtent,this.icon="clock",this.loadPersistedSettingsDisabled=this._viewModel.loadPersistedSettingsDisabled,this.loop=this._viewModel.loop,this.mode=this._viewModel.mode,this.playRate=this._viewModel.playRate,this.reverseAnimation=this._viewModel.reverseAnimation,this.savePersistedSettingsDisabled=this._viewModel.savePersistedSettingsDisabled,this.showNext=!1,this.showPlay=!1,this.showPrevious=!1,this.showSettings=!1,this.showTimeExtent=!1,this.state=this._viewModel.state,this.stops=this._viewModel.stops,this.timeExtent=this._viewModel.timeExtent,this.timeZone=this._viewModel.timeZone,this.view=this._viewModel.view,this.arcgisPropertyChange=H()("effectiveStops","fullTimeExtent","state","timeExtent"),this.arcgisReady=j()}static{this.properties={_settingsActionElement:16,autoDestroyDisabled:5,disabled:5,effectiveStops:32,floating:7,format:1,fullTimeExtent:0,icon:1,label:1,loadPersistedSettingsDisabled:5,loop:5,messageOverrides:0,mode:1,playRate:9,referenceElement:1,reverseAnimation:5,savePersistedSettingsDisabled:5,showNext:5,showPlay:5,showPrevious:5,showSettings:5,showTimeExtent:5,state:32,stops:0,timeExtent:0,timeZone:1,view:0}}static{this.styles=kt}#t;#e;async applyTimeSettings(e){this._viewModel.set(e)}async destroy(){await this.manager.destroy()}async next(){this._viewModel.next()}async play(){this._viewModel.play()}async previous(){this._viewModel.previous()}async stop(){this._viewModel.stop()}async updateWebDocument(e){this._viewModel.updateWebDocument(e)}willUpdate(e){e.has("messages")&&(this._viewModel.locale=this.messages._lang)}#m(e){let{currentTarget:a}=e,o=et(a).at(0)??a.querySelector("arcgis-time-bar-extent");o&&(o.messages=this.messages,o.viewModel=this._viewModel)}async#h(){switch(this.state){case"disabled":case"playing":return await this.stop();case"ready":return await this.play()}}render(){return p`<div role=presentation><calcite-action-bar class="action-bar" layout=horizontal expand-toggle-disabled .floating=${this.floating} overflow-mode=none>${this._direction==="ltr"?p`${this.#i()}${this.#a()}${this.#c()}${this.#l()}${this.#s()}`:p`${this.#i()}${this.#l()}${this.#c()}${this.#a()}${this.#s()}`}</calcite-action-bar></div>`}#i(){return this.showNext||this.showPlay||this.showPrevious||this.showTimeExtent||this.showSettings?null:p`<calcite-action disabled .text=${this.messages.componentLabel} text-enabled></calcite-action>`}#s(){return p`<slot name=actions-end slot=actions-end></slot>`}#a(){return this.showPrevious||this.showPlay||this.showNext?p`<calcite-action-group>${this._direction==="ltr"?p`${this.#o()}${this.#r()}${this.#n()}`:p`${this.#n()}${this.#r()}${this.#o()}`}</calcite-action-group>`:null}#n(){return this.showNext?p`<calcite-action .disabled=${this._viewModel.isOutOfRange||!this._viewModel.interactive||!this.effectiveStops?.length||this.state==="playing"||!this.loop&&!this._viewModel.canNext} icon=forward @click=${this.next} .text=${this.messages.next} title=${this.messages.next??y}></calcite-action>`:null}#o(){return this.showPlay?p`<calcite-action .disabled=${this._viewModel.isOutOfRange||!this._viewModel.interactive||!this.effectiveStops?.length} .icon=${this.state==="playing"?"pause-f":"play-f"} @click=${this.#h} .text=${this.state==="playing"?this.messages.stop:this.messages.play} title=${(this.state==="playing"?this.messages.stop:this.messages.play)??y}></calcite-action>`:null}#r(){return this.showPrevious?p`<calcite-action .disabled=${this._viewModel.isOutOfRange||!this._viewModel.interactive||!this.effectiveStops?.length||this.state==="playing"||!this.loop&&!this._viewModel.canPrevious} icon=reverse @click=${this.previous} .text=${this.messages.previous} title=${this.messages.previous??y}></calcite-action>`:null}#l(){return this.showSettings?p`<calcite-action-group><calcite-action .disabled=${!this._viewModel.interactive} .text=${this.messages.settings} icon=sliders-horizontal title=${this.messages.settings??y} ${M(this.#e)}></calcite-action>${this._settingsActionElement?p`<calcite-popover auto-close .heading=${this.messages.timeBarSettings} .label=${this.messages.timeBarSettings} .referenceElement=${this._settingsActionElement} @calcitePopoverClose=${()=>{this.#t.value?.navigateToOverview()}} overlay-positioning=fixed><slot name=settings><arcgis-time-bar-settings .autoDestroyDisabled=${this.autoDestroyDisabled} class="settings" .messages=${this.messages} .viewModel=${this._viewModel} ${M(this.#t)}></arcgis-time-bar-settings></slot></calcite-popover>`:void 0}</calcite-action-group>`:null}#c(){return this.showTimeExtent?p`<calcite-action-group class="time-extent-group"><slot name=time-extent @slotchange=${this.#m}><arcgis-time-bar-extent .autoDestroyDisabled=${this.autoDestroyDisabled} class="label" .messages=${this.messages} .viewModel=${this._viewModel}></arcgis-time-bar-extent></slot></calcite-action-group>`:null}};V("arcgis-time-bar",z);return z},"core/Accessor","time/TimeExtent","webdoc/widgets/TimeSlider","webdoc/Widgets","intl","time/TimeInterval","support/timeUtils","core/accessorSupport/decorators","core/reactiveUtils",a,b,c,d,e,f)
|
|
2
|
+
import f from"./VWW5GBIK.js";import{c as et}from"./Y6WTYXVP.js";import{a as K,b as Q,k as tt}from"./IM6IDWYR.js";import e from"./BOPNSNUT.js";import"./WJQUE4DR.js";import d from"./QVJ2FUNW.js";import{a as G}from"./REB4CHAK.js";import c from"./7JPHMESH.js";import b from"./OLY5EME5.js";import{f as L,h as H}from"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import"./LXME6MU5.js";import{P as q,Q as M,R as B,_ as V,a as I,b as p,f as y,p as W,x as j}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([pt,f,dt,vt,{convertDateFormatToIntlOptions:E},gt,{getTimeSliderSettingsFromWebDocument:ft},{property:l,subclass:yt},{watch:g,whenOnce:lt},,,,J,{c:U,e:X,h:Y},{a:it,b:st,c:D,d:k,e:at,f:nt,g:ot,h:P,i:rt}])=>{var ct=new WeakMap,mt=new WeakMap;function wt(t){let{locale:e,formatOptions:a}=t,o=_t(a),c=new Intl.DateTimeFormat(e,o);return ct.set(t,c),c}function xt(t){let{locale:e,formatOptions:a}=t,o=new Intl.NumberFormat(e,a);return mt.set(t,o),o}function bt(t){return ct.get(t)??wt(t)}function Et(t){return mt.get(t)??xt(t)}function _t(t){return t.timeZone?{...t,timeZone:tt(t.timeZone)}:t}var i=(t,e)=>({tick:t,tickFormat:e}),s={sf:{second:"numeric",fractionalSecondDigits:3},s:{second:"numeric"},ms:{minute:"numeric",second:"numeric"},mi:{minute:"numeric"},hm:{hour:"numeric",minute:"numeric"},dm:{day:"numeric",month:"short"},m:{month:"short"},my:{month:"short",year:"numeric"},y:{year:"numeric"}},Tt=[i({value:10,unit:"milliseconds"},s.sf),i({value:20,unit:"milliseconds"},s.sf),i({value:50,unit:"milliseconds"},s.sf),i({value:100,unit:"milliseconds"},s.sf),i({value:200,unit:"milliseconds"},s.sf),i({value:500,unit:"milliseconds"},s.sf),i({value:1,unit:"seconds"},s.s),i({value:2,unit:"seconds"},s.s),i({value:5,unit:"seconds"},s.s),i({value:10,unit:"seconds"},s.s),i({value:20,unit:"seconds"},s.ms),i({value:30,unit:"seconds"},s.ms),i({value:1,unit:"minutes"},s.mi),i({value:2,unit:"minutes"},s.mi),i({value:5,unit:"minutes"},s.mi),i({value:10,unit:"minutes"},s.mi),i({value:30,unit:"minutes"},s.hm),i({value:1,unit:"hours"},s.hm),i({value:2,unit:"hours"},s.hm),i({value:4,unit:"hours"},s.hm),i({value:8,unit:"hours"},s.hm),i({value:1,unit:"days"},s.dm),i({value:1,unit:"days"},s.dm),i({value:2,unit:"days"},s.dm),i({value:4,unit:"days"},s.dm),i({value:10,unit:"days"},s.dm),i({value:15,unit:"days"},s.dm),i({value:20,unit:"days"},s.dm),i({value:1,unit:"months"},s.m),i({value:3,unit:"months"},s.m),i({value:6,unit:"months"},s.my),i({value:1,unit:"years"},s.y),i({value:2,unit:"years"},s.y),i({value:4,unit:"years"},s.y),i({value:10,unit:"years"},s.y),i({value:20,unit:"years"},s.y),i({value:50,unit:"years"},s.y),i({value:100,unit:"years"},s.y),i({value:200,unit:"years"},s.y),i({value:500,unit:"years"},s.y),i({value:10,unit:"centuries"},s.y),i({value:20,unit:"centuries"},s.y),i({value:50,unit:"centuries"},s.y),i({value:100,unit:"centuries"},s.y),i({value:200,unit:"centuries"},s.y),i({value:500,unit:"centuries"},s.y),i({value:1e3,unit:"centuries"},s.y),i({value:2e3,unit:"centuries"},s.y),i({value:5e3,unit:"centuries"},s.y),i({value:1e4,unit:"centuries"},s.y),i({value:2e4,unit:"centuries"},s.y)];function St(t){return Tt.map(({tick:e,tickFormat:a})=>{let o=new gt(e),c=o.toMilliseconds(),m={...a,timeZone:t};return{duration:c,format:m,timeInterval:o}})}var $t=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,ht=t=>{throw TypeError(t)},r=(t,e,a,o)=>{for(var c=o>1?void 0:o?Mt(e,a):e,m=t.length-1,d;m>=0;m--)(d=t[m])&&(c=(o?d(e,a,c):d(c))||c);return o&&c&&$t(e,a,c),c},N=(t,e,a)=>e.has(t)||ht("Cannot "+a),_=(t,e,a)=>(N(t,e,"read from private field"),a?a.call(t):e.get(t)),Z=(t,e,a)=>e.has(t)?ht("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,a),Dt=(t,e,a,o)=>(N(t,e,"write to private field"),e.set(t,a),a),u=(t,e,a)=>(N(t,e,"access private method"),a),w,T,h,F,O,A,R,x,S,C,n=class extends pt{constructor(){super(...arguments),Z(this,h),Z(this,w,new AbortController),Z(this,T,!1),this.disabled=!1,this.format="date",this.loadPersistedSettingsDisabled=!1,this.loop=!1,this.mode="time-window",this.reverseAnimation=!1,this.savePersistedSettingsDisabled=!1,this.stops=it}get _adjustedTickFormat(){let{era:t,timeZone:e}=this;return{...this.tickFormat?.format,era:this.tickFormat?.format.year?t:void 0,timeZone:e}}get _dateFormat(){let{era:t,timeZone:e}=this;return{...E("short-date"),era:t,timeZone:e}}get _dateTimeFormat(){let{era:t,timeZone:e}=this;return{...E("short-date"),...E("long-time"),era:t,timeZone:e}}get _thumbPositions(){if(!this.timeExtent||this.timeExtent.isAllTime||this.timeExtent.isEmpty)return null;let{start:t,end:e}=this.timeExtent;switch(this.mode){case"cumulative-from-end":case"instant":return t?[t.getTime()]:null;case"cumulative-from-start":return e?[e.getTime()]:null;case"time-window":return t&&e?[t.getTime(),e.getTime()]:null}}get _thumbStopIndices(){let{_thumbPositions:t,effectiveStopsEpoch:e}=this;return!t||!e?null:t.map(a=>{let o=e.indexOf(a);if(o!==-1)return o;let c=e.reduce((m,d)=>Math.abs(d-a)<Math.abs(m-a)?d:m);return e.indexOf(c)})}get _timeFormat(){let{timeZone:t}=this;return{...E("long-time"),timeZone:t}}get canPrevious(){return this._thumbStopIndices?.map(t=>--t).every(t=>u(this,h,A).call(this,t))??!1}get canNext(){return this._thumbStopIndices?.map(t=>++t).every(t=>u(this,h,A).call(this,t))??!1}get effectiveStops(){let{fullTimeExtent:t,stops:e}=this;if(!e)return;if(k(e)){let{dates:o}=e;if(!o?.length)return;let c=o.sort(($,b)=>$.getTime()-b.getTime());if(!t?.start||!t?.end)return c;let{start:m,end:d}=t,v=m.getTime(),ut=d.getTime();return c.filter($=>{let b=$.getTime();return b>=v&&b<=ut})}let a=e.timeExtent??t;if(a)return D(e)?nt(a,e.count):ot(a,e.interval)}get effectiveStopsEpoch(){return this.effectiveStops?.map(t=>t.getTime())}get era(){return(this.fullTimeExtent?.start?.getFullYear()??0)<0?"short":void 0}get interactive(){return!(this.disabled||this.state==="disabled"||this.timeZone===Q)}get isOutOfRange(){let{timeExtent:t,fullTimeExtent:e}=this,{start:a,end:o}=e??{};if(!a||!o||!t||t.isAllTime||t.isEmpty)return!0;let{start:c,end:m}=t??{},d=c!=null&&(c<a||c>o),v=m!=null&&(m>o||m<a);return d||v}set playRate(t){t<=0||t>1e3*60*60||(this.state==="playing"&&u(this,h,R).call(this),this._set("playRate",t))}get state(){return this.fullTimeExtent?this._animationController?"playing":"ready":"disabled"}get tickFormatter(){return t=>this._formatDate(t,this._adjustedTickFormat)}get tickFormats(){return St(this.timeZone)}get tickValues(){let{fullTimeExtent:t,tickFormat:e,timeZone:a}=this;if(!t||!e)return[];let{start:o,end:c}=t;return!o||!c?[]:rt(o,c,e.timeInterval,a).map(m=>m.getTime())}get timeZone(){return this._userTimeZone??this.viewTimeZone??K}set timeZone(t){this._userTimeZone=t??void 0}get viewTimeZone(){return this.view?.timeZone}destroy(){_(this,w).abort(),this.view?.unregisterComponent(this),u(this,h,S).call(this)}formatDate(t){return this._formatDate(t,this._dateFormat)}formatDateTime(t){return this._formatDate(t,this._dateTimeFormat)}formatNumber(t,e){return this._formatNumber(t,e)}formatTime(t){return this._formatDate(t,this._timeFormat)}async initialize(){this.addHandles([g(()=>this.effectiveStops,t=>{t&&(this.timeExtent??=P(t,this.mode))},{initial:!0}),g(()=>this.timeExtent,t=>{!this.view||(!t||t.isAllTime)&&(!this.view.timeExtent||this.view.timeExtent.isAllTime)||this.view.timeExtent&&t?.equals(this.view.timeExtent)||(this.view.timeExtent=t)},{initial:!0}),g(()=>this.view,t=>{t?.timeExtent&&(this.timeExtent=t.timeExtent)}),g(()=>this.view,(t,e)=>{e?.unregisterComponent(this),t?.registerComponent(this)},{initial:!0,sync:!0}),g(()=>this.view?.timeExtent,t=>{if(this.view){if(!_(this,T)){Dt(this,T,!0);return}(!t||t.isAllTime)&&(!this.timeExtent||this.timeExtent.isAllTime)||t&&this.timeExtent&&t.equals(this.timeExtent)||(this.timeExtent=t??void 0)}}),g(()=>this.mode,t=>{if(!(!this.timeExtent||this.timeExtent.isAllTime||this.timeExtent.isEmpty||!this.fullTimeExtent?.start||!this.fullTimeExtent.end))switch(t){case"time-window":this.timeExtent=new f({start:this.timeExtent.start??this.timeExtent.end,end:this.timeExtent.end??this.timeExtent.start});break;case"cumulative-from-start":this.timeExtent=new f({start:null,end:this.timeExtent.end??this.timeExtent.start});break;case"cumulative-from-end":this.timeExtent=new f({start:this.timeExtent.start??this.timeExtent.end,end:null});break;case"instant":this.timeExtent=new f({start:this.timeExtent.start??this.timeExtent.end,end:this.timeExtent.start??this.timeExtent.end});break}})]),await X((async()=>{if(await lt(()=>this.view?.ready,{signal:_(this,w).signal}),this.loadPersistedSettingsDisabled)return;let t=await ft(this.view?.map,_(this,w).signal);t&&(this.fullTimeExtent=t.fullTimeExtent??void 0,this.loop=t.loop,this.mode=t.mode,this.playRate=t.playRate,this.stops=t.stops??void 0,this.timeExtent=t.timeExtent??void 0)})())}next(){u(this,h,x).call(this,{forward:!0,allowRestart:!1})}play(){u(this,h,R).call(this)}previous(){u(this,h,x).call(this,{forward:!1,allowRestart:!1})}stop(){u(this,h,S).call(this)}updateWebDocument(t){if(this.savePersistedSettingsDisabled)return;let e=new dt({currentTimeExtent:this.timeExtent,fullTimeExtent:this.fullTimeExtent,loop:this.loop,numStops:D(this.stops)?this.stops.count:null,numThumbs:this.mode==="time-window"?2:1,stopDelay:this.playRate,stopInterval:at(this.stops)?this.stops.interval:null,stops:k(this.stops)?this.stops.dates:null});t.widgets??=new vt,t.widgets.timeSlider=e}_formatDate(t,e){return bt({locale:this.locale,formatOptions:e}).format(t)}_formatNumber(t,e){return Et({locale:this.locale,formatOptions:e}).format(t)}};w=new WeakMap;T=new WeakMap;h=new WeakSet;F=async function(){try{let{view:t}=this,e=this._animationController?.signal;await Promise.all([Y(this.playRate,e),t&<(()=>!t.updating,e)])}catch(t){U(t)||W("error","arcgis-slider-time","animation error",{detail:{error:t}}),this._animationController=void 0;return}u(this,h,x).call(this,{forward:!this.reverseAnimation,allowRestart:!1}),this._animationController&&u(this,h,F).call(this)};O=function(t){return t?this.canNext:this.canPrevious};A=function(t){return t>=0&&t<(this.effectiveStopsEpoch?.length??0)};R=function(){u(this,h,S).call(this),this._animationController=new AbortController,u(this,h,x).call(this,{forward:!this.reverseAnimation,allowRestart:!0}),u(this,h,F).call(this)};x=function({forward:t,allowRestart:e}){let{_thumbStopIndices:a,effectiveStopsEpoch:o}=this;if(!(!a||!o))if(u(this,h,O).call(this,t)){let c=a.map(m=>m+(t?1:-1)).map(m=>o[m]);this.timeExtent=u(this,h,C).call(this,c),!this.loop&&!u(this,h,O).call(this,t)&&this.stop()}else if(this.loop||e){let c=Math.min(...a),m=Math.max(...a),d=(t?a.map(v=>v-c):a.map(v=>v+(o.length-1-m))).map(v=>o[v]);this.timeExtent=u(this,h,C).call(this,d)}else this.stop()};S=function(){this._animationController?.abort(),this._animationController=void 0};C=function(t){if(!t)return;let e=[...t].sort((a,o)=>a-o).map(a=>new Date(a));return P(e,this.mode)};r([l()],n.prototype,"_adjustedTickFormat",1);r([l()],n.prototype,"_animationController",2);r([l()],n.prototype,"_dateFormat",1);r([l()],n.prototype,"_dateTimeFormat",1);r([l()],n.prototype,"_thumbPositions",1);r([l()],n.prototype,"_thumbStopIndices",1);r([l()],n.prototype,"_timeFormat",1);r([l()],n.prototype,"_userTimeZone",2);r([l()],n.prototype,"canPrevious",1);r([l()],n.prototype,"canNext",1);r([l()],n.prototype,"disabled",2);r([l()],n.prototype,"effectiveStops",1);r([l()],n.prototype,"effectiveStopsEpoch",1);r([l()],n.prototype,"era",1);r([l()],n.prototype,"format",2);r([l({type:f})],n.prototype,"fullTimeExtent",2);r([l()],n.prototype,"interactive",1);r([l()],n.prototype,"isOutOfRange",1);r([l()],n.prototype,"loadPersistedSettingsDisabled",2);r([l()],n.prototype,"locale",2);r([l()],n.prototype,"loop",2);r([l()],n.prototype,"mode",2);r([l({value:1e3})],n.prototype,"playRate",1);r([l()],n.prototype,"reverseAnimation",2);r([l()],n.prototype,"savePersistedSettingsDisabled",2);r([l()],n.prototype,"state",1);r([l({cast:st})],n.prototype,"stops",2);r([l()],n.prototype,"tickFormat",2);r([l()],n.prototype,"tickFormatter",1);r([l()],n.prototype,"tickFormats",1);r([l()],n.prototype,"tickValues",1);r([l({type:f})],n.prototype,"timeExtent",2);r([l()],n.prototype,"timeZone",1);r([l()],n.prototype,"view",2);r([l()],n.prototype,"viewTimeZone",1);n=r([yt("components.time-bar.TimeBarViewModel")],n);var kt=I`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight);transition:max-height var(--calcite-internal-animation-timing-medium) ease-in-out}:host([floating]) .action-bar{--calcite-action-bar-shadow: var(--arcgis-internal-box-shadow)}::slotted([slot="actions-end"]){border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding-inline-start:var(--calcite-spacing-sm)}.action-bar,.time-extent-group,.time-extent-group>slot{display:flex;flex:1 0 auto;place-items:center}.action-bar{--calcite-action-bar-shadow: none;--calcite-action-bar-background-color: var(--calcite-color-foreground-1)}.label{block-size:var(--calcite-size-fixed-xxxl);inline-size:175px}.settings{inline-size:calc(var(--arcgis-internal-panel-width) - 2 * var(--calcite-spacing-lg))}`,Pt=J(n),z=class extends B{constructor(){super(...arguments),this._direction=L(),this._viewModel=Pt(this),this.messages=G({name:"time-bar",blocking:!0}),this.#t=q(),this.#e=e=>{this._settingsActionElement=e},this.autoDestroyDisabled=!1,this.disabled=this._viewModel.disabled,this.effectiveStops=this._viewModel.effectiveStops,this.floating=!1,this.format=this._viewModel.format,this.fullTimeExtent=this._viewModel.fullTimeExtent,this.icon="clock",this.loadPersistedSettingsDisabled=this._viewModel.loadPersistedSettingsDisabled,this.loop=this._viewModel.loop,this.mode=this._viewModel.mode,this.playRate=this._viewModel.playRate,this.reverseAnimation=this._viewModel.reverseAnimation,this.savePersistedSettingsDisabled=this._viewModel.savePersistedSettingsDisabled,this.showNext=!1,this.showPlay=!1,this.showPrevious=!1,this.showSettings=!1,this.showTimeExtent=!1,this.state=this._viewModel.state,this.stops=this._viewModel.stops,this.timeExtent=this._viewModel.timeExtent,this.timeZone=this._viewModel.timeZone,this.view=this._viewModel.view,this.arcgisPropertyChange=H()("effectiveStops","fullTimeExtent","state","timeExtent"),this.arcgisReady=j()}static{this.properties={_settingsActionElement:16,autoDestroyDisabled:5,disabled:5,effectiveStops:32,floating:7,format:1,fullTimeExtent:0,icon:1,label:1,loadPersistedSettingsDisabled:5,loop:5,messageOverrides:0,mode:1,playRate:9,referenceElement:1,reverseAnimation:5,savePersistedSettingsDisabled:5,showNext:5,showPlay:5,showPrevious:5,showSettings:5,showTimeExtent:5,state:32,stops:0,timeExtent:0,timeZone:1,view:0}}static{this.styles=kt}#t;#e;async applyTimeSettings(e){this._viewModel.set(e)}async destroy(){await this.manager.destroy()}async next(){this._viewModel.next()}async play(){this._viewModel.play()}async previous(){this._viewModel.previous()}async stop(){this._viewModel.stop()}async updateWebDocument(e){this._viewModel.updateWebDocument(e)}willUpdate(e){e.has("messages")&&(this._viewModel.locale=this.messages._lang)}#m(e){let{currentTarget:a}=e,o=et(a).at(0)??a.querySelector("arcgis-time-bar-extent");o&&(o.messages=this.messages,o.viewModel=this._viewModel)}async#h(){switch(this.state){case"disabled":case"playing":return await this.stop();case"ready":return await this.play()}}render(){return p`<div role=presentation><calcite-action-bar class="action-bar" layout=horizontal expand-toggle-disabled .floating=${this.floating} overflow-mode=none>${this._direction==="ltr"?p`${this.#i()}${this.#a()}${this.#c()}${this.#l()}${this.#s()}`:p`${this.#i()}${this.#l()}${this.#c()}${this.#a()}${this.#s()}`}</calcite-action-bar></div>`}#i(){return this.showNext||this.showPlay||this.showPrevious||this.showTimeExtent||this.showSettings?null:p`<calcite-action disabled .text=${this.messages.componentLabel} text-enabled></calcite-action>`}#s(){return p`<slot name=actions-end slot=actions-end></slot>`}#a(){return this.showPrevious||this.showPlay||this.showNext?p`<calcite-action-group>${this._direction==="ltr"?p`${this.#o()}${this.#r()}${this.#n()}`:p`${this.#n()}${this.#r()}${this.#o()}`}</calcite-action-group>`:null}#n(){return this.showNext?p`<calcite-action .disabled=${this._viewModel.isOutOfRange||!this._viewModel.interactive||!this.effectiveStops?.length||this.state==="playing"||!this.loop&&!this._viewModel.canNext} icon=forward @click=${this.next} .text=${this.messages.next} title=${this.messages.next??y}></calcite-action>`:null}#o(){return this.showPlay?p`<calcite-action .disabled=${this._viewModel.isOutOfRange||!this._viewModel.interactive||!this.effectiveStops?.length} .icon=${this.state==="playing"?"pause-f":"play-f"} @click=${this.#h} .text=${this.state==="playing"?this.messages.stop:this.messages.play} title=${(this.state==="playing"?this.messages.stop:this.messages.play)??y}></calcite-action>`:null}#r(){return this.showPrevious?p`<calcite-action .disabled=${this._viewModel.isOutOfRange||!this._viewModel.interactive||!this.effectiveStops?.length||this.state==="playing"||!this.loop&&!this._viewModel.canPrevious} icon=reverse @click=${this.previous} .text=${this.messages.previous} title=${this.messages.previous??y}></calcite-action>`:null}#l(){return this.showSettings?p`<calcite-action-group><calcite-action .disabled=${!this._viewModel.interactive} .text=${this.messages.settings} icon=sliders-horizontal title=${this.messages.settings??y} ${M(this.#e)}></calcite-action>${this._settingsActionElement?p`<calcite-popover auto-close .heading=${this.messages.timeBarSettings} .label=${this.messages.timeBarSettings} .referenceElement=${this._settingsActionElement} @calcitePopoverClose=${()=>{this.#t.value?.navigateToOverview()}} overlay-positioning=fixed><slot name=settings><arcgis-time-bar-settings .autoDestroyDisabled=${this.autoDestroyDisabled} class="settings" .messages=${this.messages} .viewModel=${this._viewModel} ${M(this.#t)}></arcgis-time-bar-settings></slot></calcite-popover>`:void 0}</calcite-action-group>`:null}#c(){return this.showTimeExtent?p`<calcite-action-group class="time-extent-group"><slot name=time-extent @slotchange=${this.#m}><arcgis-time-bar-extent .autoDestroyDisabled=${this.autoDestroyDisabled} class="label" .messages=${this.messages} .viewModel=${this._viewModel}></arcgis-time-bar-extent></slot></calcite-action-group>`:null}};V("arcgis-time-bar",z);return z},"core/Accessor","time/TimeExtent","webdoc/widgets/TimeSlider","webdoc/Widgets","intl","time/TimeInterval","support/timeUtils","core/accessorSupport/decorators","core/reactiveUtils",a,b,c,d,e,f)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import c from"./F5JYYT42.js";import b from"./BE5M3N7T.js";import{a as he,b as ce,c as me}from"./DFUR3C3D.js";import a from"./F4AJCUZ6.js";import"./WJQUE4DR.js";import{a as se}from"./7465ANAR.js";import"./GIBXI44G.js";import"./RQT2PVDJ.js";import"./LXME6MU5.js";import{P as H,Q as U,R as ie,_ as oe,a as ee,b as O,p as te}from"./7IGSTLKW.js";import"./TAVTDQ6S.js";export default $arcgis.t(([K,ue,ye,{on:be,when:Me,watch:G},{once:Y,on:de},_e,xe,ze,Se,Te,{property:S,subclass:Ce},Ie,Pe,Ae,pe,Z,W,Le,X,{createSphere:Re},Fe,Ne,$e,{b:I,c:ae,d:re},ne,{a:le}])=>{var ke=ee`:host{height:100%;--arcgis-view-color-focus: none}`;function Be(a,e=!0){let t=((e?a:a*180/Math.PI)%360+360)%360;return e?t:t*Math.PI/180}function Ee(a,e=!0){let t=e?a:a*180/Math.PI,o=Math.max(.5,Math.min(179.5,t));return e?o:o*Math.PI/180}function Ge(a,e){return new Promise((t,o)=>{if(a.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA){t();return}e(Y(a,"canplay",t)),e(Y(a,"error",o))})}function De(a){return new ue({geometry:a,symbol:new ze({symbolLayers:new _e([new xe])})})}function V({data:a,center:e=Ve(),size:t=Ke,horizonPitch:o=0,horizonYaw:i=0,horizonRoll:s=0}){let r=e.clone();r.z=-t/2;let n=Re(r,{size:t,densificationFactor:2,vertexSpace:"georeferenced",material:new Z({colorTexture:new W({data:a}),unlit:!0})});if(n.components?.at(0)?.set({trustSourceNormals:!0}),n.vertexAttributes.uv){let l=n.vertexAttributes.uv.length??0;for(let d=0;d<l;d++)n.vertexAttributes.uv[d*2+0]=1-n.vertexAttributes.uv[d*2+0]}return n.rotate(o,s,i,{origin:n.extent.center}),n.centerAt(r),n}var Ve=()=>new X({x:0,y:0,z:0,spatialReference:K.WebMercator}),Ke=1e3,Oe=114;function He(a,e,t){let o=new Map,i=Array.from(a.keys()).sort((h,u)=>h-u)[0],{maxCol:s,minCol:r,maxRow:n,minRow:l}=a.get(i),d=s-r+1,m=n-l+1,c=d*(t-1)+1;return Ue({maximumPyramidLevel:e,blockBoundary:a,baseCols:d,baseRows:m,vertexPerEdge:t,baseVertexPerRow:c},o),o}function Ue(a,e){let{maximumPyramidLevel:t,blockBoundary:o,baseCols:i,baseRows:s,vertexPerEdge:r,baseVertexPerRow:n}=a;for(let l=0;l<=t;l+=1){let{maxCol:d,minCol:m,maxRow:c,minRow:h}=o.get(l),u=d-m+1,p=c-h+1,f=i/u,v=s/p,g=r-1;Ye({minRow:h,minCol:m,numberOfRows:p,numberOfColumns:u,vertexLimit:g,rowStep:v,colStep:f,baseVertexPerRow:n,level:l},e)}}function Ye(a,e){let{minRow:t,minCol:o,numberOfRows:i,numberOfColumns:s,vertexLimit:r,rowStep:n,colStep:l,baseVertexPerRow:d,level:m}=a;for(let c=0;c<i;c+=1)for(let h=0;h<s;h+=1){let u=2*r*r,p=new Uint32Array(u*3),f=0,v=o+(s-1-h),g=t+c;for(let w=0;w<r;w+=1)for(let y=0;y<r;y+=1){let _=c*n*r+w*n,C=h*l*r+y*l,N=Math.round(_*d+C),P=Math.round(N+l),T=Math.round(N+n*d),$=Math.round(T+l);p[f++]=N,p[f++]=T,p[f++]=P,p[f++]=P,p[f++]=T,p[f++]=$}e.set(`${m}/${g}/${v}`,p)}}function Ze(a,e){let t=new Map,{lods:o,origin:i,size:[s,r]}=a,{xmin:n,ymin:l,xmax:d,ymax:m}=e;for(let{resolution:c,level:h}of o){let u=Math.floor((i.y-m)/(r*c)),p=Math.floor((i.y-l)/(r*c))-1,f=Math.floor((n-i.x)/(s*c)),v=Math.ceil((d-i.x)/(s*c))-1,g=p-u+1,w=v-f+1;if(g<=0||w<=0)continue;let y=360/w,_=180/g,C=Math.max(y/s,_/r);Number.isFinite(C)&&t.set(o.length-1-h,{minRow:u,maxRow:p,minCol:f,maxCol:v,resolution:c,pixelAngle:C})}return t}function We(a){return typeof a=="string"?Number.parseInt(a,10):a}function je(a){a.set("premultiplyAlpha",!0);let e=a.getAsRGBA();return new ImageData(e,a.width,a.height)}function Je(a,e,t){return(a*(t-1)+1)*(e*(t-1)+1)}var j=class{constructor(e){this._componentCache=new Map,this._tileAnchorMap=new Map,this._attachedComponentKeys=new Set,this._remappedFaceMap=new Map,this._levels=[],this._blockBoundaryMap=new Map,this.radius=500,this.vertexPerEdge=25,this.imageSize=[0,0],this.layer=e.layer}get _meshResolutionLevel(){let e=this._levels[0],t=Number.POSITIVE_INFINITY;for(let o of this._levels){let i=this._blockBoundaryMap.get(o);i&&i.pixelAngle<t&&(t=i.pixelAngle,e=o)}return e}get blockBoundaryMap(){return this._blockBoundaryMap}get levels(){return this._levels}get baseLevel(){let e=this._levels[0],t=Number.NEGATIVE_INFINITY;for(let o of this._levels){let i=this._blockBoundaryMap.get(o);i&&i.pixelAngle>t&&(t=i.pixelAngle,e=o)}return e}get maxLevel(){return Math.max(...this._levels)}async load(e){if(await this.layer.load(e),this._blockBoundaryMap=Ze(this.layer.tileInfo,this.layer.fullExtent),this._levels=[...this._blockBoundaryMap.keys()].sort((t,o)=>t-o),this._levels.length===0)throw new Error("No valid tile levels found for panoramic mesh generation.");return this.imageSize=[this.layer.fullExtent.width,this.layer.fullExtent.height],this._baseMesh=this._createBaseMesh(this.radius,this.vertexPerEdge),this}get baseMesh(){if(!this._baseMesh)throw new Error("Base mesh is not created yet.");return this._baseMesh}destroy(){this._faceMap?.clear(),this._remappedFaceMap.clear(),this._componentCache.clear(),this._attachedComponentKeys.clear(),this._tileAnchorMap.clear(),this._baseMesh?.destroy()}_createBaseMesh(e,t){if(!this._blockBoundaryMap.has(this._meshResolutionLevel))throw new Error(`No block boundaries found for mesh resolution level ${this._meshResolutionLevel}`);let{maxCol:o,minCol:i,maxRow:s,minRow:r}=this._blockBoundaryMap.get(this._meshResolutionLevel),n=s-r+1,l=o-i+1,d=Je(n,l,t),m=new Float64Array(d*3),c=new Float32Array(d*3),h=new Float32Array(d*2),u=l*(t-1)+1,p=l*(t-1);for(let _=0;_<d;_+=1){let C=Math.floor(_/u),N=_%u,P=1-N/(l*(t-1)),T=C/(n*(t-1)),$=180*(1-T),E=360*(P-.5),A=[Math.sin($*Math.PI/180)*Math.sin(E*Math.PI/180),Math.cos(E*Math.PI/180)*Math.sin($*Math.PI/180),-Math.cos($*Math.PI/180)];m[_*3]=e*A[0],m[_*3+1]=e*A[1],m[_*3+2]=e*A[2],c[_*3]=-A[0],c[_*3+1]=-A[1],c[_*3+2]=-A[2];let k=C*u;N===p&&(m[_*3]=m[k*3],m[_*3+1]=m[k*3+1],m[_*3+2]=m[k*3+2],c[_*3]=c[k*3],c[_*3+1]=c[k*3+1],c[_*3+2]=c[k*3+2]),h[_*2]=P,h[_*2+1]=T}this._faceMap=He(this._blockBoundaryMap,Math.max(...this._levels),t);let{remappedFaceMap:f,splitPosition:v,splitNormals:g,splitUv:w}=this._preSplitTileGeometry(m,c,h);this._remappedFaceMap=f;let y=new pe({faces:new Uint32Array([0,1,2]),name:"__placeholder__"});return y.set({trustSourceNormals:!0}),this._baseMesh=new Ae({components:[y],vertexAttributes:new Le({position:v,normal:g,uv:w}),spatialReference:{wkid:3857}}),this._baseMesh}_preSplitTileGeometry(e,t,o){let i=0;for(let c of this._faceMap.values()){let h=new Set;for(let u=0;u<c.length;u+=1)h.add(c[u]);i+=h.size}let s=new Float64Array(i*3),r=new Float32Array(i*3),n=new Float32Array(i*2),l=new Map,d=1e-8,m=0;for(let[c,h]of this._faceMap){let u=new Map,p=0,f=0,v=0,g=Number.POSITIVE_INFINITY,w=Number.NEGATIVE_INFINITY,y=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY;for(let L=0;L<h.length;L+=1){let R=h[L];if(u.has(R))continue;let x=R*2,z=o[x],F=o[x+1];z<g&&(g=z),z>w&&(w=z),F<y&&(y=F),F>_&&(_=F);let B=R*3;p+=e[B],f+=e[B+1],v+=e[B+2],u.set(R,m),m+=1}let C=w-g,N=_-y,P=Math.hypot(p,f,v),T=this.radius*1.01,[$,E]=this.layer.tileInfo?.size??[256,256],A=.5/$,k=.5/E;this._tileAnchorMap.set(c,P>0?[p/P*T,f/P*T,v/P*T]:[0,0,T]);for(let[L,R]of u){let x=L*3,z=R*3;s[z]=e[x],s[z+1]=e[x+1],s[z+2]=e[x+2],r[z]=t[x],r[z+1]=t[x+1],r[z+2]=t[x+2];let F=L*2,B=R*2,fe=o[F],ge=o[F+1],ve=C<d?.5:(fe-g)/C,we=N<d?.5:(ge-y)/N;n[B]=A+ve*(1-2*A),n[B+1]=k+we*(1-2*k)}let D=new Uint32Array(h.length);for(let L=0;L<h.length;L+=1){let R=u.get(h[L]);if(R==null)throw new Error(`Failed to remap face index for tile ${c}`);D[L]=R}l.set(c,D)}return{remappedFaceMap:l,splitPosition:s,splitNormals:r,splitUv:n}}getTileAnchor(e,t,o){let i=this._tileAnchorMap.get(`${e}/${t}/${o}`);if(!i)throw new Error(`No tile anchor found for level ${e}, row ${t}, column ${o}`);return i}loadComponent(e,t,o,i){let s=`${e}/${t}/${o}`;if(this._attachedComponentKeys.has(s))return;let r=this._componentCache.get(s);if(r)r.material=new Z({unlit:!0,colorTexture:new W({data:i})});else{let l=this._remappedFaceMap.get(s);if(!l)throw new Error(`No faces found for level ${e}, row ${t}, column ${o}`);r=new pe({faces:l,name:s,material:new Z({unlit:!0,colorTexture:new W({data:i})})}),r.set({trustSourceNormals:!0}),this._componentCache.set(`${e}/${t}/${o}`,r)}r.name=s,this.baseMesh.addComponent(r);let n=this.baseMesh.components?.find(l=>l.name==="__placeholder__");n&&this.baseMesh.removeComponent(n),this._attachedComponentKeys.add(s),this.baseMesh.vertexAttributesChanged()}getFacesForTile(e,t,o){let i=this._remappedFaceMap.get(`${e}/${t}/${o}`);if(!i)throw new Error(`No faces found for level ${e}, row ${t}, column ${o}`);return i}unloadComponent(e,t,o){let i=`${e}/${t}/${o}`,s=this._componentCache.get(i);s&&this._attachedComponentKeys.has(i)&&(this.baseMesh.removeComponent(s),this._attachedComponentKeys.delete(i),this.baseMesh.vertexAttributesChanged())}},J=class{constructor(e){this._baseLevel=e.baseLevel,this._levels=[...e.levels],this._blockBoundaryMap=e.blockBoundaryMap}plan(e,t,o){let i=this._selectLevel(e);this._lastStableLevel=i;let s=this._createHybridDesiredSet(i,e);this._retainActiveLevelDetails(s,t,i);let r=this._prioritizeDesiredKeys(s,i),n=new Set([...t,...o]),l=r.filter(c=>!n.has(c)),d=r.filter(c=>t.has(c)),m=[...t].filter(c=>!s.has(c));return{stableLevel:i,desiredKeySet:s,toFetch:l,toKeep:d,toDrop:m}}_retainActiveLevelDetails(e,t,o){if(o!==this._baseLevel)for(let i of t){let s=this._parseTileKey(i);s&&s.level===o&&e.add(i)}}_createHybridDesiredSet(e,t){let o=new Set,i=this._blockBoundaryMap.get(this._baseLevel);if(!i)return o;for(let r=i.minRow;r<=i.maxRow;r+=1)for(let n=i.minCol;n<=i.maxCol;n+=1)o.add(`${this._baseLevel}/${r}/${n}`);if(e===this._baseLevel)return o;let s=this._getViewTileKeys(e,t.heading,t.pitch,t.hfov,t.vfov);for(let r of s)o.add(r);return o}_getViewTileKeys(e,t,o,i,s){let r=this._blockBoundaryMap.get(e);if(!r)return[];let{minRow:n,maxRow:l,minCol:d,maxCol:m}=r,c=l-n+1,h=m-d+1,u=Math.max(.1,Math.min(179.9,o))-90,p=Math.max(.01,Math.min(360,i)),f=Math.max(.01,Math.min(180,s)),v=360/h,g=180/c,w=Math.min(12,v*.35),y=Math.min(8,g*.35),_=Math.min(360,p+w*2),C=Math.min(180,f+y*2),N=Math.max(-89.9,Math.min(89.9,u-C/2)),P=Math.max(-89.9,Math.min(89.9,u+C/2)),T=x=>{let z=(90-x)/180,F=Math.floor(z*c);return n+Math.max(0,Math.min(c-1,F))},$=x=>{let z=this._normalizeHeading(x)/360,F=(Math.floor(z*h)%h+h)%h;return d+F},E=this._normalizeHeading(t-_/2),A=this._normalizeHeading(t+_/2),k=Math.min(T(P),T(N)),D=Math.max(T(P),T(N)),L=_>=360?[[d,m]]:E<=A?[[$(E),$(A)]]:[[d,$(A)],[$(E),m]],R=new Set;for(let x=k;x<=D;x+=1)for(let[z,F]of L)for(let B=z;B<=F;B+=1)R.add(`${e}/${x}/${B}`);return[...R]}_normalizeHeading(e){let t=e%360;return t<0?t+360:t}_prioritizeDesiredKeys(e,t){let o=[...e],i=s=>{let r=this._parseTileKey(s);return r?r.level===t?0:r.level===this._baseLevel?2:1:Number.POSITIVE_INFINITY};return o.sort((s,r)=>{let n=i(s)-i(r);if(n!==0)return n;let l=this._parseTileKey(s),d=this._parseTileKey(r);return!l||!d?s.localeCompare(r):l.level!==d.level?l.level-d.level:l.row!==d.row?l.row-d.row:l.col-d.col}),o}_parseTileKey(e){let[t,o,i]=e.split("/"),s=Number(t),r=Number(o),n=Number(i);if(!(!Number.isFinite(s)||!Number.isFinite(r)||!Number.isFinite(n)))return{level:s,row:r,col:n}}_selectLevel(e){let[t,o]=e.viewportSize,i=Math.max(1,t),s=Math.max(1,o),r=Math.max(e.hfov/i,e.vfov/s),n=.25,l=this._levels.map(h=>({level:h,boundary:this._blockBoundaryMap.get(h)})).filter(h=>h.boundary!=null).sort((h,u)=>u.boundary.pixelAngle-h.boundary.pixelAngle);if(l.length===0)return this._baseLevel;let d=new Map;for(let h of l)d.set(h.level,r/h.boundary.pixelAngle);let m=new Map;l.forEach((h,u)=>{m.set(h.level,u)});let c=l[l.length-1].level;for(let h of l)if((d.get(h.level)??0)>=n){c=h.level;break}if(this._lastStableLevel!=null&&m.has(this._lastStableLevel)){let h=m.get(this._lastStableLevel),u=m.get(c);if(u>h&&(d.get(this._lastStableLevel)??0)>=.2)return this._lastStableLevel;if(u<h)return this._lastStableLevel}return c}},q=class{constructor(e){this._layer=e,this._inflightControllers=new Map,this._inflightSet=new Set,this._loadedSet=new Set,this.fetchTileImageData=async(t,o,i,s)=>{let r=We(t),n=s?{signal:s}:void 0,l=this._meshBuilder.blockBoundaryMap.get(r);if(!l)throw new Error(`No tile boundary found for level ${t}`);let{maxCol:d,maxRow:m,minCol:c,minRow:h}=l,u=d-c+1,p=m-h+1,f=i-c,v=o-h,g=f*this._meshBuilder.imageSize[0]/u,w=v*this._meshBuilder.imageSize[1]/p,y=Math.min((f+1)*this._meshBuilder.imageSize[0]/u,this._meshBuilder.imageSize[0]),_=Math.min((v+1)*this._meshBuilder.imageSize[1]/p,this._meshBuilder.imageSize[1]),C=await this._layer.fetchPixels(new Pe({xmin:g-.5,ymin:.5-_,xmax:y-.5,ymax:.5-w,spatialReference:this._layer.fullExtent.spatialReference}),y-g,_-w,n);return je(C.pixelBlock)},this.loadComponent=(t,o,i,s)=>this._meshBuilder.loadComponent(t,o,i,s),this.unloadComponent=(t,o,i)=>this._meshBuilder.unloadComponent(t,o,i),this._meshBuilder=new j({layer:e})}get imageSize(){return this._meshBuilder.imageSize}get baseMesh(){return this._meshBuilder.baseMesh}get currentLevel(){return this._currentLevel}getTileAnchor(e,t,o){return this._meshBuilder.getTileAnchor(e,t,o)}async load(){return await this._meshBuilder.load(),this._tilePlanner=new J({blockBoundaryMap:this._meshBuilder.blockBoundaryMap,baseLevel:this._meshBuilder.baseLevel,levels:[...this._meshBuilder.levels]}),this}destroy(){for(let e of this._inflightControllers.values())e.abort();this._inflightControllers.clear(),this._inflightSet.clear(),this._loadedSet.clear(),this._tilePlanner=void 0,this._meshBuilder.destroy()}planTiles(e){if(!this._tilePlanner)throw new Error("PanoramicTileSource is not loaded yet.");let t=this._tilePlanner.plan(e,this._loadedSet,this._inflightSet);return this._currentLevel=t.stableLevel,t}markTileInflight(e,t){this._inflightSet.add(e),this._inflightControllers.set(e,t)}markTileLoaded(e){this._inflightSet.delete(e),this._inflightControllers.delete(e),this._loadedSet.add(e)}markTileInflightResolved(e){this._inflightSet.delete(e),this._inflightControllers.delete(e)}markTileDropped(e){this._loadedSet.delete(e)}cancelStaleInflight(e){for(let t of this._inflightSet)e.has(t)||(this._inflightControllers.get(t)?.abort(),this._inflightControllers.delete(t),this._inflightSet.delete(t))}},qe=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,M=(a,e,t,o)=>{for(var i=o>1?void 0:o?Qe(e,t):e,s=a.length-1,r;s>=0;s--)(r=a[s])&&(i=(o?r(e,t,i):r(i))||i);return o&&i&&qe(e,t,i),i},Xe=0,et=0,tt=0,it=new Set(["JPG","JPEG","TIFF","TIF","MRF"]),ot=new Set(["MRF","TIFF","TIF"]),b=class extends Te{constructor(a){super(a),this._size=[0,0],this.autoLoad=!1,this.type="image",this.uiStrings={},this._resolveMedia=async e=>{let t=Promise.withResolvers(),o=e?.signal?Y(e?.signal,"abort",t.resolve):null,i=this.type==="video"?document.createElement("video"):document.createElement("img");this.type==="video"&&(i.setAttribute("playsinline","true"),i.setAttribute("muted","true"),i.setAttribute("autoplay","true")),i.crossOrigin="anonymous",i.src=this.url;let s=null,r=this.type==="video"?Ge(i,m=>this.addHandles(m)):await new Promise((m,c)=>{s=[de(i,"error",h=>{c(h)}),de(i,"load",m)]}).finally(()=>{s?.forEach(m=>m.remove()),s=null}),n=Promise.race([r,t.promise]);try{await n}finally{o?.remove()}I(e);let l=i,d=await V({data:i,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return I(e),{media:l,mesh:d}}}static isPanoramicMedia(a){return!!a&&typeof a=="object"&&"declaredClass"in a&&typeof a.declaredClass=="string"&&a.declaredClass==="components.oriented-imagery-viewer-panoramic-viewer.support.PanoramicMedia"}destroy(){this._cache=void 0}get horizonPitch(){let{matrix:a}=this;return a?180*Math.asin(-a[6])/Math.PI:Xe}get horizonRoll(){let{matrix:a}=this;return a?180*Math.atan(a[7]/a[8])/Math.PI:tt}get horizonYaw(){let{matrix:a,cameraHeading:e}=this;return a?180*Math.atan2(a[3],a[0])/Math.PI:e?-e:et}get panoramicTileSource(){return this._panoramicTileSource}get element(){return this._cache}get size(){return this._size}async load(a){if(this.type==="video")return await this.loadVideoMesh(a);let e=this.extension;if(e||(e=le(this.url)),!e||!it.has(e))throw new Ie("unsupported-format",this.uiStrings["unsupported-format"]??"Unsupported image format: {extension}",{datasetFormat:e??"UNKNOWN FORMAT"});return ot.has(e)?await this.loadOptimizedImageMesh(a):await this.loadImageMesh(a)}async loadOptimizedImageMesh(a){this._panoramicTileSource?.destroy();let e=new Fe({url:this.url,datasetFormat:this.extension,skipMapInfo:!0,skipExtensions:["aux.xml","jgw"]});this._panoramicTileSource=new q(e);let{imageSize:t,baseMesh:o}=await this._panoramicTileSource.load();return I(a),{mesh:o,size:t}}async loadVideoMesh(a){if(I(a),this._cache){let o=await V({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(a);return I(a),{mesh:o,size:this._size}}let e=await this._resolveMedia(a);I(a),this._cache=e.media,this._size=[this._cache.videoWidth,this._cache.videoHeight];let t=await V({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(a);return I(a),{mesh:t,size:this._size}}async loadImageMesh(a){if(this._cache){let o=await V({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(a);return I(a),{mesh:o,size:this._size}}let e=await this._resolveMedia(a);I(a),this._cache=e.media;let t=e.mesh;return this._size=[e.media.width,e.media.height],{mesh:t,size:this._size}}};M([S()],b.prototype,"_size",2);M([S()],b.prototype,"_cache",2);M([S()],b.prototype,"autoLoad",2);M([S()],b.prototype,"cameraHeading",2);M([S()],b.prototype,"extension",2);M([S()],b.prototype,"horizonPitch",1);M([S()],b.prototype,"horizonRoll",1);M([S()],b.prototype,"horizonYaw",1);M([S()],b.prototype,"id",2);M([S()],b.prototype,"_panoramicTileSource",2);M([S()],b.prototype,"panoramicTileSource",1);M([S()],b.prototype,"element",1);M([S()],b.prototype,"matrix",2);M([S()],b.prototype,"size",1);M([S()],b.prototype,"type",2);M([S()],b.prototype,"uiStrings",2);M([S()],b.prototype,"url",2);b=M([Ce("components.oriented-imagery-viewer-panoramic-viewer.support.PanoramicMedia")],b);var at=()=>new ye({atmosphereEnabled:!1,starsEnabled:!1,lighting:{type:"virtual"}}),rt=()=>new Se({opacity:0,navigationConstraint:null}),st=()=>new X({x:0,y:0,z:0,spatialReference:K.WebMercator}),Q=class extends ie{constructor(){super(...arguments),this.#e=at(),this._graphicsController=new ne(this),this._ground=rt(),this._messages=se(),this._startPosition=null,this.tileCache=new Set,this._currentGraphicsStore=new _e,this._tileLabelGraphics=new Map,this._handleMouseWheel=e=>{e.detail.stopPropagation(),e.detail.deltaY<0?this._internalZoom.value?.zoomIn():this._internalZoom.value?.zoomOut()},this._handleDrag=e=>{e.stopPropagation();let{x:t,y:o,action:i}=e,s=null,r=null;switch(i){case"start":this._startPosition={x:t,y:o};break;case"update":if(!this._startPosition)return;let n=l=>{if(!this._startPosition||!this.camera)return;if(r||(r=l),l-r<16){s=requestAnimationFrame(n);return}let d=t-this._startPosition.x,m=o-this._startPosition.y,c=Be(this.camera?.heading-d*.1),h=Ee(this.camera.tilt+m*.1);this.yaw=c,this.pitch=h,this._startPosition={x:t,y:o},r=null};s=requestAnimationFrame(n);break;case"end":s!==null&&cancelAnimationFrame(s),this._startPosition=null;break}},this._internalMap=H(),this._internalZoom=H(),this._loading=!1,this.yaw=0,this.pitch=90,this.hideLoader=!1,this.hideTitle=!1,this.hideZoomControls=!1,this.hideVideoControls=!1,this.messageOverrides=this._messages._overrides}static{this.properties={_media:16,_internalMap:16,_internalZoom:16,_loading:16,_base:16,yaw:9,pitch:9,hideLoader:5,hideTitle:7,hideZoomControls:5,hideVideoControls:5,imageSize:32,media:0,messageOverrides:0,hfov:32,base:32}}static{this.styles=[ke]}#e;get view(){return this._internalMap?.value?.view}get camera(){if(!this.view?.destroyed)return this.view?.camera}set camera(e){!e||!this.view||this.view.destroyed||(e.position=st(),this.view.camera=e.clone())}get map(){return this._internalMap.value?.view?.map}get _fov(){return this.camera?.fov}set _fov(e){typeof e!="number"||!this._internalZoom.value||this._internalZoom.value?.zoomFOV(e)}get imageSize(){return this._media?.size}get media(){return this._media}set media(e){if(!e){this._mediaAbortController?.abort(),this._media=void 0,this._clearImage();return}this._media=b.isPanoramicMedia(e)?e:new b(e)}get hfov(){return this._internalZoom.value?.hfov}get base(){return this._base?.geometry}addGraphic(e){this._graphicsController.addGraphic(e)}addGraphics(e){this._graphicsController.addGraphics(e)}clearGraphics(){this._graphicsController.clearGraphics()}async mediaOnLoad(){return this._mediaPromise&&await this._mediaPromise,this._media}removeGraphic(e){this._graphicsController.removeGraphic(e)}removeGraphics(e){this._graphicsController.removeGraphics(e)}zoomIn(){this._internalZoom.value?.zoomIn()}zoomOut(){this._internalZoom.value?.zoomOut()}loaded(){this.manager.onLifecycle(()=>[be(()=>this.view,"drag",this._handleDrag),Me(()=>this.camera!=null,()=>{this.camera&&(this.camera.heading=this.yaw,this.camera.tilt=this.pitch,this._reloadCamera())}),G(()=>this.yaw,()=>{this.camera&&(this.camera.heading=this.yaw,this._reloadCamera())},{sync:!0,initial:!0}),G(()=>this.pitch,()=>{this.camera&&(this.camera.tilt=this.pitch,this._reloadCamera())},{sync:!0,initial:!0}),G(()=>this._fov,()=>{this._reloadCamera()},{sync:!0,initial:!0}),G(()=>this._media,e=>{this._mediaAbortController?.abort(),e&&(this._mediaAbortController=new AbortController,this._mediaPromise=this._loadMediaInternal(e,this._mediaAbortController))},{initial:!0,sync:!0}),G(()=>{if(!this.view?.ready||!this.base)return;let e=this._media?.panoramicTileSource;if(!e)return;let{camera:{heading:t,tilt:o,fov:i},width:s,height:r}=this.view,n=s/r;return{panoramicTileSource:e,heading:t,pitch:o,hfov:ce(i,n),vfov:me(i,n)}},e=>{e&&(this._tileUpdateDebounceHandle!=null&&clearTimeout(this._tileUpdateDebounceHandle),this._tileUpdateDebounceHandle=window.setTimeout(()=>{this._tileUpdateTask?.abort(),this._tileUpdateTask=re(async t=>{await this._updateTilesForCurrentView(e,t)}),this._tileUpdateDebounceHandle=void 0},150))},{initial:!0,sync:!0})])}_reloadCamera(){this.camera=this.camera?.clone()}_clearImage(){this._tileUpdateDebounceHandle!=null&&(clearTimeout(this._tileUpdateDebounceHandle),this._tileUpdateDebounceHandle=void 0),this._tileUpdateTask?.abort(),this._tileUpdateTask=void 0,this.tileCache.clear();for(let e of this._tileLabelGraphics.values())this.removeGraphic(e);this._tileLabelGraphics.clear(),this.clearGraphics(),this._base=void 0,this._currentGraphicsStore.removeAll()}_parseTileKey(e){let[t,o,i]=e.split("/").map(Number);return{level:t,row:o,col:i}}_createTileLabelGraphic(e,t){let{level:o,row:i,col:s}=this._parseTileKey(t),[r,n,l]=e.getTileAnchor(o,i,s);return new ue({attributes:{tileKey:t},geometry:new X({x:r,y:n,z:l,spatialReference:K.WebMercator}),symbol:new $e({color:[255,255,255,.95],font:new Ne({family:"Avenir Next",size:8,weight:"bold"}),haloColor:[0,0,0,.9],haloSize:1,horizontalAlignment:"center",text:t,verticalAlignment:"middle"})})}_attachTileLabel(e,t){if(this._tileLabelGraphics.has(t))return;let o=this._createTileLabelGraphic(e,t);this._tileLabelGraphics.set(t,o),this._currentGraphicsStore.add(o),this.addGraphic(o)}_detachTileLabel(e){let t=this._tileLabelGraphics.get(e);t&&(this.removeGraphic(t),this._currentGraphicsStore.remove(t),this._tileLabelGraphics.delete(e))}async _updateTilesForCurrentView(e,t){let{base:o}=this;if(!o)return;let{panoramicTileSource:i,heading:s,pitch:r,hfov:n,vfov:l}=e,d=[Math.max(1,this.view?.width??1),Math.max(1,this.view?.height??1)],m=i.planTiles({heading:s,pitch:r,hfov:n,vfov:l,imageSize:i.imageSize,viewportSize:d});if(I(t),i.cancelStaleInflight(m.desiredKeySet),m.toDrop.length>0){let u=new Set(m.toDrop);for(let p of u){let{level:f,row:v,col:g}=this._parseTileKey(p);i.unloadComponent(f,v,g),i.markTileDropped(p),this._detachTileLabel(p),this.tileCache.delete(p)}}let c=async u=>{if(u>=m.toFetch.length)return;let p=m.toFetch[u];if(I(t),!this.tileCache.has(p)){let{level:f,row:v,col:g}=this._parseTileKey(p),w=new AbortController,y=()=>{w.abort()};t.addEventListener("abort",y,{once:!0}),i.markTileInflight(p,w);try{let _=await i.fetchTileImageData(f,v,g,w.signal);I(t),m.desiredKeySet.has(p)&&!this.tileCache.has(p)&&(i.loadComponent(f,v,g,_),i.markTileLoaded(p),this._attachTileLabel(i,p),this.tileCache.add(p))}catch(_){ae(_)||te("error",this,"Failed loading panoramic tile component",{detail:{key:p,error:_}})}finally{t.removeEventListener("abort",y),i.markTileInflightResolved(p)}}await c(u+1)};await c(0);let h=i.planTiles({heading:s,pitch:r,hfov:n,vfov:l,imageSize:i.imageSize,viewportSize:d});if(I(t),h.toDrop.length>0){let u=new Set(h.toDrop);for(let p of u){let{level:f,row:v,col:g}=this._parseTileKey(p);i.unloadComponent(f,v,g),i.markTileDropped(p),this._detachTileLabel(p),this.tileCache.delete(p)}}}async _loadMediaInternal(e,t){if(this._loading=!0,this._clearImage(),!e)throw new Error("No media provided");let{mesh:o}=await e.load(t).finally(()=>{this._loading=!1});I(t),this._fov=he(Oe,this.el.clientWidth/this.el.clientHeight),this._base=De(o),this.addGraphic(this._base)}render(){return O`<calcite-panel .loading=${this.hideLoader?void 0:this._loading} .heading=${this.hideTitle?void 0:this._messages.title}><arcgis-scene .environment=${this.#e} hide-attribution .spatialReference=${K.WebMercator} viewing-mode=local .ground=${this._ground} @arcgisViewMouseWheel=${this._handleMouseWheel} ${U(this._internalMap)}><arcgis-oriented-imagery-viewer-panoramic-viewer-zoom .hidden=${this.hideZoomControls} slot=top-left ${U(this._internalZoom)}></arcgis-oriented-imagery-viewer-panoramic-viewer-zoom></arcgis-scene>${this.hideVideoControls||this.media?.type!=="video"?null:O`<arcgis-oriented-imagery-viewer-video-controls .videoRef=${this._media?.element}></arcgis-oriented-imagery-viewer-video-controls>`}</calcite-panel>`}};oe("arcgis-oriented-imagery-viewer-panoramic-viewer",Q);return Q},"geometry/SpatialReference","Graphic","views/3d/environment/Environment","core/reactiveUtils","applications/Components/baUtils","core/Collection","symbols/FillSymbol3DLayer","symbols/MeshSymbol3D","Ground","core/Accessor","core/accessorSupport/decorators","core/Error","geometry/Extent","geometry/Mesh","geometry/support/MeshComponent","geometry/support/MeshMaterialMetallicRoughness","geometry/support/MeshTexture","geometry/support/MeshVertexAttributes","geometry/Point","geometry/support/meshUtils","layers/ImageryTileLayer","symbols/Font","symbols/TextSymbol",a,b,c)
|
|
2
|
+
import c from"./F5JYYT42.js";import b from"./EXB4CY2Y.js";import{a as he,b as ce,c as me}from"./DFUR3C3D.js";import a from"./BOPNSNUT.js";import"./WJQUE4DR.js";import{a as se}from"./REB4CHAK.js";import"./Q7GF26CL.js";import"./U77WHUC6.js";import"./LXME6MU5.js";import{P as H,Q as U,R as ie,_ as oe,a as ee,b as O,p as te}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([K,ue,ye,{on:be,when:Me,watch:G},{once:Y,on:de},_e,xe,ze,Se,Te,{property:S,subclass:Ce},Ie,Pe,Ae,pe,Z,W,Le,X,{createSphere:Re},Fe,Ne,$e,{b:I,c:ae,d:re},ne,{a:le}])=>{var ke=ee`:host{height:100%;--arcgis-view-color-focus: none}`;function Be(a,e=!0){let t=((e?a:a*180/Math.PI)%360+360)%360;return e?t:t*Math.PI/180}function Ee(a,e=!0){let t=e?a:a*180/Math.PI,o=Math.max(.5,Math.min(179.5,t));return e?o:o*Math.PI/180}function Ge(a,e){return new Promise((t,o)=>{if(a.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA){t();return}e(Y(a,"canplay",t)),e(Y(a,"error",o))})}function De(a){return new ue({geometry:a,symbol:new ze({symbolLayers:new _e([new xe])})})}function V({data:a,center:e=Ve(),size:t=Ke,horizonPitch:o=0,horizonYaw:i=0,horizonRoll:s=0}){let r=e.clone();r.z=-t/2;let n=Re(r,{size:t,densificationFactor:2,vertexSpace:"georeferenced",material:new Z({colorTexture:new W({data:a}),unlit:!0})});if(n.components?.at(0)?.set({trustSourceNormals:!0}),n.vertexAttributes.uv){let l=n.vertexAttributes.uv.length??0;for(let d=0;d<l;d++)n.vertexAttributes.uv[d*2+0]=1-n.vertexAttributes.uv[d*2+0]}return n.rotate(o,s,i,{origin:n.extent.center}),n.centerAt(r),n}var Ve=()=>new X({x:0,y:0,z:0,spatialReference:K.WebMercator}),Ke=1e3,Oe=114;function He(a,e,t){let o=new Map,i=Array.from(a.keys()).sort((h,u)=>h-u)[0],{maxCol:s,minCol:r,maxRow:n,minRow:l}=a.get(i),d=s-r+1,m=n-l+1,c=d*(t-1)+1;return Ue({maximumPyramidLevel:e,blockBoundary:a,baseCols:d,baseRows:m,vertexPerEdge:t,baseVertexPerRow:c},o),o}function Ue(a,e){let{maximumPyramidLevel:t,blockBoundary:o,baseCols:i,baseRows:s,vertexPerEdge:r,baseVertexPerRow:n}=a;for(let l=0;l<=t;l+=1){let{maxCol:d,minCol:m,maxRow:c,minRow:h}=o.get(l),u=d-m+1,p=c-h+1,f=i/u,v=s/p,g=r-1;Ye({minRow:h,minCol:m,numberOfRows:p,numberOfColumns:u,vertexLimit:g,rowStep:v,colStep:f,baseVertexPerRow:n,level:l},e)}}function Ye(a,e){let{minRow:t,minCol:o,numberOfRows:i,numberOfColumns:s,vertexLimit:r,rowStep:n,colStep:l,baseVertexPerRow:d,level:m}=a;for(let c=0;c<i;c+=1)for(let h=0;h<s;h+=1){let u=2*r*r,p=new Uint32Array(u*3),f=0,v=o+(s-1-h),g=t+c;for(let w=0;w<r;w+=1)for(let y=0;y<r;y+=1){let _=c*n*r+w*n,C=h*l*r+y*l,N=Math.round(_*d+C),P=Math.round(N+l),T=Math.round(N+n*d),$=Math.round(T+l);p[f++]=N,p[f++]=T,p[f++]=P,p[f++]=P,p[f++]=T,p[f++]=$}e.set(`${m}/${g}/${v}`,p)}}function Ze(a,e){let t=new Map,{lods:o,origin:i,size:[s,r]}=a,{xmin:n,ymin:l,xmax:d,ymax:m}=e;for(let{resolution:c,level:h}of o){let u=Math.floor((i.y-m)/(r*c)),p=Math.floor((i.y-l)/(r*c))-1,f=Math.floor((n-i.x)/(s*c)),v=Math.ceil((d-i.x)/(s*c))-1,g=p-u+1,w=v-f+1;if(g<=0||w<=0)continue;let y=360/w,_=180/g,C=Math.max(y/s,_/r);Number.isFinite(C)&&t.set(o.length-1-h,{minRow:u,maxRow:p,minCol:f,maxCol:v,resolution:c,pixelAngle:C})}return t}function We(a){return typeof a=="string"?Number.parseInt(a,10):a}function je(a){a.set("premultiplyAlpha",!0);let e=a.getAsRGBA();return new ImageData(e,a.width,a.height)}function Je(a,e,t){return(a*(t-1)+1)*(e*(t-1)+1)}var j=class{constructor(e){this._componentCache=new Map,this._tileAnchorMap=new Map,this._attachedComponentKeys=new Set,this._remappedFaceMap=new Map,this._levels=[],this._blockBoundaryMap=new Map,this.radius=500,this.vertexPerEdge=25,this.imageSize=[0,0],this.layer=e.layer}get _meshResolutionLevel(){let e=this._levels[0],t=Number.POSITIVE_INFINITY;for(let o of this._levels){let i=this._blockBoundaryMap.get(o);i&&i.pixelAngle<t&&(t=i.pixelAngle,e=o)}return e}get blockBoundaryMap(){return this._blockBoundaryMap}get levels(){return this._levels}get baseLevel(){let e=this._levels[0],t=Number.NEGATIVE_INFINITY;for(let o of this._levels){let i=this._blockBoundaryMap.get(o);i&&i.pixelAngle>t&&(t=i.pixelAngle,e=o)}return e}get maxLevel(){return Math.max(...this._levels)}async load(e){if(await this.layer.load(e),this._blockBoundaryMap=Ze(this.layer.tileInfo,this.layer.fullExtent),this._levels=[...this._blockBoundaryMap.keys()].sort((t,o)=>t-o),this._levels.length===0)throw new Error("No valid tile levels found for panoramic mesh generation.");return this.imageSize=[this.layer.fullExtent.width,this.layer.fullExtent.height],this._baseMesh=this._createBaseMesh(this.radius,this.vertexPerEdge),this}get baseMesh(){if(!this._baseMesh)throw new Error("Base mesh is not created yet.");return this._baseMesh}destroy(){this._faceMap?.clear(),this._remappedFaceMap.clear(),this._componentCache.clear(),this._attachedComponentKeys.clear(),this._tileAnchorMap.clear(),this._baseMesh?.destroy()}_createBaseMesh(e,t){if(!this._blockBoundaryMap.has(this._meshResolutionLevel))throw new Error(`No block boundaries found for mesh resolution level ${this._meshResolutionLevel}`);let{maxCol:o,minCol:i,maxRow:s,minRow:r}=this._blockBoundaryMap.get(this._meshResolutionLevel),n=s-r+1,l=o-i+1,d=Je(n,l,t),m=new Float64Array(d*3),c=new Float32Array(d*3),h=new Float32Array(d*2),u=l*(t-1)+1,p=l*(t-1);for(let _=0;_<d;_+=1){let C=Math.floor(_/u),N=_%u,P=1-N/(l*(t-1)),T=C/(n*(t-1)),$=180*(1-T),E=360*(P-.5),A=[Math.sin($*Math.PI/180)*Math.sin(E*Math.PI/180),Math.cos(E*Math.PI/180)*Math.sin($*Math.PI/180),-Math.cos($*Math.PI/180)];m[_*3]=e*A[0],m[_*3+1]=e*A[1],m[_*3+2]=e*A[2],c[_*3]=-A[0],c[_*3+1]=-A[1],c[_*3+2]=-A[2];let k=C*u;N===p&&(m[_*3]=m[k*3],m[_*3+1]=m[k*3+1],m[_*3+2]=m[k*3+2],c[_*3]=c[k*3],c[_*3+1]=c[k*3+1],c[_*3+2]=c[k*3+2]),h[_*2]=P,h[_*2+1]=T}this._faceMap=He(this._blockBoundaryMap,Math.max(...this._levels),t);let{remappedFaceMap:f,splitPosition:v,splitNormals:g,splitUv:w}=this._preSplitTileGeometry(m,c,h);this._remappedFaceMap=f;let y=new pe({faces:new Uint32Array([0,1,2]),name:"__placeholder__"});return y.set({trustSourceNormals:!0}),this._baseMesh=new Ae({components:[y],vertexAttributes:new Le({position:v,normal:g,uv:w}),spatialReference:{wkid:3857}}),this._baseMesh}_preSplitTileGeometry(e,t,o){let i=0;for(let c of this._faceMap.values()){let h=new Set;for(let u=0;u<c.length;u+=1)h.add(c[u]);i+=h.size}let s=new Float64Array(i*3),r=new Float32Array(i*3),n=new Float32Array(i*2),l=new Map,d=1e-8,m=0;for(let[c,h]of this._faceMap){let u=new Map,p=0,f=0,v=0,g=Number.POSITIVE_INFINITY,w=Number.NEGATIVE_INFINITY,y=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY;for(let L=0;L<h.length;L+=1){let R=h[L];if(u.has(R))continue;let x=R*2,z=o[x],F=o[x+1];z<g&&(g=z),z>w&&(w=z),F<y&&(y=F),F>_&&(_=F);let B=R*3;p+=e[B],f+=e[B+1],v+=e[B+2],u.set(R,m),m+=1}let C=w-g,N=_-y,P=Math.hypot(p,f,v),T=this.radius*1.01,[$,E]=this.layer.tileInfo?.size??[256,256],A=.5/$,k=.5/E;this._tileAnchorMap.set(c,P>0?[p/P*T,f/P*T,v/P*T]:[0,0,T]);for(let[L,R]of u){let x=L*3,z=R*3;s[z]=e[x],s[z+1]=e[x+1],s[z+2]=e[x+2],r[z]=t[x],r[z+1]=t[x+1],r[z+2]=t[x+2];let F=L*2,B=R*2,fe=o[F],ge=o[F+1],ve=C<d?.5:(fe-g)/C,we=N<d?.5:(ge-y)/N;n[B]=A+ve*(1-2*A),n[B+1]=k+we*(1-2*k)}let D=new Uint32Array(h.length);for(let L=0;L<h.length;L+=1){let R=u.get(h[L]);if(R==null)throw new Error(`Failed to remap face index for tile ${c}`);D[L]=R}l.set(c,D)}return{remappedFaceMap:l,splitPosition:s,splitNormals:r,splitUv:n}}getTileAnchor(e,t,o){let i=this._tileAnchorMap.get(`${e}/${t}/${o}`);if(!i)throw new Error(`No tile anchor found for level ${e}, row ${t}, column ${o}`);return i}loadComponent(e,t,o,i){let s=`${e}/${t}/${o}`;if(this._attachedComponentKeys.has(s))return;let r=this._componentCache.get(s);if(r)r.material=new Z({unlit:!0,colorTexture:new W({data:i})});else{let l=this._remappedFaceMap.get(s);if(!l)throw new Error(`No faces found for level ${e}, row ${t}, column ${o}`);r=new pe({faces:l,name:s,material:new Z({unlit:!0,colorTexture:new W({data:i})})}),r.set({trustSourceNormals:!0}),this._componentCache.set(`${e}/${t}/${o}`,r)}r.name=s,this.baseMesh.addComponent(r);let n=this.baseMesh.components?.find(l=>l.name==="__placeholder__");n&&this.baseMesh.removeComponent(n),this._attachedComponentKeys.add(s),this.baseMesh.vertexAttributesChanged()}getFacesForTile(e,t,o){let i=this._remappedFaceMap.get(`${e}/${t}/${o}`);if(!i)throw new Error(`No faces found for level ${e}, row ${t}, column ${o}`);return i}unloadComponent(e,t,o){let i=`${e}/${t}/${o}`,s=this._componentCache.get(i);s&&this._attachedComponentKeys.has(i)&&(this.baseMesh.removeComponent(s),this._attachedComponentKeys.delete(i),this.baseMesh.vertexAttributesChanged())}},J=class{constructor(e){this._baseLevel=e.baseLevel,this._levels=[...e.levels],this._blockBoundaryMap=e.blockBoundaryMap}plan(e,t,o){let i=this._selectLevel(e);this._lastStableLevel=i;let s=this._createHybridDesiredSet(i,e);this._retainActiveLevelDetails(s,t,i);let r=this._prioritizeDesiredKeys(s,i),n=new Set([...t,...o]),l=r.filter(c=>!n.has(c)),d=r.filter(c=>t.has(c)),m=[...t].filter(c=>!s.has(c));return{stableLevel:i,desiredKeySet:s,toFetch:l,toKeep:d,toDrop:m}}_retainActiveLevelDetails(e,t,o){if(o!==this._baseLevel)for(let i of t){let s=this._parseTileKey(i);s&&s.level===o&&e.add(i)}}_createHybridDesiredSet(e,t){let o=new Set,i=this._blockBoundaryMap.get(this._baseLevel);if(!i)return o;for(let r=i.minRow;r<=i.maxRow;r+=1)for(let n=i.minCol;n<=i.maxCol;n+=1)o.add(`${this._baseLevel}/${r}/${n}`);if(e===this._baseLevel)return o;let s=this._getViewTileKeys(e,t.heading,t.pitch,t.hfov,t.vfov);for(let r of s)o.add(r);return o}_getViewTileKeys(e,t,o,i,s){let r=this._blockBoundaryMap.get(e);if(!r)return[];let{minRow:n,maxRow:l,minCol:d,maxCol:m}=r,c=l-n+1,h=m-d+1,u=Math.max(.1,Math.min(179.9,o))-90,p=Math.max(.01,Math.min(360,i)),f=Math.max(.01,Math.min(180,s)),v=360/h,g=180/c,w=Math.min(12,v*.35),y=Math.min(8,g*.35),_=Math.min(360,p+w*2),C=Math.min(180,f+y*2),N=Math.max(-89.9,Math.min(89.9,u-C/2)),P=Math.max(-89.9,Math.min(89.9,u+C/2)),T=x=>{let z=(90-x)/180,F=Math.floor(z*c);return n+Math.max(0,Math.min(c-1,F))},$=x=>{let z=this._normalizeHeading(x)/360,F=(Math.floor(z*h)%h+h)%h;return d+F},E=this._normalizeHeading(t-_/2),A=this._normalizeHeading(t+_/2),k=Math.min(T(P),T(N)),D=Math.max(T(P),T(N)),L=_>=360?[[d,m]]:E<=A?[[$(E),$(A)]]:[[d,$(A)],[$(E),m]],R=new Set;for(let x=k;x<=D;x+=1)for(let[z,F]of L)for(let B=z;B<=F;B+=1)R.add(`${e}/${x}/${B}`);return[...R]}_normalizeHeading(e){let t=e%360;return t<0?t+360:t}_prioritizeDesiredKeys(e,t){let o=[...e],i=s=>{let r=this._parseTileKey(s);return r?r.level===t?0:r.level===this._baseLevel?2:1:Number.POSITIVE_INFINITY};return o.sort((s,r)=>{let n=i(s)-i(r);if(n!==0)return n;let l=this._parseTileKey(s),d=this._parseTileKey(r);return!l||!d?s.localeCompare(r):l.level!==d.level?l.level-d.level:l.row!==d.row?l.row-d.row:l.col-d.col}),o}_parseTileKey(e){let[t,o,i]=e.split("/"),s=Number(t),r=Number(o),n=Number(i);if(!(!Number.isFinite(s)||!Number.isFinite(r)||!Number.isFinite(n)))return{level:s,row:r,col:n}}_selectLevel(e){let[t,o]=e.viewportSize,i=Math.max(1,t),s=Math.max(1,o),r=Math.max(e.hfov/i,e.vfov/s),n=.25,l=this._levels.map(h=>({level:h,boundary:this._blockBoundaryMap.get(h)})).filter(h=>h.boundary!=null).sort((h,u)=>u.boundary.pixelAngle-h.boundary.pixelAngle);if(l.length===0)return this._baseLevel;let d=new Map;for(let h of l)d.set(h.level,r/h.boundary.pixelAngle);let m=new Map;l.forEach((h,u)=>{m.set(h.level,u)});let c=l[l.length-1].level;for(let h of l)if((d.get(h.level)??0)>=n){c=h.level;break}if(this._lastStableLevel!=null&&m.has(this._lastStableLevel)){let h=m.get(this._lastStableLevel),u=m.get(c);if(u>h&&(d.get(this._lastStableLevel)??0)>=.2)return this._lastStableLevel;if(u<h)return this._lastStableLevel}return c}},q=class{constructor(e){this._layer=e,this._inflightControllers=new Map,this._inflightSet=new Set,this._loadedSet=new Set,this.fetchTileImageData=async(t,o,i,s)=>{let r=We(t),n=s?{signal:s}:void 0,l=this._meshBuilder.blockBoundaryMap.get(r);if(!l)throw new Error(`No tile boundary found for level ${t}`);let{maxCol:d,maxRow:m,minCol:c,minRow:h}=l,u=d-c+1,p=m-h+1,f=i-c,v=o-h,g=f*this._meshBuilder.imageSize[0]/u,w=v*this._meshBuilder.imageSize[1]/p,y=Math.min((f+1)*this._meshBuilder.imageSize[0]/u,this._meshBuilder.imageSize[0]),_=Math.min((v+1)*this._meshBuilder.imageSize[1]/p,this._meshBuilder.imageSize[1]),C=await this._layer.fetchPixels(new Pe({xmin:g-.5,ymin:.5-_,xmax:y-.5,ymax:.5-w,spatialReference:this._layer.fullExtent.spatialReference}),y-g,_-w,n);return je(C.pixelBlock)},this.loadComponent=(t,o,i,s)=>this._meshBuilder.loadComponent(t,o,i,s),this.unloadComponent=(t,o,i)=>this._meshBuilder.unloadComponent(t,o,i),this._meshBuilder=new j({layer:e})}get imageSize(){return this._meshBuilder.imageSize}get baseMesh(){return this._meshBuilder.baseMesh}get currentLevel(){return this._currentLevel}getTileAnchor(e,t,o){return this._meshBuilder.getTileAnchor(e,t,o)}async load(){return await this._meshBuilder.load(),this._tilePlanner=new J({blockBoundaryMap:this._meshBuilder.blockBoundaryMap,baseLevel:this._meshBuilder.baseLevel,levels:[...this._meshBuilder.levels]}),this}destroy(){for(let e of this._inflightControllers.values())e.abort();this._inflightControllers.clear(),this._inflightSet.clear(),this._loadedSet.clear(),this._tilePlanner=void 0,this._meshBuilder.destroy()}planTiles(e){if(!this._tilePlanner)throw new Error("PanoramicTileSource is not loaded yet.");let t=this._tilePlanner.plan(e,this._loadedSet,this._inflightSet);return this._currentLevel=t.stableLevel,t}markTileInflight(e,t){this._inflightSet.add(e),this._inflightControllers.set(e,t)}markTileLoaded(e){this._inflightSet.delete(e),this._inflightControllers.delete(e),this._loadedSet.add(e)}markTileInflightResolved(e){this._inflightSet.delete(e),this._inflightControllers.delete(e)}markTileDropped(e){this._loadedSet.delete(e)}cancelStaleInflight(e){for(let t of this._inflightSet)e.has(t)||(this._inflightControllers.get(t)?.abort(),this._inflightControllers.delete(t),this._inflightSet.delete(t))}},qe=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,M=(a,e,t,o)=>{for(var i=o>1?void 0:o?Qe(e,t):e,s=a.length-1,r;s>=0;s--)(r=a[s])&&(i=(o?r(e,t,i):r(i))||i);return o&&i&&qe(e,t,i),i},Xe=0,et=0,tt=0,it=new Set(["JPG","JPEG","TIFF","TIF","MRF"]),ot=new Set(["MRF","TIFF","TIF"]),b=class extends Te{constructor(a){super(a),this._size=[0,0],this.autoLoad=!1,this.type="image",this.uiStrings={},this._resolveMedia=async e=>{let t=Promise.withResolvers(),o=e?.signal?Y(e?.signal,"abort",t.resolve):null,i=this.type==="video"?document.createElement("video"):document.createElement("img");this.type==="video"&&(i.setAttribute("playsinline","true"),i.setAttribute("muted","true"),i.setAttribute("autoplay","true")),i.crossOrigin="anonymous",i.src=this.url;let s=null,r=this.type==="video"?Ge(i,m=>this.addHandles(m)):await new Promise((m,c)=>{s=[de(i,"error",h=>{c(h)}),de(i,"load",m)]}).finally(()=>{s?.forEach(m=>m.remove()),s=null}),n=Promise.race([r,t.promise]);try{await n}finally{o?.remove()}I(e);let l=i,d=await V({data:i,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return I(e),{media:l,mesh:d}}}static isPanoramicMedia(a){return!!a&&typeof a=="object"&&"declaredClass"in a&&typeof a.declaredClass=="string"&&a.declaredClass==="components.oriented-imagery-viewer-panoramic-viewer.support.PanoramicMedia"}destroy(){this._cache=void 0}get horizonPitch(){let{matrix:a}=this;return a?180*Math.asin(-a[6])/Math.PI:Xe}get horizonRoll(){let{matrix:a}=this;return a?180*Math.atan(a[7]/a[8])/Math.PI:tt}get horizonYaw(){let{matrix:a,cameraHeading:e}=this;return a?180*Math.atan2(a[3],a[0])/Math.PI:e?-e:et}get panoramicTileSource(){return this._panoramicTileSource}get element(){return this._cache}get size(){return this._size}async load(a){if(this.type==="video")return await this.loadVideoMesh(a);let e=this.extension;if(e||(e=le(this.url)),!e||!it.has(e))throw new Ie("unsupported-format",this.uiStrings["unsupported-format"]??"Unsupported image format: {extension}",{datasetFormat:e??"UNKNOWN FORMAT"});return ot.has(e)?await this.loadOptimizedImageMesh(a):await this.loadImageMesh(a)}async loadOptimizedImageMesh(a){this._panoramicTileSource?.destroy();let e=new Fe({url:this.url,datasetFormat:this.extension,skipMapInfo:!0,skipExtensions:["aux.xml","jgw"]});this._panoramicTileSource=new q(e);let{imageSize:t,baseMesh:o}=await this._panoramicTileSource.load();return I(a),{mesh:o,size:t}}async loadVideoMesh(a){if(I(a),this._cache){let o=await V({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(a);return I(a),{mesh:o,size:this._size}}let e=await this._resolveMedia(a);I(a),this._cache=e.media,this._size=[this._cache.videoWidth,this._cache.videoHeight];let t=await V({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(a);return I(a),{mesh:t,size:this._size}}async loadImageMesh(a){if(this._cache){let o=await V({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(a);return I(a),{mesh:o,size:this._size}}let e=await this._resolveMedia(a);I(a),this._cache=e.media;let t=e.mesh;return this._size=[e.media.width,e.media.height],{mesh:t,size:this._size}}};M([S()],b.prototype,"_size",2);M([S()],b.prototype,"_cache",2);M([S()],b.prototype,"autoLoad",2);M([S()],b.prototype,"cameraHeading",2);M([S()],b.prototype,"extension",2);M([S()],b.prototype,"horizonPitch",1);M([S()],b.prototype,"horizonRoll",1);M([S()],b.prototype,"horizonYaw",1);M([S()],b.prototype,"id",2);M([S()],b.prototype,"_panoramicTileSource",2);M([S()],b.prototype,"panoramicTileSource",1);M([S()],b.prototype,"element",1);M([S()],b.prototype,"matrix",2);M([S()],b.prototype,"size",1);M([S()],b.prototype,"type",2);M([S()],b.prototype,"uiStrings",2);M([S()],b.prototype,"url",2);b=M([Ce("components.oriented-imagery-viewer-panoramic-viewer.support.PanoramicMedia")],b);var at=()=>new ye({atmosphereEnabled:!1,starsEnabled:!1,lighting:{type:"virtual"}}),rt=()=>new Se({opacity:0,navigationConstraint:null}),st=()=>new X({x:0,y:0,z:0,spatialReference:K.WebMercator}),Q=class extends ie{constructor(){super(...arguments),this.#e=at(),this._graphicsController=new ne(this),this._ground=rt(),this._messages=se(),this._startPosition=null,this.tileCache=new Set,this._currentGraphicsStore=new _e,this._tileLabelGraphics=new Map,this._handleMouseWheel=e=>{e.detail.stopPropagation(),e.detail.deltaY<0?this._internalZoom.value?.zoomIn():this._internalZoom.value?.zoomOut()},this._handleDrag=e=>{e.stopPropagation();let{x:t,y:o,action:i}=e,s=null,r=null;switch(i){case"start":this._startPosition={x:t,y:o};break;case"update":if(!this._startPosition)return;let n=l=>{if(!this._startPosition||!this.camera)return;if(r||(r=l),l-r<16){s=requestAnimationFrame(n);return}let d=t-this._startPosition.x,m=o-this._startPosition.y,c=Be(this.camera?.heading-d*.1),h=Ee(this.camera.tilt+m*.1);this.yaw=c,this.pitch=h,this._startPosition={x:t,y:o},r=null};s=requestAnimationFrame(n);break;case"end":s!==null&&cancelAnimationFrame(s),this._startPosition=null;break}},this._internalMap=H(),this._internalZoom=H(),this._loading=!1,this.yaw=0,this.pitch=90,this.hideLoader=!1,this.hideTitle=!1,this.hideZoomControls=!1,this.hideVideoControls=!1,this.messageOverrides=this._messages._overrides}static{this.properties={_media:16,_internalMap:16,_internalZoom:16,_loading:16,_base:16,yaw:9,pitch:9,hideLoader:5,hideTitle:7,hideZoomControls:5,hideVideoControls:5,imageSize:32,media:0,messageOverrides:0,hfov:32,base:32}}static{this.styles=[ke]}#e;get view(){return this._internalMap?.value?.view}get camera(){if(!this.view?.destroyed)return this.view?.camera}set camera(e){!e||!this.view||this.view.destroyed||(e.position=st(),this.view.camera=e.clone())}get map(){return this._internalMap.value?.view?.map}get _fov(){return this.camera?.fov}set _fov(e){typeof e!="number"||!this._internalZoom.value||this._internalZoom.value?.zoomFOV(e)}get imageSize(){return this._media?.size}get media(){return this._media}set media(e){if(!e){this._mediaAbortController?.abort(),this._media=void 0,this._clearImage();return}this._media=b.isPanoramicMedia(e)?e:new b(e)}get hfov(){return this._internalZoom.value?.hfov}get base(){return this._base?.geometry}addGraphic(e){this._graphicsController.addGraphic(e)}addGraphics(e){this._graphicsController.addGraphics(e)}clearGraphics(){this._graphicsController.clearGraphics()}async mediaOnLoad(){return this._mediaPromise&&await this._mediaPromise,this._media}removeGraphic(e){this._graphicsController.removeGraphic(e)}removeGraphics(e){this._graphicsController.removeGraphics(e)}zoomIn(){this._internalZoom.value?.zoomIn()}zoomOut(){this._internalZoom.value?.zoomOut()}loaded(){this.manager.onLifecycle(()=>[be(()=>this.view,"drag",this._handleDrag),Me(()=>this.camera!=null,()=>{this.camera&&(this.camera.heading=this.yaw,this.camera.tilt=this.pitch,this._reloadCamera())}),G(()=>this.yaw,()=>{this.camera&&(this.camera.heading=this.yaw,this._reloadCamera())},{sync:!0,initial:!0}),G(()=>this.pitch,()=>{this.camera&&(this.camera.tilt=this.pitch,this._reloadCamera())},{sync:!0,initial:!0}),G(()=>this._fov,()=>{this._reloadCamera()},{sync:!0,initial:!0}),G(()=>this._media,e=>{this._mediaAbortController?.abort(),e&&(this._mediaAbortController=new AbortController,this._mediaPromise=this._loadMediaInternal(e,this._mediaAbortController))},{initial:!0,sync:!0}),G(()=>{if(!this.view?.ready||!this.base)return;let e=this._media?.panoramicTileSource;if(!e)return;let{camera:{heading:t,tilt:o,fov:i},width:s,height:r}=this.view,n=s/r;return{panoramicTileSource:e,heading:t,pitch:o,hfov:ce(i,n),vfov:me(i,n)}},e=>{e&&(this._tileUpdateDebounceHandle!=null&&clearTimeout(this._tileUpdateDebounceHandle),this._tileUpdateDebounceHandle=window.setTimeout(()=>{this._tileUpdateTask?.abort(),this._tileUpdateTask=re(async t=>{await this._updateTilesForCurrentView(e,t)}),this._tileUpdateDebounceHandle=void 0},150))},{initial:!0,sync:!0})])}_reloadCamera(){this.camera=this.camera?.clone()}_clearImage(){this._tileUpdateDebounceHandle!=null&&(clearTimeout(this._tileUpdateDebounceHandle),this._tileUpdateDebounceHandle=void 0),this._tileUpdateTask?.abort(),this._tileUpdateTask=void 0,this.tileCache.clear();for(let e of this._tileLabelGraphics.values())this.removeGraphic(e);this._tileLabelGraphics.clear(),this.clearGraphics(),this._base=void 0,this._currentGraphicsStore.removeAll()}_parseTileKey(e){let[t,o,i]=e.split("/").map(Number);return{level:t,row:o,col:i}}_createTileLabelGraphic(e,t){let{level:o,row:i,col:s}=this._parseTileKey(t),[r,n,l]=e.getTileAnchor(o,i,s);return new ue({attributes:{tileKey:t},geometry:new X({x:r,y:n,z:l,spatialReference:K.WebMercator}),symbol:new $e({color:[255,255,255,.95],font:new Ne({family:"Avenir Next",size:8,weight:"bold"}),haloColor:[0,0,0,.9],haloSize:1,horizontalAlignment:"center",text:t,verticalAlignment:"middle"})})}_attachTileLabel(e,t){if(this._tileLabelGraphics.has(t))return;let o=this._createTileLabelGraphic(e,t);this._tileLabelGraphics.set(t,o),this._currentGraphicsStore.add(o),this.addGraphic(o)}_detachTileLabel(e){let t=this._tileLabelGraphics.get(e);t&&(this.removeGraphic(t),this._currentGraphicsStore.remove(t),this._tileLabelGraphics.delete(e))}async _updateTilesForCurrentView(e,t){let{base:o}=this;if(!o)return;let{panoramicTileSource:i,heading:s,pitch:r,hfov:n,vfov:l}=e,d=[Math.max(1,this.view?.width??1),Math.max(1,this.view?.height??1)],m=i.planTiles({heading:s,pitch:r,hfov:n,vfov:l,imageSize:i.imageSize,viewportSize:d});if(I(t),i.cancelStaleInflight(m.desiredKeySet),m.toDrop.length>0){let u=new Set(m.toDrop);for(let p of u){let{level:f,row:v,col:g}=this._parseTileKey(p);i.unloadComponent(f,v,g),i.markTileDropped(p),this._detachTileLabel(p),this.tileCache.delete(p)}}let c=async u=>{if(u>=m.toFetch.length)return;let p=m.toFetch[u];if(I(t),!this.tileCache.has(p)){let{level:f,row:v,col:g}=this._parseTileKey(p),w=new AbortController,y=()=>{w.abort()};t.addEventListener("abort",y,{once:!0}),i.markTileInflight(p,w);try{let _=await i.fetchTileImageData(f,v,g,w.signal);I(t),m.desiredKeySet.has(p)&&!this.tileCache.has(p)&&(i.loadComponent(f,v,g,_),i.markTileLoaded(p),this._attachTileLabel(i,p),this.tileCache.add(p))}catch(_){ae(_)||te("error",this,"Failed loading panoramic tile component",{detail:{key:p,error:_}})}finally{t.removeEventListener("abort",y),i.markTileInflightResolved(p)}}await c(u+1)};await c(0);let h=i.planTiles({heading:s,pitch:r,hfov:n,vfov:l,imageSize:i.imageSize,viewportSize:d});if(I(t),h.toDrop.length>0){let u=new Set(h.toDrop);for(let p of u){let{level:f,row:v,col:g}=this._parseTileKey(p);i.unloadComponent(f,v,g),i.markTileDropped(p),this._detachTileLabel(p),this.tileCache.delete(p)}}}async _loadMediaInternal(e,t){if(this._loading=!0,this._clearImage(),!e)throw new Error("No media provided");let{mesh:o}=await e.load(t).finally(()=>{this._loading=!1});I(t),this._fov=he(Oe,this.el.clientWidth/this.el.clientHeight),this._base=De(o),this.addGraphic(this._base)}render(){return O`<calcite-panel .loading=${this.hideLoader?void 0:this._loading} .heading=${this.hideTitle?void 0:this._messages.title}><arcgis-scene .environment=${this.#e} hide-attribution .spatialReference=${K.WebMercator} viewing-mode=local .ground=${this._ground} @arcgisViewMouseWheel=${this._handleMouseWheel} ${U(this._internalMap)}><arcgis-oriented-imagery-viewer-panoramic-viewer-zoom .hidden=${this.hideZoomControls} slot=top-left ${U(this._internalZoom)}></arcgis-oriented-imagery-viewer-panoramic-viewer-zoom></arcgis-scene>${this.hideVideoControls||this.media?.type!=="video"?null:O`<arcgis-oriented-imagery-viewer-video-controls .videoRef=${this._media?.element}></arcgis-oriented-imagery-viewer-video-controls>`}</calcite-panel>`}};oe("arcgis-oriented-imagery-viewer-panoramic-viewer",Q);return Q},"geometry/SpatialReference","Graphic","views/3d/environment/Environment","core/reactiveUtils","applications/Components/baUtils","core/Collection","symbols/FillSymbol3DLayer","symbols/MeshSymbol3D","Ground","core/Accessor","core/accessorSupport/decorators","core/Error","geometry/Extent","geometry/Mesh","geometry/support/MeshComponent","geometry/support/MeshMaterialMetallicRoughness","geometry/support/MeshTexture","geometry/support/MeshVertexAttributes","geometry/Point","geometry/support/meshUtils","layers/ImageryTileLayer","symbols/Font","symbols/TextSymbol",a,b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as o}from"./6J3KSMFG.js";import{a as b}from"./
|
|
2
|
+
import{a as o}from"./6J3KSMFG.js";import{a as b}from"./REB4CHAK.js";import{h}from"./Q7GF26CL.js";import"./U77WHUC6.js";import"./LXME6MU5.js";import{R as c,X as r,_ as d,a as n,b as i}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([p,{watch:l}])=>{var g=n`.root{display:flex;flex-flow:column wrap;min-width:100%;& calcite-label:last-child{--calcite-label-margin-bottom: 0}}.block{border-block-end:none;margin:0}.block-content{display:flex;flex-direction:column;gap:var(--calcite-spacing-xs, 6px)}.radio-button-label-wrapper{align-items:center;display:flex;gap:var(--calcite-space-base, 2px)}`,a=class extends c{constructor(){super(),this.messages=b({blocking:!0}),this.showHeader=!1,this.hideTooltipsToggle=!1,this.hideLabelsToggle=!1,this.showDirectionModePicker=!1,this.sketchOptions=new p,this.arcgisPropertyChange=h()("tooltipsEnabled","labelsEnabled","directionMode"),this.manager.onLifecycle(()=>[l(()=>this.sketchOptions.labels.enabled,()=>{this.arcgisPropertyChange.emit({name:"labelsEnabled"})},{sync:!0}),l(()=>this.sketchOptions.tooltips.enabled,()=>{this.arcgisPropertyChange.emit({name:"tooltipsEnabled"})},{sync:!0}),l(()=>this.sketchOptions.values.directionMode,()=>{this.arcgisPropertyChange.emit({name:"directionMode"})},{sync:!0})])}static{this.properties={_hasContent:32,showHeader:5,label:1,hideTooltipsToggle:5,hideLabelsToggle:5,showDirectionModePicker:5,sketchOptions:0,tooltipsEnabled:5,labelsEnabled:5,directionMode:1}}static{this.styles=g}get _hasContent(){return!this.hideTooltipsToggle||!this.hideLabelsToggle||this.showDirectionModePicker}get tooltipsEnabled(){return this.sketchOptions.tooltips.enabled}set tooltipsEnabled(e){this.sketchOptions.tooltips.enabled=e}get labelsEnabled(){return this.sketchOptions.labels.enabled}set labelsEnabled(e){this.sketchOptions.labels.enabled=e}get directionMode(){return this.sketchOptions.values.directionMode}set directionMode(e){this.sketchOptions.values.directionMode=e}_onDirectionModeChange(e){this.sketchOptions.values.directionMode=e.currentTarget.selectedItem?.value}render(){let{label:e,messages:t}=this,s=e??t.componentLabel;return i`<div aria-label=${s??r} class="root">${this._hasContent?i`<calcite-block class="block" expanded .heading=${this.showHeader?e:""} .label=${s??""}><div class="block-content">${o({hidden:this.hideTooltipsToggle,children:this._renderTooltipsToggle()})}${o({hidden:this.hideLabelsToggle,children:this._renderLabelsToggle()})}${o({hidden:!this.showDirectionModePicker,children:this._renderDirectionModePicker()})}</div></calcite-block>`:void 0}</div>`}_renderTooltipsToggle(){let{messages:e}=this;return i`<arcgis-labeled-switch .checked=${this.sketchOptions.tooltips.effectiveEnabled} .hint=${e.tooltipsToggleHint} .label=${e.tooltipsToggle} @arcgisCheckedChanged=${t=>{this.sketchOptions.tooltips.enabled=t.detail}} .disabled=${this.sketchOptions.tooltips.forceEnabled}></arcgis-labeled-switch>`}_renderLabelsToggle(){let{messages:e}=this;return i`<arcgis-labeled-switch .checked=${this.sketchOptions.labels.enabled} .hint=${e.labelsToggleHint} .label=${e.labelsToggle} @arcgisCheckedChanged=${t=>{this.sketchOptions.labels.enabled=t.detail}}></arcgis-labeled-switch>`}_renderDirectionModePicker(){let{messages:e}=this,{directionMode:t}=this.sketchOptions.values;return i`<calcite-label layout=default scale=s>${e.directionModePicker}<calcite-radio-button-group name=direction-mode layout=horizontal scale=s @calciteRadioButtonGroupChange=${this._onDirectionModeChange}>${this._renderDirectionModeOption("relative",t,e.directionModeRelative)}${this._renderDirectionModeOption("absolute",t,e.directionModeAbsolute)}</calcite-radio-button-group></calcite-label>`}_renderDirectionModeOption(e,t,s){return i`<calcite-label layout=inline scale=s><calcite-radio-button .checked=${e===t} scale=s .value=${e}></calcite-radio-button><div class="radio-button-label-wrapper"><calcite-icon .icon=${`${e}-direction`} scale=s></calcite-icon>${s}</div></calcite-label>`}};d("arcgis-sketch-tooltip-controls",a);return a},"views/interactive/sketch/SketchOptions","core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as E}from"./
|
|
2
|
+
import{a as E}from"./Q7GF26CL.js";import{k as y,u as h,v as C,w as v,z as x}from"./PQ7NUE5C.js";export default $arcgis.t(([{on:P,watch:w},{createObservable:k,trackAccess:$},{property:O,subclass:B},M])=>{var q=(t,e)=>{y().manager.onLifecycle(()=>P(t,e,n.emit,{sync:!0}));let n=v();return n},g=(t,e)=>r=>N(r,t),p=class extends x{constructor(e,r){super(e),this.Y=new Map,this.A=void 0,this.#t=k();let o=this;o.#e=r,o.Z(),o.setProvisionalExports(m(e,new WeakRef(o),e.M.length-1,o.instance,o.Y),!1),h(e,n=>{if(n){let c=w(()=>e[n],s=>{if(s===o.instance)return;let i=o.instance;o.exports=s,o.instance=s,o.Y.forEach((a,d)=>e.requestUpdate(a,i[d])),o.#o&&i.destroy(),o.#o=!1},{sync:!0});o.onDestroy(c.remove)}},o.exports)}#o;#t;#e;get exports(){return $(this.#t),super.exports}set exports(e){super.exports=e,this.#t.notify()}Z(){let e=this;e.instance="prototype"in e.#e&&"declaredClass"in e.#e.prototype?new e.#e:e.#e(),e.#o=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#o&&this.instance.destroy?.()}},N=E(p),m=(t,e,r,o,n)=>new Proxy(o,{get:(c,s)=>{let i=c[s];if(typeof s=="symbol"||n.has(s))return i;let a=t.M[r];return a.A=s,C(t,d=>{if(a.A=void 0,d!==void 0){let l=d.key;n.set(s,l);let u=t.constructor.getPropertyOptions(l),f=s!==l&&l.toLowerCase().includes("disable");D(e,u,s,l,f),u.i===void 0&&L(u,r,s,f)}},i)}}),D=(t,e,r,o,n,c)=>c=w(()=>{let s=t.deref();return s===void 0||s.component.manager.destroyed?c=c.remove():s.exports[r]},(s,i)=>{if(!c)return;t.deref().component?.requestUpdate(o,n?!i:i),e.c=!1},{sync:!0}),L=(t,e,r,o)=>{t.d.get=function(){let n=this.M[e]?.exports[r];return o?!n:n},t.d.set=function(n){let c=this.M[e];c.A!==r&&(c.exports[r]=o?!n:n)}},A=t=>t.Y,b=(t,e)=>{let r=e.manager.useRefSync(t);r?.hostDestroy(),r?.Z(),r?.hostConnected()},G=t=>{let e=class extends M{},r=typeof t=="function"?t():t,o=Object.getOwnPropertyDescriptors(r);for(let[c,s]of Object.entries(o))Object.defineProperty(e.prototype,c,s),O()(e.prototype,c);let n=B()(e);return new n};var J=g,Q=p,X=b,z=m,ee=A;return{a:q,b:G,c:J,d:Q,e:X,f:z,g:ee}},"core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import h from"./3ND2HQVC.js";import{a as X,b as G,c as E,d as m,e as M,f as I,g as u,j as g,k as v}from"./FXUZU52U.js";import{a as d}from"./6J3KSMFG.js";import f from"./F4AJCUZ6.js";import"./WJQUE4DR.js";import{a as J}from"./5T4TPTPA.js";import e from"./OISNNHIG.js";import{a as F}from"./7465ANAR.js";import{a as $}from"./L5IRXOCJ.js";import c from"./KRJCOTGC.js";import b from"./U7WRQCRV.js";import{h as H}from"./GIBXI44G.js";import"./RQT2PVDJ.js";import a from"./SBYVR52H.js";import"./LXME6MU5.js";import{P as A,Q as k,R as C,T as z,U as j,X as S,_ as B,a as P,b as p,x as L}from"./7IGSTLKW.js";import"./TAVTDQ6S.js";export default $arcgis.t(([re,{property:a,subclass:se},{watch:ne},{convertUnit:K},,,,q,{e:T},Z])=>{var ae=P`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}.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:300px;position:relative}.root{--calcite-label-margin-bottom: 0;padding:var(--arcgis-internal-padding)}.content{flex-direction:column;display:flex;gap:var(--arcgis-internal-panel-gap)}.header{display:flex;align-items:center;justify-content:space-between;margin-block-end:var(--calcite-spacing-sm);&.no-content{margin-block-end:calc(var(--calcite-spacing-sm) * -1)}}.heading{margin:0}.settings-content{display:flex;flex-direction:column;gap:var(--calcite-spacing-xxl);padding:var(--calcite-spacing-md);>div{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);>p{margin:0;font-size:var(--calcite-font-size-md)}}}.warning-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}`,le=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,n=(i,t,e,r)=>{for(var l=r>1?void 0:r?oe(t,e):t,c=i.length-1,h;c>=0;c--)(h=i[c])&&(l=(r?h(t,e,l):h(l))||l);return r&&l&&le(t,e,l),l},s=class extends Z{constructor(){super(...arguments),this._resettingUnits=!1,this.supportedViewType="3d",this.unsupportedErrorMessage="The Volume Measurement component is only supported in 3D views."}initialize(){this.addHandles([ne(()=>({analysis:this.analysis,volumeDisplayUnit:this._userVolumeDisplayUnit,elevationDisplayUnit:this._userElevationDisplayUnit,areaDisplayUnit:this._userAreaDisplayUnit,perimeterDisplayUnit:this._userPerimeterDisplayUnit,elevationInputUnit:this._userElevationInputUnit}),({analysis:i,volumeDisplayUnit:t,elevationDisplayUnit:e,areaDisplayUnit:r,perimeterDisplayUnit:l,elevationInputUnit:c})=>{this._resettingUnits||(t&&(i.displayUnits.volume=t),e&&(i.displayUnits.elevation=e),r&&(i.displayUnits.area=r),l&&(i.displayUnits.length=l),c&&(i.inputUnits.elevation=c))},{sync:!0,initial:!0})])}get _defaultElevationInputUnit(){return this.defaultMeasurementSystem==="metric"?"meters":"feet"}get state(){let{analysis:i,disabled:t,operationState:e,ready:r,supported:l}=this,{valid:c}=i;return X({supported:l,disabled:t,ready:r,operationState:e,valid:c})}get displayState(){return G(this.state,this.analysis.geometry!=null)}get measurement(){let{analysisView:i}=this,t=i?.result,e=i?.error==null;return{mode:"euclidean",totalVolume:u(t?.totalVolume,e),cutVolume:u(t?.cutVolume,e),fillVolume:u(t?.fillVolume,e),netVolume:u(t?.netVolume,e),area:u(t?.area,e),perimeter:u(t?.perimeter,e)}}constructAnalysis(){return new re}async place(i){await this.analysisView?.place(i)}clearAnalysis(){this.analysis.geometry=null}get volumeDisplayUnitOptions(){return g(this._userVolumeUnitOptions,I,I)}set volumeDisplayUnitOptions(i){this._userVolumeUnitOptions=i}get volumeDisplayUnit(){let i=this.volumeDisplayUnitOptions;return v({userUnit:this._userVolumeDisplayUnit,analysisUnit:this.analysis.displayUnits?.volume,options:i,defaultUnit:this.defaultMeasurementSystem,viewUnit:this.view?.options.displayUnits.volume})}set volumeDisplayUnit(i){this._userVolumeDisplayUnit=i}get elevationDisplayUnitOptions(){return g(this._userElevationDisplayUnitOptions,m,m)}set elevationDisplayUnitOptions(i){this._userElevationDisplayUnitOptions=i}get elevationDisplayUnit(){let i=this.elevationDisplayUnitOptions;return v({userUnit:this._userElevationDisplayUnit,analysisUnit:this.analysis.displayUnits?.elevation,options:i,defaultUnit:this.defaultMeasurementSystem,viewUnit:this.view?.options.displayUnits.verticalLength})}set elevationDisplayUnit(i){this._userElevationDisplayUnit=i}get elevationInputUnitOptions(){return g(this._userElevationInputUnitOptions,E,E)}set elevationInputUnitOptions(i){this._userElevationInputUnitOptions=i}get elevationInputUnit(){let i=this.elevationInputUnitOptions,t=this.view?.options.inputUnits.verticalLength,e=t==="imperial"?"feet":t==="metric"?"meters":t;return v({userUnit:this._userElevationInputUnit,analysisUnit:this.analysis.inputUnits?.elevation,options:i,defaultUnit:this._defaultElevationInputUnit,viewUnit:e})}set elevationInputUnit(i){let{cutFillOptions:t,inputUnits:e}=this.analysis,{targetElevation:r}=t;i&&r!=null&&(t.targetElevation=K(r,e.elevation??"meters",i)),this._userElevationInputUnit=i}get areaDisplayUnitOptions(){return g(this._userAreaUnitOptions,M,M)}set areaDisplayUnitOptions(i){this._userAreaUnitOptions=i}get areaDisplayUnit(){let i=this.areaDisplayUnitOptions;return v({userUnit:this._userAreaDisplayUnit,analysisUnit:this.analysis.displayUnits?.area,options:i,defaultUnit:this.defaultMeasurementSystem,viewUnit:this.view?.options.displayUnits.area})}set areaDisplayUnit(i){this._userAreaDisplayUnit=i}get perimeterDisplayUnitOptions(){return g(this._userPerimeterDisplayUnitOptions,m,m)}set perimeterDisplayUnitOptions(i){this._userPerimeterDisplayUnitOptions=i}get perimeterDisplayUnit(){let i=this.perimeterDisplayUnitOptions;return v({userUnit:this._userPerimeterDisplayUnit,analysisUnit:this.analysis.displayUnits?.length,options:i,defaultUnit:this.defaultMeasurementSystem,viewUnit:this.view?.options.displayUnits.length})}set perimeterDisplayUnit(i){this._userPerimeterDisplayUnit=i}get canResetElevationInputUnit(){return this._userElevationInputUnit!=null||this.analysis.inputUnits.elevation!=null}get canResetElevationDisplayUnit(){return this._userElevationDisplayUnit!=null||this.analysis.displayUnits.elevation!=null}get canResetVolumeDisplayUnit(){return this._userVolumeDisplayUnit!=null||this.analysis.displayUnits.volume!=null}get canResetAreaDisplayUnit(){return this._userAreaDisplayUnit!=null||this.analysis.displayUnits.area!=null}get canResetPerimeterDisplayUnit(){return this._userPerimeterDisplayUnit!=null||this.analysis.displayUnits.length!=null}resetUnit(i){let{cutFillOptions:t,inputUnits:e,displayUnits:r}=this.analysis;this._resettingUnits=!0;try{switch(i){case"elevation-input":{let{targetElevation:l}=t;l!=null&&e.elevation!=null&&(t.targetElevation=K(l,e.elevation,"meters")),this._userElevationInputUnit=void 0,e.elevation=null;break}case"elevation":this._userElevationDisplayUnit=void 0,r.elevation=null;break;case"volume":this._userVolumeDisplayUnit=void 0,r.volume=null;break;case"area":this._userAreaDisplayUnit=void 0,r.area=null;break;case"length":this._userPerimeterDisplayUnit=void 0,r.length=null;break}}finally{this._resettingUnits=!1}}};n([a()],s.prototype,"_defaultElevationInputUnit",1);n([a()],s.prototype,"state",1);n([a()],s.prototype,"displayState",1);n([a({readOnly:!0})],s.prototype,"measurement",1);n([a()],s.prototype,"volumeDisplayUnitOptions",1);n([a()],s.prototype,"volumeDisplayUnit",1);n([a()],s.prototype,"_userVolumeDisplayUnit",2);n([a()],s.prototype,"_userVolumeUnitOptions",2);n([a()],s.prototype,"elevationDisplayUnitOptions",1);n([a()],s.prototype,"elevationDisplayUnit",1);n([a()],s.prototype,"_userElevationDisplayUnit",2);n([a()],s.prototype,"_userElevationDisplayUnitOptions",2);n([a()],s.prototype,"elevationInputUnitOptions",1);n([a()],s.prototype,"elevationInputUnit",1);n([a()],s.prototype,"_userElevationInputUnit",2);n([a()],s.prototype,"_userElevationInputUnitOptions",2);n([a()],s.prototype,"areaDisplayUnitOptions",1);n([a()],s.prototype,"areaDisplayUnit",1);n([a()],s.prototype,"_userAreaDisplayUnit",2);n([a()],s.prototype,"_userAreaUnitOptions",2);n([a()],s.prototype,"perimeterDisplayUnitOptions",1);n([a()],s.prototype,"perimeterDisplayUnit",1);n([a()],s.prototype,"_userPerimeterDisplayUnit",2);n([a()],s.prototype,"_userPerimeterDisplayUnitOptions",2);n([a({readOnly:!0})],s.prototype,"canResetElevationInputUnit",1);n([a({readOnly:!0})],s.prototype,"canResetElevationDisplayUnit",1);n([a({readOnly:!0})],s.prototype,"canResetVolumeDisplayUnit",1);n([a({readOnly:!0})],s.prototype,"canResetAreaDisplayUnit",1);n([a({readOnly:!0})],s.prototype,"canResetPerimeterDisplayUnit",1);s=n([se("components.volume-measurement.VolumeMeasurementViewModel")],s);var ce=q(s),V=class extends C{constructor(){super(...arguments),this.viewModel=ce(this),this.messages=F({blocking:!0}),this.#e=A(),this._settingsPopoverIsOpen=!1,this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.icon="cut-and-fill-volume-calculation",this.interactionDisabled=this.viewModel.interactionDisabled,this.state=this.viewModel.state,this.volumeDisplayUnit=this.viewModel.volumeDisplayUnit,this.volumeDisplayUnitOptions=this.viewModel.volumeDisplayUnitOptions,this.elevationDisplayUnit=this.viewModel.elevationDisplayUnit,this.elevationDisplayUnitOptions=this.viewModel.elevationDisplayUnitOptions,this.elevationInputUnit=this.viewModel.elevationInputUnit,this.elevationInputUnitOptions=this.viewModel.elevationInputUnitOptions,this.areaDisplayUnit=this.viewModel.areaDisplayUnit,this.areaDisplayUnitOptions=this.viewModel.areaDisplayUnitOptions,this.perimeterDisplayUnit=this.viewModel.perimeterDisplayUnit,this.perimeterDisplayUnitOptions=this.viewModel.perimeterDisplayUnitOptions,this.hideHeader=!1,this.hideSettingsButton=!1,this.hideResetUnitsButton=!1,this.hideElevationDisplayUnitSelect=!1,this.hideElevationInputUnitSelect=!1,this.hideVolumeDisplayUnitSelect=!1,this.hideModeSelect=!1,this.hideStartButton=!1,this.hideVisualization=this.viewModel.hideVisualization,this.headingLevel=2,this.hideAreaDisplayUnitSelect=!1,this.hidePerimeterDisplayUnitSelect=!1,this.arcgisPropertyChange=H()("analysis","interactionDisabled","state"),this.arcgisReady=L()}static{this.properties={_settingsPopoverIsOpen:16,view:0,analysis:0,autoDestroyDisabled:5,icon:3,interactionDisabled:5,label:1,messageOverrides:0,referenceElement:1,mode:1,state:32,volumeDisplayUnit:1,volumeDisplayUnitOptions:0,elevationDisplayUnit:1,elevationDisplayUnitOptions:0,elevationInputUnit:1,elevationInputUnitOptions:0,areaDisplayUnit:1,areaDisplayUnitOptions:0,perimeterDisplayUnit:1,perimeterDisplayUnitOptions:0,hideHeader:5,hideSettingsButton:5,hideResetUnitsButton:5,hideElevationDisplayUnitSelect:5,hideElevationInputUnitSelect:5,hideVolumeDisplayUnitSelect:5,hideModeSelect:5,hideStartButton:5,hideVisualization:5,headingLevel:9,hideAreaDisplayUnitSelect:5,hidePerimeterDisplayUnitSelect:5}}static{this.styles=ae}#e;get mode(){return this.viewModel.analysis.measureType}set mode(t){this.viewModel.analysis.measureType=t}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){T(this.viewModel.start())}#i(t){t&&queueMicrotask(()=>{this.isConnected&&(t.referenceElement=this.#e.value)})}_onSettingsPopoverClose(){this._settingsPopoverIsOpen=!1}_onSettingsPopoverOpen(){this._settingsPopoverIsOpen=!0}render(){let{hideResetUnitsButton:t,messages:e,viewModel:r}=this,{measurement:l,state:c}=r,h=this.volumeDisplayUnitOptions,U=this.volumeDisplayUnit,b=this.elevationDisplayUnitOptions,f=this.elevationDisplayUnit,_=this.elevationInputUnitOptions,N=this.elevationInputUnit,Q=this.perimeterDisplayUnitOptions,W=this.perimeterDisplayUnit,Y=this.areaDisplayUnitOptions,ee=this.areaDisplayUnit,R=r.analysisView?.error?.name,ie=[y({hidden:this.hideElevationInputUnitSelect,options:_,selectLabel:e.elevationInputUnit,value:N,canReset:!t&&r.canResetElevationInputUnit,resetLabel:e.reset,onReset:()=>r.resetUnit("elevation-input"),onChange:o=>{this.viewModel.elevationInputUnit=o}})],te=[y({hidden:this.hideElevationDisplayUnitSelect,options:b,selectLabel:e.elevationDisplayUnit,value:f,canReset:!t&&r.canResetElevationDisplayUnit,resetLabel:e.reset,onReset:()=>r.resetUnit("elevation"),onChange:o=>{this.viewModel.elevationDisplayUnit=o}}),y({hidden:this.hideVolumeDisplayUnitSelect,options:h,selectLabel:e.volumeDisplayUnit,value:U,canReset:!t&&r.canResetVolumeDisplayUnit,resetLabel:e.reset,onReset:()=>r.resetUnit("volume"),onChange:o=>{this.viewModel.volumeDisplayUnit=o}}),y({hidden:this.hideAreaDisplayUnitSelect,options:Y,selectLabel:e.areaDisplayUnit,value:ee,canReset:!t&&r.canResetAreaDisplayUnit,resetLabel:e.reset,onReset:()=>r.resetUnit("area"),onChange:o=>{this.viewModel.areaDisplayUnit=o}}),y({hidden:this.hidePerimeterDisplayUnitSelect,options:Q,selectLabel:e.perimeterDisplayUnit,value:W,canReset:!t&&r.canResetPerimeterDisplayUnit,resetLabel:e.reset,onReset:()=>r.resetUnit("length"),onChange:o=>{this.viewModel.perimeterDisplayUnit=o}})],x=[this.hideElevationInputUnitSelect].filter(o=>!o).length===0,w=[this.hideElevationDisplayUnitSelect,this.hideVolumeDisplayUnitSelect,this.hideAreaDisplayUnitSelect,this.hidePerimeterDisplayUnitSelect].filter(o=>!o).length===0,D=this.hideSettingsButton||x&&w,O=(this._settingsPopoverIsOpen?e.hideSettings:e.showSettings)??"";return p`<div aria-label=${e.componentLabel??S} class=${z({root:!0,[$.widget]:!0,[$.panel]:!0})} role=presentation>${c==="disabled"&&p`<calcite-scrim></calcite-scrim>`||""}${d({hidden:this.hideHeader&&D,children:p`<div class=${z({header:!0,"no-content":this.hideHeader})}>${d({hidden:this.hideHeader,children:J({class:"heading",level:this.headingLevel,children:e.title})})}<span style=${j({flex:1})}></span>${d({hidden:D,children:p`<calcite-action icon=gear slot=settings .text=${O} title=${O??S} ${k(this.#e)}></calcite-action><calcite-popover slot=settings .label=${O} .referenceElement=${this.#e.value} overlay-positioning=fixed placement=bottom-end auto-close .open=${D?!1:void 0} @calcitePopoverOpen=${this._onSettingsPopoverOpen} @calcitePopoverClose=${this._onSettingsPopoverClose} ${k(this.#i)}><div class="settings-content">${d({hidden:x,children:p`<div><p .hidden=${w}>${e.inputUnits}</p>${ie}</div>`})}${d({hidden:w,children:p`<div><p .hidden=${x}>${e.displayUnits}</p>${te}</div>`})}</div></calcite-popover>`})}</div>`})}<div class="content">${d({hidden:this.hideModeSelect,children:p`<calcite-label>${this.messages.measurementMode}<calcite-select label="Select measurement mode" .value=${this.mode} @calciteSelectChange=${o=>{this.analysis.measureType=o.target.selectedOption.value}}><calcite-option value=cut-fill>${e.cutAndFillMode}</calcite-option><calcite-option value=stockpile>${e.stockpileMode}</calcite-option></calcite-select></calcite-label>`})}${R!=null&&pe({error:R,messages:e})||""}<arcgis-measurement-content .state=${r.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[{title:e.cutVolume,measurement:l.cutVolume},{title:e.fillVolume,measurement:l.fillVolume},{title:e.netVolume,measurement:l.netVolume},{title:e.area,measurement:l.area},{title:e.perimeter,measurement:l.perimeter}]}>${d({hidden:this.hideStartButton,children:p`<calcite-button slot=actions width=full .disabled=${c==="disabled"||this.interactionDisabled} @click=${()=>{this.viewModel.start({clear:!0})}}>${e.newMeasurement}</calcite-button>`})}</arcgis-measurement-content></div></div>`}};function y(i){let{hidden:t,options:e,selectLabel:r,value:l,canReset:c,resetLabel:h,onReset:U,onChange:b}=i;return t?null:p`<arcgis-unit-select .options=${e} .selectLabel=${r} .value=${l} .canReset=${c} .resetLabel=${h} @arcgisInternalUnitReset=${U} @arcgisUnitSelectChange=${f=>{let _=f.detail;e.includes(_)&&b(_)}}></arcgis-unit-select>`}function pe(i){let t,{messages:e,error:r}=i;switch(r){case"insufficient-data":t=e.errorInsufficientData;break;case"perimeter-too-large":t=e.errorPerimeterTooLarge;break;case"unsupported-coordinate-system":t=e.errorUnsupportedCoordinateSystem;break;case"unsupported-layer-transparency":t=e.errorUnsupportedLayerTransparency;break;default:t=e.errorUnknown;break}return p`<calcite-notice aria-live=polite open icon=exclamation-mark-triangle-f kind=warning><div slot=title class="warning-title">${t}</div><div slot=message>${t}</div></calcite-notice>`}B("arcgis-volume-measurement",V);return V},"analysis/VolumeMeasurementAnalysis","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/unitUtils",a,b,c,e,f,h)
|
|
2
|
+
import h from"./UYAOMCP7.js";import{a as X,b as G,c as E,d as m,e as M,f as I,g as u,j as g,k as v}from"./FXUZU52U.js";import{a as d}from"./6J3KSMFG.js";import f from"./BOPNSNUT.js";import"./WJQUE4DR.js";import{a as J}from"./VKO3CVBS.js";import e from"./QVJ2FUNW.js";import{a as F}from"./REB4CHAK.js";import{a as $}from"./L5IRXOCJ.js";import c from"./7JPHMESH.js";import b from"./OLY5EME5.js";import{h as H}from"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import"./LXME6MU5.js";import{P as A,Q as k,R as C,T as z,U as j,X as S,_ as B,a as P,b as p,x as L}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([re,{property:a,subclass:se},{watch:ne},{convertUnit:K},,,,q,{e:T},Z])=>{var ae=P`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}.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:300px;position:relative}.root{--calcite-label-margin-bottom: 0;padding:var(--arcgis-internal-padding)}.content{flex-direction:column;display:flex;gap:var(--arcgis-internal-panel-gap)}.header{display:flex;align-items:center;justify-content:space-between;margin-block-end:var(--calcite-spacing-sm);&.no-content{margin-block-end:calc(var(--calcite-spacing-sm) * -1)}}.heading{margin:0}.settings-content{display:flex;flex-direction:column;gap:var(--calcite-spacing-xxl);padding:var(--calcite-spacing-md);>div{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);>p{margin:0;font-size:var(--calcite-font-size-md)}}}.warning-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}`,le=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,n=(i,t,e,r)=>{for(var l=r>1?void 0:r?oe(t,e):t,c=i.length-1,h;c>=0;c--)(h=i[c])&&(l=(r?h(t,e,l):h(l))||l);return r&&l&&le(t,e,l),l},s=class extends Z{constructor(){super(...arguments),this._resettingUnits=!1,this.supportedViewType="3d",this.unsupportedErrorMessage="The Volume Measurement component is only supported in 3D views."}initialize(){this.addHandles([ne(()=>({analysis:this.analysis,volumeDisplayUnit:this._userVolumeDisplayUnit,elevationDisplayUnit:this._userElevationDisplayUnit,areaDisplayUnit:this._userAreaDisplayUnit,perimeterDisplayUnit:this._userPerimeterDisplayUnit,elevationInputUnit:this._userElevationInputUnit}),({analysis:i,volumeDisplayUnit:t,elevationDisplayUnit:e,areaDisplayUnit:r,perimeterDisplayUnit:l,elevationInputUnit:c})=>{this._resettingUnits||(t&&(i.displayUnits.volume=t),e&&(i.displayUnits.elevation=e),r&&(i.displayUnits.area=r),l&&(i.displayUnits.length=l),c&&(i.inputUnits.elevation=c))},{sync:!0,initial:!0})])}get _defaultElevationInputUnit(){return this.defaultMeasurementSystem==="metric"?"meters":"feet"}get state(){let{analysis:i,disabled:t,operationState:e,ready:r,supported:l}=this,{valid:c}=i;return X({supported:l,disabled:t,ready:r,operationState:e,valid:c})}get displayState(){return G(this.state,this.analysis.geometry!=null)}get measurement(){let{analysisView:i}=this,t=i?.result,e=i?.error==null;return{mode:"euclidean",totalVolume:u(t?.totalVolume,e),cutVolume:u(t?.cutVolume,e),fillVolume:u(t?.fillVolume,e),netVolume:u(t?.netVolume,e),area:u(t?.area,e),perimeter:u(t?.perimeter,e)}}constructAnalysis(){return new re}async place(i){await this.analysisView?.place(i)}clearAnalysis(){this.analysis.geometry=null}get volumeDisplayUnitOptions(){return g(this._userVolumeUnitOptions,I,I)}set volumeDisplayUnitOptions(i){this._userVolumeUnitOptions=i}get volumeDisplayUnit(){let i=this.volumeDisplayUnitOptions;return v({userUnit:this._userVolumeDisplayUnit,analysisUnit:this.analysis.displayUnits?.volume,options:i,defaultUnit:this.defaultMeasurementSystem,viewUnit:this.view?.options.displayUnits.volume})}set volumeDisplayUnit(i){this._userVolumeDisplayUnit=i}get elevationDisplayUnitOptions(){return g(this._userElevationDisplayUnitOptions,m,m)}set elevationDisplayUnitOptions(i){this._userElevationDisplayUnitOptions=i}get elevationDisplayUnit(){let i=this.elevationDisplayUnitOptions;return v({userUnit:this._userElevationDisplayUnit,analysisUnit:this.analysis.displayUnits?.elevation,options:i,defaultUnit:this.defaultMeasurementSystem,viewUnit:this.view?.options.displayUnits.verticalLength})}set elevationDisplayUnit(i){this._userElevationDisplayUnit=i}get elevationInputUnitOptions(){return g(this._userElevationInputUnitOptions,E,E)}set elevationInputUnitOptions(i){this._userElevationInputUnitOptions=i}get elevationInputUnit(){let i=this.elevationInputUnitOptions,t=this.view?.options.inputUnits.verticalLength,e=t==="imperial"?"feet":t==="metric"?"meters":t;return v({userUnit:this._userElevationInputUnit,analysisUnit:this.analysis.inputUnits?.elevation,options:i,defaultUnit:this._defaultElevationInputUnit,viewUnit:e})}set elevationInputUnit(i){let{cutFillOptions:t,inputUnits:e}=this.analysis,{targetElevation:r}=t;i&&r!=null&&(t.targetElevation=K(r,e.elevation??"meters",i)),this._userElevationInputUnit=i}get areaDisplayUnitOptions(){return g(this._userAreaUnitOptions,M,M)}set areaDisplayUnitOptions(i){this._userAreaUnitOptions=i}get areaDisplayUnit(){let i=this.areaDisplayUnitOptions;return v({userUnit:this._userAreaDisplayUnit,analysisUnit:this.analysis.displayUnits?.area,options:i,defaultUnit:this.defaultMeasurementSystem,viewUnit:this.view?.options.displayUnits.area})}set areaDisplayUnit(i){this._userAreaDisplayUnit=i}get perimeterDisplayUnitOptions(){return g(this._userPerimeterDisplayUnitOptions,m,m)}set perimeterDisplayUnitOptions(i){this._userPerimeterDisplayUnitOptions=i}get perimeterDisplayUnit(){let i=this.perimeterDisplayUnitOptions;return v({userUnit:this._userPerimeterDisplayUnit,analysisUnit:this.analysis.displayUnits?.length,options:i,defaultUnit:this.defaultMeasurementSystem,viewUnit:this.view?.options.displayUnits.length})}set perimeterDisplayUnit(i){this._userPerimeterDisplayUnit=i}get canResetElevationInputUnit(){return this._userElevationInputUnit!=null||this.analysis.inputUnits.elevation!=null}get canResetElevationDisplayUnit(){return this._userElevationDisplayUnit!=null||this.analysis.displayUnits.elevation!=null}get canResetVolumeDisplayUnit(){return this._userVolumeDisplayUnit!=null||this.analysis.displayUnits.volume!=null}get canResetAreaDisplayUnit(){return this._userAreaDisplayUnit!=null||this.analysis.displayUnits.area!=null}get canResetPerimeterDisplayUnit(){return this._userPerimeterDisplayUnit!=null||this.analysis.displayUnits.length!=null}resetUnit(i){let{cutFillOptions:t,inputUnits:e,displayUnits:r}=this.analysis;this._resettingUnits=!0;try{switch(i){case"elevation-input":{let{targetElevation:l}=t;l!=null&&e.elevation!=null&&(t.targetElevation=K(l,e.elevation,"meters")),this._userElevationInputUnit=void 0,e.elevation=null;break}case"elevation":this._userElevationDisplayUnit=void 0,r.elevation=null;break;case"volume":this._userVolumeDisplayUnit=void 0,r.volume=null;break;case"area":this._userAreaDisplayUnit=void 0,r.area=null;break;case"length":this._userPerimeterDisplayUnit=void 0,r.length=null;break}}finally{this._resettingUnits=!1}}};n([a()],s.prototype,"_defaultElevationInputUnit",1);n([a()],s.prototype,"state",1);n([a()],s.prototype,"displayState",1);n([a({readOnly:!0})],s.prototype,"measurement",1);n([a()],s.prototype,"volumeDisplayUnitOptions",1);n([a()],s.prototype,"volumeDisplayUnit",1);n([a()],s.prototype,"_userVolumeDisplayUnit",2);n([a()],s.prototype,"_userVolumeUnitOptions",2);n([a()],s.prototype,"elevationDisplayUnitOptions",1);n([a()],s.prototype,"elevationDisplayUnit",1);n([a()],s.prototype,"_userElevationDisplayUnit",2);n([a()],s.prototype,"_userElevationDisplayUnitOptions",2);n([a()],s.prototype,"elevationInputUnitOptions",1);n([a()],s.prototype,"elevationInputUnit",1);n([a()],s.prototype,"_userElevationInputUnit",2);n([a()],s.prototype,"_userElevationInputUnitOptions",2);n([a()],s.prototype,"areaDisplayUnitOptions",1);n([a()],s.prototype,"areaDisplayUnit",1);n([a()],s.prototype,"_userAreaDisplayUnit",2);n([a()],s.prototype,"_userAreaUnitOptions",2);n([a()],s.prototype,"perimeterDisplayUnitOptions",1);n([a()],s.prototype,"perimeterDisplayUnit",1);n([a()],s.prototype,"_userPerimeterDisplayUnit",2);n([a()],s.prototype,"_userPerimeterDisplayUnitOptions",2);n([a({readOnly:!0})],s.prototype,"canResetElevationInputUnit",1);n([a({readOnly:!0})],s.prototype,"canResetElevationDisplayUnit",1);n([a({readOnly:!0})],s.prototype,"canResetVolumeDisplayUnit",1);n([a({readOnly:!0})],s.prototype,"canResetAreaDisplayUnit",1);n([a({readOnly:!0})],s.prototype,"canResetPerimeterDisplayUnit",1);s=n([se("components.volume-measurement.VolumeMeasurementViewModel")],s);var ce=q(s),V=class extends C{constructor(){super(...arguments),this.viewModel=ce(this),this.messages=F({blocking:!0}),this.#e=A(),this._settingsPopoverIsOpen=!1,this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.icon="cut-and-fill-volume-calculation",this.interactionDisabled=this.viewModel.interactionDisabled,this.state=this.viewModel.state,this.volumeDisplayUnit=this.viewModel.volumeDisplayUnit,this.volumeDisplayUnitOptions=this.viewModel.volumeDisplayUnitOptions,this.elevationDisplayUnit=this.viewModel.elevationDisplayUnit,this.elevationDisplayUnitOptions=this.viewModel.elevationDisplayUnitOptions,this.elevationInputUnit=this.viewModel.elevationInputUnit,this.elevationInputUnitOptions=this.viewModel.elevationInputUnitOptions,this.areaDisplayUnit=this.viewModel.areaDisplayUnit,this.areaDisplayUnitOptions=this.viewModel.areaDisplayUnitOptions,this.perimeterDisplayUnit=this.viewModel.perimeterDisplayUnit,this.perimeterDisplayUnitOptions=this.viewModel.perimeterDisplayUnitOptions,this.hideHeader=!1,this.hideSettingsButton=!1,this.hideResetUnitsButton=!1,this.hideElevationDisplayUnitSelect=!1,this.hideElevationInputUnitSelect=!1,this.hideVolumeDisplayUnitSelect=!1,this.hideModeSelect=!1,this.hideStartButton=!1,this.hideVisualization=this.viewModel.hideVisualization,this.headingLevel=2,this.hideAreaDisplayUnitSelect=!1,this.hidePerimeterDisplayUnitSelect=!1,this.arcgisPropertyChange=H()("analysis","interactionDisabled","state"),this.arcgisReady=L()}static{this.properties={_settingsPopoverIsOpen:16,view:0,analysis:0,autoDestroyDisabled:5,icon:3,interactionDisabled:5,label:1,messageOverrides:0,referenceElement:1,mode:1,state:32,volumeDisplayUnit:1,volumeDisplayUnitOptions:0,elevationDisplayUnit:1,elevationDisplayUnitOptions:0,elevationInputUnit:1,elevationInputUnitOptions:0,areaDisplayUnit:1,areaDisplayUnitOptions:0,perimeterDisplayUnit:1,perimeterDisplayUnitOptions:0,hideHeader:5,hideSettingsButton:5,hideResetUnitsButton:5,hideElevationDisplayUnitSelect:5,hideElevationInputUnitSelect:5,hideVolumeDisplayUnitSelect:5,hideModeSelect:5,hideStartButton:5,hideVisualization:5,headingLevel:9,hideAreaDisplayUnitSelect:5,hidePerimeterDisplayUnitSelect:5}}static{this.styles=ae}#e;get mode(){return this.viewModel.analysis.measureType}set mode(t){this.viewModel.analysis.measureType=t}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){T(this.viewModel.start())}#i(t){t&&queueMicrotask(()=>{this.isConnected&&(t.referenceElement=this.#e.value)})}_onSettingsPopoverClose(){this._settingsPopoverIsOpen=!1}_onSettingsPopoverOpen(){this._settingsPopoverIsOpen=!0}render(){let{hideResetUnitsButton:t,messages:e,viewModel:r}=this,{measurement:l,state:c}=r,h=this.volumeDisplayUnitOptions,U=this.volumeDisplayUnit,b=this.elevationDisplayUnitOptions,f=this.elevationDisplayUnit,_=this.elevationInputUnitOptions,N=this.elevationInputUnit,Q=this.perimeterDisplayUnitOptions,W=this.perimeterDisplayUnit,Y=this.areaDisplayUnitOptions,ee=this.areaDisplayUnit,R=r.analysisView?.error?.name,ie=[y({hidden:this.hideElevationInputUnitSelect,options:_,selectLabel:e.elevationInputUnit,value:N,canReset:!t&&r.canResetElevationInputUnit,resetLabel:e.reset,onReset:()=>r.resetUnit("elevation-input"),onChange:o=>{this.viewModel.elevationInputUnit=o}})],te=[y({hidden:this.hideElevationDisplayUnitSelect,options:b,selectLabel:e.elevationDisplayUnit,value:f,canReset:!t&&r.canResetElevationDisplayUnit,resetLabel:e.reset,onReset:()=>r.resetUnit("elevation"),onChange:o=>{this.viewModel.elevationDisplayUnit=o}}),y({hidden:this.hideVolumeDisplayUnitSelect,options:h,selectLabel:e.volumeDisplayUnit,value:U,canReset:!t&&r.canResetVolumeDisplayUnit,resetLabel:e.reset,onReset:()=>r.resetUnit("volume"),onChange:o=>{this.viewModel.volumeDisplayUnit=o}}),y({hidden:this.hideAreaDisplayUnitSelect,options:Y,selectLabel:e.areaDisplayUnit,value:ee,canReset:!t&&r.canResetAreaDisplayUnit,resetLabel:e.reset,onReset:()=>r.resetUnit("area"),onChange:o=>{this.viewModel.areaDisplayUnit=o}}),y({hidden:this.hidePerimeterDisplayUnitSelect,options:Q,selectLabel:e.perimeterDisplayUnit,value:W,canReset:!t&&r.canResetPerimeterDisplayUnit,resetLabel:e.reset,onReset:()=>r.resetUnit("length"),onChange:o=>{this.viewModel.perimeterDisplayUnit=o}})],x=[this.hideElevationInputUnitSelect].filter(o=>!o).length===0,w=[this.hideElevationDisplayUnitSelect,this.hideVolumeDisplayUnitSelect,this.hideAreaDisplayUnitSelect,this.hidePerimeterDisplayUnitSelect].filter(o=>!o).length===0,D=this.hideSettingsButton||x&&w,O=(this._settingsPopoverIsOpen?e.hideSettings:e.showSettings)??"";return p`<div aria-label=${e.componentLabel??S} class=${z({root:!0,[$.widget]:!0,[$.panel]:!0})} role=presentation>${c==="disabled"&&p`<calcite-scrim></calcite-scrim>`||""}${d({hidden:this.hideHeader&&D,children:p`<div class=${z({header:!0,"no-content":this.hideHeader})}>${d({hidden:this.hideHeader,children:J({class:"heading",level:this.headingLevel,children:e.title})})}<span style=${j({flex:1})}></span>${d({hidden:D,children:p`<calcite-action icon=gear slot=settings .text=${O} title=${O??S} ${k(this.#e)}></calcite-action><calcite-popover slot=settings .label=${O} .referenceElement=${this.#e.value} overlay-positioning=fixed placement=bottom-end auto-close .open=${D?!1:void 0} @calcitePopoverOpen=${this._onSettingsPopoverOpen} @calcitePopoverClose=${this._onSettingsPopoverClose} ${k(this.#i)}><div class="settings-content">${d({hidden:x,children:p`<div><p .hidden=${w}>${e.inputUnits}</p>${ie}</div>`})}${d({hidden:w,children:p`<div><p .hidden=${x}>${e.displayUnits}</p>${te}</div>`})}</div></calcite-popover>`})}</div>`})}<div class="content">${d({hidden:this.hideModeSelect,children:p`<calcite-label>${this.messages.measurementMode}<calcite-select label="Select measurement mode" .value=${this.mode} @calciteSelectChange=${o=>{this.analysis.measureType=o.target.selectedOption.value}}><calcite-option value=cut-fill>${e.cutAndFillMode}</calcite-option><calcite-option value=stockpile>${e.stockpileMode}</calcite-option></calcite-select></calcite-label>`})}${R!=null&&pe({error:R,messages:e})||""}<arcgis-measurement-content .state=${r.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[{title:e.cutVolume,measurement:l.cutVolume},{title:e.fillVolume,measurement:l.fillVolume},{title:e.netVolume,measurement:l.netVolume},{title:e.area,measurement:l.area},{title:e.perimeter,measurement:l.perimeter}]}>${d({hidden:this.hideStartButton,children:p`<calcite-button slot=actions width=full .disabled=${c==="disabled"||this.interactionDisabled} @click=${()=>{this.viewModel.start({clear:!0})}}>${e.newMeasurement}</calcite-button>`})}</arcgis-measurement-content></div></div>`}};function y(i){let{hidden:t,options:e,selectLabel:r,value:l,canReset:c,resetLabel:h,onReset:U,onChange:b}=i;return t?null:p`<arcgis-unit-select .options=${e} .selectLabel=${r} .value=${l} .canReset=${c} .resetLabel=${h} @arcgisInternalUnitReset=${U} @arcgisUnitSelectChange=${f=>{let _=f.detail;e.includes(_)&&b(_)}}></arcgis-unit-select>`}function pe(i){let t,{messages:e,error:r}=i;switch(r){case"insufficient-data":t=e.errorInsufficientData;break;case"perimeter-too-large":t=e.errorPerimeterTooLarge;break;case"unsupported-coordinate-system":t=e.errorUnsupportedCoordinateSystem;break;case"unsupported-layer-transparency":t=e.errorUnsupportedLayerTransparency;break;default:t=e.errorUnknown;break}return p`<calcite-notice aria-live=polite open icon=exclamation-mark-triangle-f kind=warning><div slot=title class="warning-title">${t}</div><div slot=message>${t}</div></calcite-notice>`}B("arcgis-volume-measurement",V);return V},"analysis/VolumeMeasurementAnalysis","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/unitUtils",a,b,c,e,f,h)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as t}from"./6J3KSMFG.js";import{a as o}from"./
|
|
2
|
+
import{a as t}from"./6J3KSMFG.js";import{a as o}from"./VKO3CVBS.js";import{a as r}from"./L5IRXOCJ.js";import{T as i,X as l,b as e}from"./PQ7NUE5C.js";function $(a){let{children:n,hideHeader:d,headingLevel:m=2,label:c,title:s}=a;return e`<div aria-label=${c??l} class=${i({...typeof a.class=="string"?{[a.class]:!0}:a.class,[r.widget]:!0,[r.panel]:!0})} role=presentation>${t({hidden:d||!s,children:o({level:m,children:s})})}${n}</div>`}export{$ as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{c as t}from"./
|
|
2
|
+
import{c as t}from"./Q7GF26CL.js";import{x as e}from"./PQ7NUE5C.js";var i=t((o,s)=>(s.onLoaded(()=>{let l=o.el;o.listenOn(l.childElem,"calciteFlowItemClose",()=>{o.arcgisClose.emit(),o.autoDestroyDisabled||o.destroy()})}),e()));export{i as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{h as w}from"./
|
|
2
|
+
import{h as w}from"./Q7GF26CL.js";import"./U77WHUC6.js";import"./LXME6MU5.js";import{R as f,U as u,_,a as d,b as m}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";var x=d`:host{display:block;pointer-events:initial}calcite-popover{pointer-events:initial}.content{min-inline-size:min(calc(100cqw - var(--arcgis-view-popover-width-reserve, 32px)),var(--arcgis-view-popover-min-inline-size, 300px));max-inline-size:min(calc(100cqw - var(--arcgis-view-popover-width-reserve, 32px)),var(--arcgis-view-popover-max-inline-size, 400px));max-height:var( --arcgis-view-popover-content-max-height, calc(100cqh - var(--arcgis-view-popover-height-reserve, 77px)) );-webkit-user-select:none;user-select:none;overflow-y:auto}`,h=6,y=2,A=32,S=77,B=0;function z(t){let e=C(t),i=t.actionBarLayout==="vertical"?0:e;return{effectiveTailOffset:e,horizontalMargin:$(t),verticalMargin:P(t)+i+t.headerRect.height,offsetSkidding:O(t),placement:L(t)}}function C({actionBarLayout:t,actionRect:e,barRect:i,tailAttachmentAppearance:a}){let n=a==="bar"?t==="vertical"?Math.max(0,e.left-i.left):Math.max(0,e.top-i.top):0;return h+n}function $({actionBarLayout:t,barRect:{left:e,right:i},actionRect:{left:a},tailAttachmentAppearance:n,viewEdgeMargin:r}){let s=r*2;if(t==="vertical"){let l=i-e,v=n==="action"?-(a-e-h):h;return s+l+v}return s}function O(t){return t.actionBarLayout==="vertical"||b(t)==="left"?t.viewEdgeMargin:-t.viewEdgeMargin}function L(t){let{actionBarLayout:e,actionRect:i,viewRect:a}=t,n=b(t);if(e==="vertical")return n==="left"?"right-end":"left-end";let r=i.bottom-a.top<a.height/2?"bottom":"top";return n==="left"?`${r}-end`:`${r}-start`}function b({barRect:{left:t,right:e},viewRect:{left:i,right:a}}){return t-i<a-e?"left":"right"}function k({actionRect:t,viewRect:e}){return t.top-e.top>e.height/2?"bottom":"top"}function P(t){let{actionBarLayout:e,actionRect:i,attributionHeight:a,viewEdgeMargin:n,viewRect:r}=t,s=k(t),l=i.bottom-r.top,v=i.top-r.top,E=s==="top"?l:n,R=n,g=a+n,M=s==="top"?g:r.height-v;return(e==="vertical"?R+g:E+M)+y}function o(){return new DOMRect(0,0,0,0)}function c(t){return t?.getBoundingClientRect()??o()}var p=class extends f{constructor(){super(...arguments),this._handlePopoverBeforeOpen=e=>{if(e.target!==e.currentTarget)return;let i=e.currentTarget;this._headerElement=i.shadowRoot?.querySelector(".header")??void 0,this._observeMeasurementElements(),this._remeasureAndSolve()},this._handlePopoverClose=e=>{e.target===e.currentTarget&&(e.preventDefault(),this.open=!1,this._stopMeasuring())},this._viewRect=o(),this._barRect=o(),this._actionRect=o(),this._headerRect=o(),this._resizeObserver=new ResizeObserver(()=>this._remeasureAndSolve()),this._placement="bottom-end",this._effectiveTailOffset=h,this._offsetSkidding=B,this._horizontalMargin=A,this._verticalMargin=S,this.closable=!0,this.open=!1,this.maxContentWidth=400,this.minContentWidth=300,this.viewEdgeMargin=16,this.visualScale="m",this.tailAttachmentAppearance="bar",this.arcgisPropertyChange=w()("open")}static{this.properties={_placement:16,_effectiveTailOffset:16,_offsetSkidding:16,_horizontalMargin:16,_verticalMargin:16,view:0,actionBarLayout:32,actionBarElement:0,anchorElement:0,closable:5,heading:1,label:1,open:5,maxContentWidth:9,minContentWidth:9,viewEdgeMargin:9,visualScale:1,tailAttachmentAppearance:1}}static{this.styles=x}get _viewElement(){return this.view?.container??void 0}get actionBarLayout(){return this.actionBarElement?.layout==="vertical"?"vertical":"horizontal"}willUpdate(e){e.has("open")&&!this.open?this._stopMeasuring():this.open&&this._hasParameterInputChange(e)?this._remeasureAndSolve():this.open&&this._hasObservedElementChange(e)&&this._observeMeasurementElements()}disconnectedCallback(){super.disconnectedCallback(),this._stopMeasuring()}_hasObservedElementChange(e){return e.has("actionBarElement")||e.has("anchorElement")||e.has("view")}_hasParameterInputChange(e){return e.has("open")&&this.open||e.has("tailAttachmentAppearance")||e.has("viewEdgeMargin")||e.has("visualScale")}_observeMeasurementElements(){this._resizeObserver.disconnect();for(let e of[this.anchorElement,this.actionBarElement,this._viewElement,this._headerElement])e&&this._resizeObserver.observe(e);this._remeasureAndSolve()}_stopMeasuring(){this._resizeObserver.disconnect(),this._headerElement=void 0}_remeasureAndSolve(){this._actionRect=c(this.anchorElement),this._barRect=c(this.actionBarElement),this._headerRect=c(this._headerElement),this._viewRect=c(this._viewElement),this._solveLayoutAndUpdate()}_solveLayoutAndUpdate(){let{effectiveTailOffset:e,horizontalMargin:i,verticalMargin:a,offsetSkidding:n,placement:r}=z({actionBarLayout:this.actionBarLayout,actionRect:this._actionRect,attributionHeight:this.view?.attributionHeight??0,barRect:this._barRect,headerRect:this._headerRect,visualScale:this.visualScale,tailAttachmentAppearance:this.tailAttachmentAppearance,viewEdgeMargin:this.viewEdgeMargin,viewRect:this._viewRect});this._effectiveTailOffset=e,this._horizontalMargin=i,this._verticalMargin=a,this._offsetSkidding=n,this._placement=r}render(){return this.anchorElement?m`<calcite-popover .closable=${this.closable} .heading=${this.heading} .label=${this.label??""} .open=${this.open} .offsetDistance=${this._effectiveTailOffset} .offsetSkidding=${this._offsetSkidding} overlay-positioning=fixed flip-disabled .placement=${this._placement} .referenceElement=${this.anchorElement} @calcitePopoverBeforeOpen=${this._handlePopoverBeforeOpen} .scale=${this.visualScale} style=${u({"--arcgis-view-popover-max-inline-size":`${this.maxContentWidth}px`,"--arcgis-view-popover-min-inline-size":`${this.minContentWidth}px`,"--arcgis-view-popover-height-reserve":`${this._verticalMargin}px`,"--arcgis-view-popover-width-reserve":`${this._horizontalMargin}px`})} trigger-disabled @calcitePopoverClose=${this._handlePopoverClose}><div class="content"><slot></slot></div></calcite-popover>`:null}};_("arcgis-view-popover",p);export{p as ArcgisViewPopover};
|