@esri/hub-web-components 0.34.0 → 0.35.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/22BCGH7F.js +59 -0
- package/dist/cdn/22LHDS65.js +4 -0
- package/dist/cdn/27ZJ7LJR.js +4 -0
- package/dist/cdn/2AB45HMD.js +4 -0
- package/dist/cdn/2B7CVDYG.js +4 -0
- package/dist/cdn/2BMBS2VM.js +4 -0
- package/dist/cdn/2CB3RJPN.js +4 -0
- package/dist/cdn/2D53DF3Z.js +4 -0
- package/dist/cdn/2DJQJXE6.js +4 -0
- package/dist/cdn/2DWH6SR7.js +4 -0
- package/dist/cdn/2G4AIFHQ.js +4 -0
- package/dist/cdn/2I63KJIK.js +4 -0
- package/dist/cdn/2JJAE3KI.js +12 -0
- package/dist/cdn/2K4QTOFM.js +4 -0
- package/dist/cdn/2LLARW52.js +8 -0
- package/dist/cdn/2ML2W7XI.js +4 -0
- package/dist/cdn/2NGMBURN.js +4 -0
- package/dist/cdn/2VBFVAR5.js +4 -0
- package/dist/cdn/2WZE5WJ6.js +4 -0
- package/dist/cdn/2X3CQ355.js +4 -0
- package/dist/cdn/2X7Q2ZMG.js +4 -0
- package/dist/cdn/2XOLOA2N.js +4 -0
- package/dist/cdn/2XWYF4DY.js +4 -0
- package/dist/cdn/34D6UHTD.js +4 -0
- package/dist/cdn/37KONPPY.js +4 -0
- package/dist/cdn/3AEE6L7D.js +4 -0
- package/dist/cdn/3BO72RI6.js +4 -0
- package/dist/cdn/3CFGE4B7.js +5 -0
- package/dist/cdn/3GL54CUZ.js +4 -0
- package/dist/cdn/3HHTE26L.js +4 -0
- package/dist/cdn/3HNIDVXP.js +4 -0
- package/dist/cdn/3IWOU47R.js +5 -0
- package/dist/cdn/3LAUA3TP.js +4 -0
- package/dist/cdn/3LULV5WO.js +4 -0
- package/dist/cdn/3OD3L7UY.js +4 -0
- package/dist/cdn/3OXDCD2E.js +4 -0
- package/dist/cdn/3PZ5ROGH.js +4 -0
- package/dist/cdn/3UKL4LES.js +4 -0
- package/dist/cdn/3V4TD6NN.js +4 -0
- package/dist/cdn/3XQZEB4X.js +4 -0
- package/dist/cdn/3Y5HS7MR.js +4 -0
- package/dist/cdn/3YY3GBB6.js +4 -0
- package/dist/cdn/422UNPGB.js +4 -0
- package/dist/cdn/43I5DTMD.js +4 -0
- package/dist/cdn/43IYC5QI.js +4 -0
- package/dist/cdn/44LDTYQ6.js +4 -0
- package/dist/cdn/4AM6K65U.js +4 -0
- package/dist/cdn/4B55VAXN.js +4 -0
- package/dist/cdn/4BCWNRKZ.js +4 -0
- package/dist/cdn/4EWAPKJT.js +4 -0
- package/dist/cdn/4FXJOMJ2.js +5 -0
- package/dist/cdn/4GJOSP47.js +4 -0
- package/dist/cdn/4GMN3WAM.js +4 -0
- package/dist/cdn/4GXZCGZA.js +4 -0
- package/dist/cdn/4HDY6WMG.js +41 -0
- package/dist/cdn/4KNPDH5R.js +4 -0
- package/dist/cdn/4KUAQHJF.js +4 -0
- package/dist/cdn/4LTKQJKY.js +4 -0
- package/dist/cdn/4MFZZRH6.js +4 -0
- package/dist/cdn/4N6D3SYT.js +4 -0
- package/dist/cdn/4QD7SSWY.js +4 -0
- package/dist/cdn/4QLFR5BT.js +4 -0
- package/dist/cdn/4QYTLTMY.js +4 -0
- package/dist/cdn/4RJ2KPEX.js +4 -0
- package/dist/cdn/4SIO7F6F.js +4 -0
- package/dist/cdn/4SWFKUMQ.js +4 -0
- package/dist/cdn/4U4NCNLF.js +4 -0
- package/dist/cdn/4XKFQDJC.js +4 -0
- package/dist/cdn/4XZGNWLH.js +4 -0
- package/dist/cdn/524QIVFX.js +4 -0
- package/dist/cdn/54DTH7RR.js +4 -0
- package/dist/cdn/54MA3SJG.js +4 -0
- package/dist/cdn/55X2Y2MX.js +4 -0
- package/dist/cdn/564FGU3D.js +4 -0
- package/dist/cdn/5AKQYOXC.js +4 -0
- package/dist/cdn/5BA5WTO5.js +4 -0
- package/dist/cdn/5C5HKEEP.js +4 -0
- package/dist/cdn/5CDOW2MQ.js +4 -0
- package/dist/cdn/5E54UBOV.js +4 -0
- package/dist/cdn/5EJCZOEI.js +4 -0
- package/dist/cdn/5ETIWR6L.js +4 -0
- package/dist/cdn/5FVLD5ZK.js +4 -0
- package/dist/cdn/5IDNQFAN.js +4 -0
- package/dist/cdn/5ISEF5VR.js +4 -0
- package/dist/cdn/5JFCOA3I.js +4 -0
- package/dist/cdn/5KIQAGYG.js +4 -0
- package/dist/cdn/5MCDEDPG.js +4 -0
- package/dist/cdn/5QP7DOHI.js +4 -0
- package/dist/cdn/5QT7GLQT.js +4 -0
- package/dist/cdn/5SNU2JXZ.js +4 -0
- package/dist/cdn/5USN7AB6.js +4 -0
- package/dist/cdn/5YEPEBCJ.js +4 -0
- package/dist/cdn/5ZJDFZEG.js +16 -0
- package/dist/cdn/63EWJFID.js +4 -0
- package/dist/cdn/63LMCNJY.js +4 -0
- package/dist/cdn/65AODXZA.js +4 -0
- package/dist/cdn/65GK2DDC.js +4 -0
- package/dist/cdn/66GN6ADA.js +4 -0
- package/dist/cdn/66WTNA34.js +4 -0
- package/dist/cdn/6FBGPDIF.js +4 -0
- package/dist/cdn/6HDO4HPQ.js +4 -0
- package/dist/cdn/6LRKH6CH.js +4 -0
- package/dist/cdn/6P5ZZGAS.js +4 -0
- package/dist/cdn/6PU3IZPQ.js +4 -0
- package/dist/cdn/6UI5CNAB.js +4 -0
- package/dist/cdn/6VJ37N5R.js +4 -0
- package/dist/cdn/6ZGLFZWT.js +4 -0
- package/dist/cdn/76N36N72.js +4 -0
- package/dist/cdn/7A3RIJRN.js +5 -0
- package/dist/cdn/7ABC4H6T.js +4 -0
- package/dist/cdn/7AGT4ZS4.js +4 -0
- package/dist/cdn/7B72YLIE.js +4 -0
- package/dist/cdn/7CGMY4BC.js +4 -0
- package/dist/cdn/7DZWCDW6.js +4 -0
- package/dist/cdn/7GKCRODS.js +4 -0
- package/dist/cdn/7K5NVUCO.js +4 -0
- package/dist/cdn/7MZ6XF7F.js +4 -0
- package/dist/cdn/7NDXA2FG.js +59 -0
- package/dist/cdn/7QXOMK6P.js +4 -0
- package/dist/cdn/7T4NEMN3.js +4 -0
- package/dist/cdn/7UNCALWO.js +4 -0
- package/dist/cdn/7WAFUWZD.js +4 -0
- package/dist/cdn/7WKJ5O2A.js +4 -0
- package/dist/cdn/7XC7N3JM.js +4 -0
- package/dist/cdn/7XORZQMG.js +4 -0
- package/dist/cdn/7XY2KRWA.js +4 -0
- package/dist/cdn/7ZDDUXYV.js +4 -0
- package/dist/cdn/A2243NUA.js +4 -0
- package/dist/cdn/A2WSCU6U.js +4 -0
- package/dist/cdn/A3MP5KFG.js +4 -0
- package/dist/cdn/A3TLPDN5.js +4 -0
- package/dist/cdn/A4CB7PZO.js +4 -0
- package/dist/cdn/A6CEKV3Y.js +4 -0
- package/dist/cdn/AAK5PVYW.js +4 -0
- package/dist/cdn/AC2FFA3C.js +4 -0
- package/dist/cdn/AELYK32Y.js +4 -0
- package/dist/cdn/AESESYHQ.js +4 -0
- package/dist/cdn/AGWIT65G.js +4 -0
- package/dist/cdn/AIW5LDCW.js +4 -0
- package/dist/cdn/AJPHY2IX.js +4 -0
- package/dist/cdn/AMKG4L5M.js +4 -0
- package/dist/cdn/APQ6C2R7.js +4 -0
- package/dist/cdn/AR425V3A.js +4 -0
- package/dist/cdn/AVFPXNL3.js +4 -0
- package/dist/cdn/AXPF6A2X.js +4 -0
- package/dist/cdn/AXSTKZLY.js +4 -0
- package/dist/cdn/AYQYEPT4.js +4 -0
- package/dist/cdn/AZPYSZEU.js +4 -0
- package/dist/cdn/B2C2AJIK.js +4 -0
- package/dist/cdn/B2DLD4Q4.js +4 -0
- package/dist/cdn/B4ACSNTT.js +4 -0
- package/dist/cdn/B5GILW6S.js +4 -0
- package/dist/cdn/B5Y3NKTC.js +4 -0
- package/dist/cdn/B62WGBXQ.js +4 -0
- package/dist/cdn/B7BGTWPR.js +4 -0
- package/dist/cdn/BC4BICW3.js +4 -0
- package/dist/cdn/BCCDR6W2.js +4 -0
- package/dist/cdn/BCHNNURE.js +4 -0
- package/dist/cdn/BEOPNZKP.js +4 -0
- package/dist/cdn/BF5ZVKJ6.js +4 -0
- package/dist/cdn/BGYWQNAM.js +4 -0
- package/dist/cdn/BHEMXWD7.js +4 -0
- package/dist/cdn/BHEWXD53.js +4 -0
- package/dist/cdn/BJMJAMNP.js +4 -0
- package/dist/cdn/BNVRLP6C.js +4 -0
- package/dist/cdn/BOKNMSBE.js +4 -0
- package/dist/cdn/BPBOPPIK.js +4 -0
- package/dist/cdn/BQXJKBT3.js +6 -0
- package/dist/cdn/BSEAT6MD.js +4 -0
- package/dist/cdn/BUJZOMXT.js +4 -0
- package/dist/cdn/BVB5LUSE.js +4 -0
- package/dist/cdn/BY3EQZRZ.js +4 -0
- package/dist/cdn/BZJ7ELRH.js +4 -0
- package/dist/cdn/C2QVHVYK.js +4 -0
- package/dist/cdn/C32DA7PE.js +4 -0
- package/dist/cdn/C3KHIA6G.js +4 -0
- package/dist/cdn/C7WGUAED.js +4 -0
- package/dist/cdn/CATNGJVZ.js +4 -0
- package/dist/cdn/CCHDVBJM.js +4 -0
- package/dist/cdn/CERCHUPQ.js +4 -0
- package/dist/cdn/CFMDOU3B.js +4 -0
- package/dist/cdn/CG3PASCK.js +4 -0
- package/dist/cdn/CGMB64CB.js +4 -0
- package/dist/cdn/CJSKVVGO.js +4 -0
- package/dist/cdn/CKQMSEGN.js +4 -0
- package/dist/cdn/CN4ICF2H.js +4 -0
- package/dist/cdn/COA4NWLQ.js +4 -0
- package/dist/cdn/CQDMAL33.js +4 -0
- package/dist/cdn/CQY63PTS.js +4 -0
- package/dist/cdn/CRL5EQ74.js +4 -0
- package/dist/cdn/CWJMZRRB.js +4 -0
- package/dist/cdn/CYOAB76B.js +4 -0
- package/dist/cdn/D7FHA7T2.js +4 -0
- package/dist/cdn/DB6TQSRA.js +4 -0
- package/dist/cdn/DBHKJDWE.js +4 -0
- package/dist/cdn/DCM5CDQ7.js +4 -0
- package/dist/cdn/DEZ3PXTJ.js +4 -0
- package/dist/cdn/DGTNTPSJ.js +4 -0
- package/dist/cdn/DGX732PH.js +4 -0
- package/dist/cdn/DHLWEAF5.js +25 -0
- package/dist/cdn/DIQJLDZZ.js +4 -0
- package/dist/cdn/DK3LNXT3.js +4 -0
- package/dist/cdn/DLQMASEG.js +4 -0
- package/dist/cdn/DPHB3KP3.js +4 -0
- package/dist/cdn/DQDKK33P.js +4 -0
- package/dist/cdn/DR24I6GP.js +4 -0
- package/dist/cdn/DT76KUON.js +4 -0
- package/dist/cdn/DV23CD3O.js +4 -0
- package/dist/cdn/DWEW72N6.js +5 -0
- package/dist/cdn/DWNI6SS4.js +5470 -0
- package/dist/cdn/DZZVXVNN.js +4 -0
- package/dist/cdn/E6326YWY.js +4 -0
- package/dist/cdn/EBQIKIA4.js +4 -0
- package/dist/cdn/ECV4UPQR.js +4 -0
- package/dist/cdn/ECVT6WF7.js +4 -0
- package/dist/cdn/EHT4E4PI.js +4 -0
- package/dist/cdn/EI2CXC6Z.js +4 -0
- package/dist/cdn/EKDQNZOB.js +4 -0
- package/dist/cdn/ELYMVDE2.js +4 -0
- package/dist/cdn/EMCMMQKI.js +4 -0
- package/dist/cdn/EO3NNRHL.js +4 -0
- package/dist/cdn/EOVAKBTR.js +4 -0
- package/dist/cdn/EQ2YZ52O.js +4 -0
- package/dist/cdn/EQC2XT34.js +4 -0
- package/dist/cdn/EQCQLLW4.js +4 -0
- package/dist/cdn/ERMF3HUK.js +4 -0
- package/dist/cdn/EUOPBOJ4.js +4 -0
- package/dist/cdn/EVW2QSCS.js +4 -0
- package/dist/cdn/EW22EDCB.js +4 -0
- package/dist/cdn/EY4FNEAR.js +4 -0
- package/dist/cdn/EZTBGKQ7.js +4 -0
- package/dist/cdn/F2IKAKN4.js +4 -0
- package/dist/cdn/F2J5JUUT.js +4 -0
- package/dist/cdn/F4K4S5PS.js +4 -0
- package/dist/cdn/FAWHL3ZH.js +4 -0
- package/dist/cdn/FCTXJAN7.js +4 -0
- package/dist/cdn/FE5S4VNK.js +4 -0
- package/dist/cdn/FFHYNQDP.js +4 -0
- package/dist/cdn/FHLX7TCB.js +4 -0
- package/dist/cdn/FI2EX7L4.js +4 -0
- package/dist/cdn/FQSXQLCF.js +4 -0
- package/dist/cdn/FSJPB6BR.js +4 -0
- package/dist/cdn/FTVBCKJ7.js +4 -0
- package/dist/cdn/FU74AFJH.js +4 -0
- package/dist/cdn/FWF7MSJT.js +4 -0
- package/dist/cdn/FWNNBYVK.js +4 -0
- package/dist/cdn/FX7UWUTP.js +4 -0
- package/dist/cdn/FYSL2W45.js +4 -0
- package/dist/cdn/FZF4Q4J6.js +4 -0
- package/dist/cdn/FZKBLTHQ.js +4 -0
- package/dist/cdn/G5D6WQHK.js +4 -0
- package/dist/cdn/G5EI4QPO.js +4 -0
- package/dist/cdn/GAONH7H6.js +4 -0
- package/dist/cdn/GB6MPHQX.js +4 -0
- package/dist/cdn/GE7Z6VIE.js +4 -0
- package/dist/cdn/GED6XXQO.js +4 -0
- package/dist/cdn/GFMNO4D6.js +4 -0
- package/dist/cdn/GH3Z2F3D.js +4 -0
- package/dist/cdn/GHHHXAS4.js +4 -0
- package/dist/cdn/GIRZYZ4O.js +4 -0
- package/dist/cdn/GJ3JDK4H.js +4 -0
- package/dist/cdn/GLKVNVAO.js +4 -0
- package/dist/cdn/GLU3LPZK.js +4 -0
- package/dist/cdn/GNTHOLTD.js +4 -0
- package/dist/cdn/GPBVNJHG.js +4 -0
- package/dist/cdn/GU3TXNE2.js +4 -0
- package/dist/cdn/GU7YI3BQ.js +4 -0
- package/dist/cdn/GVZGIKF3.js +4 -0
- package/dist/cdn/GW4373AD.js +4 -0
- package/dist/cdn/GXDZAIG6.js +4 -0
- package/dist/cdn/GYA5FXDJ.js +4 -0
- package/dist/cdn/H56X6CH7.js +4 -0
- package/dist/cdn/H7SCOICS.js +4 -0
- package/dist/cdn/HAY22WZY.js +4 -0
- package/dist/cdn/HBUYROPL.js +4 -0
- package/dist/cdn/HCSJVCG6.js +4 -0
- package/dist/cdn/HD5MOABB.js +4 -0
- package/dist/cdn/HD5OHZ7H.js +4 -0
- package/dist/cdn/HFCSVEEN.js +4 -0
- package/dist/cdn/HFT4NPWG.js +4 -0
- package/dist/cdn/HJXTYGXR.js +4 -0
- package/dist/cdn/HSQTE2PW.js +4 -0
- package/dist/cdn/HTSDBK5W.js +4 -0
- package/dist/cdn/HXNGICJM.js +4 -0
- package/dist/cdn/HYFVYODX.js +6 -0
- package/dist/cdn/HZS2DMXX.js +4 -0
- package/dist/cdn/I2HYADJ4.js +4 -0
- package/dist/cdn/I4NW3ROR.js +4 -0
- package/dist/cdn/IAIA5LKZ.js +4 -0
- package/dist/cdn/IBF6ALVV.js +4 -0
- package/dist/cdn/IBR4PYDW.js +4 -0
- package/dist/cdn/IE5EUGCH.js +12 -0
- package/dist/cdn/IMQN32HR.js +4 -0
- package/dist/cdn/INL63SS6.js +4 -0
- package/dist/cdn/IOZQF44W.js +4 -0
- package/dist/cdn/IPOXI5NH.js +4 -0
- package/dist/cdn/IPTPJEVD.js +4 -0
- package/dist/cdn/IQDQZATD.js +4 -0
- package/dist/cdn/IQWOQXO2.js +4 -0
- package/dist/cdn/ITTWFVMW.js +4 -0
- package/dist/cdn/IVXOKQZL.js +4 -0
- package/dist/cdn/IWHCMQUU.js +4 -0
- package/dist/cdn/IWNMTUSI.js +4 -0
- package/dist/cdn/IZGW5BEY.js +4 -0
- package/dist/cdn/J37OWNZV.js +4 -0
- package/dist/cdn/JAOXLPAT.js +4 -0
- package/dist/cdn/JEDJQ53J.js +4 -0
- package/dist/cdn/JF5OJJV7.js +4 -0
- package/dist/cdn/JFHARSN2.js +4 -0
- package/dist/cdn/JFWOWWTD.js +4 -0
- package/dist/cdn/JHOT3UB6.js +4 -0
- package/dist/cdn/JI73HRBP.js +4 -0
- package/dist/cdn/JIGJQDLZ.js +4 -0
- package/dist/cdn/JKJOSAP3.js +4 -0
- package/dist/cdn/JL7VGORU.js +4 -0
- package/dist/cdn/JMXA2OTQ.js +4 -0
- package/dist/cdn/JOHTVC4E.js +4 -0
- package/dist/cdn/JRCVJWMG.js +4 -0
- package/dist/cdn/JTAQLDUQ.js +4 -0
- package/dist/cdn/JTEHISJ5.js +4 -0
- package/dist/cdn/JTQK6TAG.js +52 -0
- package/dist/cdn/K2OR2N3X.js +4 -0
- package/dist/cdn/K62LTECV.js +4 -0
- package/dist/cdn/K65WBHK3.js +4 -0
- package/dist/cdn/KB4Y3PLG.js +4 -0
- package/dist/cdn/KBPBFGED.js +4 -0
- package/dist/cdn/KDJPBFKD.js +4 -0
- package/dist/cdn/KGRJBPJO.js +4 -0
- package/dist/cdn/KIKGDE5Y.js +4 -0
- package/dist/cdn/KJR7TS4F.js +11 -0
- package/dist/cdn/KK2FJRFT.js +4 -0
- package/dist/cdn/KKBEUIPX.js +4 -0
- package/dist/cdn/KM2R3OGF.js +4 -0
- package/dist/cdn/KQ4XVU6J.js +4 -0
- package/dist/cdn/KSSGCU6L.js +4 -0
- package/dist/cdn/KZRF6AAV.js +4 -0
- package/dist/cdn/L35FFC3D.js +4 -0
- package/dist/cdn/L3KYUYDE.js +4 -0
- package/dist/cdn/L5UQMHPB.js +4 -0
- package/dist/cdn/L7RLGCVB.js +4 -0
- package/dist/cdn/LAKAGI3Y.js +4 -0
- package/dist/cdn/LBOLFBYM.js +4 -0
- package/dist/cdn/LCMNJUT4.js +4 -0
- package/dist/cdn/LCO3RXRL.js +4 -0
- package/dist/cdn/LDUBK2RB.js +4 -0
- package/dist/cdn/LDYWQXGO.js +4 -0
- package/dist/cdn/LF4T53NA.js +4 -0
- package/dist/cdn/LG7QOSBF.js +4 -0
- package/dist/cdn/LJHD3VDG.js +4 -0
- package/dist/cdn/LRH2RKN6.js +4 -0
- package/dist/cdn/LUGXYSK6.js +4 -0
- package/dist/cdn/LV5W663K.js +4 -0
- package/dist/cdn/LXGRGJFZ.js +4 -0
- package/dist/cdn/LXOD6VYP.js +4 -0
- package/dist/cdn/LXWDUTUI.js +4 -0
- package/dist/cdn/LYS7HKXF.js +4 -0
- package/dist/cdn/LZDVGKGJ.js +4 -0
- package/dist/cdn/M7L57YU4.js +4 -0
- package/dist/cdn/M7XIFSB3.js +4 -0
- package/dist/cdn/MDEC76QO.js +4 -0
- package/dist/cdn/MGHCC7WE.js +4 -0
- package/dist/cdn/MGVBH6BK.js +4 -0
- package/dist/cdn/MHGPHJBX.js +4 -0
- package/dist/cdn/MJFJ4JC5.js +4 -0
- package/dist/cdn/MKMKAFCX.js +4 -0
- package/dist/cdn/MPYALM4N.js +4 -0
- package/dist/cdn/MQXGINY2.js +4 -0
- package/dist/cdn/MSERAWI6.js +4 -0
- package/dist/cdn/MTP44WAO.js +4 -0
- package/dist/cdn/MUQ7BJCK.js +4 -0
- package/dist/cdn/MWJULILT.js +4 -0
- package/dist/cdn/MYBY7OCF.js +4 -0
- package/dist/cdn/MZBCXP4F.js +4 -0
- package/dist/cdn/N2U6NC4D.js +4 -0
- package/dist/cdn/N3CGPQHM.js +4 -0
- package/dist/cdn/N5F2ATHB.js +4 -0
- package/dist/cdn/N5K5X2QV.js +4 -0
- package/dist/cdn/N7REPZ5K.js +4 -0
- package/dist/cdn/NB7J3LUS.js +4 -0
- package/dist/cdn/NCDIG7IN.js +4 -0
- package/dist/cdn/NFAM2LVT.js +4 -0
- package/dist/cdn/NHO4Z67L.js +4 -0
- package/dist/cdn/NHPH3M7S.js +4 -0
- package/dist/cdn/NJS2QVGK.js +4 -0
- package/dist/cdn/NJWXHG57.js +4 -0
- package/dist/cdn/NMHSOR5N.js +4 -0
- package/dist/cdn/NMNA5FIX.js +4 -0
- package/dist/cdn/NNKLHH47.js +4 -0
- package/dist/cdn/NOC3XXKA.js +4 -0
- package/dist/cdn/NRE3ONF5.js +4 -0
- package/dist/cdn/NU2OVMEQ.js +4 -0
- package/dist/cdn/NXFLYCQ6.js +4 -0
- package/dist/cdn/NYAFUQXI.js +4 -0
- package/dist/cdn/O3MXAP3N.js +4 -0
- package/dist/cdn/O3V4CWPM.js +4 -0
- package/dist/cdn/O4TU3B7E.js +4 -0
- package/dist/cdn/O67ZYVM7.js +4 -0
- package/dist/cdn/OAA3MQE6.js +4 -0
- package/dist/cdn/OAKJY3XV.js +4 -0
- package/dist/cdn/OAVBTVPP.js +4 -0
- package/dist/cdn/OFPLTZ6C.js +4 -0
- package/dist/cdn/OFT7LSWG.js +4 -0
- package/dist/cdn/OG2DITAO.js +4 -0
- package/dist/cdn/OIMNBFSB.js +4 -0
- package/dist/cdn/OJNEX4W4.js +4 -0
- package/dist/cdn/OJOV5MVR.js +4 -0
- package/dist/cdn/OM6MUBJ5.js +4 -0
- package/dist/cdn/OQVAG6ZU.js +4 -0
- package/dist/cdn/ORGSCNIV.js +6 -0
- package/dist/cdn/ORJJ2IKU.js +4 -0
- package/dist/cdn/OTZPFQH2.js +4 -0
- package/dist/cdn/OVRI2ZBS.js +4 -0
- package/dist/cdn/OWTEZVIS.js +4 -0
- package/dist/cdn/OZCXK5ZY.js +4 -0
- package/dist/cdn/P32OJBVF.js +4 -0
- package/dist/cdn/P3QJW2CD.js +4 -0
- package/dist/cdn/P5ISPMPO.js +4 -0
- package/dist/cdn/P7HZDEDP.js +4 -0
- package/dist/cdn/PAKRDHEG.js +4 -0
- package/dist/cdn/PE6KCQVF.js +4 -0
- package/dist/cdn/PJ5ZOOQK.js +4 -0
- package/dist/cdn/PLEM7JCH.js +4 -0
- package/dist/cdn/PLP6V3C6.js +4 -0
- package/dist/cdn/PNWRKREO.js +4 -0
- package/dist/cdn/PPZHMRZ4.js +4 -0
- package/dist/cdn/PQQBKRWS.js +4 -0
- package/dist/cdn/PS6ZMIQH.js +4 -0
- package/dist/cdn/PST7PDJF.js +4 -0
- package/dist/cdn/PTDQZJZM.js +4 -0
- package/dist/cdn/PUBRXVPK.js +4 -0
- package/dist/cdn/PWAOZO44.js +4 -0
- package/dist/cdn/PWC75KUQ.js +4 -0
- package/dist/cdn/PWJ3WE5X.js +4 -0
- package/dist/cdn/PWWQZ4N2.js +4 -0
- package/dist/cdn/PWXCQYLI.js +4 -0
- package/dist/cdn/PXDW3FQS.js +4 -0
- package/dist/cdn/Q2NAK4GJ.js +4 -0
- package/dist/cdn/Q2OQPUZD.js +4 -0
- package/dist/cdn/Q6NONGOZ.js +4 -0
- package/dist/cdn/Q7VGO2LG.js +4 -0
- package/dist/cdn/QA252THP.js +4 -0
- package/dist/cdn/QCCIP4AZ.js +4 -0
- package/dist/cdn/QCJHCHV6.js +4 -0
- package/dist/cdn/QD5JSSUQ.js +4 -0
- package/dist/cdn/QFBAM65A.js +4 -0
- package/dist/cdn/QG5QHQGS.js +4 -0
- package/dist/cdn/QHAENVL6.js +4 -0
- package/dist/cdn/QHC5FX7C.js +4 -0
- package/dist/cdn/QIGDHIA5.js +9 -0
- package/dist/cdn/QJCPPMLS.js +4 -0
- package/dist/cdn/QONHQ4HG.js +4 -0
- package/dist/cdn/QRSTAJL4.js +4 -0
- package/dist/cdn/QSVB2DV2.js +4 -0
- package/dist/cdn/QT7UBQ5Z.js +4 -0
- package/dist/cdn/QVMYZGQY.js +4 -0
- package/dist/cdn/QYNHH6IA.js +4 -0
- package/dist/cdn/R2Q756P7.js +4 -0
- package/dist/cdn/R3TZ5XSV.js +4 -0
- package/dist/cdn/R5V7HP5F.js +4 -0
- package/dist/cdn/R6XYHALF.js +4 -0
- package/dist/cdn/R75X4YF2.js +4 -0
- package/dist/cdn/R7PO4UJF.js +4 -0
- package/dist/cdn/RC2RWIT7.js +4 -0
- package/dist/cdn/RDMYFPBJ.js +4 -0
- package/dist/cdn/REDGJK2T.js +4 -0
- package/dist/cdn/REYJG5G7.js +4 -0
- package/dist/cdn/RI62ELPS.js +4 -0
- package/dist/cdn/RJ7WP6HP.js +4 -0
- package/dist/cdn/RL3AJ67W.js +4 -0
- package/dist/cdn/RO6K7NEK.js +4 -0
- package/dist/cdn/RPGIDJHQ.js +4 -0
- package/dist/cdn/RS3ER4IP.js +4 -0
- package/dist/cdn/RSAAUBJR.js +4 -0
- package/dist/cdn/RSLSYQJY.js +4 -0
- package/dist/cdn/RT6E4Q7F.js +4 -0
- package/dist/cdn/RT7XSENI.js +4 -0
- package/dist/cdn/RTE5OXT4.js +4 -0
- package/dist/cdn/RUU7SS3N.js +4 -0
- package/dist/cdn/RUYOIAL5.js +4 -0
- package/dist/cdn/RWDJ4JB7.js +4 -0
- package/dist/cdn/RWPPMQG5.js +4 -0
- package/dist/cdn/RYPM4OXN.js +4 -0
- package/dist/cdn/S35PGW3K.js +4 -0
- package/dist/cdn/S4BMFPGF.js +4 -0
- package/dist/cdn/S4V7JN5U.js +4 -0
- package/dist/cdn/SAZEQGRA.js +4 -0
- package/dist/cdn/SBJBF3FU.js +4 -0
- package/dist/cdn/SD2YP3TY.js +4 -0
- package/dist/cdn/SDAC36VQ.js +4 -0
- package/dist/cdn/SDLYYMJK.js +4 -0
- package/dist/cdn/SH3JT2DL.js +4 -0
- package/dist/cdn/SH3M7OUG.js +4 -0
- package/dist/cdn/SHXAZCZ6.js +4 -0
- package/dist/cdn/SKMYVSH5.js +4 -0
- package/dist/cdn/SMI77T56.js +4 -0
- package/dist/cdn/SMWQDQCJ.js +4 -0
- package/dist/cdn/SNWCIRAD.js +4 -0
- package/dist/cdn/SQBGCTIG.js +4 -0
- package/dist/cdn/SRNIYEBY.js +4 -0
- package/dist/cdn/SRPVCLVK.js +4 -0
- package/dist/cdn/STSZ62IT.js +4 -0
- package/dist/cdn/SYZOIVIL.js +4 -0
- package/dist/cdn/SZ7LGGV4.js +4 -0
- package/dist/cdn/T3S3WTU6.js +4 -0
- package/dist/cdn/T4FPKSE7.js +4 -0
- package/dist/cdn/T6JUGV7K.js +4 -0
- package/dist/cdn/T6SSU75F.js +4 -0
- package/dist/cdn/T6Z66QDS.js +4 -0
- package/dist/cdn/T7CUMWQU.js +4 -0
- package/dist/cdn/TCA2LMHV.js +4 -0
- package/dist/cdn/TCJP3DNK.js +4 -0
- package/dist/cdn/TCORQMTH.js +4 -0
- package/dist/cdn/TDAZLKIJ.js +4 -0
- package/dist/cdn/TEVT3K5Z.js +4 -0
- package/dist/cdn/TGO3TJTQ.js +4 -0
- package/dist/cdn/TINWK3RZ.js +4 -0
- package/dist/cdn/TJUNYPU7.js +4 -0
- package/dist/cdn/TLGXQA4A.js +24 -0
- package/dist/cdn/TNTHJWZ5.js +4 -0
- package/dist/cdn/TNU6GBTY.js +4 -0
- package/dist/cdn/TOFV5ZXT.js +4 -0
- package/dist/cdn/TPPRMIIX.js +51 -0
- package/dist/cdn/TQAUACZG.js +4 -0
- package/dist/cdn/TTGAH6PP.js +4 -0
- package/dist/cdn/TUM4FFK6.js +4 -0
- package/dist/cdn/TWSCLD3E.js +4 -0
- package/dist/cdn/TXAMA3SE.js +4 -0
- package/dist/cdn/TY5HGJG4.js +4 -0
- package/dist/cdn/TZ6RTD77.js +4 -0
- package/dist/cdn/TZAJYF55.js +4 -0
- package/dist/cdn/U2I6WGYO.js +4 -0
- package/dist/cdn/U4MWSQ5G.js +4 -0
- package/dist/cdn/U4WQJIR5.js +4 -0
- package/dist/cdn/U5PEXB4L.js +4 -0
- package/dist/cdn/U7YBDKXY.js +4 -0
- package/dist/cdn/UA53TF6W.js +4 -0
- package/dist/cdn/UAJQ4ARX.js +4 -0
- package/dist/cdn/UC5QBDCJ.js +4 -0
- package/dist/cdn/UF7MGN6X.js +4 -0
- package/dist/cdn/UH3AFXPS.js +4 -0
- package/dist/cdn/UJRDPZFP.js +4 -0
- package/dist/cdn/ULZQZKUZ.js +4 -0
- package/dist/cdn/UOKF6WVP.js +4 -0
- package/dist/cdn/UQ7TFERC.js +4 -0
- package/dist/cdn/UVA3SC5X.js +4 -0
- package/dist/cdn/UYV4B6YW.js +4 -0
- package/dist/cdn/V2AGEC3A.js +4 -0
- package/dist/cdn/V2BI2VHP.js +4 -0
- package/dist/cdn/V3H7QKXT.js +4 -0
- package/dist/cdn/V3YI6LAT.js +4 -0
- package/dist/cdn/V4BLBEDG.js +4 -0
- package/dist/cdn/V4P3GZB5.js +4 -0
- package/dist/cdn/V6SWUEJD.js +4 -0
- package/dist/cdn/VC6BWNWX.js +4 -0
- package/dist/cdn/VD5O5ODH.js +4 -0
- package/dist/cdn/VET3J3IW.js +4 -0
- package/dist/cdn/VFCVNBUE.js +4 -0
- package/dist/cdn/VFDB674C.js +4 -0
- package/dist/cdn/VFX7L2CX.js +4 -0
- package/dist/cdn/VG34UAA5.js +4 -0
- package/dist/cdn/VJG4U4AP.js +4 -0
- package/dist/cdn/VMNGXZOR.js +4 -0
- package/dist/cdn/VMXG2BVF.js +4 -0
- package/dist/cdn/VQOQAD2F.js +4 -0
- package/dist/cdn/VRAJINCV.js +4 -0
- package/dist/cdn/VTMEB3EG.js +4 -0
- package/dist/cdn/VUCREV23.js +4 -0
- package/dist/cdn/VWE2HAGI.js +4 -0
- package/dist/cdn/VYJ7DIDQ.js +4 -0
- package/dist/cdn/VZ37KUSK.js +4 -0
- package/dist/cdn/W2JC5V2P.js +4 -0
- package/dist/cdn/W3MFYBL7.js +4 -0
- package/dist/cdn/W3PCWWTY.js +4 -0
- package/dist/cdn/WALQAPVG.js +4 -0
- package/dist/cdn/WB537PKD.js +4 -0
- package/dist/cdn/WDYH2LV6.js +4 -0
- package/dist/cdn/WFOY53HO.js +4 -0
- package/dist/cdn/WJXMQZVT.js +4 -0
- package/dist/cdn/WKJX6XLJ.js +4 -0
- package/dist/cdn/WKPQE42C.js +4 -0
- package/dist/cdn/WL4FZMKI.js +4 -0
- package/dist/cdn/WQ4RFOSX.js +4 -0
- package/dist/cdn/WQJG35MS.js +4 -0
- package/dist/cdn/WR7K24H4.js +4 -0
- package/dist/cdn/WRG275ZV.js +4 -0
- package/dist/cdn/WS373WFL.js +4 -0
- package/dist/cdn/WXMMIZGH.js +4 -0
- package/dist/cdn/WYTOYPIS.js +4 -0
- package/dist/cdn/WZNPF6G6.js +4 -0
- package/dist/cdn/WZOWBQ3P.js +4 -0
- package/dist/cdn/X3G6AENS.js +4 -0
- package/dist/cdn/X4SGSYN2.js +4 -0
- package/dist/cdn/X7GVSJJM.js +4 -0
- package/dist/cdn/XBDHPAUF.js +4 -0
- package/dist/cdn/XBRGC42P.js +4 -0
- package/dist/cdn/XCSJOUMK.js +4 -0
- package/dist/cdn/XEEYQOTT.js +4 -0
- package/dist/cdn/XERL66GE.js +4 -0
- package/dist/cdn/XFKHTIRW.js +4 -0
- package/dist/cdn/XH3KK5NJ.js +4 -0
- package/dist/cdn/XIBM7X6Z.js +4 -0
- package/dist/cdn/XNY7SKQM.js +4 -0
- package/dist/cdn/XOFVOPVB.js +4 -0
- package/dist/cdn/XPEWK3GU.js +4 -0
- package/dist/cdn/XPHHBFHQ.js +4 -0
- package/dist/cdn/XRO5II54.js +4 -0
- package/dist/cdn/XSRJIVEU.js +4 -0
- package/dist/cdn/XWHQSODZ.js +4 -0
- package/dist/cdn/XXZ4OIHY.js +4 -0
- package/dist/cdn/XZO3RG3B.js +5 -0
- package/dist/cdn/Y3R2H3CQ.js +4 -0
- package/dist/cdn/Y3SDERWY.js +4 -0
- package/dist/cdn/Y6X3H2J3.js +4 -0
- package/dist/cdn/Y7V7DON5.js +4 -0
- package/dist/cdn/YBMQZI7O.js +4 -0
- package/dist/cdn/YDGMADTP.js +4 -0
- package/dist/cdn/YFGBS7ZN.js +4 -0
- package/dist/cdn/YIU5E5VB.js +4 -0
- package/dist/cdn/YM37ZTMH.js +4 -0
- package/dist/cdn/YMPFJKS4.js +4 -0
- package/dist/cdn/YNU4H6EX.js +4 -0
- package/dist/cdn/YOQ4XY6E.js +4 -0
- package/dist/cdn/YP4GN2SW.js +4 -0
- package/dist/cdn/YPA75PX2.js +4 -0
- package/dist/cdn/YPLXXJY6.js +4 -0
- package/dist/cdn/YTD4XOXE.js +4 -0
- package/dist/cdn/YXKJN4HA.js +4 -0
- package/dist/cdn/YXO3NVUO.js +4 -0
- package/dist/cdn/YZCTRNPN.js +4 -0
- package/dist/cdn/Z3DSUVFJ.js +4 -0
- package/dist/cdn/Z3FRUJV5.js +4 -0
- package/dist/cdn/Z4744LUM.js +4 -0
- package/dist/cdn/Z4JM7LDH.js +4 -0
- package/dist/cdn/Z5NY5GJ3.js +4 -0
- package/dist/cdn/ZBMDKICR.js +4 -0
- package/dist/cdn/ZBRMHMYN.js +4 -0
- package/dist/cdn/ZDHZGMPT.js +4 -0
- package/dist/cdn/ZHDVDQ36.js +4 -0
- package/dist/cdn/ZIAU4KIH.js +4 -0
- package/dist/cdn/ZIIICCFR.js +4 -0
- package/dist/cdn/ZJSU7GUF.js +4 -0
- package/dist/cdn/ZK4TMGQS.js +4 -0
- package/dist/cdn/ZKAGTV7U.js +4 -0
- package/dist/cdn/ZLLPWSW4.js +4 -0
- package/dist/cdn/ZLQBPQJB.js +4 -0
- package/dist/cdn/ZNX2OKE2.js +4 -0
- package/dist/cdn/ZOUP3MMK.js +4 -0
- package/dist/cdn/ZQAEDPES.js +4 -0
- package/dist/cdn/ZQFHXENN.js +4 -0
- package/dist/cdn/ZR7CMDY3.js +4 -0
- package/dist/cdn/ZRAJQHXW.js +4 -0
- package/dist/cdn/ZRFAMWFJ.js +4 -0
- package/dist/cdn/ZRPMDPQR.js +4 -0
- package/dist/cdn/ZUQIUMZG.js +4 -0
- package/dist/cdn/ZX7AD5TQ.js +4 -0
- package/dist/cdn/ZZGQQN2X.js +4 -0
- package/dist/cdn/ZZXD2NXJ.js +8 -0
- package/dist/cdn/index.js +3 -3
- package/dist/chunks/findColumnAndNodeIndex.js +2 -2
- package/dist/chunks/getResponsiveClasses.js +2 -2
- package/dist/chunks/interpolate-translations.js +2 -2
- package/dist/chunks/isNodeVisible.js +2 -2
- package/dist/chunks/layoutContext.js +2 -2
- package/dist/chunks/migrateTextCard.js +2 -2
- package/dist/chunks/processLayout.js +2 -2
- package/dist/chunks/runtime.js +3 -3
- package/dist/chunks/state.js +2 -2
- package/dist/chunks/typeGuards.js +2 -2
- package/dist/chunks/useGlobalContext.js +2 -2
- package/dist/chunks/useT9n.js +2 -2
- package/dist/chunks/util.js +2 -2
- package/dist/components/arcgis-chat-shell/customElement.js +2 -2
- package/dist/components/arcgis-chat-ui/customElement.js +3 -3
- package/dist/components/arcgis-chat-ui/functional/chat-action/customElement.js +2 -2
- package/dist/components/arcgis-chat-ui/functional/chat-response/customElement.js +2 -2
- package/dist/components/arcgis-hub-ai-assistant/customElement.js +2 -2
- package/dist/components/arcgis-hub-entity-associations-card/customElement.js +2 -2
- package/dist/components/arcgis-hub-entity-metrics-card/customElement.js +2 -2
- package/dist/components/arcgis-hub-entity-status-card/customElement.js +2 -2
- package/dist/components/arcgis-hub-entity-view-layout/customElement.js +2 -2
- package/dist/components/arcgis-layout/customElement.js +2 -2
- package/dist/components/arcgis-layout-column/customElement.js +2 -2
- package/dist/components/arcgis-layout-container/customElement.js +2 -2
- package/dist/components/arcgis-layout-editor-toolbar/customElement.js +2 -2
- package/dist/components/arcgis-layout-node-controls/customElement.js +2 -2
- package/dist/components/arcgis-layout-node-editor/customElement.js +2 -2
- package/dist/components/arcgis-layout-node-editor/layout-node-editor-dynamic-tag/customElement.js +2 -2
- package/dist/components/arcgis-layout-node-wrapper/customElement.js +2 -2
- package/dist/components/arcgis-layout-row/customElement.js +2 -2
- package/dist/components/arcgis-layout-section/customElement.js +2 -2
- package/dist/components/arcgis-nav-card/customElement.js +2 -2
- package/dist/components/arcgis-text-card/customElement.js +2 -2
- package/dist/components/layouts/components/layout-node/customElement.js +2 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/embed-config.js +2 -2
- package/dist/index.js +2 -2
- package/dist/loader.js +2 -2
- package/package.json +4 -4
- package/dist/cdn/22RBJFX2.js +0 -4
- package/dist/cdn/24EVLQYM.js +0 -4
- package/dist/cdn/24SOO3V6.js +0 -4
- package/dist/cdn/256ZYNBG.js +0 -4
- package/dist/cdn/257IVFDI.js +0 -4
- package/dist/cdn/27ISLZHP.js +0 -4
- package/dist/cdn/2CF67G6V.js +0 -4
- package/dist/cdn/2EYNS3KK.js +0 -4
- package/dist/cdn/2KH7KQ7O.js +0 -4
- package/dist/cdn/2L52OGPT.js +0 -4
- package/dist/cdn/2MR7RSO4.js +0 -4
- package/dist/cdn/2PQGIE4M.js +0 -4
- package/dist/cdn/2RX7ORIO.js +0 -4
- package/dist/cdn/2TTGX4BP.js +0 -4
- package/dist/cdn/2W3NB5OH.js +0 -4
- package/dist/cdn/2XVODORP.js +0 -4
- package/dist/cdn/2Y4SO36O.js +0 -4
- package/dist/cdn/32TMFF55.js +0 -4
- package/dist/cdn/332QJ4R4.js +0 -4
- package/dist/cdn/33TAAJY6.js +0 -4
- package/dist/cdn/34326WRW.js +0 -4
- package/dist/cdn/345FHKRN.js +0 -4
- package/dist/cdn/345SXIY2.js +0 -4
- package/dist/cdn/3BM6XGPZ.js +0 -4
- package/dist/cdn/3D6OGV7G.js +0 -4
- package/dist/cdn/3DWAAW52.js +0 -4
- package/dist/cdn/3ECXOHLV.js +0 -4
- package/dist/cdn/3HOIZAXC.js +0 -4
- package/dist/cdn/3M2FJGLY.js +0 -4
- package/dist/cdn/3M4AIKT2.js +0 -4
- package/dist/cdn/3MUSJF7P.js +0 -4
- package/dist/cdn/3PTMSAQS.js +0 -4
- package/dist/cdn/3QO6RNA7.js +0 -4
- package/dist/cdn/3RJP2Q4M.js +0 -4
- package/dist/cdn/3WRGGZIC.js +0 -4
- package/dist/cdn/3ZIYURSE.js +0 -4
- package/dist/cdn/42VRQU3P.js +0 -4
- package/dist/cdn/42WFZTNN.js +0 -4
- package/dist/cdn/44UVKDT6.js +0 -4
- package/dist/cdn/46LTLVZX.js +0 -4
- package/dist/cdn/4GQ3ZJ6M.js +0 -4
- package/dist/cdn/4IEENWRW.js +0 -4
- package/dist/cdn/4JT3LYMX.js +0 -4
- package/dist/cdn/4KDEF7PZ.js +0 -4
- package/dist/cdn/4KKG6KXK.js +0 -4
- package/dist/cdn/4LHS6S3M.js +0 -4
- package/dist/cdn/4LQJTZSG.js +0 -4
- package/dist/cdn/4PFGSYOC.js +0 -4
- package/dist/cdn/4PJERJHD.js +0 -4
- package/dist/cdn/4R7YZO2W.js +0 -4
- package/dist/cdn/4RRW73BF.js +0 -4
- package/dist/cdn/4YNPZG3J.js +0 -4
- package/dist/cdn/4Z775UOR.js +0 -4
- package/dist/cdn/4ZWLYDE7.js +0 -4
- package/dist/cdn/52Y3UEOW.js +0 -4
- package/dist/cdn/52Z2LDAI.js +0 -4
- package/dist/cdn/54GPWV2F.js +0 -4
- package/dist/cdn/54XPBQ6P.js +0 -4
- package/dist/cdn/5AVECYMG.js +0 -4
- package/dist/cdn/5BMESZTT.js +0 -4
- package/dist/cdn/5CWE7GB5.js +0 -4
- package/dist/cdn/5D2SILXR.js +0 -4
- package/dist/cdn/5EKMXXBP.js +0 -4
- package/dist/cdn/5FLZBOZ7.js +0 -4
- package/dist/cdn/5G2HCOBP.js +0 -4
- package/dist/cdn/5HJMZD5E.js +0 -4
- package/dist/cdn/5HNIY4GF.js +0 -4
- package/dist/cdn/5J4FQRID.js +0 -4
- package/dist/cdn/5JVJXG62.js +0 -4
- package/dist/cdn/5KZPV6JO.js +0 -4
- package/dist/cdn/5M4HEWDL.js +0 -4
- package/dist/cdn/5MCRMZ25.js +0 -4
- package/dist/cdn/5NW6QRHI.js +0 -4
- package/dist/cdn/5OPYRDP4.js +0 -4
- package/dist/cdn/5PJGJY4S.js +0 -4
- package/dist/cdn/5QDWQ5JV.js +0 -4
- package/dist/cdn/5QQGKTUN.js +0 -4
- package/dist/cdn/5RLBDHNR.js +0 -4
- package/dist/cdn/5THBBOFC.js +0 -4
- package/dist/cdn/5WOPT3RA.js +0 -4
- package/dist/cdn/5WROIJBA.js +0 -4
- package/dist/cdn/5ZVIJMC7.js +0 -4
- package/dist/cdn/62OJKQND.js +0 -4
- package/dist/cdn/62Y5W3CI.js +0 -4
- package/dist/cdn/65GHAR3K.js +0 -4
- package/dist/cdn/66R2RIJ3.js +0 -4
- package/dist/cdn/674BNLA3.js +0 -4
- package/dist/cdn/6ESSRQ4N.js +0 -4
- package/dist/cdn/6FL6P453.js +0 -4
- package/dist/cdn/6K27VXAW.js +0 -4
- package/dist/cdn/6KXBDCUC.js +0 -4
- package/dist/cdn/6L5DYF5C.js +0 -4
- package/dist/cdn/6M5OWNQ3.js +0 -4
- package/dist/cdn/6NG5SX2S.js +0 -4
- package/dist/cdn/6NOJY4YV.js +0 -4
- package/dist/cdn/6RKR7NZS.js +0 -4
- package/dist/cdn/6TZGRXJP.js +0 -4
- package/dist/cdn/6XSD3WMG.js +0 -4
- package/dist/cdn/6Z5AWXCJ.js +0 -4
- package/dist/cdn/72XOBTP7.js +0 -4
- package/dist/cdn/74H6VSW3.js +0 -4
- package/dist/cdn/74ZP5T5W.js +0 -4
- package/dist/cdn/75RNS35W.js +0 -4
- package/dist/cdn/75SKTMDO.js +0 -4
- package/dist/cdn/77MU564U.js +0 -4
- package/dist/cdn/7BQPA23B.js +0 -4
- package/dist/cdn/7DLIXKTS.js +0 -4
- package/dist/cdn/7EQXUH7C.js +0 -4
- package/dist/cdn/7GE3QDK3.js +0 -4
- package/dist/cdn/7JASE5PA.js +0 -4
- package/dist/cdn/7JUIZUYK.js +0 -5470
- package/dist/cdn/7K2ZZWED.js +0 -4
- package/dist/cdn/7L544QDH.js +0 -4
- package/dist/cdn/7NM3R54S.js +0 -4
- package/dist/cdn/7UATVHXT.js +0 -4
- package/dist/cdn/7VGPUODG.js +0 -4
- package/dist/cdn/7X6DOW5G.js +0 -4
- package/dist/cdn/7YGVUYA5.js +0 -4
- package/dist/cdn/7YIDYY7Z.js +0 -4
- package/dist/cdn/7YZRHNKG.js +0 -4
- package/dist/cdn/7ZHIM6LM.js +0 -4
- package/dist/cdn/7ZWLCQY5.js +0 -4
- package/dist/cdn/A4QFHSST.js +0 -4
- package/dist/cdn/ADA4NTQ7.js +0 -4
- package/dist/cdn/AEWJVIII.js +0 -4
- package/dist/cdn/AH6NOUYW.js +0 -4
- package/dist/cdn/AJPPH3CM.js +0 -4
- package/dist/cdn/AL2D7MFO.js +0 -4
- package/dist/cdn/AMPMABFX.js +0 -4
- package/dist/cdn/ASOCVCFE.js +0 -4
- package/dist/cdn/AWIHSFYJ.js +0 -4
- package/dist/cdn/AWLGAP6W.js +0 -4
- package/dist/cdn/AWWP2GMY.js +0 -4
- package/dist/cdn/AXSCFJWR.js +0 -4
- package/dist/cdn/B4W5CD2D.js +0 -4
- package/dist/cdn/B4WWTJRZ.js +0 -4
- package/dist/cdn/BAODBNJ5.js +0 -4
- package/dist/cdn/BAORCWT7.js +0 -4
- package/dist/cdn/BAOSZPPY.js +0 -4
- package/dist/cdn/BC2FB7TM.js +0 -4
- package/dist/cdn/BGM4J6IN.js +0 -4
- package/dist/cdn/BKSQTUVW.js +0 -4
- package/dist/cdn/BLBIHP77.js +0 -4
- package/dist/cdn/BLQ6NNGV.js +0 -4
- package/dist/cdn/BQMP6GD4.js +0 -4
- package/dist/cdn/BRA63LZO.js +0 -4
- package/dist/cdn/BUEDX6J2.js +0 -4
- package/dist/cdn/BUI4XXAM.js +0 -4
- package/dist/cdn/BWBT7WH2.js +0 -4
- package/dist/cdn/BWMIBVOR.js +0 -4
- package/dist/cdn/BY47WVWC.js +0 -4
- package/dist/cdn/BYLO6EG6.js +0 -4
- package/dist/cdn/BYNLG33I.js +0 -4
- package/dist/cdn/C2OUYAUM.js +0 -4
- package/dist/cdn/C3B6XTW4.js +0 -4
- package/dist/cdn/C3J236KO.js +0 -4
- package/dist/cdn/C4HTHLDE.js +0 -4
- package/dist/cdn/C5VOO5DJ.js +0 -4
- package/dist/cdn/C6S6B5IO.js +0 -4
- package/dist/cdn/C6W7ITXY.js +0 -4
- package/dist/cdn/CAZ3L2ER.js +0 -4
- package/dist/cdn/CCHOSRGB.js +0 -4
- package/dist/cdn/CEORYDIT.js +0 -4
- package/dist/cdn/CEQ4FCWM.js +0 -4
- package/dist/cdn/CFNU3I4O.js +0 -4
- package/dist/cdn/CGSOBZAX.js +0 -4
- package/dist/cdn/CHJW7JRX.js +0 -4
- package/dist/cdn/CI7Q4OGE.js +0 -4
- package/dist/cdn/CIU5QWO2.js +0 -4
- package/dist/cdn/CJERACKC.js +0 -4
- package/dist/cdn/CKG4IUTV.js +0 -8
- package/dist/cdn/CNQF7VDT.js +0 -4
- package/dist/cdn/CPACQT3Y.js +0 -4
- package/dist/cdn/CQFH4RW4.js +0 -4
- package/dist/cdn/CTGQTJTB.js +0 -4
- package/dist/cdn/CZUCVVD3.js +0 -6
- package/dist/cdn/D5KUQC2D.js +0 -4
- package/dist/cdn/D6IGH2ZR.js +0 -4
- package/dist/cdn/DBWU42BV.js +0 -4
- package/dist/cdn/DC57CVU6.js +0 -4
- package/dist/cdn/DJMUWLKW.js +0 -4
- package/dist/cdn/DMVGSWBT.js +0 -4
- package/dist/cdn/DMWTGHES.js +0 -4
- package/dist/cdn/DN5GA4VZ.js +0 -4
- package/dist/cdn/DN6FL7MI.js +0 -8
- package/dist/cdn/DODN4HOZ.js +0 -4
- package/dist/cdn/DPLYTL4L.js +0 -4
- package/dist/cdn/DPOVUE45.js +0 -4
- package/dist/cdn/DRVAZDH5.js +0 -4
- package/dist/cdn/DSDYL5OB.js +0 -4
- package/dist/cdn/DUNMTJXH.js +0 -4
- package/dist/cdn/DVV4DTUJ.js +0 -4
- package/dist/cdn/DVZMG54O.js +0 -4
- package/dist/cdn/DWPQTBOE.js +0 -4
- package/dist/cdn/DZHV2E3J.js +0 -4
- package/dist/cdn/E3OA2MOJ.js +0 -4
- package/dist/cdn/E6DUI77B.js +0 -4
- package/dist/cdn/E6EN7KGU.js +0 -4
- package/dist/cdn/E6YRC4QW.js +0 -4
- package/dist/cdn/EAPN7IVI.js +0 -4
- package/dist/cdn/EBXMEKDB.js +0 -4
- package/dist/cdn/EF6S7HGG.js +0 -4
- package/dist/cdn/EFEN2CUH.js +0 -4
- package/dist/cdn/EG56UO33.js +0 -4
- package/dist/cdn/ELA4K6OU.js +0 -4
- package/dist/cdn/EN2GPWRP.js +0 -4
- package/dist/cdn/EPCA6NHK.js +0 -4
- package/dist/cdn/ERIA7ASB.js +0 -4
- package/dist/cdn/ESAYJDFE.js +0 -4
- package/dist/cdn/ESY7X4O3.js +0 -4
- package/dist/cdn/EUDW4MH4.js +0 -4
- package/dist/cdn/EXIWBWFL.js +0 -4
- package/dist/cdn/EZIL7PMM.js +0 -4
- package/dist/cdn/F2U45HZN.js +0 -4
- package/dist/cdn/F4NVNTFO.js +0 -4
- package/dist/cdn/F4PISRRG.js +0 -4
- package/dist/cdn/F7CBQKAM.js +0 -4
- package/dist/cdn/FATISIDQ.js +0 -4
- package/dist/cdn/FB44DUOE.js +0 -4
- package/dist/cdn/FDFHKQW2.js +0 -4
- package/dist/cdn/FDNHQ5ER.js +0 -4
- package/dist/cdn/FEQZDNRP.js +0 -4
- package/dist/cdn/FHPBMJP3.js +0 -4
- package/dist/cdn/FI4KMYEK.js +0 -4
- package/dist/cdn/FICNNRCJ.js +0 -4
- package/dist/cdn/FIKJUHKF.js +0 -4
- package/dist/cdn/FLLAA76Q.js +0 -4
- package/dist/cdn/FMYC56MG.js +0 -4
- package/dist/cdn/FSXTMS4W.js +0 -4
- package/dist/cdn/FVDN73MM.js +0 -4
- package/dist/cdn/FY3IBPUI.js +0 -4
- package/dist/cdn/FZ4A7OEM.js +0 -4
- package/dist/cdn/G3YCWKKE.js +0 -4
- package/dist/cdn/G6XZMXC7.js +0 -4
- package/dist/cdn/GA2EZKPH.js +0 -4
- package/dist/cdn/GBJ7CXOV.js +0 -4
- package/dist/cdn/GCF3V2XU.js +0 -4
- package/dist/cdn/GEVG67QO.js +0 -4
- package/dist/cdn/GF7IBVRX.js +0 -4
- package/dist/cdn/GFV6FRRG.js +0 -4
- package/dist/cdn/GGIR2BEG.js +0 -4
- package/dist/cdn/GIJUX7MD.js +0 -4
- package/dist/cdn/GJBHMWP7.js +0 -4
- package/dist/cdn/GKOUIRIJ.js +0 -4
- package/dist/cdn/GKPHH6SI.js +0 -4
- package/dist/cdn/GL476QOF.js +0 -25
- package/dist/cdn/GMEQKBUR.js +0 -4
- package/dist/cdn/GQONEPGK.js +0 -4
- package/dist/cdn/GQRO7IQJ.js +0 -4
- package/dist/cdn/GRPCNXKO.js +0 -4
- package/dist/cdn/GSEMSDBV.js +0 -4
- package/dist/cdn/GT2ZOXYJ.js +0 -4
- package/dist/cdn/GTXBJBQI.js +0 -4
- package/dist/cdn/GVADJWF2.js +0 -4
- package/dist/cdn/GYQSTDTD.js +0 -4
- package/dist/cdn/H2EO5M5B.js +0 -4
- package/dist/cdn/H473UANC.js +0 -4
- package/dist/cdn/H4QVDUZN.js +0 -4
- package/dist/cdn/H4WG6RNG.js +0 -4
- package/dist/cdn/H5NJHP7M.js +0 -4
- package/dist/cdn/H7GOKO7U.js +0 -4
- package/dist/cdn/H7KPP7IU.js +0 -4
- package/dist/cdn/HCASHVYG.js +0 -4
- package/dist/cdn/HDKZRG6N.js +0 -4
- package/dist/cdn/HE4L3F4Z.js +0 -4
- package/dist/cdn/HJL5J4RK.js +0 -41
- package/dist/cdn/HJYYBTKT.js +0 -4
- package/dist/cdn/HM2VWZBZ.js +0 -4
- package/dist/cdn/HMUL64CB.js +0 -12
- package/dist/cdn/HPAUPXI2.js +0 -4
- package/dist/cdn/HQPBFUKM.js +0 -4
- package/dist/cdn/HYLGT5GV.js +0 -4
- package/dist/cdn/HZTTJYIZ.js +0 -4
- package/dist/cdn/HZWBXHS4.js +0 -4
- package/dist/cdn/I2NYEK2F.js +0 -4
- package/dist/cdn/I4VEAPWK.js +0 -4
- package/dist/cdn/I5WLUHK7.js +0 -4
- package/dist/cdn/I6UZPLGN.js +0 -4
- package/dist/cdn/I7HQEKPX.js +0 -4
- package/dist/cdn/IBOUCNYB.js +0 -4
- package/dist/cdn/IC6SWS7L.js +0 -4
- package/dist/cdn/ICIVQEVH.js +0 -4
- package/dist/cdn/IDDXHDH5.js +0 -4
- package/dist/cdn/IDHP2JVF.js +0 -4
- package/dist/cdn/IE73L27I.js +0 -4
- package/dist/cdn/IFZMTS2Z.js +0 -4
- package/dist/cdn/IGT5JAN3.js +0 -51
- package/dist/cdn/IGZFXSHN.js +0 -4
- package/dist/cdn/IHBTOPFO.js +0 -4
- package/dist/cdn/II6CS53S.js +0 -4
- package/dist/cdn/IJTAPRHU.js +0 -4
- package/dist/cdn/IK5K3EAS.js +0 -4
- package/dist/cdn/ILRAPVZS.js +0 -6
- package/dist/cdn/IN3OIP5M.js +0 -4
- package/dist/cdn/IN5PZORX.js +0 -4
- package/dist/cdn/IOEQ7FF3.js +0 -4
- package/dist/cdn/IOVIBQK6.js +0 -4
- package/dist/cdn/IQCQTSEP.js +0 -4
- package/dist/cdn/IRYLJIYS.js +0 -4
- package/dist/cdn/IT3LTDNS.js +0 -4
- package/dist/cdn/ITZWLZZT.js +0 -4
- package/dist/cdn/IU37YM4H.js +0 -4
- package/dist/cdn/IUIEFQH5.js +0 -4
- package/dist/cdn/IX56KOYK.js +0 -4
- package/dist/cdn/IXLMM4PV.js +0 -4
- package/dist/cdn/IYL2GVBR.js +0 -4
- package/dist/cdn/J7BVLKIG.js +0 -4
- package/dist/cdn/J7HUMHM3.js +0 -4
- package/dist/cdn/J7UQPCCB.js +0 -4
- package/dist/cdn/JHP2NQRQ.js +0 -12
- package/dist/cdn/JIOAQNDW.js +0 -4
- package/dist/cdn/JJA7IIQP.js +0 -4
- package/dist/cdn/JJSSQCXG.js +0 -4
- package/dist/cdn/JKDRWDOF.js +0 -4
- package/dist/cdn/JLIEZUYU.js +0 -4
- package/dist/cdn/JMVOJRJU.js +0 -4
- package/dist/cdn/JOZOP5ZK.js +0 -4
- package/dist/cdn/JPEE6DJ4.js +0 -4
- package/dist/cdn/JQT4IAMV.js +0 -4
- package/dist/cdn/JS72TYZS.js +0 -4
- package/dist/cdn/JSGXMD5M.js +0 -4
- package/dist/cdn/JSLHIPOQ.js +0 -4
- package/dist/cdn/JVHFTJ3A.js +0 -4
- package/dist/cdn/K4YA4CXE.js +0 -4
- package/dist/cdn/K7CS5N7P.js +0 -4
- package/dist/cdn/KABOUSAS.js +0 -4
- package/dist/cdn/KALEDBYN.js +0 -4
- package/dist/cdn/KAUOG27O.js +0 -4
- package/dist/cdn/KDNPBXUB.js +0 -4
- package/dist/cdn/KECNJYKD.js +0 -4
- package/dist/cdn/KGGUNMR2.js +0 -4
- package/dist/cdn/KHB3K6VU.js +0 -4
- package/dist/cdn/KKKHH42F.js +0 -4
- package/dist/cdn/KKMAWPQL.js +0 -4
- package/dist/cdn/KLLCGSWL.js +0 -4
- package/dist/cdn/KMI44JZ4.js +0 -4
- package/dist/cdn/KMP3DPRM.js +0 -4
- package/dist/cdn/KPF7CPIO.js +0 -4
- package/dist/cdn/KPRUJLBE.js +0 -4
- package/dist/cdn/KUFWY65U.js +0 -4
- package/dist/cdn/KWTW52QI.js +0 -4
- package/dist/cdn/KWY3MHO5.js +0 -4
- package/dist/cdn/KXRXLIHO.js +0 -4
- package/dist/cdn/KZRGR5S5.js +0 -4
- package/dist/cdn/KZWZC4KS.js +0 -4
- package/dist/cdn/L6LLWHKC.js +0 -4
- package/dist/cdn/LA7F3I4H.js +0 -4
- package/dist/cdn/LCIX3UNV.js +0 -5
- package/dist/cdn/LDEKUU2M.js +0 -4
- package/dist/cdn/LGCPXUUX.js +0 -4
- package/dist/cdn/LI7ZEIRV.js +0 -4
- package/dist/cdn/LKJMX7TQ.js +0 -4
- package/dist/cdn/LN5TN5FB.js +0 -4
- package/dist/cdn/LSTSOMDO.js +0 -4
- package/dist/cdn/LT3JRURK.js +0 -4
- package/dist/cdn/LTBNSL76.js +0 -4
- package/dist/cdn/LV5L6SGD.js +0 -4
- package/dist/cdn/LVEOCFSC.js +0 -4
- package/dist/cdn/LVVZ5BI7.js +0 -5
- package/dist/cdn/LWCNMANQ.js +0 -4
- package/dist/cdn/LWHYWURK.js +0 -4
- package/dist/cdn/LWSFTE4U.js +0 -4
- package/dist/cdn/LX5OCIPX.js +0 -4
- package/dist/cdn/LZAPX42D.js +0 -4
- package/dist/cdn/M3XDSKXP.js +0 -4
- package/dist/cdn/M6QI7UUN.js +0 -4
- package/dist/cdn/MAO6QWKC.js +0 -4
- package/dist/cdn/MCSENWLH.js +0 -4
- package/dist/cdn/MD3RU57F.js +0 -4
- package/dist/cdn/MJC6TET5.js +0 -5
- package/dist/cdn/MJJUYV7G.js +0 -4
- package/dist/cdn/ML52NC4L.js +0 -4
- package/dist/cdn/MLHAZK7R.js +0 -4
- package/dist/cdn/MLKBL2PN.js +0 -4
- package/dist/cdn/MLXOPQKI.js +0 -4
- package/dist/cdn/MMI7NWF4.js +0 -4
- package/dist/cdn/MNQU7TRV.js +0 -4
- package/dist/cdn/MNYMROY2.js +0 -4
- package/dist/cdn/MWBROW6B.js +0 -4
- package/dist/cdn/MXXCQNVH.js +0 -4
- package/dist/cdn/MZKNOLJT.js +0 -4
- package/dist/cdn/N2SYFVVG.js +0 -4
- package/dist/cdn/N3ND5PHH.js +0 -4
- package/dist/cdn/N5PYKHVX.js +0 -4
- package/dist/cdn/NAFNFSKC.js +0 -4
- package/dist/cdn/NAGB2VVO.js +0 -4
- package/dist/cdn/NC5UUT26.js +0 -5
- package/dist/cdn/NCKOAG5X.js +0 -4
- package/dist/cdn/ND4KTC2J.js +0 -4
- package/dist/cdn/NGNOHFWC.js +0 -4
- package/dist/cdn/NKDMDCI2.js +0 -4
- package/dist/cdn/NNG6SSRF.js +0 -4
- package/dist/cdn/NOY6LNX3.js +0 -4
- package/dist/cdn/NPGLH7GZ.js +0 -4
- package/dist/cdn/NQRPBAHH.js +0 -4
- package/dist/cdn/NQRXYJMT.js +0 -4
- package/dist/cdn/NUYFAOG3.js +0 -4
- package/dist/cdn/NUZR2YYZ.js +0 -4
- package/dist/cdn/NVCBSCNI.js +0 -4
- package/dist/cdn/NVI475CK.js +0 -4
- package/dist/cdn/NVL7GVRW.js +0 -4
- package/dist/cdn/NWASYLQQ.js +0 -4
- package/dist/cdn/NWKQUVMF.js +0 -4
- package/dist/cdn/NZZGHJY4.js +0 -4
- package/dist/cdn/NZZXIOM6.js +0 -4
- package/dist/cdn/O5AY3VEM.js +0 -4
- package/dist/cdn/O5PBSFSY.js +0 -4
- package/dist/cdn/OALECCHX.js +0 -4
- package/dist/cdn/OCGZ7ZUO.js +0 -4
- package/dist/cdn/OCTXV4J7.js +0 -4
- package/dist/cdn/ODCNMOCA.js +0 -4
- package/dist/cdn/ODGLOMBB.js +0 -4
- package/dist/cdn/ODKNMCC5.js +0 -4
- package/dist/cdn/ODOZRTUU.js +0 -4
- package/dist/cdn/OGVIVS5G.js +0 -4
- package/dist/cdn/OJDQST7S.js +0 -4
- package/dist/cdn/OJZYCUAS.js +0 -4
- package/dist/cdn/OKPXQOTB.js +0 -4
- package/dist/cdn/OOJT5DFF.js +0 -4
- package/dist/cdn/OPT3H7ML.js +0 -4
- package/dist/cdn/ORIMPX65.js +0 -4
- package/dist/cdn/OTTMFLQF.js +0 -59
- package/dist/cdn/OVOGUPPF.js +0 -4
- package/dist/cdn/OXVLNM4V.js +0 -4
- package/dist/cdn/OZBHRIMB.js +0 -4
- package/dist/cdn/P3MCJ7X5.js +0 -4
- package/dist/cdn/P7TSQGDE.js +0 -4
- package/dist/cdn/PACMJCQE.js +0 -4
- package/dist/cdn/PCAHXZOH.js +0 -4
- package/dist/cdn/PCCGN556.js +0 -4
- package/dist/cdn/PHEFURQP.js +0 -4
- package/dist/cdn/PIJ2DEZM.js +0 -4
- package/dist/cdn/PJ6B3RUS.js +0 -4
- package/dist/cdn/PJI7HWAZ.js +0 -4
- package/dist/cdn/PJYXLDTH.js +0 -4
- package/dist/cdn/PK6QNW64.js +0 -4
- package/dist/cdn/PNIKUCKN.js +0 -4
- package/dist/cdn/POIYOCH4.js +0 -4
- package/dist/cdn/POYHI5EW.js +0 -4
- package/dist/cdn/PPJOTEE3.js +0 -59
- package/dist/cdn/PSMR6EAY.js +0 -4
- package/dist/cdn/PVTXZ6RY.js +0 -4
- package/dist/cdn/PWTU7FPX.js +0 -4
- package/dist/cdn/PWZGQ4P4.js +0 -4
- package/dist/cdn/PYF456FQ.js +0 -4
- package/dist/cdn/PYKNPJPN.js +0 -4
- package/dist/cdn/PZCWV5L7.js +0 -4
- package/dist/cdn/Q35PZJVD.js +0 -4
- package/dist/cdn/Q6NRMU3W.js +0 -4
- package/dist/cdn/QBL6MKYX.js +0 -4
- package/dist/cdn/QDCMGRPE.js +0 -4
- package/dist/cdn/QDPH2KZB.js +0 -4
- package/dist/cdn/QE4RH7WT.js +0 -4
- package/dist/cdn/QGC43UJS.js +0 -4
- package/dist/cdn/QIN5B3HZ.js +0 -4
- package/dist/cdn/QIO7F2OJ.js +0 -4
- package/dist/cdn/QL6LPJFH.js +0 -4
- package/dist/cdn/QO4RXQP5.js +0 -4
- package/dist/cdn/QREASOFU.js +0 -4
- package/dist/cdn/QRN7YUGV.js +0 -4
- package/dist/cdn/QTGL5NQD.js +0 -4
- package/dist/cdn/QURZVNKV.js +0 -4
- package/dist/cdn/QWPSOZ7O.js +0 -4
- package/dist/cdn/R3CTZYX3.js +0 -4
- package/dist/cdn/R4DXH6HF.js +0 -52
- package/dist/cdn/R4QCCIW4.js +0 -4
- package/dist/cdn/RBPFYLFK.js +0 -4
- package/dist/cdn/RD25PHNQ.js +0 -24
- package/dist/cdn/RDLSFNZA.js +0 -5
- package/dist/cdn/RDS2UDNC.js +0 -4
- package/dist/cdn/RFBW2SNW.js +0 -4
- package/dist/cdn/RIBMZODH.js +0 -4
- package/dist/cdn/RJ4TX5TU.js +0 -4
- package/dist/cdn/RJ6YCGXO.js +0 -4
- package/dist/cdn/RL5SGJB3.js +0 -4
- package/dist/cdn/RLNKHT73.js +0 -4
- package/dist/cdn/RMVGLLNA.js +0 -4
- package/dist/cdn/RMW5LKI4.js +0 -4
- package/dist/cdn/RNCXO2WO.js +0 -4
- package/dist/cdn/ROETOMDF.js +0 -4
- package/dist/cdn/RQIALQW6.js +0 -4
- package/dist/cdn/RSWFOCCA.js +0 -4
- package/dist/cdn/RTHV3NWX.js +0 -4
- package/dist/cdn/RVHZWXT5.js +0 -4
- package/dist/cdn/RVOS64MY.js +0 -4
- package/dist/cdn/RXLHFP57.js +0 -4
- package/dist/cdn/RY6G3CE7.js +0 -4
- package/dist/cdn/RYAPTGEZ.js +0 -4
- package/dist/cdn/RYJ3IVDN.js +0 -4
- package/dist/cdn/RZ7N4RMB.js +0 -4
- package/dist/cdn/S2LTEKNZ.js +0 -4
- package/dist/cdn/S3CIY6RJ.js +0 -4
- package/dist/cdn/S3TXUMYS.js +0 -4
- package/dist/cdn/S4G6U73Q.js +0 -9
- package/dist/cdn/S4VXDJTE.js +0 -4
- package/dist/cdn/S5EPNPEW.js +0 -4
- package/dist/cdn/S7K6EUWE.js +0 -4
- package/dist/cdn/SAAWXGVJ.js +0 -4
- package/dist/cdn/SBKNC2EA.js +0 -4
- package/dist/cdn/SBPYLDYM.js +0 -4
- package/dist/cdn/SCF733ZH.js +0 -4
- package/dist/cdn/SCKKSGKL.js +0 -4
- package/dist/cdn/SCVJEMQN.js +0 -4
- package/dist/cdn/SENU5XYR.js +0 -4
- package/dist/cdn/SH2DH2ZX.js +0 -4
- package/dist/cdn/SJAXZ6OC.js +0 -4
- package/dist/cdn/SJESMGXF.js +0 -4
- package/dist/cdn/SJK4EHEJ.js +0 -4
- package/dist/cdn/SLLHS5DA.js +0 -4
- package/dist/cdn/SMAXZPEG.js +0 -4
- package/dist/cdn/SMNWZ6KD.js +0 -4
- package/dist/cdn/SO7SAIKJ.js +0 -4
- package/dist/cdn/SOCAXF5O.js +0 -4
- package/dist/cdn/SP75C2R2.js +0 -4
- package/dist/cdn/SRFQUGHT.js +0 -4
- package/dist/cdn/ST6TXBA3.js +0 -4
- package/dist/cdn/SUQDGLTY.js +0 -4
- package/dist/cdn/SWQIUW4H.js +0 -4
- package/dist/cdn/SY6Y2AU2.js +0 -4
- package/dist/cdn/SZA7MA3Y.js +0 -4
- package/dist/cdn/T4EUEBM3.js +0 -4
- package/dist/cdn/T6HZHXG4.js +0 -4
- package/dist/cdn/TBBZSYN2.js +0 -4
- package/dist/cdn/TBFAMCVV.js +0 -4
- package/dist/cdn/TDH4RLHA.js +0 -4
- package/dist/cdn/TJWWU6J3.js +0 -4
- package/dist/cdn/TKYEPDWC.js +0 -4
- package/dist/cdn/TLEKJ5GR.js +0 -4
- package/dist/cdn/TLS67QQI.js +0 -4
- package/dist/cdn/TM3MVYFM.js +0 -4
- package/dist/cdn/TM7R4JDA.js +0 -4
- package/dist/cdn/TNSMHWY2.js +0 -4
- package/dist/cdn/TOKHSCBL.js +0 -4
- package/dist/cdn/TOMQP4SE.js +0 -4
- package/dist/cdn/TPGPF6BO.js +0 -4
- package/dist/cdn/TPNL3MHI.js +0 -4
- package/dist/cdn/TQMXZDLL.js +0 -4
- package/dist/cdn/TSES7WAV.js +0 -4
- package/dist/cdn/TU6PDXEY.js +0 -4
- package/dist/cdn/TWYGK3XN.js +0 -4
- package/dist/cdn/TZV5V4N7.js +0 -4
- package/dist/cdn/U2SEUSKJ.js +0 -4
- package/dist/cdn/U4IFNP63.js +0 -4
- package/dist/cdn/U4T4IOJH.js +0 -4
- package/dist/cdn/U6OCHN5C.js +0 -4
- package/dist/cdn/U73E5FOX.js +0 -4
- package/dist/cdn/U7RN5ZEO.js +0 -4
- package/dist/cdn/UA4RZU6C.js +0 -4
- package/dist/cdn/UBFHW5PE.js +0 -4
- package/dist/cdn/UDDMQHAL.js +0 -4
- package/dist/cdn/UDPXUE3C.js +0 -4
- package/dist/cdn/UEDXYU55.js +0 -4
- package/dist/cdn/UFGZCORZ.js +0 -4
- package/dist/cdn/UK62FYBT.js +0 -4
- package/dist/cdn/ULGUXPKI.js +0 -4
- package/dist/cdn/UMZ3RMMF.js +0 -4
- package/dist/cdn/UNUUO4OQ.js +0 -4
- package/dist/cdn/UQZ25HL7.js +0 -4
- package/dist/cdn/URJJWCN7.js +0 -4
- package/dist/cdn/USH2DA2Z.js +0 -4
- package/dist/cdn/UU3QTXW6.js +0 -4
- package/dist/cdn/UXODQ5XR.js +0 -4
- package/dist/cdn/UZYGLSQU.js +0 -4
- package/dist/cdn/V4PKQT4D.js +0 -4
- package/dist/cdn/V7B3WMQ5.js +0 -4
- package/dist/cdn/VESK3PKU.js +0 -4
- package/dist/cdn/VFQO5YVQ.js +0 -4
- package/dist/cdn/VGOFPZGU.js +0 -4
- package/dist/cdn/VIXA7KLU.js +0 -4
- package/dist/cdn/VJOSGY53.js +0 -4
- package/dist/cdn/VKEAYPLT.js +0 -4
- package/dist/cdn/VNVCVRIA.js +0 -4
- package/dist/cdn/VQG3RUH5.js +0 -4
- package/dist/cdn/VR3HOI3P.js +0 -4
- package/dist/cdn/VRX2PH2D.js +0 -4
- package/dist/cdn/VUGGHMXV.js +0 -4
- package/dist/cdn/VVUE5KYJ.js +0 -4
- package/dist/cdn/VWKMUCJ7.js +0 -16
- package/dist/cdn/VYHYDQHL.js +0 -4
- package/dist/cdn/W27OFC4V.js +0 -4
- package/dist/cdn/W6C2GBOY.js +0 -4
- package/dist/cdn/W7YJ6G4L.js +0 -4
- package/dist/cdn/WAPYEMWK.js +0 -4
- package/dist/cdn/WBL4WTSO.js +0 -4
- package/dist/cdn/WBQY4CHP.js +0 -5
- package/dist/cdn/WDF2D5TE.js +0 -4
- package/dist/cdn/WE5IWTXV.js +0 -4
- package/dist/cdn/WHZFEEN4.js +0 -4
- package/dist/cdn/WNL4KMUA.js +0 -4
- package/dist/cdn/WNV4AJVQ.js +0 -4
- package/dist/cdn/WNXTCUX7.js +0 -4
- package/dist/cdn/WPNXMRFQ.js +0 -4
- package/dist/cdn/WQ73RUNX.js +0 -4
- package/dist/cdn/WR4I3FWC.js +0 -4
- package/dist/cdn/WRDBLQLB.js +0 -4
- package/dist/cdn/WUBJ7UT5.js +0 -4
- package/dist/cdn/WVJYAKWS.js +0 -4
- package/dist/cdn/WVO2WRPJ.js +0 -4
- package/dist/cdn/WWBVEF72.js +0 -4
- package/dist/cdn/WYOKDSR4.js +0 -4
- package/dist/cdn/WZJKPOVY.js +0 -4
- package/dist/cdn/X6I634EO.js +0 -4
- package/dist/cdn/XDVNKPCX.js +0 -4
- package/dist/cdn/XFFOY33R.js +0 -4
- package/dist/cdn/XH52MDMN.js +0 -4
- package/dist/cdn/XJLUJVAW.js +0 -4
- package/dist/cdn/XNW3RJ2I.js +0 -6
- package/dist/cdn/XOKNECYG.js +0 -4
- package/dist/cdn/XPB4N5HK.js +0 -4
- package/dist/cdn/XQYCTHJB.js +0 -4
- package/dist/cdn/XRGIXMOY.js +0 -4
- package/dist/cdn/XUHS7KGC.js +0 -4
- package/dist/cdn/XV7QCNSV.js +0 -4
- package/dist/cdn/XWNY4FUR.js +0 -4
- package/dist/cdn/XYO26PG7.js +0 -4
- package/dist/cdn/XYYFMEXA.js +0 -4
- package/dist/cdn/XZQAHA53.js +0 -4
- package/dist/cdn/XZRFNSAN.js +0 -4
- package/dist/cdn/Y3E7EIMM.js +0 -4
- package/dist/cdn/Y6VACIQF.js +0 -4
- package/dist/cdn/YDYFLB7Z.js +0 -4
- package/dist/cdn/YL7RCQHG.js +0 -4
- package/dist/cdn/YM5U3RYQ.js +0 -4
- package/dist/cdn/YMJA3ZPZ.js +0 -4
- package/dist/cdn/YNHYHZTS.js +0 -4
- package/dist/cdn/YNVCWNE2.js +0 -4
- package/dist/cdn/YNVII6Q7.js +0 -4
- package/dist/cdn/YNXWUFIB.js +0 -4
- package/dist/cdn/YOMMWGYO.js +0 -4
- package/dist/cdn/YSGWSG5N.js +0 -4
- package/dist/cdn/YUKFSG63.js +0 -4
- package/dist/cdn/YUR4GXMW.js +0 -4
- package/dist/cdn/YVEFOHJV.js +0 -4
- package/dist/cdn/YXHHOSNX.js +0 -4
- package/dist/cdn/YYPFD5U4.js +0 -4
- package/dist/cdn/Z3IAGQWE.js +0 -4
- package/dist/cdn/Z5ED5DRP.js +0 -4
- package/dist/cdn/Z5WPLARQ.js +0 -4
- package/dist/cdn/Z7Q24XXN.js +0 -4
- package/dist/cdn/ZCAQBBHK.js +0 -4
- package/dist/cdn/ZD6T6SJX.js +0 -4
- package/dist/cdn/ZDOIVNBO.js +0 -11
- package/dist/cdn/ZHKWMAIG.js +0 -4
- package/dist/cdn/ZHVWMK2S.js +0 -4
- package/dist/cdn/ZJFIGJ43.js +0 -4
- package/dist/cdn/ZL724C6N.js +0 -4
- package/dist/cdn/ZMSPJLAS.js +0 -4
- package/dist/cdn/ZSY6ULAY.js +0 -4
- package/dist/cdn/ZTXJBJLO.js +0 -4
- package/dist/cdn/ZTZ7SL7O.js +0 -4
- package/dist/cdn/ZUFXZ4ZZ.js +0 -4
- package/dist/cdn/ZWGJ4DDE.js +0 -4
- package/dist/cdn/ZXDSWX6N.js +0 -4
- package/dist/cdn/ZY5NPED3.js +0 -4
- package/dist/cdn/ZYNLXXND.js +0 -4
- package/dist/cdn/ZZCIQC7G.js +0 -4
- package/dist/cdn/ZZHFLUNU.js +0 -4
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.35/esri/copyright.txt for details.
|
|
3
|
+
v0.35.0 */
|
|
4
|
+
import{a as yt}from"./ZRFAMWFJ.js";import{a as Te,b as Le,c as je,d as He,e as Fe}from"./MKMKAFCX.js";import{a as mt}from"./SHXAZCZ6.js";import{a as gt,c as bt}from"./QIGDHIA5.js";import{a as ne}from"./NMNA5FIX.js";import{a as pe}from"./YXKJN4HA.js";import{a as Se}from"./FZF4Q4J6.js";import{a as Ee}from"./KGRJBPJO.js";import{a as ue}from"./VQOQAD2F.js";import b from"./3AEE6L7D.js";import"./34D6UHTD.js";import{a as ie,b as ke}from"./JTAQLDUQ.js";import{a as de,b as H}from"./7WKJ5O2A.js";import a from"./TUM4FFK6.js";import"./FU74AFJH.js";import"./YMPFJKS4.js";import{a as K}from"./7XC7N3JM.js";import{a as Me}from"./VJG4U4AP.js";import{a as y,d as Je,e as Xe,f as Ce,g as Ze,h as ce,j as we,k as et,m as Oe,r as tt,t as xe,v as st}from"./Z4JM7LDH.js";import{a as it,b as nt}from"./DGX732PH.js";import{a as Ie}from"./CFMDOU3B.js";import{a as ot}from"./7B72YLIE.js";import{b as Ue}from"./WYTOYPIS.js";import{a as at}from"./U4WQJIR5.js";import"./NXFLYCQ6.js";import"./OFPLTZ6C.js";import"./UF7MGN6X.js";import"./XZO3RG3B.js";import"./7A3RIJRN.js";import"./O67ZYVM7.js";import"./2XOLOA2N.js";import{m as Ye,n as Qe}from"./XERL66GE.js";import"./FWNNBYVK.js";import"./P3QJW2CD.js";import"./YFGBS7ZN.js";import"./6FBGPDIF.js";import"./BNVRLP6C.js";import"./4MFZZRH6.js";import"./LYS7HKXF.js";import"./WZNPF6G6.js";import"./X7GVSJJM.js";import"./7CGMY4BC.js";import"./PPZHMRZ4.js";import"./H56X6CH7.js";import"./5AKQYOXC.js";import"./IBF6ALVV.js";import"./WR7K24H4.js";import{$ as z,L as k,N as re,O as C,X as ze,Z as Ke,_ as qe,aa as We,ba as _e,ca as $e,o as Y}from"./YOQ4XY6E.js";import"./O3MXAP3N.js";import"./7UNCALWO.js";import"./FX7UWUTP.js";import"./SQBGCTIG.js";import"./SZ7LGGV4.js";import"./AYQYEPT4.js";import"./ERMF3HUK.js";import"./V4P3GZB5.js";import"./BVB5LUSE.js";import"./MQXGINY2.js";import"./422UNPGB.js";import"./SRNIYEBY.js";import"./SH3M7OUG.js";import"./UYV4B6YW.js";import{f as fe,k as x,l as Be,m as ve,n as Ge}from"./RSAAUBJR.js";import"./OVRI2ZBS.js";import"./RWPPMQG5.js";import"./ECVT6WF7.js";import"./DQDKK33P.js";import"./IE5EUGCH.js";import"./WKJX6XLJ.js";import"./K2OR2N3X.js";import"./XSRJIVEU.js";import"./Y3SDERWY.js";import"./GVZGIKF3.js";import"./5IDNQFAN.js";import"./NCDIG7IN.js";import"./2G4AIFHQ.js";import"./SMI77T56.js";import{h as ye}from"./MWJULILT.js";import"./54MA3SJG.js";import"./NFAM2LVT.js";import"./GXDZAIG6.js";import"./WALQAPVG.js";import"./JFWOWWTD.js";import"./L35FFC3D.js";import"./HZS2DMXX.js";import"./6P5ZZGAS.js";import"./TCA2LMHV.js";import"./WS373WFL.js";import"./4GMN3WAM.js";import"./UA53TF6W.js";import"./VRAJINCV.js";import"./4XZGNWLH.js";import"./RTE5OXT4.js";import"./N5K5X2QV.js";import{c as Q,g as Ne,j as oe}from"./LDUBK2RB.js";import"./3Y5HS7MR.js";import"./Z3DSUVFJ.js";import"./PS6ZMIQH.js";import"./6VJ37N5R.js";import"./7XORZQMG.js";import"./KBPBFGED.js";import"./6LRKH6CH.js";import{o as Ve}from"./5CDOW2MQ.js";import"./NJS2QVGK.js";import"./5YEPEBCJ.js";import"./2K4QTOFM.js";import{a as $}from"./LV5W663K.js";import{a as j}from"./DHLWEAF5.js";import"./GIRZYZ4O.js";import"./O4TU3B7E.js";import{a as g}from"./QG5QHQGS.js";import"./RSLSYQJY.js";import{b as r,c as q,d as F,e as v,h as E,i as N}from"./PWAOZO44.js";import{a as X}from"./A3TLPDN5.js";import{a as G}from"./C2QVHVYK.js";import"./5QP7DOHI.js";import"./IPTPJEVD.js";import"./3GL54CUZ.js";export default $arcgis.t(([,{a:le,b:rt,c:Re,h:Pe,i:se,j:Z,n:ct,p:lt,q:Ae,r:dt,s:ut,u:De,v:ht},{a:pt,b:he}])=>{function Dt(e){function t(s,i,o){let{get:n}=o,a=function(){let l=n.call(this);return gt(l,e)};return Object.assign(Object.assign({},o),{get:a})}return t}var St="data-mention",kt=new RegExp(`<[a-z-]+( [a-z-]+(=('|")[\\w- ]+('|"))?)*( ${St}=('|")[\\w@\\.-]+('|"))( [a-z-]+(=('|")[\\w- ]+('|"))?)*>@[\\w@\\.-]+</[a-z-]+>`,"g"),Et=(e,t)=>{let s=ce(e)[0];return t?t.find(i=>i.userId===s):null};function Tt(e,t,s,i,o){let n=Q(),a=(c="")=>{var l,d,u,h,p,m,b,f,_,w,A;let R=c.match(kt);if(R){let[I]=R,O=c.indexOf(I),S=O+I.length,T=O>0?c.substring(0,O):"",U=c.substring(O,O+I.length),P=Et(U,i),B=U.replace(I,`<arcgis-hub-discussions-mention-popover
|
|
5
|
+
access="${(d=(l=P?.user)===null||l===void 0?void 0:l.access)!==null&&d!==void 0?d:""}"
|
|
6
|
+
channel-access="${x(o)}"
|
|
7
|
+
channel-id="${o.id}"
|
|
8
|
+
creator-username="${s?.username||t.creator}"
|
|
9
|
+
full-name="${(h=(u=P.user)===null||u===void 0?void 0:u.fullName)!==null&&h!==void 0?h:""}"
|
|
10
|
+
organization="${(m=(p=P.org)===null||p===void 0?void 0:p.name)!==null&&m!==void 0?m:""}"
|
|
11
|
+
region="${((b=P.user)===null||b===void 0?void 0:b.region)||""}"
|
|
12
|
+
thumbnail="${((f=P.user)===null||f===void 0?void 0:f.thumbnail)||""}"
|
|
13
|
+
token="${(_=n.hubRequestOptions.authentication)===null||_===void 0?void 0:_.token}"
|
|
14
|
+
user-id="${(A=(w=P.user)===null||w===void 0?void 0:w.id)!==null&&A!==void 0?A:""}"
|
|
15
|
+
username="${P.userId}"
|
|
16
|
+
>${I}</arcgis-hub-discussions-mention-popover>`);return T+B+a(c.substring(S))}else return c};return a(e)}function Lt(){function e(t,s,i){let{get:o}=i,n=function(){let c=o.call(this);return Tt(c,this.post,this.postCreator,this.postMentionedUsers,this.channel)};return Object.assign(Object.assign({},i),{get:n})}return e}function jt(e,t,s){let i={channelId:e,postId:t,discussions:!0};s&&(i.replyId=t,i.postId=s);let o=new URL(globalThis.location.href);Object.entries(i).forEach(([n,a])=>{o.searchParams.set(n,a.toString())}),navigator.clipboard.writeText(o.toString())}async function ft(e,t){let{post:s}=e,{postMentionedUsers:i}=e;if(s){let o=ce(s.body);i=(i??[]).filter(c=>o.includes(c.userId));let n=o.filter(c=>!i.find(l=>c===l.userId)),a=await Promise.all(n.map(async c=>{let l,d,u,h;try{l=await Le(c,t),d=null}catch(p){d=p,l=null}try{u=l?.orgId?await mt(l.orgId,t):null,h=null}catch(p){h=p,u=null}return{userId:c,user:l,userError:d,org:u,orgError:h}}));i=[...i,...a]}else i=null;return{postMentionedUsers:i}}function wt(e,t){function s(i,o,n){let{get:a}=n,c=function(...d){var u;let h=a.apply(this,d);return h&&this.post.status!==k.APPROVED?bt(h,(u=this.channel.blockWords)!==null&&u!==void 0?u:[],e,t,this.intl,{labelKey:"blockedWordTooltipLabel",textKey:"blockedWordTooltipText"}):h};return Object.assign(Object.assign({},n),{get:c})}return s}var Ht=`.sc-arcgis-hub-discussions-post-h{display:block}.sc-arcgis-hub-discussions-post-h:not([parent-id]){padding-top:0.75rem;padding-bottom:0.75rem}[data-view$="renderPost"].sc-arcgis-hub-discussions-post-h{background-color:var(--calcite-color-foreground-1)}[data-view$="renderEditor"].sc-arcgis-hub-discussions-post-h:not([parent-id]){background-color:transparent}arcgis-hub-discussions-post-header.sc-arcgis-hub-discussions-post,.sc-arcgis-hub-discussions-post-s>[slot='metadata']{margin-left:1rem;margin-right:1rem;margin-bottom:0.5rem}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-header.sc-arcgis-hub-discussions-post,.sc-arcgis-hub-discussions-post-h[parent-id].sc-arcgis-hub-discussions-post-s>[slot='metadata'],.sc-arcgis-hub-discussions-post-h[parent-id] .sc-arcgis-hub-discussions-post-s>[slot='metadata']{margin-left:0px;margin-right:0px}.sc-arcgis-hub-discussions-post-s>[slot='metadata'],.sc-arcgis-hub-discussions-post-s>[slot='editor']{display:none}.sc-arcgis-hub-discussions-post-h:has(slot-fb[name='metadata']).sc-arcgis-hub-discussions-post-s>[slot='metadata'],.sc-arcgis-hub-discussions-post-h:has(slot-fb[name='metadata']) .sc-arcgis-hub-discussions-post-s>[slot='metadata'],.sc-arcgis-hub-discussions-post-h:has(slot-fb[name='editor']).sc-arcgis-hub-discussions-post-s>[slot='editor'],.sc-arcgis-hub-discussions-post-h:has(slot-fb[name='editor']) .sc-arcgis-hub-discussions-post-s>[slot='editor']{display:block}arcgis-hub-discussions-post-chips.sc-arcgis-hub-discussions-post{padding-left:1rem;padding-right:1rem;padding-bottom:0.75rem}header.sc-arcgis-hub-discussions-post{margin-left:1rem;margin-right:1rem;margin-bottom:0.25rem;overflow-wrap:break-word;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}arcgis-multiline-ellipsis.sc-arcgis-hub-discussions-post{margin:0px;margin-left:1rem;margin-right:1rem;font-size:var(--calcite-font-size-0);line-height:1.375rem;color:var(--calcite-color-text-1)}footer.sc-arcgis-hub-discussions-post{display:flex;flex-direction:column}article.sc-arcgis-hub-discussions-post:has(arcgis-hub-discussions-post-geography[data-count='0']) footer.sc-arcgis-hub-discussions-post:not(:has(arcgis-hub-discussions-post-reactions)){margin-top:0.5rem}footer.sc-arcgis-hub-discussions-post .actions.sc-arcgis-hub-discussions-post{margin-left:0.5rem;margin-right:0.5rem;display:flex;justify-content:space-between}footer.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-reactions.sc-arcgis-hub-discussions-post{margin-left:1rem;margin-right:1rem;margin-top:0.75rem;margin-bottom:0.75rem}[parent-id].sc-arcgis-hub-discussions-post-h footer.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-reactions.sc-arcgis-hub-discussions-post{margin-left:0px;margin-right:0px}arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post{margin-top:0px;margin-bottom:0px;margin-left:var(--arcgis-hub-discussions-post-editor-x-margin, 0.75rem);margin-right:var(--arcgis-hub-discussions-post-editor-x-margin, 0.75rem)}calcite-notice.sc-arcgis-hub-discussions-post{margin-left:1rem;margin-right:1rem;margin-bottom:1.5rem}footer.sc-arcgis-hub-discussions-post+calcite-notice.sc-arcgis-hub-discussions-post{margin-top:1rem}arcgis-hub-discussions-post-geography[loading].sc-arcgis-hub-discussions-post{margin-left:1rem;margin-right:1rem}calcite-popover[data-popper-placement][data-popper-reference-hidden].sc-arcgis-hub-discussions-post{pointer-events:auto;opacity:1}calcite-popover.sc-arcgis-hub-discussions-post{pointer-events:auto !important}.discussions-post-action-menu.sc-arcgis-hub-discussions-post:active .discussions-post-action-menu-icon.sc-arcgis-hub-discussions-post{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.discussions-post-action-menu-options.sc-arcgis-hub-discussions-post:active{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.discussions-post-action-menu-options.sc-arcgis-hub-discussions-post:active .discussions-post-action-menu-options-icon.sc-arcgis-hub-discussions-post{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.discussions-post-replies.sc-arcgis-hub-discussions-post:active{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.discussions-post-replies.sc-arcgis-hub-discussions-post:active .discussions-post-replies-icon.sc-arcgis-hub-discussions-post{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.actions.sc-arcgis-hub-discussions-post{display:flex;align-items:center}[parent-id].sc-arcgis-hub-discussions-post-h article.sc-arcgis-hub-discussions-post{position:relative;display:grid;grid-template-rows:repeat(1, minmax(0, 1fr));gap:0.75rem;grid-template-columns:2rem auto}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-chips.sc-arcgis-hub-discussions-post{padding-bottom:0px}[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips:not([data-count='0'])) div.sc-arcgis-hub-discussions-post{grid-row-start:2;grid-row-end:2}[parent-id].sc-arcgis-hub-discussions-post-h article.arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post,[parent-id].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post{padding-bottom:1.25rem}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post{position:relative;z-index:10}[parent-id].sc-arcgis-hub-discussions-post-h article.arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post::before,[parent-id].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{position:absolute;top:0px;display:block;height:100%;width:0.125rem;background-color:var(--calcite-color-foreground-2);left:15px;content:''}[parent-id][index='0'].sc-arcgis-hub-discussions-post-h article.arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post::before,[parent-id][index='0'].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{top:2.25rem;height:calc(100% - 2.25rem)}[parent-id][index='0'].sc-arcgis-hub-discussions-post-h article.arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post::before,[parent-id][index='0'].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{height:0px}[parent-id][index='0'].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count]) article.arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post::before,[parent-id][index='0'].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count]) .arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{top:2.75rem;height:calc(100% - 2.75rem)}[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count]) article.arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post::before,[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count]) .arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{height:2.25rem}[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count='0']) .arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post{padding-top:0.25rem}[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count='0']) article.arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post::before,[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count='0']) .arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{height:0px}[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips) article.arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post::before,[parent-id].sc-arcgis-hub-discussions-post-h article.arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post:not(:has(arcgis-hub-discussions-post-chips))::before,[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips) .arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before,[parent-id].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post:not(:has(arcgis-hub-discussions-post-chips)) arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{height:0px}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post{margin-left:0px;margin-right:0px}[parent-id].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post{padding-bottom:1.5rem}[parent-id].sc-arcgis-hub-discussions-post-h article.arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before,[parent-id].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{z-index:-10}[parent-id].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before,[parent-id][index='0'].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count='0']) article.arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post::before{height:0px}[parent-id][index='0'].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count='0']) article.arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post::before{top:2.25rem;height:calc(100% - 2.25rem)}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-multiline-ellipsis.sc-arcgis-hub-discussions-post{margin-left:0px;margin-right:0px}[parent-id].sc-arcgis-hub-discussions-post-h calcite-action-group.sc-arcgis-hub-discussions-post{margin-left:-0.5rem}.hidden.sc-arcgis-hub-discussions-post{visibility:hidden}@keyframes in-right{0%{opacity:0;transform:translate3D(-100%, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}article.in.sc-arcgis-hub-discussions-post{animation:in-right 300ms ease-out forwards}@keyframes out-left{0%{opacity:1;transform:translate3D(0, 0, 0)}100%{opacity:0;transform:translate3D(-100%, 0, 0)}}article.out.sc-arcgis-hub-discussions-post{animation:out-left 300ms ease-out forwards}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post{padding-bottom:1rem}.arcgis-hub-discussions-post-editor-container.sc-arcgis-hub-discussions-post{overflow:visible}@keyframes in-left{0%{opacity:0;transform:translate3D(100%, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}.arcgis-hub-discussions-post-editor-container.in.sc-arcgis-hub-discussions-post{animation:in-left 300ms ease-out forwards}@keyframes out-right{0%{opacity:1;transform:translate3D(0, 0, 0)}100%{opacity:0;transform:translate3D(100%, 0, 0)}}.arcgis-hub-discussions-post-editor-container.out.sc-arcgis-hub-discussions-post{animation:out-right 300ms ease-out forwards}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-editor[post-id][parent-id].sc-arcgis-hub-discussions-post{padding-left:0px;padding-right:0px}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-multiline-ellipsis.sc-arcgis-hub-discussions-post+calcite-notice.sc-arcgis-hub-discussions-post{margin-top:1rem}[parent-id].sc-arcgis-hub-discussions-post-h article.sc-arcgis-hub-discussions-post{padding-top:0.75rem;padding-bottom:0.75rem}[parent-id].sc-arcgis-hub-discussions-post-h article.out-of-context.sc-arcgis-hub-discussions-post{margin-left:1rem;margin-right:1rem;display:grid;gap:0.5rem;font-style:normal;grid-template-columns:1fr}[parent-id].sc-arcgis-hub-discussions-post-h article.out-of-context.sc-arcgis-hub-discussions-post>div.reply-body.sc-arcgis-hub-discussions-post{display:grid;gap:0.25rem}[parent-id].sc-arcgis-hub-discussions-post-h article.out-of-context.sc-arcgis-hub-discussions-post>div.reply-body.sc-arcgis-hub-discussions-post>arcgis-hub-discussions-post-geography.sc-arcgis-hub-discussions-post{margin-left:-1rem}[parent-id].sc-arcgis-hub-discussions-post-h article.out-of-context.sc-arcgis-hub-discussions-post>div.reply-body.sc-arcgis-hub-discussions-post>arcgis-hub-discussions-post-reactions.sc-arcgis-hub-discussions-post{grid-column:span 1 / span 1}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-popover.sc-arcgis-hub-discussions-post{grid-row:span 2 / span 2;grid-row-start:1;grid-row-end:1}[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips:not([data-count='0'])) arcgis-hub-discussions-popover.sc-arcgis-hub-discussions-post{grid-row-start:2;grid-row-end:2}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-chips.sc-arcgis-hub-discussions-post{grid-column-start:2;grid-row-start:1;grid-row-end:1;height:1.5rem}[parent-id].sc-arcgis-hub-discussions-post-h calcite-avatar.sc-arcgis-hub-discussions-post{position:relative;margin-top:-0.25rem;padding-top:0.25rem;padding-bottom:0.25rem;background-color:var(--calcite-color-foreground-1);box-sizing:initial}[parent-id].sc-arcgis-hub-discussions-post-h footer.sc-arcgis-hub-discussions-post{display:grid;grid-template-columns:auto 48px}[parent-id].sc-arcgis-hub-discussions-post-h footer.sc-arcgis-hub-discussions-post calcite-action.sc-arcgis-hub-discussions-post{grid-column-start:2}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-reactions.sc-arcgis-hub-discussions-post{grid-column:span 2 / span 2;margin-top:0.75rem;margin-bottom:0.75rem}[parent-id].sc-arcgis-hub-discussions-post-h calcite-notice.sc-arcgis-hub-discussions-post{margin:0px}.blocked.sc-arcgis-hub-discussions-post{-webkit-text-decoration-line:underline;text-decoration-line:underline;-webkit-text-decoration-color:var(--calcite-color-status-danger);text-decoration-color:var(--calcite-color-status-danger);-webkit-text-decoration-style:dashed;text-decoration-style:dashed;color:var(--calcite-color-status-danger)}`,Ft=Ht,J=function(e,t,s,i){var o=arguments.length,n=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,s,i);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(n=(o<3?a(n):o>3?a(t,s,n):a(t,s))||n);return o>3&&n&&Object.defineProperty(t,s,n),n},D;(function(e){e.Skeleton="skeleton",e.Post="post",e.Reply="reply",e.OutOfContext="outOfContext",e.Editor="editor",e.Deleted="deleted",e.Hidden="hidden"})(D||(D={}));var L;(function(e){e.IN="in",e.OUT="out",e.HIDDEN="hidden"})(L||(L={}));var W=class{constructor(e){N(this,e),this.arcgisHubDiscussionsPostEdit=v(this,"arcgisHubDiscussionsPostEdit",7),this.arcgisHubDiscussionsPostDelete=v(this,"arcgisHubDiscussionsPostDelete",7),this.arcgisHubDiscussionsPostSelect=v(this,"arcgisHubDiscussionsPostSelect",7),this.arcgisHubDiscussionsGeometryDrawReset=v(this,"arcgisHubDiscussionsGeometryDrawReset",7),this.arcgisHubDiscussionsGeometryDeselect=v(this,"arcgisHubDiscussionsGeometryDeselect",7),this.hubTelemetry=v(this,"hubTelemetry",7),this.arcgisHubDiscussionsPostReady=v(this,"arcgisHubDiscussionsPostReady",7),this.postId=void 0,this.post=void 0,this.postCreator=void 0,this.postCreatorOrg=void 0,this.postError=void 0,this.postMentionedUsers=void 0,this.channelId=void 0,this.channel=void 0,this.channelGroups=void 0,this.parentId=void 0,this.parent=void 0,this.parentCreator=void 0,this.parentCreatorOrg=void 0,this.hasMap=void 0,this.isHub=void 0,this.unsavedFeatures=void 0,this.unsavedRelatedFeatures=void 0,this.unsavedExistingFeatures=[],this.preview=void 0,this.index=void 0,this.discussion=void 0,this.entityId=void 0,this.entityType=void 0,this.discussionSettings=void 0,this.entity=void 0,this.displayFieldValid=void 0,this.displayFieldValue=void 0,this.displayFieldKey=void 0,this.isMobile=void 0,this.locationId=void 0,this.lead=void 0,this.lastIndex=void 0,this.loading=void 0,this.showLocations=void 0,this.disableSelectExistingLocation=void 0,this.locationDescriptionText=void 0,this.showChannelAvatar=void 0,this.showChannelName=void 0,this._context=Q(),this.minHeight=null,this.popoverIsOpen=void 0,this.articleClass=null,this.editorClass=L.HIDDEN,this.renderedEl=null,this.editing=!1,this.errorMessage=null,this.intl=void 0,this.isCopied=void 0,this._loading=!1,$(this,"handleDelete","handleEdit","handleCopyLink","handleCopyTooltipBeforeOpen","handleCopyTooltipClose","handleActionsPopoverBeforeOpenClose","handleToggleVisibility","handleViewThread","handleReply","handleViewReplies","handleLinkClicked","renderDeleted","renderHidden","renderPost","renderReply","renderEditor","renderSkeleton","handleViewPost","handleSetComponentRef","handleAnimationEnd","renderReplyOutOfContext","handleViewAllReplies","handleReplyOutOfContextReadMore")}connectedCallback(){oe(this),this.addAnimationEventListeners(this.renderedEl)}componentWillLoad(){this.initialize()}disconnectedCallback(){this.removeAnimationEventListeners(this.renderedEl),this.disconnectContext()}handlePostViewAllGeography(){let{postId:e,post:t,postCreator:s,postCreatorOrg:i,channel:o,channelGroups:n,channelId:a}=this;this.arcgisHubDiscussionsPostSelect.emit({parent:t,parentId:e,parentCreator:s,parentCreatorOrg:i,channelId:a,channel:o,channelGroups:n})}handleMultilineEllipsisExpanded(e){this.isReply||(e.preventDefault(),e.stopPropagation(),this.handleViewThread())}handleCalcitePopoverOpen(e){var t;let{open:s}=e.target;e.target!==this.menuPopoverElement&&(!((t=this.menuPopoverElement)===null||t===void 0)&&t.open)?this.menuPopoverElement.setFocus():e.target===this.menuPopoverElement&&s&&this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.interaction.action.open.label.popover.details.options),{position:this.index}))}handleReactionChanged(e){e.stopPropagation();let t=e.target;this.post=t.post,this.arcgisHubDiscussionsPostEdit.emit(t.post)}emitHubTelemetry(e){let{postId:t,parentId:s,channel:i,channelId:o}=this;this.hubTelemetry.emit(Object.assign(Object.assign({},e),{postId:t,parentId:s,channelId:o,channelAccess:i?x(i):void 0}))}async loadDependencies(){return this._loading=!0,this.fetchDependencies().then(e=>{Object.assign(this,e),this._loading=!1,this.arcgisHubDiscussionsPostReady.emit()})}fetchDependencies(){return this._fetchDependencies()}async _fetchDependencies(){let{postId:e,postCreator:t,postCreatorOrg:s,parent:i,parentId:o,parentCreator:n,post:a,postMentionedUsers:c,channel:l,channelId:d,_context:u,discussion:h,entityId:p,entity:m,entityType:b,discussionSettings:f,displayFieldKey:_,displayFieldValid:w,displayFieldValue:A,isHub:R,locationId:I,channelGroups:O}=this,[S,T]=await Promise.all([Te({postId:e,post:a},u.hubRequestOptions),ue({isHub:R},u.hubRequestOptions)]),[U,P]=await Promise.all([je(Object.assign({postCreator:t,postCreatorOrg:s},S),u.hubRequestOptions),He(Object.assign({parentId:o,parent:i},S),u.hubRequestOptions)]),[B,ge,be,me]=await Promise.all([he(Object.assign(Object.assign({discussion:h,entityId:p,entityType:b,entity:m,displayFieldKey:_,displayFieldValid:w,displayFieldValue:A,locationId:I,discussionSettings:f},S),P),u.hubRequestOptions,!0),pe(Object.assign(Object.assign({channelId:d,channel:l,channelGroups:O},S),P),u.hubRequestOptions),Fe(Object.assign({parentCreator:n},P),u.hubRequestOptions),ft(Object.assign({postMentionedUsers:c},S),u.hubRequestOptions)]);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},S),U),P),be),ge),B),T),me)}async initialize(){this.loadTranslations(),this._context&&this.loadDependencies()}async loadTranslations(){this.intl=await j.loadIntlForComponent(this.element)}get postBody(){return this.post.body}get postTitle(){return this.post.title}get isRtl(){return this.intl.direction==="rtl"}handleDelete(){let{_context:e,postId:t,post:s,menuPopoverElement:i,isReply:o}=this;return this.errorMessage=null,i&&(i.open=!1),We(Object.assign({postId:t},e.hubRequestOptions)).then(()=>{this.deletedDuringSession=!0,this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.content.action.delete),{response:g.constants.response.SUCCESS})),this.arcgisHubDiscussionsPostDelete.emit(s)}).catch(n=>{this.errorMessage=o?"deleteFailureReply":"deleteFailure",this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.content.action.delete),{response:g.constants.response.FAILURE})),console.error("Could not delete post:",n.message)})}handleEdit(){this.menuPopoverElement&&(this.menuPopoverElement.open=!1),setTimeout(()=>this.transitionEditorView(!0),100),this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.interaction.action.open.label.editor),{position:this.index}))}handleCopyLink(){jt(this.channelId,this.postId,this.parentId),this.isCopied=!0,this.copyTooltipRef.open=!0}handleCopyTooltipBeforeOpen(){this.isCopied||(this.copyTooltipRef.open=!1)}handleCopyTooltipClose(){this.isCopied=!1}handleActionsPopoverBeforeOpenClose(){this.isCopied=!1,this.copyTooltipRef&&(this.copyTooltipRef.open=!1)}handleToggleVisibility(){let{_context:e,post:t,menuPopoverElement:s}=this;this.errorMessage=null,s&&(s.open=!1);let i,o;return t.status===k.HIDDEN||t.status===k.BLOCKED?(i=k.APPROVED,o="show"):(i=k.HIDDEN,o="hide"),$e(Object.assign({data:{status:i},postId:t.id},e.hubRequestOptions)).then(n=>z(Object.assign({postId:n.id,data:{relations:[C.REACTIONS,C.REPLIES,C.CHANNEL,C.CHANNEL_ACL]}},this._context.hubRequestOptions))).then(n=>(n.replyCount=n.replies.total,delete n.replies,this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.content.action.update.label.status.details[o]),{response:g.constants.response.SUCCESS})),this.arcgisHubDiscussionsPostEdit.emit(n),n)).catch(n=>(console.error("Could not update post status:",n.message),this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.content.action.update.label.status.details[o]),{response:g.constants.response.FAILURE})),null))}handleViewThread(){let{index:e,postId:t,post:s,postCreator:i,postCreatorOrg:o,channel:n,channelGroups:a,channelId:c}=this;this.arcgisHubDiscussionsPostSelect.emit({parentId:t,parent:s,parentCreator:i,parentCreatorOrg:o,channel:n,channelGroups:a,channelId:c}),e!==void 0&&this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.interaction.action.open.label.thread),{position:e}))}handleReply(){let{postId:e,post:t,postCreator:s,postCreatorOrg:i,channel:o,channelGroups:n,channelId:a}=this;this.arcgisHubDiscussionsPostSelect.emit({parentId:e,parent:t,parentCreator:s,parentCreatorOrg:i,channel:o,channelGroups:n,channelId:a,scrollTarget:"editor"}),this.emitHubTelemetry(g.dictionary.category.interaction.action.open.label.editor.details.reply)}handleViewReplies(){let{postId:e,post:t,postCreator:s,postCreatorOrg:i,channel:o,channelGroups:n,channelId:a}=this;this.arcgisHubDiscussionsPostSelect.emit({parentId:e,parent:t,parentCreator:s,parentCreatorOrg:i,channel:o,channelGroups:n,channelId:a,scrollTarget:"list"}),this.emitHubTelemetry(g.dictionary.category.interaction.action.open.label.thread.details.bodyAction)}handleLinkClicked(e){let t=e.target;if(["CALCITE-LINK"].includes(t.nodeName)&&!t.hasAttribute("data-mention")){let{postId:s,parentId:i,channel:o,index:n}=this;this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.navigation.action.external.label.link),{details:t.href,postId:s,parentId:i,channelId:o.id,channelAccess:x(o),position:n}))}}capturePostDeepLinkImpression(){this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.interaction.action.viewed.label.post.details.thread),{response:g.constants.response.SUCCESS}))}capturePostListImpression(){this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.interaction.action.viewed.label.post.details.postList),{position:this.index}))}capturePostDeletedImpression(){this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.interaction.action.viewed.label.post.details.thread),{response:g.constants.response.FAILURE}))}capturePostHiddenImpression(){this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.interaction.action.viewed.label.post.details.thread),{response:g.constants.response.FAILURE}))}handleRenderedElChange(e,t){this.removeAnimationEventListeners(t),this.addAnimationEventListeners(e)}handleContextChanged(e,t){var s,i;((s=e?.currentUser)===null||s===void 0?void 0:s.username)!==((i=t?.currentUser)===null||i===void 0?void 0:i.username)&&this.loadDependencies()}addAnimationEventListeners(e){e&&e.addEventListener("animationend",this.handleAnimationEnd)}removeAnimationEventListeners(e){e&&e.removeEventListener("animationend",this.handleAnimationEnd)}handleViewAllReplies(){let{parent:e,parentId:t,parentCreator:s,parentCreatorOrg:i,channel:o,channelId:n,channelGroups:a}=this;this.arcgisHubDiscussionsPostSelect.emit({parent:e,parentId:t,parentCreator:s,parentCreatorOrg:i,channelId:n,channel:o,channelGroups:a})}handleReplyOutOfContextReadMore(){let{parent:e,parentId:t,parentCreator:s,parentCreatorOrg:i,channel:o,channelId:n,channelGroups:a,postId:c,post:l,postCreator:d,postCreatorOrg:u}=this;this.arcgisHubDiscussionsPostSelect.emit({parent:e,parentId:t,parentCreator:s,parentCreatorOrg:i,channelId:n,channel:o,channelGroups:a,postId:c,post:l,postCreator:d,postCreatorOrg:u})}handleViewPost(e){e.stopPropagation();let{parent:t,parentId:s,parentCreator:i,parentCreatorOrg:o,channel:n,channelId:a,channelGroups:c,post:l,postId:d,postCreator:u,postCreatorOrg:h}=this;this.arcgisHubDiscussionsPostSelect.emit({parent:t,parentId:s,parentCreator:i,parentCreatorOrg:o,channelId:a,channel:n,channelGroups:c,post:l,postId:d,postCreator:u,postCreatorOrg:h})}handleSetComponentRef(e){e&&(this.renderedEl=e)}handlePostCanceled(e){e.stopPropagation(),this.transitionEditorView(!1),this.arcgisHubDiscussionsGeometryDeselect.emit(),this.arcgisHubDiscussionsGeometryDrawReset.emit()}async handlePostCreatedOrDeleted(e){var t;if(e.detail.parentId===((t=this.post)===null||t===void 0?void 0:t.id)){let s=await z(Object.assign({postId:this.post.id,data:{relations:[C.REACTIONS,C.REPLIES,C.CHANNEL,C.CHANNEL_ACL]}},this._context.hubRequestOptions));s.replyCount=s.replies.total,delete s.replies,this.arcgisHubDiscussionsPostEdit.emit(s)}}handleAnimationEnd(e){e.animationName==="out-left"?(this.editing=!0,this.editorClass=L.IN,this.articleClass=L.HIDDEN):e.animationName==="out-right"?(this.editing=!1,this.editorClass=L.HIDDEN,this.articleClass=L.IN):(this.editorClass=null,this.articleClass=null,this.minHeight=null)}async handlePostEditedBody(e){var t;if(((t=this.post)===null||t===void 0?void 0:t.id)===e.detail.id){this.post=e.detail;let{postMentionedUsers:s}=await ft({postMentionedUsers:this.postMentionedUsers,post:this.post},this._context.hubRequestOptions);this.postMentionedUsers=s}}handlePostEdited(e){e.target.nodeName.toLowerCase()==="arcgis-hub-discussions-post-editor"&&this.transitionEditorView(!1)}handlePopoverOpen(){this.popoverIsOpen=!0}handlePopoverClose(){this.popoverIsOpen=!1}transitionEditorView(e){var t,s;this.minHeight=(s=(t=this.renderedEl)===null||t===void 0?void 0:t.offsetHeight)!==null&&s!==void 0?s:null,this.editorClass=e?L.HIDDEN:L.OUT,this.articleClass=e?L.OUT:L.HIDDEN}get isLoading(){return!this._context||this._loading||!this.intl||this.loading}get locationListIsDisabled(){let e=!1;return this.locationDescriptionText&&!this.isMobile||this.showLocations?e=!1:(!this.hasMap||this.isMobile)&&(e=!0),e}get views(){let{renderEditor:e,renderDeleted:t,renderHidden:s,renderPost:i,renderReply:o,renderSkeleton:n,renderReplyOutOfContext:a}=this;return{[D.Skeleton]:{render:n},[D.Post]:{render:i},[D.Reply]:{render:o},[D.OutOfContext]:{render:a},[D.Editor]:{render:e},[D.Deleted]:{render:t},[D.Hidden]:{render:s}}}get view(){let{views:e,post:t,postError:s,editing:i,isLoading:o,outOfContext:n,isReply:a}=this,c=s?.status,l;return o?l=D.Skeleton:c===404?l=D.Deleted:c===422?l=D.Hidden:t?i?l=D.Editor:n?l=D.OutOfContext:a?l=D.Reply:l=D.Post:l=D.Deleted,e[l]}get actionMenuActions(){let{isReply:e,post:t,channel:s,_context:i,intl:o,isHub:n}=this,a=[];return!e&&n&&a.push({icon:"link",text:o.t("link"),fn:this.handleCopyLink,ref:c=>{this.copyActionRef=c}}),i.currentUser&&(Ze(s,i.currentUser)&&a.push(t.status===k.HIDDEN||t.status===k.BLOCKED?{icon:"view-visible",text:o.t("show"),fn:this.handleToggleVisibility}:{icon:"view-hide",text:o.t("hide"),fn:this.handleToggleVisibility}),e||((t.creator===i.currentUser.username||Ie(t,i.currentUser,s))&&a.push({icon:"pencil",text:o.t("edit"),fn:this.handleEdit}),Ce(t,s,i.currentUser)&&a.push({icon:"trash",text:o.t("delete"),fn:this.handleDelete}))),a}get creatorFullName(){let{intl:e,post:t,postCreator:s}=this,i=e.t("anonymous");return(s||t?.creator)&&(i=s?.fullName||e.t("privateUser")),i}get outOfContext(){let{index:e,lead:t,isReply:s}=this;return s&&!t&&e!==void 0}get styles(){let{minHeight:e}=this,t={};return e&&(t.minHeight=`${e}px`),t}get isReply(){var e;return!!(this.parent||this.parentId||!((e=this.post)===null||e===void 0)&&e.parentId)}renderEditor(){let{hasMap:e,index:t,isHub:s,unsavedFeatures:i,unsavedRelatedFeatures:o,unsavedExistingFeatures:n,post:a,postCreator:c,postCreatorOrg:l,displayFieldKey:d,displayFieldValue:u,displayFieldValid:h,entity:p,discussionSettings:m,discussion:b,entityId:f,entityType:_,isMobile:w,channelId:A,channel:R,channelGroups:I,locationId:O,postId:S,isReply:T,lead:U,lastIndex:P,editorClass:B,parent:ge,parentId:be,parentCreator:me,showLocations:Pt,disableSelectExistingLocation:At}=this;return r("div",{class:{"arcgis-hub-discussions-post-lead":T&&U,"arcgis-hub-discussions-post-last":T&&t===P,[B]:!!B,"arcgis-hub-discussions-post-editor-container":!0},ref:this.handleSetComponentRef},r("slot",{name:"editor"},r("arcgis-hub-discussions-post-editor",{channel:R,channelGroups:I,channelId:A,disableSelectExistingLocation:At,discussion:b,discussionSettings:m,displayFieldKey:d,displayFieldValid:h,displayFieldValue:u,entity:p,entityId:f,entityType:_,hasMap:e,index:t,isHub:s,isMobile:w,locationId:O,parent:ge,parentCreator:me,parentId:be,post:a,postCreator:c,postCreatorOrg:l,postId:S,showLocations:Pt,unsavedExistingFeatures:n,unsavedFeatures:i,unsavedRelatedFeatures:o})))}renderReactions(){let{post:e,channel:t}=this;if(t.allowReaction)return r("arcgis-hub-discussions-post-reactions",{channel:t,post:e})}renderMetadata(e,t,s,i,o,n,a,c,l){let{isHub:d,post:u,postCreator:h,postCreatorOrg:p,parentCreator:m,channel:b,index:f,parent:_,handleViewPost:w}=this;return r("slot",{name:"metadata"},r("arcgis-hub-discussions-post-header",{channel:b,iconScale:"l",index:f,isHub:d,metadataOrientation:e,onArcgisHubDiscussionsPostSelect:w,parent:_,parentCreator:m,post:u,postCreator:h,postCreatorOrg:p,showChannelAccessIcon:t,showChannelAvatar:s,showChannelName:i,showCreatorAvatar:o,showPopover:n,showReplyingTo:a,showTimestamp:l,showViewPostAction:c}))}renderPost(){let{intl:e,errorMessage:t,preview:s,post:i,channel:o,index:n,articleClass:a,showChannelAvatar:c,showChannelName:l}=this;return n===void 0?this.capturePostDeepLinkImpression():this.capturePostListImpression(),r("article",{class:{[a]:!!a},ref:this.handleSetComponentRef},r("arcgis-hub-discussions-post-chips",{channel:o,index:n,post:i}),this.renderMetadata("block",!0,c,l,!0,!0,!1,!1,!0),r("header",{innerHTML:this.postTitle}),r("arcgis-multiline-ellipsis",{"expand-enabled":s,"expand-icon":this.isRtl?"arrow-left":"arrow-right",innerHTML:this.postBody,lines:s?4:0,onClick:this.handleLinkClicked}),this.renderGeography(!1,!0),r("footer",null,this.renderReactions(),r("div",{class:"actions"},this.renderTextActions(),this.renderActionMenu())),t&&r("calcite-notice",{closable:!0,kind:"danger",open:!0,scale:"s"},r("div",{slot:"title"},e.t("error")),r("div",{slot:"message"},e.t(t))))}renderTextActions(){let{intl:e,post:t,preview:s,channel:i,_context:o}=this,n;return s?n=t.replyCount>1?"actions.viewMany":"actions.viewOne":n=t.replyCount>1?"actions.replies":"actions.oneReply",r("calcite-action-group",{layout:"horizontal"},s&&it(i,o.currentUser)&&fe(this.entity)&&r("calcite-action",{class:"text-action-reply",onClick:this.handleReply,scale:"s",text:e.t("actions.reply"),textEnabled:!0}),t.replyCount!==0&&r("calcite-action",{class:"text-action-view-reply",disabled:!s,onClick:this.handleViewReplies,scale:"s",text:e.t(n,{count:t.replyCount}),textEnabled:!0}))}renderActionMenu(){let{intl:e,isReply:t,actionMenuActions:s}=this;if(s.length)return r(E,null,r("calcite-action",{alignment:"center",class:"discussions-post-action-menu",ref:i=>{this.menuActionElement=i},scale:"s",text:e.t("options")},r("calcite-icon",{class:"discussions-post-action-menu-icon",icon:"ellipsis",scale:"s"})),r("calcite-popover",{autoClose:!0,flipPlacements:t?["top","bottom"]:["top-end","bottom-end"],label:e.t("options"),offsetDistance:0,onCalcitePopoverBeforeClose:this.handleActionsPopoverBeforeOpenClose,onCalcitePopoverBeforeOpen:this.handleActionsPopoverBeforeOpenClose,overlayPositioning:"absolute",placement:"bottom-end",pointerDisabled:!0,ref:i=>{this.menuPopoverElement=i},referenceElement:this.menuActionElement},r("calcite-action-group",{layout:"vertical"},s.map(({text:i,fn:o,icon:n,ref:a})=>r("calcite-action",{class:"discussions-post-action-menu-options","data-action":i.toLowerCase(),id:"discussions-post-action-menu-option-"+n,key:n,onClick:o,ref:a,scale:"m",text:i,"text-enabled":"true"},r("calcite-icon",{class:"discussions-post-action-menu-options-icon",flipRtl:this.isRtl,icon:n,scale:"s"}))))),s.some(({icon:i})=>i==="link")&&r("calcite-tooltip",{onCalciteTooltipBeforeOpen:this.handleCopyTooltipBeforeOpen,onCalciteTooltipClose:this.handleCopyTooltipClose,open:!1,placement:"top",ref:i=>{this.copyTooltipRef=i},referenceElement:this.copyActionRef},r("span",null,e.t("copied"))))}renderDeleted(){let{intl:e,deletedDuringSession:t,isReply:s,handleViewAllReplies:i}=this;return t||this.capturePostDeletedImpression(),r("calcite-notice",{kind:"danger",open:!0,scale:"m"},r("div",{slot:"title"},e.t(s?"deleted.title.reply":"deleted.title")),r("div",{slot:"message"},e.t(s?"deleted.message.reply":"deleted.message")),s&&r("calcite-link",{onClick:i,slot:"link"},e.t("delete.action")))}renderHidden(){let{intl:e,isReply:t}=this;return this.capturePostHiddenImpression(),r("calcite-notice",{kind:"warning",open:!0,scale:"m"},r("div",{slot:"title"},e.t(t?"hidden.title.reply":"hidden.title")),r("div",{slot:"message"},e.t("hidden.message")))}renderSkeleton(){return r("arcgis-hub-discussions-post-skeleton",null)}render(){return r(q,{key:"f0896df715b6821aee6627f31d83d72a36feee97",class:{loading:this._loading},"data-element":"discussions-post","data-view":this.view.render.name,style:this.styles},this.view.render())}renderAvatars(){var e;let{_context:t,isHub:s,parent:i,parentCreator:o,post:n,postCreator:a,postCreatorOrg:c,channel:l,intl:d,index:u,outOfContext:h}=this,p=!a&&n?{username:n.creator}:a,m=h?"l":"m",b=[r("calcite-avatar",{"full-name":p?.fullName,key:"creator",scale:m,thumbnail:p?.thumbnail&&ye(t.hubRequestOptions.portal,p,(e=t.hubRequestOptions.authentication)===null||e===void 0?void 0:e.token),"user-id":p?.id,username:p?.username})];return h&&b.push(r("calcite-avatar",{"full-name":ct(l,d.t("unnamedChannel")),scale:"m"})),o&&(b=r("arcgis-hub-discussions-popover",{channel:l,index:u,isHub:s,parent:i,parentCreator:o,post:n,postCreator:a,postCreatorOrg:c},b)),b}renderActions(){let{intl:e,_context:t,channel:s,post:i,isHub:o}=this,n=[];if(o&&n.push({text:e.t("link"),onClick:this.handleCopyLink,ref:a=>{this.copyActionRef=a}}),t.currentUser&&((i.creator===t.currentUser.username||Ie(i,t.currentUser,s))&&n.push({text:e.t("edit"),onClick:this.handleEdit}),Ce(i,s,t.currentUser)&&n.push({text:e.t("delete"),onClick:this.handleDelete})),n.length)return r("calcite-action-group",{layout:"horizontal"},n.map(a=>r("calcite-action",{appearance:a.appearance,"data-action":a.text.toLowerCase(),icon:a.icon,key:a.text||a.pin,onClick:a.onClick,onMouseOver:a.onMouseOver,ref:a.ref,scale:"s",text:a.text,"text-enabled":!!a.text})),o&&r("calcite-tooltip",{onCalciteTooltipBeforeOpen:this.handleCopyTooltipBeforeOpen,onCalciteTooltipClose:this.handleCopyTooltipClose,open:!1,placement:"top",ref:a=>{this.copyTooltipRef=a},referenceElement:this.copyActionRef},r("span",null,e.t("copied"))))}renderReplyOutOfContext(){let{intl:e,errorMessage:t,index:s,lead:i,lastIndex:o,articleClass:n,handleReplyOutOfContextReadMore:a}=this;return s===void 0?this.capturePostDeepLinkImpression():this.capturePostListImpression(),r("article",{class:{"out-of-context":!0,"arcgis-hub-discussions-post-last":i&&s===o,[n]:!!n},ref:this.handleSetComponentRef},this.renderMetadata("block",!1,!0,!1,!0,!0,!0,!0,!1),r("div",{class:"reply-body"},r("arcgis-multiline-ellipsis",{"collapse-enabled":!0,"expand-enabled":!0,"expand-icon":this.isRtl?"arrow-left":"arrow-right",innerHTML:this.postBody,lines:4,onClick:a}),this.renderGeography(!0,!1),this.renderReactions(),r("footer",null,this.renderActions()),t&&r("calcite-notice",{closable:!0,kind:"danger",open:!0,scale:"s"},r("div",{slot:"title"},e.t("error")),r("div",{slot:"message"},e.t(t)))))}renderGeography(e,t){let{hasMap:s,channel:i,channelId:o,parentId:n,displayFieldKey:a,displayFieldValid:c,entity:l,isMobile:d,locationDescriptionText:u,locationListIsDisabled:h,post:p,postId:m,showLocations:b}=this;if(b)return r("arcgis-hub-discussions-post-geography",{channel:i,channelId:o,disabled:h,displayFieldKey:a,displayFieldValid:c,expandable:t,hasMap:s,isMobile:d,locationDescriptionText:u,parentId:n,post:p,postId:m,showLocationDescriptionText:!d,toggleable:e,url:l?.url})}renderReply(){let{intl:e,errorMessage:t,channel:s,post:i,articleClass:o,lead:n,index:a,lastIndex:c}=this,l={"arcgis-hub-discussions-post-lead":n,"arcgis-hub-discussions-post-last":n&&a===c};return o&&(l[o]=!0),a===void 0?this.capturePostDeepLinkImpression():this.capturePostListImpression(),r("article",{class:l,ref:this.handleSetComponentRef},r("arcgis-hub-discussions-post-chips",{channel:s,index:a,post:i}),this.renderAvatars(),r("div",null,this.renderMetadata("inline",!1,!1,!1,!1,!1,!1,!1,!0),r("arcgis-multiline-ellipsis",{"collapse-enabled":!0,"expand-enabled":!0,innerHTML:this.postBody,lines:4}),this.renderGeography(!0,!1),r("footer",null,this.renderReactions(),this.renderActions(),this.renderActionMenu()),t&&r("calcite-notice",{closable:!0,kind:"danger",open:!0,scale:"s"},r("div",{slot:"title"},e.t("error")),r("div",{slot:"message"},e.t(t)))))}static get assetsDirs(){return["locales"]}get element(){return F(this)}static get watchers(){return{renderedEl:["handleRenderedElChange"],_context:["handleContextChanged"]}}};J([de({delay:300})],W.prototype,"fetchDependencies",null);J([K("post.body","post.status"),Dt({ignoreTags:["calcite-link"],replaceExisting:!0,tagName:"calcite-link"}),Lt(),wt("postBody","sc-arcgis-hub-discussions-post blocked"),Ee({filterOptions:{whiteList:{"calcite-link":["href","data-mention"]}},extendDefaults:!0})],W.prototype,"postBody",null);J([K("post.title","post.status"),wt("postTitle","sc-arcgis-hub-discussions-post blocked"),Ee()],W.prototype,"postTitle",null);J([ne()],W.prototype,"capturePostDeepLinkImpression",null);J([ne()],W.prototype,"capturePostListImpression",null);J([ne()],W.prototype,"capturePostDeletedImpression",null);J([ne()],W.prototype,"capturePostHiddenImpression",null);W.style=Ft;var Nt=':host{display:block}calcite-chip-group{display:flex;flex-direction:row;justify-content:flex-start;gap:0.25rem}:host([data-count="0"]){display:none}.end{margin-left:auto}',Vt=Nt,Mt=class{constructor(e){N(this,e),this.hubTelemetry=v(this,"hubTelemetry",7),this.post=void 0,this.index=void 0,this.channel=void 0,this.activeTooltip=null,$(this,"handleTooltipOpen","renderChip","handleChipMouseEnter","handleChipMouseOut")}async componentWillLoad(){this.intl=await j.loadIntlForComponent(this.element)}handleTooltipOpen(e){let{post:t,channel:s,chipsToRender:i,index:o}=this,{tooltip:{telemetry:n}}=i.find(a=>a.type===e.target.dataset.type);this.hubTelemetry.emit(Object.assign(Object.assign({},n),{postId:t.id,parentId:t.parentId,channelId:s.id,channelAccess:x(s),position:o}))}handleChipMouseEnter(e){this.activeTooltip=e.target.dataset.type}handleChipMouseOut(){this.activeTooltip=null}get chipsToRender(){let{post:e,intl:t}=this,s=[];return(e.status===k.HIDDEN||e.status===k.BLOCKED)&&s.push({appearance:"outline",icon:"view-hide",kind:"neutral",tooltip:{telemetry:g.dictionary.category.interaction.action.open.label.tooltip.details.chipComponentWithStringHidden,text:e.status===k.BLOCKED?t.t("chip.hidden.label.blocked"):t.t("chip.hidden.label.moderator")},type:"hidden",value:t.t("chip.hidden.text")}),s}renderChip(e){let{activeTooltip:t,handleTooltipOpen:s}=this;return r(E,null,r("calcite-chip",{appearance:e.appearance,class:e.type==="hidden"&&"end","data-type":e.type,icon:e.icon,id:e.type,key:e.type,kind:e.kind,label:e.value,onMouseEnter:this.handleChipMouseEnter,onMouseOut:this.handleChipMouseOut,scale:"s",value:e.value},e.value),e.tooltip&&r("calcite-tooltip",{"data-type":e.type,label:e.tooltip.text,onCalciteTooltipOpen:s,open:t===e.type,overlayPositioning:"fixed",placement:"bottom",referenceElement:e.type},r("div",{class:"tooltip-body"},e.tooltip.text)))}render(){let{chipsToRender:e,index:t,intl:s}=this;return r(q,{key:"600abe0ce66d7c0127fad356f232c095fea11b8c","data-count":e.length,"data-element":"post-chips","data-index":t},r("calcite-chip-group",{key:"84520a00069ffc4ab692abb98e1bbfbf8b0f4f06",label:s.t("label"),scale:"s"},e.map(this.renderChip)))}static get assetsDirs(){return["locales"]}get element(){return F(this)}};Mt.style=Vt;var M;(function(e){e.AUDIENCE="audience",e.CONTENT="content"})(M||(M={}));var Ut="arcgis-hub-discussions-post-editor:not([parent-id]){display:block;border-radius:0.25rem;background-color:var(--calcite-color-foreground-1);padding:0.75rem;--tw-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.12);--tw-shadow-colored:0 2px 8px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.hub-discussions-post-editor-header{margin-bottom:1.5rem;display:grid;grid-template-rows:repeat(1, minmax(0, 1fr));align-items:center;column-gap:0.75rem;grid-template-columns:44px auto 44px}.hub-discussions-post-editor-header__title{margin:0px;text-align:center;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}.hub-discussions-post-editor-header__popover{padding:1rem;margin-top:revert;margin-bottom:revert}.hub-discussions-post-editor-audience__description{font-size:var(--calcite-font-size-0);line-height:1.25rem}.hub-discussions-post-editor-audience__header{margin-top:1.5rem;margin-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}.hub-discussions-post-editor-audience__gallery{--calcite-color-border-3:transparent}.hub-discussions-post-editor-audience__button{margin-top:1rem;margin-bottom:0.5rem}.hub-discussions-post-editor-groups__action{margin-top:0.75rem}.hub-discussions-post-editor-recent__list{margin-top:0px;margin-bottom:0px;list-style-type:none;padding:0px}.hub-discussions-post-editor-recent__item{margin-bottom:0.75rem;margin-top:0px;display:grid;grid-auto-flow:column;grid-template-rows:repeat(2, minmax(0, 1fr));column-gap:0.75rem;grid-template-columns:44px auto 44px}.hub-discussions-post-editor-recent__item:last-child{margin-bottom:0px}.hub-discussions-post-editor-recent__avatar{grid-row:span 2 / span 2}.hub-discussions-post-editor-recent__title{font-weight:var(--calcite-font-weight-bold);overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.hub-discussions-post-editor-recent__last-activity{font-size:var(--calcite-font-size--1);line-height:1rem;font-style:normal;color:var(--calcite-color-text-2)}.hub-discussions-post-editor-recent__action{grid-row:span 2 / span 2}.hub-discussions-post-editor-post-actions,.hub-discussions-post-editor-geometry-actions{margin-top:1rem;display:flex;justify-content:flex-end}.hub-discussions-post-editor-post-actions>calcite-action{margin-right:auto}.hub-discussions-post-editor-geometry-actions__feature,.hub-discussions-post-editor-geometry-actions__related,.hub-discussions-post-editor-post-actions__primary,.hub-discussions-post-editor-post-actions__secondary{margin-left:0.75rem}arcgis-hub-discussions-post-editor.rtl .hub-discussions-post-editor-geometry-actions__feature,arcgis-hub-discussions-post-editor.rtl .hub-discussions-post-editor-geometry-actions__related,arcgis-hub-discussions-post-editor.rtl .hub-discussions-post-editor-post-actions__primary,arcgis-hub-discussions-post-editor.rtl .hub-discussions-post-editor-post-actions__secondary{margin-left:0px;margin-right:0.75rem}.hub-discussions-post-editor__title{margin:0px;margin-top:1rem;height:auto;width:100%;resize:none;border-style:none;background-color:var(--calcite-color-foreground-1);padding:0px;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1);--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.hub-discussions-post-editor__title:focus{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}.hub-discussions-post-editor__title::placeholder{color:var(--calcite-color-text-3);opacity:1}.hub-discussions-post-editor__body{margin-top:0.5rem;white-space:pre-wrap}.hub-discussions-post-editor__body[scale=m] .ck.ck-editor__editable{border-style:none;background-color:var(--calcite-color-foreground-1);padding:0px;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-color-text-1);outline:2px solid transparent;outline-offset:2px;min-height:6rem}.hub-discussions-post-editor__body .ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border-style:none;outline:2px solid transparent;outline-offset:2px}.hub-discussions-post-editor__body[scale=m] .ck.ck-editor__editable .ck-placeholder:before{color:var(--calcite-color-text-3)}.hub-discussions-post-editor__body .ck.ck-editor__editable_inline>:first-child{margin-top:0px}.hub-discussions-post-editor__body .ck.ck-editor__editable_inline>:last-child{margin-bottom:0px}.hub-discussions-post-editor__message{margin-top:0.5rem}.hub-discussions-post-editor__empty,.hub-discussions-post-editor__load-error{margin-top:1rem}.hub-discussions-post-editor__crud-error,.hub-discussions-post-editor__not-discussable-notice{margin-top:1rem}.hub-discussions-post-editor-cancel-confirm__header{margin-left:0px;margin-right:0px;margin-top:0.5rem;margin-bottom:0px;display:block;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold)}.hub-discussions-post-editor-cancel-confirm__message{margin-top:0.5rem;margin-bottom:0px}.hub-discussions-post-editor-cancel-confirm__footer{margin-top:1.5rem;display:flex;justify-content:flex-end;column-gap:0.75rem}.hub-discussions-post-editor-recent__skeleton{margin-bottom:0.75rem;margin-top:0px}.hub-discussions-post-editor-recent__skeleton arcgis-skeleton-loader{display:flex}@keyframes shimmer{0%{background-size:200% 100%;background-position:100% 0}100%{background-size:200% 100%;background-position:-100% 0}}.hub-discussions-post-editor-recent__skeleton arcgis-skeleton-loader>div:nth-of-type(1),.hub-discussions-post-editor-recent__skeleton arcgis-skeleton-loader>div:nth-of-type(2) div{animation:shimmer 2s cubic-bezier(0.4, 0, 0.2, 0.8) infinite;background-image:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);background-color:var(--calcite-color-foreground-3)}.hub-discussions-post-editor-recent__skeleton arcgis-skeleton-loader>div:nth-of-type(1){height:2.75rem;width:2.75rem;border-radius:50%}.hub-discussions-post-editor-recent__skeleton arcgis-skeleton-loader>div:nth-of-type(2){margin-left:1rem;display:flex;flex-grow:1;flex-direction:column;justify-content:center}.hub-discussions-post-editor-recent__skeleton arcgis-skeleton-loader>div:nth-of-type(2) div:nth-of-type(1){margin-bottom:0.5rem;height:0.75rem;border-radius:0.375rem}.hub-discussions-post-editor-recent__skeleton arcgis-skeleton-loader>div:nth-of-type(2) div:nth-of-type(2){height:0.5rem;border-radius:0.25rem}.location-popover>div.popover,.popover{max-width:20rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1.25rem;padding-right:1.25rem}.add-location-post:active .add-location-icon{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.add-location-post[active] .add-location-icon{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}arcgis-hub-discussions-post-editor[parent-id]{display:block}.hub-discussions-reply-editor__form{border-radius:0.25rem;background-color:var(--calcite-color-foreground-1);padding:0.75rem;--tw-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.12);--tw-shadow-colored:0 2px 8px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.hub-discussions-reply-editor-user-details{margin:0px;display:grid;align-items:center;column-gap:0.75rem;grid-template-columns:32px auto}.hub-discussions-reply-editor-user-details__name{font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-bold);font-style:normal}.hub-discussions-reply-editor__notice,.hub-discussions-reply-editor__not-discussable-notice{margin-left:0px;margin-right:0px;margin-top:1rem}.hub-discussions-post-editor-cancel-confirm{display:block}.hub-discussions-post-editor-cancel-confirm__button{margin:0px}.hub-discussions-reply-editor__body{margin-top:0.75rem;white-space:pre-wrap}.hub-discussions-reply-editor__body[scale=m] .ck.ck-editor__editable{border-style:none;background-color:var(--calcite-color-foreground-1);padding:0px;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-color-text-1);outline:2px solid transparent;outline-offset:2px;min-height:6rem}.hub-discussions-reply-editor__body .ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border-style:none;outline:2px solid transparent;outline-offset:2px}.hub-discussions-reply-editor__body[scale=m] .ck.ck-editor__editable .ck-placeholder:before{color:var(--calcite-color-text-3)}.hub-discussions-reply-editor__body .ck.ck-editor__editable_inline>:first-child{margin-top:0px}.hub-discussions-reply-editor__body .ck.ck-editor__editable_inline>:last-child{margin-bottom:0px}.hub-discussions-reply-editor__message{margin-top:0.5rem}.hub-discussions-reply-editor__location-popover>div.hub-discussions-reply-editor__location-popover__content,.hub-discussions-reply-editor__location-popover__content{max-width:20rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1.25rem;padding-right:1.25rem}.add-location-post:active .add-location-icon{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.add-location-post[active] .add-location-icon{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}arcgis-hub-discussions-post-editor>form>header{padding-top:0.25rem;padding-bottom:1rem;text-align:center;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);text-transform:capitalize;color:var(--calcite-color-text-1)}.anon-toggle{margin-bottom:0.75rem;display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem;border-radius:0.75rem;background-color:var(--calcite-color-background);padding:1rem}.anon-toggle p:first-of-type{margin:0px;color:var(--calcite-color-text-1)}.anon-toggle p:nth-of-type(2){margin:0px;flex-basis:100%;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-color-text-2)}arcgis-hub-entity-editor{--calcite-dialog-size-y:95%}",Bt=Ut,ae=function(e,t,s,i){var o=arguments.length,n=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,s,i);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(n=(o<3?a(n):o>3?a(t,s,n):a(t,s))||n);return o>3&&n&&Object.defineProperty(t,s,n),n},te=class{constructor(e){N(this,e),this.arcgisHubDiscussionsPostEditorReady=v(this,"arcgisHubDiscussionsPostEditorReady",7),this.arcgisHubDiscussionsPostCancel=v(this,"arcgisHubDiscussionsPostCancel",7),this.arcgisHubDiscussionsPostCreate=v(this,"arcgisHubDiscussionsPostCreate",7),this.arcgisHubDiscussionsPostEdit=v(this,"arcgisHubDiscussionsPostEdit",7),this.arcgisHubDiscussionsGeometryDrawCreate=v(this,"arcgisHubDiscussionsGeometryDrawCreate",7),this.arcgisHubDiscussionsGeometryDrawTypeSelect=v(this,"arcgisHubDiscussionsGeometryDrawTypeSelect",7),this.arcgisHubDiscussionsGeometryDrawEdit=v(this,"arcgisHubDiscussionsGeometryDrawEdit",7),this.arcgisHubDiscussionsGeometryDrawReset=v(this,"arcgisHubDiscussionsGeometryDrawReset",7),this.arcgisHubDiscussionsGeometrySelect=v(this,"arcgisHubDiscussionsGeometrySelect",7),this.arcgisHubDiscussionsGeometryDeselect=v(this,"arcgisHubDiscussionsGeometryDeselect",7),this.arcgisHubDiscussionsGeometryClearAll=v(this,"arcgisHubDiscussionsGeometryClearAll",7),this.arcgisHubDiscussionsPostClose=v(this,"arcgisHubDiscussionsPostClose",7),this.hubTelemetry=v(this,"hubTelemetry",7),this.handleSubmit=t=>{t.preventDefault();let s=this.postId?this.handleEdit():this.handleCreate();return this.pending=!0,s.finally(()=>{this.pending=!1,this.arcgisHubDiscussionsGeometryClearAll.emit(),this.addLocationsActiveGeometryType=null})},this.handleCancel=t=>{var s,i,o,n,a,c,l,d;let{channel:u,post:h,parent:p}=this;t.preventDefault(),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.close.label.editor),{parentId:(s=p?.id)!==null&&s!==void 0?s:null,postId:(i=h?.id)!==null&&i!==void 0?i:null,channelId:(o=u?.id)!==null&&o!==void 0?o:null,channelAccess:u?x(u):null})),this.arcgisHubDiscussionsPostCancel.emit(),this.collapse(),this.confirmAction=null;let m=G(h?.geometry);this.geometryValue=Object.keys(m||{}).length?m:null,this.titleValue=(n=h?.title)!==null&&n!==void 0?n:"",this.bodyValue=(a=h?.body)!==null&&a!==void 0?a:"",this._unsavedExistingFeatures=(c=this.unsavedExistingFeatures)!==null&&c!==void 0?c:[],this._unsavedFeatures=(l=this.unsavedFeatures)!==null&&l!==void 0?l:[],this._unsavedRelatedFeatures=(d=this.unsavedRelatedFeatures)!==null&&d!==void 0?d:[],this.arcgisHubDiscussionsGeometryClearAll.emit()},this.handleCancelOrConfirm=t=>{this.hasChanges?this.confirmAction=this.handleCancel:this.handleCancel(t)},this.handleConfirmBackButtonClicked=()=>{this.confirmAction=null},this.handleBackOrConfirm=()=>{this.hasChanges?this.confirmAction=this.handleBack:this.handleBack()},this.handleBack=()=>{var t,s,i,o,n,a,c,l;let d=G((t=this.post)===null||t===void 0?void 0:t.geometry);this.geometryValue=Object.keys(d||{}).length?d:null,this._unsavedExistingFeatures=(s=this.unsavedExistingFeatures)!==null&&s!==void 0?s:[],this._unsavedFeatures=(i=this.unsavedFeatures)!==null&&i!==void 0?i:[],this._unsavedRelatedFeatures=(o=this.unsavedRelatedFeatures)!==null&&o!==void 0?o:[],this.channelId=null,this.channelGroups=null,this.channel=null,this._mentionQuery=null,this.confirmAction=null,this.titleValue=(a=(n=this.post)===null||n===void 0?void 0:n.title)!==null&&a!==void 0?a:"",this.bodyValue=(l=(c=this.post)===null||c===void 0?void 0:c.body)!==null&&l!==void 0?l:"",this.step=M.AUDIENCE,this.arcgisHubDiscussionsGeometryClearAll.emit()},this.handleHelpPopoverOpen=()=>{this.hubTelemetry.emit(g.dictionary.category.interaction.action.open.label.popover.details.help)},this.handleHelpPopoverClose=()=>{this.hubTelemetry.emit(g.dictionary.category.interaction.action.close.label.popover.details.help)},this.handleLocationPopoverOpen=()=>{this.addLocationsPopoverOpen=!0},this.handleLocationPopoverClose=()=>{this.addLocationsPopoverOpen=!1},this.updateTitleValue=t=>{this.titleValue=t.target.value},this.setActiveGeometryDrawType=t=>{let{target:s}=t,i=s.dataset.type;this.addLocationsActiveGeometryType=i,this.locationPopoverRef.open=!1,this.enableAddLocation()},this.channelCardCallback=t=>Object.assign(Object.assign({},t),{actionLinks:[{action:"channelSelect",ariaLabel:"aria label",label:"label",buttonStyle:"outline",buttonKind:"brand",icon:this.isRtl?"chevron-left":"chevron-right"}]}),this.toggleChannelPickerOpen=()=>{this.galleryPickerOpen=!this.galleryPickerOpen},this.handleChannelPickerSelectionUpdate=async t=>{await this.loadChannelDetails({channelId:t.detail.channel[0]})},this.getMentionQuery=t=>{let s=G(this._mentionQuery),i=o=>{var n,a;return!!(!((n=o.predicates[0])===null||n===void 0)&&n.username&&(!((a=o.predicates[1])===null||a===void 0)&&a.fullname))};return s.filters=t?s.filters.map(o=>i(o)?Object.assign(Object.assign({},o),{predicates:[{username:t},{fullname:t}]}):o):s.filters.filter(o=>!i(o)),s},this.handleAnonToggle=t=>{let s=t.target;this.asAnonymous=s.checked},this.handleEntityEditorClosed=()=>{this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.close.label.modal.details.viewChannel),{channelId:this.channelEntityToView.id,channelAccess:this.channelEntityToView.access})),this.channelEntityToView=null},this.handleChannelGalleryAction=async t=>{t.detail.action==="channelSelect"&&(await this.loadChannelDetails({channelId:t.detail.model.id}),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.select.label.channel.details.recents),{channelId:this.channel.id,channelAccess:x(this.channel)})))},this.handleChannelGalleryError=()=>{this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.viewed.label.recents),{response:g.constants.response.FAILURE}))},this.handleChannelGalleryResultsChange=t=>{this.hubTelemetry.emit(t.detail.length?Object.assign(Object.assign({},g.dictionary.category.interaction.action.viewed.label.recents),{response:g.constants.response.SUCCESS}):g.dictionary.category.interaction.action.viewed.label.empty)},this.focusInput=()=>{setTimeout(()=>{let{titleRef:t,bodyRef:s,isReply:i}=this;i?s&&s.setFocus():t&&t.focus()},500)},this.handleReplySubmit=t=>(t.preventDefault(),this.pending=!0,(this.postId?this.handleEditReply():this.handleCreateReply()).catch(i=>(X.error("Could not create reply:",i.message),null)).finally(async()=>{this.pending=!1,this.arcgisHubDiscussionsGeometryClearAll.emit(),this.addLocationsActiveGeometryType=null,this.focusInput()})),this.post=void 0,this.postCreator=void 0,this.postCreatorOrg=void 0,this.postId=void 0,this.parent=void 0,this.parentCreator=void 0,this.parentId=void 0,this.channel=void 0,this.channelGroups=void 0,this.channelId=void 0,this.entity=void 0,this.entityId=void 0,this.entityType=void 0,this.discussionSettings=void 0,this.discussion=void 0,this.displayFieldKey=void 0,this.displayFieldValid=void 0,this.displayFieldValue=void 0,this.locationId=void 0,this.hasMap=void 0,this.isHub=void 0,this.unsavedFeatures=[],this.unsavedRelatedFeatures=[],this.unsavedExistingFeatures=[],this.index=void 0,this.isMobile=void 0,this.createParentSaveButtonText=void 0,this.createParentBodyPlaceholderText=void 0,this.showLocations=void 0,this.disableSelectExistingLocation=void 0,this.showHeader=void 0,this.collapsible=void 0,this.collapsed=void 0,this.helpButtonRef=void 0,this._context=Q(),this._unsavedFeatures=[],this._unsavedRelatedFeatures=[],this._unsavedExistingFeatures=[],this.pending=!1,this.loading=void 0,this.titleValue="",this.bodyValue="",this.discussionValue="",this.geometryValue=void 0,this.geometryValueHasChanges=void 0,this.locationActionElement=void 0,this.step=null,this.errorMessage=null,this.confirmAction=null,this.addLocationsActiveGeometryType=void 0,this.addLocationsPopoverOpen=void 0,this.asAnonymous=!1,this.galleryPickerOpen=!1,this.numPostableChannels=null,this.channelEntityToView=null}async componentWillLoad(){await Promise.all([this.loadIntl(),this.initialize(this._context)])}async loadIntl(){this.intl=await j.loadIntlForComponent(this.element)}connectedCallback(){oe(this)}disconnectedCallback(){this.disconnectContext()}get isRtl(){return this.intl.direction==="rtl"}get hasChanges(){let{titleValue:e,bodyValue:t,post:s,isReply:i}=this,o;return s?o=i?t!==s.body:t!==s.body||e!==s.title:o=i?t.length>0:e.length>0||t.length>0,o}get postWithLocationEdits(){let{post:e,geometryValue:t,discussionValue:s}=this,i;return e&&(i=G(e),i.geometry=t,s!==e.discussion&&(i.discussion=s)),i}get hasMentionedUsers(){return!!ce(this.bodyValue).length}async fetchDependencies(){let[e,t]=await Promise.all([Te({postId:this.postId,post:this.post},this._context.hubRequestOptions),ue({isHub:this.isHub},this._context.hubRequestOptions)]),[s,i]=await Promise.all([je(Object.assign({postCreator:this.postCreator,postCreatorOrg:this.postCreatorOrg},e),this._context.hubRequestOptions),He(Object.assign({parentId:this.parentId,parent:this.parent},e),this._context.hubRequestOptions)]),[o,n,a]=await Promise.all([he(Object.assign(Object.assign({discussion:this.discussion,entityId:this.entityId,entityType:this.entityType,entity:this.entity,discussionSettings:this.discussionSettings,displayFieldKey:this.displayFieldKey,displayFieldValid:this.displayFieldValid,displayFieldValue:this.displayFieldValue,locationId:this.locationId},e),i),this._context.hubRequestOptions,!0),pe(Object.assign(Object.assign({channelId:this.channelId,channel:this.channel,channelGroups:this.channelGroups},e),i),this._context.hubRequestOptions),Fe(Object.assign({parentCreator:this.parentCreator},i),this._context.hubRequestOptions)]),c=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),s),i),a),n),o),t);Object.assign(this,c)}async initialize(e,t){var s,i,o;if(((s=e?.currentUser)===null||s===void 0?void 0:s.username)!==((i=t?.currentUser)===null||i===void 0?void 0:i.username)){this.loading=!0,await this.fetchDependencies();let{post:n,channel:a}=this;if(n){let{title:c,body:l,discussion:d,geometry:u}=n;this.bodyValue=l,n.title&&(this.titleValue=c),this.discussionValue=d;let h=G(u);this.geometryValue=Object.keys(h||{}).length?h:null}if(a)await this.loadChannelDetails({channel:a}),this.step=M.CONTENT;else{let{total:c,results:l}=await ut({allowedChannelIds:(o=this.discussionSettings)===null||o===void 0?void 0:o.allowedChannelIds,requestOptions:this._context.hubRequestOptions,num:1});this.numPostableChannels=c,c===1?(await this.loadChannelDetails({channel:l[0].rawResult}),this.step=M.CONTENT):this.step=M.AUDIENCE}this.arcgisHubDiscussionsPostEditorReady.emit(n),this.loading=!1}}emitHubTelemetry(e){let{channel:t,channelGroups:s}=this,{groupAccesses:i,groupOrgIds:o,groupIds:n}=(s??[]).reduce((c,l)=>l?{groupAccesses:[...c.groupAccesses,l.access],groupOrgIds:[...c.groupOrgIds,l.orgId],groupIds:[...c.groupIds,l.id]}:c,{groupAccesses:[],groupOrgIds:[],groupIds:[]}),a=Object.assign(Object.assign({},e),{channelAccess:x(t),channelId:t.id,groupAccess:i.filter(Boolean).join(", "),groupId:n.filter(Boolean).join(", "),groupOrgId:o.filter(Boolean).join(", "),orgId:Be(t).join(", ")});this.hubTelemetry.emit(a)}handleGeometryValueUpdated(){if(this.post){let{post:{geometry:e},geometryValue:t}=this;this.geometryValueHasChanges=JSON.stringify(t)!==JSON.stringify(e)}}mapFeaturePropToState(e){var t;let{postId:s,post:i}=this;if(e.length){let o=(t=e[0].properties)===null||t===void 0?void 0:t.id;(s===o||!i&&!o)&&(this._unsavedFeatures=e.filter(({properties:a})=>!a?.pending),this.resetActiveGeometryDrawType())}else this._unsavedFeatures=[]}mapExistingFeaturePropToState(e){var t;let{postId:s}=this;if(e.length){let i=(t=e[0].properties)===null||t===void 0?void 0:t.id;s===i&&(this._unsavedExistingFeatures=e,e.forEach(n=>{let{geometry:a,properties:c}=n;a||this.removeFeature(c.index,null,!1)}),this.resetActiveGeometryDrawType())}else this._unsavedExistingFeatures=[]}mapRelatedFeaturePropToState(e){let{postId:t}=this;if(e.length){let s=e[0].postId;(t===s||!t&&!s)&&(this._unsavedRelatedFeatures=e,this.resetActiveGeometryDrawType())}else this._unsavedRelatedFeatures=[]}handleAddLocationsActiveGeometryTypeChanged(e){e&&this.arcgisHubDiscussionsGeometryDrawTypeSelect.emit(e)}async handleCreate(){var e;let{_context:t,_unsavedFeatures:s,_unsavedRelatedFeatures:i,bodyValue:o,titleValue:n,channelId:a,discussion:c,asAnonymous:l,entity:{url:d},arcgisHubDiscussionsPostCreate:u}=this,{channel:h}=this,p=c;if(i.length){let f=d.split("/").pop(),_=new Set(i.map(w=>w.objectId));p=Z(p,f,Array.from(_))}let m=null;s.length&&(m=s.length>1?se(s):s[0].geometry),this.errorMessage=null;let b;try{let{id:f}=await Ke(Object.assign({data:{channelId:h.id,discussion:p,title:n.trim()||void 0,body:o.trim(),geometry:m,asAnonymous:l},mentionUrl:window.location.href},t.hubRequestOptions));return b=await z(Object.assign({postId:f,data:{relations:[C.REACTIONS,C.CHANNEL,C.CHANNEL_ACL]}},this._context.hubRequestOptions)),b.replyCount=0,this.titleValue="",this.bodyValue="",this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.post),{response:g.constants.response.SUCCESS,details:(e=b.title)!==null&&e!==void 0?e:null,groupId:ve(h).join(", "),postId:b.id,channelId:h.id,channelAccess:x(h)})),u.emit(b),this.focusInput(),b}catch(f){return this.errorMessage="error.create",this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.post),{response:g.constants.response.FAILURE,groupId:ve(h).join(", "),channelId:a,channelAccess:h?x(h):""})),X.error("Failed to create post:",f.message),null}}handleEdit(){let{_context:e,bodyValue:t,titleValue:s,channelId:i,channel:o,post:n,_unsavedFeatures:a,_unsavedExistingFeatures:c,_unsavedRelatedFeatures:l,arcgisHubDiscussionsPostEdit:d,entity:{url:u}}=this;this.errorMessage=null;let h=this.discussionValue;if(l.length){let f=u.split("/").pop(),_=l.map(w=>w.objectId);h=Z(h,f,_)}let p=this.geometryValue&&Object.keys(this.geometryValue).length?Pe(Object.assign(Object.assign({},n),{geometry:this.geometryValue})):[];c.forEach(f=>{let{properties:{index:_},geometry:w}=f;w&&(p[+_].geometry=w)});let m=null,b=[...p,...a];return b.length&&(m=b.length>1?se(b):b[0].geometry.coordinates.length?b[0].geometry:null),_e(Object.assign({postId:n.id,data:{title:s.trim()||null,body:t.trim(),discussion:h,geometry:m},mentionUrl:window.location.href},e.hubRequestOptions)).then(f=>z(Object.assign({postId:f.id,data:{relations:[C.REACTIONS,C.REPLIES,C.CHANNEL,C.CHANNEL_ACL]}},this._context.hubRequestOptions))).then(f=>(this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.update.label.post),{response:g.constants.response.SUCCESS,postId:n.id,channelId:i,channelAccess:x(o)})),f.replyCount=f.replies.total,delete f.replies,d.emit(f),f)).catch(f=>(this.errorMessage="error.edit",this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.update.label.post),{response:g.constants.response.FAILURE,postId:n.id,channelId:i,channelAccess:x(o)})),X.error("Failed to edit post:",f.message),null))}handleFocusin(){this.expand()}expand(){this.collapsible&&(this.collapsed=!1)}collapse(){this.collapsible&&(this.collapsed=!0)}handleFocusout(){this.collapse()}updateBodyValue(e){this.bodyValue=e.target.value}handleFeatureRemove(e){let{detail:{properties:{relatedFeatureId:t,index:s,unsaved:i}}}=e;this.removeFeature(s,t,i)}removeFeature(e,t,s){var i;if(!s)if(t){let{features:o}=ot(this.discussionValue),n=this.entity.url.split("/").pop();o.splice(o.indexOf(t),1),this.discussionValue=Z(this.discussionValue.split("?")[0],n,o)}else((i=this.geometryValue)===null||i===void 0?void 0:i.type)==="GeometryCollection"?(s?this.geometryValue.geometries.splice(e,1):this.geometryValue.geometries[e]=null,this.geometryValue=Object.assign({},this.geometryValue)):this.geometryValue=null}handleDrawDone(){this.arcgisHubDiscussionsGeometryDrawReset.emit(),this.addLocationsActiveGeometryType=null}handleDrawCancel(){this.addLocationsActiveGeometryType=null}resetActiveGeometryDrawType(){this.addLocationsActiveGeometryType=void 0}enableAddLocation(){let{post:e,arcgisHubDiscussionsGeometryDrawCreate:t,isReply:s}=this,i=s?"reply":"post";t.emit({post:e,postType:i})}get isTitleValid(){let{titleValue:e}=this;return e.length<=le}get isBodyValid(){let{bodyValue:e}=this,t=e.trim();return t.length>0&&t.length<=rt}get hasLocationChanges(){if(this.post){let{post:{discussion:e},discussionValue:t}=this;return!!(this._unsavedFeatures.length+this._unsavedRelatedFeatures.length+this._unsavedExistingFeatures.length)||t!==e||this.geometryValueHasChanges}return!1}get hasAllowedChannelsList(){var e,t;return!!(!((t=(e=this.discussionSettings)===null||e===void 0?void 0:e.allowedChannelIds)===null||t===void 0)&&t.length)}get titleMessage(){let{titleValue:e,isTitleValid:t,intl:s}=this,{length:i}=e;if(i>=le-5)return t?{status:"idle",text:s.t("post.title.validation.warning")}:{icon:"exclamation-mark-circle",status:"invalid",text:s.t("post.title.validation.error",{characters:i-le})}}get bodyMessage(){let{bodyValue:e,isBodyValid:t,intl:s}=this,{length:i}=e;if(i>=Re)return t?{status:"idle",text:s.t("post.body.validation.warning")}:{icon:"exclamation-mark-circle",status:"invalid",text:s.t("post.body.validation.error")}}get isReply(){return!!(this.parent||this.parentId)}get blockedNotice(){let e,t=nt(this.channel,this._context.currentUser),s=!fe(this.entity);return t&&s?e=this.isReply?H.EditReply:H.EditPost:t?e=this.isReply?H.EditReplyGroup:H.EditPostGroup:s&&(this.entityType==="group"?e=this.isReply?H.EditReplyGroup:H.EditPostGroup:e=this.isReply?H.EditReplyItem:H.EditPostItem),e}renderPrimaryActionButton(){let{post:e,isReply:t,intl:s,titleValue:i,bodyValue:o,isBodyValid:n,isTitleValid:a,pending:c,hasLocationChanges:l,blockedNotice:d,createParentSaveButtonText:u}=this,h,p;t?(p=!n,h=s.t("createReply")):(p=!n||!a,h=u||s.t("post.create"));let m=!!d||p;return e&&(t?(h=s.t("saveReply"),m=m||o===e.body&&!l):(h=s.t("post.save"),m=m||(!i&&!e.title||i===e.title)&&o===e.body&&!l)),r("calcite-button",{appearance:"solid",class:"hub-discussions-post-editor-post-actions__primary",disabled:m||c,key:"primary",kind:"brand",label:h,loading:c,round:!0,scale:"l",type:"submit"},h)}renderSecondaryActionButton(){let e=this.intl.t("cancel");if(!this.isReply||this.isReply&&this.post)return r("calcite-button",{appearance:"transparent",class:"hub-discussions-post-editor-post-actions__secondary",kind:"neutral",label:e,onClick:this.handleCancelOrConfirm,round:!0,scale:"l",type:"reset"},e)}renderAddLocationsButton(){if(this.showLocations&&this.hasMap){let t=[...this.disableSelectExistingLocation?[]:[{type:"select",icon:"select"}],{type:"point",icon:"pin"},{type:"polyline",icon:"freehand"},{type:"polygon",icon:"freehand-area"}].map(({type:s,icon:i})=>r("calcite-action",{active:this.addLocationsActiveGeometryType===s,"data-type":s,icon:i,key:s,onClick:this.setActiveGeometryDrawType,text:this.intl.t(`location.action.${s}`),textEnabled:!0}));return r(E,null,r("calcite-action",{active:this.addLocationsPopoverOpen,appearance:"solid",class:"add-location-post",disabled:!this.hasMap||!!this.blockedNotice,ref:s=>{this.locationActionElement=s},text:this.intl.t("location.heading")},r("calcite-icon",{class:"add-location-icon",icon:"pin-plus",scale:"s"})),r("calcite-tooltip",{closeOnClick:!0,label:this.intl.t("location.tooltip"),referenceElement:this.locationActionElement},r("span",null,this.intl.t("location.tooltip"))),this.hasMap&&!this.blockedNotice&&r("calcite-popover",{autoClose:!0,label:this.intl.t("location.heading"),onCalcitePopoverClose:this.handleLocationPopoverClose,onCalcitePopoverOpen:this.handleLocationPopoverOpen,overlayPositioning:"fixed",pointerDisabled:!0,ref:s=>{this.locationPopoverRef=s},referenceElement:this.locationActionElement},t))}}renderTitleField(){let{collapsible:e,collapsed:t,intl:s,titleValue:i,updateTitleValue:o,titleMessage:n,blockedNotice:a}=this;if(!e||e&&!t)return r(E,null,r("input",{"aria-label":s.t("post.title.label"),class:"hub-discussions-post-editor__title",disabled:!!a,onInput:o,placeholder:s.t("post.title.placeholder"),ref:c=>{this.titleRef=c},type:"text",value:i}),n&&r("calcite-input-message",{class:"hub-discussions-post-editor__message",icon:n.icon,scale:"l",status:n.status},n.text))}renderBodyField(){let{createParentBodyPlaceholderText:e,intl:t,bodyValue:s,bodyMessage:i,pending:o,getMentionQuery:n,blockedNotice:a,asAnonymous:c}=this;return r(E,null,r("arcgis-hub-rich-text",{class:"hub-discussions-post-editor__body",disabled:!!a||o,getMentionQuery:n,label:t.t("post.body.label"),mention:!c,mentionCount:100,placeholder:e||t.t("post.body.placeholder"),ref:l=>{this.bodyRef=l},"text-transform":!0,toolbar:"",value:s}),i&&r("calcite-input-message",{class:"hub-discussions-post-editor__message",icon:i.icon,scale:"l",status:i.status},i.text))}renderPostHeader(e,t,s,i,o,n,a,c){let{postId:l,post:d,postCreator:u,postCreatorOrg:h,channel:p,index:m,isHub:b,asAnonymous:f}=this;return r("arcgis-hub-discussions-post-header",{channel:p,class:"hub-discussions-post-editor__header",displayAnon:f,iconScale:e,index:m,isHub:b,post:l&&p&&d,postCreator:l&&p&&u,postCreatorOrg:l&&p&&h,showChannelAccessIcon:i,showChannelAvatar:s,showChannelName:o,showCreatorAvatar:t,showCreatorUsername:a,showPopover:c,showTimestamp:n})}renderAnonToggle(){let{channel:e,postId:t,asAnonymous:s,hasMentionedUsers:i,intl:o}=this;return e.allowAsAnonymous&&!t&&r("div",{class:"anon-toggle"},r("calcite-switch",{disabled:i,label:o.t("anonymous.label"),onCalciteSwitchChange:this.handleAnonToggle,ref:n=>{this.anonToggleRef=n}}),r("p",null,o.t("anonymous.label")),s&&r("p",null,o.t("anonymous.desc")),i&&r("calcite-tooltip",{referenceElement:this.anonToggleRef},r("span",null,o.t("anonymous.tooltip"))))}renderContentStep(){return r(E,null,this.showHeader&&r("header",{class:"hub-discussions-post-editor-header"},r("span",null,this.numPostableChannels>1&&r("calcite-button",{appearance:"outline-fill",disabled:!!this.confirmAction,iconFlipRtl:"start",iconStart:"chevron-left",kind:"neutral",label:this.intl.t("header.content.back"),onClick:this.handleBackOrConfirm,round:!0,scale:"l"})),r("p",{class:"hub-discussions-post-editor-header__title"},this.intl.t("header.content.title")),r("calcite-button",{appearance:"transparent",disabled:!!this.confirmAction,"icon-start":"x",kind:"neutral",label:this.intl.t(`header.${this.step}.back`),onClick:this.handleCancelOrConfirm,round:!0,scale:"l",type:"button"})),this.confirmAction?this.renderConfirmCancel():r("form",{onSubmit:this.handleSubmit},!!(this.showHeader&&this.post)&&r("header",null,this.intl.t("editPost")),this.renderAnonToggle(),this.isCollapsed?this.renderPostHeader("m",!0):this.renderPostHeader("l",!0,!0,!0,!0,!0,!1,!0),this.renderTitleField(),this.renderBodyField(),this.renderGeographies(),r("div",{class:"hub-discussions-post-editor-post-actions"},this.renderAddLocationsButton(),!this.isCollapsed&&this.renderSecondaryActionButton(),this.renderPrimaryActionButton()),this.blockedNotice&&r("arcgis-hub-discussions-blocked-notice",{class:"hub-discussions-post-editor__not-discussable-notice",scale:"s",variant:this.blockedNotice}),this.errorMessage&&r("calcite-notice",{class:"hub-discussions-post-editor__crud-error",kind:"danger",open:!0,scale:"s"},r("div",{slot:"title"},this.intl.t("error.title")),r("div",{slot:"message"},this.errorMessage&&this.intl.t(this.errorMessage)))))}renderConfirmCancel(){return r("div",{class:"hub-discussions-post-editor-cancel-confirm"},r("header",{class:"hub-discussions-post-editor-cancel-confirm__header"},this.intl.t("confirm.header")),r("p",{class:"hub-discussions-post-editor-cancel-confirm__message"},this.intl.t(this.isReply?"confirm":"confirm.body")),r("footer",{class:"hub-discussions-post-editor-cancel-confirm__footer"},r("calcite-button",{appearance:"transparent",class:"hub-discussions-post-editor-cancel-confirm__button",kind:"neutral",onClick:this.handleConfirmBackButtonClicked,round:!0,scale:"l"},this.intl.t("confirm.back")),r("calcite-button",{class:"hub-discussions-post-editor-cancel-confirm__button",kind:"danger",onClick:this.confirmAction,round:!0,scale:"l"},this.intl.t("confirm.discard"))))}renderAudienceStep(){return r(E,null,this.showHeader&&r("header",{class:"hub-discussions-post-editor-header"},r("calcite-button",{appearance:"outline","icon-start":"lightbulb",kind:"neutral",label:this.intl.t("header.help"),ref:e=>{this.helpButtonRef=e},round:!0,scale:"l",type:"button"}),r("calcite-popover",{closable:!0,label:this.intl.t("header.help"),onCalcitePopoverClose:this.handleHelpPopoverClose,onCalcitePopoverOpen:this.handleHelpPopoverOpen,overlayPositioning:"fixed",placement:"bottom-end",referenceElement:this.helpButtonRef},r("p",{class:"hub-discussions-post-editor-header__popover"},this.intl.t(`header.${this.step}.help`))),r("p",{class:"hub-discussions-post-editor-header__title"},this.intl.t(`header.${this.step}.title`)),r("calcite-button",{appearance:"transparent","icon-start":"x",kind:"neutral",label:this.intl.t(`header.${this.step}.back`),onClick:this.handleCancel,round:!0,scale:"l",type:"button"})),r("p",{class:"hub-discussions-post-editor-audience__description"},this.intl.t("selectChannelDescription")),r("header",{class:"hub-discussions-post-editor-audience__header"},this.intl.t(this.hasAllowedChannelsList?"allowedChannels":"recentChannels")),this.channelGalleryQuery&&r("arcgis-hub-gallery",{callback:this.channelCardCallback,class:"hub-discussions-post-editor-audience__gallery",include:"groups",layout:"compact",limit:this.channelGalleryLimit,linkTarget:"event",onArcgisHubGalleryAction:this.handleChannelGalleryAction,onArcgisHubGalleryError:this.handleChannelGalleryError,onArcgisHubGalleryResultsChange:this.handleChannelGalleryResultsChange,query:this.channelGalleryQuery,showEmptyState:!0,sortField:"lastActivity",sortOrder:"desc"}),this.numPostableChannels>4&&r(E,null,r("calcite-button",{appearance:"outline",class:"hub-discussions-post-editor-audience__button",kind:"neutral",label:this.intl.t("header.audience.title"),onClick:this.toggleChannelPickerOpen,ref:e=>{this.browseChannelsButtonRef=e},round:!0,width:"full"},this.intl.t("channels.select.button")),r("arcgis-wormhole",{elAttributes:{unthemed:""}},r("arcgis-hub-gallery-picker",{catalogs:this.channelPickerCatalog,enablePrimaryButton:!0,facets:this.channelPickerFacets,gallerySelection:{channel:[]},isMobile:!1,limit:1,linkTarget:"none",modalTitle:this.intl.t("channels.select.modal.title"),onArcgisHubGalleryPickerClose:this.toggleChannelPickerOpen,onArcgisHubGalleryPickerSelectionUpdate:this.handleChannelPickerSelectionUpdate,open:this.galleryPickerOpen,primaryButtonLabel:this.intl.t("channels.select.modal.button"),selectionMode:"single",showAllCollectionFacet:!1,showSearch:!0,showThumbnail:!0,sortField:"relevance",sortOptions:["relevance","created","modified"],triggerElement:this.browseChannelsButtonRef}))),this.channelEntityToView&&r("arcgis-wormhole",{elAttributes:{unthemed:""}},r("arcgis-hub-entity-editor",{editorType:"hub:channel:edit",entity:this.channelEntityToView,isDisabled:!0,isOpen:!0,layout:"modal",modalTitle:this.intl.t("viewChannel"),onArcgisHubEntityEditorModalClosed:this.handleEntityEditorClosed,variant:Ue.workspace})))}async loadChannelDetails(e){var t;let s=await pe(e,this._context.hubRequestOptions),i=await Ge(["placeholder"],s.channel,(t=this._context.currentUser)===null||t===void 0?void 0:t.username,this._context.requestOptions);Object.assign(this,Object.assign(Object.assign({},s),{step:M.CONTENT,_mentionQuery:i}))}async handleChannelTitleClick(e){this.channelEntityToView=await Ye(e.detail.model.id,this._context),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.open.label.modal.details.viewChannel),{channelId:this.channelEntityToView.id,channelAccess:this.channelEntityToView.access}))}get channelGalleryQuery(){if(this.discussionSettings!==void 0)return{targetEntity:"channel",filters:[{predicates:[this.hasAllowedChannelsList?Ae(this.discussionSettings.allowedChannelIds):dt()]}]}}get channelPickerCatalog(){return[{schemaVersion:1,title:this.intl.t("channels.catalog.title"),scopes:{channel:{targetEntity:"channel",filters:[{predicates:[]}]}},collections:[{label:this.intl.t("channels.catalog.title"),key:"channels",targetEntity:"channel",sortField:"modfied",sortDirection:"asc",scope:this.channelPickerQuery}]}]}get channelPickerFacets(){return[{label:this.intl.t("channels.facets.access.label"),key:"access",display:"multi-select",operation:"OR",options:[{label:this.intl.t("channels.facets.access.public"),key:"public",selected:!1,predicates:[{access:"public"}]},{label:this.intl.t("channels.facets.access.organization"),key:"organization",selected:!1,predicates:[{access:"org"}]},{label:this.intl.t("channels.facets.access.private"),key:"private",selected:!1,predicates:[{access:"private"}]}]},{label:this.intl.t("channels.facets.group"),key:"groups",display:"multi-select",operation:"OR",options:this._context.currentUser.groups.map(e=>({label:e.title,key:e.title,selected:!1,predicates:[{group:e.id}]}))}]}get channelPickerQuery(){return{targetEntity:"channel",filters:[{predicates:[this.hasAllowedChannelsList?Ae(this.discussionSettings.allowedChannelIds):lt()]}]}}get channelGalleryLimit(){return this.hasAllowedChannelsList?this.discussionSettings.allowedChannelIds.length>4?4:this.discussionSettings.allowedChannelIds.length:4}renderCreate(){if(this.step===M.AUDIENCE)return this.renderAudienceStep();if(this.step===M.CONTENT)return this.renderContentStep()}renderPostEditor(){return this.postId?this.renderContentStep():this.renderCreate()}render(){let{isReply:e,_context:t,loading:s,isRtl:i}=this;return r(q,{key:"1cade3df5edb6169dee731f1a2d725a369d3177c",class:{rtl:i},"data-element":"discussions-post-editor"},!!t&&!s&&(e?this.renderReplyEditor():this.renderPostEditor()))}get isCollapsed(){return this.collapsible&&this.collapsed}get inputMessage(){let{bodyValue:e,isBodyValid:t,intl:s}=this;if(e.trim().length>=Re)return t?{status:"idle",text:s.t("reply.body.validation.warning")}:{icon:"exclamation-mark-circle",status:"invalid",text:s.t("reply.body.validation.error")}}handleCreateReply(){let{_context:e,_unsavedFeatures:t,_unsavedRelatedFeatures:s,bodyValue:i,parent:o,channel:n,discussion:a,asAnonymous:c,entity:{url:l},arcgisHubDiscussionsPostCreate:d}=this,u=a;if(s.length){let p=l.split("/").pop(),m=new Set(s.map(b=>b.objectId));u=Z(u,p,Array.from(m))}let h=null;return t.length&&(h=t.length>1?se(t):t[0].geometry),this.errorMessage=null,qe(Object.assign({postId:o.id,data:{discussion:u,body:i.trim(),geometry:h,asAnonymous:c},mentionUrl:window.location.href},e.hubRequestOptions)).then(p=>(this.bodyValue="",this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.reply),{response:g.constants.response.SUCCESS,postId:p.id,parentId:o.id,channelId:n.id,channelAccess:x(n)})),z(Object.assign({postId:p.id,data:{relations:[C.REACTIONS,C.CHANNEL,C.CHANNEL_ACL]}},e.hubRequestOptions)))).then(p=>(p.replyCount=0,d.emit(p),p)).catch(p=>(this.errorMessage="createFailure",this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.reply),{response:g.constants.response.FAILURE,parentId:o.id,channelId:n.id,channelAccess:x(n)})),X.error("Failed to create reply:",p.message),null))}handleEditReply(){let{_context:e,bodyValue:t,post:s,parentId:i,channel:o,arcgisHubDiscussionsPostEdit:n,_unsavedFeatures:a,_unsavedRelatedFeatures:c,_unsavedExistingFeatures:l,entity:{url:d}}=this;this.errorMessage=null;let u=this.discussionValue;if(c.length){let b=d.split("/").pop(),f=c.map(_=>_.objectId);u=Z(u,b,f)}let h=this.geometryValue&&Object.keys(this.geometryValue).length?Pe(Object.assign(Object.assign({},s),{geometry:this.geometryValue})):[];l.forEach(b=>{let{properties:{index:f},geometry:_}=b;_&&(h[+f].geometry=_)});let p=null,m=[...h,...a];return m.length&&(m.length>1?p=se(m):p=m[0].geometry.coordinates.length?m[0].geometry:null),_e(Object.assign({postId:s.id,data:{body:t.trim(),discussion:u,geometry:p},mentionUrl:window.location.href},e.hubRequestOptions)).then(b=>z(Object.assign({postId:b.id,data:{relations:[C.REACTIONS,C.CHANNEL,C.CHANNEL_ACL]}},e.hubRequestOptions))).then(b=>(b.replyCount=0,this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.update.label.reply),{response:g.constants.response.SUCCESS,postId:s.id,parentId:i,channelId:o.id,channelAccess:x(o)})),n.emit(b),b)).catch(b=>(this.errorMessage="editFailure",this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.update.label.reply),{response:g.constants.response.FAILURE,postId:s.id,parentId:i,channelId:o.id,channelAccess:x(o)})),X.error("Failed to edit reply:",b.message),null))}renderInput(){let{bodyValue:e,inputMessage:t,pending:s,intl:i,parentCreator:o,getMentionQuery:n,blockedNotice:a,asAnonymous:c}=this,l=o?.firstName?i.t("replyToUserPost",{firstName:o.firstName}):i.t("replyToPost");return r(E,null,r("arcgis-hub-rich-text",{class:"hub-discussions-reply-editor__body",disabled:!!a||s,getMentionQuery:n,label:i.t("inputLabel"),mention:!c,mentionCount:100,placeholder:l,ref:d=>{this.bodyRef=d},"text-transform":!0,toolbar:"",value:e}),t&&r("calcite-input-message",{class:"hub-discussions-reply-editor__message",icon:t.icon,scale:"l",status:t.status},t.text))}renderGeographies(){let{channelId:e,channel:t,hasMap:s,postWithLocationEdits:i,_unsavedFeatures:o,_unsavedRelatedFeatures:n,_unsavedExistingFeatures:a,displayFieldValid:c,displayFieldKey:l,blockedNotice:d,isMobile:u,parentId:h,entity:p,showLocations:m}=this;if(m)return r("arcgis-hub-discussions-post-geography",{channel:t,channelId:e,disabled:!s,disabledActions:!!d,displayFieldKey:l,displayFieldValid:c,hasMap:s,isMobile:u,parentId:h,post:i,postId:i?.id,renderedInEditor:!0,showLocationDescriptionText:!u,unsavedExistingFeatures:a,unsavedFeatures:o,unsavedRelatedFeatures:n,url:p?.url})}renderEditor(){let{intl:e,errorMessage:t,blockedNotice:s}=this;return r(E,null,this.renderInput(),this.renderGeographies(),r("div",{class:"hub-discussions-post-editor-post-actions"},this.renderAddLocationsButton(),this.renderSecondaryActionButton(),this.renderPrimaryActionButton()),s&&r("arcgis-hub-discussions-blocked-notice",{class:"hub-discussions-reply-editor__not-discussable-notice",scale:"s",variant:s}),t&&r("calcite-notice",{class:"hub-discussions-reply-editor__notice",kind:"danger",open:!0,scale:"s"},r("div",{slot:"title"},e.t("error")),r("div",{slot:"message"},e.t(t))))}renderReplyEditor(){return r("form",{class:"hub-discussions-reply-editor__form",onSubmit:this.handleReplySubmit},this.renderAnonToggle(),this.renderPostHeader("m",!0),this.confirmAction?this.renderConfirmCancel():this.renderEditor())}static get assetsDirs(){return["locales"]}get element(){return F(this)}static get watchers(){return{_context:["initialize"],geometryValue:["handleGeometryValueUpdated"],unsavedFeatures:["mapFeaturePropToState"],unsavedExistingFeatures:["mapExistingFeaturePropToState"],unsavedRelatedFeatures:["mapRelatedFeaturePropToState"],addLocationsActiveGeometryType:["handleAddLocationsActiveGeometryTypeChanged"]}}};ae([K("bodyValue")],te.prototype,"hasMentionedUsers",null);ae([K("discussionSettings","hasAllowedChannelsList")],te.prototype,"channelGalleryQuery",null);ae([K("channelPickerQuery")],te.prototype,"channelPickerCatalog",null);ae([K()],te.prototype,"channelPickerFacets",null);ae([K("discussionSettings")],te.prototype,"channelPickerQuery",null);te.style=Bt;var Gt='.sc-arcgis-hub-discussions-post-list-h{display:block}arcgis-load-more-button.sc-arcgis-hub-discussions-post-list{margin-top:0.75rem;margin-right:1rem;margin-bottom:1.5rem;margin-left:1rem}calcite-input[type="search"].sc-arcgis-hub-discussions-post-list{margin-bottom:1rem}calcite-dropdown.sc-arcgis-hub-discussions-post-list{position:relative}.post-results-info-and-controls.sc-arcgis-hub-discussions-post-list{display:flex;align-items:center;gap:0.25rem}.post-count.sc-arcgis-hub-discussions-post-list{flex-grow:1}arcgis-hub-discussions-thread.sc-arcgis-hub-discussions-post-list:first-of-type{padding-top:1rem}arcgis-hub-discussions-thread.sc-arcgis-hub-discussions-post-list:last-of-type{padding-bottom:1rem}arcgis-hub-discussions-post.loading.sc-arcgis-hub-discussions-post-list,arcgis-hub-discussions-post.loading.sc-arcgis-hub-discussions-post-list:not([parent-id]){margin:0px;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem}.location-list.sc-arcgis-hub-discussions-post-list-h arcgis-hub-discussions-post.loading.sc-arcgis-hub-discussions-post-list{padding-left:1rem;padding-right:1rem}.replies-only.sc-arcgis-hub-discussions-post-list arcgis-hub-discussions-post.loading.sc-arcgis-hub-discussions-post-list{padding-left:0px;padding-right:0px}.sc-arcgis-hub-discussions-post-list-h:not(.has-error).sc-arcgis-hub-discussions-post-list-s>[slot="error"]{display:none}[total="0"].sc-arcgis-hub-discussions-post-list-h calcite-list.sc-arcgis-hub-discussions-post-list{display:none}.sc-arcgis-hub-discussions-post-list-h:not([total="0"]).sc-arcgis-hub-discussions-post-list-s>[slot="empty"]{display:none}',zt=Gt,Kt=function(e,t,s,i){var o=arguments.length,n=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,s,i);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(n=(o<3?a(n):o>3?a(t,s,n):a(t,s))||n);return o>3&&n&&Object.defineProperty(t,s,n),n},ee;(function(e){e.List="list",e.Loading="isLoading"})(ee||(ee={}));var Ot=class{constructor(e){N(this,e),this.arcgisHubDiscussionsPostListUpdated=v(this,"arcgisHubDiscussionsPostListUpdated",7),this.arcgisHubDiscussionsPostListReady=v(this,"arcgisHubDiscussionsPostListReady",7),this.arcgisHubDiscussionsPostListLayoutChanged=v(this,"arcgisHubDiscussionsPostListLayoutChanged",7),this.hubTelemetry=v(this,"hubTelemetry",7),this.impressionLogged=!1,this.discussion=void 0,this.entityId=void 0,this.entityType=void 0,this.entity=void 0,this.discussionSettings=void 0,this.displayFieldValid=void 0,this.displayFieldValue=void 0,this.displayFieldKey=void 0,this.hasMap=void 0,this.isHub=void 0,this.unsavedFeatures=void 0,this.unsavedRelatedFeatures=void 0,this.unsavedExistingFeatures=[],this.nextStart=-1,this.start=1,this.total=0,this.items=void 0,this.sortBy=re.UPDATED_AT,this.sortOrder=Y.DESC,this.titleText=void 0,this.bodyText=void 0,this.geometry=void 0,this.featureGeometry=void 0,this.parentIds=void 0,this.creator=void 0,this.editor=void 0,this.status=[k.APPROVED,k.HIDDEN,k.PENDING,k.REJECTED,k.BLOCKED],this.groupIds=void 0,this.channelIds=void 0,this.createdBefore=void 0,this.createdAfter=void 0,this.updatedBefore=void 0,this.updatedAfter=void 0,this.access=void 0,this.num=10,this.isMobile=void 0,this.locationId=void 0,this.layout="list",this.showLayoutActions=void 0,this.showSearchActions=void 0,this.showCounts=void 0,this.showSortActions=void 0,this.renderPost=void 0,this.showLocations=void 0,this.disableSelectExistingLocation=void 0,this.locationDescriptionText=void 0,this.showChannelAvatar=void 0,this.showChannelName=void 0,this._context=Q(),this.pending=!1,this.error=void 0,this.loadedPostIds=[],this.ready=!1,this.mostRecentPagePostIds=[],this._loading=!0,this.intl=void 0,$(this,"renderListAndActions","renderLoading","handleSortBySelect","handleSortOrderSelected","handleSearchInputChanged","_renderPost")}async componentWillLoad(){this.initialize()}connectedCallback(){oe(this)}disconnectedCallback(){this.disconnectContext()}async initialize(){this.loadTranslations(),this._context&&(await this.loadDependencies(),this.items?(this.mostRecentPagePostIds=this.items.map(({id:e})=>e),this.emitPostListOpenEvent(!0),this.loadedPostIds=[]):this.searchPosts(1))}async loadTranslations(){this.intl=await j.loadIntlForComponent(this.element)}loadDependencies(){if(this._context)return this._loading=!0,this.fetchDependencies().then(e=>{Object.assign(this,e),this._loading=!1})}fetchDependencies(){return this._fetchDependencies()}async _fetchDependencies(){let{isHub:e,_context:t,discussion:s,entityId:i,entityType:o,entity:n,discussionSettings:a,locationId:c,displayFieldKey:l,displayFieldValid:d,displayFieldValue:u}=this,h=await ue({isHub:e},t.hubRequestOptions),p=await he({discussion:s,entityId:i,entityType:o,entity:n,discussionSettings:a,locationId:c,displayFieldKey:l,displayFieldValid:d,displayFieldValue:u},t.hubRequestOptions,!0);return Object.assign(Object.assign({},h),p)}handleContextChanged(e,t){var s,i;if(((s=e?.currentUser)===null||s===void 0?void 0:s.username)!==((i=t?.currentUser)===null||i===void 0?void 0:i.username))return this.loadDependencies().then(()=>{this.items?this.emitPostListOpenEvent(!0):this.searchPosts(1)})}handleReadyChanged(e){e&&this.arcgisHubDiscussionsPostListReady.emit()}handleLoadedPostIdsChanged(e){this.ready||(this.ready=!!e&&!!this.items&&this.items.every(({id:t})=>e.includes(t)))}emitPostListOpenEvent(e){this.impressionLogged||(this.impressionLogged=!0,this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.open.label.postList),{response:e?g.constants.response.SUCCESS:g.constants.response.FAILURE})))}handlePostReady(e){this.loadedPostIds=[...this.loadedPostIds,e.target.postId]}handleLayoutSelected(e){e.stopPropagation(),this.arcgisHubDiscussionsPostListLayoutChanged.emit(e.detail);let t={grid:"gridView",list:"listView",map:"mapView"}[e.detail];this.hubTelemetry.emit(g.dictionary.category.interaction.action.select.label.discussionBoardView.details[t])}get sortByMenuConfigs(){return[{label:"sortRecent",value:re.UPDATED_AT},{label:"sortCreator",value:re.CREATOR}]}get activeSortConfig(){return this.sortByMenuConfigs.find(({value:e})=>e===this.sortBy)}get isRtl(){var e;return((e=this.intl)===null||e===void 0?void 0:e.direction)==="rtl"||!1}get views(){let{renderListAndActions:e,renderLoading:t}=this;return{[ee.List]:{render:e},[ee.Loading]:{render:t}}}get isLoading(){let{intl:e,_context:t,_loading:s}=this;return!e||!t||s}get view(){let{views:e,isLoading:t}=this,s=t?ee.Loading:ee.List;return e[s]}handlePostDeleted(e){this.items.findIndex(({id:s})=>e.detail.id===s)>-1&&(this.items=this.items.filter(({id:s})=>e.detail.id!==s),this.total-=1,this.nextStart>-1&&(this.nextStart-=1),this.arcgisHubDiscussionsPostListUpdated.emit())}handlePostCreated(e){let t=e.detail.discussion.includes(this.discussion),s=!0;this.parentIds&&(s=this.parentIds.length?this.parentIds.includes(e.detail.parentId):!e.detail.parentId),t&&s&&(this.sortOrder===Y.DESC?this.items.find(({id:i})=>e.detail.id===i)||(this.items=[e.detail,...this.items],this.total+=1,this.nextStart>-1&&(this.nextStart+=1),this.arcgisHubDiscussionsPostListUpdated.emit()):(this.total+=1,this.arcgisHubDiscussionsPostListUpdated.emit()))}handlePostEdited(e){this.items.findIndex(({id:s})=>e.detail.id===s)>-1&&(this.items=this.items.map(s=>s.id===e.detail.id?e.detail:s),this.arcgisHubDiscussionsPostListUpdated.emit())}handleLoadMoreChange(e){e.stopPropagation(),this.searchPosts(this.nextStart)}async getPostRefByPostId(e){return Array.prototype.find.call(this.layoutListRef.childNodes,t=>t.postId===e)||null}handleSortByChanged(){this.searchPosts(1)}handleSortBySelect(e){let{selectedItems:[{dataset:{value:t}}]}=e.target;this.sortBy=t}get searchParams(){let{sortBy:e,sortOrder:t,access:s,status:i,channelIds:o,groupIds:n,titleText:a,bodyText:c,discussion:l,geometry:d,creator:u,editor:h,featureGeometry:p,parentIds:m,createdBefore:b,createdAfter:f,updatedBefore:_,updatedAfter:w,num:A}=this,R=O=>O===void 0?O:new Date(O),I={title:a&&`%${a}%`,body:c&&`%${c}%`,term:c&&`%${c}%`,discussion:l&&!l.endsWith("%")?`${l}%`:l,geometry:d,featureGeometry:p,parents:m,status:i,creator:u,editor:h,sortBy:e,sortOrder:t,access:s,channels:o,groups:n,createdBefore:R(b),createdAfter:R(f),updatedBefore:R(_),updatedAfter:R(w),num:A};return Object.entries(I).reduce((O,[S,T])=>T?Object.assign(Object.assign({},O),{[S]:T}):O,{})}searchPosts(e){let{_context:t,searchParams:s,arcgisHubDiscussionsPostListUpdated:i,items:o,loadedPostIds:n}=this;return Object.assign(this,{pending:!0,error:null}),e===1&&Object.assign(this,{items:[],total:0,nextStart:-1}),ze(Object.assign({data:Object.assign({start:e,relations:[C.REPLIES,C.REACTIONS,C.CHANNEL,C.CHANNEL_ACL]},s)},t.hubRequestOptions)).then(({items:a,nextStart:c,total:l})=>{let d,u;e===1?(d=a,u=[]):(u=n,d=[...o,...a]),Object.assign(this,{items:d,nextStart:c,total:l,loadedPostIds:u,mostRecentPagePostIds:a.map(({id:h})=>h)}),this.emitPostListOpenEvent(!0),i.emit()}).catch(a=>{this.error=a,this.emitPostListOpenEvent(!1)}).finally(()=>{this.pending=!1})}renderCount(){if(this.showCounts){let{items:e,total:t,intl:s}=this,i=e.length?1:0,o=e.length?e.length:0;return r("div",{class:"post-count"},s.t("searchCount",{start:i,end:o,total:t}))}}renderSortByDropdown(){if(this.showSortActions){let{intl:e,sortBy:t,sortByMenuConfigs:s,activeSortConfig:i,pending:o,handleSortBySelect:n,total:a}=this;return r("calcite-dropdown",{disabled:o||!a,onCalciteDropdownSelect:n},r("calcite-button",{appearance:"transparent",iconEnd:"caret-down",slot:"trigger"},e.t(i.label)),r("calcite-dropdown-group",null,s.map(({label:c,value:l})=>r("calcite-dropdown-item",{"data-value":l,key:l,selected:l===t},e.t(c)))))}}handleSortOrderSelected(){this.sortOrder=this.sortOrder===Y.DESC?Y.ASC:Y.DESC}handleSearchInputChanged(e){this.bodyText=e.target.value}handleSortOrderChanged(){this.searchPosts(1)}handleBodyChanged(){this.searchPosts(1),this.hubTelemetry.emit(g.dictionary.category.interaction.action.search.label.searchPosts.details.mapView)}renderSortDirectionAction(){if(this.showSortActions){let{sortOrder:e,intl:t,handleSortOrderSelected:s,pending:i,total:o}=this,n,a;return e===Y.DESC?(n="sort-descending-arrow",a="orderDesc"):(a="orderAsc",n="sort-ascending-arrow"),r("calcite-action",{class:"sort-direction-action",disabled:i||!o,icon:n,iconFlipRtl:this.isRtl,onClick:s,scale:"s",text:t.t(a)})}}renderSearch(){if(this.showSearchActions){let{intl:e,pending:t,handleSearchInputChanged:s,isRtl:i,total:o,bodyText:n}=this;return r("calcite-input",{disabled:t||!n&&!o,icon:!0,iconFlipRtl:i,onCalciteInputChange:s,placeholder:e.t("searchIdeas"),type:"search",value:n})}}renderList(){let{items:e,layout:t,parentIds:s,pending:i,isMobile:o}=this;return r("arcgis-layout-list",{class:{"replies-only":!!s?.length},disabled:i,layout:t,ref:n=>{this.layoutListRef=n},showMapControl:!o},this.renderCountAndActions(),e.map(this._renderPost))}_renderPost(e,t,s){let{hasMap:i,isHub:o,unsavedFeatures:n,unsavedRelatedFeatures:a,unsavedExistingFeatures:c,displayFieldKey:l,displayFieldValid:d,displayFieldValue:u,showChannelAvatar:h,showChannelName:p,entity:m,entityId:b,entityType:f,discussionSettings:_,isMobile:w,locationDescriptionText:A,locationId:R,mostRecentPagePostIds:I,loadedPostIds:O,parentIds:S,showLocations:T,disableSelectExistingLocation:U}=this,P=I.includes(e.id)?I.some(B=>!O.includes(B)):!O.includes(e.id);return this.renderPost?this.renderPost(e,t,s,P):r("arcgis-hub-discussions-post",{channel:e.channel,channelId:e.channel.id,disableSelectExistingLocation:U,discussionSettings:_,displayFieldKey:l,displayFieldValid:d,displayFieldValue:u,entity:m,entityId:b,entityType:f,hasMap:i,index:t,isHub:o,isMobile:w,key:e.id,lastIndex:s.length-1,lead:!!S?.length,loading:P,locationDescriptionText:A,locationId:R,parentId:e.parentId,post:e,postId:e.id,preview:!e.parentId,role:"listitem",showChannelAvatar:h,showChannelName:p,showLocations:T,unsavedExistingFeatures:c,unsavedFeatures:n,unsavedRelatedFeatures:a})}renderCountAndActions(){let{showLayoutActions:e,showCounts:t,showSortActions:s}=this;if(e||t||s)return r("div",{class:"post-results-info-and-controls",slot:"actions"},this.renderCount(),this.renderSortByDropdown(),this.renderSortDirectionAction())}renderListAndActions(){let{nextStart:e,pending:t}=this;return r(E,null,r("slot",{name:"list-before"}),this.renderSearch(),this.renderList(),this.renderEmpty(),this.renderError(),r("arcgis-load-more-button",{appearance:"outline-fill",loading:t,nextStart:e}))}renderLoading(){return null}renderEmpty(){return r("slot",{name:"empty"})}renderError(){return r("slot",{name:"error"})}render(){let{view:e,error:t,items:s}=this;return r(q,{key:"17455335beb6873ff1ef60afc8aa74d996e3e3f6",class:{"has-error":!!t,rtl:!0},"data-count":s?.length||0,"data-element":"discussions-post-list"},e.render())}static get assetsDirs(){return["locales"]}get element(){return F(this)}static get watchers(){return{_context:["handleContextChanged"],ready:["handleReadyChanged"],loadedPostIds:["handleLoadedPostIdsChanged"],sortBy:["handleSortByChanged"],sortOrder:["handleSortOrderChanged"],bodyText:["handleBodyChanged"]}}};Kt([de({delay:300})],Ot.prototype,"fetchDependencies",null);Ot.style=zt;var xt=[y.THUMBS_UP,y.THINKING,y.GRINNING,y.PARTY_POPPER],vt=[...xt,y.SLIGHTLY_SMILING,y.CONFUSED,y.LAUGH,y.FACE_WITH_TEARS_OF_JOY,y.WINKING,y.PARTYING,y.SAD,y.SURPRISED,y.THUMBS_DOWN,y.CLAPPING_HANDS,y.RAISING_HANDS,y.WAVING_HAND,y.HEART,y.ONE_HUNDRED,y.FIRE,y.ROCKET,y.UP_ARROW,y.DOWN_ARROW,y.EYES,y.TROPHY,y.WORLD_MAP],V={[y.SLIGHTLY_SMILING]:{emoji:"\u{1F642}",telemetryKey:"smilingFace"},[y.CONFUSED]:{emoji:"\u{1F615}",telemetryKey:"confusedFace"},[y.LAUGH]:{emoji:"\u{1F600}",telemetryKey:"laughingFace"},[y.GRINNING]:{emoji:"\u{1F606}",telemetryKey:"grinningFace"},[y.FACE_WITH_TEARS_OF_JOY]:{emoji:"\u{1F602}",telemetryKey:"faceWithTearsOfJoy"},[y.THINKING]:{emoji:"\u{1F914}",telemetryKey:"thinkingFace"},[y.WINKING]:{emoji:"\u{1F609}",telemetryKey:"winkingFace"},[y.PARTYING]:{emoji:"\u{1F973}",telemetryKey:"partyingFace"},[y.SAD]:{emoji:"\u{1F625}",telemetryKey:"sadFace"},[y.SURPRISED]:{emoji:"\u{1F632}",telemetryKey:"shockedFace"},[y.THUMBS_UP]:{emoji:"\u{1F44D}",telemetryKey:"thumbsUp"},[y.THUMBS_DOWN]:{emoji:"\u{1F44E}",telemetryKey:"thumbsDown"},[y.CLAPPING_HANDS]:{emoji:"\u{1F44F}",telemetryKey:"clappingHands"},[y.RAISING_HANDS]:{emoji:"\u{1F64C}",telemetryKey:"raisingHands"},[y.WAVING_HAND]:{emoji:"\u{1F44B}",telemetryKey:"wavingHand"},[y.HEART]:{emoji:"\u2764\uFE0F",telemetryKey:"redHeart"},[y.ONE_HUNDRED]:{emoji:"\u{1F4AF}",telemetryKey:"hundredPoints"},[y.FIRE]:{emoji:"\u{1F525}",telemetryKey:"fire"},[y.PARTY_POPPER]:{emoji:"\u{1F389}",telemetryKey:"partyPopper"},[y.ROCKET]:{emoji:"\u{1F680}",telemetryKey:"rocket"},[y.UP_ARROW]:{emoji:"\u2B06",telemetryKey:"upArrow"},[y.DOWN_ARROW]:{emoji:"\u2B07",telemetryKey:"downArrow"},[y.EYES]:{emoji:"\u{1F440}",telemetryKey:"eyes"},[y.TROPHY]:{emoji:"\u{1F3C6}",telemetryKey:"trophy"},[y.WORLD_MAP]:{emoji:"\u{1F5FA}",telemetryKey:"worldMap"}},qt=`:host{display:inline-block}:host>div>calcite-button{margin-right:0.125rem;border-width:2px;border-style:solid;border-color:transparent;padding:0.125rem}:host>div>calcite-button:last-of-type{margin-right:0px}.submitted_reactions_list calcite-button{border-width:2px;border-style:solid;border-color:transparent;padding:0.125rem}.submitted_reactions_list calcite-button span{margin-left:0.25rem}calcite-button[aria-checked="true"],calcite-button[data-reaction="add"][aria-expanded="true"]{border-color:var(--calcite-color-brand)}:host(.rtl) calcite-button[data-reaction="add"]{transform:scaleX(-1)}calcite-button[aria-checked="true"] span{font-weight:var(--calcite-font-weight-bold)}:host>div{display:flex}.submitted_reactions_list{margin:0px;display:inline-flex;list-style-type:none;padding:0px}.submitted_reactions_list li{margin-right:0.125rem}.user_reactions_popover{width:20rem}.user_reactions_list{margin:0px;display:grid;max-height:407px;list-style-type:none;grid-auto-flow:row;row-gap:0.75rem;overflow:auto;padding:0.75rem}.user_reaction_item{display:grid;grid-template-rows:repeat(2, minmax(0, 1fr));column-gap:0.75rem;row-gap:0.125rem;background-color:var(--calcite-color-foreground-1);grid-template-columns:2.75rem auto}.user_reaction_item:has(div:nth-of-type(3)){grid-template-columns:2.75rem auto minmax(0, 16px)}.user_reaction_item calcite-avatar{grid-row:span 2 / span 2;height:2.75rem;width:2.75rem}.user_reaction_item div:nth-of-type(1){display:flex;flex-grow:1;align-items:center;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-bold);text-transform:capitalize;color:var(--calcite-color-text-1)}.user_reaction_item div:nth-of-type(2){display:flex;align-items:center;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2)}.user_reaction_item:has(div:nth-of-type(3)) div:nth-of-type(2){grid-row:span 2 / span 2;justify-content:flex-end}.user_reaction_item div:nth-of-type(2):before{content:'@'}.user_reaction_item:has(div:nth-of-type(3)) div:nth-of-type(2):before{content:''}.user_reaction_item div:nth-of-type(3){display:flex;align-items:center;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2)}.user_reaction_item div:nth-of-type(3):before{content:'@'}arcgis-skeleton-loader{display:grid;grid-template-rows:repeat(2, minmax(0, 1fr));column-gap:0.75rem;row-gap:0.125rem;grid-template-columns:2.75rem auto}arcgis-skeleton-loader:has(div:nth-of-type(4)){grid-template-columns:2.75rem auto minmax(0, 16px)}@keyframes shimmer{0%{background-size:200% 100%;background-position:100% 0}100%{background-size:200% 100%;background-position:-100% 0}}arcgis-skeleton-loader>div:nth-of-type(1){animation:shimmer 2s cubic-bezier(0.4, 0, 0.2, 0.8) infinite;background-image:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);background-color:var(--calcite-color-foreground-3);grid-row:span 2 / span 2;height:2.75rem;width:2.75rem;border-radius:50%}arcgis-skeleton-loader>div:nth-of-type(2){display:flex;align-items:center}@keyframes shimmer{0%{background-size:200% 100%;background-position:100% 0}100%{background-size:200% 100%;background-position:-100% 0}}arcgis-skeleton-loader>div:nth-of-type(2) div{animation:shimmer 2s cubic-bezier(0.4, 0, 0.2, 0.8) infinite;background-image:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);background-color:var(--calcite-color-foreground-3);display:flex;flex-grow:1;border-radius:0.375rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}arcgis-skeleton-loader>div:nth-of-type(3){display:flex;align-items:center}@keyframes shimmer{0%{background-size:200% 100%;background-position:100% 0}100%{background-size:200% 100%;background-position:-100% 0}}arcgis-skeleton-loader>div:nth-of-type(3) div{animation:shimmer 2s cubic-bezier(0.4, 0, 0.2, 0.8) infinite;background-image:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);background-color:var(--calcite-color-foreground-3);display:flex;flex-grow:1;border-radius:0.375rem;font-size:var(--calcite-font-size--1);line-height:1rem}arcgis-skeleton-loader:has(div:nth-of-type(4))>div:nth-of-type(3){grid-row:span 2 / span 2;display:flex;align-items:center}@keyframes shimmer{0%{background-size:200% 100%;background-position:100% 0}100%{background-size:200% 100%;background-position:-100% 0}}arcgis-skeleton-loader::has(div:nth-of-type(4))>div:nth-of-type(3) div{animation:shimmer 2s cubic-bezier(0.4, 0, 0.2, 0.8) infinite;background-image:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);background-color:var(--calcite-color-foreground-3);display:flex;height:1rem;flex-grow:1;border-radius:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}@keyframes shimmer{0%{background-size:200% 100%;background-position:100% 0}100%{background-size:200% 100%;background-position:-100% 0}}arcgis-skeleton-loader>div:nth-of-type(4) div{animation:shimmer 2s cubic-bezier(0.4, 0, 0.2, 0.8) infinite;background-image:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);background-color:var(--calcite-color-foreground-3);display:flex;flex-grow:1;border-radius:0.375rem;font-size:var(--calcite-font-size--1);line-height:1rem}.default_reactions{display:flex;flex-direction:row;padding:0.75rem}.default_reactions ul{margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0.5rem;display:inline-flex;list-style-type:none;padding:0px}.default_reactions li{margin-right:0.5rem}.default_reactions li:last-of-type{margin-right:0px}.all_reactions_list{margin:0px;display:grid;list-style-type:none;grid-template-columns:repeat(5, minmax(0, 1fr));gap:0.5rem;padding:0.75rem}`,Wt=qt,$t=function(e,t,s,i){var o=arguments.length,n=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,s,i);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(n=(o<3?a(n):o>3?a(t,s,n):a(t,s))||n);return o>3&&n&&Object.defineProperty(t,s,n),n},_t=(e,t)=>{let s=new Date(e.createdAt),i=new Date(t.createdAt);return s>i?-1:s<i?1:0},Ct=e=>(t,s)=>e[t.value].length>e[s.value].length?1:e[t.value].length<e[s.value].length?-1:0,It=class{async handlePostIdChanged(e,t){await this.fetchPostDetails(e,t)}handleContextChanged(e,t){var s,i;((s=e.currentUser)===null||s===void 0?void 0:s.username)!==((i=t.currentUser)===null||i===void 0?void 0:i.username)&&(this.users={})}handlePopoverOpen(e){e.target!==this.element&&(this.activePopover=null)}constructor(e){N(this,e),this.hubTelemetry=v(this,"hubTelemetry",7),this.arcgisHubDiscussionsPostReactionChange=v(this,"arcgisHubDiscussionsPostReactionChange",7),this.reactionListButtons={},this.postId=void 0,this.post=void 0,this.channel=void 0,this._context=Q(),this.showAllReactions=!1,this.activePopover=null,this.pending=!1,this.users={},$(this,"handleAddReactionClick","handleViewAllReactionsClick","handleAddReactionPopoverClose","handleReactionFocus","handleReactionMouseEnter","handleReactionPopoverClose","handleReactionClicked","handleReactionPopoverOpen","handleReactionRef","deleteUserReaction","handleReactionPopoverBeforeOpen")}async componentWillLoad(){let[e]=await Promise.all([j.loadIntlForComponent(this.element),this.handlePostIdChanged(this.postId)]);this.intl=e}connectedCallback(){oe(this)}disconnectedCallback(){this.disconnectContext()}get isDisabled(){let{_context:e,channel:t,pending:s}=this;return[!e.currentUser,!t.allowReaction,s].some(i=>!!i)}get overflowReactionRecords(){let{listReactions:e,reactionRecordGroups:t}=this,s=(i,[o,n])=>e.find(a=>a.value===o)?i:[...i,...n];return Object.entries(t).reduce(s,[]).sort(_t)}get currentUserReactions(){let{_context:e,reactionRecordGroups:t}=this;return Object.values(t).reduce((s,i)=>[...s,...i.filter(o=>{var n;return o.creator===((n=e.currentUser)===null||n===void 0?void 0:n.username)})],[]).sort(Ct(t))}get otherUserReactions(){let{reactionRecordGroups:e,currentUserReactions:t}=this;return Object.values(e).reduce((i,o)=>[...i,...o],[]).reduce((i,o)=>t.find(a=>a.value===o.value)||i.find(a=>a.value===o.value)?i:[...i,o],[]).sort(Ct(e))}get listReactions(){let{currentUserReactions:e,otherUserReactions:t,reactionRecordGroups:s}=this,i=[...t,...e],o=Object.keys(s).length>4?3:4,n,a;return i.length>o?(n=i.length-o,a=i.length):(n=0,a=i.length),i.slice(n,a)}get reactionRecordGroups(){let{post:{reactions:e}}=this,t=(s,i)=>vt.includes(i.value)?Object.assign(Object.assign({},s),{[i.value]:[...s[i.value]||[],i]}):s;return[...e].sort(_t).reduce(t,{})}async fetchPostDetails(e,t){let{_context:s}=this;if(e&&e!==t){let i=await z(Object.assign({postId:e,data:{relations:[C.CHANNEL,C.CHANNEL_ACL,C.REACTIONS,C.REPLIES]}},s.hubRequestOptions));i.replyCount=i.replies.total,delete i.replies,this.channel=i.channel,this.post=i}}handleAddReactionClick(e){let{dataset:{reaction:t}}=e.target,{post:s,channel:i}=this;this.activePopover=t,this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.open.label.popover.details.addReaction),{postId:s.id,parentId:s.parentId,channelId:i.id,channelAccess:x(i)}))}handleViewAllReactionsClick(){this.showAllReactions=!0}handleAddReactionPopoverClose(){this.showAllReactions=!1,this.activePopover=null}handleReactionFocus(e){let{dataset:{reaction:t}}=e.target;this.activePopover=t}handleReactionMouseEnter(e){let t=e.target,{nodeName:s,dataset:{reaction:i}}=t;s==="CALCITE-BUTTON"&&this.activePopover!=="add"&&(this.activePopover=i)}handleReactionPopoverClose(e){let{dataset:{reaction:t}}=e.target;this.activePopover===t&&(this.activePopover=null)}async handleReactionPopoverBeforeOpen(e){let{reaction:t}=e.target.dataset,s=await this.fetchUserRecords(t);this.users=Object.assign(Object.assign({},this.users),s)}async handleReactionClicked(e){let{currentUserReactions:t,arcgisHubDiscussionsPostReactionChange:s,activePopover:i}=this,{dataset:{reaction:o}}=e.currentTarget,n=t.find(({value:a})=>a===o);this.pending=!0;try{if(await Promise.all(t.map(this.deleteUserReaction)),n||await this.createReaction(o),i==="add"&&(this.activePopover=null),this.activePopover){let a=await this.fetchUserRecords(o);this.users=Object.assign(Object.assign({},this.users),a)}}catch{}finally{s.emit(),this.pending=!1}}handleReactionPopoverOpen(e){let{channel:t,post:s}=this,{dataset:{reaction:i}}=e.target,o=i==="overflow"?g.dictionary.category.interaction.action.open.label.popover.details.reactionOverflow:g.dictionary.category.interaction.action.open.label.popover.details[V[i].telemetryKey];this.hubTelemetry.emit(Object.assign(Object.assign({},o),{postId:s.id,parentId:s.parentId,channelId:t.id,channelAccess:x(t)}))}async handleReactionRef(e){var t;+((t=e?.dataset)===null||t===void 0?void 0:t.index)==0&&await e.setFocus()}async fetchUserRecords(e){let{reactionRecordGroups:t,overflowReactionRecords:s,users:i}=this,n=(e==="overflow"?s:t[e]).reduce((a,c)=>i[c.creator]?a:[...a,c.creator],[]);if(n.length){let a=n.reduce((l,d)=>[...l,this.fetchUserRecord(d)],[]);return(await Promise.all(a)).reduce((l,d,u)=>Object.assign(Object.assign({},l),{[n[u]]:d}),{})}}async fetchUserRecord(e){return Le(e,this._context.hubRequestOptions).catch(t=>null)}async createReaction(e){let{_context:t,post:s,channel:i}=this;try{let o=await Je(Object.assign({data:{postId:s.id,value:e}},t.hubRequestOptions));this.post=Object.assign(Object.assign({},this.post),{reactions:[...this.post.reactions,o]}),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.reaction.details[V[e].telemetryKey]),{postId:s.id,parentId:s.id,channelId:i.id,channelAccess:x(i),response:g.constants.response.SUCCESS}))}catch(o){throw this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.reaction.details[V[e].telemetryKey]),{postId:s.id,parentId:s.id,channelId:i.id,channelAccess:x(i),response:g.constants.response.FAILURE})),console.error("Failed to create reaction:",e,o.message),o}}async deleteUserReaction(e){let{_context:t,post:s,channel:i,currentUserReactions:o}=this;try{await Xe(Object.assign({reactionId:e.id},t.hubRequestOptions)),this.post=Object.assign(Object.assign({},s),{reactions:s.reactions.filter(({id:n})=>!o.find(a=>a.id===n))}),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.delete.label.reaction.details[V[e.value].telemetryKey]),{postId:s.id,parentId:s.id,channelId:i.id,channelAccess:x(i),response:g.constants.response.SUCCESS}))}catch(n){throw console.error("Failed to delete reaction:",e.value,e.id,n.message),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.delete.label.reaction.details[V[e.value].telemetryKey]),{postId:s.id,parentId:s.id,channelId:i.id,channelAccess:x(i),response:g.constants.response.FAILURE})),n}}renderList(){let{listReactions:e,reactionRecordGroups:t,intl:s,_context:i,activePopover:o,isDisabled:n,handleReactionPopoverClose:a,handleReactionPopoverOpen:c}=this;return r("ul",{class:"submitted_reactions_list"},e.reduce((l,d)=>{var u;let h=d.creator===((u=i.currentUser)===null||u===void 0?void 0:u.username),p=t[d.value].length>99?s.t("reaction_count_99_plus"):t[d.value].length;return[...l,r("li",{key:d.value},r("calcite-button",{appearance:"outline","aria-checked":h?"true":"false","data-reaction":d.value,disabled:n,kind:h?"brand":"neutral",label:s.t(h?"reaction_list_label_remove":"reaction_list_label_add",{reaction:s.t(d.value),count:p}),onClick:this.handleReactionClicked,onFocus:this.handleReactionFocus,onMouseEnter:this.handleReactionMouseEnter,ref:m=>{this.reactionListButtons=Object.assign(Object.assign({},this.reactionListButtons),{[d.value]:m})},role:"radio",round:!0,scale:"m"},V[d.value].emoji,r("span",null,p)),r("calcite-popover",{"auto-close":!0,class:"user_reactions_popover","data-reaction":d.value,"focus-trap-disabled":!0,heading:s.t(d.value),label:s.t(d.value),onCalcitePopoverBeforeOpen:this.handleReactionPopoverBeforeOpen,onCalcitePopoverClose:a,onCalcitePopoverOpen:c,open:o===d.value,overlayPositioning:"fixed",placement:"bottom",referenceElement:this.reactionListButtons[d.value],"trigger-disabled":!0},this.renderUserReactions(t[d.value],!1)))]},[]))}renderUserSkeleton(e){return r("arcgis-skeleton-loader",{active:!0,role:"listitem",rows:0,showFooter:!1,showHeading:!1,showThumbnail:!1},r("div",null),r("div",null,r("div",null,"\xA0")),e&&r("div",null,r("div",null,"\xA0")),r("div",null,r("div",null,"\xA0")))}renderUserReaction(e,t){var s;let{users:i,_context:o,intl:n}=this,a=i[e.creator],c=a?.fullName||n.t("privateUser");return r("li",{"aria-label":n.t("reaction_user_label",{userFullName:c,reaction:n.t(e.value)}),class:"user_reaction_item"},r("calcite-avatar",{"full-name":a?.fullName,scale:"l",thumbnail:a?.thumbnail&&ye(o.hubRequestOptions.portal,{username:a.username,access:a.access,thumbnail:a.thumbnail},(s=o.hubRequestOptions.authentication)===null||s===void 0?void 0:s.token),"user-id":a?.id,username:a?.username}),r("div",null,c),t&&r("div",null,V[e.value].emoji),r("div",null,a?.username||n.t("noUser")))}renderUserReactions(e,t){let{users:s}=this;return r("ul",{class:"user_reactions_list"},e.map(i=>s[i.creator]===void 0?this.renderUserSkeleton(t):this.renderUserReaction(i,t)))}renderOverflow(){let{intl:e,overflowReactionRecords:t,handleReactionPopoverClose:s,handleReactionPopoverOpen:i,activePopover:o,isDisabled:n,overflowButton:a}=this,c=t.length>99?e.t("reaction_count_99_plus"):e.formatNumber(t.length,{signDisplay:"always"});return!!t.length&&r(E,null,r("calcite-button",{appearance:"outline","data-reaction":"overflow",disabled:n,kind:"neutral",label:e.t(t.length>1?"n_more_reactions":"one_more_reaction",{count:c}),onFocus:this.handleReactionFocus,onMouseOver:this.handleReactionMouseEnter,ref:l=>{this.overflowButton=l},round:!0,scale:"m"},c),r("calcite-popover",{"auto-close":!0,class:"user_reactions_popover","data-reaction":"overflow","focus-trap-disabled":!0,heading:e.t("moreReactions"),label:e.t("moreReactions"),onCalcitePopoverBeforeOpen:this.handleReactionPopoverBeforeOpen,onCalcitePopoverClose:s,onCalcitePopoverOpen:i,open:o==="overflow",overlayPositioning:"fixed",placement:"bottom",referenceElement:a,"trigger-disabled":!0},this.renderUserReactions(t,!0)))}renderDefaultReactions(){let{currentUserReactions:e,intl:t,isDisabled:s}=this;return r("div",{class:"default_reactions"},r("ul",null,xt.map(i=>{let o=e.find(n=>n.value===i);return r("li",{key:i},r("calcite-button",{appearance:o?"outline":"transparent","aria-checked":o?"true":"false","data-reaction":i,disabled:s,kind:o?"brand":"neutral",label:t.t(o?"reaction_picker_label_remove":"reaction_picker_label_add",{reaction:t.t(i)}),onClick:this.handleReactionClicked,role:"radio",round:!0,scale:"m"},V[i].emoji))})),r("calcite-button",{appearance:"transparent",disabled:s,"icon-start":"plus",kind:"neutral",label:t.t("viewAllReactions"),onClick:this.handleViewAllReactionsClick,round:!0,scale:"m"}))}renderAllReactions(){let{intl:e,currentUserReactions:t,isDisabled:s,handleReactionClicked:i,handleReactionRef:o}=this;return r("ul",{class:"all_reactions_list"},vt.map((n,a)=>{let c=t.find(l=>l.value===n);return r("li",{key:n},r("calcite-button",{appearance:c?"outline":"transparent","aria-checked":c?"true":"false","data-index":a,"data-reaction":n,disabled:s,kind:c?"brand":"neutral",label:e.t(c?"reaction_picker_label_remove":"reaction_picker_label_add",{reaction:e.t(n)}),onClick:i,ref:o,round:!0,scale:"m"},V[n].emoji))}))}renderAddReaction(){let{intl:e,handleAddReactionClick:t,handleAddReactionPopoverClose:s,isDisabled:i,activePopover:o,showAllReactions:n,addReactionButton:a}=this;return r(E,null,r("calcite-button",{appearance:"outline","data-reaction":"add",disabled:i,"icon-start":"add-reaction",kind:o==="add"?"brand":"neutral",label:e.t("addReaction"),onClick:t,ref:c=>{this.addReactionButton=c},round:!0,scale:"m"}),r("calcite-popover",{"auto-close":!0,"data-reaction":"add",label:e.t("addReaction"),onCalcitePopoverClose:s,open:o==="add",overlayPositioning:"fixed",placement:"bottom",referenceElement:a,scale:"m"},n?this.renderAllReactions():this.renderDefaultReactions()))}render(){return r(q,{key:"58975710e158d313a786a10d39a851840bcd9280",class:{rtl:this.intl.direction==="rtl"},"data-element":"arcgis-hub-discussions-post-reactions"},r("div",{key:"2c3c49b99d1637f79df895adc27464d15a900169"},this.renderList(),this.renderOverflow(),this.renderAddReaction()))}static get assetsDirs(){return["locales"]}get element(){return F(this)}static get watchers(){return{postId:["handlePostIdChanged"],_context:["handleContextChanged"]}}};$t([de({delay:300})],It.prototype,"fetchUserRecord",null);It.style=Wt;async function Yt(e,t,s){let i={type:"object",properties:{cadence:{type:"string",enum:[...ke],default:"WEEKLY"}}};return await Promise.all(e.map(async o=>{let n=await Jt[o](t,s);i.properties=Object.assign(Object.assign({},i.properties),n)})),i}function Qt(e,t,s){let i={type:"Section",elements:[{scope:"/properties/cadence",type:"Control",labelKey:"cadence.label",options:{control:"hub-field-input-combobox",items:ke.map(a=>({value:a,labelKey:`cadence.${a.toLowerCase()}`})),selectionMode:"single",allowCustomValues:!1,disabled:!0}}]},o=e.map(a=>{var c;switch(a){case ie.DISCUSSION:{let l=(c=t?.properties)===null||c===void 0?void 0:c.channelActivitySelections,u=Object.keys(l?.properties||{}).map(h=>{var p,m;let b=((p=l?.properties)===null||p===void 0?void 0:p[h])||{},f=b.title?b.title:s.t("discussions.unnamedChannel"),_=s.t("discussions.channelLabel",{channelName:f}),w=((m=b.items)===null||m===void 0?void 0:m.enum)||[],A=w.map(I=>s.t(`discussions.${I}`)),R=w.length>1?"discussions.modRole":"discussions.participantRole";return{scope:`/properties/channelActivitySelections/properties/${h}`,type:"Control",label:_,options:{helperText:{labelKey:R},control:"hub-field-input-checkbox-group",labels:A,allowCustomValues:!1,layout:"vertical"}}});return{type:"Section",labelKey:"discussions.activity.label",options:{helperText:{labelKey:"discussions.activity.helperText"}},elements:u}}default:return null}}),n={type:"Layout",elements:[i]};return o.length&&n.elements.push({type:"Section",elements:o}),n}var Jt={[ie.DISCUSSION]:Xt};async function Xt(e,t){var s;let i="discussionSettings"in e?((s=e.discussionSettings)===null||s===void 0?void 0:s.allowedChannelIds)||[]:[];if(!i.length)return{};let[{results:o},{results:n}]=await Promise.all([De({allowedChannelIds:i,requestOptions:t.hubRequestOptions,num:100}),ht({allowedChannelIds:i,requestOptions:t.hubRequestOptions,num:100})]),a=new Set(n.map(l=>l.id));return{channelActivitySelections:{type:"object",properties:o.reduce((l,d)=>(l[d.id]={type:"array",title:d.name||"",items:{type:"string",enum:a.has(d.id)?["newPosts","pendingPosts"]:["newPosts"]},default:[]},l),{})}}}async function Zt(e,t){var s;let i="discussionSettings"in e?((s=e.discussionSettings)===null||s===void 0?void 0:s.allowedChannelIds)||[]:[];if(!i.length)return!1;let{total:o}=await De({allowedChannelIds:i,requestOptions:t.hubRequestOptions,num:1});return o>0}var es=".sc-arcgis-hub-subscription-h{display:block}.subscription__header.sc-arcgis-hub-subscription,.subscription__header-actions.sc-arcgis-hub-subscription{margin-bottom:1rem}.subscription__header-entity.sc-arcgis-hub-subscription{font-weight:var(--calcite-font-weight-bold)}",ts=es,ss=class{constructor(e){N(this,e),this.arcgisAppIdentityStartSignIn=v(this,"arcgisAppIdentityStartSignIn",7),this.hubTelemetry=v(this,"hubTelemetry",7),this.cadence=et.WEEKLY,this.translationFunc=(t,s,i)=>this.intl.t(t,s,i),this.handleSubscribeClick=async t=>{var s,i,o,n;t.preventDefault(),this._context.currentUser?(this._draftValues=G(this._values),this.isModalOpen=!0,await this.buildSchemas(),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.open.label.modal.details.subscribe),{id:(s=this.entity)===null||s===void 0?void 0:s.id,access:(i=this.entity)===null||i===void 0?void 0:i.access,type:(o=this.entity)===null||o===void 0?void 0:o.type,contentOrgId:(n=this.entity)===null||n===void 0?void 0:n.orgId}))):this.promptToSignIn&&this.arcgisAppIdentityStartSignIn.emit()},this.handleModalClose=()=>{this.isModalOpen=!1,this._draftValues=void 0},this.handleSubscriptionChange=t=>{t.stopPropagation(),this.cadence=t.detail.values.cadence;let s=t.detail.values.channelActivitySelections;s&&(this.catalog=pt(this.entityId,s,this.intl),this._draftValues=Object.assign(Object.assign({},this._draftValues),{channelActivitySelections:s,cadence:t.detail.values.cadence}))},this.handleSubscriptionSave=async t=>{var s,i,o,n,a,c,l,d,u,h,p,m,b,f,_,w,A,R,I;t.stopPropagation(),this.isModalOpen=!1;try{if(!((i=(s=this.subscriptions)===null||s===void 0?void 0:s[0])===null||i===void 0)&&i.id){let O={cadence:this.cadence,catalog:this.catalog,deliveryMethod:we.EMAIL,entityId:((o=this.entity)===null||o===void 0?void 0:o.id)||this.entityId,entityType:(((n=this.entity)===null||n===void 0?void 0:n.type)||this.entityType).toUpperCase(),notificationSpecName:Oe.DISCUSSION_ON_ENTITY};await st(Object.assign({subscriptionId:this.subscriptions[0].id,data:O},this._context.hubRequestOptions)),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.update.label.subscription),{details:"post",response:"success",id:(a=this.entity)===null||a===void 0?void 0:a.id,access:(c=this.entity)===null||c===void 0?void 0:c.access,type:(l=this.entity)===null||l===void 0?void 0:l.type,contentOrgId:(d=this.entity)===null||d===void 0?void 0:d.orgId}))}else{let O={cadence:this.cadence,catalog:this.catalog,deliveryMethod:we.EMAIL,entityId:((u=this.entity)===null||u===void 0?void 0:u.id)||this.entityId,entityType:(((h=this.entity)===null||h===void 0?void 0:h.type)||this.entityType).toUpperCase(),metadata:{},notificationSpecName:Oe.DISCUSSION_ON_ENTITY};await tt(Object.assign({data:O},this._context.hubRequestOptions)),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.subscription),{details:"post",response:"success",id:(p=this.entity)===null||p===void 0?void 0:p.id,access:(m=this.entity)===null||m===void 0?void 0:m.access,type:(b=this.entity)===null||b===void 0?void 0:b.type,contentOrgId:(f=this.entity)===null||f===void 0?void 0:f.orgId}))}Ne({title:this.intl.t("notice.succeed"),configuration:{noticeType:"alert",autoClose:!0,autoCloseDuration:"fast",icon:!0,kind:"success",label:this.intl.t("notice.succeed")}}),!((_=t?.detail)===null||_===void 0)&&_.values&&(this._values=t.detail.values,this._draftValues=void 0),await this.refreshSubscriptions()}catch(O){Ne({title:this.intl.t("notice.fail"),configuration:{noticeType:"alert",autoClose:!0,autoCloseDuration:"fast",icon:!0,kind:"danger",label:this.intl.t("notice.fail")}}),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.subscription),{response:"failure",id:(w=this.entity)===null||w===void 0?void 0:w.id,access:(A=this.entity)===null||A===void 0?void 0:A.access,type:(R=this.entity)===null||R===void 0?void 0:R.type,contentOrgId:(I=this.entity)===null||I===void 0?void 0:I.orgId})),console.error("Failed to save subscription",O)}},this.renderModal=()=>this.isModalOpen&&r("arcgis-wormhole",null,r("arcgis-configuration-form",{"data-subscription-editor":"true",isLoading:this.isLoading,isOpen:!0,layout:"modal",modalTitle:this.intl.t("subscribe"),onArcgisConfigurationFormChanged:this.handleSubscriptionChange,onArcgisConfigurationFormModalClosed:this.handleModalClose,onArcgisConfigurationFormSaved:this.handleSubscriptionSave,schema:this._schema,t:this.translationFunc,uiSchema:this._uiSchema,values:this._draftValues},r("div",{slot:"form-start"},r("div",{class:"subscription__header"},this.intl.t("subscribeTo",{entity:this.entity.name})),r("div",{class:"subscription__header-actions"},this.renderSubscribeAllButton())))),this.handleSubscribeAllClick=()=>{var t,s,i,o;let n=this._draftValues;if(this.isDiscussionType){let c=(i=(s=(t=this._schema)===null||t===void 0?void 0:t.properties)===null||s===void 0?void 0:s.channelActivitySelections)===null||i===void 0?void 0:i.properties,l=this.anyChannelSelected(),d={};l?Object.keys(c).forEach(u=>d[u]=[]):Object.entries(c).forEach(([u,h])=>{var p;let m=(p=h.items)===null||p===void 0?void 0:p.enum;d[u]=[...m]}),n=Object.assign(Object.assign({},this._draftValues||{}),{cadence:((o=this._draftValues)===null||o===void 0?void 0:o.cadence)||this.cadence,channelActivitySelections:d})}this._draftValues=n;let a=document.querySelector('arcgis-configuration-form[data-subscription-editor="true"] arcgis-configuration-editor');a?.dispatchEvent(new CustomEvent("arcgisConfigurationEditorChange",{bubbles:!0,detail:{valid:!0,values:n}}))},this.types=[],this.entityId=void 0,this.entity=void 0,this.entityType=void 0,this.subscribeButtonProps=void 0,this.promptToSignIn=void 0,this._schema=void 0,this._uiSchema=void 0,this.isModalOpen=!1,this.isLoading=!0,this.hasSubscribableChannels=!1,this.subscriptions=[],this._values=void 0,this._draftValues=void 0}get _context(){return Q()}get isDiscussionType(){var e;return(e=this.types)===null||e===void 0?void 0:e.includes(ie.DISCUSSION)}async componentWillLoad(){await this.initialize(),this.fetchDependencies()}async fetchDependencies(){var e,t,s;try{!this.entity&&this.entityId&&this.entityType&&(this.entity=await Qe(this.entityType,this.entityId,this._context)),this.hasSubscribableChannels=await Zt(this.entity,this._context),this.subscriptions=await xe(Object.assign({data:{entityId:((e=this.entity)===null||e===void 0?void 0:e.id)||this.entityId,userId:(s=(t=this._context)===null||t===void 0?void 0:t.currentUser)===null||s===void 0?void 0:s.username}},this._context.hubRequestOptions)),this._values=this.buildInitialFormValues()}catch(i){console.error("Subscription initialization failed",i)}finally{this.isLoading=!1}}async initialize(){this.intl=await j.loadIntlForComponent(this.element)}async buildSchemas(){this._schema=await Yt(this.types,this.entity,this._context),this._uiSchema=at(this.intl,Qt(this.types,this._schema,this.intl))}buildInitialFormValues(){if(this.isDiscussionType)return this.buildInitialDiscussionFormValues()}buildInitialDiscussionFormValues(){var e,t;let s=((t=(e=this.subscriptions)===null||e===void 0?void 0:e[0])===null||t===void 0?void 0:t.cadence)||this.cadence,i={};return this.subscriptions.flatMap(n=>{var a;return(a=n.catalog)===null||a===void 0?void 0:a.collections}).flatMap(n=>{var a;return(a=n.scope)===null||a===void 0?void 0:a.filters}).flatMap(n=>n.predicates).forEach(n=>{var a,c;let l=((a=n.status)===null||a===void 0?void 0:a[0])==="approved"?"newPosts":"pendingPosts";(c=n.channel)===null||c===void 0||c.forEach(d=>{let u=i[d]||(i[d]=[]);u.includes(l)||u.push(l)})}),{cadence:s,channelActivitySelections:i}}async refreshSubscriptions(){var e,t,s;try{this.subscriptions=await xe(Object.assign({data:{entityId:((e=this.entity)===null||e===void 0?void 0:e.id)||this.entityId,userId:(s=(t=this._context)===null||t===void 0?void 0:t.currentUser)===null||s===void 0?void 0:s.username}},this._context.hubRequestOptions)),this._values=this.buildInitialFormValues(),this.isModalOpen&&(this._draftValues=G(this._values))}catch(i){console.error("Failed to refresh subscriptions after save",i)}}get isSubscribeDisabled(){var e;return!((e=this._context)===null||e===void 0)&&e.currentUser?this.isDiscussionType?!(Ve("hub:feature:discussions:subscription",this._context).access&&this.hasSubscribableChannels):!1:!this.promptToSignIn}get subscribeButtonTooltip(){let e="";return this.types.includes(ie.DISCUSSION)&&(e=this.intl.t("subscribeButtonTooltip.discussion")),this.isSubscribeDisabled?e:""}renderSubscribeAllButton(){let e=this.anyChannelSelected()?"unsubscribeFromAll":"subscribeToAll";return r("calcite-button",{appearance:"outline",kind:"brand",label:this.intl.t(e),onClick:this.handleSubscribeAllClick,round:!0,scale:"m",type:"button"},this.intl.t(e))}get subscribeButtonLabel(){let e=this.hasActiveSubscription?"manageSubscription":"subscribe";return this.intl.t(e)}get hasActiveSubscription(){var e,t,s;return Array.isArray((s=(t=(e=this.subscriptions)===null||e===void 0?void 0:e[0])===null||t===void 0?void 0:t.catalog)===null||s===void 0?void 0:s.collections)&&this.subscriptions[0].catalog.collections.length>0}renderSubscribeButton(){var e,t,s,i,o,n;return this.isLoading?r("arcgis-skeleton-loader",{active:!0,rows:1}):r("arcgis-ref-tooltip",{placement:"top",text:this.subscribeButtonTooltip},r("calcite-button",{appearance:((e=this.subscribeButtonProps)===null||e===void 0?void 0:e.appearance)||"outline",disabled:this.isSubscribeDisabled,"icon-start":((t=this.subscribeButtonProps)===null||t===void 0?void 0:t.iconStart)||"bell",kind:((s=this.subscribeButtonProps)===null||s===void 0?void 0:s.kind)||"brand",label:this.subscribeButtonLabel,onClick:this.handleSubscribeClick,round:((i=this.subscribeButtonProps)===null||i===void 0?void 0:i.round)!==!1,scale:((o=this.subscribeButtonProps)===null||o===void 0?void 0:o.scale)||"m",width:((n=this.subscribeButtonProps)===null||n===void 0?void 0:n.width)||"auto"},this.subscribeButtonLabel))}anyChannelSelected(){var e;let t=((e=this._draftValues)===null||e===void 0?void 0:e.channelActivitySelections)||{};return Object.values(t).some(s=>Array.isArray(s)&&s.length>0)}render(){return r("div",{key:"4e58f9882aac2c40af6dda52f7842b5f2eddf36b"},this.renderSubscribeButton(),this.renderModal())}static get assetsDirs(){return["locales"]}get element(){return F(this)}};ss.style=ts;var is=":host{display:block}ol{margin:0px;display:grid;padding:0px;gap:var(--arcgis-hub-layout-list-gap, 1rem)}.map{grid-template-columns:1fr}.list{grid-template-columns:1fr}.grid{grid-template-columns:repeat(auto-fill, minmax(var(--arcgis-hub-layout-list-min-column-width, 20rem), 1fr))}.actions{display:grid;align-items:center;gap:var(--arcgis-hub-layout-list-actions-gap, 0.25rem);grid-template-columns:1fr;grid-template-rows:1fr;margin-bottom:var(--arcgis-hub-layout-list-actions-margin, 1rem)}.actions:has(.layout-actions){grid-template-columns:auto max-content}.actions:not(.hasActions){display:none}:host(.rtl) .layout-actions calcite-action{transform:scaleX(-1)}",ns=is,os=function(e,t,s,i){var o=arguments.length,n=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,s,i);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(n=(o<3?a(n):o>3?a(t,s,n):a(t,s))||n);return o>3&&n&&Object.defineProperty(t,s,n),n},Rt=class{constructor(e){N(this,e),this.arcgisLayoutListLayoutSelected=v(this,"arcgisLayoutListLayoutSelected",7),this.layout="list",this.disabled=!1,this.showMapControl=void 0,this.scale="s",this.listStyleDeclaration=void 0,this.hasSlottedActions=!1,$(this,"handleResized","handleLayoutSelected","handleSlotChanged")}connectedCallback(){Se.addHandler(this.element,this.handleResized)}async componentWillLoad(){await this.loadTranslations()}disconnectedCallback(){Se.unobserve(this.element)}async loadTranslations(){this.intl=await j.loadIntlForComponent(this.element)}handleResized(){this.listRef&&(this.listStyleDeclaration=globalThis.getComputedStyle(this.listRef))}get showActions(){return this.hasLayoutActions||this.hasSlottedActions}handleSlotChanged(){this.hasSlottedActions=!!this.element.querySelector('[slot="actions"]')}get hasLayoutActions(){let{listStyleDeclaration:e}=this,t=!1;if(e){let s=parseInt(e.getPropertyValue("gap"),10),i=e.getPropertyValue("grid-template-columns").split(" "),o=parseFloat(i[0]),n=e.getPropertyValue("--arcgis-hub-layout-list-min-column-width"),a=parseFloat(n)*(n.endsWith("rem")?16:1);t=i.length>1||a*2+s<o}return!!t}handleLayoutSelected(e){this.layout=e.target.icon,this.arcgisLayoutListLayoutSelected.emit(this.layout)}renderList(){return r("ol",{class:{[this.layout]:!0},ref:e=>{this.listRef=e}},r("slot",null))}renderLayoutActions(){let{hasLayoutActions:e,showMapControl:t}=this;if(e||t){let{layout:s,intl:i,disabled:o,handleLayoutSelected:n,scale:a}=this,c=[...t?["map"]:[],...e?["grid"]:[],"list"],l=d=>{let u=d===s;return!e&&s=="grid"&&d==="list"&&(u=!0),u};return r("div",{class:"layout-actions"},r("calcite-action-bar",{"expand-disabled":!0,layout:"horizontal"},c.map(d=>r("calcite-action",{active:l(d),disabled:o,icon:d,key:d,label:i.t(`${d}.label`),onClick:n,scale:a,text:i.t(`${d}.text`)}))))}}renderActions(){return r("div",{class:{actions:!0,hasActions:this.showActions}},r("div",null,r("slot",{name:"actions",onSlotchange:this.handleSlotChanged})),this.renderLayoutActions())}render(){return r(q,{key:"ade95b56903314f8878d97f2aba7ef6ddc48d6aa",class:{rtl:this.intl.direction==="rtl"}},this.renderActions(),this.renderList())}static get assetsDirs(){return["locales"]}get element(){return F(this)}};os([Me({timeout:250})],Rt.prototype,"handleResized",null);Rt.style=ns;var as=":host{display:block}",rs=as,cs=class{constructor(e){N(this,e),this.arcgisLoadMoreChange=v(this,"arcgisLoadMoreChange",7),this.nextStart=void 0,this.color="neutral",this.appearance="transparent",this.scale="l",this.width="full",this.round=!0,this.loading=!1,$(this,"handleLoadMore")}get hasMoreResults(){let{nextStart:e}=this;return e!==-1}get disabled(){let{loading:e,hasMoreResults:t}=this;return e||!t}async componentWillLoad(){this.intl=await j.loadIntlForComponent(this.el)}handleLoadMore(){let{nextStart:e}=this;this.arcgisLoadMoreChange.emit(e)}render(){let{loading:e,handleLoadMore:t,round:s,scale:i,width:o,intl:n,hasMoreResults:a,disabled:c,color:l,appearance:d}=this,u=n.t("loadMore");return r(q,{key:"09e58def9e5b3f0c226dda2e9ba47a08cdf829ce"},a&&r("calcite-button",{appearance:d,disabled:c||e,kind:yt(l),label:u,loading:e,onClick:t,round:s,scale:i,width:o},u))}static get assetsDirs(){return["locales"]}get el(){return F(this)}};cs.style=rs;return{arcgis_hub_discussions_post:W,arcgis_hub_discussions_post_chips:Mt,arcgis_hub_discussions_post_editor:te,arcgis_hub_discussions_post_list:Ot,arcgis_hub_discussions_post_reactions:It,arcgis_hub_subscription:ss,arcgis_layout_list:Rt,arcgis_load_more_button:cs}},"config",a,b)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.35/esri/copyright.txt for details.
|
|
3
|
+
v0.35.0 */
|
|
4
|
+
import"./3GL54CUZ.js";var a="\u0412\u044A\u0437\u043D\u0438\u043A\u043D\u0430 \u0433\u0440\u0435\u0448\u043A\u0430 \u043F\u0440\u0438 \u0437\u0430\u0440\u0435\u0436\u0434\u0430\u043D\u0435\u0442\u043E \u043D\u0430 \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u0430\u0442\u0430.",e="\u041D\u0435 \u043C\u043E\u0436\u0435 \u0434\u0430 \u0441\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0438 \u043B\u043E\u0433\u0430\u0440\u0438\u0442\u043C\u0438\u0447\u043D\u0430 \u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043A\u044A\u043C \u043E\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043B\u043D\u0438 \u0438\u043B\u0438 \u043D\u0443\u043B\u0435\u0432\u0438 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0438.",t="\u041D\u0435 \u043C\u043E\u0436\u0435 \u0434\u0430 \u0441\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0438 \u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u0441 \u043A\u0432\u0430\u0434\u0440\u0430\u0442\u0435\u043D \u043A\u043E\u0440\u0435\u043D \u043A\u044A\u043C \u043E\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043B\u043D\u0438 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0438.",r="\u0412\u044A\u0437\u043D\u0438\u043A\u043D\u0430 \u0433\u0440\u0435\u0448\u043A\u0430 \u043F\u0440\u0438 \u0437\u0430\u0440\u0435\u0436\u0434\u0430\u043D\u0435\u0442\u043E \u043D\u0430 \u0441\u043B\u043E\u044F. URL = ${ url }. \u0418\u0414 \u043D\u0430 \u0435\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0430 \u043F\u043E\u0440\u0442\u0430\u043B = ${ portalItemId }.",i="\u041F\u043E\u043B\u0435\u0442\u0430\u0442\u0430 [${ fieldNames }], \u043A\u043E\u0438\u0442\u043E \u0441\u0430 \u0434\u0435\u0444\u0438\u043D\u0438\u0440\u0430\u043D\u0438 \u0432 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F\u0442\u0430, \u043D\u0435 \u0441\u0430 \u043D\u0430\u043C\u0435\u0440\u0435\u043D\u0438 \u0432 \u0441\u043B\u043E\u044F.",s="${ dataPath } \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0443\u043D\u0443\u043A\u0430\u043B\u043D\u043E. \u0421\u0435\u0440\u0438\u044F\u0442\u0430 \u0441 \u0438\u043C\u0435\u0442\u043E ${ seriesName } \u0438\u043C\u0430 \u0418\u0414 (${ seriesID }), \u043A\u043E\u0439\u0442\u043E \u0432\u0435\u0447\u0435 \u0441\u0435 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430 \u043E\u0442 \u0434\u0440\u0443\u0433\u0430 \u0441\u0435\u0440\u0438\u044F.",n="${ dataPath } \u043D\u0435 \u043C\u043E\u0436\u0435 \u0434\u0430 \u0441\u0435 \u0438\u0437\u0432\u044A\u0440\u0448\u0432\u0430 \u043E\u0431\u043E\u0431\u0449\u0435\u043D\u0438\u0435, \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u043E \u043E\u0442 \u043E\u0431\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043D\u0430 \u0431\u0440\u043E\u0439, \u0437\u0430 \u043D\u0435\u0446\u0438\u0444\u0440\u043E\u0432\u043E \u043F\u043E\u043B\u0435.",o="${ dataPath } \u043D\u044F\u043C\u0430 \u0438\u043C\u0435 \u043D\u0430 \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u043E ${ missingProperty }.",d="${ dataPath } \u043D\u0435 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0438\u043C\u0430 \u043F\u043E-\u043C\u0430\u043B\u043A\u043E \u043E\u0442 ${ limit } \u0441\u0438\u043C\u0432\u043E\u043B\u0438.",l="${ dataPath } \u043D\u0435 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0438\u043C\u0430 \u043F\u043E-\u043C\u0430\u043B\u043A\u043E \u043E\u0442 ${ limit } \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438.",u="${ dataPath } \u043D\u0435 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0438\u043C\u0430 \u043F\u043E\u0432\u0435\u0447\u0435 \u043E\u0442 ${ limit } \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438.",m="${ dataPath } \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0438\u043C\u0430 \u043F\u043E\u043D\u0435 \u0435\u0434\u0438\u043D \u0441\u0438\u043C\u0432\u043E\u043B, \u043A\u043E\u0439\u0442\u043E \u043D\u0435 \u0435 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B.",$="${ dataPath } \u043D\u0435 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 ${ additionalProperty }.",p="${ dataPath } \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0440\u0430\u0432\u043D\u0430 \u043D\u0430 \u0435\u0434\u043D\u0430 \u043E\u0442 \u0442\u0435\u0437\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u0435\u043D\u0438 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0438: ${ allowedValues }.",y="${ dataPath }\u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0430 \u043D\u0430 \u0441\u0445\u0435\u043C\u0430\u0442\u0430 \u043D\u0430 \u0435\u0434\u043D\u0430 \u043E\u0442 \u0442\u0435\u0437\u0438: ${ schemaOptions }.",P="\u041D\u0435 \u0441\u0435 \u043F\u043E\u0434\u0434\u044A\u0440\u0436\u0430\u0442 \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u0438 \u043D\u0430 \u0440\u0430\u0437\u0441\u0435\u0439\u0432\u0430\u043D\u0435 \u0441 \u043F\u0440\u043E\u043F\u043E\u0440\u0446\u0438\u043E\u043D\u0430\u043B\u043D\u0438 \u0441\u0438\u043C\u0432\u043E\u043B\u0438. \u0418\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u043D \u0435 \u0440\u0430\u0437\u043C\u0435\u0440 \u043D\u0430 \u0441\u0438\u043C\u0432\u043E\u043B\u0430 \u043F\u043E \u043F\u043E\u0434\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043D\u0435.",g="\u0412\u0445\u043E\u0434\u043D\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u0438 \u043D\u0435 \u043C\u043E\u0433\u0430\u0442 \u0434\u0430 \u0441\u0435 \u043F\u0440\u043E\u0447\u0435\u0442\u0430\u0442.",h="\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F\u0442\u0430 queryBins \u043D\u0435 \u0441\u0435 \u043F\u043E\u0434\u0434\u044A\u0440\u0436\u0430 \u043E\u0442 \u0442\u0430\u0437\u0438 \u0443\u0441\u043B\u0443\u0433\u0430.",I="\u041E\u0447\u0430\u043A\u0432\u0430\u043D\u0438\u044F\u0442 \u0442\u0438\u043F \u0441\u0435\u0440\u0438\u044F \u0432 \u0438\u043D\u0434\u0435\u043A\u0441${ seriesIndex } \u0435 \u201E${ expectedType }\u201C, \u043D\u043E \u201E${ receivedType }\u201C \u0435 \u043F\u043E\u043B\u0443\u0447\u0435\u043D \u0432\u043C\u0435\u0441\u0442\u043E \u0442\u043E\u0432\u0430",c="\u0438\u043B\u0438",f={defaultError:a,negativeValueInDataForLogTransformation:e,negativeValueInDataForSqrtTransformation:t,layerLoadFailure:r,layerFieldsNotFound:i,duplicateSeriesID:s,nonNumericAggregation:n,requiredProperty:o,minLength:d,minItems:l,maxItems:u,whiteSpacePattern:m,additionalProperty:$,enumValues:p,anyOfValues:y,bubbleChartValidateMsg:P,queryError:g,queryBinsNotSupported:h,invalidSeriesType:I,or:"\u0438\u043B\u0438"};export{$ as additionalProperty,y as anyOfValues,P as bubbleChartValidateMsg,f as default,a as defaultError,s as duplicateSeriesID,p as enumValues,I as invalidSeriesType,i as layerFieldsNotFound,r as layerLoadFailure,u as maxItems,l as minItems,d as minLength,e as negativeValueInDataForLogTransformation,t as negativeValueInDataForSqrtTransformation,n as nonNumericAggregation,c as or,h as queryBinsNotSupported,g as queryError,o as requiredProperty,m as whiteSpacePattern};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.35/esri/copyright.txt for details.
|
|
3
|
+
v0.35.0 */
|
|
4
|
+
import{c as a}from"./5E54UBOV.js";import{b as c}from"./Y6X3H2J3.js";import{b as r}from"./PWAOZO44.js";export default $arcgis.t(([])=>{var G={extent:"default"},l=a.polygon.color,p={type:"simple-fill",color:[...l,.005],style:"solid",outline:{color:l,width:1}},y={type:"simple-marker",style:"circle",color:[...l,.5],size:"8px",outline:{color:l,width:1}},f={type:"simple-line",color:l,width:"2px",style:"solid"},R=t=>{let o;switch(t){case"point":o=y;break;case"polyline":o=f;break;default:o=p}return o},m={color:"#00ffff",haloOpacity:.8,fillOpacity:0},h={color:"#00ffff",haloOpacity:.8,fillOpacity:.15},w=t=>t==="hover"?m:h,u={type:"extent",xmin:-200375083427892e-7,ymin:-200375083427892e-7,xmax:200375083427892e-7,ymax:200375083427892e-7,spatialReference:{wkid:102100}},C=t=>{t.constraints.minZoom=2,t.constraints.geometry=u},O=t=>c(t.extent),N=(t,o,n=O)=>{if((t.type==="point"||t.type==="polyline")&&(o.type==="point"||o.type==="polyline"))return 0;if(t.type==="point"||t.type==="polyline")return 1;if(o.type==="point"||o.type==="polyline")return-1;try{let e=Math.abs(n(t)),i=Math.abs(n(o));if(e<i)return 1;if(e>i)return-1;if(e===i)return 0}catch{return 0}},A=t=>{t.closePopup()},D=({checked:t,class:o,ref:n,label:e,onChange:i,scale:s="m"})=>r("div",{class:o,ref:n},r("calcite-label",{class:"checkbox-label",layout:"inline",scale:s},r("calcite-checkbox",{checked:t,onCalciteCheckboxChange:i,scale:s}),e));return{a:G,b:R,c:w,d:C,e:N,f:A,g:D}},"config")
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.35/esri/copyright.txt for details.
|
|
3
|
+
v0.35.0 */
|
|
4
|
+
import"./NXFLYCQ6.js";import"./OFPLTZ6C.js";import"./UF7MGN6X.js";import"./XZO3RG3B.js";import"./7A3RIJRN.js";import"./O67ZYVM7.js";import{c as D,e as O}from"./LDUBK2RB.js";import"./3Y5HS7MR.js";import"./6LRKH6CH.js";import{o as s}from"./5CDOW2MQ.js";import"./NJS2QVGK.js";import"./5YEPEBCJ.js";import"./2K4QTOFM.js";import{a as v}from"./DHLWEAF5.js";import"./GIRZYZ4O.js";import"./O4TU3B7E.js";import{a as b}from"./QG5QHQGS.js";import"./RSLSYQJY.js";import{b as e,c as _,d as f,e as x,i as y}from"./PWAOZO44.js";import"./A3TLPDN5.js";import"./C2QVHVYK.js";import"./5QP7DOHI.js";import"./IPTPJEVD.js";import"./3GL54CUZ.js";export default $arcgis.t(([])=>{var w=":host{display:block}.fixed-bottom-right{position:fixed;bottom:4rem;right:2rem;z-index:9998}.assistant-icon-container{display:flex;align-items:center;background-color:#1c1c1c;color:white;padding:1rem 1rem;border-radius:5rem;box-shadow:0 .4rem .8rem rgba(0, 0, 0, 0.1);cursor:pointer}.assistant-icon{width:1.6rem;height:1.6rem;border-radius:50%}",A=w,k=class{constructor(i){y(this,i),this.hubTelemetry=x(this,"hubTelemetry",7),this.openDialog=()=>{this.dialogOpen=!0,this.hubTelemetry.emit(Object.assign(Object.assign({},b.dictionary.category.interaction.action.open.label.modal.details.info),{details:"Assistant"}))},this.closeDialog=()=>{this.dialogOpen=!1,this.hubTelemetry.emit(Object.assign(Object.assign({},b.dictionary.category.interaction.action.close.label.modal.details.info),{details:"Assistant"}))},this.handleKeyDown=t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.openDialog())},this.dialogOpen=!1,this.site=null}get _context(){return D()}get _site(){return this.site||O()}get isSiteOwner(){var i,t;return this._site.owner===((t=(i=this._context)===null||i===void 0?void 0:i.currentUser)===null||t===void 0?void 0:t.username)}get isMemberOfOwningOrg(){var i,t,a,n;let o=!1;return this._site.orgUrlKey?o=this._site.orgUrlKey===((t=(i=this._context)===null||i===void 0?void 0:i.portal)===null||t===void 0?void 0:t.urlKey):this._site.orgId&&(o=this._site.orgId===((n=(a=this._context)===null||a===void 0?void 0:a.portal)===null||n===void 0?void 0:n.id)),o}get aiApiUrl(){return s("hub:environment:devext",this._context).access?"https://hubdev.arcgis.com/api/assistants/v1":s("hub:environment:qaext",this._context).access?"https://hubqa.arcgis.com/api/assistants/v1":s("hub:environment:production",this._context).access?"https://hub.arcgis.com/api/assistants/v1":(s("hub:environment:enterprise",this._context).access,"")}get _canDisplayAiFab(){var i,t,a,n,o,l,r,c,d,h,u,m,g,p;if(this._context.isAuthenticated&&s("hub:site:assistant:access",this._context).access){if(!(!((t=(i=this._site)===null||i===void 0?void 0:i.assistant)===null||t===void 0)&&t.enabled))return!1;if(((a=this._site.assistant)===null||a===void 0?void 0:a.access)==="private")return this.isSiteOwner||((o=(n=this._site.assistant)===null||n===void 0?void 0:n.accessGroups)===null||o===void 0?void 0:o.length)>0?s("hub:site:assistant:access",this._context,this._site).access:!1;if(((l=this._site.assistant)===null||l===void 0?void 0:l.access)==="org")return this.isMemberOfOwningOrg||((c=(r=this._site.assistant)===null||r===void 0?void 0:r.accessGroups)===null||c===void 0?void 0:c.length)>0?s("hub:site:assistant:access",this._context,this._site).access:!1;if(((d=this._site.assistant)===null||d===void 0?void 0:d.access)==="public")return!0}else{if(!(!((u=(h=this._site)===null||h===void 0?void 0:h.assistant)===null||u===void 0)&&u.enabled)||!s("hub:site:assistant:access",this._context).access||((m=this._site.assistant)===null||m===void 0?void 0:m.access)==="private")return!1;if(((g=this._site.assistant)===null||g===void 0?void 0:g.access)==="org")return!1;if(((p=this._site.assistant)===null||p===void 0?void 0:p.access)==="public")return!0}}async componentWillLoad(){this.intl=await v.loadIntlForComponent(this.element)}async open(){this.openDialog()}async close(){this.closeDialog()}render(){return e(_,{key:"8e9964070e1fc30606f7e2efeb99bf7587ea5cc9","data-element":"arcgis-hub-ai-fab"},this._canDisplayAiFab&&e("div",{"aria-label":this.intl.t("heading")+" ("+this.intl.t("beta")+")",class:"assistant-icon-container fixed-bottom-right","data-element":"hub-ai-fab",onClick:this.openDialog,onKeyDown:this.handleKeyDown,role:"button",tabindex:"0"},e("calcite-icon",{class:"assistant-icon",icon:"effects",scale:"m"})),this._canDisplayAiFab&&e("arcgis-wormhole",{elAttributes:{unthemed:"true"},styles:{"--calcite-dialog-content-space":"0px","--calcite-dialog-min-size-y":"90%","--calcite-dialog-max-size-y":"90%","--calcite-dialog-min-size-x":"85%","--calcite-dialog-max-size-x":"85%","--calcite-dialog-scrim-background-color":"rgba(0, 0, 0, 0.5)"}},e("calcite-dialog",{"aria-label":this.intl.t("heading")+" ("+this.intl.t("beta")+")","data-element":"hub-ai-dialog",heading:this.intl.t("heading"),icon:"360-view",modal:!0,onCalciteDialogClose:this.closeDialog,open:this.dialogOpen},e("div",{slot:"header-actions-start",style:{display:"flex",alignItems:"center",paddingInlineStart:"12px"}},e("calcite-icon",{class:"assistant-icon",icon:"effects"})),e("div",{slot:"header-actions-end",style:{display:"flex",alignItems:"center",paddingInlineEnd:"10px"}},e("calcite-chip",{label:this.intl.t("beta")},this.intl.t("beta"))),e("div",{style:{height:"100%"}},e("arcgis-hub-ai-assistant",{apiUrl:this.aiApiUrl,authentication:this._context.session,itemId:this._site.id,mapEnabled:!0,mapShowTable:!0,mapVisible:!1,portalUrl:this._context.portalUrl})))))}static get assetsDirs(){return["locales"]}get element(){return f(this)}};k.style=A;return k},"config")
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.35/esri/copyright.txt for details.
|
|
3
|
+
v0.35.0 */
|
|
4
|
+
import{a as p}from"./7XC7N3JM.js";import"./GVZGIKF3.js";import{c as g}from"./LDUBK2RB.js";import"./3Y5HS7MR.js";import{c as d}from"./6LRKH6CH.js";import"./5CDOW2MQ.js";import"./NJS2QVGK.js";import"./5YEPEBCJ.js";import"./2K4QTOFM.js";import{a as h}from"./DHLWEAF5.js";import"./GIRZYZ4O.js";import"./O4TU3B7E.js";import"./QG5QHQGS.js";import"./RSLSYQJY.js";import{b as l,c as b,d as f,i as m}from"./PWAOZO44.js";import"./A3TLPDN5.js";import"./C2QVHVYK.js";import{a as c}from"./5QP7DOHI.js";import"./IPTPJEVD.js";import"./3GL54CUZ.js";var w=".sc-arcgis-hub-user-groups-pane-h{display:block;height:100%}",k=w,y=function(a,t,s,o){var e=arguments.length,i=e<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,s):o,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,t,s,o);else for(var n=a.length-1;n>=0;n--)(r=a[n])&&(i=(e<3?r(i):e>3?r(t,s,i):r(t,s))||i);return e>3&&i&&Object.defineProperty(t,s,i),i},u=class{constructor(a){m(this,a),this.resultCallback=(t,s,o,e)=>{let i=c(e,"userMembership");if(["owner","admin"].includes(i)){let n=d(e,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}),showLabel:!0,href:n,icon:"gear",buttonStyle:"outline",buttonKind:"neutral"}]}let r=[{label:this.intl.t("type"),value:c(e,"isSharedUpdate")?this.intl.t("sharedUpdate"):this.intl.t("viewOnly")},{label:this.intl.t("owner"),value:e.owner},{label:this.intl.t("updated"),value:this.intl.formatDate(e.updatedDate)}];return t.additionalInfo=r,t},this.layoutOptions=["compact","grid","list"],this.isMobile=!1,this._context=g()}async componentWillLoad(){this.intl=await h.loadIntlForComponent(this.element)}get currentUser(){return this._context.currentUser}get query(){return{targetEntity:"group",filters:[{predicates:[{searchUserAccess:"groupMember"}]}]}}get facets(){return["group-access",{label:this.intl.t("facets.type.specialGroups"),key:"types",display:"multi-select",pageSize:4,operation:"AND",options:[{label:this.intl.t("facets.type.options.sharedUpdate"),key:"sharedUpdate",selected:!1,predicates:[{capabilities:"updateitemcontrol"}]},{label:this.intl.t("facets.type.options.opendata"),key:"opendata",selected:!1,predicates:[{isopendata:!0}]}]}]}render(){return l(b,{key:"a09b2d6363264152026b3a738239d2448e510e3f","data-element":"user-groups"},l("arcgis-hub-workspace-pane",{key:"b0d5df57db2b51cdc443d0ba6bc0ff8739571f75",isMobile:this.isMobile,"sticky-footer":!0},l("h2",{key:"c78e39487fa661487f6ecbd2b26ce53aa7a77610",slot:"title"},this.intl.t("groups")),l("arcgis-hub-gallery",{key:"607d77ae7b1e6ffd4ef6b2c40546f5654ddb8dbb",callback:this.resultCallback,facets:this.facets,include:"userMembership",layout:"compact",layoutOptions:this.layoutOptions,limit:30,linkTarget:"siteRelative",mobileView:this.isMobile,query:this.query,showFacets:!0,showLayoutSwitcher:!0,showLinkButton:!1,showMoreResultsBtn:!0,showResultsCount:!0,showSearch:!0,showSort:!0,showThumbnail:!0,sortField:"modified",sortOrder:"desc"})))}static get assetsDirs(){return["locales"]}get element(){return f(this)}};y([p()],u.prototype,"query",null);y([p()],u.prototype,"facets",null);u.style=k;export{u as arcgis_hub_user_groups_pane};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.35/esri/copyright.txt for details.
|
|
3
|
+
v0.35.0 */
|
|
4
|
+
import{h as p}from"./MWJULILT.js";import"./54MA3SJG.js";import"./NFAM2LVT.js";import"./GXDZAIG6.js";import"./HZS2DMXX.js";import"./6P5ZZGAS.js";import"./TCA2LMHV.js";import"./RTE5OXT4.js";import"./N5K5X2QV.js";import"./6VJ37N5R.js";import"./7XORZQMG.js";import"./5YEPEBCJ.js";import"./2K4QTOFM.js";import{a as c}from"./LV5W663K.js";import{a as d}from"./DHLWEAF5.js";import"./GIRZYZ4O.js";import"./O4TU3B7E.js";import{a as s}from"./QG5QHQGS.js";import"./RSLSYQJY.js";import{b as e,c as m,d as u,e as h,h as l,i as f}from"./PWAOZO44.js";import"./C2QVHVYK.js";import"./5QP7DOHI.js";import"./IPTPJEVD.js";import"./3GL54CUZ.js";var g=":host{display:inline-block}::slotted(calcite-link){font-size:var(--calcite-font-size-0) !important;line-height:1.25rem !important}calcite-popover{width:20rem}button{grid-row:span 2 / span 2;cursor:pointer;border-style:none;background-color:transparent;padding:0px}address{margin:0px;margin-bottom:1.5rem;display:grid;column-gap:0.75rem;row-gap:0px;font-style:normal;grid-template-columns:44px auto}address:last-child{margin:0px}calcite-avatar{grid-row:span 2 / span 2;height:2.75rem;width:2.75rem}address calcite-icon{grid-row:span 2 / span 2;height:2.75rem;width:2.75rem}address b{font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}address span{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2)}address span:before{content:'@'}calcite-icon{margin-top:1px;margin-bottom:1px}.popover-body{margin:0px;padding:0.75rem}.popover-body div{margin-bottom:0.5rem;display:flex;align-items:flex-start;gap:0.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-color-text-2)}.popover-body div+div{margin-bottom:1rem}.popover-body div+div:last-child{margin:0px}footer{padding:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-color-text-1);background-color:var(--calcite-color-background)}footer div{margin:0px;margin-bottom:0.5rem;display:flex;align-items:flex-start;gap:0.5rem}footer div:nth-of-type(3){margin-bottom:1rem}footer div:last-child{margin:0px}",v=g,y=class{constructor(t){f(this,t),this.hubTelemetry=h(this,"hubTelemetry",7),this.buttonEl=void 0,this.username=void 0,this.fullName=void 0,this.thumbnail=void 0,this.userId=void 0,this.access=void 0,this.token=void 0,this.portal=void 0,this.region=void 0,this.organization=void 0,this.creatorUsername=void 0,this.postId=void 0,this.parentId=void 0,this.channelId=void 0,this.channelAccess=void 0,this.index=void 0,this.isHub=void 0,c(this,"handlePopoverOpened","handleGoToProfile","emitHubTelemetry")}async componentWillLoad(){this.intl=await d.loadIntlForComponent(this.element)}emitHubTelemetry(t){let{postId:i,parentId:n,channelId:o,channelAccess:r,index:a}=this;this.hubTelemetry.emit(Object.assign(Object.assign({},t),{postId:i,parentId:n,channelId:o,channelAccess:r,position:a}))}handlePopoverOpened(){this.emitHubTelemetry(s.dictionary.category.interaction.action.open.label.popover.details.details)}handleGoToProfile(){this.emitHubTelemetry(s.dictionary.category.navigation.action.view.label.users.details.profile)}renderCreatorAvatar(){let{username:t,fullName:i,thumbnail:n,portal:o,token:r,userId:a,access:b}=this;return e("calcite-avatar",{"full-name":i,scale:"l",thumbnail:n&&p(o,{username:t,access:b,thumbnail:n},r),"user-id":a,username:t})}renderCreatorDetails(){let{intl:t,username:i,fullName:n}=this,o=t.t("anonymous"),r=t.t("noUser");return i&&(o=n||t.t("privateUser"),r=i),e(l,null,e("b",null,o),e("span",null,r))}renderCreatorExpandedDetails(){let{intl:t,region:i,organization:n,username:o,isHub:r}=this;if(i){let a=t.formatDisplayName(i.toLocaleUpperCase(),{type:"region"});return e(l,null,n&&e("div",null,e("calcite-icon",{icon:"organization",scale:"s","text-label":t.t("orgLabel")}),n),a&&e("div",null,e("calcite-icon",{icon:"pin",scale:"s","text-label":t.t("location")}),a),r&&e("calcite-button",{appearance:"outline-fill",href:"/people/"+o,kind:"neutral",label:t.t("profile"),onClick:this.handleGoToProfile,round:!0,scale:"l",width:"full"},t.t("profile")))}}renderPostDetails(){let{intl:t,creatorUsername:i}=this;return e("footer",null,e("div",null,e("calcite-icon",{icon:"speech-bubbles",scale:"s"}),e("span",null,t.t("mentionedBy",{username:i}))))}render(){let{intl:t}=this;return e(m,{key:"d73d3d15259fe6e2b9ffa636a5e9392e80d34832","data-element":"discussions-mention-popover"},this.buttonEl&&e("calcite-popover",{autoClose:!0,label:t.t("information"),overlayPositioning:"fixed",placement:"top",referenceElement:this.buttonEl},e("div",{class:"popover-body"},e("address",null,this.renderCreatorAvatar(),this.renderCreatorDetails()),this.renderCreatorExpandedDetails()),this.renderPostDetails()),e("button",{key:"b6f3059a2b2fa879c4ed5349693fa875cf5a8682",ref:i=>{this.buttonEl=i},type:"button"},e("slot",{key:"64359d590af2a7564dc6b0d8cd4caa7b4223a04b"})))}static get assetsDirs(){return["locales"]}get element(){return u(this)}};y.style=v;export{y as arcgis_hub_discussions_mention_popover};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.35/esri/copyright.txt for details.
|
|
3
|
+
v0.35.0 */
|
|
4
|
+
import{a as b}from"./ZRFAMWFJ.js";import{a as k}from"./7XC7N3JM.js";import{c as R}from"./4GXZCGZA.js";import"./NXFLYCQ6.js";import"./OFPLTZ6C.js";import"./UF7MGN6X.js";import"./XZO3RG3B.js";import"./7A3RIJRN.js";import"./O67ZYVM7.js";import{a as A}from"./RPGIDJHQ.js";import"./TJUNYPU7.js";import"./27ZJ7LJR.js";import"./YP4GN2SW.js";import"./VD5O5ODH.js";import"./ZRAJQHXW.js";import"./NHPH3M7S.js";import{b as j,c as E}from"./M7XIFSB3.js";import"./BCHNNURE.js";import"./A2WSCU6U.js";import"./5KIQAGYG.js";import"./IZGW5BEY.js";import"./Z5NY5GJ3.js";import"./4U4NCNLF.js";import"./GH3Z2F3D.js";import"./43I5DTMD.js";import"./BNVRLP6C.js";import"./WZNPF6G6.js";import"./X7GVSJJM.js";import"./7CGMY4BC.js";import"./PPZHMRZ4.js";import"./H56X6CH7.js";import"./5AKQYOXC.js";import{da as v}from"./YOQ4XY6E.js";import"./O3MXAP3N.js";import"./7UNCALWO.js";import"./FX7UWUTP.js";import"./SQBGCTIG.js";import"./SZ7LGGV4.js";import"./AYQYEPT4.js";import"./ERMF3HUK.js";import"./V4P3GZB5.js";import"./BVB5LUSE.js";import"./MQXGINY2.js";import"./422UNPGB.js";import"./SRNIYEBY.js";import"./SH3M7OUG.js";import"./UYV4B6YW.js";import"./RSAAUBJR.js";import"./OVRI2ZBS.js";import"./RWPPMQG5.js";import"./ECVT6WF7.js";import"./DQDKK33P.js";import"./IE5EUGCH.js";import"./WKJX6XLJ.js";import"./K2OR2N3X.js";import"./XSRJIVEU.js";import"./Y3SDERWY.js";import"./GVZGIKF3.js";import"./5IDNQFAN.js";import"./OM6MUBJ5.js";import"./NCDIG7IN.js";import"./2G4AIFHQ.js";import"./SMI77T56.js";import"./MWJULILT.js";import"./54MA3SJG.js";import"./NFAM2LVT.js";import"./GXDZAIG6.js";import"./WALQAPVG.js";import"./JFWOWWTD.js";import"./L35FFC3D.js";import"./HZS2DMXX.js";import"./6P5ZZGAS.js";import"./TCA2LMHV.js";import"./WS373WFL.js";import"./4GMN3WAM.js";import"./UA53TF6W.js";import"./VRAJINCV.js";import"./4XZGNWLH.js";import"./RTE5OXT4.js";import"./N5K5X2QV.js";import{c as D,g as d}from"./LDUBK2RB.js";import"./3Y5HS7MR.js";import"./AJPHY2IX.js";import"./MGHCC7WE.js";import"./Z3DSUVFJ.js";import"./PS6ZMIQH.js";import"./6VJ37N5R.js";import"./7XORZQMG.js";import"./KBPBFGED.js";import"./6LRKH6CH.js";import{o as u}from"./5CDOW2MQ.js";import"./NJS2QVGK.js";import"./5YEPEBCJ.js";import"./2K4QTOFM.js";import{a as S}from"./LV5W663K.js";import{a as w}from"./DHLWEAF5.js";import"./GIRZYZ4O.js";import"./O4TU3B7E.js";import{a as o}from"./QG5QHQGS.js";import"./RSLSYQJY.js";import{b as s,c as O,d as M,e as p,h as g,i as _}from"./PWAOZO44.js";import"./A3TLPDN5.js";import{a as C,s as f}from"./C2QVHVYK.js";import"./5QP7DOHI.js";import"./IPTPJEVD.js";import"./3GL54CUZ.js";export default $arcgis.t(([])=>{function F(e){return[{label:e.t("facets.role.label"),key:"access",display:"single-select",field:"access",options:[{label:e.t("facets.role.all"),key:"all",selected:!0,predicates:[]},{label:e.t("facets.role.manager"),key:"admin",selected:!1,predicates:[{memberType:"admin"}]},{label:e.t("facets.role.member"),key:"member",selected:!1,predicates:[{memberType:"member"}]}],operation:"OR"},{label:e.t("facets.dateJoined.label"),key:"joined",display:"date-range",state:"open",field:"joined",max:new Date}]}var I={schemaVersion:1,scopes:{communityUser:{targetEntity:"communityUser",filters:[{predicates:[{q:"*"}]}]}},collections:[{key:"user",label:"Users",scope:{targetEntity:"communityUser",filters:[{predicates:[{q:"*"}]}]},targetEntity:"communityUser"}]};function U(e,t,i,n=""){var r,a;let l=t.trustedOrgIds&&t?.trustedOrgIds.filter(m=>{var y;return m!==((y=t?.currentUser)===null||y===void 0?void 0:y.orgId)&&m!==t?.communityOrgId}),c={label:"From",key:"from",display:"single-select",operation:"AND",options:[{label:i.t(`${n}addMembers.modal.org`),key:"org",selected:!0,predicates:[{orgid:(r=t?.currentUser)===null||r===void 0?void 0:r.orgId},{group:{not:e?.id}}]}]};return e?.membershipAccess&&e?.membershipAccess!=="organization"&&t?.communityOrgId&&c.options.push({label:i.t(`${n}addMembers.modal.community`),key:"community",selected:!1,predicates:[{orgid:t?.communityOrgId,searchUserAccess:"includeTrustedOrgs"},{group:{not:e?.id}}]}),e?.membershipAccess&&e?.membershipAccess!=="organization"&&l?.length>0&&u("platform:portal:admin:assignToGroups",t).access&&(u("platform:portal:user:invitePartneredCollaborationMembers",t).access||u("platform:portal:user:addExternalMembersToGroup",t).access)&&c.options.push({label:i.t(`${n}addMembers.modal.partner`),key:"partners",selected:!1,predicates:[{orgid:l,searchUserAccess:"includeTrustedOrgs"},{group:{not:e?.id}}]}),e?.membershipAccess&&e?.membershipAccess==="anyone"&&!e?.isSharedUpdate&&c.options.push({label:i.t(`${n}addMembers.modal.world`),key:"world",selected:!1,predicates:[{orgid:{type:"range",from:"0",to:"\\{"}},{orgid:{not:[(a=t?.currentUser)===null||a===void 0?void 0:a.orgId,t?.communityOrgId]}},{group:{not:e?.id}}]}),[c]}var G=".sc-arcgis-hub-group-members-manager-h{display:block;height:100%}.group-members-manager.sc-arcgis-hub-group-members-manager{display:flex;flex-direction:column;gap:2rem}.entity-group-members__stats.sc-arcgis-hub-group-members-manager{display:flex;width:100%;gap:1rem}.entity-group-members__stats.sc-arcgis-hub-group-members-manager arcgis-stat-card.sc-arcgis-hub-group-members-manager{width:50%}arcgis-ref-tooltip.sc-arcgis-hub-group-members-manager{width:-moz-fit-content;width:fit-content}",H=G,x=function(e,t,i,n){var r=arguments.length,a=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,i,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(a=(r<3?l(a):r>3?l(t,i,a):l(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a},h={noticeType:"alert",autoClose:!0,autoCloseDuration:"fast",icon:!0,kind:"success"},T=class{constructor(e){_(this,e),this.hubTelemetry=p(this,"hubTelemetry",7),this.groupId=void 0,this.showGalleryFacets=!0,this.isMobile=!1,this.membersCount=void 0,this.newMembersCount=void 0,this.isUserPickerOpen=!1,this.group=void 0,this.groupMembersSelected=[],S(this,"handlePickerOpen","handlePickerClose","handlePickerSelectionUpdate","handleGalleryBulkAction","handleMemberSelection")}async componentWillLoad(){await this.loadTranslations(),await this.fetchGroup(),this.fetchStats()}async loadTranslations(){this.intl=await w.loadIntlForComponent(this.el)}get _context(){return D()}handlePickerOpen(){this.isUserPickerOpen=!0}handlePickerClose(){this.isUserPickerOpen=!1}get query(){return{targetEntity:"groupMember",filters:[{predicates:[{group:this.groupId}]}]}}get canAssignMembers(){return u("hub:group:canAssignMembers",this._context,this.group).access}get messageRecipients(){let e={type:"groupMember",id:this.groupId,users:[]};return this.groupMembersSelected.length&&(e.users=this.groupMembersSelected),e}get bulkActions(){let e={actions:[]};if(this.canAssignMembers){let t=this.groupMembersSelected.includes(this._context.currentUser.username)||this.groupMembersSelected.includes(this.group.owner);e.actions.push({name:"removeUsers",icon:"user-minus",text:this.intl.t("removeUsers.button")}),e.actions.push({text:this.intl.t("changeRole.button"),icon:"user-key",disabled:t,tooltip:{text:t?this.intl.t("changeRole.tooltipText"):"",label:this.intl.t("changeRole.tooltipLabel")},children:[{name:"changeRole",args:{role:"admin"},text:this.intl.t("changeRole.admin"),helperText:this.intl.t("changeRole.adminHelperText")},{name:"changeRole",args:{role:"member"},text:this.intl.t("changeRole.member"),helperText:this.intl.t("changeRole.memberHelperText")}]})}return e}async fetchStats(){let e=C(this.query),t=new Date().getDate();e.filters[0].predicates[0].joined={type:"date-range",from:new Date(new Date().setDate(t-30)).valueOf(),to:new Date().valueOf()};let[i,n]=await Promise.all([v(this.query,{requestOptions:this._context.hubRequestOptions}),v(e,{requestOptions:this._context.hubRequestOptions})]);this.membersCount=i.total,this.newMembersCount=n.total}async fetchGroup(){this.group=(await A.fetch(this.groupId,this._context)).toJson()}buildTelemetryProps(e,t,i){return Object.assign(Object.assign({},e),{response:t?"Failure":"Success",count:t||i})}handleMemberSelection(e){e.stopPropagation(),this.groupMembersSelected=e.detail.groupMember}async handleGalleryBulkAction(e){let{action:t,selection:i}=e.detail;switch(t.name){case"removeUsers":this.removeUsersFromGroup(i);break;case"changeRole":this.changeRole(i,t.args.role);break}}async removeUsersFromGroup(e){var t,i;try{let n=await j(Object.assign({id:this.groupId,users:e},this._context.userRequestOptions));(t=this.memberGallery)===null||t===void 0||t.refresh(),(i=this.memberGallery)===null||i===void 0||i.clearSelection(),this.fetchStats(),d({title:n.notRemoved.length?this.intl.t("removeUsers.error"):this.intl.t("removeUsers.success",{groupName:this.group.name}),message:"",configuration:Object.assign(Object.assign({},h),{kind:n.notRemoved.length?"danger":"success",label:this.intl.t("notice.label")})});let r=this.buildTelemetryProps(o.dictionary.category.groups.action.leave.label.members.details.remove,n.notRemoved.length,e.length);this.hubTelemetry.emit(r)}catch(n){console.error("Something went wrong removing users from the group",n),d({title:this.intl.t("removeUsers.error"),message:"",configuration:Object.assign(Object.assign({},h),{kind:"danger",label:this.intl.t("notice.label")})}),this.hubTelemetry.emit(Object.assign(Object.assign({},o.dictionary.category.groups.action.leave.label.members.details.remove),{response:"Failure",count:e.length}))}}async changeRole(e,t){var i,n;let r=t==="member"?"roleMember":"roleManager";try{let l=(await E(Object.assign({id:this.groupId,users:e,newMemberType:t},this._context.userRequestOptions))).results.reduce((c,m)=>(m.success?c.successes.push(m.username):c.failures.push(m.username),c),{successes:[],failures:[]});(i=this.memberGallery)===null||i===void 0||i.refresh(),(n=this.memberGallery)===null||n===void 0||n.clearSelection(),l.failures.length?(d({title:this.intl.t("changeRole.error"),message:"",configuration:Object.assign(Object.assign({},h),{kind:"danger",label:this.intl.t("notice.label")})}),this.hubTelemetry.emit(Object.assign(Object.assign({},o.dictionary.category.groups.action.update.label.users.details[r]),{response:"Failed",count:l.failures.length})),l.successes.length&&this.hubTelemetry.emit(Object.assign(Object.assign({},o.dictionary.category.groups.action.update.label.users.details[r]),{response:"Success",count:l.successes.length}))):(d({title:this.intl.t("changeRole.success",{role:this.intl.t(`changeRole.${t}`).toLowerCase()}),message:"",configuration:Object.assign(Object.assign({},h),{kind:"success",label:this.intl.t("notice.label")})}),this.hubTelemetry.emit(Object.assign(Object.assign({},o.dictionary.category.groups.action.update.label.users.details[r]),{response:"Success",count:e.length})))}catch(a){console.error("Something went wrong changing the role of the users",a),d({title:this.intl.t("changeRole.error"),message:"",configuration:Object.assign(Object.assign({},h),{kind:"danger",label:this.intl.t("notice.label")})}),this.hubTelemetry.emit(Object.assign(Object.assign({},o.dictionary.category.groups.action.update.label.users.details[r]),{response:"Failed",count:e.length}))}}async handlePickerSelectionUpdate(e){let{communityUser:t}=e.detail;try{let i=await R(this.groupId,t,this._context.userRequestOptions,u("platform:portal:admin:assignToGroups",this._context).access),n=this.intl.t("addMembers.notifications.invited");i.added.length&&(n=this.intl.t("addMembers.notifications.added")),i.notInvited.length&&(n=this.intl.t("addMembers.notifications.notInvited")),d({title:n,message:"",configuration:Object.assign(Object.assign({},h),{kind:i.notAdded.length&&i.notInvited.length?"danger":"success",label:this.intl.t("notice.label")})}),i.notAdded.length&&this.hubTelemetry.emit(Object.assign(Object.assign({},o.dictionary.category.groups.action.join.label.members.details.add),{response:"Failure",count:i.notAdded.length})),i.added.length&&this.hubTelemetry.emit(Object.assign(Object.assign({},o.dictionary.category.groups.action.join.label.members.details.add),{response:"Success",count:i.added.length})),i.notInvited.length&&this.hubTelemetry.emit(Object.assign(Object.assign({},o.dictionary.category.groups.action.join.label.members.details.invite),{response:"Failure",count:i.notInvited.length})),i.invited.length&&this.hubTelemetry.emit(Object.assign(Object.assign({},o.dictionary.category.groups.action.join.label.members.details.invite),{response:"Success",count:i.invited.length})),this.fetchStats()}catch(i){console.error("Something went wrong adding users to the group",i),d({title:this.intl.t("addMembers.notifications.notInvited"),message:"",configuration:Object.assign(Object.assign({},h),{kind:"danger",label:this.intl.t("notice.label")})}),this.hubTelemetry.emit(Object.assign(Object.assign({},o.dictionary.category.groups.action.join.label.members.details.add),{response:"Failure",count:t.length}))}}renderStats(){return s("div",{class:"entity-group-members__stats"},s("arcgis-stat-card",{cardTitle:this.intl.t("stats.total.title"),key:"total",trailingText:this.intl.t("stats.total.trailingText"),value:this.membersCount&&this.intl.formatNumber(this.membersCount)}),s("arcgis-stat-card",{cardTitle:this.intl.t("stats.new.title"),key:"new",trailingText:this.intl.t("stats.new.trailingText"),value:this.newMembersCount&&this.intl.formatNumber(this.newMembersCount)}))}get facets(){return F(this.intl)}renderMembersGallery(){return s("arcgis-hub-gallery",{bulkActions:this.bulkActions,"data-test":"members-gallery",facets:this.facets,linkTarget:"siteRelative",mobileView:this.isMobile,onArcgisHubGalleryBulkAction:this.handleGalleryBulkAction,onArcgisHubGallerySelect:this.handleMemberSelection,query:this.query,ref:e=>{this.memberGallery=e},selectionMode:this.canAssignMembers?"multiple":"none","show-back-to-top-btn":!0,"show-chips":!0,"show-facets":this.showGalleryFacets,"show-more-results-btn":!0,"show-results-count":!0,"show-search":!0,"show-sort":!0,showLayoutSwitcher:!this.isMobile,sortField:"username",sortOptions:["username","joined","memberType"]})}renderUserPicker(){return s(g,null,s("arcgis-ref-tooltip",{placement:"right",text:this.canAssignMembers?"":this.intl.t("addMembers.disabledTooltip")},s("calcite-button",{appearance:"solid",onClick:this.handlePickerOpen,round:!0},this.intl.t("addMembers.button"))),this.isUserPickerOpen&&s("arcgis-wormhole",{elAttributes:{unthemed:""}},s("arcgis-hub-gallery-picker",{catalogs:[I],"data-test":"members-gallery-picker",facets:U(this.group,this._context,this.intl),linkTarget:"siteRelative",modalTitle:this.intl.t("addMembers.modal.title"),onArcgisHubGalleryPickerClose:this.handlePickerClose,onArcgisHubGalleryPickerSelectionUpdate:this.handlePickerSelectionUpdate,open:this.isUserPickerOpen,showBadges:!1,showSearch:!0,showThumbnail:!0,sortField:"username",sortOptions:["username","joined"]})))}renderMessageButton(){return s("arcgis-hub-message",{recipients:this.messageRecipients})}render(){return s(O,{key:"78bc68366ec6112c59ce6a8339216b5d739a273f","data-element":"arcgis-hub-group-members-manager"},s("div",{key:"198f16e6ebc855088dcfba4785c5c4964f8a93d2",class:"group-members-manager"},s("span",{key:"93d7baae59fd5c3e371a8273972445337a04f05b",slot:"primary-actions"},this.canAssignMembers&&this.renderUserPicker(),this.renderMessageButton()),this.renderStats(),this.renderMembersGallery()))}static get assetsDirs(){return["locales"]}get el(){return M(this)}};x([k("groupId")],T.prototype,"query",null);x([k("intl")],T.prototype,"facets",null);T.style=H;var P=".sc-arcgis-hub-new-content-h{display:block}.sc-arcgis-hub-new-content-h:not([unthemed]) calcite-dropdown.sc-arcgis-hub-new-content{--calcite-color-background:#f8f8f8;--calcite-color-foreground-1:#ffffff;--calcite-color-foreground-2:#f3f3f3}.sc-arcgis-hub-new-content-h:not([unthemed]) .hub-new-content_dropdown-group.sc-arcgis-hub-new-content{--calcite-color-brand:var(--calcite-color-border-1);--calcite-color-text-1:#151515;--calcite-color-text-2:#4a4a4a;--calcite-color-text-3:#6a6a6a;--calcite-color-border-1:#cacaca;--calcite-color-border-3:#dfdfdf;--calcite-color-text-link:#151515;--calcite-link-blue-underline:#151515}.hub-new-content_dropdown-group.sc-arcgis-hub-new-content:not(.mobile){max-width:20rem;max-height:80vh;overflow-y:scroll}.hub-new-content_dropdown-item.sc-arcgis-hub-new-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-top:0.25rem;padding-bottom:0.25rem}.hub-new-content_dropdown-item--left.sc-arcgis-hub-new-content{display:flex}.hub-new-content_dropdown-item-content.sc-arcgis-hub-new-content{display:flex;flex-direction:column}.hub-new-content_dropdown-item-icon.sc-arcgis-hub-new-content{height:70px;width:70px;margin-right:0.75rem;display:flex;align-items:center;background-color:var(--calcite-color-background)}.hub-new-content_dropdown-item-icon.sc-arcgis-hub-new-content calcite-icon.sc-arcgis-hub-new-content{width:70px}.hub-new-content_dropdown-item-title.sc-arcgis-hub-new-content,.hub-new-content_dropdown-item-description.sc-arcgis-hub-new-content,calcite-dropdown-item.sc-arcgis-hub-new-content calcite-link.sc-arcgis-hub-new-content{font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);font-size:var(--calcite-font-size--1);line-height:1.375rem;white-space:normal;overflow-wrap:break-word}.hub-new-content_dropdown-item-title.sc-arcgis-hub-new-content{margin-bottom:0.25rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}.hub-new-content_dropdown-item-description.sc-arcgis-hub-new-content{color:var(--calcite-color-text-2)}.new-content-modal__header.sc-arcgis-hub-new-content{margin-bottom:2rem;display:flex;flex-direction:column;align-items:center;padding-left:2.5rem;padding-right:2.5rem}.new-content-modal__header.sc-arcgis-hub-new-content h2.sc-arcgis-hub-new-content{margin-bottom:1rem;margin-top:1rem;font-size:var(--calcite-font-size-2);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold)}.new-content-modal__header.sc-arcgis-hub-new-content span.sc-arcgis-hub-new-content{max-width:90%;text-align:center}.new-content-modal__header-icon.sc-arcgis-hub-new-content{border-radius:50%;border-width:1px;border-style:solid}.new-content-modal__header-icon.sc-arcgis-hub-new-content calcite-icon.sc-arcgis-hub-new-content{margin:1.5rem}calcite-button.sc-arcgis-hub-new-content[shouldbedisabled].sc-arcgis-hub-new-content{pointer-events:none;opacity:0.5}arcgis-hub-entity-editor.sc-arcgis-hub-new-content{white-space:normal}",L=P,N=class{constructor(e){_(this,e),this.arcgisHubNewContentSuccess=p(this,"arcgisHubNewContentSuccess",7),this.arcgisHubNewContentError=p(this,"arcgisHubNewContentError",7),this.hubTelemetry=p(this,"hubTelemetry",7),this.handleDropdownSelect=t=>{let i=t.currentTarget;this.selectedEntityIdx=i.getAttribute("data-index"),this.handleEntitySelected()},this.handleResourceLinkClick=t=>{let n=t.currentTarget.getAttribute("data-value"),r=o.dictionary.category.navigation.action.new.label.content.details[n];r&&this.hubTelemetry.emit(r)},this.handleEntitySelected=()=>{var t,i;this.selectedEntity.href?o.dictionary.category.navigation.action.new.label.content.details[(t=this.selectedEntity)===null||t===void 0?void 0:t.key]?this.hubTelemetry.emit(o.dictionary.category.navigation.action.new.label.content.details[(i=this.selectedEntity)===null||i===void 0?void 0:i.key]):this.hubTelemetry.emit(o.dictionary.category.navigation.action.new.label.content):this.toggleForm(!0)},this.handleCalciteDropdownRef=t=>{if(t.shadowRoot&&!t.shadowRoot.querySelector("style[data-hub]")){let i=document.createElement("style");i.dataset.hub="",i.innerHTML=".calcite-dropdown-content { max-block-size: max-content !important; }",t.shadowRoot.appendChild(i)}},this.handleEntityEditorSaved=async t=>{let{entity:i,isSuccess:n,error:r}=t.detail;n?(this.toggleForm(!1),this.arcgisHubNewContentSuccess.emit(i)):this.arcgisHubNewContentError.emit(r)},this.handleHubTelemetry=t=>{t.stopPropagation(),this.hubTelemetry.emit(t.detail)},this.toggleForm=async t=>{var i,n;this.isMobileDropdownOpen=!1,this.isFormOpen=t,this.selectedEntity&&this.hubTelemetry.emit(t?o.dictionary.category.interaction.action.open.label.modal.details[`create${f((i=this.selectedEntity)===null||i===void 0?void 0:i.key)}`]:o.dictionary.category.interaction.action.close.label.modal.details[`create${f((n=this.selectedEntity)===null||n===void 0?void 0:n.key)}`])},this.onOpenMobileDropdownButtonClick=()=>{this.isMobileDropdownOpen=!0},this.onCloseMobileDropdownButttonClick=()=>{this.isMobileDropdownOpen=!1},this.buttonAppearance=void 0,this.buttonColor=void 0,this.editorContext=void 0,this.entityConfigs=[],this.resourceLinks=[],this.renderAsDropdown=!1,this.buttonScale=void 0,this.isMobile=!1,this.selectedEntityIdx=void 0,this.isFormOpen=!1,this.isFormModalOpen=!1,this.isMobileDropdownOpen=!1}handleArcgisHubNewContentModalOpen(){this.isFormModalOpen=!0}handleArcgisHubNewContentModalClosed(){this.toggleForm(!1),this.selectedEntityIdx=null,this.isFormModalOpen=!1}async componentWillLoad(){this.intl=await w.loadIntlForComponent(this.element)}get isSingleEntity(){return this.entityConfigs.length===1}get selectedEntity(){return this.isSingleEntity?this.entityConfigs[0]:this.entityConfigs[this.selectedEntityIdx]}get hasResourceLinks(){return!!this.resourceLinks.length}get formTitle(){var e,t;return((e=this.selectedEntity)===null||e===void 0?void 0:e.formLabel)||this.intl.t(`${(t=this.selectedEntity)===null||t===void 0?void 0:t.key}.newLabel`)}get formDescription(){var e,t;return((e=this.selectedEntity)===null||e===void 0?void 0:e.description)||this.intl.t(`${(t=this.selectedEntity)===null||t===void 0?void 0:t.key}.description`)}get editorType(){var e,t;return((e=this.selectedEntity)===null||e===void 0?void 0:e.editorType)||`hub:${(t=this.selectedEntity)===null||t===void 0?void 0:t.key}:create`}getIcon(e){let t={site:"globe",initiative:"initiative",app:"apps",content:"file",project:"projects",discussion:"speech-bubbles",feedback:"survey",event:"event",group:"group",template:"initiative-template"};return e.icon||t[e.key]||"file"}renderNewDropdownButton(e,t){let i;return this.isMobile?i=s("calcite-button",{appearance:this.buttonAppearance,kind:b(this.buttonColor),onClick:this.onOpenMobileDropdownButtonClick,scale:this.buttonScale},s("calcite-icon",{icon:"plus",scale:this.buttonScale})):i=this.isSingleEntity&&!this.renderAsDropdown?s("arcgis-ref-tooltip",{overlayPositioning:"fixed",placement:"bottom",text:e[0].disabled&&e[0].disabledTooltip||""},s("calcite-button",{appearance:this.buttonAppearance,href:e[0].href,kind:b(this.buttonColor),onClick:e[0].disabled?null:this.handleEntitySelected,round:!0,scale:this.buttonScale,shouldBeDisabled:e[0].disabled},e[0].label||this.intl.t(`${e[0].key}.createLabel`))):this.renderDropdown(e,t),i}renderDropdown(e,t){return s("calcite-dropdown",{ref:this.handleCalciteDropdownRef},s("calcite-button",{appearance:this.buttonAppearance,"icon-end":"caret-down",kind:b(this.buttonColor),scale:this.buttonScale,slot:"trigger"},this.intl.t("new")),this.renderDropdownContent(e,t))}renderMobileDropdown(e,t){return s("calcite-dialog",{heading:this.intl.t("new"),modal:!0,onCalciteDialogClose:this.onCloseMobileDropdownButttonClick,open:this.isMobileDropdownOpen},this.renderDropdownContent(e,t))}renderDropdownContent(e,t){return s(g,null,this.renderEntityItems(e),this.hasResourceLinks&&this.renderResourceLinks(t))}renderEntityItems(e){return s("calcite-dropdown-group",{class:{"hub-new-content_dropdown-group":!0,mobile:this.isMobile},"selection-mode":"none"},e.map((t,i)=>this.renderEntityItem(t,i)))}renderEntityItem(e,t){return s("calcite-dropdown-item",{"data-index":t,"data-value":e.key,href:e.href,key:e.key,onCalciteDropdownItemSelect:this.handleDropdownSelect},s("div",{class:"hub-new-content_dropdown-item"},s("div",{class:"hub-new-content_dropdown-item--left"},s("div",{class:"hub-new-content_dropdown-item-icon"},s("calcite-icon",{icon:this.getIcon(e),scale:"l"})),s("div",{class:"hub-new-content_dropdown-item-content"},s("div",{class:"hub-new-content_dropdown-item-title"},e.label||this.intl.t(`${e.key}.label`)),s("div",{class:"hub-new-content_dropdown-item-description"},e.description||this.intl.t(`${e.key}.description`))))))}renderResourceLinks(e){return s("calcite-dropdown-group",{class:{"hub-new-content_dropdown-group":!0,mobile:this.isMobile},"selection-mode":"none"},e.map(t=>this.renderResourceLink(t)))}renderResourceLink(e){return s("calcite-dropdown-item",{"data-value":e.key,href:e.href,key:e.label,onClick:this.handleResourceLinkClick},s("calcite-link",null,e.label))}renderFormHeader(){return s("div",{class:"new-content-modal__header"},s("div",{class:"new-content-modal__header-icon"},s("calcite-icon",{icon:this.getIcon(this.selectedEntity),scale:"l"})),s("h2",null,this.formTitle),s("span",null,this.formDescription))}renderForm(){var e;return s("arcgis-hub-entity-editor",{editorContext:this.editorContext,editorType:this.editorType,entity:(e=this.selectedEntity)===null||e===void 0?void 0:e.defaults,isOpen:this.isFormOpen,layout:"modal",modalTitle:this.formTitle,onArcgisHubEntityEditorSaved:this.handleEntityEditorSaved,onHubTelemetry:this.handleHubTelemetry},this.isFormModalOpen&&s(g,null,s("div",{slot:"form-start"},this.renderFormHeader())))}render(){let e="new-content";return this.selectedEntity&&(e=this.isFormOpen?`new-${this.selectedEntity.key}-modal`:`new-${this.selectedEntity.key}`),s(O,{key:"eb26eb6f9f6622fe72bc955a2455d00389a4e805","data-element":e},!!this.entityConfigs.length&&this.renderNewDropdownButton(this.entityConfigs,this.resourceLinks),this.isFormOpen&&this.renderForm(),this.isMobile&&this.renderMobileDropdown(this.entityConfigs,this.resourceLinks))}static get assetsDirs(){return["locales"]}get element(){return M(this)}};N.style=L;return{arcgis_hub_group_members_manager:T,arcgis_hub_new_content:N}},"config")
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.35/esri/copyright.txt for details.
|
|
3
|
+
v0.35.0 */
|
|
4
|
+
import{f as t}from"./Z3DSUVFJ.js";function f(r,e){if(r===e)return!0;if(r&&e&&t(r)&&t(e)){if(Array.isArray(r)!==Array.isArray(e))return!1;let s=Object.keys(r);return s.length!==Object.keys(e).length?!1:s.every(n=>f(r[n],e[n]))}return!1}export{f as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.35/esri/copyright.txt for details.
|
|
3
|
+
v0.35.0 */
|
|
4
|
+
import{o as c}from"./5CDOW2MQ.js";import{a as l}from"./NJS2QVGK.js";import{a as p}from"./5YEPEBCJ.js";import{c as u}from"./2K4QTOFM.js";function g(t){let e;switch(t.type){case"Hub Site Application":case"Site Application":e="site";break;case"Hub Page":case"Site Page":e="page";break;case"Hub Project":e="project";break;case"Hub Initiative":e="initiative";break;case"Discussion":e="discussion";break;case"Solution":e="template";break;case"Channel":e="channel";break;case"Group":e="group";break;case"Hub Initiative Template":e="initiativeTemplate";break;case"Event":e="event";break;case"User":e="user";break;default:["app","content","dataset","document","map","feedback"].includes(u(t.type||""))&&(e="content")}return e}var m=(t,e={queryParams:{},win:window})=>{let r=w(t);c("hub:feature:workspace:org",t).access||e.type==="user"||(r=h(t,e.win));let i="";e.type&&e.id&&(i=`${i}/${$(e.type)}/${e.id}`,e.pane&&(i=`${i}/${e.pane}`)),e.type==="user"&&e.id==="self"&&!e.pane&&(i="");let n=new URL(`${r}${i}`);l(e,"win.location.port","")!==""&&(n=new URL(f(n.pathname,"5173",n.origin)));let o=Object.assign({},e.queryParams);return e.uiVersion&&(o.uiVersion=e.uiVersion),Object.keys(o).length&&(n.search=new URLSearchParams(o).toString()),n.href},P=(t,e)=>{let r={type:g(t),id:t.id,win:window};return m(e,r)},w=t=>t.isPortal?`${t.portalUrl}/apps/sites/workspace`:`${t.hubHomeUrl}/workspace`,h=(t,e=window)=>t.isPortal?w(t):`${e.location.origin}/workspace`,U=(t,e=window)=>{if(t.isPortal){let r="home";return e.location.hash&&(r=e.location.hash.split("/")[1]),`${t.portalUrl}/apps/sites/#/${r}`}else{let r=e.location.origin;return l(e,"location.port","")!==""&&(r=f(r,"4200")),r.endsWith("/")&&(r=r.slice(0,-1)),r}};var L=(t,e)=>{if(!t.links||!t.links.layoutRelative||["User","Group"].includes(t.type))return;if(p(t.type,t.typeKeywords)){let{self:s,layoutRelative:i}=t.links;return`${s}${i}`}else return`${U(e)}${t.links.layoutRelative}`},E=t=>{let e;if(!t)return e;if(t.isPortal)e=`${t.portalUrl}/home/user.html`;else{let r=t.currentUser;if(!r)return e;let s=new URL(window.location.origin);s.pathname=`/people/${r.username}/profile`,e=s.toString()}return e},y=t=>{let e;return t?(t.isPortal?(e=new URL(window.location.href),e.hash="/home/overview"):(e=new URL(t.hubHomeUrl),e.pathname="/overview"),e.toString()):e},H=t=>{let e;return t?t.isPortal?b(t.portalUrl,!0):(e=new URL(t.hubHomeUrl),e.pathname="/workspace",e.toString()):e},O=t=>{var e,r;let s=g(t),i=s==="content"?s:`${s}s`,n=(s==="site"?(e=t.links)===null||e===void 0?void 0:e.self:(r=t.links)===null||r===void 0?void 0:r.siteRelative)||`/${i}/${t.id}`;return t.type==="Form"&&(n=`/feedback/surveys/${t.id}`),s==="user"&&(n=`/people/${t.id}/profile/settings`),n};var $=t=>t.slice(-1)==="s"||t==="content"?t:`${t}s`;var W=t=>{window.location.href=t},f=(t,e,r=window.location.origin)=>{let i=t.startsWith("/")&&r?new URL(t,r):new URL(t);return i.port=e,i.toString()},V=t=>!t.startsWith("/")&&!t.startsWith(window.location.origin),D=(t,e,r)=>{if(r?.isPortal){let s=t.replace(e,""),i=s.indexOf("#"),n=s.substring(0,i),a=s.substring(i,s.length).replace("#","");a.startsWith("/")&&(a=a.substring(1,a.length));let o=a.split("/")[0];return`${e}${n}#/${o}`}else return`${e}/`};var j=t=>{let e=t.toLowerCase().match(/(hub|opendata)(\w*)\.arcgis\.com/),[r,s,i]=e||[];return{hubDomain:r,isOpenData:s&&s==="opendata",envSuffix:i}};var b=(t,e=!1)=>{let r=`${t}/apps/sites`;return e?`${r}/workspace`:r};export{g as a,m as b,P as c,U as d,L as e,E as f,y as g,H as h,O as i,W as j,V as k,D as l,j as m};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.35/esri/copyright.txt for details.
|
|
3
|
+
v0.35.0 */
|
|
4
|
+
import{b as l}from"./RTE5OXT4.js";function r(t){if(typeof t=="string")return t.replace(/\/sharing\/rest\/?$/,"");if(typeof t=="object"){let o=t.portalSelf||t,{portalHostname:a,urlKey:s,customBaseUrl:n}=o;if(a||s&&n)return o.isPortal?`https://${o.portalHostname}`:`https://${o.urlKey}.${o.customBaseUrl}`}return r(l(t))}function m(t,e){return`${r(e)}/home/item.html?id=${t}`}export{r as a,m as b};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.35/esri/copyright.txt for details.
|
|
3
|
+
v0.35.0 */
|
|
4
|
+
import{e as u}from"./ZK4TMGQS.js";import{n as a}from"./5CDOW2MQ.js";import{k as r}from"./C2QVHVYK.js";async function P(m,l,c,p){let g=m.map(s=>u.fromJson(s,p)).map(async s=>{let i=[s.searchCollections(l,c).then(e=>({catalogTitle:s.title,collectionResults:e}))],f=a("targetEntity",s.collections).filter(r),n=s.availableScopes.filter(e=>!f.includes(e));if(n.length){let e=s.searchScopes(l,c,n).then(t=>({catalogTitle:`${s.title}`,scopeResults:t}));i.push(e)}return await Promise.all(i).then(e=>e.reduce((t,o)=>({catalogTitle:o.catalogTitle,collectionResults:Object.assign(Object.assign({},t.collectionResults),o.collectionResults),scopeResults:Object.assign(Object.assign({},t.scopeResults),o.scopeResults)}),{}))});return Promise.all(g)}export{P as a};
|