@arcgis/map-components 5.0.0-next.41 → 5.0.0-next.42
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/{I6BDZLY3.js → 26AHC2O2.js} +2 -2
- package/dist/cdn/{QLDQTKSK.js → 2GBU6RER.js} +2 -2
- package/dist/cdn/{FHS4RNJ3.js → 2ILPQ67E.js} +2 -2
- package/dist/cdn/{ML5PUVQE.js → 2MQRYPJ7.js} +2 -2
- package/dist/cdn/{QWRL4BPF.js → 2PBPGYQT.js} +2 -2
- package/dist/cdn/{76QYHMOE.js → 2TWHOD2A.js} +2 -2
- package/dist/cdn/{2EPQ3VSF.js → 2Z6QMMLC.js} +2 -2
- package/dist/cdn/{KQ2VYDWM.js → 3CISAILB.js} +2 -2
- package/dist/cdn/{KJZBACU6.js → 3GPIZCDK.js} +2 -2
- package/dist/cdn/{SC4KG3IX.js → 3RHK6GTA.js} +2 -2
- package/dist/cdn/{5ETCICWT.js → 3XC5LLXH.js} +2 -2
- package/dist/cdn/{IA45HET4.js → 3XMBO5YY.js} +2 -2
- package/dist/cdn/{OJVYQU32.js → 3ZHHI45D.js} +1 -1
- package/dist/cdn/{4NZFVGUT.js → 437E7NEA.js} +2 -2
- package/dist/cdn/{LCWKGB3D.js → 44SEE53C.js} +2 -2
- package/dist/cdn/{HQWZMRMV.js → 45BXB5A6.js} +1 -1
- package/dist/cdn/{JGSJHWZK.js → 46KCKCOD.js} +1 -1
- package/dist/cdn/{BRV22BZA.js → 4CQX3PLJ.js} +2 -2
- package/dist/cdn/{6KVAXBYM.js → 4KZLTJJS.js} +2 -2
- package/dist/cdn/{ZTIIO2ZR.js → 4LPAQNXP.js} +2 -2
- package/dist/cdn/{GFN7ZXX7.js → 4MACVYVC.js} +2 -2
- package/dist/cdn/{O56NKDLP.js → 4OFHSL6U.js} +2 -2
- package/dist/cdn/{N4TYVFGG.js → 4RHDNXY4.js} +2 -2
- package/dist/cdn/{BFOEULIU.js → 4T7FDEA3.js} +2 -2
- package/dist/cdn/{WM4ULAXY.js → 5CEMGETK.js} +2 -2
- package/dist/cdn/{SIB3V3XX.js → 5FTT3XDM.js} +2 -2
- package/dist/cdn/{SIERTKJJ.js → 5KBC4PPX.js} +2 -2
- package/dist/cdn/{QMFIKLNT.js → 5NXKMET3.js} +2 -2
- package/dist/cdn/{LOUMHZIP.js → 5OP3S2YF.js} +2 -2
- package/dist/cdn/{DKOI4MWB.js → 5Q3LGBS5.js} +2 -2
- package/dist/cdn/{NSG3IIH4.js → 5W7XVVDR.js} +1 -1
- package/dist/cdn/{BQOEVFWW.js → 5ZT4TQ3T.js} +2 -2
- package/dist/cdn/{4K5ZV6FY.js → 6APP6V3L.js} +2 -2
- package/dist/cdn/{BNDUABH2.js → 6HJ2NZNY.js} +2 -2
- package/dist/cdn/{SS4SADM4.js → 6IEVTK2B.js} +2 -2
- package/dist/cdn/{U2D2LAR3.js → 6NN57V7S.js} +2 -2
- package/dist/cdn/{JM7X2E73.js → 6SSRETHN.js} +2 -2
- package/dist/cdn/{AKHH7VF2.js → 6UDLWZO2.js} +2 -2
- package/dist/cdn/{W56LNTJA.js → 6YAASOET.js} +2 -2
- package/dist/cdn/{W2R3Y4QV.js → 6ZGQIMMH.js} +2 -2
- package/dist/cdn/{HNJ6PUKO.js → 76Q3ONI6.js} +2 -2
- package/dist/cdn/{4HVUYPGC.js → 7I6XS4TQ.js} +2 -2
- package/dist/cdn/{MYUABO2A.js → A4I4QSH2.js} +2 -2
- package/dist/cdn/{D3IKNDL2.js → ADGLJZIX.js} +2 -2
- package/dist/cdn/{UM4GBADV.js → AFJY54O3.js} +2 -2
- package/dist/cdn/{U4HCV6GB.js → AHY5XPKW.js} +2 -2
- package/dist/cdn/{CEEALJMO.js → AOUI523S.js} +2 -2
- package/dist/cdn/{DI3HCHWZ.js → AVEHWX6I.js} +2 -2
- package/dist/cdn/{M5QHOE7T.js → B5BYUALU.js} +2 -2
- package/dist/cdn/{JFTZP5L6.js → B6VRNPR2.js} +2 -2
- package/dist/cdn/{KJG7MSCA.js → BD4QOQZE.js} +2 -2
- package/dist/cdn/{Z2RRTZI6.js → BFSCFSIM.js} +2 -2
- package/dist/cdn/{WHOCSZX6.js → BG3JTK7N.js} +2 -2
- package/dist/cdn/{36NCBDVS.js → BI57R3B2.js} +2 -2
- package/dist/cdn/{EOIHWAG7.js → BJYEKGN3.js} +2 -2
- package/dist/cdn/{FICBFUWH.js → BMHZ6TWW.js} +2 -2
- package/dist/cdn/{GG3YAXJF.js → BQYS7G2M.js} +2 -2
- package/dist/cdn/{7CW2NN7A.js → BYSL4JOQ.js} +2 -2
- package/dist/cdn/{XGIPG3LO.js → CAZIKY36.js} +2 -2
- package/dist/cdn/{TAW4OIUQ.js → CNZZZ66N.js} +2 -2
- package/dist/cdn/{SULS6DR3.js → CQ5C4ELA.js} +2 -2
- package/dist/cdn/{CDFUQFJM.js → CV5QXH2T.js} +2 -2
- package/dist/cdn/{RP4LXL6Q.js → CY6XYBBM.js} +2 -2
- package/dist/cdn/{3PBU27YM.js → D4DQXZBW.js} +2 -2
- package/dist/cdn/{G65WHT2A.js → D7XFDQLP.js} +2 -2
- package/dist/cdn/{6XFNXQ2I.js → DBIQ26ZR.js} +2 -2
- package/dist/cdn/{AUTYYQMM.js → DGOAY54B.js} +2 -2
- package/dist/cdn/{KXZ65O4C.js → DJSHEU4G.js} +2 -2
- package/dist/cdn/{4OTOS4UL.js → DN2MJK3M.js} +2 -2
- package/dist/cdn/{VOTLB32D.js → DQJNHWBD.js} +2 -2
- package/dist/cdn/{C4EGV56K.js → DVLFHXKL.js} +2 -2
- package/dist/cdn/{2QGS3T43.js → DVRBN7DE.js} +2 -2
- package/dist/cdn/{XSIB2XPF.js → DYAY77PO.js} +1 -1
- package/dist/cdn/{J2DGIKUF.js → E3ZK7TDE.js} +2 -2
- package/dist/cdn/{6QHEKOI2.js → E4NHF63K.js} +2 -2
- package/dist/cdn/{DXMGDFRQ.js → E5UVTEYA.js} +2 -2
- package/dist/cdn/{ORZ2A2TS.js → ECXGQUM3.js} +2 -2
- package/dist/cdn/{M36MFHPX.js → EDGCFF35.js} +2 -2
- package/dist/cdn/{XXCYAHHF.js → EFDBCIEV.js} +2 -2
- package/dist/cdn/{FPMLOSMW.js → EFRYTIW3.js} +2 -2
- package/dist/cdn/{YFWDHNCG.js → EHHF4YYL.js} +2 -2
- package/dist/cdn/{MLMKQ2JA.js → EHPZCNYR.js} +2 -2
- package/dist/cdn/{CE3VXP7J.js → EK62S644.js} +2 -2
- package/dist/cdn/{7DEGVW4R.js → ELLLP244.js} +2 -2
- package/dist/cdn/{MEUUT2BK.js → EXYL4YNF.js} +3 -3
- package/dist/cdn/{MFUBEWZC.js → FCYPGVH7.js} +2 -2
- package/dist/cdn/{7AU2JUOY.js → FEVFQBPL.js} +2 -2
- package/dist/cdn/{BEEMIQG2.js → FHP73FEY.js} +2 -2
- package/dist/cdn/{RU5ZSKQZ.js → FL2ZAN56.js} +2 -2
- package/dist/cdn/{QIBFO4E3.js → FVFTTJG4.js} +2 -2
- package/dist/cdn/{LW4DZ7TF.js → G7KJ7D5A.js} +2 -2
- package/dist/cdn/{U74BQYQO.js → GCRBNUCG.js} +2 -2
- package/dist/cdn/{7QBOFNTW.js → GGRGVCZ7.js} +2 -2
- package/dist/cdn/{VZ3KHT3N.js → GHDEQERX.js} +2 -2
- package/dist/cdn/{KJUIAYM7.js → GPO5C4BV.js} +2 -2
- package/dist/cdn/{RYTZDIBM.js → H2LK6MDC.js} +2 -2
- package/dist/cdn/{FKBEGUTR.js → HEHKE6UM.js} +2 -2
- package/dist/cdn/{GYGR2VEY.js → HEZYPQZV.js} +2 -2
- package/dist/cdn/{X2QM22E5.js → HSVI4BWE.js} +2 -2
- package/dist/cdn/IDMM442T.js +4 -0
- package/dist/cdn/{65723ISV.js → IIGKWJ7S.js} +2 -2
- package/dist/cdn/{B35XRYXW.js → INOZNR4P.js} +2 -2
- package/dist/cdn/{IMS7K7WU.js → IQS4NP5Z.js} +2 -2
- package/dist/cdn/{B2UJKVE5.js → ITRBSG2R.js} +2 -2
- package/dist/cdn/{CX5NIAHV.js → IW4LGHXW.js} +2 -2
- package/dist/cdn/{CQJQKVXI.js → IYMOKALO.js} +2 -2
- package/dist/cdn/{HFYPYXFX.js → J27HDYLO.js} +2 -2
- package/dist/cdn/{UVVLKVLW.js → J4VC7PFX.js} +2 -2
- package/dist/cdn/{V4VKHZ4S.js → JEFM43GG.js} +2 -2
- package/dist/cdn/{2ATNOSGJ.js → JIFNA3O2.js} +2 -2
- package/dist/cdn/{27BJ66TA.js → JJW6FPHK.js} +2 -2
- package/dist/cdn/{R4DFZKCN.js → JTZRZHJJ.js} +2 -2
- package/dist/cdn/{N675YXCY.js → KGKEHE75.js} +2 -2
- package/dist/cdn/{Y4YCXKLY.js → KP2VXBZX.js} +2 -2
- package/dist/cdn/{P5AVVVAA.js → KRV2USFI.js} +2 -2
- package/dist/cdn/{YMSQMDKG.js → KU345RFS.js} +2 -2
- package/dist/cdn/{UIVVHGAI.js → L3XIAKHE.js} +2 -2
- package/dist/cdn/{P3BBDZ5D.js → L54ULRBO.js} +2 -2
- package/dist/cdn/{3BOPWJ2J.js → L6EPNSRC.js} +2 -2
- package/dist/cdn/{ZC57EFU5.js → LLAAPKSJ.js} +2 -2
- package/dist/cdn/{BYPR542V.js → LMD7QABD.js} +2 -2
- package/dist/cdn/{CNTSSEZ5.js → M3J6TN6V.js} +2 -2
- package/dist/cdn/{LVJL6JHE.js → MD4RC6UO.js} +2 -2
- package/dist/cdn/{6S3MGILP.js → MLSRYW22.js} +2 -2
- package/dist/cdn/MNHUWJPQ.js +4 -0
- package/dist/cdn/{2N4REIZO.js → MOVRO726.js} +2 -2
- package/dist/cdn/{JXDRTYMV.js → N45B7VZR.js} +2 -2
- package/dist/cdn/{XOKJ7JSQ.js → N5HVW72C.js} +2 -2
- package/dist/cdn/{6OTOVHTQ.js → N6WGN3RH.js} +1 -1
- package/dist/cdn/{PNMVL2DL.js → N7K5TOAX.js} +2 -2
- package/dist/cdn/{4PXFIFNH.js → NANEJQWS.js} +2 -2
- package/dist/cdn/{LAL5TI52.js → NH4WWDD6.js} +2 -2
- package/dist/cdn/{2MO5L3AP.js → NHVJLZVD.js} +2 -2
- package/dist/cdn/{4V5KOC23.js → NJTTUKWX.js} +2 -2
- package/dist/cdn/{B2TQ5S7G.js → NQSUUQJQ.js} +1 -1
- package/dist/cdn/{7ZGVUYJP.js → OMKZBE4M.js} +2 -2
- package/dist/cdn/{C75F4UKL.js → OPGQ3L32.js} +2 -2
- package/dist/cdn/{7YS5NN3Z.js → OQARHWHE.js} +2 -2
- package/dist/cdn/{6HO5HTZW.js → ORD7LUG6.js} +2 -2
- package/dist/cdn/{WWIM44K7.js → OYJA7CVC.js} +2 -2
- package/dist/cdn/{IKL7HZUS.js → P4PB7BMM.js} +1 -1
- package/dist/cdn/{L5O322WB.js → PD3YYS4P.js} +2 -2
- package/dist/cdn/{WMJIQCDT.js → PE7KMZEL.js} +2 -2
- package/dist/cdn/{ESH47TNJ.js → PKO4NC2F.js} +2 -2
- package/dist/cdn/{YCUWNH46.js → PMS2HSPL.js} +2 -2
- package/dist/cdn/{ECWXWADJ.js → PR3SEAO3.js} +2 -2
- package/dist/cdn/{TVK2SOVJ.js → PZKGXDMH.js} +2 -2
- package/dist/cdn/{7VG54G2I.js → Q4OL3MEK.js} +2 -2
- package/dist/cdn/{KR2SZSB2.js → QAGS4LWK.js} +2 -2
- package/dist/cdn/{AKHIL3Z2.js → QDD72ULE.js} +2 -2
- package/dist/cdn/{MGODE22Y.js → QL22DAF3.js} +2 -2
- package/dist/cdn/{Y3POR6VW.js → QOZJIIQV.js} +2 -2
- package/dist/cdn/{WGK2GBCN.js → R44NES4T.js} +2 -2
- package/dist/cdn/{ISQDT4EK.js → RCWUF6S4.js} +1 -1
- package/dist/cdn/{44TNCDUD.js → RHZQM6A7.js} +2 -2
- package/dist/cdn/{KDBOOQMF.js → RKN2TC6V.js} +2 -2
- package/dist/cdn/{RBBW7J6D.js → RMLTRD2N.js} +2 -2
- package/dist/cdn/{NXDWCQBS.js → S3PC3JER.js} +2 -2
- package/dist/cdn/{UZXHMICC.js → SEZYH7ML.js} +1 -1
- package/dist/cdn/{O6NSEZ4G.js → SF7H6CC6.js} +2 -2
- package/dist/cdn/{GCQQ4OHJ.js → SJDGMPA5.js} +2 -2
- package/dist/cdn/{NPAMGVZO.js → SKLZL553.js} +2 -2
- package/dist/cdn/{B6WEOEJ7.js → SKTK5FAR.js} +2 -2
- package/dist/cdn/{G32BBVEL.js → SOWZBXEP.js} +2 -2
- package/dist/cdn/{VLV5NB6Q.js → SRKOBPVJ.js} +2 -2
- package/dist/cdn/{WDKMOB34.js → SUYINKJG.js} +2 -2
- package/dist/cdn/{55WJNUOO.js → SWUABRSU.js} +2 -2
- package/dist/cdn/{S2URC4FK.js → SX72KDE5.js} +2 -2
- package/dist/cdn/{Q2M2BOUO.js → T4KQMTU7.js} +2 -2
- package/dist/cdn/{XOBO7HQK.js → TAV3RSBJ.js} +2 -2
- package/dist/cdn/{UEI2JLS3.js → TGA6P5QO.js} +1 -1
- package/dist/cdn/{IEJ4MUR4.js → TH7TMHYX.js} +2 -2
- package/dist/cdn/{X6NCL6RN.js → TJBUEBH6.js} +2 -2
- package/dist/cdn/{77A53SLN.js → TL6HI6RS.js} +2 -2
- package/dist/cdn/{7F3UYCBA.js → TMN7O6FJ.js} +2 -2
- package/dist/cdn/{ZYBHQKIW.js → TWB5UE56.js} +2 -2
- package/dist/cdn/{FSQJCQIW.js → TXW5C7FV.js} +2 -2
- package/dist/cdn/{BZEOPRHO.js → U2YLERNW.js} +2 -2
- package/dist/cdn/{IM47GM3F.js → UDSHZ4NK.js} +2 -2
- package/dist/cdn/{36G4AAMR.js → UFE2CTJD.js} +1 -1
- package/dist/cdn/{KOCSGOYC.js → UG4E2Y7P.js} +2 -2
- package/dist/cdn/{O5RTTELK.js → UGACUYY4.js} +1 -1
- package/dist/cdn/{BR2ZFE2K.js → UK6V3N2R.js} +2 -2
- package/dist/cdn/{7LIX3DZB.js → UKATBWRY.js} +2 -2
- package/dist/cdn/{UL2LRBDV.js → UQQL7D47.js} +2 -2
- package/dist/cdn/{DN2W7PG3.js → V24YNO43.js} +2 -2
- package/dist/cdn/{NWLH6GKK.js → VAUPQJ24.js} +2 -2
- package/dist/cdn/{NIY3ECMQ.js → VBQVICHI.js} +2 -2
- package/dist/cdn/{E6KYIV4R.js → VHQBX2CA.js} +2 -2
- package/dist/cdn/{NG6XVYKH.js → VIWRO3O7.js} +2 -2
- package/dist/cdn/{C74NTODX.js → VJUPFUYX.js} +2 -2
- package/dist/cdn/{3K543LX3.js → VULZ3GVO.js} +2 -2
- package/dist/cdn/{MT5D43EK.js → VUPAZ7FL.js} +2 -2
- package/dist/cdn/{VWFD4AQB.js → W2UVOZ3H.js} +2 -2
- package/dist/cdn/{5W4YKHN2.js → WCBGBBR4.js} +2 -2
- package/dist/cdn/{D2P3KKCI.js → WE5URTYS.js} +2 -2
- package/dist/cdn/{7Q7SCK5J.js → WEUQ6XDA.js} +2 -2
- package/dist/cdn/{LKHMTVWS.js → WHW2YMIZ.js} +2 -2
- package/dist/cdn/{LD6Y5M5I.js → WQCWKDXR.js} +2 -2
- package/dist/cdn/{MUXRCCE5.js → WTQ2766V.js} +2 -2
- package/dist/cdn/{QNWCGXP3.js → WWTVT4BW.js} +2 -2
- package/dist/cdn/{7NUXNMSZ.js → X3KXNIAK.js} +2 -2
- package/dist/cdn/{4AOPO22C.js → X6J2XYNW.js} +2 -2
- package/dist/cdn/{X3PY46WQ.js → X6NBUB7T.js} +2 -2
- package/dist/cdn/{5PDMDCX6.js → X72OYGLZ.js} +2 -2
- package/dist/cdn/{DITKFKLL.js → XARPZTKD.js} +2 -2
- package/dist/cdn/{5QAOPJ6I.js → XHD5C33K.js} +2 -2
- package/dist/cdn/{MKLVYKTY.js → XJGCAD24.js} +2 -2
- package/dist/cdn/{CV4CIC5Y.js → XMVEZY6F.js} +1 -1
- package/dist/cdn/{2CEDNMCE.js → XNEKHNCW.js} +2 -2
- package/dist/cdn/{K2SUWIJH.js → XQSYK7VD.js} +2 -2
- package/dist/cdn/{MW4V5NHK.js → XRTHTHLN.js} +1 -1
- package/dist/cdn/{ES5V3NUU.js → XY6K5AAY.js} +2 -2
- package/dist/cdn/XZSFGWD2.js +4 -0
- package/dist/cdn/{PIAO5HSJ.js → YIQYFEGK.js} +2 -2
- package/dist/cdn/{QGR4IZAG.js → YMI3HQT6.js} +2 -2
- package/dist/cdn/{F5ZRZAAE.js → YNFFKZOP.js} +2 -2
- package/dist/cdn/{KXMJ3HB5.js → YW2ZTN2B.js} +2 -2
- package/dist/cdn/{VZPKTTOO.js → ZCI6GPV5.js} +2 -2
- package/dist/cdn/{WOP7KEWZ.js → ZISA556T.js} +2 -2
- package/dist/cdn/{WXXO2XA6.js → ZQZOPER3.js} +2 -2
- package/dist/cdn/{6KW2QNWL.js → ZUCXXPW2.js} +2 -2
- package/dist/cdn/{H4PK7ZJP.js → ZUVQ4I5R.js} +2 -2
- package/dist/cdn/{T4UJNFRO.js → ZXUWT2XA.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/action-utils.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/createCloseEvent.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/feature-utils.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/handle.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/layer-list.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/screenLocation.js +1 -1
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +1 -1
- package/dist/chunks/useHandles.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
- package/dist/components/arcgis-feature-content/customElement.js +1 -1
- package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +1 -1
- package/dist/components/arcgis-feature-fields/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exported-link/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-spinner/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-result-feature-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +3 -3
- package/dist/cdn/NTDTIYY5.js +0 -4
- package/dist/cdn/PIQ2CN2Y.js +0 -4
- package/dist/cdn/VBN5CO4P.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import c from"./
|
|
3
|
+
v5.0.0-next.42 */
|
|
4
|
+
import c from"./UGACUYY4.js";import{b as d}from"./TGA6P5QO.js";import{J as f,K as i,L as v,M as g,P as $,a as b,b as a}from"./3ZHHI45D.js";import"./N6WGN3RH.js";export default $arcgis.t(([{a:m,b:w,d:u,g:y,h:p}])=>{var z=b`.arcgis-legend__layer-table{display:flex;flex-flow:column;margin-bottom:var(--calcite-spacing-md);width:100%}.arcgis-legend__layer-table--size-ramp{display:table}.arcgis-legend__layer-table--size-ramp .arcgis-legend__layer-cell{display:table-cell}.arcgis-legend__layer-caption{display:table-caption;padding:var(--calcite-spacing-sm) 0;word-break:break-word}.arcgis-legend__layer-body{margin-left:var(--calcite-spacing-sm)}:dir(rtl) .arcgis-legend__layer-body{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}.arcgis-legend__layer-row{display:flex}.arcgis-legend__layer-table--size-ramp .arcgis-legend__layer-row{display:table-row}.arcgis-legend__layer-cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word;display:flex;align-items:center}.arcgis-legend__layer-cell--info{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.arcgis-legend__imagery-layer-image--stretched{display:block;margin-bottom:-2px}.arcgis-legend__imagery-layer-info--stretched{padding:0 2px;vertical-align:top}.arcgis-legend__layer-cell--symbols{min-width:10px;text-align:center}.arcgis-legend__symbol{display:flex;justify-content:center}`,s={layerTable:"arcgis-legend__layer-table",layerTableSizeRamp:"arcgis-legend__layer-table--size-ramp",layerCaption:"arcgis-legend__layer-caption",layerBody:"arcgis-legend__layer-body",layerRow:"arcgis-legend__layer-row",layerInfo:"arcgis-legend__layer-cell arcgis-legend__layer-cell--info",imageryLayerStretchedImage:"arcgis-legend__imagery-layer-image--stretched",imageryLayerInfoStretched:"arcgis-legend__imagery-layer-info--stretched",symbolContainer:"arcgis-legend__layer-cell arcgis-legend__layer-cell--symbols",symbol:"arcgis-legend__symbol"},h=class extends f{static{this.properties={cssEffectFilter:1,layer:0,legendElement:0,messages:0}}static{this.styles=z}render(){let e=this._renderLegendElement(),l=w(this.legendElement,this.messages),r=l?a`<div class=${i(s.layerCaption)}>${l}</div>`:null,t={[s.layerTableSizeRamp]:this.legendElement.type==="size-ramp"};return a`<section class=${i(d(s.layerTable,t))}>${r}${e}</section>`}_renderLegendElement(){switch(this.legendElement.type){case"symbol-table":return this._renderSymbolTable(this.legendElement);case"size-ramp":return a`<arcgis-legend-classic-size-ramp .legendElement=${this.legendElement} .messages=${this.messages}></arcgis-legend-classic-size-ramp>`;case"color-ramp":case"opacity-ramp":case"heatmap-ramp":case"stretch-ramp":return a`<arcgis-legend-classic-color-ramp .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-color-ramp>`;case"relationship-ramp":return a`<arcgis-legend-relationship-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .opacity=${this.layer.opacity} .messages=${this.messages}></arcgis-legend-relationship-ramp>`;case"pie-chart-ramp":{let{preview:e}=this.legendElement;return p(e,this.messages.previewPieChartAriaLabel),a`<div>${e}</div>`}case"univariate-above-and-below-ramp":return a`<arcgis-legend-classic-univariate-above-and-below-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-univariate-above-and-below-ramp>`;case"univariate-color-size-ramp":return a`<arcgis-legend-classic-univariate-color-size-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-univariate-color-size-ramp>`;default:return null}}_renderSymbolTable(e){let l=e.infos.map(r=>this._renderElementInfo(r,e.legendType)).filter(Boolean);return l.length?a`<div class=${i(s.layerBody)}>${l}</div>`:null}_renderElementInfo(e,l){let{layer:r}=this,t="label"in e?e.label:null;if("type"in e&&e.type)return e?a`<arcgis-legend-classic-element .cssEffectFilter=${this.cssEffectFilter} .layer=${r} .legendElement=${e} .messages=${this.messages}></arcgis-legend-classic-element>`:null;if(!("preview"in e&&e.preview)&&!("src"in e&&e.src))return null;let n=u(r,l),c={[s.imageryLayerInfoStretched]:n},o={[s.imageryLayerInfoStretched]:n};return a`<div class=${i(s.layerRow)}><div class=${i(d(s.symbolContainer,o))}>${this._renderPreview(e,n)}</div><div class=${i(d(s.layerInfo,c))}>${m(this.messages,t,!1)||""}</div></div>`}_renderPreview(e,l){let{layer:r}=this;if("preview"in e&&e.preview){let{preview:t}=e,n="previewAriaLabel"in e?e.previewAriaLabel:null,c="label"in e?m(this.messages,e.label,!1):null;return p(t,y(this.messages,n||c)),a`<div class=${i(s.symbol)}>${t}</div>`}return"src"in e&&e.src?this._renderImage(e,r,l):null}_renderImage(e,l,r){let{previewAriaLabel:t,src:n,opacity:c}=e,o=m(this.messages,e.label,!1),E={[s.imageryLayerStretchedImage]:r,[s.symbol]:!r},x={opacity:`${c??l.opacity}`},_=y(this.messages,t||o);return a`<img alt=${_??g} .ariaLabel=${_} class=${i(d(E))} height=${e.height??void 0??g} src=${n??g} style=${v(x)} width=${e.width??void 0??g}>`}};$("arcgis-legend-classic-element",h);return h},c)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{a as u}from"./
|
|
3
|
+
v5.0.0-next.42 */
|
|
4
|
+
import{a as u}from"./WWTVT4BW.js";import"./4OFHSL6U.js";import"./TGA6P5QO.js";import{J as y,P as d,b as l,s as c}from"./3ZHHI45D.js";import"./N6WGN3RH.js";var n="map-components:arcgis-utility-network-result-feature-list",o=class extends y{constructor(){super(...arguments),this._layerByLayerId=new Map,this._messages=u({blocking:!0}),this._compareByLayerTitle=([e],[t])=>{let s=this._getLayerBySourceId(e),r=this._getLayerBySourceId(t),i=s?.title??"",a=r?.title??"";return i.localeCompare(a,void 0,{numeric:!0})},this._state="ready",this.elements=[],this.layers=[],this.arcgisSelectedLayerChange=c(),this._renderLayerListItem=([e,t])=>{let{utilityNetwork:s,_messages:r}=this,i=s.getLayerIdBySourceId(e),a=this._getLayerByLayerId(i),h=a?.title||r.unknown;return l`<calcite-list-item .label=${h} @calciteListItemSelect=${()=>this._selectedLayer=a}><calcite-chip .label=${r.labels.numberOfElements} slot=content-end>${t.toString()}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`}}static{this.properties={_selectedLayer:16,_state:16,elements:0,layers:0,messageOverrides:0,selectedLayer:32,utilityNetwork:0}}get _sourceIdToFeatureCount(){let e=new Map;return this.elements.forEach(t=>{let s=e.get(t.networkSourceId);s==null?e.set(t.networkSourceId,1):e.set(t.networkSourceId,s+1)}),e}get selectedLayer(){return this._selectedLayer}willUpdate(e){e.has("_selectedLayer")&&this.arcgisSelectedLayerChange.emit(),(e.has("layers")||e.has("utilityNetwork"))&&this._loadDependencies()}load(){this._loadDependencies()}loaded(){this.elements.length===0&&console.warn(`${n} was rendered without any elements set for the \`elements\` property.`),this.utilityNetwork||console.warn(`${n} was rendered without the required \`utilityNetwork\` property.`),this.layers.length===0&&console.warn(`${n} was rendered without any layers set for the \`layers\` property.`)}_getLayerBySourceId(e){let t=this.utilityNetwork.getLayerIdBySourceId(e);return this._getLayerByLayerId(t)}_getLayerByLayerId(e){if(e==null)return;let{_layerByLayerId:t,layers:s}=this;if(t.get(e))return t.get(e);let r=s.find(i=>"layerId"in i&&i.layerId===e);return r&&t.set(e,r),r}async _loadDependencies(){let{layers:e,utilityNetwork:t}=this;if(!t)return;t.loaded||(this._state="loading",await t.load());let s=e.filter(r=>!r.loaded&&t.isUtilityLayer(r)).map(r=>r.load());s.length>0&&(this._state="loading",await Promise.allSettled(s)),this._state="ready"}render(){if(!this.utilityNetwork)return;let{_messages:e}=this,t=Array.from(this._sourceIdToFeatureCount.entries()).sort(this._compareByLayerTitle).map(this._renderLayerListItem);return l`<calcite-panel .loading=${this._state==="loading"}><calcite-list .label=${e.labels.traceResultElementsByLayer}>${t}</calcite-list></calcite-panel>`}};d("arcgis-utility-network-result-feature-list",o);export{o as ArcgisUtilityNetworkResultFeatureList};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v5.0.0-next.42 */
|
|
4
|
+
import"./N6WGN3RH.js";var a={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - dd MMM",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - dd MMM",_date_day:"dd MMM",_date_day_full:"dd MMM",_date_week:"ww",_date_week_full:"dd MMM",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"DC",_era_bc:"AC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"Enero",February:"Febrero",March:"Marzo",April:"Abril",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre",Jan:"Ene",Feb:"Feb",Mar:"Mar",Apr:"Abr","May(short)":"May",Jun:"Jun",Jul:"Jul",Aug:"Ago",Sep:"Sep",Oct:"Oct",Nov:"Nov",Dec:"Dic",Sunday:"Domingo",Monday:"Lunes",Tuesday:"Martes",Wednesday:"Mi\xE9rcoles",Thursday:"Jueves",Friday:"Viernes",Saturday:"S\xE1bado",Sun:"Dom",Mon:"Lun",Tue:"Mar",Wed:"Mie",Thu:"Jue",Fri:"Vie",Sat:"S\xE1b",_dateOrd:function(e){return"\xBA"},"Zoom Out":"Aumentar Zoom",Play:"Reproducir",Stop:"Detener",Legend:"Leyenda","Press ENTER to toggle":"Haga clic, toque o presione ENTER para alternar",Loading:"Cargando",Home:"Inicio",Chart:"Gr\xE1fico","Serial chart":"Gr\xE1fico de serie","X/Y chart":"Gr\xE1fico X/Y","Pie chart":"Gr\xE1fico circular","Gauge chart":"Gr\xE1fico de medidor radial","Radar chart":"Gr\xE1fico de radar","Sankey diagram":"Diagrama de sankey","Chord diagram":"Diagrama de cuerdas","Flow diagram":"Diagrama de flujo","TreeMap chart":"Gr\xE1fico de mapa de \xE1rbol",Series:"Series","Candlestick Series":"Series de velas","Column Series":"Series de columnas","Line Series":"Series de l\xEDneas","Pie Slice Series":"Series de trozos circular","X/Y Series":"Series de X/Y",Map:"Mapa","Press ENTER to zoom in":"Presione ENTER para aumentar el zoom","Press ENTER to zoom out":"Presione ENTER para disminuir el zoom","Use arrow keys to zoom in and out":"Use los cursores para disminuir o aumentar el zoom","Use plus and minus keys on your keyboard to zoom in and out":"Use las teclas mas o menos en su teclado para disminuir ou aumentar el zoom",Export:"Exportar",Image:"Imagen",Data:"Datos",Print:"Imprimir","Press ENTER to open":"Haga clic, toque o presione ENTER para abrir","Press ENTER to print.":"Haga clic, toque o presione ENTER para imprimir","Press ENTER to export as %1.":"Haga clic, toque o presione ENTER para exportar como %1.","(Press ESC to close this message)":"(Presione ESC para cerrar este mensaje)","Image Export Complete":"Exportaci\xF3n de imagen completada","Export operation took longer than expected. Something might have gone wrong.":"La operaci\xF3n de exportaci\xF3n llev\xF3 m\xE1s tiempo de lo esperado. Algo pudo haber salido mal.","Saved from":"Guardado de",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"Use TAB para seleccionar los botones de agarre o las flechas izquierda y derecha para cambiar la selecci\xF3n","Use left and right arrows to move selection":"Use las flechas izquierda y derecha para mover la selecci\xF3n","Use left and right arrows to move left selection":"Use las flechas izquierda y derecha para mover la selecci\xF3n izquierda","Use left and right arrows to move right selection":"Use las flechas izquierda y derecha para mover la selecci\xF3n derecha","Use TAB select grip buttons or up and down arrows to change selection":"Utilice los botones de control de selecci\xF3n TAB o flechas arriba y abajo para cambiar la selecci\xF3n","Use up and down arrows to move selection":"Use las flechas hacia arriba y hacia abajo para mover la selecci\xF3n","Use up and down arrows to move lower selection":"Use las flechas hacia arriba y hacia abajo para mover la selecci\xF3n inferior","Use up and down arrows to move upper selection":"Use las flechas hacia arriba y hacia abajo para mover la selecci\xF3n superior","From %1 to %2":"Desde %1 hasta %2","From %1":"Desde %1","To %1":"Hasta %1","No parser available for file: %1":"No hay analizador disponible para el archivo: %1","Error parsing file: %1":"Error al analizar el archivo: %1","Unable to load file: %1":"No se puede cargar el archivo: %1","Invalid date":"Fecha inv\xE1lida",Close:"",Minimize:"",Confirm:""};export{a as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v5.0.0-next.42 */
|
|
4
|
+
import"./N6WGN3RH.js";var r={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"d.Hr.",_era_bc:"\xEE.Hr.",A:"a.m.",P:"p.m.",AM:"a.m.",PM:"p.m.","A.M.":"a.m.","P.M.":"p.m.",January:"ianuarie",February:"februarie",March:"martie",April:"aprilie",May:"mai",June:"iunie",July:"iulie",August:"august",September:"septembrie",October:"octombrie",November:"noiembrie",December:"decembrie",Jan:"ian.",Feb:"feb.",Mar:"mar.",Apr:"apr.","May(short)":"mai",Jun:"iun.",Jul:"iul.",Aug:"aug.",Sep:"sept.",Oct:"oct.",Nov:"nov.",Dec:"dec.",Sunday:"duminic\u0103",Monday:"luni",Tuesday:"mar\u021Bi",Wednesday:"miercuri",Thursday:"joi",Friday:"vineri",Saturday:"s\xE2mb\u0103t\u0103",Sun:"dum.",Mon:"lun.",Tue:"mar.",Wed:"mie.",Thu:"joi",Fri:"vin.",Sat:"s\xE2m.",_dateOrd:function(_){let e="th";if(_<11||_>13)switch(_%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"Zoom",Play:"Redare",Stop:"Oprire",Legend:"Legend\u0103","Press ENTER to toggle":"",Loading:"Se \xEEncarc\u0103",Home:"Pagina principal\u0103",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Imprimare",Image:"Imagine",Data:"Date",Print:"Imprimare","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Din %1 la %2","From %1":"Din %1","To %1":"La %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{r as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v5.0.0-next.42 */
|
|
4
|
+
import"./N6WGN3RH.js";var o={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"hh:mm:ss a",_date_second_full:"hh:mm:ss a",_date_minute:"hh:mm a",_date_minute_full:"hh:mm a - MMM dd, yyyy",_date_hour:"hh:mm a",_date_hour_short:"hhaaa",_date_hour_full:"hh:mm a - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(a){let e="th";if(a<11||a>13)switch(a%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},Play:"",Stop:"","Zoom Out":"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Chord diagram":"","Flow diagram":"","TreeMap chart":"",Series:"","Candlestick Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{o as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import e from"./
|
|
3
|
+
v5.0.0-next.42 */
|
|
4
|
+
import e from"./26AHC2O2.js";import{a as d}from"./WWTVT4BW.js";import b from"./CNZZZ66N.js";import a from"./5ZT4TQ3T.js";import{g as v}from"./4OFHSL6U.js";import"./RCWUF6S4.js";import{b as g}from"./TGA6P5QO.js";import{J as r,K as l,M as n,P as h,a as s,b as i,s as c}from"./3ZHHI45D.js";import"./N6WGN3RH.js";export default $arcgis.t(([w,,{a:m},p])=>{var f=s`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}calcite-button{width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl)}}:host{width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl)}`,x="home",u={base:x,button:"arcgis-button"},y=p(w),a=class extends r{constructor(){super(...arguments),this.messages=d(),this.viewModel=y(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.goToOverride=this.viewModel.goToOverride,this.icon="home",this.state=this.viewModel.state,this.viewpoint=this.viewModel.viewpoint,this.arcgisGo=m(()=>this.viewModel,"go"),this.arcgisPropertyChange=v()("state"),this.arcgisReady=c()}static{this.properties={view:0,autoDestroyDisabled:5,goToOverride:0,icon:1,label:1,messageOverrides:0,position:3,referenceElement:1,state:3,viewpoint:0}}static{this.styles=f}async cancelGo(){this.viewModel.cancelGo()}async destroy(){await this.manager.destroy()}async go(){this.viewModel.go()}_go(){let{viewModel:e}=this;e.state==="going-home"?e.cancelGo():e.go()}render(){let{messages:e,icon:b}=this,t=this.viewModel?.state,o=t==="going-home";return i`<div class=${l(g(u.base,u.button))}><calcite-button .disabled=${t==="disabled"} .iconStart=${o?void 0:b??void 0} kind=neutral .label=${e.componentLabel} @click=${this._go} .scale=${o?"s":"m"} title=${(t==="going-home"?e.cancel:e.title)??n}>${o?i`<calcite-loader inline label></calcite-loader>`:null}</calcite-button></div>`}};h("arcgis-home",a);return a},"widgets/Home/HomeViewModel",a,b,e)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{A as w,B as V,C as m,D as h,E as A,F as D,G as y,e as P,z as k}from"./
|
|
3
|
+
v5.0.0-next.42 */
|
|
4
|
+
import{A as w,B as V,C as m,D as h,E as A,F as D,G as y,e as P,z as k}from"./3ZHHI45D.js";var b=(s,f,c)=>{let p=new Map;for(let e=f;e<=c;e++)p.set(s[e],e);return p},I=w(class extends V{constructor(s){if(super(s),s.type!==k.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,f,c){let p;c===void 0?c=f:f!==void 0&&(p=f);let e=[],n=[],o=0;for(let a of s)e[o]=p?p(a,o):o,n[o]=c(a,o),o++;return{values:n,keys:e}}render(s,f,c){return this.dt(s,f,c).values}update(s,[f,c,p]){let e=D(s),{values:n,keys:o}=this.dt(f,c,p);if(!Array.isArray(e))return this.ut=o,n;let a=this.ut??=[],u=[],v,g,t=0,l=e.length-1,r=0,i=n.length-1;for(;t<=l&&r<=i;)if(e[t]===null)t++;else if(e[l]===null)l--;else if(a[t]===o[r])u[r]=h(e[t],n[r]),t++,r++;else if(a[l]===o[i])u[i]=h(e[l],n[i]),l--,i--;else if(a[t]===o[i])u[i]=h(e[t],n[i]),m(s,u[i+1],e[t]),t++,i--;else if(a[l]===o[r])u[r]=h(e[l],n[r]),m(s,e[t],e[l]),l--,r++;else if(v===void 0&&(v=b(o,r,i),g=b(a,t,l)),v.has(a[t]))if(v.has(a[l])){let d=g.get(o[r]),x=d!==void 0?e[d]:null;if(x===null){let C=m(s,e[t]);h(C,n[r]),u[r]=C}else u[r]=h(x,n[r]),m(s,e[t],x),e[d]=null;r++}else y(e[l]),l--;else y(e[t]),t++;for(;r<=i;){let d=m(s,u[i+1]);h(d,n[r]),u[r++]=d}for(;t<=l;){let d=e[t++];d!==null&&y(d)}return this.ut=o,A(s,u),P}});export{I as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v5.0.0-next.42 */
|
|
4
|
+
import"./N6WGN3RH.js";var t={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"sau CN",_era_bc:"Tr\u01B0\u1EDBc CN",A:"s",P:"c",AM:"SA",PM:"CH","A.M.":"SA","P.M.":"CH",January:"th\xE1ng 1",February:"th\xE1ng 2",March:"th\xE1ng 3",April:"th\xE1ng 4",May:"th\xE1ng 5",June:"th\xE1ng 6",July:"th\xE1ng 7",August:"th\xE1ng 8",September:"th\xE1ng 9",October:"th\xE1ng 10",November:"th\xE1ng 11",December:"th\xE1ng 12",Jan:"thg 1",Feb:"thg 2",Mar:"thg 3",Apr:"thg 4","May(short)":"thg 5",Jun:"thg 6",Jul:"thg 7",Aug:"thg 8",Sep:"thg 9",Oct:"thg 10",Nov:"thg 11",Dec:"thg 12",Sunday:"Ch\u1EE7 Nh\u1EADt",Monday:"Th\u1EE9 Hai",Tuesday:"Th\u1EE9 Ba",Wednesday:"Th\u1EE9 T\u01B0",Thursday:"Th\u1EE9 N\u0103m",Friday:"Th\u1EE9 S\xE1u",Saturday:"Th\u1EE9 B\u1EA3y",Sun:"CN",Mon:"Th 2",Tue:"Th 3",Wed:"Th 4",Thu:"Th 5",Fri:"Th 6",Sat:"Th 7",_dateOrd:function(_){let e="th";if(_<11||_>13)switch(_%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"Thu ph\xF3ng",Play:"Ph\xE1t",Stop:"D\u1EEBng",Legend:"Ch\xFA gi\u1EA3i","Press ENTER to toggle":"",Loading:"\u0110ang t\u1EA3i",Home:"Trang ch\u1EE7",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"In",Image:"H\xECnh \u1EA3nh",Data:"D\u1EEF li\u1EC7u",Print:"In","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"T\u1EEB %1 \u0111\u1EBFn %2","From %1":"T\u1EEB %1","To %1":"\u0110\u1EBFn %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{t as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{a as W}from"./7LIX3DZB.js";import"./HFYPYXFX.js";import d from"./I6BDZLY3.js";import{a as E}from"./QNWCGXP3.js";import{a as y}from"./MW4V5NHK.js";import c from"./TAW4OIUQ.js";import a from"./BQOEVFWW.js";import{e as A,g as B}from"./O56NKDLP.js";import"./ISQDT4EK.js";import{b}from"./UEI2JLS3.js";import{J as L,K as u,M as m,P as O,a as z,b as l,s as T}from"./OJVYQU32.js";import"./6OTOVHTQ.js";export default $arcgis.t(([V,{property:h,subclass:I},{watch:Z},D,j,H,P,R,,,S])=>{var g="arcgis-weather",p={base:g,content:`${g}__content`,hasError:`${g}__content--has-error`,selector:`${g}__selector`,options:`${g}__options`,optionsHidden:`${g}__options--hidden`,error:`${g}__error`,warningTitle:`${g}__warning-title`},q=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{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);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__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}.arcgis-weather{position:relative;padding:var(--esri-widget-padding);width:fit-content}.arcgis-weather__content{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);width:min-content}.arcgis-weather__content--has-error{visibility:hidden;height:0;overflow:hidden;pointer-events:none}.arcgis-weather__selector{display:flex;flex-direction:row;gap:var(--calcite-spacing-sm);align-items:center}.arcgis-weather__options{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);calcite-label:last-child{--calcite-label-margin-bottom: 0}}.arcgis-weather__options--hidden{display:none}.arcgis-weather__warning-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}`,U=Object.defineProperty,G=Object.getOwnPropertyDescriptor,d=(i,e,o,t)=>{for(var r=t>1?void 0:t?G(e,o):e,a=i.length-1,n;a>=0;a--)(n=i[a])&&(r=(t?n(e,o,r):n(r))||r);return t&&r&&U(e,o,r),r},J={sunny:R,cloudy:D,rainy:H,snowy:P,foggy:j},_=Object.keys(J),s=class extends V{constructor(i){super(i),this._settingWeather=!1,this._weatherByType={sunny:new R,cloudy:new D,rainy:new H,snowy:new P,foggy:new j}}initialize(){this.addHandles([Z(()=>this.current,i=>{this._settingWeather||i==null||(this._weatherByType={...this._weatherByType,[i.type]:i})},{sync:!0,initial:!0})])}get state(){if(!this.view?.ready)return"disabled";if(this.error!=null)switch(this.error){case"not-visible":return"ready";default:return"error"}return"ready"}get disabled(){return this.state==="disabled"}get weatherByType(){return this._weatherByType}get error(){let i=this.view;return i?.ready?i.type!=="3d"?"unsupported-view":i.viewingMode==="local"?"local-scene":i.environment.atmosphereEnabled?i.environment.weatherAvailable?null:"not-visible":"no-atmosphere":null}get current(){return this._environment?.weather??this._weatherByType.sunny}set current(i){let e=this._environment;e&&(e.weather=i)}get _environment(){let i=this.view;return i!=null&&i.type==="3d"?i.environment:null}setWeatherByType(i){if(!_.includes(i)){console.warn(`arcgis-weather - "${i}" is not a valid weather type`);return}let e=this._environment;e!=null&&(this._settingWeather=!0,e.weather=this._weatherByType[i],this._settingWeather=!1)}setSnowCoverEnabled(i){let e=this.current;"snowCover"in e&&(e.snowCover=i?"enabled":"disabled")}};d([h()],s.prototype,"view",2);d([h()],s.prototype,"state",1);d([h()],s.prototype,"disabled",1);d([h()],s.prototype,"weatherByType",1);d([h()],s.prototype,"error",1);d([h()],s.prototype,"current",1);d([h()],s.prototype,"_weatherByType",2);d([h()],s.prototype,"_environment",1);s=d([I("components.weather.WeatherViewModel")],s);function w({label:i,ariaLabel:e,value:o,disabled:t,onChange:r}){let a=c=>{let v=c.currentTarget.value;r?.(v??0)},n="s";return l`<calcite-label .scale=${n}><calcite-slider .disabled=${t} .ariaLabel=${e} .labelText=${i} .value=${o} min=0 max=1 step=0.01 .scale=${n} @calciteSliderChange=${a} @calciteSliderInput=${a}></calcite-slider></calcite-label>`}var K=S(s),Q={sunny:"brightness",cloudy:"partly-cloudy",rainy:"rain",snowy:"snow",foggy:"fog"},x=class extends L{constructor(){super(...arguments),this.viewModel=K(this),this.messages=E(),this.direction=A(),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.headingLevel=4,this.hideHeader=!1,this.icon="partly-cloudy",this.label=this.messages.componentLabel,this.state=this.viewModel.state,this.arcgisPropertyChange=B()("state"),this.arcgisReady=T()}static{this.properties={view:0,autoDestroyDisabled:5,headingLevel:9,hideHeader:5,icon:1,label:1,messageOverrides:0,position:1,referenceElement:1,state:35}}static{this.styles=q}async destroy(){await this.manager.destroy()}_getWarningMessage(){switch(this.viewModel.error){case"not-visible":{let{view:e}=this.viewModel;return e?.type==="3d"&&e.environment.atmosphereEnabled?this.messages.error?.notVisible:void 0}default:return}}_getErrorMessage(){let e=this.messages.error;if(e)switch(this.viewModel.error){case"local-scene":return e.localScene;case"no-atmosphere":return e.noAtmosphere;case"unsupported-view":return e.unsupported;default:return}}render(){return l`<div aria-label=${this.messages.componentLabelAccessible??m} class=${u(b(p.base,y.widget,this.viewModel.disabled&&y.widgetDisabled))} role=region>${this._renderContent()}</div>`}_renderContent(){let{headingLevel:e,messages:o,viewModel:t}=this,r=this._getWarningMessage(),a=t.current,n=t.state==="error";return l`${this.hideHeader?void 0:W({level:e,children:o.componentLabel})}${n?l`<div class=${u(p.error)}>${this._getErrorMessage()}</div>`:void 0}<div class=${u(b({[p.content]:!0,[p.hasError]:n}))}><div .ariaLabel=${o.weatherType} class=${u(p.selector)} role=radiogroup>${_.map(this._renderWeatherTypeButton,this)}</div>${Object.values(t.weatherByType).map(c=>l`<div class=${u(b({[p.options]:!0,[p.optionsHidden]:c.type!==a?.type}))}>${this._renderOptions(c)}</div>`)}${r?this._renderWarning(r):void 0}</div>`}_renderWeatherTypeButton(e){let o=this.messages[e]?.label??"",{disabled:t}=this.viewModel,r=!t&&this.viewModel.current.type===e;return l`<calcite-button role=radio .ariaLabel=${o} .tabIndex=${r?0:-1} .appearance=${r?"solid":"outline"} .ariaChecked=${r?"true":"false"} .disabled=${t} .iconStart=${Q[e]} .kind=${r?"brand":"neutral"} @keydown=${a=>{let n=a.key,c=["ArrowRight","ArrowDown"],v=["ArrowLeft","ArrowUp"];if(this.direction==="rtl"){let f=c;c=v,v=f}let F=c.includes(n),$=v.includes(n);if(F||$){a.preventDefault();let f=_.indexOf(e),C=_.length,k=(f+($?-1:1)+C)%C;this.viewModel.setWeatherByType(_[k]);let M=a.currentTarget.parentElement;M&&Array.from(M.querySelectorAll("calcite-button")??[])[k]?.setFocus()}}} @click=${()=>{r||this.viewModel.setWeatherByType(e)}} scale=l title=${o??m}></calcite-button>`}_renderOptions(e){switch(e.type){case"sunny":return this._renderSunnyOptions(e);case"cloudy":return this._renderCloudyOptions(e);case"rainy":return this._renderRainyOptions(e);case"snowy":return this._renderSnowyOptions(e);case"foggy":return this._renderFoggyOptions(e)}}_renderSunnyOptions(e){let o=this.messages.sunny;return w({disabled:this.viewModel.disabled,ariaLabel:o?.cloudCoverAria,label:o?.cloudCover,value:e.cloudCover,onChange:t=>{e.cloudCover=t}})}_renderCloudyOptions(e){let o=this.messages.cloudy;return w({disabled:this.viewModel.disabled,ariaLabel:o?.cloudCoverAria,label:o?.cloudCover,value:e.cloudCover,onChange:t=>{e.cloudCover=t}})}_renderRainyOptions(e){let{disabled:o}=this.viewModel,t=this.messages.rainy;return l`${w({disabled:o,ariaLabel:t?.cloudCoverAria,label:t?.cloudCover,value:e.cloudCover,onChange:r=>{e.cloudCover=r}})}${w({disabled:o,ariaLabel:t?.precipitationAria,label:t?.precipitation,value:e.precipitation,onChange:r=>{e.precipitation=r}})}`}_renderSnowyOptions(e){let{disabled:o}=this.viewModel,t=this.messages.snowy;return l`${w({disabled:o,ariaLabel:t?.cloudCoverAria,label:t?.cloudCover,value:e.cloudCover,onChange:r=>{e.cloudCover=r}})}${w({disabled:o,ariaLabel:t?.precipitationAria,label:t?.precipitation,value:e.precipitation,onChange:r=>{e.precipitation=r}})}<calcite-label layout=inline scale=s title=${t?.snowCoverTooltip??m}><calcite-checkbox .checked=${e.snowCover==="enabled"} .disabled=${o} @calciteCheckboxChange=${r=>{this.viewModel.setSnowCoverEnabled(r.currentTarget.checked)}}></calcite-checkbox>${t?.snowCover}</calcite-label>`}_renderFoggyOptions(e){let o=this.messages.foggy;return w({disabled:this.viewModel.disabled,ariaLabel:o?.fogStrengthAria,label:o?.fogStrength,value:e.fogStrength,onChange:t=>{e.fogStrength=t}})}_renderWarning(e){return l`<calcite-notice aria-live=polite open icon=exclamation-mark-triangle-f kind=warning scale=s><div slot=title class=${u(p.warningTitle)}>${this.messages.warningTitle}</div><div slot=message>${e}</div></calcite-notice>`}};O("arcgis-weather",x);return x},"core/Accessor","core/accessorSupport/decorators","core/reactiveUtils","views/3d/environment/CloudyWeather","views/3d/environment/FoggyWeather","views/3d/environment/RainyWeather","views/3d/environment/SnowyWeather","views/3d/environment/SunnyWeather",a,c,d)
|
|
3
|
+
v5.0.0-next.42 */
|
|
4
|
+
import{a as W}from"./UKATBWRY.js";import"./J27HDYLO.js";import d from"./26AHC2O2.js";import{a as E}from"./WWTVT4BW.js";import{a as y}from"./XRTHTHLN.js";import c from"./CNZZZ66N.js";import a from"./5ZT4TQ3T.js";import{e as A,g as B}from"./4OFHSL6U.js";import"./RCWUF6S4.js";import{b}from"./TGA6P5QO.js";import{J as L,K as u,M as m,P as O,a as z,b as l,s as T}from"./3ZHHI45D.js";import"./N6WGN3RH.js";export default $arcgis.t(([V,{property:h,subclass:I},{watch:Z},D,j,H,P,R,,,S])=>{var g="arcgis-weather",p={base:g,content:`${g}__content`,hasError:`${g}__content--has-error`,selector:`${g}__selector`,options:`${g}__options`,optionsHidden:`${g}__options--hidden`,error:`${g}__error`,warningTitle:`${g}__warning-title`},q=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{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);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__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}.arcgis-weather{position:relative;padding:var(--esri-widget-padding);width:fit-content}.arcgis-weather__content{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);width:min-content}.arcgis-weather__content--has-error{visibility:hidden;height:0;overflow:hidden;pointer-events:none}.arcgis-weather__selector{display:flex;flex-direction:row;gap:var(--calcite-spacing-sm);align-items:center}.arcgis-weather__options{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);calcite-label:last-child{--calcite-label-margin-bottom: 0}}.arcgis-weather__options--hidden{display:none}.arcgis-weather__warning-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}`,U=Object.defineProperty,G=Object.getOwnPropertyDescriptor,d=(i,e,o,t)=>{for(var r=t>1?void 0:t?G(e,o):e,a=i.length-1,n;a>=0;a--)(n=i[a])&&(r=(t?n(e,o,r):n(r))||r);return t&&r&&U(e,o,r),r},J={sunny:R,cloudy:D,rainy:H,snowy:P,foggy:j},_=Object.keys(J),s=class extends V{constructor(i){super(i),this._settingWeather=!1,this._weatherByType={sunny:new R,cloudy:new D,rainy:new H,snowy:new P,foggy:new j}}initialize(){this.addHandles([Z(()=>this.current,i=>{this._settingWeather||i==null||(this._weatherByType={...this._weatherByType,[i.type]:i})},{sync:!0,initial:!0})])}get state(){if(!this.view?.ready)return"disabled";if(this.error!=null)switch(this.error){case"not-visible":return"ready";default:return"error"}return"ready"}get disabled(){return this.state==="disabled"}get weatherByType(){return this._weatherByType}get error(){let i=this.view;return i?.ready?i.type!=="3d"?"unsupported-view":i.viewingMode==="local"?"local-scene":i.environment.atmosphereEnabled?i.environment.weatherAvailable?null:"not-visible":"no-atmosphere":null}get current(){return this._environment?.weather??this._weatherByType.sunny}set current(i){let e=this._environment;e&&(e.weather=i)}get _environment(){let i=this.view;return i!=null&&i.type==="3d"?i.environment:null}setWeatherByType(i){if(!_.includes(i)){console.warn(`arcgis-weather - "${i}" is not a valid weather type`);return}let e=this._environment;e!=null&&(this._settingWeather=!0,e.weather=this._weatherByType[i],this._settingWeather=!1)}setSnowCoverEnabled(i){let e=this.current;"snowCover"in e&&(e.snowCover=i?"enabled":"disabled")}};d([h()],s.prototype,"view",2);d([h()],s.prototype,"state",1);d([h()],s.prototype,"disabled",1);d([h()],s.prototype,"weatherByType",1);d([h()],s.prototype,"error",1);d([h()],s.prototype,"current",1);d([h()],s.prototype,"_weatherByType",2);d([h()],s.prototype,"_environment",1);s=d([I("components.weather.WeatherViewModel")],s);function w({label:i,ariaLabel:e,value:o,disabled:t,onChange:r}){let a=c=>{let v=c.currentTarget.value;r?.(v??0)},n="s";return l`<calcite-label .scale=${n}><calcite-slider .disabled=${t} .ariaLabel=${e} .labelText=${i} .value=${o} min=0 max=1 step=0.01 .scale=${n} @calciteSliderChange=${a} @calciteSliderInput=${a}></calcite-slider></calcite-label>`}var K=S(s),Q={sunny:"brightness",cloudy:"partly-cloudy",rainy:"rain",snowy:"snow",foggy:"fog"},x=class extends L{constructor(){super(...arguments),this.viewModel=K(this),this.messages=E(),this.direction=A(),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.headingLevel=4,this.hideHeader=!1,this.icon="partly-cloudy",this.label=this.messages.componentLabel,this.state=this.viewModel.state,this.arcgisPropertyChange=B()("state"),this.arcgisReady=T()}static{this.properties={view:0,autoDestroyDisabled:5,headingLevel:9,hideHeader:5,icon:1,label:1,messageOverrides:0,position:1,referenceElement:1,state:35}}static{this.styles=q}async destroy(){await this.manager.destroy()}_getWarningMessage(){switch(this.viewModel.error){case"not-visible":{let{view:e}=this.viewModel;return e?.type==="3d"&&e.environment.atmosphereEnabled?this.messages.error?.notVisible:void 0}default:return}}_getErrorMessage(){let e=this.messages.error;if(e)switch(this.viewModel.error){case"local-scene":return e.localScene;case"no-atmosphere":return e.noAtmosphere;case"unsupported-view":return e.unsupported;default:return}}render(){return l`<div aria-label=${this.messages.componentLabelAccessible??m} class=${u(b(p.base,y.widget,this.viewModel.disabled&&y.widgetDisabled))} role=region>${this._renderContent()}</div>`}_renderContent(){let{headingLevel:e,messages:o,viewModel:t}=this,r=this._getWarningMessage(),a=t.current,n=t.state==="error";return l`${this.hideHeader?void 0:W({level:e,children:o.componentLabel})}${n?l`<div class=${u(p.error)}>${this._getErrorMessage()}</div>`:void 0}<div class=${u(b({[p.content]:!0,[p.hasError]:n}))}><div .ariaLabel=${o.weatherType} class=${u(p.selector)} role=radiogroup>${_.map(this._renderWeatherTypeButton,this)}</div>${Object.values(t.weatherByType).map(c=>l`<div class=${u(b({[p.options]:!0,[p.optionsHidden]:c.type!==a?.type}))}>${this._renderOptions(c)}</div>`)}${r?this._renderWarning(r):void 0}</div>`}_renderWeatherTypeButton(e){let o=this.messages[e]?.label??"",{disabled:t}=this.viewModel,r=!t&&this.viewModel.current.type===e;return l`<calcite-button role=radio .ariaLabel=${o} .tabIndex=${r?0:-1} .appearance=${r?"solid":"outline"} .ariaChecked=${r?"true":"false"} .disabled=${t} .iconStart=${Q[e]} .kind=${r?"brand":"neutral"} @keydown=${a=>{let n=a.key,c=["ArrowRight","ArrowDown"],v=["ArrowLeft","ArrowUp"];if(this.direction==="rtl"){let f=c;c=v,v=f}let F=c.includes(n),$=v.includes(n);if(F||$){a.preventDefault();let f=_.indexOf(e),C=_.length,k=(f+($?-1:1)+C)%C;this.viewModel.setWeatherByType(_[k]);let M=a.currentTarget.parentElement;M&&Array.from(M.querySelectorAll("calcite-button")??[])[k]?.setFocus()}}} @click=${()=>{r||this.viewModel.setWeatherByType(e)}} scale=l title=${o??m}></calcite-button>`}_renderOptions(e){switch(e.type){case"sunny":return this._renderSunnyOptions(e);case"cloudy":return this._renderCloudyOptions(e);case"rainy":return this._renderRainyOptions(e);case"snowy":return this._renderSnowyOptions(e);case"foggy":return this._renderFoggyOptions(e)}}_renderSunnyOptions(e){let o=this.messages.sunny;return w({disabled:this.viewModel.disabled,ariaLabel:o?.cloudCoverAria,label:o?.cloudCover,value:e.cloudCover,onChange:t=>{e.cloudCover=t}})}_renderCloudyOptions(e){let o=this.messages.cloudy;return w({disabled:this.viewModel.disabled,ariaLabel:o?.cloudCoverAria,label:o?.cloudCover,value:e.cloudCover,onChange:t=>{e.cloudCover=t}})}_renderRainyOptions(e){let{disabled:o}=this.viewModel,t=this.messages.rainy;return l`${w({disabled:o,ariaLabel:t?.cloudCoverAria,label:t?.cloudCover,value:e.cloudCover,onChange:r=>{e.cloudCover=r}})}${w({disabled:o,ariaLabel:t?.precipitationAria,label:t?.precipitation,value:e.precipitation,onChange:r=>{e.precipitation=r}})}`}_renderSnowyOptions(e){let{disabled:o}=this.viewModel,t=this.messages.snowy;return l`${w({disabled:o,ariaLabel:t?.cloudCoverAria,label:t?.cloudCover,value:e.cloudCover,onChange:r=>{e.cloudCover=r}})}${w({disabled:o,ariaLabel:t?.precipitationAria,label:t?.precipitation,value:e.precipitation,onChange:r=>{e.precipitation=r}})}<calcite-label layout=inline scale=s title=${t?.snowCoverTooltip??m}><calcite-checkbox .checked=${e.snowCover==="enabled"} .disabled=${o} @calciteCheckboxChange=${r=>{this.viewModel.setSnowCoverEnabled(r.currentTarget.checked)}}></calcite-checkbox>${t?.snowCover}</calcite-label>`}_renderFoggyOptions(e){let o=this.messages.foggy;return w({disabled:this.viewModel.disabled,ariaLabel:o?.fogStrengthAria,label:o?.fogStrength,value:e.fogStrength,onChange:t=>{e.fogStrength=t}})}_renderWarning(e){return l`<calcite-notice aria-live=polite open icon=exclamation-mark-triangle-f kind=warning scale=s><div slot=title class=${u(p.warningTitle)}>${this.messages.warningTitle}</div><div slot=message>${e}</div></calcite-notice>`}};O("arcgis-weather",x);return x},"core/Accessor","core/accessorSupport/decorators","core/reactiveUtils","views/3d/environment/CloudyWeather","views/3d/environment/FoggyWeather","views/3d/environment/RainyWeather","views/3d/environment/SnowyWeather","views/3d/environment/SunnyWeather",a,c,d)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import c from"./
|
|
3
|
+
v5.0.0-next.42 */
|
|
4
|
+
import c from"./5KBC4PPX.js";import{a as w,c as u}from"./BQYS7G2M.js";import{a as y}from"./VJUPFUYX.js";import b from"./CNZZZ66N.js";import"./4OFHSL6U.js";import{d,e as g}from"./RCWUF6S4.js";import"./TGA6P5QO.js";import{H as r,I as h,J as l,K as n,P as v,b as s,s as a}from"./3ZHHI45D.js";import"./N6WGN3RH.js";export default $arcgis.t(([{watch:c},E,C,R,{a:e,b:o,f:m},{a:f,b:V,c:b}])=>{var A=o(C,{}),k=o(E,{}),p=class extends l{constructor(){super(),this._containerRef=r(),this._mapRef=r(),this._uiController=new f(this),this.extraContent=new R,this.arcgisLoadError=V(this),this.arcgisViewReadyError=b(this),this._map=A(this),this.view=k(this),this.animationsDisabled=this.view.animationsEnabled,this.allLayerViews=this.view.allLayerViews,this.analyses=this.view.analyses,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.highlights=this.view.highlights,this.highlightOptions=this.view.highlightOptions,this.ipsInfo=this._map.ipsInfo,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.spatialReference=this.view.spatialReference,this.spatialReferenceLocked=this.view.spatialReferenceLocked,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.updating=this.view.updating,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=e(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=e(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=e(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=a(),this.arcgisViewClick=e(()=>this.view,"click"),this.arcgisViewDoubleClick=e(()=>this.view,"double-click"),this.arcgisViewDrag=e(()=>this.view,"drag"),this.arcgisViewHold=e(()=>this.view,"hold"),this.arcgisViewImmediateClick=e(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=e(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=e(()=>this.view,"key-down"),this.arcgisViewKeyUp=e(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=e(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=e(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=e(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=e(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=e(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=e(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=e(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=e(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=e(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=a(),this.view.ui={components:[]}}static{this.properties={_map:16,view:32,animationsDisabled:5,aria:0,attributionItems:32,allLayerViews:0,analyses:0,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,center:1,constraints:0,displayFilterDisabled:5,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,highlights:0,highlightOptions:0,interacting:32,ipsInfo:0,itemId:3,layerViews:0,magnifier:0,map:0,navigating:32,navigation:0,padding:0,popup:0,popupDisabled:5,ready:4,resizeAlign:1,resolution:8,rotation:9,scale:9,spatialReference:0,spatialReferenceLocked:5,stationary:32,suspended:7,theme:0,timeExtent:0,timeZone:1,updating:4,viewpoint:0,visibleArea:0,zoom:9,loadErrorSources:0}}static{this.styles=[y,u]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get center(){return this.view.center}set center(i){let t=g(i,this.view);t&&(this.view.center=t)}get extent(){return this.view.extent}set extent(i){i&&!this.extent?.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){m(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){d(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async addLayer(i,t){this.map?.add(i,t)}async addLayers(i,t){this.map?.addMany(i,t)}async addTable(i){this.map?.tables.add(i)}async addTables(i,t){this.map?.tables.addMany(i,t)}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,t){return await this.view.goTo(i,t)}async hitTest(i,t){return await this.view.hitTest(i,t)}async openPopup(i){this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i){return this.view.toMap(i)}toScreen(i,t){return this.view.toScreen(i,t)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,t){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(t)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view?.whenLayerView(i)}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[c(()=>this.map,t=>{t&&(this._map=t)},{initial:!0,sync:!0}),c(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),c(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready})])}renderMain(){return s`<div class=${n(w.base)} ${h(this._mapRef)}></div>`}render(){return s`<section class=${n(w.containerUI)} ${h(this._containerRef)}>${this._uiController.render()}${this.extraContent}</section>${this.renderMain()}`}};v("arcgis-map",p);return p},"core/reactiveUtils","views/MapView","WebMap","core/Collection",b,c)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.42 */
|
|
4
4
|
function m(e,t){let n=e.assignedElements({flatten:!0});return t?n.filter(s=>s.matches(t)):n}var g=(...e)=>{let t=[];for(let s=0;s<e.length;s++){let o=e[s];if(typeof o=="string")t.push(o);else if(Array.isArray(o))t.push.apply(t,o);else if(typeof o=="object")for(let r in o)o[r]&&t.push(r)}let n=t.join(" ");return t.length=0,n},l=(e,t)=>{let n=e;for(;n;){if(n===t)return!0;if(!n.parentNode)return!1;n.parentNode instanceof ShadowRoot?n=n.parentNode.host:n=n.parentNode}return!1},E=(e,t,n)=>{let s=d(t).subscribe;return s(o=>{o.some(i=>l(e,i.target))&&n()})},c={},d=e=>{let t=e.join(","),n=c[t];if(n!==void 0)return n;let s=new Set,o=new MutationObserver(i=>s.forEach(a=>a(i)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let r={subscribe:i=>(s.add(i),()=>{s.delete(i),s.size===0&&(o.disconnect(),c[t]=void 0)})};return c[t]=r,r},u=(e,t)=>{let n=e;for(;n;){let s=n.closest?.(t);if(s)return s;let o=n.getRootNode?.();if(o===globalThis.document)return;n=o.host}};function b(e){let t=u(e,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return t?.classList.contains("calcite-mode-dark")||t?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var p=e=>f(e,"dir","ltr"),f=(e,t,n)=>u(e,`[${t}]`)?.getAttribute(t)??n,v=async e=>{e!=null&&(h(e)?await e.setFocus():e.focus())},h=e=>typeof e.setFocus=="function";export{m as a,g as b,E as c,u as d,b as e,p as f,f as g,v as h};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v5.0.0-next.42 */
|
|
4
|
+
import"./N6WGN3RH.js";var r={_decimalSeparator:",",_thousandSeparator:"\xA0",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"m.\u0113.",_era_bc:"p.m.\u0113.",A:"priek\u0161p.",P:"p\u0113cp.",AM:"priek\u0161p.",PM:"p\u0113cp.","A.M.":"priek\u0161pusdien\u0101","P.M.":"p\u0113cpusdien\u0101",January:"janv\u0101ris",February:"febru\u0101ris",March:"marts",April:"apr\u012Blis",May:"maijs",June:"j\u016Bnijs",July:"j\u016Blijs",August:"augusts",September:"septembris",October:"oktobris",November:"novembris",December:"decembris",Jan:"janv.",Feb:"febr.",Mar:"marts",Apr:"apr.","May(short)":"maijs",Jun:"j\u016Bn.",Jul:"j\u016Bl.",Aug:"aug.",Sep:"sept.",Oct:"okt.",Nov:"nov.",Dec:"dec.",Sunday:"sv\u0113tdiena",Monday:"pirmdiena",Tuesday:"otrdiena",Wednesday:"tre\u0161diena",Thursday:"ceturtdiena",Friday:"piektdiena",Saturday:"sestdiena",Sun:"sv\u0113td.",Mon:"pirmd.",Tue:"otrd.",Wed:"tre\u0161d.",Thu:"ceturtd.",Fri:"piektd.",Sat:"sestd.",_dateOrd:function(_){let e="th";if(_<11||_>13)switch(_%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"T\u0101lummai\u0146a",Play:"Darbin\u0101t",Stop:"Aptur\u0113t",Legend:"Apz\u012Bm\u0113jumi","Press ENTER to toggle":"",Loading:"Iel\u0101d\u0113",Home:"S\u0101kums",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Druk\u0101t",Image:"Att\u0113ls",Data:"Dati",Print:"Druk\u0101t","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"No %1 l\u012Bdz %2","From %1":"No %1","To %1":"L\u012Bdz %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{r as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{a as F}from"./NSG3IIH4.js";import{a as A}from"./GYGR2VEY.js";import{J as T,N as q,P as S,a as v,b as p}from"./OJVYQU32.js";import"./6OTOVHTQ.js";export default $arcgis.t(([{createReactiveMap:I,findUtilityNetwork:U,queryAllJSON:V,getOrCreateMapValue:D},{stripHTML:L},b,{ignoreAbortErrors:N},{watch:C},M,Q,B,P,x,G])=>{var O=v`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,E=100,$={assetGroup:"assetgroup",assetType:"assettype"},j="{00000000-0000-0000-0000-000000000000}",k=class extends T{constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new b,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new b,this._connectivityFeatureCount=0,this._containerAssociations=new b,this._containerFeatureCount=0,this._contentAssociations=new b,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await N(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=F(this._queryController,E),this._queryFeatureCountDebounced=F(this._queryFeatureCountController,E),this._structureAssociations=new b,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=I(),this._associationViewModels=I(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=O}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=this._isSubtypeSublayer(t)?t.parent:t;return U(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:a,_queryAbortController:i,_queryFeatureCountAbortController:o,_queryPageAbortController:c,associationTypes:l}=this;return o||t&&!a?"loading":i||c?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[C(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),C(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),C(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(){this._addFlowItem(q(p`<arcgis-feature-utility-network-association-list .associationViewModels=${this._associationViewModels} .flowItems=${this.flowItems} .flowType=${this.flowType} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`))}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a);return await t.queryFeatureCount({where:o,outFields:["*"],returnGeometry:!1},{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,a,i){if(!e.length)return 0;let o=await this._findLayersBySourceId(t);await this._loadLayers(o);let c=o.map(l=>this._countAssociatedFeatureCount(l,e,s,a,i));return(await Promise.all(c)).reduce((l,r)=>l+r,0)}async _createAssociationFeatureObjects(t,e,s,a,i){if(!t.length)return[];let o=new Map,c=Array.from(e.entries()).map(async([r,d])=>{let u=await this._findLayersBySourceId(r);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,a,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.attributes[_],w=o.get(y)??[];w.push(n),o.set(y,w)}})})});await Promise.all(c);let l=[];return await Promise.all(t.toArray().map(async r=>{let{fromNetworkElement:d,toNetworkElement:u}=r,h=d.globalId===this._globalId?u:d,m=o.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:r,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===j&&e.globalId===j){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},a=t.fromNetworkElement,i=t.toNetworkElement,o=e.fromNetworkElement,c=e.toNetworkElement,l=s(a,o),r=s(i,c);return l&&r&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let a=e.getLayerIdBySourceId(t),i=s.allLayers.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===a),o=s.allTables.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===a);return i.concat(o).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,a){let i=t.globalIdField,o=t.fieldsIndex.get($.assetGroup),c=t.fieldsIndex.get($.assetType),l=s!=null,r=a!=null,d=i?M.sqlIn(i,e):null,u=l?`(${o?.name} = ${s})`:null,h=l&&r?`(${c?.name} = ${a})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let a="displayField"in s?s.displayField:null,i=a!=null?e[a.toString()]:null,o=i!=null?i.toString():null,c=t.getObjectId()?.toString();return o||c||""}_isSubtypeGroupLayer(t){return t!=null&&typeof t=="object"&&"type"in t&&t.type==="subtype-group"&&"sublayers"in t}_isSubtypeSublayer(t){return t?.type==="subtype-sublayer"}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;await Promise.allSettled(t.utilityNetworks?.map(s=>s.load())??[]);let e=this._utilityNetwork;if(e){let s=a=>{if("layerId"in a&&e.isUtilityLayer(a)){let i=a.layerId!=null?e.getSourceIdByLayerId(a.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:a,associationTypes:i,_utilityNetwork:o,_canQuery:c,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),o?.load()]),!c||!s||!i||!o)return;let r=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;r.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:f}=_.globalId===a?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(f),h.set(w,g)});let m=await this._createAssociationFeatureObjects(r,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:a,_utilityNetwork:i,_canQuery:o}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!o||!e||!a||!i||!s)return;let c=this._isSubtypeSublayer(e)?e.parent:e,l=new Q({globalId:s,networkSourceId:i.getSourceIdByLayerId(c.layerId)}),r=new Set;a.forEach(n=>{switch(n.type){case"attachment":case"structure":r.add("attachment");break;case"container":case"content":r.add("containment");break;case"connectivity":r.add("connectivity"),r.add("junction-junction-connectivity"),r.add("junction-edge-from-connectivity"),r.add("junction-edge-midspan-connectivity"),r.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new B({elements:[l],types:Array.from(r)}),{signal:t?.signal}),u=new Map,h=new Map;a.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=a.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,f=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,f,y,w,t):f.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a),c=new x({where:o,outFields:["*"],cacheHint:this._supportsCacheHint}),l=P.fromJSON(await V(t,c,i));return l.features.forEach(r=>{let d=this._isSubtypeGroupLayer(t);r.layer=d?t.findSublayerForFeature(r):t,r.sourceLayer=d?t.findSublayerForFeature(r):t}),l.features}_parseFeatureObjects(t,e){let s=I();t.forEach(a=>{let i=(a?.feature).sourceLayer;D(s,i,()=>new b).add(a)});for(let[a,i]of s)this._sortFeatureObjectsByTitle(i),e.set(a,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem())}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,o)=>{let c=this._associationFeatures.get(o);c?i.forEach(l=>{c.find(r=>this._matchesGlobalFeature(l,r))||(i.remove(l),i.length||this._associationViewModels.delete(o))}):(i.removeAll(),this._associationViewModels.delete(o))});let{map:t,view:e,spatialReference:s,timeZone:a}=this;this._associationFeatures.forEach((i,o)=>{let c=this._associationViewModels.get(o)||new b;i?.filter(Boolean).forEach((l,r)=>{if(!c.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;c.add({title:m,association:d,featureViewModel:new G({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:a,graphic:u}),terminalName:h},r)}}),this._associationViewModels.set(o,c)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:a}=t,i=s.get(e)?.associatedNetworkSourceId,o=this._networkSourceIdsInUse.has(a);return i!=null&&i!==a||!o}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return A(`association-type-${t.type}`,p`<calcite-list-item .description=${L(t.description)} .label=${L(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,a=s?.associationsList??s?.noTitle??"";return A("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${a}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};S("arcgis-feature-utility-network-associations",k);return k},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","rest/support/FeatureSet","rest/support/Query","widgets/Feature/FeatureViewModel")
|
|
3
|
+
v5.0.0-next.42 */
|
|
4
|
+
import{a as F}from"./5W7XVVDR.js";import{a as A}from"./HEZYPQZV.js";import{J as T,N as q,P as S,a as v,b as p}from"./3ZHHI45D.js";import"./N6WGN3RH.js";export default $arcgis.t(([{createReactiveMap:I,findUtilityNetwork:U,queryAllJSON:V,getOrCreateMapValue:D},{stripHTML:L},b,{ignoreAbortErrors:N},{watch:C},M,Q,B,P,x,G])=>{var O=v`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,E=100,$={assetGroup:"assetgroup",assetType:"assettype"},j="{00000000-0000-0000-0000-000000000000}",k=class extends T{constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new b,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new b,this._connectivityFeatureCount=0,this._containerAssociations=new b,this._containerFeatureCount=0,this._contentAssociations=new b,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await N(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=F(this._queryController,E),this._queryFeatureCountDebounced=F(this._queryFeatureCountController,E),this._structureAssociations=new b,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=I(),this._associationViewModels=I(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=O}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=this._isSubtypeSublayer(t)?t.parent:t;return U(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:a,_queryAbortController:i,_queryFeatureCountAbortController:o,_queryPageAbortController:c,associationTypes:l}=this;return o||t&&!a?"loading":i||c?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[C(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),C(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),C(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(){this._addFlowItem(q(p`<arcgis-feature-utility-network-association-list .associationViewModels=${this._associationViewModels} .flowItems=${this.flowItems} .flowType=${this.flowType} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`))}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a);return await t.queryFeatureCount({where:o,outFields:["*"],returnGeometry:!1},{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,a,i){if(!e.length)return 0;let o=await this._findLayersBySourceId(t);await this._loadLayers(o);let c=o.map(l=>this._countAssociatedFeatureCount(l,e,s,a,i));return(await Promise.all(c)).reduce((l,r)=>l+r,0)}async _createAssociationFeatureObjects(t,e,s,a,i){if(!t.length)return[];let o=new Map,c=Array.from(e.entries()).map(async([r,d])=>{let u=await this._findLayersBySourceId(r);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,a,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.attributes[_],w=o.get(y)??[];w.push(n),o.set(y,w)}})})});await Promise.all(c);let l=[];return await Promise.all(t.toArray().map(async r=>{let{fromNetworkElement:d,toNetworkElement:u}=r,h=d.globalId===this._globalId?u:d,m=o.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:r,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===j&&e.globalId===j){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},a=t.fromNetworkElement,i=t.toNetworkElement,o=e.fromNetworkElement,c=e.toNetworkElement,l=s(a,o),r=s(i,c);return l&&r&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let a=e.getLayerIdBySourceId(t),i=s.allLayers.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===a),o=s.allTables.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===a);return i.concat(o).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,a){let i=t.globalIdField,o=t.fieldsIndex.get($.assetGroup),c=t.fieldsIndex.get($.assetType),l=s!=null,r=a!=null,d=i?M.sqlIn(i,e):null,u=l?`(${o?.name} = ${s})`:null,h=l&&r?`(${c?.name} = ${a})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let a="displayField"in s?s.displayField:null,i=a!=null?e[a.toString()]:null,o=i!=null?i.toString():null,c=t.getObjectId()?.toString();return o||c||""}_isSubtypeGroupLayer(t){return t!=null&&typeof t=="object"&&"type"in t&&t.type==="subtype-group"&&"sublayers"in t}_isSubtypeSublayer(t){return t?.type==="subtype-sublayer"}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;await Promise.allSettled(t.utilityNetworks?.map(s=>s.load())??[]);let e=this._utilityNetwork;if(e){let s=a=>{if("layerId"in a&&e.isUtilityLayer(a)){let i=a.layerId!=null?e.getSourceIdByLayerId(a.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:a,associationTypes:i,_utilityNetwork:o,_canQuery:c,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),o?.load()]),!c||!s||!i||!o)return;let r=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;r.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:f}=_.globalId===a?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(f),h.set(w,g)});let m=await this._createAssociationFeatureObjects(r,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:a,_utilityNetwork:i,_canQuery:o}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!o||!e||!a||!i||!s)return;let c=this._isSubtypeSublayer(e)?e.parent:e,l=new Q({globalId:s,networkSourceId:i.getSourceIdByLayerId(c.layerId)}),r=new Set;a.forEach(n=>{switch(n.type){case"attachment":case"structure":r.add("attachment");break;case"container":case"content":r.add("containment");break;case"connectivity":r.add("connectivity"),r.add("junction-junction-connectivity"),r.add("junction-edge-from-connectivity"),r.add("junction-edge-midspan-connectivity"),r.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new B({elements:[l],types:Array.from(r)}),{signal:t?.signal}),u=new Map,h=new Map;a.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=a.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,f=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,f,y,w,t):f.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a),c=new x({where:o,outFields:["*"],cacheHint:this._supportsCacheHint}),l=P.fromJSON(await V(t,c,i));return l.features.forEach(r=>{let d=this._isSubtypeGroupLayer(t);r.layer=d?t.findSublayerForFeature(r):t,r.sourceLayer=d?t.findSublayerForFeature(r):t}),l.features}_parseFeatureObjects(t,e){let s=I();t.forEach(a=>{let i=(a?.feature).sourceLayer;D(s,i,()=>new b).add(a)});for(let[a,i]of s)this._sortFeatureObjectsByTitle(i),e.set(a,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem())}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,o)=>{let c=this._associationFeatures.get(o);c?i.forEach(l=>{c.find(r=>this._matchesGlobalFeature(l,r))||(i.remove(l),i.length||this._associationViewModels.delete(o))}):(i.removeAll(),this._associationViewModels.delete(o))});let{map:t,view:e,spatialReference:s,timeZone:a}=this;this._associationFeatures.forEach((i,o)=>{let c=this._associationViewModels.get(o)||new b;i?.filter(Boolean).forEach((l,r)=>{if(!c.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;c.add({title:m,association:d,featureViewModel:new G({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:a,graphic:u}),terminalName:h},r)}}),this._associationViewModels.set(o,c)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:a}=t,i=s.get(e)?.associatedNetworkSourceId,o=this._networkSourceIdsInUse.has(a);return i!=null&&i!==a||!o}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return A(`association-type-${t.type}`,p`<calcite-list-item .description=${L(t.description)} .label=${L(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,a=s?.associationsList??s?.noTitle??"";return A("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${a}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};S("arcgis-feature-utility-network-associations",k);return k},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","rest/support/FeatureSet","rest/support/Query","widgets/Feature/FeatureViewModel")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import e from"./
|
|
3
|
+
v5.0.0-next.42 */
|
|
4
|
+
import e from"./26AHC2O2.js";import{a as v}from"./WWTVT4BW.js";import{a as _}from"./XRTHTHLN.js";import b from"./CNZZZ66N.js";import a from"./5ZT4TQ3T.js";import{g as m}from"./4OFHSL6U.js";import"./RCWUF6S4.js";import{b as g}from"./TGA6P5QO.js";import{H as l,I as n,J as h,K as c,P as u,a as d,b as i,s}from"./3ZHHI45D.js";import"./N6WGN3RH.js";export default $arcgis.t(([p,{watch:t},,,f])=>{var w=d`:host{--arcgis-video-player-controls-spacing: 16px;width:531px;height:100%}.arcgis-video-player{height:100%}arcgis-video{display:flex;flex:1 1 auto;aspect-ratio:16 / 9;min-height:0}`,V={base:"arcgis-video-player"},M=f(p),a=class extends h{constructor(){super(...arguments),this.messages=v({blocking:!0}),this.viewModel=M(this),this._videoViewRef=l(),this._metadataVisible=!1,this._duration=0,this._currentTime=0,this._bufferedValue=0,this._currentValue=0,this._isBuffering=!1,this._videoViewReady=!1,this.icon="video-web",this.state=this.viewModel.state,this.layer=this.viewModel.layer,this.autoDestroyDisabled=!1,this.hideHeader=!1,this.view=this.viewModel.view,this.arcgisPropertyChange=m()("state","layer"),this.arcgisReady=s(),this.arcgisVideoReady=s()}static{this.properties={_metadataVisible:16,_duration:16,_currentTime:16,_bufferedValue:16,_currentValue:16,_isBuffering:16,_videoViewReady:16,_layerTitle:16,_isLive:16,referenceElement:1,position:3,icon:1,state:3,followingMode:1,layer:0,autoDestroyDisabled:5,messageOverrides:0,label:3,hideHeader:5,view:0}}static{this.styles=w}get followingMode(){return this.viewModel.followingMode}set followingMode(e){this.viewModel.followingMode=e}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[t(()=>[this.viewModel.currentTime,this.viewModel.duration,this.viewModel.duration,this.viewModel.ended],()=>{let{buffered:e,currentTime:o,duration:r,ended:y}=this.viewModel;this._duration=r,this._currentTime=o,this._bufferedValue=e/(r||1),this._currentValue=o/(r||1),this._isBuffering=!y&&this._bufferedValue<this._currentValue}),t(()=>this._videoViewRef.value?.ready,e=>{this._videoViewReady=!!e},{initial:!0}),t(()=>this.layer?.title,e=>{this._layerTitle=e??void 0},{initial:!0}),t(()=>this.layer?.isLive,e=>{this._isLive=e??void 0},{initial:!0}),t(()=>this.viewModel.view?.map,()=>this.requestUpdate())])}render(){return i`<div class=${c(g(V.base,_.widget))}><calcite-panel .heading=${this.hideHeader?void 0:this._layerTitle??this.messages.videoPlayer}>${this._renderLoadingScrim()}${this._renderBuffering()}${this._renderVideoSection()}${this._renderSlider()}${this._renderActionBar()}${this._renderMetadataSection()}</calcite-panel></div>`}_renderLoadingScrim(){return this._videoViewReady?null:i`<calcite-scrim .loading=${this.state!=="error"}>${this.state==="error"?this.messages.errorLoadingLayer:null}</calcite-scrim>`}_renderBuffering(){return this._isBuffering?i`<calcite-progress type=indeterminate></calcite-progress>`:null}_renderVideoSection(){return i`<arcgis-video .layer=${this.layer} .map=${this.viewModel.view?.map} @arcgisViewReadyChange=${()=>this.arcgisVideoReady.emit()} ${n(this._videoViewRef)}></arcgis-video>`}_renderSlider(){return this._isLive?null:i`<arcgis-video-player-slider .buffered=${this._bufferedValue} .value=${this._currentValue*100} .viewModel=${this.viewModel}></arcgis-video-player-slider>`}_renderActionBar(){return i`<arcgis-video-player-action-bar .currentTime=${this._currentTime} .duration=${this._duration} .messages=${this.messages} .toggleMetadata=${()=>this._metadataVisible=!this._metadataVisible} .viewModel=${this.viewModel}></arcgis-video-player-action-bar>`}_renderMetadataSection(){return this._metadataVisible?i`<arcgis-video-player-metadata .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-video-player-metadata>`:null}};u("arcgis-video-player",a);return a},"widgets/VideoPlayer/VideoPlayerViewModel","core/reactiveUtils",a,b,e)
|