@arcgis/map-components 5.1.0-next.78 → 5.1.0-next.79
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/{NBMOR3C3.js → 254JE3ZB.js} +1 -1
- package/dist/cdn/{6EHFB5MX.js → 2A3CQYQ7.js} +1 -1
- package/dist/cdn/{RYTRWCXZ.js → 2DBALWLV.js} +1 -1
- package/dist/cdn/{YKWANHMZ.js → 2EETEGWH.js} +1 -1
- package/dist/cdn/{52O6WSI4.js → 2ZIVMDLT.js} +1 -1
- package/dist/cdn/{PYCPKGFF.js → 3DR3T6WY.js} +1 -1
- package/dist/cdn/{KUHHYT6E.js → 3ST3R6TY.js} +1 -1
- package/dist/cdn/{5T4NN5A3.js → 3UIFEHVN.js} +1 -1
- package/dist/cdn/{U3YXUZHJ.js → 3V3C2ZU3.js} +1 -1
- package/dist/cdn/{KYAZDACR.js → 3Y2I6Q3J.js} +1 -1
- package/dist/cdn/{ESRT2LM3.js → 4BIYVGRT.js} +1 -1
- package/dist/cdn/{NC4U36XU.js → 4LH2UCIP.js} +1 -1
- package/dist/cdn/{IJTP75DN.js → 4NEKB2OV.js} +1 -1
- package/dist/cdn/{HLAS4IJN.js → 4VZNRZ26.js} +1 -1
- package/dist/cdn/{V45TGYWX.js → 4ZVO47Z6.js} +1 -1
- package/dist/cdn/{Q5XUBNES.js → 52MIKBO5.js} +1 -1
- package/dist/cdn/{WGYO5OR6.js → 53F4NPVF.js} +1 -1
- package/dist/cdn/{5VYKZV6B.js → 5DFJGBYK.js} +1 -1
- package/dist/cdn/{OR3ZMOGW.js → 5XBBZKIV.js} +1 -1
- package/dist/cdn/{JGWD2EFI.js → 6DVM7BMM.js} +1 -1
- package/dist/cdn/{DSILOGA4.js → 6K6PF7RA.js} +1 -1
- package/dist/cdn/{CI7CWSV2.js → 6OQ6BUPD.js} +1 -1
- package/dist/cdn/{6WK62PKO.js → 6QDIKQCW.js} +1 -1
- package/dist/cdn/{UD6QF2NI.js → 6TKSPKND.js} +1 -1
- package/dist/cdn/{RROMCPSS.js → 6XJ6D6RZ.js} +1 -1
- package/dist/cdn/{A7UALTCV.js → 6XMHKAAL.js} +1 -1
- package/dist/cdn/{ZEOBDRTD.js → 76SW3QWO.js} +1 -1
- package/dist/cdn/{3XD6T77C.js → 77TGNHGP.js} +1 -1
- package/dist/cdn/{JEMHSKQB.js → 7DXKBUXN.js} +1 -1
- package/dist/cdn/{YSVPE3RI.js → 7EE3HT3N.js} +1 -1
- package/dist/cdn/{2MYNJXEY.js → 7I7G7KRT.js} +1 -1
- package/dist/cdn/7U7KUYWO.js +2 -0
- package/dist/cdn/{6BZE3KO2.js → ABIDHISH.js} +1 -1
- package/dist/cdn/{4CHI5XSE.js → ACMP5JBE.js} +1 -1
- package/dist/cdn/{NNI6LGQD.js → AE2KWD5P.js} +1 -1
- package/dist/cdn/{HENNZAPX.js → AFCNMKZ5.js} +1 -1
- package/dist/cdn/{N65HO77B.js → AG7ZLICT.js} +1 -1
- package/dist/cdn/{3STORKVK.js → APNPUX7C.js} +1 -1
- package/dist/cdn/{L63YI34J.js → AVBES3CX.js} +1 -1
- package/dist/cdn/{PV3EMYHQ.js → B47ZBN7H.js} +1 -1
- package/dist/cdn/{6VS456TO.js → B5RFEJJ7.js} +1 -1
- package/dist/cdn/{7ZHMWLGY.js → B7CBHTRK.js} +1 -1
- package/dist/cdn/{VMVHTLRD.js → BKAPYSAA.js} +1 -1
- package/dist/cdn/{A22L5XP5.js → BQDL5AKD.js} +1 -1
- package/dist/cdn/{4TV5HESM.js → BYU3MXJ6.js} +1 -1
- package/dist/cdn/{754HIIHN.js → BZIK6Z7E.js} +1 -1
- package/dist/cdn/{WNAVM6XX.js → CEEUQZJV.js} +1 -1
- package/dist/cdn/{GHNXMTEW.js → CI7OTBUT.js} +1 -1
- package/dist/cdn/{RVWQECCR.js → CKATA7TG.js} +1 -1
- package/dist/cdn/{JV35L4KZ.js → CNP4VKEY.js} +1 -1
- package/dist/cdn/{LUXDVDWQ.js → CQJXWT5R.js} +1 -1
- package/dist/cdn/{O26UZS77.js → CSWPJZDK.js} +1 -1
- package/dist/cdn/{B776JQDT.js → CXPHSAIT.js} +1 -1
- package/dist/cdn/{UUSDRN34.js → D7I26KVL.js} +1 -1
- package/dist/cdn/{RC3W33TY.js → DJDKXMR4.js} +1 -1
- package/dist/cdn/DUG7JSW6.js +2 -0
- package/dist/cdn/{D53MCPSK.js → DUQC4HHR.js} +1 -1
- package/dist/cdn/{A4AU5MP3.js → E5YUWMMG.js} +1 -1
- package/dist/cdn/{N6EZNANB.js → E6EUQGDP.js} +1 -1
- package/dist/cdn/{3HYZ3J2E.js → E6IL4F2M.js} +1 -1
- package/dist/cdn/{FFG3KEF2.js → E6N6QLP4.js} +1 -1
- package/dist/cdn/{SXGAGZZF.js → ECKKHMMU.js} +1 -1
- package/dist/cdn/{TRFQEBXS.js → EE2HPZ4A.js} +1 -1
- package/dist/cdn/{GDRDTQNF.js → EMIPZ32D.js} +1 -1
- package/dist/cdn/{NE7URSJE.js → ESB62TDV.js} +1 -1
- package/dist/cdn/{OF557DVT.js → EWNALU5W.js} +1 -1
- package/dist/cdn/{5K7ZMOEQ.js → F3RHLUTC.js} +1 -1
- package/dist/cdn/{L2IH77R2.js → F3ZKDMWI.js} +1 -1
- package/dist/cdn/{TG26NB3V.js → FIZUMN7H.js} +1 -1
- package/dist/cdn/{EH65OLD4.js → FJN7WJ5N.js} +1 -1
- package/dist/cdn/FJPZU3ZV.js +2 -0
- package/dist/cdn/{BUVEEFU7.js → FQUXYFDU.js} +1 -1
- package/dist/cdn/{NJ45FAUA.js → FRGRZ42K.js} +1 -1
- package/dist/cdn/{ZQDX6D67.js → FVQUTZLR.js} +1 -1
- package/dist/cdn/{T5SQSJ4I.js → G4FGSUWN.js} +1 -1
- package/dist/cdn/{AZHR5D3O.js → GAEUASLL.js} +1 -1
- package/dist/cdn/{VPOSSFKR.js → GAJMF6RP.js} +1 -1
- package/dist/cdn/{BC3ME4FG.js → GRKGTWUF.js} +1 -1
- package/dist/cdn/{ISHFOB43.js → GUBMV5YD.js} +1 -1
- package/dist/cdn/{LGHCANK6.js → GUHQ4SWM.js} +1 -1
- package/dist/cdn/{OU2KFEK7.js → H2XQENEQ.js} +1 -1
- package/dist/cdn/{NH55ZRSN.js → H3DRTTRE.js} +1 -1
- package/dist/cdn/{EL3TOQXJ.js → HBAGN3SY.js} +1 -1
- package/dist/cdn/{PBACFJHC.js → HNJYF5XR.js} +1 -1
- package/dist/cdn/{YTQQDJUX.js → HPCCUTBX.js} +1 -1
- package/dist/cdn/{TKV5RNCX.js → HQOJ5IRW.js} +1 -1
- package/dist/cdn/{F3ZBOUVA.js → HU5IRGRQ.js} +1 -1
- package/dist/cdn/{A3LEKJKR.js → HU65S62F.js} +1 -1
- package/dist/cdn/{7ZPROKEE.js → HVEHKM52.js} +1 -1
- package/dist/cdn/{7QA6YHUU.js → HYKQPCTD.js} +1 -1
- package/dist/cdn/{FRDIRDV2.js → IIQQUUEG.js} +1 -1
- package/dist/cdn/{PPXAIUP5.js → IN3VBXB7.js} +1 -1
- package/dist/cdn/{IE6ZIKTS.js → IVOKWKIJ.js} +1 -1
- package/dist/cdn/{RUN2XYMY.js → J4LX4RDC.js} +1 -1
- package/dist/cdn/{OU4GNV5Y.js → J4TYGEI3.js} +1 -1
- package/dist/cdn/{2KPAIYFL.js → JA3BIJG2.js} +1 -1
- package/dist/cdn/{PDJZAHR3.js → JI6G3SRC.js} +1 -1
- package/dist/cdn/{CIAIK3BO.js → JNCJIAH5.js} +1 -1
- package/dist/cdn/{WBPFDTEJ.js → JPCROHRC.js} +1 -1
- package/dist/cdn/{FMFI64MN.js → JTXEOZ4U.js} +1 -1
- package/dist/cdn/{I747LK4V.js → JUIA2RF6.js} +1 -1
- package/dist/cdn/{7L4BYCIR.js → K3ZOWUVQ.js} +1 -1
- package/dist/cdn/{FZ234X2S.js → K455WYX6.js} +1 -1
- package/dist/cdn/{I56NMUHZ.js → KDIBOT2K.js} +1 -1
- package/dist/cdn/{I4FQEN2E.js → KDZBWP74.js} +1 -1
- package/dist/cdn/{SVZ5TS47.js → KTDKJ5G6.js} +1 -1
- package/dist/cdn/{UUGR43RO.js → KTYMX423.js} +1 -1
- package/dist/cdn/L7GAWVJH.js +2 -0
- package/dist/cdn/{BUBHE53F.js → LLBKJRR4.js} +1 -1
- package/dist/cdn/{V2BJHPKN.js → LNCRYO2V.js} +1 -1
- package/dist/cdn/{63DNMQT4.js → LQTNAFPN.js} +1 -1
- package/dist/cdn/{IJ23I4O5.js → LYZMPNI4.js} +1 -1
- package/dist/cdn/{OVVNERWE.js → M7RQ3L6H.js} +1 -1
- package/dist/cdn/{JVFKWD4H.js → MC6MYJLJ.js} +1 -1
- package/dist/cdn/{BXUZLV3P.js → MKOWJU7V.js} +1 -1
- package/dist/cdn/{VCA3DNKP.js → N3ERK6NB.js} +1 -1
- package/dist/cdn/{OWMOCBP5.js → NLYC7Z54.js} +1 -1
- package/dist/cdn/{XF56AAZA.js → NMSTKGMQ.js} +1 -1
- package/dist/cdn/{SZYFJ2ME.js → NQQXH4BL.js} +1 -1
- package/dist/cdn/{A4PJCQZZ.js → NVVDARUC.js} +1 -1
- package/dist/cdn/{5YLOV5ME.js → NX4CKJEK.js} +1 -1
- package/dist/cdn/{L2ZRXLAY.js → O4ILRFUM.js} +1 -1
- package/dist/cdn/{BJXBU27X.js → ODALKFNW.js} +1 -1
- package/dist/cdn/{VSHOU5LO.js → OGUICK2F.js} +1 -1
- package/dist/cdn/{52QFTNJG.js → ONFCJKLO.js} +1 -1
- package/dist/cdn/OX64ONZE.js +2 -0
- package/dist/cdn/{EHCSSPND.js → OYDYD5BC.js} +1 -1
- package/dist/cdn/{V4QAL5W3.js → OZFNTMYH.js} +1 -1
- package/dist/cdn/{ENZU463G.js → P4TQOIJG.js} +1 -1
- package/dist/cdn/{ONHQ3PYJ.js → PO3NMPKS.js} +1 -1
- package/dist/cdn/{VOO3RMI7.js → PT4OAWSU.js} +1 -1
- package/dist/cdn/{UCML2746.js → PXGQNGKC.js} +1 -1
- package/dist/cdn/{TLSINA7Z.js → Q3NKAVJC.js} +1 -1
- package/dist/cdn/{6YTWFGYC.js → Q6MNNDO4.js} +1 -1
- package/dist/cdn/{U244HQF3.js → QJOZC53I.js} +1 -1
- package/dist/cdn/{Q2HMS3UI.js → QKSU7LVE.js} +1 -1
- package/dist/cdn/{RKE44TXA.js → QLPEWWE3.js} +1 -1
- package/dist/cdn/{6ADPAEGR.js → QZMJWS2B.js} +1 -1
- package/dist/cdn/{G7ABQLKM.js → RAOQLYGB.js} +1 -1
- package/dist/cdn/{3S5CHU4A.js → RB3WCYIH.js} +1 -1
- package/dist/cdn/{KCUBKBVC.js → RGMMJ7FD.js} +1 -1
- package/dist/cdn/{UODEI64R.js → RKMX5UC5.js} +1 -1
- package/dist/cdn/{UL4XLLGI.js → RNPB43PI.js} +1 -1
- package/dist/cdn/{J752EZTH.js → RQ44NHSK.js} +1 -1
- package/dist/cdn/{QLYIU55V.js → RRGRQMTZ.js} +1 -1
- package/dist/cdn/{H5PYEVJK.js → RSCIGL3Q.js} +1 -1
- package/dist/cdn/{JI4OTEL5.js → RYVHAKPU.js} +1 -1
- package/dist/cdn/{6L32XZYR.js → RZHHKFQG.js} +1 -1
- package/dist/cdn/{4MXDYPC4.js → S4NYFQGB.js} +1 -1
- package/dist/cdn/{JAFF7K7J.js → S7EA4UD5.js} +1 -1
- package/dist/cdn/{PH7MF23O.js → SAVKJMII.js} +1 -1
- package/dist/cdn/{ZD53HSIG.js → SF2FK3DX.js} +1 -1
- package/dist/cdn/{LYJ2YSMR.js → SFWUJGG4.js} +1 -1
- package/dist/cdn/{CK2WVOTW.js → SITLYLLQ.js} +1 -1
- package/dist/cdn/{KJIFTTVI.js → SJ4ZOWRE.js} +1 -1
- package/dist/cdn/{ZOJOWYGT.js → SLTCC6CD.js} +1 -1
- package/dist/cdn/{JML2AIAF.js → SMF2ZF5W.js} +1 -1
- package/dist/cdn/{5FVIW7SW.js → SMNPXSQD.js} +1 -1
- package/dist/cdn/{6SQQGMCG.js → ST65RBHQ.js} +1 -1
- package/dist/cdn/{DVO4VBDY.js → SUJZJB5H.js} +1 -1
- package/dist/cdn/{NHZAMO5I.js → SWLLHKOO.js} +1 -1
- package/dist/cdn/{57WSL6RK.js → SY54XMAK.js} +1 -1
- package/dist/cdn/{RYAQ3K3R.js → SYVDOPTD.js} +1 -1
- package/dist/cdn/{EP34L6YR.js → TG33URMT.js} +1 -1
- package/dist/cdn/{U4FOT7ER.js → TGYMEHXI.js} +1 -1
- package/dist/cdn/{CRPUZSLJ.js → TTIZKN62.js} +2 -2
- package/dist/cdn/{OXTLJPNZ.js → TTRFFI7Y.js} +1 -1
- package/dist/cdn/{G5BZ2XDI.js → TYJXD6AO.js} +1 -1
- package/dist/cdn/{CLRZU7WX.js → U7JHREJL.js} +1 -1
- package/dist/cdn/{XHN4O3NF.js → UD6LNBVQ.js} +1 -1
- package/dist/cdn/{7ECV2B3N.js → UDIXZHUY.js} +1 -1
- package/dist/cdn/{ONFQOLB7.js → UHU5IUW2.js} +1 -1
- package/dist/cdn/{IKJ4QOOE.js → USYUV75O.js} +1 -1
- package/dist/cdn/{ACNNN424.js → V3KSSGFP.js} +1 -1
- package/dist/cdn/{IHYP7TNI.js → V5P7S2DT.js} +1 -1
- package/dist/cdn/VA3K45XS.js +2 -0
- package/dist/cdn/{CCCV6EBK.js → VCAZSMBN.js} +1 -1
- package/dist/cdn/{3Z2IGTFN.js → VJHLWJIR.js} +1 -1
- package/dist/cdn/{5NMJSOMR.js → VNFPWEKG.js} +1 -1
- package/dist/cdn/{JJJFLSQG.js → VPBJEJAA.js} +1 -1
- package/dist/cdn/{DLRTY3IJ.js → VRLY2I2M.js} +1 -1
- package/dist/cdn/{STZRQJUZ.js → VRZYHJKU.js} +1 -1
- package/dist/cdn/{WX2MMWLH.js → VWQIPGRP.js} +1 -1
- package/dist/cdn/W3OI3KIT.js +2 -0
- package/dist/cdn/{LODZ4FPE.js → W4GZ7I6Q.js} +1 -1
- package/dist/cdn/{ILL73PSY.js → WCB77MWJ.js} +1 -1
- package/dist/cdn/{RTMJCNEQ.js → WM2XTDRW.js} +1 -1
- package/dist/cdn/{LY5ME2JV.js → WXPZZDF2.js} +1 -1
- package/dist/cdn/{LLXBBPLP.js → X2DKSJNC.js} +1 -1
- package/dist/cdn/{DNQTYLNU.js → X4JLEHWK.js} +1 -1
- package/dist/cdn/{LT6MLTBE.js → XBK2NLNS.js} +1 -1
- package/dist/cdn/{Q7DJZTZS.js → YDPROZGV.js} +1 -1
- package/dist/cdn/{TDGOH2O5.js → YJCBOLKI.js} +1 -1
- package/dist/cdn/{3WKBZDRG.js → YJUZU6GA.js} +1 -1
- package/dist/cdn/{NRSGW66G.js → YKQGIXEZ.js} +1 -1
- package/dist/cdn/{3SYWMT6T.js → YPB6RGI6.js} +1 -1
- package/dist/cdn/{QDNEMQDL.js → YPTHEAW7.js} +1 -1
- package/dist/cdn/{HG7ZXBAM.js → YTUCYHBY.js} +1 -1
- package/dist/cdn/{WBDPNTXV.js → Z25OUO3N.js} +1 -1
- package/dist/cdn/ZCLVDWMK.js +2 -0
- package/dist/cdn/{4ADMY4RI.js → ZG53RUE3.js} +1 -1
- package/dist/cdn/{GXJXCDAV.js → ZTHEDAG5.js} +1 -1
- package/dist/cdn/{FYYOO2SP.js → ZVK3LXXI.js} +1 -1
- package/dist/cdn/{UVAO2IEE.js → ZZAXMSMP.js} +1 -1
- package/dist/cdn/assets/presentation/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +3 -1
- package/dist/components/arcgis-presentation/customElement.d.ts +9 -0
- package/dist/components/arcgis-presentation/customElement.js +113 -107
- package/dist/components/arcgis-presentation/index.js +2 -0
- package/dist/components/arcgis-presentation-captions/customElement.js +9 -9
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +4 -4
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +5 -5
- package/dist/cdn/3C7OR3CF.js +0 -2
- package/dist/cdn/DHJSJAAW.js +0 -2
- package/dist/cdn/DWH2AQRZ.js +0 -2
- package/dist/cdn/NJ5PJX47.js +0 -2
- package/dist/cdn/NYFOMOKM.js +0 -2
- package/dist/cdn/TQMA4OZB.js +0 -2
- package/dist/cdn/WMCZM6D4.js +0 -2
- package/dist/cdn/YGUNBANA.js +0 -2
- /package/dist/cdn/{ZT5S7V6J.js → 2KBFRAA3.js} +0 -0
- /package/dist/cdn/{FBCPADOP.js → 3MSBRZSL.js} +0 -0
- /package/dist/cdn/{GR26P3LB.js → 772IZDK4.js} +0 -0
- /package/dist/cdn/{BKAQFR3R.js → 7D5T777O.js} +0 -0
- /package/dist/cdn/{N45IWP4M.js → 7IB6AI2V.js} +0 -0
- /package/dist/cdn/{DWTHS3XD.js → 7LWMV5A2.js} +0 -0
- /package/dist/cdn/{QTDR6KS5.js → AVFPVB7U.js} +0 -0
- /package/dist/cdn/{XRCQN5W7.js → CK5XEDZS.js} +0 -0
- /package/dist/cdn/{6CDF2EB7.js → DPU3VHST.js} +0 -0
- /package/dist/cdn/{NO5WA6CC.js → F6ZBUVU3.js} +0 -0
- /package/dist/cdn/{ZYQNMTFH.js → FV53P5VQ.js} +0 -0
- /package/dist/cdn/{RCDXPUVE.js → GJ5TOPT3.js} +0 -0
- /package/dist/cdn/{Q2Q2Z6PD.js → GMSP2RYI.js} +0 -0
- /package/dist/cdn/{EM3MB6DQ.js → GNOAUTDK.js} +0 -0
- /package/dist/cdn/{C6XURVVZ.js → H76ZEZDT.js} +0 -0
- /package/dist/cdn/{JPGCNIGY.js → HEP3BHHQ.js} +0 -0
- /package/dist/cdn/{O7JONM22.js → IL63OQEZ.js} +0 -0
- /package/dist/cdn/{DVGLR2XS.js → KAJYVAAI.js} +0 -0
- /package/dist/cdn/{JEPEIGKN.js → KCP3JSEI.js} +0 -0
- /package/dist/cdn/{EZL7XCN4.js → KDLK5QD5.js} +0 -0
- /package/dist/cdn/{VBFJKQE3.js → KOZ67YXN.js} +0 -0
- /package/dist/cdn/{72TX3EBX.js → KRMRVJFP.js} +0 -0
- /package/dist/cdn/{655NZISI.js → L54L4XXE.js} +0 -0
- /package/dist/cdn/{JPHQVDAJ.js → LSPV526S.js} +0 -0
- /package/dist/cdn/{MZXTZSIV.js → MC2YUGXZ.js} +0 -0
- /package/dist/cdn/{JDM6VF64.js → NDMFLRTB.js} +0 -0
- /package/dist/cdn/{EZOWIYC7.js → NI4PVDRC.js} +0 -0
- /package/dist/cdn/{JJP5FDCF.js → NRMPFAXY.js} +0 -0
- /package/dist/cdn/{7YHIBBQ7.js → O6LYJEON.js} +0 -0
- /package/dist/cdn/{I6MZ7JMD.js → OKNXBCUX.js} +0 -0
- /package/dist/cdn/{MYZ3EO6Z.js → OWF5OCZY.js} +0 -0
- /package/dist/cdn/{JAZ7QA6Z.js → PZSA4K32.js} +0 -0
- /package/dist/cdn/{C3GZCN7D.js → QGYTLHWY.js} +0 -0
- /package/dist/cdn/{HF66GO4V.js → SUNN2JJ2.js} +0 -0
- /package/dist/cdn/{H7DKSXDK.js → TKKD4742.js} +0 -0
- /package/dist/cdn/{GFUBQ5ID.js → U3TSRIEI.js} +0 -0
- /package/dist/cdn/{XGEZWI2R.js → UHA7OYN5.js} +0 -0
- /package/dist/cdn/{52ZTILXO.js → URTOVAT4.js} +0 -0
- /package/dist/cdn/{XDIJHALG.js → VUQCK6IF.js} +0 -0
- /package/dist/cdn/{RJI3D6MX.js → W52ULASU.js} +0 -0
- /package/dist/cdn/{WEWJI3DC.js → XUZ43MBE.js} +0 -0
- /package/dist/cdn/{C5DLADWD.js → Z4O75QMV.js} +0 -0
- /package/dist/cdn/{SYVO6LRH.js → ZRRRSIMH.js} +0 -0
- /package/dist/cdn/{KVPWONPB.js → ZZORY2UI.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as O}from"./VOO3RMI7.js";import{a as Ce,b as Ee,c as Me,d as Ae,f as Te,g as ze,h as Fe,i as Oe,j as Pe,k as De,m as _,n as q,o as Re,p as Se,q as J}from"./4KLZDEYJ.js";import i from"./VMVHTLRD.js";import"./MP6Z45SA.js";import h from"./LGHCANK6.js";import f from"./R3NYK6BO.js";import{a as Le}from"./U4FOT7ER.js";import{a as E}from"./DNQTYLNU.js";import e from"./WBDPNTXV.js";import"./PC4PAQXQ.js";import"./VPOSSFKR.js";import{a as Ie}from"./4CHI5XSE.js";import d from"./I56NMUHZ.js";import{a as ye}from"./5NMJSOMR.js";import{a as B}from"./54VXNFQ4.js";import c from"./PYCPKGFF.js";import b from"./QLYIU55V.js";import{g as ve}from"./HLAS4IJN.js";import"./3XD6T77C.js";import a from"./T5SQSJ4I.js";import{c as A}from"./FRDIRDV2.js";import{B as ue,M as k,N as C,O as fe,P as m,Q as be,R as g,S as F,U as _e,a as Z,b as l,x as me}from"./C5DLADWD.js";import"./3TTFCHAA.js";export default $arcgis.t(([lt,P,{on:Ge,watch:nt},{isLayerFromCatalog:it},{h:xe},,{a:we},$e,,,,{c:V,d:ke}])=>{function K(s){return s&&"visibilityMode"in s?s.visibilityMode:null}function Be(s,e){"visible"in s&&(K(e)==="exclusive"&&s.visible||(s.visible=!s.visible))}function at(s,e){s.panel.open=!s.panel.open,s.panel.open&&e()}function rt(s,e,t,i){s&&t===e.layer?.uid&&(xe(s),i?.(null))}function ot(s,e,t){t.type==="toggle"&&(t.value=!t.value),s(t,e)}function st(s){return s.actionsSections.map(e=>e.filter(t=>t.visible))}function je(s,e){let{icon:t}=e;if(t)return null;let i="image"in e?e.image:void 0;return i?l`<span aria-hidden=true class=${m(A(s.itemActionIcon,{[s.itemActionImage]:!!i}))} style=${be(ke(i))}></span>`:null}function Ue(s,e,t){let{item:i,css:a,handleAction:o}=s,{active:n,disabled:c,title:d,type:h,indicator:v}=e,x=V(e);return l`<calcite-action .active=${h==="toggle"?e.value:!1} data-action-id=${e.id??g} .disabled=${c} .icon=${x} .indicator=${v} .loading=${n} @click=${()=>ot(o,i,e)} scale=s slot=${(t?void 0:"actions-end")??g} .text=${d??""} .textEnabled=${t} title=${d??void 0??g}>${je(a,e)}</calcite-action>`}function Q(s){let{item:e,parent:t,hideStatusIndicators:i,css:a,visibilityAppearance:o,hideCatalogLayerList:n,dragEnabled:c=!1,rootGroupUid:d,listModeDisabled:h=!1,selectionMode:v,displayMode:x,layerTablesEnabled:$,showErrors:T,parentTitles:I,selectedItems:z,activeItem:f,handleCatalogOpen:D,handleTablesOpen:Ye,selectedDragItemLayerUid:He,handleSelectedDragItemLayerUidChange:Ze,handlePanelOpen:Ve,messages:p,setCurrentActiveItem:X,clearActiveItem:ee}=s,L=k(),U=k(),M=e.title||("untitledTable"in p?p.untitledTable:p.untitledLayer??""),te=null;i||(te=F(l`<arcgis-layer-list-item-indicator .item=${e} .parent=${t} slot=content-end></arcgis-layer-list-item-indicator>`));let ie=null;{let{layer:r}=e,u=r&&"persistenceEnabled"in r&&(it(r)||!r.persistenceEnabled);(s.showTemporaryLayerIndicators||s.showTemporaryTableIndicators)&&u&&(ie=l`<calcite-icon class=${m(a.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${p.temporary??g}></calcite-icon>`)}let ae=null;if("visible"in e&&"visibleToggle"in a&&o){let r=K(t);if(r!=="inherited"){let u=Ae({visible:e.visible,exclusive:r==="exclusive",visibilityAppearance:o}),b=o==="checkbox",y=p.layerVisibility;ae=l`<calcite-action class=${m(a.visibleToggle)} .icon=${b?u:void 0} @click=${()=>Be(e,t)} .slot=${b?"actions-start":"actions-end"} .text=${y??""} title=${y??g}>${b?null:l`<calcite-icon class=${m(A({[a.visibleIcon]:r!=="exclusive"&&e.visible}))} .icon=${u} scale=s></calcite-icon>`}</calcite-action>`}}let re=null;{let r=e.panel;r?.open&&!r.disabled&&!r.flowEnabled&&(re=l`<div class=${m(a.itemContentBottom)} slot=content-bottom><arcgis-layer-list-item-panel .item=${e} .view=${s.view}></arcgis-layer-list-item-panel></div>`)}let oe=null;{let r=e.panel;if(r?.visible){let{open:u,title:b,disabled:y}=r,H={icon:r.icon,image:r.image,indicator:!1},S=V(H);oe=l`<calcite-action .active=${u} .disabled=${y} .icon=${S} @click=${()=>at(e,Ve)} slot=actions-end .text=${b??""} title=${b??void 0??g}>${je(a,r)}</calcite-action>`}}let se=null;{let r=e.layer,u=r?.type==="catalog-footprint",b=r?.type==="sublayer"&&J(r,"footprints");"itemCatalogIcon"in a&&(u||b)&&(se=l`<calcite-icon class=${m(a.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`)}let le=null;{let r=e.layer,u=r?.type==="catalog-dynamic-group",b=r?.type==="sublayer"&&J(r,"layers-in-view");"itemCatalogIcon"in a&&(u||b)&&(le=l`<calcite-icon class=${m(a.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`)}let ne=null;if("visible"in e){let r=e.layer;!n&&r?.type==="catalog-dynamic-group"&&(ne=l`<calcite-action .disabled=${!r.visible} icon=chevron-right icon-flip-rtl @click=${()=>D?.(e)} scale=s slot=actions-end .text=${M??""}></calcite-action>`)}let ce=null,j=!1;{let r=e.layer;if($&&r)switch(r.type){case"knowledge-graph":j=$.includes(r.type)&&"tables"in r&&!!r.tables?.length;break;case"map-image":case"tile":j=$.includes(r.type)&&"subtables"in r&&!!r.subtables?.length;break}"itemTableIcon"in a&&"visible"in e&&"tables"in p&&j&&(ce=E(`${e.uid}-tables`,l`<calcite-list-item class=${m(a.item)} data-layer-id=${r?.id??g} drag-disabled .label=${p.tables} title=${p.tables??g} @calciteListItemSelect=${()=>Ye?.(e)} .value=${e}><calcite-icon class=${m(a.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`))}let de=null;if("children"in e){let r=[...I??[],e.title],{children:u,layer:b}=e,y=b?.type!=="catalog-dynamic-group"&&Re(e),H=h?!1:Te(b),S=b?.type==="group",Xe=!H&&!y&&c&&S,et=c&&"childrenSortable"in e&&e.childrenSortable&&Oe(e),tt=y?u?.filter(w=>!w.hidden&&(T||!w.error)).toArray().map(w=>Q({...s,item:w,parent:e,parentTitles:r})):null;(y||Xe)&&(de=l`<calcite-list .canPull=${w=>s.canMove?s.canMove(w,"pull"):!1} .canPut=${w=>s.canMove?s.canMove(w,"put"):!1} data-item=${e.uid??g} data-layer-type=${d??g} .displayMode=${x} .dragEnabled=${et} .group=${S?d:`${d}-${b?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${v}>${tt}${ce}</calcite-list>`)}let G=null;e.error?G=l`<div class=${m(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${"tableError"in p?p.tableError:p.layerError}</div></calcite-notice></div>`:"incompatible"in e&&e.incompatible&&"layerIncompatible"in p&&(G=l`<div class=${m(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${C(U)}><div slot=message>${p.layerIncompatible}</div></calcite-notice></div>`);let pe=st(e),N=e.actionsSections.reduce((r,u)=>r+u.length,0),ge=Se(pe),qe=pe.toArray().map(r=>l`<calcite-action-group>${r.toArray().map(u=>Ue(s,u,!0))}</calcite-action-group>`),Je=r=>{e.actionsOpen=r.currentTarget.open},he=null;N>1&&(he=l`<calcite-action-menu appearance=transparent .label=${p.menu??""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${Je}><calcite-action icon=ellipsis scale=s slot=trigger .text=${p.options??""} title=${p.options??g}></calcite-action>${qe}</calcite-action-menu>`);let Y=null;N===1&&ge?Y=Ue(s,ge,!1):N>1&&(Y=he);let Ke="visibleAtCurrentTimeExtent"in e&&"layerInvisibleAtTime"in p&&!e.visibleAtCurrentTimeExtent?`${M} (${p.layerInvisibleAtTime})`:"visibleAtCurrentScale"in e&&"layerInvisibleAtScale"in p&&!e.visibleAtCurrentScale?`${M} (${p.layerInvisibleAtScale})`:M,Qe="parent"in e&&e.parent?.layer?.type==="catalog",R=e.layer,We="visibleAtCurrentScale"in e&&!e.visibleAtCurrentScale||"visibleAtCurrentTimeExtent"in e&&!e.visibleAtCurrentTimeExtent;return queueMicrotask(()=>{rt(L.value??null,e,He,Ze),U.value&&(s.handleTooltipReferenceChange?.(R?.uid,U.value),queueMicrotask(()=>s.handleTooltipReferenceChange?.(R?.uid,null))),e.panel&&(e.panel.container=L.value)}),E(e.uid,l`<calcite-list-item class=${m(A(a.item,"itemActive"in a&&{[a.itemActive]:f?.uid===e.uid}))} data-item=${e.uid??g} data-layer-id=${R?.id??g} .dragDisabled=${!("sortable"in e&&e.sortable)||Qe} id=${R?.uid??g} .label=${M} .metadata=${{parentTitles:I??[],_title:M}} .expanded=${"open"in e&&e.open} .selected=${v!=="none"?z.includes(e):!1} title=${Ke??g} .unavailable=${We} .value=${e} @focusin=${()=>{X?.(e),L.value?.classList.add(a.itemActive)}} @focusout=${()=>{ee?.(),L.value?.classList.remove(a.itemActive)}} @mouseover=${()=>{X?.(e),L.value?.classList.add(a.itemActive)}} @mouseleave=${()=>{ee?.(),L.value?.classList.remove(a.itemActive)}} @calciteListItemSelect=${r=>"visible"in e&&_(r.currentTarget,s.operationalItems)===e&&v==="none"&&K(t)!=="inherited"&&Be(e,t)} @calciteListItemToggle=${r=>{"open"in e&&(r.stopPropagation(),e.open=r.target.expanded)}} ${C(L)}>${se}${le}${te}${ae}${ne}${ie}${de}${G}${re}${oe}${Y}</calcite-list-item>`)}var ct=Z`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{width:100%;--arcgis-list-item-scroller-max-height: var(--arcgis-internal-panel-height-md)}.item{--calcite-list-item-icon-center: var(--calcite-space-sm)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:14px}.item__filter-container--sticky{z-index:1;position:sticky;top:0}.item__group{margin-top:var(--calcite-spacing-md)}.item__scroller{overflow-y:auto;z-index:0;position:relative}.item__scroller--enabled{max-height:var(--arcgis-list-item-scroller-max-height)}.item__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.item__list-item{cursor:pointer;min-height:var(--calcite-spacing-xxxl)}.item__list-item[class^=esri-icon-],.item__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.item__list-item--disabled{cursor:default}.item__list-item-icon{justify-content:center;align-items:center;min-width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);display:flex}.item__list-item-icon span{line-height:0}.arcgis-thumbnail-preview{background-position:50%;width:22px;height:22px}.item__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.content-bottom{margin:var(--calcite-spacing-md) 15px}.content-bottom .arcgis-legend__service{padding:0 0 var(--calcite-spacing-md)}.message{margin:var(--calcite-spacing-md) 15px}.visible-icon{visibility:hidden}.item:hover>.visible-toggle>.visible-icon,.item:focus>.visible-toggle>.visible-icon,.item:focus-within>.visible-toggle>.visible-icon{visibility:visible}`,dt=Z`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{display:flex;min-height:var(--calcite-space-3xl);transition:max-height .25s ease-in-out;overflow-y:auto;--arcgis-layer-list-visibility-icon: hidden}:host>div{display:flex;width:100%}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-space-md-plus)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size)}.action-menu .action-group{display:none}.action-menu[open] .action-group{display:flex}.active:hover>.visible-toggle>.visible-icon,.active:focus>.visible-toggle>.visible-icon,.active:focus-within>.visible-toggle>.visible-icon{visibility:visible}`,Ne="nested",pt=$e(lt),W=class extends fe{constructor(){super(...arguments),this._lastDragDetail=null,this._rootListRef=k(),this._layerFlowItemRef=k(),this._panelFlowItemRef=k(),this._selectedDragItemLayerUid=null,this._rootGroupUid=`operational-${ue()}`,this._openedLayersController=null,this.messages=ye(),this._canMove=({dragEl:e,fromEl:t,toEl:i},a)=>{let o=a==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,n=_(e,this.operationalItems);if(!n?.sortable)return!1;let c=_(t,this.operationalItems),d=q(t),h=_(i,this.operationalItems),v=q(i),x=!!d&&!!v&&d===v,$={selected:n,from:c,to:h},T=t.group,I=i.group,z=c?.layer?.type??"",f=h?.layer?.type??"",D=new Set(["map-image","catalog","knowledge-graph"]);return T&&I&&typeof o=="function"?o($):x&&!D.has(z)&&!D.has(f)&&n?.layer?.type!=="sublayer"},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer)},this._clearActiveItem=()=>{this._activeItem=null},this._setCurrentActiveItem=e=>{this._activeItem=e},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(a=>a.classList?.contains(O.item)),i=_(t,this.operationalItems);this._activeItem=i},this.viewModel=pt(this),this.arcgisClose=Ie(this),this._activeItem=null,this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.layerTablesEnabled=new P(["knowledge-graph"]),this.mapImageOptions=null,this.openedLayerLists=new P,this.tileOptions=null,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.closed=!1,this.icon="layers",this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.layerTablesAvailable=new P(["knowledge-graph"]),this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.minDragEnabledItems=Me,this.minFilterItems=Ee,this.openedLayers=new P,this.operationalItems=this.viewModel.operationalItems,this.selectedItems=new P,this.selectionMode="none",this.visibilityAppearance="default",this.hideCatalogLayerList=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.hideStatusIndicators=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=ve()("state"),this.arcgisReady=me(),this.arcgisTriggerAction=we(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,_totalItems:16,_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,layerTablesEnabled:16,mapImageOptions:16,openedLayerLists:16,tileOptions:16,_renderedOpenLayerFlowItems:16,view:0,autoDestroyDisabled:5,closed:5,referenceElement:1,icon:1,catalogLayerList:32,catalogOptions:0,collapsed:5,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,knowledgeGraphOptions:0,layerTablesAvailable:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,minDragEnabledItems:9,minFilterItems:9,openedLayers:32,operationalItems:0,position:1,selectedItems:0,selectionMode:1,tableList:32,visibilityAppearance:1,hideCatalogLayerList:5,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,hideStatusIndicators:5,showTemporaryLayerIndicators:5,messageOverrides:0,label:1,state:32}}static{this.styles=[dt,ct]}get _totalItems(){return this.viewModel.operationalItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _visibleItems(){return this.operationalItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _dragEnabled(){return this._totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,i)=>this._renderLayerFlowItem(t,i===e.length-1))}get catalogLayerList(){return this._catalogLayerList}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[Ge(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),Ge(()=>this.viewModel.operationalItems,"change",()=>ze(this.selectedItems),{initial:!0}),nt(()=>[this.filterPredicate,this._rootListRef.value],()=>Fe(this._rootListRef.value,this.filterPredicate,this.operationalItems))])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}async _createFlowList(e,t){let{_layerListMap:i}=this,a=i.get(e);if(a)return a;let o=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||i.set(e,o),o}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this._openedLayersController?.abort();let a=new AbortController,{signal:o}=a;this._openedLayersController=a,e.forEach((d,h)=>{t.includes(h)||(d?.destroy?.(),e.delete(h))});let n=await Promise.all(t.map(d=>this._createFlowList(d,o)));if(o.aborted)return;i.removeAll(),i.addMany(n);let c=i.at(-1);c?"catalogLayer"in c?(this._catalogLayerList=c,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=c):(this._catalogLayerList=void 0,this._tableList=void 0)}_destroyOpenedLayerLists(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async _createCatalogLayerList(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:a,listItemCreatedFunction:o,minFilterItems:n,selectionMode:c,visibilityAppearance:d}=this;return F(l`<arcgis-catalog-layer-list .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??a} .listItemCreatedFunction=${i?.listItemCreatedFunction??o} .minFilterItems=${i?.minFilterItems??n} .selectionMode=${i?.selectionMode??c} .visibilityAppearance=${i?.visibilityAppearance??d} .showErrors=${i?.visibleElements?.errors??this.showErrors} .showFilter=${i?.visibleElements?.filter??this.showFilter} .hideStatusIndicators=${i?.visibleElements?.statusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.visibleElements?.temporaryLayerIndicators??this.showTemporaryLayerIndicators} @arcgisReady=${h=>h.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list>`)}_getTableListParams(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let{headingLevel:t,selectionMode:i,dragEnabled:a}=this,o=this._getTableListParams(e);return F(l`<arcgis-table-list .headingLevel=${o?.headingLevel??t} .selectionMode=${o?.selectionMode??i} .dragEnabled=${o?.dragEnabled??a} .collapsed=${o?.collapsed} .filterPlaceholder=${o?.filterPlaceholder} .filterText=${o?.filterText} .icon=${o?.icon??void 0} .label=${o?.label??void 0} .listItemCreatedFunction=${o?.listItemCreatedFunction} .tables=${o?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${n=>n.stopPropagation()}></arcgis-table-list>`)}_handlePanelFlowItemBack(e){e.open=!1}_onPanelOpen(){}_onTooltipReferenceChange(e,t){t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)}_onSelectedDragItemLayerUidChange(e){this._selectedDragItemLayerUid=e}_onTriggerAction(e,t){this.triggerAction(e,t)}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:a}){let o=_(i,this.operationalItems),n=_(e,this.operationalItems),c=_(t,this.operationalItems);this.viewModel.moveListItem(o,c,n,a)}_onCalciteListDragEnd(e){let{fromEl:t,dragEl:i,oldIndex:a}=e;t.insertBefore(i,t.children[a])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{toEl:i,fromEl:a,dragEl:o,newIndex:n}=e,c=t?.newIndex===n&&t?.dragEl===o&&t?.toEl===i&&t?.fromEl===a;if(!(!a||!i||c)){if(this._lastDragDetail=e,this._selectedDragItemLayerUid=o.value,a===i){let d=Array.from(a.children).filter(h=>h?.matches("calcite-list-item")).map(h=>h.value.layer?.uid??"");this._sortLayers(a,d);return}this._moveLayerFromChildList({toEl:i,fromEl:a,dragEl:o,newIndex:n})}}_sortLayers(e,t){if(e)if(e===this._rootListRef.value)Pe(this.el.view?.map?.layers,t);else{let i=_(e,this.operationalItems);if(!i)return;De(i,t)}}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let a=e.target.selectedItems.map(o=>_(o,this.operationalItems)).filter(Boolean);i.removeAll(),i.addMany(a)}render(){let{_visibleItems:e,state:t}=this,i={[B.hidden]:t==="loading",[B.disabled]:t==="disabled"};return l`<div class=${m(A(B.widget,i))}>${e?.length?[this._renderItemTooltips(),this._renderItems()]:this._renderNoItems()}</div>`}_renderItemTooltip(e){let{_tooltipReferenceMap:t,messages:i}=this;return e?l`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer?.uid??"")}>${i.layerIncompatibleTooltip}</calcite-tooltip>`:null}_renderItemTooltipNodes(e){if(e.incompatible)return this._renderItemTooltip(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this._renderItemTooltipNodes(i))??[];return t.length?t:null}_renderItemTooltips(){return this._visibleItems?.toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoItemsMessage(){return l`<div slot=message>${this.messages.noItemsToDisplay}</div>`}_renderNoItems(){return l`<div class=${m(O.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`}_renderLayerFlowItem(e,t){let{messages:i,openedLayers:a}=this,o=e.title||this.messages.untitledLayer;return E(e?.uid??o,l`<calcite-flow-item data-layer-uid=${e?.uid??""??g} .description=${o} .heading=${i[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${n=>{n.preventDefault(),a.pop(),a.at(-1)&&this._layerFlowItemRef.value?.setFocus()}} ${C(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderPanelFlowItems(){let{_openedPanelItems:e,openedLayers:t}=this;return Le(e.toArray(),i=>i.uid,(i,a)=>{let{panel:o,title:n}=i,c=()=>this._handlePanelFlowItemBack(o);return l`<calcite-flow-item .description=${n} .heading=${o.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${d=>{d.preventDefault(),c()}} ${C(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${i} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${c} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderItems(){let{collapsed:e,_visibleItems:t,_openedPanelItems:i,_filterEnabled:a,_rootGroupUid:o,showCloseButton:n,showCollapseButton:c,showHeading:d,_dragEnabled:h,selectionMode:v,filterText:x,openedLayers:$,filterPlaceholder:T,messages:I}=this,z=[l`<calcite-flow-item .closable=${n} .closed=${this.closed} .collapsed=${e} .collapsible=${c} .heading=${d?I.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!$.length&&!i.length} @calciteFlowItemClose=${()=>this.closed=!1}><calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${f=>this._canMove(f,"pull")} .canPut=${f=>this._canMove(f,"put")} data-layer-type=${o??g} .displayMode=${Ne} .dragEnabled=${h} .filterEnabled=${a} .filterPlaceholder=${T} .filterProps=${Ce} .filterText=${a?x:""} .group=${o} .label=${I.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${v} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${f=>this.filterText=f.currentTarget?.filterText??""} @calciteListOrderChange=${f=>this._onCalciteListOrderChange(f.detail)} @calciteListDragEnd=${f=>this._onCalciteListDragEnd(f.detail)} ${C(this._rootListRef)}>${t?.toArray().map(f=>this._renderItem(f))}${t?.length&&a?l`<div class=${m(O.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`:null}</calcite-list></calcite-flow-item>`,this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return this.closed?null:E("root-flow",l`<calcite-flow>${z}</calcite-flow>`)}_renderItem(e,t,i){return E(e.uid,Q({activeItem:this._activeItem,canMove:this._canMove.bind(this),css:O,displayMode:Ne,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,hideCatalogLayerList:this.hideCatalogLayerList,item:e,messages:this.messages,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,operationalItems:this.operationalItems,parent:t,parentTitles:i,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem.bind(this),showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,showCloseButton:this.showCloseButton,showCollapseButton:this.showCollapseButton,showErrors:this.showErrors,showHeading:this.showHeading,showFilter:this.showFilter,clearActiveItem:this._clearActiveItem.bind(this),visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction.bind(this),handleCatalogOpen:this._onCatalogOpen.bind(this),handlePanelOpen:this._onPanelOpen.bind(this),handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange.bind(this),handleTablesOpen:this._onTablesOpen.bind(this),handleTooltipReferenceChange:this._onTooltipReferenceChange.bind(this),view:this.view}))}};_e("arcgis-layer-list-new",W);return W},"widgets/LayerList/LayerListViewModel","core/Collection","core/reactiveUtils","layers/catalog/catalogUtils",a,b,c,d,e,f,h,i)
|
|
2
|
+
import{a as O}from"./PT4OAWSU.js";import{a as Ce,b as Ee,c as Me,d as Ae,f as Te,g as ze,h as Fe,i as Oe,j as Pe,k as De,m as _,n as q,o as Re,p as Se,q as J}from"./4KLZDEYJ.js";import i from"./BKAPYSAA.js";import"./MP6Z45SA.js";import h from"./GUHQ4SWM.js";import f from"./R3NYK6BO.js";import{a as Le}from"./TGYMEHXI.js";import{a as E}from"./X4JLEHWK.js";import e from"./Z25OUO3N.js";import"./PC4PAQXQ.js";import"./GAJMF6RP.js";import{a as Ie}from"./ACMP5JBE.js";import d from"./KDIBOT2K.js";import{a as ye}from"./VNFPWEKG.js";import{a as B}from"./54VXNFQ4.js";import c from"./3DR3T6WY.js";import b from"./RRGRQMTZ.js";import{g as ve}from"./4VZNRZ26.js";import"./77TGNHGP.js";import a from"./G4FGSUWN.js";import{c as A}from"./IIQQUUEG.js";import{B as ue,M as k,N as C,O as fe,P as m,Q as be,R as g,S as F,U as _e,a as Z,b as l,x as me}from"./Z4O75QMV.js";import"./3TTFCHAA.js";export default $arcgis.t(([lt,P,{on:Ge,watch:nt},{isLayerFromCatalog:it},{h:xe},,{a:we},$e,,,,{c:V,d:ke}])=>{function K(s){return s&&"visibilityMode"in s?s.visibilityMode:null}function Be(s,e){"visible"in s&&(K(e)==="exclusive"&&s.visible||(s.visible=!s.visible))}function at(s,e){s.panel.open=!s.panel.open,s.panel.open&&e()}function rt(s,e,t,i){s&&t===e.layer?.uid&&(xe(s),i?.(null))}function ot(s,e,t){t.type==="toggle"&&(t.value=!t.value),s(t,e)}function st(s){return s.actionsSections.map(e=>e.filter(t=>t.visible))}function je(s,e){let{icon:t}=e;if(t)return null;let i="image"in e?e.image:void 0;return i?l`<span aria-hidden=true class=${m(A(s.itemActionIcon,{[s.itemActionImage]:!!i}))} style=${be(ke(i))}></span>`:null}function Ue(s,e,t){let{item:i,css:a,handleAction:o}=s,{active:n,disabled:c,title:d,type:h,indicator:v}=e,x=V(e);return l`<calcite-action .active=${h==="toggle"?e.value:!1} data-action-id=${e.id??g} .disabled=${c} .icon=${x} .indicator=${v} .loading=${n} @click=${()=>ot(o,i,e)} scale=s slot=${(t?void 0:"actions-end")??g} .text=${d??""} .textEnabled=${t} title=${d??void 0??g}>${je(a,e)}</calcite-action>`}function Q(s){let{item:e,parent:t,hideStatusIndicators:i,css:a,visibilityAppearance:o,hideCatalogLayerList:n,dragEnabled:c=!1,rootGroupUid:d,listModeDisabled:h=!1,selectionMode:v,displayMode:x,layerTablesEnabled:$,showErrors:T,parentTitles:I,selectedItems:z,activeItem:f,handleCatalogOpen:D,handleTablesOpen:Ye,selectedDragItemLayerUid:He,handleSelectedDragItemLayerUidChange:Ze,handlePanelOpen:Ve,messages:p,setCurrentActiveItem:X,clearActiveItem:ee}=s,L=k(),U=k(),M=e.title||("untitledTable"in p?p.untitledTable:p.untitledLayer??""),te=null;i||(te=F(l`<arcgis-layer-list-item-indicator .item=${e} .parent=${t} slot=content-end></arcgis-layer-list-item-indicator>`));let ie=null;{let{layer:r}=e,u=r&&"persistenceEnabled"in r&&(it(r)||!r.persistenceEnabled);(s.showTemporaryLayerIndicators||s.showTemporaryTableIndicators)&&u&&(ie=l`<calcite-icon class=${m(a.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${p.temporary??g}></calcite-icon>`)}let ae=null;if("visible"in e&&"visibleToggle"in a&&o){let r=K(t);if(r!=="inherited"){let u=Ae({visible:e.visible,exclusive:r==="exclusive",visibilityAppearance:o}),b=o==="checkbox",y=p.layerVisibility;ae=l`<calcite-action class=${m(a.visibleToggle)} .icon=${b?u:void 0} @click=${()=>Be(e,t)} .slot=${b?"actions-start":"actions-end"} .text=${y??""} title=${y??g}>${b?null:l`<calcite-icon class=${m(A({[a.visibleIcon]:r!=="exclusive"&&e.visible}))} .icon=${u} scale=s></calcite-icon>`}</calcite-action>`}}let re=null;{let r=e.panel;r?.open&&!r.disabled&&!r.flowEnabled&&(re=l`<div class=${m(a.itemContentBottom)} slot=content-bottom><arcgis-layer-list-item-panel .item=${e} .view=${s.view}></arcgis-layer-list-item-panel></div>`)}let oe=null;{let r=e.panel;if(r?.visible){let{open:u,title:b,disabled:y}=r,H={icon:r.icon,image:r.image,indicator:!1},S=V(H);oe=l`<calcite-action .active=${u} .disabled=${y} .icon=${S} @click=${()=>at(e,Ve)} slot=actions-end .text=${b??""} title=${b??void 0??g}>${je(a,r)}</calcite-action>`}}let se=null;{let r=e.layer,u=r?.type==="catalog-footprint",b=r?.type==="sublayer"&&J(r,"footprints");"itemCatalogIcon"in a&&(u||b)&&(se=l`<calcite-icon class=${m(a.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`)}let le=null;{let r=e.layer,u=r?.type==="catalog-dynamic-group",b=r?.type==="sublayer"&&J(r,"layers-in-view");"itemCatalogIcon"in a&&(u||b)&&(le=l`<calcite-icon class=${m(a.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`)}let ne=null;if("visible"in e){let r=e.layer;!n&&r?.type==="catalog-dynamic-group"&&(ne=l`<calcite-action .disabled=${!r.visible} icon=chevron-right icon-flip-rtl @click=${()=>D?.(e)} scale=s slot=actions-end .text=${M??""}></calcite-action>`)}let ce=null,j=!1;{let r=e.layer;if($&&r)switch(r.type){case"knowledge-graph":j=$.includes(r.type)&&"tables"in r&&!!r.tables?.length;break;case"map-image":case"tile":j=$.includes(r.type)&&"subtables"in r&&!!r.subtables?.length;break}"itemTableIcon"in a&&"visible"in e&&"tables"in p&&j&&(ce=E(`${e.uid}-tables`,l`<calcite-list-item class=${m(a.item)} data-layer-id=${r?.id??g} drag-disabled .label=${p.tables} title=${p.tables??g} @calciteListItemSelect=${()=>Ye?.(e)} .value=${e}><calcite-icon class=${m(a.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`))}let de=null;if("children"in e){let r=[...I??[],e.title],{children:u,layer:b}=e,y=b?.type!=="catalog-dynamic-group"&&Re(e),H=h?!1:Te(b),S=b?.type==="group",Xe=!H&&!y&&c&&S,et=c&&"childrenSortable"in e&&e.childrenSortable&&Oe(e),tt=y?u?.filter(w=>!w.hidden&&(T||!w.error)).toArray().map(w=>Q({...s,item:w,parent:e,parentTitles:r})):null;(y||Xe)&&(de=l`<calcite-list .canPull=${w=>s.canMove?s.canMove(w,"pull"):!1} .canPut=${w=>s.canMove?s.canMove(w,"put"):!1} data-item=${e.uid??g} data-layer-type=${d??g} .displayMode=${x} .dragEnabled=${et} .group=${S?d:`${d}-${b?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${v}>${tt}${ce}</calcite-list>`)}let G=null;e.error?G=l`<div class=${m(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${"tableError"in p?p.tableError:p.layerError}</div></calcite-notice></div>`:"incompatible"in e&&e.incompatible&&"layerIncompatible"in p&&(G=l`<div class=${m(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${C(U)}><div slot=message>${p.layerIncompatible}</div></calcite-notice></div>`);let pe=st(e),N=e.actionsSections.reduce((r,u)=>r+u.length,0),ge=Se(pe),qe=pe.toArray().map(r=>l`<calcite-action-group>${r.toArray().map(u=>Ue(s,u,!0))}</calcite-action-group>`),Je=r=>{e.actionsOpen=r.currentTarget.open},he=null;N>1&&(he=l`<calcite-action-menu appearance=transparent .label=${p.menu??""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${Je}><calcite-action icon=ellipsis scale=s slot=trigger .text=${p.options??""} title=${p.options??g}></calcite-action>${qe}</calcite-action-menu>`);let Y=null;N===1&&ge?Y=Ue(s,ge,!1):N>1&&(Y=he);let Ke="visibleAtCurrentTimeExtent"in e&&"layerInvisibleAtTime"in p&&!e.visibleAtCurrentTimeExtent?`${M} (${p.layerInvisibleAtTime})`:"visibleAtCurrentScale"in e&&"layerInvisibleAtScale"in p&&!e.visibleAtCurrentScale?`${M} (${p.layerInvisibleAtScale})`:M,Qe="parent"in e&&e.parent?.layer?.type==="catalog",R=e.layer,We="visibleAtCurrentScale"in e&&!e.visibleAtCurrentScale||"visibleAtCurrentTimeExtent"in e&&!e.visibleAtCurrentTimeExtent;return queueMicrotask(()=>{rt(L.value??null,e,He,Ze),U.value&&(s.handleTooltipReferenceChange?.(R?.uid,U.value),queueMicrotask(()=>s.handleTooltipReferenceChange?.(R?.uid,null))),e.panel&&(e.panel.container=L.value)}),E(e.uid,l`<calcite-list-item class=${m(A(a.item,"itemActive"in a&&{[a.itemActive]:f?.uid===e.uid}))} data-item=${e.uid??g} data-layer-id=${R?.id??g} .dragDisabled=${!("sortable"in e&&e.sortable)||Qe} id=${R?.uid??g} .label=${M} .metadata=${{parentTitles:I??[],_title:M}} .expanded=${"open"in e&&e.open} .selected=${v!=="none"?z.includes(e):!1} title=${Ke??g} .unavailable=${We} .value=${e} @focusin=${()=>{X?.(e),L.value?.classList.add(a.itemActive)}} @focusout=${()=>{ee?.(),L.value?.classList.remove(a.itemActive)}} @mouseover=${()=>{X?.(e),L.value?.classList.add(a.itemActive)}} @mouseleave=${()=>{ee?.(),L.value?.classList.remove(a.itemActive)}} @calciteListItemSelect=${r=>"visible"in e&&_(r.currentTarget,s.operationalItems)===e&&v==="none"&&K(t)!=="inherited"&&Be(e,t)} @calciteListItemToggle=${r=>{"open"in e&&(r.stopPropagation(),e.open=r.target.expanded)}} ${C(L)}>${se}${le}${te}${ae}${ne}${ie}${de}${G}${re}${oe}${Y}</calcite-list-item>`)}var ct=Z`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{width:100%;--arcgis-list-item-scroller-max-height: var(--arcgis-internal-panel-height-md)}.item{--calcite-list-item-icon-center: var(--calcite-space-sm)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:14px}.item__filter-container--sticky{z-index:1;position:sticky;top:0}.item__group{margin-top:var(--calcite-spacing-md)}.item__scroller{overflow-y:auto;z-index:0;position:relative}.item__scroller--enabled{max-height:var(--arcgis-list-item-scroller-max-height)}.item__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.item__list-item{cursor:pointer;min-height:var(--calcite-spacing-xxxl)}.item__list-item[class^=esri-icon-],.item__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.item__list-item--disabled{cursor:default}.item__list-item-icon{justify-content:center;align-items:center;min-width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);display:flex}.item__list-item-icon span{line-height:0}.arcgis-thumbnail-preview{background-position:50%;width:22px;height:22px}.item__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.content-bottom{margin:var(--calcite-spacing-md) 15px}.content-bottom .arcgis-legend__service{padding:0 0 var(--calcite-spacing-md)}.message{margin:var(--calcite-spacing-md) 15px}.visible-icon{visibility:hidden}.item:hover>.visible-toggle>.visible-icon,.item:focus>.visible-toggle>.visible-icon,.item:focus-within>.visible-toggle>.visible-icon{visibility:visible}`,dt=Z`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{display:flex;min-height:var(--calcite-space-3xl);transition:max-height .25s ease-in-out;overflow-y:auto;--arcgis-layer-list-visibility-icon: hidden}:host>div{display:flex;width:100%}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-space-md-plus)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size)}.action-menu .action-group{display:none}.action-menu[open] .action-group{display:flex}.active:hover>.visible-toggle>.visible-icon,.active:focus>.visible-toggle>.visible-icon,.active:focus-within>.visible-toggle>.visible-icon{visibility:visible}`,Ne="nested",pt=$e(lt),W=class extends fe{constructor(){super(...arguments),this._lastDragDetail=null,this._rootListRef=k(),this._layerFlowItemRef=k(),this._panelFlowItemRef=k(),this._selectedDragItemLayerUid=null,this._rootGroupUid=`operational-${ue()}`,this._openedLayersController=null,this.messages=ye(),this._canMove=({dragEl:e,fromEl:t,toEl:i},a)=>{let o=a==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,n=_(e,this.operationalItems);if(!n?.sortable)return!1;let c=_(t,this.operationalItems),d=q(t),h=_(i,this.operationalItems),v=q(i),x=!!d&&!!v&&d===v,$={selected:n,from:c,to:h},T=t.group,I=i.group,z=c?.layer?.type??"",f=h?.layer?.type??"",D=new Set(["map-image","catalog","knowledge-graph"]);return T&&I&&typeof o=="function"?o($):x&&!D.has(z)&&!D.has(f)&&n?.layer?.type!=="sublayer"},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer)},this._clearActiveItem=()=>{this._activeItem=null},this._setCurrentActiveItem=e=>{this._activeItem=e},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(a=>a.classList?.contains(O.item)),i=_(t,this.operationalItems);this._activeItem=i},this.viewModel=pt(this),this.arcgisClose=Ie(this),this._activeItem=null,this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.layerTablesEnabled=new P(["knowledge-graph"]),this.mapImageOptions=null,this.openedLayerLists=new P,this.tileOptions=null,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.closed=!1,this.icon="layers",this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.layerTablesAvailable=new P(["knowledge-graph"]),this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.minDragEnabledItems=Me,this.minFilterItems=Ee,this.openedLayers=new P,this.operationalItems=this.viewModel.operationalItems,this.selectedItems=new P,this.selectionMode="none",this.visibilityAppearance="default",this.hideCatalogLayerList=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.hideStatusIndicators=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=ve()("state"),this.arcgisReady=me(),this.arcgisTriggerAction=we(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,_totalItems:16,_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,layerTablesEnabled:16,mapImageOptions:16,openedLayerLists:16,tileOptions:16,_renderedOpenLayerFlowItems:16,view:0,autoDestroyDisabled:5,closed:5,referenceElement:1,icon:1,catalogLayerList:32,catalogOptions:0,collapsed:5,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,knowledgeGraphOptions:0,layerTablesAvailable:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,minDragEnabledItems:9,minFilterItems:9,openedLayers:32,operationalItems:0,position:1,selectedItems:0,selectionMode:1,tableList:32,visibilityAppearance:1,hideCatalogLayerList:5,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,hideStatusIndicators:5,showTemporaryLayerIndicators:5,messageOverrides:0,label:1,state:32}}static{this.styles=[dt,ct]}get _totalItems(){return this.viewModel.operationalItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _visibleItems(){return this.operationalItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _dragEnabled(){return this._totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,i)=>this._renderLayerFlowItem(t,i===e.length-1))}get catalogLayerList(){return this._catalogLayerList}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[Ge(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),Ge(()=>this.viewModel.operationalItems,"change",()=>ze(this.selectedItems),{initial:!0}),nt(()=>[this.filterPredicate,this._rootListRef.value],()=>Fe(this._rootListRef.value,this.filterPredicate,this.operationalItems))])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}async _createFlowList(e,t){let{_layerListMap:i}=this,a=i.get(e);if(a)return a;let o=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||i.set(e,o),o}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this._openedLayersController?.abort();let a=new AbortController,{signal:o}=a;this._openedLayersController=a,e.forEach((d,h)=>{t.includes(h)||(d?.destroy?.(),e.delete(h))});let n=await Promise.all(t.map(d=>this._createFlowList(d,o)));if(o.aborted)return;i.removeAll(),i.addMany(n);let c=i.at(-1);c?"catalogLayer"in c?(this._catalogLayerList=c,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=c):(this._catalogLayerList=void 0,this._tableList=void 0)}_destroyOpenedLayerLists(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async _createCatalogLayerList(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:a,listItemCreatedFunction:o,minFilterItems:n,selectionMode:c,visibilityAppearance:d}=this;return F(l`<arcgis-catalog-layer-list .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??a} .listItemCreatedFunction=${i?.listItemCreatedFunction??o} .minFilterItems=${i?.minFilterItems??n} .selectionMode=${i?.selectionMode??c} .visibilityAppearance=${i?.visibilityAppearance??d} .showErrors=${i?.visibleElements?.errors??this.showErrors} .showFilter=${i?.visibleElements?.filter??this.showFilter} .hideStatusIndicators=${i?.visibleElements?.statusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.visibleElements?.temporaryLayerIndicators??this.showTemporaryLayerIndicators} @arcgisReady=${h=>h.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list>`)}_getTableListParams(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let{headingLevel:t,selectionMode:i,dragEnabled:a}=this,o=this._getTableListParams(e);return F(l`<arcgis-table-list .headingLevel=${o?.headingLevel??t} .selectionMode=${o?.selectionMode??i} .dragEnabled=${o?.dragEnabled??a} .collapsed=${o?.collapsed} .filterPlaceholder=${o?.filterPlaceholder} .filterText=${o?.filterText} .icon=${o?.icon??void 0} .label=${o?.label??void 0} .listItemCreatedFunction=${o?.listItemCreatedFunction} .tables=${o?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${n=>n.stopPropagation()}></arcgis-table-list>`)}_handlePanelFlowItemBack(e){e.open=!1}_onPanelOpen(){}_onTooltipReferenceChange(e,t){t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)}_onSelectedDragItemLayerUidChange(e){this._selectedDragItemLayerUid=e}_onTriggerAction(e,t){this.triggerAction(e,t)}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:a}){let o=_(i,this.operationalItems),n=_(e,this.operationalItems),c=_(t,this.operationalItems);this.viewModel.moveListItem(o,c,n,a)}_onCalciteListDragEnd(e){let{fromEl:t,dragEl:i,oldIndex:a}=e;t.insertBefore(i,t.children[a])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{toEl:i,fromEl:a,dragEl:o,newIndex:n}=e,c=t?.newIndex===n&&t?.dragEl===o&&t?.toEl===i&&t?.fromEl===a;if(!(!a||!i||c)){if(this._lastDragDetail=e,this._selectedDragItemLayerUid=o.value,a===i){let d=Array.from(a.children).filter(h=>h?.matches("calcite-list-item")).map(h=>h.value.layer?.uid??"");this._sortLayers(a,d);return}this._moveLayerFromChildList({toEl:i,fromEl:a,dragEl:o,newIndex:n})}}_sortLayers(e,t){if(e)if(e===this._rootListRef.value)Pe(this.el.view?.map?.layers,t);else{let i=_(e,this.operationalItems);if(!i)return;De(i,t)}}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let a=e.target.selectedItems.map(o=>_(o,this.operationalItems)).filter(Boolean);i.removeAll(),i.addMany(a)}render(){let{_visibleItems:e,state:t}=this,i={[B.hidden]:t==="loading",[B.disabled]:t==="disabled"};return l`<div class=${m(A(B.widget,i))}>${e?.length?[this._renderItemTooltips(),this._renderItems()]:this._renderNoItems()}</div>`}_renderItemTooltip(e){let{_tooltipReferenceMap:t,messages:i}=this;return e?l`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer?.uid??"")}>${i.layerIncompatibleTooltip}</calcite-tooltip>`:null}_renderItemTooltipNodes(e){if(e.incompatible)return this._renderItemTooltip(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this._renderItemTooltipNodes(i))??[];return t.length?t:null}_renderItemTooltips(){return this._visibleItems?.toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoItemsMessage(){return l`<div slot=message>${this.messages.noItemsToDisplay}</div>`}_renderNoItems(){return l`<div class=${m(O.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`}_renderLayerFlowItem(e,t){let{messages:i,openedLayers:a}=this,o=e.title||this.messages.untitledLayer;return E(e?.uid??o,l`<calcite-flow-item data-layer-uid=${e?.uid??""??g} .description=${o} .heading=${i[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${n=>{n.preventDefault(),a.pop(),a.at(-1)&&this._layerFlowItemRef.value?.setFocus()}} ${C(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderPanelFlowItems(){let{_openedPanelItems:e,openedLayers:t}=this;return Le(e.toArray(),i=>i.uid,(i,a)=>{let{panel:o,title:n}=i,c=()=>this._handlePanelFlowItemBack(o);return l`<calcite-flow-item .description=${n} .heading=${o.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${d=>{d.preventDefault(),c()}} ${C(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${i} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${c} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderItems(){let{collapsed:e,_visibleItems:t,_openedPanelItems:i,_filterEnabled:a,_rootGroupUid:o,showCloseButton:n,showCollapseButton:c,showHeading:d,_dragEnabled:h,selectionMode:v,filterText:x,openedLayers:$,filterPlaceholder:T,messages:I}=this,z=[l`<calcite-flow-item .closable=${n} .closed=${this.closed} .collapsed=${e} .collapsible=${c} .heading=${d?I.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!$.length&&!i.length} @calciteFlowItemClose=${()=>this.closed=!1}><calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${f=>this._canMove(f,"pull")} .canPut=${f=>this._canMove(f,"put")} data-layer-type=${o??g} .displayMode=${Ne} .dragEnabled=${h} .filterEnabled=${a} .filterPlaceholder=${T} .filterProps=${Ce} .filterText=${a?x:""} .group=${o} .label=${I.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${v} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${f=>this.filterText=f.currentTarget?.filterText??""} @calciteListOrderChange=${f=>this._onCalciteListOrderChange(f.detail)} @calciteListDragEnd=${f=>this._onCalciteListDragEnd(f.detail)} ${C(this._rootListRef)}>${t?.toArray().map(f=>this._renderItem(f))}${t?.length&&a?l`<div class=${m(O.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`:null}</calcite-list></calcite-flow-item>`,this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return this.closed?null:E("root-flow",l`<calcite-flow>${z}</calcite-flow>`)}_renderItem(e,t,i){return E(e.uid,Q({activeItem:this._activeItem,canMove:this._canMove.bind(this),css:O,displayMode:Ne,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,hideCatalogLayerList:this.hideCatalogLayerList,item:e,messages:this.messages,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,operationalItems:this.operationalItems,parent:t,parentTitles:i,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem.bind(this),showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,showCloseButton:this.showCloseButton,showCollapseButton:this.showCollapseButton,showErrors:this.showErrors,showHeading:this.showHeading,showFilter:this.showFilter,clearActiveItem:this._clearActiveItem.bind(this),visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction.bind(this),handleCatalogOpen:this._onCatalogOpen.bind(this),handlePanelOpen:this._onPanelOpen.bind(this),handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange.bind(this),handleTablesOpen:this._onTablesOpen.bind(this),handleTooltipReferenceChange:this._onTooltipReferenceChange.bind(this),view:this.view}))}};_e("arcgis-layer-list-new",W);return W},"widgets/LayerList/LayerListViewModel","core/Collection","core/reactiveUtils","layers/catalog/catalogUtils",a,b,c,d,e,f,h,i)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{e as m}from"./
|
|
2
|
+
import{e as m}from"./4VZNRZ26.js";import"./77TGNHGP.js";import"./IIQQUUEG.js";import{O as d,U as h,b as c}from"./Z4O75QMV.js";import"./3TTFCHAA.js";export default $arcgis.t(([$,{watch:u}])=>{var b=["Auto"],f=[.25,.5,1,1.5,2],p=new $([255,127,0]);function s(n,t){return`${t.format(n)}x`}var o=class extends d{constructor(){super(...arguments),this._color=null,this._speed=1,this._quality="Auto",this._direction=m(),this._disabled=!1}static{this.properties={_disabled:16,_active:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel.state,t=>{this._disabled=t==="not-ready"||t==="waiting"},{initial:!0})])}render(){let{viewModel:t,messages:e}=this,l=this._direction==="rtl"?"chevron-left":"chevron-right",a=new Intl.NumberFormat(this.messages._lang,{minimumFractionDigits:0,maximumFractionDigits:2}),g=c`<calcite-flow-item .heading=${e.playbackSpeed} .selected=${this._active==="speed"} @calciteFlowItemBack=${()=>this._active=void 0}><calcite-list .label=${e.playbackSpeed} selection-mode=single-persist>${f.map(i=>c`<calcite-list-item .disabled=${t?.layer?.isLive&&i!==1} .label=${s(i,a)} @click=${()=>{this._speed=i,t.changePlaybackSpeed(i)}} .selected=${i===this._speed}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`,v=c`<calcite-flow-item .heading=${e.quality} .selected=${this._active==="quality"} @calciteFlowItemBack=${()=>this._active=void 0}><calcite-list .label=${e.quality} selection-mode=single-persist>${b.map(i=>c`<calcite-list-item .label=${i} @click=${()=>this._quality=i} .selected=${i===this._quality}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`,_=c`<calcite-flow-item .heading=${e.graphics} .selected=${this._active==="color"} @calciteFlowItemBack=${()=>this._active=void 0}><calcite-block .heading=${e.color} expanded><calcite-color-picker channels-disabled format=hex saved-disabled scale=s .value=${this._color?.toHex()??p.toHex()} @calciteColorPickerChange=${({currentTarget:i})=>{let r=i.value?.toString()??null;this._color=r?new $(r):null,this._color&&t.changeGraphicsColor(this._color)}}></calcite-color-picker></calcite-block></calcite-flow-item>`;return c`<div><calcite-popover auto-close .label=${e.settings} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=settings-action scale=s @calcitePopoverClose=${()=>this._active=void 0}><calcite-flow><calcite-flow-item .heading=${e.settings} .selected=${!this._active}><calcite-list .label=${e.settings}><calcite-list-item .label=${e.speed} @click=${()=>this._active="speed"}><div slot=content-end><calcite-chip .label=${s(this._speed,a)} scale=s>${s(this._speed,a)}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.quality} @click=${()=>this._active="quality"}><div slot=content-end><calcite-chip .label=${this._quality} scale=s>${this._quality}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.graphics} @click=${()=>this._active="color"}><calcite-color-picker-swatch .color=${this._color?.toString()??p.toString()} scale=s slot=content-end></calcite-color-picker-swatch><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item></calcite-list></calcite-flow-item>${this._active==="speed"?g:null}${this._active==="quality"?v:null}${this._active==="color"?_:null}</calcite-flow></calcite-popover><calcite-action alignment=center .disabled=${this._disabled} icon=sliders id=settings-action scale=s slot=trigger .text=${e.settings}></calcite-action></div>`}};h("arcgis-video-player-settings",o);return o},"Color","core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as y,b as f,c as v}from"./
|
|
2
|
+
import{a as y,b as f,c as v}from"./FVQUTZLR.js";import{a}from"./CUYGLJRU.js";import{a as p}from"./PXGQNGKC.js";import b from"./3DR3T6WY.js";import{e as m}from"./4VZNRZ26.js";import"./77TGNHGP.js";import"./IIQQUUEG.js";import{M as e,N as s,O as n,P as c,U as l,a as o,b as t,x as h}from"./Z4O75QMV.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:w},u,{b:d}])=>{var R=o`:host{width:100%;height:100%}`,g=d(u,{omitProps:["container","navigation","scale","ui"]}),r=class extends n{constructor(){super(),this._containerRef=e(),this._direction=m(),this._mapRef=e(),this._slotGroupRefs=f(),this.autoDestroyDisabled=!1,this.view=g(this),this.attributionMode=this.view.attributionMode,this.ready=this.view.ready,this.layer=this.view.layer,this.map=this.view.map,this.arcgisViewReadyChange=h()}static{this.properties={autoDestroyDisabled:5,view:32,aria:0,attributionMode:1,ready:36,layer:0,map:0}}static{this.styles=[p,y,R]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}async destroy(){await this.manager.destroy()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.manager.onLifecycle(()=>[w(()=>this.layer,()=>{this.layer&&this.view&&(this.view.layer=this.layer,this.layer.loaded||this.layer.load())},{initial:!0}),w(()=>this.view.ready,()=>{this.view.ready&&this.arcgisViewReadyChange.emit()},{initial:this.view.ready})])}renderMain(){return t`<div class=${`root ${a.base}`} ${s(this._mapRef)}></div>`}render(){return t`${this.renderMain()}<section class=${c(a.containerUI)} ${s(this._containerRef)}>${v({direction:this._direction,slotGroupRefs:this._slotGroupRefs})}</section>`}};l("arcgis-video",r);return r},"core/reactiveUtils","views/VideoView",b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as i}from"./
|
|
2
|
+
import{a as i}from"./4VZNRZ26.js";import a from"./G4FGSUWN.js";import{z as s}from"./Z4O75QMV.js";export default $arcgis.t(([c,{a:o}])=>{var l=n=>h(n),t=class extends s{#e;constructor(e){super(e),this.setProvisionalExports(void 0)}hostConnected(){this.component.manager.loadedCalled&&o(this.component)}hostLoad(){this.component.manager.destroyed}hostLoaded(){let{el:e}=this.component,r=e.shadowRoot?.firstElementChild??e.firstElementChild??void 0;e.childElem??=r,this.#e=c.when(()=>this.component.view!=null,()=>{this.component.arcgisReady.emit()},{once:!0,initial:!0,sync:!0}),e.isConnected&&o(this.component)}hostDisconnected(){typeof this.component.el.childElem=="object"&&this.component.view?.ui?.remove(this.component.el.childElem),this.#e?.remove()}hostUpdate(e){e.has("referenceElement")&&o(this.component)}},h=i(t);return{a:l,b:t}},"core/reactiveUtils",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as F,b as q,c as k,d as v,e as O,f as z,g as u,j as g,k as m}from"./S4I3X6AX.js";import h from"./WNAVM6XX.js";import{a as p}from"./IGSZABNU.js";import f from"./WBDPNTXV.js";import"./PC4PAQXQ.js";import{a as R}from"./754HIIHN.js";import"./VPOSSFKR.js";import e from"./I56NMUHZ.js";import{a as j}from"./5NMJSOMR.js";import{a as D}from"./54VXNFQ4.js";import c from"./PYCPKGFF.js";import b from"./QLYIU55V.js";import{g as P}from"./HLAS4IJN.js";import"./3XD6T77C.js";import a from"./T5SQSJ4I.js";import"./FRDIRDV2.js";import{M as E,N as w,O as I,P as U,Q as A,R as C,U as L,a as $,b as d,x as V}from"./C5DLADWD.js";import"./3TTFCHAA.js";export default $arcgis.t(([ee,{property:a,subclass:ie},{watch:te},{convertUnit:re},,,,B,{f:H},T])=>{var se=$`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:300px;position:relative}.root{--calcite-label-margin-bottom: 0;padding:var(--arcgis-internal-padding)}.content{flex-direction:column;display:flex;gap:var(--arcgis-internal-panel-gap)}.header{display:flex;align-items:center;justify-content:space-between;margin-block-end:var(--calcite-spacing-sm);&.no-content{margin-block-end:calc(var(--calcite-spacing-sm) * -1)}}.heading{margin:0}.settings-content{display:flex;flex-direction:column;gap:var(--calcite-spacing-xxl);padding:var(--calcite-spacing-md);>div{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);>p{margin:0;font-size:var(--calcite-font-size-md)}}}.warning-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}`,ae=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,s=(i,e,t,n)=>{for(var l=n>1?void 0:n?ne(e,t):e,c=i.length-1,h;c>=0;c--)(h=i[c])&&(l=(n?h(e,t,l):h(l))||l);return n&&l&&ae(e,t,l),l},r=class extends T{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Volume Measurement component is only supported in 3D views."}initialize(){this.addHandles([te(()=>({analysis:this.analysis,volumeDisplayUnit:this._userVolumeDisplayUnit,elevationDisplayUnit:this._userElevationDisplayUnit,areaDisplayUnit:this._userAreaDisplayUnit,perimeterDisplayUnit:this._userPerimeterDisplayUnit,elevationInputUnit:this._userElevationInputUnit}),({analysis:i,volumeDisplayUnit:e,elevationDisplayUnit:t,areaDisplayUnit:n,perimeterDisplayUnit:l,elevationInputUnit:c})=>{e&&(i.displayUnits.volume=e),t&&(i.displayUnits.elevation=t),n&&(i.displayUnits.area=n),l&&(i.displayUnits.length=l),c&&(i.inputUnits.elevation=c)},{sync:!0,initial:!0})])}get _defaultElevationInputUnit(){return this.defaultMeasurementSystem==="metric"?"meters":"feet"}get state(){let{analysis:i,disabled:e,operationState:t,ready:n,supported:l}=this,{valid:c}=i;return F({supported:l,disabled:e,ready:n,operationState:t,valid:c})}get displayState(){return q(this.state,this.analysis.geometry!=null)}get measurement(){let{analysisView:i}=this,e=i?.result,t=i?.error==null;return{mode:"euclidean",totalVolume:u(e?.totalVolume,t),cutVolume:u(e?.cutVolume,t),fillVolume:u(e?.fillVolume,t),netVolume:u(e?.netVolume,t),area:u(e?.area,t),perimeter:u(e?.perimeter,t)}}constructAnalysis(){return new ee}async place(i){await this.analysisView?.place(i)}clearAnalysis(){this.analysis.geometry=null}get volumeDisplayUnitOptions(){return g(this._userVolumeUnitOptions,z,z)}set volumeDisplayUnitOptions(i){this._userVolumeUnitOptions=i}get volumeDisplayUnit(){let i=this.volumeDisplayUnitOptions;return m(this._userVolumeDisplayUnit,this.analysis.displayUnits?.volume,i,this.defaultMeasurementSystem)}set volumeDisplayUnit(i){this._userVolumeDisplayUnit=i}get elevationDisplayUnitOptions(){return g(this._userElevationDisplayUnitOptions,v,v)}set elevationDisplayUnitOptions(i){this._userElevationDisplayUnitOptions=i}get elevationDisplayUnit(){let i=this.elevationDisplayUnitOptions;return m(this._userElevationDisplayUnit,this.analysis.displayUnits?.elevation,i,this.defaultMeasurementSystem)}set elevationDisplayUnit(i){this._userElevationDisplayUnit=i}get elevationInputUnitOptions(){return g(this._userElevationInputUnitOptions,k,k)}set elevationInputUnitOptions(i){this._userElevationInputUnitOptions=i}get elevationInputUnit(){let i=this.elevationInputUnitOptions;return m(this._userElevationInputUnit,this.analysis.inputUnits?.elevation,i,this._defaultElevationInputUnit)}set elevationInputUnit(i){let e=this.analysis.cutFillOptions.targetElevation??0;this.analysis.cutFillOptions.targetElevation=re(e,this.elevationInputUnit,i??this.elevationInputUnit),this._userElevationInputUnit=i}get areaDisplayUnitOptions(){return g(this._userAreaUnitOptions,O,O)}set areaDisplayUnitOptions(i){this._userAreaUnitOptions=i}get areaDisplayUnit(){let i=this.areaDisplayUnitOptions;return m(this._userAreaDisplayUnit,this.analysis.displayUnits?.area,i,this.defaultMeasurementSystem)}set areaDisplayUnit(i){this._userAreaDisplayUnit=i}get perimeterDisplayUnitOptions(){return g(this._userPerimeterDisplayUnitOptions,v,v)}set perimeterDisplayUnitOptions(i){this._userPerimeterDisplayUnitOptions=i}get perimeterDisplayUnit(){let i=this.perimeterDisplayUnitOptions;return m(this._userPerimeterDisplayUnit,this.analysis.displayUnits?.length,i,this.defaultMeasurementSystem)}set perimeterDisplayUnit(i){this._userPerimeterDisplayUnit=i}};s([a()],r.prototype,"_defaultElevationInputUnit",1);s([a()],r.prototype,"state",1);s([a()],r.prototype,"displayState",1);s([a({readOnly:!0})],r.prototype,"measurement",1);s([a()],r.prototype,"volumeDisplayUnitOptions",1);s([a()],r.prototype,"volumeDisplayUnit",1);s([a()],r.prototype,"_userVolumeDisplayUnit",2);s([a()],r.prototype,"_userVolumeUnitOptions",2);s([a()],r.prototype,"elevationDisplayUnitOptions",1);s([a()],r.prototype,"elevationDisplayUnit",1);s([a()],r.prototype,"_userElevationDisplayUnit",2);s([a()],r.prototype,"_userElevationDisplayUnitOptions",2);s([a()],r.prototype,"elevationInputUnitOptions",1);s([a()],r.prototype,"elevationInputUnit",1);s([a()],r.prototype,"_userElevationInputUnit",2);s([a()],r.prototype,"_userElevationInputUnitOptions",2);s([a()],r.prototype,"areaDisplayUnitOptions",1);s([a()],r.prototype,"areaDisplayUnit",1);s([a()],r.prototype,"_userAreaDisplayUnit",2);s([a()],r.prototype,"_userAreaUnitOptions",2);s([a()],r.prototype,"perimeterDisplayUnitOptions",1);s([a()],r.prototype,"perimeterDisplayUnit",1);s([a()],r.prototype,"_userPerimeterDisplayUnit",2);s([a()],r.prototype,"_userPerimeterDisplayUnitOptions",2);r=s([ie("components.volume-measurement.VolumeMeasurementViewModel")],r);var le=B(r),M=class extends I{constructor(){super(...arguments),this.viewModel=le(this),this.messages=j({blocking:!0}),this.#e=E(),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.icon="measure-area",this.state=this.viewModel.state,this.volumeDisplayUnit=this.viewModel.volumeDisplayUnit,this.volumeDisplayUnitOptions=this.viewModel.volumeDisplayUnitOptions,this.elevationDisplayUnit=this.viewModel.elevationDisplayUnit,this.elevationDisplayUnitOptions=this.viewModel.elevationDisplayUnitOptions,this.elevationInputUnit=this.viewModel.elevationInputUnit,this.elevationInputUnitOptions=this.viewModel.elevationInputUnitOptions,this.areaDisplayUnit=this.viewModel.areaDisplayUnit,this.areaDisplayUnitOptions=this.viewModel.areaDisplayUnitOptions,this.perimeterDisplayUnit=this.viewModel.perimeterDisplayUnit,this.perimeterDisplayUnitOptions=this.viewModel.perimeterDisplayUnitOptions,this.hideHeader=!1,this.hideSettingsButton=!1,this.hideElevationDisplayUnitSelect=!1,this.hideElevationInputUnitSelect=!1,this.hideVolumeDisplayUnitSelect=!1,this.hideModeSelect=!1,this.hideStartButton=!1,this.hideVisualization=this.viewModel.hideVisualization,this.headingLevel=2,this.hideAreaDisplayUnitSelect=!1,this.hidePerimeterDisplayUnitSelect=!1,this.arcgisPropertyChange=P()("analysis","state"),this.arcgisReady=V()}static{this.properties={view:0,analysis:0,autoDestroyDisabled:5,icon:3,label:1,referenceElement:1,mode:1,state:32,volumeDisplayUnit:1,volumeDisplayUnitOptions:0,elevationDisplayUnit:1,elevationDisplayUnitOptions:0,elevationInputUnit:1,elevationInputUnitOptions:0,areaDisplayUnit:1,areaDisplayUnitOptions:0,perimeterDisplayUnit:1,perimeterDisplayUnitOptions:0,hideHeader:5,hideSettingsButton:5,hideElevationDisplayUnitSelect:5,hideElevationInputUnitSelect:5,hideVolumeDisplayUnitSelect:5,hideModeSelect:5,hideStartButton:5,hideVisualization:5,headingLevel:9,hideAreaDisplayUnitSelect:5,hidePerimeterDisplayUnitSelect:5}}static{this.styles=se}#e;#i(e){e&&queueMicrotask(()=>{this.isConnected&&(e.referenceElement=this.#e.value)})}get mode(){return this.viewModel.analysis.measureType}set mode(e){this.viewModel.analysis.measureType=e}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){H(this.viewModel.start())}render(){let{messages:e,viewModel:t}=this,{measurement:n,state:l}=t,c=this.volumeDisplayUnitOptions,h=this.volumeDisplayUnit,y=this.elevationDisplayUnitOptions,Z=this.elevationDisplayUnit,X=this.elevationInputUnitOptions,G=this.elevationInputUnit,J=this.perimeterDisplayUnitOptions,K=this.perimeterDisplayUnit,N=this.areaDisplayUnitOptions,Q=this.areaDisplayUnit,S=t.analysisView?.error?.name,W=[_({hidden:this.hideElevationInputUnitSelect,options:X,selectLabel:e.elevationInputUnit,value:G,onChange:o=>{this.viewModel.elevationInputUnit=o}})],Y=[_({hidden:this.hideElevationDisplayUnitSelect,options:y,selectLabel:e.elevationDisplayUnit,value:Z,onChange:o=>{this.analysis.displayUnits.elevation=o}}),_({hidden:this.hideVolumeDisplayUnitSelect,options:c,selectLabel:e.volumeDisplayUnit,value:h,onChange:o=>{this.viewModel.volumeDisplayUnit=o}}),_({hidden:this.hideAreaDisplayUnitSelect,options:N,selectLabel:e.areaDisplayUnit,value:Q,onChange:o=>{this.viewModel.areaDisplayUnit=o}}),_({hidden:this.hidePerimeterDisplayUnitSelect,options:J,selectLabel:e.perimeterDisplayUnit,value:K,onChange:o=>{this.viewModel.perimeterDisplayUnit=o}})],b=[this.hideElevationInputUnitSelect].filter(o=>!o).length===0,f=[this.hideElevationDisplayUnitSelect,this.hideVolumeDisplayUnitSelect,this.hideAreaDisplayUnitSelect,this.hidePerimeterDisplayUnitSelect].filter(o=>!o).length===0,x=this.hideSettingsButton||b&&f;return d`<div aria-label=${e.componentLabel??C} class=${U({root:!0,[D.widget]:!0,[D.panel]:!0})} role=presentation>${l==="disabled"&&d`<calcite-scrim></calcite-scrim>`||""}${p({hidden:this.hideHeader&&x,children:d`<div class=${U({header:!0,"no-content":this.hideHeader})}>${p({hidden:this.hideHeader,children:R({class:"heading",level:this.headingLevel,children:e.title})})}<span style=${A({flex:1})}></span>${p({hidden:x,children:d`<calcite-action icon=gear slot=settings .text=${e.displaySettings} ${w(this.#e)}></calcite-action><calcite-popover slot=settings label .referenceElement=${this.#e.value} overlay-positioning=fixed placement=bottom-end auto-close .open=${x?!1:void 0} ${w(this.#i)}><div class="settings-content">${p({hidden:b,children:d`<div><p .hidden=${f}>${e.inputUnits}</p>${W}</div>`})}${p({hidden:f,children:d`<div><p .hidden=${b}>${e.displayUnits}</p>${Y}</div>`})}</div></calcite-popover>`})}</div>`})}<div class="content">${p({hidden:this.hideModeSelect,children:d`<calcite-label>${this.messages.measurementMode}<calcite-select label="Select measurement mode" .value=${this.mode} @calciteSelectChange=${o=>{this.analysis.measureType=o.target.selectedOption.value}}><calcite-option value=cut-fill>${e.cutAndFillMode}</calcite-option><calcite-option value=stockpile>${e.stockpileMode}</calcite-option></calcite-select></calcite-label>`})}${S!=null&&oe({error:S,messages:e})||""}<arcgis-measurement-content .state=${t.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[{title:e.cutVolume,measurement:n.cutVolume},{title:e.fillVolume,measurement:n.fillVolume},{title:e.netVolume,measurement:n.netVolume},{title:e.area,measurement:n.area},{title:e.perimeter,measurement:n.perimeter}]}>${p({hidden:this.hideStartButton,children:d`<calcite-button slot=actions width=full .disabled=${l==="disabled"} @click=${()=>{this.viewModel.start({clear:!0})}}>${e.newMeasurement}</calcite-button>`})}</arcgis-measurement-content></div></div>`}};function _(i){let{hidden:e,options:t,selectLabel:n,value:l,onChange:c}=i;return e?null:d`<arcgis-unit-select layout=inline-space-between .options=${t} .selectLabel=${n} .value=${l} @arcgisUnitSelectChange=${h=>{let y=h.detail;t.includes(y)&&c(y)}}></arcgis-unit-select>`}function oe(i){let e,{messages:t,error:n}=i;switch(n){case"insufficient-data":e=t.errorInsufficientData;break;case"perimeter-too-large":e=t.errorPerimeterTooLarge;break;case"unsupported-coordinate-system":e=t.errorUnsupportedCoordinateSystem;break;case"unsupported-layer-transparency":e=t.errorUnsupportedLayerTransparency;break;default:e=t.errorUnknown;break}return d`<calcite-notice aria-live=polite open icon=exclamation-mark-triangle-f kind=warning><div slot=title class="warning-title">${e}</div><div slot=message>${e}</div></calcite-notice>`}L("arcgis-volume-measurement",M);return M},"analysis/VolumeMeasurementAnalysis","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/unitUtils",a,b,c,e,f,h)
|
|
2
|
+
import{a as F,b as q,c as k,d as v,e as O,f as z,g as u,j as g,k as m}from"./S4I3X6AX.js";import h from"./CEEUQZJV.js";import{a as p}from"./IGSZABNU.js";import f from"./Z25OUO3N.js";import"./PC4PAQXQ.js";import{a as R}from"./BZIK6Z7E.js";import"./GAJMF6RP.js";import e from"./KDIBOT2K.js";import{a as j}from"./VNFPWEKG.js";import{a as D}from"./54VXNFQ4.js";import c from"./3DR3T6WY.js";import b from"./RRGRQMTZ.js";import{g as P}from"./4VZNRZ26.js";import"./77TGNHGP.js";import a from"./G4FGSUWN.js";import"./IIQQUUEG.js";import{M as E,N as w,O as I,P as U,Q as A,R as C,U as L,a as $,b as d,x as V}from"./Z4O75QMV.js";import"./3TTFCHAA.js";export default $arcgis.t(([ee,{property:a,subclass:ie},{watch:te},{convertUnit:re},,,,B,{f:H},T])=>{var se=$`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:300px;position:relative}.root{--calcite-label-margin-bottom: 0;padding:var(--arcgis-internal-padding)}.content{flex-direction:column;display:flex;gap:var(--arcgis-internal-panel-gap)}.header{display:flex;align-items:center;justify-content:space-between;margin-block-end:var(--calcite-spacing-sm);&.no-content{margin-block-end:calc(var(--calcite-spacing-sm) * -1)}}.heading{margin:0}.settings-content{display:flex;flex-direction:column;gap:var(--calcite-spacing-xxl);padding:var(--calcite-spacing-md);>div{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);>p{margin:0;font-size:var(--calcite-font-size-md)}}}.warning-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}`,ae=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,s=(i,e,t,n)=>{for(var l=n>1?void 0:n?ne(e,t):e,c=i.length-1,h;c>=0;c--)(h=i[c])&&(l=(n?h(e,t,l):h(l))||l);return n&&l&&ae(e,t,l),l},r=class extends T{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Volume Measurement component is only supported in 3D views."}initialize(){this.addHandles([te(()=>({analysis:this.analysis,volumeDisplayUnit:this._userVolumeDisplayUnit,elevationDisplayUnit:this._userElevationDisplayUnit,areaDisplayUnit:this._userAreaDisplayUnit,perimeterDisplayUnit:this._userPerimeterDisplayUnit,elevationInputUnit:this._userElevationInputUnit}),({analysis:i,volumeDisplayUnit:e,elevationDisplayUnit:t,areaDisplayUnit:n,perimeterDisplayUnit:l,elevationInputUnit:c})=>{e&&(i.displayUnits.volume=e),t&&(i.displayUnits.elevation=t),n&&(i.displayUnits.area=n),l&&(i.displayUnits.length=l),c&&(i.inputUnits.elevation=c)},{sync:!0,initial:!0})])}get _defaultElevationInputUnit(){return this.defaultMeasurementSystem==="metric"?"meters":"feet"}get state(){let{analysis:i,disabled:e,operationState:t,ready:n,supported:l}=this,{valid:c}=i;return F({supported:l,disabled:e,ready:n,operationState:t,valid:c})}get displayState(){return q(this.state,this.analysis.geometry!=null)}get measurement(){let{analysisView:i}=this,e=i?.result,t=i?.error==null;return{mode:"euclidean",totalVolume:u(e?.totalVolume,t),cutVolume:u(e?.cutVolume,t),fillVolume:u(e?.fillVolume,t),netVolume:u(e?.netVolume,t),area:u(e?.area,t),perimeter:u(e?.perimeter,t)}}constructAnalysis(){return new ee}async place(i){await this.analysisView?.place(i)}clearAnalysis(){this.analysis.geometry=null}get volumeDisplayUnitOptions(){return g(this._userVolumeUnitOptions,z,z)}set volumeDisplayUnitOptions(i){this._userVolumeUnitOptions=i}get volumeDisplayUnit(){let i=this.volumeDisplayUnitOptions;return m(this._userVolumeDisplayUnit,this.analysis.displayUnits?.volume,i,this.defaultMeasurementSystem)}set volumeDisplayUnit(i){this._userVolumeDisplayUnit=i}get elevationDisplayUnitOptions(){return g(this._userElevationDisplayUnitOptions,v,v)}set elevationDisplayUnitOptions(i){this._userElevationDisplayUnitOptions=i}get elevationDisplayUnit(){let i=this.elevationDisplayUnitOptions;return m(this._userElevationDisplayUnit,this.analysis.displayUnits?.elevation,i,this.defaultMeasurementSystem)}set elevationDisplayUnit(i){this._userElevationDisplayUnit=i}get elevationInputUnitOptions(){return g(this._userElevationInputUnitOptions,k,k)}set elevationInputUnitOptions(i){this._userElevationInputUnitOptions=i}get elevationInputUnit(){let i=this.elevationInputUnitOptions;return m(this._userElevationInputUnit,this.analysis.inputUnits?.elevation,i,this._defaultElevationInputUnit)}set elevationInputUnit(i){let e=this.analysis.cutFillOptions.targetElevation??0;this.analysis.cutFillOptions.targetElevation=re(e,this.elevationInputUnit,i??this.elevationInputUnit),this._userElevationInputUnit=i}get areaDisplayUnitOptions(){return g(this._userAreaUnitOptions,O,O)}set areaDisplayUnitOptions(i){this._userAreaUnitOptions=i}get areaDisplayUnit(){let i=this.areaDisplayUnitOptions;return m(this._userAreaDisplayUnit,this.analysis.displayUnits?.area,i,this.defaultMeasurementSystem)}set areaDisplayUnit(i){this._userAreaDisplayUnit=i}get perimeterDisplayUnitOptions(){return g(this._userPerimeterDisplayUnitOptions,v,v)}set perimeterDisplayUnitOptions(i){this._userPerimeterDisplayUnitOptions=i}get perimeterDisplayUnit(){let i=this.perimeterDisplayUnitOptions;return m(this._userPerimeterDisplayUnit,this.analysis.displayUnits?.length,i,this.defaultMeasurementSystem)}set perimeterDisplayUnit(i){this._userPerimeterDisplayUnit=i}};s([a()],r.prototype,"_defaultElevationInputUnit",1);s([a()],r.prototype,"state",1);s([a()],r.prototype,"displayState",1);s([a({readOnly:!0})],r.prototype,"measurement",1);s([a()],r.prototype,"volumeDisplayUnitOptions",1);s([a()],r.prototype,"volumeDisplayUnit",1);s([a()],r.prototype,"_userVolumeDisplayUnit",2);s([a()],r.prototype,"_userVolumeUnitOptions",2);s([a()],r.prototype,"elevationDisplayUnitOptions",1);s([a()],r.prototype,"elevationDisplayUnit",1);s([a()],r.prototype,"_userElevationDisplayUnit",2);s([a()],r.prototype,"_userElevationDisplayUnitOptions",2);s([a()],r.prototype,"elevationInputUnitOptions",1);s([a()],r.prototype,"elevationInputUnit",1);s([a()],r.prototype,"_userElevationInputUnit",2);s([a()],r.prototype,"_userElevationInputUnitOptions",2);s([a()],r.prototype,"areaDisplayUnitOptions",1);s([a()],r.prototype,"areaDisplayUnit",1);s([a()],r.prototype,"_userAreaDisplayUnit",2);s([a()],r.prototype,"_userAreaUnitOptions",2);s([a()],r.prototype,"perimeterDisplayUnitOptions",1);s([a()],r.prototype,"perimeterDisplayUnit",1);s([a()],r.prototype,"_userPerimeterDisplayUnit",2);s([a()],r.prototype,"_userPerimeterDisplayUnitOptions",2);r=s([ie("components.volume-measurement.VolumeMeasurementViewModel")],r);var le=B(r),M=class extends I{constructor(){super(...arguments),this.viewModel=le(this),this.messages=j({blocking:!0}),this.#e=E(),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.icon="measure-area",this.state=this.viewModel.state,this.volumeDisplayUnit=this.viewModel.volumeDisplayUnit,this.volumeDisplayUnitOptions=this.viewModel.volumeDisplayUnitOptions,this.elevationDisplayUnit=this.viewModel.elevationDisplayUnit,this.elevationDisplayUnitOptions=this.viewModel.elevationDisplayUnitOptions,this.elevationInputUnit=this.viewModel.elevationInputUnit,this.elevationInputUnitOptions=this.viewModel.elevationInputUnitOptions,this.areaDisplayUnit=this.viewModel.areaDisplayUnit,this.areaDisplayUnitOptions=this.viewModel.areaDisplayUnitOptions,this.perimeterDisplayUnit=this.viewModel.perimeterDisplayUnit,this.perimeterDisplayUnitOptions=this.viewModel.perimeterDisplayUnitOptions,this.hideHeader=!1,this.hideSettingsButton=!1,this.hideElevationDisplayUnitSelect=!1,this.hideElevationInputUnitSelect=!1,this.hideVolumeDisplayUnitSelect=!1,this.hideModeSelect=!1,this.hideStartButton=!1,this.hideVisualization=this.viewModel.hideVisualization,this.headingLevel=2,this.hideAreaDisplayUnitSelect=!1,this.hidePerimeterDisplayUnitSelect=!1,this.arcgisPropertyChange=P()("analysis","state"),this.arcgisReady=V()}static{this.properties={view:0,analysis:0,autoDestroyDisabled:5,icon:3,label:1,referenceElement:1,mode:1,state:32,volumeDisplayUnit:1,volumeDisplayUnitOptions:0,elevationDisplayUnit:1,elevationDisplayUnitOptions:0,elevationInputUnit:1,elevationInputUnitOptions:0,areaDisplayUnit:1,areaDisplayUnitOptions:0,perimeterDisplayUnit:1,perimeterDisplayUnitOptions:0,hideHeader:5,hideSettingsButton:5,hideElevationDisplayUnitSelect:5,hideElevationInputUnitSelect:5,hideVolumeDisplayUnitSelect:5,hideModeSelect:5,hideStartButton:5,hideVisualization:5,headingLevel:9,hideAreaDisplayUnitSelect:5,hidePerimeterDisplayUnitSelect:5}}static{this.styles=se}#e;#i(e){e&&queueMicrotask(()=>{this.isConnected&&(e.referenceElement=this.#e.value)})}get mode(){return this.viewModel.analysis.measureType}set mode(e){this.viewModel.analysis.measureType=e}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){H(this.viewModel.start())}render(){let{messages:e,viewModel:t}=this,{measurement:n,state:l}=t,c=this.volumeDisplayUnitOptions,h=this.volumeDisplayUnit,y=this.elevationDisplayUnitOptions,Z=this.elevationDisplayUnit,X=this.elevationInputUnitOptions,G=this.elevationInputUnit,J=this.perimeterDisplayUnitOptions,K=this.perimeterDisplayUnit,N=this.areaDisplayUnitOptions,Q=this.areaDisplayUnit,S=t.analysisView?.error?.name,W=[_({hidden:this.hideElevationInputUnitSelect,options:X,selectLabel:e.elevationInputUnit,value:G,onChange:o=>{this.viewModel.elevationInputUnit=o}})],Y=[_({hidden:this.hideElevationDisplayUnitSelect,options:y,selectLabel:e.elevationDisplayUnit,value:Z,onChange:o=>{this.analysis.displayUnits.elevation=o}}),_({hidden:this.hideVolumeDisplayUnitSelect,options:c,selectLabel:e.volumeDisplayUnit,value:h,onChange:o=>{this.viewModel.volumeDisplayUnit=o}}),_({hidden:this.hideAreaDisplayUnitSelect,options:N,selectLabel:e.areaDisplayUnit,value:Q,onChange:o=>{this.viewModel.areaDisplayUnit=o}}),_({hidden:this.hidePerimeterDisplayUnitSelect,options:J,selectLabel:e.perimeterDisplayUnit,value:K,onChange:o=>{this.viewModel.perimeterDisplayUnit=o}})],b=[this.hideElevationInputUnitSelect].filter(o=>!o).length===0,f=[this.hideElevationDisplayUnitSelect,this.hideVolumeDisplayUnitSelect,this.hideAreaDisplayUnitSelect,this.hidePerimeterDisplayUnitSelect].filter(o=>!o).length===0,x=this.hideSettingsButton||b&&f;return d`<div aria-label=${e.componentLabel??C} class=${U({root:!0,[D.widget]:!0,[D.panel]:!0})} role=presentation>${l==="disabled"&&d`<calcite-scrim></calcite-scrim>`||""}${p({hidden:this.hideHeader&&x,children:d`<div class=${U({header:!0,"no-content":this.hideHeader})}>${p({hidden:this.hideHeader,children:R({class:"heading",level:this.headingLevel,children:e.title})})}<span style=${A({flex:1})}></span>${p({hidden:x,children:d`<calcite-action icon=gear slot=settings .text=${e.displaySettings} ${w(this.#e)}></calcite-action><calcite-popover slot=settings label .referenceElement=${this.#e.value} overlay-positioning=fixed placement=bottom-end auto-close .open=${x?!1:void 0} ${w(this.#i)}><div class="settings-content">${p({hidden:b,children:d`<div><p .hidden=${f}>${e.inputUnits}</p>${W}</div>`})}${p({hidden:f,children:d`<div><p .hidden=${b}>${e.displayUnits}</p>${Y}</div>`})}</div></calcite-popover>`})}</div>`})}<div class="content">${p({hidden:this.hideModeSelect,children:d`<calcite-label>${this.messages.measurementMode}<calcite-select label="Select measurement mode" .value=${this.mode} @calciteSelectChange=${o=>{this.analysis.measureType=o.target.selectedOption.value}}><calcite-option value=cut-fill>${e.cutAndFillMode}</calcite-option><calcite-option value=stockpile>${e.stockpileMode}</calcite-option></calcite-select></calcite-label>`})}${S!=null&&oe({error:S,messages:e})||""}<arcgis-measurement-content .state=${t.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[{title:e.cutVolume,measurement:n.cutVolume},{title:e.fillVolume,measurement:n.fillVolume},{title:e.netVolume,measurement:n.netVolume},{title:e.area,measurement:n.area},{title:e.perimeter,measurement:n.perimeter}]}>${p({hidden:this.hideStartButton,children:d`<calcite-button slot=actions width=full .disabled=${l==="disabled"} @click=${()=>{this.viewModel.start({clear:!0})}}>${e.newMeasurement}</calcite-button>`})}</arcgis-measurement-content></div></div>`}};function _(i){let{hidden:e,options:t,selectLabel:n,value:l,onChange:c}=i;return e?null:d`<arcgis-unit-select layout=inline-space-between .options=${t} .selectLabel=${n} .value=${l} @arcgisUnitSelectChange=${h=>{let y=h.detail;t.includes(y)&&c(y)}}></arcgis-unit-select>`}function oe(i){let e,{messages:t,error:n}=i;switch(n){case"insufficient-data":e=t.errorInsufficientData;break;case"perimeter-too-large":e=t.errorPerimeterTooLarge;break;case"unsupported-coordinate-system":e=t.errorUnsupportedCoordinateSystem;break;case"unsupported-layer-transparency":e=t.errorUnsupportedLayerTransparency;break;default:e=t.errorUnknown;break}return d`<calcite-notice aria-live=polite open icon=exclamation-mark-triangle-f kind=warning><div slot=title class="warning-title">${e}</div><div slot=message>${e}</div></calcite-notice>`}L("arcgis-volume-measurement",M);return M},"analysis/VolumeMeasurementAnalysis","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/unitUtils",a,b,c,e,f,h)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{O as l,U as o,a as n,b as r}from"./
|
|
2
|
+
import{O as l,U as o,a as n,b as r}from"./Z4O75QMV.js";import"./3TTFCHAA.js";var p=n`:host{display:flex;flex-direction:column;gap:var(--calcite-spacing-xxs)}`,t=class extends l{constructor(){super(...arguments),this._expandedLine=void 0,this.featureSelected=!1}static{this.properties={_expandedLine:16,effectiveDisplayUnits:0,featureSelected:5,messages:0,results:0}}static{this.styles=p}async destroy(){await this.manager.destroy()}_onToggleExpand(s){let e=s.detail;this._expandedLine=e===this._expandedLine?void 0:e}render(){let{messages:s,effectiveDisplayUnits:e,_expandedLine:d}=this,i=this.results??[],c=i.length<=1;return i.map(a=>r`<arcgis-elevation-profile-legend-item .effectiveDisplayUnits=${e} .expanded=${a.profile===d} .featureSelected=${this.featureSelected} .hideCheckbox=${c} .messages=${s} @arcgisExpandedToggle=${this._onToggleExpand} .result=${a}></arcgis-elevation-profile-legend-item>`)}};o("arcgis-elevation-profile-legend",t);export{t as ArcgisElevationProfileLegend};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as vt}from"./DLRTY3IJ.js";import{D as ft,E as q,P as at,R as _t,S as xt,c as M,ga as ct,i as T,j as v,ja as bt,k as D,l as mt,m as ht,n as dt,o as et,qa as ut,ra as lt,sa as kt}from"./3HYZ3J2E.js";import{N as R,a as z,u as w}from"./I747LK4V.js";import{a as gt,b as tt,d as A,e as _}from"./Q2Q2Z6PD.js";import{V as W,W as yt,g as Y,o as k}from"./KVPWONPB.js";import"./3TTFCHAA.js";var st=class extends yt{setupDefaultRules(){super.setupDefaultRules();let e=this._root.interfaceColors,t=this.rule.bind(this);t("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:kt.new(this._root,{}),width:A,height:A}),t("PieChart").setAll({radius:tt(80),startAngle:-90,endAngle:270}),t("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),t("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),t("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),t("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),t("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),t("Slice",["pie"]).states.create("hover",{scale:1.04}),t("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),t("Tick",["pie"]).setAll({location:1}),t("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),t("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),t("FunnelSlice").setAll({interactive:!0,expandDistance:0}),t("FunnelSlice").states.create("hover",{expandDistance:.15}),t("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:_}),t("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:_,rotation:-90}),t("Label",["funnel","vertical"]).setAll({centerY:_,centerX:0}),t("Tick",["funnel"]).setAll({location:1}),t("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),t("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),t("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),t("PyramidSeries").setAll({valueIs:"area"}),t("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),t("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),t("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),t("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),t("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),t("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:_}),t("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:_,rotation:-90}),t("Label",["pyramid","vertical"]).setAll({centerY:_,centerX:0}),t("Tick",["pyramid"]).setAll({location:1}),t("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),t("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:_}),t("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:_,rotation:-90}),t("Label",["pictorial","vertical"]).setAll({centerY:_,centerX:0}),t("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),t("Tick",["pictorial"]).setAll({location:.5});{let s=t("Graphics",["pictorial","background"]);s.setAll({fillOpacity:.2}),xt(s,"fill",e,"alternativeBackground")}}};var C=class extends ut{_afterNew(){this._defaultThemes.push(st.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(e){super._processSeries(e),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};C.className="PercentChart";C.classNames=ut.classNames.concat([C.className]);var L=class extends ct{constructor(){super(...arguments),this.slicesContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})),this.labelsContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})),this.ticksContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})),this._lLabels=[],this._rLabels=[],this._hLabels=[],this.slices=this.addDisposer(this._makeSlices()),this.labels=this.addDisposer(this._makeLabels()),this.ticks=this.addDisposer(this._makeTicks())}_applyThemes(e=!1){let t=this.get("colors");return t&&t.reset(),super._applyThemes(e)}makeSlice(e){let t=this.slicesContainer.children.push(this.slices.make());return t.on("fill",()=>{this.updateLegendMarker(e)}),t.on("fillPattern",()=>{this.updateLegendMarker(e)}),t.on("stroke",()=>{this.updateLegendMarker(e)}),t._setDataItem(e),e.set("slice",t),this.slices.push(t),t}makeLabel(e){let t=this.labelsContainer.children.push(this.labels.make());return t._setDataItem(e),e.set("label",t),this.labels.push(t),t}_shouldMakeBullet(e){return e.get("value")!=null}makeTick(e){let t=this.ticksContainer.children.push(this.ticks.make());return t._setDataItem(e),e.set("tick",t),this.ticks.push(t),t}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_onDataClear(){let e=this.get("colors");e&&e.reset();let t=this.get("patterns");t&&t.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let e=0,t=0,s=0,i=1/0,a=0;k(this._dataItems,l=>{let r=l.get("valueWorking",0);e+=r,t+=Math.abs(r)}),k(this._dataItems,l=>{let r=l.get("valueWorking",0);r>s&&(s=r),r<i&&(i=r),a++;let n=r/t;t==0&&(n=0),l.setRaw("valuePercentTotal",n*100)}),this.setPrivateRaw("valueLow",i),this.setPrivateRaw("valueHigh",s),this.setPrivateRaw("valueSum",e),this.setPrivateRaw("valueAverage",e/a),this.setPrivateRaw("valueAbsoluteSum",t)}}show(e){let t=Object.create(null,{show:{get:()=>super.show}});return z(this,void 0,void 0,function*(){let s=[];s.push(t.show.call(this,e)),s.push(this._sequencedShowHide(!0,e)),yield Promise.all(s)})}hide(e){let t=Object.create(null,{hide:{get:()=>super.hide}});return z(this,void 0,void 0,function*(){let s=[];s.push(t.hide.call(this,e)),s.push(this._sequencedShowHide(!1,e)),yield Promise.all(s)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&k(this._dataItems,e=>{e.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&k(this._dataItems,e=>{this.updateLegendValue(e)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),k(this.dataItems,e=>{this._updateTick(e)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(e){if(super.processDataItem(e),e.get("fill")==null){let t=this.get("colors");t&&e.setRaw("fill",t.next())}if(e.get("fillPattern")==null){let t=this.get("patterns");t&&e.setRaw("fillPattern",t.next())}}showDataItem(e,t){let s=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){let i=[s.showDataItem.call(this,e,t)];Y(t)||(t=this.get("stateAnimationDuration",0));let a=this.get("stateAnimationEasing"),l=e.get("value"),r=e.animate({key:"valueWorking",to:l,duration:t,easing:a});r&&i.push(r.waitForStop());let n=e.get("tick");n&&i.push(n.show(t));let c=e.get("label");c&&i.push(c.show(t));let o=e.get("slice");o&&i.push(o.show(t)),o.get("active")&&o.states.applyAnimate("active"),yield Promise.all(i)})}hideDataItem(e,t){let s=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){let i=[s.hideDataItem.call(this,e,t)],a=this.states.create("hidden",{});Y(t)||(t=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let l=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),r=e.animate({key:"valueWorking",to:0,duration:t,easing:l});r&&i.push(r.waitForStop());let n=e.get("tick");n&&i.push(n.hide(t));let c=e.get("label");c&&i.push(c.hide(t));let o=e.get("slice");o.hideTooltip(),o&&i.push(o.hide(t)),yield Promise.all(i)})}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("label");t&&(this.labels.removeValue(t),t.dispose());let s=e.get("tick");s&&(this.ticks.removeValue(s),s.dispose());let i=e.get("slice");i&&(this.slices.removeValue(i),i.dispose())}hoverDataItem(e){let t=e.get("slice");t&&!t.isHidden()&&t.hover()}unhoverDataItem(e){let t=e.get("slice");t&&t.unhover()}updateLegendMarker(e){if(e){let t=e.get("slice");if(t){let s=e.get("legendDataItem");if(s){let i=s.get("markerRectangle");k(ft,a=>{t.get(a)!=null&&i.set(a,t.get(a))})}}}}_arrangeDown(e){if(e){let t=this._getNextDown();e.sort((s,i)=>s.y>i.y?1:s.y<i.y?-1:0),k(e,s=>{let i=s.label.adjustedLocalBounds(),a=i.top;s.y+a<t&&(s.y=t-a),s.label.set("y",s.y),t=s.y+i.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(e){if(e){let t=this._getNextUp();e.sort((s,i)=>s.y<i.y?1:s.y>i.y?-1:0),k(e,s=>{let i=s.label.adjustedLocalBounds(),a=i.bottom;s.y+a>t&&(s.y=t-a),s.label.set("y",s.y),t=s.y+i.top})}}_arrangeRight(e){if(e){let t=0;e.sort((s,i)=>s.y>i.y?1:s.y<i.y?-1:0),k(e,s=>{let i=s.label.adjustedLocalBounds(),a=i.left;s.y+a<t&&(s.y=t-a),s.label.set("x",s.y),t=s.y+i.right})}}_arrangeLeft(e){if(e){let t=this.labelsContainer.maxWidth();e.sort((s,i)=>s.y<i.y?1:s.y>i.y?-1:0),k(e,s=>{let i=s.label.adjustedLocalBounds(),a=i.right;s.y+a>t&&(s.y=t-a),s.label.set("x",s.y),t=s.y+i.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(e){}_dispose(){super._dispose();let e=this.chart;e&&e.series.removeValue(this)}};L.className="PercentSeries";L.classNames=ct.classNames.concat([L.className]);var G=class extends C{constructor(){super(...arguments),this._maxRadius=1}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:_,y:_})}_prepareChildren(){super._prepareChildren();let e=this.chartContainer,t=e.innerWidth(),s=e.innerHeight(),i=this.get("startAngle",0),a=this.get("endAngle",0),l=this.get("innerRadius"),r=ht(0,0,i,a,1),n=t/(r.right-r.left),c=s/(r.bottom-r.top),o={left:0,right:0,top:0,bottom:0};if(l instanceof gt){let p=l.value,g=Math.min(n,c);p=Math.max(g*p,g-Math.min(s,t))/g,o=ht(0,0,i,a,p),this.setPrivateRaw("irModifyer",p/l.value)}r=dt([r,o]);let m=this._maxRadius;this._maxRadius=Math.min(n,c);let h=w(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-h*(r.bottom+r.top)/2,dx:-h*(r.right+r.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||m!=this._maxRadius)&&this.series.each(p=>{p._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(p=>{p._markDirtyKey("innerRadius")})}radius(e){let t=w(this.get("radius",0),this._maxRadius),s=w(this.get("innerRadius",0),t);if(e){let i=this.series.indexOf(e),a=this.series.length,l=e.get("radius");return l!=null?s+w(l,t-s):s+(t-s)/a*(i+1)}return t}innerRadius(e){let t=this.radius(),s=w(this.get("innerRadius",0),t);if(s<0&&(s=t+s),e){let i=this.series.indexOf(e),a=this.series.length,l=e.get("innerRadius");return l!=null?s+w(l,t-s):s+(t-s)/a*i}return s}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};G.className="PieChart";G.classNames=C.classNames.concat([G.className]);var U=class extends L{_makeSlices(){return new M(W.new({}),()=>vt._new(this._root,{themeTags:R(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>bt._new(this._root,{themeTags:R(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:R(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t.on("scale",()=>{this._updateTick(e)}),t.on("shiftRadius",()=>{this._updateTick(e)}),t.events.on("positionchanged",()=>{this._updateTick(e)});let s=this.makeLabel(e);s.events.on("positionchanged",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{s.markDirty()})}_getNextUp(){let e=this.chart;return e?e._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let e=this.chart;return e?-e._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();let e=this.chart;if(e){if(this.isDirty("alignLabels")){let t=this.labels.template;if(this.get("alignLabels"))t.set("textType","aligned");else{let s=t.get("textType");(s==null||s=="aligned")&&t.set("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let t=this.get("startAngle",e.get("startAngle",-90)),i=this.get("endAngle",e.get("endAngle",270))-t,a=t,l=e.radius(this);this.setPrivateRaw("radius",l);let r=e.innerRadius(this)*e.getPrivate("irModifyer",1);r<0&&(r=l+r),k(this._dataItems,n=>{this.updateLegendValue(n);let c=i*n.get("valuePercentTotal")/100,o=n.get("slice");if(o){o.set("radius",l),o.set("innerRadius",r),o.set("startAngle",a),o.set("arc",c);let p=n.get("fill");o._setDefault("fill",p),o._setDefault("stroke",p);let g=n.get("fillPattern");o._setDefault("fillPattern",g)}let m=mt(a+c/2),h=n.get("label");if(h&&(h.setPrivate("radius",l),h.setPrivate("innerRadius",r),h.set("labelAngle",m),h.get("textType")=="aligned")){let p=l+h.get("radius",0),g=l*T(m);m>90&&m<=270?(!h.isHidden()&&!h.isHiding()&&this._lLabels.push({label:h,y:g}),p*=-1,p-=this.labelsContainer.get("paddingLeft",0),h.set("centerX",A),h.setPrivateRaw("left",!0)):(!h.isHidden()&&!h.isHiding()&&this._rLabels.push({label:h,y:g}),p+=this.labelsContainer.get("paddingRight",0),h.set("centerX",0),h.setPrivateRaw("left",!1)),h.set("x",p),h.set("y",l*T(m))}a+=c,this._updateTick(n)})}}}_updateTick(e){let t=e.get("tick"),s=e.get("label"),i=e.get("slice"),a=t.get("location",1);if(t&&s&&i){let l=(i.get("shiftRadius",0)+i.get("radius",0))*i.get("scale",1)*a,r=s.get("labelAngle",0),n=D(r),c=T(r),o=this.labelsContainer,m=o.get("paddingLeft",0),h=o.get("paddingRight",0),p=0,g=0;p=s.x(),g=s.y();let u=[];if(p!=0||g!=0){if(s.get("textType")=="circular"){let y=s.radius()-s.get("paddingBottom",0),x=s.get("labelAngle",0);p=y*D(x),g=y*T(x)}let d=-h;s.getPrivate("left")&&(d=m),u=[{x:i.x()+l*n,y:i.y()+l*c},{x:p+d,y:g},{x:p,y:g}]}t.set("points",u)}}_positionBullet(e){let t=e.get("sprite");if(t){let i=t.dataItem.get("slice");if(i){let a=i.get("innerRadius",0),l=i.get("radius",0),r=i.get("startAngle",0),n=i.get("arc",0),c=e.get("locationX",.5),o=e.get("locationY",.5),m=r+n*c,h=a+(l-a)*o;t.setAll({x:D(m)*h,y:T(m)*h})}}}};U.className="PieSeries";U.classNames=L.classNames.concat([U.className]);var V=class extends q{constructor(){super(...arguments),this._projectionDirty=!1,this._tlx=0,this._tly=0,this._trx=0,this._try=0,this._blx=0,this._bly=0,this._brx=0,this._bry=0,this._cprx=0,this._cplx=0,this._cpry=0,this._cply=0}_afterNew(){super._afterNew(),this.set("draw",e=>{let t=this.width(),s=this.height(),i=Math.min(t,s)/2,a=w(this.get("cornerRadiusTL",0),i),l=w(this.get("cornerRadiusTR",0),i),r=w(this.get("cornerRadiusBR",0),i),n=w(this.get("cornerRadiusBL",0),i),c=this._trx,o=this._try,m=this._tlx,h=this._tly,p=this._brx,g=this._bry,u=this._blx,d=this._bly;o==h&&(o=o-.01),g==d&&(g=g-.01);let y=et({x:m,y:h},{x:c,y:o}),x=et({x:c,y:o},{x:p,y:g}),b=et({x:p,y:g},{x:u,y:d}),f=et({x:u,y:d},{x:m,y:h});this.get("orientation")=="horizontal"?(a=Math.min(a,Math.abs(h-o)/2),l=Math.min(l,Math.abs(h-o)/2),r=Math.min(r,Math.abs(d-g)/2),n=Math.min(n,Math.abs(d-g)/2)):(a=Math.min(a,Math.abs(m-c)/2),l=Math.min(l,Math.abs(m-c)/2),r=Math.min(r,Math.abs(u-p)/2),n=Math.min(n,Math.abs(u-p)/2));let $=m-a*v((y-f)/2)*D(f),P=h-a*v((y-f)/2)*T(f),F=m-a*v((f-y)/2)*D(y),Z=h-a*v((f-y)/2)*T(y),N=c-l*v((x-y)/2)*D(y),nt=o-l*v((x-y)/2)*T(y),B=c-l*v((y-x)/2)*D(x),O=o-l*v((y-x)/2)*T(x),J=p-r*v((b-x)/2)*D(x),j=g-r*v((b-x)/2)*T(x),Q=p-r*v((x-b)/2)*D(b),I=g-r*v((x-b)/2)*T(b),pt=u-n*v((f-b)/2)*D(b),it=d-n*v((f-b)/2)*T(b),ot=u-n*v((b-f)/2)*D(f),Dt=d-n*v((b-f)/2)*T(f);e.moveTo(F,Z),e.lineTo(N,nt),e.arcTo(c,o,B,O,l),e.quadraticCurveTo(this._cprx,this._cpry,J,j),e.arcTo(p,g,Q,I,r),e.lineTo(pt,it),e.arcTo(u,d,ot,Dt,n),e.quadraticCurveTo(this._cplx,this._cply,$,P),e.arcTo(m,h,F,Z,a)})}getPoint(e,t){let s=this.width(),i=this.height(),a=this.get("topWidth",0),l=this.get("bottomWidth",0);if(this.get("orientation")=="vertical"){let r=-a/2,n=a/2,c=l/2,o=-l/2,m=r+(o-r)*t,h=n+(c-n)*t;return{x:m+(h-m)*e,y:i*t}}else{let r=-a/2,n=a/2,c=l/2,o=-l/2,m=r+(o-r)*e,h=n+(c-n)*e;return{x:s*e,y:m+(h-m)*t}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")){let e=this.width(),t=this.height(),s=this.get("topWidth",0),i=this.get("bottomWidth",0);this._clear=!0;let a=this.get("expandDistance",0);this.get("orientation")=="vertical"?(this._tlx=-s/2,this._tly=0,this._trx=s/2,this._try=0,this._brx=i/2,this._bry=t,this._blx=-i/2,this._bly=t,this._cprx=this._trx+(this._brx-this._trx)/2+a*t,this._cpry=this._try+.5*t,this._cplx=this._tlx+(this._blx-this._tlx)/2-a*t,this._cply=this._tly+.5*t):(this._tly=s/2,this._tlx=0,this._try=-s/2,this._trx=0,this._bry=-i/2,this._brx=e,this._bly=i/2,this._blx=e,this._cpry=this._try+(this._bry-this._try)/2-a*e,this._cprx=this._trx+.5*e,this._cply=this._tly+(this._bly-this._tly)/2+a*e,this._cplx=this._tlx+.5*e)}super._changed()}};V.className="FunnelSlice";V.classNames=q.classNames.concat([V.className]);var H=class extends L{constructor(){super(...arguments),this._tag="funnel",this.links=this.addDisposer(this._makeLinks()),this._total=0,this._count=0,this._nextCoord=0,this._opposite=!1}_makeSlices(){return new M(W.new({}),()=>V._new(this._root,{themeTags:R(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>_t._new(this._root,{themeTags:R(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:R(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template]))}_makeLinks(){return new M(W.new({}),()=>V._new(this._root,{themeTags:R(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template]))}makeLink(e){let t=this.slicesContainer.children.push(this.links.make());return t._setDataItem(e),e.set("link",t),this.links.push(t),t}_afterNew(){super._afterNew();let e=this.slicesContainer;e.setAll({isMeasured:!0,position:"relative",width:tt(100),height:tt(100)}),e.onPrivate("width",()=>{this.markDirtySize()}),e.onPrivate("height",()=>{this.markDirtySize()}),this.get("orientation")=="vertical"?this.set("layout",this._root.horizontalLayout):this.set("layout",this._root.verticalLayout)}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t._setDataItem(e),e.set("slice",t),this.makeLink(e);let s=this.makeLabel(e);s.on("x",()=>{this._updateTick(e)}),s.on("y",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{s.markDirty()}),t.events.on("boundschanged",()=>{let i=t.dataItem;i&&this._updateTick(i)})}_updateChildren(){this._opposite=!1,this.children.indexOf(this.labelsContainer)==0&&(this._opposite=!0);let e=0,t=0;if(k(this.dataItems,s=>{let i=s.get("value");Y(i)&&(t++,i>0?e+=Math.abs(s.get("valueWorking",i)/i):this.get("ignoreZeroValues",!1)||s.isHidden()?t--:e+=1)}),this._total=1/t*e,this._count=t,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty)){let s=this.slicesContainer,i;this.get("orientation")=="vertical"?i=s.innerHeight():i=s.innerWidth(),this._nextCoord=this.get("startLocation",0)*i,this.markDirtyBounds();let a=0;k(this._dataItems,l=>{this.updateLegendValue(l),l.set("index",a),a++;let r=l.get("slice"),n=l.get("tick"),c=l.get("label"),o=l.get("link"),m=l.get("fill"),h=l.get("fillPattern");r._setDefault("fill",m),r._setDefault("stroke",m),r._setDefault("fillPattern",h),o._setDefault("fill",m),o._setDefault("stroke",m);let p=l.get("value");Y(p)&&(p==0&&this.get("ignoreZeroValues")?(r.setPrivate("visible",!1),n.setPrivate("visible",!1),c.setPrivate("visible",!1)):(r.setPrivate("visible",!0),n.setPrivate("visible",!0),c.setPrivate("visible",!0),this.decorateSlice(l),this.isLast(l)?o.setPrivate("visible",!1):l.isHidden()||o.setPrivate("visible",!0)))})}super._updateChildren()}_fixLayout(){let e=this.get("orientation"),t=this.labelsContainer,s=this.labels.template;this.get("alignLabels")?(t.set("position","relative"),t.setAll({isMeasured:!0}),e=="vertical"?(this.set("layout",this._root.horizontalLayout),s.setAll({centerX:A,x:A})):(this.set("layout",this._root.verticalLayout),s.setAll({centerX:0,x:0}))):(t.setAll({isMeasured:!1,position:"absolute"}),e=="vertical"?(t.setAll({x:_}),s.setAll({centerX:_,x:0})):(t.setAll({y:_}),s.setAll({centerX:_,y:0}))),this.markDirtySize()}getNextValue(e){let t=e.get("index"),s=e.get("valueWorking",0);if(t<this.dataItems.length-1){let i=this.dataItems[t+1];if(s=i.get("valueWorking",0),i.isHidden()||i.get("value")==0&&this.get("ignoreZeroValues"))return this.getNextValue(i)}return s}isLast(e){let t=e.get("index");if(t==this.dataItems.length-1)return!0;for(let s=t+1;s<this.dataItems.length;s++)if(!this.dataItems[s].isHidden())return!1;return!0}decorateSlice(e){let t=this.get("orientation"),s=e.get("slice"),i=e.get("label"),a=e.get("link"),l=this.slicesContainer,r=l.innerWidth(),n=l.innerHeight(),c=r;t=="horizontal"&&(c=n);let o=this.getNextValue(e),m=e.get("value",0),h=Math.abs(e.get("valueWorking",m)),p=this.get("bottomRatio",0),g=this.getPrivate("valueHigh",0),u=1;m!=0?u=h/Math.abs(m):e.isHidden()&&(u=1e-6),this._nextCoord==1/0&&(this._nextCoord=0);let d=h/g*c,y=(h-(h-o)*p)/g*c;s.setAll({topWidth:d,bottomWidth:y,orientation:t}),a.setAll({topWidth:y,bottomWidth:(h-(h-o))/g*c,orientation:t});let x=this.get("startLocation",0),b=this.get("endLocation",1);if(t=="vertical"){let f=a.height()*u;n=n*(b-x)+f,s.set("y",this._nextCoord);let $=Math.min(1e5,Math.max(0,n/this._count*u/this._total-f));s.setAll({height:$,x:r/2});let P=this._nextCoord+$/2;i.set("y",P),this._nextCoord+=$+f,a.setAll({y:this._nextCoord-f,x:r/2})}else{let f=a.width()*u;r=r*(b-x)+f,s.set("x",this._nextCoord);let $=Math.min(1e5,Math.max(0,r/this._count*u/this._total-f));s.setAll({width:$,y:n/2});let P=this._nextCoord+$/2;i.set("x",P),this._nextCoord+=$+f,a.setAll({x:this._nextCoord-f,y:n/2})}}hideDataItem(e,t){let s=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").hide(t),s.hideDataItem.call(this,e,t)})}showDataItem(e,t){let s=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").show(t),s.showDataItem.call(this,e,t)})}_updateTick(e){if(this.get("alignLabels")){let t=e.get("tick"),s=e.get("label"),i=e.get("slice");if(t&&i&&s){let a=this.labelsContainer,l=this.slicesContainer,r=t.get("location",.5),n=a.width(),c=a.height(),o=a.get("paddingLeft",0),m=a.get("paddingRight",0),h=a.get("paddingTop",0),p=a.get("paddingBottom",0),g={x:0,y:0},u={x:0,y:0},d={x:0,y:0};this._opposite&&(r=1-r),this.get("orientation")=="vertical"?(g=i.getPoint(r,.5),g.x+=i.x()+l.x(),g.y+=i.y()+l.y(),this._opposite?(u.x=n,u.y=s.y(),d.x=n-o,d.y=u.y):(u.x=l.x()+l.width(),u.y=s.y(),d.x=u.x+n-s.width()-m,d.y=u.y)):(g=i.getPoint(.5,r),g.x+=i.x()+l.x(),g.y+=i.y()+l.y(),this._opposite?(u.y=c,u.x=s.x(),d.y=c-h,d.x=u.x):(u.y=l.y()+l.height(),u.x=s.x(),d.y=u.y+c-s.height()-p,d.x=u.x)),t.set("points",[g,u,d])}}}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("link");t&&(this.links.removeValue(t),t.dispose())}_positionBullet(e){let t=e.get("sprite");if(t){let i=t.dataItem.get("slice");if(i){let a=i.width(),l=i.height(),r=e.get("locationX",.5),n=e.get("locationY",.5),c=0,o=0;this.get("orientation")=="horizontal"?o=l/2:c=a/2,t.setAll({x:i.x()+a*r-c,y:i.y()-o+l*n})}}}};H.className="FunnelSeries";H.classNames=L.classNames.concat([H.className]);var X=class extends H{constructor(){super(...arguments),this._tag="pyramid"}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0}decorateSlice(e){let t=this.get("orientation"),s=this.slicesContainer,i=e.get("slice"),a=e.get("label"),l=e.get("link"),r=this.get("valueIs","area"),n=this.getPrivate("valueAbsoluteSum",0);if(n==0)return;let c=this.get("startLocation",0),o=this.get("endLocation",1),m=this.get("topWidth",0),h=this.get("bottomWidth",A),p=Math.abs(e.get("valueWorking",0)),g=e.get("value",0),u,d,y=s.innerHeight(),x=s.innerWidth(),b=l.width(),f=l.height();t=="horizontal"&&([x,y]=[y,x],[b,f]=[f,b]);let $=x/2,P=1;g!=0?P=p/Math.abs(g):e.isHidden()&&(P=1e-6),f*=P,y=y*(o-c)-f*(this._count*this._total-1);let F=w(m,x);Y(this._nextSize)||(this._nextSize=F);let Z=w(h,x),N=this._nextSize,nt=Math.atan2(y,F-Z),B=Math.tan(Math.PI/2-nt);if(B==0&&(B=1e-8),r=="area"){let it=(F+Z)/2*y*p/n,ot=Math.abs(N*N-2*it*B);u=(N-Math.sqrt(ot))/B,u>0?d=(2*it-u*N)/u:d=N}else u=y*p/n,d=N-u*B;let O=this._nextCoord+u/2,J=$,j=this._nextCoord,Q=$,I=j+u;t=="vertical"?(a.set("y",O),a.get("opacity")>0&&this._rLabels.push({label:a,y:O}),i.set("height",u)):(a.set("x",O),a.get("opacity")>0&&this._hLabels.push({label:a,y:O}),[J,j]=[j,J],[Q,I]=[I,Q],i.set("width",u)),i.setAll({orientation:t,bottomWidth:d,topWidth:N,x:J,y:j}),l.setAll({orientation:t,x:Q,y:I,topWidth:d,bottomWidth:d}),this._nextSize=d,this._nextCoord+=u+f}};X.className="PyramidSeries";X.classNames=H.classNames.concat([X.className]);var K=class extends X{constructor(){super(...arguments),this._tag="pictorial",this.seriesMask=q.new(this._root,{position:"absolute",x:_,y:_,centerX:_,centerY:_}),this.seriesGraphics=this.slicesContainer.children.push(q.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:_,y:_,centerX:_,centerY:_}))}_afterNew(){super._afterNew(),this.set("topWidth",A),this.set("bottomWidth",A),this.set("valueIs","height"),this.slicesContainer.set("mask",this.seriesMask)}_updateScale(){let e=this.slicesContainer,t=e.innerWidth(),s=e.innerHeight(),i=this.seriesMask,a=this.seriesGraphics,l=i.get("scale",1),r=i.localBounds(),n=r.right-r.left,c=r.bottom-r.top;this.get("orientation")=="horizontal"?l=t/n:l=s/c,l!=1/0&&l!=NaN&&(i.set("scale",l),i.set("x",t/2),i.set("y",s/2),a.set("scale",l),a.set("x",t/2),a.set("y",s/2))}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){let e=this.get("svgPath");this.seriesMask.set("svgPath",e),this.seriesGraphics.set("svgPath",e)}this._updateScale()}};K.className="PictorialStackedSeries";K.classNames=X.classNames.concat([K.className]);var E=class extends C{_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}};E.className="SlicedChart";E.classNames=C.classNames.concat([E.className]);export{st as DefaultTheme,H as FunnelSeries,V as FunnelSlice,C as PercentChart,L as PercentSeries,K as PictorialStackedSeries,G as PieChart,U as PieSeries,X as PyramidSeries,E as SlicedChart};
|
|
2
|
+
import{a as vt}from"./VRLY2I2M.js";import{D as ft,E as q,P as at,R as _t,S as xt,c as M,ga as ct,i as T,j as v,ja as bt,k as D,l as mt,m as ht,n as dt,o as et,qa as ut,ra as lt,sa as kt}from"./E6IL4F2M.js";import{N as R,a as z,u as w}from"./JUIA2RF6.js";import{a as gt,b as tt,d as A,e as _}from"./GMSP2RYI.js";import{V as W,W as yt,g as Y,o as k}from"./ZZORY2UI.js";import"./3TTFCHAA.js";var st=class extends yt{setupDefaultRules(){super.setupDefaultRules();let e=this._root.interfaceColors,t=this.rule.bind(this);t("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:kt.new(this._root,{}),width:A,height:A}),t("PieChart").setAll({radius:tt(80),startAngle:-90,endAngle:270}),t("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),t("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),t("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),t("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),t("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),t("Slice",["pie"]).states.create("hover",{scale:1.04}),t("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),t("Tick",["pie"]).setAll({location:1}),t("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),t("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),t("FunnelSlice").setAll({interactive:!0,expandDistance:0}),t("FunnelSlice").states.create("hover",{expandDistance:.15}),t("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:_}),t("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:_,rotation:-90}),t("Label",["funnel","vertical"]).setAll({centerY:_,centerX:0}),t("Tick",["funnel"]).setAll({location:1}),t("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),t("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),t("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),t("PyramidSeries").setAll({valueIs:"area"}),t("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),t("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),t("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),t("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),t("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),t("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:_}),t("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:_,rotation:-90}),t("Label",["pyramid","vertical"]).setAll({centerY:_,centerX:0}),t("Tick",["pyramid"]).setAll({location:1}),t("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),t("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:_}),t("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:_,rotation:-90}),t("Label",["pictorial","vertical"]).setAll({centerY:_,centerX:0}),t("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),t("Tick",["pictorial"]).setAll({location:.5});{let s=t("Graphics",["pictorial","background"]);s.setAll({fillOpacity:.2}),xt(s,"fill",e,"alternativeBackground")}}};var C=class extends ut{_afterNew(){this._defaultThemes.push(st.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(e){super._processSeries(e),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};C.className="PercentChart";C.classNames=ut.classNames.concat([C.className]);var L=class extends ct{constructor(){super(...arguments),this.slicesContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})),this.labelsContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})),this.ticksContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})),this._lLabels=[],this._rLabels=[],this._hLabels=[],this.slices=this.addDisposer(this._makeSlices()),this.labels=this.addDisposer(this._makeLabels()),this.ticks=this.addDisposer(this._makeTicks())}_applyThemes(e=!1){let t=this.get("colors");return t&&t.reset(),super._applyThemes(e)}makeSlice(e){let t=this.slicesContainer.children.push(this.slices.make());return t.on("fill",()=>{this.updateLegendMarker(e)}),t.on("fillPattern",()=>{this.updateLegendMarker(e)}),t.on("stroke",()=>{this.updateLegendMarker(e)}),t._setDataItem(e),e.set("slice",t),this.slices.push(t),t}makeLabel(e){let t=this.labelsContainer.children.push(this.labels.make());return t._setDataItem(e),e.set("label",t),this.labels.push(t),t}_shouldMakeBullet(e){return e.get("value")!=null}makeTick(e){let t=this.ticksContainer.children.push(this.ticks.make());return t._setDataItem(e),e.set("tick",t),this.ticks.push(t),t}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_onDataClear(){let e=this.get("colors");e&&e.reset();let t=this.get("patterns");t&&t.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let e=0,t=0,s=0,i=1/0,a=0;k(this._dataItems,l=>{let r=l.get("valueWorking",0);e+=r,t+=Math.abs(r)}),k(this._dataItems,l=>{let r=l.get("valueWorking",0);r>s&&(s=r),r<i&&(i=r),a++;let n=r/t;t==0&&(n=0),l.setRaw("valuePercentTotal",n*100)}),this.setPrivateRaw("valueLow",i),this.setPrivateRaw("valueHigh",s),this.setPrivateRaw("valueSum",e),this.setPrivateRaw("valueAverage",e/a),this.setPrivateRaw("valueAbsoluteSum",t)}}show(e){let t=Object.create(null,{show:{get:()=>super.show}});return z(this,void 0,void 0,function*(){let s=[];s.push(t.show.call(this,e)),s.push(this._sequencedShowHide(!0,e)),yield Promise.all(s)})}hide(e){let t=Object.create(null,{hide:{get:()=>super.hide}});return z(this,void 0,void 0,function*(){let s=[];s.push(t.hide.call(this,e)),s.push(this._sequencedShowHide(!1,e)),yield Promise.all(s)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&k(this._dataItems,e=>{e.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&k(this._dataItems,e=>{this.updateLegendValue(e)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),k(this.dataItems,e=>{this._updateTick(e)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(e){if(super.processDataItem(e),e.get("fill")==null){let t=this.get("colors");t&&e.setRaw("fill",t.next())}if(e.get("fillPattern")==null){let t=this.get("patterns");t&&e.setRaw("fillPattern",t.next())}}showDataItem(e,t){let s=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){let i=[s.showDataItem.call(this,e,t)];Y(t)||(t=this.get("stateAnimationDuration",0));let a=this.get("stateAnimationEasing"),l=e.get("value"),r=e.animate({key:"valueWorking",to:l,duration:t,easing:a});r&&i.push(r.waitForStop());let n=e.get("tick");n&&i.push(n.show(t));let c=e.get("label");c&&i.push(c.show(t));let o=e.get("slice");o&&i.push(o.show(t)),o.get("active")&&o.states.applyAnimate("active"),yield Promise.all(i)})}hideDataItem(e,t){let s=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){let i=[s.hideDataItem.call(this,e,t)],a=this.states.create("hidden",{});Y(t)||(t=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let l=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),r=e.animate({key:"valueWorking",to:0,duration:t,easing:l});r&&i.push(r.waitForStop());let n=e.get("tick");n&&i.push(n.hide(t));let c=e.get("label");c&&i.push(c.hide(t));let o=e.get("slice");o.hideTooltip(),o&&i.push(o.hide(t)),yield Promise.all(i)})}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("label");t&&(this.labels.removeValue(t),t.dispose());let s=e.get("tick");s&&(this.ticks.removeValue(s),s.dispose());let i=e.get("slice");i&&(this.slices.removeValue(i),i.dispose())}hoverDataItem(e){let t=e.get("slice");t&&!t.isHidden()&&t.hover()}unhoverDataItem(e){let t=e.get("slice");t&&t.unhover()}updateLegendMarker(e){if(e){let t=e.get("slice");if(t){let s=e.get("legendDataItem");if(s){let i=s.get("markerRectangle");k(ft,a=>{t.get(a)!=null&&i.set(a,t.get(a))})}}}}_arrangeDown(e){if(e){let t=this._getNextDown();e.sort((s,i)=>s.y>i.y?1:s.y<i.y?-1:0),k(e,s=>{let i=s.label.adjustedLocalBounds(),a=i.top;s.y+a<t&&(s.y=t-a),s.label.set("y",s.y),t=s.y+i.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(e){if(e){let t=this._getNextUp();e.sort((s,i)=>s.y<i.y?1:s.y>i.y?-1:0),k(e,s=>{let i=s.label.adjustedLocalBounds(),a=i.bottom;s.y+a>t&&(s.y=t-a),s.label.set("y",s.y),t=s.y+i.top})}}_arrangeRight(e){if(e){let t=0;e.sort((s,i)=>s.y>i.y?1:s.y<i.y?-1:0),k(e,s=>{let i=s.label.adjustedLocalBounds(),a=i.left;s.y+a<t&&(s.y=t-a),s.label.set("x",s.y),t=s.y+i.right})}}_arrangeLeft(e){if(e){let t=this.labelsContainer.maxWidth();e.sort((s,i)=>s.y<i.y?1:s.y>i.y?-1:0),k(e,s=>{let i=s.label.adjustedLocalBounds(),a=i.right;s.y+a>t&&(s.y=t-a),s.label.set("x",s.y),t=s.y+i.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(e){}_dispose(){super._dispose();let e=this.chart;e&&e.series.removeValue(this)}};L.className="PercentSeries";L.classNames=ct.classNames.concat([L.className]);var G=class extends C{constructor(){super(...arguments),this._maxRadius=1}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:_,y:_})}_prepareChildren(){super._prepareChildren();let e=this.chartContainer,t=e.innerWidth(),s=e.innerHeight(),i=this.get("startAngle",0),a=this.get("endAngle",0),l=this.get("innerRadius"),r=ht(0,0,i,a,1),n=t/(r.right-r.left),c=s/(r.bottom-r.top),o={left:0,right:0,top:0,bottom:0};if(l instanceof gt){let p=l.value,g=Math.min(n,c);p=Math.max(g*p,g-Math.min(s,t))/g,o=ht(0,0,i,a,p),this.setPrivateRaw("irModifyer",p/l.value)}r=dt([r,o]);let m=this._maxRadius;this._maxRadius=Math.min(n,c);let h=w(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-h*(r.bottom+r.top)/2,dx:-h*(r.right+r.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||m!=this._maxRadius)&&this.series.each(p=>{p._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(p=>{p._markDirtyKey("innerRadius")})}radius(e){let t=w(this.get("radius",0),this._maxRadius),s=w(this.get("innerRadius",0),t);if(e){let i=this.series.indexOf(e),a=this.series.length,l=e.get("radius");return l!=null?s+w(l,t-s):s+(t-s)/a*(i+1)}return t}innerRadius(e){let t=this.radius(),s=w(this.get("innerRadius",0),t);if(s<0&&(s=t+s),e){let i=this.series.indexOf(e),a=this.series.length,l=e.get("innerRadius");return l!=null?s+w(l,t-s):s+(t-s)/a*i}return s}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};G.className="PieChart";G.classNames=C.classNames.concat([G.className]);var U=class extends L{_makeSlices(){return new M(W.new({}),()=>vt._new(this._root,{themeTags:R(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>bt._new(this._root,{themeTags:R(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:R(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t.on("scale",()=>{this._updateTick(e)}),t.on("shiftRadius",()=>{this._updateTick(e)}),t.events.on("positionchanged",()=>{this._updateTick(e)});let s=this.makeLabel(e);s.events.on("positionchanged",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{s.markDirty()})}_getNextUp(){let e=this.chart;return e?e._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let e=this.chart;return e?-e._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();let e=this.chart;if(e){if(this.isDirty("alignLabels")){let t=this.labels.template;if(this.get("alignLabels"))t.set("textType","aligned");else{let s=t.get("textType");(s==null||s=="aligned")&&t.set("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let t=this.get("startAngle",e.get("startAngle",-90)),i=this.get("endAngle",e.get("endAngle",270))-t,a=t,l=e.radius(this);this.setPrivateRaw("radius",l);let r=e.innerRadius(this)*e.getPrivate("irModifyer",1);r<0&&(r=l+r),k(this._dataItems,n=>{this.updateLegendValue(n);let c=i*n.get("valuePercentTotal")/100,o=n.get("slice");if(o){o.set("radius",l),o.set("innerRadius",r),o.set("startAngle",a),o.set("arc",c);let p=n.get("fill");o._setDefault("fill",p),o._setDefault("stroke",p);let g=n.get("fillPattern");o._setDefault("fillPattern",g)}let m=mt(a+c/2),h=n.get("label");if(h&&(h.setPrivate("radius",l),h.setPrivate("innerRadius",r),h.set("labelAngle",m),h.get("textType")=="aligned")){let p=l+h.get("radius",0),g=l*T(m);m>90&&m<=270?(!h.isHidden()&&!h.isHiding()&&this._lLabels.push({label:h,y:g}),p*=-1,p-=this.labelsContainer.get("paddingLeft",0),h.set("centerX",A),h.setPrivateRaw("left",!0)):(!h.isHidden()&&!h.isHiding()&&this._rLabels.push({label:h,y:g}),p+=this.labelsContainer.get("paddingRight",0),h.set("centerX",0),h.setPrivateRaw("left",!1)),h.set("x",p),h.set("y",l*T(m))}a+=c,this._updateTick(n)})}}}_updateTick(e){let t=e.get("tick"),s=e.get("label"),i=e.get("slice"),a=t.get("location",1);if(t&&s&&i){let l=(i.get("shiftRadius",0)+i.get("radius",0))*i.get("scale",1)*a,r=s.get("labelAngle",0),n=D(r),c=T(r),o=this.labelsContainer,m=o.get("paddingLeft",0),h=o.get("paddingRight",0),p=0,g=0;p=s.x(),g=s.y();let u=[];if(p!=0||g!=0){if(s.get("textType")=="circular"){let y=s.radius()-s.get("paddingBottom",0),x=s.get("labelAngle",0);p=y*D(x),g=y*T(x)}let d=-h;s.getPrivate("left")&&(d=m),u=[{x:i.x()+l*n,y:i.y()+l*c},{x:p+d,y:g},{x:p,y:g}]}t.set("points",u)}}_positionBullet(e){let t=e.get("sprite");if(t){let i=t.dataItem.get("slice");if(i){let a=i.get("innerRadius",0),l=i.get("radius",0),r=i.get("startAngle",0),n=i.get("arc",0),c=e.get("locationX",.5),o=e.get("locationY",.5),m=r+n*c,h=a+(l-a)*o;t.setAll({x:D(m)*h,y:T(m)*h})}}}};U.className="PieSeries";U.classNames=L.classNames.concat([U.className]);var V=class extends q{constructor(){super(...arguments),this._projectionDirty=!1,this._tlx=0,this._tly=0,this._trx=0,this._try=0,this._blx=0,this._bly=0,this._brx=0,this._bry=0,this._cprx=0,this._cplx=0,this._cpry=0,this._cply=0}_afterNew(){super._afterNew(),this.set("draw",e=>{let t=this.width(),s=this.height(),i=Math.min(t,s)/2,a=w(this.get("cornerRadiusTL",0),i),l=w(this.get("cornerRadiusTR",0),i),r=w(this.get("cornerRadiusBR",0),i),n=w(this.get("cornerRadiusBL",0),i),c=this._trx,o=this._try,m=this._tlx,h=this._tly,p=this._brx,g=this._bry,u=this._blx,d=this._bly;o==h&&(o=o-.01),g==d&&(g=g-.01);let y=et({x:m,y:h},{x:c,y:o}),x=et({x:c,y:o},{x:p,y:g}),b=et({x:p,y:g},{x:u,y:d}),f=et({x:u,y:d},{x:m,y:h});this.get("orientation")=="horizontal"?(a=Math.min(a,Math.abs(h-o)/2),l=Math.min(l,Math.abs(h-o)/2),r=Math.min(r,Math.abs(d-g)/2),n=Math.min(n,Math.abs(d-g)/2)):(a=Math.min(a,Math.abs(m-c)/2),l=Math.min(l,Math.abs(m-c)/2),r=Math.min(r,Math.abs(u-p)/2),n=Math.min(n,Math.abs(u-p)/2));let $=m-a*v((y-f)/2)*D(f),P=h-a*v((y-f)/2)*T(f),F=m-a*v((f-y)/2)*D(y),Z=h-a*v((f-y)/2)*T(y),N=c-l*v((x-y)/2)*D(y),nt=o-l*v((x-y)/2)*T(y),B=c-l*v((y-x)/2)*D(x),O=o-l*v((y-x)/2)*T(x),J=p-r*v((b-x)/2)*D(x),j=g-r*v((b-x)/2)*T(x),Q=p-r*v((x-b)/2)*D(b),I=g-r*v((x-b)/2)*T(b),pt=u-n*v((f-b)/2)*D(b),it=d-n*v((f-b)/2)*T(b),ot=u-n*v((b-f)/2)*D(f),Dt=d-n*v((b-f)/2)*T(f);e.moveTo(F,Z),e.lineTo(N,nt),e.arcTo(c,o,B,O,l),e.quadraticCurveTo(this._cprx,this._cpry,J,j),e.arcTo(p,g,Q,I,r),e.lineTo(pt,it),e.arcTo(u,d,ot,Dt,n),e.quadraticCurveTo(this._cplx,this._cply,$,P),e.arcTo(m,h,F,Z,a)})}getPoint(e,t){let s=this.width(),i=this.height(),a=this.get("topWidth",0),l=this.get("bottomWidth",0);if(this.get("orientation")=="vertical"){let r=-a/2,n=a/2,c=l/2,o=-l/2,m=r+(o-r)*t,h=n+(c-n)*t;return{x:m+(h-m)*e,y:i*t}}else{let r=-a/2,n=a/2,c=l/2,o=-l/2,m=r+(o-r)*e,h=n+(c-n)*e;return{x:s*e,y:m+(h-m)*t}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")){let e=this.width(),t=this.height(),s=this.get("topWidth",0),i=this.get("bottomWidth",0);this._clear=!0;let a=this.get("expandDistance",0);this.get("orientation")=="vertical"?(this._tlx=-s/2,this._tly=0,this._trx=s/2,this._try=0,this._brx=i/2,this._bry=t,this._blx=-i/2,this._bly=t,this._cprx=this._trx+(this._brx-this._trx)/2+a*t,this._cpry=this._try+.5*t,this._cplx=this._tlx+(this._blx-this._tlx)/2-a*t,this._cply=this._tly+.5*t):(this._tly=s/2,this._tlx=0,this._try=-s/2,this._trx=0,this._bry=-i/2,this._brx=e,this._bly=i/2,this._blx=e,this._cpry=this._try+(this._bry-this._try)/2-a*e,this._cprx=this._trx+.5*e,this._cply=this._tly+(this._bly-this._tly)/2+a*e,this._cplx=this._tlx+.5*e)}super._changed()}};V.className="FunnelSlice";V.classNames=q.classNames.concat([V.className]);var H=class extends L{constructor(){super(...arguments),this._tag="funnel",this.links=this.addDisposer(this._makeLinks()),this._total=0,this._count=0,this._nextCoord=0,this._opposite=!1}_makeSlices(){return new M(W.new({}),()=>V._new(this._root,{themeTags:R(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>_t._new(this._root,{themeTags:R(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:R(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template]))}_makeLinks(){return new M(W.new({}),()=>V._new(this._root,{themeTags:R(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template]))}makeLink(e){let t=this.slicesContainer.children.push(this.links.make());return t._setDataItem(e),e.set("link",t),this.links.push(t),t}_afterNew(){super._afterNew();let e=this.slicesContainer;e.setAll({isMeasured:!0,position:"relative",width:tt(100),height:tt(100)}),e.onPrivate("width",()=>{this.markDirtySize()}),e.onPrivate("height",()=>{this.markDirtySize()}),this.get("orientation")=="vertical"?this.set("layout",this._root.horizontalLayout):this.set("layout",this._root.verticalLayout)}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t._setDataItem(e),e.set("slice",t),this.makeLink(e);let s=this.makeLabel(e);s.on("x",()=>{this._updateTick(e)}),s.on("y",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{s.markDirty()}),t.events.on("boundschanged",()=>{let i=t.dataItem;i&&this._updateTick(i)})}_updateChildren(){this._opposite=!1,this.children.indexOf(this.labelsContainer)==0&&(this._opposite=!0);let e=0,t=0;if(k(this.dataItems,s=>{let i=s.get("value");Y(i)&&(t++,i>0?e+=Math.abs(s.get("valueWorking",i)/i):this.get("ignoreZeroValues",!1)||s.isHidden()?t--:e+=1)}),this._total=1/t*e,this._count=t,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty)){let s=this.slicesContainer,i;this.get("orientation")=="vertical"?i=s.innerHeight():i=s.innerWidth(),this._nextCoord=this.get("startLocation",0)*i,this.markDirtyBounds();let a=0;k(this._dataItems,l=>{this.updateLegendValue(l),l.set("index",a),a++;let r=l.get("slice"),n=l.get("tick"),c=l.get("label"),o=l.get("link"),m=l.get("fill"),h=l.get("fillPattern");r._setDefault("fill",m),r._setDefault("stroke",m),r._setDefault("fillPattern",h),o._setDefault("fill",m),o._setDefault("stroke",m);let p=l.get("value");Y(p)&&(p==0&&this.get("ignoreZeroValues")?(r.setPrivate("visible",!1),n.setPrivate("visible",!1),c.setPrivate("visible",!1)):(r.setPrivate("visible",!0),n.setPrivate("visible",!0),c.setPrivate("visible",!0),this.decorateSlice(l),this.isLast(l)?o.setPrivate("visible",!1):l.isHidden()||o.setPrivate("visible",!0)))})}super._updateChildren()}_fixLayout(){let e=this.get("orientation"),t=this.labelsContainer,s=this.labels.template;this.get("alignLabels")?(t.set("position","relative"),t.setAll({isMeasured:!0}),e=="vertical"?(this.set("layout",this._root.horizontalLayout),s.setAll({centerX:A,x:A})):(this.set("layout",this._root.verticalLayout),s.setAll({centerX:0,x:0}))):(t.setAll({isMeasured:!1,position:"absolute"}),e=="vertical"?(t.setAll({x:_}),s.setAll({centerX:_,x:0})):(t.setAll({y:_}),s.setAll({centerX:_,y:0}))),this.markDirtySize()}getNextValue(e){let t=e.get("index"),s=e.get("valueWorking",0);if(t<this.dataItems.length-1){let i=this.dataItems[t+1];if(s=i.get("valueWorking",0),i.isHidden()||i.get("value")==0&&this.get("ignoreZeroValues"))return this.getNextValue(i)}return s}isLast(e){let t=e.get("index");if(t==this.dataItems.length-1)return!0;for(let s=t+1;s<this.dataItems.length;s++)if(!this.dataItems[s].isHidden())return!1;return!0}decorateSlice(e){let t=this.get("orientation"),s=e.get("slice"),i=e.get("label"),a=e.get("link"),l=this.slicesContainer,r=l.innerWidth(),n=l.innerHeight(),c=r;t=="horizontal"&&(c=n);let o=this.getNextValue(e),m=e.get("value",0),h=Math.abs(e.get("valueWorking",m)),p=this.get("bottomRatio",0),g=this.getPrivate("valueHigh",0),u=1;m!=0?u=h/Math.abs(m):e.isHidden()&&(u=1e-6),this._nextCoord==1/0&&(this._nextCoord=0);let d=h/g*c,y=(h-(h-o)*p)/g*c;s.setAll({topWidth:d,bottomWidth:y,orientation:t}),a.setAll({topWidth:y,bottomWidth:(h-(h-o))/g*c,orientation:t});let x=this.get("startLocation",0),b=this.get("endLocation",1);if(t=="vertical"){let f=a.height()*u;n=n*(b-x)+f,s.set("y",this._nextCoord);let $=Math.min(1e5,Math.max(0,n/this._count*u/this._total-f));s.setAll({height:$,x:r/2});let P=this._nextCoord+$/2;i.set("y",P),this._nextCoord+=$+f,a.setAll({y:this._nextCoord-f,x:r/2})}else{let f=a.width()*u;r=r*(b-x)+f,s.set("x",this._nextCoord);let $=Math.min(1e5,Math.max(0,r/this._count*u/this._total-f));s.setAll({width:$,y:n/2});let P=this._nextCoord+$/2;i.set("x",P),this._nextCoord+=$+f,a.setAll({x:this._nextCoord-f,y:n/2})}}hideDataItem(e,t){let s=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").hide(t),s.hideDataItem.call(this,e,t)})}showDataItem(e,t){let s=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").show(t),s.showDataItem.call(this,e,t)})}_updateTick(e){if(this.get("alignLabels")){let t=e.get("tick"),s=e.get("label"),i=e.get("slice");if(t&&i&&s){let a=this.labelsContainer,l=this.slicesContainer,r=t.get("location",.5),n=a.width(),c=a.height(),o=a.get("paddingLeft",0),m=a.get("paddingRight",0),h=a.get("paddingTop",0),p=a.get("paddingBottom",0),g={x:0,y:0},u={x:0,y:0},d={x:0,y:0};this._opposite&&(r=1-r),this.get("orientation")=="vertical"?(g=i.getPoint(r,.5),g.x+=i.x()+l.x(),g.y+=i.y()+l.y(),this._opposite?(u.x=n,u.y=s.y(),d.x=n-o,d.y=u.y):(u.x=l.x()+l.width(),u.y=s.y(),d.x=u.x+n-s.width()-m,d.y=u.y)):(g=i.getPoint(.5,r),g.x+=i.x()+l.x(),g.y+=i.y()+l.y(),this._opposite?(u.y=c,u.x=s.x(),d.y=c-h,d.x=u.x):(u.y=l.y()+l.height(),u.x=s.x(),d.y=u.y+c-s.height()-p,d.x=u.x)),t.set("points",[g,u,d])}}}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("link");t&&(this.links.removeValue(t),t.dispose())}_positionBullet(e){let t=e.get("sprite");if(t){let i=t.dataItem.get("slice");if(i){let a=i.width(),l=i.height(),r=e.get("locationX",.5),n=e.get("locationY",.5),c=0,o=0;this.get("orientation")=="horizontal"?o=l/2:c=a/2,t.setAll({x:i.x()+a*r-c,y:i.y()-o+l*n})}}}};H.className="FunnelSeries";H.classNames=L.classNames.concat([H.className]);var X=class extends H{constructor(){super(...arguments),this._tag="pyramid"}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0}decorateSlice(e){let t=this.get("orientation"),s=this.slicesContainer,i=e.get("slice"),a=e.get("label"),l=e.get("link"),r=this.get("valueIs","area"),n=this.getPrivate("valueAbsoluteSum",0);if(n==0)return;let c=this.get("startLocation",0),o=this.get("endLocation",1),m=this.get("topWidth",0),h=this.get("bottomWidth",A),p=Math.abs(e.get("valueWorking",0)),g=e.get("value",0),u,d,y=s.innerHeight(),x=s.innerWidth(),b=l.width(),f=l.height();t=="horizontal"&&([x,y]=[y,x],[b,f]=[f,b]);let $=x/2,P=1;g!=0?P=p/Math.abs(g):e.isHidden()&&(P=1e-6),f*=P,y=y*(o-c)-f*(this._count*this._total-1);let F=w(m,x);Y(this._nextSize)||(this._nextSize=F);let Z=w(h,x),N=this._nextSize,nt=Math.atan2(y,F-Z),B=Math.tan(Math.PI/2-nt);if(B==0&&(B=1e-8),r=="area"){let it=(F+Z)/2*y*p/n,ot=Math.abs(N*N-2*it*B);u=(N-Math.sqrt(ot))/B,u>0?d=(2*it-u*N)/u:d=N}else u=y*p/n,d=N-u*B;let O=this._nextCoord+u/2,J=$,j=this._nextCoord,Q=$,I=j+u;t=="vertical"?(a.set("y",O),a.get("opacity")>0&&this._rLabels.push({label:a,y:O}),i.set("height",u)):(a.set("x",O),a.get("opacity")>0&&this._hLabels.push({label:a,y:O}),[J,j]=[j,J],[Q,I]=[I,Q],i.set("width",u)),i.setAll({orientation:t,bottomWidth:d,topWidth:N,x:J,y:j}),l.setAll({orientation:t,x:Q,y:I,topWidth:d,bottomWidth:d}),this._nextSize=d,this._nextCoord+=u+f}};X.className="PyramidSeries";X.classNames=H.classNames.concat([X.className]);var K=class extends X{constructor(){super(...arguments),this._tag="pictorial",this.seriesMask=q.new(this._root,{position:"absolute",x:_,y:_,centerX:_,centerY:_}),this.seriesGraphics=this.slicesContainer.children.push(q.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:_,y:_,centerX:_,centerY:_}))}_afterNew(){super._afterNew(),this.set("topWidth",A),this.set("bottomWidth",A),this.set("valueIs","height"),this.slicesContainer.set("mask",this.seriesMask)}_updateScale(){let e=this.slicesContainer,t=e.innerWidth(),s=e.innerHeight(),i=this.seriesMask,a=this.seriesGraphics,l=i.get("scale",1),r=i.localBounds(),n=r.right-r.left,c=r.bottom-r.top;this.get("orientation")=="horizontal"?l=t/n:l=s/c,l!=1/0&&l!=NaN&&(i.set("scale",l),i.set("x",t/2),i.set("y",s/2),a.set("scale",l),a.set("x",t/2),a.set("y",s/2))}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){let e=this.get("svgPath");this.seriesMask.set("svgPath",e),this.seriesGraphics.set("svgPath",e)}this._updateScale()}};K.className="PictorialStackedSeries";K.classNames=X.classNames.concat([K.className]);var E=class extends C{_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}};E.className="SlicedChart";E.classNames=C.classNames.concat([E.className]);export{st as DefaultTheme,H as FunnelSeries,V as FunnelSlice,C as PercentChart,L as PercentSeries,K as PictorialStackedSeries,G as PieChart,U as PieSeries,X as PyramidSeries,E as SlicedChart};
|