@esri/solutions-components 1.0.0-next.20250527 → 1.0.0-next.20250528
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/{KLTKP44P.js → 24W4CW4F.js} +2 -2
- package/dist/cdn/{FDS6BXSK.js → 24WYI66F.js} +2 -2
- package/dist/cdn/{4VEVP7VR.js → 25RUIQSO.js} +2 -2
- package/dist/cdn/{EVPML3KI.js → 25ZWUXFO.js} +2 -2
- package/dist/cdn/{LIDCP5J3.js → 2ACVTFWH.js} +2 -2
- package/dist/cdn/{KEV7F3I7.js → 2AYAUMKZ.js} +2 -2
- package/dist/cdn/{IISFOSAT.js → 2QJG47YD.js} +2 -2
- package/dist/cdn/{4S4I2WWJ.js → 2S6OZOKM.js} +2 -2
- package/dist/cdn/{EWIDYPOD.js → 2SL6Z6TM.js} +2 -2
- package/dist/cdn/{JB3LMWPB.js → 37VSZ3UG.js} +2 -2
- package/dist/cdn/{I5XFVPIL.js → 3GDPB4SN.js} +2 -2
- package/dist/cdn/{GRZ5ZWHL.js → 3L6DEVIK.js} +2 -2
- package/dist/cdn/{XMPWXXAF.js → 3LVLGGLP.js} +2 -2
- package/dist/cdn/{X4ZR26LK.js → 3YNQSVNT.js} +1 -1
- package/dist/cdn/{JSXL76GE.js → 4433JH2R.js} +1 -1
- package/dist/cdn/{OII6ULBO.js → 44MEZFTF.js} +2 -2
- package/dist/cdn/{VXMZHNM5.js → 4EDDSKZS.js} +1 -1
- package/dist/cdn/{LIHE32UV.js → 4JGCEBGT.js} +1 -1
- package/dist/cdn/{5VZIXTV2.js → 4KRD733S.js} +1 -1
- package/dist/cdn/{GTBF26FU.js → 4ZZ767AP.js} +2 -2
- package/dist/cdn/{BUKUYGGP.js → 52W5VWDL.js} +1 -1
- package/dist/cdn/{C44UX3EI.js → 55BUMEUY.js} +2 -2
- package/dist/cdn/{RP6G34AS.js → 5A3GJKYM.js} +2 -2
- package/dist/cdn/{VJS7MQRJ.js → 5ENIF5PT.js} +2 -2
- package/dist/cdn/{ZS5IBKPP.js → 5GM4BLLQ.js} +2 -2
- package/dist/cdn/{OMDZIRBF.js → 5IAANDGE.js} +2 -2
- package/dist/cdn/{HF3QJXW2.js → 5IBV6E7G.js} +2 -2
- package/dist/cdn/{BX7YA2BC.js → 5RNOJK2U.js} +2 -2
- package/dist/cdn/{5JR6OKML.js → 5VBCGIEG.js} +2 -2
- package/dist/cdn/{7U3JDJ6D.js → 5VQIZRBI.js} +1 -1
- package/dist/cdn/{S2JKF4KM.js → 5XJ6SZ36.js} +2 -2
- package/dist/cdn/{6O7AHIQD.js → 5YIEEOQO.js} +2 -2
- package/dist/cdn/{KE7BGL2M.js → 65N7XAWB.js} +1 -1
- package/dist/cdn/{NIAHRYPX.js → 67VSRPIM.js} +2 -2
- package/dist/cdn/{IILFAB4B.js → 6CED3D3P.js} +2 -2
- package/dist/cdn/{SUM6FGHT.js → 6CWLNSWC.js} +2 -2
- package/dist/cdn/{44RI6E5S.js → 6GACAQSQ.js} +2 -2
- package/dist/cdn/{NSD7QWT5.js → 6N2DIXJF.js} +2 -2
- package/dist/cdn/{HWP7XSKU.js → 6N7OJ52Y.js} +2 -2
- package/dist/cdn/{L2SSX7FR.js → 6PVCA5ZX.js} +2 -2
- package/dist/cdn/{GNZLER6U.js → 6XZWFS7Y.js} +1 -1
- package/dist/cdn/{NA5P6M4G.js → 75AICF3J.js} +1 -1
- package/dist/cdn/{CXKBIPNN.js → 7EJ7QFCG.js} +2 -2
- package/dist/cdn/{A7A3AQBP.js → 7LP7G3G5.js} +2 -2
- package/dist/cdn/{GCOMYMDE.js → 7YJX66H4.js} +1 -1
- package/dist/cdn/{X77AXWEV.js → A32DRANT.js} +2 -2
- package/dist/cdn/{RAREZBUC.js → A3VAIZ52.js} +2 -2
- package/dist/cdn/{63VMIWOD.js → AAQIWO65.js} +2 -2
- package/dist/cdn/{RKQPPIVQ.js → AAW2CYTN.js} +2 -2
- package/dist/cdn/{ANUWXCJE.js → ABFH5NTH.js} +2 -2
- package/dist/cdn/{FAMQZBXX.js → ABWFIKPD.js} +2 -2
- package/dist/cdn/{MHAFURF2.js → AGVDOFMZ.js} +2 -2
- package/dist/cdn/{BXHY7M2I.js → AKIPP4VC.js} +2 -2
- package/dist/cdn/{XUMWU7UL.js → AMJZ2LFK.js} +2 -2
- package/dist/cdn/{JL3XW6D5.js → ANX7JVYO.js} +2 -2
- package/dist/cdn/{RBV4DYA7.js → APENH3LP.js} +2 -2
- package/dist/cdn/{NNZOVLIE.js → B2FYFHU7.js} +2 -2
- package/dist/cdn/{CAPR2OBA.js → BBZU6JPM.js} +2 -2
- package/dist/cdn/{AGHLWJCI.js → BLLKRGVR.js} +2 -2
- package/dist/cdn/{QQ7X6CB7.js → BLURTZNI.js} +2 -2
- package/dist/cdn/{ZLIHWJKM.js → BLY5B6IS.js} +1 -1
- package/dist/cdn/{DCRNCJR3.js → BPPOS7VC.js} +1 -1
- package/dist/cdn/{K333B4K6.js → BRT74BII.js} +2 -2
- package/dist/cdn/{JFMG5CPF.js → BUTQMMJS.js} +2 -2
- package/dist/cdn/{TI2Y6JJI.js → BV7DCC4N.js} +2 -2
- package/dist/cdn/{46S7SJ4W.js → BVKD52TV.js} +1 -1
- package/dist/cdn/BWTP5UGR.js +4 -0
- package/dist/cdn/{6X7IR5JR.js → BYTWF7MG.js} +2 -2
- package/dist/cdn/{6UHZHKBX.js → C47XZYAG.js} +2 -2
- package/dist/cdn/{LCATSOQE.js → C6W4EBHD.js} +2 -2
- package/dist/cdn/{WUSTNVO6.js → CEDHHVFY.js} +2 -2
- package/dist/cdn/{NMFETHT2.js → CFTM5CZE.js} +2 -2
- package/dist/cdn/{OU23PWPG.js → CH65TEDK.js} +1 -1
- package/dist/cdn/{XVUBWS3R.js → CN7CLX6P.js} +2 -2
- package/dist/cdn/{YVZMTTO6.js → CO5U6E2B.js} +2 -2
- package/dist/cdn/{Q2HLT5H7.js → CVIE4PDN.js} +1 -1
- package/dist/cdn/{NV7RQ6AS.js → CYUT3EFC.js} +2 -2
- package/dist/cdn/{DHCPRRPJ.js → CZXYR4ZF.js} +2 -2
- package/dist/cdn/{LH2OOZVN.js → D3FZEWBP.js} +1 -1
- package/dist/cdn/{LCYX3FH3.js → D42V7PBV.js} +2 -2
- package/dist/cdn/{LQGK36AL.js → D5UC5SVZ.js} +2 -2
- package/dist/cdn/{KNGWUUE5.js → DFKPE66D.js} +2 -2
- package/dist/cdn/{JTVVD77L.js → DMPPY7GI.js} +2 -2
- package/dist/cdn/{PZ2CELOG.js → DNCEXQFU.js} +2 -2
- package/dist/cdn/{BYOIV2MC.js → DOZD6J4O.js} +2 -2
- package/dist/cdn/{BHLQUDJE.js → DRMYZSAV.js} +2 -2
- package/dist/cdn/{KSWUZAKY.js → DX3SET3L.js} +2 -2
- package/dist/cdn/{5UDBH3AJ.js → DX5OVPFT.js} +2 -2
- package/dist/cdn/{XN42T3TF.js → DXKDQ4AX.js} +2 -2
- package/dist/cdn/{SLRLJFCN.js → DYIHGLWU.js} +2 -2
- package/dist/cdn/E24CFSF6.js +4 -0
- package/dist/cdn/E2FWRG3J.js +5 -0
- package/dist/cdn/E4RIBJ2G.js +4 -0
- package/dist/cdn/{FVT5NB5I.js → E645QUGL.js} +2 -2
- package/dist/cdn/{WBIR3R5J.js → E65KQPOC.js} +2 -2
- package/dist/cdn/{YHVV3MQK.js → E6VMU3PC.js} +2 -2
- package/dist/cdn/{AXC7Q5YN.js → E7E3UI3G.js} +2 -2
- package/dist/cdn/{Q3JYAQZB.js → EI6DJKRP.js} +2 -2
- package/dist/cdn/{UW72AJWR.js → EJ5VJ4MH.js} +2 -2
- package/dist/cdn/{LS4RJUFW.js → EKDX37DH.js} +2 -2
- package/dist/cdn/{JXPQTJK7.js → EKVI5K4J.js} +2 -2
- package/dist/cdn/{GW6GEGTU.js → EL2LQYMI.js} +2 -2
- package/dist/cdn/{E5LACIWR.js → EMWBSXP7.js} +2 -2
- package/dist/cdn/{4PKBB5DI.js → EOQESQYS.js} +1 -1
- package/dist/cdn/{IEHPZCNW.js → F7J5AVP6.js} +1 -1
- package/dist/cdn/{USDB7GLV.js → FCJVHDUH.js} +2 -2
- package/dist/cdn/{QXSLNBB7.js → FEZB7BTL.js} +2 -2
- package/dist/cdn/{YPBPLW3U.js → FGFMYMTA.js} +2 -2
- package/dist/cdn/{MTZ7UR3K.js → FII3CMHX.js} +2 -2
- package/dist/cdn/{AOTMR5JH.js → FKXGGTJC.js} +2 -2
- package/dist/cdn/FR3L4TW7.js +4 -0
- package/dist/cdn/{G4OVP2GL.js → FXKW2C3F.js} +2 -2
- package/dist/cdn/{YGK4XFKQ.js → FYTWFRTO.js} +1 -1
- package/dist/cdn/FZRUF6CO.js +4 -0
- package/dist/cdn/{QB2W5UUD.js → G24WN4EN.js} +2 -2
- package/dist/cdn/{PRMAOD3Y.js → GDOS5KO6.js} +2 -2
- package/dist/cdn/GFYWDQWM.js +4 -0
- package/dist/cdn/{6SBCRAD2.js → GJ2OS72Q.js} +2 -2
- package/dist/cdn/{JJFLJJVV.js → GKMXDGZF.js} +2 -2
- package/dist/cdn/{5TCI4UUE.js → GMA3NBTA.js} +2 -2
- package/dist/cdn/{LDW2HYY6.js → GNLAD5Z6.js} +1 -1
- package/dist/cdn/{NTPMI2XK.js → GP7NQO7J.js} +2 -2
- package/dist/cdn/{UNVKZZCI.js → GUYZ6TVU.js} +2 -2
- package/dist/cdn/{OZAC6527.js → GWXVNAEF.js} +2 -2
- package/dist/cdn/{2FR3WWO6.js → GXXVAQDK.js} +2 -2
- package/dist/cdn/{TQ4BYZJK.js → H2NSBFWF.js} +2 -2
- package/dist/cdn/{PFVETMVP.js → HA3GGXFE.js} +2 -2
- package/dist/cdn/{MDMSXOJI.js → HBJLJEV6.js} +2 -2
- package/dist/cdn/{SI2LQ7QK.js → HEMGGNXH.js} +2 -2
- package/dist/cdn/{APXPR3UA.js → HIHCOY2K.js} +2 -2
- package/dist/cdn/{NWQYXV7R.js → HITN2DRN.js} +1 -1
- package/dist/cdn/{5QKSZ4OI.js → HMLEGLZ7.js} +2 -2
- package/dist/cdn/HMVKLXKH.js +4 -0
- package/dist/cdn/{5BZMMIGZ.js → HQHIIMPM.js} +2 -2
- package/dist/cdn/{FDWSOFET.js → HTWTYESZ.js} +2 -2
- package/dist/cdn/{VXV6RF6H.js → HVU2EO42.js} +2 -2
- package/dist/cdn/{TDH3SPXE.js → I33AEX6O.js} +2 -2
- package/dist/cdn/I4DHTV7R.js +4 -0
- package/dist/cdn/{3BSQVMIG.js → IHDMSZP6.js} +2 -2
- package/dist/cdn/{HMK3OJVH.js → IJIQR7LK.js} +2 -2
- package/dist/cdn/{2CR5YP5T.js → INHRZ23K.js} +2 -2
- package/dist/cdn/{WL6XGE7F.js → IUZA5X57.js} +2 -2
- package/dist/cdn/{FG37V7AM.js → J5J7VURJ.js} +2 -2
- package/dist/cdn/{PA4OX5AE.js → J7CYSJA6.js} +2 -2
- package/dist/cdn/JCWMZ7NC.js +4 -0
- package/dist/cdn/{R7LQHAK6.js → JDVDAXYA.js} +2 -2
- package/dist/cdn/{I6ADTVPV.js → JFS4GZ6K.js} +1 -1
- package/dist/cdn/{FTUS3ZZD.js → JHVRHMPX.js} +2 -2
- package/dist/cdn/{EFAQK6LU.js → JNS7O2LI.js} +2 -2
- package/dist/cdn/{64JCPDPG.js → JUSJWXDQ.js} +1 -1
- package/dist/cdn/JWTZEV6W.js +4 -0
- package/dist/cdn/{PLOMKUYS.js → K2P2DNKH.js} +2 -2
- package/dist/cdn/{T2KBMHNQ.js → KPYNNZU2.js} +2 -2
- package/dist/cdn/{NIPSOKTV.js → KQTZ6C5H.js} +2 -2
- package/dist/cdn/{TJK3RWHW.js → KRBE6UMS.js} +1 -1
- package/dist/cdn/{VBFSJCXY.js → KRI567KM.js} +2 -2
- package/dist/cdn/{JJQY7KYC.js → KV7CP4TD.js} +2 -2
- package/dist/cdn/{GLEU726R.js → L4PVVSFZ.js} +2 -2
- package/dist/cdn/{CRWYDAPO.js → L7R6K4A2.js} +1 -1
- package/dist/cdn/{KAX3GFY3.js → LAXD5CVD.js} +2 -2
- package/dist/cdn/{537RGAI2.js → LEY2V5RH.js} +2 -2
- package/dist/cdn/{DJUGU6F3.js → LFZ4GYFK.js} +2 -2
- package/dist/cdn/{DPK5JP5Z.js → LLEBDKSN.js} +2 -2
- package/dist/cdn/{SYVF64KF.js → LMK5U4FX.js} +2 -2
- package/dist/cdn/{MVWFRNDQ.js → LOIPX2ER.js} +2 -2
- package/dist/cdn/{5IN5TCHB.js → LSAVJADZ.js} +2 -2
- package/dist/cdn/{PC4K557A.js → LUZ6KCKH.js} +2 -2
- package/dist/cdn/{WIB266LQ.js → LXYX76VN.js} +2 -2
- package/dist/cdn/{DQXSWU2C.js → M2TA6G4S.js} +2 -2
- package/dist/cdn/{FX3UFEOX.js → M4VWLPTM.js} +2 -2
- package/dist/cdn/{OOEQOO4R.js → M7IGOHUD.js} +2 -2
- package/dist/cdn/{JDEUATYQ.js → MB7QENIY.js} +1 -1
- package/dist/cdn/MCX2WJIW.js +4 -0
- package/dist/cdn/{AIAURVDF.js → MGD53ADT.js} +2 -2
- package/dist/cdn/{GSH3IQC7.js → MI5ZANBW.js} +2 -2
- package/dist/cdn/{E2RH7ORD.js → MJEB763W.js} +1 -1
- package/dist/cdn/{2FPSFYMR.js → MQKIZQYU.js} +2 -2
- package/dist/cdn/{6UJMA4B7.js → MSJQ4JDQ.js} +1 -1
- package/dist/cdn/{YOEFZWD7.js → MYDDP7BI.js} +1 -1
- package/dist/cdn/{YHL3W2BR.js → N7CW4A4R.js} +2 -2
- package/dist/cdn/{GG2O6M6F.js → NBW6TGCY.js} +2 -2
- package/dist/cdn/{HYP3LJUB.js → NGTSVG7L.js} +2 -2
- package/dist/cdn/{SF3CBIXU.js → NK3PNJXB.js} +2 -2
- package/dist/cdn/{MHM6LX52.js → NVQA2OXP.js} +2 -2
- package/dist/cdn/{FK6PXAFK.js → NYLKYV7F.js} +2 -2
- package/dist/cdn/{MAKHYGHW.js → O3N5NP7L.js} +1 -1
- package/dist/cdn/OJFX5K3G.js +18 -0
- package/dist/cdn/{UMT5U2EI.js → OLFBYRLF.js} +2 -2
- package/dist/cdn/{V6MXF4ZU.js → OPNL2BKB.js} +2 -2
- package/dist/cdn/{5V2ALVQG.js → OX2K54DK.js} +2 -2
- package/dist/cdn/{MUMQOFEJ.js → PEDUZUAO.js} +2 -2
- package/dist/cdn/{DIWAGHL2.js → PL35BRBK.js} +2 -2
- package/dist/cdn/{Q7ET6ENS.js → PRIGD4HE.js} +2 -2
- package/dist/cdn/{REY2MYT4.js → PYJIK3CR.js} +2 -2
- package/dist/cdn/{X6NR7NXP.js → Q5UREG2V.js} +1 -1
- package/dist/cdn/{C7SX5PIG.js → QFZ4AJSY.js} +2 -2
- package/dist/cdn/{BG42TE2C.js → QQCYF2HJ.js} +2 -2
- package/dist/cdn/{OAIG3A5C.js → QSEANYSR.js} +2 -2
- package/dist/cdn/{AST5SYZZ.js → QTIN4PMT.js} +2 -2
- package/dist/cdn/{CPFZ7C7R.js → QU6F2S3L.js} +3 -3
- package/dist/cdn/{6J7BXCVQ.js → QUJHDDZX.js} +1 -1
- package/dist/cdn/{CAOIDDMV.js → R5UW5BBB.js} +2 -2
- package/dist/cdn/{DPNVOK37.js → R6U6QOKC.js} +2 -2
- package/dist/cdn/{V4Z3RSZX.js → RAYJRNTN.js} +2 -2
- package/dist/cdn/{LMZ4LEFD.js → RE44UO66.js} +1 -1
- package/dist/cdn/{QM2YR4NU.js → RSWKNEWY.js} +2 -2
- package/dist/cdn/{ODQJCHUF.js → RURXPJYT.js} +2 -2
- package/dist/cdn/{FCCUMLZS.js → RXO3BGVO.js} +2 -2
- package/dist/cdn/{TXKGE7ZQ.js → SC3ZFF3Y.js} +2 -2
- package/dist/cdn/{R7ZQ3AWG.js → SDPZNJWX.js} +2 -2
- package/dist/cdn/{U4LLR3MN.js → SEPT44JR.js} +2 -2
- package/dist/cdn/{6LNJ6PAK.js → SJ3Q55BE.js} +2 -2
- package/dist/cdn/{JIXASV3Y.js → SOLDJVDR.js} +2 -2
- package/dist/cdn/{LERO6KZ3.js → ST5JB4CK.js} +2 -2
- package/dist/cdn/{OEF5KO25.js → SWWLO6K6.js} +2 -2
- package/dist/cdn/{7VJ6VE65.js → SXHBKU6W.js} +2 -2
- package/dist/cdn/{K63JNYJV.js → SYQODL47.js} +2 -2
- package/dist/cdn/{QOT3V2NC.js → T33NVZXY.js} +2 -2
- package/dist/cdn/{P7DNXORC.js → T3JY6H4E.js} +2 -2
- package/dist/cdn/{OXSGOW5F.js → T74GEZCH.js} +2 -2
- package/dist/cdn/{LSQLZC5R.js → TI446Z7R.js} +2 -2
- package/dist/cdn/{KBHUDHV4.js → TM4ZSPAB.js} +2 -2
- package/dist/cdn/{UVCZC4HS.js → TOODIZT4.js} +2 -2
- package/dist/cdn/{XPY333GL.js → TRAZ3VPR.js} +2 -2
- package/dist/cdn/{25JX6PU3.js → TUGBBV6B.js} +2 -2
- package/dist/cdn/{BBLUY3P6.js → UBZ6KMGN.js} +2 -2
- package/dist/cdn/{NQ3SUJZP.js → UC5VQMM6.js} +2 -2
- package/dist/cdn/{GZUQL4BQ.js → UD7F6DCG.js} +1 -1
- package/dist/cdn/{WEDSERWT.js → UDLBJXHJ.js} +2 -2
- package/dist/cdn/{F62R4ACI.js → UFWRGJDV.js} +2 -2
- package/dist/cdn/{5TYU5CYW.js → UHGNCI7M.js} +2 -2
- package/dist/cdn/{MBSD4LFU.js → UKW7WIFN.js} +2 -2
- package/dist/cdn/{ZLW7KZZA.js → URWOL2IQ.js} +2 -2
- package/dist/cdn/{YMDOT325.js → UWM44QLQ.js} +2 -2
- package/dist/cdn/{ZN6K2475.js → UZOCT7SV.js} +2 -2
- package/dist/cdn/{THLFRRBP.js → V6KN5QPT.js} +2 -2
- package/dist/cdn/{ROPLPM6H.js → VC6W4X4W.js} +1 -1
- package/dist/cdn/{TLJSKEF2.js → VFEXPJTW.js} +2 -2
- package/dist/cdn/{JIDGAGLR.js → VIJAXFTF.js} +2 -2
- package/dist/cdn/{OXMMTI72.js → VTPBT7MQ.js} +2 -2
- package/dist/cdn/{UQGEHP44.js → W3A6FIHZ.js} +2 -2
- package/dist/cdn/{ALJDMHRR.js → W5OOXAU4.js} +1 -1
- package/dist/cdn/{L5OD2PRY.js → W7XBKGFN.js} +2 -2
- package/dist/cdn/{SZF3N6BX.js → WF52YQCF.js} +2 -2
- package/dist/cdn/{4DEUX5UD.js → WHWBIGAH.js} +2 -2
- package/dist/cdn/{WKEWPVQS.js → WLHFDDBG.js} +2 -2
- package/dist/cdn/{YWYAMPHA.js → WOMBW52B.js} +2 -2
- package/dist/cdn/{BWGMZL4P.js → X2K4VP7N.js} +2 -2
- package/dist/cdn/{GIZLPR4F.js → X3LPGOUH.js} +2 -2
- package/dist/cdn/{KKQCFG46.js → X3SEAUPP.js} +2 -2
- package/dist/cdn/{QIPEXDJZ.js → X4HL3D2I.js} +2 -2
- package/dist/cdn/{MJQQWZ2I.js → X5DGQ5OF.js} +2 -2
- package/dist/cdn/{PYTQBHHA.js → X6UMCCK5.js} +2 -2
- package/dist/cdn/{XDBUQLWI.js → X6X5OCFG.js} +2 -2
- package/dist/cdn/{WCOLYJKR.js → XI7PRITM.js} +2 -2
- package/dist/cdn/{HRYYLGCK.js → XIBAIK2Z.js} +2 -2
- package/dist/cdn/{3A4PIGXU.js → XLUHLOEX.js} +2 -2
- package/dist/cdn/{5SDXXIBS.js → XQFJPY6R.js} +2 -2
- package/dist/cdn/{IS4PTDJ6.js → Y57AHJQ2.js} +2 -2
- package/dist/cdn/Y7EKW72S.js +4 -0
- package/dist/cdn/{ZJNFYOEQ.js → YFR4OJTM.js} +2 -2
- package/dist/cdn/{L3MXQ3JY.js → YFZCGZOB.js} +2 -2
- package/dist/cdn/{B5XNLTLN.js → YHDZXWFB.js} +2 -2
- package/dist/cdn/{XD5VDXU5.js → YKWSPTR2.js} +2 -2
- package/dist/cdn/{O4FBWTRU.js → YP6FSEFL.js} +4 -4
- package/dist/cdn/{NW6QJZPB.js → YP6O3AK4.js} +2 -2
- package/dist/cdn/{HTRK44BK.js → YQNXV3P3.js} +2 -2
- package/dist/cdn/{TUYT7BM6.js → YWGNQDQM.js} +1 -1
- package/dist/cdn/{AVGQ37VZ.js → Z2GSRYNO.js} +2 -2
- package/dist/cdn/{OLMYFVXS.js → ZA32GRGJ.js} +2 -2
- package/dist/cdn/{NFJQ2Y5K.js → ZHH6EKP5.js} +2 -2
- package/dist/cdn/{XC7P62BS.js → ZI7JVVEX.js} +2 -2
- package/dist/cdn/{KZFCEPFO.js → ZKIE5GVW.js} +2 -2
- package/dist/cdn/{FEDM5I6K.js → ZSU4BSTS.js} +3 -3
- package/dist/cdn/{W5F5KJOV.js → ZSYHLMKN.js} +1 -1
- package/dist/cdn/{OLX7SYQT.js → ZZZOCU5W.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +3 -3
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +2 -2
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.d.ts +0 -6
- package/dist/components/layer-table/customElement.js +47 -57
- package/dist/components/layer-table/index.d.ts +0 -2
- package/dist/components/layer-table/index.js +0 -2
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-panel/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-panel/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-panel/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-items-diagram/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +2 -31
- package/dist/docs/docs.json +2 -24
- package/dist/docs/vscode.html-custom-data.json +0 -5
- package/dist/docs/web-types.json +1 -14
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +2 -2
- package/dist/cdn/2OAMBM74.js +0 -4
- package/dist/cdn/7Z6THPNR.js +0 -4
- package/dist/cdn/CNIL25LT.js +0 -5
- package/dist/cdn/CYCDBJBR.js +0 -4
- package/dist/cdn/J3XMDBBQ.js +0 -4
- package/dist/cdn/JCDOFY7S.js +0 -4
- package/dist/cdn/KQPNTN77.js +0 -4
- package/dist/cdn/MXUR2RDQ.js +0 -4
- package/dist/cdn/N5SGBWA5.js +0 -4
- package/dist/cdn/NAYBTVB7.js +0 -18
- package/dist/cdn/PDF537RL.js +0 -4
- package/dist/cdn/RWWI53WR.js +0 -4
- package/dist/cdn/XO7PUYQN.js +0 -4
- package/dist/cdn/ZQMBCL52.js +0 -4
@@ -0,0 +1,18 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import"./JFS4GZ6K.js";import{b as C}from"./YP6FSEFL.js";import"./M7IGOHUD.js";import"./T33NVZXY.js";import"./UD7F6DCG.js";import"./AAQIWO65.js";import"./D3FZEWBP.js";import"./HITN2DRN.js";import"./O3N5NP7L.js";import{a as O}from"./DX3SET3L.js";import"./VFEXPJTW.js";import{c as S,d as F,j as b}from"./HVU2EO42.js";import"./CH65TEDK.js";import{c as E}from"./MB7QENIY.js";import{a as p,b as g}from"./KV7CP4TD.js";import{b as T}from"./3YNQSVNT.js";import{a as x}from"./SOLDJVDR.js";import{D as I,E as _,I as v,c as m,d,g as o,o as c,q as w}from"./Q5UREG2V.js";import"./6XZWFS7Y.js";var $=m`@layer{/** @license
|
5
|
+
* Copyright 2025 Esri
|
6
|
+
*
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
* you may not use this file except in compliance with the License.
|
9
|
+
* You may obtain a copy of the License at
|
10
|
+
*
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
*
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
* See the License for the specific language governing permissions and
|
17
|
+
* limitations under the License.
|
18
|
+
*/:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}.label-override{--calcite-label-margin-bottom: 0px}.padding-start-1-4{padding-inline-start:.5rem}.panel-header-override{--calcite-panel-header-content-space: 0px}.danger-label-color{--calcite-label-text-color: var(--calcite-color-status-danger)}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.width-51{width:51px}.height-51{height:51px}}`,y=class extends I{constructor(){super(),this.defaultGlobalId=[],this.defaultLayerId="",this.defaultOid=[],this.enableAutoRefresh=!1,this.enableColumnReorder=!0,this.enableCSV=!1,this.enableInlineEdit=!1,this.enableShare=!1,this.featureSelectionMode="multiple",this.selectedRelatedIds=[],this.honorMapFieldSettings=!1,this.isMobile=!1,this.mapHidden=!1,this.showOnlyUpdatableLayers=!1,this.selectedIds=[],this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!1,this.zoomAndScrollToSelected=!1,this._allIds=[],this._csvExporting=!1,this._fetchingData=!1,this._filterActive=!1,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=[],this._translations=x({name:"layer-table",blocking:!0}),this._fullTextSearchInfo=[],this._searchPlaceHolder="",this._size=0,this._queryingData=!1,this._editEnabled=!1,this._defaultFilterHonored=!1,this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._definitionExpression="",this._deleteEnabled=!1,this._filterList=p(),this._floorExpression="",this._floorField="",this._floorFacility="",this._floorLevel="",this._floorSite="",this._layerExpressions=[],this._loaded=!1,this._shareNode=p(),this._toolbar=p(),this._searchExpression="",this._skipEditCheck=!1,this._tempSelectedIds=[],this._outOFExtentOids=[],this._shouldUpdateTableOnExtentChange=!0,this._creatingFeature=!1,this.featureSelectionChange=c(),this.toggleFilter=c(),this.showDelete=c(),this.relatedRecordToggled=c(),this.listenOn(window,"beforeMapInfoChange",this.beforeMapInfoChange,{capture:!0}),this.listenOn(window,"editorInitialized",this.editorInitialized),this.listenOn(window,"closeEdit",this.closeEdit),this.listenOn(window,"selectionChanged",this.selectionChanged),this.listenOn(window,"beforeLayerSelectionChange",this.beforeLayerSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"editsComplete",this.editsComplete),this.listenOn(window,"facilityChanged",this.facilityChanged),this.listenOn(window,"levelChanged",this.levelChanged),this.listenOn(window,"siteChanged",this.siteChanged),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"clearSelection",this.clearSelection),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"featuresSelected",this.featuresSelected),this.listenOn(window,"createWorkFlowStarted",this.createWorkFlowStarted),this.listenOn(window,"backFromCreateWorkFlow",this.backFromCreateWorkFlow),O(window)}static{this.properties={appLayout:1,defaultGlobalId:0,defaultLayerId:1,defaultOid:0,enableAutoRefresh:5,enableColumnReorder:5,enableCSV:5,enableInlineEdit:5,enableShare:5,featureSelectionMode:1,selectedRelatedIds:0,honorMapFieldSettings:5,isMobile:5,mapHidden:5,mapInfo:0,mapView:0,showOnlyUpdatableLayers:5,selectedIds:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,zoomAndScrollToSelected:5,zoomToScale:9,_allIds:16,_csvExporting:16,_fetchingData:16,_filterActive:16,_layer:16,_selectAllActive:16,_showHideOpen:16,_showOnlySelected:16,_toolInfos:16,_translations:16,_fullTextSearchInfo:16,_searchPlaceHolder:16,_size:16,_queryingData:16}}static{this.styles=$}static{this.shadowRootOptions=w}willUpdate(e){if(e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("defaultOid")&&this.defaultOidWatchHandler(),e.has("defaultGlobalId")&&this.defaultGlobalIdWatchHandler(),e.has("enableCSV")&&this.enableCSVWatchHandler(),e.has("enableInlineEdit")&&this.enableInlineEditWatchHandler(),e.has("mapHidden")&&this.mapHiddenWatchHandler(),e.has("isMobile")&&this.isMobileWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("_layer")&&this._layerWatchHandler(),e.has("selectedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedIds"))!==JSON.stringify(this.selectedIds))&&this.selectedIdsWatchHandler(),e.has("selectedRelatedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedRelatedIds"))!==JSON.stringify(this.selectedRelatedIds))&&this.selectedRelatedIdsWatchHandler(),e.has("_translations")){let t=this._translations._lang,i=e.get("_translations")?._lang;t&&i&&t!==i&&this._initToolInfos()}}async appLayoutWatchHandler(){await this._initToolInfos(),this._updateShareUrl()}async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}async enableCSVWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}async mapHiddenWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}async isMobileWatchHandler(){!this._toolInfos&&!this.isMobile&&await this._initToolInfos()}async mapInfoWatchHandler(){this._table&&this._resetColumnTemplates()}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._floorExpression="",this._searchExpression="undefined",this.mapView.highlights=[{name:"default",color:"#00FFFF"},{name:"current-selection",color:"#ff00ff"},{name:"temporary",color:"#FFFF00"}],this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils?.on(()=>this.mapView,"click",e=>{this._creatingFeature||this._mapClicked(e)}))}async _layerWatchHandler(){this._fetchingData=!0,await this._layer?.when(async()=>{this._definitionExpression=this._layer?.definitionExpression||"",this._floorField=this._layer?.floorInfo?.floorField||"",this._updateFloorDefinitionExpression(),await this._resetTable(),this._updateShareUrl(),this._fetchingData=!1})}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1),this.selectedIds.length>0&&(this._table.rowHighlightIds.removeAll(),this._table.rowHighlightIds.add(this.selectedIds[0])),this.selectedIds.length===0&&setTimeout(()=>{this.featureSelectionChange.emit(this.selectedIds)},700)}async selectedRelatedIdsWatchHandler(){this._validateEnabledActions(),this.selectedRelatedIds.length>0&&(this._relatedFeatureTable?.rowHighlightIds.removeAll(),this._relatedFeatureTable?.rowHighlightIds.add(this.selectedRelatedIds[0]))}async closeFilter(){await this._closeFilter()}async filterReset(){this._filterByExtentHandle&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle.remove(),this._filterByExtentHandle=void 0),await this._handleFilterListReset()}async filterUpdate(e,t){await this._handleFilterUpdate(e),t?(this._shouldUpdateTableOnExtentChange=!0,this._handleTableOnMapExtent()):t===!1&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle?.remove(),this._filterByExtentHandle=void 0,await this._updateAllIds())}async validateTableUpdate(e){this._shouldUpdateTableOnExtentChange=e}async validateActiveEdits(){return this._validateActiveEdits([],this.selectedIds)}async refresh(){this._table&&await this._refresh()}async beforeMapInfoChange(e){let t=e.detail.ref,i=e.detail.mapInfo;if(this._hasPendingEdits()){e.preventDefault();let s=await this._validateActiveEdits([],this.selectedIds);await t.setMapByID(s?i.id:e.detail.currentId,!s)}}async editorInitialized(e){this._shouldUpdateTableOnExtentChange=!1,this._editor=e.detail}async closeEdit(){this._shouldUpdateTableOnExtentChange=!0,this._filterByExtentHandle&&this._handleTableOnMapExtent()}async selectionChanged(e){let t=e.detail.selectedFeature[0],i=Number(t.getObjectId()),s=this._table;if(s.rowHighlightIds.length&&s.rowHighlightIds.removeAll(),s.rowHighlightIds.add(i),this._highlightFeatures(i),this.zoomAndScrollToSelected&&s&&this.mapView){let a=s.viewModel.getObjectIdIndex(i);s.scrollToIndex(a);let l=t.layer,n=this.mapView.allLayerViews.toArray(),h;n.some(async r=>r.layer.title===l?.title&&r.layer.type==="feature"?(h=r,this.mapView&&await b([i],h,this.mapView,!0,void 0,this.zoomToScale),!0):!1)}}async beforeLayerSelectionChange(e){if(this._hasPendingEdits()){e.preventDefault();let t=e.detail.ref,i=await this._validateActiveEdits([],this.selectedIds);return e.detail.selectedIds?await t.setLayerByIds(i?e.detail.newIds:e.detail.currentIds,!0):await t.setLayerById(i?e.detail.newId:e.detail.currentId,!0)}}async layerSelectionChange(e){await this._layerSelectionChanged(e)}async editsComplete(e){let t=e.detail;(t==="delete"||t==="add")&&(this._allIds=await this.queryAllIds()),await this._refresh()}async facilityChanged(e){this._floorFacility=e.detail,this._updateFloorDefinitionExpression()}async levelChanged(e){this._floorLevel=e.detail,this._updateFloorDefinitionExpression()}async siteChanged(e){this._floorSite=e.detail,this._updateFloorDefinitionExpression()}async noLayersFound(){this._layer=void 0,this._allIds=[],this._clearSelection()}async clearSelection(){await this._validateActiveEdits([],this.selectedIds)&&this._clearSelection()}async mapChanged(){this._queryingData=!1,this._creatingFeature=!1,this._clearSelection()}async featuresSelected(e){e.detail.forEach(t=>{let i=this._table?.highlightIds.indexOf(t);i&&i<0&&this._table?.highlightIds.add(t)})}createWorkFlowStarted(){this._creatingFeature=!0}backFromCreateWorkFlow(){this._creatingFeature=!1}async load(){await this._initModules(),await this._initToolInfos()}render(){let e=this._fetchingData?"display-none":"",t=this._fetchingData?"":"display-none",i=this._queryingData?"":"display-none",s=this._size.toString(),a=this.selectedIds.length.toString(),l=this.isMobile?"height-full":"height-full-adjusted",n=this._canShowFullTextSearch();return this._validateActiveActions(),d`<div><calcite-scrim class=${_(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell><div class=${`width-full ${l}`}><calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker("header-actions-start")}${!this.isMobile&&d`${this._getTableControlRow("header-content")}${this._getActionsEnd("header-actions-end")}`||""}${n&&d`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${h=>void this._searchTextChanged(h)} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder??o} type=search></calcite-input></div>`||""}<calcite-loader class=${_(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${_(e)} ${g(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile?void 0:d`<div class="bottom-left text-color height-19" id=solutions-selected-count-div>${(this._translations.recordsTotal?.replace("{{total-number-of-records}}",s)+" | "+this._translations.recordsSelected.replace("{{selected-number-of-records}}",a)).replace("{{total}}",s).replace("{{selected}}",a)}</div>`}</calcite-shell></div>`}async _initModules(){let[e,t,i,s]=await T(["esri/widgets/FeatureTable","esri/core/reactiveUtils","esri/widgets/FeatureTable/support/TableTemplate","esri/rest/support/RelationshipQuery"]);this.FeatureTable=e,this.reactiveUtils=t,this.TableTemplate=i,this.RelationshipQuery=s}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),this._searchFullText()}async _searchFullText(){let e=[],t=!1;if(this._showOnlySelected)e=this._tempSelectedIds,t=!0;else if(await this._validateActiveEdits([],this.selectedIds))this._clearSelection(),this._tempSelectedIds=[];else return;this._searchExpression&&this._clearSearchDefinitionExpression();let i=[];if(this._fullTextSearchInfo?.length&&this._fullTextSearchInfo[0].searchTerm){let s=this._layer?.createQuery();s.fullText=this._fullTextSearchInfo,i=this._layer?await this._layer.queryObjectIds(s):[],t&&e?.length&&(i=i.filter(a=>e.includes(a))),await this._updateSearchDefinitionExpression(i?.length?i:[-1])}t&&i?.length&&(this._showOnlySelected=!0,this._table?.highlightIds.addMany(i.reverse())),await new Promise(s=>setTimeout(s,800)),await this._updateAllIds()}_clearSearchDefinitionExpression(){let e=this._layer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&this._layer&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._layer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._layer.definitionExpression=e.replace(this._searchExpression,"")),this._searchExpression=""}async _updateSearchDefinitionExpression(e){let t=this._layer?.definitionExpression;if(this._layer)if(e?.length&&t){let i=`objectId in(${e})`;this._layer.definitionExpression=this._searchExpression&&t?.indexOf(this._searchExpression)>-1?t.replace(this._searchExpression,i):t?`${t} AND (${i})`:i,this._searchExpression=i}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return this._layer?.capabilities?.query?.supportsFullTextSearch&&this._layer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._layer?.capabilities?.query?.supportsFullTextSearch){let e=this._layer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(s=>{t.push(...s.fields.split(","))});let i=[];t.forEach(s=>{let a=this._layer?.getField(s.trim());a?.alias&&i.push(a.alias)}),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{fields}}",i.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_getMapLayerPicker(e){let t=this.isMobile?"display-none":"";return d`<div class=${`border-end ${t}`} id=solutions-map-layer-picker-container slot=${e??o}><map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this._layer?[this._layer?.id]:[]} show-single-layer-as-label show-tables type=dropdown></map-layer-picker></div>`}_getActionsEnd(e){let t=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer,i=this._relatedFeatureTable||this._table;return d`<div class="display-flex" slot=${e??o}><field-selection .layer=${t} .mapView=${this.mapView} .table=${i}></field-selection>${this.enableShare&&!this.isMobile?this._getShare("share"):void 0}</div>`}_getTableControlRow(e){return d`<div class=${"height-51-px width-full display-flex"} slot=${e??o} ${g(this._toolbar)}>${this._getActionBar()}</div>`}_getActionBar(){return d`<calcite-action-bar class=width-full expand-disabled id=${this._getId("bar")??o} layout=horizontal><calcite-action-group>${this.isMobile?void 0:this._getActions()}</calcite-action-group></calcite-action-bar>`}_getActions(){return this._toolInfos?.reduce((e,t)=>(t&&e.push(t.isDanger?this._getDangerAction(t.icon,t.label,t.func,t.disabled):this._getAction(t.active,t.icon,t.indicator,t.label,t.func,t.disabled,!!t.loading)),e),[])}_validateEnabledActions(){let e=this._featuresSelected(),t=this.selectedIds.length>1&&this._layer?.capabilities?.operations?.supportsUpdate,i=["zoom-to-object","pencil","trash","erase","selected-items-filter"];this._toolInfos?.forEach(s=>{s&&i.indexOf(s.icon)>-1&&(s.disabled=s.icon==="pencil"?!t:!e)})}_validateActiveActions(){let e=["filter","list-check-all","selected-items-filter"];this._toolInfos?.forEach(t=>{t&&e.indexOf(t.icon)>-1&&(t.icon==="filter"&&(t.indicator=this._filterActive),t.icon==="list-check-all"&&(t.active=this._selectAllActive),t.icon==="selected-items-filter"&&(t.active=this._showOnlySelected,t.label=this._showOnlySelected?this._translations.showAll:this._translations.showSelected))})}async _initToolInfos(){let e=this._featuresSelected(),t=this._relatedFeatureTable?this._relatedFeatureTable.layer.isTable:this._layer?.isTable;this.selectedIds.length>1&&this._layer?.capabilities?.operations.supportsUpdate;let i=!this.mapHidden&&!t,s=!this._relatedFeatureTable&&(!this._layer?.isTable||this._hasFilterExpressions()),a=this._featuresEmpty(),l=this.featureSelectionMode==="single",n=this.enableCSV;if(this._relatedFeatureTable){let r=await this._queryRelatedFeatures();n=r&&Object.keys(r).length>0}let h=[];s&&h.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.toggleFilter.emit(),disabled:!1}),i&&h.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!e}),this._deleteEnabled&&h.push({active:!1,icon:"trash",indicator:!1,label:this._translations.delete,func:()=>this._showDelete(),disabled:!e,isDanger:!0}),h.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>void this.clearSelection(),disabled:!e}),this._relatedFeatureTable||h.push({active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!e}),!l&&!this._relatedFeatureTable&&h.push({active:!1,icon:"list-check-all",indicator:!1,func:async()=>await this._selectAll(),label:this._translations.selectAll,disabled:a}),!l&&!this._relatedFeatureTable&&h.push({active:!1,icon:"compare",indicator:!1,func:async()=>await this._switchSelected(),label:this._translations.switchSelected,disabled:a}),h.push({active:!1,icon:"refresh",indicator:!1,func:()=>this._refresh(),label:this._translations.refresh,disabled:!1}),n&&h.push({active:!1,icon:"export",indicator:!1,func:()=>void this._exportToCSV(),label:this._translations.exportCSV,loading:this._csvExporting,disabled:a}),this._toolInfos=[...h]}_updateFloorDefinitionExpression(){if(this._floorField&&this._floorLevel){let e=`${this._floorField} = '${this._floorLevel}'`,t=this._layer?.definitionExpression;this._layer&&(this._layer.definitionExpression=t&&this._floorExpression&&t?.indexOf(this._floorExpression)>-1?t.replace(this._floorExpression,e):t?`${t} AND (${e})`:e),this._floorExpression=e}}_featuresSelected(){return this._relatedFeatureTable?this._relatedFeatureTable.highlightIds.items.length>0:this.selectedIds.length>0}_featuresEmpty(){return this._allIds?.length===0}_hasFilterExpressions(){let e=[],t=this._layer?.id;return this.mapInfo?.filterConfig?.layerExpressions&&t!==void 0&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===t)),e.length>0}_getAction(e,t,i,s,a,l,n){let h=this._layer===void 0?!0:l;return d`<calcite-action .active=${e} appearance=solid .disabled=${h} .icon=${t} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${n} @click=${a} text text-enabled><div class="display-flex"><calcite-label class="label-override padding-start-1-4">${s}</calcite-label></div></calcite-action>`}_showDelete(){this.showDelete.emit({ids:this._getIds()})}_getShare(e){return this.mapView&&d`<div id=${this._getId(e)??o}><instant-apps-social-share class="height-51 width-51 display-flex" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${g(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom",e,this._translations.share)}</div>`||""}_updateShareUrl(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this.mapInfo?.id?t.searchParams.set("webmap",this.mapInfo.id):t.searchParams.delete("webmap"),this._layer?.id?t.searchParams.set("layer",this._layer.id):t.searchParams.delete("layer"),this.selectedIds?.length>0?t.searchParams.set("oid",this.selectedIds.join(",")):t.searchParams.delete("oid"),this.appLayout&&t.searchParams.set("applayout",this.appLayout),this._shareNode.value&&(this._shareNode.value.shareUrl=t.href)}_getToolTip(e,t,i){return document.getElementById(t)?d`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${i}</span></calcite-tooltip>`:void 0}_getId(e){return`solutions-action-${e}`}_getDangerAction(e,t,i,s){let a=this._layer===void 0?!0:s;return d`<div class="display-flex" id=${this._getId(e)??o}>${d`<calcite-action appearance=solid .disabled=${a} id=${e??o} @click=${i} text><calcite-icon class="danger-icon-color" .icon=${e} scale=s></calcite-icon><calcite-label class="label-override padding-start-1-4 danger-label-color">${t}</calcite-label></calcite-action>`}${this._getToolTip("bottom",e,t)}</div>`}_getIds(){let e=this._relatedFeatureTable??this._table;return this._relatedFeatureTable&&this._table&&this._table.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(e=this._table),e?.highlightIds.map(t=>Number.parseInt(t.toString(),10)).toArray()??[]}onTableNodeCreate(e){this._tableNode=e}async _getTable(e,t){this._layer&&(await this._layer.when(()=>{this._table=this.FeatureTable&&new this.FeatureTable({autoRefreshEnabled:this.enableAutoRefresh,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,relatedRecordsEnabled:!0,editingEnabled:this._editEnabled&&this.enableInlineEdit,highlightEnabled:!1,multiSortEnabled:!1,attachmentsEnabled:!0,visibleElements:{columnDescriptions:!1,header:!1,menu:!1,progress:!1},tableTemplate:{columnTemplates:t},container:e})}),await this._table?.when(()=>{this._table?.viewModel.addHandles(this._table.highlightIds.on("change",i=>{this._handleOnChange(i)})),this._table?.viewModel.addHandles(this._table.on("cell-pointerover",this.tempHighlightOnHover.bind(this))),this._table?.viewModel.addHandles(this._table.on("cell-pointerout",this._removeTempHighlight.bind(this))),this.listenOn(this._tableNode,"mouseleave",this._removeTempHighlight),this.reactiveUtils&&this._table?.viewModel.addHandles(this.reactiveUtils.watch(()=>this._table.size,i=>{this._size=i})),this.reactiveUtils?.watch(()=>this._table?.relatedTable,async i=>{if(i){if(i.rowHighlightIds.length){let s={added:[i.rowHighlightIds.getItemAt(0)],removed:[]};this._handleOnChange(s)}if(this._relatedFeatureTable=i,typeof i.layer?.id=="string"&&i.layer?.fields){let s=i.layer.popupTemplate?.fieldInfos||i.layer.fields,a=this._getColumnTemplates(i.layer.id,s);this._relatedFeatureTable.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:a})}i.highlightIds.on("change",s=>{this._handleOnChange(s)})}else{this.selectedRelatedIds=[],this._relatedFeatureTable=void 0;let s=this._layer;this._refresh(),s&&this.relatedRecordToggled.emit(s),this._finishOnChange()}await this._initToolInfos()})}))}async _handleOnChange(e){if(!await this._validateActiveEdits([...e.added],[...e.removed]))return;let t=[...this._getIds()],i=this._getSelectedLayer(t);this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(i=this._layer,await this._initToolInfos()),i&&this.relatedRecordToggled.emit(i),this.featureSelectionMode==="single"&&(this._relatedFeatureTable&&t.length>1?(this._relatedFeatureTable.highlightIds.remove(t[0]),t.shift()):t.length>1&&!this._selectAllActive&&(this._table?.highlightIds.remove(t[0]),t.shift())),!this._relatedFeatureTable||this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]?(this.selectedRelatedIds=[],this.selectedIds=t.reverse(),this._tempSelectedIds=[...this.selectedIds],this._highlightFeatures(this.selectedIds[0])):this.selectedRelatedIds=t.reverse(),this._finishOnChange()}async _validateActiveEdits(e,t){let i=!0;if(this._editor&&!this._skipEditCheck){if(this._hasPendingEdits()){let s=!1;try{this._editor.viewModel.activeWorkflow&&await this._editor.viewModel.activeWorkflow.cancel({force:!1})}catch(a){s=a?.name==="workflow:cancel-denied"}if(s){let a=this._relatedFeatureTable&&this._relatedFeatureTable.highlightIds.length>0?this._relatedFeatureTable:this._table;i=!1,this._skipEditCheck=!0,e.length>0?a?.highlightIds.removeMany(e):t.length>0&&a?.highlightIds.addMany(t)}}}else i=!this._skipEditCheck,this._skipEditCheck=!1;return this._shouldUpdateTableOnExtentChange=i,i}_hasPendingEdits(){let e=this._editor?.viewModel?.hasPendingEdits,t=this._editor?.activeWorkflow?.activeWorkflow?.hasPendingEdits;return e||t}_finishOnChange(){this._showOnlySelected&&!this._relatedFeatureTable&&(this._table&&this._featuresSelected()?this._table.filterBySelectionEnabled=!0:this._toggleShowSelected());let e=this._getSelectedIds();setTimeout(()=>{this.featureSelectionChange.emit(e)},50)}tempHighlightOnHover(e){if(this._removeTempHighlight(),this._selectedLayerView){let t=e.feature;this._temporaryFeatureHandle=this._selectedLayerView?.highlight([t],{name:"temporary"})}}_removeTempHighlight(){this._temporaryFeatureHandle&&this._temporaryFeatureHandle.remove()}_highlightFeatures(e){if(this._clearHighlights(),this.selectedIds.length>0&&this._selectedLayerView&&(this._currentFeatureHighlightHandle=this._selectedLayerView?.highlight([e],{name:"current-selection"}),this.selectedIds.length>1)){let t=this.selectedIds.filter(i=>i!==e);this._defaultFeaturesHandle=this._selectedLayerView?.highlight(t,{name:"default"})}}_clearHighlights(){this._removeTempHighlight(),this._currentFeatureHighlightHandle&&this._currentFeatureHighlightHandle.remove(),this._defaultFeaturesHandle&&this._defaultFeaturesHandle.remove()}_resetColumnTemplates(){if(this._layer){let e=this._layer.popupTemplate?.fieldInfos||this._layer.fields,t=this._getColumnTemplates(this._layer.id,e);t?.length===0?this._tableNode?.classList.add("display-none"):this._tableNode?.classList.remove("display-none");let i=this._table?.tableTemplate?.columnTemplates,s=i&&t&&i.length!==t.length||t?.some((a,l)=>i&&i[l]?JSON.stringify(i[l])!==JSON.stringify(a):!1);if(this._table&&t&&(s||!this._columnsInfo)){this._table.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:t});let a=t.map(l=>l.fieldName);this._initColumnsInfo(a)}}}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await this.queryAllIds(),!this._table&&this._layer){let e=this._layer.popupTemplate?.fieldInfos||this._layer.fields,t=this._getColumnTemplates(this._layer.id,e);this._tableNode&&await this._getTable(this._tableNode,t)}else this._table&&(this._table.view=this.mapView,this._table.layer=this._layer);await this._initLayerRefresh(),this._checkEditEnabled(),this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,await this._table.when(),setTimeout(()=>{this._loaded||this.finishLoading()},1e3),await this.reactiveUtils?.once(()=>this._table?.state==="loaded").then(async()=>{await this.finishLoading()}))}async finishLoading(){try{this._loaded=!0,this._table?.highlightIds.removeAll(),this._table.objectIds.removeAll(),this._resetColumnTemplates(),this._showOnlySelected=!1,await this._handleDefaults(),await this._sortTable(),await this._initToolInfos(),["esri-feature-table","esri-widget"].forEach(e=>{this._tableNode&&!this._tableNode.classList.contains(e)&&this._tableNode.classList.add(e)})}catch(e){console.log(e)}}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._layer&&(this._refreshHandle=this._layer.on("refresh",e=>{e.dataChanged&&this._updateAllIds()}))}async _updateAllIds(){let e=await this.queryAllIds(),t=this.selectedIds.filter(i=>this._allIds.indexOf(i)>-1);(JSON.stringify(e)!==JSON.stringify(this._allIds)||JSON.stringify(this.selectedIds)!==JSON.stringify(t))&&(this._allIds=e,this.selectedIds=t,await this._refresh())}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=[],this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId&&this.defaultGlobalId?.length>0&&this._table&&this._layer){let e=await E(this.defaultGlobalId,this._layer),t=e?.length>0?e.map(i=>Number(i.getObjectId())):void 0;t&&await this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=[],this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(e){let t=this._table?.columns.reduce((s,a)=>((!e||e?.indexOf(a.name)>-1)&&(s[a.name]=!a.hidden),s),{}),i=this._table?.columns.map(s=>s.name);(e&&i?e.filter(s=>i.indexOf(s)<0):[]).forEach(s=>{t[s]=!0}),this._columnsInfo=e?e.reduce((s,a)=>(s[a]=t[a],s),{}):t}async _selectDefaultFeature(e){e.length>0&&this._table?.highlightIds.addMany(e)}_checkEditEnabled(){this._editEnabled=!!(this._layer?.editingEnabled&&this._layer?.capabilities?.operations.supportsUpdate),this._deleteEnabled=!!(this._layer?.editingEnabled&&this._layer?.capabilities?.operations.supportsDelete)}async _sortTable(){let e=this._layer?.objectIdField,t="desc",i,s=this.mapInfo?.layerOptions?.layers,a=this._layer?.id;s&&s.length>0&&a!==void 0&&(i=s.filter(l=>l.id===a),i&&i.length>0&&(i=i[0],i.sortField&&i.fields?.includes(i.sortField)&&(e=i.sortField),t=i?.sortOrder?i.sortOrder:"desc")),this._table&&this._layer&&(await this._table.when(),await this._layer.when(()=>{e&&this._table?.sortColumn(e,t)}))}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(e){if(this._floorExpression&&this._layer){let t=this._layer.definitionExpression,i=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=t&&this._floorField&&t.indexOf(`${this._floorField} = '`)>-1?t.replace(i,this._floorExpression):t?`${t} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=e,this._updateShareUrl(),await this._searchFullText()}_handleTableOnMapExtent(){this._table&&(this._filterByExtentHandle=this.reactiveUtils?.when(()=>this.mapView?.stationary,async()=>{if(this._shouldUpdateTableOnExtentChange&&this.appLayout==="splitView"){if(await new Promise(e=>setTimeout(e,800)),this._table&&this.mapView){this._table.filterGeometry=this.mapView.extent;let e={geometry:this.mapView.extent},t=this._layer&&await this._layer.queryObjectIds(e),i=this.selectedIds.filter(a=>!t?.includes(a)),s=this._outOFExtentOids.filter(a=>t?.includes(a));i.length>0&&(this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table.highlightIds.removeMany(i),this._outOFExtentOids=[...this._outOFExtentOids,...i]),s.length>0&&(this.selectedIds=[...new Set([...this.selectedIds,...s])],this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(this.selectedIds.reverse()),this._outOFExtentOids=this._outOFExtentOids.filter(a=>!s.includes(a)))}this._allIds=await this.queryAllIds()}},{initial:!0}))}async _closeFilter(){this._allIds=await this.queryAllIds()}async queryAllIds(){if(this._layer){let e=this._layer.createQuery();return e.geometry=this._filterByExtentHandle&&this.mapView?this.mapView.extent:null,e.where=this._layer.definitionExpression||"1=1",await this._layer.queryObjectIds(e)}else return[]}async _mapClicked(e){let t={include:this._layer},i=await this.mapView?.hitTest(e.screenPoint,t);if(i&&i.results.length>0){let s=i.results;if(this.featureSelectionMode==="single"){this._table?.highlightIds.removeAll();let a=s[0].graphic.getObjectId();if(a){let l=this._table?.highlightIds.indexOf(a);l!==void 0&&l<0&&this._table?.highlightIds.add(a)}}else s.forEach(a=>{let l=Number(a.graphic.getObjectId()),n=this._table?.highlightIds.indexOf(l);n&&n<0&&l&&this._table?.highlightIds.add(l)});this._showOnlySelected&&this._table&&(this._table.filterBySelectionEnabled=!0)}else await this.clearSelection()}async _selectAll(){let e=this._allIds,t=e.filter(i=>this.selectedIds.indexOf(i)<0);await this._validateActiveEdits(t,this.selectedIds)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(e),this.selectedIds=e,this._finishOnChange(),this._selectAllActive=!0):this._skipEditCheck=!1}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._table&&(this._table.filterBySelectionEnabled=this._showOnlySelected)}_clearSelection(){this._relatedFeatureTable||(this.selectedIds=[],this._outOFExtentOids=[],this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table?.highlightIds.removeAll(),this._clearHighlights(),this._table?.rowHighlightIds.removeAll()),this._relatedFeatureTable&&(this._relatedFeatureTable?.highlightIds.removeAll(),this.selectedRelatedIds=[]),this._finishOnChange()}async _switchSelected(){let e=[...this.selectedIds],t=this._allIds.reduce((i,s)=>(e.indexOf(s)<0&&i.push(s),i),[]).sort((i,s)=>i-s);await this._validateActiveEdits(t,e)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()):this._skipEditCheck=!1}async _exportToCSV(){let e=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer;if(!e)return;let t={},i=this._getIds();if(this._relatedFeatureTable?.tableParent&&this._relatedFeatureTable.rowHighlightIds.length===0){let l=this._relatedFeatureTable.tableParent.highlightIds?.getItemAt(0);if(l!==void 0){let n=await this._queryRelatedFeatures(),h=[];n&&n[l]?.features&&(n[l].features.forEach(r=>{r.attributes&&h.push(r.attributes[e.objectIdField])}),i=h.length>0?h:[])}}t[e.id]={selectionSetNames:[e.title||""],ids:i,layer:e};let s=this._relatedFeatureTable??this._table;if(!s)return;let a=s&&s.columns.toArray().reduce((l,n)=>{if(!n.hidden){let h=n?.name||n?.fieldName;h&&l.push(h.toLocaleLowerCase())}return l},[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,this.mapView?.map&&await C(this.mapView.map,t,!1,!1,!0,a,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}async _queryRelatedFeatures(){let e=this._relatedFeatureTable?this._relatedFeatureTable?this._relatedFeatureTable.layer:this._relatedFeatureTable.tableParent?.layer:this._layer,t=this._relatedFeatureTable?.tableParent?.highlightIds?.items[0],i=this._relatedFeatureTable?.tableParent?.layer,s=e?.relationships?.find(l=>i.relationships?.some(n=>n.id===l.id)),a=this.RelationshipQuery&&new this.RelationshipQuery({objectIds:[t],outFields:["*"],relationshipId:s?.id});return t&&a&&await i.queryRelatedFeatures(a).catch(async l=>{console.error(l)})}_updateToolInfoLoading(e,t){this._toolInfos.some(i=>i?.icon===e?(i.loading=t,!0):!1)}async _refresh(){if(await this._validateActiveEdits([],this.selectedIds)){this._table&&await this._table.refresh(),this._relatedFeatureTable&&await this._relatedFeatureTable.refresh(),this._allIds=await this.queryAllIds();let e=this._getSelectedLayer(this.selectedRelatedIds);e&&this.relatedRecordToggled.emit(e);let t=this._getSelectedIds();this.featureSelectionChange.emit(t)}}_getSelectedIds(){let e;return this._relatedFeatureTable?this.selectedRelatedIds.length>0?e=this.selectedRelatedIds:e=this._relatedFeatureTable.tableParent?.highlightIds.toArray()??[]:e=this.selectedIds,e}_getSelectedLayer(e){let t;return this._relatedFeatureTable?e.length>0?t=this._relatedFeatureTable.layer:t=this._relatedFeatureTable.tableParent?.layer:t=this._layer,t}async _zoom(){this._layer&&this.mapView&&await b(this.selectedIds,this._selectedLayerView,this.mapView,!0,void 0,this.zoomToScale)}async _layerSelectionChanged(e){let t=e.detail[0];if(t!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0;let i=this.mapView&&await F(this.mapView,t);i&&await i.when(async()=>{this._selectedLayerView=!i.isTable&&this.mapView?await S(this.mapView,i.id):null,this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._shouldUpdateTableOnExtentChange=!0,this._layer=i,await this._initToolInfos(),this._getFullTextSearchInfo()})}this._creatingFeature=!1,this._fetchingData=!1}_getColumnTemplates(e,t){let i;this.mapInfo?.layerOptions?.layers.some(h=>h.id===e?(i=h,!0):!1);let s=this._layer?.attributeTableTemplate?.elements,a=[];s?.length>0&&this.honorMapFieldSettings&&(a=s.map(h=>h.fieldName));let l=i?.fields&&i?.fieldOrder?i.fieldOrder.filter(h=>i?.fields&&i.fields.indexOf(h)>-1):a.length>0?a:void 0,n;return t&&(n=t.reduce((h,r)=>{let A="fieldName"in r?r.fieldName:r.name,H="label"in r?r.label:r.alias,u="label"in r?r.label:r.name,f={type:"field",fieldName:A,label:H,menuConfig:this._getMenuConfig(u||"")};return i&&i?.fields?i.fields.indexOf(u||"")>-1&&h.push(f):a.length>0?a.indexOf(u)>-1&&h.push(f):h.push(f),h},[])),n?l?n?.sort(this._sortFields.bind(this,l)):n:[]}_sortFields(e,t,i){return e?.indexOf(t.fieldName)-e.indexOf(i.fieldName)}_getMenuConfig(e){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(e)}}]}}_handleHideClick(e){this._columnsInfo&&this._table&&(this._columnsInfo[e]=!1,this._table.hideColumn(e),this._table.tableTemplate&&this._table.tableTemplate.columnTemplates.forEach(t=>{t.fieldName===e&&(t.visible=!1)}))}};v("layer-table",y);export{y as LayerTable};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as G}from"./QQ7X6CB7.js";import{b as K,f as P,m as _,n as U,o as L}from"./FCCUMLZS.js";import"./QOT3V2NC.js";import"./JJFLJJVV.js";import"./4PKBB5DI.js";import"./KBHUDHV4.js";import"./VXMZHNM5.js";import{a as j}from"./GZUQL4BQ.js";import"./ZLIHWJKM.js";import"./XUMWU7UL.js";import"./UQGEHP44.js";import{k as S}from"./63VMIWOD.js";import"./LH2OOZVN.js";import"./YGK4XFKQ.js";import"./NWQYXV7R.js";import{b}from"./E2RH7ORD.js";import{a as c,b as p}from"./NA5P6M4G.js";import"./GNZLER6U.js";function x(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,r)=>[...t,{entityKey:r,storeKey:r}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function g(e){let{token:t,authentication:r}=e;return r?r.getToken(r.portal):Promise.resolve(t)}async function v(e,t){let{url:r,method:a,data:n}=e,{mode:o,cache:i,credentials:d}=t,{headers:m,params:E}=le(e,t),s=`${ce(t.hubApiUrl)}${r}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:o};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:A,status:re}=y;if(y.ok)return y.json();let oe=await y.json();throw new I(A,s,re,JSON.stringify(oe.message))}function ce(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function le(e,t){let r=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&r.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:r,params:a}}var I=class extends Error{constructor(t,r,a,n){super(t),this.status=a,this.url=r,this.error=n}};var k;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(k||(k={}));var M;(function(e){e.asc="asc",e.desc="desc"})(M||(M={}));var H;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(H||(H={}));var B;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(B||(B={}));var V;(function(e){e.csv="csv",e.json="json"})(V||(V={}));var $;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})($||($={}));var Z;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(Z||(Z={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var F;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(F||(F={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var q;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(q||(q={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var W=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var J=(e,t,r)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},r),z=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),Q=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var X=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function Y(e){return e.token=await g(e),W(e.data,e)}async function ee(e){return e.token=await g(e),J(e.eventId,e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e)}function C(e){return[K(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function R(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function ne(e){var t;let r=P("event",C(e));return{self:r,siteRelative:r,siteRelativeEntityType:P("event"),workspaceRelative:G("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:R()}}function ae(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function ie(e){return e.token=await g(e),Q(e.data,e)}async function se(e){return e.token=await g(e),X(e.registrationId,e)}function N(){let e=b();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function O(){let{startDateTime:e,endDateTime:t}=b();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends _{storeToEntity(t,r){var a,n,o,i,d,m,E,D;let s=L(t,r,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((o=t.onlineMeeting)===null||o===void 0)&&o.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:A})=>({entityId:y,entityType:A})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.links=ne(t),s.slug=C(t),s.thumbnailUrl||(s.thumbnailUrl=R()),s.view={showMap:!!t.location},s.location=ae(t),s}entityToStore(t,r){let a=j(t),n=U(a,r,this.mappings),o=a.access;return o==="shared"?n.access=f.PRIVATE:n.access=o.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function w(e,t,r){let a=e.filter(({entityId:o})=>t.includes(o)),n=t.filter(o=>!a.find(({entityId:i})=>i===o));if(n.length){let{results:o}=await S({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:r.authentication}),i=o.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function nt(e,t){let r=Object.assign(Object.assign({},N()),e);r.endDate=r.startDate;let a=new h(x()),n=a.entityToStore(r,O()),o=await w(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:o,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await Y(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function at(e,t){var r,a;let n=Object.assign(Object.assign({},N()),e),o=new h(x()),i=o.entityToStore(n,O()),d=await w(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((r=i.description)===null||r===void 0?void 0:r.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await ee(Object.assign({eventId:i.id,data:m},t)),o.storeToEntity(i,{})}async function it(e,t){await te(Object.assign({eventId:e},t))}function st(e,t){return ie(Object.assign({data:e},t))}async function rt(e,t){await se(Object.assign({registrationId:e},t))}export{nt as createHubEvent,st as createHubEventRegistration,it as deleteHubEvent,rt as deleteHubEventRegistration,at as updateHubEvent};
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{a as G}from"./BLURTZNI.js";import{b as K,f as P,m as _,n as U,o as L}from"./RXO3BGVO.js";import"./T33NVZXY.js";import"./GKMXDGZF.js";import"./EOQESQYS.js";import"./TM4ZSPAB.js";import"./4EDDSKZS.js";import{a as j}from"./UD7F6DCG.js";import"./BLY5B6IS.js";import"./AMJZ2LFK.js";import"./W3A6FIHZ.js";import{k as S}from"./AAQIWO65.js";import"./D3FZEWBP.js";import"./FYTWFRTO.js";import"./HITN2DRN.js";import{b}from"./MJEB763W.js";import{a as c,b as p}from"./75AICF3J.js";import"./6XZWFS7Y.js";function x(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,r)=>[...t,{entityKey:r,storeKey:r}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function g(e){let{token:t,authentication:r}=e;return r?r.getToken(r.portal):Promise.resolve(t)}async function v(e,t){let{url:r,method:a,data:n}=e,{mode:o,cache:i,credentials:d}=t,{headers:m,params:E}=le(e,t),s=`${ce(t.hubApiUrl)}${r}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:o};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:A,status:re}=y;if(y.ok)return y.json();let oe=await y.json();throw new I(A,s,re,JSON.stringify(oe.message))}function ce(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function le(e,t){let r=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&r.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:r,params:a}}var I=class extends Error{constructor(t,r,a,n){super(t),this.status=a,this.url=r,this.error=n}};var k;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(k||(k={}));var M;(function(e){e.asc="asc",e.desc="desc"})(M||(M={}));var H;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(H||(H={}));var B;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(B||(B={}));var V;(function(e){e.csv="csv",e.json="json"})(V||(V={}));var $;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})($||($={}));var Z;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(Z||(Z={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var F;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(F||(F={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var q;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(q||(q={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var W=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var J=(e,t,r)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},r),z=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),Q=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var X=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function Y(e){return e.token=await g(e),W(e.data,e)}async function ee(e){return e.token=await g(e),J(e.eventId,e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e)}function C(e){return[K(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function R(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function ne(e){var t;let r=P("event",C(e));return{self:r,siteRelative:r,siteRelativeEntityType:P("event"),workspaceRelative:G("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:R()}}function ae(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function ie(e){return e.token=await g(e),Q(e.data,e)}async function se(e){return e.token=await g(e),X(e.registrationId,e)}function N(){let e=b();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function O(){let{startDateTime:e,endDateTime:t}=b();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends _{storeToEntity(t,r){var a,n,o,i,d,m,E,D;let s=L(t,r,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((o=t.onlineMeeting)===null||o===void 0)&&o.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:A})=>({entityId:y,entityType:A})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.links=ne(t),s.slug=C(t),s.thumbnailUrl||(s.thumbnailUrl=R()),s.view={showMap:!!t.location},s.location=ae(t),s}entityToStore(t,r){let a=j(t),n=U(a,r,this.mappings),o=a.access;return o==="shared"?n.access=f.PRIVATE:n.access=o.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function w(e,t,r){let a=e.filter(({entityId:o})=>t.includes(o)),n=t.filter(o=>!a.find(({entityId:i})=>i===o));if(n.length){let{results:o}=await S({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:r.authentication}),i=o.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function nt(e,t){let r=Object.assign(Object.assign({},N()),e);r.endDate=r.startDate;let a=new h(x()),n=a.entityToStore(r,O()),o=await w(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:o,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await Y(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function at(e,t){var r,a;let n=Object.assign(Object.assign({},N()),e),o=new h(x()),i=o.entityToStore(n,O()),d=await w(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((r=i.description)===null||r===void 0?void 0:r.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await ee(Object.assign({eventId:i.id,data:m},t)),o.storeToEntity(i,{})}async function it(e,t){await te(Object.assign({eventId:e},t))}function st(e,t){return ie(Object.assign({data:e},t))}async function rt(e,t){await se(Object.assign({registrationId:e},t))}export{nt as createHubEvent,st as createHubEventRegistration,it as deleteHubEvent,rt as deleteHubEventRegistration,at as updateHubEvent};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import"./
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import"./6XZWFS7Y.js";var l=async(e,r,t)=>({type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.title.maxLengthError"},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.prompt.label`,scope:"/properties/prompt",type:"Control",options:{helperText:{labelKey:`${e}.fields.prompt.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.prompt.maxLengthError`}]}}]});export{l as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as i}from"./
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{a as i}from"./EKDX37DH.js";var c=class e extends Error{constructor(o,r,t){r=r||"UNKNOWN_ERROR",t=i(t,"rootCause",t),super(r),this.operation=o,this.name="OperationError",this.rootCause=t,Object.setPrototypeOf(this,e.prototype),this.stack=i(t,"stack",new Error().stack)}};var p=class extends c{constructor(o,r,t){r=r||"UNKNOWN_ERROR",t=i(t,"rootCause",t),super(o,r,t),this.name="HubError",this.stack=i(t,"stack",new Error().stack)}};export{p 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/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as h}from"./
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{a as h}from"./D42V7PBV.js";import{a as x}from"./EJ5VJ4MH.js";import{e as v}from"./PYJIK3CR.js";import{c as w,h as I,i as T,k as p,l as u,x as E,z as S}from"./4JGCEBGT.js";import"./52W5VWDL.js";import{a as _,c as s,d as C,e as b}from"./VFEXPJTW.js";import"./6XZWFS7Y.js";var{state:t,onChange:L}=x({timeInfoConfigItems:[],filterMode:{type:"filter"},view:null,timeSlider:null,timeInfoItems:[],selectedTimeInfoItem:null,loading:!0,timeSliderConfig:{},autoPlay:!1}),g="time-slider-watch",y=class{constructor(){this.initializeModules()}async initializeModules(){try{let e=await S();this.reactiveUtils=e,this.handles=await w()}catch{}}async init(e){e&&(e.innerHTML=""),t?.timeSlider?.viewModel?.state==="playing"&&t.timeSlider.stop();let{view:i,timeInfoConfigItems:n}=t;if(i)try{if(await i.when(),n.length===1&&n[0]?.type==="map")this.initTimeSlider(e,n[0]);else{let a=await this.getTimeLayerViews(i,n);t.timeInfoItems=this.generateTimeInfoItems(a,n),this.initTimeSlider(e)}return Promise.resolve()}catch{}finally{this.setupFilterModeWatcher()}}destroy(){this.handles?.removeAll(),this.handles=null,t.timeSlider?.destroy()}async getTimeLayerViews(e,i){let n=e.map?.allLayers,a=o=>n?.find(({id:f})=>o===f),m=i.map(({id:o})=>a(o)).map(async o=>await e.whenLayerView(o));return await Promise.all(m)}generateTimeInfoItems(e,i){return[...i].map(a=>{let l=e.find(({layer:m})=>m.id===a.id);return this.generateTimeInfoItem(l,a)})}generateTimeInfoItem(e,{increments:i,rangeStart:n,rangeEnd:a,timeIntervalValue:l}){let f=e?.layer?.timeInfo?.fullTimeExtent;return{layerView:e,unit:i,timeIntervalValue:l??1,rangeStart:new Date(n),rangeEnd:new Date(a),timeExtent:f,previousTimeExtent:null}}async initTimeSlider(e,i){let n=async a=>(t.timeSlider=await E(a),t.autoPlay&&t.timeSlider.play(),void await Promise.resolve());if(i){let a=await this.getTimeSliderConfig(e,i);await n(a)}else{let a=t?.timeInfoItems?.[0];if(!a)return;t.selectedTimeInfoItem=a;let l=await this.getTimeSliderConfig(e);await n(l)}t.view?.type==="2d"&&this.initialize2DView()}setupFilterModeWatcher(){L("filterMode",e=>{e&&t.timeInfoItems.forEach(i=>{let n=i.layerView;this.applyTimeExtent(n,n?.featureEffect?.filter?.timeExtent||n.filter?.timeExtent,e)})})}async getTimeSliderConfig(e,i){let n={container:e,mode:"time-window",view:t.view?.type==="3d"?t.view:null,...t.timeSliderConfig};if(i){let a=t.view?.map?.widgets?.timeSlider,l={...n,fullTimeExtent:a?.fullTimeExtent,timeExtent:a?.currentTimeExtent};return a?.stopInterval?.unit&&a?.stopInterval?.value&&(l.stops={interval:await u({unit:a?.stopInterval?.unit,value:a?.stopInterval?.value})}),l}else{let[{timeExtent:a,rangeStart:l,rangeEnd:m,unit:o,timeIntervalValue:f}]=t.timeInfoItems;return{...n,fullTimeExtent:a,timeExtent:await p({start:l,end:m}),stops:{interval:await u({unit:o,value:f})}}}}initialize2DView(){t.timeInfoItems.forEach(async e=>this.applyTimeExtent(e.layerView,await p({start:e.rangeStart,end:e.rangeEnd}))),this.setupTimeExtentWatcher()}applyTimeExtent(e,i,n){t.filterMode?.type==="effect"?this.applyFeatureEffect(e,i,n):this.applyFeatureFilter(e,i)}applyFeatureEffect(e,i,n){if(e){if(e.filter&&e.set("filter",null),!e?.featureEffect?.filter||n){this.handleUpdatedFeatureEffect(e,i);return}e.featureEffect.filter.timeExtent=i}}async handleUpdatedFeatureEffect(e,i){e.featureEffect=await I({filter:{timeExtent:i},includedEffect:await h(t.filterMode?.effect?.includedEffect??"",e,"includedEffect"),excludedEffect:await h(t.filterMode?.effect?.excludedEffect??"",e,"excludedEffect")})}async applyFeatureFilter(e,i){if(e.featureEffect&&e.set("featureEffect",null),!e.filter){e.filter=await T({timeExtent:i});return}e.filter.timeExtent=i}setupTimeExtentWatcher(){this.handles?.has(g)&&this.handles?.remove(g),t?.timeSlider&&this.handles?.add(t.timeSlider.watch("timeExtent",e=>this.applyTimeExtent(t.selectedTimeInfoItem?.layerView,e)),g)}updateSelectedTimeInfoItem(e){t.timeSlider&&(t.selectedTimeInfoItem&&(t.selectedTimeInfoItem.previousTimeExtent=t.timeSlider.timeExtent),t.selectedTimeInfoItem=e,this.reconfigureTimeSlider(e),this.applyTimeExtent(e.layerView,t.timeSlider.timeExtent),this.setupTimeExtentWatcher())}async reconfigureTimeSlider(e){t.timeSlider&&(t.timeSlider.fullTimeExtent=e.timeExtent,t.timeSlider.timeExtent=await this.getTimeExtent(e),t.timeSlider.stops={interval:await this.getTimeInterval(e)})}async getTimeExtent({rangeStart:e,rangeEnd:i,previousTimeExtent:n}){let a=n??await p({start:e,end:i});return await Promise.resolve(a)}async getTimeInterval(e){let i=e.unit??e.layerView?.layer?.timeInfo?.interval?.unit;return await u({unit:i,value:1})}getLabel(e){return e?.layerView?.layer?.title||""}},d=new y,M=".instant-apps-time-filter{position:relative;display:block;min-width:375px;min-height:200px}.instant-apps-time-filter__background{background-color:var(--calcite-ui-background);position:absolute;top:0;left:0;width:100%;height:100%;z-index:0}.instant-apps-time-filter calcite-dropdown{width:100%}.instant-apps-time-filter calcite-dropdown calcite-button{--calcite-color-brand:var(--calcite-ui-text-1);--calcite-ui-brand:var(--calcite-ui-text-1)}.instant-apps-time-filter__layer-title{font-weight:550;display:inline-block;padding:10px}.instant-apps-time-filter__loading-container{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.instant-apps-time-filter--3d{min-height:160px}",F=M,c={base:"instant-apps-time-filter",layerTitle:"instant-apps-time-filter__layer-title",loadingContainer:"instant-apps-time-filter__loading-container",background:"instant-apps-time-filter__background",threeD:" instant-apps-time-filter--3d"},D=class{constructor(r){_(this,r),this.messages=void 0,this.timeSliderRef=void 0,this.timeInfoConfigItems=[],this.filterMode=void 0,this.view=void 0,this.timeSliderConfig=void 0,this.autoPlay=!1}async updateTimeInfoConfigItems(){t.timeInfoConfigItems=this.timeInfoConfigItems,await d.init(this.timeSliderRef)}async updateFilterMode(){t.filterMode=this.filterMode}async updateTimeSliderConfig(){t.timeSliderConfig=this.timeSliderConfig,await d.init(this.timeSliderRef)}async updateAutoPlay(){t.autoPlay=this.autoPlay,t.timeSlider&&(t.autoPlay?t.timeSlider.play():t.timeSlider.stop())}async componentWillLoad(){try{t.view=this.view,t.timeInfoConfigItems=this.timeInfoConfigItems,t.autoPlay=!!this.autoPlay,this.timeSliderConfig&&(t.timeSliderConfig=this.timeSliderConfig),this.filterMode&&(t.filterMode=this.filterMode),await v(this)}catch{}}async componentDidLoad(){try{await d.init(this.timeSliderRef)}catch{}finally{t.loading=!1}}disconnectedcallback(){d.destroy()}render(){return s(C,{key:"c994735c86c7bb3edeadf623a15c565960637f23"},this._renderBase())}_renderBase(){return s("div",{class:`${c.base}${this.view.type!=="2d"?c.threeD:""}`},this._renderLoader(),this.view.type==="2d"&&this._renderTopEl(),s("div",{key:"time-slider",ref:r=>{r&&(this.timeSliderRef=r)}}))}_renderLoader(){return t.loading&&s("div",null,s("div",{class:c.background}),s("div",{class:c.loadingContainer},s("calcite-loader",{scale:"m",label:this.messages?.loading??"",text:this.messages?.loading})))}_renderTopEl(){return this.timeInfoConfigItems.length>1?this._renderDropdown():this._renderLayerTitle()}_renderLayerTitle(){let r=t.selectedTimeInfoItem?.layerView?.layer?.title;return s("span",{class:c.layerTitle},r)}_renderDropdown(){return t.selectedTimeInfoItem&&s("calcite-dropdown",null,this._renderDropdownButton(),this._renderDropdownItems())}_renderDropdownButton(){return s("calcite-button",{slot:"trigger",appearance:"transparent",iconEnd:"chevron-down",width:"full",alignment:"space-between"},d.getLabel(t.selectedTimeInfoItem))}_renderDropdownItems(){return t.timeInfoItems.map(r=>this._renderDropdownItem(r))}_renderDropdownItem(r){let e=t.selectedTimeInfoItem?.layerView?.layer?.id,i=r?.layerView?.layer?.id;return s("calcite-dropdown-item",{onCalciteDropdownItemSelect:()=>d.updateSelectedTimeInfoItem(r),selected:e===i},d.getLabel(r))}get el(){return b(this)}static get watchers(){return{timeInfoConfigItems:["updateTimeInfoConfigItems"],filterMode:["updateFilterMode"],timeSliderConfig:["updateTimeSliderConfig"],autoPlay:["updateAutoPlay"]}}};D.style=F;export{D as instant_apps_time_filter};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{b as g}from"./
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{b as g}from"./3YNQSVNT.js";import{a as b}from"./SOLDJVDR.js";import{D as u,E as p,I as w,c as h,d as l,o as r,q as m}from"./Q5UREG2V.js";import"./6XZWFS7Y.js";var y=h`@layer{/**
|
5
5
|
* @license
|
6
6
|
* Copyright 2025 Esri
|
7
7
|
*
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{d as I}from"./REY2MYT4.js";import{C as x,b as g,c as w,z as v}from"./LIHE32UV.js";import{a as V}from"./ALJDMHRR.js";import"./BUKUYGGP.js";import{a as L,c,d as E,e as S,f as P}from"./TLJSKEF2.js";import"./GNZLER6U.js";var D=":host{display:block;--instant-apps-scoreboard-background-color:var(--calcite-color-foreground-1);--instant-apps-scoreboard-text-color:var(--calcite-color-text-1);--instant-apps-scoreboard-mobile-position-bottom:0;background-color:var(--instant-apps-scoreboard-background-color);color:var(--instant-apps-scoreboard-text-color)}:host .instant-apps-scoreboard{box-sizing:border-box;border:1px solid var(--calcite-color-border-1);box-shadow:0px 3px 15px rgba(0, 0, 0, 0.2);border-radius:3px}:host .instant-apps-scoreboard calcite-loader{--calcite-loader-padding:1rem}:host .instant-apps-scoreboard__items-container{display:flex}:host .instant-apps-scoreboard__items-container calcite-action{height:100%}:host .instant-apps-scoreboard__items,:host .instant-apps-scoreboard__item{box-sizing:border-box;display:flex}:host .instant-apps-scoreboard__items{list-style-type:none;padding-left:0;margin:0;padding-top:1.75%;padding-bottom:1.75%;width:100%}:host .instant-apps-scoreboard__item{flex-direction:column;justify-content:flex-end;align-items:center;padding:1%}:host .instant-apps-scoreboard__item-label{box-sizing:border-box;line-height:24px;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;word-break:break-word}:host .instant-apps-scoreboard__item-label{font-size:1rem;font-weight:400;text-align:center}:host .instant-apps-scoreboard__item-value{display:flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;margin-top:5px;font-size:1.5rem;font-weight:900}:host .instant-apps-scoreboard__item-value-placeholder{display:inline-block;width:32px;height:32px;background-color:var(--calcite-color-foreground-3);border-radius:4px}:host(.instant-apps-scoreboard__position--bottom){bottom:0}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__items{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__item{min-width:10vw;vertical-align:top}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating){left:50%;max-width:calc(100% - 30px);transform:translate(-50%, -15px)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:25vw}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){left:unset;bottom:0;transform:unset;width:100%}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{min-width:unset}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{width:100%;justify-content:space-between}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard{display:flex;justify-content:center;align-items:center;width:10vw;overflow-y:auto}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container{flex-direction:column;height:100%;box-sizing:border-box}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container calcite-action{height:unset;width:100%}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items{flex-direction:column;padding:10px}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__item{padding-top:0.5vh;padding-bottom:0.5vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating){top:15px;left:15px;max-height:calc(100% - 30px)}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:10vw;min-height:35vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned){top:unset;left:unset;transform:unset;height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{justify-content:space-between}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--floating){left:15px}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--floating){left:unset;right:15px}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--pinned){left:0}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--pinned){left:unset;right:0}@media only screen and (min-width: 992px){:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){bottom:var(--instant-apps-scoreboard-mobile-position-bottom)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__item{justify-content:center;min-width:unset;flex-grow:1}}",$=D,u="instant-apps-scoreboard",U=6,C=`${u}--`,p=`${u}__`,F=V.medium[1],m={BASE:u,itemsContainer:`${p}items-container`,items:`${p}items`,item:`${p}item`,label:`${p}item-label`,value:`${p}item-value`,valuePlaceholder:`${p}item-value-placeholder`,position:{bottom:`${p}position--bottom`,side:`${p}position--side`,left:`${p}position--left`,right:`${p}position--right`},mode:{floating:`${p}mode--floating`,pinned:`${p}mode--pinned`}},A=class{constructor(t){L(this,t),this.scoreboardItemsUpdated=P(this,"scoreboardItemsUpdated",7),this.view=void 0,this.items=void 0,this.position="bottom",this.mode="floating",this.itemLimit=6,this.autoDockEnabled=!0,this.geometry=null,this.queryType="layerView",this.state="loading",this.messages=void 0,this.itemIndex=0,this.layers=void 0,this.layerViews=void 0,this.isMobile=!1}scoreboardItemsUpdatedHandler(){this.scoreboardItemsUpdated.emit(this.items)}generateUIDs(){this.itemIndex=0,this.items.forEach(this.generateUID())}async storeLayers(){this.state="calculating",await(this.view?.map).loadAll();let t=this.items.map(e=>e?.layer?.id),s=e=>e.type!=="feature"||!e.isTable,o=e=>e.type==="feature"||e.type==="scene",i=e=>t.includes(e.id),a=e=>s(e)&&o(e)&&i(e);this.layers=this.view?.map?.allLayers?.filter(e=>a(e)),this.watchLayerVisibility()}async storeLayerViews(){if(this.layers&&this.layers.length>0){this.layers.forEach(e=>e.outFields=["*"]);let t=[];this.layers.forEach(e=>{let n=e,r=this.view?.whenLayerView(n);t.push(r)});let i=(await Promise.allSettled(t)).filter(e=>e.status==="fulfilled"&&e.value).map(e=>e.value),a=[];i.forEach(e=>a.push(this.reactiveUtils?.whenOnce(()=>!e.updating))),await Promise.all(a),this.layerViews=await g([...i])}}calculateScoreboardItemValuesFromGeometry(){this.calculateScoreboardItemValues()}async calculateScoreboardItemValues(){if(this.layers&&this.layers.length===0||this.layerViews&&this.layerViews.length===0)return;this.state="calculating";let t=[...this.items],s=[];this.queryStatDefinitions(t,s);let o=await Promise.all(s);this.handleQueryFeaturesResponses(o,t),this.items.length=0,t.forEach(i=>this.items.push(i)),this.state="complete",this.scoreboardItemsUpdatedHandler(),this.initStationaryWatcher()}async componentWillLoad(){let t=new ResizeObserver(()=>{this.itemIndex=0,this.autoDockEnabled&&(this.isMobile=!!this.checkMobile)});this.el?.parentElement&&t.observe(this.el.parentElement);try{this.state="loading",await this.initMessages()}catch{return this.state="disabled",Promise.reject(new Error("Failed to load messages"))}finally{if(!this.view||!this.items)this.state="disabled";else try{await this.initModules()}catch{this.state="disabled"}}}async componentDidLoad(){if(this.state!=="disabled")try{await this.reactiveUtils?.whenOnce(()=>this.view?.ready),this.generateUIDs(),await this.loadMapResources(),this.storeLayers(),this.initViewUpdateWatcher()}catch{this.state="disabled",console.error(`${u}: FAILED TO LOAD MAP RESOURCES`)}}disconnectedCallback(){this.state="disabled",this.itemIndex=0,this.layers?.removeAll(),this.layers?.destroy(),this.layers=null,this.layerViews?.removeAll(),this.layerViews?.destroy(),this.layerViews=null,this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}async initMessages(){let t;try{return t=(await I(this.el))[0],this.messages={...this.messages,...t},Promise.resolve()}catch{console.error("FAILED TO LOAD MESSAGES")}}async initModules(){try{let[t,s]=await Promise.all([v(),x()]);return this.reactiveUtils=t,this.intl=s,this.handles=await w(),this.layers=await g([]),this.layerViews=await g([]),Promise.resolve()}catch(t){throw console.error(t),this.state="disabled",new Error("Failed to initialize modules")}}async loadMapResources(){if(this.view){let{map:t}=this.view,s=t;try{return await s.loadAll(),Promise.resolve()}catch(o){throw console.error(o),this.state="disabled",new Error("Failed to load map resources")}}}generateUID(){return t=>{let s=Math.random(),o=Math.floor(Math.random()*10)+11,a=s.toString(o).replace("0.","");t.uid=a}}render(){let{state:t}=this,s=t==="loading",o=t==="calculating",i=t==="disabled",a=s||o||this.queryType==="layerView"&&this.view?.updating?this.renderProgress():null,e=this.getPositionClass,n=this.getStyleClass;return c(E,{key:"2ec5b4e44c244ee935453d96887e07633f2abf37",class:`${e} ${n}`},i?null:[a,this.items?.length>0?this.renderBase():null])}renderBase(){return c("div",{key:"instant-apps-scoreboard-base",class:u},this.renderContent())}renderContent(){let{state:t}=this;return t==="loading"?this.renderLoader():t==="calculating"||t==="complete"?this.renderItemsContainer():null}renderItemsContainer(){let[t,s]=this.renderPreviousNextButtons();return c("div",{class:m.itemsContainer},t,this.renderItems(),s)}renderPreviousNextButtons(){let t=this.getItemLimit(),s=this.items.filter(k=>k.visible)?.length<=t,o=this.itemIndex===0,i=this.isEnd,a=this.isMobile?!0:this.position==="bottom",e=a?"start":"center",l={previous:a?"chevron-left":"chevron-up",next:a?"chevron-right":"chevron-down"},d=o||s?"blank":l.previous,h=i||s?"blank":l.next,b={previous:o||s,next:i||s},_="transparent",f=this.isMobile?"s":"l",y={previous:this.messages?.previous,next:this.messages?.next};return[c("calcite-action",{onClick:this.previousItem.bind(this),icon:d,disabled:b.previous,alignment:e,scale:f,appearance:_,text:y.previous??"",label:y.previous}),c("calcite-action",{onClick:this.nextItem.bind(this),icon:h,disabled:b.next,alignment:e,scale:f,appearance:_,text:y.next??"",label:y.next})]}renderItems(){let{items:t}=m,o=this.getItemsToDisplay.map(i=>this.renderItem(i));return c("ul",{class:t},o)}renderItem(t){let{label:s}=t;return c("li",{class:m.item},c("span",{class:m.label,title:s},s),this.renderValue(t))}renderValue(t){let{displayValue:s}=t,o=this.state==="calculating",i=this.state==="disabled",a=s===void 0&&o,e=s||this.messages?.NA,r=!this.layers?.find(d=>t?.layer?.id===d.id)?.visible,l=a?this.renderValuePlaceholder():i?"":r?c("calcite-icon",{icon:"view-hide",scale:"l",title:this.messages?.layerVisibilityOff}):e;return c("span",{class:m.value},l)}renderValuePlaceholder(){return c("span",{class:m.valuePlaceholder})}renderProgress(){let t=`${C}calcite-`;return c("calcite-progress",{key:`${t}progress`,type:"indeterminate"})}renderLoader(){let t=`${C}calcite-`,s=this.messages?.loading;return c("calcite-loader",{key:`${t}loader`,label:s??"",text:s,scale:"m"})}get getPositionClass(){let{bottom:t,left:s,right:o,side:i}=m.position,a=`${this.position==="left"?s:o} ${i}`;return this.isMobile||this.position==="bottom"?t:a}get getStyleClass(){let{floating:t,pinned:s}=m.mode;return this.isMobile?s:this.mode==="floating"?t:s}get checkMobile(){let t=this.el?.parentElement?.offsetWidth;return t&&!Number.isNaN(t)&&t>0?t<F:!1}get getItemsToDisplay(){let t=this.getItemLimit();return this.items.filter(s=>s.visible).slice(this.itemIndex,t+this.itemIndex)}get isEnd(){let t=this.getItemLimit(),o=this.items.slice(this.items.length-t).map(a=>a.uid),i=this.items.slice(this.itemIndex,this.itemIndex+t).map(a=>a.uid);return o.every((a,e)=>a===i[e])}previousItem(){this.itemIndex=this.itemIndex-1}nextItem(){this.itemIndex=this.itemIndex+1}queryStatDefinitions(t,s){let o=e=>{let{field:n,operation:r}=e,l=n,d=`${n}_${r}`;return{onStatisticField:l,outStatisticFieldName:d,statisticType:r}},i=(e,n)=>{let r=this.queryType==="layer"?e.layer.createQuery():e.createQuery(),l=[n],d=this.geometry?this.geometry:this.view?.extent;r.outStatistics=l,r.geometry=d;let h=e?.filter?.timeExtent??e?.featureEffect?.filter?.timeExtent??null;return h&&(r.timeExtent=h),r},a=()=>async e=>{let n=this.layerViews?.find(h=>h.layer.id===e?.layer?.id);if(!n)return;let r=o(e),l=i(n,r),d=this.queryType==="layer"?n.layer.queryFeatures(l):n.queryFeatures(l);s.push(d)};t.forEach(a())}handleQueryFeaturesResponses(t,s){let o=e=>{let r=e.features[0],{attributes:l}=r;return Object.values(l)[0]},i=()=>({notation:"compact",compactDisplay:"short"}),a=()=>(e,n)=>{let r=o(e),l=i(),d=r!==null,h=d?this.intl.formatNumber(r,l):null,b=d?`${h}`:"";s[n].displayValue=b,s[n].value=r};t.forEach(a())}initStationaryWatcher(){let t={once:!0,initial:!0},s=()=>this.reactiveUtils?.when(()=>!this.view?.interacting,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},t),o=()=>this.reactiveUtils?.when(()=>this.view?.stationary,()=>s()),i="stationary-watcher-key";this.handles?.has(i)&&this.handles.remove(i),this.handles?.add(o(),i)}initViewUpdateWatcher(){return this.reactiveUtils.watch(()=>this.view?.updating,()=>{this.reactiveUtils.when(()=>!this.view?.updating,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},{once:!0,initial:!0})},{initial:!0})}watchLayerVisibility(){if(!this.layers)return;let t="visbilityWatcherKey";this.handles?.remove(t);let s=[],o=i=>{let a=async()=>{let n=await this.view?.whenLayerView(i);await this.reactiveUtils.whenOnce(()=>!n?.updating),this.calculateScoreboardItemValues()},e=this.reactiveUtils.watch(()=>i?.visible,async()=>await a());s.push(e)};this.layers.forEach(o),this.handles?.add([...s],t)}getItemLimit(){return this.itemLimit<2||this.itemLimit>6?U:this.itemLimit}get el(){return S(this)}static get watchers(){return{items:["generateUIDs","storeLayers"],layers:["storeLayerViews"],geometry:["calculateScoreboardItemValuesFromGeometry"],layerViews:["calculateScoreboardItemValues"]}}};A.style=$;export{A as instant_apps_scoreboard};
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{d as I}from"./PYJIK3CR.js";import{C as x,b as g,c as w,z as v}from"./4JGCEBGT.js";import{a as V}from"./W5OOXAU4.js";import"./52W5VWDL.js";import{a as L,c,d as E,e as S,f as P}from"./VFEXPJTW.js";import"./6XZWFS7Y.js";var D=":host{display:block;--instant-apps-scoreboard-background-color:var(--calcite-color-foreground-1);--instant-apps-scoreboard-text-color:var(--calcite-color-text-1);--instant-apps-scoreboard-mobile-position-bottom:0;background-color:var(--instant-apps-scoreboard-background-color);color:var(--instant-apps-scoreboard-text-color)}:host .instant-apps-scoreboard{box-sizing:border-box;border:1px solid var(--calcite-color-border-1);box-shadow:0px 3px 15px rgba(0, 0, 0, 0.2);border-radius:3px}:host .instant-apps-scoreboard calcite-loader{--calcite-loader-padding:1rem}:host .instant-apps-scoreboard__items-container{display:flex}:host .instant-apps-scoreboard__items-container calcite-action{height:100%}:host .instant-apps-scoreboard__items,:host .instant-apps-scoreboard__item{box-sizing:border-box;display:flex}:host .instant-apps-scoreboard__items{list-style-type:none;padding-left:0;margin:0;padding-top:1.75%;padding-bottom:1.75%;width:100%}:host .instant-apps-scoreboard__item{flex-direction:column;justify-content:flex-end;align-items:center;padding:1%}:host .instant-apps-scoreboard__item-label{box-sizing:border-box;line-height:24px;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;word-break:break-word}:host .instant-apps-scoreboard__item-label{font-size:1rem;font-weight:400;text-align:center}:host .instant-apps-scoreboard__item-value{display:flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;margin-top:5px;font-size:1.5rem;font-weight:900}:host .instant-apps-scoreboard__item-value-placeholder{display:inline-block;width:32px;height:32px;background-color:var(--calcite-color-foreground-3);border-radius:4px}:host(.instant-apps-scoreboard__position--bottom){bottom:0}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__items{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__item{min-width:10vw;vertical-align:top}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating){left:50%;max-width:calc(100% - 30px);transform:translate(-50%, -15px)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:25vw}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){left:unset;bottom:0;transform:unset;width:100%}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{min-width:unset}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{width:100%;justify-content:space-between}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard{display:flex;justify-content:center;align-items:center;width:10vw;overflow-y:auto}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container{flex-direction:column;height:100%;box-sizing:border-box}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container calcite-action{height:unset;width:100%}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items{flex-direction:column;padding:10px}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__item{padding-top:0.5vh;padding-bottom:0.5vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating){top:15px;left:15px;max-height:calc(100% - 30px)}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:10vw;min-height:35vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned){top:unset;left:unset;transform:unset;height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{justify-content:space-between}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--floating){left:15px}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--floating){left:unset;right:15px}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--pinned){left:0}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--pinned){left:unset;right:0}@media only screen and (min-width: 992px){:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){bottom:var(--instant-apps-scoreboard-mobile-position-bottom)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__item{justify-content:center;min-width:unset;flex-grow:1}}",$=D,u="instant-apps-scoreboard",U=6,C=`${u}--`,p=`${u}__`,F=V.medium[1],m={BASE:u,itemsContainer:`${p}items-container`,items:`${p}items`,item:`${p}item`,label:`${p}item-label`,value:`${p}item-value`,valuePlaceholder:`${p}item-value-placeholder`,position:{bottom:`${p}position--bottom`,side:`${p}position--side`,left:`${p}position--left`,right:`${p}position--right`},mode:{floating:`${p}mode--floating`,pinned:`${p}mode--pinned`}},A=class{constructor(t){L(this,t),this.scoreboardItemsUpdated=P(this,"scoreboardItemsUpdated",7),this.view=void 0,this.items=void 0,this.position="bottom",this.mode="floating",this.itemLimit=6,this.autoDockEnabled=!0,this.geometry=null,this.queryType="layerView",this.state="loading",this.messages=void 0,this.itemIndex=0,this.layers=void 0,this.layerViews=void 0,this.isMobile=!1}scoreboardItemsUpdatedHandler(){this.scoreboardItemsUpdated.emit(this.items)}generateUIDs(){this.itemIndex=0,this.items.forEach(this.generateUID())}async storeLayers(){this.state="calculating",await(this.view?.map).loadAll();let t=this.items.map(e=>e?.layer?.id),s=e=>e.type!=="feature"||!e.isTable,o=e=>e.type==="feature"||e.type==="scene",i=e=>t.includes(e.id),a=e=>s(e)&&o(e)&&i(e);this.layers=this.view?.map?.allLayers?.filter(e=>a(e)),this.watchLayerVisibility()}async storeLayerViews(){if(this.layers&&this.layers.length>0){this.layers.forEach(e=>e.outFields=["*"]);let t=[];this.layers.forEach(e=>{let n=e,r=this.view?.whenLayerView(n);t.push(r)});let i=(await Promise.allSettled(t)).filter(e=>e.status==="fulfilled"&&e.value).map(e=>e.value),a=[];i.forEach(e=>a.push(this.reactiveUtils?.whenOnce(()=>!e.updating))),await Promise.all(a),this.layerViews=await g([...i])}}calculateScoreboardItemValuesFromGeometry(){this.calculateScoreboardItemValues()}async calculateScoreboardItemValues(){if(this.layers&&this.layers.length===0||this.layerViews&&this.layerViews.length===0)return;this.state="calculating";let t=[...this.items],s=[];this.queryStatDefinitions(t,s);let o=await Promise.all(s);this.handleQueryFeaturesResponses(o,t),this.items.length=0,t.forEach(i=>this.items.push(i)),this.state="complete",this.scoreboardItemsUpdatedHandler(),this.initStationaryWatcher()}async componentWillLoad(){let t=new ResizeObserver(()=>{this.itemIndex=0,this.autoDockEnabled&&(this.isMobile=!!this.checkMobile)});this.el?.parentElement&&t.observe(this.el.parentElement);try{this.state="loading",await this.initMessages()}catch{return this.state="disabled",Promise.reject(new Error("Failed to load messages"))}finally{if(!this.view||!this.items)this.state="disabled";else try{await this.initModules()}catch{this.state="disabled"}}}async componentDidLoad(){if(this.state!=="disabled")try{await this.reactiveUtils?.whenOnce(()=>this.view?.ready),this.generateUIDs(),await this.loadMapResources(),this.storeLayers(),this.initViewUpdateWatcher()}catch{this.state="disabled",console.error(`${u}: FAILED TO LOAD MAP RESOURCES`)}}disconnectedCallback(){this.state="disabled",this.itemIndex=0,this.layers?.removeAll(),this.layers?.destroy(),this.layers=null,this.layerViews?.removeAll(),this.layerViews?.destroy(),this.layerViews=null,this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}async initMessages(){let t;try{return t=(await I(this.el))[0],this.messages={...this.messages,...t},Promise.resolve()}catch{console.error("FAILED TO LOAD MESSAGES")}}async initModules(){try{let[t,s]=await Promise.all([v(),x()]);return this.reactiveUtils=t,this.intl=s,this.handles=await w(),this.layers=await g([]),this.layerViews=await g([]),Promise.resolve()}catch(t){throw console.error(t),this.state="disabled",new Error("Failed to initialize modules")}}async loadMapResources(){if(this.view){let{map:t}=this.view,s=t;try{return await s.loadAll(),Promise.resolve()}catch(o){throw console.error(o),this.state="disabled",new Error("Failed to load map resources")}}}generateUID(){return t=>{let s=Math.random(),o=Math.floor(Math.random()*10)+11,a=s.toString(o).replace("0.","");t.uid=a}}render(){let{state:t}=this,s=t==="loading",o=t==="calculating",i=t==="disabled",a=s||o||this.queryType==="layerView"&&this.view?.updating?this.renderProgress():null,e=this.getPositionClass,n=this.getStyleClass;return c(E,{key:"2ec5b4e44c244ee935453d96887e07633f2abf37",class:`${e} ${n}`},i?null:[a,this.items?.length>0?this.renderBase():null])}renderBase(){return c("div",{key:"instant-apps-scoreboard-base",class:u},this.renderContent())}renderContent(){let{state:t}=this;return t==="loading"?this.renderLoader():t==="calculating"||t==="complete"?this.renderItemsContainer():null}renderItemsContainer(){let[t,s]=this.renderPreviousNextButtons();return c("div",{class:m.itemsContainer},t,this.renderItems(),s)}renderPreviousNextButtons(){let t=this.getItemLimit(),s=this.items.filter(k=>k.visible)?.length<=t,o=this.itemIndex===0,i=this.isEnd,a=this.isMobile?!0:this.position==="bottom",e=a?"start":"center",l={previous:a?"chevron-left":"chevron-up",next:a?"chevron-right":"chevron-down"},d=o||s?"blank":l.previous,h=i||s?"blank":l.next,b={previous:o||s,next:i||s},_="transparent",f=this.isMobile?"s":"l",y={previous:this.messages?.previous,next:this.messages?.next};return[c("calcite-action",{onClick:this.previousItem.bind(this),icon:d,disabled:b.previous,alignment:e,scale:f,appearance:_,text:y.previous??"",label:y.previous}),c("calcite-action",{onClick:this.nextItem.bind(this),icon:h,disabled:b.next,alignment:e,scale:f,appearance:_,text:y.next??"",label:y.next})]}renderItems(){let{items:t}=m,o=this.getItemsToDisplay.map(i=>this.renderItem(i));return c("ul",{class:t},o)}renderItem(t){let{label:s}=t;return c("li",{class:m.item},c("span",{class:m.label,title:s},s),this.renderValue(t))}renderValue(t){let{displayValue:s}=t,o=this.state==="calculating",i=this.state==="disabled",a=s===void 0&&o,e=s||this.messages?.NA,r=!this.layers?.find(d=>t?.layer?.id===d.id)?.visible,l=a?this.renderValuePlaceholder():i?"":r?c("calcite-icon",{icon:"view-hide",scale:"l",title:this.messages?.layerVisibilityOff}):e;return c("span",{class:m.value},l)}renderValuePlaceholder(){return c("span",{class:m.valuePlaceholder})}renderProgress(){let t=`${C}calcite-`;return c("calcite-progress",{key:`${t}progress`,type:"indeterminate"})}renderLoader(){let t=`${C}calcite-`,s=this.messages?.loading;return c("calcite-loader",{key:`${t}loader`,label:s??"",text:s,scale:"m"})}get getPositionClass(){let{bottom:t,left:s,right:o,side:i}=m.position,a=`${this.position==="left"?s:o} ${i}`;return this.isMobile||this.position==="bottom"?t:a}get getStyleClass(){let{floating:t,pinned:s}=m.mode;return this.isMobile?s:this.mode==="floating"?t:s}get checkMobile(){let t=this.el?.parentElement?.offsetWidth;return t&&!Number.isNaN(t)&&t>0?t<F:!1}get getItemsToDisplay(){let t=this.getItemLimit();return this.items.filter(s=>s.visible).slice(this.itemIndex,t+this.itemIndex)}get isEnd(){let t=this.getItemLimit(),o=this.items.slice(this.items.length-t).map(a=>a.uid),i=this.items.slice(this.itemIndex,this.itemIndex+t).map(a=>a.uid);return o.every((a,e)=>a===i[e])}previousItem(){this.itemIndex=this.itemIndex-1}nextItem(){this.itemIndex=this.itemIndex+1}queryStatDefinitions(t,s){let o=e=>{let{field:n,operation:r}=e,l=n,d=`${n}_${r}`;return{onStatisticField:l,outStatisticFieldName:d,statisticType:r}},i=(e,n)=>{let r=this.queryType==="layer"?e.layer.createQuery():e.createQuery(),l=[n],d=this.geometry?this.geometry:this.view?.extent;r.outStatistics=l,r.geometry=d;let h=e?.filter?.timeExtent??e?.featureEffect?.filter?.timeExtent??null;return h&&(r.timeExtent=h),r},a=()=>async e=>{let n=this.layerViews?.find(h=>h.layer.id===e?.layer?.id);if(!n)return;let r=o(e),l=i(n,r),d=this.queryType==="layer"?n.layer.queryFeatures(l):n.queryFeatures(l);s.push(d)};t.forEach(a())}handleQueryFeaturesResponses(t,s){let o=e=>{let r=e.features[0],{attributes:l}=r;return Object.values(l)[0]},i=()=>({notation:"compact",compactDisplay:"short"}),a=()=>(e,n)=>{let r=o(e),l=i(),d=r!==null,h=d?this.intl.formatNumber(r,l):null,b=d?`${h}`:"";s[n].displayValue=b,s[n].value=r};t.forEach(a())}initStationaryWatcher(){let t={once:!0,initial:!0},s=()=>this.reactiveUtils?.when(()=>!this.view?.interacting,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},t),o=()=>this.reactiveUtils?.when(()=>this.view?.stationary,()=>s()),i="stationary-watcher-key";this.handles?.has(i)&&this.handles.remove(i),this.handles?.add(o(),i)}initViewUpdateWatcher(){return this.reactiveUtils.watch(()=>this.view?.updating,()=>{this.reactiveUtils.when(()=>!this.view?.updating,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},{once:!0,initial:!0})},{initial:!0})}watchLayerVisibility(){if(!this.layers)return;let t="visbilityWatcherKey";this.handles?.remove(t);let s=[],o=i=>{let a=async()=>{let n=await this.view?.whenLayerView(i);await this.reactiveUtils.whenOnce(()=>!n?.updating),this.calculateScoreboardItemValues()},e=this.reactiveUtils.watch(()=>i?.visible,async()=>await a());s.push(e)};this.layers.forEach(o),this.handles?.add([...s],t)}getItemLimit(){return this.itemLimit<2||this.itemLimit>6?U:this.itemLimit}get el(){return S(this)}static get watchers(){return{items:["generateUIDs","storeLayers"],layers:["storeLayerViews"],geometry:["calculateScoreboardItemValuesFromGeometry"],layerViews:["calculateScoreboardItemValues"]}}};A.style=$;export{A as instant_apps_scoreboard};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{C as g}from"./LIHE32UV.js";import{a as u}from"./BUKUYGGP.js";import{b as i}from"./TLJSKEF2.js";var T={full:{ar:{language:"Arabic",translated:"\u0639\u0631\u0628\u064A"},bg:{language:"Bulgarian",translated:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"},bs:{language:"Bosnian",translated:"Bosanski"},ca:{language:"Catalan",translated:"Catal\xE0"},cs:{language:"Czech",translated:"\u010De\u0161tina"},da:{language:"Danish",translated:"Dansk"},de:{language:"German",translated:"Deutsch"},el:{language:"Greek",translated:"\u0395\u03BB\u03BB\u03AC\u03B4\u03B1"},en:{language:"English",translated:"English"},es:{language:"Spanish",translated:"Espa\xF1ol"},et:{language:"Estonian",translated:"Eesti"},fi:{language:"Finnish",translated:"Suomi"},fr:{language:"French",translated:"Fran\xE7ais"},he:{language:"Hebrew",translated:"\u05E2\u05D1\u05E8\u05D9\u05EA"},hr:{language:"Croatian",translated:"Hrvatski"},hu:{language:"Hungarian",translated:"Magyar"},id:{language:"Indonesian",translated:"Bahasa Indonesia",supportsAutoTranslate:!0},it:{language:"Italian",translated:"Italiano"},ja:{language:"Japanese",translated:"\u65E5\u672C\u8A9E"},ko:{language:"Korean",translated:"\uD55C\uAD6D\uC5B4"},lt:{language:"Lithuanian",translated:"Lietuvi\u0173"},lv:{language:"Latvian",translated:"Latvie\u0161u"},no:{language:"Norwegian",translated:"Norsk"},nl:{language:"Dutch",translated:"Nederlands"},pl:{language:"Polish",translated:"Polski"},"pt-BR":{language:"Portuguese (Brazil)",translated:"Portugu\xEAs (Brasil)"},"pt-PT":{language:"Portuguese (Portugal)",translated:"Portugu\xEAs (Portugal)"},ro:{language:"Romanian",translated:"Rom\xE2n\u0103"},ru:{language:"Russian",translated:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"},sk:{language:"Slovak",translated:"Sloven\u010Dina"},sl:{language:"Slovenian",translated:"Sloven\u0161\u010Dina"},sr:{language:"Serbian",translated:"Srpski"},sv:{language:"Swedish",translated:"Svenska"},th:{language:"Thai",translated:"\u0E44\u0E17\u0E22"},tr:{language:"Turkish",translated:"T\xFCrkiye"},uk:{language:"Ukrainian",translated:"\u0423\u043A\u0440\u0430\u0457\u043D\u0430"},vi:{language:"Vietnamese",translated:"Ti\u1EBFng Vi\u1EC7t"},"zh-CN":{language:"Simplified Chinese",translated:"\u7B80\u4F53\u4E2D\u6587"},"zh-HK":{language:"Traditional Chinese (Hong Kong)",translated:"\u7E41\u9AD4\u4E2D\u6587\uFF08\u9999\u6E2F\uFF09"},"zh-TW":{language:"Traditional Chinese (Taiwan)",translated:"\u7E41\u9AD4\u4E2D\u6587\uFF08\u53F0\u7063\uFF09"}},partial:{ab:{language:"Abkhaz",translated:"\u0410\u04A7\u0441\u0443\u0430"},aa:{language:"Afar",translated:"Afar"},af:{language:"Afrikaans",translated:"Afrikaans",supportsAutoTranslate:!0},ak:{language:"Akan",translated:"Akan"},sq:{language:"Albanian",translated:"Shqip",supportsAutoTranslate:!0},am:{language:"Amharic",translated:"\u12A0\u121B\u122D\u129B",supportsAutoTranslate:!0},an:{language:"Aragonese",translated:"Aragon\xE9s"},hy:{language:"Armenian",translated:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",supportsAutoTranslate:!0},as:{language:"Assamese",translated:"\u0985\u09B8\u09AE\u09C0\u09DF\u09BE",supportsAutoTranslate:!0},av:{language:"Avaric",translated:"\u0430\u0432\u0430\u0440 \u043C\u0430\u0446\u04C0"},ae:{language:"Avestan",translated:"Avesta"},ay:{language:"Aymara",translated:"aymar aru"},az:{language:"Azerbaijani",translated:"az\u0259rbaycan dili"},bm:{language:"Bambara",translated:"bamanankan"},ba:{language:"Bashkir",translated:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442 \u0442\u0435\u043B\u0435",supportsAutoTranslate:!0},eu:{language:"Basque",translated:"euskara",supportsAutoTranslate:!0},be:{language:"Belarusian",translated:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F"},bn:{language:"Bengali",translated:"\u09AC\u09BE\u0982\u09B2\u09BE"},bh:{language:"Bihari",translated:"\u092D\u094B\u091C\u092A\u0941\u0930\u0940"},bi:{language:"Bislama",translated:"Bislama"},br:{language:"Breton",translated:"Brezhoneg"},my:{language:"Burmese",translated:"\u1017\u1019\u102C\u1005\u102C"},ch:{language:"Chamorro",translated:"Chamoru"},ce:{language:"Chechen",translated:"\u043D\u043E\u0445\u0447\u0438\u0439\u043D \u043C\u043E\u0442\u0442"},ny:{language:"Chichewa",translated:"chiChe\u0175a"},cu:{language:"Church Slavic",translated:"\u0469\u0437\u044B\u043A\u044A \u0441\u043B\u043E\u0432\u0463\u043D\u044C\u0441\u043A\u044A"},cv:{language:"Chuvash",translated:"\u0447\u04D1\u0432\u0430\u0448 \u0447\u04D7\u043B\u0445\u0438"},kw:{language:"Cornish",translated:"Kernewek"},co:{language:"Corsican",translated:"corsu"},cr:{language:"Cree",translated:"\u14C0\u1426\u1403\u152D\u140D\u140F\u1423"},dv:{language:"Divehi",translated:"\u078B\u07A8\u0788\u07AC\u0780\u07A8",supportsAutoTranslate:!0},eo:{language:"Esperanto",translated:"Esperanto"},ee:{language:"Ewe",translated:"\u0190\u028B\u025Bgb\u025B"},fo:{language:"Faroese",translated:"f\xF8royskt",supportsAutoTranslate:!0},fj:{language:"Fijian",translated:"Vosa Vakaviti"},ff:{language:"Fulah",translated:"Fulfulde"},gl:{language:"Galician",translated:"galego",supportsAutoTranslate:!0},ka:{language:"Georgian",translated:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",supportsAutoTranslate:!0},gn:{language:"Guarani",translated:"Ava\xF1e'\u1EBD"},gu:{language:"Gujarati",translated:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",supportsAutoTranslate:!0},ht:{language:"Haitian Creole",translated:"Krey\xF2l Ayisyen",supportsAutoTranslate:!0},ha:{language:"Hausa",translated:"\u0647\u064E\u0648\u064F\u0633\u064E",supportsAutoTranslate:!0},hz:{language:"Herero",translated:"Otjiherero"},hi:{language:"Hindi",translated:"\u0939\u093F\u0928\u094D\u0926\u0940"},ho:{language:"Hiri Motu",translated:"Hiri Motu"},is:{language:"Icelandic",translated:"\xCDslenska",supportsAutoTranslate:!0},io:{language:"Ido",translated:"Ido"},ig:{language:"Igbo",translated:"As\u1EE5s\u1EE5 Igbo",supportsAutoTranslate:!0},ia:{language:"Interlingua",translated:"Interlingua"},ie:{language:"Interlingue",translated:"Interlingue"},iu:{language:"Inuktitut",translated:"\u1403\u14C4\u1483\u144E\u1450\u1466",supportsAutoTranslate:!0},ip:{language:"Inupiaq",translated:"I\xF1upiaq"},ga:{language:"Irish",translated:"Gaeilge",supportsAutoTranslate:!0},jv:{language:"Javanese",translated:"\uA9A7\uA9B1\uA997\uA9AE"},kl:{language:"Kalaallisut",translated:"kalaallisut"},kn:{language:"Kannada",translated:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",supportsAutoTranslate:!0},kr:{language:"Kanuri",translated:"Kanuri"},ks:{language:"Kashmiri",translated:"\u0915\u0936\u094D\u092E\u0940\u0930\u0940",supportsAutoTranslate:!0},kk:{language:"Kazakh",translated:"\u049B\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456",supportsAutoTranslate:!0},km:{language:"Khmer",translated:"\u1781\u17D2\u1798\u17C2\u179A",supportsAutoTranslate:!0},ki:{language:"Kikuyu",translated:"G\u0129k\u0169y\u0169"},rw:{language:"Kinyarwanda",translated:"Kinyarwanda",supportsAutoTranslate:!0},rn:{language:"Kirundi",translated:"Ikirundi"},kv:{language:"Komi",translated:"\u043A\u043E\u043C\u0438 \u043A\u044B\u0432"},kg:{language:"Kongo",translated:"Kikongo"},ku:{language:"Kurdish",translated:"Kurd\xEE",supportsAutoTranslate:!0},kj:{language:"Kwanyama",translated:"Kuanyama"},ky:{language:"Kyrgyz",translated:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430"},lo:{language:"Lao",translated:"\u0E9E\u0EB2\u0EAA\u0EB2\u0EA5\u0EB2\u0EA7",supportsAutoTranslate:!0},la:{language:"Latin",translated:"latine"},li:{language:"Limburgish",translated:"Limburgs"},ln:{language:"Lingala",translated:"Ling\xE1la"},lu:{language:"Luba-Katanga",translated:"Kiluba"},lg:{language:"Luganda",translated:"Luganda"},lb:{language:"Luxembourgish",translated:"L\xEBtzebuergesch"},mk:{language:"Macedonian",translated:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438 \u0458\u0430\u0437\u0438\u043A",supportsAutoTranslate:!0},mg:{language:"Malagasy",translated:"fiteny malagasy",supportsAutoTranslate:!0},ms:{language:"Malay",translated:"Bahasa Melayu",supportsAutoTranslate:!0},ml:{language:"Malayalam",translated:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",supportsAutoTranslate:!0},mt:{language:"Maltese",translated:"Malti",supportsAutoTranslate:!0},gv:{language:"Manx",translated:"Gailck"},mi:{language:"Maori",translated:"te reo M\u0101ori",supportsAutoTranslate:!0},mr:{language:"Marathi",translated:"\u092E\u0930\u093E\u0920\u0940",supportsAutoTranslate:!0},mh:{language:"Marshallese",translated:"Kajin M\u0327aje\u013C"},mn:{language:"Mongolian",translated:"\u041C\u043E\u043D\u0433\u043E\u043B \u0445\u044D\u043B"},na:{language:"Nauru",translated:"Ekakair\u0169 Naoero"},nv:{language:"Navajo",translated:"Din\xE9 bizaad"},ng:{language:"Ndonga",translated:"Owambo"},ne:{language:"Nepali",translated:"\u0928\u0947\u092A\u093E\u0932\u0940",supportsAutoTranslate:!0},nd:{language:"North Ndebele",translated:"isiNdebele"},se:{language:"Northern Sami",translated:"Davvis\xE1megiella"},ii:{language:"Nuosu",translated:"\uA188\uA320\uA4BF Nuosuhxop"},oc:{language:"Occitan",translated:"occitan"},oj:{language:"Ojibwe",translated:"\u140A\u14C2\u1511\u14C8\u142F\u14A7\u140E\u14D0"},or:{language:"Oriya",translated:"\u0B13\u0B21\u0B3C\u0B3F\u0B06",supportsAutoTranslate:!0},om:{language:"Oromo",translated:"Afaan Oromoo"},os:{language:"Ossetian",translated:"\u0438\u0440\u043E\u043D \xE6\u0432\u0437\u0430\u0433"},pi:{language:"Pali",translated:"\u092A\u093E\u0934\u093F"},pa:{language:"Panjabi",translated:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40"},ps:{language:"Pashto",translated:"\u067E\u069A\u062A\u0648",supportsAutoTranslate:!0},fa:{language:"Persian",translated:"\u0641\u0627\u0631\u0633\u06CC",supportsAutoTranslate:!0},qu:{language:"Quechua",translated:"Runa Simi"},rm:{language:"Romansh",translated:"rumantsch grischun"},sm:{language:"Samoan",translated:"gagana fa'a Samoa",supportsAutoTranslate:!0},sg:{language:"Sango",translated:"y\xE2ng\xE2 t\xEE s\xE4ng\xF6"},sa:{language:"Sanskrit",translated:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D"},sc:{language:"Sardinian",translated:"sardu"},gd:{language:"Scottish Gaelic",translated:"G\xE0idhlig"},sn:{language:"Shona",translated:"chiShona"},sd:{language:"Sindhi",translated:"\u0938\u093F\u0928\u094D\u0927\u0940",supportsAutoTranslate:!0},si:{language:"Sinhala",translated:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",supportsAutoTranslate:!0},so:{language:"Somali",translated:"Soomaaliga",supportsAutoTranslate:!0},nr:{language:"South Ndebele",translated:"isiNdebele"},st:{language:"Southern Sotho",translated:"Sesotho"},su:{language:"Sundanese",translated:"Basa Sunda"},sw:{language:"Swahili",translated:"Kiswahili",supportsAutoTranslate:!0},ss:{language:"Swati",translated:"SiSwati"},tl:{language:"Tagalog",translated:"Wikang Tagalog"},ty:{language:"Tahitian",translated:"Reo Tahiti",supportsAutoTranslate:!0},tg:{language:"Tajik",translated:"\u0442\u043E\u04B7\u0438\u043A\u04E3"},ta:{language:"Tamil",translated:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",supportsAutoTranslate:!0},tt:{language:"Tatar",translated:"\u0442\u0430\u0442\u0430\u0440 \u0442\u0435\u043B\u0435",supportsAutoTranslate:!0},te:{language:"Telugu",translated:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",supportsAutoTranslate:!0},bo:{language:"Tibetan",translated:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",supportsAutoTranslate:!0},ti:{language:"Tigrinya",translated:"\u1275\u130D\u122D\u129B",supportsAutoTranslate:!0},to:{language:"Tonga",translated:"faka Tonga",supportsAutoTranslate:!0},ts:{language:"Tsonga",translated:"Xitsonga"},tn:{language:"Tswana",translated:"Setswana"},tk:{language:"Turkmen",translated:"T\xFCrkmen",supportsAutoTranslate:!0},tw:{language:"Twi",translated:"Twi"},ug:{language:"Uighur",translated:"Uy\u01A3urq\u0259"},ur:{language:"Urdu",translated:"\u0627\u0631\u062F\u0648",supportsAutoTranslate:!0},uz:{language:"Uzbek",translated:"O'zbek",supportsAutoTranslate:!0},ve:{language:"Venda",translated:"Tshiven\u1E13a"},vo:{language:"Volap\xFCk",translated:"Volap\xFCk"},wa:{language:"Walloon",translated:"walon"},cy:{language:"Welsh",translated:"Cymraeg",supportsAutoTranslate:!0},fy:{language:"Western Frisian",translated:"Frysk"},wo:{language:"Wolof",translated:"Wollof"},xh:{language:"Xhosa",translated:"isiXhosa",supportsAutoTranslate:!0},yi:{language:"Yiddish",translated:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"},yo:{language:"Yoruba",translated:"Yor\xF9b\xE1",supportsAutoTranslate:!0},za:{language:"Zhuang",translated:"Sa\u026F cue\u014B\u0185"},zu:{language:"Zulu",translated:"isiZulu",supportsAutoTranslate:!0}}},A="localhost:4444",m=new URL(window.location.href).origin.includes(A);function k(){let a=(document.documentElement.lang||navigator?.language||"en").toLowerCase();return u.has(a)?u.get(a):u.has(a.slice(0,2))?u.get(a.slice(0,2)):"en"}async function d(a,e){let t=`assets/t9n/${a}/messages.${e}.json`,n=`${w()}/dist/${t}`;async function s(r){let l=await fetch(r);if(!l.ok)throw new Error(`Fetch failed with status ${l.status}: ${l.statusText}`);let o=l.headers.get("content-type");if(!o?.includes("application/json")){let h=await l.text();throw console.error(`Expected JSON, but received (${o}): ${h}`),new Error("Fetched content is not JSON")}return await l.json()}try{return await s(m?n:i(t))}catch(r){console.error(`Primary fetch error: ${r}`);try{return await s(n)}catch(l){throw console.error(`Fallback fetch error: ${l}`),new Error("Both primary and fallback fetches failed")}}}function v(a,e){let t=e?.user?.culture??"",n=window?.navigator?.language,s=a.getLocale(),r="en",l=a.normalizeMessageBundleLocale(t||n||s||r);return l??r}async function p(a,e){let t=a.tagName.toLowerCase(),n=e??k(),s;try{s=await d(t,n)}catch{console.warn(`no locale for ${t} (${n}) loading default locale en.`),s=await d(t,"en")}return[s,n]}async function C(a,e){try{let t=await p(a.el);c(a,t,e)}catch{}finally{try{(await g()).onLocaleChange(f(a,e))}catch{}}}function c(a,e,t){a.messages=e[0],t&&(a.messages={...a.messages,...t})}function f(a,e){return async t=>{let n=await y(t),s=await p(a.el,n);c(a,s,e)}}function w(){return new URL(window.location.href).origin}async function y(a){if(!a)return"en";if(!!T?.partial?.[a])return a;{let n=(await g()).normalizeMessageBundleLocale(a);return n??"en"}}export{T as a,k as b,v as c,p as d,C as e,y as f};
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{C as g}from"./4JGCEBGT.js";import{a as u}from"./52W5VWDL.js";import{b as i}from"./VFEXPJTW.js";var T={full:{ar:{language:"Arabic",translated:"\u0639\u0631\u0628\u064A"},bg:{language:"Bulgarian",translated:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"},bs:{language:"Bosnian",translated:"Bosanski"},ca:{language:"Catalan",translated:"Catal\xE0"},cs:{language:"Czech",translated:"\u010De\u0161tina"},da:{language:"Danish",translated:"Dansk"},de:{language:"German",translated:"Deutsch"},el:{language:"Greek",translated:"\u0395\u03BB\u03BB\u03AC\u03B4\u03B1"},en:{language:"English",translated:"English"},es:{language:"Spanish",translated:"Espa\xF1ol"},et:{language:"Estonian",translated:"Eesti"},fi:{language:"Finnish",translated:"Suomi"},fr:{language:"French",translated:"Fran\xE7ais"},he:{language:"Hebrew",translated:"\u05E2\u05D1\u05E8\u05D9\u05EA"},hr:{language:"Croatian",translated:"Hrvatski"},hu:{language:"Hungarian",translated:"Magyar"},id:{language:"Indonesian",translated:"Bahasa Indonesia",supportsAutoTranslate:!0},it:{language:"Italian",translated:"Italiano"},ja:{language:"Japanese",translated:"\u65E5\u672C\u8A9E"},ko:{language:"Korean",translated:"\uD55C\uAD6D\uC5B4"},lt:{language:"Lithuanian",translated:"Lietuvi\u0173"},lv:{language:"Latvian",translated:"Latvie\u0161u"},no:{language:"Norwegian",translated:"Norsk"},nl:{language:"Dutch",translated:"Nederlands"},pl:{language:"Polish",translated:"Polski"},"pt-BR":{language:"Portuguese (Brazil)",translated:"Portugu\xEAs (Brasil)"},"pt-PT":{language:"Portuguese (Portugal)",translated:"Portugu\xEAs (Portugal)"},ro:{language:"Romanian",translated:"Rom\xE2n\u0103"},ru:{language:"Russian",translated:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"},sk:{language:"Slovak",translated:"Sloven\u010Dina"},sl:{language:"Slovenian",translated:"Sloven\u0161\u010Dina"},sr:{language:"Serbian",translated:"Srpski"},sv:{language:"Swedish",translated:"Svenska"},th:{language:"Thai",translated:"\u0E44\u0E17\u0E22"},tr:{language:"Turkish",translated:"T\xFCrkiye"},uk:{language:"Ukrainian",translated:"\u0423\u043A\u0440\u0430\u0457\u043D\u0430"},vi:{language:"Vietnamese",translated:"Ti\u1EBFng Vi\u1EC7t"},"zh-CN":{language:"Simplified Chinese",translated:"\u7B80\u4F53\u4E2D\u6587"},"zh-HK":{language:"Traditional Chinese (Hong Kong)",translated:"\u7E41\u9AD4\u4E2D\u6587\uFF08\u9999\u6E2F\uFF09"},"zh-TW":{language:"Traditional Chinese (Taiwan)",translated:"\u7E41\u9AD4\u4E2D\u6587\uFF08\u53F0\u7063\uFF09"}},partial:{ab:{language:"Abkhaz",translated:"\u0410\u04A7\u0441\u0443\u0430"},aa:{language:"Afar",translated:"Afar"},af:{language:"Afrikaans",translated:"Afrikaans",supportsAutoTranslate:!0},ak:{language:"Akan",translated:"Akan"},sq:{language:"Albanian",translated:"Shqip",supportsAutoTranslate:!0},am:{language:"Amharic",translated:"\u12A0\u121B\u122D\u129B",supportsAutoTranslate:!0},an:{language:"Aragonese",translated:"Aragon\xE9s"},hy:{language:"Armenian",translated:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",supportsAutoTranslate:!0},as:{language:"Assamese",translated:"\u0985\u09B8\u09AE\u09C0\u09DF\u09BE",supportsAutoTranslate:!0},av:{language:"Avaric",translated:"\u0430\u0432\u0430\u0440 \u043C\u0430\u0446\u04C0"},ae:{language:"Avestan",translated:"Avesta"},ay:{language:"Aymara",translated:"aymar aru"},az:{language:"Azerbaijani",translated:"az\u0259rbaycan dili"},bm:{language:"Bambara",translated:"bamanankan"},ba:{language:"Bashkir",translated:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442 \u0442\u0435\u043B\u0435",supportsAutoTranslate:!0},eu:{language:"Basque",translated:"euskara",supportsAutoTranslate:!0},be:{language:"Belarusian",translated:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F"},bn:{language:"Bengali",translated:"\u09AC\u09BE\u0982\u09B2\u09BE"},bh:{language:"Bihari",translated:"\u092D\u094B\u091C\u092A\u0941\u0930\u0940"},bi:{language:"Bislama",translated:"Bislama"},br:{language:"Breton",translated:"Brezhoneg"},my:{language:"Burmese",translated:"\u1017\u1019\u102C\u1005\u102C"},ch:{language:"Chamorro",translated:"Chamoru"},ce:{language:"Chechen",translated:"\u043D\u043E\u0445\u0447\u0438\u0439\u043D \u043C\u043E\u0442\u0442"},ny:{language:"Chichewa",translated:"chiChe\u0175a"},cu:{language:"Church Slavic",translated:"\u0469\u0437\u044B\u043A\u044A \u0441\u043B\u043E\u0432\u0463\u043D\u044C\u0441\u043A\u044A"},cv:{language:"Chuvash",translated:"\u0447\u04D1\u0432\u0430\u0448 \u0447\u04D7\u043B\u0445\u0438"},kw:{language:"Cornish",translated:"Kernewek"},co:{language:"Corsican",translated:"corsu"},cr:{language:"Cree",translated:"\u14C0\u1426\u1403\u152D\u140D\u140F\u1423"},dv:{language:"Divehi",translated:"\u078B\u07A8\u0788\u07AC\u0780\u07A8",supportsAutoTranslate:!0},eo:{language:"Esperanto",translated:"Esperanto"},ee:{language:"Ewe",translated:"\u0190\u028B\u025Bgb\u025B"},fo:{language:"Faroese",translated:"f\xF8royskt",supportsAutoTranslate:!0},fj:{language:"Fijian",translated:"Vosa Vakaviti"},ff:{language:"Fulah",translated:"Fulfulde"},gl:{language:"Galician",translated:"galego",supportsAutoTranslate:!0},ka:{language:"Georgian",translated:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",supportsAutoTranslate:!0},gn:{language:"Guarani",translated:"Ava\xF1e'\u1EBD"},gu:{language:"Gujarati",translated:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",supportsAutoTranslate:!0},ht:{language:"Haitian Creole",translated:"Krey\xF2l Ayisyen",supportsAutoTranslate:!0},ha:{language:"Hausa",translated:"\u0647\u064E\u0648\u064F\u0633\u064E",supportsAutoTranslate:!0},hz:{language:"Herero",translated:"Otjiherero"},hi:{language:"Hindi",translated:"\u0939\u093F\u0928\u094D\u0926\u0940"},ho:{language:"Hiri Motu",translated:"Hiri Motu"},is:{language:"Icelandic",translated:"\xCDslenska",supportsAutoTranslate:!0},io:{language:"Ido",translated:"Ido"},ig:{language:"Igbo",translated:"As\u1EE5s\u1EE5 Igbo",supportsAutoTranslate:!0},ia:{language:"Interlingua",translated:"Interlingua"},ie:{language:"Interlingue",translated:"Interlingue"},iu:{language:"Inuktitut",translated:"\u1403\u14C4\u1483\u144E\u1450\u1466",supportsAutoTranslate:!0},ip:{language:"Inupiaq",translated:"I\xF1upiaq"},ga:{language:"Irish",translated:"Gaeilge",supportsAutoTranslate:!0},jv:{language:"Javanese",translated:"\uA9A7\uA9B1\uA997\uA9AE"},kl:{language:"Kalaallisut",translated:"kalaallisut"},kn:{language:"Kannada",translated:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",supportsAutoTranslate:!0},kr:{language:"Kanuri",translated:"Kanuri"},ks:{language:"Kashmiri",translated:"\u0915\u0936\u094D\u092E\u0940\u0930\u0940",supportsAutoTranslate:!0},kk:{language:"Kazakh",translated:"\u049B\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456",supportsAutoTranslate:!0},km:{language:"Khmer",translated:"\u1781\u17D2\u1798\u17C2\u179A",supportsAutoTranslate:!0},ki:{language:"Kikuyu",translated:"G\u0129k\u0169y\u0169"},rw:{language:"Kinyarwanda",translated:"Kinyarwanda",supportsAutoTranslate:!0},rn:{language:"Kirundi",translated:"Ikirundi"},kv:{language:"Komi",translated:"\u043A\u043E\u043C\u0438 \u043A\u044B\u0432"},kg:{language:"Kongo",translated:"Kikongo"},ku:{language:"Kurdish",translated:"Kurd\xEE",supportsAutoTranslate:!0},kj:{language:"Kwanyama",translated:"Kuanyama"},ky:{language:"Kyrgyz",translated:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430"},lo:{language:"Lao",translated:"\u0E9E\u0EB2\u0EAA\u0EB2\u0EA5\u0EB2\u0EA7",supportsAutoTranslate:!0},la:{language:"Latin",translated:"latine"},li:{language:"Limburgish",translated:"Limburgs"},ln:{language:"Lingala",translated:"Ling\xE1la"},lu:{language:"Luba-Katanga",translated:"Kiluba"},lg:{language:"Luganda",translated:"Luganda"},lb:{language:"Luxembourgish",translated:"L\xEBtzebuergesch"},mk:{language:"Macedonian",translated:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438 \u0458\u0430\u0437\u0438\u043A",supportsAutoTranslate:!0},mg:{language:"Malagasy",translated:"fiteny malagasy",supportsAutoTranslate:!0},ms:{language:"Malay",translated:"Bahasa Melayu",supportsAutoTranslate:!0},ml:{language:"Malayalam",translated:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",supportsAutoTranslate:!0},mt:{language:"Maltese",translated:"Malti",supportsAutoTranslate:!0},gv:{language:"Manx",translated:"Gailck"},mi:{language:"Maori",translated:"te reo M\u0101ori",supportsAutoTranslate:!0},mr:{language:"Marathi",translated:"\u092E\u0930\u093E\u0920\u0940",supportsAutoTranslate:!0},mh:{language:"Marshallese",translated:"Kajin M\u0327aje\u013C"},mn:{language:"Mongolian",translated:"\u041C\u043E\u043D\u0433\u043E\u043B \u0445\u044D\u043B"},na:{language:"Nauru",translated:"Ekakair\u0169 Naoero"},nv:{language:"Navajo",translated:"Din\xE9 bizaad"},ng:{language:"Ndonga",translated:"Owambo"},ne:{language:"Nepali",translated:"\u0928\u0947\u092A\u093E\u0932\u0940",supportsAutoTranslate:!0},nd:{language:"North Ndebele",translated:"isiNdebele"},se:{language:"Northern Sami",translated:"Davvis\xE1megiella"},ii:{language:"Nuosu",translated:"\uA188\uA320\uA4BF Nuosuhxop"},oc:{language:"Occitan",translated:"occitan"},oj:{language:"Ojibwe",translated:"\u140A\u14C2\u1511\u14C8\u142F\u14A7\u140E\u14D0"},or:{language:"Oriya",translated:"\u0B13\u0B21\u0B3C\u0B3F\u0B06",supportsAutoTranslate:!0},om:{language:"Oromo",translated:"Afaan Oromoo"},os:{language:"Ossetian",translated:"\u0438\u0440\u043E\u043D \xE6\u0432\u0437\u0430\u0433"},pi:{language:"Pali",translated:"\u092A\u093E\u0934\u093F"},pa:{language:"Panjabi",translated:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40"},ps:{language:"Pashto",translated:"\u067E\u069A\u062A\u0648",supportsAutoTranslate:!0},fa:{language:"Persian",translated:"\u0641\u0627\u0631\u0633\u06CC",supportsAutoTranslate:!0},qu:{language:"Quechua",translated:"Runa Simi"},rm:{language:"Romansh",translated:"rumantsch grischun"},sm:{language:"Samoan",translated:"gagana fa'a Samoa",supportsAutoTranslate:!0},sg:{language:"Sango",translated:"y\xE2ng\xE2 t\xEE s\xE4ng\xF6"},sa:{language:"Sanskrit",translated:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D"},sc:{language:"Sardinian",translated:"sardu"},gd:{language:"Scottish Gaelic",translated:"G\xE0idhlig"},sn:{language:"Shona",translated:"chiShona"},sd:{language:"Sindhi",translated:"\u0938\u093F\u0928\u094D\u0927\u0940",supportsAutoTranslate:!0},si:{language:"Sinhala",translated:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",supportsAutoTranslate:!0},so:{language:"Somali",translated:"Soomaaliga",supportsAutoTranslate:!0},nr:{language:"South Ndebele",translated:"isiNdebele"},st:{language:"Southern Sotho",translated:"Sesotho"},su:{language:"Sundanese",translated:"Basa Sunda"},sw:{language:"Swahili",translated:"Kiswahili",supportsAutoTranslate:!0},ss:{language:"Swati",translated:"SiSwati"},tl:{language:"Tagalog",translated:"Wikang Tagalog"},ty:{language:"Tahitian",translated:"Reo Tahiti",supportsAutoTranslate:!0},tg:{language:"Tajik",translated:"\u0442\u043E\u04B7\u0438\u043A\u04E3"},ta:{language:"Tamil",translated:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",supportsAutoTranslate:!0},tt:{language:"Tatar",translated:"\u0442\u0430\u0442\u0430\u0440 \u0442\u0435\u043B\u0435",supportsAutoTranslate:!0},te:{language:"Telugu",translated:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",supportsAutoTranslate:!0},bo:{language:"Tibetan",translated:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",supportsAutoTranslate:!0},ti:{language:"Tigrinya",translated:"\u1275\u130D\u122D\u129B",supportsAutoTranslate:!0},to:{language:"Tonga",translated:"faka Tonga",supportsAutoTranslate:!0},ts:{language:"Tsonga",translated:"Xitsonga"},tn:{language:"Tswana",translated:"Setswana"},tk:{language:"Turkmen",translated:"T\xFCrkmen",supportsAutoTranslate:!0},tw:{language:"Twi",translated:"Twi"},ug:{language:"Uighur",translated:"Uy\u01A3urq\u0259"},ur:{language:"Urdu",translated:"\u0627\u0631\u062F\u0648",supportsAutoTranslate:!0},uz:{language:"Uzbek",translated:"O'zbek",supportsAutoTranslate:!0},ve:{language:"Venda",translated:"Tshiven\u1E13a"},vo:{language:"Volap\xFCk",translated:"Volap\xFCk"},wa:{language:"Walloon",translated:"walon"},cy:{language:"Welsh",translated:"Cymraeg",supportsAutoTranslate:!0},fy:{language:"Western Frisian",translated:"Frysk"},wo:{language:"Wolof",translated:"Wollof"},xh:{language:"Xhosa",translated:"isiXhosa",supportsAutoTranslate:!0},yi:{language:"Yiddish",translated:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"},yo:{language:"Yoruba",translated:"Yor\xF9b\xE1",supportsAutoTranslate:!0},za:{language:"Zhuang",translated:"Sa\u026F cue\u014B\u0185"},zu:{language:"Zulu",translated:"isiZulu",supportsAutoTranslate:!0}}},A="localhost:4444",m=new URL(window.location.href).origin.includes(A);function k(){let a=(document.documentElement.lang||navigator?.language||"en").toLowerCase();return u.has(a)?u.get(a):u.has(a.slice(0,2))?u.get(a.slice(0,2)):"en"}async function d(a,e){let t=`assets/t9n/${a}/messages.${e}.json`,n=`${w()}/dist/${t}`;async function s(r){let l=await fetch(r);if(!l.ok)throw new Error(`Fetch failed with status ${l.status}: ${l.statusText}`);let o=l.headers.get("content-type");if(!o?.includes("application/json")){let h=await l.text();throw console.error(`Expected JSON, but received (${o}): ${h}`),new Error("Fetched content is not JSON")}return await l.json()}try{return await s(m?n:i(t))}catch(r){console.error(`Primary fetch error: ${r}`);try{return await s(n)}catch(l){throw console.error(`Fallback fetch error: ${l}`),new Error("Both primary and fallback fetches failed")}}}function v(a,e){let t=e?.user?.culture??"",n=window?.navigator?.language,s=a.getLocale(),r="en",l=a.normalizeMessageBundleLocale(t||n||s||r);return l??r}async function p(a,e){let t=a.tagName.toLowerCase(),n=e??k(),s;try{s=await d(t,n)}catch{console.warn(`no locale for ${t} (${n}) loading default locale en.`),s=await d(t,"en")}return[s,n]}async function C(a,e){try{let t=await p(a.el);c(a,t,e)}catch{}finally{try{(await g()).onLocaleChange(f(a,e))}catch{}}}function c(a,e,t){a.messages=e[0],t&&(a.messages={...a.messages,...t})}function f(a,e){return async t=>{let n=await y(t),s=await p(a.el,n);c(a,s,e)}}function w(){return new URL(window.location.href).origin}async function y(a){if(!a)return"en";if(!!T?.partial?.[a])return a;{let n=(await g()).normalizeMessageBundleLocale(a);return n??"en"}}export{T as a,k as b,v as c,p as d,C as e,y as f};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
3
|
+
v1.0.0-next.20250528 */
|
4
4
|
var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),kt=new WeakMap,z=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==mt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&kt.set(e,t))}return t}toString(){return this.cssText}},Mt=o=>new z(typeof o=="string"?o:o+"",void 0,mt),me=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,n,r)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[r+1],o[0]);return new z(e,o,mt)},It=(o,t)=>{if(Z)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),n=Y.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,o.appendChild(s)}},yt=Z?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Mt(e)})(o):o;var vt=globalThis,X=vt.trustedTypes,jt=X?X.createPolicy("lit-html",{createHTML:o=>o}):void 0,bt="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,Et="?"+E,ye=`<${Et}>`,O=document,q=()=>O.createComment(""),B=o=>o===null||typeof o!="object"&&typeof o!="function",$t=Array.isArray,Ft=o=>$t(o)||typeof o?.[Symbol.iterator]=="function",gt=`[
|
5
5
|
\f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vt=/-->/g,zt=/>/g,w=RegExp(`>|${gt}(?:([^\\s"'>=/]+)(${gt}*=${gt}*(?:[^
|
6
6
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ht=/'/g,qt=/"/g,Wt=/^(?:script|style|textarea|title)$/i,Ct=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),As=Ct(1),_s=Ct(2),ws=Ct(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Bt=new WeakMap,x=O.createTreeWalker(O,129);function Kt(o,t){if(!$t(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return jt!==void 0?jt.createHTML(t):t}var Gt=(o,t)=>{let e=o.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let c=o[a],l,p,h=-1,m=0;for(;m<c.length&&(i.lastIndex=m,p=i.exec(c),p!==null);)m=i.lastIndex,i===H?p[1]==="!--"?i=Vt:p[1]!==void 0?i=zt:p[2]!==void 0?(Wt.test(p[2])&&(n=RegExp("</"+p[2],"g")),i=w):p[3]!==void 0&&(i=w):i===w?p[0]===">"?(i=n??H,h=-1):p[1]===void 0?h=-2:(h=i.lastIndex-p[2].length,l=p[1],i=p[3]===void 0?w:p[3]==='"'?qt:Ht):i===qt||i===Ht?i=w:i===Vt||i===zt?i=H:(i=w,n=void 0);let y=i===w&&o[a+1].startsWith("/>")?" ":"";r+=i===H?c+ye:h>=0?(s.push(l),c.slice(0,h)+bt+c.slice(h)+E+y):c+E+(h===-2?a:y)}return[Kt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},F=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,i=0,a=t.length-1,c=this.parts,[l,p]=Gt(t,e);if(this.el=o.createElement(l,s),x.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=x.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(bt)){let m=p[i++],y=n.getAttribute(h).split(E),_=/([.?@])?(.*)/.exec(m);c.push({type:1,index:r,name:_[2],strings:y,ctor:_[1]==="."?et:_[1]==="?"?st:_[1]==="@"?ot:S}),n.removeAttribute(h)}else h.startsWith(E)&&(c.push({type:6,index:r}),n.removeAttribute(h));if(Wt.test(n.tagName)){let h=n.textContent.split(E),m=h.length-1;if(m>0){n.textContent=X?X.emptyScript:"";for(let y=0;y<m;y++)n.append(h[y],q()),x.nextNode(),c.push({type:2,index:++r});n.append(h[m],q())}}}else if(n.nodeType===8)if(n.data===Et)c.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(E,h+1))!==-1;)c.push({type:7,index:r}),h+=E.length-1}r++}}static createElement(t,e){let s=O.createElement("template");return s.innerHTML=t,s}};function T(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,r=B(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=T(o,n._$AS(o,t.values),n,s)),t}var tt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,n=(t?.creationScope??O).importNode(e,!0);x.currentNode=n;let r=x.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new U(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new nt(r,this,t)),this._$AV.push(l),c=s[++a]}i!==c?.index&&(r=x.nextNode(),i++)}return x.currentNode=O,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},U=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=T(this,t,e),B(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ft(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=F.createElement(Kt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new tt(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=Bt.get(t.strings);return e===void 0&&Bt.set(t.strings,e=new F(t)),e}k(t){$t(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new o(this.O(q()),this.O(q()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},S=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=T(this,t,e,0),i=!B(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,l;for(t=r[0],c=0;c<r.length-1;c++)l=T(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),i||=!B(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},et=class extends S{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},st=class extends S{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},ot=class extends S{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=T(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},nt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}},Jt={M:bt,P:E,A:Et,C:1,L:Gt,R:tt,D:Ft,V:T,I:U,H:S,N:st,U:ot,B:et,F:nt},ge=vt.litHtmlPolyfillSupport;ge?.(F,U),(vt.litHtmlVersions??=[]).push("3.3.0");var At=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=e?.renderBefore??null;s._$litPart$=n=new U(t.insertBefore(q(),r),r,void 0,e??{})}return n._$AI(o),n};var{is:ve,defineProperty:be,getOwnPropertyDescriptor:Ee,getOwnPropertyNames:$e,getOwnPropertySymbols:Ce,getPrototypeOf:Ae}=Object,it=globalThis,Qt=it.trustedTypes,_e=Qt?Qt.emptyScript:"",we=it.reactiveElementPolyfillSupport,W=(o,t)=>o,rt={toAttribute(o,t){switch(t){case Boolean:o=o?_e:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},K=(o,t)=>!ve(o,t),Yt={attribute:!0,type:String,converter:rt,reflect:!1,useDefault:!1,hasChanged:K};Symbol.metadata??=Symbol("metadata"),it.litPropertyMetadata??=new WeakMap;var $=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Yt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&be(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){let{get:n,set:r}=Ee(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let a=n?.call(this);r?.call(this,i),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Yt}static _$Ei(){if(this.hasOwnProperty(W("elementProperties")))return;let t=Ae(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(W("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(W("properties"))){let e=this.properties,s=[...$e(e),...Ce(e)];for(let n of s)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)e.unshift(yt(n))}else t!==void 0&&e.push(yt(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return It(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:rt).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){let s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:rt;this._$Em=n,this[n]=i.fromAttribute(e,r.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let n=this.constructor,r=this[t];if(s??=n.getPropertyOptions(t),!((s.hasChanged??K)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:r},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),r!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s){let{wrapped:i}=r,a=this[n];i!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,r,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[W("elementProperties")]=new Map,$[W("finalized")]=new Map,we?.({ReactiveElement:$}),(it.reactiveElementVersions??=[]).push("2.1.0");var _t=globalThis,v=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=At(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};v._$litElement$=!0,v.finalized=!0,_t.litElementHydrateSupport?.({LitElement:v});var xe=_t.litElementPolyfillSupport;xe?.({LitElement:v});(_t.litElementVersions??=[]).push("4.2.0");var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},Oe=(o,t)=>{let e=o;for(;e;){if(e===t)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},Te=(o,t,e)=>{let s=Se(t).subscribe;return s(n=>{n.some(i=>Oe(o,i.target))&&e()})},wt={},Se=o=>{let t=o.join(","),e=wt[t];if(e!==void 0)return e;let s=new Set,n=new MutationObserver(i=>s.forEach(a=>a(i)));globalThis.document&&n.observe(document.documentElement,{attributes:!0,attributeFilter:o,subtree:!0});let r={subscribe:i=>(s.add(i),()=>{s.delete(i),s.size===0&&(n.disconnect(),wt[t]=void 0)})};return wt[t]=r,r},Pe=(o,t)=>{let e=o;for(;e;){let s=e.closest?.(t);if(s)return s;let n=e.getRootNode?.();if(n===globalThis.document)return null;e=n.host}return null};var Ne=(o,t,e)=>Pe(o,`[${t}]`)?.getAttribute(t)??e;var u=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},G=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var Le="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),Re=new Set(Le),at="en",De={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},Ue=async(o,t,e="")=>{let s=`${t}/${e}`,n=`${s}${o}.json`;return xt[n]??(xt[n]=Zt(o,s)),await xt[n]},xt={},Zt=async(o,t)=>{let e=`${t}${o}.json`;try{let s=await fetch(e);if(s.ok)return await s.json()}catch(s){return console.error(s),{}}return o===at?{}:await Zt(at,t)},ke=o=>{let t=Ne(o,"lang",globalThis.navigator?.language||at);return{lang:t,t9nLocale:Xt(t)}},Xt=o=>{let[t,e]=o.split("-"),s=t.toLowerCase(),n=s;return e&&(n=`${s}-${e.toUpperCase()}`),n=De[n]??n,Re.has(n)?n:e?Xt(s):at},zs=(o,t,e,s)=>{let n,r=()=>Me(o,t(),s).then(i=>{(n?.lang!==i.lang||n.t9nLocale!==i.t9nLocale||n.t9nStrings!==i.t9nStrings)&&e(i),n=i}).catch(console.error);return queueMicrotask(r),Te(o,["lang"],r)},Me=async(o,t,e=o.localName.split("-").slice(1).join("-"))=>{let{lang:s,t9nLocale:n}=ke(o),r=`${t}/${e}/t9n`,a=e===null?{}:await Ue(n,r,"messages.");return{lang:s,t9nLocale:n,t9nStrings:a}};var ct=o=>o.replace(Ie,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ie=/[A-Z]+(?![a-z])|[A-Z]/gu;var te=(o,t)=>{let e=t>je?Ve:t/ze,s=0,n=setInterval(()=>{s+=e,s>=t&&(clearInterval(n),o())},e);return n},je=4e3,Ve=2e3,ze=4;var ht=Symbol.for("controller"),He=o=>typeof o=="object"&&o!==null&&(ht in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Ws=o=>typeof o?.then=="function";var J,k=o=>{J!==o&&(J=o,queueMicrotask(()=>J===o?J=void 0:0))},N=o=>J,P=[],qe=o=>{if(o===void 0){P=[];return}let t=P.indexOf(o);P=t===-1?[...P,o]:P.slice(0,t+1),queueMicrotask(()=>P=[])},Be=()=>P,M,Ks=o=>{M!==o&&(M=o,queueMicrotask(()=>M===o?M=void 0:0))},Fe=()=>{let o=M;return M=void 0,o},We=async(o,t)=>{let e=Tt(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},Ke=async o=>{let t=Tt(o);return await t.ready,t},Tt=o=>{let e=N().manager.X(o);if(e!==void 0)return e;if(He(o))return o;let s=Fe();if(s!==void 0)return s},lt=!1,Gs=o=>{lt=!0;try{return o()}finally{lt=!1}};var Ge=(o,t,e)=>{let s=Object.keys(o),n=s.length;I===void 0&&queueMicrotask(dt),I??=new Map;let r=I.get(o);return r===void 0&&(r={callbacks:[],keyCount:n},I.set(o,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let a=l=>u(t,null,l),c=i[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},I,dt=()=>{I?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),I=void 0},Je=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,r)=>u(t,void 0,e===r?n:void 0)),e},Qe=(o=[N(),...Be()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,r=i=>{n-=1,i!==void 0&&(n=Math.min(n,0)),n===0&&t(i)};s.forEach(i=>Ge(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of s)if("manager"in i&&i.manager.component===i){Je(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},Ye=(o="",t={},e=N())=>{let s={emit:n=>{o===""&&dt();let r=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&Qe(void 0,n=>o=n.key,s),s},Ze=Ye.bind(null,""),oe;oe=ht;var Ot=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#o=[],this.#n=[],this.#c=[],this.#l=[],this.#u=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[oe]=!0,this.#a=[];let e=this,s=t??N(new.target.name);e.#r=s,e.ready=e.P.promise,e.#i=se(e),e.component=s,e.#r.addController(e),e.#r.manager===void 0||(qe(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#o;#n;#c;#l;#u;#h;#d;#r;catchUpLifecycle(){let{manager:t}=this.#r;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(console.error)}#i;get exports(){return this.#i}set exports(t){let e=this.#i;e!==t&&(this.#i=t,this.#a.forEach(u),this.connectedCalled&&this.O!==!1&&this.#r.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#i=e?se(t):t,this.#a.forEach(u)}#a;watchExports(t){let e=()=>t(this.#i);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return k(this.#r),We}get useRef(){return k(this.#r),Ke}get useRefSync(){return k(this.#r),Tt}controllerRemoved(){this.#r.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#o.push(t)}onUpdate(t){this.#n.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#u.push(t),this.connectedCalled&&this.#r.el.isConnected&&this.#p(t)}triggerConnected(){let t=this;t.hostConnected&&u(t.hostConnected,t),t.#t.forEach(u),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&u(t.hostDisconnected,t),t.#e.forEach(u),t.#h.forEach(u),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await G(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(G)),this.P.resolve(this.#i)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&u(this.hostLoaded,this),this.#o.forEach(u),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&u(this.hostUpdate,this,t),this.#n.forEach(ee,t)}triggerUpdated(t){this.hostUpdated&&u(this.hostUpdated,this,t),this.#c.forEach(ee,t)}triggerDestroy(){this.hostDestroy&&u(this.hostDestroy,this),this.#l.forEach(u)}triggerLifecycle(){this.hostLifecycle&&this.#p(()=>this.hostLifecycle()),this.#u.forEach(this.#p,this)}#p(t){k(this.#r);let e=u(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#h.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#h.push(n.remove)})}};function ee(o){u(o,void 0,this)}var ne=Ot,se=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,r){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,r)}},e=new Proxy(o,t);return e};var re=";",ut=",",ie=":";var Pt=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Nt={};function Lt(){}var Xe=(o,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&o.setAssetPath(i);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[p,h,m]=l.split(re),y=p?p?.split(ut).map(ts):void 0,_=y?.map(([D])=>D),R=class extends St{static{this.observedAttributes=y?.map(([,D])=>D).filter(D=>D!=="")}static{this.C=_}static{this.E=h?h?.split(ut):void 0}static{this.D=m?.split(ut)}static{this.L=a}static{this.K=o}constructor(){!R.B&&(R.B=c(),R.F()),super()}};customElements.define(a,R)}},pt=Object.defineProperty,ts=o=>{let t=o.split(ie);return t.length===1?[t[0],ct(t[0])]:t},es=globalThis.HTMLElement??Lt,St=class extends es{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#o({a:e.A}):e.B.then(async s=>{await e.K.p,t.#o(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])pt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])pt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])pt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Pt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#o(t){let e=this.constructor,s=e.L,n=this.#e,r=Object.values(t).find(h=>h.L===s),i=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=r,customElements.define(i,r)),r.N=this;let l=document.createElement(i);r.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(n).forEach(ss,l);let p=this.isConnected;(p||this.G)&&(l.connectedCallback?.(),p||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([o,t]){this[o]=t}var os=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},pt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var A=class extends Event{constructor(t,e,s,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=s,this.subscribe=n??!1}};var j=class{constructor(t,e,s,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(r,i)=>{this.unsubscribe&&(this.unsubscribe!==i&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=r,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(r,i)),this.unsubscribe=i},this.host=t,e.context!==void 0){let r=e;this.context=r.context,this.callback=r.callback,this.subscribe=r.subscribe??!1}else this.context=e,this.callback=s,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new A(this.context,this.host,this.t,this.subscribe))}};var ft=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let s=e||!Object.is(t,this.o);this.o=t,s&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:s}]of this.subscriptions)e(this.o,s)},t!==void 0&&(this.value=t)}addCallback(t,e,s){if(!s)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:n}=this.subscriptions.get(t);t(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var Rt=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},V=class extends ft{constructor(t,e,s){super(e.context!==void 0?e.initialValue:s),this.onContextRequest=n=>{if(n.context!==this.context)return;let r=n.contextTarget??n.composedPath()[0];r!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,r,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let r=new Set;for(let[i,{consumerHost:a}]of this.subscriptions)r.has(i)||(r.add(i),a.dispatchEvent(new A(this.context,a,i,!0)));n.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Rt(this.context,this.host))}};var g={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},L=o=>(...t)=>({_$litDirective$:o,values:t}),C=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var ae=L(class extends C{constructor(o){if(super(o),o.type!==g.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var ce="important",rs=" !"+ce,le=L(class extends C{constructor(o){if(super(o),o.type!==g.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(rs);s.includes("-")||r?e.setProperty(s,r?n.slice(0,-11):n,r?ce:""):e[s]=n}}return f}});var{I:is}=Jt;var de=o=>o.strings===void 0,he=()=>document.createComment(""),Fo=(o,t,e)=>{let s=o._$AA.parentNode,n=t===void 0?o._$AB:t._$AA;if(e===void 0){let r=s.insertBefore(he(),n),i=s.insertBefore(he(),n);e=new is(r,i,o,o.options)}else{let r=e._$AB.nextSibling,i=e._$AM,a=i!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==i._$AU&&e._$AP(c)}if(r!==n||a){let c=e._$AA;for(;c!==r;){let l=c.nextSibling;s.insertBefore(c,n),c=l}}}return e},Wo=(o,t,e=o)=>(o._$AI(t,e),o),as={},ue=(o,t=as)=>o._$AH=t,Ko=o=>o._$AH,Go=o=>{o._$AP?.(!1,!0);let t=o._$AA,e=o._$AB.nextSibling;for(;t!==e;){let s=t.nextSibling;t.remove(),t=s}};var cs=L(class extends C{constructor(o){if(super(o),o.type!==g.PROPERTY&&o.type!==g.ATTRIBUTE&&o.type!==g.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!de(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===g.PROPERTY){if(t===e[s])return f}else if(o.type===g.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===g.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return ue(o),t}});var En=o=>{let t=N(),e=new V(t.el,o);return t.addController(e),e},$n=o=>{let t=N(),e=new j(t.el,o);return t.addController(e),e};var Dt=class extends ne{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=Ut in t&&typeof t.destroy=="function",v.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Ut} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),dt();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():u(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():u(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):u(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):u(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),k(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():u(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=te(t,gs)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},gs=1e3,Ut="autoDestroyDisabled",pe=class o extends v{constructor(){super(),this.M=[],this.manager=new Dt(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,r=o.prototype.shouldUpdate;t.#o=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Lt,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),n&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Nt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,r=n?.hasChanged??K,i={attribute:s&1&&typeof t=="string"?ct(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),c:!1,...n,hasChanged(a,c){let l=r(a,c);return i.c=l,l}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,s){let n=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return n.t?.(this.#t.get(t)),r.get?.call(this)},set(i){let a=this.manager;if(s.readOnly&&!lt&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);r.set.call(this,i??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&a?.S(t,i)}}}static{this.lumina=!0}#t;#e;#s;#o;#n;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#n=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(s=>{this.#o.reject(s),setTimeout(()=>{throw s})})):t&&this.requestUpdate()}#c(t){try{this.#n.clear(),this.constructor.K.r(this.#n,()=>super.update(t))}catch(e){throw this.#n.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#n?.destroy(),this.#n=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Nt?this.el:this.el.attachShadow(s));if(t)return v.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#l(){let t=this.el.G??Pt(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(G(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(Ut)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():u(n.hostLoaded,n);this.loaded?.(),this.#o.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#n?this.#c(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this.#o.promise,this}addController(t){this.M.push(t),!(ht in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}},fe=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.K=s,r.L=n,customElements.get(n)||customElements.define(n,r)}};return e(o.defaultAssetPath),s};var Cn=o=>typeof o=="object"&&o!=null?ae(o):o,An=o=>typeof o=="object"&&o!=null?le(o):o;var _n=d;var Q=fe({defaultAssetPath:"https://jsdev.arcgis.com/next/solutions-components/",hydratedAttribute:"hydrated"}),{customElement:Sn,getAssetPath:Pn,setAssetPath:Nn}=Q;Q.t=void 0;Q.o=void 0;Q.c=void 0;Q.r=void 0;export{ke as a,zs as b,me as c,As as d,_s as e,f,d as g,Ws as h,k as i,qe as j,Be as k,Ks as l,Gs as m,Qe as n,Ze as o,Ot as p,Nt as q,Xe as r,g as s,L as t,C as u,de as v,Fo as w,Wo as x,ue as y,Ko as z,Go as A,En as B,$n as C,pe as D,Cn as E,An as F,_n as G,Q as H,Sn as I,Pn as J};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as c}from"./
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{a as c}from"./SOLDJVDR.js";import{D as n,I as o,c as s,d as i,g as r,o as l}from"./Q5UREG2V.js";import"./6XZWFS7Y.js";var d=s`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as r}from"./
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{a as r}from"./SOLDJVDR.js";import{D as n,I as o,c as i,d as t,q as s}from"./Q5UREG2V.js";import"./6XZWFS7Y.js";var a=i`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a}from"./
|
3
|
+
v1.0.0-next.20250528 */
|
4
|
+
import{a}from"./SOLDJVDR.js";import{D as n,I as o,c as t,d as i,q as s}from"./Q5UREG2V.js";import"./6XZWFS7Y.js";var r=t`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|