@esri/solutions-components 5.1.0-next.67 → 5.1.0-next.68

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 (265) hide show
  1. package/dist/cdn/{IDPLUOO5.js → 2AIWDT55.js} +1 -1
  2. package/dist/cdn/2B4SGB3I.js +2 -0
  3. package/dist/cdn/{FLLZBDVI.js → 2MOSXHFG.js} +1 -1
  4. package/dist/cdn/{RP36BC5U.js → 2SCW7VSF.js} +1 -1
  5. package/dist/cdn/{PWSIKCAF.js → 2UPIDLE5.js} +1 -1
  6. package/dist/cdn/{4WTAL6YU.js → 35XXJCZT.js} +1 -1
  7. package/dist/cdn/36TEZXBH.js +28 -0
  8. package/dist/cdn/{QF3LZFWW.js → 3FL3PNLU.js} +1 -1
  9. package/dist/cdn/{OUHPCCIT.js → 3FZDFAPN.js} +1 -1
  10. package/dist/cdn/{DBTVSVZ4.js → 3NR4SOVS.js} +1 -1
  11. package/dist/cdn/{GEVYIM3T.js → 42CN2HQC.js} +1 -1
  12. package/dist/cdn/43HJUBM4.js +2 -0
  13. package/dist/cdn/{3YQ3LN5J.js → 46MUUBPE.js} +1 -1
  14. package/dist/cdn/{M6ZFMO6K.js → 47IJA2SQ.js} +1 -1
  15. package/dist/cdn/{JZHP22BA.js → 4DFLLD6V.js} +1 -1
  16. package/dist/cdn/4LVJK3V2.js +2 -0
  17. package/dist/cdn/{EUY3GSFI.js → 4POTHO6N.js} +1 -1
  18. package/dist/cdn/{K7MOOHAF.js → 4RGYIPUO.js} +1 -1
  19. package/dist/cdn/{P7UNMJ5A.js → 4STC55KZ.js} +1 -1
  20. package/dist/cdn/{YBUQ5RAC.js → 4TYKXT5H.js} +1 -1
  21. package/dist/cdn/4X53QTF7.js +2 -0
  22. package/dist/cdn/{BWTBRONP.js → 5CARFDI3.js} +1 -1
  23. package/dist/cdn/{GSF5ZZMH.js → 5HZOUKRN.js} +1 -1
  24. package/dist/cdn/{ZSPRUX4H.js → 5MLXG5WA.js} +1 -1
  25. package/dist/cdn/{3XPKAEMR.js → 5OKASTA4.js} +1 -1
  26. package/dist/cdn/{43HTXWT4.js → 5PSVMOK7.js} +1 -1
  27. package/dist/cdn/{LCBVGEFC.js → 5TNKWUPA.js} +1 -1
  28. package/dist/cdn/5YSNBFO6.js +2 -0
  29. package/dist/cdn/6CHHUU33.js +2 -0
  30. package/dist/cdn/{PYOUOZUM.js → 6LBAAWSN.js} +1 -1
  31. package/dist/cdn/{42WASQMZ.js → 7FF5YSNR.js} +1 -1
  32. package/dist/cdn/{JQC3RZ7L.js → 7JUCAWZY.js} +1 -1
  33. package/dist/cdn/{A5UYHQB2.js → 7LL2JXP2.js} +1 -1
  34. package/dist/cdn/7MSBIQLE.js +4 -0
  35. package/dist/cdn/7NDNEWIB.js +2 -0
  36. package/dist/cdn/{V7UWSW6U.js → 7VFHFVJM.js} +1 -1
  37. package/dist/cdn/{MACN5YNL.js → 7YLCROT7.js} +1 -1
  38. package/dist/cdn/{GMXGHUZO.js → A45A6TFT.js} +1 -1
  39. package/dist/cdn/{Y2VQNMT4.js → A4WUUHLP.js} +1 -1
  40. package/dist/cdn/ABL7HXUY.js +2 -0
  41. package/dist/cdn/{LCBZNTKI.js → ARWREGJS.js} +1 -1
  42. package/dist/cdn/{K7VYU2IJ.js → ASMKESB2.js} +1 -1
  43. package/dist/cdn/{GYQ22PJ6.js → AYCGL3SF.js} +1 -1
  44. package/dist/cdn/B7XPPNVY.js +2 -0
  45. package/dist/cdn/BB3L2KIS.js +2 -0
  46. package/dist/cdn/{76H55K5C.js → BFGQR5HS.js} +1 -1
  47. package/dist/cdn/{TOU5OHUQ.js → BFRX6PST.js} +1 -1
  48. package/dist/cdn/BG55H324.js +2 -0
  49. package/dist/cdn/BUR53ZIF.js +2 -0
  50. package/dist/cdn/BW663VEM.js +2 -0
  51. package/dist/cdn/{BDENYZEG.js → BZT6R6HU.js} +1 -1
  52. package/dist/cdn/C2WZ76NK.js +2 -0
  53. package/dist/cdn/{ANWADKOZ.js → C7V2ZOFV.js} +1 -1
  54. package/dist/cdn/{4NCV4IWX.js → CHHIDAIO.js} +1 -1
  55. package/dist/cdn/CHWUORRX.js +2 -0
  56. package/dist/cdn/{GBTCFOFN.js → D3XBFWCF.js} +1 -1
  57. package/dist/cdn/{BIYG7PA2.js → D5FEDX3A.js} +1 -1
  58. package/dist/cdn/DHE3GFUJ.js +2 -0
  59. package/dist/cdn/DSHJPE6S.js +2 -0
  60. package/dist/cdn/{JCTGE6OA.js → DTVJGJYM.js} +1 -1
  61. package/dist/cdn/{Q2IHGYKB.js → EACG35UF.js} +1 -1
  62. package/dist/cdn/EDWOTP4V.js +2 -0
  63. package/dist/cdn/{FRE445LD.js → EEHNMGTM.js} +1 -1
  64. package/dist/cdn/{33OQKT4F.js → EMXGXBXU.js} +1 -1
  65. package/dist/cdn/EYJ255MM.js +2 -0
  66. package/dist/cdn/{GUKPMOPC.js → F7G3JSDV.js} +1 -1
  67. package/dist/cdn/F7R4EYDS.js +2 -0
  68. package/dist/cdn/FA44RLAZ.js +2 -0
  69. package/dist/cdn/{HAET3BAD.js → FBXNPZPC.js} +1 -1
  70. package/dist/cdn/{E7RDA5B4.js → FHNAG6JQ.js} +5 -5
  71. package/dist/cdn/{JR4Z5BZE.js → FICK6HVH.js} +1 -1
  72. package/dist/cdn/FIWSWJTZ.js +2 -0
  73. package/dist/cdn/{CS4IGHMC.js → FKVDFVJD.js} +1 -1
  74. package/dist/cdn/FPV4WS5B.js +2 -0
  75. package/dist/cdn/{UHVBUHU3.js → FUJV2OPO.js} +1 -1
  76. package/dist/cdn/{JNRZGJ5J.js → FZ7IBZWI.js} +1 -1
  77. package/dist/cdn/{3NPTCTYW.js → GNWP2AAY.js} +1 -1
  78. package/dist/cdn/{T2CGPA2B.js → GQDQ5NO2.js} +1 -1
  79. package/dist/cdn/{JA3R6YUV.js → GSODQ7Y6.js} +1 -1
  80. package/dist/cdn/GXICL6EL.js +2 -0
  81. package/dist/cdn/HAWNWJLR.js +2 -0
  82. package/dist/cdn/HB53SUV6.js +357 -0
  83. package/dist/cdn/{3XX5UDIU.js → HBALPM34.js} +1 -1
  84. package/dist/cdn/{7EEAVPTU.js → HIWKSSJD.js} +1 -1
  85. package/dist/cdn/HNNENA73.js +2 -0
  86. package/dist/cdn/HYJ7UXOV.js +2 -0
  87. package/dist/cdn/{6LHM6EFD.js → IKLKVCWC.js} +1 -1
  88. package/dist/cdn/{E4OCTDX7.js → IOSX3FKK.js} +1 -1
  89. package/dist/cdn/{N73GF6WL.js → IXPYSOIL.js} +1 -1
  90. package/dist/cdn/IXSZQTPL.js +2 -0
  91. package/dist/cdn/J74DGHF3.js +2 -0
  92. package/dist/cdn/{5WA4SX7C.js → JE4X76M2.js} +1 -1
  93. package/dist/cdn/{PBWC3QFN.js → JKSLEUDU.js} +1 -1
  94. package/dist/cdn/{SLIB2OEC.js → JMAUE3FO.js} +1 -1
  95. package/dist/cdn/{CACSAX3Q.js → JOI3ZKK5.js} +1 -1
  96. package/dist/cdn/JY62CMT7.js +2 -0
  97. package/dist/cdn/{K2OB67JG.js → K7RFTZ56.js} +1 -1
  98. package/dist/cdn/{I2AQZTRJ.js → KDMK3KUH.js} +1 -1
  99. package/dist/cdn/{QSUXQICI.js → KJNYVH65.js} +1 -1
  100. package/dist/cdn/{NV4NQJDM.js → KMIVV3RB.js} +1 -1
  101. package/dist/cdn/{EZJOMREQ.js → KSZQFK3N.js} +1 -1
  102. package/dist/cdn/KWNAM7AD.js +2 -0
  103. package/dist/cdn/LNZEGAPP.js +2 -0
  104. package/dist/cdn/{LE6OUXPN.js → LOSZZK4D.js} +1 -1
  105. package/dist/cdn/{U5CKJBMT.js → LUYDQPEN.js} +1 -1
  106. package/dist/cdn/LW4KR4D5.js +2 -0
  107. package/dist/cdn/M7ERGA4I.js +2 -0
  108. package/dist/cdn/{POJOSFXX.js → MRSF34HA.js} +1 -1
  109. package/dist/cdn/MS34ZMXL.js +2 -0
  110. package/dist/cdn/{FLQFNPOP.js → MXFEGFHP.js} +1 -1
  111. package/dist/cdn/{V2QTKEQV.js → N7AYXZEX.js} +1 -1
  112. package/dist/cdn/NDSUZD6T.js +2 -0
  113. package/dist/cdn/NF3TLIP3.js +2 -0
  114. package/dist/cdn/{VE3KTNQS.js → NG2ORWB2.js} +1 -1
  115. package/dist/cdn/{CR2XUUG5.js → NJJYHW6D.js} +1 -1
  116. package/dist/cdn/{XEQSHS4A.js → NLILOBN5.js} +1 -1
  117. package/dist/cdn/{THSRTNBE.js → NO7Q6ULD.js} +1 -1
  118. package/dist/cdn/{UEJPBHBF.js → NP5KIGP3.js} +1 -1
  119. package/dist/cdn/{WQTF5JT3.js → NTBODSSX.js} +1 -1
  120. package/dist/cdn/O44OLIT5.js +2 -0
  121. package/dist/cdn/OAFE6H7U.js +2 -0
  122. package/dist/cdn/{E5GNE67Z.js → OU4UJTL6.js} +1 -1
  123. package/dist/cdn/{UJ5NRADN.js → P6F5I32T.js} +1 -1
  124. package/dist/cdn/{DPD6UBKD.js → PAJG7ACM.js} +1 -1
  125. package/dist/cdn/{EPQ6J23O.js → PF4Z7CF6.js} +1 -1
  126. package/dist/cdn/{MR5KWNL4.js → PFFHE4IG.js} +1 -1
  127. package/dist/cdn/{WX7KEAVK.js → PJBORZZO.js} +1 -1
  128. package/dist/cdn/{LVQAS4DN.js → PKDHJR67.js} +1 -1
  129. package/dist/cdn/{TYS6ZZ3Q.js → QBHDEX72.js} +1 -1
  130. package/dist/cdn/{OGUIHXDV.js → QBUVCNNC.js} +1 -1
  131. package/dist/cdn/{5F3VPVCO.js → QIS27ICS.js} +1 -1
  132. package/dist/cdn/{2ZZTL5B6.js → QRWWGRGX.js} +1 -1
  133. package/dist/cdn/R4OPQN6O.js +2 -0
  134. package/dist/cdn/R5PY2TMY.js +2 -0
  135. package/dist/cdn/{O4JG6O2G.js → RBYBNP2B.js} +1 -1
  136. package/dist/cdn/{4652XKVL.js → RNA5LDZ5.js} +1 -1
  137. package/dist/cdn/{PWAT4NDG.js → ROO45KNC.js} +1 -1
  138. package/dist/cdn/S27I4OM5.js +2 -0
  139. package/dist/cdn/{MMQLDIE7.js → S37HZZ6Y.js} +1 -1
  140. package/dist/cdn/{SDJWXDEO.js → SHFWVVGY.js} +1 -1
  141. package/dist/cdn/{BF6NM5HV.js → SICXVIQQ.js} +1 -1
  142. package/dist/cdn/SJQW6ZDF.js +2 -0
  143. package/dist/cdn/{HR2BNQ7E.js → SKMRPLJ5.js} +1 -1
  144. package/dist/cdn/{XFKZOLUD.js → SLUY34FZ.js} +1 -1
  145. package/dist/cdn/{UHZMX2M6.js → SUDT3JBM.js} +1 -1
  146. package/dist/cdn/{UNA43DT6.js → T3KDTF34.js} +1 -1
  147. package/dist/cdn/{L6QPBIO3.js → T4B64LSQ.js} +1 -1
  148. package/dist/cdn/TPOCOIHP.js +2 -0
  149. package/dist/cdn/{CUY7MQY5.js → TRADVQJJ.js} +1 -1
  150. package/dist/cdn/UPXLJJKV.js +2 -0
  151. package/dist/cdn/VDADP5AY.js +2 -0
  152. package/dist/cdn/VOM7CM3O.js +2 -0
  153. package/dist/cdn/VUQ25YDH.js +2 -0
  154. package/dist/cdn/{BXXN7BIC.js → VWU4KCEV.js} +1 -1
  155. package/dist/cdn/{TYSZL2RK.js → W3QL6FH2.js} +1 -1
  156. package/dist/cdn/{ZBRNLRN2.js → WFAI6ZZB.js} +1 -1
  157. package/dist/cdn/{ODZNJZG5.js → WJSVRU72.js} +1 -1
  158. package/dist/cdn/{WYEPAWQO.js → WKFXXJP7.js} +1 -1
  159. package/dist/cdn/{I7OSCIKL.js → WQSURMPZ.js} +1 -1
  160. package/dist/cdn/{OPJPVHX6.js → WXGTKA7P.js} +1 -1
  161. package/dist/cdn/WYV4MD77.js +2 -0
  162. package/dist/cdn/X4Y4DHJ5.js +2 -0
  163. package/dist/cdn/{4YB7FA37.js → XAC6OXJQ.js} +1 -1
  164. package/dist/cdn/{FEMACR5Y.js → XD5JASLO.js} +1 -1
  165. package/dist/cdn/{IUFEMLQM.js → XDADY4F7.js} +1 -1
  166. package/dist/cdn/{RQ2LHC5I.js → XFQNCJ4I.js} +1 -1
  167. package/dist/cdn/{7WQMX5XY.js → XU2HEOFI.js} +1 -1
  168. package/dist/cdn/{Z2IT4SME.js → XVVH74AJ.js} +1 -1
  169. package/dist/cdn/{2RONXQ22.js → XY4ZZKRK.js} +1 -1
  170. package/dist/cdn/{5TPLPDK2.js → Y3XTTGTV.js} +1 -1
  171. package/dist/cdn/{VEFYE24S.js → YAAAUTVO.js} +1 -1
  172. package/dist/cdn/{G5YR3YZQ.js → YEUQVA7X.js} +1 -1
  173. package/dist/cdn/{E6WWQDDM.js → YYUOLIOE.js} +1 -1
  174. package/dist/cdn/{DYXBSCAV.js → Z6ID7QGG.js} +1 -1
  175. package/dist/cdn/{DHPY2J5M.js → ZFERDECY.js} +1 -1
  176. package/dist/cdn/{SUN2LQ7K.js → ZIGRP4UM.js} +1 -1
  177. package/dist/cdn/{J6V42VCC.js → ZUG2WJUQ.js} +1 -1
  178. package/dist/cdn/{TLJX3G56.js → ZXA4Y7R7.js} +1 -1
  179. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
  180. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
  181. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.en.json +1 -0
  182. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.json +1 -0
  183. package/dist/cdn/index.js +1 -1
  184. package/dist/cdn/main.css +1 -1
  185. package/dist/chunks/deployAppContexts.js +4 -3
  186. package/dist/chunks/getItemIcon.js +18 -9
  187. package/dist/chunks/helpers.js +2 -1
  188. package/dist/chunks/solutions_explorer_description.js +28 -21
  189. package/dist/components/arcgis-solutions-assistant/customElement.d.ts +8 -8
  190. package/dist/components/arcgis-solutions-assistant/customElement.js +37058 -34635
  191. package/dist/components/solution-builder-assistant/customElement.d.ts +63 -0
  192. package/dist/components/solution-builder-assistant/customElement.js +137 -0
  193. package/dist/components/solution-builder-assistant/index.d.ts +1 -0
  194. package/dist/components/solution-builder-assistant/index.js +20 -0
  195. package/dist/components/solution-deploy-dialog/index.js +1 -1
  196. package/dist/components/solution-item-diagram/customElement.js +1 -1
  197. package/dist/components/solution-item-icon/customElement.d.ts +6 -0
  198. package/dist/components/solution-item-icon/customElement.js +13 -12
  199. package/dist/docs/api.json +1 -1
  200. package/dist/docs/docs.json +1 -1
  201. package/dist/docs/vscode.html-custom-data.json +1 -1
  202. package/dist/docs/web-types.json +1 -1
  203. package/dist/index.d.ts +4 -0
  204. package/dist/loader.js +2 -1
  205. package/dist/solutions-components_commit.txt +6 -6
  206. package/dist/types/lumina.d.ts +6 -1
  207. package/dist/types/preact.d.ts +7 -1
  208. package/dist/types/react.d.ts +8 -1
  209. package/dist/types/stencil.d.ts +6 -1
  210. package/dist/utils/interfaces.d.ts +107 -0
  211. package/package.json +25 -23
  212. package/dist/cdn/2P2JRBNM.js +0 -2
  213. package/dist/cdn/2RBKFT3Q.js +0 -2
  214. package/dist/cdn/5326HZ74.js +0 -2
  215. package/dist/cdn/5QCBD6ZZ.js +0 -2
  216. package/dist/cdn/5S3WZLB5.js +0 -2
  217. package/dist/cdn/65Q3GK3L.js +0 -2
  218. package/dist/cdn/ABTC2V7J.js +0 -2
  219. package/dist/cdn/AVNCYWKK.js +0 -2
  220. package/dist/cdn/BJMKDP4O.js +0 -2
  221. package/dist/cdn/BMJN3MIR.js +0 -2
  222. package/dist/cdn/COTZWDC3.js +0 -2
  223. package/dist/cdn/E7HQ4JJ2.js +0 -2
  224. package/dist/cdn/F2JKSZOE.js +0 -4
  225. package/dist/cdn/F2YGRNTN.js +0 -2
  226. package/dist/cdn/GV3BOKA2.js +0 -40
  227. package/dist/cdn/HBJZGW4L.js +0 -2
  228. package/dist/cdn/HMB3LHBC.js +0 -2
  229. package/dist/cdn/HPQPI754.js +0 -2
  230. package/dist/cdn/I4PUORX4.js +0 -2
  231. package/dist/cdn/INWDOVSJ.js +0 -2
  232. package/dist/cdn/JUXXPW6I.js +0 -2
  233. package/dist/cdn/KD46EE7M.js +0 -2
  234. package/dist/cdn/KPBEUIQV.js +0 -2
  235. package/dist/cdn/KSXW3QKP.js +0 -2
  236. package/dist/cdn/LWUSGNUB.js +0 -2
  237. package/dist/cdn/M7YK4K5M.js +0 -2
  238. package/dist/cdn/MZ3QZD4K.js +0 -2
  239. package/dist/cdn/MZLEP53S.js +0 -2
  240. package/dist/cdn/N7HJKCUK.js +0 -2
  241. package/dist/cdn/NNOZ6KRO.js +0 -21
  242. package/dist/cdn/NSITJP7B.js +0 -2
  243. package/dist/cdn/OQFRVQQZ.js +0 -2
  244. package/dist/cdn/P6IYN2TS.js +0 -2
  245. package/dist/cdn/PZOAAAVI.js +0 -2
  246. package/dist/cdn/QHG54NVK.js +0 -2
  247. package/dist/cdn/QWRM254M.js +0 -2
  248. package/dist/cdn/QX7YHRF5.js +0 -359
  249. package/dist/cdn/RDXJFHLV.js +0 -2
  250. package/dist/cdn/REOO5ZGK.js +0 -2
  251. package/dist/cdn/RVKS24LF.js +0 -2
  252. package/dist/cdn/SSO3AN4U.js +0 -2
  253. package/dist/cdn/TH52564W.js +0 -2
  254. package/dist/cdn/THKPPH7G.js +0 -2
  255. package/dist/cdn/TU5GZK4M.js +0 -2
  256. package/dist/cdn/UFJWRZWQ.js +0 -2
  257. package/dist/cdn/VPTZV5YV.js +0 -2
  258. package/dist/cdn/WCPWYPN2.js +0 -2
  259. package/dist/cdn/WR3YNDFH.js +0 -2
  260. package/dist/cdn/XK6Q5TUT.js +0 -2
  261. package/dist/cdn/XSNGR44R.js +0 -2
  262. package/dist/cdn/XY4HNUJE.js +0 -2
  263. package/dist/cdn/YTK4IGLJ.js +0 -2
  264. package/dist/cdn/ZSHMK5VX.js +0 -2
  265. package/dist/chunks/explorer-prompts.js +0 -43
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./4NCV4IWX.js";import a from"./N73GF6WL.js";import{b as g}from"./QHG54NVK.js";import{b as f}from"./DPD6UBKD.js";import"./HBQN25RR.js";import{a as u}from"./SDJWXDEO.js";import"./INWDOVSJ.js";import"./3YQ3LN5J.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 m}from"./FLLZBDVI.js";import{G as h,I as p,K as o,h as n,i as t,q as d}from"./F2JKSZOE.js";import"./QPIMTXPL.js";export default $arcgis.t(([{K:x,q:b},{f:v}])=>{var S=n`calcite-card{height:100%;padding-bottom:2px;border:2px solid transparent;transition:border-color .1s ease;box-sizing:border-box}@media(max-width:400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{border-color:var(--calcite-color-brand);cursor:pointer}.chip-status{--calcite-chip-icon-color: var(--calcite-color-brand);cursor:pointer}.chip-deployed{--calcite-chip-icon-color: var(--calcite-color-status-success)}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:1.2rem}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:.5rem;margin-bottom:.7rem}.info-icon{--calcite-icon-color: var(--calcite-color-text-inverse);padding-inline-end:.3rem}.card-image-wrap{flex:0 0 auto}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}a{text-decoration:none;color:inherit;outline:0;padding:0;margin:0;display:inherit;height:100%}`,l=class extends h{constructor(){super(...arguments),this.referrerSolutionId="",this.referrerSolutionTitle="",this.referrerSolutionVersion="",this.source="all-solutions",this._translations=u({name:"solution-details-card",blocking:!0}),this._configContextConsumer=f({context:g,subscribe:!0}),this.detailsCardSelected=d()}static{this.properties={card:0,referrerSolutionId:1,referrerSolutionTitle:1,referrerSolutionVersion:1,source:1,_translations:16}}static{this.styles=S}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}render(){let e=v(this.card.title);return t`<a href=${e??o} @click=${this._anchorClick} tabindex=-1 .title=${`${this._translations.arcgisSolutions} | ${this.card.title}`}>${this._renderCard()}</a>`}_anchorClick(e){e.preventDefault()}_cardSelected(){if(this.source==="you-may-also-like"){let e=[this.referrerSolutionTitle,this.referrerSolutionId,this.referrerSolutionVersion,this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""];this._telemetry?.logEvent({category:b.SOLUTION_DETAILS,action:"Related Solution",dimensions:e})}this.detailsCardSelected.emit(this.card)}_renderChips(e){let r=e.includes("deployed"),y=e.filter(i=>i!=="deployed"),a=[];return y.forEach(i=>{let $="chip-status",c=`solution-details-card-chip-${i}`,_=i==="new"?"star":"mega-phone",s=i==="new"?this._translations.newSolution:this._translations.updated;a.push(t`<calcite-chip class=${p($)} .icon=${_} id=${c??o} .label=${s} .value=${s} scale=s></calcite-chip><calcite-tooltip .referenceElement=${c}><span>${s}</span></calcite-tooltip>`)}),r&&a.push(t`<calcite-chip class="chip-deployed" icon=check-circle id=solution-details-card-chip-deployed .label=${this._translations.deployed} .value=${this._translations.deployed} scale=s></calcite-chip><calcite-tooltip reference-element=solution-details-card-chip-deployed><span>${this._translations.deployed}</span></calcite-tooltip>`),a}_renderCard(){let e=this.card;return t`<calcite-card .label=${e.snippet} @click=${this._cardSelected} @keydown=${r=>x(r,()=>this._cardSelected())}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title??o} class="thumbnail card-image" src=${e.thumbnailUrl??o}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height" scale=l>${e.title}</calcite-label><p slot=description class="font-color-text-2 font-line-height font-size-size--1">${e.snippet}</p>${e.chips&&e.chips.length>0?t`<div slot=footer-end style="display: flex; gap: 0.5rem; justify-content: flex-end;">${this._renderChips(e.chips)}</div>`:void 0}<div slot=footer-start></div></calcite-card>`}};m("solution-details-card",l);return l},a,b)
2
+ import b from"./CHHIDAIO.js";import a from"./IXPYSOIL.js";import{b as g}from"./2B4SGB3I.js";import{b as f}from"./PAJG7ACM.js";import"./HBQN25RR.js";import{a as u}from"./SHFWVVGY.js";import"./7NDNEWIB.js";import"./46MUUBPE.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 m}from"./2MOSXHFG.js";import{G as h,I as p,K as o,h as n,i as t,q as d}from"./7MSBIQLE.js";import"./QPIMTXPL.js";export default $arcgis.t(([{K:x,q:b},{f:v}])=>{var S=n`calcite-card{height:100%;padding-bottom:2px;border:2px solid transparent;transition:border-color .1s ease;box-sizing:border-box}@media(max-width:400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{border-color:var(--calcite-color-brand);cursor:pointer}.chip-status{--calcite-chip-icon-color: var(--calcite-color-brand);cursor:pointer}.chip-deployed{--calcite-chip-icon-color: var(--calcite-color-status-success)}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:1.2rem}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:.5rem;margin-bottom:.7rem}.info-icon{--calcite-icon-color: var(--calcite-color-text-inverse);padding-inline-end:.3rem}.card-image-wrap{flex:0 0 auto}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}a{text-decoration:none;color:inherit;outline:0;padding:0;margin:0;display:inherit;height:100%}`,l=class extends h{constructor(){super(...arguments),this.referrerSolutionId="",this.referrerSolutionTitle="",this.referrerSolutionVersion="",this.source="all-solutions",this._translations=u({name:"solution-details-card",blocking:!0}),this._configContextConsumer=f({context:g,subscribe:!0}),this.detailsCardSelected=d()}static{this.properties={card:0,referrerSolutionId:1,referrerSolutionTitle:1,referrerSolutionVersion:1,source:1,_translations:16}}static{this.styles=S}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}render(){let e=v(this.card.title);return t`<a href=${e??o} @click=${this._anchorClick} tabindex=-1 .title=${`${this._translations.arcgisSolutions} | ${this.card.title}`}>${this._renderCard()}</a>`}_anchorClick(e){e.preventDefault()}_cardSelected(){if(this.source==="you-may-also-like"){let e=[this.referrerSolutionTitle,this.referrerSolutionId,this.referrerSolutionVersion,this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""];this._telemetry?.logEvent({category:b.SOLUTION_DETAILS,action:"Related Solution",dimensions:e})}this.detailsCardSelected.emit(this.card)}_renderChips(e){let r=e.includes("deployed"),y=e.filter(i=>i!=="deployed"),a=[];return y.forEach(i=>{let $="chip-status",c=`solution-details-card-chip-${i}`,_=i==="new"?"star":"mega-phone",s=i==="new"?this._translations.newSolution:this._translations.updated;a.push(t`<calcite-chip class=${p($)} .icon=${_} id=${c??o} .label=${s} .value=${s} scale=s></calcite-chip><calcite-tooltip .referenceElement=${c}><span>${s}</span></calcite-tooltip>`)}),r&&a.push(t`<calcite-chip class="chip-deployed" icon=check-circle id=solution-details-card-chip-deployed .label=${this._translations.deployed} .value=${this._translations.deployed} scale=s></calcite-chip><calcite-tooltip reference-element=solution-details-card-chip-deployed><span>${this._translations.deployed}</span></calcite-tooltip>`),a}_renderCard(){let e=this.card;return t`<calcite-card .label=${e.snippet} @click=${this._cardSelected} @keydown=${r=>x(r,()=>this._cardSelected())}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title??o} class="thumbnail card-image" src=${e.thumbnailUrl??o}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height" scale=l>${e.title}</calcite-label><p slot=description class="font-color-text-2 font-line-height font-size-size--1">${e.snippet}</p>${e.chips&&e.chips.length>0?t`<div slot=footer-end style="display: flex; gap: 0.5rem; justify-content: flex-end;">${this._renderChips(e.chips)}</div>`:void 0}<div slot=footer-start></div></calcite-card>`}};m("solution-details-card",l);return l},a,b)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import"./QPIMTXPL.js";var e="Nincs elegend\u0151 kreditje a m\u0171velet elv\xE9gz\xE9s\xE9hez. Seg\xEDts\xE9g\xE9rt forduljon az ArcGIS rendszergazd\xE1j\xE1hoz.",a="Ez az eszk\xF6z egy jegyzetf\xFCzetb\u0151l lett k\xF6zz\xE9t\xE9ve. AzArcGIS Notebooks-hoz val\xF3 hozz\xE1f\xE9r\xE9s blokkolva van a szervezet sz\xE1m\xE1ra. A be\xE1ll\xEDt\xE1s m\xF3dos\xEDt\xE1s\xE1hoz vegye fel a kapcsolatot a rendszergazd\xE1val.",t="${ dataPath } nem rendelkezhet ezzel: ${ additionalProperty }.",r="A(z) ${ dataPath } \xE9rt\xE9k\xE9nek egyeznie kell a k\xF6vetkez\u0151k egyik\xE9nek s\xE9m\xE1j\xE1val: ${ schemaOptions }.",l="Pr\xF3b\xE1lkozzon \xFAjra a t\xE9rk\xE9p ment\xE9s\xE9vel.",s="A kreditbecsl\xE9s nem siker\xFClt. G\xF6rgessen le, jav\xEDtsa ki a hib\xE1kat, majd v\xE9gezze el ism\xE9t a kreditbecsl\xE9st.",i="Hiba t\xF6rt\xE9nt az elemz\xE9s futtat\xE1sa k\xF6zben.",o="${ dataPath } \xE9rt\xE9k\xE9nek egyeznie kell a k\xF6vetkez\u0151 megengedett \xE9rt\xE9kek egyik\xE9vel: ${ allowedValues }.",n="Az elemz\xE9sel\u0151zm\xE9nyek ment\xE9se nem siker\xFClt.",_="Az el\u0151zm\xE9nyt\xE1rhely megtelt. T\xE1vol\xEDtson el n\xE9h\xE1ny elemet az elemz\xE9sel\u0151zm\xE9nyekb\u0151l, \xE9s pr\xF3b\xE1lkozzon \xFAjb\xF3l a ment\xE9ssel.",k="A szolg\xE1ltat\xE1s neve egy vagy t\xF6bb \xE9rv\xE9nytelen karaktert tartalmaz.",m="Az ideiglenes r\xE9teg t\xE1rolt vektoros r\xE9tegk\xE9nt t\xF6rt\xE9n\u0151 ment\xE9se nem fejez\u0151d\xF6tt be.",z="\xED_The following privileges are required to run this tool: ${ privileges }. <calcite-link href='${docLink}' target='_blank'>Learn more</calcite-link>__________________________________________________________________________\u0151",d="Nem siker\xFClt beolvasni a kulcs tulajdons\xE1gait.",g="Nem siker\xFClt bet\xF6lteni a r\xE9teget.",c="A r\xE9teg nem \xE9rhet\u0151 el.",v="A(z) ${ dataPath } elemeinek sz\xE1ma legfeljebb ${ limit } lehet.",y="Hiba t\xF6rt\xE9nt a modell ment\xE9se k\xF6zben. Pr\xF3b\xE1lkozzon \xFAjra a ment\xE9ssel.",h="A(z) ${ dataPath } elemeinek sz\xE1ma legal\xE1bb ${ limit } kell legyen.",b="A(z) ${ dataPath } hossza legal\xE1bb ${ limit } karakter kell legyen.",u="Nem siker\xFClt bet\xF6lteni a modellelemet. Gy\u0151z\u0151dj\xF6n meg arr\xF3l, hogy a modell l\xE9tezik, \xE9s hogy a hozz\xE1f\xE9r\xE9si enged\xE9lyt megadt\xE1k.",f="A k\xE9r\xE9s v\xE9grehajt\xE1sa nem siker\xFClt.",p="Nincs jogosults\xE1ga az eszk\xF6z futtat\xE1s\xE1hoz. <calcite-link target='_blank' href='${ docLink }'>Tov\xE1bbi inform\xE1ci\xF3</calcite-link>",E="Nem siker\xFClt bejelentkezni a port\xE1lra.",P="Nem siker\xFClt beolvasni a bemeneti adatokat.",j="A(z) ${ dataPath } eset\xE9ben hi\xE1nyzik a(z) ${ missingProperty } nev\u0171 tulajdons\xE1g.",A="Ilyen nev\u0171 eredm\xE9nyr\xE9teg m\xE1r l\xE9tezik. Az eredm\xE9nyr\xE9tegeknek egyedieknek kell lenni\xFCk az eg\xE9sz szervezetben. Haszn\xE1ljon m\xE1sik nevet.",S="\xED_The output name contains one or more invalid characters. <calcite-link href='${docLink}' target='_blank'>Learn more</calcite-link>__________________________________________________________________\u0151",$="Az ideiglenes r\xE9teg hosztolt r\xE9tegk\xE9nt val\xF3 k\xF6zz\xE9t\xE9tele egy vagy t\xF6bb \xE9rv\xE9nytelen mez\u0151 miatt sikertelen volt. Ind\xEDtsa \xFAjra az eszk\xF6zt az \xE9rv\xE9nyes mez\u0151kkel rendelkez\u0151 r\xE9teg l\xE9trehoz\xE1s\xE1hoz.",I="A feladat bek\xFCld\xE9se nem siker\xFClt. G\xF6rgessen le, jav\xEDtsa ki a hib\xE1kat, majd futtassa \xFAjra az elemz\xE9st.",N="A k\xF6vetkez\u0151nek legal\xE1bb egy nem-whitespace karaktert kell tartalmaznia: ${ dataPath }",T={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:t,anyOfValues:r,cannotWriteToItemResource:l,creditEstimationError:s,defaultError:i,enumValues:o,failedToSaveHistory:n,fullSessionStorage:_,hostedFeatureServiceInvalidTitle:k,hostedFeatureServicePublishDidNotComplete:m,insufficientPermissions:z,keyPropertiesError:d,layerLoadFailure:g,layerUnavailable:c,maxItems:v,mbFailedToSave:y,minItems:h,minLength:b,modelNotFound:u,networkError:f,noPermissionToAccessTool:p,portalLoadError:E,queryFeaturesError:P,requiredProperty:j,serviceNameExistsError:A,specialCharactersInServiceNameError:S,temporaryLayerFieldsError:$,toolValidationError:I,whiteSpacePattern:N};export{e as InsufficientCreditsError,a as accessBlocked,t as additionalProperty,r as anyOfValues,l as cannotWriteToItemResource,s as creditEstimationError,T as default,i as defaultError,o as enumValues,n as failedToSaveHistory,_ as fullSessionStorage,k as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,z as insufficientPermissions,d as keyPropertiesError,g as layerLoadFailure,c as layerUnavailable,v as maxItems,y as mbFailedToSave,h as minItems,b as minLength,u as modelNotFound,f as networkError,p as noPermissionToAccessTool,E as portalLoadError,P as queryFeaturesError,j as requiredProperty,A as serviceNameExistsError,S as specialCharactersInServiceNameError,$ as temporaryLayerFieldsError,I as toolValidationError,N as whiteSpacePattern};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import"./QPIMTXPL.js";var e="No tiene suficientes cr\xE9ditos para realizar esta operaci\xF3n. P\xF3ngase en contacto con su administrador de sistemas de ArcGIS para obtener ayuda.",a="Esta herramienta se ha publicado a trav\xE9s de un notebook. El acceso a ArcGIS Notebooks est\xE1 bloqueado para su organizaci\xF3n. P\xF3ngase en contacto con su administrador para ajustar la configuraci\xF3n.",r="${ dataPath } no debe tener ${ additionalProperty }",o="${ dataPath } debe coincidir con el esquema de uno de estos: ${ schemaOptions }.",s="Intente guardar el mapa de nuevo.",i="Error en estimaci\xF3n del cr\xE9dito Despl\xE1cese hacia abajo, corrija los errores y vuelva a realizar la estimaci\xF3n del cr\xE9dito.",t="Se ha producido un error al ejecutar el an\xE1lisis.",n="${ dataPath } debe ser igual a uno de los siguientes valores permitidos: ${ allowedValues }.",l="No se pudo guardar el historial de an\xE1lisis",d="El almacenamiento del historial est\xE1 lleno. Retire algunos elementos del historial de an\xE1lisis e int\xE9ntelo de nuevo.",_="El nombre del servicio contiene uno o varios caracteres no v\xE1lidos:",c="No se ha completado el guardado de la capa temporal como capa de entidades alojada.",u="\xE1_The following privileges are required to run this tool: ${ privileges }. <calcite-link href='${docLink}' target='_blank'>Learn more</calcite-link>__________________________________________________________________________\xD3",m="Error al obtener las propiedades clave.",p="Error al cargar la capa.",h="La capa no est\xE1 disponible",E="${ dataPath } no debe tener m\xE1s de ${ limit } elementos.",v="Se ha producido un error al guardar el modelo. Intente guardar de nuevo.",b="${ dataPath } no debe tener menos de ${ limit } elementos.",g="${ dataPath } no debe tener menos de ${ limit } caracteres.",y="No se ha podido cargar el elemento de modelo. Aseg\xFArese de que el modelo existe y se haya concedido permiso de acceso.",f="Error al completar solicitud.",P="No tiene permiso para ejecutar esta herramienta. <calcite-link target='_blank' href='${ docLink }'>M\xE1s informaci\xF3n</calcite-link>",k="Error al iniciar sesi\xF3n en el portal.",S="Error al leer los datos de entrada.",$="A ${ dataPath } le falta la propiedad denominada ${ missingProperty }.",I="Ya existe una capa de resultados con este nombre. Los nombres de las capas de resultados deben ser \xFAnicos en toda la organizaci\xF3n. Utilice otro nombre.",L="\xE1_The output name contains one or more invalid characters. <calcite-link href='${docLink}' target='_blank'>Learn more</calcite-link>__________________________________________________________________\xD3",N="La publicaci\xF3n de la capa temporal como capa alojada ha fallado debido a uno o m\xE1s campos no v\xE1lidos. Vuelva a ejecutar la herramienta para crear una capa con campos v\xE1lidos.",T="Error al enviar trabajo. Despl\xE1cese hacia abajo, corrija los errores y vuelva a ejecutar el an\xE1lisis.",F="${ dataPath } debe tener al menos un car\xE1cter que no sea un espacio en blanco.",j={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:o,cannotWriteToItemResource:s,creditEstimationError:i,defaultError:t,enumValues:n,failedToSaveHistory:l,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:_,hostedFeatureServicePublishDidNotComplete:c,insufficientPermissions:u,keyPropertiesError:m,layerLoadFailure:p,layerUnavailable:h,maxItems:E,mbFailedToSave:v,minItems:b,minLength:g,modelNotFound:y,networkError:f,noPermissionToAccessTool:P,portalLoadError:k,queryFeaturesError:S,requiredProperty:$,serviceNameExistsError:I,specialCharactersInServiceNameError:L,temporaryLayerFieldsError:N,toolValidationError:T,whiteSpacePattern:F};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,o as anyOfValues,s as cannotWriteToItemResource,i as creditEstimationError,j as default,t as defaultError,n as enumValues,l as failedToSaveHistory,d as fullSessionStorage,_ as hostedFeatureServiceInvalidTitle,c as hostedFeatureServicePublishDidNotComplete,u as insufficientPermissions,m as keyPropertiesError,p as layerLoadFailure,h as layerUnavailable,E as maxItems,v as mbFailedToSave,b as minItems,g as minLength,y as modelNotFound,f as networkError,P as noPermissionToAccessTool,k as portalLoadError,S as queryFeaturesError,$ as requiredProperty,I as serviceNameExistsError,L as specialCharactersInServiceNameError,N as temporaryLayerFieldsError,T as toolValidationError,F as whiteSpacePattern};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as D}from"./BM666UZR.js";import{b as E}from"./DPD6UBKD.js";import c from"./CEP54NLT.js";import a from"./YVNP437O.js";import{a as L}from"./SDJWXDEO.js";import{b as k}from"./FLLZBDVI.js";import{E as S,F as u,G as v,I,h as b,i as h,q as _,t as g}from"./F2JKSZOE.js";export default $arcgis.t(([V,A,{d:x},{c:m,h:G,i:$}])=>{var O=b`@layer{:host{display:block}.div-not-visible{display:none!important}.border{outline:1px solid var(--calcite-color-border-input)}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:Avenir Next,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:1.3em;background-color:var(--calcite-color-surface-2)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}.esri-sketch__tool-section{border-right:1px solid rgba(110,110,110,.3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110,110,110,.3)}.display-flex{display:flex}.font-bold{font-weight:700}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom: 0}.padding-start-1-2{padding-inline-start:.5rem}.font-weight-500{font-weight:500}.word-wrap-anywhere{word-wrap:anywhere}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}}`,y=class extends v{constructor(){super(),this.enabledLayerIds=[],this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.searchDistanceEnabled=!1,this.selectionSets=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.geometries=[],this.drawnGraphicsArr=[],this._translations=L({name:"refine-selection",blocking:!0}),this._selectionMode="ADD",this._addEnabled=!0,this._drawTools=S(),this._enabledLayerIds=[],this._layerPicker=S(),this._featuresCollection={},this._pnContextConsumer=E({context:D,subscribe:!0}),this._bufferTools=S(),this._undoGraphicsArr=[],this.selectionLoadingChange=_(),this.selectionSetsChanged=_(),this.listenOn(window,"distanceChanged",this.distanceChanged),this.listenOn(window,"unitChanged",this.unitChanged)}static{this.properties={addresseeLayer:0,enabledLayerIds:0,enableSearchDistance:5,enableSearchDistanceOnLoad:5,mapView:0,searchDistanceEnabled:5,selectionSets:0,sketchLineSymbol:0,sketchPointSymbol:0,sketchPolygonSymbol:0,defaultBufferUnit:1,bufferColor:1,bufferOutlineColor:1,defaultBufferDistance:9,geometries:0,drawnGraphicsArr:0,_translations:16,_selectionMode:16,_refineLayer:16}}static{this.styles=O}static{this.shadowRootOptions=g}willUpdate(e){e.has("defaultBufferUnit")&&this.hasUpdated&&this._refineSelectionSet&&(this._refineSelectionSet.unit=this.defaultBufferUnit),e.has("defaultBufferDistance")&&this.hasUpdated&&this._refineSelectionSet&&(this._refineSelectionSet.distance=this.defaultBufferDistance)}async distanceChanged(e){e.detail.newValue!==e.detail.oldValue&&this._refineSelectionSet&&(this._refineSelectionSet.distance=e.detail.newValue)}async unitChanged(e){e.detail.newValue!==e.detail.oldValue&&this._refineSelectionSet&&(this._refineSelectionSet.unit=e.detail.newValue)}async load(){this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0]),this._undoGraphicsArr=this._refineSelectionSet?.undoGraphicsArr}async loaded(){await this._init()}render(){let e=this._enabledLayerIds.length>1?"display-block":"display-none";return h`<div class=${`${e} padding-top-sides-1`}><div class="display-flex"><calcite-label class="font-bold width-full label-margin-0"><div class="display-flex">${this._translations.inputLayer}<calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=refine-input-layer scale=s></calcite-icon></div><map-layer-picker .enabledLayerIds=${this._enabledLayerIds} .mapView=${this.mapView} @layerSelectionChange=${t=>{this._layerSelectionChange(t)}} .selectedIds=${this._refineLayer?[this._refineLayer.layer.id]:[]} ${u(this._layerPicker)}></map-layer-picker></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=refine-input-layer><span class="tooltip-message">${this._translations.inputLayerTip}</span></calcite-popover></div></div><div class="padding-1"><div class="padding-bottom-1"><calcite-segmented-control class="w-100" width=full><calcite-segmented-control-item .checked=${this._addEnabled} class="w-50 word-wrap-anywhere" @click=${()=>this._setSelectionMode("ADD")} value=ADD><span class="font-weight-500">${this._translations.add}</span></calcite-segmented-control-item><calcite-segmented-control-item .checked=${!this._addEnabled} class="w-50 word-wrap-anywhere" @click=${()=>this._setSelectionMode("REMOVE")} value=REMOVE><span class="font-weight-500">${this._translations.remove}</span></calcite-segmented-control-item></calcite-segmented-control></div><div><map-draw-tools active draw-mode=REFINE .mapView=${this.mapView} @drawRedo=${()=>this._redo()} @drawUndo=${()=>this._undo()} @sketchGraphicsChange=${this._sketchGraphicsChanged} .pointSymbol=${this.sketchPointSymbol} .polygonSymbol=${this.sketchPolygonSymbol} .polylineSymbol=${this.sketchLineSymbol} .redoEnabled=${this._refineSelectionSet?.redoStack&&this._refineSelectionSet.redoStack.length>0} .undoEnabled=${this._refineSelectionSet?.undoStack&&this._refineSelectionSet.undoStack.length>0} ${u(this._drawTools)}></map-draw-tools></div>${this.enableSearchDistance?this._getBufferOptions():void 0}<br>${h`<calcite-list class="list-border" label>${this._getRefineSelectionSetList()}</calcite-list>`}</div>`}async _init(){this._initGraphicsLayer()}_initGraphicsLayer(){let e=this._translations.bufferLayer;if(this.mapView){let t=this.mapView.map.layers.findIndex(i=>i.title===e);if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else if(this._bufferGraphicsLayer=new A({title:e,listMode:"hide"}),this._bufferGraphicsLayer){let i=this.mapView.map.layers.findIndex(s=>s.title===this._translations.sketchLayer);i>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,i):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}_layerSelectionChange(e){let t=e.detail[0];this._setRefineSet(t)}_setSelectionMode(e){this._selectionMode=e}async _sketchGraphicsChanged(e){let t=e.detail?.graphics[0],i=t.geometry;this.geometries=[i];let s=await this._selectFeatures(i);if(this._sketchGraphic=t,this._refineSelectionSet?.distance===0&&s.length>0){let a={drawnGraphic:t,bufferGraphic:void 0};this.drawnGraphicsArr.push(a)}}_getEnabledLayerIds(){return this.selectionSets.reduce((e,t)=>{let i=t?.layerView?.layer.id;return i&&e.indexOf(i)<0?e.push(i):t.workflowType==="REFINE"&&Object.keys(t.refineInfos).forEach(s=>{e.indexOf(s)<0&&e.push(s)}),e},[])}async _setRefineSet(e){this.selectionSets.some(t=>t.workflowType==="REFINE"?(this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(e)>-1):!1)||await this._initRefineSet(e,this._refineSelectionSet),this._refineSelectionSet&&(this._refineLayer=this._refineSelectionSet.refineInfos[e].layerView)}async _initRefineSet(e,t){let i={};i[e]={addIds:[],removeIds:[],layerView:this.mapView&&await m(this.mapView,e)},t?t.refineInfos={...t.refineInfos,...i}:(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:this.defaultBufferDistance||0,download:!0,unit:this.defaultBufferUnit||"feet",label:"Refine",selectedIds:[],layerView:this.mapView&&await m(this.mapView,e),geometries:[],graphics:[],selectLayers:[],workflowType:"REFINE",searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:i,redoStack:[],undoStack:[],sketchGraphic:void 0,undoGraphicsArr:[]},this.selectionSets.push(this._refineSelectionSet))}_undo(){if(this._refineSelectionSet){let e=this._refineSelectionSet.undoStack&&this._refineSelectionSet.undoStack.pop();if(e){if(this.drawnGraphicsArr.length>0){let t=this.drawnGraphicsArr.pop();t&&this._refineSelectionSet.undoGraphicsArr?.push(t),this._undoGraphicsArr.push(t)}this._refineSelectionSet.redoStack&&this._updateIds(e.ids,e.mode==="ADD"?"REMOVE":"ADD",this._refineSelectionSet.redoStack,e.layerView)}}}_redo(){if(this._refineSelectionSet){let e=this._refineSelectionSet.redoStack&&this._refineSelectionSet.redoStack.pop();if(e){if(this._undoGraphicsArr.length>0){let t=this._undoGraphicsArr.pop();this._refineSelectionSet.undoGraphicsArr?.pop(),t&&this.drawnGraphicsArr.push(t)}this._refineSelectionSet.undoStack&&this._updateIds(e.ids,e.mode==="ADD"?"REMOVE":"ADD",this._refineSelectionSet.undoStack,e.layerView)}}}_getBufferOptions(){this.enableSearchDistanceOnLoad&&this._refineSelectionSet&&(this._refineSelectionSet.searchDistanceEnabled=!0,this.searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);let e=this._refineSelectionSet?.searchDistanceEnabled?"search-distance":"div-not-visible";return h`<div><div class="padding-top-1 display-flex"><calcite-label class="label-margin-0 w-100" layout=inline-space-between><div class="tooltip-container">${this._translations.searchDistance}<calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=search-distance-icon scale=s></calcite-icon></div></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=search-distance-icon><span class="tooltip-message">${this._translations.useSearchDistanceTootip}</span></calcite-popover><calcite-switch .checked=${this._refineSelectionSet?.searchDistanceEnabled} @calciteSwitchChange=${()=>{this.searchDistanceEnabled=!this.searchDistanceEnabled,this._refineSelectionSet&&(this._refineSelectionSet.searchDistanceEnabled=this.searchDistanceEnabled)}}></calcite-switch></div><div class=${I(e)}><buffer-tools .disabled=${!this.searchDistanceEnabled} .distance=${this._refineSelectionSet?.distance} .geometries=${this.geometries} @bufferComplete=${t=>{this._bufferComplete(t)}} .unit=${this._refineSelectionSet?.unit} ${u(this._bufferTools)}></buffer-tools></div></div>`}async _bufferComplete(e){if(this._bufferGeometry=Array.isArray(e.detail)?e.detail[0]:e.detail,this._bufferGeometry){let t={type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}},i=new V({geometry:this._bufferGeometry,symbol:t});if(this._bufferGraphicsLayer&&i&&this.mapView&&(this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(i),(await this._selectFeatures(this._bufferGeometry)).length>0)){let s={drawnGraphic:this._sketchGraphic,bufferGraphic:i};this.drawnGraphicsArr.push(s)}}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll()}_getRefineSelectionSetList(){let e=this._getTotal(this.selectionSets),t;this.selectionSets.some(o=>o.workflowType==="REFINE"?(t=o,!0):!1);let i=0,s=0;t?.refineInfos&&Object.keys(t.refineInfos).forEach(o=>{i+=t.refineInfos[o].addIds.length,s+=t.refineInfos[o].removeIds.length});let a=this._translations.featuresAdded,f=this._translations.featuresRemoved,c=this._translations.totalSelected;return[h`<calcite-list-item .label=${a.replace("{{n}}",i.toString())}></calcite-list-item>`,h`<calcite-list-item .label=${f.replace("{{n}}",s.toString())}></calcite-list-item>`,h`<calcite-list-item .label=${c.replace("{{n}}",e.toString())}></calcite-list-item>`]}_getTotal(e){let t=$(e);return Object.keys(t).reduce((i,s)=>{let a=t[s];return i+=a.ids.length,i},0)}async _selectFeatures(e){this.selectionLoadingChange.emit(!0);let t=[];if(this._refineLayer){this._featuresCollection[this._refineLayer?.layer.id]=[];let i=await x(0,this._refineLayer?.layer,e,this._featuresCollection);this.selectionLoadingChange.emit(!1);let s=[];Object.keys(i).forEach(a=>{a===this._refineLayer?.layer.id&&(s=s.concat(i[a]))}),t=Array.isArray(s)?s.map(a=>a.attributes[a?.layer?.objectIdField]):[],this._refineSelectionSet?.undoStack&&await this._updateIds(t,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._bufferGraphicsLayer&&this._refineSelectionSet&&this._refineSelectionSet.distance>0&&(await new Promise(a=>setTimeout(a,1e3)),this._bufferGraphicsLayer.removeAll()),this.geometries=[],this._drawTools.value&&this._drawTools.value.clear()}return t}async _highlightFeatures(){let e=this._pnContextConsumer.value;e.removeHandles(),e.highlightHandles=await G(this.selectionSets)}async _updateIds(e,t,i,s){let a=!1,f=this._refineSelectionSet?.refineInfos,c=s.layer.id,o={};o[c]={addIds:[],removeIds:[],layerView:s};let n=f&&Object.keys(f).indexOf(c)>-1?f[c]:o[c];if(t==="ADD")n.addIds=[...new Set([...e,...n.addIds])],n.addIds.length>0&&i.push({ids:e,mode:t,layerView:s}),n.removeIds.length>0&&(n.removeIds=n.removeIds.filter(p=>e.indexOf(p)<0));else{let p=this.selectionSets.reduce((l,r)=>(e.forEach(d=>{r.workflowType!=="REFINE"?r.selectedIds.indexOf(d)>-1&&l.push(d):Object.keys(r.refineInfos).some(C=>{let w=r.refineInfos[C];return w.layerView.layer.id===s.layer.id&&w.addIds.indexOf(d)>-1?(l.push(d),!0):!1})}),l),[]);n.removeIds=[...new Set([...p,...n.removeIds])],n.addIds=n.addIds.filter(l=>p.indexOf(l)<0),n.removeIds.length>0&&i.push({ids:p,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce((l,r)=>(r.workflowType!=="REFINE"&&r.layerView.layer.id===s.layer.id?(r.selectedIds=r.selectedIds.filter(d=>n.removeIds.indexOf(d)<0),r.selectedIds.length>0?l.push(r):a=!0):l.push(r),l),[])}this._refineSelectionSet&&(this._refineSelectionSet.refineInfos[c]=n),this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}};k("refine-selection",y);return y},"Graphic","layers/GraphicsLayer",a,c)
2
+ import{a as D}from"./BM666UZR.js";import{b as E}from"./PAJG7ACM.js";import c from"./CEP54NLT.js";import a from"./YVNP437O.js";import{a as L}from"./SHFWVVGY.js";import{b as k}from"./2MOSXHFG.js";import{E as S,F as u,G as v,I,h as b,i as h,q as _,t as g}from"./7MSBIQLE.js";export default $arcgis.t(([V,A,{d:x},{c:m,h:G,i:$}])=>{var O=b`@layer{:host{display:block}.div-not-visible{display:none!important}.border{outline:1px solid var(--calcite-color-border-input)}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:Avenir Next,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:1.3em;background-color:var(--calcite-color-surface-2)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}.esri-sketch__tool-section{border-right:1px solid rgba(110,110,110,.3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110,110,110,.3)}.display-flex{display:flex}.font-bold{font-weight:700}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom: 0}.padding-start-1-2{padding-inline-start:.5rem}.font-weight-500{font-weight:500}.word-wrap-anywhere{word-wrap:anywhere}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}}`,y=class extends v{constructor(){super(),this.enabledLayerIds=[],this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.searchDistanceEnabled=!1,this.selectionSets=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.geometries=[],this.drawnGraphicsArr=[],this._translations=L({name:"refine-selection",blocking:!0}),this._selectionMode="ADD",this._addEnabled=!0,this._drawTools=S(),this._enabledLayerIds=[],this._layerPicker=S(),this._featuresCollection={},this._pnContextConsumer=E({context:D,subscribe:!0}),this._bufferTools=S(),this._undoGraphicsArr=[],this.selectionLoadingChange=_(),this.selectionSetsChanged=_(),this.listenOn(window,"distanceChanged",this.distanceChanged),this.listenOn(window,"unitChanged",this.unitChanged)}static{this.properties={addresseeLayer:0,enabledLayerIds:0,enableSearchDistance:5,enableSearchDistanceOnLoad:5,mapView:0,searchDistanceEnabled:5,selectionSets:0,sketchLineSymbol:0,sketchPointSymbol:0,sketchPolygonSymbol:0,defaultBufferUnit:1,bufferColor:1,bufferOutlineColor:1,defaultBufferDistance:9,geometries:0,drawnGraphicsArr:0,_translations:16,_selectionMode:16,_refineLayer:16}}static{this.styles=O}static{this.shadowRootOptions=g}willUpdate(e){e.has("defaultBufferUnit")&&this.hasUpdated&&this._refineSelectionSet&&(this._refineSelectionSet.unit=this.defaultBufferUnit),e.has("defaultBufferDistance")&&this.hasUpdated&&this._refineSelectionSet&&(this._refineSelectionSet.distance=this.defaultBufferDistance)}async distanceChanged(e){e.detail.newValue!==e.detail.oldValue&&this._refineSelectionSet&&(this._refineSelectionSet.distance=e.detail.newValue)}async unitChanged(e){e.detail.newValue!==e.detail.oldValue&&this._refineSelectionSet&&(this._refineSelectionSet.unit=e.detail.newValue)}async load(){this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0]),this._undoGraphicsArr=this._refineSelectionSet?.undoGraphicsArr}async loaded(){await this._init()}render(){let e=this._enabledLayerIds.length>1?"display-block":"display-none";return h`<div class=${`${e} padding-top-sides-1`}><div class="display-flex"><calcite-label class="font-bold width-full label-margin-0"><div class="display-flex">${this._translations.inputLayer}<calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=refine-input-layer scale=s></calcite-icon></div><map-layer-picker .enabledLayerIds=${this._enabledLayerIds} .mapView=${this.mapView} @layerSelectionChange=${t=>{this._layerSelectionChange(t)}} .selectedIds=${this._refineLayer?[this._refineLayer.layer.id]:[]} ${u(this._layerPicker)}></map-layer-picker></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=refine-input-layer><span class="tooltip-message">${this._translations.inputLayerTip}</span></calcite-popover></div></div><div class="padding-1"><div class="padding-bottom-1"><calcite-segmented-control class="w-100" width=full><calcite-segmented-control-item .checked=${this._addEnabled} class="w-50 word-wrap-anywhere" @click=${()=>this._setSelectionMode("ADD")} value=ADD><span class="font-weight-500">${this._translations.add}</span></calcite-segmented-control-item><calcite-segmented-control-item .checked=${!this._addEnabled} class="w-50 word-wrap-anywhere" @click=${()=>this._setSelectionMode("REMOVE")} value=REMOVE><span class="font-weight-500">${this._translations.remove}</span></calcite-segmented-control-item></calcite-segmented-control></div><div><map-draw-tools active draw-mode=REFINE .mapView=${this.mapView} @drawRedo=${()=>this._redo()} @drawUndo=${()=>this._undo()} @sketchGraphicsChange=${this._sketchGraphicsChanged} .pointSymbol=${this.sketchPointSymbol} .polygonSymbol=${this.sketchPolygonSymbol} .polylineSymbol=${this.sketchLineSymbol} .redoEnabled=${this._refineSelectionSet?.redoStack&&this._refineSelectionSet.redoStack.length>0} .undoEnabled=${this._refineSelectionSet?.undoStack&&this._refineSelectionSet.undoStack.length>0} ${u(this._drawTools)}></map-draw-tools></div>${this.enableSearchDistance?this._getBufferOptions():void 0}<br>${h`<calcite-list class="list-border" label>${this._getRefineSelectionSetList()}</calcite-list>`}</div>`}async _init(){this._initGraphicsLayer()}_initGraphicsLayer(){let e=this._translations.bufferLayer;if(this.mapView){let t=this.mapView.map.layers.findIndex(i=>i.title===e);if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else if(this._bufferGraphicsLayer=new A({title:e,listMode:"hide"}),this._bufferGraphicsLayer){let i=this.mapView.map.layers.findIndex(s=>s.title===this._translations.sketchLayer);i>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,i):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}_layerSelectionChange(e){let t=e.detail[0];this._setRefineSet(t)}_setSelectionMode(e){this._selectionMode=e}async _sketchGraphicsChanged(e){let t=e.detail?.graphics[0],i=t.geometry;this.geometries=[i];let s=await this._selectFeatures(i);if(this._sketchGraphic=t,this._refineSelectionSet?.distance===0&&s.length>0){let a={drawnGraphic:t,bufferGraphic:void 0};this.drawnGraphicsArr.push(a)}}_getEnabledLayerIds(){return this.selectionSets.reduce((e,t)=>{let i=t?.layerView?.layer.id;return i&&e.indexOf(i)<0?e.push(i):t.workflowType==="REFINE"&&Object.keys(t.refineInfos).forEach(s=>{e.indexOf(s)<0&&e.push(s)}),e},[])}async _setRefineSet(e){this.selectionSets.some(t=>t.workflowType==="REFINE"?(this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(e)>-1):!1)||await this._initRefineSet(e,this._refineSelectionSet),this._refineSelectionSet&&(this._refineLayer=this._refineSelectionSet.refineInfos[e].layerView)}async _initRefineSet(e,t){let i={};i[e]={addIds:[],removeIds:[],layerView:this.mapView&&await m(this.mapView,e)},t?t.refineInfos={...t.refineInfos,...i}:(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:this.defaultBufferDistance||0,download:!0,unit:this.defaultBufferUnit||"feet",label:"Refine",selectedIds:[],layerView:this.mapView&&await m(this.mapView,e),geometries:[],graphics:[],selectLayers:[],workflowType:"REFINE",searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:i,redoStack:[],undoStack:[],sketchGraphic:void 0,undoGraphicsArr:[]},this.selectionSets.push(this._refineSelectionSet))}_undo(){if(this._refineSelectionSet){let e=this._refineSelectionSet.undoStack&&this._refineSelectionSet.undoStack.pop();if(e){if(this.drawnGraphicsArr.length>0){let t=this.drawnGraphicsArr.pop();t&&this._refineSelectionSet.undoGraphicsArr?.push(t),this._undoGraphicsArr.push(t)}this._refineSelectionSet.redoStack&&this._updateIds(e.ids,e.mode==="ADD"?"REMOVE":"ADD",this._refineSelectionSet.redoStack,e.layerView)}}}_redo(){if(this._refineSelectionSet){let e=this._refineSelectionSet.redoStack&&this._refineSelectionSet.redoStack.pop();if(e){if(this._undoGraphicsArr.length>0){let t=this._undoGraphicsArr.pop();this._refineSelectionSet.undoGraphicsArr?.pop(),t&&this.drawnGraphicsArr.push(t)}this._refineSelectionSet.undoStack&&this._updateIds(e.ids,e.mode==="ADD"?"REMOVE":"ADD",this._refineSelectionSet.undoStack,e.layerView)}}}_getBufferOptions(){this.enableSearchDistanceOnLoad&&this._refineSelectionSet&&(this._refineSelectionSet.searchDistanceEnabled=!0,this.searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);let e=this._refineSelectionSet?.searchDistanceEnabled?"search-distance":"div-not-visible";return h`<div><div class="padding-top-1 display-flex"><calcite-label class="label-margin-0 w-100" layout=inline-space-between><div class="tooltip-container">${this._translations.searchDistance}<calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=search-distance-icon scale=s></calcite-icon></div></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=search-distance-icon><span class="tooltip-message">${this._translations.useSearchDistanceTootip}</span></calcite-popover><calcite-switch .checked=${this._refineSelectionSet?.searchDistanceEnabled} @calciteSwitchChange=${()=>{this.searchDistanceEnabled=!this.searchDistanceEnabled,this._refineSelectionSet&&(this._refineSelectionSet.searchDistanceEnabled=this.searchDistanceEnabled)}}></calcite-switch></div><div class=${I(e)}><buffer-tools .disabled=${!this.searchDistanceEnabled} .distance=${this._refineSelectionSet?.distance} .geometries=${this.geometries} @bufferComplete=${t=>{this._bufferComplete(t)}} .unit=${this._refineSelectionSet?.unit} ${u(this._bufferTools)}></buffer-tools></div></div>`}async _bufferComplete(e){if(this._bufferGeometry=Array.isArray(e.detail)?e.detail[0]:e.detail,this._bufferGeometry){let t={type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}},i=new V({geometry:this._bufferGeometry,symbol:t});if(this._bufferGraphicsLayer&&i&&this.mapView&&(this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(i),(await this._selectFeatures(this._bufferGeometry)).length>0)){let s={drawnGraphic:this._sketchGraphic,bufferGraphic:i};this.drawnGraphicsArr.push(s)}}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll()}_getRefineSelectionSetList(){let e=this._getTotal(this.selectionSets),t;this.selectionSets.some(o=>o.workflowType==="REFINE"?(t=o,!0):!1);let i=0,s=0;t?.refineInfos&&Object.keys(t.refineInfos).forEach(o=>{i+=t.refineInfos[o].addIds.length,s+=t.refineInfos[o].removeIds.length});let a=this._translations.featuresAdded,f=this._translations.featuresRemoved,c=this._translations.totalSelected;return[h`<calcite-list-item .label=${a.replace("{{n}}",i.toString())}></calcite-list-item>`,h`<calcite-list-item .label=${f.replace("{{n}}",s.toString())}></calcite-list-item>`,h`<calcite-list-item .label=${c.replace("{{n}}",e.toString())}></calcite-list-item>`]}_getTotal(e){let t=$(e);return Object.keys(t).reduce((i,s)=>{let a=t[s];return i+=a.ids.length,i},0)}async _selectFeatures(e){this.selectionLoadingChange.emit(!0);let t=[];if(this._refineLayer){this._featuresCollection[this._refineLayer?.layer.id]=[];let i=await x(0,this._refineLayer?.layer,e,this._featuresCollection);this.selectionLoadingChange.emit(!1);let s=[];Object.keys(i).forEach(a=>{a===this._refineLayer?.layer.id&&(s=s.concat(i[a]))}),t=Array.isArray(s)?s.map(a=>a.attributes[a?.layer?.objectIdField]):[],this._refineSelectionSet?.undoStack&&await this._updateIds(t,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._bufferGraphicsLayer&&this._refineSelectionSet&&this._refineSelectionSet.distance>0&&(await new Promise(a=>setTimeout(a,1e3)),this._bufferGraphicsLayer.removeAll()),this.geometries=[],this._drawTools.value&&this._drawTools.value.clear()}return t}async _highlightFeatures(){let e=this._pnContextConsumer.value;e.removeHandles(),e.highlightHandles=await G(this.selectionSets)}async _updateIds(e,t,i,s){let a=!1,f=this._refineSelectionSet?.refineInfos,c=s.layer.id,o={};o[c]={addIds:[],removeIds:[],layerView:s};let n=f&&Object.keys(f).indexOf(c)>-1?f[c]:o[c];if(t==="ADD")n.addIds=[...new Set([...e,...n.addIds])],n.addIds.length>0&&i.push({ids:e,mode:t,layerView:s}),n.removeIds.length>0&&(n.removeIds=n.removeIds.filter(p=>e.indexOf(p)<0));else{let p=this.selectionSets.reduce((l,r)=>(e.forEach(d=>{r.workflowType!=="REFINE"?r.selectedIds.indexOf(d)>-1&&l.push(d):Object.keys(r.refineInfos).some(C=>{let w=r.refineInfos[C];return w.layerView.layer.id===s.layer.id&&w.addIds.indexOf(d)>-1?(l.push(d),!0):!1})}),l),[]);n.removeIds=[...new Set([...p,...n.removeIds])],n.addIds=n.addIds.filter(l=>p.indexOf(l)<0),n.removeIds.length>0&&i.push({ids:p,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce((l,r)=>(r.workflowType!=="REFINE"&&r.layerView.layer.id===s.layer.id?(r.selectedIds=r.selectedIds.filter(d=>n.removeIds.indexOf(d)<0),r.selectedIds.length>0?l.push(r):a=!0):l.push(r),l),[])}this._refineSelectionSet&&(this._refineSelectionSet.refineInfos[c]=n),this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}};k("refine-selection",y);return y},"Graphic","layers/GraphicsLayer",a,c)