@esri/solutions-components 1.0.0-next.20250521.1 → 1.0.0-next.20250527.1
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/{components/solutions-all-shell/assets → assets/config}/appConfig.json.d.ts +2 -2
- package/dist/cdn/{GJSNSMV5.js → 235HMCGP.js} +2 -2
- package/dist/cdn/{PZXLUUWJ.js → 27MRQWJF.js} +2 -2
- package/dist/cdn/{BZPPRNYK.js → 2B3Q4HD7.js} +2 -2
- package/dist/cdn/{DEXEV3CF.js → 2CBB2HLP.js} +2 -2
- package/dist/cdn/{7SPIT3JA.js → 2G5DQFP5.js} +2 -2
- package/dist/cdn/{MHYB5WW2.js → 2I7ZIAPF.js} +2 -2
- package/dist/cdn/{5D4SFQMX.js → 2JENJJ5Q.js} +2 -2
- package/dist/cdn/{DRFVJJFB.js → 2SCRBCST.js} +2 -2
- package/dist/cdn/{5SI2WE3S.js → 2SPBK2JC.js} +2 -2
- package/dist/cdn/2UBHX74M.js +18 -0
- package/dist/cdn/{OUGZWNO6.js → 2W7UVH23.js} +1 -1
- package/dist/cdn/{F3UYT636.js → 2WWZLR6Z.js} +2 -2
- package/dist/cdn/{VOD7YR56.js → 34ECDRMG.js} +2 -2
- package/dist/cdn/{NMDVSB55.js → 3BGUPUE3.js} +1 -1
- package/dist/cdn/{SZ6XDDRS.js → 3GWL7ZZR.js} +2 -2
- package/dist/cdn/{LAKS4FFK.js → 3KJASSVN.js} +2 -2
- package/dist/cdn/{VOJ7ETXL.js → 3Y2Q5QFM.js} +2 -2
- package/dist/cdn/44KWOYXI.js +4 -0
- package/dist/cdn/{HGEH7RJP.js → 462NEOXQ.js} +2 -2
- package/dist/cdn/{TMKXDITO.js → 47E56IWZ.js} +2 -2
- package/dist/cdn/{Y7AFN6OI.js → 4C3SN7HO.js} +2 -2
- package/dist/cdn/{XI2LPQ33.js → 4CXASUGF.js} +2 -2
- package/dist/cdn/4RKFDO7V.js +4 -0
- package/dist/cdn/{2PCAQBP3.js → 563I6KBO.js} +2 -2
- package/dist/cdn/{OT7ZKWCQ.js → 5646UVWD.js} +2 -2
- package/dist/cdn/{AAX2HQKV.js → 5ELHQQNT.js} +1 -1
- package/dist/cdn/{BXNKGYEI.js → 5M5CVIKP.js} +2 -2
- package/dist/cdn/{6Z2DWNPT.js → 5MIMVQY5.js} +1 -1
- package/dist/cdn/{CZDA3M6G.js → 5TBGB7YZ.js} +2 -2
- package/dist/cdn/{SYQ76GDV.js → 5TVQZ22P.js} +2 -2
- package/dist/cdn/{5VKMQKEK.js → 5YQ6I5EF.js} +1 -1
- package/dist/cdn/{ILY2OKMX.js → 65YPUCQG.js} +2 -2
- package/dist/cdn/{MUWBCKCV.js → 6F7EVZA2.js} +2 -2
- package/dist/cdn/{VSAXW4LJ.js → 6LY4PJLC.js} +2 -2
- package/dist/cdn/{TJDY5JFR.js → 6NFR7DWF.js} +2 -2
- package/dist/cdn/{KMDWJ4IU.js → 6Q6EWBBX.js} +2 -2
- package/dist/cdn/{LYRXJGDC.js → 6XL744QT.js} +2 -2
- package/dist/cdn/{ND6EAOAK.js → 72MDJVHR.js} +1 -1
- package/dist/cdn/{EF5JUDMP.js → 7APZ4O46.js} +2 -2
- package/dist/cdn/{XLIFIZT4.js → 7L34ACJ2.js} +1 -1
- package/dist/cdn/{VUZSRYII.js → 7T46C2WO.js} +2 -2
- package/dist/cdn/{7XECJH7Y.js → A42EXUKX.js} +1 -1
- package/dist/cdn/{NFAFQG7O.js → AAG5K33X.js} +2 -2
- package/dist/cdn/{A62HEPRS.js → ABK3KAVX.js} +2 -2
- package/dist/cdn/{B73J3DHK.js → AFMCTYMF.js} +2 -2
- package/dist/cdn/{TETTY42T.js → AIWKSKOS.js} +2 -2
- package/dist/cdn/{FDHX3KKE.js → AKIVXNOI.js} +2 -2
- package/dist/cdn/{2WHMOJKI.js → ASS7W7EF.js} +2 -2
- package/dist/cdn/{SWLJRRGU.js → AUJ4ZHP4.js} +2 -2
- package/dist/cdn/{ZMAGZDYI.js → AW2RDITX.js} +2 -2
- package/dist/cdn/{57TFREKC.js → AZ3OMUAO.js} +1 -1
- package/dist/cdn/{MBYLGI4U.js → BFX54VT3.js} +1 -1
- package/dist/cdn/{YLZ235UH.js → BGTACCYE.js} +2 -2
- package/dist/cdn/{B42KRM6Z.js → BKXP4PYE.js} +2 -2
- package/dist/cdn/{DNJH5UNS.js → BNMMRZMR.js} +1 -1
- package/dist/cdn/{3ZWTRRJN.js → BRGMMR6T.js} +1 -1
- package/dist/cdn/{ANGBSTZ3.js → BRZEMXNZ.js} +2 -2
- package/dist/cdn/BTH73JNS.js +4 -0
- package/dist/cdn/{TQT42IK7.js → BYBUA3SD.js} +1 -1
- package/dist/cdn/{BPTAOEJG.js → C2E5NBKB.js} +2 -2
- package/dist/cdn/{ELCX7XI2.js → CBUD7IB5.js} +2 -2
- package/dist/cdn/{57KCCA45.js → CCZ4QXEQ.js} +2 -2
- package/dist/cdn/{SB2ETAD7.js → CFSLUNQ7.js} +2 -2
- package/dist/cdn/{QCNZF3NJ.js → CNIE4S7A.js} +2 -2
- package/dist/cdn/{GJWFJRKH.js → D73WKPMQ.js} +2 -2
- package/dist/cdn/{24525IFF.js → DCEBLW5N.js} +2 -2
- package/dist/cdn/{YPZY5T64.js → DCOPVWLY.js} +2 -2
- package/dist/cdn/{F5UQ42HE.js → DF5QXKGH.js} +2 -2
- package/dist/cdn/{7WQVJT5F.js → DGNNFON4.js} +2 -2
- package/dist/cdn/{BFH5SO2L.js → DMPGY2CP.js} +1 -1
- package/dist/cdn/{4SKIALSW.js → DS7T3C76.js} +2 -2
- package/dist/cdn/{HDBFFEBB.js → DSUJM7KE.js} +2 -2
- package/dist/cdn/{WY3BALDA.js → DUW2CBFP.js} +2 -2
- package/dist/cdn/{3MEA5DUO.js → DZR5OU2Z.js} +2 -2
- package/dist/cdn/{AJMDPQVN.js → E2K4YXFY.js} +2 -2
- package/dist/cdn/{EVND7CLX.js → E7Z2VNGZ.js} +2 -2
- package/dist/cdn/{KF632BTH.js → EEZVGG7J.js} +2 -2
- package/dist/cdn/{DW5MNUDP.js → EIJGEZ3R.js} +1 -1
- package/dist/cdn/{JZPIPYHU.js → EJNMBFZU.js} +2 -2
- package/dist/cdn/{YZ45SJNV.js → EQYKWRWC.js} +2 -2
- package/dist/cdn/{2IN6EBD2.js → ERRVLDZR.js} +2 -2
- package/dist/cdn/{K47GFZZC.js → EUEDSIGE.js} +2 -2
- package/dist/cdn/{3BFU2N33.js → EY5KJVGY.js} +2 -2
- package/dist/cdn/F3SICAQV.js +8 -0
- package/dist/cdn/FDO6F6OD.js +18 -0
- package/dist/cdn/FHG3CDRP.js +4 -0
- package/dist/cdn/{NPHHJYBH.js → FHPVFDBQ.js} +2 -2
- package/dist/cdn/{EPSCUZ73.js → FM4LJPL6.js} +2 -2
- package/dist/cdn/{76ALAXVV.js → FNS5B3MH.js} +2 -2
- package/dist/cdn/{ZTVEA5RF.js → FTU72FJP.js} +1 -1
- package/dist/cdn/FTZVWKBM.js +18 -0
- package/dist/cdn/{L64TRNGF.js → G7O5ZQAS.js} +2 -2
- package/dist/cdn/{BJ2EZS3Z.js → GGUXZIFJ.js} +2 -2
- package/dist/cdn/{THVVAYVQ.js → GOHGYRVC.js} +2 -2
- package/dist/cdn/{7CKL36AK.js → GVYKKXOF.js} +1 -1
- package/dist/cdn/{WCEJDYKE.js → GX7IKAB3.js} +2 -2
- package/dist/cdn/{3OQDT2PX.js → GXDIQYY2.js} +2 -2
- package/dist/cdn/{EV7HBUTQ.js → GZOFO77D.js} +2 -2
- package/dist/cdn/{Z2Z7VXON.js → H2NMQTHO.js} +2 -2
- package/dist/cdn/{XRQCOVSZ.js → HEU5ADOI.js} +2 -2
- package/dist/cdn/{WXAL7UR7.js → HHBX6OJB.js} +2 -2
- package/dist/cdn/{G4WDN3WM.js → HK7LGCJZ.js} +2 -2
- package/dist/cdn/{6FO4Q3E6.js → HL27PBID.js} +2 -2
- package/dist/cdn/{ETE327MH.js → HM3CN2LF.js} +1 -1
- package/dist/cdn/HOBO4ZBX.js +18 -0
- package/dist/cdn/{XPISGP4X.js → HPUHAFAJ.js} +2 -2
- package/dist/cdn/{AEA2NSI4.js → HZY6CHAU.js} +2 -2
- package/dist/cdn/IHWO6477.js +4 -0
- package/dist/cdn/{HYXJ3R6E.js → IPINIAHE.js} +2 -2
- package/dist/cdn/IPPAEITK.js +18 -0
- package/dist/cdn/{ZG5TZZOJ.js → IS6FZQDO.js} +2 -2
- package/dist/cdn/{TX5LUCPB.js → IYDQFMAO.js} +2 -2
- package/dist/cdn/{UVSVC3WI.js → IYWM6PGT.js} +2 -2
- package/dist/cdn/{2N36AAZW.js → J2OGB6WD.js} +2 -2
- package/dist/cdn/{KZLVAEI2.js → J7HFP2SN.js} +2 -2
- package/dist/cdn/JCYSJLP3.js +4 -0
- package/dist/cdn/{YVCCBY5A.js → JF6NRNBV.js} +2 -2
- package/dist/cdn/{UVB3QATU.js → JGMZYU54.js} +2 -2
- package/dist/cdn/{JUWEYEWN.js → JJ7NWRPI.js} +2 -2
- package/dist/cdn/{3ZX46XLT.js → JO3IHRR7.js} +2 -2
- package/dist/cdn/{TG55KKIP.js → JPPXUPM6.js} +2 -2
- package/dist/cdn/{H3LE6IXK.js → JWXQ3ZOM.js} +2 -2
- package/dist/cdn/{LA6C6JAO.js → JY5VS7K2.js} +2 -2
- package/dist/cdn/{3QSJRZNT.js → K32Q3OHF.js} +2 -2
- package/dist/cdn/{ZG3PPQ55.js → K3OXWSA7.js} +2 -2
- package/dist/cdn/{OFNMFDPR.js → K3UY4EFA.js} +1 -1
- package/dist/cdn/{JUK6YN7M.js → K54ZYQZT.js} +2 -2
- package/dist/cdn/{MCVVXWUA.js → K77Y37K5.js} +2 -2
- package/dist/cdn/{J77NMDV5.js → KGLXLAY3.js} +1 -1
- package/dist/cdn/{BWYEDUZX.js → KMEQX57W.js} +2 -2
- package/dist/cdn/{RBNUMIQJ.js → KZ6GOXIR.js} +2 -2
- package/dist/cdn/{UKJQTCNY.js → L4A3TP42.js} +2 -2
- package/dist/cdn/{CE3PZUP3.js → L7V6N63X.js} +1 -1
- package/dist/cdn/LG5JARXR.js +4 -0
- package/dist/cdn/{CFSCFQIJ.js → LIOV5Z2T.js} +2 -2
- package/dist/cdn/{NNCVEOOC.js → LJ3WFFB2.js} +2 -2
- package/dist/cdn/{WGNTLBNS.js → LSGWT4PB.js} +2 -2
- package/dist/cdn/LU62UIKJ.js +4 -0
- package/dist/cdn/{HXJN6FVT.js → LUS4XGFV.js} +2 -2
- package/dist/cdn/{CKIF7ITD.js → LWII4SFH.js} +2 -2
- package/dist/cdn/{V2N5MGKX.js → LWT5ZPS5.js} +2 -2
- package/dist/cdn/M2JNL3YZ.js +5 -0
- package/dist/cdn/{POK67CCI.js → M3NHYVE5.js} +2 -2
- package/dist/cdn/M4SLCXFR.js +4 -0
- package/dist/cdn/{QHW6LKVE.js → M5PZM6MR.js} +2 -2
- package/dist/cdn/{2TGWW2EE.js → M6OYWH72.js} +2 -2
- package/dist/cdn/{TV6MVRLN.js → MCYHMQTR.js} +2 -2
- package/dist/cdn/{XFVJUICD.js → MKILC4CS.js} +2 -2
- package/dist/cdn/{MSJNBWKG.js → MMSYI6GH.js} +1 -1
- package/dist/cdn/{POZF7VFZ.js → MNIQAXS4.js} +1 -1
- package/dist/cdn/{GPUC2YAZ.js → MO6ELGZS.js} +1 -1
- package/dist/cdn/{PF6ZRQJ2.js → MWYXGDMB.js} +2 -2
- package/dist/cdn/{SHGCXAGA.js → NAICN42V.js} +2 -2
- package/dist/cdn/{NNWPGIM6.js → NF5LHYAO.js} +2 -2
- package/dist/cdn/{XM7J7FRK.js → NG43RYFN.js} +2 -2
- package/dist/cdn/{R7URESQA.js → NP3DZUOG.js} +2 -2
- package/dist/cdn/{UHGVCTXE.js → NSTT2IOP.js} +2 -2
- package/dist/cdn/{ASDGPISP.js → NUYU2UBS.js} +2 -2
- package/dist/cdn/{W7FRKETT.js → O4DKV6WM.js} +2 -2
- package/dist/cdn/{EQREHHBY.js → OBISJL4B.js} +2 -2
- package/dist/cdn/{U3MG73BI.js → OBQ5ECDX.js} +2 -2
- package/dist/cdn/{V6FMWC6D.js → OGAB72G7.js} +2 -2
- package/dist/cdn/OIDBNRLF.js +18 -0
- package/dist/cdn/{O5AVB7EE.js → OM7V7IHH.js} +2 -2
- package/dist/cdn/{FOESISXO.js → OOWZZIWB.js} +2 -2
- package/dist/cdn/{UXHI6HKV.js → OUIN7APR.js} +2 -2
- package/dist/cdn/{KU62FCLR.js → OVEGZJHW.js} +2 -2
- package/dist/cdn/{53ZP5E2V.js → OX5DEXZX.js} +2 -2
- package/dist/cdn/{CQDNZU4P.js → P67BXX6L.js} +2 -2
- package/dist/cdn/{U6ZZFZ5O.js → P6FYDYAK.js} +2 -2
- package/dist/cdn/{KOI3XUTI.js → P7U5QF6I.js} +2 -2
- package/dist/cdn/{23YJ5GOE.js → PALTMKJB.js} +2 -2
- package/dist/cdn/{NWN7Y7AR.js → PDHB7K5V.js} +2 -2
- package/dist/cdn/{FJEXAORI.js → PETX35OI.js} +2 -2
- package/dist/cdn/{NSEF4U3D.js → PNF3ZUSB.js} +2 -2
- package/dist/cdn/{2ECBDDEM.js → PRQU6X7H.js} +2 -2
- package/dist/cdn/{T2AD4OLC.js → PU3J4MZ3.js} +2 -2
- package/dist/cdn/PVJCHRCH.js +4 -0
- package/dist/cdn/{KFA5XB23.js → Q5X2S4MD.js} +1 -1
- package/dist/cdn/{NPBGB25Y.js → Q5ZQOFB2.js} +2 -2
- package/dist/cdn/{LRH5JW4Y.js → QDZSCCYH.js} +2 -2
- package/dist/cdn/{3QD6OQGN.js → QMAKEUC2.js} +2 -2
- package/dist/cdn/{YJEMF2Z6.js → QML66ZJW.js} +2 -2
- package/dist/cdn/{ZNZZHZ2Q.js → QTDIQRHK.js} +2 -2
- package/dist/cdn/{ON5Q5T5J.js → R4O6DVY6.js} +2 -2
- package/dist/cdn/{M3BZTOYS.js → R7E7P3BW.js} +2 -2
- package/dist/cdn/{AZ5AUWSV.js → R7FDRHLT.js} +2 -2
- package/dist/cdn/RMITVNXV.js +4 -0
- package/dist/cdn/{KH2BTRXI.js → ROI7GMNK.js} +1 -1
- package/dist/cdn/{JA2BLSMQ.js → RP7K3LJT.js} +2 -2
- package/dist/cdn/{HTVK2NSG.js → RQN5FKM7.js} +2 -2
- package/dist/cdn/{FFUCQ7IU.js → RS4LILZG.js} +2 -2
- package/dist/cdn/{DK32RK5U.js → RSJCSZWF.js} +1 -1
- package/dist/cdn/{KETFCI2P.js → RTKXKSUC.js} +2 -2
- package/dist/cdn/{UENHZJI6.js → RTT5SBQJ.js} +2 -2
- package/dist/cdn/{MV3DKW2Y.js → RUC3STWU.js} +2 -2
- package/dist/cdn/{2Z7AL4WY.js → S2O7NNWL.js} +2 -2
- package/dist/cdn/{GRBGQ3CY.js → S2W3JVOQ.js} +2 -2
- package/dist/cdn/{IGELH7BW.js → S3CJI2RF.js} +1 -1
- package/dist/cdn/{WYW6UPKP.js → SF6257JR.js} +1 -1
- package/dist/cdn/{6YGV5ZHN.js → SKHIZ4QA.js} +2 -2
- package/dist/cdn/{YP5ARNCZ.js → SMEMKVDF.js} +2 -2
- package/dist/cdn/{E2ACXLVV.js → SP7LJ3CU.js} +2 -2
- package/dist/cdn/{QP5IG75V.js → SQOKNHQQ.js} +2 -2
- package/dist/cdn/{Z3Z7UPMU.js → SQVXPJDM.js} +1 -1
- package/dist/cdn/{TLBQLRUA.js → STTUGNU7.js} +2 -2
- package/dist/cdn/{ODMUEFOT.js → SZGXZADB.js} +2 -2
- package/dist/cdn/{HRNJ6PPS.js → T5YBVEAU.js} +2 -2
- package/dist/cdn/{7BW7YOBF.js → TKPHO475.js} +2 -2
- package/dist/cdn/{CW6CCZ73.js → TM2VJ6VT.js} +2 -2
- package/dist/cdn/{KQ3XW3HT.js → TOWUBB5U.js} +2 -2
- package/dist/cdn/{25ZSQ4Y4.js → TPK7LVDB.js} +2 -2
- package/dist/cdn/{HAIBENUV.js → TVNGRZHA.js} +2 -2
- package/dist/cdn/{NG5O4EF2.js → TVWOFQVC.js} +2 -2
- package/dist/cdn/{NLAAOG7K.js → U2FJYTYH.js} +2 -2
- package/dist/cdn/{M4EOHQP3.js → U2VKBVBV.js} +2 -2
- package/dist/cdn/{QW25OYIP.js → U2ZT36OX.js} +2 -2
- package/dist/cdn/{JNJU5SA4.js → U6CTX64Y.js} +2 -2
- package/dist/cdn/UBBZOJAY.js +4 -0
- package/dist/cdn/{OQ2OHE4S.js → UFTXRN5O.js} +2 -2
- package/dist/cdn/{LREJHPPN.js → UFUUQSDI.js} +2 -2
- package/dist/cdn/{SWD5EGIW.js → UGDH6OHK.js} +1 -1
- package/dist/cdn/{DIR7QOWJ.js → UKSNIHPE.js} +2 -2
- package/dist/cdn/{6XL3O76R.js → UOCFZXCI.js} +2 -2
- package/dist/cdn/{NARZWJOL.js → UQQ7WIIG.js} +1 -1
- package/dist/cdn/{4W3OTNVQ.js → UQQLSZLW.js} +2 -2
- package/dist/cdn/{PSTNEQMA.js → UWTU3QFZ.js} +2 -2
- package/dist/cdn/{JYB6HV7M.js → UWZF6TGQ.js} +2 -2
- package/dist/cdn/{BRBPMYFG.js → V5TS3XKZ.js} +2 -2
- package/dist/cdn/{TLP53ZXS.js → VA5AX3JY.js} +2 -2
- package/dist/cdn/{45JWP6I3.js → VC55K7FD.js} +2 -2
- package/dist/cdn/{CGBW4C56.js → VEYCZIDH.js} +2 -2
- package/dist/cdn/{NZFOFQFK.js → VFC3KWOY.js} +2 -2
- package/dist/cdn/{73ZW6AZO.js → VHAKVCYG.js} +2 -2
- package/dist/cdn/{ZRDVHXEL.js → VHGLIJMI.js} +2 -2
- package/dist/cdn/{QJNE3P25.js → VJ5NWA7C.js} +2 -2
- package/dist/cdn/{4FV35CZ2.js → VLP6DDYE.js} +4 -4
- package/dist/cdn/{ME35VNVL.js → VLURIFFB.js} +2 -2
- package/dist/cdn/{4I5HWIEN.js → VNHRV4W2.js} +2 -2
- package/dist/cdn/{MW5Q3YCW.js → VVZJNJ36.js} +2 -2
- package/dist/cdn/{JY42QHUW.js → VWINHHXS.js} +2 -2
- package/dist/cdn/VYN2OV3J.js +4 -0
- package/dist/cdn/{W47KT5GG.js → W74YB7LO.js} +2 -2
- package/dist/cdn/{BEGVEBJJ.js → WK6KWLP7.js} +2 -2
- package/dist/cdn/{ANZR4N6V.js → WKWVZYU2.js} +2 -2
- package/dist/cdn/{HRTSR2SE.js → WMVWR4TI.js} +1 -1
- package/dist/cdn/{EMXWEQBM.js → WRLGEWRN.js} +1 -1
- package/dist/cdn/{VD6PGA3P.js → WSTFKNIK.js} +2 -2
- package/dist/cdn/{PFAB7BY6.js → WW6QSBNO.js} +2 -2
- package/dist/cdn/{2OTIFQIN.js → X34MWL2J.js} +2 -2
- package/dist/cdn/X3KFABXY.js +4 -0
- package/dist/cdn/{UZCXGQDN.js → X3OZJPGV.js} +2 -2
- package/dist/cdn/{RFHVHPG4.js → XAIHFHBP.js} +2 -2
- package/dist/cdn/{3YDR5TNM.js → XBMRPDNE.js} +2 -2
- package/dist/cdn/{VDWURYIO.js → XCH4UNRZ.js} +2 -2
- package/dist/cdn/{34ISDA3J.js → XGKEI55O.js} +2 -2
- package/dist/cdn/{FQH25K2H.js → XOEQRL52.js} +2 -2
- package/dist/cdn/{7DG3DSPE.js → Y2H34EQP.js} +2 -2
- package/dist/cdn/{ZUSH4SCO.js → Y2TULO3A.js} +2 -2
- package/dist/cdn/{R6U7AID6.js → Y2VUFZUV.js} +1 -1
- package/dist/cdn/{DIELHCE6.js → Y3FQP4NF.js} +2 -2
- package/dist/cdn/{ODRDYVBD.js → YSOIAQKF.js} +2 -2
- package/dist/cdn/{T6VGLWYO.js → YVIZHCBF.js} +2 -2
- package/dist/cdn/{YNVH5WOM.js → YYROVQF2.js} +1 -1
- package/dist/cdn/{EYCGOAQV.js → YZ4LCVJ7.js} +2 -2
- package/dist/cdn/{4NZAMBEG.js → Z2KZ6VY2.js} +2 -2
- package/dist/cdn/{EC5BCFOV.js → ZADW6QWU.js} +2 -2
- package/dist/cdn/{GGFHUOLW.js → ZFEYSYS5.js} +2 -2
- package/dist/cdn/{FHZLYB2S.js → ZFS6FBQX.js} +2 -2
- package/dist/cdn/{LGJZ53IQ.js → ZGTCOKGY.js} +2 -2
- package/dist/cdn/{ZVNQTPA6.js → ZJID6JNT.js} +3 -3
- package/dist/cdn/{UTA3GVUF.js → ZMPNHGIE.js} +2 -2
- package/dist/cdn/{L5RFIDWK.js → ZRRRCRK3.js} +2 -2
- package/dist/cdn/ZTFR55FL.js +18 -0
- package/dist/cdn/{IHYLQW3P.js → ZUNKV2EF.js} +1 -1
- package/dist/cdn/{7VOV57VQ.js → ZXQJLGRP.js} +4 -4
- package/dist/cdn/assets/solution-deploy-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-deploy-panel/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-deployed-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deployed-panel/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-deployed-shell/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deployed-shell/t9n/messages.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +249 -0
- package/dist/chunks/cardFetchingUtils.js +476 -0
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/index.js +405 -313
- package/dist/chunks/interfaces.js +21 -17
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +3 -3
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +10 -10
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.d.ts +0 -6
- package/dist/components/layer-table/customElement.js +47 -57
- package/dist/components/layer-table/index.d.ts +0 -2
- package/dist/components/layer-table/index.js +0 -2
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +2 -2
- 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 +14 -14
- package/dist/components/refine-selection/customElement.js +2 -2
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-panel/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-panel/customElement.d.ts +12 -0
- package/dist/components/solution-deploy-panel/customElement.js +44 -16
- package/dist/components/solution-deploy-panel/index.d.ts +10 -0
- package/dist/components/solution-deploy-panel/index.js +10 -0
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-panel/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-items-diagram/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +2 -2
- 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.d.ts +2 -3
- package/dist/components/solutions-all-panel/customElement.js +84 -521
- package/dist/components/solutions-all-shell/customElement.d.ts +1 -0
- package/dist/components/solutions-all-shell/customElement.js +29 -24
- 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.d.ts +54 -0
- package/dist/components/solutions-deployed-panel/customElement.js +66 -17
- package/dist/components/solutions-deployed-panel/index.d.ts +2 -0
- package/dist/components/solutions-deployed-panel/index.js +2 -0
- package/dist/components/solutions-deployed-shell/customElement.d.ts +19 -0
- package/dist/components/solutions-deployed-shell/customElement.js +111 -17
- package/dist/components/solutions-deployed-shell/index.d.ts +10 -0
- package/dist/components/solutions-deployed-shell/index.js +10 -0
- package/dist/components/solutions-filter-panel/customElement.js +2 -2
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +662 -97
- package/dist/docs/docs.json +504 -38
- package/dist/docs/vscode.html-custom-data.json +105 -12
- package/dist/docs/web-types.json +207 -31
- package/dist/index.d.ts +31 -2
- package/dist/index.js +1 -1
- package/dist/loader.js +5 -5
- package/dist/types/lumina.d.ts +7 -4
- package/dist/types/preact.d.ts +7 -4
- package/dist/types/react.d.ts +7 -4
- package/dist/types/stencil.d.ts +7 -4
- package/dist/utils/CardsFetcher.d.ts +5 -22
- package/dist/utils/cardFetchingUtils.d.ts +24 -0
- package/dist/utils/cardsHelpers.d.ts +2 -47
- package/dist/utils/helpers.d.ts +1 -21
- package/dist/utils/interfaces.d.ts +94 -1
- package/package.json +148 -147
- package/dist/cdn/3QIZTD4O.js +0 -4
- package/dist/cdn/7RN23NYN.js +0 -18
- package/dist/cdn/BEOKELUC.js +0 -4
- package/dist/cdn/BJFZKZXY.js +0 -4
- package/dist/cdn/G36LLGTJ.js +0 -4
- package/dist/cdn/H7LNTTBF.js +0 -4
- package/dist/cdn/HJNIOQBX.js +0 -4
- package/dist/cdn/HNLKT2BY.js +0 -4
- package/dist/cdn/HR7NBZ23.js +0 -18
- package/dist/cdn/I5FXIJHX.js +0 -4
- package/dist/cdn/IY54OHHB.js +0 -18
- package/dist/cdn/KONO75BP.js +0 -4
- package/dist/cdn/L4DGTHZ5.js +0 -5
- package/dist/cdn/LGMP6U2I.js +0 -4
- package/dist/cdn/MXFGKNUJ.js +0 -4
- package/dist/cdn/RKPAK25A.js +0 -18
- package/dist/cdn/U7SYT67J.js +0 -4
- package/dist/cdn/VDRSRH6X.js +0 -18
- package/dist/cdn/WU3WC633.js +0 -18
- package/dist/cdn/Y7RZLFOV.js +0 -4
- package/dist/cdn/ZVQ7AOB6.js +0 -18
- package/dist/cdn/assets/solutions-all-shell/appConfig.json +0 -1
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as w}from"./5VKMQKEK.js";import{e as E}from"./CKIF7ITD.js";import{B as y,C as b}from"./YNVH5WOM.js";import"./6Z2DWNPT.js";import{a as F,c as l,d as C,e as x,f as m}from"./A62HEPRS.js";import"./GPUC2YAZ.js";var L="instant-apps-filter-list calcite-mode-light",$="instant-apps-filter-list calcite-mode-dark",p=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function g(e){return e.replaceAll("'","''")}function f(e,t=!1){if(e){let i=new Date(e),n=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;if(t){let s=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;return`${n} ${s}`}else return n}}function D(e){if(e!=null){e.value=["",""];let t=e.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let i of t)i.value=""}}var S=":host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:normal}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height:24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:64px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:normal;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1:12px}.instant-apps-filter-list__zoom-to{display:flex;justify-content:flex-end;margin:8px 0 20px}.instant-apps-filter-list__zoom-to calcite-action{width:min-content}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1:16px}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor:2;--calcite-internal-animation-timing-slow:calc(300ms * 2)}}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}",k=S,u={base:"instant-apps-filter-list",filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description",zoomTo:"instant-apps-filter-list__zoom-to"},I=class{constructor(e){F(this,e),this.filterListReset=m(this,"filterListReset",7),this.filterUpdate=m(this,"filterUpdate",7),this.isLayerExpUpdated=!1,this.layerExpressions=void 0,this.autoUpdateUrl=!1,this.closeBtn=!1,this.closeBtnOnClick=void 0,this.comboboxOverlayPositioning="absolute",this.closeBtnText=void 0,this.openFilters=!1,this.extentSelector=!1,this.extentSelectorConfig=void 0,this.urlParams=void 0,this.filterCount=0,this.view=void 0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.loading=void 0,this.filterLayerExpressions=void 0,this.messages=void 0,this.baseClass=L,this.initDefExpressions=void 0,this.initMapImageExpressions=void 0,this.initPointCloudFilters=void 0}watchViewHandler(){this.handleWhenView()}watchLayerExpressions(){this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate()}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(n=>n.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(n=>{let s=i.expressions?.find(a=>a.id===n.id);s!=null&&(n.name=s.name)}))}),await Promise.resolve(!0))}connectedCallback(){this.layerExpressions==null&&this.view==null||(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async componentWillLoad(){this.baseClass=w(this.el)==="dark"?$:L,await this.initializeModules(),E(this),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}componentDidRender(){this.resetBtnEl!=null&&(this.resetBtnEl.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[e,t]=await Promise.all([b(),y()]);this.geometryJsonUtils=t,this.intl=e}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l(C,{key:"3db1b211528d0ebe2cc379b9dccbd59c38c2f7c4"},l("calcite-panel",{key:"b46732d02815e1ccd7f9355daf5470b0e5080918",class:this.baseClass,ref:i=>this.panelEl=i},l("slot",{key:"0b6b2021c89c4aa78f8a23d34363520a1ebdf21c",slot:"header-content",name:"filter-header-content"}),l("slot",{key:"70bd30b6dc8d0eada179abf13b713e8df852f059",slot:"header-actions-end",name:"filter-header-actions-end"}),l("div",{key:"filter-container",class:u.filterContainer},e,t)))}renderLoading(){return l("calcite-loader",{label:"Loading filters..."})}renderFilter(e){let{id:t}=e;return e.expressions.map((i,n)=>i.type==="checkbox"||i.type==null?l("div",{key:`${t}-${n}`,class:u.filterItemContainer},l("div",{class:u.filterItemTitle},l("p",null,i.name)),l("div",{class:u.checkboxContainer},l("calcite-checkbox",{id:i.id.toString(),scale:"l",checked:i?.active,onCalciteCheckboxChange:this.handleCheckboxChange.bind(this,e,i)}))):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,n=i?.trim()==="OR"?"orOperator":"andOperator",s=this.renderZoomTo(e);return l("calcite-block",{key:e.id,heading:e.title,description:this.messages?.[n],open:this.openFilters?!0:void 0,collapsible:!0},s,t)}renderCombobox(e,t){return l("label",{key:"combo-select",class:u.filterUIItemContainer},l("span",null,t.name),l("calcite-combobox",{id:t.id.toString(),onCalciteComboboxChange:this.handleComboSelect.bind(this,t,e),label:t.name,placeholder:t.placeholder,selectionMode:"multiple","max-items":"6",scale:"s",overlayPositioning:this.comboboxOverlayPositioning},t.fields?.map((i,n)=>this.renderComboboxItem(t,i,n))))}renderComboboxItem(e,t,i){let n=this.createLabel(e,t),a=e?.selectedFields?.includes(t)??!1;return l("calcite-combobox-item",{key:`${n}-${i}`,value:t,heading:`${n}`,selected:a})}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:e}=this.filterLayerExpressions[0],t=e?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l("calcite-block",{class:u.operatorDesc,heading:this.messages?.[t],open:!0},i,this.renderFilter(this.filterLayerExpressions[0]))}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}renderNumberSlider(e,t){let i=t?.min,n=t?.max,s=t?.step?t.step:1,a=i!=null&&n!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:n,d=[o,c];return a?l("label",{key:t?.id.toString(),class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.numberInputContainer},l("calcite-slider",{id:t?.id.toString(),onCalciteSliderChange:this.handleSliderChange.bind(this,t,e),min:i,max:n,minValue:i,maxValue:n,minLabel:this.messages?.minSlider?.replace("{field}",r),maxLabel:this.messages?.maxSlider?.replace("{field}",r),step:s,labelHandles:!0,snap:!0,value:d,"group-separator":t?.format?.digitSeparator,precise:!0}))):void 0}renderDatePicker(e,t){let{min:i,max:n}=t,s=[t?.range?.min,t?.range?.max];return i!=null&&n!=null?l("label",{class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.dateInputContainer},l("calcite-input-date-picker",{id:t?.id.toString(),onCalciteInputDatePickerChange:this.handleDatePickerRangeChange.bind(this,t,e),min:i,max:n,"overlay-positioning":"fixed",lang:this.intl?.getLocale()??"en",layout:"vertical",value:s,range:!0}),l("calcite-action",{onClick:this.handleResetDatePicker.bind(this,t,e),icon:"reset",text:this.messages?.resetDatePicker,scale:"s"}))):null}renderFooter(){let e=this.closeBtnText??this.messages?.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l("div",{class:u.footer,slot:"footer"},this.resetBtn?l("calcite-button",{appearance:"outline",width:t,ref:i=>this.resetBtnEl=i,onClick:this.handleResetFilter.bind(this)},this.messages?.resetFilter):void 0,this.closeBtn?l("calcite-button",{appearance:"solid",width:t,kind:"brand",onClick:this.closeBtnOnClick?.bind(this)},e):void 0)}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l("div",{class:u.zoomTo},l("calcite-button",{id:t,appearance:"transparent",kind:"neutral",scale:"s",iconStart:"magnifying-glass-plus",onClick:this.handleZoomTo.bind(this,e)},this.messages?.zoomTo)):void 0}handleResetDatePicker(e,t){let i=this.panelEl.querySelector(`[id='${e.id}']`);D(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}initInput(e,t){let{type:i,numDisplayOption:n,displayOption:s}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(n==="drop-down"||s==="drop-down"))return this.renderCombobox(e,t);if(i==="number"||i==="range")return this.renderNumberSlider(e,t);if(i==="date")return this.renderDatePicker(e,t)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async e=>{await Promise.all((e.expressions||[]).map(async t=>await this.setInitExpression(e,t)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(e=>{e.expressions?.forEach(t=>{let{type:i,numDisplayOption:n,displayOption:s}=t,a="";i==="string"||i==="coded-value"||i==="date"&&(n==="drop-down"||s==="drop-down")||(i==="number"||i==="range")&&(n==="drop-down"||s==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),a?this.resetExpressionUI(a,t):this.resetCheckbox(t),t.active=!1})})}resetExpressionUI(e,t){let{id:i}=t;switch(e){case"combobox":{t.selectedFields=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);n&&Array.from(n.children).forEach(s=>{s.selected=!1});break}case"datePicker":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);D(n);break}case"numberRange":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);n&&(n.minValue=t.min,n.maxValue=t.max);break}}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.querySelector(`[id='${t}']`);i!=null&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables)?.forEach(t=>{if(!p.includes(t.type))return;let i=t;if(i.type==="point-cloud"){if(!this.initPointCloudFilters)return;i.filters=this.initPointCloudFilters[i.id]}else if(i.type==="map-image")i.allSublayers.forEach(n=>{n.definitionExpression=this.initMapImageExpressions?.[i.id]?.[n.id]??""});else{if(this.initDefExpressions==null)return;i.definitionExpression=this.initDefExpressions[i.id]}})}async updateStringExpression(e,t){let i=this.findFilterLayer(e);return await this.getFeatureAttributes(i,t),this.handleDateField(i,t),t?.selectedFields?(t.definitionExpression=this.createDefinitionExpression(t),!0):!1}handleDateField(e,t){t.type==="date"&&e.fields.find(({name:n})=>n===t.field)?.type==="date-only"&&(t.dateOnly=!0)}createDefinitionExpression(e){if(!e.selectedFields?.length)return"";let t=e.selectedFields.map(i=>typeof i=="number"?i:`'${g(i)}'`);return`${e.field} IN (${t.join(",")})`}async updateNumberExpression(e,t){if(!t?.min&&t?.min!==0||!t?.max&&t?.max!==0){let i=this.findFilterLayer(e),{field:n}=t;if(n!=null)if(this.setExpressionFormat(i,t,n),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let a=(await this.calculateMinMaxStatistics(i,n))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(a[`min${n}`],t.format.places),t.max=this.roundMaxNumberUp(a[`max${n}`],t.format.places)):(t.min=a[`min${n}`],t.max=a[`max${n}`]),t?.range&&Object.keys(t.range).length){let{min:r,max:o}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${r} AND ${o}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:n}=t,s=this.findFilterLayer(e),r=(await this.calculateMinMaxStatistics(s,i))?.[0]?.attributes;if(t.min=f(r[`min${i}`]),t.max=f(r[`max${i}`]),n!=null&&(n?.max!=null||n?.min!=null)){let{min:o,max:c}=n;if(o=o?.replace("+"," "),c=c?.replace("+"," "),o||c){let d=c&&!o?"<":!c&&o?">":null;return d?t.definitionExpression=`${i} ${d} '${o??c}'`:t.definitionExpression=`${i} BETWEEN '${o}' AND '${c}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let n=this.findFilterLayer(e);await this.getFeatureAttributes(n,t);let a=i.domain.codedValues.reduce((r,{code:o,name:c})=>(r[o]=c,r),{});if(t.codedValues=a,t.selectedFields?.length){let r=t.selectedFields.map(o=>typeof o=="number"?o:`'${g(o)}'`).join(",");return t.definitionExpression=`${t.field} IN (${r})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:n}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,n&&Object.keys(n).length?(e.definitionExpression=`${i} BETWEEN ${n.min} AND ${n.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:n,supportsMaxRecordCountFactor:s}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(n,a,s)&&this.handlePagination(i,r,n,s,a,t)}isLayerSupported(e){return e&&p.includes(e.type)}extractQueryCapabilities(e){return{maxRecordCount:e.capabilities?.query?.maxRecordCount??e.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:e.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(e,t){let i=e.createQuery();this.applyCacheHint(e,i);let n=t?.field;if(n){let s=this.getInitDefExprFromLayer(e);i.where=s||"1=1",i.outFields=[n],i.orderByFields=[`${n} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(e,t,i){if(!t.outFields)return;let n=await this.queryForFeatures(e,t,t.outFields[0]);n?.length&&(i.fields=[...new Set(n)],i.type==="string"?i.fields=i.fields.sort((s,a)=>s.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((s,a)=>s-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let n=this.getQueryCount(e,i);return e!=null&&t>n}async handlePagination(e,t,i,n,s,a){let r=this.getQueryCount(i,n),o=[];for(let c=r;c<s;c+=r){let d=t.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(e,d,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,h)=>d.localeCompare(h)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,h)=>d-h):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(a=>a.attributes?.[i])?.map(a=>a.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!p.includes(e.type)||!t)return[];let i=this.createStatisticsQuery(e,t);return(await e.queryFeatures(i))?.features||[]}createStatisticsQuery(e,t){let i=e.createQuery();return i.where=this.getInitDefExprFromLayer(e)||"1=1",this.applyCacheHint(e,i),i.outStatistics=[{onStatisticField:t,outStatisticFieldName:`max${t}`,statisticType:"max"},{onStatisticField:t,outStatisticFieldName:`min${t}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(e,t){if(e&&t){let{constraints:i}=t,s={...i}?.geometry;if(s){let a="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(a?.type==="extent"||a?.type==="polygon")return a}}}async setInitExpression(e,t){if(!t.field||!t.type){await this.updateExpression(e,t,void 0);return}let i=this.findFilterLayer(e);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let n=i.fields?.find(({name:a})=>a===t.field),s=n?.domain?.type;t.type=s==="coded-value"||s==="range"?s:t.type,await this.updateExpression(e,t,n)}))}async updateExpression(e,t,i){await this.handleExpressionType(e,t,i)&&this.generateOutput(e)}async handleExpressionType(e,t,i){switch(t.type){case"string":return await this.updateStringExpression(e,t);case"number":return await this.updateNumberExpression(e,t);case"date":return await this.updateDateExpressionBasedOnDisplayOption(e,t);case"coded-value":return await this.updateCodedValueExpression(e,t,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(e,t,i);case"checkbox":case null:case void 0:return t.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateDateExpression(e,t)}async updateRangeExpressionBasedOnDisplayOption(e,t,i){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):this.updateRangeExpression(t,i)}updateRangeExpressions(e,t,i,n){let s=this.getInitDefExprFromLayerExpression(t);(n||n===0)&&(i||i===0)&&(n===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=s?`(${s}) AND ${e?.field} BETWEEN ${n} AND ${i}`:`${e?.field} BETWEEN ${n} AND ${i}`,e.active=!0)),e.range={min:n,max:i}}handleCheckboxChange(e,t,i){let n=i.target;t.active=n.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:n,minValue:s}=i.target;this.updateRangeExpressions(e,t,n,s),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:a,type:r}=e;if(e.selectedFields=s.map(({value:o})=>o),s.length){let o=s.map(({value:c})=>typeof c=="number"?c:`'${g(c)}'`);e.definitionExpression=r==="date"?o.map(c=>this.buildDateExpression(c,a)).join(" OR "):`${a} IN (${o.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let n=i.target,[s,a]=n.valueAsDate,r=s?f(Math.floor(s.getTime()),!0):void 0,o=a?f(Math.floor(a.getTime()),!0):void 0;(r||o)&&(e.definitionExpression=this.constructDefinitionExpression(e.field,r,o),e.range={min:r,max:o},e.active=!0,this.generateOutput(t))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let i=t.split(";").map(n=>JSON.parse(n));this.filterCount=this.applyFilters(i)}applyFilters(e){let t=0;return e.forEach(i=>{let n=this.filterLayerExpressions?.find(s=>s.id===i.layerId);n&&n.expressions?.forEach(s=>{s.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(s,i),t++)})}),t}activateExpression(e,t){e.active=!0,t.type==="range"?e.range=t.range:t.type==="select"&&(e.selectedFields=t.selectedFields)}createURLParamExpression(e,t){let{id:i,range:n,selectedFields:s,type:a}=t;return a==="string"||a==="coded-value"||t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down"?{type:"select",layerId:e.id,expressionId:i.toString(),selectedFields:s}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:e.id,expressionId:i.toString(),range:n}:{layerId:e.id,expressionId:i.toString()}}autoUpdateURLCheck(e){if(this.autoUpdateUrl){let t=e.toString()?`${window.location.pathname}?${e}`.trim():window.location.pathname;window.history.replaceState({},"",t)}}generateURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(window.location.search),t=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(n=>n.active).map(n=>JSON.stringify(this.createURLParamExpression(i,n)))||[])||[];this.filterCount=t.length,t.length>0?e.set("filter",t.join(";")):e.delete("filter"),this.autoUpdateURLCheck(e),this.urlParams=e}updateFilter(e,t,i){let{id:n}=e,s=this.view.map?.findLayerById(n)??this.view.map?.findTableById(n);if(s!=null)if(s.type==="point-cloud")this.updateFilterLayerPCLFilter(s,i);else if(s.type==="map-image"){let a=s.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(s,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:n}=i,s=this.getInitDefExprFromLayer(e),a=t?.length>0&&s!=null&&s!==""?`(${t.join(n)}) AND (${s})`:t.length>0?t.join(n):s;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){if(this.view==null)return;await this.view.map.loadAll(),this.handleLayerExpressionsUpdate()}async handleLayerExpressionsUpdate(){this.updateInitExpressions(),this.handleURLParams(),this.initExpressions()}async handleZoomTo(e){let t=e?.sublayerId?`#zoom-to-${e.id}-${e.sublayerId}`:`#zoom-to-${e.id}`,i=this.panelEl.querySelector(t),n=(s,a)=>{i&&(i.loading=s,i.disabled=a)};if(n(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let s=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(s)}n(!1,!1)}async getZoomToExtent(e){let i=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,n=i.type==="map-image"?i.findSublayerById(e.sublayerId):i;if(n&&n.type!=="point-cloud"&&p.includes(n?.type)){let s=await this.getQueryLayer(n),a=s.createQuery();a.where=s.definitionExpression??"1=1";let r=await s.queryExtent(a);this.zoomToExtent={...r,type:s.geometryType}}}applyFilterToQuery(e,t){let i=this.view.allLayerViews.find(({layer:s})=>s.id===t.id),n=i?.featureEffect?.filter??i.filter;n&&["objectIds","distance","geometry","spatialRelationship","units","where","timeExtent"].forEach(a=>{n[a]!=null&&(e[a]=n[a])})}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let n of e.expressions){let{active:s,definitionExpression:a,pointCloudFilters:r}=n;s&&a&&t.push(`(${a})`),s&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(e,t,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(e){return e.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(e,t,i){if(e==null)return;let n;if(!String(e).includes("e"))n=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[s,a]=String(e).split("e").map(c=>Number(c)),r=a+t;n=Math[i](+`${s}e${r}`)*Math.pow(10,-t)}return+n.toFixed(t)}roundMinNumberDown(e,t){return this.scientificRounding(e,t,"floor")}roundMaxNumberUp(e,t){return this.scientificRounding(e,t,"ceil")}roundNumber(e,t){return this.scientificRounding(e,t,"round")??e}setExpressionFormat(e,t,i){if(e?.popupTemplate!=null){let n=e?.popupTemplate.fieldInfos?.find(({fieldName:s})=>s===i);n?.format&&(t.format=n.format)}}getInitDefExprFromLayer(e){return e.type==="sublayer"?this.initMapImageExpressions?.[e?.layer?.id??""]?.[e.id]??"":this.initDefExpressions?.[e.id]??""}getInitDefExprFromLayerExpression(e){return e?.sublayerId!=null?this.initMapImageExpressions?.[e.id]?.[e.sublayerId]??"":this.initDefExpressions?.[e.id]??""}findFilterLayer(e){let i=this.view.map?.allLayers.concat(this.view.map?.allTables)?.find(({id:n})=>n===e.id);return i.type==="map-image"?i?.findSublayerById(e.sublayerId):i}createLabel(e,t){if(e.type==="coded-value")return e?.codedValues?.[t];if(e.type==="number"&&typeof t=="number"){let i=t;return e.format?.places!=null&&(i=this.roundNumber(t,e.format.places)),e.format?.digitSeparator?this.numberWithCommas(i):i}if(e.type==="date"&&!e.dateOnly){let i=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),n=new Date(e),s=new Date(n.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${s.getHours()}:${s.getMinutes()}:${s.getSeconds()}`,c=`${s.getFullYear()}-${s.getMonth()+1}-${s.getDate()}`;return`${t} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(e){let t=e.type==="sublayer"?await e.createFeatureLayer():e;if(!t)throw new Error("Failed to create feature layer");return t}applyCacheHint(e,t){e?.capabilities?.query?.supportsCacheHint&&(t.cacheHint=!0)}applyQueryGeometryFromExtentSelector(e){if(!this.extentSelector||!this.extentSelectorConfig)return;let t=this.getExtent(this.extentSelector,this.extentSelectorConfig);t&&(e.geometry=t,e.spatialRelationship="intersects")}updateInitExpressions(){if(this.view==null)return;let e=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},e.allLayers.concat(e.allTables).forEach(t=>{if(!p.includes(t.type))return;let i=t;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((n,s)=>(n[s.id]=s.definitionExpression??"",n),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}get el(){return x(this)}static get watchers(){return{view:["watchViewHandler"],layerExpressions:["watchLayerExpressions"]}}};I.style=k;export{I as instant_apps_filter_list};
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as w}from"./5YQ6I5EF.js";import{e as E}from"./LWII4SFH.js";import{B as y,C as b}from"./YYROVQF2.js";import"./5MIMVQY5.js";import{a as F,c as l,d as C,e as x,f as m}from"./ABK3KAVX.js";import"./MO6ELGZS.js";var L="instant-apps-filter-list calcite-mode-light",$="instant-apps-filter-list calcite-mode-dark",p=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function g(e){return e.replaceAll("'","''")}function f(e,t=!1){if(e){let i=new Date(e),n=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;if(t){let s=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;return`${n} ${s}`}else return n}}function D(e){if(e!=null){e.value=["",""];let t=e.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let i of t)i.value=""}}var S=":host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:normal}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height:24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:64px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:normal;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1:12px}.instant-apps-filter-list__zoom-to{display:flex;justify-content:flex-end;margin:8px 0 20px}.instant-apps-filter-list__zoom-to calcite-action{width:min-content}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1:16px}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor:2;--calcite-internal-animation-timing-slow:calc(300ms * 2)}}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}",k=S,u={base:"instant-apps-filter-list",filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description",zoomTo:"instant-apps-filter-list__zoom-to"},I=class{constructor(e){F(this,e),this.filterListReset=m(this,"filterListReset",7),this.filterUpdate=m(this,"filterUpdate",7),this.isLayerExpUpdated=!1,this.layerExpressions=void 0,this.autoUpdateUrl=!1,this.closeBtn=!1,this.closeBtnOnClick=void 0,this.comboboxOverlayPositioning="absolute",this.closeBtnText=void 0,this.openFilters=!1,this.extentSelector=!1,this.extentSelectorConfig=void 0,this.urlParams=void 0,this.filterCount=0,this.view=void 0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.loading=void 0,this.filterLayerExpressions=void 0,this.messages=void 0,this.baseClass=L,this.initDefExpressions=void 0,this.initMapImageExpressions=void 0,this.initPointCloudFilters=void 0}watchViewHandler(){this.handleWhenView()}watchLayerExpressions(){this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate()}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(n=>n.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(n=>{let s=i.expressions?.find(a=>a.id===n.id);s!=null&&(n.name=s.name)}))}),await Promise.resolve(!0))}connectedCallback(){this.layerExpressions==null&&this.view==null||(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async componentWillLoad(){this.baseClass=w(this.el)==="dark"?$:L,await this.initializeModules(),E(this),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}componentDidRender(){this.resetBtnEl!=null&&(this.resetBtnEl.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[e,t]=await Promise.all([b(),y()]);this.geometryJsonUtils=t,this.intl=e}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l(C,{key:"3db1b211528d0ebe2cc379b9dccbd59c38c2f7c4"},l("calcite-panel",{key:"b46732d02815e1ccd7f9355daf5470b0e5080918",class:this.baseClass,ref:i=>this.panelEl=i},l("slot",{key:"0b6b2021c89c4aa78f8a23d34363520a1ebdf21c",slot:"header-content",name:"filter-header-content"}),l("slot",{key:"70bd30b6dc8d0eada179abf13b713e8df852f059",slot:"header-actions-end",name:"filter-header-actions-end"}),l("div",{key:"filter-container",class:u.filterContainer},e,t)))}renderLoading(){return l("calcite-loader",{label:"Loading filters..."})}renderFilter(e){let{id:t}=e;return e.expressions.map((i,n)=>i.type==="checkbox"||i.type==null?l("div",{key:`${t}-${n}`,class:u.filterItemContainer},l("div",{class:u.filterItemTitle},l("p",null,i.name)),l("div",{class:u.checkboxContainer},l("calcite-checkbox",{id:i.id.toString(),scale:"l",checked:i?.active,onCalciteCheckboxChange:this.handleCheckboxChange.bind(this,e,i)}))):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,n=i?.trim()==="OR"?"orOperator":"andOperator",s=this.renderZoomTo(e);return l("calcite-block",{key:e.id,heading:e.title,description:this.messages?.[n],open:this.openFilters?!0:void 0,collapsible:!0},s,t)}renderCombobox(e,t){return l("label",{key:"combo-select",class:u.filterUIItemContainer},l("span",null,t.name),l("calcite-combobox",{id:t.id.toString(),onCalciteComboboxChange:this.handleComboSelect.bind(this,t,e),label:t.name,placeholder:t.placeholder,selectionMode:"multiple","max-items":"6",scale:"s",overlayPositioning:this.comboboxOverlayPositioning},t.fields?.map((i,n)=>this.renderComboboxItem(t,i,n))))}renderComboboxItem(e,t,i){let n=this.createLabel(e,t),a=e?.selectedFields?.includes(t)??!1;return l("calcite-combobox-item",{key:`${n}-${i}`,value:t,heading:`${n}`,selected:a})}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:e}=this.filterLayerExpressions[0],t=e?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l("calcite-block",{class:u.operatorDesc,heading:this.messages?.[t],open:!0},i,this.renderFilter(this.filterLayerExpressions[0]))}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}renderNumberSlider(e,t){let i=t?.min,n=t?.max,s=t?.step?t.step:1,a=i!=null&&n!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:n,d=[o,c];return a?l("label",{key:t?.id.toString(),class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.numberInputContainer},l("calcite-slider",{id:t?.id.toString(),onCalciteSliderChange:this.handleSliderChange.bind(this,t,e),min:i,max:n,minValue:i,maxValue:n,minLabel:this.messages?.minSlider?.replace("{field}",r),maxLabel:this.messages?.maxSlider?.replace("{field}",r),step:s,labelHandles:!0,snap:!0,value:d,"group-separator":t?.format?.digitSeparator,precise:!0}))):void 0}renderDatePicker(e,t){let{min:i,max:n}=t,s=[t?.range?.min,t?.range?.max];return i!=null&&n!=null?l("label",{class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.dateInputContainer},l("calcite-input-date-picker",{id:t?.id.toString(),onCalciteInputDatePickerChange:this.handleDatePickerRangeChange.bind(this,t,e),min:i,max:n,"overlay-positioning":"fixed",lang:this.intl?.getLocale()??"en",layout:"vertical",value:s,range:!0}),l("calcite-action",{onClick:this.handleResetDatePicker.bind(this,t,e),icon:"reset",text:this.messages?.resetDatePicker,scale:"s"}))):null}renderFooter(){let e=this.closeBtnText??this.messages?.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l("div",{class:u.footer,slot:"footer"},this.resetBtn?l("calcite-button",{appearance:"outline",width:t,ref:i=>this.resetBtnEl=i,onClick:this.handleResetFilter.bind(this)},this.messages?.resetFilter):void 0,this.closeBtn?l("calcite-button",{appearance:"solid",width:t,kind:"brand",onClick:this.closeBtnOnClick?.bind(this)},e):void 0)}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l("div",{class:u.zoomTo},l("calcite-button",{id:t,appearance:"transparent",kind:"neutral",scale:"s",iconStart:"magnifying-glass-plus",onClick:this.handleZoomTo.bind(this,e)},this.messages?.zoomTo)):void 0}handleResetDatePicker(e,t){let i=this.panelEl.querySelector(`[id='${e.id}']`);D(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}initInput(e,t){let{type:i,numDisplayOption:n,displayOption:s}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(n==="drop-down"||s==="drop-down"))return this.renderCombobox(e,t);if(i==="number"||i==="range")return this.renderNumberSlider(e,t);if(i==="date")return this.renderDatePicker(e,t)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async e=>{await Promise.all((e.expressions||[]).map(async t=>await this.setInitExpression(e,t)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(e=>{e.expressions?.forEach(t=>{let{type:i,numDisplayOption:n,displayOption:s}=t,a="";i==="string"||i==="coded-value"||i==="date"&&(n==="drop-down"||s==="drop-down")||(i==="number"||i==="range")&&(n==="drop-down"||s==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),a?this.resetExpressionUI(a,t):this.resetCheckbox(t),t.active=!1})})}resetExpressionUI(e,t){let{id:i}=t;switch(e){case"combobox":{t.selectedFields=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);n&&Array.from(n.children).forEach(s=>{s.selected=!1});break}case"datePicker":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);D(n);break}case"numberRange":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);n&&(n.minValue=t.min,n.maxValue=t.max);break}}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.querySelector(`[id='${t}']`);i!=null&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables)?.forEach(t=>{if(!p.includes(t.type))return;let i=t;if(i.type==="point-cloud"){if(!this.initPointCloudFilters)return;i.filters=this.initPointCloudFilters[i.id]}else if(i.type==="map-image")i.allSublayers.forEach(n=>{n.definitionExpression=this.initMapImageExpressions?.[i.id]?.[n.id]??""});else{if(this.initDefExpressions==null)return;i.definitionExpression=this.initDefExpressions[i.id]}})}async updateStringExpression(e,t){let i=this.findFilterLayer(e);return await this.getFeatureAttributes(i,t),this.handleDateField(i,t),t?.selectedFields?(t.definitionExpression=this.createDefinitionExpression(t),!0):!1}handleDateField(e,t){t.type==="date"&&e.fields.find(({name:n})=>n===t.field)?.type==="date-only"&&(t.dateOnly=!0)}createDefinitionExpression(e){if(!e.selectedFields?.length)return"";let t=e.selectedFields.map(i=>typeof i=="number"?i:`'${g(i)}'`);return`${e.field} IN (${t.join(",")})`}async updateNumberExpression(e,t){if(!t?.min&&t?.min!==0||!t?.max&&t?.max!==0){let i=this.findFilterLayer(e),{field:n}=t;if(n!=null)if(this.setExpressionFormat(i,t,n),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let a=(await this.calculateMinMaxStatistics(i,n))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(a[`min${n}`],t.format.places),t.max=this.roundMaxNumberUp(a[`max${n}`],t.format.places)):(t.min=a[`min${n}`],t.max=a[`max${n}`]),t?.range&&Object.keys(t.range).length){let{min:r,max:o}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${r} AND ${o}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:n}=t,s=this.findFilterLayer(e),r=(await this.calculateMinMaxStatistics(s,i))?.[0]?.attributes;if(t.min=f(r[`min${i}`]),t.max=f(r[`max${i}`]),n!=null&&(n?.max!=null||n?.min!=null)){let{min:o,max:c}=n;if(o=o?.replace("+"," "),c=c?.replace("+"," "),o||c){let d=c&&!o?"<":!c&&o?">":null;return d?t.definitionExpression=`${i} ${d} '${o??c}'`:t.definitionExpression=`${i} BETWEEN '${o}' AND '${c}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let n=this.findFilterLayer(e);await this.getFeatureAttributes(n,t);let a=i.domain.codedValues.reduce((r,{code:o,name:c})=>(r[o]=c,r),{});if(t.codedValues=a,t.selectedFields?.length){let r=t.selectedFields.map(o=>typeof o=="number"?o:`'${g(o)}'`).join(",");return t.definitionExpression=`${t.field} IN (${r})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:n}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,n&&Object.keys(n).length?(e.definitionExpression=`${i} BETWEEN ${n.min} AND ${n.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:n,supportsMaxRecordCountFactor:s}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(n,a,s)&&this.handlePagination(i,r,n,s,a,t)}isLayerSupported(e){return e&&p.includes(e.type)}extractQueryCapabilities(e){return{maxRecordCount:e.capabilities?.query?.maxRecordCount??e.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:e.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(e,t){let i=e.createQuery();this.applyCacheHint(e,i);let n=t?.field;if(n){let s=this.getInitDefExprFromLayer(e);i.where=s||"1=1",i.outFields=[n],i.orderByFields=[`${n} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(e,t,i){if(!t.outFields)return;let n=await this.queryForFeatures(e,t,t.outFields[0]);n?.length&&(i.fields=[...new Set(n)],i.type==="string"?i.fields=i.fields.sort((s,a)=>s.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((s,a)=>s-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let n=this.getQueryCount(e,i);return e!=null&&t>n}async handlePagination(e,t,i,n,s,a){let r=this.getQueryCount(i,n),o=[];for(let c=r;c<s;c+=r){let d=t.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(e,d,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,h)=>d.localeCompare(h)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,h)=>d-h):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(a=>a.attributes?.[i])?.map(a=>a.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!p.includes(e.type)||!t)return[];let i=this.createStatisticsQuery(e,t);return(await e.queryFeatures(i))?.features||[]}createStatisticsQuery(e,t){let i=e.createQuery();return i.where=this.getInitDefExprFromLayer(e)||"1=1",this.applyCacheHint(e,i),i.outStatistics=[{onStatisticField:t,outStatisticFieldName:`max${t}`,statisticType:"max"},{onStatisticField:t,outStatisticFieldName:`min${t}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(e,t){if(e&&t){let{constraints:i}=t,s={...i}?.geometry;if(s){let a="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(a?.type==="extent"||a?.type==="polygon")return a}}}async setInitExpression(e,t){if(!t.field||!t.type){await this.updateExpression(e,t,void 0);return}let i=this.findFilterLayer(e);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let n=i.fields?.find(({name:a})=>a===t.field),s=n?.domain?.type;t.type=s==="coded-value"||s==="range"?s:t.type,await this.updateExpression(e,t,n)}))}async updateExpression(e,t,i){await this.handleExpressionType(e,t,i)&&this.generateOutput(e)}async handleExpressionType(e,t,i){switch(t.type){case"string":return await this.updateStringExpression(e,t);case"number":return await this.updateNumberExpression(e,t);case"date":return await this.updateDateExpressionBasedOnDisplayOption(e,t);case"coded-value":return await this.updateCodedValueExpression(e,t,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(e,t,i);case"checkbox":case null:case void 0:return t.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateDateExpression(e,t)}async updateRangeExpressionBasedOnDisplayOption(e,t,i){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):this.updateRangeExpression(t,i)}updateRangeExpressions(e,t,i,n){let s=this.getInitDefExprFromLayerExpression(t);(n||n===0)&&(i||i===0)&&(n===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=s?`(${s}) AND ${e?.field} BETWEEN ${n} AND ${i}`:`${e?.field} BETWEEN ${n} AND ${i}`,e.active=!0)),e.range={min:n,max:i}}handleCheckboxChange(e,t,i){let n=i.target;t.active=n.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:n,minValue:s}=i.target;this.updateRangeExpressions(e,t,n,s),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:a,type:r}=e;if(e.selectedFields=s.map(({value:o})=>o),s.length){let o=s.map(({value:c})=>typeof c=="number"?c:`'${g(c)}'`);e.definitionExpression=r==="date"?o.map(c=>this.buildDateExpression(c,a)).join(" OR "):`${a} IN (${o.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let n=i.target,[s,a]=n.valueAsDate,r=s?f(Math.floor(s.getTime()),!0):void 0,o=a?f(Math.floor(a.getTime()),!0):void 0;(r||o)&&(e.definitionExpression=this.constructDefinitionExpression(e.field,r,o),e.range={min:r,max:o},e.active=!0,this.generateOutput(t))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let i=t.split(";").map(n=>JSON.parse(n));this.filterCount=this.applyFilters(i)}applyFilters(e){let t=0;return e.forEach(i=>{let n=this.filterLayerExpressions?.find(s=>s.id===i.layerId);n&&n.expressions?.forEach(s=>{s.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(s,i),t++)})}),t}activateExpression(e,t){e.active=!0,t.type==="range"?e.range=t.range:t.type==="select"&&(e.selectedFields=t.selectedFields)}createURLParamExpression(e,t){let{id:i,range:n,selectedFields:s,type:a}=t;return a==="string"||a==="coded-value"||t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down"?{type:"select",layerId:e.id,expressionId:i.toString(),selectedFields:s}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:e.id,expressionId:i.toString(),range:n}:{layerId:e.id,expressionId:i.toString()}}autoUpdateURLCheck(e){if(this.autoUpdateUrl){let t=e.toString()?`${window.location.pathname}?${e}`.trim():window.location.pathname;window.history.replaceState({},"",t)}}generateURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(window.location.search),t=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(n=>n.active).map(n=>JSON.stringify(this.createURLParamExpression(i,n)))||[])||[];this.filterCount=t.length,t.length>0?e.set("filter",t.join(";")):e.delete("filter"),this.autoUpdateURLCheck(e),this.urlParams=e}updateFilter(e,t,i){let{id:n}=e,s=this.view.map?.findLayerById(n)??this.view.map?.findTableById(n);if(s!=null)if(s.type==="point-cloud")this.updateFilterLayerPCLFilter(s,i);else if(s.type==="map-image"){let a=s.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(s,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:n}=i,s=this.getInitDefExprFromLayer(e),a=t?.length>0&&s!=null&&s!==""?`(${t.join(n)}) AND (${s})`:t.length>0?t.join(n):s;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){if(this.view==null)return;await this.view.map.loadAll(),this.handleLayerExpressionsUpdate()}async handleLayerExpressionsUpdate(){this.updateInitExpressions(),this.handleURLParams(),this.initExpressions()}async handleZoomTo(e){let t=e?.sublayerId?`#zoom-to-${e.id}-${e.sublayerId}`:`#zoom-to-${e.id}`,i=this.panelEl.querySelector(t),n=(s,a)=>{i&&(i.loading=s,i.disabled=a)};if(n(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let s=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(s)}n(!1,!1)}async getZoomToExtent(e){let i=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,n=i.type==="map-image"?i.findSublayerById(e.sublayerId):i;if(n&&n.type!=="point-cloud"&&p.includes(n?.type)){let s=await this.getQueryLayer(n),a=s.createQuery();a.where=s.definitionExpression??"1=1";let r=await s.queryExtent(a);this.zoomToExtent={...r,type:s.geometryType}}}applyFilterToQuery(e,t){let i=this.view.allLayerViews.find(({layer:s})=>s.id===t.id),n=i?.featureEffect?.filter??i.filter;n&&["objectIds","distance","geometry","spatialRelationship","units","where","timeExtent"].forEach(a=>{n[a]!=null&&(e[a]=n[a])})}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let n of e.expressions){let{active:s,definitionExpression:a,pointCloudFilters:r}=n;s&&a&&t.push(`(${a})`),s&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(e,t,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(e){return e.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(e,t,i){if(e==null)return;let n;if(!String(e).includes("e"))n=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[s,a]=String(e).split("e").map(c=>Number(c)),r=a+t;n=Math[i](+`${s}e${r}`)*Math.pow(10,-t)}return+n.toFixed(t)}roundMinNumberDown(e,t){return this.scientificRounding(e,t,"floor")}roundMaxNumberUp(e,t){return this.scientificRounding(e,t,"ceil")}roundNumber(e,t){return this.scientificRounding(e,t,"round")??e}setExpressionFormat(e,t,i){if(e?.popupTemplate!=null){let n=e?.popupTemplate.fieldInfos?.find(({fieldName:s})=>s===i);n?.format&&(t.format=n.format)}}getInitDefExprFromLayer(e){return e.type==="sublayer"?this.initMapImageExpressions?.[e?.layer?.id??""]?.[e.id]??"":this.initDefExpressions?.[e.id]??""}getInitDefExprFromLayerExpression(e){return e?.sublayerId!=null?this.initMapImageExpressions?.[e.id]?.[e.sublayerId]??"":this.initDefExpressions?.[e.id]??""}findFilterLayer(e){let i=this.view.map?.allLayers.concat(this.view.map?.allTables)?.find(({id:n})=>n===e.id);return i.type==="map-image"?i?.findSublayerById(e.sublayerId):i}createLabel(e,t){if(e.type==="coded-value")return e?.codedValues?.[t];if(e.type==="number"&&typeof t=="number"){let i=t;return e.format?.places!=null&&(i=this.roundNumber(t,e.format.places)),e.format?.digitSeparator?this.numberWithCommas(i):i}if(e.type==="date"&&!e.dateOnly){let i=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),n=new Date(e),s=new Date(n.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${s.getHours()}:${s.getMinutes()}:${s.getSeconds()}`,c=`${s.getFullYear()}-${s.getMonth()+1}-${s.getDate()}`;return`${t} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(e){let t=e.type==="sublayer"?await e.createFeatureLayer():e;if(!t)throw new Error("Failed to create feature layer");return t}applyCacheHint(e,t){e?.capabilities?.query?.supportsCacheHint&&(t.cacheHint=!0)}applyQueryGeometryFromExtentSelector(e){if(!this.extentSelector||!this.extentSelectorConfig)return;let t=this.getExtent(this.extentSelector,this.extentSelectorConfig);t&&(e.geometry=t,e.spatialRelationship="intersects")}updateInitExpressions(){if(this.view==null)return;let e=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},e.allLayers.concat(e.allTables).forEach(t=>{if(!p.includes(t.type))return;let i=t;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((n,s)=>(n[s.id]=s.definitionExpression??"",n),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}get el(){return x(this)}static get watchers(){return{view:["watchViewHandler"],layerExpressions:["watchLayerExpressions"]}}};I.style=k;export{I as instant_apps_filter_list};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{b as m}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{b as m}from"./HK7LGCJZ.js";import{a as f}from"./OBQ5ECDX.js";var i=class extends Error{constructor(t,e,s){super(t),this.status=s,this.url=e}};var c=class extends i{constructor(t,e,s,n){super(t,e,s),this.error=n}};function u(r){let{token:t,authentication:e}=r,s=()=>Promise.resolve(t);return e&&(s=e.getToken.bind(e,e.portal)),s()}function h(r,t,e,s){var n;let p=r,o=new Headers(t.headers);o.append("Content-Type","application/json"),s&&o.append("Authorization",`Bearer ${s}`);let d={headers:o,method:t.httpMethod||"GET",mode:t.mode,cache:t.cache,credentials:t.credentials},x=f({host:t.hubApiUrl||"https://hub.arcgis.com",path:`/api/discussions/${e}`});if(t.data)if(t.httpMethod==="GET"){let a=new URLSearchParams(t.data).toString();p+=`?${a}`}else d.body=JSON.stringify(t.data);let g=["/posts","/posts/search"].includes(r)&&(((n=t.data)===null||n===void 0?void 0:n.f)===m.CSV||o.get("Accept")==="text/csv"),l=[x.replace(/\/$/,""),p.replace(/^\//,"")].join("/");return fetch(l,d).then(a=>{if(a.ok)return g?a.text():a.json();{let{statusText:b,status:q}=a;return a.json().then(y=>{throw new c(b,l,q,JSON.stringify(y.message))})}})}function w(r,t){return u(t).then(e=>h(r,t,"v1",e))}function P(r,t){return u(t).then(e=>h(r,t,"v2",e))}export{w as a,P as b};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as l}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as l}from"./5M5CVIKP.js";import"./ZMPNHGIE.js";import"./3BGUPUE3.js";import"./P7U5QF6I.js";import"./BYBUA3SD.js";import{a as t}from"./HEU5ADOI.js";import"./RSJCSZWF.js";import"./JGMZYU54.js";import"./SF6257JR.js";import"./NUYU2UBS.js";import"./EJNMBFZU.js";import"./OBISJL4B.js";import"./DZR5OU2Z.js";import"./MCYHMQTR.js";import"./TPK7LVDB.js";import"./TVWOFQVC.js";import"./R4O6DVY6.js";import"./Q5X2S4MD.js";import"./47E56IWZ.js";import"./GVYKKXOF.js";import"./JO3IHRR7.js";import"./NAICN42V.js";import"./GZOFO77D.js";import"./ZUNKV2EF.js";import"./VLURIFFB.js";import"./2B3Q4HD7.js";import"./Y2VUFZUV.js";import"./WRLGEWRN.js";import"./MO6ELGZS.js";var n=async(e,s,r)=>{let o=s;return{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:t.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{scope:"/properties/isSharedUpdate",type:"Control",rule:{effect:t.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.createFollowers.any:translate}}`],disabled:[!1,!1,o.isSharedUpdate]}},{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.createFollowers.admins:translate}}`]}}]}]}]}},p=async(e,s,r)=>Object.assign({},l("hubFollowersGroup",r));export{p as buildDefaults,n as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
4
|
var p;(function(e){e.BMP="bmp",e.GIF="gif",e.JPG="jpg",e.JPG_PNG="jpgpng",e.PNG="png",e.PNG8="png8",e.PNG24="png24",e.TIFF="tiff",e.PNG32="png32",e.BIP="bip",e.BSQ="bsq",e.LERC="lerc",e.CSV="csv",e.EXCEL="excel",e.FEATURE_COLLECTION="featureCollection",e.FILE_GDB="filegdb",e.GEOJSON="geojson",e.GEO_PACKAGE="geoPackage",e.JSON="json",e.KML="kml",e.SHAPEFILE="shapefile",e.SQLITE="sqlite"})(p||(p={}));var t;(function(e){e.PENDING="pending",e.PROCESSING="processing",e.CONVERTING="converting",e.COMPLETED="completed",e.FAILED="failed"})(t||(t={}));var P=class extends Error{constructor(s){super(s.rawMessage),this.name="ArcgisHubDownloadError",this.message=s.rawMessage,this.messageId=s.messageId,this.operation=s.operation}};export{p as a,t as b,P as c};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as e}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as e}from"./2B3Q4HD7.js";var s=["hub:page:edit","hub:page:create"],a=Object.assign(Object.assign({},e),{properties:Object.assign({},e.properties)});export{s as a,a as b};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as i}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as i}from"./UGDH6OHK.js";import{a}from"./2SPBK2JC.js";import"./OBQ5ECDX.js";import"./72MDJVHR.js";import"./MNIQAXS4.js";import"./ROI7GMNK.js";import{a as o}from"./HHBX6OJB.js";import{a as s}from"./NSTT2IOP.js";import"./L4A3TP42.js";import"./HM3CN2LF.js";import"./BYBUA3SD.js";import{b as r}from"./HEU5ADOI.js";import"./RSJCSZWF.js";import"./JGMZYU54.js";import"./SF6257JR.js";import"./NUYU2UBS.js";import"./EJNMBFZU.js";import"./OBISJL4B.js";import"./DZR5OU2Z.js";import"./MCYHMQTR.js";import"./TPK7LVDB.js";import"./TVWOFQVC.js";import"./R4O6DVY6.js";import"./Q5X2S4MD.js";import"./47E56IWZ.js";import"./GVYKKXOF.js";import"./JO3IHRR7.js";import"./NAICN42V.js";import"./GZOFO77D.js";import"./ZUNKV2EF.js";import"./VLURIFFB.js";import"./2B3Q4HD7.js";import"./Y2VUFZUV.js";import"./WRLGEWRN.js";import"./MO6ELGZS.js";var d=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{type:"Control",scope:"/properties/name",labelKey:`${e}.fields.name.label`,options:{messages:[{type:r.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`}]}},{type:"Control",scope:"/properties/summary",labelKey:`${e}.fields.summary.label`,options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...a(e,l.thumbnail,i(l),"template",t.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await s(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,t)]}]},{type:"Section",labelKey:`${e}.sections.templateDetails.label`,elements:[{type:"Control",scope:"/properties/previewUrl",labelKey:`${e}.fields.previewUrl.label`,options:{helperText:{labelKey:`${e}.fields.previewUrl.helperText`},messages:[{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}}]}]});export{d as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as e,b as i,c as l,d as s,e as t}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as e,b as i,c as l,d as s,e as t}from"./27MRQWJF.js";import{a as r}from"./HEU5ADOI.js";import"./RSJCSZWF.js";import"./JGMZYU54.js";import"./SF6257JR.js";import"./NUYU2UBS.js";import"./EJNMBFZU.js";import"./OBISJL4B.js";import"./DZR5OU2Z.js";import"./MCYHMQTR.js";import"./TPK7LVDB.js";import"./TVWOFQVC.js";import"./R4O6DVY6.js";import"./Q5X2S4MD.js";import"./47E56IWZ.js";import"./GVYKKXOF.js";import"./JO3IHRR7.js";import"./NAICN42V.js";import"./GZOFO77D.js";import"./ZUNKV2EF.js";import"./VLURIFFB.js";import"./2B3Q4HD7.js";import"./Y2VUFZUV.js";import"./WRLGEWRN.js";import"./MO6ELGZS.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",clearOnHidden:!0,type:"number",messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d 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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as h,b as d}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as h,b as d}from"./DF5QXKGH.js";import{b as c}from"./MMSYI6GH.js";import{D as o,I as n,c as r,d as a,o as s}from"./5ELHQQNT.js";import"./MO6ELGZS.js";var m=r`/** @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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as s}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as s}from"./S2O7NNWL.js";import{a as l,b as p}from"./EIJGEZ3R.js";import"./P7U5QF6I.js";import{b as m}from"./HM3CN2LF.js";import{a}from"./BYBUA3SD.js";import"./MO6ELGZS.js";async function D(e){b(e);let{entity:t,format:o,context:r,progressCallback:n}=e;n&&n(p.PENDING);let c=w(e),{xmin:x,xmax:f,ymin:d,ymax:u}=c,{wkid:g}=c.spatialReference,i=Object.assign({},r.requestOptions);return i.httpMethod="GET",i.params={bbox:`${x},${d},${f},${u}`,bboxSR:`${g}`,f:"image",format:o,mosaicRule:'{"ascending":true,"mosaicMethod":"esriMosaicNorthwest","mosaicOperation":"MT_FIRST"}'},{type:"blob",blob:await m(`${t.url}/exportImage`,i),filename:h(t,o)}}function b(e){let{geometry:t}=e;if(t&&t.type!=="extent")throw new s("fetchExportImageDownloadFileUrl","Only extent geometric filters are supported for this type of download")}function w(e){let{entity:t,geometry:o}=e,r=a(t,"extendedProps.server.extent"),n=null;if(o?n=o:r&&(n=r),!n)throw new s("fetchExportImageDownloadFileUrl","Extent required for this download operation");return n}function h(e,t){let o=e.name||a(e,"extendedProps.server.name"),r=t.includes(l.PNG)?l.PNG:t;return`${o}.${r}`}export{D as fetchExportImageDownloadFile};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
var y={allRenderFn:!1,element:!0,event:!0,hasRenderFn:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!0,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},we="app",Re=Object.defineProperty,xe=(e,t)=>{for(var o in t)Re(e,o,{get:t[o],enumerable:!0})},Se="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml",_e=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},q=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),X="http://www.w3.org/1999/xlink",w=typeof window<"u"?window:{};w.HTMLElement;var N={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,n)=>e.addEventListener(t,o,n),rel:(e,t,o,n)=>e.removeEventListener(t,o,n),ce:(e,t)=>new CustomEvent(e,t)},ke=e=>Promise.resolve(e),j=!1,G=[],ie=[],Ee=(e,t)=>o=>{e.push(o),j||(j=!0,t&&N.$flags$&4?K(D):N.raf(D))},J=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){I(o)}e.length=0},D=()=>{J(G),J(ie),(j=G.length>0)&&N.raf(D)},K=e=>ke().then(e),Ce=Ee(ie,!0),Le=e=>e!=null&&e!==void 0,$e=e=>(e=typeof e,e==="object"||e==="function"),Ae=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oe={};xe(Oe,{err:()=>ce,map:()=>Fe,ok:()=>U,unwrap:()=>Me,unwrapErr:()=>Pe});var U=e=>({isOk:!0,isErr:!1,value:e}),ce=e=>({isOk:!1,isErr:!0,value:e});function Fe(e,t){if(e.isOk){let o=t(e.value);return o instanceof Promise?o.then(n=>U(n)):U(o)}if(e.isErr){let o=e.value;return ce(o)}throw"should never get here"}var Me=e=>{if(e.isOk)return e.value;throw e.value},Pe=e=>{if(e.isErr)return e.value;throw e.value},de=e=>{let t=ee(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&fe(t,e.tagName).forEach(n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(De(n,Q(n),!1).length?n.hidden=!0:n.hidden=!1)});let o=0;for(o=0;o<t.length;o++){let n=t[o];n.nodeType===1&&ee(n,"childNodes").length&&de(n)}},je=e=>{let t=[];for(let o=0;o<e.length;o++){let n=e[o]["s-nr"]||void 0;n&&n.isConnected&&t.push(n)}return t};function fe(e,t,o){let n=0,s=[],l;for(;n<e.length;n++)l=e[n],l["s-sr"]&&(!t||l["s-hn"]===t)&&o===void 0&&s.push(l),s=[...s,...fe(l.childNodes,t,o)];return s}var De=(e,t,o=!0)=>{let n=[];(o&&e["s-sr"]||!e["s-sr"])&&n.push(e);let s=e;for(;s=s.nextSibling;)Q(s)===t&&(o||!s["s-sr"])&&n.push(s);return n},Z=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",Q=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Ue(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;let t=o=>function(n){let s=[],l=this["s-sn"];n?.flatten&&console.error(`
|
5
|
+
Flattening is not supported for Stencil non-shadow slots.
|
6
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
7
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
8
|
+
`);let r=this["s-cr"].parentElement;return(r.__childNodes?r.childNodes:je(r.childNodes)).forEach($=>{l===Q($)&&s.push($)}),o?s.filter($=>$.nodeType===1):s}.bind(e);e.assignedElements=t(!0),e.assignedNodes=t(!1)}function ee(e,t){if("__"+t in e){let o=e["__"+t];return typeof o!="function"?o:o.bind(e)}else return typeof e[t]!="function"?e[t]:e[t].bind(e)}var A=(e,t="")=>()=>{},Be=(e,t,...o)=>{let n=null,s=null,l=null,r=!1,$=!1,d=[],f=i=>{for(let c=0;c<i.length;c++)n=i[c],Array.isArray(n)?f(n):n!=null&&typeof n!="boolean"&&((r=!$e(n))&&(n=String(n)),r&&$?d[d.length-1].$text$+=n:d.push(r?B(null,n):n),$=r)};f(o);let u=B(e,null);return u.$attrs$=t,d.length>0&&(u.$children$=d),u.$key$=s,u.$name$=l,u},B=(e,t)=>{let o={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return o.$attrs$=null,o.$key$=null,o.$name$=null,o},We={},ze=e=>e&&e.$tag$===We,V=e=>{let t=Ae(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};V("::slotted");V(":host");V(":host-context");var He=(e,t,o)=>{let n=N.ce(t,o);return e.dispatchEvent(n),n},te=(e,t,o,n,s,l,r)=>{if(o===n)return;let $=q(e,t),d=t.toLowerCase();if(t==="class"){let f=e.classList,u=ne(o),i=ne(n);f.remove(...u.filter(c=>c&&!i.includes(c))),f.add(...i.filter(c=>c&&!u.includes(c)))}else if(t==="style"){for(let f in o)(!n||n[f]==null)&&(f.includes("-")?e.style.removeProperty(f):e.style[f]="");for(let f in n)(!o||n[f]!==o[f])&&(f.includes("-")?e.style.setProperty(f,n[f]):e.style[f]=n[f])}else if(t!=="key")if(t==="ref")n&&n(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):q(w,d)?t=d.slice(2):t=d[2]+t.slice(3),o||n){let f=t.endsWith(ue);t=t.replace(Ke,""),o&&N.rel(e,t,o,f),n&&N.ael(e,t,n,f)}}else{let f=$e(n);if(($||f&&n!==null)&&!s)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{let i=n??"";t==="list"?$=!1:(o==null||e[t]!=i)&&(typeof e.__lookupSetter__(t)=="function"?e[t]=i:e.setAttribute(t,i))}}catch{}let u=!1;d!==(d=d.replace(/^xlink\:?/,""))&&(t=d,u=!0),n==null||n===!1?(n!==!1||e.getAttribute(t)==="")&&(u?e.removeAttributeNS(X,t):e.removeAttribute(t)):(!$||l&4||s)&&!f&&e.nodeType===1&&(n=n===!0?"":n,u?e.setAttributeNS(X,t,n):e.setAttribute(t,n))}},Ie=/\s/,ne=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),!e||typeof e!="string"?[]:e.split(Ie)),ue="Capture",Ke=new RegExp(ue+"$"),W=(e,t,o,n)=>{let s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,l=e&&e.$attrs$||{},r=t.$attrs$||{};for(let $ of oe(Object.keys(l)))$ in r||te(s,$,l[$],void 0,o,t.$flags$);for(let $ of oe(Object.keys(r)))te(s,$,l[$],r[$],o,t.$flags$)};function oe(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var L,O,T,z=!1,F=!1,Y=!1,h=!1,M=(e,t,o)=>{var n;let s=t.$children$[o],l=0,r,$,d;if(z||(Y=!0,s.$tag$==="slot"&&(s.$flags$|=s.$children$?2:1)),s.$text$!==null)r=s.$elm$=w.document.createTextNode(s.$text$);else if(s.$flags$&1)r=s.$elm$=w.document.createTextNode(""),W(null,s,h);else{if(h||(h=s.$tag$==="svg"),!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(r=s.$elm$=w.document.createElementNS(h?Se:Te,!z&&y.slotRelocation&&s.$flags$&2?"slot-fb":s.$tag$),h&&s.$tag$==="foreignObject"&&(h=!1),W(null,s,h),Le(L)&&r["s-si"]!==L&&r.classList.add(r["s-si"]=L),s.$children$)for(l=0;l<s.$children$.length;++l)$=M(e,s,l),$&&r.appendChild($);s.$tag$==="svg"?h=!1:r.tagName==="foreignObject"&&(h=!0)}return r["s-hn"]=T,s.$flags$&3&&(r["s-sr"]=!0,r["s-cr"]=O,r["s-sn"]=s.$name$||"",r["s-rf"]=(n=s.$attrs$)==null?void 0:n.ref,Ue(r),d=e&&e.$children$&&e.$children$[o],d&&d.$tag$===s.$tag$&&e.$elm$&&_(e.$elm$,!1),ve(O,r,t.$elm$,e?.$elm$)),r},_=(e,t)=>{N.$flags$|=1;let o=Array.from(e.__childNodes||e.childNodes);e["s-sr"]&&y.experimentalSlotFixes;for(let n=o.length-1;n>=0;n--){let s=o[n];s["s-hn"]!==T&&s["s-ol"]&&(R(k(s).parentNode,s,k(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,Y=!0),t&&_(s,t)}N.$flags$&=-2},pe=(e,t,o,n,s,l)=>{let r=e["s-cr"]&&e["s-cr"].parentNode||e,$;for(r.shadowRoot&&r.tagName===T&&(r=r.shadowRoot);s<=l;++s)n[s]&&($=M(null,o,s),$&&(n[s].$elm$=$,R(r,$,k(t))))},he=(e,t,o)=>{for(let n=t;n<=o;++n){let s=e[n];if(s){let l=s.$elm$;me(s),l&&(F=!0,l["s-ol"]?l["s-ol"].remove():_(l,!0),l.remove())}}},Qe=(e,t,o,n,s=!1)=>{let l=0,r=0,$=0,d=0,f=t.length-1,u=t[0],i=t[f],c=n.length-1,a=n[0],p=n[c],v,m;for(;l<=f&&r<=c;)if(u==null)u=t[++l];else if(i==null)i=t[--f];else if(a==null)a=n[++r];else if(p==null)p=n[--c];else if(C(u,a,s))x(u,a,s),u=t[++l],a=n[++r];else if(C(i,p,s))x(i,p,s),i=t[--f],p=n[--c];else if(C(u,p,s))(u.$tag$==="slot"||p.$tag$==="slot")&&_(u.$elm$.parentNode,!1),x(u,p,s),R(e,u.$elm$,i.$elm$.nextSibling),u=t[++l],p=n[--c];else if(C(i,a,s))(u.$tag$==="slot"||p.$tag$==="slot")&&_(i.$elm$.parentNode,!1),x(i,a,s),R(e,i.$elm$,u.$elm$),i=t[--f],a=n[++r];else{for($=-1,d=l;d<=f;++d)if(t[d]&&t[d].$key$!==null&&t[d].$key$===a.$key$){$=d;break}$>=0?(m=t[$],m.$tag$!==a.$tag$?v=M(t&&t[r],o,$):(x(m,a,s),t[$]=void 0,v=m.$elm$),a=n[++r]):(v=M(t&&t[r],o,r),a=n[++r]),v&&R(k(u.$elm$).parentNode,v,k(u.$elm$))}l>f?pe(e,n[c+1]==null?null:n[c+1].$elm$,o,n,r,c):r>c&&he(t,l,f)},C=(e,t,o=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:o?(o&&!e.$key$&&t.$key$&&(e.$key$=t.$key$),!0):e.$key$===t.$key$:!1,k=e=>e&&e["s-ol"]||e,x=(e,t,o=!1)=>{let n=t.$elm$=e.$elm$,s=e.$children$,l=t.$children$,r=t.$tag$,$=t.$text$,d;$===null?(h=r==="svg"?!0:r==="foreignObject"?!1:h,W(e,t,h),s!==null&&l!==null?Qe(n,s,t,l,o):l!==null?(e.$text$!==null&&(n.textContent=""),pe(n,null,t,l,0,l.length-1)):!o&&y.updatable&&s!==null&&he(s,0,s.length-1),h&&r==="svg"&&(h=!1)):(d=n["s-cr"])?d.parentNode.textContent=$:e.$text$!==$&&(n.data=$)},b=[],ge=e=>{let t,o,n,s=e.__childNodes||e.childNodes;for(let l of s){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;let r=l["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==l["s-hn"])if(Z(t,r)){let $=b.find(d=>d.$nodeToRelocate$===t);F=!0,t["s-sn"]=t["s-sn"]||r,$?($.$nodeToRelocate$["s-sh"]=l["s-hn"],$.$slotRefNode$=l):(t["s-sh"]=l["s-hn"],b.push({$slotRefNode$:l,$nodeToRelocate$:t})),t["s-sr"]&&b.map(d=>{Z(d.$nodeToRelocate$,t["s-sn"])&&($=b.find(f=>f.$nodeToRelocate$===t),$&&!d.$slotRefNode$&&(d.$slotRefNode$=$.$slotRefNode$))})}else b.some($=>$.$nodeToRelocate$===t)||b.push({$nodeToRelocate$:t})}l.nodeType===1&&ge(l)}},me=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(me)},R=(e,t,o)=>(typeof t["s-sn"]=="string"&&t["s-sr"]&&t["s-cr"]&&ve(t["s-cr"],t,e,t.parentElement),e?.insertBefore(t,o));function ve(e,t,o,n){var s,l;let r;if(e&&typeof t["s-sn"]=="string"&&t["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(r=t["s-si"]||e.parentNode["s-sc"])){let $=t["s-sn"],d=t["s-hn"];if((s=o.classList)==null||s.add(r+"-s"),n&&(l=n.classList)!=null&&l.contains(r+"-s")){let f=(n.__childNodes||n.childNodes)[0],u=!1;for(;f;){if(f["s-sn"]!==$&&f["s-hn"]===d&&f["s-sr"]){u=!0;break}f=f.nextSibling}u||n.classList.remove(r+"-s")}}}var Ve=(e,t,o=!1)=>{var n,s,l,r,$;let d=e.$hostElement$,f=e.$cmpMeta$,u=e.$vnode$||B(null,null),i=ze(t)?t:Be(null,null,t);if(T=d.tagName,f.$attrsToReflect$&&(i.$attrs$=i.$attrs$||{},f.$attrsToReflect$.map(([c,a])=>i.$attrs$[a]=d[c])),o&&i.$attrs$)for(let c of Object.keys(i.$attrs$))d.hasAttribute(c)&&!["key","ref","style","class"].includes(c)&&(i.$attrs$[c]=d[c]);i.$tag$=null,i.$flags$|=4,e.$vnode$=i,i.$elm$=u.$elm$=d.shadowRoot||d,L=d["s-sc"],z=!!(f.$flags$&1)&&!(f.$flags$&128),O=d["s-cr"],F=!1,x(u,i,o);{if(N.$flags$|=1,Y){ge(i.$elm$);for(let c of b){let a=c.$nodeToRelocate$;if(!a["s-ol"]&&w.document){let p=w.document.createTextNode("");p["s-nr"]=a,R(a.parentNode,a["s-ol"]=p,a)}}for(let c of b){let a=c.$nodeToRelocate$,p=c.$slotRefNode$;if(p){let v=p.parentNode,m=p.nextSibling;{let E=(n=a["s-ol"])==null?void 0:n.previousSibling;for(;E;){let g=(s=E["s-nr"])!=null?s:null;if(g&&g["s-sn"]===a["s-sn"]&&v===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===a||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){m=g;break}}E=E.previousSibling}}let Ne=a.__parentNode||a.parentNode,be=a.__nextSibling||a.nextSibling;(!m&&v!==Ne||be!==m)&&a!==m&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),R(v,a,m),a.nodeType===1&&a.tagName!=="SLOT-FB"&&(a.hidden=(l=a["s-ih"])!=null?l:!1)),a&&typeof p["s-rf"]=="function"&&p["s-rf"](p)}else a.nodeType===1&&(o&&(a["s-ih"]=(r=a.hidden)!=null?r:!1),a.hidden=!0)}}F&&de(i.$elm$),N.$flags$&=-2,b.length=0}if(y.experimentalScopedSlotChanges&&f.$flags$&2){let c=i.$elm$.__childNodes||i.$elm$.childNodes;for(let a of c)a["s-hn"]!==T&&!a["s-sh"]&&(o&&a["s-ih"]==null&&(a["s-ih"]=($=a.hidden)!=null?$:!1),a.hidden=!0)}O=void 0},Ye=(e,t)=>{if(t&&!e.$onRenderResolve$&&t["s-p"]){let o=t["s-p"].push(new Promise(n=>e.$onRenderResolve$=()=>{t["s-p"].splice(o-1,1),n()}))}},ye=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return Ye(e,e.$ancestorComponent$),Ce(()=>qe(e,t))},qe=(e,t)=>{let o=e.$hostElement$,n=A("scheduleUpdate",e.$cmpMeta$.$tagName$),s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=S(s,"componentWillUpdate",void 0,o),l=se(l,()=>S(s,"componentWillRender",void 0,o)),n(),se(l,()=>Ge(e,s,t))},se=(e,t)=>Xe(e)?e.then(t).catch(o=>{console.error(o),t()}):t(),Xe=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ge=async(e,t,o)=>{var n;let s=e.$hostElement$,l=A("update",e.$cmpMeta$.$tagName$),r=s["s-rc"],$=A("render",e.$cmpMeta$.$tagName$);Je(e,t,s,o),r&&(r.map(d=>d()),s["s-rc"]=void 0),$(),l();{let d=(n=s["s-p"])!=null?n:[],f=()=>Ze(e);d.length===0?f():(Promise.all(d).then(f),e.$flags$|=4,d.length=0)}},H=null,Je=(e,t,o,n)=>{try{H=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(y.hasRenderFn||y.reflect)&&(y.vdomRender||y.reflect)&&(y.hydrateServerSide||Ve(e,t,n))}catch(s){I(s,e.$hostElement$)}return H=null,null},le=()=>H,Ze=e=>{let t=e.$cmpMeta$.$tagName$,o=e.$hostElement$,n=A("postUpdate",t),s=o,l=e.$ancestorComponent$;S(s,"componentDidRender",void 0,o),e.$flags$&64?(S(s,"componentDidUpdate",void 0,o),n()):(e.$flags$|=64,tt(o),S(s,"componentDidLoad",void 0,o),n(),e.$onReadyResolve$(o),l||et()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&K(()=>ye(e,!1)),e.$flags$&=-517},re=e=>{{let t=_e(e),o=t.$hostElement$.isConnected;return o&&(t.$flags$&18)===2&&ye(t,!1),o}},et=e=>{K(()=>He(w,"appload",{detail:{namespace:we}}))},S=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(s){I(s,n)}},tt=e=>{var t;return e.classList.add((t=y.hydratedSelectorName)!=null?t:"hydrated")},nt=(e,t,o)=>{let n=e.get(t);n?n.includes(o)||n.push(o):e.set(t,[o])},ot=(e,t)=>{let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>{o=0,e(...n)},t)}},st=e=>!("isConnected"in e)||e.isConnected,ae=ot(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(st))},2e3),lt=()=>{if(typeof le!="function")return{};let e=new Map;return{dispose:()=>e.clear(),get:t=>{let o=le();o&&nt(e,t,o)},set:t=>{let o=e.get(t);o&&e.set(t,o.filter(re)),ae(e)},reset:()=>{e.forEach(t=>t.forEach(re)),ae(e)}}},P=e=>typeof e=="function"?e():e,rt=(e,t=(o,n)=>o!==n)=>{let o=P(e),n=new Map(Object.entries(o??{})),s={dispose:[],get:[],set:[],reset:[]},l=()=>{n=new Map(Object.entries(P(e)??{})),s.reset.forEach(i=>i())},r=()=>{s.dispose.forEach(i=>i()),l()},$=i=>(s.get.forEach(c=>c(i)),n.get(i)),d=(i,c)=>{let a=n.get(i);t(c,a,i)&&(n.set(i,c),s.set.forEach(p=>p(i,c,a)))},f=typeof Proxy>"u"?{}:new Proxy(o,{get(i,c){return $(c)},ownKeys(i){return Array.from(n.keys())},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},has(i,c){return n.has(c)},set(i,c,a){return d(c,a),!0}}),u=(i,c)=>(s[i].push(c),()=>{at(s[i],c)});return{state:f,get:$,set:d,on:u,onChange:(i,c)=>{let a=u("set",(v,m)=>{v===i&&c(m)}),p=u("reset",()=>c(P(e)[i]));return()=>{a(),p()}},use:(...i)=>{let c=i.reduce((a,p)=>(p.set&&a.push(u("set",p.set)),p.get&&a.push(u("get",p.get)),p.reset&&a.push(u("reset",p.reset)),p.dispose&&a.push(u("dispose",p.dispose)),a),[]);return()=>c.forEach(a=>a())},dispose:r,reset:l,forceUpdate:i=>{let c=n.get(i);s.set.forEach(a=>a(i,c,c))}}},at=(e,t)=>{let o=e.indexOf(t);o>=0&&(e[o]=e[e.length-1],e.length--)},it=(e,t)=>{let o=rt(e,t);return o.use(lt()),o};export{it as a};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as I}from"./D73WKPMQ.js";import"./ABK3KAVX.js";import{d as C}from"./UFTXRN5O.js";import{a as s}from"./SZGXZADB.js";import"./7L34ACJ2.js";import{a as h,b as r}from"./DF5QXKGH.js";import{a as x}from"./YZ4LCVJ7.js";import{D as $,E as m,F as v,I as L,c as f,d as l,g as w,o as b,q as y}from"./5ELHQQNT.js";import"./MO6ELGZS.js";var F=f`@layer{/** @license
|
5
|
+
* Copyright 2025 Esri
|
6
|
+
*
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
* you may not use this file except in compliance with the License.
|
9
|
+
* You may obtain a copy of the License at
|
10
|
+
*
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
*
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
* See the License for the specific language governing permissions and
|
17
|
+
* limitations under the License.
|
18
|
+
*/:host{display:block;--calcite-label-margin-bottom: 0px;--solutions-theme-foreground-color: var(--calcite-color-foreground-1)}.padding-1-2{padding:.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.z-index-1{z-index:1}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-right{border-right:2px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.position-absolute{position:absolute}.position-sticky{position:sticky}.height-50{height:50%}.top-51{top:51px}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-51{height:calc(100% - 51px)}.display-none{display:none!important}.adjusted-height-50_25{height:calc(50% + 25px)}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button,.esri-floor-filter__level-button,.esri-floor-filter__browse-button{width:40px!important;height:40px!important}.position-absolute-50{position:absolute;inset:50px 0 0}.position-absolute-0{position:absolute;inset:0}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;right:0;margin:100px 0}.floating-container .floating-button{box-shadow:0 10px 25px #5c5d5e99;-webkit-transform:translatey(5px);transform:translatey(5px);-webkit-transition:all .3s;transition:all .3s}.z-index-0{z-index:0!important}.z-index-1{z-index:1!important}.filter-content-space{--calcite-dialog-content-space: 0px}.background-dark{background:var(--calcite-color-background)}.filter-extent-container{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.filter-modal-buttons{display:flex;padding:12px;gap:10px}.filter-extent-message{align-items:center;display:flex;gap:5px}}`,_=class extends ${constructor(){super(),this.coverPageEnabled=!1,this.customInfoText="",this.defaultCenter="",this.defaultGlobalId="",this.defaultLayer="",this.defaultLevel="",this.defaultOid="",this.defaultWebmap="",this.honorMapFieldSettings=!1,this.introductionWindowEnabled=!1,this.enableAutoRefresh=!1,this.enableBasemap=!0,this.enableColumnReorder=!0,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableHome=!0,this.enableLegend=!0,this.enableSearch=!0,this.enableShare=!1,this.enableSnapping=!0,this.enableZoom=!0,this.mapInfos=[],this.onlyShowUpdatableLayers=!0,this.popupHeaderColor="",this.popupHeaderHoverColor="",this.popupHeaderHoverTextColor="",this.popupHeaderTextColor="",this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!0,this.theme="light",this.zoomAndScrollToSelected=!1,this.enableSelectionTool=!0,this.featureSelectionMode="multiple",this._deleteDialogOpen=!1,this._enableCreateFeatures=!0,this._hideFooter=!1,this._hideTable=!1,this._isMobile=!1,this._translations=x({name:"crowdsource-manager",blocking:!0}),this._layoutMode=s.GRID,this._panelOpen=!0,this._numSelected=0,this._filterOpen=!1,this._showInformationHeader=!0,this._layerExpressions=[],this._layerIds=[],this._isLoading=!0,this._mapExtentFilterChecked=!1,this._deleteIds=[],this._defaultAppLayoutHonored=!1,this._defaultCenterHonored=!1,this._defaultLevelHonored=!1,this._layerTable=h(),this._shouldSetMapView=!1,this._filterList=h(),this._mapCard=h(),this._isMapViewOnLoad=!1,this.showIntroductionWindow=b(),this.showCoverPage=b(),this.listenOn(window,"featureSelectionChange",this.featureSelectionChange),this.listenOn(window,"popupClosed",this.popupClosed),this.listenOn(window,"layoutChanged",this.layoutChanged),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"showDelete",this.showDelete),this.listenOn(window,"idsFound",this.idsFound),this.listenOn(window,"clearSelection",this.clearSelection),this.listenOn(window,"relatedRecordToggled",this.relatedRecordToggled),I(window)}static{this.properties={appLayout:1,appProxies:1,basemapConfig:0,coverPageEnabled:5,customInfoText:1,defaultAppLayout:1,defaultCenter:1,defaultGlobalId:1,defaultLayer:1,defaultLevel:1,defaultOid:1,defaultWebmap:1,honorMapFieldSettings:5,introductionWindowEnabled:5,enableAutoRefresh:5,enableBasemap:5,enableColumnReorder:5,enableCSV:5,enableFloorFilter:5,enableFullscreen:5,enableHome:5,enableLegend:5,enableSearch:5,enableShare:5,enableSnapping:5,enableZoom:5,mapInfos:0,onlyShowUpdatableLayers:5,popupHeaderColor:1,popupHeaderHoverColor:1,popupHeaderHoverTextColor:1,popupHeaderTextColor:1,searchConfiguration:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,theme:1,zoomAndScrollToSelected:5,zoomToScale:9,enableSelectionTool:5,featureSelectionMode:1,_deleteDialogOpen:16,_enableCreateFeatures:16,_hideFooter:16,_hideTable:16,_isMobile:16,_translations:16,_layer:16,_layoutMode:16,_mapInfo:16,_mapView:16,_panelOpen:16,_numSelected:16,_filterOpen:16,_showInformationHeader:16,_layerExpressions:16,_layerIds:16,_isLoading:16,_mapExtentFilterChecked:16,_deleteIds:16}}static{this.styles=F}static{this.shadowRootOptions=y}willUpdate(e){e.has("appLayout")&&this.appLayout&&this.appLayoutWatchHandler(this.appLayout,e.get("appLayout")),e.has("enableZoom")&&(this.hasUpdated||this.enableZoom!==!0)&&this.enableZoomWatchHandler()}appLayoutWatchHandler(e,t){e!==t&&(this._layerTable.value?.validateTableUpdate(e==="splitView"),this._setActiveLayout(e),this.appLayout==="mapView"&&this._layer?.isTable&&this._mapCard.value&&this._mapCard.value.updateLayer(),this._isMapViewOnLoad&&(this._layerTable.value&&this._layerTable.value.refresh(),this._isMapViewOnLoad=!1))}enableZoomWatchHandler(){this._initMapZoom()}async featureSelectionChange(e){this._numSelected=e.detail?.length}async popupClosed(){this._isMobile&&this.showHideMapPopupAndTable(!1)}async layoutChanged(e){this._layoutMode=e.detail}async mapChanged(e){this._mapChange=e.detail,this.showHideMapPopupAndTable(!1),await this._mapChange?.mapView.when(async()=>{await this._setMapView()})}async layerSelectionChange(e){let t=e.detail[0],i=this._mapView&&await C(this._mapView,t);i&&await i.when(()=>{i.isTable&&!this._isMobile&&(this.appLayout="tableView"),this._layer=i,this._initLayerExpressions(),this._handleFilterListReset(),this._isLoading=!1})}async showDelete(e){this._deleteIds=e.detail.ids,this._deleteDialogOpen=!0}async idsFound(e){this._layerIds=e.detail.layerIds}async clearSelection(){this.showHideMapPopupAndTable(!1)}async relatedRecordToggled(e){let t=e.detail;this._relatedTableLayer=t}load(){this._resizeObserver=new ResizeObserver(()=>this._onResize())}render(){let e=this.popupHeaderColor&&this.popupHeaderColor!=="#FFFFFF"?"border-width-0":"";return l`<calcite-shell class="position-relative"><calcite-panel class=${`width-full height-full ${e}`} .loading=${this._isLoading}>${this._getBody(this._layoutMode,this._panelOpen,this._hideTable)}</calcite-panel>${this._getFooter()}</calcite-shell>${this._filterModal()}${!this._isMobile&&this._deleteModal()||""}`}async updated(){this._shouldSetMapView&&(this._shouldSetMapView=!1,this._mapChange&&await this._setMapView())}loaded(){this._resizeObserver?.observe(this.el),!this._defaultAppLayoutHonored&&this.defaultAppLayout?(this._defaultAppLayoutHonored=!0,this.appLayout=this.defaultAppLayout):this.appLayout||(this.appLayout="splitView"),this._isMapViewOnLoad=this.appLayout==="mapView",this._setActiveLayout(this.appLayout)}_getFooter(){let e=this._numSelected>0,t=this._layerTable.value&&this._layerTable.value.selectedRelatedIds?.length>0?this._relatedTableLayer:this._layer,i=this._layer?.editingEnabled&&this._layer.capabilities?.operations.supportsDelete;return this._isMobile&&e&&!this._hideFooter?l`<div class=${"width-100"} slot=footer><div class="display-flex padding-1-2"><calcite-button appearance=solid id=solutions-show @click=${()=>this.showHideMapPopupAndTable(!0)} width=full>${this._translations.view.replace("{{n}}",this._numSelected.toString())}</calcite-button>${i?l`<delete-button class="padding-inline-start-1 width-full" id=solutions-delete .ids=${this.updateIdsToBeDeleted()} @deleteClicked=${this.updateIdsToBeDeleted} .layer=${t}></delete-button>`:void 0}</div></div>`:void 0}updateIdsToBeDeleted(){return this._deleteIds=this._layerTable.value&&this._layerTable.value.selectedRelatedIds?.length>0?this._layerTable.value.selectedRelatedIds:this._layerTable.value?.selectedIds,this._deleteIds}_setActiveLayout(e){e==="splitView"&&!this._panelOpen&&this._toggleLayout(),e==="mapView"?this._showMapInFullView():this._showMapInCardView()}_getDividerIcon(e,t){let i="";switch(e){case s.HORIZONTAL:i=t?"chevrons-up":"chevrons-down";break;case s.VERTICAL:i=t?"chevrons-left":"chevrons-right";break;case s.GRID:i=t?"chevrons-left":"chevrons-right";break}return i}_getMapSizeClass(e,t,i){let a="";switch(e){case s.HORIZONTAL:a=`${t&&!i?"height-1-2 display-grid":t&&i?"height-full":"height-0"} width-full position-relative`;break;case s.GRID:a=`height-full position-relative ${t?"width-1-3":"width-0"}`;break;case s.VERTICAL:a=`height-full position-relative ${t?"width-1-2":"width-0"}`;break}return a}_getTableSizeClass(e,t){let i="";switch(e){case s.HORIZONTAL:i=`${t?"height-1-2":"height-full"} width-full display-flex flex-column`;break;case s.GRID:i=`${t?"width-2-3":"width-full"} height-full display-flex`;break;case s.VERTICAL:i=`${t?"width-1-2":"width-full"} height-full display-flex`;break}return i}_getBody(e,t,i){let a=e===s.HORIZONTAL?"":"display-flex",o=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`<calcite-panel class="width-full height-full position-absolute"><div class=${`width-full height-full overflow-hidden ${a}`}>${this._getMapAndCard(e,t,i)}${this._getTable(e,t,i)}</div>${this.coverPageEnabled&&l`<div class="floating-container" @click=${this.coverPageButtonClick}><calcite-button appearance=solid class=${`floating-button ${o}`} icon-start=content-minimal kind=neutral label round scale=l split-child=primary width=auto></calcite-button></div>`||""}${this.introductionWindowEnabled&&l`<div class="floating-container" @click=${this.infoButtonClick}><calcite-button appearance=solid class=${`floating-button ${o}`} icon-start=information-letter kind=neutral label round scale=l split-child=primary width=auto></calcite-button></div>`||""}</calcite-panel>`}infoButtonClick(){this.showIntroductionWindow.emit()}coverPageButtonClick(){this.showCoverPage.emit()}_getMapAndCard(e,t,i){let a=this._getMapSizeClass(e,t,i);return l`<div class=${`${a} overflow-hidden z-index-1`}>${this._getMapNode(t)}${this._getPopupExpandNode()}</div>`}_getMapNode(e){let t=this.appLayout==="mapView",i=this.appLayout==="tableView",a=this._isMobile?"height-full":t||i?"position-absolute-0":this._layoutMode===s.HORIZONTAL&&(!this._isMobile||e)?"":"adjusted-height-50",o=this.defaultWebmap&&this.defaultLayer,n=this.enableSelectionTool&&this.featureSelectionMode==="multiple"&&!this._layer?.isTable,d=["home","legend","search","fullscreen","basemap","floorfilter","selectiontool"],p=["map-picker","map-layer-picker"];return l`<div class=${`${a} overflow-hidden`} id=card-mapView><map-card .appLayout=${this.appLayout} .appProxies=${this.appProxies} .basemapConfig=${this.basemapConfig} class="width-full" .defaultLayerId=${o?this.defaultLayer:""} .defaultWebmapId=${this.defaultWebmap} .enableBasemap=${this.enableBasemap} .enableFloorFilter=${this.enableFloorFilter} .enableFullscreen=${this.enableFullscreen} .enableHome=${this.enableHome} .enableLegend=${this.enableLegend} .enableSearch=${this.enableSearch} .enableSelectionTool=${n} .enableShare=${this.enableShare} enable-single-expand .hide=${!this._isMobile&&i} zoom-tools-size=s .isMapLayout=${t} .isMobile=${this._isMobile} .mapInfo=${this._mapInfo} .mapInfos=${this.mapInfos?.filter(c=>c.visible!==!1)} map-widgets-index=0 map-widgets-position=top-left mobile-map-widgets-position=top-right map-widgets-size=m .showOnlyUpdatableLayers=${this.onlyShowUpdatableLayers} @toggleFilter=${this._toggleFilter} .selectedFeaturesIds=${this._layerTable.value?.selectedIds??[]} .selectedLayer=${this._layer} .shareIncludeEmbed=${this.shareIncludeEmbed} .shareIncludeSocial=${this.shareIncludeSocial} stack-tools .theme=${this.theme} .mapToolsOrder=${d} .mobileToolsOrder=${p} .zoomToScale=${this.zoomToScale} ${r(this._mapCard)}></map-card></div>`}_getPopupExpandNode(){let e=this._isMobile?"height-full":"height-full position-relative",t=this._isMobile&&this._showInformationHeader?"display-none height-0":"",i=this.popupHeaderColor?"":this._isMobile?"calcite-mode-light":"calcite-mode-dark",a=this._isMobile&&this._hideTable?"position-absolute-0 width-full height-full":this._isMobile?"display-none height-0":"",o=this.mapInfos?.length>1&&this.appLayout==="tableView"?"position-relative top-51":"",n=this.appLayout!=="tableView"?"position-sticky":"";return l`<div class=${`${i} ${e} ${a} ${o} ${n}`} style=${v({"--calcite-color-foreground-1":this.popupHeaderColor,"--calcite-color-foreground-2":this.popupHeaderHoverColor,"--calcite-color-text-3":this.popupHeaderTextColor,"--calcite-color-text-2":this.popupHeaderTextColor})}><calcite-panel>${!this._isMobile&&this._showInformationHeader||this._numSelected>0&&!this._isMobile?l`<div class=${`display-flex align-items-center ${t}`} slot=header-content><calcite-icon icon=information scale=s></calcite-icon><div class="padding-inline-start-75">${this._translations.information}</div></div>`:l`<div></div>`}${this._getCardNode()}</calcite-panel></div>`}_getCardNode(){let e=this.appLayout==="mapView",t=this.appLayout==="tableView",i=this._isMobile?"height-full":t&&this.mapInfos?.length>1?"adjusted-height-100-51":e||t?"height-full":this._numSelected>0&&!this._isMobile?"height-50":this._showInformationHeader?this._isMobile?"height-full":"height-50":"adjusted-height-50_25",a=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`<div class=${`width-50 height-full ${a}`}><card-manager class=${`${i} width-full`} .customInfoText=${this.customInfoText} .enableCreateFeatures=${this._enableCreateFeatures&&!this._isMobile} .enableEditGeometry=${this?._mapInfo?.enableEditGeometry} .enableSnapping=${this.enableSnapping} .isMobile=${this._isMobile} .layerOrTable=${this._layer} .mapView=${this?._mapView} @backFromCreateWorkFlow=${()=>{this._showInformationHeader=!0}} @createWorkFlowStarted=${()=>{this.appLayout=this._layer?.isTable?"tableView":"mapView",this._showInformationHeader=!1}} @featureOrRecordSubmitted=${()=>this._layerTable.value&&void this._layerTable.value.refresh()} .selectedFeaturesIds=${this._layerTable.value?.selectedIds} .selectingFeatureFromMap=${this.appLayout==="mapView"} .showSketchWidgets=${this._layer?.geometryType!=="point"} .zoomAndScrollToSelected=${this.zoomAndScrollToSelected}></card-manager></div>`}_getTable(e,t,i){let a=this.appLayout==="mapView",o=this.appLayout==="tableView",n=i&&this._isMobile?"visibility-hidden":a?"display-none":"",d=a?"height-full width-full z-index-0":"display-none",p=this._getTableSizeClass(e,t),c=e===s.HORIZONTAL?"horizontal":"vertical",T=e===s.HORIZONTAL?"header":"panel-start",u=this.defaultWebmap&&this.defaultLayer,g=this.defaultGlobalId?this.defaultGlobalId?.indexOf(",")>-1?this.defaultGlobalId.split(","):[this.defaultGlobalId]:void 0,S=this.defaultOid?this.defaultOid?.indexOf(",")>-1?this.defaultOid.split(",").map(M=>Number.parseInt(M,10)):[Number.parseInt(this.defaultOid,10)]:void 0;return l`<calcite-shell class=${`${p} border-bottom z-index-1`}>${this._isMobile?void 0:l`<calcite-action-bar class="border-sides" expand-disabled .layout=${c} slot=${T??w}>${this.getActions(e,t)}</calcite-action-bar>`}<div class=${`width-full height-full position-relative z-index-0 ${n}`}><layer-table .appLayout=${this.appLayout} .defaultGlobalId=${u?g:void 0} .defaultLayerId=${u?this.defaultLayer:""} .defaultOid=${u&&!g?S:void 0} .enableAutoRefresh=${this.enableAutoRefresh} .enableCSV=${this.enableCSV} .enableColumnReorder=${this.enableColumnReorder} .enableInlineEdit=${this?._mapInfo?.enableInlineEdit} .enableShare=${this.enableShare} .featureSelectionMode=${this.featureSelectionMode} .honorMapFieldSettings=${this.honorMapFieldSettings} .isMobile=${this._isMobile} .mapHidden=${o} .mapInfo=${this._mapInfo} .mapView=${this?._mapView} .showOnlyUpdatableLayers=${this.onlyShowUpdatableLayers} @toggleFilter=${this._toggleFilter} .shareIncludeEmbed=${this.shareIncludeEmbed} .shareIncludeSocial=${this.shareIncludeSocial} .showNewestFirst=${this.showNewestFirst} .zoomAndScrollToSelected=${this.zoomAndScrollToSelected} .zoomToScale=${this.zoomToScale} ${r(this._layerTable)}></layer-table></div><div class=${m(d)} id=full-map-view></div></calcite-shell>`}getActions(e,t){let i=this._getDividerIcon(e,t),a=t?this._translations.close:this._translations.open,o="toggle-layout";return l`<calcite-action .active=${this.appLayout==="splitView"} class="toggle-node" .disabled=${this._layer?.isTable} icon=browser id=browser-action @click=${()=>{this.appLayout="splitView"}} text></calcite-action><calcite-tooltip placement=right reference-element=browser-action><span>${this._translations.splitView}</span></calcite-tooltip><calcite-action .active=${this.appLayout==="tableView"} class="toggle-node" icon=dock-left id=dock-left-action @click=${()=>{this.appLayout="tableView"}} text></calcite-action><calcite-tooltip placement=right reference-element=dock-left-action><span>${this._translations.tableView}</span></calcite-tooltip><calcite-action .active=${this.appLayout==="mapView"} class="toggle-node" .disabled=${this._layer?.isTable} icon=browser-map id=browser-map-action @click=${()=>{this.appLayout="mapView"}} text></calcite-action><calcite-tooltip placement=right reference-element=browser-map-action><span>${this._translations.mapView}</span></calcite-tooltip><calcite-action class="toggle-node" .icon=${i} id=${o} @click=${()=>this._toggleLayout()} slot=actions-end text></calcite-action><calcite-tooltip placement=bottom .referenceElement=${o}><span>${a}</span></calcite-tooltip>`}_deleteModal(){let e=(this._layerTable.value?.selectedRelatedIds?.length??0)>0?this._relatedTableLayer:this._layer;return l`<delete-dialog id=deleteDialogId .ids=${this._deleteIds} .layer=${e} @deleteDialogClose=${()=>this._deleteDialogOpen=!1} .open=${this._deleteDialogOpen}></delete-dialog>`}_mapExtentFilter(){let e=this._layerExpressions?.length===0;return l`<calcite-panel><div><calcite-block class=${m(this.theme==="dark"?"background-dark":"")} heading menu-placement=bottom-end open><div class="filter-extent-container"><div class="filter-extent-message"><span>${this._translations.filterByExtentMsg}</span><calcite-icon icon=information id=filter-message-info scale=s></calcite-icon><calcite-tooltip overlay-positioning=fixed placement=top reference-element=filter-message-info>${this._translations.filterByExtentTooltipMsg}</calcite-tooltip></div><calcite-switch .checked=${this._mapExtentFilterChecked} @calciteSwitchChange=${t=>{let i=!!(t.target.checked||this._filterList.value?.filterCount&&this._filterList.value?.filterCount>0);this._layerTable.value&&this._layerTable.value?.filterUpdate(i,t.target.checked),this._mapCard.value&&this._mapCard.value?.updateFilterState(i),this._mapExtentFilterChecked=t.target.checked}} scale=m></calcite-switch></div></calcite-block>${e&&l`<div class="filter-modal-buttons" slot=footer><calcite-button appearance=outline @click=${this._handleFilterListReset} width=full>${this._translations.Resetfilter}</calcite-button><calcite-button @click=${this._closeFilter} width=full>${this._translations.close}</calcite-button></div>`||""}</div></calcite-panel>`}_filterModal(){let e=this._layerExpressions?.length>0;return console.log("!this._layer?.isTable"),console.log(!this._layer?.isTable),console.log("showFilterModal"),console.log(e),l`<calcite-dialog class="filter-content-space" .heading=${this._translations.filter.replace("{{title}}",this._layer?.title||"")} id=solutions-filter-dialog kind=brand modal @calciteDialogClose=${()=>void this._closeFilter()} .open=${this._filterOpen} width=s>${!this._layer?.isTable&&this._mapExtentFilter()||""}${e&&this._mapView&&l`<instant-apps-filter-list close-btn .closeBtnOnClick=${()=>void this._closeFilter()} combobox-overlay-positioning=fixed .layerExpressions=${this._layerExpressions} @filterListReset=${this._handleFilterListReset} @filterUpdate=${()=>void this._updateFilter()} .view=${this._mapView} ${r(this._filterList)}></instant-apps-filter-list>`||""}</calcite-dialog>`}_updateFilter(){let e=this._filterList?.value?.filterCount&&this._filterList.value.filterCount>0||this._mapExtentFilterChecked;this._layerTable.value&&this._layerTable.value?.filterUpdate(e),this._mapCard.value&&this._mapCard.value.updateFilterState(e)}_initLayerExpressions(){let e=this._mapInfo?.filterConfig?.layerExpressions;this._layerExpressions=e?e.filter(t=>t.id===this._layer?.id):[]}_toggleFilter(){this._filterOpen=!this._filterOpen}_handleFilterListReset(){this._mapExtentFilterChecked=!1,this._mapCard.value&&this._mapCard.value.resetFilter(),this._layerTable.value&&this._layerTable.value.filterReset()}async _closeFilter(){this._filterOpen&&(this._filterOpen=!1,this._layerTable.value&&this._layerTable.value.closeFilter())}_onResize(){let e=this.el.offsetWidth<1024,t=!this._isMobile&&e;this._isMobile=e,t&&(this._panelOpen=!0),this._isMobile?(this.showHideMapPopupAndTable(!this._isMobile),this.appLayout="splitView"):(this._layer?.isTable&&(this.appLayout="tableView"),this._isMobile=!1),this._layoutMode=this._isMobile?s.HORIZONTAL:s.GRID}_toggleLayout(){this._panelOpen=!this._panelOpen}_showMapInCardView(){if(this.appLayout!=="mapView"){let e=document.getElementById("full-map-view")?.childNodes[0],t=document.getElementById("card-mapView");e&&t&&t.appendChild(e)}}_showMapInFullView(){let e=document.getElementById("card-mapView")?.childNodes,t;e?.forEach(a=>{!t&&a.mapView&&(t=a)});let i=document.getElementById("full-map-view");t&&i&&i.appendChild(t)}showHideMapPopupAndTable(e){this._hideTable=e,this._hideFooter=e}_getMapInfo(e){let t;return this.mapInfos.some(i=>i.id===e?(t={...i},!0):!1),t}async _setMapView(){let e=this._mapChange&&this._getMapInfo(this._mapChange.id);if(e&&this._mapChange){this._mapInfo=e,this._enableCreateFeatures=this._mapInfo.enableCreateFeatures,this._mapView=this._mapChange.mapView,this._initMapZoom(),this._mapView.popupEnabled=!1;let t=!this.defaultCenter||this._defaultCenterHonored?void 0:this.defaultCenter?.split(";").map(a=>Number.parseFloat(a)),i=!this.defaultLevel||this._defaultLevelHonored?void 0:Number.parseInt(this.defaultLevel,10);t&&i&&(await this._mapView.goTo({center:t,zoom:i}),this._defaultCenterHonored=!0,this._defaultLevelHonored=!0)}}_initMapZoom(){this.enableZoom?this.enableZoom&&this._mapView?.ui.add({component:"zoom",position:"top-left",index:0}):this._mapView?.ui.remove("zoom")}};L("crowdsource-manager",_);export{_ as CrowdsourceManager};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{b as e,e as r}from"./XAIHFHBP.js";import"./WMVWR4TI.js";import"./E7Z2VNGZ.js";import"./BNMMRZMR.js";import{d as t}from"./HK7LGCJZ.js";import"./SQVXPJDM.js";import"./OBQ5ECDX.js";import"./72MDJVHR.js";import"./MNIQAXS4.js";import"./ROI7GMNK.js";import"./L4A3TP42.js";import"./HM3CN2LF.js";import"./BYBUA3SD.js";import"./SF6257JR.js";import"./MO6ELGZS.js";async function c(a,n){let o=await e(Object.assign({channelId:a,data:{relations:[t.CHANNEL_ACL]}},n.hubRequestOptions));return r(o,n.currentUser)}export{c as fetchHubChannel};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a,b}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a,b}from"./OBISJL4B.js";import"./2B3Q4HD7.js";import"./Y2VUFZUV.js";import"./WRLGEWRN.js";import"./MO6ELGZS.js";export{a as ContentEditorTypes,b as ContentSchema};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as e}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as e}from"./JPPXUPM6.js";import"./F3SICAQV.js";import"./ZXQJLGRP.js";import"./Y2TULO3A.js";import"./MNIQAXS4.js";import"./L4A3TP42.js";import"./HM3CN2LF.js";import"./BYBUA3SD.js";import"./SZGXZADB.js";import{a,b as s}from"./DF5QXKGH.js";import{a as p}from"./YZ4LCVJ7.js";import{D as c,I as h,c as m,d as l,e as o,q as r}from"./5ELHQQNT.js";import"./MO6ELGZS.js";var u=m`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as h}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as h}from"./YZ4LCVJ7.js";import{D as d,I as p,c as a,d as l,g as c,o as n}from"./5ELHQQNT.js";import"./MO6ELGZS.js";var u=a`/** @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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
4
|
function o(e){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(e)}export{o as a};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import a from"./IHWO6477.js";import{a as y,b as _,c as v}from"./AZ3OMUAO.js";import"./ZXQJLGRP.js";import"./Y2TULO3A.js";import"./MNIQAXS4.js";import"./L4A3TP42.js";import{e as m}from"./HM3CN2LF.js";import"./BYBUA3SD.js";import{a as f,b as g}from"./DF5QXKGH.js";import{a as b}from"./YZ4LCVJ7.js";import{B as s,D as h,F as l,G as n,I as u,c as p,d as i,o as r}from"./5ELHQQNT.js";import"./MO6ELGZS.js";export default $arcgis.t(([{a:w,b:a,c:S,d:x,e:c,f:C}])=>{var P=p`/** @license
|
5
|
+
* Copyright 2025 Esri
|
6
|
+
*
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
* you may not use this file except in compliance with the License.
|
9
|
+
* You may obtain a copy of the License at
|
10
|
+
*
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
*
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
* See the License for the specific language governing permissions and
|
17
|
+
* limitations under the License.
|
18
|
+
*/.display-flex{display:flex}.header-override{--calcite-panel-header-content-space: 0px;--calcite-panel-header-background-color: var(--calcite-color-foreground-3);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: 0px;padding-inline-start:.5rem}.header-button-padding{padding-top:.5rem;padding-bottom:.5rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start{padding-inline-start:1rem}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}@media (max-width: 800px){.filter{display:none}.filter-button{display:block;position:absolute;top:.5rem;left:.5rem;z-index:999}}@media (min-width: 800px){.filter-button{display:none}}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-foreground-3);--calcite-panel-background-color: var(--calcite-color-foreground-3)}.position-relative{position:relative}`,d=class extends h{constructor(){super(),this.solutionsCount=0,this.sortType="numviews",this.filterOpen=!0,this.filters=[],this.isMobile=!1,this._translations=b({name:"solutions-all-shell",blocking:!0}),this._allSolutionsPanelRef=f(),this._authContextProvider=s({context:v}),this._isMobileContextProvider=s({context:_}),this._userSessionContextProvider=s({context:y}),this.filterRemoved=r(),this.tokenRefreshed=r(),this._mediaQueryChange=this._mediaQueryChange.bind(this)}static{this.properties={solutionsCount:9,sortType:1,filterOpen:16,filters:16,isMobile:16,_translations:16}}static{this.styles=P}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}connectedCallback(){super.connectedCallback();let e=new m({username:"",password:""});this._userSessionContextProvider.setValue(e),this._mediaQuery=window.matchMedia("(max-width: 800px)"),this._mediaQuery.addEventListener("change",this._mediaQueryChange),this._mediaQueryChange(this._mediaQuery)}async load(){let e=new C(w,a,c);await e.init(),e.SignedIn||e.signIn(),this._authContextProvider.setValue(e),e.RestUserSession&&this._userSessionContextProvider.setValue(e.RestUserSession)}render(){let e=this.filterOpen?"chevron-left":"chevron-right",t=this.isMobile?"justify-content-end":"";return i`<calcite-shell class="position-relative">${this.isMobile?"":this._getFilterPanel()}<calcite-button appearance=outline-fill class="filter-button mock-fab" icon-start=${e??n} kind=neutral @click=${this._toggleFilter} scale=m></calcite-button><calcite-panel class="header-override background-override"><div class=${`display-flex align-items-center ${t}`} slot=header-content><calcite-label class="label-override">${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label>${this._renderChips()}</div><div slot=header-actions-end>${this._renderDropdown()}</div>${this.isMobile&&this.filterOpen&&this._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></calcite-shell>`}disconnectedCallback(){super.disconnectedCallback(),this._mediaQuery?.removeEventListener("change",this._mediaQueryChange)}_getFilterPanel(){let e=this.filterOpen?{display:"block"}:"";return this.isMobile?i`<calcite-panel class="filter background-override" id=solutions-all-shell-panel-start style=${l(e)}><solutions-filter-panel @applyFilter=${this._filterApplied}></solutions-filter-panel></calcite-panel>`:i`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start slot=panel-start style=${l(e)} position=start><solutions-filter-panel is-all-solutions @applyFilter=${this._filterApplied}></solutions-filter-panel></calcite-shell-panel>`}_getSolutionsAllPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return i`<solutions-all-panel .agoSolutionsGroupId=${S} .enterpriseSolutionsGroupId=${x} .locale=${c} .orgUrl=${a} @cardsFetched=${this._updateSolutionCount} .portalUrl=${a} .sortType=${this.sortType} style=${l(e)} ${g(this._allSolutionsPanelRef)}></solutions-all-panel>`}_renderChips(){return this.filters.length>0?this.filters.map(e=>i`<calcite-chip appearance=outline-fill class="padding-start" closable kind=neutral .label=${e.displayValue} @calciteChipClose=${()=>this._chipClosed(e.displayValue)} .value=${e.displayValue}>${e.displayValue}</calcite-chip>`):void 0}_renderDropdown(){let e=[{displayValue:this._translations.sortByRelevance,sortType:"relevance"},{displayValue:this._translations.sortByTitle,sortType:"title"},{displayValue:this._translations.sortByMostPopular,sortType:"numviews"},{displayValue:this._translations.sortByNew,sortType:"new"},{displayValue:this._translations.sortByUpdated,sortType:"updated"},{displayValue:this._translations.sortBySuggestedForYou,sortType:"suggested"}];return i`<calcite-dropdown width=m><calcite-button appearance=outline-fill class="header-button-padding" icon-start=sort-descending kind=neutral slot=trigger>${this.isMobile?"":this._getString(this.sortType)}</calcite-button><calcite-dropdown-group group-title=${this._translations.chooseSortType??n}>${e.map(t=>this._getDropdownItem(t.displayValue,t.sortType))}</calcite-dropdown-group></calcite-dropdown>`}_getDropdownItem(e,t){return this.sortType!==t?i`<calcite-dropdown-item @click=${()=>this._sortChanged(t)}>${e}</calcite-dropdown-item>`:i`<calcite-dropdown-item @click=${()=>this._sortChanged(t)} selected>${e}</calcite-dropdown-item>`}_getString(e){let t="";switch(e){case"new":t=this._translations.sortByNew;break;case"numviews":t=this._translations.sortByMostPopular;break;case"relevance":t=this._translations.sortByRelevance;break;case"suggested":t=this._translations.sortBySuggestedForYou;break;case"title":t=this._translations.sortByTitle;break;case"updated":t=this._translations.sortByUpdated;break}return t}_updateSolutionCount(e){this.solutionsCount=e.detail}_sortChanged(e){this.sortType=e,this._allSolutionsPanelRef.value?.searchSolutions({sortType:e})}_chipClosed(e){this.filters=this.filters.filter(t=>t.displayValue!==e),this._allSolutionsPanelRef.value?.searchSolutions(),this.filterRemoved.emit(e)}_toggleFilter(){this.filterOpen=!this.filterOpen}_filterApplied(e){e.detail?("displayValue"in e.detail&&(this.filters=[e.detail]),this._allSolutionsPanelRef.value?.searchSolutions(e.detail)):(this.filters=[],this._allSolutionsPanelRef.value?.searchSolutions())}_mediaQueryChange(e){this.isMobile=e.matches,this._isMobileContextProvider.setValue(this.isMobile)}_setRefreshInterval(){let e=this._userSessionContextProvider.value,t=this._authContextProvider.value;if(e&&t){let k=(e.tokenExpires?.getTime()-Date.now())*.9;setInterval(async()=>{let o=await t?.refreshSession();if(o){this._userSessionContextProvider.setValue(o);let $=o?.token??"";this.tokenRefreshed.emit($)}},k)}}};u("solutions-all-shell",d);return d},a)
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import"./MO6ELGZS.js";var s=async(e,t,o)=>({type:"Layout",elements:[{type:"Section",labelKey:"shared.sections.mapSettings.label",elements:[{type:"Control",scope:"/properties/view/properties/mapSettings",labelKey:`${e}.fields.mapSettings.label`,options:{type:"Control",control:"hub-composite-input-map-settings",visibleSettings:["gallery"],showPreview:!0}}]}]});export{s 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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as S}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as S}from"./D73WKPMQ.js";import"./ABK3KAVX.js";import{a as v,c as u,d as c,e as m,f as C,g as x}from"./UFTXRN5O.js";import"./SZGXZADB.js";import{b as $}from"./7L34ACJ2.js";import{a as h,b as o}from"./DF5QXKGH.js";import{b as F}from"./MMSYI6GH.js";import{a as I}from"./YZ4LCVJ7.js";import{D as b,E as p,I as L,c as g,d as l,g as d,o as w,q as y}from"./5ELHQQNT.js";import"./MO6ELGZS.js";var V=g`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{D as d,I as h,c as n,d as s,g as c,o as l,q as o}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{D as d,I as h,c as n,d as s,g as c,o as l,q as o}from"./5ELHQQNT.js";import"./MO6ELGZS.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,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
4
|
var n;(function(i){i.InPerson="inPerson",i.Online="online",i.Both="both"})(n||(n={}));var o;(function(i){i.Unlimited="unlimited",i.Fixed="fixed"})(o||(o={}));export{n as a,o 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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{e as w}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{e as w}from"./UFTXRN5O.js";import"./SZGXZADB.js";import"./7L34ACJ2.js";import{a as p,b as g}from"./DF5QXKGH.js";import{b as m}from"./MMSYI6GH.js";import{a as _}from"./YZ4LCVJ7.js";import{D as l,E as n,I as c,c as h,d as o,o as s,q as d}from"./5ELHQQNT.js";import"./MO6ELGZS.js";var u=h`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as n,b as m}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as n,b as m}from"./DF5QXKGH.js";import{b as l}from"./MMSYI6GH.js";import{D as p,I as o,c as t,d as r}from"./5ELHQQNT.js";import"./MO6ELGZS.js";var h=t`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|