@arcgis/map-components 5.2.0-next.69 → 5.2.0-next.70
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/{JP4O5WU5.js → 263UQZGD.js} +1 -1
- package/dist/cdn/{LXTI5SZB.js → 27ESFL5A.js} +1 -1
- package/dist/cdn/{XEP6CP26.js → 2JK6IHRU.js} +1 -1
- package/dist/cdn/{N34R2VNP.js → 2MNCEI34.js} +1 -1
- package/dist/cdn/{54O3XEKS.js → 2SVHWSVG.js} +1 -1
- package/dist/cdn/{LIBO3YUY.js → 34IPKNHM.js} +1 -1
- package/dist/cdn/{AATMBHJB.js → 3AN2HM4J.js} +1 -1
- package/dist/cdn/{CPHT7EKR.js → 3EJEDTKE.js} +1 -1
- package/dist/cdn/{NKK2XLSQ.js → 3I3LMAGG.js} +1 -1
- package/dist/cdn/{KHIHHUKA.js → 3MGDX726.js} +1 -1
- package/dist/cdn/{TIHHIJTK.js → 3S4WSOMS.js} +1 -1
- package/dist/cdn/{WZWVAXA2.js → 3SN6IS3V.js} +1 -1
- package/dist/cdn/{VJMC3CMB.js → 42UVPIOD.js} +1 -1
- package/dist/cdn/{TYQO3UPC.js → 45KA6IYP.js} +1 -1
- package/dist/cdn/{ZE6S2MJB.js → 4HUPP5KY.js} +1 -1
- package/dist/cdn/{OE6LEA2U.js → 4IYAEXT6.js} +1 -1
- package/dist/cdn/{LEH4MQJ4.js → 4JVOJINY.js} +1 -1
- package/dist/cdn/{B2EZWEK5.js → 4QNVMHPG.js} +1 -1
- package/dist/cdn/{OCXHXWGB.js → 4TUKX6PS.js} +1 -1
- package/dist/cdn/{DYE5BE43.js → 4VH44HXD.js} +1 -1
- package/dist/cdn/{SRNGMDBR.js → 4WL7ZDOR.js} +1 -1
- package/dist/cdn/{5O7NTWBV.js → 4YZWUM36.js} +1 -1
- package/dist/cdn/{HTTHJG2D.js → 53HZB27L.js} +1 -1
- package/dist/cdn/{YB4MKEGG.js → 54LZZPH7.js} +1 -1
- package/dist/cdn/{C37ZD43S.js → 56HANFHY.js} +1 -1
- package/dist/cdn/{IYBQ72KJ.js → 5FOOE24C.js} +1 -1
- package/dist/cdn/{CNA7TDZN.js → 5GFBHLDY.js} +1 -1
- package/dist/cdn/{LFK5PEIC.js → 5OJHCEN4.js} +1 -1
- package/dist/cdn/{36ZK37RS.js → 5OPSVESB.js} +1 -1
- package/dist/cdn/{PG4VOR7W.js → 5UBFTTQG.js} +1 -1
- package/dist/cdn/{THM67RBC.js → 5VHXHQ36.js} +1 -1
- package/dist/cdn/{6UESIAYD.js → 63AG67W4.js} +1 -1
- package/dist/cdn/{MWAV3XSL.js → 6LPVSXTP.js} +1 -1
- package/dist/cdn/{RCGWBUTM.js → 6T4SNDWL.js} +1 -1
- package/dist/cdn/{2N34V44S.js → 732AA2XJ.js} +1 -1
- package/dist/cdn/{OGALSAFL.js → 7AJVAY4L.js} +1 -1
- package/dist/cdn/{YO6Z5FD4.js → 7ATMAAIA.js} +1 -1
- package/dist/cdn/{ACHF5ALD.js → 7B2ON35Y.js} +1 -1
- package/dist/cdn/{GRVMJD2H.js → 7BHMRVKK.js} +1 -1
- package/dist/cdn/{IR3EJA2Q.js → 7F6SCTJC.js} +1 -1
- package/dist/cdn/{6OVA7KIZ.js → 7FSKEJN5.js} +1 -1
- package/dist/cdn/{5OBZQUJE.js → 7HGCXEVW.js} +1 -1
- package/dist/cdn/{3Y5SDD5P.js → 7MIEKJ57.js} +1 -1
- package/dist/cdn/{PHBSNX42.js → 7OBUF2FK.js} +1 -1
- package/dist/cdn/{COLRADFQ.js → 7RUDSAAC.js} +1 -1
- package/dist/cdn/{I25PKHLU.js → 7THMBHKF.js} +1 -1
- package/dist/cdn/{ILAKSMYE.js → A4VZEZU3.js} +1 -1
- package/dist/cdn/{YGC3D43Q.js → A6CH2UFJ.js} +1 -1
- package/dist/cdn/{DBQPOOGQ.js → ABWJWVAT.js} +1 -1
- package/dist/cdn/{AVHHBQZF.js → AFFS32W5.js} +1 -1
- package/dist/cdn/{35HJTZDP.js → AQ5MEMRU.js} +1 -1
- package/dist/cdn/{ID7AG4JH.js → AZKD3JVJ.js} +1 -1
- package/dist/cdn/{BSI2WP7F.js → AZSWPMSD.js} +1 -1
- package/dist/cdn/{KCLELCOU.js → B2GZY6PZ.js} +1 -1
- package/dist/cdn/{5OQPKSGX.js → B5GF4C7T.js} +1 -1
- package/dist/cdn/{V3SICJ32.js → B5TWZ7RP.js} +1 -1
- package/dist/cdn/{VVC4QG6F.js → BHAY27CX.js} +1 -1
- package/dist/cdn/{PW62476X.js → BMVELPGD.js} +1 -1
- package/dist/cdn/{G3BAPTZZ.js → BPARROZU.js} +1 -1
- package/dist/cdn/{YZQG6WS5.js → BV5DVFHY.js} +1 -1
- package/dist/cdn/{VVRTT47C.js → BYURJH5S.js} +1 -1
- package/dist/cdn/{2XFBIC3F.js → CDGKWT2J.js} +1 -1
- package/dist/cdn/{YLDF7U5D.js → CEZOPIBZ.js} +1 -1
- package/dist/cdn/{2CUYHI36.js → CG52ER6Q.js} +1 -1
- package/dist/cdn/{6N5H4GYH.js → CL2BELDC.js} +1 -1
- package/dist/cdn/{PNZO7PJX.js → CVFKHMDF.js} +1 -1
- package/dist/cdn/{U7PLIM7D.js → D5DGYDNC.js} +1 -1
- package/dist/cdn/{ZHA4C7BC.js → D6Z3MYCF.js} +1 -1
- package/dist/cdn/{6JYLZLVD.js → D75QAAQT.js} +1 -1
- package/dist/cdn/{NCSFZ67G.js → DKIT622U.js} +1 -1
- package/dist/cdn/{JUB5EAFV.js → DSVRIWYW.js} +1 -1
- package/dist/cdn/{7GGF4VK3.js → EF5I2PGI.js} +1 -1
- package/dist/cdn/{EBOBXBZK.js → EFLJBQJB.js} +1 -1
- package/dist/cdn/{HQBA7OPQ.js → ELVDMQEB.js} +1 -1
- package/dist/cdn/{HX5ZGPW4.js → ETV3RIV4.js} +1 -1
- package/dist/cdn/{3K5L7C4B.js → EUSNS4ZR.js} +1 -1
- package/dist/cdn/{JBKFFPLV.js → EZ32225G.js} +1 -1
- package/dist/cdn/{R5TL5I6S.js → F3IKTIUT.js} +1 -1
- package/dist/cdn/{AIUZUNQB.js → FC2KR2OJ.js} +1 -1
- package/dist/cdn/{YJ36H7AG.js → FCGXXNEE.js} +1 -1
- package/dist/cdn/FHDJ7G3W.js +2 -0
- package/dist/cdn/{4BYHEBLT.js → FKGG2CUG.js} +1 -1
- package/dist/cdn/{UI2M6TYH.js → FQVFZLFR.js} +1 -1
- package/dist/cdn/{PT7XD6RE.js → FR3DD5XU.js} +1 -1
- package/dist/cdn/{QBTMCEFA.js → FRBI5DO2.js} +1 -1
- package/dist/cdn/{2WLXD7OI.js → G3GFYB3W.js} +1 -1
- package/dist/cdn/{NE62OHLY.js → G7AAB5J7.js} +1 -1
- package/dist/cdn/{BWECC664.js → GG4ZP72A.js} +1 -1
- package/dist/cdn/{CL6JXK4J.js → GIMPEDA6.js} +1 -1
- package/dist/cdn/{JJUKCRBV.js → GTVZDMAZ.js} +1 -1
- package/dist/cdn/{6YLBLUPL.js → GVCVI2FM.js} +1 -1
- package/dist/cdn/{N5NWRDVD.js → GWNHAPDJ.js} +1 -1
- package/dist/cdn/{6BD3TWBH.js → H2EVMLHD.js} +1 -1
- package/dist/cdn/{QT2LSBKF.js → H5BVJ264.js} +1 -1
- package/dist/cdn/{KWY2WPOP.js → HGPMWYEJ.js} +1 -1
- package/dist/cdn/{XYV2ZB6J.js → HHEQGXDE.js} +1 -1
- package/dist/cdn/{BOHA6O3E.js → HSF2MYAX.js} +1 -1
- package/dist/cdn/{C7NIEQKO.js → HZR3HENL.js} +1 -1
- package/dist/cdn/{WTEY2GUR.js → I236E7AW.js} +1 -1
- package/dist/cdn/{TIIFMOFF.js → ICAEEYON.js} +1 -1
- package/dist/cdn/{TWW6WTPJ.js → IEUVYAB2.js} +1 -1
- package/dist/cdn/{Y6AJ3R7J.js → IIYUVBKU.js} +1 -1
- package/dist/cdn/{YKJYY74T.js → IKTXSXXQ.js} +1 -1
- package/dist/cdn/{6GIDI7Z2.js → ILE73UJE.js} +1 -1
- package/dist/cdn/{EIYWFIVH.js → IMG33Z76.js} +1 -1
- package/dist/cdn/{AVFYZ2BD.js → IOORBLHL.js} +1 -1
- package/dist/cdn/{2DCEODPQ.js → IVBBBGIP.js} +1 -1
- package/dist/cdn/{VZ3LSB3Z.js → JFNKQEAB.js} +1 -1
- package/dist/cdn/JLZ2PFNC.js +2 -0
- package/dist/cdn/{TMO4U4HG.js → JNZQSIHO.js} +1 -1
- package/dist/cdn/{T27FCYV7.js → JWCHEYHG.js} +1 -1
- package/dist/cdn/{3TZJEZDM.js → K2HEKJRC.js} +1 -1
- package/dist/cdn/{R6NLZOD6.js → K2KLJ32T.js} +1 -1
- package/dist/cdn/{RTXRLIYL.js → K3VQUQ6I.js} +1 -1
- package/dist/cdn/K5WNMCOI.js +2 -0
- package/dist/cdn/{GCPF5PAX.js → K76HO7P7.js} +1 -1
- package/dist/cdn/{GZUBRPJC.js → KDTYT2TI.js} +1 -1
- package/dist/cdn/{HROETYFU.js → KG4DME7S.js} +1 -1
- package/dist/cdn/{5AO4WCMO.js → KG4E7MUN.js} +1 -1
- package/dist/cdn/{IC33XDTT.js → KI373EER.js} +1 -1
- package/dist/cdn/{FPBIHRY5.js → KJJVLZO6.js} +1 -1
- package/dist/cdn/{IGORAGVE.js → KL6LVGWT.js} +1 -1
- package/dist/cdn/{WRRFKLB6.js → KNC343OA.js} +1 -1
- package/dist/cdn/{OKBDQ3G2.js → KUR5PBEN.js} +1 -1
- package/dist/cdn/{L4UVDZFM.js → KXYV52R5.js} +1 -1
- package/dist/cdn/{IPS6PJBP.js → KZQ5ZQEP.js} +1 -1
- package/dist/cdn/{Z63PHR6E.js → LBL4JL7T.js} +1 -1
- package/dist/cdn/{LYBMSSWT.js → LFFKXHGN.js} +1 -1
- package/dist/cdn/{CE7BKSHD.js → LGFVRB7B.js} +1 -1
- package/dist/cdn/{VFFB35S6.js → LI7PGPU4.js} +1 -1
- package/dist/cdn/{NMQUDSWT.js → LIEZSWE4.js} +1 -1
- package/dist/cdn/{N4AIZK72.js → LSTPPCUH.js} +1 -1
- package/dist/cdn/LTBXZRS5.js +2 -0
- package/dist/cdn/{BL743E5J.js → M2EPGLCO.js} +1 -1
- package/dist/cdn/{JE3VXBIT.js → M2MHL5UA.js} +1 -1
- package/dist/cdn/{ZOP2TIVZ.js → M2O6IGEH.js} +1 -1
- package/dist/cdn/{DMDH2HX6.js → M47N46M3.js} +1 -1
- package/dist/cdn/{DY6AWYYR.js → M7P6P7TR.js} +1 -1
- package/dist/cdn/MCKFNVHF.js +2 -0
- package/dist/cdn/{M3E7HDLV.js → MIRNWIIY.js} +1 -1
- package/dist/cdn/{BOVVMQMM.js → MNMMINQH.js} +1 -1
- package/dist/cdn/{ZAJLG5HP.js → N6Y3DBA3.js} +1 -1
- package/dist/cdn/{BLKRIIHC.js → N7G6DMQS.js} +1 -1
- package/dist/cdn/{JTNXXFZB.js → N7QPTZOY.js} +1 -1
- package/dist/cdn/{PTHSNQL2.js → NDMHZQ2Z.js} +1 -1
- package/dist/cdn/{EO2XFNMR.js → NEA3AO6Y.js} +1 -1
- package/dist/cdn/{AM3UJO3A.js → NFE73D6R.js} +1 -1
- package/dist/cdn/{HKAQY5N7.js → NJ4CBOJN.js} +1 -1
- package/dist/cdn/{G5IFQKFE.js → NMWFIDS3.js} +1 -1
- package/dist/cdn/{HVYQFEOR.js → O2HG2WMJ.js} +1 -1
- package/dist/cdn/{WTNO7O72.js → OEOLTZDB.js} +1 -1
- package/dist/cdn/{FVNPR5KH.js → OGYCHIZS.js} +1 -1
- package/dist/cdn/{FG4BZ3AS.js → OHVLO7G3.js} +1 -1
- package/dist/cdn/{M47KXCDY.js → OIZPPRAI.js} +1 -1
- package/dist/cdn/{BLEHZ6OK.js → OMNTRBAL.js} +1 -1
- package/dist/cdn/{VYS45ONH.js → P62M6P6V.js} +1 -1
- package/dist/cdn/{OPU3AHDF.js → PGOXXWOQ.js} +1 -1
- package/dist/cdn/{46OBBNLU.js → PLZVYFQY.js} +1 -1
- package/dist/cdn/{DTB572CE.js → PUF3LPVV.js} +1 -1
- package/dist/cdn/{ZNQZFSHJ.js → Q44GFWWJ.js} +1 -1
- package/dist/cdn/{RITUH7JT.js → Q547RMCD.js} +1 -1
- package/dist/cdn/{R6HFI3H6.js → QBG72UPT.js} +1 -1
- package/dist/cdn/{VJNK2ZS5.js → QJHRY67D.js} +1 -1
- package/dist/cdn/{XHT2V7M3.js → QJUYGJUN.js} +1 -1
- package/dist/cdn/{M3DP7XNI.js → QLIWDFZI.js} +1 -1
- package/dist/cdn/{N2H3FZDY.js → QMBBO7TG.js} +1 -1
- package/dist/cdn/{C6GVSQON.js → QMVQEHGP.js} +1 -1
- package/dist/cdn/{GTSPZDUD.js → QMXF5LPA.js} +1 -1
- package/dist/cdn/{CMNJTTHD.js → QORUWAIX.js} +1 -1
- package/dist/cdn/{BE273TAF.js → QXYIAQJR.js} +1 -1
- package/dist/cdn/{Z7ULZVXI.js → R5RHR73A.js} +1 -1
- package/dist/cdn/{OXJ6JBJF.js → R5ZY52DF.js} +1 -1
- package/dist/cdn/{ZVPFP6UF.js → RAUX4YDR.js} +1 -1
- package/dist/cdn/{N3DNKKJG.js → RDA3MEE2.js} +1 -1
- package/dist/cdn/{AOZTFK3U.js → RDWM76R2.js} +1 -1
- package/dist/cdn/{4ZPF4DPX.js → RNUWRSX7.js} +1 -1
- package/dist/cdn/{4B63G73N.js → RP6OFG3R.js} +1 -1
- package/dist/cdn/{MT2XDN52.js → RUPHNC7P.js} +1 -1
- package/dist/cdn/{ALID7JW4.js → RYBETUNL.js} +1 -1
- package/dist/cdn/{EYVFMVPE.js → S6IOKQMR.js} +1 -1
- package/dist/cdn/{COI7ESYH.js → SB4Y3KAP.js} +1 -1
- package/dist/cdn/{LG7BOXTO.js → SMTTIAFG.js} +1 -1
- package/dist/cdn/{6W3RHVL6.js → SRAXSED3.js} +1 -1
- package/dist/cdn/{XCDWWNUJ.js → SWDOEOEG.js} +1 -1
- package/dist/cdn/{ND64EMQB.js → T2JPACWT.js} +1 -1
- package/dist/cdn/{3RQ3RPYE.js → T2SDOX4F.js} +1 -1
- package/dist/cdn/{USMSBMGF.js → T4TCUOUB.js} +1 -1
- package/dist/cdn/{AACRVMCQ.js → TCLKWOOM.js} +1 -1
- package/dist/cdn/{MGVKXR2F.js → THUDFQBI.js} +1 -1
- package/dist/cdn/{GP76UUFG.js → TKTHZ2GE.js} +1 -1
- package/dist/cdn/{PPP32ZQ6.js → TPF6CQWI.js} +1 -1
- package/dist/cdn/{7BQONNCF.js → TZGK64CZ.js} +1 -1
- package/dist/cdn/{R4QRHWKF.js → TZTJY3L5.js} +1 -1
- package/dist/cdn/{3B3RGT2G.js → U257QRYB.js} +1 -1
- package/dist/cdn/{EVKE3MXB.js → U5BDUCMV.js} +1 -1
- package/dist/cdn/{3VRGZ2CJ.js → U6BJ5CHT.js} +1 -1
- package/dist/cdn/{OBWR4UBY.js → UFBHHNY2.js} +1 -1
- package/dist/cdn/{YI4GBTAA.js → UHY4YPDH.js} +1 -1
- package/dist/cdn/{GKOH4UXJ.js → UJ3FO7VY.js} +1 -1
- package/dist/cdn/{QGWMP6TU.js → UVZRGGFM.js} +1 -1
- package/dist/cdn/{BNRS5ISC.js → VJIYYZW3.js} +1 -1
- package/dist/cdn/{3H2WSSI4.js → VOQLL5JZ.js} +1 -1
- package/dist/cdn/{XKC3DFCU.js → VQG7S23K.js} +1 -1
- package/dist/cdn/{CSXSF4DA.js → VQUASLS6.js} +1 -1
- package/dist/cdn/VRD2Y5E5.js +2 -0
- package/dist/cdn/{JHNUTIAE.js → VRZ2TCPU.js} +1 -1
- package/dist/cdn/{3Y4QI3WS.js → W3LWWKRB.js} +1 -1
- package/dist/cdn/{COUGJ3JE.js → WCWRRXW6.js} +1 -1
- package/dist/cdn/{VV6AUGJZ.js → WTQIUFRF.js} +1 -1
- package/dist/cdn/{EKJMDF7F.js → WW47L2EV.js} +1 -1
- package/dist/cdn/{HEOLO6IC.js → X3TEGOBL.js} +1 -1
- package/dist/cdn/{PCH6Y2RV.js → X6USSZBP.js} +1 -1
- package/dist/cdn/{APBDKO3B.js → XLAW24IV.js} +1 -1
- package/dist/cdn/{Y6OCHJCV.js → XLFPJW7K.js} +1 -1
- package/dist/cdn/{JEYAZUI2.js → XPBKTZ6K.js} +1 -1
- package/dist/cdn/{GRALXE5Q.js → XRPHEZZD.js} +1 -1
- package/dist/cdn/{MAYBKX24.js → XUL2L7MJ.js} +1 -1
- package/dist/cdn/{UBUAQKOP.js → XZSUBU4T.js} +1 -1
- package/dist/cdn/{N4PYAXDZ.js → Y52XLS45.js} +1 -1
- package/dist/cdn/YJYUG3DP.js +2 -0
- package/dist/cdn/{BEOMWPHI.js → YVQ5XK57.js} +1 -1
- package/dist/cdn/{JRY4Y7OA.js → ZA7J2T63.js} +1 -1
- package/dist/cdn/{DVDREAS2.js → ZMLP2ZB4.js} +1 -1
- package/dist/cdn/{UJAX7TII.js → ZWAOPC3F.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/slots.js +9 -9
- package/dist/chunks/useArcgisViewReadyError.js +30 -35
- package/dist/components/arcgis-aggregated-features/customElement.js +58 -58
- package/dist/components/arcgis-features-next/customElement.js +30 -30
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/package.json +4 -4
- package/dist/cdn/2XJT2TPM.js +0 -2
- package/dist/cdn/BEEFONS5.js +0 -2
- package/dist/cdn/CRQRQION.js +0 -2
- package/dist/cdn/EOUNEK6M.js +0 -2
- package/dist/cdn/ERZ355Q7.js +0 -2
- package/dist/cdn/NEEJOYOU.js +0 -2
- package/dist/cdn/PZLLNFJO.js +0 -2
- /package/dist/cdn/{QL3M4ZI7.js → ZJZBS5ZY.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as s}from"./POKO37D3.js";import{a as h}from"./
|
|
2
|
+
import{a as s}from"./POKO37D3.js";import{a as h}from"./NDMHZQ2Z.js";import{g as d}from"./5GFBHLDY.js";import"./42UVPIOD.js";import"./QUZTFUWM.js";import"./QLIWDFZI.js";import{N as c,Q as n,T as r,a,b as i}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([b])=>{var g=a`.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)}`,l=class extends c{constructor(){super(...arguments),this.messages=h({blocking:!0}),this.showHeader=!1,this.hideTooltipsToggle=!1,this.hideLabelsToggle=!1,this.showDirectionModePicker=!1,this.sketchOptions=new b,this.arcgisPropertyChange=d()("tooltipsEnabled","labelsEnabled","directionMode")}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,o=e??t.componentLabel;return i`<div aria-label=${o??n} class="root">${this._hasContent?i`<calcite-block class="block" expanded .heading=${this.showHeader?e:""} .label=${o??""}><div class="block-content">${s({hidden:this.hideTooltipsToggle,children:this._renderTooltipsToggle()})}${s({hidden:this.hideLabelsToggle,children:this._renderLabelsToggle()})}${s({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,o){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>${o}</div></calcite-label>`}};r("arcgis-sketch-tooltip-controls",l);return l},"views/interactive/sketch/SketchOptions")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import d from"./
|
|
2
|
+
import d from"./W3LWWKRB.js";import{a as c}from"./RDWM76R2.js";import b from"./MZWO5JYA.js";import{O as g,R as h,T as y,a as f,b as a}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([{stripHTML:$},{formatNumber:F,substitute:b},{f:u},w])=>{var _=f`:host{position:relative;flex:1 1 auto}.list-item--hidden{display:none}.feature-observer{bottom:var(--calcite-spacing-xxl);position:relative;text-align:center;z-index:2}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.notice-container{margin-bottom:var(--calcite-spacing-xs)}`,A="nested",p=class extends w{constructor(){super(...arguments),this.autoDestroyDisabled=!1,this.displayCount=3,this.useFeatureNextFlowItem=!1,this.flowType="feature-utility-network-association-type"}static{this.properties={autoDestroyDisabled:5,description:1,displayCount:9,endIndex:32,flowItems:0,useFeatureNextFlowItem:5,flowType:1,heading:1,map:0,referenceElement:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=_}get endIndex(){let{currentFeaturePage:e,featuresPerPage:t,maxFeatureCount:s}=this;return Math.min(e*t,s)}async destroy(){await this.manager.destroy()}_featureViewModelMatch(e,t){let s=e.graphic,i=s?.layer,o=null;u(i)&&i.parent?o=i.parent.globalIdField??null:i&&"globalIdField"in i&&(o=i.globalIdField);let r=o?s?.getAttribute(o):null,l=t.graphic,n=l?.layer,d=null;u(n)&&n.parent?d=n.parent.globalIdField??null:n&&"globalIdField"in n&&(d=n.globalIdField);let m=d?l?.getAttribute(d):null;return!!(r&&m&&r===m)}_findFlowItem(e){return this.flowItems?.findIndex(t=>{if(t.flowType!=="feature-association")return!1;let s=t.viewModel;return this._featureViewModelMatch(s,e)})??-1}_formatPercentAlong(e){let{percentAlong:t}=e;return t==null?"":F(t,{style:"percent",maximumFractionDigits:2})}async _handleFeatureClick(e,t,s){let{flowItems:i}=this;if(e){i?.destroyAll();return}if(t<0||!i){await this._selectAssociation(s);return}for(;i.length>t+1;)i.pop()}_isConnectivityAssociation(e){let{associationType:t}=e;return t==="connectivity"||t==="junction-junction-connectivity"||t==="junction-edge-from-connectivity"||t==="junction-edge-midspan-connectivity"||t==="junction-edge-to-connectivity"}_isConnectivityMidspanAssociation(e){return e.associationType==="junction-edge-midspan-connectivity"}_isParentFeature(e){let t=this.flowItems?.getItemAt(0);if(!t)return!1;let s=t.parentFeatureViewModel;return this._featureViewModelMatch(s,e)}async _selectAssociation(e){let{flowItems:t}=this;if(!t)return;let s=this.useFeatureNextFlowItem?h(c(this.parentFeatureViewModel,a`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${"feature-association"} .graphic=${e.graphic} .map=${this.map} .referenceElement=${this.referenceElement} show-utility-network-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-next>`)):h(c(this.parentFeatureViewModel,a`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${"feature-association"} .graphic=${e.graphic} .map=${this.map} .referenceElement=${this.referenceElement} show-utility-network-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`));t.push(s)}_showAllAssociations(e){let{flowItems:t,description:s}=this;if(!t||!e)return;this.showAllEnabled=!0;let i=e?.title??"";t.push(h(a`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this.associationViewModels} .description=${s} .flowItems=${t} .flowType=${this.flowType} .heading=${i} .messages=${this.messages} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .selectedLayer=${e} .showAllEnabled=${this.showAllEnabled} .useFeatureNextFlowItem=${this.useFeatureNextFlowItem}></arcgis-feature-utility-network-association-list>`))}render(){let{associationViewModels:e,state:t}=this,s=this.selectedLayer?.title??this.messages?.noTitle??"";return a`<div class="root">${t==="loading"||t==="querying"?this._renderLoading():a`<calcite-list .displayMode=${A} .filterEnabled=${this.showAllEnabled&&!!this.selectedLayer} .filterLabel=${this.messages?.associationFilterPlaceholder} .filterPlaceholder=${this.messages?.associationFilterPlaceholder} .label=${s}>${this.showAllEnabled&&this.selectedLayer?a`${this._renderFeatureCountWarning()}${this._renderAssociatedFeatureListPage()}${this._renderFeatureObserver()}`:Array.from(e.keys(),i=>this._renderTypeList(i))}</calcite-list>`}</div>`}_renderAssociatedFeature(e){let{featureViewModel:t,title:s}=e,i=this.state==="loading",o=this._findFlowItem(t),r=o<0&&this._isParentFeature(t),l=r||o>=0,n=`associated-feature-${e.association.globalId}`;return a`<calcite-list-item class=${g(i?"list-item--hidden":"")} .description=${$(e.terminalName??"")} .label=${$(s)} @calciteListItemSelect=${async()=>await this._handleFeatureClick(r,o,t)}>${this._isConnectivityAssociation(e.association)?this._renderConnectivityIcon(e.association.associationType,n):null}${this._isConnectivityMidspanAssociation(e.association)?a`<calcite-chip .label=${this._formatPercentAlong(e.association)} scale=s slot=content-end>${this._formatPercentAlong(e.association)}</calcite-chip>`:null}${this._renderChevronIconNode(l)}</calcite-list-item>`}_renderAssociatedFeatureList(e){return e.toArray().map(t=>this._renderAssociatedFeature(t))}_renderAssociatedFeatureListPage(){let e=this.associationViewModels.get(this.selectedLayer).slice(0,this.endIndex);return[...this._renderTooltips(e),...this._renderAssociatedFeatureList(e)]}_renderChevronIconNode(e){return a`<calcite-icon flip-rtl .icon=${e?"move-up":"chevron-right"} scale=s slot=content-end></calcite-icon>`}_renderItemTooltip(e){let{tooltipReferenceMap:t}=this,s=`associated-feature-${e.association.globalId}`;return this._isConnectivityAssociation(e.association)?a`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(s)}>${this.getConnectivityTooltip(e.association.associationType)}</calcite-tooltip>`:null}_renderTypeList(e){let{messages:t}=this,{displayCount:s}=this,i=this.associationViewModels.get(e),o=i.slice(0,s),r=o.length<i.length,l=b(t?.numberRecords??"",{number:i.length.toString()}),n=t?.showAll??"";return c("show-all",a`<calcite-list-item expanded .label=${e.title} .value=${e.id}><calcite-chip .label=${String(i.length)} scale=s slot=content-end>${i.length}</calcite-chip><calcite-list .group=${e.id} .label=${e.title??""}>${[this._renderTooltips(o),this._renderAssociatedFeatureList(o)]}${r?c("show-all-item",a`<calcite-list-item .description=${l} .label=${n} @calciteListItemSelect=${()=>this._showAllAssociations(e)}><calcite-icon icon=list scale=s slot=content-end></calcite-icon></calcite-list-item>`):null}</calcite-list></calcite-list-item>`)}_renderTooltips(e){return e.toArray().map(t=>this._renderItemTooltip(t))}};y("arcgis-feature-utility-network-association-list",p);return p},"applications/Components/stringUtils","intl",b,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{C as k,D as w,E as V,F as m,G as h,H as A,I as D,J as y,e as P}from"./
|
|
2
|
+
import{C as k,D as w,E as V,F as m,G as h,H as A,I as D,J as y,e as P}from"./ZJZBS5ZY.js";var b=(s,f,c)=>{let p=new Map;for(let e=f;e<=c;e++)p.set(s[e],e);return p},I=w(class extends V{constructor(s){if(super(s),s.type!==k.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,f,c){let p;c===void 0?c=f:f!==void 0&&(p=f);let e=[],n=[],o=0;for(let a of s)e[o]=p?p(a,o):o,n[o]=c(a,o),o++;return{values:n,keys:e}}render(s,f,c){return this.dt(s,f,c).values}update(s,[f,c,p]){let e=D(s),{values:n,keys:o}=this.dt(f,c,p);if(!Array.isArray(e))return this.ut=o,n;let a=this.ut??=[],u=[],v,g,t=0,l=e.length-1,r=0,i=n.length-1;for(;t<=l&&r<=i;)if(e[t]===null)t++;else if(e[l]===null)l--;else if(a[t]===o[r])u[r]=h(e[t],n[r]),t++,r++;else if(a[l]===o[i])u[i]=h(e[l],n[i]),l--,i--;else if(a[t]===o[i])u[i]=h(e[t],n[i]),m(s,u[i+1],e[t]),t++,i--;else if(a[l]===o[r])u[r]=h(e[l],n[r]),m(s,e[t],e[l]),l--,r++;else if(v===void 0&&(v=b(o,r,i),g=b(a,t,l)),v.has(a[t]))if(v.has(a[l])){let d=g.get(o[r]),x=d!==void 0?e[d]:null;if(x===null){let C=m(s,e[t]);h(C,n[r]),u[r]=C}else u[r]=h(x,n[r]),m(s,e[t],x),e[d]=null;r++}else y(e[l]),l--;else y(e[t]),t++;for(;r<=i;){let d=m(s,u[i+1]);h(d,n[r]),u[r++]=d}for(;t<=l;){let d=e[t++];d!==null&&y(d)}return this.ut=o,A(s,u),P}});export{I as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import a from"./GOIKNGEI.js";import{N as x,P as g,T as y,a as f,b as v}from"./
|
|
2
|
+
import a from"./GOIKNGEI.js";import{N as x,P as g,T as y,a as f,b as v}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([{e:b,g:$,h:S}])=>{var M=f`.spike-ramp-container{display:flex;flex-direction:row;gap:var(--calcite-spacing-sm-plus);margin-left:var(--calcite-spacing-sm)}.spike-ramp-preview-container{display:flex;position:relative;gap:var(--calcite-spacing-sm-plus);border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);padding:0 var(--calcite-spacing-xl)}.spike-ramp-preview{display:flex;gap:var(--calcite-spacing-sm-plus);align-items:end}.spike-ramp-symbol-preview{display:flex}.spike-ramp-lines{display:flex;position:absolute;bottom:0}.spike-ramp-labels-container{display:flex;position:relative;top:-5px;flex:1;min-width:120px}.spike-ramp-label{position:relative;padding:0 var(--calcite-spacing-sm);line-height:1em;word-break:break-all;font-size:var(--calcite-font-size-sm)}.spike-ramp-label:before{display:block;position:absolute;top:.25em;right:100%;border-width:3px 4px 3px 0;border-style:solid;border-color:transparent var(--calcite-color-text-1) transparent transparent;width:0;height:0;content:""}`,N="#ddd",e=window.devicePixelRatio;function u(m){return m.infos.filter((o,a)=>a%2===0)}function E(m){return!!(m&&typeof m=="object")}var w=class extends x{constructor(){super(...arguments),this.legendElement=null}static{this.properties={legendElement:0,messages:0}}static{this.styles=M}render(){return this.legendElement.infos.length!==5?null:v`<div class="spike-ramp-container"><div class="spike-ramp-preview-container">${this._renderSpikeRampLines()}${this._renderSpikeRampPreview()}</div>${this._renderSpikeRampLabels()}</div>`}_renderSpikeRampPreview(){let o=this.legendElement,[a,l,d]=u(o).map(({preview:n,label:r})=>{if(!n)return null;let t=n.cloneNode(!0);return t.classList.add("spike-ramp-symbol-preview"),S(t,$(this.messages,r)),t});return!a||!l||!d?null:v`<div class="spike-ramp-preview"><div>${d}</div><div>${l}</div><div>${a}</div></div>`}_renderSpikeRampLines(){let o=this.legendElement,[{width:a,height:l},{width:d},{width:n,height:r}]=u(o).map(({size:k})=>E(k)?{width:b(k.width),height:b(k.height)}:{width:0,height:0}),t=10,c=8,p=a+d+n+t*3,h=l,s=document.createElement("canvas");s.width=(p+t)*e,s.height=h*e,s.style.width=`${s.width/e}px`,s.style.height=`${s.height/e}px`;let i=s.getContext("2d");i.beginPath();let R=p-(a/2+t),L=0,T=p+c;i.moveTo(R*e,L*e),i.lineTo(T*e,0*e);let _=(p-c)/2,z=(l-r)/2,P=p+c,A=(l-r)/2;i.moveTo(_*e,z*e),i.lineTo(P*e,A*e);let C=n/2,W=h-r,H=p+c,I=h-r;return i.moveTo(C*e,W*e),i.lineTo(H*e,I*e),i.strokeStyle=N,i.lineWidth=.5*e,i.stroke(),v`<div class="spike-ramp-lines">${s}</div>`}_renderSpikeRampLabels(){let o=this.legendElement,[{label:a,height:l},{label:d},{label:n,height:r}]=u(o).map(({label:s,size:i})=>({label:s,height:E(i)?b(i.height):0})),t=l-r,c={position:"absolute",top:"0"},p={position:"absolute",top:`${t/2}px`},h={position:"absolute",top:`${t}px`};return v`<div class="spike-ramp-labels-container"><div class="spike-ramp-label" style=${g(c)}>${a}</div><div class="spike-ramp-label" style=${g(p)}>${d}</div><div class="spike-ramp-label" style=${g(h)}>${n}</div></div>`}};y("arcgis-legend-spike-ramp",w);return w},a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{N as r,T as d,b as i}from"./
|
|
2
|
+
import{N as r,T as d,b as i}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:u}])=>{function v(a){return a.followingMode==="none"?"circle-disallowed":a.followingMode==="follow-sensor"?"zoom-to-object":a.followingMode==="follow-frame"?"follow":"video"}var n=class extends r{constructor(){super(...arguments),this._disabled=!1}static{this.properties={_disabled:16,viewModel:0,toggleMetadata:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel.state,e=>{this._disabled=e==="not-ready"||e==="waiting"},{initial:!0})])}render(){let{viewModel:e,messages:l,_disabled:o}=this,t=e.currentTime>0,c=!!e.layer?.telemetry?.sensorLocation,m=!!e.layer?.telemetry?.sensorPath,$=!!e.layer?.telemetry?.sensorTrail,g=!!e.layer?.telemetry?.lineOfSight,y=!!e.layer?.telemetry?.frameCenter,s=!!e.layer?.telemetry?.frameOutline,f=!!e.layer?.groundControlPoints,p=i`<div><calcite-popover auto-close .label=${l.layers} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=layers-action scale=s><calcite-panel .heading=${l.layers}><calcite-list .label=${l.layers} selection-mode=multiple><calcite-list-item .disabled=${t&&!c} .label=${l.sensor} @click=${()=>{e.toggleSensorDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.sensorLocation}></calcite-list-item><calcite-list-item .disabled=${t&&!g} .label=${l.sightLine} @click=${()=>{e.toggleSensorSightLineDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.lineOfSight}></calcite-list-item><calcite-list-item .disabled=${t&&!m} .label=${l.sensorPath} @click=${()=>{e.toggleSensorPathDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.sensorPath}></calcite-list-item><calcite-list-item .disabled=${t&&!$} .label=${l.sensorTrail} @click=${()=>{e.toggleSensorTrailDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.sensorTrail}></calcite-list-item><calcite-list-item .disabled=${t&&!y} .label=${l.frameCenter} @click=${()=>{e.toggleFrameCenterDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.frameCenter}></calcite-list-item><calcite-list-item .disabled=${t&&!s} .label=${l.frameOutline} @click=${()=>{e.toggleFrameOutlineDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.frameOutline}></calcite-list-item><calcite-list-item .disabled=${t&&!f} .label=${l.frame} @click=${()=>{e.toggleFrameDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.frame}></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${o} icon=layers id=layers-action scale=s slot=trigger .text=${l.layers}></calcite-action></div>`,b=i`<div><calcite-popover auto-close .label=${l.follow} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=follow-action scale=s><calcite-panel .heading=${l.follow}><calcite-list .label=${l.follow} selection-mode=single><calcite-list-item .label=${l.none} @click=${()=>{e.followingMode="none"}} .selected=${e.followingMode==="none"}><calcite-icon icon=circle-disallowed scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t&&!c} .label=${l.sensor} @click=${()=>{e.followingMode="follow-sensor"}} .selected=${e.followingMode==="follow-sensor"}><calcite-icon icon=zoom-to-object scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t&&!s} .label=${l.frame} @click=${()=>{e.followingMode="follow-frame"}} .selected=${e.followingMode==="follow-frame"}><calcite-icon icon=follow scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t&&!s&&!c} .label=${l.video} @click=${()=>{e.followingMode="follow-both"}} .selected=${e.followingMode==="follow-both"}><calcite-icon icon=video scale=s slot=content-start></calcite-icon></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${o} .icon=${v(e)} id=follow-action scale=s slot=trigger .text=${l.follow}></calcite-action></div>`,w=i`<arcgis-video-player-settings .messages=${l} .viewModel=${e}></arcgis-video-player-settings>`,h=i`<calcite-action alignment=center .disabled=${o} icon=feature-details @click=${()=>this.toggleMetadata()} scale=s .text=${l.metadata}></calcite-action>`;return i`<calcite-action-bar expand-disabled layout=horizontal scale=s>${[p,b,w,h]}</calcite-action-bar>`}};d("arcgis-video-player-controls-group",n);return n},"core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{N as d,O as h,P as p,Q as r,T as g,a as o,b as s,w as c}from"./
|
|
2
|
+
import{N as d,O as h,P as p,Q as r,T as g,a as o,b as s,w as c}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([{substitute:v}])=>{var x=o`:host{--internal-block-spacing: var(--calcite-spacing-sm-plus);--internal-inline-spacing: var(--calcite-spacing-md);--internal-collapse-toggle-size: 32px;--internal-color-indicator-width: 3px;--internal-opacity-disabled: .4}.container{position:relative;background:var(--calcite-color-foreground-2)}.disabled{filter:grayscale(1);opacity:var(--internal-opacity-disabled)}.color-indicator{position:absolute;inset-inline-start:0;top:0;width:var(--internal-color-indicator-width);height:100%}.header{display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.content{display:block;padding:var(--internal-block-spacing) var(--internal-inline-spacing);padding-top:0}.collapse-toggle{flex-shrink:0;width:var(--internal-collapse-toggle-size);height:var(--internal-collapse-toggle-size)}.label{--calcite-label-margin-bottom: 0;flex-grow:1;flex-shrink:1;padding-inline-start:var(--internal-inline-spacing);min-width:0}`,l=class extends d{constructor(){super(...arguments),this.expanded=!1,this.featureSelected=!1,this.hideCheckbox=!1,this.arcgisExpandedToggle=c()}static{this.properties={effectiveDisplayUnits:0,expanded:5,featureSelected:5,hideCheckbox:5,messages:0,result:0}}static{this.styles=x}async destroy(){await this.manager.destroy()}render(){return s`<div class=${h({container:!0,expanded:this.expanded,disabled:this._disabled})}>${this._renderColorIndicator()}<div class="header">${this._renderLabelWithCheckbox()}${this._renderCollapseToggleButton()}</div>${this.expanded?this._renderStatistics():void 0}</div>`}_renderColorIndicator(){return s`<div class="color-indicator" style=${p({backgroundColor:this.result.profile.color.toCss()})}></div>`}_renderCollapseToggleButton(){let{expanded:e,messages:t}=this,i=t[e?"hideDetails":"showDetails"]??"";return s`<calcite-action class="collapse-toggle" .icon=${e?"chevron-up":"chevron-down"} @click=${()=>this.arcgisExpandedToggle.emit(this.result.profile)} .text=${i} title=${i??r}></calcite-action>`}_renderLabelWithCheckbox(){let{result:e,hideCheckbox:t,messages:i}=this;return s`<calcite-label class="label" layout=inline>${t?void 0:this._renderCheckbox()}${u(e,i)}</calcite-label>`}_renderCheckbox(){let{result:e,messages:t}=this,{profile:i}=e,n=i.enabled,f=t[n?"hideProfile":"showProfile"]??"",b=v(f,{name:u(e,t)});return s`<calcite-checkbox .checked=${n} class="checkbox" title=${b??r} .disabled=${this._disabled} @calciteCheckboxChange=${()=>{i.enabled=!i.enabled}}></calcite-checkbox>`}_renderStatistics(){return s`<div class="content"><arcgis-elevation-profile-statistics .messages=${this.messages} .result=${this._disabled?void 0:this.result} .effectiveDisplayUnits=${this.effectiveDisplayUnits}></arcgis-elevation-profile-statistics></div>`}get _disabled(){return!this.featureSelected&&this.result.profile.type==="input"}};function u({profile:a},{profiles:e}){let t=a.title;if(t!=null)return t;if(!e)return"";switch(a.type){case"ground":return e.ground;case"input":return e.input;case"query":return e.query;case"scene":return e.scene;default:return""}}g("arcgis-elevation-profile-legend-item",l);return l},"intl")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{h as g}from"./G5VPRDMX.js";import{A as l,M as o,N as c,O as r,T as p,a as s,b as e}from"./
|
|
2
|
+
import{h as g}from"./G5VPRDMX.js";import{A as l,M as o,N as c,O as r,T as p,a as s,b as e}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([u])=>{var m=s`: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,.hint,.error,.section,.actions,.item{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap);animation:esri-fade-in .25s ease-in-out}.error{color:var(--calcite-color-status-danger)}.error,.hint{overflow:hidden;p{margin:0;padding:0}}.results-grid{display:grid;column-gap:var(--calcite-spacing-xxs);row-gap:var(--calcite-spacing-md);grid-template-columns:auto minmax(0,1fr) max-content;&.vertical{display:flex;flex-direction:column;align-items:flex-start;.item{display:block}.title{margin-bottom:var(--calcite-spacing-xxs)}.value{align-self:flex-start}}}.item{display:contents;&.disabled>*{color:var(--calcite-color-text-1);opacity:var(--calcite-opacity-light)}}.title{grid-column:1;--calcite-label-margin-bottom: 0}.value{grid-column:2;font-weight:var(--calcite-font-weight-semibold);white-space:normal;min-width:0;max-width:100%;align-self:center;justify-self:flex-end;text-align:end;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;word-break:normal;text-wrap:pretty;&:has(~:empty){grid-column:span 2}~:empty{display:none}}.unit{font-weight:var(--calcite-font-weight-semibold);text-align:left;grid-column:3;align-self:center}.actions{justify-content:center;gap:var(--arcgis-internal-panel-actions-gap);&[hidden]{display:none}}`,n=class extends c{constructor(){super(...arguments),this._formatter=new u,this._baseId=l(),this._hasActionsContent=!1,this.layout="horizontal",this.items=[],this.state="disabled",this.unsupportedLabel=""}static{this.properties={_hasActionsContent:16,hintLabel:1,layout:1,items:0,state:1,unsupportedLabel:1}}static{this.styles=m}async load(){await this._formatter.when()}_actionsRef(a){this._updateHasActionsContent(a)}_updateHasActionsContent(a){this._hasActionsContent=a!=null&&a.assignedNodes({flatten:!0}).length>0}render(){switch(this.state){case"unsupported":return e`<section class="error"><p>${this.unsupportedLabel}</p></section>`;case"measuring":return e`<section class="hint"><p>${this.hintLabel}</p></section>`;case"ready":return this._renderActions();default:return e`<slot name=settings></slot>${d({idBase:this._baseId,formatter:this._formatter,items:this.items,layout:this.layout})}${this._renderActions()}`}}_renderActions(){return e`<div class="actions" .hidden=${!this._hasActionsContent}><slot name=actions @slotchange=${({currentTarget:a})=>{this._updateHasActionsContent(a)}} ${o(this._actionsRef)}></slot></div>`}};function d(t){return e`<section class=${r({"results-grid":!0,vertical:t.layout==="vertical"})}>${t.items.map((a,i)=>v({formatter:t.formatter,measurement:a.measurement,title:a.title,valueId:`${t.idBase}-item-${i}`}))}</section>`}function h(t){let[a="-",i=""]=t.value?.split(" ")??[];return e`<output aria-live=polite class="value">${a}</output><span class="unit">${i}</span>`}function v(t){let a=t.measurement.state==="available"?g(t.formatter,t.measurement.value):null;return e`<div class=${r({item:!0,disabled:t.measurement.state!=="available"})}><calcite-label layout=inline class="title" .for=${t.valueId}>${t.title??""}</calcite-label>${h({value:a})}</div>`}p("arcgis-measurement-content",n);return n},"applications/Components/QuantityFormatter")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import d from"./
|
|
2
|
+
import d from"./6T4SNDWL.js";import b from"./GOIKNGEI.js";import{e as F}from"./5GFBHLDY.js";import"./42UVPIOD.js";import"./QUZTFUWM.js";import{d as c}from"./QLIWDFZI.js";import{N as C,O as m,P as f,Q as a,T as A,a as H,b as h,c as W}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getBoundingBox:O,computeBBox:P,getTransformMatrix:D},,{a:U,b:X,c:Y,d:j}])=>{var Q=H`.diamond-container{display:flex;font-size:var(--calcite-font-size-sm)}.diamond-left-column{align-self:center;padding-right:5px;max-width:85px;text-align:right}.diamond-right-column{align-self:center;padding-left:5px;max-width:85px;text-align:left}.diamond-middle-column{display:flex;flex-direction:column;text-align:center}.diamond-middle-column-label{align-self:center;max-width:85px}.diamond-middle-column-ramp{width:85px;height:85px}.square-table{display:table;font-size:var(--calcite-font-size-sm)}.square-table-row{display:table-row}.square-table-cell{display:table-cell}.square-table-label{max-width:95px}.square-table-label-left-bottom{vertical-align:bottom;text-align:left}.square-table-label-right-bottom{vertical-align:bottom;text-align:right}.square-table-label-left-top{vertical-align:top;text-align:left}.square-table-label-right-top{vertical-align:top;text-align:right}`,Z="http://www.w3.org/2000/svg",v=class extends C{constructor(){super(...arguments),this._direction=F(),this.legendElement=null}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=Q}_getLineMarkers(n,r){let e="arrowStart",i="arrowEnd",s=n==="left",t={markerStart:null,markerEnd:null};switch(r){case"HL":s?t.markerStart=`url(#${i})`:t.markerEnd=`url(#${e})`;break;case"LL":t.markerStart=`url(#${i})`;break;case"LH":s?t.markerEnd=`url(#${e})`:t.markerStart=`url(#${i})`;break;default:t.markerEnd=`url(#${e})`;break}return t}render(){let n=this.legendElement,{focus:r,labels:e}=n,i=!!r,s=this._renderRamp(n),t={justifyContent:"center"},l=this._direction==="rtl";return i?h`<div class="diamond-container" style=${f(t)}><div class="diamond-left-column">${l?e.right:e.left}</div><div class="diamond-middle-column"><div class="diamond-middle-column-label">${e.top}</div>${s}<div class="diamond-middle-column-label">${e.bottom}</div></div><div class="diamond-right-column">${l?e.left:e.right}</div></div>`:h`<div class="square-table"><div class="square-table-row"><div class=${m(c("square-table-cell","square-table-label","square-table-label-right-bottom"))}>${l?e.top:e.left}</div><div class="square-table-cell"></div><div class=${m(c("square-table-cell","square-table-label","square-table-label-left-bottom"))}>${l?e.left:e.top}</div></div><div class="square-table-row"><div class="square-table-cell"></div>${s}<div class="square-table-cell"></div></div><div class="square-table-row"><div class=${m(c("square-table-cell","square-table-label","square-table-label-right-top"))}>${l?e.right:e.bottom}</div><div class="square-table-cell"></div><div class=${m(c("square-table-cell","square-table-label","square-table-label-left-top"))}>${l?e.bottom:e.right}</div></div></div>`}_renderRamp(n){let{focus:r,numClasses:e,colors:i,rotation:s}=n,t=this.opacity,l=this.messages.previewRelationshipRampAriaLabel,o=60,u=!!r,d=Math.sqrt(o**2+o**2)+(u?0:5),$=[],k=[],x=[],b=o/e;for(let g=0;g<e;g++){let J=g*b;for(let p=0;p<e;p++){let K=p*b,_=X(i[g][p]),N=Y(null),R={type:"rect",x:K,y:J,width:b,height:b},z=U(_);z&&$.push(z);let B=j(R,_.fill,N,null);B&&k.push(B),x.push(O(R))}}let q=15,w=15,y=10,E;u||(E="margin: -15px -15px -18px -15px");let L=this._getLineMarkers("left",r),S=this._getLineMarkers("right",r),M=P(x),T=D(M,d,d,0,!1,s,!1),G=D(M,d,d,0,!1,u?-45:null,!1),I={filter:this.cssEffectFilter,opacity:t==null?"":`${t}`};return h`<div class=${m(u?"diamond-middle-column-ramp":"square-table-cell")} style=${f(I)}><svg .ariaLabel=${l} height=${d??a} role=img style=${f(E)} width=${d??a} xmlns=${Z}>${W`<defs><marker .id=${"arrowStart"} markerHeight=10 markerUnits=strokeWidth markerWidth=10 orient=auto refX=5 refY=5><polyline fill=none points="0,0 5,5 0,10" stroke=#555555 stroke-width=1 /></marker><marker .id=${"arrowEnd"} markerHeight=10 markerUnits=strokeWidth markerWidth=10 orient=auto refX=0 refY=5><polyline fill=none points="5,0 0,5 5,10" stroke=#555555 stroke-width=1 /></marker>${$}</defs><g transform=${T??a}>${k}</g><g transform=${G??a}><line fill=none marker-end=${L.markerEnd??void 0??a} marker-start=${L.markerStart??void 0??a} stroke=#555555 stroke-width=1 x1=${-10} x2=${-10} y1=${o-q} y2=${q} /><line fill=none marker-end=${S.markerEnd??void 0??a} marker-start=${S.markerStart??void 0??a} stroke=#555555 stroke-width=1 x1=${w} x2=${o-w} y1=${o+y} y2=${o+y} /></g>`}</svg></div>`}};A("arcgis-legend-relationship-ramp",v);return v},"applications/Components/svgUtils",b,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as m}from"./
|
|
2
|
+
import{a as m}from"./NDMHZQ2Z.js";import"./5GFBHLDY.js";import"./42UVPIOD.js";import"./QUZTFUWM.js";import"./QLIWDFZI.js";import{N as d,T as u,a as l,b as s,o as a,q as n}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";var g=l`.subnetwork-details{border-radius:var(--calcite-border-radius);border:solid 1px var(--calcite-color-border-3)}.key-value-pair{padding:var(--calcite-spacing-sm)}.key-value-pair__key{font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3)}.key-value-pair__value{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}`,c=class extends d{constructor(){super(...arguments),this._messages=m({blocking:!0})}static{this.properties={namedTraceConfiguration:0}}static{this.styles=g}loaded(){this.namedTraceConfiguration||a("warn",this,n("namedTraceConfiguration"))}#e(e,r){return s`<div class="key-value-pair"><div class="key-value-pair__key">${e}</div><div class="key-value-pair__value">${r}</div></div>`}render(){let{_messages:e,namedTraceConfiguration:r}=this;if(!r?.traceConfiguration)return a("error",this,n("namedTraceConfig.traceConfiguration")),null;let{domainNetworkName:i,tierName:t,targetTierName:o}=r.traceConfiguration;return!i&&!t&&!o?(a("warn",this,"`namedTraceConfig.traceConfiguration` has no `domainNetworkName`, `tierName`, or `targetTierName`."),null):s`<div class="subnetwork-details">${i?this.#e(e.headings.domainNetwork,i):null}${t?this.#e(e.headings.tier,t):null}${o?this.#e(e.headings.targetTier,o):null}</div>`}};u("arcgis-utility-network-subnetwork-info",c);export{c as ArcgisUtilityNetworkSubnetworkInfo};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as $,b as R}from"./WQISNLF7.js";import{a as s}from"./
|
|
2
|
+
import{a as $,b as R}from"./WQISNLF7.js";import{a as s}from"./RDWM76R2.js";import k from"./G3GFYB3W.js";import{a as f}from"./NDMHZQ2Z.js";import{a as n}from"./JD74LG7K.js";import j from"./K3VQUQ6I.js";import e from"./NFE73D6R.js";import{g}from"./5GFBHLDY.js";import"./42UVPIOD.js";import c from"./34IPKNHM.js";import"./QUZTFUWM.js";import{i as v}from"./QLIWDFZI.js";import{M as h,N as u,O as p,P as m,Q as a,T as b,a as l,b as i,w as d}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:y},M,{g:_},,,w])=>{var x=[-45,0,45,-90,90,-135,180,135],C={0:{label:"north",iconName:"chevron-up"},45:{label:"northEast",iconName:"chevron-up-right"},90:{label:"east",iconName:"chevron-right"},135:{label:"southEast",iconName:"chevron-down-right"},180:{label:"south",iconName:"chevron-down"},"-135":{label:"southWest",iconName:"chevron-down-left"},"-90":{label:"west",iconName:"chevron-left"},"-45":{label:"northWest",iconName:"chevron-up-left"}},S=l`:host{outline:none;box-shadow:none!important;background-color:transparent!important;user-select:none;calcite-action-pad{display:contents}calcite-action-group{touch-action:none}calcite-action{aspect-ratio:1}}.root{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm)}.buttons-container{--calcite-color-background: transparent;--calcite-action-group-gap: 0;calcite-action{--calcite-color-focus: var(--calcite-color-foreground-3)}calcite-action:not([active]){--calcite-action-background-color-press: var(--calcite-color-foreground-1)}calcite-action[active]{--calcite-action-background-color: var(--calcite-color-foreground-3)}calcite-icon{transform:var(--rotation, unset)}@media(hover:none){calcite-action{--calcite-action-background-color-hover: var(--calcite-color-foreground-1);--calcite-action-text-color-press: var(--calcite-color-text-3)}}}.rotation-container{display:block;width:100%;calcite-action{flex:.3}}.rotation-slider-container{display:flex;flex:1;align-items:center;calcite-slider{flex:1;padding-inline:var(--calcite-spacing-xxs)}}`,B=w(M),r=class extends u{constructor(){super(...arguments),this.messages=f({}),this._onContextMenu=t=>t.preventDefault(),this._buttons={},this.viewModel=B(this),this.angle=this.viewModel.angle,this.rotation=this.viewModel.rotation,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.disabled=this.viewModel.disabled,this.hideDirectionalButtons=!1,this.icon="move",this.showRotationResetButton=!1,this.showRotationSlider=!1,this.state=this.viewModel.state,this.visualScale="s",this.arcgisPropertyChange=g()("state"),this.arcgisReady=d()}static{this.properties={_rotationEnabled:16,angle:16,rotation:16,view:0,autoDestroyDisabled:5,disabled:5,hideDirectionalButtons:5,icon:1,label:1,messageOverrides:0,referenceElement:1,showRotationResetButton:5,showRotationSlider:5,state:32,visualScale:1}}static{this.styles=S}get _rotationEnabled(){return this.view?.ready?this.view.constraints.rotationEnabled??!1:!0}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[y(()=>this.viewModel.angle,()=>{this._buttonsContainer?.contains(document.activeElement)&&(this.viewModel.angle==null?_(this)?.focus():v(this._buttons[this.viewModel.angle]))})])}_rotateIcon(t){return{"--rotation":`rotate(${t}deg)`}}_setButtonContainerRef(t){t!==void 0?(this._buttonsContainer=t,queueMicrotask(()=>{this._buttons=Object.fromEntries(Array.from(t.children,e=>[Number.parseInt(e.getAttribute("data-angle")??""),e]))})):(this._buttonsContainer=void 0,this._buttons={})}_onButtonPointerDown(t){if(this._buttonsContainer===void 0)return;t.composedPath().find(o=>o.hasPointerCapture?.(t.pointerId))?.releasePointerCapture(t.pointerId);let e=$(this._buttonsContainer);this.viewModel.beginFollowingPointer(t,e)}_onSliderInput({currentTarget:t}){typeof t.value=="number"&&(this.viewModel.rotation=t.value)}_onRotationReset(){this.viewModel.rotation=0}_onClick(t){this.viewModel.moveOnce(t)}render(){let{label:t,disabled:e}=this,o=this.view==null||this.view.type==="2d";return i`<div .ariaLabel=${t??void 0} class=${p({root:!0,[n.widget]:!0,[n.disabled]:e})} tabindex=-1>${o?this._renderContent():this._renderUnsupportedMessage()}</div>`}_renderUnsupportedMessage(){return i`<section class="error"><p>${this.messages.unsupported}</p></section>`}_renderContent(){return[this.hideDirectionalButtons?void 0:this._renderDirectionalButtons(),this.showRotationSlider?this._renderRotation():void 0]}_renderDirectionalButtons(){return s("directional-buttons-container",i`<calcite-action-bar expand-disabled floating layout=grid .scale=${this.visualScale} overflow-actions-disabled><calcite-action-group class="buttons-container" dir=ltr @contextmenu=${{handleEvent:this._onContextMenu,capture:!0}} ${h(this._setButtonContainerRef)}>${x.slice(0,4).map(this._renderButton,this)}${this._renderCompass()}${x.slice(4).map(this._renderButton,this)}</calcite-action-group></calcite-action-bar>`)}_renderButton(t){let{label:e,iconName:o}=C[t],c=this.messages[e];return i`<calcite-action .active=${this.angle===t} alignment=center class="button" data-angle=${t??a} .disabled=${this.disabled} @click=${this._onClick.bind(this,t)} @pointerdown=${this._onButtonPointerDown} .text=${c??""} title=${c??a}><calcite-icon .icon=${o} .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderCompass(){let t=this.disabled||R(this.view)?"compass-needle":"arrow-up",e=this.rotation===0,o=this.messages.resetHeading;return i`<calcite-action alignment=center class="compass" .disabled=${this.disabled||!this._rotationEnabled||e} @click=${this._onRotationReset} style=${m(this._rotateIcon(this.rotation))} .text=${o??""} title=${o??a}>${!e&&i`<calcite-icon .icon=${t} .scale=${this.visualScale}></calcite-icon>`||""}</calcite-action>`}_renderRotation(){return s("slider-container",i`<calcite-action-bar expand-disabled floating layout=horizontal .scale=${this.visualScale}><calcite-action-group class="rotation-container">${this.showRotationResetButton?this._renderRotationResetButton():null}${this._renderRotationSlider()}</calcite-action-group></calcite-action-bar>`)}_renderRotationResetButton(){let t=this.messages.resetHeading;return i`<calcite-action alignment=center class="rotation-reset-button" .disabled=${this.disabled||!this._rotationEnabled} @click=${this._onRotationReset} .text=${t??""} title=${t??a}><calcite-icon flip-rtl icon=rotate .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderRotationSlider(){return i`<div class="rotation-slider-container"><calcite-slider .ariaLabel=${this.messages.heading} .disabled=${this.disabled||!this._rotationEnabled} label-handles max=360 min=0 required .scale=${this.visualScale} .value=${Math.round(this.rotation)} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div>`}};b("arcgis-directional-pad",r);return r},"core/reactiveUtils","widgets/DirectionalPad/DirectionalPadViewModel",c,e,j,k)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as o}from"./POKO37D3.js";import{M as h,N as p,Q as a,T as g,a as l,b as i,w as r}from"./
|
|
2
|
+
import{a as o}from"./POKO37D3.js";import{M as h,N as p,Q as a,T as g,a as l,b as i,w as r}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";var d=l`:host{--arcgis-unit-select-inline-size: 180px}calcite-popover[calcite-hydrated-hidden]{inset-block-start:-999999px;inset-inline-start:-999999px}.popover-content{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);padding:var(--calcite-spacing-md);max-width:300px}.uniform-chart-scaling-label{--calcite-label-margin-bottom: 0}.uniform-chart-scaling-checkbox-wrapper{width:var(--arcgis-unit-select-inline-size);flex-shrink:0}.slot-content{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm)}.slot-content ::slotted(*){max-inline-size:100%}`,c=class extends p{constructor(){super(...arguments),this._onUniformChartScalingChange=e=>{this.arcgisElevationProfileSettingsUniformChartScalingChange.emit(e.currentTarget.checked)},this._onActionRef=e=>{this._actionElement=e??void 0},this._popoverIsOpen=!1,this.hideDistanceDisplayUnitSelect=!1,this.hideElevationDisplayUnitSelect=!1,this.hideUniformChartScalingToggle=!1,this.hasCustomStartContent=!1,this.hasCustomEndContent=!1,this.arcgisElevationProfileSettingsUniformChartScalingChange=r()}static{this.properties={_popoverIsOpen:16,_actionElement:16,viewModel:0,hideDistanceDisplayUnitSelect:5,hideElevationDisplayUnitSelect:5,hideUniformChartScalingToggle:5,hasCustomStartContent:5,hasCustomEndContent:5,messages:0,uniformChartScaling:5,unitOptionsDistance:0,unitOptionsElevation:0,messageOverrides:0}}static{this.styles=d}async destroy(){await this.manager.destroy()}_onPopoverClose(){this._popoverIsOpen=!1}_onPopoverOpen(){this._popoverIsOpen=!0}render(){let{messages:e}=this;if(!e||!this.hasCustomStartContent&&!this.hasCustomEndContent&&this.hideDistanceDisplayUnitSelect&&this.hideElevationDisplayUnitSelect&&this.hideUniformChartScalingToggle)return;let t=(this._popoverIsOpen?e.hideSettings:e.showSettings)??"";return i`<calcite-action icon=gear .text=${t} title=${t??a} ${h(this._onActionRef)}></calcite-action>${this._actionElement?i`<calcite-popover auto-close .label=${t} placement=bottom-end .referenceElement=${this._actionElement} @calcitePopoverOpen=${this._onPopoverOpen} @calcitePopoverClose=${this._onPopoverClose}><div class="popover-content">${this._renderCustomContent("settings-start",this.hasCustomStartContent)}${this._renderUnitSelector()}${this._renderUniformChartScalingToggle()}${this._renderCustomContent("settings-end",this.hasCustomEndContent)}</div></calcite-popover>`:void 0}`}_renderUnitSelector(){let{viewModel:e,messages:t}=this;if(!e||this.hideDistanceDisplayUnitSelect&&this.hideElevationDisplayUnitSelect)return;let n="inline-space-between";return i`${o({hidden:this.hideDistanceDisplayUnitSelect,children:i`<arcgis-unit-select .options=${this.unitOptionsDistance} .selectLabel=${t.unitDistanceSelectLabel} .value=${e.distanceUnit} .layout=${n} .messageOverrides=${this.messageOverrides} @arcgisUnitSelectChange=${s=>{e.distanceUnit=s.detail}}></arcgis-unit-select>`})}${o({hidden:this.hideElevationDisplayUnitSelect,children:i`<arcgis-unit-select .options=${this.unitOptionsElevation} .selectLabel=${t.unitElevationSelectLabel} .value=${e.elevationUnit} .layout=${n} .messageOverrides=${this.messageOverrides} @arcgisUnitSelectChange=${s=>{e.elevationUnit=s.detail}}></arcgis-unit-select>`})}`}_renderUniformChartScalingToggle(){let{messages:e,hideUniformChartScalingToggle:t,uniformChartScaling:n}=this;if(t)return;let s=e?.[n?"uniformChartScalingDisable":"uniformChartScalingEnable"]??"";return i`<calcite-label class="uniform-chart-scaling-label" layout=inline-space-between>${e?.uniformChartScalingLabel}<div class="uniform-chart-scaling-checkbox-wrapper"><calcite-checkbox .checked=${n} title=${s??a} @calciteCheckboxChange=${this._onUniformChartScalingChange}></calcite-checkbox></div></calcite-label>`}_renderCustomContent(e,t){if(t)return i`<div class="slot-content"><slot name=${e??a}></slot></div>`}};g("arcgis-elevation-profile-settings",c);export{c as ArcgisElevationProfileSettings};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as he,b as ce,c as me}from"./VDTRRLON.js";import c from"./3WTBTYMS.js";import b from"./HX5ZGPW4.js";import a from"./PT7XD6RE.js";import"./VJVKFKSG.js";import{a as se}from"./PTHSNQL2.js";import"./CNA7TDZN.js";import"./VJMC3CMB.js";import"./QUZTFUWM.js";import"./M3DP7XNI.js";import{L as H,M as U,N as ie,T as oe,a as ee,b as O,o as te}from"./QL3M4ZI7.js";import"./H6RQVSYM.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,Le,pe,Z,W,Re,X,{createSphere:Fe},Ne,$e,{b:I,d:ae,e: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=Fe(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 qe(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=qe(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 Pe({components:[y],vertexAttributes:new Re({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())}},q=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}},J=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 Ae({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 q({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))}},Je=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&&Je(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 Le({url:this.url,datasetFormat:this.extension,skipMapInfo:!0,skipExtensions:["aux.xml","jgw"]});this._panoramicTileSource=new J(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","Camera","views/3d/environment/Environment","core/reactiveUtils","applications/Components/baUtils","core/Collection","symbols/FillSymbol3DLayer","symbols/MeshSymbol3D","Ground","core/Accessor","core/accessorSupport/decorators","core/Error","geometry/Mesh","geometry/Extent","layers/ImageryTileLayer","geometry/support/MeshComponent","geometry/support/MeshMaterialMetallicRoughness","geometry/support/MeshTexture","geometry/support/MeshVertexAttributes","geometry/Point","geometry/support/meshUtils","symbols/Font","symbols/TextSymbol",a,b,c)
|
|
2
|
+
import{a as he,b as ce,c as me}from"./VDTRRLON.js";import c from"./3WTBTYMS.js";import b from"./ETV3RIV4.js";import a from"./FR3DD5XU.js";import"./VJVKFKSG.js";import{a as se}from"./NDMHZQ2Z.js";import"./5GFBHLDY.js";import"./42UVPIOD.js";import"./QUZTFUWM.js";import"./QLIWDFZI.js";import{L as H,M as U,N as ie,T as oe,a as ee,b as O,o as te}from"./ZJZBS5ZY.js";import"./H6RQVSYM.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,Le,pe,Z,W,Re,X,{createSphere:Fe},Ne,$e,{b:I,d:ae,e: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=Fe(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 qe(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=qe(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 Pe({components:[y],vertexAttributes:new Re({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())}},q=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}},J=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 Ae({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 q({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))}},Je=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&&Je(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 Le({url:this.url,datasetFormat:this.extension,skipMapInfo:!0,skipExtensions:["aux.xml","jgw"]});this._panoramicTileSource=new J(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","Camera","views/3d/environment/Environment","core/reactiveUtils","applications/Components/baUtils","core/Collection","symbols/FillSymbol3DLayer","symbols/MeshSymbol3D","Ground","core/Accessor","core/accessorSupport/decorators","core/Error","geometry/Mesh","geometry/Extent","layers/ImageryTileLayer","geometry/support/MeshComponent","geometry/support/MeshMaterialMetallicRoughness","geometry/support/MeshTexture","geometry/support/MeshVertexAttributes","geometry/Point","geometry/support/meshUtils","symbols/Font","symbols/TextSymbol",a,b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as u}from"./
|
|
2
|
+
import{a as u}from"./NDMHZQ2Z.js";import"./5GFBHLDY.js";import"./42UVPIOD.js";import"./QUZTFUWM.js";import"./QLIWDFZI.js";import{A as h,M as m,N as d,Q as s,T as f,a as n,b as a,w as p}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([i,{substitute:b}])=>{var g=n`:host{display:inline-block;position:relative;width:fit-content;isolation:isolate}calcite-label:focus-within .swatch-wrapper{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:2px}`,l=class extends d{constructor(){super(...arguments),this._messages=u(),this.#t=e=>{this._popoverReferenceElement=e??void 0},this.#e=h(),this._color=new i([0,0,0,1]),this._open=!1,this.arcgisColorChanged=p()}static{this.properties={_color:16,_open:16,_popoverReferenceElement:16,color:1,label:1}}static{this.styles=g}#t;#e;#s(e){(e.key===" "||e.key==="Enter")&&this.#o(e)}#o(e){e.preventDefault(),e.stopPropagation(),this._open=!this._open}get color(){return this._color}set color(e){let o=e instanceof i?e:new i(e);o.equals(this._color)||(this._color=o)}render(){let e=this._color.toCss(!0),[o,_,$,v]=this._color.toRgba(),r=b(this._messages?.ariaDescription??"",{label:this.label??this._messages?.label??"",color:`${o}, ${_}, ${$}, ${v}`});return a`<calcite-label layout=inline scale=s @click=${this.#o}><div class="swatch-wrapper" tabindex=0 role=button aria-controls=${this.#e??s} aria-expanded=${this._open?"true":"false"} aria-haspopup=dialog aria-label=${r??s} @keydown=${this.#s} @click=${this.#o} ${m(this.#t)}><calcite-swatch .color=${e} .label=${r}></calcite-swatch></div>${this.label??this._messages?.label}${this._popoverReferenceElement?a`<calcite-popover id=${this.#e??s} auto-close class="popover" .label=${this._messages?.popoverLabel??""} .open=${this._open} @calcitePopoverClose=${()=>this._open=!1} @calcitePopoverOpen=${()=>this._open=!0} overlay-positioning=fixed .referenceElement=${this._popoverReferenceElement}><calcite-color-picker alpha-channel channels-disabled @click=${t=>{t.stopPropagation()}} @calciteColorPickerInput=${({target:{value:t}})=>{if(typeof t=="string"){let c=new i(t);this.color=c,this.arcgisColorChanged.emit(c)}}} saved-disabled .value=${e}></calcite-color-picker></calcite-popover>`:void 0}</calcite-label>`}};f("arcgis-color-select",l);return l},"Color","intl")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as i}from"./JCRPP54Z.js";import{e as y}from"./LDDAJOTV.js";import{g as f}from"./
|
|
2
|
+
import{a as i}from"./JCRPP54Z.js";import{e as y}from"./LDDAJOTV.js";import{g as f}from"./5GFBHLDY.js";import{d as h}from"./QLIWDFZI.js";import{M as m,N as u,O as p,Q as g,T as d,a as l,b as o}from"./ZJZBS5ZY.js";var v=l`:host{margin-inline:var(--calcite-space-sm)}.status-indicator{visibility:hidden}.publishing{visibility:visible;color:var(--calcite-color-text-2);transform-origin:var(--calcite-list-item-icon-center) var(--calcite-list-item-icon-center);animation:2s infinite arcgis-layer-list__publishing-anim}.updating{visibility:visible;animation:2s infinite arcgis-layer-list__updating-anim}.connection-status{visibility:visible;color:var(--calcite-color-status-warning);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl)}.connection-status--connected{color:var(--calcite-color-status-success)}@keyframes arcgis-layer-list__updating-anim{0%,40%{color:transparent}50%,80%{color:var(--calcite-color-brand)}to{color:transparent}}@keyframes arcgis-layer-list__publishing-anim{0%,20%{transform:rotate(45deg)}80%,to{transform:rotate(135deg)}}`,r=class extends u{constructor(){super(...arguments),this.autoDestroyDisabled=!1,this.arcgisPropertyChange=f()("item","parent")}static{this.properties={_iconEl:16,item:0,parent:0,messages:0,autoDestroyDisabled:5}}static{this.styles=[v]}async destroy(){await this.manager.destroy()}_setIconEl(e){this._iconEl=e}getTooltipText(e,a,n,t){let s=c=>typeof c=="string"?c:"";if(e)return s(t?.publishing);if(a)return s(t?.updating);switch(n){case"connected":return s(t?.connected);case"paused":return s(t?.paused);default:return s(t?.disconnected)}}render(){if(!this.item)return null;let{publishing:e}=this.item,a="updating"in this.item&&this.item.updating&&!this.parent,n="connectionStatus"in this.item?this.item.connectionStatus:void 0,t=!!n,s=e||a||t?y({connectionStatus:n,publishing:e}):"blank",{messages:c}=this,b=this.getTooltipText(e,a,n,c);return o`<calcite-icon class=${p(h(i.statusIndicator,{[i.publishing]:e},"updating"in i&&{[i.updating]:a},"connectionStatus"in i&&{[i.connectionStatus]:t},"connectionStatusConnected"in i&&{[i.connectionStatusConnected]:t&&n==="connected"}))} title=${c?.connectionStatus??g} .icon=${s} scale=s ${m(this._setIconEl)}></calcite-icon>${this._iconEl?o`<calcite-tooltip placement=top .referenceElement=${this._iconEl}>${b}</calcite-tooltip>`:null}`}};d("arcgis-layer-list-item-indicator",r);export{r as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import e from"./3AN2HM4J.js";import d from"./CL2BELDC.js";import c from"./K3VQUQ6I.js";import b from"./NFE73D6R.js";import"./5GFBHLDY.js";import"./42UVPIOD.js";import a from"./34IPKNHM.js";import"./QUZTFUWM.js";import"./QLIWDFZI.js";import"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([,,,,a])=>{return a},a,b,c,d,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{b as y}from"./WQISNLF7.js";import{a as e}from"./4MJJOPAL.js";import{a as v}from"./
|
|
2
|
+
import{b as y}from"./WQISNLF7.js";import{a as e}from"./4MJJOPAL.js";import{a as v}from"./NDMHZQ2Z.js";import{a as w}from"./JD74LG7K.js";import f from"./NFE73D6R.js";import{g as p}from"./5GFBHLDY.js";import"./42UVPIOD.js";import b from"./34IPKNHM.js";import"./QUZTFUWM.js";import{d as g}from"./QLIWDFZI.js";import{N as h,O as d,P as u,Q as a,T as m,a as n,b as c,w as l}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getGoToDuration:x},{watch:o},,{a:f}])=>{var b=n`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{calcite-button{width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl)}}:host([visual-scale="l"]){calcite-button{width:calc(var(--calcite-spacing-xxxl) + var(--calcite-spacing-md));height:calc(var(--calcite-spacing-xxxl) + var(--calcite-spacing-md))}}:host([visual-scale="s"]){calcite-button{width:var(--calcite-spacing-xxl);height:var(--calcite-spacing-xxl)}}.root{border-radius:50%;box-shadow:var(--arcgis-internal-box-shadow, none)}.icon-container{justify-content:center;display:flex;position:absolute;transform:translate(-50%,-50%)}.icon-container:dir(rtl){transform:translate(50%,-50%)}`,s=class extends h{constructor(){super(...arguments),this._hasInitializedOrientation=!1,this._hasInitializedState=!1,this._lastState="disabled",this.messages=v(),this._orientation={x:0,y:0,z:0},this.view=f(this),this.autoDestroyDisabled=!1,this.visualScale="m",this.arcgisPropertyChange=p()("state","orientation"),this.arcgisReady=l()}static{this.properties={_orientation:16,view:0,autoDestroyDisabled:5,canShowNorth:32,goToOverride:0,icon:3,label:1,messageOverrides:0,orientation:32,referenceElement:1,state:32,visualScale:3}}static{this.styles=b}get canShowNorth(){return y(this.view)}get icon(){return this._icon??(this.state==="rotation"?"arrow-up":"compass-needle")}set icon(t){this._icon=t}get orientation(){return this._orientation}get state(){return!this.view?.ready||this.view.type==="2d"&&!this.view.constraints.rotationEnabled?"disabled":this.canShowNorth?"compass":"rotation"}async destroy(){await this.manager.destroy()}async reset(){let{view:t}=this;t?.ready&&(t?.type==="2d"?e({target:{rotation:0},options:{animationMode:"always",duration:x()}},t,this.goToOverride):e({target:{heading:0}},t,this.goToOverride))}updated(t){t.has("_orientation")&&(this._hasInitializedOrientation?this.arcgisPropertyChange.emit({name:"orientation"}):this._hasInitializedOrientation=!0);let i=this.state;this._hasInitializedState?i!==this._lastState&&this.arcgisPropertyChange.emit({name:"state"}):this._hasInitializedState=!0,this._lastState=i}loaded(){if(!this.view){this.manager.onLifecycle(()=>[o(()=>this.view?.ready,()=>{this._watchRotationOrCamera()},{once:!0})]);return}this._watchRotationOrCamera()}_watchRotationOrCamera(){if(!this.view)return;let t=[];this.view.type==="2d"?t.push(o(()=>this.view?.rotation,i=>this._updateForRotation(i),{initial:!0})):t.push(o(()=>this.view?.camera,i=>this._updateForCamera(i),{initial:!0})),this.manager.onLifecycle(()=>t)}_updateForRotation(t){t!=null&&(this._orientation={z:t})}_updateForCamera(t){if(!t)return;let i=-t.heading;this._orientation={x:0,y:0,z:i}}render(){let{messages:t,icon:i}=this;return c`<div class=${d(g("root",w.arcgisButton))}><calcite-button .disabled=${this.state==="disabled"} kind=neutral .label=${t.reset} @click=${this.reset} round .scale=${this.visualScale} title=${t.reset??a}><div aria-hidden=true class="icon-container" title=${t.reset??a}><calcite-icon .scale=${this.visualScale} .icon=${i} style=${u(_(this.orientation))}></calcite-icon></div></calcite-button></div>`}},_=r=>({transform:`rotateZ(${r.z}deg)`});m("arcgis-compass",s);return s},"applications/Components/navigationDuration","core/reactiveUtils",b,f)
|