@arcgis/map-components 5.2.3 → 5.2.4

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 (263) hide show
  1. package/dist/cdn/{7UDWKTRZ.js → 22YQ2I4Q.js} +1 -1
  2. package/dist/cdn/{XRDOAWWE.js → 26HV57H7.js} +1 -1
  3. package/dist/cdn/{GQK6TEJ5.js → 26VIAHPF.js} +1 -1
  4. package/dist/cdn/{EQQOW2HU.js → 27KYQNKP.js} +1 -1
  5. package/dist/cdn/{LKI4MW42.js → 27YN5YT4.js} +1 -1
  6. package/dist/cdn/{RLANFCB3.js → 2BBD6VW2.js} +1 -1
  7. package/dist/cdn/{4BLOLOQK.js → 2IYRSXZS.js} +1 -1
  8. package/dist/cdn/{36WX25I4.js → 2NW2URBZ.js} +1 -1
  9. package/dist/cdn/{ME7JRML7.js → 2P4UY266.js} +1 -1
  10. package/dist/cdn/{ON5PPM2N.js → 2Z5F2BEF.js} +1 -1
  11. package/dist/cdn/{4GPS2BM4.js → 33CM77ZT.js} +1 -1
  12. package/dist/cdn/{BRMTQZFL.js → 3ASVOZZN.js} +1 -1
  13. package/dist/cdn/{CM3MLR7H.js → 3AXMZRRO.js} +1 -1
  14. package/dist/cdn/{4EUZ5NCL.js → 3GPIVC5P.js} +1 -1
  15. package/dist/cdn/3GXZW3ZZ.js +2 -0
  16. package/dist/cdn/{MVBWGXLS.js → 3Q4C6BLY.js} +1 -1
  17. package/dist/cdn/{QFJ73GRU.js → 3QFEQCVN.js} +1 -1
  18. package/dist/cdn/{JTUQ2CV5.js → 3UB7YDP2.js} +1 -1
  19. package/dist/cdn/{6KDG3KXI.js → 3UZK6UYW.js} +1 -1
  20. package/dist/cdn/{W5ZDJR73.js → 3XBN5QVA.js} +1 -1
  21. package/dist/cdn/{OWSH2UST.js → 3XGDS5QW.js} +1 -1
  22. package/dist/cdn/{PZKE7SIU.js → 3YL6SRFS.js} +1 -1
  23. package/dist/cdn/{4MYEWR4O.js → 3Z2A32L3.js} +1 -1
  24. package/dist/cdn/{HWGFEZOE.js → 42PE2SPG.js} +1 -1
  25. package/dist/cdn/{AW3VSJ4S.js → 43BJYWX5.js} +1 -1
  26. package/dist/cdn/{LMO4H6JB.js → 45COW2XC.js} +1 -1
  27. package/dist/cdn/{U5RHAE5O.js → 45DBVQ5G.js} +1 -1
  28. package/dist/cdn/{GQBT2JWS.js → 45ZOIFQJ.js} +1 -1
  29. package/dist/cdn/{PLWMP4K6.js → 4QN3V76Q.js} +1 -1
  30. package/dist/cdn/{A2SLHYTQ.js → 4QTVZIDY.js} +1 -1
  31. package/dist/cdn/{I4NXDFWY.js → 4RATJWRO.js} +1 -1
  32. package/dist/cdn/{Z5ZVOVEG.js → 4TGV2X47.js} +1 -1
  33. package/dist/cdn/{BWISX7PI.js → 4TI6CNOV.js} +1 -1
  34. package/dist/cdn/{4WCY7DGR.js → 4UHNVQPP.js} +1 -1
  35. package/dist/cdn/{NKKNKLBI.js → 4UQ6UUHY.js} +1 -1
  36. package/dist/cdn/{TEX6U3QA.js → 5GJOYBI7.js} +1 -1
  37. package/dist/cdn/{IUVIG5KE.js → 5IS4UXVE.js} +1 -1
  38. package/dist/cdn/{2KI5JQFR.js → 5JQT4A7C.js} +1 -1
  39. package/dist/cdn/{V5A56PRN.js → 5MIP6ZL7.js} +1 -1
  40. package/dist/cdn/{V273E2DS.js → 5XBLTA7T.js} +1 -1
  41. package/dist/cdn/{QRT6VXRY.js → 65F7YFJC.js} +1 -1
  42. package/dist/cdn/{QEACKXI2.js → 65VYDNYQ.js} +1 -1
  43. package/dist/cdn/{6KC3T5KT.js → 66I2OTCZ.js} +1 -1
  44. package/dist/cdn/{4NGW6RPM.js → 6AWNWO34.js} +1 -1
  45. package/dist/cdn/{EFQ6PB75.js → 6BCQ52L7.js} +1 -1
  46. package/dist/cdn/{ZW3ZNFYI.js → 6CRONNHI.js} +1 -1
  47. package/dist/cdn/{YK3OHMKT.js → 6N7PM73F.js} +1 -1
  48. package/dist/cdn/{ABADOZAX.js → 6R6R3XTH.js} +1 -1
  49. package/dist/cdn/{NKK27XKY.js → 6RB62D2W.js} +1 -1
  50. package/dist/cdn/{KT7YFUYY.js → 725LPPIM.js} +1 -1
  51. package/dist/cdn/{UGVAEIPY.js → 76ZJGD75.js} +1 -1
  52. package/dist/cdn/{GJGUY2TX.js → 7BUZBVCD.js} +1 -1
  53. package/dist/cdn/{P2A4UHL6.js → 7EMK74ZF.js} +1 -1
  54. package/dist/cdn/{ELDU2LYZ.js → 7HSEOEBC.js} +1 -1
  55. package/dist/cdn/{BYC7JUTS.js → 7IHIG427.js} +1 -1
  56. package/dist/cdn/{XNTCBTPU.js → 7LWKOSKH.js} +1 -1
  57. package/dist/cdn/{EAZLRECI.js → 7NHKX7LM.js} +1 -1
  58. package/dist/cdn/{R7P52BCB.js → 7NQQ3S77.js} +1 -1
  59. package/dist/cdn/{W4XP4E3G.js → 7Z6N5WXJ.js} +1 -1
  60. package/dist/cdn/{XK6ENKJ5.js → 7ZT4OUUW.js} +1 -1
  61. package/dist/cdn/{JOTRAPIN.js → A4TJO5PZ.js} +1 -1
  62. package/dist/cdn/{BPMHMJHD.js → A7E66LIH.js} +1 -1
  63. package/dist/cdn/{3D6YELGM.js → ADQWQBEW.js} +1 -1
  64. package/dist/cdn/{RK47P24H.js → ADWVRV5I.js} +1 -1
  65. package/dist/cdn/{CI22IYKP.js → ADYG2EMM.js} +1 -1
  66. package/dist/cdn/{5TXFEC6B.js → AETNFVGH.js} +1 -1
  67. package/dist/cdn/{VWLPJFWI.js → AL6L663C.js} +1 -1
  68. package/dist/cdn/{BKXYV7K3.js → AVIXHXI6.js} +1 -1
  69. package/dist/cdn/{7OBQZBQO.js → AXA4NQBL.js} +1 -1
  70. package/dist/cdn/{IAPRDZW3.js → AXUOAFV7.js} +1 -1
  71. package/dist/cdn/{EOOAAAWE.js → B72ELQQW.js} +1 -1
  72. package/dist/cdn/{TI33IM3W.js → BDNXOVLN.js} +1 -1
  73. package/dist/cdn/{YW2OX2TN.js → BMJXYAYT.js} +1 -1
  74. package/dist/cdn/{2ZK652UN.js → BYJVWNVL.js} +1 -1
  75. package/dist/cdn/{RXYXPOMC.js → C2DNE5TB.js} +1 -1
  76. package/dist/cdn/{YIZIZKSR.js → C5MWND53.js} +1 -1
  77. package/dist/cdn/{BGEH2C44.js → CLVKSUYH.js} +1 -1
  78. package/dist/cdn/{OCN7CPWD.js → CNBOU73I.js} +1 -1
  79. package/dist/cdn/{DFXZPZGI.js → CRSLMZ6H.js} +1 -1
  80. package/dist/cdn/{Y6QNK4JH.js → CSS4XGEC.js} +1 -1
  81. package/dist/cdn/{5UMTZK7B.js → CTWWJ6FV.js} +1 -1
  82. package/dist/cdn/{DSCFXKLG.js → CUX6ELAH.js} +1 -1
  83. package/dist/cdn/{MXT7FOQA.js → CXUGFNZW.js} +1 -1
  84. package/dist/cdn/{PESGPSYQ.js → CYISOXDZ.js} +1 -1
  85. package/dist/cdn/{XJSQF3BD.js → D3YO4ZOH.js} +1 -1
  86. package/dist/cdn/{XQOSXYOG.js → DDVFTISN.js} +1 -1
  87. package/dist/cdn/DGYFI3QX.js +2 -0
  88. package/dist/cdn/{I6JC44S3.js → DLYAECAD.js} +1 -1
  89. package/dist/cdn/{AMWJET7O.js → DRGUJ5LY.js} +1 -1
  90. package/dist/cdn/{24U6DHQD.js → DZH4KU2P.js} +1 -1
  91. package/dist/cdn/{CIR2ZEMV.js → E2NFVZER.js} +1 -1
  92. package/dist/cdn/{Z5CYEI56.js → E3LXH4CS.js} +1 -1
  93. package/dist/cdn/{6RBLQCQW.js → EHE46WJD.js} +1 -1
  94. package/dist/cdn/{ELRHOVX4.js → EKSBCS54.js} +1 -1
  95. package/dist/cdn/{M26LXIPE.js → F2WMR3YQ.js} +1 -1
  96. package/dist/cdn/{7I335K4G.js → F5B4WIVL.js} +1 -1
  97. package/dist/cdn/{L2AXRJFR.js → FBL6FWKR.js} +1 -1
  98. package/dist/cdn/{ZEFGVZBC.js → FEBHYZ6D.js} +1 -1
  99. package/dist/cdn/{RYZPLPUS.js → FG2YJIYE.js} +1 -1
  100. package/dist/cdn/{NMTZHGGF.js → FG72D6YZ.js} +1 -1
  101. package/dist/cdn/{UPQJZ4VA.js → FHYP6EF2.js} +1 -1
  102. package/dist/cdn/{ZYVFTUSL.js → FJBCC7ZH.js} +1 -1
  103. package/dist/cdn/{ZTTSXNZZ.js → FQBXGJER.js} +1 -1
  104. package/dist/cdn/{B2IA36KS.js → FQJ27ZN5.js} +1 -1
  105. package/dist/cdn/{V7YWVHBX.js → G55BOIXB.js} +1 -1
  106. package/dist/cdn/{KGDXNHVN.js → G6OJLMKT.js} +1 -1
  107. package/dist/cdn/{NPY3VBCU.js → G76VVSVA.js} +1 -1
  108. package/dist/cdn/{TCQH5LMF.js → GBGU5QK5.js} +1 -1
  109. package/dist/cdn/{UOQOPISG.js → GCBY5PIC.js} +1 -1
  110. package/dist/cdn/{WEXLR3NQ.js → GFZOUGIU.js} +1 -1
  111. package/dist/cdn/{66WCZ75F.js → GPPCLLAX.js} +1 -1
  112. package/dist/cdn/{LBO3GPSH.js → GQ3SO3TR.js} +1 -1
  113. package/dist/cdn/{XD7FRUNP.js → GVUTAN2R.js} +1 -1
  114. package/dist/cdn/{OIXVH7GC.js → H65Z7MWV.js} +1 -1
  115. package/dist/cdn/{462PGTSZ.js → HKKK7PAM.js} +1 -1
  116. package/dist/cdn/{ZJ2AYHW6.js → HP2P5OYN.js} +1 -1
  117. package/dist/cdn/{HHRCKFXQ.js → HSA4KTTI.js} +1 -1
  118. package/dist/cdn/{ECHEJ6SW.js → HUZONYD7.js} +1 -1
  119. package/dist/cdn/{GQXYKKD4.js → HXPDO6CM.js} +1 -1
  120. package/dist/cdn/{6VSDTKTT.js → I4KVOO6N.js} +1 -1
  121. package/dist/cdn/{C4WPN2GS.js → IAAFKO6G.js} +1 -1
  122. package/dist/cdn/{R2HGTWDL.js → IBPMRPU6.js} +1 -1
  123. package/dist/cdn/{HEIRYQKE.js → ICXOGGZG.js} +1 -1
  124. package/dist/cdn/{63LF3T5Z.js → IN5R6JL7.js} +1 -1
  125. package/dist/cdn/{WYTTRLKU.js → IQ3QP74J.js} +1 -1
  126. package/dist/cdn/{W2WHK5MI.js → IRN4ISDZ.js} +1 -1
  127. package/dist/cdn/{DFU4QJOF.js → IXBOTGHC.js} +1 -1
  128. package/dist/cdn/{I53VSBYF.js → IYJPEFK5.js} +1 -1
  129. package/dist/cdn/{QTKVYNEF.js → J4FJYZ25.js} +1 -1
  130. package/dist/cdn/{7KODDU5C.js → J6SWGP36.js} +1 -1
  131. package/dist/cdn/{NPCCO5TJ.js → J7OIAUDA.js} +1 -1
  132. package/dist/cdn/{6NA3MXVP.js → JA7KC626.js} +1 -1
  133. package/dist/cdn/{BBCBFISW.js → JCRUAYGH.js} +1 -1
  134. package/dist/cdn/{AN62CGCK.js → JJTRGGUD.js} +1 -1
  135. package/dist/cdn/{LZMMWLXN.js → JM6DRQRN.js} +1 -1
  136. package/dist/cdn/{SUSJGO7S.js → JNOTFCBC.js} +1 -1
  137. package/dist/cdn/{5MCDQSM7.js → JPP2BFD4.js} +1 -1
  138. package/dist/cdn/{PO44WKSG.js → JXONVBDR.js} +1 -1
  139. package/dist/cdn/{E6ODHOXW.js → JXZOSS7R.js} +1 -1
  140. package/dist/cdn/{2PRME2GL.js → K5FZWX5N.js} +1 -1
  141. package/dist/cdn/{TYAVYEHM.js → KBRTUP24.js} +1 -1
  142. package/dist/cdn/{3LPI2VLI.js → KP4YBPWU.js} +1 -1
  143. package/dist/cdn/{OQTWSNJ6.js → KSGX44II.js} +1 -1
  144. package/dist/cdn/{WPIMUQUF.js → L2JMPLBI.js} +1 -1
  145. package/dist/cdn/{LVFC4AWR.js → L4HEGMVE.js} +1 -1
  146. package/dist/cdn/{SI73BH5Q.js → LF2NKUJA.js} +1 -1
  147. package/dist/cdn/{MXQ4J764.js → LHPWDJ75.js} +1 -1
  148. package/dist/cdn/{3G2OTOJV.js → LQG26YL6.js} +1 -1
  149. package/dist/cdn/{EUDQ2QHZ.js → LTMZ7TOT.js} +1 -1
  150. package/dist/cdn/{TJRY7FHJ.js → LZGMWFOO.js} +1 -1
  151. package/dist/cdn/{YG44TKRR.js → LZL7VTQH.js} +1 -1
  152. package/dist/cdn/{B4RDNDQD.js → M5LPUEIS.js} +1 -1
  153. package/dist/cdn/{CP26XOGC.js → M5MUX3SR.js} +1 -1
  154. package/dist/cdn/{3NLHESH5.js → MRD6F6I3.js} +1 -1
  155. package/dist/cdn/{LGKF2N6J.js → N4R7LN4Y.js} +1 -1
  156. package/dist/cdn/{XOQS7GNR.js → N6L2XHFN.js} +1 -1
  157. package/dist/cdn/NBGFUVYW.js +2 -0
  158. package/dist/cdn/{XQXWBSON.js → NC77ZFVJ.js} +1 -1
  159. package/dist/cdn/{AUQIWRYN.js → NDAKSOSF.js} +1 -1
  160. package/dist/cdn/{UNFNZ4Q7.js → NU7WF2LD.js} +1 -1
  161. package/dist/cdn/{UQTENTWA.js → NXABZYBC.js} +1 -1
  162. package/dist/cdn/{YFWKR3JI.js → NZUH5VXN.js} +1 -1
  163. package/dist/cdn/{6PQX2G2C.js → NZVK73Y3.js} +1 -1
  164. package/dist/cdn/{I4L4KPGK.js → OAOXF5KZ.js} +1 -1
  165. package/dist/cdn/{KTTFGI23.js → OC5LFUMP.js} +1 -1
  166. package/dist/cdn/{2FFYTIQO.js → OCNR4NPT.js} +1 -1
  167. package/dist/cdn/{CF5DPJ5E.js → OCPTS6HN.js} +1 -1
  168. package/dist/cdn/{5XC5NHCI.js → OGJW7OTX.js} +1 -1
  169. package/dist/cdn/{NHK65POU.js → OJGHH26G.js} +1 -1
  170. package/dist/cdn/{TN75LWTI.js → OOAN57X4.js} +1 -1
  171. package/dist/cdn/OOCTOODF.js +2 -0
  172. package/dist/cdn/{4CHR5AQY.js → OQEFMTO6.js} +1 -1
  173. package/dist/cdn/{Y75GEEOM.js → OSV6AIA4.js} +1 -1
  174. package/dist/cdn/{H7GIAKYV.js → OW7VEQ7M.js} +1 -1
  175. package/dist/cdn/{OM6LULIZ.js → P2GMODLP.js} +1 -1
  176. package/dist/cdn/{AUIUBPAC.js → P5PUHTTZ.js} +1 -1
  177. package/dist/cdn/{KZS7CYKI.js → PE2PWL2J.js} +1 -1
  178. package/dist/cdn/{GUZFR3OQ.js → PEER45DY.js} +1 -1
  179. package/dist/cdn/{ZUROH43H.js → PJKKBIRS.js} +1 -1
  180. package/dist/cdn/{FCFT6F7S.js → PLYXWZK5.js} +1 -1
  181. package/dist/cdn/{QAEFC57S.js → PPURK2BH.js} +1 -1
  182. package/dist/cdn/{U4E7KMZA.js → PTTMCU4E.js} +1 -1
  183. package/dist/cdn/{ZWCH2FSP.js → QARHM5T5.js} +1 -1
  184. package/dist/cdn/{77QPF6TI.js → QGMWSIUI.js} +1 -1
  185. package/dist/cdn/{QHS3AP7F.js → QPY7IYQY.js} +1 -1
  186. package/dist/cdn/{WC32IFLG.js → QTFACWJS.js} +1 -1
  187. package/dist/cdn/{Z3H63R5E.js → R5YS4GKL.js} +1 -1
  188. package/dist/cdn/{DGTTGUWY.js → R7UUK7UW.js} +1 -1
  189. package/dist/cdn/{PNPZVEGZ.js → RAWM42BS.js} +1 -1
  190. package/dist/cdn/{HFQHSNVJ.js → RLUANYVV.js} +1 -1
  191. package/dist/cdn/{O3ZPAZWD.js → RMMYKX2C.js} +1 -1
  192. package/dist/cdn/{IEN33F6J.js → RZ5SLTHC.js} +1 -1
  193. package/dist/cdn/{FBN3C2IA.js → RZHSZ3H2.js} +1 -1
  194. package/dist/cdn/{2HFZHOW2.js → S6RI6HCD.js} +1 -1
  195. package/dist/cdn/{SWZN2LJN.js → SDQDUGKX.js} +1 -1
  196. package/dist/cdn/{A444AODZ.js → SMT4LA5X.js} +1 -1
  197. package/dist/cdn/{ONVFT6TQ.js → TFVRJUSJ.js} +1 -1
  198. package/dist/cdn/{CINDE6V3.js → TLKQ4SHF.js} +1 -1
  199. package/dist/cdn/TR7SBUZN.js +2 -0
  200. package/dist/cdn/TSGJUXIR.js +2 -0
  201. package/dist/cdn/{GGN2NVG7.js → TULJ7Y32.js} +1 -1
  202. package/dist/cdn/{3AAY73SE.js → TWCJYCYQ.js} +1 -1
  203. package/dist/cdn/{UFIXUQ76.js → UC2COAGW.js} +1 -1
  204. package/dist/cdn/{MH7GDPAM.js → UEDZF47N.js} +1 -1
  205. package/dist/cdn/{WMQ54EOP.js → USFLEWDK.js} +1 -1
  206. package/dist/cdn/{SGRNBHVD.js → UVLOCGTT.js} +1 -1
  207. package/dist/cdn/{BK4L5A3D.js → UWPWTJ2J.js} +1 -1
  208. package/dist/cdn/{FP74DFKU.js → UX6GYAWK.js} +1 -1
  209. package/dist/cdn/{ZMRMNOXL.js → UXW5MQM7.js} +1 -1
  210. package/dist/cdn/{SLPNM3RW.js → VFGAPD6E.js} +1 -1
  211. package/dist/cdn/{GGTETDG3.js → VJSPMUHM.js} +1 -1
  212. package/dist/cdn/{ZM6HNXSZ.js → VLIXVXP3.js} +1 -1
  213. package/dist/cdn/{QLC2RVDQ.js → VLPW3VFM.js} +1 -1
  214. package/dist/cdn/{2BWSUOWD.js → VO5QOZLY.js} +1 -1
  215. package/dist/cdn/{MBXG2SXJ.js → VVCANCHO.js} +1 -1
  216. package/dist/cdn/{UOJST2V4.js → VVRC5BEV.js} +1 -1
  217. package/dist/cdn/{SBNM2ONV.js → VXEZRMIB.js} +1 -1
  218. package/dist/cdn/{IGPRDQ54.js → WGDJZRA7.js} +1 -1
  219. package/dist/cdn/{CARHSFPH.js → WM2BIX22.js} +1 -1
  220. package/dist/cdn/{2RPMEM3H.js → WVBYHVGU.js} +1 -1
  221. package/dist/cdn/{KFXLQIC5.js → X4FA56YR.js} +1 -1
  222. package/dist/cdn/{GUNFY32Y.js → XF2UVS35.js} +1 -1
  223. package/dist/cdn/{GNZWEVHM.js → XHHIPQFI.js} +1 -1
  224. package/dist/cdn/{XPDGVBSX.js → XJVBEFHM.js} +1 -1
  225. package/dist/cdn/{5FWWIRFW.js → XRTRPQD7.js} +1 -1
  226. package/dist/cdn/XVWPYACH.js +2 -0
  227. package/dist/cdn/{I3CCLD3Y.js → Y37A4DUY.js} +1 -1
  228. package/dist/cdn/{M3HUCUBU.js → Y4XOPAG7.js} +1 -1
  229. package/dist/cdn/{BLY5VNQD.js → Y6AHWNUS.js} +1 -1
  230. package/dist/cdn/{N542FLRH.js → Y7AXHIRQ.js} +1 -1
  231. package/dist/cdn/{GDMVYWNV.js → YGLWJECZ.js} +1 -1
  232. package/dist/cdn/{BWBS5XIO.js → YJQE7EHO.js} +1 -1
  233. package/dist/cdn/{2WR42AWJ.js → YLB7LLOQ.js} +1 -1
  234. package/dist/cdn/{CSMLJNYF.js → YRYVYLP7.js} +1 -1
  235. package/dist/cdn/{FTEHOQI6.js → YVZZACFZ.js} +1 -1
  236. package/dist/cdn/{74YGROI2.js → YX5HLX3D.js} +1 -1
  237. package/dist/cdn/{HAVN3BXW.js → Z3EC3N7C.js} +1 -1
  238. package/dist/cdn/{3NEWMAOY.js → Z4BEJRTJ.js} +1 -1
  239. package/dist/cdn/{U6KRBP5F.js → Z5M2ALAH.js} +1 -1
  240. package/dist/cdn/{7X6SDG4T.js → Z7EK7SAF.js} +1 -1
  241. package/dist/cdn/{R63ASFYP.js → ZBTXET66.js} +1 -1
  242. package/dist/cdn/{MWCXWOQ7.js → ZE7TYDWG.js} +1 -1
  243. package/dist/cdn/{IUO5DHED.js → ZF5GBMSS.js} +1 -1
  244. package/dist/cdn/{GFUJUIKL.js → ZJE2W2CU.js} +1 -1
  245. package/dist/cdn/{5RXVBIIN.js → ZXTGLPB7.js} +1 -1
  246. package/dist/cdn/index.js +1 -1
  247. package/dist/chunks/runtime.js +1 -1
  248. package/dist/components/arcgis-selection-list/customElement.d.ts +12 -0
  249. package/dist/components/arcgis-selection-toolbar/customElement.d.ts +10 -0
  250. package/dist/components/arcgis-sketch/customElement.d.ts +18 -0
  251. package/dist/components/arcgis-sketch/customElement.js +1 -1
  252. package/dist/docs/api.json +1 -1
  253. package/dist/docs/docs.json +1 -1
  254. package/dist/docs/vscode.html-custom-data.json +1 -1
  255. package/dist/docs/web-types.json +1 -1
  256. package/package.json +6 -6
  257. package/dist/cdn/7LPF5IGM.js +0 -2
  258. package/dist/cdn/ACTNLLAZ.js +0 -2
  259. package/dist/cdn/I5BFVPTT.js +0 -2
  260. package/dist/cdn/I7WLGS7M.js +0 -2
  261. package/dist/cdn/NGT2EGLV.js +0 -2
  262. package/dist/cdn/O7ORSE4M.js +0 -2
  263. package/dist/cdn/ZX3ATZ6W.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as ne}from"./TN5C3MSL.js";import g from"./HP32VJJ5.js";import"./IZ46HAUJ.js";import{a as _}from"./POKO37D3.js";import f from"./ZW3ZNFYI.js";import"./VJVKFKSG.js";import e from"./KFXLQIC5.js";import{a as ie}from"./P2A4UHL6.js";import d from"./7LPF5IGM.js";import c from"./UGVAEIPY.js";import b from"./QAEFC57S.js";import{d as Z,h as ee}from"./YK3OHMKT.js";import"./BYC7JUTS.js";import a from"./4BLOLOQK.js";import"./QUZTFUWM.js";import{f as Y}from"./OM6LULIZ.js";import{D as H,E as q,M as j,N as P,O as E,P as J,Q,U as G,X,a as W,b as v,e as O,x as U,z as N}from"./4GPS2BM4.js";import"./H6RQVSYM.js";export default $arcgis.t(([{substitute:fe},Ce,we,{watch:y,on:Te,whenOnce:Se},Ee,{getOrCreateMapValue:ce,createReactiveMap:_e},Me,{property:p,subclass:ke},{ignoreAbortErrors:T},Pe,Le,,,,w,oe,{f:te},se])=>{var M=Q({defaultAssetPath:"https://js.arcgis.com/5.2.3/common-components/",hydratedAttribute:"hydrated"}),{customElement:He,getAssetPath:ye,setAssetPath:be}=M;M.t=void 0;M.o=void 0;M.c=void 0;M.r=void 0;var f={ForceCollapse:0,Default:1,Medium:100,High:200,Max:300,NeverCollapse:1e3};function le(i,e){let t=e;for(let o of i.split(".")){if(typeof t!="object"||t===null)return;t=Reflect.get(t,o)}return typeof t=="string"?t:void 0}var Ae=W`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px;-webkit-user-select:none;user-select:none;pointer-events:initial;padding:var(--calcite-space-sm);arcgis-sketch-tooltip-controls+arcgis-snapping-controls{border-block-start:1px solid var(--calcite-color-border-3)}}:host{pointer-events:none}.toolbar-container{block-size:100%;min-block-size:0;min-inline-size:0}arcgis-toolbar-stack[layout=vertical]{block-size:100cqh;min-block-size:100%;max-block-size:100%}:host([data-intrinsic-toolbar-sizing]){min-inline-size:0;min-block-size:0;max-inline-size:100%;max-block-size:100%;arcgis-toolbar-stack[layout=vertical]{block-size:100%}}:host([data-intrinsic-toolbar-sizing][layout="vertical"]){display:grid;grid-template-columns:minmax(min-content,1fr);grid-template-rows:minmax(0,1fr);inline-size:fit-content;block-size:100%;.toolbar-container{block-size:auto}.toolbar-container,arcgis-view-popover{grid-area:1 / 1}}:host([data-intrinsic-toolbar-sizing][layout="vertical"][toolbar-kind="floating"]){block-size:auto}`,Oe={point:"pin",polyline:"line",polygon:"polygon",rectangle:"rectangle",circle:"circle",multipoint:"pins",mesh:"i3d-building",freehandPolygon:"freehand-area",freehandPolyline:"freehand",text:"text"},Ge={selectionTools:{defaultPriority:f.Default,groupKind:"split-button",overflowLabel:"selection"},selectionSet:{defaultPriority:f.High,groupKind:"actions"},createTools:{defaultPriority:f.High,groupKind:"more-button",overflowLabel:"drawing"},undoRedo:{defaultPriority:f.Medium,groupKind:"split-button",overflowLabel:"action",preferEndSlot:!0},settings:{defaultPriority:f.Max,groupKind:"more-button",overflowLabel:"action",preferEndSlot:!0},geometrySimplification:{defaultPriority:f.Default,groupKind:"actions",preferEndSlot:!0}},xe=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,d=(i,e,t,o)=>{for(var s=o>1?void 0:o?Re(e,t):e,r=i.length-1,c;r>=0;r--)(c=i[r])&&(s=(o?c(e,t,s):c(s))||s);return o&&s&&xe(e,t,s),s},h=class extends Me{constructor(i){super(i),this._effectiveRenderStateCache=new Map,this._effectiveGeometrySimplificationInProgress=!1,this.visibleElements=new Pe,this.settingsPopoverOpen=!1,this.availableCreateTools=["point","polyline","freehandPolyline","polygon","freehandPolygon","rectangle","circle"]}initialize(){this.selectionViewModel??=new Le({persistSelection:!1}),this.addHandles([y(()=>this.sketchViewModel,(i,e)=>{i!==e&&this._effectiveRenderStateCache.clear()},{sync:!0}),se({getLoading:()=>this.sketchViewModel?.geometrySimplificationInProgress??!1,setEffectiveLoading:i=>{this._effectiveGeometrySimplificationInProgress=i}}),y(()=>this.view,i=>{this.selectionViewModel.view=i},{initial:!0,sync:!0}),y(()=>this.sketchViewModel?.layer,i=>this.selectionViewModel.sources=i?[i]:[],{initial:!0,sync:!0}),this.selectionViewModel.on("complete",({selection:i})=>{let{sketchViewModel:e}=this;if(i.length&&e){let{defaultUpdateOptions:t}=e,{tool:o}=t;this.update(i,{...t,tool:i.length>1&&o==="reshape"?"transform":o})}}),y(()=>this.selectionViewModel.activeOperation,i=>{i&&(this.sketchViewModel?.cancel(),this._activeCustomToolOptions=void 0)},{sync:!0}),Te(()=>this.sketchViewModel,"create",i=>{i.state==="complete"&&this.sketchViewModel?.creationMode!=="continuous"&&(this._activeCustomToolOptions=void 0)}),y(()=>this.visibleElements.settingsMenu,i=>{i||(this.settingsPopoverOpen=!1)},{sync:!0})])}destroy(){this._pendingCommandAbortController?.abort(),this.selectionViewModel.destroy(),this.sketchViewModel=void 0}get _isEffectiveRenderStateFrozen(){let{sketchViewModel:i}=this;return!!(i?.toolTransitionInProgress||i?.geometrySimplificationInProgress)}_getEffectiveValue(i,e){if(!this._isEffectiveRenderStateFrozen||!this._effectiveRenderStateCache.has(i)){let t=e();return this._effectiveRenderStateCache.set(i,t),t}return this._effectiveRenderStateCache.get(i)}get _state(){return this.sketchViewModel?.state??"disabled"}get test(){return{activeCustomToolOptions:this._activeCustomToolOptions,activeSelectionTool:this._activeSelectionTool,selectionViewModel:this.selectionViewModel}}get _activeSelectionTool(){switch(this.selectionViewModel.activeOperation?.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";default:return}}get _activePluginUniqueIds(){let i=this.sketchViewModel?.activePluginConfigurations.filter(e=>!e.hidden).map(e=>e.uniqueId);return new Set(i??[])}get _createToolActions(){let{sketchViewModel:i}=this;if(!i)return[];let e=i.effectiveAvailablePlugins,t=this.state==="disabled",o=this.visibleElements.createTools,s=this.activeTool,r=this._activeCustomToolOptions,c=r||!i.firstPluginWithSwappableLeaf?this._customToolOptions:[],a=i.rootPlugins,l=c?.map(n=>({active:n===r,disabled:t,icon:n.icon,labelKey:n.label,onClick:n===r?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n.toolName,n.createOptions,n)}))??[];if(r&&a)return[...this._pluginsToActions(a),...l];if(e?.length&&this.view?.type!=="3d")return[...this._pluginsToActions(e),...l];let g=this.view?.type==="3d";return[...this.availableCreateTools?.filter(n=>g&&n==="multipoint"?!1:n==="mesh"?!0:o[n])?.map(n=>({active:n===s,disabled:t,icon:Oe[n],labelKey:`draw.${n}`,onClick:n===s?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n)}))??[],...l]}get _shouldShowBackButton(){let i=this.sketchViewModel?.firstPluginWithSwappableLeaf,e=this.sketchViewModel?.rootPlugins,t=this._activeCustomToolOptions;return!!(this.sketchViewModel?.multiplePluginsActive&&i&&e&&!(e.length<2&&e.includes(i)&&!this.visibleElements.singlePluginBackButton)&&!t)}get _selectionToolActions(){return this._shouldShowBackButton?[{active:!1,disabled:this.state==="disabled",icon:"chevron-left",iconFlipRTL:!0,labelKey:"back",onClick:()=>this._cancelActiveOperation()}]:this._selectionCommands}get _settingsActions(){let i=this._customActions?.get("settings-before"),e=this._customActions?.get("settings-after"),t=this.visibleElements.settingsMenu,o=[];return!i?.length&&!e?.length&&!t||(i&&o.push(...this._customActionsToSketchActions(i)),t&&o.push({icon:"gear",active:this.settingsPopoverOpen,disabled:this.state==="disabled",labelKey:"settings.heading",tooltipKey:"settings.heading",refKey:"settings",onClick:()=>this.toggleSettingsPopover()}),e&&o.push(...this._customActionsToSketchActions(e))),o}get _activeTool(){let i=this.selectionViewModel.activeOperation;if(i)switch(i.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";case"default":return"custom-selection"}if(!this.sketchViewModel)return;let{availableCreateTools:e}=this,{activeTool:t,activeCreateToolDrawMode:o}=this.sketchViewModel;return t==="polygon"&&o==="freehand"&&e?.includes("freehandPolygon")?"freehandPolygon":t==="polyline"&&o==="freehand"&&e?.includes("freehandPolyline")?"freehandPolyline":t??void 0}get _selectionCommands(){let{state:i,visibleElements:e,_activeSelectionTool:t,_customActions:o}=this,s=this.state==="disabled",r=[];this.sketchViewModel?.updateOnGraphicClick!==!1&&r.push({active:i==="ready"&&this._activeSelectionTool==null,disabled:s,icon:"cursor",labelKey:"selectFeature",onClick:()=>this._activateDefaultSelectionTool()});let c=e.selectionTools;c["rectangle-selection"]&&r.push({active:t==="rectangle-selection",disabled:s,icon:"cursor-marquee",labelKey:"rectangleSelection",onClick:()=>this._activateSelectionTool("rectangle-selection")}),c["lasso-selection"]&&r.push({active:t==="lasso-selection",disabled:s,icon:"lasso-select",labelKey:"lassoSelection",onClick:()=>this._activateSelectionTool("lasso-selection")});let a=o?.get("selection-toolbar");return a&&r.push(...this._customActionsToSketchActions(a)),r}get _selectionSetActions(){let i=this.sketchViewModel?.updateGraphics.length??0;if(!i)return[];let e=this.state==="disabled",t=[],o=this._customActions?.get("before-selection-set"),s=this._customActions?.get("after-selection-set");return this.visibleElements.selectionCountLabel&&t.push({active:!1,appearance:"outline",disabled:e,icon:"selection-x",kind:"brand",labelKey:"deselectCount",labelParameters:{count:i},textEnabled:!0,renderAsAction:!0,onClick:()=>this._cancelSketchOperation()}),o&&t.push(...this._customActionsToSketchActions(o)),this.visibleElements.duplicateButton&&t.push({active:!1,disabled:e,icon:"copy",renderAsAction:!0,labelKey:i>1?"duplicateFeatures":"duplicateFeature",onClick:()=>this._duplicate()}),this.visibleElements.deleteButton&&t.push({active:!1,disabled:e,icon:"trash",kind:"danger",renderAsAction:!0,labelKey:i>1?"deleteFeatures":"deleteFeature",onClick:()=>this._delete()}),s&&t.push(...this._customActionsToSketchActions(s)),t}get _undoRedoActions(){return this.visibleElements.undoRedoMenu?[{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canUndo(),icon:"undo",labelKey:"undo",iconFlipRTL:!0,onClick:()=>this._undo()},{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canRedo(),icon:"redo",labelKey:"redo",iconFlipRTL:!0,onClick:()=>this._redo()}]:[]}get state(){return this._getEffectiveValue("state",()=>this._state)}get activeTool(){return this._getEffectiveValue("activeTool",()=>this._activeTool)}get activePluginIds(){return this._getEffectiveValue("activePluginId",()=>this._activePluginUniqueIds)}get groupedActions(){let i=this._getEffectiveValue("availableCommandGroups",()=>[["selectionTools",this._selectionToolActions],["createTools",this._createToolActions],["undoRedo",this._undoRedoActions],["settings",this._settingsActions],["selectionSet",this._selectionSetActions]].map(([t,o])=>({name:t,commands:o,visible:o.length>0}))),e=this._effectiveGeometrySimplificationInProgress?i.map(t=>({...t,commands:t.commands.map(o=>({...o,disabled:!0}))})):i;return!this.visibleElements.geometrySimplificationActivityIndicator||!this._effectiveGeometrySimplificationInProgress?e:[...e,{name:"geometrySimplification",commands:[{active:!1,appearance:"transparent",disabled:!0,kind:"warning",labelKey:"processing",loading:!0,onClick:()=>{},renderAsAction:!0}],visible:!0}]}async create(i,e){await this._executeWhenReady(async()=>{this.cancelAll();let t=this.sketchViewModel;t&&await T(t.create(i,e))})}async _executeWhenReady(i){this._pendingCommandAbortController?.abort();let e=new AbortController;this._pendingCommandAbortController=e;try{await T((async()=>{this.sketchViewModel?.geometrySimplificationInProgress&&await Se(()=>!this.sketchViewModel?.geometrySimplificationInProgress,e.signal),e.signal.aborted||await i()})())}finally{this._pendingCommandAbortController===e&&(this._pendingCommandAbortController=void 0)}}toggleSettingsPopover(){this.settingsPopoverOpen=!this.settingsPopoverOpen}setCustomTools(i,e){this._customToolOptions=i??void 0;let t=this._activeCustomToolOptions;if(t){let o=this._customToolOptions?.find(s=>s.toolKey===t.toolKey);o?this._activeCustomToolOptions=o:this.cancelAll()}if(e?.length){let o=new Map;for(let s of e)ce(o,s.position,()=>[]).push(s);this._customActions=o}else this._customActions=void 0}cancelAll(){this._pendingCommandAbortController?.abort(),this._cancelSupportingOperations(),this.sketchViewModel?.cancel()}async update(i,e){await this._executeWhenReady(async()=>{let t=this.sketchViewModel;t&&await T(t.update(i,e))})}_activateDefaultSelectionTool(){this._executeWhenReady(()=>{this.cancelAll(),this.view?.focus()})}_cancelActiveOperation(){this._executeWhenReady(()=>this.cancelAll())}_cancelSketchOperation(){this._executeWhenReady(()=>this.sketchViewModel?.cancel())}_cancelSupportingOperations(){this.selectionViewModel.cancel(),this._activeCustomToolOptions=void 0}_activatePlugin(i){this._executeWhenReady(()=>{let e=this._activeCustomToolOptions!=null;this._cancelSupportingOperations();let t=this.sketchViewModel;if(t){if(e){t.cancel(),T(t.create(i));return}t.firstPluginWithSwappableLeaf?(t.replaceLeaf(i),this.view?.focus()):T(t.create(i))}})}_activateLegacyDrawTool(i,e,t){this._executeWhenReady(()=>{this._cancelSupportingOperations();let o=this.sketchViewModel;o&&(this._activeCustomToolOptions=t,T(o.create(i,e)))})}_activateSelectionTool(i){this._executeWhenReady(()=>{if(this._activeSelectionTool===i){this.selectionViewModel.cancel();return}this.cancelAll();let e={createTool:i==="lasso-selection"?"polygon":"rectangle",...i==="lasso-selection"?{mode:"hybrid",toolName:"lasso"}:{toolName:"rectangle"},type:"replace",selectOnComplete:!0};this.selectionViewModel.activate(e)&&this.view?.focus()})}_delete(){this._executeWhenReady(()=>this.sketchViewModel?.delete())}_duplicate(){this._executeWhenReady(()=>{this.sketchViewModel?.duplicate()})}_executeCustomAction(i){this._executeWhenReady(()=>i.onclick?.())}_redo(){this._executeWhenReady(()=>{this.sketchViewModel?.redo()})}_undo(){this._executeWhenReady(()=>{this.sketchViewModel?.undo()})}_customActionsToSketchActions(i){let e=this.state==="disabled";return i.map(t=>({active:t.active??!1,afterCreate:t.afterCreate,afterRemoved:t.afterRemoved,afterUpdate:t.afterUpdate,disabled:e||(t.disabled??!1),icon:t.icon,iconFlipRTL:t.flipRTL,id:t.id,labelKey:t.text,onClick:()=>this._executeCustomAction(t)}))}_pluginsToActions(i){let e=this.activePluginIds,t=this._activeCustomToolOptions,o=this.state==="disabled";return i.map(s=>({active:(e?.has(s.uniqueId)??!1)&&!t,icon:s.icon,disabled:o,labelKey:`digitizers.${s.localizationKey}`,onClick:()=>this._activatePlugin([s])}))}};d([p()],h.prototype,"_isEffectiveRenderStateFrozen",1);d([p()],h.prototype,"_effectiveGeometrySimplificationInProgress",2);d([p()],h.prototype,"_state",1);d([p()],h.prototype,"_customToolOptions",2);d([p()],h.prototype,"_activeCustomToolOptions",2);d([p()],h.prototype,"_customActions",2);d([p()],h.prototype,"selectionViewModel",2);d([p()],h.prototype,"_activeSelectionTool",1);d([p()],h.prototype,"_activePluginUniqueIds",1);d([p()],h.prototype,"_createToolActions",1);d([p()],h.prototype,"_shouldShowBackButton",1);d([p()],h.prototype,"_selectionToolActions",1);d([p()],h.prototype,"_settingsActions",1);d([p()],h.prototype,"_activeTool",1);d([p()],h.prototype,"_selectionCommands",1);d([p()],h.prototype,"_selectionSetActions",1);d([p()],h.prototype,"_undoRedoActions",1);d([p()],h.prototype,"sketchViewModel",2);d([p()],h.prototype,"visibleElements",2);d([p()],h.prototype,"view",2);d([p()],h.prototype,"settingsPopoverOpen",2);d([p()],h.prototype,"availableCreateTools",2);d([p()],h.prototype,"state",1);d([p()],h.prototype,"activeTool",1);d([p()],h.prototype,"activePluginIds",1);d([p()],h.prototype,"groupedActions",1);h=d([ke("components.sketch.SketchComponentViewModel")],h);var R=class extends j{#t;#e=!1;#i;constructor(e){if(super(e),e.type!==H.ELEMENT)throw new Error("nodeHooks() can only be used on elements")}render(e){return O}update(e,[t]){let o=e.element;if(!(o instanceof HTMLElement))throw new TypeError("nodeHooks() can only be used on HTMLElements");let s=this.#e?t.afterUpdate:t.afterCreate;return this.#t=o,this.#e=!0,this.#i=t,queueMicrotask(()=>{o.isConnected&&s?.(o)}),O}disconnected(){let e=this.#t,t=this.#i?.afterRemoved;!e||!t||queueMicrotask(()=>{e.isConnected||te(()=>t(e),{timeout:16})})}},ae=q(R),$e=new Set(["arcgis-map","arcgis-scene"]),Ve=8,$=class extends N{constructor(e){super(e),this.#t=new MutationObserver(()=>this.#c()),this.#e=new ResizeObserver(()=>this.#v()),this.#i=new ResizeObserver(([t])=>{if(!t)return;let o=this.component.layout==="horizontal"?t.contentRect.height:t.contentRect.width;o!==this.#s&&(this.#s=o,this.#v())}),this.#h=[],this.ref=t=>{this.#o!==t&&(this.#o=t,this.#a=void 0,this.#r=void 0,this.#c())},this.#u=()=>this.#c(),this.exports=void 0,e.listenOn(window,"resize",()=>this.#g()),this.onConnected(()=>this.#g()),this.onUpdated(()=>{(this.#d!==this.component.layout||this.#y!==this.component.toolbarKind)&&this.#c()}),this.onDisconnected(()=>this.#C()),this.onLifecycle(()=>y(()=>this.component.view?.attributionHeight,()=>{this.#g()},{initial:!0}))}#t;#e;#i;#l;#s;#n;#h;#m;#o;#a;#r;#d;#y;#p;#g(){queueMicrotask(()=>{this.component.el.isConnected&&this.#c()})}#c(){this.#y=this.component.toolbarKind;let e=this.#b();if(this.component.el.toggleAttribute("data-intrinsic-toolbar-sizing",!e),!e){this.#f(),this.#C();return}this.#w(e.toolbar),this.#T(e),this.#S(e),this.#v(e)}#b(){let e=this.component.el,t=e.parentElement,o=this.#o,s=e.assignedSlot;if(!t||!$e.has(t.localName)||!o||!s?.parentElement)return;let r=getComputedStyle(t).direction==="rtl"?"rtl":"ltr",c=he(e.slot,r);if(!c)return;let a=Array.from(t.children).filter(l=>l instanceof HTMLElement&&l.localName!=="arcgis-sketch");return{assignedSlot:s,content:a,direction:r,parent:t,position:c,toolbar:o}}#u;#w(e){this.#d!==this.component.layout&&(this.#s=void 0,this.#d=this.component.layout),this.#l!==e&&(this.#i.disconnect(),this.#l=e,this.#s=void 0,this.#i.observe(e))}#T(e){let t=e.assignedSlot;this.#n!==t&&(this.#n?.removeEventListener("slotchange",this.#u),this.#n=t,t.addEventListener("slotchange",this.#u)),this.#m!==e.parent&&(this.#t.disconnect(),this.#p?.(),this.#m=e.parent,this.#p=Y(e.parent,["dir"],()=>{this.#g()}),this.#t.observe(e.parent,{childList:!0,subtree:!1}))}#S(e){let t=[e.parent,...e.content];De(this.#h,t)||(this.#e.disconnect(),t.forEach(o=>this.#e.observe(o)),this.#h=t)}#v(e=this.#b()){if(!e){this.#f();return}let t=this.component.layout,o=e.parent.getBoundingClientRect(),s=Be({content:Ie(e),gap:Ve,layout:t,position:e.position,sameSlotReserve:ze(e.assignedSlot,this.component.el,t,e.assignedSlot.parentElement),toolbarBounds:e.toolbar.getBoundingClientRect(),viewBounds:o}),r=s;if(e.toolbar.toolbarKind==="floating"){let c=getComputedStyle(e.assignedSlot.parentElement.parentElement),a=Math.max(Number.parseFloat(c.marginLeft),Number.parseFloat(c.marginRight)),l=t==="horizontal"?window.innerWidth:window.innerHeight,g=t==="horizontal"?o.width:o.height,n=t==="vertical"?this.component.view?.attributionHeight??0:0;r=Math.max(0,Math.min(s,g-2*a-n,l-2*a))}this.#E(e.toolbar,t,s,r)}#E(e,t,o,s){o===this.#a&&s===e.allocatedLength&&t===this.#r||(this.#a=o,this.#r=t,e.allocatedLength=s,t==="horizontal"?(e.style.height="",e.style.maxHeight="",e.style.maxWidth=`${o}px`,e.style.width="fit-content"):(e.style.height="fit-content",e.style.maxHeight=`${o}px`,e.style.maxWidth="",e.style.width=""))}#f(){this.#o&&(this.#o.style.maxHeight="",this.#o.style.maxWidth="",this.#o.style.height="",this.#o.style.width="",this.#o.allocatedLength=void 0,this.#a=void 0,this.#r=void 0)}#C(){this.#t.disconnect(),this.#p?.(),this.#p=void 0,this.#e.disconnect(),this.#i.disconnect(),this.#l=void 0,this.#s=void 0,this.#h=[],this.#n?.removeEventListener("slotchange",this.#u),this.#n=void 0,this.#a=void 0,this.#r=void 0,this.#d=void 0,this.#m=void 0}};function Be({content:i,gap:e,layout:t,position:o,sameSlotReserve:s,toolbarBounds:r,viewBounds:c}){let a=x(c,t),l=x(r,t),g=re(o,t),n=g?l.start-a.start:a.end-l.end,u=0,m=!1;for(let S of i){if(re(S.position,t)===g)continue;let C=x(S.bounds,t);if(!(C.crossStart<l.crossEnd&&C.crossEnd>l.crossStart))continue;let k=g?a.end-C.start:C.end-a.start;u=Math.max(u,k),m=!0}let b=m?e:0;return Math.max(0,a.length-Math.max(0,n)-s-u-b)}function x(i,e){return e==="horizontal"?{start:i.left,end:i.right,length:i.width,crossStart:i.top,crossEnd:i.bottom}:{start:i.top,end:i.bottom,length:i.height,crossStart:i.left,crossEnd:i.right}}function re(i,e){return e==="horizontal"?i.endsWith("left"):i.startsWith("top")}function Ie(i){return i.content.flatMap(e=>{if(e.assignedSlot===i.assignedSlot)return[];let t=he(e.slot,i.direction);return t?[{bounds:e.getBoundingClientRect(),position:t}]:[]})}function De(i,e){return i.length===e.length&&i.every((t,o)=>t===e[o])}function ze(i,e,t,o){let s=getComputedStyle(o).flexDirection;if(!(t==="horizontal"?s.startsWith("row"):s.startsWith("column")))return 0;let r=i.assignedElements().filter(g=>g instanceof HTMLElement),c=r.indexOf(e);if(c<0)return 0;let a=getComputedStyle(e),l=s==="row"?Number.parseFloat(a.marginRight):s==="row-reverse"?Number.parseFloat(a.marginLeft):s==="column"?Number.parseFloat(a.marginBottom):Number.parseFloat(a.marginTop);return r.slice(c+1).reduce((g,n)=>{let u=n.getBoundingClientRect(),m=getComputedStyle(n),b=t==="horizontal"?u.width+Number.parseFloat(m.marginLeft)+Number.parseFloat(m.marginRight):u.height+Number.parseFloat(m.marginTop)+Number.parseFloat(m.marginBottom);return g+b},l)}function he(i,e){let[t,o]=i.split("-");if(t!=="bottom"&&t!=="top")return;let s=o==="start"?e==="ltr"?"left":"right":o==="end"?e==="ltr"?"right":"left":o;return s==="left"||s==="right"?`${t}-${s}`:void 0}var Fe=["bottom-end","bottom-start","bottom-left","bottom-right","top-end","top-start","top-left","top-right"],Ke=new Set(Fe),We=oe(i=>new Ee({...i,cancelUpdateOnClickAway:!0,creationMode:"continuous",textSymbol:new we({text:"hello world"}),useLegacyCreateTools:!1})),V=class extends J{constructor(){super(),this.#t=new h,this.#l=P(),this.#s=new $(this),this.#n=P(),this._defaultGraphicsLayer=null,this._messages=ie(),this.test={componentViewModel:this.#t},this._groupLayoutPriorityOverrides=new Map,this._contextualToolLocation="separate",this._refMap=_e(),this.viewModel=We(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.createGraphic=this.viewModel.createGraphic,this.creationMode=this.viewModel.creationMode,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultGraphicsLayerDisabled=!1,this.defaultUpdateOptions=this.viewModel.defaultUpdateOptions,this.geometrySimplificationInProgress=this.viewModel.geometrySimplificationInProgress,this.icon="pencil",this.label=this._messages?.componentLabel,this.labelOptions=this.viewModel.labelOptions,this.layer=this.viewModel.layer,this.layout="horizontal",this.pointSymbol=this.viewModel.pointSymbol,this.polygonSymbol=this.viewModel.polygonSymbol,this.polylineSymbol=this.viewModel.polylineSymbol,this.activeFillSymbol=this.viewModel.activeFillSymbol,this.activeLineSymbol=this.viewModel.activeLineSymbol,this.activeVertexSymbol=this.viewModel.activeVertexSymbol,this.activeCreateToolDrawMode=this.viewModel.activeCreateToolDrawMode,this.visualScale="m",this.snappingOptions=this.viewModel.snappingOptions,this.textSymbol=this.viewModel.textSymbol,this.toolbarKind="floating",this.tooltipOptions=this.viewModel.tooltipOptions,this.useViewOptions=this.viewModel.useViewOptions,this.valueOptions=this.viewModel.valueOptions,this.useLegacyCreateTools=this.viewModel.useLegacyCreateTools,this.updateOnGraphicClickDisabled=this.viewModel.updateOnGraphicClick,this.updateGraphics=this.viewModel.updateGraphics,this.activeTooltip=this.viewModel.activeTooltip,this.arcgisCreate=w(()=>this.viewModel,"create"),this.arcgisDelete=w(()=>this.viewModel,"delete"),this.arcgisDuplicate=w(()=>this.viewModel,"duplicate"),this.arcgisPropertyChange=ee()("activeTool","geometrySimplificationInProgress","state"),this.arcgisReady=U(),this.arcgisRedo=w(()=>this.viewModel,"redo"),this.arcgisUndo=w(()=>this.viewModel,"undo"),this.arcgisUpdate=w(()=>this.viewModel,"update"),Z(["slot"],()=>{this.requestUpdate()}),this.manager.onLifecycle(()=>[y(()=>this.el.view?.map,(e,t)=>{let o=this._defaultGraphicsLayer;o&&(t?.allLayers.includes(o)&&t.remove(o),o&&!e?.allLayers.includes(o)&&e?.add(o))}),y(()=>this.el.view,e=>{this.viewModel.view=e,this.#t.view=e??void 0},{initial:!0}),y(()=>this.viewModel,e=>{this.#t.sketchViewModel=e,this.viewModel.pluginManager.sketch=this},{initial:!0}),y(()=>this.#t.state,(e,t)=>{this.requestUpdate("state",t)},{initial:!0}),y(()=>this.#t.activeTool,()=>this.arcgisPropertyChange.emit({name:"activeTool"}),{sync:!0})]),this.manager.onDestroy(()=>{this._defaultGraphicsLayer&&this.el.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.el.view?.map?.remove(this._defaultGraphicsLayer),this._defaultGraphicsLayer?.destroy(),this._defaultGraphicsLayer=null,this.#t.destroy()})}static{this.properties={_groupLayoutPriorityOverrides:16,_contextualToolLocation:16,_refMap:16,viewModel:0,view:0,activeTool:32,autoDestroyDisabled:5,visibleElements:0,availableCreateTools:0,createGraphic:32,creationMode:1,defaultCreateOptions:0,defaultGraphicsLayerDisabled:5,defaultUpdateOptions:0,geometrySimplificationInProgress:36,hideCreateToolsCircle:5,hideCreateToolsMultipoint:5,hideCreateToolsPoint:5,hideCreateToolsPolygon:5,hideCreateToolsPolyline:5,hideCreateToolsRectangle:5,hideDuplicateButton:5,hideDeleteButton:5,hideSelectionCountLabel:5,hideLabelsToggle:5,hideSelectionToolsLassoSelection:5,hideSelectionToolsRectangleSelection:5,hideSettingsMenu:5,hideSinglePluginBackButton:5,hideSnappingControls:5,hideSnappingControlsElementsEnabledToggle:5,hideSnappingControlsElementsFeatureEnabledToggle:5,hideSnappingControlsElementsLayerList:5,hideSnappingControlsElementsSelfEnabledToggle:5,hideSnappingControlsElementsGridEnabledToggle:5,hideSnappingControlsElementsGridControls:5,hideSnappingControlsElementsGridControlsElementsColorSelection:5,hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle:5,hideSnappingControlsElementsGridControlsElementsLineIntervalInput:5,hideSnappingControlsElementsGridControlsElementsNumericInputs:5,hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning:5,hideSnappingControlsElementsGridControlsElementsPlacementButtons:5,hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle:5,hideTooltipsToggle:5,hideUndoRedoMenu:5,icon:1,label:1,labelOptions:0,layer:0,layout:3,pointSymbol:0,polygonSymbol:0,polylineSymbol:0,activeFillSymbol:0,activeLineSymbol:0,activeVertexSymbol:0,activeCreateToolDrawMode:1,referenceElement:1,relativePosition:1,scale:1,visualScale:1,showSnappingControlsElementsHeader:5,showCreateToolsFreehandPolygon:5,showCreateToolsFreehandPolyline:5,showCreateToolsText:5,hideGeometrySimplificationActivityIndicator:5,snappingOptions:0,state:32,textSymbol:0,toolbarKind:3,tooltipOptions:0,useViewOptions:5,valueOptions:0,useLegacyCreateTools:5,updateOnGraphicClickDisabled:5,cancelUpdateOnClickAwayDisabled:5,updateGraphics:32,activeTooltip:0}}static{this.styles=Ae}#t;get#e(){return this.#t.visibleElements}#i;#l;#s;#n;get activeTool(){return this.#t.activeTool}get visibleElements(){return this.#t.visibleElements}set visibleElements(e){this.#t.visibleElements=e}get availableCreateTools(){return this.#t.availableCreateTools}set availableCreateTools(e){this.#t.availableCreateTools=e}get hideCreateToolsCircle(){return!this.#e.createTools.circle}set hideCreateToolsCircle(e){this.#e.createTools.circle=!e}get hideCreateToolsMultipoint(){return!this.#e.createTools.multipoint}set hideCreateToolsMultipoint(e){this.#e.createTools.multipoint=!e}get hideCreateToolsPoint(){return!this.#e.createTools.point}set hideCreateToolsPoint(e){this.#e.createTools.point=!e}get hideCreateToolsPolygon(){return!this.#e.createTools.polygon}set hideCreateToolsPolygon(e){this.#e.createTools.polygon=!e}get hideCreateToolsPolyline(){return!this.#e.createTools.polyline}set hideCreateToolsPolyline(e){this.#e.createTools.polyline=!e}get hideCreateToolsRectangle(){return!this.#e.createTools.rectangle}set hideCreateToolsRectangle(e){this.#e.createTools.rectangle=!e}get hideDuplicateButton(){return!this.#e.duplicateButton}set hideDuplicateButton(e){this.#e.duplicateButton=!e}get hideDeleteButton(){return!this.#e.deleteButton}set hideDeleteButton(e){this.#e.deleteButton=!e}get hideSelectionCountLabel(){return!this.#e.selectionCountLabel}set hideSelectionCountLabel(e){this.#e.selectionCountLabel=!e}get hideLabelsToggle(){return!this.#e.labelsToggle}set hideLabelsToggle(e){this.#e.labelsToggle=!e}get hideSelectionToolsLassoSelection(){return!this.#e.selectionTools["lasso-selection"]}set hideSelectionToolsLassoSelection(e){this.#e.selectionTools["lasso-selection"]=!e}get hideSelectionToolsRectangleSelection(){return!this.#e.selectionTools["rectangle-selection"]}set hideSelectionToolsRectangleSelection(e){this.#e.selectionTools["rectangle-selection"]=!e}get hideSettingsMenu(){return!this.#e.settingsMenu}set hideSettingsMenu(e){this.#e.settingsMenu=!e}get hideSinglePluginBackButton(){return!this.#e.singlePluginBackButton}set hideSinglePluginBackButton(e){this.#e.singlePluginBackButton=!e}get hideSnappingControls(){return!this.#e.snappingControls}set hideSnappingControls(e){this.#e.snappingControls=!e}get hideSnappingControlsElementsEnabledToggle(){return!this.#e.snappingControlsElements.enabledToggle}set hideSnappingControlsElementsEnabledToggle(e){this.#e.snappingControlsElements.enabledToggle=!e}get hideSnappingControlsElementsFeatureEnabledToggle(){return!this.#e.snappingControlsElements.featureEnabledToggle}set hideSnappingControlsElementsFeatureEnabledToggle(e){this.#e.snappingControlsElements.featureEnabledToggle=!e}get hideSnappingControlsElementsLayerList(){return!this.#e.snappingControlsElements.layerList}set hideSnappingControlsElementsLayerList(e){this.#e.snappingControlsElements.layerList=!e}get hideSnappingControlsElementsSelfEnabledToggle(){return!this.#e.snappingControlsElements.selfEnabledToggle}set hideSnappingControlsElementsSelfEnabledToggle(e){this.#e.snappingControlsElements.selfEnabledToggle=!e}get hideSnappingControlsElementsGridEnabledToggle(){return!this.#e.snappingControlsElements.gridEnabledToggle}set hideSnappingControlsElementsGridEnabledToggle(e){this.#e.snappingControlsElements.gridEnabledToggle=!e}get hideSnappingControlsElementsGridControls(){return!this.#e.snappingControlsElements.gridControls}set hideSnappingControlsElementsGridControls(e){this.#e.snappingControlsElements.gridControls=!e}get hideSnappingControlsElementsGridControlsElementsColorSelection(){return!this.#e.snappingControlsElements.gridControlsElements.colorSelection}set hideSnappingControlsElementsGridControlsElementsColorSelection(e){this.#e.snappingControlsElements.gridControlsElements.colorSelection=!e}get hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(){return!this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle}set hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(e){this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle=!e}get hideSnappingControlsElementsGridControlsElementsLineIntervalInput(){return!this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput}set hideSnappingControlsElementsGridControlsElementsLineIntervalInput(e){this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput=!e}get hideSnappingControlsElementsGridControlsElementsNumericInputs(){return!this.#e.snappingControlsElements.gridControlsElements.numericInputs}set hideSnappingControlsElementsGridControlsElementsNumericInputs(e){this.#e.snappingControlsElements.gridControlsElements.numericInputs=!e}get hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(){return!this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning}set hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(e){this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning=!e}get hideSnappingControlsElementsGridControlsElementsPlacementButtons(){return!this.#e.snappingControlsElements.gridControlsElements.placementButtons}set hideSnappingControlsElementsGridControlsElementsPlacementButtons(e){this.#e.snappingControlsElements.gridControlsElements.placementButtons=!e}get hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(){return!this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle}set hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(e){this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle=!e}get hideTooltipsToggle(){return!this.#e.tooltipsToggle}set hideTooltipsToggle(e){this.#e.tooltipsToggle=!e}get hideUndoRedoMenu(){return!this.#e.undoRedoMenu}set hideUndoRedoMenu(e){this.#e.undoRedoMenu=!e}get relativePosition(){let e=this.el.slot||this.el.closest("arcgis-expand")?.slot||"";return this.#i??(Ke.has(e)?e:ne.topRight)}set relativePosition(e){this.#i=e}get scale(){return this.visualScale}set scale(e){this.visualScale=e}get showSnappingControlsElementsHeader(){return this.#e.snappingControlsElements.header}set showSnappingControlsElementsHeader(e){this.#e.snappingControlsElements.header=e}get showCreateToolsFreehandPolygon(){return this.#e.createTools.freehandPolygon}set showCreateToolsFreehandPolygon(e){this.#e.createTools.freehandPolygon=e}get showCreateToolsFreehandPolyline(){return this.#e.createTools.freehandPolyline}set showCreateToolsFreehandPolyline(e){this.#e.createTools.freehandPolyline=e}get showCreateToolsText(){return this.#e.createTools.text}set showCreateToolsText(e){this.#e.createTools.text=e}get hideGeometrySimplificationActivityIndicator(){return!this.#e.geometrySimplificationActivityIndicator}set hideGeometrySimplificationActivityIndicator(e){this.#e.geometrySimplificationActivityIndicator=!e}get state(){return this.#t.state}get cancelUpdateOnClickAwayDisabled(){return!this.viewModel.cancelUpdateOnClickAway}set cancelUpdateOnClickAwayDisabled(e){this.viewModel.cancelUpdateOnClickAway=!e}async addGraphic(e){this.viewModel.addGraphic(e)}async addGraphics(e){this.viewModel.addGraphics(e)}async cancel(){this.#t.cancelAll()}async complete(){this.viewModel.complete()}async create(e,t){await this.#t.create(e,t)}async delete(){this.viewModel.delete()}async destroy(){await this.manager.destroy()}async dismissFloatingElements(){this.#t.settingsPopoverOpen=!1}async duplicate(){this.viewModel.duplicate()}async hasGraphic(e){return this.viewModel.hasGraphic(e)}async removeAllGraphics(){this.viewModel.removeAllGraphics()}async removeGraphic(e){this.viewModel.removeGraphic(e)}async removeGraphics(e){this.viewModel.removeGraphics(e)}async redo(){this.viewModel.redo()}async canRedo(){return this.viewModel.canRedo()}async setContextualToolLocation(e){this._contextualToolLocation=e}async setCustomTools(e,t){this.#t.setCustomTools(e,t)}async setGroupCollapsePriorities(e){this._groupLayoutPriorityOverrides=e||new Map}async triggerUpdate(e,t){await this.#t.update(e,t)}async place(e){this.viewModel.place(e)}async undo(){this.#t.sketchViewModel?.undo()}async canUndo(){return this.viewModel.canUndo()}connectedCallback(){super.connectedCallback(),this.defaultGraphicsLayerDisabled||(this._defaultGraphicsLayer?.destroyed&&(this._defaultGraphicsLayer=null),this._defaultGraphicsLayer??=new Ce({title:"Sketch Layer"}),this.layer=this._defaultGraphicsLayer,this.view?.map?.add(this.layer),this.viewModel.layer=this._defaultGraphicsLayer)}disconnectedCallback(){this._defaultGraphicsLayer&&this.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.view?.map?.remove(this._defaultGraphicsLayer),this.cancel(),super.disconnectedCallback()}render(){let e=this._refMap.get("settings")?.value?.actionElement,t=this.#t.groupedActions,{visualScale:o,layout:s,toolbarKind:r,relativePosition:c,_contextualToolLocation:a}=this,l=t.find(({name:n})=>n==="selectionSet"),g=t.filter(({name:n})=>n!=="selectionSet");return v`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${r} .relativePosition=${c} .scale=${o} tooltip-appearance=calcite ${E(this.#s.ref)}><arcgis-toolbar ${E(this.#l)}>${_({hidden:!l?.visible||a!=="inline",children:this._renderActionGroup(l)})}${g.map(n=>this._renderActionGroup(n))}${_({hidden:!l?.visible||a!=="inline-end",children:this._renderActionGroup(l)})}</arcgis-toolbar>${_({hidden:!l?.visible||a!=="separate",children:v`<arcgis-toolbar>${this._renderActionGroup(l)}</arcgis-toolbar>`})}</arcgis-toolbar-stack></div>${_({hidden:this.hideSettingsMenu,children:v`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} .heading=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#l.value?.barElement} @arcgisPropertyChange=${n=>this.#t.settingsPopoverOpen=n.target.open??!1}>${this._renderSettings()}</arcgis-view-popover>`})}`}_renderSettings(){let{autoDestroyDisabled:e,hideLabelsToggle:t,hideSnappingControls:o,hideTooltipsToggle:s,showSnappingControlsElementsHeader:r,useViewOptions:c,view:a,viewModel:l}=this;return v`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${c||s} .directionMode=${l.valueOptions.directionMode} .labelsEnabled=${l.labelOptions.enabled} .tooltipsEnabled=${l.tooltipOptions.enabled} @arcgisPropertyChange=${g=>{g.stopPropagation();let{labelsEnabled:n,tooltipsEnabled:u,directionMode:m}=g.currentTarget,b=this.viewModel;switch(g.detail.name){case"labelsEnabled":b.labelOptions.enabled=n;break;case"directionMode":b.valueOptions.directionMode=m;break;case"tooltipsEnabled":b.tooltipOptions.enabled=u;break}}}></arcgis-sketch-tooltip-controls>${!c&&!o?v`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${a} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${l.snappingOptions} .showHeader=${r} @arcgisPropertyChange=${g=>g.stopPropagation()}></arcgis-snapping-controls>`:void 0}</div>`}_renderActionGroup({visible:e,commands:t,name:o}){if(!e||!t.length)return;let{defaultPriority:s,groupKind:r,overflowLabel:c,preferEndSlot:a}=Ge[o],l=(o==="geometrySimplification"?void 0:this._groupLayoutPriorityOverrides.get(o))??s,g=t.map(u=>this._renderCommand(u)),n=le(`more.${c}`,this._messages);switch(r){case"more-button":return v`<arcgis-toolbar-group .priority=${l} .preferEndSlot=${a}><arcgis-toolbar-more-button .overflowActionLabel=${n} .priority=${l}>${g}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;case"split-button":return v`<arcgis-toolbar-group .priority=${l} .preferEndSlot=${a}><arcgis-toolbar-split-button .overflowActionLabel=${n} .priority=${l}>${g}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;case"actions":return v`<arcgis-toolbar-group .priority=${l} .preferEndSlot=${a}>${g}</arcgis-toolbar-group>`}}_renderCommand({active:e,afterCreate:t,afterRemoved:o,afterUpdate:s,appearance:r,icon:c,disabled:a,id:l,kind:g,labelKey:n,labelParameters:u,loading:m,tooltipKey:b,iconFlipRTL:S,onClick:C,refKey:k,textEnabled:B,renderAsAction:de}){let{_messages:I,_refMap:pe,layout:D}=this,L=le(n,I),A=L===void 0?n:u?fe(L,u):L,z=I?.[b]??A,F=k?ce(pe,k,P):this.#n,K={afterCreate:t,afterRemoved:o,afterUpdate:s};return de?v`<arcgis-toolbar-action .active=${e} .appearance=${r} .disabled=${a} .icon=${c} .iconFlipRtl=${S} id=${l??G} .kind=${g} .loading=${m} .labelText=${D==="horizontal"?A:""} .textEnabled=${B} .tooltipText=${D==="horizontal"&&B?"":z} @arcgisToolbarItemSelected=${C} ${ae(K)} ${E(F)}></arcgis-toolbar-action>`:v`<arcgis-toolbar-item .active=${e} .disabled=${a} .icon=${c} id=${l??G} .iconFlipRtl=${S} .labelText=${A} .tooltipText=${z} @arcgisItemSelected=${C} ${ae(K)} ${E(F)}></arcgis-toolbar-item>`}};X("arcgis-sketch",V);return V},"intl","layers/GraphicsLayer","symbols/TextSymbol","core/reactiveUtils","widgets/Sketch/SketchViewModel","applications/Components/featureUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","widgets/Sketch/VisibleElements","widgets/support/SelectionToolbar/SelectionToolbarViewModel",a,b,c,d,e,f,g)
2
+ import{b as ne}from"./TN5C3MSL.js";import g from"./HP32VJJ5.js";import"./IZ46HAUJ.js";import{a as _}from"./POKO37D3.js";import f from"./6CRONNHI.js";import"./VJVKFKSG.js";import e from"./X4FA56YR.js";import{a as ie}from"./7EMK74ZF.js";import d from"./NBGFUVYW.js";import c from"./76ZJGD75.js";import b from"./PPURK2BH.js";import{d as Z,h as ee}from"./6N7PM73F.js";import"./7IHIG427.js";import a from"./2IYRSXZS.js";import"./QUZTFUWM.js";import{f as Y}from"./P2GMODLP.js";import{D as H,E as q,M as j,N as P,O as E,P as J,Q,U as G,X,a as W,b as v,e as O,x as U,z as N}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{substitute:fe},Ce,we,{watch:y,on:Te,whenOnce:Se},Ee,{getOrCreateMapValue:ce,createReactiveMap:_e},Me,{property:p,subclass:ke},{ignoreAbortErrors:T},Pe,Le,,,,w,oe,{f:te},se])=>{var M=Q({defaultAssetPath:"https://js.arcgis.com/5.2.4/common-components/",hydratedAttribute:"hydrated"}),{customElement:He,getAssetPath:ye,setAssetPath:be}=M;M.t=void 0;M.o=void 0;M.c=void 0;M.r=void 0;var f={ForceCollapse:0,Default:1,Medium:100,High:200,Max:300,NeverCollapse:1e3};function le(i,e){let t=e;for(let o of i.split(".")){if(typeof t!="object"||t===null)return;t=Reflect.get(t,o)}return typeof t=="string"?t:void 0}var Ae=W`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px;-webkit-user-select:none;user-select:none;pointer-events:initial;padding:var(--calcite-space-sm);arcgis-sketch-tooltip-controls+arcgis-snapping-controls{border-block-start:1px solid var(--calcite-color-border-3)}}:host{pointer-events:none}.toolbar-container{block-size:100%;min-block-size:0;min-inline-size:0}arcgis-toolbar-stack[layout=vertical]{block-size:100cqh;min-block-size:100%;max-block-size:100%}:host([data-intrinsic-toolbar-sizing]){min-inline-size:0;min-block-size:0;max-inline-size:100%;max-block-size:100%;arcgis-toolbar-stack[layout=vertical]{block-size:100%}}:host([data-intrinsic-toolbar-sizing][layout="vertical"]){display:grid;grid-template-columns:minmax(min-content,1fr);grid-template-rows:minmax(0,1fr);inline-size:fit-content;block-size:100%;.toolbar-container{block-size:auto}.toolbar-container,arcgis-view-popover{grid-area:1 / 1}}:host([data-intrinsic-toolbar-sizing][layout="vertical"][toolbar-kind="floating"]){block-size:auto}`,Oe={point:"pin",polyline:"line",polygon:"polygon",rectangle:"rectangle",circle:"circle",multipoint:"pins",mesh:"i3d-building",freehandPolygon:"freehand-area",freehandPolyline:"freehand",text:"text"},Ge={selectionTools:{defaultPriority:f.Default,groupKind:"split-button",overflowLabel:"selection"},selectionSet:{defaultPriority:f.High,groupKind:"actions"},createTools:{defaultPriority:f.High,groupKind:"more-button",overflowLabel:"drawing"},undoRedo:{defaultPriority:f.Medium,groupKind:"split-button",overflowLabel:"action",preferEndSlot:!0},settings:{defaultPriority:f.Max,groupKind:"more-button",overflowLabel:"action",preferEndSlot:!0},geometrySimplification:{defaultPriority:f.Default,groupKind:"actions",preferEndSlot:!0}},xe=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,d=(i,e,t,o)=>{for(var s=o>1?void 0:o?Re(e,t):e,r=i.length-1,c;r>=0;r--)(c=i[r])&&(s=(o?c(e,t,s):c(s))||s);return o&&s&&xe(e,t,s),s},h=class extends Me{constructor(i){super(i),this._effectiveRenderStateCache=new Map,this._effectiveGeometrySimplificationInProgress=!1,this.visibleElements=new Pe,this.settingsPopoverOpen=!1,this.availableCreateTools=["point","polyline","freehandPolyline","polygon","freehandPolygon","rectangle","circle"]}initialize(){this.selectionViewModel??=new Le({persistSelection:!1}),this.addHandles([y(()=>this.sketchViewModel,(i,e)=>{i!==e&&this._effectiveRenderStateCache.clear()},{sync:!0}),se({getLoading:()=>this.sketchViewModel?.geometrySimplificationInProgress??!1,setEffectiveLoading:i=>{this._effectiveGeometrySimplificationInProgress=i}}),y(()=>this.view,i=>{this.selectionViewModel.view=i},{initial:!0,sync:!0}),y(()=>this.sketchViewModel?.layer,i=>this.selectionViewModel.sources=i?[i]:[],{initial:!0,sync:!0}),this.selectionViewModel.on("complete",({selection:i})=>{let{sketchViewModel:e}=this;if(i.length&&e){let{defaultUpdateOptions:t}=e,{tool:o}=t;this.update(i,{...t,tool:i.length>1&&o==="reshape"?"transform":o})}}),y(()=>this.selectionViewModel.activeOperation,i=>{i&&(this.sketchViewModel?.cancel(),this._activeCustomToolOptions=void 0)},{sync:!0}),Te(()=>this.sketchViewModel,"create",i=>{i.state==="complete"&&this.sketchViewModel?.creationMode!=="continuous"&&(this._activeCustomToolOptions=void 0)}),y(()=>this.visibleElements.settingsMenu,i=>{i||(this.settingsPopoverOpen=!1)},{sync:!0})])}destroy(){this._pendingCommandAbortController?.abort(),this.selectionViewModel.destroy(),this.sketchViewModel=void 0}get _isEffectiveRenderStateFrozen(){let{sketchViewModel:i}=this;return!!(i?.toolTransitionInProgress||i?.geometrySimplificationInProgress)}_getEffectiveValue(i,e){if(!this._isEffectiveRenderStateFrozen||!this._effectiveRenderStateCache.has(i)){let t=e();return this._effectiveRenderStateCache.set(i,t),t}return this._effectiveRenderStateCache.get(i)}get _state(){return this.sketchViewModel?.state??"disabled"}get test(){return{activeCustomToolOptions:this._activeCustomToolOptions,activeSelectionTool:this._activeSelectionTool,selectionViewModel:this.selectionViewModel}}get _activeSelectionTool(){switch(this.selectionViewModel.activeOperation?.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";default:return}}get _activePluginUniqueIds(){let i=this.sketchViewModel?.activePluginConfigurations.filter(e=>!e.hidden).map(e=>e.uniqueId);return new Set(i??[])}get _createToolActions(){let{sketchViewModel:i}=this;if(!i)return[];let e=i.effectiveAvailablePlugins,t=this.state==="disabled",o=this.visibleElements.createTools,s=this.activeTool,r=this._activeCustomToolOptions,c=r||!i.firstPluginWithSwappableLeaf?this._customToolOptions:[],a=i.rootPlugins,l=c?.map(n=>({active:n===r,disabled:t,icon:n.icon,labelKey:n.label,onClick:n===r?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n.toolName,n.createOptions,n)}))??[];if(r&&a)return[...this._pluginsToActions(a),...l];if(e?.length&&this.view?.type!=="3d")return[...this._pluginsToActions(e),...l];let g=this.view?.type==="3d";return[...this.availableCreateTools?.filter(n=>g&&n==="multipoint"?!1:n==="mesh"?!0:o[n])?.map(n=>({active:n===s,disabled:t,icon:Oe[n],labelKey:`draw.${n}`,onClick:n===s?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n)}))??[],...l]}get _shouldShowBackButton(){let i=this.sketchViewModel?.firstPluginWithSwappableLeaf,e=this.sketchViewModel?.rootPlugins,t=this._activeCustomToolOptions;return!!(this.sketchViewModel?.multiplePluginsActive&&i&&e&&!(e.length<2&&e.includes(i)&&!this.visibleElements.singlePluginBackButton)&&!t)}get _selectionToolActions(){return this._shouldShowBackButton?[{active:!1,disabled:this.state==="disabled",icon:"chevron-left",iconFlipRTL:!0,labelKey:"back",onClick:()=>this._cancelActiveOperation()}]:this._selectionCommands}get _settingsActions(){let i=this._customActions?.get("settings-before"),e=this._customActions?.get("settings-after"),t=this.visibleElements.settingsMenu,o=[];return!i?.length&&!e?.length&&!t||(i&&o.push(...this._customActionsToSketchActions(i)),t&&o.push({icon:"gear",active:this.settingsPopoverOpen,disabled:this.state==="disabled",labelKey:"settings.heading",tooltipKey:"settings.heading",refKey:"settings",onClick:()=>this.toggleSettingsPopover()}),e&&o.push(...this._customActionsToSketchActions(e))),o}get _activeTool(){let i=this.selectionViewModel.activeOperation;if(i)switch(i.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";case"default":return"custom-selection"}if(!this.sketchViewModel)return;let{availableCreateTools:e}=this,{activeTool:t,activeCreateToolDrawMode:o}=this.sketchViewModel;return t==="polygon"&&o==="freehand"&&e?.includes("freehandPolygon")?"freehandPolygon":t==="polyline"&&o==="freehand"&&e?.includes("freehandPolyline")?"freehandPolyline":t??void 0}get _selectionCommands(){let{state:i,visibleElements:e,_activeSelectionTool:t,_customActions:o}=this,s=this.state==="disabled",r=[];this.sketchViewModel?.updateOnGraphicClick!==!1&&r.push({active:i==="ready"&&this._activeSelectionTool==null,disabled:s,icon:"cursor",labelKey:"selectFeature",onClick:()=>this._activateDefaultSelectionTool()});let c=e.selectionTools;c["rectangle-selection"]&&r.push({active:t==="rectangle-selection",disabled:s,icon:"cursor-marquee",labelKey:"rectangleSelection",onClick:()=>this._activateSelectionTool("rectangle-selection")}),c["lasso-selection"]&&r.push({active:t==="lasso-selection",disabled:s,icon:"lasso-select",labelKey:"lassoSelection",onClick:()=>this._activateSelectionTool("lasso-selection")});let a=o?.get("selection-toolbar");return a&&r.push(...this._customActionsToSketchActions(a)),r}get _selectionSetActions(){let i=this.sketchViewModel?.updateGraphics.length??0;if(!i)return[];let e=this.state==="disabled",t=[],o=this._customActions?.get("before-selection-set"),s=this._customActions?.get("after-selection-set");return this.visibleElements.selectionCountLabel&&t.push({active:!1,appearance:"outline",disabled:e,icon:"selection-x",kind:"brand",labelKey:"deselectCount",labelParameters:{count:i},textEnabled:!0,renderAsAction:!0,onClick:()=>this._cancelSketchOperation()}),o&&t.push(...this._customActionsToSketchActions(o)),this.visibleElements.duplicateButton&&t.push({active:!1,disabled:e,icon:"copy",renderAsAction:!0,labelKey:i>1?"duplicateFeatures":"duplicateFeature",onClick:()=>this._duplicate()}),this.visibleElements.deleteButton&&t.push({active:!1,disabled:e,icon:"trash",kind:"danger",renderAsAction:!0,labelKey:i>1?"deleteFeatures":"deleteFeature",onClick:()=>this._delete()}),s&&t.push(...this._customActionsToSketchActions(s)),t}get _undoRedoActions(){return this.visibleElements.undoRedoMenu?[{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canUndo(),icon:"undo",labelKey:"undo",iconFlipRTL:!0,onClick:()=>this._undo()},{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canRedo(),icon:"redo",labelKey:"redo",iconFlipRTL:!0,onClick:()=>this._redo()}]:[]}get state(){return this._getEffectiveValue("state",()=>this._state)}get activeTool(){return this._getEffectiveValue("activeTool",()=>this._activeTool)}get activePluginIds(){return this._getEffectiveValue("activePluginId",()=>this._activePluginUniqueIds)}get groupedActions(){let i=this._getEffectiveValue("availableCommandGroups",()=>[["selectionTools",this._selectionToolActions],["createTools",this._createToolActions],["undoRedo",this._undoRedoActions],["settings",this._settingsActions],["selectionSet",this._selectionSetActions]].map(([t,o])=>({name:t,commands:o,visible:o.length>0}))),e=this._effectiveGeometrySimplificationInProgress?i.map(t=>({...t,commands:t.commands.map(o=>({...o,disabled:!0}))})):i;return!this.visibleElements.geometrySimplificationActivityIndicator||!this._effectiveGeometrySimplificationInProgress?e:[...e,{name:"geometrySimplification",commands:[{active:!1,appearance:"transparent",disabled:!0,kind:"warning",labelKey:"processing",loading:!0,onClick:()=>{},renderAsAction:!0}],visible:!0}]}async create(i,e){await this._executeWhenReady(async()=>{this.cancelAll();let t=this.sketchViewModel;t&&await T(t.create(i,e))})}async _executeWhenReady(i){this._pendingCommandAbortController?.abort();let e=new AbortController;this._pendingCommandAbortController=e;try{await T((async()=>{this.sketchViewModel?.geometrySimplificationInProgress&&await Se(()=>!this.sketchViewModel?.geometrySimplificationInProgress,e.signal),e.signal.aborted||await i()})())}finally{this._pendingCommandAbortController===e&&(this._pendingCommandAbortController=void 0)}}toggleSettingsPopover(){this.settingsPopoverOpen=!this.settingsPopoverOpen}setCustomTools(i,e){this._customToolOptions=i??void 0;let t=this._activeCustomToolOptions;if(t){let o=this._customToolOptions?.find(s=>s.toolKey===t.toolKey);o?this._activeCustomToolOptions=o:this.cancelAll()}if(e?.length){let o=new Map;for(let s of e)ce(o,s.position,()=>[]).push(s);this._customActions=o}else this._customActions=void 0}cancelAll(){this._pendingCommandAbortController?.abort(),this._cancelSupportingOperations(),this.sketchViewModel?.cancel()}async update(i,e){await this._executeWhenReady(async()=>{let t=this.sketchViewModel;t&&await T(t.update(i,e))})}_activateDefaultSelectionTool(){this._executeWhenReady(()=>{this.cancelAll(),this.view?.focus()})}_cancelActiveOperation(){this._executeWhenReady(()=>this.cancelAll())}_cancelSketchOperation(){this._executeWhenReady(()=>this.sketchViewModel?.cancel())}_cancelSupportingOperations(){this.selectionViewModel.cancel(),this._activeCustomToolOptions=void 0}_activatePlugin(i){this._executeWhenReady(()=>{let e=this._activeCustomToolOptions!=null;this._cancelSupportingOperations();let t=this.sketchViewModel;if(t){if(e){t.cancel(),T(t.create(i));return}t.firstPluginWithSwappableLeaf?(t.replaceLeaf(i),this.view?.focus()):T(t.create(i))}})}_activateLegacyDrawTool(i,e,t){this._executeWhenReady(()=>{this._cancelSupportingOperations();let o=this.sketchViewModel;o&&(this._activeCustomToolOptions=t,T(o.create(i,e)))})}_activateSelectionTool(i){this._executeWhenReady(()=>{if(this._activeSelectionTool===i){this.selectionViewModel.cancel();return}this.cancelAll();let e={createTool:i==="lasso-selection"?"polygon":"rectangle",...i==="lasso-selection"?{mode:"hybrid",toolName:"lasso"}:{toolName:"rectangle"},type:"replace",selectOnComplete:!0};this.selectionViewModel.activate(e)&&this.view?.focus()})}_delete(){this._executeWhenReady(()=>this.sketchViewModel?.delete())}_duplicate(){this._executeWhenReady(()=>{this.sketchViewModel?.duplicate()})}_executeCustomAction(i){this._executeWhenReady(()=>i.onclick?.())}_redo(){this._executeWhenReady(()=>{this.sketchViewModel?.redo()})}_undo(){this._executeWhenReady(()=>{this.sketchViewModel?.undo()})}_customActionsToSketchActions(i){let e=this.state==="disabled";return i.map(t=>({active:t.active??!1,afterCreate:t.afterCreate,afterRemoved:t.afterRemoved,afterUpdate:t.afterUpdate,disabled:e||(t.disabled??!1),icon:t.icon,iconFlipRTL:t.flipRTL,id:t.id,labelKey:t.text,onClick:()=>this._executeCustomAction(t)}))}_pluginsToActions(i){let e=this.activePluginIds,t=this._activeCustomToolOptions,o=this.state==="disabled";return i.map(s=>({active:(e?.has(s.uniqueId)??!1)&&!t,icon:s.icon,disabled:o,labelKey:`digitizers.${s.localizationKey}`,onClick:()=>this._activatePlugin([s])}))}};d([p()],h.prototype,"_isEffectiveRenderStateFrozen",1);d([p()],h.prototype,"_effectiveGeometrySimplificationInProgress",2);d([p()],h.prototype,"_state",1);d([p()],h.prototype,"_customToolOptions",2);d([p()],h.prototype,"_activeCustomToolOptions",2);d([p()],h.prototype,"_customActions",2);d([p()],h.prototype,"selectionViewModel",2);d([p()],h.prototype,"_activeSelectionTool",1);d([p()],h.prototype,"_activePluginUniqueIds",1);d([p()],h.prototype,"_createToolActions",1);d([p()],h.prototype,"_shouldShowBackButton",1);d([p()],h.prototype,"_selectionToolActions",1);d([p()],h.prototype,"_settingsActions",1);d([p()],h.prototype,"_activeTool",1);d([p()],h.prototype,"_selectionCommands",1);d([p()],h.prototype,"_selectionSetActions",1);d([p()],h.prototype,"_undoRedoActions",1);d([p()],h.prototype,"sketchViewModel",2);d([p()],h.prototype,"visibleElements",2);d([p()],h.prototype,"view",2);d([p()],h.prototype,"settingsPopoverOpen",2);d([p()],h.prototype,"availableCreateTools",2);d([p()],h.prototype,"state",1);d([p()],h.prototype,"activeTool",1);d([p()],h.prototype,"activePluginIds",1);d([p()],h.prototype,"groupedActions",1);h=d([ke("components.sketch.SketchComponentViewModel")],h);var R=class extends j{#t;#e=!1;#i;constructor(e){if(super(e),e.type!==H.ELEMENT)throw new Error("nodeHooks() can only be used on elements")}render(e){return O}update(e,[t]){let o=e.element;if(!(o instanceof HTMLElement))throw new TypeError("nodeHooks() can only be used on HTMLElements");let s=this.#e?t.afterUpdate:t.afterCreate;return this.#t=o,this.#e=!0,this.#i=t,queueMicrotask(()=>{o.isConnected&&s?.(o)}),O}disconnected(){let e=this.#t,t=this.#i?.afterRemoved;!e||!t||queueMicrotask(()=>{e.isConnected||te(()=>t(e),{timeout:16})})}},ae=q(R),$e=new Set(["arcgis-map","arcgis-scene"]),Ve=8,$=class extends N{constructor(e){super(e),this.#t=new MutationObserver(()=>this.#c()),this.#e=new ResizeObserver(()=>this.#v()),this.#i=new ResizeObserver(([t])=>{if(!t)return;let o=this.component.layout==="horizontal"?t.contentRect.height:t.contentRect.width;o!==this.#s&&(this.#s=o,this.#v())}),this.#h=[],this.ref=t=>{this.#o!==t&&(this.#o=t,this.#a=void 0,this.#r=void 0,this.#c())},this.#u=()=>this.#c(),this.exports=void 0,e.listenOn(window,"resize",()=>this.#g()),this.onConnected(()=>this.#g()),this.onUpdated(()=>{(this.#d!==this.component.layout||this.#y!==this.component.toolbarKind)&&this.#c()}),this.onDisconnected(()=>this.#C()),this.onLifecycle(()=>y(()=>this.component.view?.attributionHeight,()=>{this.#g()},{initial:!0}))}#t;#e;#i;#l;#s;#n;#h;#m;#o;#a;#r;#d;#y;#p;#g(){queueMicrotask(()=>{this.component.el.isConnected&&this.#c()})}#c(){this.#y=this.component.toolbarKind;let e=this.#b();if(this.component.el.toggleAttribute("data-intrinsic-toolbar-sizing",!e),!e){this.#f(),this.#C();return}this.#w(e.toolbar),this.#T(e),this.#S(e),this.#v(e)}#b(){let e=this.component.el,t=e.parentElement,o=this.#o,s=e.assignedSlot;if(!t||!$e.has(t.localName)||!o||!s?.parentElement)return;let r=getComputedStyle(t).direction==="rtl"?"rtl":"ltr",c=he(e.slot,r);if(!c)return;let a=Array.from(t.children).filter(l=>l instanceof HTMLElement&&l.localName!=="arcgis-sketch");return{assignedSlot:s,content:a,direction:r,parent:t,position:c,toolbar:o}}#u;#w(e){this.#d!==this.component.layout&&(this.#s=void 0,this.#d=this.component.layout),this.#l!==e&&(this.#i.disconnect(),this.#l=e,this.#s=void 0,this.#i.observe(e))}#T(e){let t=e.assignedSlot;this.#n!==t&&(this.#n?.removeEventListener("slotchange",this.#u),this.#n=t,t.addEventListener("slotchange",this.#u)),this.#m!==e.parent&&(this.#t.disconnect(),this.#p?.(),this.#m=e.parent,this.#p=Y(e.parent,["dir"],()=>{this.#g()}),this.#t.observe(e.parent,{childList:!0,subtree:!1}))}#S(e){let t=[e.parent,...e.content];De(this.#h,t)||(this.#e.disconnect(),t.forEach(o=>this.#e.observe(o)),this.#h=t)}#v(e=this.#b()){if(!e){this.#f();return}let t=this.component.layout,o=e.parent.getBoundingClientRect(),s=Be({content:Ie(e),gap:Ve,layout:t,position:e.position,sameSlotReserve:ze(e.assignedSlot,this.component.el,t,e.assignedSlot.parentElement),toolbarBounds:e.toolbar.getBoundingClientRect(),viewBounds:o}),r=s;if(e.toolbar.toolbarKind==="floating"){let c=getComputedStyle(e.assignedSlot.parentElement.parentElement),a=Math.max(Number.parseFloat(c.marginLeft),Number.parseFloat(c.marginRight)),l=t==="horizontal"?window.innerWidth:window.innerHeight,g=t==="horizontal"?o.width:o.height,n=t==="vertical"?this.component.view?.attributionHeight??0:0;r=Math.max(0,Math.min(s,g-2*a-n,l-2*a))}this.#E(e.toolbar,t,s,r)}#E(e,t,o,s){o===this.#a&&s===e.allocatedLength&&t===this.#r||(this.#a=o,this.#r=t,e.allocatedLength=s,t==="horizontal"?(e.style.height="",e.style.maxHeight="",e.style.maxWidth=`${o}px`,e.style.width="fit-content"):(e.style.height="fit-content",e.style.maxHeight=`${o}px`,e.style.maxWidth="",e.style.width=""))}#f(){this.#o&&(this.#o.style.maxHeight="",this.#o.style.maxWidth="",this.#o.style.height="",this.#o.style.width="",this.#o.allocatedLength=void 0,this.#a=void 0,this.#r=void 0)}#C(){this.#t.disconnect(),this.#p?.(),this.#p=void 0,this.#e.disconnect(),this.#i.disconnect(),this.#l=void 0,this.#s=void 0,this.#h=[],this.#n?.removeEventListener("slotchange",this.#u),this.#n=void 0,this.#a=void 0,this.#r=void 0,this.#d=void 0,this.#m=void 0}};function Be({content:i,gap:e,layout:t,position:o,sameSlotReserve:s,toolbarBounds:r,viewBounds:c}){let a=x(c,t),l=x(r,t),g=re(o,t),n=g?l.start-a.start:a.end-l.end,u=0,m=!1;for(let S of i){if(re(S.position,t)===g)continue;let C=x(S.bounds,t);if(!(C.crossStart<l.crossEnd&&C.crossEnd>l.crossStart))continue;let k=g?a.end-C.start:C.end-a.start;u=Math.max(u,k),m=!0}let b=m?e:0;return Math.max(0,a.length-Math.max(0,n)-s-u-b)}function x(i,e){return e==="horizontal"?{start:i.left,end:i.right,length:i.width,crossStart:i.top,crossEnd:i.bottom}:{start:i.top,end:i.bottom,length:i.height,crossStart:i.left,crossEnd:i.right}}function re(i,e){return e==="horizontal"?i.endsWith("left"):i.startsWith("top")}function Ie(i){return i.content.flatMap(e=>{if(e.assignedSlot===i.assignedSlot)return[];let t=he(e.slot,i.direction);return t?[{bounds:e.getBoundingClientRect(),position:t}]:[]})}function De(i,e){return i.length===e.length&&i.every((t,o)=>t===e[o])}function ze(i,e,t,o){let s=getComputedStyle(o).flexDirection;if(!(t==="horizontal"?s.startsWith("row"):s.startsWith("column")))return 0;let r=i.assignedElements().filter(g=>g instanceof HTMLElement),c=r.indexOf(e);if(c<0)return 0;let a=getComputedStyle(e),l=s==="row"?Number.parseFloat(a.marginRight):s==="row-reverse"?Number.parseFloat(a.marginLeft):s==="column"?Number.parseFloat(a.marginBottom):Number.parseFloat(a.marginTop);return r.slice(c+1).reduce((g,n)=>{let u=n.getBoundingClientRect(),m=getComputedStyle(n),b=t==="horizontal"?u.width+Number.parseFloat(m.marginLeft)+Number.parseFloat(m.marginRight):u.height+Number.parseFloat(m.marginTop)+Number.parseFloat(m.marginBottom);return g+b},l)}function he(i,e){let[t,o]=i.split("-");if(t!=="bottom"&&t!=="top")return;let s=o==="start"?e==="ltr"?"left":"right":o==="end"?e==="ltr"?"right":"left":o;return s==="left"||s==="right"?`${t}-${s}`:void 0}var Fe=["bottom-end","bottom-start","bottom-left","bottom-right","top-end","top-start","top-left","top-right"],Ke=new Set(Fe),We=oe(i=>new Ee({...i,cancelUpdateOnClickAway:!0,creationMode:"continuous",textSymbol:new we({text:"text"}),useLegacyCreateTools:!1})),V=class extends J{constructor(){super(),this.#t=new h,this.#l=P(),this.#s=new $(this),this.#n=P(),this._defaultGraphicsLayer=null,this._messages=ie(),this.test={componentViewModel:this.#t},this._groupLayoutPriorityOverrides=new Map,this._contextualToolLocation="separate",this._refMap=_e(),this.viewModel=We(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.createGraphic=this.viewModel.createGraphic,this.creationMode=this.viewModel.creationMode,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultGraphicsLayerDisabled=!1,this.defaultUpdateOptions=this.viewModel.defaultUpdateOptions,this.geometrySimplificationInProgress=this.viewModel.geometrySimplificationInProgress,this.icon="pencil",this.label=this._messages?.componentLabel,this.labelOptions=this.viewModel.labelOptions,this.layer=this.viewModel.layer,this.layout="horizontal",this.pointSymbol=this.viewModel.pointSymbol,this.polygonSymbol=this.viewModel.polygonSymbol,this.polylineSymbol=this.viewModel.polylineSymbol,this.activeFillSymbol=this.viewModel.activeFillSymbol,this.activeLineSymbol=this.viewModel.activeLineSymbol,this.activeVertexSymbol=this.viewModel.activeVertexSymbol,this.activeCreateToolDrawMode=this.viewModel.activeCreateToolDrawMode,this.visualScale="m",this.snappingOptions=this.viewModel.snappingOptions,this.textSymbol=this.viewModel.textSymbol,this.toolbarKind="floating",this.tooltipOptions=this.viewModel.tooltipOptions,this.useViewOptions=this.viewModel.useViewOptions,this.valueOptions=this.viewModel.valueOptions,this.useLegacyCreateTools=this.viewModel.useLegacyCreateTools,this.updateOnGraphicClickDisabled=this.viewModel.updateOnGraphicClick,this.updateGraphics=this.viewModel.updateGraphics,this.activeTooltip=this.viewModel.activeTooltip,this.arcgisCreate=w(()=>this.viewModel,"create"),this.arcgisDelete=w(()=>this.viewModel,"delete"),this.arcgisDuplicate=w(()=>this.viewModel,"duplicate"),this.arcgisPropertyChange=ee()("activeTool","geometrySimplificationInProgress","state"),this.arcgisReady=U(),this.arcgisRedo=w(()=>this.viewModel,"redo"),this.arcgisUndo=w(()=>this.viewModel,"undo"),this.arcgisUpdate=w(()=>this.viewModel,"update"),Z(["slot"],()=>{this.requestUpdate()}),this.manager.onLifecycle(()=>[y(()=>this.el.view?.map,(e,t)=>{let o=this._defaultGraphicsLayer;o&&(t?.allLayers.includes(o)&&t.remove(o),o&&!e?.allLayers.includes(o)&&e?.add(o))}),y(()=>this.el.view,e=>{this.viewModel.view=e,this.#t.view=e??void 0},{initial:!0}),y(()=>this.viewModel,e=>{this.#t.sketchViewModel=e,this.viewModel.pluginManager.sketch=this},{initial:!0}),y(()=>this.#t.state,(e,t)=>{this.requestUpdate("state",t)},{initial:!0}),y(()=>this.#t.activeTool,()=>this.arcgisPropertyChange.emit({name:"activeTool"}),{sync:!0})]),this.manager.onDestroy(()=>{this._defaultGraphicsLayer&&this.el.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.el.view?.map?.remove(this._defaultGraphicsLayer),this._defaultGraphicsLayer?.destroy(),this._defaultGraphicsLayer=null,this.#t.destroy()})}static{this.properties={_groupLayoutPriorityOverrides:16,_contextualToolLocation:16,_refMap:16,viewModel:0,view:0,activeTool:32,autoDestroyDisabled:5,visibleElements:0,availableCreateTools:0,createGraphic:32,creationMode:1,defaultCreateOptions:0,defaultGraphicsLayerDisabled:5,defaultUpdateOptions:0,geometrySimplificationInProgress:36,hideCreateToolsCircle:5,hideCreateToolsMultipoint:5,hideCreateToolsPoint:5,hideCreateToolsPolygon:5,hideCreateToolsPolyline:5,hideCreateToolsRectangle:5,hideDuplicateButton:5,hideDeleteButton:5,hideSelectionCountLabel:5,hideLabelsToggle:5,hideSelectionToolsLassoSelection:5,hideSelectionToolsRectangleSelection:5,hideSettingsMenu:5,hideSinglePluginBackButton:5,hideSnappingControls:5,hideSnappingControlsElementsEnabledToggle:5,hideSnappingControlsElementsFeatureEnabledToggle:5,hideSnappingControlsElementsLayerList:5,hideSnappingControlsElementsSelfEnabledToggle:5,hideSnappingControlsElementsGridEnabledToggle:5,hideSnappingControlsElementsGridControls:5,hideSnappingControlsElementsGridControlsElementsColorSelection:5,hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle:5,hideSnappingControlsElementsGridControlsElementsLineIntervalInput:5,hideSnappingControlsElementsGridControlsElementsNumericInputs:5,hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning:5,hideSnappingControlsElementsGridControlsElementsPlacementButtons:5,hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle:5,hideTooltipsToggle:5,hideUndoRedoMenu:5,icon:1,label:1,labelOptions:0,layer:0,layout:3,pointSymbol:0,polygonSymbol:0,polylineSymbol:0,activeFillSymbol:0,activeLineSymbol:0,activeVertexSymbol:0,activeCreateToolDrawMode:1,referenceElement:1,relativePosition:1,scale:1,visualScale:1,showSnappingControlsElementsHeader:5,showCreateToolsFreehandPolygon:5,showCreateToolsFreehandPolyline:5,showCreateToolsText:5,hideGeometrySimplificationActivityIndicator:5,snappingOptions:0,state:32,textSymbol:0,toolbarKind:3,tooltipOptions:0,useViewOptions:5,valueOptions:0,useLegacyCreateTools:5,updateOnGraphicClickDisabled:5,cancelUpdateOnClickAwayDisabled:5,updateGraphics:32,activeTooltip:0}}static{this.styles=Ae}#t;get#e(){return this.#t.visibleElements}#i;#l;#s;#n;get activeTool(){return this.#t.activeTool}get visibleElements(){return this.#t.visibleElements}set visibleElements(e){this.#t.visibleElements=e}get availableCreateTools(){return this.#t.availableCreateTools}set availableCreateTools(e){this.#t.availableCreateTools=e}get hideCreateToolsCircle(){return!this.#e.createTools.circle}set hideCreateToolsCircle(e){this.#e.createTools.circle=!e}get hideCreateToolsMultipoint(){return!this.#e.createTools.multipoint}set hideCreateToolsMultipoint(e){this.#e.createTools.multipoint=!e}get hideCreateToolsPoint(){return!this.#e.createTools.point}set hideCreateToolsPoint(e){this.#e.createTools.point=!e}get hideCreateToolsPolygon(){return!this.#e.createTools.polygon}set hideCreateToolsPolygon(e){this.#e.createTools.polygon=!e}get hideCreateToolsPolyline(){return!this.#e.createTools.polyline}set hideCreateToolsPolyline(e){this.#e.createTools.polyline=!e}get hideCreateToolsRectangle(){return!this.#e.createTools.rectangle}set hideCreateToolsRectangle(e){this.#e.createTools.rectangle=!e}get hideDuplicateButton(){return!this.#e.duplicateButton}set hideDuplicateButton(e){this.#e.duplicateButton=!e}get hideDeleteButton(){return!this.#e.deleteButton}set hideDeleteButton(e){this.#e.deleteButton=!e}get hideSelectionCountLabel(){return!this.#e.selectionCountLabel}set hideSelectionCountLabel(e){this.#e.selectionCountLabel=!e}get hideLabelsToggle(){return!this.#e.labelsToggle}set hideLabelsToggle(e){this.#e.labelsToggle=!e}get hideSelectionToolsLassoSelection(){return!this.#e.selectionTools["lasso-selection"]}set hideSelectionToolsLassoSelection(e){this.#e.selectionTools["lasso-selection"]=!e}get hideSelectionToolsRectangleSelection(){return!this.#e.selectionTools["rectangle-selection"]}set hideSelectionToolsRectangleSelection(e){this.#e.selectionTools["rectangle-selection"]=!e}get hideSettingsMenu(){return!this.#e.settingsMenu}set hideSettingsMenu(e){this.#e.settingsMenu=!e}get hideSinglePluginBackButton(){return!this.#e.singlePluginBackButton}set hideSinglePluginBackButton(e){this.#e.singlePluginBackButton=!e}get hideSnappingControls(){return!this.#e.snappingControls}set hideSnappingControls(e){this.#e.snappingControls=!e}get hideSnappingControlsElementsEnabledToggle(){return!this.#e.snappingControlsElements.enabledToggle}set hideSnappingControlsElementsEnabledToggle(e){this.#e.snappingControlsElements.enabledToggle=!e}get hideSnappingControlsElementsFeatureEnabledToggle(){return!this.#e.snappingControlsElements.featureEnabledToggle}set hideSnappingControlsElementsFeatureEnabledToggle(e){this.#e.snappingControlsElements.featureEnabledToggle=!e}get hideSnappingControlsElementsLayerList(){return!this.#e.snappingControlsElements.layerList}set hideSnappingControlsElementsLayerList(e){this.#e.snappingControlsElements.layerList=!e}get hideSnappingControlsElementsSelfEnabledToggle(){return!this.#e.snappingControlsElements.selfEnabledToggle}set hideSnappingControlsElementsSelfEnabledToggle(e){this.#e.snappingControlsElements.selfEnabledToggle=!e}get hideSnappingControlsElementsGridEnabledToggle(){return!this.#e.snappingControlsElements.gridEnabledToggle}set hideSnappingControlsElementsGridEnabledToggle(e){this.#e.snappingControlsElements.gridEnabledToggle=!e}get hideSnappingControlsElementsGridControls(){return!this.#e.snappingControlsElements.gridControls}set hideSnappingControlsElementsGridControls(e){this.#e.snappingControlsElements.gridControls=!e}get hideSnappingControlsElementsGridControlsElementsColorSelection(){return!this.#e.snappingControlsElements.gridControlsElements.colorSelection}set hideSnappingControlsElementsGridControlsElementsColorSelection(e){this.#e.snappingControlsElements.gridControlsElements.colorSelection=!e}get hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(){return!this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle}set hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(e){this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle=!e}get hideSnappingControlsElementsGridControlsElementsLineIntervalInput(){return!this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput}set hideSnappingControlsElementsGridControlsElementsLineIntervalInput(e){this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput=!e}get hideSnappingControlsElementsGridControlsElementsNumericInputs(){return!this.#e.snappingControlsElements.gridControlsElements.numericInputs}set hideSnappingControlsElementsGridControlsElementsNumericInputs(e){this.#e.snappingControlsElements.gridControlsElements.numericInputs=!e}get hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(){return!this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning}set hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(e){this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning=!e}get hideSnappingControlsElementsGridControlsElementsPlacementButtons(){return!this.#e.snappingControlsElements.gridControlsElements.placementButtons}set hideSnappingControlsElementsGridControlsElementsPlacementButtons(e){this.#e.snappingControlsElements.gridControlsElements.placementButtons=!e}get hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(){return!this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle}set hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(e){this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle=!e}get hideTooltipsToggle(){return!this.#e.tooltipsToggle}set hideTooltipsToggle(e){this.#e.tooltipsToggle=!e}get hideUndoRedoMenu(){return!this.#e.undoRedoMenu}set hideUndoRedoMenu(e){this.#e.undoRedoMenu=!e}get relativePosition(){let e=this.el.slot||this.el.closest("arcgis-expand")?.slot||"";return this.#i??(Ke.has(e)?e:ne.topRight)}set relativePosition(e){this.#i=e}get scale(){return this.visualScale}set scale(e){this.visualScale=e}get showSnappingControlsElementsHeader(){return this.#e.snappingControlsElements.header}set showSnappingControlsElementsHeader(e){this.#e.snappingControlsElements.header=e}get showCreateToolsFreehandPolygon(){return this.#e.createTools.freehandPolygon}set showCreateToolsFreehandPolygon(e){this.#e.createTools.freehandPolygon=e}get showCreateToolsFreehandPolyline(){return this.#e.createTools.freehandPolyline}set showCreateToolsFreehandPolyline(e){this.#e.createTools.freehandPolyline=e}get showCreateToolsText(){return this.#e.createTools.text}set showCreateToolsText(e){this.#e.createTools.text=e}get hideGeometrySimplificationActivityIndicator(){return!this.#e.geometrySimplificationActivityIndicator}set hideGeometrySimplificationActivityIndicator(e){this.#e.geometrySimplificationActivityIndicator=!e}get state(){return this.#t.state}get cancelUpdateOnClickAwayDisabled(){return!this.viewModel.cancelUpdateOnClickAway}set cancelUpdateOnClickAwayDisabled(e){this.viewModel.cancelUpdateOnClickAway=!e}async addGraphic(e){this.viewModel.addGraphic(e)}async addGraphics(e){this.viewModel.addGraphics(e)}async cancel(){this.#t.cancelAll()}async complete(){this.viewModel.complete()}async create(e,t){await this.#t.create(e,t)}async delete(){this.viewModel.delete()}async destroy(){await this.manager.destroy()}async dismissFloatingElements(){this.#t.settingsPopoverOpen=!1}async duplicate(){this.viewModel.duplicate()}async hasGraphic(e){return this.viewModel.hasGraphic(e)}async removeAllGraphics(){this.viewModel.removeAllGraphics()}async removeGraphic(e){this.viewModel.removeGraphic(e)}async removeGraphics(e){this.viewModel.removeGraphics(e)}async redo(){this.viewModel.redo()}async canRedo(){return this.viewModel.canRedo()}async setContextualToolLocation(e){this._contextualToolLocation=e}async setCustomTools(e,t){this.#t.setCustomTools(e,t)}async setGroupCollapsePriorities(e){this._groupLayoutPriorityOverrides=e||new Map}async triggerUpdate(e,t){await this.#t.update(e,t)}async place(e){this.viewModel.place(e)}async undo(){this.#t.sketchViewModel?.undo()}async canUndo(){return this.viewModel.canUndo()}connectedCallback(){super.connectedCallback(),this.defaultGraphicsLayerDisabled||(this._defaultGraphicsLayer?.destroyed&&(this._defaultGraphicsLayer=null),this._defaultGraphicsLayer??=new Ce({title:"Sketch Layer"}),this.layer=this._defaultGraphicsLayer,this.view?.map?.add(this.layer),this.viewModel.layer=this._defaultGraphicsLayer)}disconnectedCallback(){this._defaultGraphicsLayer&&this.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.view?.map?.remove(this._defaultGraphicsLayer),this.cancel(),super.disconnectedCallback()}render(){let e=this._refMap.get("settings")?.value?.actionElement,t=this.#t.groupedActions,{visualScale:o,layout:s,toolbarKind:r,relativePosition:c,_contextualToolLocation:a}=this,l=t.find(({name:n})=>n==="selectionSet"),g=t.filter(({name:n})=>n!=="selectionSet");return v`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${r} .relativePosition=${c} .scale=${o} tooltip-appearance=calcite ${E(this.#s.ref)}><arcgis-toolbar ${E(this.#l)}>${_({hidden:!l?.visible||a!=="inline",children:this._renderActionGroup(l)})}${g.map(n=>this._renderActionGroup(n))}${_({hidden:!l?.visible||a!=="inline-end",children:this._renderActionGroup(l)})}</arcgis-toolbar>${_({hidden:!l?.visible||a!=="separate",children:v`<arcgis-toolbar>${this._renderActionGroup(l)}</arcgis-toolbar>`})}</arcgis-toolbar-stack></div>${_({hidden:this.hideSettingsMenu,children:v`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} .heading=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#l.value?.barElement} @arcgisPropertyChange=${n=>this.#t.settingsPopoverOpen=n.target.open??!1}>${this._renderSettings()}</arcgis-view-popover>`})}`}_renderSettings(){let{autoDestroyDisabled:e,hideLabelsToggle:t,hideSnappingControls:o,hideTooltipsToggle:s,showSnappingControlsElementsHeader:r,useViewOptions:c,view:a,viewModel:l}=this;return v`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${c||s} .directionMode=${l.valueOptions.directionMode} .labelsEnabled=${l.labelOptions.enabled} .tooltipsEnabled=${l.tooltipOptions.enabled} @arcgisPropertyChange=${g=>{g.stopPropagation();let{labelsEnabled:n,tooltipsEnabled:u,directionMode:m}=g.currentTarget,b=this.viewModel;switch(g.detail.name){case"labelsEnabled":b.labelOptions.enabled=n;break;case"directionMode":b.valueOptions.directionMode=m;break;case"tooltipsEnabled":b.tooltipOptions.enabled=u;break}}}></arcgis-sketch-tooltip-controls>${!c&&!o?v`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${a} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${l.snappingOptions} .showHeader=${r} @arcgisPropertyChange=${g=>g.stopPropagation()}></arcgis-snapping-controls>`:void 0}</div>`}_renderActionGroup({visible:e,commands:t,name:o}){if(!e||!t.length)return;let{defaultPriority:s,groupKind:r,overflowLabel:c,preferEndSlot:a}=Ge[o],l=(o==="geometrySimplification"?void 0:this._groupLayoutPriorityOverrides.get(o))??s,g=t.map(u=>this._renderCommand(u)),n=le(`more.${c}`,this._messages);switch(r){case"more-button":return v`<arcgis-toolbar-group .priority=${l} .preferEndSlot=${a}><arcgis-toolbar-more-button .overflowActionLabel=${n} .priority=${l}>${g}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;case"split-button":return v`<arcgis-toolbar-group .priority=${l} .preferEndSlot=${a}><arcgis-toolbar-split-button .overflowActionLabel=${n} .priority=${l}>${g}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;case"actions":return v`<arcgis-toolbar-group .priority=${l} .preferEndSlot=${a}>${g}</arcgis-toolbar-group>`}}_renderCommand({active:e,afterCreate:t,afterRemoved:o,afterUpdate:s,appearance:r,icon:c,disabled:a,id:l,kind:g,labelKey:n,labelParameters:u,loading:m,tooltipKey:b,iconFlipRTL:S,onClick:C,refKey:k,textEnabled:B,renderAsAction:de}){let{_messages:I,_refMap:pe,layout:D}=this,L=le(n,I),A=L===void 0?n:u?fe(L,u):L,z=I?.[b]??A,F=k?ce(pe,k,P):this.#n,K={afterCreate:t,afterRemoved:o,afterUpdate:s};return de?v`<arcgis-toolbar-action .active=${e} .appearance=${r} .disabled=${a} .icon=${c} .iconFlipRtl=${S} id=${l??G} .kind=${g} .loading=${m} .labelText=${D==="horizontal"?A:""} .textEnabled=${B} .tooltipText=${D==="horizontal"&&B?"":z} @arcgisToolbarItemSelected=${C} ${ae(K)} ${E(F)}></arcgis-toolbar-action>`:v`<arcgis-toolbar-item .active=${e} .disabled=${a} .icon=${c} id=${l??G} .iconFlipRtl=${S} .labelText=${A} .tooltipText=${z} @arcgisItemSelected=${C} ${ae(K)} ${E(F)}></arcgis-toolbar-item>`}};X("arcgis-sketch",V);return V},"intl","layers/GraphicsLayer","symbols/TextSymbol","core/reactiveUtils","widgets/Sketch/SketchViewModel","applications/Components/featureUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","widgets/Sketch/VisibleElements","widgets/support/SelectionToolbar/SelectionToolbarViewModel",a,b,c,d,e,f,g)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import b from"./22YQ2I4Q.js";import a from"./TMJX7DFH.js";import"./7EMK74ZF.js";import"./6N7PM73F.js";import"./7IHIG427.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([,a])=>{return a},a,b)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import a from"./TULJ7Y32.js";import"./HP2P5OYN.js";import"./7EMK74ZF.js";import"./6N7PM73F.js";import"./7IHIG427.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([a])=>{return a},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as g}from"./ZJ2AYHW6.js";import{a as r}from"./P2A4UHL6.js";import{N as u,O as o,P as l,R as d,X as h,b as i}from"./4GPS2BM4.js";export default $arcgis.t(([{createReactiveMap:v},{watch:b},{substitute:p}])=>{var c=class extends l{constructor(){super(...arguments),this._associationFeaturesIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._associationFeaturesIntersectionObserverNode=u(),this._currentFeaturePage=1,this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,associatedFeatureCount:s,featuresPerPage:n,currentFeaturePage:a}=this;e==="ready"&&t&&s>=n*a&&this.currentFeaturePage++},this._isFeatureCountNoticeOpen=!0,this._messages=r({name:"utility-network-associations",blocking:!0}),this._messagesCommon=r({name:"common",blocking:!0}),this._tooltipReferenceCallbacks=new Map,this.associationViewModels=new Map,this.featuresPerPage=50,this.maxFeatureCount=1e3,this.showAllEnabled=!1,this.state="ready",this.tooltipReferenceMap=v()}static{this.properties={associatedFeatureCount:32,associationViewModels:0,currentFeaturePage:9,endIndex:32,featuresPerPage:9,maxFeatureCount:9,parentFeatureViewModel:0,selectedLayer:0,showAllEnabled:5,state:1,tooltipReferenceMap:0}}get associatedFeatureCount(){let e=this.associationViewModels,t=this.selectedLayer?e.get(this.selectedLayer):null;return t?t.length:0}get currentFeaturePage(){return this._currentFeaturePage}set currentFeaturePage(e){let{featuresPerPage:t,associatedFeatureCount:s}=this,n=Math.ceil(s/t)||1,a=Math.max(Math.min(e,n),1);this._currentFeaturePage=a}get endIndex(){let{currentFeaturePage:e,featuresPerPage:t,maxFeatureCount:s}=this;return Math.min(e*t,s)}disconnectedCallback(){this._associationFeaturesIntersectionObserver.disconnect(),this._tooltipReferenceCallbacks.clear(),this.tooltipReferenceMap.clear(),super.disconnectedCallback()}loaded(){this.manager.onLifecycle(()=>[b(()=>[this.state,this.showAllEnabled,this._associationFeaturesIntersectionObserverNode],()=>{this._handleAssociationFeaturesObserverChange()},{initial:!0})])}getConnectivityTooltip(e){let{_messages:t}=this;switch(e){case"connectivity":case"junction-junction-connectivity":return t.associationsJunctionJunction;case"junction-edge-from-connectivity":return t.associationsJunctionEdgeFrom;case"junction-edge-midspan-connectivity":return t.associationsJunctionEdgeMidspan;case"junction-edge-to-connectivity":return t.associationsJunctionEdgeTo;default:return""}}_getTooltipReferenceCallback(e){let t=this._tooltipReferenceCallbacks.get(e);return t||(t=s=>{s?this.tooltipReferenceMap.set(e,s):(this.tooltipReferenceMap.delete(e),this._tooltipReferenceCallbacks.delete(e))},this._tooltipReferenceCallbacks.set(e,t)),t}_handleAssociationFeaturesObserverChange(){this._unobserveAssociationFeaturesObserver();let{state:e,showAllEnabled:t}=this;this._associationFeaturesIntersectionObserverNode.value&&e==="ready"&&t&&this._associationFeaturesIntersectionObserver.observe(this._associationFeaturesIntersectionObserverNode.value)}_unobserveAssociationFeaturesObserver(){this._associationFeaturesIntersectionObserverNode.value&&this._associationFeaturesIntersectionObserver.unobserve(this._associationFeaturesIntersectionObserverNode.value)}_renderConnectivityIcon(e,t){let s;switch(e){case"junction-edge-from-connectivity":s="connection-end-left";break;case"junction-edge-to-connectivity":s="connection-end-right";break;case"junction-edge-midspan-connectivity":s="connection-middle";break;default:s="connection-to-connection"}return i`<calcite-icon .icon=${s} scale=s slot=content-start ${o(this._getTooltipReferenceCallback(t))}></calcite-icon>`}_renderFeatureCountWarning(){let{_messages:e,associatedFeatureCount:t,maxFeatureCount:s}=this,n=p(e.associationsLimitNoticeMessage??"",{number:s}),a=t>s,m=e.associationsLimitNoticeTitle??"";return a?i`<calcite-notice class=${d(this._isFeatureCountNoticeOpen?"notice-container":"")} closable icon=information kind=info open scale=s width=full @calciteNoticeBeforeOpen=${()=>this._isFeatureCountNoticeOpen=!0} @calciteNoticeClose=${()=>this._isFeatureCountNoticeOpen=!1}><div slot=title>${m}</div><div slot=message>${n}</div></calcite-notice>`:null}_renderFeatureObserver(){return i`<div class="feature-observer" ${o(this._associationFeaturesIntersectionObserverNode)}></div>`}_renderLoading(){return g("loading-container",i`<div class="loading-container">${this._renderLoadingIcon()}</div>`)}_renderLoadingIcon(){let e=this._messagesCommon.loading??"";return i`<calcite-loader inline .label=${e}></calcite-loader>`}};h("arcgis-utility-network-association-list",c);return c},"applications/Components/featureUtils","core/reactiveUtils","intl")
2
+ import{a as g}from"./HP2P5OYN.js";import{a as r}from"./7EMK74ZF.js";import{N as u,O as o,P as l,R as d,X as h,b as i}from"./33CM77ZT.js";export default $arcgis.t(([{createReactiveMap:v},{watch:b},{substitute:p}])=>{var c=class extends l{constructor(){super(...arguments),this._associationFeaturesIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._associationFeaturesIntersectionObserverNode=u(),this._currentFeaturePage=1,this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,associatedFeatureCount:s,featuresPerPage:n,currentFeaturePage:a}=this;e==="ready"&&t&&s>=n*a&&this.currentFeaturePage++},this._isFeatureCountNoticeOpen=!0,this._messages=r({name:"utility-network-associations",blocking:!0}),this._messagesCommon=r({name:"common",blocking:!0}),this._tooltipReferenceCallbacks=new Map,this.associationViewModels=new Map,this.featuresPerPage=50,this.maxFeatureCount=1e3,this.showAllEnabled=!1,this.state="ready",this.tooltipReferenceMap=v()}static{this.properties={associatedFeatureCount:32,associationViewModels:0,currentFeaturePage:9,endIndex:32,featuresPerPage:9,maxFeatureCount:9,parentFeatureViewModel:0,selectedLayer:0,showAllEnabled:5,state:1,tooltipReferenceMap:0}}get associatedFeatureCount(){let e=this.associationViewModels,t=this.selectedLayer?e.get(this.selectedLayer):null;return t?t.length:0}get currentFeaturePage(){return this._currentFeaturePage}set currentFeaturePage(e){let{featuresPerPage:t,associatedFeatureCount:s}=this,n=Math.ceil(s/t)||1,a=Math.max(Math.min(e,n),1);this._currentFeaturePage=a}get endIndex(){let{currentFeaturePage:e,featuresPerPage:t,maxFeatureCount:s}=this;return Math.min(e*t,s)}disconnectedCallback(){this._associationFeaturesIntersectionObserver.disconnect(),this._tooltipReferenceCallbacks.clear(),this.tooltipReferenceMap.clear(),super.disconnectedCallback()}loaded(){this.manager.onLifecycle(()=>[b(()=>[this.state,this.showAllEnabled,this._associationFeaturesIntersectionObserverNode],()=>{this._handleAssociationFeaturesObserverChange()},{initial:!0})])}getConnectivityTooltip(e){let{_messages:t}=this;switch(e){case"connectivity":case"junction-junction-connectivity":return t.associationsJunctionJunction;case"junction-edge-from-connectivity":return t.associationsJunctionEdgeFrom;case"junction-edge-midspan-connectivity":return t.associationsJunctionEdgeMidspan;case"junction-edge-to-connectivity":return t.associationsJunctionEdgeTo;default:return""}}_getTooltipReferenceCallback(e){let t=this._tooltipReferenceCallbacks.get(e);return t||(t=s=>{s?this.tooltipReferenceMap.set(e,s):(this.tooltipReferenceMap.delete(e),this._tooltipReferenceCallbacks.delete(e))},this._tooltipReferenceCallbacks.set(e,t)),t}_handleAssociationFeaturesObserverChange(){this._unobserveAssociationFeaturesObserver();let{state:e,showAllEnabled:t}=this;this._associationFeaturesIntersectionObserverNode.value&&e==="ready"&&t&&this._associationFeaturesIntersectionObserver.observe(this._associationFeaturesIntersectionObserverNode.value)}_unobserveAssociationFeaturesObserver(){this._associationFeaturesIntersectionObserverNode.value&&this._associationFeaturesIntersectionObserver.unobserve(this._associationFeaturesIntersectionObserverNode.value)}_renderConnectivityIcon(e,t){let s;switch(e){case"junction-edge-from-connectivity":s="connection-end-left";break;case"junction-edge-to-connectivity":s="connection-end-right";break;case"junction-edge-midspan-connectivity":s="connection-middle";break;default:s="connection-to-connection"}return i`<calcite-icon .icon=${s} scale=s slot=content-start ${o(this._getTooltipReferenceCallback(t))}></calcite-icon>`}_renderFeatureCountWarning(){let{_messages:e,associatedFeatureCount:t,maxFeatureCount:s}=this,n=p(e.associationsLimitNoticeMessage??"",{number:s}),a=t>s,m=e.associationsLimitNoticeTitle??"";return a?i`<calcite-notice class=${d(this._isFeatureCountNoticeOpen?"notice-container":"")} closable icon=information kind=info open scale=s width=full @calciteNoticeBeforeOpen=${()=>this._isFeatureCountNoticeOpen=!0} @calciteNoticeClose=${()=>this._isFeatureCountNoticeOpen=!1}><div slot=title>${m}</div><div slot=message>${n}</div></calcite-notice>`:null}_renderFeatureObserver(){return i`<div class="feature-observer" ${o(this._associationFeaturesIntersectionObserverNode)}></div>`}_renderLoading(){return g("loading-container",i`<div class="loading-container">${this._renderLoadingIcon()}</div>`)}_renderLoadingIcon(){let e=this._messagesCommon.loading??"";return i`<calcite-loader inline .label=${e}></calcite-loader>`}};h("arcgis-utility-network-association-list",c);return c},"applications/Components/featureUtils","core/reactiveUtils","intl")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as g}from"./O7RSAJOS.js";import{p as l}from"./4GPS2BM4.js";export default $arcgis.t(([c,{getZonedDateTimeParts:y,offsetDate:T,truncateDate:D}])=>{var f={count:10};function x(e){return b(e)&&e.interval.unit===g?(l("warn","arcgis-slider-time",'A stop interval with an "unknown" time unit is not supported. The default stop definition will be used.'),f):e}function F(e){return!!e&&"count"in e}function I(e){return!!e&&"dates"in e}function b(e){return!!e&&"interval"in e}var p=1e4;function w(e,r){let{start:t,end:n}=e;if(!t||!n||t.getTime()>n.getTime()||r<=0)return[];if(r>p)return w(e,f.count);let u=[],a=t.getTime(),i=n.getTime()-a;for(let s=0;s<=r;s++)u.push(new Date(a+s/r*i));return u}function Z(e,r){let{start:t,end:n}=e,{value:u,unit:a}=r;if(!t||!n||t.getTime()>n.getTime()||u<0)return[];let i=n.getTime()-t.getTime(),s=r.toMilliseconds();if(s<=0||i/s>p)return w(e,f.count);let m=[],o=t;for(;o.getTime()<=n.getTime();)m.push(new Date(o)),o=T(o,u,a);return m}function j(e,r){let[t,n]=e;if(t)switch(r){case"time-window":return n?new c({start:t,end:n}):void 0;case"cumulative-from-start":return new c({start:null,end:t});case"cumulative-from-end":return new c({start:t,end:null});case"instant":return new c({start:t,end:t})}}function A(e,r,t,n){let{value:u,unit:a}=t;if(e.getTime()>r.getTime()||u<=0||a==="unknown")return[];let i=D(e,t,n),s=[];for(;i.getTime()<=r.getTime();)i.getTime()>=e.getTime()&&s.push(i),i=T(i,u,a,n);return s}function C(e,r){let t=new Intl.DateTimeFormat("en",{day:"2-digit",month:"2-digit",timeZone:r,year:"numeric"}).formatToParts(e),n=t.find(({type:i})=>i==="year")?.value??"1900",u=t.find(({type:i})=>i==="month")?.value??"01",a=t.find(({type:i})=>i==="day")?.value??"01";return`${n}-${u}-${a}`}function M(e,r){let t=new Intl.DateTimeFormat("en",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:r}).formatToParts(e),n=t.find(({type:i})=>i==="hour")?.value??"00",u=t.find(({type:i})=>i==="minute")?.value??"00",a=t.find(({type:i})=>i==="second")?.value??"00";return`${n}:${u}:${a}`}function B(e,r,t){let n=/^(\d{4})-(\d{2})-(\d{2})$/u.exec(e),u=/^(\d{2}):(\d{2}):(\d{2})$/u.exec(r);if(!n||!u)return;let a=Number(n[1]),i=Number(n[2]),s=Number(n[3]),m=Number(u[1]),o=Number(u[2]),v=Number(u[3]),d=new Date(Date.UTC(a,i-1,s,m,o,v)),h=(y(d,t)?.offsetMinutes??0)*6e4;return new Date(d.getTime()-h)}return{a:f,b:x,c:F,d:I,e:b,f:w,g:Z,h:j,i:A,j:C,k:M,l:B}},"time/TimeExtent","core/timeUtils")
2
+ import{b as g}from"./O7RSAJOS.js";import{p as l}from"./33CM77ZT.js";export default $arcgis.t(([c,{getZonedDateTimeParts:y,offsetDate:T,truncateDate:D}])=>{var f={count:10};function x(e){return b(e)&&e.interval.unit===g?(l("warn","arcgis-slider-time",'A stop interval with an "unknown" time unit is not supported. The default stop definition will be used.'),f):e}function F(e){return!!e&&"count"in e}function I(e){return!!e&&"dates"in e}function b(e){return!!e&&"interval"in e}var p=1e4;function w(e,r){let{start:t,end:n}=e;if(!t||!n||t.getTime()>n.getTime()||r<=0)return[];if(r>p)return w(e,f.count);let u=[],a=t.getTime(),i=n.getTime()-a;for(let s=0;s<=r;s++)u.push(new Date(a+s/r*i));return u}function Z(e,r){let{start:t,end:n}=e,{value:u,unit:a}=r;if(!t||!n||t.getTime()>n.getTime()||u<0)return[];let i=n.getTime()-t.getTime(),s=r.toMilliseconds();if(s<=0||i/s>p)return w(e,f.count);let m=[],o=t;for(;o.getTime()<=n.getTime();)m.push(new Date(o)),o=T(o,u,a);return m}function j(e,r){let[t,n]=e;if(t)switch(r){case"time-window":return n?new c({start:t,end:n}):void 0;case"cumulative-from-start":return new c({start:null,end:t});case"cumulative-from-end":return new c({start:t,end:null});case"instant":return new c({start:t,end:t})}}function A(e,r,t,n){let{value:u,unit:a}=t;if(e.getTime()>r.getTime()||u<=0||a==="unknown")return[];let i=D(e,t,n),s=[];for(;i.getTime()<=r.getTime();)i.getTime()>=e.getTime()&&s.push(i),i=T(i,u,a,n);return s}function C(e,r){let t=new Intl.DateTimeFormat("en",{day:"2-digit",month:"2-digit",timeZone:r,year:"numeric"}).formatToParts(e),n=t.find(({type:i})=>i==="year")?.value??"1900",u=t.find(({type:i})=>i==="month")?.value??"01",a=t.find(({type:i})=>i==="day")?.value??"01";return`${n}-${u}-${a}`}function M(e,r){let t=new Intl.DateTimeFormat("en",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:r}).formatToParts(e),n=t.find(({type:i})=>i==="hour")?.value??"00",u=t.find(({type:i})=>i==="minute")?.value??"00",a=t.find(({type:i})=>i==="second")?.value??"00";return`${n}:${u}:${a}`}function B(e,r,t){let n=/^(\d{4})-(\d{2})-(\d{2})$/u.exec(e),u=/^(\d{2}):(\d{2}):(\d{2})$/u.exec(r);if(!n||!u)return;let a=Number(n[1]),i=Number(n[2]),s=Number(n[3]),m=Number(u[1]),o=Number(u[2]),v=Number(u[3]),d=new Date(Date.UTC(a,i-1,s,m,o,v)),h=(y(d,t)?.offsetMinutes??0)*6e4;return new Date(d.getTime()-h)}return{a:f,b:x,c:F,d:I,e:b,f:w,g:Z,h:j,i:A,j:C,k:M,l:B}},"time/TimeExtent","core/timeUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import k from"./TMJX7DFH.js";import j from"./ZW3ZNFYI.js";import"./VJVKFKSG.js";import{a as $}from"./P2A4UHL6.js";import i from"./QAEFC57S.js";import"./YK3OHMKT.js";import"./BYC7JUTS.js";import e from"./4BLOLOQK.js";import"./QUZTFUWM.js";import"./OM6LULIZ.js";import{B as w,P as x,U as g,X as f,a as b,b as a,p as c,r as h,x as d}from"./4GPS2BM4.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getOwningPortalUrl:C,hasUserTypeExtension:I},{on:E,watch:T,whenOnce:L},D,{getVersioningStates:q},,{a:_},{a:v,b:l,c:k,d:N},{e:V}])=>{var B=b`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-view-corner-radius: 0px;--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}calcite-block{margin:0;border-bottom:none}calcite-combobox{margin-bottom:var(--calcite-spacing-sm)}calcite-icon{width:32px}`,p={noDirtyAreasInExtent:-2147208940,operationOnlyAllowedByOwner:-2147217144,cannotAcquireVersionLockV10:-2147217146,cannotAcquireVersionLockV11:-2147220947},m=class extends x{constructor(){super(...arguments),this._messages=$({blocking:!0}),this.#o=`unvnt_${w()}`,this.disabled=!1,this.disableExecuteOnDefaultVersion=!1,this.extentToValidate="current",this.hideUtilityNetworkSelect=!1,this.state={type:"disabled"},this.view=_(this),this.arcgisReady=d(),this.arcgisValidateNetworkTopologyEnd=d(),this.arcgisValidateNetworkTopologyStart=d()}static{this.properties={beforeValidateNetworkTopologyStart:0,disabled:5,disableExecuteOnDefaultVersion:5,extentToValidate:1,hideUtilityNetworkSelect:5,label:1,messageOverrides:0,referenceElement:1,result:0,state:0,utilityNetwork:0,view:0}}static{this.styles=B}get#n(){return`${this.#o}_execute-action`}get#r(){return this._messages.actions.validateTopology+(this.extentToValidate==="current"?` ${this._messages.input.selectExtent.options.currentExtent.toLowerCase()}`:` ${this._messages.input.selectExtent.options.entireExtent.toLowerCase()}`)}get#h(){return this.#a.isDefault}get#d(){return this.#a?.currentVersionInfo?.access==="protected"}get#g(){return this.#i?.privileges?.includes("features:user:manageVersions")??!1}get#p(){let e=this.#a?.currentVersionInfo?.versionIdentifier.name;return e?.substring(0,e.lastIndexOf("."))?.toUpperCase()===this.#i?.username?.toUpperCase()}#i;#s;#o;#e;get#a(){return this.#l?.find(e=>e.featureServiceUrl===this.utilityNetwork?.featureServiceUrl)}#l;async load(){this.manager.onLifecycle(()=>[E(()=>this.view?.map?.allLayers,"change",e=>{let t=e.added.concat(e.removed);this.#c(t)&&this.#t()}),E(()=>this.view?.map?.utilityNetworks,"change",()=>{this.#t()}),T(()=>this.utilityNetwork?.gdbVersion,()=>{L(()=>this.utilityNetwork?.gdbVersion===this.#a?.currentVersionInfo?.versionIdentifier.name).then(()=>{this.#t()})}),T(()=>this.view,()=>{this.#t()},{initial:!0})])}#c(e){let t=this.utilityNetwork?.networkSystemLayers.dirtyAreasLayerUrl;if(t)return e.find(i=>V(i)&&`${i.url}/${i.layerId}`===t)}async#u(){try{if(this.result=void 0,!this.view){this.state={type:"error-disable-component",message:this._messages.errors.noView};return}if(!this.utilityNetwork){this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetworks};return}this.beforeValidateNetworkTopologyStart&&await this.beforeValidateNetworkTopologyStart();let{view:e,utilityNetwork:t}=this;if(!e){this.state={type:"error-disable-component",message:this._messages.errors.noView};return}if(!t){this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetwork},c("warn",this,h("utilityNetwork"));return}if(this.arcgisValidateNetworkTopologyStart.emit().defaultPrevented){c("info",this,this._messages.info.validateCanceled);return}this.state={type:"executing"};let i={outSpatialReference:e.spatialReference?.clone()||null,validateArea:this.extentToValidate==="current"||!t.fullExtent?e.extent.clone():t.fullExtent.clone()};this.result=await t.validateTopology(i),this.state={type:"success",message:this._messages.status.success}}catch(e){let{_messages:{errors:{cannotAcquireVersionLock:t,noDirtyAreasInExtent:i,operationOnlyAllowedByOwner:o}}}=this;this.result=void 0;let r=e,s=r.details?.raw?.extendedCode,n=r.message||this._messages.info.validateCanceled;switch(s){case p.noDirtyAreasInExtent:n=i;break;case p.cannotAcquireVersionLockV10:case p.cannotAcquireVersionLockV11:n=t;break;case p.operationOnlyAllowedByOwner:n=o;break}this.state={type:"error-info",message:n}}finally{this.arcgisValidateNetworkTopologyEnd.emit()}}async#t(){this.#s?.abort();let e=N(async t=>{this.state={type:"loading"},this.result=void 0;let{view:i}=this;if(!i){this.utilityNetwork=void 0,this.state={type:"error-disable-component",message:this._messages.errors.noView},c("warn",this,h("view"));return}if(i.type!=="2d"){this.utilityNetwork=void 0,this.state={type:"error-disable-component",message:this._messages.errors.sceneViewNotSupported};return}let o=i.map;await o.load({signal:t}),l(t);let r=o.utilityNetworks??null;if(!r?.length){this.utilityNetwork=void 0,this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetworks};return}let s=this.utilityNetwork;if((!s||!r.find(O=>O.id===s?.id))&&(s=r.getItemAt(0)),!s){this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetworks},c("warn",this,h("utilityNetwork"));return}await s.load({signal:t}),l(t);let n=(Number(s.sourceJSON.currentVersion)||0)<=11.1?"utilityNetwork":"advediting",A=await C(s.layerUrl,{signal:t})??void 0;l(t);let u=new D({url:A});await u.load({signal:t}),l(t),this.#i=u.user;let U=this.#i?.username??"",S=await I(u,U,n);if(l(t),this.#e=r,this.utilityNetwork=s,!S){this.state=n==="advediting"?{type:"error-disable-execute",message:this._messages.errors.noAdvancedEditingUserTypeExtension}:{type:"error-disable-execute",message:this._messages.errors.noUtilityNetworkServiceUserTypeExtension};return}let y=this.#c(o.allLayers.toArray());if(!y){this.state={type:"error-disable-execute",message:this._messages.errors.noDirtyAreasLayer};return}if(await y.load({signal:t}),l(t),this.#l=await q(this.view,!1),this.#h&&this.disableExecuteOnDefaultVersion){this.state={type:"error-disable-execute",message:this._messages.errors.operationDisabledOnDefaultVersion};return}if(this.#d&&!this.#p&&!this.#g){this.state={type:"error-disable-execute",message:this._messages.errors.operationOnlyAllowedByOwner};return}this.state={type:"ready"}});this.#s=e;try{await e.promise}catch(t){if(k(t))return;this.state={type:"error-disable-execute",message:this._messages.errors.utilityNetworkLoadFailed},v(t,this,this.state.message)}finally{this.#s===e&&(this.#s=void 0)}}_renderExtentToValidateCombobox(){if(this.state.type!=="error-disable-component")return a`<calcite-combobox .disabled=${this.disabled||this.state.type==="disabled"||this.state.type==="executing"} .label=${this._messages.input.selectExtent.label} .labelText=${this._messages.input.selectExtent.label} selection-mode=single-persist @calciteComboboxChange=${e=>{this.extentToValidate=e.target.value}}><calcite-combobox-item .heading=${this._messages.input.selectExtent.options.currentExtent} .selected=${this.extentToValidate==="current"} value=current></calcite-combobox-item><calcite-combobox-item .heading=${this._messages.input.selectExtent.options.entireExtent} .selected=${this.extentToValidate==="entire"} value=entire></calcite-combobox-item></calcite-combobox>`}_renderInfoNotice(){if(this.state.type==="error-disable-component"||this.state.type==="error-disable-execute"||this.state.type==="error-info"||this.state.type==="success")return a`<calcite-notice .closable=${this.state.type==="error-info"||this.state.type==="success"} .kind=${this.state.type==="success"?"success":"warning"} open scale=s width=full @calciteNoticeClose=${()=>this.state={type:"ready"}}><div slot=message>${this.state.message}</div></calcite-notice>`}_renderStatusIcon(){let e=`${this.#o}_status-icon`;switch(this.state.type){case"error-disable-component":case"error-disable-execute":case"error-info":return a`<calcite-icon icon=exclamation-mark-triangle id=${e??g} scale=s slot=actions-end></calcite-icon>`;case"executing":return a`<calcite-action loading disabled slot=actions-end .text=${this._messages.status.executing}></calcite-action>`;case"success":return a`<calcite-icon icon=check-circle id=${e??g} scale=s slot=actions-end></calcite-icon>`;default:return a`<calcite-icon icon=blank scale=m slot=actions-end></calcite-icon>`}}_renderUtilityNetworkCombobox(){if(!(!this.#e||this.#e?.length===1||this.state.type==="error-disable-component"||this.hideUtilityNetworkSelect))return a`<calcite-combobox .disabled=${this.state.type==="executing"} .label=${this._messages.input.selectUtilityNetwork.label} .labelText=${this._messages.input.selectUtilityNetwork.label} selection-mode=single-persist @calciteComboboxChange=${e=>{let t=e.target.value;this.utilityNetwork=this.#e?.find(i=>i.id===t),this.#t()}}>${this.#e.map(e=>a`<calcite-combobox-item .heading=${e.title} .selected=${e===this.utilityNetwork} .value=${e.id}></calcite-combobox-item>`)}</calcite-combobox>`}_renderValidateNetworkTopologyAction(){if(this.state.type!=="error-disable-component")return a`<calcite-action .disabled=${this.disabled||this.state.type==="disabled"||this.state.type==="error-disable-execute"||this.state.type==="executing"} icon=play-f id=${this.#n??g} .label=${this.#r} slot=actions-end .text=${this.#r} @click=${this.#u}></calcite-action>`}_renderValidateNetworkTopologyActionTooltip(){if(this.state.type!=="error-disable-component")return a`<calcite-tooltip .referenceElement=${this.#n}><span>${this.#r}</span></calcite-tooltip>`}render(){let e=this._renderStatusIcon(),t=this._renderValidateNetworkTopologyAction(),i=this._renderValidateNetworkTopologyActionTooltip(),o=this._renderUtilityNetworkCombobox(),r=this._renderExtentToValidateCombobox(),s=this._renderInfoNotice();return a`<calcite-panel .loading=${this.state.type==="loading"}><calcite-block expandable expanded .heading=${this.label}>${e}${t}${o}${r}${s}</calcite-block>${i}</calcite-panel>`}};f("arcgis-utility-network-validate-network-topology",m);return m},"applications/Components/featureUtils","core/reactiveUtils","portal/Portal","versionManagement/utils",e,i,j,k)
2
+ import k from"./TMJX7DFH.js";import j from"./6CRONNHI.js";import"./VJVKFKSG.js";import{a as $}from"./7EMK74ZF.js";import i from"./PPURK2BH.js";import"./6N7PM73F.js";import"./7IHIG427.js";import e from"./2IYRSXZS.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import{B as w,P as x,U as g,X as f,a as b,b as a,p as c,r as h,x as d}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getOwningPortalUrl:C,hasUserTypeExtension:I},{on:E,watch:T,whenOnce:L},D,{getVersioningStates:q},,{a:_},{a:v,b:l,c:k,d:N},{e:V}])=>{var B=b`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-view-corner-radius: 0px;--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}calcite-block{margin:0;border-bottom:none}calcite-combobox{margin-bottom:var(--calcite-spacing-sm)}calcite-icon{width:32px}`,p={noDirtyAreasInExtent:-2147208940,operationOnlyAllowedByOwner:-2147217144,cannotAcquireVersionLockV10:-2147217146,cannotAcquireVersionLockV11:-2147220947},m=class extends x{constructor(){super(...arguments),this._messages=$({blocking:!0}),this.#o=`unvnt_${w()}`,this.disabled=!1,this.disableExecuteOnDefaultVersion=!1,this.extentToValidate="current",this.hideUtilityNetworkSelect=!1,this.state={type:"disabled"},this.view=_(this),this.arcgisReady=d(),this.arcgisValidateNetworkTopologyEnd=d(),this.arcgisValidateNetworkTopologyStart=d()}static{this.properties={beforeValidateNetworkTopologyStart:0,disabled:5,disableExecuteOnDefaultVersion:5,extentToValidate:1,hideUtilityNetworkSelect:5,label:1,messageOverrides:0,referenceElement:1,result:0,state:0,utilityNetwork:0,view:0}}static{this.styles=B}get#n(){return`${this.#o}_execute-action`}get#r(){return this._messages.actions.validateTopology+(this.extentToValidate==="current"?` ${this._messages.input.selectExtent.options.currentExtent.toLowerCase()}`:` ${this._messages.input.selectExtent.options.entireExtent.toLowerCase()}`)}get#h(){return this.#a.isDefault}get#d(){return this.#a?.currentVersionInfo?.access==="protected"}get#g(){return this.#i?.privileges?.includes("features:user:manageVersions")??!1}get#p(){let e=this.#a?.currentVersionInfo?.versionIdentifier.name;return e?.substring(0,e.lastIndexOf("."))?.toUpperCase()===this.#i?.username?.toUpperCase()}#i;#s;#o;#e;get#a(){return this.#l?.find(e=>e.featureServiceUrl===this.utilityNetwork?.featureServiceUrl)}#l;async load(){this.manager.onLifecycle(()=>[E(()=>this.view?.map?.allLayers,"change",e=>{let t=e.added.concat(e.removed);this.#c(t)&&this.#t()}),E(()=>this.view?.map?.utilityNetworks,"change",()=>{this.#t()}),T(()=>this.utilityNetwork?.gdbVersion,()=>{L(()=>this.utilityNetwork?.gdbVersion===this.#a?.currentVersionInfo?.versionIdentifier.name).then(()=>{this.#t()})}),T(()=>this.view,()=>{this.#t()},{initial:!0})])}#c(e){let t=this.utilityNetwork?.networkSystemLayers.dirtyAreasLayerUrl;if(t)return e.find(i=>V(i)&&`${i.url}/${i.layerId}`===t)}async#u(){try{if(this.result=void 0,!this.view){this.state={type:"error-disable-component",message:this._messages.errors.noView};return}if(!this.utilityNetwork){this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetworks};return}this.beforeValidateNetworkTopologyStart&&await this.beforeValidateNetworkTopologyStart();let{view:e,utilityNetwork:t}=this;if(!e){this.state={type:"error-disable-component",message:this._messages.errors.noView};return}if(!t){this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetwork},c("warn",this,h("utilityNetwork"));return}if(this.arcgisValidateNetworkTopologyStart.emit().defaultPrevented){c("info",this,this._messages.info.validateCanceled);return}this.state={type:"executing"};let i={outSpatialReference:e.spatialReference?.clone()||null,validateArea:this.extentToValidate==="current"||!t.fullExtent?e.extent.clone():t.fullExtent.clone()};this.result=await t.validateTopology(i),this.state={type:"success",message:this._messages.status.success}}catch(e){let{_messages:{errors:{cannotAcquireVersionLock:t,noDirtyAreasInExtent:i,operationOnlyAllowedByOwner:o}}}=this;this.result=void 0;let r=e,s=r.details?.raw?.extendedCode,n=r.message||this._messages.info.validateCanceled;switch(s){case p.noDirtyAreasInExtent:n=i;break;case p.cannotAcquireVersionLockV10:case p.cannotAcquireVersionLockV11:n=t;break;case p.operationOnlyAllowedByOwner:n=o;break}this.state={type:"error-info",message:n}}finally{this.arcgisValidateNetworkTopologyEnd.emit()}}async#t(){this.#s?.abort();let e=N(async t=>{this.state={type:"loading"},this.result=void 0;let{view:i}=this;if(!i){this.utilityNetwork=void 0,this.state={type:"error-disable-component",message:this._messages.errors.noView},c("warn",this,h("view"));return}if(i.type!=="2d"){this.utilityNetwork=void 0,this.state={type:"error-disable-component",message:this._messages.errors.sceneViewNotSupported};return}let o=i.map;await o.load({signal:t}),l(t);let r=o.utilityNetworks??null;if(!r?.length){this.utilityNetwork=void 0,this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetworks};return}let s=this.utilityNetwork;if((!s||!r.find(O=>O.id===s?.id))&&(s=r.getItemAt(0)),!s){this.state={type:"error-disable-component",message:this._messages.errors.noUtilityNetworks},c("warn",this,h("utilityNetwork"));return}await s.load({signal:t}),l(t);let n=(Number(s.sourceJSON.currentVersion)||0)<=11.1?"utilityNetwork":"advediting",A=await C(s.layerUrl,{signal:t})??void 0;l(t);let u=new D({url:A});await u.load({signal:t}),l(t),this.#i=u.user;let U=this.#i?.username??"",S=await I(u,U,n);if(l(t),this.#e=r,this.utilityNetwork=s,!S){this.state=n==="advediting"?{type:"error-disable-execute",message:this._messages.errors.noAdvancedEditingUserTypeExtension}:{type:"error-disable-execute",message:this._messages.errors.noUtilityNetworkServiceUserTypeExtension};return}let y=this.#c(o.allLayers.toArray());if(!y){this.state={type:"error-disable-execute",message:this._messages.errors.noDirtyAreasLayer};return}if(await y.load({signal:t}),l(t),this.#l=await q(this.view,!1),this.#h&&this.disableExecuteOnDefaultVersion){this.state={type:"error-disable-execute",message:this._messages.errors.operationDisabledOnDefaultVersion};return}if(this.#d&&!this.#p&&!this.#g){this.state={type:"error-disable-execute",message:this._messages.errors.operationOnlyAllowedByOwner};return}this.state={type:"ready"}});this.#s=e;try{await e.promise}catch(t){if(k(t))return;this.state={type:"error-disable-execute",message:this._messages.errors.utilityNetworkLoadFailed},v(t,this,this.state.message)}finally{this.#s===e&&(this.#s=void 0)}}_renderExtentToValidateCombobox(){if(this.state.type!=="error-disable-component")return a`<calcite-combobox .disabled=${this.disabled||this.state.type==="disabled"||this.state.type==="executing"} .label=${this._messages.input.selectExtent.label} .labelText=${this._messages.input.selectExtent.label} selection-mode=single-persist @calciteComboboxChange=${e=>{this.extentToValidate=e.target.value}}><calcite-combobox-item .heading=${this._messages.input.selectExtent.options.currentExtent} .selected=${this.extentToValidate==="current"} value=current></calcite-combobox-item><calcite-combobox-item .heading=${this._messages.input.selectExtent.options.entireExtent} .selected=${this.extentToValidate==="entire"} value=entire></calcite-combobox-item></calcite-combobox>`}_renderInfoNotice(){if(this.state.type==="error-disable-component"||this.state.type==="error-disable-execute"||this.state.type==="error-info"||this.state.type==="success")return a`<calcite-notice .closable=${this.state.type==="error-info"||this.state.type==="success"} .kind=${this.state.type==="success"?"success":"warning"} open scale=s width=full @calciteNoticeClose=${()=>this.state={type:"ready"}}><div slot=message>${this.state.message}</div></calcite-notice>`}_renderStatusIcon(){let e=`${this.#o}_status-icon`;switch(this.state.type){case"error-disable-component":case"error-disable-execute":case"error-info":return a`<calcite-icon icon=exclamation-mark-triangle id=${e??g} scale=s slot=actions-end></calcite-icon>`;case"executing":return a`<calcite-action loading disabled slot=actions-end .text=${this._messages.status.executing}></calcite-action>`;case"success":return a`<calcite-icon icon=check-circle id=${e??g} scale=s slot=actions-end></calcite-icon>`;default:return a`<calcite-icon icon=blank scale=m slot=actions-end></calcite-icon>`}}_renderUtilityNetworkCombobox(){if(!(!this.#e||this.#e?.length===1||this.state.type==="error-disable-component"||this.hideUtilityNetworkSelect))return a`<calcite-combobox .disabled=${this.state.type==="executing"} .label=${this._messages.input.selectUtilityNetwork.label} .labelText=${this._messages.input.selectUtilityNetwork.label} selection-mode=single-persist @calciteComboboxChange=${e=>{let t=e.target.value;this.utilityNetwork=this.#e?.find(i=>i.id===t),this.#t()}}>${this.#e.map(e=>a`<calcite-combobox-item .heading=${e.title} .selected=${e===this.utilityNetwork} .value=${e.id}></calcite-combobox-item>`)}</calcite-combobox>`}_renderValidateNetworkTopologyAction(){if(this.state.type!=="error-disable-component")return a`<calcite-action .disabled=${this.disabled||this.state.type==="disabled"||this.state.type==="error-disable-execute"||this.state.type==="executing"} icon=play-f id=${this.#n??g} .label=${this.#r} slot=actions-end .text=${this.#r} @click=${this.#u}></calcite-action>`}_renderValidateNetworkTopologyActionTooltip(){if(this.state.type!=="error-disable-component")return a`<calcite-tooltip .referenceElement=${this.#n}><span>${this.#r}</span></calcite-tooltip>`}render(){let e=this._renderStatusIcon(),t=this._renderValidateNetworkTopologyAction(),i=this._renderValidateNetworkTopologyActionTooltip(),o=this._renderUtilityNetworkCombobox(),r=this._renderExtentToValidateCombobox(),s=this._renderInfoNotice();return a`<calcite-panel .loading=${this.state.type==="loading"}><calcite-block expandable expanded .heading=${this.label}>${e}${t}${o}${r}${s}</calcite-block>${i}</calcite-panel>`}};f("arcgis-utility-network-validate-network-topology",m);return m},"applications/Components/featureUtils","core/reactiveUtils","portal/Portal","versionManagement/utils",e,i,j,k)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./3ZXNGXHC.js";import{P as o,X as h,b as m}from"./4GPS2BM4.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:d},{f:u}])=>{var n=class extends o{constructor(){super(...arguments),this._dpi=1}static{this.properties={_dpi:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[d(()=>this.viewModel.templateOptions.dpi,e=>this._dpi=e<=0?1:e,{initial:!0})])}_handleDPIChange(e){let i=this.viewModel.templateOptions,t=Number(e.target.value);if(Number.isNaN(t)||t<=0||!Number.isFinite(t)){e.target.value=`${this._dpi}`;return}if(u(i.layout)){let a=i.dpi>0?i.dpi:this._dpi,r=i.width,s=i.height;if(a>0&&typeof r=="number"&&typeof s=="number"&&Number.isFinite(r)&&Number.isFinite(s)&&t!==a){let p=t/a;i.width=Math.max(1,Math.round(r*p)),i.height=Math.max(1,Math.round(s*p))}}i.dpi=t}render(){return m`<div><calcite-label>${this.messages.dpi}<calcite-input-number data-input-name=dpi min=1 .value=${`${this._dpi}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberChange=${this._handleDPIChange}></calcite-input-number></calcite-label></div>`}};h("arcgis-print-dpi-input",n);return n},"core/reactiveUtils",a)
2
+ import a from"./3ZXNGXHC.js";import{P as o,X as h,b as m}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:d},{f:u}])=>{var n=class extends o{constructor(){super(...arguments),this._dpi=1}static{this.properties={_dpi:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[d(()=>this.viewModel.templateOptions.dpi,e=>this._dpi=e<=0?1:e,{initial:!0})])}_handleDPIChange(e){let i=this.viewModel.templateOptions,t=Number(e.target.value);if(Number.isNaN(t)||t<=0||!Number.isFinite(t)){e.target.value=`${this._dpi}`;return}if(u(i.layout)){let a=i.dpi>0?i.dpi:this._dpi,r=i.width,s=i.height;if(a>0&&typeof r=="number"&&typeof s=="number"&&Number.isFinite(r)&&Number.isFinite(s)&&t!==a){let p=t/a;i.width=Math.max(1,Math.round(r*p)),i.height=Math.max(1,Math.round(s*p))}}i.dpi=t}render(){return m`<div><calcite-label>${this.messages.dpi}<calcite-input-number data-input-name=dpi min=1 .value=${`${this._dpi}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberChange=${this._handleDPIChange}></calcite-input-number></calcite-label></div>`}};h("arcgis-print-dpi-input",n);return n},"core/reactiveUtils",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as e,b as r,c as z}from"./5UMTZK7B.js";import{a as y}from"./P2A4UHL6.js";import{a as p}from"./JD74LG7K.js";import b from"./QAEFC57S.js";import{h as d}from"./YK3OHMKT.js";import"./BYC7JUTS.js";import a from"./4BLOLOQK.js";import"./QUZTFUWM.js";import"./OM6LULIZ.js";import{P as m,R as h,U as o,X as u,b as n,x as i}from"./4GPS2BM4.js";import"./H6RQVSYM.js";export default $arcgis.t(([{when:v},,{a:g}])=>{var c=class extends m{constructor(){super(...arguments),this.messages=y({}),this._state="disabled",this.view=g(this),this.autoDestroyDisabled=!1,this.icon="magnifying-glass-plus",this.layout="vertical",this.visualScale="m",this.arcgisActionZoom=i(),this.arcgisPropertyChange=d()("state"),this.arcgisReady=i()}static{this.properties={_state:16,view:0,autoDestroyDisabled:5,icon:1,label:1,layout:3,messageOverrides:0,referenceElement:1,visualScale:1,state:32}}static{this.styles=z}get state(){return this._state}async destroy(){await this.manager.destroy()}async zoomIn(){await this.zoomBy(1)}async zoomOut(){await this.zoomBy(-1)}loaded(){this.manager.onLifecycle(()=>[v(()=>this.view?.ready?"ready":"disabled",a=>{this._state=a},{sync:!0,initial:!0})])}async zoomBy(a){let{view:t}=this,s=a===1;!(s?e(t):r(t))||!t||(this.arcgisActionZoom.emit({action:s?"zoomIn":"zoomOut"}),s?await t.zoomIn():await t.zoomOut())}render(){let a=e(this.view),t=r(this.view),{zoomIn:s,zoomOut:l}=this.messages;return n`<div class=${h({[p.arcgisButton]:!0,horizontal:this.layout==="horizontal"})}><calcite-button class="zoom-in" .disabled=${!a} icon-start=plus kind=neutral .label=${s} @click=${this.zoomIn} .scale=${this.visualScale} title=${s??o}></calcite-button><calcite-button class="zoom-out" .disabled=${!t} icon-start=minus kind=neutral .label=${l} @click=${this.zoomOut} .scale=${this.visualScale} title=${l??o}></calcite-button></div>`}};u("arcgis-zoom",c);return c},"core/reactiveUtils",a,b)
2
+ import{a as e,b as r,c as z}from"./CTWWJ6FV.js";import{a as y}from"./7EMK74ZF.js";import{a as p}from"./JD74LG7K.js";import b from"./PPURK2BH.js";import{h as d}from"./6N7PM73F.js";import"./7IHIG427.js";import a from"./2IYRSXZS.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import{P as m,R as h,U as o,X as u,b as n,x as i}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{when:v},,{a:g}])=>{var c=class extends m{constructor(){super(...arguments),this.messages=y({}),this._state="disabled",this.view=g(this),this.autoDestroyDisabled=!1,this.icon="magnifying-glass-plus",this.layout="vertical",this.visualScale="m",this.arcgisActionZoom=i(),this.arcgisPropertyChange=d()("state"),this.arcgisReady=i()}static{this.properties={_state:16,view:0,autoDestroyDisabled:5,icon:1,label:1,layout:3,messageOverrides:0,referenceElement:1,visualScale:1,state:32}}static{this.styles=z}get state(){return this._state}async destroy(){await this.manager.destroy()}async zoomIn(){await this.zoomBy(1)}async zoomOut(){await this.zoomBy(-1)}loaded(){this.manager.onLifecycle(()=>[v(()=>this.view?.ready?"ready":"disabled",a=>{this._state=a},{sync:!0,initial:!0})])}async zoomBy(a){let{view:t}=this,s=a===1;!(s?e(t):r(t))||!t||(this.arcgisActionZoom.emit({action:s?"zoomIn":"zoomOut"}),s?await t.zoomIn():await t.zoomOut())}render(){let a=e(this.view),t=r(this.view),{zoomIn:s,zoomOut:l}=this.messages;return n`<div class=${h({[p.arcgisButton]:!0,horizontal:this.layout==="horizontal"})}><calcite-button class="zoom-in" .disabled=${!a} icon-start=plus kind=neutral .label=${s} @click=${this.zoomIn} .scale=${this.visualScale} title=${s??o}></calcite-button><calcite-button class="zoom-out" .disabled=${!t} icon-start=minus kind=neutral .label=${l} @click=${this.zoomOut} .scale=${this.visualScale} title=${l??o}></calcite-button></div>`}};u("arcgis-zoom",c);return c},"core/reactiveUtils",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import k from"./I4NXDFWY.js";import{a as $,b as V,e as u,g as h,j as S,k as D}from"./BAOWXZTE.js";import{a as g}from"./POKO37D3.js";import j from"./ZW3ZNFYI.js";import"./VJVKFKSG.js";import i from"./KFXLQIC5.js";import{a as z}from"./P2A4UHL6.js";import{a as p}from"./JD74LG7K.js";import e from"./UGVAEIPY.js";import d from"./QAEFC57S.js";import{h as x}from"./YK3OHMKT.js";import"./BYC7JUTS.js";import a from"./4BLOLOQK.js";import"./QUZTFUWM.js";import"./OM6LULIZ.js";import{P as v,R as b,X as y,a as w,b as c,x as f}from"./4GPS2BM4.js";import"./H6RQVSYM.js";export default $arcgis.t(([C,{property:o,subclass:E},{watch:R},j,,,,U,{b:k,e:O},M])=>{var A=w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{.esri-widget--panel{min-width:0}}`,L=Object.defineProperty,P=Object.getOwnPropertyDescriptor,n=(e,i,t,l)=>{for(var s=l>1?void 0:l?P(i,t):i,a=e.length-1,d;a>=0;a--)(d=e[a])&&(s=(l?d(i,t,s):d(s))||s);return l&&s&&L(i,t,s),s},r=class extends M{constructor(){super(...arguments),this.snappingOptions=new j,this.supportedViewType="2d",this.unsupportedErrorMessage="The Area Measurement 2D component is only supported in 2D views."}initialize(){this.addHandles([R(()=>({analysis:this.analysis,unit:this._userUnit}),({analysis:e,unit:i})=>{i&&(e.unit=i)},{sync:!0,initial:!0}),R(()=>({analysisView:this.analysisView,snappingOptions:this.snappingOptions}),({analysisView:e,snappingOptions:i})=>{e&&"snappingOptions"in e&&(e.snappingOptions=i)},{sync:!0,initial:!0})])}get state(){let{analysis:e,disabled:i,operationState:t,ready:l,supported:s}=this,{valid:a}=e;return $({supported:s,disabled:i,ready:l,operationState:t,valid:a})}get displayState(){return V(this.state,!!this.analysis.geometry)}get measurement(){return{mode:this.analysisView?.result?.mode??"euclidean",area:h(this.analysis.valid?this.analysisView?.result?.area:void 0),perimeter:h(this.analysis.valid?this.analysisView?.result?.perimeter:void 0)}}get unitOptions(){return S(this._userUnitOptions,u,u)}set unitOptions(e){this._userUnitOptions=e}get unit(){return D({userUnit:this._userUnit,analysisUnit:this.analysis.unit,options:this.unitOptions,defaultUnit:this.defaultMeasurementSystem,viewUnit:this.view?.options.displayUnits.area})}set unit(e){this._userUnit=e}get canResetUnit(){return this._userUnit!=null||this.analysis.unit!=null}resetUnit(){this._userUnit=void 0,this.analysis.unit=null}async place(e){let i=this.analysisView;i&&(await i.place(e),k(e?.signal))}clearAnalysis(){this.analysis.geometry=null}constructAnalysis(){return new C}};n([o({readOnly:!0})],r.prototype,"state",1);n([o({readOnly:!0})],r.prototype,"displayState",1);n([o()],r.prototype,"measurement",1);n([o({type:j})],r.prototype,"snappingOptions",2);n([o()],r.prototype,"unitOptions",1);n([o()],r.prototype,"_userUnitOptions",2);n([o()],r.prototype,"unit",1);n([o()],r.prototype,"_userUnit",2);n([o({readOnly:!0})],r.prototype,"canResetUnit",1);r=n([E("components.area-measurement-2d.AreaMeasurement2dViewModel")],r);var Z=U(r),m=class extends v{constructor(){super(...arguments),this.viewModel=Z(this),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.hideStartButton=!1,this.hideResetUnitsButton=!1,this.hideUnitSelect=!1,this.hideVisualization=this.viewModel.hideVisualization,this.icon="measure-area",this.interactionDisabled=this.viewModel.interactionDisabled,this.messages=z({name:"area-measurement-2d",blocking:!0}),this.snappingOptions=this.viewModel.snappingOptions,this.state=this.viewModel.state,this.unit=this.viewModel.unit,this.unitOptions=this.viewModel.unitOptions,this.arcgisPropertyChange=x()("analysis","interactionDisabled","state"),this.arcgisReady=f()}static{this.properties={view:0,analysis:0,autoDestroyDisabled:5,hideStartButton:5,hideResetUnitsButton:5,hideUnitSelect:5,hideVisualization:5,icon:3,interactionDisabled:5,label:1,messageOverrides:0,messages:0,referenceElement:1,snappingOptions:0,state:32,unit:1,unitOptions:0}}static{this.styles=A}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){O(this.viewModel.start())}render(){let{hideResetUnitsButton:i,messages:t,unit:l,unitOptions:s,viewModel:a}=this,{measurement:d,state:_}=a;return c`<div .ariaLabel=${t.aria.label} class=${b({[p.widget]:!0,[p.panel]:!0})} aria-live=polite role=region><arcgis-measurement-content .state=${a.displayState} .hintLabel=${t.hint} .unsupportedLabel=${t.unsupported} .items=${[{title:t.area,measurement:d.area},{title:t.perimeter,measurement:d.perimeter}]}>${g({hidden:this.hideUnitSelect,children:c`<arcgis-unit-select slot=settings .options=${s} .selectLabel=${t.unit} .value=${l} .canReset=${!i&&a.canResetUnit} .resetLabel=${t.reset} @arcgisInternalUnitReset=${()=>a.resetUnit()} @arcgisUnitSelectChange=${B=>{this.unit=B.detail}}></arcgis-unit-select>`})}${g({hidden:this.hideStartButton,children:c`<calcite-button slot=actions .disabled=${_==="unsupported"||_==="disabled"||this.interactionDisabled} @click=${this.start}>${t.newMeasurement}</calcite-button>`})}</arcgis-measurement-content></div>`}};y("arcgis-area-measurement-2d",m);return m},"analysis/AreaMeasurementAnalysis","core/accessorSupport/decorators","core/reactiveUtils","views/interactive/options/SnappingOptions",a,d,e,i,j,k)
2
+ import k from"./4RATJWRO.js";import{a as $,b as V,e as u,g as h,j as S,k as D}from"./BAOWXZTE.js";import{a as g}from"./POKO37D3.js";import j from"./6CRONNHI.js";import"./VJVKFKSG.js";import i from"./X4FA56YR.js";import{a as z}from"./7EMK74ZF.js";import{a as p}from"./JD74LG7K.js";import e from"./76ZJGD75.js";import d from"./PPURK2BH.js";import{h as x}from"./6N7PM73F.js";import"./7IHIG427.js";import a from"./2IYRSXZS.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import{P as v,R as b,X as y,a as w,b as c,x as f}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([C,{property:o,subclass:E},{watch:R},j,,,,U,{b:k,e:O},M])=>{var A=w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{.esri-widget--panel{min-width:0}}`,L=Object.defineProperty,P=Object.getOwnPropertyDescriptor,n=(e,i,t,l)=>{for(var s=l>1?void 0:l?P(i,t):i,a=e.length-1,d;a>=0;a--)(d=e[a])&&(s=(l?d(i,t,s):d(s))||s);return l&&s&&L(i,t,s),s},r=class extends M{constructor(){super(...arguments),this.snappingOptions=new j,this.supportedViewType="2d",this.unsupportedErrorMessage="The Area Measurement 2D component is only supported in 2D views."}initialize(){this.addHandles([R(()=>({analysis:this.analysis,unit:this._userUnit}),({analysis:e,unit:i})=>{i&&(e.unit=i)},{sync:!0,initial:!0}),R(()=>({analysisView:this.analysisView,snappingOptions:this.snappingOptions}),({analysisView:e,snappingOptions:i})=>{e&&"snappingOptions"in e&&(e.snappingOptions=i)},{sync:!0,initial:!0})])}get state(){let{analysis:e,disabled:i,operationState:t,ready:l,supported:s}=this,{valid:a}=e;return $({supported:s,disabled:i,ready:l,operationState:t,valid:a})}get displayState(){return V(this.state,!!this.analysis.geometry)}get measurement(){return{mode:this.analysisView?.result?.mode??"euclidean",area:h(this.analysis.valid?this.analysisView?.result?.area:void 0),perimeter:h(this.analysis.valid?this.analysisView?.result?.perimeter:void 0)}}get unitOptions(){return S(this._userUnitOptions,u,u)}set unitOptions(e){this._userUnitOptions=e}get unit(){return D({userUnit:this._userUnit,analysisUnit:this.analysis.unit,options:this.unitOptions,defaultUnit:this.defaultMeasurementSystem,viewUnit:this.view?.options.displayUnits.area})}set unit(e){this._userUnit=e}get canResetUnit(){return this._userUnit!=null||this.analysis.unit!=null}resetUnit(){this._userUnit=void 0,this.analysis.unit=null}async place(e){let i=this.analysisView;i&&(await i.place(e),k(e?.signal))}clearAnalysis(){this.analysis.geometry=null}constructAnalysis(){return new C}};n([o({readOnly:!0})],r.prototype,"state",1);n([o({readOnly:!0})],r.prototype,"displayState",1);n([o()],r.prototype,"measurement",1);n([o({type:j})],r.prototype,"snappingOptions",2);n([o()],r.prototype,"unitOptions",1);n([o()],r.prototype,"_userUnitOptions",2);n([o()],r.prototype,"unit",1);n([o()],r.prototype,"_userUnit",2);n([o({readOnly:!0})],r.prototype,"canResetUnit",1);r=n([E("components.area-measurement-2d.AreaMeasurement2dViewModel")],r);var Z=U(r),m=class extends v{constructor(){super(...arguments),this.viewModel=Z(this),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.hideStartButton=!1,this.hideResetUnitsButton=!1,this.hideUnitSelect=!1,this.hideVisualization=this.viewModel.hideVisualization,this.icon="measure-area",this.interactionDisabled=this.viewModel.interactionDisabled,this.messages=z({name:"area-measurement-2d",blocking:!0}),this.snappingOptions=this.viewModel.snappingOptions,this.state=this.viewModel.state,this.unit=this.viewModel.unit,this.unitOptions=this.viewModel.unitOptions,this.arcgisPropertyChange=x()("analysis","interactionDisabled","state"),this.arcgisReady=f()}static{this.properties={view:0,analysis:0,autoDestroyDisabled:5,hideStartButton:5,hideResetUnitsButton:5,hideUnitSelect:5,hideVisualization:5,icon:3,interactionDisabled:5,label:1,messageOverrides:0,messages:0,referenceElement:1,snappingOptions:0,state:32,unit:1,unitOptions:0}}static{this.styles=A}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){O(this.viewModel.start())}render(){let{hideResetUnitsButton:i,messages:t,unit:l,unitOptions:s,viewModel:a}=this,{measurement:d,state:_}=a;return c`<div .ariaLabel=${t.aria.label} class=${b({[p.widget]:!0,[p.panel]:!0})} aria-live=polite role=region><arcgis-measurement-content .state=${a.displayState} .hintLabel=${t.hint} .unsupportedLabel=${t.unsupported} .items=${[{title:t.area,measurement:d.area},{title:t.perimeter,measurement:d.perimeter}]}>${g({hidden:this.hideUnitSelect,children:c`<arcgis-unit-select slot=settings .options=${s} .selectLabel=${t.unit} .value=${l} .canReset=${!i&&a.canResetUnit} .resetLabel=${t.reset} @arcgisInternalUnitReset=${()=>a.resetUnit()} @arcgisUnitSelectChange=${B=>{this.unit=B.detail}}></arcgis-unit-select>`})}${g({hidden:this.hideStartButton,children:c`<calcite-button slot=actions .disabled=${_==="unsupported"||_==="disabled"||this.interactionDisabled} @click=${this.start}>${t.newMeasurement}</calcite-button>`})}</arcgis-measurement-content></div>`}};y("arcgis-area-measurement-2d",m);return m},"analysis/AreaMeasurementAnalysis","core/accessorSupport/decorators","core/reactiveUtils","views/interactive/options/SnappingOptions",a,d,e,i,j,k)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{g as p}from"./Y4WOZJQX.js";import{a as g}from"./D47546HM.js";import a from"./TMJX7DFH.js";import{a as $}from"./P2A4UHL6.js";import{h as C}from"./YK3OHMKT.js";import"./BYC7JUTS.js";import"./QUZTFUWM.js";import"./OM6LULIZ.js";import{B as w,N as v,O as f,P as G,U as R,X as b,a as y,b as l,n as i,p as o,r as h,x as u}from"./4GPS2BM4.js";import"./H6RQVSYM.js";export default $arcgis.t(([c,k,x,S,z,E,{b:n,f:L}])=>{var M=y`.aggregated-geometry-container{display:flex;align-items:center;justify-content:space-between}.geometry-heading{margin:0 0 var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}`,m=class extends G{constructor(){super(...arguments),this._messages=$({blocking:!0}),this.#r=`aggregated-geometry-graphics-${w()}`,this.#e=v(),this.autoDestroyDisabled=!1,this.emitsArcgisResultReady=!0,this.geometryGraphics=[],this.graphicsColor=new c(g),this.hideGraphics=!1,this.selectionSize=12,this.state="ready",this.arcgisPropertyChange=C()("hideGraphics","geometryGraphics","graphicsColor","selectionSize","state"),this.arcgisResultReady=u()}static{this.properties={autoDestroyDisabled:5,emitsArcgisResultReady:32,geometryGraphics:32,graphicsColor:[1,{converter:{fromAttribute:e=>c.fromString(e)??new c(g)}}],graphicsLayer:0,hasContent:32,heading:1,hideGraphics:5,messageOverrides:0,selectionSize:9,state:32,traceResult:32,view:32}}static{this.styles=M}#r;#t;#e;get#a(){let{parentElement:e}=this.el;if(e&&p(e))return e;let t=this.el.getRootNode();if(t instanceof ShadowRoot&&p(t.host))return t.host}get hasContent(){return!!this.traceResult?.aggregatedGeometry}clearResult(){i(()=>this.traceResult=void 0),this.#h()}async destroy(){try{this.clearResult()}finally{await this.manager.destroy()}}connectedCallback(){super.connectedCallback(),this.view&&this.graphicsLayer&&n(this.view,this.graphicsLayer)}load(){this.manager.onLifecycle(()=>{let e=this.#a;if(!e){o("warn",this,"This component must be used as a child of `arcgis-utility-network-trace-results`.");return}let t=s=>this.#c(s);return e.addEventListener("arcgisPropertyChange",t),i(()=>{this.traceResult=e.traceResult,this.view=e.view}),()=>{e.removeEventListener("arcgisPropertyChange",t)}}),this.traceResult&&this.#i()}willUpdate(e){if(e.has("traceResult")&&this.#i(),e.has("view")){let t=e.get("view");t?.map&&this.graphicsLayer&&t.map.remove(this.graphicsLayer),this.#i()}e.has("graphicsLayer")&&this.#m(e.get("graphicsLayer")),e.has("hideGraphics")&&this.#p(),(e.has("graphicsColor")||e.has("selectionSize"))&&this.#d()}loaded(){this.traceResult&&(this.traceResult.aggregatedGeometry||o("warn",this,h("traceResult.aggregatedGeometry")),this.view?this.view.map||o("error",this,h("The property `view` was provided, but `view.map` is null. Cannot draw aggregated geometry.")):o("error",this,h("view")))}#s(){if(!this.graphicsLayer)return;let e=this.geometryGraphics.filter(t=>!this.graphicsLayer.graphics.includes(t));this.graphicsLayer.addMany(e)}#c(e){if(e.target!==this.#a)return;let{target:t}=e;switch(e.detail.name){case"traceResult":i(()=>this.traceResult=t.traceResult);break;case"view":i(()=>this.view=t.view);break}}#l(e){let{line:t,multipoint:s,polygon:r}=e;i(()=>{this.geometryGraphics=[t,s,r].filter(a=>a!=null).map(a=>this.#g(a))})}#n(e){let t=this.#r,s=e.map?.findLayerById(t);return s&&L(s)?s:new x({id:t,listMode:"hide",title:t})}#g(e){return new k({geometry:e,symbol:this.#o(e)})}#o(e){let{selectionSize:t,graphicsColor:s}=this;switch(e.type){case"multipoint":return new E({color:s,size:t,outline:{color:s,width:0}});case"polygon":return new S({color:s,outline:{color:s,width:t}});case"polyline":return new z({color:s,width:t})}}#p(){this.hideGraphics?(this.graphicsLayer?.removeMany(this.geometryGraphics),this.#e.value?.open&&(this.#e.value.open=!1)):this.#s()}#m(e){e?.removeMany(this.geometryGraphics),this.hideGraphics||this.#s()}#h(){this.#e.value&&(this.#e.value.open=!1);let{graphicsLayer:e}=this;e&&(e.removeMany(this.geometryGraphics),e===this.#t&&(this.view?.map?.remove(e),this.graphicsLayer=void 0,this.#t=void 0)),i(()=>this.geometryGraphics=[]),i(()=>this.state="ready")}#i(){if(this.#h(),!this.traceResult)return;let e=()=>{i(()=>this.state="ready"),this.arcgisResultReady.emit()};if(!this.traceResult?.aggregatedGeometry||!this.view?.map){e();return}i(()=>this.state="loading"),this.#l(this.traceResult.aggregatedGeometry),this.graphicsLayer||(this.graphicsLayer=this.#n(this.view),this.#t=this.graphicsLayer,n(this.view,this.graphicsLayer)),this.hideGraphics||this.#s(),e()}#d(){this.geometryGraphics.forEach(e=>{let t=e.geometry;e.symbol=this.#o(t)})}render(){if(!this.hasContent)return null;let{graphicsColor:e,heading:t,hideGraphics:s,_messages:r}=this;return l`${t&&l`<div class="geometry-heading">${t}</div>`||""}<div class="aggregated-geometry-container"><calcite-switch .checked=${!s} .label=${r.labels.showGraphicsToggle} label-text-end=${r.showGraphics??R} @calciteSwitchChange=${()=>this.hideGraphics=!this.hideGraphics}></calcite-switch><calcite-swatch .color=${e.toCss()} .disabled=${s} id=geometry-color-swatch .label=${r.labels.aggregatedGeometryGraphicsColor}></calcite-swatch><calcite-popover closable .heading=${r.headings.setColor} .label=${r.headings.setColor} reference-element=geometry-color-swatch ${f(this.#e)}><calcite-color-picker alpha-channel channels-disabled clearable .disabled=${s} hex-disabled saved-disabled .value=${e.toCss(!0)} @calciteColorPickerChange=${a=>{let d=a.target.value;d&&(this.graphicsColor=new c(d))}}></calcite-color-picker></calcite-popover></div>`}};b("arcgis-utility-network-trace-aggregated-geometry-result-item",m);return m},"Color","Graphic","layers/GraphicsLayer","symbols/SimpleFillSymbol","symbols/SimpleLineSymbol","symbols/SimpleMarkerSymbol",a)
2
+ import{g as p}from"./Y4WOZJQX.js";import{a as g}from"./D47546HM.js";import a from"./TMJX7DFH.js";import{a as $}from"./7EMK74ZF.js";import{h as C}from"./6N7PM73F.js";import"./7IHIG427.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import{B as w,N as v,O as f,P as G,U as R,X as b,a as y,b as l,n as i,p as o,r as h,x as u}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([c,k,x,S,z,E,{b:n,f:L}])=>{var M=y`.aggregated-geometry-container{display:flex;align-items:center;justify-content:space-between}.geometry-heading{margin:0 0 var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}`,m=class extends G{constructor(){super(...arguments),this._messages=$({blocking:!0}),this.#r=`aggregated-geometry-graphics-${w()}`,this.#e=v(),this.autoDestroyDisabled=!1,this.emitsArcgisResultReady=!0,this.geometryGraphics=[],this.graphicsColor=new c(g),this.hideGraphics=!1,this.selectionSize=12,this.state="ready",this.arcgisPropertyChange=C()("hideGraphics","geometryGraphics","graphicsColor","selectionSize","state"),this.arcgisResultReady=u()}static{this.properties={autoDestroyDisabled:5,emitsArcgisResultReady:32,geometryGraphics:32,graphicsColor:[1,{converter:{fromAttribute:e=>c.fromString(e)??new c(g)}}],graphicsLayer:0,hasContent:32,heading:1,hideGraphics:5,messageOverrides:0,selectionSize:9,state:32,traceResult:32,view:32}}static{this.styles=M}#r;#t;#e;get#a(){let{parentElement:e}=this.el;if(e&&p(e))return e;let t=this.el.getRootNode();if(t instanceof ShadowRoot&&p(t.host))return t.host}get hasContent(){return!!this.traceResult?.aggregatedGeometry}clearResult(){i(()=>this.traceResult=void 0),this.#h()}async destroy(){try{this.clearResult()}finally{await this.manager.destroy()}}connectedCallback(){super.connectedCallback(),this.view&&this.graphicsLayer&&n(this.view,this.graphicsLayer)}load(){this.manager.onLifecycle(()=>{let e=this.#a;if(!e){o("warn",this,"This component must be used as a child of `arcgis-utility-network-trace-results`.");return}let t=s=>this.#c(s);return e.addEventListener("arcgisPropertyChange",t),i(()=>{this.traceResult=e.traceResult,this.view=e.view}),()=>{e.removeEventListener("arcgisPropertyChange",t)}}),this.traceResult&&this.#i()}willUpdate(e){if(e.has("traceResult")&&this.#i(),e.has("view")){let t=e.get("view");t?.map&&this.graphicsLayer&&t.map.remove(this.graphicsLayer),this.#i()}e.has("graphicsLayer")&&this.#m(e.get("graphicsLayer")),e.has("hideGraphics")&&this.#p(),(e.has("graphicsColor")||e.has("selectionSize"))&&this.#d()}loaded(){this.traceResult&&(this.traceResult.aggregatedGeometry||o("warn",this,h("traceResult.aggregatedGeometry")),this.view?this.view.map||o("error",this,h("The property `view` was provided, but `view.map` is null. Cannot draw aggregated geometry.")):o("error",this,h("view")))}#s(){if(!this.graphicsLayer)return;let e=this.geometryGraphics.filter(t=>!this.graphicsLayer.graphics.includes(t));this.graphicsLayer.addMany(e)}#c(e){if(e.target!==this.#a)return;let{target:t}=e;switch(e.detail.name){case"traceResult":i(()=>this.traceResult=t.traceResult);break;case"view":i(()=>this.view=t.view);break}}#l(e){let{line:t,multipoint:s,polygon:r}=e;i(()=>{this.geometryGraphics=[t,s,r].filter(a=>a!=null).map(a=>this.#g(a))})}#n(e){let t=this.#r,s=e.map?.findLayerById(t);return s&&L(s)?s:new x({id:t,listMode:"hide",title:t})}#g(e){return new k({geometry:e,symbol:this.#o(e)})}#o(e){let{selectionSize:t,graphicsColor:s}=this;switch(e.type){case"multipoint":return new E({color:s,size:t,outline:{color:s,width:0}});case"polygon":return new S({color:s,outline:{color:s,width:t}});case"polyline":return new z({color:s,width:t})}}#p(){this.hideGraphics?(this.graphicsLayer?.removeMany(this.geometryGraphics),this.#e.value?.open&&(this.#e.value.open=!1)):this.#s()}#m(e){e?.removeMany(this.geometryGraphics),this.hideGraphics||this.#s()}#h(){this.#e.value&&(this.#e.value.open=!1);let{graphicsLayer:e}=this;e&&(e.removeMany(this.geometryGraphics),e===this.#t&&(this.view?.map?.remove(e),this.graphicsLayer=void 0,this.#t=void 0)),i(()=>this.geometryGraphics=[]),i(()=>this.state="ready")}#i(){if(this.#h(),!this.traceResult)return;let e=()=>{i(()=>this.state="ready"),this.arcgisResultReady.emit()};if(!this.traceResult?.aggregatedGeometry||!this.view?.map){e();return}i(()=>this.state="loading"),this.#l(this.traceResult.aggregatedGeometry),this.graphicsLayer||(this.graphicsLayer=this.#n(this.view),this.#t=this.graphicsLayer,n(this.view,this.graphicsLayer)),this.hideGraphics||this.#s(),e()}#d(){this.geometryGraphics.forEach(e=>{let t=e.geometry;e.symbol=this.#o(t)})}render(){if(!this.hasContent)return null;let{graphicsColor:e,heading:t,hideGraphics:s,_messages:r}=this;return l`${t&&l`<div class="geometry-heading">${t}</div>`||""}<div class="aggregated-geometry-container"><calcite-switch .checked=${!s} .label=${r.labels.showGraphicsToggle} label-text-end=${r.showGraphics??R} @calciteSwitchChange=${()=>this.hideGraphics=!this.hideGraphics}></calcite-switch><calcite-swatch .color=${e.toCss()} .disabled=${s} id=geometry-color-swatch .label=${r.labels.aggregatedGeometryGraphicsColor}></calcite-swatch><calcite-popover closable .heading=${r.headings.setColor} .label=${r.headings.setColor} reference-element=geometry-color-swatch ${f(this.#e)}><calcite-color-picker alpha-channel channels-disabled clearable .disabled=${s} hex-disabled saved-disabled .value=${e.toCss(!0)} @calciteColorPickerChange=${a=>{let d=a.target.value;d&&(this.graphicsColor=new c(d))}}></calcite-color-picker></calcite-popover></div>`}};b("arcgis-utility-network-trace-aggregated-geometry-result-item",m);return m},"Color","Graphic","layers/GraphicsLayer","symbols/SimpleFillSymbol","symbols/SimpleLineSymbol","symbols/SimpleMarkerSymbol",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{P as a,X as t,a as i,b as o}from"./4GPS2BM4.js";import"./H6RQVSYM.js";var c=i`:host{min-width:100px;flex:1 1 auto;display:flex;align-items:center;justify-content:center}.slider-progress-container{position:relative;z-index:1;flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center}.progress{--arcgis-internal-video-player-progress-width: 2px;appearance:none;position:absolute;top:calc(50% - var(--arcgis-internal-video-player-progress-width) / 2);left:var(--calcite-spacing-xs);border:none;background:var(--calcite-color-border-1);cursor:pointer;width:calc(100% - var(--calcite-spacing-xs) * 2);height:var(--arcgis-internal-video-player-progress-width)}.progress::-webkit-progress-bar{background-color:var(--calcite-color-border-3)}.progress::-webkit-progress-value{background-color:var(--calcite-color-border-input)}.progress::-moz-progress-bar{background-color:var(--calcite-color-border-3)}.slider{--calcite-slider-track-color: transparent;width:100%}`,s=class extends a{static{this.properties={viewModel:0,buffered:9,messages:0,value:9}}static{this.styles=c}_onSliderInput({currentTarget:e}){if(typeof e.value=="number"){let r=e.value*this.viewModel.duration/100;this.viewModel.seekTo(r)}}render(){let{buffered:e,messages:r,value:l}=this;return o`<div class="slider-progress-container" dir=ltr><progress class="progress" max=1 .value=${`${e}`}></progress><div class="slider"><calcite-slider .label=${r.playbackProgress} max=100 min=0 .value=${l} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div></div>`}};t("arcgis-video-player-slider",s);export{s as VideoPlayerSlider};
2
+ import{P as a,X as t,a as i,b as o}from"./33CM77ZT.js";import"./H6RQVSYM.js";var c=i`:host{min-width:100px;flex:1 1 auto;display:flex;align-items:center;justify-content:center}.slider-progress-container{position:relative;z-index:1;flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center}.progress{--arcgis-internal-video-player-progress-width: 2px;appearance:none;position:absolute;top:calc(50% - var(--arcgis-internal-video-player-progress-width) / 2);left:var(--calcite-spacing-xs);border:none;background:var(--calcite-color-border-1);cursor:pointer;width:calc(100% - var(--calcite-spacing-xs) * 2);height:var(--arcgis-internal-video-player-progress-width)}.progress::-webkit-progress-bar{background-color:var(--calcite-color-border-3)}.progress::-webkit-progress-value{background-color:var(--calcite-color-border-input)}.progress::-moz-progress-bar{background-color:var(--calcite-color-border-3)}.slider{--calcite-slider-track-color: transparent;width:100%}`,s=class extends a{static{this.properties={viewModel:0,buffered:9,messages:0,value:9}}static{this.styles=c}_onSliderInput({currentTarget:e}){if(typeof e.value=="number"){let r=e.value*this.viewModel.duration/100;this.viewModel.seekTo(r)}}render(){let{buffered:e,messages:r,value:l}=this;return o`<div class="slider-progress-container" dir=ltr><progress class="progress" max=1 .value=${`${e}`}></progress><div class="slider"><calcite-slider .label=${r.playbackProgress} max=100 min=0 .value=${l} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div></div>`}};t("arcgis-video-player-slider",s);export{s as VideoPlayerSlider};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{P as c,X as o,a as s,b as a}from"./4GPS2BM4.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:p},d])=>{var f=s`.sr-label{display:flex;gap:var(--calcite-spacing-xs)}.invalid-wkid-text{color:var(--calcite-color-status-danger);font-size:var(--calcite-font-size--0)}`;function m(e){if(e==null)return!1;let t=e.wkid;return t!=null&&t>=2e3?!0:e.wkt2!=null||e.wkt!=null}function v(e){return e==null?e:Math.round(Number.parseFloat(e))}var l=class extends c{constructor(){super(...arguments),this._isValidSpatialReference=!0}static{this.properties={_isValidSpatialReference:16,_outSpatialReference:16,templateOptions:0,viewModel:0,messages:0}}static{this.styles=f}loaded(){this.manager.onLifecycle(()=>[p(()=>this.viewModel.outSpatialReference,t=>{this._outSpatialReference=t??void 0},{initial:!0})])}render(){let{messages:t}=this;return a`<div><calcite-label><div class="sr-label">${t.outSpatialReference}<calcite-link href=https://developers.arcgis.com/rest/services-reference/enterprise/using-spatial-references/ target=_blank>(WKID)</calcite-link></div><calcite-input-number data-input-name=outSpatialReference integer number-button-type=none .value=${this._outSpatialReference?.wkid?.toString()??""} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberInput=${({currentTarget:u})=>{let n=u.value;if(n===""){this.viewModel.outSpatialReference=null,this._isValidSpatialReference=!0;return}let i=v(n),r=Number.isNaN(i)||i==null?null:new d({wkid:i});this.viewModel.outSpatialReference=r,this._isValidSpatialReference=m(r)}}></calcite-input-number>${this._isValidSpatialReference?null:a`<div class="invalid-wkid-text">${t.invalidWkid}</div>`}</calcite-label></div>`}};o("arcgis-print-out-spatial-reference-input",l);return l},"core/reactiveUtils","geometry/SpatialReference")
2
+ import{P as c,X as o,a as s,b as a}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:p},d])=>{var f=s`.sr-label{display:flex;gap:var(--calcite-spacing-xs)}.invalid-wkid-text{color:var(--calcite-color-status-danger);font-size:var(--calcite-font-size--0)}`;function m(e){if(e==null)return!1;let t=e.wkid;return t!=null&&t>=2e3?!0:e.wkt2!=null||e.wkt!=null}function v(e){return e==null?e:Math.round(Number.parseFloat(e))}var l=class extends c{constructor(){super(...arguments),this._isValidSpatialReference=!0}static{this.properties={_isValidSpatialReference:16,_outSpatialReference:16,templateOptions:0,viewModel:0,messages:0}}static{this.styles=f}loaded(){this.manager.onLifecycle(()=>[p(()=>this.viewModel.outSpatialReference,t=>{this._outSpatialReference=t??void 0},{initial:!0})])}render(){let{messages:t}=this;return a`<div><calcite-label><div class="sr-label">${t.outSpatialReference}<calcite-link href=https://developers.arcgis.com/rest/services-reference/enterprise/using-spatial-references/ target=_blank>(WKID)</calcite-link></div><calcite-input-number data-input-name=outSpatialReference integer number-button-type=none .value=${this._outSpatialReference?.wkid?.toString()??""} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberInput=${({currentTarget:u})=>{let n=u.value;if(n===""){this.viewModel.outSpatialReference=null,this._isValidSpatialReference=!0;return}let i=v(n),r=Number.isNaN(i)||i==null?null:new d({wkid:i});this.viewModel.outSpatialReference=r,this._isValidSpatialReference=m(r)}}></calcite-input-number>${this._isValidSpatialReference?null:a`<div class="invalid-wkid-text">${t.invalidWkid}</div>`}</calcite-label></div>`}};o("arcgis-print-out-spatial-reference-input",l);return l},"core/reactiveUtils","geometry/SpatialReference")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as c}from"./POKO37D3.js";import{P as r,X as n,a,b as t}from"./4GPS2BM4.js";import"./H6RQVSYM.js";var h=a`:host{--calcite-label-margin-bottom: 0;gap:var(--calcite-spacing-md);flex-direction:column;display:flex}calcite-label{display:block}`,l=class extends r{constructor(){super(...arguments),this.scale="s",this.hideColorPicker=!1,this.hideModeSelect=!1}static{this.properties={options:0,scale:1,hideColorPicker:5,hideModeSelect:5,messages:0}}static{this.styles=h}render(){return t`${c({hidden:this.hideModeSelect,children:this._renderModeSelect()})}${c({hidden:this.hideColorPicker,children:t`<arcgis-color-select .color=${this.options.color} .label=${this.messages?.totalDuration?.colorLabel} @arcgisColorChanged=${e=>{this.options.color=e.detail}}></arcgis-color-select>`})}`}_renderModeSelect(){let{options:e,scale:s}=this,{mode:i}=e,o=this.messages?.totalDuration;return t`<calcite-label .scale=${s}>${o?.modeLabel}<calcite-segmented-control .scale=${s} width=full @calciteSegmentedControlChange=${d=>{e.mode=d.currentTarget.value}}><calcite-segmented-control-item value=hourly .checked=${i==="hourly"}>${o?.hourlyLabel}</calcite-segmented-control-item><calcite-segmented-control-item value=continuous .checked=${i==="continuous"}>${o?.continuousLabel}</calcite-segmented-control-item></calcite-segmented-control></calcite-label>`}};n("arcgis-shadow-cast-total-duration-config",l);export{l as ArcgisShadowCastTotalDurationConfig};
2
+ import{a as c}from"./POKO37D3.js";import{P as r,X as n,a,b as t}from"./33CM77ZT.js";import"./H6RQVSYM.js";var h=a`:host{--calcite-label-margin-bottom: 0;gap:var(--calcite-spacing-md);flex-direction:column;display:flex}calcite-label{display:block}`,l=class extends r{constructor(){super(...arguments),this.scale="s",this.hideColorPicker=!1,this.hideModeSelect=!1}static{this.properties={options:0,scale:1,hideColorPicker:5,hideModeSelect:5,messages:0}}static{this.styles=h}render(){return t`${c({hidden:this.hideModeSelect,children:this._renderModeSelect()})}${c({hidden:this.hideColorPicker,children:t`<arcgis-color-select .color=${this.options.color} .label=${this.messages?.totalDuration?.colorLabel} @arcgisColorChanged=${e=>{this.options.color=e.detail}}></arcgis-color-select>`})}`}_renderModeSelect(){let{options:e,scale:s}=this,{mode:i}=e,o=this.messages?.totalDuration;return t`<calcite-label .scale=${s}>${o?.modeLabel}<calcite-segmented-control .scale=${s} width=full @calciteSegmentedControlChange=${d=>{e.mode=d.currentTarget.value}}><calcite-segmented-control-item value=hourly .checked=${i==="hourly"}>${o?.hourlyLabel}</calcite-segmented-control-item><calcite-segmented-control-item value=continuous .checked=${i==="continuous"}>${o?.continuousLabel}</calcite-segmented-control-item></calcite-segmented-control></calcite-label>`}};n("arcgis-shadow-cast-total-duration-config",l);export{l as ArcgisShadowCastTotalDurationConfig};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as f,b as y,c as v}from"./XK6ENKJ5.js";import{a}from"./TN5C3MSL.js";import{a as p}from"./3NLHESH5.js";import b from"./UGVAEIPY.js";import{f as m}from"./YK3OHMKT.js";import"./BYC7JUTS.js";import"./QUZTFUWM.js";import"./OM6LULIZ.js";import{N as e,O as s,P as n,R as l,X as c,a as o,b as t,x as h}from"./4GPS2BM4.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:w},u,{c:d}])=>{var R=o`:host{width:100%;height:100%}`,g=d(u,{omitProps:["container","focusRegionVisible","focusRegionShortcutEnabled","navigation","scale","ui"]}),r=class extends n{constructor(){super(),this._containerRef=e(),this._direction=m(),this._mapRef=e(),this._slotGroupRefs=y(),this.autoDestroyDisabled=!1,this.view=g(this),this.attributionMode=this.view.attributionMode,this.ready=this.view.ready,this.layer=this.view.layer,this.map=this.view.map,this.operationalDataVisible=this.view.operationalDataVisible,this.arcgisViewReadyChange=h()}static{this.properties={autoDestroyDisabled:5,view:32,aria:0,attributionMode:1,ready:36,layer:0,map:0,operationalDataVisible:5}}static{this.styles=[p,f,R]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}async destroy(){await this.manager.destroy()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.manager.onLifecycle(()=>[w(()=>this.layer,()=>{this.layer&&this.view&&(this.view.layer=this.layer,this.layer.loaded||this.layer.load())},{initial:!0}),w(()=>this.view.ready,()=>{this.view.ready&&this.arcgisViewReadyChange.emit()},{initial:this.view.ready})])}renderMain(){return t`<div class=${`root ${a.base}`} ${s(this._mapRef)}></div>`}render(){return t`${this.renderMain()}<section class=${l(a.containerUI)} ${s(this._containerRef)}>${v({direction:this._direction,slotGroupRefs:this._slotGroupRefs})}</section>`}};c("arcgis-video",r);return r},"core/reactiveUtils","views/VideoView",b)
2
+ import{a as f,b as y,c as v}from"./7ZT4OUUW.js";import{a}from"./TN5C3MSL.js";import{a as p}from"./MRD6F6I3.js";import b from"./76ZJGD75.js";import{f as m}from"./6N7PM73F.js";import"./7IHIG427.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import{N as e,O as s,P as n,R as l,X as c,a as o,b as t,x as h}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:w},u,{c:d}])=>{var R=o`:host{width:100%;height:100%}`,g=d(u,{omitProps:["container","focusRegionVisible","focusRegionShortcutEnabled","navigation","scale","ui"]}),r=class extends n{constructor(){super(),this._containerRef=e(),this._direction=m(),this._mapRef=e(),this._slotGroupRefs=y(),this.autoDestroyDisabled=!1,this.view=g(this),this.attributionMode=this.view.attributionMode,this.ready=this.view.ready,this.layer=this.view.layer,this.map=this.view.map,this.operationalDataVisible=this.view.operationalDataVisible,this.arcgisViewReadyChange=h()}static{this.properties={autoDestroyDisabled:5,view:32,aria:0,attributionMode:1,ready:36,layer:0,map:0,operationalDataVisible:5}}static{this.styles=[p,f,R]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}async destroy(){await this.manager.destroy()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.manager.onLifecycle(()=>[w(()=>this.layer,()=>{this.layer&&this.view&&(this.view.layer=this.layer,this.layer.loaded||this.layer.load())},{initial:!0}),w(()=>this.view.ready,()=>{this.view.ready&&this.arcgisViewReadyChange.emit()},{initial:this.view.ready})])}renderMain(){return t`<div class=${`root ${a.base}`} ${s(this._mapRef)}></div>`}render(){return t`${this.renderMain()}<section class=${l(a.containerUI)} ${s(this._containerRef)}>${v({direction:this._direction,slotGroupRefs:this._slotGroupRefs})}</section>`}};c("arcgis-video",r);return r},"core/reactiveUtils","views/VideoView",b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as d}from"./YK3OHMKT.js";export default $arcgis.t(([{watch:y}])=>{function p(a,r){return d((m,n)=>(n.onLifecycle(()=>y(()=>({layerId:a.mapLayerId,viewReady:a.view?.ready}),({layerId:e,viewReady:o})=>{if(!o)return;let i=a.view;if(!e){r(void 0);return}let t=i?.map?.findLayerById(e)??i?.map?.findTableById(e);r(t)},{initial:!0})),a.mapLayerId))}return p},"core/reactiveUtils")
2
+ import{b as d}from"./6N7PM73F.js";export default $arcgis.t(([{watch:y}])=>{function p(a,r){return d((m,n)=>(n.onLifecycle(()=>y(()=>({layerId:a.mapLayerId,viewReady:a.view?.ready}),({layerId:e,viewReady:o})=>{if(!o)return;let i=a.view;if(!e){r(void 0);return}let t=i?.map?.findLayerById(e)??i?.map?.findTableById(e);r(t)},{initial:!0})),a.mapLayerId))}return p},"core/reactiveUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import f from"./Y75GEEOM.js";import{a as _}from"./XK6ENKJ5.js";import{a as w}from"./TN5C3MSL.js";import{a as V}from"./3NLHESH5.js";import e from"./ZW3ZNFYI.js";import"./VJVKFKSG.js";import d from"./7LPF5IGM.js";import c from"./UGVAEIPY.js";import"./YK3OHMKT.js";import"./BYC7JUTS.js";import b from"./4BLOLOQK.js";import"./QUZTFUWM.js";import"./OM6LULIZ.js";import{N as o,O as n,P as m,R as h,X as p,b as a,x as r}from"./4GPS2BM4.js";import"./H6RQVSYM.js";export default $arcgis.t(([D,{watch:s},M,I,k,{c:u,d:g,e:d,f:y,g:f,h:b},{c:c,e:v},t,,{a:C,b:E,c:R,d:P}])=>{var F=c(k,{}),L=c(I,{}),l=class extends m{constructor(){super(),this._attributionMode=null,this._containerRef=o(),this._mapRef=o(),this._uiController=new C(this),this._cameraProperties={},this.arcgisLoadError=R(this),this.arcgisViewReadyError=P(this),this._map=F(this),this.view=L(this),this.allLayerViews=this.view.allLayerViews,this.alphaCompositingEnabled=this.view.alphaCompositingEnabled,this.analyses=this.view.analyses,this.animationsDisabled=this.view.animationsEnabled,this.autoDestroyDisabled=!1,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.canZoomIn=this.view.canZoomIn,this.canZoomOut=this.view.canZoomOut,this.clippingArea=this.view.clippingArea,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.environment=this.view.environment,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.groundView=this.view.groundView,this.highlights=this.view.highlights,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.options=this.view.options,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.popupComponentEnabled=!1,this.qualityProfile=this.view.qualityProfile,this.ready=this.view.ready,this.selectionManager=this.view.selectionManager,this.focusRegionVisible=this.view.focusRegionVisible,this.slotGroupRefs=this._uiController.slotGroupRefs,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.viewingMode=this.view.viewingMode,this.arcgisViewAnalysisViewCreate=t(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=t(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=t(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=t(()=>this.view,"click"),this.arcgisViewDoubleClick=t(()=>this.view,"double-click"),this.arcgisViewDoubleTapDrag=t(()=>this.view,"double-tap-drag"),this.arcgisViewFocusRegionSelect=t(()=>this.view,"focus-region-select"),this.arcgisViewDrag=t(()=>this.view,"drag"),this.arcgisViewHold=t(()=>this.view,"hold"),this.arcgisViewImmediateClick=t(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=t(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=t(()=>this.view,"key-down"),this.arcgisViewKeyUp=t(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=t(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=t(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=t(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=t(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=t(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=t(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=t(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=t(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=t(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.arcgisViewVerticalTwoFingerDrag=t(()=>this.view,"vertical-two-finger-drag"),E(this),this.view.ui={components:[]}}static{this.properties={_map:16,aria:0,view:32,allLayerViews:32,alphaCompositingEnabled:5,analyses:0,animationsDisabled:5,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,basemap:1,basemapView:0,camera:0,cameraFov:9,cameraHeading:9,cameraPosition:1,cameraTilt:9,canZoomIn:36,canZoomOut:36,center:1,clippingArea:0,constraints:0,displayFilterDisabled:5,environment:0,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,groundView:32,hideAttribution:5,highlights:0,interacting:32,itemId:3,layerViews:32,magnifier:32,map:0,navigating:32,navigation:0,options:0,padding:0,performanceInfo:32,popup:0,popupElement:32,popupDisabled:5,popupComponentEnabled:5,qualityProfile:1,ready:36,resolution:32,selectionManager:32,focusRegionVisible:5,focusRegionShortcutEnabled:5,focusRegion:32,scale:9,slotGroupRefs:32,spatialReference:0,stationary:32,suspended:39,theme:0,timeExtent:0,timeZone:1,updating:32,viewingMode:1,viewpoint:0,visibleArea:32,zoom:9,loadErrorSources:0}}static{this.styles=[V,_]}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}get aria(){return this.view?.aria??null}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get attributionMode(){return this._attributionMode}set attributionMode(i){this._attributionMode=i,i!=="auto"&&(this.view.attributionMode=i)}get camera(){return this.view.camera}set camera(i){u(this.camera,i)||(this.view.camera=i)}get cameraFov(){let{view:i}=this;return i.ready?this.view.camera?.fov:this._cameraProperties.fov}set cameraFov(i){i!=null&&this._mutateCamera(e=>{e.fov=i})}get cameraHeading(){let{view:i}=this;return i.ready?i.camera?.heading:this._cameraProperties.heading}set cameraHeading(i){i!=null&&this._mutateCamera(e=>{e.heading=i})}get cameraPosition(){let{view:i}=this;if(i.ready)return i.camera?.position;let{position:e}=this._cameraProperties;return e?new M(e):void 0}set cameraPosition(i){let e=b(this.view.camera?.position,i);e&&this._mutateCamera(A=>{A.position=e})}get cameraTilt(){let{view:i}=this;return i.ready?i.camera?.tilt:this._cameraProperties.tilt}set cameraTilt(i){i!=null&&this._mutateCamera(e=>{e.tilt=i})}get center(){return this.view.center}set center(i){if(d(i,this._center))return;this._center=y(i);let e=f(i,this.view);e&&(this.view.center=e)}get extent(){return this.view.extent}set extent(i){i&&!this.extent.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map?.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){v(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get performanceInfo(){return this.view.performanceInfo}get popupElement(){return this._uiController.popupElement||null}get resolution(){return this.view.resolution}get focusRegion(){return this.view.focusRegion}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get updating(){return this.view.updating}get viewpoint(){return this.view.viewpoint}set viewpoint(i){g(this.viewpoint,i)&&(this.view.viewpoint=i)}get visibleArea(){return this.view.visibleArea}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async fetchPopupFeatures(i,e){return this.view.fetchPopupFeatures(i,e)}async goTo(i,e){return await this.view.goTo(i,e)}async hitTest(i,e){return await this.view.hitTest(i,e)}async openPopup(i){await this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i,e){return this.view.toMap(i,e)}toScreen(i){return this.view.toScreen(i)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,e){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(e)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view.whenLayerView(i)}async zoomIn(){this.view.zoomIn()}async zoomOut(){this.view.zoomOut()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,e=>{e&&(this._map=e)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,e=>{e&&(this.camera=this.view.camera.clone().set(this._cameraProperties),this._cameraProperties={}),this.arcgisViewReadyChange.emit()},{initial:this.view.ready}),s(()=>this.view.attributionHeight,e=>{this._uiController.handleAttributionHeightChange(e)},{initial:!0})])}_mutateCamera(i){if(!this.view.ready){i(this._cameraProperties);return}let e=this.view.camera?.clone()??new D;i(e),this.camera=e}renderMain(){return a`<div class=${h(w.base)} ${n(this._mapRef)}></div>`}render(){return a`${this.renderMain()}<section class=${h(w.containerUI)} ${n(this._containerRef)}>${this._uiController.render()}</section>`}};p("arcgis-scene",l);return l},"Camera","core/reactiveUtils","geometry/Point","views/SceneView","WebScene",b,c,d,e,f)
2
+ import f from"./OSV6AIA4.js";import{a as _}from"./7ZT4OUUW.js";import{a as w}from"./TN5C3MSL.js";import{a as V}from"./MRD6F6I3.js";import e from"./6CRONNHI.js";import"./VJVKFKSG.js";import d from"./NBGFUVYW.js";import c from"./76ZJGD75.js";import"./6N7PM73F.js";import"./7IHIG427.js";import b from"./2IYRSXZS.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import{N as o,O as n,P as m,R as h,X as p,b as a,x as r}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([D,{watch:s},M,I,k,{c:u,d:g,e:d,f:y,g:f,h:b},{c:c,e:v},t,,{a:C,b:E,c:R,d:P}])=>{var F=c(k,{}),L=c(I,{}),l=class extends m{constructor(){super(),this._attributionMode=null,this._containerRef=o(),this._mapRef=o(),this._uiController=new C(this),this._cameraProperties={},this.arcgisLoadError=R(this),this.arcgisViewReadyError=P(this),this._map=F(this),this.view=L(this),this.allLayerViews=this.view.allLayerViews,this.alphaCompositingEnabled=this.view.alphaCompositingEnabled,this.analyses=this.view.analyses,this.animationsDisabled=this.view.animationsEnabled,this.autoDestroyDisabled=!1,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.canZoomIn=this.view.canZoomIn,this.canZoomOut=this.view.canZoomOut,this.clippingArea=this.view.clippingArea,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.environment=this.view.environment,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.groundView=this.view.groundView,this.highlights=this.view.highlights,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.options=this.view.options,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.popupComponentEnabled=!1,this.qualityProfile=this.view.qualityProfile,this.ready=this.view.ready,this.selectionManager=this.view.selectionManager,this.focusRegionVisible=this.view.focusRegionVisible,this.slotGroupRefs=this._uiController.slotGroupRefs,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.viewingMode=this.view.viewingMode,this.arcgisViewAnalysisViewCreate=t(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=t(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=t(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=t(()=>this.view,"click"),this.arcgisViewDoubleClick=t(()=>this.view,"double-click"),this.arcgisViewDoubleTapDrag=t(()=>this.view,"double-tap-drag"),this.arcgisViewFocusRegionSelect=t(()=>this.view,"focus-region-select"),this.arcgisViewDrag=t(()=>this.view,"drag"),this.arcgisViewHold=t(()=>this.view,"hold"),this.arcgisViewImmediateClick=t(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=t(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=t(()=>this.view,"key-down"),this.arcgisViewKeyUp=t(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=t(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=t(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=t(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=t(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=t(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=t(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=t(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=t(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=t(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.arcgisViewVerticalTwoFingerDrag=t(()=>this.view,"vertical-two-finger-drag"),E(this),this.view.ui={components:[]}}static{this.properties={_map:16,aria:0,view:32,allLayerViews:32,alphaCompositingEnabled:5,analyses:0,animationsDisabled:5,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,basemap:1,basemapView:0,camera:0,cameraFov:9,cameraHeading:9,cameraPosition:1,cameraTilt:9,canZoomIn:36,canZoomOut:36,center:1,clippingArea:0,constraints:0,displayFilterDisabled:5,environment:0,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,groundView:32,hideAttribution:5,highlights:0,interacting:32,itemId:3,layerViews:32,magnifier:32,map:0,navigating:32,navigation:0,options:0,padding:0,performanceInfo:32,popup:0,popupElement:32,popupDisabled:5,popupComponentEnabled:5,qualityProfile:1,ready:36,resolution:32,selectionManager:32,focusRegionVisible:5,focusRegionShortcutEnabled:5,focusRegion:32,scale:9,slotGroupRefs:32,spatialReference:0,stationary:32,suspended:39,theme:0,timeExtent:0,timeZone:1,updating:32,viewingMode:1,viewpoint:0,visibleArea:32,zoom:9,loadErrorSources:0}}static{this.styles=[V,_]}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}get aria(){return this.view?.aria??null}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get attributionMode(){return this._attributionMode}set attributionMode(i){this._attributionMode=i,i!=="auto"&&(this.view.attributionMode=i)}get camera(){return this.view.camera}set camera(i){u(this.camera,i)||(this.view.camera=i)}get cameraFov(){let{view:i}=this;return i.ready?this.view.camera?.fov:this._cameraProperties.fov}set cameraFov(i){i!=null&&this._mutateCamera(e=>{e.fov=i})}get cameraHeading(){let{view:i}=this;return i.ready?i.camera?.heading:this._cameraProperties.heading}set cameraHeading(i){i!=null&&this._mutateCamera(e=>{e.heading=i})}get cameraPosition(){let{view:i}=this;if(i.ready)return i.camera?.position;let{position:e}=this._cameraProperties;return e?new M(e):void 0}set cameraPosition(i){let e=b(this.view.camera?.position,i);e&&this._mutateCamera(A=>{A.position=e})}get cameraTilt(){let{view:i}=this;return i.ready?i.camera?.tilt:this._cameraProperties.tilt}set cameraTilt(i){i!=null&&this._mutateCamera(e=>{e.tilt=i})}get center(){return this.view.center}set center(i){if(d(i,this._center))return;this._center=y(i);let e=f(i,this.view);e&&(this.view.center=e)}get extent(){return this.view.extent}set extent(i){i&&!this.extent.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map?.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){v(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get performanceInfo(){return this.view.performanceInfo}get popupElement(){return this._uiController.popupElement||null}get resolution(){return this.view.resolution}get focusRegion(){return this.view.focusRegion}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get updating(){return this.view.updating}get viewpoint(){return this.view.viewpoint}set viewpoint(i){g(this.viewpoint,i)&&(this.view.viewpoint=i)}get visibleArea(){return this.view.visibleArea}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async fetchPopupFeatures(i,e){return this.view.fetchPopupFeatures(i,e)}async goTo(i,e){return await this.view.goTo(i,e)}async hitTest(i,e){return await this.view.hitTest(i,e)}async openPopup(i){await this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i,e){return this.view.toMap(i,e)}toScreen(i){return this.view.toScreen(i)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,e){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(e)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view.whenLayerView(i)}async zoomIn(){this.view.zoomIn()}async zoomOut(){this.view.zoomOut()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,e=>{e&&(this._map=e)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,e=>{e&&(this.camera=this.view.camera.clone().set(this._cameraProperties),this._cameraProperties={}),this.arcgisViewReadyChange.emit()},{initial:this.view.ready}),s(()=>this.view.attributionHeight,e=>{this._uiController.handleAttributionHeightChange(e)},{initial:!0})])}_mutateCamera(i){if(!this.view.ready){i(this._cameraProperties);return}let e=this.view.camera?.clone()??new D;i(e),this.camera=e}renderMain(){return a`<div class=${h(w.base)} ${n(this._mapRef)}></div>`}render(){return a`${this.renderMain()}<section class=${h(w.containerUI)} ${n(this._containerRef)}>${this._uiController.render()}</section>`}};p("arcgis-scene",l);return l},"Camera","core/reactiveUtils","geometry/Point","views/SceneView","WebScene",b,c,d,e,f)