@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{b as e}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{b as e}from"./ZUNKV2EF.js";var r={if:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"}}}}},then:{type:"object",properties:{_metric:{type:"object",required:["value"]}}}},p={if:{type:"object",properties:{_metric:{type:"object",properties:{sourceTitle:{not:{const:""}}},required:["sourceTitle"]}}},then:{type:"object",properties:{_metric:{type:"object",required:["sourceLink"]}}}},o={if:{type:"object",properties:{_metric:{type:"object",properties:{valueType:{enum:["string","date"]}}}}},then:{type:"object",properties:{_metric:{type:"object",properties:{value:{type:"string"}}}}},else:{type:"object",properties:{_metric:{type:"object",properties:{value:{type:"number"}}}}}},i={if:{type:"object",properties:{_metric:{properties:{type:{const:e.static}}}}},then:{type:"object",properties:{_metric:{properties:{sourceLink:{format:"url"}}}}}};export{r as a,p as b,o as c,i as d};
|
@@ -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 w}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as w}from"./K54ZYQZT.js";import"./F3SICAQV.js";import{c as R,h as O,i as V}from"./UFTXRN5O.js";import{d as n,e as h,g as $}from"./SZGXZADB.js";import{d as x}from"./7L34ACJ2.js";import{a as g,b as _}from"./DF5QXKGH.js";import{a as E}from"./YZ4LCVJ7.js";import{D as v,I as L,c as I,d as p,o as m,q as k}from"./5ELHQQNT.js";import"./MO6ELGZS.js";var A=I`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,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 v}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as v}from"./RSJCSZWF.js";import{a as y}from"./JGMZYU54.js";import{a as p}from"./NUYU2UBS.js";import{a as d}from"./EJNMBFZU.js";import{a as E}from"./OBISJL4B.js";import{a as s}from"./DZR5OU2Z.js";import{a as n}from"./MCYHMQTR.js";import{a}from"./TPK7LVDB.js";import{a as l}from"./TVWOFQVC.js";import{a as e}from"./R4O6DVY6.js";import{a as r}from"./JO3IHRR7.js";import{a as t}from"./NAICN42V.js";import{a as i}from"./VLURIFFB.js";var x=[...r,...E,...t,...i,...p,...d,...s,...n,...a,...l,...e,...v,...y],f=["hub:card:stat"],C=["hub:card:follow"],b=["hub:card:eventGallery"],I=[...f,...C,...b],F=[...x,...I],T;(function(o){o.SHOW="SHOW",o.HIDE="HIDE",o.DISABLE="DISABLE",o.ENABLE="ENABLE",o.NONE="",o.RESET="RESET"})(T||(T={}));var c;(function(o){o.section="Section",o.control="Control",o.layout="Layout",o.slot="Slot",o.notice="Notice",o.text="Text"})(c||(c={}));var m;(function(o){o.accordion="accordion",o.accordionItem="accordionItem",o.block="block",o.stepper="stepper",o.step="step",o.subblock="subblock",o.card="card"})(m||(m={}));var u;(function(o){o.error="ERROR",o.success="SUCCESS",o.custom="CUSTOM"})(u||(u={}));export{T as a,u 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{b as i}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{b as i}from"./HM3CN2LF.js";import{a}from"./HEU5ADOI.js";async function n(r,t){let e=`${t.portal}/portals/${r}/categorySchema`;try{let{categorySchema:o}=await i(e,t);return s(o[0].categories,"/Categories")}catch{return[]}}function s(r,t){return r.map(e=>{var o;let c=`${t}/${e.title}`,l=e.title;return{value:c,label:l,children:!((o=e.categories)===null||o===void 0)&&o.length?s(e.categories,c):[]}})}async function h(r,t){let e=await n(t.portal.id,t.hubRequestOptions);return[{labelKey:"shared.fields.categories.label",scope:"/properties/categories",type:"Control",options:{control:"hub-field-input-combobox",items:e,allowCustomValues:!1,selectionMode:"ancestors",placeholderIcon:"select-category"},rules:[{effect:a.DISABLE,conditions:[!e.length]}]},{type:"Notice",options:{notice:{configuration:{id:"no-categories-notice",noticeType:"notice",closable:!1,icon:"exclamation-mark-triangle",kind:"warning",scale:"m"},message:"{{shared.fields.categories.noCategoriesNotice.body:translate}}",autoShow:!0,actions:[{label:"{{shared.fields.categories.noCategoriesNotice.link:translate}}",icon:"launch",href:"https://doc.arcgis.com/en/arcgis-online/reference/content-categories.htm",target:"_blank"}]}},rules:[{effect:a.SHOW,conditions:[!e.length]}]}]}export{h as a};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{c as n}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{c as n}from"./OBQ5ECDX.js";var A;(function(r){r.ASC="ASC",r.DESC="DESC"})(A||(A={}));var E;(function(r){r.CLAPPING_HANDS="clapping_hands",r.CONFUSED="confused",r.DOWN_ARROW="down_arrow",r.EYES="eyes",r.FACE_WITH_TEARS_OF_JOY="face_with_tears_of_joy",r.FIRE="fire",r.GRINNING="grinning",r.HEART="heart",r.LAUGH="laugh",r.ONE_HUNDRED="one_hundred",r.PARTYING="partying",r.PARTY_POPPER="party_popper",r.RAISING_HANDS="raising_hands",r.ROCKET="rocket",r.SAD="sad",r.SLIGHTLY_SMILING="slightly_smiling",r.SURPRISED="surprised",r.THINKING="thinking",r.THUMBS_UP="thumbs_up",r.THUMBS_DOWN="thumbs_down",r.TROPHY="trophy",r.UP_ARROW="up_arrow",r.WAVING_HAND="waving_hand",r.WINKING="winking",r.WORLD_MAP="world_map"})(E||(E={}));var p;(function(r){r.PUBLIC="public",r.ORG="org",r.PRIVATE="private"})(p||(p={}));var a;(function(r){r.PENDING="pending",r.APPROVED="approved",r.REJECTED="rejected",r.DELETED="deleted",r.HIDDEN="hidden",r.BLOCKED="blocked"})(a||(a={}));var T;(function(r){r.GROUP="group",r.CONTENT="content",r.BOARD="board"})(T||(T={}));var i;(function(r){r.HUB="hub",r.AGO="ago",r.URBAN="urban"})(i||(i={}));var u;(function(r){r.REPLIES="replies",r.REACTIONS="reactions",r.PARENT="parent",r.CHANNEL="channel",r.CHANNEL_ACL="channelAcl"})(u||(u={}));var _;(function(r){r.POST="post"})(_||(_={}));var d;(function(r){r.HAS_USER_POSTS="has_user_posts"})(d||(d={}));var N;(function(r){r.CREATED_AT="createdAt",r.CREATOR="creator",r.EDITOR="editor",r.ID="id",r.UPDATED_AT="updatedAt"})(N||(N={}));var D;(function(r){r.CSV="csv",r.JSON="json"})(D||(D={}));var I;(function(r){r.READ="read",r.WRITE="write",r.READWRITE="readWrite",r.MODERATE="moderate",r.MANAGE="manage",r.OWNER="owner"})(I||(I={}));var t;(function(r){r.BODY="body",r.CHANNEL_ID="channelId",r.CREATED_AT="createdAt",r.CREATOR="creator",r.DISCUSSION="discussion",r.EDITOR="editor",r.ID="id",r.PARENT_ID="parentId",r.STATUS="status",r.TITLE="title",r.UPDATED_AT="updatedAt"})(t||(t={}));var c;(function(r){r.Text="text",r.Announcement="announcement",r.Poll="poll",r.Question="question"})(c||(c={}));var O;(function(r){r.ACCESS="access",r.CREATED_AT="createdAt",r.CREATOR="creator",r.EDITOR="editor",r.ID="id",r.LAST_ACTIVITY="last_activity",r.UPDATED_AT="updatedAt"})(O||(O={}));var f;(function(r){r.CHANNEL_ACL="channelAcl"})(f||(f={}));var U;(function(r){r.ANONYMOUS_USER="anonymousUser",r.AUTHENTICATED_USER="authenticatedUser",r.GROUP="group",r.ORG="org",r.USER="user"})(U||(U={}));var h;(function(r){r.ADMIN="admin",r.MEMBER="member"})(h||(h={}));var v;(function(r){r.CONTENT="content"})(v||(v={}));function R(r){let e;return r.match(/(qaext|\.mapsqa)\.arcgis.com/)?e="https://hubqa.arcgis.com":r.match(/(devext|\.mapsdevext)\.arcgis.com/)?e="https://hubdev.arcgis.com":r.match(/(www|\.maps)\.arcgis.com/)&&(e="https://hub.arcgis.com"),e}function C(r){let e=r&&r.hubApiUrl;return e||R(n(r))}export{C as a,D as b,I as c,f as d,U as e,h as f,v as g};
|
@@ -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}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as n}from"./YZ4LCVJ7.js";import{D as o,I as r,c as s,d as t,q as i}from"./5ELHQQNT.js";import"./MO6ELGZS.js";var a=s`@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
|
function L(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t}function C(r){return Object.keys(r).some(e=>{let t=r[e];if(!t)return!1;switch(t&&t.toParam&&(t=t.toParam()),t.constructor.name){case"Array":return!1;case"Object":return!1;case"Date":return!1;case"Function":return!1;case"Boolean":return!1;case"String":return!1;case"Number":return!1;default:return!0}})}function N(r){let e={};return Object.keys(r).forEach(t=>{var n,o;let s=r[t];if(s&&s.toParam&&(s=s.toParam()),!s&&s!==0&&typeof s!="boolean"&&typeof s!="string")return;let i=s.constructor.name,a;switch(i){case"Array":let u=(o=(n=s[0])===null||n===void 0?void 0:n.constructor)===null||o===void 0?void 0:o.name;a=u==="Array"?s:u==="Object"?JSON.stringify(s):s.join(",");break;case"Object":a=JSON.stringify(s);break;case"Date":a=s.valueOf();break;case"Function":a=null;break;case"Boolean":a=s+"";break;default:a=s;break}(a||a===0||typeof a=="string"||Array.isArray(a))&&(e[t]=a)}),e}function J(r,e){return Array.isArray(e)&&e[0]&&Array.isArray(e[0])?e.map(t=>J(r,t)).join("&"):encodeURIComponent(r)+"="+encodeURIComponent(e)}function O(r){let e=N(r);return Object.keys(e).map(t=>J(t,e[t])).join("&")}var K=globalThis.FormData,me=globalThis.File,ge=globalThis.Blob;function W(r,e){let t=C(r)||e,n=N(r);if(t){let o=new K;return Object.keys(n).forEach(s=>{if(typeof Blob<"u"&&n[s]instanceof Blob){let i=n.fileName||n[s].name||s;o.append(s,n[s],i)}else o.append(s,n[s])}),o}else return O(r)}var b=class extends Error{constructor(e,t,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),e=e||"UNKNOWN_ERROR",t=t||"UNKNOWN_ERROR_CODE",this.name="ArcGISRequestError",this.message=t==="UNKNOWN_ERROR_CODE"?e:`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};function V(r){console&&console.warn&&console.warn.apply(console,[r])}function Q(){return Promise.resolve({fetch:globalThis.fetch,Headers:globalThis.Headers,Response:globalThis.Response,Request:globalThis.Request})}var q="@esri/arcgis-rest-js";function ie(){return globalThis.DEFAULT_ARCGIS_REQUEST_OPTIONS||{httpMethod:"POST",params:{f:"json"}}}var R=class extends b{constructor(e="AUTHENTICATION_ERROR",t="AUTHENTICATION_ERROR_CODE",n,o,s){super(e,t,n,o,s),this.name="ArcGISAuthError",this.message=t==="AUTHENTICATION_ERROR_CODE"?e:`${t}: ${e}`;let i=new.target.prototype;Object.setPrototypeOf(this,i)}retry(e,t=1){let n=0,o=(s,i)=>{n=n+1,e(this.url,this.options).then(a=>{let u=Object.assign(Object.assign({},this.options),{authentication:a});return X(this.url,u)}).then(a=>{s(a)}).catch(a=>{a.name==="ArcGISAuthError"&&n<t?o(s,i):a.name===this.name&&a.message===this.message&&n>=t?i(this):i(a)})};return new Promise((s,i)=>{o(s,i)})}};function ae(r,e,t,n,o){if(r.code>=400){let{message:s,code:i}=r;throw new b(s,i,r,e,n)}if(r.error){let{message:s,code:i,messageCode:a}=r.error,u=a||i||"UNKNOWN_ERROR_CODE";throw i===498||i===499?o||new R(s,u,r,e,n):new b(s,u,r,e,n)}if(r.status==="failed"||r.status==="failure"){let s,i="UNKNOWN_ERROR_CODE";try{s=JSON.parse(r.statusMessage).message,i=JSON.parse(r.statusMessage).code}catch{s=r.statusMessage||r.message}throw new b(s,i,r,e,n)}return r}function X(r,e){let t=ie(),n=Object.assign(Object.assign(Object.assign({httpMethod:"POST"},t),e),{params:Object.assign(Object.assign({},t.params),e.params),headers:Object.assign(Object.assign({},t.headers),e.headers)}),{httpMethod:o,rawResponse:s}=n,i=Object.assign({f:"json"},n.params),a=null,u={method:o,signal:n.signal,credentials:n.credentials||"same-origin"};n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&r.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let g;if(typeof n.authentication=="string"){let c=n.authentication;g={portal:"https://www.arcgis.com/sharing/rest",getToken:()=>Promise.resolve(c)},!n.authentication.startsWith("AAPK")&&!n.authentication.startsWith("AATK")&&!n.suppressWarnings&&!globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING&&(V("Using an oAuth 2.0 access token directly in the token option is discouraged. Consider using ArcGISIdentityManager or Application session. See https://esriurl.com/arcgis-rest-js-direct-token-warning for more information."),globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING=!0)}else g=n.authentication;let d=r;return(g?g.getToken(r).catch(c=>(c.url=r,c.options=n,a=c,Promise.resolve(""))):Promise.resolve("")).then(c=>{c.length&&(i.token=c),g&&g.getDomainCredentials&&(u.credentials=g.getDomainCredentials(r));let h={};if(u.method==="GET"){i.token&&n.hideToken&&typeof window>"u"&&(h["X-Esri-Authorization"]=`Bearer ${i.token}`,delete i.token);let f=O(i)===""?r:r+"?"+O(i);n.maxUrlLength&&f.length>n.maxUrlLength||!n.maxUrlLength&&f.length>2e3||i.token&&n.hideToken?(u.method="POST",c.length&&n.hideToken&&(i.token=c,delete h["X-Esri-Authorization"])):r=f}let E=new RegExp("/items/.+/updateResources").test(r);return u.method==="POST"&&(u.body=W(i,E)),u.headers=Object.assign(Object.assign({},h),n.headers),(typeof window>"u"||window&&typeof window.document>"u")&&!u.headers.referer&&(u.headers.referer=q),!C(i)&&!E&&(u.headers["Content-Type"]="application/x-www-form-urlencoded"),globalThis.fetch?globalThis.fetch(r,u):Q().then(({fetch:l})=>l(r,u))}).then(c=>{if(!c.ok)return c.json().then(h=>{let{status:E,statusText:l}=c,{message:f,details:T}=h.error,w=`${f}. ${T?T.join(" "):""}`.trim();throw new b(w,`HTTP ${E} ${l}`,h,r,n)}).catch(h=>{if(h.name==="ArcGISRequestError")throw h;let{status:E,statusText:l}=c;throw new b(l,`HTTP ${E}`,c,r,n)});if(s)return c;switch(i.f){case"json":return c.json();case"geojson":return c.json();case"html":return c.text();case"text":return c.text();default:return c.blob()}}).then(c=>{if((i.f==="json"||i.f==="geojson")&&!s){let h=ae(c,d,i,n,a);if(a){let E=r.toLowerCase().split(/\/rest(\/admin)?\/services\//)[0];n.authentication.federatedServers[E]={token:[],expires:new Date(Date.now()+86400*1e3)},a=null}return h}else return c})}function p(r,e={params:{f:"json"}}){let{request:t}=e,n=L(e,["request"]);return t?t(r,n):X(r,n).catch(o=>o instanceof R&&e.authentication&&typeof e.authentication!="string"&&e.authentication.canRefresh&&e.authentication.refreshCredentials?o.retry(()=>e.authentication.refreshCredentials(),1):Promise.reject(o))}function ce(r){let[e,t]=r.split("=");return{key:decodeURIComponent(e),value:decodeURIComponent(t)}}function Y(r){return!r||r.length<=0?{}:r.replace(/^#/,"").replace(/^\?/,"").split("&").reduce((e,t)=>{let{key:n,value:o}=ce(t);return e[n]=o,e},{})}var B=5*60*1e3;function v(r,e){let t=e;return t.rawResponse=!1,p(r,t).then(n=>{if("token"in n&&"expires"in n)return{token:n.token,username:e.params.username,expires:new Date(n.expires)};let o={token:n.access_token,username:n.username,expires:new Date(Date.now()+n.expires_in*1e3-B),ssl:n.ssl===!0};return n.refresh_token&&(o.refreshToken=n.refresh_token),n.refresh_token_expires_in&&(o.refreshTokenExpires=new Date(Date.now()+n.refresh_token_expires_in*1e3-B)),o})}function m(r){return typeof r!="string"||(r=r.trim(),r[r.length-1]==="/"&&(r=r.slice(0,-1))),r}var F=/^https?:\/\/(\S+)\.arcgis\.com.+/;function Z(r){return F.test(r)}function ue(r){if(!F.test(r))return r;switch(G(r)){case"dev":return"https://devext.arcgis.com/sharing/rest";case"qa":return"https://qaext.arcgis.com/sharing/rest";default:return"https://www.arcgis.com/sharing/rest"}}function G(r){if(!F.test(r))return null;let t=r.match(F)[1].split(".").pop();return t.includes("dev")?"dev":t.includes("qa")?"qa":"production"}function ee(r,e){let t=m(ue(e)).replace(/https?:\/\//,""),n=m(r).replace(/https?:\/\//,"");return new RegExp(n,"i").test(t)}function te(r,e){let t=Z(r),n=Z(e),o=G(r),s=G(e);return!!(t&&n&&o===s)}function re(r,e,t="https://www.arcgis.com/sharing/rest"){let n=`${t}/oauth2/validateAppAccess`;return p(n,{method:"POST",params:{f:"json",client_id:e,token:r}})}function Ge(r,e,t){let n=["params","httpMethod","rawResponse","authentication","hideToken","portal","credentials","maxUrlLength","headers","signal","suppressWarnings","request"],o=Object.assign(Object.assign({params:{}},t),r);return o.params=e.reduce((s,i)=>((r[i]||typeof r[i]=="boolean"||typeof r[i]=="number"&&r[i]===0)&&(s[i]=r[i]),s),o.params),n.reduce((s,i)=>(o[i]&&(s[i]=o[i]),s),{})}var x;(function(r){r.TOKEN_REFRESH_FAILED="TOKEN_REFRESH_FAILED",r.GENERATE_TOKEN_FOR_SERVER_FAILED="GENERATE_TOKEN_FOR_SERVER_FAILED",r.REFRESH_TOKEN_EXCHANGE_FAILED="REFRESH_TOKEN_EXCHANGE_FAILED",r.NOT_FEDERATED="NOT_FEDERATED",r.UNKNOWN_ERROR_CODE="UNKNOWN_ERROR_CODE"})(x||(x={}));var y=class extends Error{constructor(e="UNKNOWN_ERROR",t=x.UNKNOWN_ERROR_CODE,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),this.name="ArcGISTokenRequestError",this.message=`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};var D=class extends Error{constructor(){super("The user has denied your authorization request.");let t=new.target.prototype;Object.setPrototypeOf(this,t),this.name="ArcGISAccessDeniedError"}};var ne;(function(r){r.ArcGISRequestError="ArcGISRequestError",r.ArcGISAuthError="ArcGISAuthError",r.ArcGISAccessDeniedError="ArcGISAccessDeniedError",r.ArcGISTokenRequestError="ArcGISTokenRequestError"})(ne||(ne={}));var A=class{constructor(e){this.portal=e.portal?m(e.portal):"https://www.arcgis.com/sharing/rest",this._username=e.username}get username(){if(this._username)return this._username;if(this._user&&this._user.username)return this._user.username}getUsername(){return this.username?Promise.resolve(this.username):this.getUser().then(e=>e.username)}getUser(e){if(this._pendingUserRequest)return this._pendingUserRequest;if(this._user)return Promise.resolve(this._user);{let t=`${this.portal}/community/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingUserRequest=p(t,n).then(o=>(this._user=o,this._pendingUserRequest=null,o)),this._pendingUserRequest}}clearCachedUserInfo(){this._user=null}};var H;(function(r){r.Success="Succeeded",r.Failed="Failed",r.Waiting="Waiting",r.Cancelled="Cancelled",r.Cancelling="Cancelling",r.New="New",r.Executing="Executing",r.Submitted="Submitted",r.Failure="Failure",r.TimedOut="TimedOut",r.Error="Error",r.Status="Etatus",r.Unknown="Unknown"})(H||(H={}));function oe(r){let e=`${m(r.portal||"https://www.arcgis.com/sharing/rest")}/oauth2/revokeToken/`,t=r.token,n=r.clientId;delete r.portal,delete r.clientId,delete r.token;let o=Object.assign(Object.assign({},r),{httpMethod:"POST",params:{client_id:n,auth_token:t}});return p(e,o).then(s=>{if(!s.success)throw new b("Unable to revoke token",500,s,e,o);return s})}function M(r,e=window){return!e&&window&&(e=window),e.btoa(String.fromCharCode.apply(null,r)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function se(r,e=window){if(!e&&window&&(e=window),r&&e.isSecureContext&&e.crypto&&e.crypto.subtle){let n=new e.TextEncoder().encode(r);return e.crypto.subtle.digest("SHA-256",n).then(o=>M(new Uint8Array(o),e))}return Promise.resolve(null)}function z(r){!r&&window&&(r=window);let e=r.crypto.getRandomValues(new Uint8Array(32));return M(e)}function le(r){return typeof r.userId=="string"||typeof r.expires=="number"}var k=class r extends A{constructor(e){if(super(e),this.clientId=e.clientId,this._refreshToken=e.refreshToken,this._refreshTokenExpires=e.refreshTokenExpires,this.password=e.password,this._token=e.token,this._tokenExpires=e.tokenExpires,this.portal=e.portal?m(e.portal):"https://www.arcgis.com/sharing/rest",this.ssl=e.ssl,this.provider=e.provider||"arcgis",this.tokenDuration=e.tokenDuration||20160,this.redirectUri=e.redirectUri,this.server=e.server,this.referer=e.referer,this.federatedServers={},this.trustedDomains=[],e.server){let t=this.getServerRootUrl(e.server);this.federatedServers[t]={token:e.token,expires:e.tokenExpires}}this._pendingTokenRequests={}}get token(){return this._token}get tokenExpires(){return this._tokenExpires}get refreshToken(){return this._refreshToken}get refreshTokenExpires(){return this._refreshTokenExpires}get canRefresh(){return!!(this.username&&this.password||this.clientId&&this.refreshToken&&this.redirectUri)}static beginOAuth2(e,t){!t&&window&&(t=window);let{portal:n,provider:o,clientId:s,expiration:i,redirectUri:a,popup:u,popupWindowFeatures:g,locale:d,params:c,style:h,pkce:E,state:l}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",provider:"arcgis",expiration:20160,popup:!0,popupWindowFeatures:"height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes",locale:"",style:"",pkce:!0},e),f=l||z(t),T=`ARCGIS_REST_JS_AUTH_STATE_${s}`;t.localStorage.setItem(T,f);let w=`${m(n)}/oauth2/authorize`,I={client_id:s,response_type:E?"code":"token",expiration:i,redirect_uri:a,state:JSON.stringify({id:f,originalUrl:t.location.href}),locale:d,style:h};o!=="arcgis"&&(w=`${m(n)}/oauth2/social/authorize`,I.socialLoginProviderName=o,I.autoAccountCreateForSocial=!0);let $;if(E){let P=z(t),U=`ARCGIS_REST_JS_CODE_VERIFIER_${s}`;t.localStorage.setItem(U,P),$=se(P,t).then(function(_){I.code_challenge_method=_?"S256":"plain",I.code_challenge=_||P})}else $=Promise.resolve();return $.then(()=>{if(w=`${w}?${O(I)}`,c&&(w=`${w}&${O(c)}`),u)return new Promise((P,U)=>{t.addEventListener(`arcgis-rest-js-popup-auth-${s}`,_=>{if(_.detail.error==="access_denied"){let j=new D;return U(j),j}if(_.detail.errorMessage){let j=new R(_.detail.errorMessage,_.detail.error);return U(j),j}P(new r({clientId:s,portal:n,ssl:_.detail.ssl,token:_.detail.token,tokenExpires:_.detail.expires,username:_.detail.username,refreshToken:_.detail.refreshToken,refreshTokenExpires:_.detail.refreshTokenExpires,redirectUri:a}))},{once:!0}),t.open(w,"oauth-window",g),t.dispatchEvent(new CustomEvent("arcgis-rest-js-popup-auth-start"))});t.location.href=w})}static completeOAuth2(e,t){!t&&window&&(t=window);let{portal:n,clientId:o,popup:s,pkce:i,redirectUri:a}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",popup:!0,pkce:!0},e),u=`ARCGIS_REST_JS_AUTH_STATE_${o}`,g=t.localStorage.getItem(u),d=Y(i?t.location.search.replace(/^\?/,""):t.location.hash.replace(/^#/,"")),c=d&&d.state?JSON.parse(d.state):void 0;function h(l,f,T){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:{error:f,errorMessage:l}})),t.close();return}return T&&t.history.replaceState(t.history.state,"",T),f==="access_denied"?Promise.reject(new D):Promise.reject(new R(l,f))}function E(l,f){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:Object.assign({},l)})),t.close();return}return t.history.replaceState(t.history.state,"",f),new r({clientId:o,portal:n,ssl:l.ssl,token:l.token,tokenExpires:l.expires,username:l.username,refreshToken:l.refreshToken,refreshTokenExpires:l.refreshTokenExpires,redirectUri:a||location.href.replace(location.search,"")})}if(!g||!c)return h("No authentication state was found, call `ArcGISIdentityManager.beginOAuth2(...)` to start the authentication process.","no-auth-state");if(c.id!==g)return h("Saved client state did not match server sent state.","mismatched-auth-state");if(d.error){let l=d.error,f=d.error_description||"Unknown error";return h(f,l,c.originalUrl)}if(i&&d.code){let l=m(`${n}/oauth2/token/`),f=`ARCGIS_REST_JS_CODE_VERIFIER_${o}`,T=t.localStorage.getItem(f);return t.localStorage.removeItem(f),v(l,{httpMethod:"POST",params:{client_id:o,code_verifier:T,grant_type:"authorization_code",redirect_uri:a||location.href.replace(location.search,""),code:d.code}}).then(w=>E(Object.assign(Object.assign({},w),c),c.originalUrl)).catch(w=>h(w.originalMessage,w.code,c.originalUrl))}return!i&&d.access_token?Promise.resolve(E(Object.assign({token:d.access_token,expires:new Date(Date.now()+parseInt(d.expires_in,10)*1e3),ssl:d.ssl==="true",username:d.username},c),c.originalUrl)):h("Unknown error","oauth-error",c.originalUrl)}static fromParent(e,t){!t&&window&&(t=window);let n;return new Promise((o,s)=>{n=i=>{if(i.source===t.parent&&i.data)try{return o(r.parentMessageHandler(i))}catch(a){return s(a)}},t.addEventListener("message",n,!1),t.parent.postMessage({type:"arcgis:auth:requestCredential"},e)}).then(o=>(t.removeEventListener("message",n,!1),o))}static authorize(e,t){let{portal:n,clientId:o,expiration:s,redirectUri:i,state:a}=Object.assign({portal:"https://arcgis.com/sharing/rest",expiration:20160},e),u={client_id:o,expiration:s,response_type:"code",redirect_uri:i};a&&(u.state=a);let g=`${n}/oauth2/authorize?${O(u)}`;t.writeHead(301,{Location:g}),t.end()}static exchangeAuthorizationCode(e,t){let{portal:n,clientId:o,redirectUri:s}=Object.assign({portal:"https://www.arcgis.com/sharing/rest"},e);return v(`${n}/oauth2/token`,{params:{grant_type:"authorization_code",client_id:o,redirect_uri:s,code:t}}).then(i=>new r({clientId:o,portal:n,ssl:i.ssl,redirectUri:s,refreshToken:i.refreshToken,refreshTokenExpires:i.refreshTokenExpires,token:i.token,tokenExpires:i.expires,username:i.username})).catch(i=>{throw new y(i.message,x.REFRESH_TOKEN_EXCHANGE_FAILED,i.response,i.url,i.options)})}static deserialize(e){let t=JSON.parse(e);return new r({clientId:t.clientId,refreshToken:t.refreshToken,refreshTokenExpires:t.refreshTokenExpires?new Date(t.refreshTokenExpires):void 0,username:t.username,password:t.password,token:t.token,tokenExpires:t.tokenExpires?new Date(t.tokenExpires):void 0,portal:t.portal,ssl:t.ssl,tokenDuration:t.tokenDuration,redirectUri:t.redirectUri,server:t.server})}static fromCredential(e,t){let n=typeof e.ssl<"u"?e.ssl:!0,o=e.expires||Date.now()+72e5;return t.hasServer?new r({server:e.server,ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)}):new r({portal:m(e.server.includes("sharing/rest")?e.server:e.server+"/sharing/rest"),ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)})}static parentMessageHandler(e){if(e.data.type==="arcgis:auth:credential"){let t=e.data.credential;return le(t)?r.fromCredential(t,{hasPortal:!0,hasServer:!1,server:t.server}):new r(t)}if(e.data.type==="arcgis:auth:error"){let t=new Error(e.data.error.message);throw t.name=e.data.error.name,t}else throw new Error("Unknown message type.")}static destroy(e){return oe({clientId:e.clientId,portal:e.portal,token:e.refreshToken||e.token})}static fromToken(e){let t=new r(e);return t.getUser().then(()=>t)}static signIn(e){let t=new r(e);return t.getUser().then(()=>t)}toCredential(){return{expires:this.tokenExpires.getTime(),server:this.server||this.portal,ssl:this.ssl,token:this.token,userId:this.username}}getPortal(e){if(this._pendingPortalRequest)return this._pendingPortalRequest;if(this._portalInfo)return Promise.resolve(this._portalInfo);{let t=`${this.portal}/portals/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingPortalRequest=p(t,n).then(o=>(this._portalInfo=o,this._pendingPortalRequest=null,o)),this._pendingPortalRequest}}getToken(e,t){return te(this.portal,e)?this.getFreshToken(t):new RegExp(this.portal,"i").test(e)?this.getFreshToken(t):this.getTokenForServer(e,t)}validateAppAccess(e){return this.getToken(this.portal).then(t=>re(t,e))}toJSON(){return{clientId:this.clientId,refreshToken:this.refreshToken,refreshTokenExpires:this.refreshTokenExpires||void 0,username:this.username,password:this.password,token:this.token,tokenExpires:this.tokenExpires||void 0,portal:this.portal,ssl:this.ssl,tokenDuration:this.tokenDuration,redirectUri:this.redirectUri,server:this.server}}serialize(){return JSON.stringify(this)}enablePostMessageAuth(e,t){!t&&window&&(t=window),this._hostHandler=this.createPostMessageHandler(e),t.addEventListener("message",this._hostHandler,!1)}disablePostMessageAuth(e){!e&&window&&(e=window),e.removeEventListener("message",this._hostHandler,!1)}refreshCredentials(e){return this.clearCachedUserInfo(),this.username&&this.password?this.refreshWithUsernameAndPassword(e):this.clientId&&this.refreshToken?this.refreshWithRefreshToken():Promise.reject(new y("Unable to refresh token. No refresh token or password present.",x.TOKEN_REFRESH_FAILED))}getServerRootUrl(e){let[t]=m(e).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/),[n,o,s]=t.match(/(https?:\/\/)(.+)/),[i,...a]=s.split("/");return`${o}${i.toLowerCase()}/${a.join("/")}`}getDomainCredentials(e){return!this.trustedDomains||!this.trustedDomains.length?"same-origin":(e=e.toLowerCase(),this.trustedDomains.some(t=>e.startsWith(t.toLowerCase()))?"include":"same-origin")}signOut(){return r.destroy(this)}createPostMessageHandler(e){return t=>{let n=e.indexOf(t.origin)>-1,o=t.data.type==="arcgis:auth:requestCredential",s=this.tokenExpires.getTime()>Date.now();if(n&&o){let i={};if(s){let a=this.toCredential();a.server=a.server.replace("/sharing/rest",""),i={type:"arcgis:auth:credential",credential:a}}else i={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Token was expired, and not returned to the child application"}};t.source.postMessage(i,t.origin)}}}getTokenForServer(e,t){let n=this.getServerRootUrl(e),o=this.federatedServers[n];return o&&o.expires&&o.expires.getTime()>Date.now()?Promise.resolve(o.token):this._pendingTokenRequests[n]?this._pendingTokenRequests[n]:(this._pendingTokenRequests[n]=this.fetchAuthorizedDomains().then(()=>p(`${n}/rest/info`,{credentials:this.getDomainCredentials(e)}).then(s=>{if(s.owningSystemUrl){if(ee(s.owningSystemUrl,this.portal))return p(`${s.owningSystemUrl}/sharing/rest/info`,t);throw new y(`${e} is not federated with ${this.portal}.`,x.NOT_FEDERATED)}else{if(s.authInfo&&this.federatedServers[n]!==void 0)return Promise.resolve({authInfo:s.authInfo});throw new y(`${e} is not federated with any portal and is not explicitly trusted.`,x.NOT_FEDERATED)}}).then(s=>this.token&&this.tokenExpires.getTime()<Date.now()?this.server?this.refreshCredentials().then(()=>({token:this.token,expires:this.tokenExpires})):this.refreshCredentials().then(()=>this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)):this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)).then(s=>(this.federatedServers[n]=s,delete this._pendingTokenRequests[n],s.token))),this._pendingTokenRequests[n])}generateTokenForServer(e,t){return p(e,{params:{token:this.token,serverUrl:t,expiration:this.tokenDuration}}).then(n=>({token:n.token,expires:new Date(n.expires-1e3*60*5)})).catch(n=>{throw new y(n.message,x.GENERATE_TOKEN_FOR_SERVER_FAILED,n.response,n.url,n.options)})}getFreshToken(e){return this.token&&!this.tokenExpires?Promise.resolve(this.token):this.token&&this.tokenExpires&&this.tokenExpires.getTime()>Date.now()?Promise.resolve(this.token):(this._pendingTokenRequests[this.portal]||(this._pendingTokenRequests[this.portal]=this.refreshCredentials(e).then(()=>(this._pendingTokenRequests[this.portal]=null,this.token))),this._pendingTokenRequests[this.portal])}refreshWithUsernameAndPassword(e){let t={username:this.username,password:this.password,expiration:this.tokenDuration,client:"referer",referer:this.referer?this.referer:typeof window<"u"&&typeof window.document<"u"&&window.location&&window.location.origin?window.location.origin:q};return(this.server?p(`${this.getServerRootUrl(this.server)}/rest/info`).then(n=>p(n.authInfo.tokenServicesUrl,Object.assign({params:t},e))):p(`${this.portal}/generateToken`,Object.assign({params:t},e))).then(n=>(this.updateToken(n.token,new Date(n.expires)),this)).catch(n=>{throw new y(n.message,x.TOKEN_REFRESH_FAILED,n.response,n.url,n.options)})}refreshWithRefreshToken(e){if(this.refreshToken&&this.refreshTokenExpires&&this.refreshTokenExpires.getTime()-864e5<Date.now())return this.exchangeRefreshToken(e);let n=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,grant_type:"refresh_token"}},e);return v(`${this.portal}/oauth2/token`,n).then(o=>this.updateToken(o.token,o.expires)).catch(o=>{throw new y(o.message,x.TOKEN_REFRESH_FAILED,o.response,o.url,o.options)})}updateToken(e,t){return this._token=e,this._tokenExpires=t,this}exchangeRefreshToken(e){let t=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,grant_type:"exchange_refresh_token"}},e);return v(`${this.portal}/oauth2/token`,t).then(n=>(this._token=n.token,this._tokenExpires=n.expires,this._refreshToken=n.refreshToken,this._refreshTokenExpires=n.refreshTokenExpires,this)).catch(n=>{throw new y(n.message,x.REFRESH_TOKEN_EXCHANGE_FAILED,n.response,n.url,n.options)})}fetchAuthorizedDomains(){return this.server||!this.portal?Promise.resolve(this):this.getPortal().then(e=>(e.authorizedCrossOriginDomains&&e.authorizedCrossOriginDomains.length&&(this.trustedDomains=e.authorizedCrossOriginDomains.filter(t=>!t.startsWith("http://")).map(t=>t.startsWith("https://")?t:`https://${t}`)),this))}};function S(r){return console.log("DEPRECATED:, 'UserSession' is deprecated. Use 'ArcGISIdentityManager' instead."),new k(r)}S.beginOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.beginOAuth2' is deprecated. Use 'ArcGISIdentityManager.beginOAuth2' instead."),k.beginOAuth2(...r)};S.completeOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.completeOAuth2()' is deprecated. Use 'ArcGISIdentityManager.completeOAuth2()' instead."),r.length<=1&&console.warn("WARNING:, 'UserSession.completeOAuth2()' is now async and returns a promise the resolves to an instance of `ArcGISIdentityManager`."),k.completeOAuth2(...r)};S.fromParent=function(...r){return console.warn("DEPRECATED:, 'UserSession.fromParent' is deprecated. Use 'ArcGISIdentityManager.fromParent' instead."),k.fromParent(...r)};S.authorize=function(...r){return console.warn("DEPRECATED:, 'UserSession.authorize' is deprecated. Use 'ArcGISIdentityManager.authorize' instead."),k.authorize(...r)};S.exchangeAuthorizationCode=function(...r){return console.warn("DEPRECATED:, 'UserSession.exchangeAuthorizationCode' is deprecated. Use 'ArcGISIdentityManager.exchangeAuthorizationCode' instead."),k.exchangeAuthorizationCode(...r)};S.fromCredential=function(...r){return console.log("DEPRECATED:, 'UserSession.fromCredential' is deprecated. Use 'ArcGISIdentityManager.fromCredential' instead."),console.warn("WARNING:, 'UserSession.fromCredential' now requires a `ServerInfo` object from the JS API as a second parameter."),k.fromCredential(...r)};S.deserialize=function(...r){return console.log("DEPRECATED:, 'UserSession.deserialize' is deprecated. Use 'ArcGISIdentityManager.deserialize' instead."),k.deserialize(...r)};export{V as a,p as b,Ge as c,m as d,k as e};
|
@@ -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 g,b as m,c as _}from"./AZ3OMUAO.js";import"./ZXQJLGRP.js";import"./Y2TULO3A.js";import"./MNIQAXS4.js";import"./L4A3TP42.js";import"./HM3CN2LF.js";import"./BYBUA3SD.js";import{a as f,b as y}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:v,b:o,c:x,d:C,e:c,f:w}])=>{var k=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="created",this.filterOpen=!0,this.filters=[],this.isMobile=!1,this._translations=b({name:"solutions-deployed-shell",blocking:!0}),this._solutionsDeployedPanelRef=f(),this._authContextProvider=s({context:_}),this._isMobileContextProvider=s({context:m}),this._userSessionContextProvider=s({context:g}),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=k}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}async connectedCallback(){super.connectedCallback(),this._mediaQuery=window.matchMedia("(max-width: 800px)"),this._mediaQuery.addEventListener("change",this._mediaQueryChange),this._mediaQueryChange(this._mediaQuery)}async load(){let e=new w(v,o,c);await e.init(),e.SignedIn||e.signIn(),this._authContextProvider.setValue(e),e.RestUserSession&&this._userSessionContextProvider.setValue(e.RestUserSession)}_mediaQueryChange(e){this.isMobile=e.matches,this._isMobileContextProvider.setValue(this.isMobile)}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 @applyFilter=${this._filterApplied}></solutions-filter-panel></calcite-shell-panel>`}_getSolutionsAllPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return i`<solutions-deployed-panel .agoSolutionsGroupId=${x} .enterpriseSolutionsGroupId=${C} .locale=${c} .orgUrl=${o} @deployedCardsFetched=${this._updateSolutionCount} .portalUrl=${o} .sortType=${this.sortType} style=${l(e)} ${y(this._solutionsDeployedPanelRef)}></solutions-deployed-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.sortByDateDeployed,sortType:"created"}];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"created":t=this._translations.sortByDateDeployed;break;case"relevance":t=this._translations.sortByRelevance;break;case"title":t=this._translations.sortByTitle;break}return t}_updateSolutionCount(e){this.solutionsCount=e.detail}_sortChanged(e){this.sortType=e,this._solutionsDeployedPanelRef.value?.searchSolutions({sortType:e})}_chipClosed(e){this.filters=this.filters.filter(t=>t.displayValue!==e),this._solutionsDeployedPanelRef.value?.searchSolutions(),this.filterRemoved.emit(e)}_toggleFilter(){this.filterOpen=!this.filterOpen}_filterApplied(e){e.detail?("displayValue"in e.detail&&(this.filters=[e.detail]),this._solutionsDeployedPanelRef.value?.searchSolutions(e.detail)):(this.filters=[],this._solutionsDeployedPanelRef.value?.searchSolutions())}_setRefreshInterval(){let e=this._userSessionContextProvider.value,t=this._authContextProvider.value;if(e&&t){let S=(e.tokenExpires?.getTime()-Date.now())*.9;setInterval(async()=>{let a=await t?.refreshSession();if(a){this._userSessionContextProvider.setValue(a);let $=a?.token??"";this.tokenRefreshed.emit($)}},S)}}};u("solutions-deployed-shell",d);return d},a)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as r}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as r}from"./YZ4LCVJ7.js";import{D as o,I as n,c as t,d as i,q as s}from"./5ELHQQNT.js";import"./MO6ELGZS.js";var a=t`@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.
|
4
|
-
import{a as o}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as o}from"./5M5CVIKP.js";import{a as r}from"./ZMPNHGIE.js";import"./3BGUPUE3.js";import"./P7U5QF6I.js";import"./BYBUA3SD.js";import{a as s}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 p=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:s.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{scope:"/properties/isSharedUpdate",type:"Control",rule:{effect:s.HIDE,condition:{scope:"/properties/isSharedUpdate",schema:{const:!1}}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],disabled:[!1,!r("platform:portal:user:addExternalMembersToGroup",t).access,!r("platform:portal:user:addExternalMembersToGroup",t).access]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}]}),m=async(e,l,t)=>Object.assign({},o("hubViewGroup",t));export{m as buildDefaults,p as buildUiSchema};
|
@@ -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{p as h}from"./ZXQJLGRP.js";import{e as n}from"./HM3CN2LF.js";export default $arcgis.t(([l,u,c])=>{var b="WNufTOT96eMYwAik",S="https://www.arcgis.com",w="966b251241bb4e3bb9ee3f2b92921aa5",f="1d3a7ed66deb47269beea05ff9afd4c1",y="en";var p=class{constructor(t,e,r){this._credential=null,this._locale="en",this._portalSubset=null,this._isEnterprise=!1,this._portalUserSubset=null,this._clientId=t,this._locale=r,this._portalUrl=e,this._portalUrl=location.origin.endsWith(".arcgis.com")?window.location.origin:e;let s=new u({appId:t,locale:this._locale,popup:!1,portalUrl:this._portalUrl,preserveUrlHash:!0});l.registerOAuthInfos([s]),this._portal=new c({url:this._portalUrl})}async init(){try{await this._init()}catch{this.destroy()}return this}async _init(){this._credential=await l.checkSignInStatus(this._portalUrl+"/sharing");try{let t=await l.checkAppAccess(this._portalUrl,this._clientId);(typeof t.valid<"u"&&!t.valid||t.viewOnlyUserTypeApp)&&window.location.replace(`error.html?error=blocked&locale=${this._locale}`)}catch{window.location.replace(`error.html?error=blocked&locale=${this._locale}`)}return this._portal.authMode="immediate",await this._portal.load(),this._isEnterprise=this._portal.isPortal,this._portalSubset={name:this._portal.name??"",id:this._portal.id??"",restUrl:this._portal.restUrl,portalUrl:this._portal.url,urlKey:this._portal.urlKey??"",hostName:this._portal.portalHostname??"",orgUrl:this._getOrgUrl(this._portal.url,this._portal.urlKey??"",this._portal.customBaseUrl??""),locationTrackingEnabled:this._portal.helperServices.hasOwnProperty("locationTracking"),hubPremiumEnabled:this._portal.portalProperties?.hub?.enabled||!1,workflowURL:this._portal.helperServices?.workflowManager?.url??this._portal.url,isReadOnly:this._portal.isReadOnly},this._portalUserSubset={fullName:this._portal.user?.fullName??"",username:this._portal.user?.username??"",culture:this._portal.user?.culture?.toLowerCase()||"en",thumbnailUrl:this._portal.user?.thumbnailUrl||this._portal.url+"/home/js/arcgisonline/css/images/no-user-thumb.jpg",orgId:this._portal.user?.orgId??"",privileges:this._portal.user.privileges,role:this._portal.user?.role??""},this._isEnterprise&&(this._portalSubset.workflowURL=await h(this._portal.restUrl,this.RestUserSession||new n({}))),this._portal.user?.roleId&&(this._portalUserSubset.roleId=this._portal.user.roleId),this}get SignedIn(){return this._credential!==null}get Credential(){return this._credential}get Portal(){return this._portal}get PortalUrl(){return this._portalUrl}get PortalSubset(){return this._portalSubset}get PortalUserSubset(){return this._portalUserSubset}get PortalUserOrg(){return this._portalSubset&&this._portalSubset.id}get PortalUserName(){return this._portalUserSubset&&this._portalUserSubset.username||""}get PortalUserCulture(){return this._portalUserSubset&&this._portalUserSubset.culture||""}get PortalUserPrivileges(){let t=[];return this._portalUserSubset?.privileges&&(t=this._portalUserSubset.privileges),t}get IsEnterprisePortal(){return this._isEnterprise}get RestUserSession(){let t=this.Credential;if(!t)return null;let e={server:this.PortalUrl,hasPortal:this.IsEnterprisePortal,hasServer:this.IsEnterprisePortal},r=n.fromCredential(t,e);return r.clientId=this._credential._oAuthCred?.appId,r._refreshToken=this._credential._oAuthCred?.refreshToken,r}refreshSession(){let t=this.RestUserSession;return t?t.exchangeRefreshToken():null}signIn(t=""){l.setOAuthRedirectionHandler(e=>{let r=e.authorizeParams.redirect_uri;if(t.length>0){let s=r.split("?"),i=s[0],a="";if(s[1]){let o=new URLSearchParams(s[1]);o.append("signInParam",t),a="?"+o.toString()}e.authorizeParams.redirect_uri=i+a}window.location.href=e.authorizeUrl+"?"+this._objectToQuery(e.authorizeParams)}),l.getCredential((this._portalSubset?.portalUrl??this._portalUrl)+"/sharing").then(()=>{window.location.reload()})}signOut(){let t="https://"+this._portalSubset?.hostName;window.location.hostname===this._portalSubset?.hostName?t+="/index.html":this._portalSubset?.urlKey&&window.location.hostname.indexOf(this._portalSubset?.urlKey)>-1?t=window.location.origin+"/home/index.html":t=this._portalUrl+"/home",this.signOutAndRedirect(t)}signOutAndRedirect(t){let e=`${this._portalSubset?.restUrl??this._portalUrl+"/sharing/rest"}/oauth2/signout?client_id=${this._clientId}&redirect_uri=${encodeURIComponent(t)}`;this.destroy(),window.location.replace(e)}destroy(){this._credential=null,this._portalSubset=null,this._portalUserSubset=null,l.destroyCredentials()}_getOrgUrl(t,e,r){return e&&r?window.location.protocol+"//"+e.toLowerCase()+"."+r:t}_isSerializable(t){return t&&typeof t=="object"&&"toJSON"in t&&typeof t.toJSON=="function"}_objectToQuery(t,e){return t?e&&typeof e=="function"?Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(e(r,t[r]))).join("&"):Object.keys(t).map(r=>{let s=t[r];if(s==null)return"";let i=encodeURIComponent(r)+"=",a=e&&e[r];return a?i+encodeURIComponent(a(s)):Array.isArray(s)?s.map(o=>this._isSerializable(o)?i+encodeURIComponent(JSON.stringify(o)):i+encodeURIComponent(o)).join("&"):this._isSerializable(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)}).filter(r=>r).join("&"):""}};return{a:b,b:S,c:w,d:f,e:y,f:p}},"identity/IdentityManager","identity/OAuthInfo","portal/Portal")
|
@@ -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"./LIOV5Z2T.js";import"./P7U5QF6I.js";import"./L7V6N63X.js";import"./BYBUA3SD.js";import{a as o}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";function p(e){return["myContent","organization"].map(t=>l("selectContent.facets",t,"item",{user:e,collectionNames:["site"]}))}var u=(e,i,t)=>({type:"Layout",elements:[{labelKey:"selectContent.title",scope:"/properties/entityId",type:"Control",options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:p(t.currentUser),facets:[{label:"{{selectContent.facets.sharing:translate}}",key:"access",display:"multi-select",field:"access",options:[],operation:"OR"}]}},{type:"Section",labelKey:"callToAction.title",rule:n,options:{helperText:{labelKey:"callToAction.helperText"}},elements:[{scope:"/properties/callToActionText",type:"Control",options:{type:"textarea",rows:4}},{labelKey:"callToAction.alignment",scope:"/properties/callToActionAlign",type:"Control",options:{control:"hub-field-input-alignment"}}]},{type:"Section",labelKey:"followButton.title",options:{helperText:{labelKey:"followButton.helperText"}},rule:n,elements:[{labelKey:"followButton.buttonText",scope:"/properties/buttonText",type:"Control",options:{control:"hub-field-input-input"}},{labelKey:"followButton.unfollowButtonText",scope:"/properties/unfollowButtonText",type:"Control",options:{control:"hub-field-input-input"}},{labelKey:"followButton.alignment",scope:"/properties/buttonAlign",type:"Control",options:{control:"hub-field-input-alignment"}},{labelKey:"followButton.buttonStyle",scope:"/properties/buttonStyle",type:"Control",options:{control:"hub-field-input-select",labels:["{{followButton.solid:translate}}","{{followButton.outline:translate}}"]}}]}]}),n={effect:o.HIDE,condition:{scope:"/properties/entityId",schema:{const:[]}}};export{u as buildUiSchema};
|
@@ -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"./M4SLCXFR.js";import{a as y,c as f}from"./AZ3OMUAO.js";import"./ZXQJLGRP.js";import"./Y2TULO3A.js";import"./MNIQAXS4.js";import"./L4A3TP42.js";import"./HM3CN2LF.js";import"./BYBUA3SD.js";import{j as g,k as m,n as r}from"./SZGXZADB.js";import{a as p}from"./YZ4LCVJ7.js";import{C as i,D as c,G as d,I as u,c as n,d as s,e as l,o as h}from"./5ELHQQNT.js";import"./MO6ELGZS.js";export default $arcgis.t(([{b:a,c:_}])=>{var x=n`/** @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
|
+
*/calcite-panel{width:100%;height:100%}.card-group{overflow:hidden;padding:.5rem}.solutions-briefcase{margin:auto;padding-top:2rem}.text-center{text-align:center}.leader-1{margin-top:1.5rem}.trailer-1{margin-bottom:1.5rem}.warning-text{max-width:35em;margin-left:auto;margin-right:auto}.no-solutions{display:flex;flex-direction:column;justify-content:center;width:100%;height:100%}.display-flex{display:flex}.flex-direction-column{flex-direction:column}`,o=class extends c{constructor(){super(...arguments),this.authContextConsumer=i({context:f,subscribe:!0}),this.agoSolutionsGroupId="",this.enterpriseSolutionsGroupId="",this.locale="",this.orgUrl="",this.portalUrl="",this.sortType="created",this.userSessionContextConsumer=i({context:y,subscribe:!0}),this.cards=[],this._translations=p({name:"solutions-deployed-panel",blocking:!0}),this._allCards=[],this._agoTerms=r,this._baseAgoTerms=r,this._categories=[],this._delay=!1,this._sortField="created",this._sortOrder="desc",this.deployedCardsFetched=h()}static{this.properties={authContextConsumer:32,agoSolutionsGroupId:1,enterpriseSolutionsGroupId:1,locale:1,orgUrl:1,portalUrl:1,sortType:1,userSessionContextConsumer:32,cards:16,_translations:16}}static{this.styles=x}async searchSolutions(e){e?"searchTerm"in e?this._textSearch(e.searchTerm):"sortType"in e?this._sortCards(e):this._filterCards(e):(this._agoTerms=this._baseAgoTerms,this._clearFilterCategories()),await this._getDeployedSolutions()}async load(){this._cardsFetcher=new a(this.locale,this.orgUrl,this.portalUrl),this._cardsFetcherDeployed=new a(this.locale,this.orgUrl,this.portalUrl),await this._getDeployedSolutions()}render(){return s`<calcite-panel><calcite-card-group class="card-group" label>${this._renderCards()}</calcite-card-group></calcite-panel>`}_renderCards(){return this.cards.length?this.cards.map(e=>s`<solution-deployed-card .deployedDate=${e.created} .description=${e.snippet} .heading=${e.title} itemId=${e.id??d} .owner=${e.owner} .thumbnail=${e.thumbnailUrl}></solution-deployed-card>`):s`<div class="no-solutions">${this._getSolutionsBriefcase()}<div class="text-center leader-1 warning-text trailer-1 display-flex flex-direction-column"><span>${this._translations.noSolutionsYet}</span><span>${this._translations.noSolutionsInstruction}</span></div></div>`}async _getDeployedSolutions(){let e=await _(this.authContextConsumer.value,this.userSessionContextConsumer.value,this._cardsFetcher,this._cardsFetcherDeployed,this._agoTerms,this._sortField,this._sortOrder,this._delay,this._categories,this._allCards);this.cards=e?.cards??[],e?.relatedSolutions&&(this._relatedSolutions=e?.relatedSolutions,console.log(this._relatedSolutions)),this.deployedCardsFetched.emit(this.cards.length)}_getSolutionsBriefcase(){return s`<div class="solutions-briefcase"><svg viewBox="0 0 32 32" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${l`<path d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" fill=#ccc /><path d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" fill=#ccc />`}</svg></div>`}_textSearch(e){this._agoTerms=this._baseAgoTerms+` ${e}`}_sortCards(e){let t=e.sortType;(t==="relevance"||t==="title")&&(t==="title"&&(this._sortOrder="asc"),this._sortField=t),this.sortType=t}_filterCards(e){if(e.industry){let t=this._getIndustryValue(e.industry);if(e.domain){let C=this._getDomainValue(e.domain);this._categories=[`/Categories/${t}/${C}`]}else this._categories=[`/Categories/${t}`];this._getDeployedSolutions()}}_getDomainValue(e){return m[e]}_getIndustryValue(e){return e==="AEC"?"AEC":g[e]}_clearFilterCategories(){this._categories=[]}};u("solutions-deployed-panel",o);return o},a)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.
|
4
|
-
import{a as r,b as c}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as r,b as c}from"./DF5QXKGH.js";import{b as h}from"./MMSYI6GH.js";import{D as n,I as l,c as i,d as s,o as a}from"./5ELHQQNT.js";import"./MO6ELGZS.js";var d=i`/** @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 n}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as n}from"./KGLXLAY3.js";import{a as s}from"./2SPBK2JC.js";import"./OBQ5ECDX.js";import"./72MDJVHR.js";import"./MNIQAXS4.js";import"./ROI7GMNK.js";import{a as r,b as a}from"./CBUD7IB5.js";import"./UWZF6TGQ.js";import"./TVNGRZHA.js";import{a as o}from"./HHBX6OJB.js";import{a as i}from"./NSTT2IOP.js";import"./L4A3TP42.js";import"./HM3CN2LF.js";import"./L7V6N63X.js";import"./BYBUA3SD.js";import"./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:[{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.siteEntityTitleValidatorError`}]}},{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:"shared.fields.summary.maxLengthError"}]}},...s(e,l.thumbnail,l.thumbnailUrl,"site",t.requestOptions),...t.isPortal?[n(e)]:[],{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 i(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,t)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(l.location,t.hubRequestOptions),options:await a(l.id,l.type,l.location,t.portal.name,t.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{d as buildUiSchema};
|
@@ -1,5 +1,5 @@
|
|
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 B=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var x=e=>{let t=[],r=0;return e=e.replace(/(\[[^\]]*\])/g,(s,a)=>{let c=`__ph-${r}__`;return t.push(a),r++,c}),{content:e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(s,a,c)=>{let l=`__ph-${r}__`;return t.push(c),r++,a+l}),placeholders:t}},L=(e,t)=>t.replace(/__ph-(\d+)__/g,(r,n)=>e[+n]),f="-shadowcsshost",E="-shadowcssslotted",w="-shadowcsscontext",$=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",P=new RegExp("("+f+$,"gim"),W=new RegExp("("+w+$,"gim"),j=new RegExp("("+E+$,"gim"),h=f+"-no-combinator",N=/-shadowcsshost-no-combinator([^\s]*)/,M=[/::shadow/g,/::content/g],D="([>\\s~+[.,{:][\\s\\S]*)?$",R=/-shadowcsshost/gim,H=e=>new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${e}\\b)`,"gim"),K=H("::slotted"),U=H(":host"),Y=H(":host-context"),A=/\/\*\s*[\s\S]*?\*\//g,G=e=>e.replace(A,""),I=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,q=e=>e.match(I)||[],z=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,F=/([{}])/g,J=/(^.*?[^\\])??((:+)(.*)|$)/,Q="{",V="}",S="%BLOCK%",X=(e,t)=>{let r=Z(e),n=0;return r.escapedString.replace(z,(...o)=>{let s=o[2],a="",c=o[4],l="";c&&c.startsWith("{"+S)&&(a=r.blocks[n++],c=c.substring(S.length+1),l="{");let d=t({selector:s,content:a});return`${o[1]}${d.selector}${o[3]}${l}${d.content}${c}`})},Z=e=>{let t=e.split(F),r=[],n=[],o=0,s=[];for(let c=0;c<t.length;c++){let l=t[c];l===V&&o--,o>0?s.push(l):(s.length>0&&(n.push(s.join("")),r.push(S),s=[]),r.push(l)),l===Q&&o++}return s.length>0&&(n.push(s.join("")),r.push(S)),{escapedString:r.join(""),blocks:n}},T=e=>(e=e.replace(Y,`$1${w}`).replace(U,`$1${f}`).replace(K,`$1${E}`),e),O=(e,t,r)=>e.replace(t,(...n)=>{if(n[2]){let o=n[2].split(","),s=[];for(let a=0;a<o.length;a++){let c=o[a].trim();if(!c)break;s.push(r(h,c,n[3]))}return s.join(",")}else return h+n[3]}),b=(e,t,r)=>e+t.replace(f,"")+r,ee=e=>O(e,P,b),te=(e,t,r)=>t.indexOf(f)>-1?b(e,t,r):e+t+r+", "+t+" "+e+r,re=(e,t)=>{let r="."+t+" > ",n=[];return e=e.replace(j,(...o)=>{if(o[2]){let s=o[2].trim(),a=o[3],c=r+s+a,l="";for(let g=o[4]-1;g>=0;g--){let p=o[5][g];if(p==="}"||p===",")break;l=p+l}let u=(l+c).trim(),d=`${l.trimEnd()}${c.trim()}`.trim();if(u!==d){let g=`${d}, ${u}`;n.push({orgSelector:u,updatedSelector:g})}return c}else return h+o[3]}),{selectors:n,cssText:e}},oe=e=>O(e,W,te),ne=e=>M.reduce((t,r)=>t.replace(r," "),e),se=e=>{let t=/\[/g,r=/\]/g;return e=e.replace(t,"\\[").replace(r,"\\]"),new RegExp("^("+e+")"+D,"m")},ce=(e,t)=>!se(t).test(e),k=(e,t)=>e.replace(J,(r,n="",o,s="",a="")=>n+t+s+a),ae=(e,t,r)=>{if(R.lastIndex=0,R.test(e)){let n=`.${r}`;return e.replace(N,(o,s)=>k(s,n)).replace(R,n+" ")}return t+" "+e},le=(e,t,r)=>{let n=/\[is=([^\]]*)\]/g;t=t.replace(n,(v,...i)=>i[0]);let o="."+t,s=v=>{let i=v.trim();if(!i)return"";if(v.indexOf(h)>-1)i=ae(v,t,r);else{let _=v.replace(R,"");_.length>0&&(i=k(_,o))}return i},a=x(e);e=a.content;let c="",l=0,u,d=/( |>|\+|~(?!=))\s*/g,p=!(e.indexOf(h)>-1);for(;(u=d.exec(e))!==null;){let v=u[1],i=e.slice(l,u.index).trim();p=p||i.indexOf(h)>-1;let _=p?s(i):i;c+=`${_} ${v} `,l=d.lastIndex}let m=e.substring(l);return p=p||m.indexOf(h)>-1,c+=p?s(m):m,L(a.placeholders,c)},pe=(e,t,r,n)=>e.split(",").map(o=>n&&o.indexOf("."+n)>-1?o.trim():ce(o,t)?le(o,t,r).trim():o.trim()).join(", "),y=(e,t,r,n)=>X(e,o=>{let s=o.selector,a=o.content;return o.selector[0]!=="@"?s=pe(o.selector,t,r,n):(o.selector.startsWith("@media")||o.selector.startsWith("@supports")||o.selector.startsWith("@page")||o.selector.startsWith("@document"))&&(a=y(o.content,t,r,n)),{selector:s.replace(/\s{2,}/g," ").trim(),content:a}}),ie=(e,t,r,n)=>{e=T(e),e=ee(e),e=oe(e);let o=re(e,n);return e=o.cssText,e=ne(e),t&&(e=y(e,t,r,n)),e=C(e,r),e=e.replace(/>\s*\*\s+([^{, ]+)/gm," $1 "),{cssText:e.trim(),slottedSelectors:o.selectors.map(s=>({orgSelector:C(s.orgSelector,r),updatedSelector:C(s.updatedSelector,r)}))}},C=(e,t)=>e.replace(/-shadowcsshost-no-combinator/g,`.${t}`),ue=(e,t)=>{let r=t+"-h",n=t+"-s",o=q(e);e=G(e);let s=ie(e,t,r,n);return e=[s.cssText,...o].join(`
|
5
5
|
`),s.slottedSelectors.forEach(a=>{let c=new RegExp(B(a.orgSelector),"g");e=e.replace(c,a.updatedSelector)}),e};export{ue as scopeCss};
|
@@ -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 l}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as l}from"./YZ4LCVJ7.js";import{D as n,I as o,c as r,d as a,o as s}from"./5ELHQQNT.js";import"./MO6ELGZS.js";var c=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 r,b as d,e as g,g as f,j as y,k as _,o as b,p as x,r as I,s as C,v}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as r,b as d,e as g,g as f,j as y,k as _,o as b,p as x,r as I,s as C,v}from"./OVEGZJHW.js";import"./UWTU3QFZ.js";import"./XOEQRL52.js";import{C as u}from"./YYROVQF2.js";import{a as h,c as n,e as m,f as L,h as w}from"./ABK3KAVX.js";import"./MO6ELGZS.js";var k=".sc-instant-apps-interactive-legend-count-h{display:flex;align-items:center}.instant-apps-interactive-legend__total-feature-count.sc-instant-apps-interactive-legend-count{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.instant-apps-interactive-legend__info-count-text.sc-instant-apps-interactive-legend-count{font-size:var(--instant-apps-interactive-legend-info-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}.calcite-mode-dark.instant-apps-interactive-legend__info-count-text.instant-apps-interactive-legend__info-count-text--selected.sc-instant-apps-interactive-legend-count{color:var(--calcite-color-text-inverse)}.instant-apps-interactive-legend-count--compact.sc-instant-apps-interactive-legend-count .instant-apps-interactive-legend__total-feature-count.sc-instant-apps-interactive-legend-count{font-size:0.75rem}.sc-instant-apps-interactive-legend-count-h:dir(rtl){margin-left:0;margin-right:auto}",E=k,p={countText:" instant-apps-interactive-legend__info-count-text",countTextSelected:" instant-apps-interactive-legend__info-count-text--selected",totalFeatureCount:"instant-apps-interactive-legend__total-feature-count",compact:"instant-apps-interactive-legend-count--compact"},A=class{constructor(e){h(this,e),this.showTotal=!1,this.legendvm=void 0,this.activeLayerInfo=void 0,this.categoryId="",this.infoIndex=void 0,this.messages=void 0,this.selected=void 0,this.legendElement=void 0}async componentWillLoad(){new MutationObserver(()=>{w(this.el)}).observe(this.el,{attributes:!0});let t=await u();this.intl=t}render(){let e=d.get("compact")?p.compact:"";return n("div",{key:"int-legend-count",class:e},this.showTotal?n("span",{class:p.totalFeatureCount},this.messages?.totalFeatureCount,": ",this.getTotalFeatureCount()):n("span",{key:"element-info-count",class:`${p.countText} ${v(this.el)}${this.selected?p.countTextSelected:""}`},this.getCount()))}getCount(){let{categoryId:e}=this,t=this.activeLayerInfo.layer.id,i=r.data[t]?.categories?.size;if((!r.data||!t||!e)&&!i)return"";let s=r.data[t];if(!s)return;let{categories:l}=s,a=l.get(e),c;return a?.nestedInfos?c=I(a,this.infoIndex):c=a,Number.isNaN(c.count)?"":this.intl.formatNumber(c.count)}getTotalFeatureCount(){let e=this.activeLayerInfo.layer.id;if(!r.data||!e)return"";let t=r.data[e];if(!t)return;let{categories:i}=t,s=g(i),l=C(i),a;if(l)a=x(s);else if(y(this.activeLayerInfo)){let c=f(this.activeLayerInfo.layer);a=g(c.categories)[1].count}else a=b(s);return this.intl.formatNumber(a)}get el(){return m(this)}};A.style=E;var S=".sc-instant-apps-interactive-legend-layer-element-caption-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:500;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-ui-padding:15px 10px}.sc-instant-apps-interactive-legend-layer-element-caption-h .instant-apps-interactive-legend__header--compact.sc-instant-apps-interactive-legend-layer-element-caption .esri-widget__heading.sc-instant-apps-interactive-legend-layer-element-caption{font-size:0.9rem}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-layer-element-caption{overflow:hidden;margin:0;display:inline-block;font-size:var(--calcite-font-size-1);font-weight:var(--instant-apps-interactive-legend-heading-font-weight)}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-layer-element-caption header.sc-instant-apps-interactive-legend-layer-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption{display:flex;text-align:left;padding:var(--instant-apps-interactive-legend-ui-padding);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption h3.sc-instant-apps-interactive-legend-layer-element-caption{margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal;color:var(--instant-apps-interactive-legend-secondary-color);margin-bottom:5px}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption .instant-apps-interactive-legend__heading-text--group-item.sc-instant-apps-interactive-legend-layer-element-caption{-webkit-line-clamp:2;line-clamp:2}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption span.sc-instant-apps-interactive-legend-layer-element-caption{width:100%;font-size:var(--instant-apps-interactive-legend-total-feature-count-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption .instant-apps-interactive-legend__header-action-container.sc-instant-apps-interactive-legend-layer-element-caption{display:flex;align-items:center}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-layer-element-caption header.sc-instant-apps-interactive-legend-layer-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget--panel.sc-instant-apps-interactive-legend-layer-element-caption{margin:0}.calcite-mode-dark.sc-instant-apps-interactive-legend-layer-element-caption-h .instant-apps-interactive-legend__header.sc-instant-apps-interactive-legend-layer-element-caption{background-color:#242424;color:var(--calcite-color-text-1)}.calcite-mode-light.sc-instant-apps-interactive-legend-layer-element-caption-h .instant-apps-interactive-legend__header.sc-instant-apps-interactive-legend-layer-element-caption{background-color:#ffffff;color:var(--calcite-color-text-1)}",z=S,o={label:"esri-legend__service-label",header:"esri-widget__heading",interacitveLegendHeader:"instant-apps-interactive-legend__header",headerActionContainer:"instant-apps-interactive-legend__header-action-container",compact:"instant-apps-interactive-legend__header--compact"},T=class{constructor(e){h(this,e),this.layerCaptionElementExpandUpdatedEvent=L(this,"layerCaptionElementExpandUpdated",7),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=!1,this.expanded=!0}render(){let e=_(this.activeLayerInfo),{expanded:t}=this,i=t?this.messages?.collapse:this.messages?.expand,s=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"",l=d.get("compact")?` ${o.compact}`:"";return n("header",{key:"bfb5c7b5059bcefcd898b46a4e2bb1f5397a2d6f",class:`${o.interacitveLegendHeader} ${v(this.el)}${l}`},n("calcite-action",{key:"24eee4c2208df0dfa8fb209729c67ec1f34d843e",onClick:this.toggleExpanded(),icon:t?"chevron-down":"chevron-up",appearance:"transparent",text:i??"",label:i,scale:"s"}),n("span",{key:"95977b78f4afe0206085567b061c8cb5d9f8dc5d"},n("span",{key:"258004a4847688b94edf6d8416eef9cb07accfe5",class:o.headerActionContainer},n("h3",{key:"980f06c2054a8be5c471b5b44c667b4be1a451f9",class:`${o.header} ${o.label}${s}`,title:this.activeLayerInfo?.title??""},this.activeLayerInfo?.title)),this.featureCount&&e?n("instant-apps-interactive-legend-count",{activeLayerInfo:this.activeLayerInfo,"show-total":!0,messages:this.messages,legendvm:this.legendvm}):null))}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.layerCaptionElementExpandUpdatedEvent.emit(this.expanded)}}get el(){return m(this)}};T.style=z;export{A as instant_apps_interactive_legend_count,T as instant_apps_interactive_legend_layer_element_caption};
|
@@ -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{a,b}from"./JGMZYU54.js";import"./SF6257JR.js";import"./MO6ELGZS.js";export{a as ChannelEditorTypes,b as ChannelSchema};
|
@@ -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 u,e as h}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as u,e as h}from"./VNHRV4W2.js";import{a}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{D as i,I as l,o,q as n}from"./5ELHQQNT.js";import"./MO6ELGZS.js";var r=class extends i{constructor(){super(...arguments),this.value="",this.templates=[],this.stateLoaded=o()}static{this.properties={value:3,templates:2,authentication:0}}static{this.shadowRootOptions=n}connectedCallback(){super.connectedCallback(),this._handleValueChange(this.value),this._initValueObserver()}render(){return null}async getStoreInfo(t){return Promise.resolve(a.getStoreInfo(t))}_handleValueChange(t){if(t!==""){let e=JSON.parse(t);a.setStoreInfo("solutionData",e);let s=u(e.templates);a.setStoreInfo("featureServices",s),a.setStoreInfo("spatialReferenceInfo",h(s,e)),this.templates=e.templates,this.stateLoaded.emit(a)}}_initValueObserver(){this._valueObserver=new MutationObserver(t=>{t.some(e=>{let s=e.target[e.attributeName];return e.type==="attributes"&&e.attributeName==="value"&&s!==e.oldValue?(this._handleValueChange(s),!0):!1})}),this._valueObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}};l("store-manager",r);export{r as StoreManager};
|
@@ -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 t,c as e}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{b as t,c as e}from"./SF6257JR.js";var r=["hub:channel:create","hub:channel:edit"],p={type:"object",properties:{name:{type:"string"},blockWords:{type:"string",format:"blockWords"},publicConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{anonymous:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead],default:t},id:{type:"string"}}},authenticated:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}}}}}}},orgConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{member:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}},admin:{type:"object",properties:{value:{type:"string",enum:[e.channelOwner],default:e.channelOwner},id:{type:"string"}}}}}}}},groupConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{member:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}},admin:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite,e.channelManage],default:t},id:{type:"string"}}}}}}}},userConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{user:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}}}}}}},allowAsAnonymous:{type:"boolean",default:!1}},required:["name"]};export{r 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 m}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as m}from"./M5PZM6MR.js";import{a as i}from"./LIOV5Z2T.js";import"./P7U5QF6I.js";import{a as c}from"./2SPBK2JC.js";import"./OBQ5ECDX.js";import"./72MDJVHR.js";import"./MNIQAXS4.js";import"./ROI7GMNK.js";import{a as n,b as p}from"./CBUD7IB5.js";import"./UWZF6TGQ.js";import"./TVNGRZHA.js";import{a}from"./HHBX6OJB.js";import{a as r}from"./NSTT2IOP.js";import"./L4A3TP42.js";import"./HM3CN2LF.js";import"./L7V6N63X.js";import"./BYBUA3SD.js";import"./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";function s(e){return["myContent","favorites","organization","world"].map(o=>i("shared.fields.featuredContent",o,"item",{user:e}))}var T=async(e,l,t)=>{var o;return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},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:"shared.fields.purpose.maxLengthError"}]}},...c(e,l.thumbnail,l.thumbnailUrl,"project",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 r(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await a(e,t)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await n(l.location,t.hubRequestOptions),options:await p(l.id,l.type,l.location,t.portal.name,t.hubRequestOptions),noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.sections.status.label`,elements:[{scope:"/properties/status",type:"Control",labelKey:`${e}.fields.status.label`,options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.fields.status.enum`}}},{type:"Section",labelKey:`${e}.sections.timeline.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.timeline.helperText`}},elements:[{scope:"/properties/view/properties/timeline",type:"Control",options:{control:"arcgis-hub-timeline-editor",showTitleAndDescription:!1}}]}]},{type:"Section",labelKey:"shared.sections.heroBanner.label",elements:[{type:"Section",labelKey:"shared.sections.heroActions.label",options:{section:"block",helperText:{labelKey:"shared.sections.heroActions.helperText"}},elements:[{scope:"/properties/view/properties/heroActions",type:"Control",options:{control:"hub-composite-input-action-links",type:"button",catalogs:s(t.currentUser),facets:[{label:`{{${e}.fields.callToAction.facets.type:translate}}`,key:"type",display:"multi-select",field:"type",options:[],operation:"OR",aggLimit:100},{label:`{{${e}.fields.callToAction.facets.sharing:translate}}`,key:"access",display:"multi-select",field:"access",options:[],operation:"OR"}],showAllCollectionFacet:!0}}]}]},{type:"Section",labelKey:`${e}.sections.view.label`,elements:[{type:"Section",labelKey:`${e}.sections.view.image.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.view.image.helperText`}},elements:[{labelKey:"shared.fields.featuredImage.label",scope:"/properties/view/properties/featuredImage",type:"Control",options:{control:"hub-field-input-image-picker",imgSrc:m((o=l.view)===null||o===void 0?void 0:o.featuredImageUrl,t.requestOptions),maxWidth:727,maxHeight:484,aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields.featuredImage.sizeDescription"}}},{labelKey:"shared.fields.featuredImage.altText.label",scope:"/properties/view/properties/featuredImageAltText",type:"Control"}]},{type:"Section",labelKey:`${e}.sections.view.embed.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.view.embed.helperText`}},elements:[{scope:"/properties/view/properties/embeds",type:"Control",options:{control:"hub-composite-input-embeds"}}]},{type:"Section",labelKey:`${e}.sections.view.content.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.view.content.helperText`}},elements:[{scope:"/properties/view/properties/featuredContentIds",type:"Control",options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:s(t.currentUser),facets:[{label:`{{${e}.fields.featuredContent.facets.type:translate}}`,key:"type",display:"multi-select",field:"type",options:[],operation:"OR",aggLimit:100},{label:`{{${e}.fields.featuredContent.facets.sharing:translate}}`,key:"access",display:"multi-select",field:"access",options:[],operation:"OR"}],showAllCollectionFacet:!0,showAddContent:!0}}]}]}]}};export{T 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 o,b as s,c as i,d as p}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as o,b as s,c as i,d as p}from"./GZOFO77D.js";import{c as r}from"./ZUNKV2EF.js";import{a as e}from"./2B3Q4HD7.js";import{b as t}from"./Y2VUFZUV.js";var E=["hub:project:create","hub:project:create2","hub:project:edit","hub:project:metrics","hub:project:settings"],b=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{_groups:{type:"array",items:{type:"string"}},status:{type:"string",default:t.notStarted,enum:Object.keys(t)},_metric:{type:"object",required:["cardTitle"],properties:r.properties}}),allOf:[s,o,p,i]});export{E as a,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 P}from"./
|
3
|
+
v1.0.0-next.20250527.1 */
|
4
|
+
import{a as P}from"./F3SICAQV.js";import{c as n,e as g,f as m,g as d,h as I,i as S,m as b,q as F,r as y,s as v,t as R,u as w,v as T}from"./ZXQJLGRP.js";import{b as o,h as _}from"./SZGXZADB.js";var u={solutionItemId:"",defaultWkid:void 0,solutionData:{metadata:{},templates:[]},templateEdits:{},featureServices:[],spatialReferenceInfo:{enabled:!1,services:{}}},f=class{constructor(){this._hasChanges=!1,this._store=P({...u})}static get Store(){return this._instance||(this._instance=new this)}getItemInfo(a){let e=this._store.get("solutionData").templates,t;return e.some(s=>a==s.itemId?(t=s,!0):!1),t||void 0}getStoreInfo(a){return this._store.get(a)}async loadSolution(a,e){this._authentication=e;let t=await S(a,e);if(t){let s=m(t,"params.wkid.default","");await this._prepareSolutionItemsForEditing(a,t.templates,e);let r=this._getFeatureServices(t.templates),i=this._getSpatialReferenceInfo(r,s);this._store.set("solutionItemId",a),this._store.set("defaultWkid",s),this._store.set("solutionData",t),this._store.set("featureServices",r),this._store.set("spatialReferenceInfo",i)}this._flagStoreHasChanges(!1)}replaceItemThumbnail(a){a.resourceFilePaths.forEach(e=>{e.type===n.Thumbnail&&(e.updateType===o.None?e.updateType=o.Remove:(e.updateType===o.Add||e.updateType===o.Update)&&(e.updateType=o.Obsolete))}),a.resourceFilePaths=a.resourceFilePaths.filter(e=>e.updateType!=o.Obsolete),a.resourceFilePaths.push({blob:a.thumbnail,filename:a.thumbnail.name,type:n.Thumbnail,updateType:o.Add}),this.setItemInfo(a)}async saveSolution(){let a=this._store.get("solutionItemId"),e=this._store.get("solutionData"),t=this._store.get("spatialReferenceInfo"),s=this._store.get("featureServices");if(await this._prepareSolutionItemsForStorage(a,e.templates,this._authentication),this._updateFSSpatialReferenceInfoInTemplates(s,e.templates),t.enabled){let r={label:"Spatial Reference",valueType:"spatialReference",attributes:{required:!0}};t.default&&(r.default=t.default),d(e,"params.wkid",r)}else d(e,"params.wkid",{});await b({id:a,text:e},this._authentication)}setItemInfo(a){let e=this._store.get("solutionData");e.templates.some(t=>a.itemId==t.itemId?(t=a,this._store.set("solutionData",e),this._flagStoreHasChanges(!0),!0):!1)}setStoreInfo(a,e){this._store.set(a,e),this._flagStoreHasChanges(!0)}_testAccess(a,e,t,s){switch(a){case"_emptyTheStore":this._emptyTheStore();break;case"_getFeatureServices":return this._getFeatureServices(e);case"_getItemsSharedWithThisGroup":return this._getItemsSharedWithThisGroup(e,t);case"_getResourceFilePaths":return this._getResourceFilePaths(e,t,s);case"_getResourceStorageName":return this._getResourceStorageName(e,t);case"_getSpatialReferenceInfo":return this._getSpatialReferenceInfo(e,t);case"_prepareSolutionItemsForEditing":return this._prepareSolutionItemsForEditing(e,t,s);case"_prepareSolutionItemsForStorage":return this._prepareSolutionItemsForStorage(e,t,s);case"_splitFilename":return this._splitFilename(e);case"_updateFSSpatialReferenceInfoInTemplates":return this._updateFSSpatialReferenceInfoInTemplates(e,t)}return null}_emptyTheStore(){this._store.set("solutionItemId",u.solutionItemId),this._store.set("defaultWkid",u.defaultWkid),this._store.set("solutionData",u.solutionData),this._store.set("templateEdits",u.templateEdits),this._store.set("featureServices",u.featureServices),this._store.set("spatialReferenceInfo",u.spatialReferenceInfo)}_flagStoreHasChanges(a){window.dispatchEvent(new CustomEvent("solutionStoreHasChanges",{detail:a,bubbles:!0,cancelable:!1,composed:!0})),this._hasChanges=a}_getCustomizableFeatureServices(a){return a.reduce((e,t)=>(t.type==="Feature Service"&&(t?.item?.typeKeywords||[]).indexOf("View Service")<0&&e.push(t),e),[])}_getFeatureServices(a){return this._getCustomizableFeatureServices(a).map(e=>{let t=e.item.title||e.item.name,s=g(e,"properties.service.spatialReference.wkid");return{id:e.itemId,name:t,enabled:s.toString().startsWith(_),wkid:s}})}_getItemsSharedWithThisGroup(a,e){return e.reduce((t,s)=>(s.itemId!==a.itemId&&s.type!=="Group"&&t.push({id:s.itemId,title:s.item.name||s.item.title,isShared:(s.groups||[]).indexOf(a.itemId)>-1,shareItem:(s.groups||[]).indexOf(a.itemId)>-1,type:s.type,typeKeywords:s.item.typeKeywords}),t),[])}_getResourceFilePaths(a,e,t){return y(t,a,e.resources,1).map(s=>(s.updateType=o.None,s))}_getResourceStorageName(a,e){let t=a;switch(e.type){case n.Data:t=`${t}_info_data`;break;case n.Info:t=`${t}_info`;break;case n.Metadata:t=`${t}_info_metadata`;break;case n.Resource:break;case n.Thumbnail:t=`${t}_info_thumbnail`;break}let s=e.filename;e.type==n.Data&&s&&!v(s)&&(s=s+".zip",t+="z");let r=e.folder?e.folder+"/"+s:s;return t+"/"+r}_getSpatialReferenceInfo(a,e){let t={};a.forEach(r=>{t[r.name]=r.enabled});let s={enabled:!1,services:t};return e&&(s.default=e),s}async _prepareSolutionItemsForEditing(a,e,t){let s=[];e.forEach(i=>{i.resourceFilePaths=this._getResourceFilePaths(a,i,t.portal),s.push(i.resourceFilePaths.length>0?R(t,i.resourceFilePaths):Promise.resolve()),i.groupDetails=i.type==="Group"?this._getItemsSharedWithThisGroup(i,e):[]});let r=await Promise.all(s);return e.forEach((i,l)=>{i.thumbnail=r[l]?r[l]:void 0}),Promise.resolve()}async _prepareSolutionItemsForStorage(a,e,t){let s=[],r=[];return e.forEach(i=>{i.resourceFilePaths.forEach(async l=>{let p=this._getResourceStorageName(i.itemId,l);switch(l.updateType){case o.Add:let{prefix:k,suffix:E}=this._splitFilename(p);i.resources.push(p),s.push({itemId:i.itemId,file:l.blob,folder:k,filename:E});break;case o.Update:r.push(new Promise(async h=>{try{await T(a,p,l.blob,t)}catch(c){console.log("Unable to update "+p+" for item "+i.itemId+": "+JSON.stringify(c))}h()}));break;case o.Remove:r.push(new Promise(async h=>{try{await w(a,p,t),i.resources=i.resources.filter(c=>c!==p)}catch(c){console.log("Unable to remove "+p+" for item "+i.itemId+": "+JSON.stringify(c))}h()}));break}return Promise.resolve()}),delete i.thumbnail,delete i.groupDetails}),Promise.all(r).then(async()=>(s.length>0&&await F(s,a,t),Promise.resolve()))}_updateFSSpatialReferenceInfoInTemplates(a,e){let t=this._getCustomizableFeatureServices(e);t.forEach(s=>{let r=a.find(i=>i.id===s.itemId);if(r){let i=m(s,"properties.service.spatialReference",{});i.wkid=r.wkid,r.enabled&&i.latestWkid&&delete i.latestWkid,I(s,"properties.service.spatialReference",i)}}),e.forEach(s=>{let r=t.find(i=>i.itemId===s.itemId);if(r){s.properties.service.spatialReference={...r.properties.service.spatialReference};let i=Number.parseInt(s.properties.service.spatialReference.wkid);Number.isNaN(i)||(s.properties.service.spatialReference.wkid=i)}})}_splitFilename(a){let e=a.split("/");return{prefix:e.length>1?e.slice(0,e.length-1).join("/"):void 0,suffix:e[e.length-1]}}},O=f.Store;export{O as a};
|