@esri/hub-web-components 0.12.4 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/22BVVS45.js +4 -0
- package/dist/cdn/22KLMUMX.js +4 -0
- package/dist/cdn/22KNHML7.js +4 -0
- package/dist/cdn/22U5TR2O.js +4 -0
- package/dist/cdn/23WAPALJ.js +4 -0
- package/dist/cdn/2A2B5HYT.js +4 -0
- package/dist/cdn/2AQFQGVA.js +4 -0
- package/dist/cdn/2BXWIHSJ.js +4 -0
- package/dist/cdn/2DHJEA4R.js +4 -0
- package/dist/cdn/2FBOEGBD.js +4 -0
- package/dist/cdn/2JFYMKAJ.js +4 -0
- package/dist/cdn/2JXZSQW4.js +16 -0
- package/dist/cdn/2KJOAQSG.js +4 -0
- package/dist/cdn/2L3LZEQA.js +4 -0
- package/dist/cdn/2PRSAXJV.js +4 -0
- package/dist/cdn/2R2TVFZF.js +4 -0
- package/dist/cdn/2RRSN2PS.js +4 -0
- package/dist/cdn/2X4BJKG7.js +4 -0
- package/dist/cdn/2YHCXP56.js +4 -0
- package/dist/cdn/33LS37HN.js +4 -0
- package/dist/cdn/34L55HV7.js +4 -0
- package/dist/cdn/35SM5TP6.js +4 -0
- package/dist/cdn/3BK6FEHB.js +4 -0
- package/dist/cdn/3DJK77GV.js +4 -0
- package/dist/cdn/3H2XVCUA.js +4 -0
- package/dist/cdn/3JNZKALP.js +5 -0
- package/dist/cdn/3JQFOVPN.js +4 -0
- package/dist/cdn/3LYU7GQV.js +4 -0
- package/dist/cdn/3TKT33QR.js +4 -0
- package/dist/cdn/3TYPOE5X.js +4 -0
- package/dist/cdn/3VAZACF5.js +4 -0
- package/dist/cdn/3XBX2VBB.js +4 -0
- package/dist/cdn/43GYHEV3.js +4 -0
- package/dist/cdn/44IHBUAZ.js +4 -0
- package/dist/cdn/46NA4CHE.js +4 -0
- package/dist/cdn/47DVYEBK.js +4 -0
- package/dist/cdn/4BRO2AVB.js +4 -0
- package/dist/cdn/4DHRAVXA.js +4 -0
- package/dist/cdn/4DKGVE4Z.js +4 -0
- package/dist/cdn/4DZQUZ5U.js +4 -0
- package/dist/cdn/4F75G5NR.js +4 -0
- package/dist/cdn/4G6FK5HA.js +4 -0
- package/dist/cdn/4HK7PNUI.js +4 -0
- package/dist/cdn/4HROUK62.js +4 -0
- package/dist/cdn/4IFEVO7E.js +4 -0
- package/dist/cdn/4TYPWALT.js +4 -0
- package/dist/cdn/4U3GHYJ2.js +4 -0
- package/dist/cdn/4UE4WELF.js +4 -0
- package/dist/cdn/4VDAONXX.js +4 -0
- package/dist/cdn/4VSWQM3V.js +4 -0
- package/dist/cdn/4ZCQG4KD.js +4 -0
- package/dist/cdn/56GUCTAF.js +4 -0
- package/dist/cdn/56RHBRLX.js +4 -0
- package/dist/cdn/57G44J3J.js +4 -0
- package/dist/cdn/5AV2EUV3.js +4 -0
- package/dist/cdn/5BAYYQ5X.js +4 -0
- package/dist/cdn/5CWJU6RW.js +4 -0
- package/dist/cdn/5EEYWGMQ.js +4 -0
- package/dist/cdn/5EFAHS6A.js +59 -0
- package/dist/cdn/5HSV2LXE.js +4 -0
- package/dist/cdn/5INRNCIF.js +4 -0
- package/dist/cdn/5J3QTUB3.js +4 -0
- package/dist/cdn/5J5IVZ25.js +4 -0
- package/dist/cdn/5KBR6TL7.js +4 -0
- package/dist/cdn/5KG5GSFA.js +4 -0
- package/dist/cdn/5KHXLSNZ.js +4 -0
- package/dist/cdn/5LD66IBJ.js +4 -0
- package/dist/cdn/5LNMPOSU.js +4 -0
- package/dist/cdn/5MFKDKPI.js +4 -0
- package/dist/cdn/5MRCP2VJ.js +4 -0
- package/dist/cdn/5OWRLEIY.js +11 -0
- package/dist/cdn/5P7Y7FRU.js +4 -0
- package/dist/cdn/5QUJZ5SS.js +4 -0
- package/dist/cdn/5RYO6L3G.js +4 -0
- package/dist/cdn/5VQVC4QF.js +4 -0
- package/dist/cdn/5WDRIQCG.js +4 -0
- package/dist/cdn/5WJTNLD5.js +4 -0
- package/dist/cdn/5YXGJVEE.js +4 -0
- package/dist/cdn/5Z2UH4XD.js +4 -0
- package/dist/cdn/5ZXZF2JP.js +4 -0
- package/dist/cdn/62G2DFL2.js +4 -0
- package/dist/cdn/62I5K7TZ.js +41 -0
- package/dist/cdn/62M4WKMB.js +4 -0
- package/dist/cdn/63AKASWS.js +4 -0
- package/dist/cdn/66XLFAGL.js +4 -0
- package/dist/cdn/672VG6AM.js +4 -0
- package/dist/cdn/67K6Z22L.js +4 -0
- package/dist/cdn/67WT4HLZ.js +4 -0
- package/dist/cdn/6ABLFZCS.js +4 -0
- package/dist/cdn/6AEVM2ZJ.js +4 -0
- package/dist/cdn/6ARLE33F.js +4 -0
- package/dist/cdn/6I7DM3LK.js +4 -0
- package/dist/cdn/6J3QVY4G.js +4 -0
- package/dist/cdn/6K5RAOVH.js +4 -0
- package/dist/cdn/6K5V2I5L.js +4 -0
- package/dist/cdn/6K6RI3QE.js +4 -0
- package/dist/cdn/6K6WKPZQ.js +4 -0
- package/dist/cdn/6LLO3GDI.js +4 -0
- package/dist/cdn/6N54EYC3.js +4 -0
- package/dist/cdn/6NCNGMYZ.js +4 -0
- package/dist/cdn/6OCROZV4.js +4 -0
- package/dist/cdn/6P3RKMCV.js +4 -0
- package/dist/cdn/6P4GZSUJ.js +4 -0
- package/dist/cdn/6PBUIYKP.js +4 -0
- package/dist/cdn/6QDKPPXO.js +4 -0
- package/dist/cdn/6QHM4JX3.js +4 -0
- package/dist/cdn/6RO7I7V7.js +4 -0
- package/dist/cdn/6RUG7WKH.js +4 -0
- package/dist/cdn/6TDKUCJW.js +4 -0
- package/dist/cdn/6WCOGUXU.js +4 -0
- package/dist/cdn/6X5J3RMA.js +4 -0
- package/dist/cdn/6XHEADA3.js +4 -0
- package/dist/cdn/6XYDUWTZ.js +4 -0
- package/dist/cdn/72UN6B64.js +4 -0
- package/dist/cdn/73GZFDLD.js +4 -0
- package/dist/cdn/744WWEJP.js +4 -0
- package/dist/cdn/75IHQG2X.js +4 -0
- package/dist/cdn/77KHZHVY.js +4 -0
- package/dist/cdn/7A7MM5M6.js +4 -0
- package/dist/cdn/7AVD4HSH.js +4 -0
- package/dist/cdn/7BS5JU4R.js +4 -0
- package/dist/cdn/7BWZGM37.js +4 -0
- package/dist/cdn/7DQNQTET.js +4 -0
- package/dist/cdn/7EZSEWT3.js +4 -0
- package/dist/cdn/7FCQMEWY.js +4 -0
- package/dist/cdn/7FVDTFO5.js +4 -0
- package/dist/cdn/7IR3BQUS.js +4 -0
- package/dist/cdn/7IXFNRRQ.js +4 -0
- package/dist/cdn/7J3CCYDL.js +4 -0
- package/dist/cdn/7JBQMLC6.js +4 -0
- package/dist/cdn/7JFLHOXQ.js +4 -0
- package/dist/cdn/7JPJFQDM.js +4 -0
- package/dist/cdn/7M6PWETM.js +4 -0
- package/dist/cdn/7NFLNZHW.js +4 -0
- package/dist/cdn/7OMQGXTT.js +4 -0
- package/dist/cdn/7OYQMW36.js +4 -0
- package/dist/cdn/7QBCZMW5.js +4 -0
- package/dist/cdn/7QUHNBFX.js +4 -0
- package/dist/cdn/7RO2EUMQ.js +4 -0
- package/dist/cdn/7RTTSP6V.js +4 -0
- package/dist/cdn/7RU2JRPK.js +4 -0
- package/dist/cdn/7S7LGGUA.js +4 -0
- package/dist/cdn/7SVQFZUA.js +4 -0
- package/dist/cdn/7UPOQLIX.js +4 -0
- package/dist/cdn/7WLDVEOM.js +4 -0
- package/dist/cdn/7WVVQCX5.js +4 -0
- package/dist/cdn/A3NEWPXF.js +4 -0
- package/dist/cdn/A4OJY5AQ.js +4 -0
- package/dist/cdn/A4ZBGD5O.js +4 -0
- package/dist/cdn/A5GVAFEK.js +4 -0
- package/dist/cdn/A5HPY7H3.js +4 -0
- package/dist/cdn/A5MT46LE.js +4 -0
- package/dist/cdn/A6B6M6IC.js +4 -0
- package/dist/cdn/ACBS3MNR.js +4 -0
- package/dist/cdn/AE3YP3DS.js +4 -0
- package/dist/cdn/AEC3TCO4.js +4 -0
- package/dist/cdn/AFTVC3MS.js +4 -0
- package/dist/cdn/AK6XJTYJ.js +4 -0
- package/dist/cdn/AO6S265A.js +4 -0
- package/dist/cdn/AODOE7CF.js +4 -0
- package/dist/cdn/AOYA5CH5.js +4 -0
- package/dist/cdn/APRI7FIM.js +4 -0
- package/dist/cdn/APSS2Y4K.js +4 -0
- package/dist/cdn/AQP6ETJZ.js +4 -0
- package/dist/cdn/ARKS3QSQ.js +4 -0
- package/dist/cdn/ASSROV6X.js +4 -0
- package/dist/cdn/ATBDURTD.js +4 -0
- package/dist/cdn/AYPK6P2W.js +4 -0
- package/dist/cdn/B7D5PIHU.js +4 -0
- package/dist/cdn/BB4VIFK3.js +4 -0
- package/dist/cdn/BI3DYR2J.js +5 -0
- package/dist/cdn/BKHUA4EN.js +4 -0
- package/dist/cdn/BKYETMUH.js +4 -0
- package/dist/cdn/BOWY5J5N.js +4 -0
- package/dist/cdn/BSMZSC3Y.js +4 -0
- package/dist/cdn/BSRAKE5W.js +4 -0
- package/dist/cdn/BTME3TPF.js +4 -0
- package/dist/cdn/BUHDSOCM.js +4 -0
- package/dist/cdn/BX776ZS6.js +4 -0
- package/dist/cdn/BYUIBLXK.js +4 -0
- package/dist/cdn/C25ZZZR2.js +4 -0
- package/dist/cdn/C354FODK.js +4 -0
- package/dist/cdn/C3RTUV5O.js +4 -0
- package/dist/cdn/C43CRZWM.js +59 -0
- package/dist/cdn/C44U2OB4.js +4 -0
- package/dist/cdn/C4BUEHCI.js +4 -0
- package/dist/cdn/C5POZEKH.js +4 -0
- package/dist/cdn/C6CCUU6L.js +4 -0
- package/dist/cdn/C6ZD5KKD.js +4 -0
- package/dist/cdn/C73E4E2E.js +4 -0
- package/dist/cdn/C7AYSIOJ.js +4 -0
- package/dist/cdn/CA673E3Z.js +4 -0
- package/dist/cdn/CB4FKWZK.js +5 -0
- package/dist/cdn/CC77QXQM.js +4 -0
- package/dist/cdn/CEHNODNL.js +4 -0
- package/dist/cdn/CFQXTKFT.js +4 -0
- package/dist/cdn/CGOC64QV.js +4 -0
- package/dist/cdn/CJYFMZFQ.js +4 -0
- package/dist/cdn/CKZHUXNQ.js +4 -0
- package/dist/cdn/CLY4X4EN.js +4 -0
- package/dist/cdn/CMLGB5T2.js +4 -0
- package/dist/cdn/COVS2GLW.js +4 -0
- package/dist/cdn/CTB2KANG.js +4 -0
- package/dist/cdn/CTUQQTUP.js +4 -0
- package/dist/cdn/CX4UVJ4R.js +4 -0
- package/dist/cdn/D337YWJZ.js +4 -0
- package/dist/cdn/D3GCE3ND.js +4 -0
- package/dist/cdn/D4763FAP.js +4 -0
- package/dist/cdn/D4GA6N3R.js +4 -0
- package/dist/cdn/D5EONY7N.js +4 -0
- package/dist/cdn/DAW2MCJN.js +4 -0
- package/dist/cdn/DCMUYRON.js +4 -0
- package/dist/cdn/DCWYGZNN.js +4 -0
- package/dist/cdn/DDTNJKR4.js +4 -0
- package/dist/cdn/DEZWQAMQ.js +4 -0
- package/dist/cdn/DFDA74PW.js +4 -0
- package/dist/cdn/DH3FQHDF.js +4 -0
- package/dist/cdn/DHX4PK3V.js +4 -0
- package/dist/cdn/DIKYIPRX.js +4 -0
- package/dist/cdn/DKGDIOYH.js +4 -0
- package/dist/cdn/DLTRVV62.js +4 -0
- package/dist/cdn/DN6WLBHD.js +4 -0
- package/dist/cdn/DO6ESWID.js +4 -0
- package/dist/cdn/DP7NOJZ5.js +4 -0
- package/dist/cdn/DQXKKOBB.js +4 -0
- package/dist/cdn/DSQJTUZR.js +4 -0
- package/dist/cdn/DSTT3RNS.js +4 -0
- package/dist/cdn/DTBYT7B3.js +4 -0
- package/dist/cdn/DWBLFAWO.js +4 -0
- package/dist/cdn/DZHKZSWF.js +4 -0
- package/dist/cdn/E47WSUZX.js +4 -0
- package/dist/cdn/E5UAZFQS.js +4 -0
- package/dist/cdn/E5ZQLXWB.js +4 -0
- package/dist/cdn/E6A5O2SE.js +4 -0
- package/dist/cdn/E6DGCAEH.js +4 -0
- package/dist/cdn/EAGKC6YU.js +4 -0
- package/dist/cdn/EAOFGZDD.js +4 -0
- package/dist/cdn/ECCH5F5Q.js +4 -0
- package/dist/cdn/ECFJKPKF.js +4 -0
- package/dist/cdn/EDPJQ6O7.js +4 -0
- package/dist/cdn/EEI6L7I4.js +4 -0
- package/dist/cdn/EESXBBLN.js +4 -0
- package/dist/cdn/EGBO3YSD.js +4 -0
- package/dist/cdn/EKQ64J5K.js +4 -0
- package/dist/cdn/EOHOFS3L.js +4 -0
- package/dist/cdn/EP3W3Q3M.js +4 -0
- package/dist/cdn/ETJLA5EK.js +4 -0
- package/dist/cdn/EV2JXOA6.js +4 -0
- package/dist/cdn/EWRFEQYU.js +4 -0
- package/dist/cdn/EXU3U5Z7.js +4 -0
- package/dist/cdn/EY3XHDQ7.js +4 -0
- package/dist/cdn/F2DYTMUU.js +4 -0
- package/dist/cdn/FB47VYJE.js +4 -0
- package/dist/cdn/FBBDA7U5.js +4 -0
- package/dist/cdn/FBHZFLUE.js +4 -0
- package/dist/cdn/FCWS4IJC.js +4 -0
- package/dist/cdn/FDWJKPKE.js +4 -0
- package/dist/cdn/FGYVTYHF.js +4 -0
- package/dist/cdn/FH7R7SKX.js +4 -0
- package/dist/cdn/FJTKWLFQ.js +4 -0
- package/dist/cdn/FKDK2TET.js +4 -0
- package/dist/cdn/FM43NFJN.js +4 -0
- package/dist/cdn/FMQYK4GL.js +4 -0
- package/dist/cdn/FORQ67CP.js +4 -0
- package/dist/cdn/FRCUZULR.js +4 -0
- package/dist/cdn/FTL6O3Q5.js +4 -0
- package/dist/cdn/FTLZ7UVZ.js +4 -0
- package/dist/cdn/FU7DZMSY.js +4 -0
- package/dist/cdn/FZT3PHG2.js +5 -0
- package/dist/cdn/G5SQ4J4J.js +4 -0
- package/dist/cdn/G65CYRHZ.js +4 -0
- package/dist/cdn/G7OIHTEW.js +4 -0
- package/dist/cdn/GC5IHDG2.js +4 -0
- package/dist/cdn/GCVAR6C3.js +4 -0
- package/dist/cdn/GDMBWK3C.js +4 -0
- package/dist/cdn/GDXJ75VJ.js +4 -0
- package/dist/cdn/GFCNUOH2.js +4 -0
- package/dist/cdn/GHSNF5A5.js +4 -0
- package/dist/cdn/GICMV6T3.js +4 -0
- package/dist/cdn/GILLOMJR.js +4 -0
- package/dist/cdn/GK34X7UX.js +4 -0
- package/dist/cdn/GLMLCIUG.js +4 -0
- package/dist/cdn/GNQFPPG3.js +4 -0
- package/dist/cdn/GOYRZLHW.js +4 -0
- package/dist/cdn/GR7IOR6B.js +4 -0
- package/dist/cdn/GREJ47N2.js +4 -0
- package/dist/cdn/GRILS63E.js +4 -0
- package/dist/cdn/GSWS7GXK.js +4 -0
- package/dist/cdn/GUJII33O.js +4 -0
- package/dist/cdn/GZKQANXW.js +4 -0
- package/dist/cdn/H3BC27SD.js +4 -0
- package/dist/cdn/H4XHK3AC.js +4 -0
- package/dist/cdn/H5IMAPXO.js +4 -0
- package/dist/cdn/H6P2CIOU.js +4 -0
- package/dist/cdn/HCRPG3LA.js +4 -0
- package/dist/cdn/HG3NKY2P.js +4 -0
- package/dist/cdn/HI4W4L45.js +4 -0
- package/dist/cdn/HIF53QHJ.js +4 -0
- package/dist/cdn/HIVAODRS.js +4 -0
- package/dist/cdn/HJTKQEFU.js +4 -0
- package/dist/cdn/HKMJUKWA.js +4 -0
- package/dist/cdn/HLGTHHBD.js +4 -0
- package/dist/cdn/HNGSZ3C4.js +4 -0
- package/dist/cdn/HOPTJ767.js +4 -0
- package/dist/cdn/HPBGHT2D.js +4 -0
- package/dist/cdn/HPTIW7FT.js +4 -0
- package/dist/cdn/HSYAQQZL.js +4 -0
- package/dist/cdn/HW3U4DNV.js +4 -0
- package/dist/cdn/I2E5ROHI.js +4 -0
- package/dist/cdn/I2HU2VTL.js +4 -0
- package/dist/cdn/I436D37I.js +4 -0
- package/dist/cdn/I5QPOSEF.js +4 -0
- package/dist/cdn/IAAN4ODM.js +4 -0
- package/dist/cdn/ICHV62FC.js +4 -0
- package/dist/cdn/IEKINDUK.js +4 -0
- package/dist/cdn/IGYKPYHR.js +4 -0
- package/dist/cdn/IJTUO52R.js +4 -0
- package/dist/cdn/IQRQRTDA.js +4 -0
- package/dist/cdn/IRQH4SGB.js +4 -0
- package/dist/cdn/ITDUI6ZI.js +4 -0
- package/dist/cdn/ITZPX3EO.js +4 -0
- package/dist/cdn/IUABQPWP.js +24 -0
- package/dist/cdn/IV46NMNM.js +5 -0
- package/dist/cdn/IYEJ36PT.js +4 -0
- package/dist/cdn/J7BHFO4R.js +4 -0
- package/dist/cdn/J7XK3YZJ.js +4 -0
- package/dist/cdn/JB4TKJMI.js +4 -0
- package/dist/cdn/JBY7Y4K6.js +4 -0
- package/dist/cdn/JDU67WKF.js +4 -0
- package/dist/cdn/JJRKG76I.js +4 -0
- package/dist/cdn/JJWKT4ED.js +4 -0
- package/dist/cdn/JKEDHTY4.js +4 -0
- package/dist/cdn/JKZGO72Z.js +4 -0
- package/dist/cdn/JLI5LHYE.js +4 -0
- package/dist/cdn/JLMFWKL6.js +4 -0
- package/dist/cdn/JN5KMJNX.js +4 -0
- package/dist/cdn/JNFH4UQD.js +4 -0
- package/dist/cdn/JTSGVRHV.js +4 -0
- package/dist/cdn/JTZP4HRO.js +4 -0
- package/dist/cdn/JVTHWYQR.js +4 -0
- package/dist/cdn/JWC7SBDV.js +4 -0
- package/dist/cdn/JXYXY4BW.js +4 -0
- package/dist/cdn/JY6NP6BO.js +4 -0
- package/dist/cdn/JYQCINX2.js +4 -0
- package/dist/cdn/JZL35I6A.js +4 -0
- package/dist/cdn/K3IRREKY.js +12 -0
- package/dist/cdn/K3NLKF3V.js +4 -0
- package/dist/cdn/K3X7AUNF.js +4 -0
- package/dist/cdn/K3YTLXAB.js +4 -0
- package/dist/cdn/K46ZWJSV.js +4 -0
- package/dist/cdn/K4JFRJB3.js +4 -0
- package/dist/cdn/K4OMVMKC.js +4 -0
- package/dist/cdn/K65BNBIQ.js +4 -0
- package/dist/cdn/K6XLEUN2.js +4 -0
- package/dist/cdn/KAYJ5M5I.js +4 -0
- package/dist/cdn/KETEXK4H.js +4 -0
- package/dist/cdn/KFNCQSWK.js +4 -0
- package/dist/cdn/KGVUZWJJ.js +4 -0
- package/dist/cdn/KK55JYYL.js +4 -0
- package/dist/cdn/KMY33SWW.js +4 -0
- package/dist/cdn/KQN5RBX2.js +4 -0
- package/dist/cdn/KSANEHGK.js +4 -0
- package/dist/cdn/KT5MNF6F.js +4 -0
- package/dist/cdn/KTPCS4DB.js +4 -0
- package/dist/cdn/KUWQJXGW.js +4 -0
- package/dist/cdn/KXCUHEV5.js +4 -0
- package/dist/cdn/KZMZAWDI.js +4 -0
- package/dist/cdn/LB4GHBHE.js +4 -0
- package/dist/cdn/LCODDIGD.js +51 -0
- package/dist/cdn/LEXC2XLO.js +4 -0
- package/dist/cdn/LFVLBUXX.js +4 -0
- package/dist/cdn/LL5DVVLP.js +4 -0
- package/dist/cdn/LLFPFIWD.js +4 -0
- package/dist/cdn/LLWZPA3V.js +4 -0
- package/dist/cdn/LMMS6HAF.js +4 -0
- package/dist/cdn/LOJQPXPZ.js +4 -0
- package/dist/cdn/LP6FFL6L.js +4 -0
- package/dist/cdn/LSAQ2EN6.js +4 -0
- package/dist/cdn/LWQY6CI3.js +4 -0
- package/dist/cdn/LXAZXVMB.js +4 -0
- package/dist/cdn/LZJBMSFO.js +9 -0
- package/dist/cdn/LZRFZ2BY.js +4 -0
- package/dist/cdn/M2QB4PKU.js +4 -0
- package/dist/cdn/M37RDWLY.js +4 -0
- package/dist/cdn/M3BJTBQ3.js +4 -0
- package/dist/cdn/M3ZOO6WU.js +4 -0
- package/dist/cdn/M4PZ5YR2.js +4 -0
- package/dist/cdn/M6G2WUB2.js +52 -0
- package/dist/cdn/M6G56TXZ.js +4 -0
- package/dist/cdn/MCUK7Q63.js +4 -0
- package/dist/cdn/MDB6BDKW.js +4 -0
- package/dist/cdn/ME64HO3F.js +4 -0
- package/dist/cdn/MFF3JAUL.js +4 -0
- package/dist/cdn/MFM3CGL4.js +4 -0
- package/dist/cdn/MFP4RAZJ.js +4 -0
- package/dist/cdn/MGUI3E7N.js +4 -0
- package/dist/cdn/MI2TLPF6.js +4 -0
- package/dist/cdn/MK6T3DM4.js +4 -0
- package/dist/cdn/MKF5SMP7.js +4 -0
- package/dist/cdn/MKS7MV46.js +4 -0
- package/dist/cdn/MKXWZOJU.js +4 -0
- package/dist/cdn/MLG5W3LH.js +4 -0
- package/dist/cdn/MM4UYP4W.js +4 -0
- package/dist/cdn/MOHRFKXA.js +4 -0
- package/dist/cdn/MQTA3I5C.js +4 -0
- package/dist/cdn/MQUYJMV3.js +4 -0
- package/dist/cdn/MQXADBR7.js +4 -0
- package/dist/cdn/MVMKCTRS.js +4 -0
- package/dist/cdn/MXVRMG6A.js +4 -0
- package/dist/cdn/MXY2RNET.js +4 -0
- package/dist/cdn/N2KNG6CX.js +4 -0
- package/dist/cdn/N2T5DYBZ.js +4 -0
- package/dist/cdn/N42LYDNL.js +4 -0
- package/dist/cdn/N6VMMIUA.js +4 -0
- package/dist/cdn/NAW3RAVU.js +4 -0
- package/dist/cdn/NE3OADHY.js +4 -0
- package/dist/cdn/NE4EZOP3.js +4 -0
- package/dist/cdn/NIQVIU3H.js +4 -0
- package/dist/cdn/NKQRQ4F5.js +4 -0
- package/dist/cdn/NKYBH4HW.js +6 -0
- package/dist/cdn/NMHB62K5.js +4 -0
- package/dist/cdn/NNH5MUWE.js +4 -0
- package/dist/cdn/NPM7OWN2.js +4 -0
- package/dist/cdn/NSWO3NKN.js +4 -0
- package/dist/cdn/NXHP6Q2V.js +4 -0
- package/dist/cdn/NYFJWZNA.js +4 -0
- package/dist/cdn/NZHM4Q4B.js +4 -0
- package/dist/cdn/O24HC4W5.js +4 -0
- package/dist/cdn/OE6T5GN4.js +4 -0
- package/dist/cdn/OFGOMONR.js +4 -0
- package/dist/cdn/OG7SFZJA.js +4 -0
- package/dist/cdn/OIYJV7SB.js +4 -0
- package/dist/cdn/OJG6YJU2.js +4 -0
- package/dist/cdn/OJGADDZX.js +4 -0
- package/dist/cdn/OKK3UBCP.js +4 -0
- package/dist/cdn/OLNXYM47.js +4 -0
- package/dist/cdn/OLP4YNLV.js +4 -0
- package/dist/cdn/OPE7JTTE.js +4 -0
- package/dist/cdn/OPZUQV25.js +4 -0
- package/dist/cdn/OQH3BND5.js +4 -0
- package/dist/cdn/ORYOBWHN.js +4 -0
- package/dist/cdn/OSHVE4DC.js +4 -0
- package/dist/cdn/OTFPBMTW.js +4 -0
- package/dist/cdn/OURNK6QZ.js +4 -0
- package/dist/cdn/OXINDUQD.js +4 -0
- package/dist/cdn/P2AOZOA3.js +4 -0
- package/dist/cdn/P2D7WEMP.js +4 -0
- package/dist/cdn/P35K2RQ4.js +4 -0
- package/dist/cdn/P4MXSDZZ.js +4 -0
- package/dist/cdn/P5YKT2E4.js +4 -0
- package/dist/cdn/P5YVCJ76.js +4 -0
- package/dist/cdn/P6JAXX4U.js +4 -0
- package/dist/cdn/PH2FZWCE.js +4 -0
- package/dist/cdn/PIBXDILC.js +4 -0
- package/dist/cdn/PKEWV6AV.js +4 -0
- package/dist/cdn/PNWIFTI5.js +4 -0
- package/dist/cdn/POQ2BQVQ.js +4 -0
- package/dist/cdn/PRHD7LTV.js +4 -0
- package/dist/cdn/PSHRDPMT.js +4 -0
- package/dist/cdn/PSMMF3M2.js +4 -0
- package/dist/cdn/PUAZLJVT.js +4 -0
- package/dist/cdn/PZLJBXRN.js +4 -0
- package/dist/cdn/Q3UD52EG.js +4 -0
- package/dist/cdn/QBHUQMWL.js +4 -0
- package/dist/cdn/QCWR7RUV.js +4 -0
- package/dist/cdn/QIMZUYG3.js +4 -0
- package/dist/cdn/QJMMM6L6.js +4 -0
- package/dist/cdn/QJOUS35R.js +4 -0
- package/dist/cdn/QMB3FDAJ.js +4 -0
- package/dist/cdn/QNZ7PPS6.js +4 -0
- package/dist/cdn/QO5JSWW6.js +4 -0
- package/dist/cdn/QP5VTJTI.js +4 -0
- package/dist/cdn/QRC6OLSO.js +4 -0
- package/dist/cdn/QTCFRPCP.js +4 -0
- package/dist/cdn/QVVPK662.js +4 -0
- package/dist/cdn/R3IZQXXB.js +4 -0
- package/dist/cdn/R3JQTSJM.js +5470 -0
- package/dist/cdn/R5UH5STM.js +4 -0
- package/dist/cdn/R6SX4C2P.js +4 -0
- package/dist/cdn/R6VPN2XK.js +4 -0
- package/dist/cdn/RALWLAPJ.js +4 -0
- package/dist/cdn/RBRBWGI3.js +4 -0
- package/dist/cdn/RE3LTR3N.js +6 -0
- package/dist/cdn/REKPLSOS.js +4 -0
- package/dist/cdn/RFUZRLHK.js +4 -0
- package/dist/cdn/RHUCJWCN.js +4 -0
- package/dist/cdn/RIQRSQQT.js +4 -0
- package/dist/cdn/RNPQT27L.js +4 -0
- package/dist/cdn/RQXWNCER.js +4 -0
- package/dist/cdn/RSPMFOEN.js +4 -0
- package/dist/cdn/RWXQ5OJI.js +4 -0
- package/dist/cdn/RYYTQK6L.js +4 -0
- package/dist/cdn/S26SRG5H.js +4 -0
- package/dist/cdn/S2GFW6XZ.js +4 -0
- package/dist/cdn/S5LMP3K5.js +4 -0
- package/dist/cdn/S5NHFWDS.js +4 -0
- package/dist/cdn/S6E3OY7T.js +4 -0
- package/dist/cdn/S7NFU7QR.js +4 -0
- package/dist/cdn/SDNIOQE2.js +4 -0
- package/dist/cdn/SE4S4E4P.js +4 -0
- package/dist/cdn/SEJYKOZW.js +4 -0
- package/dist/cdn/SG3MRQQS.js +4 -0
- package/dist/cdn/SG7SR3LQ.js +4 -0
- package/dist/cdn/SGHLJAPA.js +4 -0
- package/dist/cdn/SGVV7DJZ.js +4 -0
- package/dist/cdn/SIBUFPAM.js +4 -0
- package/dist/cdn/SM6FLGRN.js +4 -0
- package/dist/cdn/SOJKIFJG.js +4 -0
- package/dist/cdn/SP636M4X.js +4 -0
- package/dist/cdn/SQVPXJAG.js +4 -0
- package/dist/cdn/SRH6TH45.js +4 -0
- package/dist/cdn/SUF7BZZR.js +4 -0
- package/dist/cdn/SUIIPLHT.js +4 -0
- package/dist/cdn/SUYL5G5F.js +4 -0
- package/dist/cdn/SWOFPCXW.js +4 -0
- package/dist/cdn/SXBD3OYL.js +4 -0
- package/dist/cdn/SYEKE27I.js +25 -0
- package/dist/cdn/SZ4GW2BF.js +4 -0
- package/dist/cdn/T4DVEGL4.js +4 -0
- package/dist/cdn/T4HWVPMC.js +4 -0
- package/dist/cdn/T5BAO42T.js +4 -0
- package/dist/cdn/T5RPJTNU.js +4 -0
- package/dist/cdn/T66DYIQS.js +6 -0
- package/dist/cdn/T6VV4ONZ.js +4 -0
- package/dist/cdn/TE7Y77CP.js +4 -0
- package/dist/cdn/TETS77HI.js +4 -0
- package/dist/cdn/TEXK6FRJ.js +4 -0
- package/dist/cdn/THK2KIE2.js +4 -0
- package/dist/cdn/TL7CLK2F.js +4 -0
- package/dist/cdn/TM2YVIKX.js +4 -0
- package/dist/cdn/TMHFYR4U.js +4 -0
- package/dist/cdn/TNGWB2Z2.js +12 -0
- package/dist/cdn/TOENTTZN.js +4 -0
- package/dist/cdn/TQMEM7TX.js +4 -0
- package/dist/cdn/TRT7GRU7.js +4 -0
- package/dist/cdn/TSKWZMU2.js +4 -0
- package/dist/cdn/TSSJJZAQ.js +4 -0
- package/dist/cdn/TU2TZIOE.js +4 -0
- package/dist/cdn/TWOXTFL5.js +4 -0
- package/dist/cdn/TY7YFLIP.js +4 -0
- package/dist/cdn/TYOXE2VF.js +4 -0
- package/dist/cdn/U37R6YH5.js +4 -0
- package/dist/cdn/U5IHILSR.js +4 -0
- package/dist/cdn/UCNNVIFH.js +4 -0
- package/dist/cdn/UETQQWJR.js +4 -0
- package/dist/cdn/UFG3BQVX.js +4 -0
- package/dist/cdn/UHYKOVRK.js +4 -0
- package/dist/cdn/UIHTD25G.js +4 -0
- package/dist/cdn/UIZNTSZ4.js +4 -0
- package/dist/cdn/UJ2ONFPP.js +4 -0
- package/dist/cdn/UJNIWZNR.js +4 -0
- package/dist/cdn/UMGKN7XH.js +4 -0
- package/dist/cdn/UNQVM4WC.js +4 -0
- package/dist/cdn/UQWJCH4B.js +4 -0
- package/dist/cdn/UTA3YMOD.js +4 -0
- package/dist/cdn/UU4RSSY6.js +4 -0
- package/dist/cdn/UVVGFBAO.js +4 -0
- package/dist/cdn/UZXXHWUU.js +4 -0
- package/dist/cdn/V2WG2Z2L.js +4 -0
- package/dist/cdn/V3DIUBHR.js +4 -0
- package/dist/cdn/V3E2SKT5.js +4 -0
- package/dist/cdn/V5QVHIYE.js +4 -0
- package/dist/cdn/V6NHKOVW.js +4 -0
- package/dist/cdn/V6QIK44K.js +4 -0
- package/dist/cdn/VAJUPB4H.js +4 -0
- package/dist/cdn/VDKRXFSF.js +8 -0
- package/dist/cdn/VIIB6PRL.js +4 -0
- package/dist/cdn/VJT66KDA.js +4 -0
- package/dist/cdn/VJTJYEXN.js +4 -0
- package/dist/cdn/VLYR64XL.js +4 -0
- package/dist/cdn/VNCTCE3W.js +5 -0
- package/dist/cdn/VQCAEAMG.js +4 -0
- package/dist/cdn/VQQ3WZ42.js +4 -0
- package/dist/cdn/VRDM4I7J.js +4 -0
- package/dist/cdn/VSPWXVBG.js +4 -0
- package/dist/cdn/VST3UOBN.js +4 -0
- package/dist/cdn/VVUHYTPP.js +4 -0
- package/dist/cdn/VWVG4LGD.js +4 -0
- package/dist/cdn/VYJILSFN.js +4 -0
- package/dist/cdn/W2ENVDR4.js +4 -0
- package/dist/cdn/W2VUBLW2.js +4 -0
- package/dist/cdn/W3KZGJKS.js +4 -0
- package/dist/cdn/W4I6EPD5.js +4 -0
- package/dist/cdn/WAE4Y3GA.js +4 -0
- package/dist/cdn/WBARWQE5.js +4 -0
- package/dist/cdn/WEHYONDE.js +4 -0
- package/dist/cdn/WGCSNCQV.js +4 -0
- package/dist/cdn/WHNYGNQK.js +42 -0
- package/dist/cdn/WKEC2XG3.js +4 -0
- package/dist/cdn/WMWUTDRN.js +4 -0
- package/dist/cdn/WP7DDOMM.js +3 -0
- package/dist/cdn/WQ2BTR2G.js +4 -0
- package/dist/cdn/WQHPGOEB.js +4 -0
- package/dist/cdn/WR47QMI3.js +4 -0
- package/dist/cdn/WSDBFWIV.js +4 -0
- package/dist/cdn/WTP62YJ2.js +4 -0
- package/dist/cdn/WTTN2JXJ.js +4 -0
- package/dist/cdn/WY42U3F5.js +4 -0
- package/dist/cdn/X2QAYAXN.js +4 -0
- package/dist/cdn/X37CVCBK.js +4 -0
- package/dist/cdn/X3O37OTI.js +4 -0
- package/dist/cdn/X4H6BN5G.js +4 -0
- package/dist/cdn/X7SNHOQL.js +4 -0
- package/dist/cdn/XACC7WYK.js +4 -0
- package/dist/cdn/XAURY4UO.js +4 -0
- package/dist/cdn/XBRL2JOD.js +4 -0
- package/dist/cdn/XCC736PP.js +4 -0
- package/dist/cdn/XCROLCMJ.js +4 -0
- package/dist/cdn/XEIXFQQD.js +4 -0
- package/dist/cdn/XEKEHUN2.js +4 -0
- package/dist/cdn/XGARGL7T.js +4 -0
- package/dist/cdn/XHGGBDVC.js +4 -0
- package/dist/cdn/XHSY3PRD.js +4 -0
- package/dist/cdn/XIGFML3Z.js +4 -0
- package/dist/cdn/XIMPBRRO.js +4 -0
- package/dist/cdn/XQSXWOFG.js +4 -0
- package/dist/cdn/XRWD4FIL.js +4 -0
- package/dist/cdn/XRY5Q7JW.js +4 -0
- package/dist/cdn/XUCTVEYH.js +4 -0
- package/dist/cdn/XXASVXXG.js +4 -0
- package/dist/cdn/XZFE4EQY.js +4 -0
- package/dist/cdn/Y3QJZSKH.js +4 -0
- package/dist/cdn/Y6EYKJ7Z.js +4 -0
- package/dist/cdn/Y7VLYSJP.js +4 -0
- package/dist/cdn/YKYP2GDN.js +4 -0
- package/dist/cdn/YNIKQBUV.js +4 -0
- package/dist/cdn/YRJDB7GR.js +4 -0
- package/dist/cdn/YTG4YHNU.js +4 -0
- package/dist/cdn/YWTGV5G4.js +4 -0
- package/dist/cdn/YY3QZUH2.js +4 -0
- package/dist/cdn/YYYBBJD3.js +4 -0
- package/dist/cdn/YYYISRZY.js +4 -0
- package/dist/cdn/Z26QDS3O.js +4 -0
- package/dist/cdn/Z3D65JKJ.js +4 -0
- package/dist/cdn/Z3KWQUUZ.js +4 -0
- package/dist/cdn/Z4DKKK7K.js +4 -0
- package/dist/cdn/Z5YYGKT5.js +4 -0
- package/dist/cdn/Z6OTASFO.js +4 -0
- package/dist/cdn/Z7O7LWBJ.js +4 -0
- package/dist/cdn/ZBI72URB.js +4 -0
- package/dist/cdn/ZC2Z7OX6.js +4 -0
- package/dist/cdn/ZCB7MPIU.js +4 -0
- package/dist/cdn/ZFLCJDOO.js +4 -0
- package/dist/cdn/ZFMJNKLO.js +4 -0
- package/dist/cdn/ZHJOKMWX.js +4 -0
- package/dist/cdn/ZJI4DYQK.js +4 -0
- package/dist/cdn/ZKEJBEA4.js +4 -0
- package/dist/cdn/ZKOMPWXX.js +4 -0
- package/dist/cdn/ZLUYGUDE.js +4 -0
- package/dist/cdn/ZQTQQZZH.js +4 -0
- package/dist/cdn/ZRF7EF5V.js +4 -0
- package/dist/cdn/ZSZ2STJE.js +4 -0
- package/dist/cdn/ZUGTLVFI.js +4 -0
- package/dist/cdn/ZWZXXMCN.js +4 -0
- package/dist/cdn/ZX7P5KCX.js +4 -0
- package/dist/cdn/ZZHBLCYL.js +4 -0
- package/dist/cdn/assets/layout-container/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/layout-editor-toolbar/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +3 -3
- package/dist/chunks/chat-action.js +2 -2
- package/dist/chunks/getResponsiveClasses.js +2 -2
- package/dist/chunks/interpolate-translations.js +39 -35
- package/dist/chunks/isNodeVisible.js +2 -2
- package/dist/chunks/memoizeAsync.js +43 -0
- package/dist/chunks/messagesContext.js +8 -0
- package/dist/chunks/migrateTextCard.js +2 -2
- package/dist/chunks/processLayout.js +70 -76
- package/dist/chunks/runtime.js +3 -3
- package/dist/chunks/state.js +2 -2
- package/dist/chunks/typeGuards.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 +2 -2
- package/dist/components/arcgis-chat-ui/functional/chat-status/customElement.js +2 -2
- package/dist/components/arcgis-hub-ai-assistant/customElement.js +2 -2
- package/dist/components/arcgis-hub-entity-associations-card/customElement.js +2 -2
- package/dist/components/arcgis-hub-entity-metrics-card/customElement.js +2 -2
- package/dist/components/arcgis-hub-entity-status-card/customElement.js +2 -2
- package/dist/components/arcgis-layout/customElement.d.ts +1 -1
- package/dist/components/arcgis-layout/customElement.js +6 -6
- package/dist/components/arcgis-layout-column/customElement.d.ts +3 -3
- package/dist/components/arcgis-layout-column/customElement.js +51 -48
- package/dist/components/arcgis-layout-container/customElement.d.ts +10 -0
- package/dist/components/arcgis-layout-container/customElement.js +172 -117
- package/dist/components/arcgis-layout-container/index.d.ts +1 -0
- package/dist/components/arcgis-layout-container/index.js +1 -0
- package/dist/components/arcgis-layout-editor-toolbar/customElement.d.ts +23 -1
- package/dist/components/arcgis-layout-editor-toolbar/customElement.js +24 -17
- package/dist/components/arcgis-layout-editor-toolbar/index.d.ts +1 -0
- package/dist/components/arcgis-layout-editor-toolbar/index.js +1 -0
- package/dist/components/arcgis-layout-node-controls/customElement.d.ts +11 -0
- package/dist/components/arcgis-layout-node-controls/customElement.js +24 -21
- package/dist/components/arcgis-layout-node-controls/index.d.ts +1 -0
- package/dist/components/arcgis-layout-node-controls/index.js +1 -0
- package/dist/components/arcgis-layout-node-editor/customElement.d.ts +2 -6
- package/dist/components/arcgis-layout-node-editor/customElement.js +31 -44
- package/dist/components/arcgis-layout-node-editor/index.d.ts +1 -0
- package/dist/components/arcgis-layout-node-editor/index.js +1 -0
- package/dist/components/arcgis-layout-node-editor/layout-node-editor-dynamic-tag/customElement.d.ts +17 -0
- package/dist/components/arcgis-layout-node-editor/layout-node-editor-dynamic-tag/customElement.js +31 -0
- package/dist/components/arcgis-layout-node-editor/layout-node-editor-dynamic-tag/index.d.ts +4 -0
- package/dist/components/arcgis-layout-node-editor/layout-node-editor-dynamic-tag/index.js +4 -0
- package/dist/components/arcgis-layout-node-highlight/customElement.d.ts +19 -0
- package/dist/components/arcgis-layout-node-highlight/customElement.js +171 -0
- package/dist/components/arcgis-layout-node-highlight/index.d.ts +6 -0
- package/dist/components/arcgis-layout-node-highlight/index.js +6 -0
- package/dist/components/arcgis-layout-node-overlay/customElement.js +2 -2
- package/dist/components/arcgis-layout-row/customElement.d.ts +1 -1
- package/dist/components/arcgis-layout-row/customElement.js +20 -20
- package/dist/components/arcgis-layout-section/customElement.d.ts +1 -1
- package/dist/components/arcgis-layout-section/customElement.js +23 -23
- package/dist/components/arcgis-nav-card/customElement.d.ts +19 -1
- package/dist/components/arcgis-nav-card/customElement.js +44 -23
- package/dist/components/arcgis-text-card/customElement.js +26 -10
- package/dist/components/layouts/components/layout-node/customElement.js +43 -40
- package/dist/components/layouts/components/layout-node/index.d.ts +1 -0
- package/dist/components/layouts/components/layout-node/index.js +1 -0
- package/dist/components/layouts/utils/findColumnAndNodeIndex.d.ts +13 -0
- package/dist/components/layouts/utils/findNodeById.d.ts +8 -0
- package/dist/components/layouts/utils/getAddableLayoutNodes.d.ts +11 -0
- package/dist/components/layouts/utils/memoizeAsync.d.ts +6 -0
- package/dist/components/layouts/utils/messagesContext.d.ts +117 -0
- package/dist/docs/api.json +183 -18
- package/dist/docs/docs.json +218 -23
- package/dist/docs/vscode.html-custom-data.json +11 -1
- package/dist/docs/web-types.json +68 -7
- package/dist/embed-config.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/loader.js +13 -12
- package/dist/types/lumina.d.ts +4 -3
- package/dist/types/preact.d.ts +4 -3
- package/dist/types/react.d.ts +4 -3
- package/dist/types/stencil.d.ts +4 -3
- package/package.json +3 -3
- package/dist/cdn/23FPEXOL.js +0 -4
- package/dist/cdn/23KSIAFR.js +0 -4
- package/dist/cdn/23LIGV4B.js +0 -4
- package/dist/cdn/23TGHWZ4.js +0 -4
- package/dist/cdn/25SL52KG.js +0 -4
- package/dist/cdn/25VPYCLD.js +0 -4
- package/dist/cdn/27FXYGL4.js +0 -4
- package/dist/cdn/27RILK5E.js +0 -4
- package/dist/cdn/2ADWBKX2.js +0 -4
- package/dist/cdn/2BYNYJLD.js +0 -4
- package/dist/cdn/2GMCDQQM.js +0 -4
- package/dist/cdn/2HKWXQLA.js +0 -4
- package/dist/cdn/2OCYP6A4.js +0 -4
- package/dist/cdn/2PKH3HUE.js +0 -4
- package/dist/cdn/2PYLWVMR.js +0 -4
- package/dist/cdn/2R6LBG4Z.js +0 -4
- package/dist/cdn/2RD2D3DW.js +0 -4
- package/dist/cdn/2RHBRJGJ.js +0 -4
- package/dist/cdn/2RMUM4KZ.js +0 -4
- package/dist/cdn/2VTXTJ6J.js +0 -4
- package/dist/cdn/2WGCANMN.js +0 -4
- package/dist/cdn/2WWRRZHY.js +0 -4
- package/dist/cdn/2XBOAKMM.js +0 -4
- package/dist/cdn/2Y4JD7I7.js +0 -4
- package/dist/cdn/3252ZNXH.js +0 -4
- package/dist/cdn/344HD4RU.js +0 -4
- package/dist/cdn/35NDFOSN.js +0 -4
- package/dist/cdn/37MXU43C.js +0 -4
- package/dist/cdn/3C5BTBVK.js +0 -4
- package/dist/cdn/3F5JGSGS.js +0 -4
- package/dist/cdn/3G4GHSES.js +0 -4
- package/dist/cdn/3GNKP7PF.js +0 -4
- package/dist/cdn/3HZN4XIQ.js +0 -4
- package/dist/cdn/3J24634G.js +0 -4
- package/dist/cdn/3P7CUM3L.js +0 -4
- package/dist/cdn/3VR5BLX6.js +0 -4
- package/dist/cdn/3WPZVEEE.js +0 -4
- package/dist/cdn/3WVFJYWL.js +0 -9
- package/dist/cdn/3XC2UUST.js +0 -4
- package/dist/cdn/42BFNWJA.js +0 -4
- package/dist/cdn/435GAUEA.js +0 -4
- package/dist/cdn/44VYLWSH.js +0 -4
- package/dist/cdn/45F6EDMC.js +0 -4
- package/dist/cdn/46WCFTUH.js +0 -4
- package/dist/cdn/477OI4PQ.js +0 -4
- package/dist/cdn/4CAHHBRP.js +0 -4
- package/dist/cdn/4CAXMRUO.js +0 -4
- package/dist/cdn/4CAYMFIW.js +0 -4
- package/dist/cdn/4EQHOZLY.js +0 -4
- package/dist/cdn/4FLIEB6T.js +0 -4
- package/dist/cdn/4FP4GXYG.js +0 -4
- package/dist/cdn/4FWOSABS.js +0 -4
- package/dist/cdn/4GI2XNOO.js +0 -4
- package/dist/cdn/4GYJFHP3.js +0 -4
- package/dist/cdn/4HTWY5M3.js +0 -4
- package/dist/cdn/4IYNATFL.js +0 -4
- package/dist/cdn/4KYUCILS.js +0 -4
- package/dist/cdn/4L2ICUSO.js +0 -4
- package/dist/cdn/4NR72LRA.js +0 -4
- package/dist/cdn/4OQBN2X5.js +0 -4
- package/dist/cdn/4PJLFBKU.js +0 -4
- package/dist/cdn/4PRB4BAQ.js +0 -4
- package/dist/cdn/4QYJJMYF.js +0 -4
- package/dist/cdn/4U2UVBFM.js +0 -4
- package/dist/cdn/4VBFIUU5.js +0 -4
- package/dist/cdn/4XSSDMCB.js +0 -4
- package/dist/cdn/54SPMBHA.js +0 -4
- package/dist/cdn/57KCPV5G.js +0 -4
- package/dist/cdn/5BUWXRME.js +0 -4
- package/dist/cdn/5CM7Z4UB.js +0 -4
- package/dist/cdn/5FWR7FJU.js +0 -4
- package/dist/cdn/5GHEAFMD.js +0 -4
- package/dist/cdn/5GUUS2F7.js +0 -4
- package/dist/cdn/5HMMP5RI.js +0 -4
- package/dist/cdn/5J6F4DB2.js +0 -4
- package/dist/cdn/5JG5UMHP.js +0 -4
- package/dist/cdn/5JIDXL5Q.js +0 -4
- package/dist/cdn/5JKSFZRF.js +0 -4
- package/dist/cdn/5KBL76VE.js +0 -4
- package/dist/cdn/5LDSA6K7.js +0 -4
- package/dist/cdn/5LNCT3M7.js +0 -4
- package/dist/cdn/5OB3UOV6.js +0 -4
- package/dist/cdn/5ODU5YNG.js +0 -4
- package/dist/cdn/5PJECOML.js +0 -4
- package/dist/cdn/5PU3BQAE.js +0 -4
- package/dist/cdn/5R5PCKUC.js +0 -4
- package/dist/cdn/5SB4V2PK.js +0 -4
- package/dist/cdn/5VBFZCNJ.js +0 -4
- package/dist/cdn/5VBXRDW7.js +0 -4
- package/dist/cdn/5WAZHBK3.js +0 -4
- package/dist/cdn/5XHOGH3E.js +0 -4
- package/dist/cdn/5YZBJG7K.js +0 -4
- package/dist/cdn/65OLZAGR.js +0 -4
- package/dist/cdn/66DK3JH7.js +0 -4
- package/dist/cdn/6AHBWMSW.js +0 -4
- package/dist/cdn/6DOR4MFT.js +0 -4
- package/dist/cdn/6FEWJT6R.js +0 -4
- package/dist/cdn/6FFGU3X7.js +0 -4
- package/dist/cdn/6GPD6YN4.js +0 -4
- package/dist/cdn/6HI2HIHA.js +0 -4
- package/dist/cdn/6IMUULZW.js +0 -4
- package/dist/cdn/6JEWT3FY.js +0 -4
- package/dist/cdn/6JUGOANH.js +0 -4
- package/dist/cdn/6K4PYCEY.js +0 -4
- package/dist/cdn/6KNBJA2E.js +0 -4
- package/dist/cdn/6KQ4HEYI.js +0 -5
- package/dist/cdn/6LAIWSKY.js +0 -4
- package/dist/cdn/6QJTMWFV.js +0 -4
- package/dist/cdn/6VL7XN3L.js +0 -4
- package/dist/cdn/6WKUDBG4.js +0 -4
- package/dist/cdn/6XFF5F62.js +0 -4
- package/dist/cdn/6ZJJSLDF.js +0 -4
- package/dist/cdn/76YSPSVB.js +0 -4
- package/dist/cdn/77TQIRBA.js +0 -4
- package/dist/cdn/7AF47PA3.js +0 -4
- package/dist/cdn/7C3QA57Y.js +0 -4
- package/dist/cdn/7EU3PQIN.js +0 -4
- package/dist/cdn/7GDSAUR5.js +0 -4
- package/dist/cdn/7HWNBZPX.js +0 -4
- package/dist/cdn/7JEC23K4.js +0 -4
- package/dist/cdn/7JLUWMII.js +0 -4
- package/dist/cdn/7KAOPIQI.js +0 -4
- package/dist/cdn/7M5FBK3I.js +0 -4
- package/dist/cdn/7NPXBOKN.js +0 -4
- package/dist/cdn/7PFUSHSV.js +0 -6
- package/dist/cdn/7PQIQFCL.js +0 -4
- package/dist/cdn/7Q4P5IKL.js +0 -4
- package/dist/cdn/7RVZFHIM.js +0 -4
- package/dist/cdn/7SYIK3Y7.js +0 -4
- package/dist/cdn/7YM7GLQQ.js +0 -4
- package/dist/cdn/7YVMGZAC.js +0 -4
- package/dist/cdn/7ZCZANOZ.js +0 -4
- package/dist/cdn/A2TKV3C2.js +0 -4
- package/dist/cdn/A3KRXKI5.js +0 -4
- package/dist/cdn/A76LBKCM.js +0 -4
- package/dist/cdn/A7ZKFSNB.js +0 -4
- package/dist/cdn/AAFOAZDU.js +0 -4
- package/dist/cdn/AALKWKRC.js +0 -4
- package/dist/cdn/AANAMGNG.js +0 -4
- package/dist/cdn/ABPA7AII.js +0 -4
- package/dist/cdn/AEOQXH3J.js +0 -4
- package/dist/cdn/AFLNH4QG.js +0 -4
- package/dist/cdn/AH7WWFTB.js +0 -9
- package/dist/cdn/AHF3UGJ7.js +0 -4
- package/dist/cdn/AHTWEHCU.js +0 -4
- package/dist/cdn/AJR6XT73.js +0 -4
- package/dist/cdn/AKDXOX7R.js +0 -4
- package/dist/cdn/AO2HFZNQ.js +0 -4
- package/dist/cdn/APBKHC2K.js +0 -4
- package/dist/cdn/AQM52KUU.js +0 -4
- package/dist/cdn/AR565DH2.js +0 -4
- package/dist/cdn/ASJAF3YU.js +0 -4
- package/dist/cdn/ATOBYUNG.js +0 -4
- package/dist/cdn/AW7XNVAX.js +0 -4
- package/dist/cdn/AWN2QKNB.js +0 -4
- package/dist/cdn/AYDCIEZD.js +0 -4
- package/dist/cdn/AZXHIKON.js +0 -4
- package/dist/cdn/B5NZYT7H.js +0 -4
- package/dist/cdn/B6O43NWU.js +0 -59
- package/dist/cdn/B7SS4VTU.js +0 -25
- package/dist/cdn/B7Y7WN6F.js +0 -4
- package/dist/cdn/BBUHJBIJ.js +0 -4
- package/dist/cdn/BCXET74T.js +0 -4
- package/dist/cdn/BDTHNIZL.js +0 -4
- package/dist/cdn/BFBJU54H.js +0 -4
- package/dist/cdn/BG2JOKJZ.js +0 -4
- package/dist/cdn/BID4UXTR.js +0 -4
- package/dist/cdn/BJFY5BFI.js +0 -4
- package/dist/cdn/BLZQW622.js +0 -4
- package/dist/cdn/BN7FMNHX.js +0 -4
- package/dist/cdn/BPH4ZLY4.js +0 -4
- package/dist/cdn/BPRYFVFJ.js +0 -4
- package/dist/cdn/BSQ5T7J4.js +0 -4
- package/dist/cdn/BT54RV47.js +0 -4
- package/dist/cdn/BT6ZLSDL.js +0 -4
- package/dist/cdn/BTTLQ4CV.js +0 -4
- package/dist/cdn/BV4K5SII.js +0 -4
- package/dist/cdn/BW6J6H2W.js +0 -4
- package/dist/cdn/BWZFLJBQ.js +0 -4
- package/dist/cdn/BYNLPCYN.js +0 -4
- package/dist/cdn/C2CMWNHF.js +0 -4
- package/dist/cdn/C5UE7TT4.js +0 -4
- package/dist/cdn/C645J7XF.js +0 -4
- package/dist/cdn/C6UJ7XN7.js +0 -4
- package/dist/cdn/CAXFWUBX.js +0 -4
- package/dist/cdn/CDVSQD7G.js +0 -4
- package/dist/cdn/CEIADXCN.js +0 -4
- package/dist/cdn/CEJZAJS3.js +0 -4
- package/dist/cdn/CETVCUIA.js +0 -4
- package/dist/cdn/CFU6EXYT.js +0 -4
- package/dist/cdn/CFUWYHOS.js +0 -4
- package/dist/cdn/CGSQMC3H.js +0 -4
- package/dist/cdn/CH3Q7TYL.js +0 -4
- package/dist/cdn/CHOE3UNR.js +0 -4
- package/dist/cdn/CJCQODDS.js +0 -4
- package/dist/cdn/CNLCOBUY.js +0 -4
- package/dist/cdn/CNWMOAUW.js +0 -4
- package/dist/cdn/COIMHJVL.js +0 -4
- package/dist/cdn/COKW7KJ3.js +0 -4
- package/dist/cdn/CPJNSN7C.js +0 -4
- package/dist/cdn/CSLRDIBU.js +0 -4
- package/dist/cdn/CWNV4EF2.js +0 -4
- package/dist/cdn/CWRFN2TA.js +0 -4
- package/dist/cdn/CWRP6Q7W.js +0 -4
- package/dist/cdn/CXSCLGBK.js +0 -4
- package/dist/cdn/D4E3QG45.js +0 -4
- package/dist/cdn/D5Q5NC4K.js +0 -4
- package/dist/cdn/D65NU6M5.js +0 -4
- package/dist/cdn/DA6W52QC.js +0 -4
- package/dist/cdn/DBVQQHHS.js +0 -4
- package/dist/cdn/DBXZHOPT.js +0 -4
- package/dist/cdn/DCSP47EL.js +0 -4
- package/dist/cdn/DDFUPNAN.js +0 -5470
- package/dist/cdn/DDQJOU7D.js +0 -4
- package/dist/cdn/DEP6EUDP.js +0 -4
- package/dist/cdn/DFFZMQV6.js +0 -4
- package/dist/cdn/DGWD65Q4.js +0 -4
- package/dist/cdn/DI53PKRX.js +0 -4
- package/dist/cdn/DLY5M2MV.js +0 -4
- package/dist/cdn/DOMI3BBX.js +0 -4
- package/dist/cdn/DOQ5JLRR.js +0 -4
- package/dist/cdn/DQASXNLN.js +0 -4
- package/dist/cdn/DR6ZKWSD.js +0 -4
- package/dist/cdn/DRLYFVKW.js +0 -4
- package/dist/cdn/DTJT6K3V.js +0 -4
- package/dist/cdn/DWSPIG72.js +0 -4
- package/dist/cdn/DXGIWVJP.js +0 -4
- package/dist/cdn/DXJRRXLX.js +0 -4
- package/dist/cdn/E2Z4F24G.js +0 -4
- package/dist/cdn/E4LGQUGN.js +0 -4
- package/dist/cdn/EAMZUQP3.js +0 -4
- package/dist/cdn/EEV7GUYJ.js +0 -4
- package/dist/cdn/EEZHKBWV.js +0 -4
- package/dist/cdn/EJ3WSQYR.js +0 -4
- package/dist/cdn/EJXZJUBN.js +0 -4
- package/dist/cdn/EKTQ2FYT.js +0 -4
- package/dist/cdn/EN4STQCF.js +0 -4
- package/dist/cdn/EOCA5NFW.js +0 -4
- package/dist/cdn/EPV72MRW.js +0 -4
- package/dist/cdn/EUYQAM6V.js +0 -4
- package/dist/cdn/EV4NYMAM.js +0 -4
- package/dist/cdn/EX4VNMV5.js +0 -4
- package/dist/cdn/EXJSK3HK.js +0 -4
- package/dist/cdn/EYLJHX4S.js +0 -4
- package/dist/cdn/F2BVRJFW.js +0 -7
- package/dist/cdn/FA37QSPY.js +0 -4
- package/dist/cdn/FBCSAUR4.js +0 -4
- package/dist/cdn/FBL6UR7B.js +0 -4
- package/dist/cdn/FCFL5QMY.js +0 -4
- package/dist/cdn/FDVBNNKX.js +0 -4
- package/dist/cdn/FFHRRFZR.js +0 -4
- package/dist/cdn/FFMEVRPM.js +0 -4
- package/dist/cdn/FGAZ3CSG.js +0 -4
- package/dist/cdn/FJNM4W55.js +0 -52
- package/dist/cdn/FNULMNCN.js +0 -4
- package/dist/cdn/FOWGAHJS.js +0 -4
- package/dist/cdn/FRTDVXJJ.js +0 -4
- package/dist/cdn/FSCC6ROH.js +0 -4
- package/dist/cdn/FUVQSBV6.js +0 -4
- package/dist/cdn/FW5UMVBS.js +0 -4
- package/dist/cdn/FXXFMU7L.js +0 -4
- package/dist/cdn/FZDLAFDC.js +0 -4
- package/dist/cdn/G2DERSOY.js +0 -4
- package/dist/cdn/G2GZAMO7.js +0 -4
- package/dist/cdn/G2LV4YYG.js +0 -4
- package/dist/cdn/G2NLDIOB.js +0 -4
- package/dist/cdn/G6B3BSEV.js +0 -4
- package/dist/cdn/G76SYRGP.js +0 -4
- package/dist/cdn/GAXNKZEJ.js +0 -4
- package/dist/cdn/GC7NBITI.js +0 -4
- package/dist/cdn/GEGUUCLC.js +0 -4
- package/dist/cdn/GGFB3UGW.js +0 -4
- package/dist/cdn/GIAPZFS6.js +0 -4
- package/dist/cdn/GIM7YFXI.js +0 -4
- package/dist/cdn/GISZ5R7M.js +0 -4
- package/dist/cdn/GK54QAGF.js +0 -4
- package/dist/cdn/GL7474JT.js +0 -4
- package/dist/cdn/GLVGCHZ5.js +0 -4
- package/dist/cdn/GMG3KMRK.js +0 -4
- package/dist/cdn/GNSCGF2N.js +0 -4
- package/dist/cdn/GOZCH75T.js +0 -4
- package/dist/cdn/GPBBRLA5.js +0 -4
- package/dist/cdn/GQ5D7TWI.js +0 -4
- package/dist/cdn/GQODI5KS.js +0 -4
- package/dist/cdn/GQVVUDQG.js +0 -5
- package/dist/cdn/GR46JGMK.js +0 -4
- package/dist/cdn/GSR43W3L.js +0 -4
- package/dist/cdn/GSSIRKAB.js +0 -4
- package/dist/cdn/GU56DQCS.js +0 -4
- package/dist/cdn/GWFF56K3.js +0 -4
- package/dist/cdn/GWI6OHTK.js +0 -4
- package/dist/cdn/GWPZK22I.js +0 -4
- package/dist/cdn/GWYHISS6.js +0 -4
- package/dist/cdn/GZISCV7M.js +0 -4
- package/dist/cdn/H2WZ5V3X.js +0 -4
- package/dist/cdn/H3PTTKXQ.js +0 -5
- package/dist/cdn/H4USHSFW.js +0 -4
- package/dist/cdn/HBJUNACM.js +0 -4
- package/dist/cdn/HC6DLWUO.js +0 -4
- package/dist/cdn/HEHHVURQ.js +0 -4
- package/dist/cdn/HGZNADOI.js +0 -4
- package/dist/cdn/HHM45LOU.js +0 -4
- package/dist/cdn/HHRUQV7Z.js +0 -4
- package/dist/cdn/HI2YFWBX.js +0 -4
- package/dist/cdn/HKR6CIS3.js +0 -4
- package/dist/cdn/HKWSWRYQ.js +0 -4
- package/dist/cdn/HLRLJ232.js +0 -4
- package/dist/cdn/HLSW4QLI.js +0 -3
- package/dist/cdn/HMMGZGN3.js +0 -4
- package/dist/cdn/HPZHINFV.js +0 -4
- package/dist/cdn/HRHMML74.js +0 -4
- package/dist/cdn/HSIL6GVH.js +0 -4
- package/dist/cdn/HUPSMOKD.js +0 -4
- package/dist/cdn/HX5TV57W.js +0 -4
- package/dist/cdn/HX6GOQBA.js +0 -5
- package/dist/cdn/I23O5MSN.js +0 -4
- package/dist/cdn/I2KJVDI3.js +0 -4
- package/dist/cdn/I3E7BHTT.js +0 -4
- package/dist/cdn/I3FGPWCT.js +0 -4
- package/dist/cdn/I5ATKYXK.js +0 -4
- package/dist/cdn/I6AI6N5S.js +0 -4
- package/dist/cdn/I6VOL4US.js +0 -4
- package/dist/cdn/I76OALPJ.js +0 -4
- package/dist/cdn/I7DLQUPD.js +0 -4
- package/dist/cdn/IAN3YZNU.js +0 -4
- package/dist/cdn/IBTUWLQM.js +0 -4
- package/dist/cdn/IC4QGJ6N.js +0 -8
- package/dist/cdn/ICIPAEA4.js +0 -4
- package/dist/cdn/IGIMJS3B.js +0 -4
- package/dist/cdn/IHOPUJYK.js +0 -4
- package/dist/cdn/IIGQANHX.js +0 -4
- package/dist/cdn/IJJHUNJL.js +0 -4
- package/dist/cdn/IKM7POCD.js +0 -4
- package/dist/cdn/ILC5IV45.js +0 -4
- package/dist/cdn/INWN3WXW.js +0 -4
- package/dist/cdn/INX6HPVU.js +0 -4
- package/dist/cdn/IQBHPFXG.js +0 -4
- package/dist/cdn/IQET7ONK.js +0 -4
- package/dist/cdn/IUXINIXR.js +0 -16
- package/dist/cdn/IV4B7AGS.js +0 -4
- package/dist/cdn/IX7SDU64.js +0 -4
- package/dist/cdn/IZA4DJ25.js +0 -4
- package/dist/cdn/J2TF4XYE.js +0 -4
- package/dist/cdn/J4IIOYSA.js +0 -4
- package/dist/cdn/J5XZ6LPV.js +0 -4
- package/dist/cdn/J764QVQM.js +0 -4
- package/dist/cdn/JAUBU6CT.js +0 -4
- package/dist/cdn/JCJDBVCO.js +0 -4
- package/dist/cdn/JDO66I63.js +0 -4
- package/dist/cdn/JF62K5F6.js +0 -4
- package/dist/cdn/JG4API6V.js +0 -4
- package/dist/cdn/JGISOOGA.js +0 -4
- package/dist/cdn/JHO5D5CD.js +0 -4
- package/dist/cdn/JHVUUIIY.js +0 -4
- package/dist/cdn/JIK5X5IO.js +0 -4
- package/dist/cdn/JJ2B7GYY.js +0 -4
- package/dist/cdn/JKFM3NXH.js +0 -4
- package/dist/cdn/JKZX2QQP.js +0 -4
- package/dist/cdn/JLDADXLL.js +0 -4
- package/dist/cdn/JNOQUX2U.js +0 -4
- package/dist/cdn/JQQLQJKX.js +0 -4
- package/dist/cdn/JRN6W7FX.js +0 -4
- package/dist/cdn/JRWPJG2G.js +0 -4
- package/dist/cdn/JTHEZRAN.js +0 -4
- package/dist/cdn/JTRJQUIJ.js +0 -4
- package/dist/cdn/JTUEXKP6.js +0 -4
- package/dist/cdn/JTXRAFHG.js +0 -4
- package/dist/cdn/JVGP3CYC.js +0 -4
- package/dist/cdn/JXNEQUNX.js +0 -4
- package/dist/cdn/K3W3HOHC.js +0 -4
- package/dist/cdn/K7RVZZGI.js +0 -4
- package/dist/cdn/KAHDV7K5.js +0 -4
- package/dist/cdn/KCADSNHH.js +0 -4
- package/dist/cdn/KE53SAE7.js +0 -4
- package/dist/cdn/KFMATAMQ.js +0 -4
- package/dist/cdn/KFW6FYLP.js +0 -4
- package/dist/cdn/KHD7FSMN.js +0 -4
- package/dist/cdn/KHGDMER3.js +0 -4
- package/dist/cdn/KIOGW7HS.js +0 -4
- package/dist/cdn/KJC4YGYY.js +0 -4
- package/dist/cdn/KJLCOJVN.js +0 -4
- package/dist/cdn/KLJPZ753.js +0 -4
- package/dist/cdn/KLU5Z5JT.js +0 -4
- package/dist/cdn/KRGHUM7H.js +0 -4
- package/dist/cdn/KUFAFPF2.js +0 -4
- package/dist/cdn/KUGIFJBX.js +0 -51
- package/dist/cdn/KVD2NTOI.js +0 -4
- package/dist/cdn/KVIJVV5R.js +0 -4
- package/dist/cdn/KVMQ4FM6.js +0 -4
- package/dist/cdn/KVT7ZZNC.js +0 -4
- package/dist/cdn/KYDG43LI.js +0 -4
- package/dist/cdn/L232ZWER.js +0 -4
- package/dist/cdn/L64U5O5H.js +0 -4
- package/dist/cdn/L7RFFCXO.js +0 -4
- package/dist/cdn/LAUBVEK3.js +0 -4
- package/dist/cdn/LBCNAVOP.js +0 -4
- package/dist/cdn/LCECHEGM.js +0 -4
- package/dist/cdn/LDQKMQLR.js +0 -4
- package/dist/cdn/LFGMWEBK.js +0 -4
- package/dist/cdn/LLOWAIHA.js +0 -4
- package/dist/cdn/LNH6QXHM.js +0 -4
- package/dist/cdn/LOK7ARJB.js +0 -4
- package/dist/cdn/LRAK6A7L.js +0 -4
- package/dist/cdn/LS2FUGHA.js +0 -4
- package/dist/cdn/LUGNSHQ5.js +0 -4
- package/dist/cdn/LW3KQCYN.js +0 -4
- package/dist/cdn/LWDWSJ25.js +0 -4
- package/dist/cdn/LWLPZI7O.js +0 -5
- package/dist/cdn/LYE5ZG4K.js +0 -4
- package/dist/cdn/LYNEJYJ2.js +0 -4
- package/dist/cdn/LYOZWQGE.js +0 -4
- package/dist/cdn/LYTXDK2X.js +0 -4
- package/dist/cdn/M36NY6IJ.js +0 -4
- package/dist/cdn/M4JXNPMH.js +0 -4
- package/dist/cdn/MAAGXHNV.js +0 -4
- package/dist/cdn/MAXUTYTZ.js +0 -4
- package/dist/cdn/MB3SKWTR.js +0 -4
- package/dist/cdn/MCXEMJ7U.js +0 -4
- package/dist/cdn/MFI3IY5S.js +0 -4
- package/dist/cdn/MG35JBDL.js +0 -4
- package/dist/cdn/MGC5W2NK.js +0 -4
- package/dist/cdn/MIYPIV7A.js +0 -4
- package/dist/cdn/MK3VKQGT.js +0 -4
- package/dist/cdn/MK5LDTRC.js +0 -4
- package/dist/cdn/MKYQYK63.js +0 -4
- package/dist/cdn/MO7DQC53.js +0 -4
- package/dist/cdn/MPMY3TUO.js +0 -4
- package/dist/cdn/MPWG7ZE7.js +0 -4
- package/dist/cdn/MTRVPMFT.js +0 -4
- package/dist/cdn/MTRYQRYO.js +0 -4
- package/dist/cdn/MVYXSYPA.js +0 -4
- package/dist/cdn/MXUMF2LK.js +0 -4
- package/dist/cdn/N33OXRTY.js +0 -4
- package/dist/cdn/N545727I.js +0 -4
- package/dist/cdn/N5VVYR54.js +0 -4
- package/dist/cdn/NG4X4PDE.js +0 -4
- package/dist/cdn/NGNXQ3IF.js +0 -4
- package/dist/cdn/NHZNJOK4.js +0 -4
- package/dist/cdn/NIUKMU5H.js +0 -4
- package/dist/cdn/NLBJIQIG.js +0 -4
- package/dist/cdn/NPAF4LUU.js +0 -4
- package/dist/cdn/NPDDPMTW.js +0 -4
- package/dist/cdn/NRHGEBBI.js +0 -4
- package/dist/cdn/NRRQRJGD.js +0 -4
- package/dist/cdn/NVFPQOXC.js +0 -4
- package/dist/cdn/NWILY33V.js +0 -4
- package/dist/cdn/NWXMBFKV.js +0 -4
- package/dist/cdn/NYMCJ5MY.js +0 -4
- package/dist/cdn/NYU23MTN.js +0 -4
- package/dist/cdn/O3YBSKUR.js +0 -4
- package/dist/cdn/OCH32KIO.js +0 -6
- package/dist/cdn/ODGMOMQ6.js +0 -4
- package/dist/cdn/ODGNKVGA.js +0 -4
- package/dist/cdn/ODNBAAEH.js +0 -4
- package/dist/cdn/OEUT2LWD.js +0 -4
- package/dist/cdn/OFFGXDQZ.js +0 -4
- package/dist/cdn/OHDSBPYR.js +0 -4
- package/dist/cdn/OJBUZDQP.js +0 -4
- package/dist/cdn/OMZWB435.js +0 -4
- package/dist/cdn/ONMXBGW2.js +0 -4
- package/dist/cdn/OPQO3LJ3.js +0 -4
- package/dist/cdn/ORILJ3ZO.js +0 -4
- package/dist/cdn/OS6EEQFE.js +0 -4
- package/dist/cdn/OSPXZKKF.js +0 -4
- package/dist/cdn/OSRQ4UER.js +0 -4
- package/dist/cdn/OVLWZUXM.js +0 -4
- package/dist/cdn/OY46REKX.js +0 -4
- package/dist/cdn/P2FKBFG4.js +0 -4
- package/dist/cdn/P2ZDRL2H.js +0 -4
- package/dist/cdn/P42LXL5T.js +0 -4
- package/dist/cdn/P5XVVLDJ.js +0 -4
- package/dist/cdn/P7D33ZYR.js +0 -4
- package/dist/cdn/PBHK2KEE.js +0 -4
- package/dist/cdn/PBMG6KCT.js +0 -4
- package/dist/cdn/PCVTLIJI.js +0 -4
- package/dist/cdn/PDSLRLKJ.js +0 -4
- package/dist/cdn/PEJ6QV5Z.js +0 -4
- package/dist/cdn/PEX6J4Z7.js +0 -4
- package/dist/cdn/PFFH3TTT.js +0 -4
- package/dist/cdn/PFOCDKWT.js +0 -4
- package/dist/cdn/PJBVJNTC.js +0 -4
- package/dist/cdn/PJRPNPTT.js +0 -4
- package/dist/cdn/PJXAUHCG.js +0 -4
- package/dist/cdn/PKRTZNP5.js +0 -4
- package/dist/cdn/PNWI7I6N.js +0 -4
- package/dist/cdn/PVBNIFUJ.js +0 -4
- package/dist/cdn/PXADTAHY.js +0 -4
- package/dist/cdn/PXE7IIKF.js +0 -4
- package/dist/cdn/PYXVVMGH.js +0 -4
- package/dist/cdn/PZBB2GGI.js +0 -4
- package/dist/cdn/PZCBF6IC.js +0 -4
- package/dist/cdn/Q43FABIH.js +0 -4
- package/dist/cdn/Q4B3TKL5.js +0 -4
- package/dist/cdn/Q5JPTWOT.js +0 -4
- package/dist/cdn/Q5VHGBAE.js +0 -4
- package/dist/cdn/Q7QRJBV2.js +0 -4
- package/dist/cdn/QA2GN5VP.js +0 -4
- package/dist/cdn/QAFM67BO.js +0 -59
- package/dist/cdn/QC4XY6KJ.js +0 -4
- package/dist/cdn/QD25UW4S.js +0 -4
- package/dist/cdn/QD7N66ZR.js +0 -4
- package/dist/cdn/QDUOX6FB.js +0 -4
- package/dist/cdn/QG2VEIJY.js +0 -4
- package/dist/cdn/QJZDNF4P.js +0 -4
- package/dist/cdn/QKB3TDS6.js +0 -4
- package/dist/cdn/QLRBCSAQ.js +0 -4
- package/dist/cdn/QMEQBGZC.js +0 -4
- package/dist/cdn/QQZ2JRQQ.js +0 -4
- package/dist/cdn/QRJR625X.js +0 -4
- package/dist/cdn/QUYQFNLY.js +0 -4
- package/dist/cdn/QV6XCGSH.js +0 -4
- package/dist/cdn/QVDQVLA5.js +0 -4
- package/dist/cdn/QVWLV4MV.js +0 -4
- package/dist/cdn/QW6DDRTN.js +0 -4
- package/dist/cdn/QWWGU36H.js +0 -4
- package/dist/cdn/QYDXBJ5Q.js +0 -4
- package/dist/cdn/R2DVF226.js +0 -4
- package/dist/cdn/R5EATBYW.js +0 -4
- package/dist/cdn/R5L5ZKMD.js +0 -4
- package/dist/cdn/R6QJXVLQ.js +0 -4
- package/dist/cdn/R7M7EVGC.js +0 -4
- package/dist/cdn/RCGEUZDO.js +0 -4
- package/dist/cdn/RCHJGMUW.js +0 -4
- package/dist/cdn/RCIZTK7R.js +0 -4
- package/dist/cdn/RCMHX3HY.js +0 -4
- package/dist/cdn/RCMTY7MF.js +0 -4
- package/dist/cdn/REIZZIP2.js +0 -4
- package/dist/cdn/RFMQIK4W.js +0 -4
- package/dist/cdn/RFWQ7EAU.js +0 -4
- package/dist/cdn/RGKRN5XY.js +0 -4
- package/dist/cdn/RGMEPZFK.js +0 -4
- package/dist/cdn/RHRUBSBK.js +0 -4
- package/dist/cdn/RHXM2Q3N.js +0 -4
- package/dist/cdn/RLNNYB3F.js +0 -4
- package/dist/cdn/RO3L7JFZ.js +0 -4
- package/dist/cdn/ROIRNZWQ.js +0 -4
- package/dist/cdn/RPKNW3AC.js +0 -4
- package/dist/cdn/RRQQ4JUR.js +0 -4
- package/dist/cdn/RUWW6SHY.js +0 -4
- package/dist/cdn/RWCATILW.js +0 -4
- package/dist/cdn/RWPVRSMH.js +0 -4
- package/dist/cdn/RXLCCVUB.js +0 -4
- package/dist/cdn/RY7IJAIJ.js +0 -4
- package/dist/cdn/RYLQCLNX.js +0 -4
- package/dist/cdn/S3OQYKML.js +0 -4
- package/dist/cdn/S7EBUUSV.js +0 -4
- package/dist/cdn/SBNP37C4.js +0 -4
- package/dist/cdn/SBYQHYOG.js +0 -4
- package/dist/cdn/SCAA57BQ.js +0 -4
- package/dist/cdn/SEIEYBXT.js +0 -4
- package/dist/cdn/SH76DCDT.js +0 -4
- package/dist/cdn/SJJYDBL4.js +0 -4
- package/dist/cdn/SJRR2T6T.js +0 -4
- package/dist/cdn/SKTS5TWB.js +0 -4
- package/dist/cdn/SMY3JAQR.js +0 -4
- package/dist/cdn/SNOZ4G2B.js +0 -4
- package/dist/cdn/SPMO5YT5.js +0 -4
- package/dist/cdn/SPP6CV2P.js +0 -4
- package/dist/cdn/SPXPR6W7.js +0 -4
- package/dist/cdn/SQKND3FS.js +0 -4
- package/dist/cdn/SSWTINLZ.js +0 -4
- package/dist/cdn/SVEFMPVG.js +0 -4
- package/dist/cdn/SVJJXTZW.js +0 -4
- package/dist/cdn/SX3CWPWU.js +0 -4
- package/dist/cdn/SXNKJADY.js +0 -4
- package/dist/cdn/T5FLQULH.js +0 -4
- package/dist/cdn/TAA3UR3R.js +0 -4
- package/dist/cdn/TAOOKZHY.js +0 -4
- package/dist/cdn/TBVHFD3B.js +0 -4
- package/dist/cdn/TDLI3RSI.js +0 -4
- package/dist/cdn/TDM2W22L.js +0 -4
- package/dist/cdn/THHKGKON.js +0 -4
- package/dist/cdn/THQP3DGK.js +0 -4
- package/dist/cdn/THUTBDTD.js +0 -4
- package/dist/cdn/TIGXSTQS.js +0 -4
- package/dist/cdn/TKALVXXG.js +0 -4
- package/dist/cdn/TKJRCRHH.js +0 -4
- package/dist/cdn/TMQ2D7HP.js +0 -4
- package/dist/cdn/TQYXA3UW.js +0 -4
- package/dist/cdn/TRLVQ5KU.js +0 -4
- package/dist/cdn/TRXPQZHU.js +0 -24
- package/dist/cdn/TSHTGVBF.js +0 -4
- package/dist/cdn/TT7EDNHR.js +0 -4
- package/dist/cdn/TVULKAXQ.js +0 -4
- package/dist/cdn/TWVQHUT7.js +0 -4
- package/dist/cdn/TY62DH3H.js +0 -4
- package/dist/cdn/TYS3QTGN.js +0 -4
- package/dist/cdn/TZFEKM3T.js +0 -4
- package/dist/cdn/TZFQ4IBY.js +0 -4
- package/dist/cdn/TZFVOTCB.js +0 -4
- package/dist/cdn/TZSNOWAD.js +0 -4
- package/dist/cdn/U3QYCD34.js +0 -4
- package/dist/cdn/U4JEF4SE.js +0 -4
- package/dist/cdn/U4ZIU567.js +0 -4
- package/dist/cdn/U5SAMCXV.js +0 -4
- package/dist/cdn/UDAZBDZF.js +0 -4
- package/dist/cdn/UDQ7BDKJ.js +0 -4
- package/dist/cdn/UEY42TPE.js +0 -4
- package/dist/cdn/UH2DUYXD.js +0 -4
- package/dist/cdn/UHMY6ATI.js +0 -4
- package/dist/cdn/UHXG5S3H.js +0 -4
- package/dist/cdn/UIAB36D6.js +0 -4
- package/dist/cdn/UIFAJEWE.js +0 -42
- package/dist/cdn/UKUJ4C3K.js +0 -4
- package/dist/cdn/UL2JDAE4.js +0 -4
- package/dist/cdn/ULDPYJIN.js +0 -4
- package/dist/cdn/UMYDH46A.js +0 -4
- package/dist/cdn/URCVQ4Q5.js +0 -4
- package/dist/cdn/UTZPDXWA.js +0 -4
- package/dist/cdn/UUJPNFO4.js +0 -4
- package/dist/cdn/UWIQQXJA.js +0 -4
- package/dist/cdn/UWVS5EVK.js +0 -4
- package/dist/cdn/UY3SPAQU.js +0 -4
- package/dist/cdn/V3FP24ML.js +0 -4
- package/dist/cdn/V3SR5MVE.js +0 -4
- package/dist/cdn/V7IHT6MZ.js +0 -4
- package/dist/cdn/V7WYBKTF.js +0 -4
- package/dist/cdn/VCLQXEKJ.js +0 -4
- package/dist/cdn/VDVRM2OR.js +0 -4
- package/dist/cdn/VG3ANBHH.js +0 -4
- package/dist/cdn/VHDY5P7V.js +0 -4
- package/dist/cdn/VHO2VUG2.js +0 -4
- package/dist/cdn/VHUYAGSR.js +0 -4
- package/dist/cdn/VJHBW5HS.js +0 -4
- package/dist/cdn/VL3FWYF4.js +0 -4
- package/dist/cdn/VLM2TAYY.js +0 -4
- package/dist/cdn/VMC3UOYE.js +0 -4
- package/dist/cdn/VOOSPXQR.js +0 -4
- package/dist/cdn/VP566G3X.js +0 -4
- package/dist/cdn/VRDQFPLO.js +0 -4
- package/dist/cdn/VT5UQXFR.js +0 -4
- package/dist/cdn/VTW7N5BO.js +0 -4
- package/dist/cdn/VYBAFXPC.js +0 -4
- package/dist/cdn/VZGBD657.js +0 -4
- package/dist/cdn/W2FCDGS5.js +0 -11
- package/dist/cdn/W4JHN6ZE.js +0 -4
- package/dist/cdn/W52YWKCF.js +0 -4
- package/dist/cdn/WACPK6UM.js +0 -4
- package/dist/cdn/WADYTRVL.js +0 -41
- package/dist/cdn/WDFNH7ZT.js +0 -4
- package/dist/cdn/WDXSDINN.js +0 -4
- package/dist/cdn/WHUM4UE4.js +0 -4
- package/dist/cdn/WMAEAVUH.js +0 -4
- package/dist/cdn/WOSD2VGB.js +0 -4
- package/dist/cdn/WPXMO6UU.js +0 -4
- package/dist/cdn/WU5UNUTF.js +0 -4
- package/dist/cdn/WUXSPYC4.js +0 -4
- package/dist/cdn/WVJPS7TK.js +0 -4
- package/dist/cdn/WWW5FATY.js +0 -4
- package/dist/cdn/WXBEQHBK.js +0 -4
- package/dist/cdn/WYHF2BUR.js +0 -4
- package/dist/cdn/WYQWHONY.js +0 -4
- package/dist/cdn/WZPCZ7NW.js +0 -4
- package/dist/cdn/X2EE744P.js +0 -4
- package/dist/cdn/X2KHKCPJ.js +0 -4
- package/dist/cdn/XAJQCIGK.js +0 -4
- package/dist/cdn/XCHFMGZN.js +0 -4
- package/dist/cdn/XDLKZIRH.js +0 -4
- package/dist/cdn/XFWTN5ZT.js +0 -4
- package/dist/cdn/XHC4Q75L.js +0 -4
- package/dist/cdn/XHMM6TG2.js +0 -4
- package/dist/cdn/XHRFUZQ5.js +0 -4
- package/dist/cdn/XKMCOUT2.js +0 -4
- package/dist/cdn/XLFUUGBE.js +0 -4
- package/dist/cdn/XLG3OWW2.js +0 -4
- package/dist/cdn/XLQ4YM4M.js +0 -4
- package/dist/cdn/XNC57LVY.js +0 -4
- package/dist/cdn/XO6AFFVE.js +0 -4
- package/dist/cdn/XP425WXV.js +0 -4
- package/dist/cdn/XPE6XS5R.js +0 -4
- package/dist/cdn/XS3X3N4T.js +0 -4
- package/dist/cdn/XSYQQ7M3.js +0 -4
- package/dist/cdn/XSZVZF6U.js +0 -4
- package/dist/cdn/XUMUID7F.js +0 -4
- package/dist/cdn/XVEW22QV.js +0 -4
- package/dist/cdn/XY6DZ32H.js +0 -4
- package/dist/cdn/XYRYO6BF.js +0 -4
- package/dist/cdn/Y3A4ET7L.js +0 -4
- package/dist/cdn/Y55IKITI.js +0 -4
- package/dist/cdn/Y6IJFB4V.js +0 -4
- package/dist/cdn/Y7VLA7JU.js +0 -4
- package/dist/cdn/YA5RHJLT.js +0 -4
- package/dist/cdn/YAFHZYIY.js +0 -4
- package/dist/cdn/YBJI4DPY.js +0 -4
- package/dist/cdn/YCI3KLPC.js +0 -4
- package/dist/cdn/YCQE33QW.js +0 -4
- package/dist/cdn/YCUZ5BIA.js +0 -4
- package/dist/cdn/YCXU7MTV.js +0 -4
- package/dist/cdn/YDFIM5IG.js +0 -4
- package/dist/cdn/YFDUDNFD.js +0 -4
- package/dist/cdn/YHBU4QP6.js +0 -4
- package/dist/cdn/YI6RASCB.js +0 -5
- package/dist/cdn/YLDXU375.js +0 -4
- package/dist/cdn/YM3D6TBR.js +0 -4
- package/dist/cdn/YN2432I3.js +0 -4
- package/dist/cdn/YNQMIYNE.js +0 -4
- package/dist/cdn/YO4KMS5I.js +0 -4
- package/dist/cdn/YP6FP7UH.js +0 -4
- package/dist/cdn/YPPFEIMD.js +0 -4
- package/dist/cdn/YPXBDFRU.js +0 -4
- package/dist/cdn/YRNNUGQE.js +0 -4
- package/dist/cdn/YT6BKECP.js +0 -4
- package/dist/cdn/YT6M56JI.js +0 -4
- package/dist/cdn/YTPQQZCE.js +0 -4
- package/dist/cdn/YTSUDKGS.js +0 -4
- package/dist/cdn/YU3JBGSB.js +0 -4
- package/dist/cdn/YUVODBZ2.js +0 -4
- package/dist/cdn/YVCMQH7Q.js +0 -4
- package/dist/cdn/YVO6NKYS.js +0 -4
- package/dist/cdn/YW2HJ6GX.js +0 -4
- package/dist/cdn/YWIR37P3.js +0 -4
- package/dist/cdn/YXHQQHJ2.js +0 -4
- package/dist/cdn/YYI762G7.js +0 -4
- package/dist/cdn/YZA4XTPV.js +0 -6
- package/dist/cdn/YZHES5XX.js +0 -4
- package/dist/cdn/Z3ZQBAZW.js +0 -4
- package/dist/cdn/ZAUT3MKZ.js +0 -4
- package/dist/cdn/ZD2FIKKE.js +0 -4
- package/dist/cdn/ZEJ5IUJA.js +0 -4
- package/dist/cdn/ZEYXVNEA.js +0 -4
- package/dist/cdn/ZFZNOSA6.js +0 -4
- package/dist/cdn/ZGXVXLZT.js +0 -4
- package/dist/cdn/ZKEDPZL5.js +0 -4
- package/dist/cdn/ZKOZFDAN.js +0 -4
- package/dist/cdn/ZLHRVAKO.js +0 -4
- package/dist/cdn/ZMMEETZ6.js +0 -4
- package/dist/cdn/ZNCMJ7QE.js +0 -4
- package/dist/cdn/ZNXL5XOK.js +0 -4
- package/dist/cdn/ZP42W2OR.js +0 -4
- package/dist/cdn/ZP73DNUM.js +0 -4
- package/dist/cdn/ZQKQ4RUK.js +0 -4
- package/dist/cdn/ZRIBTE3T.js +0 -12
- package/dist/cdn/ZRQE45XV.js +0 -4
- package/dist/cdn/ZRU2VMX5.js +0 -4
- package/dist/cdn/ZSVV6YUJ.js +0 -4
- package/dist/cdn/ZTOYTA4N.js +0 -4
- package/dist/cdn/ZUCR24RR.js +0 -4
- package/dist/cdn/ZZHW47SF.js +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
function s(e,n=300){let o;return function(u,...t){clearTimeout(o),o=setTimeout(()=>e.apply(u,t),n)}}function b(e){function n(o,u,t){let{value:i}=t,c=`${u.toString()}Debounced`,r=function(...a){this[c]||Object.defineProperty(this,c,{value:s(i,e.timeout)}),this[c](this,...a)};return Object.assign(Object.assign({},t),{value:r})}return n}export{b as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
import{f as d,g}from"./DTBYT7B3.js";var M=(e,o,s)=>{let c=e.get(o);c?c.includes(s)||c.push(s):e.set(o,[s])},O=(e,o)=>{let s;return(...c)=>{s&&clearTimeout(s),s=setTimeout(()=>{s=0,e(...c)},o)}},_=e=>!("isConnected"in e)||e.isConnected,w=O(e=>{for(let o of e.keys())e.set(o,e.get(o).filter(_))},2e3),T=()=>{if(typeof d!="function")return{};let e=new Map;return{dispose:()=>e.clear(),get:o=>{let s=d();s&&M(e,o,s)},set:o=>{let s=e.get(o);s&&e.set(o,s.filter(g)),w(e)},reset:()=>{e.forEach(o=>o.forEach(g)),w(e)}}},l=e=>typeof e=="function"?e():e,U=(e,o=(s,c)=>s!==c)=>{let s=l(e),c=new Map(Object.entries(s??{})),i={dispose:[],get:[],set:[],reset:[]},h=()=>{var t;c=new Map(Object.entries((t=l(e))!==null&&t!==void 0?t:{})),i.reset.forEach(n=>n())},E=()=>{i.dispose.forEach(t=>t()),h()},a=t=>(i.get.forEach(n=>n(t)),c.get(t)),p=(t,n)=>{let r=c.get(t);o(n,r,t)&&(c.set(t,n),i.set.forEach(f=>f(t,n,r)))},x=typeof Proxy>"u"?{}:new Proxy(s,{get(t,n){return a(n)},ownKeys(t){return Array.from(c.keys())},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},has(t,n){return c.has(n)},set(t,n,r){return p(n,r),!0}}),u=(t,n)=>(i[t].push(n),()=>{P(i[t],n)});return{state:x,get:a,set:p,on:u,onChange:(t,n)=>{let r=u("set",(y,C)=>{y===t&&n(C)}),f=u("reset",()=>n(l(e)[t]));return()=>{r(),f()}},use:(...t)=>{let n=t.reduce((r,f)=>(f.set&&r.push(u("set",f.set)),f.get&&r.push(u("get",f.get)),f.reset&&r.push(u("reset",f.reset)),f.dispose&&r.push(u("dispose",f.dispose)),r),[]);return()=>n.forEach(r=>r())},dispose:E,reset:h,forceUpdate:t=>{let n=c.get(t);i.set.forEach(r=>r(t,n,n))}}},P=(e,o)=>{let s=e.indexOf(o);s>=0&&(e[s]=e[e.length-1],e.length--)},R=(e,o)=>{let s=U(e,o);return s.use(T()),s},V=R({context:null,site:null,notices:[],urlState:{}});export{V as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
import{a as I}from"./6K6RI3QE.js";import{b as R}from"./EDPJQ6O7.js";import{a as f}from"./3H2XVCUA.js";import{a as E}from"./SYEKE27I.js";import"./TETS77HI.js";import"./A4ZBGD5O.js";import{b as n,c as y,d as A,h as P,i as S}from"./DTBYT7B3.js";import"./WEHYONDE.js";import"./O24HC4W5.js";var F=".telemetry-tabular-table{width:200px}:host .telemetry-tabular-table{display:block;height:100%;width:auto}",M=F,O=class{constructor(t){S(this,t),this.PAGE_VIEWS_TABLE_PAGE_SIZE=7,this._pageChanged=!1,this.handlePageChange=e=>{e.stopPropagation(),this._pageChanged=!0,this.startItemNumber=this._paginationRef.startItem},this.setTableCellRef=e=>{this._firstCellRef=e},this.data=void 0,this.reportTitle=void 0,this.titleTooltip=void 0,this.subtitle=void 0,this.options={},this.isLoading=void 0,this.columns=void 0,this.rows=void 0,this.isTransforming=!0,this.startItemNumber=void 0}async componentWillLoad(){this.intl=await E.loadIntlForComponent(this.element)}async componentDidRender(){var t,e;!this._paginationRef&&this._calciteTableRef&&(this._paginationRef=(t=this._calciteTableRef.shadowRoot)===null||t===void 0?void 0:t.querySelector("calcite-pagination"),this.startItemNumber=(e=this._paginationRef)===null||e===void 0?void 0:e.startItem),this._pageChanged&&this._firstCellRef&&(this._firstCellRef.setFocus(),this._pageChanged=!1)}handleChange(){this.isLoading||this.transform(this.data,this.options).then(({columns:t,rows:e})=>{this.columns=t,this.rows=e}).finally(()=>{this.isTransforming=!1})}async transform(t,e){let r=[],c=[],{seriesTransforms:h={},dataTransforms:l}=e,L=t.map(async g=>{let w=[],G=await Object.entries(g).map(async([s,a])=>{var p,b,_,T,C;let d={},u=!1;if(a!==void 0){let v=s;if(Object.values(R).includes(s)&&(s=s.split(":")[1],u=!0),!c.includes(s)){let o=((p=h[s])===null||p===void 0?void 0:p.title)||((b=l?.find(m=>m.name===v))===null||b===void 0?void 0:b.title)||this.capitalize(s),i={key:s,header:o,headerCellAlignment:f.center,contentCellAlignment:u?f.end:f.start};c.push(s),u?r.push(i):r.unshift(i)}if(d[s]=a,!u&&w.push(a),!((_=h[s])===null||_===void 0)&&_.value){let{display:o,link:i}=h[s].value,m=o?await o(a):a;d[s]=i?n("a",{href:i.href?await i.href(a):a,target:i.target},m):m}else{let o=((C=(T=l?.find(i=>i.name===v))===null||T===void 0?void 0:T.value)===null||C===void 0?void 0:C.display)||(i=>i);d[s]=o(a)}}return d});return this.resolveRow(G,w.join("|"))}),N=await Promise.all(L).then(g=>g);return{columns:r,rows:N}}async resolveRow(t,e){let r=await Promise.all(t);return r.push({key:e}),r.reduce((c,h)=>Object.assign(c,h),{})}capitalize(t){return t[0].toUpperCase()+t.slice(1).toLowerCase()}get shouldRenderErrorTablePagination(){return this.rows.length>this.PAGE_VIEWS_TABLE_PAGE_SIZE}render(){let t={heading:this.intl.t("pageViewTable.emptyState"),icon:"check-circle"};return n(y,{key:"5bc9b0e6f1a60b2a7bf0fa819889b0e076bf4747"},this.isLoading||this.isTransforming?n("arcgis-skeleton-loader",{active:!0,rows:4,showFooter:!0}):n(P,null,n("calcite-table",{caption:this.reportTitle,class:"telemetry-tabular-table",onCalciteTablePageChange:this.handlePageChange,"page-size":this.shouldRenderErrorTablePagination&&this.PAGE_VIEWS_TABLE_PAGE_SIZE,ref:e=>this._calciteTableRef=e,striped:!0},n(I,{columns:this.columns,emptyHelpState:t,rows:this.rows,setFirstCellRefCallback:this.setTableCellRef,startItem:this.startItemNumber?this.startItemNumber:1}))))}static get assetsDirs(){return["locales"]}get element(){return A(this)}static get watchers(){return{data:["handleChange"],options:["handleChange"]}}};O.style=M;export{O as arcgis_telemetry_tabular};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
import{S as a}from"./PUAZLJVT.js";async function s(i,n){let{isHub:t}=i;if(t===void 0)try{t=await a(globalThis.location.hostname,n)}catch{t=!1}return{isHub:t}}export{s as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
import{h as p}from"./J7XK3YZJ.js";import"./TU2TZIOE.js";import"./GUJII33O.js";import"./47DVYEBK.js";import"./73GZFDLD.js";import"./FGYVTYHF.js";import"./FORQ67CP.js";import"./DN6WLBHD.js";import"./UFG3BQVX.js";import{a as c}from"./JBY7Y4K6.js";import{a as s}from"./7S7LGGUA.js";import"./SM6FLGRN.js";import{a as d}from"./SYEKE27I.js";import"./TETS77HI.js";import"./A4ZBGD5O.js";import{b as e,c as m,d as u,e as h,h as l,i as f}from"./DTBYT7B3.js";import"./UJNIWZNR.js";import"./PKEWV6AV.js";import"./OFGOMONR.js";import"./A5HPY7H3.js";import"./EV2JXOA6.js";import"./57G44J3J.js";import"./WEHYONDE.js";import"./O24HC4W5.js";var g=":host{display:inline-block}::slotted(calcite-link){font-size:var(--calcite-font-size-0) !important;line-height:1.25rem !important}calcite-popover{width:20rem}button{grid-row:span 2 / span 2;cursor:pointer;border-style:none;background-color:transparent;padding:0px}address{margin:0px;margin-bottom:1.5rem;display:grid;column-gap:0.75rem;row-gap:0px;font-style:normal;grid-template-columns:44px auto}address:last-child{margin:0px}calcite-avatar{grid-row:span 2 / span 2;height:2.75rem;width:2.75rem}address calcite-icon{grid-row:span 2 / span 2;height:2.75rem;width:2.75rem}address b{font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}address span{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2)}address span:before{content:'@'}calcite-icon{margin-top:1px;margin-bottom:1px}.popover-body{margin:0px;padding:0.75rem}.popover-body div{margin-bottom:0.5rem;display:flex;align-items:flex-start;gap:0.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-color-text-2)}.popover-body div+div{margin-bottom:1rem}.popover-body div+div:last-child{margin:0px}footer{padding:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-color-text-1);background-color:var(--calcite-color-background)}footer div{margin:0px;margin-bottom:0.5rem;display:flex;align-items:flex-start;gap:0.5rem}footer div:nth-of-type(3){margin-bottom:1rem}footer div:last-child{margin:0px}",v=g,y=class{constructor(t){f(this,t),this.hubTelemetry=h(this,"hubTelemetry",7),this.buttonEl=void 0,this.username=void 0,this.fullName=void 0,this.thumbnail=void 0,this.userId=void 0,this.access=void 0,this.token=void 0,this.portal=void 0,this.region=void 0,this.organization=void 0,this.creatorUsername=void 0,this.postId=void 0,this.parentId=void 0,this.channelId=void 0,this.channelAccess=void 0,this.index=void 0,this.isHub=void 0,c(this,"handlePopoverOpened","handleGoToProfile","emitHubTelemetry")}async componentWillLoad(){this.intl=await d.loadIntlForComponent(this.element)}emitHubTelemetry(t){let{postId:i,parentId:n,channelId:o,channelAccess:r,index:a}=this;this.hubTelemetry.emit(Object.assign(Object.assign({},t),{postId:i,parentId:n,channelId:o,channelAccess:r,position:a}))}handlePopoverOpened(){this.emitHubTelemetry(s.dictionary.category.interaction.action.open.label.popover.details.details)}handleGoToProfile(){this.emitHubTelemetry(s.dictionary.category.navigation.action.view.label.users.details.profile)}renderCreatorAvatar(){let{username:t,fullName:i,thumbnail:n,portal:o,token:r,userId:a,access:b}=this;return e("calcite-avatar",{"full-name":i,scale:"l",thumbnail:n&&p(o,{username:t,access:b,thumbnail:n},r),"user-id":a,username:t})}renderCreatorDetails(){let{intl:t,username:i,fullName:n}=this,o=t.t("anonymous"),r=t.t("noUser");return i&&(o=n||t.t("privateUser"),r=i),e(l,null,e("b",null,o),e("span",null,r))}renderCreatorExpandedDetails(){let{intl:t,region:i,organization:n,username:o,isHub:r}=this;if(i){let a=t.formatDisplayName(i.toLocaleUpperCase(),{type:"region"});return e(l,null,n&&e("div",null,e("calcite-icon",{icon:"organization",scale:"s","text-label":t.t("orgLabel")}),n),a&&e("div",null,e("calcite-icon",{icon:"pin",scale:"s","text-label":t.t("location")}),a),r&&e("calcite-button",{appearance:"outline-fill",href:"/people/"+o,kind:"neutral",label:t.t("profile"),onClick:this.handleGoToProfile,round:!0,scale:"l",width:"full"},t.t("profile")))}}renderPostDetails(){let{intl:t,creatorUsername:i}=this;return e("footer",null,e("div",null,e("calcite-icon",{icon:"speech-bubbles",scale:"s"}),e("span",null,t.t("mentionedBy",{username:i}))))}render(){let{intl:t}=this;return e(m,{key:"d73d3d15259fe6e2b9ffa636a5e9392e80d34832","data-element":"discussions-mention-popover"},this.buttonEl&&e("calcite-popover",{autoClose:!0,label:t.t("information"),overlayPositioning:"fixed",placement:"top",referenceElement:this.buttonEl},e("div",{class:"popover-body"},e("address",null,this.renderCreatorAvatar(),this.renderCreatorDetails()),this.renderCreatorExpandedDetails()),this.renderPostDetails()),e("button",{key:"b6f3059a2b2fa879c4ed5349693fa875cf5a8682",ref:i=>{this.buttonEl=i},type:"button"},e("slot",{key:"64359d590af2a7564dc6b0d8cd4caa7b4223a04b"})))}static get assetsDirs(){return["locales"]}get element(){return u(this)}};y.style=v;export{y as arcgis_hub_discussions_mention_popover};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
import{a as V}from"./S26SRG5H.js";import a from"./QMB3FDAJ.js";import{a as b}from"./7IR3BQUS.js";import{f as j}from"./SUYL5G5F.js";import{a as E}from"./7OMQGXTT.js";export default $arcgis.t(([{d:C,f:D,l:T}])=>{function L(a,l,r){let d=[],c=[];for(let[e,n]of Object.entries(l))n.includes("pendingPosts")&&d.push(e),n.includes("newPosts")&&c.push(e);let u=[];return d.length>0&&u.push({label:r.t("discussions.forModerationPosts"),key:"forModerationPosts",targetEntity:"post",scope:{targetEntity:"post",filters:[{predicates:[{channel:d,status:["pending","blocked","hidden"],discussion:w("content",a)}]}],properties:{relations:["channel"]}}}),c.length>0&&u.push({label:r.t("discussions.approvedPosts"),key:"approvedPosts",targetEntity:"post",scope:{targetEntity:"post",filters:[{predicates:[{channel:c,status:["approved"],discussion:w("content",a)}]}],properties:{relations:["channel"]}}}),{schemaVersion:1,collections:u}}function w(a,l,r){return`hub://${a}/${l}${r?`/${r}`:""}`}async function R(a,l,r){var d,c,u;let{post:e,parent:n,bust:h,locationId:F,discussionType:O}=a,{discussion:f,entityId:o,entityType:t,entity:i,displayFieldValue:p,displayFieldKey:m,displayFieldValid:g,discussionSettings:y}=a,v=(s,S,P)=>S==="group"?V(s,Object.assign(Object.assign({},l),{enrichments:["data"]}),{bust:P}):D(s,Object.assign(Object.assign({},l),{enrichments:["data"]}),{bust:P});if(i)o=i.id,t=i.type==="group"?"group":"content";else if(o&&t)i=await v(o,t,h);else if(n||e){let s=b(n?.discussion||e?.discussion);o=s.id,t=s.type,i=await v(o,t,h)}else if(f){let s=b(f);if(o=s.id,t=s.type,["group","content"].includes(t))i=await v(o,t,h);else if(t)i=await v(o,t,h);else throw new Error("must provide an `entityType` when only providing `discussion` with scope that is not `content` or `group`")}if(i){if(m=((d=i.layer)===null||d===void 0?void 0:d.displayField)||null,g=T(i),r&&y===void 0)try{let s=await j(Object.assign({id:i.id},l));y=(u=(c=s?.settings)===null||c===void 0?void 0:c.discussions)!==null&&u!==void 0?u:null}catch{y=null}if(F&&g&&p===void 0)try{({properties:{[i.layer.displayField]:p}}=await C(i.url,F))}catch(s){E.error("Failed to load location:",s.message)}else p=p||null}else m=null,g=null,p=null,y=null;return f=f||e?.discussion||n?.discussion||w(t,o,O),{discussion:f,entityId:o,entityType:t,entity:i,displayFieldKey:m,displayFieldValid:g,displayFieldValue:p,discussionSettings:y}}return{a:L,b:R}},a)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
import"./O24HC4W5.js";var a="Do\u0161lo je do gre\u0161ke prilikom u\u010Ditavanja grafika.",e="Nije mogu\u0107e primeniti transformaciju zapisa na negativne ili nulte vrednosti.",i="Nije mogu\u0107e primeniti transformaiju kvadratnog korena na negativne vrednosti.",r="Do\u0161lo je do gre\u0161ke prilikom u\u010Ditavanja sloja. URL = ${ url }. ID stavke portala = ${ portalItemId }.",o="Polja [${ fieldNames }] definisana u konfiguraciji nisu prona\u0111ena u sloju.",n="${ dataPath } mora da bude jedinstven. Serija pod nazivom ${ seriesName } ima ID (${ seriesID }) koji se ve\u0107 koristi od strane drugih serija.",t="${ dataPath } ne mo\u017Ee da obavi agregaciju bez brojanja na numeri\u010Dkom polju.",s="${ dataPath } nedostaje svojstvo pod nazivom ${ missingProperty }.",d="${ dataPath } ne sme da bude kra\u0107e od ${ limit } karaktera.",m="${ dataPath } ne sme da ima manje od ${ limit } stavki.",u="${ dataPath } ne sme da ima vi\u0161e od ${ limit } stavki.",l="${ dataPath } mora da ima bar jedan karakter koji nije prazan.",p="${ dataPath } ne sme da ima ${ additionalProperty }.",j="${ dataPath } mora da bude jednako jednoj od ovih dozvoljenih vrednosti: ${ allowedValues }.",v="${ dataPath } mora da odgovara \u0161emi jednog od ovih: ${ schemaOptions }.",g="Nacrti \u0161ablona sa proporcionalnim simbolima nisu podr\u017Eani. Podrazumevana veli\u010Dina \u0161ablona je primenjena.",$="Neuspe\u0161no \u010Ditanje ulaznih podataka.",k="Operacija queryBins nije podr\u017Eana u ovom servisu.",h="O\u010Dekivani tip serije za indeks ${ seriesIndex } je '${ expectedType }' ali je '${ receivedType }' dobijeno umesto toga",y="ili",P={defaultError:a,negativeValueInDataForLogTransformation:e,negativeValueInDataForSqrtTransformation:i,layerLoadFailure:r,layerFieldsNotFound:o,duplicateSeriesID:n,nonNumericAggregation:t,requiredProperty:s,minLength:d,minItems:m,maxItems:u,whiteSpacePattern:l,additionalProperty:p,enumValues:j,anyOfValues:v,bubbleChartValidateMsg:g,queryError:$,queryBinsNotSupported:k,invalidSeriesType:h,or:"ili"};export{p as additionalProperty,v as anyOfValues,g as bubbleChartValidateMsg,P as default,a as defaultError,n as duplicateSeriesID,j as enumValues,h as invalidSeriesType,o as layerFieldsNotFound,r as layerLoadFailure,u as maxItems,m as minItems,d as minLength,e as negativeValueInDataForLogTransformation,i as negativeValueInDataForSqrtTransformation,t as nonNumericAggregation,y as or,k as queryBinsNotSupported,$ as queryError,s as requiredProperty,l as whiteSpacePattern};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
import{a as w,b as x}from"./6PBUIYKP.js";import{a as m,b as g,c as p,d as f,e as b}from"./7NFLNZHW.js";import{a as u}from"./JJRKG76I.js";import{a as d,b as l}from"./OJGADDZX.js";import{a as r}from"./57G44J3J.js";function A(a,o){var t;return((t=o.serviceStatus)===null||t===void 0?void 0:t["hub-downloads"])==="online"&&(l(a)||d(a))}function D(a){let o=[];return d(a)?o=m(a):l(a)&&(o=!!r(a,"extendedProps.serverExtractCapability")?f():p()),o}function U(a){let{entity:o,context:t}=a,e=[];A(o,t)?e=D(o):u(o)&&(e=g(o));let F=(r(o,"extendedProps.additionalResources")||[]).map(E);return b(o).formats.reduce((c,n)=>{if(!n.hidden){let s;if(w(n)){let i=x(n);s=F[i]}else e.forEach(i=>{i.format===n.key&&(s=i)});c.push(s)}return c},[])}function E(a){return{type:"static",label:a.name||a.isDataSource&&"{{dataSource:translate}}"||"{{noTitle:translate}}",url:a.url}}export{A as a,D as b,U as c};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
import{a as b}from"./7SVQFZUA.js";import{b as y}from"./MQUYJMV3.js";import"./OJG6YJU2.js";import"./DLTRVV62.js";import"./SG3MRQQS.js";import"./3JNZKALP.js";import"./VNCTCE3W.js";import"./3H2XVCUA.js";import{a as g}from"./A4OJY5AQ.js";import"./JNFH4UQD.js";import"./SDNIOQE2.js";import"./GSWS7GXK.js";import"./LWQY6CI3.js";import"./OPE7JTTE.js";import"./MFM3CGL4.js";import"./UU4RSSY6.js";import"./7OYQMW36.js";import"./C6CCUU6L.js";import"./7NFLNZHW.js";import"./K3YTLXAB.js";import"./HCRPG3LA.js";import"./JJRKG76I.js";import"./QP5VTJTI.js";import"./OJGADDZX.js";import"./IRQH4SGB.js";import"./FBHZFLUE.js";import"./VSPWXVBG.js";import"./EGBO3YSD.js";import"./COVS2GLW.js";import"./5LNMPOSU.js";import"./3JQFOVPN.js";import"./SUYL5G5F.js";import"./PNWIFTI5.js";import"./UETQQWJR.js";import"./34L55HV7.js";import"./GOYRZLHW.js";import"./5CWJU6RW.js";import"./DWBLFAWO.js";import"./NPM7OWN2.js";import"./QO5JSWW6.js";import"./XHGGBDVC.js";import"./P5YVCJ76.js";import"./G65CYRHZ.js";import"./XAURY4UO.js";import"./7EZSEWT3.js";import"./DFDA74PW.js";import"./A6B6M6IC.js";import"./PUAZLJVT.js";import"./RBRBWGI3.js";import"./VYJILSFN.js";import"./HLGTHHBD.js";import"./7BWZGM37.js";import"./V2WG2Z2L.js";import"./XRY5Q7JW.js";import"./ZUGTLVFI.js";import"./EWRFEQYU.js";import"./TNGWB2Z2.js";import"./W2ENVDR4.js";import"./HG3NKY2P.js";import"./LMMS6HAF.js";import"./AE3YP3DS.js";import"./7UPOQLIX.js";import"./3TKT33QR.js";import"./XCROLCMJ.js";import"./TM2YVIKX.js";import"./6N54EYC3.js";import"./WQHPGOEB.js";import"./PZLJBXRN.js";import"./J7XK3YZJ.js";import"./TU2TZIOE.js";import"./GUJII33O.js";import"./47DVYEBK.js";import"./UCNNVIFH.js";import"./WR47QMI3.js";import"./TY7YFLIP.js";import"./73GZFDLD.js";import"./FGYVTYHF.js";import"./FORQ67CP.js";import"./XBRL2JOD.js";import"./C44U2OB4.js";import"./6AEVM2ZJ.js";import"./FTL6O3Q5.js";import"./5AV2EUV3.js";import"./DN6WLBHD.js";import"./UFG3BQVX.js";import{a as d}from"./JBY7Y4K6.js";import{c as S,d as E}from"./7FCQMEWY.js";import"./22KLMUMX.js";import{a as p}from"./7S7LGGUA.js";import"./SM6FLGRN.js";import{a as m}from"./SYEKE27I.js";import"./TETS77HI.js";import"./A4ZBGD5O.js";import{b as e,c as f,d as w,e as n,i as k}from"./DTBYT7B3.js";import"./OTFPBMTW.js";import"./AFTVC3MS.js";import"./LEXC2XLO.js";import"./D4GA6N3R.js";import{a as h}from"./UJNIWZNR.js";import"./PKEWV6AV.js";import"./ITDUI6ZI.js";import{a as u}from"./LLFPFIWD.js";import{o as a}from"./S7NFU7QR.js";import"./3BK6FEHB.js";import"./OFGOMONR.js";import"./A5HPY7H3.js";import"./7OMQGXTT.js";import{a as c}from"./EV2JXOA6.js";import{a as l}from"./57G44J3J.js";import"./WEHYONDE.js";import"./O24HC4W5.js";export default $arcgis.t(([])=>{var C=".sc-arcgis-hub-entity-followers-h{display:block;height:100%}arcgis-hub-workspace-pane.sc-arcgis-hub-entity-followers{--arcgis-configuration-form-footer-max-width:800px;--arcgis-configuration-form-footer-scalable-padding:0.5rem}.entity-followers__tab.sc-arcgis-hub-entity-followers{display:flex;flex-direction:column;gap:2rem}calcite-tabs.sc-arcgis-hub-entity-followers{height:-moz-fit-content;height:fit-content;width:100%;gap:0px}",G=C,o;(function(t){t.FOLLOWERS="Followers",t.SETTINGS="Followers Settings"})(o||(o={}));var F=class{async init(){await this.fetchFollowersGroup()}constructor(t){k(this,t),this.hubTelemetry=n(this,"hubTelemetry",7),this.arcgisHubWorkspaceEntityChange=n(this,"arcgisHubWorkspaceEntityChange",7),this.handleTabActivated=i=>{i.preventDefault(),i.stopImmediatePropagation();let s=i.target;if(this.isDirty){this.attemptedClick={tab:s.tab,clickEvent:i};return}else this.activeTab=i.target.tab,this.hubTelemetry.emit(Object.assign(Object.assign({},p.dictionary.category.navigation.action.view),{label:this.activeTab}))},this.handleFollowersGroupCreation=async i=>{let s=i.detail,r=c(this.entity);try{await this._context.refreshUser(),E(this._context),this.workspacePaneEl.toggleLoading(!0,{headingRows:1,rows:3,showHeading:!0}),h("followersGroupId",s.id,r),await b(this.entityType,r,this._context),this.arcgisHubWorkspaceEntityChange.emit({entity:r,isDirty:!1})}catch(T){console.error(`There was an error creating a followers group: ${T}`),this.arcgisHubWorkspaceEntityChange.emit({entity:r,isDirty:!0})}finally{this.workspacePaneEl.toggleLoading(!1)}},this.entity=void 0,this.isMobile=!1,this.activeTab=o.FOLLOWERS,this.followersCount=void 0,this.newFollowersCount=void 0,this.footerSlotEl=void 0,this.isUserPickerOpen=!1,this.groupMembersSelected=[],this.isDirty=!1,this.attemptedClick=void 0,d(this,"handleEditorChanged","handleEditorSaved","handleTabActivated","handleFollowersGroupCreation","handlePrimaryTabKeyDown","handleDirtyStateModalClosed")}async componentWillLoad(){await this.loadTranslations(),this.followersGroupId&&this.init()}async loadTranslations(){this.intl=await m.loadIntlForComponent(this.element)}get _context(){return S()}get entityType(){return u(this.entity)}get isMember(){return a("hub:site:workspace:followers:member",this._context,this.entity).access}get canCreateFollowersGroup(){return a("hub:site:workspace:followers:create",this._context,this.entity).access}get followersGroupId(){return l(this.entity,"followersGroupId")}get tabConfigurations(){let t=["hub:site:workspace:followers:member"],i=["hub:site:workspace:followers:manager"];return[{title:this.intl.t("tabs.followers"),key:o.FOLLOWERS,permissions:t,content:this.renderFollowersTab()},{title:this.intl.t("tabs.settings"),key:o.SETTINGS,permissions:i,content:this.renderSettingsTab()}].filter(s=>s.permissions.every(r=>a(r,this._context,this.entity).access))}async fetchFollowersGroup(){this.followersGroup=(await g.fetch(this.followersGroupId,this._context)).toJson()}handlePrimaryTabKeyDown(t){switch(t.key){case" ":case"Enter":this.handleTabActivated(t);return}}handleDirtyStateModalClosed(t){t.detail?this.attemptedClick=null:(this.isDirty=!1,this.activeTab=this.attemptedClick.tab,this.attemptedClick=null)}renderTabs(){return e("calcite-tabs",null,e("calcite-tab-nav",{slot:"title-group"},this.tabConfigurations.map(t=>e("calcite-tab-title",{key:t.key,onClick:this.handleTabActivated,onKeyDown:this.handlePrimaryTabKeyDown,selected:this.activeTab===t.key,tab:t.key},t.title))),this.tabConfigurations.map(t=>e("calcite-tab",{class:"content-tab-container",key:t.key,selected:this.activeTab===t.key,tab:t.key},t.content)))}get shouldShowDirtyStateModal(){return!!this.attemptedClick}renderDirtyStateModal(){return this.shouldShowDirtyStateModal?e("arcgis-hub-workspace-dirty-state-modal",{"is-open":!0}):null}handleEntityChange(t){this.isDirty=t.detail.isDirty}renderFollowersTab(){return e("div",{class:"entity-followers__tab"},e("arcgis-hub-group-members-manager",{groupId:this.followersGroupId,isMobile:this.isMobile,showGalleryFacets:!1}))}handleEditorChanged(t){t.preventDefault(),this.arcgisHubWorkspaceEntityChange.emit({entity:t.detail.values,isDirty:!0})}handleEditorSaved(t){t.preventDefault(),this.arcgisHubWorkspaceEntityChange.emit({entity:t.detail.entity,isDirty:!t.detail.isSuccess})}renderSettingsTab(){return e("arcgis-hub-entity-editor",{editorType:`hub:${this.entityType}:followers`,entity:this.entity,footerSlotRef:this.footerSlotEl,include:["followersGroup.access AS _followers.groupAccess"],onArcgisHubEntityEditorChange:this.handleEditorChanged,onArcgisHubEntityEditorSaved:this.handleEditorSaved,variant:y.workspace})}renderEmptyState(){return e("arcgis-hub-help-state",{icon:"walking",message:this.intl.t("emptyState.message"),slot:"help-state"},this.canCreateFollowersGroup&&e("arcgis-hub-new-content",{"button-appearance":"outline-fill",entityConfigs:[{key:"group",editorType:"hub:group:create:followers",label:this.intl.t("emptyState.action"),description:this.intl.t("createFollowersGroup.formDescription"),defaults:{name:`${this.entity.name} ${this.intl.t("followers")}`,summary:this.intl.t("createFollowersGroup.defaultSummary"),access:"public",isViewOnly:!0,autoJoin:!0}}],onArcgisHubNewContentSuccess:this.handleFollowersGroupCreation,slot:"actions"}))}renderRestrictedAccessState(){return e("arcgis-hub-help-state",{icon:"walking",message:this.intl.t("restrictedAccessState.message"),slot:"help-state"})}render(){return e(f,{key:"12ca21d87455631d1c7f3dd6e0b4c9286e595931","data-element":"entity-followers"},e("arcgis-hub-workspace-pane",{key:"39f9b92c0e3c2b5e56fb0220bf286153f34848fe",isMobile:this.isMobile,ref:t=>{this.workspacePaneEl=t},stickyFooter:!0},e("h1",{key:"14262dc72d7b79df5ae1bf2f598bb8cc9a349a01",slot:"title"},this.intl.t("followers")),this.followersGroupId?this.isMember?this.renderTabs():this.renderRestrictedAccessState():this.renderEmptyState(),this.activeTab===o.SETTINGS&&e("div",{ref:t=>{this.footerSlotEl=t},slot:"footer"})),this.renderDirtyStateModal())}static get assetsDirs(){return["locales"]}get element(){return w(this)}static get watchers(){return{entity:["init"]}}};F.style=G;return F},"config")
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
import{a as t}from"./BOWY5J5N.js";import"./ZJI4DYQK.js";import{b as c,c as e,i as o}from"./DTBYT7B3.js";import"./57G44J3J.js";import"./O24HC4W5.js";var h=".sc-hub-section-basic-h{display:block}.sc-hub-section-basic-h:not(.configuration-editor__last-child){margin-bottom:2rem}.section-basic--s.sc-hub-section-basic .section-basic__header.sc-hub-section-basic .sc-hub-section-basic:is(h1,h2.sc-hub-section-basic,h3.sc-hub-section-basic,h4.sc-hub-section-basic,h5.sc-hub-section-basic,h6).sc-hub-section-basic{font-size:var(--calcite-font-size--1);margin-top:0px;margin-bottom:1.5rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.section-basic--m.sc-hub-section-basic .section-basic__header.sc-hub-section-basic .sc-hub-section-basic:is(h1,h2.sc-hub-section-basic,h3.sc-hub-section-basic,h4.sc-hub-section-basic,h5.sc-hub-section-basic,h6).sc-hub-section-basic{font-size:var(--calcite-font-size-0);margin-top:0px;margin-bottom:1.5rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.section-basic--l.sc-hub-section-basic .section-basic__header.sc-hub-section-basic .sc-hub-section-basic:is(h1,h2.sc-hub-section-basic,h3.sc-hub-section-basic,h4.sc-hub-section-basic,h5.sc-hub-section-basic,h6).sc-hub-section-basic{font-size:var(--calcite-font-size-1);margin-top:0px;margin-bottom:1.5rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.helper-text.sc-hub-section-basic{margin-top:-1.25rem;margin-bottom:1.5rem}.variant-workspace.sc-hub-section-basic{border-radius:0.25rem;padding:1.25rem;--tw-shadow:0 1px 6px -1px rgba(0, 0, 0, 0.16), 0 1px 2px -1px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 1px 6px -1px var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);background:white}@media screen and (max-width: 816px){.variant-workspace.sc-hub-section-basic .variant-workspace.sc-hub-section-basic{padding:0px}.variant-workspace.sc-hub-section-basic .variant-workspace.sc-hub-section-basic{--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)}}.variant-layout-editor.sc-hub-section-basic .section-basic__header.sc-hub-section-basic h5.sc-hub-section-basic,.variant-layout-editor.sc-hub-section-basic .section-basic__header.sc-hub-section-basic h6.sc-hub-section-basic{font-weight:var(--calcite-font-weight-bold)}.variant-layout-editor.sc-hub-section-basic-s>.section__content>.section__fields,.variant-layout-editor .sc-hub-section-basic-s>.section__content>.section__fields{font-weight:var(--calcite-font-weight-bold)}",b=h,l=class{constructor(s){o(this,s),this.params=void 0}get scale(){var s;return((s=this.params.uiSchema.options)===null||s===void 0?void 0:s.scale)||this.params.scale}render(){var s,a;let n=((s=this.params.uiSchema.options)===null||s===void 0?void 0:s.headerTag)||"h2",i=((a=this.params.uiSchema.options)===null||a===void 0?void 0:a.helperText)||{},r=!!(i.label||i.labelKey);return c(e,{key:"4ab1904f86a646d479d12283403645ca74feb373"},c("section",{key:"7b644e3901a04fe9802f370c68c23df0defc82a4",class:{[this.params.variant]:!!this.params.variant,[`section-basic--${this.scale}`]:!0},"data-label":this.params.label},this.params.label&&c("header",{class:"section-basic__header"},c(n,null,this.params.label)),r&&t(this.params.uiSchema,this.params.t),c("slot",{key:"2cae508d9cc068ed11c061a5973394cca8bdd3ad"})))}};l.style=b;export{l as hub_section_basic};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
import{a as u}from"./UIHTD25G.js";import{a as l}from"./JY6NP6BO.js";import{a as f}from"./C44U2OB4.js";import{t as c}from"./EV2JXOA6.js";var d="4326";function m(e){if(typeof e=="object"){let{wkid:r,wkt:o}=e;return r?String(r):l.btoa(o)}else return e}function T(e){let r;try{r=JSON.parse(e)}catch{r=e}return r}function P(e,r){let{onlyTypes:o,layerId:i,spatialRefId:p}=I(r),s=Object.keys(u).map(a=>u[a]),y=new Set(c(s.filter(a=>!a.supportsProjection).map(a=>a.itemTypes))),t;o?t=o:t=c(s.map(a=>a.itemTypes));let n=new f().startGroup().match(`"${g(e)}"`).in("typekeywords").and().match(`"${h(i)}"`).in("typekeywords").endGroup().and().startGroup();return S(n,{types:t,spatialRefId:p,noProjectionItemTypes:y}),n.endGroup(),n.toParam()}function I(e){return e?{onlyTypes:e.onlyTypes,layerId:e.layerId,spatialRefId:e.spatialRefId}:{}}function S(e,r){let{types:o,noProjectionItemTypes:i,spatialRefId:p}=r,s=(t,n)=>{let a=d;return t&&!i.has(n)&&(a=t),a},y=(t,n)=>{n.startGroup().match(/\s/g.test(t)?t:`"${t}"`).in("type").and().match(`"${R(s(p,t))}"`).in("typekeywords").endGroup()};o.forEach((t,n)=>{y(t,e),n<o.length-1&&e.or()})}function R(e){let r=T(e);return`spatialRefId:${m(r)}`}function g(e){return`exportItem:${e}`}function h(e){return e?`exportLayer:0${e}`:"exportLayer:null"}export{d as a,m as b,P as c,R as d,g as e,h as f};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
import{a as yt}from"./BKHUA4EN.js";import{a as Ee}from"./IJTUO52R.js";import{a as Te,b as Le,c as je,d as He,e as Fe}from"./VWVG4LGD.js";import{a as mt}from"./SWOFPCXW.js";import{a as gt,c as bt}from"./LZJBMSFO.js";import{a as ne}from"./672VG6AM.js";import{a as ue}from"./22U5TR2O.js";import{a as pe}from"./GC5IHDG2.js";import b from"./2A2B5HYT.js";import"./S26SRG5H.js";import{a as Se}from"./KT5MNF6F.js";import{a as ie,b as ke}from"./2RRSN2PS.js";import{a as de,b as H}from"./5KBR6TL7.js";import a from"./QMB3FDAJ.js";import"./GK34X7UX.js";import"./5P7Y7FRU.js";import{a as K}from"./LSAQ2EN6.js";import{a as Me}from"./22BVVS45.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"./NE3OADHY.js";import{a as it,b as nt}from"./P4MXSDZZ.js";import{a as Ie}from"./K3X7AUNF.js";import{a as ot}from"./7IR3BQUS.js";import{b as Ue}from"./MQUYJMV3.js";import{a as at}from"./PSHRDPMT.js";import"./OJG6YJU2.js";import"./DLTRVV62.js";import"./SG3MRQQS.js";import"./3JNZKALP.js";import"./VNCTCE3W.js";import"./3H2XVCUA.js";import"./NSWO3NKN.js";import{m as Ye,n as Qe}from"./6K6WKPZQ.js";import"./T4DVEGL4.js";import"./V6NHKOVW.js";import"./IRQH4SGB.js";import"./FBHZFLUE.js";import"./VSPWXVBG.js";import"./EGBO3YSD.js";import"./COVS2GLW.js";import"./5LNMPOSU.js";import"./3JQFOVPN.js";import"./SUYL5G5F.js";import"./PNWIFTI5.js";import"./UETQQWJR.js";import"./GOYRZLHW.js";import"./ZCB7MPIU.js";import"./OPZUQV25.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"./5CWJU6RW.js";import"./DWBLFAWO.js";import"./NPM7OWN2.js";import"./QO5JSWW6.js";import"./XHGGBDVC.js";import"./P5YVCJ76.js";import"./G65CYRHZ.js";import"./XAURY4UO.js";import"./7EZSEWT3.js";import"./DFDA74PW.js";import"./A6B6M6IC.js";import"./PUAZLJVT.js";import"./RBRBWGI3.js";import"./VYJILSFN.js";import{f as fe,k as x,l as Be,m as ve,n as Ge}from"./HLGTHHBD.js";import"./7BWZGM37.js";import"./V2WG2Z2L.js";import"./XRY5Q7JW.js";import"./ZUGTLVFI.js";import"./EWRFEQYU.js";import"./TNGWB2Z2.js";import"./W2ENVDR4.js";import"./HG3NKY2P.js";import"./LMMS6HAF.js";import"./AE3YP3DS.js";import"./3TKT33QR.js";import"./XCROLCMJ.js";import"./6N54EYC3.js";import"./WQHPGOEB.js";import"./PZLJBXRN.js";import{h as ye}from"./J7XK3YZJ.js";import"./TU2TZIOE.js";import"./GUJII33O.js";import"./47DVYEBK.js";import"./UCNNVIFH.js";import"./WR47QMI3.js";import"./TY7YFLIP.js";import"./73GZFDLD.js";import"./FGYVTYHF.js";import"./FORQ67CP.js";import"./XBRL2JOD.js";import"./C44U2OB4.js";import"./6AEVM2ZJ.js";import"./FTL6O3Q5.js";import"./5AV2EUV3.js";import"./DN6WLBHD.js";import"./UFG3BQVX.js";import{a as $}from"./JBY7Y4K6.js";import{c as Q,g as Ne,j as oe}from"./7FCQMEWY.js";import"./22KLMUMX.js";import{a as g}from"./7S7LGGUA.js";import"./SM6FLGRN.js";import{a as j}from"./SYEKE27I.js";import"./TETS77HI.js";import"./A4ZBGD5O.js";import{b as r,c as q,d as F,e as v,h as E,i as N}from"./DTBYT7B3.js";import"./LEXC2XLO.js";import"./D4GA6N3R.js";import"./UJNIWZNR.js";import"./PKEWV6AV.js";import"./ITDUI6ZI.js";import"./LLFPFIWD.js";import{o as Ve}from"./S7NFU7QR.js";import"./3BK6FEHB.js";import"./OFGOMONR.js";import"./A5HPY7H3.js";import{a as X}from"./7OMQGXTT.js";import{a as G}from"./EV2JXOA6.js";import"./57G44J3J.js";import"./WEHYONDE.js";import"./O24HC4W5.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.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
import{b as i}from"./ZJI4DYQK.js";import{b as e,c as a,i as o}from"./DTBYT7B3.js";import{g as t,r as c}from"./EV2JXOA6.js";import"./57G44J3J.js";import"./O24HC4W5.js";var r="calcite-block.sc-hub-section-block{--calcite-block-padding:.75rem}.section-block--l.sc-hub-section-block{--calcite-font-size--1:var(--calcite-font-size-1)}.section-block--m.sc-hub-section-block{--calcite-font-size--1:var(--calcite-font-size-0)}.section-block--s.sc-hub-section-block{--calcite-font-size--1:var(--calcite-font-size--1)}calcite-block.sc-hub-section-block-s>*,calcite-block .sc-hub-section-block-s>*{--calcite-font-size--1:14px}calcite-block.sc-hub-section-block-s>.section__content>.helper-text{margin-bottom:1.5rem}",b=r,p=class{constructor(s){o(this,s),this.params=void 0}componentWillLoad(){this._key=t("block")}get scale(){var s;return((s=this.params.uiSchema.options)===null||s===void 0?void 0:s.scale)||this.params.scale||"l"}get isCollapsible(){var s;return c((s=this.params.uiSchema.options)===null||s===void 0?void 0:s.collapsible)?!0:this.params.uiSchema.options.collapsible}get isOpen(){var s;return(s=this.params.uiSchema.options)===null||s===void 0?void 0:s.open}render(){let{label:s,disabled:l}=this.params,{iconStart:n}=this.params.uiSchema.options||{};return e(a,{key:"8f35f8bd19a525850aa0dc63b8879f701485efac"},e("calcite-block",{class:{[this.params.variant]:!!this.params.variant,[`section-block--${this.scale}`]:!0},collapsible:this.isCollapsible,"data-label":s,description:i(this.params.uiSchema,this.params.t,"options.helperText"),disabled:l,expanded:this.isOpen,heading:s,iconStart:n,key:this._key},e("slot",{key:"1d7afb50cff0796bd9e7e027c6dee236d113dd34"})))}};p.style=b;export{p as hub_section_block};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
function f(t){let s=t;if(/^#(?:[0-9a-fA-F]{3})$/.test(t)){let[n,r,i]=t.substring(1).split("");s=`#${n}${n}${r}${r}${i}${i}`}return s}export{f as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
import e from"./62M4WKMB.js";import{a as p}from"./KT5MNF6F.js";import{a as k}from"./APSS2Y4K.js";import c from"./TRT7GRU7.js";import a from"./QMB3FDAJ.js";import"./GK34X7UX.js";import"./5P7Y7FRU.js";import"./7IR3BQUS.js";import"./OJG6YJU2.js";import{a as f}from"./DLTRVV62.js";import"./SG3MRQQS.js";import"./3JNZKALP.js";import"./VNCTCE3W.js";import{j as d}from"./3H2XVCUA.js";import"./34L55HV7.js";import"./GOYRZLHW.js";import"./ZCB7MPIU.js";import"./OPZUQV25.js";import"./5CWJU6RW.js";import"./DWBLFAWO.js";import"./NPM7OWN2.js";import"./QO5JSWW6.js";import"./XHGGBDVC.js";import"./P5YVCJ76.js";import"./G65CYRHZ.js";import"./XAURY4UO.js";import"./7EZSEWT3.js";import"./DFDA74PW.js";import"./A6B6M6IC.js";import"./PUAZLJVT.js";import"./RBRBWGI3.js";import"./VYJILSFN.js";import"./HLGTHHBD.js";import"./7BWZGM37.js";import"./V2WG2Z2L.js";import"./XRY5Q7JW.js";import"./ZUGTLVFI.js";import"./EWRFEQYU.js";import"./TNGWB2Z2.js";import"./W2ENVDR4.js";import"./HG3NKY2P.js";import{g as y}from"./LMMS6HAF.js";import"./AE3YP3DS.js";import"./3TKT33QR.js";import"./XCROLCMJ.js";import"./6N54EYC3.js";import"./WQHPGOEB.js";import"./PZLJBXRN.js";import"./J7XK3YZJ.js";import"./TU2TZIOE.js";import"./GUJII33O.js";import"./47DVYEBK.js";import"./UCNNVIFH.js";import"./WR47QMI3.js";import"./TY7YFLIP.js";import"./73GZFDLD.js";import"./FGYVTYHF.js";import"./FORQ67CP.js";import"./XBRL2JOD.js";import"./C44U2OB4.js";import"./6AEVM2ZJ.js";import"./FTL6O3Q5.js";import"./5AV2EUV3.js";import"./DN6WLBHD.js";import"./UFG3BQVX.js";import{a as b}from"./JBY7Y4K6.js";import{c as A}from"./7FCQMEWY.js";import"./22KLMUMX.js";import"./7S7LGGUA.js";import"./SM6FLGRN.js";import{a as g}from"./SYEKE27I.js";import"./TETS77HI.js";import"./A4ZBGD5O.js";import{b as i,c as S,d as E,e as o,h,i as R}from"./DTBYT7B3.js";import"./D4GA6N3R.js";import"./UJNIWZNR.js";import"./PKEWV6AV.js";import"./ITDUI6ZI.js";import"./LLFPFIWD.js";import"./S7NFU7QR.js";import"./3BK6FEHB.js";import"./OFGOMONR.js";import"./A5HPY7H3.js";import"./7OMQGXTT.js";import"./EV2JXOA6.js";import"./57G44J3J.js";import"./WEHYONDE.js";import"./O24HC4W5.js";export default $arcgis.t(([,,{d:T},{a:v,b:w,c:C}])=>{var L=":host{display:block}.title{font-family:var(--hub-heading-family, inherit);font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-medium);margin-block:0 0.25rem}.title calcite-link{text-decoration:underline;color:var(--calcite-color-text-link)}.title calcite-link div{display:flex;gap:0.25rem}calcite-list-item>calcite-button{margin-inline-end:0.25rem}calcite-popover>calcite-button{margin:0.25rem}arcgis-hub-image{aspect-ratio:200 / 133;height:2.5rem}.previous-results-end{position:absolute}dl{margin-block:0}dl div{display:inline-flex;flex-wrap:wrap;gap:0.25rem}dl div:not(:last-child){margin-inline-end:0.25rem}dd{margin:0px;font-weight:var(--calcite-font-weight-bold)}",I=L,H=class{constructor(t){R(this,t),this.arcgisHubCardSelect=o(this,"arcgisHubCardSelect",7),this.arcgisHubGalleryOrderChange=o(this,"arcgisHubGalleryOrderChange",7),this.arcgisHubGalleryLinkClick=o(this,"arcgisHubGalleryLinkClick",7),this.arcgisHubCardAction=o(this,"arcgisHubCardAction",7),this.hubTelemetry=o(this,"hubTelemetry",7),this.searchResults=[],this.loading=!1,this.selectedIds=[],this.baseUrl=void 0,this.linkTarget="self",this.limit=10,this.newTab=!1,this.cardTitleTag="div",this.showEmptyState=!0,this.showThumbnail=!0,this.imageType=d.thumbnail,this.lazy=!1,this.selectionMode="none",this.showAdditionalInfo=!0,this.cardActionLinks=[],this.reorderable=!1,this.lastSearchResultsCount=void 0,this.hasError=!1,this.callback=void 0,this.disableTelemetry=!1,this.isMobile=!1,b(this,"handleOrderChange","handleResize","handleSelect","setPreviousResultsEnd","onTitleLinkClick","onTitleLinkKeyDown")}get shouldRenderEmptyState(){return!this.searchResults.length&&this.showEmptyState||this.hasError}get context(){return A()}connectedCallback(){p.addHandler(this.element,this.handleResize)}disconnectedCallback(){p.unobserve(this.element)}async componentWillLoad(){this.intl=await g.loadIntlForComponent(this.element)}componentDidUpdate(){var t;(t=this.previousResultsEnd)===null||t===void 0||t.focus({preventScroll:!0})}handleResize(){this.isMobile=this.element.clientWidth<f.SMALL}handleSelect(t){let e=t.target.dataset.id;this.arcgisHubCardSelect.emit({id:e})}handleOrderChange(t){let{detail:{newIndex:e,oldIndex:r,dragEl:s}}=t,n={id:s.dataset.id,newIndex:e,oldIndex:r};this.arcgisHubGalleryOrderChange.emit(n)}setPreviousResultsEnd(t){this.previousResultsEnd=t}renderThumbnail(t){let e;return this.showThumbnail&&this.imageType===d.thumbnail&&(t.type==="User"||t.type==="channel"?e=i("calcite-avatar",{"aria-hidden":"true",fullName:k(t),slot:"content-start",thumbnail:t.thumbnailUrl,username:t.source}):e=i("arcgis-hub-image",{alt:`${t.title} thumbnail`,"aria-hidden":"true",class:{"group-thumbnail":t.type==="Group"},fallback:w(t),lazy:this.lazy,slot:"content-start",src:v(t,40,this.context)})),e}getViewModel(t){let e={actionLinks:this.cardActionLinks,baseUrl:this.baseUrl,locale:this.intl.formatLocale,target:this.linkTarget};return C(t,"row",e,this.callback,this.context,this.intl)}renderResult(t){let e=this.getViewModel(t),r=e.actionLinks?e.actionLinks:this.cardActionLinks,s=this.selectedIds.includes(t.id);return i("calcite-list-item",{"data-id":e.id,iconStart:this.showThumbnail&&this.imageType===d.icon?y(e.type):"",key:e.id,onCalciteListItemSelect:this.handleSelect,selected:s},this.renderThumbnail(e),i("div",{slot:"content"},this.renderTitle(e)),this.renderAdditionalInfo(e.additionalInfo),this.renderActionLinks(e,r,this.newTab))}renderTitle(t){let e=t.titleUrl,r=this.cardTitleTag,s=i("arcgis-multiline-ellipsis",{breakAnywhere:!0,lines:1,tabIndex:-1,tooltipEnabled:!0,tooltipOverlayPositioning:"fixed"},t.title);if(e){let a=this.newTab?"_blank":"_self";return i(r,{class:"title","data-href":e,"data-target":a,onKeyDown:this.onTitleLinkKeyDown,tabIndex:0},i("calcite-link",{"data-key":t.id,href:e,onClick:this.onTitleLinkClick,tabIndex:-1,target:a},this.newTab?i("div",null,s,i("calcite-icon",{icon:"launch-2",scale:"s"})):s))}else return i(r,{class:"title"},s)}onTitleLinkClick(t){this.linkTarget==="event"&&(t.stopPropagation(),t.preventDefault());let r=(t.type==="click"?t.currentTarget:t.target.firstElementChild).dataset.key,s=this.getViewModel(this.searchResults.find(n=>n.id===r)),a=T(this.linkTarget,s);!this.disableTelemetry&&a&&this.hubTelemetry.emit(a),this.arcgisHubGalleryLinkClick.emit({model:s,event:t})}onTitleLinkKeyDown(t){if((t.key==="Enter"||t.key===" ")&&(this.onTitleLinkClick(t),this.linkTarget!=="event")){let e=t.target.dataset.href,r=t.target.dataset.target;setTimeout(()=>window.open(e,r),0)}}renderAdditionalInfo(t){if(this.showAdditionalInfo&&t.length)return i("dl",{slot:"content"},t.slice(0,2).map((e,r)=>i("div",{key:r},i("dt",{key:`dt${r}`},e.i18nKey?this.intl.t(e.i18nKey):e.label),i("dd",{key:`dd${r}`},e.value))))}renderActionLinks(t,e,r){let{isMobile:s}=this,a=s&&e.length>1,n=e.filter(l=>!!l.href||!!l.action).map((l,m)=>this.renderActionLink(t,l,r,`${t.id}-${m}`,a));if(a){let l=`${t.id}-overflow-menu-trigger`;return[i("calcite-popover",{autoClose:!0,key:`${t.id}-overflow-menu`,"overlay-positioning":"fixed","reference-element":l,slot:"actions-end"},n),i("calcite-button",{appearance:"outline",iconStart:"ellipsis",id:l,key:l,round:!0,slot:"actions-end"})]}else return n}renderActionLink(t,e,r,s,a){let n=a?"":"actions-end",l=e.label;!l&&e.i18nKey&&(l=this.intl.t(e.i18nKey));let m=e.showLabel||a,u=e.action&&this.actionHandler.bind(this,e.action,t),c=e.ariaLabel||l;return c.includes(t.title)||(c=`${c}: ${t.title}`),i(h,null,i("calcite-button",{appearance:e.buttonStyle,disabled:e.disabled,href:e.href,iconStart:e.icon,id:`al-${s}`,key:s,kind:e.buttonKind,label:c,onClick:u||void 0,round:!a,slot:n,target:r?"_blank":"_self"},m&&l),!a&&this.renderActionTooltip(e,s))}actionHandler(t,e){this.arcgisHubCardAction.emit({action:t,model:e})}renderActionTooltip(t,e){if(t.tooltip)return i("calcite-tooltip",{key:e,label:t.ariaLabel,"overlay-positioning":"fixed",placement:"bottom","reference-element":`al-${e}`,slot:"actions-end"},i("span",null,t.tooltip))}renderLoading(){return i("div",{class:"card-container"},i("arcgis-skeleton-loader",{active:!0,rows:this.limit}))}renderEmptyState(){let t=this.hasError?"helpState.error.message":"helpState.noResults.message",e=this.intl.t(t),r=this.hasError?"search-error-action":"no-results-action";return i(h,null,i("arcgis-hub-help-state",{icon:"file-magnifying-glass"},i("div",{"aria-live":"polite",role:"status",slot:"message"},i("h3",null,e)),i("span",{slot:"actions"},i("div",{class:"no-results-action-container"},i("slot",{name:r})))))}renderResults(){let{searchResults:t}=this,e;if(t.length){let r=t.reduce((s,a,n)=>(s.push(this.renderResult(a)),n===this.lastSearchResultsCount-1&&s.push(i("div",{class:"previous-results-end",ref:this.setPreviousResultsEnd,tabIndex:-1})),s),[]);e=i(h,null,i("div",{class:"card-container","data-test":"result-container"},i("calcite-list",{dragEnabled:this.reorderable,interactionMode:"static",label:this.intl.t("label"),onCalciteListOrderChange:this.handleOrderChange,selectionMode:this.selectionMode},r)))}else this.shouldRenderEmptyState&&(e=this.renderEmptyState());return e}render(){return i(S,{key:"312175ab0b4d26210811be29922e0d1ed8644b6f","data-element":"gallery-layout-compact"},this.loading?this.renderLoading():this.renderResults())}static get assetsDirs(){return["locales"]}get element(){return E(this)}};H.style=I;return H},"config",a,c,e)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.13/esri/copyright.txt for details.
|
|
3
|
+
v0.13.1 */
|
|
4
|
+
import"./O24HC4W5.js";var a={chart:"Diagram",barChart:"Liggande stapeldiagram",lineChart:"Linjediagram",pieChart:"Cirkeldiagram",histogram:"Histogram",scatterplot:"Sambandsdiagram",boxPlot:"L\xE5ddiagram"},e={mean:"Medelv\xE4rde",median:"Median",sum:"Summa",discretePercentile:"Diskret percentil",minimum:"Minimum",maximum:"Maximum",variance:"Varians",count:"Antal",aggregation:"${ statistics } av ${ fieldName }",noAggregation:"Ingen aggregering"},t="Diagram",i="Antalsserie",n="X-axel",s="Ej tillg\xE4nglig",r={start:"Snappa till den f\xF6rsta datapunkten",end:"Snappa till den sista datapunkten"},g={chartType:a,statistics:e,defaultTitle:t,countSeries:i,xAxis:n,notAvailable:s,timeAggregationTypes:r};export{a as chartType,i as countSeries,g as default,t as defaultTitle,s as notAvailable,e as statistics,r as timeAggregationTypes,n as xAxis};
|