@esri/solutions-components 1.0.0 → 1.0.2
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/2DREXAAI.js +20 -0
- package/dist/cdn/2HCC42DE.js +4 -0
- package/dist/cdn/{XDTSRIUV.js → 2KQCEICX.js} +4 -4
- package/dist/cdn/2N4CQXHT.js +4 -0
- package/dist/cdn/{PFD6TBZM.js → 2RQJQWZN.js} +2 -2
- package/dist/cdn/{JYTMSQVX.js → 2TV52QIG.js} +2 -2
- package/dist/cdn/{BM7MU2L4.js → 2WXZBSU3.js} +2 -2
- package/dist/cdn/{ZRPPJQRE.js → 34FKJAYZ.js} +2 -2
- package/dist/cdn/{2VDJE4V4.js → 34K3UEZZ.js} +2 -2
- package/dist/cdn/{RM3ZEQXS.js → 3BCY5VBO.js} +2 -2
- package/dist/cdn/{7XRIDSQA.js → 3J3GWPGS.js} +2 -2
- package/dist/cdn/{7V252QBT.js → 3L5CUNW3.js} +2 -2
- package/dist/cdn/{S2NGFTAF.js → 3OPTGOTN.js} +2 -2
- package/dist/cdn/{G4UJUDJT.js → 3QXMAC7L.js} +2 -2
- package/dist/cdn/{5YSFQ4E3.js → 3UIKDYVX.js} +1 -1
- package/dist/cdn/{L72F3CMH.js → 3UITRYPY.js} +1 -1
- package/dist/cdn/{5C2W5W6U.js → 3VJVSHZ3.js} +2 -2
- package/dist/cdn/{CLZ76DFI.js → 3XT4LMZL.js} +1 -1
- package/dist/cdn/{IKVFAXUB.js → 427VOQVY.js} +2 -2
- package/dist/cdn/{YXHUA4CI.js → 42CBSGWQ.js} +2 -2
- package/dist/cdn/{ZPNUYCYC.js → 45JENHBT.js} +2 -2
- package/dist/cdn/{X4I3726V.js → 4B47MLZ4.js} +2 -2
- package/dist/cdn/{65FSH56H.js → 4CA5Q4HU.js} +2 -2
- package/dist/cdn/4UFLKP6T.js +4 -0
- package/dist/cdn/{PE2TLSRM.js → 4V6HHPEY.js} +2 -2
- package/dist/cdn/{T7T6X6O5.js → 53U2O7QU.js} +2 -2
- package/dist/cdn/{HG3L3JDR.js → 57ICJINS.js} +2 -2
- package/dist/cdn/{4RVVEL4U.js → 5BS5RPN3.js} +2 -2
- package/dist/cdn/5D4L7E7B.js +4 -0
- package/dist/cdn/5IMGOBVR.js +8 -0
- package/dist/cdn/{6NDD2A2S.js → 5PEEQTOJ.js} +2 -2
- package/dist/cdn/{CXK3KS6W.js → 5Q6ZKF23.js} +1 -1
- package/dist/cdn/{ORH5XZIQ.js → 5UIQ5XPI.js} +1 -1
- package/dist/cdn/{VUHPVY6F.js → 5X2CUO2G.js} +2 -2
- package/dist/cdn/{SGGYFQLR.js → 623OCGUZ.js} +2 -2
- package/dist/cdn/{MAFJTGI7.js → 627BP4CQ.js} +2 -2
- package/dist/cdn/{D55TK32T.js → 6CHYPF6P.js} +2 -2
- package/dist/cdn/6FBUKPW2.js +4 -0
- package/dist/cdn/6OFBEWUU.js +4 -0
- package/dist/cdn/{FSQJF7E4.js → 6OP4PP3P.js} +2 -2
- package/dist/cdn/{SFY7JL2D.js → 6RC6X7JL.js} +2 -2
- package/dist/cdn/{ZGA5KQXP.js → 6ULIHKIX.js} +1 -1
- package/dist/cdn/6Y37L4Y2.js +4 -0
- package/dist/cdn/{UUIMWX7O.js → 6YWQEJ3R.js} +2 -2
- package/dist/cdn/{ATNDBD4K.js → 6ZPPQS7Z.js} +2 -2
- package/dist/cdn/{OGLT2FNT.js → 7DSO57VG.js} +2 -2
- package/dist/cdn/A2LA4B77.js +18 -0
- package/dist/cdn/{ZFJUFWKG.js → AGN7ST2V.js} +2 -2
- package/dist/cdn/{GUNSWZAV.js → AGXQF5CB.js} +2 -2
- package/dist/cdn/{562IDXBA.js → AWOD4YMZ.js} +2 -2
- package/dist/cdn/AX3GHSA4.js +4 -0
- package/dist/cdn/{3NF274CX.js → AXNLHEND.js} +2 -2
- package/dist/cdn/{C5B7DSSA.js → AXPTSMNQ.js} +2 -2
- package/dist/cdn/{KSLSMSNN.js → B2AUDLTO.js} +2 -2
- package/dist/cdn/{EHTK6HWZ.js → BBCZTH66.js} +1 -1
- package/dist/cdn/{TNPHUDU5.js → BH7LJ72A.js} +2 -2
- package/dist/cdn/{3EVGRBFY.js → BIVUMER5.js} +1 -1
- package/dist/cdn/BJQ5IZYR.js +4 -0
- package/dist/cdn/{TGHZAXVE.js → BN32H2NI.js} +2 -2
- package/dist/cdn/BP6NB6LJ.js +18 -0
- package/dist/cdn/{XGBQUYNN.js → BPHSFWBE.js} +2 -2
- package/dist/cdn/{7S572CXN.js → BSBALSW3.js} +2 -2
- package/dist/cdn/{VXPBZUD6.js → BTHJLT2K.js} +2 -2
- package/dist/cdn/BVYE77GY.js +4 -0
- package/dist/cdn/BWY46B5P.js +4 -0
- package/dist/cdn/{TSYBPIHM.js → BY7442LE.js} +2 -2
- package/dist/cdn/C5LL6JKL.js +4 -0
- package/dist/cdn/C6RAYAOF.js +18 -0
- package/dist/cdn/C7N6NXZS.js +4 -0
- package/dist/cdn/{CGUIDOP7.js → CBAXU66B.js} +2 -2
- package/dist/cdn/{OGW4H5WS.js → CBU5ZJTL.js} +2 -2
- package/dist/cdn/{YLMMX2OH.js → CDC2AGQU.js} +2 -2
- package/dist/cdn/{WIZLQW7N.js → CH2V66RG.js} +2 -2
- package/dist/cdn/{AABCWF4V.js → CST36BMZ.js} +2 -2
- package/dist/cdn/CU4HDBVA.js +4 -0
- package/dist/cdn/{RFH4QYOD.js → CXHBMY3H.js} +2 -2
- package/dist/cdn/D3MKS27U.js +18 -0
- package/dist/cdn/{NCU6UX4Y.js → DAE4AFWE.js} +2 -2
- package/dist/cdn/{ZUSLGKOQ.js → DDIKF3Y6.js} +2 -2
- package/dist/cdn/{GVD3BPTW.js → DHZBJPEI.js} +2 -2
- package/dist/cdn/{753QAV4W.js → DKB2YHXU.js} +2 -2
- package/dist/cdn/{IXTBS5WJ.js → DMOKBYTT.js} +2 -2
- package/dist/cdn/{RUKTK5PF.js → DNSP25OL.js} +1 -1
- package/dist/cdn/{4LOK3JWB.js → DQCGIKDE.js} +2 -2
- package/dist/cdn/{77US24T3.js → DVKB52PG.js} +2 -2
- package/dist/cdn/{F2T2S2QU.js → E6YH3G2I.js} +1 -1
- package/dist/cdn/E7DQW7XG.js +18 -0
- package/dist/cdn/{DMWC3BFF.js → EIG2RIEW.js} +2 -2
- package/dist/cdn/{A3YY7YT4.js → EJ2ZYQDN.js} +2 -2
- package/dist/cdn/{COE4KJBH.js → EU66V4DL.js} +2 -2
- package/dist/cdn/{WZT6CYOJ.js → EUJJCM4N.js} +2 -2
- package/dist/cdn/{B5KSOIAE.js → EW2G5EHV.js} +2 -2
- package/dist/cdn/{PS7XJL2U.js → EXPP7EHV.js} +2 -2
- package/dist/cdn/{K7A26VQP.js → F3ITEU5L.js} +2 -2
- package/dist/cdn/{RX5LSG2B.js → FGX5VXCN.js} +2 -2
- package/dist/cdn/{FJDXAEGB.js → FQRP6IK4.js} +2 -2
- package/dist/cdn/{EFEMVR7H.js → FYGEDZYU.js} +2 -2
- package/dist/cdn/{KQT4EINQ.js → G2U2FC5M.js} +2 -2
- package/dist/cdn/{Y737Y2JU.js → G4VDYGGB.js} +2 -2
- package/dist/cdn/{7U4V4KQD.js → G57AFF3K.js} +1 -1
- package/dist/cdn/GJYS7J5Y.js +4 -0
- package/dist/cdn/{37FXFNVH.js → GLKAIY7B.js} +2 -2
- package/dist/cdn/{6WGXTLF4.js → GSHJMUOL.js} +2 -2
- package/dist/cdn/{DEQ6UPN5.js → H236KX4X.js} +2 -2
- package/dist/cdn/{375NF2W7.js → H7J6NVIQ.js} +2 -2
- package/dist/cdn/{A534RBYP.js → HE7ELDIR.js} +1 -1
- package/dist/cdn/{BAUJD3CH.js → HISSLYMD.js} +2 -2
- package/dist/cdn/{Y33UFW64.js → HMOPCXOD.js} +2 -2
- package/dist/cdn/{2IP6OT43.js → HVCG3MNH.js} +2 -2
- package/dist/cdn/{UKSUWA3B.js → HX4VINVI.js} +1 -1
- package/dist/cdn/{KTKSUQ5S.js → HY3PBNPE.js} +3 -3
- package/dist/cdn/{CX2QWWHL.js → I2QY6RRM.js} +2 -2
- package/dist/cdn/IARLSMD2.js +4 -0
- package/dist/cdn/IDOBPHGE.js +4 -0
- package/dist/cdn/{TQWK6V5V.js → IGNOSAEB.js} +1 -1
- package/dist/cdn/{4QO4KGLF.js → IJNIOO5S.js} +2 -2
- package/dist/cdn/{TBQ6UDD2.js → IQVXZDV3.js} +2 -2
- package/dist/cdn/{JVW5HI2D.js → ITWRX5NJ.js} +2 -2
- package/dist/cdn/{VXCPN4DG.js → J4QVOH72.js} +2 -2
- package/dist/cdn/J5SSKOUJ.js +18 -0
- package/dist/cdn/{IXJEV6RS.js → J67A6WYJ.js} +2 -2
- package/dist/cdn/{VXZ2B534.js → J6BS2SYI.js} +2 -2
- package/dist/cdn/{FWP6XYXK.js → J6SZZA33.js} +1 -1
- package/dist/cdn/{LDJU7VV4.js → JCJADZGS.js} +2 -2
- package/dist/cdn/JFXEOOWV.js +4 -0
- package/dist/cdn/{GH7MZ4TU.js → JQKAETCU.js} +1 -1
- package/dist/cdn/{7QIEPJRP.js → K3UTGJMU.js} +1 -1
- package/dist/cdn/{JQ7HMAJD.js → KF6SZPRF.js} +2 -2
- package/dist/cdn/KK5EFX35.js +4 -0
- package/dist/cdn/{VKXA2IQW.js → KMK3IXHT.js} +2 -2
- package/dist/cdn/{I4QX6RMP.js → KQ6WZUPW.js} +2 -2
- package/dist/cdn/KYJLH6UV.js +4 -0
- package/dist/cdn/L6MHQFEW.js +4 -0
- package/dist/cdn/LHDC2KUS.js +4 -0
- package/dist/cdn/{YQMCID5Z.js → LMJVHANR.js} +2 -2
- package/dist/cdn/{4OJANGG2.js → LYLGDYC3.js} +2 -2
- package/dist/cdn/{PY55NBB3.js → M4Q44Y7R.js} +2 -2
- package/dist/cdn/{7VTP4EVO.js → M6VJRRQ6.js} +2 -2
- package/dist/cdn/{45CNJSWY.js → MBB3DRUX.js} +2 -2
- package/dist/cdn/{MAVOVPIB.js → MCOVXOZE.js} +2 -2
- package/dist/cdn/{NMZOOVD5.js → MDBE6QB6.js} +2 -2
- package/dist/cdn/{3GL66CHB.js → ME3PJXJC.js} +2 -2
- package/dist/cdn/{UZFCVNKV.js → MEIJQ75E.js} +2 -2
- package/dist/cdn/{7ESWUYD7.js → MFT2YTZE.js} +2 -2
- package/dist/cdn/{WC247XQ6.js → MJ6UHJO5.js} +2 -2
- package/dist/cdn/{VU6ZKOYY.js → MMQ4KQ2B.js} +2 -2
- package/dist/cdn/{4BIK73M6.js → MPH25RN2.js} +2 -2
- package/dist/cdn/{3EO7HXAA.js → MRDF2627.js} +2 -2
- package/dist/cdn/MRHAUAK5.js +4 -0
- package/dist/cdn/{PUKJYYTH.js → MS7LIRHZ.js} +2 -2
- package/dist/cdn/{QZYPXSAV.js → MW46SBLS.js} +2 -2
- package/dist/cdn/{BOHONSFJ.js → MWZRE5PN.js} +2 -2
- package/dist/cdn/{QQBRQOVF.js → MX2NQ664.js} +2 -2
- package/dist/cdn/{HQIAVN67.js → N2SRPBDD.js} +1 -1
- package/dist/cdn/N4BYA7EI.js +4 -0
- package/dist/cdn/{RV5R7U2A.js → N4NNCHK6.js} +2 -2
- package/dist/cdn/N6AFW5X5.js +18 -0
- package/dist/cdn/{PYIX27UL.js → N6WPLWG3.js} +2 -2
- package/dist/cdn/{M2MY5G5H.js → N765GK5M.js} +2 -2
- package/dist/cdn/{PSP2JCLX.js → NDXSJLKV.js} +1 -1
- package/dist/cdn/NF6VWQKC.js +18 -0
- package/dist/cdn/{QEZIPKKL.js → NHKMUTOW.js} +2 -2
- package/dist/cdn/{QPA3WWD5.js → NJBLOY6O.js} +2 -2
- package/dist/cdn/{4DELYGXR.js → NS7LWOIF.js} +1 -1
- package/dist/cdn/{DBQ42J5H.js → NVRFL7NL.js} +2 -2
- package/dist/cdn/NZUFRJWD.js +4 -0
- package/dist/cdn/{X6AY6CXE.js → O7SEZIYA.js} +2 -2
- package/dist/cdn/{VF3OE7WS.js → OGNLV67M.js} +1 -1
- package/dist/cdn/{WVJNLVM2.js → OJUIATLV.js} +2 -2
- package/dist/cdn/OMJT2NGS.js +4 -0
- package/dist/cdn/ORFCQZNQ.js +4 -0
- package/dist/cdn/OSZNMAJF.js +4 -0
- package/dist/cdn/OU5FGKZQ.js +4 -0
- package/dist/cdn/{DC22KAGH.js → OWFH6YUK.js} +2 -2
- package/dist/cdn/OX6RYCMB.js +4 -0
- package/dist/cdn/OXHWMQRP.js +4 -0
- package/dist/cdn/{4P66S2XD.js → P5VXHMBV.js} +2 -2
- package/dist/cdn/{KQRRNLN7.js → P6I2SMSL.js} +2 -2
- package/dist/cdn/{YT3HXHZX.js → PA6X2UX4.js} +2 -2
- package/dist/cdn/{J4JPFH2C.js → PBS5CVH6.js} +2 -2
- package/dist/cdn/{BF4MLXML.js → PJC5OY32.js} +1 -1
- package/dist/cdn/{OKHJNJQ3.js → PK2KYHCB.js} +2 -2
- package/dist/cdn/{RPF35HAJ.js → PQ55EL2N.js} +2 -2
- package/dist/cdn/{TXLKUYV2.js → PT2PN6JX.js} +25 -25
- package/dist/cdn/{PYNMB3I2.js → PWAA6UKX.js} +2 -2
- package/dist/cdn/{LZC5OKYE.js → PZ4I46YP.js} +2 -2
- package/dist/cdn/{W3GM72GU.js → Q2BUQJJY.js} +2 -2
- package/dist/cdn/{GU6ODYX3.js → Q4KUEUUN.js} +2 -2
- package/dist/cdn/{GFKIE25D.js → Q7OC2577.js} +2 -2
- package/dist/cdn/QBKQBYYD.js +4 -0
- package/dist/cdn/{WTQ4CUVN.js → QH7FXF55.js} +2 -2
- package/dist/cdn/QIVGXNMA.js +4 -0
- package/dist/cdn/{XXLQWESJ.js → QKUXZWFL.js} +2 -2
- package/dist/cdn/{BZES2KJM.js → QMCJ7WTH.js} +2 -2
- package/dist/cdn/QNUW3X3Y.js +4 -0
- package/dist/cdn/{C5POLXJA.js → QPQDH5UO.js} +2 -2
- package/dist/cdn/{PLASWOCJ.js → QTN6BMW2.js} +1 -1
- package/dist/cdn/{M3JQHFSU.js → QUB3JPGL.js} +1 -1
- package/dist/cdn/{SRZKPJVK.js → QZWC4VIB.js} +2 -2
- package/dist/cdn/{LKE4PKVZ.js → R2RYAQ6J.js} +2 -2
- package/dist/cdn/{5JQYCQWD.js → R6VHQQOK.js} +1 -1
- package/dist/cdn/RDBY4KOY.js +4 -0
- package/dist/cdn/{IKGNORRI.js → RHC7DNDW.js} +1 -1
- package/dist/cdn/{7C7SXM4M.js → RQNGE4QQ.js} +2 -2
- package/dist/cdn/RQZHVOZW.js +4 -0
- package/dist/cdn/{H4S5Q3QE.js → RSH2UKEC.js} +2 -2
- package/dist/cdn/{2JQ2BEIQ.js → RUMM4LRY.js} +2 -2
- package/dist/cdn/{6C3QGOV2.js → RVQFI2GI.js} +2 -2
- package/dist/cdn/{TKP6ZIYO.js → RZBKYA4H.js} +1 -1
- package/dist/cdn/{2DNLAFAS.js → S5AIQSGG.js} +2 -2
- package/dist/cdn/{6EBCWPAA.js → SB6IKLS3.js} +2 -2
- package/dist/cdn/{AB4XPYGH.js → SEVUDBYU.js} +2 -2
- package/dist/cdn/{YHQYMIPA.js → SEWOHKIX.js} +3 -3
- package/dist/cdn/{KFYEVP5G.js → SFYHUOTM.js} +2 -2
- package/dist/cdn/{DUVNOIA7.js → SLARORK6.js} +2 -2
- package/dist/cdn/SMUXGPZR.js +4 -0
- package/dist/cdn/{WP57L3ZR.js → SPYEGWSA.js} +2 -2
- package/dist/cdn/{WY2YAJV2.js → SZVMRJ24.js} +1 -1
- package/dist/cdn/T4PEWJBT.js +4 -0
- package/dist/cdn/{4AMMMHQL.js → T5ORGPHJ.js} +2 -2
- package/dist/cdn/T757ITK2.js +4 -0
- package/dist/cdn/T7XUVORP.js +4 -0
- package/dist/cdn/{ASHWLSNH.js → TA2KPG6T.js} +2 -2
- package/dist/cdn/TF5NNCNV.js +4 -0
- package/dist/cdn/{LWNLZFMB.js → TGECS5FN.js} +2 -2
- package/dist/cdn/{GK2GYSCW.js → TK6UBBJX.js} +2 -2
- package/dist/cdn/{DZWNJWAP.js → TL4CBL4J.js} +2 -2
- package/dist/cdn/{KAZSBKHX.js → TND7GPH7.js} +1 -1
- package/dist/cdn/{2ETHF7OM.js → TSJWAHST.js} +2 -2
- package/dist/cdn/{QUGE5UIB.js → TYK6M57O.js} +2 -2
- package/dist/cdn/U5EERXBG.js +4 -0
- package/dist/cdn/{PXCWZJ7U.js → UDSTQRSC.js} +2 -2
- package/dist/cdn/UGDEHIGY.js +4 -0
- package/dist/cdn/{2AZTGGQP.js → UGWIFJHW.js} +1 -1
- package/dist/cdn/UHMFK7KR.js +18 -0
- package/dist/cdn/{O5NFMICR.js → UHULYTFL.js} +1 -1
- package/dist/cdn/{GEOD3XEI.js → UJYMNOGA.js} +2 -2
- package/dist/cdn/UPVA5Z5X.js +6 -0
- package/dist/cdn/URAHLQ3P.js +4 -0
- package/dist/cdn/{JSPHL3ZQ.js → UZSGGRRN.js} +2 -2
- package/dist/cdn/{XM4IJDWV.js → V3KV4ZPK.js} +1 -1
- package/dist/cdn/V3STUVBX.js +4 -0
- package/dist/cdn/{AMW6PLM5.js → V72LELKA.js} +2 -2
- package/dist/cdn/{B4IYKBMJ.js → VC3OUF74.js} +2 -2
- package/dist/cdn/{UUUHJN3K.js → VOP3WFWQ.js} +2 -2
- package/dist/cdn/VSEHM5KR.js +4 -0
- package/dist/cdn/{JOYJ7K2X.js → VVZJIYXL.js} +2 -2
- package/dist/cdn/W23X7NWO.js +4 -0
- package/dist/cdn/{F3GQ2KDF.js → W5Q4PI4D.js} +2 -2
- package/dist/cdn/{PCAPJGRX.js → WDJYH74E.js} +2 -2
- package/dist/cdn/{PPVPQPWQ.js → WONNB7ZA.js} +2 -2
- package/dist/cdn/{BMVYNMLV.js → WPQTSQ5W.js} +2 -2
- package/dist/cdn/WQUBINLR.js +4 -0
- package/dist/cdn/{USSUHCJG.js → WS7S5Z7C.js} +2 -2
- package/dist/cdn/{AF27BERT.js → X26TSF65.js} +2 -2
- package/dist/cdn/X7CS7ZS5.js +4 -0
- package/dist/cdn/{OWK6VKPV.js → XF3EBBPG.js} +2 -2
- package/dist/cdn/{RV44MYN7.js → XHXK6QN7.js} +2 -2
- package/dist/cdn/{FDRKGYGJ.js → XINOQA62.js} +1 -1
- package/dist/cdn/{FFU546ZJ.js → XL6DAOQU.js} +2 -2
- package/dist/cdn/XMOLE7SD.js +4 -0
- package/dist/cdn/{OZVC6WF4.js → XNRASUFU.js} +2 -2
- package/dist/cdn/{KVEA5E7H.js → XOZFNKXY.js} +2 -2
- package/dist/cdn/{GQVTZIV3.js → XPTTFHFY.js} +2 -2
- package/dist/cdn/{UNYBJ7BO.js → XWBLDO6F.js} +1 -1
- package/dist/cdn/{KIQPCYN6.js → XYDJHJLZ.js} +1 -1
- package/dist/cdn/{N2SMCNLL.js → XYDZ75MI.js} +2 -2
- package/dist/cdn/{FGCO2ORF.js → Y3DUHGHO.js} +1 -1
- package/dist/cdn/{OIK6EGQ7.js → YEK5YHI4.js} +2 -2
- package/dist/cdn/{K3GLXE2P.js → YFRUN4NK.js} +2 -2
- package/dist/cdn/{QPGA66A2.js → YWLH4TVT.js} +2 -2
- package/dist/cdn/{YWSDRWQN.js → YWS4DWQO.js} +2 -2
- package/dist/cdn/{I6ZE3VUY.js → YX2IMVKL.js} +1 -1
- package/dist/cdn/{6PD2H4JH.js → YX4KF34C.js} +2 -2
- package/dist/cdn/Z2FRFIOF.js +4 -0
- package/dist/cdn/Z3W52BA5.js +4 -0
- package/dist/cdn/ZLEZXMKN.js +18 -0
- package/dist/cdn/{MUWEJYVI.js → ZM76BYQX.js} +2 -2
- package/dist/cdn/{4MI7L2IM.js → ZPQ43SZ3.js} +2 -2
- package/dist/cdn/{YMQZBSVF.js → ZQRUDWGJ.js} +2 -2
- package/dist/cdn/ZRIOHEOT.js +4 -0
- package/dist/cdn/{G457BSKN.js → ZUKAASU2.js} +2 -2
- package/dist/cdn/ZXBKW6YA.js +4 -0
- package/dist/cdn/assets/solution-delete-dialog/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-delete-dialog/t9n/messages.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/common.js +17 -3
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/helpers.js +1 -1
- package/dist/chunks/index.js +2 -2
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/prepareDataForSolutionDisplay.js +57 -0
- package/dist/chunks/privilegeUtils.js +1 -1
- package/dist/chunks/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.d.ts +1 -1
- package/dist/components/feature-list/customElement.js +2 -2
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +13 -10
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +8 -8
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +25 -26
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-dialog/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.d.ts +1 -0
- package/dist/components/solution-delete-dialog/customElement.js +42 -46
- package/dist/components/solution-delete-dialog/index.d.ts +1 -0
- package/dist/components/solution-delete-dialog/index.js +1 -0
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +25 -75
- package/dist/components/solution-deploying-panel/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.d.ts +1 -1
- package/dist/components/solution-details-panel/customElement.js +54 -59
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +2 -2
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.d.ts +24 -0
- package/dist/components/solution-snapshot-gallery/customElement.js +45 -17
- package/dist/components/solution-snapshot-gallery/index.d.ts +4 -0
- package/dist/components/solution-snapshot-gallery/index.js +4 -0
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +19 -15
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +200 -73
- package/dist/docs/docs.json +217 -74
- package/dist/docs/vscode.html-custom-data.json +8 -2
- package/dist/docs/web-types.json +49 -7
- 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/dist/utils/common.d.ts +16 -0
- package/package.json +26 -26
- package/dist/cdn/2V47J56C.js +0 -18
- package/dist/cdn/3O4G5XDF.js +0 -18
- package/dist/cdn/3WWZQYHU.js +0 -18
- package/dist/cdn/4H2V4B6C.js +0 -4
- package/dist/cdn/4RYZ25UY.js +0 -4
- package/dist/cdn/4W4XMW2A.js +0 -4
- package/dist/cdn/5LUSAPPH.js +0 -4
- package/dist/cdn/6JY7QTCS.js +0 -4
- package/dist/cdn/6KPH5V5K.js +0 -4
- package/dist/cdn/7N6NOB6I.js +0 -4
- package/dist/cdn/A5FGCYNW.js +0 -8
- package/dist/cdn/A6RESCXF.js +0 -4
- package/dist/cdn/AH6XEMQ2.js +0 -4
- package/dist/cdn/B7B5O4K4.js +0 -18
- package/dist/cdn/BVSTBYJQ.js +0 -4
- package/dist/cdn/C6BGGFEF.js +0 -4
- package/dist/cdn/CDDGYF3K.js +0 -4
- package/dist/cdn/CUK7OF76.js +0 -4
- package/dist/cdn/DJG2ZUWK.js +0 -4
- package/dist/cdn/DYWRP4H5.js +0 -18
- package/dist/cdn/FVAP4UBB.js +0 -6
- package/dist/cdn/G4CYMD2F.js +0 -4
- package/dist/cdn/HI7D2U25.js +0 -4
- package/dist/cdn/HLGUH3Z5.js +0 -4
- package/dist/cdn/HYWAINS4.js +0 -4
- package/dist/cdn/I3E3JX77.js +0 -4
- package/dist/cdn/IRZGR6FA.js +0 -18
- package/dist/cdn/JKOAF37V.js +0 -18
- package/dist/cdn/JUIF3JFS.js +0 -4
- package/dist/cdn/KNPFBJQA.js +0 -4
- package/dist/cdn/KTI5QE2K.js +0 -4
- package/dist/cdn/KZFFQCTK.js +0 -4
- package/dist/cdn/M5DV4YRX.js +0 -18
- package/dist/cdn/MC2Q2QYK.js +0 -4
- package/dist/cdn/MI54WZOS.js +0 -18
- package/dist/cdn/MTPMC5GM.js +0 -4
- package/dist/cdn/MU4OTO47.js +0 -4
- package/dist/cdn/MW3TOC4O.js +0 -4
- package/dist/cdn/N6EHMAJL.js +0 -4
- package/dist/cdn/NF2EHSNV.js +0 -4
- package/dist/cdn/NKZQ7OVS.js +0 -4
- package/dist/cdn/NP4W7EDK.js +0 -4
- package/dist/cdn/O3JIKJGK.js +0 -4
- package/dist/cdn/OS2XMULM.js +0 -4
- package/dist/cdn/P325FJIH.js +0 -4
- package/dist/cdn/PGXDDG5S.js +0 -4
- package/dist/cdn/PUQGIVUM.js +0 -4
- package/dist/cdn/Q5AWSODM.js +0 -4
- package/dist/cdn/Q7M5LNDV.js +0 -4
- package/dist/cdn/RRC2IGCL.js +0 -4
- package/dist/cdn/SZEHA4OQ.js +0 -4
- package/dist/cdn/T2HT5CMC.js +0 -18
- package/dist/cdn/T6E7HFWP.js +0 -4
- package/dist/cdn/TARGNPVA.js +0 -4
- package/dist/cdn/TCDPSWNN.js +0 -4
- package/dist/cdn/TY7GL3FG.js +0 -4
- package/dist/cdn/TZRKKXAD.js +0 -4
- package/dist/cdn/U3YAUOKI.js +0 -4
- package/dist/cdn/U45DGMUG.js +0 -4
- package/dist/cdn/UANGRMJE.js +0 -32
- package/dist/cdn/UUIA7SBZ.js +0 -4
- package/dist/cdn/VTR2E6HB.js +0 -4
- package/dist/cdn/WSWWUPOS.js +0 -4
- package/dist/cdn/YLTGHBKB.js +0 -4
- package/dist/cdn/YO3NHOIF.js +0 -4
- package/dist/cdn/ZEVGAANR.js +0 -4
- package/dist/cdn/ZRK24AZH.js +0 -4
- package/dist/cdn/ZUVIZNK3.js +0 -4
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.
|
4
|
-
import{b as p,d as n,e as h,f as R}from"./5YSFQ4E3.js";function a(r={}){return r.portal?R(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function nr(r,t){let e=P(r,t),o=Object.assign({httpMethod:"GET"},t);return n(e,o)}var P=(r,t)=>`${typeof t=="string"?t:a(t)}/content/items/${r}`;function ar(r,t){let e=`${P(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),n(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function ir(r){let t=`${P(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,n(t,e)}function mr(r,t){let e=`${P(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),n(e,o)}function lr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/delete`;return n(e,r)})}function dr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),n(e,r)})}function hr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return n(e,r)})}function xr(r,t){let e=r||"self",o=`${a(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}function W(r){return u(r).then(t=>{let e=r.folderId?`${a(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${a(r)}/content/users/${t}/items/${r.item.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent)),n(e,r)})}function Ur(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),n(e,r)})}function jr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),n(e,r)})}function Cr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return n(e,o)})}function Rr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),n(e,r)})}function Dr(r){return u(r).then(t=>{let o=`${`${a(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),n(o,r)})}function Y(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${a(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return n(o,i)})}function Wr(r){let t=Object.assign({folderId:null},r);return Y(t)}function Xr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/protect`;return n(e,r)})}function Zr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/unprotect`;return n(e,r)})}function E(r,t){let e=`${a(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return n(e,o)}function tt(r,t){let e=`${a(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),n(e,o)}function M(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${a(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function A(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function G(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function v(r){return E(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=a(e)+o;return n(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function k(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function F(r){let t=r.id,e=`${a(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...N("users",r.users,o),...N("admins",r.admins,o)].map(c=>H(e,c));return Promise.all(m).then(J)}function N(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>z(r,i,e))}function z(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function H(r,t){return n(r,t).catch(e=>({errors:[e]}))}function J(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function _(r){let{id:t,users:e}=r,o=`${a(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return n(o,d).catch(f=>({errors:[f]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=l=>c.filter(g=>g[l]).reduce((g,w)=>g.concat(w[l]),[]),f=d("errors"),s={notRemoved:d("notRemoved")};return f.length?Object.assign(Object.assign({},s),{errors:f}):s})}function Ft(r){let t=`${a(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function Ht(r){let t=`${a(r)}/community/groups/${r.id}/protect`;return n(t,r)}function Jt(r){let t=`${a(r)}/community/groups/${r.id}/unprotect`;return n(t,r)}function Kt(r){let t=`${a(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return n(t,e)}function Ot(r){return $(r,"group")}function qt(r){return $(r,"groupContent")}function oe(r){let t=`${a(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function S(r){let t=`${a(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,n(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${a(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return n(t,e)}async function Le(r){let t=await r.authentication.getUsername(),e=M(r,t);return A(r,t)?B(e,r):G(r).then(o=>{if(o)return B(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function B(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),n(r,t)}function T(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return k(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function ao(r){return T(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),v(r)]).then(([f,s,l])=>{let g=!!o;return c=f.role==="org_admin"&&!f.roleId,d=f.orgId!==s.orgId,V(f,g,l,c,s,r)}).then(f=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:l=>Promise.resolve(l)}]=f;return Promise.all(f.map(({promise:l})=>l)).then(()=>D(r,c,d)).then(l=>s(l))})}return D(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function V(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(C(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),C(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(C(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function D(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${a(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${a(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},n(m,r)}function C(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,f;if(c)e&&c.userMembership.memberType==="member"?(d=S({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let l=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:l})}).catch(()=>({notAdded:[t.username]})),f=s=>S({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),f=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=F({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(l=>{if(l.errors&&l.errors.length)throw l.errors[0];return l}).catch(()=>({notAdded:[t.username]})),f=l=>_({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>l)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:f}}function lo(r){return T(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([v(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,f=m.role==="org_admin"&&!m.roleId;if(!d&&!f&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return L(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function L(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${a(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${a(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},n(o,r)}function wo(r){return Q(null,r)}function Q(r,t){let e=r||"self",o=`${a(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}export{a,u as b,W as c,Ur as d,jr as e,Cr as f,Rr as g,Dr as h,Y as i,Wr as j,nr as k,ar as l,ir as m,mr as n,Xr as o,Zr as p,E as q,tt as r,lr as s,dr as t,hr as u,x as v,k as w,_ as x,Ft as y,Ht as z,Jt as A,Kt as B,Ot as C,qt as D,oe as E,I as F,Le as G,ao as H,lo as I,wo as J,Q as K,xr as L};
|
3
|
+
v1.0.2 */
|
4
|
+
import{b as p,d as n,e as h,f as R}from"./3UIKDYVX.js";function a(r={}){return r.portal?R(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function nr(r,t){let e=P(r,t),o=Object.assign({httpMethod:"GET"},t);return n(e,o)}var P=(r,t)=>`${typeof t=="string"?t:a(t)}/content/items/${r}`;function ar(r,t){let e=`${P(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),n(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function ir(r){let t=`${P(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,n(t,e)}function mr(r,t){let e=`${P(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),n(e,o)}function lr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/delete`;return n(e,r)})}function dr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),n(e,r)})}function hr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return n(e,r)})}function xr(r,t){let e=r||"self",o=`${a(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}function W(r){return u(r).then(t=>{let e=r.folderId?`${a(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${a(r)}/content/users/${t}/items/${r.item.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent)),n(e,r)})}function Ur(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),n(e,r)})}function jr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),n(e,r)})}function Cr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return n(e,o)})}function Rr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),n(e,r)})}function Dr(r){return u(r).then(t=>{let o=`${`${a(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),n(o,r)})}function Y(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${a(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return n(o,i)})}function Wr(r){let t=Object.assign({folderId:null},r);return Y(t)}function Xr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/protect`;return n(e,r)})}function Zr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/unprotect`;return n(e,r)})}function E(r,t){let e=`${a(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return n(e,o)}function tt(r,t){let e=`${a(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),n(e,o)}function M(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${a(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function A(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function G(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function v(r){return E(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=a(e)+o;return n(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function k(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function F(r){let t=r.id,e=`${a(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...N("users",r.users,o),...N("admins",r.admins,o)].map(c=>H(e,c));return Promise.all(m).then(J)}function N(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>z(r,i,e))}function z(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function H(r,t){return n(r,t).catch(e=>({errors:[e]}))}function J(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function _(r){let{id:t,users:e}=r,o=`${a(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return n(o,d).catch(f=>({errors:[f]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=l=>c.filter(g=>g[l]).reduce((g,w)=>g.concat(w[l]),[]),f=d("errors"),s={notRemoved:d("notRemoved")};return f.length?Object.assign(Object.assign({},s),{errors:f}):s})}function Ft(r){let t=`${a(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function Ht(r){let t=`${a(r)}/community/groups/${r.id}/protect`;return n(t,r)}function Jt(r){let t=`${a(r)}/community/groups/${r.id}/unprotect`;return n(t,r)}function Kt(r){let t=`${a(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return n(t,e)}function Ot(r){return $(r,"group")}function qt(r){return $(r,"groupContent")}function oe(r){let t=`${a(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function S(r){let t=`${a(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,n(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${a(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return n(t,e)}async function Le(r){let t=await r.authentication.getUsername(),e=M(r,t);return A(r,t)?B(e,r):G(r).then(o=>{if(o)return B(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function B(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),n(r,t)}function T(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return k(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function ao(r){return T(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),v(r)]).then(([f,s,l])=>{let g=!!o;return c=f.role==="org_admin"&&!f.roleId,d=f.orgId!==s.orgId,V(f,g,l,c,s,r)}).then(f=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:l=>Promise.resolve(l)}]=f;return Promise.all(f.map(({promise:l})=>l)).then(()=>D(r,c,d)).then(l=>s(l))})}return D(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function V(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(C(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),C(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(C(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function D(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${a(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${a(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},n(m,r)}function C(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,f;if(c)e&&c.userMembership.memberType==="member"?(d=S({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let l=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:l})}).catch(()=>({notAdded:[t.username]})),f=s=>S({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),f=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=F({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(l=>{if(l.errors&&l.errors.length)throw l.errors[0];return l}).catch(()=>({notAdded:[t.username]})),f=l=>_({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>l)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:f}}function lo(r){return T(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([v(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,f=m.role==="org_admin"&&!m.roleId;if(!d&&!f&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return L(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function L(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${a(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${a(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},n(o,r)}function wo(r){return Q(null,r)}function Q(r,t){let e=r||"self",o=`${a(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}export{a,u as b,W as c,Ur as d,jr as e,Cr as f,Rr as g,Dr as h,Y as i,Wr as j,nr as k,ar as l,ir as m,mr as n,Xr as o,Zr as p,E as q,tt as r,lr as s,dr as t,hr as u,x as v,k as w,_ as x,Ft as y,Ht as z,Jt as A,Kt as B,Ot as C,qt as D,oe as E,I as F,Le as G,ao as H,lo as I,wo as J,Q as K,xr as L};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.
|
3
|
+
v1.0.2 */
|
4
4
|
function o(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function m(r,e){let t=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",timeZone:e??o()}).formatToParts(new Date(r));return[t[4].value,t[0].value,t[2].value].join("-")}function s(r,e){let t=new Intl.DateTimeFormat("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:e??o(),hourCycle:"h23"}).formatToParts(new Date(r));return[t[0].value,t[2].value,t[4].value].join(":")}var w=()=>{let e=new Date(Date.now()+36e5),t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours()),i=t.toISOString(),a=new Date(t.valueOf()+36e5).toISOString(),n=o(),u=m(i,n),D=m(a,n);return{startDate:u,startDateTime:new Date(i),startTime:s(i,n),endDate:D,endDateTime:new Date(a),endTime:s(a,n),timeZone:n}};export{m as a,w as b};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
+
v1.0.2 */
|
4
|
+
import{a,b}from"./TYK6M57O.js";import"./MDBE6QB6.js";import"./BBCZTH66.js";import"./XHXK6QN7.js";import"./HX4VINVI.js";import"./Y3DUHGHO.js";import"./QTN6BMW2.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.
|
4
|
-
import{
|
3
|
+
v1.0.2 */
|
4
|
+
import{b as c}from"./3XT4LMZL.js";import{a as b}from"./NHKMUTOW.js";import{a as u}from"./3UITRYPY.js";function a(t,e,r,s,n,l){let i={[n]:{targetEntity:n,filters:r}};return{schemaVersion:1,title:l||`{{${t}catalog.${e}:translate}}`,scopes:i,collections:s}}function f(t){return t&&t.slice(-1)!=="."?`${t}.`:t}function U(t,e,r,s){switch(r){case"item":return k(t,e,s);case"group":return E(t,e,s);case"event":return y(t,e,s);default:throw new Error(`Wellknown catalog not implemented for "${r}"`)}}function d(t,e){if(!e||!e.user)throw new Error(`User needed to get "${t}" catalog`)}function k(t,e,r){t=f(t);let s,n=u(r,"filters")||[],l=u(r,"context"),i=h(t,"item",r?.collectionNames);switch(e){case"myContent":d(e,r),s=a(t,e,[{predicates:[{owner:r.user.username}]},...n],i,"item");break;case"favorites":d(e,r),s=a(t,e,[{predicates:[{group:r.user.favGroupId}]},...n],i,"item");break;case"organization":d(e,r),s=a(t,e,[{predicates:[{orgid:r.user.orgId}]},...n],i,"item");break;case"partners":let o=l.trustedOrgIds.filter(p=>p!==l.currentUser.orgId&&p!==m(l));o.length&&(s=a(t,e,[{predicates:[{orgid:o,searchUserAccess:"includeTrustedOrgs"}]},...n],i,"item"));break;case"community":let g=m(l);g&&(s=a(t,e,[{predicates:[{orgid:g}]},...n],i,"item",l.isCommunityOrg?v(g,l):void 0));break;case"livingAtlas":d(e,r),s=a(t,e,[{predicates:[{owner:"Esri_LivingAtlas"}]}],i,"item");break;case"world":s=a(t,e,[{predicates:[{type:{not:["code attachment"]}}]},...n],i,"item");break}return s}function m(t){let e=t.trustedOrgs.find(r=>r.from.orgId===t.currentUser.orgId);return t.isCommunityOrg&&e?e.to.orgId:t.communityOrgId}function v(t,e){return e.trustedOrgs.find(s=>s.to.orgId===t).to.name}function E(t,e,r){let s,{context:n,filters:l=[]}=r||{};t=f(t);let i=[{targetEntity:"group",key:e,label:e,scope:{targetEntity:"group",filters:[{predicates:[{q:"*"}]}]}}],o=b(n,"currentUser.groups",[]).reduce((g,p)=>(p.userMembership.memberType==="admin"&&g.push(p.id),g),[]);switch(e){case"editGroups":d(e,r),s=a(t,e,[{predicates:[{capabilities:["updateitemcontrol"]}]},...l],i,"group");break;case"viewGroups":d(e,r),s=a(t,e,[{predicates:[{capabilities:{not:["updateitemcontrol"]}}]},...l],i,"group");break;case"allGroups":d(e,r),s=a(t,e,[{predicates:[{capabilities:[""]}]},...l],i,"group");break;case"myGroups":d(e,r),s=a(t,e,[{predicates:[{owner:u(n,"currentUser.username")}]},...l],i,"group");break;case"orgGroups":d(e,r),s=a(t,e,[{predicates:[{orgid:u(n,"currentUser.orgId"),searchUserAccess:"groupMember",searchUserName:u(n,"currentUser.username"),isviewonly:!1},{orgid:u(n,"currentUser.orgId"),id:o}]},...l],i,"group");break;case"communityGroups":d(e,r),s=a(t,e,[{predicates:[{orgid:u(n,"communityOrgId"),searchUserAccess:"groupMember",searchUserName:u(n,"currentUser.username"),isviewonly:!1},{orgid:u(n,"communityOrgId"),id:o}]},...l],i,"group");break;case"publicGroups":s=a(t,e,[{predicates:[{access:"public"}]},...l],i,"group");break}return s}function y(t,e,r){let s,{context:n,filters:l=[]}=r||{};t=f(t);let i=[{key:e,label:e,targetEntity:"event",include:[],scope:{targetEntity:"event",filters:[{predicates:[]}]}}];switch(e){case"myEvents":d(e,r),s=a(t,e,[{predicates:[{owner:u(n,"currentUser.id")}]},...l],i,"event");break;case"orgEvents":d(e,r),s=a(t,e,[{predicates:[{orgid:u(n,"currentUser.orgId")}]},...l],i,"event");break;case"worldEvents":s=a(t,e,[{predicates:[{access:["public","private","org"]}]},...l],i,"event");break}return s}function w(t,e){return{appAndMap:{key:"appAndMap",label:`{{${t}collection.appsAndMaps:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:[...c("app"),...c("map")]}]}]}},dataset:{key:"dataset",label:`{{${t}collection.dataset:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("dataset")}]}]}},document:{key:"document",label:`{{${t}collection.documents:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("document")}]}]}},feedback:{key:"feedback",label:`{{${t}collection.feedback:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("feedback")}]}]}},site:{key:"site",label:`{{${t}collection.sites:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("site")}]}]}},template:{key:"template",label:`{{${t}collection.templates:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("template")}]}]}},project:{key:"project",label:`{{${t}collection.projects:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("project")}]}]}},initiative:{key:"initiative",label:`{{${t}collection.initiatives:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("initiative"),typekeywords:["hubInitiativeV2"]}]}]}},projectAndInitiative:{key:"projectAndInitiative",label:`{{${t}collection.projectsAndInitiatives:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{operation:"OR",predicates:[{type:c("project")},{type:c("initiative"),typekeywords:["hubInitiativeV2"]}]}]}}}}function O(){return["appAndMap","dataset","document","feedback","site","project"]}function h(t,e,r){t=f(t);let s=w(t,e),n=O();return(r?.length?r:n).reduce((i,o)=>(s[o]&&i.push(s[o]),i),[])}export{U as a};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
+
v1.0.2 */
|
4
|
+
import{a as n}from"./UGWIFJHW.js";import{a as s}from"./PZ4I46YP.js";import"./OSZNMAJF.js";import"./QUB3JPGL.js";import"./NDXSJLKV.js";import"./N2SRPBDD.js";import{a as r,b as i}from"./2TV52QIG.js";import"./SEVUDBYU.js";import"./6ZPPQS7Z.js";import"./BWY46B5P.js";import{a as o}from"./J6BS2SYI.js";import{a}from"./AWOD4YMZ.js";import"./SPYEGWSA.js";import"./3UIKDYVX.js";import"./3XT4LMZL.js";import"./NHKMUTOW.js";import"./3UITRYPY.js";import"./CH2V66RG.js";import"./6Y37L4Y2.js";import"./34K3UEZZ.js";import"./E6YH3G2I.js";import"./XF3EBBPG.js";import"./EIG2RIEW.js";import"./BSBALSW3.js";import"./BH7LJ72A.js";import"./EXPP7EHV.js";import"./5X2CUO2G.js";import"./57ICJINS.js";import"./MEIJQ75E.js";import"./SZVMRJ24.js";import"./XL6DAOQU.js";import"./BIVUMER5.js";import"./SFYHUOTM.js";import"./TYK6M57O.js";import"./MDBE6QB6.js";import"./BBCZTH66.js";import"./MWZRE5PN.js";import"./XHXK6QN7.js";import"./HX4VINVI.js";import"./Y3DUHGHO.js";import"./QTN6BMW2.js";var d=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},n(e),{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"page",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await a(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(t.location,l.hubRequestOptions),options:await i(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{d as buildUiSchema};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
+
v1.0.2 */
|
4
|
+
import{a as G}from"./42CBSGWQ.js";import{a as L}from"./AGN7ST2V.js";import{c as K,d as _,e as U}from"./BTHJLT2K.js";import{l as j,p as P}from"./VSEHM5KR.js";import"./YX2IMVKL.js";import"./MRDF2627.js";import"./UHULYTFL.js";import"./OSZNMAJF.js";import"./QUB3JPGL.js";import{a as S}from"./NDXSJLKV.js";import"./N2SRPBDD.js";import"./SEVUDBYU.js";import"./6ZPPQS7Z.js";import"./BWY46B5P.js";import{w}from"./SPYEGWSA.js";import"./3UIKDYVX.js";import"./3XT4LMZL.js";import"./NHKMUTOW.js";import"./3UITRYPY.js";import"./E6YH3G2I.js";import{b as A}from"./SZVMRJ24.js";import{a as c,b as p}from"./BIVUMER5.js";import"./QTN6BMW2.js";function b(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,o)=>[...t,{entityKey:o,storeKey:o}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function k(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function g(e){let{token:t,authentication:o}=e;return o?o.getToken(o.portal):Promise.resolve(t)}async function v(e,t){let{url:o,method:a,data:n}=e,{mode:r,cache:i,credentials:d}=t,{headers:m,params:E}=de(e,t),s=`${le(t.hubApiUrl)}${o}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:r};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:R,status:re}=y;if(y.ok)return y.json();let ce=await y.json();throw new x(R,s,re,JSON.stringify(ce.message))}function le(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function de(e,t){let o=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&o.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:o,params:a}}var x=class extends Error{constructor(t,o,a,n){super(t),this.status=a,this.url=o,this.error=n}};var M;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(M||(M={}));var H;(function(e){e.asc="asc",e.desc="desc"})(H||(H={}));var B;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(B||(B={}));var V;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(V||(V={}));var $;(function(e){e.csv="csv",e.json="json"})($||($={}));var Z;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})(Z||(Z={}));var F;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(F||(F={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var q;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(q||(q={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var W;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(W||(W={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var J=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var z=(e,t,o)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},o),Q=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),X=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var Y=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function ee(e){return e.token=await g(e),J(e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e.data,e)}async function ne(e){return e.token=await g(e),Q(e.eventId,e)}function C(e){return[j(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function ae(e){var t;let o=P("event",C(e));return{self:o,siteRelative:o,siteRelativeEntityType:P("event"),workspaceRelative:L("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:k()}}function ie(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function se(e){return e.token=await g(e),X(e.data,e)}async function oe(e){return e.token=await g(e),Y(e.registrationId,e)}function I(){let e=A();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function N(){let{startDateTime:e,endDateTime:t}=A();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends K{storeToEntity(t,o){var a,n,r,i,d,m,E,D;let s=U(t,o,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((r=t.onlineMeeting)===null||r===void 0)&&r.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:R})=>({entityId:y,entityType:R})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.catalog=G(s.catalog||{}),s.links=ae(t),s.slug=C(t),s.view={showMap:!!t.location},s.location=ie(t),s}entityToStore(t,o){let a=S(t),n=_(a,o,this.mappings),r=a.access;return r==="shared"?n.access=f.PRIVATE:n.access=r.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function O(e,t,o){let a=e.filter(({entityId:r})=>t.includes(r)),n=t.filter(r=>!a.find(({entityId:i})=>i===r));if(n.length){let{results:r}=await w({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:o.authentication}),i=r.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function at(e,t){let o=Object.assign(Object.assign({},I()),e);o.endDate=o.startDate;let a=new h(b()),n=a.entityToStore(o,N()),r=await O(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:r,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await ee(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function it(e,t){var o,a;let n=Object.assign(Object.assign({},I()),e),r=new h(b()),i=r.entityToStore(n,N()),d=await O(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((o=i.description)===null||o===void 0?void 0:o.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await te(Object.assign({eventId:i.id,data:m},t)),r.storeToEntity(i,{})}async function st(e,t){await ne(Object.assign({eventId:e},t))}function ot(e,t){return se(Object.assign({data:e},t))}async function rt(e,t){await oe(Object.assign({registrationId:e},t))}export{at as createHubEvent,ot as createHubEventRegistration,st as deleteHubEvent,rt as deleteHubEventRegistration,it as updateHubEvent};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.
|
4
|
-
import{a,b}from"./
|
3
|
+
v1.0.2 */
|
4
|
+
import{a,b}from"./MWZRE5PN.js";import"./XHXK6QN7.js";import"./HX4VINVI.js";import"./Y3DUHGHO.js";import"./QTN6BMW2.js";export{a as SiteEditorTypes,b as getSiteSchema};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
+
v1.0.2 */
|
4
|
+
import{a as l}from"./WONNB7ZA.js";import"./BWY46B5P.js";import"./NHKMUTOW.js";import"./3UITRYPY.js";import{a as t}from"./CH2V66RG.js";import"./6Y37L4Y2.js";import"./34K3UEZZ.js";import"./E6YH3G2I.js";import"./XF3EBBPG.js";import"./EIG2RIEW.js";import"./BSBALSW3.js";import"./BH7LJ72A.js";import"./EXPP7EHV.js";import"./5X2CUO2G.js";import"./57ICJINS.js";import"./MEIJQ75E.js";import"./SZVMRJ24.js";import"./XL6DAOQU.js";import"./BIVUMER5.js";import"./SFYHUOTM.js";import"./TYK6M57O.js";import"./MDBE6QB6.js";import"./BBCZTH66.js";import"./MWZRE5PN.js";import"./XHXK6QN7.js";import"./HX4VINVI.js";import"./Y3DUHGHO.js";import"./QTN6BMW2.js";var n=async(e,s,r)=>{let o=s;return{type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:t.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{scope:"/properties/isSharedUpdate",type:"Control",rule:{effect:t.HIDE,condition:{scope:"/properties/isSharedUpdate",schema:{const:!1}}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.createFollowers.any:translate}}`],disabled:[!1,!1,o.isSharedUpdate]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.createFollowers.admins:translate}}`]}}]}]}]}},p=async(e,s,r)=>Object.assign({},l("hubFollowersGroup",r));export{p as buildDefaults,n as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.
|
4
|
-
import{a as e,b as i,c as l,d as s,e as t}from"./
|
3
|
+
v1.0.2 */
|
4
|
+
import{a as e,b as i,c as l,d as s,e as t}from"./ITWRX5NJ.js";import{a as r}from"./CH2V66RG.js";import"./6Y37L4Y2.js";import"./34K3UEZZ.js";import"./E6YH3G2I.js";import"./XF3EBBPG.js";import"./EIG2RIEW.js";import"./BSBALSW3.js";import"./BH7LJ72A.js";import"./EXPP7EHV.js";import"./5X2CUO2G.js";import"./57ICJINS.js";import"./MEIJQ75E.js";import"./SZVMRJ24.js";import"./XL6DAOQU.js";import"./BIVUMER5.js";import"./SFYHUOTM.js";import"./TYK6M57O.js";import"./MDBE6QB6.js";import"./BBCZTH66.js";import"./MWZRE5PN.js";import"./XHXK6QN7.js";import"./HX4VINVI.js";import"./Y3DUHGHO.js";import"./QTN6BMW2.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",clearOnHidden:!0,type:"number",messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
|