@esri/solutions-components 1.1.0-next.20250808 → 1.1.0-next.20250811
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/{NPJHYSKO.js → 25BPRYOW.js} +2 -2
- package/dist/cdn/{PWE3WFYX.js → 27FMVAFE.js} +2 -2
- package/dist/cdn/{A76BC4EF.js → 2D4J4M2J.js} +1 -1
- package/dist/cdn/{BMYV5AEO.js → 2DLI4Y75.js} +2 -2
- package/dist/cdn/{2GOU5HIK.js → 2ROXBM6C.js} +2 -2
- package/dist/cdn/{AQR5P57P.js → 2RZAN4J3.js} +2 -2
- package/dist/cdn/{MS3IFJOL.js → 2YZRRBF7.js} +2 -2
- package/dist/cdn/{45RT4J6W.js → 32BEPLL5.js} +2 -2
- package/dist/cdn/{33HMZMZA.js → 3BO2FDBN.js} +2 -2
- package/dist/cdn/{22WTPZXT.js → 3FBYTHDB.js} +1 -1
- package/dist/cdn/{P3JAAQ5L.js → 3FFRXMAG.js} +2 -2
- package/dist/cdn/{5H3COH45.js → 3FZJXHAQ.js} +1 -1
- package/dist/cdn/{I325H2EH.js → 3GPCAH34.js} +1 -1
- package/dist/cdn/{7UORHXRU.js → 3JIZ4OVA.js} +2 -2
- package/dist/cdn/{P3GWBGGX.js → 3RYCYG6M.js} +2 -2
- package/dist/cdn/{AE5NEHRJ.js → 3Y2HEM7T.js} +1 -1
- package/dist/cdn/{RSTPCTRP.js → 47GUYAPC.js} +2 -2
- package/dist/cdn/{TVST3VSU.js → 4B5UZHGF.js} +1 -1
- package/dist/cdn/{XMJ3GY6B.js → 4BSGFS3K.js} +2 -2
- package/dist/cdn/{2L5RDVZW.js → 4CSTDFLN.js} +2 -2
- package/dist/cdn/{FCYIJDDZ.js → 4FHN36IJ.js} +2 -2
- package/dist/cdn/4GFQFORZ.js +18 -0
- package/dist/cdn/{4IMOHO3P.js → 4GN7SIYX.js} +2 -2
- package/dist/cdn/{G53GBDBC.js → 4M6QLQL3.js} +2 -2
- package/dist/cdn/{VOZWKTOI.js → 4OPYQ2ZV.js} +2 -2
- package/dist/cdn/{TSHGNGUT.js → 4TMVLWUO.js} +2 -2
- package/dist/cdn/{WQRVOAAE.js → 4TZFTGP5.js} +2 -2
- package/dist/cdn/{OKIFYM75.js → 4WAKHUFX.js} +2 -2
- package/dist/cdn/{VX6N3BA2.js → 5HYO7JGY.js} +2 -2
- package/dist/cdn/{GHE2ECXL.js → 5KHJ2Q7T.js} +2 -2
- package/dist/cdn/5KN2AFRH.js +25 -0
- package/dist/cdn/{SMORLQMB.js → 5LBKY3ZB.js} +2 -2
- package/dist/cdn/{ACEZ22CN.js → 5LHOUR5X.js} +2 -2
- package/dist/cdn/{JNIPTN7Z.js → 5LZ4OM3G.js} +1 -1
- package/dist/cdn/{SOSJBYR7.js → 5MVQM3XO.js} +2 -2
- package/dist/cdn/{YL7442RB.js → 5NHYI3W6.js} +2 -2
- package/dist/cdn/{V6HZBTAM.js → 5NLTGNGB.js} +2 -2
- package/dist/cdn/{AJX4UOXA.js → 5UWVK7QB.js} +2 -2
- package/dist/cdn/{5CRH3T2P.js → 5V5IWZML.js} +2 -2
- package/dist/cdn/{XZXQA66P.js → 5XNY2IPV.js} +2 -2
- package/dist/cdn/{4ZJMKDMO.js → 5ZDDGZJ2.js} +2 -2
- package/dist/cdn/{VPDNYNYU.js → 62NXY2XK.js} +2 -2
- package/dist/cdn/{ACRTXGVC.js → 67IWZ3KD.js} +3 -3
- package/dist/cdn/{KJVXCJ5J.js → 6D2PTEFV.js} +2 -2
- package/dist/cdn/{JGXKYEBY.js → 6FFTVBS4.js} +2 -2
- package/dist/cdn/{K55E3GAS.js → 6GXM6APH.js} +2 -2
- package/dist/cdn/{5LDQ2GL2.js → 6I3NSNO2.js} +2 -2
- package/dist/cdn/{AO744LTN.js → 6THHSLTV.js} +2 -2
- package/dist/cdn/{ZNAL4DDQ.js → 7KVWVAR4.js} +2 -2
- package/dist/cdn/{PGAU7XC3.js → 7MFEM32P.js} +2 -2
- package/dist/cdn/{HABV25N7.js → 7PUAGOWX.js} +1 -1
- package/dist/cdn/{AAFW2UKV.js → 7QRMYMOR.js} +2 -2
- package/dist/cdn/{UR63X3E7.js → 7RA5VI2M.js} +2 -2
- package/dist/cdn/{AWKJXH26.js → 7VJLUWJW.js} +2 -2
- package/dist/cdn/{7OBG75DM.js → 7VKBF2FF.js} +2 -2
- package/dist/cdn/{PGY3MTHQ.js → 7WGHDJ4F.js} +2 -2
- package/dist/cdn/{RHPNDMP2.js → A3XXT3VU.js} +2 -2
- package/dist/cdn/{QFNACVKW.js → AB3EXVBZ.js} +2 -2
- package/dist/cdn/AHCZJWA5.js +4 -0
- package/dist/cdn/{BRK66LT6.js → ANFQG7LD.js} +1 -1
- package/dist/cdn/{SLMABSAX.js → AVJALFKF.js} +2 -2
- package/dist/cdn/{GQUQ25DY.js → B4ACCQYI.js} +2 -2
- package/dist/cdn/{OW5AFJWW.js → B65VFI5R.js} +2 -2
- package/dist/cdn/{3NX25KHK.js → BBWZXQIW.js} +2 -2
- package/dist/cdn/{C6IW5XPH.js → BE7WZVUC.js} +1 -1
- package/dist/cdn/{VNBMQTBB.js → BI64QLWY.js} +2 -2
- package/dist/cdn/{2EQWOG4U.js → BJ7XQIDM.js} +2 -2
- package/dist/cdn/{GNDIMMV2.js → BSBEZTMF.js} +2 -2
- package/dist/cdn/{ABKISPH2.js → BVTZQPBH.js} +2 -2
- package/dist/cdn/{NOIUHSNJ.js → BXW3TA6O.js} +2 -2
- package/dist/cdn/{HXOQFNGB.js → C4EGGW6P.js} +1 -1
- package/dist/cdn/{EU67ANMF.js → C52XX5ZG.js} +2 -2
- package/dist/cdn/{XOYSU3NN.js → CA2EPZXH.js} +2 -2
- package/dist/cdn/{JJFVVQME.js → CBIUUXGC.js} +2 -2
- package/dist/cdn/{7X3JKJVF.js → CC7GNQZN.js} +2 -2
- package/dist/cdn/{PR6643MF.js → CD53XWYA.js} +2 -2
- package/dist/cdn/{VCTV42TG.js → CGC5HVLI.js} +2 -2
- package/dist/cdn/{3YCH5HF6.js → CGVNTPMW.js} +2 -2
- package/dist/cdn/{PSMKR2NS.js → CNFZJ3VN.js} +2 -2
- package/dist/cdn/{RM42QQL2.js → CO6Y4JQA.js} +2 -2
- package/dist/cdn/{MX2RCF7L.js → CVY6NXHC.js} +2 -2
- package/dist/cdn/{5C7IZMYM.js → CXF62MZS.js} +2 -2
- package/dist/cdn/{G2NDHZIY.js → D3HBPTA4.js} +1 -1
- package/dist/cdn/{GAH4ZI7P.js → D4QGPQND.js} +2 -2
- package/dist/cdn/{OIA7VIOQ.js → D5LUMTLN.js} +1 -1
- package/dist/cdn/{5DU7OMGK.js → D7XRMPPD.js} +2 -2
- package/dist/cdn/{TZ7ZADM3.js → DDV5UYE5.js} +1 -1
- package/dist/cdn/{PEFG2XTS.js → DIYKBW3U.js} +2 -2
- package/dist/cdn/{QRQBI32B.js → DNEPWMNI.js} +2 -2
- package/dist/cdn/{6A5FFXGY.js → DSGRTZC7.js} +2 -2
- package/dist/cdn/{UY5ERYZ7.js → DSKVWLGY.js} +2 -2
- package/dist/cdn/{U5TJXXJ2.js → DT5LM7Y4.js} +1 -1
- package/dist/cdn/{3OBMAMX2.js → DUYAP33V.js} +2 -2
- package/dist/cdn/{LU7CTWWV.js → DWZUCJFG.js} +2 -2
- package/dist/cdn/{TXZPVJC3.js → EBYHWRAD.js} +2 -2
- package/dist/cdn/{W75WYPAF.js → ELFWTILT.js} +2 -2
- package/dist/cdn/{DUZSPRRF.js → ELWIFWTO.js} +1 -1
- package/dist/cdn/{T3JO7MJX.js → EO6UJOYB.js} +2 -2
- package/dist/cdn/{LW7C6AEQ.js → EPUOFHKO.js} +1 -1
- package/dist/cdn/{KBSLLI3Y.js → ETN3A2QC.js} +2 -2
- package/dist/cdn/{KIR3VHHX.js → ETSR4DTU.js} +2 -2
- package/dist/cdn/{STIAMNME.js → EX7VYQYO.js} +2 -2
- package/dist/cdn/{VOWE4FUE.js → F3NKARWH.js} +2 -2
- package/dist/cdn/{AFZDYZ7T.js → F527WKRH.js} +2 -2
- package/dist/cdn/{6FV573R5.js → FFGPVCLB.js} +2 -2
- package/dist/cdn/FINOANYC.js +20 -0
- package/dist/cdn/{UK46FFWF.js → FKJHLJPA.js} +2 -2
- package/dist/cdn/{4WL53LUA.js → FOEUECEM.js} +2 -2
- package/dist/cdn/{ZYH6DEJC.js → FQO2HG7M.js} +2 -2
- package/dist/cdn/{RSSBO26R.js → FRUGMWTJ.js} +2 -2
- package/dist/cdn/FZCKTFLA.js +4 -0
- package/dist/cdn/{462ZO5LH.js → G5PJOI2S.js} +2 -2
- package/dist/cdn/{HTU7XXVJ.js → GBVJR7G4.js} +1 -1
- package/dist/cdn/{DEWBDUVG.js → GDMJG5O6.js} +2 -2
- package/dist/cdn/{AS4W6XAM.js → GHAEWQ4U.js} +2 -2
- package/dist/cdn/{FOHBFDJD.js → GI4X7A5E.js} +2 -2
- package/dist/cdn/{LQBCAFSW.js → GLN7BTBK.js} +2 -2
- package/dist/cdn/{MRS3UBTT.js → GNS3QL7M.js} +1 -1
- package/dist/cdn/{2W5KL7LK.js → GNYR5T7P.js} +2 -2
- package/dist/cdn/{5HSCQ3YD.js → GPLQK6HM.js} +2 -2
- package/dist/cdn/GSM6TAUA.js +4 -0
- package/dist/cdn/{WKBFYG4Q.js → GTLD5NIN.js} +2 -2
- package/dist/cdn/{3T5X6TQS.js → GU74TCNP.js} +2 -2
- package/dist/cdn/{JOBBMOLV.js → GUAMN5PO.js} +2 -2
- package/dist/cdn/{QVNEJNZD.js → H36K2KKY.js} +2 -2
- package/dist/cdn/{KPFYEGFG.js → HANAFVAT.js} +2 -2
- package/dist/cdn/{JDMHXFRB.js → HH7VHJVF.js} +2 -2
- package/dist/cdn/{MIBEMEHR.js → HZGI4IYF.js} +2 -2
- package/dist/cdn/{LM4M3UUJ.js → I6YRZF2Z.js} +2 -2
- package/dist/cdn/{JVGQ4NFQ.js → I7LH7SU3.js} +2 -2
- package/dist/cdn/{TRGIVBAD.js → IFJSYBIO.js} +2 -2
- package/dist/cdn/{VBZITN63.js → IGWBDOPR.js} +2 -2
- package/dist/cdn/{VRZ5U6KO.js → IMFSUJYA.js} +2 -2
- package/dist/cdn/{NPEYNUYM.js → IODYGL3H.js} +2 -2
- package/dist/cdn/{ZC5VEUEH.js → IX46G3WW.js} +1 -1
- package/dist/cdn/{DHB2ACZ2.js → J7JR3RI7.js} +2 -2
- package/dist/cdn/{5JJMI5T4.js → JHG32IWY.js} +2 -2
- package/dist/cdn/{RPCHNJ5I.js → JIKGR7Y6.js} +2 -2
- package/dist/cdn/{EZFM4ZIN.js → JNHPEUSM.js} +1 -1
- package/dist/cdn/{ZHBCW2M7.js → JU5GXMWH.js} +1 -1
- package/dist/cdn/{SVQOIQXG.js → JV6ZKXC4.js} +3 -3
- package/dist/cdn/{GKCKRQWP.js → JYBX6OYZ.js} +2 -2
- package/dist/cdn/{54ZFB7LI.js → KCVS4LMM.js} +2 -2
- package/dist/cdn/KGY74VYL.js +4 -0
- package/dist/cdn/{ULX3XZXE.js → KJEZ63MM.js} +2 -2
- package/dist/cdn/{53VD6TGY.js → KLT2SHIJ.js} +2 -2
- package/dist/cdn/{KJWROV22.js → KO3ONQ7A.js} +2 -2
- package/dist/cdn/{STZUGXN3.js → KQH7RQH7.js} +2 -2
- package/dist/cdn/KV53YB72.js +4 -0
- package/dist/cdn/{4L4JZKJ6.js → KWP3A7C6.js} +2 -2
- package/dist/cdn/{UVLVIG72.js → KZSEXK4T.js} +2 -2
- package/dist/cdn/{CZVNRFM4.js → L7XDT5RE.js} +4 -4
- package/dist/cdn/{WXDCPXQ7.js → LB5UU74B.js} +2 -2
- package/dist/cdn/{O4G2XTNM.js → LEGB4PPF.js} +1 -1
- package/dist/cdn/{NGPTR56X.js → LG5UWDJZ.js} +2 -2
- package/dist/cdn/{LFS6Y6L2.js → LKQE3JX7.js} +2 -2
- package/dist/cdn/{C6SWDNUF.js → LLHTR24H.js} +1 -1
- package/dist/cdn/{KOSFP4TW.js → LQFPA4NV.js} +2 -2
- package/dist/cdn/{NOFJIVRF.js → LU4ZYEEQ.js} +2 -2
- package/dist/cdn/{SW2PKNVK.js → LWFA6HIB.js} +2 -2
- package/dist/cdn/{3CMD5PVX.js → LWLLBQ5N.js} +2 -2
- package/dist/cdn/{XZQQP3SH.js → M4O6K73H.js} +2 -2
- package/dist/cdn/{BFC5QXIT.js → M4PMDTEE.js} +2 -2
- package/dist/cdn/{HHU2QIT7.js → MDUE7TQA.js} +2 -2
- package/dist/cdn/{D34LMVM5.js → MILUGKNK.js} +2 -2
- package/dist/cdn/{TLBL4ZQ2.js → MM4EA25Z.js} +2 -2
- package/dist/cdn/{4NV4YSI4.js → MN2EPGVQ.js} +2 -2
- package/dist/cdn/{DBV7PUGF.js → MQBQ5D5G.js} +2 -2
- package/dist/cdn/{34O3JSKM.js → MUN27JUW.js} +2 -2
- package/dist/cdn/{BINBDWML.js → N4VN6R7P.js} +2 -2
- package/dist/cdn/{2JEEE6YX.js → N4YEVO4Y.js} +2 -2
- package/dist/cdn/{CE32N5MH.js → N5ILEPMJ.js} +2 -2
- package/dist/cdn/{O2KCUN77.js → N5T6H735.js} +2 -2
- package/dist/cdn/{FGAJFBW2.js → N7CCSN2V.js} +1 -1
- package/dist/cdn/{ODQSJCRL.js → N7XVZJMY.js} +2 -2
- package/dist/cdn/{FCKAD5C4.js → NAM4J36C.js} +2 -2
- package/dist/cdn/{LDIEDUAL.js → NBQUUMZE.js} +2 -2
- package/dist/cdn/{TBDSM4RN.js → NBSLCKRM.js} +1 -1
- package/dist/cdn/{PLG6ZCRP.js → NLW3FUGS.js} +2 -2
- package/dist/cdn/{GZU7CS6P.js → NUWXRXBH.js} +2 -2
- package/dist/cdn/{EXD4IGJY.js → NV33KYL6.js} +2 -2
- package/dist/cdn/{PU52KJGS.js → NWWSZQFW.js} +2 -2
- package/dist/cdn/{QDOQAXQ2.js → NXWK2VRW.js} +1 -1
- package/dist/cdn/{WQFPFLZV.js → OCARJJQL.js} +2 -2
- package/dist/cdn/{DE4ZQLOG.js → ODAHMIEG.js} +2 -2
- package/dist/cdn/{WQAXXKFO.js → OEUYYOHY.js} +2 -2
- package/dist/cdn/{JRLGUPV3.js → ONBSV4YT.js} +2 -2
- package/dist/cdn/{YSPC2R7G.js → OYY2X6G5.js} +2 -2
- package/dist/cdn/{FLEZREEZ.js → P5NIA3Y5.js} +2 -2
- package/dist/cdn/PDMQWXIW.js +4 -0
- package/dist/cdn/{EAF3VHRN.js → PDR2NMR5.js} +2 -2
- package/dist/cdn/{4PADNNBY.js → PE3SSYAD.js} +2 -2
- package/dist/cdn/{NAMNXPQG.js → PE4QKLMA.js} +2 -2
- package/dist/cdn/{VYZHM626.js → PFFJNYXP.js} +2 -2
- package/dist/cdn/{B347S3OX.js → PHJF3WTM.js} +2 -2
- package/dist/cdn/{G4ENZOQI.js → PJ4OOX6H.js} +2 -2
- package/dist/cdn/{7WRQT2RE.js → PJC6SXTD.js} +2 -2
- package/dist/cdn/{F2PZM5QK.js → PKS62HB2.js} +2 -2
- package/dist/cdn/{UNRNLKUZ.js → PMMQB3WH.js} +2 -2
- package/dist/cdn/{GU4QPSOO.js → PMUI6RJ4.js} +2 -2
- package/dist/cdn/{OEYMQ44L.js → PQVYRUBP.js} +2 -2
- package/dist/cdn/{MZB7PQ2R.js → PSUXO4NH.js} +2 -2
- package/dist/cdn/{OAFXVMDT.js → PVQZBQBD.js} +1 -1
- package/dist/cdn/PWFUVQTO.js +4 -0
- package/dist/cdn/{ZAUF26RB.js → PYTEXGKE.js} +2 -2
- package/dist/cdn/{GUCIDMNV.js → PZLYNDNS.js} +2 -2
- package/dist/cdn/{IVUHOF7R.js → Q2SKOFQP.js} +2 -2
- package/dist/cdn/{OQQ2FKHA.js → Q3TRQVCN.js} +2 -2
- package/dist/cdn/{MKSPCOFR.js → Q6G6KGZ3.js} +2 -2
- package/dist/cdn/QABYI35N.js +18 -0
- package/dist/cdn/{PER3FANK.js → QFZD7GCJ.js} +2 -2
- package/dist/cdn/{7AVB457O.js → QLWQDLYJ.js} +2 -2
- package/dist/cdn/{FTX66P5U.js → QSEHUKUK.js} +2 -2
- package/dist/cdn/{BLU2VIKU.js → QSFRU6ZE.js} +2 -2
- package/dist/cdn/{NIYVCETW.js → QU74S4RI.js} +2 -2
- package/dist/cdn/{U3VBMULC.js → QU7JNZVG.js} +2 -2
- package/dist/cdn/{BFH2Q5U3.js → QUWBDRBE.js} +2 -2
- package/dist/cdn/{47G5VVBO.js → QZMNFU3O.js} +2 -2
- package/dist/cdn/{TZWZBVBO.js → R2QN2NVA.js} +2 -2
- package/dist/cdn/{5D2QODTY.js → R6NWJH2T.js} +1 -1
- package/dist/cdn/{DJB74632.js → RECU3VB6.js} +2 -2
- package/dist/cdn/{FSGAUODS.js → RLYWJIWS.js} +2 -2
- package/dist/cdn/{WGDVAD44.js → RQHAO57B.js} +1 -1
- package/dist/cdn/{X6TYRAA2.js → RRQM3WWS.js} +2 -2
- package/dist/cdn/{INDLPX7C.js → RSOVP27Q.js} +2 -2
- package/dist/cdn/{6B737EGY.js → S3GATO3B.js} +2 -2
- package/dist/cdn/{5JJT4ZZO.js → S5LJNAVJ.js} +2 -2
- package/dist/cdn/{PRZC7XFU.js → S7LILHZ6.js} +2 -2
- package/dist/cdn/{5QHABXLW.js → SD2CLQWR.js} +1 -1
- package/dist/cdn/{MNGHV4D2.js → SDEYHR34.js} +2 -2
- package/dist/cdn/{GRBLHBF2.js → SEE5QR2R.js} +2 -2
- package/dist/cdn/{RVMICDG4.js → SGXSUJVY.js} +2 -2
- package/dist/cdn/{WZEM4BXK.js → SL2Z2VTM.js} +2 -2
- package/dist/cdn/{LFVZUXMO.js → TAHX7L7N.js} +1 -1
- package/dist/cdn/{NS7H6YMZ.js → TGLYOQNV.js} +2 -2
- package/dist/cdn/{VHYFDDVW.js → TGXRWCA5.js} +2 -2
- package/dist/cdn/{WEUSJWAE.js → TJI4XQVF.js} +2 -2
- package/dist/cdn/{3JXZX54X.js → TT3JSL5E.js} +2 -2
- package/dist/cdn/{U2XK5RP7.js → TZD5MGUT.js} +1 -1
- package/dist/cdn/{5YGCWUNA.js → U37LWH4D.js} +2 -2
- package/dist/cdn/{JXSWQOVW.js → U7HGDUHD.js} +17 -17
- package/dist/cdn/UB6QDVHQ.js +4 -0
- package/dist/cdn/{OYMWRNRK.js → UBBCUI4G.js} +2 -2
- package/dist/cdn/{MWNKF7WJ.js → UBITOVMY.js} +2 -2
- package/dist/cdn/{P5Z3VY3T.js → UBSSSD4F.js} +2 -2
- package/dist/cdn/{OZ3UWVCA.js → UFH2ESKV.js} +1 -1
- package/dist/cdn/{7B2HCARZ.js → UG2VB4I7.js} +2 -2
- package/dist/cdn/{2CLV46ND.js → UHVWYTHM.js} +2 -2
- package/dist/cdn/UITXXEST.js +4 -0
- package/dist/cdn/{45QWR7XP.js → ULGNQG43.js} +2 -2
- package/dist/cdn/{IVO43U7Q.js → UM332TFA.js} +2 -2
- package/dist/cdn/{7BFI7TBI.js → UQVY46LL.js} +2 -2
- package/dist/cdn/{T35I7QYT.js → UTMGYYPC.js} +2 -2
- package/dist/cdn/{WMBQMXJM.js → V67M3XNW.js} +2 -2
- package/dist/cdn/{T23GUATM.js → VAQT7ARN.js} +2 -2
- package/dist/cdn/{5TW3VD4R.js → VDKRDZJM.js} +2 -2
- package/dist/cdn/{PM2FJP2T.js → VDRZPPZC.js} +2 -2
- package/dist/cdn/{IHRUCQ2W.js → VEFFB5HW.js} +1 -1
- package/dist/cdn/{7PHORZWE.js → VSTHZ6AJ.js} +2 -2
- package/dist/cdn/{QCMQKKPY.js → VWFYEGZK.js} +2 -2
- package/dist/cdn/{GXOZZUNW.js → VXHKEQOL.js} +2 -2
- package/dist/cdn/{MTCRAQAJ.js → VXNYWTA2.js} +2 -2
- package/dist/cdn/{SXBM6EZP.js → VYQNTISJ.js} +2 -2
- package/dist/cdn/{R4TRXB34.js → VZTVT7W4.js} +2 -2
- package/dist/cdn/W3IPZTUY.js +6 -0
- package/dist/cdn/{5BILF3PR.js → WCAMEDNK.js} +2 -2
- package/dist/cdn/{JZPLLKMA.js → WL2QS77G.js} +2 -2
- package/dist/cdn/{DMGXDHPW.js → WN7I3CLH.js} +2 -2
- package/dist/cdn/{ODROTWXF.js → WOWM46JN.js} +2 -2
- package/dist/cdn/{NJMY3FC3.js → WT27D7OF.js} +2 -2
- package/dist/cdn/{SHMGFOGS.js → WUDMEAHZ.js} +2 -2
- package/dist/cdn/{XORPA3LU.js → WVCE4HNT.js} +2 -2
- package/dist/cdn/{SLOADIPP.js → WYVS67DX.js} +2 -2
- package/dist/cdn/{7WAVZXMQ.js → XETIOQJS.js} +2 -2
- package/dist/cdn/{UVONSEDL.js → XGCJQZRI.js} +2 -2
- package/dist/cdn/{T5Z3DCYK.js → XKB4YYB6.js} +1 -1
- package/dist/cdn/{IA23IYVY.js → XKWWXYCP.js} +2 -2
- package/dist/cdn/{RZ5TXPRK.js → YAGUTU2N.js} +2 -2
- package/dist/cdn/{XI4BRTEG.js → YGDH5YVZ.js} +2 -2
- package/dist/cdn/{TEHO6PBT.js → YJY766UU.js} +2 -2
- package/dist/cdn/{QC5KFLH3.js → YKW4FGXP.js} +2 -2
- package/dist/cdn/{TWRDYP6L.js → YNLF6CBA.js} +2 -2
- package/dist/cdn/{CUQH3TNF.js → YSF3U2S4.js} +2 -2
- package/dist/cdn/{ESRTCMBM.js → YZWFSEWM.js} +2 -2
- package/dist/cdn/{KRJ2L3K4.js → Z2TQAG2W.js} +2 -2
- package/dist/cdn/{IDZM6JQ2.js → Z46YZXN7.js} +2 -2
- package/dist/cdn/{GP2IIA76.js → Z76A5P6D.js} +2 -2
- package/dist/cdn/{IH5UPO4W.js → ZBIVULLU.js} +2 -2
- package/dist/cdn/{3X5F76DP.js → ZDR25IQ2.js} +2 -2
- package/dist/cdn/{S7G6BX5M.js → ZHO4ZAWI.js} +2 -2
- package/dist/cdn/{OMBAX252.js → ZOSUIDTX.js} +2 -2
- package/dist/cdn/{6QQLYL4K.js → ZPQHWXVT.js} +2 -2
- package/dist/cdn/{5NEGXFEY.js → ZQ6TRYQI.js} +1 -1
- package/dist/cdn/{TG27VP3D.js → ZQCQVKSK.js} +2 -2
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/appConfig.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/helpers.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/prepareDataForSolutionDisplay.js +1 -1
- package/dist/chunks/privilegeUtils.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 +1129 -1128
- 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 +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +1 -2
- 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.js +1 -1
- 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 +10 -10
- package/dist/components/solution-configure-dialog/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-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-dialog/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 +17 -17
- 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-diagram/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-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-social-share/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 +14 -14
- 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 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +2 -2
- package/dist/cdn/3FPOGXIB.js +0 -4
- package/dist/cdn/5NI3FFHS.js +0 -4
- package/dist/cdn/7LZPJOU7.js +0 -25
- package/dist/cdn/CNFCP73P.js +0 -4
- package/dist/cdn/DD7EJ4ZW.js +0 -18
- package/dist/cdn/GMZVBYEW.js +0 -4
- package/dist/cdn/K3C5AHY2.js +0 -4
- package/dist/cdn/LYXAM2X5.js +0 -18
- package/dist/cdn/NY4636UE.js +0 -4
- package/dist/cdn/QTHWC2ZJ.js +0 -4
- package/dist/cdn/SHBMYV5S.js +0 -6
- package/dist/cdn/U57WJLGP.js +0 -4
- package/dist/cdn/V5AFQGVT.js +0 -4
- package/dist/cdn/VZOMSRAD.js +0 -20
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{b as h}from"./
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import{b as h}from"./PSUXO4NH.js";import{h as n,i as s,k as c,n as l,q as o,y as d}from"./W3IPZTUY.js";import"./D5LUMTLN.js";var p=n`@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.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as w}from"./
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import{a as w}from"./5NHYI3W6.js";import{b as y,c as S}from"./PQVYRUBP.js";import{Sb as b,qa as D}from"./G5PJOI2S.js";import"./ANFQG7LD.js";import"./QSFRU6ZE.js";import"./CC7GNQZN.js";import"./ZQCQVKSK.js";import"./M4PMDTEE.js";import"./NXWK2VRW.js";import"./3Y2HEM7T.js";import"./6GXM6APH.js";import"./TAHX7L7N.js";import"./NBSLCKRM.js";import"./PVQZBQBD.js";import"./LKQE3JX7.js";import"./PMMQB3WH.js";import"./4TZFTGP5.js";import"./4B5UZHGF.js";import"./3FBYTHDB.js";import"./CGC5HVLI.js";import"./ELWIFWTO.js";import"./RQHAO57B.js";import{a as I}from"./ETN3A2QC.js";import"./KWP3A7C6.js";import"./IFJSYBIO.js";import{b as f}from"./PSUXO4NH.js";import{A as _,h as m,i as a,k as u,n as r,y as g}from"./W3IPZTUY.js";import"./D5LUMTLN.js";var $=m`/** @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.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as h}from"./
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import{a as h}from"./ETN3A2QC.js";import"./KWP3A7C6.js";import"./IFJSYBIO.js";import{b as p}from"./PSUXO4NH.js";import{h as r,i as l,k as c,n,y as d}from"./W3IPZTUY.js";import"./D5LUMTLN.js";var y=r`/** @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.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as d}from"./
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import{a as d}from"./YNLF6CBA.js";import"./3GPCAH34.js";import{a as T,d as C}from"./L7XDT5RE.js";import"./G5PJOI2S.js";import"./ANFQG7LD.js";import"./QSFRU6ZE.js";import"./CC7GNQZN.js";import"./ZQCQVKSK.js";import"./M4PMDTEE.js";import"./NXWK2VRW.js";import"./3Y2HEM7T.js";import"./6GXM6APH.js";import"./TAHX7L7N.js";import"./NBSLCKRM.js";import"./PVQZBQBD.js";import"./LKQE3JX7.js";import"./PMMQB3WH.js";import"./4TZFTGP5.js";import"./4B5UZHGF.js";import"./3FBYTHDB.js";import"./CGC5HVLI.js";import"./ELWIFWTO.js";import"./RQHAO57B.js";import"./DT5LM7Y4.js";import"./JU5GXMWH.js";import{g as L,j as E}from"./WCAMEDNK.js";import{c as l,e as r,f as c}from"./LLHTR24H.js";import"./5LZ4OM3G.js";import{b as k}from"./JNHPEUSM.js";import{a as x}from"./ETN3A2QC.js";import"./KWP3A7C6.js";import"./IFJSYBIO.js";import{b as v,c as $}from"./PSUXO4NH.js";import{A as h,h as f,i as o,k as _,n as y,q as S,w as p,x as g,y as w}from"./W3IPZTUY.js";import"./D5LUMTLN.js";var I=f`@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.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{b as h,c as m}from"./
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import{b as h,c as m}from"./PQVYRUBP.js";import{mb as f}from"./G5PJOI2S.js";import"./ANFQG7LD.js";import"./QSFRU6ZE.js";import"./CC7GNQZN.js";import"./ZQCQVKSK.js";import"./M4PMDTEE.js";import"./NXWK2VRW.js";import"./3Y2HEM7T.js";import"./6GXM6APH.js";import"./TAHX7L7N.js";import"./NBSLCKRM.js";import"./PVQZBQBD.js";import"./LKQE3JX7.js";import"./PMMQB3WH.js";import"./4TZFTGP5.js";import"./4B5UZHGF.js";import"./3FBYTHDB.js";import"./CGC5HVLI.js";import"./ELWIFWTO.js";import"./RQHAO57B.js";import{a as p}from"./ETN3A2QC.js";import"./KWP3A7C6.js";import"./IFJSYBIO.js";import{b as d}from"./PSUXO4NH.js";import{h as c,i as s,n as a,w as o,x as n,y as u}from"./W3IPZTUY.js";import"./D5LUMTLN.js";var _=c`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as i}from"./
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import{a as i}from"./ELFWTILT.js";import{o as r}from"./ZQCQVKSK.js";var a={location:"location.json"};function y(){let o=["access","created","culture","description","extent","id","itemControl","modified","owner","tags","categories","type","typeKeywords","thumbnail","url","orgId"],t=["display","geometry","view","associations","catalogs","assistant"],n=Object.keys(a),e=[];return o.forEach(s=>{e.push({entityKey:s,storeKey:`item.${s}`})}),t.forEach(s=>{e.push({entityKey:s,storeKey:`data.${s}`})}),n.forEach(s=>{e.push({entityKey:s,storeKey:`resources.${s}`})}),e.push({entityKey:"slug",storeKey:"item.properties.slug"}),e.push({entityKey:"summary",storeKey:"item.snippet"}),e.push({entityKey:"schemaVersion",storeKey:"item.properties.schemaVersion"}),e.push({entityKey:"orgUrlKey",storeKey:"item.properties.orgUrlKey"}),e.push({entityKey:"name",storeKey:"item.title"}),e.push({entityKey:"boundary",storeKey:"item.properties.boundary"}),e.push({entityKey:"discussionSettings",storeKey:"entitySettings.settings.discussions"}),e.push({entityKey:"entitySettingsId",storeKey:"entitySettings.id"}),e}function K(o,t){return t.createdDate=new Date(o.created),t.createdDateSource="item.created",t.updatedDate=new Date(o.modified),t.updatedDateSource="item.modified",t.location=t.location||r(o),t.isDiscussable=i(o),t}export{y as a,K as b};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as E}from"./
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import{a as E}from"./I6YRZF2Z.js";import"./4M6QLQL3.js";import{a as S,c as m,d as c,e as _,f,g as x}from"./WCAMEDNK.js";import"./LLHTR24H.js";import{b as C}from"./5LZ4OM3G.js";import{b as $}from"./JNHPEUSM.js";import{a as v}from"./ETN3A2QC.js";import"./KWP3A7C6.js";import"./IFJSYBIO.js";import{b as I}from"./PSUXO4NH.js";import{A as u,h as y,i as l,k as p,n as b,q as L,w as n,x as o,y as F}from"./W3IPZTUY.js";import"./D5LUMTLN.js";var P=y`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -15,4 +15,4 @@ import{a as E}from"./LM4M3UUJ.js";import"./G53GBDBC.js";import{a as S,c as m,d a
|
|
15
15
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
16
|
* See the License for the specific language governing permissions and
|
17
17
|
* limitations under the License.
|
18
|
-
*/:host{display:block;--calcite-label-margin-bottom: 0px;--solutions-theme-foreground-color: var(--calcite-color-foreground-1)}.width-full{width:100%!important}.width-0{width:0}.height-full{height:100%!important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{background-color:var(--calcite-color-foreground-1)!important;border-block-end:1px solid var(--calcite-color-border-3);display:flex;justify-content:center;padding:5px 0}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:700}.report-submitted-msg{position:absolute;z-index:1000}.share-node{display:flex}}`,g=class extends F{constructor(){super(),this.center="",this.commentButtonText="",this.commentSubmittedMessage="",this.defaultWebmap="",this.description="",this.enableAnonymousAccess=!1,this.enableAnonymousComments=!1,this.enableComments=!1,this.enableHome=!0,this.enableLogin=!1,this.enableNewReports=!1,this.enableSearch=!0,this.enableSnapping=!1,this.enableZoom=!0,this.isMobile=!1,this.layerExpressions=[],this.layerId="",this.level="",this.loginTitle="",this.mapInfos=[],this.objectId="",this.reportButtonText="",this.reportsHeader="",this.reportSubmittedMessage="",this.showComments=!1,this.showUserImageInCommentsList=!1,this.showFeatureSymbol=!1,this.showMyReportsOnly=!1,this.submitNewReportsMessage="",this.theme="light",this.floorLevel="",this.showFullCommentTitle=!0,this.filterByMapExtent=!1,this.sortOption="newest",this.reportingArea=!1,this.reportingAreaLayer="",this.reportingAreaMessage="",this._featureCreationFailedErrorMsg="",this._filterActive=!1,this._flowItems=[],this._hasValidLayers=!1,this._reportSubmitted=!1,this._selectedLayerName="",this._showSubmitCancelButton=!1,this._showLoadingIndicator=!1,this._sidePanelCollapsed=!1,this._translations=v({name:"crowdsource-reporter",blocking:!0}),this._updatedProgressBarStatus=25,this._updatedSortOption="newest",this._commentSubmitted=!1,this._addingCommentFailed=!1,this._filterOpen=!1,this._showNextButton=!1,this._submitNextButtonDisabled=!1,this._createFeature=n(),this._currentFeatureId="",this._editableLayerIds=[],this._featureDetails=n(),this._featureList=n(),this._selectedRelatedFeature=[],this._layerList=n(),this._createRelatedFeature=n(),this._layers=[],this._mapImageryLayersId=[],this._selectedFeature=[],this._selectedFeatureIndex=0,this._selectedLayerId="",this._shareNode=n(),this._urlParamsLoaded=!1,this._validLayers=[],this._nonVisibleValidLayers=[],this._showFullPanel=!1,this._floorExpression="",this._formElements=[],this._prevSelectedLayerId="",this._t9nLayerExpressions=[],this._reportSubmittedAlertNode=n(),this._commentSubmittedAlertNode=n(),this._sortPopoverNode=n(),this.togglePanel=b(),E(window)}static{this.properties={center:1,commentButtonText:1,commentSubmittedMessage:1,defaultWebmap:1,description:1,enableAnonymousAccess:5,enableAnonymousComments:5,enableComments:5,enableHome:5,enableLogin:5,enableNewReports:5,enableSearch:5,enableSnapping:5,enableZoom:5,isMobile:5,layerExpressions:0,layerId:1,level:1,loginTitle:1,mapInfos:0,mapView:0,objectId:1,reportButtonText:1,reportingOptions:0,reportsHeader:1,reportSubmittedMessage:1,searchConfiguration:0,showComments:5,showUserImageInCommentsList:5,showFeatureSymbol:5,showMyReportsOnly:5,submitNewReportsMessage:1,theme:1,zoomToScale:9,floorLevel:1,showFullCommentTitle:5,filterByMapExtent:5,sortOption:1,reportingArea:5,reportingAreaLayer:1,reportingAreaMessage:1,_featureCreationFailedErrorMsg:16,_filterActive:16,_flowItems:16,_hasValidLayers:16,_mapInfo:16,_reportSubmitted:16,_selectedLayerName:16,_showSubmitCancelButton:16,_showLoadingIndicator:16,_sidePanelCollapsed:16,_translations:16,_updatedProgressBarStatus:16,_updatedSorting:16,_updatedSortOption:16,_commentSubmitted:16,_addingCommentFailed:16,_filterOpen:16,_showNextButton:16,_submitNextButtonDisabled:16}}static{this.styles=P}static{this.shadowRootOptions=L}willUpdate(e){e.has("isMobile")&&this.isMobileWatchHandler(this.isMobile),e.has("mapView")&&this.hasUpdated&&this.mapViewWatchHandler(),e.has("floorLevel")&&this.floorLevelWatchHandler(),(e.has("reportingAreaLayer")||e.has("reportingArea")&&this.hasUpdated)&&setTimeout(()=>{this._createFeature.value&&this._createFeature.value.refresh(this.floorLevel)},50),e.has("showMyReportsOnly")&&(this.hasUpdated||this.showMyReportsOnly!==!1)&&this.showMyReportsOnlyWatchHandler(),e.has("sortOption")&&(this.hasUpdated||this.sortOption!=="newest")&&this.sortOptionWatchHandler(),e.has("filterByMapExtent")&&(this.hasUpdated||this.filterByMapExtent!==!1)&&this.filterByMapExtentChangeWatchHandler(),e.has("layerExpressions")&&(this.hasUpdated||this.layerExpressions?.length>0)&&this.layerExpressionsWatchHandler(),e.has("showFeatureSymbol")&&(this.hasUpdated||this.showFeatureSymbol!==!1)&&this.showFeatureSymbolWatchHandler(),(this._flowItems.includes("filter-panel")||this._filterOpen)&&this._filterList?.updateInitDefExpressions({initDefExpressions:this._initDefExpressions})}async isMobileWatchHandler(e){this.updatePanelState(!1,this._showFullPanel),e&&this._flowItems[this._flowItems.length-1]==="filter-panel"?(await this.backFromFilterPanel(),this._filterOpen=!0):!e&&this._filterOpen&&(await this._closeFilter(),this._flowItems=[...this._flowItems,"filter-panel"])}async mapViewWatchHandler(){await this.mapView?.when(async()=>{this.setInitExpressions(),await this.setMapView()})}async floorLevelWatchHandler(){if(this._editableLayerIds)for(let e of this._editableLayerIds){let t=this.mapView&&await c(this.mapView,e);t&&t.floorInfo?.floorField&&this._updateFloorDefinitionExpression(t)}this._flowItems[this._flowItems.length-1]==="layer-list"&&this._layerList.value&&await this._layerList.value.refresh(),this._featureList.value&&this._featureList.value.refresh(),this._createFeature.value&&this._createFeature.value.refresh(this.floorLevel)}async showMyReportsOnlyWatchHandler(){this._editableLayerIds&&(await this._updateFeatures(),this.refreshLists())}async sortOptionWatchHandler(){this.updateSortingOptions()}filterByMapExtentChangeWatchHandler(){this.refreshLists()}async layerExpressionsWatchHandler(){await this.resetFilterList(),await this.handleSelectedLayersFilter(),await this._featureList.value?.refresh()}async showFeatureSymbolWatchHandler(){await this._featureList.value?.refresh()}async updateLayerExpressionsT9n(e){if(this._t9nLayerExpressions=e||this.layerExpressions,this._filterList!=null)await this._filterList.handleUpdatingT9nData(this._t9nLayerExpressions);else if(this._currentLayerExpressions!=null){let t=structuredClone(this._currentLayerExpressions);this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t}return Promise.resolve()}async load(){this._urlParamsLoaded=!1,await this._initModules(),await this.mapView?.when(async()=>{this._layers=this.reportingOptions?Object.keys(this.reportingOptions).filter(e=>{let t=e&&this.reportingOptions&&this.reportingOptions[e];return t&&t.visible}):[],this.setInitExpressions(),await this.setMapView()})}render(){let e=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`${this._reportSubmitted&&l`<calcite-alert auto-close class=${`${e} report-submitted-msg`} icon=check-circle kind=success label @calciteAlertClose=${()=>{this._reportSubmitted=!1}} open placement=top><div slot=message .innerHTML=${(this.reportSubmittedMessage||this._translations.submitMsg)??""} ${o(this._reportSubmittedAlertNode)}></div></calcite-alert>`||""}${this._featureCreationFailedErrorMsg&&l`<calcite-alert auto-close class=${u(e)} icon=x-octagon kind=danger label @calciteAlertClose=${()=>{this._featureCreationFailedErrorMsg=""}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${this._featureCreationFailedErrorMsg}</div></calcite-alert>`||""}${this._commentSubmitted&&l`<calcite-alert auto-close class=${`report-submitted ${e}`} icon=check-circle kind=success label @calciteAlertClose=${()=>{this._commentSubmitted=!1}} open placement=top><div slot=message .innerHTML=${(this.commentSubmittedMessage||this._translations.commentSubmittedMsg)??""} ${o(this._commentSubmittedAlertNode)}></div></calcite-alert>`||""}${this._addingCommentFailed&&l`<calcite-alert auto-close class=${u(e)} icon=x-octagon kind=danger label @calciteAlertClose=${()=>{this._addingCommentFailed=!1}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${this._translations.addingCommentFailedMsg}</div></calcite-alert>`||""}<div><calcite-shell content-behind>${this._getReporter()}</calcite-shell></div>${this.isMobile&&this.filterModal()||""}`}updated(){this._adjustAlertStyles()}async _initModules(){let[e,t,i,s]=await $(["esri/core/reactiveUtils","esri/layers/support/FeatureFilter","esri/rest/identify","esri/rest/support/IdentifyParameters"]);this.reactiveUtils=e,this.FeatureFilter=t,this.identify=i,this.IdentifyParameters=s}async setSelectedLayer(e,t){this._selectedLayerId=e,this._selectedLayer=this.mapView&&await c(this.mapView,e),this._selectedLayerName=t,this._validLayers.forEach(i=>{this._nonVisibleValidLayers.find(s=>s.id===i.id)||i.set("visible",!e||i.id===e)})}_getLayersConfig(e){return this.reportingOptions&&this.reportingOptions[e]?this.reportingOptions[e]:null}_getReporter(){let e=[];this._flowItems.forEach(i=>{switch(i){case"layer-list":e.push(this.getLayerListFlowItem());break;case"feature-list":e.push(this.getFeatureListFlowItem(this._selectedLayerId,this._selectedLayerName));break;case"filter-panel":e.push(this.getFilterPanel());break;case"feature-details":e.push(this.getFeatureDetailsFlowItem());break;case"reporting-layer-list":e.push(this.getChooseCategoryFlowItem());break;case"feature-create":e.push(this.getFeatureCreateFlowItem());break;case"comment-details":e.push(this.getCommentDetailsFlowItem());break;case"add-comment":e.push(this.getAddCommentFlowItem());break}});let t=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`<calcite-panel class=${`width-full ${t}`}>${this.mapView?l`<calcite-flow>${e?.length>0&&e||""}</calcite-flow>`:l`<calcite-loader label scale=m></calcite-loader>`}</calcite-panel>`}filterModal(){return(this.layerExpressions?this.layerExpressions.filter(e=>e.id===this._selectedLayerId):[]).length>0&&l`<calcite-modal aria-labelledby=modal-title class="modal" kind=brand @calciteModalClose=${()=>void this._closeFilter()} .open=${this._filterOpen} width-scale=s><div class="display-flex align-center" id=modal-title slot=header>${this._translations.filterLayerTitle.replace("{{title}}",this._selectedLayerName)}</div><div slot=content>${this.mapView&&l`<instant-apps-filter-list close-btn .closeBtnOnClick=${()=>void this._closeFilter()} combobox-overlay-positioning=fixed .layerExpressions=${this._currentLayerExpressions} @filterListReset=${()=>{this._filterActive=!1,this._featureList.value&&this._featureList.value.refresh()}} @filterUpdate=${()=>{this._filterList?.filterCount!==void 0&&this._handleFilterUpdate(this._filterList?.filterCount>0)}} .view=${this.mapView} ${o(this._setFilterList)}></instant-apps-filter-list>`||""}</div></calcite-modal>`||""}_setFilterList(e){this._filterList=e,e&&(e.autoUpdateUrl=!1,e.resetBtn=this.isMobile,e.resetFiltersOnDisconnect=!1,e.zoomBtn=!1)}_adjustAlertStyles(){this.reportSubmittedMessage&&this._reportSubmittedAlertNode.value?.children[0]&&(this._reportSubmittedAlertNode.value.children[0].style.margin="0px"),this.commentSubmittedMessage&&this._commentSubmittedAlertNode.value?.children[0]&&(this._commentSubmittedAlertNode.value.children[0].style.margin="0px")}_toggleFilter(){this._filterOpen=!this._filterOpen}async _closeFilter(){this._filterOpen=!1,this._filterList!=null&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions())}async sortOptionClick(e,t,i){this._updatedSorting={field:e,order:t},this._updatedSortOption=i,this._sortPopoverNode.value&&(this._sortPopoverNode.value.open=!1)}_toggleSort(){let e=this.reportingOptions&&this.reportingOptions[this._selectedLayerId]&&this.reportingOptions[this._selectedLayerId].like&&this.reportingOptions[this._selectedLayerId].likeField;return l`<calcite-popover auto-close label offset-distance=0 .placement=${this.isMobile?"leading-start":"bottom-start"} pointer-disabled reference-element=sort-popover ${o(this._sortPopoverNode)}><calcite-list label selection-mode=single-persist><calcite-list-item .label=${this._translations.sortNewest} @calciteListItemSelect=${()=>{this._selectedLayer&&this.sortOptionClick(this._selectedLayer.objectIdField,"desc","newest")}} .selected=${this._updatedSortOption==="newest"} value=newest></calcite-list-item><calcite-list-item .label=${this._translations.sortOldest} @calciteListItemSelect=${()=>{this._selectedLayer&&this.sortOptionClick(this._selectedLayer.objectIdField,"asc","oldest")}} .selected=${this._updatedSortOption==="oldest"} value=oldest></calcite-list-item>${e&&l`<calcite-list-item .label=${this._translations.sortHighestVoted} @calciteListItemSelect=${()=>{let t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId].likeField;t!==void 0&&this.sortOptionClick(t,"desc","highestVoted")}} .selected=${this._updatedSortOption==="highestVoted"} value=highestVoted></calcite-list-item><calcite-list-item .label=${this._translations.sortLowestVoted} @calciteListItemSelect=${()=>{let t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId].likeField;t&&this.sortOptionClick(t,"asc","lowestVoted")}} .selected=${this._updatedSortOption==="lowestVoted"} value=lowestVoted></calcite-list-item>`||""}</calcite-list></calcite-popover>`}async _handleFilterListReset(){this._filterActive=!1}async _handleFilterUpdate(e){this._showLoadingIndicator=!0,this._filterActive=e,this._featureList.value&&await this._featureList.value.refresh(),this._showLoadingIndicator=!1}getLayerListFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this.reportsHeader} .loading=${this._showLoadingIndicator} .selected=${this._flowItems[this._flowItems.length-1]==="layer-list"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this._hasValidLayers&&this.enableNewReports&&l`<calcite-button appearance=solid @click=${this.navigateToChooseCategory} slot=footer width=full>${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText}</calcite-button>`||""}<calcite-panel><layer-list .applyLayerViewFilter=${this.showMyReportsOnly} class="height-full" .filterByMapExtent=${this.filterByMapExtent} .layers=${this._editableLayerIds?.length>0?this._editableLayerIds:this._layers} .mapView=${this.mapView} @layerSelect=${this.displayFeaturesList} @layersListLoaded=${this.layerListLoaded} show-feature-count show-next-icon ${o(this._layerList)}></layer-list></calcite-panel></calcite-flow-item>`}getChooseCategoryFlowItem(){let e=this.reportingOptions?Object.keys(this.reportingOptions).filter(t=>this.reportingOptions&&this.reportingOptions[t].visible&&this.reportingOptions[t].reporting&&this._layerItemsHash&&this._layerItemsHash[t]&&this._layerItemsHash[t].supportsAdd):[];return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="reporting-layer-list"}><calcite-panel><div class="progress-bar"><calcite-progress type=determinate .value=${this._updatedProgressBarStatus}></calcite-progress></div><calcite-notice class="notice-msg" icon=lightbulb kind=success open><div slot=message>${this._translations.chooseCategoryMsg}</div></calcite-notice><layer-list class="height-full" .layers=${e} .mapView=${this.mapView} @layerSelect=${this.navigateToCreateFeature}></layer-list></calcite-panel></calcite-flow-item>`}getFeatureCreateFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._selectedLayerName} @calciteFlowItemBack=${this.backFromCreateFeaturePanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-create"}>${this._showSubmitCancelButton&&l`<div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${this._submitNextButtonDisabled} @click=${this._showNextButton?this.onNextButtonClick.bind(this):this.onCreateFeatureSubmitButtonClick.bind(this)} width=full>${this._showNextButton?this._translations.next:this._translations.submit}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromCreateFeaturePanel} width=full>${this._translations.cancel}</calcite-button></div>`||""}<calcite-panel><div class="progress-bar"><calcite-progress type=determinate .value=${this._updatedProgressBarStatus}></calcite-progress></div><create-feature customize-submit enable-search .enableSnapping=${this.enableSnapping} .floorLevel=${this.floorLevel} .formElements=${this._formElements.find(e=>e.id===this._selectedLayerId)} .reportingAreaLayer=${this.reportingAreaLayer} .isMobile=${this.isMobile} .mapView=${this.mapView} @drawComplete=${this.onFormReady} @editingLocation=${this.editingLocation} @editingAttachment=${this.showSubmitCancelButton} @fail=${this.createFeatureFailed} @modeChanged=${this.backFromCreateFeaturePanel} @progressStatus=${this.updatedProgressStatus} @success=${this.onReportSubmitted} .searchConfiguration=${this.searchConfiguration} .selectedLayerId=${this._selectedLayerId} .reportingArea=${this.reportingArea} .reportingAreaMessage=${this.reportingAreaMessage} .submitNewReportsMessage=${this.submitNewReportsMessage} update-map-position ${o(this._createFeature)}></create-feature></calcite-panel></calcite-flow-item>`}updatedProgressStatus(e){this._updatedProgressBarStatus=e.detail}onFormReady(e){this._submitNextButtonDisabled=e.detail,this._showSubmitCancelButton=!0}editingLocation(){this._showNextButton=!0}showSubmitCancelButton(e){this._showSubmitCancelButton=!e.detail}onCreateFeatureSubmitButtonClick(){this._createFeature.value&&(this._showSubmitCancelButton=!1,this._showNextButton=!1,this._createFeature.value.submit())}backFromCreateFeaturePanel(){this._createFeature.value&&(this._showSubmitCancelButton=!1,this._showNextButton=!1,this.updateNonVisibleLayersOnMap(!1)),this.backFromSelectedPanel()}onNextButtonClick(){this._createFeature.value&&(this._showNextButton=!1,this._showSubmitCancelButton=!0,this._createFeature.value.showForm())}onCreateRelatedFeatureSubmitButtonClick(){this._createRelatedFeature.value&&this._createRelatedFeature.value.submit()}backFromCreateRelatedFeaturePanel(){this._createRelatedFeature.value&&(this._showSubmitCancelButton=!1),this.backFromSelectedPanel()}createFeatureFailed(e){console.error(e.detail),this._featureCreationFailedErrorMsg=e.detail.message}async onReportSubmitted(){this.updateNonVisibleLayersOnMap(!1),await this.navigateToHomePage(),this._reportSubmitted=!0,this._updatedProgressBarStatus=25,this._showFullPanel&&this.updatePanelState(this._sidePanelCollapsed,!1)}addCommentFailed(e){console.error(e.detail),this._addingCommentFailed=!0}async onCommentSubmitted(){this._commentSubmitted=!0,this.backFromCreateRelatedFeaturePanel(),this._showLoadingIndicator=!0,this._featureDetails.value&&await this._featureDetails.value.refresh(this._currentFeature),setTimeout(()=>{this._showLoadingIndicator=!1},300)}async navigateToHomePage(){await this.setSelectedFeatures([]),this._layerList.value&&await this._layerList.value.refresh(),this._editableLayerIds.length===1?(this._featureList.value&&await this._featureList.value.refresh(),this._flowItems=["feature-list"]):this._flowItems=["layer-list"]}async navigateToCreateFeature(e){e.detail.layerId&&e.detail.layerName&&await this.setSelectedLayer(e.detail.layerId,e.detail.layerName),this.updateNonVisibleLayersOnMap(!0),this._getFormElements(),this._showSubmitCancelButton=!1,this._showNextButton=!1,this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"feature-create"]}navigateToChooseCategory(){this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"reporting-layer-list"]}updateNonVisibleLayersOnMap(e){this._nonVisibleValidLayers.find(t=>t.id===this._selectedLayerId)&&this._selectedLayer&&this._selectedLayer.set("visible",e)}async layerListLoaded(e){if(this._layerList.value&&this._flowItems[this._flowItems.length-1]==="layer-list"||this._flowItems[0]==="feature-list"){let t=e.detail,i=this.mapView&&await _(this.mapView),s=[];if(this._validLayers=[],this._nonVisibleValidLayers=[],i?.forEach(a=>{t.includes(a.id)&&(this._validLayers.push(a),a.visible||this._nonVisibleValidLayers.push(a),this._getLayersConfig(a.id)?.reporting&&this._layerItemsHash&&this._layerItemsHash[a.id]&&this._layerItemsHash[a.id].supportsAdd&&s.push(a.id))}),this.handleMapClick(),this._hasValidLayers=s.length>0,!this._urlParamsLoaded&&this._editableLayerIds.length>1&&this.layerId&&this.objectId){let a=this.mapView&&await c(this.mapView,this.layerId);a&&await this.displayFeaturesList({detail:{layerId:a.id,layerName:a.title}}),this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams()}}}async displayFeaturesList(e){this._showLoadingIndicator=!0,await this.setSelectedLayer(e.detail.layerId,e.detail.layerName),this.updateSortingOptions(),this.handleSelectedLayersFilter(),this._flowItems=[...this._flowItems,"feature-list"],this._prevSelectedLayerId=this._selectedLayerId,this._showLoadingIndicator=!1}updateSortingOptions(){let e=this.sortOption===""?"newest":this.sortOption,t=e==="oldest"||e==="lowestVoted"?"asc":"desc",i=this.reportingOptions?.[this._selectedLayerId]?.like?this.reportingOptions?.[this._selectedLayerId]?.likeField:"",s=this._selectedLayer&&(e==="newest"||e==="oldest")?this._selectedLayer?.objectIdField:i;this._updatedSorting={field:s||"",order:t},this._updatedSortOption=!i&&(e==="highestVoted"||e==="lowestVoted")?"newest":e}async backFromFilterPanel(){this._filterList!=null&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions()),this._featureList.value&&await this._featureList.value.refresh(),this.backFromSelectedPanel()}backFromSelectedPanel(){this._updatedProgressBarStatus=25;let e=[...this._flowItems];if(e[e.length-1]==="comment-details"||e[e.length-1]==="add-comment"||this.clearHighlights(),(e[e.length-1]==="reporting-layer-list"||e[e.length-1]==="feature-create"&&(e[0]==="feature-list"||e[e.length-2]==="feature-list"))&&this.updatePanelState(this._sidePanelCollapsed,!1),e.pop(),e.length===1&&e[0]==="layer-list"){this.navigateToHomePage();return}this._flowItems=[...e]}toggleSidePanel(){this._sidePanelCollapsed=!this._sidePanelCollapsed,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}updatePanelState(e,t){this._sidePanelCollapsed=e,this._showFullPanel=t,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}async onFeatureSelectFromList(e){await this.setSelectedFeatures([e.detail]),this._flowItems=[...this._flowItems,"feature-details"]}async getRelatedTable(){let e=this._currentFeature?.layer,t=this.mapView&&await f(this.mapView);e.relationships?.some(i=>{let s=t?.filter(a=>e.url===a.url&&a.layerId===i.relatedTableId);return s&&s.length>0?(this._relatedTable=s[0],!0):!1})}async updatingFeatureDetails(e){this._showLoadingIndicator=e}async selectionChanged(e){this.updatingFeatureDetails(!0),await this.setCurrentFeature(e.detail.selectedFeature[0]),this.highlightOnMap(e.detail.selectedFeature[0]),this._selectedFeatureIndex=e.detail.selectedFeatureIndex,this._featureDetails.value&&await this._featureDetails.value.refresh(e.detail.selectedFeature[0])}showAddCommentsPanel(){this._flowItems=[...this._flowItems,"add-comment"]}async onCommentSelectFromList(e){this._selectedRelatedFeature=[e.detail],this._flowItems=[...this._flowItems,"comment-details"]}getFeatureListFlowItem(e,t){let i=this._getLayersConfig(this._selectedLayerId)?.reporting&&this._layerItemsHash&&this._layerItemsHash[this._selectedLayerId].supportsAdd,s=this._currentLayerExpressions?.length;return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${t} .loading=${!this.isMobile&&this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-list"}>${this._toggleSort()}<calcite-action icon=sort-ascending-arrow id=sort-popover slot=header-actions-end .text=${this._translations.sort} title=${this._translations.sort??p}></calcite-action>${s&&l`<calcite-action icon=filter .indicator=${this._filterActive} @click=${()=>{this.isMobile?this._toggleFilter():this._flowItems=[...this._flowItems,"filter-panel"]}} slot=header-actions-end .text=${this._translations.filter} title=${this._translations.filter??p}></calcite-action>`||""}${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this.enableNewReports&&i&&l`<calcite-button appearance=solid @click=${this.navigateToCreateFeature} slot=footer width=full>${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText}</calcite-button>`||""}<calcite-panel>${l`<feature-list .applyLayerViewFilter=${this.showMyReportsOnly} class="height-full" .filterByMapExtent=${this.filterByMapExtent} highlight-on-hover .mapView=${this.mapView} .noFeaturesFoundMsg=${this._translations.featureErrorMsg} @featureClick=${()=>{this._showLoadingIndicator=!0}} @featureSelect=${this.onFeatureSelectFromList} page-size=30 .reportingOptions=${this.reportingOptions} .selectedLayerId=${e} .showFeatureSymbol=${this.showFeatureSymbol} .sortingInfo=${this._updatedSorting} ${o(this._featureList)}></feature-list>`}</calcite-panel></calcite-flow-item>`}getFilterPanel(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._translations.filterLayerTitle.replace("{{title}}",this._selectedLayerName)} .loading=${this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromFilterPanel} .selected=${this._flowItems[this._flowItems.length-1]==="filter-panel"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<div class=width-full slot=footer><div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${!this._filterActive} @click=${this.resetFilterList} width=full>${this._translations.resetFilter}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromFilterPanel} width=full>${this._translations.close}</calcite-button></div></div><calcite-panel>${this.mapView&&l`<instant-apps-filter-list .closeBtnOnClick=${()=>{}} combobox-overlay-positioning=fixed .layerExpressions=${this._currentLayerExpressions} @filterListReset=${()=>void this._handleFilterListReset()} @filterUpdate=${()=>{let e=this._filterList?.filterCount;e!==void 0&&this._handleFilterUpdate(e>0)}} .view=${this.mapView} ${o(this._setFilterList)}></instant-apps-filter-list>`||""}</calcite-panel></calcite-flow-item>`}getFeatureDetailsFlowItem(){let e=this._selectedLayer?.relationships,t=this._getLayersConfig(this._selectedLayerId)?.comment&&e&&e.length>0&&this._relatedTable;return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._selectedLayerName} .loading=${this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-details"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this.mapView&&l`<instant-apps-social-share class=share-node flip-rtl popover-button-icon-scale=s remove-popover-offset scale=m share-button-color=neutral share-button-type=action slot=header-actions-end social-media .view=${this.mapView} ${o(this._shareNode)}></instant-apps-social-share>`||""}${this._selectedFeature.length>1&&this.getFeaturesPagination()||""}<calcite-panel><feature-details class=full-height .enableSnapping=${this.enableSnapping} .graphics=${this._selectedFeature} .layerItemsHash=${this._layerItemsHash} .mapView=${this.mapView} @addComment=${this.showAddCommentsPanel} @commentClick=${()=>{this._showLoadingIndicator=!0}} @commentSelect=${this.onCommentSelectFromList} @featureSelectionChange=${this.selectionChanged} @likeOrDislikeClicked=${()=>{this._featureList.value&&this._featureList.value.refresh(!0)}} @loadingStatus=${i=>void this.updatingFeatureDetails(i.detail)} .reportingOptions=${this.reportingOptions} .showFullCommentTitle=${this.showFullCommentTitle} .showUserImageInCommentsList=${this.showUserImageInCommentsList} ${o(this._featureDetails)}></feature-details>${t&&l`<calcite-button appearance=solid @click=${this.showAddCommentsPanel} slot=footer width=full>${this.commentButtonText||this._translations.comment}</calcite-button>`||""}</calcite-panel></calcite-flow-item>`}getFeaturesPagination(){return l`<div class="feature-pagination"><div><calcite-button appearance=transparent icon-start=chevron-left icon-flip-rtl=both id=solutions-back @click=${()=>this._featureDetails.value&&void this._featureDetails.value.back()} scale=s width=full></calcite-button><calcite-tooltip placement=top reference-element=solutions-back><span>${this._translations.back}</span></calcite-tooltip></div><calcite-button appearance=transparent @click=${()=>this._featureDetails.value&&void this._featureDetails.value.toggleListView()} scale=s><span class="pagination-count">${this._getCount()}</span></calcite-button><div><calcite-button appearance=transparent icon-flip-rtl=both icon-start=chevron-right id=solutions-next @click=${()=>this._featureDetails.value&&void this._featureDetails.value.next()} scale=s width=full></calcite-button><calcite-tooltip placement=top reference-element=solutions-next><span>${this._translations.next}</span></calcite-tooltip></div></div>`}getCommentDetailsFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._relatedTable?.title||""} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="comment-details"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<calcite-panel><info-card .enableSnapping=${this.enableSnapping} .graphics=${this._selectedRelatedFeature} .mapView=${this.mapView} @selectionChanged=${()=>{this._showLoadingIndicator=!1}}></info-card></calcite-panel></calcite-flow-item>`}getAddCommentFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._relatedTable?.title||""} @calciteFlowItemBack=${this.backFromCreateRelatedFeaturePanel} .selected=${this._flowItems[this._flowItems.length-1]==="add-comment"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<div class=width-full slot=footer>${this._showSubmitCancelButton&&l`<div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" @click=${this.onCreateRelatedFeatureSubmitButtonClick} width=full>${this._translations.submit}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromCreateRelatedFeaturePanel} width=full>${this._translations.cancel}</calcite-button></div>`||""}</div><calcite-panel><create-related-feature customize-submit .enableSnapping=${this.enableSnapping} .mapView=${this.mapView} @fail=${this.addCommentFailed} @formReady=${this.onFormReady} @isActionPending=${this.showSubmitCancelButton} @success=${this.onCommentSubmitted} .selectedFeature=${this._currentFeature} .table=${this._relatedTable} ${o(this._createRelatedFeature)}></create-related-feature></calcite-panel></calcite-flow-item>`}async setSelectedFeatures(e){this._selectedFeature=e,await this.setCurrentFeature(this._selectedFeature.length?this._selectedFeature[0]:void 0)}async setCurrentFeature(e){if(this._currentFeature=e,e&&e.layer){let t=e.layer;t.title&&this.setSelectedLayer(t.id,t.title),this._currentFeatureId=e.attributes[t.objectIdField],this._getLayersConfig(t.id)?.comment&&t.relationships&&t.relationships.length>0&&await this.getRelatedTable()}else this._editableLayerIds.length>1&&(this.setSelectedLayer("",""),this.handlePrevLayersFilter()),this._currentFeatureId="";this._updateShareURL()}async highlightOnMap(e){if(this.clearHighlights(),e&&e.geometry&&e.layer&&e.layer.id!==void 0){let t=this.mapView&&await m(this.mapView,e.layer.id.toString());if(t){t.highlightOptions=null;let i=Number(e.getObjectId());this._highlightHandle=this.mapView&&await x([i],t,this.mapView,!0,this.zoomToScale)}}this.updatingFeatureDetails(!1)}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}getActionToExpandCollapsePanel(){return l`<calcite-action .icon=${this._sidePanelCollapsed?"chevrons-up":"chevrons-down"} @click=${this.toggleSidePanel} slot=header-actions-end .text=${(this._sidePanelCollapsed?this._translations.expand:this._translations.collapse)||""}></calcite-action>`}async setMapView(){this.mapView&&await f(this.mapView),await this.getLayersToShowInList(),await this._updateFeatures(),this._editableLayerIds?.length===1?await this.renderFeaturesList():this._flowItems=["layer-list"],this.mapView&&(this.mapView.popupEnabled=!1,this._defaultCenter&&this._defaultLevel&&(await this.mapView.goTo({center:this._defaultCenter,zoom:this._defaultLevel}),this._defaultCenter=void 0,this._defaultLevel=void 0))}handleMapClick(){this._mapClickHandle&&this._mapClickHandle.remove(),this._mapClickHandle=this.reactiveUtils?.on(()=>this.mapView,"click",e=>{this.mapView&&(this.mapView.popupEnabled=!1),this.onMapClick(e)})}async onMapClick(e){if(!(this._flowItems[this._flowItems.length-1]==="feature-create"||this._flowItems[this._flowItems.length-1]==="add-comment")&&this.mapView){let t=await this.mapView.hitTest(e),i=[],s=[],a=[],h=!1;t.results.length>0&&t.results.forEach(d=>{d.type==="graphic"&&i.push(d.graphic)}),i.length>0&&(await this._setReportingGraphics(i),s=this._getNonReportingLayerGraphics(i)),this._mapImageryLayersId.length>0&&(a=await this._getIdentifiedGraphics(e.mapPoint),h=a.length>0);let r=s.concat(a);if(r.length>0){this.mapView.popupEnabled=!0;let d={features:r,location:e.mapPoint,updateLocationEnabled:!h};await this.mapView.openPopup(d)}}}async _setReportingGraphics(e){let t=e.filter(i=>{if(i.layer?.type==="feature"){let s=i.layer;return this._validLayers.includes(s)}else return!1});this._selectedLayer&&this._selectedFeature.length>0&&this._selectedLayer.id===t[0]?.layer?.id&&t[0].attributes[this._selectedLayer.objectIdField]===this._selectedFeature[0].attributes[this._selectedLayer.objectIdField]||t.length>0&&(await this.setSelectedFeatures(t),this._flowItems.length&&this._flowItems.includes("feature-details")?(this._flowItems=[...this._flowItems.slice(0,this._flowItems.indexOf("feature-details")+1)],await this.highlightOnMap(e[0])):this._flowItems=[...this._flowItems,"feature-details"])}_getNonReportingLayerGraphics(e){return e.filter(t=>{if(t.layer?.type==="feature"){let i=t.layer;return!this._validLayers.includes(i)&&i?.popupEnabled&&i?.id}else return!1})}async _getIdentifiedGraphics(e){let t=this.IdentifyParameters&&new this.IdentifyParameters({geometry:e,tolerance:3,mapExtent:this.mapView?.extent}),i=this._mapImageryLayersId.map(async h=>{let r=this.mapView&&await c(this.mapView,h);if(r?.url&&t)return await this.identify?.identify(r.url,t)}),s=await Promise.all(i),a=[];return s.forEach(h=>{h.results.forEach(r=>{let d=Object.keys(r.feature.attributes).map(w=>({fieldName:w,label:w}));r.feature.popupTemplate={title:r.layerName,content:[{type:"fields",fieldInfos:d}]},a.push(r.feature)})}),a}_getCount(){let e=(this._selectedFeatureIndex+1).toString(),t=this._selectedFeature.length.toString();return this._translations.indexOfTotal.replace("{{index}}",e).replace("{{total}}",t)}_updateFloorDefinitionExpression(e){let t=`${e?.floorInfo?.floorField} = '${this.floorLevel}'`,i=e.definitionExpression;e.definitionExpression=i&&i?.indexOf(this._floorExpression)>-1?i.replace(this._floorExpression,t):t,this._floorExpression=t}_getFormElements(){let e=this._selectedLayer;if(e?.floorInfo?.floorField&&this.floorLevel&&e?.formTemplate){let t=this._formElements.find(i=>i.id===e.id);(this._formElements.length===0||!t)&&this._formElements.push({id:e.id,orgElements:e.formTemplate.elements,orgExpressionInfos:e.formTemplate.expressionInfos})}}reduceToConfiguredLayers(e,t){return Object.keys(e).reduce((i,s)=>{let a=this.reportingOptions?this._getLayersConfig(s)?.visible:e[s].supportsAdd;return!t.includes(s)&&a&&i.push(s),i},[])}refreshLists(){setTimeout(()=>{this._layerList.value&&this._flowItems[this._flowItems.length-1]==="layer-list"&&this._layerList.value.refresh(),this._featureList.value&&this._featureList.value.refresh()},50)}async _updateFeatures(){for(let e of this._editableLayerIds){let t=this.mapView&&await m(this.mapView,e);t&&(await this._showMyFeaturesOnly(t),t.layer?.floorInfo?.floorField&&this.floorLevel&&this._updateFloorDefinitionExpression(t.layer))}}async _showMyFeaturesOnly(e){let t=(this.mapView?.map).portalItem.portal?.credential?.userId;if(t&&e){let i=e.layer.editFieldsInfo?.creatorField.toLowerCase();e.filter=this.showMyReportsOnly&&i&&this.FeatureFilter?new this.FeatureFilter({where:i+"='"+t+"'"}):null}}async getLayersToShowInList(){let e=this.mapView&&await S(this.mapView,!0),t=this.mapView&&await _(this.mapView),i=[];t?.forEach(s=>{s?.type==="feature"&&s?.editingEnabled&&s?.capabilities?.operations?.supportsAdd&&(e[s.id].supportsAdd=!0),s?.editingEnabled||i.push(s.id)}),this._editableLayerIds=this.reduceToConfiguredLayers(e,i),this._layerItemsHash=e}async renderFeaturesList(){this._flowItems=["feature-list"];let e={detail:this._editableLayerIds};await this.layerListLoaded(e),await this.setSelectedLayer(this._validLayers[0].id,this._validLayers[0]?.title||""),this.updateSortingOptions(),await this.handleSelectedLayersFilter(),this._urlParamsLoaded||(this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams())}_updateShareURL(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this._selectedLayerId?t.searchParams.set("layerid",this._selectedLayerId):t.searchParams.delete("layerid"),this._selectedFeature?.length?t.searchParams.set("oid",this._currentFeatureId):t.searchParams.delete("oid"),this._shareNode.value&&(this._shareNode.value.autoUpdateShareUrl=!1,this._shareNode.value.shareUrl=t.href)}async loadFeatureFromURLParams(){if(this.center&&this.level&&await this.mapView?.goTo({center:this.center.split(";").map(Number),zoom:this.level}),this.layerId&&this.objectId){let e=this.mapView&&await c(this.mapView,this.layerId);if(e){let t=this.mapView&&await C([Number(this.objectId)],e,[],!0,this.mapView.spatialReference);t?.length&&(await this.setSelectedFeatures(t),this._flowItems.length&&this._flowItems[this._flowItems.length-1]!=="feature-details"?this._flowItems=[...this._flowItems,"feature-details"]:this._flowItems=[...this._flowItems])}}}async handleSelectedLayersFilter(){if(this._selectedLayer){let e=this.layerExpressions?structuredClone(this.layerExpressions.filter(t=>t.id===this._selectedLayerId)):[];this._t9nLayerExpressions!=null&&this.handleLayerExpressionsT9n(e,this._t9nLayerExpressions),this._currentLayerExpressions=e,this.setActiveDefinitionExpressions()}}async handlePrevLayersFilter(){if(this._prevSelectedLayerId){let e=this.mapView&&await c(this.mapView,this._prevSelectedLayerId);e&&this._initDefExpressions&&(e.definitionExpression=this._initDefExpressions[this._prevSelectedLayerId])}}async resetFilterList(){await this._filterList?.forceReset(),this._selectedLayer!==void 0&&this._initDefExpressions&&(this._selectedLayer.definitionExpression=this._initDefExpressions[this._selectedLayerId],this._filterActive=!1)}setActiveDefinitionExpressions(){if(this._selectedLayer===void 0)return;let e=[];if(this._currentLayerExpressions&&this._currentLayerExpressions?.length>0){let t=this._currentLayerExpressions[0];for(let i of t.expressions){let{active:s,definitionExpression:a}=i;s&&a&&e.push(`(${a})`)}this._filterActive=e.length>0,this.updateFilterLayerDefExpression(e,t.operator)}}updateFilterLayerDefExpression(e,t){let i=this._initDefExpressions&&this._initDefExpressions[this._selectedLayerId],s=e?.length>0&&i?`(${e.join(t)}) AND (${i})`:e.length>0?e.join(t):i;this._selectedLayer&&(this._selectedLayer.definitionExpression=s)}setInitExpressions(){if(this._initDefExpressions={},this.mapView==null)return;let e=this.mapView.map;e.allLayers.concat(e.allTables).forEach(t=>{if(t.type==="map-image"&&!this._mapImageryLayersId.includes(t.id)){this._mapImageryLayersId.push(t.id);return}if(t.type!=="feature")return;let i=t;this._initDefExpressions&&(this._initDefExpressions[i.id]=i.definitionExpression||"")})}handleLayerExpressionsT9n(e,t){e?.forEach(i=>{let s=t?.find(a=>a.id===i.id);s!=null&&(i.title=s.title,i.expressions?.forEach(a=>{let h=s.expressions?.find(r=>r.id===a.id);h!=null&&(a.name=h.name)}))})}};I("crowdsource-reporter",g);export{g as CrowdsourceReporter};
|
18
|
+
*/:host{display:block;--calcite-label-margin-bottom: 0px;--solutions-theme-foreground-color: var(--calcite-color-foreground-1)}.width-full{width:100%!important}.width-0{width:0}.height-full{height:100%!important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{background-color:var(--calcite-color-foreground-1)!important;border-block-end:1px solid var(--calcite-color-border-3);display:flex;justify-content:center;padding:5px 0}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:700}.report-submitted-msg{position:absolute;z-index:1000}.share-node{display:flex}}`,g=class extends F{constructor(){super(),this.center="",this.commentButtonText="",this.commentSubmittedMessage="",this.defaultWebmap="",this.description="",this.enableAnonymousAccess=!1,this.enableAnonymousComments=!1,this.enableComments=!1,this.enableHome=!0,this.enableLogin=!1,this.enableNewReports=!1,this.enableSearch=!0,this.enableSnapping=!1,this.enableZoom=!0,this.isMobile=!1,this.layerExpressions=[],this.layerId="",this.level="",this.loginTitle="",this.mapInfos=[],this.objectId="",this.reportButtonText="",this.reportsHeader="",this.reportSubmittedMessage="",this.showComments=!1,this.showUserImageInCommentsList=!1,this.showFeatureSymbol=!1,this.showMyReportsOnly=!1,this.submitNewReportsMessage="",this.theme="light",this.floorLevel="",this.showFullCommentTitle=!0,this.filterByMapExtent=!1,this.sortOption="newest",this.reportingArea=!1,this.reportingAreaLayer="",this.reportingAreaMessage="",this._featureCreationFailedErrorMsg="",this._filterActive=!1,this._flowItems=[],this._hasValidLayers=!1,this._reportSubmitted=!1,this._selectedLayerName="",this._showSubmitCancelButton=!1,this._showLoadingIndicator=!1,this._sidePanelCollapsed=!1,this._translations=v({name:"crowdsource-reporter",blocking:!0}),this._updatedProgressBarStatus=25,this._updatedSortOption="newest",this._commentSubmitted=!1,this._addingCommentFailed=!1,this._filterOpen=!1,this._showNextButton=!1,this._submitNextButtonDisabled=!1,this._createFeature=n(),this._currentFeatureId="",this._editableLayerIds=[],this._featureDetails=n(),this._featureList=n(),this._selectedRelatedFeature=[],this._layerList=n(),this._createRelatedFeature=n(),this._layers=[],this._mapImageryLayersId=[],this._selectedFeature=[],this._selectedFeatureIndex=0,this._selectedLayerId="",this._shareNode=n(),this._urlParamsLoaded=!1,this._validLayers=[],this._nonVisibleValidLayers=[],this._showFullPanel=!1,this._floorExpression="",this._formElements=[],this._prevSelectedLayerId="",this._t9nLayerExpressions=[],this._reportSubmittedAlertNode=n(),this._commentSubmittedAlertNode=n(),this._sortPopoverNode=n(),this.togglePanel=b(),E(window)}static{this.properties={center:1,commentButtonText:1,commentSubmittedMessage:1,defaultWebmap:1,description:1,enableAnonymousAccess:5,enableAnonymousComments:5,enableComments:5,enableHome:5,enableLogin:5,enableNewReports:5,enableSearch:5,enableSnapping:5,enableZoom:5,isMobile:5,layerExpressions:0,layerId:1,level:1,loginTitle:1,mapInfos:0,mapView:0,objectId:1,reportButtonText:1,reportingOptions:0,reportsHeader:1,reportSubmittedMessage:1,searchConfiguration:0,showComments:5,showUserImageInCommentsList:5,showFeatureSymbol:5,showMyReportsOnly:5,submitNewReportsMessage:1,theme:1,zoomToScale:9,floorLevel:1,showFullCommentTitle:5,filterByMapExtent:5,sortOption:1,reportingArea:5,reportingAreaLayer:1,reportingAreaMessage:1,_featureCreationFailedErrorMsg:16,_filterActive:16,_flowItems:16,_hasValidLayers:16,_mapInfo:16,_reportSubmitted:16,_selectedLayerName:16,_showSubmitCancelButton:16,_showLoadingIndicator:16,_sidePanelCollapsed:16,_translations:16,_updatedProgressBarStatus:16,_updatedSorting:16,_updatedSortOption:16,_commentSubmitted:16,_addingCommentFailed:16,_filterOpen:16,_showNextButton:16,_submitNextButtonDisabled:16}}static{this.styles=P}static{this.shadowRootOptions=L}willUpdate(e){e.has("isMobile")&&this.isMobileWatchHandler(this.isMobile),e.has("mapView")&&this.hasUpdated&&this.mapViewWatchHandler(),e.has("floorLevel")&&this.floorLevelWatchHandler(),(e.has("reportingAreaLayer")||e.has("reportingArea")&&this.hasUpdated)&&setTimeout(()=>{this._createFeature.value&&this._createFeature.value.refresh(this.floorLevel)},50),e.has("showMyReportsOnly")&&(this.hasUpdated||this.showMyReportsOnly!==!1)&&this.showMyReportsOnlyWatchHandler(),e.has("sortOption")&&(this.hasUpdated||this.sortOption!=="newest")&&this.sortOptionWatchHandler(),e.has("filterByMapExtent")&&(this.hasUpdated||this.filterByMapExtent!==!1)&&this.filterByMapExtentChangeWatchHandler(),e.has("layerExpressions")&&(this.hasUpdated||this.layerExpressions?.length>0)&&this.layerExpressionsWatchHandler(),e.has("showFeatureSymbol")&&(this.hasUpdated||this.showFeatureSymbol!==!1)&&this.showFeatureSymbolWatchHandler(),(this._flowItems.includes("filter-panel")||this._filterOpen)&&this._filterList?.updateInitDefExpressions({initDefExpressions:this._initDefExpressions})}async isMobileWatchHandler(e){this.updatePanelState(!1,this._showFullPanel),e&&this._flowItems[this._flowItems.length-1]==="filter-panel"?(await this.backFromFilterPanel(),this._filterOpen=!0):!e&&this._filterOpen&&(await this._closeFilter(),this._flowItems=[...this._flowItems,"filter-panel"])}async mapViewWatchHandler(){await this.mapView?.when(async()=>{this.setInitExpressions(),await this.setMapView()})}async floorLevelWatchHandler(){if(this._editableLayerIds)for(let e of this._editableLayerIds){let t=this.mapView&&await c(this.mapView,e);t&&t.floorInfo?.floorField&&this._updateFloorDefinitionExpression(t)}this._flowItems[this._flowItems.length-1]==="layer-list"&&this._layerList.value&&await this._layerList.value.refresh(),this._featureList.value&&this._featureList.value.refresh(),this._createFeature.value&&this._createFeature.value.refresh(this.floorLevel)}async showMyReportsOnlyWatchHandler(){this._editableLayerIds&&(await this._updateFeatures(),this.refreshLists())}async sortOptionWatchHandler(){this.updateSortingOptions()}filterByMapExtentChangeWatchHandler(){this.refreshLists()}async layerExpressionsWatchHandler(){await this.resetFilterList(),await this.handleSelectedLayersFilter(),await this._featureList.value?.refresh()}async showFeatureSymbolWatchHandler(){await this._featureList.value?.refresh()}async updateLayerExpressionsT9n(e){if(this._t9nLayerExpressions=e||this.layerExpressions,this._filterList!=null)await this._filterList.handleUpdatingT9nData(this._t9nLayerExpressions);else if(this._currentLayerExpressions!=null){let t=structuredClone(this._currentLayerExpressions);this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t}return Promise.resolve()}async load(){this._urlParamsLoaded=!1,await this._initModules(),await this.mapView?.when(async()=>{this._layers=this.reportingOptions?Object.keys(this.reportingOptions).filter(e=>{let t=e&&this.reportingOptions&&this.reportingOptions[e];return t&&t.visible}):[],this.setInitExpressions(),await this.setMapView()})}render(){let e=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`${this._reportSubmitted&&l`<calcite-alert auto-close class=${`${e} report-submitted-msg`} icon=check-circle kind=success label @calciteAlertClose=${()=>{this._reportSubmitted=!1}} open placement=top><div slot=message .innerHTML=${(this.reportSubmittedMessage||this._translations.submitMsg)??""} ${o(this._reportSubmittedAlertNode)}></div></calcite-alert>`||""}${this._featureCreationFailedErrorMsg&&l`<calcite-alert auto-close class=${u(e)} icon=x-octagon kind=danger label @calciteAlertClose=${()=>{this._featureCreationFailedErrorMsg=""}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${this._featureCreationFailedErrorMsg}</div></calcite-alert>`||""}${this._commentSubmitted&&l`<calcite-alert auto-close class=${`report-submitted ${e}`} icon=check-circle kind=success label @calciteAlertClose=${()=>{this._commentSubmitted=!1}} open placement=top><div slot=message .innerHTML=${(this.commentSubmittedMessage||this._translations.commentSubmittedMsg)??""} ${o(this._commentSubmittedAlertNode)}></div></calcite-alert>`||""}${this._addingCommentFailed&&l`<calcite-alert auto-close class=${u(e)} icon=x-octagon kind=danger label @calciteAlertClose=${()=>{this._addingCommentFailed=!1}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${this._translations.addingCommentFailedMsg}</div></calcite-alert>`||""}<div><calcite-shell content-behind>${this._getReporter()}</calcite-shell></div>${this.isMobile&&this.filterModal()||""}`}updated(){this._adjustAlertStyles()}async _initModules(){let[e,t,i,s]=await $(["esri/core/reactiveUtils","esri/layers/support/FeatureFilter","esri/rest/identify","esri/rest/support/IdentifyParameters"]);this.reactiveUtils=e,this.FeatureFilter=t,this.identify=i,this.IdentifyParameters=s}async setSelectedLayer(e,t){this._selectedLayerId=e,this._selectedLayer=this.mapView&&await c(this.mapView,e),this._selectedLayerName=t,this._validLayers.forEach(i=>{this._nonVisibleValidLayers.find(s=>s.id===i.id)||i.set("visible",!e||i.id===e)})}_getLayersConfig(e){return this.reportingOptions&&this.reportingOptions[e]?this.reportingOptions[e]:null}_getReporter(){let e=[];this._flowItems.forEach(i=>{switch(i){case"layer-list":e.push(this.getLayerListFlowItem());break;case"feature-list":e.push(this.getFeatureListFlowItem(this._selectedLayerId,this._selectedLayerName));break;case"filter-panel":e.push(this.getFilterPanel());break;case"feature-details":e.push(this.getFeatureDetailsFlowItem());break;case"reporting-layer-list":e.push(this.getChooseCategoryFlowItem());break;case"feature-create":e.push(this.getFeatureCreateFlowItem());break;case"comment-details":e.push(this.getCommentDetailsFlowItem());break;case"add-comment":e.push(this.getAddCommentFlowItem());break}});let t=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`<calcite-panel class=${`width-full ${t}`}>${this.mapView?l`<calcite-flow>${e?.length>0&&e||""}</calcite-flow>`:l`<calcite-loader label scale=m></calcite-loader>`}</calcite-panel>`}filterModal(){return(this.layerExpressions?this.layerExpressions.filter(e=>e.id===this._selectedLayerId):[]).length>0&&l`<calcite-modal aria-labelledby=modal-title class="modal" kind=brand @calciteModalClose=${()=>void this._closeFilter()} .open=${this._filterOpen} width-scale=s><div class="display-flex align-center" id=modal-title slot=header>${this._translations.filterLayerTitle.replace("{{title}}",this._selectedLayerName)}</div><div slot=content>${this.mapView&&l`<instant-apps-filter-list close-btn .closeBtnOnClick=${()=>void this._closeFilter()} combobox-overlay-positioning=fixed .layerExpressions=${this._currentLayerExpressions} @filterListReset=${()=>{this._filterActive=!1,this._featureList.value&&this._featureList.value.refresh()}} @filterUpdate=${()=>{this._filterList?.filterCount!==void 0&&this._handleFilterUpdate(this._filterList?.filterCount>0)}} .view=${this.mapView} ${o(this._setFilterList)}></instant-apps-filter-list>`||""}</div></calcite-modal>`||""}_setFilterList(e){this._filterList=e,e&&(e.autoUpdateUrl=!1,e.resetBtn=this.isMobile,e.resetFiltersOnDisconnect=!1,e.zoomBtn=!1)}_adjustAlertStyles(){this.reportSubmittedMessage&&this._reportSubmittedAlertNode.value?.children[0]&&(this._reportSubmittedAlertNode.value.children[0].style.margin="0px"),this.commentSubmittedMessage&&this._commentSubmittedAlertNode.value?.children[0]&&(this._commentSubmittedAlertNode.value.children[0].style.margin="0px")}_toggleFilter(){this._filterOpen=!this._filterOpen}async _closeFilter(){this._filterOpen=!1,this._filterList!=null&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions())}async sortOptionClick(e,t,i){this._updatedSorting={field:e,order:t},this._updatedSortOption=i,this._sortPopoverNode.value&&(this._sortPopoverNode.value.open=!1)}_toggleSort(){let e=this.reportingOptions&&this.reportingOptions[this._selectedLayerId]&&this.reportingOptions[this._selectedLayerId].like&&this.reportingOptions[this._selectedLayerId].likeField;return l`<calcite-popover auto-close label offset-distance=0 .placement=${this.isMobile?"leading-start":"bottom-start"} pointer-disabled reference-element=sort-popover ${o(this._sortPopoverNode)}><calcite-list label selection-mode=single-persist><calcite-list-item .label=${this._translations.sortNewest} @calciteListItemSelect=${()=>{this._selectedLayer&&this.sortOptionClick(this._selectedLayer.objectIdField,"desc","newest")}} .selected=${this._updatedSortOption==="newest"} value=newest></calcite-list-item><calcite-list-item .label=${this._translations.sortOldest} @calciteListItemSelect=${()=>{this._selectedLayer&&this.sortOptionClick(this._selectedLayer.objectIdField,"asc","oldest")}} .selected=${this._updatedSortOption==="oldest"} value=oldest></calcite-list-item>${e&&l`<calcite-list-item .label=${this._translations.sortHighestVoted} @calciteListItemSelect=${()=>{let t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId].likeField;t!==void 0&&this.sortOptionClick(t,"desc","highestVoted")}} .selected=${this._updatedSortOption==="highestVoted"} value=highestVoted></calcite-list-item><calcite-list-item .label=${this._translations.sortLowestVoted} @calciteListItemSelect=${()=>{let t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId].likeField;t&&this.sortOptionClick(t,"asc","lowestVoted")}} .selected=${this._updatedSortOption==="lowestVoted"} value=lowestVoted></calcite-list-item>`||""}</calcite-list></calcite-popover>`}async _handleFilterListReset(){this._filterActive=!1}async _handleFilterUpdate(e){this._showLoadingIndicator=!0,this._filterActive=e,this._featureList.value&&await this._featureList.value.refresh(),this._showLoadingIndicator=!1}getLayerListFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this.reportsHeader} .loading=${this._showLoadingIndicator} .selected=${this._flowItems[this._flowItems.length-1]==="layer-list"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this._hasValidLayers&&this.enableNewReports&&l`<calcite-button appearance=solid @click=${this.navigateToChooseCategory} slot=footer width=full>${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText}</calcite-button>`||""}<calcite-panel><layer-list .applyLayerViewFilter=${this.showMyReportsOnly} class="height-full" .filterByMapExtent=${this.filterByMapExtent} .layers=${this._editableLayerIds?.length>0?this._editableLayerIds:this._layers} .mapView=${this.mapView} @layerSelect=${this.displayFeaturesList} @layersListLoaded=${this.layerListLoaded} show-feature-count show-next-icon ${o(this._layerList)}></layer-list></calcite-panel></calcite-flow-item>`}getChooseCategoryFlowItem(){let e=this.reportingOptions?Object.keys(this.reportingOptions).filter(t=>this.reportingOptions&&this.reportingOptions[t].visible&&this.reportingOptions[t].reporting&&this._layerItemsHash&&this._layerItemsHash[t]&&this._layerItemsHash[t].supportsAdd):[];return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="reporting-layer-list"}><calcite-panel><div class="progress-bar"><calcite-progress type=determinate .value=${this._updatedProgressBarStatus}></calcite-progress></div><calcite-notice class="notice-msg" icon=lightbulb kind=success open><div slot=message>${this._translations.chooseCategoryMsg}</div></calcite-notice><layer-list class="height-full" .layers=${e} .mapView=${this.mapView} @layerSelect=${this.navigateToCreateFeature}></layer-list></calcite-panel></calcite-flow-item>`}getFeatureCreateFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._selectedLayerName} @calciteFlowItemBack=${this.backFromCreateFeaturePanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-create"}>${this._showSubmitCancelButton&&l`<div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${this._submitNextButtonDisabled} @click=${this._showNextButton?this.onNextButtonClick.bind(this):this.onCreateFeatureSubmitButtonClick.bind(this)} width=full>${this._showNextButton?this._translations.next:this._translations.submit}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromCreateFeaturePanel} width=full>${this._translations.cancel}</calcite-button></div>`||""}<calcite-panel><div class="progress-bar"><calcite-progress type=determinate .value=${this._updatedProgressBarStatus}></calcite-progress></div><create-feature customize-submit enable-search .enableSnapping=${this.enableSnapping} .floorLevel=${this.floorLevel} .formElements=${this._formElements.find(e=>e.id===this._selectedLayerId)} .reportingAreaLayer=${this.reportingAreaLayer} .isMobile=${this.isMobile} .mapView=${this.mapView} @drawComplete=${this.onFormReady} @editingLocation=${this.editingLocation} @editingAttachment=${this.showSubmitCancelButton} @fail=${this.createFeatureFailed} @modeChanged=${this.backFromCreateFeaturePanel} @progressStatus=${this.updatedProgressStatus} @success=${this.onReportSubmitted} .searchConfiguration=${this.searchConfiguration} .selectedLayerId=${this._selectedLayerId} .reportingArea=${this.reportingArea} .reportingAreaMessage=${this.reportingAreaMessage} .submitNewReportsMessage=${this.submitNewReportsMessage} update-map-position ${o(this._createFeature)}></create-feature></calcite-panel></calcite-flow-item>`}updatedProgressStatus(e){this._updatedProgressBarStatus=e.detail}onFormReady(e){this._submitNextButtonDisabled=e.detail,this._showSubmitCancelButton=!0}editingLocation(){this._showNextButton=!0}showSubmitCancelButton(e){this._showSubmitCancelButton=!e.detail}onCreateFeatureSubmitButtonClick(){this._createFeature.value&&(this._showSubmitCancelButton=!1,this._showNextButton=!1,this._createFeature.value.submit())}backFromCreateFeaturePanel(){this._createFeature.value&&(this._showSubmitCancelButton=!1,this._showNextButton=!1,this.updateNonVisibleLayersOnMap(!1)),this.backFromSelectedPanel()}onNextButtonClick(){this._createFeature.value&&(this._showNextButton=!1,this._showSubmitCancelButton=!0,this._createFeature.value.showForm())}onCreateRelatedFeatureSubmitButtonClick(){this._createRelatedFeature.value&&this._createRelatedFeature.value.submit()}backFromCreateRelatedFeaturePanel(){this._createRelatedFeature.value&&(this._showSubmitCancelButton=!1),this.backFromSelectedPanel()}createFeatureFailed(e){console.error(e.detail),this._featureCreationFailedErrorMsg=e.detail.message}async onReportSubmitted(){this.updateNonVisibleLayersOnMap(!1),await this.navigateToHomePage(),this._reportSubmitted=!0,this._updatedProgressBarStatus=25,this._showFullPanel&&this.updatePanelState(this._sidePanelCollapsed,!1)}addCommentFailed(e){console.error(e.detail),this._addingCommentFailed=!0}async onCommentSubmitted(){this._commentSubmitted=!0,this.backFromCreateRelatedFeaturePanel(),this._showLoadingIndicator=!0,this._featureDetails.value&&await this._featureDetails.value.refresh(this._currentFeature),setTimeout(()=>{this._showLoadingIndicator=!1},300)}async navigateToHomePage(){await this.setSelectedFeatures([]),this._layerList.value&&await this._layerList.value.refresh(),this._editableLayerIds.length===1?(this._featureList.value&&await this._featureList.value.refresh(),this._flowItems=["feature-list"]):this._flowItems=["layer-list"]}async navigateToCreateFeature(e){e.detail.layerId&&e.detail.layerName&&await this.setSelectedLayer(e.detail.layerId,e.detail.layerName),this.updateNonVisibleLayersOnMap(!0),this._getFormElements(),this._showSubmitCancelButton=!1,this._showNextButton=!1,this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"feature-create"]}navigateToChooseCategory(){this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"reporting-layer-list"]}updateNonVisibleLayersOnMap(e){this._nonVisibleValidLayers.find(t=>t.id===this._selectedLayerId)&&this._selectedLayer&&this._selectedLayer.set("visible",e)}async layerListLoaded(e){if(this._layerList.value&&this._flowItems[this._flowItems.length-1]==="layer-list"||this._flowItems[0]==="feature-list"){let t=e.detail,i=this.mapView&&await _(this.mapView),s=[];if(this._validLayers=[],this._nonVisibleValidLayers=[],i?.forEach(a=>{t.includes(a.id)&&(this._validLayers.push(a),a.visible||this._nonVisibleValidLayers.push(a),this._getLayersConfig(a.id)?.reporting&&this._layerItemsHash&&this._layerItemsHash[a.id]&&this._layerItemsHash[a.id].supportsAdd&&s.push(a.id))}),this.handleMapClick(),this._hasValidLayers=s.length>0,!this._urlParamsLoaded&&this._editableLayerIds.length>1&&this.layerId&&this.objectId){let a=this.mapView&&await c(this.mapView,this.layerId);a&&await this.displayFeaturesList({detail:{layerId:a.id,layerName:a.title}}),this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams()}}}async displayFeaturesList(e){this._showLoadingIndicator=!0,await this.setSelectedLayer(e.detail.layerId,e.detail.layerName),this.updateSortingOptions(),this.handleSelectedLayersFilter(),this._flowItems=[...this._flowItems,"feature-list"],this._prevSelectedLayerId=this._selectedLayerId,this._showLoadingIndicator=!1}updateSortingOptions(){let e=this.sortOption===""?"newest":this.sortOption,t=e==="oldest"||e==="lowestVoted"?"asc":"desc",i=this.reportingOptions?.[this._selectedLayerId]?.like?this.reportingOptions?.[this._selectedLayerId]?.likeField:"",s=this._selectedLayer&&(e==="newest"||e==="oldest")?this._selectedLayer?.objectIdField:i;this._updatedSorting={field:s||"",order:t},this._updatedSortOption=!i&&(e==="highestVoted"||e==="lowestVoted")?"newest":e}async backFromFilterPanel(){this._filterList!=null&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions()),this._featureList.value&&await this._featureList.value.refresh(),this.backFromSelectedPanel()}backFromSelectedPanel(){this._updatedProgressBarStatus=25;let e=[...this._flowItems];if(e[e.length-1]==="comment-details"||e[e.length-1]==="add-comment"||this.clearHighlights(),(e[e.length-1]==="reporting-layer-list"||e[e.length-1]==="feature-create"&&(e[0]==="feature-list"||e[e.length-2]==="feature-list"))&&this.updatePanelState(this._sidePanelCollapsed,!1),e.pop(),e.length===1&&e[0]==="layer-list"){this.navigateToHomePage();return}this._flowItems=[...e]}toggleSidePanel(){this._sidePanelCollapsed=!this._sidePanelCollapsed,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}updatePanelState(e,t){this._sidePanelCollapsed=e,this._showFullPanel=t,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}async onFeatureSelectFromList(e){await this.setSelectedFeatures([e.detail]),this._flowItems=[...this._flowItems,"feature-details"]}async getRelatedTable(){let e=this._currentFeature?.layer,t=this.mapView&&await f(this.mapView);e.relationships?.some(i=>{let s=t?.filter(a=>e.url===a.url&&a.layerId===i.relatedTableId);return s&&s.length>0?(this._relatedTable=s[0],!0):!1})}async updatingFeatureDetails(e){this._showLoadingIndicator=e}async selectionChanged(e){this.updatingFeatureDetails(!0),await this.setCurrentFeature(e.detail.selectedFeature[0]),this.highlightOnMap(e.detail.selectedFeature[0]),this._selectedFeatureIndex=e.detail.selectedFeatureIndex,this._featureDetails.value&&await this._featureDetails.value.refresh(e.detail.selectedFeature[0])}showAddCommentsPanel(){this._flowItems=[...this._flowItems,"add-comment"]}async onCommentSelectFromList(e){this._selectedRelatedFeature=[e.detail],this._flowItems=[...this._flowItems,"comment-details"]}getFeatureListFlowItem(e,t){let i=this._getLayersConfig(this._selectedLayerId)?.reporting&&this._layerItemsHash&&this._layerItemsHash[this._selectedLayerId].supportsAdd,s=this._currentLayerExpressions?.length;return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${t} .loading=${!this.isMobile&&this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-list"}>${this._toggleSort()}<calcite-action icon=sort-ascending-arrow id=sort-popover slot=header-actions-end .text=${this._translations.sort} title=${this._translations.sort??p}></calcite-action>${s&&l`<calcite-action icon=filter .indicator=${this._filterActive} @click=${()=>{this.isMobile?this._toggleFilter():this._flowItems=[...this._flowItems,"filter-panel"]}} slot=header-actions-end .text=${this._translations.filter} title=${this._translations.filter??p}></calcite-action>`||""}${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this.enableNewReports&&i&&l`<calcite-button appearance=solid @click=${this.navigateToCreateFeature} slot=footer width=full>${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText}</calcite-button>`||""}<calcite-panel>${l`<feature-list .applyLayerViewFilter=${this.showMyReportsOnly} class="height-full" .filterByMapExtent=${this.filterByMapExtent} highlight-on-hover .mapView=${this.mapView} .noFeaturesFoundMsg=${this._translations.featureErrorMsg} @featureClick=${()=>{this._showLoadingIndicator=!0}} @featureSelect=${this.onFeatureSelectFromList} page-size=30 .reportingOptions=${this.reportingOptions} .selectedLayerId=${e} .showFeatureSymbol=${this.showFeatureSymbol} .sortingInfo=${this._updatedSorting} ${o(this._featureList)}></feature-list>`}</calcite-panel></calcite-flow-item>`}getFilterPanel(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._translations.filterLayerTitle.replace("{{title}}",this._selectedLayerName)} .loading=${this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromFilterPanel} .selected=${this._flowItems[this._flowItems.length-1]==="filter-panel"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<div class=width-full slot=footer><div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${!this._filterActive} @click=${this.resetFilterList} width=full>${this._translations.resetFilter}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromFilterPanel} width=full>${this._translations.close}</calcite-button></div></div><calcite-panel>${this.mapView&&l`<instant-apps-filter-list .closeBtnOnClick=${()=>{}} combobox-overlay-positioning=fixed .layerExpressions=${this._currentLayerExpressions} @filterListReset=${()=>void this._handleFilterListReset()} @filterUpdate=${()=>{let e=this._filterList?.filterCount;e!==void 0&&this._handleFilterUpdate(e>0)}} .view=${this.mapView} ${o(this._setFilterList)}></instant-apps-filter-list>`||""}</calcite-panel></calcite-flow-item>`}getFeatureDetailsFlowItem(){let e=this._selectedLayer?.relationships,t=this._getLayersConfig(this._selectedLayerId)?.comment&&e&&e.length>0&&this._relatedTable;return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._selectedLayerName} .loading=${this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-details"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this.mapView&&l`<instant-apps-social-share class=share-node flip-rtl popover-button-icon-scale=s remove-popover-offset scale=m share-button-color=neutral share-button-type=action slot=header-actions-end social-media .view=${this.mapView} ${o(this._shareNode)}></instant-apps-social-share>`||""}${this._selectedFeature.length>1&&this.getFeaturesPagination()||""}<calcite-panel><feature-details class=full-height .enableSnapping=${this.enableSnapping} .graphics=${this._selectedFeature} .layerItemsHash=${this._layerItemsHash} .mapView=${this.mapView} @addComment=${this.showAddCommentsPanel} @commentClick=${()=>{this._showLoadingIndicator=!0}} @commentSelect=${this.onCommentSelectFromList} @featureSelectionChange=${this.selectionChanged} @likeOrDislikeClicked=${()=>{this._featureList.value&&this._featureList.value.refresh(!0)}} @loadingStatus=${i=>void this.updatingFeatureDetails(i.detail)} .reportingOptions=${this.reportingOptions} .showFullCommentTitle=${this.showFullCommentTitle} .showUserImageInCommentsList=${this.showUserImageInCommentsList} ${o(this._featureDetails)}></feature-details>${t&&l`<calcite-button appearance=solid @click=${this.showAddCommentsPanel} slot=footer width=full>${this.commentButtonText||this._translations.comment}</calcite-button>`||""}</calcite-panel></calcite-flow-item>`}getFeaturesPagination(){return l`<div class="feature-pagination"><div><calcite-button appearance=transparent icon-start=chevron-left icon-flip-rtl=both id=solutions-back @click=${()=>this._featureDetails.value&&void this._featureDetails.value.back()} scale=s width=full></calcite-button><calcite-tooltip placement=top reference-element=solutions-back><span>${this._translations.back}</span></calcite-tooltip></div><calcite-button appearance=transparent @click=${()=>this._featureDetails.value&&void this._featureDetails.value.toggleListView()} scale=s><span class="pagination-count">${this._getCount()}</span></calcite-button><div><calcite-button appearance=transparent icon-flip-rtl=both icon-start=chevron-right id=solutions-next @click=${()=>this._featureDetails.value&&void this._featureDetails.value.next()} scale=s width=full></calcite-button><calcite-tooltip placement=top reference-element=solutions-next><span>${this._translations.next}</span></calcite-tooltip></div></div>`}getCommentDetailsFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._relatedTable?.title||""} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="comment-details"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<calcite-panel><info-card .enableSnapping=${this.enableSnapping} .graphics=${this._selectedRelatedFeature} .mapView=${this.mapView} @selectionChanged=${()=>{this._showLoadingIndicator=!1}}></info-card></calcite-panel></calcite-flow-item>`}getAddCommentFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._relatedTable?.title||""} @calciteFlowItemBack=${this.backFromCreateRelatedFeaturePanel} .selected=${this._flowItems[this._flowItems.length-1]==="add-comment"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<div class=width-full slot=footer>${this._showSubmitCancelButton&&l`<div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" @click=${this.onCreateRelatedFeatureSubmitButtonClick} width=full>${this._translations.submit}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromCreateRelatedFeaturePanel} width=full>${this._translations.cancel}</calcite-button></div>`||""}</div><calcite-panel><create-related-feature customize-submit .enableSnapping=${this.enableSnapping} .mapView=${this.mapView} @fail=${this.addCommentFailed} @formReady=${this.onFormReady} @isActionPending=${this.showSubmitCancelButton} @success=${this.onCommentSubmitted} .selectedFeature=${this._currentFeature} .table=${this._relatedTable} ${o(this._createRelatedFeature)}></create-related-feature></calcite-panel></calcite-flow-item>`}async setSelectedFeatures(e){this._selectedFeature=e,await this.setCurrentFeature(this._selectedFeature.length?this._selectedFeature[0]:void 0)}async setCurrentFeature(e){if(this._currentFeature=e,e&&e.layer){let t=e.layer;t.title&&this.setSelectedLayer(t.id,t.title),this._currentFeatureId=e.attributes[t.objectIdField],this._getLayersConfig(t.id)?.comment&&t.relationships&&t.relationships.length>0&&await this.getRelatedTable()}else this._editableLayerIds.length>1&&(this.setSelectedLayer("",""),this.handlePrevLayersFilter()),this._currentFeatureId="";this._updateShareURL()}async highlightOnMap(e){if(this.clearHighlights(),e&&e.geometry&&e.layer&&e.layer.id!==void 0){let t=this.mapView&&await m(this.mapView,e.layer.id.toString());if(t){let i=Number(e.getObjectId());this._highlightHandle=this.mapView&&await x([i],t,this.mapView,!0,this.zoomToScale)}}this.updatingFeatureDetails(!1)}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}getActionToExpandCollapsePanel(){return l`<calcite-action .icon=${this._sidePanelCollapsed?"chevrons-up":"chevrons-down"} @click=${this.toggleSidePanel} slot=header-actions-end .text=${(this._sidePanelCollapsed?this._translations.expand:this._translations.collapse)||""}></calcite-action>`}async setMapView(){this.mapView&&await f(this.mapView),await this.getLayersToShowInList(),await this._updateFeatures(),this._editableLayerIds?.length===1?await this.renderFeaturesList():this._flowItems=["layer-list"],this.mapView&&(this.mapView.popupEnabled=!1,this._defaultCenter&&this._defaultLevel&&(await this.mapView.goTo({center:this._defaultCenter,zoom:this._defaultLevel}),this._defaultCenter=void 0,this._defaultLevel=void 0))}handleMapClick(){this._mapClickHandle&&this._mapClickHandle.remove(),this._mapClickHandle=this.reactiveUtils?.on(()=>this.mapView,"click",e=>{this.mapView&&(this.mapView.popupEnabled=!1),this.onMapClick(e)})}async onMapClick(e){if(!(this._flowItems[this._flowItems.length-1]==="feature-create"||this._flowItems[this._flowItems.length-1]==="add-comment")&&this.mapView){let t=await this.mapView.hitTest(e),i=[],s=[],a=[],h=!1;t.results.length>0&&t.results.forEach(d=>{d.type==="graphic"&&i.push(d.graphic)}),i.length>0&&(await this._setReportingGraphics(i),s=this._getNonReportingLayerGraphics(i)),this._mapImageryLayersId.length>0&&(a=await this._getIdentifiedGraphics(e.mapPoint),h=a.length>0);let r=s.concat(a);if(r.length>0){this.mapView.popupEnabled=!0;let d={features:r,location:e.mapPoint,updateLocationEnabled:!h};await this.mapView.openPopup(d)}}}async _setReportingGraphics(e){let t=e.filter(i=>{if(i.layer?.type==="feature"){let s=i.layer;return this._validLayers.includes(s)}else return!1});this._selectedLayer&&this._selectedFeature.length>0&&this._selectedLayer.id===t[0]?.layer?.id&&t[0].attributes[this._selectedLayer.objectIdField]===this._selectedFeature[0].attributes[this._selectedLayer.objectIdField]||t.length>0&&(await this.setSelectedFeatures(t),this._flowItems.length&&this._flowItems.includes("feature-details")?(this._flowItems=[...this._flowItems.slice(0,this._flowItems.indexOf("feature-details")+1)],await this.highlightOnMap(e[0])):this._flowItems=[...this._flowItems,"feature-details"])}_getNonReportingLayerGraphics(e){return e.filter(t=>{if(t.layer?.type==="feature"){let i=t.layer;return!this._validLayers.includes(i)&&i?.popupEnabled&&i?.id}else return!1})}async _getIdentifiedGraphics(e){let t=this.IdentifyParameters&&new this.IdentifyParameters({geometry:e,tolerance:3,mapExtent:this.mapView?.extent}),i=this._mapImageryLayersId.map(async h=>{let r=this.mapView&&await c(this.mapView,h);if(r?.url&&t)return await this.identify?.identify(r.url,t)}),s=await Promise.all(i),a=[];return s.forEach(h=>{h.results.forEach(r=>{let d=Object.keys(r.feature.attributes).map(w=>({fieldName:w,label:w}));r.feature.popupTemplate={title:r.layerName,content:[{type:"fields",fieldInfos:d}]},a.push(r.feature)})}),a}_getCount(){let e=(this._selectedFeatureIndex+1).toString(),t=this._selectedFeature.length.toString();return this._translations.indexOfTotal.replace("{{index}}",e).replace("{{total}}",t)}_updateFloorDefinitionExpression(e){let t=`${e?.floorInfo?.floorField} = '${this.floorLevel}'`,i=e.definitionExpression;e.definitionExpression=i&&i?.indexOf(this._floorExpression)>-1?i.replace(this._floorExpression,t):t,this._floorExpression=t}_getFormElements(){let e=this._selectedLayer;if(e?.floorInfo?.floorField&&this.floorLevel&&e?.formTemplate){let t=this._formElements.find(i=>i.id===e.id);(this._formElements.length===0||!t)&&this._formElements.push({id:e.id,orgElements:e.formTemplate.elements,orgExpressionInfos:e.formTemplate.expressionInfos})}}reduceToConfiguredLayers(e,t){return Object.keys(e).reduce((i,s)=>{let a=this.reportingOptions?this._getLayersConfig(s)?.visible:e[s].supportsAdd;return!t.includes(s)&&a&&i.push(s),i},[])}refreshLists(){setTimeout(()=>{this._layerList.value&&this._flowItems[this._flowItems.length-1]==="layer-list"&&this._layerList.value.refresh(),this._featureList.value&&this._featureList.value.refresh()},50)}async _updateFeatures(){for(let e of this._editableLayerIds){let t=this.mapView&&await m(this.mapView,e);t&&(await this._showMyFeaturesOnly(t),t.layer?.floorInfo?.floorField&&this.floorLevel&&this._updateFloorDefinitionExpression(t.layer))}}async _showMyFeaturesOnly(e){let t=(this.mapView?.map).portalItem.portal?.credential?.userId;if(t&&e){let i=e.layer.editFieldsInfo?.creatorField.toLowerCase();e.filter=this.showMyReportsOnly&&i&&this.FeatureFilter?new this.FeatureFilter({where:i+"='"+t+"'"}):null}}async getLayersToShowInList(){let e=this.mapView&&await S(this.mapView,!0),t=this.mapView&&await _(this.mapView),i=[];t?.forEach(s=>{s?.type==="feature"&&s?.editingEnabled&&s?.capabilities?.operations?.supportsAdd&&(e[s.id].supportsAdd=!0),s?.editingEnabled||i.push(s.id)}),this._editableLayerIds=this.reduceToConfiguredLayers(e,i),this._layerItemsHash=e}async renderFeaturesList(){this._flowItems=["feature-list"];let e={detail:this._editableLayerIds};await this.layerListLoaded(e),await this.setSelectedLayer(this._validLayers[0].id,this._validLayers[0]?.title||""),this.updateSortingOptions(),await this.handleSelectedLayersFilter(),this._urlParamsLoaded||(this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams())}_updateShareURL(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this._selectedLayerId?t.searchParams.set("layerid",this._selectedLayerId):t.searchParams.delete("layerid"),this._selectedFeature?.length?t.searchParams.set("oid",this._currentFeatureId):t.searchParams.delete("oid"),this._shareNode.value&&(this._shareNode.value.autoUpdateShareUrl=!1,this._shareNode.value.shareUrl=t.href)}async loadFeatureFromURLParams(){if(this.center&&this.level&&await this.mapView?.goTo({center:this.center.split(";").map(Number),zoom:this.level}),this.layerId&&this.objectId){let e=this.mapView&&await c(this.mapView,this.layerId);if(e){let t=this.mapView&&await C([Number(this.objectId)],e,[],!0,this.mapView.spatialReference);t?.length&&(await this.setSelectedFeatures(t),this._flowItems.length&&this._flowItems[this._flowItems.length-1]!=="feature-details"?this._flowItems=[...this._flowItems,"feature-details"]:this._flowItems=[...this._flowItems])}}}async handleSelectedLayersFilter(){if(this._selectedLayer){let e=this.layerExpressions?structuredClone(this.layerExpressions.filter(t=>t.id===this._selectedLayerId)):[];this._t9nLayerExpressions!=null&&this.handleLayerExpressionsT9n(e,this._t9nLayerExpressions),this._currentLayerExpressions=e,this.setActiveDefinitionExpressions()}}async handlePrevLayersFilter(){if(this._prevSelectedLayerId){let e=this.mapView&&await c(this.mapView,this._prevSelectedLayerId);e&&this._initDefExpressions&&(e.definitionExpression=this._initDefExpressions[this._prevSelectedLayerId])}}async resetFilterList(){await this._filterList?.forceReset(),this._selectedLayer!==void 0&&this._initDefExpressions&&(this._selectedLayer.definitionExpression=this._initDefExpressions[this._selectedLayerId],this._filterActive=!1)}setActiveDefinitionExpressions(){if(this._selectedLayer===void 0)return;let e=[];if(this._currentLayerExpressions&&this._currentLayerExpressions?.length>0){let t=this._currentLayerExpressions[0];for(let i of t.expressions){let{active:s,definitionExpression:a}=i;s&&a&&e.push(`(${a})`)}this._filterActive=e.length>0,this.updateFilterLayerDefExpression(e,t.operator)}}updateFilterLayerDefExpression(e,t){let i=this._initDefExpressions&&this._initDefExpressions[this._selectedLayerId],s=e?.length>0&&i?`(${e.join(t)}) AND (${i})`:e.length>0?e.join(t):i;this._selectedLayer&&(this._selectedLayer.definitionExpression=s)}setInitExpressions(){if(this._initDefExpressions={},this.mapView==null)return;let e=this.mapView.map;e.allLayers.concat(e.allTables).forEach(t=>{if(t.type==="map-image"&&!this._mapImageryLayersId.includes(t.id)){this._mapImageryLayersId.push(t.id);return}if(t.type!=="feature")return;let i=t;this._initDefExpressions&&(this._initDefExpressions[i.id]=i.definitionExpression||"")})}handleLayerExpressionsT9n(e,t){e?.forEach(i=>{let s=t?.find(a=>a.id===i.id);s!=null&&(i.title=s.title,i.expressions?.forEach(a=>{let h=s.expressions?.find(r=>r.id===a.id);h!=null&&(a.name=h.name)}))})}};I("crowdsource-reporter",g);export{g as CrowdsourceReporter};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as o}from"./
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import{a as o}from"./KO3ONQ7A.js";import{d as r}from"./PMMQB3WH.js";import"./CGC5HVLI.js";import"./ELWIFWTO.js";import{a as s}from"./LG5UWDJZ.js";import"./ULGNQG43.js";import"./RQHAO57B.js";import"./GU74TCNP.js";import"./4GN7SIYX.js";import"./MQBQ5D5G.js";import"./NUWXRXBH.js";import"./QFZD7GCJ.js";import"./3RYCYG6M.js";import"./IMFSUJYA.js";import"./R6NWJH2T.js";import"./7WGHDJ4F.js";import"./TZD5MGUT.js";import"./XKB4YYB6.js";import"./WYVS67DX.js";import"./BBWZXQIW.js";import"./ZBIVULLU.js";import"./VEFFB5HW.js";import"./F527WKRH.js";import"./25BPRYOW.js";import"./VAQT7ARN.js";import"./GBVJR7G4.js";import"./N7CCSN2V.js";import"./D5LUMTLN.js";var p=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},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:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:s.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{scope:"/properties/isSharedUpdate",type:"Control",rule:{effect:s.HIDE,condition:{scope:"/properties/isSharedUpdate",schema:{const:!1}}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],disabled:[!1,!r("platform:portal:user:addExternalMembersToGroup",t).access,!r("platform:portal:user:addExternalMembersToGroup",t).access]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}]}),m=async(e,l,t)=>Object.assign({},o("hubViewGroup",t));export{m as buildDefaults,p as buildUiSchema};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as b}from"./
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import{a as b}from"./ETN3A2QC.js";import"./KWP3A7C6.js";import"./IFJSYBIO.js";import{b as m}from"./PSUXO4NH.js";import{A as w,B as i,C as h,h as f,i as e,j as p,w as n,x as r,y as g}from"./W3IPZTUY.js";import"./D5LUMTLN.js";var R=f`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the 'License');
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as h}from"./
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import{a as h}from"./4TZFTGP5.js";function i(t){if(typeof t=="string")return t.replace(/\/sharing\/rest\/?$/,"");if(typeof t=="object"){let e=t.portalSelf||t,{portalHostname:s,urlKey:o,customBaseUrl:n}=e;if(s||o&&n)return e.isPortal?`https://${e.portalHostname}`:`https://${e.urlKey}.${e.customBaseUrl}`}return i(h(t))}function _(t){let r="enterprise";return t.includes("arcgis.com")&&(r="production"),(t.includes("qaext.arcgis.com")||t.includes("mapsqa.arcgis.com"))&&(r="qaext"),(t.includes("devext.arcgis.com")||t.includes("mapsdev.arcgis.com"))&&(r="devext"),r}function S(t,r){return`${i(r)}/home/item.html?id=${t}`}var a="/apps/sites";function E(t,r){let e=i(r),s;/(devext|mapsdevext)\.arcgis\.com/.test(e)?s="https://hubdevcdn.arcgis.com/opendata-ui/assets":/(qaext|mapsqa)\.arcgis\.com/.test(e)?s="https://hubqacdn.arcgis.com/opendata-ui/assets":/(www|maps)\.arcgis\.com/.test(e)?s="https://hubcdn.arcgis.com/opendata-ui/assets":s=`${e}${a}`;let o=t.startsWith("/")?"":"/";return[s,t].join(o)}function R(t){let{host:r,path:e,query:s}=t,o=r.endsWith("/")?r:`${r}/`,n=new URL(e,o);return n.search=f(s),n.toString()}function f(t={}){let r=Object.keys(t).filter(e=>t[e]!==void 0).reduce((e,s)=>(e[s]=t[s],e),{});return new URLSearchParams(r).toString()}var u={devext:"https://hubdevcdn.arcgis.com",qaext:"https://hubqacdn.arcgis.com",www:"https://hubcdn.arcgis.com"};function q(t){if(t.isPortal)return`${i(t)}${a}`;{let r=t.portalHostname.split(".")[0];return`${u[r]||u.www}/opendata-ui/assets`}}function c(t){return`${i(t)}/sharing/rest`}function N(t){return t=t.toLowerCase(),t.includes("//")&&(t=t.split("//")[1]),t}function p(t){let r;return t.match(/(qaext|\.mapsqa)\.arcgis.com/)?r="https://hubqa.arcgis.com":t.match(/(devext|\.mapsdevext)\.arcgis.com/)?r="https://hubdev.arcgis.com":t.match(/(www|\.maps)\.arcgis.com/)&&(r="https://hub.arcgis.com"),r}function K(t){if(t.isPortal)throw new Error("Hub Url is not available in ArcGIS Enterprise");return p(t.portalHostname)}var V=(t,r,e)=>{let{id:s,access:o}=t,n=`${c(r)}/content/items/${s}`,l=new URLSearchParams({f:"json"});return o!=="public"&&e&&l.append("token",e),`${n}?${l.toString()}`};var m=/\/(map|feature)server/i,Q=t=>m.test(t);export{R as a,i as b,_ as c,q as d,c as e,N as f,p as g,K as h,S as i,V as j,E as k,Q as l};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{e,f as t}from"./
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import{e,f as t}from"./N7CCSN2V.js";import"./D5LUMTLN.js";var n={type:"object",properties:{selectionMode:{type:"string",enum:["dynamic","manual"],default:"dynamic"},entityIds:{type:"array",items:{type:"string"},default:[]},eventIds:{type:"array",items:{type:"string"},default:[]},corners:{type:"string",enum:["square","round"],default:"square"},shadow:{type:"string",enum:["none","low","medium","heavy"],default:"none"},showAdditionalInfo:{type:"boolean",default:!0},access:{type:"array",items:{type:"string",enum:["private","org","public"]},default:[]},tags:e,categories:t,titleHeading:{type:"string",enum:["h1","h2","h3","h4","h5","h6"],default:"h4"},openIn:{type:"string",enum:["same","new"],default:"same"},layout:{type:"string",enum:["list","map","calendar"],default:"list"}}};export{n as EventGalleryCardSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import"./
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import"./D5LUMTLN.js";var i=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:"shared.sections.discussionSettings.moderation.label",elements:[{labelKey:"shared.fields.discussable.label",scope:"/properties/isDiscussable",type:"Control",options:{control:"hub-field-input-tile-select",labels:["{{shared.fields.discussable.enabled.label:translate}}",`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:["{{shared.fields.discussable.disabled.label:translate}}",`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],layout:"horizontal",styles:{"max-width":"45rem"},type:"radio"}}]}]});export{i 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.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as o}from"./
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import{a as o}from"./QU74S4RI.js";import{a as n}from"./PMUI6RJ4.js";import{a as s}from"./HH7VHJVF.js";import"./4TZFTGP5.js";import"./4B5UZHGF.js";import"./3FBYTHDB.js";import"./CGC5HVLI.js";import"./ELWIFWTO.js";import{a}from"./LG5UWDJZ.js";import"./ULGNQG43.js";import"./RQHAO57B.js";import"./GU74TCNP.js";import"./4GN7SIYX.js";import"./MQBQ5D5G.js";import"./NUWXRXBH.js";import"./QFZD7GCJ.js";import"./3RYCYG6M.js";import"./IMFSUJYA.js";import"./R6NWJH2T.js";import"./7WGHDJ4F.js";import"./TZD5MGUT.js";import"./XKB4YYB6.js";import"./WYVS67DX.js";import"./BBWZXQIW.js";import"./ZBIVULLU.js";import"./VEFFB5HW.js";import"./F527WKRH.js";import"./25BPRYOW.js";import"./VAQT7ARN.js";import"./GBVJR7G4.js";import"./N7CCSN2V.js";import"./D5LUMTLN.js";async function b(e,r,t){let l=await n(`${e}.content`,t);return l[0].rules=[{effect:a.SHOW,conditions:[{scope:"/properties/selectionMode",schema:{const:"dynamic"}}]}],delete l[0].options.helperText,{type:"Layout",elements:[{type:"Section",options:{section:"accordion",selectionMode:"single"},elements:[{type:"Section",label:`{{${e}.content.label:translate}}`,options:{section:"accordionItem",expanded:!0},elements:[{scope:"/properties/selectionMode",type:"Control",options:{control:"hub-field-input-radio-group",enum:{i18nScope:`${e}.content.selectionMode`},width:"full"}},{label:`{{${e}.content.access.label:translate}}`,scope:"/properties/access",type:"Control",options:{control:"hub-field-input-tile-select",descriptions:[`{{${e}.content.access.private.description:translate}}`,`{{${e}.content.access.org.description:translate}}`,`{{${e}.content.access.public.description:translate}}`],icons:["users","organization","globe"],labels:[`{{${e}.content.access.private.label:translate}}`,`{{${e}.content.access.org.label:translate}}`,`{{${e}.content.access.public.label:translate}}`],type:"checkbox"},rules:[{effect:a.SHOW,conditions:[{scope:"/properties/selectionMode",schema:{const:"dynamic"}}]}]},{label:`{{${e}.content.tags.label:translate}}`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await s(r.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"},rules:[{effect:a.SHOW,conditions:[{scope:"/properties/selectionMode",schema:{const:"dynamic"}}]}]},...l,{scope:"/properties/entityIds",type:"Control",options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:[o(`${e}.content.entityIds`,"organization","item",{user:t.currentUser,collectionNames:["site","initiative","project"],filters:[],context:t})],facets:[{label:"{{facets.from.label:translate}}",key:"from",display:"single-select",operation:"OR",options:[{label:"{{facets.from.myContent.label:translate}}",key:"myContent",selected:!0,predicates:[{owner:t.currentUser.username}]},{label:"{{facets.from.myOrganization.label:translate}}",key:"myOrganization",selected:!1,predicates:[{orgId:t.currentUser.orgId}]}]},{label:"{{facets.sharing.label:translate}}",key:"access",field:"access",display:"multi-select",operation:"OR"}],width:"full",kind:"brand",appearance:"solid"},rules:[{effect:a.SHOW,conditions:[{scope:"/properties/selectionMode",schema:{const:"dynamic"}}]}]},{scope:"/properties/eventIds",type:"Control",options:{control:"hub-field-input-gallery-picker",targetEntity:"event",catalogs:[{schemaVersion:1,title:"{{catalogs.event.label:translate}}",scopes:{event:{targetEntity:"event",filters:[{predicates:[{orgid:t.currentUser.orgId}]}]}},collections:[{key:"event",label:"{{catalogs.event.collections.event.label:translate}}",targetEntity:"event",include:[],scope:{targetEntity:"event",filters:[{predicates:[]}]}}]}],facets:[{label:"{{facets.from.label:translate}}",key:"from",display:"single-select",operation:"OR",options:[{label:"{{facets.from.myContent.label:translate}}",key:"myContent",selected:!0,predicates:[{owner:t.currentUser.id}]},{label:"{{facets.from.myOrganization.label:translate}}",key:"myOrganization",selected:!1,predicates:[{orgId:t.currentUser.orgId}]}]},{label:"{{facets.sharing.label:translate}}",key:"access",display:"multi-select",operation:"OR",options:[{label:"{{facets.sharing.public.label:translate}}",key:"public",selected:!1,predicates:[{access:"public"}]},{label:"{{facets.sharing.private.label:translate}}",key:"private",selected:!1,predicates:[{access:"private"}]},{label:"{{facets.sharing.organization.label:translate}}",key:"org",selected:!1,predicates:[{access:"org"}]}]}],width:"full",kind:"brand",appearance:"solid"},rules:[{effect:a.SHOW,conditions:[{scope:"/properties/selectionMode",schema:{const:"manual"}}]}]},{type:"Slot",options:{name:"add-content-slot"}}]},{type:"Section",label:`{{${e}.appearance.label:translate}}`,options:{section:"accordionItem"},elements:[{label:`{{${e}.appearance.titleHeading.label:translate}}`,scope:"/properties/titleHeading",type:"Control",options:{control:"hub-field-input-radio-group",enum:{i18nScope:`${e}.appearance.titleHeading`},width:"full",tooltip:{label:`{{${e}.appearance.titleHeading.tooltip:translate}}`}}},{label:`{{${e}.appearance.corners.label:translate}}`,scope:"/properties/corners",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.appearance.corners`}}},{label:`{{${e}.appearance.shadow.label:translate}}`,scope:"/properties/shadow",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.appearance.shadow`}}},{label:`{{${e}.appearance.showAdditionalInfo.label:translate}}`,scope:"/properties/showAdditionalInfo",type:"Control",options:{control:"hub-field-input-switch",layout:"inline-space-between"}},{label:`{{${e}.appearance.layout.label:translate}}`,options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.appearance.layout`}},scope:"/properties/layout",type:"Control"}]},{type:"Section",label:`{{${e}.options.label:translate}}`,options:{section:"accordionItem"},elements:[{label:`{{${e}.options.openIn.label:translate}}`,scope:"/properties/openIn",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.options.openIn`}}},{type:"Notice",options:{notice:{configuration:{id:"open-in-notice",noticeType:"notice",closeable:!1,kind:"brand",scale:"m"},title:`{{${e}.options.openIn.notice.title:translate}}`,body:`{{${e}.options.openIn.notice.body:translate}}`,autoShow:!0,actions:[{label:`{{${e}.options.openIn.notice.link:translate}}`,ariaLabel:`{{${e}.options.openIn.notice.linkAriaLabel:translate}}`,icon:"launch",href:"https://www.w3.org/TR/WCAG20-TECHS/G200.html",target:"_blank"}]}}}]}]}]}}export{b 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.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a,b}from"./
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import{a,b}from"./3RYCYG6M.js";import"./VAQT7ARN.js";import"./GBVJR7G4.js";import"./N7CCSN2V.js";import"./D5LUMTLN.js";export{a as SurveyEditorTypes,b as SurveySchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
3
|
+
v1.1.0-next.20250811 */
|
4
4
|
var n="'Avenir Next','Avenir','Helvetica Neue',sans-serif";function t(e){return e||n}export{t 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.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import a from"./JZPLLKMA.js";import{a as v}from"./G4ENZOQI.js";import{h as O,i as A}from"./EAF3VHRN.js";export default $arcgis.t(([{a:N,b:V}])=>{function J(e,n,l){return t=>{let a=t?.layer?.type;if(a==="feature"||a==="group"){let s=D(n,t,l).then(o=>o);s&&e.push(s);let i=o=>{let r=D(n,o,l).then(u=>u);r&&e.push(r)};t.children.forEach(o=>{i(o),o?.children?.length>0&&o.children.forEach(r=>{i(r),r?.children?.length>0&&r.children.forEach(u=>{i(u)})})})}}}async function D(e,n,l){try{let t=n?.layer?.type==="group",a=n?.layer?.layers?.some(d=>d.visible),s=n?.layer?.layers?.every(d=>!d?.legendEnabled);await l.whenOnce(()=>e?.state==="ready"),!t||t&&a?t&&s?await l.whenOnce(()=>n?.layer?.loaded):await l.whenOnce(()=>n?.ready):await l.whenOnce(()=>n?.legendElements);let i=n?.legendElements?.[0],o=new Map,r=n.layer,u=await e?.view?.whenLayerView(r),c=r.renderer?.field??"";i!==void 0&&i?.infos?.forEach(d=>{if(d.type==="symbol-table"){let p=[];d.infos.forEach(h=>{let E={count:null,selected:!1,legendElementInfo:h};p.push(E)});let y={count:null,selected:!1,legendElementInfo:d,nestedInfos:p};o.set(d.title,y)}else{let p={count:null,selected:!1,legendElementInfo:d};o.set(d.label??r.id,p)}});let f=[];return u?Promise.resolve({activeLayerInfo:n,title:u.layer.title,categories:o,field:c,queryExpressions:f,totalCount:null,fLayerView:u,legendElement:i}):Promise.resolve(null)}catch{return await Promise.resolve(null)}}async function _(e,n){let l={},t=[];e.activeLayerInfos.forEach(J(t,e,n));try{return(await Promise.all(t)).forEach(a=>{let s=a?.activeLayerInfo?.layer?.id;l[s]=a}),Promise.resolve(l)}catch{return await Promise.reject(new Error("Failed to generate data"))}}function ee(e){return Array.from(e,n=>n[1])}function ne(e,n,l,t,a){if(t)return t?.nestedInfos?.[a];let s="label"in l&&l?.label?l?.label:n?.id;return e?.categories?.get(s)}function re(e){return N?.data?.[e?.id]}async function te(e,n,l,t,a){let{queryExpressions:s,fLayerView:i}=e;K(e,n,l,a);let o=s.every(f=>f&&f.includes("<>"))?" AND ":" OR ",r=s.join(o),u=i?.filter?.timeExtent??i?.featureEffect?.filter?.timeExtent??null,{type:c}=t;if(c==="filter")i.filter=await A({where:r,timeExtent:u});else if(t.effect){let{includedEffect:f,excludedEffect:d}=t.effect,p=await v(d,i,"excludedEffect"),y=await v(f,i,"includedEffect");i.featureEffect=await O({filter:await A({where:r,timeExtent:u}),includedEffect:y,excludedEffect:p})}return await Promise.resolve()}function q(e,n){let l=n?n?.layer?.renderer?.authoringInfo:null,t=l?l.fields:null,a=[];if(!t)return"";if(Object.hasOwn(e,"value"))return t.forEach(s=>{if(e.value===s)return;let i=`(${e.value} > ${s} OR (${s} IS NULL AND ${e.value} IS NOT NULL AND (${e.value} > 0 OR ${e.value} < 0)))`;a.push(i)}),a.join(" AND ");{let s=[];t.forEach(o=>{s.push(`${o} = 0`)});let i=[];if(t.length>2){t.forEach(r=>{t.forEach(u=>{if(r===u)return;let c=[];t.forEach(f=>{r===f||u===f||c.push(`${r} = ${u} AND (${r} > ${f} OR ${r} >= ${f})`)}),i.push(`(${c.join(" AND ")})`)})});let o=[];return t.forEach(r=>{o.push(`${r} IS NULL`)}),`(${s.join(" AND ")}) OR (${i.join(" OR ")}) OR (${o.join(" AND ")})`}else{let o=[];t.forEach(u=>{t.forEach(c=>{u!==c&&(o.push(`${u} = ${c}`),o.push(`(${s.join(" AND ")})`))})});let r=[];return t.forEach(u=>{t.forEach(c=>{u!==c&&r.push(`(${u} = 0 AND ${c} IS NULL) OR (${u} IS NULL AND ${c} IS NULL)`)})}),`(${o.join(" OR ")}) OR (${r.join(" OR ")})`}}}function K(e,n,l,t){let{field:a,legendElement:s,categories:i,fLayerView:o}=e,r=e?.queryExpressions;t&&Array.from(e.categories).map(h=>h[1]).forEach(h=>{h.nestedInfos?.every(E=>!E.selected)&&h.nestedInfos?.forEach(E=>{let $=a?`${a} = '${E.legendElementInfo.value}'`:null,m=$?r.indexOf($):-1;$&&m!==-1&&r.splice(m,1)})});let u=s?.infos,c=j(o),f=c?q(n,o):x(n,a,l,s,u??[],""),d=i?t?i.get(t.title)?.nestedInfos?.[l]:i.get(n.label??o?.layer?.id):null;d&&(d.selected=!d?.selected);let p=u&&u.length===1,y=r.indexOf(f);if(c){let h=r.indexOf(f);r.length===0||h===-1?(r&&r[0]==="1=0"&&r.splice(0,1),r.push(f)):r&&r.length===1&&f===r[0]?r[0]="1=0":r&&r.length===1||r.length===1&&f!==r[0]&&r[0]==="1=0"?r[0]=f:r.length===1&&f===r[0]&&r[0]==="1=0"?r[0]=null:r.splice(h,1),r.join(" OR ")}else r.length===0||y===-1?(r&&r[0]==="1=0"&&r.splice(0,1),r.push(f)):r&&r.length===1&&f===r[0]&&!p?r[0]="1=0":r&&r.length===1&&!p||r.length===1&&f!==r[0]&&r[0]==="1=0"&&!p?r[0]=f:r.length===1&&f===r[0]&&r[0]==="1=0"&&!p?r[0]=null:r.splice(y,1);if(t){let h=[];Array.from(e.categories).map(E=>E[1]).forEach(E=>{E.nestedInfos?.every($=>!$.selected)&&E.nestedInfos?.forEach($=>{a&&`${a} = '${$.legendElementInfo.value}'`&&h.push(`${a} = '${$.legendElementInfo.value}'`)})}),h.forEach(E=>{r.includes(E)||r.push(E)})}}function x(e,n,l,t,a,s){let{value:i}=e;if(t?.type==="symbol-table")if(!Object.hasOwn(e,"value")||Array.isArray(e.value)&&a?.length===1){if(Object.hasOwn(a?.[0],"value")&&Array.isArray(a?.[0].value)&&Object.hasOwn(a?.[a.length-2],"value")&&Array.isArray(a?.[a.length-2].value))return s?`((${n}/${s}) > ${a?.[0].value[1]}) OR ((${n}/${s}) < ${a?.[a.length-2].value[0]}) OR ${s} = 0 OR ${s} IS NULL`:`${n} > ${a?.[0].value[1]} OR ${n} < ${a?.[a.length-2].value[0]} OR ${n} IS NULL`;if(a?.length===1)return"1=0";{let o=[];a?.forEach(u=>{if(u?.value){let{value:c}=u,f=c.indexOf("'")!==-1?c.split("'").join("''"):null,d=f?`${n} <> '${f}'`:isNaN(c)||typeof c=="string"&&!c.trim()?`${n} <> '${c}'`:`${n} <> ${c} AND ${n} <> '${c}'`;o.push(d)}});let r=o.join(" AND ");return n&&r?`${r} OR ${n} IS NULL`:""}}else{let o=i.indexOf("'")!==-1?i.split("'").join("''"):null,r=Array.isArray(e.value),u=a&&a.length-1===l,c=!Object.hasOwn(a?.[a.length-1],"value"),f=a&&a.length-2===l;return r?s?u||c&&f?`(${n}/${s}) >= ${i[0]} AND (${n}/${s}) <= ${e.value[1]}`:`(${n}/${s}) > ${i[0]} AND (${n}/${s}) <= ${e.value[1]}`:u||c&&f?`${n} >= ${i[0]} AND ${n} <= ${i[1]}`:`${n} > ${i[0]} AND ${n} <= ${i[1]}`:a?.length===1&&n?isNaN(i)||!i.trim().length?`${n} <> '${i}'`:`${n} <> ${i} OR ${n} <> '${i}'`:o?`${n} = '${o}'`:isNaN(i)||!i.trim().length?`${n} = '${i}'`:`${n} = ${i} OR ${n} = '${i}'`}else return""}function ae(e){return Array.isArray(e)?e.every(n=>!n.selected):e&&Array.from(e.categories.entries()).every(n=>!n[1].selected)&&e.queryExpressions[0]!=="1=0"}function j(e){return e?.layer?.renderer?.authoringInfo?.type==="predominance"}function le(e){return e?.legendElements[1]?.type==="relationship-ramp"}function se(e,n,l){let t=e.layer?.renderer?.field,a=n?.type,s=e?.layerView,i=s?.layer?.renderer?.classBreakInfos,o=s?.layer?.renderer?.uniqueValueInfos&&t,r=a==="size-ramp",u=a==="color-ramp",c=a==="opacity-ramp",f=a==="heatmap-ramp",d=s&&i&&i.length>1,p=s?.layer?.renderer?.authoringInfo?.type,y=p==="class-breaks-color",h=p==="class-breaks-size",E=n?.infos?.length===1&&!t,$=p==="relationship"&&n?.type!=="size-ramp"&&n?.type!=="symbol-table",m=e?.layer?.type==="feature",g=m&&t&&!u&&!r&&d,I=!!(m&&t&&!u&&!r&&!d),L=!!(I||j(s)&&!r||y&&t||h&&t||E&&!t&&t!==null||$||o),k=e?.layer?.featureReduction&&e?.legendElements?.[l]?.type==="size-ramp",R=n?.type==="symbol-table"&&n?.infos?.length===1,z=!e?.legendElements.every(w=>w.type!=="color-ramp"),F=!e?.legendElements.every(w=>w.type!=="size-ramp"),C=R&&z,T=R&&F,Q=n?.infos?.every(w=>typeof w.value=="number"),B=e?.legendElements?.[0]?.type==="symbol-table"&&e?.legendElements?.[1]?.type==="color-ramp",G=p==="dot-density",H=S(e?.layer,t);return m&&!k&&!c&&!f&&!C&&!T&&!Q&&!B&&!G&&H?i?g||L:I||L:!1}function ie(e){return e.queryExpressions=[],e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.categories.forEach(n=>{n.selected=!1}),e}function oe(e,n){e.categories.get(n)?.nestedInfos?.forEach(s=>{let i=`${e.field} = '${s.legendElementInfo.value}'`,o=e.queryExpressions.indexOf(i);o!==-1&&e.queryExpressions.splice(o,1),s.selected=!1});let l=[],t=Array.from(e.categories).map(s=>s[1]);t.forEach(s=>{s.nestedInfos?.every(i=>!i.selected)&&s.nestedInfos?.forEach(i=>{l.push(`${e.field} = '${i.legendElementInfo.value}'`)})}),l.forEach(s=>{e.queryExpressions.includes(s)||e.queryExpressions.push(s)});let a=e.queryExpressions.join(" OR ");return t.every(s=>s.nestedInfos?.every(i=>!i.selected))?(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.queryExpressions=[]):(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=a),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect.filter.where=a)),e}async function fe(e,n,l){let t=e.fLayerView.createQuery();if(l)if(l.nestedInfos.every(a=>!a.selected)){let a=l.nestedInfos.map(s=>`${e.field} = '${s.legendElementInfo.value}'`).join(" OR ");t.where=a}else{let a=l.nestedInfos.filter(s=>s.selected).map(s=>`${e.field} = '${s.legendElementInfo.value}'`).join(" OR ");t.where=a}else{let a=e.queryExpressions.join(" OR ");t.where=a}try{let{extent:a}=await e.fLayerView.layer.queryExtent(t);await n.goTo(a)}catch{}}function ce(e){return e.map(n=>n?.count).reduce((n,l)=>n+l)}function ue(e){return e.map(n=>n?.nestedInfos?.map(l=>l.count).reduce((l,t)=>l+t)).reduce((n,l)=>n+l)}async function b(e,n,l,t,a,s,i,o){if(!n||!S(n?.layer,l))return;let r=n?.layer?.type==="feature"?n.createQuery():null,u=j(n)?q(t,n):t.type?x(i,l,o,t,t.infos):x(t,l,a,s,s.infos);r&&u&&(r.where=u==="1=0"?"1=1":u,e&&(r.geometry=e));try{let c=r?await n.queryFeatureCount(r):null;return Promise.resolve({[t.label??n?.layer?.id]:c})}catch(c){console.error("FAILURE AT 'getInfoCount': ",c)}return await Promise.resolve(null)}async function de(e,n){let l={...n},{activeLayerInfos:t}=e,a=e?.view?.extent,s={},i={};t.forEach(async o=>{let r=o.legendElements[0],u=o.layer,c=n[o?.layer?.id]?.fLayerView,f=u.renderer?.field,d=[];i[o.layer.id]=[],r?.infos?.forEach((y,h)=>{if(r.infos?.every(E=>E.type==="symbol-table")){let E=[];y.infos.forEach(($,m)=>{let g=b(a,c,f,y,h,r,$,m);E.push(g)}),i[o.layer.id].push(E)}else d.push(b(a,c,f,y,h,r)),i[o.layer.id]=d});let p=y=>{let h=[],E=y.legendElements[0],$=y.layer,m=n[y?.layer?.id]?.fLayerView,g=$.renderer?.field;E?.infos?.forEach((I,L)=>h.push(b(a,m,g,I,L,E))),i[y.layer.id]=h};o.children.forEach(async y=>{p(y),y?.children?.length>0&&y.children.forEach(h=>{p(h),h?.children?.length>0&&h.children.forEach(E=>{p(E)})})})});for(let o in i){let r=s[o];r||(r=s[o]={});let u=await Promise.all(i[o]);if(u.every(c=>Array.isArray(c))){let c=await Promise.all(u.map(async f=>(await Promise.all(f)).map(d=>d&&Object.values(d)[0])));r[o]=c,s[o]={...r[o]}}else{let c={};u.forEach(f=>{if(!f)return;let d=Object.keys(f)[0];c[d]=f[d]}),o&&(r[o]=c),s[o]={...r[o]}}}return t.forEach(o=>{let r=n[o.layer.id],u=o.layer.id;r?.categories?.forEach((f,d)=>{let p=Array.from(r?.categories).findIndex(y=>y[0]===d);if(f?.nestedInfos)f?.nestedInfos.forEach((y,h)=>{let E=s?.[o?.layer?.id]?.[p]?.[h];y.count=isNaN(E)?null:E});else{let y=s?.[u]?.[d];f.count=isNaN(y)?null:y}});let c=f=>{let d=f.layer.id;n[d]?.categories?.forEach((p,y)=>{let h=s?.[d]?.[y];p.count=h})};o?.children?.forEach(f=>{c(f),f?.children?.length>0&&f.children.forEach(d=>{c(d),d?.children?.length>0&&d.children.forEach(p=>{c(p)})})})}),await Promise.resolve(l)}function ye(e,n){return e?.nestedInfos?.[n]}function he(e){return Array.from(e).map(n=>n[1]).every(n=>!!n?.nestedInfos)}function Ee(e){return!!e?.legendElements?.[0]?.infos?.every?.(n=>n?.type==="symbol-table")}function pe(e,n){if(typeof n?.title=="string")return e?.categories?.get(n?.title)}function $e(e){let n="calcite-mode-",l=`${n}light`,t=`${n}dark`;return e.classList.contains(t)?t:l}function me(e){if(e.layerId&&e.intLegendLayerData){let n=e.layerId,l=e.intLegendLayerData,t={...N.data,[n]:l};V.set("data",t)}}function ge(e,n){let{type:l}=e;l==="filter"?M(n):l==="effect"&&W(e,n)}function M(e){e?.allLayerViews?.filter(n=>n?.layer?.type==="feature")?.forEach(n=>{let l=n,t=P(l);l.filter=t,l.set("featureEffect",null)})}function W(e,n){n?.allLayerViews?.filter(l=>l?.layer?.type==="feature").forEach(async l=>{let t=l;if(e?.effect&&t){let{includedEffect:a,excludedEffect:s}=e.effect,i=await v(s,t,"excludedEffect"),o=await v(a,t,"includedEffect"),r=P(t);t.featureEffect=await O({filter:r,includedEffect:o,excludedEffect:i}),t.set("filter",null)}})}function P(e){return e?.filter||e?.featureEffect?.filter}function S(e,n){let l=e?.fields,t=l&&l.map(a=>a.name);return n?t&&t.includes(n):!0}function we(e){let n=[];return e.forEach(l=>U(l,n)),n}function U(e,n){n.push(e),e.children&&e.children.length>0&&e.children.forEach(l=>{U(l,n)})}return{a:D,b:_,c:ee,d:ne,e:re,f:te,g:ae,h:le,i:se,j:ie,k:oe,l:fe,m:ce,n:ue,o:de,p:ye,q:he,r:Ee,s:pe,t:$e,u:me,v:ge,w:we}},a)
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import a from"./WL2QS77G.js";import{a as v}from"./PJ4OOX6H.js";import{h as O,i as A}from"./PDR2NMR5.js";export default $arcgis.t(([{a:N,b:V}])=>{function J(e,n,l){return t=>{let a=t?.layer?.type;if(a==="feature"||a==="group"){let s=D(n,t,l).then(o=>o);s&&e.push(s);let i=o=>{let r=D(n,o,l).then(u=>u);r&&e.push(r)};t.children.forEach(o=>{i(o),o?.children?.length>0&&o.children.forEach(r=>{i(r),r?.children?.length>0&&r.children.forEach(u=>{i(u)})})})}}}async function D(e,n,l){try{let t=n?.layer?.type==="group",a=n?.layer?.layers?.some(d=>d.visible),s=n?.layer?.layers?.every(d=>!d?.legendEnabled);await l.whenOnce(()=>e?.state==="ready"),!t||t&&a?t&&s?await l.whenOnce(()=>n?.layer?.loaded):await l.whenOnce(()=>n?.ready):await l.whenOnce(()=>n?.legendElements);let i=n?.legendElements?.[0],o=new Map,r=n.layer,u=await e?.view?.whenLayerView(r),c=r.renderer?.field??"";i!==void 0&&i?.infos?.forEach(d=>{if(d.type==="symbol-table"){let p=[];d.infos.forEach(h=>{let E={count:null,selected:!1,legendElementInfo:h};p.push(E)});let y={count:null,selected:!1,legendElementInfo:d,nestedInfos:p};o.set(d.title,y)}else{let p={count:null,selected:!1,legendElementInfo:d};o.set(d.label??r.id,p)}});let f=[];return u?Promise.resolve({activeLayerInfo:n,title:u.layer.title,categories:o,field:c,queryExpressions:f,totalCount:null,fLayerView:u,legendElement:i}):Promise.resolve(null)}catch{return await Promise.resolve(null)}}async function _(e,n){let l={},t=[];e.activeLayerInfos.forEach(J(t,e,n));try{return(await Promise.all(t)).forEach(a=>{let s=a?.activeLayerInfo?.layer?.id;l[s]=a}),Promise.resolve(l)}catch{return await Promise.reject(new Error("Failed to generate data"))}}function ee(e){return Array.from(e,n=>n[1])}function ne(e,n,l,t,a){if(t)return t?.nestedInfos?.[a];let s="label"in l&&l?.label?l?.label:n?.id;return e?.categories?.get(s)}function re(e){return N?.data?.[e?.id]}async function te(e,n,l,t,a){let{queryExpressions:s,fLayerView:i}=e;K(e,n,l,a);let o=s.every(f=>f&&f.includes("<>"))?" AND ":" OR ",r=s.join(o),u=i?.filter?.timeExtent??i?.featureEffect?.filter?.timeExtent??null,{type:c}=t;if(c==="filter")i.filter=await A({where:r,timeExtent:u});else if(t.effect){let{includedEffect:f,excludedEffect:d}=t.effect,p=await v(d,i,"excludedEffect"),y=await v(f,i,"includedEffect");i.featureEffect=await O({filter:await A({where:r,timeExtent:u}),includedEffect:y,excludedEffect:p})}return await Promise.resolve()}function q(e,n){let l=n?n?.layer?.renderer?.authoringInfo:null,t=l?l.fields:null,a=[];if(!t)return"";if(Object.hasOwn(e,"value"))return t.forEach(s=>{if(e.value===s)return;let i=`(${e.value} > ${s} OR (${s} IS NULL AND ${e.value} IS NOT NULL AND (${e.value} > 0 OR ${e.value} < 0)))`;a.push(i)}),a.join(" AND ");{let s=[];t.forEach(o=>{s.push(`${o} = 0`)});let i=[];if(t.length>2){t.forEach(r=>{t.forEach(u=>{if(r===u)return;let c=[];t.forEach(f=>{r===f||u===f||c.push(`${r} = ${u} AND (${r} > ${f} OR ${r} >= ${f})`)}),i.push(`(${c.join(" AND ")})`)})});let o=[];return t.forEach(r=>{o.push(`${r} IS NULL`)}),`(${s.join(" AND ")}) OR (${i.join(" OR ")}) OR (${o.join(" AND ")})`}else{let o=[];t.forEach(u=>{t.forEach(c=>{u!==c&&(o.push(`${u} = ${c}`),o.push(`(${s.join(" AND ")})`))})});let r=[];return t.forEach(u=>{t.forEach(c=>{u!==c&&r.push(`(${u} = 0 AND ${c} IS NULL) OR (${u} IS NULL AND ${c} IS NULL)`)})}),`(${o.join(" OR ")}) OR (${r.join(" OR ")})`}}}function K(e,n,l,t){let{field:a,legendElement:s,categories:i,fLayerView:o}=e,r=e?.queryExpressions;t&&Array.from(e.categories).map(h=>h[1]).forEach(h=>{h.nestedInfos?.every(E=>!E.selected)&&h.nestedInfos?.forEach(E=>{let $=a?`${a} = '${E.legendElementInfo.value}'`:null,m=$?r.indexOf($):-1;$&&m!==-1&&r.splice(m,1)})});let u=s?.infos,c=j(o),f=c?q(n,o):x(n,a,l,s,u??[],""),d=i?t?i.get(t.title)?.nestedInfos?.[l]:i.get(n.label??o?.layer?.id):null;d&&(d.selected=!d?.selected);let p=u&&u.length===1,y=r.indexOf(f);if(c){let h=r.indexOf(f);r.length===0||h===-1?(r&&r[0]==="1=0"&&r.splice(0,1),r.push(f)):r&&r.length===1&&f===r[0]?r[0]="1=0":r&&r.length===1||r.length===1&&f!==r[0]&&r[0]==="1=0"?r[0]=f:r.length===1&&f===r[0]&&r[0]==="1=0"?r[0]=null:r.splice(h,1),r.join(" OR ")}else r.length===0||y===-1?(r&&r[0]==="1=0"&&r.splice(0,1),r.push(f)):r&&r.length===1&&f===r[0]&&!p?r[0]="1=0":r&&r.length===1&&!p||r.length===1&&f!==r[0]&&r[0]==="1=0"&&!p?r[0]=f:r.length===1&&f===r[0]&&r[0]==="1=0"&&!p?r[0]=null:r.splice(y,1);if(t){let h=[];Array.from(e.categories).map(E=>E[1]).forEach(E=>{E.nestedInfos?.every($=>!$.selected)&&E.nestedInfos?.forEach($=>{a&&`${a} = '${$.legendElementInfo.value}'`&&h.push(`${a} = '${$.legendElementInfo.value}'`)})}),h.forEach(E=>{r.includes(E)||r.push(E)})}}function x(e,n,l,t,a,s){let{value:i}=e;if(t?.type==="symbol-table")if(!Object.hasOwn(e,"value")||Array.isArray(e.value)&&a?.length===1){if(Object.hasOwn(a?.[0],"value")&&Array.isArray(a?.[0].value)&&Object.hasOwn(a?.[a.length-2],"value")&&Array.isArray(a?.[a.length-2].value))return s?`((${n}/${s}) > ${a?.[0].value[1]}) OR ((${n}/${s}) < ${a?.[a.length-2].value[0]}) OR ${s} = 0 OR ${s} IS NULL`:`${n} > ${a?.[0].value[1]} OR ${n} < ${a?.[a.length-2].value[0]} OR ${n} IS NULL`;if(a?.length===1)return"1=0";{let o=[];a?.forEach(u=>{if(u?.value){let{value:c}=u,f=c.indexOf("'")!==-1?c.split("'").join("''"):null,d=f?`${n} <> '${f}'`:isNaN(c)||typeof c=="string"&&!c.trim()?`${n} <> '${c}'`:`${n} <> ${c} AND ${n} <> '${c}'`;o.push(d)}});let r=o.join(" AND ");return n&&r?`${r} OR ${n} IS NULL`:""}}else{let o=i.indexOf("'")!==-1?i.split("'").join("''"):null,r=Array.isArray(e.value),u=a&&a.length-1===l,c=!Object.hasOwn(a?.[a.length-1],"value"),f=a&&a.length-2===l;return r?s?u||c&&f?`(${n}/${s}) >= ${i[0]} AND (${n}/${s}) <= ${e.value[1]}`:`(${n}/${s}) > ${i[0]} AND (${n}/${s}) <= ${e.value[1]}`:u||c&&f?`${n} >= ${i[0]} AND ${n} <= ${i[1]}`:`${n} > ${i[0]} AND ${n} <= ${i[1]}`:a?.length===1&&n?isNaN(i)||!i.trim().length?`${n} <> '${i}'`:`${n} <> ${i} OR ${n} <> '${i}'`:o?`${n} = '${o}'`:isNaN(i)||!i.trim().length?`${n} = '${i}'`:`${n} = ${i} OR ${n} = '${i}'`}else return""}function ae(e){return Array.isArray(e)?e.every(n=>!n.selected):e&&Array.from(e.categories.entries()).every(n=>!n[1].selected)&&e.queryExpressions[0]!=="1=0"}function j(e){return e?.layer?.renderer?.authoringInfo?.type==="predominance"}function le(e){return e?.legendElements[1]?.type==="relationship-ramp"}function se(e,n,l){let t=e.layer?.renderer?.field,a=n?.type,s=e?.layerView,i=s?.layer?.renderer?.classBreakInfos,o=s?.layer?.renderer?.uniqueValueInfos&&t,r=a==="size-ramp",u=a==="color-ramp",c=a==="opacity-ramp",f=a==="heatmap-ramp",d=s&&i&&i.length>1,p=s?.layer?.renderer?.authoringInfo?.type,y=p==="class-breaks-color",h=p==="class-breaks-size",E=n?.infos?.length===1&&!t,$=p==="relationship"&&n?.type!=="size-ramp"&&n?.type!=="symbol-table",m=e?.layer?.type==="feature",g=m&&t&&!u&&!r&&d,I=!!(m&&t&&!u&&!r&&!d),L=!!(I||j(s)&&!r||y&&t||h&&t||E&&!t&&t!==null||$||o),k=e?.layer?.featureReduction&&e?.legendElements?.[l]?.type==="size-ramp",R=n?.type==="symbol-table"&&n?.infos?.length===1,z=!e?.legendElements.every(w=>w.type!=="color-ramp"),F=!e?.legendElements.every(w=>w.type!=="size-ramp"),C=R&&z,T=R&&F,Q=n?.infos?.every(w=>typeof w.value=="number"),B=e?.legendElements?.[0]?.type==="symbol-table"&&e?.legendElements?.[1]?.type==="color-ramp",G=p==="dot-density",H=S(e?.layer,t);return m&&!k&&!c&&!f&&!C&&!T&&!Q&&!B&&!G&&H?i?g||L:I||L:!1}function ie(e){return e.queryExpressions=[],e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.categories.forEach(n=>{n.selected=!1}),e}function oe(e,n){e.categories.get(n)?.nestedInfos?.forEach(s=>{let i=`${e.field} = '${s.legendElementInfo.value}'`,o=e.queryExpressions.indexOf(i);o!==-1&&e.queryExpressions.splice(o,1),s.selected=!1});let l=[],t=Array.from(e.categories).map(s=>s[1]);t.forEach(s=>{s.nestedInfos?.every(i=>!i.selected)&&s.nestedInfos?.forEach(i=>{l.push(`${e.field} = '${i.legendElementInfo.value}'`)})}),l.forEach(s=>{e.queryExpressions.includes(s)||e.queryExpressions.push(s)});let a=e.queryExpressions.join(" OR ");return t.every(s=>s.nestedInfos?.every(i=>!i.selected))?(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.queryExpressions=[]):(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=a),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect.filter.where=a)),e}async function fe(e,n,l){let t=e.fLayerView.createQuery();if(l)if(l.nestedInfos.every(a=>!a.selected)){let a=l.nestedInfos.map(s=>`${e.field} = '${s.legendElementInfo.value}'`).join(" OR ");t.where=a}else{let a=l.nestedInfos.filter(s=>s.selected).map(s=>`${e.field} = '${s.legendElementInfo.value}'`).join(" OR ");t.where=a}else{let a=e.queryExpressions.join(" OR ");t.where=a}try{let{extent:a}=await e.fLayerView.layer.queryExtent(t);await n.goTo(a)}catch{}}function ce(e){return e.map(n=>n?.count).reduce((n,l)=>n+l)}function ue(e){return e.map(n=>n?.nestedInfos?.map(l=>l.count).reduce((l,t)=>l+t)).reduce((n,l)=>n+l)}async function b(e,n,l,t,a,s,i,o){if(!n||!S(n?.layer,l))return;let r=n?.layer?.type==="feature"?n.createQuery():null,u=j(n)?q(t,n):t.type?x(i,l,o,t,t.infos):x(t,l,a,s,s.infos);r&&u&&(r.where=u==="1=0"?"1=1":u,e&&(r.geometry=e));try{let c=r?await n.queryFeatureCount(r):null;return Promise.resolve({[t.label??n?.layer?.id]:c})}catch(c){console.error("FAILURE AT 'getInfoCount': ",c)}return await Promise.resolve(null)}async function de(e,n){let l={...n},{activeLayerInfos:t}=e,a=e?.view?.extent,s={},i={};t.forEach(async o=>{let r=o.legendElements[0],u=o.layer,c=n[o?.layer?.id]?.fLayerView,f=u.renderer?.field,d=[];i[o.layer.id]=[],r?.infos?.forEach((y,h)=>{if(r.infos?.every(E=>E.type==="symbol-table")){let E=[];y.infos.forEach(($,m)=>{let g=b(a,c,f,y,h,r,$,m);E.push(g)}),i[o.layer.id].push(E)}else d.push(b(a,c,f,y,h,r)),i[o.layer.id]=d});let p=y=>{let h=[],E=y.legendElements[0],$=y.layer,m=n[y?.layer?.id]?.fLayerView,g=$.renderer?.field;E?.infos?.forEach((I,L)=>h.push(b(a,m,g,I,L,E))),i[y.layer.id]=h};o.children.forEach(async y=>{p(y),y?.children?.length>0&&y.children.forEach(h=>{p(h),h?.children?.length>0&&h.children.forEach(E=>{p(E)})})})});for(let o in i){let r=s[o];r||(r=s[o]={});let u=await Promise.all(i[o]);if(u.every(c=>Array.isArray(c))){let c=await Promise.all(u.map(async f=>(await Promise.all(f)).map(d=>d&&Object.values(d)[0])));r[o]=c,s[o]={...r[o]}}else{let c={};u.forEach(f=>{if(!f)return;let d=Object.keys(f)[0];c[d]=f[d]}),o&&(r[o]=c),s[o]={...r[o]}}}return t.forEach(o=>{let r=n[o.layer.id],u=o.layer.id;r?.categories?.forEach((f,d)=>{let p=Array.from(r?.categories).findIndex(y=>y[0]===d);if(f?.nestedInfos)f?.nestedInfos.forEach((y,h)=>{let E=s?.[o?.layer?.id]?.[p]?.[h];y.count=isNaN(E)?null:E});else{let y=s?.[u]?.[d];f.count=isNaN(y)?null:y}});let c=f=>{let d=f.layer.id;n[d]?.categories?.forEach((p,y)=>{let h=s?.[d]?.[y];p.count=h})};o?.children?.forEach(f=>{c(f),f?.children?.length>0&&f.children.forEach(d=>{c(d),d?.children?.length>0&&d.children.forEach(p=>{c(p)})})})}),await Promise.resolve(l)}function ye(e,n){return e?.nestedInfos?.[n]}function he(e){return Array.from(e).map(n=>n[1]).every(n=>!!n?.nestedInfos)}function Ee(e){return!!e?.legendElements?.[0]?.infos?.every?.(n=>n?.type==="symbol-table")}function pe(e,n){if(typeof n?.title=="string")return e?.categories?.get(n?.title)}function $e(e){let n="calcite-mode-",l=`${n}light`,t=`${n}dark`;return e.classList.contains(t)?t:l}function me(e){if(e.layerId&&e.intLegendLayerData){let n=e.layerId,l=e.intLegendLayerData,t={...N.data,[n]:l};V.set("data",t)}}function ge(e,n){let{type:l}=e;l==="filter"?M(n):l==="effect"&&W(e,n)}function M(e){e?.allLayerViews?.filter(n=>n?.layer?.type==="feature")?.forEach(n=>{let l=n,t=P(l);l.filter=t,l.set("featureEffect",null)})}function W(e,n){n?.allLayerViews?.filter(l=>l?.layer?.type==="feature").forEach(async l=>{let t=l;if(e?.effect&&t){let{includedEffect:a,excludedEffect:s}=e.effect,i=await v(s,t,"excludedEffect"),o=await v(a,t,"includedEffect"),r=P(t);t.featureEffect=await O({filter:r,includedEffect:o,excludedEffect:i}),t.set("filter",null)}})}function P(e){return e?.filter||e?.featureEffect?.filter}function S(e,n){let l=e?.fields,t=l&&l.map(a=>a.name);return n?t&&t.includes(n):!0}function we(e){let n=[];return e.forEach(l=>U(l,n)),n}function U(e,n){n.push(e),e.children&&e.children.length>0&&e.children.forEach(l=>{U(l,n)})}return{a:D,b:_,c:ee,d:ne,e:re,f:te,g:ae,h:le,i:se,j:ie,k:oe,l:fe,m:ce,n:ue,o:de,p:ye,q:he,r:Ee,s:pe,t:$e,u:me,v:ge,w:we}},a)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as d}from"./
|
3
|
+
v1.1.0-next.20250811 */
|
4
|
+
import{a as d}from"./ETN3A2QC.js";import"./KWP3A7C6.js";import"./IFJSYBIO.js";import{b as o}from"./PSUXO4NH.js";import{h as l,i as e,k as n,n as t,y as a}from"./W3IPZTUY.js";import"./D5LUMTLN.js";var h=l`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|