@esri/hub-web-components 0.37.3 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1148) hide show
  1. package/dist/cdn/236HAGEK.js +2 -0
  2. package/dist/cdn/24WHEGS7.js +2 -0
  3. package/dist/cdn/25LZMJQW.js +2 -0
  4. package/dist/cdn/2BWJP4KH.js +2 -0
  5. package/dist/cdn/2DUPJPOK.js +2 -0
  6. package/dist/cdn/2EE4427F.js +2 -0
  7. package/dist/cdn/2EQH4CNE.js +2 -0
  8. package/dist/cdn/2EW2MAGT.js +2 -0
  9. package/dist/cdn/2H3NL2VR.js +2 -0
  10. package/dist/cdn/2ILIJZDY.js +2 -0
  11. package/dist/cdn/2JB3S3J4.js +2 -0
  12. package/dist/cdn/2LVSW3ED.js +2 -0
  13. package/dist/cdn/2OWGC2HG.js +2 -0
  14. package/dist/cdn/2RDZQFBD.js +2 -0
  15. package/dist/cdn/2TXGBFPG.js +2 -0
  16. package/dist/cdn/2WDM2VJM.js +2 -0
  17. package/dist/cdn/2WECGEBX.js +2 -0
  18. package/dist/cdn/2ZIJNDHQ.js +2 -0
  19. package/dist/cdn/2ZXVJSBO.js +2 -0
  20. package/dist/cdn/32UA342W.js +2 -0
  21. package/dist/cdn/32XX3F4E.js +2 -0
  22. package/dist/cdn/3BR5KKQ7.js +2 -0
  23. package/dist/cdn/3CHF3GEJ.js +2 -0
  24. package/dist/cdn/3CY6I4EO.js +2 -0
  25. package/dist/cdn/3FJHYATI.js +2 -0
  26. package/dist/cdn/3GDGENCS.js +2 -0
  27. package/dist/cdn/3GKXMAXM.js +2 -0
  28. package/dist/cdn/3HVIG2SK.js +2 -0
  29. package/dist/cdn/3JKXA4Q3.js +2 -0
  30. package/dist/cdn/3JODVSTM.js +2 -0
  31. package/dist/cdn/3KHULCZO.js +2 -0
  32. package/dist/cdn/3LBQDCLR.js +2 -0
  33. package/dist/cdn/3M5VO5CS.js +2 -0
  34. package/dist/cdn/3OVLI4PU.js +9 -0
  35. package/dist/cdn/3OWO3OYZ.js +2 -0
  36. package/dist/cdn/3PZNRYMF.js +2 -0
  37. package/dist/cdn/3QTUUB7M.js +2 -0
  38. package/dist/cdn/3UW2TBEZ.js +2 -0
  39. package/dist/cdn/3UXE5BF3.js +2 -0
  40. package/dist/cdn/3VUHOWXT.js +2 -0
  41. package/dist/cdn/3WXL3KU4.js +2 -0
  42. package/dist/cdn/3XPQULRS.js +2 -0
  43. package/dist/cdn/45CLNG4V.js +2 -0
  44. package/dist/cdn/45V63GZB.js +2 -0
  45. package/dist/cdn/45Z5LSII.js +2 -0
  46. package/dist/cdn/46JROUMF.js +2 -0
  47. package/dist/cdn/4D3KDOGU.js +2 -0
  48. package/dist/cdn/4E7UX35B.js +2 -0
  49. package/dist/cdn/4GF4O5CD.js +2 -0
  50. package/dist/cdn/4KOILCWX.js +2 -0
  51. package/dist/cdn/4LSDKVY5.js +2 -0
  52. package/dist/cdn/4MK7XIAZ.js +2 -0
  53. package/dist/cdn/4QLO26TU.js +2 -0
  54. package/dist/cdn/4RF57BXA.js +2 -0
  55. package/dist/cdn/4RW76P4G.js +3 -0
  56. package/dist/cdn/4WFBSXCD.js +2 -0
  57. package/dist/cdn/4YKJQWLZ.js +2 -0
  58. package/dist/cdn/52EXRWO7.js +2 -0
  59. package/dist/cdn/546UMMXC.js +4 -0
  60. package/dist/cdn/564WTIUK.js +2 -0
  61. package/dist/cdn/5AQLELE7.js +2 -0
  62. package/dist/cdn/5AY5O6NA.js +2 -0
  63. package/dist/cdn/5BFO4SMC.js +23 -0
  64. package/dist/cdn/5BNQ7WYV.js +2 -0
  65. package/dist/cdn/5BSBS5SB.js +2 -0
  66. package/dist/cdn/5DW6FQAN.js +2 -0
  67. package/dist/cdn/5IE6W375.js +2 -0
  68. package/dist/cdn/5KW2QPZC.js +2 -0
  69. package/dist/cdn/5MLRZJVF.js +2 -0
  70. package/dist/cdn/5PCBOJUL.js +2 -0
  71. package/dist/cdn/5PGWPW32.js +2 -0
  72. package/dist/cdn/5PWUXR6C.js +2 -0
  73. package/dist/cdn/5T2V664O.js +2 -0
  74. package/dist/cdn/5VOM4C4C.js +2 -0
  75. package/dist/cdn/5XEIW7CT.js +2 -0
  76. package/dist/cdn/634MHX5H.js +2 -0
  77. package/dist/cdn/63S2PXLQ.js +2 -0
  78. package/dist/cdn/677XOGDW.js +2 -0
  79. package/dist/cdn/6ANGFMIE.js +2 -0
  80. package/dist/cdn/6CHWESL2.js +2 -0
  81. package/dist/cdn/6EVJFJHR.js +2 -0
  82. package/dist/cdn/6GKOYJ5G.js +2 -0
  83. package/dist/cdn/6HR5VJ5Z.js +2 -0
  84. package/dist/cdn/6PGSCXG5.js +3 -0
  85. package/dist/cdn/6PP6S4SR.js +2 -0
  86. package/dist/cdn/6PXXMBGG.js +101 -0
  87. package/dist/cdn/6QTH3TK4.js +2 -0
  88. package/dist/cdn/6SBBIF36.js +2 -0
  89. package/dist/cdn/6UI543V2.js +2 -0
  90. package/dist/cdn/6WWLOLK2.js +2 -0
  91. package/dist/cdn/72JEALD6.js +2 -0
  92. package/dist/cdn/73VGDY64.js +2 -0
  93. package/dist/cdn/76PBLDOW.js +2 -0
  94. package/dist/cdn/76VGL2OG.js +2 -0
  95. package/dist/cdn/77X4MPIK.js +2 -0
  96. package/dist/cdn/7ASFWI7S.js +2 -0
  97. package/dist/cdn/7G2NGRSE.js +2 -0
  98. package/dist/cdn/7GI2O7DN.js +2 -0
  99. package/dist/cdn/7IGM7SZV.js +2 -0
  100. package/dist/cdn/7J23Y6UZ.js +2 -0
  101. package/dist/cdn/7JJRW4NC.js +2 -0
  102. package/dist/cdn/7LZEINS7.js +2 -0
  103. package/dist/cdn/7M6WAN4F.js +2 -0
  104. package/dist/cdn/7NHQNVMM.js +2 -0
  105. package/dist/cdn/7OKY7BOU.js +2 -0
  106. package/dist/cdn/7QXOPKDR.js +2 -0
  107. package/dist/cdn/7YFSWA6Y.js +2 -0
  108. package/dist/cdn/7ZNOM7XH.js +2 -0
  109. package/dist/cdn/A5ALDCCE.js +2 -0
  110. package/dist/cdn/A5DE26HL.js +5468 -0
  111. package/dist/cdn/A6MK5ZPP.js +2 -0
  112. package/dist/cdn/A7UTEGFQ.js +2 -0
  113. package/dist/cdn/ACFPNLIK.js +2 -0
  114. package/dist/cdn/ADYIOWEG.js +2 -0
  115. package/dist/cdn/AH23WNQW.js +2 -0
  116. package/dist/cdn/AHSJJDVA.js +2 -0
  117. package/dist/cdn/AJHFVXHK.js +2 -0
  118. package/dist/cdn/AJR3J6MJ.js +2 -0
  119. package/dist/cdn/AMGCL5N6.js +2 -0
  120. package/dist/cdn/AOJJIJRH.js +2 -0
  121. package/dist/cdn/AOSFOFZC.js +2 -0
  122. package/dist/cdn/AS6M5YBE.js +2 -0
  123. package/dist/cdn/AT75BQVI.js +2 -0
  124. package/dist/cdn/B4SFNUJX.js +2 -0
  125. package/dist/cdn/B7A7RSZ4.js +2 -0
  126. package/dist/cdn/B7XZZQM4.js +2 -0
  127. package/dist/cdn/BDCNWDSM.js +2 -0
  128. package/dist/cdn/BE4JSUS6.js +2 -0
  129. package/dist/cdn/BGUBTLON.js +2 -0
  130. package/dist/cdn/BIAMJNHV.js +2 -0
  131. package/dist/cdn/BK6XX2AU.js +2 -0
  132. package/dist/cdn/BMPXQTR3.js +2 -0
  133. package/dist/cdn/BN2OLK73.js +2 -0
  134. package/dist/cdn/BNGN57J7.js +2 -0
  135. package/dist/cdn/BOV2P5AR.js +2 -0
  136. package/dist/cdn/BOXLFPBZ.js +2 -0
  137. package/dist/cdn/BREHLWWL.js +2 -0
  138. package/dist/cdn/BRRV3DOR.js +22 -0
  139. package/dist/cdn/BRTJWWHS.js +2 -0
  140. package/dist/cdn/BTELCOY5.js +2 -0
  141. package/dist/cdn/BWE2I5AG.js +2 -0
  142. package/dist/cdn/BWUAY2LE.js +2 -0
  143. package/dist/cdn/BZAKLMBW.js +2 -0
  144. package/dist/cdn/C5YJ666N.js +2 -0
  145. package/dist/cdn/C67HM5IZ.js +2 -0
  146. package/dist/cdn/C6J22WJW.js +2 -0
  147. package/dist/cdn/CDLDZD7A.js +57 -0
  148. package/dist/cdn/CFPF74RM.js +2 -0
  149. package/dist/cdn/CGY4TVMV.js +2 -0
  150. package/dist/cdn/CHENEYUV.js +2 -0
  151. package/dist/cdn/CL6SOVSI.js +2 -0
  152. package/dist/cdn/CSGFPAKT.js +2 -0
  153. package/dist/cdn/CSWPB3OX.js +2 -0
  154. package/dist/cdn/CSYFGNUQ.js +2 -0
  155. package/dist/cdn/CU5WQBOB.js +2 -0
  156. package/dist/cdn/CWFJZAPU.js +2 -0
  157. package/dist/cdn/CWYD5K4S.js +2 -0
  158. package/dist/cdn/CXTLB2JC.js +2 -0
  159. package/dist/cdn/D2FW5KKG.js +2 -0
  160. package/dist/cdn/D2PJNXW6.js +2 -0
  161. package/dist/cdn/D3BILNAQ.js +2 -0
  162. package/dist/cdn/D3R4UBO6.js +2 -0
  163. package/dist/cdn/D55X5MXF.js +2 -0
  164. package/dist/cdn/DAVFVKTV.js +2 -0
  165. package/dist/cdn/DAX4IQBA.js +2 -0
  166. package/dist/cdn/DB7GEQTR.js +2 -0
  167. package/dist/cdn/DBRFT7B4.js +2 -0
  168. package/dist/cdn/DBXBA6HT.js +2 -0
  169. package/dist/cdn/DCDDWF2I.js +2 -0
  170. package/dist/cdn/DDJLRFBZ.js +2 -0
  171. package/dist/cdn/DDQO772J.js +2 -0
  172. package/dist/cdn/DEDRO7EB.js +2 -0
  173. package/dist/cdn/DF7ABV7W.js +2 -0
  174. package/dist/cdn/DFJJV4QP.js +2 -0
  175. package/dist/cdn/DHG3VO5E.js +2 -0
  176. package/dist/cdn/DN2VD27M.js +2 -0
  177. package/dist/cdn/DQTK57GS.js +2 -0
  178. package/dist/cdn/DR5DLTDD.js +2 -0
  179. package/dist/cdn/DUUDWZXE.js +2 -0
  180. package/dist/cdn/DUXSX52F.js +49 -0
  181. package/dist/cdn/DVL64T57.js +2 -0
  182. package/dist/cdn/DXTZVNWA.js +3 -0
  183. package/dist/cdn/DZN62VYN.js +2 -0
  184. package/dist/cdn/DZYZIET6.js +2 -0
  185. package/dist/cdn/E4CJ5ZNU.js +2 -0
  186. package/dist/cdn/E7JK3E34.js +2 -0
  187. package/dist/cdn/EAHWXQSY.js +2 -0
  188. package/dist/cdn/EBGADEP4.js +2 -0
  189. package/dist/cdn/ECVIS6PA.js +2 -0
  190. package/dist/cdn/EDJVOECM.js +2 -0
  191. package/dist/cdn/EH5WKZDX.js +2 -0
  192. package/dist/cdn/EIJD2PFU.js +2 -0
  193. package/dist/cdn/EJKK6I5R.js +2 -0
  194. package/dist/cdn/EKJB7MLI.js +2 -0
  195. package/dist/cdn/ENWVIHLH.js +2 -0
  196. package/dist/cdn/EP5J4JOX.js +2 -0
  197. package/dist/cdn/EPA7NLL3.js +2 -0
  198. package/dist/cdn/EPITUUL4.js +2 -0
  199. package/dist/cdn/EQZAUOXD.js +2 -0
  200. package/dist/cdn/ETNEKEKW.js +2 -0
  201. package/dist/cdn/EVEBEV3F.js +2 -0
  202. package/dist/cdn/EWAU66TF.js +2 -0
  203. package/dist/cdn/EXQCLQJD.js +2 -0
  204. package/dist/cdn/F3QYJUVR.js +2 -0
  205. package/dist/cdn/F4W62LF6.js +2 -0
  206. package/dist/cdn/F5MRLCKP.js +2 -0
  207. package/dist/cdn/F67HAQPI.js +2 -0
  208. package/dist/cdn/FCWCW2DB.js +2 -0
  209. package/dist/cdn/FELT6CWD.js +2 -0
  210. package/dist/cdn/FGXWNIN4.js +4 -0
  211. package/dist/cdn/FII3RW6D.js +10 -0
  212. package/dist/cdn/FLLYEIGM.js +2 -0
  213. package/dist/cdn/FNKBHO4M.js +2 -0
  214. package/dist/cdn/FO7JXNJA.js +2 -0
  215. package/dist/cdn/FONOHWD4.js +2 -0
  216. package/dist/cdn/FQ67NRY3.js +2 -0
  217. package/dist/cdn/FQTSRTTQ.js +2 -0
  218. package/dist/cdn/FR67HD5Q.js +2 -0
  219. package/dist/cdn/FUJECPFL.js +2 -0
  220. package/dist/cdn/G2VRBYFE.js +2 -0
  221. package/dist/cdn/G2VZF3XU.js +2 -0
  222. package/dist/cdn/G5LBL73C.js +2 -0
  223. package/dist/cdn/G6H6YQAR.js +2 -0
  224. package/dist/cdn/GFRFAB56.js +2 -0
  225. package/dist/cdn/GHNVBIZM.js +2 -0
  226. package/dist/cdn/GMWP6LCV.js +2 -0
  227. package/dist/cdn/GQCVJRFN.js +2 -0
  228. package/dist/cdn/GQEOGWRS.js +2 -0
  229. package/dist/cdn/GQJNXTQT.js +2 -0
  230. package/dist/cdn/GUVU7ZKH.js +2 -0
  231. package/dist/cdn/GWE7MB6R.js +2 -0
  232. package/dist/cdn/GXN2DYTV.js +2 -0
  233. package/dist/cdn/GY557TE4.js +2 -0
  234. package/dist/cdn/H22LIWN5.js +2 -0
  235. package/dist/cdn/H2OV5BRE.js +2 -0
  236. package/dist/cdn/H4KV7MLW.js +2 -0
  237. package/dist/cdn/H6RS3MWN.js +2 -0
  238. package/dist/cdn/HAVGOHEF.js +2 -0
  239. package/dist/cdn/HFGNOB7X.js +2 -0
  240. package/dist/cdn/HFO5EQR7.js +2 -0
  241. package/dist/cdn/HHG5BEOE.js +2 -0
  242. package/dist/cdn/HKZINVVZ.js +2 -0
  243. package/dist/cdn/HM3XWGWB.js +2 -0
  244. package/dist/cdn/HS5U6SAB.js +2 -0
  245. package/dist/cdn/HT6X7J7I.js +2 -0
  246. package/dist/cdn/HUBM7ZHQ.js +2 -0
  247. package/dist/cdn/HWJYICV2.js +2 -0
  248. package/dist/cdn/HX2ANNLW.js +2 -0
  249. package/dist/cdn/HXAEGJHA.js +2 -0
  250. package/dist/cdn/HZZPNHJD.js +2 -0
  251. package/dist/cdn/HZZT4ENK.js +39 -0
  252. package/dist/cdn/I6NM57PS.js +2 -0
  253. package/dist/cdn/IEFGEXRM.js +2 -0
  254. package/dist/cdn/IIVZDUOO.js +2 -0
  255. package/dist/cdn/ILA26VYV.js +2 -0
  256. package/dist/cdn/INL22W2K.js +2 -0
  257. package/dist/cdn/IPB6I32R.js +2 -0
  258. package/dist/cdn/IQKUMB36.js +2 -0
  259. package/dist/cdn/IRDXKWHN.js +2 -0
  260. package/dist/cdn/IRK5TOIL.js +2 -0
  261. package/dist/cdn/ISFIYPYM.js +50 -0
  262. package/dist/cdn/ISKLXQSB.js +2 -0
  263. package/dist/cdn/IT7YVVDI.js +2 -0
  264. package/dist/cdn/ITUDVJWT.js +2 -0
  265. package/dist/cdn/J3IYBH53.js +2 -0
  266. package/dist/cdn/J43Y4A2N.js +2 -0
  267. package/dist/cdn/J5GHLLAB.js +2 -0
  268. package/dist/cdn/JAM7T5PB.js +4 -0
  269. package/dist/cdn/JBSROA2H.js +2 -0
  270. package/dist/cdn/JC6ZBDVV.js +2 -0
  271. package/dist/cdn/JDLEH54P.js +2 -0
  272. package/dist/cdn/JH4TZ3IY.js +2 -0
  273. package/dist/cdn/JKGOCFVC.js +2 -0
  274. package/dist/cdn/JKK5LJAI.js +2 -0
  275. package/dist/cdn/JMUGY3OJ.js +2 -0
  276. package/dist/cdn/JN6YHOUS.js +2 -0
  277. package/dist/cdn/JNSS6JH3.js +2 -0
  278. package/dist/cdn/JOX32ZKP.js +2 -0
  279. package/dist/cdn/JR6CWQ3R.js +2 -0
  280. package/dist/cdn/JSSFWJCY.js +2 -0
  281. package/dist/cdn/JUIATBR3.js +2 -0
  282. package/dist/cdn/JUNOFH56.js +2 -0
  283. package/dist/cdn/JXP5MO3J.js +2 -0
  284. package/dist/cdn/JYIVT4P3.js +2 -0
  285. package/dist/cdn/JYREZGPA.js +2 -0
  286. package/dist/cdn/K2D5G22Z.js +2 -0
  287. package/dist/cdn/K5HZ2G74.js +2 -0
  288. package/dist/cdn/K6AMDRTV.js +2 -0
  289. package/dist/cdn/K6CWANHE.js +2 -0
  290. package/dist/cdn/K7BNQOOW.js +2 -0
  291. package/dist/cdn/KBNCRVPP.js +2 -0
  292. package/dist/cdn/KGGAN2FF.js +2 -0
  293. package/dist/cdn/KLMBAQIW.js +2 -0
  294. package/dist/cdn/KNLJ2Y2L.js +2 -0
  295. package/dist/cdn/KQHNHQIC.js +6 -0
  296. package/dist/cdn/KRXEHAAE.js +2 -0
  297. package/dist/cdn/KTRB3474.js +2 -0
  298. package/dist/cdn/KUUU37O7.js +2 -0
  299. package/dist/cdn/KWAQZHYD.js +2 -0
  300. package/dist/cdn/KYWSYVJC.js +2 -0
  301. package/dist/cdn/L2PPM2B2.js +2 -0
  302. package/dist/cdn/L3E7MHJD.js +2 -0
  303. package/dist/cdn/L4JCSXPA.js +2 -0
  304. package/dist/cdn/L5EFE534.js +2 -0
  305. package/dist/cdn/L6JOUO4R.js +2 -0
  306. package/dist/cdn/L6KTWLZO.js +2 -0
  307. package/dist/cdn/LAGV6T2P.js +2 -0
  308. package/dist/cdn/LAPB4R6P.js +2 -0
  309. package/dist/cdn/LLPWCLVS.js +2 -0
  310. package/dist/cdn/LN5YCGL5.js +2 -0
  311. package/dist/cdn/LNSWRA2E.js +2 -0
  312. package/dist/cdn/LQLM5UFO.js +2 -0
  313. package/dist/cdn/LRLKKT6E.js +2 -0
  314. package/dist/cdn/LST2TEQ7.js +2 -0
  315. package/dist/cdn/LT5EGN2B.js +2 -0
  316. package/dist/cdn/LV543PTH.js +2 -0
  317. package/dist/cdn/LZC3KVDN.js +2 -0
  318. package/dist/cdn/M6WEQLC4.js +2 -0
  319. package/dist/cdn/M7PXGKUN.js +2 -0
  320. package/dist/cdn/MA4PQFDN.js +2 -0
  321. package/dist/cdn/MDGTCFT7.js +2 -0
  322. package/dist/cdn/MIV7EHSX.js +2 -0
  323. package/dist/cdn/MK64YJZT.js +2 -0
  324. package/dist/cdn/MKFRUSCH.js +2 -0
  325. package/dist/cdn/MKK63VCT.js +2 -0
  326. package/dist/cdn/MLZ3XGVR.js +2 -0
  327. package/dist/cdn/MOFQMUCX.js +2 -0
  328. package/dist/cdn/MPUNYAO6.js +2 -0
  329. package/dist/cdn/MS7HEOST.js +2 -0
  330. package/dist/cdn/MSDIL3V2.js +2 -0
  331. package/dist/cdn/MUNTT3ZX.js +2 -0
  332. package/dist/cdn/MX2LFKDN.js +2 -0
  333. package/dist/cdn/MZPEHZQ6.js +2 -0
  334. package/dist/cdn/MZTSQFVF.js +2 -0
  335. package/dist/cdn/N5GAHY3Z.js +2 -0
  336. package/dist/cdn/N5Q4VONY.js +2 -0
  337. package/dist/cdn/N6YCTEBM.js +2 -0
  338. package/dist/cdn/NA26EC7V.js +2 -0
  339. package/dist/cdn/NEIM3TBD.js +2 -0
  340. package/dist/cdn/NGHDJBY5.js +2 -0
  341. package/dist/cdn/NHJYS2PI.js +2 -0
  342. package/dist/cdn/NIAU4VO5.js +2 -0
  343. package/dist/cdn/NIJNUESB.js +2 -0
  344. package/dist/cdn/NK3ILYT4.js +2 -0
  345. package/dist/cdn/NKTEP5PG.js +2 -0
  346. package/dist/cdn/NMDYCBFW.js +2 -0
  347. package/dist/cdn/NQU3EFLX.js +2 -0
  348. package/dist/cdn/NZKEUWJO.js +2 -0
  349. package/dist/cdn/O24TJJIA.js +2 -0
  350. package/dist/cdn/OB5VPFBQ.js +2 -0
  351. package/dist/cdn/OCROULRG.js +2 -0
  352. package/dist/cdn/ODWK4PGO.js +2 -0
  353. package/dist/cdn/OEYT6KBR.js +2 -0
  354. package/dist/cdn/OGW276HU.js +2 -0
  355. package/dist/cdn/OHDLPBUL.js +2 -0
  356. package/dist/cdn/OKPRBA73.js +2 -0
  357. package/dist/cdn/OLIXHQ45.js +2 -0
  358. package/dist/cdn/OM6RXTNE.js +2 -0
  359. package/dist/cdn/OMUDX3KZ.js +2 -0
  360. package/dist/cdn/ONB5KTQJ.js +2 -0
  361. package/dist/cdn/OODAGA7S.js +2 -0
  362. package/dist/cdn/OQ2B5D7H.js +2 -0
  363. package/dist/cdn/OT6SCCRW.js +2 -0
  364. package/dist/cdn/OU5H6LGW.js +2 -0
  365. package/dist/cdn/OY4XFH6U.js +2 -0
  366. package/dist/cdn/P2RUPXUY.js +2 -0
  367. package/dist/cdn/P6CKD2GP.js +2 -0
  368. package/dist/cdn/PBJKVPW5.js +2 -0
  369. package/dist/cdn/PE2YQIC4.js +2 -0
  370. package/dist/cdn/PG7E7354.js +2 -0
  371. package/dist/cdn/PIFGTBYR.js +2 -0
  372. package/dist/cdn/PJNURHKH.js +2 -0
  373. package/dist/cdn/PPTPAJVV.js +2 -0
  374. package/dist/cdn/PR4YIRMU.js +2 -0
  375. package/dist/cdn/PRO345O5.js +2 -0
  376. package/dist/cdn/PTRRO6WN.js +2 -0
  377. package/dist/cdn/PUUASAJ2.js +2 -0
  378. package/dist/cdn/PUUPBPMV.js +2 -0
  379. package/dist/cdn/PVBRAWDN.js +2 -0
  380. package/dist/cdn/PVJYYXFI.js +2 -0
  381. package/dist/cdn/PX2LKSL6.js +2 -0
  382. package/dist/cdn/Q26WYPCD.js +2 -0
  383. package/dist/cdn/Q4DVCEF3.js +2 -0
  384. package/dist/cdn/Q67H57WZ.js +2 -0
  385. package/dist/cdn/Q6BO676X.js +2 -0
  386. package/dist/cdn/Q6PGP3ZV.js +2 -0
  387. package/dist/cdn/Q7LIRPNK.js +2 -0
  388. package/dist/cdn/QBXTRM4A.js +2 -0
  389. package/dist/cdn/QFB257DG.js +2 -0
  390. package/dist/cdn/QHE543NP.js +2 -0
  391. package/dist/cdn/QLBQIWYL.js +2 -0
  392. package/dist/cdn/QLXCZ3NE.js +2 -0
  393. package/dist/cdn/QN2SIA7O.js +2 -0
  394. package/dist/cdn/QN6BOKR7.js +2 -0
  395. package/dist/cdn/QNV4N454.js +2 -0
  396. package/dist/cdn/QO2PWUWM.js +2 -0
  397. package/dist/cdn/QQLO6W5R.js +2 -0
  398. package/dist/cdn/QQNCKFBK.js +2 -0
  399. package/dist/cdn/QREJXP7C.js +2 -0
  400. package/dist/cdn/QRPVQBFD.js +2 -0
  401. package/dist/cdn/QUDAZ77Y.js +2 -0
  402. package/dist/cdn/QUEMC3AN.js +2 -0
  403. package/dist/cdn/QYJYDEZE.js +2 -0
  404. package/dist/cdn/QYPLXIBB.js +2 -0
  405. package/dist/cdn/QYQIPUGM.js +2 -0
  406. package/dist/cdn/R3GQKIJ5.js +2 -0
  407. package/dist/cdn/R7C6MNQH.js +2 -0
  408. package/dist/cdn/RBGNUTQK.js +2 -0
  409. package/dist/cdn/RC5E7RLU.js +2 -0
  410. package/dist/cdn/RCP7UO3I.js +2 -0
  411. package/dist/cdn/REWZLA3K.js +2 -0
  412. package/dist/cdn/RGXVBRFC.js +2 -0
  413. package/dist/cdn/RN7HGMZW.js +6 -0
  414. package/dist/cdn/RQIJVACD.js +2 -0
  415. package/dist/cdn/RUVOYVVB.js +2 -0
  416. package/dist/cdn/RXEDODJY.js +2 -0
  417. package/dist/cdn/RY3BOHEX.js +2 -0
  418. package/dist/cdn/S4F4TUDC.js +2 -0
  419. package/dist/cdn/S5UG2OK3.js +2 -0
  420. package/dist/cdn/S652H4VN.js +2 -0
  421. package/dist/cdn/SADDC2DK.js +2 -0
  422. package/dist/cdn/SDQL72GW.js +2 -0
  423. package/dist/cdn/SEJFEDAL.js +2 -0
  424. package/dist/cdn/SERXR2LG.js +2 -0
  425. package/dist/cdn/SEXTYSOH.js +2 -0
  426. package/dist/cdn/SR3XA2A2.js +3 -0
  427. package/dist/cdn/SRE3UGET.js +2 -0
  428. package/dist/cdn/SRMTUU32.js +2 -0
  429. package/dist/cdn/SSUMP2NE.js +2 -0
  430. package/dist/cdn/ST3YYA5D.js +2 -0
  431. package/dist/cdn/SVRAUC4L.js +2 -0
  432. package/dist/cdn/SWVXW2PZ.js +2 -0
  433. package/dist/cdn/T64QL6SH.js +2 -0
  434. package/dist/cdn/T74ADXHD.js +2 -0
  435. package/dist/cdn/T7QPSQ6X.js +2 -0
  436. package/dist/cdn/TE3YDUFZ.js +2 -0
  437. package/dist/cdn/TEMTRFHO.js +2 -0
  438. package/dist/cdn/TH2B62CH.js +2 -0
  439. package/dist/cdn/TIXP2JWX.js +2 -0
  440. package/dist/cdn/TJH2CAQN.js +2 -0
  441. package/dist/cdn/TJNCJLFE.js +2 -0
  442. package/dist/cdn/TOY6PXDP.js +2 -0
  443. package/dist/cdn/TRW2D3YU.js +2 -0
  444. package/dist/cdn/TTL4NSLD.js +2 -0
  445. package/dist/cdn/TVV2X45U.js +2 -0
  446. package/dist/cdn/TVX5SDUH.js +2 -0
  447. package/dist/cdn/TWWDY4C3.js +2 -0
  448. package/dist/cdn/TZXHHOXC.js +10 -0
  449. package/dist/cdn/U5GGWHZO.js +2 -0
  450. package/dist/cdn/U5V2PMFO.js +2 -0
  451. package/dist/cdn/U7DDSGRI.js +2 -0
  452. package/dist/cdn/UDP7EENP.js +2 -0
  453. package/dist/cdn/UHJI2POJ.js +2 -0
  454. package/dist/cdn/UHMRHQSA.js +2 -0
  455. package/dist/cdn/UJLWEMLF.js +2 -0
  456. package/dist/cdn/ULND2AHT.js +3 -0
  457. package/dist/cdn/UMTI4ASY.js +2 -0
  458. package/dist/cdn/UOFMXXCF.js +2 -0
  459. package/dist/cdn/UPJ5YFB3.js +2 -0
  460. package/dist/cdn/UPQGR6XZ.js +2 -0
  461. package/dist/cdn/UQFU44VU.js +2 -0
  462. package/dist/cdn/USNKSSNY.js +2 -0
  463. package/dist/cdn/UTYIY6RX.js +2 -0
  464. package/dist/cdn/UUBB3CRW.js +2 -0
  465. package/dist/cdn/UVZ42TD3.js +2 -0
  466. package/dist/cdn/UWIAJV2I.js +2 -0
  467. package/dist/cdn/UWUNHI7L.js +2 -0
  468. package/dist/cdn/UXXI3SQO.js +2 -0
  469. package/dist/cdn/UZV5ZDGJ.js +2 -0
  470. package/dist/cdn/V2I47N23.js +2 -0
  471. package/dist/cdn/V6NN26QF.js +2 -0
  472. package/dist/cdn/V7NGWJV5.js +2 -0
  473. package/dist/cdn/VJKJWIVW.js +2 -0
  474. package/dist/cdn/VNEAUDVI.js +2 -0
  475. package/dist/cdn/VQOZUBFA.js +2 -0
  476. package/dist/cdn/VQXRDNZT.js +2 -0
  477. package/dist/cdn/VTCPJ62B.js +2 -0
  478. package/dist/cdn/VTQYNCAR.js +2 -0
  479. package/dist/cdn/VURQPTCW.js +2 -0
  480. package/dist/cdn/VVLYSGUR.js +2 -0
  481. package/dist/cdn/VWAVVQJJ.js +2 -0
  482. package/dist/cdn/VXTU6DWN.js +2 -0
  483. package/dist/cdn/W5EQWPZT.js +2 -0
  484. package/dist/cdn/W6CIIV4Z.js +2 -0
  485. package/dist/cdn/W6YU4GHY.js +2 -0
  486. package/dist/cdn/W75PS2IE.js +2 -0
  487. package/dist/cdn/WBSLYVPQ.js +2 -0
  488. package/dist/cdn/WCDWD2B6.js +2 -0
  489. package/dist/cdn/WE2BDIRX.js +7 -0
  490. package/dist/cdn/WIS2JCU5.js +2 -0
  491. package/dist/cdn/WJFSSYRR.js +2 -0
  492. package/dist/cdn/WJVYYTL2.js +2 -0
  493. package/dist/cdn/WMNYXLEQ.js +2 -0
  494. package/dist/cdn/WNHQOQRJ.js +2 -0
  495. package/dist/cdn/WOGIQMDO.js +2 -0
  496. package/dist/cdn/WOPCBDZP.js +2 -0
  497. package/dist/cdn/WPYXFHC7.js +2 -0
  498. package/dist/cdn/WU3HBTHL.js +2 -0
  499. package/dist/cdn/WUEDA64M.js +2 -0
  500. package/dist/cdn/WUNRRAKS.js +2 -0
  501. package/dist/cdn/WUZQBPV4.js +2 -0
  502. package/dist/cdn/X3WMLB6V.js +2 -0
  503. package/dist/cdn/X5G7VGWH.js +2 -0
  504. package/dist/cdn/X65V22WZ.js +2 -0
  505. package/dist/cdn/XAYV7IBF.js +2 -0
  506. package/dist/cdn/XCFQMY4U.js +2 -0
  507. package/dist/cdn/XEYOWJGY.js +14 -0
  508. package/dist/cdn/XFCHMSR7.js +2 -0
  509. package/dist/cdn/XI6X55QD.js +2 -0
  510. package/dist/cdn/XKBY6EJC.js +2 -0
  511. package/dist/cdn/XLHG5W2O.js +2 -0
  512. package/dist/cdn/XRGUZJA3.js +2 -0
  513. package/dist/cdn/XWSO2EDX.js +2 -0
  514. package/dist/cdn/Y2JIY5K6.js +2 -0
  515. package/dist/cdn/Y3GRFUW3.js +2 -0
  516. package/dist/cdn/Y6Q6ENTP.js +2 -0
  517. package/dist/cdn/Y6Y62AIY.js +2 -0
  518. package/dist/cdn/YAJEJUPD.js +2 -0
  519. package/dist/cdn/YDJH3ZVL.js +2 -0
  520. package/dist/cdn/YEIHJDUB.js +2 -0
  521. package/dist/cdn/YHDGXQY6.js +2 -0
  522. package/dist/cdn/YIM7DW7Q.js +2 -0
  523. package/dist/cdn/YL3CSDPR.js +2 -0
  524. package/dist/cdn/YMACXVV6.js +2 -0
  525. package/dist/cdn/YMTAIN3S.js +2 -0
  526. package/dist/cdn/YO2Z7OX4.js +2 -0
  527. package/dist/cdn/YPCQEKG3.js +2 -0
  528. package/dist/cdn/YS3WYU6Q.js +2 -0
  529. package/dist/cdn/YSXFXSDF.js +2 -0
  530. package/dist/cdn/YUMQIDHT.js +2 -0
  531. package/dist/cdn/YWYHMMVI.js +2 -0
  532. package/dist/cdn/YZ6PJ4WA.js +2 -0
  533. package/dist/cdn/YZGO6EXJ.js +2 -0
  534. package/dist/cdn/Z7DMCQET.js +2 -0
  535. package/dist/cdn/Z7XRFVR2.js +2 -0
  536. package/dist/cdn/ZAXWIIVO.js +2 -0
  537. package/dist/cdn/ZCZVGMIV.js +2 -0
  538. package/dist/cdn/ZDKCRMXL.js +2 -0
  539. package/dist/cdn/ZHGSLQOD.js +2 -0
  540. package/dist/cdn/ZLIWQVLB.js +2 -0
  541. package/dist/cdn/ZMRTK5JK.js +2 -0
  542. package/dist/cdn/ZN44BYAC.js +2 -0
  543. package/dist/cdn/ZNBJRJBQ.js +2 -0
  544. package/dist/cdn/ZOHGPFJY.js +2 -0
  545. package/dist/cdn/ZSGSUGWJ.js +2 -0
  546. package/dist/cdn/ZV3N2SYE.js +2 -0
  547. package/dist/cdn/ZVJUBUUM.js +2 -0
  548. package/dist/cdn/ZZBJZPDW.js +2 -0
  549. package/dist/cdn/ZZRKDSLS.js +2 -0
  550. package/dist/cdn/index.js +2 -2
  551. package/dist/chunks/findColumnAndNodeIndex.js +1 -1
  552. package/dist/chunks/getResponsiveClasses.js +1 -1
  553. package/dist/chunks/interpolate-translations.js +1 -1
  554. package/dist/chunks/isNodeVisible.js +1 -1
  555. package/dist/chunks/layoutContext.js +1 -1
  556. package/dist/chunks/migrateTextCard.js +1 -1
  557. package/dist/chunks/processLayout.js +1 -1
  558. package/dist/chunks/runtime.js +2 -2
  559. package/dist/chunks/state.js +1 -1
  560. package/dist/chunks/typeGuards.js +1 -1
  561. package/dist/chunks/useGlobalContext.js +1 -1
  562. package/dist/chunks/useT9n.js +1 -1
  563. package/dist/chunks/util.js +1 -1
  564. package/dist/components/arcgis-chat-shell/customElement.js +1 -1
  565. package/dist/components/arcgis-chat-ui/customElement.js +1 -1
  566. package/dist/components/arcgis-chat-ui/functional/chat-action/customElement.js +1 -1
  567. package/dist/components/arcgis-chat-ui/functional/chat-response/customElement.js +1 -1
  568. package/dist/components/arcgis-hub-ai-assistant/customElement.js +1 -1
  569. package/dist/components/arcgis-hub-entity-associations-card/customElement.js +1 -1
  570. package/dist/components/arcgis-hub-entity-metrics-card/customElement.js +1 -1
  571. package/dist/components/arcgis-hub-entity-status-card/customElement.js +1 -1
  572. package/dist/components/arcgis-hub-entity-view-layout/customElement.d.ts +4 -10
  573. package/dist/components/arcgis-hub-entity-view-layout/customElement.js +684 -665
  574. package/dist/components/arcgis-layout/customElement.js +1 -1
  575. package/dist/components/arcgis-layout-column/customElement.js +1 -1
  576. package/dist/components/arcgis-layout-container/customElement.d.ts +3 -3
  577. package/dist/components/arcgis-layout-container/customElement.js +135 -118
  578. package/dist/components/arcgis-layout-editor-toolbar/customElement.js +1 -1
  579. package/dist/components/arcgis-layout-node-controls/customElement.js +1 -1
  580. package/dist/components/arcgis-layout-node-editor/customElement.js +1 -1
  581. package/dist/components/arcgis-layout-node-editor/layout-node-editor-dynamic-tag/customElement.js +1 -1
  582. package/dist/components/arcgis-layout-node-wrapper/customElement.js +1 -1
  583. package/dist/components/arcgis-layout-row/customElement.js +1 -1
  584. package/dist/components/arcgis-layout-section/customElement.js +1 -1
  585. package/dist/components/arcgis-nav-card/customElement.js +1 -1
  586. package/dist/components/arcgis-text-card/customElement.js +1 -1
  587. package/dist/components/layouts/components/layout-node/customElement.js +1 -1
  588. package/dist/docs/api.json +1 -1
  589. package/dist/docs/docs.json +1 -1
  590. package/dist/docs/vscode.html-custom-data.json +1 -1
  591. package/dist/docs/web-types.json +1 -1
  592. package/dist/embed-config.js +1 -1
  593. package/dist/index.js +1 -1
  594. package/dist/loader.js +2 -2
  595. package/dist/types/lumina.d.ts +1 -1
  596. package/dist/types/preact.d.ts +1 -1
  597. package/dist/types/react.d.ts +1 -1
  598. package/dist/types/stencil.d.ts +1 -1
  599. package/package.json +3 -3
  600. package/dist/cdn/24LWDIWH.js +0 -2
  601. package/dist/cdn/24SIYWED.js +0 -2
  602. package/dist/cdn/25TYOHZS.js +0 -2
  603. package/dist/cdn/26WZVQ5A.js +0 -2
  604. package/dist/cdn/2B273BBV.js +0 -2
  605. package/dist/cdn/2B6D4MGZ.js +0 -2
  606. package/dist/cdn/2C25X57H.js +0 -2
  607. package/dist/cdn/2DD3P2GE.js +0 -2
  608. package/dist/cdn/2DPSKE3B.js +0 -2
  609. package/dist/cdn/2GV5ZJVP.js +0 -2
  610. package/dist/cdn/2GWRW6YG.js +0 -2
  611. package/dist/cdn/2KUCG2EL.js +0 -2
  612. package/dist/cdn/2NJPYBHN.js +0 -2
  613. package/dist/cdn/2PUMWMNI.js +0 -2
  614. package/dist/cdn/2SYN4GLC.js +0 -2
  615. package/dist/cdn/2TYW7KEN.js +0 -2
  616. package/dist/cdn/2W2UGJLH.js +0 -2
  617. package/dist/cdn/2WQEISGF.js +0 -2
  618. package/dist/cdn/2YBIU2GX.js +0 -2
  619. package/dist/cdn/377TGY4P.js +0 -2
  620. package/dist/cdn/37IO4VH2.js +0 -2
  621. package/dist/cdn/3BJZIUVK.js +0 -2
  622. package/dist/cdn/3C4D6M7U.js +0 -2
  623. package/dist/cdn/3CQWO3Y4.js +0 -2
  624. package/dist/cdn/3J67YE6G.js +0 -2
  625. package/dist/cdn/3LB3CYSI.js +0 -2
  626. package/dist/cdn/3MGFA2AN.js +0 -2
  627. package/dist/cdn/3PBVJ3CK.js +0 -2
  628. package/dist/cdn/3WN3ZWUP.js +0 -2
  629. package/dist/cdn/3ZHXUPIY.js +0 -2
  630. package/dist/cdn/3ZMBKQ2H.js +0 -2
  631. package/dist/cdn/42CWBYSM.js +0 -2
  632. package/dist/cdn/42NTJTRV.js +0 -2
  633. package/dist/cdn/44KVKET3.js +0 -2
  634. package/dist/cdn/46NFE3O2.js +0 -2
  635. package/dist/cdn/47ZOSUE6.js +0 -2
  636. package/dist/cdn/4BGLQILZ.js +0 -2
  637. package/dist/cdn/4BRNZPNW.js +0 -2
  638. package/dist/cdn/4DPYGRIJ.js +0 -2
  639. package/dist/cdn/4EWTHNEV.js +0 -2
  640. package/dist/cdn/4KSDWTJW.js +0 -2
  641. package/dist/cdn/4PQFUUUG.js +0 -2
  642. package/dist/cdn/4QDRXQMV.js +0 -2
  643. package/dist/cdn/4QEFMWHF.js +0 -2
  644. package/dist/cdn/4ST5ERWK.js +0 -2
  645. package/dist/cdn/4VZL3FH3.js +0 -2
  646. package/dist/cdn/4ZRQCNU2.js +0 -2
  647. package/dist/cdn/53V23CCM.js +0 -2
  648. package/dist/cdn/56OZPWMC.js +0 -2
  649. package/dist/cdn/5E5J7S54.js +0 -49
  650. package/dist/cdn/5FBDGDSL.js +0 -2
  651. package/dist/cdn/5GNQYAFV.js +0 -2
  652. package/dist/cdn/5H44EM56.js +0 -2
  653. package/dist/cdn/5IANXD5L.js +0 -2
  654. package/dist/cdn/5IZIKW4H.js +0 -2
  655. package/dist/cdn/5J32RGDU.js +0 -2
  656. package/dist/cdn/5KNXEVQR.js +0 -2
  657. package/dist/cdn/5LEP3IWV.js +0 -2
  658. package/dist/cdn/5LJT6UGG.js +0 -2
  659. package/dist/cdn/5NJXZL7F.js +0 -2
  660. package/dist/cdn/5NZ5IS7D.js +0 -2
  661. package/dist/cdn/5ORZPL23.js +0 -2
  662. package/dist/cdn/5SFG6XNQ.js +0 -2
  663. package/dist/cdn/5TU3W6P3.js +0 -2
  664. package/dist/cdn/5V53QYYF.js +0 -2
  665. package/dist/cdn/5VH76XSQ.js +0 -2
  666. package/dist/cdn/635V3Q2N.js +0 -2
  667. package/dist/cdn/65DPLBLL.js +0 -2
  668. package/dist/cdn/66HUEQL5.js +0 -2
  669. package/dist/cdn/6762DBBI.js +0 -2
  670. package/dist/cdn/6F3NCMF3.js +0 -2
  671. package/dist/cdn/6FPKPREN.js +0 -2
  672. package/dist/cdn/6GJMQB5A.js +0 -2
  673. package/dist/cdn/6IRHI22W.js +0 -9
  674. package/dist/cdn/6LDEVQEO.js +0 -2
  675. package/dist/cdn/6LZU7UCO.js +0 -2
  676. package/dist/cdn/6M5DP7YF.js +0 -2
  677. package/dist/cdn/6P7RNVD7.js +0 -2
  678. package/dist/cdn/6R5V3EGL.js +0 -2
  679. package/dist/cdn/6SPPONRY.js +0 -2
  680. package/dist/cdn/6SSTOHH4.js +0 -2
  681. package/dist/cdn/6TZEJNM7.js +0 -2
  682. package/dist/cdn/6VA6IJMP.js +0 -2
  683. package/dist/cdn/6VE4Q3FO.js +0 -2
  684. package/dist/cdn/6WUAXFQV.js +0 -2
  685. package/dist/cdn/6YRKIUVP.js +0 -2
  686. package/dist/cdn/72R6GI5S.js +0 -2
  687. package/dist/cdn/733IZVMO.js +0 -3
  688. package/dist/cdn/74ZD6Q4N.js +0 -2
  689. package/dist/cdn/75EIUMLW.js +0 -2
  690. package/dist/cdn/77NTOQZO.js +0 -2
  691. package/dist/cdn/7CZUONP3.js +0 -2
  692. package/dist/cdn/7GTUV67W.js +0 -2
  693. package/dist/cdn/7J2N6ILF.js +0 -2
  694. package/dist/cdn/7JWWAXIQ.js +0 -2
  695. package/dist/cdn/7LNSUWQP.js +0 -2
  696. package/dist/cdn/7MGY3JJQ.js +0 -2
  697. package/dist/cdn/7SELLYRO.js +0 -2
  698. package/dist/cdn/7SOJDYGK.js +0 -2
  699. package/dist/cdn/7UDDAIEI.js +0 -2
  700. package/dist/cdn/A36IL72A.js +0 -2
  701. package/dist/cdn/A6FB2POK.js +0 -2
  702. package/dist/cdn/ACG7WDUT.js +0 -2
  703. package/dist/cdn/AE6NCYFW.js +0 -2
  704. package/dist/cdn/AEPE3IDB.js +0 -2
  705. package/dist/cdn/AG22T6F4.js +0 -2
  706. package/dist/cdn/AHZOMFUT.js +0 -2
  707. package/dist/cdn/AJKLRRS4.js +0 -2
  708. package/dist/cdn/AJOXWMDO.js +0 -2
  709. package/dist/cdn/AKTKIQXI.js +0 -2
  710. package/dist/cdn/AL7OLCOX.js +0 -2
  711. package/dist/cdn/ALUW2GDJ.js +0 -2
  712. package/dist/cdn/AM4QVJ44.js +0 -2
  713. package/dist/cdn/AOSKEGOL.js +0 -2
  714. package/dist/cdn/ARGXJJIR.js +0 -2
  715. package/dist/cdn/AUG7ESKO.js +0 -2
  716. package/dist/cdn/AYFB34A7.js +0 -2
  717. package/dist/cdn/AYK4IBDR.js +0 -2
  718. package/dist/cdn/AZ3MRUIU.js +0 -2
  719. package/dist/cdn/AZKQPOHN.js +0 -2
  720. package/dist/cdn/B5FN4TVW.js +0 -2
  721. package/dist/cdn/B6CP7FIT.js +0 -2
  722. package/dist/cdn/B7DFSP27.js +0 -2
  723. package/dist/cdn/BASDWRBA.js +0 -2
  724. package/dist/cdn/BCAWS3NJ.js +0 -2
  725. package/dist/cdn/BFNODBIF.js +0 -2
  726. package/dist/cdn/BHYFMWFH.js +0 -10
  727. package/dist/cdn/BMRPHSYL.js +0 -2
  728. package/dist/cdn/BPSQ3CGL.js +0 -2
  729. package/dist/cdn/BU6RNCBS.js +0 -2
  730. package/dist/cdn/BZKD5DHH.js +0 -2
  731. package/dist/cdn/C27C7ZCS.js +0 -101
  732. package/dist/cdn/C3RZCB5I.js +0 -2
  733. package/dist/cdn/CBIG4EMI.js +0 -2
  734. package/dist/cdn/CCX2K4AC.js +0 -2
  735. package/dist/cdn/CCXXOCUE.js +0 -2
  736. package/dist/cdn/CD6LKEQL.js +0 -2
  737. package/dist/cdn/CD736SN3.js +0 -2
  738. package/dist/cdn/CH532URJ.js +0 -2
  739. package/dist/cdn/CHXKFI5R.js +0 -2
  740. package/dist/cdn/CKOFCDE3.js +0 -2
  741. package/dist/cdn/CNZGOCEQ.js +0 -2
  742. package/dist/cdn/CQ5TAYO5.js +0 -2
  743. package/dist/cdn/CU2TSBCT.js +0 -2
  744. package/dist/cdn/CWML23HX.js +0 -2
  745. package/dist/cdn/CXKNNQK7.js +0 -2
  746. package/dist/cdn/D2RDQCR6.js +0 -2
  747. package/dist/cdn/D4NLBWYJ.js +0 -2
  748. package/dist/cdn/D4XKOLDN.js +0 -2
  749. package/dist/cdn/DAN7ZYNO.js +0 -2
  750. package/dist/cdn/DBFWM3C6.js +0 -2
  751. package/dist/cdn/DCLYV35L.js +0 -2
  752. package/dist/cdn/DCXY72PD.js +0 -2
  753. package/dist/cdn/DD6UFQOQ.js +0 -2
  754. package/dist/cdn/DELUZ744.js +0 -2
  755. package/dist/cdn/DFSIBYHN.js +0 -2
  756. package/dist/cdn/DH2QF3YA.js +0 -2
  757. package/dist/cdn/DIQDWGSW.js +0 -2
  758. package/dist/cdn/DJ3H7LZE.js +0 -2
  759. package/dist/cdn/DKMYTCOT.js +0 -2
  760. package/dist/cdn/DLGNRZAS.js +0 -2
  761. package/dist/cdn/DMWDEJZX.js +0 -2
  762. package/dist/cdn/DOER2ALA.js +0 -2
  763. package/dist/cdn/DOOSTAKT.js +0 -2
  764. package/dist/cdn/DPDYPCY7.js +0 -2
  765. package/dist/cdn/DSFT4TPF.js +0 -2
  766. package/dist/cdn/DSULDCNU.js +0 -2
  767. package/dist/cdn/DSUO5O7O.js +0 -2
  768. package/dist/cdn/DYGPQ2O2.js +0 -2
  769. package/dist/cdn/DZCEYSVA.js +0 -2
  770. package/dist/cdn/DZSQQ3ZC.js +0 -2
  771. package/dist/cdn/E2O5UVKQ.js +0 -2
  772. package/dist/cdn/E2RL5I2B.js +0 -2
  773. package/dist/cdn/E2TALV72.js +0 -2
  774. package/dist/cdn/E6QW4CZ3.js +0 -3
  775. package/dist/cdn/E7RQDZEF.js +0 -2
  776. package/dist/cdn/EAB7DUGA.js +0 -2
  777. package/dist/cdn/EIMMNTTE.js +0 -2
  778. package/dist/cdn/EOF2UXV6.js +0 -2
  779. package/dist/cdn/EONYH67A.js +0 -2
  780. package/dist/cdn/EOUHIRVU.js +0 -2
  781. package/dist/cdn/ERN7BZFG.js +0 -2
  782. package/dist/cdn/ETC47ZTE.js +0 -2
  783. package/dist/cdn/ETZTDOJJ.js +0 -2
  784. package/dist/cdn/EXVLM3LY.js +0 -2
  785. package/dist/cdn/F4PVRAMX.js +0 -2
  786. package/dist/cdn/F56NG6UR.js +0 -2
  787. package/dist/cdn/FCTOGFDS.js +0 -7
  788. package/dist/cdn/FDDXGLRF.js +0 -2
  789. package/dist/cdn/FFNG2BKG.js +0 -2
  790. package/dist/cdn/FJLYCKFY.js +0 -2
  791. package/dist/cdn/FKDTJXGG.js +0 -2
  792. package/dist/cdn/FLC2JTMP.js +0 -2
  793. package/dist/cdn/FM3HYPTZ.js +0 -2
  794. package/dist/cdn/FMBEHWFY.js +0 -2
  795. package/dist/cdn/FMSRANRD.js +0 -2
  796. package/dist/cdn/FOYZAUE2.js +0 -2
  797. package/dist/cdn/FPFWOG6D.js +0 -2
  798. package/dist/cdn/FQQX35FA.js +0 -2
  799. package/dist/cdn/FS2LVAOJ.js +0 -2
  800. package/dist/cdn/FY3KPATI.js +0 -2
  801. package/dist/cdn/FZ7ZK37I.js +0 -2
  802. package/dist/cdn/FZCPWCBD.js +0 -2
  803. package/dist/cdn/FZNKGW4A.js +0 -2
  804. package/dist/cdn/G22UXAIP.js +0 -2
  805. package/dist/cdn/G4YSKUJY.js +0 -2
  806. package/dist/cdn/GEQLOXC6.js +0 -2
  807. package/dist/cdn/GEUS66D2.js +0 -2
  808. package/dist/cdn/GI572WEZ.js +0 -2
  809. package/dist/cdn/GJINUBO7.js +0 -2
  810. package/dist/cdn/GJIZO3BY.js +0 -2
  811. package/dist/cdn/GJRBKC6D.js +0 -2
  812. package/dist/cdn/GL6QTMXS.js +0 -2
  813. package/dist/cdn/GLK5OMGB.js +0 -2
  814. package/dist/cdn/GLKCCCVQ.js +0 -2
  815. package/dist/cdn/GMWTEYRI.js +0 -2
  816. package/dist/cdn/GQUZD452.js +0 -2
  817. package/dist/cdn/GRUKKSRF.js +0 -2
  818. package/dist/cdn/GS3XIBLN.js +0 -2
  819. package/dist/cdn/GSGLH4CM.js +0 -2
  820. package/dist/cdn/GVF26EON.js +0 -2
  821. package/dist/cdn/GVWJBDZW.js +0 -2
  822. package/dist/cdn/GZOH7TH2.js +0 -2
  823. package/dist/cdn/H2EOGBZS.js +0 -2
  824. package/dist/cdn/H2V2RZ6M.js +0 -2
  825. package/dist/cdn/H3CSIYXV.js +0 -2
  826. package/dist/cdn/H5FX7Z53.js +0 -2
  827. package/dist/cdn/HA3MYKR7.js +0 -2
  828. package/dist/cdn/HE3DHDMO.js +0 -2
  829. package/dist/cdn/HEPYE6RX.js +0 -2
  830. package/dist/cdn/HETF33XY.js +0 -2
  831. package/dist/cdn/HF75SET4.js +0 -2
  832. package/dist/cdn/HH5PXKUQ.js +0 -2
  833. package/dist/cdn/HH7X5PFK.js +0 -2
  834. package/dist/cdn/HIJBZFJC.js +0 -2
  835. package/dist/cdn/HINK5GJN.js +0 -2
  836. package/dist/cdn/HITR5JF7.js +0 -2
  837. package/dist/cdn/HKS652OZ.js +0 -2
  838. package/dist/cdn/HM2SQ34E.js +0 -2
  839. package/dist/cdn/HPOK6EKK.js +0 -2
  840. package/dist/cdn/HSFPILSC.js +0 -2
  841. package/dist/cdn/HSYH2RF2.js +0 -2
  842. package/dist/cdn/HTQGWSTE.js +0 -2
  843. package/dist/cdn/HTY7ODQW.js +0 -2
  844. package/dist/cdn/HTYDCXX6.js +0 -2
  845. package/dist/cdn/HUVYHMSC.js +0 -2
  846. package/dist/cdn/HUZVX2LX.js +0 -2
  847. package/dist/cdn/HV466M4A.js +0 -2
  848. package/dist/cdn/HWUCFNAD.js +0 -2
  849. package/dist/cdn/HYUPDCJS.js +0 -2
  850. package/dist/cdn/HZHPBMYE.js +0 -2
  851. package/dist/cdn/I2CC4Z7B.js +0 -2
  852. package/dist/cdn/I3DM7WYF.js +0 -2
  853. package/dist/cdn/I3GKS5LC.js +0 -2
  854. package/dist/cdn/I3LGHXIN.js +0 -2
  855. package/dist/cdn/I6XITM7G.js +0 -14
  856. package/dist/cdn/I6ZBOCIY.js +0 -2
  857. package/dist/cdn/ICFGB4YA.js +0 -2
  858. package/dist/cdn/IDHZRKXF.js +0 -2
  859. package/dist/cdn/IE3N5HKQ.js +0 -2
  860. package/dist/cdn/IEDSJLNB.js +0 -2
  861. package/dist/cdn/IGSOBBXK.js +0 -2
  862. package/dist/cdn/II3OUQDN.js +0 -2
  863. package/dist/cdn/IIAM2J7I.js +0 -2
  864. package/dist/cdn/IKDCKYJ5.js +0 -2
  865. package/dist/cdn/ILLXAWCL.js +0 -2
  866. package/dist/cdn/IONZ3SDQ.js +0 -2
  867. package/dist/cdn/IS7DQMPO.js +0 -2
  868. package/dist/cdn/ISFEEC67.js +0 -2
  869. package/dist/cdn/ISLB62MU.js +0 -2
  870. package/dist/cdn/IU5YH2S4.js +0 -2
  871. package/dist/cdn/IXINH2FU.js +0 -2
  872. package/dist/cdn/IZ43EVPH.js +0 -2
  873. package/dist/cdn/J2P53GWU.js +0 -2
  874. package/dist/cdn/J4D2HORK.js +0 -2
  875. package/dist/cdn/J7JW6ADT.js +0 -2
  876. package/dist/cdn/JASFUUT6.js +0 -2
  877. package/dist/cdn/JBND67XM.js +0 -2
  878. package/dist/cdn/JG22JJ4C.js +0 -2
  879. package/dist/cdn/JI5AIZ2W.js +0 -2
  880. package/dist/cdn/JSOZV4HA.js +0 -2
  881. package/dist/cdn/JTE4CLWD.js +0 -2
  882. package/dist/cdn/JWQCCXL5.js +0 -2
  883. package/dist/cdn/JXTLVDZ3.js +0 -2
  884. package/dist/cdn/JZB5X2MB.js +0 -2
  885. package/dist/cdn/K2DF2MZK.js +0 -2
  886. package/dist/cdn/K33RVKQD.js +0 -2
  887. package/dist/cdn/K3HMF5GC.js +0 -2
  888. package/dist/cdn/K4JVFZDS.js +0 -2
  889. package/dist/cdn/K4VVZ2OR.js +0 -2
  890. package/dist/cdn/K5O2OVOP.js +0 -2
  891. package/dist/cdn/K672BF4Z.js +0 -2
  892. package/dist/cdn/KA2RH2XA.js +0 -2
  893. package/dist/cdn/KBPJADC7.js +0 -57
  894. package/dist/cdn/KBYHLIWL.js +0 -2
  895. package/dist/cdn/KI2RNLIW.js +0 -2
  896. package/dist/cdn/KI6QCKOX.js +0 -2
  897. package/dist/cdn/KIEYQKES.js +0 -2
  898. package/dist/cdn/KKON6KFT.js +0 -2
  899. package/dist/cdn/KNZCVIQZ.js +0 -2
  900. package/dist/cdn/KQGFPGAG.js +0 -2
  901. package/dist/cdn/KUB4GMLQ.js +0 -2
  902. package/dist/cdn/KVTXAGQO.js +0 -2
  903. package/dist/cdn/KXGSUPO6.js +0 -2
  904. package/dist/cdn/KZOKH7DH.js +0 -2
  905. package/dist/cdn/L3H4QXUA.js +0 -2
  906. package/dist/cdn/L4D75PLE.js +0 -50
  907. package/dist/cdn/L4XSNBXO.js +0 -2
  908. package/dist/cdn/L6IQ6LTS.js +0 -2
  909. package/dist/cdn/LA2OL44Q.js +0 -2
  910. package/dist/cdn/LDJN5446.js +0 -2
  911. package/dist/cdn/LEVMADAS.js +0 -2
  912. package/dist/cdn/LG3VZTHJ.js +0 -2
  913. package/dist/cdn/LG5BO6HC.js +0 -2
  914. package/dist/cdn/LK454DSU.js +0 -2
  915. package/dist/cdn/LLGS7DKU.js +0 -2
  916. package/dist/cdn/LLX4O2ZL.js +0 -2
  917. package/dist/cdn/LNVYZ53G.js +0 -2
  918. package/dist/cdn/LPMAR4KQ.js +0 -2
  919. package/dist/cdn/LQ4GVKBA.js +0 -2
  920. package/dist/cdn/LVCMKKG7.js +0 -2
  921. package/dist/cdn/LY5D6DDL.js +0 -2
  922. package/dist/cdn/M5TH54YS.js +0 -3
  923. package/dist/cdn/MAKNOF2E.js +0 -2
  924. package/dist/cdn/MBDZ6CTU.js +0 -2
  925. package/dist/cdn/MBJNG2TV.js +0 -2
  926. package/dist/cdn/MCXCKUVJ.js +0 -2
  927. package/dist/cdn/ME6P5KK5.js +0 -2
  928. package/dist/cdn/MGC3EC3F.js +0 -2
  929. package/dist/cdn/MIGVC3YS.js +0 -2
  930. package/dist/cdn/MILBEJO3.js +0 -2
  931. package/dist/cdn/MLV6BSL7.js +0 -2
  932. package/dist/cdn/MPHKEKH4.js +0 -2
  933. package/dist/cdn/MS3RNOP5.js +0 -2
  934. package/dist/cdn/MT4BUGHF.js +0 -2
  935. package/dist/cdn/MUJK2PAB.js +0 -10
  936. package/dist/cdn/MUN2QI43.js +0 -2
  937. package/dist/cdn/MUVLHU4H.js +0 -2
  938. package/dist/cdn/MWFTBYF7.js +0 -22
  939. package/dist/cdn/MYXIS5RQ.js +0 -2
  940. package/dist/cdn/N2SCAU7I.js +0 -2
  941. package/dist/cdn/N6GGGJDB.js +0 -2
  942. package/dist/cdn/N6VT6AJI.js +0 -2
  943. package/dist/cdn/N7CJXIRA.js +0 -2
  944. package/dist/cdn/NABNAFFZ.js +0 -2
  945. package/dist/cdn/NC3HXMKH.js +0 -2
  946. package/dist/cdn/NCTESU3D.js +0 -2
  947. package/dist/cdn/NE7SMAEP.js +0 -2
  948. package/dist/cdn/NFD3QJ6J.js +0 -2
  949. package/dist/cdn/NFY3ASEY.js +0 -2
  950. package/dist/cdn/NPWIO5CS.js +0 -2
  951. package/dist/cdn/NR4ANSZX.js +0 -2
  952. package/dist/cdn/NSMWYS6Z.js +0 -2
  953. package/dist/cdn/NUH2IEG5.js +0 -2
  954. package/dist/cdn/NW2YTW26.js +0 -2
  955. package/dist/cdn/NYFFZ52T.js +0 -2
  956. package/dist/cdn/NZG4KZHV.js +0 -2
  957. package/dist/cdn/O247GUBF.js +0 -2
  958. package/dist/cdn/OAFVLHOP.js +0 -2
  959. package/dist/cdn/OB5GUG4Q.js +0 -2
  960. package/dist/cdn/OF3K6ILR.js +0 -2
  961. package/dist/cdn/OGP4ICMS.js +0 -2
  962. package/dist/cdn/OHGAZBGC.js +0 -2
  963. package/dist/cdn/OHHSI5BP.js +0 -2
  964. package/dist/cdn/OHRPOEMD.js +0 -2
  965. package/dist/cdn/OLBIGEZV.js +0 -2
  966. package/dist/cdn/OQNAOTWQ.js +0 -2
  967. package/dist/cdn/OQOFL4GS.js +0 -2
  968. package/dist/cdn/OYSFOPFK.js +0 -2
  969. package/dist/cdn/OZDJZBGR.js +0 -2
  970. package/dist/cdn/P32YXLHN.js +0 -2
  971. package/dist/cdn/P4SQ46RJ.js +0 -2
  972. package/dist/cdn/P5C64FCP.js +0 -2
  973. package/dist/cdn/P7D42LBQ.js +0 -2
  974. package/dist/cdn/PJFE4OSA.js +0 -2
  975. package/dist/cdn/PM6CSPJD.js +0 -2
  976. package/dist/cdn/PMG4LRKI.js +0 -2
  977. package/dist/cdn/PTAQKJEW.js +0 -2
  978. package/dist/cdn/PTT753DR.js +0 -2
  979. package/dist/cdn/PUDNBWDK.js +0 -2
  980. package/dist/cdn/PVUKIX2R.js +0 -2
  981. package/dist/cdn/PWESAKVV.js +0 -6
  982. package/dist/cdn/PXIEZUFC.js +0 -2
  983. package/dist/cdn/Q4GV7FFJ.js +0 -2
  984. package/dist/cdn/Q5A7L43T.js +0 -2
  985. package/dist/cdn/Q5LOYC24.js +0 -2
  986. package/dist/cdn/QA5B2Y37.js +0 -2
  987. package/dist/cdn/QFSHQXGM.js +0 -2
  988. package/dist/cdn/QK2OPJGK.js +0 -2
  989. package/dist/cdn/QK4D6OMO.js +0 -2
  990. package/dist/cdn/QMYN3FVH.js +0 -2
  991. package/dist/cdn/QQRKMUCB.js +0 -2
  992. package/dist/cdn/QQS6Z4FZ.js +0 -5468
  993. package/dist/cdn/QTIJHBJB.js +0 -2
  994. package/dist/cdn/QTKEVJG2.js +0 -2
  995. package/dist/cdn/QVFTGLEP.js +0 -2
  996. package/dist/cdn/QW4LROIM.js +0 -2
  997. package/dist/cdn/QWOHM2SY.js +0 -2
  998. package/dist/cdn/QYHIY3ME.js +0 -2
  999. package/dist/cdn/QYIYNECI.js +0 -2
  1000. package/dist/cdn/R4PTOUBU.js +0 -2
  1001. package/dist/cdn/R7CH3OBE.js +0 -2
  1002. package/dist/cdn/R7OW7BC6.js +0 -2
  1003. package/dist/cdn/RBHMRIVU.js +0 -2
  1004. package/dist/cdn/RGKBSVQD.js +0 -2
  1005. package/dist/cdn/RGTW5L2M.js +0 -2
  1006. package/dist/cdn/RL2IUUBA.js +0 -2
  1007. package/dist/cdn/RLTWZY2Y.js +0 -2
  1008. package/dist/cdn/ROWHAGC5.js +0 -2
  1009. package/dist/cdn/RPCTY5PP.js +0 -2
  1010. package/dist/cdn/RPW6M2RS.js +0 -2
  1011. package/dist/cdn/RTTSVKW2.js +0 -2
  1012. package/dist/cdn/RTUW32PG.js +0 -2
  1013. package/dist/cdn/RXVVMKTZ.js +0 -2
  1014. package/dist/cdn/S2TL4ARK.js +0 -2
  1015. package/dist/cdn/S57GAUCL.js +0 -3
  1016. package/dist/cdn/S6DY4JGI.js +0 -2
  1017. package/dist/cdn/S6XQNPGY.js +0 -2
  1018. package/dist/cdn/SCTDVE2P.js +0 -2
  1019. package/dist/cdn/SD326B2E.js +0 -2
  1020. package/dist/cdn/SDXNFZ6Q.js +0 -2
  1021. package/dist/cdn/SDZ7AXWI.js +0 -2
  1022. package/dist/cdn/SEZVVM5Z.js +0 -2
  1023. package/dist/cdn/SGM4YRBH.js +0 -2
  1024. package/dist/cdn/SNSHV52T.js +0 -2
  1025. package/dist/cdn/SOGZ7ZLI.js +0 -2
  1026. package/dist/cdn/SR3IHWFL.js +0 -2
  1027. package/dist/cdn/SVAOM6PB.js +0 -2
  1028. package/dist/cdn/SZJPVJS6.js +0 -2
  1029. package/dist/cdn/T3M236GE.js +0 -2
  1030. package/dist/cdn/TARH5FST.js +0 -2
  1031. package/dist/cdn/TBD7PFFA.js +0 -2
  1032. package/dist/cdn/TC2QNSUN.js +0 -2
  1033. package/dist/cdn/TCBYBEBE.js +0 -2
  1034. package/dist/cdn/TCCZ5S2A.js +0 -2
  1035. package/dist/cdn/TFMTKJFO.js +0 -2
  1036. package/dist/cdn/TGK6L2ZE.js +0 -2
  1037. package/dist/cdn/TH5ZUUV3.js +0 -2
  1038. package/dist/cdn/THLIDOGM.js +0 -2
  1039. package/dist/cdn/TJLG5Q5Y.js +0 -2
  1040. package/dist/cdn/TJMJIAXA.js +0 -2
  1041. package/dist/cdn/TO5XR7VA.js +0 -2
  1042. package/dist/cdn/TQ5M7ABM.js +0 -2
  1043. package/dist/cdn/TVZTOZL7.js +0 -2
  1044. package/dist/cdn/TXQQV57A.js +0 -2
  1045. package/dist/cdn/U2H7HOIC.js +0 -2
  1046. package/dist/cdn/U7SPPU37.js +0 -2
  1047. package/dist/cdn/UA2PWQXW.js +0 -2
  1048. package/dist/cdn/UADY5XO7.js +0 -2
  1049. package/dist/cdn/UC7PCLBG.js +0 -2
  1050. package/dist/cdn/UCBTNECN.js +0 -2
  1051. package/dist/cdn/UCNRE4DW.js +0 -23
  1052. package/dist/cdn/UCUSWPVC.js +0 -2
  1053. package/dist/cdn/UEMRCQKF.js +0 -2
  1054. package/dist/cdn/UGI23J3C.js +0 -2
  1055. package/dist/cdn/UGPEDWIJ.js +0 -4
  1056. package/dist/cdn/UJKN7G7W.js +0 -2
  1057. package/dist/cdn/UJZ32HDH.js +0 -2
  1058. package/dist/cdn/UMST4RFY.js +0 -2
  1059. package/dist/cdn/UN6MRXZW.js +0 -2
  1060. package/dist/cdn/UOAJQR2X.js +0 -2
  1061. package/dist/cdn/UR5INQGU.js +0 -2
  1062. package/dist/cdn/USNX342T.js +0 -2
  1063. package/dist/cdn/UTQMJRMF.js +0 -2
  1064. package/dist/cdn/UUGPYRMY.js +0 -2
  1065. package/dist/cdn/UWA2UA4S.js +0 -2
  1066. package/dist/cdn/UXDEAKSF.js +0 -2
  1067. package/dist/cdn/UYYBCR75.js +0 -2
  1068. package/dist/cdn/V33D2RRV.js +0 -2
  1069. package/dist/cdn/V3U3RRL7.js +0 -2
  1070. package/dist/cdn/V6SKJ43C.js +0 -2
  1071. package/dist/cdn/V7H25Z5U.js +0 -2
  1072. package/dist/cdn/V7PXTC6I.js +0 -2
  1073. package/dist/cdn/VANWWSL3.js +0 -2
  1074. package/dist/cdn/VCGND4NR.js +0 -2
  1075. package/dist/cdn/VFVNN33U.js +0 -2
  1076. package/dist/cdn/VHIRPM4L.js +0 -2
  1077. package/dist/cdn/VIC2IR7N.js +0 -2
  1078. package/dist/cdn/VJ4I63OO.js +0 -2
  1079. package/dist/cdn/VPJ4NGJ5.js +0 -2
  1080. package/dist/cdn/VQ6FS65F.js +0 -2
  1081. package/dist/cdn/VT5NU2WH.js +0 -2
  1082. package/dist/cdn/VXJI546E.js +0 -2
  1083. package/dist/cdn/W2VLXDRD.js +0 -39
  1084. package/dist/cdn/W37GIL2C.js +0 -2
  1085. package/dist/cdn/W57XOSMI.js +0 -2
  1086. package/dist/cdn/W6BMVYH7.js +0 -2
  1087. package/dist/cdn/W6GBJ4BL.js +0 -2
  1088. package/dist/cdn/WBUC7HJI.js +0 -2
  1089. package/dist/cdn/WEJLZVU6.js +0 -2
  1090. package/dist/cdn/WFV47RA4.js +0 -4
  1091. package/dist/cdn/WFWIIWQC.js +0 -2
  1092. package/dist/cdn/WGUAKT5I.js +0 -2
  1093. package/dist/cdn/WJED2YG7.js +0 -2
  1094. package/dist/cdn/WJFIZ6DL.js +0 -2
  1095. package/dist/cdn/WL6CGZLR.js +0 -2
  1096. package/dist/cdn/WMNWHF5U.js +0 -2
  1097. package/dist/cdn/WN7GK2WG.js +0 -2
  1098. package/dist/cdn/WPADWRCH.js +0 -2
  1099. package/dist/cdn/WTFAANTX.js +0 -2
  1100. package/dist/cdn/WTJOWA2D.js +0 -2
  1101. package/dist/cdn/WTTSGDHM.js +0 -2
  1102. package/dist/cdn/WU3HYV7B.js +0 -2
  1103. package/dist/cdn/WVZNJMRA.js +0 -2
  1104. package/dist/cdn/X5GRVXSY.js +0 -2
  1105. package/dist/cdn/XGOWY36W.js +0 -2
  1106. package/dist/cdn/XI72UBIK.js +0 -2
  1107. package/dist/cdn/XIWVNNXH.js +0 -2
  1108. package/dist/cdn/XKQTJFVJ.js +0 -2
  1109. package/dist/cdn/XKUKAFLE.js +0 -2
  1110. package/dist/cdn/XLV625TR.js +0 -2
  1111. package/dist/cdn/XN55PVRJ.js +0 -2
  1112. package/dist/cdn/XP6ZXTST.js +0 -2
  1113. package/dist/cdn/XRBZRHR3.js +0 -2
  1114. package/dist/cdn/XX3BCLUI.js +0 -2
  1115. package/dist/cdn/XYUMPZMT.js +0 -2
  1116. package/dist/cdn/XZDHV5BV.js +0 -2
  1117. package/dist/cdn/Y7N6UKCC.js +0 -2
  1118. package/dist/cdn/YBDFIKTN.js +0 -2
  1119. package/dist/cdn/YCEXTCZD.js +0 -2
  1120. package/dist/cdn/YDFCEZES.js +0 -2
  1121. package/dist/cdn/YDWT2GP5.js +0 -2
  1122. package/dist/cdn/YEWX4IVK.js +0 -6
  1123. package/dist/cdn/YHO7A5RX.js +0 -2
  1124. package/dist/cdn/YKYTSHP4.js +0 -2
  1125. package/dist/cdn/YLRR2XFD.js +0 -2
  1126. package/dist/cdn/YMX7NNEY.js +0 -3
  1127. package/dist/cdn/YQMHCSXF.js +0 -2
  1128. package/dist/cdn/YRCBIK2Y.js +0 -2
  1129. package/dist/cdn/YTAOXT7K.js +0 -4
  1130. package/dist/cdn/YVXHYFKJ.js +0 -2
  1131. package/dist/cdn/YWXDWRYJ.js +0 -2
  1132. package/dist/cdn/Z2Z5RGR2.js +0 -2
  1133. package/dist/cdn/Z3TOG5XS.js +0 -2
  1134. package/dist/cdn/Z756THCU.js +0 -2
  1135. package/dist/cdn/Z7Q6BWC3.js +0 -2
  1136. package/dist/cdn/ZC36M5LD.js +0 -2
  1137. package/dist/cdn/ZCQJ26PE.js +0 -2
  1138. package/dist/cdn/ZFP6AZG7.js +0 -2
  1139. package/dist/cdn/ZKXOPB4E.js +0 -2
  1140. package/dist/cdn/ZM3EAORZ.js +0 -2
  1141. package/dist/cdn/ZNEDALBA.js +0 -2
  1142. package/dist/cdn/ZQPTNYU6.js +0 -2
  1143. package/dist/cdn/ZR5F7KBC.js +0 -2
  1144. package/dist/cdn/ZT74OVX5.js +0 -2
  1145. package/dist/cdn/ZUFDLSS7.js +0 -2
  1146. package/dist/cdn/ZVGAVULD.js +0 -2
  1147. package/dist/cdn/ZX3NL6MQ.js +0 -2
  1148. package/dist/cdn/ZXTOK4AF.js +0 -2
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as e}from"./U2H7HOIC.js";function n(r,o,s,i=!1){Array.isArray(r)&&(r=r.join(".")),e(s,r,o,i)}export{n as a};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as o,b as l}from"./BASDWRBA.js";import"./DJ3H7LZE.js";import{a as h}from"./2B273BBV.js";import{a}from"./37IO4VH2.js";import"./ZM3EAORZ.js";import"./YCEXTCZD.js";import"./5V53QYYF.js";import"./A36IL72A.js";import"./P7D42LBQ.js";import"./ZFP6AZG7.js";import"./NE7SMAEP.js";import"./2B6D4MGZ.js";import"./HEPYE6RX.js";import"./7GTUV67W.js";import"./USNX342T.js";import{b as i,c,d,e as r,i as u}from"./DKMYTCOT.js";import"./IONZ3SDQ.js";var k=":not(.workspace-link__text){--calcite-link-blue-underline:transparent;--calcite-color-text-link:transparent}::slotted(*){height:100%}",m=k,f=class{constructor(t){u(this,t),this.arcgisHubWorkspaceLinkClicked=r(this,"arcgisHubWorkspaceLinkClicked",7),this.hubTelemetry=r(this,"hubTelemetry",7),this.pane=void 0,this.href=void 0,this.relativeToOrigin=void 0,this.telemetry={},this.iconStart=void 0,this.iconEnd=void 0,this.target=void 0,this.searchParams=void 0,this.isText=!0,this.isButton=!1,a(this,"handleClick","handleKeyDown","handleSlotChange")}get _href(){let t=this.href;return this.pane&&(t=l(this.pane,this.searchParams)),this.href&&!this.href.startsWith("http")&&this.relativeToOrigin?`${window.location.origin}${t}`:t}handleSlotChange(t){var n,e;let s=h(t);if(this.isText=!s.length,((e=(n=s[0])===null||n===void 0?void 0:n.tagName)===null||e===void 0?void 0:e.toLowerCase())==="calcite-button"){this.isButton=!0;let p=s[0];p.href=this._href}}handleClick(t){let e=t.currentTarget.getAttribute("data-value"),s=e?{clickEvent:t,pane:e}:{clickEvent:t,href:this._href};this.arcgisHubWorkspaceLinkClicked.emit(s),o({pane:this.pane,href:this._href,hubTelemetry:this.hubTelemetry,telemetry:this.telemetry})}handleKeyDown(t){t.key==="enter"&&this.handleClick(t)}render(){return i(c,{key:"3ca1a85338aac4dc27ab411f3260ecb1a77f6ff3"},this.isButton?i("div",{"data-value":this.pane,onClick:this.handleClick,onKeyDown:this.handleKeyDown},i("slot",null)):i("calcite-link",{class:{"workspace-link__text":this.isText},"data-value":this.pane,href:this._href,iconEnd:this.iconEnd,iconStart:this.iconStart,onClick:this.handleClick,target:this.target},i("slot",{onSlotchange:this.handleSlotChange})))}get element(){return d(this)}};f.style=m;export{f as arcgis_hub_workspace_link};
@@ -1,22 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as H,b as M}from"./CCX2K4AC.js";import{a as z}from"./NW2YTW26.js";import{a as V}from"./ETC47ZTE.js";import{a as O,b as U}from"./QK2OPJGK.js";import{a as N}from"./BFNODBIF.js";import{a as v,b as D,c as W}from"./BPSQ3CGL.js";import{a as K}from"./SCTDVE2P.js";import{a as A}from"./VPJ4NGJ5.js";import{a as q}from"./2GWRW6YG.js";import{e as L}from"./WL6CGZLR.js";import{j}from"./53V23CCM.js";import{a as I}from"./HITR5JF7.js";import{b as $}from"./UJKN7G7W.js";import{g as b,x as C}from"./K3HMF5GC.js";import{e as F}from"./NPWIO5CS.js";import{a as P}from"./B6CP7FIT.js";import{a as l}from"./XP6ZXTST.js";import{f as S}from"./BHYFMWFH.js";import{b as G}from"./47ZOSUE6.js";import{a as f}from"./SD326B2E.js";import{b as E}from"./H2V2RZ6M.js";import{g as T}from"./KUB4GMLQ.js";import{h as R}from"./FZ7ZK37I.js";import{c as x}from"./A36IL72A.js";import{a as w}from"./P7D42LBQ.js";import{a as y,g as k,j as _}from"./HEPYE6RX.js";async function ee(i,e,t,s,r,a=""){try{if(!(await v(Object.assign({id:i,owner:e,resource:t,name:s,prefix:a},r))).success)throw new l("Set Item Featured Image","Unknown error setting featured image.");let c=f(r.portal);return a&&(a=`${a}/`),`${c}/content/items/${i}/resources/${a}${s}`}catch(n){throw n instanceof Error?new l("Set Item Featured Image",n.message,n):new l("Set Item Featured Image","Unknown error setting featured image.")}}async function te(i,e,t){let{portal:s}=t,r=`${s}/content/users/${e}/items/${i}/deleteThumbnail`;return R(r,t)}async function se(i,e,t,s,r){let a=Object.assign({item:{id:i},owner:r,params:{thumbnail:e,fileName:t},filename:t},s);try{if(!(await F(a)).success)throw new l("Set Project Thumbnail","Unknown error setting thumbnail.")}catch(n){throw n instanceof Error?new l("Set Project Thumbnail",n.message,n):new l("Set Project Thumbnail","Unknown error setting thumbnail.")}}var B="featuredImage.png",J=class{constructor(e,t){this.isDestroyed=!1,this.thumbnailCache=null,this.context=t,this.entity=e}checkPermission(e){return x(e,this.context,this.entity)}getPermissionPolicies(e){return(this.entity.permissions||[]).filter(s=>s.permission===e)}addPermissionPolicy(e){this.entity.permissions=H(this.entity.permissions,e)}removePermissionPolicy(e,t){this.entity.permissions=M(this.entity.permissions,e,t)}get id(){return this.entity.id}get owner(){return this.entity.owner}toJson(){if(this.isDestroyed)throw new Error("Entity is already destroyed.");return y(this.entity)}get canEdit(){return this.entity.canEdit}get canDelete(){return this.entity.canDelete}get orgId(){return this.entity.orgId}async shareWithGroup(e){if(!this.context.currentUser)throw new l("Share Item With Group","Cannot share item with group when no user is logged in.");await U(this.entity.id,[e],this.context.requestOptions,this.entity.owner)}async shareWithGroups(e){await U(this.entity.id,e,this.context.requestOptions,this.entity.owner)}async unshareWithGroup(e){await O(this.entity.id,[e],this.context.requestOptions,this.entity.owner)}async unshareWithGroups(e){await O(this.entity.id,e,this.context.requestOptions,this.entity.owner)}async setAccess(e){await N({id:this.entity.id,access:e,owner:this.entity.owner,authentication:this.context.session}),this.entity.access=e}async getFollowersGroup(){let e;try{this.entity.followersGroupId&&(e=await P(this.entity.followersGroupId,this.context.userRequestOptions))}catch{e=null}return e}async setFollowersGroupAccess(e){await I({group:{id:this.entity.followersGroupId,access:e},authentication:this.context.session})}async setFollowersGroupIsDiscussable(e){let t=await this.getFollowersGroup(),s=b(t.typeKeywords,e);await I({group:{id:t.id,typeKeywords:s},authentication:this.context.session})}async sharedWith(){return V(this.entity.id,this.context.requestOptions)}async afterSave(){this.thumbnailCache&&(this.thumbnailCache.clear?(await te(this.entity.id,this.entity.owner,this.context.userRequestOptions),this.thumbnailCache=null,this.entity.thumbnail=null,this.entity.thumbnailUrl=null):(await se(this.entity.id,this.thumbnailCache.file,this.thumbnailCache.filename,this.context.userRequestOptions,this.entity.owner),this.entity.thumbnail=`thumbnail/${this.thumbnailCache.filename}`,this.entity.thumbnailUrl=this.getThumbnailUrl(),this.thumbnailCache=null))}setThumbnail(e,t){this.thumbnailCache={file:e,filename:t}}clearThumbnail(){this.thumbnailCache={clear:!0}}getThumbnailUrl(e=200){let t={id:this.entity.id,access:this.entity.access,thumbnail:this.entity.thumbnail},s={token:this.context.session.token,width:e};return G(t,this.context.requestOptions,s)}async setFeaturedImage(e,t=!1){var s;try{(!((s=this.entity.view)===null||s===void 0)&&s.featuredImageUrl||t)&&await this.clearFeaturedImage();let r=await ee(this.entity.id,this.entity.owner,e,B,this.context.userRequestOptions);this.entity.view=Object.assign(Object.assign({},this.entity.view),{featuredImageUrl:r}),await this.save()}catch(r){if(r instanceof Error&&r.message==="CONT_00942: Resource already present")return this.setFeaturedImage(e,!0);throw r}}async clearFeaturedImage(){try{let e=await $(Object.assign({id:this.entity.id,owner:this.entity.owner,resource:B},this.context.userRequestOptions));if(e&&!e.success)throw new l("Clear Item Featured Image","Unknown error clearing featured image.");this.entity.view.featuredImageUrl=null,await this.save()}catch(e){throw e instanceof Error?new l("Clear Item Featured Image",e.message,e):new l("Clear Item Featured Image","Unknown error clearing featured image.")}}updateIsDiscussable(e){let t=b(this.entity.typeKeywords,e);this.update({typeKeywords:t,isDiscussable:e})}},ie=async(i,e,t)=>{var s;let r=(s=e.groupId)===null||s===void 0?void 0:s[0];if(e.type==="newGroup"){let a=Object.assign(Object.assign({},q("hubViewGroup",t)),{name:`${i.name} Content`}),n=await j(a,t);await t.refreshUser(),r=n.id}return{schemaVersion:C,scopes:{item:{targetEntity:"item",filters:[{predicates:[{group:[r]}]}]},event:{targetEntity:"event",filters:[{predicates:[{group:[r]}]}]}},collections:[]}};function re(i,e,t){let s=y(i),r=e.id,a=w(s,"metrics",[]),n=a.findIndex(h=>h.id===r),c=w(s,"view.metricDisplays",[]),u=c.findIndex(h=>h.metricId===r);return n>-1?a[n]=e:a.push(e),u>-1?c[u]=t:c.push(t),s.view.metricDisplays=c,s.metrics=a,s}async function Q(i,e,t,s=""){return T(i,t).then(r=>{let a=s?`${s}/${e}`:e;return!!r.resources.find(c=>c.resource===a)})}async function ae(i,e,t,s,r,a=""){try{let n=s.split(".").pop(),u=await Q(i,s,r,a)?E:v,h=t;if(n==="json"&&(h=K(t)),n==="txt"&&(h=D(t)),!(await u(Object.assign({id:i,owner:e,resource:h,name:s,prefix:a},r))).success)throw new l("Add Item Resource",`Error adding resource ${s} to item ${i}.`);let p=f(r.portal),d=a?`${a}/`:"";return`${p}/content/items/${i}/resources/${d}${s}`}catch(n){throw n instanceof Error?new l("Add Item Resource",n.message,n):new l("Add Item Resource",`Error adding resource ${s} to item ${i}.`)}}function Y(i,e){let s=A("/ember-arcgis-opendata-components/assets/images/placeholders/southatlantic_coastline.jpg",e.userRequestOptions),r={sections:[{containment:"fixed",isFooter:!1,style:{background:{isFile:!1,isUrl:!0,state:"valid",display:{},transparency:50,position:{x:"center",y:"center"},color:"#000000",image:s},color:"#ffffff",rowLayout:"box"},rows:[{cards:[{component:{name:"spacer-card",settings:{height:"80",cardId:"c0iaseq5x"}},settings:{height:100},width:12}]},{cards:[{component:{name:"markdown-card",settings:{cardId:"crn7a02t5",schemaVersion:2.1,markdown:'<div class="banner-heading">Hero section</div>'}},width:12}]},{cards:[{component:{name:"markdown-card",settings:{cardId:"c1cihdl00",schemaVersion:2.1,markdown:"<p>This hero section is a row with image, banner text, and spacers. Edit layout to customize the hero.&nbsp;</p>"}},width:12}]},{cards:[{component:{name:"spacer-card",settings:{height:"80",cardId:"cqw42xb1u"}},settings:{height:100},width:12}]}],visibility:{access:"default",groups:[]}},{containment:"fixed",isFooter:!1,style:{background:{isFile:!1,isUrl:!0,state:"",display:{},transparency:0,position:{x:"center",y:"center"},color:"transparent"},rowLayout:"box"},rows:[{cards:[{component:{name:"spacer-card",settings:{height:"30",cardId:"c1vrfsun0"}},settings:{height:100},width:12}]},{cards:[{component:{name:"markdown-card",settings:{cardId:"cmq3l0yfj",schemaVersion:2.1,markdown:'<h1 style="text-align: center;">Section</h1><p style="text-align: center;">Edit layout to customize this section and configure page elements.&nbsp;<a href="https://doc.arcgis.com/en/hub/sites/site-editing-basics.htm" target="_blank" style="font-family: var(--fontsBaseFamily), Avenir Next; background-color: rgb(255, 255, 255);">Learn more &gt;</a></p>'}},width:12}]},{cards:[{component:{name:"spacer-card",settings:{height:100,cardId:"c619c27ix"}},settings:{height:100},width:12}]}],visibility:{access:"default",groups:[]}}],header:{component:{name:"site-header",settings:{fullWidth:!1,title:"Your Site Name",headerType:"default",menuLinks:[],schemaVersion:3,showTitle:!0,socialLinks:{facebook:{},instagram:{},twitter:{},youtube:{}},shortTitle:"Site"}}},footer:{component:{name:"site-footer",settings:{footerType:"custom",markdown:`<div class="footer-background">
3
- <div class="container-fluid">
4
- <div class="col-xs-12">
5
- <img src="https://via.placeholder.com/50" alt="" class="center-block logo">
6
- </div>
7
- <div class="col-xs-6 center-block">
8
- <ul class="nav nav-pills">
9
- <li><a href="">URL</a></li>
10
- <li><a href="">URL</a></li>
11
- <li><a href="">URL</a></li>
12
- <li><a href="">URL</a></li>
13
- </ul>
14
- </div>
15
- <div class="col-xs-6 center-block">
16
- <ul class="nav nav-pills" style="float:right;">
17
- <li><a href="">URL</a></li>
18
- <li><a href="">URL</a></li>
19
- </ul>
20
- </div>
21
- </div>
22
- </div>`,schemaVersion:2.1}}}},a={sections:[],header:{component:{name:"site-header",settings:{fullWidth:!1,title:"",headerType:"default",menuLinks:[],schemaVersion:3,showTitle:!0}}},footer:void 0};switch(i){case"simpleSiteOrPageLayout":return Promise.resolve(r);case"blankSiteOrPageLayout":return Promise.resolve(a);default:return Promise.resolve(a)}}var Ge=async(i,e)=>{var t,s,r;let a,n,c=i._thumbnail,u=i._catalogSetup,h=i._layoutSetup,m=i._metric,p=i._slug,d=(t=i.view)===null||t===void 0?void 0:t.featuredImage;delete i._groups,delete i._thumbnail,(s=i.view)===null||s===void 0||delete s.featuredImage,delete i._layoutSetup,delete i._metric,delete i._catalogSetup,delete i._slug;let o=y(i);if(o.orgUrlKey=i.orgUrlKey?i.orgUrlKey:e.portal.urlKey||"",o.orgUrlKey=o.orgUrlKey.toLowerCase(),o.extent=(r=i.location)===null||r===void 0?void 0:r.extent,p?o.slug=S(p,o.orgUrlKey):o.slug="",c&&(c.blob?n={file:c.blob,filename:c.fileName,clear:!1}:n={clear:!0}),d){let g=null;d.blob?g=await ae(o.id,o.owner,d.blob,"featuredImage.png",e.userRequestOptions):await Q(o.id,"featuredImage.png",e.userRequestOptions)&&await W(o.id,"featuredImage.png",o.owner,e.userRequestOptions),o.view=Object.assign(Object.assign({},o.view),{featuredImageUrl:g})}if((u?.type==="newGroup"||u?.type==="existingGroup"&&u.groupId)&&(o.catalog=await ie(o,u,e),a=L.fromJson(o.catalog,e)),m&&Object.keys(m).length){let g=m.metricId||k(_(`${m.cardTitle}_`)),{metric:X,displayConfig:Z}=z(m,g,{metricName:m.cardTitle});o=re(o,X,Z)}return h&&(h.layout==="simple"?o.layout=await Y("simpleSiteOrPageLayout",e):o.layout=await Y("blankSiteOrPageLayout",e)),Object.assign(Object.assign({entity:o},n&&{thumbnailCache:n}),a&&{_catalog:a})};export{ee as a,te as b,se as c,J as d,Q as e,ae as f,Ge as g};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{h as y}from"./FZ7ZK37I.js";import{a as c}from"./7GTUV67W.js";var E=t=>{let[[n,e],[r,o]]=t;return f(n,e,r,o)},S=t=>t.map(n=>n.join(", ")).join(", ");function f(t,n,e,r,o=4326){return{xmin:t,ymin:n,xmax:e,ymax:r,spatialReference:{wkid:o}}}function l(t){return[[t.xmin,t.ymin],[t.xmax,t.ymax]]}var x={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};function u(t){let n=t.portalSelf,e=n.defaultExtent,r=c(n,"helperServices.geometry.url");if(!r||!e)return Promise.resolve(x);let o=`${r}/project`,a={httpMethod:"POST",params:{geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[e]}),transformForward:!1,transformation:"",inSR:e.spatialReference.wkid,outSR:4326,f:"json"}};return t.authentication&&(a.authentication=t.authentication),y(o,a).then(i=>{let m=i.geometries[0];return{xmin:m.xmin,ymin:m.ymin,xmax:m.xmax,ymax:m.ymax,spatialReference:{wkid:4326}}}).catch(i=>x)}function B(t){return u(t).then(n=>l(n))}var g=t=>Array.isArray(t)&&Array.isArray(t[0])&&Array.isArray(t[1]);function p(t){return["xmin","ymin","xmax","ymax"].every(n=>typeof t[n]=="number")}function P(t){return!!t&&[g,p].some(n=>n(t))}var T=t=>{let{xmin:n,ymin:e,xmax:r,ymax:o,spatialReference:s}=t;return{rings:[[[n,o],[r,o],[r,e],[n,e],[n,o]]],spatialReference:s}},A=t=>{let{xmin:n,ymin:e,xmax:r,ymax:o,spatialReference:s}=t,a=(r-n)/2+n,i=(o-e)/2+e;return{x:a,y:i,spatialReference:s}},v=t=>{let n=[].concat(...t);for(let e=0;e<n.length;e+=2){let[r,o]=[n[e],n[e+1]];if(o<-90||o>90||r<-180||r>180)return!1}return!0},R=t=>{let n=1/0,e=1/0,r=-1/0,o=-1/0;for(let s of t.coordinates)for(let[a,i]of s)n=Math.min(n,a),e=Math.min(e,i),r=Math.max(r,a),o=Math.max(o,i);return[[n,e],[r,o]]};export{E as a,S as b,f as c,l as d,x as e,u as f,B as g,g as h,P as i,T as j,A as k,v as l,R as m};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as c}from"./A6FB2POK.js";import{a as u}from"./UCNRE4DW.js";import"./4QEFMWHF.js";import"./J2P53GWU.js";import{a as r}from"./7GTUV67W.js";import"./USNX342T.js";import{b as n,c as h,d as p,e as g,i as f}from"./DKMYTCOT.js";import"./IONZ3SDQ.js";var y=function(t,a,s,e){var d=arguments.length,i=d<3?a:e===null?e=Object.getOwnPropertyDescriptor(a,s):e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,a,s,e);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(d<3?o(i):d>3?o(a,s,i):o(a,s))||i);return d>3&&i&&Object.defineProperty(a,s,i),i},m=class{constructor(t){f(this,t),this.arcgisConfigurationEditorFieldInputChange=g(this,"arcgisConfigurationEditorFieldInputChange",7),this._outFields=["Addr_type","Match_addr","address","StAddr","City","Region","RegionAbbr","Postal","Country"],this.params=void 0,this.suggestions=[],this.value=void 0,this.address=void 0}async componentWillLoad(){this.intl=await u.loadIntlForComponent(this.element)}async componentDidLoad(){let t=await $arcgis.t(m=>m[0],"widgets/Search/SearchViewModel");this._searchViewModel=new t.default({autoSelect:!0,suggestionsEnabled:!0,maxResults:1,maxSuggestions:5,minSuggestCharacters:3}),await this._searchViewModel.when(),this._searchViewModel.defaultSources.at(0).outFields=this._outFields}onAddressChange(t){this.arcgisConfigurationEditorFieldInputChange.emit(t)}onCalciteAutocompleteTextInput(t){this.value=t.target.inputValue,this.address={entryType:"free-text",displayAddress:this.value},this.getSuggestions()}onCalciteAutocompleteChange(t){let a=t.target.value,s=this.suggestions.find(e=>e.key===a);this.search(s)}async getSuggestions(){let{value:t,_searchViewModel:a}=this,{results:[s]}=await a.suggest(t);this.suggestions=s?.results||[]}async search(t){let{_searchViewModel:a}=this,s=await a.search(t);this.setAddressFromSearchResult(s)}setAddressFromSearchResult(t){var a;if(!((a=t?.results)===null||a===void 0)&&a.length){let s=r(t,"results[0].results[0]"),e={entryType:"search-result",name:r(s,"name"),streetAddress:r(s,"feature.attributes.StAddr"),city:r(s,"feature.attributes.City"),region:r(s,"feature.attributes.Region"),postalCode:r(s,"feature.attributes.Postal"),countryCode:r(s,"feature.attributes.Country")};e.name&&(!e.streetAddress||e.streetAddress&&!e.name.includes(e.streetAddress))&&(e.displayAddress=e.name),e.streetAddress&&(e.displayAddress=e.displayAddress?`${e.displayAddress}, ${e.streetAddress}`:e.streetAddress),e.city&&(e.displayAddress=e.displayAddress?`${e.displayAddress}, ${e.city}`:e.city),e.region&&(e.displayAddress=e.displayAddress?`${e.displayAddress}, ${e.region}`:e.region),e.postalCode&&(e.displayAddress=e.displayAddress?`${e.displayAddress}, ${e.postalCode}`:e.postalCode),e.countryCode&&(e.displayAddress=e.displayAddress?`${e.displayAddress}, ${e.countryCode}`:e.countryCode),this.address=e,this.value=e.displayAddress}}render(){return n(h,{key:"9bc2f69d873a8215b24a043ab1a69847da08669a","data-element":"location-search-field"},n("calcite-autocomplete",{key:"e3c0cfe9fa7ae00b14816fb09a8f547faf5e56bb","input-value":this.value,name:"location-search",placeholder:this.intl.t("inputPlaceholderText")},this.suggestions.map(t=>n("calcite-autocomplete-item",{heading:t.text,key:t.key,value:t.key}))))}static get assetsDirs(){return["locales"]}get element(){return p(this)}static get watchers(){return{address:["onAddressChange"]}}};y([c({timeout:150})],m.prototype,"getSuggestions",null);export{m as hub_field_input_location_search};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as u}from"./6F3NCMF3.js";function l(n,r){return d(n,e=>e.id===r)}function d(n,r){return Array.isArray(n)?n.reduce((i,e)=>{if(r(e))i=e;else if(u(e)){let f=d(e,r);f&&(i=f)}return i},void 0):u(n)?r(n)?n:Object.keys(n).reduce((i,e)=>{if(u(n[e])){let f=d(n[e],r);f&&(i=f)}return i},void 0):void 0}export{l as a,d as b};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import c from"./MAKNOF2E.js";import"./ALUW2GDJ.js";import"./DCLYV35L.js";import"./SDXNFZ6Q.js";import"./XLV625TR.js";import"./NFD3QJ6J.js";import"./Q4GV7FFJ.js";import"./HWUCFNAD.js";import"./LLGS7DKU.js";import"./TO5XR7VA.js";import"./DJ3H7LZE.js";import"./PJFE4OSA.js";import"./25TYOHZS.js";import"./XZDHV5BV.js";import"./L6IQ6LTS.js";import"./DCXY72PD.js";import"./YBDFIKTN.js";import"./QA5B2Y37.js";import"./HUVYHMSC.js";import"./FY3KPATI.js";import"./DH2QF3YA.js";import"./UOAJQR2X.js";import"./PM6CSPJD.js";import"./JG22JJ4C.js";import"./6M5DP7YF.js";import"./HM2SQ34E.js";import"./HF75SET4.js";import"./O247GUBF.js";import"./EIMMNTTE.js";import{b as o}from"./YMX7NNEY.js";import"./M5TH54YS.js";import"./HH5PXKUQ.js";import"./WL6CGZLR.js";import"./K4VVZ2OR.js";import"./THLIDOGM.js";import"./FZNKGW4A.js";import"./LK454DSU.js";import"./AYFB34A7.js";import"./53V23CCM.js";import"./SNSHV52T.js";import"./HITR5JF7.js";import"./E2RL5I2B.js";import"./4ZRQCNU2.js";import"./YLRR2XFD.js";import"./LEVMADAS.js";import"./U7SPPU37.js";import"./JSOZV4HA.js";import"./VXJI546E.js";import"./ZQPTNYU6.js";import"./UCUSWPVC.js";import"./HTYDCXX6.js";import"./LDJN5446.js";import"./6LDEVQEO.js";import"./ZUFDLSS7.js";import"./2NJPYBHN.js";import"./635V3Q2N.js";import"./3MGFA2AN.js";import"./2WQEISGF.js";import"./CBIG4EMI.js";import"./IXINH2FU.js";import"./UJKN7G7W.js";import"./K3HMF5GC.js";import"./NPWIO5CS.js";import"./B6CP7FIT.js";import"./XP6ZXTST.js";import"./ZVGAVULD.js";import"./V3U3RRL7.js";import"./LVCMKKG7.js";import"./UTQMJRMF.js";import"./AEPE3IDB.js";import"./UR5INQGU.js";import"./HV466M4A.js";import"./GJINUBO7.js";import"./5GNQYAFV.js";import"./BHYFMWFH.js";import"./47ZOSUE6.js";import"./JI5AIZ2W.js";import"./SVAOM6PB.js";import"./WTJOWA2D.js";import"./II3OUQDN.js";import{B as r,H as h,a as s,b as i}from"./YTAOXT7K.js";import"./BMRPHSYL.js";import"./FMBEHWFY.js";import"./3WN3ZWUP.js";import"./AM4QVJ44.js";import"./GVF26EON.js";import"./K672BF4Z.js";import"./HSFPILSC.js";import"./2W2UGJLH.js";import"./XI72UBIK.js";import"./H3CSIYXV.js";import"./46NFE3O2.js";import"./MUN2QI43.js";import"./U2H7HOIC.js";import"./IEDSJLNB.js";import"./NR4ANSZX.js";import"./I3LGHXIN.js";import"./S2TL4ARK.js";import"./WBUC7HJI.js";import"./SD326B2E.js";import"./HZHPBMYE.js";import"./MYXIS5RQ.js";import"./PWESAKVV.js";import b from"./K5O2OVOP.js";import"./Y7N6UKCC.js";import"./H2V2RZ6M.js";import"./CU2TSBCT.js";import"./OQOFL4GS.js";import"./KUB4GMLQ.js";import"./FDDXGLRF.js";import"./RGKBSVQD.js";import"./FZ7ZK37I.js";import"./FLC2JTMP.js";import"./RL2IUUBA.js";import"./4QEFMWHF.js";import"./J2P53GWU.js";import a from"./BU6RNCBS.js";import"./ZM3EAORZ.js";import"./YCEXTCZD.js";import"./5V53QYYF.js";import"./A36IL72A.js";import"./P7D42LBQ.js";import"./ZFP6AZG7.js";import"./NE7SMAEP.js";import"./2B6D4MGZ.js";import"./HEPYE6RX.js";import"./7GTUV67W.js";import"./USNX342T.js";import"./DKMYTCOT.js";import"./IONZ3SDQ.js";export default $arcgis.t(([])=>{var c=s`:host{display:block}:host>div>h1:first-child,:host>div>h2:first-child,:host>div>h3:first-child,:host>div>h4:first-child,:host>div>h5:first-child,:host>div>h6:first-child,:host>div>p:first-child{margin-top:0}`,t=class extends r{constructor(){super(...arguments),this.html=""}static{this.properties={html:1}}static{this.styles=c}get _content(){return o(this.html)}render(){return i`<div .innerHTML=${this._content??""}></div>`}};h("arcgis-text-card",t);return t},a,b,c)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as m}from"./Q5A7L43T.js";import{a as b,b as q,c as L}from"./VANWWSL3.js";import{a as U}from"./UADY5XO7.js";import{e as W}from"./GLK5OMGB.js";import"./FQQX35FA.js";import"./5LEP3IWV.js";import{g as $,h as M,m as _}from"./TARH5FST.js";import"./HH5PXKUQ.js";import"./42NTJTRV.js";import{a as T}from"./KI2RNLIW.js";import{a as J}from"./NUH2IEG5.js";import{a as z}from"./LK454DSU.js";import"./E2RL5I2B.js";import"./YLRR2XFD.js";import"./JSOZV4HA.js";import{D as V,E as O,F as B,n as N}from"./VXJI546E.js";import"./ZQPTNYU6.js";import"./UCUSWPVC.js";import"./HTYDCXX6.js";import"./LDJN5446.js";import"./6LDEVQEO.js";import"./2NJPYBHN.js";import"./635V3Q2N.js";import"./3MGFA2AN.js";import"./2WQEISGF.js";import"./CBIG4EMI.js";import"./IXINH2FU.js";import"./UJKN7G7W.js";import"./K3HMF5GC.js";import"./NPWIO5CS.js";import"./B6CP7FIT.js";import"./XP6ZXTST.js";import"./LVCMKKG7.js";import"./UTQMJRMF.js";import"./AEPE3IDB.js";import"./UR5INQGU.js";import"./HV466M4A.js";import"./GJINUBO7.js";import"./5GNQYAFV.js";import"./BHYFMWFH.js";import"./47ZOSUE6.js";import"./JI5AIZ2W.js";import"./SVAOM6PB.js";import"./WTJOWA2D.js";import"./II3OUQDN.js";import"./HSFPILSC.js";import"./2W2UGJLH.js";import"./XI72UBIK.js";import"./H3CSIYXV.js";import"./46NFE3O2.js";import"./MUN2QI43.js";import"./U2H7HOIC.js";import"./IEDSJLNB.js";import"./NR4ANSZX.js";import"./I3LGHXIN.js";import"./S2TL4ARK.js";import"./WBUC7HJI.js";import{f as x,g as E}from"./SD326B2E.js";import"./HZHPBMYE.js";import"./MYXIS5RQ.js";import{a as P}from"./A6FB2POK.js";import c from"./K5O2OVOP.js";import"./Y7N6UKCC.js";import"./H2V2RZ6M.js";import"./CU2TSBCT.js";import"./OQOFL4GS.js";import"./KUB4GMLQ.js";import"./FDDXGLRF.js";import{a as k}from"./37IO4VH2.js";import"./RGKBSVQD.js";import"./FZ7ZK37I.js";import"./RL2IUUBA.js";import{a as j}from"./UCNRE4DW.js";import"./4QEFMWHF.js";import"./J2P53GWU.js";import a from"./BU6RNCBS.js";import"./ZM3EAORZ.js";import{a as F}from"./YCEXTCZD.js";import"./5V53QYYF.js";import"./A36IL72A.js";import"./P7D42LBQ.js";import"./ZFP6AZG7.js";import"./NE7SMAEP.js";import"./2B6D4MGZ.js";import"./HEPYE6RX.js";import"./7GTUV67W.js";import{a as I}from"./USNX342T.js";import{b as f,c as Y,d as K,e as C,h as S,i as Q}from"./DKMYTCOT.js";import"./IONZ3SDQ.js";export default $arcgis.t(([,{c:X,j:Z},{n:H,w:ee}])=>{var te={type:"Polygon",coordinates:[[[180,-90],[180,90],[-180,90],[-180,-90],[180,-90]]]},se=(e,t,s,i,r)=>{let a=Math.ceil(e/t);return a>i?(I.warn(`Discussions requests exceeds desired threshold, throttling to ${r}ms per batch.`),r):s/a},ie=async(e,t,s=10,i=!0)=>{let r=async a=>{var o;let n=(o=a.start)!==null&&o!==void 0?o:1,h=Object.assign({data:Object.assign({num:s,relations:[O.REPLIES,O.CHANNEL,O.CHANNEL_ACL],sortBy:V.UPDATED_AT,sortOrder:N.DESC,start:n},a)},t),d=B(h);if(n===1){let{total:l}=await d,c=n+s,p=[d],v=i?se(l,s,2500,10,250):0;for(;c<=l;)await J(v),p.push(...await r(Object.assign(Object.assign({geometry:te},a),{start:c}))),c=c+s;return p}return[d]};try{let a=await Promise.all([...await r(Object.assign(Object.assign({},e),{discussion:`${e.discussion}%?id=%`})),...await r(Object.assign(Object.assign({},e),{geometry:te,discussion:`${e.discussion}%`}))]),o=[],n=a.map(({items:h})=>h).flat().filter(h=>o.includes(h.id)?!1:(o.push(h.id),!0));return $(n)}catch(a){let{message:o}=a;I.error("Could not fetch on-map discussions:",o)}},re=".sc-arcgis-hub-discussions-map-integrator-h{display:block}@media only screen and (min-width: 640px){arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{position:absolute}arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{z-index:10}arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{width:25rem}arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{padding:0px}arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{top:calc(var(--top-offset) + 4.5rem);left:calc(var(--left-offset) - 5rem - 25rem);max-height:calc(var(--panel-height) - 6rem)}arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{position:absolute}arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{z-index:10}arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{width:25rem}arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{top:calc(var(--top-offset));left:calc(var(--left-offset))}}@media only screen and (max-width: 640px){arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{position:absolute}arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{z-index:10}arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{width:calc(var(--panel-width) + 0.05rem);top:calc(var(--top-offset) + var(--panel-height) * .5);max-height:calc(var(--panel-height) * .5);height:calc(var(--panel-height) * .5);left:0.95rem}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{position:absolute}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{left:0px}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{margin:auto}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{width:100%}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions.sc-arcgis-hub-discussions-map-integrator{top:calc(var(--top-offset) + var(--panel-height) * .45)}arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{position:absolute}arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{z-index:10}arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{width:calc(var(--panel-width) - 0.95rem);top:calc(var(--panel-height) + 3.2rem);left:0.5rem}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{position:absolute}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{top:1rem}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{left:0px}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{margin:auto}[is-mobile].sc-arcgis-hub-discussions-map-integrator-h arcgis-hub-discussions-map-preview.sc-arcgis-hub-discussions-map-integrator{width:100%}}",ae=re,g=function(e,t,s,i){var r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,s,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,s,a):o(t,s))||a);return r>3&&a&&Object.defineProperty(t,s,a),a},u=class{constructor(e){Q(this,e),this.arcgisHubMapPopoverOpen=C(this,"arcgisHubMapPopoverOpen",7),this.arcgisHubMapPopoverClear=C(this,"arcgisHubMapPopoverClear",7),this.hubTelemetry=C(this,"hubTelemetry",7),this.initialized=!1,this.cachedFeatures=[],this.unsavedExistingGeometry=[],this.cachedRelatedFeatureGeometry={},this.layerIds=[],this.persistAttribute="__persist__",this.view=void 0,this.discussionsRef=void 0,this.drawRef=void 0,this.mapRef=void 0,this.theme={},this.discussion=void 0,this.entity=void 0,this.entityId=void 0,this.entityType=void 0,this.discussionSettings=void 0,this.isHub=void 0,this.isMobile=void 0,this.activeFeature=void 0,this.activeMapDiscussion=void 0,this.showChannelAvatar=void 0,this.showChannelName=void 0,this._context=X(),this.viewHeight=void 0,this.viewWidth=void 0,this.preview=!0,this.previewHeight=void 0,this.leftOffset=void 0,this.topOffset=void 0,this.mapActionNoticeActive=void 0,this.activePost=void 0,this.activeGraphicDetails=void 0,k(this,"makeGraphic","makeCalloutGraphic","setCalloutSymbolOnPointerMove","calculateOffsets","handlePointerMove","handleMapClickDiscussions","handleViewSizeChange","handleMapDrawSelect","handleEditActiveGraphic","handleDeleteActiveGraphic","handlePostPendingGraphic","addRelatedFeature","removeRelatedFeature","cancelAddRelatedFeature","getRelatedFeature","renderAddLocation","renderRemoveLocation","renderPostLocationEditOptions","renderPostLocationPrimaryOptions")}async componentWillLoad(){this.initialize(),this.intl=await j.loadIntlForComponent(this.element)}connectedCallback(){Z(this)}disconnectedCallback(){this.teardown(),this.disconnectContext()}eventTargetIsDiscussionsRef(e){return e.target===this.discussionsRef||e.target===this.onMapDiscussionsRef||e.target===this.onMapDiscussionsPreviewRef}emitHubTelemetry(e){this.hubTelemetry.emit(Object.assign(Object.assign({},e),{postId:this.sketchPostId,channelId:this.currentDiscussionsRef.channelId}))}async initialize(){let{view:e,_context:t}=this;if(this.arcgis=await import("./7MGY3JJQ.js").then(m=>m.default),this.saveInitialDrawOptions(),e&&t){if(await e.when(),this.addGeometryGraphicsLayer(),this.addStagedGeometryGraphicsLayer(),this.addCalloutGraphicsLayer(),this.addHighlightGraphicsLayer(),await this.fetchSubject(),this.fetchPosts(),this.handleViewSizeChange(),this.cachedFeatures.length)try{await this.refreshFeatures(this.cachedFeatures)}catch(s){I.warn("Cannot add discussions features to the map",s.message)}this.setDiscussionsRefHasMap(!0),this.mapViewSizeChangeHandler=this.arcgis.watch(()=>[e.height,e.width],this.handleViewSizeChange),this.mapViewCenterChangeHandler=this.arcgis.watch(()=>e.center,this.calculateOffsets),this.initialized=!0}}attachView(e,t){let{initialized:s}=this;e&&e!==t?(s&&this.teardown(),this.initialize()):!e&&s&&this.teardown()}attachdiscussionsRef(e){let{initialized:t}=this;e&&!t&&this.initialize()}handleDrawRefUpdate(){this.saveInitialDrawOptions()}calculateOffsets(){let{view:e,preview:t,graphicGeometry:s,isOffset:i,previewHeight:r,activeMapDiscussion:a}=this;if(e&&a&&s){let{container:o}=e,{top:n,left:h,right:d}=o.getBoundingClientRect(),l=e.toScreen(s),c=i?l.x+5:l.x,p=i?l.y-34:l.y;this.leftOffset=t?c+h:d,this.topOffset=t?p+n-r:n}}handlePreviewDidLoad(e){let{detail:t}=e;this.previewHeight=0,this.previewHeight=t}handlePreviewExpanded(){this.preview=!1}handleSearchWidgetPanelToggled(e){let{target:t,detail:s}=e,i=z(s,F.dictionary.category.interaction.action.close.label.search),{mapRef:r}=this;t===r&&!i&&(this.activeMapDiscussion=void 0,this.preview=!1,this.clearHoverActiveGraphics(!0))}handleGeometryGoTo(e){let{detail:t}=e,s=[...this.geometryGraphicsLayer.graphics.toArray(),...this.calloutGraphicsLayer.graphics.toArray()],i=[];if(t){let r=t.id,a=t.parentId?t.parentId:t.id;i=s.filter(({attributes:{id:o,parentId:n}})=>o===a||r&&n===r)}else{let{activeMapDiscussion:{locationId:r}}=this;i=s.filter(({attributes:{relatedFeatureId:a}})=>a===r)}i.length&&this.goTo(i)}handleGeometryFeature(e){let{detail:{post:t,create:s}}=e;this.unsavedExistingGeometry=[],this.cachedFeatures=this.cachedFeatures.filter(({properties:{id:r}})=>r!==t.id),M(t)&&(this.cachedFeatures=[...this.cachedFeatures,...M(t)],s&&this.cachedFeatures.map(r=>{let{properties:{id:a}}=r,{parentId:o}=t;return a===o&&("replyCount"in r.properties||(r.properties.replyCount=0),r.properties.replyCount+=1),r}),this.refreshFeatures(this.cachedFeatures),this.clearHoverActiveGraphics(!0))}handleGeometryFeatureDeleted(e){let{detail:{id:t,parentId:s}}=e;this.cachedFeatures=this.cachedFeatures.filter(({properties:{id:i}})=>i!==t).map(i=>{let{properties:{id:r}}=i;return r===s&&(i.properties.replyCount-=1),i}),this.refreshFeatures(this.cachedFeatures),this.clearHoverActiveGraphics(!0)}handleGeometryFeatureSelect(e){this.selectFeature(e.detail)}selectFeature(e){let{properties:{id:t,relatedFeatureId:s,index:i,unsaved:r}}=e;this.clearHoverActiveGraphics();let a=this.getMatchingGraphic(e);if(a&&this.addHighlightGraphic(!1,a,b.ACTIVE,!1),r){let o=this.unsavedGeometryGraphicsLayer.graphics.getItemAt(i);s&&(o=this.makeGraphic(e)),this.goTo(o)}else{let o=this.calloutGraphicsLayer.graphics.find(n=>{let{attributes:{relatedFeatureId:h,id:d,__index__:l}}=n;return s?s==h:d==t&&(l===null||i==l)});if(o){this.addHighlightGraphic(!0,o,b.ACTIVE,!1);let n=s?this.cachedRelatedFeatureGeometry[s].arcgis:this.getGraphicById(t,i);this.goTo(n)}}}handleGeometryFeatureHighlight(e){let{detail:{properties:{id:t,relatedFeatureId:s,index:i,unsaved:r}}}=e;this.clearHoverActiveGraphics();let a=this.getMatchingGraphic(e.detail);if(a&&this.addHighlightGraphic(!1,a,b.HOVER,!1),!r){let o=this.calloutGraphicsLayer.graphics.find(n=>{let{attributes:{relatedFeatureId:h,id:d,__index__:l}}=n;return s?s==h:d==t&&(l===null||i==l)});o&&this.addHighlightGraphic(!0,o,b.HOVER,!1)}}handleFeatureRemove(e){let{detail:{properties:{id:t,relatedFeatureId:s,index:i,unsaved:r}}}=e;this.removeGraphic(t,s,i,r)}removeGraphic(e,t,s,i){let{currentDiscussionsRef:{unsavedFeatures:r,unsavedRelatedFeatures:a,unsavedExistingFeatures:o}}=this;if(i)if(t)this.currentDiscussionsRef.unsavedRelatedFeatures=[...a.slice(0,s),...a.slice(s+1,a.length)];else{this.currentDiscussionsRef.unsavedFeatures=[...r.slice(0,s),...r.slice(s+1,r.length)];let n=this.unsavedGeometryGraphicsLayer.graphics.getItemAt(s);this.unsavedGeometryGraphicsLayer.graphics.remove(n)}else{let n=c=>{let{attributes:{relatedFeatureId:p,id:v,__index__:w}}=c;return t?t==p:v==e&&(w===null||+s==+w)},h=this.calloutGraphicsLayer.graphics.find(n);h&&(h.visible=!1);let d=this.geometryGraphicsLayer.graphics.find(n);d&&(d.visible=!1);let l=this.postToGeoJSON(null,{id:e,index:+s});this.currentDiscussionsRef.unsavedExistingFeatures=[...o.filter(({properties:{id:c,index:p}})=>!(e===c&&+s==+p)),l]}this.clearHoverActiveGraphics(!0)}handleGeometryDrawCreate(e){let{detail:{post:t,postType:s}}=e;this.sketchPostType=s,this.sketchPostId=t?.id,this.drawRef.buffer=!1,this.drawRef.disablePrimaryOptions=!0,this.drawRef.disableEditOptions=!0,this.drawRef.drawTip=void 0,this.drawRef.enableMapTips=!0}handleGeometryDrawTypeSelect(e){this.mapActionNoticeActive=!0,this.drawRef.setActiveTool(e.detail)}handleGeometryDrawDone(){this.mapActionNoticeActive=!1,this.drawRef.setActiveTool(void 0),this.deletePendingGraphics()}handleGeometryDrawCancel(){this.drawRef.setActiveTool(void 0)}handleActiveToolChange(e){let{detail:t}=e;t&&(this.deletePendingGraphics(),this.arcgisHubMapPopoverClear.emit())}handleGeometryDrawEdit(e){let{detail:{properties:{id:t,index:s,unsaved:i}}}=e;this.preview=!1,this.editGraphic(t,s,i)}editGraphic(e,t,s){let{drawRef:i}=this,{geometry:r}=s?this.unsavedGeometryGraphicsLayer.graphics.getItemAt(t):this.getGraphicById(e,t);this.hideLayers(),this.goTo(r),this.sketchPostId=e,this.sketchIndex=t,this.sketchIsUnsaved=s,this.drawRef.geometry=void 0,setTimeout(()=>{i.geometry=r,i.disablePrimaryOptions=!0,i.disableEditOptions=!1,i.buffer=!1,i.enableMapTips=!0},0)}handlePostEditorReady(e){this.activePost=e.detail}handleGeometryDrawEditCancel(){this.currentDiscussionsRef.unsavedFeatures=[...this.currentDiscussionsRef.unsavedFeatures],this.drawRef.forceReset(),this.showLayers()}handleDrawGraphicsChange(e){var t;let{detail:{graphics:s,save:i,canceled:r,unsaved:a}}=e,{sketchPostId:o,sketchIndex:n,sketchIsUnsaved:h}=this,{executeGeneralize:d,webMercatorToGeographic:l}=this.arcgis,c=s.getItemAt(0);if(c.geometry=d(c.geometry.clone(),q(this.view)),i&&this.drawRef.disablePrimaryOptions){this.drawRef.disableEditOptions=!0;let p=l(c.geometry),v=x(p);if(h){let G=this.currentDiscussionsRef.unsavedFeatures.map((D,y)=>(y===n&&(D.geometry=v),D));this.currentDiscussionsRef.unsavedFeatures=G;let R=this.unsavedGeometryGraphicsLayer.graphics.getItemAt(n);R.geometry=c.geometry,!((t=R.attributes)===null||t===void 0)&&t.pending&&setTimeout(()=>{this.activeGraphicDetails={id:o,index:n,unsaved:!0,geometry:c.geometry},this.arcgisHubMapPopoverOpen.emit({geometry:c.geometry,view:this.view,render:this.renderPostLocationPrimaryOptions,source:"action"})},150)}else{let G=this.postToGeoJSON(v,{index:n,id:o});this.currentDiscussionsRef.unsavedExistingFeatures=[...this.currentDiscussionsRef.unsavedExistingFeatures.filter(({properties:{index:y}})=>y!==n),G];let R=this.getGraphicById(o,n);this.unsavedExistingGeometry.filter(({id:y,index:A})=>y===o&&A===n).length||this.unsavedExistingGeometry.push({id:o,index:n,geometry:R.geometry.clone()}),R.geometry=c.geometry}this.drawRef.forceReset(),this.showLayers();let w=_(v);this.emitHubTelemetry(F.dictionary.category.content.action.update.label.location.details[w])}else if(r)this.currentDiscussionsRef.unsavedFeatures=[...this.currentDiscussionsRef.unsavedFeatures],this.drawRef.forceReset(),this.showLayers();else if(a){this.drawRef.forceReset(),c.symbol=L[c.geometry.type](b.DEFAULT,this.themeWithDefaults[c.geometry.type]),c.attributes={pending:!0},this.addGraphicsToGraphicsLayer(this.unsavedGeometryGraphicsLayer,[c]);let p=[];s.forEach(v=>{let w=l(v.geometry),G=x(w);p.push({type:"Feature",geometry:G,properties:{id:this.sketchPostId,pending:!0}});let R=_(G);this.emitHubTelemetry(F.dictionary.category.content.action.create.label.location.details[R])}),this.currentDiscussionsRef.unsavedFeatures=[...this.currentDiscussionsRef.unsavedFeatures,...p],setTimeout(()=>{this.activeGraphicDetails={id:o,index:this.unsavedGeometryGraphicsLayer.graphics.length-1,unsaved:!0,geometry:c.geometry},this.arcgisHubMapPopoverOpen.emit({geometry:c.geometry,view:this.view,render:this.renderPostLocationPrimaryOptions,source:"action"})},250)}}handleGeometryDrawReset(){this.currentDiscussionsRef.unsavedFeatures=[...this.currentDiscussionsRef.unsavedFeatures],this.restoreInitialDrawOptions(),this.showLayers()}handleGeometryClearAll(){this.resetStagedFeatures(),this.restoreInitialDrawOptions(),this.showLayers(),this.unsavedGeometryGraphicsLayer.graphics.removeAll();let e=t=>{t.visible=!0};this.geometryGraphicsLayer.graphics.forEach(e),this.calloutGraphicsLayer.graphics.forEach(e),this.mapActionNoticeActive=!1,this.activePost=void 0}async handleMapDrawSelect(e){let{detail:t}=e,{targetLayer:s}=this,{results:i}=await this.view.hitTest(t,{include:s}),r=H(i);if(r?.graphic&&this.drawRef.disableEditOptions){let{graphic:a}=r,o=a.layer.objectIdField,n=a.attributes[o];if(this.cacheRelatedFeatureGeometry([n]),!a.attributes.hasOwnProperty(s.displayField)){let{features:[l]}=await s.queryFeatures({objectIds:[n],outFields:["*"],returnGeometry:!1});l&&(a.attributes=l.attributes)}let h=this.currentDiscussionsRef.unsavedRelatedFeatures.map(l=>l.objectId),d=this.renderAddLocation;h.includes(n)&&(d=this.renderRemoveLocation),this.selectedGraphic=a,this.drawRef.enableMapTips=!1,this.arcgisHubMapPopoverOpen.emit({geometry:a.geometry,view:this.view,render:d,source:"action"}),this.highlightGraphic(a)}else this.selectedGraphic=null,this.drawRef.enableMapTips=!0,this.highlightGraphic()}handleDiscussionsClose(e){(e.target===this.onMapDiscussionsRef||e.target===this.onMapDiscussionsPreviewRef)&&(this.activeMapDiscussion=void 0,this.preview=!1,this.clearHoverActiveGraphics(!0))}addRelatedFeature(){let e=this.selectedGraphic.layer.objectIdField,t=this.selectedGraphic.attributes[e];this.selectedGraphic.geometry=this.arcgis.webMercatorToGeographic(this.selectedGraphic.geometry);let s={postId:this.sketchPostId,objectId:t,feature:x(this.selectedGraphic.toJSON())};this.currentDiscussionsRef.unsavedRelatedFeatures=[...this.currentDiscussionsRef.unsavedRelatedFeatures,s],this.highlightGraphic(),this.arcgisHubMapPopoverClear.emit(),this.drawRef.enableMapTips=!0,this.emitHubTelemetry(F.dictionary.category.interaction.action.select.label.content)}removeRelatedFeature(){let{currentDiscussionsRef:{unsavedRelatedFeatures:e}}=this,t=this.selectedGraphic.layer.objectIdField,s=this.selectedGraphic.attributes[t],i=this.currentDiscussionsRef.unsavedRelatedFeatures.findIndex(r=>r.objectId==s);this.currentDiscussionsRef.unsavedRelatedFeatures=[...e.slice(0,i),...e.slice(i+1,e.length)],this.cancelAddRelatedFeature(),this.emitHubTelemetry(F.dictionary.category.interaction.action.deselect.label.content)}cancelAddRelatedFeature(){this.arcgisHubMapPopoverClear.emit(),this.selectedGraphic=null,this.drawRef.enableMapTips=!0,this.clearHighlights()}setDiscussionsRefHasMap(e){this.discussionsRef&&(this.discussionsRef.hasMap=e)}teardown(){this.clearHighlights(),this.removeViewHandlers(),this.removeLayers(),this.resetSelect(),this.setDiscussionsRefHasMap(!1)}async fetchSubject(){let{discussion:e,entity:t,entityId:s,entityType:i,_context:r,discussionSettings:a}=this,o=await W({discussion:e,entity:t,entityId:s,entityType:i,discussionSettings:a},r.hubRequestOptions,!0);Object.assign(this,o)}fetchPosts(){ie(this.searchParams,this._context.hubRequestOptions).then(e=>{e?.features&&(this.cachedFeatures=e.features,this.initialized&&this.refreshFeatures(e.features))})}addGeometryGraphicsLayer(){this.geometryGraphicsLayer=new this.arcgis.GraphicsLayer({graphics:[],elevationInfo:{mode:"on-the-ground"}}),this.view.map.add(this.geometryGraphicsLayer),this.layerIds.push(this.geometryGraphicsLayer.id)}addStagedGeometryGraphicsLayer(){this.unsavedGeometryGraphicsLayer=new this.arcgis.GraphicsLayer({graphics:[],elevationInfo:{mode:"on-the-ground"}}),this.view.map.add(this.unsavedGeometryGraphicsLayer),this.layerIds.push(this.geometryGraphicsLayer.id)}addCalloutGraphicsLayer(){this.calloutGraphicsLayer=new this.arcgis.GraphicsLayer({graphics:[],effect:"drop-shadow(0px, 2px, 8px, rgba(0, 0, 0, .20))",elevationInfo:{mode:"relative-to-ground"}}),this.view.map.add(this.calloutGraphicsLayer),this.layerIds.push(this.calloutGraphicsLayer.id),this.mapPointerMoveHandler=this.view.on("pointer-move",this.handlePointerMove),this.mapClickDiscussionsHandler=this.view.on("click",this.handleMapClickDiscussions)}addHighlightGraphicsLayer(){this.highlightGraphicsLayer=new this.arcgis.GraphicsLayer({graphics:[],elevationInfo:{mode:"relative-to-ground"}}),this.view.map.add(this.highlightGraphicsLayer),this.layerIds.push(this.highlightGraphicsLayer.id)}addHighlightGraphic(e,t,s,i){var r,a,o;let{themeWithDefaults:n,highlightGraphicsLayer:h,persistAttribute:d,is3D:l}=this,c=t.clone();if(e)c.symbol=L.callout(s,Object.assign(Object.assign({},n.callout),{isOffset:(r=t?.attributes)===null||r===void 0?void 0:r.isOffset,is3D:l}),(a=c.attributes)===null||a===void 0?void 0:a.totalCount);else if(!((o=t?.geometry)===null||o===void 0)&&o.type){let p=t.geometry.type;c.symbol=L[t.geometry.type](s,Object.assign({},n[p])),this.clearHoverActiveGraphics(i)}c.attributes=Object.assign(Object.assign({},c.attributes),{[d]:i}),h.add(c)}setCalloutSymbolOnPointerMove(e){this.view.hitTest(e,{include:this.calloutGraphicsLayer}).then(t=>{if(this.clearHoverActiveGraphics(!1),t.results.length){let s=H(t.results),{graphic:i}=s;this.addHighlightGraphic(!0,i,b.HOVER,!1)}})}setLocationEditPopover(e){this.view.hitTest(e,{include:[this.geometryGraphicsLayer,this.unsavedGeometryGraphicsLayer]}).then(t=>{if(t.results.length){let{results:[s]}=t,i=s.layer===this.unsavedGeometryGraphicsLayer,r=s.layer===this.geometryGraphicsLayer,a,o,n;if(i){let h=this.unsavedGeometryGraphicsLayer.graphics.findIndex(d=>d===s.graphic);a=void 0,o=h,n=!0}if(r&&this.activePost){let{id:h}=this.activePost,{graphic:{attributes:{id:d,__index__:l}}}=s,c=l||null;h===d&&(a=h,o=c,n=!1)}if(o!==void 0){let{geometry:h,attributes:d}=s.graphic;this.activeGraphicDetails={id:a,index:o,unsaved:n,geometry:h};let l=d?.pending?this.renderPostLocationPrimaryOptions:this.renderPostLocationEditOptions;this.arcgisHubMapPopoverOpen.emit({geometry:h,view:this.view,render:l,source:"action"})}}})}publishPendingGraphics(){this.unsavedGeometryGraphicsLayer.graphics.forEach(e=>{e.attributes.pending&&delete e.attributes.pending}),this.currentDiscussionsRef.unsavedFeatures=this.currentDiscussionsRef.unsavedFeatures.map(e=>(e.properties.pending&&delete e.properties.pending,e))}deletePendingGraphics(){let e=this.unsavedGeometryGraphicsLayer.graphics.find(t=>{var s;return(s=t.attributes)===null||s===void 0?void 0:s.pending});this.unsavedGeometryGraphicsLayer.remove(e),this.currentDiscussionsRef&&(this.currentDiscussionsRef.unsavedFeatures=this.currentDiscussionsRef.unsavedFeatures.filter(t=>t.properties.pending?!t.properties.pending:!0))}removeLayers(){[this.geometryGraphicsLayer,this.unsavedGeometryGraphicsLayer,this.calloutGraphicsLayer,this.highlightGraphicsLayer].forEach(e=>this.removeLayer(e))}hideLayers(){[this.geometryGraphicsLayer,this.unsavedGeometryGraphicsLayer,this.calloutGraphicsLayer,this.highlightGraphicsLayer].forEach(e=>e.opacity=.1)}showLayers(){[this.geometryGraphicsLayer,this.unsavedGeometryGraphicsLayer,this.calloutGraphicsLayer,this.highlightGraphicsLayer].forEach(e=>e.opacity=1)}removeLayer(e){e&&e.destroy()}emptyFeatures(){[this.geometryGraphicsLayer,this.unsavedGeometryGraphicsLayer,this.calloutGraphicsLayer].forEach(e=>e.removeAll())}addGraphicsToGraphicsLayer(e,t){e.addMany(t)}async refreshFeatures(e){this.emptyFeatures(),this.resetSelect(),e.forEach(c=>{var p;return c.properties.totalCount=(p=c.properties.replyCount)!==null&&p!==void 0?p:0});let t=({geometry:c})=>!!c,s=e.map(this.makeGraphic).filter(t),i=e.map(this.makeCalloutGraphic).filter(t),r=({properties:c})=>!!T(c.discussion).features,a=e.filter(r),o=Array.from(new Set(a.map(({properties:{discussion:c}})=>T(c).features.map(p=>p)).flat()));await this.cacheRelatedFeatureGeometry(o);let n=[],h=[];for(let c of a){if(h.includes(c.properties.id))continue;h.push(c.properties.id);let{properties:p}=c,{features:v}=T(p.discussion);p.totalCount=0,v.forEach(w=>{var G;let R=({properties:{relatedFeatureId:y}})=>y==w,D=n.find(R);if(D){let{properties:y}=D,A=((G=p.totalCount)!==null&&G!==void 0?G:0)+1;y.totalCount+=A}else try{let y=this.getRelatedFeature(w);y.properties=Object.assign(Object.assign({},c.properties),{relatedFeatureId:w}),n.push(y)}catch(y){I.warn("Failed to access post related feature:",y.message)}})}let d=n.map(this.makeCalloutGraphic),l=[...i,...d];this.addGraphicsToGraphicsLayer(this.geometryGraphicsLayer,s),this.addGraphicsToGraphicsLayer(this.calloutGraphicsLayer,l),this.activeFeature&&(this.selectFeature(this.activeFeature),this.activeFeature=void 0)}pointToExtent(e,t=.0025){let{x:s,y:i,spatialReference:r}=e;return new this.arcgis.Extent({xmin:s-t,ymin:i-t,xmax:s+t,ymax:i+t,spatialReference:r})}goTo(e){if(!this.view)return;let t=e;t.geometry&&t.geometry.type==="point"&&(t=this.pointToExtent(t.geometry)),t.extent&&(t=t.extent.clone().expand(2)),this.view.goTo(t,{duration:1e3}).catch(s=>{this.arcgis.isAbortError(s)||I.error("Failed to zoom map to target feature or extent:",s.message)})}postToGeoJSON(e,t){return{type:"Feature",geometry:e,properties:t}}makeGraphic(e){var t;let s=E(e),i=this.arcgis.Graphic.fromJSON(s);return!((t=i?.geometry)===null||t===void 0)&&t.type&&(i.symbol=L[i.geometry.type](b.DEFAULT,this.themeWithDefaults[i.geometry.type])),i}makeCalloutGraphic(e){var t;let{is3D:s}=this,{callout:i}=L,{geometry:r,properties:a}=e,[o,n]=r.coordinates.flat(1/0),h=!a.relatedFeatureId&&e.geometry.type==="Point",d=E({type:"Feature",geometry:{type:"Point",coordinates:[o,n]},properties:Object.assign(Object.assign({},a),{replyCount:a.replyCount||0,isOffset:h})}),l=this.arcgis.Graphic.fromJSON(d);return l.symbol=i(b.DEFAULT,Object.assign(Object.assign({},this.themeWithDefaults.callout),{isOffset:h,is3D:s}),(t=e.properties)===null||t===void 0?void 0:t.totalCount),l}getRelatedFeature(e){return{type:"Feature",geometry:this.cachedRelatedFeatureGeometry[e].geojson,properties:{}}}async cacheRelatedFeatureGeometry(e){let{cachedRelatedFeatureGeometry:t,targetLayer:s}=this;if(!s){I.warn("Discussions service layer not defined; ingnoring related features");return}let i=Object.keys(t),r=e.filter(a=>!i.includes(`${a}`));if(r.length){let a={where:"1=1",objectIds:r.map(n=>+n),returnGeometry:!0,outSpatialReference:{wkid:4326},outFields:[this.targetLayer.objectIdField,this.targetLayer.displayField]},{features:o}=await this.targetLayer.queryFeatures(a);o.forEach(({geometry:n,attributes:h})=>{let d=x(n);this.cachedRelatedFeatureGeometry[h[this.targetLayer.objectIdField]]={arcgis:n,geojson:d}})}}getMatchingGraphic(e){let{properties:{id:t,relatedFeatureId:s,index:i,unsaved:r}}=e,a;return s&&this.cachedRelatedFeatureGeometry[s]?a=new this.arcgis.Graphic({geometry:this.cachedRelatedFeatureGeometry[s].arcgis}):a=r?this.unsavedGeometryGraphicsLayer.graphics.getItemAt(i):this.getGraphicById(t,i),a}getGraphicById(e,t){return this.geometryGraphicsLayer.graphics.find(({attributes:{id:i,__index__:r}})=>{let a=t!==null?t==r:!0;return i===e&&a})}highlightGraphic(e){this.clearHighlights(),e&&this.view.whenLayerView(e.layer).then(t=>{this.highlightHandle=t.highlight(e)})}clearHighlights(){this.highlightHandle&&(this.highlightHandle.remove(),this.highlightHandle=null)}clearHoverActiveGraphics(e){let{persistAttribute:t,highlightGraphicsLayer:s}=this;if(e)s.removeAll();else{let i=s.graphics.filter(({attributes:r})=>!r[t]);s.removeMany(i.toArray())}}removeViewHandlers(){[this.mapPointerMoveHandler,this.mapClickDiscussionsHandler,this.mapViewSizeChangeHandler,this.mapViewCenterChangeHandler].forEach(e=>{e&&(e.remove(),e=null)})}resetSelect(){this.clearHighlights()}saveInitialDrawOptions(){let{drawRef:{buffer:e,disableEditOptions:t,disablePrimaryOptions:s,enableMapTips:i}}=this;this.initialDrawOptions={buffer:e,disableEditOptions:t,disablePrimaryOptions:s,enableMapTips:i}}restoreInitialDrawOptions(){let{initialDrawOptions:{buffer:e,disableEditOptions:t,disablePrimaryOptions:s,enableMapTips:i}}=this;this.drawRef.buffer=e,this.drawRef.disableEditOptions=t,this.drawRef.disablePrimaryOptions=s,this.drawRef.enableMapTips=i,this.drawRef.setActiveTool(void 0),this.drawRef.forceReset()}resetStagedFeatures(){this.currentDiscussionsRef.unsavedFeatures=[],this.currentDiscussionsRef.unsavedRelatedFeatures=[],this.currentDiscussionsRef.unsavedExistingFeatures=[],this.unsavedExistingGeometry.forEach(({id:e,index:t,geometry:s})=>{let i=this.getGraphicById(e,t);i.geometry=s}),this.unsavedExistingGeometry=[]}handleMapClickDiscussions(e){this.view.hitTest(e,{include:[this.calloutGraphicsLayer]}).then(t=>{if(t.results.length){this.mapRef&&ee(this.mapRef),this.preview=!1,this.clearHoverActiveGraphics(!0);let s=H(t.results),{graphic:i}=s;this.graphicGeometry=i.geometry,this.isOffset=i.attributes.isOffset;let{attributes:{parentId:r,channelId:a,id:o,relatedFeatureId:n}}=i;if(n){let h=n;this.activeMapDiscussion={channelId:a,locationId:h}}else this.activeMapDiscussion={channelId:a,postId:r?o:void 0,parentId:r||o};this.addHighlightGraphic(!0,i,b.ACTIVE,!0),setTimeout(()=>{this.preview=!0},0)}})}handleViewSizeChange(){let{view:{height:e,width:t}}=this;this.viewHeight=e,this.viewWidth=t}handlePointerMove(e){this.setCalloutSymbolOnPointerMove(e),this.setLocationEditPopover(e)}handleEditActiveGraphic(){let{id:e,index:t,unsaved:s}=this.activeGraphicDetails;this.editGraphic(e,t,s)}handleDeleteActiveGraphic(){let{id:e,index:t,unsaved:s}=this.activeGraphicDetails;this.removeGraphic(e,null,t,s),this.arcgisHubMapPopoverClear.emit()}handlePostPendingGraphic(){this.publishPendingGraphics(),this.arcgisHubMapPopoverClear.emit(),this.currentDiscussionsRef.unsavedFeatures.length===1&&(this.drawRef.drawTip=this.intl.t("draw.tip"))}get searchParams(){var e;let t={channels:(e=this.discussionSettings)===null||e===void 0?void 0:e.allowedChannelIds,discussion:this.discussion};return Object.entries(t).reduce((s,[i,r])=>r?Object.assign(Object.assign({},s),{[i]:r}):s,{})}get currentDiscussionsRef(){return this.activeMapDiscussion?this.onMapDiscussionsRef:this.discussionsRef}get themeWithDefaults(){let{theme:e}=this,t={};return["point","polyline","polygon","callout"].forEach(s=>{t[s]=Object.assign(Object.assign({},U[s]),e[s])}),t}get is3D(){let{view:e}=this;return e.hasOwnProperty("camera")}get targetLayer(){return this.view.map.allLayers.filter(e=>e.type==="feature"&&!this.layerIds.includes(e.id)).getItemAt(0)}get styles(){let{view:e,viewWidth:t,viewHeight:s,leftOffset:i,topOffset:r,previewHeight:a,preview:o}=this,n={};if(e){let{container:h}=e;if(!h)return;let{top:d,left:l,right:c,bottom:p}=h.getBoundingClientRect();n={"--left-offset":`${i??0}px`,"--top-offset":`${r??0}px`,"--panel-left":`${l??0}px`,"--panel-height":`${o?(s??0)-(a??0):(p??0)-(d??0)}px`,"--panel-width":`${(c??0)-(l??0)}px`,"--view-width":`${t??0}px`,"--view-height":`${s??0}px`}}return n}renderAddLocation(){let{intl:e,sketchPostType:t}=this;return f(S,null,f("calcite-action-group",null,f("calcite-action",{appearance:"solid",icon:"check",onClick:this.addRelatedFeature,text:e.t(`prompt.add.${t}`),textEnabled:!0})),f("calcite-action-group",null,f("calcite-action",{appearance:"solid",icon:"undo",onClick:this.cancelAddRelatedFeature,text:e.t("prompt.remove.existing"),textEnabled:!0})))}renderRemoveLocation(){return f("calcite-action-pad",{"expand-disabled":!0,expanded:!0,layout:"horizontal"},f("calcite-action",{appearance:"solid",icon:"trash",onClick:this.removeRelatedFeature,text:this.intl.t("location.remove"),textEnabled:!0}))}renderPostLocationPrimaryOptions(){let{activeGraphicDetails:{geometry:{type:e}},intl:t,sketchPostType:s}=this;return f(S,null,f("calcite-action-group",null,f("calcite-action",{appearance:"solid",icon:"check",onClick:this.handlePostPendingGraphic,text:t.t(`prompt.add.${s}`),"text-enabled":!0})),f("calcite-action-group",null,f("calcite-action",{appearance:"solid",icon:e==="point"?"move":"pencil",onClick:this.handleEditActiveGraphic,text:t.t(`prompt.edit.${e}`),"text-enabled":!0}),f("calcite-action",{appearance:"solid",icon:"trash",onClick:this.handleDeleteActiveGraphic,text:t.t(`prompt.remove.${e}`),"text-enabled":!0})))}renderPostLocationEditOptions(){let{intl:e}=this;return f("calcite-action-pad",{"expand-disabled":!0,layout:"horizontal"},f("calcite-action",{appearance:"solid",icon:"pencil",onClick:this.handleEditActiveGraphic,text:e.t("prompt.location.edit")}),f("calcite-action",{appearance:"solid",icon:"trash",onClick:this.handleDeleteActiveGraphic,text:e.t("prompt.location.delete")}))}renderMapDiscussion(){let{activeMapDiscussion:e,discussion:t,isHub:s,entityId:i,entity:r,entityType:a,showChannelAvatar:o,showChannelName:n,discussionSettings:h}=this;return this.preview?f("arcgis-hub-discussions-map-preview",{channelId:e.channelId,discussion:t,locationId:e.locationId,parentId:e.postId?e.parentId:void 0,postId:e.postId||e.parentId,ref:d=>{this.onMapDiscussionsPreviewRef=d},showChannelAvatar:o}):f("arcgis-hub-discussions",{channelId:e.channelId,disableNavigation:!e.locationId,discussion:t,discussionSettings:h,dismissible:!0,enableGoTo:!0,entity:r,entityId:i,entityType:a,hasMap:!0,isHub:s,locationId:e.locationId,parentId:e.parentId,postId:e.postId,ref:d=>{this.onMapDiscussionsRef=d},showChannelAvatar:o,showChannelName:n})}render(){let{activeMapDiscussion:e,styles:t,view:s,mapActionNoticeActive:i}=this;return f(Y,{key:"46dbb46244c22430c13999f006787d95d1a6ec21","data-element":"discussions-map-integrator",style:t},e&&this.renderMapDiscussion(),s&&i&&f("arcgis-hub-discussions-map-action-notice",{view:s}))}static get assetsDirs(){return["locales"]}get element(){return K(this)}static get watchers(){return{_context:["initialize"],view:["attachView"],discussionsRef:["attachdiscussionsRef"],drawRef:["handleDrawRefUpdate"],preview:["calculateOffsets"],previewHeight:["calculateOffsets"]}}};g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryGoTo",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryFeature",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryFeatureDeleted",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryFeatureSelect",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryFeatureHighlight",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleFeatureRemove",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryDrawCreate",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryDrawTypeSelect",null);g([m({when(e){var t,s;return e.target===this.drawRef?!0:(((s=(t=e).composedPath)===null||s===void 0?void 0:s.call(t))||[]).includes(this.drawRef)}})],u.prototype,"handleActiveToolChange",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryDrawEdit",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handlePostEditorReady",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryDrawEditCancel",null);g([m({when(e){var t,s;return e.target===this.drawRef?!0:(((s=(t=e).composedPath)===null||s===void 0?void 0:s.call(t))||[]).includes(this.drawRef)}})],u.prototype,"handleDrawGraphicsChange",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryDrawReset",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleGeometryClearAll",null);g([m({when(e){return this.eventTargetIsDiscussionsRef(e)}})],u.prototype,"handleDiscussionsClose",null);g([P({timeout:50})],u.prototype,"setLocationEditPopover",null);g([m({when(e){return e}}),P({timeout:50})],u.prototype,"refreshFeatures",null);g([m({when(){return this.geometryGraphicsLayer}})],u.prototype,"getGraphicById",null);g([m({when(){return this.highlightGraphicsLayer}})],u.prototype,"clearHoverActiveGraphics",null);g([m({when(){return this.drawRef}})],u.prototype,"saveInitialDrawOptions",null);g([m({when(){return this.drawRef&&this.initialDrawOptions}})],u.prototype,"restoreInitialDrawOptions",null);g([m({when(){return this.currentDiscussionsRef}})],u.prototype,"resetStagedFeatures",null);g([m({when(){return!this.mapActionNoticeActive}})],u.prototype,"handleMapClickDiscussions",null);g([P({timeout:50})],u.prototype,"handleViewSizeChange",null);g([P({timeout:15})],u.prototype,"handlePointerMove",null);g([m({when(){return!!(this.drawRef&&!this.drawRef.geometry)}})],u.prototype,"renderPostLocationPrimaryOptions",null);g([m({when(){return!!(this.drawRef&&!this.drawRef.geometry)}})],u.prototype,"renderPostLocationEditOptions",null);u.style=ae;return u},"config",a,c)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- function l(e,r){return`${r.survey123Url}/surveys/${e}?portalUrl=${encodeURIComponent(r.portalUrl)}`}export{l as a};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as p}from"./37IO4VH2.js";import{a as d}from"./UCNRE4DW.js";import"./4QEFMWHF.js";import"./J2P53GWU.js";import"./USNX342T.js";import{b as s,c as b,d as m,e as c,i as f}from"./DKMYTCOT.js";import"./IONZ3SDQ.js";var P=':host{position:relative;display:block;overflow:hidden;min-height:20.625rem}.edit-step__loader{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.edit-step__crop-thumb-container{position:relative;width:100%;overflow:hidden}.edit-step__crop-thumb-container--hidden{visibility:hidden}.edit-step__translucent-container{position:absolute;top:0px;overflow:hidden;left:50%;cursor:all-scroll;transform:translate(-50%)}.edit-step__translucent-container:after{position:absolute;top:0px;right:0px;bottom:0px;left:0px;box-sizing:border-box;height:100%;width:100%;content:"";opacity:0.9;border:1.875rem solid white}.edit-step__transparent-container{position:absolute;box-sizing:border-box;overflow-x:visible;outline:2px solid transparent;outline-offset:2px;background-color:var(--calcite-color-foreground-3);border:1px solid var(--calcite-color-border-1);margin-right:-50%;top:50%;left:50%;transform:translate(-50%, -50%)}.edit-step__preview-image{position:absolute;left:0px;top:0px;margin:0px;transform-origin:50% 50%}.edit-step__preview-image--loading{visibility:hidden}.edit-step__transparent-container:focus .edit-step__preview-image{box-shadow:0px 0px 6px 4px var(--calcite-color-brand)}.edit-step__zoom-control--hidden{visibility:hidden}.edit-step__zoom-control-label{display:flex;height:2rem}.edit-step__zoom-control-label-spacer{flex:1 1 0%}',x=P,S=class{constructor(t){f(this,t),this.arcgisImageUploadEditStepImageChanged=c(this,"arcgisImageUploadEditStepImageChanged",7),this.handleWheel=e=>{e.preventDefault();let i=e.deltaY>0?this.imageProperties.scale*1/1.1:this.imageProperties.scale*1.1;this.zoomValue=`${50+Math.log(i)/Math.log(1.1)}`,this.imageProperties=Object.assign(Object.assign({},this.imageProperties),{scale:i})},this.handleDragStart=()=>{this.dragging=!0},this.handleDrag=e=>{if(!this.dragging)return;let{touches:i}=e,{clientX:a,clientY:n}=e;if(a===void 0||n===void 0){if(!i.length)return;a=i[0].clientX,n=i[0].clientY}if(!this.previousPosition){this.previousPosition={top:n,left:a};return}let{top:r,left:o}=this.previousPosition,h=n-r,l=a-o;this.imageProperties=Object.assign(Object.assign({},this.imageProperties),{top:this.imageProperties.top+h,left:this.imageProperties.left+l}),this.previousPosition={top:r+h,left:o+l}},this.handleDragEnd=()=>{this.dragging=!1,this.previousPosition=void 0},this.handleImageLoaded=()=>{if(this.editingExisting){this.loadingImage=!1,this.imageProperties=Object.assign(Object.assign({},this.imageProperties),{scale:this.height/this.imageEl.width,top:0,left:0,origin:{x:"0%",y:"0%"}}),this.isLoading=!1;return}let e=this.aspectRatio>1?this.height*this.aspectRatio:this.height,{clientWidth:i,clientHeight:a}=this.imageEl,n=i>a?i:a,r=e/n,o=Object.assign({},this.imageProperties);o=Object.assign(Object.assign({},o),{top:this.height/2-a/2,left:this.height*this.aspectRatio/2-i/2,origin:{x:"50%",y:"50%"}}),this.zoomToFit&&(o=Object.assign(Object.assign({},o),{scale:r}),this.initiallySettingZoom=!0,this.zoomValue=`${50+Math.log(r)/Math.log(1.1)}`),this.imageProperties=Object.assign({},o),this.isLoading=!1},this.handleZoomInput=e=>{if(this.initiallySettingZoom){this.initiallySettingZoom=!1;return}this.zoomValue=e.target.value,this.imageProperties=Object.assign(Object.assign({},this.imageProperties),{scale:Math.pow(1.1,e.target.value-50)})},this.handleImageKeydown=e=>{let i=e.key,a=!1;switch(i){case"ArrowUp":this.imageProperties=Object.assign(Object.assign({},this.imageProperties),{top:this.imageProperties.top-1}),a=!0;break;case"ArrowDown":this.imageProperties=Object.assign(Object.assign({},this.imageProperties),{top:this.imageProperties.top+1}),a=!0;break;case"ArrowLeft":this.imageProperties=Object.assign(Object.assign({},this.imageProperties),{left:this.imageProperties.left-1}),a=!0;break;case"ArrowRight":this.imageProperties=Object.assign(Object.assign({},this.imageProperties),{left:this.imageProperties.left+1}),a=!0;break}a&&e.preventDefault()},this.aspectRatio=void 0,this.previewSrc=void 0,this.loadingImage=!1,this.editingExisting=!1,this.zoomToFit=!1,this.height=void 0,this.imageProperties={scale:1,top:0,left:0,origin:{x:"50%",y:"50%"}},this.dragging=!1,this.previousPosition=void 0,this.previewStyle=void 0,this.zoomValue="50",this.initiallySettingZoom=!1,this.firstImagePropertiesChange=!0,this.isLoading=!0,p(this,"handleWheel","handleDragStart","handleDrag","handleDragEnd","handleImageLoaded","handleZoomInput","handleZoomInput","getImageEl","getImageContainerEl")}async componentWillLoad(){this.intl=await d.loadIntlForComponent(this.el);let t=60,e=this.height*this.aspectRatio,i=`${this.height+t}px`;this.thumbContainerStyle={height:i},this.translucentContainerStyle={width:`${e+t}px`,height:i},this.transparentContainerStyle={width:`${e}px`,height:`${this.height}px`},this.previewStyle={transform:`scale(${this.imageProperties.scale})`,top:`${this.imageProperties.top}px`,left:`${this.imageProperties.left}px`,transformOrigin:`${this.imageProperties.origin.x} ${this.imageProperties.origin.y}`}}componentDidLoad(){this.imageContainerEl.focus()}getImageExtent(){let t=this.imageEl.getBoundingClientRect(),e=this.imageContainerEl.getBoundingClientRect();return{left:(e.left-t.left)/t.width,right:(e.right-t.left)/t.width,top:(e.top-t.top)/t.height,bottom:(e.bottom-t.top)/t.height}}getDrawDimensions(){let t=this.imageEl.getBoundingClientRect(),e=this.imageContainerEl.getBoundingClientRect(),i=t.top-e.top>0?t.top-e.top:0,a=t.left-e.left>0?t.left-e.left:0,n=t.left<e.left?e.left:t.left,r=t.top<e.top?e.top:t.top,o=t.right>e.right?e.right:t.right,h=t.bottom>e.bottom?e.bottom:t.bottom;return{left:a/e.width,top:i/e.height,width:(o-n)/e.width,height:(h-r)/e.height}}async getDrawParameters(){let t=this.height*this.aspectRatio,e=this.height,{left:i,right:a,top:n,bottom:r}=this.getImageExtent(),o={left:i<0?0:i,top:n<0?0:n,right:a>1?1:a,bottom:r>1?1:r},h=this.getDrawDimensions(),l=this.imageEl.clientWidth,g=this.imageEl.clientHeight,u=o.left*l,_=o.top*g,I=o.right*l-o.left*l,y=o.bottom*g-o.top*g,v=a*l-i*l,w=r*g-n*g;return{selectionX:u,selectionY:_,selectionWidth:I,selectionHeight:y,canvasWidth:v,canvasHeight:w,minWidth:t,minHeight:e,drawDimensions:h}}handleImagePropertiesChange(){this.previewStyle={transform:`scale(${this.imageProperties.scale})`,top:`${this.imageProperties.top}px`,left:`${this.imageProperties.left}px`,transformOrigin:`${this.imageProperties.origin.x} ${this.imageProperties.origin.y}`},this.firstImagePropertiesChange?(this.firstImagePropertiesChange=!1,this.zoomToFit&&this.arcgisImageUploadEditStepImageChanged.emit()):this.arcgisImageUploadEditStepImageChanged.emit()}getImageContainerEl(t){this.imageContainerEl=t}getImageEl(t){this.imageEl=t}render(){return s(b,{key:"0c77a352dad4489133bd555861dbc4f3e3fb7c9c",onWheel:this.handleWheel},s("calcite-loader",{key:"7c4bed2de7fcdbfbccabe380f5243399d7b34f81",class:"edit-step__loader",hidden:!this.isLoading,label:""}),s("div",{key:"63c796fce11108b822900a4af8971921af1f70d0",class:`edit-step__crop-thumb-container ${this.isLoading?"edit-step__crop-thumb-container--hidden":""}`,style:this.thumbContainerStyle},s("div",{key:"01400895bf01fc05b1d3209d0a2b555fad9946b8",class:"edit-step__translucent-container",onMouseDown:this.handleDragStart,onMouseMove:this.handleDrag,onMouseOut:this.handleDragEnd,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleDrag,onTouchStart:this.handleDragStart,style:this.translucentContainerStyle},s("div",{key:"6974255be69693aeef643adbe84eca49a87890cc",class:"edit-step__transparent-container",onKeyDown:this.handleImageKeydown,ref:this.getImageContainerEl,style:this.transparentContainerStyle,tabIndex:0},s("img",{key:"3609a98770772a85a2b8c76516dd30a440a7d849",alt:"",class:`edit-step__preview-image ${this.loadingImage?"edit-step__preview-image--loading":""}`,onLoad:this.handleImageLoaded,ref:this.getImageEl,src:this.previewSrc,style:this.previewStyle})))),s("calcite-label",{key:"9aeb15377117321a52fc654000c10028abdc1d2b",class:`edit-step__zoom-control ${this.isLoading?"edit-step__zoom-control--hidden":""}`,"disable-spacing":!0},this.intl.t("zoom"),s("calcite-slider",{key:"14e15acab2edea793af19b36c494491e162db6e8","aria-label":this.intl.t("zoom"),max:100,min:0,onCalciteSliderInput:this.handleZoomInput,scale:"l",value:+this.zoomValue}),s("div",{key:"3f6b37cf06f3bf2d665654bb0973d50f197b7ad3",class:"edit-step__zoom-control-label"},s("div",{key:"872c3351507a941afec6df348320e10ea4a9b749",class:"edit-step__zoom-control-icon-s"},s("calcite-icon",{key:"662835585664fb07d05f98fe89d8d69fab4f7eac",icon:"image",scale:"s"})),s("div",{key:"d423cc036e57c821948e48bc63b8a0a08780517b",class:"edit-step__zoom-control-label-spacer"}),s("div",{key:"f72cf89637efd9da00a77765e316b8b9bc0d5ff4",class:"edit-step__zoom-control-icon-l"},s("calcite-icon",{key:"b3224b6e1affd1a45df960f4d21501b971af8492",icon:"image",scale:"l"})))))}static get assetsDirs(){return["locales"]}get el(){return m(this)}static get watchers(){return{imageProperties:["handleImagePropertiesChange"]}}};S.style=x;var D=".file-step{text-align:center}.file-step__upload-icon{margin-bottom:0.5rem;margin-top:0.25rem;color:var(--calcite-color-text-3)}.file-step__upload-icon calcite-icon{width:4rem;height:4rem}.file-step__drag-text{margin-bottom:0.25rem;font-size:var(--calcite-font-size-2);line-height:1.5rem;font-weight:var(--calcite-font-weight-medium)}.file-step__browse-button{margin-top:1rem}.file-step__file-input{display:none}",E=D,C=class{async componentWillLoad(){this.intl=await d.loadIntlForComponent(this.el)}constructor(t){f(this,t),this.arcgisImageUploadFileStepFileChange=c(this,"arcgisImageUploadFileStepFileChange",7),this.arcgisImageUploadFileStepInvalidFile=c(this,"arcgisImageUploadFileStepInvalidFile",7),this.handleDragOver=e=>{e.preventDefault()},this.handleDrop=e=>{e.preventDefault(),this.processFile(e.dataTransfer.files[0])},this.handleFileInputChange=e=>{this.processFile(e.target.files[0])},this.triggerErrorState=e=>{this.errorMessage=this.intl.t(e),setTimeout(()=>{this.resetErrorState()},3e3)},this.resetErrorState=()=>{this.errorMessage=void 0},this.sizeDescription=void 0,this.errorMessage=void 0,p(this,"handleButtonClick","setFileInputEl","handleDragOver","handleDrop","handleFileInputChange")}get headingIntl(){let{errorMessage:t}=this,e="dragDrop";return t&&(e="errorHeading"),e}get description(){let{errorMessage:t}=this,e=this.sizeDescription;return t&&(e=this.errorMessage),e}processFile(t){if(t&&t){if(!this.isValidFile(t)){this.arcgisImageUploadFileStepInvalidFile.emit(),this.triggerErrorState("unsupportedFileTypeError");return}let e=new FileReader;e.onload=async i=>{this.arcgisImageUploadFileStepFileChange.emit({dataURL:i.target.result,fileName:t.name||""})},e.readAsDataURL(t)}}isValidFile(t){return t?.name&&/\.(gif|jpg|jpeg|png)$/i.test(t.name)}handleButtonClick(){this.fileInput.click()}setFileInputEl(t){this.fileInput=t}render(){return s("div",{key:"360b78a0e1f744a4de3eba18c8cc588a76b5e250","aria-label":this.intl.t(this.headingIntl),class:"file-step",onDragEnter:this.handleDragOver,onDragOver:this.handleDragOver,onDrop:this.handleDrop},s("div",{key:"0f8a1e14db526f811486559fd1e6339c92734da6",class:"file-step__upload-icon"},s("calcite-icon",{key:"854ad346b3018b5bcacd0acab36af8147feb86cd",icon:"upload"})),s("div",{key:"42bd93c547a5bdc856386320206ffc8de234313d"},s("div",{key:"a43000c6b2c4f317557deea534527e43796cddda","aria-label":this.intl.t(this.headingIntl),class:{"file-step__drag-text":!0,error:!!this.errorMessage}},this.intl.t(this.headingIntl)),this.description&&s("div",{"aria-label":this.description},this.description),s("calcite-button",{key:"2be50e5db7c25143007980b5f8a8d8d95c697461",appearance:"outline",class:"file-step__browse-button",iconStart:"image",kind:"neutral",onClick:this.handleButtonClick,round:!0,scale:"m"},this.intl.t("browse")),s("input",{key:"121a4e06827451854132ac02d57585c1115fc7aa",accept:".jpg,.gif,.png,image/jpg,image/gif,image/png",class:"file-step__file-input",onChange:this.handleFileInputChange,ref:this.setFileInputEl,type:"file"})))}static get assetsDirs(){return["locales"]}get el(){return m(this)}};C.style=E;export{S as arcgis_hub_image_upload_edit_step,C as arcgis_hub_image_upload_file_step};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as c}from"./WJFIZ6DL.js";import"./LVCMKKG7.js";import{a as p}from"./UCNRE4DW.js";import"./4QEFMWHF.js";import"./J2P53GWU.js";import a from"./BU6RNCBS.js";import{c as f}from"./ZM3EAORZ.js";import"./YCEXTCZD.js";import"./5V53QYYF.js";import"./A36IL72A.js";import{a as m}from"./P7D42LBQ.js";import"./ZFP6AZG7.js";import"./NE7SMAEP.js";import"./2B6D4MGZ.js";import"./HEPYE6RX.js";import"./7GTUV67W.js";import"./USNX342T.js";import{b as l,c as b,d as y,i as d}from"./DKMYTCOT.js";import"./IONZ3SDQ.js";export default $arcgis.t(([{c:g}])=>{var w=".sc-arcgis-hub-user-content-pane-h{display:block;height:100%}",k=w,h=function(e,t,i,s){var n=arguments.length,a=n<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,i):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,i,s);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(a=(n<3?o(a):n>3?o(t,i,a):o(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},u=class{constructor(e){d(this,e),this.resultCallback=(t,i,s,n)=>{if(m(n,"itemControl",null)==="admin"){let C=f(n,this._context);t.actionLinks=[{tooltip:this.intl.t("actionLinks.manage"),label:this.intl.t("actionLinks.manage"),ariaLabel:this.intl.t("actionLinks.ariaManage",{title:t.title}),href:C,showLabel:!0,icon:"gear",buttonStyle:"outline",buttonKind:"neutral"}]}let r=[{label:this.intl.t("type"),value:n.type},{label:this.intl.t("owner"),value:n.owner},{label:this.intl.t("updated"),value:this.intl.formatDate(n.updatedDate)}];return t.additionalInfo=r,t},this.isMobile=!1,this._context=g()}get currentUser(){return this._context.currentUser}get baseQuery(){return{targetEntity:"item",filters:[{predicates:[]}]}}async componentWillLoad(){this.intl=await p.loadIntlForComponent(this.element),this.initGalleryState()}initGalleryState(){let e=new URLSearchParams(globalThis.location.search).get("type");e&&(this.galleryState={type:e})}get accessFacet(){let e=this._context.isPortal,t=!!this._context.communityOrgId,i=[{label:this.intl.t("facets.content.myContent"),key:"mine",selected:!0,predicates:[{owner:this.currentUser.username}]},{label:this.intl.t("facets.content.myOrganizationContent"),key:"organization",selected:!1,predicates:[{orgid:this._context.currentUser.orgId}]}];return!e&&t&&i.push({label:this.intl.t("facets.content.myCommunityOrganizationContent"),key:"community",selected:!1,predicates:[{orgid:this._context.communityOrgId}]}),e||i.push({label:this.intl.t("facets.content.all"),key:"all",selected:!1,predicates:[]}),{label:this.intl.t("facets.content.label"),key:"access",display:"single-select",operation:"OR",options:i}}get facets(){return[this.accessFacet,"modified","type","tags","categories"]}render(){return l(b,{key:"11219441b77c422f72d43f32b133f431fbdb51e3","data-element":"user-content"},l("arcgis-hub-workspace-pane",{key:"8b1a931b940235b6b08a57970a444a4acc3ba1e0",isMobile:this.isMobile,"sticky-footer":!0},l("h2",{key:"fd474735ccde34b131f02b32c19ee8d1e00f4344",slot:"title"},this.intl.t("content")),l("arcgis-hub-gallery",{key:"f876a0aba91496f5370c1a018074a4f2153b6069",callback:this.resultCallback,facets:this.facets,include:"item.itemControl",layout:"compact",layoutOptions:["compact","grid","list","map"],limit:30,linkTarget:"siteRelative",mobileView:this.isMobile,query:this.baseQuery,showChips:!0,showFacets:!0,showLayoutSwitcher:!0,showMoreResultsBtn:!0,showResultsCount:!0,showSearch:!0,showSort:!0,showThumbnail:!0,sortField:"modified",sortOrder:"desc",state:this.galleryState})))}static get assetsDirs(){return["locales"]}get element(){return y(this)}};h([c()],u.prototype,"baseQuery",null);h([c()],u.prototype,"accessFacet",null);h([c()],u.prototype,"facets",null);u.style=k;return u},a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- function p(i,n=[]){return i==="Site Application"||i==="Hub Site Application"||i==="Web Mapping Application"&&n.includes("hubSite")}export{p as a};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- function p(e,t={}){let{isAuthenticated:s,hasCookie:o,orgBaseUrl:r,orgHasSSO:u}=t,i=e;return n(i)&&(i=c(i),s&&(o||u)&&(i=l(i,r))),i}function n(e){return a(e).endsWith("arcgis.com")}function a(e){let t=e.split("/"),s=t[2];return e.indexOf("http")!==0&&(s=t[0]),s}function c(e){let t=e;return n(e)&&(e.indexOf("http")!==0?t=`https://${e}`:e.indexOf("https:")!==0&&(t=e.replace("http:","https:"))),t}function l(e,t){let s=e;if(n(e)&&n(t)&&f(e)){let o=e.split("arcgis.com")[0];s=e.replace(`${o}arcgis.com`,t)}return s}function f(e){let t=!0,s=a(e);return["survey123.","survey123dev.","survey123qa.","insights.","insightsdev.","insightsqa.","urban.","urbandev.","urbanqa.","solutions.","services.","storymaps.","storymaps2dev.","storymaps2qa.","storymapsqa.","storymapsdev.","hub.arcgis.com","hubqa.arcgis.com","hubdev.arcgis.com","opendata.arcgis.com","opendataqa.arcgis.com","opendatadev.arcgis.com","experience.","experienceqa.","experiencedev.","livingatlas.","bao.","communityanalyst.","hub-sandbox-compass."].forEach(o=>{s.indexOf(o)!==-1&&(t=!1)}),t&&["embedGallery.html"].forEach(o=>{e.indexOf(o)!==-1&&(t=!1)}),t}function d(){let e=!1;return m()&&document.cookie.indexOf("esri_aopc")>-1&&(e=!0),e}function m(){let e=!1;if(window){let t=window.location.hostname||"";["arcgis.com"].some(o=>t===o||t.endsWith(`.${o}`))&&(e=!0)}return e}export{p as a,d as b};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as h}from"./37IO4VH2.js";import{a as c}from"./UCNRE4DW.js";import"./4QEFMWHF.js";import"./J2P53GWU.js";import"./USNX342T.js";import{b as u,d as p,e as m,i as v}from"./DKMYTCOT.js";import"./IONZ3SDQ.js";var I=class{constructor(i){v(this,i),this.arcgisConfigurationEditorFieldInputChange=m(this,"arcgisConfigurationEditorFieldInputChange",7),this.params=void 0,h(this,"handleCalciteInputDatePickerChange")}async componentWillLoad(){await this.loadTranslations()}async loadTranslations(){this.intl=await c.loadIntlForComponent(this.element)}handleCalciteInputDatePickerChange(i){let a=i.target;this.arcgisConfigurationEditorFieldInputChange.emit(a.value)}render(){var i,a,t,e,n,o,s,l,r,d;return u("calcite-input-date-picker",{key:"97b5cbe334e66f350a39715c0158850702e25344",disabled:this.params.disabled,label:!((a=(i=this.params.uiSchema)===null||i===void 0?void 0:i.options)===null||a===void 0)&&a.range?this.intl.t("inputDatePickerRangeLabel"):this.intl.t("inputDatePickerLabel"),layout:((e=(t=this.params.uiSchema)===null||t===void 0?void 0:t.options)===null||e===void 0?void 0:e.layout)||"horizontal",min:(o=(n=this.params.uiSchema)===null||n===void 0?void 0:n.options)===null||o===void 0?void 0:o.min,onCalciteInputDatePickerChange:this.handleCalciteInputDatePickerChange,overlayPositioning:(l=(s=this.params.uiSchema)===null||s===void 0?void 0:s.options)===null||l===void 0?void 0:l.overlayPositioning,range:(d=(r=this.params.uiSchema)===null||r===void 0?void 0:r.options)===null||d===void 0?void 0:d.range,scale:this.params.scale,value:this.params.value})}static get assetsDirs(){return["locales"]}get element(){return p(this)}};export{I as hub_field_input_date};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as s}from"./H2V2RZ6M.js";import{a as c,b as i,c as f}from"./KUB4GMLQ.js";import{a as o}from"./FDDXGLRF.js";import{b as m}from"./RGKBSVQD.js";import{h as n}from"./FZ7ZK37I.js";function p(a){return c(a).then(r=>{let t=`${`${m(a)}/content/users/${r}`}/createFolder`;return a.params=Object.assign({title:a.title},a.params),n(t,a)})}function u(a){return a.multipart&&!a.filename?Promise.reject(new Error("The filename is required for a multipart request.")):c(a).then(r=>{let e=`${m(a)}/content/users/${r}`,t=`${e}/addItem`;a.folderId&&(t=`${e}/${a.folderId}/addItem`),a.params=Object.assign(Object.assign({},a.params),a.item),a.params.extent&&i(a.params.extent)&&(a.params.extent=f(a.params.extent));let l=o(a,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},a.params)});return n(t,l)})}function b(a){let r=Object.assign({folderId:null},a);return u(r)}function P(a){let r=a.partNum;return!Number.isInteger(r)||r<1||r>1e4?Promise.reject(new Error("The part number must be an integer between 1 to 10000, inclusive.")):c(a).then(e=>{let t=`${m(a)}/content/users/${e}/items/${a.id}/addPart?partNum=${r}`,l=o(a,["file"],{params:Object.assign({},a.params)});return n(t,l)})}function $(a){return c(a).then(r=>{let e=`${m(a)}/content/users/${r}/items/${a.id}/commit`,t=o(a,[],{params:Object.assign(Object.assign({},a.params),a.item)});return n(e,t)})}function w(a){return c(a).then(r=>{let e=`${m(a)}/content/users/${r}/items/${a.id}/cancel`;return n(e,a)})}function d(a){return a.params=Object.assign(Object.assign({},a.params),I(a.item)),a}function I(a){let r=JSON.parse(JSON.stringify(a));return r.data&&(typeof Blob<"u"&&a.data instanceof Blob||a.data.constructor.name==="ReadStream"?r.file=a.data:r.text=a.data,delete r.data),r}function N(...a){return b(d(a[0]))}function B(...a){return s(d(a[0]))}function S(...a){return $(d(a[0]))}export{p as a,P as b,w as c,N as d,B as e,S as f};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- var e={"360 VR Experience":"360 VR Experience","Apache Parquet":"Apache Parquet","AppBuilder Widget Package":"AppBuilder Widget Package","Desktop Add In":"Desktop Add In","Explorer Add In":"Explorer Add In","Explorer Map":"Explorer Map","Explorer Layer":"Explorer Layer","Windows Mobile Package":"Windows Mobile Package","ArcGIS Pro Add In":"ArcGIS Pro Add In","ArcGIS Pro Configuration":"ArcGIS Pro Configuration","Globe Document":"Globe Document","Map Document":"Map Document","ArcPad Package":"ArcPad Package","Published Map":"Published Map","Scene Document":"Scene Document","CityEngine Web Scene":"CityEngine Web Scene","Code Sample":"Code Sample","CSV Collection":"CSV Collection",CSV:"CSV","CAD Drawing":"CAD Drawing","Deep Learning Package":"Deep Learning Package","Desktop Application":"Desktop Application","Desktop Application Template":"Desktop Application Template","Desktop Style":"Desktop Style","Earth Configuration":"Earth Configuration","Feature Collection":"Feature Collection","File Geodatabase":"File Geodatabase",GeoJson:"GeoJson","Geoprocessing Package":"Geoprocessing Package",GeoPackage:"GeoPackage","Geoprocessing Sample":"Geoprocessing Sample",GML:"GML","Image Collection":"Image Collection",Image:"Image","iWork Keynote":"iWork Keynote","iWork Numbers":"iWork Numbers","iWork Pages":"iWork Pages","KML Collection":"KML Collection",KML:"KML",Layer:"Layer","Layer Package":"Layer Package",Layout:"Layout","Locator Package":"Locator Package","Map Package":"Map Package","Map Template":"Map Template","Microsoft Excel":"Microsoft Excel","Microsoft Powerpoint":"Microsoft Powerpoint","Visio Document":"Visio Document","Microsoft Word":"Microsoft Word","Mobile Basemap Package":"Mobile Basemap Package","Mobile Map Package":"Mobile Map Package","Mobile Scene Package":"Mobile Scene Package",Notebook:"Notebook",PDF:"PDF","Pro Map":"Pro Map","Pro Report":"Pro Report","Project Package":"Project Package","Project Template":"Project Template","Raster function template":"Raster function template","Rule Package":"Rule Package","Scene Package":"Scene Package","Service Definition":"Service Definition",Shapefile:"Shapefile","Survey123 Add In":"Survey123 Add In","Tile Package":"Tile Package","Vector Tile Package":"Vector Tile Package","Workflow Manager Package":"Workflow Manager Package","Document Link":"Document Link","Feature Service":"Feature Service","Geocoding Service":"Geocoding Service","Geodata Service":"Geodata Service","Geometry Service":"Geometry Service","Geoprocessing Service":"Geoprocessing Service","Geoenrichment Service":"Geoenrichment Service","Globe Service":"Globe Service","Image Service":"Image Service","Map Service":"Map Service","Network Analysis Service":"Network Analysis Service","Vector Tile Service":"Vector Tile Service",WFS:"WFS",WMS:"WMS",WMTS:"WMTS",OGCFeatureServer:"OGCFeatureServer","Scene Service":"Scene Service","Stream Service":"Stream Service","Workflow Manager Service":"Workflow Manager Service","Web Mapping Application":"Web Mapping Application","Mobile Application":"Mobile Application","AppBuilder Extension":"AppBuilder Extension","Google Drive":"Google Drive",Dropbox:"Dropbox",OneDrive:"OneDrive",StoryMap:"StoryMap",Dashboard:"Dashboard","Hub Project":"Hub Project","Hub Initiative":"Hub Initiative","Hub Site Application":"Hub Site Application","Web Experience":"Web Experience","Insights Workbook Package":"Insights Workbook Package",Application:"Application","ArcGIS Explorer Application Configuration":"ArcGIS Explorer Application Configuration","ArcMap Document":"ArcMap Document","Layer File":"Layer File",ogcFeature:"ogcFeature",FeatureServer:"Feature Service",GeocodeServer:"GeocodeServer",GeoDataServer:"GeoDataServer",GeometryServer:"GeometryServer",GeoenrichmentServer:"GeoenrichmentServer",GPServer:"GPServer",GlobeServer:"GlobeServer",ImageServer:"ImageServer",MapServer:"MapServer",NAServer:"NAServer",ElevationServer:"ElevationServer",VectorTileServer:"VectorTileServer","Scene Server":"Scene Server",StreamServer:"StreamServer",WMServer:"WMServer",TiledImageServer:"TiledImageServer"};export{e as a};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{b as I}from"./4QDRXQMV.js";import{a as R}from"./CWML23HX.js";import{a as f}from"./FLC2JTMP.js";import{a as E}from"./UCNRE4DW.js";import"./4QEFMWHF.js";import"./J2P53GWU.js";import"./USNX342T.js";import{b as n,c as y,d as A,h as P,i as S}from"./DKMYTCOT.js";import"./IONZ3SDQ.js";var F=".telemetry-tabular-table{width:200px}:host .telemetry-tabular-table{display:block;height:100%;width:auto}",M=F,O=class{constructor(t){S(this,t),this.PAGE_VIEWS_TABLE_PAGE_SIZE=7,this._pageChanged=!1,this.handlePageChange=e=>{e.stopPropagation(),this._pageChanged=!0,this.startItemNumber=this._paginationRef.startItem},this.setTableCellRef=e=>{this._firstCellRef=e},this.data=void 0,this.reportTitle=void 0,this.titleTooltip=void 0,this.subtitle=void 0,this.options={},this.isLoading=void 0,this.columns=void 0,this.rows=void 0,this.isTransforming=!0,this.startItemNumber=void 0}async componentWillLoad(){this.intl=await E.loadIntlForComponent(this.element)}async componentDidRender(){var t,e;!this._paginationRef&&this._calciteTableRef&&(this._paginationRef=(t=this._calciteTableRef.shadowRoot)===null||t===void 0?void 0:t.querySelector("calcite-pagination"),this.startItemNumber=(e=this._paginationRef)===null||e===void 0?void 0:e.startItem),this._pageChanged&&this._firstCellRef&&(this._firstCellRef.setFocus(),this._pageChanged=!1)}handleChange(){this.isLoading||this.transform(this.data,this.options).then(({columns:t,rows:e})=>{this.columns=t,this.rows=e}).finally(()=>{this.isTransforming=!1})}async transform(t,e){let r=[],c=[],{seriesTransforms:h={},dataTransforms:l}=e,L=t.map(async g=>{let w=[],G=await Object.entries(g).map(async([s,a])=>{var p,b,_,T,C;let d={},u=!1;if(a!==void 0){let v=s;if(Object.values(I).includes(s)&&(s=s.split(":")[1],u=!0),!c.includes(s)){let o=((p=h[s])===null||p===void 0?void 0:p.title)||((b=l?.find(m=>m.name===v))===null||b===void 0?void 0:b.title)||this.capitalize(s),i={key:s,header:o,headerCellAlignment:f.center,contentCellAlignment:u?f.end:f.start};c.push(s),u?r.push(i):r.unshift(i)}if(d[s]=a,u||w.push(a),!((_=h[s])===null||_===void 0)&&_.value){let{display:o,link:i}=h[s].value,m=o?await o(a):a;d[s]=i?n("a",{href:i.href?await i.href(a):a,target:i.target},m):m}else{let o=((C=(T=l?.find(i=>i.name===v))===null||T===void 0?void 0:T.value)===null||C===void 0?void 0:C.display)||(i=>i);d[s]=o(a)}}return d});return this.resolveRow(G,w.join("|"))}),N=await Promise.all(L).then(g=>g);return{columns:r,rows:N}}async resolveRow(t,e){let r=await Promise.all(t);return r.push({key:e}),r.reduce((c,h)=>Object.assign(c,h),{})}capitalize(t){return t[0].toUpperCase()+t.slice(1).toLowerCase()}get shouldRenderErrorTablePagination(){return this.rows.length>this.PAGE_VIEWS_TABLE_PAGE_SIZE}render(){let t={heading:this.intl.t("pageViewTable.emptyState"),icon:"check-circle"};return n(y,{key:"b1ab47f9b6c2b7dadf3fb519976f6e758cde21bb"},this.isLoading||this.isTransforming?n("arcgis-skeleton-loader",{active:!0,rows:4,showFooter:!0}):n(P,null,n("calcite-table",{caption:this.reportTitle,class:"telemetry-tabular-table",onCalciteTablePageChange:this.handlePageChange,"page-size":this.shouldRenderErrorTablePagination&&this.PAGE_VIEWS_TABLE_PAGE_SIZE,ref:e=>this._calciteTableRef=e,striped:!0},n(R,{columns:this.columns,emptyHelpState:t,rows:this.rows,setFirstCellRefCallback:this.setTableCellRef,startItem:this.startItemNumber?this.startItemNumber:1}))))}static get assetsDirs(){return["locales"]}get element(){return A(this)}static get watchers(){return{data:["handleChange"],options:["handleChange"]}}};O.style=M;export{O as arcgis_telemetry_tabular};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- var o=e=>new Promise(t=>setTimeout(t,e));export{o as a};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as T}from"./HM2SQ34E.js";import{a as g}from"./D4XKOLDN.js";import{a as $}from"./UR5INQGU.js";import{r as o}from"./HEPYE6RX.js";function v(a={displayType:"stat-card",metricId:void 0},r,c){let{value:i,valueType:e,dynamicMetric:p}=a,t=$(a,["value","valueType","dynamicMetric"]),{layerId:n,itemId:s,field:b,statistic:m,serviceUrl:k,fieldType:h,sourceLink:l,sourceTitle:y,allowExpressionSet:d,expressionSet:f,legacyWhere:u}=p||{},{entityInfo:w,metricName:I}=c||{},L={source:a.type==="dynamic"?{type:"service-query",serviceUrl:k,layerId:n,field:b,statistic:m,where:u||D(d?f:[])}:{type:"static-value",value:i,valueType:e},name:I||r,entityInfo:w||{id:void 0,name:void 0,type:void 0},id:r};delete t.itemId;let N=Object.assign(Object.assign({},t),{displayType:t.displayType||"stat-card",visibility:t.visibility||g.hidden,metricId:r,fieldType:h,itemId:s,expressionSet:f,allowExpressionSet:d,statistic:m,sourceLink:a.type==="dynamic"&&l?l:t.sourceLink,sourceTitle:a.type==="dynamic"&&y?y:t.sourceTitle,allowLink:a.type==="dynamic"?t.allowDynamicLink:t.allowLink,type:a.type});return{metric:L,displayConfig:N}}function D(a=[]){let r=a.map(c=>{let{field:i,values:e,relationship:p}=c,t=s=>s.replace&&s.replace(/(['])/g,"$1$1");if(!e||!e.length||!i||!i.name)return!1;let n;switch(i.type){case"esriFieldTypeString":n=p===T.LIKE?`${i.name} like '%${e[0]}%'`:`(${i.name} IN (${e.map(s=>`'${t(s)}'`).join(", ")}))`;break;case"esriFieldTypeDate":typeof e[0]=="string"&&(n=`${i.name} >= timestamp '${t(e[0])} 00:00:00'`),typeof e[1]=="string"&&(n=`${i.name} <= timestamp '${t(e[1])} 23:59:59'`),typeof e[0]=="string"&&typeof e[1]=="string"&&(n=`${i.name} >= timestamp '${t(e[0])} 00:00:00' AND ${i.name} <= timestamp '${t(e[1])} 23:59:59'`);break;default:o(e[0])||(n=`(${i.name}) >= ${e[0]}`),o(e[1])||(n=`(${i.name}) <= ${e[1]}`),!o(e[0])&&!o(e[1])&&(n=`(${i.name}) >= ${e[0]} AND (${i.name}) <= ${e[1]}`);break}return n}).filter(Boolean).join(" AND ")||"1=1";return encodeURIComponent(r)}export{v as a,D as b};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- var a=(t,e)=>({isAny:{value:"isAny",label:`{{operatorConfigs.isAny.${e||"default"}:translate}}`},isAll:{value:"isAll",label:`{{operatorConfigs.isAll.${e||"default"}:translate}}`},isExactly:{value:"isExactly",label:`{{operatorConfigs.isExactly.${e||"default"}:translate}}`},isNot:{value:"isNot",label:`{{operatorConfigs.isNot.${e||"default"}:translate}}`},isBefore:{value:"isBefore",label:`{{operatorConfigs.isBefore.${e||"default"}:translate}}`},isAfter:{value:"isAfter",label:`{{operatorConfigs.isAfter.${e||"default"}:translate}}`},isBetween:{value:"isBetween",label:`{{operatorConfigs.isBetween.${e||"default"}:translate}}`}})[t];export{a};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as m}from"./KUB4GMLQ.js";import{b as o}from"./RGKBSVQD.js";import{h as n}from"./FZ7ZK37I.js";function $(r){return m(r).then(t=>{let e=`${o(r)}/content/users/${t}/items/${r.id}/protect`;return n(e,r)})}function f(r){return m(r).then(t=>{let e=`${o(r)}/content/users/${t}/items/${r.id}/unprotect`;return n(e,r)})}export{$ as a,f as b};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as r}from"./LDJN5446.js";import{q as t}from"./6LDEVQEO.js";async function m(o,e){let{editGroups:a,readGroups:u}=await t(Object.assign({eventId:o},e.hubRequestOptions)),n=s=>s.length?r(Object.assign({q:`id:(${s.join(" OR ")})`,num:s.length},e.requestOptions)):Promise.resolve({results:[]}),[{results:i},{results:p}]=await Promise.all([u,a].map(n));return[...i,...p]}export{m as a};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as s}from"./CD736SN3.js";import{g as a}from"./7J2N6ILF.js";import{N as r}from"./VXJI546E.js";import"./ZQPTNYU6.js";import"./UCUSWPVC.js";import"./HTYDCXX6.js";import"./LDJN5446.js";import"./6LDEVQEO.js";import"./2NJPYBHN.js";import"./635V3Q2N.js";import"./3MGFA2AN.js";import"./2WQEISGF.js";import"./CBIG4EMI.js";import"./IXINH2FU.js";import"./UJKN7G7W.js";import"./K3HMF5GC.js";import"./NPWIO5CS.js";import"./B6CP7FIT.js";import"./XP6ZXTST.js";import"./LVCMKKG7.js";import"./UR5INQGU.js";import"./GJINUBO7.js";import"./5GNQYAFV.js";import"./BHYFMWFH.js";import"./47ZOSUE6.js";import"./JI5AIZ2W.js";import"./SVAOM6PB.js";import"./WTJOWA2D.js";import"./II3OUQDN.js";import"./HSFPILSC.js";import"./2W2UGJLH.js";import"./XI72UBIK.js";import"./H3CSIYXV.js";import"./46NFE3O2.js";import"./MUN2QI43.js";import"./U2H7HOIC.js";import"./IEDSJLNB.js";import"./NR4ANSZX.js";import"./I3LGHXIN.js";import"./S2TL4ARK.js";import"./WBUC7HJI.js";import"./SD326B2E.js";import"./HZHPBMYE.js";import"./MYXIS5RQ.js";import"./Y7N6UKCC.js";import"./H2V2RZ6M.js";import"./CU2TSBCT.js";import"./OQOFL4GS.js";import"./KUB4GMLQ.js";import"./FDDXGLRF.js";import{a as e}from"./37IO4VH2.js";import"./RGKBSVQD.js";import"./FZ7ZK37I.js";import"./RL2IUUBA.js";import{a as o}from"./UCNRE4DW.js";import"./4QEFMWHF.js";import"./J2P53GWU.js";import b from"./BU6RNCBS.js";import"./ZM3EAORZ.js";import"./YCEXTCZD.js";import"./5V53QYYF.js";import"./A36IL72A.js";import"./P7D42LBQ.js";import"./ZFP6AZG7.js";import"./NE7SMAEP.js";import"./2B6D4MGZ.js";import"./HEPYE6RX.js";import"./7GTUV67W.js";import"./USNX342T.js";import{b as i,c as n,d as p,e as m,i as c}from"./DKMYTCOT.js";import"./IONZ3SDQ.js";export default $arcgis.t(([{c:h}])=>{var u=5,l=(t,y,f,_)=>(t.summary=void 0,t),b=".project-about__initiatives.sc-arcgis-hub-project-about calcite-button.sc-arcgis-hub-project-about{margin-top:1.5rem}h2.sc-arcgis-hub-project-about{margin:0 0 0.75rem 0;font-size:var(--calcite-font-size-2);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold)}",d=b,g=class{constructor(t){c(this,t),this.arcgisHubEntityAboutTabChange=m(this,"arcgisHubEntityAboutTabChange",7),this.entity=void 0,this.path="",this._associatedInitiativesCount=0,e(this,"handleTabChange")}async init(){try{if(this._associatedInitiativesQuery=this.project&&await a(this.project,"initiative",this._context),this._associatedInitiativesQuery){let{total:t}=await r(this._associatedInitiativesQuery,{requestOptions:this._context.hubRequestOptions});this._associatedInitiativesCount=t}}catch{}}get _context(){return h()}get project(){return this.entity}async componentWillLoad(){this.intl=await o.loadIntlForComponent(this.element),this.init()}handleTabChange(t){this.arcgisHubEntityAboutTabChange.emit(t)}renderAssociatedInitiatives(){return i("div",{class:"project-about__initiatives"},i("h2",null,this.intl.t("associatedInitiatives")),i("arcgis-hub-gallery",{callback:l,limit:u,linkTarget:"siteRelative",path:this.path,query:this._associatedInitiativesQuery,showAdditionalInfo:!1,showOwner:!1,showThumbnail:!1,showType:!1}),i("calcite-button",{appearance:"outline","data-scroll":"scroll","data-tab":s.Initiatives,onClick:this.handleTabChange,round:!0},this.intl.t("exploreAssociations")))}render(){return i(n,{key:"54f2e8c6c0287d79ef0d739a49b1ba18316d9237","data-element":"project-about"},i("arcgis-hub-entity-about",{key:"4ff07fa1c910999334ac5eb6893761917e8d70a5",entity:this.entity,path:this.path},i("div",{key:"e14594da1d8d071daba39f074c8c02fb5fa4620c",slot:"sidebar"},this._associatedInitiativesCount>0&&this.renderAssociatedInitiatives())))}static get assetsDirs(){return["locales"]}get element(){return p(this)}static get watchers(){return{entity:["init"]}}};g.style=d;return g},b)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- var r=t=>{let i=t.title;return!t.thumbnailUrl&&t.title&&(t.title.includes(" ")||(i=(t.title.startsWith("@")?t.title.substring(1,3):t.title.substring(0,2)).split("").join(" "))),i};export{r as a};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as u}from"./EONYH67A.js";import{a as g}from"./GEUS66D2.js";import{h as p}from"./H3CSIYXV.js";import"./46NFE3O2.js";import"./MUN2QI43.js";import"./U2H7HOIC.js";import"./IEDSJLNB.js";import"./NR4ANSZX.js";import"./SD326B2E.js";import"./HZHPBMYE.js";import"./MYXIS5RQ.js";import"./RGKBSVQD.js";import"./FZ7ZK37I.js";import{a as c}from"./UCNRE4DW.js";import"./4QEFMWHF.js";import"./J2P53GWU.js";import a from"./BU6RNCBS.js";import{f as h,g as m,h as d}from"./ZM3EAORZ.js";import{a as o}from"./YCEXTCZD.js";import"./5V53QYYF.js";import{c as s}from"./A36IL72A.js";import"./P7D42LBQ.js";import"./ZFP6AZG7.js";import"./NE7SMAEP.js";import"./2B6D4MGZ.js";import"./HEPYE6RX.js";import"./7GTUV67W.js";import"./USNX342T.js";import{b as e,c as k,d as f,e as l,i as v}from"./DKMYTCOT.js";import"./IONZ3SDQ.js";export default $arcgis.t(([{c:b}])=>{var U=({context:r,label:i,scale:a,user:t,slot:w,onClick:y})=>{if(!r)return;let{currentUser:C,session:n}=r;return t=t||C,e("calcite-navigation-user",{fullName:t?.fullName,label:i,onClick:y,scale:a,slot:w,style:{height:"100%"},thumbnail:t?.thumbnail&&p(n?.portal,t,n?.token),userId:t?.id,username:t?.username})},H=':host{display:flex;cursor:pointer}[slot="trigger"]{background-color:transparent;border:transparent;display:flex;cursor:pointer;align-items:center}',P=H,x=class{constructor(r){v(this,r),this.arcgisHubUserProfileSignout=l(this,"arcgisHubUserProfileSignout",7),this.hubTelemetry=l(this,"hubTelemetry",7),this.arcgisHubUserProfileLinkClick=l(this,"arcgisHubUserProfileLinkClick",7),this.handleDropdownClick=()=>{this.hubTelemetry.emit({telemetry:o.dictionary.category.interaction.action.open.label.menu.details.user})},this.handleLinkClick=i=>{let a=i.target.href;this.arcgisHubUserProfileLinkClick.emit({clickEvent:i,href:a})},this.handleViewProfileClick=i=>{this.hubTelemetry.emit({telemetry:o.dictionary.category.navigation.action.view.label.users.details.profile}),this.handleLinkClick(i)},this.handleViewOverviewClick=i=>{this.hubTelemetry.emit({telemetry:o.dictionary.category.navigation.action.view.label.orgs.details.overview}),this.handleLinkClick(i)},this.handleWorkspaceHomeClick=i=>{this.hubTelemetry.emit({telemetry:o.dictionary.category.navigation.action.view.label.users.details.workspace}),this.handleLinkClick(i)},this.handleAGOClick=()=>{this.hubTelemetry.emit({telemetry:o.dictionary.category.navigation.action.external.label.arcGisOnline.details.myContent});let i=this.agoContentUrl;window.open(i,"_blank")},this.handleSignOut=()=>{this.hubTelemetry.emit({telemetry:o.dictionary.category.interaction.action.authenticate.label.signout}),this.arcgisHubUserProfileSignout.emit()},this.variant="default"}get context(){return b()}async componentWillLoad(){this.intl=await c.loadIntlForComponent(this.element)}get profileUrl(){return h(this.context)}get overviewUrl(){return m(this.context)}get workspaceHomeUrl(){return d(this.context)}get agoContentUrl(){return g(this.context.portalUrl)}get useWorkspaceLink(){return s("hub:feature:workspace:user",this.context).access}renderUserProfileTrigger(){return this.variant==="minimal"?e("button",{"aria-label":this.intl.t("triggerAriaLabel"),onClick:this.handleDropdownClick,slot:"trigger"},e(u,{context:this.context})):e("div",{"aria-label":this.intl.t("triggerAriaLabel"),slot:"trigger"},e(U,{context:this.context,onClick:this.handleDropdownClick,slot:"user"}))}renderMenu(){return e("calcite-dropdown",null,this.renderUserProfileTrigger(),e("calcite-dropdown-group",{selectionMode:"none"},e("calcite-dropdown-item",{href:this.profileUrl,onClick:this.handleViewProfileClick},this.intl.t("viewProfile")),this.useWorkspaceLink?e("calcite-dropdown-item",{href:this.workspaceHomeUrl,onClick:this.handleWorkspaceHomeClick},this.intl.t("viewWorkspace")):e("calcite-dropdown-item",{href:this.overviewUrl,onClick:this.handleViewOverviewClick},this.intl.t("viewOverview")),e("slot",null),e("calcite-dropdown-item",{iconEnd:"launch",onClick:this.handleAGOClick},this.context.isPortal?this.intl.t("openEnterprise"):this.intl.t("openAGO")),e("calcite-dropdown-item",{onClick:this.handleSignOut},this.intl.t("signOut"))))}render(){var r;return e(k,{key:"f15986a64098938cef5efa66e23f39b359ce539d","data-element":"user-profile"},((r=this.context)===null||r===void 0?void 0:r.isAuthenticated)&&this.renderMenu())}static get assetsDirs(){return["locales"]}get element(){return f(this)}};x.style=P;return x},a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as y}from"./KIEYQKES.js";import{a as h}from"./LLX4O2ZL.js";import{a as b}from"./ZVGAVULD.js";import"./V3U3RRL7.js";import{a as u}from"./37IO4VH2.js";import{a as m}from"./UCNRE4DW.js";import"./4QEFMWHF.js";import"./J2P53GWU.js";import{a as d}from"./YCEXTCZD.js";import"./5V53QYYF.js";import{a as c,g as p}from"./HEPYE6RX.js";import"./7GTUV67W.js";import"./USNX342T.js";import{b as a,c as f,d as S,e as g,h as v,i as _}from"./DKMYTCOT.js";import"./IONZ3SDQ.js";var C={required:[],type:"object",properties:{title:{type:"string",maxLength:255},description:{type:"string",maxLength:500},canCollapse:{type:"boolean"}}},E={type:"Layout",elements:[{labelKey:"title",scope:"/properties/title",type:"Control"},{labelKey:"description",scope:"/properties/description",type:"Control",options:{control:"hub-field-input-input",type:"textarea"}}]},T={required:["title"],type:"object",properties:{title:{type:"string",maxLength:255,minLength:1},timeframe:{type:"string"},stageDescription:{type:"string",maxLength:500},link:{type:"object",properties:{href:{type:"string",if:{minLength:1},then:{format:"url"}},title:{type:"string"}}},status:{type:"string",default:"notStarted"}}},x={type:"Layout",elements:[{labelKey:"title",scope:"/properties/title",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"titleRequiredError"}]}},{labelKey:"timeframe",scope:"/properties/timeframe",type:"Control"},{labelKey:"stageDescription",scope:"/properties/stageDescription",type:"Control",options:{control:"hub-field-input-input",type:"textarea"}},{labelKey:"linkHref",scope:"/properties/link/properties/href",type:"Control",options:{helperText:{labelKey:"linkHrefHelperText"},messages:[{type:"ERROR",keyword:"format",icon:!0,labelKey:"linkHrefFormatError"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"linkTitle",scope:"/properties/link/properties/title",type:"Control"},{labelKey:"status",scope:"/properties/status",type:"Control",options:{control:"hub-field-input-combobox",clearDisabled:!0,selectionMode:"single",placeholder:"{{setStatus:translate}}",items:Object.keys(h).map(e=>({value:e,label:`{{${e}:translate}}`}))}}]},A=".sc-arcgis-hub-timeline-editor-h{display:block}calcite-sortable-list.sc-arcgis-hub-timeline-editor{margin-bottom:1.5rem}.stage-editor.sc-arcgis-hub-timeline-editor{margin-left:1rem}calcite-combobox.sc-arcgis-hub-timeline-editor{margin-bottom:0.5rem}.collapse-toggle-heading.sc-arcgis-hub-timeline-editor{display:flex;gap:0.25rem}.steps-heading.sc-arcgis-hub-timeline-editor{padding-top:0.75rem;padding-bottom:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.add-step-btn.sc-arcgis-hub-timeline-editor{margin-bottom:1.5rem}",O=A,I=class{constructor(e){_(this,e),this.arcgisHubTimelineEditorChange=g(this,"arcgisHubTimelineEditorChange",7),this.hubTelemetry=g(this,"hubTelemetry",7),this._timelineSchema=c(C),this._timelineUiSchema=c(E),this._stageSchema=c(T),this.handleRemoveStage=t=>{var i;let s=(i=t.target)===null||i===void 0?void 0:i.getAttribute("data-key"),l=[...this._timeline.stages],n;l.forEach((o,r)=>{o.key===s&&(n=r)}),isNaN(n)||l.splice(n,1),this._currentStageIdx=-1,this.updateStages(l),this.hubTelemetry.emit(Object.assign(Object.assign({},d.dictionary.category.interaction.action.remove.label.step.details.timeline),{count:l.length}))},this.handleStageEditorChangeEvent=t=>{var i;t.stopPropagation();let s=(i=t.target)===null||i===void 0?void 0:i.getAttribute("data-key"),l=[...this._timeline.stages];l.forEach((n,o)=>{n.key===s&&(l[o]=Object.assign(Object.assign({},n),t.detail.values))}),this.updateStages(l,t.detail.valid)},this.onStageEditorOpen=t=>{var i;let s=(i=t.target)===null||i===void 0?void 0:i.getAttribute("data-key");[...this._timeline.stages].forEach((n,o)=>{n.key===s&&(this._currentStageIdx=o)})},this.handleCalciteTileSelect=t=>{this._timeline.canCollapse=!!+t.target.dataset.value,this.arcgisHubTimelineEditorChange.emit({values:this._timeline,valid:!0});let i=t.target.checked?"enable":"disable";this.hubTelemetry.emit(Object.assign(Object.assign({},d.dictionary.category.interaction.action[i].label.collapse.details.timeline),{count:this.stages.length}))},this.values=void 0,this.showTitleAndDescription=!0,this.stages=[],this._currentStageIdx=-1,u(this,"handleAddStage","handleEditorChangeEvent","handleStageOrderChangeEvent","translationFunc")}async componentWillLoad(){var e;this.intl=await m.loadIntlForComponent(this.element),this._timeline=this.values,this.stages=((e=this.values)===null||e===void 0?void 0:e.stages)||[],this._stageUiSchema=c(b(this.intl,x))}get isCollapseToggleDisabled(){var e;return((e=this._timeline.stages)===null||e===void 0?void 0:e.length)<6}translationFunc(e,t,i){return this.intl.t(e,t,i)}updateStages(e,t=!0){this.stages=e,this._timeline.stages=e,(this._timeline.canCollapse||this._timeline.canCollapse===void 0&&this.stages.length>=6)&&(this._timeline.canCollapse=this.stages.length>=6),this.arcgisHubTimelineEditorChange.emit({values:this._timeline,valid:t})}handleAddStage(){let e=p("stage"),t={key:e,title:"",timeframe:"",stageDescription:"",status:h.notStarted},i=[...this._timeline.stages||[]],s=i.push(t);this._currentStageIdx=s-1,this.updateStages(i),setTimeout(()=>{this.setStageFocus(e)},300),this.hubTelemetry.emit(Object.assign(Object.assign({},d.dictionary.category.interaction.action.add.label.step.details.timeline),{count:s}))}setStageFocus(e){this.element.querySelector(`calcite-block[data-key=${e}] arcgis-configuration-editor`).setFocus()}handleEditorChangeEvent(e){e.stopPropagation(),this._timeline=Object.assign(Object.assign({},this._timeline),e.detail.values),this.arcgisHubTimelineEditorChange.emit({values:this._timeline,valid:e.detail.valid})}handleStageOrderChangeEvent(e){var t,i;e.stopPropagation();let s=(t=this._timeline.stages[this._currentStageIdx])===null||t===void 0?void 0:t.key,l=((i=e.target)===null||i===void 0?void 0:i.children)||[],n=Array.from(l).map(r=>r.getAttribute("data-key")),o=[...this._timeline.stages];o.sort(function(r,k){return n.indexOf(r.key)-n.indexOf(k.key)}),this._currentStageIdx=o.findIndex(r=>r.key===s),this.updateStages(o)}renderStages(){return a("calcite-block-group",{"drag-enabled":!0,onCalciteBlockGroupOrderChange:this.handleStageOrderChangeEvent},this.stages.map((e,t)=>this.renderStage(e,t)))}renderStage(e,t){let i={title:e.title,timeframe:e.timeframe,stageDescription:e.stageDescription,link:e.link,status:e.status};return a(v,null,a("calcite-block",{collapsible:!0,"data-key":e.key,description:e.timeframe,"drag-handle":!0,expanded:t===this._currentStageIdx,heading:e.title,key:e.key,onCalciteBlockToggle:this.onStageEditorOpen},e.status&&a("calcite-icon",{icon:y(e.status),scale:"s",slot:"icon-start"}),a("calcite-card",{class:"stage-editor",dir:this.intl.direction},a("arcgis-configuration-editor",{"data-key":e.key,onArcgisConfigurationEditorChange:this.handleStageEditorChangeEvent,schema:this._stageSchema,t:this.translationFunc,uiSchema:this._stageUiSchema,values:i}),a("calcite-button",{appearance:"transparent","data-key":e.key,kind:"danger",onClick:this.handleRemoveStage,round:!0,scale:"m",width:"auto"},this.intl.t("delete")))))}render(){var e,t,i,s;let l={title:(e=this._timeline)===null||e===void 0?void 0:e.title,description:(t=this._timeline)===null||t===void 0?void 0:t.description};return a(f,{key:"a1ef7911813af872c7416942815fb76b65472cab","data-element":"timeline-editor"},this.showTitleAndDescription&&a("arcgis-configuration-editor",{onArcgisConfigurationEditorChange:this.handleEditorChangeEvent,schema:this._timelineSchema,t:this.translationFunc,uiSchema:this._timelineUiSchema,values:l}),a("calcite-label",{key:"f3d71b3d9520cba3dcb843c19f0b97c546d90de7"},a("div",{key:"4a161d86bfce2ca7985398fdb18f293d6f61a1ed",class:"collapse-toggle-heading"},this.intl.t("enableCollapse"),a("div",{key:"adf96f6210df46fa2029047be06368c6d255e1a5"},a("calcite-icon",{key:"e56ead9a94c7c6505c056dc782550ff54a85e5cf",icon:"information-f",id:"collapse-tooltip",scale:"s"}),a("calcite-tooltip",{key:"1e160ee5b299a3ee7eee5fd2d86c7a7591c22005",label:this.intl.t("collapseToggle"),placement:"right","reference-element":"collapse-tooltip"},a("span",{key:"4b9434003b4004ef33663a686609f20e9ce196e9"},this.intl.t("collapseToggleTooltip"))))),a("calcite-tile-group",{key:"8eff0434d06253b5cf0f1bfa8491fc3d9a8bac04",disabled:this.isCollapseToggleDisabled,label:this.intl.t("enableCollapse"),layout:"vertical",selectionAppearance:"icon",selectionMode:"single-persist"},a("calcite-tile",{key:"72a4094aec2fbe5363539a90a9c5191ad530d75a","data-value":"0",description:this.intl.t("showFullDescription"),heading:this.intl.t("showFull"),onCalciteTileSelect:this.handleCalciteTileSelect,selected:!(!((i=this._timeline)===null||i===void 0)&&i.canCollapse)}),a("calcite-tile",{key:"dd626299a31129a2d8cc673594644a62d219a1b6","data-value":"1",description:this.intl.t("showCollapsedDescription"),heading:this.intl.t("showCollapsed"),onCalciteTileSelect:this.handleCalciteTileSelect,selected:(s=this._timeline)===null||s===void 0?void 0:s.canCollapse}))),a("div",{key:"a5dcb0a0ef5b84ba54734540d959b6bcade00a18",class:"steps-heading"},this.intl.t("steps")),this.renderStages(),a("calcite-button",{key:"3f9cb89b031cc6c53f0ae396281e7cbadeb73bbc",appearance:"outline-fill",class:"add-step-btn",color:"blue",onClick:this.handleAddStage,round:!0,type:"button",width:"auto"},this.intl.t("addNewStep")))}static get assetsDirs(){return["locales"]}get element(){return S(this)}};I.style=O;export{I as arcgis_hub_timeline_editor};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{n as a}from"./K4VVZ2OR.js";import"./THLIDOGM.js";import"./FZNKGW4A.js";import"./LK454DSU.js";import"./AYFB34A7.js";import"./53V23CCM.js";import"./SNSHV52T.js";import"./HITR5JF7.js";import"./E2RL5I2B.js";import"./4ZRQCNU2.js";import"./YLRR2XFD.js";import"./LEVMADAS.js";import"./U7SPPU37.js";import"./JSOZV4HA.js";import"./VXJI546E.js";import"./ZQPTNYU6.js";import"./UCUSWPVC.js";import"./HTYDCXX6.js";import"./LDJN5446.js";import"./6LDEVQEO.js";import"./ZUFDLSS7.js";import"./2NJPYBHN.js";import"./635V3Q2N.js";import"./3MGFA2AN.js";import"./2WQEISGF.js";import"./CBIG4EMI.js";import"./IXINH2FU.js";import"./UJKN7G7W.js";import"./K3HMF5GC.js";import"./NPWIO5CS.js";import"./B6CP7FIT.js";import"./XP6ZXTST.js";import"./LVCMKKG7.js";import"./UTQMJRMF.js";import"./AEPE3IDB.js";import"./UR5INQGU.js";import"./HV466M4A.js";import"./GJINUBO7.js";import"./5GNQYAFV.js";import"./BHYFMWFH.js";import"./47ZOSUE6.js";import"./JI5AIZ2W.js";import"./SVAOM6PB.js";import"./WTJOWA2D.js";import"./II3OUQDN.js";import"./HSFPILSC.js";import"./2W2UGJLH.js";import"./XI72UBIK.js";import"./H3CSIYXV.js";import"./46NFE3O2.js";import"./MUN2QI43.js";import"./U2H7HOIC.js";import"./IEDSJLNB.js";import"./NR4ANSZX.js";import"./I3LGHXIN.js";import"./S2TL4ARK.js";import"./WBUC7HJI.js";import"./SD326B2E.js";import"./HZHPBMYE.js";import"./MYXIS5RQ.js";import"./Y7N6UKCC.js";import"./H2V2RZ6M.js";import"./CU2TSBCT.js";import"./OQOFL4GS.js";import"./KUB4GMLQ.js";import"./FDDXGLRF.js";import"./RGKBSVQD.js";import"./FZ7ZK37I.js";import"./RL2IUUBA.js";import"./J2P53GWU.js";import b from"./BU6RNCBS.js";import"./ZM3EAORZ.js";import"./YCEXTCZD.js";import"./5V53QYYF.js";import"./A36IL72A.js";import{a as o}from"./P7D42LBQ.js";import"./ZFP6AZG7.js";import"./NE7SMAEP.js";import"./2B6D4MGZ.js";import"./HEPYE6RX.js";import"./7GTUV67W.js";import"./USNX342T.js";import{b as e,c as s,h as p,i as n}from"./DKMYTCOT.js";import"./IONZ3SDQ.js";export default $arcgis.t(([{c:l}])=>{var c=".sc-arcgis-hub-site-search-wrapper-h{display:block}",m=c,d=class{constructor(i){n(this,i),this.entity=void 0,this.identifier="",this.type=void 0,this.view="browseAll",this.mode="separate",this.term="",this.loading=!0}get _context(){return l()}async onIdentifierChange(){await this.loadEntity()}async loadEntity(){this.loading=!0,this.type&&this.identifier&&this._context&&(this.entity=await a(this.type,this.identifier,this._context),this.loading=!1)}componentWillLoad(){this.entity?this.loading=!1:!this.entity&&this._context&&this.identifier&&this.type&&this.loadEntity()}get catalogs(){return o(this.entity,"catalogs",[])}get showBrowseAll(){return this.catalogs.length>1}onSearchChange(i){this.term=i.detail}renderLoading(){return e("div",null,"Loading...")}renderContent(){let i=this.mode==="separate";return e(p,null,this.mode==="unified"&&e("arcgis-hub-search-input",{placeholder:"Search..."}),e("calcite-tabs",null,e("calcite-tab-nav",{slot:"title-group"},e("calcite-tab-title",{name:"browseAll",selected:this.view==="browseAll"},"Browse All"),this.catalogs.map((t,r)=>e("calcite-tab-title",{key:r,name:t.title,selected:this.view===t.title},t.emojii," ",t.title))),e("calcite-tab",{name:"browseAll"},e("arcgis-hub-browse-all",{entity:this.entity,mode:"combined",showSearch:i,term:this.term})),this.catalogs.map((t,r)=>e("calcite-tab",{key:r,name:t.title},e("arcgis-hub-catalog",{catalogs:[t],facets:h,layout:"grid",showSearch:i,term:this.term})))))}render(){return e(s,{key:"3119071e2d3e3d2efaf800c214a4866fd5a3363e","data-element":"entity-view-wrapper"},this.loading?this.renderLoading():this.renderContent())}static get watchers(){return{type:["onIdentifierChange"],identifier:["onIdentifierChange"]}}},h=[{label:"Access",key:"access",display:"multi-select",operation:"OR",options:[{label:"Public",key:"public",selected:!1,predicates:[{access:"public"}]},{label:"Shared",key:"shared",selected:!1,predicates:[{access:"shared"}]},{label:"Org",key:"org",selected:!1,predicates:[{access:"org"}]},{label:"Mine",key:"mine",selected:!1,predicates:[{owner:"dbouwman_dc"}]}]},{label:"Types",key:"types",display:"multi-select",pageSize:4,operation:"OR",options:[{label:"Projects",key:"projects",selected:!1,predicates:[{type:"Hub Project"}]},{label:"Web Maps",key:"webmaps",selected:!1,predicates:[{type:"Web Map"}]},{label:"Sites",key:"sites",selected:!1,predicates:[{type:"Hub Site Application"}]},{label:"Services",key:"services",selected:!1,predicates:[{type:["Feature Service","Map Service"]}]},{label:"Apps",key:"apps",selected:!1,predicates:[{type:{any:["Code Sample","Web Mapping Application","Mobile Application","Application","Desktop Application Template","Desktop Application","Operation View","Dashboard","Operations Dashboard Extension","Workforce Project","Insights Workbook","Insights Page","Insights Model","Hub Page","Hub Initiative","Hub Site Application","StoryMap","Web Experience","Web Experience Template","Form"],not:["Code Attachment","Featured Items","Symbol Set","Color Set","Windows Viewer Add In","Windows Viewer Configuration","Map Area","Indoors Map Configuration"]},typekeywords:{not:["MapAreaPackage","SMX"]}}]},{label:"Story Maps",key:"storymaps",selected:!1,predicates:[{type:"StoryMap"},{type:"Web Mapping Application",typekeywords:"Story Map"}]},{label:"Dashboards",key:"dashboards",selected:!1,predicates:[{type:"Dashboard",typekeywords:{any:["Dashboard"],not:["ArcGIS Operation View","Add In","Extension"]}}]},{label:"Document",key:"documents",selected:!1,predicates:[{typekeywords:{any:["Document"],not:["MapAreaPackage","SMX"]},type:{any:["Image","Layout","Desktop Style","Project Template","Report Template","Pro Report","Statistical Data Collection","360 VR Experience","netCDF","PDF","CSV","Administrative Report","Raster function template"],not:["Image Service","Explorer Document","Explorer Map","Globe Document","Scene Document","Code Attachment","Featured Items","Symbol Set","ColorSet","Windows Viewer Add In","Windows Viewer Configuration","Map Area","Indoors Map Configuration"]}}]}]}];d.style=m;return d},b)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import e from"./VFVNN33U.js";import"./6IRHI22W.js";import"./AJOXWMDO.js";import"./W6GBJ4BL.js";import{a as u}from"./WU3HYV7B.js";import"./PM6CSPJD.js";import"./DYGPQ2O2.js";import{a as h}from"./AJKLRRS4.js";import{a as c}from"./37IO4VH2.js";import a from"./BU6RNCBS.js";import"./ZM3EAORZ.js";import{a as p}from"./YCEXTCZD.js";import"./5V53QYYF.js";import"./A36IL72A.js";import"./P7D42LBQ.js";import"./ZFP6AZG7.js";import"./NE7SMAEP.js";import"./2B6D4MGZ.js";import"./HEPYE6RX.js";import"./7GTUV67W.js";import"./USNX342T.js";import{b as m,e as d,i as b}from"./DKMYTCOT.js";import"./IONZ3SDQ.js";export default $arcgis.t(([,{d:g}])=>{var P=class{constructor(t){b(this,t),this.arcgisConfigurationEditorFieldInputChange=d(this,"arcgisConfigurationEditorFieldInputChange",7),this.hubTelemetry=d(this,"hubTelemetry",7),this.params=void 0,c(this,"handleCalciteSegmentedControlChange")}handleCalciteSegmentedControlChange(t){this.arcgisConfigurationEditorFieldInputChange.emit(t.target.value),this.hubTelemetry.emit(Object.assign(Object.assign({},p.dictionary.category.interaction.action.select),{label:this.params.telemetryLabel,details:t.target.value}))}renderOptions({schema:t,uiSchema:e,value:f,t:C}){return(t.enum||[]).map((i,o)=>{var r,a,s,n,l;let v=!((r=e.options)===null||r===void 0)&&r.labels?((a=e.options)===null||a===void 0?void 0:a.labels[o])||i:u(e,i,C,{path:"label",fallback:i}),_=((s=e.options)===null||s===void 0?void 0:s.icons)&&((n=e.options)===null||n===void 0?void 0:n.icons[o]),y=((l=e.options)===null||l===void 0?void 0:l.rules)||[];return!g(y[o],this.params.model).includes(h.HIDE)&&m("calcite-segmented-control-item",{checked:i===f,"data-option-index":o,iconStart:_,key:i,value:i},v)})}render(){var t;return m("calcite-segmented-control",{key:"b0e94655b1b1f69f744d2a6720829891da288a2b",disabled:this.params.disabled,layout:"horizontal",name:this.params.schema.title,onCalciteSegmentedControlChange:this.handleCalciteSegmentedControlChange,scale:this.params.scale,width:(t=this.params.uiSchema.options)===null||t===void 0?void 0:t.width},this.renderOptions(this.params))}};return P},a,e)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{b as _}from"./CH532URJ.js";import{b as f}from"./UOAJQR2X.js";import{a as C}from"./PM6CSPJD.js";import{a as b}from"./WJFIZ6DL.js";import"./LVCMKKG7.js";import{a as y}from"./37IO4VH2.js";import{a as v}from"./UCNRE4DW.js";import"./4QEFMWHF.js";import"./J2P53GWU.js";import a from"./BU6RNCBS.js";import"./ZM3EAORZ.js";import{a as g}from"./YCEXTCZD.js";import"./5V53QYYF.js";import"./A36IL72A.js";import"./P7D42LBQ.js";import"./ZFP6AZG7.js";import"./NE7SMAEP.js";import"./2B6D4MGZ.js";import{s as u}from"./HEPYE6RX.js";import{a as p}from"./7GTUV67W.js";import"./USNX342T.js";import{b as o,c as S,d as I,e as m,h as d,i as k}from"./DKMYTCOT.js";import"./IONZ3SDQ.js";export default $arcgis.t(([{c:w,j:E}])=>{function T(e,t){let i;if(e.length===0)return{targetEntity:t,filters:[{operation:"OR",predicates:[{type:["Code Attachment"]}]}]};switch(t){case"user":i={targetEntity:t,filters:[{operation:"OR",predicates:[{username:e}]}]};break;default:i={targetEntity:t,filters:[{operation:"OR",predicates:[{id:e}]}]}}return i}var G='hub-field-input-gallery-picker .gallery-picker__selected-entities{margin-bottom:1.5rem}hub-field-input-gallery-picker calcite-list-item [slot="actions-start"]{margin-top:10px;margin-left:0.75rem}hub-field-input-gallery-picker calcite-list-item{--calcite-font-size--2:var(--calcite-font-size--1);--tw-shadow:var(--twShadowNew, 0 1px 0 var(--calcite-color-border-3))}hub-field-input-gallery-picker calcite-link{display:flex;flex-direction:column;align-items:center;justify-content:center}hub-field-input-gallery-picker .gallery-picker__button-container{display:flex;flex-wrap:wrap;gap:0.75rem}arcgis-hub-gallery{margin-bottom:1rem}calcite-list-item>calcite-button{margin-inline-end:0.25rem}',P=G,O=function(e,t,i,l){var n=arguments.length,s=n<3?t:l===null?l=Object.getOwnPropertyDescriptor(t,i):l,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,i,l);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(n<3?a(s):n>3?a(t,i,s):a(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s},R=class{connectedCallback(){E(this)}disconnectedCallback(){this.disconnectContext()}constructor(e){k(this,e),this.arcgisConfigurationEditorFieldInputChange=m(this,"arcgisConfigurationEditorFieldInputChange",7),this.hubTelemetry=m(this,"hubTelemetry",7),this.setTriggerElement=t=>{this.triggerElement=t},this.handleHubTelemetry=t=>{t.stopPropagation(),this.hubTelemetry.emit(Object.assign({details:this.params.telemetryLabel},t.detail))},this.handleAddContentComplete=t=>{t.stopPropagation(),this.selectedIds=[...this.selectedIds,t.detail.entities[0].id],this.gallerySelection[this.targetEntity]=this.selectedIds,this.arcgisConfigurationEditorFieldInputChange.emit(this.selectedIds)},this.params=void 0,this.styles=void 0,this.isMobile=!1,this._context=w(),this.inaccessibleContentIds=[],this.isOpen=!1,this.gallerySelection=void 0,this.selectedIds=void 0,this.triggerElement=void 0,y(this,"handleGalleryPickerSelectionUpdate","handleGalleryPickerOpen","handleGalleryPickerClose","handleAddContentComplete","handleArcgisHubGalleryResultsChange","handleInaccessibleContentRemove")}async componentWillLoad(){this.selectedIds=Array.isArray(this.params.value)?this.params.value:[],this.gallerySelection=this.convertEntityIdsToGallerySelection(),this.intl=await v.loadIntlForComponent(this.element)}async onParamsChange(){let e=this.selectedIds||[],t=Array.isArray(this.params.value)?this.params.value:[],i=t.some(n=>!e.includes(n)),l=e.some(n=>!t.includes(n));(i||l)&&(this.selectedIds=t,this.gallerySelection=this.convertEntityIdsToGallerySelection())}get targetEntity(){var e,t;return((t=(e=this.params.uiSchema)===null||e===void 0?void 0:e.options)===null||t===void 0?void 0:t.targetEntity)||"item"}get limit(){var e,t;return(t=(e=this.params)===null||e===void 0?void 0:e.schema)===null||t===void 0?void 0:t.maxItems}get selectionMode(){return this.params.schema.maxItems===1?"single":"multiple"}get canReorder(){var e,t,i,l,n,s;let a=!0;return C((i=(t=(e=this.params)===null||e===void 0?void 0:e.uiSchema)===null||t===void 0?void 0:t.options)===null||i===void 0?void 0:i.canReorder)||(a=(n=(l=this.params.uiSchema)===null||l===void 0?void 0:l.options)===null||n===void 0?void 0:n.canReorder),a&&((s=this.selectedIds)===null||s===void 0?void 0:s.length)>1}get pickerTitle(){var e,t;let i,l=((t=(e=this.params.uiSchema)===null||e===void 0?void 0:e.options)===null||t===void 0?void 0:t.pickerTitle)&&_(this.params.uiSchema,this.params.t,"options.pickerTitle");return l?i=l:i=this.limit===1?this.intl.t(`select${u(this.targetEntity)}`):this.intl.t(`select${u(this.targetEntity)}s`),i}get query(){return T(this.selectedIds,this.targetEntity)}get allowRemoveAction(){var e,t,i,l;return!((t=(e=this.params.uiSchema)===null||e===void 0?void 0:e.options)===null||t===void 0)&&t.hasOwnProperty("allowRemove")?(l=(i=this.params.uiSchema)===null||i===void 0?void 0:i.options)===null||l===void 0?void 0:l.allowRemove:!0}get actionLinks(){let e=[];return this.allowRemoveAction&&e.push({action:"remove",ariaLabel:this.intl.t("remove"),buttonStyle:"outline",disabled:this.params.disabled,icon:"x",label:this.intl.t("remove")}),e}get _showThumbnail(){var e;return(e=p(this.params,"uiSchema.options.showThumbnail"))!==null&&e!==void 0?e:!0}convertEntityIdsToGallerySelection(){return{[this.targetEntity]:this.params.value}}convertGallerySelectionToEntityIds(e){return e[this.targetEntity]}handleGalleryPickerOpen(){this.isOpen=!0}handleGalleryPickerClose(){this.isOpen=!1}handleGalleryPickerSelectionUpdate(e){let t=this.convertGallerySelectionToEntityIds(e.detail);this.selectedIds=t,this.arcgisConfigurationEditorFieldInputChange.emit(t),this.isOpen=!1}handleArcgisHubGalleryResultsChange(e){let t=e.detail.map(i=>i.id);this.inaccessibleContentIds=this.selectedIds.filter(i=>!t.includes(i))}actionHandler(e){e.detail.action==="remove"&&this.handleGallerySelectionRemove(e)}handleGallerySelectionRemove(e){let t=e.detail.model.id;this.handleSelectionRemove(t)}handleInaccessibleContentRemove(e){let t=e.target.getAttribute("data-id");this.handleSelectionRemove(t),this.inaccessibleContentIds=this.inaccessibleContentIds.filter(i=>i!==t)}handleSelectionRemove(e){this.selectedIds=this.selectedIds.filter(i=>i!==e),this.gallerySelection[this.targetEntity]=this.gallerySelection[this.targetEntity].filter(i=>i!==e),this.arcgisConfigurationEditorFieldInputChange.emit(this.selectedIds);let t={item:"content",group:"groups",user:"users",channel:"channel"}[this.targetEntity]||"content";this.hubTelemetry.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.remove.label[t]),{details:this.params.telemetryLabel,count:this.selectedIds.length}))}handleSelectEntitiesOrderChange(e){let{oldIndex:t,newIndex:i}=e.detail,l=[...this.selectedIds],[n]=l.splice(t,1);l.splice(i,0,n),this.selectedIds=l,this.gallerySelection[this.targetEntity]=l,this.arcgisConfigurationEditorFieldInputChange.emit(l)}renderSelectedEntities(){var e,t,i,l,n;return o(d,null,o("arcgis-hub-gallery",{cardActionLinks:this.actionLinks,include:(t=(e=this.params.uiSchema)===null||e===void 0?void 0:e.options)===null||t===void 0?void 0:t.include,layout:"compact",limit:this.selectedIds.length,linkTarget:(n=(l=(i=this.params.uiSchema)===null||i===void 0?void 0:i.options)===null||l===void 0?void 0:l.linkTarget)!==null&&n!==void 0?n:"siteRelative",mobileView:this.isMobile,onArcgisHubGalleryResultsChange:this.handleArcgisHubGalleryResultsChange,query:this.query,reorderable:this.canReorder,showEmptyState:!1,showThumbnail:this._showThumbnail,sortByIds:this.selectedIds}),this.inaccessibleContentIds.length>0&&this.renderInaccessibleContent())}renderGalleryPickerButton(){var e,t,i,l,n,s,a,r,c,h;let A=!((t=(e=this.params.uiSchema)===null||e===void 0?void 0:e.options)===null||t===void 0)&&t.appearance?(l=(i=this.params.uiSchema)===null||i===void 0?void 0:i.options)===null||l===void 0?void 0:l.appearance:!((s=(n=this.params.uiSchema)===null||n===void 0?void 0:n.options)===null||s===void 0)&&s.showAddContent?"solid":"outline-fill";return o(d,null,o("calcite-button",{appearance:A,class:"gallery-picker__select",disabled:this.isOpen||this.params.disabled,kind:(r=(a=this.params.uiSchema)===null||a===void 0?void 0:a.options)===null||r===void 0?void 0:r.kind,label:this.pickerTitle,onClick:this.handleGalleryPickerOpen,ref:this.setTriggerElement,round:!0,width:(h=(c=this.params.uiSchema)===null||c===void 0?void 0:c.options)===null||h===void 0?void 0:h.width},this.pickerTitle))}renderGalleryPicker(){var e,t,i,l,n,s,a;return o("arcgis-wormhole",{elAttributes:{unthemed:""}},o("arcgis-hub-gallery-picker",{catalogs:(t=(e=this.params.uiSchema)===null||e===void 0?void 0:e.options)===null||t===void 0?void 0:t.catalogs,facets:(l=(i=this.params.uiSchema)===null||i===void 0?void 0:i.options)===null||l===void 0?void 0:l.facets,gallerySelection:this.gallerySelection,isMobile:this.isMobile,limit:this.limit,linkTarget:"siteRelative",modalOptions:(n=this.params.uiSchema)===null||n===void 0?void 0:n.options,modalTitle:this.pickerTitle,onArcgisHubGalleryPickerClose:this.handleGalleryPickerClose,onArcgisHubGalleryPickerSelectionUpdate:this.handleGalleryPickerSelectionUpdate,onHubTelemetry:this.handleHubTelemetry,open:this.isOpen,selectionMode:this.selectionMode,showAllCollectionFacet:(a=(s=this.params.uiSchema)===null||s===void 0?void 0:s.options)===null||a===void 0?void 0:a.showAllCollectionFacet,showSearch:!0,targetEntity:this.targetEntity,triggerElement:this.triggerElement}))}get addContentConfig(){var e,t;let i=((t=(e=this.params.uiSchema)===null||e===void 0?void 0:e.options)===null||t===void 0?void 0:t.addContentTypes)||f(this._context,[this.targetEntity]);return{state:"enabled",create:{workflow:"create",targetEntity:this.targetEntity,types:i}}}get shouldRenderSelectButton(){var e,t,i,l;let n=this.selectedIds.length<this.limit||this.limit===void 0;return!((t=(e=this.params.uiSchema)===null||e===void 0?void 0:e.options)===null||t===void 0)&&t.hasOwnProperty("showSelect")?((l=(i=this.params.uiSchema)===null||i===void 0?void 0:i.options)===null||l===void 0?void 0:l.showSelect)&&n:n}get shouldRenderAddContent(){var e,t;return((t=(e=this.params.uiSchema)===null||e===void 0?void 0:e.options)===null||t===void 0?void 0:t.showAddContent)&&(this.limit===void 0||this.selectedIds.length<this.limit)}renderAddContentPicker(){var e,t;return o("arcgis-hub-add-content",{allowGroupSelection:(t=(e=this.params.uiSchema)===null||e===void 0?void 0:e.options)===null||t===void 0?void 0:t.allowGroupSelection,buttonProps:{appearance:"outline-fill",disabled:this.params.disabled},config:this.targetEntity==="item"?this.addContentConfig:null,entityType:this.targetEntity,onArcgisHubAddContentWorkflowComplete:this.handleAddContentComplete})}renderInaccessibleContent(){let e=this.targetEntity==="item"||!this.targetEntity?"content":this.targetEntity;return o(d,null,this.inaccessibleContentIds.map(t=>o("calcite-list-item",{appearance:"outline",description:this.intl.t(`inaccessibleContent.${e}Description`),"icon-start":"exclamation-mark-triangle","interaction-mode":"static",label:this.intl.t("inaccessibleContent.label",{type:e,id:t}),"selection-mode":"none"},this.allowRemoveAction&&this.renderRemoveAction(t,e))))}renderRemoveAction(e,t){return o("calcite-button",{appearance:"outline","data-id":e,disabled:this.params.disabled,iconEnd:"x",label:this.intl.t("inaccessibleContent.removeActionAriaLabel",{type:t}),onClick:this.handleInaccessibleContentRemove,round:!0,slot:"actions-end"})}render(){return o(S,{key:"6f6119239bb1b29d4adff3d8941cabae62381cec","data-element":"gallery-picker-field",style:this.styles},!!this.selectedIds.length&&this.renderSelectedEntities(),o("div",{key:"22eba5577d086054662cef23b78b30aedc3af1ed",class:"gallery-picker__button-container"},this.shouldRenderSelectButton&&this.renderGalleryPickerButton(),this.shouldRenderAddContent&&this.renderAddContentPicker()),this.isOpen&&this.renderGalleryPicker())}static get assetsDirs(){return["locales"]}get element(){return I(this)}static get watchers(){return{params:["onParamsChange"]}}};O([b("selectedIds","targetEntity")],R.prototype,"query",null);R.style=P;return R},a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{b as f}from"./N6GGGJDB.js";import{b as c}from"./6F3NCMF3.js";import{a as p}from"./AJKLRRS4.js";import"./YLRR2XFD.js";import{N as u}from"./VXJI546E.js";import"./ZQPTNYU6.js";import"./UCUSWPVC.js";import"./HTYDCXX6.js";import"./LDJN5446.js";import"./6LDEVQEO.js";import"./2NJPYBHN.js";import"./635V3Q2N.js";import"./3MGFA2AN.js";import"./2WQEISGF.js";import"./CBIG4EMI.js";import"./IXINH2FU.js";import"./UJKN7G7W.js";import"./K3HMF5GC.js";import"./NPWIO5CS.js";import"./B6CP7FIT.js";import"./XP6ZXTST.js";import{a as m}from"./WJFIZ6DL.js";import{a as y}from"./ZVGAVULD.js";import"./V3U3RRL7.js";import"./LVCMKKG7.js";import"./UR5INQGU.js";import"./GJINUBO7.js";import"./5GNQYAFV.js";import"./BHYFMWFH.js";import"./47ZOSUE6.js";import"./JI5AIZ2W.js";import"./SVAOM6PB.js";import"./WTJOWA2D.js";import"./II3OUQDN.js";import"./HSFPILSC.js";import"./2W2UGJLH.js";import"./XI72UBIK.js";import"./H3CSIYXV.js";import"./46NFE3O2.js";import"./MUN2QI43.js";import"./U2H7HOIC.js";import"./IEDSJLNB.js";import"./NR4ANSZX.js";import"./I3LGHXIN.js";import"./S2TL4ARK.js";import"./WBUC7HJI.js";import"./SD326B2E.js";import"./HZHPBMYE.js";import"./MYXIS5RQ.js";import"./Y7N6UKCC.js";import"./H2V2RZ6M.js";import"./CU2TSBCT.js";import"./OQOFL4GS.js";import"./KUB4GMLQ.js";import"./FDDXGLRF.js";import"./RGKBSVQD.js";import"./FZ7ZK37I.js";import"./RL2IUUBA.js";import{a as k}from"./UCNRE4DW.js";import"./4QEFMWHF.js";import"./J2P53GWU.js";import a from"./BU6RNCBS.js";import"./ZM3EAORZ.js";import"./YCEXTCZD.js";import"./5V53QYYF.js";import"./A36IL72A.js";import"./P7D42LBQ.js";import"./ZFP6AZG7.js";import"./NE7SMAEP.js";import"./2B6D4MGZ.js";import{a as d,g as h}from"./HEPYE6RX.js";import"./7GTUV67W.js";import"./USNX342T.js";import{b as r,c as g,d as b,e as _,h as v,i as L}from"./DKMYTCOT.js";import"./IONZ3SDQ.js";export default $arcgis.t(([{c:E}])=>{var K={type:"object",required:["label"],properties:{source:{type:"string",default:"external",enum:["external","content"]},label:{type:"string"},description:{type:"string"},href:{type:"string"},contentId:{type:"array",maxItems:1,items:{type:"string"}},section:{type:"string"}},allOf:[{if:{properties:{source:{const:"external"},href:{minLength:1}}},then:{properties:{href:{format:"url"}}}},{if:{required:["source"],properties:{source:{const:"external"}}},then:{required:["href"]}},{if:{required:["source"],properties:{source:{const:"content"}}},then:{required:["contentId"],properties:{contentId:{not:{const:[]}}}}}]},S=i=>{let e=[],t=i.type==="block"?"block":`button${i.links.findIndex(n=>n.key===i.editKey)+1}`;return i.type==="block"&&(e=A(i.links)),{type:"Layout",elements:[{type:"Section",labelKey:`linkEditor.title.${t}`,options:{section:"card",actions:[{action:"delete",slot:"footer-start",label:"Delete",kind:"danger",appearance:"transparent",round:!0},{action:"cancel",slot:"footer-end",label:"Cancel",appearance:"transparent",kind:"neutral",round:!0},{action:"save",slot:"footer-end",label:"Save",round:!0,disableWhenInvalid:!0}]},elements:[{scope:"/properties/source",type:"Control",options:{control:"hub-field-input-radio",labels:["{{linkEditor.link.source.external.label:translate}}","{{linkEditor.link.source.content.label:translate}}"]}},{scope:"/properties/label",labelKey:"linkEditor.link.label.label",type:"Control",options:{helperText:{labelKey:`linkEditor.link.label.helperText.${i.type}`},messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"linkEditor.link.label.requiredError"}]}},...i.type==="block"?[{scope:"/properties/description",labelKey:"linkEditor.link.description.label",type:"Control",options:{helperText:{labelKey:"linkEditor.link.description.helperText"}}}]:[],{scope:"/properties/href",labelKey:"linkEditor.link.href.label",type:"Control",rule:{effect:p.HIDE,condition:{scope:"/properties/source",schema:{const:"content"}}},options:{messages:[{type:"ERROR",keyword:"minLength",icon:!0,labelKey:"linkEditor.link.href.requiredError"},{type:"ERROR",keyword:"format",icon:!0,labelKey:"linkEditor.link.href.formatError"},{type:"ERROR",keyword:"if",hidden:!0}]}},{scope:"/properties/contentId",labelKey:"linkEditor.link.contentId.label",type:"Control",rule:{effect:p.HIDE,condition:{scope:"/properties/source",schema:{const:"external"}}},options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:i.catalogs,facets:i.facets,messages:[{type:"ERROR",keyword:"not",icon:!0,labelKey:"linkEditor.link.contentId.requiredError"}],showAllCollectionFacet:!0}},...i.type==="block"?[{scope:"/properties/section",labelKey:"linkEditor.link.section.label",type:"Control",options:{control:"hub-field-input-combobox",items:e,selectionMode:"single",disabled:!e.length,placeholder:e.length?"{{linkEditor.link.section.placeholder.notSet:translate}}":"{{linkEditor.link.section.placeholder.noSections:translate}}"}}]:[]]}]}},A=i=>i.reduce((e,t)=>(t.kind==="section"&&e.push({value:t.key,label:t.label}),e),[]),I={type:"object",required:["label"],properties:{label:{type:"string"},description:{type:"string"}}},x={type:"layout",elements:[{type:"Section",labelKey:"sectionEditor.title",options:{section:"card",actions:[{action:"delete",slot:"footer-start",label:"Delete",kind:"danger",appearance:"outline",round:!0},{action:"cancel",slot:"footer-end",label:"Cancel",appearance:"outline",round:!0},{action:"save",slot:"footer-end",label:"Save",round:!0,disableWhenInvalid:!0}]},elements:[{scope:"/properties/label",labelKey:"sectionEditor.section.label.label",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"sectionEditor.section.label.requiredError"}]}},{scope:"/properties/description",labelKey:"sectionEditor.section.description.label",type:"Control"},{type:"Slot",options:{name:"delete-warning"}}]}]};function O(i,e){let t=i[e]||[];return t.length?{targetEntity:e,filters:[{operation:"OR",predicates:[{id:t}]}]}:null}var R='hub-composite-input-action-links>calcite-sortable-list{margin-top:1.5rem}[slot="actions-end"]{display:flex}calcite-link calcite-action{height:100%}calcite-link.content-link{display:block}.action-links__add calcite-button:not(:first-child){margin-left:0.5rem}.action-links__section calcite-sortable-list{margin-left:1.5rem}',w=R,F=function(i,e,t,n){var o=arguments.length,s=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(l=i[a])&&(s=(o<3?l(s):o>3?l(e,t,s):l(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s},C=class{constructor(i){L(this,i),this.arcgisCompositeActionLinksFieldChange=_(this,"arcgisCompositeActionLinksFieldChange",7),this._linkSchema=d(K),this._sectionSchema=d(I),this._sectionUiSchema=d(x),this.findLinkByKey=(e,t=this._links)=>f(t,o=>o?.key===e),this.translationFunc=(e,t,n)=>this.intl.t(e,t,n),this.resetUnsavedChanges=()=>{this._unsavedChanges=[...this._links],this._editKey=void 0,this._showDeleteWarning=!1},this.setInternalLinkHref=async e=>{var t,n,o;if(e._href="",e.contentId){let s=O({item:e?.contentId},"item"),l={requestOptions:(t=this._context)===null||t===void 0?void 0:t.hubRequestOptions},a=await u(s,l);a?.results.length&&(!((n=a.results[0].links)===null||n===void 0)&&n.siteRelative)&&(e._href=(o=a.results[0].links)===null||o===void 0?void 0:o.siteRelative)}return e},this.handleAddLink=e=>{let t=e.currentTarget.getAttribute("data-type")==="section";this.resetUnsavedChanges();let n=h("link"),o=t?{key:n,kind:"section",label:void 0,description:void 0,children:[]}:{key:n,kind:"external",source:"external",href:void 0,icon:void 0,label:void 0,description:void 0};this._links=[...this._links,o],this._unsavedChanges=this._links,this._editKey=n},this.handleEditLink=e=>{let t=this._editKey,n=e.currentTarget.getAttribute("data-key");t===n?this.resetUnsavedChanges():this._editKey=n},this.handleDeleteLink=()=>{var e;let t=this.findLinkByKey(this._editKey);t.kind==="section"&&(!((e=t.children)===null||e===void 0)&&e.length)?this._showDeleteWarning=!0:(this._links=c(this._links,n=>n?.key!==this._editKey),this.resetUnsavedChanges(),this.arcgisCompositeActionLinksFieldChange.emit(this.transformLinksToEmit(this._links)))},this.handleSaveLink=()=>{let e=this.findLinkByKey(this._editKey),t=this.findLinkByKey(this._editKey,this._unsavedChanges);if(this._links=[...this._unsavedChanges],e.section!==t.section){this._links=c(this._links,o=>o?.key!==this._editKey);let n=this.findLinkByKey(t.section);n?n.children.push(t):this._links.push(t)}this.resetUnsavedChanges(),this.arcgisCompositeActionLinksFieldChange.emit(this.transformLinksToEmit(this._links))},this.handleLinkEditorChange=e=>{let t=e.currentTarget.getAttribute("data-key"),n=d(this._unsavedChanges),o=this.findLinkByKey(t,n);Object.entries(e.detail.values).forEach(([s,l])=>{o[s]=l,s==="source"&&(o.kind=l,l==="external"?delete o.contentId:l==="content"&&delete o.href),o.kind==="content"&&s==="contentId"&&this.setInternalLinkHref(o)}),this._unsavedChanges=n},this.handleCancelLink=()=>{!this.findLinkByKey(this._editKey).label&&(this._links=c(this._links,n=>n?.key!==this._editKey)),this.resetUnsavedChanges()},this.handleLinkEditorAction=e=>{let{action:t}=e.detail;t==="save"?this.handleSaveLink():t==="delete"?this.handleDeleteLink():t==="cancel"&&this.handleCancelLink()},this.handleLinkOrderChange=e=>{var t;let n=((t=e.target)===null||t===void 0?void 0:t.children)||[],o=Array.from(n).map(l=>l.getAttribute("data-key")),s=[...this._links];s.sort(function(l,a){return o.indexOf(l.key)-o.indexOf(a.key)}),this._links=s,this.arcgisCompositeActionLinksFieldChange.emit(this.transformLinksToEmit(this._links))},this.links=[],this.catalogs=void 0,this.facets=void 0,this.type="block",this._links=void 0,this._editKey=void 0,this._showDeleteWarning=void 0}async componentWillLoad(){this.intl=await k.loadIntlForComponent(this.element),this._links=await this.transformLinksForEditor(this.links),this._unsavedChanges=this._links}get _context(){return E()}get _linkUiSchema(){return y(this.intl,S({catalogs:this.catalogs,facets:this.facets,type:this.type,links:this._links,editKey:this._editKey}))}async transformLinksForEditor(i,e){return Promise.all(i.map(async t=>{var n;let o=Object.assign(Object.assign({},t),{key:h("link")});return t.kind==="section"&&(!((n=t.children)===null||n===void 0)&&n.length)&&(o.children=await this.transformLinksForEditor(t.children,o)),t.kind==="content"&&t.contentId&&(o.contentId=[t.contentId],await this.setInternalLinkHref(o)),t.kind!=="section"&&(o.source=t.kind),e&&(o.section=e.key),o}))}transformLinksToEmit(i){return d(i).map(e=>{let t=Object.assign({},e);return e.kind==="section"&&(t.children=this.transformLinksToEmit(e.children)),delete t.source,delete t.key,delete t.section,e.kind==="content"&&e.contentId.length&&(t.contentId=e.contentId[0],delete t._href),t})}renderLinks(i=[]){return r("calcite-block-group",{"drag-enabled":!0,onCalciteBlockGroupOrderChange:this.handleLinkOrderChange},i.map(e=>e.kind==="section"?this.renderSection(e,i.length>1):this.renderLink(e,i.length>1)))}renderSection(i,e){return i.label?r("div",{class:"action-links__section","data-key":i.key},r("calcite-block",{description:i.description,"drag-handle":e,expanded:this._editKey===i.key,heading:i.label,key:i.key},i.icon&&r("div",{slot:"icon-start"},r("calcite-icon",{icon:i.icon})),r("div",{slot:"actions-end"},this.renderBlockActions(i.key)),this._editKey===i.key&&this.renderSectionEditor()),this.renderLinks(i.children)):this.renderSectionEditor()}renderLink(i,e){return i.label?r("calcite-block",{"data-key":i.key,description:i.description,"drag-handle":e,expanded:this._editKey===i.key,heading:i.label,key:i.key},i.icon&&r("div",{slot:"icon-start"},r("calcite-icon",{icon:i.icon})),r("div",{slot:"actions-end"},this.renderBlockActions(i.key)),this._editKey===i.key&&this.renderLinkEditor()):this.renderLinkEditor()}renderBlockActions(i){let e=this.findLinkByKey(i),t=e.kind==="external"?e.href:e._href;return r(v,null,r("calcite-action",{"data-key":e.key,icon:"pencil",onClick:this.handleEditLink,text:""}),e.kind==="section"?r("calcite-action",{disabled:!0,icon:"chevron-down",text:""}):r("calcite-link",{class:"content-link",href:t,rel:"noreferrer",target:"_blank"},r("calcite-action",{"data-key":e.key,icon:"launch",label:this.intl.t("linkEditor.preview"),text:""})))}renderSectionEditor(){let i=this.findLinkByKey(this._editKey);return i&&r("arcgis-configuration-editor",{"data-key":i.key,onArcgisConfigurationEditorChange:this.handleLinkEditorChange,onArcgisConfigurationEditorSectionAction:this.handleLinkEditorAction,schema:this._sectionSchema,t:this.translationFunc,uiSchema:this._sectionUiSchema,values:i},this._showDeleteWarning&&r("calcite-notice",{icon:"exclamation-mark-triangle",kind:"warning",open:!0,slot:"delete-warning"},r("div",{slot:"title"},this.intl.t("deleteNotice.title")),r("div",{slot:"message"},this.intl.t("deleteNotice.message"))))}renderLinkEditor(){let i=this.findLinkByKey(this._editKey);return i&&r("arcgis-configuration-editor",{"data-key":i.key,onArcgisConfigurationEditorChange:this.handleLinkEditorChange,onArcgisConfigurationEditorSectionAction:this.handleLinkEditorAction,schema:this._linkSchema,t:this.translationFunc,uiSchema:this._linkUiSchema,values:i})}renderAddButtons(){var i,e,t,n,o;return this.type==="block"?[r("calcite-button",{disabled:this._editKey,key:"primary",onClick:this.handleAddLink,round:!0},this.intl.t("addLink")),r("calcite-button",{appearance:"outline-fill","data-type":"section",disabled:this._editKey,key:"secondary",onClick:this.handleAddLink,round:!0},this.intl.t("addSection"))]:[r("calcite-button",{appearance:"outline-fill","data-key":(i=this._links[0])===null||i===void 0?void 0:i.key,key:"primary",kind:"neutral",onClick:this._links[0]?this.handleEditLink:this.handleAddLink,round:!0},!((e=this._links[0])===null||e===void 0)&&e.label?this._links[0].label:this.intl.t("addFirstAction")),!!(!((t=this._links[0])===null||t===void 0)&&t.label)&&r("calcite-button",{appearance:"outline-fill","data-key":(n=this._links[1])===null||n===void 0?void 0:n.key,key:"secondary",kind:"neutral",onClick:this._links[1]?this.handleEditLink:this.handleAddLink,round:!0},!((o=this._links[1])===null||o===void 0)&&o.label?this._links[1].label:this.intl.t("addSecondAction"))]}render(){return r(g,{key:"7037003e565236978756d0fd36ff8bd6556cccb7","data-element":"action-links-field"},r("div",{key:"ff276a1236381877b3d61d539885a574585203f8",class:"action-links__add"},this.renderAddButtons()),!!this._links.length&&this.renderLinks(this._links))}static get assetsDirs(){return["locales"]}get element(){return b(this)}};F([m("_links","_editKey")],C.prototype,"_linkUiSchema",null);C.style=w;return C},a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as b}from"./P7D42LBQ.js";import{d as c}from"./2B6D4MGZ.js";import{a as u}from"./7GTUV67W.js";function l(t,e,r,s,n,a){let i={[n]:{targetEntity:n,filters:r}};return{schemaVersion:1,title:a||`{{${t}catalog.${e}:translate}}`,scopes:i,collections:s}}function m(t){let e=t.trustedOrgs.find(r=>r.from.orgId===t.currentUser.orgId);return t.isCommunityOrg&&e?e.to.orgId:t.communityOrgId}var v=["myContent","favorites","organization","world","partners","community","livingAtlas"],E=["editGroups","viewGroups","allGroups","myGroups","orgGroups","communityGroups","publicGroups"],y=["myEvents","orgEvents","worldEvents"];function f(t){return t&&t.slice(-1)!=="."?`${t}.`:t}function j(t,e,r,s,n){let a={item:[...v],group:[...E],event:[...y]}[e];if(r.some(i=>!a.includes(i)))throw new Error(`Requested catalogs must be of the same targetEntity type: ${e}`);return r.map(i=>w(t,i,e,Object.assign(Object.assign({},n||{}),{user:s.currentUser,context:s})))}function w(t,e,r,s){switch(r){case"item":return O(t,e,s);case"group":return I(t,e,s);case"event":return A(t,e,s);default:throw new Error(`Wellknown catalog not implemented for "${r}"`)}}function d(t,e){if(!e||!e.user)throw new Error(`User needed to get "${t}" catalog`)}function O(t,e,r){t=f(t);let s,n=u(r,"filters")||[],a=u(r,"context"),i=G(t,"item",r?.collectionNames);switch(e){case"myContent":d(e,r),s=l(t,e,[{predicates:[{owner:r.user.username}]},...n],i,"item");break;case"favorites":d(e,r),s=l(t,e,[{predicates:[{group:r.user.favGroupId}]},...n],i,"item");break;case"organization":d(e,r),s=l(t,e,[{predicates:[{orgid:r.user.orgId}]},...n],i,"item");break;case"partners":let o=a.trustedOrgIds.filter(p=>p!==a.currentUser.orgId&&p!==m(a));o.length&&(s=l(t,e,[{predicates:[{orgid:o,searchUserAccess:"includeTrustedOrgs"}]},...n],i,"item"));break;case"community":let g=m(a);g&&(s=l(t,e,[{predicates:[{orgid:g}]},...n],i,"item",a.isCommunityOrg?h(g,a):void 0));break;case"livingAtlas":d(e,r),s=l(t,e,[{predicates:[{owner:"Esri_LivingAtlas"}]}],i,"item");break;case"world":s=l(t,e,[{predicates:[{type:{not:["code attachment"]}}]},...n],i,"item");break}return s}function h(t,e){return e.trustedOrgs.find(s=>s.to.orgId===t).to.name}function I(t,e,r){let s,{context:n,filters:a=[]}=r||{};t=f(t);let i=[{targetEntity:"group",key:e,label:e,scope:{targetEntity:"group",filters:[{predicates:[{q:"*"}]}]}}],o=b(n,"currentUser.groups",[]).reduce((g,p)=>(p.userMembership.memberType==="admin"&&g.push(p.id),g),[]);switch(e){case"editGroups":d(e,r),s=l(t,e,[{predicates:[{capabilities:["updateitemcontrol"]}]},...a],i,"group");break;case"viewGroups":d(e,r),s=l(t,e,[{predicates:[{capabilities:{not:["updateitemcontrol"]}}]},...a],i,"group");break;case"allGroups":d(e,r),s=l(t,e,[{predicates:[{capabilities:[""]}]},...a],i,"group");break;case"myGroups":d(e,r),s=l(t,e,[{predicates:[{owner:u(n,"currentUser.username")}]},...a],i,"group");break;case"orgGroups":d(e,r),s=l(t,e,[{predicates:[{orgid:u(n,"currentUser.orgId"),searchUserAccess:"groupMember",searchUserName:u(n,"currentUser.username"),isviewonly:!1},{orgid:u(n,"currentUser.orgId"),id:o}]},...a],i,"group");break;case"communityGroups":d(e,r),s=l(t,e,[{predicates:[{orgid:u(n,"communityOrgId"),searchUserAccess:"groupMember",searchUserName:u(n,"currentUser.username"),isviewonly:!1},{orgid:u(n,"communityOrgId"),id:o}]},...a],i,"group");break;case"publicGroups":s=l(t,e,[{predicates:[{orgid:{not:[u(n,"currentUser.orgId")]}}]},...a],i,"group");break}return s}function A(t,e,r){let s,{context:n,filters:a=[]}=r||{};t=f(t);let i=[{key:e,label:e,targetEntity:"event",include:[],scope:{targetEntity:"event",filters:[{predicates:[]}]}}];switch(e){case"myEvents":d(e,r),s=l(t,e,[{predicates:[{owner:u(n,"currentUser.id")}]},...a],i,"event");break;case"orgEvents":d(e,r),s=l(t,e,[{predicates:[{orgid:u(n,"currentUser.orgId")}]},...a],i,"event");break;case"worldEvents":s=l(t,e,[{predicates:[{access:["public","private","org"]}]},...a],i,"event");break}return s}function k(t,e){return{appAndMap:{key:"appAndMap",label:`{{${t}collection.appsAndMaps:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:[...c("app"),...c("map")]}]}]}},dataset:{key:"dataset",label:`{{${t}collection.dataset:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("dataset")}]}]}},document:{key:"document",label:`{{${t}collection.documents:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("document")}]}]}},feedback:{key:"feedback",label:`{{${t}collection.feedback:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("feedback")}]}]}},site:{key:"site",label:`{{${t}collection.sites:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("site")}]}]}},template:{key:"template",label:`{{${t}collection.templates:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("template")}]}]}},project:{key:"project",label:`{{${t}collection.projects:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("project")}]}]}},initiative:{key:"initiative",label:`{{${t}collection.initiatives:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("initiative"),typekeywords:["hubInitiativeV2"]}]}]}},projectAndInitiative:{key:"projectAndInitiative",label:`{{${t}collection.projectsAndInitiatives:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{operation:"OR",predicates:[{type:c("project")},{type:c("initiative"),typekeywords:["hubInitiativeV2"]}]}]}}}}function C(){return["appAndMap","dataset","document","feedback","site","project"]}function G(t,e,r){t=f(t);let s=k(t,e),n=C();return(r?.length?r:n).reduce((i,o)=>(s[o]&&i.push(s[o]),i),[])}function _(t,e,r){return t=f(t),k(t,e)[r]}export{l as a,m as b,v as c,E as d,y as e,f,j as g,w as h,G as i,_ as j};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as c}from"./FDDXGLRF.js";import{b as u}from"./RGKBSVQD.js";import{e as r,h}from"./FZ7ZK37I.js";var a=class e{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let s=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(r(`${s} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(r("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(r('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(r('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new e(this.q+"")}addModifier(t){return this.currentModifer?(r(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(r(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(r(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&r("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function m(e,t){let s;typeof e=="string"||e instanceof a?s={httpMethod:"GET",params:{q:e}}:s=c(e,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let i;switch(t){case"item":i="/search";break;case"group":i="/community/groups";break;case"groupContent":if(typeof e!="string"&&!(e instanceof a)&&e.groupId)i=`/content/groups/${e.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":i="/community/users";break;default:i="/portals/self/users/search";break}let p=u(s)+i;return h(p,s).then(o=>(o.nextStart&&o.nextStart!==-1&&(o.nextPage=function(){let n;return typeof e=="string"||e instanceof a?n={q:e,start:o.nextStart}:(n=e,n.start=o.nextStart),m(n,t)}),o))}function g(e){return m(e,"item")}export{a,m as b,g as c};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/0.37/LICENSE.txt */
2
- import{a as u,b as i}from"./GJRBKC6D.js";import{a as n,b as p}from"./QK2OPJGK.js";import{a as o}from"./ZM3EAORZ.js";async function w(s,a,e){let t=o(s),r;switch(t){case"event":r=await u(a,s,e);break;default:r=s,await p(s.id,a,e.requestOptions,s.owner);break}return r}async function f(s,a,e){let t=o(s),r;switch(t){case"event":r=await i(a,s,e);break;default:r=s,await n(s.id,a,e.requestOptions,s.owner);break}return r}export{w as a,f as b};