@esri/hub-web-components 0.32.2 → 0.33.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/2222IWQZ.js +4 -0
- package/dist/cdn/24CKY3KR.js +4 -0
- package/dist/cdn/24DJFTXH.js +4 -0
- package/dist/cdn/24MZFAYZ.js +4 -0
- package/dist/cdn/2ABOUFTE.js +4 -0
- package/dist/cdn/2ASEOKTZ.js +4 -0
- package/dist/cdn/2G4KXJC3.js +4 -0
- package/dist/cdn/2HNHZ347.js +4 -0
- package/dist/cdn/2HPFFLE5.js +4 -0
- package/dist/cdn/2JZCUBQC.js +4 -0
- package/dist/cdn/2KJPYFAS.js +4 -0
- package/dist/cdn/2NXURUWH.js +4 -0
- package/dist/cdn/2P3VN2XY.js +4 -0
- package/dist/cdn/2PF6JHNJ.js +4 -0
- package/dist/cdn/2QMTNXAC.js +4 -0
- package/dist/cdn/2RJAOZDH.js +4 -0
- package/dist/cdn/2SBUOJOC.js +4 -0
- package/dist/cdn/2U3C5KHA.js +4 -0
- package/dist/cdn/2UPNBRVZ.js +4 -0
- package/dist/cdn/2UX6OQMC.js +4 -0
- package/dist/cdn/2Z6MTHZ2.js +4 -0
- package/dist/cdn/2ZF6EXRC.js +4 -0
- package/dist/cdn/2ZMC7CTQ.js +4 -0
- package/dist/cdn/32RARPC4.js +4 -0
- package/dist/cdn/34GXMXXE.js +4 -0
- package/dist/cdn/37TGWWZV.js +4 -0
- package/dist/cdn/3BIRSSCL.js +4 -0
- package/dist/cdn/3CA7JIUP.js +4 -0
- package/dist/cdn/3DFPNIHI.js +4 -0
- package/dist/cdn/3EJIFUPQ.js +4 -0
- package/dist/cdn/3FVH6JBM.js +4 -0
- package/dist/cdn/3ISSSD4Z.js +4 -0
- package/dist/cdn/3RXBJ3TL.js +4 -0
- package/dist/cdn/3TWY36FY.js +4 -0
- package/dist/cdn/3UFJ36FS.js +4 -0
- package/dist/cdn/3UWJEREB.js +5 -0
- package/dist/cdn/3VRELZQ7.js +4 -0
- package/dist/cdn/3WYK765O.js +4 -0
- package/dist/cdn/44PLQCZB.js +4 -0
- package/dist/cdn/45VDHDTC.js +4 -0
- package/dist/cdn/46YBZZVZ.js +4 -0
- package/dist/cdn/4CFQBRT4.js +4 -0
- package/dist/cdn/4CUWL6LL.js +4 -0
- package/dist/cdn/4EWVQ7WU.js +4 -0
- package/dist/cdn/4HMDBYQC.js +4 -0
- package/dist/cdn/4JADQGTC.js +4 -0
- package/dist/cdn/4LUIKSAT.js +4 -0
- package/dist/cdn/4O7VU25D.js +4 -0
- package/dist/cdn/4OJA6TXI.js +4 -0
- package/dist/cdn/4UUOF5CQ.js +4 -0
- package/dist/cdn/4XV7T67H.js +4 -0
- package/dist/cdn/4YKVXAVN.js +4 -0
- package/dist/cdn/4Z35XVBB.js +4 -0
- package/dist/cdn/53PXTGYI.js +4 -0
- package/dist/cdn/55GVSLHV.js +4 -0
- package/dist/cdn/5ARGCC2G.js +4 -0
- package/dist/cdn/5C52HLO4.js +4 -0
- package/dist/cdn/5CQZZRUB.js +4 -0
- package/dist/cdn/5EWU44I6.js +4 -0
- package/dist/cdn/5EZONRGK.js +4 -0
- package/dist/cdn/5FBKVC24.js +4 -0
- package/dist/cdn/5GLVQDRT.js +4 -0
- package/dist/cdn/5IS53M6H.js +4 -0
- package/dist/cdn/5JACAK4Z.js +4 -0
- package/dist/cdn/5JIPBYMJ.js +4 -0
- package/dist/cdn/5JXBXYQU.js +4 -0
- package/dist/cdn/5KR6CMKO.js +4 -0
- package/dist/cdn/5LIGZBJR.js +4 -0
- package/dist/cdn/5ORTH2EK.js +4 -0
- package/dist/cdn/5PPXPIL5.js +4 -0
- package/dist/cdn/5SEBRF5O.js +4 -0
- package/dist/cdn/5SKWKZ6H.js +4 -0
- package/dist/cdn/5THG3SWZ.js +4 -0
- package/dist/cdn/5TTC5WXX.js +4 -0
- package/dist/cdn/5V5KJN62.js +4 -0
- package/dist/cdn/5ZGFGQZI.js +4 -0
- package/dist/cdn/5ZMF2IUQ.js +4 -0
- package/dist/cdn/62KQ6AVP.js +4 -0
- package/dist/cdn/66IVO22F.js +4 -0
- package/dist/cdn/6F4IN2U3.js +4 -0
- package/dist/cdn/6GI2YC5G.js +4 -0
- package/dist/cdn/6LPY3QE5.js +4 -0
- package/dist/cdn/6MM2VO2Y.js +4 -0
- package/dist/cdn/6RCBJDKF.js +4 -0
- package/dist/cdn/6SL7E2MS.js +4 -0
- package/dist/cdn/6TVNK76V.js +4 -0
- package/dist/cdn/6UMUHQTQ.js +4 -0
- package/dist/cdn/6YIPCO36.js +4 -0
- package/dist/cdn/72SHRSX4.js +4 -0
- package/dist/cdn/75NYYM6R.js +4 -0
- package/dist/cdn/76V36RIT.js +4 -0
- package/dist/cdn/7AC3MPF3.js +4 -0
- package/dist/cdn/7CPL4FEX.js +4 -0
- package/dist/cdn/7FDFJRUX.js +4 -0
- package/dist/cdn/7FZC7OIJ.js +4 -0
- package/dist/cdn/7H54ZLZJ.js +4 -0
- package/dist/cdn/7I3CDZNB.js +4 -0
- package/dist/cdn/7J5O5BPF.js +4 -0
- package/dist/cdn/7JZGZA6C.js +4 -0
- package/dist/cdn/7KDMJMLS.js +4 -0
- package/dist/cdn/7LY3ADGO.js +4 -0
- package/dist/cdn/7MJOMHPS.js +4 -0
- package/dist/cdn/7MQBU4TZ.js +4 -0
- package/dist/cdn/7O7FLDRZ.js +4 -0
- package/dist/cdn/7OSWH4B6.js +4 -0
- package/dist/cdn/7Q3OMTL2.js +4 -0
- package/dist/cdn/7XMFZWUZ.js +4 -0
- package/dist/cdn/7ZAVJLH7.js +4 -0
- package/dist/cdn/7ZPL6Z7K.js +4 -0
- package/dist/cdn/A2SRDEUV.js +4 -0
- package/dist/cdn/A33A4GGS.js +4 -0
- package/dist/cdn/A3U6YWUT.js +4 -0
- package/dist/cdn/A5LXEDSW.js +4 -0
- package/dist/cdn/A7DBY5HF.js +12 -0
- package/dist/cdn/AAEYEPB5.js +4 -0
- package/dist/cdn/AD5OFEWE.js +4 -0
- package/dist/cdn/ADALBJ7H.js +4 -0
- package/dist/cdn/ADSPVQ4U.js +4 -0
- package/dist/cdn/AFYI5THI.js +4 -0
- package/dist/cdn/AHD3LEWI.js +4 -0
- package/dist/cdn/AHGTFAZG.js +4 -0
- package/dist/cdn/ALG42WN2.js +4 -0
- package/dist/cdn/AMMVAVWS.js +4 -0
- package/dist/cdn/ANFEJ3UK.js +4 -0
- package/dist/cdn/APTYW655.js +4 -0
- package/dist/cdn/AQ64XLDR.js +4 -0
- package/dist/cdn/ARW65VBC.js +4 -0
- package/dist/cdn/AUDEH5XD.js +4 -0
- package/dist/cdn/AVZ7UCZV.js +4 -0
- package/dist/cdn/AX2A5GD6.js +4 -0
- package/dist/cdn/AY4NYYRC.js +4 -0
- package/dist/cdn/B3HRU3EH.js +4 -0
- package/dist/cdn/B6PMTVRZ.js +4 -0
- package/dist/cdn/B7L4AXTM.js +4 -0
- package/dist/cdn/BAVQTW5E.js +4 -0
- package/dist/cdn/BDB5HKJZ.js +4 -0
- package/dist/cdn/BDGTBN4D.js +51 -0
- package/dist/cdn/BES4PFZL.js +4 -0
- package/dist/cdn/BQ262USN.js +4 -0
- package/dist/cdn/BQJLF776.js +4 -0
- package/dist/cdn/BUEVP3OF.js +4 -0
- package/dist/cdn/BUVCVZKL.js +4 -0
- package/dist/cdn/BY2LVRTI.js +4 -0
- package/dist/cdn/C24CEZYW.js +4 -0
- package/dist/cdn/C5PWAGV4.js +4 -0
- package/dist/cdn/C6QQNKY3.js +4 -0
- package/dist/cdn/C7T5OSPR.js +24 -0
- package/dist/cdn/CCBF63RN.js +4 -0
- package/dist/cdn/CCSDSQXQ.js +4 -0
- package/dist/cdn/CCYADLEF.js +4 -0
- package/dist/cdn/CD7RMBJC.js +4 -0
- package/dist/cdn/CEXASRSZ.js +4 -0
- package/dist/cdn/CFLB2PH4.js +4 -0
- package/dist/cdn/CH6KEP47.js +4 -0
- package/dist/cdn/CIAT5YHO.js +4 -0
- package/dist/cdn/CIWK52EZ.js +4 -0
- package/dist/cdn/CJQRYMIL.js +4 -0
- package/dist/cdn/CMVZJI72.js +4 -0
- package/dist/cdn/CNECOX3L.js +4 -0
- package/dist/cdn/CPFXT4EJ.js +4 -0
- package/dist/cdn/CR357GGN.js +4 -0
- package/dist/cdn/CSOQUIZD.js +4 -0
- package/dist/cdn/CVOXRA4U.js +4 -0
- package/dist/cdn/CVQE2DUX.js +4 -0
- package/dist/cdn/CXBCU34Q.js +4 -0
- package/dist/cdn/CXNG6RAU.js +4 -0
- package/dist/cdn/CZQRVAVO.js +4 -0
- package/dist/cdn/D2LDDTUE.js +4 -0
- package/dist/cdn/D3ZAZFMF.js +4 -0
- package/dist/cdn/D7KWIP7T.js +4 -0
- package/dist/cdn/DA7U3X5N.js +4 -0
- package/dist/cdn/DBOXX6VW.js +4 -0
- package/dist/cdn/DCHGB66J.js +4 -0
- package/dist/cdn/DF5NREKQ.js +4 -0
- package/dist/cdn/DGGB46U6.js +4 -0
- package/dist/cdn/DJ2B6IQO.js +4 -0
- package/dist/cdn/DPEH3T73.js +4 -0
- package/dist/cdn/DPUM4DXX.js +4 -0
- package/dist/cdn/DQ6KZQ2C.js +4 -0
- package/dist/cdn/DRUPJNS3.js +4 -0
- package/dist/cdn/DRWS4VLW.js +4 -0
- package/dist/cdn/DU52DKH2.js +4 -0
- package/dist/cdn/DV2DTRB3.js +4 -0
- package/dist/cdn/DVIO5OP2.js +4 -0
- package/dist/cdn/DWUSOZCX.js +4 -0
- package/dist/cdn/DY6UE7SJ.js +4 -0
- package/dist/cdn/DYA4OSW3.js +4 -0
- package/dist/cdn/DYUBGKNC.js +4 -0
- package/dist/cdn/E257DY7V.js +4 -0
- package/dist/cdn/E3CKCZUE.js +4 -0
- package/dist/cdn/E6ZWSQRF.js +4 -0
- package/dist/cdn/E7PHTMMU.js +4 -0
- package/dist/cdn/EF5YPKIA.js +4 -0
- package/dist/cdn/EGHQAV33.js +4 -0
- package/dist/cdn/EGXYLPWZ.js +4 -0
- package/dist/cdn/EJSNW56G.js +4 -0
- package/dist/cdn/EMDVKWPL.js +4 -0
- package/dist/cdn/EO5RYTZJ.js +4 -0
- package/dist/cdn/EOXJFCK4.js +4 -0
- package/dist/cdn/ESAAOYLR.js +4 -0
- package/dist/cdn/ETGOPHZU.js +4 -0
- package/dist/cdn/EVOFS4BO.js +4 -0
- package/dist/cdn/EWBCYKAB.js +4 -0
- package/dist/cdn/EWHWNMU3.js +4 -0
- package/dist/cdn/F3UBFU3S.js +4 -0
- package/dist/cdn/FFRLDYJH.js +4 -0
- package/dist/cdn/FFUIJQCB.js +4 -0
- package/dist/cdn/FOTMRLI5.js +4 -0
- package/dist/cdn/FS4MELTM.js +4 -0
- package/dist/cdn/FTPS2LQ7.js +4 -0
- package/dist/cdn/FWW4Z27B.js +4 -0
- package/dist/cdn/FWXAEMOU.js +6 -0
- package/dist/cdn/FYKZ2U4M.js +4 -0
- package/dist/cdn/FYSDTDQB.js +4 -0
- package/dist/cdn/FYZZ6IAZ.js +8 -0
- package/dist/cdn/FZE3WNMN.js +4 -0
- package/dist/cdn/G2QWMMPX.js +4 -0
- package/dist/cdn/G2WKNXBK.js +4 -0
- package/dist/cdn/G5ASNBVA.js +4 -0
- package/dist/cdn/G5KPLE3A.js +4 -0
- package/dist/cdn/G5MPYRWI.js +4 -0
- package/dist/cdn/G6ZMP3TS.js +4 -0
- package/dist/cdn/G6ZUKCLV.js +4 -0
- package/dist/cdn/G7YUD7VJ.js +4 -0
- package/dist/cdn/GID6A42M.js +4 -0
- package/dist/cdn/GJ7KAFMP.js +4 -0
- package/dist/cdn/GMXQ6EUT.js +4 -0
- package/dist/cdn/GP65D4B5.js +4 -0
- package/dist/cdn/GPODM7TC.js +4 -0
- package/dist/cdn/GQCIC2LK.js +4 -0
- package/dist/cdn/GSHX2GPS.js +4 -0
- package/dist/cdn/GSQCM4H3.js +4 -0
- package/dist/cdn/GSYQU6PH.js +4 -0
- package/dist/cdn/GTQ6UCQH.js +4 -0
- package/dist/cdn/GV64QRG7.js +4 -0
- package/dist/cdn/GW5IJKQD.js +4 -0
- package/dist/cdn/GXINO3U2.js +4 -0
- package/dist/cdn/GXRIZGO4.js +4 -0
- package/dist/cdn/H3J5UZAH.js +4 -0
- package/dist/cdn/H4GIOQ4A.js +4 -0
- package/dist/cdn/H7G3ZYTP.js +4 -0
- package/dist/cdn/H7V2UDD6.js +4 -0
- package/dist/cdn/HB32KL4E.js +4 -0
- package/dist/cdn/HCSTRAEQ.js +4 -0
- package/dist/cdn/HEGO2H4U.js +4 -0
- package/dist/cdn/HEWXZ7CP.js +5 -0
- package/dist/cdn/HGDUPFVL.js +4 -0
- package/dist/cdn/HGYBXROP.js +8 -0
- package/dist/cdn/HH2BF7CP.js +4 -0
- package/dist/cdn/HO56JIR4.js +4 -0
- package/dist/cdn/HUIES2KS.js +4 -0
- package/dist/cdn/HUPLRH7B.js +4 -0
- package/dist/cdn/HUY3Z2KF.js +4 -0
- package/dist/cdn/HVPUYFAJ.js +4 -0
- package/dist/cdn/HXF4ARQB.js +4 -0
- package/dist/cdn/I3WGG6LW.js +4 -0
- package/dist/cdn/I4VHFMIN.js +4 -0
- package/dist/cdn/I7LHG3EK.js +4 -0
- package/dist/cdn/IAAXCWWR.js +4 -0
- package/dist/cdn/IASA5KNI.js +4 -0
- package/dist/cdn/IAUTHUNN.js +4 -0
- package/dist/cdn/IB55ZHFQ.js +4 -0
- package/dist/cdn/IBDFWGKQ.js +4 -0
- package/dist/cdn/IC4BVF5E.js +4 -0
- package/dist/cdn/IIVQ2ESK.js +4 -0
- package/dist/cdn/IKTSIIUR.js +4 -0
- package/dist/cdn/ILLXA4SZ.js +4 -0
- package/dist/cdn/IMFWWSHT.js +4 -0
- package/dist/cdn/IOO55R4R.js +4 -0
- package/dist/cdn/IRNXTTN3.js +4 -0
- package/dist/cdn/ISTUWIG2.js +5 -0
- package/dist/cdn/IW6E5NCD.js +4 -0
- package/dist/cdn/IWW7JM66.js +4 -0
- package/dist/cdn/IWWKRCY6.js +4 -0
- package/dist/cdn/IXJAQSJ3.js +59 -0
- package/dist/cdn/IXNL54DO.js +4 -0
- package/dist/cdn/IXTZ4OT5.js +4 -0
- package/dist/cdn/IYICIO4K.js +4 -0
- package/dist/cdn/IZNWARBX.js +4 -0
- package/dist/cdn/J33L5FJN.js +4 -0
- package/dist/cdn/J6DJ2PEX.js +4 -0
- package/dist/cdn/J6RY5ZQ5.js +4 -0
- package/dist/cdn/JBFFOYXM.js +4 -0
- package/dist/cdn/JC7WCGLM.js +4 -0
- package/dist/cdn/JDCWQCLV.js +4 -0
- package/dist/cdn/JFB2L4CB.js +4 -0
- package/dist/cdn/JFCWU6TZ.js +4 -0
- package/dist/cdn/JFW6QGPG.js +4 -0
- package/dist/cdn/JJUHHDQA.js +4 -0
- package/dist/cdn/JKA4EVFW.js +4 -0
- package/dist/cdn/JLLMBKOZ.js +4 -0
- package/dist/cdn/JLZXPVXZ.js +4 -0
- package/dist/cdn/JN6RCJGA.js +4 -0
- package/dist/cdn/JNOLIF34.js +4 -0
- package/dist/cdn/JNYDMAVA.js +4 -0
- package/dist/cdn/JOGEIHPU.js +4 -0
- package/dist/cdn/JOXKPSU6.js +4 -0
- package/dist/cdn/JQ6VZCTL.js +4 -0
- package/dist/cdn/JQQJRKYN.js +4 -0
- package/dist/cdn/JR3CRUVZ.js +4 -0
- package/dist/cdn/JRIULXD6.js +4 -0
- package/dist/cdn/JUUH6EIV.js +4 -0
- package/dist/cdn/JVXD3UNP.js +4 -0
- package/dist/cdn/JZA7WYDW.js +4 -0
- package/dist/cdn/JZKWOB5P.js +4 -0
- package/dist/cdn/K27DARJJ.js +4 -0
- package/dist/cdn/KAP6VF57.js +4 -0
- package/dist/cdn/KAX7QUJH.js +4 -0
- package/dist/cdn/KBAOWCYZ.js +9 -0
- package/dist/cdn/KBN2HMXV.js +4 -0
- package/dist/cdn/KCOWBOJZ.js +4 -0
- package/dist/cdn/KEJN2M66.js +4 -0
- package/dist/cdn/KFLGV22J.js +41 -0
- package/dist/cdn/KFYAZR7U.js +4 -0
- package/dist/cdn/KHV5L7ZU.js +4 -0
- package/dist/cdn/KIDV5L7F.js +4 -0
- package/dist/cdn/KKXNIQLD.js +4 -0
- package/dist/cdn/KMPS6JPN.js +4 -0
- package/dist/cdn/KQVSL5VD.js +4 -0
- package/dist/cdn/KSVQLPXQ.js +4 -0
- package/dist/cdn/KUL6DBRJ.js +4 -0
- package/dist/cdn/KVIS4AC7.js +4 -0
- package/dist/cdn/KVNUYD4T.js +4 -0
- package/dist/cdn/KXHXZ4GG.js +4 -0
- package/dist/cdn/KZSNAYBY.js +4 -0
- package/dist/cdn/L25Z4UM5.js +4 -0
- package/dist/cdn/L2ZBF5UI.js +4 -0
- package/dist/cdn/L5A64EML.js +4 -0
- package/dist/cdn/L6C3C6M4.js +4 -0
- package/dist/cdn/L77IR6FU.js +4 -0
- package/dist/cdn/L7N7F4JY.js +4 -0
- package/dist/cdn/L7UNMCEN.js +4 -0
- package/dist/cdn/LAE3LGF5.js +4 -0
- package/dist/cdn/LBNWFVMK.js +4 -0
- package/dist/cdn/LBUN4QJA.js +4 -0
- package/dist/cdn/LCDDQGPK.js +4 -0
- package/dist/cdn/LCQTX46N.js +4 -0
- package/dist/cdn/LDGPBV5C.js +4 -0
- package/dist/cdn/LDMOCMP7.js +4 -0
- package/dist/cdn/LFDAONUO.js +4 -0
- package/dist/cdn/LIEB4VT5.js +52 -0
- package/dist/cdn/LJLQAXUG.js +4 -0
- package/dist/cdn/LMXLWGMJ.js +4 -0
- package/dist/cdn/LMZRMKHH.js +4 -0
- package/dist/cdn/LNZKICDM.js +4 -0
- package/dist/cdn/LPKLXGOT.js +4 -0
- package/dist/cdn/LQNB7I2L.js +4 -0
- package/dist/cdn/LV2MIKHY.js +4 -0
- package/dist/cdn/LXOYF2KI.js +4 -0
- package/dist/cdn/M2R7ZGHA.js +4 -0
- package/dist/cdn/M4U6EHZD.js +4 -0
- package/dist/cdn/M56PQ5HQ.js +4 -0
- package/dist/cdn/M6BQ47P7.js +4 -0
- package/dist/cdn/M6HDTWX4.js +4 -0
- package/dist/cdn/M6JKQ3GS.js +4 -0
- package/dist/cdn/M6PW7V3R.js +4 -0
- package/dist/cdn/M6QBMNBF.js +4 -0
- package/dist/cdn/M6RJTXEE.js +4 -0
- package/dist/cdn/MAMMJW6U.js +4 -0
- package/dist/cdn/MCUN6SSS.js +4 -0
- package/dist/cdn/MEDU4CX6.js +4 -0
- package/dist/cdn/MEPSPXCU.js +4 -0
- package/dist/cdn/MGQN4LFZ.js +4 -0
- package/dist/cdn/MIETKVY4.js +4 -0
- package/dist/cdn/MIVDUEQ3.js +4 -0
- package/dist/cdn/MKGI4JCQ.js +4 -0
- package/dist/cdn/ML2RA6MJ.js +4 -0
- package/dist/cdn/MM5AOQXY.js +4 -0
- package/dist/cdn/MNHCCXWK.js +4 -0
- package/dist/cdn/MNKO7AWT.js +4 -0
- package/dist/cdn/MOFLQW7U.js +4 -0
- package/dist/cdn/MQ3GMRRJ.js +4 -0
- package/dist/cdn/MRX3LXZI.js +4 -0
- package/dist/cdn/MUBKRH2O.js +4 -0
- package/dist/cdn/MYUI7IHG.js +4 -0
- package/dist/cdn/MZ4WLYSF.js +4 -0
- package/dist/cdn/N2277UEP.js +4 -0
- package/dist/cdn/N25BJSH7.js +4 -0
- package/dist/cdn/N2N6ORQN.js +4 -0
- package/dist/cdn/N3GPG6LZ.js +4 -0
- package/dist/cdn/N4VY3QFG.js +4 -0
- package/dist/cdn/N4WVHFE5.js +4 -0
- package/dist/cdn/NALO2RKC.js +4 -0
- package/dist/cdn/NAMKKSUY.js +4 -0
- package/dist/cdn/NCLYUEEL.js +4 -0
- package/dist/cdn/NJEOU3OG.js +4 -0
- package/dist/cdn/NJORPQ5D.js +4 -0
- package/dist/cdn/NKSZNWF7.js +4 -0
- package/dist/cdn/NLLG6GSS.js +4 -0
- package/dist/cdn/NNFZRFL4.js +4 -0
- package/dist/cdn/NPXC46J2.js +4 -0
- package/dist/cdn/NS555GFD.js +4 -0
- package/dist/cdn/NS7L2HU7.js +4 -0
- package/dist/cdn/NT3HRWGO.js +4 -0
- package/dist/cdn/NUOVA4II.js +4 -0
- package/dist/cdn/NVENM6PV.js +4 -0
- package/dist/cdn/O46KGBSN.js +4 -0
- package/dist/cdn/O5USVIGX.js +4 -0
- package/dist/cdn/O7F2PZE2.js +4 -0
- package/dist/cdn/O7KPMQ5W.js +4 -0
- package/dist/cdn/O7RANWQA.js +4 -0
- package/dist/cdn/OAEY2HWT.js +4 -0
- package/dist/cdn/OFXSEJXE.js +4 -0
- package/dist/cdn/ONSXFRPG.js +4 -0
- package/dist/cdn/OOPEBVDA.js +4 -0
- package/dist/cdn/OOQ3SRJW.js +4 -0
- package/dist/cdn/OPEHEYK2.js +4 -0
- package/dist/cdn/OQES3ZVC.js +6 -0
- package/dist/cdn/OQG2FUQB.js +4 -0
- package/dist/cdn/OQS6WYQA.js +12 -0
- package/dist/cdn/OR6VZEFD.js +4 -0
- package/dist/cdn/OR73LT6N.js +4 -0
- package/dist/cdn/OSWWUXSW.js +4 -0
- package/dist/cdn/OVFYAGC5.js +4 -0
- package/dist/cdn/OWUJPHM4.js +4 -0
- package/dist/cdn/OYG7X3RZ.js +4 -0
- package/dist/cdn/OZFUYIWM.js +4 -0
- package/dist/cdn/P4GP2JZS.js +4 -0
- package/dist/cdn/P4S5YSGG.js +4 -0
- package/dist/cdn/P4SMEHJC.js +4 -0
- package/dist/cdn/P4WCMBKO.js +4 -0
- package/dist/cdn/P5B7VRPC.js +4 -0
- package/dist/cdn/P5M5YXH3.js +4 -0
- package/dist/cdn/PAPFK4X3.js +4 -0
- package/dist/cdn/PBOEVOBT.js +4 -0
- package/dist/cdn/PDE6L4CY.js +4 -0
- package/dist/cdn/PDT5GEBF.js +4 -0
- package/dist/cdn/PEOL7O66.js +4 -0
- package/dist/cdn/PIERXYXF.js +4 -0
- package/dist/cdn/PIHBUTVZ.js +4 -0
- package/dist/cdn/PIL5MM7A.js +4 -0
- package/dist/cdn/PJ2GFTOH.js +4 -0
- package/dist/cdn/PJPYIB7S.js +4 -0
- package/dist/cdn/PK5UOXNJ.js +4 -0
- package/dist/cdn/PKEWUQVF.js +4 -0
- package/dist/cdn/PKQLRBGS.js +4 -0
- package/dist/cdn/PLD7PQEM.js +59 -0
- package/dist/cdn/PNGUEB2F.js +4 -0
- package/dist/cdn/PPQSKWUA.js +4 -0
- package/dist/cdn/PQFGQTKB.js +4 -0
- package/dist/cdn/PQHRBVD2.js +4 -0
- package/dist/cdn/PRAT5I2C.js +4 -0
- package/dist/cdn/PRIFZRCS.js +4 -0
- package/dist/cdn/PS5VHOFZ.js +4 -0
- package/dist/cdn/PV5KW33Q.js +4 -0
- package/dist/cdn/PWXMAZSC.js +4 -0
- package/dist/cdn/PZ3XZDPS.js +4 -0
- package/dist/cdn/Q4EY7C7A.js +4 -0
- package/dist/cdn/Q6I5M4IX.js +4 -0
- package/dist/cdn/Q6JLU7Q5.js +4 -0
- package/dist/cdn/QDQ53SCU.js +4 -0
- package/dist/cdn/QDTOBCGK.js +4 -0
- package/dist/cdn/QGMOPOXY.js +4 -0
- package/dist/cdn/QIBUYHHL.js +4 -0
- package/dist/cdn/QITKEE5Y.js +4 -0
- package/dist/cdn/QMNIVX3M.js +4 -0
- package/dist/cdn/QN4JTYSC.js +4 -0
- package/dist/cdn/QNI3VTCO.js +4 -0
- package/dist/cdn/QP5I7PDN.js +4 -0
- package/dist/cdn/QPPYM4M5.js +4 -0
- package/dist/cdn/QQOU7E6Z.js +4 -0
- package/dist/cdn/QRKUDMLW.js +4 -0
- package/dist/cdn/QTN6CCFL.js +4 -0
- package/dist/cdn/QWKHMHQX.js +4 -0
- package/dist/cdn/QZGURRDM.js +4 -0
- package/dist/cdn/QZNGEPQO.js +5 -0
- package/dist/cdn/QZYCDIMW.js +4 -0
- package/dist/cdn/R2LG5GVA.js +5470 -0
- package/dist/cdn/R3WG7ILK.js +4 -0
- package/dist/cdn/R4HFOCOZ.js +4 -0
- package/dist/cdn/R6SBXMDI.js +4 -0
- package/dist/cdn/R7XTMYYQ.js +4 -0
- package/dist/cdn/RCBNRSQS.js +4 -0
- package/dist/cdn/RCJ5YMTJ.js +4 -0
- package/dist/cdn/RCX3QSR4.js +4 -0
- package/dist/cdn/RE5B2TEQ.js +4 -0
- package/dist/cdn/REMBFBTC.js +4 -0
- package/dist/cdn/RG7KXWSQ.js +4 -0
- package/dist/cdn/RHE6OVVZ.js +4 -0
- package/dist/cdn/RIF5TVMB.js +4 -0
- package/dist/cdn/RJFLR3QJ.js +4 -0
- package/dist/cdn/RMOXDZWY.js +4 -0
- package/dist/cdn/RMP2BLLY.js +4 -0
- package/dist/cdn/RQLNVGHD.js +4 -0
- package/dist/cdn/RTJUPJCS.js +4 -0
- package/dist/cdn/RTM5R7W4.js +4 -0
- package/dist/cdn/RTMZ2YK2.js +4 -0
- package/dist/cdn/RVYGILUP.js +4 -0
- package/dist/cdn/RXBLJNR3.js +4 -0
- package/dist/cdn/RXMLDW6O.js +4 -0
- package/dist/cdn/RYUSWBGP.js +4 -0
- package/dist/cdn/RZOQHXUV.js +4 -0
- package/dist/cdn/S2TNJJ2N.js +4 -0
- package/dist/cdn/SB4GMDGB.js +4 -0
- package/dist/cdn/SCU7FUYR.js +4 -0
- package/dist/cdn/SDBGS5ZN.js +5 -0
- package/dist/cdn/SIBFD3IR.js +4 -0
- package/dist/cdn/SIGAUJVJ.js +4 -0
- package/dist/cdn/SKDDEVAO.js +4 -0
- package/dist/cdn/SOP3BMJV.js +4 -0
- package/dist/cdn/SPQCKR4R.js +4 -0
- package/dist/cdn/SPUUEAHK.js +4 -0
- package/dist/cdn/SRL3AQNN.js +4 -0
- package/dist/cdn/SROO5Y2V.js +4 -0
- package/dist/cdn/SWCXAAYF.js +4 -0
- package/dist/cdn/SYQOZRNG.js +4 -0
- package/dist/cdn/T2UVKC3C.js +4 -0
- package/dist/cdn/T7CSGW4A.js +4 -0
- package/dist/cdn/T7EBUOCX.js +4 -0
- package/dist/cdn/T7ZCAQII.js +4 -0
- package/dist/cdn/TCLLKYNN.js +4 -0
- package/dist/cdn/TEG2T23Z.js +4 -0
- package/dist/cdn/THHDA6JZ.js +4 -0
- package/dist/cdn/THYRTLJC.js +4 -0
- package/dist/cdn/TIGQYOLJ.js +25 -0
- package/dist/cdn/TKCEQM2W.js +4 -0
- package/dist/cdn/TLKXCWGZ.js +4 -0
- package/dist/cdn/TLS3X7XW.js +4 -0
- package/dist/cdn/TORDYTA7.js +4 -0
- package/dist/cdn/TQBAI2M3.js +4 -0
- package/dist/cdn/TRCVKMP4.js +4 -0
- package/dist/cdn/TS5CRYFT.js +4 -0
- package/dist/cdn/TTBYQSZP.js +4 -0
- package/dist/cdn/TUC3KCCT.js +4 -0
- package/dist/cdn/TUNEJIAY.js +4 -0
- package/dist/cdn/TVKPGIUL.js +4 -0
- package/dist/cdn/TYKP6PBG.js +4 -0
- package/dist/cdn/U464OJ6H.js +4 -0
- package/dist/cdn/U75IAGXN.js +4 -0
- package/dist/cdn/UAMLDYQX.js +4 -0
- package/dist/cdn/UCQ3IOL4.js +4 -0
- package/dist/cdn/UD5EQKT6.js +4 -0
- package/dist/cdn/UHGOI4Q6.js +4 -0
- package/dist/cdn/ULWHPFPO.js +4 -0
- package/dist/cdn/UPDLMFW3.js +4 -0
- package/dist/cdn/UPULQ36W.js +4 -0
- package/dist/cdn/UQ46TJGH.js +4 -0
- package/dist/cdn/UQ4A7KUP.js +4 -0
- package/dist/cdn/US6CKHEL.js +4 -0
- package/dist/cdn/UUJ4JQN5.js +4 -0
- package/dist/cdn/UVL36MNC.js +4 -0
- package/dist/cdn/UVLF3BNC.js +4 -0
- package/dist/cdn/UWWX4HWB.js +4 -0
- package/dist/cdn/UXAQSWN7.js +4 -0
- package/dist/cdn/UYHF2YCD.js +4 -0
- package/dist/cdn/V2V36OEV.js +4 -0
- package/dist/cdn/V4NWSZPY.js +4 -0
- package/dist/cdn/V55QH5DL.js +4 -0
- package/dist/cdn/VA5NOPQ2.js +4 -0
- package/dist/cdn/VALSLUWF.js +4 -0
- package/dist/cdn/VAX3A322.js +4 -0
- package/dist/cdn/VG3KQDS5.js +4 -0
- package/dist/cdn/VGMJD4VQ.js +4 -0
- package/dist/cdn/VHNZDOHH.js +4 -0
- package/dist/cdn/VJNNBWAK.js +4 -0
- package/dist/cdn/VMLOGAKK.js +4 -0
- package/dist/cdn/VN5DHRZ6.js +4 -0
- package/dist/cdn/VR3YLYWR.js +4 -0
- package/dist/cdn/VRA66I7U.js +4 -0
- package/dist/cdn/VVQ7NPW7.js +4 -0
- package/dist/cdn/VXTGYTK6.js +4 -0
- package/dist/cdn/VY7LRQID.js +4 -0
- package/dist/cdn/VYHKH5E4.js +4 -0
- package/dist/cdn/W24YWADS.js +4 -0
- package/dist/cdn/W26U7DKB.js +4 -0
- package/dist/cdn/W6NC2I4K.js +4 -0
- package/dist/cdn/WBF2YCLV.js +4 -0
- package/dist/cdn/WBR3VAM7.js +4 -0
- package/dist/cdn/WGRY3RX7.js +4 -0
- package/dist/cdn/WHFAY47W.js +4 -0
- package/dist/cdn/WICSNHGP.js +4 -0
- package/dist/cdn/WIHMRX55.js +4 -0
- package/dist/cdn/WJH54PVZ.js +4 -0
- package/dist/cdn/WKLJ3L24.js +4 -0
- package/dist/cdn/WL22UPVW.js +4 -0
- package/dist/cdn/WMK5XGNL.js +4 -0
- package/dist/cdn/WMVI62EB.js +4 -0
- package/dist/cdn/WMXKPESN.js +4 -0
- package/dist/cdn/WNUBCLAU.js +4 -0
- package/dist/cdn/WTXM6M24.js +4 -0
- package/dist/cdn/WUIMFIU6.js +4 -0
- package/dist/cdn/WUIQPCAN.js +4 -0
- package/dist/cdn/WVYDG7UV.js +4 -0
- package/dist/cdn/WXCERMZF.js +4 -0
- package/dist/cdn/X2FHZG2W.js +6 -0
- package/dist/cdn/X3QNDP23.js +4 -0
- package/dist/cdn/X4AXHFCF.js +4 -0
- package/dist/cdn/X6HHQX7O.js +4 -0
- package/dist/cdn/XA7JUSCR.js +4 -0
- package/dist/cdn/XCANRQIY.js +4 -0
- package/dist/cdn/XCNUESUX.js +4 -0
- package/dist/cdn/XDZXXQVH.js +4 -0
- package/dist/cdn/XFXEC74F.js +4 -0
- package/dist/cdn/XHLP6IEH.js +4 -0
- package/dist/cdn/XIYWMBQ6.js +4 -0
- package/dist/cdn/XK7PINZA.js +4 -0
- package/dist/cdn/XMNF3Y77.js +4 -0
- package/dist/cdn/XN5XRR5U.js +4 -0
- package/dist/cdn/XOFQXAWQ.js +4 -0
- package/dist/cdn/XOOXHD6Z.js +16 -0
- package/dist/cdn/XPS5VL3A.js +4 -0
- package/dist/cdn/XSKSTG4I.js +4 -0
- package/dist/cdn/XTTFCE4U.js +4 -0
- package/dist/cdn/XTVAVXWM.js +4 -0
- package/dist/cdn/XURGVVLU.js +4 -0
- package/dist/cdn/XV642GUL.js +4 -0
- package/dist/cdn/XWP3C4HC.js +4 -0
- package/dist/cdn/XX5UJUCL.js +5 -0
- package/dist/cdn/XX6OAWWE.js +4 -0
- package/dist/cdn/Y3GRDOVB.js +4 -0
- package/dist/cdn/Y4I7GDRI.js +4 -0
- package/dist/cdn/Y4QHUAWU.js +4 -0
- package/dist/cdn/Y4S3Q3Y5.js +4 -0
- package/dist/cdn/Y5G3PCJN.js +4 -0
- package/dist/cdn/Y6CHT37U.js +4 -0
- package/dist/cdn/Y7F57F6X.js +4 -0
- package/dist/cdn/YBQLSHOC.js +4 -0
- package/dist/cdn/YBRX53J2.js +4 -0
- package/dist/cdn/YD2LPZVC.js +4 -0
- package/dist/cdn/YDYVIUTI.js +4 -0
- package/dist/cdn/YIUICDYJ.js +4 -0
- package/dist/cdn/YJ7E6IMV.js +4 -0
- package/dist/cdn/YJZFTILW.js +4 -0
- package/dist/cdn/YOZT6OLB.js +4 -0
- package/dist/cdn/YQMNADTY.js +4 -0
- package/dist/cdn/YR3O4TP6.js +4 -0
- package/dist/cdn/YRAMYN23.js +4 -0
- package/dist/cdn/YSXDXQSN.js +4 -0
- package/dist/cdn/YT4NPF2I.js +4 -0
- package/dist/cdn/YT5AABHA.js +4 -0
- package/dist/cdn/YTQ3ADCH.js +4 -0
- package/dist/cdn/YVG5KO7T.js +4 -0
- package/dist/cdn/YVI36CVJ.js +4 -0
- package/dist/cdn/YVSH74BM.js +4 -0
- package/dist/cdn/YXFHWQLS.js +4 -0
- package/dist/cdn/YXHB42SX.js +4 -0
- package/dist/cdn/YYS7XUNE.js +4 -0
- package/dist/cdn/YZOKDBD6.js +4 -0
- package/dist/cdn/Z2X5R3OI.js +4 -0
- package/dist/cdn/Z5ZM6OHE.js +4 -0
- package/dist/cdn/Z63X2PFB.js +4 -0
- package/dist/cdn/Z6LYBSRJ.js +4 -0
- package/dist/cdn/ZDBT6LVT.js +4 -0
- package/dist/cdn/ZEMNOPAU.js +11 -0
- package/dist/cdn/ZIOWU76R.js +4 -0
- package/dist/cdn/ZMGAMZKN.js +4 -0
- package/dist/cdn/ZMJ4TI6X.js +4 -0
- package/dist/cdn/ZMK2B4ND.js +4 -0
- package/dist/cdn/ZNDCJY6E.js +4 -0
- package/dist/cdn/ZNPGT2SG.js +4 -0
- package/dist/cdn/ZQMTMDQA.js +4 -0
- package/dist/cdn/ZRR3KGF7.js +4 -0
- package/dist/cdn/ZTL35VCY.js +4 -0
- package/dist/cdn/ZTYUFUR3.js +4 -0
- package/dist/cdn/ZVQY44YD.js +4 -0
- package/dist/cdn/ZY4UYJ3G.js +4 -0
- package/dist/cdn/ZYFKKVNC.js +4 -0
- package/dist/cdn/assets/layout-container/t9n/messages.en.json +1 -1
- 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 +4 -5
- 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 +41 -126
- 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 +2 -2
- package/dist/components/arcgis-chat-ui/functional/chat-action/customElement.js +2 -2
- package/dist/components/arcgis-chat-ui/functional/chat-response/customElement.js +43 -27
- package/dist/components/arcgis-hub-ai-assistant/customElement.d.ts +6 -0
- package/dist/components/arcgis-hub-ai-assistant/customElement.js +36 -33
- package/dist/components/arcgis-hub-ai-assistant/util/framework.d.ts +1 -0
- package/dist/components/arcgis-hub-ai-assistant/util/types.d.ts +1 -0
- 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 +48 -46
- 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 +30 -1
- package/dist/docs/docs.json +23 -1
- package/dist/docs/vscode.html-custom-data.json +5 -0
- package/dist/docs/web-types.json +14 -1
- package/dist/embed-config.js +2 -2
- package/dist/index.js +2 -2
- package/dist/loader.js +3 -3
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +2 -3
- package/dist/cdn/23XWDPK4.js +0 -4
- package/dist/cdn/27KDCN5U.js +0 -4
- package/dist/cdn/2CQQJKXU.js +0 -4
- package/dist/cdn/2CYZTGXM.js +0 -4
- package/dist/cdn/2F6PVVOP.js +0 -4
- package/dist/cdn/2GZOTYXK.js +0 -4
- package/dist/cdn/2HAYMGYC.js +0 -4
- package/dist/cdn/2I2XRKZ5.js +0 -4
- package/dist/cdn/2LKLR573.js +0 -4
- package/dist/cdn/2NHSOGQB.js +0 -4
- package/dist/cdn/2OKQ6BLU.js +0 -4
- package/dist/cdn/2QPU7XUT.js +0 -4
- package/dist/cdn/2QQGVT3J.js +0 -5
- package/dist/cdn/2RMQLAQJ.js +0 -4
- package/dist/cdn/2ZTJHITH.js +0 -4
- package/dist/cdn/327UUWS5.js +0 -4
- package/dist/cdn/34R2ZMFF.js +0 -4
- package/dist/cdn/377WZC66.js +0 -4
- package/dist/cdn/3A7J5HQ7.js +0 -4
- package/dist/cdn/3EFA2VO4.js +0 -4
- package/dist/cdn/3H2FOLDY.js +0 -4
- package/dist/cdn/3KXECBQG.js +0 -4
- package/dist/cdn/3LOP5RUG.js +0 -4
- package/dist/cdn/3NECY2LT.js +0 -4
- package/dist/cdn/3NGKHZMR.js +0 -4
- package/dist/cdn/3O5E4DN5.js +0 -4
- package/dist/cdn/3PIEJ42Q.js +0 -4
- package/dist/cdn/3SBDYK5X.js +0 -4
- package/dist/cdn/3SVTJL4A.js +0 -52
- package/dist/cdn/3TIPC4VW.js +0 -4
- package/dist/cdn/3VBJ6Q4P.js +0 -4
- package/dist/cdn/3VUD6CFD.js +0 -4
- package/dist/cdn/3W4Y4GKE.js +0 -4
- package/dist/cdn/43ZMSR7Y.js +0 -4
- package/dist/cdn/4BYWJM5M.js +0 -4
- package/dist/cdn/4CT6JXBR.js +0 -4
- package/dist/cdn/4EHJDEB7.js +0 -4
- package/dist/cdn/4FAN6ISR.js +0 -4
- package/dist/cdn/4FMEOT4K.js +0 -4
- package/dist/cdn/4HKRH4ZE.js +0 -4
- package/dist/cdn/4I6HKASO.js +0 -6
- package/dist/cdn/4ICTKLYH.js +0 -4
- package/dist/cdn/4IZR4QQQ.js +0 -4
- package/dist/cdn/4KYGAE6X.js +0 -4
- package/dist/cdn/4MBOBQJP.js +0 -4
- package/dist/cdn/4NJPVJOB.js +0 -4
- package/dist/cdn/4OGJ3VCQ.js +0 -4
- package/dist/cdn/4QACFKA6.js +0 -4
- package/dist/cdn/4QPU3MIO.js +0 -4
- package/dist/cdn/4RXMKBIY.js +0 -4
- package/dist/cdn/4SWGIAH7.js +0 -4
- package/dist/cdn/4UH3KQNE.js +0 -4
- package/dist/cdn/4VGHRRJ4.js +0 -4
- package/dist/cdn/4ZGSSI5T.js +0 -4
- package/dist/cdn/4ZL3UCVW.js +0 -4
- package/dist/cdn/544TXLOO.js +0 -4
- package/dist/cdn/577VYQZA.js +0 -4
- package/dist/cdn/5AF6L7VH.js +0 -4
- package/dist/cdn/5CZNXHWB.js +0 -4
- package/dist/cdn/5FUDM7W2.js +0 -4
- package/dist/cdn/5GHZH2SJ.js +0 -4
- package/dist/cdn/5GISWZLR.js +0 -4
- package/dist/cdn/5HL7N6S3.js +0 -4
- package/dist/cdn/5J6RVEDS.js +0 -4
- package/dist/cdn/5KORXT7P.js +0 -4
- package/dist/cdn/5NTU3TKH.js +0 -4
- package/dist/cdn/5OKIAJ3O.js +0 -4
- package/dist/cdn/5ONJIXUA.js +0 -4
- package/dist/cdn/5OUKNC5U.js +0 -4
- package/dist/cdn/5PLMSYR4.js +0 -4
- package/dist/cdn/5PNAFCSN.js +0 -4
- package/dist/cdn/5SOLQGF6.js +0 -4
- package/dist/cdn/5SR4EYA4.js +0 -4
- package/dist/cdn/5TCWEK2X.js +0 -4
- package/dist/cdn/5U7LLLHH.js +0 -4
- package/dist/cdn/623VYKXU.js +0 -4
- package/dist/cdn/62M5ASHJ.js +0 -4
- package/dist/cdn/64PZA474.js +0 -4
- package/dist/cdn/656TMIOD.js +0 -4
- package/dist/cdn/65KNZZAM.js +0 -4
- package/dist/cdn/6AQQLEOG.js +0 -4
- package/dist/cdn/6B7H2QXV.js +0 -4
- package/dist/cdn/6BELD4M4.js +0 -4
- package/dist/cdn/6BW2QSJF.js +0 -4
- package/dist/cdn/6E56PNG7.js +0 -4
- package/dist/cdn/6IFJZRXQ.js +0 -4
- package/dist/cdn/6J3JZGCQ.js +0 -4
- package/dist/cdn/6KGVXTT5.js +0 -4
- package/dist/cdn/6LXRO3QF.js +0 -4
- package/dist/cdn/6NSEZF5F.js +0 -4
- package/dist/cdn/6OVTX7CL.js +0 -4
- package/dist/cdn/6PNSTEDO.js +0 -4
- package/dist/cdn/6UDTDR5A.js +0 -4
- package/dist/cdn/6VID7TZL.js +0 -4
- package/dist/cdn/6VZDRSGX.js +0 -4
- package/dist/cdn/6WDVSVGW.js +0 -4
- package/dist/cdn/6XTOFD2P.js +0 -4
- package/dist/cdn/6ZBSUFKE.js +0 -4
- package/dist/cdn/75B44T4C.js +0 -4
- package/dist/cdn/76NAA2IE.js +0 -4
- package/dist/cdn/773SDT2F.js +0 -4
- package/dist/cdn/77MR2M7Y.js +0 -4
- package/dist/cdn/7ABFRZGV.js +0 -4
- package/dist/cdn/7BCHHUE4.js +0 -4
- package/dist/cdn/7BGMRGQN.js +0 -4
- package/dist/cdn/7EAX5XIM.js +0 -4
- package/dist/cdn/7GYBADTZ.js +0 -4
- package/dist/cdn/7H56JNAW.js +0 -4
- package/dist/cdn/7IS3FIQG.js +0 -4
- package/dist/cdn/7LFBNUMZ.js +0 -4
- package/dist/cdn/7LL3OEPM.js +0 -4
- package/dist/cdn/7LSNHWHN.js +0 -4
- package/dist/cdn/7MCKUUEY.js +0 -4
- package/dist/cdn/7MFWVC2G.js +0 -4
- package/dist/cdn/7NBZMMQ5.js +0 -4
- package/dist/cdn/7NKFEP4B.js +0 -4
- package/dist/cdn/7OYQF6BX.js +0 -41
- package/dist/cdn/7PNLKFFQ.js +0 -4
- package/dist/cdn/7Q3DYPTV.js +0 -4
- package/dist/cdn/7RCGIOBD.js +0 -4
- package/dist/cdn/7SCRRIED.js +0 -4
- package/dist/cdn/7ULZUZEN.js +0 -4
- package/dist/cdn/7VUN2F7P.js +0 -4
- package/dist/cdn/7WYL3WE4.js +0 -4
- package/dist/cdn/7XHG53ZX.js +0 -4
- package/dist/cdn/7ZQL4BGW.js +0 -4
- package/dist/cdn/A2EE73O7.js +0 -4
- package/dist/cdn/A2IPMDT5.js +0 -4
- package/dist/cdn/A3NLGO5N.js +0 -4
- package/dist/cdn/A4OIWX35.js +0 -4
- package/dist/cdn/A6EA6EYZ.js +0 -4
- package/dist/cdn/A6JVRNAQ.js +0 -4
- package/dist/cdn/A6UBAVGJ.js +0 -4
- package/dist/cdn/A7JTQFR2.js +0 -4
- package/dist/cdn/A7O7WIHN.js +0 -4
- package/dist/cdn/A7SF7PQ4.js +0 -4
- package/dist/cdn/AGYJGQNT.js +0 -4
- package/dist/cdn/AJ4F4KI7.js +0 -4
- package/dist/cdn/AJMIX4L5.js +0 -4
- package/dist/cdn/ALWK4YFG.js +0 -4
- package/dist/cdn/ANG7ZYVB.js +0 -4
- package/dist/cdn/APEMGCL2.js +0 -4
- package/dist/cdn/ARGXE7D2.js +0 -4
- package/dist/cdn/ARZA3O7U.js +0 -4
- package/dist/cdn/ASCUNZA6.js +0 -4
- package/dist/cdn/AWOXQW27.js +0 -4
- package/dist/cdn/AWW4C3WL.js +0 -4
- package/dist/cdn/AZW7Y3P5.js +0 -4
- package/dist/cdn/B3VQ2ZU7.js +0 -4
- package/dist/cdn/B4KYBBFV.js +0 -4
- package/dist/cdn/B4V5PM7A.js +0 -4
- package/dist/cdn/B5JNSN5L.js +0 -4
- package/dist/cdn/B6OPAWOK.js +0 -4
- package/dist/cdn/BAWSEWCV.js +0 -4
- package/dist/cdn/BBQW5G3J.js +0 -4
- package/dist/cdn/BE5C7NO4.js +0 -4
- package/dist/cdn/BFGY66OH.js +0 -4
- package/dist/cdn/BGFJDNHF.js +0 -4
- package/dist/cdn/BGHKJV3E.js +0 -4
- package/dist/cdn/BGSHVR4G.js +0 -4
- package/dist/cdn/BGVA2TXC.js +0 -4
- package/dist/cdn/BITRK55U.js +0 -4
- package/dist/cdn/BIYDKFNV.js +0 -4
- package/dist/cdn/BKGRM33E.js +0 -4
- package/dist/cdn/BL3IZWMO.js +0 -4
- package/dist/cdn/BL3PKT7I.js +0 -4
- package/dist/cdn/BLO2SZ3O.js +0 -4
- package/dist/cdn/BRNQOE6M.js +0 -9
- package/dist/cdn/BRX4FKGX.js +0 -4
- package/dist/cdn/BTWEOJ7N.js +0 -4
- package/dist/cdn/BUOPSPML.js +0 -4
- package/dist/cdn/BV2LPZO4.js +0 -4
- package/dist/cdn/BV7MNLHB.js +0 -4
- package/dist/cdn/BXWSNP7O.js +0 -4
- package/dist/cdn/C26VGI6X.js +0 -4
- package/dist/cdn/C4E4AHV6.js +0 -4
- package/dist/cdn/C5PRVJKH.js +0 -4
- package/dist/cdn/CB42BGG2.js +0 -5
- package/dist/cdn/CH2NWUER.js +0 -25
- package/dist/cdn/CJFTAJTN.js +0 -4
- package/dist/cdn/COPPT3QY.js +0 -4
- package/dist/cdn/CQGFORCG.js +0 -4
- package/dist/cdn/CQMSE7ET.js +0 -4
- package/dist/cdn/CT7YCSFD.js +0 -4
- package/dist/cdn/D32TM57H.js +0 -4
- package/dist/cdn/D7L6SYTD.js +0 -4
- package/dist/cdn/DA7MDJXH.js +0 -4
- package/dist/cdn/DAGWLEZQ.js +0 -4
- package/dist/cdn/DB6T4JMZ.js +0 -4
- package/dist/cdn/DBS2WWXZ.js +0 -4
- package/dist/cdn/DEEAGLAL.js +0 -4
- package/dist/cdn/DEILDH46.js +0 -4
- package/dist/cdn/DG7SIV3U.js +0 -4
- package/dist/cdn/DJWHV3NB.js +0 -4
- package/dist/cdn/DMXGYZEB.js +0 -4
- package/dist/cdn/DN7ISJL2.js +0 -4
- package/dist/cdn/DP2MWBGN.js +0 -4
- package/dist/cdn/DQA7MC64.js +0 -4
- package/dist/cdn/DRKSEUNZ.js +0 -4
- package/dist/cdn/DRY7KMLN.js +0 -4
- package/dist/cdn/DSECRDV4.js +0 -4
- package/dist/cdn/DSJYJUTO.js +0 -4
- package/dist/cdn/DUPGRJ2A.js +0 -4
- package/dist/cdn/DUTL7PLX.js +0 -4
- package/dist/cdn/DV6TSFEC.js +0 -4
- package/dist/cdn/DVDNN4ID.js +0 -4
- package/dist/cdn/DX2GLZPZ.js +0 -4
- package/dist/cdn/DYTKICSM.js +0 -4
- package/dist/cdn/E2R2PH55.js +0 -4
- package/dist/cdn/E4QAO3G4.js +0 -4
- package/dist/cdn/E4T3RHPK.js +0 -4
- package/dist/cdn/E6UYPNJ3.js +0 -4
- package/dist/cdn/E7CFHVUH.js +0 -4
- package/dist/cdn/EALLJKNH.js +0 -4
- package/dist/cdn/EARRMW5L.js +0 -4
- package/dist/cdn/EBG7Z65M.js +0 -4
- package/dist/cdn/EBUZKYNP.js +0 -4
- package/dist/cdn/EC3CNVJG.js +0 -4
- package/dist/cdn/EFTM7OCO.js +0 -4
- package/dist/cdn/EGFFO6N4.js +0 -4
- package/dist/cdn/EGYRLIK3.js +0 -4
- package/dist/cdn/EIL7V26B.js +0 -59
- package/dist/cdn/EKT5GH4C.js +0 -4
- package/dist/cdn/ELJYCYUO.js +0 -4
- package/dist/cdn/ELUGCZ2W.js +0 -4
- package/dist/cdn/EMLZORMH.js +0 -4
- package/dist/cdn/EORYXF4D.js +0 -4
- package/dist/cdn/ER64A4V3.js +0 -4
- package/dist/cdn/ERTAIVSZ.js +0 -4
- package/dist/cdn/ES5DQMKP.js +0 -4
- package/dist/cdn/ET5XLRYZ.js +0 -4
- package/dist/cdn/ETW2GQTK.js +0 -4
- package/dist/cdn/EUNQXUHN.js +0 -4
- package/dist/cdn/EW2VAFSZ.js +0 -4
- package/dist/cdn/EWK464VZ.js +0 -4
- package/dist/cdn/EY7YNOF7.js +0 -4
- package/dist/cdn/F3GP6HX4.js +0 -4
- package/dist/cdn/F5LGGN3Q.js +0 -4
- package/dist/cdn/F5O5MKTJ.js +0 -4
- package/dist/cdn/F5PP5ZNZ.js +0 -4
- package/dist/cdn/F6M36JJ3.js +0 -4
- package/dist/cdn/F6NTG7IN.js +0 -4
- package/dist/cdn/FB4JEEZQ.js +0 -4
- package/dist/cdn/FBAO4COO.js +0 -4
- package/dist/cdn/FCSBHZU7.js +0 -4
- package/dist/cdn/FDKAWVJO.js +0 -4
- package/dist/cdn/FEW2TV4J.js +0 -4
- package/dist/cdn/FHMUTZGX.js +0 -4
- package/dist/cdn/FIKZLQUM.js +0 -4
- package/dist/cdn/FJ2ZSYZ6.js +0 -4
- package/dist/cdn/FP3DE5KI.js +0 -4
- package/dist/cdn/FRTVPAVS.js +0 -4
- package/dist/cdn/FUQAOUCQ.js +0 -4
- package/dist/cdn/FUVWCLBF.js +0 -4
- package/dist/cdn/FWTILN5X.js +0 -4
- package/dist/cdn/FWVL4M3D.js +0 -5
- package/dist/cdn/FWZJOYWT.js +0 -4
- package/dist/cdn/FYO3WMW4.js +0 -4
- package/dist/cdn/FYPOKVFP.js +0 -4
- package/dist/cdn/FZW6GENR.js +0 -4
- package/dist/cdn/G2EHOH7I.js +0 -4
- package/dist/cdn/G32SXD6P.js +0 -4
- package/dist/cdn/G34BCPV3.js +0 -4
- package/dist/cdn/G3X5PJBU.js +0 -4
- package/dist/cdn/G4ZBUVBC.js +0 -4
- package/dist/cdn/G5BSE2YX.js +0 -4
- package/dist/cdn/G67FPLAV.js +0 -4
- package/dist/cdn/G6P2IPOV.js +0 -4
- package/dist/cdn/G7VOASX7.js +0 -4
- package/dist/cdn/GAJYVHIS.js +0 -4
- package/dist/cdn/GBMXCZSI.js +0 -4
- package/dist/cdn/GCIVWN5G.js +0 -4
- package/dist/cdn/GFVB5WCA.js +0 -4
- package/dist/cdn/GHCMHRLN.js +0 -4
- package/dist/cdn/GICJLERO.js +0 -4
- package/dist/cdn/GJWK5ONN.js +0 -4
- package/dist/cdn/GKWNKRTT.js +0 -4
- package/dist/cdn/GNQZZ6Q5.js +0 -4
- package/dist/cdn/GSTP2BF4.js +0 -4
- package/dist/cdn/GTXDHJNF.js +0 -4
- package/dist/cdn/GUK5APOJ.js +0 -4
- package/dist/cdn/GVR4ORYJ.js +0 -4
- package/dist/cdn/GYC7KWI3.js +0 -4
- package/dist/cdn/GZTHTXSS.js +0 -4
- package/dist/cdn/H276AKKN.js +0 -4
- package/dist/cdn/H2YZRZNV.js +0 -4
- package/dist/cdn/H6VPBYCI.js +0 -4
- package/dist/cdn/H7E2DNED.js +0 -4
- package/dist/cdn/HAMH3TRR.js +0 -5470
- package/dist/cdn/HHMSR6IA.js +0 -4
- package/dist/cdn/HHTTO5AJ.js +0 -4
- package/dist/cdn/HK4MY7MU.js +0 -4
- package/dist/cdn/HKIW62MP.js +0 -4
- package/dist/cdn/HKOLBMBT.js +0 -4
- package/dist/cdn/HO43CSE3.js +0 -4
- package/dist/cdn/HOHFM77H.js +0 -4
- package/dist/cdn/HP5KMK3A.js +0 -4
- package/dist/cdn/HQCFUBSN.js +0 -4
- package/dist/cdn/HQJCO4YI.js +0 -4
- package/dist/cdn/HSTEZPIP.js +0 -4
- package/dist/cdn/HWPNEVGI.js +0 -4
- package/dist/cdn/HXXAWSX6.js +0 -4
- package/dist/cdn/HY2YLTEX.js +0 -4
- package/dist/cdn/HY7S4ZHU.js +0 -4
- package/dist/cdn/I2OQHIH2.js +0 -4
- package/dist/cdn/I4KK4ZLU.js +0 -4
- package/dist/cdn/I6M2EW4R.js +0 -4
- package/dist/cdn/IDJ3T3BU.js +0 -4
- package/dist/cdn/IGB5OXGL.js +0 -4
- package/dist/cdn/IGKKSXPB.js +0 -4
- package/dist/cdn/IIUVHSOM.js +0 -4
- package/dist/cdn/IJFNEDSU.js +0 -4
- package/dist/cdn/INUGFLOY.js +0 -4
- package/dist/cdn/IPCSNAUF.js +0 -4
- package/dist/cdn/IRNCLHXS.js +0 -4
- package/dist/cdn/ISGYZUH5.js +0 -4
- package/dist/cdn/ITHMCU4U.js +0 -4
- package/dist/cdn/IV2AHFDA.js +0 -4
- package/dist/cdn/IVE5FVJ4.js +0 -4
- package/dist/cdn/IWM2ES42.js +0 -4
- package/dist/cdn/J2QHKRZC.js +0 -4
- package/dist/cdn/J4GXDCBP.js +0 -4
- package/dist/cdn/J5SGIU2N.js +0 -4
- package/dist/cdn/JAUFSYFI.js +0 -4
- package/dist/cdn/JBYNDJFK.js +0 -59
- package/dist/cdn/JCFC6LJP.js +0 -4
- package/dist/cdn/JDFUIKMI.js +0 -4
- package/dist/cdn/JFYQXOQ6.js +0 -4
- package/dist/cdn/JG53KGYL.js +0 -4
- package/dist/cdn/JGSDUR3D.js +0 -4
- package/dist/cdn/JHKBDXWR.js +0 -4
- package/dist/cdn/JLITWA6U.js +0 -4
- package/dist/cdn/JMYKSBE6.js +0 -4
- package/dist/cdn/JPOV2TOZ.js +0 -4
- package/dist/cdn/JQGWJZLV.js +0 -4
- package/dist/cdn/JQMP3DDM.js +0 -4
- package/dist/cdn/JWTFBP7C.js +0 -4
- package/dist/cdn/JXLZPII7.js +0 -4
- package/dist/cdn/JZAMIVKF.js +0 -4
- package/dist/cdn/K2FQLLSH.js +0 -4
- package/dist/cdn/K3B2FEZU.js +0 -4
- package/dist/cdn/K6UUFPHW.js +0 -4
- package/dist/cdn/K7FOZAFP.js +0 -4
- package/dist/cdn/K7SQT3HJ.js +0 -4
- package/dist/cdn/KAS6K32H.js +0 -4
- package/dist/cdn/KBAJAY3Q.js +0 -4
- package/dist/cdn/KDSLNBRX.js +0 -24
- package/dist/cdn/KEFQESGA.js +0 -4
- package/dist/cdn/KF6PXT2R.js +0 -6
- package/dist/cdn/KFDS2UKJ.js +0 -4
- package/dist/cdn/KG62KFST.js +0 -4
- package/dist/cdn/KJDRCUPK.js +0 -4
- package/dist/cdn/KKOIYDC7.js +0 -4
- package/dist/cdn/KLP6HSWP.js +0 -4
- package/dist/cdn/KMXAS4HH.js +0 -4
- package/dist/cdn/KOWHPG4A.js +0 -4
- package/dist/cdn/KPPV67XZ.js +0 -4
- package/dist/cdn/KQE7F6VA.js +0 -4
- package/dist/cdn/KUIT6PMP.js +0 -4
- package/dist/cdn/KYTKAE3Y.js +0 -4
- package/dist/cdn/KZEUCZGF.js +0 -4
- package/dist/cdn/L2FZL2BM.js +0 -8
- package/dist/cdn/L3PBG44A.js +0 -4
- package/dist/cdn/L3Z6MSWR.js +0 -4
- package/dist/cdn/L76XUP7F.js +0 -4
- package/dist/cdn/LAMOKFKS.js +0 -4
- package/dist/cdn/LB6IODBM.js +0 -4
- package/dist/cdn/LCSQ5RO3.js +0 -4
- package/dist/cdn/LEZU5ZZ3.js +0 -4
- package/dist/cdn/LGF4RNXN.js +0 -4
- package/dist/cdn/LGTFGREQ.js +0 -4
- package/dist/cdn/LH3AI2UU.js +0 -4
- package/dist/cdn/LHDE2SK3.js +0 -4
- package/dist/cdn/LHPYGLTT.js +0 -4
- package/dist/cdn/LHQIU77J.js +0 -4
- package/dist/cdn/LLQ5ZSQ7.js +0 -4
- package/dist/cdn/LM5JTMJ3.js +0 -4
- package/dist/cdn/LMSHPSTN.js +0 -4
- package/dist/cdn/LO76LP7K.js +0 -4
- package/dist/cdn/LRB3RB5B.js +0 -4
- package/dist/cdn/LRDOGIG6.js +0 -4
- package/dist/cdn/LSJA5FBS.js +0 -4
- package/dist/cdn/LX6SKS4J.js +0 -4
- package/dist/cdn/LYRURE76.js +0 -4
- package/dist/cdn/M4EAIX7J.js +0 -4
- package/dist/cdn/M4LQGDRM.js +0 -4
- package/dist/cdn/M6TE3QFV.js +0 -4
- package/dist/cdn/M7S5CA5N.js +0 -4
- package/dist/cdn/MAJ3BYED.js +0 -4
- package/dist/cdn/MARB2KPP.js +0 -4
- package/dist/cdn/MBHVPNIN.js +0 -4
- package/dist/cdn/MCISHNKU.js +0 -4
- package/dist/cdn/MEPXMOTE.js +0 -4
- package/dist/cdn/MF2462WC.js +0 -4
- package/dist/cdn/MKLPYHCN.js +0 -4
- package/dist/cdn/MM5G62MJ.js +0 -5
- package/dist/cdn/MQEIQHLV.js +0 -4
- package/dist/cdn/MRJAIJEU.js +0 -4
- package/dist/cdn/MX7OVGEN.js +0 -4
- package/dist/cdn/MXDQNYPS.js +0 -4
- package/dist/cdn/N4HJDKQP.js +0 -4
- package/dist/cdn/N5FF22TV.js +0 -4
- package/dist/cdn/N6XDSY46.js +0 -4
- package/dist/cdn/N7TUF3VY.js +0 -4
- package/dist/cdn/NCJIBH42.js +0 -4
- package/dist/cdn/NGUGLN6F.js +0 -4
- package/dist/cdn/NHML7J5F.js +0 -4
- package/dist/cdn/NIAF77HW.js +0 -4
- package/dist/cdn/NKQ7IDSF.js +0 -4
- package/dist/cdn/NLZRAFDS.js +0 -4
- package/dist/cdn/NMUWS6IZ.js +0 -4
- package/dist/cdn/NNS3E3VF.js +0 -4
- package/dist/cdn/NOKL74EQ.js +0 -4
- package/dist/cdn/NQN7DTRL.js +0 -4
- package/dist/cdn/NR75SE4S.js +0 -4
- package/dist/cdn/NT5L6C5T.js +0 -4
- package/dist/cdn/NWCQJX55.js +0 -4
- package/dist/cdn/NYYURULS.js +0 -4
- package/dist/cdn/NZE2WNTF.js +0 -4
- package/dist/cdn/O2LWPI5O.js +0 -4
- package/dist/cdn/O4ADFWUC.js +0 -4
- package/dist/cdn/O4TARAW2.js +0 -4
- package/dist/cdn/O5SCMEG4.js +0 -4
- package/dist/cdn/OAXOIY5K.js +0 -4
- package/dist/cdn/OJ2SZGQV.js +0 -4
- package/dist/cdn/OMTJUW3Y.js +0 -4
- package/dist/cdn/ONOYYIW2.js +0 -4
- package/dist/cdn/ONYQJI7H.js +0 -4
- package/dist/cdn/OPUXRGPB.js +0 -4
- package/dist/cdn/OPYHRPEO.js +0 -4
- package/dist/cdn/OQXZ7VYO.js +0 -4
- package/dist/cdn/OTKT5IMB.js +0 -4
- package/dist/cdn/OU4BKKK6.js +0 -4
- package/dist/cdn/OVFCU2OA.js +0 -4
- package/dist/cdn/OXSR665Z.js +0 -4
- package/dist/cdn/OY5JRQB7.js +0 -4
- package/dist/cdn/OYITJCZB.js +0 -4
- package/dist/cdn/OZ3U4754.js +0 -4
- package/dist/cdn/P3FYAYNY.js +0 -4
- package/dist/cdn/P3OMJWY5.js +0 -4
- package/dist/cdn/P3Q3C5J4.js +0 -4
- package/dist/cdn/P547KTMP.js +0 -4
- package/dist/cdn/P54DHZC5.js +0 -4
- package/dist/cdn/P5J2EZET.js +0 -4
- package/dist/cdn/P5KCI7NK.js +0 -4
- package/dist/cdn/PF7DB2OB.js +0 -4
- package/dist/cdn/PFG5DAY2.js +0 -4
- package/dist/cdn/PHR2JAD6.js +0 -4
- package/dist/cdn/PHYAUBHF.js +0 -4
- package/dist/cdn/PJ6IXFN3.js +0 -4
- package/dist/cdn/PLSZVDWP.js +0 -4
- package/dist/cdn/PMXFQH5J.js +0 -4
- package/dist/cdn/PPALU6ZB.js +0 -4
- package/dist/cdn/PQKFVHXI.js +0 -4
- package/dist/cdn/PQZ3LY7A.js +0 -4
- package/dist/cdn/PRU6UJDX.js +0 -4
- package/dist/cdn/PTSA5DJ7.js +0 -4
- package/dist/cdn/PVV2EWHT.js +0 -4
- package/dist/cdn/PWBD74AP.js +0 -4
- package/dist/cdn/PWOQFVYA.js +0 -12
- package/dist/cdn/PWTPKLAK.js +0 -4
- package/dist/cdn/PXG4LKUH.js +0 -4
- package/dist/cdn/PXGQBIEO.js +0 -4
- package/dist/cdn/PYE6RZZ5.js +0 -4
- package/dist/cdn/Q2EOVSFZ.js +0 -4
- package/dist/cdn/Q2RBMMWK.js +0 -4
- package/dist/cdn/Q4DRZ7RV.js +0 -4
- package/dist/cdn/Q4UCVCJO.js +0 -4
- package/dist/cdn/Q5B5X272.js +0 -4
- package/dist/cdn/Q64UGY6C.js +0 -4
- package/dist/cdn/Q6QBCYLR.js +0 -4
- package/dist/cdn/QBCHP22G.js +0 -16
- package/dist/cdn/QGOASJPQ.js +0 -4
- package/dist/cdn/QHKUKHNX.js +0 -4
- package/dist/cdn/QJO24RUF.js +0 -4
- package/dist/cdn/QMTPJVSI.js +0 -4
- package/dist/cdn/QOR2X655.js +0 -4
- package/dist/cdn/QTRSYCGA.js +0 -5
- package/dist/cdn/QUMGLFSR.js +0 -4
- package/dist/cdn/QWRZVZ7U.js +0 -4
- package/dist/cdn/QX6R654Q.js +0 -4
- package/dist/cdn/QYJ7HMJA.js +0 -4
- package/dist/cdn/QYQSDD22.js +0 -4
- package/dist/cdn/QZAGUBD3.js +0 -4
- package/dist/cdn/QZDKMH6C.js +0 -4
- package/dist/cdn/R26LVT4B.js +0 -4
- package/dist/cdn/R3O3IQ2C.js +0 -4
- package/dist/cdn/RDRM3OS6.js +0 -4
- package/dist/cdn/RDXM6XNX.js +0 -4
- package/dist/cdn/RE6RJMEZ.js +0 -4
- package/dist/cdn/RFQMDI2U.js +0 -4
- package/dist/cdn/RHKKW2LO.js +0 -4
- package/dist/cdn/RK222BYK.js +0 -4
- package/dist/cdn/RMPV3TWJ.js +0 -4
- package/dist/cdn/ROICXNGM.js +0 -4
- package/dist/cdn/ROKVX73E.js +0 -4
- package/dist/cdn/RRYGZ6ZW.js +0 -11
- package/dist/cdn/RS2FFBQ2.js +0 -4
- package/dist/cdn/RT4BJCDX.js +0 -4
- package/dist/cdn/RTCHHTJH.js +0 -4
- package/dist/cdn/RUESGWG3.js +0 -4
- package/dist/cdn/RXXNMLMU.js +0 -4
- package/dist/cdn/RXYWG4RO.js +0 -4
- package/dist/cdn/RZ7YXHFT.js +0 -4
- package/dist/cdn/S3GCTZ32.js +0 -4
- package/dist/cdn/S3HQP2TL.js +0 -4
- package/dist/cdn/S4XUMRN7.js +0 -4
- package/dist/cdn/S5356PWW.js +0 -4
- package/dist/cdn/S5ADQIOS.js +0 -4
- package/dist/cdn/S6IWTOGV.js +0 -4
- package/dist/cdn/S777QLJL.js +0 -4
- package/dist/cdn/SA7D3VV4.js +0 -4
- package/dist/cdn/SAFVTC52.js +0 -4
- package/dist/cdn/SBIVB2TA.js +0 -4
- package/dist/cdn/SDQWGANT.js +0 -4
- package/dist/cdn/SEACVVKB.js +0 -4
- package/dist/cdn/SECT4XUS.js +0 -4
- package/dist/cdn/SEPX63BD.js +0 -4
- package/dist/cdn/SI4CQ4VS.js +0 -4
- package/dist/cdn/SKLLD2EB.js +0 -4
- package/dist/cdn/SRRNBAJU.js +0 -4
- package/dist/cdn/SSVQXIFA.js +0 -4
- package/dist/cdn/SWGJIGRX.js +0 -4
- package/dist/cdn/SYKBQNHH.js +0 -4
- package/dist/cdn/SYZMKW2C.js +0 -4
- package/dist/cdn/SZR2BOLG.js +0 -4
- package/dist/cdn/SZYBAUOE.js +0 -4
- package/dist/cdn/T5FUF3GE.js +0 -4
- package/dist/cdn/T5U47K3Y.js +0 -4
- package/dist/cdn/T6D3ZYPX.js +0 -4
- package/dist/cdn/T7GP6XNG.js +0 -4
- package/dist/cdn/TA3P5TV4.js +0 -4
- package/dist/cdn/TCBZPADL.js +0 -4
- package/dist/cdn/TFL3M7Y5.js +0 -4
- package/dist/cdn/THKL7OST.js +0 -4
- package/dist/cdn/TJIT4F7F.js +0 -4
- package/dist/cdn/TLFVEBKN.js +0 -4
- package/dist/cdn/TPKEW5I5.js +0 -4
- package/dist/cdn/TPLXFAAB.js +0 -4
- package/dist/cdn/TQCAASGP.js +0 -4
- package/dist/cdn/TQVBTOHR.js +0 -4
- package/dist/cdn/TYJIOEX6.js +0 -4
- package/dist/cdn/TYWA5DJK.js +0 -4
- package/dist/cdn/U23AA3CL.js +0 -4
- package/dist/cdn/U2ACEA2S.js +0 -4
- package/dist/cdn/U6UND6S2.js +0 -4
- package/dist/cdn/U7J5DSUK.js +0 -4
- package/dist/cdn/UDK2APTZ.js +0 -4
- package/dist/cdn/UDO3FUT4.js +0 -4
- package/dist/cdn/UFFGUFYR.js +0 -4
- package/dist/cdn/UFNHW664.js +0 -51
- package/dist/cdn/UKGDG3OG.js +0 -4
- package/dist/cdn/UKH7H7MU.js +0 -4
- package/dist/cdn/UMHNHMIL.js +0 -4
- package/dist/cdn/UT3SH2UY.js +0 -4
- package/dist/cdn/UUCEZCI3.js +0 -4
- package/dist/cdn/UV2DATWV.js +0 -4
- package/dist/cdn/UVZRCQF4.js +0 -4
- package/dist/cdn/UWWEPHK7.js +0 -4
- package/dist/cdn/UYUN7LOC.js +0 -4
- package/dist/cdn/UZCMX3E6.js +0 -4
- package/dist/cdn/V2GDKEGG.js +0 -4
- package/dist/cdn/V5FYZAZW.js +0 -4
- package/dist/cdn/VB2SZ7TZ.js +0 -4
- package/dist/cdn/VBL5YNNI.js +0 -4
- package/dist/cdn/VBXQYILB.js +0 -4
- package/dist/cdn/VCOKMU7P.js +0 -4
- package/dist/cdn/VENDCOLA.js +0 -4
- package/dist/cdn/VFJXRIRH.js +0 -4
- package/dist/cdn/VIL7PMKS.js +0 -4
- package/dist/cdn/VK4UGQ5A.js +0 -4
- package/dist/cdn/VM5KW3SC.js +0 -4
- package/dist/cdn/VMAUS53U.js +0 -4
- package/dist/cdn/VN37EODI.js +0 -4
- package/dist/cdn/VPL3LSPU.js +0 -4
- package/dist/cdn/VQPLJUFN.js +0 -4
- package/dist/cdn/VR2V2IHW.js +0 -4
- package/dist/cdn/VSP6I44H.js +0 -4
- package/dist/cdn/VUBNLKGZ.js +0 -4
- package/dist/cdn/VUQP57FB.js +0 -6
- package/dist/cdn/VVONJFXC.js +0 -4
- package/dist/cdn/VVXAOYNQ.js +0 -4
- package/dist/cdn/VWTSYMUX.js +0 -4
- package/dist/cdn/W3OKPEZV.js +0 -4
- package/dist/cdn/W3QQLZLF.js +0 -4
- package/dist/cdn/W4F4UOTR.js +0 -4
- package/dist/cdn/W5XA6A5L.js +0 -4
- package/dist/cdn/W6PKTNE3.js +0 -4
- package/dist/cdn/W76RJ523.js +0 -4
- package/dist/cdn/WEHD5LUO.js +0 -4
- package/dist/cdn/WEWV2CAZ.js +0 -4
- package/dist/cdn/WMUWYXLQ.js +0 -5
- package/dist/cdn/WQPJ7RGC.js +0 -4
- package/dist/cdn/WRVW4DUL.js +0 -4
- package/dist/cdn/WXE3P52G.js +0 -4
- package/dist/cdn/WZ4VBMAZ.js +0 -4
- package/dist/cdn/X3FKKDWI.js +0 -4
- package/dist/cdn/X5JH6LI6.js +0 -4
- package/dist/cdn/X75DEBFM.js +0 -4
- package/dist/cdn/X7ONKRZU.js +0 -4
- package/dist/cdn/X7TO6UV4.js +0 -4
- package/dist/cdn/XBPDDS6L.js +0 -4
- package/dist/cdn/XBPFZJ3C.js +0 -4
- package/dist/cdn/XD6BY3RV.js +0 -4
- package/dist/cdn/XEHPMASD.js +0 -4
- package/dist/cdn/XHCAWPIQ.js +0 -4
- package/dist/cdn/XHQG6OOX.js +0 -4
- package/dist/cdn/XM6LAYQV.js +0 -4
- package/dist/cdn/XM7K5DKH.js +0 -4
- package/dist/cdn/XMBTSTTB.js +0 -4
- package/dist/cdn/XOBUDULM.js +0 -4
- package/dist/cdn/XPALNHQ5.js +0 -4
- package/dist/cdn/XQ5T3NPQ.js +0 -42
- package/dist/cdn/XRQK3Z3Z.js +0 -4
- package/dist/cdn/XRSNCL4S.js +0 -4
- package/dist/cdn/Y4KTCRRG.js +0 -4
- package/dist/cdn/Y4OMF47Y.js +0 -4
- package/dist/cdn/Y7ZTG6IV.js +0 -4
- package/dist/cdn/YAUDRDAQ.js +0 -4
- package/dist/cdn/YB3RR4ZX.js +0 -4
- package/dist/cdn/YE2BV74E.js +0 -4
- package/dist/cdn/YGNVZHFH.js +0 -4
- package/dist/cdn/YHMUDRR7.js +0 -4
- package/dist/cdn/YI6FLGMF.js +0 -4
- package/dist/cdn/YIOFUKJ6.js +0 -4
- package/dist/cdn/YIYTWWXY.js +0 -4
- package/dist/cdn/YJB3H4SX.js +0 -4
- package/dist/cdn/YKNBYBRF.js +0 -4
- package/dist/cdn/YLC4XO7Z.js +0 -4
- package/dist/cdn/YLKNFSLW.js +0 -4
- package/dist/cdn/YNHCSWIL.js +0 -4
- package/dist/cdn/YP2YKWME.js +0 -4
- package/dist/cdn/YQFR3NJN.js +0 -4
- package/dist/cdn/YSRCWZZ7.js +0 -4
- package/dist/cdn/YWC2JRJV.js +0 -4
- package/dist/cdn/YXZRNRJT.js +0 -4
- package/dist/cdn/Z224U4AA.js +0 -4
- package/dist/cdn/Z2GBEJGZ.js +0 -4
- package/dist/cdn/Z3CHPAWA.js +0 -4
- package/dist/cdn/Z3KRTHRQ.js +0 -4
- package/dist/cdn/Z4RYAXAN.js +0 -4
- package/dist/cdn/Z5DFE6ZN.js +0 -8
- package/dist/cdn/Z7M2ZJVY.js +0 -4
- package/dist/cdn/Z7NMKSI5.js +0 -4
- package/dist/cdn/Z7T46DNO.js +0 -4
- package/dist/cdn/ZAPTXHFS.js +0 -4
- package/dist/cdn/ZCDCUPLB.js +0 -4
- package/dist/cdn/ZH22RCNU.js +0 -4
- package/dist/cdn/ZKRKK37N.js +0 -12
- package/dist/cdn/ZLLS2KN6.js +0 -4
- package/dist/cdn/ZOT5QA53.js +0 -4
- package/dist/cdn/ZOTY5OWR.js +0 -4
- package/dist/cdn/ZPCNGWJZ.js +0 -4
- package/dist/cdn/ZPJ667DU.js +0 -4
- package/dist/cdn/ZRCXZLI4.js +0 -4
- package/dist/cdn/ZRL4ZHSW.js +0 -4
- package/dist/cdn/ZUAFRV2T.js +0 -4
- package/dist/components/layouts/utils/findNodeById.d.ts +0 -10
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.33/esri/copyright.txt for details.
|
|
3
|
+
v0.33.0 */
|
|
4
|
+
import{a as yt}from"./Y7F57F6X.js";import{a as Te,b as Le,c as je,d as He,e as Fe}from"./EMDVKWPL.js";import{a as mt}from"./BDB5HKJZ.js";import{a as gt,c as bt}from"./KBAOWCYZ.js";import{a as ne}from"./XHLP6IEH.js";import{a as pe}from"./BAVQTW5E.js";import{a as Se}from"./FZE3WNMN.js";import{a as Ee}from"./LMZRMKHH.js";import{a as ue}from"./RJFLR3QJ.js";import b from"./VHNZDOHH.js";import"./PZ3XZDPS.js";import{a as ie,b as ke}from"./ESAAOYLR.js";import{a as de,b as H}from"./R4HFOCOZ.js";import a from"./NKSZNWF7.js";import"./DYUBGKNC.js";import"./24CKY3KR.js";import{a as K}from"./B6PMTVRZ.js";import{a as Me}from"./JLZXPVXZ.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"./ILLXA4SZ.js";import{a as it,b as nt}from"./MNHCCXWK.js";import{a as Ie}from"./TVKPGIUL.js";import{a as ot}from"./L7N7F4JY.js";import{b as Ue}from"./P5B7VRPC.js";import{a as at}from"./SYQOZRNG.js";import"./BQ262USN.js";import"./YT4NPF2I.js";import"./TRCVKMP4.js";import"./HEWXZ7CP.js";import"./SDBGS5ZN.js";import"./I7LHG3EK.js";import"./SROO5Y2V.js";import{m as Ye,n as Qe}from"./HUPLRH7B.js";import"./ONSXFRPG.js";import"./G2QWMMPX.js";import"./QZYCDIMW.js";import"./2JZCUBQC.js";import"./EGXYLPWZ.js";import"./H3J5UZAH.js";import"./SPUUEAHK.js";import"./GV64QRG7.js";import"./UVL36MNC.js";import"./5C52HLO4.js";import"./WGRY3RX7.js";import"./TCLLKYNN.js";import"./YJZFTILW.js";import"./GTQ6UCQH.js";import"./PRAT5I2C.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"./S2TNJJ2N.js";import"./BUEVP3OF.js";import"./ZDBT6LVT.js";import"./LBUN4QJA.js";import"./IYICIO4K.js";import"./2ABOUFTE.js";import"./QPPYM4M5.js";import"./T7ZCAQII.js";import"./DY6UE7SJ.js";import"./JJUHHDQA.js";import"./ZMJ4TI6X.js";import"./BQJLF776.js";import"./PQHRBVD2.js";import"./EWBCYKAB.js";import"./Y4S3Q3Y5.js";import{f as fe,k as x,l as Be,m as ve,n as Ge}from"./H7V2UDD6.js";import"./HUY3Z2KF.js";import"./EVOFS4BO.js";import"./TLKXCWGZ.js";import"./5IS53M6H.js";import"./A7DBY5HF.js";import"./EOXJFCK4.js";import"./TTBYQSZP.js";import"./WBR3VAM7.js";import"./IZNWARBX.js";import"./FOTMRLI5.js";import"./KUL6DBRJ.js";import"./DRWS4VLW.js";import"./Y6CHT37U.js";import"./YJ7E6IMV.js";import{h as ye}from"./VRA66I7U.js";import"./ZMGAMZKN.js";import"./RYUSWBGP.js";import"./UQ4A7KUP.js";import"./Z6LYBSRJ.js";import"./KEJN2M66.js";import"./5CQZZRUB.js";import"./FYSDTDQB.js";import"./5JACAK4Z.js";import"./MUBKRH2O.js";import"./LNZKICDM.js";import"./Y4I7GDRI.js";import"./5THG3SWZ.js";import"./KAP6VF57.js";import"./WIHMRX55.js";import"./YTQ3ADCH.js";import"./QITKEE5Y.js";import{c as Q,g as Ne,j as oe}from"./Q4EY7C7A.js";import"./66IVO22F.js";import"./2UPNBRVZ.js";import"./CXBCU34Q.js";import"./IAAXCWWR.js";import"./CPFXT4EJ.js";import"./6TVNK76V.js";import"./6MM2VO2Y.js";import{o as Ve}from"./JZKWOB5P.js";import"./PPQSKWUA.js";import"./5ORTH2EK.js";import"./GPODM7TC.js";import{a as $}from"./PDE6L4CY.js";import{a as j}from"./TIGQYOLJ.js";import"./JZA7WYDW.js";import"./UPULQ36W.js";import{a as g}from"./M6QBMNBF.js";import"./OOQ3SRJW.js";import{b as r,c as q,d as F,e as v,h as E,i as N}from"./CFLB2PH4.js";import{a as X}from"./32RARPC4.js";import{a as G}from"./JOXKPSU6.js";import"./NS7L2HU7.js";import"./L77IR6FU.js";import"./L6C3C6M4.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.33/esri/copyright.txt for details.
|
|
3
|
+
v0.33.0 */
|
|
4
|
+
import a from"./PLD7PQEM.js";import"./CFLB2PH4.js";import"./32RARPC4.js";import"./NS7L2HU7.js";import"./L6C3C6M4.js";export default $arcgis.t(([,,,,,,,,,,,,,,{Cb:r}])=>{return r},"geometry/support/jsonUtils","layers/support/fieldUtils","renderers/support/jsonUtils","layers/support/Field","request","rest/support/FeatureSet","layers/FeatureLayer","portal/Portal","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","applications/Components/reactiveUtils",a)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.33/esri/copyright.txt for details.
|
|
3
|
+
v0.33.0 */
|
|
4
|
+
import{b as u}from"./UVLF3BNC.js";import{a as o}from"./ZNDCJY6E.js";import{a as c}from"./NS7L2HU7.js";var l=[o.JPG,o.PNG,o.PNG8,o.PNG24,o.PNG32],g=[o.CSV,o.SHAPEFILE,o.GEOJSON,o.KML],p=[o.CSV,o.SHAPEFILE,o.GEOJSON,o.KML,o.FILE_GDB],F=[o.CSV,o.SHAPEFILE,o.GEOJSON,o.KML,o.FILE_GDB,o.FEATURE_COLLECTION,o.EXCEL,o.GEO_PACKAGE,o.SQLITE,o.JSON];function E(t){let e=t.serverExtractFormats||[],r=F.filter(s=>e.includes(s)),n=e.filter(s=>!F.includes(s));return[...r,...n].map(s=>({type:"dynamic",format:s}))}function P(t){return((c(t,"extendedProps.server.currentVersion")||0)<10.2?l.filter(n=>n!==o.PNG32):l).map(n=>({type:"dynamic",format:n}))}function G(){return g.map(t=>({type:"dynamic",format:t}))}function O(){return p.map(t=>({type:"dynamic",format:t}))}function S(t,e){let r=[],n={createReplica:()=>{r=E(e)},paging:()=>{r=G()},fgdb:()=>{r=O()},exportImage:()=>{r=P(e)}};return n[t]&&n[t](),r}function L(t){let e=u(t),r=S(e,t),n=c(t,"extendedProps.additionalResources")||[],s=c(t,"extendedProps.downloads"),a=r.map(i=>({key:i.format,hidden:!1}));if(n.forEach((i,d)=>{a.push({key:`additionalResource::${d}`,hidden:!1})}),s&&s.flowType===e){let i=a.filter(m=>!s.formats.find(f=>f.key===m.key)),d=s.formats.filter(m=>a.find(f=>f.key===m.key));return{flowType:e,formats:[...d,...i]}}return{flowType:e,formats:a}}export{E as a,P as b,G as c,O as d,L as e};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.33/esri/copyright.txt for details.
|
|
3
|
+
v0.33.0 */
|
|
4
|
+
import{a as n}from"./MUBKRH2O.js";import{a as p}from"./PPQSKWUA.js";import{a as c}from"./NS7L2HU7.js";var u=["location","type","tags","categories","modified","access"],g=["group-role","group-type","group-access"],f=["event-from","event-access","event-date"],b=["location","modified","post-groups","post-status"],P=[...new Set([...u,...g,...f,...b])],d={type:y,tags:E,categories:T,modified:m,access:v,location:k,"group-type":_,"group-role":F,"group-access":O,"event-from":x,"event-access":L,"event-date":h,"post-status":W,"post-groups":R};function S(t,e,a,o){return t.reduce((i,r)=>{if(typeof r=="string"&&r in d){let l=d[r](e,a,o);l&&i.push(l)}else r&&i.push(r);return i},[])}function U(t,e){return t.filter(a=>!a.validTargetEntities||a.validTargetEntities.includes(e))}function s(t){let e=[];return u.includes(t)&&e.push("item"),g.includes(t)&&e.push("group"),f.includes(t)&&e.push("event"),b.includes(t)&&e.push("post"),e}function y(t,e){return{label:e.t("facets.type.label"),key:"type",display:"multi-select",field:"type",options:[],operation:"OR",aggLimit:100,validTargetEntities:s("type")}}function v(t,e){return{label:e.t("facets.access.label"),key:"access",display:"multi-select",field:"access",options:[],operation:"OR",validTargetEntities:s("access")}}function m(t,e){return{label:e.t("facets.dateUpdated.label"),key:"modified",display:"date-range",field:"modified",state:"open",max:new Date().toString(),validTargetEntities:s("modified")}}function E(t,e){return{label:e.t("facets.tags.label"),key:"tags",display:"multi-select",field:"tags",options:[],operation:"OR",aggLimit:15,validTargetEntities:s("tags")}}function k(t,e,a){return{label:e.t("facets.location.label"),key:"bbox",display:"map",field:"bbox",value:null,extent:a?.facetExtent||n([[-180,-90],[180,90]]),tooltip:e.t("facets.location.tooltip"),validTargetEntities:s("location")}}function T(t,e){return{label:e.t("facets.categories.label"),key:"categories",display:"tree",field:"categories",operation:"OR",aggLimit:100,options:[],validTargetEntities:s("categories")}}function _(t,e){return{label:e.t("facets.group.type.label"),key:"group-type",display:"single-select",operation:"OR",options:[{label:e.t("facets.group.type.all"),key:"all",selected:!0,predicates:[]},{label:e.t("facets.group.type.view"),key:"view",selected:!1,predicates:[{capabilities:{not:["updateitemcontrol"]}}]},{label:e.t("facets.group.type.edit"),key:"edit",selected:!1,predicates:[{capabilities:"updateitemcontrol"}]}],validTargetEntities:s("group-type")}}function F(t,e){let a=p(t,"currentUser.groups",[]).reduce((o,i)=>(i.userMembership.memberType==="admin"&&o.push(i.id),o),[]);return{label:e.t("facets.group.role.label"),key:"group-role",display:"single-select",operation:"OR",options:[{label:e.t("facets.group.role.all"),key:"all",selected:!0,predicates:[{searchUserAccess:"groupMember"}]},{label:e.t("facets.group.role.member"),key:"member",selected:!1,predicates:[{searchUserAccess:"groupMember",owner:{not:c(t,"session.username")}}]},{label:e.t("facets.group.role.manager"),key:"manager",selected:!1,predicates:[{id:a.slice(0,140)}]},{label:e.t("facets.group.role.owner"),key:"owner",selected:!1,predicates:[{owner:c(t,"session.username")}]}],validTargetEntities:s("group-role")}}function O(t,e){return{label:e.t("facets.group.sharing.label"),key:"group-access",display:"multi-select",operation:"OR",options:[{label:e.t("facets.group.sharing.private"),key:"private",selected:!1,predicates:[{access:["private","org"]}]},{label:e.t("facets.group.sharing.public"),key:"public",selected:!1,predicates:[{access:"public"}]}],validTargetEntities:s("group-access")}}function h(t,e){return{label:e.t("facets.event.startDate.label"),key:"event-date",display:"date-range",field:"startDateRange",state:"open",validTargetEntities:s("event-date")}}function x(t,e){return{label:e.t("facets.event.from.label"),key:"event-from",display:"single-select",operation:"OR",options:[{label:e.t("facets.event.from.myContent"),key:"myContent",selected:!0,predicates:[{owner:c(t,"currentUser.id")}]},{label:e.t("facets.event.from.myOrganization"),key:"myOrganization",selected:!1,predicates:[{orgId:c(t,"currentUser.orgId")}]},{label:e.t("facets.event.from.world"),key:"world",selected:!1,predicates:[]}],validTargetEntities:s("event-from")}}function L(t,e){return{label:e.t("facets.event.access.label"),key:"event-access",display:"multi-select",operation:"OR",options:[{label:e.t("facets.event.access.private"),key:"private",selected:!1,predicates:[{access:"private"}]},{label:e.t("facets.event.access.org"),key:"org",selected:!1,predicates:[{access:"org"}]},{label:e.t("facets.event.access.public"),key:"public",selected:!1,predicates:[{access:"public"}]}],validTargetEntities:s("event-access")}}function R(t,e){var a,o;let i=r=>({label:r.title,key:r.id,selected:!1,predicates:[{groups:r.id}]});return{label:e.t("facets.groups.label"),key:"groups",display:"multi-select",operation:"OR",options:!((o=(a=t.currentUser)===null||a===void 0?void 0:a.groups)===null||o===void 0)&&o.length?t.currentUser.groups.map(i):[],validTargetEntities:s("post-groups")}}function W(t,e){return{label:e.t("facets.post.status.label"),key:"status",display:"single-select",operation:"OR",options:[{label:e.t("facets.post.status.approved"),key:"approved",selected:!0,predicates:[{status:"approved"}]},{label:e.t("facets.post.status.hidden"),key:"hidden",selected:!1,predicates:[{status:"hidden"}]},{label:e.t("facets.post.status.blocked"),key:"blocked",selected:!1,predicates:[{status:"blocked"}]}],validTargetEntities:s("post-status")}}export{u as a,f as b,P as c,S as d,U as e,k as f};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.33/esri/copyright.txt for details.
|
|
3
|
+
v0.33.0 */
|
|
4
|
+
function M(n){let{host:i,path:a,query:u}=n,p=i.endsWith("/")?i:`${i}/`,h=new URL(a,p);return h.search=tt(u),h.toString()}function tt(n={}){let i=Object.keys(n).filter(a=>n[a]!==void 0).reduce((a,u)=>(a[u]=n[u],a),{});return new URLSearchParams(i).toString()}var $=class extends Error{constructor(i,a,u){super(i),this.status=u,this.url=a}};function T(){T=function(){return i};var n,i={},a=Object.prototype,u=a.hasOwnProperty,p=Object.defineProperty||function(e,t,r){e[t]=r.value},h=typeof Symbol=="function"?Symbol:{},f=h.iterator||"@@iterator",v=h.asyncIterator||"@@asyncIterator",l=h.toStringTag||"@@toStringTag";function m(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{m({},"")}catch{m=function(t,r,s){return t[r]=s}}function j(e,t,r,s){var o=t&&t.prototype instanceof U?t:U,c=Object.create(o.prototype),y=new N(s||[]);return p(c,"_invoke",{value:X(e,r,y)}),c}function L(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(s){return{type:"throw",arg:s}}}i.wrap=j;var D="suspendedStart",b="suspendedYield",x="executing",E="completed",d={};function U(){}function F(){}function O(){}var q={};m(q,f,function(){return this});var C=Object.getPrototypeOf,A=C&&C(C(W([])));A&&A!==a&&u.call(A,f)&&(q=A);var _=O.prototype=U.prototype=Object.create(q);function I(e){["next","throw","return"].forEach(function(t){m(e,t,function(r){return this._invoke(t,r)})})}function R(e,t){function r(o,c,y,g){var w=L(e[o],e,c);if(w.type!=="throw"){var G=w.arg,P=G.value;return P&&typeof P=="object"&&u.call(P,"__await")?t.resolve(P.__await).then(function(k){r("next",k,y,g)},function(k){r("throw",k,y,g)}):t.resolve(P).then(function(k){G.value=k,y(G)},function(k){return r("throw",k,y,g)})}g(w.arg)}var s;p(this,"_invoke",{value:function(o,c){function y(){return new t(function(g,w){r(o,c,g,w)})}return s=s?s.then(y,y):y()}})}function X(e,t,r){var s=D;return function(o,c){if(s===x)throw new Error("Generator is already running");if(s===E){if(o==="throw")throw c;return{value:n,done:!0}}for(r.method=o,r.arg=c;;){var y=r.delegate;if(y){var g=Y(y,r);if(g){if(g===d)continue;return g}}if(r.method==="next")r.sent=r._sent=r.arg;else if(r.method==="throw"){if(s===D)throw s=E,r.arg;r.dispatchException(r.arg)}else r.method==="return"&&r.abrupt("return",r.arg);s=x;var w=L(e,t,r);if(w.type==="normal"){if(s=r.done?E:b,w.arg===d)continue;return{value:w.arg,done:r.done}}w.type==="throw"&&(s=E,r.method="throw",r.arg=w.arg)}}}function Y(e,t){var r=t.method,s=e.iterator[r];if(s===n)return t.delegate=null,r==="throw"&&e.iterator.return&&(t.method="return",t.arg=n,Y(e,t),t.method==="throw")||r!=="return"&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=L(s,e.iterator,t.arg);if(o.type==="throw")return t.method="throw",t.arg=o.arg,t.delegate=null,d;var c=o.arg;return c?c.done?(t[e.resultName]=c.value,t.next=e.nextLoc,t.method!=="return"&&(t.method="next",t.arg=n),t.delegate=null,d):c:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function Z(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Z,this),this.reset(!0)}function W(e){if(e||e===""){var t=e[f];if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length)){var r=-1,s=function o(){for(;++r<e.length;)if(u.call(e,r))return o.value=e[r],o.done=!1,o;return o.value=n,o.done=!0,o};return s.next=s}}throw new TypeError(typeof e+" is not iterable")}return F.prototype=O,p(_,"constructor",{value:O,configurable:!0}),p(O,"constructor",{value:F,configurable:!0}),F.displayName=m(O,l,"GeneratorFunction"),i.isGeneratorFunction=function(e){var t=typeof e=="function"&&e.constructor;return!!t&&(t===F||(t.displayName||t.name)==="GeneratorFunction")},i.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,m(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},i.awrap=function(e){return{__await:e}},I(R.prototype),m(R.prototype,v,function(){return this}),i.AsyncIterator=R,i.async=function(e,t,r,s,o){o===void 0&&(o=Promise);var c=new R(j(e,t,r,s),o);return i.isGeneratorFunction(t)?c:c.next().then(function(y){return y.done?y.value:c.next()})},I(_),m(_,l,"Generator"),m(_,f,function(){return this}),m(_,"toString",function(){return"[object Generator]"}),i.keys=function(e){var t=Object(e),r=[];for(var s in t)r.push(s);return r.reverse(),function o(){for(;r.length;){var c=r.pop();if(c in t)return o.value=c,o.done=!1,o}return o.done=!0,o}},i.values=W,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(B),!e)for(var t in this)t.charAt(0)==="t"&&u.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(w,G){return c.type="throw",c.arg=e,t.next=w,G&&(t.method="next",t.arg=n),!!G}for(var s=this.tryEntries.length-1;s>=0;--s){var o=this.tryEntries[s],c=o.completion;if(o.tryLoc==="root")return r("end");if(o.tryLoc<=this.prev){var y=u.call(o,"catchLoc"),g=u.call(o,"finallyLoc");if(y&&g){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(y){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r];if(s.tryLoc<=this.prev&&u.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var o=s;break}}o&&(e==="break"||e==="continue")&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=e,c.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(c)},complete:function(e,t){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),B(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var s=r.completion;if(s.type==="throw"){var o=s.arg;B(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:W(e),resultName:t,nextLoc:r},this.method==="next"&&(this.arg=n),d}},i}function z(n,i,a,u,p,h,f){try{var v=n[h](f),l=v.value}catch(m){a(m);return}v.done?i(l):Promise.resolve(l).then(u,p)}function V(n){return function(){var i=this,a=arguments;return new Promise(function(u,p){var h=n.apply(i,a);function f(l){z(h,u,p,f,v,"next",l)}function v(l){z(h,u,p,f,v,"throw",l)}f(void 0)})}}function S(){return S=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(n[u]=a[u])}return n},S.apply(this,arguments)}function et(n,i){var a=n.scope,u=n.startDate,p=n.endDate,h=n.metrics,f=n.dimensions,v=n.dimensionFilters,l=n.timeDimension,m=n.orderBy,j=n.limit,L=n.offset,D=n.emptyRows,b=i.customDimensionsConfig,x=f!=null&&f.length&&b?rt(f,b):f,E=b?nt(v,b):v;return S({},i,{httpMethod:"POST",params:{scope:a,dateRange:{startDate:u,endDate:p},metrics:h,dimensions:x,dimensionFilters:E,timeDimension:l,orderBy:m,limit:j,offset:L,emptyRows:D}})}function rt(n,i){return n.map(function(a){var u=i[a];return u?"dimension"+u:a})}function nt(n,i){return n===void 0&&(n=[]),n.map(function(a){var u=i[a.name];return u?S({},a,{name:"dimension"+u}):a})}var J;function ot(n,i,a){return(J=J||V(T().mark(function u(p,h,f){var v,l,m,j,L,D,b,x;return T().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return v=et(h,f),l=v.authentication,m=v.httpMethod,j=v.params,L=v.hubApiUrl,D={headers:{"Content-Type":"application/json",Authorization:""+l?.token},method:m,body:JSON.stringify(j)},b=M({host:L||"https://hub.arcgis.com",path:"/api/telemetry/v1/"+p.replace(/^\//,"")}),d.next=5,fetch(b,D);case 5:if(x=d.sent,x.ok){d.next=8;break}throw new $("Error! status: ",b,x.status);case 8:return d.abrupt("return",x.json());case 9:case"end":return d.stop()}},u)}))).apply(this,arguments)}var Q;function st(n,i){return(Q=Q||V(T().mark(function a(u,p){var h,f;return T().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,ot("/report",u,p);case 2:if(h=l.sent,f=p.customDimensionsConfig,!it(u.dimensions,f)){l.next=6;break}return l.abrupt("return",ut(h,f));case 6:return l.abrupt("return",h);case 7:case"end":return l.stop()}},a)}))).apply(this,arguments)}function it(n,i){return!n||!i?!1:n.some(function(a){return Object.keys(i).includes(a)})}function at(n){return n===void 0&&(n={}),Object.keys(n).reduce(function(i,a){return i["dimension"+n[a]]=a,i},{})}function ut(n,i){var a=n.data,u=at(i);return n.data=a.map(function(p){return Object.keys(p).reduce(function(h,f){return f.includes("dimension")?h[u[f]]=p[f]:h[f]=p[f],h},{})}),n}var H;(function(n){n.sessions="session-activity:count",n.custom="other-events:count",n["page-views"]="page-views:count",n["session-activity"]="session-activity:average"})(H||(H={}));var K;(function(n){n.hour="hour",n.day="day",n.week="week",n.month="month"})(K||(K={}));function ct(n){return Object.entries(n).filter(function(i){var a=i[1];return typeof a=="string"}).map(function(i){var a=i[0],u=i[1];return{name:a,any:[u]}})}export{st as a,H as b,K as c,ct as d};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.33/esri/copyright.txt for details.
|
|
3
|
+
v0.33.0 */
|
|
4
|
+
import{a as m}from"./VN5DHRZ6.js";import{c as u,d as T}from"./GXRIZGO4.js";import{e as d}from"./7I3CDZNB.js";import{a as g}from"./JJUHHDQA.js";async function b(n,o){for(let a=0;a<n.length;a++)await o(n[a],a,n)}function h(n){let o=T(n);if(!o.valid)throw new Error(o.reason);let a=[];for(let e=0;e<o.parts.length;e+=2){let y=u(o.parts[e]);a.push({hubEntityType:y,id:o.parts[e+1]})}return a.reverse()}async function P(n,o,a,e){let y=Date.now(),i={identifier:n,isContained:!1,catalogInfo:{},duration:0};if(!a||a.length===0)return Promise.resolve(i);i.isContained=!0;let E=a.map((t,s,p)=>{let r=s===0,l={id:t.id,hubEntityType:t.hubEntityType,idToFind:r?n:p[s-1].id,entityType:r?g(o):m(p[s-1].hubEntityType)};return t.catalog&&(l.catalog=t.catalog),l});await b(E,async t=>{let s;if(t.catalog)s=d.fromJson(t.catalog,e);else{let r={hubEntityType:t.hubEntityType,prop:"catalog"};s=await d.init(t.id,e,r)}i.catalogInfo[t.id]={id:t.id,hubEntityType:t.hubEntityType,catalog:s.toJson()};let p=await s.contains(t.idToFind,{entityType:t.entityType});p.isContained||(i.isContained=p.isContained,i.reason=`Entity ${t.idToFind} not contained in catalog ${t.id}`)});let c=new Date().getTime();return i.duration=c-y,i}export{b as a,h as b,P as c};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.33/esri/copyright.txt for details.
|
|
3
|
+
v0.33.0 */
|
|
4
|
+
import{a as f}from"./DF5NREKQ.js";import{a as y}from"./EF5YPKIA.js";import{d as x}from"./LMXLWGMJ.js";import{a as g}from"./CVOXRA4U.js";import d from"./3UWJEREB.js";import{a as o}from"./2PF6JHNJ.js";import{f as m}from"./OQS6WYQA.js";import"./VMLOGAKK.js";import"./HB32KL4E.js";import"./HH2BF7CP.js";import"./W6NC2I4K.js";import"./XCANRQIY.js";import"./X6HHQX7O.js";import"./R3WG7ILK.js";import"./GMXQ6EUT.js";import"./PNGUEB2F.js";import"./V2V36OEV.js";import"./YBRX53J2.js";import"./DYUBGKNC.js";import"./C5PWAGV4.js";import"./Z63X2PFB.js";import"./CXNG6RAU.js";import"./LDGPBV5C.js";import"./REMBFBTC.js";import"./H4GIOQ4A.js";import"./UHGOI4Q6.js";import"./SWCXAAYF.js";import{C as c,D as i,E as u,I as r,a as n,d as a,n as s}from"./OQES3ZVC.js";import"./7CPL4FEX.js";import"./HGYBXROP.js";import"./AX2A5GD6.js";import"./NNFZRFL4.js";import"./SYQOZRNG.js";import"./BQ262USN.js";import"./YT4NPF2I.js";import"./TRCVKMP4.js";import"./HEWXZ7CP.js";import"./SDBGS5ZN.js";import"./I7LHG3EK.js";import b from"./GSYQU6PH.js";import"./SROO5Y2V.js";import"./XV642GUL.js";import"./VN5DHRZ6.js";import"./CCSDSQXQ.js";import"./GXRIZGO4.js";import"./VR3YLYWR.js";import"./7I3CDZNB.js";import"./HUPLRH7B.js";import"./ONSXFRPG.js";import"./G2QWMMPX.js";import"./QZYCDIMW.js";import"./2JZCUBQC.js";import"./EGXYLPWZ.js";import"./H3J5UZAH.js";import"./SPUUEAHK.js";import"./GV64QRG7.js";import"./UVL36MNC.js";import"./5C52HLO4.js";import"./WGRY3RX7.js";import"./TCLLKYNN.js";import"./YJZFTILW.js";import"./GTQ6UCQH.js";import"./PRAT5I2C.js";import"./S2TNJJ2N.js";import"./BUEVP3OF.js";import"./ZDBT6LVT.js";import"./LBUN4QJA.js";import"./IYICIO4K.js";import"./2ABOUFTE.js";import"./QPPYM4M5.js";import"./T7ZCAQII.js";import"./DY6UE7SJ.js";import"./JJUHHDQA.js";import"./ZMJ4TI6X.js";import"./BQJLF776.js";import"./PQHRBVD2.js";import"./EWBCYKAB.js";import"./Y4S3Q3Y5.js";import"./H7V2UDD6.js";import"./HUY3Z2KF.js";import"./EVOFS4BO.js";import"./TLKXCWGZ.js";import"./5IS53M6H.js";import"./A7DBY5HF.js";import"./EOXJFCK4.js";import"./TTBYQSZP.js";import"./WBR3VAM7.js";import"./IZNWARBX.js";import"./FOTMRLI5.js";import"./KUL6DBRJ.js";import"./SIBFD3IR.js";import"./RIF5TVMB.js";import"./WMVI62EB.js";import"./LCQTX46N.js";import"./DRWS4VLW.js";import"./Y6CHT37U.js";import"./YJ7E6IMV.js";import"./VRA66I7U.js";import"./ZMGAMZKN.js";import"./RYUSWBGP.js";import"./UQ4A7KUP.js";import"./Z6LYBSRJ.js";import"./KEJN2M66.js";import"./5CQZZRUB.js";import"./FYSDTDQB.js";import"./5JACAK4Z.js";import"./MUBKRH2O.js";import"./LNZKICDM.js";import"./Y4I7GDRI.js";import"./5THG3SWZ.js";import"./KAP6VF57.js";import"./WIHMRX55.js";import"./YTQ3ADCH.js";import"./QITKEE5Y.js";import"./PAPFK4X3.js";import"./Q4EY7C7A.js";import"./66IVO22F.js";import"./2UPNBRVZ.js";import"./CXBCU34Q.js";import"./IAAXCWWR.js";import"./CPFXT4EJ.js";import"./6TVNK76V.js";import"./6MM2VO2Y.js";import"./JZKWOB5P.js";import"./PPQSKWUA.js";import"./5ORTH2EK.js";import"./GPODM7TC.js";import"./JZA7WYDW.js";import"./UPULQ36W.js";import"./M6QBMNBF.js";import"./OOQ3SRJW.js";import"./CFLB2PH4.js";import"./32RARPC4.js";import"./JOXKPSU6.js";import"./NS7L2HU7.js";import"./L77IR6FU.js";import"./L6C3C6M4.js";export default $arcgis.t(([])=>{var h=n`:host{font-family:inherit;display:block;box-sizing:border-box;container-type:inline-size;--hub-layout-spacing-x: 1.5rem;--hub-layout-spacing-y: 1rem}#layout-container{contain:layout;padding:0;margin:0;box-sizing:border-box}arcgis-layout-section{box-sizing:border-box;display:flex;flex-direction:column;padding-block:var(--hub-layout-spacing-y);gap:var(--hub-layout-spacing-y);justify-content:space-between;margin:0 auto}arcgis-layout-section.section,arcgis-layout-section.section-fluid,arcgis-layout-section.section-sm,arcgis-layout-section.section-md,arcgis-layout-section.section-lg,arcgis-layout-section.section-xl,arcgis-layout-section.section-xxl{width:100%;padding-inline:calc(var(--hub-layout-spacing-x) * .5)}arcgis-nav-card{calcite-tabs{margin-inline:-4px}calcite-tab{>arcgis-layout-section.section,>arcgis-layout-section.section-fluid,>arcgis-layout-section.section-sm,>arcgis-layout-section.section-md,>arcgis-layout-section.section-lg,>arcgis-layout-section.section-xl,>arcgis-layout-section.section-xxl{padding-inline:4px;overflow:hidden}}}@container (min-width: 576px){arcgis-layout-section.section,arcgis-layout-section.section-sm{max-width:540px}}@container (min-width: 768px){arcgis-layout-section.section,arcgis-layout-section.section-sm,arcgis-layout-section.section-md{max-width:720px}}@container (min-width: 992px){arcgis-layout-section.section,arcgis-layout-section.section-sm,arcgis-layout-section.section-md,arcgis-layout-section.section-lg{max-width:960px}}@container (min-width: 1200px){arcgis-layout-section.section,arcgis-layout-section.section-sm,arcgis-layout-section.section-md,arcgis-layout-section.section-lg,arcgis-layout-section.section-xl{max-width:1140px}}@container (min-width: 1440px){arcgis-layout-section.section,arcgis-layout-section.section-sm,arcgis-layout-section.section-md,arcgis-layout-section.section-lg,arcgis-layout-section.section-xl,arcgis-layout-section.section-xxl{max-width:1320px}}arcgis-layout-row{display:flex;flex-wrap:wrap;box-sizing:border-box;margin-inline:calc(var(--hub-layout-spacing-x) * -.5);row-gap:var(--hub-layout-spacing-y)}arcgis-layout-row.align-items-start{align-items:flex-start}arcgis-layout-row.align-items-end{align-items:flex-end}arcgis-layout-row.align-items-center{align-items:center}arcgis-layout-row.align-items-baseline{align-items:baseline}arcgis-layout-row.align-items-stretch{align-items:stretch}arcgis-layout-column{display:flex;flex-direction:column;gap:1rem;box-sizing:border-box;flex:0 0;max-width:100%;padding-inline:calc(var(--hub-layout-spacing-x) * .5)}arcgis-layout-section.no-gutters{padding-inline:0}arcgis-hub-layout-row.align-items-stretch>arcgis-layout-column>*,arcgis-hub-layout-row.align-self-stretch>arcgis-layout-column>*{height:100%}arcgis-layout-column.col,arcgis-layout-column:not([class*=col-]){flex:1 1 0%;max-width:100%}arcgis-layout-column[class^=col-md-],arcgis-layout-column[class^=col-lg-],arcgis-layout-column[class^=col-xl-]{flex:1 1 100%;max-width:100%}arcgis-layout-column.col-1{flex:1 1 100%;max-width:8.333333%}arcgis-layout-column.col-2{flex:1 1 100%;max-width:16.666667%}arcgis-layout-column.col-3{flex:1 1 100%;max-width:25%}arcgis-layout-column.col-4{flex:1 1 100%;max-width:33.333333%}arcgis-layout-column.col-5{flex:1 1 100%;max-width:41.666667%}arcgis-layout-column.col-6{flex:1 1 100%;max-width:50%}arcgis-layout-column.col-7{flex:1 1 100%;max-width:58.333333%}arcgis-layout-column.col-8{flex:1 1 100%;max-width:66.666667%}arcgis-layout-column.col-9{flex:1 1 100%;max-width:75%}arcgis-layout-column.col-10{flex:1 1 100%;max-width:83.333333%}arcgis-layout-column.col-11{flex:1 1 100%;max-width:91.666667%}arcgis-layout-column.col-12{flex:1 1 100%;max-width:100%}@container (min-width: 576px){arcgis-layout-column.col-sm-1{flex:0 0 8.333333%;max-width:8.333333%}arcgis-layout-column.col-sm-2{flex:0 0 16.666667%;max-width:16.666667%}arcgis-layout-column.col-sm-3{flex:0 0 25%;max-width:25%}arcgis-layout-column.col-sm-4{flex:0 0 33.333333%;max-width:33.333333%}arcgis-layout-column.col-sm-5{flex:0 0 41.666667%;max-width:41.666667%}arcgis-layout-column.col-sm-6{flex:0 0 50%;max-width:50%}arcgis-layout-column.col-sm-7{flex:0 0 58.333333%;max-width:58.333333%}arcgis-layout-column.col-sm-8{flex:0 0 66.666667%;max-width:66.666667%}arcgis-layout-column.col-sm-9{flex:0 0 75%;max-width:75%}arcgis-layout-column.col-sm-10{flex:0 0 83.333333%;max-width:83.333333%}arcgis-layout-column.col-sm-11{flex:0 0 91.666667%;max-width:91.666667%}arcgis-layout-column.col-sm-12{flex:0 0 100%;max-width:100%}}@container (min-width: 768px){arcgis-layout-column.col-md-1{flex:0 0 8.333333%;max-width:8.333333%}arcgis-layout-column.col-md-2{flex:0 0 16.666667%;max-width:16.666667%}arcgis-layout-column.col-md-3{flex:0 0 25%;max-width:25%}arcgis-layout-column.col-md-4{flex:0 0 33.333333%;max-width:33.333333%}arcgis-layout-column.col-md-5{flex:0 0 41.666667%;max-width:41.666667%}arcgis-layout-column.col-md-6{flex:0 0 50%;max-width:50%}arcgis-layout-column.col-md-7{flex:0 0 58.333333%;max-width:58.333333%}arcgis-layout-column.col-md-8{flex:0 0 66.666667%;max-width:66.666667%}arcgis-layout-column.col-md-9{flex:0 0 75%;max-width:75%}arcgis-layout-column.col-md-10{flex:0 0 83.333333%;max-width:83.333333%}arcgis-layout-column.col-md-11{flex:0 0 91.666667%;max-width:91.666667%}arcgis-layout-column.col-md-12{flex:0 0 100%;max-width:100%}}@container (min-width: 992px){arcgis-layout-column.col-lg-1{flex:0 0 8.333333%;max-width:8.333333%}arcgis-layout-column.col-lg-2{flex:0 0 16.666667%;max-width:16.666667%}arcgis-layout-column.col-lg-3{flex:0 0 25%;max-width:25%}arcgis-layout-column.col-lg-4{flex:0 0 33.333333%;max-width:33.333333%}arcgis-layout-column.col-lg-5{flex:0 0 41.666667%;max-width:41.666667%}arcgis-layout-column.col-lg-6{flex:0 0 50%;max-width:50%}arcgis-layout-column.col-lg-7{flex:0 0 58.333333%;max-width:58.333333%}arcgis-layout-column.col-lg-8{flex:0 0 66.666667%;max-width:66.666667%}arcgis-layout-column.col-lg-9{flex:0 0 75%;max-width:75%}arcgis-layout-column.col-lg-10{flex:0 0 83.333333%;max-width:83.333333%}arcgis-layout-column.col-lg-11{flex:0 0 91.666667%;max-width:91.666667%}arcgis-layout-column.col-lg-12{flex:0 0 100%;max-width:100%}}@container (min-width: 1440px){arcgis-layout-column.col-xxl-1{flex:0 0 8.333333%;max-width:8.333333%}arcgis-layout-column.col-xxl-2{flex:0 0 16.666667%;max-width:16.666667%}arcgis-layout-column.col-xxl-3{flex:0 0 25%;max-width:25%}arcgis-layout-column.col-xxl-4{flex:0 0 33.333333%;max-width:33.333333%}arcgis-layout-column.col-xxl-5{flex:0 0 41.666667%;max-width:41.666667%}arcgis-layout-column.col-xxl-6{flex:0 0 50%;max-width:50%}arcgis-layout-column.col-xxl-7{flex:0 0 58.333333%;max-width:58.333333%}arcgis-layout-column.col-xxl-8{flex:0 0 66.666667%;max-width:66.666667%}arcgis-layout-column.col-xxl-9{flex:0 0 75%;max-width:75%}arcgis-layout-column.col-xxl-10{flex:0 0 83.333333%;max-width:83.333333%}arcgis-layout-column.col-xxl-11{flex:0 0 91.666667%;max-width:91.666667%}arcgis-layout-column.col-xxl-12{flex:0 0 100%;max-width:100%}}arcgis-layout-column.offset-1{margin-left:8.333333%}arcgis-layout-column.offset-2{margin-left:16.666667%}arcgis-layout-column.offset-3{margin-left:25%}arcgis-layout-column.offset-4{margin-left:33.333333%}arcgis-layout-column.offset-5{margin-left:41.666667%}arcgis-layout-column.offset-6{margin-left:50%}arcgis-layout-column.offset-7{margin-left:58.333333%}arcgis-layout-column.offset-8{margin-left:66.666667%}arcgis-layout-column.offset-9{margin-left:75%}arcgis-layout-column.offset-10{margin-left:83.333333%}arcgis-layout-column.offset-11{margin-left:91.666667%}arcgis-layout-column.offset-12{margin-left:100%}@container (min-width: 576px){arcgis-layout-column.offset-sm-1{margin-left:8.333333%}arcgis-layout-column.offset-sm-2{margin-left:16.666667%}arcgis-layout-column.offset-sm-3{margin-left:25%}arcgis-layout-column.offset-sm-4{margin-left:33.333333%}arcgis-layout-column.offset-sm-5{margin-left:41.666667%}arcgis-layout-column.offset-sm-6{margin-left:50%}arcgis-layout-column.offset-sm-7{margin-left:58.333333%}arcgis-layout-column.offset-sm-8{margin-left:66.666667%}arcgis-layout-column.offset-sm-9{margin-left:75%}arcgis-layout-column.offset-sm-10{margin-left:83.333333%}arcgis-layout-column.offset-sm-11{margin-left:91.666667%}arcgis-layout-column.offset-sm-12{margin-left:100%}}@container (min-width: 768px){arcgis-layout-column.offset-md-1{margin-left:8.333333%}arcgis-layout-column.offset-md-2{margin-left:16.666667%}arcgis-layout-column.offset-md-3{margin-left:25%}arcgis-layout-column.offset-md-4{margin-left:33.333333%}arcgis-layout-column.offset-md-5{margin-left:41.666667%}arcgis-layout-column.offset-md-6{margin-left:50%}arcgis-layout-column.offset-md-7{margin-left:58.333333%}arcgis-layout-column.offset-md-8{margin-left:66.666667%}arcgis-layout-column.offset-md-9{margin-left:75%}arcgis-layout-column.offset-md-10{margin-left:83.333333%}arcgis-layout-column.offset-md-11{margin-left:91.666667%}arcgis-layout-column.offset-md-12{margin-left:100%}}@container (min-width: 992px){arcgis-layout-column.offset-lg-1{margin-left:8.333333%}arcgis-layout-column.offset-lg-2{margin-left:16.666667%}arcgis-layout-column.offset-lg-3{margin-left:25%}arcgis-layout-column.offset-lg-4{margin-left:33.333333%}arcgis-layout-column.offset-lg-5{margin-left:41.666667%}arcgis-layout-column.offset-lg-6{margin-left:50%}arcgis-layout-column.offset-lg-7{margin-left:58.333333%}arcgis-layout-column.offset-lg-8{margin-left:66.666667%}arcgis-layout-column.offset-lg-9{margin-left:75%}arcgis-layout-column.offset-lg-10{margin-left:83.333333%}arcgis-layout-column.offset-lg-11{margin-left:91.666667%}arcgis-layout-column.offset-lg-12{margin-left:100%}}@container (min-width: 1200px){arcgis-layout-column.offset-xl-1{margin-left:8.333333%}arcgis-layout-column.offset-xl-2{margin-left:16.666667%}arcgis-layout-column.offset-xl-3{margin-left:25%}arcgis-layout-column.offset-xl-4{margin-left:33.333333%}arcgis-layout-column.offset-xl-5{margin-left:41.666667%}arcgis-layout-column.offset-xl-6{margin-left:50%}arcgis-layout-column.offset-xl-7{margin-left:58.333333%}arcgis-layout-column.offset-xl-8{margin-left:66.666667%}arcgis-layout-column.offset-xl-9{margin-left:75%}arcgis-layout-column.offset-xl-10{margin-left:83.333333%}arcgis-layout-column.offset-xl-11{margin-left:91.666667%}arcgis-layout-column.offset-xl-12{margin-left:100%}}@container (min-width: 1440px){arcgis-layout-column.offset-xxl-1{margin-left:8.333333%}arcgis-layout-column.offset-xxl-2{margin-left:16.666667%}arcgis-layout-column.offset-xxl-3{margin-left:25%}arcgis-layout-column.offset-xxl-4{margin-left:33.333333%}arcgis-layout-column.offset-xxl-5{margin-left:41.666667%}arcgis-layout-column.offset-xxl-6{margin-left:50%}arcgis-layout-column.offset-xxl-7{margin-left:58.333333%}arcgis-layout-column.offset-xxl-8{margin-left:66.666667%}arcgis-layout-column.offset-xxl-9{margin-left:75%}arcgis-layout-column.offset-xxl-10{margin-left:83.333333%}arcgis-layout-column.offset-xxl-11{margin-left:91.666667%}arcgis-layout-column.offset-xxl-12{margin-left:100%}}arcgis-layout-column.align-self-auto{align-self:auto}arcgis-layout-column.align-self-baseline{align-self:baseline}arcgis-layout-column.align-self-start{align-self:flex-start}arcgis-layout-column.align-self-center{align-self:center}arcgis-layout-column.align-self-end{align-self:flex-end}arcgis-layout-column.align-self-stretch{align-self:stretch}@container (min-width: 576px){arcgis-layout-column.align-self-sm-auto{align-self:auto}arcgis-layout-column.align-self-sm-baseline{align-self:baseline}arcgis-layout-column.align-self-sm-start{align-self:flex-start}arcgis-layout-column.align-self-sm-center{align-self:center}arcgis-layout-column.align-self-sm-end{align-self:flex-end}arcgis-layout-column.align-self-sm-stretch{align-self:stretch}}@container (min-width: 768px){arcgis-layout-column.align-self-md-auto{align-self:auto}arcgis-layout-column.align-self-md-baseline{align-self:baseline}arcgis-layout-column.align-self-md-start{align-self:flex-start}arcgis-layout-column.align-self-md-center{align-self:center}arcgis-layout-column.align-self-md-end{align-self:flex-end}arcgis-layout-column.align-self-md-stretch{align-self:stretch}}@container (min-width: 992px){arcgis-layout-column.align-self-lg-auto{align-self:auto}arcgis-layout-column.align-self-lg-baseline{align-self:baseline}arcgis-layout-column.align-self-lg-start{align-self:flex-start}arcgis-layout-column.align-self-lg-center{align-self:center}arcgis-layout-column.align-self-lg-end{align-self:flex-end}arcgis-layout-column.align-self-lg-stretch{align-self:stretch}}@container (min-width: 1200px){arcgis-layout-column.align-self-xl-auto{align-self:auto}arcgis-layout-column.align-self-xl-baseline{align-self:baseline}arcgis-layout-column.align-self-xl-start{align-self:flex-start}arcgis-layout-column.align-self-xl-center{align-self:center}arcgis-layout-column.align-self-xl-end{align-self:flex-end}arcgis-layout-column.align-self-xl-stretch{align-self:stretch}}@container (min-width: 1440px){arcgis-layout-column.align-self-xxl-auto{align-self:auto}arcgis-layout-column.align-self-xxl-baseline{align-self:baseline}arcgis-layout-column.align-self-xxl-start{align-self:flex-start}arcgis-layout-column.align-self-xxl-center{align-self:center}arcgis-layout-column.align-self-xxl-end{align-self:flex-end}arcgis-layout-column.align-self-xxl-stretch{align-self:stretch}}arcgis-layout-column.align-items-baseline{align-items:baseline}arcgis-layout-column.align-items-center{align-items:center}arcgis-layout-column.align-items-end{align-items:flex-end}arcgis-layout-column.align-items-start{align-items:flex-start}arcgis-layout-column.align-items-stretch{align-items:stretch}@container (min-width: 576px){arcgis-layout-column.align-items-sm-baseline{align-items:baseline}arcgis-layout-column.align-items-sm-start{align-items:flex-start}arcgis-layout-column.align-items-sm-center{align-items:center}arcgis-layout-column.align-items-sm-end{align-items:flex-end}arcgis-layout-column.align-items-sm-stretch{align-items:stretch}}@container (min-width: 768px){arcgis-layout-column.align-items-md-baseline{align-items:baseline}arcgis-layout-column.align-items-md-start{align-items:flex-start}arcgis-layout-column.align-items-md-center{align-items:center}arcgis-layout-column.align-items-md-end{align-items:flex-end}arcgis-layout-column.align-items-md-stretch{align-items:stretch}}@container (min-width: 992px){arcgis-layout-column.align-items-lg-baseline{align-items:baseline}arcgis-layout-column.align-items-lg-start{align-items:flex-start}arcgis-layout-column.align-items-lg-center{align-items:center}arcgis-layout-column.align-items-lg-end{align-items:flex-end}arcgis-layout-column.align-items-lg-stretch{align-items:stretch}}@container (min-width: 1200px){arcgis-layout-column.align-items-xl-baseline{align-items:baseline}arcgis-layout-column.align-items-xl-start{align-items:flex-start}arcgis-layout-column.align-items-xl-center{align-items:center}arcgis-layout-column.align-items-xl-end{align-items:flex-end}arcgis-layout-column.align-items-xl-stretch{align-items:stretch}}@container (min-width: 1440px){arcgis-layout-column.align-items-xxl-baseline{align-items:baseline}arcgis-layout-column.align-items-xxl-start{align-items:flex-start}arcgis-layout-column.align-items-xxl-center{align-items:center}arcgis-layout-column.align-items-xxl-end{align-items:flex-end}arcgis-layout-column.align-items-xxl-stretch{align-items:stretch}}arcgis-layout-column.justify-content-start{justify-content:flex-start}arcgis-layout-column.justify-content-end{justify-content:flex-end}arcgis-layout-column.justify-content-center{justify-content:center}arcgis-layout-column.justify-content-between{justify-content:space-between}arcgis-layout-column.justify-content-around{justify-content:space-around}arcgis-layout-column.justify-content-evenly{justify-content:space-evenly}@container (min-width: 576px){arcgis-layout-column.justify-content-sm-start{justify-content:flex-start}arcgis-layout-column.justify-content-sm-end{justify-content:flex-end}arcgis-layout-column.justify-content-sm-center{justify-content:center}arcgis-layout-column.justify-content-sm-between{justify-content:space-between}arcgis-layout-column.justify-content-sm-around{justify-content:space-around}arcgis-layout-column.justify-content-sm-evenly{justify-content:space-evenly}}@container (min-width: 768px){arcgis-layout-column.justify-content-md-start{justify-content:flex-start}arcgis-layout-column.justify-content-md-end{justify-content:flex-end}arcgis-layout-column.justify-content-md-center{justify-content:center}arcgis-layout-column.justify-content-md-between{justify-content:space-between}arcgis-layout-column.justify-content-md-around{justify-content:space-around}arcgis-layout-column.justify-content-md-evenly{justify-content:space-evenly}}@container (min-width: 992px){arcgis-layout-column.justify-content-lg-start{justify-content:flex-start}arcgis-layout-column.justify-content-lg-end{justify-content:flex-end}arcgis-layout-column.justify-content-lg-center{justify-content:center}arcgis-layout-column.justify-content-lg-between{justify-content:space-between}arcgis-layout-column.justify-content-lg-around{justify-content:space-around}arcgis-layout-column.justify-content-lg-evenly{justify-content:space-evenly}}@container (min-width: 1200px){arcgis-layout-column.justify-content-xl-start{justify-content:flex-start}arcgis-layout-column.justify-content-xl-end{justify-content:flex-end}arcgis-layout-column.justify-content-xl-center{justify-content:center}arcgis-layout-column.justify-content-xl-between{justify-content:space-between}arcgis-layout-column.justify-content-xl-around{justify-content:space-around}arcgis-layout-column.justify-content-xl-evenly{justify-content:space-evenly}}arcgis-layout-column.shrink{flex:0 0 auto;width:auto;max-width:none}:host([debug]){#layout-container{background-color:pink}@container (min-width: 576px){#layout-container{background-color:orange}}@container (min-width: 768px){#layout-container{background-color:#fafad2}}@container (min-width: 992px){#layout-container{background-color:#90ee90}}@container (min-width: 1200px){#layout-container{background-color:#add8e6}}@container (min-width: 1440px){#layout-container{background-color:violet}}}:host([debug]) arcgis-layout-section{outline:2px solid var(--calcite-color-brand);outline-offset:6px}:host([debug]) arcgis-layout-section.layout-error{outline:4px solid fuchsia;outline-offset:4px;height:50px}:host([debug]) arcgis-layout-section.layout-error:after{content:"!";color:#f0f;font-size:2rem;font-weight:700;position:relative;top:-12px}:host([debug]) arcgis-layout-row{outline:2px solid red;outline-offset:3px}:host([debug]) arcgis-layout-row.layout-error{outline:4px solid fuchsia;outline-offset:2px;height:50px}:host([debug]) arcgis-layout-row.layout-error:after{content:"!";color:#f0f;font-size:2rem;font-weight:700;position:relative;top:8px}:host([debug]) arcgis-layout-column{outline:2px solid green}:host([debug]) arcgis-layout-column.layout-error{outline:4px solid fuchsia;outline-offset:-5px;align-self:stretch}:host([debug]) arcgis-layout-column[debug].layout-error:after{content:"!";color:#f0f;font-size:2rem;font-weight:700;position:relative}:host([debug]) arcgis-layout-column[debug]>.layout-error{outline:4px solid fuchsia;outline-offset:-2px;align-self:stretch;height:40px}:host([debug]) arcgis-layout-column[debug]>.layout-error:after{content:"!";color:#f0f;font-size:1.5rem;font-weight:700;position:relative;top:8px;left:5px}:host([is-edit-mode]) arcgis-layout-column>:not(arcgis-layout-row,arcgis-nav-card){min-height:2.5rem}`,e=class extends c{constructor(){super(...arguments),this.layout=void 0,this.debug=!1,this.isEditMode=!1,this.options={},this.arcgisHubLayoutRendered=s()}static{this.properties={layout:0,debug:7,isEditMode:7,options:0,activatedNode:0}}static{this.styles=h}get _context(){return g()}get _utils(){return{processLayout:async t=>await y(t,this.options,this._context)}}async getCardEl(t){return this.el.shadowRoot?.querySelector(`[data-node-id="${t}"]`)}updated(){requestAnimationFrame(()=>{this.arcgisHubLayoutRendered.emit()})}_getChildClasses(t){return f(t)}renderSection(t){if(x(t))return;let l=t;try{return o(l.id,a`<arcgis-layout-section class=${i(this._getChildClasses(l).join(" "))} .activatedNode=${this.activatedNode} .debug=${this.debug} .isEditMode=${this.isEditMode} .node=${l} style=${u(l.styles)} .utils=${this._utils}></arcgis-layout-section>`)}catch(d){return m.error(`Error rendering section with id ${l.id}:`,d),o(l.id,a`<arcgis-layout-section class=${i({"layout-error":this.debug})} .debug=${this.debug} .node=${{children:[],id:l.id,tag:"arcgis-layout-section"}}></arcgis-layout-section>`)}}renderLayout(){return this.layout?this.layout.sections.map(l=>this.renderSection(l)):void 0}renderLoading(){let t;return this.layout||(t=a`<calcite-loader label=loading scale=l></calcite-loader>`),t}render(){return a`<div id=layout-container>${this.renderLayout()}${this.renderLoading()}</div>`}};r("arcgis-layout",e);return e},b,d)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.33/esri/copyright.txt for details.
|
|
3
|
+
v0.33.0 */
|
|
4
|
+
var c="https://hubcdn.arcgis.com/@esri/hub-components";function i(t,e=[]){let n=["class","data-hmr","hydrated","shareable-on-hover","style",...e];return t.getAttributeNames().reduce((s,r)=>n.includes(r)?s:Object.assign(Object.assign({},s),{[r]:t.getAttribute(r)}),{})}function u(t){return`<link rel="stylesheet" href="${c}/${t}/dist/calcite/calcite.css">
|
|
5
|
+
<script type="module" async src="${c}/${t}/dist/hub-components/hub-components.esm.js"><\/script>`}function a(t){return t.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}function o(t){return Object.entries(t).reduce((e,[n,s])=>{let r=a(n);return[...e,`${r}="${s}"`]},[]).join(" ")}function g(t,e){let n=t.tagName.toLowerCase(),s=t.innerHTML,r=o(e);return`<${n} ${r}>${s}</${n}>`}function p(t){let e=t.tagName.toLowerCase(),n=t.innerHTML;return`<${e} config-url="...">${n}</${e}>`}export{i as a,u as b,g as c,p as d};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.33/esri/copyright.txt for details.
|
|
3
|
+
v0.33.0 */
|
|
4
|
+
var r=a=>{let e;switch(a){case"public":e="globe";break;case"org":e="organization";break;case"shared":e="users";break;case"private":e="user";break}return e};export{r as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.33/esri/copyright.txt for details.
|
|
3
|
+
v0.33.0 */
|
|
4
|
+
import{a as n,b as p}from"./DQ6KZQ2C.js";import{a as u,b as i}from"./HXF4ARQB.js";import{a as o}from"./6MM2VO2Y.js";async function w(s,a,e){let t=o(s),r;switch(t){case"event":r=await n(a,s,e);break;default:r=s,await i(s.id,a,e.requestOptions,s.owner);break}return r}async function f(s,a,e){let t=o(s),r;switch(t){case"event":r=await p(a,s,e);break;default:r=s,await u(s.id,a,e.requestOptions,s.owner);break}return r}export{w as a,f as b};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.33/esri/copyright.txt for details.
|
|
3
|
+
v0.33.0 */
|
|
4
|
+
import{a as c}from"./WIHMRX55.js";import{b as u}from"./YTQ3ADCH.js";import{e as r,h}from"./QITKEE5Y.js";var a=class e{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let s=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(r(`${s} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(r("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(r('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(r('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new e(this.q+"")}addModifier(t){return this.currentModifer?(r(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(r(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(r(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&r("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function m(e,t){let s;typeof e=="string"||e instanceof a?s={httpMethod:"GET",params:{q:e}}:s=c(e,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let i;switch(t){case"item":i="/search";break;case"group":i="/community/groups";break;case"groupContent":if(typeof e!="string"&&!(e instanceof a)&&e.groupId)i=`/content/groups/${e.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":i="/community/users";break;default:i="/portals/self/users/search";break}let p=u(s)+i;return h(p,s).then(o=>(o.nextStart&&o.nextStart!==-1&&(o.nextPage=function(){let n;return typeof e=="string"||e instanceof a?n={q:e,start:o.nextStart}:(n=e,n.start=o.nextStart),m(n,t)}),o))}function g(e){return m(e,"item")}export{a,m as b,g as c};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.33/esri/copyright.txt for details.
|
|
3
|
+
v0.33.0 */
|
|
4
|
+
import{n as c}from"./HUPLRH7B.js";import{b as s}from"./YTQ3ADCH.js";import{h as e}from"./QITKEE5Y.js";function g(r){let o=`${s(r)}/community/groups/${r.id}/join`;return e(o,r)}function f(r){let o=`${s(r)}/community/groups/${r.id}/leave`;return e(o,r)}async function l(r,o,i){let t;try{return t=await c(o,r,i),t.followersGroupId}catch(n){throw new Error(`Error fetching entity followers group ID: ${n}`)}}async function w(r,o,i,t){let n;return typeof r=="string"?n=await l(r,i,t):n=r.followersGroupId,!!o.groups.find(a=>a.id===n)}async function y(r,o,i,t){if(await w(r,o,i,t))return Promise.reject("User is already following this entity.");let u=await l(r,i,t);try{return await g({id:u,authentication:t.hubRequestOptions.authentication}),{success:!0,username:o.username}}catch(a){throw new Error(`Error joining group: ${a}`)}}async function E(r,o,i,t){if(!await w(r,o,i,t))return Promise.reject("User is not following this entity.");let u=await l(r,i,t);try{return await f({id:u,authentication:t.hubRequestOptions.authentication}),{success:!0,username:o.username}}catch(a){throw new Error(`Error leaving group: ${a}`)}}export{l as a,w as b,y as c,E as d};
|