@esri/hub-web-components 0.28.1 → 0.29.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.
Files changed (1361) hide show
  1. package/dist/cdn/22K3KB7Q.js +4 -0
  2. package/dist/cdn/234CIUEA.js +4 -0
  3. package/dist/cdn/23SKMRA4.js +4 -0
  4. package/dist/cdn/246EHN7Y.js +4 -0
  5. package/dist/cdn/24M3L5BR.js +4 -0
  6. package/dist/cdn/25WUDVDA.js +4 -0
  7. package/dist/cdn/262LAIQW.js +4 -0
  8. package/dist/cdn/2AZURAR6.js +4 -0
  9. package/dist/cdn/2HRSG2J2.js +4 -0
  10. package/dist/cdn/2MIPHJAF.js +4 -0
  11. package/dist/cdn/2N2P3CTA.js +4 -0
  12. package/dist/cdn/2NZYIKOT.js +4 -0
  13. package/dist/cdn/2OLOQGLN.js +4 -0
  14. package/dist/cdn/2OQPI63Q.js +4 -0
  15. package/dist/cdn/2OZUAD6C.js +4 -0
  16. package/dist/cdn/2PXAMZM5.js +4 -0
  17. package/dist/cdn/2QPOJR7R.js +4 -0
  18. package/dist/cdn/2RWZX4QX.js +4 -0
  19. package/dist/cdn/2UHQF2UP.js +4 -0
  20. package/dist/cdn/2URPFAH7.js +4 -0
  21. package/dist/cdn/2WRH7W7O.js +4 -0
  22. package/dist/cdn/2WVKJKZT.js +4 -0
  23. package/dist/cdn/2XJGIGV2.js +4 -0
  24. package/dist/cdn/2YW7WJQW.js +4 -0
  25. package/dist/cdn/2ZJ6MCL2.js +4 -0
  26. package/dist/cdn/332QVUJ7.js +4 -0
  27. package/dist/cdn/35FVTK2Q.js +4 -0
  28. package/dist/cdn/36S4FBUS.js +4 -0
  29. package/dist/cdn/3DJOF4FR.js +4 -0
  30. package/dist/cdn/3GGO767N.js +4 -0
  31. package/dist/cdn/3HFUY5J6.js +4 -0
  32. package/dist/cdn/3HIG23PD.js +4 -0
  33. package/dist/cdn/3N6KNYTK.js +4 -0
  34. package/dist/cdn/3NFOARJD.js +4 -0
  35. package/dist/cdn/3O6SCKDT.js +4 -0
  36. package/dist/cdn/3P2THEON.js +5 -0
  37. package/dist/cdn/3RKFVQCV.js +4 -0
  38. package/dist/cdn/3RL7QJXF.js +4 -0
  39. package/dist/cdn/3UGTAFWJ.js +4 -0
  40. package/dist/cdn/3UIAIPSU.js +4 -0
  41. package/dist/cdn/3YACYPHA.js +4 -0
  42. package/dist/cdn/424LZEUJ.js +4 -0
  43. package/dist/cdn/42RLKEQG.js +4 -0
  44. package/dist/cdn/42SIK7PN.js +4 -0
  45. package/dist/cdn/43UBES3L.js +4 -0
  46. package/dist/cdn/447QPLNF.js +4 -0
  47. package/dist/cdn/44N2KH3J.js +4 -0
  48. package/dist/cdn/44NHHBWM.js +4 -0
  49. package/dist/cdn/44XUQWIU.js +4 -0
  50. package/dist/cdn/455LI7JX.js +4 -0
  51. package/dist/cdn/4FNTB26O.js +4 -0
  52. package/dist/cdn/4G6KVFUH.js +4 -0
  53. package/dist/cdn/4MJJSVO5.js +4 -0
  54. package/dist/cdn/4NVD35TY.js +4 -0
  55. package/dist/cdn/4PPDNCZ3.js +4 -0
  56. package/dist/cdn/4QAECPQ5.js +4 -0
  57. package/dist/cdn/4QPVRAA5.js +4 -0
  58. package/dist/cdn/4SB2OBV6.js +4 -0
  59. package/dist/cdn/4SRBK3UW.js +4 -0
  60. package/dist/cdn/4TXC4RLD.js +4 -0
  61. package/dist/cdn/4UF3BSFV.js +4 -0
  62. package/dist/cdn/4VMF6SAG.js +4 -0
  63. package/dist/cdn/4W4CZTR3.js +4 -0
  64. package/dist/cdn/4XJD25NC.js +4 -0
  65. package/dist/cdn/4YEOHBGW.js +4 -0
  66. package/dist/cdn/52UV6TH6.js +4 -0
  67. package/dist/cdn/536DJM5C.js +51 -0
  68. package/dist/cdn/57AG4P5S.js +4 -0
  69. package/dist/cdn/57DCY4BX.js +4 -0
  70. package/dist/cdn/5AELWEDM.js +4 -0
  71. package/dist/cdn/5AI6A5NS.js +4 -0
  72. package/dist/cdn/5BDFHX6Q.js +4 -0
  73. package/dist/cdn/5IUB7BOA.js +4 -0
  74. package/dist/cdn/5LBXTODZ.js +4 -0
  75. package/dist/cdn/5PDZSKI7.js +4 -0
  76. package/dist/cdn/5RSBMQEH.js +4 -0
  77. package/dist/cdn/5S3LMLWK.js +4 -0
  78. package/dist/cdn/5U53CW5A.js +4 -0
  79. package/dist/cdn/5U5NAMI7.js +4 -0
  80. package/dist/cdn/5UTTZJJR.js +5 -0
  81. package/dist/cdn/5UXWEVZN.js +4 -0
  82. package/dist/cdn/63P3I5F5.js +4 -0
  83. package/dist/cdn/63QJCMQT.js +4 -0
  84. package/dist/cdn/6AHWQXJY.js +4 -0
  85. package/dist/cdn/6AVKDJ5J.js +4 -0
  86. package/dist/cdn/6H3UVB6T.js +4 -0
  87. package/dist/cdn/6HTOCR3H.js +4 -0
  88. package/dist/cdn/6JRR7NHN.js +4 -0
  89. package/dist/cdn/6KPJS5UO.js +4 -0
  90. package/dist/cdn/6KZD7QRJ.js +4 -0
  91. package/dist/cdn/6LLWQXHE.js +4 -0
  92. package/dist/cdn/6LZUIHF2.js +4 -0
  93. package/dist/cdn/6MDJYHN7.js +4 -0
  94. package/dist/cdn/6MNJLAYN.js +4 -0
  95. package/dist/cdn/6ND3NLHC.js +4 -0
  96. package/dist/cdn/6OV53NII.js +4 -0
  97. package/dist/cdn/6PVH5AMY.js +4 -0
  98. package/dist/cdn/6QYWBPIC.js +4 -0
  99. package/dist/cdn/6R5W7Q3T.js +4 -0
  100. package/dist/cdn/6S63RJYE.js +4 -0
  101. package/dist/cdn/6URNEDKF.js +4 -0
  102. package/dist/cdn/6ZDBXXZ6.js +4 -0
  103. package/dist/cdn/6ZGJXVHS.js +4 -0
  104. package/dist/cdn/72O5XQRP.js +8 -0
  105. package/dist/cdn/73IONBXV.js +4 -0
  106. package/dist/cdn/73TBJ37X.js +4 -0
  107. package/dist/cdn/74UBLC7U.js +4 -0
  108. package/dist/cdn/75IKWHSX.js +4 -0
  109. package/dist/cdn/7EOVVACH.js +4 -0
  110. package/dist/cdn/7FPZVZOT.js +4 -0
  111. package/dist/cdn/7HI5R6W5.js +4 -0
  112. package/dist/cdn/7HQ7XQLF.js +4 -0
  113. package/dist/cdn/7JJBU5HS.js +4 -0
  114. package/dist/cdn/7MD3X7UO.js +4 -0
  115. package/dist/cdn/7NKIBPCR.js +4 -0
  116. package/dist/cdn/7Q5VNG7Y.js +4 -0
  117. package/dist/cdn/7QF6BUK6.js +4 -0
  118. package/dist/cdn/7QOT6CZA.js +4 -0
  119. package/dist/cdn/7WQKJLFP.js +4 -0
  120. package/dist/cdn/7XSEDJ7P.js +4 -0
  121. package/dist/cdn/7Z2TZCXR.js +4 -0
  122. package/dist/cdn/7ZH266EK.js +4 -0
  123. package/dist/cdn/7ZRDKC6U.js +16 -0
  124. package/dist/cdn/7ZT63TBR.js +4 -0
  125. package/dist/cdn/A2LK3GDS.js +4 -0
  126. package/dist/cdn/A4GWLHLX.js +4 -0
  127. package/dist/cdn/A763TXOZ.js +4 -0
  128. package/dist/cdn/A77IAHBT.js +4 -0
  129. package/dist/cdn/A7J7ERO6.js +4 -0
  130. package/dist/cdn/ADZMJP4P.js +4 -0
  131. package/dist/cdn/AGF7GAGR.js +4 -0
  132. package/dist/cdn/AH22CCYS.js +59 -0
  133. package/dist/cdn/AI4S2UYO.js +4 -0
  134. package/dist/cdn/AJLKWPX4.js +59 -0
  135. package/dist/cdn/ANFLEKZX.js +41 -0
  136. package/dist/cdn/AOGCL6JQ.js +4 -0
  137. package/dist/cdn/APK46O2P.js +4 -0
  138. package/dist/cdn/AQRREMUA.js +4 -0
  139. package/dist/cdn/ARXAOOUH.js +4 -0
  140. package/dist/cdn/AU7OJKTL.js +4 -0
  141. package/dist/cdn/AVB5SM6O.js +4 -0
  142. package/dist/cdn/AVKVJWNF.js +4 -0
  143. package/dist/cdn/AVZBITQ5.js +4 -0
  144. package/dist/cdn/AW5UTYA2.js +4 -0
  145. package/dist/cdn/AWTNRDCW.js +4 -0
  146. package/dist/cdn/AXKNW3GD.js +4 -0
  147. package/dist/cdn/AYJV46KK.js +4 -0
  148. package/dist/cdn/B3ACK6IJ.js +4 -0
  149. package/dist/cdn/B3XPZJGQ.js +4 -0
  150. package/dist/cdn/B56CZAVN.js +4 -0
  151. package/dist/cdn/B64WPXWC.js +4 -0
  152. package/dist/cdn/BB7MJOVL.js +4 -0
  153. package/dist/cdn/BBQHJKEU.js +4 -0
  154. package/dist/cdn/BCKGCPJC.js +4 -0
  155. package/dist/cdn/BDQOWQ6Q.js +4 -0
  156. package/dist/cdn/BFRCBE5Y.js +4 -0
  157. package/dist/cdn/BI4MNOGT.js +4 -0
  158. package/dist/cdn/BID533GH.js +4 -0
  159. package/dist/cdn/BL5Q7IDP.js +4 -0
  160. package/dist/cdn/BLGFLK6C.js +25 -0
  161. package/dist/cdn/BNLZECJN.js +4 -0
  162. package/dist/cdn/BR72TADM.js +4 -0
  163. package/dist/cdn/BUIKE4OU.js +4 -0
  164. package/dist/cdn/BVHKDT5Z.js +4 -0
  165. package/dist/cdn/BZLKDZXX.js +4 -0
  166. package/dist/cdn/C6EHLYSW.js +4 -0
  167. package/dist/cdn/C7WAIKWD.js +4 -0
  168. package/dist/cdn/CBXBDASZ.js +4 -0
  169. package/dist/cdn/CCRPXANA.js +4 -0
  170. package/dist/cdn/CD4FY3DQ.js +4 -0
  171. package/dist/cdn/CDRDGCOZ.js +4 -0
  172. package/dist/cdn/CEDSKJSY.js +4 -0
  173. package/dist/cdn/CEZQPDB6.js +4 -0
  174. package/dist/cdn/CGHL2JQI.js +4 -0
  175. package/dist/cdn/CGIDHO7J.js +4 -0
  176. package/dist/cdn/CGIFXOV2.js +4 -0
  177. package/dist/cdn/CIIFV764.js +4 -0
  178. package/dist/cdn/CJHVFZSW.js +4 -0
  179. package/dist/cdn/CKBPSDQM.js +4 -0
  180. package/dist/cdn/CKEHTOZQ.js +4 -0
  181. package/dist/cdn/CLYLEENO.js +4 -0
  182. package/dist/cdn/CMWHELYL.js +4 -0
  183. package/dist/cdn/CN3JQRYB.js +4 -0
  184. package/dist/cdn/CNAXYQLB.js +4 -0
  185. package/dist/cdn/CNVOIBJ6.js +4 -0
  186. package/dist/cdn/CO66ZPBK.js +4 -0
  187. package/dist/cdn/CVL6QDMS.js +4 -0
  188. package/dist/cdn/CW2TKCXJ.js +4 -0
  189. package/dist/cdn/CWMFD4K2.js +4 -0
  190. package/dist/cdn/CXISYIIG.js +4 -0
  191. package/dist/cdn/CXWCJAKU.js +4 -0
  192. package/dist/cdn/CZNL7UND.js +4 -0
  193. package/dist/cdn/D3F237RI.js +4 -0
  194. package/dist/cdn/D45CFK3L.js +4 -0
  195. package/dist/cdn/D4DXTJL6.js +4 -0
  196. package/dist/cdn/D4GZ3AKZ.js +4 -0
  197. package/dist/cdn/D56OYMIT.js +4 -0
  198. package/dist/cdn/D6HOYTAF.js +4 -0
  199. package/dist/cdn/DAEHHEWX.js +4 -0
  200. package/dist/cdn/DAGKJCSR.js +4 -0
  201. package/dist/cdn/DAMXJMH4.js +4 -0
  202. package/dist/cdn/DB5NJRBT.js +4 -0
  203. package/dist/cdn/DBRUPMUU.js +4 -0
  204. package/dist/cdn/DETDO72Y.js +4 -0
  205. package/dist/cdn/DMC2UZ53.js +4 -0
  206. package/dist/cdn/DNVNG3FW.js +4 -0
  207. package/dist/cdn/DRVGM37I.js +4 -0
  208. package/dist/cdn/DTCXYVHY.js +4 -0
  209. package/dist/cdn/DTIQRYAN.js +4 -0
  210. package/dist/cdn/DURJBMQ2.js +4 -0
  211. package/dist/cdn/DVYCAJ3A.js +4 -0
  212. package/dist/cdn/DYHUVH33.js +4 -0
  213. package/dist/cdn/DZIWQCD7.js +4 -0
  214. package/dist/cdn/E2HWE2JO.js +4 -0
  215. package/dist/cdn/E4IK3KCY.js +4 -0
  216. package/dist/cdn/E4MENKAS.js +6 -0
  217. package/dist/cdn/E6XOSRQT.js +4 -0
  218. package/dist/cdn/EACY32WW.js +4 -0
  219. package/dist/cdn/EAZXKLOH.js +4 -0
  220. package/dist/cdn/EIAPJK6P.js +4 -0
  221. package/dist/cdn/EKY6KVO2.js +4 -0
  222. package/dist/cdn/ELFMNYHM.js +4 -0
  223. package/dist/cdn/ELON2ITW.js +4 -0
  224. package/dist/cdn/EO5VUEP7.js +4 -0
  225. package/dist/cdn/EOOCFRMQ.js +4 -0
  226. package/dist/cdn/ES5DDV2V.js +4 -0
  227. package/dist/cdn/EW3PGGMG.js +4 -0
  228. package/dist/cdn/EYH7WMCY.js +4 -0
  229. package/dist/cdn/EYSAXT5X.js +4 -0
  230. package/dist/cdn/F2FTAAWN.js +4 -0
  231. package/dist/cdn/F4SWLWWY.js +4 -0
  232. package/dist/cdn/F5NYTYDZ.js +4 -0
  233. package/dist/cdn/F66ZA3AI.js +4 -0
  234. package/dist/cdn/F6A6S3UN.js +4 -0
  235. package/dist/cdn/FCNTCKOL.js +4 -0
  236. package/dist/cdn/FDAWMMRJ.js +4 -0
  237. package/dist/cdn/FDSIYH7C.js +4 -0
  238. package/dist/cdn/FIIJ2UCH.js +4 -0
  239. package/dist/cdn/FJKYCHAD.js +4 -0
  240. package/dist/cdn/FK76UKRG.js +4 -0
  241. package/dist/cdn/FKVDX3V2.js +4 -0
  242. package/dist/cdn/FSRGQ4Z6.js +4 -0
  243. package/dist/cdn/FZJQCKDS.js +4 -0
  244. package/dist/cdn/G4FWTGJE.js +4 -0
  245. package/dist/cdn/G7XZX54N.js +4 -0
  246. package/dist/cdn/GBAFNCAW.js +4 -0
  247. package/dist/cdn/GBIUV7Q2.js +4 -0
  248. package/dist/cdn/GCAU4SG6.js +4 -0
  249. package/dist/cdn/GDSAJ4W4.js +4 -0
  250. package/dist/cdn/GDWQJDQD.js +4 -0
  251. package/dist/cdn/GH4BH666.js +4 -0
  252. package/dist/cdn/GK3F6JEV.js +4 -0
  253. package/dist/cdn/GK6LIKHN.js +4 -0
  254. package/dist/cdn/GKVCSLXY.js +4 -0
  255. package/dist/cdn/GKYGWREI.js +4 -0
  256. package/dist/cdn/GNUILES5.js +5 -0
  257. package/dist/cdn/GOXJGZJR.js +4 -0
  258. package/dist/cdn/GTLN3OZD.js +4 -0
  259. package/dist/cdn/GVQQKTNJ.js +4 -0
  260. package/dist/cdn/GXUUQRQX.js +4 -0
  261. package/dist/cdn/GYZFRBPP.js +4 -0
  262. package/dist/cdn/H2AALJCA.js +4 -0
  263. package/dist/cdn/H2MY7KKI.js +4 -0
  264. package/dist/cdn/H2SBHYBO.js +4 -0
  265. package/dist/cdn/H4COVO2U.js +4 -0
  266. package/dist/cdn/H4NBCWO7.js +42 -0
  267. package/dist/cdn/H6AW6Q55.js +4 -0
  268. package/dist/cdn/H6URIJ2L.js +4 -0
  269. package/dist/cdn/HAKSDBLX.js +4 -0
  270. package/dist/cdn/HCBTAHEO.js +4 -0
  271. package/dist/cdn/HD5MEL2R.js +4 -0
  272. package/dist/cdn/HDW3KHDL.js +4 -0
  273. package/dist/cdn/HE4AD4TA.js +4 -0
  274. package/dist/cdn/HI5Q6CLV.js +4 -0
  275. package/dist/cdn/HMGVWIKQ.js +4 -0
  276. package/dist/cdn/HN5ZIFX2.js +4 -0
  277. package/dist/cdn/HN7W6HE2.js +4 -0
  278. package/dist/cdn/HNSUD4FW.js +4 -0
  279. package/dist/cdn/HPGLOW7Y.js +4 -0
  280. package/dist/cdn/HPMV73JR.js +4 -0
  281. package/dist/cdn/HVB3EUJR.js +4 -0
  282. package/dist/cdn/HWPUX23B.js +4 -0
  283. package/dist/cdn/HXWHXVSI.js +4 -0
  284. package/dist/cdn/I2SKZDAO.js +4 -0
  285. package/dist/cdn/I4CIM5HT.js +4 -0
  286. package/dist/cdn/I4NVTG64.js +4 -0
  287. package/dist/cdn/IAKMRYX4.js +4 -0
  288. package/dist/cdn/IAKMWCZR.js +4 -0
  289. package/dist/cdn/IBCSRIOS.js +4 -0
  290. package/dist/cdn/IBICIO57.js +4 -0
  291. package/dist/cdn/IBMEOJGH.js +4 -0
  292. package/dist/cdn/IBP5FQAP.js +6 -0
  293. package/dist/cdn/IDAXPOCZ.js +4 -0
  294. package/dist/cdn/IFHPEO4D.js +4 -0
  295. package/dist/cdn/IFHUAUFV.js +4 -0
  296. package/dist/cdn/IG7C4HEJ.js +4 -0
  297. package/dist/cdn/IIQDXIPE.js +4 -0
  298. package/dist/cdn/IJ6F2DNQ.js +4 -0
  299. package/dist/cdn/ILEC5SFJ.js +4 -0
  300. package/dist/cdn/ILPUULP3.js +4 -0
  301. package/dist/cdn/IMIKRDTH.js +4 -0
  302. package/dist/cdn/IMO7Q7YG.js +4 -0
  303. package/dist/cdn/ITAN7ZXC.js +4 -0
  304. package/dist/cdn/IXPGFAWS.js +4 -0
  305. package/dist/cdn/J355PLXH.js +4 -0
  306. package/dist/cdn/J76AYTAL.js +4 -0
  307. package/dist/cdn/J76BAHQQ.js +4 -0
  308. package/dist/cdn/JACO5HUD.js +4 -0
  309. package/dist/cdn/JAHJIKX5.js +4 -0
  310. package/dist/cdn/JB25PRJG.js +4 -0
  311. package/dist/cdn/JBCQZHDP.js +4 -0
  312. package/dist/cdn/JEBBAZZ2.js +4 -0
  313. package/dist/cdn/JEJONE6Y.js +4 -0
  314. package/dist/cdn/JEP2FWDV.js +4 -0
  315. package/dist/cdn/JGNAPYF3.js +4 -0
  316. package/dist/cdn/JJBI5TFN.js +4 -0
  317. package/dist/cdn/JKKLB2LJ.js +4 -0
  318. package/dist/cdn/JSBANOO7.js +4 -0
  319. package/dist/cdn/JSHJ7HRO.js +4 -0
  320. package/dist/cdn/JYQ6F573.js +4 -0
  321. package/dist/cdn/JZ7A3OYC.js +4 -0
  322. package/dist/cdn/JZTHG3SV.js +4 -0
  323. package/dist/cdn/K2GJKLJN.js +4 -0
  324. package/dist/cdn/K2HPUYQT.js +4 -0
  325. package/dist/cdn/K3NHZ4D4.js +4 -0
  326. package/dist/cdn/K4ROM7XK.js +11 -0
  327. package/dist/cdn/K5XI5P3W.js +4 -0
  328. package/dist/cdn/KAJAHEOY.js +4 -0
  329. package/dist/cdn/KBWUIV6J.js +4 -0
  330. package/dist/cdn/KC4PKSF2.js +4 -0
  331. package/dist/cdn/KCWRFAHY.js +4 -0
  332. package/dist/cdn/KESMXYKU.js +4 -0
  333. package/dist/cdn/KH2ZBG2O.js +4 -0
  334. package/dist/cdn/KHQM46BA.js +4 -0
  335. package/dist/cdn/KIV6H3SB.js +4 -0
  336. package/dist/cdn/KJURIKHL.js +4 -0
  337. package/dist/cdn/KKWTPC35.js +4 -0
  338. package/dist/cdn/KNIGW4VB.js +4 -0
  339. package/dist/cdn/KOA727VF.js +4 -0
  340. package/dist/cdn/KPLYKQVT.js +4 -0
  341. package/dist/cdn/KPNGHUAM.js +4 -0
  342. package/dist/cdn/KQFNX2HS.js +4 -0
  343. package/dist/cdn/KSFDB3OB.js +4 -0
  344. package/dist/cdn/KTATTHVQ.js +4 -0
  345. package/dist/cdn/KTYQ5EED.js +4 -0
  346. package/dist/cdn/KUHXCX7J.js +4 -0
  347. package/dist/cdn/KXDTCSDS.js +4 -0
  348. package/dist/cdn/L36U7PR5.js +4 -0
  349. package/dist/cdn/L66MV3FH.js +4 -0
  350. package/dist/cdn/L6HA25RI.js +5 -0
  351. package/dist/cdn/L6JSVG7G.js +4 -0
  352. package/dist/cdn/L7Q2KYMO.js +4 -0
  353. package/dist/cdn/LD4KUNGJ.js +4 -0
  354. package/dist/cdn/LDR3KH3E.js +4 -0
  355. package/dist/cdn/LESDUO35.js +4 -0
  356. package/dist/cdn/LFMZCNBR.js +4 -0
  357. package/dist/cdn/LHDYFBMI.js +4 -0
  358. package/dist/cdn/LIEX5U3G.js +4 -0
  359. package/dist/cdn/LJ3HD274.js +5 -0
  360. package/dist/cdn/LJSWVEPS.js +4 -0
  361. package/dist/cdn/LKDU3NEP.js +4 -0
  362. package/dist/cdn/LLZ773VK.js +4 -0
  363. package/dist/cdn/LOM6X62X.js +4 -0
  364. package/dist/cdn/LS3FSZMI.js +4 -0
  365. package/dist/cdn/LT6PWQWK.js +4 -0
  366. package/dist/cdn/LTTLF4JO.js +4 -0
  367. package/dist/cdn/LVE44RSI.js +4 -0
  368. package/dist/cdn/LVO2BMKJ.js +4 -0
  369. package/dist/cdn/LWIN72CZ.js +4 -0
  370. package/dist/cdn/LXAN3XV4.js +4 -0
  371. package/dist/cdn/LXX2FZTN.js +4 -0
  372. package/dist/cdn/LYES752O.js +4 -0
  373. package/dist/cdn/M4WI6DRZ.js +4 -0
  374. package/dist/cdn/M6BSFVO6.js +4 -0
  375. package/dist/cdn/M73INDSO.js +4 -0
  376. package/dist/cdn/M7NM3EMH.js +4 -0
  377. package/dist/cdn/MA5SY5MZ.js +4 -0
  378. package/dist/cdn/MAJ4G5KA.js +4 -0
  379. package/dist/cdn/MCT47FMO.js +4 -0
  380. package/dist/cdn/MGF2ZDHE.js +4 -0
  381. package/dist/cdn/MHGGOUPP.js +4 -0
  382. package/dist/cdn/MHRVPCZI.js +4 -0
  383. package/dist/cdn/MJ4ZTQHG.js +4 -0
  384. package/dist/cdn/MJAYF7CV.js +4 -0
  385. package/dist/cdn/MMEHBMPK.js +4 -0
  386. package/dist/cdn/MMPNAQAI.js +4 -0
  387. package/dist/cdn/MO5U4JSO.js +4 -0
  388. package/dist/cdn/MRJJW6PV.js +4 -0
  389. package/dist/cdn/MSG6FBSQ.js +4 -0
  390. package/dist/cdn/MYNTWKUZ.js +4 -0
  391. package/dist/cdn/N3TRBQPA.js +4 -0
  392. package/dist/cdn/N3YEJHBI.js +4 -0
  393. package/dist/cdn/N4D2T6SG.js +4 -0
  394. package/dist/cdn/N4PVW4AO.js +4 -0
  395. package/dist/cdn/N7J3RG3X.js +5 -0
  396. package/dist/cdn/N7Z3XGAL.js +4 -0
  397. package/dist/cdn/NALGXOOU.js +4 -0
  398. package/dist/cdn/NASBX4IK.js +4 -0
  399. package/dist/cdn/NAUT4XW6.js +4 -0
  400. package/dist/cdn/NB2JV3IY.js +4 -0
  401. package/dist/cdn/NBWAZBMJ.js +8 -0
  402. package/dist/cdn/NCXYCUKD.js +4 -0
  403. package/dist/cdn/NFB2SCEI.js +4 -0
  404. package/dist/cdn/NIO54I4C.js +4 -0
  405. package/dist/cdn/NIZMTS7D.js +4 -0
  406. package/dist/cdn/NJ4XQMUG.js +4 -0
  407. package/dist/cdn/NJDKWUXW.js +4 -0
  408. package/dist/cdn/NLT7HTDF.js +4 -0
  409. package/dist/cdn/NMHFADKJ.js +4 -0
  410. package/dist/cdn/NNKI3W3E.js +4 -0
  411. package/dist/cdn/NR47GHL2.js +4 -0
  412. package/dist/cdn/NSPVTNSW.js +4 -0
  413. package/dist/cdn/NVAONCNG.js +4 -0
  414. package/dist/cdn/NVSGCXPN.js +4 -0
  415. package/dist/cdn/NXQXD62L.js +4 -0
  416. package/dist/cdn/NY7ICOF2.js +4 -0
  417. package/dist/cdn/NYCMYJEE.js +4 -0
  418. package/dist/cdn/O5V2IBDH.js +4 -0
  419. package/dist/cdn/O7KYZ4A7.js +4 -0
  420. package/dist/cdn/OAU7K4PA.js +4 -0
  421. package/dist/cdn/OB32DLBC.js +4 -0
  422. package/dist/cdn/OCWEAV4T.js +4 -0
  423. package/dist/cdn/ODE5L5V6.js +4 -0
  424. package/dist/cdn/OHW4LHLR.js +4 -0
  425. package/dist/cdn/OIN7B6H4.js +4 -0
  426. package/dist/cdn/OIVLVLES.js +6 -0
  427. package/dist/cdn/OJ32IGJC.js +4 -0
  428. package/dist/cdn/OKAV6LVA.js +4 -0
  429. package/dist/cdn/OKWGEPOP.js +4 -0
  430. package/dist/cdn/OOH7HSRE.js +4 -0
  431. package/dist/cdn/OPIGTGQV.js +4 -0
  432. package/dist/cdn/OSKLZ7C5.js +4 -0
  433. package/dist/cdn/OTNMXEYN.js +4 -0
  434. package/dist/cdn/OWDMGHHS.js +4 -0
  435. package/dist/cdn/OWTZ3FW2.js +4 -0
  436. package/dist/cdn/OYEL6CYO.js +4 -0
  437. package/dist/cdn/P35LYLSS.js +12 -0
  438. package/dist/cdn/P5LA4R25.js +4 -0
  439. package/dist/cdn/P5NU7P5M.js +4 -0
  440. package/dist/cdn/P5U742H3.js +4 -0
  441. package/dist/cdn/P6OFCNZQ.js +4 -0
  442. package/dist/cdn/PAPJLLXU.js +4 -0
  443. package/dist/cdn/PAUXYXJC.js +4 -0
  444. package/dist/cdn/PB3DPII2.js +4 -0
  445. package/dist/cdn/PCN4TIGM.js +4 -0
  446. package/dist/cdn/PDCZXQTT.js +4 -0
  447. package/dist/cdn/PDQQI2KB.js +4 -0
  448. package/dist/cdn/PK2OCQ4Y.js +4 -0
  449. package/dist/cdn/PKU7HAN4.js +4 -0
  450. package/dist/cdn/PKUKCW2E.js +4 -0
  451. package/dist/cdn/PMZHQQAI.js +4 -0
  452. package/dist/cdn/PNVTJX7G.js +4 -0
  453. package/dist/cdn/PQCFZV2N.js +4 -0
  454. package/dist/cdn/PQSEH4UJ.js +4 -0
  455. package/dist/cdn/PRT2OYE7.js +4 -0
  456. package/dist/cdn/PUY7DQNQ.js +4 -0
  457. package/dist/cdn/PVFLNL6Y.js +4 -0
  458. package/dist/cdn/PXGNZEIB.js +4 -0
  459. package/dist/cdn/PXUWWZKS.js +4 -0
  460. package/dist/cdn/Q24TOWXH.js +4 -0
  461. package/dist/cdn/Q3M7JO3G.js +4 -0
  462. package/dist/cdn/Q3UQBF7O.js +4 -0
  463. package/dist/cdn/Q5ZGWYTS.js +4 -0
  464. package/dist/cdn/Q6WFDVQG.js +4 -0
  465. package/dist/cdn/QBMDCGJ5.js +4 -0
  466. package/dist/cdn/QCPPR7EK.js +4 -0
  467. package/dist/cdn/QDDTVDG7.js +4 -0
  468. package/dist/cdn/QGOCRQXS.js +4 -0
  469. package/dist/cdn/QLL7PTJD.js +4 -0
  470. package/dist/cdn/QLUEU5YH.js +4 -0
  471. package/dist/cdn/QLYQTQM5.js +4 -0
  472. package/dist/cdn/QMK4TEDR.js +4 -0
  473. package/dist/cdn/QMZDE25U.js +4 -0
  474. package/dist/cdn/QNAHQTFN.js +4 -0
  475. package/dist/cdn/QOM2RQP3.js +4 -0
  476. package/dist/cdn/QPVEPNF7.js +4 -0
  477. package/dist/cdn/QSFVAIJS.js +4 -0
  478. package/dist/cdn/QU2U757Z.js +4 -0
  479. package/dist/cdn/QWW4GG74.js +4 -0
  480. package/dist/cdn/QYESED66.js +4 -0
  481. package/dist/cdn/QYFCC7JZ.js +4 -0
  482. package/dist/cdn/R2LK5YMY.js +4 -0
  483. package/dist/cdn/R3EFROV2.js +4 -0
  484. package/dist/cdn/R5LIMJFZ.js +4 -0
  485. package/dist/cdn/R62X2LYU.js +4 -0
  486. package/dist/cdn/R7DFHBD5.js +4 -0
  487. package/dist/cdn/RA53MMSD.js +4 -0
  488. package/dist/cdn/RCHDUG2G.js +4 -0
  489. package/dist/cdn/RFMXAH4Y.js +4 -0
  490. package/dist/cdn/RGE2S3DD.js +4 -0
  491. package/dist/cdn/RGVBKUR7.js +4 -0
  492. package/dist/cdn/RIUZHOAR.js +4 -0
  493. package/dist/cdn/RKMETC2N.js +4 -0
  494. package/dist/cdn/RNNOF3DY.js +4 -0
  495. package/dist/cdn/ROSDYKJH.js +4 -0
  496. package/dist/cdn/RP3MJMOR.js +4 -0
  497. package/dist/cdn/RPBQWFUD.js +4 -0
  498. package/dist/cdn/RXEKIPMF.js +4 -0
  499. package/dist/cdn/RXMBT34X.js +4 -0
  500. package/dist/cdn/S6BF5K66.js +4 -0
  501. package/dist/cdn/S7WRMDFJ.js +12 -0
  502. package/dist/cdn/SACSG4WF.js +4 -0
  503. package/dist/cdn/SAUS3SL7.js +4 -0
  504. package/dist/cdn/SDJXCRGG.js +4 -0
  505. package/dist/cdn/SEIMEVPE.js +4 -0
  506. package/dist/cdn/SFBX5QS3.js +4 -0
  507. package/dist/cdn/SJNEQDZ6.js +4 -0
  508. package/dist/cdn/SK3522SQ.js +4 -0
  509. package/dist/cdn/SM4BFAVC.js +4 -0
  510. package/dist/cdn/SNH3CXMI.js +4 -0
  511. package/dist/cdn/SNXAMFJY.js +4 -0
  512. package/dist/cdn/SON6YXT6.js +4 -0
  513. package/dist/cdn/SQ2DKCK6.js +4 -0
  514. package/dist/cdn/STK5MZSC.js +4 -0
  515. package/dist/cdn/STPSPKTV.js +4 -0
  516. package/dist/cdn/SUH4445N.js +4 -0
  517. package/dist/cdn/SV3WLE4U.js +4 -0
  518. package/dist/cdn/SWBGED2M.js +4 -0
  519. package/dist/cdn/SXVKLPUH.js +4 -0
  520. package/dist/cdn/SZLOTBN6.js +4 -0
  521. package/dist/cdn/T6J42SJN.js +4 -0
  522. package/dist/cdn/TAC2UI4A.js +4 -0
  523. package/dist/cdn/TAE33F5S.js +4 -0
  524. package/dist/cdn/TCWVQ6L7.js +4 -0
  525. package/dist/cdn/TCZASQLR.js +4 -0
  526. package/dist/cdn/TFFFJ3GJ.js +4 -0
  527. package/dist/cdn/TGLCCIYL.js +4 -0
  528. package/dist/cdn/TIJCTZOC.js +4 -0
  529. package/dist/cdn/TINSWBMM.js +4 -0
  530. package/dist/cdn/TIVVGFVQ.js +4 -0
  531. package/dist/cdn/TJE6DBWP.js +4 -0
  532. package/dist/cdn/TJQ3JGFX.js +4 -0
  533. package/dist/cdn/TLBL45JA.js +4 -0
  534. package/dist/cdn/TLXTBM5L.js +4 -0
  535. package/dist/cdn/TMHHVDPR.js +4 -0
  536. package/dist/cdn/TRWNFTR2.js +4 -0
  537. package/dist/cdn/TU2WFHYX.js +4 -0
  538. package/dist/cdn/TV6XCEKV.js +4 -0
  539. package/dist/cdn/TVCZAPQW.js +4 -0
  540. package/dist/cdn/TVFXVMKM.js +4 -0
  541. package/dist/cdn/TVLWJWL2.js +4 -0
  542. package/dist/cdn/TXCXJSLM.js +4 -0
  543. package/dist/cdn/TY735C5D.js +4 -0
  544. package/dist/cdn/U2O2AKM5.js +4 -0
  545. package/dist/cdn/U3JQDJZS.js +4 -0
  546. package/dist/cdn/U7IPUSWT.js +4 -0
  547. package/dist/cdn/UAWH2ERG.js +4 -0
  548. package/dist/cdn/UFT4NGMN.js +4 -0
  549. package/dist/cdn/UGPK6NVS.js +4 -0
  550. package/dist/cdn/UKJFAYLP.js +4 -0
  551. package/dist/cdn/UN5HSJ4P.js +4 -0
  552. package/dist/cdn/UOUFTDXU.js +24 -0
  553. package/dist/cdn/URNILPSR.js +4 -0
  554. package/dist/cdn/UTJT3QD2.js +4 -0
  555. package/dist/cdn/UTL4V22Z.js +4 -0
  556. package/dist/cdn/UTNDDJPP.js +4 -0
  557. package/dist/cdn/UZ4QSYT2.js +4 -0
  558. package/dist/cdn/UZLNP7M4.js +4 -0
  559. package/dist/cdn/UZMKJUR6.js +4 -0
  560. package/dist/cdn/V3VDJQBN.js +4 -0
  561. package/dist/cdn/V6WNRRNY.js +4 -0
  562. package/dist/cdn/VAIHPV2O.js +4 -0
  563. package/dist/cdn/VDSQ3UAS.js +4 -0
  564. package/dist/cdn/VGVDA5ZZ.js +4 -0
  565. package/dist/cdn/VH5KOFIE.js +4 -0
  566. package/dist/cdn/VHDBF5PN.js +4 -0
  567. package/dist/cdn/VI5K5YYP.js +4 -0
  568. package/dist/cdn/VIHGCMEH.js +4 -0
  569. package/dist/cdn/VLELXMMF.js +4 -0
  570. package/dist/cdn/VLMMY5NZ.js +4 -0
  571. package/dist/cdn/VLWJQRVB.js +4 -0
  572. package/dist/cdn/VQUHRIBO.js +4 -0
  573. package/dist/cdn/VST2YAWJ.js +4 -0
  574. package/dist/cdn/VUABLU5I.js +4 -0
  575. package/dist/cdn/VVNJSSBL.js +4 -0
  576. package/dist/cdn/VYZ7ULZZ.js +4 -0
  577. package/dist/cdn/W34LO5F7.js +4 -0
  578. package/dist/cdn/W3TCSP3H.js +4 -0
  579. package/dist/cdn/W47TE4AN.js +4 -0
  580. package/dist/cdn/WCRTVSRA.js +4 -0
  581. package/dist/cdn/WEJLVAUJ.js +4 -0
  582. package/dist/cdn/WHHXAT42.js +4 -0
  583. package/dist/cdn/WIXYJB22.js +4 -0
  584. package/dist/cdn/WK5LF2QV.js +4 -0
  585. package/dist/cdn/WNLS7N4Y.js +4 -0
  586. package/dist/cdn/WSAKSR2K.js +4 -0
  587. package/dist/cdn/WSXMEAJ4.js +4 -0
  588. package/dist/cdn/WU7GO4S2.js +4 -0
  589. package/dist/cdn/WUW4VWAJ.js +4 -0
  590. package/dist/cdn/WWCFLSZH.js +4 -0
  591. package/dist/cdn/X262DYK4.js +4 -0
  592. package/dist/cdn/X2FM23DD.js +9 -0
  593. package/dist/cdn/X2QB42GU.js +4 -0
  594. package/dist/cdn/X3MK4PWN.js +4 -0
  595. package/dist/cdn/X5SDBUV3.js +4 -0
  596. package/dist/cdn/X7SF4U7L.js +4 -0
  597. package/dist/cdn/XBHQBFX7.js +4 -0
  598. package/dist/cdn/XBIBFNYQ.js +4 -0
  599. package/dist/cdn/XBUGM3KU.js +4 -0
  600. package/dist/cdn/XDW6TMI7.js +4 -0
  601. package/dist/cdn/XEHWBT7M.js +4 -0
  602. package/dist/cdn/XFY64KZJ.js +4 -0
  603. package/dist/cdn/XG7C47XW.js +4 -0
  604. package/dist/cdn/XHOQXNJC.js +4 -0
  605. package/dist/cdn/XI26X2US.js +4 -0
  606. package/dist/cdn/XMODDLBU.js +4 -0
  607. package/dist/cdn/XOIWNC3K.js +4 -0
  608. package/dist/cdn/XOWRJYQW.js +4 -0
  609. package/dist/cdn/XPUC4I7H.js +4 -0
  610. package/dist/cdn/XXD6NZYJ.js +4 -0
  611. package/dist/cdn/XZ6NUMD4.js +4 -0
  612. package/dist/cdn/Y2EUCTNL.js +4 -0
  613. package/dist/cdn/Y2PS5WE4.js +4 -0
  614. package/dist/cdn/Y4GTZYBU.js +4 -0
  615. package/dist/cdn/Y67QWKWN.js +4 -0
  616. package/dist/cdn/Y7N2N6L7.js +4 -0
  617. package/dist/cdn/YCLEDMHK.js +4 -0
  618. package/dist/cdn/YD37SNCM.js +4 -0
  619. package/dist/cdn/YFELAF2Q.js +4 -0
  620. package/dist/cdn/YHQJ32YM.js +4 -0
  621. package/dist/cdn/YK2BPHBH.js +4 -0
  622. package/dist/cdn/YKJDFEXT.js +4 -0
  623. package/dist/cdn/YLCKDFGV.js +4 -0
  624. package/dist/cdn/YM4ZYGWD.js +4 -0
  625. package/dist/cdn/YOBSKAIO.js +52 -0
  626. package/dist/cdn/YOV336VJ.js +5470 -0
  627. package/dist/cdn/YPH6PNSV.js +4 -0
  628. package/dist/cdn/YQRH5NOT.js +4 -0
  629. package/dist/cdn/YR3BYU24.js +4 -0
  630. package/dist/cdn/YSTZD5HK.js +4 -0
  631. package/dist/cdn/YSVFPVK5.js +4 -0
  632. package/dist/cdn/YTMULXS4.js +4 -0
  633. package/dist/cdn/YVUQZXXA.js +4 -0
  634. package/dist/cdn/YZM2RKNC.js +4 -0
  635. package/dist/cdn/Z25RULHA.js +4 -0
  636. package/dist/cdn/Z67VGR4Z.js +4 -0
  637. package/dist/cdn/Z6AA5R6C.js +4 -0
  638. package/dist/cdn/Z6QWXA3D.js +4 -0
  639. package/dist/cdn/ZDKFEK7V.js +4 -0
  640. package/dist/cdn/ZDNRNRAE.js +4 -0
  641. package/dist/cdn/ZDUIVKBG.js +4 -0
  642. package/dist/cdn/ZEP6ZAGZ.js +4 -0
  643. package/dist/cdn/ZILMP6P4.js +4 -0
  644. package/dist/cdn/ZJDO74TG.js +4 -0
  645. package/dist/cdn/ZKFKOPVM.js +4 -0
  646. package/dist/cdn/ZO7JNGU5.js +4 -0
  647. package/dist/cdn/ZORDBYAG.js +4 -0
  648. package/dist/cdn/ZQLXNRDY.js +4 -0
  649. package/dist/cdn/ZQUFIXCJ.js +4 -0
  650. package/dist/cdn/ZR4XJYIM.js +4 -0
  651. package/dist/cdn/ZRWQIJLM.js +4 -0
  652. package/dist/cdn/ZSMOTLIE.js +4 -0
  653. package/dist/cdn/ZVAX2IJD.js +4 -0
  654. package/dist/cdn/ZVIRW7PC.js +4 -0
  655. package/dist/cdn/ZW4LMBSR.js +4 -0
  656. package/dist/cdn/ZXAYRYP7.js +4 -0
  657. package/dist/cdn/ZZNAH2WZ.js +4 -0
  658. package/dist/cdn/index.js +3 -3
  659. package/dist/chunks/findColumnAndNodeIndex.js +2 -2
  660. package/dist/chunks/getResponsiveClasses.js +2 -2
  661. package/dist/chunks/interpolate-translations.js +2 -2
  662. package/dist/chunks/isNodeVisible.js +2 -2
  663. package/dist/chunks/layoutContext.js +2 -2
  664. package/dist/chunks/migrateTextCard.js +2 -2
  665. package/dist/chunks/processLayout.js +2 -2
  666. package/dist/chunks/runtime.js +3 -3
  667. package/dist/chunks/state.js +2 -2
  668. package/dist/chunks/typeGuards.js +2 -2
  669. package/dist/chunks/useGlobalContext.js +2 -2
  670. package/dist/chunks/useT9n.js +2 -2
  671. package/dist/chunks/util.js +2 -2
  672. package/dist/components/arcgis-chat-shell/customElement.js +2 -2
  673. package/dist/components/arcgis-chat-ui/customElement.js +48 -45
  674. package/dist/components/arcgis-chat-ui/functional/chat-action/customElement.js +2 -2
  675. package/dist/components/arcgis-chat-ui/functional/chat-response/customElement.js +24 -26
  676. package/dist/components/arcgis-chat-ui/util/types.d.ts +6 -5
  677. package/dist/components/arcgis-hub-ai-assistant/customElement.js +106 -107
  678. package/dist/components/arcgis-hub-ai-assistant/util/customElement.d.ts +11 -0
  679. package/dist/components/arcgis-hub-ai-assistant/util/framework.d.ts +4 -4
  680. package/dist/components/arcgis-hub-ai-assistant/util/types.d.ts +1 -2
  681. package/dist/components/arcgis-hub-entity-associations-card/customElement.js +2 -2
  682. package/dist/components/arcgis-hub-entity-metrics-card/customElement.js +2 -2
  683. package/dist/components/arcgis-hub-entity-status-card/customElement.js +2 -2
  684. package/dist/components/arcgis-hub-entity-view-layout/customElement.js +2 -2
  685. package/dist/components/arcgis-layout/customElement.js +3 -3
  686. package/dist/components/arcgis-layout-column/customElement.js +2 -2
  687. package/dist/components/arcgis-layout-container/customElement.js +2 -2
  688. package/dist/components/arcgis-layout-editor-toolbar/customElement.js +2 -2
  689. package/dist/components/arcgis-layout-node-controls/customElement.js +2 -2
  690. package/dist/components/arcgis-layout-node-editor/customElement.js +2 -2
  691. package/dist/components/arcgis-layout-node-editor/layout-node-editor-dynamic-tag/customElement.js +2 -2
  692. package/dist/components/arcgis-layout-node-wrapper/customElement.js +8 -8
  693. package/dist/components/arcgis-layout-row/customElement.js +2 -2
  694. package/dist/components/arcgis-layout-section/customElement.js +2 -2
  695. package/dist/components/arcgis-nav-card/customElement.js +3 -3
  696. package/dist/components/arcgis-text-card/customElement.js +2 -2
  697. package/dist/components/layouts/components/layout-node/customElement.js +2 -2
  698. package/dist/docs/api.json +1 -1
  699. package/dist/docs/docs.json +1 -1
  700. package/dist/docs/web-types.json +1 -1
  701. package/dist/embed-config.js +2 -2
  702. package/dist/index.js +2 -2
  703. package/dist/loader.js +2 -2
  704. package/package.json +2 -2
  705. package/dist/cdn/224ZGSLP.js +0 -4
  706. package/dist/cdn/22F2LZ4V.js +0 -4
  707. package/dist/cdn/25SRPTS5.js +0 -4
  708. package/dist/cdn/2CP5C62E.js +0 -4
  709. package/dist/cdn/2DEKDNVZ.js +0 -4
  710. package/dist/cdn/2EWQSN67.js +0 -4
  711. package/dist/cdn/2F5AKAMN.js +0 -4
  712. package/dist/cdn/2GJEBPBQ.js +0 -4
  713. package/dist/cdn/2K3XEXH6.js +0 -4
  714. package/dist/cdn/2K7VQMVN.js +0 -4
  715. package/dist/cdn/2KRK5XT3.js +0 -4
  716. package/dist/cdn/2KUJHWSS.js +0 -4
  717. package/dist/cdn/2M7HOGXR.js +0 -4
  718. package/dist/cdn/2MS724DY.js +0 -4
  719. package/dist/cdn/2NIRKU4D.js +0 -4
  720. package/dist/cdn/2Q3YJOUG.js +0 -4
  721. package/dist/cdn/2QWWICFO.js +0 -4
  722. package/dist/cdn/2RKLN3JE.js +0 -4
  723. package/dist/cdn/2RPA55JH.js +0 -4
  724. package/dist/cdn/2S3BR23E.js +0 -4
  725. package/dist/cdn/2SACZBUB.js +0 -4
  726. package/dist/cdn/2TKK3UMD.js +0 -4
  727. package/dist/cdn/2UIM2AGW.js +0 -4
  728. package/dist/cdn/2WYJ3RGY.js +0 -4
  729. package/dist/cdn/2YI2RR6O.js +0 -4
  730. package/dist/cdn/2ZL56V52.js +0 -4
  731. package/dist/cdn/33PCWYQM.js +0 -4
  732. package/dist/cdn/33S2W3CI.js +0 -4
  733. package/dist/cdn/37L6SROI.js +0 -4
  734. package/dist/cdn/37MUXYCH.js +0 -5
  735. package/dist/cdn/3BAZWMR6.js +0 -4
  736. package/dist/cdn/3BMEZ4DS.js +0 -4
  737. package/dist/cdn/3CHKQEFC.js +0 -4
  738. package/dist/cdn/3D5XHWG3.js +0 -4
  739. package/dist/cdn/3HLBKRWV.js +0 -4
  740. package/dist/cdn/3HPJE6BG.js +0 -4
  741. package/dist/cdn/3HXJXMOF.js +0 -4
  742. package/dist/cdn/3KA3Q46A.js +0 -4
  743. package/dist/cdn/3L26DTFX.js +0 -4
  744. package/dist/cdn/3L4C53KA.js +0 -4
  745. package/dist/cdn/3NO6PT2W.js +0 -4
  746. package/dist/cdn/3NQMBYWZ.js +0 -4
  747. package/dist/cdn/3OZ3JMRU.js +0 -4
  748. package/dist/cdn/3PCOTHTJ.js +0 -4
  749. package/dist/cdn/3QYD5GU3.js +0 -4
  750. package/dist/cdn/3QZYEZIK.js +0 -4
  751. package/dist/cdn/3RFHD26F.js +0 -4
  752. package/dist/cdn/3RZPUSR7.js +0 -4
  753. package/dist/cdn/3SEATSJ6.js +0 -4
  754. package/dist/cdn/3ZBQ3KCG.js +0 -4
  755. package/dist/cdn/3ZRKB42D.js +0 -4
  756. package/dist/cdn/443NFTXW.js +0 -4
  757. package/dist/cdn/44T6EAWJ.js +0 -5
  758. package/dist/cdn/4B5NKGUJ.js +0 -4
  759. package/dist/cdn/4DUMWMMB.js +0 -4
  760. package/dist/cdn/4GQ2RLTD.js +0 -4
  761. package/dist/cdn/4KZUXRHK.js +0 -4
  762. package/dist/cdn/4L5RD72B.js +0 -4
  763. package/dist/cdn/4NTKTUUG.js +0 -4
  764. package/dist/cdn/4OEA7GNI.js +0 -4
  765. package/dist/cdn/4OHVEVFT.js +0 -4
  766. package/dist/cdn/4P5LKHZ4.js +0 -4
  767. package/dist/cdn/4Q7W2UPQ.js +0 -4
  768. package/dist/cdn/4QWET6YN.js +0 -4
  769. package/dist/cdn/4SDPFGDT.js +0 -4
  770. package/dist/cdn/4TH3PUXF.js +0 -4
  771. package/dist/cdn/4VDKFP2Q.js +0 -4
  772. package/dist/cdn/4XFEZGC5.js +0 -4
  773. package/dist/cdn/4YCMFZFQ.js +0 -4
  774. package/dist/cdn/52I5IHYQ.js +0 -4
  775. package/dist/cdn/56IS5MNS.js +0 -4
  776. package/dist/cdn/57SV5GKA.js +0 -4
  777. package/dist/cdn/5GLNKSHV.js +0 -4
  778. package/dist/cdn/5K5HLE5V.js +0 -4
  779. package/dist/cdn/5KJKBKBF.js +0 -4
  780. package/dist/cdn/5KMDQQ5Z.js +0 -4
  781. package/dist/cdn/5NLWVNMT.js +0 -4
  782. package/dist/cdn/5NW5U3ZM.js +0 -4
  783. package/dist/cdn/5OBWKNCM.js +0 -4
  784. package/dist/cdn/5PQ3Q756.js +0 -4
  785. package/dist/cdn/5PU5FIZF.js +0 -4
  786. package/dist/cdn/5SI4CVBB.js +0 -4
  787. package/dist/cdn/5UVFLBTA.js +0 -4
  788. package/dist/cdn/5VRJIFAQ.js +0 -4
  789. package/dist/cdn/5XKJWO32.js +0 -4
  790. package/dist/cdn/5YMNG3KU.js +0 -4
  791. package/dist/cdn/5Z5K6XKI.js +0 -4
  792. package/dist/cdn/62NJONSX.js +0 -4
  793. package/dist/cdn/63KAIKLE.js +0 -4
  794. package/dist/cdn/64JFRNX4.js +0 -4
  795. package/dist/cdn/65PWCJUE.js +0 -4
  796. package/dist/cdn/65YBCZMZ.js +0 -4
  797. package/dist/cdn/66A2OJAE.js +0 -4
  798. package/dist/cdn/6B3ILTB3.js +0 -4
  799. package/dist/cdn/6BRASDRC.js +0 -4
  800. package/dist/cdn/6CARGNL2.js +0 -4
  801. package/dist/cdn/6DTRYTLA.js +0 -4
  802. package/dist/cdn/6EOOI6DK.js +0 -4
  803. package/dist/cdn/6EWJLKDD.js +0 -4
  804. package/dist/cdn/6G7X2WWC.js +0 -4
  805. package/dist/cdn/6G7ZTZ4V.js +0 -4
  806. package/dist/cdn/6IADREGM.js +0 -4
  807. package/dist/cdn/6JY2WCKI.js +0 -4
  808. package/dist/cdn/6K64DYLZ.js +0 -4
  809. package/dist/cdn/6M626SJJ.js +0 -4
  810. package/dist/cdn/6MMXS74E.js +0 -4
  811. package/dist/cdn/6OI3KAL6.js +0 -4
  812. package/dist/cdn/6OLXMTEY.js +0 -4
  813. package/dist/cdn/6P6H4YCJ.js +0 -4
  814. package/dist/cdn/6QFMNN3D.js +0 -4
  815. package/dist/cdn/6RTFHQ2F.js +0 -4
  816. package/dist/cdn/6VD5M3LO.js +0 -4
  817. package/dist/cdn/6WX7PBQK.js +0 -4
  818. package/dist/cdn/6YJLQ4WM.js +0 -4
  819. package/dist/cdn/6ZC5RWIQ.js +0 -59
  820. package/dist/cdn/6ZHP72FN.js +0 -4
  821. package/dist/cdn/724T3BQS.js +0 -4
  822. package/dist/cdn/72D2N5UB.js +0 -4
  823. package/dist/cdn/72IY3WDC.js +0 -4
  824. package/dist/cdn/72OOPXSD.js +0 -4
  825. package/dist/cdn/73BONLJX.js +0 -4
  826. package/dist/cdn/75TVZ6TZ.js +0 -4
  827. package/dist/cdn/7AOWPO4C.js +0 -4
  828. package/dist/cdn/7CPTQ323.js +0 -4
  829. package/dist/cdn/7EPYKRSO.js +0 -4
  830. package/dist/cdn/7G4FLTFI.js +0 -4
  831. package/dist/cdn/7H2RNXAF.js +0 -4
  832. package/dist/cdn/7IR55PYN.js +0 -4
  833. package/dist/cdn/7ISR52ZY.js +0 -4
  834. package/dist/cdn/7JU6VAUP.js +0 -4
  835. package/dist/cdn/7L7TGBXG.js +0 -4
  836. package/dist/cdn/7P6WINGM.js +0 -4
  837. package/dist/cdn/7QPCKF4G.js +0 -4
  838. package/dist/cdn/7RAFKFLJ.js +0 -6
  839. package/dist/cdn/7UQODCK4.js +0 -4
  840. package/dist/cdn/7VIOPN3I.js +0 -4
  841. package/dist/cdn/7XIRR2EV.js +0 -4
  842. package/dist/cdn/7XIVSMIE.js +0 -4
  843. package/dist/cdn/7YSSH6DO.js +0 -4
  844. package/dist/cdn/A4ZMGX4X.js +0 -4
  845. package/dist/cdn/A6B3QPCL.js +0 -4
  846. package/dist/cdn/A6ZZ4XPM.js +0 -4
  847. package/dist/cdn/A7ITHZ7K.js +0 -4
  848. package/dist/cdn/A7XIRCVU.js +0 -11
  849. package/dist/cdn/ACHPUUIQ.js +0 -4
  850. package/dist/cdn/AD3RFO4I.js +0 -4
  851. package/dist/cdn/AEJPNWE2.js +0 -4
  852. package/dist/cdn/AEM3H3LG.js +0 -4
  853. package/dist/cdn/AEYC3AAE.js +0 -4
  854. package/dist/cdn/AF32PS3Q.js +0 -4
  855. package/dist/cdn/AHRVSN2I.js +0 -4
  856. package/dist/cdn/AIHWMG47.js +0 -4
  857. package/dist/cdn/AQ7FK6WD.js +0 -4
  858. package/dist/cdn/AUSVG6HM.js +0 -4
  859. package/dist/cdn/AWFRIYZG.js +0 -4
  860. package/dist/cdn/AXDVEEBC.js +0 -4
  861. package/dist/cdn/AY4ZKZ5X.js +0 -4
  862. package/dist/cdn/BDDU4PJK.js +0 -4
  863. package/dist/cdn/BEAMDUAX.js +0 -4
  864. package/dist/cdn/BEBC4N2F.js +0 -4
  865. package/dist/cdn/BHKXJDGY.js +0 -4
  866. package/dist/cdn/BKETT7MM.js +0 -4
  867. package/dist/cdn/BQLMO4NQ.js +0 -4
  868. package/dist/cdn/BYIGJSOI.js +0 -4
  869. package/dist/cdn/C354FIZC.js +0 -4
  870. package/dist/cdn/C56TOSMW.js +0 -8
  871. package/dist/cdn/CAFPGSKC.js +0 -4
  872. package/dist/cdn/CBWDVF4S.js +0 -4
  873. package/dist/cdn/CF2YAFBC.js +0 -4
  874. package/dist/cdn/CFODV7FI.js +0 -4
  875. package/dist/cdn/CIHTTRZQ.js +0 -4
  876. package/dist/cdn/CJG2IRQA.js +0 -4
  877. package/dist/cdn/CJR6M7EB.js +0 -4
  878. package/dist/cdn/CKD6VZLT.js +0 -4
  879. package/dist/cdn/CKI6GXTD.js +0 -4
  880. package/dist/cdn/CL5RTZ5O.js +0 -4
  881. package/dist/cdn/CLSLGKKB.js +0 -4
  882. package/dist/cdn/CMEXEA5G.js +0 -4
  883. package/dist/cdn/CQSQDZIR.js +0 -4
  884. package/dist/cdn/CS7GDH3E.js +0 -4
  885. package/dist/cdn/CTAMIFA4.js +0 -4
  886. package/dist/cdn/CTHLWI3J.js +0 -4
  887. package/dist/cdn/CXTBQODA.js +0 -4
  888. package/dist/cdn/CZPWPFGK.js +0 -4
  889. package/dist/cdn/D4AIUHDT.js +0 -4
  890. package/dist/cdn/D7MWMPBX.js +0 -4
  891. package/dist/cdn/DBRDQ6QY.js +0 -4
  892. package/dist/cdn/DDFSZSMR.js +0 -4
  893. package/dist/cdn/DDKA2GGR.js +0 -4
  894. package/dist/cdn/DDQZX7AF.js +0 -4
  895. package/dist/cdn/DENUKWRN.js +0 -4
  896. package/dist/cdn/DEX24E3H.js +0 -4
  897. package/dist/cdn/DHTX3SJW.js +0 -4
  898. package/dist/cdn/DIYTIKE4.js +0 -4
  899. package/dist/cdn/DNBER7NO.js +0 -4
  900. package/dist/cdn/DNWG5FHR.js +0 -4
  901. package/dist/cdn/DPBOXKHH.js +0 -4
  902. package/dist/cdn/DQSPH26K.js +0 -4
  903. package/dist/cdn/DRRDKIBA.js +0 -42
  904. package/dist/cdn/DUEQDONG.js +0 -4
  905. package/dist/cdn/DUHLDPDQ.js +0 -4
  906. package/dist/cdn/DWCVCJEZ.js +0 -4
  907. package/dist/cdn/DX4ZXYHD.js +0 -4
  908. package/dist/cdn/DYWGYIIL.js +0 -4
  909. package/dist/cdn/DYZWOVQY.js +0 -4
  910. package/dist/cdn/DZVXA2CL.js +0 -4
  911. package/dist/cdn/E3XHPVNY.js +0 -4
  912. package/dist/cdn/E47G54DG.js +0 -4
  913. package/dist/cdn/E55WUO44.js +0 -4
  914. package/dist/cdn/E5G64TII.js +0 -4
  915. package/dist/cdn/E77M5LEA.js +0 -4
  916. package/dist/cdn/E7EM3HRX.js +0 -4
  917. package/dist/cdn/EBIPAGP5.js +0 -4
  918. package/dist/cdn/EC46IVTA.js +0 -4
  919. package/dist/cdn/EKGAE6K4.js +0 -4
  920. package/dist/cdn/EMHKVAAN.js +0 -4
  921. package/dist/cdn/ENH3UIQ3.js +0 -4
  922. package/dist/cdn/EO5X6N2C.js +0 -4
  923. package/dist/cdn/EP5KOT4K.js +0 -4
  924. package/dist/cdn/EX6FZE66.js +0 -4
  925. package/dist/cdn/EZCMY35W.js +0 -4
  926. package/dist/cdn/EZOHT5HM.js +0 -4
  927. package/dist/cdn/F24OW3QV.js +0 -4
  928. package/dist/cdn/F2PDHNMG.js +0 -4
  929. package/dist/cdn/F53VGPDI.js +0 -4
  930. package/dist/cdn/F7NU4OI5.js +0 -4
  931. package/dist/cdn/FAUBDTIF.js +0 -4
  932. package/dist/cdn/FCDA245L.js +0 -4
  933. package/dist/cdn/FH44CVHB.js +0 -4
  934. package/dist/cdn/FIUMZGLP.js +0 -4
  935. package/dist/cdn/FJEYVGY7.js +0 -4
  936. package/dist/cdn/FKIEBO6O.js +0 -4
  937. package/dist/cdn/FOQPTVB4.js +0 -4
  938. package/dist/cdn/FOY6AYXZ.js +0 -4
  939. package/dist/cdn/FQ2IGDEU.js +0 -4
  940. package/dist/cdn/FQ7B56K7.js +0 -4
  941. package/dist/cdn/FQD3NMGA.js +0 -4
  942. package/dist/cdn/FSCMD34U.js +0 -4
  943. package/dist/cdn/FSHBVJFK.js +0 -4
  944. package/dist/cdn/FWJ32DTY.js +0 -4
  945. package/dist/cdn/G3IHI7XA.js +0 -4
  946. package/dist/cdn/G4DQ6XU5.js +0 -4
  947. package/dist/cdn/G57NFR2J.js +0 -4
  948. package/dist/cdn/G5CHIRJE.js +0 -4
  949. package/dist/cdn/G5SUS4AG.js +0 -4
  950. package/dist/cdn/G64EXWLP.js +0 -4
  951. package/dist/cdn/G6CNPPCS.js +0 -4
  952. package/dist/cdn/GBINT5UN.js +0 -4
  953. package/dist/cdn/GCUC4EHX.js +0 -4
  954. package/dist/cdn/GDTWCALC.js +0 -4
  955. package/dist/cdn/GE4FGWHI.js +0 -4
  956. package/dist/cdn/GEA4V76J.js +0 -4
  957. package/dist/cdn/GF6YEHDP.js +0 -4
  958. package/dist/cdn/GGZJIYGU.js +0 -4
  959. package/dist/cdn/GLQB2EWQ.js +0 -4
  960. package/dist/cdn/GPE3MFN3.js +0 -4
  961. package/dist/cdn/GRSHU2WX.js +0 -4
  962. package/dist/cdn/GRZQRVYA.js +0 -4
  963. package/dist/cdn/GS22TQDV.js +0 -4
  964. package/dist/cdn/GTFNRPVL.js +0 -4
  965. package/dist/cdn/GUZ5WQXG.js +0 -4
  966. package/dist/cdn/GZ7ENHJ7.js +0 -4
  967. package/dist/cdn/GZCF5D2L.js +0 -4
  968. package/dist/cdn/H57SXED2.js +0 -9
  969. package/dist/cdn/H6JVRQWC.js +0 -4
  970. package/dist/cdn/HAV2TCSQ.js +0 -4
  971. package/dist/cdn/HBH6J6LN.js +0 -4
  972. package/dist/cdn/HBMJOMHF.js +0 -4
  973. package/dist/cdn/HCRPOAIB.js +0 -4
  974. package/dist/cdn/HE5EIFZA.js +0 -4
  975. package/dist/cdn/HIO5U6S3.js +0 -4
  976. package/dist/cdn/HIWSAMAB.js +0 -4
  977. package/dist/cdn/HJGUISYJ.js +0 -4
  978. package/dist/cdn/HKWGLWDS.js +0 -4
  979. package/dist/cdn/HT5U3FTZ.js +0 -4
  980. package/dist/cdn/HVTH5MJW.js +0 -4
  981. package/dist/cdn/I35FDGLO.js +0 -4
  982. package/dist/cdn/I3KNMJ7E.js +0 -4
  983. package/dist/cdn/I4AKIQLT.js +0 -4
  984. package/dist/cdn/I6TZTKHA.js +0 -4
  985. package/dist/cdn/IBC6ZFO4.js +0 -4
  986. package/dist/cdn/ID7TTJGJ.js +0 -4
  987. package/dist/cdn/IEF5QBNP.js +0 -4
  988. package/dist/cdn/IEL337CC.js +0 -4
  989. package/dist/cdn/IFFZH77Q.js +0 -4
  990. package/dist/cdn/IGH6SWUL.js +0 -4
  991. package/dist/cdn/IGVYA2AE.js +0 -4
  992. package/dist/cdn/IIVLHA2T.js +0 -4
  993. package/dist/cdn/IMAN4EXT.js +0 -4
  994. package/dist/cdn/IPR2KHMR.js +0 -4
  995. package/dist/cdn/IQI3OXK4.js +0 -4
  996. package/dist/cdn/ISDCNUTP.js +0 -4
  997. package/dist/cdn/IUIVUG6L.js +0 -4
  998. package/dist/cdn/J24DMG56.js +0 -4
  999. package/dist/cdn/J754Y5LX.js +0 -4
  1000. package/dist/cdn/JALK6REP.js +0 -4
  1001. package/dist/cdn/JBYDKOC2.js +0 -4
  1002. package/dist/cdn/JDFG66XY.js +0 -4
  1003. package/dist/cdn/JGORLXNM.js +0 -4
  1004. package/dist/cdn/JGPXCGIY.js +0 -4
  1005. package/dist/cdn/JHLQ37ED.js +0 -4
  1006. package/dist/cdn/JHTAMMGS.js +0 -4
  1007. package/dist/cdn/JJ2KCX4T.js +0 -4
  1008. package/dist/cdn/JMMLZI7V.js +0 -4
  1009. package/dist/cdn/JN7TJYAC.js +0 -4
  1010. package/dist/cdn/JO47MIAV.js +0 -4
  1011. package/dist/cdn/JOYWFAQP.js +0 -4
  1012. package/dist/cdn/JPMUZ2FU.js +0 -4
  1013. package/dist/cdn/JPNPJCMN.js +0 -8
  1014. package/dist/cdn/JR23NCY6.js +0 -4
  1015. package/dist/cdn/JT4FFVJS.js +0 -4
  1016. package/dist/cdn/JW3MFZF6.js +0 -4
  1017. package/dist/cdn/JWJ7OWP4.js +0 -4
  1018. package/dist/cdn/JXXXJT2L.js +0 -4
  1019. package/dist/cdn/K4JHEGYJ.js +0 -4
  1020. package/dist/cdn/K4TUANMT.js +0 -4
  1021. package/dist/cdn/K75CDKNQ.js +0 -4
  1022. package/dist/cdn/KBLSIIDF.js +0 -4
  1023. package/dist/cdn/KCTRLBHS.js +0 -4
  1024. package/dist/cdn/KEC6N57I.js +0 -4
  1025. package/dist/cdn/KEXP4MLT.js +0 -4
  1026. package/dist/cdn/KF7U6GPO.js +0 -4
  1027. package/dist/cdn/KMNDRUQ6.js +0 -4
  1028. package/dist/cdn/KMVPMUK7.js +0 -4
  1029. package/dist/cdn/KOZDRZCB.js +0 -4
  1030. package/dist/cdn/KP246HND.js +0 -4
  1031. package/dist/cdn/KSCA7JUC.js +0 -4
  1032. package/dist/cdn/KTITDQFU.js +0 -4
  1033. package/dist/cdn/KU4SHJHO.js +0 -4
  1034. package/dist/cdn/KWLTRRGK.js +0 -4
  1035. package/dist/cdn/KWMU4OV6.js +0 -4
  1036. package/dist/cdn/KWWAN7EF.js +0 -4
  1037. package/dist/cdn/L2IIIPUW.js +0 -4
  1038. package/dist/cdn/L5YDRCSE.js +0 -4
  1039. package/dist/cdn/L6FMIVZS.js +0 -4
  1040. package/dist/cdn/L6KVQP4K.js +0 -4
  1041. package/dist/cdn/L7RWMHIN.js +0 -4
  1042. package/dist/cdn/LBNZ5OMC.js +0 -5
  1043. package/dist/cdn/LC63JF7T.js +0 -4
  1044. package/dist/cdn/LELAICGS.js +0 -4
  1045. package/dist/cdn/LIJEPINK.js +0 -4
  1046. package/dist/cdn/LIQDFVHE.js +0 -4
  1047. package/dist/cdn/LL3JYMZF.js +0 -4
  1048. package/dist/cdn/LLSB7PWP.js +0 -4
  1049. package/dist/cdn/LO5ROPJK.js +0 -4
  1050. package/dist/cdn/LOAV2LPI.js +0 -4
  1051. package/dist/cdn/LOEYT5N3.js +0 -4
  1052. package/dist/cdn/LR53H5V4.js +0 -4
  1053. package/dist/cdn/LSICEK6I.js +0 -4
  1054. package/dist/cdn/LTA4MSHK.js +0 -4
  1055. package/dist/cdn/LXXHZAF2.js +0 -4
  1056. package/dist/cdn/LYUWDJRX.js +0 -4
  1057. package/dist/cdn/M2AHMZT5.js +0 -4
  1058. package/dist/cdn/M5BVAFDV.js +0 -4
  1059. package/dist/cdn/M7SLDH7O.js +0 -4
  1060. package/dist/cdn/M7XZ4WPZ.js +0 -4
  1061. package/dist/cdn/MCHJ2VIR.js +0 -4
  1062. package/dist/cdn/MEPB3EEG.js +0 -4
  1063. package/dist/cdn/MFDRXCYB.js +0 -4
  1064. package/dist/cdn/MGRAOQZK.js +0 -4
  1065. package/dist/cdn/MGZNKNJR.js +0 -4
  1066. package/dist/cdn/MJTLLHHU.js +0 -12
  1067. package/dist/cdn/MKFUJM7O.js +0 -4
  1068. package/dist/cdn/MLMTCOSP.js +0 -4
  1069. package/dist/cdn/MNDISAMM.js +0 -4
  1070. package/dist/cdn/MOGVJEV7.js +0 -4
  1071. package/dist/cdn/MOOPE6WQ.js +0 -4
  1072. package/dist/cdn/MPLFOMCQ.js +0 -4
  1073. package/dist/cdn/MRN4ECFZ.js +0 -4
  1074. package/dist/cdn/MRZWQXC7.js +0 -4
  1075. package/dist/cdn/MSI7COK3.js +0 -4
  1076. package/dist/cdn/MU5CH4QR.js +0 -4
  1077. package/dist/cdn/MVWQYWBB.js +0 -4
  1078. package/dist/cdn/MYYS2L7H.js +0 -4
  1079. package/dist/cdn/N2TFJ5QG.js +0 -4
  1080. package/dist/cdn/N3G62KYB.js +0 -4
  1081. package/dist/cdn/N4GVUOCA.js +0 -59
  1082. package/dist/cdn/N654TUTX.js +0 -4
  1083. package/dist/cdn/N6PIXLOU.js +0 -4
  1084. package/dist/cdn/N74T7Z34.js +0 -4
  1085. package/dist/cdn/NBIW3NLC.js +0 -4
  1086. package/dist/cdn/NCLU7QJN.js +0 -4
  1087. package/dist/cdn/NHQJW77E.js +0 -4
  1088. package/dist/cdn/NJNMWO3E.js +0 -4
  1089. package/dist/cdn/NJUFUPCQ.js +0 -4
  1090. package/dist/cdn/NKDBP4RM.js +0 -4
  1091. package/dist/cdn/NNED42SV.js +0 -4
  1092. package/dist/cdn/NO47MF2E.js +0 -4
  1093. package/dist/cdn/NPNW3SAQ.js +0 -4
  1094. package/dist/cdn/NU4ESDPB.js +0 -52
  1095. package/dist/cdn/NVYNP3AC.js +0 -4
  1096. package/dist/cdn/NYJC4BCX.js +0 -4
  1097. package/dist/cdn/NZACHUMV.js +0 -4
  1098. package/dist/cdn/NZAY3TQ7.js +0 -4
  1099. package/dist/cdn/NZESIQ44.js +0 -25
  1100. package/dist/cdn/O25EEYSN.js +0 -4
  1101. package/dist/cdn/O2CVI3NP.js +0 -4
  1102. package/dist/cdn/O2W7BZSE.js +0 -4
  1103. package/dist/cdn/O4IL5BRE.js +0 -4
  1104. package/dist/cdn/O5ZXDL4J.js +0 -4
  1105. package/dist/cdn/O6SDR7UA.js +0 -4
  1106. package/dist/cdn/O7JTTO3C.js +0 -4
  1107. package/dist/cdn/O7OZQXRP.js +0 -4
  1108. package/dist/cdn/OCJZMNCA.js +0 -4
  1109. package/dist/cdn/OFWTWEER.js +0 -4
  1110. package/dist/cdn/OH5VK2BD.js +0 -4
  1111. package/dist/cdn/OI3V6PQF.js +0 -4
  1112. package/dist/cdn/OKFKCZH7.js +0 -4
  1113. package/dist/cdn/OL6PA6TK.js +0 -4
  1114. package/dist/cdn/OML22U5V.js +0 -4
  1115. package/dist/cdn/OO34IANQ.js +0 -4
  1116. package/dist/cdn/OQASLAHV.js +0 -4
  1117. package/dist/cdn/OQBWZQZN.js +0 -4
  1118. package/dist/cdn/OQTJGNZD.js +0 -4
  1119. package/dist/cdn/OQTUZ53P.js +0 -5
  1120. package/dist/cdn/ORNXYXCN.js +0 -4
  1121. package/dist/cdn/OSV6SQ4T.js +0 -4
  1122. package/dist/cdn/OSYGJWEX.js +0 -4
  1123. package/dist/cdn/OVDL5YZW.js +0 -4
  1124. package/dist/cdn/OVNMENOT.js +0 -4
  1125. package/dist/cdn/OW7QCVNP.js +0 -4
  1126. package/dist/cdn/OWAREGFS.js +0 -4
  1127. package/dist/cdn/OWLRYOYY.js +0 -4
  1128. package/dist/cdn/OXEZPQAH.js +0 -4
  1129. package/dist/cdn/P5OC42PS.js +0 -4
  1130. package/dist/cdn/P7WXZWB2.js +0 -41
  1131. package/dist/cdn/PFNRCDC7.js +0 -4
  1132. package/dist/cdn/PIFQTL22.js +0 -4
  1133. package/dist/cdn/PJBGYFXD.js +0 -4
  1134. package/dist/cdn/PKTUZ5BJ.js +0 -4
  1135. package/dist/cdn/PNP2TBZ4.js +0 -4
  1136. package/dist/cdn/PPEP7LER.js +0 -4
  1137. package/dist/cdn/PSBZ5YRK.js +0 -4
  1138. package/dist/cdn/PX3YC7VB.js +0 -4
  1139. package/dist/cdn/PX6RXN5S.js +0 -51
  1140. package/dist/cdn/PXN4E2MC.js +0 -4
  1141. package/dist/cdn/PZTGSADX.js +0 -4
  1142. package/dist/cdn/PZXFCX54.js +0 -4
  1143. package/dist/cdn/Q3IKDNP4.js +0 -4
  1144. package/dist/cdn/Q4UEC2RG.js +0 -4
  1145. package/dist/cdn/Q5YIBNMQ.js +0 -5
  1146. package/dist/cdn/Q6PSCWNK.js +0 -4
  1147. package/dist/cdn/Q7DJJEUK.js +0 -4
  1148. package/dist/cdn/Q7JCRSUB.js +0 -4
  1149. package/dist/cdn/QAVV7RBS.js +0 -4
  1150. package/dist/cdn/QEPNIIZS.js +0 -12
  1151. package/dist/cdn/QIHNGA4T.js +0 -4
  1152. package/dist/cdn/QMLUKHVC.js +0 -4
  1153. package/dist/cdn/QNOQLM4M.js +0 -4
  1154. package/dist/cdn/QPX244L3.js +0 -4
  1155. package/dist/cdn/QSU5ERYN.js +0 -4
  1156. package/dist/cdn/QV372TIJ.js +0 -4
  1157. package/dist/cdn/QYBRVAE5.js +0 -4
  1158. package/dist/cdn/QYX4H4HH.js +0 -4
  1159. package/dist/cdn/R2DJXORV.js +0 -4
  1160. package/dist/cdn/R2O27POF.js +0 -4
  1161. package/dist/cdn/R3OJEXRM.js +0 -4
  1162. package/dist/cdn/R4B25LXA.js +0 -4
  1163. package/dist/cdn/R5UHFXAG.js +0 -4
  1164. package/dist/cdn/RBITE5DR.js +0 -4
  1165. package/dist/cdn/REOKWHOH.js +0 -4
  1166. package/dist/cdn/RH2G6C7M.js +0 -4
  1167. package/dist/cdn/RH4YN4CC.js +0 -4
  1168. package/dist/cdn/RONVC6MZ.js +0 -4
  1169. package/dist/cdn/ROSEMWTX.js +0 -4
  1170. package/dist/cdn/RQE32CT7.js +0 -4
  1171. package/dist/cdn/RR5SBI5Y.js +0 -4
  1172. package/dist/cdn/RRI4HBN7.js +0 -4
  1173. package/dist/cdn/RS6JYRG4.js +0 -4
  1174. package/dist/cdn/RUB5HJ5P.js +0 -4
  1175. package/dist/cdn/RXHTHGRB.js +0 -6
  1176. package/dist/cdn/RYH3F3PU.js +0 -4
  1177. package/dist/cdn/RZ3XDVZZ.js +0 -4
  1178. package/dist/cdn/RZNB3OFO.js +0 -4
  1179. package/dist/cdn/S6AVKXAJ.js +0 -4
  1180. package/dist/cdn/SAIGWGP6.js +0 -4
  1181. package/dist/cdn/SCD3B4MB.js +0 -4
  1182. package/dist/cdn/SDFB2MQH.js +0 -4
  1183. package/dist/cdn/SFFVTJCM.js +0 -4
  1184. package/dist/cdn/SJVEGN2I.js +0 -4
  1185. package/dist/cdn/SJWWJ5UZ.js +0 -4
  1186. package/dist/cdn/SOT4INP5.js +0 -4
  1187. package/dist/cdn/SOYHTVAM.js +0 -4
  1188. package/dist/cdn/SS6XDBIA.js +0 -4
  1189. package/dist/cdn/ST2G77QN.js +0 -4
  1190. package/dist/cdn/SUVK75C3.js +0 -4
  1191. package/dist/cdn/SVB7CB7D.js +0 -4
  1192. package/dist/cdn/SW6YZCS2.js +0 -4
  1193. package/dist/cdn/SXGH3WEY.js +0 -4
  1194. package/dist/cdn/SZ3HT2IS.js +0 -4
  1195. package/dist/cdn/T2Z4IJJ6.js +0 -4
  1196. package/dist/cdn/T2ZBWBVH.js +0 -4
  1197. package/dist/cdn/T32F5TJ3.js +0 -4
  1198. package/dist/cdn/T32GCXTF.js +0 -4
  1199. package/dist/cdn/T3QX3L5G.js +0 -4
  1200. package/dist/cdn/T4GILEQC.js +0 -4
  1201. package/dist/cdn/TA6EC4XN.js +0 -4
  1202. package/dist/cdn/TATUD3E6.js +0 -4
  1203. package/dist/cdn/TBADGUX7.js +0 -4
  1204. package/dist/cdn/TCAG2JRW.js +0 -4
  1205. package/dist/cdn/TCOGOU2G.js +0 -4
  1206. package/dist/cdn/TDA4GOL6.js +0 -4
  1207. package/dist/cdn/TDSNZXD2.js +0 -4
  1208. package/dist/cdn/TDY4RECC.js +0 -4
  1209. package/dist/cdn/TEH7JFUJ.js +0 -4
  1210. package/dist/cdn/TEZM6G6M.js +0 -4
  1211. package/dist/cdn/TF76R2WL.js +0 -4
  1212. package/dist/cdn/TFXKHVLP.js +0 -4
  1213. package/dist/cdn/TG33KS7T.js +0 -4
  1214. package/dist/cdn/TGJUZC2P.js +0 -4
  1215. package/dist/cdn/TJWXRG2O.js +0 -4
  1216. package/dist/cdn/TKEEU3O4.js +0 -4
  1217. package/dist/cdn/TLIVUQ2G.js +0 -4
  1218. package/dist/cdn/TNKR5FRU.js +0 -4
  1219. package/dist/cdn/TPUNSJV3.js +0 -4
  1220. package/dist/cdn/TRNT355A.js +0 -4
  1221. package/dist/cdn/TTSRMZIU.js +0 -4
  1222. package/dist/cdn/TUN4FQYM.js +0 -4
  1223. package/dist/cdn/TWMLLOZX.js +0 -4
  1224. package/dist/cdn/TXNMPUYM.js +0 -4
  1225. package/dist/cdn/TXO26ZP6.js +0 -4
  1226. package/dist/cdn/TYCJU6VE.js +0 -4
  1227. package/dist/cdn/U232XSYA.js +0 -4
  1228. package/dist/cdn/U25TBPCS.js +0 -4
  1229. package/dist/cdn/U4LWWHZM.js +0 -4
  1230. package/dist/cdn/U4XQAIUD.js +0 -4
  1231. package/dist/cdn/U5BTKPZE.js +0 -4
  1232. package/dist/cdn/U6V24QGM.js +0 -4
  1233. package/dist/cdn/U7SI4YBL.js +0 -4
  1234. package/dist/cdn/UDOT7BRR.js +0 -4
  1235. package/dist/cdn/UDPUWNLM.js +0 -4
  1236. package/dist/cdn/UFH4AVOH.js +0 -4
  1237. package/dist/cdn/UFZWJNIN.js +0 -4
  1238. package/dist/cdn/UGWEZMV7.js +0 -4
  1239. package/dist/cdn/UJOUG44M.js +0 -4
  1240. package/dist/cdn/UKCT6ARD.js +0 -4
  1241. package/dist/cdn/UKOBPGMM.js +0 -4
  1242. package/dist/cdn/UL6T3BSZ.js +0 -4
  1243. package/dist/cdn/UNKCUZNF.js +0 -6
  1244. package/dist/cdn/UPJPXJX7.js +0 -4
  1245. package/dist/cdn/UUTD66NZ.js +0 -4
  1246. package/dist/cdn/UV3DXJEF.js +0 -5470
  1247. package/dist/cdn/UVBDBUMS.js +0 -24
  1248. package/dist/cdn/UW4M4TN4.js +0 -4
  1249. package/dist/cdn/UX2O7D6J.js +0 -4
  1250. package/dist/cdn/UZEJSHDT.js +0 -4
  1251. package/dist/cdn/UZETVGBM.js +0 -4
  1252. package/dist/cdn/V24X2WNR.js +0 -4
  1253. package/dist/cdn/V2R5OFCW.js +0 -4
  1254. package/dist/cdn/V4PNJZOC.js +0 -4
  1255. package/dist/cdn/V4Y2HR2F.js +0 -4
  1256. package/dist/cdn/V5NOTCEH.js +0 -4
  1257. package/dist/cdn/V74KUW6Z.js +0 -4
  1258. package/dist/cdn/V753VGV2.js +0 -4
  1259. package/dist/cdn/VCNB7EAS.js +0 -4
  1260. package/dist/cdn/VCWUO4LA.js +0 -4
  1261. package/dist/cdn/VDYZTNZR.js +0 -4
  1262. package/dist/cdn/VE4YA6S6.js +0 -4
  1263. package/dist/cdn/VEVDLTMH.js +0 -4
  1264. package/dist/cdn/VGCJWDN7.js +0 -4
  1265. package/dist/cdn/VLPSDBJJ.js +0 -4
  1266. package/dist/cdn/VLTZ36I5.js +0 -4
  1267. package/dist/cdn/VMJZTE2U.js +0 -4
  1268. package/dist/cdn/VMLKFU2E.js +0 -4
  1269. package/dist/cdn/VOHNEKSV.js +0 -4
  1270. package/dist/cdn/VOVVYT24.js +0 -4
  1271. package/dist/cdn/VR46TY7L.js +0 -4
  1272. package/dist/cdn/VTCMQTQK.js +0 -4
  1273. package/dist/cdn/W3NF2S6F.js +0 -4
  1274. package/dist/cdn/W57Q3UQY.js +0 -4
  1275. package/dist/cdn/W6YLJSVR.js +0 -4
  1276. package/dist/cdn/W76WS7Z7.js +0 -4
  1277. package/dist/cdn/WDPY76IV.js +0 -4
  1278. package/dist/cdn/WFPRJUDN.js +0 -4
  1279. package/dist/cdn/WFW6SEUF.js +0 -4
  1280. package/dist/cdn/WIYDX4YI.js +0 -4
  1281. package/dist/cdn/WKE6A3A2.js +0 -4
  1282. package/dist/cdn/WKLIAJGA.js +0 -4
  1283. package/dist/cdn/WLYVJYM2.js +0 -4
  1284. package/dist/cdn/WPRUVNXB.js +0 -4
  1285. package/dist/cdn/WPXKAJQF.js +0 -4
  1286. package/dist/cdn/WRHFNSUF.js +0 -4
  1287. package/dist/cdn/WRSNARWE.js +0 -4
  1288. package/dist/cdn/WUOUKFBK.js +0 -4
  1289. package/dist/cdn/WUUTKISQ.js +0 -4
  1290. package/dist/cdn/WUW26I42.js +0 -4
  1291. package/dist/cdn/WVNUYXFM.js +0 -4
  1292. package/dist/cdn/WVWS4YXG.js +0 -4
  1293. package/dist/cdn/WVZG7LOI.js +0 -16
  1294. package/dist/cdn/WWIPN7PO.js +0 -4
  1295. package/dist/cdn/WWMFKLZF.js +0 -4
  1296. package/dist/cdn/WXZY2CUN.js +0 -4
  1297. package/dist/cdn/X2AR6GS7.js +0 -4
  1298. package/dist/cdn/X2CRYK4Q.js +0 -4
  1299. package/dist/cdn/X2G5HLD3.js +0 -4
  1300. package/dist/cdn/X35RWQRU.js +0 -4
  1301. package/dist/cdn/X3A45LF2.js +0 -4
  1302. package/dist/cdn/X3AZ6O4K.js +0 -4
  1303. package/dist/cdn/X4VYBTVM.js +0 -4
  1304. package/dist/cdn/XCPOIAEG.js +0 -4
  1305. package/dist/cdn/XD4PXFM2.js +0 -4
  1306. package/dist/cdn/XFCLUQCB.js +0 -4
  1307. package/dist/cdn/XKDOKZML.js +0 -4
  1308. package/dist/cdn/XKGFDX5E.js +0 -4
  1309. package/dist/cdn/XLHP7WJ3.js +0 -4
  1310. package/dist/cdn/XMWMCNWD.js +0 -4
  1311. package/dist/cdn/XNO5MQ46.js +0 -4
  1312. package/dist/cdn/XNR3PWZA.js +0 -4
  1313. package/dist/cdn/XQG4BD7T.js +0 -4
  1314. package/dist/cdn/XRKTINZI.js +0 -4
  1315. package/dist/cdn/XSPYDTB7.js +0 -4
  1316. package/dist/cdn/XWHQJ7T3.js +0 -4
  1317. package/dist/cdn/XWTUJY3F.js +0 -4
  1318. package/dist/cdn/XXYK56OM.js +0 -4
  1319. package/dist/cdn/Y3DX4SG4.js +0 -4
  1320. package/dist/cdn/Y3S47PGZ.js +0 -4
  1321. package/dist/cdn/Y3TOQDLU.js +0 -4
  1322. package/dist/cdn/Y46HADID.js +0 -4
  1323. package/dist/cdn/Y4I4F6QS.js +0 -4
  1324. package/dist/cdn/Y4J32CAS.js +0 -4
  1325. package/dist/cdn/Y4L4XL3K.js +0 -4
  1326. package/dist/cdn/Y4X3XRPC.js +0 -4
  1327. package/dist/cdn/Y5AML2QL.js +0 -4
  1328. package/dist/cdn/Y5JN4WBD.js +0 -4
  1329. package/dist/cdn/Y7KKVZGE.js +0 -4
  1330. package/dist/cdn/Y7NQCIVO.js +0 -4
  1331. package/dist/cdn/YFFODKHL.js +0 -4
  1332. package/dist/cdn/YJ7H2SC4.js +0 -4
  1333. package/dist/cdn/YLNDYBB7.js +0 -4
  1334. package/dist/cdn/YMQGZQQN.js +0 -4
  1335. package/dist/cdn/YMRCCSPB.js +0 -4
  1336. package/dist/cdn/YNYTXFCG.js +0 -4
  1337. package/dist/cdn/YOA2H3MK.js +0 -4
  1338. package/dist/cdn/YUEKFQFJ.js +0 -4
  1339. package/dist/cdn/YWD24NES.js +0 -4
  1340. package/dist/cdn/YXVQBH66.js +0 -4
  1341. package/dist/cdn/YYLBOQ2O.js +0 -4
  1342. package/dist/cdn/YYXSXVGD.js +0 -5
  1343. package/dist/cdn/Z2IGQUI7.js +0 -4
  1344. package/dist/cdn/Z4IKZRBG.js +0 -4
  1345. package/dist/cdn/Z5UTJDL2.js +0 -4
  1346. package/dist/cdn/Z5WU6UO7.js +0 -4
  1347. package/dist/cdn/Z7YIGCRS.js +0 -4
  1348. package/dist/cdn/ZFCPXG47.js +0 -4
  1349. package/dist/cdn/ZHPG4GSC.js +0 -4
  1350. package/dist/cdn/ZHVZ3ESS.js +0 -4
  1351. package/dist/cdn/ZIS2KBS3.js +0 -4
  1352. package/dist/cdn/ZKDFFS7J.js +0 -4
  1353. package/dist/cdn/ZKPDDVFU.js +0 -4
  1354. package/dist/cdn/ZM3P7HRM.js +0 -4
  1355. package/dist/cdn/ZMFPEDMB.js +0 -4
  1356. package/dist/cdn/ZMIZUUVX.js +0 -4
  1357. package/dist/cdn/ZPDJ2YZH.js +0 -4
  1358. package/dist/cdn/ZVDRETBC.js +0 -4
  1359. package/dist/cdn/ZXF5BE4U.js +0 -4
  1360. package/dist/cdn/ZXSK4ODR.js +0 -4
  1361. package/dist/cdn/ZXSPP3BI.js +0 -4
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.28/esri/copyright.txt for details.
3
- v0.28.1 */
4
- import{c as W}from"./F24OW3QV.js";import{a as S,b as w,c as x,d as R,e as Y,f as Q,g as X}from"./6EOOI6DK.js";import{a as N,e as z,j as $}from"./UVBDBUMS.js";import{a as O}from"./2MS724DY.js";import{c as G}from"./RBITE5DR.js";import{c as B}from"./ZPDJ2YZH.js";import{e as I}from"./V5NOTCEH.js";import{a as f}from"./57SV5GKA.js";import{P as _,ca as U,da as A,ea as J,fa as K,ga as L,ha as M}from"./3SEATSJ6.js";import{f as k,q as E}from"./WRSNARWE.js";import{o as q}from"./ZXF5BE4U.js";import{b as F}from"./HE5EIFZA.js";import{a as d}from"./HVTH5MJW.js";import{c as T,d as j,h as C}from"./ORNXYXCN.js";import{a as P}from"./V4Y2HR2F.js";import{a as H}from"./7G4FLTFI.js";import{a as g,g as D}from"./72D2N5UB.js";import{a as h}from"./LR53H5V4.js";var st={name:"",tags:[],typeKeywords:["Hub Site","hubSite"],catalog:{schemaVersion:0},assistant:{schemaVersion:0,workflows:[{key:"search_workflow",label:"Data search",description:"This workflow is for questions about geographic data that can be answered from open data.",action:"search",response:"Query for the right dataset and filter.",sources:[]},{key:"crisis_workflow",label:"Personal crisis topics",description:"Relating to suicide, self harm, or other personal crisis.",action:"respond",response:"If you are in a crisis or feeling suicidal, please call 911 for emergency response or 988 for the Suicide and Crisis Lifeline.",sources:[]},{key:"disaster_workflow",label:"Disaster response",description:"Relating preparing for disaster, tornado, hurricanes.",action:"respond",response:"If this is an emergency, call 911.",sources:[]}]},permissions:[],schemaVersion:1,features:T};function tt(i,t){return f(i,{},t)}function V(i){let t;if(H(i.item.type,i.item.typeKeywords))t=j;else if(q(i.item.type,i.item.typeKeywords))t=C;else throw TypeError("Entity type does not support versioning");return t}function Ot(i,t,s){return s||(s=V(i)),f(t.data,g(i),s)}async function et(i,t,s){let e=await R(i,t.id,s);return{isStale:e.updated>t.updated,updated:e.updated}}var v=class extends Error{constructor(t,s){super(`Version ${t} is stale. Use force to overwrite.`),this.updated=s,this.name="StaleVersionError"}};async function it(i,t,s,e){if(!e){let n=await et(i.item.id,t,s);if(n.isStale)throw new v(t.id,n.updated)}let o=V(i);t.data=tt(i,o);let a=S(t.id);t.updated=Date.now();let l=O(t),c=f(t,{},x);return await F(Object.assign(Object.assign({},s),{id:h(i,"item.id"),name:w,owner:h(i,"item.owner"),params:{properties:c},prefix:a,resource:l})),t}async function at(i,t,s){let e=V(i),o=tt(i,e),a=s?.name,l=s?.description,c=s?.parentId,n=D(),r=S(n),m=Date.now(),p={created:m,creator:h(t,"authentication.username"),data:o,description:l,id:n,name:a,parent:c,path:`${r}/${w}`,updated:m},y=O(p),u=f(p,{},x);return await N(Object.assign(Object.assign({},t),{id:h(i,"item.id"),name:w,owner:h(i,"item.owner"),params:{properties:u},prefix:r,resource:y})),p.size=y.size,p}var Z=class i extends z{constructor(t,s){super(t,s),this._catalogCache={},this._catalog=I.fromJson(t.catalog,this.context)}get catalog(){return this._catalog}static fromJson(t,s){let e=this.applyDefaults(t,s);return new i(e,s)}static async create(t,s,e=!1){let o=this.applyDefaults(t,s),a=i.fromJson(o,s);return e&&await a.save(),a}static async fetch(t,s){try{let e=await M(t,s.hubRequestOptions);return i.fromJson(e,s)}catch(e){throw e.message==="CONT_0001: Item does not exist or is inaccessible."?new Error("Site not found."):e}}static applyDefaults(t,s){t.orgUrlKey||(t.orgUrlKey=P(s,"portal.urlKey","")),t.orgUrlKey=t.orgUrlKey.toLowerCase();let e=Object.assign(Object.assign({},st),t);return e.type=s.isPortal?A:U,e}update(t){if(this.isDestroyed)throw new Error("HubSite is already destroyed.");this.entity=Object.assign(Object.assign({},this.entity),t),t.catalog&&(this._catalog=I.fromJson(this.entity.catalog,this.context))}async save(){if(this.isDestroyed)throw new Error("HubSite is already destroyed.");this.entity.catalog=this._catalog.toJson(),this.entity.id?this.entity=await K(this.entity,this.context.hubRequestOptions):this.entity=await J(this.entity,this.context.hubRequestOptions),await super.afterSave()}async delete(){if(this.isDestroyed)throw new Error("HubSite is already destroyed.");this.isDestroyed=!0,await L(this.entity.id,this.context.hubRequestOptions)}async contains(t,s=[]){s.forEach(a=>{this._catalogCache[a.id]&&(a.catalog=this._catalogCache[a.id])});let e=[...s,{id:this.id,hubEntityType:"site",catalog:this._catalog.toJson()}],o=await W(t,"content",e,this.context);return Object.keys(o.catalogInfo).forEach(a=>{a!==this.id&&(this._catalogCache[a]=o.catalogInfo[a].catalog)}),o}async searchVersions(){return Y(this.entity.id,this.context.userRequestOptions)}async getVersion(t){return R(this.entity.id,t,this.context.userRequestOptions)}async createVersion(t){let e=new E(_()).entityToStore(this.entity,{});return at(e,this.context.userRequestOptions,t)}async updateVersion(t){let e=new E(_()).entityToStore(this.entity,{});return it(e,t,this.context.userRequestOptions)}async updateVersionMetadata(t){return Q(this.entity.id,t,this.entity.owner,this.context.userRequestOptions)}async deleteVersion(t){return X(this.entity.id,t,this.entity.owner,this.context.userRequestOptions)}async getEditorConfig(t,s){return B(t,s,this.entity,this.context)}async toEditor(t={},s=[]){var e,o;let a=s.length?await G(g(this.entity),s,this.context.hubRequestOptions):g(this.entity);d("_followers.showFollowAction",this.entity.features["hub:site:feature:follow"],a);let l=await this.getFollowersGroup();if(d("_followers.isDiscussable",k(l),a),a.isDiscussable=this.entity.features["hub:site:feature:discussions"],!a._urlInfo){let{url:c,subdomain:n,defaultHostname:r}=a;a._urlInfo={url:c,subdomain:n,defaultHostname:r}}return((o=(e=this.entity.assistant)===null||e===void 0?void 0:e.examplePrompts)===null||o===void 0?void 0:o.length)>0&&d("assistant.examplePrompts",this.entity.assistant.examplePrompts.map((c,n)=>({key:n.toString(),label:c})),a),a}async fromEditor(t){var s,e,o,a,l,c;let n=await $(t,this.context),r=n.entity;Object.entries(n).forEach(([u,b])=>{d(u,b,this)}),!((s=t._followers)===null||s===void 0)&&s.isDiscussable&&await this.setFollowersGroupIsDiscussable(t._followers.isDiscussable),!((e=t._followers)===null||e===void 0)&&e.groupAccess&&await this.setFollowersGroupAccess(t._followers.groupAccess),r.features=Object.assign(Object.assign({},r.features),{"hub:site:feature:follow":(o=t._followers)===null||o===void 0?void 0:o.showFollowAction,"hub:site:feature:discussions":t.isDiscussable});let{url:m,subdomain:p,defaultHostname:y}=t._urlInfo;if(r.url=m,r.subdomain=p,r.defaultHostname=y,r.permissions=r.permissions.filter(u=>u.permission!=="hub:site:assistant:access"),((a=r.assistant.accessGroups)===null||a===void 0?void 0:a.length)>0){let u=r.assistant.accessGroups.map(b=>({permission:"hub:site:assistant:access",collaborationType:"group",collaborationId:b}));r.permissions=[...r.permissions,...u]}return((c=(l=t.assistant)===null||l===void 0?void 0:l.examplePrompts)===null||c===void 0?void 0:c.length)>0&&(r.assistant.examplePrompts=t.assistant.examplePrompts.map(u=>u.label)),this.entity=r,await this.save(),this.entity}};export{Ot as a,et as b,it as c,at as d,Z as e};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.28/esri/copyright.txt for details.
3
- v0.28.1 */
4
- import{a as l}from"./SAIGWGP6.js";import{b as m}from"./KWMU4OV6.js";import{h as a}from"./JGORLXNM.js";function p(t){return t.owner?Promise.resolve(t.owner):t.item&&t.item.owner?Promise.resolve(t.item.owner):t.authentication&&t.authentication.getUsername?t.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function I(t){return Array.isArray(t)&&Array.isArray(t[0])&&Array.isArray(t[1])}function x(t){return t.join(",")}var d=/[\x00-\x1F\x7F-\x9F\xA0]/g;function h(t){return t.replace(d,"")}function $(t,e){let n=s(t,e),r=Object.assign({httpMethod:"GET"},e);return a(n,r)}var s=(t,e)=>`${typeof e=="string"?e:m(e)}/content/items/${t}`;function w(t,e){let n=`${s(t,e)}/data`,r=Object.assign({httpMethod:"GET",params:{}},e);return r.file&&(r.params.f=null),a(n,r).catch(o=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(o.message))throw o})}function A(t){let e=`${s(t.id,t)}/relatedItems`,n=Object.assign({httpMethod:"GET",params:{direction:t.direction}},t);return typeof t.relationshipType=="string"?n.params.relationshipType=t.relationshipType:n.params.relationshipTypes=t.relationshipType,delete n.direction,delete n.relationshipType,a(e,n)}function R(t,e){let n=`${s(t,e)}/resources`,r=Object.assign({},e);return r.params=Object.assign({num:1e3},r.params),a(n,r)}function E(t,e){let n=e.readAs||"blob";return u(t,`/resources/${e.fileName}`,n,e)}function C(t,e){let n=`${s(t,e)}/groups`;return a(n,e)}function N(t){return p(t).then(e=>{let n=`${m(t)}/content/users/${e}/items/${t.id}/status`,r=l(t,["jobId","jobType"],{params:Object.assign({},t.params)});return a(n,r)})}function b(t,e){let{fileName:n="iteminfo.xml",readAs:r="text"}=e||{},o=Object.assign({httpMethod:"GET"},e);return u(t,`/info/${n}`,r,o)}function P(t,e){let n=Object.assign(Object.assign({},e),{fileName:"metadata/metadata.xml"});return b(t,n)}function u(t,e,n,r){let o=`${s(t,r)}${e}`,i=Object.assign({params:{}},r),f=i.rawResponse;return i.rawResponse=!0,i.params.f=null,a(o,i).then(c=>f?c:n!=="json"?c[n]():c.text().then(g=>JSON.parse(h(g))))}export{p as a,I as b,x as c,$ as d,w as e,A as f,R as g,E as h,C as i,N as j,P as k};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.28/esri/copyright.txt for details.
3
- v0.28.1 */
4
- import{a as n}from"./UGWEZMV7.js";import{a as p}from"./3NO6PT2W.js";import{a as u}from"./ZHPG4GSC.js";import{a as i}from"./JT4FFVJS.js";import{r as o}from"./ZHVZ3ESS.js";import{a as r}from"./I35FDGLO.js";async function b(a,s){let t=r(a),e;switch(t){case"event":e=await n(a.id,s);break;default:e=await p(a.id,s.requestOptions);break}return e}async function h(a,s,t){switch(r(a)){case"event":await o(Object.assign({eventId:a.id,data:{access:s.toUpperCase()}},t.hubRequestOptions));break;case"group":await i({group:{id:a.id,access:s},authentication:t.session});break;default:await u({id:a.id,access:s,owner:a.owner,authentication:t.session});break}}export{b as a,h as b};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.28/esri/copyright.txt for details.
3
- v0.28.1 */
4
- import{a as w,b as x}from"./R5UHFXAG.js";import{a as m,b as g,c as p,d as f,e as b}from"./UFH4AVOH.js";import{a as u}from"./Y7KKVZGE.js";import{a as d,b as l}from"./NNED42SV.js";import{a as r}from"./LR53H5V4.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};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.28/esri/copyright.txt for details.
3
- v0.28.1 */
4
- import b from"./OQTUZ53P.js";import"./PSBZ5YRK.js";import"./CMEXEA5G.js";import"./SCD3B4MB.js";import"./GF6YEHDP.js";import"./2KUJHWSS.js";import"./QV372TIJ.js";import"./4GQ2RLTD.js";import"./O2W7BZSE.js";import"./6CARGNL2.js";import"./NYJC4BCX.js";import"./UPJPXJX7.js";import"./DPBOXKHH.js";import"./TTSRMZIU.js";import"./Y4L4XL3K.js";import"./ZMFPEDMB.js";import"./KCTRLBHS.js";import"./OO34IANQ.js";import{b as o}from"./KWLTRRGK.js";import"./6JY2WCKI.js";import{C as r,I as h,a as i,d as s}from"./RXHTHGRB.js";import"./3OZ3JMRU.js";import"./C56TOSMW.js";import"./J754Y5LX.js";import"./A7ITHZ7K.js";import"./UZETVGBM.js";import"./BEBC4N2F.js";import"./TFXKHVLP.js";import"./XD4PXFM2.js";import"./LBNZ5OMC.js";import"./Q5YIBNMQ.js";import"./LL3JYMZF.js";import a from"./G5SUS4AG.js";import"./5PU5FIZF.js";import"./F24OW3QV.js";import"./UDOT7BRR.js";import"./SFFVTJCM.js";import"./5KJKBKBF.js";import"./UGWEZMV7.js";import"./V5NOTCEH.js";import"./XLHP7WJ3.js";import"./HCRPOAIB.js";import"./OSV6SQ4T.js";import"./QNOQLM4M.js";import"./73BONLJX.js";import"./V753VGV2.js";import"./RRI4HBN7.js";import"./J24DMG56.js";import"./AQ7FK6WD.js";import"./JT4FFVJS.js";import"./TDA4GOL6.js";import"./2K3XEXH6.js";import"./KWWAN7EF.js";import"./M2AHMZT5.js";import"./RH4YN4CC.js";import"./XMWMCNWD.js";import"./DX4ZXYHD.js";import"./57SV5GKA.js";import"./WFPRJUDN.js";import"./MPLFOMCQ.js";import"./JXXXJT2L.js";import"./ZHVZ3ESS.js";import"./JHLQ37ED.js";import"./QPX244L3.js";import"./ROSEMWTX.js";import"./4OEA7GNI.js";import"./CJR6M7EB.js";import"./DHTX3SJW.js";import"./3SEATSJ6.js";import"./2WYJ3RGY.js";import"./7L7TGBXG.js";import"./WRSNARWE.js";import"./UX2O7D6J.js";import"./22F2LZ4V.js";import"./RYH3F3PU.js";import"./52I5IHYQ.js";import"./MJTLLHHU.js";import"./Q4UEC2RG.js";import"./R2DJXORV.js";import"./OQBWZQZN.js";import"./7XIVSMIE.js";import"./WVWS4YXG.js";import"./TEZM6G6M.js";import"./JGPXCGIY.js";import"./MGZNKNJR.js";import"./2SACZBUB.js";import"./5K5HLE5V.js";import"./JDFG66XY.js";import"./VMLKFU2E.js";import"./FOY6AYXZ.js";import"./2KRK5XT3.js";import"./TDY4RECC.js";import"./TCAG2JRW.js";import"./5VRJIFAQ.js";import"./JW3MFZF6.js";import"./Z5UTJDL2.js";import"./T3QX3L5G.js";import"./ZXF5BE4U.js";import"./X2G5HLD3.js";import"./6BRASDRC.js";import"./HE5EIFZA.js";import"./FQ7B56K7.js";import"./I3KNMJ7E.js";import"./WKLIAJGA.js";import"./SAIGWGP6.js";import"./KWMU4OV6.js";import"./JGORLXNM.js";import"./ZVDRETBC.js";import"./Y46HADID.js";import"./OXEZPQAH.js";import"./SOT4INP5.js";import"./NJNMWO3E.js";import"./HVTH5MJW.js";import"./2NIRKU4D.js";import"./MYYS2L7H.js";import"./I35FDGLO.js";import"./ORNXYXCN.js";import"./V4Y2HR2F.js";import"./7G4FLTFI.js";import"./62NJONSX.js";import"./L6KVQP4K.js";import"./33S2W3CI.js";import"./MOGVJEV7.js";import"./NHQJW77E.js";import"./JHTAMMGS.js";import"./OW7QCVNP.js";import"./72D2N5UB.js";import"./LR53H5V4.js";import"./CF2YAFBC.js";import"./RS6JYRG4.js";export default $arcgis.t(([])=>{var c=i`:host{display:block}:host>div>h1:first-child,:host>div>h2:first-child,:host>div>h3:first-child,:host>div>h4:first-child,:host>div>h5:first-child,:host>div>h6:first-child,:host>div>p:first-child{margin-top:0}`,t=class extends r{constructor(){super(...arguments),this.html=""}static{this.properties={html:1}}static{this.styles=c}get _content(){return o(this.html)}render(){return s`<div .innerHTML=${this._content??""}></div>`}};h("arcgis-text-card",t);return t},a,b)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.28/esri/copyright.txt for details.
3
- v0.28.1 */
4
- import{a as f}from"./63KAIKLE.js";import{b as d}from"./KWMU4OV6.js";import{h as u}from"./JGORLXNM.js";function _(s){let r=s.id,e=`${d(s)}/community/groups/${r}/addUsers`,t=Object.assign({},s,{admins:void 0,users:void 0}),c=[...p("users",s.users,t),...p("admins",s.admins,t)].map(o=>R(e,o));return Promise.all(c).then(j)}function p(s,r,e){return!r||r.length<1?[]:f(r,25).map(n=>b(s,n,e))}function b(s,r,e){return Object.assign({},e,{[s]:r,params:Object.assign(Object.assign({},e.params),{[s]:r})})}function R(s,r){return u(s,r).catch(e=>({errors:[e]}))}function j(s){let r=s.filter(n=>n.notAdded).reduce((n,c)=>n.concat(c.notAdded),[]),e=s.filter(n=>n.errors).reduce((n,c)=>n.concat(c.errors),[]),t={notAdded:r};return e.length>0&&(t.errors=e),t}function k(s){let{id:r,users:e}=s,t=`${d(s)}/community/groups/${r}/removeUsers`,n=o=>{let a=Object.assign(Object.assign({},s),{users:o,params:{users:o}});return u(t,a).catch(i=>({errors:[i]}))},c=f(e,25).map(o=>n(o));return Promise.all(c).then(o=>{let a=g=>o.filter(m=>m[g]).reduce((m,h)=>m.concat(h[g]),[]),i=a("errors"),l={notRemoved:a("notRemoved")};return i.length?Object.assign(Object.assign({},l),{errors:i}):l})}function y(s){let r=`${d(s)}/community/groups/${s.id}/updateUsers`,e={authentication:s.authentication,params:{}};return s.newMemberType==="admin"?e.params.admins=s.users:e.params.users=s.users,u(r,e)}export{_ as a,k as b,y as c};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.28/esri/copyright.txt for details.
3
- v0.28.1 */
4
- import{b as I}from"./22F2LZ4V.js";import{a as l}from"./HVTH5MJW.js";import{a as A}from"./2NIRKU4D.js";import{a as b,k as R}from"./72D2N5UB.js";import{a as i}from"./LR53H5V4.js";var O="cannotDiscuss",z="data-mention",g;(function(e){e.ANONYMOUS_USER="anonymousUser",e.AUTHENTICATED_USER="authenticatedUser",e.GROUP="group",e.ORG="org",e.USER="user"})(g||(g={}));var f;(function(e){e.PUBLIC="public",e.ORG="org",e.PRIVATE="private"})(f||(f={}));var m;(function(e){e.ADMIN="admin",e.MEMBER="member"})(m||(m={}));function w(e){let t=!1;return e&&(t=!(e.typeKeywords||[]).includes(O)),t}function F(e,t){let s=(e||[]).filter(r=>r!==O);return t||s.push(O),s}function E(e){return e.channelAcl?e.channelAcl.some(({category:t})=>[g.AUTHENTICATED_USER,g.ANONYMOUS_USER].includes(t)):e.access===f.PUBLIC}function D(e){return e.channelAcl?!E(e)&&e.channelAcl.some(({category:t,subCategory:s})=>t===g.ORG&&s===m.MEMBER):e.access===f.ORG}function H(e){return!E(e)&&!D(e)}function P(e){let t=f.PRIVATE;return E(e)?t=f.PUBLIC:D(e)&&(t=f.ORG),t}function $(e){return e.channelAcl?e.channelAcl.reduce((t,s)=>s.category===g.ORG&&[m.MEMBER,m.ADMIN].includes(s.subCategory)&&!t.includes(s.key)?[...t,s.key]:t,[]):e.orgs}function q(e){return e.channelAcl?e.channelAcl.reduce((t,s)=>s.category===g.GROUP&&[m.MEMBER,m.ADMIN].includes(s.subCategory)&&!t.includes(s.key)?[...t,s.key]:t,[]):e.groups}async function Q(e,t,s,r){let o=(n,a)=>a.channelAcl.reduce((c,d)=>d.category===n&&!c[d.subCategory].includes(d.key)?Object.assign(Object.assign({},c),{[d.subCategory]:[...c[d.subCategory],d.key]}):c,{member:[],admin:[]}),u=[];if(E(t))u.push({operation:"AND",predicates:[{orgid:{from:"0",to:"{"}}]});else{let n={operation:"OR",predicates:[]},a=o(g.ORG,t);a.member.length&&n.predicates.push({orgid:a.member}),a.admin.length&&n.predicates.push({orgid:a.admin,role:"org_admin"});let c=o(g.GROUP,t);if(c.member.length&&n.predicates.push({group:c.member}),c.admin.length){let d=c.admin.filter(h=>!c.member.includes(h));d.length&&(await Promise.all(d.map(y=>I(y,r).catch(C=>null)))).forEach((y,C)=>{y&&n.predicates.push({group:d[C],username:[y.owner,...y.admins].filter(R)})})}u.push(n)}s&&u.push({operation:"AND",predicates:[{username:{not:s}}]});let p=e.reduce((n,a)=>a?Object.assign(Object.assign({},n),{predicates:[...n.predicates,{username:a},{fullname:a}]}):n,{operation:"OR",predicates:[]});return p.predicates.length&&u.push(p),{targetEntity:"communityUser",filters:u}}var J=(e,t)=>Object.assign(Object.assign({},e),{id:e.id,name:e.name,createdDate:new Date(e.createdAt),createdDateSource:"channel",updatedDate:new Date(e.updatedAt),updatedDateSource:"channel",type:"channel",access:P(e),family:"channel",owner:e.creator,links:{thumbnail:null,self:null,siteRelative:null},includes:{groups:t},rawResult:e});function W(e){let t=e,s=`_${new Date(Date.now()).toISOString().replace(/[^a-z0-9]/gi,"-")}.csv`;return[t.toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-").replace(/^-/,"").substring(0,250-s.length).replace(/-$/,""),s].join("")}var S=class{constructor(t){this.mappings=t}storeToEntity(t,s){let r=U(t,s,this.mappings);if(i(t,"item")){let o=i(t,"item");l("canEdit",["admin","update"].includes(o.itemControl),r),l("canDelete",o.itemControl==="admin",r),l("canRecycle",o.canRecycle||!1,r),l("protected",o.protected,r)}return r}entityToStore(t,s){return N(t,s,this.mappings)}};function N(e,t,s){if(i(t,"item")){let r=i(t,"item");r.typeKeywords&&(r.typeKeywords=i(e,"isDiscussable")?r.typeKeywords.filter(o=>o!==O):[...r.typeKeywords,O],l("item.typeKeywords",r.typeKeywords,t))}return T(e,"entityKey",t,"storeKey",s)}function U(e,t,s){if(i(e,"item")){let r=i(e,"item");l("isDiscussable",w(r),t)}return T(e,"storeKey",t,"entityKey",s)}function T(e,t,s,r,o){let u=b(s);return o.forEach(p=>{let n=i(p,t),a=i(p,r),c=i(e,n);c!=null&&A(u,a,c,!0)}),u}function X(e){if(typeof e=="string"){let t=e.trim().toLowerCase().replace(/['"]/g,"").replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"");return t===""||t==="-"?"":t}else return e}var j=1,G=e=>[{orgid:[e]},{type:{not:["Code Attachment"]}}],M=e=>[{orgId:e}],_=e=>[{orgid:e}],K=e=>[{orgid:e}],B={item:G,event:M,group:_,user:K};function Z(e){if(i(e,"schemaVersion")===j)return e;{let t=b(e);return t=v(t),t}}function v(e){if(i(e,"schemaVersion")>1)return e;{let t={schemaVersion:1,title:"Default Catalog",scopes:{item:{targetEntity:"item",filters:[]},event:{targetEntity:"event",filters:[]}},collections:[]},s=i(e,"groups")||[],r=[];Array.isArray(s)&&s.length?r=s:typeof s=="string"&&(r=[s]),r.length&&(t.scopes=Object.entries(t.scopes).reduce((u,p)=>Object.assign(Object.assign({},u),{[p[0]]:Object.assign(Object.assign({},p[1]),{filters:[{predicates:[{group:r}]}]})}),{}));let o=i(e,"orgId");return o&&(t.scopes.item={targetEntity:"item",filters:[]},t.scopes.event={targetEntity:"event",filters:[]},t.scopes.group={targetEntity:"group",filters:[]},t.scopes.user={targetEntity:"user",filters:[]},t.scopes=Object.entries(t.scopes).reduce((u,p)=>{let n=p[0],a=p[1];return Object.assign(Object.assign({},u),{[n]:Object.assign(Object.assign({},a),{filters:[{operation:"AND",predicates:B[n](o)}]})})},{})),t}}export{O as a,z as b,g as c,f as d,m as e,w as f,F as g,E as h,D as i,H as j,P as k,$ as l,q as m,Q as n,J as o,W as p,S as q,N as r,U as s,X as t,j as u,Z as v};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.28/esri/copyright.txt for details.
3
- v0.28.1 */
4
- import"./RS6JYRG4.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};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.28/esri/copyright.txt for details.
3
- v0.28.1 */
4
- var o;(function(r){r.accordion="accordion",r.accordionItem="accordionItem",r.block="block",r.stepper="stepper",r.step="step",r.subblock="subblock",r.card="card"})(o||(o={}));export{o as a};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.28/esri/copyright.txt for details.
3
- v0.28.1 */
4
- import{a as W}from"./ZMIZUUVX.js";import{a as f}from"./PZTGSADX.js";import{a as k,b as I,c as M,d as R}from"./NKDBP4RM.js";import{a as b}from"./TTSRMZIU.js";import{a as x,b as H}from"./MU5CH4QR.js";import{a as P}from"./JMMLZI7V.js";import"./EP5KOT4K.js";import"./5KMDQQ5Z.js";import"./YMRCCSPB.js";import"./2K7VQMVN.js";import"./BEBC4N2F.js";import"./TFXKHVLP.js";import"./XD4PXFM2.js";import"./LBNZ5OMC.js";import"./Q5YIBNMQ.js";import"./LL3JYMZF.js";import"./6G7ZTZ4V.js";import"./SOYHTVAM.js";import"./G3IHI7XA.js";import"./VLPSDBJJ.js";import"./UFH4AVOH.js";import"./Y7KKVZGE.js";import"./GZCF5D2L.js";import"./NNED42SV.js";import{a as y}from"./UDPUWNLM.js";import"./QNOQLM4M.js";import"./73BONLJX.js";import"./V753VGV2.js";import"./RRI4HBN7.js";import"./J24DMG56.js";import"./AQ7FK6WD.js";import"./JT4FFVJS.js";import"./TDA4GOL6.js";import"./KWWAN7EF.js";import"./DX4ZXYHD.js";import"./57SV5GKA.js";import"./WFPRJUDN.js";import"./MPLFOMCQ.js";import"./JXXXJT2L.js";import"./ZHVZ3ESS.js";import"./JHLQ37ED.js";import"./QPX244L3.js";import"./ROSEMWTX.js";import"./4OEA7GNI.js";import"./CJR6M7EB.js";import"./DHTX3SJW.js";import"./3SEATSJ6.js";import"./2WYJ3RGY.js";import"./7L7TGBXG.js";import"./WRSNARWE.js";import"./UX2O7D6J.js";import"./22F2LZ4V.js";import"./RYH3F3PU.js";import"./52I5IHYQ.js";import"./MJTLLHHU.js";import"./Q4UEC2RG.js";import"./R2DJXORV.js";import"./OQBWZQZN.js";import"./7XIVSMIE.js";import"./WVWS4YXG.js";import"./TEZM6G6M.js";import"./JDFG66XY.js";import"./VMLKFU2E.js";import"./FOY6AYXZ.js";import"./2KRK5XT3.js";import"./TDY4RECC.js";import"./TCAG2JRW.js";import"./5VRJIFAQ.js";import"./JW3MFZF6.js";import"./Z5UTJDL2.js";import"./T3QX3L5G.js";import"./ZXF5BE4U.js";import"./X2G5HLD3.js";import"./6BRASDRC.js";import"./HE5EIFZA.js";import"./FQ7B56K7.js";import"./I3KNMJ7E.js";import"./WKLIAJGA.js";import"./SAIGWGP6.js";import"./KWMU4OV6.js";import"./JGORLXNM.js";import{c as U,g as _}from"./Y46HADID.js";import"./OXEZPQAH.js";import"./SOT4INP5.js";import"./NJNMWO3E.js";import"./HVTH5MJW.js";import"./2NIRKU4D.js";import"./MYYS2L7H.js";import{a as g}from"./I35FDGLO.js";import{o as A}from"./ORNXYXCN.js";import{a as V}from"./V4Y2HR2F.js";import"./7G4FLTFI.js";import"./62NJONSX.js";import{a as S}from"./TWMLLOZX.js";import{a as O}from"./NZESIQ44.js";import{c as L}from"./L6KVQP4K.js";import"./33S2W3CI.js";import{a as o}from"./MOGVJEV7.js";import"./NHQJW77E.js";import{a as z,b as a,c as F,d as N,e as v,h as w,i as $}from"./JHTAMMGS.js";import{a as m}from"./OW7QCVNP.js";import{a as T,s as p}from"./72D2N5UB.js";import{a as s}from"./LR53H5V4.js";import"./CF2YAFBC.js";import"./RS6JYRG4.js";export default $arcgis.t(([])=>{function Y(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches===!0}var G=async(t,i)=>{var e,r,l,n,d,h;let E=t.summary||t.description||s(t,"view.embeds[0]")||s(t,"view.featuredImageUrl"),D=i?.isAuthenticated?`?token=${i.session.token}`:"",K=`${s(t,"view.featuredImageUrl")}${D}`,C=V(t,"view.metricDisplays",[]),B=C.filter(c=>c.visibility===y.featured),q=C.filter(c=>c.visibility!==y.hidden),u=s(t,"typeKeywords").filter(c=>c.startsWith("ref|initiative"));return{schemaVersion:2,history:[],sections:[{id:"hero-section",tag:"arcgis-layout-section",readOnly:!0,properties:{},children:[{id:"hero-row",tag:"arcgis-layout-row",readOnly:!0,properties:{},children:[{id:"hero-col",tag:"arcgis-layout-column",readOnly:!0,properties:{},children:[{id:"hero",tag:"arcgis-hub-entity-hero",properties:{entity:"{{entity}}"}}]}]}]},{id:"main-section",tag:"arcgis-layout-section",readOnly:!0,properties:{},children:[{id:"main-row",tag:"arcgis-layout-row",readOnly:!0,properties:{},children:[{id:"main-col",tag:"arcgis-layout-column",readOnly:!0,properties:{},children:[{id:"tab-nav",tag:"arcgis-nav-card",properties:{sections:[{label:"{{tabs.overview:translate}}",visibility:{kind:"static",isHidden:!1},id:"overview-tab",tag:"arcgis-layout-section",properties:{},children:[{id:"overview-row",tag:"arcgis-layout-row",properties:{},children:[{id:"overview-main-col",tag:"arcgis-layout-column",columnProps:{width:{xs:12,md:8}},properties:{},children:[E&&{id:"about-header",tag:"arcgis-text-card",properties:{html:E?"<h2>{{about:translate}}</h2>":""}},{id:"about-summary",tag:"arcgis-text-card",readOnly:!0,properties:{html:"<p>{{entity.summary:optional:2}}</p>"}},s(t,"view.embeds[0]")&&{id:"about-embed",tag:"arcgis-hub-embed-card",properties:{embed:s(t,"view.embeds[0]")}},{id:"about-description",tag:"arcgis-text-card",readOnly:!0,properties:{html:"<p>{{entity.description:optional:2}}</p>"}},s(t,"view.featuredImageUrl")&&{id:"about-featured-image",tag:"arcgis-hub-image",properties:{src:K,alt:s(t,"view.featuredImageAltText")||""}},B.length>0&&{id:"metrics-header",tag:"arcgis-text-card",properties:{html:"<h2>{{metrics:translate}}</h2>"}},{id:"featured-metrics-grid",tag:"arcgis-hub-entity-metrics-card",properties:{entity:"{{entity}}"}},((r=(e=t.view)===null||e===void 0?void 0:e.featuredContentIds)===null||r===void 0?void 0:r.length)>0&&{id:"featured-content-header",tag:"arcgis-text-card",properties:{html:"<h2>{{featuredContent:translate}}</h2>"}},((n=(l=t.view)===null||l===void 0?void 0:l.featuredContentIds)===null||n===void 0?void 0:n.length)>0&&{id:"featured-content-gallery",tag:"arcgis-hub-gallery-card",properties:{showEmptyState:!0,cardConfig:{cardId:"cedhzwzpx",schemaVersion:8,targetEntity:"item",source:"all",shouldLimitResults:!0,limit:4,appearance:{layout:"grid",layouts:[]},query:{targetEntity:"item",filters:[{predicates:[{id:!((h=(d=t.view)===null||d===void 0?void 0:d.featuredContentIds)===null||h===void 0)&&h.length?t.view.featuredContentIds:["not-an-id"]}]}]}}}}].filter(Boolean)},{id:"overview-sidebar-col",tag:"arcgis-layout-column",columnProps:{width:{xs:12,md:4}},properties:{},children:[{id:"status-header",tag:"arcgis-text-card",properties:{html:"<h2>{{status.project:translate}}</h2>"}},{id:"status-chip",tag:"arcgis-hub-entity-status-card",properties:{entity:"{{entity}}"}},{id:"status-timeline",tag:"arcgis-hub-timeline",properties:{canCollapse:"{{entity.view.timeline.canCollapse:optional}}",stages:"{{entity.view.timeline.stages:optional}}"}},{id:"details-header",tag:"arcgis-text-card",properties:{html:"<h2>{{details:translate}}</h2>"}},{id:"details-metadata",tag:"arcgis-hub-entity-metadata",properties:{entity:"{{entity}}"}},u.length>0&&{id:"associated-initiatives-header",tag:"arcgis-text-card",properties:{html:"<h2>{{associatedInitiatives:translate}}</h2>"}},u.length>0&&{id:"associated-initiatives-gallery",tag:"arcgis-hub-entity-associations-card",properties:{entity:"{{entity}}",associationType:"initiative"}}].filter(Boolean)}]}]},b("item",t.catalog)&&{label:"{{tabs.content:translate}}",visibility:{kind:"static",isHidden:!1},id:"content-tab",tag:"arcgis-layout-section",properties:{},children:[{id:"content-row",tag:"arcgis-layout-row",properties:{},children:[{id:"content-col",tag:"arcgis-layout-column",properties:{},children:[{id:"content-catalog",tag:"arcgis-hub-catalog",properties:{catalogs:["{{entity.catalog}}"],facets:x,layout:"grid",layoutOptions:["grid","list","table","map","compact"],showAddContent:!0,showLayoutSwitcher:!0,showSearch:!0,showThumbnail:!0,path:"",linkTarget:"siteRelative",targetEntity:"item",showAllCollectionFacet:!0}}]}]}]},b("event",t.catalog)&&{label:"{{tabs.events:translate}}",visibility:{kind:"static",isHidden:!1},id:"events-tab",tag:"arcgis-layout-section",properties:{},children:[{id:"events-row",tag:"arcgis-layout-row",properties:{},children:[{id:"events-col",tag:"arcgis-layout-column",properties:{},children:[{id:"events-catalog",tag:"arcgis-hub-catalog",properties:{catalogs:["{{entity.catalog}}"],facets:H,layout:"grid",layoutOptions:["grid","list","table","map","compact"],showAddContent:!0,showLayoutSwitcher:!0,showSearch:!0,showThumbnail:!0,path:"",linkTarget:"siteRelative",targetEntity:"event",showAllCollectionFacet:!0}}]}]}]},q.length>0&&{label:"{{tabs.metrics:translate}}",visibility:{kind:"static",isHidden:!1},id:"metrics-tab",tag:"arcgis-layout-section",properties:{},children:[{id:"metrics-tab-row",tag:"arcgis-layout-row",properties:{},children:[{id:"metrics-tab-col",tag:"arcgis-layout-column",properties:{},children:[{id:"metrics-gallery",tag:"arcgis-hub-entity-metrics-view",properties:{entity:"{{entity}}"}}]}]}]},u.length>0&&{label:"{{tabs.initiatives:translate}}",visibility:{kind:"static",isHidden:!1},id:"initiatives-tab",tag:"arcgis-layout-section",properties:{},children:[{id:"initiatives-row",tag:"arcgis-layout-row",properties:{},children:[{id:"initiatives-col",tag:"arcgis-layout-column",properties:{},children:[{id:"initiatives-gallery",tag:"arcgis-hub-project-initiatives-view",properties:{entity:"{{entity}}"}}]}]}]}].filter(Boolean)}}]}]}]}]}},Q=async(t,i)=>{let e;if(t){switch(g(t)){case"project":e=await G(t,i);break}return e}},J=`.sc-arcgis-hub-entity-view-h{display:block}arcgis-hub-entity-capabilities.sc-arcgis-hub-entity-view{margin-top:1rem}h2.sc-arcgis-hub-entity-view{font-size:var(--calcite-font-size-2);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}arcgis-hub-initiative-hero.sc-arcgis-hub-entity-view:has(~calcite-tabs.sc-arcgis-hub-entity-view calcite-tab-nav.sc-arcgis-hub-entity-view calcite-tab-title[selected].sc-arcgis-hub-entity-view:not([name='about'])){display:block;height:0px}[slot="header"].sc-arcgis-hub-entity-view{font-size:var(--calcite-font-size-4);line-height:2.5rem;font-weight:var(--calcite-font-weight-medium)}@media only screen and (max-width: 768px){arcgis-hub-event-about.sc-arcgis-hub-entity-view{flex-direction:column;gap:0}}`,X=J,Z=class{get _context(){return U()}async init(){if(this.entity)try{let t=s(this.entity,"layout");t||(t=await Q(this.entity,this._context)),this._layout=t;let i=await M(this.entity,this._context,{path:this.path});this._typeSpecificViews=await Promise.all(i.map(async e=>{try{let r=await R(this.entity,e.name,this._context);return Object.assign(Object.assign({},e),{contentCount:r})}catch(r){console.error(`Error fetching content count for view: ${e.name}`,r)}}))}catch(t){console.error("Error initializing type-specific views:",t)}}get entityType(){return g(this.entity)}constructor(t){$(this,t),this.hubTelemetry=v(this,"hubTelemetry",7),this.arcgisHubEntityViewLayoutPublished=v(this,"arcgisHubEntityViewLayoutPublished",7),this.handleLayoutPublished=async i=>{try{let e=i.detail,r=T(this.entity);r.layout=e,this._layout=e,this._isPublishing=!0,await P(this.entityType,r,this._context),_({title:this.intl.t("publishSuccess"),message:"",configuration:{noticeType:"alert",autoClose:!0,autoCloseDuration:"fast",icon:!0,kind:"success",label:this.intl.t("formAlert")}}),this.hubTelemetry.emit(Object.assign(Object.assign({},o.dictionary.category.content.action.update.label.layout.details.publish),{response:o.constants.response.SUCCESS})),m.info(`Successfully published layout for ${this.entityType} ${this.entity.id} >>>`,this._layout),this.arcgisHubEntityViewLayoutPublished.emit()}catch(e){_({title:this.intl.t("publishError"),message:"",configuration:{noticeType:"alert",autoClose:!1,icon:!0,kind:"danger",label:this.intl.t("formAlert")}}),this.hubTelemetry.emit(Object.assign(Object.assign({},o.dictionary.category.content.action.update.label.layout.details.publish),{response:o.constants.response.FAILURE})),m.error(`Error publishing layout for ${this.entityType} ${this.entity.id} >>>`,e)}finally{this._isPublishing=!1}},this.view=W.Overview,this.entity=void 0,this.path="",this.isMobile=void 0,this.isEditMode=void 0,this.mode="default",this._hasAboutSlot=!1,this._typeSpecificViews=[],this._isPublishing=!1,S(this,"handleTabChange","handleResize")}connectedCallback(){f.addHandler(this.element,this.handleResize)}disconnectedCallback(){f.unobserve(this.element)}async handleResize(){this.isMobile=this.element.clientWidth<560}async componentWillLoad(){this._hasAboutSlot=!!this.element.querySelector('[slot="about"]'),this.intl=await O.loadIntlForComponent(this.element),this._localeStrings=(await L(this.element,z("locales"),"{tagName}.i18n.{locale}.json")).strings,this.init()}get aboutComponent(){let t=k.find(i=>i.entities.includes(this.entityType));return t?t.component:"arcgis-hub-entity-about"}get views(){let t=[{name:"about",i18nLabel:"tabs.overview",component:this.aboutComponent,props:{path:this.path}}];return t=[...t,...this._typeSpecificViews],t}get hasViews(){return!!this.views.length}get heroComponent(){let t=I.find(i=>i.entities.includes(this.entityType));return t?t.component:"arcgis-hub-entity-hero"}handleTabChange(t){var i;t.stopPropagation();let e=((i=t.detail)===null||i===void 0?void 0:i.target)||t.target,r=e.tab||e.getAttribute("data-tab"),l=!!e.getAttribute("data-scroll");this.view=r,l&&this.element.scrollIntoView({behavior:Y()?"auto":"smooth"});let n=r==="about"?"overview":r;this.hubTelemetry.emit(Object.assign({label:p(n)},o.dictionary.category.navigation.action.onPage.label[n]||o.dictionary.category.navigation.action.onPage))}renderViewName(t){let i=t.contentCount!==void 0?`${t.i18nLabel}WithCount`:t.i18nLabel;return this.intl.t(i,{count:t.contentCount})}renderViews(){if(this.hasViews)return a("calcite-tabs",{scale:"l"},a("calcite-tab-nav",{slot:"title-group"},this.views.map((t,i)=>a("calcite-tab-title",{key:i,name:t.name,onCalciteTabsActivate:this.handleTabChange,selected:this.view===t.name,tab:t.name},this.renderViewName(t)))),this.views.map((t,i)=>{var e;let r=t.component;return a("calcite-tab",{key:i,name:t.name,tab:t.name},a(r,Object.assign({entity:this.entity,isMobile:this.isMobile,path:(e=t.props)===null||e===void 0?void 0:e.path},t.props)))}))}renderHero(){let t=this.heroComponent,i={showEdit:!1};return this.mode==="inline"&&(i.showEdit=!0),a(t,Object.assign({entity:this.entity},i))}renderLayout(){return a(w,null,a("calcite-alert",{icon:"information",kind:"info",open:!0,width:"full"},a("div",{slot:"title"},p(this.entityType)," view rendered as layout"),a("div",{slot:"message"},"We are rendering ",this.entityType," views on dev/QA alpha orgs using the new layout system. This system is still in active development, so you may notice some inconsistencies/issues. To render the default view, attach ?pd=hub:feature:configurableViews to your URL. We are showing this notice to prevent unnecessary logging of bugs. Rest assured, we will host a holistic testing event before any functionality is released to customers.")),a("arcgis-layout-container",{isEditMode:this.isEditMode,isPublishing:this._isPublishing,layout:this._layout,onArcgisHubLayoutPublished:this.handleLayoutPublished,options:{entity:this.entity,translations:this._localeStrings}}))}render(){return this.entity&&a(F,{key:"2b647ad3f9f1488157bf51cc98323d2b0996bcb5","data-element":`entity-view-${this.view}`},this._layout&&A("hub:feature:configurableViews",this._context,this.entity).access?this.renderLayout():a(w,null,a("slot",{name:"breadcrumbs"}),this.renderHero(),a("slot",{name:"header"}),a("slot",{name:"about",slot:this._hasAboutSlot?"about":""}),this.renderViews(),a("slot",{name:"footer"})))}static get assetsDirs(){return["locales"]}get element(){return N(this)}static get watchers(){return{entity:["init"]}}};Z.style=X;return Z},"config")
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.28/esri/copyright.txt for details.
3
- v0.28.1 */
4
- import"./RS6JYRG4.js";var a="\u30C1\u30E3\u30FC\u30C8\u306E\u8AAD\u307F\u8FBC\u307F\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",e="\u5BFE\u6570\u5909\u63DB\u306F\u8CA0\u307E\u305F\u306F\u30BC\u30ED\u306E\u5024\u306B\u9069\u7528\u3067\u304D\u307E\u305B\u3093\u3002",t="\u5E73\u65B9\u6839\u5909\u63DB\u306F\u8CA0\u306E\u5024\u306B\u9069\u7528\u3067\u304D\u307E\u305B\u3093\u3002",r="\u30EC\u30A4\u30E4\u30FC\u306E\u8AAD\u307F\u8FBC\u307F\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002 URL = ${ url } \u30DD\u30FC\u30BF\u30EB \u30A2\u30A4\u30C6\u30E0 ID = ${ portalItemId }",i="\u69CB\u6210\u306B\u5B9A\u7FA9\u3055\u308C\u305F\u30D5\u30A3\u30FC\u30EB\u30C9 [${ fieldNames }] \u304C\u30EC\u30A4\u30E4\u30FC\u5185\u306B\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002",s="${ dataPath } \u306F\u4E00\u610F\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002 ${ seriesName } \u3068\u3044\u3046\u7CFB\u5217\u306E ID (${ seriesID }) \u306F\u3001\u5225\u306E\u7CFB\u5217\u3067\u3059\u3067\u306B\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059\u3002",n="${ dataPath } \u306F\u3001\u6570\u5024\u4EE5\u5916\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3067\u3001\u500B\u6570\u4EE5\u5916\u306E\u96C6\u7D04\u3092\u5B9F\u884C\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002",o="${ dataPath } \u306B ${ missingProperty } \u3068\u3044\u3046\u30D7\u30ED\u30D1\u30C6\u30A3\u304C\u3042\u308A\u307E\u305B\u3093\u3002",d="${ dataPath } \u306F ${ limit } \u6587\u5B57\u4EE5\u4E0A\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",l="${ dataPath } \u306E\u30A2\u30A4\u30C6\u30E0\u306F ${ limit } \u4EE5\u4E0A\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",u="${ dataPath } \u306E\u30A2\u30A4\u30C6\u30E0\u306F ${ limit } \u4EE5\u4E0B\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",m="${ dataPath } \u306B\u306F\u7A7A\u767D\u4EE5\u5916\u306E\u6587\u5B57\u304C 1 \u3064\u4EE5\u4E0A\u542B\u307E\u308C\u3066\u3044\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",$="${ dataPath } \u304C ${ additionalProperty } \u3092\u6301\u3064\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002",p="${ dataPath } \u306F\u3001\u6B21\u306E\u3044\u305A\u308C\u304B\u306E\u8A31\u53EF\u3055\u308C\u305F\u5024\u3068\u7B49\u3057\u3044\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059: ${ allowedValues }",y="${ dataPath } \u306F\u3001\u6B21\u306E\u3044\u305A\u308C\u304B\u306E\u30B9\u30AD\u30FC\u30DE\u3068\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059: ${ schemaOptions }",g="\u6BD4\u4F8B\u30B7\u30F3\u30DC\u30EB\u3092\u4F7F\u7528\u3057\u305F\u6563\u5E03\u56F3\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002 \u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30B7\u30F3\u30DC\u30EB \u30B5\u30A4\u30BA\u304C\u9069\u7528\u3055\u308C\u3066\u3044\u307E\u3059\u3002",P="\u5165\u529B\u30C7\u30FC\u30BF\u3092\u8AAD\u307F\u53D6\u308C\u307E\u305B\u3093\u3002",h="queryBins \u64CD\u4F5C\u306F\u3001\u3053\u306E\u30B5\u30FC\u30D3\u30B9\u3067\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093",I="\u30A4\u30F3\u30C7\u30C3\u30AF\u30B9 ${ seriesIndex } \u3067\u5FC5\u8981\u306A\u7CFB\u5217\u30BF\u30A4\u30D7\u306F ${ expectedType } \u3067\u3059\u304C\u3001\u4EE3\u308F\u308A\u306B ${ receivedType } \u304C\u6307\u5B9A\u3055\u308C\u307E\u3057\u305F",c="\u307E\u305F\u306F",f={defaultError:a,negativeValueInDataForLogTransformation:e,negativeValueInDataForSqrtTransformation:t,layerLoadFailure:r,layerFieldsNotFound:i,duplicateSeriesID:s,nonNumericAggregation:n,requiredProperty:o,minLength:d,minItems:l,maxItems:u,whiteSpacePattern:m,additionalProperty:$,enumValues:p,anyOfValues:y,bubbleChartValidateMsg:g,queryError:P,queryBinsNotSupported:h,invalidSeriesType:I,or:"\u307E\u305F\u306F"};export{$ as additionalProperty,y as anyOfValues,g as bubbleChartValidateMsg,f as default,a as defaultError,s as duplicateSeriesID,p as enumValues,I as invalidSeriesType,i as layerFieldsNotFound,r as layerLoadFailure,u as maxItems,l as minItems,d as minLength,e as negativeValueInDataForLogTransformation,t as negativeValueInDataForSqrtTransformation,n as nonNumericAggregation,c as or,h as queryBinsNotSupported,P as queryError,o as requiredProperty,m as whiteSpacePattern};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.28/esri/copyright.txt for details.
3
- v0.28.1 */
4
- function u(e){let t=new Date().getTime();return Array(e).fill(0).reduce(function(r){let n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),r=`${r}${n.toString(16)}`,r},"")}export{u as a};
@@ -1,16 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.28/esri/copyright.txt for details.
3
- v0.28.1 */
4
- import{a as yt}from"./TUN4FQYM.js";import{a as Te,b as Le,c as je,d as He,e as Fe}from"./XKDOKZML.js";import{a as mt}from"./OWLRYOYY.js";import{a as gt,c as bt}from"./H57SXED2.js";import{a as ne}from"./QYX4H4HH.js";import{a as pe}from"./VCNB7EAS.js";import{a as Se}from"./PZTGSADX.js";import{a as Ee}from"./7JU6VAUP.js";import{a as ue}from"./AD3RFO4I.js";import b from"./K75CDKNQ.js";import"./BDDU4PJK.js";import{a as ie,b as ke}from"./CKD6VZLT.js";import{a as de,b as H}from"./2CP5C62E.js";import a from"./UJOUG44M.js";import"./DPBOXKHH.js";import"./7QPCKF4G.js";import{a as K}from"./3BMEZ4DS.js";import{a as Me}from"./KMVPMUK7.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"./L7RWMHIN.js";import{a as it,b as nt}from"./BQLMO4NQ.js";import{a as Ie}from"./FH44CVHB.js";import{a as ot}from"./64JFRNX4.js";import{b as Ue}from"./4L5RD72B.js";import{a as at}from"./UZETVGBM.js";import"./BEBC4N2F.js";import"./TFXKHVLP.js";import"./XD4PXFM2.js";import"./LBNZ5OMC.js";import"./Q5YIBNMQ.js";import"./LL3JYMZF.js";import"./5PU5FIZF.js";import{m as Ye,n as Qe}from"./XLHP7WJ3.js";import"./HCRPOAIB.js";import"./OSV6SQ4T.js";import"./QNOQLM4M.js";import"./73BONLJX.js";import"./V753VGV2.js";import"./RRI4HBN7.js";import"./J24DMG56.js";import"./AQ7FK6WD.js";import"./JT4FFVJS.js";import"./TDA4GOL6.js";import"./2K3XEXH6.js";import"./KWWAN7EF.js";import"./M2AHMZT5.js";import"./RH4YN4CC.js";import"./XMWMCNWD.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"./DX4ZXYHD.js";import"./57SV5GKA.js";import"./WFPRJUDN.js";import"./MPLFOMCQ.js";import"./JXXXJT2L.js";import"./ZHVZ3ESS.js";import"./JHLQ37ED.js";import"./QPX244L3.js";import"./ROSEMWTX.js";import"./4OEA7GNI.js";import"./CJR6M7EB.js";import"./DHTX3SJW.js";import"./3SEATSJ6.js";import"./2WYJ3RGY.js";import"./7L7TGBXG.js";import{f as fe,k as x,l as Be,m as ve,n as Ge}from"./WRSNARWE.js";import"./UX2O7D6J.js";import"./22F2LZ4V.js";import"./RYH3F3PU.js";import"./52I5IHYQ.js";import"./MJTLLHHU.js";import"./Q4UEC2RG.js";import"./R2DJXORV.js";import"./OQBWZQZN.js";import"./7XIVSMIE.js";import"./WVWS4YXG.js";import"./TEZM6G6M.js";import"./JDFG66XY.js";import"./VMLKFU2E.js";import"./FOY6AYXZ.js";import{h as ye}from"./2KRK5XT3.js";import"./TDY4RECC.js";import"./TCAG2JRW.js";import"./5VRJIFAQ.js";import"./JW3MFZF6.js";import"./Z5UTJDL2.js";import"./T3QX3L5G.js";import"./ZXF5BE4U.js";import"./X2G5HLD3.js";import"./6BRASDRC.js";import"./HE5EIFZA.js";import"./FQ7B56K7.js";import"./I3KNMJ7E.js";import"./WKLIAJGA.js";import"./SAIGWGP6.js";import"./KWMU4OV6.js";import"./JGORLXNM.js";import{c as Q,g as Ne,j as oe}from"./Y46HADID.js";import"./OXEZPQAH.js";import"./SOT4INP5.js";import"./NJNMWO3E.js";import"./HVTH5MJW.js";import"./2NIRKU4D.js";import"./MYYS2L7H.js";import"./I35FDGLO.js";import{o as Ve}from"./ORNXYXCN.js";import"./V4Y2HR2F.js";import"./7G4FLTFI.js";import"./62NJONSX.js";import{a as $}from"./TWMLLOZX.js";import{a as j}from"./NZESIQ44.js";import"./L6KVQP4K.js";import"./33S2W3CI.js";import{a as g}from"./MOGVJEV7.js";import"./NHQJW77E.js";import{b as r,c as q,d as F,e as v,h as E,i as N}from"./JHTAMMGS.js";import{a as X}from"./OW7QCVNP.js";import{a as G}from"./72D2N5UB.js";import"./LR53H5V4.js";import"./CF2YAFBC.js";import"./RS6JYRG4.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)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.28/esri/copyright.txt for details.
3
- v0.28.1 */
4
- import{a}from"./TWMLLOZX.js";import{b as n,e as t,i as o}from"./JHTAMMGS.js";import"./RS6JYRG4.js";var l=class{constructor(e){o(this,e),this.arcgisConfigurationEditorFieldInputChange=t(this,"arcgisConfigurationEditorFieldInputChange",7),this.params=void 0,a(this,"handleCalciteInputTimeZonePickerChange")}handleCalciteInputTimeZonePickerChange(e){let i=e.target;this.arcgisConfigurationEditorFieldInputChange.emit(i.value)}render(){var e,i;return n("calcite-input-time-zone",{key:"ee8f167864e8f8f65b6257529a9f6b603ae0dffc",disabled:this.params.disabled,mode:"name",onCalciteInputTimeZoneChange:this.handleCalciteInputTimeZonePickerChange,overlayPositioning:(i=(e=this.params.uiSchema)===null||e===void 0?void 0:e.options)===null||i===void 0?void 0:i.overlayPositioning,scale:this.params.scale,value:this.params.value})}};export{l as hub_field_input_time_zone};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.28/esri/copyright.txt for details.
3
- v0.28.1 */
4
- var n;(function(e){e.none="none",e.low="low",e.medium="medium",e.heavy="heavy"})(n||(n={}));export{n as a};