@esri/hub-web-components 0.13.1 → 0.13.3

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 (1366) hide show
  1. package/dist/cdn/24G4XH5J.js +4 -0
  2. package/dist/cdn/24KUWKRS.js +4 -0
  3. package/dist/cdn/25SD4FWX.js +4 -0
  4. package/dist/cdn/26227ZT6.js +4 -0
  5. package/dist/cdn/26BNCPIY.js +4 -0
  6. package/dist/cdn/2ALINWQ5.js +4 -0
  7. package/dist/cdn/2B6FPJR2.js +4 -0
  8. package/dist/cdn/2CUWTKZV.js +4 -0
  9. package/dist/cdn/2DDNMK7M.js +4 -0
  10. package/dist/cdn/2E6YMBSF.js +4 -0
  11. package/dist/cdn/2JR5IQME.js +4 -0
  12. package/dist/cdn/2NSNPPCK.js +4 -0
  13. package/dist/cdn/2RDJV5CP.js +4 -0
  14. package/dist/cdn/2YADUXG2.js +4 -0
  15. package/dist/cdn/2YIYVETT.js +5 -0
  16. package/dist/cdn/3262OZOT.js +4 -0
  17. package/dist/cdn/32HWGBR7.js +4 -0
  18. package/dist/cdn/32T7OORF.js +4 -0
  19. package/dist/cdn/34LL3V6F.js +4 -0
  20. package/dist/cdn/354WPABO.js +4 -0
  21. package/dist/cdn/36MV7FWH.js +4 -0
  22. package/dist/cdn/36ONWP24.js +4 -0
  23. package/dist/cdn/37PYSDFG.js +4 -0
  24. package/dist/cdn/3AXUXT5L.js +4 -0
  25. package/dist/cdn/3D4PAWFW.js +4 -0
  26. package/dist/cdn/3DGHCYTD.js +4 -0
  27. package/dist/cdn/3EKNSBIV.js +4 -0
  28. package/dist/cdn/3ETVM23W.js +4 -0
  29. package/dist/cdn/3EVBLDR5.js +4 -0
  30. package/dist/cdn/3GTXRXEQ.js +4 -0
  31. package/dist/cdn/3IO2FRGC.js +4 -0
  32. package/dist/cdn/3IR5AAZZ.js +4 -0
  33. package/dist/cdn/3LCZF2ZI.js +4 -0
  34. package/dist/cdn/3LO44IKS.js +4 -0
  35. package/dist/cdn/3MTKI7GR.js +4 -0
  36. package/dist/cdn/3NMWNAHY.js +4 -0
  37. package/dist/cdn/3O6FJWAH.js +4 -0
  38. package/dist/cdn/3P6QC2ML.js +4 -0
  39. package/dist/cdn/3SMHLQOR.js +4 -0
  40. package/dist/cdn/3U5VKWQZ.js +4 -0
  41. package/dist/cdn/3UE3CPEU.js +4 -0
  42. package/dist/cdn/3X6ECXKT.js +4 -0
  43. package/dist/cdn/3XZUFDCY.js +52 -0
  44. package/dist/cdn/3YERJM74.js +4 -0
  45. package/dist/cdn/435CSABQ.js +4 -0
  46. package/dist/cdn/43HAXTQL.js +4 -0
  47. package/dist/cdn/44H57GXD.js +4 -0
  48. package/dist/cdn/45YLMPHK.js +4 -0
  49. package/dist/cdn/464J474K.js +4 -0
  50. package/dist/cdn/4AESIPAM.js +4 -0
  51. package/dist/cdn/4BRH3X3E.js +4 -0
  52. package/dist/cdn/4ETYE6FB.js +4 -0
  53. package/dist/cdn/4FCQXRV3.js +4 -0
  54. package/dist/cdn/4FXBZV3Q.js +4 -0
  55. package/dist/cdn/4G6BC36L.js +4 -0
  56. package/dist/cdn/4IBQLKLZ.js +4 -0
  57. package/dist/cdn/4IF3DRVE.js +4 -0
  58. package/dist/cdn/4JNYNBRE.js +4 -0
  59. package/dist/cdn/4KZOKY6N.js +4 -0
  60. package/dist/cdn/4M4SX5LC.js +4 -0
  61. package/dist/cdn/4MB2W7L5.js +4 -0
  62. package/dist/cdn/4PGIHI2A.js +4 -0
  63. package/dist/cdn/4QR677GB.js +4 -0
  64. package/dist/cdn/4SBMKAMT.js +4 -0
  65. package/dist/cdn/4SJGRLVX.js +4 -0
  66. package/dist/cdn/4SRDS3SV.js +4 -0
  67. package/dist/cdn/4SX2U3S7.js +4 -0
  68. package/dist/cdn/4TE4JY7H.js +4 -0
  69. package/dist/cdn/4VHKW3AG.js +4 -0
  70. package/dist/cdn/4XEPRWYH.js +4 -0
  71. package/dist/cdn/4XJDB6AZ.js +4 -0
  72. package/dist/cdn/526CG4XA.js +4 -0
  73. package/dist/cdn/5337VOHY.js +4 -0
  74. package/dist/cdn/56CFLOXH.js +4 -0
  75. package/dist/cdn/56KLPRTX.js +4 -0
  76. package/dist/cdn/57SVSE3O.js +4 -0
  77. package/dist/cdn/5BQ652HZ.js +4 -0
  78. package/dist/cdn/5CSKLCB3.js +4 -0
  79. package/dist/cdn/5DTODYBT.js +4 -0
  80. package/dist/cdn/5FRUOOE4.js +4 -0
  81. package/dist/cdn/5ISEA6AF.js +4 -0
  82. package/dist/cdn/5K4R65H7.js +4 -0
  83. package/dist/cdn/5KHEFGCU.js +4 -0
  84. package/dist/cdn/5LWQVV4S.js +4 -0
  85. package/dist/cdn/5NDEC4VN.js +4 -0
  86. package/dist/cdn/5PKCKMBP.js +4 -0
  87. package/dist/cdn/5QPU2YA2.js +4 -0
  88. package/dist/cdn/5RH3GJ5B.js +4 -0
  89. package/dist/cdn/5SRNNDCV.js +4 -0
  90. package/dist/cdn/5UDQU4N4.js +5 -0
  91. package/dist/cdn/65NLWNZG.js +4 -0
  92. package/dist/cdn/67EDJSSG.js +4 -0
  93. package/dist/cdn/6DPT7ZVM.js +4 -0
  94. package/dist/cdn/6GK4QB4Y.js +4 -0
  95. package/dist/cdn/6GMCCJNB.js +4 -0
  96. package/dist/cdn/6HIV7JUA.js +4 -0
  97. package/dist/cdn/6L3MUTNK.js +4 -0
  98. package/dist/cdn/6MA46C5C.js +4 -0
  99. package/dist/cdn/6MYRQMIB.js +4 -0
  100. package/dist/cdn/6QUEDJLT.js +4 -0
  101. package/dist/cdn/6SKABQHR.js +4 -0
  102. package/dist/cdn/6SXB35TZ.js +4 -0
  103. package/dist/cdn/6TTTPO3P.js +4 -0
  104. package/dist/cdn/6UDEQN3M.js +4 -0
  105. package/dist/cdn/6UUMPSX5.js +4 -0
  106. package/dist/cdn/6WFR37RK.js +4 -0
  107. package/dist/cdn/73KFW7TS.js +4 -0
  108. package/dist/cdn/74TPGBJC.js +4 -0
  109. package/dist/cdn/76RHJPRU.js +4 -0
  110. package/dist/cdn/774D75DO.js +4 -0
  111. package/dist/cdn/7A4OTEFG.js +4 -0
  112. package/dist/cdn/7CVWNRGE.js +4 -0
  113. package/dist/cdn/7CWW62AN.js +4 -0
  114. package/dist/cdn/7GPVAYE6.js +4 -0
  115. package/dist/cdn/7GUEYXG5.js +4 -0
  116. package/dist/cdn/7GXE4SOS.js +4 -0
  117. package/dist/cdn/7ILWTOOJ.js +4 -0
  118. package/dist/cdn/7KZ4QT3P.js +4 -0
  119. package/dist/cdn/7LLP6LYM.js +4 -0
  120. package/dist/cdn/7MOO5IYD.js +4 -0
  121. package/dist/cdn/7MTVGDQW.js +4 -0
  122. package/dist/cdn/7NDMBIS3.js +4 -0
  123. package/dist/cdn/7R4PAW7I.js +4 -0
  124. package/dist/cdn/7RWE3NSU.js +4 -0
  125. package/dist/cdn/7RYI5VYC.js +4 -0
  126. package/dist/cdn/7VV6LMW5.js +4 -0
  127. package/dist/cdn/7WYJEKP2.js +4 -0
  128. package/dist/cdn/7YFD6RXE.js +4 -0
  129. package/dist/cdn/A2WC3CPF.js +4 -0
  130. package/dist/cdn/A2YY3TP2.js +4 -0
  131. package/dist/cdn/A37KG53F.js +4 -0
  132. package/dist/cdn/A3XB4JGH.js +4 -0
  133. package/dist/cdn/A4F7XNDI.js +4 -0
  134. package/dist/cdn/A6WLMA2E.js +4 -0
  135. package/dist/cdn/ABNHU7BA.js +4 -0
  136. package/dist/cdn/ACOC4Y57.js +4 -0
  137. package/dist/cdn/AEBXE4IY.js +4 -0
  138. package/dist/cdn/AEOG2LPX.js +4 -0
  139. package/dist/cdn/AG3GDPJB.js +4 -0
  140. package/dist/cdn/AHSWYS5M.js +4 -0
  141. package/dist/cdn/AK2A4ZOH.js +4 -0
  142. package/dist/cdn/AKOTWBA2.js +41 -0
  143. package/dist/cdn/AKWQN36A.js +59 -0
  144. package/dist/cdn/ALRS6MYG.js +4 -0
  145. package/dist/cdn/AN4LISCD.js +4 -0
  146. package/dist/cdn/ANAUQHNG.js +4 -0
  147. package/dist/cdn/ANIKH4IW.js +4 -0
  148. package/dist/cdn/ASEWVOUW.js +4 -0
  149. package/dist/cdn/AUESUVNI.js +42 -0
  150. package/dist/cdn/AV7ADV47.js +4 -0
  151. package/dist/cdn/AVRAKOQ2.js +4 -0
  152. package/dist/cdn/AW7UDCEM.js +4 -0
  153. package/dist/cdn/AWZ5FWI6.js +4 -0
  154. package/dist/cdn/AXTSSLW6.js +4 -0
  155. package/dist/cdn/AY66GNLZ.js +4 -0
  156. package/dist/cdn/B52KKKZT.js +4 -0
  157. package/dist/cdn/B6GYSS25.js +4 -0
  158. package/dist/cdn/B7PEKB4R.js +4 -0
  159. package/dist/cdn/BAZUNFHR.js +4 -0
  160. package/dist/cdn/BBA64FRH.js +4 -0
  161. package/dist/cdn/BCEXNYWL.js +4 -0
  162. package/dist/cdn/BENT2VYO.js +4 -0
  163. package/dist/cdn/BHDHA5GH.js +4 -0
  164. package/dist/cdn/BISMRB3S.js +4 -0
  165. package/dist/cdn/BKYMZOOM.js +4 -0
  166. package/dist/cdn/BM653NRA.js +4 -0
  167. package/dist/cdn/BMMGCNWT.js +4 -0
  168. package/dist/cdn/BP3XON37.js +4 -0
  169. package/dist/cdn/BSROQQCZ.js +4 -0
  170. package/dist/cdn/BTBSUIGB.js +4 -0
  171. package/dist/cdn/BTTQ4QOJ.js +4 -0
  172. package/dist/cdn/BTVX7HOO.js +5470 -0
  173. package/dist/cdn/BWH3WZYK.js +4 -0
  174. package/dist/cdn/BWKUOOFX.js +4 -0
  175. package/dist/cdn/BZJQYCT4.js +4 -0
  176. package/dist/cdn/C2JMQVX5.js +4 -0
  177. package/dist/cdn/C6EVPYSF.js +4 -0
  178. package/dist/cdn/C7N4OBVE.js +4 -0
  179. package/dist/cdn/CDTFMMSU.js +4 -0
  180. package/dist/cdn/CH4MKVZS.js +4 -0
  181. package/dist/cdn/CHYSAYF6.js +4 -0
  182. package/dist/cdn/CJ4R7AL5.js +4 -0
  183. package/dist/cdn/CKF54SZX.js +4 -0
  184. package/dist/cdn/CLZ3ODTC.js +4 -0
  185. package/dist/cdn/CRIYYEUF.js +4 -0
  186. package/dist/cdn/CROBL6JD.js +4 -0
  187. package/dist/cdn/CTAJMTMD.js +4 -0
  188. package/dist/cdn/CTTI5GGR.js +4 -0
  189. package/dist/cdn/CVJT3AAF.js +4 -0
  190. package/dist/cdn/CWU7BHZ4.js +4 -0
  191. package/dist/cdn/CYK5RH57.js +4 -0
  192. package/dist/cdn/D2MU4SCT.js +4 -0
  193. package/dist/cdn/D37EPG7N.js +4 -0
  194. package/dist/cdn/D3ULBJWN.js +4 -0
  195. package/dist/cdn/D5Z2HIJX.js +4 -0
  196. package/dist/cdn/D7ZKFMZ6.js +4 -0
  197. package/dist/cdn/DADM54R4.js +4 -0
  198. package/dist/cdn/DB47TWAI.js +4 -0
  199. package/dist/cdn/DC5PFUS6.js +4 -0
  200. package/dist/cdn/DFCLJ576.js +4 -0
  201. package/dist/cdn/DFLARURI.js +4 -0
  202. package/dist/cdn/DGVWJJLX.js +4 -0
  203. package/dist/cdn/DJSFTIP6.js +4 -0
  204. package/dist/cdn/DLM4USKW.js +4 -0
  205. package/dist/cdn/DLQFFBJD.js +4 -0
  206. package/dist/cdn/DMJE756K.js +4 -0
  207. package/dist/cdn/DRGEWWEA.js +4 -0
  208. package/dist/cdn/DTM7ZHSJ.js +4 -0
  209. package/dist/cdn/DURVAZEJ.js +4 -0
  210. package/dist/cdn/DW323TWE.js +4 -0
  211. package/dist/cdn/DZZBNQ75.js +4 -0
  212. package/dist/cdn/E3VZAJQI.js +4 -0
  213. package/dist/cdn/E454DUYI.js +4 -0
  214. package/dist/cdn/ECHRD7FT.js +4 -0
  215. package/dist/cdn/EE4KGW25.js +4 -0
  216. package/dist/cdn/EGCHMC2Y.js +4 -0
  217. package/dist/cdn/EGJCFORB.js +4 -0
  218. package/dist/cdn/EM7HTWPZ.js +4 -0
  219. package/dist/cdn/EP7XXC2O.js +4 -0
  220. package/dist/cdn/EPB5QEIF.js +4 -0
  221. package/dist/cdn/EPYMSUWU.js +4 -0
  222. package/dist/cdn/ER5NTQRC.js +4 -0
  223. package/dist/cdn/ESJBV3YV.js +4 -0
  224. package/dist/cdn/ET2UKT2C.js +4 -0
  225. package/dist/cdn/ETY3X7SM.js +4 -0
  226. package/dist/cdn/EU43MWU3.js +4 -0
  227. package/dist/cdn/EUMZH7HD.js +4 -0
  228. package/dist/cdn/EUNWWVA4.js +5 -0
  229. package/dist/cdn/EUWU3O4T.js +4 -0
  230. package/dist/cdn/EWXPADSJ.js +24 -0
  231. package/dist/cdn/EXMJLB55.js +4 -0
  232. package/dist/cdn/EYTLZ6GK.js +4 -0
  233. package/dist/cdn/F232I63A.js +4 -0
  234. package/dist/cdn/F5KQDFQP.js +4 -0
  235. package/dist/cdn/F6PP4F4O.js +4 -0
  236. package/dist/cdn/F6VZAAJM.js +4 -0
  237. package/dist/cdn/F6YKU4JB.js +4 -0
  238. package/dist/cdn/FACQWDSN.js +4 -0
  239. package/dist/cdn/FB6LHADA.js +4 -0
  240. package/dist/cdn/FBGU6DW5.js +4 -0
  241. package/dist/cdn/FF3OCJ66.js +4 -0
  242. package/dist/cdn/FHBJEOA2.js +4 -0
  243. package/dist/cdn/FIIUAIIS.js +4 -0
  244. package/dist/cdn/FK3R22BV.js +4 -0
  245. package/dist/cdn/FSBAAVGE.js +4 -0
  246. package/dist/cdn/FTTIAT2F.js +4 -0
  247. package/dist/cdn/FTTPVMBY.js +4 -0
  248. package/dist/cdn/FZNZE2AD.js +4 -0
  249. package/dist/cdn/FZOMSTJQ.js +4 -0
  250. package/dist/cdn/G5XIGYTA.js +4 -0
  251. package/dist/cdn/G5XNKYET.js +4 -0
  252. package/dist/cdn/G667OUGX.js +4 -0
  253. package/dist/cdn/G72XKEJL.js +4 -0
  254. package/dist/cdn/G74FSAY4.js +4 -0
  255. package/dist/cdn/GDMU5CVC.js +4 -0
  256. package/dist/cdn/GE4HWQRX.js +4 -0
  257. package/dist/cdn/GE5B2KQO.js +4 -0
  258. package/dist/cdn/GKEIQDEY.js +4 -0
  259. package/dist/cdn/GMLQVP6M.js +4 -0
  260. package/dist/cdn/GO7P5AYK.js +4 -0
  261. package/dist/cdn/GOLHCLQP.js +4 -0
  262. package/dist/cdn/GOTVZFWN.js +4 -0
  263. package/dist/cdn/GPQ5EOQR.js +4 -0
  264. package/dist/cdn/GPZKQDB5.js +4 -0
  265. package/dist/cdn/GSSS6NOL.js +4 -0
  266. package/dist/cdn/GV35HLWE.js +4 -0
  267. package/dist/cdn/GWB2H53H.js +4 -0
  268. package/dist/cdn/GWTE6SVP.js +4 -0
  269. package/dist/cdn/GXWNOA7Q.js +4 -0
  270. package/dist/cdn/GYIALIJG.js +4 -0
  271. package/dist/cdn/GYM3AO44.js +4 -0
  272. package/dist/cdn/GYV4Y6DU.js +4 -0
  273. package/dist/cdn/GZ52LGKY.js +4 -0
  274. package/dist/cdn/H2W5GMOC.js +4 -0
  275. package/dist/cdn/H2ZU7CXZ.js +4 -0
  276. package/dist/cdn/H36AICG5.js +4 -0
  277. package/dist/cdn/H5TTDPIU.js +4 -0
  278. package/dist/cdn/H67BLEFS.js +4 -0
  279. package/dist/cdn/H6GIBPJ3.js +4 -0
  280. package/dist/cdn/HASFL3O6.js +4 -0
  281. package/dist/cdn/HBI6GTFW.js +4 -0
  282. package/dist/cdn/HBOGNW5X.js +4 -0
  283. package/dist/cdn/HC3MWSUP.js +4 -0
  284. package/dist/cdn/HD6CKORI.js +4 -0
  285. package/dist/cdn/HFDH72CR.js +4 -0
  286. package/dist/cdn/HGFQ2QYK.js +4 -0
  287. package/dist/cdn/HGSFILEF.js +4 -0
  288. package/dist/cdn/HJRFY5JP.js +4 -0
  289. package/dist/cdn/HLPMDRIK.js +4 -0
  290. package/dist/cdn/HLTICERE.js +4 -0
  291. package/dist/cdn/HLW5HJIL.js +4 -0
  292. package/dist/cdn/HPXUBFJT.js +4 -0
  293. package/dist/cdn/HUWJWAYG.js +4 -0
  294. package/dist/cdn/HVX553LV.js +4 -0
  295. package/dist/cdn/HWSCH2HT.js +4 -0
  296. package/dist/cdn/HWTVJ2ZR.js +4 -0
  297. package/dist/cdn/HXTBDCBC.js +4 -0
  298. package/dist/cdn/I2T6BFFI.js +4 -0
  299. package/dist/cdn/I3IEDTQQ.js +4 -0
  300. package/dist/cdn/I5YBWDCS.js +4 -0
  301. package/dist/cdn/I7NGQ756.js +4 -0
  302. package/dist/cdn/I7WTEPVC.js +4 -0
  303. package/dist/cdn/IATJFEZ4.js +4 -0
  304. package/dist/cdn/IBTSSDQD.js +4 -0
  305. package/dist/cdn/IBUTGYWU.js +4 -0
  306. package/dist/cdn/ICCYGMLD.js +4 -0
  307. package/dist/cdn/IDZTMKDW.js +4 -0
  308. package/dist/cdn/IE4ESDSN.js +4 -0
  309. package/dist/cdn/IFOUM6KV.js +4 -0
  310. package/dist/cdn/IFPTY2FG.js +4 -0
  311. package/dist/cdn/IGSGVFU3.js +4 -0
  312. package/dist/cdn/IHCNWWKK.js +4 -0
  313. package/dist/cdn/IHUD3XXO.js +4 -0
  314. package/dist/cdn/IICNVTGM.js +4 -0
  315. package/dist/cdn/IIYVQITJ.js +4 -0
  316. package/dist/cdn/IIZL6XZN.js +4 -0
  317. package/dist/cdn/IJUCKDV7.js +4 -0
  318. package/dist/cdn/IL3A2PCP.js +4 -0
  319. package/dist/cdn/ILCXDVPG.js +4 -0
  320. package/dist/cdn/ILMXNPHK.js +4 -0
  321. package/dist/cdn/IOVU5GO5.js +4 -0
  322. package/dist/cdn/IPNCVGPL.js +4 -0
  323. package/dist/cdn/IPU2RR3A.js +4 -0
  324. package/dist/cdn/ISJRC75U.js +4 -0
  325. package/dist/cdn/IUIRVEFU.js +4 -0
  326. package/dist/cdn/IVFN5A64.js +4 -0
  327. package/dist/cdn/IXFJLMSX.js +4 -0
  328. package/dist/cdn/IZ27IPNO.js +5 -0
  329. package/dist/cdn/J5ZEFNBF.js +4 -0
  330. package/dist/cdn/J72H6ZB3.js +4 -0
  331. package/dist/cdn/JBF7QGIY.js +4 -0
  332. package/dist/cdn/JBZALDDO.js +4 -0
  333. package/dist/cdn/JC7LLO3U.js +4 -0
  334. package/dist/cdn/JD4QX5EP.js +4 -0
  335. package/dist/cdn/JF7UENUF.js +4 -0
  336. package/dist/cdn/JIU6N2V6.js +4 -0
  337. package/dist/cdn/JJMWNPE5.js +4 -0
  338. package/dist/cdn/JNIUAJUO.js +4 -0
  339. package/dist/cdn/JOFSHPDR.js +4 -0
  340. package/dist/cdn/JRDB3RGO.js +5 -0
  341. package/dist/cdn/JTURS63P.js +4 -0
  342. package/dist/cdn/JW6NA6GR.js +4 -0
  343. package/dist/cdn/JYHDLH7S.js +4 -0
  344. package/dist/cdn/K2RCM2WT.js +4 -0
  345. package/dist/cdn/K5C2YPPC.js +4 -0
  346. package/dist/cdn/KAWX22ML.js +4 -0
  347. package/dist/cdn/KDXCHD2A.js +4 -0
  348. package/dist/cdn/KEIFL44O.js +4 -0
  349. package/dist/cdn/KF5YKEPK.js +4 -0
  350. package/dist/cdn/KKX5HV2E.js +4 -0
  351. package/dist/cdn/KLB6QSZ3.js +4 -0
  352. package/dist/cdn/KNTWHYWX.js +4 -0
  353. package/dist/cdn/KRI2ROOQ.js +4 -0
  354. package/dist/cdn/KSCE2Y4A.js +4 -0
  355. package/dist/cdn/KSHN5654.js +11 -0
  356. package/dist/cdn/KTHT3XSU.js +4 -0
  357. package/dist/cdn/KU5YYZPL.js +4 -0
  358. package/dist/cdn/KUUIWMNO.js +4 -0
  359. package/dist/cdn/KVISIJTL.js +4 -0
  360. package/dist/cdn/KX27IIIO.js +4 -0
  361. package/dist/cdn/KX3USZ37.js +4 -0
  362. package/dist/cdn/KZIE2MU5.js +4 -0
  363. package/dist/cdn/L427IS4S.js +4 -0
  364. package/dist/cdn/L5OKYS5K.js +4 -0
  365. package/dist/cdn/LA5XM6CU.js +4 -0
  366. package/dist/cdn/LBBW5FW4.js +4 -0
  367. package/dist/cdn/LDDE2V3H.js +4 -0
  368. package/dist/cdn/LDXAFEWS.js +4 -0
  369. package/dist/cdn/LE7UAO4L.js +4 -0
  370. package/dist/cdn/LFAV6V2W.js +4 -0
  371. package/dist/cdn/LFXDMDP3.js +4 -0
  372. package/dist/cdn/LIFMLTH6.js +4 -0
  373. package/dist/cdn/LJUIM6YF.js +4 -0
  374. package/dist/cdn/LJZ75L3E.js +16 -0
  375. package/dist/cdn/LJZABZC3.js +4 -0
  376. package/dist/cdn/LKEKA4S2.js +4 -0
  377. package/dist/cdn/LP62ND3C.js +4 -0
  378. package/dist/cdn/LR3HRYXE.js +4 -0
  379. package/dist/cdn/LTZVLYQS.js +4 -0
  380. package/dist/cdn/LV3UIS24.js +4 -0
  381. package/dist/cdn/LV4LIKTF.js +4 -0
  382. package/dist/cdn/M2IRHMFB.js +4 -0
  383. package/dist/cdn/M6VWHLY6.js +4 -0
  384. package/dist/cdn/MACPC5YI.js +4 -0
  385. package/dist/cdn/MBSGIVOG.js +4 -0
  386. package/dist/cdn/MCJUTLXL.js +4 -0
  387. package/dist/cdn/MEF674CW.js +4 -0
  388. package/dist/cdn/MHYXTLHX.js +4 -0
  389. package/dist/cdn/MIHNU6EA.js +4 -0
  390. package/dist/cdn/MITDXPM5.js +4 -0
  391. package/dist/cdn/MIVGSF2M.js +4 -0
  392. package/dist/cdn/MKJURPBJ.js +4 -0
  393. package/dist/cdn/MLFLNWYH.js +4 -0
  394. package/dist/cdn/MOG7X7BC.js +4 -0
  395. package/dist/cdn/MPOJ3OB7.js +4 -0
  396. package/dist/cdn/MQBD4VHQ.js +4 -0
  397. package/dist/cdn/MWIQDHHU.js +4 -0
  398. package/dist/cdn/MZUAZNB6.js +4 -0
  399. package/dist/cdn/N5AXE34I.js +4 -0
  400. package/dist/cdn/NBECV7XP.js +4 -0
  401. package/dist/cdn/NDRUKMEZ.js +4 -0
  402. package/dist/cdn/NEGTAVVB.js +4 -0
  403. package/dist/cdn/NGNF5K46.js +4 -0
  404. package/dist/cdn/NIKCSAWZ.js +4 -0
  405. package/dist/cdn/NJW46VPT.js +4 -0
  406. package/dist/cdn/NKZXH7ZA.js +4 -0
  407. package/dist/cdn/NLB7RK5V.js +4 -0
  408. package/dist/cdn/NLGAXHZD.js +4 -0
  409. package/dist/cdn/NPDIJGBX.js +4 -0
  410. package/dist/cdn/NTOSSFXB.js +4 -0
  411. package/dist/cdn/O2PPXAQY.js +4 -0
  412. package/dist/cdn/O3ATZV5D.js +4 -0
  413. package/dist/cdn/O4THENMW.js +4 -0
  414. package/dist/cdn/O6CEIZQH.js +4 -0
  415. package/dist/cdn/OBVQ7Q53.js +4 -0
  416. package/dist/cdn/ODLQK3PU.js +4 -0
  417. package/dist/cdn/OGAZRQIF.js +4 -0
  418. package/dist/cdn/OIZ5OE6T.js +4 -0
  419. package/dist/cdn/OJGGN7S4.js +4 -0
  420. package/dist/cdn/OJHBWUFJ.js +4 -0
  421. package/dist/cdn/OJJDY6Y7.js +4 -0
  422. package/dist/cdn/OJLHWUSU.js +4 -0
  423. package/dist/cdn/OJOQPLA5.js +4 -0
  424. package/dist/cdn/OKF2OYAB.js +4 -0
  425. package/dist/cdn/OLS3JFXY.js +4 -0
  426. package/dist/cdn/OQH34KZP.js +4 -0
  427. package/dist/cdn/ORBZJIQF.js +4 -0
  428. package/dist/cdn/ORWGP7ML.js +4 -0
  429. package/dist/cdn/OUFF4M2I.js +4 -0
  430. package/dist/cdn/OVCRNJEG.js +4 -0
  431. package/dist/cdn/OWSFYCQN.js +4 -0
  432. package/dist/cdn/P3JBDVJ5.js +4 -0
  433. package/dist/cdn/P43OH26M.js +4 -0
  434. package/dist/cdn/P5TACPDT.js +4 -0
  435. package/dist/cdn/PAB7SMSO.js +4 -0
  436. package/dist/cdn/PAKGL6FI.js +4 -0
  437. package/dist/cdn/PAKPLID2.js +4 -0
  438. package/dist/cdn/PF7TKX35.js +4 -0
  439. package/dist/cdn/PFFB6JRK.js +4 -0
  440. package/dist/cdn/PFRGXOZW.js +9 -0
  441. package/dist/cdn/PHTJO3I4.js +4 -0
  442. package/dist/cdn/PJ5GZWFF.js +4 -0
  443. package/dist/cdn/PNDBL57L.js +4 -0
  444. package/dist/cdn/PPAQSWIQ.js +4 -0
  445. package/dist/cdn/PQOGVSIS.js +4 -0
  446. package/dist/cdn/PRQMU74U.js +25 -0
  447. package/dist/cdn/PSGJWDWI.js +4 -0
  448. package/dist/cdn/PV2HUQKM.js +4 -0
  449. package/dist/cdn/PXLIQPIA.js +4 -0
  450. package/dist/cdn/PY6YMYEL.js +4 -0
  451. package/dist/cdn/Q5LSZVI5.js +4 -0
  452. package/dist/cdn/Q6ZVR46S.js +4 -0
  453. package/dist/cdn/Q7YT2OUB.js +4 -0
  454. package/dist/cdn/QAMRIWFF.js +4 -0
  455. package/dist/cdn/QAV63NUU.js +4 -0
  456. package/dist/cdn/QAVHMEFN.js +4 -0
  457. package/dist/cdn/QCB5K23T.js +4 -0
  458. package/dist/cdn/QCZT4BRG.js +4 -0
  459. package/dist/cdn/QETIP7S4.js +4 -0
  460. package/dist/cdn/QFIQWSMU.js +4 -0
  461. package/dist/cdn/QHJPTIHS.js +4 -0
  462. package/dist/cdn/QI4ETCDH.js +4 -0
  463. package/dist/cdn/QJQM5TND.js +4 -0
  464. package/dist/cdn/QKYLDTWI.js +4 -0
  465. package/dist/cdn/QM7EOT72.js +4 -0
  466. package/dist/cdn/QMWT4SOL.js +4 -0
  467. package/dist/cdn/QO5S2HWW.js +4 -0
  468. package/dist/cdn/QODSLVH2.js +4 -0
  469. package/dist/cdn/QPGVS6CK.js +4 -0
  470. package/dist/cdn/QPN665XY.js +4 -0
  471. package/dist/cdn/QPYUPTUM.js +4 -0
  472. package/dist/cdn/QROWCM27.js +4 -0
  473. package/dist/cdn/QSQVGG7D.js +4 -0
  474. package/dist/cdn/QSRWS3AI.js +4 -0
  475. package/dist/cdn/QTZTOLVZ.js +4 -0
  476. package/dist/cdn/QVNXKSGA.js +4 -0
  477. package/dist/cdn/QW7ET6VB.js +4 -0
  478. package/dist/cdn/QXG4EGUF.js +4 -0
  479. package/dist/cdn/QY7TLKYZ.js +4 -0
  480. package/dist/cdn/R3GZAQLL.js +4 -0
  481. package/dist/cdn/R6FEMC5M.js +4 -0
  482. package/dist/cdn/R7LJ6NU4.js +4 -0
  483. package/dist/cdn/RBD3SQOK.js +4 -0
  484. package/dist/cdn/RDW4F36R.js +4 -0
  485. package/dist/cdn/RELEVAQ5.js +4 -0
  486. package/dist/cdn/RESPFHWJ.js +4 -0
  487. package/dist/cdn/RH53T23C.js +4 -0
  488. package/dist/cdn/RHV2FY33.js +4 -0
  489. package/dist/cdn/RK2G3EY2.js +4 -0
  490. package/dist/cdn/RK7OA6ZA.js +4 -0
  491. package/dist/cdn/RKSUGR3U.js +4 -0
  492. package/dist/cdn/RNT3WIYH.js +4 -0
  493. package/dist/cdn/RSUB2YSU.js +4 -0
  494. package/dist/cdn/RV72X55Z.js +4 -0
  495. package/dist/cdn/S2KZVV6Y.js +4 -0
  496. package/dist/cdn/S2QUBDS5.js +4 -0
  497. package/dist/cdn/S2UBAUSC.js +4 -0
  498. package/dist/cdn/S4HWO3JF.js +4 -0
  499. package/dist/cdn/S4VZ5CJ7.js +4 -0
  500. package/dist/cdn/S5SQLM3T.js +4 -0
  501. package/dist/cdn/SF27DOPM.js +4 -0
  502. package/dist/cdn/SGNBR4XW.js +4 -0
  503. package/dist/cdn/SHNDA5CT.js +4 -0
  504. package/dist/cdn/SIQQWTBF.js +4 -0
  505. package/dist/cdn/SIV5GJ66.js +4 -0
  506. package/dist/cdn/SJZNK2OP.js +4 -0
  507. package/dist/cdn/SM33NUJP.js +4 -0
  508. package/dist/cdn/SNB23ICD.js +4 -0
  509. package/dist/cdn/SNYXGVCA.js +4 -0
  510. package/dist/cdn/SOCD5CI2.js +4 -0
  511. package/dist/cdn/SOLKBXWE.js +4 -0
  512. package/dist/cdn/SQ6K2PFP.js +4 -0
  513. package/dist/cdn/SVWHVNED.js +4 -0
  514. package/dist/cdn/SWZCTY46.js +4 -0
  515. package/dist/cdn/SXN6A6S3.js +4 -0
  516. package/dist/cdn/T5S6OI2K.js +4 -0
  517. package/dist/cdn/T63LEFPN.js +4 -0
  518. package/dist/cdn/T6RLRXHN.js +4 -0
  519. package/dist/cdn/T7INFZQZ.js +4 -0
  520. package/dist/cdn/TDD6L5ZY.js +59 -0
  521. package/dist/cdn/TFBD34UV.js +12 -0
  522. package/dist/cdn/THU36BHJ.js +4 -0
  523. package/dist/cdn/TI7M2KWD.js +4 -0
  524. package/dist/cdn/TJLGNR5G.js +4 -0
  525. package/dist/cdn/TJYZR6J2.js +4 -0
  526. package/dist/cdn/TLRHGHN4.js +4 -0
  527. package/dist/cdn/TMLCNSJ5.js +4 -0
  528. package/dist/cdn/TNJWE4OP.js +4 -0
  529. package/dist/cdn/TOHJ5H5A.js +4 -0
  530. package/dist/cdn/TWQCLTE3.js +4 -0
  531. package/dist/cdn/TXISE2EL.js +4 -0
  532. package/dist/cdn/TYE6IMPR.js +4 -0
  533. package/dist/cdn/U2COWE3R.js +4 -0
  534. package/dist/cdn/U3MKUT4I.js +4 -0
  535. package/dist/cdn/U3ZVITFK.js +4 -0
  536. package/dist/cdn/U42L2OKM.js +4 -0
  537. package/dist/cdn/U6K6I5IS.js +4 -0
  538. package/dist/cdn/U7WWASMI.js +4 -0
  539. package/dist/cdn/UCYJ557I.js +4 -0
  540. package/dist/cdn/UECKNBJC.js +4 -0
  541. package/dist/cdn/UEZABQVT.js +4 -0
  542. package/dist/cdn/UG53DIBX.js +4 -0
  543. package/dist/cdn/UGT7FUXH.js +4 -0
  544. package/dist/cdn/UKFMPRXZ.js +4 -0
  545. package/dist/cdn/UKRJVWEF.js +4 -0
  546. package/dist/cdn/ULBO3FPT.js +4 -0
  547. package/dist/cdn/UOKYIJMP.js +4 -0
  548. package/dist/cdn/UQ4LMUP6.js +4 -0
  549. package/dist/cdn/UQVVRCJT.js +4 -0
  550. package/dist/cdn/URGKJW4I.js +5 -0
  551. package/dist/cdn/UTEXIK57.js +4 -0
  552. package/dist/cdn/UTHM72K7.js +4 -0
  553. package/dist/cdn/UUVXKTM4.js +4 -0
  554. package/dist/cdn/UV4QSGBK.js +4 -0
  555. package/dist/cdn/UWSIA7W6.js +4 -0
  556. package/dist/cdn/UZB5QTEQ.js +4 -0
  557. package/dist/cdn/V3KV6ERM.js +4 -0
  558. package/dist/cdn/V64L3LRC.js +4 -0
  559. package/dist/cdn/V6HNL42C.js +4 -0
  560. package/dist/cdn/VC7MX3TT.js +4 -0
  561. package/dist/cdn/VD6YMW6V.js +4 -0
  562. package/dist/cdn/VFP6T2LI.js +4 -0
  563. package/dist/cdn/VITIQ52P.js +6 -0
  564. package/dist/cdn/VMVX6IXF.js +4 -0
  565. package/dist/cdn/VNLM7SLD.js +4 -0
  566. package/dist/cdn/VNVETM55.js +4 -0
  567. package/dist/cdn/VP3B6QHX.js +4 -0
  568. package/dist/cdn/VQAW4JZM.js +4 -0
  569. package/dist/cdn/VQWEF2MB.js +4 -0
  570. package/dist/cdn/VRZ7AILO.js +4 -0
  571. package/dist/cdn/VRZ7ZAPA.js +4 -0
  572. package/dist/cdn/VT5RMZAL.js +4 -0
  573. package/dist/cdn/VVKEX6MK.js +4 -0
  574. package/dist/cdn/VVPHN64O.js +4 -0
  575. package/dist/cdn/VZGWMV2S.js +4 -0
  576. package/dist/cdn/W57MSRNN.js +4 -0
  577. package/dist/cdn/WAFZKUAD.js +4 -0
  578. package/dist/cdn/WALWRL3U.js +4 -0
  579. package/dist/cdn/WCBAWTNK.js +4 -0
  580. package/dist/cdn/WDMLE3RH.js +4 -0
  581. package/dist/cdn/WDUOP4DU.js +4 -0
  582. package/dist/cdn/WDYXQNRS.js +4 -0
  583. package/dist/cdn/WFEYEW4G.js +4 -0
  584. package/dist/cdn/WGR46AWY.js +4 -0
  585. package/dist/cdn/WHW4JUKT.js +4 -0
  586. package/dist/cdn/WLUPEVO7.js +4 -0
  587. package/dist/cdn/WNNAICA2.js +4 -0
  588. package/dist/cdn/WNOTXLXO.js +6 -0
  589. package/dist/cdn/WOIA2BNS.js +4 -0
  590. package/dist/cdn/WOXYYHI7.js +4 -0
  591. package/dist/cdn/WPGPQVLA.js +4 -0
  592. package/dist/cdn/WSYHWZ7B.js +4 -0
  593. package/dist/cdn/WTEUACIX.js +4 -0
  594. package/dist/cdn/WWGLIVRB.js +4 -0
  595. package/dist/cdn/WWUSHZ3A.js +4 -0
  596. package/dist/cdn/WWVVPML5.js +4 -0
  597. package/dist/cdn/WXYYNBH2.js +4 -0
  598. package/dist/cdn/XANKQWY4.js +4 -0
  599. package/dist/cdn/XC4GKXQU.js +4 -0
  600. package/dist/cdn/XE5P3T4W.js +4 -0
  601. package/dist/cdn/XEUXT2Y4.js +4 -0
  602. package/dist/cdn/XH6IQNUW.js +4 -0
  603. package/dist/cdn/XIJ6GOWM.js +4 -0
  604. package/dist/cdn/XJCEAPIV.js +4 -0
  605. package/dist/cdn/XM3LHCKN.js +4 -0
  606. package/dist/cdn/XNOC3IJW.js +4 -0
  607. package/dist/cdn/XQEDM4AR.js +4 -0
  608. package/dist/cdn/XRXJYYBM.js +4 -0
  609. package/dist/cdn/XTPPYAYL.js +4 -0
  610. package/dist/cdn/XUUGH5T4.js +4 -0
  611. package/dist/cdn/XV5HAOV2.js +4 -0
  612. package/dist/cdn/XVRUFUUB.js +4 -0
  613. package/dist/cdn/XXSD3HRL.js +4 -0
  614. package/dist/cdn/Y3N34BDY.js +4 -0
  615. package/dist/cdn/Y3NTYSOL.js +8 -0
  616. package/dist/cdn/Y3VGO7N6.js +4 -0
  617. package/dist/cdn/Y643RKK2.js +4 -0
  618. package/dist/cdn/Y7AMG56F.js +4 -0
  619. package/dist/cdn/YA3DCGSB.js +4 -0
  620. package/dist/cdn/YA73BBMY.js +4 -0
  621. package/dist/cdn/YA7S3R5J.js +4 -0
  622. package/dist/cdn/YCVKHOHN.js +4 -0
  623. package/dist/cdn/YG3IIFK6.js +4 -0
  624. package/dist/cdn/YGC6S5F4.js +4 -0
  625. package/dist/cdn/YGGNDAWN.js +4 -0
  626. package/dist/cdn/YHMOJG2C.js +4 -0
  627. package/dist/cdn/YHZENYYB.js +4 -0
  628. package/dist/cdn/YI36PE44.js +4 -0
  629. package/dist/cdn/YIJGZFWU.js +4 -0
  630. package/dist/cdn/YIRGZWMQ.js +4 -0
  631. package/dist/cdn/YJLX7WM2.js +4 -0
  632. package/dist/cdn/YMPJWXSS.js +4 -0
  633. package/dist/cdn/YN5TRRJ7.js +4 -0
  634. package/dist/cdn/YNAZWCCJ.js +4 -0
  635. package/dist/cdn/YOFCJ5BL.js +4 -0
  636. package/dist/cdn/YPINIHAH.js +4 -0
  637. package/dist/cdn/YU3LHWMR.js +51 -0
  638. package/dist/cdn/YUY733WP.js +4 -0
  639. package/dist/cdn/YWBRTG7O.js +4 -0
  640. package/dist/cdn/YXXEPDJX.js +12 -0
  641. package/dist/cdn/YZY43N2F.js +4 -0
  642. package/dist/cdn/Z326CLVO.js +3 -0
  643. package/dist/cdn/Z3RXGTXP.js +4 -0
  644. package/dist/cdn/Z6BIMUQR.js +4 -0
  645. package/dist/cdn/Z6SS7C77.js +4 -0
  646. package/dist/cdn/Z7IP6ED7.js +4 -0
  647. package/dist/cdn/ZG4YPCPK.js +4 -0
  648. package/dist/cdn/ZJKOHWBI.js +4 -0
  649. package/dist/cdn/ZKW2HOPC.js +6 -0
  650. package/dist/cdn/ZLSQN3JF.js +4 -0
  651. package/dist/cdn/ZN52JN3Q.js +4 -0
  652. package/dist/cdn/ZNALKA2X.js +4 -0
  653. package/dist/cdn/ZPXMRKGU.js +4 -0
  654. package/dist/cdn/ZRDHGK3J.js +4 -0
  655. package/dist/cdn/ZSWZREB7.js +4 -0
  656. package/dist/cdn/ZX3PVQHY.js +4 -0
  657. package/dist/cdn/index.js +2 -2
  658. package/dist/chunks/chat-action.js +1 -1
  659. package/dist/chunks/getResponsiveClasses.js +1 -1
  660. package/dist/chunks/interpolate-translations.js +1 -1
  661. package/dist/chunks/isNodeVisible.js +1 -1
  662. package/dist/chunks/memoizeAsync.js +1 -1
  663. package/dist/chunks/messagesContext.js +1 -1
  664. package/dist/chunks/migrateTextCard.js +1 -1
  665. package/dist/chunks/processLayout.js +1 -1
  666. package/dist/chunks/runtime.js +1 -1
  667. package/dist/chunks/state.js +1 -1
  668. package/dist/chunks/typeGuards.js +1 -1
  669. package/dist/chunks/useT9n.js +1 -1
  670. package/dist/chunks/util.js +1 -1
  671. package/dist/components/arcgis-chat-shell/customElement.js +1 -1
  672. package/dist/components/arcgis-chat-ui/customElement.js +1 -1
  673. package/dist/components/arcgis-chat-ui/functional/chat-action/customElement.js +1 -1
  674. package/dist/components/arcgis-chat-ui/functional/chat-response/customElement.js +1 -1
  675. package/dist/components/arcgis-chat-ui/functional/chat-status/customElement.js +1 -1
  676. package/dist/components/arcgis-hub-ai-assistant/customElement.js +1 -1
  677. package/dist/components/arcgis-hub-entity-associations-card/customElement.js +1 -1
  678. package/dist/components/arcgis-hub-entity-metrics-card/customElement.js +1 -1
  679. package/dist/components/arcgis-hub-entity-status-card/customElement.js +1 -1
  680. package/dist/components/arcgis-layout/customElement.d.ts +2 -1
  681. package/dist/components/arcgis-layout/customElement.js +6 -2
  682. package/dist/components/arcgis-layout-column/customElement.d.ts +2 -2
  683. package/dist/components/arcgis-layout-column/customElement.js +2 -2
  684. package/dist/components/arcgis-layout-container/customElement.d.ts +2 -0
  685. package/dist/components/arcgis-layout-container/customElement.js +123 -121
  686. package/dist/components/arcgis-layout-editor-toolbar/customElement.js +6 -8
  687. package/dist/components/arcgis-layout-node-controls/customElement.js +1 -1
  688. package/dist/components/arcgis-layout-node-editor/customElement.js +1 -1
  689. package/dist/components/arcgis-layout-node-editor/layout-node-editor-dynamic-tag/customElement.js +1 -1
  690. package/dist/components/arcgis-layout-node-highlight/customElement.js +39 -34
  691. package/dist/components/arcgis-layout-node-overlay/customElement.js +1 -1
  692. package/dist/components/arcgis-layout-row/customElement.js +1 -1
  693. package/dist/components/arcgis-layout-section/customElement.js +1 -1
  694. package/dist/components/arcgis-nav-card/customElement.js +1 -1
  695. package/dist/components/arcgis-text-card/customElement.js +1 -1
  696. package/dist/components/layouts/components/layout-node/customElement.js +31 -31
  697. package/dist/components/layouts/utils/getAddableLayoutNodes.d.ts +1 -0
  698. package/dist/docs/api.json +56 -1
  699. package/dist/docs/docs.json +60 -1
  700. package/dist/docs/vscode.html-custom-data.json +2 -2
  701. package/dist/docs/web-types.json +13 -3
  702. package/dist/embed-config.js +1 -1
  703. package/dist/index.d.ts +1 -0
  704. package/dist/index.js +1 -1
  705. package/dist/loader.js +2 -2
  706. package/dist/types/lumina.d.ts +1 -0
  707. package/dist/types/preact.d.ts +1 -0
  708. package/dist/types/react.d.ts +1 -0
  709. package/dist/types/stencil.d.ts +1 -0
  710. package/package.json +7 -8
  711. package/dist/cdn/22BVVS45.js +0 -4
  712. package/dist/cdn/22KLMUMX.js +0 -4
  713. package/dist/cdn/22KNHML7.js +0 -4
  714. package/dist/cdn/22U5TR2O.js +0 -4
  715. package/dist/cdn/23WAPALJ.js +0 -4
  716. package/dist/cdn/2A2B5HYT.js +0 -4
  717. package/dist/cdn/2AQFQGVA.js +0 -4
  718. package/dist/cdn/2BXWIHSJ.js +0 -4
  719. package/dist/cdn/2DHJEA4R.js +0 -4
  720. package/dist/cdn/2FBOEGBD.js +0 -4
  721. package/dist/cdn/2JFYMKAJ.js +0 -4
  722. package/dist/cdn/2JXZSQW4.js +0 -16
  723. package/dist/cdn/2KJOAQSG.js +0 -4
  724. package/dist/cdn/2L3LZEQA.js +0 -4
  725. package/dist/cdn/2PRSAXJV.js +0 -4
  726. package/dist/cdn/2R2TVFZF.js +0 -4
  727. package/dist/cdn/2RRSN2PS.js +0 -4
  728. package/dist/cdn/2X4BJKG7.js +0 -4
  729. package/dist/cdn/2YHCXP56.js +0 -4
  730. package/dist/cdn/33LS37HN.js +0 -4
  731. package/dist/cdn/34L55HV7.js +0 -4
  732. package/dist/cdn/35SM5TP6.js +0 -4
  733. package/dist/cdn/3BK6FEHB.js +0 -4
  734. package/dist/cdn/3DJK77GV.js +0 -4
  735. package/dist/cdn/3H2XVCUA.js +0 -4
  736. package/dist/cdn/3JNZKALP.js +0 -5
  737. package/dist/cdn/3JQFOVPN.js +0 -4
  738. package/dist/cdn/3LYU7GQV.js +0 -4
  739. package/dist/cdn/3TKT33QR.js +0 -4
  740. package/dist/cdn/3TYPOE5X.js +0 -4
  741. package/dist/cdn/3VAZACF5.js +0 -4
  742. package/dist/cdn/3XBX2VBB.js +0 -4
  743. package/dist/cdn/43GYHEV3.js +0 -4
  744. package/dist/cdn/44IHBUAZ.js +0 -4
  745. package/dist/cdn/46NA4CHE.js +0 -4
  746. package/dist/cdn/47DVYEBK.js +0 -4
  747. package/dist/cdn/4BRO2AVB.js +0 -4
  748. package/dist/cdn/4DHRAVXA.js +0 -4
  749. package/dist/cdn/4DKGVE4Z.js +0 -4
  750. package/dist/cdn/4DZQUZ5U.js +0 -4
  751. package/dist/cdn/4F75G5NR.js +0 -4
  752. package/dist/cdn/4G6FK5HA.js +0 -4
  753. package/dist/cdn/4HK7PNUI.js +0 -4
  754. package/dist/cdn/4HROUK62.js +0 -4
  755. package/dist/cdn/4IFEVO7E.js +0 -4
  756. package/dist/cdn/4TYPWALT.js +0 -4
  757. package/dist/cdn/4U3GHYJ2.js +0 -4
  758. package/dist/cdn/4UE4WELF.js +0 -4
  759. package/dist/cdn/4VDAONXX.js +0 -4
  760. package/dist/cdn/4VSWQM3V.js +0 -4
  761. package/dist/cdn/4ZCQG4KD.js +0 -4
  762. package/dist/cdn/56GUCTAF.js +0 -4
  763. package/dist/cdn/56RHBRLX.js +0 -4
  764. package/dist/cdn/57G44J3J.js +0 -4
  765. package/dist/cdn/5AV2EUV3.js +0 -4
  766. package/dist/cdn/5BAYYQ5X.js +0 -4
  767. package/dist/cdn/5CWJU6RW.js +0 -4
  768. package/dist/cdn/5EEYWGMQ.js +0 -4
  769. package/dist/cdn/5EFAHS6A.js +0 -59
  770. package/dist/cdn/5HSV2LXE.js +0 -4
  771. package/dist/cdn/5INRNCIF.js +0 -4
  772. package/dist/cdn/5J3QTUB3.js +0 -4
  773. package/dist/cdn/5J5IVZ25.js +0 -4
  774. package/dist/cdn/5KBR6TL7.js +0 -4
  775. package/dist/cdn/5KG5GSFA.js +0 -4
  776. package/dist/cdn/5KHXLSNZ.js +0 -4
  777. package/dist/cdn/5LD66IBJ.js +0 -4
  778. package/dist/cdn/5LNMPOSU.js +0 -4
  779. package/dist/cdn/5MFKDKPI.js +0 -4
  780. package/dist/cdn/5MRCP2VJ.js +0 -4
  781. package/dist/cdn/5OWRLEIY.js +0 -11
  782. package/dist/cdn/5P7Y7FRU.js +0 -4
  783. package/dist/cdn/5QUJZ5SS.js +0 -4
  784. package/dist/cdn/5RYO6L3G.js +0 -4
  785. package/dist/cdn/5VQVC4QF.js +0 -4
  786. package/dist/cdn/5WDRIQCG.js +0 -4
  787. package/dist/cdn/5WJTNLD5.js +0 -4
  788. package/dist/cdn/5YXGJVEE.js +0 -4
  789. package/dist/cdn/5Z2UH4XD.js +0 -4
  790. package/dist/cdn/5ZXZF2JP.js +0 -4
  791. package/dist/cdn/62G2DFL2.js +0 -4
  792. package/dist/cdn/62I5K7TZ.js +0 -41
  793. package/dist/cdn/62M4WKMB.js +0 -4
  794. package/dist/cdn/63AKASWS.js +0 -4
  795. package/dist/cdn/66XLFAGL.js +0 -4
  796. package/dist/cdn/672VG6AM.js +0 -4
  797. package/dist/cdn/67K6Z22L.js +0 -4
  798. package/dist/cdn/67WT4HLZ.js +0 -4
  799. package/dist/cdn/6ABLFZCS.js +0 -4
  800. package/dist/cdn/6AEVM2ZJ.js +0 -4
  801. package/dist/cdn/6ARLE33F.js +0 -4
  802. package/dist/cdn/6I7DM3LK.js +0 -4
  803. package/dist/cdn/6J3QVY4G.js +0 -4
  804. package/dist/cdn/6K5RAOVH.js +0 -4
  805. package/dist/cdn/6K5V2I5L.js +0 -4
  806. package/dist/cdn/6K6RI3QE.js +0 -4
  807. package/dist/cdn/6K6WKPZQ.js +0 -4
  808. package/dist/cdn/6LLO3GDI.js +0 -4
  809. package/dist/cdn/6N54EYC3.js +0 -4
  810. package/dist/cdn/6NCNGMYZ.js +0 -4
  811. package/dist/cdn/6OCROZV4.js +0 -4
  812. package/dist/cdn/6P3RKMCV.js +0 -4
  813. package/dist/cdn/6P4GZSUJ.js +0 -4
  814. package/dist/cdn/6PBUIYKP.js +0 -4
  815. package/dist/cdn/6QDKPPXO.js +0 -4
  816. package/dist/cdn/6QHM4JX3.js +0 -4
  817. package/dist/cdn/6RO7I7V7.js +0 -4
  818. package/dist/cdn/6RUG7WKH.js +0 -4
  819. package/dist/cdn/6TDKUCJW.js +0 -4
  820. package/dist/cdn/6WCOGUXU.js +0 -4
  821. package/dist/cdn/6X5J3RMA.js +0 -4
  822. package/dist/cdn/6XHEADA3.js +0 -4
  823. package/dist/cdn/6XYDUWTZ.js +0 -4
  824. package/dist/cdn/72UN6B64.js +0 -4
  825. package/dist/cdn/73GZFDLD.js +0 -4
  826. package/dist/cdn/744WWEJP.js +0 -4
  827. package/dist/cdn/75IHQG2X.js +0 -4
  828. package/dist/cdn/77KHZHVY.js +0 -4
  829. package/dist/cdn/7A7MM5M6.js +0 -4
  830. package/dist/cdn/7AVD4HSH.js +0 -4
  831. package/dist/cdn/7BS5JU4R.js +0 -4
  832. package/dist/cdn/7BWZGM37.js +0 -4
  833. package/dist/cdn/7DQNQTET.js +0 -4
  834. package/dist/cdn/7EZSEWT3.js +0 -4
  835. package/dist/cdn/7FCQMEWY.js +0 -4
  836. package/dist/cdn/7FVDTFO5.js +0 -4
  837. package/dist/cdn/7IR3BQUS.js +0 -4
  838. package/dist/cdn/7IXFNRRQ.js +0 -4
  839. package/dist/cdn/7J3CCYDL.js +0 -4
  840. package/dist/cdn/7JBQMLC6.js +0 -4
  841. package/dist/cdn/7JFLHOXQ.js +0 -4
  842. package/dist/cdn/7JPJFQDM.js +0 -4
  843. package/dist/cdn/7M6PWETM.js +0 -4
  844. package/dist/cdn/7NFLNZHW.js +0 -4
  845. package/dist/cdn/7OMQGXTT.js +0 -4
  846. package/dist/cdn/7OYQMW36.js +0 -4
  847. package/dist/cdn/7QBCZMW5.js +0 -4
  848. package/dist/cdn/7QUHNBFX.js +0 -4
  849. package/dist/cdn/7RO2EUMQ.js +0 -4
  850. package/dist/cdn/7RTTSP6V.js +0 -4
  851. package/dist/cdn/7RU2JRPK.js +0 -4
  852. package/dist/cdn/7S7LGGUA.js +0 -4
  853. package/dist/cdn/7SVQFZUA.js +0 -4
  854. package/dist/cdn/7UPOQLIX.js +0 -4
  855. package/dist/cdn/7WLDVEOM.js +0 -4
  856. package/dist/cdn/7WVVQCX5.js +0 -4
  857. package/dist/cdn/A3NEWPXF.js +0 -4
  858. package/dist/cdn/A4OJY5AQ.js +0 -4
  859. package/dist/cdn/A4ZBGD5O.js +0 -4
  860. package/dist/cdn/A5GVAFEK.js +0 -4
  861. package/dist/cdn/A5HPY7H3.js +0 -4
  862. package/dist/cdn/A5MT46LE.js +0 -4
  863. package/dist/cdn/A6B6M6IC.js +0 -4
  864. package/dist/cdn/ACBS3MNR.js +0 -4
  865. package/dist/cdn/AE3YP3DS.js +0 -4
  866. package/dist/cdn/AEC3TCO4.js +0 -4
  867. package/dist/cdn/AFTVC3MS.js +0 -4
  868. package/dist/cdn/AK6XJTYJ.js +0 -4
  869. package/dist/cdn/AO6S265A.js +0 -4
  870. package/dist/cdn/AODOE7CF.js +0 -4
  871. package/dist/cdn/AOYA5CH5.js +0 -4
  872. package/dist/cdn/APRI7FIM.js +0 -4
  873. package/dist/cdn/APSS2Y4K.js +0 -4
  874. package/dist/cdn/AQP6ETJZ.js +0 -4
  875. package/dist/cdn/ARKS3QSQ.js +0 -4
  876. package/dist/cdn/ASSROV6X.js +0 -4
  877. package/dist/cdn/ATBDURTD.js +0 -4
  878. package/dist/cdn/AYPK6P2W.js +0 -4
  879. package/dist/cdn/B7D5PIHU.js +0 -4
  880. package/dist/cdn/BB4VIFK3.js +0 -4
  881. package/dist/cdn/BI3DYR2J.js +0 -5
  882. package/dist/cdn/BKHUA4EN.js +0 -4
  883. package/dist/cdn/BKYETMUH.js +0 -4
  884. package/dist/cdn/BOWY5J5N.js +0 -4
  885. package/dist/cdn/BSMZSC3Y.js +0 -4
  886. package/dist/cdn/BSRAKE5W.js +0 -4
  887. package/dist/cdn/BTME3TPF.js +0 -4
  888. package/dist/cdn/BUHDSOCM.js +0 -4
  889. package/dist/cdn/BX776ZS6.js +0 -4
  890. package/dist/cdn/BYUIBLXK.js +0 -4
  891. package/dist/cdn/C25ZZZR2.js +0 -4
  892. package/dist/cdn/C354FODK.js +0 -4
  893. package/dist/cdn/C3RTUV5O.js +0 -4
  894. package/dist/cdn/C43CRZWM.js +0 -59
  895. package/dist/cdn/C44U2OB4.js +0 -4
  896. package/dist/cdn/C4BUEHCI.js +0 -4
  897. package/dist/cdn/C5POZEKH.js +0 -4
  898. package/dist/cdn/C6CCUU6L.js +0 -4
  899. package/dist/cdn/C6ZD5KKD.js +0 -4
  900. package/dist/cdn/C73E4E2E.js +0 -4
  901. package/dist/cdn/C7AYSIOJ.js +0 -4
  902. package/dist/cdn/CA673E3Z.js +0 -4
  903. package/dist/cdn/CB4FKWZK.js +0 -5
  904. package/dist/cdn/CC77QXQM.js +0 -4
  905. package/dist/cdn/CEHNODNL.js +0 -4
  906. package/dist/cdn/CFQXTKFT.js +0 -4
  907. package/dist/cdn/CGOC64QV.js +0 -4
  908. package/dist/cdn/CJYFMZFQ.js +0 -4
  909. package/dist/cdn/CKZHUXNQ.js +0 -4
  910. package/dist/cdn/CLY4X4EN.js +0 -4
  911. package/dist/cdn/CMLGB5T2.js +0 -4
  912. package/dist/cdn/COVS2GLW.js +0 -4
  913. package/dist/cdn/CTB2KANG.js +0 -4
  914. package/dist/cdn/CTUQQTUP.js +0 -4
  915. package/dist/cdn/CX4UVJ4R.js +0 -4
  916. package/dist/cdn/D337YWJZ.js +0 -4
  917. package/dist/cdn/D3GCE3ND.js +0 -4
  918. package/dist/cdn/D4763FAP.js +0 -4
  919. package/dist/cdn/D4GA6N3R.js +0 -4
  920. package/dist/cdn/D5EONY7N.js +0 -4
  921. package/dist/cdn/DAW2MCJN.js +0 -4
  922. package/dist/cdn/DCMUYRON.js +0 -4
  923. package/dist/cdn/DCWYGZNN.js +0 -4
  924. package/dist/cdn/DDTNJKR4.js +0 -4
  925. package/dist/cdn/DEZWQAMQ.js +0 -4
  926. package/dist/cdn/DFDA74PW.js +0 -4
  927. package/dist/cdn/DH3FQHDF.js +0 -4
  928. package/dist/cdn/DHX4PK3V.js +0 -4
  929. package/dist/cdn/DIKYIPRX.js +0 -4
  930. package/dist/cdn/DKGDIOYH.js +0 -4
  931. package/dist/cdn/DLTRVV62.js +0 -4
  932. package/dist/cdn/DN6WLBHD.js +0 -4
  933. package/dist/cdn/DO6ESWID.js +0 -4
  934. package/dist/cdn/DP7NOJZ5.js +0 -4
  935. package/dist/cdn/DQXKKOBB.js +0 -4
  936. package/dist/cdn/DSQJTUZR.js +0 -4
  937. package/dist/cdn/DSTT3RNS.js +0 -4
  938. package/dist/cdn/DTBYT7B3.js +0 -4
  939. package/dist/cdn/DWBLFAWO.js +0 -4
  940. package/dist/cdn/DZHKZSWF.js +0 -4
  941. package/dist/cdn/E47WSUZX.js +0 -4
  942. package/dist/cdn/E5UAZFQS.js +0 -4
  943. package/dist/cdn/E5ZQLXWB.js +0 -4
  944. package/dist/cdn/E6A5O2SE.js +0 -4
  945. package/dist/cdn/E6DGCAEH.js +0 -4
  946. package/dist/cdn/EAGKC6YU.js +0 -4
  947. package/dist/cdn/EAOFGZDD.js +0 -4
  948. package/dist/cdn/ECCH5F5Q.js +0 -4
  949. package/dist/cdn/ECFJKPKF.js +0 -4
  950. package/dist/cdn/EDPJQ6O7.js +0 -4
  951. package/dist/cdn/EEI6L7I4.js +0 -4
  952. package/dist/cdn/EESXBBLN.js +0 -4
  953. package/dist/cdn/EGBO3YSD.js +0 -4
  954. package/dist/cdn/EKQ64J5K.js +0 -4
  955. package/dist/cdn/EOHOFS3L.js +0 -4
  956. package/dist/cdn/EP3W3Q3M.js +0 -4
  957. package/dist/cdn/ETJLA5EK.js +0 -4
  958. package/dist/cdn/EV2JXOA6.js +0 -4
  959. package/dist/cdn/EWRFEQYU.js +0 -4
  960. package/dist/cdn/EXU3U5Z7.js +0 -4
  961. package/dist/cdn/EY3XHDQ7.js +0 -4
  962. package/dist/cdn/F2DYTMUU.js +0 -4
  963. package/dist/cdn/FB47VYJE.js +0 -4
  964. package/dist/cdn/FBBDA7U5.js +0 -4
  965. package/dist/cdn/FBHZFLUE.js +0 -4
  966. package/dist/cdn/FCWS4IJC.js +0 -4
  967. package/dist/cdn/FDWJKPKE.js +0 -4
  968. package/dist/cdn/FGYVTYHF.js +0 -4
  969. package/dist/cdn/FH7R7SKX.js +0 -4
  970. package/dist/cdn/FJTKWLFQ.js +0 -4
  971. package/dist/cdn/FKDK2TET.js +0 -4
  972. package/dist/cdn/FM43NFJN.js +0 -4
  973. package/dist/cdn/FMQYK4GL.js +0 -4
  974. package/dist/cdn/FORQ67CP.js +0 -4
  975. package/dist/cdn/FRCUZULR.js +0 -4
  976. package/dist/cdn/FTL6O3Q5.js +0 -4
  977. package/dist/cdn/FTLZ7UVZ.js +0 -4
  978. package/dist/cdn/FU7DZMSY.js +0 -4
  979. package/dist/cdn/FZT3PHG2.js +0 -5
  980. package/dist/cdn/G5SQ4J4J.js +0 -4
  981. package/dist/cdn/G65CYRHZ.js +0 -4
  982. package/dist/cdn/G7OIHTEW.js +0 -4
  983. package/dist/cdn/GC5IHDG2.js +0 -4
  984. package/dist/cdn/GCVAR6C3.js +0 -4
  985. package/dist/cdn/GDMBWK3C.js +0 -4
  986. package/dist/cdn/GDXJ75VJ.js +0 -4
  987. package/dist/cdn/GFCNUOH2.js +0 -4
  988. package/dist/cdn/GHSNF5A5.js +0 -4
  989. package/dist/cdn/GICMV6T3.js +0 -4
  990. package/dist/cdn/GILLOMJR.js +0 -4
  991. package/dist/cdn/GK34X7UX.js +0 -4
  992. package/dist/cdn/GLMLCIUG.js +0 -4
  993. package/dist/cdn/GNQFPPG3.js +0 -4
  994. package/dist/cdn/GOYRZLHW.js +0 -4
  995. package/dist/cdn/GR7IOR6B.js +0 -4
  996. package/dist/cdn/GREJ47N2.js +0 -4
  997. package/dist/cdn/GRILS63E.js +0 -4
  998. package/dist/cdn/GSWS7GXK.js +0 -4
  999. package/dist/cdn/GUJII33O.js +0 -4
  1000. package/dist/cdn/GZKQANXW.js +0 -4
  1001. package/dist/cdn/H3BC27SD.js +0 -4
  1002. package/dist/cdn/H4XHK3AC.js +0 -4
  1003. package/dist/cdn/H5IMAPXO.js +0 -4
  1004. package/dist/cdn/H6P2CIOU.js +0 -4
  1005. package/dist/cdn/HCRPG3LA.js +0 -4
  1006. package/dist/cdn/HG3NKY2P.js +0 -4
  1007. package/dist/cdn/HI4W4L45.js +0 -4
  1008. package/dist/cdn/HIF53QHJ.js +0 -4
  1009. package/dist/cdn/HIVAODRS.js +0 -4
  1010. package/dist/cdn/HJTKQEFU.js +0 -4
  1011. package/dist/cdn/HKMJUKWA.js +0 -4
  1012. package/dist/cdn/HLGTHHBD.js +0 -4
  1013. package/dist/cdn/HNGSZ3C4.js +0 -4
  1014. package/dist/cdn/HOPTJ767.js +0 -4
  1015. package/dist/cdn/HPBGHT2D.js +0 -4
  1016. package/dist/cdn/HPTIW7FT.js +0 -4
  1017. package/dist/cdn/HSYAQQZL.js +0 -4
  1018. package/dist/cdn/HW3U4DNV.js +0 -4
  1019. package/dist/cdn/I2E5ROHI.js +0 -4
  1020. package/dist/cdn/I2HU2VTL.js +0 -4
  1021. package/dist/cdn/I436D37I.js +0 -4
  1022. package/dist/cdn/I5QPOSEF.js +0 -4
  1023. package/dist/cdn/IAAN4ODM.js +0 -4
  1024. package/dist/cdn/ICHV62FC.js +0 -4
  1025. package/dist/cdn/IEKINDUK.js +0 -4
  1026. package/dist/cdn/IGYKPYHR.js +0 -4
  1027. package/dist/cdn/IJTUO52R.js +0 -4
  1028. package/dist/cdn/IQRQRTDA.js +0 -4
  1029. package/dist/cdn/IRQH4SGB.js +0 -4
  1030. package/dist/cdn/ITDUI6ZI.js +0 -4
  1031. package/dist/cdn/ITZPX3EO.js +0 -4
  1032. package/dist/cdn/IUABQPWP.js +0 -24
  1033. package/dist/cdn/IV46NMNM.js +0 -5
  1034. package/dist/cdn/IYEJ36PT.js +0 -4
  1035. package/dist/cdn/J7BHFO4R.js +0 -4
  1036. package/dist/cdn/J7XK3YZJ.js +0 -4
  1037. package/dist/cdn/JB4TKJMI.js +0 -4
  1038. package/dist/cdn/JBY7Y4K6.js +0 -4
  1039. package/dist/cdn/JDU67WKF.js +0 -4
  1040. package/dist/cdn/JJRKG76I.js +0 -4
  1041. package/dist/cdn/JJWKT4ED.js +0 -4
  1042. package/dist/cdn/JKEDHTY4.js +0 -4
  1043. package/dist/cdn/JKZGO72Z.js +0 -4
  1044. package/dist/cdn/JLI5LHYE.js +0 -4
  1045. package/dist/cdn/JLMFWKL6.js +0 -4
  1046. package/dist/cdn/JN5KMJNX.js +0 -4
  1047. package/dist/cdn/JNFH4UQD.js +0 -4
  1048. package/dist/cdn/JTSGVRHV.js +0 -4
  1049. package/dist/cdn/JTZP4HRO.js +0 -4
  1050. package/dist/cdn/JVTHWYQR.js +0 -4
  1051. package/dist/cdn/JWC7SBDV.js +0 -4
  1052. package/dist/cdn/JXYXY4BW.js +0 -4
  1053. package/dist/cdn/JY6NP6BO.js +0 -4
  1054. package/dist/cdn/JYQCINX2.js +0 -4
  1055. package/dist/cdn/JZL35I6A.js +0 -4
  1056. package/dist/cdn/K3IRREKY.js +0 -12
  1057. package/dist/cdn/K3NLKF3V.js +0 -4
  1058. package/dist/cdn/K3X7AUNF.js +0 -4
  1059. package/dist/cdn/K3YTLXAB.js +0 -4
  1060. package/dist/cdn/K46ZWJSV.js +0 -4
  1061. package/dist/cdn/K4JFRJB3.js +0 -4
  1062. package/dist/cdn/K4OMVMKC.js +0 -4
  1063. package/dist/cdn/K65BNBIQ.js +0 -4
  1064. package/dist/cdn/K6XLEUN2.js +0 -4
  1065. package/dist/cdn/KAYJ5M5I.js +0 -4
  1066. package/dist/cdn/KETEXK4H.js +0 -4
  1067. package/dist/cdn/KFNCQSWK.js +0 -4
  1068. package/dist/cdn/KGVUZWJJ.js +0 -4
  1069. package/dist/cdn/KK55JYYL.js +0 -4
  1070. package/dist/cdn/KMY33SWW.js +0 -4
  1071. package/dist/cdn/KQN5RBX2.js +0 -4
  1072. package/dist/cdn/KSANEHGK.js +0 -4
  1073. package/dist/cdn/KT5MNF6F.js +0 -4
  1074. package/dist/cdn/KTPCS4DB.js +0 -4
  1075. package/dist/cdn/KUWQJXGW.js +0 -4
  1076. package/dist/cdn/KXCUHEV5.js +0 -4
  1077. package/dist/cdn/KZMZAWDI.js +0 -4
  1078. package/dist/cdn/LB4GHBHE.js +0 -4
  1079. package/dist/cdn/LCODDIGD.js +0 -51
  1080. package/dist/cdn/LEXC2XLO.js +0 -4
  1081. package/dist/cdn/LFVLBUXX.js +0 -4
  1082. package/dist/cdn/LL5DVVLP.js +0 -4
  1083. package/dist/cdn/LLFPFIWD.js +0 -4
  1084. package/dist/cdn/LLWZPA3V.js +0 -4
  1085. package/dist/cdn/LMMS6HAF.js +0 -4
  1086. package/dist/cdn/LOJQPXPZ.js +0 -4
  1087. package/dist/cdn/LP6FFL6L.js +0 -4
  1088. package/dist/cdn/LSAQ2EN6.js +0 -4
  1089. package/dist/cdn/LWQY6CI3.js +0 -4
  1090. package/dist/cdn/LXAZXVMB.js +0 -4
  1091. package/dist/cdn/LZJBMSFO.js +0 -9
  1092. package/dist/cdn/LZRFZ2BY.js +0 -4
  1093. package/dist/cdn/M2QB4PKU.js +0 -4
  1094. package/dist/cdn/M37RDWLY.js +0 -4
  1095. package/dist/cdn/M3BJTBQ3.js +0 -4
  1096. package/dist/cdn/M3ZOO6WU.js +0 -4
  1097. package/dist/cdn/M4PZ5YR2.js +0 -4
  1098. package/dist/cdn/M6G2WUB2.js +0 -52
  1099. package/dist/cdn/M6G56TXZ.js +0 -4
  1100. package/dist/cdn/MCUK7Q63.js +0 -4
  1101. package/dist/cdn/MDB6BDKW.js +0 -4
  1102. package/dist/cdn/ME64HO3F.js +0 -4
  1103. package/dist/cdn/MFF3JAUL.js +0 -4
  1104. package/dist/cdn/MFM3CGL4.js +0 -4
  1105. package/dist/cdn/MFP4RAZJ.js +0 -4
  1106. package/dist/cdn/MGUI3E7N.js +0 -4
  1107. package/dist/cdn/MI2TLPF6.js +0 -4
  1108. package/dist/cdn/MK6T3DM4.js +0 -4
  1109. package/dist/cdn/MKF5SMP7.js +0 -4
  1110. package/dist/cdn/MKS7MV46.js +0 -4
  1111. package/dist/cdn/MKXWZOJU.js +0 -4
  1112. package/dist/cdn/MLG5W3LH.js +0 -4
  1113. package/dist/cdn/MM4UYP4W.js +0 -4
  1114. package/dist/cdn/MOHRFKXA.js +0 -4
  1115. package/dist/cdn/MQTA3I5C.js +0 -4
  1116. package/dist/cdn/MQUYJMV3.js +0 -4
  1117. package/dist/cdn/MQXADBR7.js +0 -4
  1118. package/dist/cdn/MVMKCTRS.js +0 -4
  1119. package/dist/cdn/MXVRMG6A.js +0 -4
  1120. package/dist/cdn/MXY2RNET.js +0 -4
  1121. package/dist/cdn/N2KNG6CX.js +0 -4
  1122. package/dist/cdn/N2T5DYBZ.js +0 -4
  1123. package/dist/cdn/N42LYDNL.js +0 -4
  1124. package/dist/cdn/N6VMMIUA.js +0 -4
  1125. package/dist/cdn/NAW3RAVU.js +0 -4
  1126. package/dist/cdn/NE3OADHY.js +0 -4
  1127. package/dist/cdn/NE4EZOP3.js +0 -4
  1128. package/dist/cdn/NIQVIU3H.js +0 -4
  1129. package/dist/cdn/NKQRQ4F5.js +0 -4
  1130. package/dist/cdn/NKYBH4HW.js +0 -6
  1131. package/dist/cdn/NMHB62K5.js +0 -4
  1132. package/dist/cdn/NNH5MUWE.js +0 -4
  1133. package/dist/cdn/NPM7OWN2.js +0 -4
  1134. package/dist/cdn/NSWO3NKN.js +0 -4
  1135. package/dist/cdn/NXHP6Q2V.js +0 -4
  1136. package/dist/cdn/NYFJWZNA.js +0 -4
  1137. package/dist/cdn/NZHM4Q4B.js +0 -4
  1138. package/dist/cdn/O24HC4W5.js +0 -4
  1139. package/dist/cdn/OE6T5GN4.js +0 -4
  1140. package/dist/cdn/OFGOMONR.js +0 -4
  1141. package/dist/cdn/OG7SFZJA.js +0 -4
  1142. package/dist/cdn/OIYJV7SB.js +0 -4
  1143. package/dist/cdn/OJG6YJU2.js +0 -4
  1144. package/dist/cdn/OJGADDZX.js +0 -4
  1145. package/dist/cdn/OKK3UBCP.js +0 -4
  1146. package/dist/cdn/OLNXYM47.js +0 -4
  1147. package/dist/cdn/OLP4YNLV.js +0 -4
  1148. package/dist/cdn/OPE7JTTE.js +0 -4
  1149. package/dist/cdn/OPZUQV25.js +0 -4
  1150. package/dist/cdn/OQH3BND5.js +0 -4
  1151. package/dist/cdn/ORYOBWHN.js +0 -4
  1152. package/dist/cdn/OSHVE4DC.js +0 -4
  1153. package/dist/cdn/OTFPBMTW.js +0 -4
  1154. package/dist/cdn/OURNK6QZ.js +0 -4
  1155. package/dist/cdn/OXINDUQD.js +0 -4
  1156. package/dist/cdn/P2AOZOA3.js +0 -4
  1157. package/dist/cdn/P2D7WEMP.js +0 -4
  1158. package/dist/cdn/P35K2RQ4.js +0 -4
  1159. package/dist/cdn/P4MXSDZZ.js +0 -4
  1160. package/dist/cdn/P5YKT2E4.js +0 -4
  1161. package/dist/cdn/P5YVCJ76.js +0 -4
  1162. package/dist/cdn/P6JAXX4U.js +0 -4
  1163. package/dist/cdn/PH2FZWCE.js +0 -4
  1164. package/dist/cdn/PIBXDILC.js +0 -4
  1165. package/dist/cdn/PKEWV6AV.js +0 -4
  1166. package/dist/cdn/PNWIFTI5.js +0 -4
  1167. package/dist/cdn/POQ2BQVQ.js +0 -4
  1168. package/dist/cdn/PRHD7LTV.js +0 -4
  1169. package/dist/cdn/PSHRDPMT.js +0 -4
  1170. package/dist/cdn/PSMMF3M2.js +0 -4
  1171. package/dist/cdn/PUAZLJVT.js +0 -4
  1172. package/dist/cdn/PZLJBXRN.js +0 -4
  1173. package/dist/cdn/Q3UD52EG.js +0 -4
  1174. package/dist/cdn/QBHUQMWL.js +0 -4
  1175. package/dist/cdn/QCWR7RUV.js +0 -4
  1176. package/dist/cdn/QIMZUYG3.js +0 -4
  1177. package/dist/cdn/QJMMM6L6.js +0 -4
  1178. package/dist/cdn/QJOUS35R.js +0 -4
  1179. package/dist/cdn/QMB3FDAJ.js +0 -4
  1180. package/dist/cdn/QNZ7PPS6.js +0 -4
  1181. package/dist/cdn/QO5JSWW6.js +0 -4
  1182. package/dist/cdn/QP5VTJTI.js +0 -4
  1183. package/dist/cdn/QRC6OLSO.js +0 -4
  1184. package/dist/cdn/QTCFRPCP.js +0 -4
  1185. package/dist/cdn/QVVPK662.js +0 -4
  1186. package/dist/cdn/R3IZQXXB.js +0 -4
  1187. package/dist/cdn/R3JQTSJM.js +0 -5470
  1188. package/dist/cdn/R5UH5STM.js +0 -4
  1189. package/dist/cdn/R6SX4C2P.js +0 -4
  1190. package/dist/cdn/R6VPN2XK.js +0 -4
  1191. package/dist/cdn/RALWLAPJ.js +0 -4
  1192. package/dist/cdn/RBRBWGI3.js +0 -4
  1193. package/dist/cdn/RE3LTR3N.js +0 -6
  1194. package/dist/cdn/REKPLSOS.js +0 -4
  1195. package/dist/cdn/RFUZRLHK.js +0 -4
  1196. package/dist/cdn/RHUCJWCN.js +0 -4
  1197. package/dist/cdn/RIQRSQQT.js +0 -4
  1198. package/dist/cdn/RNPQT27L.js +0 -4
  1199. package/dist/cdn/RQXWNCER.js +0 -4
  1200. package/dist/cdn/RSPMFOEN.js +0 -4
  1201. package/dist/cdn/RWXQ5OJI.js +0 -4
  1202. package/dist/cdn/RYYTQK6L.js +0 -4
  1203. package/dist/cdn/S26SRG5H.js +0 -4
  1204. package/dist/cdn/S2GFW6XZ.js +0 -4
  1205. package/dist/cdn/S5LMP3K5.js +0 -4
  1206. package/dist/cdn/S5NHFWDS.js +0 -4
  1207. package/dist/cdn/S6E3OY7T.js +0 -4
  1208. package/dist/cdn/S7NFU7QR.js +0 -4
  1209. package/dist/cdn/SDNIOQE2.js +0 -4
  1210. package/dist/cdn/SE4S4E4P.js +0 -4
  1211. package/dist/cdn/SEJYKOZW.js +0 -4
  1212. package/dist/cdn/SG3MRQQS.js +0 -4
  1213. package/dist/cdn/SG7SR3LQ.js +0 -4
  1214. package/dist/cdn/SGHLJAPA.js +0 -4
  1215. package/dist/cdn/SGVV7DJZ.js +0 -4
  1216. package/dist/cdn/SIBUFPAM.js +0 -4
  1217. package/dist/cdn/SM6FLGRN.js +0 -4
  1218. package/dist/cdn/SOJKIFJG.js +0 -4
  1219. package/dist/cdn/SP636M4X.js +0 -4
  1220. package/dist/cdn/SQVPXJAG.js +0 -4
  1221. package/dist/cdn/SRH6TH45.js +0 -4
  1222. package/dist/cdn/SUF7BZZR.js +0 -4
  1223. package/dist/cdn/SUIIPLHT.js +0 -4
  1224. package/dist/cdn/SUYL5G5F.js +0 -4
  1225. package/dist/cdn/SWOFPCXW.js +0 -4
  1226. package/dist/cdn/SXBD3OYL.js +0 -4
  1227. package/dist/cdn/SYEKE27I.js +0 -25
  1228. package/dist/cdn/SZ4GW2BF.js +0 -4
  1229. package/dist/cdn/T4DVEGL4.js +0 -4
  1230. package/dist/cdn/T4HWVPMC.js +0 -4
  1231. package/dist/cdn/T5BAO42T.js +0 -4
  1232. package/dist/cdn/T5RPJTNU.js +0 -4
  1233. package/dist/cdn/T66DYIQS.js +0 -6
  1234. package/dist/cdn/T6VV4ONZ.js +0 -4
  1235. package/dist/cdn/TE7Y77CP.js +0 -4
  1236. package/dist/cdn/TETS77HI.js +0 -4
  1237. package/dist/cdn/TEXK6FRJ.js +0 -4
  1238. package/dist/cdn/THK2KIE2.js +0 -4
  1239. package/dist/cdn/TL7CLK2F.js +0 -4
  1240. package/dist/cdn/TM2YVIKX.js +0 -4
  1241. package/dist/cdn/TMHFYR4U.js +0 -4
  1242. package/dist/cdn/TNGWB2Z2.js +0 -12
  1243. package/dist/cdn/TOENTTZN.js +0 -4
  1244. package/dist/cdn/TQMEM7TX.js +0 -4
  1245. package/dist/cdn/TRT7GRU7.js +0 -4
  1246. package/dist/cdn/TSKWZMU2.js +0 -4
  1247. package/dist/cdn/TSSJJZAQ.js +0 -4
  1248. package/dist/cdn/TU2TZIOE.js +0 -4
  1249. package/dist/cdn/TWOXTFL5.js +0 -4
  1250. package/dist/cdn/TY7YFLIP.js +0 -4
  1251. package/dist/cdn/TYOXE2VF.js +0 -4
  1252. package/dist/cdn/U37R6YH5.js +0 -4
  1253. package/dist/cdn/U5IHILSR.js +0 -4
  1254. package/dist/cdn/UCNNVIFH.js +0 -4
  1255. package/dist/cdn/UETQQWJR.js +0 -4
  1256. package/dist/cdn/UFG3BQVX.js +0 -4
  1257. package/dist/cdn/UHYKOVRK.js +0 -4
  1258. package/dist/cdn/UIHTD25G.js +0 -4
  1259. package/dist/cdn/UIZNTSZ4.js +0 -4
  1260. package/dist/cdn/UJ2ONFPP.js +0 -4
  1261. package/dist/cdn/UJNIWZNR.js +0 -4
  1262. package/dist/cdn/UMGKN7XH.js +0 -4
  1263. package/dist/cdn/UNQVM4WC.js +0 -4
  1264. package/dist/cdn/UQWJCH4B.js +0 -4
  1265. package/dist/cdn/UTA3YMOD.js +0 -4
  1266. package/dist/cdn/UU4RSSY6.js +0 -4
  1267. package/dist/cdn/UVVGFBAO.js +0 -4
  1268. package/dist/cdn/UZXXHWUU.js +0 -4
  1269. package/dist/cdn/V2WG2Z2L.js +0 -4
  1270. package/dist/cdn/V3DIUBHR.js +0 -4
  1271. package/dist/cdn/V3E2SKT5.js +0 -4
  1272. package/dist/cdn/V5QVHIYE.js +0 -4
  1273. package/dist/cdn/V6NHKOVW.js +0 -4
  1274. package/dist/cdn/V6QIK44K.js +0 -4
  1275. package/dist/cdn/VAJUPB4H.js +0 -4
  1276. package/dist/cdn/VDKRXFSF.js +0 -8
  1277. package/dist/cdn/VIIB6PRL.js +0 -4
  1278. package/dist/cdn/VJT66KDA.js +0 -4
  1279. package/dist/cdn/VJTJYEXN.js +0 -4
  1280. package/dist/cdn/VLYR64XL.js +0 -4
  1281. package/dist/cdn/VNCTCE3W.js +0 -5
  1282. package/dist/cdn/VQCAEAMG.js +0 -4
  1283. package/dist/cdn/VQQ3WZ42.js +0 -4
  1284. package/dist/cdn/VRDM4I7J.js +0 -4
  1285. package/dist/cdn/VSPWXVBG.js +0 -4
  1286. package/dist/cdn/VST3UOBN.js +0 -4
  1287. package/dist/cdn/VVUHYTPP.js +0 -4
  1288. package/dist/cdn/VWVG4LGD.js +0 -4
  1289. package/dist/cdn/VYJILSFN.js +0 -4
  1290. package/dist/cdn/W2ENVDR4.js +0 -4
  1291. package/dist/cdn/W2VUBLW2.js +0 -4
  1292. package/dist/cdn/W3KZGJKS.js +0 -4
  1293. package/dist/cdn/W4I6EPD5.js +0 -4
  1294. package/dist/cdn/WAE4Y3GA.js +0 -4
  1295. package/dist/cdn/WBARWQE5.js +0 -4
  1296. package/dist/cdn/WEHYONDE.js +0 -4
  1297. package/dist/cdn/WGCSNCQV.js +0 -4
  1298. package/dist/cdn/WHNYGNQK.js +0 -42
  1299. package/dist/cdn/WKEC2XG3.js +0 -4
  1300. package/dist/cdn/WMWUTDRN.js +0 -4
  1301. package/dist/cdn/WP7DDOMM.js +0 -3
  1302. package/dist/cdn/WQ2BTR2G.js +0 -4
  1303. package/dist/cdn/WQHPGOEB.js +0 -4
  1304. package/dist/cdn/WR47QMI3.js +0 -4
  1305. package/dist/cdn/WSDBFWIV.js +0 -4
  1306. package/dist/cdn/WTP62YJ2.js +0 -4
  1307. package/dist/cdn/WTTN2JXJ.js +0 -4
  1308. package/dist/cdn/WY42U3F5.js +0 -4
  1309. package/dist/cdn/X2QAYAXN.js +0 -4
  1310. package/dist/cdn/X37CVCBK.js +0 -4
  1311. package/dist/cdn/X3O37OTI.js +0 -4
  1312. package/dist/cdn/X4H6BN5G.js +0 -4
  1313. package/dist/cdn/X7SNHOQL.js +0 -4
  1314. package/dist/cdn/XACC7WYK.js +0 -4
  1315. package/dist/cdn/XAURY4UO.js +0 -4
  1316. package/dist/cdn/XBRL2JOD.js +0 -4
  1317. package/dist/cdn/XCC736PP.js +0 -4
  1318. package/dist/cdn/XCROLCMJ.js +0 -4
  1319. package/dist/cdn/XEIXFQQD.js +0 -4
  1320. package/dist/cdn/XEKEHUN2.js +0 -4
  1321. package/dist/cdn/XGARGL7T.js +0 -4
  1322. package/dist/cdn/XHGGBDVC.js +0 -4
  1323. package/dist/cdn/XHSY3PRD.js +0 -4
  1324. package/dist/cdn/XIGFML3Z.js +0 -4
  1325. package/dist/cdn/XIMPBRRO.js +0 -4
  1326. package/dist/cdn/XQSXWOFG.js +0 -4
  1327. package/dist/cdn/XRWD4FIL.js +0 -4
  1328. package/dist/cdn/XRY5Q7JW.js +0 -4
  1329. package/dist/cdn/XUCTVEYH.js +0 -4
  1330. package/dist/cdn/XXASVXXG.js +0 -4
  1331. package/dist/cdn/XZFE4EQY.js +0 -4
  1332. package/dist/cdn/Y3QJZSKH.js +0 -4
  1333. package/dist/cdn/Y6EYKJ7Z.js +0 -4
  1334. package/dist/cdn/Y7VLYSJP.js +0 -4
  1335. package/dist/cdn/YKYP2GDN.js +0 -4
  1336. package/dist/cdn/YNIKQBUV.js +0 -4
  1337. package/dist/cdn/YRJDB7GR.js +0 -4
  1338. package/dist/cdn/YTG4YHNU.js +0 -4
  1339. package/dist/cdn/YWTGV5G4.js +0 -4
  1340. package/dist/cdn/YY3QZUH2.js +0 -4
  1341. package/dist/cdn/YYYBBJD3.js +0 -4
  1342. package/dist/cdn/YYYISRZY.js +0 -4
  1343. package/dist/cdn/Z26QDS3O.js +0 -4
  1344. package/dist/cdn/Z3D65JKJ.js +0 -4
  1345. package/dist/cdn/Z3KWQUUZ.js +0 -4
  1346. package/dist/cdn/Z4DKKK7K.js +0 -4
  1347. package/dist/cdn/Z5YYGKT5.js +0 -4
  1348. package/dist/cdn/Z6OTASFO.js +0 -4
  1349. package/dist/cdn/Z7O7LWBJ.js +0 -4
  1350. package/dist/cdn/ZBI72URB.js +0 -4
  1351. package/dist/cdn/ZC2Z7OX6.js +0 -4
  1352. package/dist/cdn/ZCB7MPIU.js +0 -4
  1353. package/dist/cdn/ZFLCJDOO.js +0 -4
  1354. package/dist/cdn/ZFMJNKLO.js +0 -4
  1355. package/dist/cdn/ZHJOKMWX.js +0 -4
  1356. package/dist/cdn/ZJI4DYQK.js +0 -4
  1357. package/dist/cdn/ZKEJBEA4.js +0 -4
  1358. package/dist/cdn/ZKOMPWXX.js +0 -4
  1359. package/dist/cdn/ZLUYGUDE.js +0 -4
  1360. package/dist/cdn/ZQTQQZZH.js +0 -4
  1361. package/dist/cdn/ZRF7EF5V.js +0 -4
  1362. package/dist/cdn/ZSZ2STJE.js +0 -4
  1363. package/dist/cdn/ZUGTLVFI.js +0 -4
  1364. package/dist/cdn/ZWZXXMCN.js +0 -4
  1365. package/dist/cdn/ZX7P5KCX.js +0 -4
  1366. package/dist/cdn/ZZHBLCYL.js +0 -4
@@ -1,16 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.13/esri/copyright.txt for details.
3
- v0.13.1 */
4
- import{a as yt}from"./BKHUA4EN.js";import{a as Ee}from"./IJTUO52R.js";import{a as Te,b as Le,c as je,d as He,e as Fe}from"./VWVG4LGD.js";import{a as mt}from"./SWOFPCXW.js";import{a as gt,c as bt}from"./LZJBMSFO.js";import{a as ne}from"./672VG6AM.js";import{a as ue}from"./22U5TR2O.js";import{a as pe}from"./GC5IHDG2.js";import b from"./2A2B5HYT.js";import"./S26SRG5H.js";import{a as Se}from"./KT5MNF6F.js";import{a as ie,b as ke}from"./2RRSN2PS.js";import{a as de,b as H}from"./5KBR6TL7.js";import a from"./QMB3FDAJ.js";import"./GK34X7UX.js";import"./5P7Y7FRU.js";import{a as K}from"./LSAQ2EN6.js";import{a as Me}from"./22BVVS45.js";import{a as y,d as Je,e as Xe,f as Ce,g as Ze,h as ce,j as we,k as et,m as Oe,r as tt,t as xe,v as st}from"./NE3OADHY.js";import{a as it,b as nt}from"./P4MXSDZZ.js";import{a as Ie}from"./K3X7AUNF.js";import{a as ot}from"./7IR3BQUS.js";import{b as Ue}from"./MQUYJMV3.js";import{a as at}from"./PSHRDPMT.js";import"./OJG6YJU2.js";import"./DLTRVV62.js";import"./SG3MRQQS.js";import"./3JNZKALP.js";import"./VNCTCE3W.js";import"./3H2XVCUA.js";import"./NSWO3NKN.js";import{m as Ye,n as Qe}from"./6K6WKPZQ.js";import"./T4DVEGL4.js";import"./V6NHKOVW.js";import"./IRQH4SGB.js";import"./FBHZFLUE.js";import"./VSPWXVBG.js";import"./EGBO3YSD.js";import"./COVS2GLW.js";import"./5LNMPOSU.js";import"./3JQFOVPN.js";import"./SUYL5G5F.js";import"./PNWIFTI5.js";import"./UETQQWJR.js";import"./GOYRZLHW.js";import"./ZCB7MPIU.js";import"./OPZUQV25.js";import{$ as z,L as k,N as re,O as C,X as ze,Z as Ke,_ as qe,aa as We,ba as _e,ca as $e,o as Y}from"./5CWJU6RW.js";import"./DWBLFAWO.js";import"./NPM7OWN2.js";import"./QO5JSWW6.js";import"./XHGGBDVC.js";import"./P5YVCJ76.js";import"./G65CYRHZ.js";import"./XAURY4UO.js";import"./7EZSEWT3.js";import"./DFDA74PW.js";import"./A6B6M6IC.js";import"./PUAZLJVT.js";import"./RBRBWGI3.js";import"./VYJILSFN.js";import{f as fe,k as x,l as Be,m as ve,n as Ge}from"./HLGTHHBD.js";import"./7BWZGM37.js";import"./V2WG2Z2L.js";import"./XRY5Q7JW.js";import"./ZUGTLVFI.js";import"./EWRFEQYU.js";import"./TNGWB2Z2.js";import"./W2ENVDR4.js";import"./HG3NKY2P.js";import"./LMMS6HAF.js";import"./AE3YP3DS.js";import"./3TKT33QR.js";import"./XCROLCMJ.js";import"./6N54EYC3.js";import"./WQHPGOEB.js";import"./PZLJBXRN.js";import{h as ye}from"./J7XK3YZJ.js";import"./TU2TZIOE.js";import"./GUJII33O.js";import"./47DVYEBK.js";import"./UCNNVIFH.js";import"./WR47QMI3.js";import"./TY7YFLIP.js";import"./73GZFDLD.js";import"./FGYVTYHF.js";import"./FORQ67CP.js";import"./XBRL2JOD.js";import"./C44U2OB4.js";import"./6AEVM2ZJ.js";import"./FTL6O3Q5.js";import"./5AV2EUV3.js";import"./DN6WLBHD.js";import"./UFG3BQVX.js";import{a as $}from"./JBY7Y4K6.js";import{c as Q,g as Ne,j as oe}from"./7FCQMEWY.js";import"./22KLMUMX.js";import{a as g}from"./7S7LGGUA.js";import"./SM6FLGRN.js";import{a as j}from"./SYEKE27I.js";import"./TETS77HI.js";import"./A4ZBGD5O.js";import{b as r,c as q,d as F,e as v,h as E,i as N}from"./DTBYT7B3.js";import"./LEXC2XLO.js";import"./D4GA6N3R.js";import"./UJNIWZNR.js";import"./PKEWV6AV.js";import"./ITDUI6ZI.js";import"./LLFPFIWD.js";import{o as Ve}from"./S7NFU7QR.js";import"./3BK6FEHB.js";import"./OFGOMONR.js";import"./A5HPY7H3.js";import{a as X}from"./7OMQGXTT.js";import{a as G}from"./EV2JXOA6.js";import"./57G44J3J.js";import"./WEHYONDE.js";import"./O24HC4W5.js";export default $arcgis.t(([,{a:le,b:rt,c:Re,h:Pe,i:se,j:Z,n:ct,p:lt,q:Ae,r:dt,s:ut,u:De,v:ht},{a:pt,b:he}])=>{function Dt(e){function t(s,i,o){let{get:n}=o,a=function(){let l=n.call(this);return gt(l,e)};return Object.assign(Object.assign({},o),{get:a})}return t}var St="data-mention",kt=new RegExp(`<[a-z-]+( [a-z-]+(=('|")[\\w- ]+('|"))?)*( ${St}=('|")[\\w@\\.-]+('|"))( [a-z-]+(=('|")[\\w- ]+('|"))?)*>@[\\w@\\.-]+</[a-z-]+>`,"g"),Et=(e,t)=>{let s=ce(e)[0];return t?t.find(i=>i.userId===s):null};function Tt(e,t,s,i,o){let n=Q(),a=(c="")=>{var l,d,u,h,p,m,b,f,_,w,A;let R=c.match(kt);if(R){let[I]=R,O=c.indexOf(I),S=O+I.length,T=O>0?c.substring(0,O):"",U=c.substring(O,O+I.length),P=Et(U,i),B=U.replace(I,`<arcgis-hub-discussions-mention-popover
5
- access="${(d=(l=P?.user)===null||l===void 0?void 0:l.access)!==null&&d!==void 0?d:""}"
6
- channel-access="${x(o)}"
7
- channel-id="${o.id}"
8
- creator-username="${s?.username||t.creator}"
9
- full-name="${(h=(u=P.user)===null||u===void 0?void 0:u.fullName)!==null&&h!==void 0?h:""}"
10
- organization="${(m=(p=P.org)===null||p===void 0?void 0:p.name)!==null&&m!==void 0?m:""}"
11
- region="${((b=P.user)===null||b===void 0?void 0:b.region)||""}"
12
- thumbnail="${((f=P.user)===null||f===void 0?void 0:f.thumbnail)||""}"
13
- token="${(_=n.hubRequestOptions.authentication)===null||_===void 0?void 0:_.token}"
14
- user-id="${(A=(w=P.user)===null||w===void 0?void 0:w.id)!==null&&A!==void 0?A:""}"
15
- username="${P.userId}"
16
- >${I}</arcgis-hub-discussions-mention-popover>`);return T+B+a(c.substring(S))}else return c};return a(e)}function Lt(){function e(t,s,i){let{get:o}=i,n=function(){let c=o.call(this);return Tt(c,this.post,this.postCreator,this.postMentionedUsers,this.channel)};return Object.assign(Object.assign({},i),{get:n})}return e}function jt(e,t,s){let i={channelId:e,postId:t,discussions:!0};s&&(i.replyId=t,i.postId=s);let o=new URL(globalThis.location.href);Object.entries(i).forEach(([n,a])=>{o.searchParams.set(n,a.toString())}),navigator.clipboard.writeText(o.toString())}async function ft(e,t){let{post:s}=e,{postMentionedUsers:i}=e;if(s){let o=ce(s.body);i=(i??[]).filter(c=>o.includes(c.userId));let n=o.filter(c=>!i.find(l=>c===l.userId)),a=await Promise.all(n.map(async c=>{let l,d,u,h;try{l=await Le(c,t),d=null}catch(p){d=p,l=null}try{u=l?.orgId?await mt(l.orgId,t):null,h=null}catch(p){h=p,u=null}return{userId:c,user:l,userError:d,org:u,orgError:h}}));i=[...i,...a]}else i=null;return{postMentionedUsers:i}}function wt(e,t){function s(i,o,n){let{get:a}=n,c=function(...d){var u;let h=a.apply(this,d);return h&&this.post.status!==k.APPROVED?bt(h,(u=this.channel.blockWords)!==null&&u!==void 0?u:[],e,t,this.intl,{labelKey:"blockedWordTooltipLabel",textKey:"blockedWordTooltipText"}):h};return Object.assign(Object.assign({},n),{get:c})}return s}var Ht=`.sc-arcgis-hub-discussions-post-h{display:block}.sc-arcgis-hub-discussions-post-h:not([parent-id]){padding-top:0.75rem;padding-bottom:0.75rem}[data-view$="renderPost"].sc-arcgis-hub-discussions-post-h{background-color:var(--calcite-color-foreground-1)}[data-view$="renderEditor"].sc-arcgis-hub-discussions-post-h:not([parent-id]){background-color:transparent}arcgis-hub-discussions-post-header.sc-arcgis-hub-discussions-post,.sc-arcgis-hub-discussions-post-s>[slot='metadata']{margin-left:1rem;margin-right:1rem;margin-bottom:0.5rem}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-header.sc-arcgis-hub-discussions-post,.sc-arcgis-hub-discussions-post-h[parent-id].sc-arcgis-hub-discussions-post-s>[slot='metadata'],.sc-arcgis-hub-discussions-post-h[parent-id] .sc-arcgis-hub-discussions-post-s>[slot='metadata']{margin-left:0px;margin-right:0px}.sc-arcgis-hub-discussions-post-s>[slot='metadata'],.sc-arcgis-hub-discussions-post-s>[slot='editor']{display:none}.sc-arcgis-hub-discussions-post-h:has(slot-fb[name='metadata']).sc-arcgis-hub-discussions-post-s>[slot='metadata'],.sc-arcgis-hub-discussions-post-h:has(slot-fb[name='metadata']) .sc-arcgis-hub-discussions-post-s>[slot='metadata'],.sc-arcgis-hub-discussions-post-h:has(slot-fb[name='editor']).sc-arcgis-hub-discussions-post-s>[slot='editor'],.sc-arcgis-hub-discussions-post-h:has(slot-fb[name='editor']) .sc-arcgis-hub-discussions-post-s>[slot='editor']{display:block}arcgis-hub-discussions-post-chips.sc-arcgis-hub-discussions-post{padding-left:1rem;padding-right:1rem;padding-bottom:0.75rem}header.sc-arcgis-hub-discussions-post{margin-left:1rem;margin-right:1rem;margin-bottom:0.25rem;overflow-wrap:break-word;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}arcgis-multiline-ellipsis.sc-arcgis-hub-discussions-post{margin:0px;margin-left:1rem;margin-right:1rem;font-size:var(--calcite-font-size-0);line-height:1.375rem;color:var(--calcite-color-text-1)}footer.sc-arcgis-hub-discussions-post{display:flex;flex-direction:column}article.sc-arcgis-hub-discussions-post:has(arcgis-hub-discussions-post-geography[data-count='0']) footer.sc-arcgis-hub-discussions-post:not(:has(arcgis-hub-discussions-post-reactions)){margin-top:0.5rem}footer.sc-arcgis-hub-discussions-post .actions.sc-arcgis-hub-discussions-post{margin-left:0.5rem;margin-right:0.5rem;display:flex;justify-content:space-between}footer.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-reactions.sc-arcgis-hub-discussions-post{margin-left:1rem;margin-right:1rem;margin-top:0.75rem;margin-bottom:0.75rem}[parent-id].sc-arcgis-hub-discussions-post-h footer.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-reactions.sc-arcgis-hub-discussions-post{margin-left:0px;margin-right:0px}arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post{margin-top:0px;margin-bottom:0px;margin-left:var(--arcgis-hub-discussions-post-editor-x-margin, 0.75rem);margin-right:var(--arcgis-hub-discussions-post-editor-x-margin, 0.75rem)}calcite-notice.sc-arcgis-hub-discussions-post{margin-left:1rem;margin-right:1rem;margin-bottom:1.5rem}footer.sc-arcgis-hub-discussions-post+calcite-notice.sc-arcgis-hub-discussions-post{margin-top:1rem}arcgis-hub-discussions-post-geography[loading].sc-arcgis-hub-discussions-post{margin-left:1rem;margin-right:1rem}calcite-popover[data-popper-placement][data-popper-reference-hidden].sc-arcgis-hub-discussions-post{pointer-events:auto;opacity:1}calcite-popover.sc-arcgis-hub-discussions-post{pointer-events:auto !important}.discussions-post-action-menu.sc-arcgis-hub-discussions-post:active .discussions-post-action-menu-icon.sc-arcgis-hub-discussions-post{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.discussions-post-action-menu-options.sc-arcgis-hub-discussions-post:active{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.discussions-post-action-menu-options.sc-arcgis-hub-discussions-post:active .discussions-post-action-menu-options-icon.sc-arcgis-hub-discussions-post{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.discussions-post-replies.sc-arcgis-hub-discussions-post:active{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.discussions-post-replies.sc-arcgis-hub-discussions-post:active .discussions-post-replies-icon.sc-arcgis-hub-discussions-post{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.actions.sc-arcgis-hub-discussions-post{display:flex;align-items:center}[parent-id].sc-arcgis-hub-discussions-post-h article.sc-arcgis-hub-discussions-post{position:relative;display:grid;grid-template-rows:repeat(1, minmax(0, 1fr));gap:0.75rem;grid-template-columns:2rem auto}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-chips.sc-arcgis-hub-discussions-post{padding-bottom:0px}[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips:not([data-count='0'])) div.sc-arcgis-hub-discussions-post{grid-row-start:2;grid-row-end:2}[parent-id].sc-arcgis-hub-discussions-post-h article.arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post,[parent-id].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post{padding-bottom:1.25rem}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post{position:relative;z-index:10}[parent-id].sc-arcgis-hub-discussions-post-h article.arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post::before,[parent-id].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{position:absolute;top:0px;display:block;height:100%;width:0.125rem;background-color:var(--calcite-color-foreground-2);left:15px;content:''}[parent-id][index='0'].sc-arcgis-hub-discussions-post-h article.arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post::before,[parent-id][index='0'].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{top:2.25rem;height:calc(100% - 2.25rem)}[parent-id][index='0'].sc-arcgis-hub-discussions-post-h article.arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post::before,[parent-id][index='0'].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{height:0px}[parent-id][index='0'].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count]) article.arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post::before,[parent-id][index='0'].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count]) .arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{top:2.75rem;height:calc(100% - 2.75rem)}[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count]) article.arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post::before,[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count]) .arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{height:2.25rem}[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count='0']) .arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post{padding-top:0.25rem}[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count='0']) article.arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post::before,[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count='0']) .arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{height:0px}[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips) article.arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post::before,[parent-id].sc-arcgis-hub-discussions-post-h article.arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post:not(:has(arcgis-hub-discussions-post-chips))::before,[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips) .arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before,[parent-id].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post:not(:has(arcgis-hub-discussions-post-chips)) arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{height:0px}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post{margin-left:0px;margin-right:0px}[parent-id].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post{padding-bottom:1.5rem}[parent-id].sc-arcgis-hub-discussions-post-h article.arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before,[parent-id].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before{z-index:-10}[parent-id].sc-arcgis-hub-discussions-post-h .arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post::before,[parent-id][index='0'].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count='0']) article.arcgis-hub-discussions-post-lead.arcgis-hub-discussions-post-last.sc-arcgis-hub-discussions-post::before{height:0px}[parent-id][index='0'].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips[data-count='0']) article.arcgis-hub-discussions-post-lead.sc-arcgis-hub-discussions-post::before{top:2.25rem;height:calc(100% - 2.25rem)}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-multiline-ellipsis.sc-arcgis-hub-discussions-post{margin-left:0px;margin-right:0px}[parent-id].sc-arcgis-hub-discussions-post-h calcite-action-group.sc-arcgis-hub-discussions-post{margin-left:-0.5rem}.hidden.sc-arcgis-hub-discussions-post{visibility:hidden}@keyframes in-right{0%{opacity:0;transform:translate3D(-100%, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}article.in.sc-arcgis-hub-discussions-post{animation:in-right 300ms ease-out forwards}@keyframes out-left{0%{opacity:1;transform:translate3D(0, 0, 0)}100%{opacity:0;transform:translate3D(-100%, 0, 0)}}article.out.sc-arcgis-hub-discussions-post{animation:out-left 300ms ease-out forwards}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-post{padding-bottom:1rem}.arcgis-hub-discussions-post-editor-container.sc-arcgis-hub-discussions-post{overflow:visible}@keyframes in-left{0%{opacity:0;transform:translate3D(100%, 0, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}.arcgis-hub-discussions-post-editor-container.in.sc-arcgis-hub-discussions-post{animation:in-left 300ms ease-out forwards}@keyframes out-right{0%{opacity:1;transform:translate3D(0, 0, 0)}100%{opacity:0;transform:translate3D(100%, 0, 0)}}.arcgis-hub-discussions-post-editor-container.out.sc-arcgis-hub-discussions-post{animation:out-right 300ms ease-out forwards}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-editor[post-id][parent-id].sc-arcgis-hub-discussions-post{padding-left:0px;padding-right:0px}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-multiline-ellipsis.sc-arcgis-hub-discussions-post+calcite-notice.sc-arcgis-hub-discussions-post{margin-top:1rem}[parent-id].sc-arcgis-hub-discussions-post-h article.sc-arcgis-hub-discussions-post{padding-top:0.75rem;padding-bottom:0.75rem}[parent-id].sc-arcgis-hub-discussions-post-h article.out-of-context.sc-arcgis-hub-discussions-post{margin-left:1rem;margin-right:1rem;display:grid;gap:0.5rem;font-style:normal;grid-template-columns:1fr}[parent-id].sc-arcgis-hub-discussions-post-h article.out-of-context.sc-arcgis-hub-discussions-post>div.reply-body.sc-arcgis-hub-discussions-post{display:grid;gap:0.25rem}[parent-id].sc-arcgis-hub-discussions-post-h article.out-of-context.sc-arcgis-hub-discussions-post>div.reply-body.sc-arcgis-hub-discussions-post>arcgis-hub-discussions-post-geography.sc-arcgis-hub-discussions-post{margin-left:-1rem}[parent-id].sc-arcgis-hub-discussions-post-h article.out-of-context.sc-arcgis-hub-discussions-post>div.reply-body.sc-arcgis-hub-discussions-post>arcgis-hub-discussions-post-reactions.sc-arcgis-hub-discussions-post{grid-column:span 1 / span 1}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-popover.sc-arcgis-hub-discussions-post{grid-row:span 2 / span 2;grid-row-start:1;grid-row-end:1}[parent-id].sc-arcgis-hub-discussions-post-h:has(arcgis-hub-discussions-post-chips:not([data-count='0'])) arcgis-hub-discussions-popover.sc-arcgis-hub-discussions-post{grid-row-start:2;grid-row-end:2}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-chips.sc-arcgis-hub-discussions-post{grid-column-start:2;grid-row-start:1;grid-row-end:1;height:1.5rem}[parent-id].sc-arcgis-hub-discussions-post-h calcite-avatar.sc-arcgis-hub-discussions-post{position:relative;margin-top:-0.25rem;padding-top:0.25rem;padding-bottom:0.25rem;background-color:var(--calcite-color-foreground-1);box-sizing:initial}[parent-id].sc-arcgis-hub-discussions-post-h footer.sc-arcgis-hub-discussions-post{display:grid;grid-template-columns:auto 48px}[parent-id].sc-arcgis-hub-discussions-post-h footer.sc-arcgis-hub-discussions-post calcite-action.sc-arcgis-hub-discussions-post{grid-column-start:2}[parent-id].sc-arcgis-hub-discussions-post-h arcgis-hub-discussions-post-reactions.sc-arcgis-hub-discussions-post{grid-column:span 2 / span 2;margin-top:0.75rem;margin-bottom:0.75rem}[parent-id].sc-arcgis-hub-discussions-post-h calcite-notice.sc-arcgis-hub-discussions-post{margin:0px}.blocked.sc-arcgis-hub-discussions-post{-webkit-text-decoration-line:underline;text-decoration-line:underline;-webkit-text-decoration-color:var(--calcite-color-status-danger);text-decoration-color:var(--calcite-color-status-danger);-webkit-text-decoration-style:dashed;text-decoration-style:dashed;color:var(--calcite-color-status-danger)}`,Ft=Ht,J=function(e,t,s,i){var o=arguments.length,n=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,s,i);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(n=(o<3?a(n):o>3?a(t,s,n):a(t,s))||n);return o>3&&n&&Object.defineProperty(t,s,n),n},D;(function(e){e.Skeleton="skeleton",e.Post="post",e.Reply="reply",e.OutOfContext="outOfContext",e.Editor="editor",e.Deleted="deleted",e.Hidden="hidden"})(D||(D={}));var L;(function(e){e.IN="in",e.OUT="out",e.HIDDEN="hidden"})(L||(L={}));var W=class{constructor(e){N(this,e),this.arcgisHubDiscussionsPostEdit=v(this,"arcgisHubDiscussionsPostEdit",7),this.arcgisHubDiscussionsPostDelete=v(this,"arcgisHubDiscussionsPostDelete",7),this.arcgisHubDiscussionsPostSelect=v(this,"arcgisHubDiscussionsPostSelect",7),this.arcgisHubDiscussionsGeometryDrawReset=v(this,"arcgisHubDiscussionsGeometryDrawReset",7),this.arcgisHubDiscussionsGeometryDeselect=v(this,"arcgisHubDiscussionsGeometryDeselect",7),this.hubTelemetry=v(this,"hubTelemetry",7),this.arcgisHubDiscussionsPostReady=v(this,"arcgisHubDiscussionsPostReady",7),this.postId=void 0,this.post=void 0,this.postCreator=void 0,this.postCreatorOrg=void 0,this.postError=void 0,this.postMentionedUsers=void 0,this.channelId=void 0,this.channel=void 0,this.channelGroups=void 0,this.parentId=void 0,this.parent=void 0,this.parentCreator=void 0,this.parentCreatorOrg=void 0,this.hasMap=void 0,this.isHub=void 0,this.unsavedFeatures=void 0,this.unsavedRelatedFeatures=void 0,this.unsavedExistingFeatures=[],this.preview=void 0,this.index=void 0,this.discussion=void 0,this.entityId=void 0,this.entityType=void 0,this.discussionSettings=void 0,this.entity=void 0,this.displayFieldValid=void 0,this.displayFieldValue=void 0,this.displayFieldKey=void 0,this.isMobile=void 0,this.locationId=void 0,this.lead=void 0,this.lastIndex=void 0,this.loading=void 0,this.showLocations=void 0,this.disableSelectExistingLocation=void 0,this.locationDescriptionText=void 0,this.showChannelAvatar=void 0,this.showChannelName=void 0,this._context=Q(),this.minHeight=null,this.popoverIsOpen=void 0,this.articleClass=null,this.editorClass=L.HIDDEN,this.renderedEl=null,this.editing=!1,this.errorMessage=null,this.intl=void 0,this.isCopied=void 0,this._loading=!1,$(this,"handleDelete","handleEdit","handleCopyLink","handleCopyTooltipBeforeOpen","handleCopyTooltipClose","handleActionsPopoverBeforeOpenClose","handleToggleVisibility","handleViewThread","handleReply","handleViewReplies","handleLinkClicked","renderDeleted","renderHidden","renderPost","renderReply","renderEditor","renderSkeleton","handleViewPost","handleSetComponentRef","handleAnimationEnd","renderReplyOutOfContext","handleViewAllReplies","handleReplyOutOfContextReadMore")}connectedCallback(){oe(this),this.addAnimationEventListeners(this.renderedEl)}componentWillLoad(){this.initialize()}disconnectedCallback(){this.removeAnimationEventListeners(this.renderedEl),this.disconnectContext()}handlePostViewAllGeography(){let{postId:e,post:t,postCreator:s,postCreatorOrg:i,channel:o,channelGroups:n,channelId:a}=this;this.arcgisHubDiscussionsPostSelect.emit({parent:t,parentId:e,parentCreator:s,parentCreatorOrg:i,channelId:a,channel:o,channelGroups:n})}handleMultilineEllipsisExpanded(e){this.isReply||(e.preventDefault(),e.stopPropagation(),this.handleViewThread())}handleCalcitePopoverOpen(e){var t;let{open:s}=e.target;e.target!==this.menuPopoverElement&&(!((t=this.menuPopoverElement)===null||t===void 0)&&t.open)?this.menuPopoverElement.setFocus():e.target===this.menuPopoverElement&&s&&this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.interaction.action.open.label.popover.details.options),{position:this.index}))}handleReactionChanged(e){e.stopPropagation();let t=e.target;this.post=t.post,this.arcgisHubDiscussionsPostEdit.emit(t.post)}emitHubTelemetry(e){let{postId:t,parentId:s,channel:i,channelId:o}=this;this.hubTelemetry.emit(Object.assign(Object.assign({},e),{postId:t,parentId:s,channelId:o,channelAccess:i?x(i):void 0}))}async loadDependencies(){return this._loading=!0,this.fetchDependencies().then(e=>{Object.assign(this,e),this._loading=!1,this.arcgisHubDiscussionsPostReady.emit()})}fetchDependencies(){return this._fetchDependencies()}async _fetchDependencies(){let{postId:e,postCreator:t,postCreatorOrg:s,parent:i,parentId:o,parentCreator:n,post:a,postMentionedUsers:c,channel:l,channelId:d,_context:u,discussion:h,entityId:p,entity:m,entityType:b,discussionSettings:f,displayFieldKey:_,displayFieldValid:w,displayFieldValue:A,isHub:R,locationId:I,channelGroups:O}=this,[S,T]=await Promise.all([Te({postId:e,post:a},u.hubRequestOptions),ue({isHub:R},u.hubRequestOptions)]),[U,P]=await Promise.all([je(Object.assign({postCreator:t,postCreatorOrg:s},S),u.hubRequestOptions),He(Object.assign({parentId:o,parent:i},S),u.hubRequestOptions)]),[B,ge,be,me]=await Promise.all([he(Object.assign(Object.assign({discussion:h,entityId:p,entityType:b,entity:m,displayFieldKey:_,displayFieldValid:w,displayFieldValue:A,locationId:I,discussionSettings:f},S),P),u.hubRequestOptions,!0),pe(Object.assign(Object.assign({channelId:d,channel:l,channelGroups:O},S),P),u.hubRequestOptions),Fe(Object.assign({parentCreator:n},P),u.hubRequestOptions),ft(Object.assign({postMentionedUsers:c},S),u.hubRequestOptions)]);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},S),U),P),be),ge),B),T),me)}async initialize(){this.loadTranslations(),this._context&&this.loadDependencies()}async loadTranslations(){this.intl=await j.loadIntlForComponent(this.element)}get postBody(){return this.post.body}get postTitle(){return this.post.title}get isRtl(){return this.intl.direction==="rtl"}handleDelete(){let{_context:e,postId:t,post:s,menuPopoverElement:i,isReply:o}=this;return this.errorMessage=null,i&&(i.open=!1),We(Object.assign({postId:t},e.hubRequestOptions)).then(()=>{this.deletedDuringSession=!0,this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.content.action.delete),{response:g.constants.response.SUCCESS})),this.arcgisHubDiscussionsPostDelete.emit(s)}).catch(n=>{this.errorMessage=o?"deleteFailureReply":"deleteFailure",this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.content.action.delete),{response:g.constants.response.FAILURE})),console.error("Could not delete post:",n.message)})}handleEdit(){this.menuPopoverElement&&(this.menuPopoverElement.open=!1),setTimeout(()=>this.transitionEditorView(!0),100),this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.interaction.action.open.label.editor),{position:this.index}))}handleCopyLink(){jt(this.channelId,this.postId,this.parentId),this.isCopied=!0,this.copyTooltipRef.open=!0}handleCopyTooltipBeforeOpen(){this.isCopied||(this.copyTooltipRef.open=!1)}handleCopyTooltipClose(){this.isCopied=!1}handleActionsPopoverBeforeOpenClose(){this.isCopied=!1,this.copyTooltipRef&&(this.copyTooltipRef.open=!1)}handleToggleVisibility(){let{_context:e,post:t,menuPopoverElement:s}=this;this.errorMessage=null,s&&(s.open=!1);let i,o;return t.status===k.HIDDEN||t.status===k.BLOCKED?(i=k.APPROVED,o="show"):(i=k.HIDDEN,o="hide"),$e(Object.assign({data:{status:i},postId:t.id},e.hubRequestOptions)).then(n=>z(Object.assign({postId:n.id,data:{relations:[C.REACTIONS,C.REPLIES,C.CHANNEL,C.CHANNEL_ACL]}},this._context.hubRequestOptions))).then(n=>(n.replyCount=n.replies.total,delete n.replies,this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.content.action.update.label.status.details[o]),{response:g.constants.response.SUCCESS})),this.arcgisHubDiscussionsPostEdit.emit(n),n)).catch(n=>(console.error("Could not update post status:",n.message),this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.content.action.update.label.status.details[o]),{response:g.constants.response.FAILURE})),null))}handleViewThread(){let{index:e,postId:t,post:s,postCreator:i,postCreatorOrg:o,channel:n,channelGroups:a,channelId:c}=this;this.arcgisHubDiscussionsPostSelect.emit({parentId:t,parent:s,parentCreator:i,parentCreatorOrg:o,channel:n,channelGroups:a,channelId:c}),e!==void 0&&this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.interaction.action.open.label.thread),{position:e}))}handleReply(){let{postId:e,post:t,postCreator:s,postCreatorOrg:i,channel:o,channelGroups:n,channelId:a}=this;this.arcgisHubDiscussionsPostSelect.emit({parentId:e,parent:t,parentCreator:s,parentCreatorOrg:i,channel:o,channelGroups:n,channelId:a,scrollTarget:"editor"}),this.emitHubTelemetry(g.dictionary.category.interaction.action.open.label.editor.details.reply)}handleViewReplies(){let{postId:e,post:t,postCreator:s,postCreatorOrg:i,channel:o,channelGroups:n,channelId:a}=this;this.arcgisHubDiscussionsPostSelect.emit({parentId:e,parent:t,parentCreator:s,parentCreatorOrg:i,channel:o,channelGroups:n,channelId:a,scrollTarget:"list"}),this.emitHubTelemetry(g.dictionary.category.interaction.action.open.label.thread.details.bodyAction)}handleLinkClicked(e){let t=e.target;if(["CALCITE-LINK"].includes(t.nodeName)&&!t.hasAttribute("data-mention")){let{postId:s,parentId:i,channel:o,index:n}=this;this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.navigation.action.external.label.link),{details:t.href,postId:s,parentId:i,channelId:o.id,channelAccess:x(o),position:n}))}}capturePostDeepLinkImpression(){this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.interaction.action.viewed.label.post.details.thread),{response:g.constants.response.SUCCESS}))}capturePostListImpression(){this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.interaction.action.viewed.label.post.details.postList),{position:this.index}))}capturePostDeletedImpression(){this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.interaction.action.viewed.label.post.details.thread),{response:g.constants.response.FAILURE}))}capturePostHiddenImpression(){this.emitHubTelemetry(Object.assign(Object.assign({},g.dictionary.category.interaction.action.viewed.label.post.details.thread),{response:g.constants.response.FAILURE}))}handleRenderedElChange(e,t){this.removeAnimationEventListeners(t),this.addAnimationEventListeners(e)}handleContextChanged(e,t){var s,i;((s=e?.currentUser)===null||s===void 0?void 0:s.username)!==((i=t?.currentUser)===null||i===void 0?void 0:i.username)&&this.loadDependencies()}addAnimationEventListeners(e){e&&e.addEventListener("animationend",this.handleAnimationEnd)}removeAnimationEventListeners(e){e&&e.removeEventListener("animationend",this.handleAnimationEnd)}handleViewAllReplies(){let{parent:e,parentId:t,parentCreator:s,parentCreatorOrg:i,channel:o,channelId:n,channelGroups:a}=this;this.arcgisHubDiscussionsPostSelect.emit({parent:e,parentId:t,parentCreator:s,parentCreatorOrg:i,channelId:n,channel:o,channelGroups:a})}handleReplyOutOfContextReadMore(){let{parent:e,parentId:t,parentCreator:s,parentCreatorOrg:i,channel:o,channelId:n,channelGroups:a,postId:c,post:l,postCreator:d,postCreatorOrg:u}=this;this.arcgisHubDiscussionsPostSelect.emit({parent:e,parentId:t,parentCreator:s,parentCreatorOrg:i,channelId:n,channel:o,channelGroups:a,postId:c,post:l,postCreator:d,postCreatorOrg:u})}handleViewPost(e){e.stopPropagation();let{parent:t,parentId:s,parentCreator:i,parentCreatorOrg:o,channel:n,channelId:a,channelGroups:c,post:l,postId:d,postCreator:u,postCreatorOrg:h}=this;this.arcgisHubDiscussionsPostSelect.emit({parent:t,parentId:s,parentCreator:i,parentCreatorOrg:o,channelId:a,channel:n,channelGroups:c,post:l,postId:d,postCreator:u,postCreatorOrg:h})}handleSetComponentRef(e){e&&(this.renderedEl=e)}handlePostCanceled(e){e.stopPropagation(),this.transitionEditorView(!1),this.arcgisHubDiscussionsGeometryDeselect.emit(),this.arcgisHubDiscussionsGeometryDrawReset.emit()}async handlePostCreatedOrDeleted(e){var t;if(e.detail.parentId===((t=this.post)===null||t===void 0?void 0:t.id)){let s=await z(Object.assign({postId:this.post.id,data:{relations:[C.REACTIONS,C.REPLIES,C.CHANNEL,C.CHANNEL_ACL]}},this._context.hubRequestOptions));s.replyCount=s.replies.total,delete s.replies,this.arcgisHubDiscussionsPostEdit.emit(s)}}handleAnimationEnd(e){e.animationName==="out-left"?(this.editing=!0,this.editorClass=L.IN,this.articleClass=L.HIDDEN):e.animationName==="out-right"?(this.editing=!1,this.editorClass=L.HIDDEN,this.articleClass=L.IN):(this.editorClass=null,this.articleClass=null,this.minHeight=null)}async handlePostEditedBody(e){var t;if(((t=this.post)===null||t===void 0?void 0:t.id)===e.detail.id){this.post=e.detail;let{postMentionedUsers:s}=await ft({postMentionedUsers:this.postMentionedUsers,post:this.post},this._context.hubRequestOptions);this.postMentionedUsers=s}}handlePostEdited(e){e.target.nodeName.toLowerCase()==="arcgis-hub-discussions-post-editor"&&this.transitionEditorView(!1)}handlePopoverOpen(){this.popoverIsOpen=!0}handlePopoverClose(){this.popoverIsOpen=!1}transitionEditorView(e){var t,s;this.minHeight=(s=(t=this.renderedEl)===null||t===void 0?void 0:t.offsetHeight)!==null&&s!==void 0?s:null,this.editorClass=e?L.HIDDEN:L.OUT,this.articleClass=e?L.OUT:L.HIDDEN}get isLoading(){return!this._context||this._loading||!this.intl||this.loading}get locationListIsDisabled(){let e=!1;return this.locationDescriptionText&&!this.isMobile||this.showLocations?e=!1:(!this.hasMap||this.isMobile)&&(e=!0),e}get views(){let{renderEditor:e,renderDeleted:t,renderHidden:s,renderPost:i,renderReply:o,renderSkeleton:n,renderReplyOutOfContext:a}=this;return{[D.Skeleton]:{render:n},[D.Post]:{render:i},[D.Reply]:{render:o},[D.OutOfContext]:{render:a},[D.Editor]:{render:e},[D.Deleted]:{render:t},[D.Hidden]:{render:s}}}get view(){let{views:e,post:t,postError:s,editing:i,isLoading:o,outOfContext:n,isReply:a}=this,c=s?.status,l;return o?l=D.Skeleton:c===404?l=D.Deleted:c===422?l=D.Hidden:t?i?l=D.Editor:n?l=D.OutOfContext:a?l=D.Reply:l=D.Post:l=D.Deleted,e[l]}get actionMenuActions(){let{isReply:e,post:t,channel:s,_context:i,intl:o,isHub:n}=this,a=[];return!e&&n&&a.push({icon:"link",text:o.t("link"),fn:this.handleCopyLink,ref:c=>{this.copyActionRef=c}}),i.currentUser&&(Ze(s,i.currentUser)&&a.push(t.status===k.HIDDEN||t.status===k.BLOCKED?{icon:"view-visible",text:o.t("show"),fn:this.handleToggleVisibility}:{icon:"view-hide",text:o.t("hide"),fn:this.handleToggleVisibility}),e||((t.creator===i.currentUser.username||Ie(t,i.currentUser,s))&&a.push({icon:"pencil",text:o.t("edit"),fn:this.handleEdit}),Ce(t,s,i.currentUser)&&a.push({icon:"trash",text:o.t("delete"),fn:this.handleDelete}))),a}get creatorFullName(){let{intl:e,post:t,postCreator:s}=this,i=e.t("anonymous");return(s||t?.creator)&&(i=s?.fullName||e.t("privateUser")),i}get outOfContext(){let{index:e,lead:t,isReply:s}=this;return s&&!t&&e!==void 0}get styles(){let{minHeight:e}=this,t={};return e&&(t.minHeight=`${e}px`),t}get isReply(){var e;return!!(this.parent||this.parentId||!((e=this.post)===null||e===void 0)&&e.parentId)}renderEditor(){let{hasMap:e,index:t,isHub:s,unsavedFeatures:i,unsavedRelatedFeatures:o,unsavedExistingFeatures:n,post:a,postCreator:c,postCreatorOrg:l,displayFieldKey:d,displayFieldValue:u,displayFieldValid:h,entity:p,discussionSettings:m,discussion:b,entityId:f,entityType:_,isMobile:w,channelId:A,channel:R,channelGroups:I,locationId:O,postId:S,isReply:T,lead:U,lastIndex:P,editorClass:B,parent:ge,parentId:be,parentCreator:me,showLocations:Pt,disableSelectExistingLocation:At}=this;return r("div",{class:{"arcgis-hub-discussions-post-lead":T&&U,"arcgis-hub-discussions-post-last":T&&t===P,[B]:!!B,"arcgis-hub-discussions-post-editor-container":!0},ref:this.handleSetComponentRef},r("slot",{name:"editor"},r("arcgis-hub-discussions-post-editor",{channel:R,channelGroups:I,channelId:A,disableSelectExistingLocation:At,discussion:b,discussionSettings:m,displayFieldKey:d,displayFieldValid:h,displayFieldValue:u,entity:p,entityId:f,entityType:_,hasMap:e,index:t,isHub:s,isMobile:w,locationId:O,parent:ge,parentCreator:me,parentId:be,post:a,postCreator:c,postCreatorOrg:l,postId:S,showLocations:Pt,unsavedExistingFeatures:n,unsavedFeatures:i,unsavedRelatedFeatures:o})))}renderReactions(){let{post:e,channel:t}=this;if(t.allowReaction)return r("arcgis-hub-discussions-post-reactions",{channel:t,post:e})}renderMetadata(e,t,s,i,o,n,a,c,l){let{isHub:d,post:u,postCreator:h,postCreatorOrg:p,parentCreator:m,channel:b,index:f,parent:_,handleViewPost:w}=this;return r("slot",{name:"metadata"},r("arcgis-hub-discussions-post-header",{channel:b,iconScale:"l",index:f,isHub:d,metadataOrientation:e,onArcgisHubDiscussionsPostSelect:w,parent:_,parentCreator:m,post:u,postCreator:h,postCreatorOrg:p,showChannelAccessIcon:t,showChannelAvatar:s,showChannelName:i,showCreatorAvatar:o,showPopover:n,showReplyingTo:a,showTimestamp:l,showViewPostAction:c}))}renderPost(){let{intl:e,errorMessage:t,preview:s,post:i,channel:o,index:n,articleClass:a,showChannelAvatar:c,showChannelName:l}=this;return n===void 0?this.capturePostDeepLinkImpression():this.capturePostListImpression(),r("article",{class:{[a]:!!a},ref:this.handleSetComponentRef},r("arcgis-hub-discussions-post-chips",{channel:o,index:n,post:i}),this.renderMetadata("block",!0,c,l,!0,!0,!1,!1,!0),r("header",{innerHTML:this.postTitle}),r("arcgis-multiline-ellipsis",{"expand-enabled":s,"expand-icon":this.isRtl?"arrow-left":"arrow-right",innerHTML:this.postBody,lines:s?4:0,onClick:this.handleLinkClicked}),this.renderGeography(!1,!0),r("footer",null,this.renderReactions(),r("div",{class:"actions"},this.renderTextActions(),this.renderActionMenu())),t&&r("calcite-notice",{closable:!0,kind:"danger",open:!0,scale:"s"},r("div",{slot:"title"},e.t("error")),r("div",{slot:"message"},e.t(t))))}renderTextActions(){let{intl:e,post:t,preview:s,channel:i,_context:o}=this,n;return s?n=t.replyCount>1?"actions.viewMany":"actions.viewOne":n=t.replyCount>1?"actions.replies":"actions.oneReply",r("calcite-action-group",{layout:"horizontal"},s&&it(i,o.currentUser)&&fe(this.entity)&&r("calcite-action",{class:"text-action-reply",onClick:this.handleReply,scale:"s",text:e.t("actions.reply"),textEnabled:!0}),t.replyCount!==0&&r("calcite-action",{class:"text-action-view-reply",disabled:!s,onClick:this.handleViewReplies,scale:"s",text:e.t(n,{count:t.replyCount}),textEnabled:!0}))}renderActionMenu(){let{intl:e,isReply:t,actionMenuActions:s}=this;if(s.length)return r(E,null,r("calcite-action",{alignment:"center",class:"discussions-post-action-menu",ref:i=>{this.menuActionElement=i},scale:"s",text:e.t("options")},r("calcite-icon",{class:"discussions-post-action-menu-icon",icon:"ellipsis",scale:"s"})),r("calcite-popover",{autoClose:!0,flipPlacements:t?["top","bottom"]:["top-end","bottom-end"],label:e.t("options"),offsetDistance:0,onCalcitePopoverBeforeClose:this.handleActionsPopoverBeforeOpenClose,onCalcitePopoverBeforeOpen:this.handleActionsPopoverBeforeOpenClose,overlayPositioning:"absolute",placement:"bottom-end",pointerDisabled:!0,ref:i=>{this.menuPopoverElement=i},referenceElement:this.menuActionElement},r("calcite-action-group",{layout:"vertical"},s.map(({text:i,fn:o,icon:n,ref:a})=>r("calcite-action",{class:"discussions-post-action-menu-options","data-action":i.toLowerCase(),id:"discussions-post-action-menu-option-"+n,key:n,onClick:o,ref:a,scale:"m",text:i,"text-enabled":"true"},r("calcite-icon",{class:"discussions-post-action-menu-options-icon",flipRtl:this.isRtl,icon:n,scale:"s"}))))),s.some(({icon:i})=>i==="link")&&r("calcite-tooltip",{onCalciteTooltipBeforeOpen:this.handleCopyTooltipBeforeOpen,onCalciteTooltipClose:this.handleCopyTooltipClose,open:!1,placement:"top",ref:i=>{this.copyTooltipRef=i},referenceElement:this.copyActionRef},r("span",null,e.t("copied"))))}renderDeleted(){let{intl:e,deletedDuringSession:t,isReply:s,handleViewAllReplies:i}=this;return t||this.capturePostDeletedImpression(),r("calcite-notice",{kind:"danger",open:!0,scale:"m"},r("div",{slot:"title"},e.t(s?"deleted.title.reply":"deleted.title")),r("div",{slot:"message"},e.t(s?"deleted.message.reply":"deleted.message")),s&&r("calcite-link",{onClick:i,slot:"link"},e.t("delete.action")))}renderHidden(){let{intl:e,isReply:t}=this;return this.capturePostHiddenImpression(),r("calcite-notice",{kind:"warning",open:!0,scale:"m"},r("div",{slot:"title"},e.t(t?"hidden.title.reply":"hidden.title")),r("div",{slot:"message"},e.t("hidden.message")))}renderSkeleton(){return r("arcgis-hub-discussions-post-skeleton",null)}render(){return r(q,{key:"f0896df715b6821aee6627f31d83d72a36feee97",class:{loading:this._loading},"data-element":"discussions-post","data-view":this.view.render.name,style:this.styles},this.view.render())}renderAvatars(){var e;let{_context:t,isHub:s,parent:i,parentCreator:o,post:n,postCreator:a,postCreatorOrg:c,channel:l,intl:d,index:u,outOfContext:h}=this,p=!a&&n?{username:n.creator}:a,m=h?"l":"m",b=[r("calcite-avatar",{"full-name":p?.fullName,key:"creator",scale:m,thumbnail:p?.thumbnail&&ye(t.hubRequestOptions.portal,p,(e=t.hubRequestOptions.authentication)===null||e===void 0?void 0:e.token),"user-id":p?.id,username:p?.username})];return h&&b.push(r("calcite-avatar",{"full-name":ct(l,d.t("unnamedChannel")),scale:"m"})),o&&(b=r("arcgis-hub-discussions-popover",{channel:l,index:u,isHub:s,parent:i,parentCreator:o,post:n,postCreator:a,postCreatorOrg:c},b)),b}renderActions(){let{intl:e,_context:t,channel:s,post:i,isHub:o}=this,n=[];if(o&&n.push({text:e.t("link"),onClick:this.handleCopyLink,ref:a=>{this.copyActionRef=a}}),t.currentUser&&((i.creator===t.currentUser.username||Ie(i,t.currentUser,s))&&n.push({text:e.t("edit"),onClick:this.handleEdit}),Ce(i,s,t.currentUser)&&n.push({text:e.t("delete"),onClick:this.handleDelete})),n.length)return r("calcite-action-group",{layout:"horizontal"},n.map(a=>r("calcite-action",{appearance:a.appearance,"data-action":a.text.toLowerCase(),icon:a.icon,key:a.text||a.pin,onClick:a.onClick,onMouseOver:a.onMouseOver,ref:a.ref,scale:"s",text:a.text,"text-enabled":!!a.text})),o&&r("calcite-tooltip",{onCalciteTooltipBeforeOpen:this.handleCopyTooltipBeforeOpen,onCalciteTooltipClose:this.handleCopyTooltipClose,open:!1,placement:"top",ref:a=>{this.copyTooltipRef=a},referenceElement:this.copyActionRef},r("span",null,e.t("copied"))))}renderReplyOutOfContext(){let{intl:e,errorMessage:t,index:s,lead:i,lastIndex:o,articleClass:n,handleReplyOutOfContextReadMore:a}=this;return s===void 0?this.capturePostDeepLinkImpression():this.capturePostListImpression(),r("article",{class:{"out-of-context":!0,"arcgis-hub-discussions-post-last":i&&s===o,[n]:!!n},ref:this.handleSetComponentRef},this.renderMetadata("block",!1,!0,!1,!0,!0,!0,!0,!1),r("div",{class:"reply-body"},r("arcgis-multiline-ellipsis",{"collapse-enabled":!0,"expand-enabled":!0,"expand-icon":this.isRtl?"arrow-left":"arrow-right",innerHTML:this.postBody,lines:4,onClick:a}),this.renderGeography(!0,!1),this.renderReactions(),r("footer",null,this.renderActions()),t&&r("calcite-notice",{closable:!0,kind:"danger",open:!0,scale:"s"},r("div",{slot:"title"},e.t("error")),r("div",{slot:"message"},e.t(t)))))}renderGeography(e,t){let{hasMap:s,channel:i,channelId:o,parentId:n,displayFieldKey:a,displayFieldValid:c,entity:l,isMobile:d,locationDescriptionText:u,locationListIsDisabled:h,post:p,postId:m,showLocations:b}=this;if(b)return r("arcgis-hub-discussions-post-geography",{channel:i,channelId:o,disabled:h,displayFieldKey:a,displayFieldValid:c,expandable:t,hasMap:s,isMobile:d,locationDescriptionText:u,parentId:n,post:p,postId:m,showLocationDescriptionText:!d,toggleable:e,url:l?.url})}renderReply(){let{intl:e,errorMessage:t,channel:s,post:i,articleClass:o,lead:n,index:a,lastIndex:c}=this,l={"arcgis-hub-discussions-post-lead":n,"arcgis-hub-discussions-post-last":n&&a===c};return o&&(l[o]=!0),a===void 0?this.capturePostDeepLinkImpression():this.capturePostListImpression(),r("article",{class:l,ref:this.handleSetComponentRef},r("arcgis-hub-discussions-post-chips",{channel:s,index:a,post:i}),this.renderAvatars(),r("div",null,this.renderMetadata("inline",!1,!1,!1,!1,!1,!1,!1,!0),r("arcgis-multiline-ellipsis",{"collapse-enabled":!0,"expand-enabled":!0,innerHTML:this.postBody,lines:4}),this.renderGeography(!0,!1),r("footer",null,this.renderReactions(),this.renderActions(),this.renderActionMenu()),t&&r("calcite-notice",{closable:!0,kind:"danger",open:!0,scale:"s"},r("div",{slot:"title"},e.t("error")),r("div",{slot:"message"},e.t(t)))))}static get assetsDirs(){return["locales"]}get element(){return F(this)}static get watchers(){return{renderedEl:["handleRenderedElChange"],_context:["handleContextChanged"]}}};J([de({delay:300})],W.prototype,"fetchDependencies",null);J([K("post.body","post.status"),Dt({ignoreTags:["calcite-link"],replaceExisting:!0,tagName:"calcite-link"}),Lt(),wt("postBody","sc-arcgis-hub-discussions-post blocked"),Ee({filterOptions:{whiteList:{"calcite-link":["href","data-mention"]}},extendDefaults:!0})],W.prototype,"postBody",null);J([K("post.title","post.status"),wt("postTitle","sc-arcgis-hub-discussions-post blocked"),Ee()],W.prototype,"postTitle",null);J([ne()],W.prototype,"capturePostDeepLinkImpression",null);J([ne()],W.prototype,"capturePostListImpression",null);J([ne()],W.prototype,"capturePostDeletedImpression",null);J([ne()],W.prototype,"capturePostHiddenImpression",null);W.style=Ft;var Nt=':host{display:block}calcite-chip-group{display:flex;flex-direction:row;justify-content:flex-start;gap:0.25rem}:host([data-count="0"]){display:none}.end{margin-left:auto}',Vt=Nt,Mt=class{constructor(e){N(this,e),this.hubTelemetry=v(this,"hubTelemetry",7),this.post=void 0,this.index=void 0,this.channel=void 0,this.activeTooltip=null,$(this,"handleTooltipOpen","renderChip","handleChipMouseEnter","handleChipMouseOut")}async componentWillLoad(){this.intl=await j.loadIntlForComponent(this.element)}handleTooltipOpen(e){let{post:t,channel:s,chipsToRender:i,index:o}=this,{tooltip:{telemetry:n}}=i.find(a=>a.type===e.target.dataset.type);this.hubTelemetry.emit(Object.assign(Object.assign({},n),{postId:t.id,parentId:t.parentId,channelId:s.id,channelAccess:x(s),position:o}))}handleChipMouseEnter(e){this.activeTooltip=e.target.dataset.type}handleChipMouseOut(){this.activeTooltip=null}get chipsToRender(){let{post:e,intl:t}=this,s=[];return(e.status===k.HIDDEN||e.status===k.BLOCKED)&&s.push({appearance:"outline",icon:"view-hide",kind:"neutral",tooltip:{telemetry:g.dictionary.category.interaction.action.open.label.tooltip.details.chipComponentWithStringHidden,text:e.status===k.BLOCKED?t.t("chip.hidden.label.blocked"):t.t("chip.hidden.label.moderator")},type:"hidden",value:t.t("chip.hidden.text")}),s}renderChip(e){let{activeTooltip:t,handleTooltipOpen:s}=this;return r(E,null,r("calcite-chip",{appearance:e.appearance,class:e.type==="hidden"&&"end","data-type":e.type,icon:e.icon,id:e.type,key:e.type,kind:e.kind,label:e.value,onMouseEnter:this.handleChipMouseEnter,onMouseOut:this.handleChipMouseOut,scale:"s",value:e.value},e.value),e.tooltip&&r("calcite-tooltip",{"data-type":e.type,label:e.tooltip.text,onCalciteTooltipOpen:s,open:t===e.type,overlayPositioning:"fixed",placement:"bottom",referenceElement:e.type},r("div",{class:"tooltip-body"},e.tooltip.text)))}render(){let{chipsToRender:e,index:t,intl:s}=this;return r(q,{key:"600abe0ce66d7c0127fad356f232c095fea11b8c","data-count":e.length,"data-element":"post-chips","data-index":t},r("calcite-chip-group",{key:"84520a00069ffc4ab692abb98e1bbfbf8b0f4f06",label:s.t("label"),scale:"s"},e.map(this.renderChip)))}static get assetsDirs(){return["locales"]}get element(){return F(this)}};Mt.style=Vt;var M;(function(e){e.AUDIENCE="audience",e.CONTENT="content"})(M||(M={}));var Ut="arcgis-hub-discussions-post-editor:not([parent-id]){display:block;border-radius:0.25rem;background-color:var(--calcite-color-foreground-1);padding:0.75rem;--tw-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.12);--tw-shadow-colored:0 2px 8px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.hub-discussions-post-editor-header{margin-bottom:1.5rem;display:grid;grid-template-rows:repeat(1, minmax(0, 1fr));align-items:center;column-gap:0.75rem;grid-template-columns:44px auto 44px}.hub-discussions-post-editor-header__title{margin:0px;text-align:center;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}.hub-discussions-post-editor-header__popover{padding:1rem;margin-top:revert;margin-bottom:revert}.hub-discussions-post-editor-audience__description{font-size:var(--calcite-font-size-0);line-height:1.25rem}.hub-discussions-post-editor-audience__header{margin-top:1.5rem;margin-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}.hub-discussions-post-editor-audience__gallery{--calcite-color-border-3:transparent}.hub-discussions-post-editor-audience__button{margin-top:1rem;margin-bottom:0.5rem}.hub-discussions-post-editor-groups__action{margin-top:0.75rem}.hub-discussions-post-editor-recent__list{margin-top:0px;margin-bottom:0px;list-style-type:none;padding:0px}.hub-discussions-post-editor-recent__item{margin-bottom:0.75rem;margin-top:0px;display:grid;grid-auto-flow:column;grid-template-rows:repeat(2, minmax(0, 1fr));column-gap:0.75rem;grid-template-columns:44px auto 44px}.hub-discussions-post-editor-recent__item:last-child{margin-bottom:0px}.hub-discussions-post-editor-recent__avatar{grid-row:span 2 / span 2}.hub-discussions-post-editor-recent__title{font-weight:var(--calcite-font-weight-bold);overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.hub-discussions-post-editor-recent__last-activity{font-size:var(--calcite-font-size--1);line-height:1rem;font-style:normal;color:var(--calcite-color-text-2)}.hub-discussions-post-editor-recent__action{grid-row:span 2 / span 2}.hub-discussions-post-editor-post-actions,.hub-discussions-post-editor-geometry-actions{margin-top:1rem;display:flex;justify-content:flex-end}.hub-discussions-post-editor-post-actions>calcite-action{margin-right:auto}.hub-discussions-post-editor-geometry-actions__feature,.hub-discussions-post-editor-geometry-actions__related,.hub-discussions-post-editor-post-actions__primary,.hub-discussions-post-editor-post-actions__secondary{margin-left:0.75rem}arcgis-hub-discussions-post-editor.rtl .hub-discussions-post-editor-geometry-actions__feature,arcgis-hub-discussions-post-editor.rtl .hub-discussions-post-editor-geometry-actions__related,arcgis-hub-discussions-post-editor.rtl .hub-discussions-post-editor-post-actions__primary,arcgis-hub-discussions-post-editor.rtl .hub-discussions-post-editor-post-actions__secondary{margin-left:0px;margin-right:0.75rem}.hub-discussions-post-editor__title{margin:0px;margin-top:1rem;height:auto;width:100%;resize:none;border-style:none;background-color:var(--calcite-color-foreground-1);padding:0px;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1);--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.hub-discussions-post-editor__title:focus{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}.hub-discussions-post-editor__title::placeholder{color:var(--calcite-color-text-3);opacity:1}.hub-discussions-post-editor__body{margin-top:0.5rem;white-space:pre-wrap}.hub-discussions-post-editor__body[scale=m] .ck.ck-editor__editable{border-style:none;background-color:var(--calcite-color-foreground-1);padding:0px;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-color-text-1);outline:2px solid transparent;outline-offset:2px;min-height:6rem}.hub-discussions-post-editor__body .ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border-style:none;outline:2px solid transparent;outline-offset:2px}.hub-discussions-post-editor__body[scale=m] .ck.ck-editor__editable .ck-placeholder:before{color:var(--calcite-color-text-3)}.hub-discussions-post-editor__body .ck.ck-editor__editable_inline>:first-child{margin-top:0px}.hub-discussions-post-editor__body .ck.ck-editor__editable_inline>:last-child{margin-bottom:0px}.hub-discussions-post-editor__message{margin-top:0.5rem}.hub-discussions-post-editor__empty,.hub-discussions-post-editor__load-error{margin-top:1rem}.hub-discussions-post-editor__crud-error,.hub-discussions-post-editor__not-discussable-notice{margin-top:1rem}.hub-discussions-post-editor-cancel-confirm__header{margin-left:0px;margin-right:0px;margin-top:0.5rem;margin-bottom:0px;display:block;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold)}.hub-discussions-post-editor-cancel-confirm__message{margin-top:0.5rem;margin-bottom:0px}.hub-discussions-post-editor-cancel-confirm__footer{margin-top:1.5rem;display:flex;justify-content:flex-end;column-gap:0.75rem}.hub-discussions-post-editor-recent__skeleton{margin-bottom:0.75rem;margin-top:0px}.hub-discussions-post-editor-recent__skeleton arcgis-skeleton-loader{display:flex}@keyframes shimmer{0%{background-size:200% 100%;background-position:100% 0}100%{background-size:200% 100%;background-position:-100% 0}}.hub-discussions-post-editor-recent__skeleton arcgis-skeleton-loader>div:nth-of-type(1),.hub-discussions-post-editor-recent__skeleton arcgis-skeleton-loader>div:nth-of-type(2) div{animation:shimmer 2s cubic-bezier(0.4, 0, 0.2, 0.8) infinite;background-image:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);background-color:var(--calcite-color-foreground-3)}.hub-discussions-post-editor-recent__skeleton arcgis-skeleton-loader>div:nth-of-type(1){height:2.75rem;width:2.75rem;border-radius:50%}.hub-discussions-post-editor-recent__skeleton arcgis-skeleton-loader>div:nth-of-type(2){margin-left:1rem;display:flex;flex-grow:1;flex-direction:column;justify-content:center}.hub-discussions-post-editor-recent__skeleton arcgis-skeleton-loader>div:nth-of-type(2) div:nth-of-type(1){margin-bottom:0.5rem;height:0.75rem;border-radius:0.375rem}.hub-discussions-post-editor-recent__skeleton arcgis-skeleton-loader>div:nth-of-type(2) div:nth-of-type(2){height:0.5rem;border-radius:0.25rem}.location-popover>div.popover,.popover{max-width:20rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1.25rem;padding-right:1.25rem}.add-location-post:active .add-location-icon{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.add-location-post[active] .add-location-icon{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}arcgis-hub-discussions-post-editor[parent-id]{display:block}.hub-discussions-reply-editor__form{border-radius:0.25rem;background-color:var(--calcite-color-foreground-1);padding:0.75rem;--tw-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.12);--tw-shadow-colored:0 2px 8px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.hub-discussions-reply-editor-user-details{margin:0px;display:grid;align-items:center;column-gap:0.75rem;grid-template-columns:32px auto}.hub-discussions-reply-editor-user-details__name{font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-bold);font-style:normal}.hub-discussions-reply-editor__notice,.hub-discussions-reply-editor__not-discussable-notice{margin-left:0px;margin-right:0px;margin-top:1rem}.hub-discussions-post-editor-cancel-confirm{display:block}.hub-discussions-post-editor-cancel-confirm__button{margin:0px}.hub-discussions-reply-editor__body{margin-top:0.75rem;white-space:pre-wrap}.hub-discussions-reply-editor__body[scale=m] .ck.ck-editor__editable{border-style:none;background-color:var(--calcite-color-foreground-1);padding:0px;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-color-text-1);outline:2px solid transparent;outline-offset:2px;min-height:6rem}.hub-discussions-reply-editor__body .ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border-style:none;outline:2px solid transparent;outline-offset:2px}.hub-discussions-reply-editor__body[scale=m] .ck.ck-editor__editable .ck-placeholder:before{color:var(--calcite-color-text-3)}.hub-discussions-reply-editor__body .ck.ck-editor__editable_inline>:first-child{margin-top:0px}.hub-discussions-reply-editor__body .ck.ck-editor__editable_inline>:last-child{margin-bottom:0px}.hub-discussions-reply-editor__message{margin-top:0.5rem}.hub-discussions-reply-editor__location-popover>div.hub-discussions-reply-editor__location-popover__content,.hub-discussions-reply-editor__location-popover__content{max-width:20rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1.25rem;padding-right:1.25rem}.add-location-post:active .add-location-icon{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.add-location-post[active] .add-location-icon{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}arcgis-hub-discussions-post-editor>form>header{padding-top:0.25rem;padding-bottom:1rem;text-align:center;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);text-transform:capitalize;color:var(--calcite-color-text-1)}.anon-toggle{margin-bottom:0.75rem;display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem;border-radius:0.75rem;background-color:var(--calcite-color-background);padding:1rem}.anon-toggle p:first-of-type{margin:0px;color:var(--calcite-color-text-1)}.anon-toggle p:nth-of-type(2){margin:0px;flex-basis:100%;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-color-text-2)}arcgis-hub-entity-editor{--calcite-dialog-size-y:95%}",Bt=Ut,ae=function(e,t,s,i){var o=arguments.length,n=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,s,i);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(n=(o<3?a(n):o>3?a(t,s,n):a(t,s))||n);return o>3&&n&&Object.defineProperty(t,s,n),n},te=class{constructor(e){N(this,e),this.arcgisHubDiscussionsPostEditorReady=v(this,"arcgisHubDiscussionsPostEditorReady",7),this.arcgisHubDiscussionsPostCancel=v(this,"arcgisHubDiscussionsPostCancel",7),this.arcgisHubDiscussionsPostCreate=v(this,"arcgisHubDiscussionsPostCreate",7),this.arcgisHubDiscussionsPostEdit=v(this,"arcgisHubDiscussionsPostEdit",7),this.arcgisHubDiscussionsGeometryDrawCreate=v(this,"arcgisHubDiscussionsGeometryDrawCreate",7),this.arcgisHubDiscussionsGeometryDrawTypeSelect=v(this,"arcgisHubDiscussionsGeometryDrawTypeSelect",7),this.arcgisHubDiscussionsGeometryDrawEdit=v(this,"arcgisHubDiscussionsGeometryDrawEdit",7),this.arcgisHubDiscussionsGeometryDrawReset=v(this,"arcgisHubDiscussionsGeometryDrawReset",7),this.arcgisHubDiscussionsGeometrySelect=v(this,"arcgisHubDiscussionsGeometrySelect",7),this.arcgisHubDiscussionsGeometryDeselect=v(this,"arcgisHubDiscussionsGeometryDeselect",7),this.arcgisHubDiscussionsGeometryClearAll=v(this,"arcgisHubDiscussionsGeometryClearAll",7),this.arcgisHubDiscussionsPostClose=v(this,"arcgisHubDiscussionsPostClose",7),this.hubTelemetry=v(this,"hubTelemetry",7),this.handleSubmit=t=>{t.preventDefault();let s=this.postId?this.handleEdit():this.handleCreate();return this.pending=!0,s.finally(()=>{this.pending=!1,this.arcgisHubDiscussionsGeometryClearAll.emit(),this.addLocationsActiveGeometryType=null})},this.handleCancel=t=>{var s,i,o,n,a,c,l,d;let{channel:u,post:h,parent:p}=this;t.preventDefault(),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.close.label.editor),{parentId:(s=p?.id)!==null&&s!==void 0?s:null,postId:(i=h?.id)!==null&&i!==void 0?i:null,channelId:(o=u?.id)!==null&&o!==void 0?o:null,channelAccess:u?x(u):null})),this.arcgisHubDiscussionsPostCancel.emit(),this.collapse(),this.confirmAction=null;let m=G(h?.geometry);this.geometryValue=Object.keys(m||{}).length?m:null,this.titleValue=(n=h?.title)!==null&&n!==void 0?n:"",this.bodyValue=(a=h?.body)!==null&&a!==void 0?a:"",this._unsavedExistingFeatures=(c=this.unsavedExistingFeatures)!==null&&c!==void 0?c:[],this._unsavedFeatures=(l=this.unsavedFeatures)!==null&&l!==void 0?l:[],this._unsavedRelatedFeatures=(d=this.unsavedRelatedFeatures)!==null&&d!==void 0?d:[],this.arcgisHubDiscussionsGeometryClearAll.emit()},this.handleCancelOrConfirm=t=>{this.hasChanges?this.confirmAction=this.handleCancel:this.handleCancel(t)},this.handleConfirmBackButtonClicked=()=>{this.confirmAction=null},this.handleBackOrConfirm=()=>{this.hasChanges?this.confirmAction=this.handleBack:this.handleBack()},this.handleBack=()=>{var t,s,i,o,n,a,c,l;let d=G((t=this.post)===null||t===void 0?void 0:t.geometry);this.geometryValue=Object.keys(d||{}).length?d:null,this._unsavedExistingFeatures=(s=this.unsavedExistingFeatures)!==null&&s!==void 0?s:[],this._unsavedFeatures=(i=this.unsavedFeatures)!==null&&i!==void 0?i:[],this._unsavedRelatedFeatures=(o=this.unsavedRelatedFeatures)!==null&&o!==void 0?o:[],this.channelId=null,this.channelGroups=null,this.channel=null,this._mentionQuery=null,this.confirmAction=null,this.titleValue=(a=(n=this.post)===null||n===void 0?void 0:n.title)!==null&&a!==void 0?a:"",this.bodyValue=(l=(c=this.post)===null||c===void 0?void 0:c.body)!==null&&l!==void 0?l:"",this.step=M.AUDIENCE,this.arcgisHubDiscussionsGeometryClearAll.emit()},this.handleHelpPopoverOpen=()=>{this.hubTelemetry.emit(g.dictionary.category.interaction.action.open.label.popover.details.help)},this.handleHelpPopoverClose=()=>{this.hubTelemetry.emit(g.dictionary.category.interaction.action.close.label.popover.details.help)},this.handleLocationPopoverOpen=()=>{this.addLocationsPopoverOpen=!0},this.handleLocationPopoverClose=()=>{this.addLocationsPopoverOpen=!1},this.updateTitleValue=t=>{this.titleValue=t.target.value},this.setActiveGeometryDrawType=t=>{let{target:s}=t,i=s.dataset.type;this.addLocationsActiveGeometryType=i,this.locationPopoverRef.open=!1,this.enableAddLocation()},this.channelCardCallback=t=>Object.assign(Object.assign({},t),{actionLinks:[{action:"channelSelect",ariaLabel:"aria label",label:"label",buttonStyle:"outline",buttonKind:"brand",icon:this.isRtl?"chevron-left":"chevron-right"}]}),this.toggleChannelPickerOpen=()=>{this.galleryPickerOpen=!this.galleryPickerOpen},this.handleChannelPickerSelectionUpdate=async t=>{await this.loadChannelDetails({channelId:t.detail.channel[0]})},this.getMentionQuery=t=>{let s=G(this._mentionQuery),i=o=>{var n,a;return!!(!((n=o.predicates[0])===null||n===void 0)&&n.username&&(!((a=o.predicates[1])===null||a===void 0)&&a.fullname))};return s.filters=t?s.filters.map(o=>i(o)?Object.assign(Object.assign({},o),{predicates:[{username:t},{fullname:t}]}):o):s.filters.filter(o=>!i(o)),s},this.handleAnonToggle=t=>{let s=t.target;this.asAnonymous=s.checked},this.handleEntityEditorClosed=()=>{this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.close.label.modal.details.viewChannel),{channelId:this.channelEntityToView.id,channelAccess:this.channelEntityToView.access})),this.channelEntityToView=null},this.handleChannelGalleryAction=async t=>{t.detail.action==="channelSelect"&&(await this.loadChannelDetails({channelId:t.detail.model.id}),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.select.label.channel.details.recents),{channelId:this.channel.id,channelAccess:x(this.channel)})))},this.handleChannelGalleryError=()=>{this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.viewed.label.recents),{response:g.constants.response.FAILURE}))},this.handleChannelGalleryResultsChange=t=>{this.hubTelemetry.emit(t.detail.length?Object.assign(Object.assign({},g.dictionary.category.interaction.action.viewed.label.recents),{response:g.constants.response.SUCCESS}):g.dictionary.category.interaction.action.viewed.label.empty)},this.focusInput=()=>{setTimeout(()=>{let{titleRef:t,bodyRef:s,isReply:i}=this;i?s&&s.setFocus():t&&t.focus()},500)},this.handleReplySubmit=t=>(t.preventDefault(),this.pending=!0,(this.postId?this.handleEditReply():this.handleCreateReply()).catch(i=>(X.error("Could not create reply:",i.message),null)).finally(async()=>{this.pending=!1,this.arcgisHubDiscussionsGeometryClearAll.emit(),this.addLocationsActiveGeometryType=null,this.focusInput()})),this.post=void 0,this.postCreator=void 0,this.postCreatorOrg=void 0,this.postId=void 0,this.parent=void 0,this.parentCreator=void 0,this.parentId=void 0,this.channel=void 0,this.channelGroups=void 0,this.channelId=void 0,this.entity=void 0,this.entityId=void 0,this.entityType=void 0,this.discussionSettings=void 0,this.discussion=void 0,this.displayFieldKey=void 0,this.displayFieldValid=void 0,this.displayFieldValue=void 0,this.locationId=void 0,this.hasMap=void 0,this.isHub=void 0,this.unsavedFeatures=[],this.unsavedRelatedFeatures=[],this.unsavedExistingFeatures=[],this.index=void 0,this.isMobile=void 0,this.createParentSaveButtonText=void 0,this.createParentBodyPlaceholderText=void 0,this.showLocations=void 0,this.disableSelectExistingLocation=void 0,this.showHeader=void 0,this.collapsible=void 0,this.collapsed=void 0,this.helpButtonRef=void 0,this._context=Q(),this._unsavedFeatures=[],this._unsavedRelatedFeatures=[],this._unsavedExistingFeatures=[],this.pending=!1,this.loading=void 0,this.titleValue="",this.bodyValue="",this.discussionValue="",this.geometryValue=void 0,this.geometryValueHasChanges=void 0,this.locationActionElement=void 0,this.step=null,this.errorMessage=null,this.confirmAction=null,this.addLocationsActiveGeometryType=void 0,this.addLocationsPopoverOpen=void 0,this.asAnonymous=!1,this.galleryPickerOpen=!1,this.numPostableChannels=null,this.channelEntityToView=null}async componentWillLoad(){await Promise.all([this.loadIntl(),this.initialize(this._context)])}async loadIntl(){this.intl=await j.loadIntlForComponent(this.element)}connectedCallback(){oe(this)}disconnectedCallback(){this.disconnectContext()}get isRtl(){return this.intl.direction==="rtl"}get hasChanges(){let{titleValue:e,bodyValue:t,post:s,isReply:i}=this,o;return s?o=i?t!==s.body:t!==s.body||e!==s.title:o=i?t.length>0:e.length>0||t.length>0,o}get postWithLocationEdits(){let{post:e,geometryValue:t,discussionValue:s}=this,i;return e&&(i=G(e),i.geometry=t,s!==e.discussion&&(i.discussion=s)),i}get hasMentionedUsers(){return!!ce(this.bodyValue).length}async fetchDependencies(){let[e,t]=await Promise.all([Te({postId:this.postId,post:this.post},this._context.hubRequestOptions),ue({isHub:this.isHub},this._context.hubRequestOptions)]),[s,i]=await Promise.all([je(Object.assign({postCreator:this.postCreator,postCreatorOrg:this.postCreatorOrg},e),this._context.hubRequestOptions),He(Object.assign({parentId:this.parentId,parent:this.parent},e),this._context.hubRequestOptions)]),[o,n,a]=await Promise.all([he(Object.assign(Object.assign({discussion:this.discussion,entityId:this.entityId,entityType:this.entityType,entity:this.entity,discussionSettings:this.discussionSettings,displayFieldKey:this.displayFieldKey,displayFieldValid:this.displayFieldValid,displayFieldValue:this.displayFieldValue,locationId:this.locationId},e),i),this._context.hubRequestOptions,!0),pe(Object.assign(Object.assign({channelId:this.channelId,channel:this.channel,channelGroups:this.channelGroups},e),i),this._context.hubRequestOptions),Fe(Object.assign({parentCreator:this.parentCreator},i),this._context.hubRequestOptions)]),c=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),s),i),a),n),o),t);Object.assign(this,c)}async initialize(e,t){var s,i,o;if(((s=e?.currentUser)===null||s===void 0?void 0:s.username)!==((i=t?.currentUser)===null||i===void 0?void 0:i.username)){this.loading=!0,await this.fetchDependencies();let{post:n,channel:a}=this;if(n){let{title:c,body:l,discussion:d,geometry:u}=n;this.bodyValue=l,n.title&&(this.titleValue=c),this.discussionValue=d;let h=G(u);this.geometryValue=Object.keys(h||{}).length?h:null}if(a)await this.loadChannelDetails({channel:a}),this.step=M.CONTENT;else{let{total:c,results:l}=await ut({allowedChannelIds:(o=this.discussionSettings)===null||o===void 0?void 0:o.allowedChannelIds,requestOptions:this._context.hubRequestOptions,num:1});this.numPostableChannels=c,c===1?(await this.loadChannelDetails({channel:l[0].rawResult}),this.step=M.CONTENT):this.step=M.AUDIENCE}this.arcgisHubDiscussionsPostEditorReady.emit(n),this.loading=!1}}emitHubTelemetry(e){let{channel:t,channelGroups:s}=this,{groupAccesses:i,groupOrgIds:o,groupIds:n}=(s??[]).reduce((c,l)=>l?{groupAccesses:[...c.groupAccesses,l.access],groupOrgIds:[...c.groupOrgIds,l.orgId],groupIds:[...c.groupIds,l.id]}:c,{groupAccesses:[],groupOrgIds:[],groupIds:[]}),a=Object.assign(Object.assign({},e),{channelAccess:x(t),channelId:t.id,groupAccess:i.filter(Boolean).join(", "),groupId:n.filter(Boolean).join(", "),groupOrgId:o.filter(Boolean).join(", "),orgId:Be(t).join(", ")});this.hubTelemetry.emit(a)}handleGeometryValueUpdated(){if(this.post){let{post:{geometry:e},geometryValue:t}=this;this.geometryValueHasChanges=JSON.stringify(t)!==JSON.stringify(e)}}mapFeaturePropToState(e){var t;let{postId:s,post:i}=this;if(e.length){let o=(t=e[0].properties)===null||t===void 0?void 0:t.id;(s===o||!i&&!o)&&(this._unsavedFeatures=e.filter(({properties:a})=>!a?.pending),this.resetActiveGeometryDrawType())}else this._unsavedFeatures=[]}mapExistingFeaturePropToState(e){var t;let{postId:s}=this;if(e.length){let i=(t=e[0].properties)===null||t===void 0?void 0:t.id;s===i&&(this._unsavedExistingFeatures=e,e.forEach(n=>{let{geometry:a,properties:c}=n;a||this.removeFeature(c.index,null,!1)}),this.resetActiveGeometryDrawType())}else this._unsavedExistingFeatures=[]}mapRelatedFeaturePropToState(e){let{postId:t}=this;if(e.length){let s=e[0].postId;(t===s||!t&&!s)&&(this._unsavedRelatedFeatures=e,this.resetActiveGeometryDrawType())}else this._unsavedRelatedFeatures=[]}handleAddLocationsActiveGeometryTypeChanged(e){e&&this.arcgisHubDiscussionsGeometryDrawTypeSelect.emit(e)}async handleCreate(){var e;let{_context:t,_unsavedFeatures:s,_unsavedRelatedFeatures:i,bodyValue:o,titleValue:n,channelId:a,discussion:c,asAnonymous:l,entity:{url:d},arcgisHubDiscussionsPostCreate:u}=this,{channel:h}=this,p=c;if(i.length){let f=d.split("/").pop(),_=new Set(i.map(w=>w.objectId));p=Z(p,f,Array.from(_))}let m=null;s.length&&(m=s.length>1?se(s):s[0].geometry),this.errorMessage=null;let b;try{let{id:f}=await Ke(Object.assign({data:{channelId:h.id,discussion:p,title:n.trim()||void 0,body:o.trim(),geometry:m,asAnonymous:l},mentionUrl:window.location.href},t.hubRequestOptions));return b=await z(Object.assign({postId:f,data:{relations:[C.REACTIONS,C.CHANNEL,C.CHANNEL_ACL]}},this._context.hubRequestOptions)),b.replyCount=0,this.titleValue="",this.bodyValue="",this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.post),{response:g.constants.response.SUCCESS,details:(e=b.title)!==null&&e!==void 0?e:null,groupId:ve(h).join(", "),postId:b.id,channelId:h.id,channelAccess:x(h)})),u.emit(b),this.focusInput(),b}catch(f){return this.errorMessage="error.create",this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.post),{response:g.constants.response.FAILURE,groupId:ve(h).join(", "),channelId:a,channelAccess:h?x(h):""})),X.error("Failed to create post:",f.message),null}}handleEdit(){let{_context:e,bodyValue:t,titleValue:s,channelId:i,channel:o,post:n,_unsavedFeatures:a,_unsavedExistingFeatures:c,_unsavedRelatedFeatures:l,arcgisHubDiscussionsPostEdit:d,entity:{url:u}}=this;this.errorMessage=null;let h=this.discussionValue;if(l.length){let f=u.split("/").pop(),_=l.map(w=>w.objectId);h=Z(h,f,_)}let p=this.geometryValue&&Object.keys(this.geometryValue).length?Pe(Object.assign(Object.assign({},n),{geometry:this.geometryValue})):[];c.forEach(f=>{let{properties:{index:_},geometry:w}=f;w&&(p[+_].geometry=w)});let m=null,b=[...p,...a];return b.length&&(m=b.length>1?se(b):b[0].geometry.coordinates.length?b[0].geometry:null),_e(Object.assign({postId:n.id,data:{title:s.trim()||null,body:t.trim(),discussion:h,geometry:m},mentionUrl:window.location.href},e.hubRequestOptions)).then(f=>z(Object.assign({postId:f.id,data:{relations:[C.REACTIONS,C.REPLIES,C.CHANNEL,C.CHANNEL_ACL]}},this._context.hubRequestOptions))).then(f=>(this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.update.label.post),{response:g.constants.response.SUCCESS,postId:n.id,channelId:i,channelAccess:x(o)})),f.replyCount=f.replies.total,delete f.replies,d.emit(f),f)).catch(f=>(this.errorMessage="error.edit",this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.update.label.post),{response:g.constants.response.FAILURE,postId:n.id,channelId:i,channelAccess:x(o)})),X.error("Failed to edit post:",f.message),null))}handleFocusin(){this.expand()}expand(){this.collapsible&&(this.collapsed=!1)}collapse(){this.collapsible&&(this.collapsed=!0)}handleFocusout(){this.collapse()}updateBodyValue(e){this.bodyValue=e.target.value}handleFeatureRemove(e){let{detail:{properties:{relatedFeatureId:t,index:s,unsaved:i}}}=e;this.removeFeature(s,t,i)}removeFeature(e,t,s){var i;if(!s)if(t){let{features:o}=ot(this.discussionValue),n=this.entity.url.split("/").pop();o.splice(o.indexOf(t),1),this.discussionValue=Z(this.discussionValue.split("?")[0],n,o)}else((i=this.geometryValue)===null||i===void 0?void 0:i.type)==="GeometryCollection"?(s?this.geometryValue.geometries.splice(e,1):this.geometryValue.geometries[e]=null,this.geometryValue=Object.assign({},this.geometryValue)):this.geometryValue=null}handleDrawDone(){this.arcgisHubDiscussionsGeometryDrawReset.emit(),this.addLocationsActiveGeometryType=null}handleDrawCancel(){this.addLocationsActiveGeometryType=null}resetActiveGeometryDrawType(){this.addLocationsActiveGeometryType=void 0}enableAddLocation(){let{post:e,arcgisHubDiscussionsGeometryDrawCreate:t,isReply:s}=this,i=s?"reply":"post";t.emit({post:e,postType:i})}get isTitleValid(){let{titleValue:e}=this;return e.length<=le}get isBodyValid(){let{bodyValue:e}=this,t=e.trim();return t.length>0&&t.length<=rt}get hasLocationChanges(){if(this.post){let{post:{discussion:e},discussionValue:t}=this;return!!(this._unsavedFeatures.length+this._unsavedRelatedFeatures.length+this._unsavedExistingFeatures.length)||t!==e||this.geometryValueHasChanges}return!1}get hasAllowedChannelsList(){var e,t;return!!(!((t=(e=this.discussionSettings)===null||e===void 0?void 0:e.allowedChannelIds)===null||t===void 0)&&t.length)}get titleMessage(){let{titleValue:e,isTitleValid:t,intl:s}=this,{length:i}=e;if(i>=le-5)return t?{status:"idle",text:s.t("post.title.validation.warning")}:{icon:"exclamation-mark-circle",status:"invalid",text:s.t("post.title.validation.error",{characters:i-le})}}get bodyMessage(){let{bodyValue:e,isBodyValid:t,intl:s}=this,{length:i}=e;if(i>=Re)return t?{status:"idle",text:s.t("post.body.validation.warning")}:{icon:"exclamation-mark-circle",status:"invalid",text:s.t("post.body.validation.error")}}get isReply(){return!!(this.parent||this.parentId)}get blockedNotice(){let e,t=nt(this.channel,this._context.currentUser),s=!fe(this.entity);return t&&s?e=this.isReply?H.EditReply:H.EditPost:t?e=this.isReply?H.EditReplyGroup:H.EditPostGroup:s&&(this.entityType==="group"?e=this.isReply?H.EditReplyGroup:H.EditPostGroup:e=this.isReply?H.EditReplyItem:H.EditPostItem),e}renderPrimaryActionButton(){let{post:e,isReply:t,intl:s,titleValue:i,bodyValue:o,isBodyValid:n,isTitleValid:a,pending:c,hasLocationChanges:l,blockedNotice:d,createParentSaveButtonText:u}=this,h,p;t?(p=!n,h=s.t("createReply")):(p=!n||!a,h=u||s.t("post.create"));let m=!!d||p;return e&&(t?(h=s.t("saveReply"),m=m||o===e.body&&!l):(h=s.t("post.save"),m=m||(!i&&!e.title||i===e.title)&&o===e.body&&!l)),r("calcite-button",{appearance:"solid",class:"hub-discussions-post-editor-post-actions__primary",disabled:m||c,key:"primary",kind:"brand",label:h,loading:c,round:!0,scale:"l",type:"submit"},h)}renderSecondaryActionButton(){let e=this.intl.t("cancel");if(!this.isReply||this.isReply&&this.post)return r("calcite-button",{appearance:"transparent",class:"hub-discussions-post-editor-post-actions__secondary",kind:"neutral",label:e,onClick:this.handleCancelOrConfirm,round:!0,scale:"l",type:"reset"},e)}renderAddLocationsButton(){if(this.showLocations&&this.hasMap){let t=[...this.disableSelectExistingLocation?[]:[{type:"select",icon:"select"}],{type:"point",icon:"pin"},{type:"polyline",icon:"freehand"},{type:"polygon",icon:"freehand-area"}].map(({type:s,icon:i})=>r("calcite-action",{active:this.addLocationsActiveGeometryType===s,"data-type":s,icon:i,key:s,onClick:this.setActiveGeometryDrawType,text:this.intl.t(`location.action.${s}`),textEnabled:!0}));return r(E,null,r("calcite-action",{active:this.addLocationsPopoverOpen,appearance:"solid",class:"add-location-post",disabled:!this.hasMap||!!this.blockedNotice,ref:s=>{this.locationActionElement=s},text:this.intl.t("location.heading")},r("calcite-icon",{class:"add-location-icon",icon:"pin-plus",scale:"s"})),r("calcite-tooltip",{closeOnClick:!0,label:this.intl.t("location.tooltip"),referenceElement:this.locationActionElement},r("span",null,this.intl.t("location.tooltip"))),this.hasMap&&!this.blockedNotice&&r("calcite-popover",{autoClose:!0,label:this.intl.t("location.heading"),onCalcitePopoverClose:this.handleLocationPopoverClose,onCalcitePopoverOpen:this.handleLocationPopoverOpen,overlayPositioning:"fixed",pointerDisabled:!0,ref:s=>{this.locationPopoverRef=s},referenceElement:this.locationActionElement},t))}}renderTitleField(){let{collapsible:e,collapsed:t,intl:s,titleValue:i,updateTitleValue:o,titleMessage:n,blockedNotice:a}=this;if(!e||e&&!t)return r(E,null,r("input",{"aria-label":s.t("post.title.label"),class:"hub-discussions-post-editor__title",disabled:!!a,onInput:o,placeholder:s.t("post.title.placeholder"),ref:c=>{this.titleRef=c},type:"text",value:i}),n&&r("calcite-input-message",{class:"hub-discussions-post-editor__message",icon:n.icon,scale:"l",status:n.status},n.text))}renderBodyField(){let{createParentBodyPlaceholderText:e,intl:t,bodyValue:s,bodyMessage:i,pending:o,getMentionQuery:n,blockedNotice:a,asAnonymous:c}=this;return r(E,null,r("arcgis-hub-rich-text",{class:"hub-discussions-post-editor__body",disabled:!!a||o,getMentionQuery:n,label:t.t("post.body.label"),mention:!c,mentionCount:100,placeholder:e||t.t("post.body.placeholder"),ref:l=>{this.bodyRef=l},"text-transform":!0,toolbar:"",value:s}),i&&r("calcite-input-message",{class:"hub-discussions-post-editor__message",icon:i.icon,scale:"l",status:i.status},i.text))}renderPostHeader(e,t,s,i,o,n,a,c){let{postId:l,post:d,postCreator:u,postCreatorOrg:h,channel:p,index:m,isHub:b,asAnonymous:f}=this;return r("arcgis-hub-discussions-post-header",{channel:p,class:"hub-discussions-post-editor__header",displayAnon:f,iconScale:e,index:m,isHub:b,post:l&&p&&d,postCreator:l&&p&&u,postCreatorOrg:l&&p&&h,showChannelAccessIcon:i,showChannelAvatar:s,showChannelName:o,showCreatorAvatar:t,showCreatorUsername:a,showPopover:c,showTimestamp:n})}renderAnonToggle(){let{channel:e,postId:t,asAnonymous:s,hasMentionedUsers:i,intl:o}=this;return e.allowAsAnonymous&&!t&&r("div",{class:"anon-toggle"},r("calcite-switch",{disabled:i,label:o.t("anonymous.label"),onCalciteSwitchChange:this.handleAnonToggle,ref:n=>{this.anonToggleRef=n}}),r("p",null,o.t("anonymous.label")),s&&r("p",null,o.t("anonymous.desc")),i&&r("calcite-tooltip",{referenceElement:this.anonToggleRef},r("span",null,o.t("anonymous.tooltip"))))}renderContentStep(){return r(E,null,this.showHeader&&r("header",{class:"hub-discussions-post-editor-header"},r("span",null,this.numPostableChannels>1&&r("calcite-button",{appearance:"outline-fill",disabled:!!this.confirmAction,iconFlipRtl:"start",iconStart:"chevron-left",kind:"neutral",label:this.intl.t("header.content.back"),onClick:this.handleBackOrConfirm,round:!0,scale:"l"})),r("p",{class:"hub-discussions-post-editor-header__title"},this.intl.t("header.content.title")),r("calcite-button",{appearance:"transparent",disabled:!!this.confirmAction,"icon-start":"x",kind:"neutral",label:this.intl.t(`header.${this.step}.back`),onClick:this.handleCancelOrConfirm,round:!0,scale:"l",type:"button"})),this.confirmAction?this.renderConfirmCancel():r("form",{onSubmit:this.handleSubmit},!!(this.showHeader&&this.post)&&r("header",null,this.intl.t("editPost")),this.renderAnonToggle(),this.isCollapsed?this.renderPostHeader("m",!0):this.renderPostHeader("l",!0,!0,!0,!0,!0,!1,!0),this.renderTitleField(),this.renderBodyField(),this.renderGeographies(),r("div",{class:"hub-discussions-post-editor-post-actions"},this.renderAddLocationsButton(),!this.isCollapsed&&this.renderSecondaryActionButton(),this.renderPrimaryActionButton()),this.blockedNotice&&r("arcgis-hub-discussions-blocked-notice",{class:"hub-discussions-post-editor__not-discussable-notice",scale:"s",variant:this.blockedNotice}),this.errorMessage&&r("calcite-notice",{class:"hub-discussions-post-editor__crud-error",kind:"danger",open:!0,scale:"s"},r("div",{slot:"title"},this.intl.t("error.title")),r("div",{slot:"message"},this.errorMessage&&this.intl.t(this.errorMessage)))))}renderConfirmCancel(){return r("div",{class:"hub-discussions-post-editor-cancel-confirm"},r("header",{class:"hub-discussions-post-editor-cancel-confirm__header"},this.intl.t("confirm.header")),r("p",{class:"hub-discussions-post-editor-cancel-confirm__message"},this.intl.t(this.isReply?"confirm":"confirm.body")),r("footer",{class:"hub-discussions-post-editor-cancel-confirm__footer"},r("calcite-button",{appearance:"transparent",class:"hub-discussions-post-editor-cancel-confirm__button",kind:"neutral",onClick:this.handleConfirmBackButtonClicked,round:!0,scale:"l"},this.intl.t("confirm.back")),r("calcite-button",{class:"hub-discussions-post-editor-cancel-confirm__button",kind:"danger",onClick:this.confirmAction,round:!0,scale:"l"},this.intl.t("confirm.discard"))))}renderAudienceStep(){return r(E,null,this.showHeader&&r("header",{class:"hub-discussions-post-editor-header"},r("calcite-button",{appearance:"outline","icon-start":"lightbulb",kind:"neutral",label:this.intl.t("header.help"),ref:e=>{this.helpButtonRef=e},round:!0,scale:"l",type:"button"}),r("calcite-popover",{closable:!0,label:this.intl.t("header.help"),onCalcitePopoverClose:this.handleHelpPopoverClose,onCalcitePopoverOpen:this.handleHelpPopoverOpen,overlayPositioning:"fixed",placement:"bottom-end",referenceElement:this.helpButtonRef},r("p",{class:"hub-discussions-post-editor-header__popover"},this.intl.t(`header.${this.step}.help`))),r("p",{class:"hub-discussions-post-editor-header__title"},this.intl.t(`header.${this.step}.title`)),r("calcite-button",{appearance:"transparent","icon-start":"x",kind:"neutral",label:this.intl.t(`header.${this.step}.back`),onClick:this.handleCancel,round:!0,scale:"l",type:"button"})),r("p",{class:"hub-discussions-post-editor-audience__description"},this.intl.t("selectChannelDescription")),r("header",{class:"hub-discussions-post-editor-audience__header"},this.intl.t(this.hasAllowedChannelsList?"allowedChannels":"recentChannels")),this.channelGalleryQuery&&r("arcgis-hub-gallery",{callback:this.channelCardCallback,class:"hub-discussions-post-editor-audience__gallery",include:"groups",layout:"compact",limit:this.channelGalleryLimit,linkTarget:"event",onArcgisHubGalleryAction:this.handleChannelGalleryAction,onArcgisHubGalleryError:this.handleChannelGalleryError,onArcgisHubGalleryResultsChange:this.handleChannelGalleryResultsChange,query:this.channelGalleryQuery,showEmptyState:!0,sortField:"lastActivity",sortOrder:"desc"}),this.numPostableChannels>4&&r(E,null,r("calcite-button",{appearance:"outline",class:"hub-discussions-post-editor-audience__button",kind:"neutral",label:this.intl.t("header.audience.title"),onClick:this.toggleChannelPickerOpen,ref:e=>{this.browseChannelsButtonRef=e},round:!0,width:"full"},this.intl.t("channels.select.button")),r("arcgis-wormhole",{elAttributes:{unthemed:""}},r("arcgis-hub-gallery-picker",{catalogs:this.channelPickerCatalog,enablePrimaryButton:!0,facets:this.channelPickerFacets,gallerySelection:{channel:[]},isMobile:!1,limit:1,linkTarget:"none",modalTitle:this.intl.t("channels.select.modal.title"),onArcgisHubGalleryPickerClose:this.toggleChannelPickerOpen,onArcgisHubGalleryPickerSelectionUpdate:this.handleChannelPickerSelectionUpdate,open:this.galleryPickerOpen,primaryButtonLabel:this.intl.t("channels.select.modal.button"),selectionMode:"single",showAllCollectionFacet:!1,showSearch:!0,showThumbnail:!0,sortField:"relevance",sortOptions:["relevance","created","modified"],triggerElement:this.browseChannelsButtonRef}))),this.channelEntityToView&&r("arcgis-wormhole",{elAttributes:{unthemed:""}},r("arcgis-hub-entity-editor",{editorType:"hub:channel:edit",entity:this.channelEntityToView,isDisabled:!0,isOpen:!0,layout:"modal",modalTitle:this.intl.t("viewChannel"),onArcgisHubEntityEditorModalClosed:this.handleEntityEditorClosed,variant:Ue.workspace})))}async loadChannelDetails(e){var t;let s=await pe(e,this._context.hubRequestOptions),i=await Ge(["placeholder"],s.channel,(t=this._context.currentUser)===null||t===void 0?void 0:t.username,this._context.requestOptions);Object.assign(this,Object.assign(Object.assign({},s),{step:M.CONTENT,_mentionQuery:i}))}async handleChannelTitleClick(e){this.channelEntityToView=await Ye(e.detail.model.id,this._context),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.open.label.modal.details.viewChannel),{channelId:this.channelEntityToView.id,channelAccess:this.channelEntityToView.access}))}get channelGalleryQuery(){if(this.discussionSettings!==void 0)return{targetEntity:"channel",filters:[{predicates:[this.hasAllowedChannelsList?Ae(this.discussionSettings.allowedChannelIds):dt()]}]}}get channelPickerCatalog(){return[{schemaVersion:1,title:this.intl.t("channels.catalog.title"),scopes:{channel:{targetEntity:"channel",filters:[{predicates:[]}]}},collections:[{label:this.intl.t("channels.catalog.title"),key:"channels",targetEntity:"channel",sortField:"modfied",sortDirection:"asc",scope:this.channelPickerQuery}]}]}get channelPickerFacets(){return[{label:this.intl.t("channels.facets.access.label"),key:"access",display:"multi-select",operation:"OR",options:[{label:this.intl.t("channels.facets.access.public"),key:"public",selected:!1,predicates:[{access:"public"}]},{label:this.intl.t("channels.facets.access.organization"),key:"organization",selected:!1,predicates:[{access:"org"}]},{label:this.intl.t("channels.facets.access.private"),key:"private",selected:!1,predicates:[{access:"private"}]}]},{label:this.intl.t("channels.facets.group"),key:"groups",display:"multi-select",operation:"OR",options:this._context.currentUser.groups.map(e=>({label:e.title,key:e.title,selected:!1,predicates:[{group:e.id}]}))}]}get channelPickerQuery(){return{targetEntity:"channel",filters:[{predicates:[this.hasAllowedChannelsList?Ae(this.discussionSettings.allowedChannelIds):lt()]}]}}get channelGalleryLimit(){return this.hasAllowedChannelsList?this.discussionSettings.allowedChannelIds.length>4?4:this.discussionSettings.allowedChannelIds.length:4}renderCreate(){if(this.step===M.AUDIENCE)return this.renderAudienceStep();if(this.step===M.CONTENT)return this.renderContentStep()}renderPostEditor(){return this.postId?this.renderContentStep():this.renderCreate()}render(){let{isReply:e,_context:t,loading:s,isRtl:i}=this;return r(q,{key:"1cade3df5edb6169dee731f1a2d725a369d3177c",class:{rtl:i},"data-element":"discussions-post-editor"},!!t&&!s&&(e?this.renderReplyEditor():this.renderPostEditor()))}get isCollapsed(){return this.collapsible&&this.collapsed}get inputMessage(){let{bodyValue:e,isBodyValid:t,intl:s}=this;if(e.trim().length>=Re)return t?{status:"idle",text:s.t("reply.body.validation.warning")}:{icon:"exclamation-mark-circle",status:"invalid",text:s.t("reply.body.validation.error")}}handleCreateReply(){let{_context:e,_unsavedFeatures:t,_unsavedRelatedFeatures:s,bodyValue:i,parent:o,channel:n,discussion:a,asAnonymous:c,entity:{url:l},arcgisHubDiscussionsPostCreate:d}=this,u=a;if(s.length){let p=l.split("/").pop(),m=new Set(s.map(b=>b.objectId));u=Z(u,p,Array.from(m))}let h=null;return t.length&&(h=t.length>1?se(t):t[0].geometry),this.errorMessage=null,qe(Object.assign({postId:o.id,data:{discussion:u,body:i.trim(),geometry:h,asAnonymous:c},mentionUrl:window.location.href},e.hubRequestOptions)).then(p=>(this.bodyValue="",this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.reply),{response:g.constants.response.SUCCESS,postId:p.id,parentId:o.id,channelId:n.id,channelAccess:x(n)})),z(Object.assign({postId:p.id,data:{relations:[C.REACTIONS,C.CHANNEL,C.CHANNEL_ACL]}},e.hubRequestOptions)))).then(p=>(p.replyCount=0,d.emit(p),p)).catch(p=>(this.errorMessage="createFailure",this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.reply),{response:g.constants.response.FAILURE,parentId:o.id,channelId:n.id,channelAccess:x(n)})),X.error("Failed to create reply:",p.message),null))}handleEditReply(){let{_context:e,bodyValue:t,post:s,parentId:i,channel:o,arcgisHubDiscussionsPostEdit:n,_unsavedFeatures:a,_unsavedRelatedFeatures:c,_unsavedExistingFeatures:l,entity:{url:d}}=this;this.errorMessage=null;let u=this.discussionValue;if(c.length){let b=d.split("/").pop(),f=c.map(_=>_.objectId);u=Z(u,b,f)}let h=this.geometryValue&&Object.keys(this.geometryValue).length?Pe(Object.assign(Object.assign({},s),{geometry:this.geometryValue})):[];l.forEach(b=>{let{properties:{index:f},geometry:_}=b;_&&(h[+f].geometry=_)});let p=null,m=[...h,...a];return m.length&&(m.length>1?p=se(m):p=m[0].geometry.coordinates.length?m[0].geometry:null),_e(Object.assign({postId:s.id,data:{body:t.trim(),discussion:u,geometry:p},mentionUrl:window.location.href},e.hubRequestOptions)).then(b=>z(Object.assign({postId:b.id,data:{relations:[C.REACTIONS,C.CHANNEL,C.CHANNEL_ACL]}},e.hubRequestOptions))).then(b=>(b.replyCount=0,this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.update.label.reply),{response:g.constants.response.SUCCESS,postId:s.id,parentId:i,channelId:o.id,channelAccess:x(o)})),n.emit(b),b)).catch(b=>(this.errorMessage="editFailure",this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.update.label.reply),{response:g.constants.response.FAILURE,postId:s.id,parentId:i,channelId:o.id,channelAccess:x(o)})),X.error("Failed to edit reply:",b.message),null))}renderInput(){let{bodyValue:e,inputMessage:t,pending:s,intl:i,parentCreator:o,getMentionQuery:n,blockedNotice:a,asAnonymous:c}=this,l=o?.firstName?i.t("replyToUserPost",{firstName:o.firstName}):i.t("replyToPost");return r(E,null,r("arcgis-hub-rich-text",{class:"hub-discussions-reply-editor__body",disabled:!!a||s,getMentionQuery:n,label:i.t("inputLabel"),mention:!c,mentionCount:100,placeholder:l,ref:d=>{this.bodyRef=d},"text-transform":!0,toolbar:"",value:e}),t&&r("calcite-input-message",{class:"hub-discussions-reply-editor__message",icon:t.icon,scale:"l",status:t.status},t.text))}renderGeographies(){let{channelId:e,channel:t,hasMap:s,postWithLocationEdits:i,_unsavedFeatures:o,_unsavedRelatedFeatures:n,_unsavedExistingFeatures:a,displayFieldValid:c,displayFieldKey:l,blockedNotice:d,isMobile:u,parentId:h,entity:p,showLocations:m}=this;if(m)return r("arcgis-hub-discussions-post-geography",{channel:t,channelId:e,disabled:!s,disabledActions:!!d,displayFieldKey:l,displayFieldValid:c,hasMap:s,isMobile:u,parentId:h,post:i,postId:i?.id,renderedInEditor:!0,showLocationDescriptionText:!u,unsavedExistingFeatures:a,unsavedFeatures:o,unsavedRelatedFeatures:n,url:p?.url})}renderEditor(){let{intl:e,errorMessage:t,blockedNotice:s}=this;return r(E,null,this.renderInput(),this.renderGeographies(),r("div",{class:"hub-discussions-post-editor-post-actions"},this.renderAddLocationsButton(),this.renderSecondaryActionButton(),this.renderPrimaryActionButton()),s&&r("arcgis-hub-discussions-blocked-notice",{class:"hub-discussions-reply-editor__not-discussable-notice",scale:"s",variant:s}),t&&r("calcite-notice",{class:"hub-discussions-reply-editor__notice",kind:"danger",open:!0,scale:"s"},r("div",{slot:"title"},e.t("error")),r("div",{slot:"message"},e.t(t))))}renderReplyEditor(){return r("form",{class:"hub-discussions-reply-editor__form",onSubmit:this.handleReplySubmit},this.renderAnonToggle(),this.renderPostHeader("m",!0),this.confirmAction?this.renderConfirmCancel():this.renderEditor())}static get assetsDirs(){return["locales"]}get element(){return F(this)}static get watchers(){return{_context:["initialize"],geometryValue:["handleGeometryValueUpdated"],unsavedFeatures:["mapFeaturePropToState"],unsavedExistingFeatures:["mapExistingFeaturePropToState"],unsavedRelatedFeatures:["mapRelatedFeaturePropToState"],addLocationsActiveGeometryType:["handleAddLocationsActiveGeometryTypeChanged"]}}};ae([K("bodyValue")],te.prototype,"hasMentionedUsers",null);ae([K("discussionSettings","hasAllowedChannelsList")],te.prototype,"channelGalleryQuery",null);ae([K("channelPickerQuery")],te.prototype,"channelPickerCatalog",null);ae([K()],te.prototype,"channelPickerFacets",null);ae([K("discussionSettings")],te.prototype,"channelPickerQuery",null);te.style=Bt;var Gt='.sc-arcgis-hub-discussions-post-list-h{display:block}arcgis-load-more-button.sc-arcgis-hub-discussions-post-list{margin-top:0.75rem;margin-right:1rem;margin-bottom:1.5rem;margin-left:1rem}calcite-input[type="search"].sc-arcgis-hub-discussions-post-list{margin-bottom:1rem}calcite-dropdown.sc-arcgis-hub-discussions-post-list{position:relative}.post-results-info-and-controls.sc-arcgis-hub-discussions-post-list{display:flex;align-items:center;gap:0.25rem}.post-count.sc-arcgis-hub-discussions-post-list{flex-grow:1}arcgis-hub-discussions-thread.sc-arcgis-hub-discussions-post-list:first-of-type{padding-top:1rem}arcgis-hub-discussions-thread.sc-arcgis-hub-discussions-post-list:last-of-type{padding-bottom:1rem}arcgis-hub-discussions-post.loading.sc-arcgis-hub-discussions-post-list,arcgis-hub-discussions-post.loading.sc-arcgis-hub-discussions-post-list:not([parent-id]){margin:0px;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem}.location-list.sc-arcgis-hub-discussions-post-list-h arcgis-hub-discussions-post.loading.sc-arcgis-hub-discussions-post-list{padding-left:1rem;padding-right:1rem}.replies-only.sc-arcgis-hub-discussions-post-list arcgis-hub-discussions-post.loading.sc-arcgis-hub-discussions-post-list{padding-left:0px;padding-right:0px}.sc-arcgis-hub-discussions-post-list-h:not(.has-error).sc-arcgis-hub-discussions-post-list-s>[slot="error"]{display:none}[total="0"].sc-arcgis-hub-discussions-post-list-h calcite-list.sc-arcgis-hub-discussions-post-list{display:none}.sc-arcgis-hub-discussions-post-list-h:not([total="0"]).sc-arcgis-hub-discussions-post-list-s>[slot="empty"]{display:none}',zt=Gt,Kt=function(e,t,s,i){var o=arguments.length,n=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,s,i);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(n=(o<3?a(n):o>3?a(t,s,n):a(t,s))||n);return o>3&&n&&Object.defineProperty(t,s,n),n},ee;(function(e){e.List="list",e.Loading="isLoading"})(ee||(ee={}));var Ot=class{constructor(e){N(this,e),this.arcgisHubDiscussionsPostListUpdated=v(this,"arcgisHubDiscussionsPostListUpdated",7),this.arcgisHubDiscussionsPostListReady=v(this,"arcgisHubDiscussionsPostListReady",7),this.arcgisHubDiscussionsPostListLayoutChanged=v(this,"arcgisHubDiscussionsPostListLayoutChanged",7),this.hubTelemetry=v(this,"hubTelemetry",7),this.impressionLogged=!1,this.discussion=void 0,this.entityId=void 0,this.entityType=void 0,this.entity=void 0,this.discussionSettings=void 0,this.displayFieldValid=void 0,this.displayFieldValue=void 0,this.displayFieldKey=void 0,this.hasMap=void 0,this.isHub=void 0,this.unsavedFeatures=void 0,this.unsavedRelatedFeatures=void 0,this.unsavedExistingFeatures=[],this.nextStart=-1,this.start=1,this.total=0,this.items=void 0,this.sortBy=re.UPDATED_AT,this.sortOrder=Y.DESC,this.titleText=void 0,this.bodyText=void 0,this.geometry=void 0,this.featureGeometry=void 0,this.parentIds=void 0,this.creator=void 0,this.editor=void 0,this.status=[k.APPROVED,k.HIDDEN,k.PENDING,k.REJECTED,k.BLOCKED],this.groupIds=void 0,this.channelIds=void 0,this.createdBefore=void 0,this.createdAfter=void 0,this.updatedBefore=void 0,this.updatedAfter=void 0,this.access=void 0,this.num=10,this.isMobile=void 0,this.locationId=void 0,this.layout="list",this.showLayoutActions=void 0,this.showSearchActions=void 0,this.showCounts=void 0,this.showSortActions=void 0,this.renderPost=void 0,this.showLocations=void 0,this.disableSelectExistingLocation=void 0,this.locationDescriptionText=void 0,this.showChannelAvatar=void 0,this.showChannelName=void 0,this._context=Q(),this.pending=!1,this.error=void 0,this.loadedPostIds=[],this.ready=!1,this.mostRecentPagePostIds=[],this._loading=!0,this.intl=void 0,$(this,"renderListAndActions","renderLoading","handleSortBySelect","handleSortOrderSelected","handleSearchInputChanged","_renderPost")}async componentWillLoad(){this.initialize()}connectedCallback(){oe(this)}disconnectedCallback(){this.disconnectContext()}async initialize(){this.loadTranslations(),this._context&&(await this.loadDependencies(),this.items?(this.mostRecentPagePostIds=this.items.map(({id:e})=>e),this.emitPostListOpenEvent(!0),this.loadedPostIds=[]):this.searchPosts(1))}async loadTranslations(){this.intl=await j.loadIntlForComponent(this.element)}loadDependencies(){if(this._context)return this._loading=!0,this.fetchDependencies().then(e=>{Object.assign(this,e),this._loading=!1})}fetchDependencies(){return this._fetchDependencies()}async _fetchDependencies(){let{isHub:e,_context:t,discussion:s,entityId:i,entityType:o,entity:n,discussionSettings:a,locationId:c,displayFieldKey:l,displayFieldValid:d,displayFieldValue:u}=this,h=await ue({isHub:e},t.hubRequestOptions),p=await he({discussion:s,entityId:i,entityType:o,entity:n,discussionSettings:a,locationId:c,displayFieldKey:l,displayFieldValid:d,displayFieldValue:u},t.hubRequestOptions,!0);return Object.assign(Object.assign({},h),p)}handleContextChanged(e,t){var s,i;if(((s=e?.currentUser)===null||s===void 0?void 0:s.username)!==((i=t?.currentUser)===null||i===void 0?void 0:i.username))return this.loadDependencies().then(()=>{this.items?this.emitPostListOpenEvent(!0):this.searchPosts(1)})}handleReadyChanged(e){e&&this.arcgisHubDiscussionsPostListReady.emit()}handleLoadedPostIdsChanged(e){this.ready||(this.ready=!!e&&!!this.items&&this.items.every(({id:t})=>e.includes(t)))}emitPostListOpenEvent(e){this.impressionLogged||(this.impressionLogged=!0,this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.open.label.postList),{response:e?g.constants.response.SUCCESS:g.constants.response.FAILURE})))}handlePostReady(e){this.loadedPostIds=[...this.loadedPostIds,e.target.postId]}handleLayoutSelected(e){e.stopPropagation(),this.arcgisHubDiscussionsPostListLayoutChanged.emit(e.detail);let t={grid:"gridView",list:"listView",map:"mapView"}[e.detail];this.hubTelemetry.emit(g.dictionary.category.interaction.action.select.label.discussionBoardView.details[t])}get sortByMenuConfigs(){return[{label:"sortRecent",value:re.UPDATED_AT},{label:"sortCreator",value:re.CREATOR}]}get activeSortConfig(){return this.sortByMenuConfigs.find(({value:e})=>e===this.sortBy)}get isRtl(){var e;return((e=this.intl)===null||e===void 0?void 0:e.direction)==="rtl"||!1}get views(){let{renderListAndActions:e,renderLoading:t}=this;return{[ee.List]:{render:e},[ee.Loading]:{render:t}}}get isLoading(){let{intl:e,_context:t,_loading:s}=this;return!e||!t||s}get view(){let{views:e,isLoading:t}=this,s=t?ee.Loading:ee.List;return e[s]}handlePostDeleted(e){this.items.findIndex(({id:s})=>e.detail.id===s)>-1&&(this.items=this.items.filter(({id:s})=>e.detail.id!==s),this.total-=1,this.nextStart>-1&&(this.nextStart-=1),this.arcgisHubDiscussionsPostListUpdated.emit())}handlePostCreated(e){let t=e.detail.discussion.includes(this.discussion),s=!0;this.parentIds&&(s=this.parentIds.length?this.parentIds.includes(e.detail.parentId):!e.detail.parentId),t&&s&&(this.sortOrder===Y.DESC?this.items.find(({id:i})=>e.detail.id===i)||(this.items=[e.detail,...this.items],this.total+=1,this.nextStart>-1&&(this.nextStart+=1),this.arcgisHubDiscussionsPostListUpdated.emit()):(this.total+=1,this.arcgisHubDiscussionsPostListUpdated.emit()))}handlePostEdited(e){this.items.findIndex(({id:s})=>e.detail.id===s)>-1&&(this.items=this.items.map(s=>s.id===e.detail.id?e.detail:s),this.arcgisHubDiscussionsPostListUpdated.emit())}handleLoadMoreChange(e){e.stopPropagation(),this.searchPosts(this.nextStart)}async getPostRefByPostId(e){return Array.prototype.find.call(this.layoutListRef.childNodes,t=>t.postId===e)||null}handleSortByChanged(){this.searchPosts(1)}handleSortBySelect(e){let{selectedItems:[{dataset:{value:t}}]}=e.target;this.sortBy=t}get searchParams(){let{sortBy:e,sortOrder:t,access:s,status:i,channelIds:o,groupIds:n,titleText:a,bodyText:c,discussion:l,geometry:d,creator:u,editor:h,featureGeometry:p,parentIds:m,createdBefore:b,createdAfter:f,updatedBefore:_,updatedAfter:w,num:A}=this,R=O=>O===void 0?O:new Date(O),I={title:a&&`%${a}%`,body:c&&`%${c}%`,term:c&&`%${c}%`,discussion:l&&!l.endsWith("%")?`${l}%`:l,geometry:d,featureGeometry:p,parents:m,status:i,creator:u,editor:h,sortBy:e,sortOrder:t,access:s,channels:o,groups:n,createdBefore:R(b),createdAfter:R(f),updatedBefore:R(_),updatedAfter:R(w),num:A};return Object.entries(I).reduce((O,[S,T])=>T?Object.assign(Object.assign({},O),{[S]:T}):O,{})}searchPosts(e){let{_context:t,searchParams:s,arcgisHubDiscussionsPostListUpdated:i,items:o,loadedPostIds:n}=this;return Object.assign(this,{pending:!0,error:null}),e===1&&Object.assign(this,{items:[],total:0,nextStart:-1}),ze(Object.assign({data:Object.assign({start:e,relations:[C.REPLIES,C.REACTIONS,C.CHANNEL,C.CHANNEL_ACL]},s)},t.hubRequestOptions)).then(({items:a,nextStart:c,total:l})=>{let d,u;e===1?(d=a,u=[]):(u=n,d=[...o,...a]),Object.assign(this,{items:d,nextStart:c,total:l,loadedPostIds:u,mostRecentPagePostIds:a.map(({id:h})=>h)}),this.emitPostListOpenEvent(!0),i.emit()}).catch(a=>{this.error=a,this.emitPostListOpenEvent(!1)}).finally(()=>{this.pending=!1})}renderCount(){if(this.showCounts){let{items:e,total:t,intl:s}=this,i=e.length?1:0,o=e.length?e.length:0;return r("div",{class:"post-count"},s.t("searchCount",{start:i,end:o,total:t}))}}renderSortByDropdown(){if(this.showSortActions){let{intl:e,sortBy:t,sortByMenuConfigs:s,activeSortConfig:i,pending:o,handleSortBySelect:n,total:a}=this;return r("calcite-dropdown",{disabled:o||!a,onCalciteDropdownSelect:n},r("calcite-button",{appearance:"transparent",iconEnd:"caret-down",slot:"trigger"},e.t(i.label)),r("calcite-dropdown-group",null,s.map(({label:c,value:l})=>r("calcite-dropdown-item",{"data-value":l,key:l,selected:l===t},e.t(c)))))}}handleSortOrderSelected(){this.sortOrder=this.sortOrder===Y.DESC?Y.ASC:Y.DESC}handleSearchInputChanged(e){this.bodyText=e.target.value}handleSortOrderChanged(){this.searchPosts(1)}handleBodyChanged(){this.searchPosts(1),this.hubTelemetry.emit(g.dictionary.category.interaction.action.search.label.searchPosts.details.mapView)}renderSortDirectionAction(){if(this.showSortActions){let{sortOrder:e,intl:t,handleSortOrderSelected:s,pending:i,total:o}=this,n,a;return e===Y.DESC?(n="sort-descending-arrow",a="orderDesc"):(a="orderAsc",n="sort-ascending-arrow"),r("calcite-action",{class:"sort-direction-action",disabled:i||!o,icon:n,iconFlipRtl:this.isRtl,onClick:s,scale:"s",text:t.t(a)})}}renderSearch(){if(this.showSearchActions){let{intl:e,pending:t,handleSearchInputChanged:s,isRtl:i,total:o,bodyText:n}=this;return r("calcite-input",{disabled:t||!n&&!o,icon:!0,iconFlipRtl:i,onCalciteInputChange:s,placeholder:e.t("searchIdeas"),type:"search",value:n})}}renderList(){let{items:e,layout:t,parentIds:s,pending:i,isMobile:o}=this;return r("arcgis-layout-list",{class:{"replies-only":!!s?.length},disabled:i,layout:t,ref:n=>{this.layoutListRef=n},showMapControl:!o},this.renderCountAndActions(),e.map(this._renderPost))}_renderPost(e,t,s){let{hasMap:i,isHub:o,unsavedFeatures:n,unsavedRelatedFeatures:a,unsavedExistingFeatures:c,displayFieldKey:l,displayFieldValid:d,displayFieldValue:u,showChannelAvatar:h,showChannelName:p,entity:m,entityId:b,entityType:f,discussionSettings:_,isMobile:w,locationDescriptionText:A,locationId:R,mostRecentPagePostIds:I,loadedPostIds:O,parentIds:S,showLocations:T,disableSelectExistingLocation:U}=this,P=I.includes(e.id)?I.some(B=>!O.includes(B)):!O.includes(e.id);return this.renderPost?this.renderPost(e,t,s,P):r("arcgis-hub-discussions-post",{channel:e.channel,channelId:e.channel.id,disableSelectExistingLocation:U,discussionSettings:_,displayFieldKey:l,displayFieldValid:d,displayFieldValue:u,entity:m,entityId:b,entityType:f,hasMap:i,index:t,isHub:o,isMobile:w,key:e.id,lastIndex:s.length-1,lead:!!S?.length,loading:P,locationDescriptionText:A,locationId:R,parentId:e.parentId,post:e,postId:e.id,preview:!e.parentId,role:"listitem",showChannelAvatar:h,showChannelName:p,showLocations:T,unsavedExistingFeatures:c,unsavedFeatures:n,unsavedRelatedFeatures:a})}renderCountAndActions(){let{showLayoutActions:e,showCounts:t,showSortActions:s}=this;if(e||t||s)return r("div",{class:"post-results-info-and-controls",slot:"actions"},this.renderCount(),this.renderSortByDropdown(),this.renderSortDirectionAction())}renderListAndActions(){let{nextStart:e,pending:t}=this;return r(E,null,r("slot",{name:"list-before"}),this.renderSearch(),this.renderList(),this.renderEmpty(),this.renderError(),r("arcgis-load-more-button",{appearance:"outline-fill",loading:t,nextStart:e}))}renderLoading(){return null}renderEmpty(){return r("slot",{name:"empty"})}renderError(){return r("slot",{name:"error"})}render(){let{view:e,error:t,items:s}=this;return r(q,{key:"17455335beb6873ff1ef60afc8aa74d996e3e3f6",class:{"has-error":!!t,rtl:!0},"data-count":s?.length||0,"data-element":"discussions-post-list"},e.render())}static get assetsDirs(){return["locales"]}get element(){return F(this)}static get watchers(){return{_context:["handleContextChanged"],ready:["handleReadyChanged"],loadedPostIds:["handleLoadedPostIdsChanged"],sortBy:["handleSortByChanged"],sortOrder:["handleSortOrderChanged"],bodyText:["handleBodyChanged"]}}};Kt([de({delay:300})],Ot.prototype,"fetchDependencies",null);Ot.style=zt;var xt=[y.THUMBS_UP,y.THINKING,y.GRINNING,y.PARTY_POPPER],vt=[...xt,y.SLIGHTLY_SMILING,y.CONFUSED,y.LAUGH,y.FACE_WITH_TEARS_OF_JOY,y.WINKING,y.PARTYING,y.SAD,y.SURPRISED,y.THUMBS_DOWN,y.CLAPPING_HANDS,y.RAISING_HANDS,y.WAVING_HAND,y.HEART,y.ONE_HUNDRED,y.FIRE,y.ROCKET,y.UP_ARROW,y.DOWN_ARROW,y.EYES,y.TROPHY,y.WORLD_MAP],V={[y.SLIGHTLY_SMILING]:{emoji:"\u{1F642}",telemetryKey:"smilingFace"},[y.CONFUSED]:{emoji:"\u{1F615}",telemetryKey:"confusedFace"},[y.LAUGH]:{emoji:"\u{1F600}",telemetryKey:"laughingFace"},[y.GRINNING]:{emoji:"\u{1F606}",telemetryKey:"grinningFace"},[y.FACE_WITH_TEARS_OF_JOY]:{emoji:"\u{1F602}",telemetryKey:"faceWithTearsOfJoy"},[y.THINKING]:{emoji:"\u{1F914}",telemetryKey:"thinkingFace"},[y.WINKING]:{emoji:"\u{1F609}",telemetryKey:"winkingFace"},[y.PARTYING]:{emoji:"\u{1F973}",telemetryKey:"partyingFace"},[y.SAD]:{emoji:"\u{1F625}",telemetryKey:"sadFace"},[y.SURPRISED]:{emoji:"\u{1F632}",telemetryKey:"shockedFace"},[y.THUMBS_UP]:{emoji:"\u{1F44D}",telemetryKey:"thumbsUp"},[y.THUMBS_DOWN]:{emoji:"\u{1F44E}",telemetryKey:"thumbsDown"},[y.CLAPPING_HANDS]:{emoji:"\u{1F44F}",telemetryKey:"clappingHands"},[y.RAISING_HANDS]:{emoji:"\u{1F64C}",telemetryKey:"raisingHands"},[y.WAVING_HAND]:{emoji:"\u{1F44B}",telemetryKey:"wavingHand"},[y.HEART]:{emoji:"\u2764\uFE0F",telemetryKey:"redHeart"},[y.ONE_HUNDRED]:{emoji:"\u{1F4AF}",telemetryKey:"hundredPoints"},[y.FIRE]:{emoji:"\u{1F525}",telemetryKey:"fire"},[y.PARTY_POPPER]:{emoji:"\u{1F389}",telemetryKey:"partyPopper"},[y.ROCKET]:{emoji:"\u{1F680}",telemetryKey:"rocket"},[y.UP_ARROW]:{emoji:"\u2B06",telemetryKey:"upArrow"},[y.DOWN_ARROW]:{emoji:"\u2B07",telemetryKey:"downArrow"},[y.EYES]:{emoji:"\u{1F440}",telemetryKey:"eyes"},[y.TROPHY]:{emoji:"\u{1F3C6}",telemetryKey:"trophy"},[y.WORLD_MAP]:{emoji:"\u{1F5FA}",telemetryKey:"worldMap"}},qt=`:host{display:inline-block}:host>div>calcite-button{margin-right:0.125rem;border-width:2px;border-style:solid;border-color:transparent;padding:0.125rem}:host>div>calcite-button:last-of-type{margin-right:0px}.submitted_reactions_list calcite-button{border-width:2px;border-style:solid;border-color:transparent;padding:0.125rem}.submitted_reactions_list calcite-button span{margin-left:0.25rem}calcite-button[aria-checked="true"],calcite-button[data-reaction="add"][aria-expanded="true"]{border-color:var(--calcite-color-brand)}:host(.rtl) calcite-button[data-reaction="add"]{transform:scaleX(-1)}calcite-button[aria-checked="true"] span{font-weight:var(--calcite-font-weight-bold)}:host>div{display:flex}.submitted_reactions_list{margin:0px;display:inline-flex;list-style-type:none;padding:0px}.submitted_reactions_list li{margin-right:0.125rem}.user_reactions_popover{width:20rem}.user_reactions_list{margin:0px;display:grid;max-height:407px;list-style-type:none;grid-auto-flow:row;row-gap:0.75rem;overflow:auto;padding:0.75rem}.user_reaction_item{display:grid;grid-template-rows:repeat(2, minmax(0, 1fr));column-gap:0.75rem;row-gap:0.125rem;background-color:var(--calcite-color-foreground-1);grid-template-columns:2.75rem auto}.user_reaction_item:has(div:nth-of-type(3)){grid-template-columns:2.75rem auto minmax(0, 16px)}.user_reaction_item calcite-avatar{grid-row:span 2 / span 2;height:2.75rem;width:2.75rem}.user_reaction_item div:nth-of-type(1){display:flex;flex-grow:1;align-items:center;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-bold);text-transform:capitalize;color:var(--calcite-color-text-1)}.user_reaction_item div:nth-of-type(2){display:flex;align-items:center;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2)}.user_reaction_item:has(div:nth-of-type(3)) div:nth-of-type(2){grid-row:span 2 / span 2;justify-content:flex-end}.user_reaction_item div:nth-of-type(2):before{content:'@'}.user_reaction_item:has(div:nth-of-type(3)) div:nth-of-type(2):before{content:''}.user_reaction_item div:nth-of-type(3){display:flex;align-items:center;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2)}.user_reaction_item div:nth-of-type(3):before{content:'@'}arcgis-skeleton-loader{display:grid;grid-template-rows:repeat(2, minmax(0, 1fr));column-gap:0.75rem;row-gap:0.125rem;grid-template-columns:2.75rem auto}arcgis-skeleton-loader:has(div:nth-of-type(4)){grid-template-columns:2.75rem auto minmax(0, 16px)}@keyframes shimmer{0%{background-size:200% 100%;background-position:100% 0}100%{background-size:200% 100%;background-position:-100% 0}}arcgis-skeleton-loader>div:nth-of-type(1){animation:shimmer 2s cubic-bezier(0.4, 0, 0.2, 0.8) infinite;background-image:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);background-color:var(--calcite-color-foreground-3);grid-row:span 2 / span 2;height:2.75rem;width:2.75rem;border-radius:50%}arcgis-skeleton-loader>div:nth-of-type(2){display:flex;align-items:center}@keyframes shimmer{0%{background-size:200% 100%;background-position:100% 0}100%{background-size:200% 100%;background-position:-100% 0}}arcgis-skeleton-loader>div:nth-of-type(2) div{animation:shimmer 2s cubic-bezier(0.4, 0, 0.2, 0.8) infinite;background-image:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);background-color:var(--calcite-color-foreground-3);display:flex;flex-grow:1;border-radius:0.375rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}arcgis-skeleton-loader>div:nth-of-type(3){display:flex;align-items:center}@keyframes shimmer{0%{background-size:200% 100%;background-position:100% 0}100%{background-size:200% 100%;background-position:-100% 0}}arcgis-skeleton-loader>div:nth-of-type(3) div{animation:shimmer 2s cubic-bezier(0.4, 0, 0.2, 0.8) infinite;background-image:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);background-color:var(--calcite-color-foreground-3);display:flex;flex-grow:1;border-radius:0.375rem;font-size:var(--calcite-font-size--1);line-height:1rem}arcgis-skeleton-loader:has(div:nth-of-type(4))>div:nth-of-type(3){grid-row:span 2 / span 2;display:flex;align-items:center}@keyframes shimmer{0%{background-size:200% 100%;background-position:100% 0}100%{background-size:200% 100%;background-position:-100% 0}}arcgis-skeleton-loader::has(div:nth-of-type(4))>div:nth-of-type(3) div{animation:shimmer 2s cubic-bezier(0.4, 0, 0.2, 0.8) infinite;background-image:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);background-color:var(--calcite-color-foreground-3);display:flex;height:1rem;flex-grow:1;border-radius:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}@keyframes shimmer{0%{background-size:200% 100%;background-position:100% 0}100%{background-size:200% 100%;background-position:-100% 0}}arcgis-skeleton-loader>div:nth-of-type(4) div{animation:shimmer 2s cubic-bezier(0.4, 0, 0.2, 0.8) infinite;background-image:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);background-color:var(--calcite-color-foreground-3);display:flex;flex-grow:1;border-radius:0.375rem;font-size:var(--calcite-font-size--1);line-height:1rem}.default_reactions{display:flex;flex-direction:row;padding:0.75rem}.default_reactions ul{margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0.5rem;display:inline-flex;list-style-type:none;padding:0px}.default_reactions li{margin-right:0.5rem}.default_reactions li:last-of-type{margin-right:0px}.all_reactions_list{margin:0px;display:grid;list-style-type:none;grid-template-columns:repeat(5, minmax(0, 1fr));gap:0.5rem;padding:0.75rem}`,Wt=qt,$t=function(e,t,s,i){var o=arguments.length,n=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,s,i);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(n=(o<3?a(n):o>3?a(t,s,n):a(t,s))||n);return o>3&&n&&Object.defineProperty(t,s,n),n},_t=(e,t)=>{let s=new Date(e.createdAt),i=new Date(t.createdAt);return s>i?-1:s<i?1:0},Ct=e=>(t,s)=>e[t.value].length>e[s.value].length?1:e[t.value].length<e[s.value].length?-1:0,It=class{async handlePostIdChanged(e,t){await this.fetchPostDetails(e,t)}handleContextChanged(e,t){var s,i;((s=e.currentUser)===null||s===void 0?void 0:s.username)!==((i=t.currentUser)===null||i===void 0?void 0:i.username)&&(this.users={})}handlePopoverOpen(e){e.target!==this.element&&(this.activePopover=null)}constructor(e){N(this,e),this.hubTelemetry=v(this,"hubTelemetry",7),this.arcgisHubDiscussionsPostReactionChange=v(this,"arcgisHubDiscussionsPostReactionChange",7),this.reactionListButtons={},this.postId=void 0,this.post=void 0,this.channel=void 0,this._context=Q(),this.showAllReactions=!1,this.activePopover=null,this.pending=!1,this.users={},$(this,"handleAddReactionClick","handleViewAllReactionsClick","handleAddReactionPopoverClose","handleReactionFocus","handleReactionMouseEnter","handleReactionPopoverClose","handleReactionClicked","handleReactionPopoverOpen","handleReactionRef","deleteUserReaction","handleReactionPopoverBeforeOpen")}async componentWillLoad(){let[e]=await Promise.all([j.loadIntlForComponent(this.element),this.handlePostIdChanged(this.postId)]);this.intl=e}connectedCallback(){oe(this)}disconnectedCallback(){this.disconnectContext()}get isDisabled(){let{_context:e,channel:t,pending:s}=this;return[!e.currentUser,!t.allowReaction,s].some(i=>!!i)}get overflowReactionRecords(){let{listReactions:e,reactionRecordGroups:t}=this,s=(i,[o,n])=>e.find(a=>a.value===o)?i:[...i,...n];return Object.entries(t).reduce(s,[]).sort(_t)}get currentUserReactions(){let{_context:e,reactionRecordGroups:t}=this;return Object.values(t).reduce((s,i)=>[...s,...i.filter(o=>{var n;return o.creator===((n=e.currentUser)===null||n===void 0?void 0:n.username)})],[]).sort(Ct(t))}get otherUserReactions(){let{reactionRecordGroups:e,currentUserReactions:t}=this;return Object.values(e).reduce((i,o)=>[...i,...o],[]).reduce((i,o)=>t.find(a=>a.value===o.value)||i.find(a=>a.value===o.value)?i:[...i,o],[]).sort(Ct(e))}get listReactions(){let{currentUserReactions:e,otherUserReactions:t,reactionRecordGroups:s}=this,i=[...t,...e],o=Object.keys(s).length>4?3:4,n,a;return i.length>o?(n=i.length-o,a=i.length):(n=0,a=i.length),i.slice(n,a)}get reactionRecordGroups(){let{post:{reactions:e}}=this,t=(s,i)=>vt.includes(i.value)?Object.assign(Object.assign({},s),{[i.value]:[...s[i.value]||[],i]}):s;return[...e].sort(_t).reduce(t,{})}async fetchPostDetails(e,t){let{_context:s}=this;if(e&&e!==t){let i=await z(Object.assign({postId:e,data:{relations:[C.CHANNEL,C.CHANNEL_ACL,C.REACTIONS,C.REPLIES]}},s.hubRequestOptions));i.replyCount=i.replies.total,delete i.replies,this.channel=i.channel,this.post=i}}handleAddReactionClick(e){let{dataset:{reaction:t}}=e.target,{post:s,channel:i}=this;this.activePopover=t,this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.open.label.popover.details.addReaction),{postId:s.id,parentId:s.parentId,channelId:i.id,channelAccess:x(i)}))}handleViewAllReactionsClick(){this.showAllReactions=!0}handleAddReactionPopoverClose(){this.showAllReactions=!1,this.activePopover=null}handleReactionFocus(e){let{dataset:{reaction:t}}=e.target;this.activePopover=t}handleReactionMouseEnter(e){let t=e.target,{nodeName:s,dataset:{reaction:i}}=t;s==="CALCITE-BUTTON"&&this.activePopover!=="add"&&(this.activePopover=i)}handleReactionPopoverClose(e){let{dataset:{reaction:t}}=e.target;this.activePopover===t&&(this.activePopover=null)}async handleReactionPopoverBeforeOpen(e){let{reaction:t}=e.target.dataset,s=await this.fetchUserRecords(t);this.users=Object.assign(Object.assign({},this.users),s)}async handleReactionClicked(e){let{currentUserReactions:t,arcgisHubDiscussionsPostReactionChange:s,activePopover:i}=this,{dataset:{reaction:o}}=e.currentTarget,n=t.find(({value:a})=>a===o);this.pending=!0;try{if(await Promise.all(t.map(this.deleteUserReaction)),n||await this.createReaction(o),i==="add"&&(this.activePopover=null),this.activePopover){let a=await this.fetchUserRecords(o);this.users=Object.assign(Object.assign({},this.users),a)}}catch{}finally{s.emit(),this.pending=!1}}handleReactionPopoverOpen(e){let{channel:t,post:s}=this,{dataset:{reaction:i}}=e.target,o=i==="overflow"?g.dictionary.category.interaction.action.open.label.popover.details.reactionOverflow:g.dictionary.category.interaction.action.open.label.popover.details[V[i].telemetryKey];this.hubTelemetry.emit(Object.assign(Object.assign({},o),{postId:s.id,parentId:s.parentId,channelId:t.id,channelAccess:x(t)}))}async handleReactionRef(e){var t;+((t=e?.dataset)===null||t===void 0?void 0:t.index)==0&&await e.setFocus()}async fetchUserRecords(e){let{reactionRecordGroups:t,overflowReactionRecords:s,users:i}=this,n=(e==="overflow"?s:t[e]).reduce((a,c)=>i[c.creator]?a:[...a,c.creator],[]);if(n.length){let a=n.reduce((l,d)=>[...l,this.fetchUserRecord(d)],[]);return(await Promise.all(a)).reduce((l,d,u)=>Object.assign(Object.assign({},l),{[n[u]]:d}),{})}}async fetchUserRecord(e){return Le(e,this._context.hubRequestOptions).catch(t=>null)}async createReaction(e){let{_context:t,post:s,channel:i}=this;try{let o=await Je(Object.assign({data:{postId:s.id,value:e}},t.hubRequestOptions));this.post=Object.assign(Object.assign({},this.post),{reactions:[...this.post.reactions,o]}),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.reaction.details[V[e].telemetryKey]),{postId:s.id,parentId:s.id,channelId:i.id,channelAccess:x(i),response:g.constants.response.SUCCESS}))}catch(o){throw this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.reaction.details[V[e].telemetryKey]),{postId:s.id,parentId:s.id,channelId:i.id,channelAccess:x(i),response:g.constants.response.FAILURE})),console.error("Failed to create reaction:",e,o.message),o}}async deleteUserReaction(e){let{_context:t,post:s,channel:i,currentUserReactions:o}=this;try{await Xe(Object.assign({reactionId:e.id},t.hubRequestOptions)),this.post=Object.assign(Object.assign({},s),{reactions:s.reactions.filter(({id:n})=>!o.find(a=>a.id===n))}),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.delete.label.reaction.details[V[e.value].telemetryKey]),{postId:s.id,parentId:s.id,channelId:i.id,channelAccess:x(i),response:g.constants.response.SUCCESS}))}catch(n){throw console.error("Failed to delete reaction:",e.value,e.id,n.message),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.delete.label.reaction.details[V[e.value].telemetryKey]),{postId:s.id,parentId:s.id,channelId:i.id,channelAccess:x(i),response:g.constants.response.FAILURE})),n}}renderList(){let{listReactions:e,reactionRecordGroups:t,intl:s,_context:i,activePopover:o,isDisabled:n,handleReactionPopoverClose:a,handleReactionPopoverOpen:c}=this;return r("ul",{class:"submitted_reactions_list"},e.reduce((l,d)=>{var u;let h=d.creator===((u=i.currentUser)===null||u===void 0?void 0:u.username),p=t[d.value].length>99?s.t("reaction_count_99_plus"):t[d.value].length;return[...l,r("li",{key:d.value},r("calcite-button",{appearance:"outline","aria-checked":h?"true":"false","data-reaction":d.value,disabled:n,kind:h?"brand":"neutral",label:s.t(h?"reaction_list_label_remove":"reaction_list_label_add",{reaction:s.t(d.value),count:p}),onClick:this.handleReactionClicked,onFocus:this.handleReactionFocus,onMouseEnter:this.handleReactionMouseEnter,ref:m=>{this.reactionListButtons=Object.assign(Object.assign({},this.reactionListButtons),{[d.value]:m})},role:"radio",round:!0,scale:"m"},V[d.value].emoji,r("span",null,p)),r("calcite-popover",{"auto-close":!0,class:"user_reactions_popover","data-reaction":d.value,"focus-trap-disabled":!0,heading:s.t(d.value),label:s.t(d.value),onCalcitePopoverBeforeOpen:this.handleReactionPopoverBeforeOpen,onCalcitePopoverClose:a,onCalcitePopoverOpen:c,open:o===d.value,overlayPositioning:"fixed",placement:"bottom",referenceElement:this.reactionListButtons[d.value],"trigger-disabled":!0},this.renderUserReactions(t[d.value],!1)))]},[]))}renderUserSkeleton(e){return r("arcgis-skeleton-loader",{active:!0,role:"listitem",rows:0,showFooter:!1,showHeading:!1,showThumbnail:!1},r("div",null),r("div",null,r("div",null,"\xA0")),e&&r("div",null,r("div",null,"\xA0")),r("div",null,r("div",null,"\xA0")))}renderUserReaction(e,t){var s;let{users:i,_context:o,intl:n}=this,a=i[e.creator],c=a?.fullName||n.t("privateUser");return r("li",{"aria-label":n.t("reaction_user_label",{userFullName:c,reaction:n.t(e.value)}),class:"user_reaction_item"},r("calcite-avatar",{"full-name":a?.fullName,scale:"l",thumbnail:a?.thumbnail&&ye(o.hubRequestOptions.portal,{username:a.username,access:a.access,thumbnail:a.thumbnail},(s=o.hubRequestOptions.authentication)===null||s===void 0?void 0:s.token),"user-id":a?.id,username:a?.username}),r("div",null,c),t&&r("div",null,V[e.value].emoji),r("div",null,a?.username||n.t("noUser")))}renderUserReactions(e,t){let{users:s}=this;return r("ul",{class:"user_reactions_list"},e.map(i=>s[i.creator]===void 0?this.renderUserSkeleton(t):this.renderUserReaction(i,t)))}renderOverflow(){let{intl:e,overflowReactionRecords:t,handleReactionPopoverClose:s,handleReactionPopoverOpen:i,activePopover:o,isDisabled:n,overflowButton:a}=this,c=t.length>99?e.t("reaction_count_99_plus"):e.formatNumber(t.length,{signDisplay:"always"});return!!t.length&&r(E,null,r("calcite-button",{appearance:"outline","data-reaction":"overflow",disabled:n,kind:"neutral",label:e.t(t.length>1?"n_more_reactions":"one_more_reaction",{count:c}),onFocus:this.handleReactionFocus,onMouseOver:this.handleReactionMouseEnter,ref:l=>{this.overflowButton=l},round:!0,scale:"m"},c),r("calcite-popover",{"auto-close":!0,class:"user_reactions_popover","data-reaction":"overflow","focus-trap-disabled":!0,heading:e.t("moreReactions"),label:e.t("moreReactions"),onCalcitePopoverBeforeOpen:this.handleReactionPopoverBeforeOpen,onCalcitePopoverClose:s,onCalcitePopoverOpen:i,open:o==="overflow",overlayPositioning:"fixed",placement:"bottom",referenceElement:a,"trigger-disabled":!0},this.renderUserReactions(t,!0)))}renderDefaultReactions(){let{currentUserReactions:e,intl:t,isDisabled:s}=this;return r("div",{class:"default_reactions"},r("ul",null,xt.map(i=>{let o=e.find(n=>n.value===i);return r("li",{key:i},r("calcite-button",{appearance:o?"outline":"transparent","aria-checked":o?"true":"false","data-reaction":i,disabled:s,kind:o?"brand":"neutral",label:t.t(o?"reaction_picker_label_remove":"reaction_picker_label_add",{reaction:t.t(i)}),onClick:this.handleReactionClicked,role:"radio",round:!0,scale:"m"},V[i].emoji))})),r("calcite-button",{appearance:"transparent",disabled:s,"icon-start":"plus",kind:"neutral",label:t.t("viewAllReactions"),onClick:this.handleViewAllReactionsClick,round:!0,scale:"m"}))}renderAllReactions(){let{intl:e,currentUserReactions:t,isDisabled:s,handleReactionClicked:i,handleReactionRef:o}=this;return r("ul",{class:"all_reactions_list"},vt.map((n,a)=>{let c=t.find(l=>l.value===n);return r("li",{key:n},r("calcite-button",{appearance:c?"outline":"transparent","aria-checked":c?"true":"false","data-index":a,"data-reaction":n,disabled:s,kind:c?"brand":"neutral",label:e.t(c?"reaction_picker_label_remove":"reaction_picker_label_add",{reaction:e.t(n)}),onClick:i,ref:o,round:!0,scale:"m"},V[n].emoji))}))}renderAddReaction(){let{intl:e,handleAddReactionClick:t,handleAddReactionPopoverClose:s,isDisabled:i,activePopover:o,showAllReactions:n,addReactionButton:a}=this;return r(E,null,r("calcite-button",{appearance:"outline","data-reaction":"add",disabled:i,"icon-start":"add-reaction",kind:o==="add"?"brand":"neutral",label:e.t("addReaction"),onClick:t,ref:c=>{this.addReactionButton=c},round:!0,scale:"m"}),r("calcite-popover",{"auto-close":!0,"data-reaction":"add",label:e.t("addReaction"),onCalcitePopoverClose:s,open:o==="add",overlayPositioning:"fixed",placement:"bottom",referenceElement:a,scale:"m"},n?this.renderAllReactions():this.renderDefaultReactions()))}render(){return r(q,{key:"58975710e158d313a786a10d39a851840bcd9280",class:{rtl:this.intl.direction==="rtl"},"data-element":"arcgis-hub-discussions-post-reactions"},r("div",{key:"2c3c49b99d1637f79df895adc27464d15a900169"},this.renderList(),this.renderOverflow(),this.renderAddReaction()))}static get assetsDirs(){return["locales"]}get element(){return F(this)}static get watchers(){return{postId:["handlePostIdChanged"],_context:["handleContextChanged"]}}};$t([de({delay:300})],It.prototype,"fetchUserRecord",null);It.style=Wt;async function Yt(e,t,s){let i={type:"object",properties:{cadence:{type:"string",enum:[...ke],default:"WEEKLY"}}};return await Promise.all(e.map(async o=>{let n=await Jt[o](t,s);i.properties=Object.assign(Object.assign({},i.properties),n)})),i}function Qt(e,t,s){let i={type:"Section",elements:[{scope:"/properties/cadence",type:"Control",labelKey:"cadence.label",options:{control:"hub-field-input-combobox",items:ke.map(a=>({value:a,labelKey:`cadence.${a.toLowerCase()}`})),selectionMode:"single",allowCustomValues:!1,disabled:!0}}]},o=e.map(a=>{var c;switch(a){case ie.DISCUSSION:{let l=(c=t?.properties)===null||c===void 0?void 0:c.channelActivitySelections,u=Object.keys(l?.properties||{}).map(h=>{var p,m;let b=((p=l?.properties)===null||p===void 0?void 0:p[h])||{},f=b.title?b.title:s.t("discussions.unnamedChannel"),_=s.t("discussions.channelLabel",{channelName:f}),w=((m=b.items)===null||m===void 0?void 0:m.enum)||[],A=w.map(I=>s.t(`discussions.${I}`)),R=w.length>1?"discussions.modRole":"discussions.participantRole";return{scope:`/properties/channelActivitySelections/properties/${h}`,type:"Control",label:_,options:{helperText:{labelKey:R},control:"hub-field-input-checkbox-group",labels:A,allowCustomValues:!1,layout:"vertical"}}});return{type:"Section",labelKey:"discussions.activity.label",options:{helperText:{labelKey:"discussions.activity.helperText"}},elements:u}}default:return null}}),n={type:"Layout",elements:[i]};return o.length&&n.elements.push({type:"Section",elements:o}),n}var Jt={[ie.DISCUSSION]:Xt};async function Xt(e,t){var s;let i="discussionSettings"in e?((s=e.discussionSettings)===null||s===void 0?void 0:s.allowedChannelIds)||[]:[];if(!i.length)return{};let[{results:o},{results:n}]=await Promise.all([De({allowedChannelIds:i,requestOptions:t.hubRequestOptions,num:100}),ht({allowedChannelIds:i,requestOptions:t.hubRequestOptions,num:100})]),a=new Set(n.map(l=>l.id));return{channelActivitySelections:{type:"object",properties:o.reduce((l,d)=>(l[d.id]={type:"array",title:d.name||"",items:{type:"string",enum:a.has(d.id)?["newPosts","pendingPosts"]:["newPosts"]},default:[]},l),{})}}}async function Zt(e,t){var s;let i="discussionSettings"in e?((s=e.discussionSettings)===null||s===void 0?void 0:s.allowedChannelIds)||[]:[];if(!i.length)return!1;let{total:o}=await De({allowedChannelIds:i,requestOptions:t.hubRequestOptions,num:1});return o>0}var es=".sc-arcgis-hub-subscription-h{display:block}.subscription__header.sc-arcgis-hub-subscription,.subscription__header-actions.sc-arcgis-hub-subscription{margin-bottom:1rem}.subscription__header-entity.sc-arcgis-hub-subscription{font-weight:var(--calcite-font-weight-bold)}",ts=es,ss=class{constructor(e){N(this,e),this.arcgisAppIdentityStartSignIn=v(this,"arcgisAppIdentityStartSignIn",7),this.hubTelemetry=v(this,"hubTelemetry",7),this.cadence=et.WEEKLY,this.translationFunc=(t,s,i)=>this.intl.t(t,s,i),this.handleSubscribeClick=async t=>{var s,i,o,n;t.preventDefault(),this._context.currentUser?(this._draftValues=G(this._values),this.isModalOpen=!0,await this.buildSchemas(),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.open.label.modal.details.subscribe),{id:(s=this.entity)===null||s===void 0?void 0:s.id,access:(i=this.entity)===null||i===void 0?void 0:i.access,type:(o=this.entity)===null||o===void 0?void 0:o.type,contentOrgId:(n=this.entity)===null||n===void 0?void 0:n.orgId}))):this.promptToSignIn&&this.arcgisAppIdentityStartSignIn.emit()},this.handleModalClose=()=>{this.isModalOpen=!1,this._draftValues=void 0},this.handleSubscriptionChange=t=>{t.stopPropagation(),this.cadence=t.detail.values.cadence;let s=t.detail.values.channelActivitySelections;s&&(this.catalog=pt(this.entityId,s,this.intl),this._draftValues=Object.assign(Object.assign({},this._draftValues),{channelActivitySelections:s,cadence:t.detail.values.cadence}))},this.handleSubscriptionSave=async t=>{var s,i,o,n,a,c,l,d,u,h,p,m,b,f,_,w,A,R,I;t.stopPropagation(),this.isModalOpen=!1;try{if(!((i=(s=this.subscriptions)===null||s===void 0?void 0:s[0])===null||i===void 0)&&i.id){let O={cadence:this.cadence,catalog:this.catalog,deliveryMethod:we.EMAIL,entityId:((o=this.entity)===null||o===void 0?void 0:o.id)||this.entityId,entityType:(((n=this.entity)===null||n===void 0?void 0:n.type)||this.entityType).toUpperCase(),notificationSpecName:Oe.DISCUSSION_ON_ENTITY};await st(Object.assign({subscriptionId:this.subscriptions[0].id,data:O},this._context.hubRequestOptions)),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.update.label.subscription),{details:"post",response:"success",id:(a=this.entity)===null||a===void 0?void 0:a.id,access:(c=this.entity)===null||c===void 0?void 0:c.access,type:(l=this.entity)===null||l===void 0?void 0:l.type,contentOrgId:(d=this.entity)===null||d===void 0?void 0:d.orgId}))}else{let O={cadence:this.cadence,catalog:this.catalog,deliveryMethod:we.EMAIL,entityId:((u=this.entity)===null||u===void 0?void 0:u.id)||this.entityId,entityType:(((h=this.entity)===null||h===void 0?void 0:h.type)||this.entityType).toUpperCase(),metadata:{},notificationSpecName:Oe.DISCUSSION_ON_ENTITY};await tt(Object.assign({data:O},this._context.hubRequestOptions)),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.subscription),{details:"post",response:"success",id:(p=this.entity)===null||p===void 0?void 0:p.id,access:(m=this.entity)===null||m===void 0?void 0:m.access,type:(b=this.entity)===null||b===void 0?void 0:b.type,contentOrgId:(f=this.entity)===null||f===void 0?void 0:f.orgId}))}Ne({title:this.intl.t("notice.succeed"),configuration:{noticeType:"alert",autoClose:!0,autoCloseDuration:"fast",icon:!0,kind:"success",label:this.intl.t("notice.succeed")}}),!((_=t?.detail)===null||_===void 0)&&_.values&&(this._values=t.detail.values,this._draftValues=void 0),await this.refreshSubscriptions()}catch(O){Ne({title:this.intl.t("notice.fail"),configuration:{noticeType:"alert",autoClose:!0,autoCloseDuration:"fast",icon:!0,kind:"danger",label:this.intl.t("notice.fail")}}),this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.content.action.create.label.subscription),{response:"failure",id:(w=this.entity)===null||w===void 0?void 0:w.id,access:(A=this.entity)===null||A===void 0?void 0:A.access,type:(R=this.entity)===null||R===void 0?void 0:R.type,contentOrgId:(I=this.entity)===null||I===void 0?void 0:I.orgId})),console.error("Failed to save subscription",O)}},this.renderModal=()=>this.isModalOpen&&r("arcgis-wormhole",null,r("arcgis-configuration-form",{"data-subscription-editor":"true",isLoading:this.isLoading,isOpen:!0,layout:"modal",modalTitle:this.intl.t("subscribe"),onArcgisConfigurationFormChanged:this.handleSubscriptionChange,onArcgisConfigurationFormModalClosed:this.handleModalClose,onArcgisConfigurationFormSaved:this.handleSubscriptionSave,schema:this._schema,t:this.translationFunc,uiSchema:this._uiSchema,values:this._draftValues},r("div",{slot:"form-start"},r("div",{class:"subscription__header"},this.intl.t("subscribeTo",{entity:this.entity.name})),r("div",{class:"subscription__header-actions"},this.renderSubscribeAllButton())))),this.handleSubscribeAllClick=()=>{var t,s,i,o;let n=this._draftValues;if(this.isDiscussionType){let c=(i=(s=(t=this._schema)===null||t===void 0?void 0:t.properties)===null||s===void 0?void 0:s.channelActivitySelections)===null||i===void 0?void 0:i.properties,l=this.anyChannelSelected(),d={};l?Object.keys(c).forEach(u=>d[u]=[]):Object.entries(c).forEach(([u,h])=>{var p;let m=(p=h.items)===null||p===void 0?void 0:p.enum;d[u]=[...m]}),n=Object.assign(Object.assign({},this._draftValues||{}),{cadence:((o=this._draftValues)===null||o===void 0?void 0:o.cadence)||this.cadence,channelActivitySelections:d})}this._draftValues=n;let a=document.querySelector('arcgis-configuration-form[data-subscription-editor="true"] arcgis-configuration-editor');a?.dispatchEvent(new CustomEvent("arcgisConfigurationEditorChange",{bubbles:!0,detail:{valid:!0,values:n}}))},this.types=[],this.entityId=void 0,this.entity=void 0,this.entityType=void 0,this.subscribeButtonProps=void 0,this.promptToSignIn=void 0,this._schema=void 0,this._uiSchema=void 0,this.isModalOpen=!1,this.isLoading=!0,this.hasSubscribableChannels=!1,this.subscriptions=[],this._values=void 0,this._draftValues=void 0}get _context(){return Q()}get isDiscussionType(){var e;return(e=this.types)===null||e===void 0?void 0:e.includes(ie.DISCUSSION)}async componentWillLoad(){await this.initialize(),this.fetchDependencies()}async fetchDependencies(){var e,t,s;try{!this.entity&&this.entityId&&this.entityType&&(this.entity=await Qe(this.entityType,this.entityId,this._context)),this.hasSubscribableChannels=await Zt(this.entity,this._context),this.subscriptions=await xe(Object.assign({data:{entityId:((e=this.entity)===null||e===void 0?void 0:e.id)||this.entityId,userId:(s=(t=this._context)===null||t===void 0?void 0:t.currentUser)===null||s===void 0?void 0:s.username}},this._context.hubRequestOptions)),this._values=this.buildInitialFormValues()}catch(i){console.error("Subscription initialization failed",i)}finally{this.isLoading=!1}}async initialize(){this.intl=await j.loadIntlForComponent(this.element)}async buildSchemas(){this._schema=await Yt(this.types,this.entity,this._context),this._uiSchema=at(this.intl,Qt(this.types,this._schema,this.intl))}buildInitialFormValues(){if(this.isDiscussionType)return this.buildInitialDiscussionFormValues()}buildInitialDiscussionFormValues(){var e,t;let s=((t=(e=this.subscriptions)===null||e===void 0?void 0:e[0])===null||t===void 0?void 0:t.cadence)||this.cadence,i={};return this.subscriptions.flatMap(n=>{var a;return(a=n.catalog)===null||a===void 0?void 0:a.collections}).flatMap(n=>{var a;return(a=n.scope)===null||a===void 0?void 0:a.filters}).flatMap(n=>n.predicates).forEach(n=>{var a,c;let l=((a=n.status)===null||a===void 0?void 0:a[0])==="approved"?"newPosts":"pendingPosts";(c=n.channel)===null||c===void 0||c.forEach(d=>{let u=i[d]||(i[d]=[]);u.includes(l)||u.push(l)})}),{cadence:s,channelActivitySelections:i}}async refreshSubscriptions(){var e,t,s;try{this.subscriptions=await xe(Object.assign({data:{entityId:((e=this.entity)===null||e===void 0?void 0:e.id)||this.entityId,userId:(s=(t=this._context)===null||t===void 0?void 0:t.currentUser)===null||s===void 0?void 0:s.username}},this._context.hubRequestOptions)),this._values=this.buildInitialFormValues(),this.isModalOpen&&(this._draftValues=G(this._values))}catch(i){console.error("Failed to refresh subscriptions after save",i)}}get isSubscribeDisabled(){var e;return!((e=this._context)===null||e===void 0)&&e.currentUser?this.isDiscussionType?!(Ve("hub:feature:discussions:subscription",this._context).access&&this.hasSubscribableChannels):!1:!this.promptToSignIn}get subscribeButtonTooltip(){let e="";return this.types.includes(ie.DISCUSSION)&&(e=this.intl.t("subscribeButtonTooltip.discussion")),this.isSubscribeDisabled?e:""}renderSubscribeAllButton(){let e=this.anyChannelSelected()?"unsubscribeFromAll":"subscribeToAll";return r("calcite-button",{appearance:"outline",kind:"brand",label:this.intl.t(e),onClick:this.handleSubscribeAllClick,round:!0,scale:"m",type:"button"},this.intl.t(e))}get subscribeButtonLabel(){let e=this.hasActiveSubscription?"manageSubscription":"subscribe";return this.intl.t(e)}get hasActiveSubscription(){var e,t,s;return Array.isArray((s=(t=(e=this.subscriptions)===null||e===void 0?void 0:e[0])===null||t===void 0?void 0:t.catalog)===null||s===void 0?void 0:s.collections)&&this.subscriptions[0].catalog.collections.length>0}renderSubscribeButton(){var e,t,s,i,o,n;return this.isLoading?r("arcgis-skeleton-loader",{active:!0,rows:1}):r("arcgis-ref-tooltip",{placement:"top",text:this.subscribeButtonTooltip},r("calcite-button",{appearance:((e=this.subscribeButtonProps)===null||e===void 0?void 0:e.appearance)||"outline",disabled:this.isSubscribeDisabled,"icon-start":((t=this.subscribeButtonProps)===null||t===void 0?void 0:t.iconStart)||"bell",kind:((s=this.subscribeButtonProps)===null||s===void 0?void 0:s.kind)||"brand",label:this.subscribeButtonLabel,onClick:this.handleSubscribeClick,round:((i=this.subscribeButtonProps)===null||i===void 0?void 0:i.round)!==!1,scale:((o=this.subscribeButtonProps)===null||o===void 0?void 0:o.scale)||"m",width:((n=this.subscribeButtonProps)===null||n===void 0?void 0:n.width)||"auto"},this.subscribeButtonLabel))}anyChannelSelected(){var e;let t=((e=this._draftValues)===null||e===void 0?void 0:e.channelActivitySelections)||{};return Object.values(t).some(s=>Array.isArray(s)&&s.length>0)}render(){return r("div",{key:"4e58f9882aac2c40af6dda52f7842b5f2eddf36b"},this.renderSubscribeButton(),this.renderModal())}static get assetsDirs(){return["locales"]}get element(){return F(this)}};ss.style=ts;var is=":host{display:block}ol{margin:0px;display:grid;padding:0px;gap:var(--arcgis-hub-layout-list-gap, 1rem)}.map{grid-template-columns:1fr}.list{grid-template-columns:1fr}.grid{grid-template-columns:repeat(auto-fill, minmax(var(--arcgis-hub-layout-list-min-column-width, 20rem), 1fr))}.actions{display:grid;align-items:center;gap:var(--arcgis-hub-layout-list-actions-gap, 0.25rem);grid-template-columns:1fr;grid-template-rows:1fr;margin-bottom:var(--arcgis-hub-layout-list-actions-margin, 1rem)}.actions:has(.layout-actions){grid-template-columns:auto max-content}.actions:not(.hasActions){display:none}:host(.rtl) .layout-actions calcite-action{transform:scaleX(-1)}",ns=is,os=function(e,t,s,i){var o=arguments.length,n=o<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,s,i);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(n=(o<3?a(n):o>3?a(t,s,n):a(t,s))||n);return o>3&&n&&Object.defineProperty(t,s,n),n},Rt=class{constructor(e){N(this,e),this.arcgisLayoutListLayoutSelected=v(this,"arcgisLayoutListLayoutSelected",7),this.layout="list",this.disabled=!1,this.showMapControl=void 0,this.scale="s",this.listStyleDeclaration=void 0,this.hasSlottedActions=!1,$(this,"handleResized","handleLayoutSelected","handleSlotChanged")}connectedCallback(){Se.addHandler(this.element,this.handleResized)}async componentWillLoad(){await this.loadTranslations()}disconnectedCallback(){Se.unobserve(this.element)}async loadTranslations(){this.intl=await j.loadIntlForComponent(this.element)}handleResized(){this.listRef&&(this.listStyleDeclaration=globalThis.getComputedStyle(this.listRef))}get showActions(){return this.hasLayoutActions||this.hasSlottedActions}handleSlotChanged(){this.hasSlottedActions=!!this.element.querySelector('[slot="actions"]')}get hasLayoutActions(){let{listStyleDeclaration:e}=this,t=!1;if(e){let s=parseInt(e.getPropertyValue("gap"),10),i=e.getPropertyValue("grid-template-columns").split(" "),o=parseFloat(i[0]),n=e.getPropertyValue("--arcgis-hub-layout-list-min-column-width"),a=parseFloat(n)*(n.endsWith("rem")?16:1);t=i.length>1||a*2+s<o}return!!t}handleLayoutSelected(e){this.layout=e.target.icon,this.arcgisLayoutListLayoutSelected.emit(this.layout)}renderList(){return r("ol",{class:{[this.layout]:!0},ref:e=>{this.listRef=e}},r("slot",null))}renderLayoutActions(){let{hasLayoutActions:e,showMapControl:t}=this;if(e||t){let{layout:s,intl:i,disabled:o,handleLayoutSelected:n,scale:a}=this,c=[...t?["map"]:[],...e?["grid"]:[],"list"],l=d=>{let u=d===s;return!e&&s=="grid"&&d==="list"&&(u=!0),u};return r("div",{class:"layout-actions"},r("calcite-action-bar",{"expand-disabled":!0,layout:"horizontal"},c.map(d=>r("calcite-action",{active:l(d),disabled:o,icon:d,key:d,label:i.t(`${d}.label`),onClick:n,scale:a,text:i.t(`${d}.text`)}))))}}renderActions(){return r("div",{class:{actions:!0,hasActions:this.showActions}},r("div",null,r("slot",{name:"actions",onSlotchange:this.handleSlotChanged})),this.renderLayoutActions())}render(){return r(q,{key:"ade95b56903314f8878d97f2aba7ef6ddc48d6aa",class:{rtl:this.intl.direction==="rtl"}},this.renderActions(),this.renderList())}static get assetsDirs(){return["locales"]}get element(){return F(this)}};os([Me({timeout:250})],Rt.prototype,"handleResized",null);Rt.style=ns;var as=":host{display:block}",rs=as,cs=class{constructor(e){N(this,e),this.arcgisLoadMoreChange=v(this,"arcgisLoadMoreChange",7),this.nextStart=void 0,this.color="neutral",this.appearance="transparent",this.scale="l",this.width="full",this.round=!0,this.loading=!1,$(this,"handleLoadMore")}get hasMoreResults(){let{nextStart:e}=this;return e!==-1}get disabled(){let{loading:e,hasMoreResults:t}=this;return e||!t}async componentWillLoad(){this.intl=await j.loadIntlForComponent(this.el)}handleLoadMore(){let{nextStart:e}=this;this.arcgisLoadMoreChange.emit(e)}render(){let{loading:e,handleLoadMore:t,round:s,scale:i,width:o,intl:n,hasMoreResults:a,disabled:c,color:l,appearance:d}=this,u=n.t("loadMore");return r(q,{key:"09e58def9e5b3f0c226dda2e9ba47a08cdf829ce"},a&&r("calcite-button",{appearance:d,disabled:c||e,kind:yt(l),label:u,loading:e,onClick:t,round:s,scale:i,width:o},u))}static get assetsDirs(){return["locales"]}get el(){return F(this)}};cs.style=rs;return{arcgis_hub_discussions_post:W,arcgis_hub_discussions_post_chips:Mt,arcgis_hub_discussions_post_editor:te,arcgis_hub_discussions_post_list:Ot,arcgis_hub_discussions_post_reactions:It,arcgis_hub_subscription:ss,arcgis_layout_list:Rt,arcgis_load_more_button:cs}},"config",a,b)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.13/esri/copyright.txt for details.
3
- v0.13.1 */
4
- import{b as i}from"./ZJI4DYQK.js";import{b as e,c as a,i as o}from"./DTBYT7B3.js";import{g as t,r as c}from"./EV2JXOA6.js";import"./57G44J3J.js";import"./O24HC4W5.js";var r="calcite-block.sc-hub-section-block{--calcite-block-padding:.75rem}.section-block--l.sc-hub-section-block{--calcite-font-size--1:var(--calcite-font-size-1)}.section-block--m.sc-hub-section-block{--calcite-font-size--1:var(--calcite-font-size-0)}.section-block--s.sc-hub-section-block{--calcite-font-size--1:var(--calcite-font-size--1)}calcite-block.sc-hub-section-block-s>*,calcite-block .sc-hub-section-block-s>*{--calcite-font-size--1:14px}calcite-block.sc-hub-section-block-s>.section__content>.helper-text{margin-bottom:1.5rem}",b=r,p=class{constructor(s){o(this,s),this.params=void 0}componentWillLoad(){this._key=t("block")}get scale(){var s;return((s=this.params.uiSchema.options)===null||s===void 0?void 0:s.scale)||this.params.scale||"l"}get isCollapsible(){var s;return c((s=this.params.uiSchema.options)===null||s===void 0?void 0:s.collapsible)?!0:this.params.uiSchema.options.collapsible}get isOpen(){var s;return(s=this.params.uiSchema.options)===null||s===void 0?void 0:s.open}render(){let{label:s,disabled:l}=this.params,{iconStart:n}=this.params.uiSchema.options||{};return e(a,{key:"8f35f8bd19a525850aa0dc63b8879f701485efac"},e("calcite-block",{class:{[this.params.variant]:!!this.params.variant,[`section-block--${this.scale}`]:!0},collapsible:this.isCollapsible,"data-label":s,description:i(this.params.uiSchema,this.params.t,"options.helperText"),disabled:l,expanded:this.isOpen,heading:s,iconStart:n,key:this._key},e("slot",{key:"1d7afb50cff0796bd9e7e027c6dee236d113dd34"})))}};p.style=b;export{p as hub_section_block};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.13/esri/copyright.txt for details.
3
- v0.13.1 */
4
- function f(t){let s=t;if(/^#(?:[0-9a-fA-F]{3})$/.test(t)){let[n,r,i]=t.substring(1).split("");s=`#${n}${n}${r}${r}${i}${i}`}return s}export{f as a};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.13/esri/copyright.txt for details.
3
- v0.13.1 */
4
- import e from"./62M4WKMB.js";import{a as p}from"./KT5MNF6F.js";import{a as k}from"./APSS2Y4K.js";import c from"./TRT7GRU7.js";import a from"./QMB3FDAJ.js";import"./GK34X7UX.js";import"./5P7Y7FRU.js";import"./7IR3BQUS.js";import"./OJG6YJU2.js";import{a as f}from"./DLTRVV62.js";import"./SG3MRQQS.js";import"./3JNZKALP.js";import"./VNCTCE3W.js";import{j as d}from"./3H2XVCUA.js";import"./34L55HV7.js";import"./GOYRZLHW.js";import"./ZCB7MPIU.js";import"./OPZUQV25.js";import"./5CWJU6RW.js";import"./DWBLFAWO.js";import"./NPM7OWN2.js";import"./QO5JSWW6.js";import"./XHGGBDVC.js";import"./P5YVCJ76.js";import"./G65CYRHZ.js";import"./XAURY4UO.js";import"./7EZSEWT3.js";import"./DFDA74PW.js";import"./A6B6M6IC.js";import"./PUAZLJVT.js";import"./RBRBWGI3.js";import"./VYJILSFN.js";import"./HLGTHHBD.js";import"./7BWZGM37.js";import"./V2WG2Z2L.js";import"./XRY5Q7JW.js";import"./ZUGTLVFI.js";import"./EWRFEQYU.js";import"./TNGWB2Z2.js";import"./W2ENVDR4.js";import"./HG3NKY2P.js";import{g as y}from"./LMMS6HAF.js";import"./AE3YP3DS.js";import"./3TKT33QR.js";import"./XCROLCMJ.js";import"./6N54EYC3.js";import"./WQHPGOEB.js";import"./PZLJBXRN.js";import"./J7XK3YZJ.js";import"./TU2TZIOE.js";import"./GUJII33O.js";import"./47DVYEBK.js";import"./UCNNVIFH.js";import"./WR47QMI3.js";import"./TY7YFLIP.js";import"./73GZFDLD.js";import"./FGYVTYHF.js";import"./FORQ67CP.js";import"./XBRL2JOD.js";import"./C44U2OB4.js";import"./6AEVM2ZJ.js";import"./FTL6O3Q5.js";import"./5AV2EUV3.js";import"./DN6WLBHD.js";import"./UFG3BQVX.js";import{a as b}from"./JBY7Y4K6.js";import{c as A}from"./7FCQMEWY.js";import"./22KLMUMX.js";import"./7S7LGGUA.js";import"./SM6FLGRN.js";import{a as g}from"./SYEKE27I.js";import"./TETS77HI.js";import"./A4ZBGD5O.js";import{b as i,c as S,d as E,e as o,h,i as R}from"./DTBYT7B3.js";import"./D4GA6N3R.js";import"./UJNIWZNR.js";import"./PKEWV6AV.js";import"./ITDUI6ZI.js";import"./LLFPFIWD.js";import"./S7NFU7QR.js";import"./3BK6FEHB.js";import"./OFGOMONR.js";import"./A5HPY7H3.js";import"./7OMQGXTT.js";import"./EV2JXOA6.js";import"./57G44J3J.js";import"./WEHYONDE.js";import"./O24HC4W5.js";export default $arcgis.t(([,,{d:T},{a:v,b:w,c:C}])=>{var L=":host{display:block}.title{font-family:var(--hub-heading-family, inherit);font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-medium);margin-block:0 0.25rem}.title calcite-link{text-decoration:underline;color:var(--calcite-color-text-link)}.title calcite-link div{display:flex;gap:0.25rem}calcite-list-item>calcite-button{margin-inline-end:0.25rem}calcite-popover>calcite-button{margin:0.25rem}arcgis-hub-image{aspect-ratio:200 / 133;height:2.5rem}.previous-results-end{position:absolute}dl{margin-block:0}dl div{display:inline-flex;flex-wrap:wrap;gap:0.25rem}dl div:not(:last-child){margin-inline-end:0.25rem}dd{margin:0px;font-weight:var(--calcite-font-weight-bold)}",I=L,H=class{constructor(t){R(this,t),this.arcgisHubCardSelect=o(this,"arcgisHubCardSelect",7),this.arcgisHubGalleryOrderChange=o(this,"arcgisHubGalleryOrderChange",7),this.arcgisHubGalleryLinkClick=o(this,"arcgisHubGalleryLinkClick",7),this.arcgisHubCardAction=o(this,"arcgisHubCardAction",7),this.hubTelemetry=o(this,"hubTelemetry",7),this.searchResults=[],this.loading=!1,this.selectedIds=[],this.baseUrl=void 0,this.linkTarget="self",this.limit=10,this.newTab=!1,this.cardTitleTag="div",this.showEmptyState=!0,this.showThumbnail=!0,this.imageType=d.thumbnail,this.lazy=!1,this.selectionMode="none",this.showAdditionalInfo=!0,this.cardActionLinks=[],this.reorderable=!1,this.lastSearchResultsCount=void 0,this.hasError=!1,this.callback=void 0,this.disableTelemetry=!1,this.isMobile=!1,b(this,"handleOrderChange","handleResize","handleSelect","setPreviousResultsEnd","onTitleLinkClick","onTitleLinkKeyDown")}get shouldRenderEmptyState(){return!this.searchResults.length&&this.showEmptyState||this.hasError}get context(){return A()}connectedCallback(){p.addHandler(this.element,this.handleResize)}disconnectedCallback(){p.unobserve(this.element)}async componentWillLoad(){this.intl=await g.loadIntlForComponent(this.element)}componentDidUpdate(){var t;(t=this.previousResultsEnd)===null||t===void 0||t.focus({preventScroll:!0})}handleResize(){this.isMobile=this.element.clientWidth<f.SMALL}handleSelect(t){let e=t.target.dataset.id;this.arcgisHubCardSelect.emit({id:e})}handleOrderChange(t){let{detail:{newIndex:e,oldIndex:r,dragEl:s}}=t,n={id:s.dataset.id,newIndex:e,oldIndex:r};this.arcgisHubGalleryOrderChange.emit(n)}setPreviousResultsEnd(t){this.previousResultsEnd=t}renderThumbnail(t){let e;return this.showThumbnail&&this.imageType===d.thumbnail&&(t.type==="User"||t.type==="channel"?e=i("calcite-avatar",{"aria-hidden":"true",fullName:k(t),slot:"content-start",thumbnail:t.thumbnailUrl,username:t.source}):e=i("arcgis-hub-image",{alt:`${t.title} thumbnail`,"aria-hidden":"true",class:{"group-thumbnail":t.type==="Group"},fallback:w(t),lazy:this.lazy,slot:"content-start",src:v(t,40,this.context)})),e}getViewModel(t){let e={actionLinks:this.cardActionLinks,baseUrl:this.baseUrl,locale:this.intl.formatLocale,target:this.linkTarget};return C(t,"row",e,this.callback,this.context,this.intl)}renderResult(t){let e=this.getViewModel(t),r=e.actionLinks?e.actionLinks:this.cardActionLinks,s=this.selectedIds.includes(t.id);return i("calcite-list-item",{"data-id":e.id,iconStart:this.showThumbnail&&this.imageType===d.icon?y(e.type):"",key:e.id,onCalciteListItemSelect:this.handleSelect,selected:s},this.renderThumbnail(e),i("div",{slot:"content"},this.renderTitle(e)),this.renderAdditionalInfo(e.additionalInfo),this.renderActionLinks(e,r,this.newTab))}renderTitle(t){let e=t.titleUrl,r=this.cardTitleTag,s=i("arcgis-multiline-ellipsis",{breakAnywhere:!0,lines:1,tabIndex:-1,tooltipEnabled:!0,tooltipOverlayPositioning:"fixed"},t.title);if(e){let a=this.newTab?"_blank":"_self";return i(r,{class:"title","data-href":e,"data-target":a,onKeyDown:this.onTitleLinkKeyDown,tabIndex:0},i("calcite-link",{"data-key":t.id,href:e,onClick:this.onTitleLinkClick,tabIndex:-1,target:a},this.newTab?i("div",null,s,i("calcite-icon",{icon:"launch-2",scale:"s"})):s))}else return i(r,{class:"title"},s)}onTitleLinkClick(t){this.linkTarget==="event"&&(t.stopPropagation(),t.preventDefault());let r=(t.type==="click"?t.currentTarget:t.target.firstElementChild).dataset.key,s=this.getViewModel(this.searchResults.find(n=>n.id===r)),a=T(this.linkTarget,s);!this.disableTelemetry&&a&&this.hubTelemetry.emit(a),this.arcgisHubGalleryLinkClick.emit({model:s,event:t})}onTitleLinkKeyDown(t){if((t.key==="Enter"||t.key===" ")&&(this.onTitleLinkClick(t),this.linkTarget!=="event")){let e=t.target.dataset.href,r=t.target.dataset.target;setTimeout(()=>window.open(e,r),0)}}renderAdditionalInfo(t){if(this.showAdditionalInfo&&t.length)return i("dl",{slot:"content"},t.slice(0,2).map((e,r)=>i("div",{key:r},i("dt",{key:`dt${r}`},e.i18nKey?this.intl.t(e.i18nKey):e.label),i("dd",{key:`dd${r}`},e.value))))}renderActionLinks(t,e,r){let{isMobile:s}=this,a=s&&e.length>1,n=e.filter(l=>!!l.href||!!l.action).map((l,m)=>this.renderActionLink(t,l,r,`${t.id}-${m}`,a));if(a){let l=`${t.id}-overflow-menu-trigger`;return[i("calcite-popover",{autoClose:!0,key:`${t.id}-overflow-menu`,"overlay-positioning":"fixed","reference-element":l,slot:"actions-end"},n),i("calcite-button",{appearance:"outline",iconStart:"ellipsis",id:l,key:l,round:!0,slot:"actions-end"})]}else return n}renderActionLink(t,e,r,s,a){let n=a?"":"actions-end",l=e.label;!l&&e.i18nKey&&(l=this.intl.t(e.i18nKey));let m=e.showLabel||a,u=e.action&&this.actionHandler.bind(this,e.action,t),c=e.ariaLabel||l;return c.includes(t.title)||(c=`${c}: ${t.title}`),i(h,null,i("calcite-button",{appearance:e.buttonStyle,disabled:e.disabled,href:e.href,iconStart:e.icon,id:`al-${s}`,key:s,kind:e.buttonKind,label:c,onClick:u||void 0,round:!a,slot:n,target:r?"_blank":"_self"},m&&l),!a&&this.renderActionTooltip(e,s))}actionHandler(t,e){this.arcgisHubCardAction.emit({action:t,model:e})}renderActionTooltip(t,e){if(t.tooltip)return i("calcite-tooltip",{key:e,label:t.ariaLabel,"overlay-positioning":"fixed",placement:"bottom","reference-element":`al-${e}`,slot:"actions-end"},i("span",null,t.tooltip))}renderLoading(){return i("div",{class:"card-container"},i("arcgis-skeleton-loader",{active:!0,rows:this.limit}))}renderEmptyState(){let t=this.hasError?"helpState.error.message":"helpState.noResults.message",e=this.intl.t(t),r=this.hasError?"search-error-action":"no-results-action";return i(h,null,i("arcgis-hub-help-state",{icon:"file-magnifying-glass"},i("div",{"aria-live":"polite",role:"status",slot:"message"},i("h3",null,e)),i("span",{slot:"actions"},i("div",{class:"no-results-action-container"},i("slot",{name:r})))))}renderResults(){let{searchResults:t}=this,e;if(t.length){let r=t.reduce((s,a,n)=>(s.push(this.renderResult(a)),n===this.lastSearchResultsCount-1&&s.push(i("div",{class:"previous-results-end",ref:this.setPreviousResultsEnd,tabIndex:-1})),s),[]);e=i(h,null,i("div",{class:"card-container","data-test":"result-container"},i("calcite-list",{dragEnabled:this.reorderable,interactionMode:"static",label:this.intl.t("label"),onCalciteListOrderChange:this.handleOrderChange,selectionMode:this.selectionMode},r)))}else this.shouldRenderEmptyState&&(e=this.renderEmptyState());return e}render(){return i(S,{key:"312175ab0b4d26210811be29922e0d1ed8644b6f","data-element":"gallery-layout-compact"},this.loading?this.renderLoading():this.renderResults())}static get assetsDirs(){return["locales"]}get element(){return E(this)}};H.style=I;return H},"config",a,c,e)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.13/esri/copyright.txt for details.
3
- v0.13.1 */
4
- import"./O24HC4W5.js";var a={chart:"Diagram",barChart:"Liggande stapeldiagram",lineChart:"Linjediagram",pieChart:"Cirkeldiagram",histogram:"Histogram",scatterplot:"Sambandsdiagram",boxPlot:"L\xE5ddiagram"},e={mean:"Medelv\xE4rde",median:"Median",sum:"Summa",discretePercentile:"Diskret percentil",minimum:"Minimum",maximum:"Maximum",variance:"Varians",count:"Antal",aggregation:"${ statistics } av ${ fieldName }",noAggregation:"Ingen aggregering"},t="Diagram",i="Antalsserie",n="X-axel",s="Ej tillg\xE4nglig",r={start:"Snappa till den f\xF6rsta datapunkten",end:"Snappa till den sista datapunkten"},g={chartType:a,statistics:e,defaultTitle:t,countSeries:i,xAxis:n,notAvailable:s,timeAggregationTypes:r};export{a as chartType,i as countSeries,g as default,t as defaultTitle,s as notAvailable,e as statistics,r as timeAggregationTypes,n as xAxis};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.13/esri/copyright.txt for details.
3
- v0.13.1 */
4
- var s={DISCUSSION:"discussion"},C=["DAILY","WEEKLY","MONTHLY"];export{s as a,C as b};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.13/esri/copyright.txt for details.
3
- v0.13.1 */
4
- import{d as E}from"./DSTT3RNS.js";import{a as b,b as y,c as S,d as F}from"./OJG6YJU2.js";import"./6K6WKPZQ.js";import"./T4DVEGL4.js";import"./V6NHKOVW.js";import"./IRQH4SGB.js";import"./FBHZFLUE.js";import"./VSPWXVBG.js";import"./EGBO3YSD.js";import"./COVS2GLW.js";import"./5LNMPOSU.js";import"./3JQFOVPN.js";import"./SUYL5G5F.js";import"./PNWIFTI5.js";import"./UETQQWJR.js";import"./GOYRZLHW.js";import"./ZCB7MPIU.js";import"./OPZUQV25.js";import"./5CWJU6RW.js";import"./DWBLFAWO.js";import"./NPM7OWN2.js";import"./QO5JSWW6.js";import"./XHGGBDVC.js";import"./P5YVCJ76.js";import"./G65CYRHZ.js";import"./XAURY4UO.js";import"./7EZSEWT3.js";import"./DFDA74PW.js";import"./A6B6M6IC.js";import"./PUAZLJVT.js";import"./RBRBWGI3.js";import"./VYJILSFN.js";import"./HLGTHHBD.js";import"./7BWZGM37.js";import"./V2WG2Z2L.js";import"./XRY5Q7JW.js";import"./ZUGTLVFI.js";import"./EWRFEQYU.js";import"./TNGWB2Z2.js";import"./W2ENVDR4.js";import"./HG3NKY2P.js";import"./LMMS6HAF.js";import"./AE3YP3DS.js";import"./3TKT33QR.js";import"./XCROLCMJ.js";import"./6N54EYC3.js";import"./WQHPGOEB.js";import"./PZLJBXRN.js";import"./J7XK3YZJ.js";import"./TU2TZIOE.js";import"./GUJII33O.js";import"./47DVYEBK.js";import"./UCNNVIFH.js";import"./WR47QMI3.js";import"./TY7YFLIP.js";import"./73GZFDLD.js";import"./FGYVTYHF.js";import"./FORQ67CP.js";import"./XBRL2JOD.js";import"./C44U2OB4.js";import"./6AEVM2ZJ.js";import"./FTL6O3Q5.js";import"./5AV2EUV3.js";import"./DN6WLBHD.js";import"./UFG3BQVX.js";import{a as _}from"./4VSWQM3V.js";import{a as k}from"./JBY7Y4K6.js";import{c as I,j as U}from"./7FCQMEWY.js";import"./22KLMUMX.js";import"./7S7LGGUA.js";import"./SM6FLGRN.js";import{a as C}from"./SYEKE27I.js";import"./TETS77HI.js";import"./A4ZBGD5O.js";import{b as c,c as T,d as V,e as O,h as $,i as D}from"./DTBYT7B3.js";import"./LEXC2XLO.js";import"./D4GA6N3R.js";import"./UJNIWZNR.js";import"./PKEWV6AV.js";import"./ITDUI6ZI.js";import"./LLFPFIWD.js";import"./S7NFU7QR.js";import"./3BK6FEHB.js";import"./OFGOMONR.js";import"./A5HPY7H3.js";import"./7OMQGXTT.js";import{g}from"./EV2JXOA6.js";import"./57G44J3J.js";import"./WEHYONDE.js";import"./O24HC4W5.js";var M="arcgis-configuration-editor{margin-top:0.5rem;margin-bottom:0.5rem}",H=M,R=class{connectedCallback(){U(this)}disconnectedCallback(){this.disconnectContext()}constructor(i){D(this,i),this.arcgisCompositeExpressionSetFieldChange=O(this,"arcgisCompositeExpressionSetFieldChange",7),this.values={},this.fields=[],this.expressions=[],this._context=I(),k(this,"translationFunc","handleEditorChangeEvent","handleAddExpression","handleDeleteExpression")}async componentWillLoad(){this.intl=await C.loadIntlForComponent(this.element),this.values&&(this.expressions=this.repairExpressionsFromMigration(this.values),this.internalValues=this.transformExpressionsToSchemaValues(this.expressions)),this._uiSchema=y(this.getUiSchemaElements(this.expressions)),this._schema=b(this.getSchemaProperties(this.expressions))}getSchemaProperties(i){return i?.reduce((t,e)=>{var o,s;if(e){let l=(o=e?.field)===null||o===void 0?void 0:o.type,r={type:"string",enum:[...(s=this.fields)===null||s===void 0?void 0:s.map(d=>d.name),""]};if(t=Object.assign(Object.assign({},t),{[`combobox-${e.key}`]:r}),l){let d=this.intl.t(e?.relationship||F[l]),m={type:"string",default:d,enum:[d]};t=Object.assign(Object.assign({},t),{[`select-${e.key}`]:m});let a=l==="esriFieldTypeString"||l==="esriFieldTypeDate"?{type:"string"}:{type:"number"};if(t=Object.assign(Object.assign({},t),{[`value-1-${e.key}`]:a}),l!=="esriFieldTypeString"){let p={type:l==="esriFieldTypeDate"?"string":"number"};t=Object.assign(Object.assign({},t),{[`value-2-${e.key}`]:p})}}}return t},{})}getUiSchemaElements(i){return i?.reduce((t,e)=>{var o,s,l,n,r,d,m;if(e){let a=[],p=(o=e?.field)===null||o===void 0?void 0:o.type,A={scope:`/properties/combobox-${e.key}`,type:"Control",label:this.intl.t("selectAttribute"),options:{control:"hub-field-input-combobox",items:(s=this.fields)===null||s===void 0?void 0:s.map(u=>({value:u.name,label:u.name,icon:E(u.type)})),allowCustomValues:!1,selectionMode:"single",overlayPositioning:"fixed"}};if(a.push(A),p){let u={scope:`/properties/select-${e.key}`,type:"Control",label:this.intl.t("filterType"),options:{control:"hub-field-input-select",disabled:!0}};a.push(u);let v={},f;p==="esriFieldTypeString"?(f=this.intl.t("filterValue"),v=!((r=(n=(l=e?.field)===null||l===void 0?void 0:l.domain)===null||n===void 0?void 0:n.codedValues)===null||r===void 0)&&r.length?{control:"hub-field-input-combobox",allowCustomValues:!1,selectionMode:"single",overlayPositioning:"fixed",items:(m=(d=e?.field)===null||d===void 0?void 0:d.domain)===null||m===void 0?void 0:m.codedValues.map(h=>({value:h.name,label:h.name}))}:{control:"hub-field-input-input"}):p==="esriFieldTypeDate"?(f=this.intl.t("startingDate"),v={control:"hub-field-input-date",overlayPositioning:"fixed"}):(f=this.intl.t("startingValue"),v={control:"hub-field-input-input",type:"number"});let P={scope:`/properties/value-1-${e.key}`,type:"Control",label:f,options:v};if(a.push(P),p!=="esriFieldTypeString"){let h={};h=p==="esriFieldTypeDate"?{control:"hub-field-input-date",overlayPositioning:"fixed"}:{control:"hub-field-input-input",type:"number"};let L=p==="esriFieldTypeDate"?this.intl.t("endingDate"):this.intl.t("endingValue"),N={scope:`/properties/value-2-${e.key}`,type:"Control",label:L,options:h};a.push(N)}}let j={type:"Section",label:this.intl.t("attributeFilter"),options:{section:"block",scale:"s",collapsible:!1,open:!0,actions:[{alignment:"end",icon:"trash",key:e.key,label:this.intl.t("deleteFilter"),onClick:this.handleDeleteExpression,scale:"s",textEnabled:!0}]},elements:a};t=[...t,j]}return t},[])}repairExpressionsFromMigration(i){return i.map(t=>{var e,o;if(t.key||(t.key=g("expression-")),!(!((e=t.field)===null||e===void 0)&&e.type)&&(!((o=t.field)===null||o===void 0)&&o.name)){let s=t.field.name,l=this.fields.find(n=>n.name===s);t.field=l}return t})}transformExpressionsToSchemaValues(i){return i.reduce((t,e)=>{let{key:o,values:s=[],field:l}=e;return t=Object.assign(Object.assign({},t),{[`combobox-${o}`]:l?.name,[`value-1-${o}`]:s[0],[`value-2-${o}`]:s[1]}),t},{})}handleEditorChangeEvent(i){i.stopImmediatePropagation(),i.stopPropagation();let{valid:t,values:e}=i.detail;this.updateExpressionsAndValuesOnChange(this.expressions,e,this.fields),this.isValid=t,t&&this.arcgisCompositeExpressionSetFieldChange.emit(this.expressions)}updateExpressionsAndValuesOnChange(i,t,e){let o=!1,s=i.reduce((l,n)=>{var r,d,m;let a={key:n.key,values:[]},p=t[`combobox-${n?.key}`];return p&&(a=this.updateExpressionField(a,p,e),a=this.updateExpressionRelationship(a),a=this.updateExpressionValues(a,n,t),t=this.updateInternalValues(a,t)),(((r=a?.field)===null||r===void 0?void 0:r.name)!==((d=n?.field)===null||d===void 0?void 0:d.name)||p==""&&((m=n.field)===null||m===void 0?void 0:m.name)!==void 0)&&(o=!0),l=[...l,a],l},[]);o&&(this.updateSchema(s),this.updateUiSchema(s)),this.expressions=s,this.internalValues=t}updateExpressionField(i,t,e){let o=e.find(s=>s.name===t);return o&&(i.field=o),i}updateExpressionRelationship(i){var t;return i.relationship=((t=i?.field)===null||t===void 0?void 0:t.type)==="esriFieldTypeString"?i.relationship=S.IS_EXACTLY:i.relationship=S.BETWEEN,i}updateExpressionValues(i,t,e){var o,s;((o=i?.field)===null||o===void 0?void 0:o.name)!==((s=t?.field)===null||s===void 0?void 0:s.name)&&(e[`value-1-${i?.key}`]=void 0,e[`value-2-${i?.key}`]=void 0);let l=e[`value-1-${i?.key}`],n=e[`value-2-${i?.key}`],r=[];return _(l)||(r[0]=l),_(n)||(r[1]=n),i.values=r,i}updateInternalValues(i,t){return i.key&&i.relationship&&(t[`select-${i.key}`]=this.intl.t(i.relationship)),t}translationFunc(i,t,e){return this.intl.t(i,t,e)}updateSchema(i){this._schema=b(this.getSchemaProperties(i))}updateUiSchema(i){this._uiSchema=y(this.getUiSchemaElements(i))}handleAddExpression(){let i=[...this.expressions],t={values:[],key:g("expression-")};i.push(t),this.updateSchema(i),this.updateUiSchema(i),this.expressions=i}handleDeleteExpression(i){let t=i.target,e=t?.getAttribute("data-key"),o=[...this.expressions];o=o.reduce((s,l)=>(l.key!==e&&(s=[...s,l]),s),[]),this.updateSchema(o),this.updateUiSchema(o),this.arcgisCompositeExpressionSetFieldChange.emit(o),this.expressions=o}resetExpressions(i){let t=[...this.expressions],e=t.length;t=t.filter(o=>i.find(s=>{var l,n;return s.name===((l=o?.field)===null||l===void 0?void 0:l.name)&&s.type===((n=o?.field)===null||n===void 0?void 0:n.type)})),this.updateSchema(t),this.updateUiSchema(t),this.expressions.length!==e&&this.arcgisCompositeExpressionSetFieldChange.emit(t),this.expressions=t}renderExpressionSet(){if(this.fields.length)return c($,null,c("arcgis-configuration-editor",{onArcgisConfigurationEditorChange:this.handleEditorChangeEvent,schema:this._schema,t:this.translationFunc,uiSchema:this._uiSchema,values:this.internalValues||this.values}),c("calcite-button",{appearance:"outline-fill",color:"blue",iconStart:"filter",onClick:this.handleAddExpression,round:!0},this.intl.t("addFilter")))}render(){return c(T,{key:"e7f98cea1aed8342ea5602efca1ce32ec54841d9"},this.renderExpressionSet())}static get assetsDirs(){return["locales"]}get element(){return V(this)}static get watchers(){return{_context:["updateUiSchema"],fields:["resetExpressions"]}}};R.style=H;export{R as hub_composite_input_expression_set};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.13/esri/copyright.txt for details.
3
- v0.13.1 */
4
- import"./O24HC4W5.js";var i={percent:"Odstotek",values:"Vrednosti",standardizedValues:"Standardizirane vrednosti",count:"\u0160tevilo",aggregationOfValues:"${ aggregation } vrednosti",aggregationOfFieldName:"${ aggregation } od ${ fieldName }"},e={aggrFieldsByCategory:"${ aggregationFields } od ${ category }",aggrTypeCategory:"${ aggregationType } od ${ category }",aggrTypeCategoryBySplitBy:"${ aggregationType } od ${ category } od ${ splitByField }",aggrTypeOfAggrFields:"${ aggregationType } od ${ aggregationFields }",aggrTypeOfAggrFieldByCategoryBySplitByField:"${ aggregationType } s/z ${ aggregationField } od ${ category } od ${ splitByField }",aggrTypeOfAggrFieldsByCategory:"${ aggregationType } s/z ${ aggregationFields } od ${ category }",aggrFieldsByXAxisField:"${ aggregationFields } od ${ xAxisField }",aggrTypeXAxisField:"${ aggregationType } od ${ xAxisField }",aggrTypeXAxisFieldBySplitBy:"${ aggregationType } od ${ xAxisField } od ${ splitByField }",aggrTypeOfAggrFieldByXAxisFieldBySplitByField:"${ aggregationType } s/z ${ aggregationField } od ${ xAxisField } od ${ splitByField }",aggrTypeOfAggrFieldsByXAxisField:"${ aggregationType } s/z ${ aggregationFields } od ${ xAxisField }",distributionOfField:"Distribucija ${ valueField }",distributionOfFields:"Distribucija ${ valueFields }",distributionOfFieldsByCategory:"Distribucija ${ valueFields } z ${ category }",distributionOfFieldsByCategoryAndSplitBy:"Distribucija ${ valueFields } z ${ category } in ${ splitByField }",xAndY:"${ x } in ${ y }"},g={barChart:"Pali\u010Dni grafikon",lineChart:"Linijski grafikon",pieChart:"Tortni grafikon",histogram:"Histogram",scatterplot:"Raztreseni grafikon"},a={axisLabels:i,titleLabels:e,chartType:g};export{i as axisLabels,g as chartType,a as default,e as titleLabels};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.13/esri/copyright.txt for details.
3
- v0.13.1 */
4
- import{c as X,d as Z,e as tt,f as et}from"./2JFYMKAJ.js";import"./UIHTD25G.js";import"./OJG6YJU2.js";import"./DLTRVV62.js";import"./SG3MRQQS.js";import"./3JNZKALP.js";import"./VNCTCE3W.js";import"./3H2XVCUA.js";import{a as Q}from"./KETEXK4H.js";import"./RQXWNCER.js";import{a as V}from"./OPZUQV25.js";import{a as W}from"./RBRBWGI3.js";import{a as Y,e as J}from"./VYJILSFN.js";import"./V2WG2Z2L.js";import{a as k}from"./EWRFEQYU.js";import{a as B}from"./W2ENVDR4.js";import"./JY6NP6BO.js";import{a as U}from"./6N54EYC3.js";import{c as G}from"./XBRL2JOD.js";import{c as z}from"./C44U2OB4.js";import"./6AEVM2ZJ.js";import{a as O,d as H,j as q}from"./FTL6O3Q5.js";import"./5AV2EUV3.js";import{b as L}from"./DN6WLBHD.js";import{h as _}from"./UFG3BQVX.js";import{a as N}from"./JBY7Y4K6.js";import"./22KLMUMX.js";import{a as D}from"./7S7LGGUA.js";import"./SM6FLGRN.js";import{a as K}from"./SYEKE27I.js";import"./TETS77HI.js";import"./A4ZBGD5O.js";import{b as m,c as rt,d as nt,e as A,i as ot}from"./DTBYT7B3.js";import{j}from"./LLFPFIWD.js";import"./S7NFU7QR.js";import"./3BK6FEHB.js";import"./OFGOMONR.js";import"./A5HPY7H3.js";import"./7OMQGXTT.js";import"./EV2JXOA6.js";import{a as P}from"./57G44J3J.js";import"./WEHYONDE.js";import"./O24HC4W5.js";export default $arcgis.t(([])=>{var ut=t=>{let{folderId:e,start:r=1,num:n=10,authentication:d}=t,h=e?`/${e}`:"";return O(t).then(c=>`${L(t)}/content/users/${c}${h}`).then(c=>_(c,{httpMethod:"GET",authentication:d,params:{start:r,num:n}}))},ft=t=>{let{authentication:e,id:r,title:n,exportFormat:d,exportParameters:h}=t;return O(t).then(c=>`${L(t)}/content/users/${c}/export`).then(c=>_(c,{httpMethod:"POST",authentication:e,params:{itemId:r,title:n,exportFormat:d,exportParameters:h}}))},lt={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function d(a,o,s){this.fn=a,this.context=o,this.once=s||!1}function h(a,o,s,i,w){if(typeof s!="function")throw new TypeError("The listener must be a function");var f=new d(s,i||a,w),p=r?r+o:o;return a._events[p]?a._events[p].fn?a._events[p]=[a._events[p],f]:a._events[p].push(f):(a._events[p]=f,a._eventsCount++),a}function c(a,o){--a._eventsCount===0?a._events=new n:delete a._events[o]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var o=[],s,i;if(this._eventsCount===0)return o;for(i in s=this._events)e.call(s,i)&&o.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(s)):o},l.prototype.listeners=function(o){var s=r?r+o:o,i=this._events[s];if(!i)return[];if(i.fn)return[i.fn];for(var w=0,f=i.length,p=new Array(f);w<f;w++)p[w]=i[w].fn;return p},l.prototype.listenerCount=function(o){var s=r?r+o:o,i=this._events[s];return i?i.fn?1:i.length:0},l.prototype.emit=function(o,s,i,w,f,p){var y=r?r+o:o;if(!this._events[y])return!1;var u=this._events[y],E=arguments.length,I,g;if(u.fn){switch(u.once&&this.removeListener(o,u.fn,void 0,!0),E){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,s),!0;case 3:return u.fn.call(u.context,s,i),!0;case 4:return u.fn.call(u.context,s,i,w),!0;case 5:return u.fn.call(u.context,s,i,w,f),!0;case 6:return u.fn.call(u.context,s,i,w,f,p),!0}for(g=1,I=new Array(E-1);g<E;g++)I[g-1]=arguments[g];u.fn.apply(u.context,I)}else{var ht=u.length,x;for(g=0;g<ht;g++)switch(u[g].once&&this.removeListener(o,u[g].fn,void 0,!0),E){case 1:u[g].fn.call(u[g].context);break;case 2:u[g].fn.call(u[g].context,s);break;case 3:u[g].fn.call(u[g].context,s,i);break;case 4:u[g].fn.call(u[g].context,s,i,w);break;default:if(!I)for(x=1,I=new Array(E-1);x<E;x++)I[x-1]=arguments[x];u[g].fn.apply(u[g].context,I)}}return!0},l.prototype.on=function(o,s,i){return h(this,o,s,i,!1)},l.prototype.once=function(o,s,i){return h(this,o,s,i,!0)},l.prototype.removeListener=function(o,s,i,w){var f=r?r+o:o;if(!this._events[f])return this;if(!s)return c(this,f),this;var p=this._events[f];if(p.fn)p.fn===s&&(!w||p.once)&&(!i||p.context===i)&&c(this,f);else{for(var y=0,u=[],E=p.length;y<E;y++)(p[y].fn!==s||w&&!p[y].once||i&&p[y].context!==i)&&u.push(p[y]);u.length?this._events[f]=u.length===1?u[0]:u:c(this,f)}return this},l.prototype.removeAllListeners=function(o){var s;return o?(s=r?r+o:o,this._events[s]&&c(this,s)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,t.exports=l})(lt);var pt=lt.exports,v=class extends Error{constructor(e,r,n){super(e),this.status=n,this.url=r}};function T(t){let{host:e,route:r,query:n}=t,d=e.endsWith("/")?e:`${e}/`,h=new URL(r,d);return h.search=mt(n),h.toString()}function mt(t={}){let e=Object.keys(t).filter(r=>t[r]!==void 0).reduce((r,n)=>(r[n]=t[n],r),{});return new URLSearchParams(e).toString()}function $(t){let{datasetId:e,format:r,spatialRefId:n,geometry:d,where:h}=t;return`${e}:${r}:${n}:${d}:${h}`}var at={Shapefile:"shp",CSV:"csv","File Geodatabase":"fgdb",GeoJson:"geojson",KML:"kml"};function dt(t){if(!at[t])throw new Error(`Unsupported Hub download format: ${t}`);return at[t]}function wt(t){let{host:e,datasetId:r,spatialRefId:n,geometry:d,where:h}=t,c={spatialRefId:n,format:dt(t.format),geometry:d,where:h},l=T({host:e,route:`/api/v3/datasets/${r}/downloads`});return fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then(a=>{let{ok:o,status:s,statusText:i}=a;if(!o)throw new v(i,l,s)}).then(()=>({downloadId:$(t)}))}function gt(t){let{datasetId:e,title:r,format:n,authentication:d}=t,[h]=e.split("_");return ft({id:h,exportFormat:n,exportParameters:yt(t),title:r,authentication:d}).then(c=>{let{size:l,jobId:a,exportItemId:o}=c;return{downloadId:o,jobId:a,size:l,exportCreated:Date.now()}})}function yt(t){let{datasetId:e,spatialRefId:r,where:n}=t,d=e.split("_")[1];if(!d)return r?{targetSR:{wkid:Number(r)}}:{};let h=[{id:Number(d),where:n}];return r?{layers:h,targetSR:{wkid:Number(r)}}:{layers:h}}function bt(t){let{host:e,datasetId:r,format:n,spatialRefId:d,geometry:h,where:c,title:l,target:a,authentication:o}=t;return!a||a==="hub"?wt({host:e,datasetId:r,format:n,spatialRefId:d,geometry:h,where:c}):gt({datasetId:r,format:n,title:l,authentication:o,spatialRefId:d,where:c})}var S;(function(t){t.Shapefile="Shapefile",t.CSV="CSV",t.KML="KML",t.GeoJson="GeoJson",t.Excel="Excel",t["File Geodatabase"]="File Geodatabase",t["Feature Collection"]="Feature Collection",t["Scene Package"]="Scene Package"})(S||(S={}));function ct(t){let{host:e,datasetId:r,spatialRefId:n,geometry:d,where:h}=t,c={spatialRefId:n,formats:dt(t.format),geometry:d?JSON.stringify(d):void 0,where:h},l=T({host:e,route:`/api/v3/datasets/${r}/downloads`,query:c});return fetch(l).then(a=>{let{ok:o,status:s,statusText:i}=a;if(!o)throw new v(i,l,s);return a.json()}).then(a=>(Et(a),It(a,$(t))))}function Et({data:t}){if(!t)throw new Error('Unexpected API response; no "data" property.');if(!Array.isArray(t))throw new Error('Unexpected API response; "data" is not an array.');if(t.length>1)throw new Error('Unexpected API response; "data" contains more than one download.')}function It(t,e){let{data:[r]}=t;if(!r)return{downloadId:e,status:"not_ready"};let{attributes:{contentLastModified:n,lastModified:d,status:h,errors:c,contentLength:l,cacheTime:a,source:{lastEditDate:o}},links:{content:s}}=r;return{downloadId:e,contentLastModified:n,lastEditDate:o,lastModified:d,status:h,errors:c||[],downloadUrl:s,contentLength:l,cacheTime:a}}var M=class{disablePoll(){clearInterval(this.pollTimer),this.pollTimer=null}activatePoll(e){let{downloadId:r,eventEmitter:n,pollingInterval:d,existingFileDate:h=new Date(0).toISOString()}=e,c=new Date(h).getTime();this.pollTimer=setInterval(()=>{ct(e).then(l=>{if(Dt(l,c))return n.emit(`${r}ExportComplete`,{detail:{metadata:l}}),this.disablePoll();if(vt(l)){let{errors:[a]}=l;return n.emit(`${r}ExportError`,{detail:{error:a,metadata:l}}),this.disablePoll()}}).catch(l=>(n.emit(`${r}PollingError`,{detail:{error:l,metadata:{status:"error"}}}),this.disablePoll()))},d)}};function xt(t){let e=new M;return e.activatePoll(t),e}function Dt(t,e){let{status:r,lastModified:n}=t,d=new Date(n).getTime();return r==="ready"||r==="ready_unknown"&&d>e}function vt(t){return t&&(t.status==="error_updating"||t.status==="error_creating")}function St(t){return ut({authentication:t}).then(e=>{let r=e.folders.find(n=>n.title==="item-exports");return r?{folder:r}:Y({authentication:t,title:"item-exports"})}).then(e=>{let{folder:r}=e;return r.id})}var b;(function(t){t.READY="ready",t.READY_UNKNOWN="ready_unknown",t.STALE="stale",t.NOT_READY="not_ready",t.LOCKED="locked",t.STALE_LOCKED="stale_locked",t.DISABLED="disabled",t.CREATING="creating",t.UPDATING="updating",t.ERROR_CREATING="error_creating",t.ERROR_UPDATING="error_updating",t.ERROR="error"})(b||(b={}));var C=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};function Ct(t){let{downloadId:e,datasetId:r,exportCreated:n,spatialRefId:d,eventEmitter:h,authentication:c}=t,{itemId:l,layerId:a}=k(r),o=[tt(l),et(a),`modified:${n}`,Z(d)];return J({item:{id:e,typekeywords:o.join(",")},authentication:c}).then(()=>Q({id:e,authentication:c,access:"private"})).then(()=>St(c)).then(s=>G({itemId:e,folderId:s,authentication:c})).catch(s=>{if(!(s&&s.code==="CONT_0011"))throw W({id:e,authentication:c}),new C(s.message)}).then(()=>h.emit(`${e}ExportComplete`,{detail:{metadata:{downloadId:e,status:b.READY,lastModified:new Date().toISOString(),downloadUrl:T({host:c.portal,route:`content/items/${e}/data`,query:{token:c.token}})}}}))}var F=class{disablePoll(){clearInterval(this.pollTimer),this.pollTimer=null}activatePoll(e){let{downloadId:r,datasetId:n,format:d,spatialRefId:h,jobId:c,authentication:l,exportCreated:a,eventEmitter:o,pollingInterval:s}=e;this.pollTimer=setInterval(()=>{q({id:r,jobId:c,jobType:"export",authentication:l}).then(i=>{if(i.status==="completed")return Ct({datasetId:n,format:d,authentication:l,downloadId:r,spatialRefId:h,exportCreated:a,eventEmitter:o}).then(()=>{this.disablePoll()});if(i.status==="failed")return o.emit(`${r}ExportError`,{detail:{error:new Error(i.statusMessage),metadata:{status:b.ERROR,errors:[new Error(i.statusMessage)]}}}),this.disablePoll()}).catch(i=>(i instanceof C?o.emit(`${r}ExportError`,{detail:{error:i,metadata:{status:b.ERROR,errors:[i]}}}):o.emit(`${r}PollingError`,{detail:{error:i,metadata:{status:b.ERROR,errors:[i]}}}),this.disablePoll()))},s)}};function Rt(t){let e=new F;return e.activatePoll(t),e}function Tt(t){let{target:e,downloadId:r,datasetId:n,jobId:d,format:h,authentication:c,exportCreated:l,eventEmitter:a,pollingInterval:o,spatialRefId:s,geometry:i,where:w,host:f,existingFileDate:p}=t;return!e||e==="hub"?xt({host:f,downloadId:r,datasetId:n,format:h,eventEmitter:a,pollingInterval:o,spatialRefId:s,geometry:i,where:w,existingFileDate:p}):Rt({downloadId:r,datasetId:n,jobId:d,authentication:c,exportCreated:l,format:h,spatialRefId:s,eventEmitter:a,pollingInterval:o,geometry:i,where:w})}var Pt=600*1e3;function _t(t,e){return t==="portal"&&e&&new Date().getTime()-e<=Pt}function Lt(t,e){let r=e?e.toLowerCase():"",n=P(t,"properties.downloadsConfig.enabled")!==!1,d=P(t,"properties.downloadsConfig.formats")||{},h=!d[r]||d[r].enabled!==!1;return n?h:!1}var R;(function(t){t.FeatureService="Feature Service",t.MapService="Map Service"})(R||(R={}));var Ot=t=>t===S.CSV||t===S.KML;function kt(t){let{datasetId:e,authentication:r,format:n,spatialRefId:d,target:h,portal:c}=t,{itemId:l,layerId:a}=k(e),o,s,i,w;return H(l,{authentication:r,portal:c}).then(f=>{let{type:p,modified:y,url:u}=f;return w=f,s=y,i=p,At({url:u,authentication:r,type:p,modified:y,format:n,layerId:a,portal:c})}).then(f=>{let{modified:p,format:y}=f;return o=p,z({q:X(l,{layerId:a,onlyTypes:[y],spatialRefId:d}),num:1,sortField:"modified",sortOrder:"DESC",authentication:r,portal:c})}).then(f=>Ut({cachedDownload:f.results[0],datasetId:e,format:n,spatialRefId:d,serviceLastEditDate:o,itemModifiedDate:s,itemType:i,authentication:r,target:h,item:w,portal:c})).catch(f=>{throw f})}function At(t){let{format:e,layerId:r,url:n,type:d,modified:h,authentication:c,portal:l}=t;return d!==R.FeatureService&&d!==R.MapService?Promise.resolve({modified:h,format:e}):st(B({url:n,authentication:c,portal:l})).then(a=>{let s=(a.layers||[]).map(i=>st(V({url:`${n}/${i.id}`,authentication:c,portal:l})));return Promise.all(s)}).then(a=>({format:Mt({format:e,layerId:r,layers:a}),modified:$t(a)}))}function Mt(t){let{format:e,layerId:r,layers:n}=t;return Ft(r,n)&&Ot(e)?`${e} Collection`:e}function Ft(t,e){return t===void 0&&e.length>1}function $t(t){return t.map(r=>{let{editingInfo:{lastEditDate:n}={}}=r;return n}).filter(r=>r!==void 0).sort((r,n)=>n-r)[0]}function Ut(t){let{cachedDownload:e,serviceLastEditDate:r,authentication:n,target:d,item:h,format:c,portal:l}=t,a=r===void 0?void 0:new Date(r).toISOString(),{created:o,id:s}=e||{},i=_t(d,r),f=Lt(h,c)?Kt(r,o,i):b.DISABLED;return e?{downloadId:s,status:f,lastEditDate:a,contentLastModified:new Date(o).toISOString(),lastModified:new Date(o).toISOString(),downloadUrl:T({host:l||n.portal,route:`content/items/${s}/data`,query:{token:n?.token}})}:{downloadId:$(t),status:f,lastEditDate:a}}function Kt(t,e,r){return e?t?t>e?r?b.STALE_LOCKED:b.STALE:b.READY:b.READY_UNKNOWN:r?b.LOCKED:b.NOT_READY}function st(t){return t.catch(e=>{if(e.name==="ArcGISAuthError")return e.retry(()=>Promise.resolve(null),1);throw e})}function Nt(t){let{host:e,datasetId:r,spatialRefId:n,format:d,geometry:h,where:c,target:l,authentication:a}=t;return!l||l==="hub"?ct({host:e,datasetId:r,format:d,spatialRefId:n,geometry:h,where:c}):kt({portal:`${e}/sharing/rest`,datasetId:r,format:d,authentication:a,spatialRefId:n,target:l})}function jt(t){let e=["Bytes","KB","MB","GB","TB"],r=t;if(r===0)return"n/a";let n=Math.floor(Math.log(r)/Math.log(1024));return n===0?[r,e[n]]:[(r/1024**n).toFixed(1),e[n]]}var Ht=`:host{font-size:1em}calcite-card div{font-size:1em}h3{font-size:1.25em}dl{font-size:inherit}dt,dd,calcite-dropdown-item{font-size:0.875em}dt{float:left;clear:left;margin-right:0.25rem}dt.ltr::after{content:':'}dd.rtl::after{content:':'}dd{margin:0px;padding:0px;margin-left:110px;margin-inline-start:0}a{vertical-align:middle}calcite-icon{margin-left:0.25rem}a:visited{color:inherit}calcite-dropdown{width:100%;--calcite-dropdown-width:100%;position:relative}calcite-dropdown-item span{color:#323232}calcite-button{width:100%}calcite-card div{width:100%}div[slot="footer-start"]{display:block}`,qt=Ht,Gt=5e3,zt={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1};function it(t,e){return t==="hub"||!!e}var Bt=class{constructor(t){ot(this,t),this.hubTelemetry=A(this,"hubTelemetry",7),this.hubDownloadCardSuccess=A(this,"hubDownloadCardSuccess",7),this.contentLengthString=null,this.poller=null,this.loading=void 0,this.metadata=void 0,this.exportRequested=!1,this.apiError=void 0,this.host=void 0,this.datasetId=void 0,this.format=void 0,this.name=void 0,this.target="hub",this.spatialRefId="4326",this.where=void 0,this.geometry=void 0,this.filename=void 0,this.username=void 0,this.token=void 0,N(this,"exportDatasetComplete","exportDatasetError","exportPollingError","download","downloadKeyDown","exportDataset","exportDatasetKeyDown")}async componentWillLoad(){this.resetUndefinedProps(),await this.setLocalization(),this.setAuthentication(),await this.fetchMetadataAndSetState(),this.setTranslations()}buildDownloadTelemetry({isSuccess:t=!0,isCached:e=!0}={}){return Object.assign(Object.assign({},e?D.dictionary.category.interaction.action.download.details.cache:D.dictionary.category.interaction.action.download.details.export),{label:this.format,response:t?D.constants.response.SUCCESS:D.constants.response.FAILURE})}resetUndefinedProps(){["spatialRefId","where","geometry","filename","target"].forEach(t=>{this[t]=this[t]==="undefined"?void 0:this[t]}),this.spatialRefId||(this.spatialRefId="4326")}async setLocalization(){this.intl=await K.loadIntlForComponent(this.element),this.dateTimeFormatter=new Intl.DateTimeFormat(this.intl.locale,zt),this.setLabels()}setLabels(){let t=["buttonDownload","fileCreated","fileSize","buttonOptions","menuRequest"];this.labels=t.reduce((e,r)=>(e[r]=this.intl.t(r),e),{})}setAuthentication(){this.username&&this.token&&(this.authentication=new U({username:this.username,portal:`${this.host}/sharing/rest`,token:this.token}),this.authentication.getToken=()=>new Promise(t=>{t(this.token)}))}setTranslations(){this.setContentLengthString()}setContentLengthString(){let{metadata:{contentLength:t}={}}=this;if(t){let e=jt(t);this.contentLengthString=typeof e=="string"?this.intl.t(e.toLowerCase()):`${e[0]} ${this.intl.t(e[1].toLowerCase())}`}}async watchHandler(){this.resetUndefinedProps(),await this.fetchMetadataAndSetState()}async disconnectedCallback(){this.resetUndefinedProps(),this.poller&&this.poller.disablePoll()}async fetchMetadataAndSetState(){this.poller&&this.poller.disablePoll();let t=this.getServiceParams();try{this.metadata=await Nt(t),this.pollingEvent=new pt,this.exportInProgress()&&this.poll()}catch(e){this.apiError=e}}getServiceParams(){let t={host:this.host,datasetId:this.datasetId,format:this.format,target:this.target,authentication:this.authentication,spatialRefId:this.spatialRefId};return this.where&&(t.where=this.where),this.geometry&&(t.geometry=this.geometry),t}poll(){let t=this.getServiceParams();this.pollingEvent.on(`${this.metadata.downloadId}ExportComplete`,this.exportDatasetComplete),this.pollingEvent.on(`${this.metadata.downloadId}ExportError`,this.exportDatasetError),this.pollingEvent.on(`${this.metadata.downloadId}PollingError`,this.exportPollingError),this.poller=Tt(Object.assign(Object.assign({},t),{downloadId:this.metadata.downloadId,jobId:this.metadata.jobId,exportCreated:this.metadata.exportCreated,eventEmitter:this.pollingEvent,pollingInterval:Gt,existingFileDate:new Date(this.metadata.lastModified||0).toISOString()}))}async download(){if(this.metadata&&this.metadata.downloadUrl)try{let t=this.transferFile(this.metadata.downloadUrl);return this.hubTelemetry.emit(this.buildDownloadTelemetry()),this.hubDownloadCardSuccess.emit(),t}catch(t){throw this.hubTelemetry.emit(this.buildDownloadTelemetry({isSuccess:!1})),t}return await this.exportDataset()}transferFile(t){return this.format==="Feature Collection"?window.open(t):j(t)}async exportDataset(){this.exportRequested=!0,this.metadata.status=this.downloadCached()?"updating":"creating";let t=Object.assign({title:this.filename},this.getServiceParams());try{let e=await bt(t);this.metadata=Object.assign(Object.assign({},this.metadata),e),this.poll()}catch(e){this.apiError=e,this.metadata.status="error",this.metadata.errors=[e]}}exportDatasetComplete(t){if(this.exportDatasetHandler(t),this.hubTelemetry.emit(this.buildDownloadTelemetry({isCached:!1})),this.hubDownloadCardSuccess.emit(),this.exportRequested){let{downloadUrl:e}=this.metadata;if(e)return this.transferFile(e)}}exportDatasetError(t){this.exportDatasetHandler(t),this.hubTelemetry.emit(this.buildDownloadTelemetry({isSuccess:!1,isCached:!1}))}exportPollingError(t){this.apiError=t.detail.error,this.exportDatasetHandler(t),this.hubTelemetry.emit(this.buildDownloadTelemetry({isSuccess:!1,isCached:!1}))}exportDatasetHandler(t){this.metadata=Object.assign(Object.assign({},this.metadata),t.detail.metadata),this.pollingEvent.off(`${this.metadata.downloadId}ExportComplete`,this.exportDatasetComplete),this.pollingEvent.off(`${this.metadata.downloadId}ExportError`,this.exportDatasetError),this.pollingEvent.off(`${this.metadata.downloadId}PollingError`,this.exportDatasetError)}renderNotice(){let{metadata:t,apiError:e,exportRequested:r}=this,{status:n}=t||{},d=n;n==="locked"?d="not_ready":n==="stale_locked"&&(d="stale");let h=e?e.status||e.message:void 0;return m("hub-download-notice",{"api-error":h,"cannot-export":!it(this.target,this.username),"export-requested":r,"file-status":d})}exportInProgress(){let{metadata:{status:t}={}}=this;return t==="creating"||t==="updating"}downloadCached(){let{metadata:{status:t}={}}=this;return["ready","ready_unknown","stale","stale_locked","updating","error_updating"].includes(t)}downloadUpToDate(){return this.metadata&&this.metadata.status==="ready"}isFormatDownloadDisabled(){return this.metadata&&this.metadata.status==="disabled"}renderFileDescription(){let t=[],{metadata:{lastModified:e}={}}=this;return this.downloadCached()?(e&&(this.intl.direction==="rtl"?t.push(m("dt",null,this.dateTimeFormatter.format(new Date(e))),m("dd",{class:"rtl"},this.labels.fileCreated)):t.push(m("dt",{class:"ltr"},this.labels.fileCreated),m("dd",null,this.dateTimeFormatter.format(new Date(e))))),this.contentLengthString&&(this.intl.direction==="rtl"?t.push(m("dt",null,this.contentLengthString),m("dd",{class:"rtl"},this.labels.fileSize)):t.push(m("dt",{class:"ltr"},this.labels.fileSize),m("dd",null,this.contentLengthString))),t):null}exportDatasetKeyDown(t){["Enter"," "].includes(t.key)&&this.exportDataset()}downloadKeyDown(t){["Enter"," "].includes(t.key)&&this.download()}renderDownloadControl(){return this.shouldUseDownloadButton()?m("calcite-button",{appearance:"solid",color:"blue",disabled:this.shouldDisableDownload(),"icon-position":"start",onClick:this.download,scale:"m",width:"full"},this.labels.buttonDownload):m("calcite-dropdown",{open:!1,placement:"top",scale:"m",type:"click"},m("calcite-button",{appearance:"solid",color:"blue","icon-end":"caretUp",scale:"m",slot:"trigger"},this.labels.buttonOptions),m("calcite-dropdown-group",{"selection-mode":"none"},m("calcite-dropdown-item",{hidden:this.exportInProgress(),onClick:this.exportDataset,onKeyDown:this.exportDatasetKeyDown,role:"menuitem","selection-mode":"none",tabindex:"0"},m("span",null,this.labels.menuRequest)),m("calcite-dropdown-item",{onClick:this.download,onKeyDown:this.downloadKeyDown,role:"menuitem","selection-mode":"none",tabindex:"0"},m("span",null,this.intl.t("menuDownload",{createdDate:this.dateTimeFormatter.format(new Date(this.metadata.lastModified))})))))}shouldUseDownloadButton(){return this.downloadUpToDate()||!this.downloadCached()||this.isFormatDownloadDisabled()||!it(this.target,this.username)}shouldDisableDownload(){return this.isFormatDownloadDisabled()||this.exportInProgress()&&!this.downloadCached()}render(){return m(rt,{key:"7bdf71eb74bfc58f41207d66486f451665953c2e","data-element":"download-card"},m("calcite-card",{key:"26c771ef86687e629a04f8e17a23c785d1b95965",dir:this.intl.direction},m("h3",{key:"0a5d94589614f5b61eb738111ea00e1db45489cd",slot:"title"},this.name),m("dl",{key:"eab178e4d5b2d5a2cd56d01106e38c341fc74c8b",slot:"subtitle"},this.renderFileDescription()),m("div",{key:"12843da8e9e9b8881b359086366c86cff78182b7",slot:"footer-start"},this.renderNotice(),this.renderDownloadControl())))}static get assetsDirs(){return["locales"]}get element(){return nt(this)}static get watchers(){return{host:["watchHandler"],datasetId:["watchHandler"],format:["watchHandler"],spatialRefId:["watchHandler"],where:["watchHandler"],geometry:["watchHandler"],target:["watchHandler"],username:["watchHandler"],token:["watchHandler"]}}};Bt.style=qt;return Bt},"config")
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.13/esri/copyright.txt for details.
3
- v0.13.1 */
4
- var a=n=>{var l;return((l=n.links)===null||l===void 0?void 0:l.thumbnail)||n.thumbnailUrl};export{a};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.13/esri/copyright.txt for details.
3
- v0.13.1 */
4
- import{a as r}from"./SYEKE27I.js";import"./TETS77HI.js";import"./A4ZBGD5O.js";import{b as i,d as n,e as s,i as a}from"./DTBYT7B3.js";import{a as o}from"./EV2JXOA6.js";import"./57G44J3J.js";import"./WEHYONDE.js";import"./O24HC4W5.js";var h={required:["countdownDate"],type:"object",properties:{cardTitle:{type:"string"},countdownDate:{type:"string",format:"date"}}},f=class{constructor(t){a(this,t),this.arcgisCountdownEditorChange=s(this,"arcgisCountdownEditorChange",7),this.values={}}handleEditorChangeEvent(t){t.stopPropagation(),this.arcgisCountdownEditorChange.emit(t.detail)}async componentWillLoad(){this.intl=await r.loadIntlForComponent(this.element)}get schema(){let t=o(h),c=e=>this.intl.t(e);return Object.entries(t.properties).forEach(([e,d])=>{d.title=c(e)}),t}render(){return i("arcgis-configuration-editor",{key:"3788c0baa6e3d96e89f6d682fd2221a4576237e6",schema:this.schema,values:this.values})}static get assetsDirs(){return["locales"]}get element(){return n(this)}};export{f as arcgis_countdown_editor};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/0.13/esri/copyright.txt for details.
3
- v0.13.1 */
4
- import{a as e}from"./57G44J3J.js";function g(r,n,o){let t=e(r,n);return t!==void 0?t:o}export{g as a};