@esri/hub-web-components 0.37.2 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/236HAGEK.js +2 -0
- package/dist/cdn/24WHEGS7.js +2 -0
- package/dist/cdn/25LZMJQW.js +2 -0
- package/dist/cdn/2BWJP4KH.js +2 -0
- package/dist/cdn/2DUPJPOK.js +2 -0
- package/dist/cdn/2EE4427F.js +2 -0
- package/dist/cdn/2EQH4CNE.js +2 -0
- package/dist/cdn/2EW2MAGT.js +2 -0
- package/dist/cdn/2H3NL2VR.js +2 -0
- package/dist/cdn/2ILIJZDY.js +2 -0
- package/dist/cdn/2JB3S3J4.js +2 -0
- package/dist/cdn/2LVSW3ED.js +2 -0
- package/dist/cdn/2OWGC2HG.js +2 -0
- package/dist/cdn/2RDZQFBD.js +2 -0
- package/dist/cdn/2TXGBFPG.js +2 -0
- package/dist/cdn/2WDM2VJM.js +2 -0
- package/dist/cdn/2WECGEBX.js +2 -0
- package/dist/cdn/2ZIJNDHQ.js +2 -0
- package/dist/cdn/2ZXVJSBO.js +2 -0
- package/dist/cdn/32UA342W.js +2 -0
- package/dist/cdn/32XX3F4E.js +2 -0
- package/dist/cdn/3BR5KKQ7.js +2 -0
- package/dist/cdn/3CHF3GEJ.js +2 -0
- package/dist/cdn/3CY6I4EO.js +2 -0
- package/dist/cdn/3FJHYATI.js +2 -0
- package/dist/cdn/3GDGENCS.js +2 -0
- package/dist/cdn/3GKXMAXM.js +2 -0
- package/dist/cdn/3HVIG2SK.js +2 -0
- package/dist/cdn/3JKXA4Q3.js +2 -0
- package/dist/cdn/3JODVSTM.js +2 -0
- package/dist/cdn/3KHULCZO.js +2 -0
- package/dist/cdn/3LBQDCLR.js +2 -0
- package/dist/cdn/3M5VO5CS.js +2 -0
- package/dist/cdn/3OVLI4PU.js +9 -0
- package/dist/cdn/3OWO3OYZ.js +2 -0
- package/dist/cdn/3PZNRYMF.js +2 -0
- package/dist/cdn/3QTUUB7M.js +2 -0
- package/dist/cdn/3UW2TBEZ.js +2 -0
- package/dist/cdn/3UXE5BF3.js +2 -0
- package/dist/cdn/3VUHOWXT.js +2 -0
- package/dist/cdn/3WXL3KU4.js +2 -0
- package/dist/cdn/3XPQULRS.js +2 -0
- package/dist/cdn/45CLNG4V.js +2 -0
- package/dist/cdn/45V63GZB.js +2 -0
- package/dist/cdn/45Z5LSII.js +2 -0
- package/dist/cdn/46JROUMF.js +2 -0
- package/dist/cdn/4D3KDOGU.js +2 -0
- package/dist/cdn/4E7UX35B.js +2 -0
- package/dist/cdn/4GF4O5CD.js +2 -0
- package/dist/cdn/4KOILCWX.js +2 -0
- package/dist/cdn/4LSDKVY5.js +2 -0
- package/dist/cdn/4MK7XIAZ.js +2 -0
- package/dist/cdn/4QLO26TU.js +2 -0
- package/dist/cdn/4RF57BXA.js +2 -0
- package/dist/cdn/4RW76P4G.js +3 -0
- package/dist/cdn/4WFBSXCD.js +2 -0
- package/dist/cdn/4YKJQWLZ.js +2 -0
- package/dist/cdn/52EXRWO7.js +2 -0
- package/dist/cdn/546UMMXC.js +4 -0
- package/dist/cdn/564WTIUK.js +2 -0
- package/dist/cdn/5AQLELE7.js +2 -0
- package/dist/cdn/5AY5O6NA.js +2 -0
- package/dist/cdn/5BFO4SMC.js +23 -0
- package/dist/cdn/5BNQ7WYV.js +2 -0
- package/dist/cdn/5BSBS5SB.js +2 -0
- package/dist/cdn/5DW6FQAN.js +2 -0
- package/dist/cdn/5IE6W375.js +2 -0
- package/dist/cdn/5KW2QPZC.js +2 -0
- package/dist/cdn/5MLRZJVF.js +2 -0
- package/dist/cdn/5PCBOJUL.js +2 -0
- package/dist/cdn/5PGWPW32.js +2 -0
- package/dist/cdn/5PWUXR6C.js +2 -0
- package/dist/cdn/5T2V664O.js +2 -0
- package/dist/cdn/5VOM4C4C.js +2 -0
- package/dist/cdn/5XEIW7CT.js +2 -0
- package/dist/cdn/634MHX5H.js +2 -0
- package/dist/cdn/63S2PXLQ.js +2 -0
- package/dist/cdn/677XOGDW.js +2 -0
- package/dist/cdn/6ANGFMIE.js +2 -0
- package/dist/cdn/6CHWESL2.js +2 -0
- package/dist/cdn/6EVJFJHR.js +2 -0
- package/dist/cdn/6GKOYJ5G.js +2 -0
- package/dist/cdn/6HR5VJ5Z.js +2 -0
- package/dist/cdn/6PGSCXG5.js +3 -0
- package/dist/cdn/6PP6S4SR.js +2 -0
- package/dist/cdn/6PXXMBGG.js +101 -0
- package/dist/cdn/6QTH3TK4.js +2 -0
- package/dist/cdn/6SBBIF36.js +2 -0
- package/dist/cdn/6UI543V2.js +2 -0
- package/dist/cdn/6WWLOLK2.js +2 -0
- package/dist/cdn/72JEALD6.js +2 -0
- package/dist/cdn/73VGDY64.js +2 -0
- package/dist/cdn/76PBLDOW.js +2 -0
- package/dist/cdn/76VGL2OG.js +2 -0
- package/dist/cdn/77X4MPIK.js +2 -0
- package/dist/cdn/7ASFWI7S.js +2 -0
- package/dist/cdn/7G2NGRSE.js +2 -0
- package/dist/cdn/7GI2O7DN.js +2 -0
- package/dist/cdn/7IGM7SZV.js +2 -0
- package/dist/cdn/7J23Y6UZ.js +2 -0
- package/dist/cdn/7JJRW4NC.js +2 -0
- package/dist/cdn/7LZEINS7.js +2 -0
- package/dist/cdn/7M6WAN4F.js +2 -0
- package/dist/cdn/7NHQNVMM.js +2 -0
- package/dist/cdn/7OKY7BOU.js +2 -0
- package/dist/cdn/7QXOPKDR.js +2 -0
- package/dist/cdn/7YFSWA6Y.js +2 -0
- package/dist/cdn/7ZNOM7XH.js +2 -0
- package/dist/cdn/A5ALDCCE.js +2 -0
- package/dist/cdn/A5DE26HL.js +5468 -0
- package/dist/cdn/A6MK5ZPP.js +2 -0
- package/dist/cdn/A7UTEGFQ.js +2 -0
- package/dist/cdn/ACFPNLIK.js +2 -0
- package/dist/cdn/ADYIOWEG.js +2 -0
- package/dist/cdn/AH23WNQW.js +2 -0
- package/dist/cdn/AHSJJDVA.js +2 -0
- package/dist/cdn/AJHFVXHK.js +2 -0
- package/dist/cdn/AJR3J6MJ.js +2 -0
- package/dist/cdn/AMGCL5N6.js +2 -0
- package/dist/cdn/AOJJIJRH.js +2 -0
- package/dist/cdn/AOSFOFZC.js +2 -0
- package/dist/cdn/AS6M5YBE.js +2 -0
- package/dist/cdn/AT75BQVI.js +2 -0
- package/dist/cdn/B4SFNUJX.js +2 -0
- package/dist/cdn/B7A7RSZ4.js +2 -0
- package/dist/cdn/B7XZZQM4.js +2 -0
- package/dist/cdn/BDCNWDSM.js +2 -0
- package/dist/cdn/BE4JSUS6.js +2 -0
- package/dist/cdn/BGUBTLON.js +2 -0
- package/dist/cdn/BIAMJNHV.js +2 -0
- package/dist/cdn/BK6XX2AU.js +2 -0
- package/dist/cdn/BMPXQTR3.js +2 -0
- package/dist/cdn/BN2OLK73.js +2 -0
- package/dist/cdn/BNGN57J7.js +2 -0
- package/dist/cdn/BOV2P5AR.js +2 -0
- package/dist/cdn/BOXLFPBZ.js +2 -0
- package/dist/cdn/BREHLWWL.js +2 -0
- package/dist/cdn/BRRV3DOR.js +22 -0
- package/dist/cdn/BRTJWWHS.js +2 -0
- package/dist/cdn/BTELCOY5.js +2 -0
- package/dist/cdn/BWE2I5AG.js +2 -0
- package/dist/cdn/BWUAY2LE.js +2 -0
- package/dist/cdn/BZAKLMBW.js +2 -0
- package/dist/cdn/C5YJ666N.js +2 -0
- package/dist/cdn/C67HM5IZ.js +2 -0
- package/dist/cdn/C6J22WJW.js +2 -0
- package/dist/cdn/CDLDZD7A.js +57 -0
- package/dist/cdn/CFPF74RM.js +2 -0
- package/dist/cdn/CGY4TVMV.js +2 -0
- package/dist/cdn/CHENEYUV.js +2 -0
- package/dist/cdn/CL6SOVSI.js +2 -0
- package/dist/cdn/CSGFPAKT.js +2 -0
- package/dist/cdn/CSWPB3OX.js +2 -0
- package/dist/cdn/CSYFGNUQ.js +2 -0
- package/dist/cdn/CU5WQBOB.js +2 -0
- package/dist/cdn/CWFJZAPU.js +2 -0
- package/dist/cdn/CWYD5K4S.js +2 -0
- package/dist/cdn/CXTLB2JC.js +2 -0
- package/dist/cdn/D2FW5KKG.js +2 -0
- package/dist/cdn/D2PJNXW6.js +2 -0
- package/dist/cdn/D3BILNAQ.js +2 -0
- package/dist/cdn/D3R4UBO6.js +2 -0
- package/dist/cdn/D55X5MXF.js +2 -0
- package/dist/cdn/DAVFVKTV.js +2 -0
- package/dist/cdn/DAX4IQBA.js +2 -0
- package/dist/cdn/DB7GEQTR.js +2 -0
- package/dist/cdn/DBRFT7B4.js +2 -0
- package/dist/cdn/DBXBA6HT.js +2 -0
- package/dist/cdn/DCDDWF2I.js +2 -0
- package/dist/cdn/DDJLRFBZ.js +2 -0
- package/dist/cdn/DDQO772J.js +2 -0
- package/dist/cdn/DEDRO7EB.js +2 -0
- package/dist/cdn/DF7ABV7W.js +2 -0
- package/dist/cdn/DFJJV4QP.js +2 -0
- package/dist/cdn/DHG3VO5E.js +2 -0
- package/dist/cdn/DN2VD27M.js +2 -0
- package/dist/cdn/DQTK57GS.js +2 -0
- package/dist/cdn/DR5DLTDD.js +2 -0
- package/dist/cdn/DUUDWZXE.js +2 -0
- package/dist/cdn/DUXSX52F.js +49 -0
- package/dist/cdn/DVL64T57.js +2 -0
- package/dist/cdn/DXTZVNWA.js +3 -0
- package/dist/cdn/DZN62VYN.js +2 -0
- package/dist/cdn/DZYZIET6.js +2 -0
- package/dist/cdn/E4CJ5ZNU.js +2 -0
- package/dist/cdn/E7JK3E34.js +2 -0
- package/dist/cdn/EAHWXQSY.js +2 -0
- package/dist/cdn/EBGADEP4.js +2 -0
- package/dist/cdn/ECVIS6PA.js +2 -0
- package/dist/cdn/EDJVOECM.js +2 -0
- package/dist/cdn/EH5WKZDX.js +2 -0
- package/dist/cdn/EIJD2PFU.js +2 -0
- package/dist/cdn/EJKK6I5R.js +2 -0
- package/dist/cdn/EKJB7MLI.js +2 -0
- package/dist/cdn/ENWVIHLH.js +2 -0
- package/dist/cdn/EP5J4JOX.js +2 -0
- package/dist/cdn/EPA7NLL3.js +2 -0
- package/dist/cdn/EPITUUL4.js +2 -0
- package/dist/cdn/EQZAUOXD.js +2 -0
- package/dist/cdn/ETNEKEKW.js +2 -0
- package/dist/cdn/EVEBEV3F.js +2 -0
- package/dist/cdn/EWAU66TF.js +2 -0
- package/dist/cdn/EXQCLQJD.js +2 -0
- package/dist/cdn/F3QYJUVR.js +2 -0
- package/dist/cdn/F4W62LF6.js +2 -0
- package/dist/cdn/F5MRLCKP.js +2 -0
- package/dist/cdn/F67HAQPI.js +2 -0
- package/dist/cdn/FCWCW2DB.js +2 -0
- package/dist/cdn/FELT6CWD.js +2 -0
- package/dist/cdn/FGXWNIN4.js +4 -0
- package/dist/cdn/FII3RW6D.js +10 -0
- package/dist/cdn/FLLYEIGM.js +2 -0
- package/dist/cdn/FNKBHO4M.js +2 -0
- package/dist/cdn/FO7JXNJA.js +2 -0
- package/dist/cdn/FONOHWD4.js +2 -0
- package/dist/cdn/FQ67NRY3.js +2 -0
- package/dist/cdn/FQTSRTTQ.js +2 -0
- package/dist/cdn/FR67HD5Q.js +2 -0
- package/dist/cdn/FUJECPFL.js +2 -0
- package/dist/cdn/G2VRBYFE.js +2 -0
- package/dist/cdn/G2VZF3XU.js +2 -0
- package/dist/cdn/G5LBL73C.js +2 -0
- package/dist/cdn/G6H6YQAR.js +2 -0
- package/dist/cdn/GFRFAB56.js +2 -0
- package/dist/cdn/GHNVBIZM.js +2 -0
- package/dist/cdn/GMWP6LCV.js +2 -0
- package/dist/cdn/GQCVJRFN.js +2 -0
- package/dist/cdn/GQEOGWRS.js +2 -0
- package/dist/cdn/GQJNXTQT.js +2 -0
- package/dist/cdn/GUVU7ZKH.js +2 -0
- package/dist/cdn/GWE7MB6R.js +2 -0
- package/dist/cdn/GXN2DYTV.js +2 -0
- package/dist/cdn/GY557TE4.js +2 -0
- package/dist/cdn/H22LIWN5.js +2 -0
- package/dist/cdn/H2OV5BRE.js +2 -0
- package/dist/cdn/H4KV7MLW.js +2 -0
- package/dist/cdn/H6RS3MWN.js +2 -0
- package/dist/cdn/HAVGOHEF.js +2 -0
- package/dist/cdn/HFGNOB7X.js +2 -0
- package/dist/cdn/HFO5EQR7.js +2 -0
- package/dist/cdn/HHG5BEOE.js +2 -0
- package/dist/cdn/HKZINVVZ.js +2 -0
- package/dist/cdn/HM3XWGWB.js +2 -0
- package/dist/cdn/HS5U6SAB.js +2 -0
- package/dist/cdn/HT6X7J7I.js +2 -0
- package/dist/cdn/HUBM7ZHQ.js +2 -0
- package/dist/cdn/HWJYICV2.js +2 -0
- package/dist/cdn/HX2ANNLW.js +2 -0
- package/dist/cdn/HXAEGJHA.js +2 -0
- package/dist/cdn/HZZPNHJD.js +2 -0
- package/dist/cdn/HZZT4ENK.js +39 -0
- package/dist/cdn/I6NM57PS.js +2 -0
- package/dist/cdn/IEFGEXRM.js +2 -0
- package/dist/cdn/IIVZDUOO.js +2 -0
- package/dist/cdn/ILA26VYV.js +2 -0
- package/dist/cdn/INL22W2K.js +2 -0
- package/dist/cdn/IPB6I32R.js +2 -0
- package/dist/cdn/IQKUMB36.js +2 -0
- package/dist/cdn/IRDXKWHN.js +2 -0
- package/dist/cdn/IRK5TOIL.js +2 -0
- package/dist/cdn/ISFIYPYM.js +50 -0
- package/dist/cdn/ISKLXQSB.js +2 -0
- package/dist/cdn/IT7YVVDI.js +2 -0
- package/dist/cdn/ITUDVJWT.js +2 -0
- package/dist/cdn/J3IYBH53.js +2 -0
- package/dist/cdn/J43Y4A2N.js +2 -0
- package/dist/cdn/J5GHLLAB.js +2 -0
- package/dist/cdn/JAM7T5PB.js +4 -0
- package/dist/cdn/JBSROA2H.js +2 -0
- package/dist/cdn/JC6ZBDVV.js +2 -0
- package/dist/cdn/JDLEH54P.js +2 -0
- package/dist/cdn/JH4TZ3IY.js +2 -0
- package/dist/cdn/JKGOCFVC.js +2 -0
- package/dist/cdn/JKK5LJAI.js +2 -0
- package/dist/cdn/JMUGY3OJ.js +2 -0
- package/dist/cdn/JN6YHOUS.js +2 -0
- package/dist/cdn/JNSS6JH3.js +2 -0
- package/dist/cdn/JOX32ZKP.js +2 -0
- package/dist/cdn/JR6CWQ3R.js +2 -0
- package/dist/cdn/JSSFWJCY.js +2 -0
- package/dist/cdn/JUIATBR3.js +2 -0
- package/dist/cdn/JUNOFH56.js +2 -0
- package/dist/cdn/JXP5MO3J.js +2 -0
- package/dist/cdn/JYIVT4P3.js +2 -0
- package/dist/cdn/JYREZGPA.js +2 -0
- package/dist/cdn/K2D5G22Z.js +2 -0
- package/dist/cdn/K5HZ2G74.js +2 -0
- package/dist/cdn/K6AMDRTV.js +2 -0
- package/dist/cdn/K6CWANHE.js +2 -0
- package/dist/cdn/K7BNQOOW.js +2 -0
- package/dist/cdn/KBNCRVPP.js +2 -0
- package/dist/cdn/KGGAN2FF.js +2 -0
- package/dist/cdn/KLMBAQIW.js +2 -0
- package/dist/cdn/KNLJ2Y2L.js +2 -0
- package/dist/cdn/KQHNHQIC.js +6 -0
- package/dist/cdn/KRXEHAAE.js +2 -0
- package/dist/cdn/KTRB3474.js +2 -0
- package/dist/cdn/KUUU37O7.js +2 -0
- package/dist/cdn/KWAQZHYD.js +2 -0
- package/dist/cdn/KYWSYVJC.js +2 -0
- package/dist/cdn/L2PPM2B2.js +2 -0
- package/dist/cdn/L3E7MHJD.js +2 -0
- package/dist/cdn/L4JCSXPA.js +2 -0
- package/dist/cdn/L5EFE534.js +2 -0
- package/dist/cdn/L6JOUO4R.js +2 -0
- package/dist/cdn/L6KTWLZO.js +2 -0
- package/dist/cdn/LAGV6T2P.js +2 -0
- package/dist/cdn/LAPB4R6P.js +2 -0
- package/dist/cdn/LLPWCLVS.js +2 -0
- package/dist/cdn/LN5YCGL5.js +2 -0
- package/dist/cdn/LNSWRA2E.js +2 -0
- package/dist/cdn/LQLM5UFO.js +2 -0
- package/dist/cdn/LRLKKT6E.js +2 -0
- package/dist/cdn/LST2TEQ7.js +2 -0
- package/dist/cdn/LT5EGN2B.js +2 -0
- package/dist/cdn/LV543PTH.js +2 -0
- package/dist/cdn/LZC3KVDN.js +2 -0
- package/dist/cdn/M6WEQLC4.js +2 -0
- package/dist/cdn/M7PXGKUN.js +2 -0
- package/dist/cdn/MA4PQFDN.js +2 -0
- package/dist/cdn/MDGTCFT7.js +2 -0
- package/dist/cdn/MIV7EHSX.js +2 -0
- package/dist/cdn/MK64YJZT.js +2 -0
- package/dist/cdn/MKFRUSCH.js +2 -0
- package/dist/cdn/MKK63VCT.js +2 -0
- package/dist/cdn/MLZ3XGVR.js +2 -0
- package/dist/cdn/MOFQMUCX.js +2 -0
- package/dist/cdn/MPUNYAO6.js +2 -0
- package/dist/cdn/MS7HEOST.js +2 -0
- package/dist/cdn/MSDIL3V2.js +2 -0
- package/dist/cdn/MUNTT3ZX.js +2 -0
- package/dist/cdn/MX2LFKDN.js +2 -0
- package/dist/cdn/MZPEHZQ6.js +2 -0
- package/dist/cdn/MZTSQFVF.js +2 -0
- package/dist/cdn/N5GAHY3Z.js +2 -0
- package/dist/cdn/N5Q4VONY.js +2 -0
- package/dist/cdn/N6YCTEBM.js +2 -0
- package/dist/cdn/NA26EC7V.js +2 -0
- package/dist/cdn/NEIM3TBD.js +2 -0
- package/dist/cdn/NGHDJBY5.js +2 -0
- package/dist/cdn/NHJYS2PI.js +2 -0
- package/dist/cdn/NIAU4VO5.js +2 -0
- package/dist/cdn/NIJNUESB.js +2 -0
- package/dist/cdn/NK3ILYT4.js +2 -0
- package/dist/cdn/NKTEP5PG.js +2 -0
- package/dist/cdn/NMDYCBFW.js +2 -0
- package/dist/cdn/NQU3EFLX.js +2 -0
- package/dist/cdn/NZKEUWJO.js +2 -0
- package/dist/cdn/O24TJJIA.js +2 -0
- package/dist/cdn/OB5VPFBQ.js +2 -0
- package/dist/cdn/OCROULRG.js +2 -0
- package/dist/cdn/ODWK4PGO.js +2 -0
- package/dist/cdn/OEYT6KBR.js +2 -0
- package/dist/cdn/OGW276HU.js +2 -0
- package/dist/cdn/OHDLPBUL.js +2 -0
- package/dist/cdn/OKPRBA73.js +2 -0
- package/dist/cdn/OLIXHQ45.js +2 -0
- package/dist/cdn/OM6RXTNE.js +2 -0
- package/dist/cdn/OMUDX3KZ.js +2 -0
- package/dist/cdn/ONB5KTQJ.js +2 -0
- package/dist/cdn/OODAGA7S.js +2 -0
- package/dist/cdn/OQ2B5D7H.js +2 -0
- package/dist/cdn/OT6SCCRW.js +2 -0
- package/dist/cdn/OU5H6LGW.js +2 -0
- package/dist/cdn/OY4XFH6U.js +2 -0
- package/dist/cdn/P2RUPXUY.js +2 -0
- package/dist/cdn/P6CKD2GP.js +2 -0
- package/dist/cdn/PBJKVPW5.js +2 -0
- package/dist/cdn/PE2YQIC4.js +2 -0
- package/dist/cdn/PG7E7354.js +2 -0
- package/dist/cdn/PIFGTBYR.js +2 -0
- package/dist/cdn/PJNURHKH.js +2 -0
- package/dist/cdn/PPTPAJVV.js +2 -0
- package/dist/cdn/PR4YIRMU.js +2 -0
- package/dist/cdn/PRO345O5.js +2 -0
- package/dist/cdn/PTRRO6WN.js +2 -0
- package/dist/cdn/PUUASAJ2.js +2 -0
- package/dist/cdn/PUUPBPMV.js +2 -0
- package/dist/cdn/PVBRAWDN.js +2 -0
- package/dist/cdn/PVJYYXFI.js +2 -0
- package/dist/cdn/PX2LKSL6.js +2 -0
- package/dist/cdn/Q26WYPCD.js +2 -0
- package/dist/cdn/Q4DVCEF3.js +2 -0
- package/dist/cdn/Q67H57WZ.js +2 -0
- package/dist/cdn/Q6BO676X.js +2 -0
- package/dist/cdn/Q6PGP3ZV.js +2 -0
- package/dist/cdn/Q7LIRPNK.js +2 -0
- package/dist/cdn/QBXTRM4A.js +2 -0
- package/dist/cdn/QFB257DG.js +2 -0
- package/dist/cdn/QHE543NP.js +2 -0
- package/dist/cdn/QLBQIWYL.js +2 -0
- package/dist/cdn/QLXCZ3NE.js +2 -0
- package/dist/cdn/QN2SIA7O.js +2 -0
- package/dist/cdn/QN6BOKR7.js +2 -0
- package/dist/cdn/QNV4N454.js +2 -0
- package/dist/cdn/QO2PWUWM.js +2 -0
- package/dist/cdn/QQLO6W5R.js +2 -0
- package/dist/cdn/QQNCKFBK.js +2 -0
- package/dist/cdn/QREJXP7C.js +2 -0
- package/dist/cdn/QRPVQBFD.js +2 -0
- package/dist/cdn/QUDAZ77Y.js +2 -0
- package/dist/cdn/QUEMC3AN.js +2 -0
- package/dist/cdn/QYJYDEZE.js +2 -0
- package/dist/cdn/QYPLXIBB.js +2 -0
- package/dist/cdn/QYQIPUGM.js +2 -0
- package/dist/cdn/R3GQKIJ5.js +2 -0
- package/dist/cdn/R7C6MNQH.js +2 -0
- package/dist/cdn/RBGNUTQK.js +2 -0
- package/dist/cdn/RC5E7RLU.js +2 -0
- package/dist/cdn/RCP7UO3I.js +2 -0
- package/dist/cdn/REWZLA3K.js +2 -0
- package/dist/cdn/RGXVBRFC.js +2 -0
- package/dist/cdn/RN7HGMZW.js +6 -0
- package/dist/cdn/RQIJVACD.js +2 -0
- package/dist/cdn/RUVOYVVB.js +2 -0
- package/dist/cdn/RXEDODJY.js +2 -0
- package/dist/cdn/RY3BOHEX.js +2 -0
- package/dist/cdn/S4F4TUDC.js +2 -0
- package/dist/cdn/S5UG2OK3.js +2 -0
- package/dist/cdn/S652H4VN.js +2 -0
- package/dist/cdn/SADDC2DK.js +2 -0
- package/dist/cdn/SDQL72GW.js +2 -0
- package/dist/cdn/SEJFEDAL.js +2 -0
- package/dist/cdn/SERXR2LG.js +2 -0
- package/dist/cdn/SEXTYSOH.js +2 -0
- package/dist/cdn/SR3XA2A2.js +3 -0
- package/dist/cdn/SRE3UGET.js +2 -0
- package/dist/cdn/SRMTUU32.js +2 -0
- package/dist/cdn/SSUMP2NE.js +2 -0
- package/dist/cdn/ST3YYA5D.js +2 -0
- package/dist/cdn/SVRAUC4L.js +2 -0
- package/dist/cdn/SWVXW2PZ.js +2 -0
- package/dist/cdn/T64QL6SH.js +2 -0
- package/dist/cdn/T74ADXHD.js +2 -0
- package/dist/cdn/T7QPSQ6X.js +2 -0
- package/dist/cdn/TE3YDUFZ.js +2 -0
- package/dist/cdn/TEMTRFHO.js +2 -0
- package/dist/cdn/TH2B62CH.js +2 -0
- package/dist/cdn/TIXP2JWX.js +2 -0
- package/dist/cdn/TJH2CAQN.js +2 -0
- package/dist/cdn/TJNCJLFE.js +2 -0
- package/dist/cdn/TOY6PXDP.js +2 -0
- package/dist/cdn/TRW2D3YU.js +2 -0
- package/dist/cdn/TTL4NSLD.js +2 -0
- package/dist/cdn/TVV2X45U.js +2 -0
- package/dist/cdn/TVX5SDUH.js +2 -0
- package/dist/cdn/TWWDY4C3.js +2 -0
- package/dist/cdn/TZXHHOXC.js +10 -0
- package/dist/cdn/U5GGWHZO.js +2 -0
- package/dist/cdn/U5V2PMFO.js +2 -0
- package/dist/cdn/U7DDSGRI.js +2 -0
- package/dist/cdn/UDP7EENP.js +2 -0
- package/dist/cdn/UHJI2POJ.js +2 -0
- package/dist/cdn/UHMRHQSA.js +2 -0
- package/dist/cdn/UJLWEMLF.js +2 -0
- package/dist/cdn/ULND2AHT.js +3 -0
- package/dist/cdn/UMTI4ASY.js +2 -0
- package/dist/cdn/UOFMXXCF.js +2 -0
- package/dist/cdn/UPJ5YFB3.js +2 -0
- package/dist/cdn/UPQGR6XZ.js +2 -0
- package/dist/cdn/UQFU44VU.js +2 -0
- package/dist/cdn/USNKSSNY.js +2 -0
- package/dist/cdn/UTYIY6RX.js +2 -0
- package/dist/cdn/UUBB3CRW.js +2 -0
- package/dist/cdn/UVZ42TD3.js +2 -0
- package/dist/cdn/UWIAJV2I.js +2 -0
- package/dist/cdn/UWUNHI7L.js +2 -0
- package/dist/cdn/UXXI3SQO.js +2 -0
- package/dist/cdn/UZV5ZDGJ.js +2 -0
- package/dist/cdn/V2I47N23.js +2 -0
- package/dist/cdn/V6NN26QF.js +2 -0
- package/dist/cdn/V7NGWJV5.js +2 -0
- package/dist/cdn/VJKJWIVW.js +2 -0
- package/dist/cdn/VNEAUDVI.js +2 -0
- package/dist/cdn/VQOZUBFA.js +2 -0
- package/dist/cdn/VQXRDNZT.js +2 -0
- package/dist/cdn/VTCPJ62B.js +2 -0
- package/dist/cdn/VTQYNCAR.js +2 -0
- package/dist/cdn/VURQPTCW.js +2 -0
- package/dist/cdn/VVLYSGUR.js +2 -0
- package/dist/cdn/VWAVVQJJ.js +2 -0
- package/dist/cdn/VXTU6DWN.js +2 -0
- package/dist/cdn/W5EQWPZT.js +2 -0
- package/dist/cdn/W6CIIV4Z.js +2 -0
- package/dist/cdn/W6YU4GHY.js +2 -0
- package/dist/cdn/W75PS2IE.js +2 -0
- package/dist/cdn/WBSLYVPQ.js +2 -0
- package/dist/cdn/WCDWD2B6.js +2 -0
- package/dist/cdn/WE2BDIRX.js +7 -0
- package/dist/cdn/WIS2JCU5.js +2 -0
- package/dist/cdn/WJFSSYRR.js +2 -0
- package/dist/cdn/WJVYYTL2.js +2 -0
- package/dist/cdn/WMNYXLEQ.js +2 -0
- package/dist/cdn/WNHQOQRJ.js +2 -0
- package/dist/cdn/WOGIQMDO.js +2 -0
- package/dist/cdn/WOPCBDZP.js +2 -0
- package/dist/cdn/WPYXFHC7.js +2 -0
- package/dist/cdn/WU3HBTHL.js +2 -0
- package/dist/cdn/WUEDA64M.js +2 -0
- package/dist/cdn/WUNRRAKS.js +2 -0
- package/dist/cdn/WUZQBPV4.js +2 -0
- package/dist/cdn/X3WMLB6V.js +2 -0
- package/dist/cdn/X5G7VGWH.js +2 -0
- package/dist/cdn/X65V22WZ.js +2 -0
- package/dist/cdn/XAYV7IBF.js +2 -0
- package/dist/cdn/XCFQMY4U.js +2 -0
- package/dist/cdn/XEYOWJGY.js +14 -0
- package/dist/cdn/XFCHMSR7.js +2 -0
- package/dist/cdn/XI6X55QD.js +2 -0
- package/dist/cdn/XKBY6EJC.js +2 -0
- package/dist/cdn/XLHG5W2O.js +2 -0
- package/dist/cdn/XRGUZJA3.js +2 -0
- package/dist/cdn/XWSO2EDX.js +2 -0
- package/dist/cdn/Y2JIY5K6.js +2 -0
- package/dist/cdn/Y3GRFUW3.js +2 -0
- package/dist/cdn/Y6Q6ENTP.js +2 -0
- package/dist/cdn/Y6Y62AIY.js +2 -0
- package/dist/cdn/YAJEJUPD.js +2 -0
- package/dist/cdn/YDJH3ZVL.js +2 -0
- package/dist/cdn/YEIHJDUB.js +2 -0
- package/dist/cdn/YHDGXQY6.js +2 -0
- package/dist/cdn/YIM7DW7Q.js +2 -0
- package/dist/cdn/YL3CSDPR.js +2 -0
- package/dist/cdn/YMACXVV6.js +2 -0
- package/dist/cdn/YMTAIN3S.js +2 -0
- package/dist/cdn/YO2Z7OX4.js +2 -0
- package/dist/cdn/YPCQEKG3.js +2 -0
- package/dist/cdn/YS3WYU6Q.js +2 -0
- package/dist/cdn/YSXFXSDF.js +2 -0
- package/dist/cdn/YUMQIDHT.js +2 -0
- package/dist/cdn/YWYHMMVI.js +2 -0
- package/dist/cdn/YZ6PJ4WA.js +2 -0
- package/dist/cdn/YZGO6EXJ.js +2 -0
- package/dist/cdn/Z7DMCQET.js +2 -0
- package/dist/cdn/Z7XRFVR2.js +2 -0
- package/dist/cdn/ZAXWIIVO.js +2 -0
- package/dist/cdn/ZCZVGMIV.js +2 -0
- package/dist/cdn/ZDKCRMXL.js +2 -0
- package/dist/cdn/ZHGSLQOD.js +2 -0
- package/dist/cdn/ZLIWQVLB.js +2 -0
- package/dist/cdn/ZMRTK5JK.js +2 -0
- package/dist/cdn/ZN44BYAC.js +2 -0
- package/dist/cdn/ZNBJRJBQ.js +2 -0
- package/dist/cdn/ZOHGPFJY.js +2 -0
- package/dist/cdn/ZSGSUGWJ.js +2 -0
- package/dist/cdn/ZV3N2SYE.js +2 -0
- package/dist/cdn/ZVJUBUUM.js +2 -0
- package/dist/cdn/ZZBJZPDW.js +2 -0
- package/dist/cdn/ZZRKDSLS.js +2 -0
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/findColumnAndNodeIndex.js +1 -1
- package/dist/chunks/getResponsiveClasses.js +1 -1
- package/dist/chunks/interpolate-translations.js +1 -1
- package/dist/chunks/isNodeVisible.js +1 -1
- package/dist/chunks/layoutContext.js +1 -1
- package/dist/chunks/migrateTextCard.js +1 -1
- package/dist/chunks/processLayout.js +1 -1
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/state.js +1 -1
- package/dist/chunks/typeGuards.js +1 -1
- package/dist/chunks/useGlobalContext.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/util.js +1 -1
- package/dist/components/arcgis-chat-shell/customElement.js +1 -1
- package/dist/components/arcgis-chat-ui/customElement.js +1 -1
- package/dist/components/arcgis-chat-ui/functional/chat-action/customElement.js +1 -1
- package/dist/components/arcgis-chat-ui/functional/chat-response/customElement.js +1 -1
- package/dist/components/arcgis-hub-ai-assistant/customElement.js +1 -1
- package/dist/components/arcgis-hub-entity-associations-card/customElement.js +1 -1
- package/dist/components/arcgis-hub-entity-metrics-card/customElement.js +1 -1
- package/dist/components/arcgis-hub-entity-status-card/customElement.js +1 -1
- package/dist/components/arcgis-hub-entity-view-layout/customElement.d.ts +4 -10
- package/dist/components/arcgis-hub-entity-view-layout/customElement.js +684 -665
- package/dist/components/arcgis-layout/customElement.js +1 -1
- package/dist/components/arcgis-layout-column/customElement.js +1 -1
- package/dist/components/arcgis-layout-container/customElement.d.ts +3 -3
- package/dist/components/arcgis-layout-container/customElement.js +275 -258
- package/dist/components/arcgis-layout-editor-toolbar/customElement.js +14 -14
- package/dist/components/arcgis-layout-node-controls/customElement.js +28 -28
- package/dist/components/arcgis-layout-node-editor/customElement.js +1 -1
- package/dist/components/arcgis-layout-node-editor/layout-node-editor-dynamic-tag/customElement.js +1 -1
- package/dist/components/arcgis-layout-node-wrapper/customElement.js +32 -32
- package/dist/components/arcgis-layout-row/customElement.js +1 -1
- package/dist/components/arcgis-layout-section/customElement.js +1 -1
- package/dist/components/arcgis-nav-card/customElement.js +1 -1
- package/dist/components/arcgis-text-card/customElement.js +1 -1
- package/dist/components/layouts/components/layout-node/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/embed-config.js +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +55 -54
- package/dist/cdn/24SIYWED.js +0 -2
- package/dist/cdn/25TYOHZS.js +0 -2
- package/dist/cdn/26WZVQ5A.js +0 -2
- package/dist/cdn/2B273BBV.js +0 -2
- package/dist/cdn/2B6D4MGZ.js +0 -2
- package/dist/cdn/2C25X57H.js +0 -2
- package/dist/cdn/2DD3P2GE.js +0 -2
- package/dist/cdn/2DPSKE3B.js +0 -2
- package/dist/cdn/2GV5ZJVP.js +0 -2
- package/dist/cdn/2GWRW6YG.js +0 -2
- package/dist/cdn/2KUCG2EL.js +0 -2
- package/dist/cdn/2NJPYBHN.js +0 -2
- package/dist/cdn/2PUMWMNI.js +0 -2
- package/dist/cdn/2SYN4GLC.js +0 -2
- package/dist/cdn/2TYW7KEN.js +0 -2
- package/dist/cdn/2W2UGJLH.js +0 -2
- package/dist/cdn/2WQEISGF.js +0 -2
- package/dist/cdn/2YBIU2GX.js +0 -2
- package/dist/cdn/377TGY4P.js +0 -2
- package/dist/cdn/37IO4VH2.js +0 -2
- package/dist/cdn/3BJZIUVK.js +0 -2
- package/dist/cdn/3C4D6M7U.js +0 -2
- package/dist/cdn/3CQWO3Y4.js +0 -2
- package/dist/cdn/3J67YE6G.js +0 -2
- package/dist/cdn/3LB3CYSI.js +0 -2
- package/dist/cdn/3MGFA2AN.js +0 -2
- package/dist/cdn/3PBVJ3CK.js +0 -2
- package/dist/cdn/3SHBZF4M.js +0 -2
- package/dist/cdn/3WN3ZWUP.js +0 -2
- package/dist/cdn/3ZHXUPIY.js +0 -2
- package/dist/cdn/3ZMBKQ2H.js +0 -2
- package/dist/cdn/425VBETO.js +0 -2
- package/dist/cdn/42CWBYSM.js +0 -2
- package/dist/cdn/42NTJTRV.js +0 -2
- package/dist/cdn/44KVKET3.js +0 -2
- package/dist/cdn/46NFE3O2.js +0 -2
- package/dist/cdn/47ZOSUE6.js +0 -2
- package/dist/cdn/4BGLQILZ.js +0 -2
- package/dist/cdn/4BRNZPNW.js +0 -2
- package/dist/cdn/4DPYGRIJ.js +0 -2
- package/dist/cdn/4EWTHNEV.js +0 -2
- package/dist/cdn/4KSDWTJW.js +0 -2
- package/dist/cdn/4PQFUUUG.js +0 -2
- package/dist/cdn/4QDRXQMV.js +0 -2
- package/dist/cdn/4QEFMWHF.js +0 -2
- package/dist/cdn/4ST5ERWK.js +0 -2
- package/dist/cdn/4ZRQCNU2.js +0 -2
- package/dist/cdn/53V23CCM.js +0 -2
- package/dist/cdn/56OZPWMC.js +0 -2
- package/dist/cdn/5E5J7S54.js +0 -49
- package/dist/cdn/5FBDGDSL.js +0 -2
- package/dist/cdn/5GNQYAFV.js +0 -2
- package/dist/cdn/5H44EM56.js +0 -2
- package/dist/cdn/5IANXD5L.js +0 -2
- package/dist/cdn/5IZIKW4H.js +0 -2
- package/dist/cdn/5J32RGDU.js +0 -2
- package/dist/cdn/5KNXEVQR.js +0 -2
- package/dist/cdn/5LEP3IWV.js +0 -2
- package/dist/cdn/5LJT6UGG.js +0 -2
- package/dist/cdn/5NJXZL7F.js +0 -2
- package/dist/cdn/5NZ5IS7D.js +0 -2
- package/dist/cdn/5ORZPL23.js +0 -2
- package/dist/cdn/5TU3W6P3.js +0 -2
- package/dist/cdn/5V53QYYF.js +0 -2
- package/dist/cdn/635V3Q2N.js +0 -2
- package/dist/cdn/65DPLBLL.js +0 -2
- package/dist/cdn/66HUEQL5.js +0 -2
- package/dist/cdn/6762DBBI.js +0 -2
- package/dist/cdn/6F3NCMF3.js +0 -2
- package/dist/cdn/6FPKPREN.js +0 -2
- package/dist/cdn/6GJMQB5A.js +0 -2
- package/dist/cdn/6IRHI22W.js +0 -9
- package/dist/cdn/6LDEVQEO.js +0 -2
- package/dist/cdn/6LZU7UCO.js +0 -2
- package/dist/cdn/6M5DP7YF.js +0 -2
- package/dist/cdn/6P7RNVD7.js +0 -2
- package/dist/cdn/6R5V3EGL.js +0 -2
- package/dist/cdn/6SPPONRY.js +0 -2
- package/dist/cdn/6SSTOHH4.js +0 -2
- package/dist/cdn/6TZEJNM7.js +0 -2
- package/dist/cdn/6VA6IJMP.js +0 -2
- package/dist/cdn/6VE4Q3FO.js +0 -2
- package/dist/cdn/6WUAXFQV.js +0 -2
- package/dist/cdn/6YRKIUVP.js +0 -2
- package/dist/cdn/72R6GI5S.js +0 -2
- package/dist/cdn/733IZVMO.js +0 -3
- package/dist/cdn/74ZD6Q4N.js +0 -2
- package/dist/cdn/75EIUMLW.js +0 -2
- package/dist/cdn/77R2C3NY.js +0 -2
- package/dist/cdn/7CZUONP3.js +0 -2
- package/dist/cdn/7GTUV67W.js +0 -2
- package/dist/cdn/7J2N6ILF.js +0 -2
- package/dist/cdn/7JWWAXIQ.js +0 -2
- package/dist/cdn/7LNSUWQP.js +0 -2
- package/dist/cdn/7MGY3JJQ.js +0 -2
- package/dist/cdn/7SELLYRO.js +0 -2
- package/dist/cdn/7SOJDYGK.js +0 -2
- package/dist/cdn/7UDDAIEI.js +0 -2
- package/dist/cdn/A36IL72A.js +0 -2
- package/dist/cdn/A6FB2POK.js +0 -2
- package/dist/cdn/ACG7WDUT.js +0 -2
- package/dist/cdn/AE6NCYFW.js +0 -2
- package/dist/cdn/AEPE3IDB.js +0 -2
- package/dist/cdn/AG22T6F4.js +0 -2
- package/dist/cdn/AHZOMFUT.js +0 -2
- package/dist/cdn/AJKLRRS4.js +0 -2
- package/dist/cdn/AJOXWMDO.js +0 -2
- package/dist/cdn/AKTKIQXI.js +0 -2
- package/dist/cdn/AL7OLCOX.js +0 -2
- package/dist/cdn/ALUW2GDJ.js +0 -2
- package/dist/cdn/AM4QVJ44.js +0 -2
- package/dist/cdn/AOSKEGOL.js +0 -2
- package/dist/cdn/ARGXJJIR.js +0 -2
- package/dist/cdn/AUG7ESKO.js +0 -2
- package/dist/cdn/AYFB34A7.js +0 -2
- package/dist/cdn/AYK4IBDR.js +0 -2
- package/dist/cdn/AZ3MRUIU.js +0 -2
- package/dist/cdn/AZKQPOHN.js +0 -2
- package/dist/cdn/B5FN4TVW.js +0 -2
- package/dist/cdn/B6CP7FIT.js +0 -2
- package/dist/cdn/B7DFSP27.js +0 -2
- package/dist/cdn/BASDWRBA.js +0 -2
- package/dist/cdn/BCAWS3NJ.js +0 -2
- package/dist/cdn/BFNODBIF.js +0 -2
- package/dist/cdn/BHYFMWFH.js +0 -10
- package/dist/cdn/BMRPHSYL.js +0 -2
- package/dist/cdn/BPSQ3CGL.js +0 -2
- package/dist/cdn/BU6RNCBS.js +0 -2
- package/dist/cdn/BZKD5DHH.js +0 -2
- package/dist/cdn/C27C7ZCS.js +0 -101
- package/dist/cdn/C3RZCB5I.js +0 -2
- package/dist/cdn/CBIG4EMI.js +0 -2
- package/dist/cdn/CCX2K4AC.js +0 -2
- package/dist/cdn/CCXXOCUE.js +0 -2
- package/dist/cdn/CD6LKEQL.js +0 -2
- package/dist/cdn/CD736SN3.js +0 -2
- package/dist/cdn/CH532URJ.js +0 -2
- package/dist/cdn/CHXKFI5R.js +0 -2
- package/dist/cdn/CNZGOCEQ.js +0 -2
- package/dist/cdn/CP5CMZPK.js +0 -2
- package/dist/cdn/CQ5TAYO5.js +0 -2
- package/dist/cdn/CU2TSBCT.js +0 -2
- package/dist/cdn/CWML23HX.js +0 -2
- package/dist/cdn/CXKNNQK7.js +0 -2
- package/dist/cdn/D2RDQCR6.js +0 -2
- package/dist/cdn/D4NLBWYJ.js +0 -2
- package/dist/cdn/D4XKOLDN.js +0 -2
- package/dist/cdn/DAN7ZYNO.js +0 -2
- package/dist/cdn/DBFWM3C6.js +0 -2
- package/dist/cdn/DCLYV35L.js +0 -2
- package/dist/cdn/DCXY72PD.js +0 -2
- package/dist/cdn/DD6UFQOQ.js +0 -2
- package/dist/cdn/DELUZ744.js +0 -2
- package/dist/cdn/DEVEFEZB.js +0 -2
- package/dist/cdn/DFSIBYHN.js +0 -2
- package/dist/cdn/DH2QF3YA.js +0 -2
- package/dist/cdn/DIAOUTLA.js +0 -2
- package/dist/cdn/DIQDWGSW.js +0 -2
- package/dist/cdn/DJ3H7LZE.js +0 -2
- package/dist/cdn/DKMYTCOT.js +0 -2
- package/dist/cdn/DLGNRZAS.js +0 -2
- package/dist/cdn/DMWDEJZX.js +0 -2
- package/dist/cdn/DOER2ALA.js +0 -2
- package/dist/cdn/DOOSTAKT.js +0 -2
- package/dist/cdn/DPDYPCY7.js +0 -2
- package/dist/cdn/DSFT4TPF.js +0 -2
- package/dist/cdn/DSULDCNU.js +0 -2
- package/dist/cdn/DSUO5O7O.js +0 -2
- package/dist/cdn/DYGPQ2O2.js +0 -2
- package/dist/cdn/DZCEYSVA.js +0 -2
- package/dist/cdn/DZSQQ3ZC.js +0 -2
- package/dist/cdn/E2O5UVKQ.js +0 -2
- package/dist/cdn/E2RL5I2B.js +0 -2
- package/dist/cdn/E2TALV72.js +0 -2
- package/dist/cdn/E6QW4CZ3.js +0 -3
- package/dist/cdn/E7RQDZEF.js +0 -2
- package/dist/cdn/EIMMNTTE.js +0 -2
- package/dist/cdn/EOF2UXV6.js +0 -2
- package/dist/cdn/EONYH67A.js +0 -2
- package/dist/cdn/EOUHIRVU.js +0 -2
- package/dist/cdn/ERN7BZFG.js +0 -2
- package/dist/cdn/ETC47ZTE.js +0 -2
- package/dist/cdn/ETZTDOJJ.js +0 -2
- package/dist/cdn/EXVLM3LY.js +0 -2
- package/dist/cdn/F4PVRAMX.js +0 -2
- package/dist/cdn/F56NG6UR.js +0 -2
- package/dist/cdn/FCTOGFDS.js +0 -7
- package/dist/cdn/FDDXGLRF.js +0 -2
- package/dist/cdn/FFNG2BKG.js +0 -2
- package/dist/cdn/FJLYCKFY.js +0 -2
- package/dist/cdn/FKDTJXGG.js +0 -2
- package/dist/cdn/FLC2JTMP.js +0 -2
- package/dist/cdn/FM3HYPTZ.js +0 -2
- package/dist/cdn/FMBEHWFY.js +0 -2
- package/dist/cdn/FMSRANRD.js +0 -2
- package/dist/cdn/FOYZAUE2.js +0 -2
- package/dist/cdn/FPFWOG6D.js +0 -2
- package/dist/cdn/FQQX35FA.js +0 -2
- package/dist/cdn/FS2LVAOJ.js +0 -2
- package/dist/cdn/FY3KPATI.js +0 -2
- package/dist/cdn/FZ7ZK37I.js +0 -2
- package/dist/cdn/FZCPWCBD.js +0 -2
- package/dist/cdn/FZNKGW4A.js +0 -2
- package/dist/cdn/G22UXAIP.js +0 -2
- package/dist/cdn/G3DW5HI6.js +0 -2
- package/dist/cdn/G4YSKUJY.js +0 -2
- package/dist/cdn/GEQLOXC6.js +0 -2
- package/dist/cdn/GEUS66D2.js +0 -2
- package/dist/cdn/GI572WEZ.js +0 -2
- package/dist/cdn/GJINUBO7.js +0 -2
- package/dist/cdn/GJIZO3BY.js +0 -2
- package/dist/cdn/GJRBKC6D.js +0 -2
- package/dist/cdn/GL6QTMXS.js +0 -2
- package/dist/cdn/GLK5OMGB.js +0 -2
- package/dist/cdn/GMWTEYRI.js +0 -2
- package/dist/cdn/GQUZD452.js +0 -2
- package/dist/cdn/GRUKKSRF.js +0 -2
- package/dist/cdn/GS3XIBLN.js +0 -2
- package/dist/cdn/GSGLH4CM.js +0 -2
- package/dist/cdn/GTMYGR72.js +0 -2
- package/dist/cdn/GVF26EON.js +0 -2
- package/dist/cdn/GVWJBDZW.js +0 -2
- package/dist/cdn/GZOH7TH2.js +0 -2
- package/dist/cdn/H2EOGBZS.js +0 -2
- package/dist/cdn/H2V2RZ6M.js +0 -2
- package/dist/cdn/H3CSIYXV.js +0 -2
- package/dist/cdn/H5FX7Z53.js +0 -2
- package/dist/cdn/HA3MYKR7.js +0 -2
- package/dist/cdn/HEPYE6RX.js +0 -2
- package/dist/cdn/HETF33XY.js +0 -2
- package/dist/cdn/HF75SET4.js +0 -2
- package/dist/cdn/HH5PXKUQ.js +0 -2
- package/dist/cdn/HH7X5PFK.js +0 -2
- package/dist/cdn/HIJBZFJC.js +0 -2
- package/dist/cdn/HINK5GJN.js +0 -2
- package/dist/cdn/HITR5JF7.js +0 -2
- package/dist/cdn/HM2SQ34E.js +0 -2
- package/dist/cdn/HPOK6EKK.js +0 -2
- package/dist/cdn/HSFPILSC.js +0 -2
- package/dist/cdn/HSKNYFFN.js +0 -2
- package/dist/cdn/HSYH2RF2.js +0 -2
- package/dist/cdn/HTQGWSTE.js +0 -2
- package/dist/cdn/HTY7ODQW.js +0 -2
- package/dist/cdn/HTYDCXX6.js +0 -2
- package/dist/cdn/HUVYHMSC.js +0 -2
- package/dist/cdn/HUZVX2LX.js +0 -2
- package/dist/cdn/HV466M4A.js +0 -2
- package/dist/cdn/HWUCFNAD.js +0 -2
- package/dist/cdn/HYUPDCJS.js +0 -2
- package/dist/cdn/HZHPBMYE.js +0 -2
- package/dist/cdn/I3DM7WYF.js +0 -2
- package/dist/cdn/I3LGHXIN.js +0 -2
- package/dist/cdn/I6XITM7G.js +0 -14
- package/dist/cdn/I6ZBOCIY.js +0 -2
- package/dist/cdn/ICFGB4YA.js +0 -2
- package/dist/cdn/IDHZRKXF.js +0 -2
- package/dist/cdn/IEDSJLNB.js +0 -2
- package/dist/cdn/IGSOBBXK.js +0 -2
- package/dist/cdn/II3OUQDN.js +0 -2
- package/dist/cdn/IIAM2J7I.js +0 -2
- package/dist/cdn/IKDCKYJ5.js +0 -2
- package/dist/cdn/ILLXAWCL.js +0 -2
- package/dist/cdn/IONZ3SDQ.js +0 -2
- package/dist/cdn/IS7DQMPO.js +0 -2
- package/dist/cdn/ISFEEC67.js +0 -2
- package/dist/cdn/ISLB62MU.js +0 -2
- package/dist/cdn/IU5YH2S4.js +0 -2
- package/dist/cdn/IV7AWQ4I.js +0 -2
- package/dist/cdn/IXINH2FU.js +0 -2
- package/dist/cdn/IZ43EVPH.js +0 -2
- package/dist/cdn/J2P53GWU.js +0 -2
- package/dist/cdn/J4D2HORK.js +0 -2
- package/dist/cdn/J7JW6ADT.js +0 -2
- package/dist/cdn/JASFUUT6.js +0 -2
- package/dist/cdn/JBND67XM.js +0 -2
- package/dist/cdn/JEQW7KPC.js +0 -2
- package/dist/cdn/JG22JJ4C.js +0 -2
- package/dist/cdn/JI5AIZ2W.js +0 -2
- package/dist/cdn/JSOZV4HA.js +0 -2
- package/dist/cdn/JTE4CLWD.js +0 -2
- package/dist/cdn/JWQCCXL5.js +0 -2
- package/dist/cdn/JZB5X2MB.js +0 -2
- package/dist/cdn/K2DF2MZK.js +0 -2
- package/dist/cdn/K33RVKQD.js +0 -2
- package/dist/cdn/K3HMF5GC.js +0 -2
- package/dist/cdn/K4VVZ2OR.js +0 -2
- package/dist/cdn/K5O2OVOP.js +0 -2
- package/dist/cdn/K672BF4Z.js +0 -2
- package/dist/cdn/KA2RH2XA.js +0 -2
- package/dist/cdn/KBPJADC7.js +0 -57
- package/dist/cdn/KBYHLIWL.js +0 -2
- package/dist/cdn/KI2RNLIW.js +0 -2
- package/dist/cdn/KI6QCKOX.js +0 -2
- package/dist/cdn/KIEYQKES.js +0 -2
- package/dist/cdn/KKON6KFT.js +0 -2
- package/dist/cdn/KNZCVIQZ.js +0 -2
- package/dist/cdn/KQGFPGAG.js +0 -2
- package/dist/cdn/KUB4GMLQ.js +0 -2
- package/dist/cdn/KVTXAGQO.js +0 -2
- package/dist/cdn/KXGSUPO6.js +0 -2
- package/dist/cdn/KZOKH7DH.js +0 -2
- package/dist/cdn/L3H4QXUA.js +0 -2
- package/dist/cdn/L4D75PLE.js +0 -50
- package/dist/cdn/L4XSNBXO.js +0 -2
- package/dist/cdn/L6IQ6LTS.js +0 -2
- package/dist/cdn/LA2OL44Q.js +0 -2
- package/dist/cdn/LDJN5446.js +0 -2
- package/dist/cdn/LEVMADAS.js +0 -2
- package/dist/cdn/LG3VZTHJ.js +0 -2
- package/dist/cdn/LG5BO6HC.js +0 -2
- package/dist/cdn/LK454DSU.js +0 -2
- package/dist/cdn/LLGS7DKU.js +0 -2
- package/dist/cdn/LLX4O2ZL.js +0 -2
- package/dist/cdn/LNVYZ53G.js +0 -2
- package/dist/cdn/LPMAR4KQ.js +0 -2
- package/dist/cdn/LQ4GVKBA.js +0 -2
- package/dist/cdn/LVCMKKG7.js +0 -2
- package/dist/cdn/LY5D6DDL.js +0 -2
- package/dist/cdn/M3ZUOUC3.js +0 -6
- package/dist/cdn/M5TH54YS.js +0 -3
- package/dist/cdn/MAKNOF2E.js +0 -2
- package/dist/cdn/MBDZ6CTU.js +0 -2
- package/dist/cdn/MBJNG2TV.js +0 -2
- package/dist/cdn/MCXCKUVJ.js +0 -2
- package/dist/cdn/ME6P5KK5.js +0 -2
- package/dist/cdn/MGC3EC3F.js +0 -2
- package/dist/cdn/MIGVC3YS.js +0 -2
- package/dist/cdn/MILBEJO3.js +0 -2
- package/dist/cdn/MKMW2OIY.js +0 -2
- package/dist/cdn/MPHKEKH4.js +0 -2
- package/dist/cdn/MS3RNOP5.js +0 -2
- package/dist/cdn/MTV6GBRX.js +0 -2
- package/dist/cdn/MUN2QI43.js +0 -2
- package/dist/cdn/MUVLHU4H.js +0 -2
- package/dist/cdn/MWFTBYF7.js +0 -22
- package/dist/cdn/MYXIS5RQ.js +0 -2
- package/dist/cdn/N2SCAU7I.js +0 -2
- package/dist/cdn/N6GGGJDB.js +0 -2
- package/dist/cdn/N7CJXIRA.js +0 -2
- package/dist/cdn/NABNAFFZ.js +0 -2
- package/dist/cdn/NC3HXMKH.js +0 -2
- package/dist/cdn/NCTESU3D.js +0 -2
- package/dist/cdn/NE7SMAEP.js +0 -2
- package/dist/cdn/NFD3QJ6J.js +0 -2
- package/dist/cdn/NFY3ASEY.js +0 -2
- package/dist/cdn/NPWIO5CS.js +0 -2
- package/dist/cdn/NQJLGBVK.js +0 -2
- package/dist/cdn/NR4ANSZX.js +0 -2
- package/dist/cdn/NSMWYS6Z.js +0 -2
- package/dist/cdn/NUH2IEG5.js +0 -2
- package/dist/cdn/NW2YTW26.js +0 -2
- package/dist/cdn/NYFFZ52T.js +0 -2
- package/dist/cdn/NZG4KZHV.js +0 -2
- package/dist/cdn/O247GUBF.js +0 -2
- package/dist/cdn/OAFVLHOP.js +0 -2
- package/dist/cdn/OAR2EXND.js +0 -2
- package/dist/cdn/OB5GUG4Q.js +0 -2
- package/dist/cdn/OF3K6ILR.js +0 -2
- package/dist/cdn/OGP4ICMS.js +0 -2
- package/dist/cdn/OHGAZBGC.js +0 -2
- package/dist/cdn/OHHSI5BP.js +0 -2
- package/dist/cdn/OHRPOEMD.js +0 -2
- package/dist/cdn/OLBIGEZV.js +0 -2
- package/dist/cdn/OQNAOTWQ.js +0 -2
- package/dist/cdn/OQOFL4GS.js +0 -2
- package/dist/cdn/OYSFOPFK.js +0 -2
- package/dist/cdn/OZDJZBGR.js +0 -2
- package/dist/cdn/P32YXLHN.js +0 -2
- package/dist/cdn/P4SQ46RJ.js +0 -2
- package/dist/cdn/P5C64FCP.js +0 -2
- package/dist/cdn/P7D42LBQ.js +0 -2
- package/dist/cdn/PJFE4OSA.js +0 -2
- package/dist/cdn/PM6CSPJD.js +0 -2
- package/dist/cdn/PMG4LRKI.js +0 -2
- package/dist/cdn/PTT753DR.js +0 -2
- package/dist/cdn/PUDNBWDK.js +0 -2
- package/dist/cdn/PVUKIX2R.js +0 -2
- package/dist/cdn/PWESAKVV.js +0 -6
- package/dist/cdn/PXIEZUFC.js +0 -2
- package/dist/cdn/Q4GV7FFJ.js +0 -2
- package/dist/cdn/Q5A7L43T.js +0 -2
- package/dist/cdn/Q5LOYC24.js +0 -2
- package/dist/cdn/QA5B2Y37.js +0 -2
- package/dist/cdn/QFSHQXGM.js +0 -2
- package/dist/cdn/QK2OPJGK.js +0 -2
- package/dist/cdn/QK4D6OMO.js +0 -2
- package/dist/cdn/QMYN3FVH.js +0 -2
- package/dist/cdn/QQRKMUCB.js +0 -2
- package/dist/cdn/QQS6Z4FZ.js +0 -5468
- package/dist/cdn/QTIJHBJB.js +0 -2
- package/dist/cdn/QTKEVJG2.js +0 -2
- package/dist/cdn/QVFTGLEP.js +0 -2
- package/dist/cdn/QW4LROIM.js +0 -2
- package/dist/cdn/QWOHM2SY.js +0 -2
- package/dist/cdn/QYHIY3ME.js +0 -2
- package/dist/cdn/QYIYNECI.js +0 -2
- package/dist/cdn/R4PTOUBU.js +0 -2
- package/dist/cdn/R7CH3OBE.js +0 -2
- package/dist/cdn/R7OW7BC6.js +0 -2
- package/dist/cdn/RBHMRIVU.js +0 -2
- package/dist/cdn/RGKBSVQD.js +0 -2
- package/dist/cdn/RGTW5L2M.js +0 -2
- package/dist/cdn/RIMWN7PN.js +0 -4
- package/dist/cdn/RL2IUUBA.js +0 -2
- package/dist/cdn/RLTWZY2Y.js +0 -2
- package/dist/cdn/ROWHAGC5.js +0 -2
- package/dist/cdn/RPCTY5PP.js +0 -2
- package/dist/cdn/RPW6M2RS.js +0 -2
- package/dist/cdn/RTTSVKW2.js +0 -2
- package/dist/cdn/RTUW32PG.js +0 -2
- package/dist/cdn/RXVVMKTZ.js +0 -2
- package/dist/cdn/S2TL4ARK.js +0 -2
- package/dist/cdn/S57GAUCL.js +0 -3
- package/dist/cdn/S6DY4JGI.js +0 -2
- package/dist/cdn/S6XQNPGY.js +0 -2
- package/dist/cdn/SCTDVE2P.js +0 -2
- package/dist/cdn/SD326B2E.js +0 -2
- package/dist/cdn/SDXNFZ6Q.js +0 -2
- package/dist/cdn/SDZ7AXWI.js +0 -2
- package/dist/cdn/SEZVVM5Z.js +0 -2
- package/dist/cdn/SGM4YRBH.js +0 -2
- package/dist/cdn/SMQJD2L6.js +0 -2
- package/dist/cdn/SNHGQLES.js +0 -2
- package/dist/cdn/SNSHV52T.js +0 -2
- package/dist/cdn/SR3IHWFL.js +0 -2
- package/dist/cdn/SVAOM6PB.js +0 -2
- package/dist/cdn/SZJPVJS6.js +0 -2
- package/dist/cdn/T3M236GE.js +0 -2
- package/dist/cdn/TARH5FST.js +0 -2
- package/dist/cdn/TBD7PFFA.js +0 -2
- package/dist/cdn/TC2QNSUN.js +0 -2
- package/dist/cdn/TCBYBEBE.js +0 -2
- package/dist/cdn/TCCZ5S2A.js +0 -2
- package/dist/cdn/TFMTKJFO.js +0 -2
- package/dist/cdn/TGK6L2ZE.js +0 -2
- package/dist/cdn/TH5ZUUV3.js +0 -2
- package/dist/cdn/THLIDOGM.js +0 -2
- package/dist/cdn/TJLG5Q5Y.js +0 -2
- package/dist/cdn/TJMJIAXA.js +0 -2
- package/dist/cdn/TO5XR7VA.js +0 -2
- package/dist/cdn/TQ5M7ABM.js +0 -2
- package/dist/cdn/TVZTOZL7.js +0 -2
- package/dist/cdn/TWLLLMPH.js +0 -2
- package/dist/cdn/TXQQV57A.js +0 -2
- package/dist/cdn/U2H7HOIC.js +0 -2
- package/dist/cdn/U7SPPU37.js +0 -2
- package/dist/cdn/UA2PWQXW.js +0 -2
- package/dist/cdn/UADY5XO7.js +0 -2
- package/dist/cdn/UAGYDOBI.js +0 -2
- package/dist/cdn/UC7PCLBG.js +0 -2
- package/dist/cdn/UCBTNECN.js +0 -2
- package/dist/cdn/UCNRE4DW.js +0 -23
- package/dist/cdn/UCUSWPVC.js +0 -2
- package/dist/cdn/UEMRCQKF.js +0 -2
- package/dist/cdn/UGI23J3C.js +0 -2
- package/dist/cdn/UGPEDWIJ.js +0 -4
- package/dist/cdn/UJKN7G7W.js +0 -2
- package/dist/cdn/UJZ32HDH.js +0 -2
- package/dist/cdn/UMST4RFY.js +0 -2
- package/dist/cdn/UN6MRXZW.js +0 -2
- package/dist/cdn/UOAJQR2X.js +0 -2
- package/dist/cdn/UR5INQGU.js +0 -2
- package/dist/cdn/USNX342T.js +0 -2
- package/dist/cdn/UTLMCJD2.js +0 -2
- package/dist/cdn/UTQMJRMF.js +0 -2
- package/dist/cdn/UUGPYRMY.js +0 -2
- package/dist/cdn/UWA2UA4S.js +0 -2
- package/dist/cdn/UXDEAKSF.js +0 -2
- package/dist/cdn/UYYBCR75.js +0 -2
- package/dist/cdn/V33D2RRV.js +0 -2
- package/dist/cdn/V3U3RRL7.js +0 -2
- package/dist/cdn/V6SKJ43C.js +0 -2
- package/dist/cdn/V76BJGGX.js +0 -2
- package/dist/cdn/V7H25Z5U.js +0 -2
- package/dist/cdn/V7PXTC6I.js +0 -2
- package/dist/cdn/VANWWSL3.js +0 -2
- package/dist/cdn/VCGND4NR.js +0 -2
- package/dist/cdn/VFVNN33U.js +0 -2
- package/dist/cdn/VHIRPM4L.js +0 -2
- package/dist/cdn/VIC2IR7N.js +0 -2
- package/dist/cdn/VJ4I63OO.js +0 -2
- package/dist/cdn/VJWEGXQY.js +0 -2
- package/dist/cdn/VPJ4NGJ5.js +0 -2
- package/dist/cdn/VT5NU2WH.js +0 -2
- package/dist/cdn/VXJI546E.js +0 -2
- package/dist/cdn/W2VLXDRD.js +0 -39
- package/dist/cdn/W37GIL2C.js +0 -2
- package/dist/cdn/W57XOSMI.js +0 -2
- package/dist/cdn/W5FA4IWP.js +0 -10
- package/dist/cdn/W6BMVYH7.js +0 -2
- package/dist/cdn/W6GBJ4BL.js +0 -2
- package/dist/cdn/WBUC7HJI.js +0 -2
- package/dist/cdn/WEJLZVU6.js +0 -2
- package/dist/cdn/WFV47RA4.js +0 -4
- package/dist/cdn/WFWIIWQC.js +0 -2
- package/dist/cdn/WGUAKT5I.js +0 -2
- package/dist/cdn/WJED2YG7.js +0 -2
- package/dist/cdn/WJFIZ6DL.js +0 -2
- package/dist/cdn/WL6CGZLR.js +0 -2
- package/dist/cdn/WMNWHF5U.js +0 -2
- package/dist/cdn/WN7GK2WG.js +0 -2
- package/dist/cdn/WPADWRCH.js +0 -2
- package/dist/cdn/WTEVUXDK.js +0 -2
- package/dist/cdn/WTJOWA2D.js +0 -2
- package/dist/cdn/WTTSGDHM.js +0 -2
- package/dist/cdn/WU3HYV7B.js +0 -2
- package/dist/cdn/WVZNJMRA.js +0 -2
- package/dist/cdn/X5GRVXSY.js +0 -2
- package/dist/cdn/XGOWY36W.js +0 -2
- package/dist/cdn/XI72UBIK.js +0 -2
- package/dist/cdn/XIWVNNXH.js +0 -2
- package/dist/cdn/XKQTJFVJ.js +0 -2
- package/dist/cdn/XKUKAFLE.js +0 -2
- package/dist/cdn/XLV625TR.js +0 -2
- package/dist/cdn/XN55PVRJ.js +0 -2
- package/dist/cdn/XP6ZXTST.js +0 -2
- package/dist/cdn/XX3BCLUI.js +0 -2
- package/dist/cdn/XYUMPZMT.js +0 -2
- package/dist/cdn/XZDHV5BV.js +0 -2
- package/dist/cdn/Y7N6UKCC.js +0 -2
- package/dist/cdn/YBDFIKTN.js +0 -2
- package/dist/cdn/YCEXTCZD.js +0 -2
- package/dist/cdn/YDWT2GP5.js +0 -2
- package/dist/cdn/YHO7A5RX.js +0 -2
- package/dist/cdn/YKYTSHP4.js +0 -2
- package/dist/cdn/YLRR2XFD.js +0 -2
- package/dist/cdn/YMX7NNEY.js +0 -3
- package/dist/cdn/YQMHCSXF.js +0 -2
- package/dist/cdn/YRCBIK2Y.js +0 -2
- package/dist/cdn/YVXHYFKJ.js +0 -2
- package/dist/cdn/YWXDWRYJ.js +0 -2
- package/dist/cdn/YXKNVWVS.js +0 -2
- package/dist/cdn/Z2Z5RGR2.js +0 -2
- package/dist/cdn/Z3TOG5XS.js +0 -2
- package/dist/cdn/Z756THCU.js +0 -2
- package/dist/cdn/Z7Q6BWC3.js +0 -2
- package/dist/cdn/ZC36M5LD.js +0 -2
- package/dist/cdn/ZCQJ26PE.js +0 -2
- package/dist/cdn/ZFP6AZG7.js +0 -2
- package/dist/cdn/ZKXOPB4E.js +0 -2
- package/dist/cdn/ZM3EAORZ.js +0 -2
- package/dist/cdn/ZNEDALBA.js +0 -2
- package/dist/cdn/ZQPTNYU6.js +0 -2
- package/dist/cdn/ZR5F7KBC.js +0 -2
- package/dist/cdn/ZT74OVX5.js +0 -2
- package/dist/cdn/ZUFDLSS7.js +0 -2
- package/dist/cdn/ZVGAVULD.js +0 -2
- package/dist/cdn/ZX3NL6MQ.js +0 -2
- package/dist/cdn/ZXTOK4AF.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{b as r,f as o,i as b,m,p as d}from"./UUBB3CRW.js";import{c as w}from"./BK6XX2AU.js";import{l as p}from"./SRE3UGET.js";import{h as t,t as i}from"./DDQO772J.js";import{$ as u}from"./4LSDKVY5.js";var n=async(c,e,s)=>{let a;switch(c){case"project":a=await b(e,s.userRequestOptions);break;case"site":a=await u(e,s.hubRequestOptions);break;case"initiative":a=await t(e,s.userRequestOptions);break;case"discussion":a=await o(e,s.hubRequestOptions);break;case"content":a=await r(e,s.hubRequestOptions);break;case"page":a=await i(e,s.userRequestOptions);break;case"template":a=await d(e,s.userRequestOptions);break;case"initiativeTemplate":a=await m(e,s.userRequestOptions);break;case"group":a=await p(e,s);break;case"event":a=await w(e,s.hubRequestOptions);break}return a};export{n as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as m}from"./W75PS2IE.js";import{a as b,b as q,c as L}from"./ILA26VYV.js";import{a as U}from"./4E7UX35B.js";import{e as W}from"./RBGNUTQK.js";import"./YMTAIN3S.js";import"./2RDZQFBD.js";import{g as $,h as M,m as _}from"./EWAU66TF.js";import"./OHDLPBUL.js";import"./UDP7EENP.js";import{a as T}from"./Q67H57WZ.js";import{a as J}from"./HS5U6SAB.js";import{a as z}from"./4MK7XIAZ.js";import"./3UXE5BF3.js";import"./EBGADEP4.js";import"./JBSROA2H.js";import{D as V,E as O,F as B,n as N}from"./GQCVJRFN.js";import"./OKPRBA73.js";import"./OY4XFH6U.js";import"./Z7XRFVR2.js";import"./LZC3KVDN.js";import"./LLPWCLVS.js";import"./DDQO772J.js";import"./ZN44BYAC.js";import"./KBNCRVPP.js";import"./CFPF74RM.js";import"./4LSDKVY5.js";import"./TWWDY4C3.js";import"./JKK5LJAI.js";import"./SEXTYSOH.js";import"./PJNURHKH.js";import"./HZZPNHJD.js";import"./32UA342W.js";import"./PVJYYXFI.js";import"./ZCZVGMIV.js";import"./Y6Q6ENTP.js";import"./OGW276HU.js";import"./BN2OLK73.js";import"./4QLO26TU.js";import"./RGXVBRFC.js";import"./TZXHHOXC.js";import"./D3BILNAQ.js";import"./EJKK6I5R.js";import"./FO7JXNJA.js";import"./LQLM5UFO.js";import"./F4W62LF6.js";import"./BREHLWWL.js";import"./D3R4UBO6.js";import"./TVV2X45U.js";import"./EDJVOECM.js";import"./WPYXFHC7.js";import"./QLXCZ3NE.js";import"./7GI2O7DN.js";import"./ZV3N2SYE.js";import"./BOXLFPBZ.js";import"./F67HAQPI.js";import"./ADYIOWEG.js";import"./QHE543NP.js";import{f as x,g as E}from"./EKJB7MLI.js";import"./2DUPJPOK.js";import"./INL22W2K.js";import{a as P}from"./U7DDSGRI.js";import c from"./4KOILCWX.js";import"./2TXGBFPG.js";import"./N6YCTEBM.js";import"./CL6SOVSI.js";import"./3VUHOWXT.js";import"./76VGL2OG.js";import"./CXTLB2JC.js";import{a as k}from"./MZPEHZQ6.js";import"./YS3WYU6Q.js";import"./UWUNHI7L.js";import"./ZAXWIIVO.js";import{a as j}from"./5BFO4SMC.js";import"./LT5EGN2B.js";import"./VTCPJ62B.js";import a from"./DB7GEQTR.js";import"./K5HZ2G74.js";import{a as F}from"./MA4PQFDN.js";import"./GMWP6LCV.js";import"./GY557TE4.js";import"./O24TJJIA.js";import"./ZZBJZPDW.js";import"./5VOM4C4C.js";import"./564WTIUK.js";import"./ITUDVJWT.js";import"./K6AMDRTV.js";import{a as I}from"./RUVOYVVB.js";import{b as f,c as Y,d as K,e as C,h as S,i as Q}from"./CHENEYUV.js";import"./AT75BQVI.js";export default $arcgis.t(([,{c:X,j:Z},{n:H,w:ee}])=>{var te={type:"Polygon",coordinates:[[[180,-90],[180,90],[-180,90],[-180,-90],[180,-90]]]},se=(e,t,s,i,r)=>{let a=Math.ceil(e/t);return a>i?(I.warn(`Discussions requests exceeds desired threshold, throttling to ${r}ms per batch.`),r):s/a},ie=async(e,t,s=10,i=!0)=>{let r=async a=>{var o;let n=(o=a.start)!==null&&o!==void 0?o:1,h=Object.assign({data:Object.assign({num:s,relations:[O.REPLIES,O.CHANNEL,O.CHANNEL_ACL],sortBy:V.UPDATED_AT,sortOrder:N.DESC,start:n},a)},t),d=B(h);if(n===1){let{total:l}=await d,c=n+s,p=[d],v=i?se(l,s,2500,10,250):0;for(;c<=l;)await J(v),p.push(...await r(Object.assign(Object.assign({geometry:te},a),{start:c}))),c=c+s;return p}return[d]};try{let a=await Promise.all([...await r(Object.assign(Object.assign({},e),{discussion:`${e.discussion}%?id=%`})),...await r(Object.assign(Object.assign({},e),{geometry:te,discussion:`${e.discussion}%`}))]),o=[],n=a.map(({items:h})=>h).flat().filter(h=>o.includes(h.id)?!1:(o.push(h.id),!0));return $(n)}catch(a){let{message:o}=a;I.error("Could not fetch on-map discussions:",o)}},re=".sc-arcgis-hub-discussions-map-integrator-h{display:block}@media only screen and (min-width: 640px){arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{position:absolute}arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{z-index:10}arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{width:25rem}arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{padding:0px}arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{top:calc(var(--top-offset) + 4.5rem);left:calc(var(--left-offset) - 5rem - 25rem);max-height:calc(var(--panel-height) - 6rem)}arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{position:absolute}arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{z-index:10}arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{width:25rem}arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{top:calc(var(--top-offset));left:calc(var(--left-offset))}}@media only screen and (max-width: 640px){arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{position:absolute}arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{z-index:10}arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{width:calc(var(--panel-width) + 0.05rem);top:calc(var(--top-offset) + var(--panel-height) * .5);max-height:calc(var(--panel-height) * .5);height:calc(var(--panel-height) * .5);left:0.95rem}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{position:absolute}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{left:0px}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{margin:auto}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{width:100%}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{top:calc(var(--top-offset) + var(--panel-height) * .45)}arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{position:absolute}arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{z-index:10}arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{width:calc(var(--panel-width) - 0.95rem);top:calc(var(--panel-height) + 3.2rem);left:0.5rem}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{position:absolute}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{top:1rem}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{left:0px}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{margin:auto}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{width:100%}}",ae=re,g=function(e,t,s,i){var r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,s,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,s,a):o(t,s))||a);return r>3&&a&&Object.defineProperty(t,s,a),a},u=class{constructor(e){Q(this,e),this.arcgisHubMapPopoverOpen=C(this,"arcgisHubMapPopoverOpen",7),this.arcgisHubMapPopoverClear=C(this,"arcgisHubMapPopoverClear",7),this.hubTelemetry=C(this,"hubTelemetry",7),this.initialized=!1,this.cachedFeatures=[],this.unsavedExistingGeometry=[],this.cachedRelatedFeatureGeometry={},this.layerIds=[],this.persistAttribute="__persist__",this.view=void 0,this.discussionsRef=void 0,this.drawRef=void 0,this.mapRef=void 0,this.theme={},this.discussion=void 0,this.entity=void 0,this.entityId=void 0,this.entityType=void 0,this.discussionSettings=void 0,this.isHub=void 0,this.isMobile=void 0,this.activeFeature=void 0,this.activeMapDiscussion=void 0,this.showChannelAvatar=void 0,this.showChannelName=void 0,this._context=X(),this.viewHeight=void 0,this.viewWidth=void 0,this.preview=!0,this.previewHeight=void 0,this.leftOffset=void 0,this.topOffset=void 0,this.mapActionNoticeActive=void 0,this.activePost=void 0,this.activeGraphicDetails=void 0,k(this,"makeGraphic","makeCalloutGraphic","setCalloutSymbolOnPointerMove","calculateOffsets","handlePointerMove","handleMapClickDiscussions","handleViewSizeChange","handleMapDrawSelect","handleEditActiveGraphic","handleDeleteActiveGraphic","handlePostPendingGraphic","addRelatedFeature","removeRelatedFeature","cancelAddRelatedFeature","getRelatedFeature","renderAddLocation","renderRemoveLocation","renderPostLocationEditOptions","renderPostLocationPrimaryOptions")}async componentWillLoad(){this.initialize(),this.intl=await j.loadIntlForComponent(this.element)}connectedCallback(){Z(this)}disconnectedCallback(){this.teardown(),this.disconnectContext()}eventTargetIsDiscussionsRef(e){return e.target===this.discussionsRef||e.target===this.onMapDiscussionsRef||e.target===this.onMapDiscussionsPreviewRef}emitHubTelemetry(e){this.hubTelemetry.emit(Object.assign(Object.assign({},e),{postId:this.sketchPostId,channelId:this.currentDiscussionsRef.channelId}))}async initialize(){let{view:e,_context:t}=this;if(this.arcgis=await import("./DZN62VYN.js").then(m=>m.default),this.saveInitialDrawOptions(),e&&t){if(await e.when(),this.addGeometryGraphicsLayer(),this.addStagedGeometryGraphicsLayer(),this.addCalloutGraphicsLayer(),this.addHighlightGraphicsLayer(),await this.fetchSubject(),this.fetchPosts(),this.handleViewSizeChange(),this.cachedFeatures.length)try{await this.refreshFeatures(this.cachedFeatures)}catch(s){I.warn("Cannot add discussions features to the map",s.message)}this.setDiscussionsRefHasMap(!0),this.mapViewSizeChangeHandler=this.arcgis.watch(()=>[e.height,e.width],this.handleViewSizeChange),this.mapViewCenterChangeHandler=this.arcgis.watch(()=>e.center,this.calculateOffsets),this.initialized=!0}}attachView(e,t){let{initialized:s}=this;e&&e!==t?(s&&this.teardown(),this.initialize()):!e&&s&&this.teardown()}attachdiscussionsRef(e){let{initialized:t}=this;e&&!t&&this.initialize()}handleDrawRefUpdate(){this.saveInitialDrawOptions()}calculateOffsets(){let{view:e,preview:t,graphicGeometry:s,isOffset:i,previewHeight:r,activeMapDiscussion:a}=this;if(e&&a&&s){let{container:o}=e,{top:n,left:h,right:d}=o.getBoundingClientRect(),l=e.toScreen(s),c=i?l.x+5:l.x,p=i?l.y-34:l.y;this.leftOffset=t?c+h:d,this.topOffset=t?p+n-r:n}}handlePreviewDidLoad(e){let{detail:t}=e;this.previewHeight=0,this.previewHeight=t}handlePreviewExpanded(){this.preview=!1}handleSearchWidgetPanelToggled(e){let{target:t,detail:s}=e,i=z(s,F.dictionary.category.interaction.action.close.label.search),{mapRef:r}=this;t===r&&!i&&(this.activeMapDiscussion=void 0,this.preview=!1,this.clearHoverActiveGraphics(!0))}handleGeometryGoTo(e){let{detail:t}=e,s=[...this.geometryGraphicsLayer.graphics.toArray(),...this.calloutGraphicsLayer.graphics.toArray()],i=[];if(t){let r=t.id,a=t.parentId?t.parentId:t.id;i=s.filter(({attributes:{id:o,parentId:n}})=>o===a||r&&n===r)}else{let{activeMapDiscussion:{locationId:r}}=this;i=s.filter(({attributes:{relatedFeatureId:a}})=>a===r)}i.length&&this.goTo(i)}handleGeometryFeature(e){let{detail:{post:t,create:s}}=e;this.unsavedExistingGeometry=[],this.cachedFeatures=this.cachedFeatures.filter(({properties:{id:r}})=>r!==t.id),M(t)&&(this.cachedFeatures=[...this.cachedFeatures,...M(t)],s&&this.cachedFeatures.map(r=>{let{properties:{id:a}}=r,{parentId:o}=t;return a===o&&("replyCount"in r.properties||(r.properties.replyCount=0),r.properties.replyCount+=1),r}),this.refreshFeatures(this.cachedFeatures),this.clearHoverActiveGraphics(!0))}handleGeometryFeatureDeleted(e){let{detail:{id:t,parentId:s}}=e;this.cachedFeatures=this.cachedFeatures.filter(({properties:{id:i}})=>i!==t).map(i=>{let{properties:{id:r}}=i;return r===s&&(i.properties.replyCount-=1),i}),this.refreshFeatures(this.cachedFeatures),this.clearHoverActiveGraphics(!0)}handleGeometryFeatureSelect(e){this.selectFeature(e.detail)}selectFeature(e){let{properties:{id:t,relatedFeatureId:s,index:i,unsaved:r}}=e;this.clearHoverActiveGraphics();let a=this.getMatchingGraphic(e);if(a&&this.addHighlightGraphic(!1,a,b.ACTIVE,!1),r){let o=this.unsavedGeometryGraphicsLayer.graphics.getItemAt(i);s&&(o=this.makeGraphic(e)),this.goTo(o)}else{let o=this.calloutGraphicsLayer.graphics.find(n=>{let{attributes:{relatedFeatureId:h,id:d,__index__:l}}=n;return s?s==h:d==t&&(l===null||i==l)});if(o){this.addHighlightGraphic(!0,o,b.ACTIVE,!1);let n=s?this.cachedRelatedFeatureGeometry[s].arcgis:this.getGraphicById(t,i);this.goTo(n)}}}handleGeometryFeatureHighlight(e){let{detail:{properties:{id:t,relatedFeatureId:s,index:i,unsaved:r}}}=e;this.clearHoverActiveGraphics();let a=this.getMatchingGraphic(e.detail);if(a&&this.addHighlightGraphic(!1,a,b.HOVER,!1),!r){let o=this.calloutGraphicsLayer.graphics.find(n=>{let{attributes:{relatedFeatureId:h,id:d,__index__:l}}=n;return s?s==h:d==t&&(l===null||i==l)});o&&this.addHighlightGraphic(!0,o,b.HOVER,!1)}}handleFeatureRemove(e){let{detail:{properties:{id:t,relatedFeatureId:s,index:i,unsaved:r}}}=e;this.removeGraphic(t,s,i,r)}removeGraphic(e,t,s,i){let{currentDiscussionsRef:{unsavedFeatures:r,unsavedRelatedFeatures:a,unsavedExistingFeatures:o}}=this;if(i)if(t)this.currentDiscussionsRef.unsavedRelatedFeatures=[...a.slice(0,s),...a.slice(s+1,a.length)];else{this.currentDiscussionsRef.unsavedFeatures=[...r.slice(0,s),...r.slice(s+1,r.length)];let n=this.unsavedGeometryGraphicsLayer.graphics.getItemAt(s);this.unsavedGeometryGraphicsLayer.graphics.remove(n)}else{let n=c=>{let{attributes:{relatedFeatureId:p,id:v,__index__:w}}=c;return t?t==p:v==e&&(w===null||+s==+w)},h=this.calloutGraphicsLayer.graphics.find(n);h&&(h.visible=!1);let d=this.geometryGraphicsLayer.graphics.find(n);d&&(d.visible=!1);let l=this.postToGeoJSON(null,{id:e,index:+s});this.currentDiscussionsRef.unsavedExistingFeatures=[...o.filter(({properties:{id:c,index:p}})=>!(e===c&&+s==+p)),l]}this.clearHoverActiveGraphics(!0)}handleGeometryDrawCreate(e){let{detail:{post:t,postType:s}}=e;this.sketchPostType=s,this.sketchPostId=t?.id,this.drawRef.buffer=!1,this.drawRef.disablePrimaryOptions=!0,this.drawRef.disableEditOptions=!0,this.drawRef.drawTip=void 0,this.drawRef.enableMapTips=!0}handleGeometryDrawTypeSelect(e){this.mapActionNoticeActive=!0,this.drawRef.setActiveTool(e.detail)}handleGeometryDrawDone(){this.mapActionNoticeActive=!1,this.drawRef.setActiveTool(void 0),this.deletePendingGraphics()}handleGeometryDrawCancel(){this.drawRef.setActiveTool(void 0)}handleActiveToolChange(e){let{detail:t}=e;t&&(this.deletePendingGraphics(),this.arcgisHubMapPopoverClear.emit())}handleGeometryDrawEdit(e){let{detail:{properties:{id:t,index:s,unsaved:i}}}=e;this.preview=!1,this.editGraphic(t,s,i)}editGraphic(e,t,s){let{drawRef:i}=this,{geometry:r}=s?this.unsavedGeometryGraphicsLayer.graphics.getItemAt(t):this.getGraphicById(e,t);this.hideLayers(),this.goTo(r),this.sketchPostId=e,this.sketchIndex=t,this.sketchIsUnsaved=s,this.drawRef.geometry=void 0,setTimeout(()=>{i.geometry=r,i.disablePrimaryOptions=!0,i.disableEditOptions=!1,i.buffer=!1,i.enableMapTips=!0},0)}handlePostEditorReady(e){this.activePost=e.detail}handleGeometryDrawEditCancel(){this.currentDiscussionsRef.unsavedFeatures=[...this.currentDiscussionsRef.unsavedFeatures],this.drawRef.forceReset(),this.showLayers()}handleDrawGraphicsChange(e){var t;let{detail:{graphics:s,save:i,canceled:r,unsaved:a}}=e,{sketchPostId:o,sketchIndex:n,sketchIsUnsaved:h}=this,{executeGeneralize:d,webMercatorToGeographic:l}=this.arcgis,c=s.getItemAt(0);if(c.geometry=d(c.geometry.clone(),q(this.view)),i&&this.drawRef.disablePrimaryOptions){this.drawRef.disableEditOptions=!0;let p=l(c.geometry),v=x(p);if(h){let G=this.currentDiscussionsRef.unsavedFeatures.map((D,y)=>(y===n&&(D.geometry=v),D));this.currentDiscussionsRef.unsavedFeatures=G;let R=this.unsavedGeometryGraphicsLayer.graphics.getItemAt(n);R.geometry=c.geometry,!((t=R.attributes)===null||t===void 0)&&t.pending&&setTimeout(()=>{this.activeGraphicDetails={id:o,index:n,unsaved:!0,geometry:c.geometry},this.arcgisHubMapPopoverOpen.emit({geometry:c.geometry,view:this.view,render:this.renderPostLocationPrimaryOptions,source:"action"})},150)}else{let G=this.postToGeoJSON(v,{index:n,id:o});this.currentDiscussionsRef.unsavedExistingFeatures=[...this.currentDiscussionsRef.unsavedExistingFeatures.filter(({properties:{index:y}})=>y!==n),G];let R=this.getGraphicById(o,n);this.unsavedExistingGeometry.filter(({id:y,index:A})=>y===o&&A===n).length||this.unsavedExistingGeometry.push({id:o,index:n,geometry:R.geometry.clone()}),R.geometry=c.geometry}this.drawRef.forceReset(),this.showLayers();let w=_(v);this.emitHubTelemetry(F.dictionary.category.content.action.update.label.location.details[w])}else if(r)this.currentDiscussionsRef.unsavedFeatures=[...this.currentDiscussionsRef.unsavedFeatures],this.drawRef.forceReset(),this.showLayers();else if(a){this.drawRef.forceReset(),c.symbol=L[c.geometry.type](b.DEFAULT,this.themeWithDefaults[c.geometry.type]),c.attributes={pending:!0},this.addGraphicsToGraphicsLayer(this.unsavedGeometryGraphicsLayer,[c]);let p=[];s.forEach(v=>{let w=l(v.geometry),G=x(w);p.push({type:"Feature",geometry:G,properties:{id:this.sketchPostId,pending:!0}});let R=_(G);this.emitHubTelemetry(F.dictionary.category.content.action.create.label.location.details[R])}),this.currentDiscussionsRef.unsavedFeatures=[...this.currentDiscussionsRef.unsavedFeatures,...p],setTimeout(()=>{this.activeGraphicDetails={id:o,index:this.unsavedGeometryGraphicsLayer.graphics.length-1,unsaved:!0,geometry:c.geometry},this.arcgisHubMapPopoverOpen.emit({geometry:c.geometry,view:this.view,render:this.renderPostLocationPrimaryOptions,source:"action"})},250)}}handleGeometryDrawReset(){this.currentDiscussionsRef.unsavedFeatures=[...this.currentDiscussionsRef.unsavedFeatures],this.restoreInitialDrawOptions(),this.showLayers()}handleGeometryClearAll(){this.resetStagedFeatures(),this.restoreInitialDrawOptions(),this.showLayers(),this.unsavedGeometryGraphicsLayer.graphics.removeAll();let e=t=>{t.visible=!0};this.geometryGraphicsLayer.graphics.forEach(e),this.calloutGraphicsLayer.graphics.forEach(e),this.mapActionNoticeActive=!1,this.activePost=void 0}async handleMapDrawSelect(e){let{detail:t}=e,{targetLayer:s}=this,{results:i}=await this.view.hitTest(t,{include:s}),r=H(i);if(r?.graphic&&this.drawRef.disableEditOptions){let{graphic:a}=r,o=a.layer.objectIdField,n=a.attributes[o];if(this.cacheRelatedFeatureGeometry([n]),!a.attributes.hasOwnProperty(s.displayField)){let{features:[l]}=await s.queryFeatures({objectIds:[n],outFields:["*"],returnGeometry:!1});l&&(a.attributes=l.attributes)}let h=this.currentDiscussionsRef.unsavedRelatedFeatures.map(l=>l.objectId),d=this.renderAddLocation;h.includes(n)&&(d=this.renderRemoveLocation),this.selectedGraphic=a,this.drawRef.enableMapTips=!1,this.arcgisHubMapPopoverOpen.emit({geometry:a.geometry,view:this.view,render:d,source:"action"}),this.highlightGraphic(a)}else this.selectedGraphic=null,this.drawRef.enableMapTips=!0,this.highlightGraphic()}handleDiscussionsClose(e){(e.target===this.onMapDiscussionsRef||e.target===this.onMapDiscussionsPreviewRef)&&(this.activeMapDiscussion=void 0,this.preview=!1,this.clearHoverActiveGraphics(!0))}addRelatedFeature(){let e=this.selectedGraphic.layer.objectIdField,t=this.selectedGraphic.attributes[e];this.selectedGraphic.geometry=this.arcgis.webMercatorToGeographic(this.selectedGraphic.geometry);let s={postId:this.sketchPostId,objectId:t,feature:x(this.selectedGraphic.toJSON())};this.currentDiscussionsRef.unsavedRelatedFeatures=[...this.currentDiscussionsRef.unsavedRelatedFeatures,s],this.highlightGraphic(),this.arcgisHubMapPopoverClear.emit(),this.drawRef.enableMapTips=!0,this.emitHubTelemetry(F.dictionary.category.interaction.action.select.label.content)}removeRelatedFeature(){let{currentDiscussionsRef:{unsavedRelatedFeatures:e}}=this,t=this.selectedGraphic.layer.objectIdField,s=this.selectedGraphic.attributes[t],i=this.currentDiscussionsRef.unsavedRelatedFeatures.findIndex(r=>r.objectId==s);this.currentDiscussionsRef.unsavedRelatedFeatures=[...e.slice(0,i),...e.slice(i+1,e.length)],this.cancelAddRelatedFeature(),this.emitHubTelemetry(F.dictionary.category.interaction.action.deselect.label.content)}cancelAddRelatedFeature(){this.arcgisHubMapPopoverClear.emit(),this.selectedGraphic=null,this.drawRef.enableMapTips=!0,this.clearHighlights()}setDiscussionsRefHasMap(e){this.discussionsRef&&(this.discussionsRef.hasMap=e)}teardown(){this.clearHighlights(),this.removeViewHandlers(),this.removeLayers(),this.resetSelect(),this.setDiscussionsRefHasMap(!1)}async fetchSubject(){let{discussion:e,entity:t,entityId:s,entityType:i,_context:r,discussionSettings:a}=this,o=await W({discussion:e,entity:t,entityId:s,entityType:i,discussionSettings:a},r.hubRequestOptions,!0);Object.assign(this,o)}fetchPosts(){ie(this.searchParams,this._context.hubRequestOptions).then(e=>{e?.features&&(this.cachedFeatures=e.features,this.initialized&&this.refreshFeatures(e.features))})}addGeometryGraphicsLayer(){this.geometryGraphicsLayer=new this.arcgis.GraphicsLayer({graphics:[],elevationInfo:{mode:"on-the-ground"}}),this.view.map.add(this.geometryGraphicsLayer),this.layerIds.push(this.geometryGraphicsLayer.id)}addStagedGeometryGraphicsLayer(){this.unsavedGeometryGraphicsLayer=new this.arcgis.GraphicsLayer({graphics:[],elevationInfo:{mode:"on-the-ground"}}),this.view.map.add(this.unsavedGeometryGraphicsLayer),this.layerIds.push(this.geometryGraphicsLayer.id)}addCalloutGraphicsLayer(){this.calloutGraphicsLayer=new this.arcgis.GraphicsLayer({graphics:[],effect:"drop-shadow(0px, 2px, 8px, rgba(0, 0, 0, .20))",elevationInfo:{mode:"relative-to-ground"}}),this.view.map.add(this.calloutGraphicsLayer),this.layerIds.push(this.calloutGraphicsLayer.id),this.mapPointerMoveHandler=this.view.on("pointer-move",this.handlePointerMove),this.mapClickDiscussionsHandler=this.view.on("click",this.handleMapClickDiscussions)}addHighlightGraphicsLayer(){this.highlightGraphicsLayer=new this.arcgis.GraphicsLayer({graphics:[],elevationInfo:{mode:"relative-to-ground"}}),this.view.map.add(this.highlightGraphicsLayer),this.layerIds.push(this.highlightGraphicsLayer.id)}addHighlightGraphic(e,t,s,i){var r,a,o;let{themeWithDefaults:n,highlightGraphicsLayer:h,persistAttribute:d,is3D:l}=this,c=t.clone();if(e)c.symbol=L.callout(s,Object.assign(Object.assign({},n.callout),{isOffset:(r=t?.attributes)===null||r===void 0?void 0:r.isOffset,is3D:l}),(a=c.attributes)===null||a===void 0?void 0:a.totalCount);else if(!((o=t?.geometry)===null||o===void 0)&&o.type){let p=t.geometry.type;c.symbol=L[t.geometry.type](s,Object.assign({},n[p])),this.clearHoverActiveGraphics(i)}c.attributes=Object.assign(Object.assign({},c.attributes),{[d]:i}),h.add(c)}setCalloutSymbolOnPointerMove(e){this.view.hitTest(e,{include:this.calloutGraphicsLayer}).then(t=>{if(this.clearHoverActiveGraphics(!1),t.results.length){let s=H(t.results),{graphic:i}=s;this.addHighlightGraphic(!0,i,b.HOVER,!1)}})}setLocationEditPopover(e){this.view.hitTest(e,{include:[this.geometryGraphicsLayer,this.unsavedGeometryGraphicsLayer]}).then(t=>{if(t.results.length){let{results:[s]}=t,i=s.layer===this.unsavedGeometryGraphicsLayer,r=s.layer===this.geometryGraphicsLayer,a,o,n;if(i){let h=this.unsavedGeometryGraphicsLayer.graphics.findIndex(d=>d===s.graphic);a=void 0,o=h,n=!0}if(r&&this.activePost){let{id:h}=this.activePost,{graphic:{attributes:{id:d,__index__:l}}}=s,c=l||null;h===d&&(a=h,o=c,n=!1)}if(o!==void 0){let{geometry:h,attributes:d}=s.graphic;this.activeGraphicDetails={id:a,index:o,unsaved:n,geometry:h};let l=d?.pending?this.renderPostLocationPrimaryOptions:this.renderPostLocationEditOptions;this.arcgisHubMapPopoverOpen.emit({geometry:h,view:this.view,render:l,source:"action"})}}})}publishPendingGraphics(){this.unsavedGeometryGraphicsLayer.graphics.forEach(e=>{e.attributes.pending&&delete e.attributes.pending}),this.currentDiscussionsRef.unsavedFeatures=this.currentDiscussionsRef.unsavedFeatures.map(e=>(e.properties.pending&&delete e.properties.pending,e))}deletePendingGraphics(){let e=this.unsavedGeometryGraphicsLayer.graphics.find(t=>{var s;return(s=t.attributes)===null||s===void 0?void 0:s.pending});this.unsavedGeometryGraphicsLayer.remove(e),this.currentDiscussionsRef&&(this.currentDiscussionsRef.unsavedFeatures=this.currentDiscussionsRef.unsavedFeatures.filter(t=>t.properties.pending?!t.properties.pending:!0))}removeLayers(){[this.geometryGraphicsLayer,this.unsavedGeometryGraphicsLayer,this.calloutGraphicsLayer,this.highlightGraphicsLayer].forEach(e=>this.removeLayer(e))}hideLayers(){[this.geometryGraphicsLayer,this.unsavedGeometryGraphicsLayer,this.calloutGraphicsLayer,this.highlightGraphicsLayer].forEach(e=>e.opacity=.1)}showLayers(){[this.geometryGraphicsLayer,this.unsavedGeometryGraphicsLayer,this.calloutGraphicsLayer,this.highlightGraphicsLayer].forEach(e=>e.opacity=1)}removeLayer(e){e&&e.destroy()}emptyFeatures(){[this.geometryGraphicsLayer,this.unsavedGeometryGraphicsLayer,this.calloutGraphicsLayer].forEach(e=>e.removeAll())}addGraphicsToGraphicsLayer(e,t){e.addMany(t)}async refreshFeatures(e){this.emptyFeatures(),this.resetSelect(),e.forEach(c=>{var p;return c.properties.totalCount=(p=c.properties.replyCount)!==null&&p!==void 0?p:0});let t=({geometry:c})=>!!c,s=e.map(this.makeGraphic).filter(t),i=e.map(this.makeCalloutGraphic).filter(t),r=({properties:c})=>!!T(c.discussion).features,a=e.filter(r),o=Array.from(new Set(a.map(({properties:{discussion:c}})=>T(c).features.map(p=>p)).flat()));await this.cacheRelatedFeatureGeometry(o);let n=[],h=[];for(let c of a){if(h.includes(c.properties.id))continue;h.push(c.properties.id);let{properties:p}=c,{features:v}=T(p.discussion);p.totalCount=0,v.forEach(w=>{var G;let R=({properties:{relatedFeatureId:y}})=>y==w,D=n.find(R);if(D){let{properties:y}=D,A=((G=p.totalCount)!==null&&G!==void 0?G:0)+1;y.totalCount+=A}else try{let y=this.getRelatedFeature(w);y.properties=Object.assign(Object.assign({},c.properties),{relatedFeatureId:w}),n.push(y)}catch(y){I.warn("Failed to access post related feature:",y.message)}})}let d=n.map(this.makeCalloutGraphic),l=[...i,...d];this.addGraphicsToGraphicsLayer(this.geometryGraphicsLayer,s),this.addGraphicsToGraphicsLayer(this.calloutGraphicsLayer,l),this.activeFeature&&(this.selectFeature(this.activeFeature),this.activeFeature=void 0)}pointToExtent(e,t=.0025){let{x:s,y:i,spatialReference:r}=e;return new this.arcgis.Extent({xmin:s-t,ymin:i-t,xmax:s+t,ymax:i+t,spatialReference:r})}goTo(e){if(!this.view)return;let t=e;t.geometry&&t.geometry.type==="point"&&(t=this.pointToExtent(t.geometry)),t.extent&&(t=t.extent.clone().expand(2)),this.view.goTo(t,{duration:1e3}).catch(s=>{this.arcgis.isAbortError(s)||I.error("Failed to zoom map to target feature or extent:",s.message)})}postToGeoJSON(e,t){return{type:"Feature",geometry:e,properties:t}}makeGraphic(e){var t;let s=E(e),i=this.arcgis.Graphic.fromJSON(s);return!((t=i?.geometry)===null||t===void 0)&&t.type&&(i.symbol=L[i.geometry.type](b.DEFAULT,this.themeWithDefaults[i.geometry.type])),i}makeCalloutGraphic(e){var t;let{is3D:s}=this,{callout:i}=L,{geometry:r,properties:a}=e,[o,n]=r.coordinates.flat(1/0),h=!a.relatedFeatureId&&e.geometry.type==="Point",d=E({type:"Feature",geometry:{type:"Point",coordinates:[o,n]},properties:Object.assign(Object.assign({},a),{replyCount:a.replyCount||0,isOffset:h})}),l=this.arcgis.Graphic.fromJSON(d);return l.symbol=i(b.DEFAULT,Object.assign(Object.assign({},this.themeWithDefaults.callout),{isOffset:h,is3D:s}),(t=e.properties)===null||t===void 0?void 0:t.totalCount),l}getRelatedFeature(e){return{type:"Feature",geometry:this.cachedRelatedFeatureGeometry[e].geojson,properties:{}}}async cacheRelatedFeatureGeometry(e){let{cachedRelatedFeatureGeometry:t,targetLayer:s}=this;if(!s){I.warn("Discussions service layer not defined; ingnoring related features");return}let i=Object.keys(t),r=e.filter(a=>!i.includes(`${a}`));if(r.length){let a={where:"1=1",objectIds:r.map(n=>+n),returnGeometry:!0,outSpatialReference:{wkid:4326},outFields:[this.targetLayer.objectIdField,this.targetLayer.displayField]},{features:o}=await this.targetLayer.queryFeatures(a);o.forEach(({geometry:n,attributes:h})=>{let d=x(n);this.cachedRelatedFeatureGeometry[h[this.targetLayer.objectIdField]]={arcgis:n,geojson:d}})}}getMatchingGraphic(e){let{properties:{id:t,relatedFeatureId:s,index:i,unsaved:r}}=e,a;return s&&this.cachedRelatedFeatureGeometry[s]?a=new this.arcgis.Graphic({geometry:this.cachedRelatedFeatureGeometry[s].arcgis}):a=r?this.unsavedGeometryGraphicsLayer.graphics.getItemAt(i):this.getGraphicById(t,i),a}getGraphicById(e,t){return this.geometryGraphicsLayer.graphics.find(({attributes:{id:i,__index__:r}})=>{let a=t!==null?t==r:!0;return i===e&&a})}highlightGraphic(e){this.clearHighlights(),e&&this.view.whenLayerView(e.layer).then(t=>{this.highlightHandle=t.highlight(e)})}clearHighlights(){this.highlightHandle&&(this.highlightHandle.remove(),this.highlightHandle=null)}clearHoverActiveGraphics(e){let{persistAttribute:t,highlightGraphicsLayer:s}=this;if(e)s.removeAll();else{let i=s.graphics.filter(({attributes:r})=>!r[t]);s.removeMany(i.toArray())}}removeViewHandlers(){[this.mapPointerMoveHandler,this.mapClickDiscussionsHandler,this.mapViewSizeChangeHandler,this.mapViewCenterChangeHandler].forEach(e=>{e&&(e.remove(),e=null)})}resetSelect(){this.clearHighlights()}saveInitialDrawOptions(){let{drawRef:{buffer:e,disableEditOptions:t,disablePrimaryOptions:s,enableMapTips:i}}=this;this.initialDrawOptions={buffer:e,disableEditOptions:t,disablePrimaryOptions:s,enableMapTips:i}}restoreInitialDrawOptions(){let{initialDrawOptions:{buffer:e,disableEditOptions:t,disablePrimaryOptions:s,enableMapTips:i}}=this;this.drawRef.buffer=e,this.drawRef.disableEditOptions=t,this.drawRef.disablePrimaryOptions=s,this.drawRef.enableMapTips=i,this.drawRef.setActiveTool(void 0),this.drawRef.forceReset()}resetStagedFeatures(){this.currentDiscussionsRef.unsavedFeatures=[],this.currentDiscussionsRef.unsavedRelatedFeatures=[],this.currentDiscussionsRef.unsavedExistingFeatures=[],this.unsavedExistingGeometry.forEach(({id:e,index:t,geometry:s})=>{let i=this.getGraphicById(e,t);i.geometry=s}),this.unsavedExistingGeometry=[]}handleMapClickDiscussions(e){this.view.hitTest(e,{include:[this.calloutGraphicsLayer]}).then(t=>{if(t.results.length){this.mapRef&&ee(this.mapRef),this.preview=!1,this.clearHoverActiveGraphics(!0);let s=H(t.results),{graphic:i}=s;this.graphicGeometry=i.geometry,this.isOffset=i.attributes.isOffset;let{attributes:{parentId:r,channelId:a,id:o,relatedFeatureId:n}}=i;if(n){let h=n;this.activeMapDiscussion={channelId:a,locationId:h}}else this.activeMapDiscussion={channelId:a,postId:r?o:void 0,parentId:r||o};this.addHighlightGraphic(!0,i,b.ACTIVE,!0),setTimeout(()=>{this.preview=!0},0)}})}handleViewSizeChange(){let{view:{height:e,width:t}}=this;this.viewHeight=e,this.viewWidth=t}handlePointerMove(e){this.setCalloutSymbolOnPointerMove(e),this.setLocationEditPopover(e)}handleEditActiveGraphic(){let{id:e,index:t,unsaved:s}=this.activeGraphicDetails;this.editGraphic(e,t,s)}handleDeleteActiveGraphic(){let{id:e,index:t,unsaved:s}=this.activeGraphicDetails;this.removeGraphic(e,null,t,s),this.arcgisHubMapPopoverClear.emit()}handlePostPendingGraphic(){this.publishPendingGraphics(),this.arcgisHubMapPopoverClear.emit(),this.currentDiscussionsRef.unsavedFeatures.length===1&&(this.drawRef.drawTip=this.intl.t("draw.tip"))}get searchParams(){var e;let t={channels:(e=this.discussionSettings)===null||e===void 0?void 0:e.allowedChannelIds,discussion:this.discussion};return Object.entries(t).reduce((s,[i,r])=>r?Object.assign(Object.assign({},s),{[i]:r}):s,{})}get currentDiscussionsRef(){return this.activeMapDiscussion?this.onMapDiscussionsRef:this.discussionsRef}get themeWithDefaults(){let{theme:e}=this,t={};return["point","polyline","polygon","callout"].forEach(s=>{t[s]=Object.assign(Object.assign({},U[s]),e[s])}),t}get is3D(){let{view:e}=this;return e.hasOwnProperty("camera")}get targetLayer(){return this.view.map.allLayers.filter(e=>e.type==="feature"&&!this.layerIds.includes(e.id)).getItemAt(0)}get styles(){let{view:e,viewWidth:t,viewHeight:s,leftOffset:i,topOffset:r,previewHeight:a,preview:o}=this,n={};if(e){let{container:h}=e;if(!h)return;let{top:d,left:l,right:c,bottom:p}=h.getBoundingClientRect();n={"--left-offset":`${i??0}px`,"--top-offset":`${r??0}px`,"--panel-left":`${l??0}px`,"--panel-height":`${o?(s??0)-(a??0):(p??0)-(d??0)}px`,"--panel-width":`${(c??0)-(l??0)}px`,"--view-width":`${t??0}px`,"--view-height":`${s??0}px`}}return n}renderAddLocation(){let{intl:e,sketchPostType:t}=this;return f(S,null,f("calcite-action-group",null,f("calcite-action",{appearance:"solid",icon:"check",onClick:this.addRelatedFeature,text:e.t(`prompt.add.${t}`),textEnabled:!0})),f("calcite-action-group",null,f("calcite-action",{appearance:"solid",icon:"undo",onClick:this.cancelAddRelatedFeature,text:e.t("prompt.remove.existing"),textEnabled:!0})))}renderRemoveLocation(){return f("calcite-action-pad",{"expand-disabled":!0,expanded:!0,layout:"horizontal"},f("calcite-action",{appearance:"solid",icon:"trash",onClick:this.removeRelatedFeature,text:this.intl.t("location.remove"),textEnabled:!0}))}renderPostLocationPrimaryOptions(){let{activeGraphicDetails:{geometry:{type:e}},intl:t,sketchPostType:s}=this;return f(S,null,f("calcite-action-group",null,f("calcite-action",{appearance:"solid",icon:"check",onClick:this.handlePostPendingGraphic,text:t.t(`prompt.add.${s}`),"text-enabled":!0})),f("calcite-action-group",null,f("calcite-action",{appearance:"solid",icon:e==="point"?"move":"pencil",onClick:this.handleEditActiveGraphic,text:t.t(`prompt.edit.${e}`),"text-enabled":!0}),f("calcite-action",{appearance:"solid",icon:"trash",onClick:this.handleDeleteActiveGraphic,text:t.t(`prompt.remove.${e}`),"text-enabled":!0})))}renderPostLocationEditOptions(){let{intl:e}=this;return f("calcite-action-pad",{"expand-disabled":!0,layout:"horizontal"},f("calcite-action",{appearance:"solid",icon:"pencil",onClick:this.handleEditActiveGraphic,text:e.t("prompt.location.edit")}),f("calcite-action",{appearance:"solid",icon:"trash",onClick:this.handleDeleteActiveGraphic,text:e.t("prompt.location.delete")}))}renderMapDiscussion(){let{activeMapDiscussion:e,discussion:t,isHub:s,entityId:i,entity:r,entityType:a,showChannelAvatar:o,showChannelName:n,discussionSettings:h}=this;return this.preview?f("arcgis-hub-discussions-map-preview",{channelId:e.channelId,discussion:t,locationId:e.locationId,parentId:e.postId?e.parentId:void 0,postId:e.postId||e.parentId,ref:d=>{this.onMapDiscussionsPreviewRef=d},showChannelAvatar:o}):f("arcgis-hub-discussions",{channelId:e.channelId,disableNavigation:!e.locationId,discussion:t,discussionSettings:h,dismissible:!0,enableGoTo:!0,entity:r,entityId:i,entityType:a,hasMap:!0,isHub:s,locationId:e.locationId,parentId:e.parentId,postId:e.postId,ref:d=>{this.onMapDiscussionsRef=d},showChannelAvatar:o,showChannelName:n})}render(){let{activeMapDiscussion:e,styles:t,view:s,mapActionNoticeActive:i}=this;return f(Y,{key:"46dbb46244c22430c13999f006787d95d1a6ec21","data-element":"discussions-map-integrator",style:t},e&&this.renderMapDiscussion(),s&&i&&f("arcgis-hub-discussions-map-action-notice",{view:s}))}static get assetsDirs(){return["locales"]}get element(){return K(this)}static get watchers(){return{_context:["initialize"],view:["attachView"],discussionsRef:["attachdiscussionsRef"],drawRef:["handleDrawRefUpdate"],preview:["calculateOffsets"],previewHeight:["calculateOffsets"]}}};g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryGoTo",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryFeature",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryFeatureDeleted",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryFeatureSelect",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryFeatureHighlight",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleFeatureRemove",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryDrawCreate",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryDrawTypeSelect",null);g([m({when(e){var t,s;return e.target===this.drawRef?!0:(((s=(t=e).composedPath)===null||s===void 0?void 0:s.call(t))||[]).includes(this.drawRef)}})],u.prototype,"handleActiveToolChange",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryDrawEdit",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handlePostEditorReady",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryDrawEditCancel",null);g([m({when(e){var t,s;return e.target===this.drawRef?!0:(((s=(t=e).composedPath)===null||s===void 0?void 0:s.call(t))||[]).includes(this.drawRef)}})],u.prototype,"handleDrawGraphicsChange",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryDrawReset",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryClearAll",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleDiscussionsClose",null);g([P({timeout:50})],u.prototype,"setLocationEditPopover",null);g([m({when(e){return e}}),P({timeout:50})],u.prototype,"refreshFeatures",null);g([m({when(){return this.geometryGraphicsLayer}})],u.prototype,"getGraphicById",null);g([m({when(){return this.highlightGraphicsLayer}})],u.prototype,"clearHoverActiveGraphics",null);g([m({when(){return this.drawRef}})],u.prototype,"saveInitialDrawOptions",null);g([m({when(){return this.drawRef&&this.initialDrawOptions}})],u.prototype,"restoreInitialDrawOptions",null);g([m({when(){return this.currentDiscussionsRef}})],u.prototype,"resetStagedFeatures",null);g([m({when(){return!this.mapActionNoticeActive}})],u.prototype,"handleMapClickDiscussions",null);g([P({timeout:50})],u.prototype,"handleViewSizeChange",null);g([P({timeout:15})],u.prototype,"handlePointerMove",null);g([m({when(){return!!(this.drawRef&&!this.drawRef.geometry)}})],u.prototype,"renderPostLocationPrimaryOptions",null);g([m({when(){return!!(this.drawRef&&!this.drawRef.geometry)}})],u.prototype,"renderPostLocationEditOptions",null);u.style=ae;return u},"config",a,c)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{b as e}from"./YS3WYU6Q.js";import{h as o}from"./UWUNHI7L.js";function g(t){return a(null,t)}function a(t,r){let n=t||"self",s=`${e(r)}/portals/${n}`,l=Object.assign({httpMethod:"GET"},r);return o(s,l)}export{g as a,a as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import a from"./DB7GEQTR.js";import"./K5HZ2G74.js";import"./MA4PQFDN.js";import"./GMWP6LCV.js";import"./GY557TE4.js";import"./O24TJJIA.js";import"./ZZBJZPDW.js";import"./5VOM4C4C.js";import"./564WTIUK.js";import"./ITUDVJWT.js";import"./K6AMDRTV.js";import{a as o}from"./RUVOYVVB.js";import{b as t,c as s,d as c,i as r}from"./CHENEYUV.js";import"./AT75BQVI.js";export default $arcgis.t(([{a:a,c:n}])=>{var y=class{constructor(e){r(this,e),this.accessGranted=!1,this.noticeId=void 0,this.notice=void 0}get _context(){return n()}componentWillLoad(){this.validateAccessGateNoticeConfiguration(this._notice)}get _notice(){return this.notice||this._getPreconfiguredNotice}get _getPreconfiguredNotice(){return a(this.noticeId,this._context)}validateAccessGateNoticeConfiguration(e){if(!e){o.error("validateAccessGateNoticeConfiguration - The notice is not defined. Please provide a valid notice.");return}let{noticeType:i}=e.configuration;if(i!=="modal")throw new Error('validateAccessGateNoticeConfiguration - Currently, the only supported notice type for arcgis-hub-access-gate is "modal".');if(i==="modal"){let{closeButtonDisabled:d,escapeDisabled:l,outsideCloseDisabled:u}=e.configuration;if(!d||!l||!u)throw new Error(`validateAccessGateNoticeConfiguration - The notice with id, "${e.id}," must have closeButtonDisabled, escapeDisabled, and outsideCloseDisabled set to true.`)}}render(){let{noticeType:e}=this._notice.configuration;return t(s,{key:"7bd8685b0a502bf6b8a8b4ffa2cbc773dddaccb2","data-element":"access-gate"},this.accessGranted?t("slot",null):e==="modal"?t("arcgis-wormhole",null,t("arcgis-hub-notice",{notice:this._notice})):t("arcgis-hub-notice",{notice:this._notice}))}get element(){return c(this)}};return y},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{b as e,c as o,e as r,h as s,i as n}from"./CHENEYUV.js";import"./AT75BQVI.js";var t={title:"title",subtitle:"subtitle",primaryActions:"primary-actions",sidePanel:"side-panel",helpState:"help-state",footer:"footer",shellPanelEnd:"shell-panel-end"},m=":host{--arcgis-hub-workspace-pane-main-flex-basis:70%;--arcgis-hub-workspace-pane-main-flex-grow:1;--arcgis-hub-workspace-pane-max-width:75rem;position:relative;display:flex;height:100%;width:100%;flex-direction:column;justify-content:space-between;gap:2rem;overflow:auto}calcite-shell{background-color:transparent}.workspace-pane__header,.workspace-pane__primary-actions,.workspace-pane__help-state,.workspace-pane__footer{display:contents}.workspace-pane__header{display:flex;flex-direction:column;gap:0.5rem}.workspace-pane__header ::slotted([slot='title']){margin:0px;font-size:var(--calcite-font-size-3);line-height:2rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}.workspace-pane__header ::slotted([slot='subtitle']){margin:0px;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-normal)}.workspace-pane__primary-actions ::slotted([slot='primary-actions']){display:flex;gap:0.5rem}.workspace-pane__help-state ::slotted([slot='help-state']){max-width:60%;margin-left:auto;margin-right:auto}.workspace-pane__content{display:flex;flex:1 1 0%;gap:3rem}.workspace-pane__content ::slotted(:not([slot])),.workspace-pane__content ::slotted([slot='side-panel']){display:flex;flex-direction:column;gap:2rem}.workspace-pane__content ::slotted(:not([slot])){flex-basis:var(--arcgis-hub-workspace-pane-main-flex-basis);flex-grow:var(--arcgis-hub-workspace-pane-main-flex-grow);flex-shrink:0}.workspace-pane__content ::slotted([slot='side-panel']){flex-basis:calc(100% - var(--arcgis-hub-workspace-pane-main-flex-basis))}.workspace-pane__body{max-width:var(--arcgis-hub-workspace-pane-max-width);box-sizing:border-box;display:flex;width:100%;flex:1 1 0%;flex-direction:column;gap:2rem;align-self:center;padding-left:2.5rem;padding-right:2.5rem;padding-top:2rem;padding-bottom:2rem}.workspace-pane__footer ::slotted([slot='footer']){background-color:var(--calcite-color-background);padding-left:2.5rem;padding-right:2.5rem;padding-top:2rem;padding-bottom:2rem}.workspace-pane__footer--sticky ::slotted([slot='footer']){border-top:1px solid var(--calcite-color-foreground-3);position:sticky;left:0px;bottom:0px;z-index:10;padding-top:1rem;padding-bottom:1rem;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.mobile .workspace-pane__body{gap:0.5rem;padding-left:1.5rem;padding-right:1.5rem;padding-top:1rem;padding-bottom:1rem}.mobile .workspace-pane__content{flex-direction:column-reverse;gap:1.5rem}.mobile .workspace-pane__footer--sticky ::slotted([slot='footer']){padding-top:0.25rem;padding-bottom:0.25rem}",w=m,g=class{constructor(a){n(this,a),this.arcgisHubWorkspacePaneInitialized=r(this,"arcgisHubWorkspacePaneInitialized",7),this.stickyFooter=!1,this.showHeader=!0,this.isMobile=!1,this.skeletonLoader=null}componentDidRender(){this.arcgisHubWorkspacePaneInitialized.emit()}async toggleLoading(a,i){let{headingRows:l,rows:p,showFooter:c,showHeading:d,showThumbnail:h}=i||{};this.skeletonLoader=a?e("arcgis-skeleton-loader",{active:!0,headingRows:l,rows:p,showFooter:c,showHeading:d,showThumbnail:h}):null}async scrollContentTo(a){this.panelRef&&await this.panelRef.scrollContentTo(a)}renderHeader(){if(this.showHeader)return e("header",{class:"workspace-pane__header",role:"none"},e("slot",{name:t.title}),e("slot",{name:t.subtitle}))}renderPrimaryActions(){return e("div",{class:"workspace-pane__primary-actions"},e("slot",{name:t.primaryActions}))}renderHelpState(){return e("div",{class:"workspace-pane__help-state"},e("slot",{name:t.helpState}))}renderContent(){return e("div",{class:"workspace-pane__content"},e("slot",null),e("slot",{name:t.sidePanel}))}renderFooter(){return e("div",{class:{"workspace-pane__footer":!0,"workspace-pane__footer--sticky":this.stickyFooter}},e("slot",{name:t.footer}))}renderSkeleton(){return this.skeletonLoader}renderShellPanelEnd(){return e("slot",{name:t.shellPanelEnd,slot:"panel-end"})}render(){return e(o,{key:"c6817ff32fd8a8c76e5598a1af560240d7e514b8","data-element":"workspace-pane"},e("calcite-shell",{key:"4ebb6b4c56b27b1ed27d5898f8b76fc708a3ebe9"},e("calcite-panel",{key:"23855b5fb865b89b22ae2cf500c02dc9ba485a4c",class:{mobile:this.isMobile},ref:a=>{this.panelRef=a}},e("div",{key:"02e0ca8b32d2e1e205e2af7debcc262cf4990aa3",class:"workspace-pane__body"},this.renderHeader(),this.renderPrimaryActions(),this.skeletonLoader?this.renderSkeleton():e(s,null,this.renderHelpState(),this.renderContent())),this.renderFooter()),this.renderShellPanelEnd()))}};g.style=w;export{g as arcgis_hub_workspace_pane};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as A,b as O,c as S,d as $,e as w}from"./5IE6W375.js";import{e as g}from"./BWE2I5AG.js";import"./XRGUZJA3.js";import"./YWYHMMVI.js";import"./L6KTWLZO.js";import{a as N}from"./BREHLWWL.js";import"./D3R4UBO6.js";import"./TVV2X45U.js";import{h as E}from"./EDJVOECM.js";import"./WPYXFHC7.js";import"./QLXCZ3NE.js";import"./7GI2O7DN.js";import"./ZV3N2SYE.js";import"./BOXLFPBZ.js";import"./F67HAQPI.js";import"./ADYIOWEG.js";import"./QHE543NP.js";import"./EKJB7MLI.js";import"./2DUPJPOK.js";import"./INL22W2K.js";import{a as I}from"./MZPEHZQ6.js";import"./YS3WYU6Q.js";import"./UWUNHI7L.js";import{a as k}from"./5BFO4SMC.js";import"./LT5EGN2B.js";import"./VTCPJ62B.js";import a from"./DB7GEQTR.js";import{j as M}from"./K5HZ2G74.js";import"./MA4PQFDN.js";import"./GMWP6LCV.js";import{c as x}from"./GY557TE4.js";import"./O24TJJIA.js";import"./ZZBJZPDW.js";import"./5VOM4C4C.js";import"./564WTIUK.js";import{a as C}from"./ITUDVJWT.js";import{a as u}from"./K6AMDRTV.js";import{a as d}from"./RUVOYVVB.js";import{b as n,c as v,d as D,e as m,h as U,i as f}from"./CHENEYUV.js";import"./AT75BQVI.js";export default $arcgis.t(([{a:T,b:H,c:b,d:j,f:P,h:L}])=>{var B=":host{display:block}",F=B,_=(t,e)=>{j(t.context),e&&A(t)},W=class{constructor(t){f(this,t),this.signInCompleted=m(this,"arcgisAppIdentitySignedIn",7),this.signOutCompleted=m(this,"arcgisAppIdentitySignedOut",7),this.clientId=void 0,this.redirectUri=void 0,this.popup=!0,this.persist=!0,this.features=void 0,this.flags={},this.portal="https://www.arcgis.com",this.mode="html",this.contextManager=void 0}async portalUpdated(){this.contextManager=await g.create({portalUrl:this.portal,featureFlags:this.flags}),_(this.contextManager,this.persist)}get sharingApiUrl(){return`${this.portal}/sharing/rest`}async onSignInHandler(t){let{clientId:e,portal:i,redirectUri:s,sharingApiUrl:o}=this;d.info(`app-identity: Caught start signin event. Using ${o}, ${e}`,t);let r=!1,c=e,a=await N.beginOAuth2({clientId:e,pkce:r,portal:o,redirectUri:s,state:c});this.contextManager=await g.create({portalUrl:i,authentication:a,featureFlags:this.flags}),_(this.contextManager,this.persist),d.info(`app-identity: sign-in complete: emitting ArcGISContext ${this.contextManager.id}`),this.signInCompleted.emit(this.contextManager.context)}async onSignOutHandler(){d.info(`app-identity: sign-out for ${this.contextManager.id}`),await this.contextManager.clearAuthentication(),_(this.contextManager,this.persist),d.info(`app-identity: sign-out complete. ${this.contextManager.id} isAuthenticated? ${this.contextManager.context.isAuthenticated}`),this.signOutCompleted.emit(this.contextManager.context)}componentWillLoad(){d.info("app-identity: componentWillLoad"),this.mode==="html"&&!this.contextManager&&(d.info("app-identity: creating ArcGISContext based on attrs..."),this._initContextManager(),d.info("app-identity: created."))}componentWillRender(){var t;d.info("app-identity: componentWillRender");let e=(t=this.contextManager)===null||t===void 0?void 0:t.context;e?.isAuthenticated&&this.mode==="html"&&(d.info("app-identity: rendered, emitting signInCompleted w ArcGISContext"),this.signInCompleted.emit(e))}componentDidRender(){var t;d.info("app-identity: componentDidRender");let e=(t=this.contextManager)===null||t===void 0?void 0:t.context;e?.isAuthenticated&&this.mode==="html"&&(d.info("app-identity: rendered, emitting signInCompleted w ArcGISContext"),this.signInCompleted.emit(e))}render(){return n(v,{key:"d65403cb14d12b37b2eee851d32216014b8667a4"},n("slot",{key:"8d2b017d5d461b92f201de7b4ec27c58cd8d8a60"}))}async _initContextManager(){let t=b(),i=t&&await g.create({authentication:t.session,portalUrl:t.portalUrl,portal:t.portal,currentUser:t.currentUser,trustedOrgs:t.trustedOrgs,trustedOrgIds:t.trustedOrgIds,featureFlags:t.featureFlags,properties:t.properties,serviceStatus:t.serviceStatus})||(this.persist?await O():void 0);this.contextManager=i||await g.create({portalUrl:this.portal}),_(this.contextManager,this.persist)}static get watchers(){return{portal:["portalUpdated"]}}};W.style=F;function K(t,e){return!t?.places||t.places.some(i=>typeof i=="string"?i===e:i.test(e))}function V(t){let e=new Date,i=!t?.startDate||new Date(t.startDate)<=e,s=!t?.endDate||e<=new Date(t.endDate);return i&&s}function q(t,e){return!t?.permissions||t.permissions.every(i=>x(i.permission,e).access===i.access)}var z=(t,e,i,s)=>n("div",{class:"section"},n("h4",null,t(`${e}sections.${i}.heading`)),n("ul",null,[...Array(s)].map((o,r)=>n("li",{key:r},t(`${e}sections.${i}.bullets.${r}`))))),X=({notice:t,t:e})=>{let i=`notice.${t.id}.message.`,s=4,o=2;return n("div",null,n("p",null,e(`${i}p1`)),[...Array(s)].map((r,c)=>z(e,i,c,o)),n("p",null,e(`${i}p2`)),n("p",null,e(`${i}p3`)),n("p",null,n("a",{href:"https://doc.arcgis.com/en/hub/get-started/sign-in.htm"},e(`${i}docLink`))))},J=(t,e,i,s)=>n("div",{class:"section"},n("h4",null,t(`${e}sections.${i}.heading`)),n("ul",null,[...Array(s)].map((o,r)=>n("li",{key:r},t(`${e}sections.${i}.bullets.${r}`))))),Q=({notice:t,t:e,context:i})=>{let s=`notice.${t.id}.message.`,o="https://enterprise.arcgis.com/en/sites",c=(u(i,"portal.enterpriseVersion")||"12.0.0").split(".").slice(0,2).join("."),a=`${window.location.origin}${o}sites/${c}/get-started/about-this-application.htm`;u(i,"portal.helpBase")&&(o=u(i,"portal.helpBase"),a=`${window.location.origin}${o}sites/${c}/get-started/about-this-application.htm`,(u(i,"portal.portalDeploymentType")||"not-found")==="ArcGISEnterpriseOnKubernetes"&&(a=`${window.location.origin}${o}${c}/apps/sites/about-this-application.htm`));let h=2,p=2;return n("div",null,n("p",null,e(`${s}p1`)),[...Array(h)].map((l,y)=>J(e,s,y,p)),n("p",null,n("a",{href:a},e(`${s}docLink`))))},Z=({notice:t,t:e})=>{let i=`notice.${t.id}.message.`;return n("div",null,n("p",null,e(`${i}p1`)),n("p",null,e(`${i}p2`)),n("ul",null,[...Array(4)].map((o,r)=>n("li",{key:r},e(`${i}bullets.${r}`)))),n("p",null,e(`${i}p3`)))},Y=({notice:t,t:e})=>{let i=`notice.${t.id}.message.`;return n("div",null,n("p",null,e(`${i}p1`)),n("p",null,e(`${i}p2`)),n("p",null,e(`${i}p3`)))},tt=({notice:t,t:e})=>{let i=`notice.${t.id}.message.`;return n("div",null,n("p",null,e(`${i}p1`)))},et=":host{display:block}slot[name='actions']{display:flex;gap:0.75rem}calcite-dialog:not([calcite-hydrated]) *{display:none}.popover-reference{display:inline-block}.popover-content{padding:0.75rem}.popover-content slot[name='actions']:has(*){margin-top:1rem}",it=et,nt={WorkspacesWelcome:X,WorkspacesWelcomeEnt:Q,WorkspacesOptin:Z,TestingAccessGate:Y,MigratedCatalog:tt},st=class{constructor(t){f(this,t),this.arcgisHubNoticeClose=m(this,"arcgisHubNoticeClose",7),this.hubTelemetry=m(this,"hubTelemetry",7),this.shouldDismiss=!1,this.translationFunc=(e,i,s)=>this.intl.t(e,i,s),this.noticeId=void 0,this.notice=void 0,this.popoverReferenceElement=void 0,this.place=void 0,this.popoverRef=void 0,I(this,"closeNotice","handleActionClick","onNoticeClose","onNoticeOpen","onDismissChecked","setNoticeElement")}get _context(){return b()}async componentWillLoad(){this.intl=await k.loadIntlForComponent(this.element)}componentShouldUpdate(t,e,i){let s=t!==e;return i==="notice"&&(s=t.id!==e.id),s}get _notice(){return this.notice||T(this.noticeId,this._context)}get shouldShowNotice(){var t,e,i,s;let o=!(!((t=this._notice)===null||t===void 0)&&t.deleted),r=K(this._notice,this.place),c=V(this._notice),a=q(this._notice,this._context),h=!(!((e=this._notice)===null||e===void 0)&&e.dismissable)||$((i=this._notice)===null||i===void 0?void 0:i.id,this._context),p=!!this._notice&&o&&r&&c&&a&&(!this._notice.dismissable||h);if(!p){let l=[];this._notice||l.push("notice not specified or not found in config"),o||l.push("notice is marked as deleted"),r||l.push("place does not match"),c||l.push("dates do not match"),a||l.push("permissions do not match"),h||l.push("notice is dismissable and has been dismissed");let y=`Notice ${(s=this._notice)===null||s===void 0?void 0:s.id} not shown: ${l.join(", ")}`;d.debug(y)}return p}_resetNotice(){return w(this._notice.id,this._context)}setNoticeElement(t){this.noticeElement=t}onDismissChecked(t){let{checked:e,name:i}=t.target;this[i]=e}async onNoticeClose(){var t,e,i,s;let o;return!((t=this._notice.telemetry)===null||t===void 0)&&t.close&&this.hubTelemetry.emit(this._notice.telemetry.close),!((e=this._notice.callbacks)===null||e===void 0)&&e.onClose&&this._notice.callbacks.onClose(),this._notice.dismissable&&(((i=this._notice.configuration)===null||i===void 0?void 0:i.noticeType)!=="modal"||this.shouldDismiss)&&(!((s=this._notice.telemetry)===null||s===void 0)&&s.dismiss&&this.hubTelemetry.emit(this._notice.telemetry.dismiss),o=S(this._notice.id,this._context)),this.arcgisHubNoticeClose.emit(this._notice),o}async handleActionClick(t){let e=this._notice.actions[t.target.dataset.actionIndex],{href:i,target:s}=e;if(e.telemetry&&this.hubTelemetry.emit(e.telemetry),i){let o=i.startsWith("http");s==="_blank"||(o?(t.preventDefault(),await this.onNoticeClose(),M(i)):await this.closeNotice())}}closeNotice(){this.noticeElement&&(this.noticeElement.open=!1)}onNoticeOpen(){var t,e;!((t=this._notice.telemetry)===null||t===void 0)&&t.open&&this.hubTelemetry.emit(this._notice.telemetry.open),!((e=this._notice.callbacks)===null||e===void 0)&&e.onOpen&&this._notice.callbacks.onOpen()}getString(t){var e;let i=this.noticeId||this._notice.id,s=this._notice[t];if(t==="label"&&(s=(e=this._notice.configuration)===null||e===void 0?void 0:e[t]),s===void 0&&i&&t){let o=this._notice.intlValues,r="string-not-found";s=this.intl.t(`notice.${i}.${t}`,Object.assign({},o),{fallback:r}),s=s===r?void 0:s}return s}_renderAction(t,e){let i=`${this._notice.id}_${e}`,s=`notice.${this._notice.id}.actions.${e}`,o=`${s}.text`,r=this.intl.t(o),c=r&&r!==o,a=t.ariaLabel;if(!a&&t.i18nAriaLabelKey){let p=`${s}.${t.i18nAriaLabelKey}`,l=this.intl.t(p);l&&l!==p&&(a=l)}!a&&c&&(a=r);let h=t.label||(c?r:void 0);return t.buttonStyle?n("calcite-button",{appearance:t.buttonStyle,"data-action-index":e,disabled:t.disabled,href:t.href,iconEnd:t.icon,key:i,label:a,onClick:this.handleActionClick,round:!0,target:t.target},h):n("calcite-link",{"data-action":t.action,"data-action-index":e,disabled:t.disabled,href:t.href,iconEnd:t.target==="_blank"?"launch":null,iconStart:t.icon,key:i,label:a,onClick:this.handleActionClick,target:t.target},h)}_renderActions(t){return this._notice.actions&&n("slot",{name:"actions",slot:t},(this._notice.actions||[]).map((e,i)=>this._renderAction(e,i)))}get _getAlertIconName(){var t;switch((t=this._notice.configuration)===null||t===void 0?void 0:t.kind){case"danger":case"warning":return"exclamation-mark-triangle";case"info":return"information";case"success":return"check-circle";case"brand":return"lightbulb"}}renderAlert(){let t=this.getString("title"),e=this.getString("label")||t,i={kind:"brand",scale:"m"},s={open:!0,placement:"top-end",label:e,width:"auto"},o=C(this._notice.configuration);o.icon=this._getAlertIconName;let r=Object.assign(Object.assign(Object.assign({},i),s),o);return n("calcite-alert",Object.assign({},r,{onCalciteAlertClose:this.onNoticeClose,onCalciteAlertOpen:this.onNoticeOpen,ref:this.setNoticeElement}),n("div",{slot:"title"},t),n("div",{innerHTML:this.getString("message"),slot:"message"}),this._renderActions("link"))}renderNotice(){let t={closable:!0,kind:"brand",scale:"m"},e={open:!0,width:"auto"},i=Object.assign(Object.assign(Object.assign({},t),this._notice.configuration),e),s=this.getString("title"),o=this.getString("message");return n("calcite-notice",Object.assign({},i,{onCalciteNoticeClose:this.onNoticeClose,onCalciteNoticeOpen:this.onNoticeOpen,ref:this.setNoticeElement}),s&&n("div",{slot:"title"},s),o&&n("div",{innerHTML:o,slot:"message"}),this._renderActions("link"))}_renderCloseButton(t){let{closeButtonStyle:e="outline",closeButtonI18nKey:i}=t.configuration,s=this.getString(i)||this.intl.t("modal.close");return n("calcite-button",{appearance:e,onClick:this.closeNotice,round:!0,slot:"footer-end"},s)}_renderModalBody(t){let e=this._notice.messageComponent,i=nt[e];if(i)return n(i,{context:this._context,notice:t,t:this.translationFunc});{let s=this.getString("message");return n("div",{innerHTML:s})}}renderModal(){var t,e;let i={},s=Object.assign(Object.assign({},this._notice.configuration),{closeDisabled:(t=this._notice.configuration)===null||t===void 0?void 0:t.closeButtonDisabled,width:(e=this._notice.configuration)===null||e===void 0?void 0:e.widthScale}),o={modal:!0,open:!0},r=Object.assign(Object.assign(Object.assign({},i),s),o);return n("calcite-dialog",Object.assign({},r,{onCalciteDialogClose:this.onNoticeClose,onCalciteDialogOpen:this.onNoticeOpen,ref:this.setNoticeElement}),n("div",{slot:"header-content"},n("h3",null,this.getString("title"))),this._renderModalBody(this._notice),this._notice.dismissable&&n("calcite-label",{appearance:"clear",layout:"inline",slot:"footer-start"},n("calcite-checkbox",{checked:this.shouldDismiss,name:"shouldDismiss",onCalciteCheckboxChange:this.onDismissChecked}),this.intl.t("modal.dismiss")),this._renderActions("footer-end"),!r.closeDisabled&&this._renderCloseButton(this._notice))}renderPopover(){let t={closable:!0,scale:"m"},e={heading:this.getString("title")},i=Object.assign(Object.assign(Object.assign({},t),this._notice.configuration),e);return n(U,null,!this.popoverReferenceElement&&n("div",{class:"popover-reference",ref:s=>this.popoverRef=s},n("slot",{name:"popover-reference"})),(this.popoverReferenceElement||this.popoverRef)&&n("calcite-popover",Object.assign({},i,{onCalcitePopoverClose:this.onNoticeClose,onCalcitePopoverOpen:this.onNoticeOpen,ref:this.setNoticeElement,referenceElement:this.popoverReferenceElement||this.popoverRef}),n("div",{class:"popover-content"},n("div",{innerHTML:this.getString("message")}),this._renderActions(""))))}render(){var t;if(this.shouldShowNotice)switch((t=this._notice.configuration)===null||t===void 0?void 0:t.noticeType){case"notice":return this.renderNotice();case"alert":return this.renderAlert();case"modal":return this.renderModal();case"popover":return this.renderPopover();default:return null}}static get assetsDirs(){return["locales"]}get element(){return D(this)}};st.style=it;var ot=":host{position:absolute;z-index:1045}",rt=ot,at=class{constructor(t){f(this,t),this.onCloseNotice=e=>{L(e.detail.id)},this.place=void 0,this.autoShowDisabled=void 0}get _context(){return b()}get preConfigured(){let t=[];if(!this.autoShowDisabled){let e=s=>["alert","modal"].includes(s.configuration.noticeType),i=H(this._context);t=Object.values(i).filter(s=>s.autoShow&&e(s))}return t}get onDemand(){return P()}get notices(){return[...this.preConfigured,...this.onDemand]}render(){return n(v,{key:"d0ad690b068f298783939edc76d0ccc888f805ac","data-element":"hub-notice-provider"},this.notices.map(t=>n("arcgis-hub-notice",{id:t.id,key:t.id,notice:t,onArcgisHubNoticeClose:this.onCloseNotice,place:this.place})))}};at.style=rt;var ct="calcite-navigation{position:fixed;top:0;left:0;right:0;z-index:401}calcite-chip{cursor:pointer}",lt=ct,dt=t=>{let e=t?.environment;return e?e==="production"?"prod":e.replace("ext",""):void 0},G={qa:{clientId:"Lmafo8GvkSnPwbek",portal:"https://qaext.arcgis.com"},dev:{clientId:"7zaXMmruGTX0FMzR",portal:"https://devext.arcgis.com"},prod:{clientId:"bHypqtyn5UaaJ1Zt",portal:"https://www.arcgis.com"}},R="qa",ht=class{constructor(t){f(this,t),this.onChangeEnv=e=>{this.environment=e.target.value},this.pageTitle=void 0,this.environment=void 0,this.flags={}}get _context(){return b()}componentWillLoad(){this.environment||(this.environment=R,this._context&&(this.environment=dt(this._context)||R))}get identityConfig(){return Object.assign({flags:this.flags},G[this.environment])}get isGhPages(){return window.location.pathname.includes("/harnesses")}get redirectUri(){let t=new URL(window.location.origin);return t.pathname="/html/redirect.html",this.isGhPages&&(t.pathname="/harnesses/html/redirect.html"),t.toString()}get logoUri(){return`${this.homeUri}build/assets/ArcGIS_Hub_Hexagon_256.png`}get homeUri(){let t="/";return this.isGhPages&&(t="/harnesses/"),t}signIn(){let t=new CustomEvent("arcgisAppIdentityStartSignIn");document.dispatchEvent(t)}signOut(){let t=new CustomEvent("arcgisAppIdentityStartSignOut");document.dispatchEvent(t)}onSignedIn(t){var e;if(t.detail.session.clientId!==((e=this.identityConfig)===null||e===void 0?void 0:e.clientId)){t.stopPropagation();let s=new CustomEvent("arcgisAppIdentityStartSignOut");document.dispatchEvent(s)}}renderAuth(){var t,e;let i=(t=this._context)===null||t===void 0?void 0:t.currentUser,s=(e=this._context)===null||e===void 0?void 0:e.session,o=[];return o.push(n("calcite-chip-group",{label:"environment","selection-mode":"single",slot:"content-end"},Object.keys(G).map(r=>n("calcite-chip",{key:r,label:r,onCalciteChipSelect:this.onChangeEnv,selected:r===this.environment,value:r},r)))),i?(o.push(n("calcite-navigation-user",{"full-name":i.fullName,slot:"user",thumbnail:i.thumbnail&&E(s.portal,i,s.token),"user-id":i.id,username:i.username})),o.push(n("calcite-action",{onClick:this.signOut,scale:"l",slot:"user",text:"Sign Out","text-enabled":!0}))):o.push(n("calcite-action",{onClick:this.signIn,scale:"l",slot:"user",text:"Sign In","text-enabled":!0})),o}render(){return n(v,{key:"0c8b93c756823ce8e39e38888071ff08005e1116"},n("arcgis-hub-notice-provider",{key:"076868b69dd4b170ae2a5a7fc983326f594d4fba",place:location.href}),n("calcite-navigation",{key:"1faa3243e726895e104aea8e7d96388abaef1203",slot:"header"},n("calcite-navigation-logo",{key:"75f4a616c0582ea61f36237014c751372ee9dd79",heading:"Home",href:this.homeUri,slot:"navigation-action",thumbnail:this.logoUri}),n("calcite-navigation-logo",{key:"ced39c8c7efbfd4d528d03a8785316292aef85ee",heading:this.pageTitle,slot:"logo"}),this.renderAuth()),n("arcgis-app-identity",Object.assign({key:"6a1b8f1d6d9cfdca99554b8a7bfa119b7d3651a5"},this.identityConfig,{"redirect-uri":this.redirectUri})))}};ht.style=lt;return{arcgis_app_identity:W,arcgis_hub_notice:st,arcgis_hub_notice_provider:at,harness_header:ht}},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as u,b as g,c as y,d as f}from"./VWAVVQJJ.js";import"./OU5H6LGW.js";import{a as d}from"./CU5WQBOB.js";import"./EXQCLQJD.js";import"./236HAGEK.js";import"./UHJI2POJ.js";import"./ZVJUBUUM.js";import{a as s}from"./JMUGY3OJ.js";import"./YAJEJUPD.js";import"./WU3HBTHL.js";import"./GQCVJRFN.js";import"./OKPRBA73.js";import"./OY4XFH6U.js";import"./Z7XRFVR2.js";import"./LZC3KVDN.js";import"./LLPWCLVS.js";import"./DDQO772J.js";import"./ZN44BYAC.js";import"./KBNCRVPP.js";import"./CFPF74RM.js";import"./4LSDKVY5.js";import"./TWWDY4C3.js";import"./JKK5LJAI.js";import"./SEXTYSOH.js";import"./PJNURHKH.js";import"./HZZPNHJD.js";import"./32UA342W.js";import"./PVJYYXFI.js";import"./OGW276HU.js";import"./4QLO26TU.js";import"./RGXVBRFC.js";import"./TZXHHOXC.js";import"./D3BILNAQ.js";import"./EJKK6I5R.js";import"./FO7JXNJA.js";import"./LQLM5UFO.js";import"./F4W62LF6.js";import"./BREHLWWL.js";import"./D3R4UBO6.js";import"./TVV2X45U.js";import"./EDJVOECM.js";import"./WPYXFHC7.js";import"./QLXCZ3NE.js";import"./7GI2O7DN.js";import"./ZV3N2SYE.js";import"./BOXLFPBZ.js";import"./F67HAQPI.js";import"./ADYIOWEG.js";import"./QHE543NP.js";import"./EKJB7MLI.js";import"./2DUPJPOK.js";import"./INL22W2K.js";import"./2TXGBFPG.js";import"./N6YCTEBM.js";import"./CL6SOVSI.js";import"./3VUHOWXT.js";import"./76VGL2OG.js";import"./CXTLB2JC.js";import{a as l}from"./MZPEHZQ6.js";import"./YS3WYU6Q.js";import"./UWUNHI7L.js";import"./ZAXWIIVO.js";import{a as p}from"./5BFO4SMC.js";import"./LT5EGN2B.js";import"./VTCPJ62B.js";import e from"./DB7GEQTR.js";import{a as b}from"./K5HZ2G74.js";import{a}from"./MA4PQFDN.js";import"./GMWP6LCV.js";import"./GY557TE4.js";import"./O24TJJIA.js";import"./ZZBJZPDW.js";import"./5VOM4C4C.js";import"./564WTIUK.js";import{s as h}from"./ITUDVJWT.js";import"./K6AMDRTV.js";import{a as n}from"./RUVOYVVB.js";import{b as i,c as w,d as v,e as c,h as C,i as V}from"./CHENEYUV.js";import"./AT75BQVI.js";export default $arcgis.t(([{c:E}])=>{function T(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches===!0}var H=`.sc-arcgis-hub-entity-view-h{display:block}arcgis-hub-entity-capabilities.sc-arcgis-hub-entity-view{margin-top:1rem}h2.sc-arcgis-hub-entity-view{font-size:var(--calcite-font-size-2);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}arcgis-hub-initiative-hero.sc-arcgis-hub-entity-view:has(~calcite-tabs.sc-arcgis-hub-entity-view calcite-tab-nav.sc-arcgis-hub-entity-view calcite-tab-title[selected].sc-arcgis-hub-entity-view:not([name='about'])){display:block;height:0px}[slot="header"].sc-arcgis-hub-entity-view{font-size:var(--calcite-font-size-4);line-height:2.5rem;font-weight:var(--calcite-font-weight-medium)}@media only screen and (max-width: 768px){arcgis-hub-event-about.sc-arcgis-hub-entity-view{flex-direction:column;gap:0}}`,k=H,A=class{get _context(){return E()}async init(){if(this.entity)try{let t=await y(this.entity,this._context,{path:this.path});this._typeSpecificViews=await Promise.all(t.map(async e=>{try{let o=await f(this.entity,e.name,this._context);return Object.assign(Object.assign({},e),{contentCount:o})}catch(o){n.error(`Error fetching content count for view: ${e.name}`,o)}}))}catch(t){n.error("Error initializing type-specific views:",t)}}get entityType(){return b(this.entity)}constructor(t){V(this,t),this.hubTelemetry=c(this,"hubTelemetry",7),this.arcgisHubEntityViewLayoutPublished=c(this,"arcgisHubEntityViewLayoutPublished",7),this.view=d.Overview,this.entity=void 0,this.path="",this.isMobile=void 0,this.isEditMode=void 0,this.mode="default",this._hasAboutSlot=!1,this._typeSpecificViews=[],this._isPublishing=!1,l(this,"handleTabChange","handleResize")}connectedCallback(){s.addHandler(this.element,this.handleResize)}disconnectedCallback(){s.unobserve(this.element)}async handleResize(){this.isMobile=this.element.clientWidth<560}async componentWillLoad(){this._hasAboutSlot=!!this.element.querySelector('[slot="about"]'),this.intl=await p.loadIntlForComponent(this.element),this.init()}get aboutComponent(){let t=u.find(e=>e.entities.includes(this.entityType));return t?t.component:"arcgis-hub-entity-about"}get views(){let t=[{name:"about",i18nLabel:"tabs.overview",component:this.aboutComponent,props:{path:this.path}}];return t=[...t,...this._typeSpecificViews],t}get hasViews(){return!!this.views.length}get heroComponent(){let t=g.find(e=>e.entities.includes(this.entityType));return t?t.component:"arcgis-hub-entity-hero"}handleTabChange(t){var e;t.stopPropagation();let o=((e=t.detail)===null||e===void 0?void 0:e.target)||t.target,r=o.tab||o.getAttribute("data-tab"),_=!!o.getAttribute("data-scroll");this.view=r,_&&this.element.scrollIntoView({behavior:T()?"auto":"smooth"});let m=r==="about"?"overview":r;this.hubTelemetry.emit(Object.assign({label:h(m)},a.dictionary.category.navigation.action.onPage.label[m]||a.dictionary.category.navigation.action.onPage))}renderViewName(t){let e=t.contentCount!==void 0?`${t.i18nLabel}WithCount`:t.i18nLabel;return this.intl.t(e,{count:t.contentCount})}renderViews(){if(this.hasViews)return i("calcite-tabs",{scale:"l"},i("calcite-tab-nav",{slot:"title-group"},this.views.map((t,e)=>i("calcite-tab-title",{key:e,name:t.name,onCalciteTabsActivate:this.handleTabChange,selected:this.view===t.name,tab:t.name},this.renderViewName(t)))),this.views.map((t,e)=>{var o;let r=t.component;return i("calcite-tab",{key:e,name:t.name,tab:t.name},i(r,Object.assign({entity:this.entity,isMobile:this.isMobile,path:(o=t.props)===null||o===void 0?void 0:o.path},t.props)))}))}renderHero(){let t=this.heroComponent,e={showEdit:!1};return this.mode==="inline"&&(e.showEdit=!0),i(t,Object.assign({entity:this.entity},e))}render(){return this.entity&&i(w,{key:"477606bff99da5d60ce6243707f8b5255193cea1","data-element":`entity-view-${this.view}`},i(C,{key:"666b56734fd3bb85752c59794ce5bd3bf0d53d45"},i("slot",{key:"0adf797be070d020da3065a14470fa6f480204ea",name:"breadcrumbs"}),this.renderHero(),i("slot",{key:"e58e844695dc4cb5e22bfa074f9774c887da22c7",name:"header"}),i("slot",{key:"25e1ff13d90a757084fb7f718269104fa20b23fc",name:"about",slot:this._hasAboutSlot?"about":""}),this.renderViews(),i("slot",{key:"6eb5055eb0bd9b393e9a06acf11edfa4adc8b04b",name:"footer"})))}static get assetsDirs(){return["locales"]}get element(){return v(this)}static get watchers(){return{entity:["init"]}}};A.style=k;return A},e)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
var a=(t,e)=>({isAny:{value:"isAny",label:`{{operatorConfigs.isAny.${e||"default"}:translate}}`},isAll:{value:"isAll",label:`{{operatorConfigs.isAll.${e||"default"}:translate}}`},isExactly:{value:"isExactly",label:`{{operatorConfigs.isExactly.${e||"default"}:translate}}`},isNot:{value:"isNot",label:`{{operatorConfigs.isNot.${e||"default"}:translate}}`},isBefore:{value:"isBefore",label:`{{operatorConfigs.isBefore.${e||"default"}:translate}}`},isAfter:{value:"isAfter",label:`{{operatorConfigs.isAfter.${e||"default"}:translate}}`},isBetween:{value:"isBetween",label:`{{operatorConfigs.isBetween.${e||"default"}:translate}}`}})[t];export{a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as m}from"./3JODVSTM.js";import{e as c,f as u,g as p}from"./JNSS6JH3.js";import"./QYQIPUGM.js";import"./OKPRBA73.js";import"./JKK5LJAI.js";import"./7GI2O7DN.js";import"./N6YCTEBM.js";import{d as h}from"./76VGL2OG.js";import"./CXTLB2JC.js";import{a as d}from"./MZPEHZQ6.js";import"./YS3WYU6Q.js";import"./UWUNHI7L.js";import{a as l}from"./5BFO4SMC.js";import"./LT5EGN2B.js";import"./VTCPJ62B.js";import{a as n}from"./ITUDVJWT.js";import"./K6AMDRTV.js";import{a as r}from"./RUVOYVVB.js";import{b as i,c as g,d as v,e as f,h as a,i as b}from"./CHENEYUV.js";import"./AT75BQVI.js";var D=':host{display:block}arcgis-skeleton-loader{margin:1.25rem;margin-bottom:0}.version-title{margin-block:0.25rem;font-size:1rem;color:var(--calcite-color-brand)}calcite-list-item{border-inline-start:4px solid transparent}calcite-list-item[selected]{border-inline-start-color:var(--calcite-color-brand)}calcite-list-item[selected] .version-title:before{content:"\u226B ";color:black}calcite-list-item[selected] .version-title calcite-link{color:transparent;--calcite-color-text-link:black;--calcite-link-blue-underline:transparent;text-decoration:none}.badges-container{min-height:1.5rem;display:flex;gap:0.25rem}.viewing-badge{--calcite-color-foreground-2:var(--calcite-color-foreground-highlight)}',S=D,w={month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"},V=class{constructor(e){b(this,e),this.arcgisHubVersionsVersionSelected=f(this,"arcgisHubVersionsVersionSelected",7),this.activeVersionId=void 0,this.context=void 0,this.itemId=void 0,this.publishedVersionId=void 0,this.versions=[],this.loading=!0,this.error=!1,this.versionToOperateOn=void 0,this.shouldShowDetailsModal=!1,this.shouldShowDeleteModal=!1,this.updateDetailsError=!1,this.deleteError=!1,this.shouldShowAlert=!1,this.hasClipboardError=!1,this.item=void 0,d(this,"onAlertClose","onDelete","onHideDeleteModal","onHideDetailsModal","onSaveDetails","onSelectVersion","onShare","onShowDeleteModal","onShowDetailsModal","onShowPopover","renderListItem","setPopoverEl")}async componentWillLoad(){this.intl=await l.loadIntlForComponent(this.element),this.fetchVersions()}async fetchVersions(){var e,t;this.loading=!0,this.error=!1;try{if(this.context&&this.itemId){this.item=await h(this.itemId,(e=this.context)===null||e===void 0?void 0:e.requestOptions);let s=await c(this.itemId,(t=this.context)===null||t===void 0?void 0:t.requestOptions);this.versions=s}}catch(s){r.error(s.message),this.error=!0}finally{this.loading=!1}}onTitleLinkClick(e){e.preventDefault()}onSelectVersion(e){e.stopPropagation(),e.target.value.id!==this.activeVersionId&&this.arcgisHubVersionsVersionSelected.emit(e.target.value)}setPopoverEl(e){this.popover=e}onShowPopover(e){e.stopPropagation();let t=this.versions.find(s=>s.id===e.target.dataset.id);t&&(this.versionToOperateOn=n(t),this.popover.referenceElement=e.target,setTimeout(()=>{this.popover.open=!0},100))}onShowDetailsModal(e){e.stopPropagation(),this.popover.open=!1,this.shouldShowDetailsModal=!0}onHideDetailsModal(e){e.stopPropagation(),this.updateDetailsError=!1,this.versionToOperateOn=null,this.shouldShowDetailsModal=!1}async onSaveDetails(e){var t;e.stopPropagation();try{let s=e.detail;await u(this.itemId,s,this.item.owner,(t=this.context)===null||t===void 0?void 0:t.requestOptions),this.versions=this.versions.map(o=>o.id===s.id?s:o),this.shouldShowDetailsModal=!1,this.versionToOperateOn=null}catch(s){r.error(s),this.updateDetailsError=!0}}onShowDeleteModal(e){e.stopPropagation(),this.showDeleteModal(this.versionToOperateOn.id)}async showDeleteModal(e){let t=this.versions.find(s=>s.id===e);t&&(this.popover.open=!1,this.versionToOperateOn=n(t),this.shouldShowDeleteModal=!0)}onHideDeleteModal(e){e.stopPropagation(),this.deleteError=null,this.versionToOperateOn=null,this.shouldShowDeleteModal=!1}async onDelete(e){var t;e.stopPropagation();try{let s=e.detail;await p(this.itemId,s.id,this.item.owner,(t=this.context)===null||t===void 0?void 0:t.requestOptions),this.versions=this.versions.filter(o=>o.id!==s.id),this.shouldShowDeleteModal=!1,this.versionToOperateOn=null,s.id===this.activeVersionId&&(this.activeVersionId=null,this.arcgisHubVersionsVersionSelected.emit(null))}catch{this.deleteError=!0}}async onShare(){try{this.hasClipboardError=!1,await m(this.getShareUrl(this.versionToOperateOn.id))}catch(e){r.error("Error copying to clipboard",e),this.hasClipboardError=!0}finally{this.popover.open=!1,this.shouldShowAlert=!0}}onAlertClose(){this.shouldShowAlert=!1}getItemUrl(e){let t=new URLSearchParams(window.location.search);return t.set("version",e),`?${t.toString()}`}getShareUrl(e){let t=new URL(window.location.origin);return t.searchParams.set("layoutVersion",e),t.searchParams.set("previewing","true"),t.toString()}get shouldShowDeleteButton(){var e;return this.publishedVersionId!==((e=this.versionToOperateOn)===null||e===void 0?void 0:e.id)}getVersionMetadata(e){return{name:this.getVersionName(e),createdBy:e.creator}}getVersionName(e){return e?.name||this.intl.formatDate(e?.created,w)}getCreatedDate(e){let{name:t,created:s}=e,o="";return t&&(o=this.intl.formatDate(s,w)),o}renderAlert(){let e=this.hasClipboardError?"shareErrorMessage":"shareSuccessMessage",t=this.hasClipboardError?"danger":"success";return i("calcite-alert",{"auto-close":!0,autoCloseDuration:"fast",kind:t,label:this.intl.t(e),onCalciteAlertClose:this.onAlertClose,open:this.shouldShowAlert,placement:"top",scale:"s"},i("div",{slot:"title"},this.intl.t(e)))}renderLoading(){let{loading:e}=this;if(e)return i(a,null,i("arcgis-skeleton-loader",{active:!0,rows:1,"show-heading":!0}),i("arcgis-skeleton-loader",{active:!0,rows:1,"show-heading":!0}),i("arcgis-skeleton-loader",{active:!0,rows:1,"show-heading":!0}))}renderEmptyState(){let{loading:e,error:t,versions:s}=this;if(!e&&!t&&!s.length)return i(a,null,i("h2",null,this.intl.t("emptyMessage")))}renderError(){let{loading:e,error:t}=this;if(!e&&t)return i(a,null,i("h2",null,this.intl.t("errorMessage")))}renderPopover(){if(this.versions.length)return i("calcite-popover",{"auto-close":!0,"focus-trap-disabled":!0,label:this.intl.t("popover.label"),overlayPositioning:"fixed",placement:"leading",ref:this.setPopoverEl,referenceElement:""},i("calcite-action-pad",{"expand-disabled":!0,expanded:!0},i("calcite-action",{icon:"share",onClick:this.onShare,scale:"m",text:this.intl.t("popover.actions.share")}),i("calcite-action",{icon:"pencil",onClick:this.onShowDetailsModal,scale:"m",text:this.intl.t("popover.actions.edit")}),this.shouldShowDeleteButton&&i("calcite-action",{icon:"trash",onClick:this.onShowDeleteModal,scale:"m",text:this.intl.t("popover.actions.delete"),"text-enabled":!0})))}renderDetailsModal(){return i("arcgis-hub-versions-details-modal",{error:this.updateDetailsError,onArcgisHubVersionsDetailsModalClose:this.onHideDetailsModal,onArcgisHubVersionsDetailsModalSave:this.onSaveDetails,shouldShow:this.shouldShowDetailsModal,version:this.versionToOperateOn})}renderDeleteModal(){return i("arcgis-hub-versions-delete-modal",{displayName:this.getVersionName(this.versionToOperateOn),error:this.deleteError,onArcgisHubVersionsDeleteModalClose:this.onHideDeleteModal,onArcgisHubVersionsDeleteModalDelete:this.onDelete,shouldShow:this.shouldShowDeleteModal,version:this.versionToOperateOn})}renderListItem(e){return i("calcite-list-item",{key:e.id,metadata:this.getVersionMetadata(e),onCalciteListItemSelect:this.onSelectVersion,selected:this.activeVersionId===e.id,value:e},i("div",{slot:"content"},i("div",{class:"badges-container"},this.publishedVersionId===e.id&&i("calcite-chip",{kind:"brand",label:this.intl.t("publishedBadge"),scale:"s",value:""},this.intl.t("publishedBadge")),this.activeVersionId===e.id&&i("calcite-chip",{class:"viewing-badge",label:this.intl.t("viewingBadge"),scale:"s",value:""},this.intl.t("viewingBadge"))),i("h2",{class:"version-title"},i("calcite-link",{href:this.getItemUrl(e.id),onClick:this.onTitleLinkClick},this.getVersionName(e))),i("div",null,this.getCreatedDate(e)),i("div",null,this.intl.t("createdBy",e)),i("div",null,e.description)),i("calcite-action",{"data-id":e.id,icon:"ellipsis",onClick:this.onShowPopover,slot:"actions-end",text:this.intl.t("menuLabel")}))}render(){return i(g,{key:"b470d089056af816bf5e042d9f61b02062e0c0ee","data-element":"versions"},i("calcite-list",{key:"68a7c2e59899c6fb9e4121d1deb57e5127f03e8d","selection-appearance":"border","selection-mode":"none"},this.renderLoading(),this.renderEmptyState(),this.renderError(),this.versions.map(this.renderListItem)),this.renderPopover(),i("arcgis-wormhole",{key:"fcea002b92ac0d149ede347aff5bc660c0ccfc71"},this.renderAlert(),this.renderDetailsModal(),this.renderDeleteModal()))}static get assetsDirs(){return["locales"]}get element(){return v(this)}static get watchers(){return{context:["fetchVersions"],itemId:["fetchVersions"]}}};V.style=S;export{V as arcgis_hub_versions};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=b=>a=>{var c=b[a];if(c)return c();throw new Error("Module not found in bundle: "+a)};var n=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports);var l=(b,a,c,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&f(b,d,{get:()=>a[d],enumerable:!(e=h(a,d))||e.enumerable});return b};var o=(b,a,c)=>(c=b!=null?g(j(b)):{},l(a||!b||!b.__esModule?f(c,"default",{value:b,enumerable:!0}):c,b));export{m as a,n as b,o as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as o}from"./U7DDSGRI.js";import{a as p}from"./MZPEHZQ6.js";import{a as h}from"./5BFO4SMC.js";import"./LT5EGN2B.js";import"./VTCPJ62B.js";import"./RUVOYVVB.js";import{b as s,c as m,d,e as f,h as g,i as v}from"./CHENEYUV.js";import"./AT75BQVI.js";var I="calcite-text-area[status='invalid']{--calcite-color-border-input:var(--calcite-color-status-danger)}calcite-text-area[status='invalid']:focus{--calcite-ui-focus-color:var(--calcite-color-status-danger)}#character-counter>span{margin-inline-start:auto;margin-top:0.25rem}#sr-character-counter{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}",b=I,x=function(t,e,a,i){var n=arguments.length,r=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,a):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,a,i);else for(var l=t.length-1;l>=0;l--)(u=t[l])&&(r=(n<3?u(r):n>3?u(e,a,r):u(e,a))||r);return n>3&&r&&Object.defineProperty(e,a,r),r},C=["color","date","datetime-local","email","file","image","month","number","password","search","tel","text","textarea","time","url","week"],c=class{constructor(t){v(this,t),this.arcgisConfigurationEditorFieldInputChange=f(this,"arcgisConfigurationEditorFieldInputChange",7),this.setInputElement=e=>{this.inputElement=e},this.params=void 0,this.currentLength=0,this.assistiveText=void 0,p(this,"handleCalciteInputInput","setInputElement")}async componentWillLoad(){var t;this.intl=await h.loadIntlForComponent(this.element),this.currentLength=(((t=this.params)===null||t===void 0?void 0:t.value)||"").toString().length,this.setCurrentValue(this.params.value)}get type(){var t,e;let i={"date-time":"datetime-local","idn-email":"email"}[this.params.schema.format]||this.params.schema.format||((e=(t=this.params.uiSchema)===null||t===void 0?void 0:t.options)===null||e===void 0?void 0:e.type);return C.includes(i)||(i="text"),i}get _valueToRender(){return this.currentValue?this.currentValue.toString():""}watchValue(t){t.value!=this.currentValue&&this.inputElement.matches(":not(:focus)")&&this.setCurrentValue(t.value)}setCurrentValue(t){let e=t;this.type==="number"&&(e=parseFloat(`${e}`),isNaN(e)&&(e=null)),this.currentValue=e}handleCalciteInputInput(t){let e=t.target.value;this.setCurrentValue(e),this.currentLength=this.currentValue?this.currentValue.toString().length:0,this.emitInputChange()}emitInputChange(){this.arcgisConfigurationEditorFieldInputChange.emit(this.currentValue)}get counterString(){let t=this.params.schema.maxLength-this.currentLength;return this.intl.t("characterCounter",{charactersLeft:t})}updateAssistiveText(){this.assistiveText=this.counterString}_renderCounter(){if(this.type==="text"&&this.params.schema.maxLength)return s(g,null,s("calcite-input-message",{id:"character-counter"},s("span",null,this.counterString)),s("span",{id:"sr-character-counter",role:"status"},this.assistiveText))}renderTextArea(){var t,e;let a=this.params.schema||{},i=this.params.uiSchema||{options:{}};return s("calcite-text-area",{disabled:this.params.disabled,label:a.title,maxLength:a.maxLength,onCalciteTextAreaInput:this.handleCalciteInputInput,placeholder:(t=i.options)===null||t===void 0?void 0:t.placeholder,ref:this.setInputElement,required:this.params.required,resize:"vertical",rows:(e=i.options)===null||e===void 0?void 0:e.rows,scale:this.params.scale,status:this.params.status,value:this._valueToRender})}renderTextInput(){var t,e;let a=this.params.schema||{},i=this.params.uiSchema||{options:{}};return s("calcite-input",{disabled:this.params.disabled,label:a.title,max:a.maximum,maxLength:a.maxLength,min:a.minimum,onCalciteInputInput:this.handleCalciteInputInput,placeholder:(t=i.options)===null||t===void 0?void 0:t.placeholder,ref:this.setInputElement,required:this.params.required,scale:this.params.scale,status:this.params.status,"suffix-text":(e=i.options)===null||e===void 0?void 0:e.suffixText,type:this.type,value:this._valueToRender})}renderInputField(){switch(this.type){case"textarea":return this.renderTextArea();default:return this.renderTextInput()}}render(){return s(m,{key:"0992b5b48ea66437d4042af3c3f3641cfaa6f497","data-test-type":this.type},this.renderInputField(),this._renderCounter())}static get assetsDirs(){return["locales"]}get element(){return d(this)}static get watchers(){return{params:["watchValue"],currentLength:["updateAssistiveText"]}}};x([o({timeout:250})],c.prototype,"emitInputChange",null);x([o({timeout:2e3})],c.prototype,"updateAssistiveText",null);c.style=b;export{c as hub_field_input_input};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as P,b as S}from"./UHJI2POJ.js";import{a as h,b as g,c as A,d as k,e as C,g as H}from"./ZVJUBUUM.js";import{a as K}from"./S5UG2OK3.js";import{a as Q}from"./7JJRW4NC.js";import{a as b}from"./A7UTEGFQ.js";import{a as q,f as y,h as v,j as I}from"./H4KV7MLW.js";import{n as m}from"./NQU3EFLX.js";import{e as $}from"./DDQO772J.js";import{a as f}from"./KBNCRVPP.js";import{a as E}from"./CFPF74RM.js";import{a as d}from"./K5HZ2G74.js";import{a as w}from"./K6AMDRTV.js";function W(t,r,e){let s=`ref|${r}|${e}`;return t.filter(i=>i!==s)}var X=async(t,r,e,s)=>{let o=d(t);if(!g(o,r))throw new Error(`breakAssociation: Association between ${o} and ${r} is not supported.`);if(h(o).children.includes(r)){let a=w(t,"associations.groupId"),{owner:n}=await m(r,e,s);try{await K({id:e,groupId:a,authentication:s.session,owner:n})}catch(u){let p=u;throw new Error(`breakAssociation: there was an error unsharing ${e} from ${a}: ${p}`)}}else t.typeKeywords=W(t.typeKeywords,r,e),await b(o,t,s)};function G(t,r){return{targetEntity:typeof t=="string"?f(t):f(t[0]),filters:[Object.assign(Object.assign({},r.length&&{operation:"AND"}),{predicates:[Object.assign({type:t},r.length&&{id:{not:r}})]})]}}var R=(t,r)=>{let e,s=d(t);if(!g(s,r))throw new Error(`getAvailableToRequestEntitiesQuery: Association between ${s} and ${r} is not supported.`);if(h(s).children.includes(r)){let c=A(r),a=k(c,[]),n=$(w(t,"associations.rules.query"));e=E([n,a])}else{let c=C(t,r),a=A(r);e=G(a,c)}return e};function F(t,r,e){let s=`ref|${r}|${e}`;return t.includes(s)||(t=[...t,s]),t}var Y=async(t,r,e,s)=>{let o=d(t);if(!g(o,r))throw new Error(`requestAssociation: Association between ${o} and ${r} is not supported.`);if(h(o).children.includes(r)){let a=w(t,"associations.groupId"),{owner:n}=await m(r,e,s);try{await Q({id:e,owner:n,groupId:a,authentication:s.session})}catch(u){let p=u;throw new Error(`requestAssociation: there was an error sharing ${e} to ${String(a)}: ${p}`)}}else t.typeKeywords=F(t.typeKeywords,r,e),await b(o,t,s)};async function Z(t,r,e,s,o){let i=d(e);if(!g(i,s))throw new Error(`getWellKnownAssociationsCatalog: Association between ${i} and ${s} is not supported.`);t=y(t);let c=f(e.type),a=[I(t,c,s)],n;switch(r){case"associated":n=await H(e,s,o);break;case"pending":n=await P(e,s,o);break;case"requesting":n=await S(e,s,o);break;case"availableToRequest":n=R(e,s);break}let u=n?.filters?n.filters:[{predicates:[{type:["Code Attachment"]}]}];return q(t,r,u,a,c)}var x=(t,r,e,s,o)=>{var i;let l=d(r);if(!g(l,e))throw new Error(`getAvailableToRequestAssociationCatalogs: Association between ${l} and ${e} is not supported.`);t=y(t);let a=(i=R(r,e))===null||i===void 0?void 0:i.filters;return(o||["myContent","favorites","organization","world"]).map(u=>{let p={user:s.currentUser,filters:a,collectionNames:[e],context:s};return v(t,u,"item",p)}).filter(Boolean)};export{X as a,R as b,Y as c,Z as d,x as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as p}from"./ENWVIHLH.js";import{a as l}from"./MK64YJZT.js";import"./PR4YIRMU.js";import{b,c as y}from"./LST2TEQ7.js";import{a,b as o}from"./FII3RW6D.js";import{a as N}from"./45Z5LSII.js";import"./JKGOCFVC.js";import{B as f,H as g,a as d,b as u,m as i,o as h}from"./546UMMXC.js";import"./DUUDWZXE.js";import{c as v}from"./AT75BQVI.js";var s=v(N(),1);var C=d`@layer{layout-node-controls{position:absolute;font-family:Avenir Next;--calcite-color-background: #f7f7f7;--calcite-color-background-none: rgba(255, 255, 255, 0);--calcite-color-border-1: #d4d4d4;--calcite-color-border-2: #dedede;--calcite-color-border-3: #ebebeb;--calcite-color-border-ghost: rgba(0, 0, 0, .3);--calcite-color-border-input: #949494;--calcite-color-border-white: #ffffff;--calcite-color-brand: #007ac2;--calcite-color-brand-hover: #00619b;--calcite-color-brand-press: #004874;--calcite-color-brand-underline: rgba(0, 97, 155, .4);--calcite-color-focus: #007ac2;--calcite-color-foreground-1: #ffffff;--calcite-color-foreground-2: #f2f2f2;--calcite-color-foreground-3: #ebebeb;--calcite-color-foreground-current: #d6efff;--calcite-color-inverse: #363636;--calcite-color-inverse-hover: #2b2b2b;--calcite-color-inverse-press: #212121;--calcite-color-status-danger: #d83020;--calcite-color-status-danger-hover: #a82b1e;--calcite-color-status-danger-press: #7c1d13;--calcite-color-status-info: #00619b;--calcite-color-status-info-hover: #004874;--calcite-color-status-info-press: #00304d;--calcite-color-status-success: #288835;--calcite-color-status-success-hover: #1a6324;--calcite-color-status-success-press: #0d3f14;--calcite-color-status-warning: #da7c0b;--calcite-color-status-warning-hover: #c26b00;--calcite-color-status-warning-press: #9a5b10;--calcite-color-surface-1: #f7f7f7;--calcite-color-surface-2: #ffffff;--calcite-color-surface-3: #f2f2f2;--calcite-color-surface-4: #ebebeb;--calcite-color-surface-highlight: #d6efff;--calcite-color-text-1: #141414;--calcite-color-text-2: #4a4a4a;--calcite-color-text-3: #6b6b6b;--calcite-color-text-highlight: #004874;--calcite-color-text-inverse: #ffffff;--calcite-color-text-link: #00619b;--calcite-color-transparent: rgba(0, 0, 0, 0);--calcite-color-transparent-hover: rgba(0, 0, 0, .04);--calcite-color-transparent-inverse-hover: rgba(255, 255, 255, .12);--calcite-color-transparent-inverse-press: rgba(255, 255, 255, .16);--calcite-color-transparent-press: rgba(0, 0, 0, .08);--calcite-color-transparent-scrim: rgba(255, 255, 255, .85);--calcite-color-transparent-tint: rgba(255, 255, 255, .8)}layout-node-controls .delete-popover-content{padding:0 1rem 1rem;margin:0}}`,c=class extends f{constructor(){super(),this.#e=b({context:y,subscribe:!0}),this.isEditMode=!1,this.isLayoutValid=!0,this.arcgisLayoutDeactivateNode=i(),this.arcgisLayoutDeleteNode=i(),this.arcgisLayoutNodeEditorOpen=i(),this.arcgisLayoutNodeReposition=i(),this.arcgisLayoutNodeVisibilityChange=i(),this.hubTelemetry=i(),this.listen("calcitePopoverOpen",e=>{e.stopPropagation()}),this.listen("calcitePopoverClose",e=>{e.stopPropagation(),this.arcgisLayoutDeactivateNode.emit({node:this.node})})}static{this.properties={isEditMode:5,isLayoutValid:5,node:0,activatedNode:0,layoutElement:0,messages:0,layoutNodeConfig:0}}static{this.styles=C}static{this.shadowRootOptions=h}#e;get#t(){let e=this.layoutNodeConfig?this.layoutNodeConfig.disableMove:!1,t=!1;return this.node&&this.layout&&(t=!!l(this.node,this.layout)?.isFirstInColumn),!e&&!t}get#o(){let e=this.layoutNodeConfig?this.layoutNodeConfig.disableMove:!1,t=!1;return this.node&&this.layout&&(t=!!l(this.node,this.layout)?.isLastInColumn),!e&&!t}get _isNodeVisible(){return p(this.node)}get layoutNodeEditorRef(){return this.#e.value.layoutNodeEditorRef}get layout(){return this.#e.value.layout}get moveUpTooltipText(){let e="";return this.#t||(e=this.messages.layoutNodeControls.repositionUpDisabledTooltip),e}get moveDownTooltipText(){let e="";return this.#o||(e=this.messages.layoutNodeControls.repositionDownDisabledTooltip),e}get deleteTooltipText(){let e="";return this.layoutNodeConfig?.disableDelete?e=this.messages.layoutNodeControls.deletePremiumOnlyTooltip:this.node?.readOnly&&(e=this.messages.layoutNodeControls.readOnlyTooltip),e}_onOpenEditorButtonClick(){this.arcgisLayoutNodeEditorOpen.emit({node:this.node,element:this.layoutElement}),this.hubTelemetry.emit({...s.dictionary.category.interaction.action.open.label.sidePanel,details:this.layoutNodeConfig.name})}_onToggleVisibilityClick(){this.arcgisLayoutNodeVisibilityChange.emit({id:this.node.id,valid:!0,layoutNodeConfig:this.layoutNodeConfig});let e=this._isNodeVisible?"disable":"enable";this.hubTelemetry.emit({...s.dictionary.category.interaction.action[e].label.visibility,details:this.layoutNodeConfig.name})}_onMoveUpButtonClick(){this.arcgisLayoutNodeReposition.emit({node:this.node,direction:"up"})}_onMoveDownButtonClick(){this.arcgisLayoutNodeReposition.emit({node:this.node,direction:"down"})}_onDeleteButtonClick(){this.hubTelemetry.emit({...s.dictionary.category.interaction.action.open.label.popover,details:`Delete ${this.layoutNodeConfig.name}`})}_onDeleteConfirmButtonClick(){this.arcgisLayoutDeleteNode.emit({id:this.node.id}),this.hubTelemetry.emit({...s.dictionary.category.content.action.delete.label.layoutNode,details:this.layoutNodeConfig.name})}renderControls(){let e,t=this.layoutNodeConfig;if(this.isEditMode&&this.node&&t&&this.layoutElement){let m=this.messages.layoutNodeControls.a11yLabel||"",r="overlay";this.node.tag==="arcgis-nav-card"&&(r=this.layoutElement.querySelector("calcite-tab-nav"));let n=this.layoutNodeEditorRef?{initialFocus:this.layoutNodeEditorRef,extraContainers:[this.layoutNodeEditorRef]}:void 0;e=u`<calcite-popover .focusTrapOptions=${n} offset-distance=1 offset-skidding=-4 .label=${m} .open=${this.node.id===this.activatedNode?.id} overlay-positioning=fixed placement=top-start pointer-disabled .referenceElement=${r} top-layer-disabled trigger-disabled><calcite-action-bar expand-disabled floating layout=horizontal overflow-actions-disabled overlay-positioning=absolute><calcite-action-group><calcite-action .text=${o(t,"i18n.label",this.messages.configurableNodes.default.label)} text-enabled></calcite-action></calcite-action-group><calcite-action-group><calcite-action .disabled=${t.disableAdjustVisibility} .icon=${this._isNodeVisible?"view-visible":"view-hide"} @click=${this._onToggleVisibilityClick} .text=${this._isNodeVisible?o(t,"i18n.hideLabel",this.messages.configurableNodes.default.hide):o(t,"i18n.showLabel",this.messages.configurableNodes.default.show)}></calcite-action><arcgis-ref-tooltip .text=${this.moveUpTooltipText}><calcite-action .disabled=${!this.#t} icon=arrow-up @click=${this._onMoveUpButtonClick} .text=${o(t,"i18n.repositionUpLabel",this.messages.configurableNodes.default.up)}></calcite-action></arcgis-ref-tooltip><arcgis-ref-tooltip .text=${this.moveDownTooltipText}><calcite-action .disabled=${!this.#o} icon=arrow-down @click=${this._onMoveDownButtonClick} .text=${o(t,"i18n.repositionDownLabel",this.messages.configurableNodes.default.down)}></calcite-action></arcgis-ref-tooltip><arcgis-ref-tooltip .text=${this.node.readOnly?"Metadata must be updated in the workspace":""}><calcite-action .disabled=${this.node.readOnly||t.disableEdit||!this.isLayoutValid} icon=pencil @click=${this._onOpenEditorButtonClick} .text=${o(t,"i18n.edit",this.messages.configurableNodes.default.edit)}></calcite-action></arcgis-ref-tooltip><arcgis-ref-tooltip .text=${this.deleteTooltipText}><calcite-action .disabled=${this.node.readOnly||t.disableDelete} icon=trash id=delete-button @click=${this._onDeleteButtonClick} .text=${o(t,"i18n.delete",this.messages.configurableNodes.default.delete)}></calcite-action></arcgis-ref-tooltip><calcite-popover .focusTrapOptions=${n} .heading=${a(this.messages,"layoutNodeControls.deletePopover.heading")} .label=${a(this.messages,"layoutNodeControls.deletePopover.heading")} offset-distance=2 overlay-positioning=fixed placement=bottom-start pointer-disabled reference-element=delete-button><div class="delete-popover-content"><p>${a(this.messages,"layoutNodeControls.deletePopover.body")}</p><calcite-button alignment=center appearance=outline-fill kind=danger @click=${this._onDeleteConfirmButtonClick} round width=full>${a(this.messages,"layoutNodeControls.deletePopover.button")}</calcite-button></div></calcite-popover></calcite-action-group></calcite-action-bar></calcite-popover>`}return e}render(){return this.renderControls()}};g("arcgis-layout-node-controls",c);export{c as ArcgisLayoutNodeControls};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
async function o(s,c,e){let a=t=>!isNaN(t)&&t>0,r=a(e?.maxAttempts)?e.maxAttempts:7,u=a(e?.initialRetryDelay)?e.initialRetryDelay:500;async function i(t,l){if(t>r)throw new Error(`Polling failed after ${r} attempts`);let n=await new Promise(y=>{setTimeout(async()=>{let m=await s();y(m)},l)});return c(n)?n:await i(t+1,t===1?u:l*2)}return i(1,0)}export{o as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as p}from"./2OWGC2HG.js";import{a as f}from"./EXQCLQJD.js";import{a as C,c as g,d as _,e as k}from"./B7A7RSZ4.js";import{b as A}from"./UHJI2POJ.js";import"./ZVJUBUUM.js";import"./S5UG2OK3.js";import"./7JJRW4NC.js";import"./NA26EC7V.js";import"./TJNCJLFE.js";import"./24WHEGS7.js";import"./HX2ANNLW.js";import"./A7UTEGFQ.js";import"./UUBB3CRW.js";import"./73VGDY64.js";import"./QYQIPUGM.js";import"./BK6XX2AU.js";import"./MKK63VCT.js";import"./GQJNXTQT.js";import"./H4KV7MLW.js";import"./RQIJVACD.js";import"./BIAMJNHV.js";import"./L4JCSXPA.js";import"./3XPQULRS.js";import"./NQU3EFLX.js";import"./ISKLXQSB.js";import"./JOX32ZKP.js";import"./4MK7XIAZ.js";import"./A6MK5ZPP.js";import"./SRE3UGET.js";import"./3CHF3GEJ.js";import"./VQXRDNZT.js";import"./3UXE5BF3.js";import"./LV543PTH.js";import"./EBGADEP4.js";import"./Y2JIY5K6.js";import"./ODWK4PGO.js";import"./JBSROA2H.js";import"./GQCVJRFN.js";import"./OKPRBA73.js";import"./OY4XFH6U.js";import"./Z7XRFVR2.js";import"./LZC3KVDN.js";import"./LLPWCLVS.js";import"./DFJJV4QP.js";import"./DDQO772J.js";import"./ZN44BYAC.js";import"./KBNCRVPP.js";import"./CFPF74RM.js";import"./4LSDKVY5.js";import"./TWWDY4C3.js";import"./JKK5LJAI.js";import"./SEXTYSOH.js";import"./PJNURHKH.js";import"./HZZPNHJD.js";import"./32UA342W.js";import{a as d}from"./FUJECPFL.js";import"./3PZNRYMF.js";import"./PVJYYXFI.js";import"./ZCZVGMIV.js";import"./Y6Q6ENTP.js";import"./OGW276HU.js";import"./BN2OLK73.js";import"./4QLO26TU.js";import"./RGXVBRFC.js";import"./TZXHHOXC.js";import"./D3BILNAQ.js";import"./EJKK6I5R.js";import"./FO7JXNJA.js";import"./LQLM5UFO.js";import"./F4W62LF6.js";import"./BREHLWWL.js";import"./D3R4UBO6.js";import"./TVV2X45U.js";import"./EDJVOECM.js";import"./WPYXFHC7.js";import"./QLXCZ3NE.js";import"./7GI2O7DN.js";import"./ZV3N2SYE.js";import"./BOXLFPBZ.js";import"./F67HAQPI.js";import"./ADYIOWEG.js";import"./QHE543NP.js";import"./EKJB7MLI.js";import"./2DUPJPOK.js";import"./INL22W2K.js";import"./2TXGBFPG.js";import"./N6YCTEBM.js";import"./CL6SOVSI.js";import"./3VUHOWXT.js";import"./76VGL2OG.js";import"./CXTLB2JC.js";import"./YS3WYU6Q.js";import"./UWUNHI7L.js";import"./ZAXWIIVO.js";import{a as y}from"./5BFO4SMC.js";import"./LT5EGN2B.js";import"./VTCPJ62B.js";import a from"./DB7GEQTR.js";import"./K5HZ2G74.js";import{a as n}from"./MA4PQFDN.js";import"./GMWP6LCV.js";import"./GY557TE4.js";import"./O24TJJIA.js";import"./ZZBJZPDW.js";import"./5VOM4C4C.js";import"./564WTIUK.js";import{j as b}from"./ITUDVJWT.js";import{a as u}from"./K6AMDRTV.js";import"./RUVOYVVB.js";import{b as s,c as O,d as R,e as q,i as v}from"./CHENEYUV.js";import"./AT75BQVI.js";export default $arcgis.t(([{c:j,g:c}])=>{var r="initiative",T=t=>[{label:t.t("shared.facets.status.label"),key:"status",operation:"OR",display:"multi-select",options:[{label:t.t("shared.facets.status.notStarted"),key:"notStarted",predicates:[{typekeywords:"status|notStarted"}],selected:!1},{label:t.t("shared.facets.status.inProgress"),key:"inProgress",predicates:[{typekeywords:"status|inProgress"}],selected:!1},{label:t.t("shared.facets.status.onHold"),key:"onHold",predicates:[{typekeywords:"status|onHold"}],selected:!1},{label:t.t("shared.facets.status.complete"),key:"complete",predicates:[{typekeywords:"status|complete"}],selected:!1}]},{label:t.t("shared.facets.tags.label"),key:"tags",field:"tags",aggLimit:15,operation:"OR",display:"multi-select",options:[]},{label:t.t("shared.facets.access.label"),key:"access",display:"multi-select",field:"access",options:[],operation:"OR"}],E=t=>T(t).filter(i=>i.key!=="tags"),S=(t,i,e,a)=>(t.additionalInfo=t.additionalInfo.filter(o=>!["tags","dateCreated"].includes(o.i18nKey)),t),I=".entity-initiatives__request-association{display:flex;flex-direction:row;align-items:center;gap:1rem}",L=I,l={noticeType:"alert",autoClose:!0,autoCloseDuration:"fast",icon:!0,kind:"success"},P=class{constructor(t){v(this,t),this.hubTelemetry=q(this,"hubTelemetry",7),this.init=async()=>{this._referencedEntitiesCount=f(this.entity).length,this._associationCatalogs=await Promise.all(["associated","pending","requesting"].map(async e=>{let a=await _("associationsGallery",e,this.entity,r,this._context);return d(this.intl,a)}));let i=k("requestAssociation",this.entity,r,this._context,["myContent","organization","community","partners"]);this._availableToRequestCatalogs=i.map(e=>d(this.intl,e))},this.handleHubTelemetry=i=>{i.stopPropagation(),this.hubTelemetry.emit(i.detail)},this.handleCatalogChange=i=>{let e=i.detail;this._activeCatalogKey=b(e)},this.handlePickerOpen=()=>{this._isPickerOpen=!0},this.handlePickerClose=()=>{this._isPickerOpen=!1},this.handlePickerSelectionUpdate=async i=>{let{item:e}=i.detail,a=Object.assign(Object.assign({},n.dictionary.category.content.action.update.label.association),{details:`Invite ${r}`,count:e.length});try{let o=0,h=await A(this.entity,r,this._context).then(m=>m?u(m,"filters[0].predicates[0].id")||[]:[]);await Promise.all(e.map(async m=>(h.includes(m)&&o++,g(this.entity,r,m,this._context)))),await this.init();let w=o?{title:this.intl.t("requestAssociation.alreadyRequesting.title"),message:this.intl.t("requestAssociation.alreadyRequesting.message",{count:e.length-o}),configuration:Object.assign(Object.assign({},l),{kind:"brand",label:this.intl.t("notice.label")})}:{title:this.intl.t("requestAssociation.success.title"),message:this.intl.t("requestAssociation.success.message",{count:e.length}),configuration:Object.assign(Object.assign({},l),{kind:"success",label:this.intl.t("notice.label")})};c(w),this.hubTelemetry.emit(Object.assign(Object.assign({},a),{response:n.constants.response.SUCCESS}))}catch{c({title:this.intl.t("shared.error.title"),message:this.intl.t("shared.error.message"),configuration:Object.assign(Object.assign({},l),{kind:"danger",label:this.intl.t("notice.label")})}),this.hubTelemetry.emit(Object.assign(Object.assign({},a),{response:n.constants.response.FAILURE}))}},this.entity=void 0,this.isMobile=!1,this._activeCatalogKey="associated",this._associationCatalogs=void 0,this._isPickerOpen=void 0}async handleGalleryAction(t){let{action:i,model:e}=t.detail;if(i==="accept"){let a=Object.assign(Object.assign({},n.dictionary.category.content.action.update.label.association),{details:`Add ${r}`});try{await g(this.entity,r,e.id,this._context),await this.init(),c({title:this.intl.t("acceptAssociation.success.title"),message:this.intl.t("acceptAssociation.success.message",{requestor:e.title}),configuration:Object.assign(Object.assign({},l),{label:this.intl.t("notice.label")})}),this.hubTelemetry.emit(Object.assign(Object.assign({},a),{response:n.constants.response.SUCCESS}))}catch{c({title:this.intl.t("shared.error.title"),message:this.intl.t("shared.error.message"),configuration:Object.assign(Object.assign({},l),{kind:"danger",label:this.intl.t("notice.label")})}),this.hubTelemetry.emit(Object.assign(Object.assign({},a),{response:n.constants.response.FAILURE}))}}else if(i==="break"){let a=Object.assign(Object.assign({},n.dictionary.category.content.action.update.label.association),{details:`${this._activeCatalogKey==="associated"?"Remove":"Cancel"} ${r}`});try{await C(this.entity,r,e.id,this._context),await this.init();let o=this._activeCatalogKey==="associated"?"breakAssociation":"cancelRequest",h=this._activeCatalogKey==="associated"?"slow":"fast";c({title:this.intl.t(`${o}.success.title`),message:this.intl.t(`${o}.success.message`),configuration:Object.assign(Object.assign({},l),{autoCloseDuration:h,kind:this._activeCatalogKey==="associated"?"brand":"success",label:this.intl.t("notice.label")})}),this.hubTelemetry.emit(Object.assign(Object.assign({},a),{response:n.constants.response.SUCCESS}))}catch{c({title:this.intl.t("shared.error.title"),message:this.intl.t("shared.error.message"),configuration:Object.assign(Object.assign({},l),{kind:"danger",label:this.intl.t("notice.label")})}),this.hubTelemetry.emit(Object.assign(Object.assign({},a),{response:n.constants.response.FAILURE}))}}}async componentWillLoad(){this.intl=await y.loadIntlForComponent(this.element),this.init()}get _context(){return j()}get _isAssociationLimitReached(){return this._referencedEntitiesCount>=50}get _actionLinks(){let t=[];return t=this._activeCatalogKey==="incomingRequests"?[Object.assign({action:"accept",buttonStyle:"solid",disabled:this._isAssociationLimitReached,label:this.intl.t("acceptAssociation.label"),showLabel:!0},this._isAssociationLimitReached&&{tooltip:this.intl.t("acceptAssociation.limitReachedTooltip")})]:[{},{action:"break",label:this._activeCatalogKey==="associated"?this.intl.t("breakAssociation.label"):this.intl.t("cancelRequest.label"),showLabel:!0}],t}renderRequestAssociation(){return s("div",{class:"entity-initiatives__request-association",slot:"primary-actions"},this.renderRequestAssociationButton(),this.renderRequestAssociationCount(),this._isPickerOpen&&s("arcgis-wormhole",{elAttributes:{unthemed:""}},s("arcgis-hub-gallery-picker",{catalogs:this._availableToRequestCatalogs,facets:E(this.intl),isMobile:this.isMobile,limit:50-this._referencedEntitiesCount,linkTarget:"siteRelative",modalTitle:this.intl.t("requestAssociation.findInitiatives"),onArcgisHubGalleryPickerClose:this.handlePickerClose,onArcgisHubGalleryPickerSelectionUpdate:this.handlePickerSelectionUpdate,onHubTelemetry:this.handleHubTelemetry,open:this._isPickerOpen,primaryButtonLabel:this.intl.t("requestAssociation.sendRequest"),showAllCollectionFacet:!1,showSearch:!0})))}renderRequestAssociationButton(){let t=s("calcite-button",{appearance:"solid",disabled:this._isAssociationLimitReached,onClick:this.handlePickerOpen,round:!0},this.intl.t("requestAssociation.findInitiatives"));return this._isAssociationLimitReached?s("arcgis-ref-tooltip",{isSlottedElDisabled:this._isAssociationLimitReached,placement:"top",text:this.intl.t("shared.requestAssociationCount.tooltip")},t):t}renderAssociationsGallery(){return s("arcgis-hub-catalog",{callback:S,cardActionLinks:this._actionLinks,catalogs:this._associationCatalogs,facets:T(this.intl),isMobile:this.isMobile,linkTarget:"siteRelative",onArcgisHubCatalogActiveCatalogChange:this.handleCatalogChange,ref:t=>{this._catalogEl=t},showSearch:!0,showThumbnail:!0,sourceLabel:this.intl.t("associationsGallery.sources"),targetEntity:"item"})}renderRequestAssociationCount(){let t=this._isAssociationLimitReached?"warning":"info",i=this._isAssociationLimitReached?"exclamation-mark-triangle":"";return s("div",null,s("calcite-notice",{icon:i,kind:t,open:!0,scale:"s"},s("div",{slot:"title"},this.intl.t("shared.requestAssociationCount.label",{currentConfirmedAndOutgoingRequests:this._referencedEntitiesCount,maxCurrentAndOutgoingRequestsAllowed:50}))))}render(){var t;return s(O,{key:"6553731d26239ab48b20c217fc75778b642bb484","data-element":"entity-initiatives"},s("arcgis-hub-workspace-pane",{key:"0b62dfb88a77d24f00b9b377805b44afa7cd9ff2",isMobile:this.isMobile},s("h1",{key:"8489e1fde1a035637c4477f4f76439296e4ea086",slot:"title"},this.intl.t("initiatives")),s("div",{key:"bf300a8d7c778b70527201709e0f3e03d7ad2eed"},s("span",{key:"c63ecc25d74ad09391adf8490e20060bef57e3c3"},this.intl.t("description")),this.renderRequestAssociation(),((t=this._associationCatalogs)===null||t===void 0?void 0:t.length)&&this.renderAssociationsGallery())))}static get assetsDirs(){return["locales"]}get element(){return R(this)}};P.style=L;return P},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
function i(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function s(a,e){let t=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",timeZone:e??i()}).formatToParts(new Date(a));return[t[4].value,t[0].value,t[2].value].join("-")}function u(a,e){let t=new Intl.DateTimeFormat("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:e??i(),hourCycle:"h23"}).formatToParts(new Date(a));return[t[0].value,t[2].value,t[4].value].join(":")}var c=()=>{let e=new Date(Date.now()+36e5),t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours()),o=t.toISOString(),r=new Date(t.valueOf()+36e5).toISOString(),n=i(),l=s(o,n),D=s(r,n);return{startDate:l,startDateTime:new Date(o),startTime:u(o,n),endDate:D,endDateTime:new Date(r),endTime:u(r,n),timeZone:n}};export{i as a,s as b,u as c,c as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{d as p}from"./BIAMJNHV.js";import{a as d,b as u}from"./3CHF3GEJ.js";import{a as w,b as l}from"./Y2JIY5K6.js";import{e as v,g as E}from"./OY4XFH6U.js";import{g as m,h as g,j as f,o as T,r as b,s as D}from"./LLPWCLVS.js";import{c as y}from"./3VUHOWXT.js";function I(){let a=p();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:w.InPerson,catalog:{schemaVersion:0},categories:[],inPersonCapacity:null,inPersonCapacityType:l.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:l.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},a),{view:{heroActions:[],showMap:!1},location:{type:"none"}})}function A(){let{startDateTime:a,endDateTime:n}=p();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[g.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:n.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:a.toISOString(),status:m.PLANNED,tags:[],title:"",location:null}}async function C(a,n,o){let s=a.filter(({entityId:i})=>n.includes(i)),t=n.filter(i=>!s.find(({entityId:e})=>e===i));if(t.length){let{results:i}=await y({q:t.map(r=>`id:${r}`).join(" OR "),num:t.length,authentication:o.authentication}),e=i.map(({id:r,type:c})=>({entityId:r,entityType:c}));s.push(...e)}return s}async function H(a,n){let o=Object.assign(Object.assign({},I()),a);o.endDate=o.startDate;let s=new u(d()),t=s.entityToStore(o,A()),i=await C(a.referencedContentIdsByType,a.referencedContentIds,n),e={access:t.access,allDay:t.allDay,allowRegistration:t.allowRegistration,associations:i,attendanceType:t.attendanceType,capabilities:t.capabilities,categories:t.categories,description:t.description,editGroups:t.editGroups,endDate:t.endDate,endTime:t.endTime,inPersonCapacity:t.inPersonCapacity,notifyAttendees:t.notifyAttendees,onlineMeeting:t.onlineMeeting,readGroups:t.readGroups,startDate:t.startDate,startTime:t.startTime,summary:t.summary,tags:t.tags,timeZone:t.timeZone,title:t.title,location:t.location};return t=await T(Object.assign({data:e},n)),s.storeToEntity(t,{})}async function S(a,n){var o,s;let t=Object.assign(Object.assign({},I()),a),i=new u(d()),e=i.entityToStore(t,A()),r=await C(a.referencedContentIdsByType,a.referencedContentIds,n),c={access:e.access,allDay:e.allDay,allowRegistration:e.allowRegistration,associations:r,attendanceType:e.attendanceType,capabilities:e.capabilities,categories:e.categories,description:((o=e.description)===null||o===void 0?void 0:o.trim())||null,editGroups:e.editGroups,endDate:e.endDate,endTime:e.endTime,inPersonCapacity:e.inPersonCapacity,notifyAttendees:e.notifyAttendees,onlineMeeting:e.onlineMeeting,readGroups:e.readGroups,startDate:e.startDate,startTime:e.startTime,status:e.status,summary:((s=e.summary)===null||s===void 0?void 0:s.trim())||null,tags:e.tags,thumbnailUrl:e.thumbnailUrl||null,timeZone:e.timeZone,title:e.title,location:e.location};return e=await b(Object.assign({eventId:e.id,data:c},n)),i.storeToEntity(e,{})}async function M(a,n){await D(Object.assign({eventId:a},n))}function U(a,n){return v(Object.assign({data:a},n))}async function N(a,n){await E(Object.assign({registrationId:a},n))}export{I as a,H as b,S as c,M as d,U as e,N as f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{b as i}from"./FO7JXNJA.js";var s={Custom:"custom",None:"none"},o={custom:"licenseDescriptionCustom",cc0:"licenseDescriptionCc0","cc-by":"licenseDescriptionCcBy","cc-by-sa":"licenseDescriptionCcBySa","cc-by-nd":"licenseDescriptionCcByNd","cc-by-nc":"licenseDescriptionCcByNc","cc-by-nc-sa":"licenseDescriptionCcByNcSa","cc-by-nc-nd":"licenseDescriptionCcByNcNd",pddl:"licenseDescriptionPddl",odbl:"licenseDescriptionOdbl","odc-by":"licenseDescriptionOdcBy"};function p(c){return c.map(e=>i(e))}function r(c){let e=/(?:(?!-\d).)+/,n=c.toString().match(e),t=n&&n[0].toLowerCase();return o[t]||null}function u(c,e){let n=r(e);return n&&c.t(n)}function y(c){return c===s.Custom}function a(c){return Object.values(s).includes(c)}export{p as a,u as b,y as c,a as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as h}from"./BE4JSUS6.js";import{a as u}from"./S5UG2OK3.js";import{a as l}from"./7JJRW4NC.js";import{a as c}from"./LZC3KVDN.js";function b(t,r,e,n){return Promise.all(r.map(async o=>{let a=Object.assign({},{id:t,groupId:o},e);n&&(a.owner=n);try{return await u(a)}catch{throw new Error(`Error unsharing item: ${t} with group: ${o}`)}}))}async function j(t,r,e,n){let o=c.bind(void 0,Object.assign({q:`id:(${r.join(" OR ")})`,num:r.length},e)),a=s=>s.results.length===r.length,i;try{({results:i}=r.length?await h(o,a):{results:[]})}catch{throw new Error(`Error sharing item: ${t} with groups: ${r.join(", ")}`)}return Promise.all(i.map(async s=>{let m=Object.assign(Object.assign({},e),{id:t,groupId:s.id,owner:n,confirmItemControl:s.capabilities.includes("updateitemcontrol")});try{return await l(m)}catch{throw new Error(`Error sharing item: ${t} with group: ${s.id}`)}}))}export{b as a,j as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as s,b as e}from"./JC6ZBDVV.js";import"./WUZQBPV4.js";import"./SRMTUU32.js";import"./BNGN57J7.js";import"./BE4JSUS6.js";import"./S5UG2OK3.js";import"./7JJRW4NC.js";import"./NA26EC7V.js";import"./TJNCJLFE.js";import"./24WHEGS7.js";import"./HX2ANNLW.js";import{n as m}from"./NQU3EFLX.js";import"./ISKLXQSB.js";import"./JOX32ZKP.js";import"./4MK7XIAZ.js";import"./A6MK5ZPP.js";import{k as p}from"./SRE3UGET.js";import"./3CHF3GEJ.js";import"./VQXRDNZT.js";import"./3UXE5BF3.js";import"./LV543PTH.js";import"./EBGADEP4.js";import"./Y2JIY5K6.js";import"./ODWK4PGO.js";import"./JBSROA2H.js";import"./GQCVJRFN.js";import"./OKPRBA73.js";import"./OY4XFH6U.js";import"./Z7XRFVR2.js";import"./LZC3KVDN.js";import"./LLPWCLVS.js";import"./DFJJV4QP.js";import"./DDQO772J.js";import"./ZN44BYAC.js";import"./KBNCRVPP.js";import"./CFPF74RM.js";import"./4LSDKVY5.js";import"./TWWDY4C3.js";import"./JKK5LJAI.js";import"./SEXTYSOH.js";import"./PJNURHKH.js";import"./HZZPNHJD.js";import"./32UA342W.js";import"./PVJYYXFI.js";import"./ZCZVGMIV.js";import"./Y6Q6ENTP.js";import"./OGW276HU.js";import"./BN2OLK73.js";import"./4QLO26TU.js";import"./RGXVBRFC.js";import"./TZXHHOXC.js";import"./D3BILNAQ.js";import"./EJKK6I5R.js";import"./FO7JXNJA.js";import"./LQLM5UFO.js";import"./F4W62LF6.js";import"./BREHLWWL.js";import"./D3R4UBO6.js";import"./TVV2X45U.js";import"./EDJVOECM.js";import"./WPYXFHC7.js";import"./QLXCZ3NE.js";import"./7GI2O7DN.js";import"./ZV3N2SYE.js";import"./BOXLFPBZ.js";import"./F67HAQPI.js";import"./ADYIOWEG.js";import"./QHE543NP.js";import"./EKJB7MLI.js";import"./2DUPJPOK.js";import"./INL22W2K.js";import"./2TXGBFPG.js";import"./N6YCTEBM.js";import"./CL6SOVSI.js";import"./3VUHOWXT.js";import"./76VGL2OG.js";import"./CXTLB2JC.js";import{a as o}from"./MZPEHZQ6.js";import"./YS3WYU6Q.js";import"./UWUNHI7L.js";import"./ZAXWIIVO.js";import"./VTCPJ62B.js";import b from"./DB7GEQTR.js";import"./K5HZ2G74.js";import"./MA4PQFDN.js";import"./GMWP6LCV.js";import"./GY557TE4.js";import"./O24TJJIA.js";import"./ZZBJZPDW.js";import"./5VOM4C4C.js";import"./564WTIUK.js";import"./ITUDVJWT.js";import"./K6AMDRTV.js";import"./RUVOYVVB.js";import{b as i,c as n,i as a}from"./CHENEYUV.js";import"./AT75BQVI.js";export default $arcgis.t(([{c:h}])=>{var ii=class{get _context(){return h()}constructor(r){a(this,r),this.groups=void 0,this.ids=void 0,this.results=void 0,this.loading=!0,o(this,"unshare","share")}async componentWillLoad(){let r=this.groups.split(","),u=this.ids.split(",");this.hubGroups=await Promise.all(r.map(async t=>await p(t,this._context.hubRequestOptions))),this.hubEntities=await Promise.all(u.map(async t=>await m("content",t,this._context))),this.results={groups:this.hubGroups.map(t=>({id:t.id,title:t.name})),entities:this.hubEntities.map(t=>({id:t.id,title:t.name,owner:t.owner}))},this.loading=!1}async unshare(){this.loading=!0,this.results=await s(this.hubGroups,this.hubEntities,this._context),this.loading=!1}async share(){this.loading=!0,this.results=await e(this.hubGroups,this.hubEntities,this._context),this.loading=!1}render(){return i(n,{key:"8ee0ef974d42587d12f5d272573bba62fad6f62b","data-element":"dev-share-entities"},this.loading?i("div",null,"Loading..."):i("div",null,i("h2",null,"Complete"),i("button",{onClick:this.share},"Share"),i("button",{onClick:this.unshare},"UnShare"),i("pre",null,JSON.stringify(this.results,null,2))))}};return ii},b)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
var e={"360 VR Experience":"360 VR Experience","Apache Parquet":"Apache Parquet","AppBuilder Widget Package":"AppBuilder Widget Package","Desktop Add In":"Desktop Add In","Explorer Add In":"Explorer Add In","Explorer Map":"Explorer Map","Explorer Layer":"Explorer Layer","Windows Mobile Package":"Windows Mobile Package","ArcGIS Pro Add In":"ArcGIS Pro Add In","ArcGIS Pro Configuration":"ArcGIS Pro Configuration","Globe Document":"Globe Document","Map Document":"Map Document","ArcPad Package":"ArcPad Package","Published Map":"Published Map","Scene Document":"Scene Document","CityEngine Web Scene":"CityEngine Web Scene","Code Sample":"Code Sample","CSV Collection":"CSV Collection",CSV:"CSV","CAD Drawing":"CAD Drawing","Deep Learning Package":"Deep Learning Package","Desktop Application":"Desktop Application","Desktop Application Template":"Desktop Application Template","Desktop Style":"Desktop Style","Earth Configuration":"Earth Configuration","Feature Collection":"Feature Collection","File Geodatabase":"File Geodatabase",GeoJson:"GeoJson","Geoprocessing Package":"Geoprocessing Package",GeoPackage:"GeoPackage","Geoprocessing Sample":"Geoprocessing Sample",GML:"GML","Image Collection":"Image Collection",Image:"Image","iWork Keynote":"iWork Keynote","iWork Numbers":"iWork Numbers","iWork Pages":"iWork Pages","KML Collection":"KML Collection",KML:"KML",Layer:"Layer","Layer Package":"Layer Package",Layout:"Layout","Locator Package":"Locator Package","Map Package":"Map Package","Map Template":"Map Template","Microsoft Excel":"Microsoft Excel","Microsoft Powerpoint":"Microsoft Powerpoint","Visio Document":"Visio Document","Microsoft Word":"Microsoft Word","Mobile Basemap Package":"Mobile Basemap Package","Mobile Map Package":"Mobile Map Package","Mobile Scene Package":"Mobile Scene Package",Notebook:"Notebook",PDF:"PDF","Pro Map":"Pro Map","Pro Report":"Pro Report","Project Package":"Project Package","Project Template":"Project Template","Raster function template":"Raster function template","Rule Package":"Rule Package","Scene Package":"Scene Package","Service Definition":"Service Definition",Shapefile:"Shapefile","Survey123 Add In":"Survey123 Add In","Tile Package":"Tile Package","Vector Tile Package":"Vector Tile Package","Workflow Manager Package":"Workflow Manager Package","Document Link":"Document Link","Feature Service":"Feature Service","Geocoding Service":"Geocoding Service","Geodata Service":"Geodata Service","Geometry Service":"Geometry Service","Geoprocessing Service":"Geoprocessing Service","Geoenrichment Service":"Geoenrichment Service","Globe Service":"Globe Service","Image Service":"Image Service","Map Service":"Map Service","Network Analysis Service":"Network Analysis Service","Vector Tile Service":"Vector Tile Service",WFS:"WFS",WMS:"WMS",WMTS:"WMTS",OGCFeatureServer:"OGCFeatureServer","Scene Service":"Scene Service","Stream Service":"Stream Service","Workflow Manager Service":"Workflow Manager Service","Web Mapping Application":"Web Mapping Application","Mobile Application":"Mobile Application","AppBuilder Extension":"AppBuilder Extension","Google Drive":"Google Drive",Dropbox:"Dropbox",OneDrive:"OneDrive",StoryMap:"StoryMap",Dashboard:"Dashboard","Hub Project":"Hub Project","Hub Initiative":"Hub Initiative","Hub Site Application":"Hub Site Application","Web Experience":"Web Experience","Insights Workbook Package":"Insights Workbook Package",Application:"Application","ArcGIS Explorer Application Configuration":"ArcGIS Explorer Application Configuration","ArcMap Document":"ArcMap Document","Layer File":"Layer File",ogcFeature:"ogcFeature",FeatureServer:"Feature Service",GeocodeServer:"GeocodeServer",GeoDataServer:"GeoDataServer",GeometryServer:"GeometryServer",GeoenrichmentServer:"GeoenrichmentServer",GPServer:"GPServer",GlobeServer:"GlobeServer",ImageServer:"ImageServer",MapServer:"MapServer",NAServer:"NAServer",ElevationServer:"ElevationServer",VectorTileServer:"VectorTileServer","Scene Server":"Scene Server",StreamServer:"StreamServer",WMServer:"WMServer",TiledImageServer:"TiledImageServer"};export{e as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as g}from"./YS3WYU6Q.js";import{a as D,b as C,f as $,g as N,h as f}from"./UWUNHI7L.js";var k;(function(s){s.TOKEN_REFRESH_FAILED="TOKEN_REFRESH_FAILED",s.GENERATE_TOKEN_FOR_SERVER_FAILED="GENERATE_TOKEN_FOR_SERVER_FAILED",s.REFRESH_TOKEN_EXCHANGE_FAILED="REFRESH_TOKEN_EXCHANGE_FAILED",s.NOT_FEDERATED="NOT_FEDERATED",s.UNKNOWN_ERROR_CODE="UNKNOWN_ERROR_CODE"})(k||(k={}));var E=class extends Error{constructor(e="UNKNOWN_ERROR",t=k.UNKNOWN_ERROR_CODE,r,n,i){super(e);let o=new.target.prototype;Object.setPrototypeOf(this,o),this.name="ArcGISTokenRequestError",this.message=`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=r,this.url=n,this.options=i}},y=class extends Error{constructor(){super("The user has denied your authorization request.");let t=new.target.prototype;Object.setPrototypeOf(this,t),this.name="ArcGISAccessDeniedError"}};function M(s){let[e,t]=s.split("=");return{key:decodeURIComponent(e),value:decodeURIComponent(t)}}function K(s){return!s||s.length<=0?{}:s.replace(/^#/,"").replace(/^\?/,"").split("&").reduce((e,t)=>{let{key:r,value:n}=M(t);return e[r]=n,e},{})}var b=300*1e3;function I(s,e){let t=e;return t.rawResponse=!1,f(s,t).then(r=>{if("token"in r&&"expires"in r)return{token:r.token,username:e.params.username,expires:new Date(r.expires)};let n={token:r.access_token,username:r.username,expires:new Date(Date.now()+r.expires_in*1e3-b),ssl:r.ssl===!0};return r.refresh_token&&(n.refreshToken=r.refresh_token),r.refresh_token_expires_in&&(n.refreshTokenExpires=new Date(Date.now()+r.refresh_token_expires_in*1e3-b)),n})}var F=class{constructor(e){this.portal=e.portal?g(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`,r=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingUserRequest=f(t,r).then(n=>(this._user=n,this._pendingUserRequest=null,n)),this._pendingUserRequest}}clearCachedUserInfo(){this._user=null}},U=/^https?:\/\/(\S+)\.arcgis\.com.+/;function L(s){return U.test(s)}function q(s){if(!U.test(s))return s;switch(P(s)){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 P(s){if(!U.test(s))return null;let t=s.match(U)[1].split(".").pop();return t.includes("dev")?"dev":t.includes("qa")?"qa":"production"}function G(s,e){let t=g(q(e)).replace(/https?:\/\//,""),r=g(s).replace(/https?:\/\//,"");return new RegExp(r,"i").test(t)}function V(s,e){let t=L(s),r=L(e),n=P(s),i=P(e);return!!(t&&r&&n===i)}function W(s,e,t="https://www.arcgis.com/sharing/rest"){let r=`${t}/oauth2/validateAppAccess`;return f(r,{method:"POST",params:{f:"json",client_id:e,token:s}})}function J(s){let e=`${g(s.portal||"https://www.arcgis.com/sharing/rest")}/oauth2/revokeToken/`,t=s.token,r=s.clientId;delete s.portal,delete s.clientId,delete s.token;let n=Object.assign(Object.assign({},s),{httpMethod:"POST",params:{client_id:r,auth_token:t}});return f(e,n).then(i=>{if(!i.success)throw new C("Unable to revoke token",500,i,e,n);return i})}function z(s,e=window){return!e&&window&&(e=window),e.btoa(String.fromCharCode.apply(null,s)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function X(s,e=window){if(!e&&window&&(e=window),s&&e.isSecureContext&&e.crypto&&e.crypto.subtle){let r=new e.TextEncoder().encode(s);return e.crypto.subtle.digest("SHA-256",r).then(n=>z(new Uint8Array(n),e))}return Promise.resolve(null)}function j(s){!s&&window&&(s=window);let e=s.crypto.getRandomValues(new Uint8Array(32));return z(e)}function Q(s){return typeof s.userId=="string"||typeof s.expires=="number"}var H=class s extends F{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?g(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:r,provider:n,clientId:i,expiration:o,redirectUri:a,popup:m,popupWindowFeatures:T,locale:c,params:d,style:_,pkce:R,state:h}=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),l=h||j(t),w=`ARCGIS_REST_JS_AUTH_STATE_${i}`;t.localStorage.setItem(w,l);let p=`${g(r)}/oauth2/authorize`,x={client_id:i,response_type:R?"code":"token",expiration:o,redirect_uri:a,state:JSON.stringify({id:l,originalUrl:t.location.href}),locale:c,style:_};n!=="arcgis"&&(p=`${g(r)}/oauth2/social/authorize`,x.socialLoginProviderName=n,x.autoAccountCreateForSocial=!0);let A;if(R){let S=j(t),O=`ARCGIS_REST_JS_CODE_VERIFIER_${i}`;t.localStorage.setItem(O,S),A=X(S,t).then(function(u){x.code_challenge_method=u?"S256":"plain",x.code_challenge=u||S})}else A=Promise.resolve();return A.then(()=>{if(p=`${p}?${D(x)}`,d&&(p=`${p}&${D(d)}`),m)return new Promise((S,O)=>{t.addEventListener(`arcgis-rest-js-popup-auth-${i}`,u=>{if(u.detail.error==="access_denied"){let v=new y;return O(v),v}if(u.detail.errorMessage){let v=new N(u.detail.errorMessage,u.detail.error);return O(v),v}S(new s({clientId:i,portal:r,ssl:u.detail.ssl,token:u.detail.token,tokenExpires:u.detail.expires,username:u.detail.username,refreshToken:u.detail.refreshToken,refreshTokenExpires:u.detail.refreshTokenExpires,redirectUri:a}))},{once:!0}),t.open(p,"oauth-window",T),t.dispatchEvent(new CustomEvent("arcgis-rest-js-popup-auth-start"))});t.location.href=p})}static completeOAuth2(e,t){!t&&window&&(t=window);let{portal:r,clientId:n,popup:i,pkce:o,redirectUri:a}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",popup:!0,pkce:!0},e),m=`ARCGIS_REST_JS_AUTH_STATE_${n}`,T=t.localStorage.getItem(m),c=K(o?t.location.search.replace(/^\?/,""):t.location.hash.replace(/^#/,"")),d=c&&c.state?JSON.parse(c.state):void 0;function _(h,l,w){if(t.localStorage.removeItem(m),i&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${n}`,{detail:{error:l,errorMessage:h}})),t.close();return}return w&&t.history.replaceState(t.history.state,"",w),l==="access_denied"?Promise.reject(new y):Promise.reject(new N(h,l))}function R(h,l){if(t.localStorage.removeItem(m),i&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${n}`,{detail:Object.assign({},h)})),t.close();return}return t.history.replaceState(t.history.state,"",l),new s({clientId:n,portal:r,ssl:h.ssl,token:h.token,tokenExpires:h.expires,username:h.username,refreshToken:h.refreshToken,refreshTokenExpires:h.refreshTokenExpires,redirectUri:a||location.href.replace(location.search,"")})}if(!T||!d)return _("No authentication state was found, call `ArcGISIdentityManager.beginOAuth2(...)` to start the authentication process.","no-auth-state");if(d.id!==T)return _("Saved client state did not match server sent state.","mismatched-auth-state");if(c.error){let h=c.error,l=c.error_description||"Unknown error";return _(l,h,d.originalUrl)}if(o&&c.code){let h=g(`${r}/oauth2/token/`),l=`ARCGIS_REST_JS_CODE_VERIFIER_${n}`,w=t.localStorage.getItem(l);return t.localStorage.removeItem(l),I(h,{httpMethod:"POST",params:{client_id:n,code_verifier:w,grant_type:"authorization_code",redirect_uri:a||location.href.replace(location.search,""),code:c.code}}).then(p=>R(Object.assign(Object.assign({},p),d),d.originalUrl)).catch(p=>_(p.originalMessage,p.code,d.originalUrl))}return!o&&c.access_token?Promise.resolve(R(Object.assign({token:c.access_token,expires:new Date(Date.now()+parseInt(c.expires_in,10)*1e3),ssl:c.ssl==="true",username:c.username},d),d.originalUrl)):_("Unknown error","oauth-error",d.originalUrl)}static fromParent(e,t){!t&&window&&(t=window);let r;return new Promise((n,i)=>{r=o=>{if(o.source===t.parent&&o.data)try{return n(s.parentMessageHandler(o))}catch(a){return i(a)}},t.addEventListener("message",r,!1),t.parent.postMessage({type:"arcgis:auth:requestCredential"},e)}).then(n=>(t.removeEventListener("message",r,!1),n))}static authorize(e,t){let{portal:r,clientId:n,expiration:i,redirectUri:o,state:a}=Object.assign({portal:"https://arcgis.com/sharing/rest",expiration:20160},e),m={client_id:n,expiration:i,response_type:"code",redirect_uri:o};a&&(m.state=a);let T=`${r}/oauth2/authorize?${D(m)}`;t.writeHead(301,{Location:T}),t.end()}static exchangeAuthorizationCode(e,t){let{portal:r,clientId:n,redirectUri:i}=Object.assign({portal:"https://www.arcgis.com/sharing/rest"},e);return I(`${r}/oauth2/token`,{params:{grant_type:"authorization_code",client_id:n,redirect_uri:i,code:t}}).then(o=>new s({clientId:n,portal:r,ssl:o.ssl,redirectUri:i,refreshToken:o.refreshToken,refreshTokenExpires:o.refreshTokenExpires,token:o.token,tokenExpires:o.expires,username:o.username})).catch(o=>{throw new E(o.message,k.REFRESH_TOKEN_EXCHANGE_FAILED,o.response,o.url,o.options)})}static deserialize(e){let t=JSON.parse(e);return new s({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 r=typeof e.ssl<"u"?e.ssl:!0,n=e.expires||Date.now()+72e5;return t.hasServer?new s({server:e.server,ssl:r,token:e.token,username:e.userId,tokenExpires:new Date(n)}):new s({portal:g(e.server.includes("sharing/rest")?e.server:e.server+"/sharing/rest"),ssl:r,token:e.token,username:e.userId,tokenExpires:new Date(n)})}static parentMessageHandler(e){if(e.data.type==="arcgis:auth:credential"){let t=e.data.credential;return Q(t)?s.fromCredential(t,{hasPortal:!0,hasServer:!1,server:t.server}):new s(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 J({clientId:e.clientId,portal:e.portal,token:e.refreshToken||e.token})}static fromToken(e){let t=new s(e);return t.getUser().then(()=>t)}static signIn(e){let t=new s(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`,r=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingPortalRequest=f(t,r).then(n=>(this._portalInfo=n,this._pendingPortalRequest=null,n)),this._pendingPortalRequest}}getToken(e,t){return V(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=>W(t,e))}toJSON(){return{type:"ArcGISIdentityManager",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 E("Unable to refresh token. No refresh token or password present.",k.TOKEN_REFRESH_FAILED))}getServerRootUrl(e){let[t]=g(e).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/),[r,n,i]=t.match(/(https?:\/\/)(.+)/),[o,...a]=i.split("/");return`${n}${o.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 s.destroy(this)}createPostMessageHandler(e){return t=>{let r=e.indexOf(t.origin)>-1,n=t.data.type==="arcgis:auth:requestCredential",i=this.tokenExpires.getTime()>Date.now();if(r&&n){let o={};if(i){let a=this.toCredential();a.server=a.server.replace("/sharing/rest",""),o={type:"arcgis:auth:credential",credential:a}}else o={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Token was expired, and not returned to the child application"}};t.source.postMessage(o,t.origin)}}}getTokenForServer(e,t){let r=this.getServerRootUrl(e),n=this.federatedServers[r];return n&&n.expires&&n.expires.getTime()>Date.now()?Promise.resolve(n.token):this._pendingTokenRequests[r]?this._pendingTokenRequests[r]:(this._pendingTokenRequests[r]=this.fetchAuthorizedDomains().then(()=>f(`${r}/rest/info`,{credentials:this.getDomainCredentials(e)}).then(i=>{if(i.owningSystemUrl){if(G(i.owningSystemUrl,this.portal))return f(`${i.owningSystemUrl}/sharing/rest/info`,t);throw new E(`${e} is not federated with ${this.portal}.`,k.NOT_FEDERATED)}else{if(i.authInfo&&this.federatedServers[r]!==void 0)return Promise.resolve({authInfo:i.authInfo});throw new E(`${e} is not federated with any portal and is not explicitly trusted.`,k.NOT_FEDERATED)}}).then(i=>this.token&&this.tokenExpires.getTime()<Date.now()?this.server?this.refreshCredentials().then(()=>({token:this.token,expires:this.tokenExpires})):this.refreshCredentials().then(()=>this.generateTokenForServer(i.authInfo.tokenServicesUrl,r)):this.generateTokenForServer(i.authInfo.tokenServicesUrl,r)).then(i=>(this.federatedServers[r]=i,delete this._pendingTokenRequests[r],i.token))),this._pendingTokenRequests[r])}generateTokenForServer(e,t){return f(e,{params:{token:this.token,serverUrl:t,expiration:this.tokenDuration}}).then(r=>({token:r.token,expires:new Date(r.expires-1e3*60*5)})).catch(r=>{throw new E(r.message,k.GENERATE_TOKEN_FOR_SERVER_FAILED,r.response,r.url,r.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:$};return(this.server?f(`${this.getServerRootUrl(this.server)}/rest/info`).then(r=>f(r.authInfo.tokenServicesUrl,Object.assign({params:t},e))):f(`${this.portal}/generateToken`,Object.assign({params:t},e))).then(r=>(this.updateToken(r.token,new Date(r.expires)),this)).catch(r=>{throw new E(r.message,k.TOKEN_REFRESH_FAILED,r.response,r.url,r.options)})}refreshWithRefreshToken(e){if(this.refreshToken&&this.refreshTokenExpires&&this.refreshTokenExpires.getTime()-864e5<Date.now())return this.exchangeRefreshToken(e);let r=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,grant_type:"refresh_token"}},e);return I(`${this.portal}/oauth2/token`,r).then(n=>this.updateToken(n.token,n.expires)).catch(n=>{throw new E(n.message,k.TOKEN_REFRESH_FAILED,n.response,n.url,n.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 I(`${this.portal}/oauth2/token`,t).then(r=>(this._token=r.token,this._tokenExpires=r.expires,this._refreshToken=r.refreshToken,this._refreshTokenExpires=r.refreshTokenExpires,this)).catch(r=>{throw new E(r.message,k.REFRESH_TOKEN_EXCHANGE_FAILED,r.response,r.url,r.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))}};export{H as a};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as H,b as M}from"./5AY5O6NA.js";import{a as z}from"./LAPB4R6P.js";import{a as V}from"./7IGM7SZV.js";import{a as O,b as U}from"./BNGN57J7.js";import{a as N}from"./XKBY6EJC.js";import{a as v,b as D,c as W}from"./73VGDY64.js";import{a as K}from"./QYQIPUGM.js";import{a as A}from"./OT6SCCRW.js";import{a as q}from"./FR67HD5Q.js";import{e as L}from"./H6RS3MWN.js";import{j}from"./SRE3UGET.js";import{a as I}from"./VQXRDNZT.js";import{b as $}from"./JKK5LJAI.js";import{g as b,x as C}from"./SEXTYSOH.js";import{e as F}from"./PJNURHKH.js";import{a as P}from"./HZZPNHJD.js";import{a as l}from"./32UA342W.js";import{f as S}from"./TZXHHOXC.js";import{b as G}from"./D3BILNAQ.js";import{a as f}from"./EKJB7MLI.js";import{b as E}from"./N6YCTEBM.js";import{g as T}from"./76VGL2OG.js";import{h as R}from"./UWUNHI7L.js";import{c as x}from"./GY557TE4.js";import{a as w}from"./O24TJJIA.js";import{a as y,g as k,j as _}from"./ITUDVJWT.js";async function ee(i,e,t,s,r,a=""){try{if(!(await v(Object.assign({id:i,owner:e,resource:t,name:s,prefix:a},r))).success)throw new l("Set Item Featured Image","Unknown error setting featured image.");let c=f(r.portal);return a&&(a=`${a}/`),`${c}/content/items/${i}/resources/${a}${s}`}catch(n){throw n instanceof Error?new l("Set Item Featured Image",n.message,n):new l("Set Item Featured Image","Unknown error setting featured image.")}}async function te(i,e,t){let{portal:s}=t,r=`${s}/content/users/${e}/items/${i}/deleteThumbnail`;return R(r,t)}async function se(i,e,t,s,r){let a=Object.assign({item:{id:i},owner:r,params:{thumbnail:e,fileName:t},filename:t},s);try{if(!(await F(a)).success)throw new l("Set Project Thumbnail","Unknown error setting thumbnail.")}catch(n){throw n instanceof Error?new l("Set Project Thumbnail",n.message,n):new l("Set Project Thumbnail","Unknown error setting thumbnail.")}}var B="featuredImage.png",J=class{constructor(e,t){this.isDestroyed=!1,this.thumbnailCache=null,this.context=t,this.entity=e}checkPermission(e){return x(e,this.context,this.entity)}getPermissionPolicies(e){return(this.entity.permissions||[]).filter(s=>s.permission===e)}addPermissionPolicy(e){this.entity.permissions=H(this.entity.permissions,e)}removePermissionPolicy(e,t){this.entity.permissions=M(this.entity.permissions,e,t)}get id(){return this.entity.id}get owner(){return this.entity.owner}toJson(){if(this.isDestroyed)throw new Error("Entity is already destroyed.");return y(this.entity)}get canEdit(){return this.entity.canEdit}get canDelete(){return this.entity.canDelete}get orgId(){return this.entity.orgId}async shareWithGroup(e){if(!this.context.currentUser)throw new l("Share Item With Group","Cannot share item with group when no user is logged in.");await U(this.entity.id,[e],this.context.requestOptions,this.entity.owner)}async shareWithGroups(e){await U(this.entity.id,e,this.context.requestOptions,this.entity.owner)}async unshareWithGroup(e){await O(this.entity.id,[e],this.context.requestOptions,this.entity.owner)}async unshareWithGroups(e){await O(this.entity.id,e,this.context.requestOptions,this.entity.owner)}async setAccess(e){await N({id:this.entity.id,access:e,owner:this.entity.owner,authentication:this.context.session}),this.entity.access=e}async getFollowersGroup(){let e;try{this.entity.followersGroupId&&(e=await P(this.entity.followersGroupId,this.context.userRequestOptions))}catch{e=null}return e}async setFollowersGroupAccess(e){await I({group:{id:this.entity.followersGroupId,access:e},authentication:this.context.session})}async setFollowersGroupIsDiscussable(e){let t=await this.getFollowersGroup(),s=b(t.typeKeywords,e);await I({group:{id:t.id,typeKeywords:s},authentication:this.context.session})}async sharedWith(){return V(this.entity.id,this.context.requestOptions)}async afterSave(){this.thumbnailCache&&(this.thumbnailCache.clear?(await te(this.entity.id,this.entity.owner,this.context.userRequestOptions),this.thumbnailCache=null,this.entity.thumbnail=null,this.entity.thumbnailUrl=null):(await se(this.entity.id,this.thumbnailCache.file,this.thumbnailCache.filename,this.context.userRequestOptions,this.entity.owner),this.entity.thumbnail=`thumbnail/${this.thumbnailCache.filename}`,this.entity.thumbnailUrl=this.getThumbnailUrl(),this.thumbnailCache=null))}setThumbnail(e,t){this.thumbnailCache={file:e,filename:t}}clearThumbnail(){this.thumbnailCache={clear:!0}}getThumbnailUrl(e=200){let t={id:this.entity.id,access:this.entity.access,thumbnail:this.entity.thumbnail},s={token:this.context.session.token,width:e};return G(t,this.context.requestOptions,s)}async setFeaturedImage(e,t=!1){var s;try{(!((s=this.entity.view)===null||s===void 0)&&s.featuredImageUrl||t)&&await this.clearFeaturedImage();let r=await ee(this.entity.id,this.entity.owner,e,B,this.context.userRequestOptions);this.entity.view=Object.assign(Object.assign({},this.entity.view),{featuredImageUrl:r}),await this.save()}catch(r){if(r instanceof Error&&r.message==="CONT_00942: Resource already present")return this.setFeaturedImage(e,!0);throw r}}async clearFeaturedImage(){try{let e=await $(Object.assign({id:this.entity.id,owner:this.entity.owner,resource:B},this.context.userRequestOptions));if(e&&!e.success)throw new l("Clear Item Featured Image","Unknown error clearing featured image.");this.entity.view.featuredImageUrl=null,await this.save()}catch(e){throw e instanceof Error?new l("Clear Item Featured Image",e.message,e):new l("Clear Item Featured Image","Unknown error clearing featured image.")}}updateIsDiscussable(e){let t=b(this.entity.typeKeywords,e);this.update({typeKeywords:t,isDiscussable:e})}},ie=async(i,e,t)=>{var s;let r=(s=e.groupId)===null||s===void 0?void 0:s[0];if(e.type==="newGroup"){let a=Object.assign(Object.assign({},q("hubViewGroup",t)),{name:`${i.name} Content`}),n=await j(a,t);await t.refreshUser(),r=n.id}return{schemaVersion:C,scopes:{item:{targetEntity:"item",filters:[{predicates:[{group:[r]}]}]},event:{targetEntity:"event",filters:[{predicates:[{group:[r]}]}]}},collections:[]}};function re(i,e,t){let s=y(i),r=e.id,a=w(s,"metrics",[]),n=a.findIndex(h=>h.id===r),c=w(s,"view.metricDisplays",[]),u=c.findIndex(h=>h.metricId===r);return n>-1?a[n]=e:a.push(e),u>-1?c[u]=t:c.push(t),s.view.metricDisplays=c,s.metrics=a,s}async function Q(i,e,t,s=""){return T(i,t).then(r=>{let a=s?`${s}/${e}`:e;return!!r.resources.find(c=>c.resource===a)})}async function ae(i,e,t,s,r,a=""){try{let n=s.split(".").pop(),u=await Q(i,s,r,a)?E:v,h=t;if(n==="json"&&(h=K(t)),n==="txt"&&(h=D(t)),!(await u(Object.assign({id:i,owner:e,resource:h,name:s,prefix:a},r))).success)throw new l("Add Item Resource",`Error adding resource ${s} to item ${i}.`);let p=f(r.portal),d=a?`${a}/`:"";return`${p}/content/items/${i}/resources/${d}${s}`}catch(n){throw n instanceof Error?new l("Add Item Resource",n.message,n):new l("Add Item Resource",`Error adding resource ${s} to item ${i}.`)}}function Y(i,e){let s=A("/ember-arcgis-opendata-components/assets/images/placeholders/southatlantic_coastline.jpg",e.userRequestOptions),r={sections:[{containment:"fixed",isFooter:!1,style:{background:{isFile:!1,isUrl:!0,state:"valid",display:{},transparency:50,position:{x:"center",y:"center"},color:"#000000",image:s},color:"#ffffff",rowLayout:"box"},rows:[{cards:[{component:{name:"spacer-card",settings:{height:"80",cardId:"c0iaseq5x"}},settings:{height:100},width:12}]},{cards:[{component:{name:"markdown-card",settings:{cardId:"crn7a02t5",schemaVersion:2.1,markdown:'<div class="banner-heading">Hero section</div>'}},width:12}]},{cards:[{component:{name:"markdown-card",settings:{cardId:"c1cihdl00",schemaVersion:2.1,markdown:"<p>This hero section is a row with image, banner text, and spacers. Edit layout to customize the hero. </p>"}},width:12}]},{cards:[{component:{name:"spacer-card",settings:{height:"80",cardId:"cqw42xb1u"}},settings:{height:100},width:12}]}],visibility:{access:"default",groups:[]}},{containment:"fixed",isFooter:!1,style:{background:{isFile:!1,isUrl:!0,state:"",display:{},transparency:0,position:{x:"center",y:"center"},color:"transparent"},rowLayout:"box"},rows:[{cards:[{component:{name:"spacer-card",settings:{height:"30",cardId:"c1vrfsun0"}},settings:{height:100},width:12}]},{cards:[{component:{name:"markdown-card",settings:{cardId:"cmq3l0yfj",schemaVersion:2.1,markdown:'<h1 style="text-align: center;">Section</h1><p style="text-align: center;">Edit layout to customize this section and configure page elements. <a href="https://doc.arcgis.com/en/hub/sites/site-editing-basics.htm" target="_blank" style="font-family: var(--fontsBaseFamily), Avenir Next; background-color: rgb(255, 255, 255);">Learn more ></a></p>'}},width:12}]},{cards:[{component:{name:"spacer-card",settings:{height:100,cardId:"c619c27ix"}},settings:{height:100},width:12}]}],visibility:{access:"default",groups:[]}}],header:{component:{name:"site-header",settings:{fullWidth:!1,title:"Your Site Name",headerType:"default",menuLinks:[],schemaVersion:3,showTitle:!0,socialLinks:{facebook:{},instagram:{},twitter:{},youtube:{}},shortTitle:"Site"}}},footer:{component:{name:"site-footer",settings:{footerType:"custom",markdown:`<div class="footer-background">
|
|
3
|
+
<div class="container-fluid">
|
|
4
|
+
<div class="col-xs-12">
|
|
5
|
+
<img src="https://via.placeholder.com/50" alt="" class="center-block logo">
|
|
6
|
+
</div>
|
|
7
|
+
<div class="col-xs-6 center-block">
|
|
8
|
+
<ul class="nav nav-pills">
|
|
9
|
+
<li><a href="">URL</a></li>
|
|
10
|
+
<li><a href="">URL</a></li>
|
|
11
|
+
<li><a href="">URL</a></li>
|
|
12
|
+
<li><a href="">URL</a></li>
|
|
13
|
+
</ul>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="col-xs-6 center-block">
|
|
16
|
+
<ul class="nav nav-pills" style="float:right;">
|
|
17
|
+
<li><a href="">URL</a></li>
|
|
18
|
+
<li><a href="">URL</a></li>
|
|
19
|
+
</ul>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>`,schemaVersion:2.1}}}},a={sections:[],header:{component:{name:"site-header",settings:{fullWidth:!1,title:"",headerType:"default",menuLinks:[],schemaVersion:3,showTitle:!0}}},footer:void 0};switch(i){case"simpleSiteOrPageLayout":return Promise.resolve(r);case"blankSiteOrPageLayout":return Promise.resolve(a);default:return Promise.resolve(a)}}var Ge=async(i,e)=>{var t,s,r;let a,n,c=i._thumbnail,u=i._catalogSetup,h=i._layoutSetup,m=i._metric,p=i._slug,d=(t=i.view)===null||t===void 0?void 0:t.featuredImage;delete i._groups,delete i._thumbnail,(s=i.view)===null||s===void 0||delete s.featuredImage,delete i._layoutSetup,delete i._metric,delete i._catalogSetup,delete i._slug;let o=y(i);if(o.orgUrlKey=i.orgUrlKey?i.orgUrlKey:e.portal.urlKey||"",o.orgUrlKey=o.orgUrlKey.toLowerCase(),o.extent=(r=i.location)===null||r===void 0?void 0:r.extent,p?o.slug=S(p,o.orgUrlKey):o.slug="",c&&(c.blob?n={file:c.blob,filename:c.fileName,clear:!1}:n={clear:!0}),d){let g=null;d.blob?g=await ae(o.id,o.owner,d.blob,"featuredImage.png",e.userRequestOptions):await Q(o.id,"featuredImage.png",e.userRequestOptions)&&await W(o.id,"featuredImage.png",o.owner,e.userRequestOptions),o.view=Object.assign(Object.assign({},o.view),{featuredImageUrl:g})}if((u?.type==="newGroup"||u?.type==="existingGroup"&&u.groupId)&&(o.catalog=await ie(o,u,e),a=L.fromJson(o.catalog,e)),m&&Object.keys(m).length){let g=m.metricId||k(_(`${m.cardTitle}_`)),{metric:X,displayConfig:Z}=z(m,g,{metricName:m.cardTitle});o=re(o,X,Z)}return h&&(h.layout==="simple"?o.layout=await Y("simpleSiteOrPageLayout",e):o.layout=await Y("blankSiteOrPageLayout",e)),Object.assign(Object.assign({entity:o},n&&{thumbnailCache:n}),a&&{_catalog:a})};export{ee as a,te as b,se as c,J as d,Q as e,ae as f,Ge as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
function o(n,t,e=String){if(!t)return[];let s=[];if(typeof t!="object")return typeof t=="boolean"?[n]:[`${n}-${e(t)}`];for(let[i,u]of Object.entries(t))if(u!==void 0){let f=i==="xs"?"":`-${i}`;s.push(`${n}${f}-${e(u)}`)}return s}function l(n){let t=n.sectionProps??{},e=n.classes??[],s=[];return t.noGutters&&s.push("no-gutters"),t.fullWidthAt?s.push(t.fullWidthAt==="xs"?"section":`section-${t.fullWidthAt}`):s.push("section"),[...s,...e]}function c(n){let t=n.rowProps??{},e=n.classes??[],s=[];return t.alignItems&&s.push(...o("align-items",t.alignItems)),[...s,...e]}function r(n){return n?o("col",n):["col"]}function h(n){let t=n.columnProps??{},e=n.classes??[],s=[];return s.push(...r(t.width)),t.offset&&s.push(...o("offset",t.offset)),t.alignSelf&&s.push(...o("align-self",t.alignSelf)),t.alignItems&&s.push(...o("align-items",t.alignItems)),t.justifyContent&&s.push(...o("justify-content",t.justifyContent)),t.shrink&&s.push(...o("shrink",t.shrink)),[...s,...e]}export{l as a,c as b,h as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as c}from"./UXXI3SQO.js";import"./PVJYYXFI.js";import{a as p}from"./5BFO4SMC.js";import"./LT5EGN2B.js";import"./VTCPJ62B.js";import a from"./DB7GEQTR.js";import{c as f}from"./K5HZ2G74.js";import"./MA4PQFDN.js";import"./GMWP6LCV.js";import"./GY557TE4.js";import{a as m}from"./O24TJJIA.js";import"./ZZBJZPDW.js";import"./5VOM4C4C.js";import"./564WTIUK.js";import"./ITUDVJWT.js";import"./K6AMDRTV.js";import"./RUVOYVVB.js";import{b as l,c as b,d as y,i as d}from"./CHENEYUV.js";import"./AT75BQVI.js";export default $arcgis.t(([{c:g}])=>{var w=".sc-arcgis-hub-user-content-pane-h{display:block;height:100%}",k=w,h=function(e,t,i,s){var n=arguments.length,a=n<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,i):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,i,s);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(a=(n<3?o(a):n>3?o(t,i,a):o(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},u=class{constructor(e){d(this,e),this.resultCallback=(t,i,s,n)=>{if(m(n,"itemControl",null)==="admin"){let C=f(n,this._context);t.actionLinks=[{tooltip:this.intl.t("actionLinks.manage"),label:this.intl.t("actionLinks.manage"),ariaLabel:this.intl.t("actionLinks.ariaManage",{title:t.title}),href:C,showLabel:!0,icon:"gear",buttonStyle:"outline",buttonKind:"neutral"}]}let r=[{label:this.intl.t("type"),value:n.type},{label:this.intl.t("owner"),value:n.owner},{label:this.intl.t("updated"),value:this.intl.formatDate(n.updatedDate)}];return t.additionalInfo=r,t},this.isMobile=!1,this._context=g()}get currentUser(){return this._context.currentUser}get baseQuery(){return{targetEntity:"item",filters:[{predicates:[]}]}}async componentWillLoad(){this.intl=await p.loadIntlForComponent(this.element),this.initGalleryState()}initGalleryState(){let e=new URLSearchParams(globalThis.location.search).get("type");e&&(this.galleryState={type:e})}get accessFacet(){let e=this._context.isPortal,t=!!this._context.communityOrgId,i=[{label:this.intl.t("facets.content.myContent"),key:"mine",selected:!0,predicates:[{owner:this.currentUser.username}]},{label:this.intl.t("facets.content.myOrganizationContent"),key:"organization",selected:!1,predicates:[{orgid:this._context.currentUser.orgId}]}];return!e&&t&&i.push({label:this.intl.t("facets.content.myCommunityOrganizationContent"),key:"community",selected:!1,predicates:[{orgid:this._context.communityOrgId}]}),e||i.push({label:this.intl.t("facets.content.all"),key:"all",selected:!1,predicates:[]}),{label:this.intl.t("facets.content.label"),key:"access",display:"single-select",operation:"OR",options:i}}get facets(){return[this.accessFacet,"modified","type","tags","categories"]}render(){return l(b,{key:"11219441b77c422f72d43f32b133f431fbdb51e3","data-element":"user-content"},l("arcgis-hub-workspace-pane",{key:"8b1a931b940235b6b08a57970a444a4acc3ba1e0",isMobile:this.isMobile,"sticky-footer":!0},l("h2",{key:"fd474735ccde34b131f02b32c19ee8d1e00f4344",slot:"title"},this.intl.t("content")),l("arcgis-hub-gallery",{key:"f876a0aba91496f5370c1a018074a4f2153b6069",callback:this.resultCallback,facets:this.facets,include:"item.itemControl",layout:"compact",layoutOptions:["compact","grid","list","map"],limit:30,linkTarget:"siteRelative",mobileView:this.isMobile,query:this.baseQuery,showChips:!0,showFacets:!0,showLayoutSwitcher:!0,showMoreResultsBtn:!0,showResultsCount:!0,showSearch:!0,showSort:!0,showThumbnail:!0,sortField:"modified",sortOrder:"desc",state:this.galleryState})))}static get assetsDirs(){return["locales"]}get element(){return y(this)}};h([c()],u.prototype,"baseQuery",null);h([c()],u.prototype,"accessFacet",null);h([c()],u.prototype,"facets",null);u.style=k;return u},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/0.38/LICENSE.txt */
|
|
2
|
+
import{a as x,b as T}from"./XRGUZJA3.js";import{a as O}from"./L6KTWLZO.js";import{a as I}from"./BREHLWWL.js";import{d as E,g as k,l as g}from"./D3R4UBO6.js";import{a as f}from"./TVV2X45U.js";import{a as P}from"./QLXCZ3NE.js";import{a as A}from"./F67HAQPI.js";import{a as d}from"./ADYIOWEG.js";import{a as v}from"./QHE543NP.js";import{h as p}from"./UWUNHI7L.js";import{a as _}from"./O24TJJIA.js";import{a as u,h as l}from"./ITUDVJWT.js";import{a as h}from"./K6AMDRTV.js";import{a as m}from"./RUVOYVVB.js";function C(i,t,s="https://www.arcgis.com/sharing/rest"){let e=`${s}/oauth2/exchangeToken`;return p(e,{method:"POST",params:{f:"json",client_id:t,token:i}}).then(n=>n.token)}function U(i){let t;return/(qaext|\.mapsqa)\.arcgis.com/.exec(i)?t="https://hubqa.arcgis.com":/(devext|\.mapsdevext)\.arcgis.com/.exec(i)?t="https://hubdev.arcgis.com":/(www|\.maps)\.arcgis.com/.exec(i)&&(t="https://hub.arcgis.com"),t}function H(i,t,s,e){let n=`${e.authentication.portal}/portals/${i}/limits?limitsType=${t}&limitName=${s}&f=json`;return p(n,e)}function ut(i,t){return H(i,"Groups","MaxNumUserGroups",t).then(s=>s.limitValue).catch(s=>512)}function F(i){return!i||typeof i!="string"||!i.startsWith("https://")?!1:!/^https?:\/\/([^.]+\.)*arcgis\.com(\/|$)/i.test(i)}var w=["portalUrl","serviceStatus","featureFlags","properties","resourceConfigs","trustedOrgIds","trustedOrgs","portalSettings","portal"],R=["resourceTokens","currentUser"],y=class i{constructor(t){this._portalUrl="https://www.arcgis.com",this._properties={},this._featureFlags={},this._trustedOrgIds=[],this._trustedOrgs=[],this._resourceConfigs=[],this._userResourceTokens=[],this.id=new Date().getTime(),m.debug(`ArcGISContextManager:ctor: Creating ${this.id}`),t.properties&&(this._properties=t.properties),this._properties.alphaOrgs||(this._properties.alphaOrgs=[...W]),t.authentication?(this._authentication=t.authentication,this._portalUrl=this._authentication.portal.replace("/sharing/rest",""),this._hubUrl=U(this._portalUrl)):t.portalUrl?(this._portalUrl=t.portalUrl,this._hubUrl=U(this._portalUrl)):this._hubUrl=U(this._portalUrl),t.portal&&(this._portal=u(t.portal)),t.portalSettings&&(this._portalSettings=u(t.portalSettings)),t.currentUser&&(this._currentUser=u(t.currentUser)),t.serviceStatus&&(this._serviceStatus=t.serviceStatus),t.featureFlags&&(this._featureFlags=u(t.featureFlags)),t.serviceFlags&&(this._serviceFlags=u(t.serviceFlags)),t.trustedOrgIds&&(this._trustedOrgIds=u(t.trustedOrgIds)),t.trustedOrgs&&(this._trustedOrgs=u(t.trustedOrgs)),t.resourceConfigs&&(this._resourceConfigs=u(t.resourceConfigs)),t.resourceTokens&&(this._userResourceTokens=u(t.resourceTokens)),t.userHubSettings&&(this._userHubSettings=u(t.userHubSettings))}static async create(t={}){let s=new i(t);return await s.initialize(),s}static async deserialize(t){let s=T(t),e=JSON.parse(s),r={};if(w.forEach(n=>{r=l(n,h(e,n),r)}),e.session){let n=I.deserialize(e.session);n.tokenExpires.getTime()>Date.now()&&(R.forEach(a=>{r=l(a,h(e,a),r)}),r.authentication=n)}return i.create(r)}serialize(){let t={};return w.forEach(s=>{t=l(s,h(this,`_${s}`),t)}),this._authentication&&(t.session=this._authentication.serialize(),R.forEach(s=>{t=l(s,h(this,`_${s}`),t)})),x(JSON.stringify(t))}async setAuthentication(t){this._authentication=t,this._portalUrl=t.portal.replace("/sharing/rest",""),await this.initialize()}setProperties(t){this._properties=t,this._context=new g(this.contextOpts)}async clearAuthentication(){this._context.isPortal||(this._portalUrl=A(this._portalUrl)),this._authentication=null,this._currentUser=null,this._userResourceTokens=[];let t=f(d,null);this._portal=await t({portal:`${this._portalUrl}/sharing/rest`});let s=f(O,{});this._portalSettings=await s("self",{portal:`${this._portalUrl}/sharing/rest`}),this._context=new g(this.contextOpts)}get context(){return this._context}async updateUserHubSettings(t){if(!this._authentication)throw new Error("Cannot update user hub settings without an authenticated user");await k(t,this.context,!0),this._userHubSettings=t,Object.keys(_(t,"features",{})).forEach(s=>{let e=h(t,`features.${s}`);this._featureFlags[`hub:feature:${s}`]=e}),this._context=new g(this.contextOpts)}async initialize(){var t;let s=[],e=[];if(this._serviceStatus||(s.push(L(this._portalUrl)),e.push("serviceStatus")),(!this._portal||!this._portal.id&&this._authentication)&&(this._authentication?s.push(z(this._authentication)):s.push(d({portal:`${this._portalUrl}/sharing/rest`})),e.push("portal")),!this._portalSettings||!(!((t=this._portal)===null||t===void 0)&&t.id)&&this._authentication){let a=f(O,{});this._authentication?s.push(a("self",{authentication:this._authentication})):s.push(a("self",{portal:`${this._portalUrl}/sharing/rest`})),e.push("portalSettings")}if(this._authentication){let a=await this._authentication.getToken(this._authentication.portal);if(this._portal&&!this._portal.limits&&(s.push($(this._portal.id,this._authentication)),e.push("portalLimits")),!this._currentUser){let o=this._authentication.username;s.push(v({username:o,authentication:this._authentication})),e.push("user")}this._trustedOrgs.length||(s.push(G(this._portalUrl,this._authentication)),e.push("trustedOrgs")),!this._userResourceTokens.length&&this._resourceConfigs.length&&(s.push(M(this._resourceConfigs,a,this._portalUrl+"/sharing/rest")),e.push("tokens")),this._userResourceTokens.push({app:"self",token:a,clientId:this._authentication.clientId||"self"})}let r;try{r=await Promise.all(s)}catch(a){let o="ArcGISContextManager failed while initializing.";throw this._authentication&&(o=`ArcGISContextManager failed while initializing for "${this._authentication.username}" using ${this._authentication.portal}.`),m.error(o),console.error(o),P("message",o+" "+_(a,"message",""),a),a}e.forEach((a,o)=>{let c=r[o];switch(a){case"portal":this._portal=c;break;case"portalSettings":this._portalSettings=c;break;case"portalLimits":this._portal.limits=c;break;case"user":this._currentUser=c;break;case"trustedOrgs":this._trustedOrgs=c,this._trustedOrgIds=j(this._trustedOrgs);break;case"tokens":this._userResourceTokens=[...this._userResourceTokens,...c];break;case"serviceStatus":let S=c;this._serviceFlags&&Object.keys(this._serviceFlags).forEach(b=>{S[b]&&(S[b]=this._serviceFlags[b])}),this._serviceStatus=S;break}});let n=this._userResourceTokens.find(a=>a.app==="hubforarcgis");this._authentication&&n&&(this._userHubSettings=await E(this._authentication.username,this._portalUrl,n.token),Object.keys(_(this._userHubSettings,"features",{})).forEach(a=>{let o=h(this._userHubSettings,`features.${a}`);this._featureFlags[`hub:feature:${a}`]=o})),m.debug(`ArcGISContextManager-${this.id}: updating context`),this._context=new g(this.contextOpts)}get contextOpts(){let t=["hubUrl",...w],s=["currentUser","userResourceTokens","userHubSettings"],e={id:this.id,portalUrl:this._portalUrl};return t.forEach(r=>{e=l(r,h(this,`_${r}`),e)}),this._authentication&&(s.forEach(r=>{e=l(r,h(this,`_${r}`),e)}),e.authentication=this._authentication),e.portalSelf=this._portal,e}};async function L(i){let t=N;return F(i)&&(t=V),Promise.resolve(t)}async function G(i,t){return(await f(p,{trustedOrgs:[]})(`${i}/sharing/rest/portals/self/trustedOrgs?f=json`,{params:{token:t.token}})).trustedOrgs}function j(i){return i.map(t=>t.to.orgId)}async function z(i){let t=await d({authentication:i}),s=await $(t.id,i);return t.limits=s,t}async function $(i,t){let s=[{type:"Groups",name:"MaxNumUserGroups",fallback:512}];return(await Promise.all(s.map(async r=>{try{return await H(i,r.type,r.name,{authentication:t,portal:t.portal})}catch{return{type:r.type,name:r.name,limitValue:r.fallback}}}))).reduce((r,n)=>(r[n.name]=n.limitValue,r),{})}async function M(i,t,s){let e=f(C,null),r=i.map(a=>e(t,a.clientId,s).then(o=>{if(o)return Object.assign(Object.assign({},a),{token:o})}));return(await Promise.all(r)).filter(a=>!!a)}var N={portal:"online",discussions:"online",events:"online",metrics:"online",notifications:"online","hub-search":"online",domains:"online","hub-downloads":"online","hub-ai-assistant":"online"},V={portal:"online",discussions:"not-available",events:"not-available",metrics:"not-available",notifications:"not-available","hub-search":"not-available",domains:"not-available","hub-downloads":"not-available","hub-ai-assistant":"not-available"},B=["LjjARY1mkhxulWPq","q2ikdtW0bkt5EgtQ","yHYVvboBBOdmcKci"],q=["97KLIFOSt5CxbiRI","MiFBHFxEZWumnKCx","8HRYeOqprj872mxP","Xj56SBi2udA78cC9","uFEMdY4VMonzH8sG"],D=["CrA5hYOKgL3Vwan8","zj227gjeSqEyG4HF","bkrWlSKcjUDFDtgw","vIu5NCxQFilhVymO"],W=[...D,...q,...B];export{U as a,H as b,ut as c,F as d,y as e,N as f,V as g,W as h};
|