@esri/solutions-components 5.1.0-next.2 → 5.1.0-next.21

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 (414) hide show
  1. package/dist/cdn/{SRDPZ2TN.js → 27G6RESZ.js} +1 -1
  2. package/dist/cdn/27JLIL6T.js +2 -0
  3. package/dist/cdn/2B6VLP3A.js +2 -0
  4. package/dist/cdn/{5DGVZVGU.js → 2H7KJUZG.js} +1 -1
  5. package/dist/cdn/2RBKFT3Q.js +2 -0
  6. package/dist/cdn/45ZS4SG7.js +2 -0
  7. package/dist/cdn/{VFSI5MUK.js → 4DFGN2VE.js} +1 -1
  8. package/dist/cdn/4GZBBPZQ.js +2 -0
  9. package/dist/cdn/{USRH3VII.js → 4NALIU6Y.js} +1 -1
  10. package/dist/cdn/5326HZ74.js +2 -0
  11. package/dist/cdn/{AJJFHJJU.js → 57DOBXD6.js} +1 -1
  12. package/dist/cdn/5PUFVAJH.js +2 -0
  13. package/dist/cdn/5QCBD6ZZ.js +2 -0
  14. package/dist/cdn/5S3WZLB5.js +2 -0
  15. package/dist/cdn/{7EZXA5FN.js → 6G7RA3PN.js} +1 -1
  16. package/dist/cdn/6NE73ZT3.js +2 -0
  17. package/dist/cdn/{OKJZS44H.js → 6UXP2Q63.js} +1 -1
  18. package/dist/cdn/{DGMH4RW7.js → 7DHQVMKX.js} +1 -1
  19. package/dist/cdn/{EOZUCQOO.js → 7J2VRW7S.js} +1 -1
  20. package/dist/cdn/7SLUGAMA.js +2 -0
  21. package/dist/cdn/{IUG77ONZ.js → 7ZMHT4SH.js} +1 -1
  22. package/dist/cdn/ABTC2V7J.js +2 -0
  23. package/dist/cdn/{D7AEFBST.js → ACF2RXCB.js} +1 -1
  24. package/dist/cdn/ALB3HUJ2.js +2 -0
  25. package/dist/cdn/{YGZRQS2J.js → ASTBVDA3.js} +1 -1
  26. package/dist/cdn/ATVUAP2X.js +2 -0
  27. package/dist/cdn/AVNCYWKK.js +2 -0
  28. package/dist/cdn/BJMKDP4O.js +2 -0
  29. package/dist/cdn/BMJN3MIR.js +2 -0
  30. package/dist/cdn/BPSXSDMN.js +2 -0
  31. package/dist/cdn/CWEEG5MA.js +2 -0
  32. package/dist/cdn/{JBAXZW3Z.js → D4QQZVLI.js} +1 -1
  33. package/dist/cdn/DJFFGBHM.js +2 -0
  34. package/dist/cdn/{HHTLWYIL.js → DZLVEIWW.js} +1 -1
  35. package/dist/cdn/{Q63OZOAM.js → E57JPXDR.js} +1 -1
  36. package/dist/cdn/E7HQ4JJ2.js +2 -0
  37. package/dist/cdn/EBU4JF4W.js +2 -0
  38. package/dist/cdn/EC6NYTSJ.js +2 -0
  39. package/dist/cdn/EDVUYJ5Q.js +2 -0
  40. package/dist/cdn/EGFXSDFS.js +2 -0
  41. package/dist/cdn/EIVJQY2S.js +2 -0
  42. package/dist/cdn/F7DLM4RF.js +50 -0
  43. package/dist/cdn/{RA43PFSB.js → FFDZB5TW.js} +1 -1
  44. package/dist/cdn/FRWN4Q5V.js +2 -0
  45. package/dist/cdn/{SG6YSE6W.js → FXHBHZKG.js} +1 -1
  46. package/dist/cdn/{X3LGQLCM.js → FZ7WJ3YG.js} +1 -1
  47. package/dist/cdn/G5MDCRT6.js +2 -0
  48. package/dist/cdn/GJFVHF5H.js +2 -0
  49. package/dist/cdn/{ABEE7A5Y.js → GN6MDWLZ.js} +1 -1
  50. package/dist/cdn/GTD4LCLX.js +2 -0
  51. package/dist/cdn/HBJZGW4L.js +2 -0
  52. package/dist/cdn/{UOEDG3M3.js → HBQN25RR.js} +1 -1
  53. package/dist/cdn/HGEF25RL.js +2 -0
  54. package/dist/cdn/HMB3LHBC.js +2 -0
  55. package/dist/cdn/HPQPI754.js +2 -0
  56. package/dist/cdn/I4PUORX4.js +2 -0
  57. package/dist/cdn/I5PBBAVM.js +2 -0
  58. package/dist/cdn/{SB3QR3SO.js → IKN5RLJ4.js} +1 -1
  59. package/dist/cdn/IMPGTDMV.js +2 -0
  60. package/dist/cdn/ITULTY6G.js +2 -0
  61. package/dist/cdn/JCDM3IJE.js +2 -0
  62. package/dist/cdn/JUXXPW6I.js +2 -0
  63. package/dist/cdn/{QUVVORHW.js → K5JYHCQ7.js} +1 -1
  64. package/dist/cdn/{VIOCT3NG.js → K7XOFXRK.js} +1 -1
  65. package/dist/cdn/KD46EE7M.js +2 -0
  66. package/dist/cdn/KPBEUIQV.js +2 -0
  67. package/dist/cdn/KRFYU445.js +2 -0
  68. package/dist/cdn/KSXW3QKP.js +2 -0
  69. package/dist/cdn/{KGALGAAM.js → LCWLPXAF.js} +1 -1
  70. package/dist/cdn/{73MLGNDP.js → LD2NUKM3.js} +1 -1
  71. package/dist/cdn/{IBNSJ46F.js → LDHJGX5G.js} +1 -1
  72. package/dist/cdn/LWUSGNUB.js +2 -0
  73. package/dist/cdn/M7YK4K5M.js +2 -0
  74. package/dist/cdn/{R6SBVSPJ.js → MFJF6OXL.js} +1 -1
  75. package/dist/cdn/{ZJ3KQ7WO.js → MWVSVTGT.js} +1 -1
  76. package/dist/cdn/MZ3QZD4K.js +2 -0
  77. package/dist/cdn/MZLEP53S.js +2 -0
  78. package/dist/cdn/N2KU5PYY.js +2 -0
  79. package/dist/cdn/{AWE3IT6O.js → N2ROUAUM.js} +1 -1
  80. package/dist/cdn/N7HJKCUK.js +2 -0
  81. package/dist/cdn/NDGFJPG7.js +2 -0
  82. package/dist/cdn/{GTDHYS64.js → NGCFEPQE.js} +1 -1
  83. package/dist/cdn/{SOHNIGAO.js → NM3YBQUM.js} +1 -1
  84. package/dist/cdn/NNCQFR7K.js +2 -0
  85. package/dist/cdn/NSITJP7B.js +2 -0
  86. package/dist/cdn/{VZPEYWYR.js → NWTG35WX.js} +1 -1
  87. package/dist/cdn/NYUVCFEV.js +2 -0
  88. package/dist/cdn/{6734MJXK.js → NZS3YVIT.js} +1 -1
  89. package/dist/cdn/{P5XWXDR2.js → OC2DD3AB.js} +1 -1
  90. package/dist/cdn/OMIISLTG.js +2 -0
  91. package/dist/cdn/OMURSGFL.js +2 -0
  92. package/dist/cdn/OQFRVQQZ.js +2 -0
  93. package/dist/cdn/P65BBQ5T.js +2 -0
  94. package/dist/cdn/P6IYN2TS.js +2 -0
  95. package/dist/cdn/POE2XE6Y.js +2 -0
  96. package/dist/cdn/PUCQJ7PY.js +2 -0
  97. package/dist/cdn/PZOAAAVI.js +2 -0
  98. package/dist/cdn/QHG54NVK.js +2 -0
  99. package/dist/cdn/{PALYMJLD.js → QMD2WK5F.js} +1 -1
  100. package/dist/cdn/QNNQGJS4.js +2 -0
  101. package/dist/cdn/{HVD4BQPK.js → QQSP7HQH.js} +1 -1
  102. package/dist/cdn/QWRM254M.js +2 -0
  103. package/dist/cdn/QZ3GHISD.js +2 -0
  104. package/dist/cdn/R3KUBISH.js +2 -0
  105. package/dist/cdn/RDXJFHLV.js +2 -0
  106. package/dist/cdn/REOO5ZGK.js +2 -0
  107. package/dist/cdn/RF7NG5JX.js +2 -0
  108. package/dist/cdn/{VDMAJ6AS.js → RNTJMF4O.js} +1 -1
  109. package/dist/cdn/RTG3SBDS.js +2 -0
  110. package/dist/cdn/SENL26AU.js +3 -0
  111. package/dist/cdn/{TJ2MW6I4.js → SIUUQBL4.js} +1 -1
  112. package/dist/cdn/SSO3AN4U.js +2 -0
  113. package/dist/cdn/STEJOS7Q.js +2 -0
  114. package/dist/cdn/{J3YWJVZZ.js → SXD7ZWLW.js} +1 -1
  115. package/dist/cdn/TH52564W.js +2 -0
  116. package/dist/cdn/THKPPH7G.js +2 -0
  117. package/dist/cdn/{OKDHN6B7.js → TP5EQUBD.js} +1 -1
  118. package/dist/cdn/TRJ6EQRD.js +2 -0
  119. package/dist/cdn/TU5GZK4M.js +2 -0
  120. package/dist/cdn/{CUTRQOEO.js → U3LEZXNT.js} +1 -1
  121. package/dist/cdn/U4MNIZYO.js +2 -0
  122. package/dist/cdn/UFJWRZWQ.js +2 -0
  123. package/dist/cdn/UQ3MLIHV.js +21 -0
  124. package/dist/cdn/{HIMUNCZ6.js → USM62FP5.js} +2 -2
  125. package/dist/cdn/UY2AFOXQ.js +2 -0
  126. package/dist/cdn/{LI4CAGAZ.js → UYYMXFYQ.js} +1 -1
  127. package/dist/cdn/{3JF5JLS4.js → V3S3BZEP.js} +1 -1
  128. package/dist/cdn/V5PIAPEA.js +2 -0
  129. package/dist/cdn/VDEFBT2N.js +2 -0
  130. package/dist/cdn/{XZXTFYPU.js → VLZNUN6G.js} +24 -24
  131. package/dist/cdn/VPTZV5YV.js +2 -0
  132. package/dist/cdn/{QW3T2SOQ.js → VRE7NUZ2.js} +1 -1
  133. package/dist/cdn/WCPWYPN2.js +2 -0
  134. package/dist/cdn/{6UJUVPK6.js → WMPUJYLT.js} +1 -1
  135. package/dist/cdn/{QXRWIAR3.js → XBR2PGVO.js} +1 -1
  136. package/dist/cdn/{PH36F6ZU.js → XC7LLCVS.js} +1 -1
  137. package/dist/cdn/{UCUGZIOM.js → XCILPMDZ.js} +1 -1
  138. package/dist/cdn/XK6Q5TUT.js +2 -0
  139. package/dist/cdn/{TVNF2O66.js → XTDFTH5X.js} +1 -1
  140. package/dist/cdn/{727EUXF6.js → XTUL7OCR.js} +1 -1
  141. package/dist/cdn/{VKG5PJNA.js → YMOLIY64.js} +1 -1
  142. package/dist/cdn/YTK4IGLJ.js +2 -0
  143. package/dist/cdn/{QXFTJVUF.js → ZCGIQK3H.js} +1 -1
  144. package/dist/cdn/{ZSZUJ3FI.js → ZDQANIMG.js} +1 -1
  145. package/dist/cdn/ZSHMK5VX.js +2 -0
  146. package/dist/cdn/assets/create-feature/t9n/messages.ar.json +1 -1
  147. package/dist/cdn/assets/create-feature/t9n/messages.bg.json +1 -1
  148. package/dist/cdn/assets/create-feature/t9n/messages.bs.json +1 -1
  149. package/dist/cdn/assets/create-feature/t9n/messages.ca.json +1 -1
  150. package/dist/cdn/assets/create-feature/t9n/messages.cs.json +1 -1
  151. package/dist/cdn/assets/create-feature/t9n/messages.da.json +1 -1
  152. package/dist/cdn/assets/create-feature/t9n/messages.de.json +1 -1
  153. package/dist/cdn/assets/create-feature/t9n/messages.el.json +1 -1
  154. package/dist/cdn/assets/create-feature/t9n/messages.es.json +1 -1
  155. package/dist/cdn/assets/create-feature/t9n/messages.et.json +1 -1
  156. package/dist/cdn/assets/create-feature/t9n/messages.fi.json +1 -1
  157. package/dist/cdn/assets/create-feature/t9n/messages.fr.json +1 -1
  158. package/dist/cdn/assets/create-feature/t9n/messages.he.json +1 -1
  159. package/dist/cdn/assets/create-feature/t9n/messages.hr.json +1 -1
  160. package/dist/cdn/assets/create-feature/t9n/messages.hu.json +1 -1
  161. package/dist/cdn/assets/create-feature/t9n/messages.id.json +1 -1
  162. package/dist/cdn/assets/create-feature/t9n/messages.it.json +1 -1
  163. package/dist/cdn/assets/create-feature/t9n/messages.ja.json +1 -1
  164. package/dist/cdn/assets/create-feature/t9n/messages.ko.json +1 -1
  165. package/dist/cdn/assets/create-feature/t9n/messages.lt.json +1 -1
  166. package/dist/cdn/assets/create-feature/t9n/messages.lv.json +1 -1
  167. package/dist/cdn/assets/create-feature/t9n/messages.nl.json +1 -1
  168. package/dist/cdn/assets/create-feature/t9n/messages.no.json +1 -1
  169. package/dist/cdn/assets/create-feature/t9n/messages.pl.json +1 -1
  170. package/dist/cdn/assets/create-feature/t9n/messages.pt-BR.json +1 -1
  171. package/dist/cdn/assets/create-feature/t9n/messages.pt-PT.json +1 -1
  172. package/dist/cdn/assets/create-feature/t9n/messages.ro.json +1 -1
  173. package/dist/cdn/assets/create-feature/t9n/messages.ru.json +1 -1
  174. package/dist/cdn/assets/create-feature/t9n/messages.sk.json +1 -1
  175. package/dist/cdn/assets/create-feature/t9n/messages.sl.json +1 -1
  176. package/dist/cdn/assets/create-feature/t9n/messages.sr.json +1 -1
  177. package/dist/cdn/assets/create-feature/t9n/messages.sv.json +1 -1
  178. package/dist/cdn/assets/create-feature/t9n/messages.th.json +1 -1
  179. package/dist/cdn/assets/create-feature/t9n/messages.tr.json +1 -1
  180. package/dist/cdn/assets/create-feature/t9n/messages.uk.json +1 -1
  181. package/dist/cdn/assets/create-feature/t9n/messages.vi.json +1 -1
  182. package/dist/cdn/assets/create-feature/t9n/messages.zh-CN.json +1 -1
  183. package/dist/cdn/assets/create-feature/t9n/messages.zh-HK.json +1 -1
  184. package/dist/cdn/assets/create-feature/t9n/messages.zh-TW.json +1 -1
  185. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ar.json +1 -1
  186. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.bg.json +1 -1
  187. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.bs.json +1 -1
  188. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ca.json +1 -1
  189. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.cs.json +1 -1
  190. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.da.json +1 -1
  191. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.de.json +1 -1
  192. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.el.json +1 -1
  193. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.es.json +1 -1
  194. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.et.json +1 -1
  195. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.fi.json +1 -1
  196. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.fr.json +1 -1
  197. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.he.json +1 -1
  198. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.hr.json +1 -1
  199. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.hu.json +1 -1
  200. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.id.json +1 -1
  201. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.it.json +1 -1
  202. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ja.json +1 -1
  203. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ko.json +1 -1
  204. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.lt.json +1 -1
  205. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.lv.json +1 -1
  206. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.nl.json +1 -1
  207. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.no.json +1 -1
  208. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.pl.json +1 -1
  209. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.pt-BR.json +1 -1
  210. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.pt-PT.json +1 -1
  211. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ro.json +1 -1
  212. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ru.json +1 -1
  213. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sk.json +1 -1
  214. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sl.json +1 -1
  215. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sr.json +1 -1
  216. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sv.json +1 -1
  217. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.th.json +1 -1
  218. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.tr.json +1 -1
  219. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.uk.json +1 -1
  220. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.vi.json +1 -1
  221. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.zh-CN.json +1 -1
  222. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.zh-HK.json +1 -1
  223. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.zh-TW.json +1 -1
  224. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ar.json +1 -1
  225. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.bg.json +1 -1
  226. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.bs.json +1 -1
  227. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ca.json +1 -1
  228. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.cs.json +1 -1
  229. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.da.json +1 -1
  230. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.de.json +1 -1
  231. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.el.json +1 -1
  232. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.es.json +1 -1
  233. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.et.json +1 -1
  234. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.fi.json +1 -1
  235. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.fr.json +1 -1
  236. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.he.json +1 -1
  237. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.hr.json +1 -1
  238. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.hu.json +1 -1
  239. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.id.json +1 -1
  240. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.it.json +1 -1
  241. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ja.json +1 -1
  242. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ko.json +1 -1
  243. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.lt.json +1 -1
  244. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.lv.json +1 -1
  245. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.nl.json +1 -1
  246. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.no.json +1 -1
  247. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.pl.json +1 -1
  248. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.pt-BR.json +1 -1
  249. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.pt-PT.json +1 -1
  250. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ro.json +1 -1
  251. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ru.json +1 -1
  252. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sk.json +1 -1
  253. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sl.json +1 -1
  254. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sr.json +1 -1
  255. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sv.json +1 -1
  256. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.th.json +1 -1
  257. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.tr.json +1 -1
  258. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.uk.json +1 -1
  259. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.vi.json +1 -1
  260. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.zh-CN.json +1 -1
  261. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.zh-HK.json +1 -1
  262. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.zh-TW.json +1 -1
  263. package/dist/cdn/index.js +1 -1
  264. package/dist/chunks/Auth.js +83 -62
  265. package/dist/chunks/cardFetchingUtils.js +19 -19
  266. package/dist/chunks/cardsHelpers.js +5 -5
  267. package/dist/chunks/deployAppContexts.js +9 -0
  268. package/dist/chunks/getRelatedInfos.js +1 -1
  269. package/dist/chunks/{interfaces.js → helpers.js} +227 -228
  270. package/dist/chunks/solution-deploy-dialog.js +39 -52
  271. package/dist/chunks/solutions-deploy-app-nav.js +104 -78
  272. package/dist/components/arcgis-solutions-assistant/customElement.js +28 -27
  273. package/dist/components/consent-manager/customElement.js +3 -3
  274. package/dist/components/create-feature/customElement.js +1 -1
  275. package/dist/components/crowdsource-manager/customElement.js +3 -3
  276. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  277. package/dist/components/edit-card/customElement.js +4 -4
  278. package/dist/components/feature-details/customElement.js +1 -1
  279. package/dist/components/feature-list/customElement.js +1 -1
  280. package/dist/components/info-card/customElement.js +1 -1
  281. package/dist/components/layer-list/customElement.js +1 -1
  282. package/dist/components/layer-table/customElement.js +2 -2
  283. package/dist/components/map-card/customElement.js +1 -1
  284. package/dist/components/map-picker/customElement.js +1 -1
  285. package/dist/components/public-notification/customElement.js +28 -21
  286. package/dist/components/refine-selection/customElement.js +1 -1
  287. package/dist/components/solution-configure-titles/customElement.js +5 -4
  288. package/dist/components/solution-delete-dialog/customElement.js +47 -37
  289. package/dist/components/solution-deploy-dialog/customElement.js +4 -3
  290. package/dist/components/solution-deployed-card/customElement.js +3 -2
  291. package/dist/components/solution-deployed-card-panel/customElement.js +12 -11
  292. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  293. package/dist/components/solution-details-card/customElement.js +2 -1
  294. package/dist/components/solution-details-panel/customElement.js +105 -103
  295. package/dist/components/solution-item-accordion/customElement.js +29 -21
  296. package/dist/components/solution-item-diagram/customElement.js +1 -1
  297. package/dist/components/solution-item-diagram/utils/solutionGraph.d.ts +1 -0
  298. package/dist/components/solution-resource-card/customElement.js +7 -6
  299. package/dist/components/solution-snapshot-gallery/customElement.js +5 -4
  300. package/dist/components/solution-social-share/customElement.js +37 -36
  301. package/dist/components/solution-user-avatar/customElement.js +12 -11
  302. package/dist/components/solutions-all-panel/customElement.js +16 -12
  303. package/dist/components/solutions-all-shell/customElement.js +11 -10
  304. package/dist/components/solutions-deploy-app/customElement.js +16 -14
  305. package/dist/components/solutions-deploy-app-nav/customElement.js +4 -3
  306. package/dist/components/solutions-deployed-panel/customElement.js +3 -2
  307. package/dist/components/solutions-deployed-shell/customElement.js +8 -7
  308. package/dist/components/solutions-filter-panel/customElement.d.ts +4 -1
  309. package/dist/components/solutions-filter-panel/customElement.js +45 -36
  310. package/dist/components/solutions-resources-shell/customElement.js +38 -38
  311. package/dist/components/solutions-searchsort-toolbar/customElement.d.ts +2 -2
  312. package/dist/components/solutions-searchsort-toolbar/customElement.js +15 -10
  313. package/dist/docs/api.json +1 -1
  314. package/dist/docs/docs.json +1 -1
  315. package/dist/docs/vscode.html-custom-data.json +1 -1
  316. package/dist/docs/web-types.json +1 -1
  317. package/dist/index.js +1 -1
  318. package/dist/solutions-components_commit.txt +8 -5
  319. package/dist/types/lumina.d.ts +1 -0
  320. package/dist/types/preact.d.ts +1 -0
  321. package/dist/types/react.d.ts +1 -0
  322. package/dist/types/stencil.d.ts +1 -0
  323. package/dist/utils/Auth.d.ts +9 -1
  324. package/dist/utils/interfaces.d.ts +11 -12
  325. package/package.json +22 -22
  326. package/dist/cdn/24ADXKSX.js +0 -2
  327. package/dist/cdn/25MTK2JD.js +0 -2
  328. package/dist/cdn/2MVCIEAD.js +0 -2
  329. package/dist/cdn/2QE2HTYW.js +0 -2
  330. package/dist/cdn/3R5VOUDP.js +0 -2
  331. package/dist/cdn/43HJUBM4.js +0 -2
  332. package/dist/cdn/4LVJK3V2.js +0 -2
  333. package/dist/cdn/4VFF7AI4.js +0 -2
  334. package/dist/cdn/4X53QTF7.js +0 -2
  335. package/dist/cdn/5EKT4E6L.js +0 -2
  336. package/dist/cdn/5YSNBFO6.js +0 -2
  337. package/dist/cdn/6CHHUU33.js +0 -2
  338. package/dist/cdn/6TOLIJU5.js +0 -2
  339. package/dist/cdn/7EF56IQP.js +0 -2
  340. package/dist/cdn/7GNQSKAB.js +0 -2
  341. package/dist/cdn/7KSFAVG3.js +0 -2
  342. package/dist/cdn/ABL7HXUY.js +0 -2
  343. package/dist/cdn/AQ3TQ7PO.js +0 -2
  344. package/dist/cdn/B7XPPNVY.js +0 -2
  345. package/dist/cdn/BB3L2KIS.js +0 -2
  346. package/dist/cdn/BG55H324.js +0 -2
  347. package/dist/cdn/BUR53ZIF.js +0 -2
  348. package/dist/cdn/CHWUORRX.js +0 -2
  349. package/dist/cdn/CN7QQ3JZ.js +0 -2
  350. package/dist/cdn/CPMMNWOL.js +0 -3
  351. package/dist/cdn/CSQ77SHH.js +0 -2
  352. package/dist/cdn/DADQNPO4.js +0 -2
  353. package/dist/cdn/DHE3GFUJ.js +0 -2
  354. package/dist/cdn/DQNQ7DLH.js +0 -2
  355. package/dist/cdn/DSHJPE6S.js +0 -2
  356. package/dist/cdn/EDWOTP4V.js +0 -2
  357. package/dist/cdn/EITUC67W.js +0 -2
  358. package/dist/cdn/EYJ255MM.js +0 -2
  359. package/dist/cdn/F7OHPN7H.js +0 -2
  360. package/dist/cdn/F7R4EYDS.js +0 -2
  361. package/dist/cdn/FA44RLAZ.js +0 -2
  362. package/dist/cdn/FIWSWJTZ.js +0 -2
  363. package/dist/cdn/FUEG35TG.js +0 -21
  364. package/dist/cdn/GXICL6EL.js +0 -2
  365. package/dist/cdn/HAWNWJLR.js +0 -2
  366. package/dist/cdn/HKAZRCQE.js +0 -2
  367. package/dist/cdn/HYJ7UXOV.js +0 -2
  368. package/dist/cdn/IHP7FAGO.js +0 -2
  369. package/dist/cdn/IXSZQTPL.js +0 -2
  370. package/dist/cdn/J3PKNUNP.js +0 -2
  371. package/dist/cdn/J5VTBFGR.js +0 -2
  372. package/dist/cdn/J74DGHF3.js +0 -2
  373. package/dist/cdn/JY62CMT7.js +0 -2
  374. package/dist/cdn/KAEV4RME.js +0 -50
  375. package/dist/cdn/KWNAM7AD.js +0 -2
  376. package/dist/cdn/LNZEGAPP.js +0 -2
  377. package/dist/cdn/LW4KR4D5.js +0 -2
  378. package/dist/cdn/M7ERGA4I.js +0 -2
  379. package/dist/cdn/MI7UDIFR.js +0 -2
  380. package/dist/cdn/MSSLXF7R.js +0 -2
  381. package/dist/cdn/MTDE4K26.js +0 -2
  382. package/dist/cdn/MUM5SE3F.js +0 -2
  383. package/dist/cdn/NDSUZD6T.js +0 -2
  384. package/dist/cdn/NF3TLIP3.js +0 -2
  385. package/dist/cdn/NIUMAAOQ.js +0 -2
  386. package/dist/cdn/NXTK6OD5.js +0 -2
  387. package/dist/cdn/O44OLIT5.js +0 -2
  388. package/dist/cdn/OSPT7DNE.js +0 -2
  389. package/dist/cdn/OYQYXNHJ.js +0 -2
  390. package/dist/cdn/QYIFZ7XJ.js +0 -2
  391. package/dist/cdn/R4OPQN6O.js +0 -2
  392. package/dist/cdn/R5PY2TMY.js +0 -2
  393. package/dist/cdn/RJPRLDFE.js +0 -2
  394. package/dist/cdn/RKMY6VWP.js +0 -2
  395. package/dist/cdn/RSTX3J6D.js +0 -2
  396. package/dist/cdn/RXLJOKCX.js +0 -2
  397. package/dist/cdn/S27I4OM5.js +0 -2
  398. package/dist/cdn/SBEXUIYT.js +0 -2
  399. package/dist/cdn/SE7R7GJQ.js +0 -2
  400. package/dist/cdn/SGRKAUHN.js +0 -2
  401. package/dist/cdn/SJQW6ZDF.js +0 -2
  402. package/dist/cdn/TEXGFAKJ.js +0 -2
  403. package/dist/cdn/TG3TGRIK.js +0 -2
  404. package/dist/cdn/UFI4ZJNJ.js +0 -2
  405. package/dist/cdn/VGCXEINY.js +0 -2
  406. package/dist/cdn/VJEG4LOG.js +0 -2
  407. package/dist/cdn/VOM7CM3O.js +0 -2
  408. package/dist/cdn/VUQ25YDH.js +0 -2
  409. package/dist/cdn/VVNSX3BS.js +0 -2
  410. package/dist/cdn/WVC3NULO.js +0 -2
  411. package/dist/cdn/WYV4MD77.js +0 -2
  412. package/dist/cdn/X4Y4DHJ5.js +0 -2
  413. package/dist/cdn/XXBU3JMK.js +0 -2
  414. package/dist/cdn/YWSV24KI.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import d from"./5KD4GK7Y.js";import c from"./P4FX4W2X.js";import b from"./KGUELU4O.js";import a from"./36HEIJAI.js";import{a as K}from"./AA7X6GKH.js";import{b as Se}from"./7EF56IQP.js";import"./S423P2GA.js";import{G as Ee,H as ze,J as _,K as E,h as ke,i as L,j as ue,l as fe,u as Re}from"./P4KZ6OZF.js";import"./QPIMTXPL.js";export default $arcgis.t(([Ge,D,ce,it,,,{a:B,b:W},{a:Ie,b:ve,d:Pe,e:Te,f:he,g:Fe,i:Me,o:pe,s:He,t:Z,u:me,v:Ue,w:Be}])=>{(function($,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):($=typeof globalThis<"u"?globalThis:$||self,e($.maquette={}))})(void 0,(function($){"use strict";var e=function(){var t,i;return{invalidate:function(){i=void 0,t=void 0},result:function(a,l){if(t)for(var p=0;p<a.length;p++)t[p]!==a[p]&&(i=void 0);return i||(i=l(),t=a),i}}},s="http://www.w3.org/",c="".concat(s,"2000/svg"),n="".concat(s,"1999/xlink"),r=[],u=function(t,i){var a={};return Object.keys(t).forEach(function(l){a[l]=t[l]}),i&&Object.keys(i).forEach(function(l){a[l]=i[l]}),a},h=function(t,i){return t.vnodeSelector!==i.vnodeSelector?!1:t.properties&&i.properties?t.properties.key!==i.properties.key?!1:t.properties.bind===i.properties.bind:!t.properties&&!i.properties},w=function(t){if(typeof t!="string")throw new Error("Style values must be strings")},b=function(t,i,a){if(i.vnodeSelector!==""){for(var l=a;l<t.length;l++)if(h(t[l],i))return l}return-1},z=function(t,i,a,l){var p=t[i];if(p.vnodeSelector!==""){var o=p.properties,A=o?o.key===void 0?o.bind:o.key:void 0;if(!A){for(var v=0;v<t.length;v++)if(v!==i){var d=t[v];if(h(d,p))throw Object.assign(new Error("".concat(a.vnodeSelector," had a ").concat(p.vnodeSelector," child ").concat(l==="added"?l:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),{parentNode:a,childNode:p})}}}},k=function(t){if(t.properties){var i=t.properties.enterAnimation;i&&i(t.domNode,t.properties)}},x=[],S=!1,I=function(t){(t.children||[]).forEach(I),t.properties&&t.properties.afterRemoved&&t.properties.afterRemoved.apply(t.properties.bind||t.properties,[t.domNode])},P=function(){S=!1,x.forEach(I),x.length=0},R=function(t){x.push(t),S||(S=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(P,{timeout:16}):setTimeout(P,16))},F=function(t){var i=t.domNode;if(t.properties){var a=t.properties.exitAnimation;if(a){i.style.pointerEvents="none";var l=function(){i.parentNode&&(i.parentNode.removeChild(i),R(t))};a(i,l,t.properties);return}}i.parentNode&&(i.parentNode.removeChild(i),R(t))},G=["on","afterCreate","afterUpdate","afterRemoved","enterAnimation","exitAnimation","updateAnimation"];function O(t){return!G.includes(t)}var j=function(t,i,a){if(i){for(var l=a.eventHandlerInterceptor,p=Object.keys(i).filter(O),o=p.length,A=0;A<o;A++){var v=p[A],d=i[v];if(v==="className")throw new Error('Property "className" is not supported, use "class".');if(v==="class")re(t,d,!0);else if(v==="classes")for(var f=Object.keys(d),C=f.length,y=0;y<C;y++){var m=f[y];d[m]&&t.classList.add(m)}else if(v==="styles")for(var M=Object.keys(d),T=M.length,y=0;y<T;y++){var J=M[y],ee=d[J];ee&&(w(ee),a.styleApplyer(t,J,ee))}else if(v!=="key"&&d!==null&&d!==void 0){var oe=typeof d;oe==="function"?(v.lastIndexOf("on",0)===0&&l&&(d=l(v,d,t,i)),t[v]=d):a.namespace===c?v==="href"?t.setAttributeNS(n,v,d):t.setAttribute(v,d):oe==="string"&&v!=="value"&&v!=="innerHTML"?t.setAttribute(v,d):t[v]=d}}if(i.on)for(var te=0,de=Object.entries(i.on);te<de.length;te++){var X=de[te],Y=X[0],Q=X[1],ie=typeof Q=="function"?Q:Q.listener;l&&(ie=l(Y,ie,t,i)),ie&&t.addEventListener(Y,ie,typeof Q=="function"?void 0:Q.options)}}},H=function(t,i,a){if(i)for(var l=0,p=i;l<p.length;l++){var o=p[l];q(o,t,void 0,a)}},U=function(t,i,a){H(t,i.children,a),i.text&&(t.textContent=i.text),j(t,i.properties,a),i.properties&&i.properties.afterCreate&&i.properties.afterCreate.apply(i.properties.bind||i.properties,[t,a,i.vnodeSelector,i.properties,i.children])},q=function(t,i,a,l){var p,o,A=0,v=t.vnodeSelector,d=i.ownerDocument;if(v==="")t.domNode?t.domNode.nodeValue=t.text:(o=t.domNode=d.createTextNode(t.text),a!==void 0?i.insertBefore(o,a):i.appendChild(o));else{for(var f=0;f<=v.length;++f){var C=v.charAt(f);if(f===v.length||C==="."||C==="#"){var y=v.charAt(A-1),m=v.slice(A,f);y==="."?o.classList.add(m):y==="#"?o.id=m:(m==="svg"&&(l=u(l,{namespace:c})),l.namespace!==void 0?o=t.domNode=d.createElementNS(l.namespace,m):(o=t.domNode=t.domNode||(!((p=t.properties)===null||p===void 0)&&p.is?d.createElement(m,{is:t.properties.is}):d.createElement(m)),m==="input"&&t.properties&&t.properties.type!==void 0&&o.setAttribute("type",t.properties.type)),a!==void 0?i.insertBefore(o,a):o.parentNode!==i&&i.appendChild(o)),A=f+1}}U(o,t,l)}},N,re=function(t,i,a){i&&i.split(" ").forEach(function(l){l&&t.classList.toggle(l,a)})},Xe=function(t,i,a,l){if(a){for(var p=!1,o=Object.keys(a).filter(O),A=o.length,v=0;v<A;v++){var d=o[v],f=a[d],C=i[d];if(d==="class")C!==f&&(re(t,C,!1),re(t,f,!0));else if(d==="classes")for(var y=t.classList,m=Object.keys(f),M=m.length,T=0;T<M;T++){var J=m[T],ee=!!f[J],oe=!!C[J];ee!==oe&&(p=!0,ee?y.add(J):y.remove(J))}else if(d==="styles")for(var te=Object.keys(f),de=te.length,T=0;T<de;T++){var X=te[T],Y=f[X],Q=C[X];Y!==Q&&(p=!0,Y?(w(Y),l.styleApplyer(t,X,Y)):l.styleApplyer(t,X,""))}else if(!f&&typeof C=="string"&&(f=""),d==="value"){var ie=t[d];ie!==f&&f!==C&&(t[d]=f),f!==C&&(p=!0)}else if(f!==C){var Ce=typeof f;(Ce!=="function"||!l.eventHandlerInterceptor)&&(l.namespace===c?d==="href"?t.setAttributeNS(n,d,f):t.setAttribute(d,f):Ce==="string"&&d!=="innerHTML"?d==="role"&&f===""?t.removeAttribute(d):t.setAttribute(d,f):t[d]!==f&&(t[d]=f),p=!0)}}return p}},Ye=function(t,i,a,l,p){if(a===l)return!1;a=a||r,l=l||r;for(var o=a.length,A=l.length,v=0,d=0,f,C=!1;d<A;){var y=v<o?a[v]:void 0,m=l[d];if(y!==void 0&&h(y,m))C=N(y,m,p,i,a)||C,v++;else{var M=b(a,m,v+1);if(M>=0){for(f=v;f<M;f++)F(a[f]),z(a,f,t,"removed");C=N(a[M],m,p,i,a)||C,v=M+1}else q(m,i,v<o?a[v].domNode:void 0,p),k(m),z(l,d,t,"added")}d++}if(o>v)for(f=v;f<o;f++)F(a[f]),z(a,f,t,"removed");return C};N=function(t,i,a,l,p){var o=t.domNode,A=!1;if(t===i)return!1;var v=!1;if(i.vnodeSelector===""){if(i.text!==t.text){var d=o.ownerDocument.createTextNode(i.text);try{l.replaceChild(d,o)}catch{l.replaceChild(d,l.childNodes[p.indexOf(t)])}return i.domNode=d,A=!0,A}i.domNode=o}else i.vnodeSelector.lastIndexOf("svg",0)===0&&(a=u(a,{namespace:c})),t.text!==i.text&&(v=!0,i.text===void 0?o.removeChild(o.firstChild):o.textContent=i.text),i.domNode=o,v=Ye(i,o,t.children,i.children,a)||v,v=Xe(o,t.properties,i.properties,a)||v,i.properties&&i.properties.afterUpdate&&i.properties.afterUpdate.apply(i.properties.bind||i.properties,[o,a,i.vnodeSelector,i.properties,i.children]);return v&&i.properties&&i.properties.updateAnimation&&i.properties.updateAnimation(o,i.properties,t.properties),A};var se=function(t,i){return{getLastRender:function(){return t},update:function(a){if(t.vnodeSelector!==a.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var l=t;t=a,N(l,a,i,l.domNode.parentNode,[l])},domNode:t.domNode}},Qe={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(t,i,a){i.charAt(0)==="-"?t.style.setProperty(i,a):t.style[i]=a}},V=function(t){return u(Qe,t)},le={create:function(t,i){return i=V(i),q(t,document.createElement("div"),void 0,i),se(t,i)},append:function(t,i,a){return a=V(a),q(i,t,void 0,a),se(i,a)},insertBefore:function(t,i,a){return a=V(a),q(i,t.parentNode,t,a),se(i,a)},merge:function(t,i,a){return a=V(a),i.domNode=t,U(t,i,a),se(i,a)},replace:function(t,i,a){return a=V(a),q(i,t.parentNode,t,a),t.parentNode.removeChild(t),se(i,a)}},Ze=function(t){return{vnodeSelector:"",properties:void 0,children:void 0,text:t.toString(),domNode:null}},xe=function(t,i,a){for(var l=0,p=i.length;l<p;l++){var o=i[l];Array.isArray(o)?xe(t,o,a):o!=null&&o!==!1&&(typeof o=="string"&&(o=Ze(o)),a.push(o))}};function Oe(t,i,a){if(Array.isArray(i))a=i,i=void 0;else if(i&&(typeof i=="string"||i.vnodeSelector)||a&&(typeof a=="string"||a.vnodeSelector))throw new Error("h called with invalid arguments");var l,p;return a&&a.length===1&&typeof a[0]=="string"?l=a[0]:a&&(p=[],xe(t,a,p),p.length===0&&(p=void 0)),{vnodeSelector:t,properties:i,children:p,text:l===""?void 0:l,domNode:null}}var je=function(t,i,a){var l=[],p=[];return{results:p,map:function(o){for(var A=o.map(t),v=p.slice(),d=0,f=0;f<o.length;f++){var C=o[f],y=A[f];if(y===l[d])p[f]=v[d],a(C,v[d],f),d++;else{for(var m=!1,M=1;M<l.length+1;M++){var T=(d+M)%l.length;if(l[T]===y){p[f]=v[T],a(o[f],v[T],f),d=T+1,m=!0;break}}m||(p[f]=i(C,f))}}p.length=o.length,l=A}}},Ne=function(t,i){for(var a=[];t&&t!==i;)a.push(t),t=t.parentNode;return a},Ve=function(t,i){var a=t;return i.forEach(function(l){a=a&&a.children?a.children.find(function(p){return p.domNode===l}):void 0}),a},et=function(t,i,a){return function(p,o,A,v){return l};function l(p){var o,A;a("domEvent",p);var v=i(),d=Ne(p.currentTarget,v.domNode);d.reverse();var f=Ve(v.getLastRender(),d);t.scheduleRender();var C;if(f){var y=(A=(o=f.properties["on".concat(p.type)])!==null&&o!==void 0?o:f.properties.on[p.type].listener)!==null&&A!==void 0?A:f.properties.on[p.type];C=y.apply(f.properties.bind||this,arguments)}return a("domEventProcessed",p),C}},tt=function(t){var i,a=V(t),l=a.performanceLogger,p=!0,o,A=!1,v=[],d=[],f=function(y,m,M){var T,J=function(){return T};a.eventHandlerInterceptor=et(i,J,l),T=y(m,M(),a),v.push(T),d.push(M)},C=function(){if(o=void 0,!!p){p=!1,l("renderStart",void 0);for(var y=0;y<v.length;y++){var m=d[y]();l("rendered",void 0),v[y].update(m),l("patched",void 0)}l("renderDone",void 0),p=!0}};return i={renderNow:C,scheduleRender:function(){!o&&!A&&(o=requestAnimationFrame(C))},stop:function(){o&&(cancelAnimationFrame(o),o=void 0),A=!0},resume:function(){A=!1,p=!0,i.scheduleRender()},append:function(y,m){f(le.append,y,m)},insertBefore:function(y,m){f(le.insertBefore,y,m)},merge:function(y,m){f(le.merge,y,m)},replace:function(y,m){f(le.replace,y,m)},detach:function(y){for(var m=0;m<d.length;m++)if(d[m]===y)return d.splice(m,1),v.splice(m,1)[0];throw new Error("renderFunction was not found")}},i};$.createCache=e,$.createMapping=je,$.createProjector=tt,$.dom=le,$.h=Oe}));var at=96;function ne($){return $?$/72*at:0}var nt=(void 0)(),Je=10,_e=20,ge=10,Le=20,Ae={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function rt($="vertical"){let e={stroke:"rgb(200, 200, 200)",strokeWidth:"1"};return $==="vertical"?L`<svg height=4 width=10>${ue`<line x1=0 y1=2 x2=10 y2=2 style=${E(e)} />`}</svg>`:L`<svg height=10 width=10>${ue`<line x1=5 y1=0 x2=5 y2=10 style=${E(e)} />`}</svg>`}function st($,e="vertical"){let s=document.createElement("div");return s.style.height=`${_e}px`,s.className=Ae.univariateAboveAndBelowSymbol,$!=null&&(s.style.opacity=$.toString()),nt.append(s,rt.bind(null,e)),s}function Ke($,e,s="vertical",c){$.infos.forEach((n,r)=>{if(c&&r===2)n.preview=st(e,s);else{let{size:u}=n,h=ne(u)+(s==="horizontal"?Le:ge),w=n.preview.tagName.toLowerCase()==="div",b=w?n.preview:document.createElement("div");b&&(b.className=Ae.univariateAboveAndBelowSymbol),s==="horizontal"?b&&(b.style.width=`${h}px`):b&&(b.style.height=`${h}px`),w||b&&b.appendChild(n.preview),n.preview=b}})}function De($,e="classic"){let s=$.infos,c=s[0].size,n=s[s.length-1].size;return e==="classic"?(ne(c)+ge)/2:(ne(c)-ne(n))/2}function ye($,e){if(!$)return null;let s=$.infos.map(n=>n.color),c=Ge.renderColorRampPreviewHTML(e.type==="full"?s:e.type==="above"?s.slice(0,3):s.slice(2,5),{width:e.width,height:e.height,align:e.rampAlignment,effectList:e.effectList});return c.className=Ae.colorRamp,e.opacity!=null&&(c.style.opacity=e.opacity.toString()),c}function lt($,e,s,c="vertical"){let n=0,r=$.infos,u=Math.floor(r.length/2),h=e==="full"||e==="above"?0:u,w=e==="full"||e==="below"?r.length-1:u;for(let b=h;b<=w;b++)if(s&&b===u)n+=c==="horizontal"?Je:_e;else{let z=r[b].size,k=ne(z)+(c==="horizontal"?Le:ge);n+=k}return Math.round(n)}function $e($,e,s,c="vertical"){let n=lt($,e,s,c),r=$.infos,u=Math.floor(r.length/2),h=e==="full"||e==="above"?0:u,w=e==="full"||e==="below"?r.length-1:u,b=e==="full"?r[h].size+r[w].size:e==="above"?r[h].size:r[w].size,z=s?c==="vertical"?_e:Je:0,k=c==="vertical"?ge*(e==="full"?2:1):Le*(e==="full"?2:1);return Math.round(n-(ne(b)/2+z/2+k/2))}function ct($,e,s="vertical"){let c=$.infos,n=c.find(({type:u})=>u==="size-ramp"),r=c.find(({type:u})=>u==="color-ramp");return n&&(n={...n},n.infos=[...n.infos],Ke(n,e,s,!0)),r&&(r={...r},r.infos=[...r.infos]),s==="horizontal"&&(n?.infos.reverse(),r?.infos.reverse()),{sizeRampElement:n,colorRampElement:r}}function ot($,e="vertical"){let s=$.infos,c=s.find(({type:r})=>r==="size-ramp"),n=s.find(({type:r})=>r==="color-ramp");return c&&(c={...c},c.infos=[...c.infos],Ke(c,null,e,!1)),n&&(n={...n},n.infos=[...n.infos]),e==="horizontal"&&(c?.infos.reverse(),n?.infos.reverse()),{sizeRampElement:c,colorRampElement:n}}function dt($,e){return!0}var ft=ke`@layer{instant-apps-interactive-legend-classic{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: normal;--instant-apps-interactive-legend-caption-font-weight: normal;--instant-apps-interactive-legend-secondary-color: var( --calcite-color-text-1 );--instant-apps-interactive-legend-field-name-font-size: 1rem;--instant-apps-interactive-legend-total-feature-count-font-size: .875rem;--instant-apps-interactive-legend-info-font-size: .875rem;--instant-apps-interactive-legend-info-item-background--selected: #c7ebff;--instant-apps-interactive-legend-info-item-background--selected--dark: #009af2;--instant-apps-interactive-legend-info-item-background--hover: #e9e9e9;--instant-apps-interactive-legend-info-item-background--hover--dark: #4a4a4a;--instant-apps-interactive-legend-info-item-color--selected: var( --calcite-color-text-2 );--instant-apps-interactive-legend-secondary-background-color: var( --calcite-color-background );--instant-apps-interactive-legend-ui-margin: 20px 15px;--instant-apps-interactive-legend-ui-padding: 20px 15px}instant-apps-interactive-legend-classic .esri-legend__service{padding:0}instant-apps-interactive-legend-classic .esri-legend__layer-body,instant-apps-interactive-legend-classic .esri-legend__layer,instant-apps-interactive-legend-classic .esri-legend__layer-table,instant-apps-interactive-legend-classic .esri-legend__group-layer-child,instant-apps-interactive-legend-classic .esri-legend__layer-child-table{margin:0;overflow:hidden}instant-apps-interactive-legend-classic .esri-legend__layer-caption calcite-action{margin-right:5px}instant-apps-interactive-legend-classic .esri-legend__layer-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-caption-btn-container{white-space:nowrap}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}instant-apps-interactive-legend-classic .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}instant-apps-interactive-legend-classic .esri-legend__layer-cell.esri-legend__layer-cell--info{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}instant-apps-interactive-legend-classic .esri-legend__layer-cell,instant-apps-interactive-legend-classic .esri-legend__layer-row{display:flex;align-items:center}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive .esri-legend__layer-body{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol>.esri-legend__layer-body{margin:0}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive .esri-legend__layer-row{display:table-row}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive .esri-legend__layer-cell{display:table-cell}instant-apps-interactive-legend-classic .esri-legend__layer-cell--symbols{justify-content:center;width:20%}instant-apps-interactive-legend-classic .esri-legend__layer-cell--info{width:65%}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive{margin:1px;background:transparent;border:none;width:100%}instant-apps-interactive-legend-classic .esri-legend__layer-cell--info{color:var(--instant-apps-interactive-legend-secondary-color)}instant-apps-interactive-legend-classic .esri-legend__layer-row,instant-apps-interactive-legend-classic .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive{position:relative}instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected .esri-legend__layer-cell--info{color:var(--calcite-color-text-inverse)}instant-apps-interactive-legend-classic .hide{display:none}.instant-apps-interactive-legend__compact .esri-legend__layer-row{--instant-apps-interactive-legend-ui-padding: 10px 5px}.instant-apps-interactive-legend__compact .esri-legend__layer-row .esri-legend__layer-cell--info{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;line-clamp:2;line-height:1.3125rem;max-height:2.625rem}@media(min-width:992px){instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive{cursor:pointer}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}}`,g={layer:"esri-legend__layer",layerBody:"esri-legend__layer-body",layerRow:"esri-legend__layer-row",layerInfo:"esri-legend__layer-cell esri-legend__layer-cell--info",imageryLayerStretchedImage:"esri-legend__imagery-layer-image--stretched",symbolContainer:"esri-legend__layer-cell esri-legend__layer-cell--symbols",symbol:"esri-legend__symbol",rampContainer:"esri-legend__ramps",sizeRamp:"esri-legend__size-ramp",colorRamp:"esri-legend__color-ramp",opacityRamp:"esri-legend__opacity-ramp",rampLabelsContainer:"esri-legend__ramp-labels",rampLabel:"esri-legend__ramp-label",univariateAboveAndBelowLabel:"esri-univariate-above-and-below-ramp__label",message:"esri-legend__message",interactiveLayerRow:"instant-apps-interactive-legend__layer-row--interactive",infoSelected:"instant-apps-interactive-legend-element-info--selected",compact:"instant-apps-interactive-legend__compact"},vt=24,qe={display:"flex",alignItems:"flex-start"},be={marginLeft:"3px"},ae={display:"table-cell",verticalAlign:"middle"},we=class extends ze{constructor(){super(...arguments),this.calculatingFeatureCount=!1,this.isLoading=!0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"}}static{this.properties={isLoading:16,legendvm:0,zoomTo:5,featureCount:5,filterMode:0,messages:0}}static{this.styles=ft}static{this.shadowRootOptions=Re}connectedCallback(){super.connectedCallback(),!this.handles&&(this.handles=new it)}async load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0}),W.onChange("data",()=>this.requestUpdate())}willUpdate(e){e.has("filterMode")&&this.legendvm?.view&&(this.hasUpdated||this.filterMode.type!=="filter")&&Ue(this.filterMode,this.legendvm.view)}async loaded(){await this.initLegend()}disconnectedCallback(){super.disconnectedCallback(),this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}async initLegend(){try{await D.whenOnce(()=>this.legendvm?.view);let e=async()=>{try{let s=this.legendvm?.view?.map;await s?.load(),await s?.basemap?.load();let c=s?.allLayers?.map(async h=>await h.load()),n=(await Promise.allSettled(c)).map(h=>h?.status==="fulfilled"&&h?.value?h.value:null).filter(h=>!!h),r=[];n.forEach(h=>{this.legendvm?.view&&r.push(this.legendvm.view.whenLayerView(h))}),await Promise.allSettled(r);let u=await ve(this.legendvm);W.set("data",{...B.data,...u}),this.isLoading=!1,await this.setupWatchersAndListeners()}catch(s){console.error(s),this.isLoading=!1}};this.legendvm?.view?.when(e),this.legendvm?.view?.map?.layers?.on("after-changes",e)}catch{this.isLoading=!1}}getStretchStopLabel(e){let s=this.messages[e.label];return e.label?`${s}: ${typeof e.value=="string"?e.value:ce.formatNumber(e.value,{style:"decimal",notation:e.value.toString().includes("e")?"scientific":"standard"})}`:""}getTitle(e,s){if(!e)return;if(typeof e=="string"||typeof e=="number")return e;if("value"in e||"unit"in e){let r=typeof this.messages?.dotValue=="string"?this.messages.dotValue:"";return ce.substitute(r,e)}if("colorName"in e||"bandName"in e){let{colorName:r,bandName:u}=e,h=this.messages[r],w=typeof this.messages[u]=="string"?this.messages[u]:u;return`${h}: ${w}`}if("showCount"in e)return e.showCount?this.messages.clusterCountTitle:null;let c=null;if(s){let r=e;c=r.ratioPercentTotal?"showRatioPercentTotal":r.ratioPercent?"showRatioPercent":r.ratio?"showRatio":e.normField?"showNormField":e.field?"showField":null}else if(this.isRendererTitle(s)){let r=e;c=r.normField?"showNormField":r.normByPct?"showNormPct":r.field?"showField":null}let n=c==="showField"?"{field}":typeof c=="string"?this.messages[c]:"";return c?ce.substitute(n,{field:e.field,normField:e.normField}):""}isRendererTitle(e){return!e}async setupWatchersAndListeners(){let e=this.legendvm?.view?.map?.allLayers?.filter(n=>n?.type==="feature"),s=[];for(let n of e)this.legendvm?.view&&s.push(this.legendvm?.view?.whenLayerView(n));let c=[];try{c=await Promise.all(s)}catch(n){console.error(n)}for(let n of c){let r=`fLayerViewScale-${n.layer.id}`;!this.handles?.has(r)&&n&&this.handles?.add(n.watch("visibleAtCurrentScale",()=>{this.createDataForLayer(n.layer).catch(u=>{console.error(u)})}),r)}e?.forEach(n=>{let r=`fLayer-${n?.id}`;this.handles?.has(r)||this.handles?.add(D?.watch(()=>n?.visible,()=>{this.createDataForLayer(n).catch(u=>{console.error(u)})}),r)}),this.handles?.add(D.when(()=>this.legendvm,()=>{D.watch(()=>this.legendvm?.view?.updating,()=>{this.calculatingFeatureCount||this.legendvm?.view?.updating&&(this.calculatingFeatureCount=!0,D.when(()=>!this.legendvm?.view?.updating,()=>{pe(this.legendvm,B.data).then(n=>{W.set("data",{...B.data,...n}),this.calculatingFeatureCount=!1}).catch(n=>{console.error(n)})},{once:!0,initial:!0}))},{initial:!0})},{initial:!0,once:!0})),this.handles?.add(D.on(()=>this.legendvm?.activeLayerInfos,"change",n=>{ve(this.legendvm).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).then(()=>{this.handles?.add(D.on(()=>n.children,"change",()=>{ve(this.legendvm).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).catch(r=>{console.error(r)})}))}).catch(r=>{console.error(r)})})),this.handles?.add(D.on(()=>this.legendvm?.view?.map?.layers,"after-changes",()=>{pe(this.legendvm,B.data).then(n=>{W.set("data",{...B.data,...n}),this.calculatingFeatureCount=!1}).catch(n=>{console.error(n)})}))}async createDataForLayer(e){let s=W.get("data")?.[e?.id],c=Be(this.legendvm?.activeLayerInfos)?.find(n=>n?.layer?.id===e?.id);if(!s&&c){let n=await Ie(this.legendvm,c);if(me({intLegendLayerData:n,layerId:e?.id}),this.featureCount){let r=await pe(this.legendvm,B.data);W.set("data",{...B.data,...r})}}}applyFilter(e,s,c,n){return async()=>{let r={...B.data?.[s?.id]};n?await he(r,e,c,this.filterMode,n):await he(r,e,c,this.filterMode),me({intLegendLayerData:r,layerId:s?.id})}}render(){let e=this.renderFilteredLayers(),s=W.get("compact")?` ${g.compact}`:"";return this.isLoading?K("interactive-legend-loader",L`<calcite-loader scale=m .label=${this.messages?.loading} .text=${this.messages?.loading}></calcite-loader>`):K("interactive-legend-classic-container",L`<div class=${`${Z(this.el)}${s}`}>${e?.length>0?e:L`<div class=${_(g.message)}>${this.messages?.noLegend}</div>`}</div>`)}renderFilteredLayers(){return(this.legendvm?.activeLayerInfos?.toArray()).map(e=>this.renderLegendForLayer(e)).filter(e=>!!e)}renderLegendForLayer(e,s){if(!e.ready)return null;if(e.children.length){let r=e.children.map(u=>this.renderLegendForLayer(u,!0)).toArray();return L`<instant-apps-interactive-legend-group-legend-element class=${_(Z(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${e} .isChild=${s}><div style=${E({paddingLeft:"20px"})} .id=${`${e?.layer?.id}-legend-layer`} slot=content>${r}</div></instant-apps-interactive-legend-group-legend-element>`}let c=e.legendElements;if(c&&!c.length)return null;let n=c.map((r,u)=>this.renderLegendForElement(r,e.layer,e.effectList,e,u)).filter(r=>!!r);return n.length?L`<instant-apps-interactive-legend-layer-element class=${_(Z(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${e} .isChild=${!!s}><div slot=content .id=${`${e?.layer?.id}-legend-layer`} class=${_(g.layer)}>${n}</div></instant-apps-interactive-legend-layer-element>`:null}renderLegendForElement(e,s,c,n,r,u,h){let w=e.type==="color-ramp",b=e.type==="opacity-ramp",z=e.type==="size-ramp",k=null,x=Me(n,e,r),S=e?.type==="relationship-ramp";if(e.type==="symbol-table"||z){let R=e.infos.map((F,G)=>this.renderLegendForElementInfo(F,s,c,z,e,n,r,G,x,h)).filter(F=>!!F);R.length&&(k=L`<div class=${_(g.layerBody)}>${R}</div>`)}else if(e.type==="color-ramp"||e.type==="opacity-ramp"||e.type==="heatmap-ramp"||e.type==="stretch-ramp"){let R=e;k=this.renderLegendForRamp(R,s.opacity)}else if(S)k=K("relationship-ramp",L`<instant-apps-interactive-legend-relationship class=${_(Z(this.el))} .filterMode=${this.filterMode} .activeLayerInfo=${n} .legendElement=${e}></instant-apps-interactive-legend-relationship>`);else if(e.type==="pie-chart-ramp"){let R=e;k=this.renderPieChartRamp(R)}else if(e.type==="univariate-above-and-below-ramp"){let R=e;k=this.renderUnivariateAboveAndBelowRamp(R,s.opacity,c)}else if(e.type==="univariate-color-size-ramp"){let R=e;k=this.renderUnivariateColorSizeRamp(R,s.opacity,c)}if(!k)return null;let I=e.title,P=null;if(typeof I=="string")P=I;else if(I){let R=I,F=this.getTitle(R,w||b);this.isRendererTitle(w||b)?"title"in I&&(P=`${I.title} (${F})`):P=F}return L`<instant-apps-interactive-legend-legend-element class=${_(Z(this.el))} .activeLayerInfo=${n} .isSizeRamp=${z} .isChild=${!!u} .isColorRamp=${w} .isRelationshipRamp=${S} .isInteractive=${x} .zoomTo=${this.zoomTo} .legendElement=${e} .titleText=${P} .legendvm=${this.legendvm} .legendElementIndex=${r}><div slot=content>${k}</div></instant-apps-interactive-legend-legend-element>`}renderPieChartRamp(e){return L`<div .innerHTML=${`${e.preview?.outerHTML}`}></div>`}renderUnivariateAboveAndBelowRamp(e,s,c){let{sizeRampElement:n,colorRampElement:r}=ct(e,s);if(!n)return null;let u=$e(n,"above",!0),h=$e(n,"below",!0),w=12,b=ye(r,{width:w,height:u,rampAlignment:"vertical",opacity:s,type:"above",effectList:c}),z=ye(r,{width:w,height:h,rampAlignment:"vertical",opacity:s,type:"below",effectList:c}),k=De(n),x=n.infos.map(H=>H.label),S=x.map((H,U)=>U===0?L`<div class=${_(H?b?g.univariateAboveAndBelowLabel:g.rampLabel:"")}>${H}</div>`:U===2?L`<div></div>`:null),I=x.length-1,P=Math.floor(x.length/2),R=x.map((H,U)=>U===P||U===I?L`<div class=${_(H?b?g.univariateAboveAndBelowLabel:g.rampLabel:"")}>${H}</div>`:null),F={display:"table-cell",verticalAlign:"middle"},G={marginTop:`${k}px`},O={height:`${u}px`},j={height:`${h}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(qe)}><div class=${_(g.layerBody)}>${n.infos.map((H,U)=>L`<div class=${`${g.layerRow} ${g.sizeRamp}`}><div class=${_(g.symbol)} style=${E(F)} .innerHTML=${H?.preview?.outerHTML??""??""}></div>${!b&&U%2===0?L`<div class=${_(g.layerInfo)}>${x[U]}</div>`:null}</div>`)}</div>${b?K("color-ramp-preview",L`<div style=${E(G)}><div style=${E(be)}><div style=${E(ae)}><div class=${_(g.rampContainer)}>${b}</div></div><div style=${E(ae)}><div class=${_(g.rampLabelsContainer)} style=${E(O)}>${S}</div></div></div><div style=${E(be)}><div style=${E(ae)}><div class=${_(g.rampContainer)}>${z}</div></div><div style=${E(ae)}><div class=${_(g.rampLabelsContainer)} style=${E(j)}>${R}</div></div></div></div>`):null}</div>`)}renderUnivariateColorSizeRamp(e,s,c){let{sizeRampElement:n,colorRampElement:r}=ot(e);if(!n)return null;let u=De(n),h=12,w=$e(n,"full",!1),b=ye(r,{width:h,height:w,rampAlignment:"vertical",opacity:s,type:"full",effectList:c}),z=n.infos.length-1,k=n.infos.map((P,R)=>R===0||R===z?L`<div class=${_(P.label?r?g.univariateAboveAndBelowLabel:g.rampLabel:"")}>${P.label}</div>`:null),x={display:"table-cell",verticalAlign:"middle"},S={marginTop:`${u}px`},I={height:`${w}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(qe)}><div class=${_(g.layerBody)}>${n.infos.map(P=>L`<div class=${`${g.layerRow} ${g.sizeRamp}`}><div class=${_(g.symbol)} style=${E(x)} .innerHTML=${P?.preview?.outerHTML??""??""}></div></div>`)}</div>${K("color-ramp-preview",L`<div style=${E(S)}><div style=${E(be)}><div style=${E(ae)}><div class=${_(g.rampContainer)}>${b}</div></div><div style=${E(ae)}><div class=${_(g.rampLabelsContainer)} style=${E(I)}>${k}</div></div></div></div>`)}</div>`)}renderLegendForRamp(e,s){let c=e.infos,n=e.type==="opacity-ramp",r=e.type==="heatmap-ramp",u=e.type==="stretch-ramp",h=e.preview,w=n?g.opacityRamp:"";h&&(h.classList.add(g.colorRamp),w&&h.classList.add(w)),s!=null&&h&&(h.style.opacity=s.toString());let b=c.map(x=>{let S;if(r){let I=this.messages[x.label];S=typeof I=="string"?I:x.label}else u?S="value"in x?this.getStretchStopLabel(x):x.label:S=x.label;return L`<div class=${_(x.label?g.rampLabel:"")}>${S}</div>`}),z={width:`${vt}px`},k={height:h?.style?.height};return L`<div class=${_(g.layerRow)}><div class=${_(g.symbolContainer)} style=${E({...z})}><div class=${_(g.rampContainer)} ${Ee(x=>{x?.firstChild&&x?.firstChild?.remove(),x?.appendChild(h)})}></div></div><div class=${_(g.layerInfo)}><div class=${_(g.rampLabelsContainer)} style=${E({...k})}>${b}</div></div></div>`}renderLegendForElementInfo(e,s,c,n,r,u,h,w,b,z){if("infos"in e)return this.renderLegendForElement(e,s,c,u,h,!0,e);let k=null,x=!dt(s,r.type);if("preview"in e){let{outerHTML:q}=e.preview;k=L`<div class=${_(g.symbol)} .innerHTML=${q??""}></div>`}else"src"in e&&(k=this.renderImage(e,s,x));if(!k)return null;let S="",I=n?` ${g.sizeRamp}`:"",P,R=Te(s),F=He(R,z);if(B.data){let q=Pe(R,s,e,F,w),N=F?F?.nestedInfos:R,re=Fe(N);P=R?.categories?.size===1?!q?.selected:re||q?.selected}let G="label"in e?e.label:null,O=F&&!("value"in e)?!1:b,j=W.get("compact"),H=this.getTitle(G,!1)||"",U=F?r.title:G??s?.id;return O?L`<button @click=${this.applyFilter(e,s,w,z)} class=${`${g.layerRow} ${g.interactiveLayerRow}${P?` ${g.infoSelected}`:""}`} title=${(j?`${H}`:void 0)??fe} .ariaPressed=${P?"true":"false"}><div class=${`${g.symbolContainer}${S}${I}`}>${k}</div><div class=${`${g.layerInfo}${S}`}>${this.getTitle(G,!1)||""}</div>${this.featureCount&&!j?L`<instant-apps-interactive-legend-count class=${_(Z(this.el))} .categoryId=${U} .activeLayerInfo=${u} .legendvm=${this.legendvm} .selected=${!!P} .legendElement=${r} .infoIndex=${w}></instant-apps-interactive-legend-count>`:null}</button>`:L`<div class=${_(g.layerRow)}><div class=${`${g.symbolContainer}${S}${I}`}>${k}</div><div class=${`${g.layerInfo}${S}`}>${H}</div></div>`}renderImage(e,s,c){let{label:n,src:r,opacity:u}=e,h=c?` ${g.imageryLayerStretchedImage}`:"",w=c?"":` ${g.symbol}`,b={opacity:`${u??s.opacity}`};return L`<img alt=${this.getTitle(n,!1)??fe} src=${r??fe} width=${e.width} height=${e.height} class=${`$${h}${w}`} style=${E(b)}>`}};Se("instant-apps-interactive-legend-classic",we);return we},"symbols/support/symbolUtils","core/reactiveUtils","intl","core/Handles",a,b,c,d)
2
+ import d from"./5KD4GK7Y.js";import c from"./P4FX4W2X.js";import b from"./KGUELU4O.js";import a from"./36HEIJAI.js";import{a as K}from"./AA7X6GKH.js";import{b as Se}from"./EGFXSDFS.js";import"./S423P2GA.js";import{G as Ee,H as ze,J as _,K as E,h as ke,i as L,j as ue,l as fe,u as Re}from"./P4KZ6OZF.js";import"./QPIMTXPL.js";export default $arcgis.t(([Ge,D,ce,it,,,{a:B,b:W},{a:Ie,b:ve,d:Pe,e:Te,f:he,g:Fe,i:Me,o:pe,s:He,t:Z,u:me,v:Ue,w:Be}])=>{(function($,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):($=typeof globalThis<"u"?globalThis:$||self,e($.maquette={}))})(void 0,(function($){"use strict";var e=function(){var t,i;return{invalidate:function(){i=void 0,t=void 0},result:function(a,l){if(t)for(var p=0;p<a.length;p++)t[p]!==a[p]&&(i=void 0);return i||(i=l(),t=a),i}}},s="http://www.w3.org/",c="".concat(s,"2000/svg"),n="".concat(s,"1999/xlink"),r=[],u=function(t,i){var a={};return Object.keys(t).forEach(function(l){a[l]=t[l]}),i&&Object.keys(i).forEach(function(l){a[l]=i[l]}),a},h=function(t,i){return t.vnodeSelector!==i.vnodeSelector?!1:t.properties&&i.properties?t.properties.key!==i.properties.key?!1:t.properties.bind===i.properties.bind:!t.properties&&!i.properties},w=function(t){if(typeof t!="string")throw new Error("Style values must be strings")},b=function(t,i,a){if(i.vnodeSelector!==""){for(var l=a;l<t.length;l++)if(h(t[l],i))return l}return-1},z=function(t,i,a,l){var p=t[i];if(p.vnodeSelector!==""){var o=p.properties,A=o?o.key===void 0?o.bind:o.key:void 0;if(!A){for(var v=0;v<t.length;v++)if(v!==i){var d=t[v];if(h(d,p))throw Object.assign(new Error("".concat(a.vnodeSelector," had a ").concat(p.vnodeSelector," child ").concat(l==="added"?l:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),{parentNode:a,childNode:p})}}}},k=function(t){if(t.properties){var i=t.properties.enterAnimation;i&&i(t.domNode,t.properties)}},x=[],S=!1,I=function(t){(t.children||[]).forEach(I),t.properties&&t.properties.afterRemoved&&t.properties.afterRemoved.apply(t.properties.bind||t.properties,[t.domNode])},P=function(){S=!1,x.forEach(I),x.length=0},R=function(t){x.push(t),S||(S=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(P,{timeout:16}):setTimeout(P,16))},F=function(t){var i=t.domNode;if(t.properties){var a=t.properties.exitAnimation;if(a){i.style.pointerEvents="none";var l=function(){i.parentNode&&(i.parentNode.removeChild(i),R(t))};a(i,l,t.properties);return}}i.parentNode&&(i.parentNode.removeChild(i),R(t))},G=["on","afterCreate","afterUpdate","afterRemoved","enterAnimation","exitAnimation","updateAnimation"];function O(t){return!G.includes(t)}var j=function(t,i,a){if(i){for(var l=a.eventHandlerInterceptor,p=Object.keys(i).filter(O),o=p.length,A=0;A<o;A++){var v=p[A],d=i[v];if(v==="className")throw new Error('Property "className" is not supported, use "class".');if(v==="class")re(t,d,!0);else if(v==="classes")for(var f=Object.keys(d),C=f.length,y=0;y<C;y++){var m=f[y];d[m]&&t.classList.add(m)}else if(v==="styles")for(var M=Object.keys(d),T=M.length,y=0;y<T;y++){var J=M[y],ee=d[J];ee&&(w(ee),a.styleApplyer(t,J,ee))}else if(v!=="key"&&d!==null&&d!==void 0){var oe=typeof d;oe==="function"?(v.lastIndexOf("on",0)===0&&l&&(d=l(v,d,t,i)),t[v]=d):a.namespace===c?v==="href"?t.setAttributeNS(n,v,d):t.setAttribute(v,d):oe==="string"&&v!=="value"&&v!=="innerHTML"?t.setAttribute(v,d):t[v]=d}}if(i.on)for(var te=0,de=Object.entries(i.on);te<de.length;te++){var X=de[te],Y=X[0],Q=X[1],ie=typeof Q=="function"?Q:Q.listener;l&&(ie=l(Y,ie,t,i)),ie&&t.addEventListener(Y,ie,typeof Q=="function"?void 0:Q.options)}}},H=function(t,i,a){if(i)for(var l=0,p=i;l<p.length;l++){var o=p[l];q(o,t,void 0,a)}},U=function(t,i,a){H(t,i.children,a),i.text&&(t.textContent=i.text),j(t,i.properties,a),i.properties&&i.properties.afterCreate&&i.properties.afterCreate.apply(i.properties.bind||i.properties,[t,a,i.vnodeSelector,i.properties,i.children])},q=function(t,i,a,l){var p,o,A=0,v=t.vnodeSelector,d=i.ownerDocument;if(v==="")t.domNode?t.domNode.nodeValue=t.text:(o=t.domNode=d.createTextNode(t.text),a!==void 0?i.insertBefore(o,a):i.appendChild(o));else{for(var f=0;f<=v.length;++f){var C=v.charAt(f);if(f===v.length||C==="."||C==="#"){var y=v.charAt(A-1),m=v.slice(A,f);y==="."?o.classList.add(m):y==="#"?o.id=m:(m==="svg"&&(l=u(l,{namespace:c})),l.namespace!==void 0?o=t.domNode=d.createElementNS(l.namespace,m):(o=t.domNode=t.domNode||(!((p=t.properties)===null||p===void 0)&&p.is?d.createElement(m,{is:t.properties.is}):d.createElement(m)),m==="input"&&t.properties&&t.properties.type!==void 0&&o.setAttribute("type",t.properties.type)),a!==void 0?i.insertBefore(o,a):o.parentNode!==i&&i.appendChild(o)),A=f+1}}U(o,t,l)}},N,re=function(t,i,a){i&&i.split(" ").forEach(function(l){l&&t.classList.toggle(l,a)})},Xe=function(t,i,a,l){if(a){for(var p=!1,o=Object.keys(a).filter(O),A=o.length,v=0;v<A;v++){var d=o[v],f=a[d],C=i[d];if(d==="class")C!==f&&(re(t,C,!1),re(t,f,!0));else if(d==="classes")for(var y=t.classList,m=Object.keys(f),M=m.length,T=0;T<M;T++){var J=m[T],ee=!!f[J],oe=!!C[J];ee!==oe&&(p=!0,ee?y.add(J):y.remove(J))}else if(d==="styles")for(var te=Object.keys(f),de=te.length,T=0;T<de;T++){var X=te[T],Y=f[X],Q=C[X];Y!==Q&&(p=!0,Y?(w(Y),l.styleApplyer(t,X,Y)):l.styleApplyer(t,X,""))}else if(!f&&typeof C=="string"&&(f=""),d==="value"){var ie=t[d];ie!==f&&f!==C&&(t[d]=f),f!==C&&(p=!0)}else if(f!==C){var Ce=typeof f;(Ce!=="function"||!l.eventHandlerInterceptor)&&(l.namespace===c?d==="href"?t.setAttributeNS(n,d,f):t.setAttribute(d,f):Ce==="string"&&d!=="innerHTML"?d==="role"&&f===""?t.removeAttribute(d):t.setAttribute(d,f):t[d]!==f&&(t[d]=f),p=!0)}}return p}},Ye=function(t,i,a,l,p){if(a===l)return!1;a=a||r,l=l||r;for(var o=a.length,A=l.length,v=0,d=0,f,C=!1;d<A;){var y=v<o?a[v]:void 0,m=l[d];if(y!==void 0&&h(y,m))C=N(y,m,p,i,a)||C,v++;else{var M=b(a,m,v+1);if(M>=0){for(f=v;f<M;f++)F(a[f]),z(a,f,t,"removed");C=N(a[M],m,p,i,a)||C,v=M+1}else q(m,i,v<o?a[v].domNode:void 0,p),k(m),z(l,d,t,"added")}d++}if(o>v)for(f=v;f<o;f++)F(a[f]),z(a,f,t,"removed");return C};N=function(t,i,a,l,p){var o=t.domNode,A=!1;if(t===i)return!1;var v=!1;if(i.vnodeSelector===""){if(i.text!==t.text){var d=o.ownerDocument.createTextNode(i.text);try{l.replaceChild(d,o)}catch{l.replaceChild(d,l.childNodes[p.indexOf(t)])}return i.domNode=d,A=!0,A}i.domNode=o}else i.vnodeSelector.lastIndexOf("svg",0)===0&&(a=u(a,{namespace:c})),t.text!==i.text&&(v=!0,i.text===void 0?o.removeChild(o.firstChild):o.textContent=i.text),i.domNode=o,v=Ye(i,o,t.children,i.children,a)||v,v=Xe(o,t.properties,i.properties,a)||v,i.properties&&i.properties.afterUpdate&&i.properties.afterUpdate.apply(i.properties.bind||i.properties,[o,a,i.vnodeSelector,i.properties,i.children]);return v&&i.properties&&i.properties.updateAnimation&&i.properties.updateAnimation(o,i.properties,t.properties),A};var se=function(t,i){return{getLastRender:function(){return t},update:function(a){if(t.vnodeSelector!==a.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var l=t;t=a,N(l,a,i,l.domNode.parentNode,[l])},domNode:t.domNode}},Qe={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(t,i,a){i.charAt(0)==="-"?t.style.setProperty(i,a):t.style[i]=a}},V=function(t){return u(Qe,t)},le={create:function(t,i){return i=V(i),q(t,document.createElement("div"),void 0,i),se(t,i)},append:function(t,i,a){return a=V(a),q(i,t,void 0,a),se(i,a)},insertBefore:function(t,i,a){return a=V(a),q(i,t.parentNode,t,a),se(i,a)},merge:function(t,i,a){return a=V(a),i.domNode=t,U(t,i,a),se(i,a)},replace:function(t,i,a){return a=V(a),q(i,t.parentNode,t,a),t.parentNode.removeChild(t),se(i,a)}},Ze=function(t){return{vnodeSelector:"",properties:void 0,children:void 0,text:t.toString(),domNode:null}},xe=function(t,i,a){for(var l=0,p=i.length;l<p;l++){var o=i[l];Array.isArray(o)?xe(t,o,a):o!=null&&o!==!1&&(typeof o=="string"&&(o=Ze(o)),a.push(o))}};function Oe(t,i,a){if(Array.isArray(i))a=i,i=void 0;else if(i&&(typeof i=="string"||i.vnodeSelector)||a&&(typeof a=="string"||a.vnodeSelector))throw new Error("h called with invalid arguments");var l,p;return a&&a.length===1&&typeof a[0]=="string"?l=a[0]:a&&(p=[],xe(t,a,p),p.length===0&&(p=void 0)),{vnodeSelector:t,properties:i,children:p,text:l===""?void 0:l,domNode:null}}var je=function(t,i,a){var l=[],p=[];return{results:p,map:function(o){for(var A=o.map(t),v=p.slice(),d=0,f=0;f<o.length;f++){var C=o[f],y=A[f];if(y===l[d])p[f]=v[d],a(C,v[d],f),d++;else{for(var m=!1,M=1;M<l.length+1;M++){var T=(d+M)%l.length;if(l[T]===y){p[f]=v[T],a(o[f],v[T],f),d=T+1,m=!0;break}}m||(p[f]=i(C,f))}}p.length=o.length,l=A}}},Ne=function(t,i){for(var a=[];t&&t!==i;)a.push(t),t=t.parentNode;return a},Ve=function(t,i){var a=t;return i.forEach(function(l){a=a&&a.children?a.children.find(function(p){return p.domNode===l}):void 0}),a},et=function(t,i,a){return function(p,o,A,v){return l};function l(p){var o,A;a("domEvent",p);var v=i(),d=Ne(p.currentTarget,v.domNode);d.reverse();var f=Ve(v.getLastRender(),d);t.scheduleRender();var C;if(f){var y=(A=(o=f.properties["on".concat(p.type)])!==null&&o!==void 0?o:f.properties.on[p.type].listener)!==null&&A!==void 0?A:f.properties.on[p.type];C=y.apply(f.properties.bind||this,arguments)}return a("domEventProcessed",p),C}},tt=function(t){var i,a=V(t),l=a.performanceLogger,p=!0,o,A=!1,v=[],d=[],f=function(y,m,M){var T,J=function(){return T};a.eventHandlerInterceptor=et(i,J,l),T=y(m,M(),a),v.push(T),d.push(M)},C=function(){if(o=void 0,!!p){p=!1,l("renderStart",void 0);for(var y=0;y<v.length;y++){var m=d[y]();l("rendered",void 0),v[y].update(m),l("patched",void 0)}l("renderDone",void 0),p=!0}};return i={renderNow:C,scheduleRender:function(){!o&&!A&&(o=requestAnimationFrame(C))},stop:function(){o&&(cancelAnimationFrame(o),o=void 0),A=!0},resume:function(){A=!1,p=!0,i.scheduleRender()},append:function(y,m){f(le.append,y,m)},insertBefore:function(y,m){f(le.insertBefore,y,m)},merge:function(y,m){f(le.merge,y,m)},replace:function(y,m){f(le.replace,y,m)},detach:function(y){for(var m=0;m<d.length;m++)if(d[m]===y)return d.splice(m,1),v.splice(m,1)[0];throw new Error("renderFunction was not found")}},i};$.createCache=e,$.createMapping=je,$.createProjector=tt,$.dom=le,$.h=Oe}));var at=96;function ne($){return $?$/72*at:0}var nt=(void 0)(),Je=10,_e=20,ge=10,Le=20,Ae={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function rt($="vertical"){let e={stroke:"rgb(200, 200, 200)",strokeWidth:"1"};return $==="vertical"?L`<svg height=4 width=10>${ue`<line x1=0 y1=2 x2=10 y2=2 style=${E(e)} />`}</svg>`:L`<svg height=10 width=10>${ue`<line x1=5 y1=0 x2=5 y2=10 style=${E(e)} />`}</svg>`}function st($,e="vertical"){let s=document.createElement("div");return s.style.height=`${_e}px`,s.className=Ae.univariateAboveAndBelowSymbol,$!=null&&(s.style.opacity=$.toString()),nt.append(s,rt.bind(null,e)),s}function Ke($,e,s="vertical",c){$.infos.forEach((n,r)=>{if(c&&r===2)n.preview=st(e,s);else{let{size:u}=n,h=ne(u)+(s==="horizontal"?Le:ge),w=n.preview.tagName.toLowerCase()==="div",b=w?n.preview:document.createElement("div");b&&(b.className=Ae.univariateAboveAndBelowSymbol),s==="horizontal"?b&&(b.style.width=`${h}px`):b&&(b.style.height=`${h}px`),w||b&&b.appendChild(n.preview),n.preview=b}})}function De($,e="classic"){let s=$.infos,c=s[0].size,n=s[s.length-1].size;return e==="classic"?(ne(c)+ge)/2:(ne(c)-ne(n))/2}function ye($,e){if(!$)return null;let s=$.infos.map(n=>n.color),c=Ge.renderColorRampPreviewHTML(e.type==="full"?s:e.type==="above"?s.slice(0,3):s.slice(2,5),{width:e.width,height:e.height,align:e.rampAlignment,effectList:e.effectList});return c.className=Ae.colorRamp,e.opacity!=null&&(c.style.opacity=e.opacity.toString()),c}function lt($,e,s,c="vertical"){let n=0,r=$.infos,u=Math.floor(r.length/2),h=e==="full"||e==="above"?0:u,w=e==="full"||e==="below"?r.length-1:u;for(let b=h;b<=w;b++)if(s&&b===u)n+=c==="horizontal"?Je:_e;else{let z=r[b].size,k=ne(z)+(c==="horizontal"?Le:ge);n+=k}return Math.round(n)}function $e($,e,s,c="vertical"){let n=lt($,e,s,c),r=$.infos,u=Math.floor(r.length/2),h=e==="full"||e==="above"?0:u,w=e==="full"||e==="below"?r.length-1:u,b=e==="full"?r[h].size+r[w].size:e==="above"?r[h].size:r[w].size,z=s?c==="vertical"?_e:Je:0,k=c==="vertical"?ge*(e==="full"?2:1):Le*(e==="full"?2:1);return Math.round(n-(ne(b)/2+z/2+k/2))}function ct($,e,s="vertical"){let c=$.infos,n=c.find(({type:u})=>u==="size-ramp"),r=c.find(({type:u})=>u==="color-ramp");return n&&(n={...n},n.infos=[...n.infos],Ke(n,e,s,!0)),r&&(r={...r},r.infos=[...r.infos]),s==="horizontal"&&(n?.infos.reverse(),r?.infos.reverse()),{sizeRampElement:n,colorRampElement:r}}function ot($,e="vertical"){let s=$.infos,c=s.find(({type:r})=>r==="size-ramp"),n=s.find(({type:r})=>r==="color-ramp");return c&&(c={...c},c.infos=[...c.infos],Ke(c,null,e,!1)),n&&(n={...n},n.infos=[...n.infos]),e==="horizontal"&&(c?.infos.reverse(),n?.infos.reverse()),{sizeRampElement:c,colorRampElement:n}}function dt($,e){return!0}var ft=ke`@layer{instant-apps-interactive-legend-classic{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: normal;--instant-apps-interactive-legend-caption-font-weight: normal;--instant-apps-interactive-legend-secondary-color: var( --calcite-color-text-1 );--instant-apps-interactive-legend-field-name-font-size: 1rem;--instant-apps-interactive-legend-total-feature-count-font-size: .875rem;--instant-apps-interactive-legend-info-font-size: .875rem;--instant-apps-interactive-legend-info-item-background--selected: #c7ebff;--instant-apps-interactive-legend-info-item-background--selected--dark: #009af2;--instant-apps-interactive-legend-info-item-background--hover: #e9e9e9;--instant-apps-interactive-legend-info-item-background--hover--dark: #4a4a4a;--instant-apps-interactive-legend-info-item-color--selected: var( --calcite-color-text-2 );--instant-apps-interactive-legend-secondary-background-color: var( --calcite-color-background );--instant-apps-interactive-legend-ui-margin: 20px 15px;--instant-apps-interactive-legend-ui-padding: 20px 15px}instant-apps-interactive-legend-classic .esri-legend__service{padding:0}instant-apps-interactive-legend-classic .esri-legend__layer-body,instant-apps-interactive-legend-classic .esri-legend__layer,instant-apps-interactive-legend-classic .esri-legend__layer-table,instant-apps-interactive-legend-classic .esri-legend__group-layer-child,instant-apps-interactive-legend-classic .esri-legend__layer-child-table{margin:0;overflow:hidden}instant-apps-interactive-legend-classic .esri-legend__layer-caption calcite-action{margin-right:5px}instant-apps-interactive-legend-classic .esri-legend__layer-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-caption-btn-container{white-space:nowrap}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}instant-apps-interactive-legend-classic .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}instant-apps-interactive-legend-classic .esri-legend__layer-cell.esri-legend__layer-cell--info{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}instant-apps-interactive-legend-classic .esri-legend__layer-cell,instant-apps-interactive-legend-classic .esri-legend__layer-row{display:flex;align-items:center}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive .esri-legend__layer-body{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol>.esri-legend__layer-body{margin:0}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive .esri-legend__layer-row{display:table-row}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive .esri-legend__layer-cell{display:table-cell}instant-apps-interactive-legend-classic .esri-legend__layer-cell--symbols{justify-content:center;width:20%}instant-apps-interactive-legend-classic .esri-legend__layer-cell--info{width:65%}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive{margin:1px;background:transparent;border:none;width:100%}instant-apps-interactive-legend-classic .esri-legend__layer-cell--info{color:var(--instant-apps-interactive-legend-secondary-color)}instant-apps-interactive-legend-classic .esri-legend__layer-row,instant-apps-interactive-legend-classic .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive{position:relative}instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected .esri-legend__layer-cell--info{color:var(--calcite-color-text-inverse)}instant-apps-interactive-legend-classic .hide{display:none}.instant-apps-interactive-legend__compact .esri-legend__layer-row{--instant-apps-interactive-legend-ui-padding: 10px 5px}.instant-apps-interactive-legend__compact .esri-legend__layer-row .esri-legend__layer-cell--info{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;line-clamp:2;line-height:1.3125rem;max-height:2.625rem}@media(min-width:992px){instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive{cursor:pointer}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}}`,g={layer:"esri-legend__layer",layerBody:"esri-legend__layer-body",layerRow:"esri-legend__layer-row",layerInfo:"esri-legend__layer-cell esri-legend__layer-cell--info",imageryLayerStretchedImage:"esri-legend__imagery-layer-image--stretched",symbolContainer:"esri-legend__layer-cell esri-legend__layer-cell--symbols",symbol:"esri-legend__symbol",rampContainer:"esri-legend__ramps",sizeRamp:"esri-legend__size-ramp",colorRamp:"esri-legend__color-ramp",opacityRamp:"esri-legend__opacity-ramp",rampLabelsContainer:"esri-legend__ramp-labels",rampLabel:"esri-legend__ramp-label",univariateAboveAndBelowLabel:"esri-univariate-above-and-below-ramp__label",message:"esri-legend__message",interactiveLayerRow:"instant-apps-interactive-legend__layer-row--interactive",infoSelected:"instant-apps-interactive-legend-element-info--selected",compact:"instant-apps-interactive-legend__compact"},vt=24,qe={display:"flex",alignItems:"flex-start"},be={marginLeft:"3px"},ae={display:"table-cell",verticalAlign:"middle"},we=class extends ze{constructor(){super(...arguments),this.calculatingFeatureCount=!1,this.isLoading=!0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"}}static{this.properties={isLoading:16,legendvm:0,zoomTo:5,featureCount:5,filterMode:0,messages:0}}static{this.styles=ft}static{this.shadowRootOptions=Re}connectedCallback(){super.connectedCallback(),!this.handles&&(this.handles=new it)}async load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0}),W.onChange("data",()=>this.requestUpdate())}willUpdate(e){e.has("filterMode")&&this.legendvm?.view&&(this.hasUpdated||this.filterMode.type!=="filter")&&Ue(this.filterMode,this.legendvm.view)}async loaded(){await this.initLegend()}disconnectedCallback(){super.disconnectedCallback(),this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}async initLegend(){try{await D.whenOnce(()=>this.legendvm?.view);let e=async()=>{try{let s=this.legendvm?.view?.map;await s?.load(),await s?.basemap?.load();let c=s?.allLayers?.map(async h=>await h.load()),n=(await Promise.allSettled(c)).map(h=>h?.status==="fulfilled"&&h?.value?h.value:null).filter(h=>!!h),r=[];n.forEach(h=>{this.legendvm?.view&&r.push(this.legendvm.view.whenLayerView(h))}),await Promise.allSettled(r);let u=await ve(this.legendvm);W.set("data",{...B.data,...u}),this.isLoading=!1,await this.setupWatchersAndListeners()}catch(s){console.error(s),this.isLoading=!1}};this.legendvm?.view?.when(e),this.legendvm?.view?.map?.layers?.on("after-changes",e)}catch{this.isLoading=!1}}getStretchStopLabel(e){let s=this.messages[e.label];return e.label?`${s}: ${typeof e.value=="string"?e.value:ce.formatNumber(e.value,{style:"decimal",notation:e.value.toString().includes("e")?"scientific":"standard"})}`:""}getTitle(e,s){if(!e)return;if(typeof e=="string"||typeof e=="number")return e;if("value"in e||"unit"in e){let r=typeof this.messages?.dotValue=="string"?this.messages.dotValue:"";return ce.substitute(r,e)}if("colorName"in e||"bandName"in e){let{colorName:r,bandName:u}=e,h=this.messages[r],w=typeof this.messages[u]=="string"?this.messages[u]:u;return`${h}: ${w}`}if("showCount"in e)return e.showCount?this.messages.clusterCountTitle:null;let c=null;if(s){let r=e;c=r.ratioPercentTotal?"showRatioPercentTotal":r.ratioPercent?"showRatioPercent":r.ratio?"showRatio":e.normField?"showNormField":e.field?"showField":null}else if(this.isRendererTitle(s)){let r=e;c=r.normField?"showNormField":r.normByPct?"showNormPct":r.field?"showField":null}let n=c==="showField"?"{field}":typeof c=="string"?this.messages[c]:"";return c?ce.substitute(n,{field:e.field,normField:e.normField}):""}isRendererTitle(e){return!e}async setupWatchersAndListeners(){let e=this.legendvm?.view?.map?.allLayers?.filter(n=>n?.type==="feature"),s=[];for(let n of e)this.legendvm?.view&&s.push(this.legendvm?.view?.whenLayerView(n));let c=[];try{c=await Promise.all(s)}catch(n){console.error(n)}for(let n of c){let r=`fLayerViewScale-${n.layer.id}`;!this.handles?.has(r)&&n&&this.handles?.add(n.watch("visibleAtCurrentScale",()=>{this.createDataForLayer(n.layer).catch(u=>{console.error(u)})}),r)}e?.forEach(n=>{let r=`fLayer-${n?.id}`;this.handles?.has(r)||this.handles?.add(D?.watch(()=>n?.visible,()=>{this.createDataForLayer(n).catch(u=>{console.error(u)})}),r)}),this.handles?.add(D.when(()=>this.legendvm,()=>{D.watch(()=>this.legendvm?.view?.updating,()=>{this.calculatingFeatureCount||this.legendvm?.view?.updating&&(this.calculatingFeatureCount=!0,D.when(()=>!this.legendvm?.view?.updating,()=>{pe(this.legendvm,B.data).then(n=>{W.set("data",{...B.data,...n}),this.calculatingFeatureCount=!1}).catch(n=>{console.error(n)})},{once:!0,initial:!0}))},{initial:!0})},{initial:!0,once:!0})),this.handles?.add(D.on(()=>this.legendvm?.activeLayerInfos,"change",n=>{ve(this.legendvm).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).then(()=>{this.handles?.add(D.on(()=>n.children,"change",()=>{ve(this.legendvm).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).catch(r=>{console.error(r)})}))}).catch(r=>{console.error(r)})})),this.handles?.add(D.on(()=>this.legendvm?.view?.map?.layers,"after-changes",()=>{pe(this.legendvm,B.data).then(n=>{W.set("data",{...B.data,...n}),this.calculatingFeatureCount=!1}).catch(n=>{console.error(n)})}))}async createDataForLayer(e){let s=W.get("data")?.[e?.id],c=Be(this.legendvm?.activeLayerInfos)?.find(n=>n?.layer?.id===e?.id);if(!s&&c){let n=await Ie(this.legendvm,c);if(me({intLegendLayerData:n,layerId:e?.id}),this.featureCount){let r=await pe(this.legendvm,B.data);W.set("data",{...B.data,...r})}}}applyFilter(e,s,c,n){return async()=>{let r={...B.data?.[s?.id]};n?await he(r,e,c,this.filterMode,n):await he(r,e,c,this.filterMode),me({intLegendLayerData:r,layerId:s?.id})}}render(){let e=this.renderFilteredLayers(),s=W.get("compact")?` ${g.compact}`:"";return this.isLoading?K("interactive-legend-loader",L`<calcite-loader scale=m .label=${this.messages?.loading} .text=${this.messages?.loading}></calcite-loader>`):K("interactive-legend-classic-container",L`<div class=${`${Z(this.el)}${s}`}>${e?.length>0?e:L`<div class=${_(g.message)}>${this.messages?.noLegend}</div>`}</div>`)}renderFilteredLayers(){return(this.legendvm?.activeLayerInfos?.toArray()).map(e=>this.renderLegendForLayer(e)).filter(e=>!!e)}renderLegendForLayer(e,s){if(!e.ready)return null;if(e.children.length){let r=e.children.map(u=>this.renderLegendForLayer(u,!0)).toArray();return L`<instant-apps-interactive-legend-group-legend-element class=${_(Z(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${e} .isChild=${s}><div style=${E({paddingLeft:"20px"})} .id=${`${e?.layer?.id}-legend-layer`} slot=content>${r}</div></instant-apps-interactive-legend-group-legend-element>`}let c=e.legendElements;if(c&&!c.length)return null;let n=c.map((r,u)=>this.renderLegendForElement(r,e.layer,e.effectList,e,u)).filter(r=>!!r);return n.length?L`<instant-apps-interactive-legend-layer-element class=${_(Z(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${e} .isChild=${!!s}><div slot=content .id=${`${e?.layer?.id}-legend-layer`} class=${_(g.layer)}>${n}</div></instant-apps-interactive-legend-layer-element>`:null}renderLegendForElement(e,s,c,n,r,u,h){let w=e.type==="color-ramp",b=e.type==="opacity-ramp",z=e.type==="size-ramp",k=null,x=Me(n,e,r),S=e?.type==="relationship-ramp";if(e.type==="symbol-table"||z){let R=e.infos.map((F,G)=>this.renderLegendForElementInfo(F,s,c,z,e,n,r,G,x,h)).filter(F=>!!F);R.length&&(k=L`<div class=${_(g.layerBody)}>${R}</div>`)}else if(e.type==="color-ramp"||e.type==="opacity-ramp"||e.type==="heatmap-ramp"||e.type==="stretch-ramp"){let R=e;k=this.renderLegendForRamp(R,s.opacity)}else if(S)k=K("relationship-ramp",L`<instant-apps-interactive-legend-relationship class=${_(Z(this.el))} .filterMode=${this.filterMode} .activeLayerInfo=${n} .legendElement=${e}></instant-apps-interactive-legend-relationship>`);else if(e.type==="pie-chart-ramp"){let R=e;k=this.renderPieChartRamp(R)}else if(e.type==="univariate-above-and-below-ramp"){let R=e;k=this.renderUnivariateAboveAndBelowRamp(R,s.opacity,c)}else if(e.type==="univariate-color-size-ramp"){let R=e;k=this.renderUnivariateColorSizeRamp(R,s.opacity,c)}if(!k)return null;let I=e.title,P=null;if(typeof I=="string")P=I;else if(I){let R=I,F=this.getTitle(R,w||b);this.isRendererTitle(w||b)?"title"in I&&(P=`${I.title} (${F})`):P=F}return L`<instant-apps-interactive-legend-legend-element class=${_(Z(this.el))} .activeLayerInfo=${n} .isSizeRamp=${z} .isChild=${!!u} .isColorRamp=${w} .isRelationshipRamp=${S} .isInteractive=${x} .zoomTo=${this.zoomTo} .legendElement=${e} .titleText=${P} .legendvm=${this.legendvm} .legendElementIndex=${r}><div slot=content>${k}</div></instant-apps-interactive-legend-legend-element>`}renderPieChartRamp(e){return L`<div .innerHTML=${`${e.preview?.outerHTML}`}></div>`}renderUnivariateAboveAndBelowRamp(e,s,c){let{sizeRampElement:n,colorRampElement:r}=ct(e,s);if(!n)return null;let u=$e(n,"above",!0),h=$e(n,"below",!0),w=12,b=ye(r,{width:w,height:u,rampAlignment:"vertical",opacity:s,type:"above",effectList:c}),z=ye(r,{width:w,height:h,rampAlignment:"vertical",opacity:s,type:"below",effectList:c}),k=De(n),x=n.infos.map(H=>H.label),S=x.map((H,U)=>U===0?L`<div class=${_(H?b?g.univariateAboveAndBelowLabel:g.rampLabel:"")}>${H}</div>`:U===2?L`<div></div>`:null),I=x.length-1,P=Math.floor(x.length/2),R=x.map((H,U)=>U===P||U===I?L`<div class=${_(H?b?g.univariateAboveAndBelowLabel:g.rampLabel:"")}>${H}</div>`:null),F={display:"table-cell",verticalAlign:"middle"},G={marginTop:`${k}px`},O={height:`${u}px`},j={height:`${h}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(qe)}><div class=${_(g.layerBody)}>${n.infos.map((H,U)=>L`<div class=${`${g.layerRow} ${g.sizeRamp}`}><div class=${_(g.symbol)} style=${E(F)} .innerHTML=${H?.preview?.outerHTML??""??""}></div>${!b&&U%2===0?L`<div class=${_(g.layerInfo)}>${x[U]}</div>`:null}</div>`)}</div>${b?K("color-ramp-preview",L`<div style=${E(G)}><div style=${E(be)}><div style=${E(ae)}><div class=${_(g.rampContainer)}>${b}</div></div><div style=${E(ae)}><div class=${_(g.rampLabelsContainer)} style=${E(O)}>${S}</div></div></div><div style=${E(be)}><div style=${E(ae)}><div class=${_(g.rampContainer)}>${z}</div></div><div style=${E(ae)}><div class=${_(g.rampLabelsContainer)} style=${E(j)}>${R}</div></div></div></div>`):null}</div>`)}renderUnivariateColorSizeRamp(e,s,c){let{sizeRampElement:n,colorRampElement:r}=ot(e);if(!n)return null;let u=De(n),h=12,w=$e(n,"full",!1),b=ye(r,{width:h,height:w,rampAlignment:"vertical",opacity:s,type:"full",effectList:c}),z=n.infos.length-1,k=n.infos.map((P,R)=>R===0||R===z?L`<div class=${_(P.label?r?g.univariateAboveAndBelowLabel:g.rampLabel:"")}>${P.label}</div>`:null),x={display:"table-cell",verticalAlign:"middle"},S={marginTop:`${u}px`},I={height:`${w}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(qe)}><div class=${_(g.layerBody)}>${n.infos.map(P=>L`<div class=${`${g.layerRow} ${g.sizeRamp}`}><div class=${_(g.symbol)} style=${E(x)} .innerHTML=${P?.preview?.outerHTML??""??""}></div></div>`)}</div>${K("color-ramp-preview",L`<div style=${E(S)}><div style=${E(be)}><div style=${E(ae)}><div class=${_(g.rampContainer)}>${b}</div></div><div style=${E(ae)}><div class=${_(g.rampLabelsContainer)} style=${E(I)}>${k}</div></div></div></div>`)}</div>`)}renderLegendForRamp(e,s){let c=e.infos,n=e.type==="opacity-ramp",r=e.type==="heatmap-ramp",u=e.type==="stretch-ramp",h=e.preview,w=n?g.opacityRamp:"";h&&(h.classList.add(g.colorRamp),w&&h.classList.add(w)),s!=null&&h&&(h.style.opacity=s.toString());let b=c.map(x=>{let S;if(r){let I=this.messages[x.label];S=typeof I=="string"?I:x.label}else u?S="value"in x?this.getStretchStopLabel(x):x.label:S=x.label;return L`<div class=${_(x.label?g.rampLabel:"")}>${S}</div>`}),z={width:`${vt}px`},k={height:h?.style?.height};return L`<div class=${_(g.layerRow)}><div class=${_(g.symbolContainer)} style=${E({...z})}><div class=${_(g.rampContainer)} ${Ee(x=>{x?.firstChild&&x?.firstChild?.remove(),x?.appendChild(h)})}></div></div><div class=${_(g.layerInfo)}><div class=${_(g.rampLabelsContainer)} style=${E({...k})}>${b}</div></div></div>`}renderLegendForElementInfo(e,s,c,n,r,u,h,w,b,z){if("infos"in e)return this.renderLegendForElement(e,s,c,u,h,!0,e);let k=null,x=!dt(s,r.type);if("preview"in e){let{outerHTML:q}=e.preview;k=L`<div class=${_(g.symbol)} .innerHTML=${q??""}></div>`}else"src"in e&&(k=this.renderImage(e,s,x));if(!k)return null;let S="",I=n?` ${g.sizeRamp}`:"",P,R=Te(s),F=He(R,z);if(B.data){let q=Pe(R,s,e,F,w),N=F?F?.nestedInfos:R,re=Fe(N);P=R?.categories?.size===1?!q?.selected:re||q?.selected}let G="label"in e?e.label:null,O=F&&!("value"in e)?!1:b,j=W.get("compact"),H=this.getTitle(G,!1)||"",U=F?r.title:G??s?.id;return O?L`<button @click=${this.applyFilter(e,s,w,z)} class=${`${g.layerRow} ${g.interactiveLayerRow}${P?` ${g.infoSelected}`:""}`} title=${(j?`${H}`:void 0)??fe} .ariaPressed=${P?"true":"false"}><div class=${`${g.symbolContainer}${S}${I}`}>${k}</div><div class=${`${g.layerInfo}${S}`}>${this.getTitle(G,!1)||""}</div>${this.featureCount&&!j?L`<instant-apps-interactive-legend-count class=${_(Z(this.el))} .categoryId=${U} .activeLayerInfo=${u} .legendvm=${this.legendvm} .selected=${!!P} .legendElement=${r} .infoIndex=${w}></instant-apps-interactive-legend-count>`:null}</button>`:L`<div class=${_(g.layerRow)}><div class=${`${g.symbolContainer}${S}${I}`}>${k}</div><div class=${`${g.layerInfo}${S}`}>${H}</div></div>`}renderImage(e,s,c){let{label:n,src:r,opacity:u}=e,h=c?` ${g.imageryLayerStretchedImage}`:"",w=c?"":` ${g.symbol}`,b={opacity:`${u??s.opacity}`};return L`<img alt=${this.getTitle(n,!1)??fe} src=${r??fe} width=${e.width} height=${e.height} class=${`$${h}${w}`} style=${E(b)}>`}};Se("instant-apps-interactive-legend-classic",we);return we},"symbols/support/symbolUtils","core/reactiveUtils","intl","core/Handles",a,b,c,d)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as H}from"./NM3YBQUM.js";import{b as O}from"./EGFXSDFS.js";import"./DIKAKOU5.js";import"./S423P2GA.js";import{E,F as m,G as h,H as B,J as i,K as d,L,h as U,i as n,j as w}from"./P4KZ6OZF.js";import"./QPIMTXPL.js";export default $arcgis.t(([F,Y,P,ee,M])=>{var te=U`:host{display:block;--instant-apps-social-share-action-width: initial;--instant-apps-social-share-width--s: 200px;--instant-apps-social-share-width--m: 280px;--instant-apps-social-share-width--l: 320px;--instant-apps-social-share-width-horizontal--s: 300px;--instant-apps-social-share-width-horizontal--m: 380px;--instant-apps-social-share-width-horizontal--l: 420px;--instant-apps-social-share-background-color: var( --calcite-color-foreground-1 );--instant-apps-social-share-popover-button-background-color: transparent;--instant-apps-social-share-popover-button-icon-color: var( --calcite-icon-color );--instant-apps-social-share-embed-border: 1px solid $border;--instant-apps-social-share-embed-text-area-text: #468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#fff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:700;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}`,a="instant-apps-social-share",k=".calcite-mode-dark",t={dialog:`${a}__dialog`,dialogContent:`${a}__dialog-content`,options:`${a}__options`,tipContainer:`${a}__tip`,tipHeader:`${a}__tip-header`,tipContent:`${a}__tip-content`,icon:`${a}__icon`,iconContainer:`${a}__icon-container`,optionText:`${a}__option-text`,popoverButton:`${a}__popover-button`,layout:{vertical:`${a}__layout--vertical`,horizontal:`${a}__layout--horizontal`},xLogo:{light:`${a}__x-logo--light`,dark:`${a}__x-logo--dark`},success:{container:`${a}__success`,header:`${a}__success-header`,message:`${a}__success-message`,icon:`${a}__success-icon`},embed:{container:`${a}__embed`,header:`${a}__embed-header`,embedCode:{container:`${a}__embed-code`,textArea:`${a}__embed-code-text-area`,copyButton:`${a}__embed-code-copy-button`},textAreaText:`${a}__embed-text-area-text`,dimensions:{container:`${a}__embed-dimensions`,input:`${a}__embed-dimensions-input`}},rtl:{optionText:`${a}__option-text--rtl`,textArea:`${a}__text-area--rtl`}},se={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?text={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},T=1,z=class extends B{constructor(){super(...arguments),this._messages=H({name:"instant-apps-social-share"}),this.popoverRef=m(),this.embedWidthRef=m(),this.embedHeightRef=m(),this.embedCodeRef=m(),this.copyLinkPopoverRef=m(),this.copyEmbedPopoverRef=m(),this.dialogContentRef=m(),this.shareListRef=m(),this.popoverButtonRef=m(),this.handlePopoverRefKeyDown=async e=>{if(!this.isNativeShareEnabled)if(e.code==="Tab"){if(!this.shareListRef.value)return;let s=e.target,o=this.shareListRef.value.children[0],r=this.shareListRef.value.children[this.shareListRef.value.children.length-1];e.shiftKey&&s===o?(e.preventDefault(),r.focus()):!e.shiftKey&&s===r&&(e.preventDefault(),o.focus())}else e.code==="Escape"&&(this.closePopover(),await this.popoverButtonRef.value?.setFocus())},this.stopEventPropagation=e=>{e.stopPropagation()},this.autoCloseCallback=()=>{this.mode==="popover"&&this.popoverRef.value?(this.isPopoverOpen=!1,this.popoverRef.value.open=this.isPopoverOpen):(this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1),this.inlineCopyEmbedOpened=!1)},this.resetPopoverCopyState=async()=>{await this.popoverButtonRef.value?.setFocus(),setTimeout(()=>{this.isLinkCopiedToClipboard=!1,this.isEmbedCopiedToClipboard=!1},200)},this.isPopoverOpen=!1,this.isLinkCopiedToClipboard=!1,this.isEmbedCopiedToClipboard=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600,this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1}static{this.properties={isPopoverOpen:16,isLinkCopiedToClipboard:16,isEmbedCopiedToClipboard:16,inlineCopyLinkOpened:16,inlineCopyEmbedOpened:16,embedWidth:16,embedHeight:16,mode:3,shareUrl:1,autoUpdateShareUrl:5,shareText:3,embed:7,shareButtonColor:3,shareButtonType:3,shareButtonScale:3,iframeInnerText:3,popoverButtonIconScale:3,view:0,displayTipText:7,shortenShareUrl:7,socialMedia:7,shareIconsLayout:3,scale:3,successMessage:3,flipRtl:7,defaultUrlParams:0,inlineSuccessPopoverPlacement:3,popoverPositioning:3,removePopoverOffset:7,useNativeShare:7,isNativeShareEnabled:7}}static{this.styles=te}load(){document.documentElement.addEventListener("click",this.autoCloseCallback),this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice}disconnectedCallback(){super.disconnectedCallback(),document.documentElement.removeEventListener("click",this.autoCloseCallback)}makeOptionKeyDownHandler(e){return async s=>{let o=s.code;(o==="Space"||o==="Enter")&&await this.handleShareItem(e)}}makeEmbedResizeHandler(e){let s=e==="width"?this.embedWidthRef.value:this.embedHeightRef.value;return()=>{if(!(!this.embed||this.isNativeShareEnabled)&&s){let o=Math.max(s.valueAsNumber??0,T);this[e==="width"?"embedWidth":"embedHeight"]=o}}}togglePopoverVisibility(e){e.stopPropagation(),this.isPopoverOpen=!this.isPopoverOpen,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}closePopover(){this.isPopoverOpen=!1,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}async handleShareItem(e){this.shareUrl=await this.generateShareUrl();let s=null,o=navigator?.userAgent?.includes("Chrome")??!1,r=(navigator?.userAgent?.includes("Safari")??!1)&&!o;!r&&this.shortenShareUrl&&(s=await this.shortenUrl(this.shareUrl));let p=s||this.shareUrl;switch(e){case"link":await navigator.clipboard.writeText(p),this.embed&&this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!0,setTimeout(()=>{this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1)},3e3)),this.inlineCopyLinkOpened=!0,this.isLinkCopiedToClipboard=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let l;r&&(l=window.open("","_blank"),this.shortenShareUrl&&(p=await this.shortenUrl(this.shareUrl)||p));let f={url:encodeURI(p)},g=e==="x"?{...f,text:this.shareText}:f,R=F.substitute(se[e],g);this.mode==="popover"&&this.closePopover(),r&&l?(l.location=R,l.focus()):window.open(encodeURI(R),"_blank")}break;case"native-share":let b={title:this._messages.share?.label||"Share",text:this.shareText,url:encodeURI(p)};navigator?.canShare?.(b)?navigator.share(b).catch(l=>{console.error("Error using native share:",l)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(e){let s=(await Y("https://arcg.is/prod/shorten",{query:{longUrl:e,f:"json"}}))?.data?.data?.url;if(s)return s.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}async copyEmbedCode(){if(await navigator.clipboard.writeText(this.getEmbedCode()),this.isEmbedCopiedToClipboard=!0,this.mode==="popover"){setTimeout(()=>this.closePopover(),2e3);return}this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!0,setTimeout(()=>{this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1)},3e3)),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:e,y:s}=this.view.center,{spatialReference:o}=this.view,r=new M({...o.toJSON()}),p=new ee({x:e,y:s,spatialReference:r}),b=await this.processPoint(p),{isWGS84:l,isWebMercator:f}=b.spatialReference,g=l||f;return this.generateShareUrlParams(b,g)}async processPoint(e){let{isWGS84:s,isWebMercator:o}=e.spatialReference;if(s||o)return e;let r=new M({wkid:4326}),p=this.view?.spatialReference??r;try{return await P.load(),P.execute(e,p)}catch(b){console.error("Failed to project point to outSpatialReference",b);try{let l=P.execute(e,r);return Promise.resolve(l)}catch(l){return console.error("Failed to project point to fallbackOutSpatialReference",l),await Promise.reject(new Error("Failed to project point to both spatial references"))}}}generateShareUrlParams(e,s){let{longitude:o,latitude:r,x:p,y:b}=e;if(o===void 0||r===void 0||!this.view)return this.shareUrl;let l=this.roundValue(s?o:p),f=this.roundValue(s?r:b),{zoom:g}=this.view,R=this.roundValue(g),I=this.view?.popupElement??document.querySelector("arcgis-popup"),C=I?.selectedFeature??this.view?.popup?.selectedFeature,N=I?.open??this.view?.popup?.visible,$,x;if(C&&N&&C?.layer?.type==="feature"){let v=C?.layer;$=v?.id,x=C.attributes[v.objectIdField]}let S=this.view.map?.allLayers.filter(v=>!v.visible).toArray().map(v=>v.id).toString().replaceAll(",",";"),{type:D}=this.view,{defaultUrlParams:_}=this,c=new URL(this.shareUrl),{searchParams:u}=c;if(u.get("center")&&u.delete("center"),u.get("level")&&u.delete("level"),u.get("selectedFeature")&&u.delete("selectedFeature"),u.get("hiddenLayers")&&u.delete("hiddenLayers"),u.get("viewpoint")&&u.delete("viewpoint"),D==="3d"){let{camera:v}=this.view,{heading:A,position:V,tilt:W}=v,{longitude:j,latitude:K,x:Z,y:X,z:q}=V,G=s?j:Z,J=s?K:X,y={longitude:this.roundValue(G,8),latitude:this.roundValue(J,8),z:this.roundValue(q,3),heading:this.roundValue(A,3),tilt:this.roundValue(W,3)},Q=`cam:${y.longitude},${y.latitude},${y.z}${!s&&this.view?.spatialReference?.wkid?`,${this.view?.spatialReference?.wkid}`:""};${y.heading},${y.tilt}`;return _?.viewpoint!==!1&&c.searchParams.set("viewpoint",Q),$&&x&&_?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),S&&_?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",S),c.search=decodeURIComponent(c.search),c.href}return _?.center!==!1&&c.searchParams.set("center",`${l};${f}${!s&&this.view?.spatialReference?.wkid?`;${this.view?.spatialReference?.wkid}`:""}`),_?.level!==!1&&c.searchParams.set("level",`${R}`),$&&x&&_?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),S&&_?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",S),c.search=decodeURIComponent(c.search),c.href}roundValue(e,s=4){return Number.parseFloat(e.toFixed(s))}get isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}render(){let e=this.mode==="popover"&&(this.isLinkCopiedToClipboard||this.isEmbedCopiedToClipboard)?this.isEmbedCopiedToClipboard?this.renderEmbedSuccess():this.renderSuccess():n`<div class=${i(t.dialogContent)}>${this.renderMenuOptions()}${this.displayTipText?this.renderTip():null}${this.embed?this.renderEmbed():null}</div>`,s=this.shareIconsLayout==="vertical"?` ${t.layout.vertical}`:` ${t.layout.horizontal}`,o=` calcite-mode-${this.el.closest(k)?"dark":"light"}`,r=n`<div class=${`${t.dialog}${s}${o}`} @click=${this.stopEventPropagation} ${h(this.dialogContentRef)}>${e}</div>`,p=this.removePopoverOffset?0:6;return this.isNativeShareEnabled?this.renderShareButton():this.mode==="popover"?[n`<calcite-popover .open=${this.isPopoverOpen} .label=${this._messages.share?.label??""} reference-element=shareButton placement=bottom-start .scale=${this.scale} .overlayPositioning=${this.popoverPositioning} .offsetDistance=${p} .pointerDisabled=${this.removePopoverOffset} @calcitePopoverOpen=${()=>{!this.shareListRef.value||this.isNativeShareEnabled||this.shareListRef.value.children[0].focus()}} @calcitePopoverBeforeClose=${this.resetPopoverCopyState} @click=${this.stopEventPropagation} @keydown=${this.handlePopoverRefKeyDown} ${h(this.popoverRef)}>${r}</calcite-popover>`,this.renderShareButton()]:[r,n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyLinkPopoverRef)}>${this.renderSuccess()}</calcite-popover>`,this.embed?n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyEmbedToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyEmbedPopoverRef)}>${this.renderEmbedSuccess()}</calcite-popover>`:null]}renderShareButton(){let e=this.shareButtonScale??this.scale,s=async r=>{this.isNativeShareEnabled?(r.stopPropagation(),await this.handleShareItem("native-share")):this.togglePopoverVisibility(r)},o=n`<div class=${i(t.iconContainer)}><calcite-icon icon=share .scale=${this.popoverButtonIconScale}></calcite-icon></div>`;return this.shareButtonType==="button"?n`<calcite-button id=shareButton class=${i(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??L} .scale=${e} @click=${s} .kind=${this.shareButtonColor} appearance=transparent ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-button>`:n`<calcite-action id=shareButton class=${i(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??L} .scale=${e} @click=${s} appearance=transparent text alignment=center ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-action>`}renderSuccess(){let e=this._messages.success;return n`<div class=${i(t.success.container)}><span class=${i(t.success.header)}><span class=${i(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${i(t.success.message)}>${this.successMessage||e?.url}</span></div>`}renderEmbedSuccess(){let e=this._messages.success;return n`<div class=${i(t.success.container)}><span class=${i(t.success.header)}><span class=${i(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${i(t.success.message)}>${e?.embed}</span></div>`}renderMenuOptions(){let e=this._messages.options,s=document.dir==="rtl"?` ${t.rtl.optionText}`:"";return n`<ul class=${i(t.options)} role=menu ${h(this.shareListRef)}><li id=copyToClipboard @click=${this.handleShareItem.bind(this,"link")} @keydown=${this.makeOptionKeyDownHandler("link")} role=menuitem tabindex=0><span class=${i(t.icon)}><calcite-icon icon=link .scale=${this.scale}></calcite-icon></span><span class=${`${t.optionText}${s}`}>${e?.link?.label}</span></li>${this.socialMedia?[n`<li @click=${this.handleShareItem.bind(this,"facebook")} @keydown=${this.makeOptionKeyDownHandler("facebook")} role=menuitem tabindex=0><span class=${i(t.icon)}>${this.renderFacebookIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.facebook?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"x")} @keydown=${this.makeOptionKeyDownHandler("x")} role=menuitem tabindex=0><span class=${i(t.icon)}>${this.renderXIcon()}</span><span class=${`${t.optionText}${s}`}>X</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"linkedIn")} @keydown=${this.makeOptionKeyDownHandler("linkedIn")} role=menuitem tabindex=0><span class=${i(t.icon)}>${this.renderLinkedInIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.linkedIn?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"bluesky")} @keydown=${this.makeOptionKeyDownHandler("bluesky")} role=menuitem tabindex=0><span class=${i(t.icon)}>${this.renderBlueSkyIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.blueSky?.label}</span></li>`]:null}</ul>`}renderFacebookIcon(){let e=!!this.el.closest(k);return n`<svg height=100% style=${d({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g><path d="M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z" style=${d({fill:e?"#fff":"#000",fillRule:"nonzero"})} /><path d="M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z" style=${d({fill:e?"#000":"#fff",fillRule:"nonzero"})} /></g>`}</svg>`}renderXIcon(){let e=!!this.el.closest(k);return n`<svg height=100% class=${i(e?t.xLogo.dark:t.xLogo.light)} viewBox="0 0 1200 1227" fill=none xmlns=http://www.w3.org/2000/svg>${w`<rect height=400 style=${d({fill:"none"})} width=400 x=56 y=56 /><path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" fill=${e?"white":"black"} />`}</svg>`}renderBlueSkyIcon(){let e=!!this.el.closest(k);return n`<svg height=100% xmlns=http://www.w3.org/2000/svg viewBox="0 0 512 512">${w`<path style=${d({fill:e?"#fff":"#000"})} d="M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z" />`}</svg>`}renderLinkedInIcon(){let e=!!this.el.closest(k);return n`<svg height=100% style=${d({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g id=g5891><path d="M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z" id=background style=${d({fill:e?"#fff":"#000"})} /><g id=shapes><rect height=257.962 id=rect11 style=${d({fill:e?"#000":"#fff"})} width=85.76 x=61.053 y=178.667 /><path d="M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z" id=path13-0 style=${d({fill:e?"#000":"#fff",fillRule:"nonzero"})} /><path d="M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z" id=path15 style=${d({fill:e?"#000":"#fff",fillRule:"nonzero"})} /></g></g>`}</svg>`}renderTip(){let e=this._messages.info;return n`<div class=${i(t.tipContainer)}><span class=${i(t.tipHeader)}><calcite-icon icon=lightbulb .scale=${this.scale}></calcite-icon><span>${e?.label}</span></span><p class=${i(t.tipContent)}>${e?.tooltip}</p></div>`}renderEmbed(){let e=this._messages.embed,s=document.dir==="rtl"?` ${t.rtl.textArea}`:"";return n`<div class=${i(t.embed.container)}><span class=${i(t.embed.header)}><calcite-icon icon=code .scale=${this.scale}></calcite-icon><span>${this._messages.embed?.label}</span></span><div class=${i(t.embed.embedCode.container)}><div class=${i(t.embed.embedCode.textArea)}><textarea cols=30 rows=5 readonly class=${i(s)} .value=${E(this.getEmbedCode()??"")} ${h(this.embedCodeRef)}></textarea><button id=copyEmbedToClipboard @click=${this.copyEmbedCode} class=${i(t.embed.embedCode.copyButton)}><calcite-icon icon=copy .scale=${this.scale}></calcite-icon><span>${e?.copy}</span></button></div><span class=${i(t.embed.textAreaText)}><slot name=text-area-text></slot></span><div class=${i(t.embed.dimensions.container)}><label class=${i(t.embed.dimensions.input)}><span>${e?.width}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("width")} .value=${E(this.embedWidth??"")} min=${T} ${h(this.embedWidthRef)}></label><label class=${i(t.embed.dimensions.input)}><span>${e?.height}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("height")} .value=${E(this.embedHeight??"")} min=${T} ${h(this.embedHeightRef)}></label></div></div></div>`}};O("instant-apps-social-share",z);return z},"intl","request","geometry/operators/projectOperator","geometry/Point","geometry/SpatialReference")
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import"./QPIMTXPL.js";var t="B\u1EA1n kh\xF4ng c\xF3 \u0111\u1EE7 credit \u0111\u1EC3 th\u1EF1c hi\u1EC7n thao t\xE1c n\xE0y. Vui l\xF2ng li\xEAn h\u1EC7 v\u1EDBi Qu\u1EA3n tr\u1ECB vi\xEAn H\u1EC7 th\u1ED1ng ArcGIS cu\u1EA3 b\u1EA1n \u0111\u1EC3 \u0111\u01B0\u1EE3c tr\u1EE3 gi\xFAp.",n="\u0110\xE3 xu\u1EA5t b\u1EA3n c\xF4ng c\u1EE5 n\xE0y t\u1EEB notebook. T\u1ED5 ch\u1EE9c c\u1EE7a b\u1EA1n b\u1ECB ch\u1EB7n truy c\u1EADp v\xE0o ArcGIS Notebooks. Li\xEAn h\u1EC7 v\u1EDBi qu\u1EA3n tr\u1ECB vi\xEAn c\u1EE7a b\u1EA1n \u0111\u1EC3 \u0111i\u1EC1u ch\u1EC9nh thi\u1EBFt l\u1EADp.",a="${ dataPath } kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EE9a ${ additionalProperty }.",r="${ dataPath } ph\u1EA3i kh\u1EDBp v\u1EDBi l\u01B0\u1EE3c \u0111\u1ED3 c\u1EE7a m\u1ED9t trong nh\u1EEFng th\u1EE9 sau: ${ schemaOptions }.",e="H\xE3y th\u1EED l\u01B0u l\u1EA1i b\u1EA3n \u0111\u1ED3.",i="Kh\xF4ng th\u1EC3 \u01AF\u1EDBc t\xEDnh Credit. Cu\u1ED9n xu\u1ED1ng, s\u1EEDa l\u1ED7i v\xE0 \u01B0\u1EDBc t\xEDnh l\u1EA1i credit.",h="\u0110\xE3 x\u1EA3y ra l\u1ED7i khi ch\u1EA1y ph\xE2n t\xEDch.",c="${ dataPath } ph\u1EA3i b\u1EB1ng m\u1ED9t trong nh\u1EEFng gi\xE1 tr\u1ECB \u0111\u01B0\u1EE3c ph\xE9p n\xE0y: ${ allowedValues }.",o="Kh\xF4ng th\u1EC3 l\u01B0u l\u1ECBch s\u1EED ph\xE2n t\xEDch",l="N\u01A1i l\u01B0u tr\u1EEF l\u1ECBch s\u1EED \u0111\xE3 \u0111\u1EA7y. X\xF3a m\u1ED9t s\u1ED1 m\u1EE5c kh\u1ECFi l\u1ECBch s\u1EED ph\xE2n t\xEDch v\xE0 th\u1EED l\u01B0u l\u1EA1i.",s="T\xEAn d\u1ECBch v\u1EE5 ch\u1EE9a m\u1ED9t ho\u1EB7c nhi\u1EC1u k\xFD t\u1EF1 kh\xF4ng h\u1EE3p l\u1EC7.",u="L\u01B0u l\u1EDBp t\u1EA1m th\u1EDDi th\xE0nh l\u1EDBp \u0111\u1ED1i t\u01B0\u1EE3ng \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF ch\u01B0a ho\xE0n t\u1EA5t.",d="C\u1EA7n c\xF3 c\xE1c quy\u1EC1n sau \u0111\u1EC3 ch\u1EA1y c\xF4ng c\u1EE5 n\xE0y: ${ privileges }. <calcite-link href='${docLink}' target='_blank'>T\xECm hi\u1EC3u th\xEAm</calcite-link>",m="Kh\xF4ng th\u1EC3 nh\u1EADn c\xE1c thu\u1ED9c t\xEDnh c\u1EE7a kh\xF3a.",g="Kh\xF4ng th\u1EC3 t\u1EA3i l\u1EDBp.",p="L\u1EDBp kh\xF4ng kh\u1EA3 d\u1EE5ng.",k="${ dataPath } kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EE9a nhi\u1EC1u h\u01A1n ${ limit } m\u1EE5c.",y="\u0110\xE3 x\u1EA3y ra l\u1ED7i khi l\u01B0u m\xF4 h\xECnh. H\xE3y th\u1EED l\u01B0u l\u1EA7n n\u1EEFa.",v="${ dataPath } kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EE9a d\u01B0\u1EDBi ${ limit } m\u1EE5c.",E="${ dataPath } kh\xF4ng \u0111\u01B0\u1EE3c ng\u1EAFn h\u01A1n ${ limit } k\xFD t\u1EF1.",P="Kh\xF4ng th\u1EC3 t\u1EA3i m\u1EE5c m\xF4 h\xECnh. \u0110\u1EA3m b\u1EA3o r\u1EB1ng m\xF4 h\xECnh t\u1ED3n t\u1EA1i v\xE0 quy\u1EC1n truy c\u1EADp \u0111\xE3 \u0111\u01B0\u1EE3c c\u1EA5p.",b="Kh\xF4ng th\u1EC3 ho\xE0n t\u1EA5t y\xEAu c\u1EA7u.",f="B\u1EA1n kh\xF4ng c\xF3 quy\u1EC1n ch\u1EA1y c\xF4ng c\u1EE5 n\xE0y. <calcite-link target='_blank' href='${ docLink }'>T\xECm hi\u1EC3u th\xEAm</calcite-link>",$="Kh\xF4ng th\u1EC3 \u0111\u0103ng nh\u1EADp v\xE0o c\u1ED5ng th\xF4ng tin.",S="Kh\xF4ng th\u1EC3 \u0111\u1ECDc d\u1EEF li\u1EC7u \u0111\u1EA7u v\xE0o.",T="${ dataPath } \u0111ang thi\u1EBFu m\u1ED9t t\xEAn ph\xF9 h\u1EE3p ${ missingProperty }.",I="\u0110\xE3 t\u1ED3n t\u1EA1i m\u1ED9t l\u1EDBp k\u1EBFt qu\u1EA3 c\xF3 t\xEAn n\xE0y. C\xE1c l\u1EDBp k\u1EBFt qu\u1EA3 ph\u1EA3i \u0111\u01B0\u1EE3c \u0111\u1EB7t t\xEAn duy nh\u1EA5t trong t\u1ED5 ch\u1EE9c. Vui l\xF2ng s\u1EED d\u1EE5ng t\xEAn kh\xE1c.",L="T\xEAn \u0111\u1EA7u ra ch\u1EE9a m\u1ED9t ho\u1EB7c nhi\u1EC1u k\xFD t\u1EF1 kh\xF4ng h\u1EE3p l\u1EC7. <calcite-link href='${docLink}' target='_blank'>T\xECm hi\u1EC3u th\xEAm</calcite-link>",F="Xu\u1EA5t b\u1EA3n l\u1EDBp t\u1EA1m th\u1EDDi th\xE0nh l\u1EDBp \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF kh\xF4ng th\xE0nh c\xF4ng do m\u1ED9t ho\u1EB7c nhi\u1EC1u tr\u01B0\u1EDDng kh\xF4ng h\u1EE3p l\u1EC7. Ch\u1EA1y l\u1EA1i c\xF4ng c\u1EE5 \u0111\u1EC3 t\u1EA1o l\u1EDBp c\xF3 c\xE1c tr\u01B0\u1EDDng h\u1EE3p l\u1EC7.",C="G\u1EEDi c\xF4ng vi\u1EC7c th\u1EA5t b\u1EA1i. Cu\u1ED9n xu\u1ED1ng, s\u1EEDa l\u1ED7i v\xE0 ch\u1EA1y l\u1EA1i ph\xE2n t\xEDch.",q="${ dataPath } ph\u1EA3i ch\u1EE9a \xEDt nh\u1EA5t m\u1ED9t k\xFD t\u1EF1 kh\xF4ng ph\u1EA3i kho\u1EA3ng tr\u1EAFng.",x={InsufficientCreditsError:t,accessBlocked:n,additionalProperty:a,anyOfValues:r,cannotWriteToItemResource:e,creditEstimationError:i,defaultError:h,enumValues:c,failedToSaveHistory:o,fullSessionStorage:l,hostedFeatureServiceInvalidTitle:s,hostedFeatureServicePublishDidNotComplete:u,insufficientPermissions:d,keyPropertiesError:m,layerLoadFailure:g,layerUnavailable:p,maxItems:k,mbFailedToSave:y,minItems:v,minLength:E,modelNotFound:P,networkError:b,noPermissionToAccessTool:f,portalLoadError:$,queryFeaturesError:S,requiredProperty:T,serviceNameExistsError:I,specialCharactersInServiceNameError:L,temporaryLayerFieldsError:F,toolValidationError:C,whiteSpacePattern:q};export{t as InsufficientCreditsError,n as accessBlocked,a as additionalProperty,r as anyOfValues,e as cannotWriteToItemResource,i as creditEstimationError,x as default,h as defaultError,c as enumValues,o as failedToSaveHistory,l as fullSessionStorage,s as hostedFeatureServiceInvalidTitle,u as hostedFeatureServicePublishDidNotComplete,d as insufficientPermissions,m as keyPropertiesError,g as layerLoadFailure,p as layerUnavailable,k as maxItems,y as mbFailedToSave,v as minItems,E as minLength,P as modelNotFound,b as networkError,f as noPermissionToAccessTool,$ as portalLoadError,S as queryFeaturesError,T as requiredProperty,I as serviceNameExistsError,L as specialCharactersInServiceNameError,F as temporaryLayerFieldsError,C as toolValidationError,q as whiteSpacePattern};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as v}from"./SOHNIGAO.js";import{b as u}from"./7EF56IQP.js";import"./DIKAKOU5.js";import"./S423P2GA.js";import{F as m,G as d,H as h,J as o,h as l,i as n,r,u as p}from"./P4KZ6OZF.js";import"./QPIMTXPL.js";var T=l`@layer{.instant-apps-measurement-panel{width:300px}.instant-apps-measurement-panel calcite-action-bar{--calcite-action-bar-items-space: 1.5em}.instant-apps-measurement-panel .esri-coordinate-conversion__conversions-view,.instant-apps-measurement-panel .esri-coordinate-conversion{max-width:300px}}`,$={content:"instant-apps-measurement__content"},c=class extends h{constructor(){super(...arguments),this._messages=v({name:"instant-apps-measurement",blocking:!0}),this.measureTool=m(),this.showHeading=!0,this.closable=!1,this.measureActive=r()}static{this.properties={view:0,areaUnit:1,linearUnit:1,coordinateFormat:1,showHeading:5,activeToolType:1,closable:5}}static{this.styles=T}static{this.shadowRootOptions=p}_handleToolClick(e){if(!this?.measureTool)return;let a=e?.target;if(!(a instanceof HTMLElement))return;let t=a?.dataset.value;if(t!=="distance"&&t!=="area"&&t!=="point"&&t!=="clear")return;t&&this.measureTool.value&&(this.measureTool.value.activeTool=t);let s=document.getElementsByClassName("active-tool");for(let i=0;i<s?.length;i++)s[i]?.classList?.remove("active-tool");a?.classList.add("active-tool"),this.measureActive.emit(!(t===void 0||t==="clear"))}render(){return n`<calcite-panel class="instant-apps-measurement-panel" .heading=${this.showHeading?this._messages.label:void 0} .closable=${this.closable}>${this.renderActionBar()}${this.renderMeasureToolPanel()}</calcite-panel>`}renderMeasureToolPanel(){let{view:e,coordinateFormat:a,areaUnit:t,linearUnit:s,activeToolType:i}=this;return n`<calcite-panel class=${o($.content)}><instant-apps-measurement-tool .view=${e} .measureConfiguration=${{coordinateFormat:a,areaUnit:t,linearUnit:s,activeToolType:i}} .activeTool=${this.activeToolType} ${d(this.measureTool)}></instant-apps-measurement-tool></calcite-panel>`}renderActionBar(){let{_messages:e,activeToolType:a}=this;return n`<calcite-action-bar expand-disabled selection-appearance=highlight slot=action-bar><calcite-action class=${o(a==="distance"?"active-tool":"")} .text=${e.line} scale=m icon=measure data-value=distance @click=${this._handleToolClick} id=distanceTool><calcite-tooltip reference-element=distanceTool overlay-positioning=fixed close-on-click placement=top>${e.line}</calcite-tooltip></calcite-action><calcite-action class=${o(a==="area"?"active-tool":"")} .text=${e.area} icon=measure-area scale=m data-value=area @click=${this._handleToolClick} id=areaTool><calcite-tooltip reference-element=areaTool overlay-positioning=fixed close-on-click placement=top>${e.area}</calcite-tooltip></calcite-action><calcite-action class=${o(a==="point"?"active-tool":"")} .text=${e.point} scale=m icon=pin-plus data-value=point @click=${this._handleToolClick} id=pointTool><calcite-tooltip reference-element=pointTool overlay-positioning=fixed close-on-click placement=top>${e.point}</calcite-tooltip></calcite-action><calcite-action .text=${e.clear} scale=m icon=trash data-value=clear @click=${this._handleToolClick} id=trashTool><calcite-tooltip reference-element=trashTool overlay-positioning=fixed close-on-click placement=top>${e.clear}</calcite-tooltip></calcite-action></calcite-action-bar>`}};u("instant-apps-measurement",c);export{c as InstantAppsMeasurement};
2
+ import{a as v}from"./NM3YBQUM.js";import{b as u}from"./EGFXSDFS.js";import"./DIKAKOU5.js";import"./S423P2GA.js";import{F as m,G as d,H as h,J as o,h as l,i as n,r,u as p}from"./P4KZ6OZF.js";import"./QPIMTXPL.js";var T=l`@layer{.instant-apps-measurement-panel{width:300px}.instant-apps-measurement-panel calcite-action-bar{--calcite-action-bar-items-space: 1.5em}.instant-apps-measurement-panel .esri-coordinate-conversion__conversions-view,.instant-apps-measurement-panel .esri-coordinate-conversion{max-width:300px}}`,$={content:"instant-apps-measurement__content"},c=class extends h{constructor(){super(...arguments),this._messages=v({name:"instant-apps-measurement",blocking:!0}),this.measureTool=m(),this.showHeading=!0,this.closable=!1,this.measureActive=r()}static{this.properties={view:0,areaUnit:1,linearUnit:1,coordinateFormat:1,showHeading:5,activeToolType:1,closable:5}}static{this.styles=T}static{this.shadowRootOptions=p}_handleToolClick(e){if(!this?.measureTool)return;let a=e?.target;if(!(a instanceof HTMLElement))return;let t=a?.dataset.value;if(t!=="distance"&&t!=="area"&&t!=="point"&&t!=="clear")return;t&&this.measureTool.value&&(this.measureTool.value.activeTool=t);let s=document.getElementsByClassName("active-tool");for(let i=0;i<s?.length;i++)s[i]?.classList?.remove("active-tool");a?.classList.add("active-tool"),this.measureActive.emit(!(t===void 0||t==="clear"))}render(){return n`<calcite-panel class="instant-apps-measurement-panel" .heading=${this.showHeading?this._messages.label:void 0} .closable=${this.closable}>${this.renderActionBar()}${this.renderMeasureToolPanel()}</calcite-panel>`}renderMeasureToolPanel(){let{view:e,coordinateFormat:a,areaUnit:t,linearUnit:s,activeToolType:i}=this;return n`<calcite-panel class=${o($.content)}><instant-apps-measurement-tool .view=${e} .measureConfiguration=${{coordinateFormat:a,areaUnit:t,linearUnit:s,activeToolType:i}} .activeTool=${this.activeToolType} ${d(this.measureTool)}></instant-apps-measurement-tool></calcite-panel>`}renderActionBar(){let{_messages:e,activeToolType:a}=this;return n`<calcite-action-bar expand-disabled selection-appearance=highlight slot=action-bar><calcite-action class=${o(a==="distance"?"active-tool":"")} .text=${e.line} scale=m icon=measure data-value=distance @click=${this._handleToolClick} id=distanceTool><calcite-tooltip reference-element=distanceTool overlay-positioning=fixed close-on-click placement=top>${e.line}</calcite-tooltip></calcite-action><calcite-action class=${o(a==="area"?"active-tool":"")} .text=${e.area} icon=measure-area scale=m data-value=area @click=${this._handleToolClick} id=areaTool><calcite-tooltip reference-element=areaTool overlay-positioning=fixed close-on-click placement=top>${e.area}</calcite-tooltip></calcite-action><calcite-action class=${o(a==="point"?"active-tool":"")} .text=${e.point} scale=m icon=pin-plus data-value=point @click=${this._handleToolClick} id=pointTool><calcite-tooltip reference-element=pointTool overlay-positioning=fixed close-on-click placement=top>${e.point}</calcite-tooltip></calcite-action><calcite-action .text=${e.clear} scale=m icon=trash data-value=clear @click=${this._handleToolClick} id=trashTool><calcite-tooltip reference-element=trashTool overlay-positioning=fixed close-on-click placement=top>${e.clear}</calcite-tooltip></calcite-action></calcite-action-bar>`}};u("instant-apps-measurement",c);export{c as InstantAppsMeasurement};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import h from"./ACF2RXCB.js";import"./VDEFBT2N.js";import e from"./5PUFVAJH.js";import{b as I}from"./QHG54NVK.js";import{b as D}from"./DLBZRD4H.js";import{Zb as b}from"./HBQN25RR.js";import{a as f}from"./3AQ7U2PF.js";import"./DIKAKOU5.js";import"./S423P2GA.js";import"./TEHBW75B.js";import"./KU62OLRE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./B3R52L7H.js";import"./BDXIKPLU.js";import"./G2ME4BAQ.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./73AX72WY.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as _}from"./NDUAEC62.js";import{F as u,G as d,H as g,J as r,h as m,i as a,l as p,r as c}from"./P4KZ6OZF.js";import"./QPIMTXPL.js";export default $arcgis.t(([{c:w,e:y,q:$},{a:C,b:v}])=>{var x=m`*[tabindex]:focus-visible{outline-style:solid!important;outline-width:2px!important;outline-color:var(--calcite-color-brand)!important;outline-offset:2px!important}.deletion-note-text{display:inline-block}.deletion-note-container{display:flex;align-items:center;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size-0);margin-bottom:var(--calcite-spacing-md)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-surface-2);--calcite-panel-background-color: var(--calcite-color-surface-2)}.display-none{display:none}calcite-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.loader-text{margin-top:var(--calcite-spacing-md);margin-bottom:var(--calcite-spacing-xl);text-align:center;font-size:var(--calcite-font-size-relative-base);color:var(--calcite-color-text-1)}.padding-around{padding:12px 2rem 2rem}`,h=class extends g{constructor(){super(),this.open=!1,this.source="Card Dropdown",this._deletePercentage=0,this._fetchingTemplates=!1,this._isDeleteInProgress=!1,this._nonSolutionDependencyItems=[],this._showDeleteError=!1,this._showUndeletableItems=!1,this._templateInfos=[],this._translations=f({name:"solution-delete-dialog",blocking:!0}),this._accordion=u(),this._configContextConsumer=D({context:I,subscribe:!0}),this.solutionDeleteDialogOpen=c(),this.solutionDeleted=c(),this.solutionDeleteDialogBeforeClose=c(),this.listenOn(window,"beforeunload",e=>{this._isDeleteInProgress&&(e.preventDefault(),e.returnValue=!0)})}static{this.properties={card:0,open:5,source:1,_deletePercentage:16,_fetchingTemplates:16,_isDeleteInProgress:16,_nonSolutionDependencyItems:16,_showDeleteError:16,_showUndeletableItems:16,_templateInfos:16,_translations:16}}static{this.styles=x}get _hasAdminDeletePermission(){return this._configContextConsumer.value?.authentication?w(this._configContextConsumer.value?.authentication):!1}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}close(){this._showUndeletableItems&&this.solutionDeleted.emit({showAlert:!1,refreshSolutionsTimeout:!0,solutionTitle:this.card?.title}),this._showDeleteError=!1,this._showUndeletableItems=!1,this._isDeleteInProgress=!1,this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}delete(){if(this._telemetry?.logEvent({category:$.DEPLOYMENTS,action:"Delete Solution",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"",this.source]}),this._isDeleteInProgress=!0,this.card){let e=[{itemName:this.card.title,itemType:"Solution",owner:this.card.owner,modified:this.card.modified}],i={progressCallback:o=>{this._deletePercentage=Math.round(o)},solutionOwner:this.card.owner};b(this.card.id,this._configContextConsumer.value.userSession,i).then(o=>{let s=o[1],n;if(s?n=s.items.map(t=>({itemName:t.title,itemType:t.type,owner:t.owner,modified:t.modified})):n=e,n.length===0)this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0,solutionTitle:this.card?.title}),this._isDeleteInProgress=!1,this.open=!1;else if(n.some(t=>t.itemType==="Solution"))this.card?v(this.card,this._configContextConsumer.value.userSession).then(t=>{this._templateInfos=t,this._showDeleteError=!0,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}):(this._showDeleteError=!0,this._isDeleteInProgress=!1);else if(this.card){let t=[];t=s.items.map(l=>({id:l.id,title:l.title,type:l.type,owner:l.owner,modified:l.modified,typeKeywords:[],snippet:"",dependencies:[],url:y(l.id,this._configContextConsumer.value.authentication)})),this._templateInfos=t,this._showDeleteError=!1,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}else this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0}),this._isDeleteInProgress=!1,this.open=!1})}}willUpdate(e){if(e.has("open")){let i=e.get("open");this.open&&!i&&(this._fetchingTemplates=!0,C(this._configContextConsumer.value.userSession,this.card).then(o=>{this._templateInfos=o.templateInfos,this._nonSolutionDependencyItems=o._nonSolutionDependencyItems,this._fetchingTemplates=!1}))}}render(){let e=this._fetchingTemplates?"":"display-none",i=this._fetchingTemplates?"display-none":"",o=[...new Set(this._nonSolutionDependencyItems.map(t=>t.controlItemId))],s=this._templateInfos.length-this._getDependencyCount()-this._getNonOwnerCount(),n=this._translations.deletionCount.replace("{{deleteableCount}}",s.toString()).replace("{{totalCount}}",this._templateInfos.length.toString());return a`<calcite-dialog class="panel-bg-color" .closeDisabled=${this._isDeleteInProgress} .escapeDisabled=${this._isDeleteInProgress} .heading=${this._translations.title.replace("{{solution}}",this.card?.title??"")} id=${this._translations.title.replace("{{solution}}",this.card?.title??"")??p} modal kind=danger .open=${this.open} width=l outside-close-disabled @calciteDialogBeforeClose=${()=>{this.solutionDeleteDialogBeforeClose.emit()}} @calciteDialogClose=${()=>{this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}}>${this._isDeleteInProgress?a`<calcite-loader .label=${this._translations.deleteInProgress} scale=l type=determinate-value .value=${this._deletePercentage}></calcite-loader><div class="loader-text" tabindex=0>${this._translations.deleteInProgress}</div>`:this._showUndeletableItems?a`<calcite-label class=${r(i)} layout=inline><span tabindex=0>${this._translations.failedToDeleteItems}</span></calcite-label><solution-item-accordion class=${r(i)} .itemRelationshipDependencies=${[]} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${d(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonClose}</calcite-button>`:a`<div class="padding-around"><div class=${`deletion-note-container ${i}`}><span class="deletion-note-text" tabindex=0>${this._translations.deletionNote}</span><calcite-chip .label=${n} scale=m icon=information>${n}</calcite-chip></div><calcite-loader class=${r(e)} label></calcite-loader><solution-item-accordion class=${r(i)} .itemRelationshipDependencies=${o} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${d(this._accordion)}></solution-item-accordion></div><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonCancel}</calcite-button><calcite-button @click=${()=>{this.delete()}} slot=footer-end kind=danger>${this._translations.buttonDelete}</calcite-button>${this._showDeleteError&&a`<calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._translations.failedToDelete} @calciteAlertClose=${()=>{this._showDeleteError=!1}} open><div slot=message>${this._translations.failedToDelete}</div></calcite-alert>`||""}`}</calcite-dialog>`}_getDependencyCount(){let e=this._nonSolutionDependencyItems.map(i=>i.controlItemId);return new Set(e).size}_getNonOwnerCount(){if(this._templateInfos.length===0||this._hasAdminDeletePermission)return 0;let e=this._nonSolutionDependencyItems.map(s=>s.controlItemId),i=new Set(e),o=this._configContextConsumer.value.userSession.username;return this._templateInfos.filter(s=>!i.has(s.id)).filter(s=>s.owner!==o).length}};_("solution-delete-dialog",h);return h},e,h)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import"./QPIMTXPL.js";var e="Nu ave\u021Bi suficiente credite pentru efectuarea acestei opera\u021Bii. Contacta\u021Bi administratorul de sistem ArcGIS pentru asisten\u021B\u0103.",a="Acest instrument a fost publicat dintr-o agend\u0103. Accesul la ArcGIS Notebooks este blocat pentru organiza\u021Bia dvs. Contacta\u021Bi administratorul pentru a ajusta setarea.",i="${ dataPath } nu trebuie s\u0103 aib\u0103 ${ additionalProperty }.",r="${ dataPath } trebuie s\u0103 corespund\u0103 schemei uneia dintre acestea: ${ schemaOptions }.",t="\xCEncerca\u021Bi s\u0103 salva\u021Bi harta din nou.",s="Estimarea creditului a e\u0219uat. Derula\u021Bi \xEEn jos, corecta\u021Bi erorile \u0219i estima\u021Bi creditele din nou.",u="S-a produs o eroare la executarea analizei.",o="${ dataPath } trebuie s\u0103 fie egal cu una dintre aceste valori permise: ${ allowedValues }.",n="Nu s-a reu\u0219it salvarea istoricului analizei",l="Spa\u021Biu de stocare al istoricului este plin. Elimina\u021Bi unele elemente din istoricul analizei \u0219i \xEEncerca\u021Bi s\u0103 salva\u021Bi din nou.",c="Denumirea serviciului con\u021Bine unul sau mai multe caractere nevalide.",d="Salvarea stratului tematic temporar ca strat tematic de obiect spa\u021Bial g\u0103zduit nu s-a \xEEncheiat.",m="Sunt necesare urm\u0103toarele privilegii pentru a executa acest instrument: ${ privileges }. <calcite-link href='${docLink}' target='_blank'>Afla\u021Bi mai multe</calcite-link>",p="Nu s-a reu\u0219it ob\u021Binerea propriet\u0103\u021Bilor esen\u021Biale.",v="Nu s-a reu\u0219it \xEEnc\u0103rcarea stratului tematic.",f="Stratul tematic nu este disponibil.",b="${ dataPath } nu trebuie s\u0103 aib\u0103 mai mult de ${ limit } articole.",E="A survenit o eroare la salvarea modelului. \xCEncerca\u021Bi salvarea din nou.",h="${ dataPath } nu trebuie s\u0103 aib\u0103 mai pu\u021Bin de ${ limit } articole.",P="${ dataPath } nu trebuie s\u0103 fie mai scurt de ${ limit } caractere.",S="Nu s-a reu\u0219it \xEEnc\u0103rcarea elementului de model. Asigura\u021Bi-v\u0103 c\u0103 modelul exist\u0103 \u0219i c\u0103 permisiunea de acces a fost acordat\u0103.",y="Nu s-a reu\u0219it finalizarea solicit\u0103rii.",g="Nu ave\u021Bi permisiunea de a executa acest instrument. <calcite-link target='_blank' href='${ docLink }'>Afla\u021Bi mai multe</calcite-link>",k="Nu s-a reu\u0219it conectarea la portal.",N="Nu s-a reu\u0219it citirea datelor de intrare.",$="${ dataPath } are lips\u0103 o proprietate denumit\u0103 ${ missingProperty }.",F="Exist\u0103 deja un strat tematic cu rezultate cu acest nume. Straturile tematice rezultate trebuie s\u0103 aib\u0103 nume unice \xEEn toat\u0103 organiza\u021Bia. V\u0103 rug\u0103m s\u0103 folosi\u021Bi un nume diferit.",I="Numele de ie\u0219ire con\u021Bine unul sau mai multe caractere nevalide. <calcite-link href='${docLink}' target='_blank'>Afla\u021Bi mai multe</calcite-link>",x="Publicarea stratului tematic temporar ca strat tematic g\u0103zduit a e\u0219uat din cauza unuia sau a mai multor c\xE2mpuri nevalide. Re-executa\u021Bi instrumentul pentru a crea un strat tematic cu c\xE2mpuri valide.",z="Trimiterea lucr\u0103rii nu a reu\u0219it. Derula\u021Bi \xEEn jos, corecta\u021Bi erorile \u0219i executa\u021Bi analiza din nou.",T="${ dataPath } trebuie s\u0103 aib\u0103 cel pu\u021Bin un caracter non-spa\u021Biu gol.",A={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:i,anyOfValues:r,cannotWriteToItemResource:t,creditEstimationError:s,defaultError:u,enumValues:o,failedToSaveHistory:n,fullSessionStorage:l,hostedFeatureServiceInvalidTitle:c,hostedFeatureServicePublishDidNotComplete:d,insufficientPermissions:m,keyPropertiesError:p,layerLoadFailure:v,layerUnavailable:f,maxItems:b,mbFailedToSave:E,minItems:h,minLength:P,modelNotFound:S,networkError:y,noPermissionToAccessTool:g,portalLoadError:k,queryFeaturesError:N,requiredProperty:$,serviceNameExistsError:F,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:x,toolValidationError:z,whiteSpacePattern:T};export{e as InsufficientCreditsError,a as accessBlocked,i as additionalProperty,r as anyOfValues,t as cannotWriteToItemResource,s as creditEstimationError,A as default,u as defaultError,o as enumValues,n as failedToSaveHistory,l as fullSessionStorage,c as hostedFeatureServiceInvalidTitle,d as hostedFeatureServicePublishDidNotComplete,m as insufficientPermissions,p as keyPropertiesError,v as layerLoadFailure,f as layerUnavailable,b as maxItems,E as mbFailedToSave,h as minItems,P as minLength,S as modelNotFound,y as networkError,g as noPermissionToAccessTool,k as portalLoadError,N as queryFeaturesError,$ as requiredProperty,F as serviceNameExistsError,I as specialCharactersInServiceNameError,x as temporaryLayerFieldsError,z as toolValidationError,T as whiteSpacePattern};