@arcgis/map-components 5.0.0-next.140 → 5.0.0-next.142

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 (496) hide show
  1. package/dist/cdn/{XKWS6D65.js → 22CZLAEM.js} +2 -2
  2. package/dist/cdn/{XD2BQKRE.js → 2EBLGAWT.js} +1 -1
  3. package/dist/cdn/{X3ZC2F4X.js → 2FMOZWJM.js} +2 -2
  4. package/dist/cdn/{QX6BR2MA.js → 2OBZ3VK6.js} +2 -2
  5. package/dist/cdn/{GH4SHYHP.js → 2P4OAW3B.js} +2 -2
  6. package/dist/cdn/{KKZPAVU6.js → 2P5D4L5A.js} +2 -2
  7. package/dist/cdn/{PVFFUYWU.js → 2VTXKQ5K.js} +2 -2
  8. package/dist/cdn/{22TSK5QA.js → 2YAQSIH2.js} +2 -2
  9. package/dist/cdn/{466KPPHF.js → 33ARRZVS.js} +2 -2
  10. package/dist/cdn/{63EBX45D.js → 36W2DPLC.js} +2 -2
  11. package/dist/cdn/{UGAKVKNR.js → 3C6LXCKD.js} +2 -2
  12. package/dist/cdn/{J3FQT7ST.js → 3DBJC5H7.js} +2 -2
  13. package/dist/cdn/{7647LPE5.js → 3DJ3DOIE.js} +2 -2
  14. package/dist/cdn/{VAVFRDA2.js → 3MAZ66M6.js} +2 -2
  15. package/dist/cdn/{3E5XVHCQ.js → 3N5OQDZ3.js} +2 -2
  16. package/dist/cdn/{SPBSBLRE.js → 3NOSNCSC.js} +2 -2
  17. package/dist/cdn/{L2BTMW55.js → 3P6MVXER.js} +2 -2
  18. package/dist/cdn/{5WODHATV.js → 3TEV62U7.js} +2 -2
  19. package/dist/cdn/{MCE37LCI.js → 3UQENHA7.js} +2 -2
  20. package/dist/cdn/{VKICCN2I.js → 4HCCE56K.js} +2 -2
  21. package/dist/cdn/{R2AQTLJB.js → 4IC2H2NV.js} +2 -2
  22. package/dist/cdn/{Z66X4MJA.js → 4UVSVND6.js} +2 -2
  23. package/dist/cdn/{UNKCCWTD.js → 53QED3IM.js} +2 -2
  24. package/dist/cdn/{OC2P77LR.js → 56IKOG3V.js} +2 -2
  25. package/dist/cdn/{M4WR3PMZ.js → 5RBEQUEU.js} +2 -2
  26. package/dist/cdn/{JEH23CRZ.js → 5WAA4JMX.js} +2 -2
  27. package/dist/cdn/{57KHM7P2.js → 6B3J6F6V.js} +2 -2
  28. package/dist/cdn/{IVWHRTPH.js → 6ELHZPIJ.js} +2 -2
  29. package/dist/cdn/{Z5FKAWPV.js → 6IYKLL4K.js} +2 -2
  30. package/dist/cdn/{CM5MTDKS.js → 6LQKZA2B.js} +1 -1
  31. package/dist/cdn/{JL5UQRSW.js → 6NUPEJ6N.js} +2 -2
  32. package/dist/cdn/{SPOCFPPY.js → 6VVJODW3.js} +2 -2
  33. package/dist/cdn/{7YZAEWSF.js → 6W7JDGHT.js} +2 -2
  34. package/dist/cdn/{H335L73Y.js → 6YM5QBYI.js} +2 -2
  35. package/dist/cdn/6ZID7XVU.js +4 -0
  36. package/dist/cdn/{ZCR7B4RS.js → 74FB7OQT.js} +2 -2
  37. package/dist/cdn/{T6DLAA7U.js → 75TLVZLA.js} +2 -2
  38. package/dist/cdn/{Z2FNGY2B.js → 76SITM2G.js} +2 -2
  39. package/dist/cdn/{CM23L57U.js → 776FWWUU.js} +2 -2
  40. package/dist/cdn/{L73EFU5S.js → 7GU747FF.js} +2 -2
  41. package/dist/cdn/{ZCYGMQHV.js → 7HNHM7IC.js} +2 -2
  42. package/dist/cdn/{GP2RFUYT.js → 7J5OCOPD.js} +2 -2
  43. package/dist/cdn/{SVBAAYVV.js → 7M4B3NVY.js} +2 -2
  44. package/dist/cdn/{G7RQ35FO.js → 7MD3L7YJ.js} +2 -2
  45. package/dist/cdn/{KKWEQ5X3.js → 7Q2YI3IA.js} +2 -2
  46. package/dist/cdn/7QQYXUTS.js +4 -0
  47. package/dist/cdn/{5WCR7MZZ.js → 7TA2OQKO.js} +2 -2
  48. package/dist/cdn/{5R3QDCB2.js → 7U5INN3W.js} +2 -2
  49. package/dist/cdn/{2MPABRAQ.js → 7WE2HANQ.js} +2 -2
  50. package/dist/cdn/{NGHXV27N.js → 7XF3VBZN.js} +2 -2
  51. package/dist/cdn/{DSFELWZZ.js → A5EE5EP4.js} +2 -2
  52. package/dist/cdn/{EXKTZLIJ.js → ADV42HI2.js} +1 -1
  53. package/dist/cdn/{VQCDJATM.js → AKDCZWJR.js} +1 -1
  54. package/dist/cdn/{YENXRSE7.js → ALEAKGXV.js} +2 -2
  55. package/dist/cdn/{EZ6VYH7W.js → AN226CHR.js} +2 -2
  56. package/dist/cdn/{ONUIMIK6.js → AQWFM5DB.js} +2 -2
  57. package/dist/cdn/{7F7RX6F4.js → B7JI5XWC.js} +2 -2
  58. package/dist/cdn/{5G2YMMGK.js → BFOWCZJF.js} +2 -2
  59. package/dist/cdn/{PUNIL2P6.js → BG77GFWC.js} +2 -2
  60. package/dist/cdn/{243QB2YV.js → BH4TMA6Y.js} +2 -2
  61. package/dist/cdn/{MQO7ZTQO.js → BNCIPXJO.js} +2 -2
  62. package/dist/cdn/{SF2MSFQE.js → BR5BMR3W.js} +2 -2
  63. package/dist/cdn/{J2QLKP57.js → BSUTODWD.js} +2 -2
  64. package/dist/cdn/{QVL7LIGM.js → C2RAYB3P.js} +2 -2
  65. package/dist/cdn/{AKLPCQ4H.js → C33NXUNI.js} +2 -2
  66. package/dist/cdn/{NFZSOJTQ.js → C7AHHDLW.js} +2 -2
  67. package/dist/cdn/{76U6YCZU.js → CGV7A5ZG.js} +2 -2
  68. package/dist/cdn/{MDOFMA7T.js → CMZQVTZU.js} +1 -1
  69. package/dist/cdn/{26AJIIOQ.js → CNB32K4U.js} +2 -2
  70. package/dist/cdn/{BGPNPQ2W.js → CWI7W5M2.js} +2 -2
  71. package/dist/cdn/{5HIUNSC5.js → D47AJJHP.js} +2 -2
  72. package/dist/cdn/{774HFEEA.js → D4XKEUDI.js} +1 -1
  73. package/dist/cdn/{B674LNPS.js → DAJE4YUU.js} +2 -2
  74. package/dist/cdn/{QYSX6MLE.js → DCNI6XLZ.js} +2 -2
  75. package/dist/cdn/{7UGMXV3V.js → DTFTIXYH.js} +2 -2
  76. package/dist/cdn/{J4ZITQUV.js → DYMUYEND.js} +2 -2
  77. package/dist/cdn/{GSWN36WH.js → DYVCXSPY.js} +2 -2
  78. package/dist/cdn/{2WTAQVZE.js → E5UAOPM4.js} +2 -2
  79. package/dist/cdn/{5JARBP3A.js → E7ZAT3OW.js} +2 -2
  80. package/dist/cdn/{WXK2WVVT.js → EBW7WZLA.js} +2 -2
  81. package/dist/cdn/{4RVF4WUI.js → F2HJAK2X.js} +2 -2
  82. package/dist/cdn/{BGO2KMQB.js → FAIWBQNC.js} +2 -2
  83. package/dist/cdn/{XHAYQGN6.js → FB46D345.js} +2 -2
  84. package/dist/cdn/{MU5ME6Z6.js → FEPS33GO.js} +1 -1
  85. package/dist/cdn/{7CPHMNOD.js → FKR7TA3J.js} +2 -2
  86. package/dist/cdn/{MODMKBXB.js → FVTGB7EQ.js} +2 -2
  87. package/dist/cdn/{NCCHUPW3.js → FWPMWGTC.js} +2 -2
  88. package/dist/cdn/{ZEC2W4KR.js → G3QWEHJY.js} +2 -2
  89. package/dist/cdn/{WAU5DE64.js → G4NIJ44B.js} +2 -2
  90. package/dist/cdn/{4GEALCDL.js → GGXTZA5V.js} +2 -2
  91. package/dist/cdn/{LLJREQGD.js → GL6YH6RT.js} +2 -2
  92. package/dist/cdn/{D75JH4XZ.js → GMNX5UIH.js} +2 -2
  93. package/dist/cdn/{U2LSADU3.js → GNNXSQXI.js} +2 -2
  94. package/dist/cdn/{346AMK7Y.js → GQ22WP3N.js} +2 -2
  95. package/dist/cdn/{PEVJNLT7.js → GQXEXP2G.js} +2 -2
  96. package/dist/cdn/{TUH2CZK6.js → GUSHQXBL.js} +2 -2
  97. package/dist/cdn/{TPOWYDNW.js → H4SIW4BD.js} +2 -2
  98. package/dist/cdn/{BUN3KP7U.js → HI7TYDHA.js} +2 -2
  99. package/dist/cdn/{WDZSFILV.js → HVKTXMYZ.js} +2 -2
  100. package/dist/cdn/{SSJ43X5M.js → HXRSJIDZ.js} +2 -2
  101. package/dist/cdn/{OOOFJWUU.js → HZVM5A25.js} +2 -2
  102. package/dist/cdn/{3WNGSHYJ.js → I6N7O7AI.js} +2 -2
  103. package/dist/cdn/{P6TAK3SO.js → I7QCJQMW.js} +2 -2
  104. package/dist/cdn/{T5OG56GC.js → IE6CR4OZ.js} +2 -2
  105. package/dist/cdn/{KDOWQOUI.js → INDQWDIL.js} +2 -2
  106. package/dist/cdn/{Q3BL4BIL.js → ISALACQ6.js} +2 -2
  107. package/dist/cdn/{J55DZEGY.js → IUC4C3MO.js} +2 -2
  108. package/dist/cdn/{77PXENYB.js → IV3JTVUM.js} +2 -2
  109. package/dist/cdn/{LM6YF4VW.js → IW7FKOUU.js} +2 -2
  110. package/dist/cdn/{XVKNUHRV.js → J2RGONDI.js} +2 -2
  111. package/dist/cdn/{QE5AUNFR.js → J3YMIFRC.js} +2 -2
  112. package/dist/cdn/{O5RDIEMJ.js → JCPRN2PQ.js} +2 -2
  113. package/dist/cdn/{OWHJNWDS.js → JDH34JTX.js} +2 -2
  114. package/dist/cdn/{6FHQUK7D.js → JEDBWVS3.js} +2 -2
  115. package/dist/cdn/{WWMRUJLG.js → JHUJXMKN.js} +2 -2
  116. package/dist/cdn/{XIQ2WZEH.js → JKODGLZH.js} +2 -2
  117. package/dist/cdn/{BJRLKCKL.js → JQPRX5IN.js} +2 -2
  118. package/dist/cdn/{U24DWHA5.js → JTP2GGUE.js} +2 -2
  119. package/dist/cdn/JYTEMI76.js +4 -0
  120. package/dist/cdn/{G7FRTFJG.js → K22MSV4G.js} +2 -2
  121. package/dist/cdn/{2PAOB3VM.js → K6B2ETLN.js} +2 -2
  122. package/dist/cdn/{HZR4TFON.js → KCKQY6M4.js} +2 -2
  123. package/dist/cdn/{LIGYZHHT.js → KCOQH7QA.js} +2 -2
  124. package/dist/cdn/{K5SCVP46.js → KDTNA6IP.js} +2 -2
  125. package/dist/cdn/{L6GCIAMQ.js → KFFW3WCH.js} +2 -2
  126. package/dist/cdn/{DFJABMIY.js → KJRZG42K.js} +1 -1
  127. package/dist/cdn/{OTJ3MXFY.js → KO53FICH.js} +2 -2
  128. package/dist/cdn/{XRKFN6ZB.js → KP7OYET2.js} +2 -2
  129. package/dist/cdn/{3BUQVGIM.js → KP7TINGD.js} +2 -2
  130. package/dist/cdn/{7KSGX5IX.js → KQET3K77.js} +2 -2
  131. package/dist/cdn/KRKXVMOM.js +4 -0
  132. package/dist/cdn/{RBU5MAH4.js → KRUOABI2.js} +1 -1
  133. package/dist/cdn/{SJPVDMRR.js → L5JUECMK.js} +2 -2
  134. package/dist/cdn/{WGWGKZQL.js → LDXQPQ3F.js} +2 -2
  135. package/dist/cdn/{PHKTAPVE.js → LDYWDVEQ.js} +2 -2
  136. package/dist/cdn/{S4RZWBDW.js → LKU2CBNI.js} +2 -2
  137. package/dist/cdn/{7ZIUITXE.js → LL5U32JB.js} +2 -2
  138. package/dist/cdn/{RDQ6IQYR.js → LMVATOIF.js} +2 -2
  139. package/dist/cdn/{KLOV2IBZ.js → LMVI22Q6.js} +1 -1
  140. package/dist/cdn/{UKFET366.js → LN37YYVQ.js} +2 -2
  141. package/dist/cdn/{PEO7IW77.js → LQOVCP3V.js} +2 -2
  142. package/dist/cdn/{L6I2RMP2.js → LR2LXKUZ.js} +2 -2
  143. package/dist/cdn/{MIN45FF3.js → LRB5UHJA.js} +2 -2
  144. package/dist/cdn/{D5DLGQQI.js → LRVLRKSS.js} +2 -2
  145. package/dist/cdn/{ZLPCCGKI.js → LSY2NNYO.js} +2 -2
  146. package/dist/cdn/{7KW5PQSK.js → LVAZEF7S.js} +2 -2
  147. package/dist/cdn/{PECJYYKQ.js → LVTLITLU.js} +2 -2
  148. package/dist/cdn/{7VOA7XH4.js → LXQLPH56.js} +2 -2
  149. package/dist/cdn/{YEDWHWED.js → MBOFHJRZ.js} +1 -1
  150. package/dist/cdn/MCAYPJMH.js +4 -0
  151. package/dist/cdn/{OSNQQ652.js → ME5LNRUZ.js} +2 -2
  152. package/dist/cdn/{PWZHB7QC.js → MFFTCR7V.js} +2 -2
  153. package/dist/cdn/{PTAY6FUW.js → MLKRM3DC.js} +2 -2
  154. package/dist/cdn/{FCOXN43M.js → N4C6OHVD.js} +2 -2
  155. package/dist/cdn/{55UM7IPZ.js → NCQPXAMC.js} +2 -2
  156. package/dist/cdn/{6NOVTZBU.js → NFKKDRVH.js} +2 -2
  157. package/dist/cdn/{5TWHCEAL.js → NVTJ6TNY.js} +2 -2
  158. package/dist/cdn/{ZZRXHOH5.js → NWYVN5CX.js} +2 -2
  159. package/dist/cdn/{MZ64VYJL.js → O3OD7QNW.js} +2 -2
  160. package/dist/cdn/{UB4DE37Z.js → O3VKUI24.js} +2 -2
  161. package/dist/cdn/{MDFJBXLX.js → O5MMQFMI.js} +1 -1
  162. package/dist/cdn/{JECQUIBO.js → O6IHYEMG.js} +2 -2
  163. package/dist/cdn/{3AEMFTKC.js → O6V4CFVZ.js} +1 -1
  164. package/dist/cdn/{VPWPY4YN.js → ODPSGZKS.js} +2 -2
  165. package/dist/cdn/{DWAM42T3.js → OXZZY455.js} +2 -2
  166. package/dist/cdn/{RXWPCGLD.js → P2QC6U4J.js} +2 -2
  167. package/dist/cdn/{LA4SE2HO.js → P3H5RXT5.js} +2 -2
  168. package/dist/cdn/{TT7NJVUH.js → P3SMWDGN.js} +2 -2
  169. package/dist/cdn/{7SU5JZR5.js → P5GU7DSO.js} +2 -2
  170. package/dist/cdn/{ZF3YPVYG.js → P654UX7O.js} +2 -2
  171. package/dist/cdn/{CXLOFSA2.js → PAC3KZEM.js} +2 -2
  172. package/dist/cdn/{QIRTSWZC.js → PFWSDEAN.js} +2 -2
  173. package/dist/cdn/{UG4J5XOB.js → PLKFY6US.js} +2 -2
  174. package/dist/cdn/{QVNJAARA.js → PMROIMHX.js} +2 -2
  175. package/dist/cdn/{WL7OD6WD.js → PNFKE4BO.js} +2 -2
  176. package/dist/cdn/{X54FR2EJ.js → PWLKWE44.js} +2 -2
  177. package/dist/cdn/{3MLKPSYU.js → PXKCI2F4.js} +2 -2
  178. package/dist/cdn/{IU7YID46.js → PZVQ7BZZ.js} +2 -2
  179. package/dist/cdn/{5S35UURX.js → Q335463L.js} +1 -1
  180. package/dist/cdn/{4WUYNJZQ.js → Q6WFHZCZ.js} +2 -2
  181. package/dist/cdn/{ZSEZT4GX.js → QARQZOL4.js} +2 -2
  182. package/dist/cdn/{L5PCDRHM.js → QGAB6GTV.js} +2 -2
  183. package/dist/cdn/{QMIF24JH.js → QGMWQVBK.js} +2 -2
  184. package/dist/cdn/{EFOLZGGA.js → QKJ2JMJD.js} +2 -2
  185. package/dist/cdn/{KBO5FIQP.js → QLZJRSXI.js} +2 -2
  186. package/dist/cdn/{C4EXEFHY.js → QQFWYRXA.js} +1 -1
  187. package/dist/cdn/{BOINMI7Z.js → QTZVJ2CO.js} +2 -2
  188. package/dist/cdn/{XK2GUCV6.js → QVQNCXBR.js} +2 -2
  189. package/dist/cdn/{K3H64DRZ.js → R2WRRKIK.js} +2 -2
  190. package/dist/cdn/{PAAPT25F.js → R4MUXQ3B.js} +2 -2
  191. package/dist/cdn/{SUMELULC.js → R6JXMXB4.js} +2 -2
  192. package/dist/cdn/{HIBFZIEM.js → RAUOUQVH.js} +2 -2
  193. package/dist/cdn/{WBTQ5SHM.js → RLOWQOXB.js} +2 -2
  194. package/dist/cdn/{OWV6NDT2.js → RMBEPP77.js} +2 -2
  195. package/dist/cdn/{LSGLN5EM.js → RORXYURS.js} +2 -2
  196. package/dist/cdn/{W2O6AJ6T.js → RRRPNTMF.js} +2 -2
  197. package/dist/cdn/{2F4JBHA2.js → RVF4SIU2.js} +2 -2
  198. package/dist/cdn/{4LOQWNML.js → S26DCPLI.js} +2 -2
  199. package/dist/cdn/{KHK525ZD.js → S5DGXE3H.js} +1 -1
  200. package/dist/cdn/{6ITGULVL.js → SBQR7VOQ.js} +2 -2
  201. package/dist/cdn/{M5BFS37N.js → SFKJ6JGZ.js} +2 -2
  202. package/dist/cdn/{JXN3JPOS.js → SFTKLPSS.js} +2 -2
  203. package/dist/cdn/{QR37ZFER.js → SJZCZXSD.js} +2 -2
  204. package/dist/cdn/{B7M7VGJH.js → SNDW3R6P.js} +2 -2
  205. package/dist/cdn/{WIL2KEBU.js → SOVPB3ZN.js} +2 -2
  206. package/dist/cdn/{BIUDVI6G.js → SPOOETYS.js} +2 -2
  207. package/dist/cdn/{ACWTIIJK.js → SZXDZGW3.js} +2 -2
  208. package/dist/cdn/{CXHULPYF.js → T22ABQIW.js} +2 -2
  209. package/dist/cdn/{7ENI4ZEP.js → TB6XPFIC.js} +2 -2
  210. package/dist/cdn/{2DCZLQME.js → TLFXMUAF.js} +2 -2
  211. package/dist/cdn/{4HQE52OB.js → TOB4L4EE.js} +2 -2
  212. package/dist/cdn/{DQMJC5IH.js → TPSXSPCJ.js} +2 -2
  213. package/dist/cdn/{MXA666R3.js → TRLJXRC4.js} +2 -2
  214. package/dist/cdn/{I2MMDKSC.js → TTSEDEYI.js} +2 -2
  215. package/dist/cdn/{5FWP5Y7B.js → U3INY2AK.js} +2 -2
  216. package/dist/cdn/{6C7SA3TA.js → UC2XLNX5.js} +2 -2
  217. package/dist/cdn/{LXFST5GI.js → UJ52LGQ5.js} +2 -2
  218. package/dist/cdn/{XS6TIP4F.js → UNANWBAI.js} +2 -2
  219. package/dist/cdn/{NJZE562H.js → UY7H2KHM.js} +2 -2
  220. package/dist/cdn/{TVSUOEO7.js → UYNZPTUH.js} +2 -2
  221. package/dist/cdn/{4WYBV4HA.js → UZ5XLSQP.js} +3 -3
  222. package/dist/cdn/{CUBROTS5.js → W2LPTLXR.js} +2 -2
  223. package/dist/cdn/{SZFMQVTY.js → W4DOURIV.js} +2 -2
  224. package/dist/cdn/{G3GVJECS.js → W6W24PKB.js} +2 -2
  225. package/dist/cdn/{FWBMNGJY.js → W77ENKMN.js} +1 -1
  226. package/dist/cdn/{UG53HVMO.js → WD3LMZHA.js} +2 -2
  227. package/dist/cdn/{DJNOZ3G7.js → WFWO7PI7.js} +1 -1
  228. package/dist/cdn/{LKLQVKXP.js → WJ4ZAYNI.js} +2 -2
  229. package/dist/cdn/{ULXBIYHD.js → WJIR64NW.js} +2 -2
  230. package/dist/cdn/{HAIXJ5T2.js → WJSZ6BTN.js} +2 -2
  231. package/dist/cdn/{3F6Q7OHS.js → WW5DNDHT.js} +2 -2
  232. package/dist/cdn/{SZGFYJYB.js → WW7VXMDS.js} +2 -2
  233. package/dist/cdn/{ZU6ZJXKY.js → WZIJ6RXP.js} +2 -2
  234. package/dist/cdn/{3XTBTEO5.js → XABOFWXR.js} +2 -2
  235. package/dist/cdn/{6HUMPPMT.js → XB7LTY2Q.js} +2 -2
  236. package/dist/cdn/{CBIQXD4L.js → XBJ74COY.js} +2 -2
  237. package/dist/cdn/{IIG6K3V4.js → XHFT5P7Y.js} +2 -2
  238. package/dist/cdn/{KF722U4W.js → XONBYSHA.js} +2 -2
  239. package/dist/cdn/{WAWFMZ2P.js → XPDF63LL.js} +2 -2
  240. package/dist/cdn/{2TGA7RFV.js → XPITGDPO.js} +2 -2
  241. package/dist/cdn/{WJR4WEGS.js → XVZBNX4M.js} +2 -2
  242. package/dist/cdn/{XUVPUXIS.js → XZLCT462.js} +1 -1
  243. package/dist/cdn/{BWAK7RSF.js → Y3OVFD2J.js} +2 -2
  244. package/dist/cdn/{3TDVKW6K.js → YCSM4OON.js} +2 -2
  245. package/dist/cdn/{ZOHYUYHP.js → YEYFMBYK.js} +2 -2
  246. package/dist/cdn/YIZZNFUQ.js +4 -0
  247. package/dist/cdn/{IJGJFRFC.js → YMN25VIM.js} +2 -2
  248. package/dist/cdn/{D2MTS7BV.js → YMUSKVWZ.js} +2 -2
  249. package/dist/cdn/YOL7KVAE.js +4 -0
  250. package/dist/cdn/{XY7URPA7.js → YOYMQZ65.js} +2 -2
  251. package/dist/cdn/{XZQUSSDL.js → YR7KDD2X.js} +2 -2
  252. package/dist/cdn/{2DQHR5OT.js → YRTVLUDF.js} +2 -2
  253. package/dist/cdn/{FFSKITVH.js → Z2NJMMGK.js} +2 -2
  254. package/dist/cdn/{7E4T6WCQ.js → ZKEHTOSG.js} +1 -1
  255. package/dist/cdn/{WDOXFUOW.js → ZN2B4JSY.js} +2 -2
  256. package/dist/cdn/{PSHFYRAA.js → ZV2CCOGP.js} +2 -2
  257. package/dist/cdn/{44OXZSHN.js → ZZHYM5LZ.js} +2 -2
  258. package/dist/cdn/index.js +2 -2
  259. package/dist/cdn/main.css +1 -1
  260. package/dist/chunks/AnalysisViewModel.js +1 -1
  261. package/dist/chunks/action-utils.js +1 -1
  262. package/dist/chunks/async-utils.js +1 -1
  263. package/dist/chunks/basemap-gallery-resources.js +1 -1
  264. package/dist/chunks/building-layer-utils.js +1 -1
  265. package/dist/chunks/chart-utils.js +1 -1
  266. package/dist/chunks/chartCommon.js +1 -1
  267. package/dist/chunks/clipoardSymbolHelper.js +1 -1
  268. package/dist/chunks/component-utils.js +1 -1
  269. package/dist/chunks/component-wrapper.js +1 -1
  270. package/dist/chunks/constants.js +1 -1
  271. package/dist/chunks/esri-main.js +1 -1
  272. package/dist/chunks/feature-utils.js +1 -1
  273. package/dist/chunks/globalCss.js +1 -1
  274. package/dist/chunks/goTo.js +1 -1
  275. package/dist/chunks/handle.js +1 -1
  276. package/dist/chunks/heading.js +1 -1
  277. package/dist/chunks/layer-list.js +1 -1
  278. package/dist/chunks/layer-utils.js +1 -1
  279. package/dist/chunks/legacyIcon.js +1 -1
  280. package/dist/chunks/maybe.js +1 -1
  281. package/dist/chunks/measurementUtils.js +1 -1
  282. package/dist/chunks/runtime.js +1 -1
  283. package/dist/chunks/screenLocation.js +1 -1
  284. package/dist/chunks/slots.js +1 -1
  285. package/dist/chunks/svgUtils.js +1 -1
  286. package/dist/chunks/time-utils.js +1 -1
  287. package/dist/chunks/univariateUtils.js +1 -1
  288. package/dist/chunks/useArcgisViewReadyError.js +38 -33
  289. package/dist/chunks/useCloseEvent.js +1 -1
  290. package/dist/chunks/useHandles.js +1 -1
  291. package/dist/chunks/useT9n.js +1 -1
  292. package/dist/chunks/useView.js +1 -1
  293. package/dist/chunks/useViewModel.js +1 -1
  294. package/dist/chunks/useWidget.js +1 -1
  295. package/dist/chunks/utils.js +1 -1
  296. package/dist/chunks/utils2.js +1 -1
  297. package/dist/chunks/visible-element.js +1 -1
  298. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  299. package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
  300. package/dist/components/arcgis-attachments/customElement.js +1 -1
  301. package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
  302. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  303. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  304. package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
  305. package/dist/components/arcgis-bookmarks/customElement.js +1 -1
  306. package/dist/components/arcgis-building-discipline-tree/customElement.d.ts +14 -0
  307. package/dist/components/arcgis-building-discipline-tree/customElement.js +1 -1
  308. package/dist/components/arcgis-building-discipline-tree/index.d.ts +1 -0
  309. package/dist/components/arcgis-building-explorer/building-filter/BuildingLevel.d.ts +20 -0
  310. package/dist/components/arcgis-building-explorer/building-filter/BuildingNumericFilterViewModel.d.ts +94 -0
  311. package/dist/components/arcgis-building-explorer/building-filter/BuildingPhase.d.ts +24 -0
  312. package/dist/components/arcgis-building-explorer/customElement.js +1 -1
  313. package/dist/components/arcgis-building-explorer/support/types.d.ts +11 -0
  314. package/dist/components/arcgis-building-level-item/customElement.d.ts +1 -0
  315. package/dist/components/arcgis-building-level-item/customElement.js +1 -1
  316. package/dist/components/arcgis-building-level-picker/customElement.d.ts +20 -0
  317. package/dist/components/arcgis-building-level-picker/customElement.js +1 -1
  318. package/dist/components/arcgis-building-level-picker/index.d.ts +1 -0
  319. package/dist/components/arcgis-building-phase-picker/customElement.d.ts +19 -0
  320. package/dist/components/arcgis-building-phase-picker/customElement.js +1 -1
  321. package/dist/components/arcgis-building-phase-picker/index.d.ts +1 -0
  322. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  323. package/dist/components/arcgis-clipboard/customElement.js +1 -1
  324. package/dist/components/arcgis-color-select/customElement.js +1 -1
  325. package/dist/components/arcgis-compass/customElement.js +2 -2
  326. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  327. package/dist/components/arcgis-daylight/customElement.js +1 -1
  328. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
  329. package/dist/components/arcgis-directional-pad/customElement.js +1 -1
  330. package/dist/components/arcgis-directions/customElement.js +1 -1
  331. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  332. package/dist/components/arcgis-editor/customElement.js +1 -1
  333. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  334. package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
  335. package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
  336. package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
  337. package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
  338. package/dist/components/arcgis-expand/customElement.js +1 -1
  339. package/dist/components/arcgis-feature/customElement.js +1 -1
  340. package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
  341. package/dist/components/arcgis-feature-content/customElement.js +1 -1
  342. package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
  343. package/dist/components/arcgis-feature-expression/customElement.js +1 -1
  344. package/dist/components/arcgis-feature-fields/customElement.js +1 -1
  345. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  346. package/dist/components/arcgis-feature-image/customElement.js +1 -1
  347. package/dist/components/arcgis-feature-media/customElement.js +1 -1
  348. package/dist/components/arcgis-feature-relationship/customElement.js +3 -3
  349. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  350. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  351. package/dist/components/arcgis-feature-title/customElement.js +1 -1
  352. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
  353. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
  354. package/dist/components/arcgis-features/customElement.d.ts +18 -55
  355. package/dist/components/arcgis-features/customElement.js +42 -30
  356. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  357. package/dist/components/arcgis-fullscreen/customElement.js +1 -1
  358. package/dist/components/arcgis-grid-controls/customElement.js +1 -1
  359. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  360. package/dist/components/arcgis-home/customElement.js +1 -1
  361. package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
  362. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  363. package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
  364. package/dist/components/arcgis-legend/customElement.js +1 -1
  365. package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
  366. package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
  367. package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
  368. package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
  369. package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
  370. package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
  371. package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
  372. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  373. package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
  374. package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
  375. package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
  376. package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
  377. package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
  378. package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
  379. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  380. package/dist/components/arcgis-link-chart/customElement.d.ts +7 -27
  381. package/dist/components/arcgis-link-chart/customElement.js +2 -2
  382. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
  383. package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +2 -2
  384. package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.js +1 -1
  385. package/dist/components/arcgis-locate/customElement.js +1 -1
  386. package/dist/components/arcgis-map/customElement.d.ts +7 -27
  387. package/dist/components/arcgis-map/customElement.js +2 -2
  388. package/dist/components/arcgis-measurement/customElement.js +1 -1
  389. package/dist/components/arcgis-measurement-content/customElement.js +1 -1
  390. package/dist/components/arcgis-multi-feature-form/customElement.js +1 -1
  391. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  392. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  393. package/dist/components/arcgis-paste/customElement.js +1 -1
  394. package/dist/components/arcgis-popup/customElement.d.ts +24 -64
  395. package/dist/components/arcgis-popup/customElement.js +34 -31
  396. package/dist/components/arcgis-presentation/customElement.js +1 -1
  397. package/dist/components/arcgis-print/customElement.js +1 -1
  398. package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
  399. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  400. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  401. package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
  402. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  403. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
  404. package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
  405. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  406. package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
  407. package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
  408. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
  409. package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
  410. package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
  411. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  412. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  413. package/dist/components/arcgis-scale-bar/customElement.js +1 -1
  414. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  415. package/dist/components/arcgis-scene/customElement.d.ts +9 -27
  416. package/dist/components/arcgis-scene/customElement.js +2 -2
  417. package/dist/components/arcgis-search/customElement.js +11 -5
  418. package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
  419. package/dist/components/arcgis-shadow-cast/customElement.d.ts +35 -26
  420. package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
  421. package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
  422. package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +1 -1
  423. package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.js +1 -1
  424. package/dist/components/arcgis-sketch/customElement.js +1 -1
  425. package/dist/components/arcgis-slice/customElement.js +1 -1
  426. package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +7 -1
  427. package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +1 -1
  428. package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +7 -1
  429. package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +1 -1
  430. package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +7 -1
  431. package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +1 -1
  432. package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +7 -1
  433. package/dist/components/arcgis-slider-color-legacy/customElement.js +1 -1
  434. package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +7 -1
  435. package/dist/components/arcgis-slider-color-size-legacy/customElement.js +1 -1
  436. package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +7 -1
  437. package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +1 -1
  438. package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +7 -1
  439. package/dist/components/arcgis-slider-opacity-legacy/customElement.js +1 -1
  440. package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +7 -1
  441. package/dist/components/arcgis-slider-size-legacy/customElement.js +1 -1
  442. package/dist/components/arcgis-spinner/customElement.js +1 -1
  443. package/dist/components/arcgis-swipe/customElement.js +1 -1
  444. package/dist/components/arcgis-table-list/customElement.js +1 -1
  445. package/dist/components/arcgis-time-of-day-slider/customElement.js +1 -1
  446. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  447. package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
  448. package/dist/components/arcgis-track/customElement.js +1 -1
  449. package/dist/components/arcgis-unit-select/customElement.js +1 -1
  450. package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
  451. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  452. package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
  453. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  454. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
  455. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
  456. package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
  457. package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
  458. package/dist/components/arcgis-utility-network-trace-results/customElement.js +6 -6
  459. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  460. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  461. package/dist/components/arcgis-version-management/customElement.js +1 -1
  462. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  463. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  464. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  465. package/dist/components/arcgis-video/customElement.js +2 -2
  466. package/dist/components/arcgis-video-player/customElement.js +1 -1
  467. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  468. package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
  469. package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
  470. package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
  471. package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
  472. package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
  473. package/dist/components/arcgis-volume-measurement/customElement.d.ts +30 -13
  474. package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
  475. package/dist/components/arcgis-weather/customElement.js +1 -1
  476. package/dist/components/arcgis-webgl-error/customElement.js +1 -1
  477. package/dist/components/arcgis-zoom/customElement.js +1 -1
  478. package/dist/docs/api.json +1 -1
  479. package/dist/docs/docs.json +1 -1
  480. package/dist/docs/vscode.html-custom-data.json +1 -1
  481. package/dist/docs/web-types.json +1 -1
  482. package/dist/index.d.ts +24 -0
  483. package/dist/index.js +1 -1
  484. package/dist/loader.js +3 -3
  485. package/dist/types/lumina.d.ts +19 -2
  486. package/dist/types/preact.d.ts +22 -2
  487. package/dist/types/react.d.ts +25 -2
  488. package/dist/types/stencil.d.ts +19 -2
  489. package/package.json +6 -6
  490. package/dist/cdn/2U3WBSWN.js +0 -4
  491. package/dist/cdn/4VKVFQJN.js +0 -4
  492. package/dist/cdn/CYXC7D2F.js +0 -4
  493. package/dist/cdn/F3BIIONA.js +0 -4
  494. package/dist/cdn/QN46RGLH.js +0 -4
  495. package/dist/cdn/QYU5LV3O.js +0 -4
  496. package/dist/cdn/S3SUA6U3.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.140 */
3
+ v5.0.0-next.142 */
4
4
  var d=Object.defineProperty;var e=(c,a)=>{for(var b in a)d(c,b,{get:a[b],enumerable:!0})};export{e as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.140 */
3
+ v5.0.0-next.142 */
4
4
  function a(o){o?.abort()}function e(o){o?.remove()}export{a,e as b};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.140 */
4
- import d from"./DJNOZ3G7.js";import{a as m}from"./WDZSFILV.js";import b from"./NCCHUPW3.js";import"./57KHM7P2.js";import"./Z5FKAWPV.js";import"./774HFEEA.js";import"./5S35UURX.js";import{N as h,P as n,T as g,a as r,b as a,c as l,p as c,x as o}from"./MDOFMA7T.js";import"./EXKTZLIJ.js";export default $arcgis.t(([{getApplicationClipboard:f},u,{a:p},{a:d,b:v}])=>{var y=r`.flex{display:flex}.flex-row{flex-direction:row}.justify-center{justify-content:center}.text-center{text-align:center}`,s=class extends h{constructor(){super(...arguments),this._messages=m(),this._hoverHightlightHandle=null,this.maxShowCount=100,this.view=p(this),this.arcgisReady=o()}static{this.properties={clipboard:32,maxShowCount:9,view:0,referenceElement:1}}static{this.styles=y}get clipboard(){return f()}_removeClipboardItem(e){try{this._clearHighlightSelectedGraphic();let t=this.clipboard.items.filter(i=>i!==e);this.clipboard.setData(t.toArray())}catch{c("error",this,"Failed removing clipboard item")}}_highlightSelectedGraphicOnMap(e){if(this._clearHighlightSelectedGraphic(),!e.graphic?.geometry||!this.view)return;let t=new u({geometry:e.graphic.geometry,symbol:v(e.graphic.geometry.type)});this.view.graphics.add(t),this._hoverHightlightHandle={remove:()=>{this.view.graphics.remove(t)}}}_clearHighlightSelectedGraphic(){this._hoverHightlightHandle&&this._hoverHightlightHandle.remove(),this._hoverHightlightHandle=null}render(){let e=this.clipboard.items.slice(0,100);return e.length===0?a`<div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${n({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${l`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${this._messages.noClipboardData??""}</p></div>`:a`${e.length!==this.clipboard.items.length?a`<calcite-notice scale=s><div slot=message>${this._messages.tooManyClipboardItems??""}</div></calcite-notice>`:""}<calcite-list .label=${this._messages.clipboardContents??""}>${e.map(t=>t.type==="feature"&&t.layer?a`<calcite-list-item @pointerenter=${i=>{this._highlightSelectedGraphicOnMap(t),i.target.classList.add("hovering")}} @pointerleave=${i=>{i.target.classList.remove("hovering"),this._clearHighlightSelectedGraphic()}}><arcgis-feature-title slot=content .graphic=${t.graphic} .layer=${t.layer}></arcgis-feature-title><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${t.graphic} .layer=${t.layer}></arcgis-feature-image><calcite-action slot=actions-end icon=trash @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`:t.type==="feature"&&!t.layer&&t.graphic?.geometry?a`<calcite-list-item @pointerenter=${i=>{this._highlightSelectedGraphicOnMap(t),i.target.classList.add("hovering")}} @pointerleave=${i=>{i.target.classList.remove("hovering"),this._clearHighlightSelectedGraphic()}}><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape .actualSymbol=${d(t.graphic.geometry.type)} slot=content-start .graphic=${t.graphic}></arcgis-feature-image><span slot=content>${this._messages.clipboardDataItem??""}</span><calcite-action slot=actions-end icon=trash @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`:a`<calcite-list-item><calcite-icon slot=content-start scale=s icon=file-data></calcite-icon><span slot=content>${this._messages.clipboardDataItem??""}</span><calcite-action slot=actions-end icon=trash @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`)}</calcite-list>`}};g("arcgis-clipboard",s);return s},"applications/Components/clipboard","Graphic",b,d)
3
+ v5.0.0-next.142 */
4
+ import d from"./WFWO7PI7.js";import{a as m}from"./HVKTXMYZ.js";import b from"./FWPMWGTC.js";import"./6B3J6F6V.js";import"./6IYKLL4K.js";import"./D4XKEUDI.js";import"./Q335463L.js";import{N as h,P as n,T as g,a as r,b as a,c as l,p as c,x as o}from"./CMZQVTZU.js";import"./ADV42HI2.js";export default $arcgis.t(([{getApplicationClipboard:f},u,{a:p},{a:d,b:v}])=>{var y=r`.flex{display:flex}.flex-row{flex-direction:row}.justify-center{justify-content:center}.text-center{text-align:center}`,s=class extends h{constructor(){super(...arguments),this._messages=m(),this._hoverHightlightHandle=null,this.maxShowCount=100,this.view=p(this),this.arcgisReady=o()}static{this.properties={clipboard:32,maxShowCount:9,view:0,referenceElement:1}}static{this.styles=y}get clipboard(){return f()}_removeClipboardItem(e){try{this._clearHighlightSelectedGraphic();let t=this.clipboard.items.filter(i=>i!==e);this.clipboard.setData(t.toArray())}catch{c("error",this,"Failed removing clipboard item")}}_highlightSelectedGraphicOnMap(e){if(this._clearHighlightSelectedGraphic(),!e.graphic?.geometry||!this.view)return;let t=new u({geometry:e.graphic.geometry,symbol:v(e.graphic.geometry.type)});this.view.graphics.add(t),this._hoverHightlightHandle={remove:()=>{this.view.graphics.remove(t)}}}_clearHighlightSelectedGraphic(){this._hoverHightlightHandle&&this._hoverHightlightHandle.remove(),this._hoverHightlightHandle=null}render(){let e=this.clipboard.items.slice(0,100);return e.length===0?a`<div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${n({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${l`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${this._messages.noClipboardData??""}</p></div>`:a`${e.length!==this.clipboard.items.length?a`<calcite-notice scale=s><div slot=message>${this._messages.tooManyClipboardItems??""}</div></calcite-notice>`:""}<calcite-list .label=${this._messages.clipboardContents??""}>${e.map(t=>t.type==="feature"&&t.layer?a`<calcite-list-item @pointerenter=${i=>{this._highlightSelectedGraphicOnMap(t),i.target.classList.add("hovering")}} @pointerleave=${i=>{i.target.classList.remove("hovering"),this._clearHighlightSelectedGraphic()}}><arcgis-feature-title slot=content .graphic=${t.graphic} .layer=${t.layer}></arcgis-feature-title><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${t.graphic} .layer=${t.layer}></arcgis-feature-image><calcite-action slot=actions-end icon=trash @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`:t.type==="feature"&&!t.layer&&t.graphic?.geometry?a`<calcite-list-item @pointerenter=${i=>{this._highlightSelectedGraphicOnMap(t),i.target.classList.add("hovering")}} @pointerleave=${i=>{i.target.classList.remove("hovering"),this._clearHighlightSelectedGraphic()}}><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape .actualSymbol=${d(t.graphic.geometry.type)} slot=content-start .graphic=${t.graphic}></arcgis-feature-image><span slot=content>${this._messages.clipboardDataItem??""}</span><calcite-action slot=actions-end icon=trash @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`:a`<calcite-list-item><calcite-icon slot=content-start scale=s icon=file-data></calcite-icon><span slot=content>${this._messages.clipboardDataItem??""}</span><calcite-action slot=actions-end icon=trash @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`)}</calcite-list>`}};g("arcgis-clipboard",s);return s},"applications/Components/clipboard","Graphic",b,d)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.140 */
4
- import{a as m}from"./QYSX6MLE.js";import"./XY7URPA7.js";import"./RBU5MAH4.js";import{b as o}from"./5S35UURX.js";import{N as d,O as a,T as g,a as c,b as i}from"./MDOFMA7T.js";import"./EXKTZLIJ.js";var y=c`.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)}:host{display:block}.arcgis-legend__no-legend{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md)}.arcgis-legend__layer{border-bottom:1px solid var(--calcite-color-border-2);padding:var(--arcgis-internal-padding, var(--calcite-spacing-md) var(--calcite-spacing-lg));word-wrap:break-word}.arcgis-legend__layer:last-child{border-bottom:none}.arcgis-legend__layer--elements{margin-left:var(--calcite-spacing-sm);overflow:auto}.arcgis-legend__layer-child{margin-left:var(--calcite-spacing-sm);padding-right:0;padding-left:0}:dir(rtl) .arcgis-legend__layer--elements,:dir(rtl) .arcgis-legend__layer-child{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}`,s={layer:"arcgis-legend__layer",layerElements:"arcgis-legend__layer--elements",layerChild:"arcgis-legend__layer-child",noLegend:"arcgis-legend__no-legend"},n=class extends d{constructor(){super(...arguments),this.headingLevel=3,this.type="classic"}static{this.properties={activeLayerInfos:0,headingLevel:9,type:32,messages:0}}static{this.styles=y}render(){let e=this.activeLayerInfos?.toArray().map(r=>this._renderLegendForLayer(r)).filter(Boolean);return e?.length?i`<section>${e}</section>`:i`<div class=${a(s.noLegend)}>${this.messages.noLegend}</div>`}_renderLegendForLayer(e){if(!e.ready)return null;let r=e.title?m({level:this.headingLevel,children:e.title}):null;if(e.children.length){let t=e.children.toArray().map(l=>this._renderLegendForLayer(l));return i`<section class=${a(s.layer)}>${r}${t}</section>`}return this._renderLegendElementsForLayer(e,r)}_renderLegendElementsForLayer(e,r){let t=e.legendElements?.filter(Boolean);if(!t?.length)return null;let l=t.map(_=>i`<arcgis-legend-classic-element .cssEffectFilter=${e.cssEffectFilter??void 0} .layer=${e.layer} .legendElement=${_} .messages=${this.messages}></arcgis-legend-classic-element>`),h={[s.layerChild]:!!e.parent};return i`<section class=${a(o(s.layer,h))}>${r}<div class=${a(s.layerElements)}>${l}</div></section>`}};g("arcgis-legend-classic-view",n);export{n as LegendClassicView};
3
+ v5.0.0-next.142 */
4
+ import{a as m}from"./DCNI6XLZ.js";import"./YOYMQZ65.js";import"./KRUOABI2.js";import{b as o}from"./Q335463L.js";import{N as d,O as a,T as g,a as c,b as i}from"./CMZQVTZU.js";import"./ADV42HI2.js";var y=c`.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)}:host{display:block}.arcgis-legend__no-legend{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md)}.arcgis-legend__layer{border-bottom:1px solid var(--calcite-color-border-2);padding:var(--arcgis-internal-padding, var(--calcite-spacing-md) var(--calcite-spacing-lg));word-wrap:break-word}.arcgis-legend__layer:last-child{border-bottom:none}.arcgis-legend__layer--elements{margin-left:var(--calcite-spacing-sm);overflow:auto}.arcgis-legend__layer-child{margin-left:var(--calcite-spacing-sm);padding-right:0;padding-left:0}:dir(rtl) .arcgis-legend__layer--elements,:dir(rtl) .arcgis-legend__layer-child{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}`,s={layer:"arcgis-legend__layer",layerElements:"arcgis-legend__layer--elements",layerChild:"arcgis-legend__layer-child",noLegend:"arcgis-legend__no-legend"},n=class extends d{constructor(){super(...arguments),this.headingLevel=3,this.type="classic"}static{this.properties={activeLayerInfos:0,headingLevel:9,type:32,messages:0}}static{this.styles=y}render(){let e=this.activeLayerInfos?.toArray().map(r=>this._renderLegendForLayer(r)).filter(Boolean);return e?.length?i`<section>${e}</section>`:i`<div class=${a(s.noLegend)}>${this.messages.noLegend}</div>`}_renderLegendForLayer(e){if(!e.ready)return null;let r=e.title?m({level:this.headingLevel,children:e.title}):null;if(e.children.length){let t=e.children.toArray().map(l=>this._renderLegendForLayer(l));return i`<section class=${a(s.layer)}>${r}${t}</section>`}return this._renderLegendElementsForLayer(e,r)}_renderLegendElementsForLayer(e,r){let t=e.legendElements?.filter(Boolean);if(!t?.length)return null;let l=t.map(_=>i`<arcgis-legend-classic-element .cssEffectFilter=${e.cssEffectFilter??void 0} .layer=${e.layer} .legendElement=${_} .messages=${this.messages}></arcgis-legend-classic-element>`),h={[s.layerChild]:!!e.parent};return i`<section class=${a(o(s.layer,h))}>${r}<div class=${a(s.layerElements)}>${l}</div></section>`}};g("arcgis-legend-classic-view",n);export{n as LegendClassicView};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.140 */
4
- import"./EXKTZLIJ.js";var r={firstDayOfWeek:1,_decimalSeparator:",",_thousandSeparator:" ",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"\u044F\u043D\u0443\u0430\u0440\u0438",February:"\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438",March:"\u043C\u0430\u0440\u0442",April:"\u0430\u043F\u0440\u0438\u043B",May:"\u043C\u0430\u0439",June:"\u044E\u043D\u0438",July:"\u044E\u043B\u0438",August:"\u0430\u0432\u0433\u0443\u0441\u0442",September:"\u0441\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438",October:"\u043E\u043A\u0442\u043E\u043C\u0432\u0440\u0438",November:"\u043D\u043E\u0435\u043C\u0432\u0440\u0438",December:"\u0434\u0435\u043A\u0435\u043C\u0432\u0440\u0438",Jan:"\u044F\u043D\u0443\u0430\u0440\u0438",Feb:"\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438",Mar:"\u043C\u0430\u0440\u0442",Apr:"\u0430\u043F\u0440\u0438\u043B","May (short)":"\u043C\u0430\u0439",Jun:"\u044E\u043D\u0438",Jul:"\u044E\u043B\u0438",Aug:"\u0430\u0432\u0433\u0443\u0441\u0442",Sep:"\u0441\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438",Oct:"\u043E\u043A\u0442\u043E\u043C\u0432\u0440\u0438",Nov:"\u043D\u043E\u0435\u043C\u0432\u0440\u0438",Dec:"\u0434\u0435\u043A\u0435\u043C\u0432\u0440\u0438",Sunday:"\u043D\u0435\u0434\u0435\u043B\u044F",Monday:"\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A",Tuesday:"\u0432\u0442\u043E\u0440\u043D\u0438\u043A",Wednesday:"\u0441\u0440\u044F\u0434\u0430",Thursday:"\u0447\u0435\u0442\u0432\u044A\u0440\u0442\u044A\u043A",Friday:"\u043F\u0435\u0442\u044A\u043A",Saturday:"\u0441\u044A\u0431\u043E\u0442\u0430",Sun:"\u043D\u0434",Mon:"\u043F\u043D",Tues:"\u0432\u0442",Wed:"\u0441\u0440",Thu:"\u0447\u0442",Fri:"\u043F\u0442",Sat:"\u0441\u0431",_dateOrd:function(_){let e="th";if(_<11||_>13)switch(_%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"\u041E\u0442\u0434\u0430\u043B\u0435\u0447\u0430\u0432\u0430\u043D\u0435",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"\u041E\u0442 %1 \u0434\u043E %2","From %1":"\u041E\u0442 %1","To %1":"\u0414\u043E %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{r as default};
3
+ v5.0.0-next.142 */
4
+ import"./ADV42HI2.js";var r={firstDayOfWeek:1,_decimalSeparator:",",_thousandSeparator:" ",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"\u044F\u043D\u0443\u0430\u0440\u0438",February:"\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438",March:"\u043C\u0430\u0440\u0442",April:"\u0430\u043F\u0440\u0438\u043B",May:"\u043C\u0430\u0439",June:"\u044E\u043D\u0438",July:"\u044E\u043B\u0438",August:"\u0430\u0432\u0433\u0443\u0441\u0442",September:"\u0441\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438",October:"\u043E\u043A\u0442\u043E\u043C\u0432\u0440\u0438",November:"\u043D\u043E\u0435\u043C\u0432\u0440\u0438",December:"\u0434\u0435\u043A\u0435\u043C\u0432\u0440\u0438",Jan:"\u044F\u043D\u0443\u0430\u0440\u0438",Feb:"\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438",Mar:"\u043C\u0430\u0440\u0442",Apr:"\u0430\u043F\u0440\u0438\u043B","May (short)":"\u043C\u0430\u0439",Jun:"\u044E\u043D\u0438",Jul:"\u044E\u043B\u0438",Aug:"\u0430\u0432\u0433\u0443\u0441\u0442",Sep:"\u0441\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438",Oct:"\u043E\u043A\u0442\u043E\u043C\u0432\u0440\u0438",Nov:"\u043D\u043E\u0435\u043C\u0432\u0440\u0438",Dec:"\u0434\u0435\u043A\u0435\u043C\u0432\u0440\u0438",Sunday:"\u043D\u0435\u0434\u0435\u043B\u044F",Monday:"\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A",Tuesday:"\u0432\u0442\u043E\u0440\u043D\u0438\u043A",Wednesday:"\u0441\u0440\u044F\u0434\u0430",Thursday:"\u0447\u0435\u0442\u0432\u044A\u0440\u0442\u044A\u043A",Friday:"\u043F\u0435\u0442\u044A\u043A",Saturday:"\u0441\u044A\u0431\u043E\u0442\u0430",Sun:"\u043D\u0434",Mon:"\u043F\u043D",Tues:"\u0432\u0442",Wed:"\u0441\u0440",Thu:"\u0447\u0442",Fri:"\u043F\u0442",Sat:"\u0441\u0431",_dateOrd:function(_){let e="th";if(_<11||_>13)switch(_%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"\u041E\u0442\u0434\u0430\u043B\u0435\u0447\u0430\u0432\u0430\u043D\u0435",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"\u041E\u0442 %1 \u0434\u043E %2","From %1":"\u041E\u0442 %1","To %1":"\u0414\u043E %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{r as default};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.140 */
4
- import{a as x}from"./QYSX6MLE.js";import"./XY7URPA7.js";import{a}from"./CM5MTDKS.js";import e from"./G7RQ35FO.js";import{a as v}from"./WDZSFILV.js";import{a as l}from"./RBU5MAH4.js";import d from"./OWHJNWDS.js";import c from"./NCCHUPW3.js";import{g as _}from"./57KHM7P2.js";import"./Z5FKAWPV.js";import"./774HFEEA.js";import{b as w}from"./5S35UURX.js";import{N as f,O as n,P as u,Q as p,T as b,a as m,b as o,x as h}from"./MDOFMA7T.js";import"./EXKTZLIJ.js";export default $arcgis.t(([{when:M},B,,,y])=>{var R=m`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.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__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}:host{display:flex;width:var(--arcgis-internal-panel-width, 300px)}:host(:focus-within){z-index:1;outline-offset:var(--calcite-spacing-base);outline:var(--calcite-spacing-base) solid var(--calcite-color-brand)}.basemap-gallery{position:relative;overflow-y:auto;container-type:inline-size;width:100%;min-height:32px;transition:max-height .25s ease-in-out}.basemap-gallery .basemap-gallery__loader:before,.basemap-gallery .basemap-gallery__loader:after{opacity:1;content:"";height:var(--calcite-spacing-px);transition:opacity .5s ease-in-out;position:absolute;top:0}.basemap-gallery .basemap-gallery__loader:before{z-index:0;background-color:var(--calcite-color-foreground-1);width:100%}.basemap-gallery .basemap-gallery__loader:after{z-index:0;background-color:var(--calcite-color-foreground-3);width:20%;animation:1.5s linear infinite looping-progresss-bar-ani}.esri-disabled arcgis-basemap-gallery-item{opacity:var(--calcite-opacity-light);pointer-events:none;animation:none}.basemap-gallery__empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.basemap-gallery__loader{width:100%;height:var(--calcite-spacing-base);animation:.5s ease-in-out esri-fade-in;position:absolute;top:0;left:0;right:0}.basemap-gallery__item-container{flex-flow:column;gap:3px;margin:0;padding-block:3px;padding-inline:3px;list-style:none;transition:opacity .25s ease-in-out;display:flex;position:relative}calcite-popover>.basemap-gallery{width:280px;max-height:80vh}.ui-corner calcite-panel>.basemap-gallery.widget.widget--panel{width:unset}.view-width-greater-than-large calcite-popover>.basemap-gallery,.view-width-greater-than-large .ui-corner>.basemap-gallery{width:450px}@container (width<=200px) or (width>=350px){.basemap-gallery .basemap-gallery__item-container{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:var(--calcite-spacing-md) var(--calcite-spacing-lg);padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg);display:grid}}`,C=y(B),d={small:200,default:280,wide:435},g=class extends f{constructor(){super(...arguments),this.messages=v({}),this.viewModel=C(this),this._width=0,this.view=this.viewModel.view,this.activeBasemap=this.viewModel.activeBasemap,this.autoDestroyDisabled=!1,this.disabled=!1,this.headingLevel=2,this.icon="basemap",this.label="",this.source=this.viewModel.source,this.state=this.viewModel.state,this.arcgisPropertyChange=_()("activeBasemap","state"),this.arcgisReady=h()}static{this.properties={_width:16,view:0,activeBasemap:1,autoDestroyDisabled:5,disabled:7,headingLevel:9,icon:1,label:1,messageOverrides:0,referenceElement:1,source:0,state:32}}static{this.styles=R}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[M(()=>this.source,()=>{this.viewModel.loadSource()},{sync:!0,initial:!0}),(()=>{let i=new ResizeObserver(t=>{for(let r of t)this._width=r.contentRect.width}),e=this.el;return e&&i.observe(e),{remove(){i?.disconnect()}}})()])}_getRoundRobinIndex(i,e){return(i+e)%e}_handleKeyDown(i){let{key:e}=i;if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(e))return;i.preventDefault();let{items:t,activeBasemapIndex:r}=this.viewModel,s=e==="ArrowUp"||e==="ArrowLeft"?this._getRoundRobinIndex(Math.max(r-1,-1),t.length):this._getRoundRobinIndex(r+1,t.length),c=t.at(s);c?.state==="ready"&&(this.viewModel.activeBasemap=c.basemap)}render(){let i=this.source.state==="loading",e=this.disabled||this.state==="disabled",t=this.viewModel.items,r={[a.sourceLoading]:i,[l.disabled]:e},s=this._width;r[a.layoutGrid]=s>=d.wide||s<=d.small,r[a.narrowItems]=s<d.default;let c=i?o`<div class=${n(a.loader)}></div>`:null,k=i?null:t.length>0?o`<div aria-disabled=${this.disabled??p} aria-label=${this.label??p} class=${n(a.itemContainer)} @keydown=${this._handleKeyDown} role=radiogroup>${t.map((z,$)=>o`<arcgis-basemap-gallery-item .disabled=${e} .item=${z} .itemIndex=${$} .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-basemap-gallery-item>`)}</div>`:o`<div class=${n(l.empty)}>${x({level:this.headingLevel,children:this.messages.noBasemaps})}</div>`;return o`<div class=${n(w(a.base,l.widget,l.panel,r))} style=${u({"--esri-basemap-gallery-small":`${d.small}px`})}>${[c,k]}</div>`}};b("arcgis-basemap-gallery",g);return g},"core/reactiveUtils","widgets/BasemapGallery/BasemapGalleryViewModel",c,d,e)
3
+ v5.0.0-next.142 */
4
+ import{a as x}from"./DCNI6XLZ.js";import"./YOYMQZ65.js";import{a}from"./6LQKZA2B.js";import e from"./7MD3L7YJ.js";import{a as v}from"./HVKTXMYZ.js";import{a as l}from"./KRUOABI2.js";import d from"./JDH34JTX.js";import c from"./FWPMWGTC.js";import{g as _}from"./6B3J6F6V.js";import"./6IYKLL4K.js";import"./D4XKEUDI.js";import{b as w}from"./Q335463L.js";import{N as f,O as n,P as u,Q as p,T as b,a as m,b as o,x as h}from"./CMZQVTZU.js";import"./ADV42HI2.js";export default $arcgis.t(([{when:M},B,,,y])=>{var R=m`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.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__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}:host{display:flex;width:var(--arcgis-internal-panel-width, 300px)}:host(:focus-within){z-index:1;outline-offset:var(--calcite-spacing-base);outline:var(--calcite-spacing-base) solid var(--calcite-color-brand)}.basemap-gallery{position:relative;overflow-y:auto;container-type:inline-size;width:100%;min-height:32px;transition:max-height .25s ease-in-out}.basemap-gallery .basemap-gallery__loader:before,.basemap-gallery .basemap-gallery__loader:after{opacity:1;content:"";height:var(--calcite-spacing-px);transition:opacity .5s ease-in-out;position:absolute;top:0}.basemap-gallery .basemap-gallery__loader:before{z-index:0;background-color:var(--calcite-color-foreground-1);width:100%}.basemap-gallery .basemap-gallery__loader:after{z-index:0;background-color:var(--calcite-color-foreground-3);width:20%;animation:1.5s linear infinite looping-progresss-bar-ani}.esri-disabled arcgis-basemap-gallery-item{opacity:var(--calcite-opacity-light);pointer-events:none;animation:none}.basemap-gallery__empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.basemap-gallery__loader{width:100%;height:var(--calcite-spacing-base);animation:.5s ease-in-out esri-fade-in;position:absolute;top:0;left:0;right:0}.basemap-gallery__item-container{flex-flow:column;gap:3px;margin:0;padding-block:3px;padding-inline:3px;list-style:none;transition:opacity .25s ease-in-out;display:flex;position:relative}calcite-popover>.basemap-gallery{width:280px;max-height:80vh}.ui-corner calcite-panel>.basemap-gallery.widget.widget--panel{width:unset}.view-width-greater-than-large calcite-popover>.basemap-gallery,.view-width-greater-than-large .ui-corner>.basemap-gallery{width:450px}@container (width<=200px) or (width>=350px){.basemap-gallery .basemap-gallery__item-container{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:var(--calcite-spacing-md) var(--calcite-spacing-lg);padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg);display:grid}}`,C=y(B),d={small:200,default:280,wide:435},g=class extends f{constructor(){super(...arguments),this.messages=v({}),this.viewModel=C(this),this._width=0,this.view=this.viewModel.view,this.activeBasemap=this.viewModel.activeBasemap,this.autoDestroyDisabled=!1,this.disabled=!1,this.headingLevel=2,this.icon="basemap",this.label="",this.source=this.viewModel.source,this.state=this.viewModel.state,this.arcgisPropertyChange=_()("activeBasemap","state"),this.arcgisReady=h()}static{this.properties={_width:16,view:0,activeBasemap:1,autoDestroyDisabled:5,disabled:7,headingLevel:9,icon:1,label:1,messageOverrides:0,referenceElement:1,source:0,state:32}}static{this.styles=R}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[M(()=>this.source,()=>{this.viewModel.loadSource()},{sync:!0,initial:!0}),(()=>{let i=new ResizeObserver(t=>{for(let r of t)this._width=r.contentRect.width}),e=this.el;return e&&i.observe(e),{remove(){i?.disconnect()}}})()])}_getRoundRobinIndex(i,e){return(i+e)%e}_handleKeyDown(i){let{key:e}=i;if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(e))return;i.preventDefault();let{items:t,activeBasemapIndex:r}=this.viewModel,s=e==="ArrowUp"||e==="ArrowLeft"?this._getRoundRobinIndex(Math.max(r-1,-1),t.length):this._getRoundRobinIndex(r+1,t.length),c=t.at(s);c?.state==="ready"&&(this.viewModel.activeBasemap=c.basemap)}render(){let i=this.source.state==="loading",e=this.disabled||this.state==="disabled",t=this.viewModel.items,r={[a.sourceLoading]:i,[l.disabled]:e},s=this._width;r[a.layoutGrid]=s>=d.wide||s<=d.small,r[a.narrowItems]=s<d.default;let c=i?o`<div class=${n(a.loader)}></div>`:null,k=i?null:t.length>0?o`<div aria-disabled=${this.disabled??p} aria-label=${this.label??p} class=${n(a.itemContainer)} @keydown=${this._handleKeyDown} role=radiogroup>${t.map((z,$)=>o`<arcgis-basemap-gallery-item .disabled=${e} .item=${z} .itemIndex=${$} .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-basemap-gallery-item>`)}</div>`:o`<div class=${n(l.empty)}>${x({level:this.headingLevel,children:this.messages.noBasemaps})}</div>`;return o`<div class=${n(w(a.base,l.widget,l.panel,r))} style=${u({"--esri-basemap-gallery-small":`${d.small}px`})}>${[c,k]}</div>`}};b("arcgis-basemap-gallery",g);return g},"core/reactiveUtils","widgets/BasemapGallery/BasemapGalleryViewModel",c,d,e)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.140 */
4
- import{a as x}from"./WDZSFILV.js";import"./57KHM7P2.js";import"./Z5FKAWPV.js";import"./5S35UURX.js";import{N as T,O as p,T as S,a as v,b as g,p as c,x as y}from"./MDOFMA7T.js";import"./EXKTZLIJ.js";export default $arcgis.t(([I,m,h,C,P,G,A,_])=>{var B=v`.arcgis-utility-network-trace-location calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.arcgis-utility-network-trace-location calcite-notice{padding:var(--calcite-spacing-xs)}.arcgis-utility-network-trace-location__add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.arcgis-utility-network-trace-location__button-container{justify-content:center;display:grid}.arcgis-utility-network-trace-location__clear-button{--calcite-button-border-color: transparent}`,f="arcgis-utility-network-trace-location",b={base:f,buttonContainer:`${f}__button-container`,clearButton:`${f}__clear-button`,addLocationButton:`${f}__add-location-button`},L=class extends T{constructor(){super(...arguments),this.messages=x({blocking:!0}),this.isSelectWaiting=!1,this.traceLocationType="starting-point",this.spatialTolerance=.05,this.arcgisTraceLocationChange=y(),this.arcgisTraceLocationSelectEnd=y(),this.arcgisTraceLocationSelectStart=y()}static{this.properties={isSelectWaiting:16,beforeTraceLocationSelectStart:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,sketchViewModel:0,flagLayer:0,spatialTolerance:9,utilityNetwork:0}}static{this.styles=B}async load(){h.isLoaded()||await h.load()}_createPolyline(e,t){return new C({hasZ:!1,hasM:!0,paths:e,spatialReference:new P({wkid:t})})}_calculatePercentAlong(e,t){let r=e.spatialReference,a=this._createPolyline(e.paths,r.wkid),i=t.x-.5,o=t.x+.5,n=t.y-.5,s=t.y+.5,l=[[[i,n],[o,s]]],w=this._createPolyline(l,t.spatialReference.wkid),u=h.execute(w,r);if(!u)return c("error",this,"Unable to project flag geometry to source geometry spatial reference."),.5;let d=I.execute(a,u);if(d.length>0){let $=m.execute(a,{unit:"feet"}),k;return d[0].paths[0][0][0]===a.paths[0][0][0]?k=m.execute(d[0],{unit:"feet"}):k=m.execute(d[1],{unit:"feet"}),k/$}return c("warn",this,"Unable to cut the source geometry with the flag geometry."),.5}async _ensureNecessaryAttributes(e){let t=(e.layer?.type,e.layer),r=t.fieldsIndex?.get("assetgroup")??!1,a=t.fieldsIndex?.get("assetgroup")?.name??"assetgroup",i=t.fieldsIndex?.get("assettype")??!1,o=t.fieldsIndex?.get("assettype")?.name??"assettype",n=e.getGlobalId(),s=e.getObjectId(),l=r?!!e.getAttribute(a):!0,w=i?!!e.getAttribute(o):!0;if(n&&s&&l&&w)return e;let u=t.createQuery();return u.objectIds=[s],(await t.queryFeatures(u))?.features[0]||null}async _ensureNecessaryAttributesAndGenerateTraceLocation(e,t){let{view:r}=this;if(!r||e.length===0){c("error",this,"`view` is unavailable or there are no results to process.");return}let a=e[0].graphic,i=await this._ensureNecessaryAttributes(a);if(!i){c("error",this,"Unable to ensure necessary attributes on the selected graphic.");return}this._generateTraceLocation(i,t)}_createFlagSymbol(){let{traceLocationType:e}=this,t=[244,21,21,.6],r=[21,244,21,.6];return e==="stopping-point"?new _({color:t,style:"x",size:12,outline:{color:t,width:2}}):e==="barrier"?new _({color:t,style:"square",size:12,outline:{color:t,width:0}}):new _({color:r,style:"circle",size:12,outline:{color:r,width:0}})}_addFlagGraphic(e,t,r){let{flagLayer:a,view:i}=this;if(!a||!i)return c("error",this,"The properties `flagLayer` and `view` are required but either one or both are missing."),null;let o=t.geometry?.type;if(this.traceLocations?.some(l=>l.traceLocation.globalId===e)&&o!=="polyline")return c("warn",this,"A flag with the same globalId already exists."),null;let n=this._createFlagSymbol(),s=new G({geometry:r,symbol:n,attributes:t.attributes});return a.add(s),s}async _generateItemTitle(e){let{messages:t}=this,r=(e.layer?.type,e.layer);return("getFeatureTitle"in r?await r.getFeatureTitle(e):null)||e?.getObjectId()?.toString()||t.labels.unknown}async _generateFlagInfo(e,t){let{traceLocationType:r,utilityNetwork:a}=this,i=e.getGlobalId()??"",o=e.geometry?.type,n=await this._generateItemTitle(e);if(o==="point"||o==="polygon"){let s=a?.getTerminalConfiguration(e),l=s?s.terminals[0].id:1;return{traceLocation:new A({type:r,isFilterBarrier:!1,globalId:i,terminalId:l}),flagProperties:{title:n,expanded:!1,terminalConfiguration:s??void 0,selectedTerminals:s?new Set([l]):void 0},spatialProperties:{mapPoint:t,mapGraphic:e}}}else if(o==="polyline"){let s=this._calculatePercentAlong(e.geometry,t);return{traceLocation:new A({type:r,isFilterBarrier:!1,globalId:i,percentAlong:s}),flagProperties:{title:n,expanded:!1},spatialProperties:{mapPoint:t,mapGraphic:e}}}return null}async _generateTraceLocation(e,t){let{traceLocations:r}=this,a=e.getGlobalId()??"",i=e.geometry?.type,o=await this._generateFlagInfo(e,t);if(!o){c("error",this,"Unable to generate flag info for trace location.");return}let n=r?.filter(s=>s.spatialProperties.mapGraphic?.getGlobalId()===a)??[];if(n.length===0||i==="polyline"){if(i==="polyline"&&n.length>0&&n.some(l=>Math.abs(l.traceLocation.percentAlong-o.traceLocation.percentAlong)<=this.spatialTolerance)){c("warn",this,"A flag with the same globalId already exists within tolerance.");return}let s=this._addFlagGraphic(a,e,t);if(!s){c("warn",this,"Unable to add flag graphic.");return}o.spatialProperties.flagGraphic=s,r?.add(o);return}c("warn",this,"A flag with the same globalId already exists.")}async _hitTest(e){let{view:t,utilityNetwork:r}=this;if(!t||!r){c("error",this,"Either `utilityNetwork` or `view` is unavailable for hit test.");return}let a=e.graphic?.geometry,i=this.view?.toScreen(a);if(!i){c("warn",this,"No screen point available for hit test.");return}let o=(await t.hitTest(i,{include:this.filterLayers})).results.filter(n=>n.type==="graphic"&&n?.layer&&n.graphic);if(o.length===0){c("info",this,"No usable hit test results found.");return}this._ensureNecessaryAttributesAndGenerateTraceLocation(o,a)}_resetAfterSketch(){let{view:e}=this;if(!e){c("error",this,"View is not available to reset after sketch.");return}this._clickHandler?.remove(),this._clickHandler=void 0,"acquireCursor"in e&&e.acquireCursor("default"),this.arcgisTraceLocationSelectEnd.emit()}_handleSketchComplete(e){let{sketchViewModel:t,view:r}=this;if(!t||!r){c("error",this,"Either `sketchViewModel` or `view` is not available in sketch complete handler.");return}e.state==="complete"&&e.graphic&&(t.layer.remove(e.graphic),this._hitTest(e)),(e.state==="cancel"||e.state==="complete")&&this._resetAfterSketch()}async _handleAddButtonClick(){let{view:e,sketchViewModel:t}=this;if(!(e&&t)){c("error",this,"Cannot add trace location; `view` not found.");return}if(this.beforeTraceLocationSelectStart){this.isSelectWaiting=!0;try{await this.beforeTraceLocationSelectStart()}finally{this.isSelectWaiting=!1}}this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>t.cancel()}).defaultPrevented||(this._clickHandler?.remove(),this._clickHandler=t.on("create",this._handleSketchComplete.bind(this)),"acquireCursor"in e&&e.acquireCursor("crosshair"),this.sketchViewModel?.create("point"))}_handleClearButtonClick(){let{flagLayer:e,traceLocations:t}=this;t?.forEach(r=>{r.spatialProperties.flagGraphic&&e&&e.remove(r.spatialProperties.flagGraphic)}),t?.removeAll()}renderAddLocationBlock(){let{traceLocationType:e,messages:t,traceLocations:r}=this,a=e==="starting-point"?t.types.startingPoint:e==="barrier"?t.types.barrier:t.types.stoppingPoint,i=a.heading,o=a.description,n=a.buttonText;return g`<calcite-block .heading=${i} .label=${i} expanded .description=${o}>${r?.length?g`<calcite-button class=${p(b.clearButton)} slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${()=>this._handleClearButtonClick()}>${t.buttons.clear}</calcite-button>`:null}<arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${e}></arcgis-utility-network-trace-location-list><div class=${p(b.buttonContainer)}><calcite-button .loading=${this.isSelectWaiting} class=${p(b.addLocationButton)} icon-start=select appearance=outline .label=${n} @click=${()=>this._handleAddButtonClick()}>${n}</calcite-button></div></calcite-block>`}render(){return g`<div class=${p(b.base)}>${this.renderAddLocationBlock()}</div>`}};S("arcgis-utility-network-trace-location",L);return L},"geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/projectOperator","geometry/Polyline","geometry/SpatialReference","Graphic","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol")
3
+ v5.0.0-next.142 */
4
+ import{a as x}from"./HVKTXMYZ.js";import"./6B3J6F6V.js";import"./6IYKLL4K.js";import"./Q335463L.js";import{N as T,O as p,T as S,a as v,b as g,p as c,x as y}from"./CMZQVTZU.js";import"./ADV42HI2.js";export default $arcgis.t(([I,m,h,C,P,G,A,_])=>{var B=v`.arcgis-utility-network-trace-location calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.arcgis-utility-network-trace-location calcite-notice{padding:var(--calcite-spacing-xs)}.arcgis-utility-network-trace-location__add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.arcgis-utility-network-trace-location__button-container{justify-content:center;display:grid}.arcgis-utility-network-trace-location__clear-button{--calcite-button-border-color: transparent}`,f="arcgis-utility-network-trace-location",b={base:f,buttonContainer:`${f}__button-container`,clearButton:`${f}__clear-button`,addLocationButton:`${f}__add-location-button`},L=class extends T{constructor(){super(...arguments),this.messages=x({blocking:!0}),this.isSelectWaiting=!1,this.traceLocationType="starting-point",this.spatialTolerance=.05,this.arcgisTraceLocationChange=y(),this.arcgisTraceLocationSelectEnd=y(),this.arcgisTraceLocationSelectStart=y()}static{this.properties={isSelectWaiting:16,beforeTraceLocationSelectStart:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,sketchViewModel:0,flagLayer:0,spatialTolerance:9,utilityNetwork:0}}static{this.styles=B}async load(){h.isLoaded()||await h.load()}_createPolyline(e,t){return new C({hasZ:!1,hasM:!0,paths:e,spatialReference:new P({wkid:t})})}_calculatePercentAlong(e,t){let r=e.spatialReference,a=this._createPolyline(e.paths,r.wkid),i=t.x-.5,o=t.x+.5,n=t.y-.5,s=t.y+.5,l=[[[i,n],[o,s]]],w=this._createPolyline(l,t.spatialReference.wkid),u=h.execute(w,r);if(!u)return c("error",this,"Unable to project flag geometry to source geometry spatial reference."),.5;let d=I.execute(a,u);if(d.length>0){let $=m.execute(a,{unit:"feet"}),k;return d[0].paths[0][0][0]===a.paths[0][0][0]?k=m.execute(d[0],{unit:"feet"}):k=m.execute(d[1],{unit:"feet"}),k/$}return c("warn",this,"Unable to cut the source geometry with the flag geometry."),.5}async _ensureNecessaryAttributes(e){let t=(e.layer?.type,e.layer),r=t.fieldsIndex?.get("assetgroup")??!1,a=t.fieldsIndex?.get("assetgroup")?.name??"assetgroup",i=t.fieldsIndex?.get("assettype")??!1,o=t.fieldsIndex?.get("assettype")?.name??"assettype",n=e.getGlobalId(),s=e.getObjectId(),l=r?!!e.getAttribute(a):!0,w=i?!!e.getAttribute(o):!0;if(n&&s&&l&&w)return e;let u=t.createQuery();return u.objectIds=[s],(await t.queryFeatures(u))?.features[0]||null}async _ensureNecessaryAttributesAndGenerateTraceLocation(e,t){let{view:r}=this;if(!r||e.length===0){c("error",this,"`view` is unavailable or there are no results to process.");return}let a=e[0].graphic,i=await this._ensureNecessaryAttributes(a);if(!i){c("error",this,"Unable to ensure necessary attributes on the selected graphic.");return}this._generateTraceLocation(i,t)}_createFlagSymbol(){let{traceLocationType:e}=this,t=[244,21,21,.6],r=[21,244,21,.6];return e==="stopping-point"?new _({color:t,style:"x",size:12,outline:{color:t,width:2}}):e==="barrier"?new _({color:t,style:"square",size:12,outline:{color:t,width:0}}):new _({color:r,style:"circle",size:12,outline:{color:r,width:0}})}_addFlagGraphic(e,t,r){let{flagLayer:a,view:i}=this;if(!a||!i)return c("error",this,"The properties `flagLayer` and `view` are required but either one or both are missing."),null;let o=t.geometry?.type;if(this.traceLocations?.some(l=>l.traceLocation.globalId===e)&&o!=="polyline")return c("warn",this,"A flag with the same globalId already exists."),null;let n=this._createFlagSymbol(),s=new G({geometry:r,symbol:n,attributes:t.attributes});return a.add(s),s}async _generateItemTitle(e){let{messages:t}=this,r=(e.layer?.type,e.layer);return("getFeatureTitle"in r?await r.getFeatureTitle(e):null)||e?.getObjectId()?.toString()||t.labels.unknown}async _generateFlagInfo(e,t){let{traceLocationType:r,utilityNetwork:a}=this,i=e.getGlobalId()??"",o=e.geometry?.type,n=await this._generateItemTitle(e);if(o==="point"||o==="polygon"){let s=a?.getTerminalConfiguration(e),l=s?s.terminals[0].id:1;return{traceLocation:new A({type:r,isFilterBarrier:!1,globalId:i,terminalId:l}),flagProperties:{title:n,expanded:!1,terminalConfiguration:s??void 0,selectedTerminals:s?new Set([l]):void 0},spatialProperties:{mapPoint:t,mapGraphic:e}}}else if(o==="polyline"){let s=this._calculatePercentAlong(e.geometry,t);return{traceLocation:new A({type:r,isFilterBarrier:!1,globalId:i,percentAlong:s}),flagProperties:{title:n,expanded:!1},spatialProperties:{mapPoint:t,mapGraphic:e}}}return null}async _generateTraceLocation(e,t){let{traceLocations:r}=this,a=e.getGlobalId()??"",i=e.geometry?.type,o=await this._generateFlagInfo(e,t);if(!o){c("error",this,"Unable to generate flag info for trace location.");return}let n=r?.filter(s=>s.spatialProperties.mapGraphic?.getGlobalId()===a)??[];if(n.length===0||i==="polyline"){if(i==="polyline"&&n.length>0&&n.some(l=>Math.abs(l.traceLocation.percentAlong-o.traceLocation.percentAlong)<=this.spatialTolerance)){c("warn",this,"A flag with the same globalId already exists within tolerance.");return}let s=this._addFlagGraphic(a,e,t);if(!s){c("warn",this,"Unable to add flag graphic.");return}o.spatialProperties.flagGraphic=s,r?.add(o);return}c("warn",this,"A flag with the same globalId already exists.")}async _hitTest(e){let{view:t,utilityNetwork:r}=this;if(!t||!r){c("error",this,"Either `utilityNetwork` or `view` is unavailable for hit test.");return}let a=e.graphic?.geometry,i=this.view?.toScreen(a);if(!i){c("warn",this,"No screen point available for hit test.");return}let o=(await t.hitTest(i,{include:this.filterLayers})).results.filter(n=>n.type==="graphic"&&n?.layer&&n.graphic);if(o.length===0){c("info",this,"No usable hit test results found.");return}this._ensureNecessaryAttributesAndGenerateTraceLocation(o,a)}_resetAfterSketch(){let{view:e}=this;if(!e){c("error",this,"View is not available to reset after sketch.");return}this._clickHandler?.remove(),this._clickHandler=void 0,"acquireCursor"in e&&e.acquireCursor("default"),this.arcgisTraceLocationSelectEnd.emit()}_handleSketchComplete(e){let{sketchViewModel:t,view:r}=this;if(!t||!r){c("error",this,"Either `sketchViewModel` or `view` is not available in sketch complete handler.");return}e.state==="complete"&&e.graphic&&(t.layer.remove(e.graphic),this._hitTest(e)),(e.state==="cancel"||e.state==="complete")&&this._resetAfterSketch()}async _handleAddButtonClick(){let{view:e,sketchViewModel:t}=this;if(!(e&&t)){c("error",this,"Cannot add trace location; `view` not found.");return}if(this.beforeTraceLocationSelectStart){this.isSelectWaiting=!0;try{await this.beforeTraceLocationSelectStart()}finally{this.isSelectWaiting=!1}}this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>t.cancel()}).defaultPrevented||(this._clickHandler?.remove(),this._clickHandler=t.on("create",this._handleSketchComplete.bind(this)),"acquireCursor"in e&&e.acquireCursor("crosshair"),this.sketchViewModel?.create("point"))}_handleClearButtonClick(){let{flagLayer:e,traceLocations:t}=this;t?.forEach(r=>{r.spatialProperties.flagGraphic&&e&&e.remove(r.spatialProperties.flagGraphic)}),t?.removeAll()}renderAddLocationBlock(){let{traceLocationType:e,messages:t,traceLocations:r}=this,a=e==="starting-point"?t.types.startingPoint:e==="barrier"?t.types.barrier:t.types.stoppingPoint,i=a.heading,o=a.description,n=a.buttonText;return g`<calcite-block .heading=${i} .label=${i} expanded .description=${o}>${r?.length?g`<calcite-button class=${p(b.clearButton)} slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${()=>this._handleClearButtonClick()}>${t.buttons.clear}</calcite-button>`:null}<arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${e}></arcgis-utility-network-trace-location-list><div class=${p(b.buttonContainer)}><calcite-button .loading=${this.isSelectWaiting} class=${p(b.addLocationButton)} icon-start=select appearance=outline .label=${n} @click=${()=>this._handleAddButtonClick()}>${n}</calcite-button></div></calcite-block>`}render(){return g`<div class=${p(b.base)}>${this.renderAddLocationBlock()}</div>`}};S("arcgis-utility-network-trace-location",L);return L},"geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/projectOperator","geometry/Polyline","geometry/SpatialReference","Graphic","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol")
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.140 */
4
- import f from"./L73EFU5S.js";import e from"./DJNOZ3G7.js";import"./C4EXEFHY.js";import{b as E}from"./XD2BQKRE.js";import{a as u}from"./AKLPCQ4H.js";import d from"./WAWFMZ2P.js";import c from"./G7RQ35FO.js";import{a as D}from"./WDZSFILV.js";import b from"./OWHJNWDS.js";import a from"./NCCHUPW3.js";import"./57KHM7P2.js";import"./Z5FKAWPV.js";import"./774HFEEA.js";import"./5S35UURX.js";import{L as A,M as P,N as O,P as I,Q as V,T as B,a as z,b as n,c as $,x as w}from"./MDOFMA7T.js";import"./EXKTZLIJ.js";export default $arcgis.t(([{property:o,subclass:J},K,_,{getApplicationClipboard:ie},ae,k,{getFullTemplate:R,isSharedTemplate:U,getCreationAttributes:X,isSharedTemplateOrMetadata:se},{createApplySetModifyItem:x,createApplySet:S,createFeatureStateProvider:G,createApplySetAddItem:H,writeApplySetToService:re},{whenOnce:Q,watch:L},oe,{substitute:y},{createGraphicsMover:le},,,W,,{a:j,b:N}])=>{var ce=z`.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__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}:host{max-width:fit-content;display:flex}.arcgis-paste{height:var(--arcgis-paste-height, 300px);width:var(--arcgis-paste-width, 300px);flex:1}.hidden{display:none}.flex-row{flex-direction:row}.justify-center{justify-content:center}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.text-center{text-align:center}.pad-contents{padding:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.pad-start-end{padding-left:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-right:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.gallery-content{padding-top:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-bottom:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));display:flex;row-gap:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));flex-direction:column}.chip-indent{margin-left:5px;margin-right:5px}.merge-split-view-container{display:flex;flex-direction:column;height:100%}.merge-split-view-items{flex:0 1 auto;max-height:50%;overflow-y:scroll}.merge-split-view-attributes{flex:1;overflow-y:scroll}.choose-feature{position:absolute;width:100%;max-height:100%;z-index:2;overflow-y:auto}.bau-pick{display:flex;flex-direction:row;align-items:center;gap:4px}.danger-icon-warning{--calcite-icon-color: var(--calcite-color-status-danger)}.paste-feature-templates{--arcgis-feature-templates-max-list-height: 100%}`;async function ne(t,i,e,a=new Map){let s=!0;for(let r of t.items){if(r.type!=="add")continue;let d=r.graphic.clone(),h=de(r.graphic,r.layer);if(!h){s=!1;continue}let p=!await pe(e,r.graphic,h,a,i),g=x({graphic:r.graphic,layer:r.layer,originalGraphic:d});t.push(g),p||(s=!1)}return s}function de(t,i){return i.type==="feature"||i.type==="subtype-sublayer"?i:i.findSublayerForFeature(t)||null}async function pe(t,i,e,a,s){let r=e.formTemplate,d=e.fields.filter(m=>{let M=i.attributes[m.name],te=M===null||M===""||M===void 0;return m.editable&&!m.nullable&&te});if(!r)return d.length!==0;let h=new Set;if(ee(r.elements??[],h),d.length===0&&h.size===0&&!s)return!1;let p=new Set;if(Y(r.elements??[],p),[...h].filter(m=>p.has(m)).length===0&&!s)return!1;let g=i.clone();delete g.attributes[e.objectIdField],a.set(e,new oe({layer:e,map:t.map,formTemplate:r,editType:"INSERT",feature:g}));let F=a.get(e);await new Promise(m=>{setTimeout(m,5)}),await Q(()=>F.state==="ready"&&!F.updating);let b=F.getValues()??{};if(e.objectIdField&&b[e.objectIdField]!==void 0){let{[e.objectIdField]:m,...M}=b;b=M}return Object.keys(b).forEach(m=>{e.fieldsIndex.has(m)&&(i.attributes[m]=ue(b[m],m,e.fieldsIndex))}),!F.valid}function Y(t,i){for(let e of t)e.type==="group"?Y(e.elements,i):e.type==="field"&&e.valueExpression&&i.add(e.fieldName)}function ee(t,i){for(let e of t)e.type==="group"?ee(e.elements,i):e.type==="field"&&e.requiredExpression&&i.add(e.fieldName)}function he(t){return typeof t=="number"}function me(t){return typeof t=="number"&&window.isFinite(t)&&Math.floor(t)===t}function ue(t,i,e){if(t==null)return null;switch(e.get(i).type){case"big-integer":case"long":case"oid":case"integer":case"small-integer":return me(t)?t:window.parseInt(t);case"single":case"double":return he(t)?t:window.parseFloat(t);case"global-id":case"guid":return t===""?null:t;case"date":break;case"date-only":case"time-only":case"timestamp-offset":return t===""?null:t;case"string":return t===""?null:t}return t}function ge(t){return t&&"layer"in t?t.layer:void 0}function C(t){if(!t)return null;let i=ge(t.origin)??t.layer??t?.sourceLayer??null;if(i&&i.type==="subtype-sublayer")return i.parent;switch(i?.type){case"csv":case"feature":case"geojson":case"ogc-feature":case"subtype-group":case"wfs":return i;default:return null}}var ve=Object.defineProperty,be=Object.getOwnPropertyDescriptor,c=(t,i,e,a)=>{for(var s=a>1?void 0:a?be(i,e):i,r=t.length-1,d;r>=0;r--)(d=t[r])&&(s=(a?d(i,e,s):d(s))||s);return a&&s&&ve(i,e,s),s},q={noChangeError:"Operation has not made any changes",noSelectedError:"Operation requires a selected feature",deletesGeometryError:"Operation would result in a null geometry",noGeometryError:"The selected feature has not geometry"};function Z(t){return!se(t)||t.type!=="feature"}var l=class extends K{constructor(t){super(t),this.customPasteCommands=new k,this.bauInvalidFeatures=[],this.bauFormValid=!0,this.bauFormUpdating=!1,this.bauActiveFeatureIndex=-1,this.bauSubmitHasBeenAttempted=!1,this.bauOriginalGraphics=[],this.formViewModelMap=new Map,this.supportedCommands=["paste-append","paste-as","paste-subtract","paste","paste-merge"],this.pasteWithMultipleLayersEnabled=!1,this.pasteWithMultipleFeaturesEnabled=!1,this.alwaysShowFeatureForm=!1,this.selectedClipboardItemIndex=-1,this.pasteWithAttributes=!0,this.closeOnApply=!1,this.currentPasteOperation="",this._activeFlowPage="commands-page",this.showClipboardItems=!1,this.hideFooterCancelButton=!1,this.hideViewClipboard=!1,this.hideErrorNotice=!1,this.highlightGroup="temporary",this._hoverHighlightHandle=null,this.layerPermissionsCheck={canCreate:i=>i?!!i.effectiveCapabilities?.operations.supportsAdd:!1,canUpdate:i=>{if(!i)return!1;let e=i.effectiveCapabilities,a=!!e?.operations.supportsUpdate,s=!!e?.editing.supportsGeometryUpdate&&a;return!i.isTable&&!s?!1:a}},this.applying=!1}get bauActiveGraphic(){return this.bauActiveFeatureIndex===-1?void 0:this.bauFeatures?.getItemAt(this.bauActiveFeatureIndex)}get bauActiveLayer(){if(this.bauActiveFeatureIndex!==-1&&this.bauFeatures)return C(this.bauFeatures.getItemAt(this.bauActiveFeatureIndex))??void 0}get clipboardAndTemplateSupportAttributes(){if(this.clipboard.items.length===0||!this.pasteTemplate?.layer)return!1;let t=this.pasteTemplate.template;if(!Z(t))return!1;for(let i of this.clipboard.items){let e=i.layer;if(!e)return!1;let a=e.type==="subtype-sublayer"?e.parent:e;if(a.type==="subtype-group"){let s=a.fieldsIndex.get(a.subtypeField).name,r=t.prototype?.[s];if(r==null||r!==i.graphic.attributes[s])return!1}}return!0}get hasClipboardItemMatchingTemplate(){let t=this.pasteTemplate?.layer;if(!t||this.clipboard.items.length===0)return!1;let i=this.pasteTemplate.template;if(!Z(i))return!1;for(let e of this.clipboard.items){let a=e.layer;if(!a)return!1;let s=a.type==="subtype-sublayer"?a.parent:a;if(t===a){if(s.type==="subtype-group"){let r=s.fieldsIndex.get(s.subtypeField).name,d=i.prototype?.[r];if(d==null||d!==e.graphic.attributes[r])continue}return!0}}return!1}get activeFlowPage(){return this._activeFlowPage}set activeFlowPage(t){t==="clipboard"&&this.beforeClipboard===void 0?this.beforeClipboard=this.activeFlowPage:t!=="clipboard"&&(this.beforeClipboard=void 0),t==="paste-form"&&this.beforeForm===void 0?this.beforeForm=this.activeFlowPage:t!=="paste-form"&&(this.beforeForm=void 0),this._activeFlowPage=t,this.checkAndSuspendMove()}get updating(){return this.applying}formFeatureValuesChanged(t,i){if(!i)return;let e=t.graphic.clone();for(let s of Object.keys(i))e.attributes[s]=i[s];let a=x({graphic:e,originalGraphic:t.graphic.clone(),layer:t.layer});this.bauApplySet?.push(a)}highlightSelectedGraphicOnMap(t){if(this.clearHighlightSelectedGraphic(),!t.graphic?.geometry||!this.view)return;let i=new _({geometry:t.graphic.geometry,symbol:N(t.graphic.geometry.type)});this.view.graphics.add(i),this._hoverHighlightHandle={remove:()=>{this.view.graphics.remove(i)}}}clearHighlightSelectedGraphic(){this._hoverHighlightHandle?.remove(),this._hoverHighlightHandle=null}updateIndividualMultiFeatureFormHighlight(){if(this.activeFlowPage!=="paste-form"){this.clearIndividualFeatureFormHighlight();return}if(this.view)if(this.bauActiveGraphic&&this.bauActiveLayer){if(this.bauIndividualHighlight?.graphic!==this.bauActiveGraphic&&this.clearIndividualFeatureFormHighlight(),!this.bauIndividualHighlight){let t=E(this.view,this.bauActiveLayer);if(!t)return;this.bauIndividualHighlight={graphic:this.bauActiveGraphic,handle:t.highlight(this.bauActiveGraphic,{name:this.highlightGroup})}}}else this.clearIndividualFeatureFormHighlight()}clearIndividualFeatureFormHighlight(){this.bauIndividualHighlight?.handle?.remove(),this.bauIndividualHighlight=void 0}highlightMultiFeatureFormFeature(t,i){this.bauHighlight&&this.clearMultiFeatureFormHighlights();let e=this.view?E(this.view,t.layer):void 0;e&&(this.bauHighlight=e.highlight(t,{name:this.highlightGroup}))}clearMultiFeatureFormHighlights(){this.bauHighlight?.remove(),this.bauHighlight=void 0}updateClipboardGraphicsLayer(){if(!this.showClipboardItems){if(this.clipboardMover?.cancel(),this.clipboardMover=void 0,this.clipboardGraphicsLayer&&this.view)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}return}if(this.showClipboardItems&&this.view){this.clipboardGraphicsLayer||(this.clipboardGraphicsLayer=new ae,this.view.map?.layers.add(this.clipboardGraphicsLayer));let t=this.clipboard.items;this.clipboardGraphicsLayer.removeAll();let i=-1;for(let e of t){if(i++,!e.graphic.geometry)continue;let a=new _({geometry:e.graphic.geometry.clone(),attributes:{clipboardIdx:i},symbol:j(e.graphic.geometry.type)});this.clipboardGraphicsLayer.add(a)}}else if(!this.showClipboardItems&&this.view&&this.clipboardGraphicsLayer)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}this.checkAndSuspendMove()}checkAndSuspendMove(){let t=this.activeFlowPage==="paste-form";this.clipboardGraphicsLayer&&(this.clipboardGraphicsLayer.visible=!t),this.clipboardMover&&(this.clipboardMover.suspended=t)}get clipboard(){return ie()}get clipboardFeatures(){return this.clipboard.items.filter(t=>t.type==="feature")}get hasPasteCommandsPage(){return this.availableCommands.length>1||!!this.availableCommands.at(0)?.mustShowOnCommandPage}_clearActiveCommand(){this.activeCommand=void 0,this.pasteTemplate=void 0,this.lastPasteError=void 0}resetHome(){let t=this.activeFlowPage;this.hasPasteCommandsPage?(t="commands-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.clipboard.items.length===0?(t="nodata-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.availableCommands.length===0?(t="no-command-page",this._clearActiveCommand()):this.availableCommands[0].commandEnabled?(this.pasteTemplate=void 0,t="gallery-page",this.activeCommand=this.availableCommands[0].id,this.lastPasteError=void 0):(t="no-command-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1),this.activeFlowPage==="clipboard"&&this.hideViewClipboard?(this.activeFlowPage=t,this.beforeClipboard=void 0):this.activeFlowPage==="clipboard"&&!this.hideViewClipboard?this.beforeClipboard=t:(this.activeFlowPage=t,this.beforeClipboard=void 0),this.resetFormPage()}get workingLayers(){return(this.view?.map?.allLayers?.toArray()??[]).filter(t=>t.type==="feature").filter(t=>{let i=this.clipboard.singleGeometryType;return this.activeCommand==="paste-merge"&&this.clipboard.singleGeometryType==="point"&&(i="multipoint"),!(t.geometryType!==i||!this.layerPermissionsCheck.canCreate(t))})}get clipboardItemLayers(){let t=new Set;for(let i of this.clipboard.items)i.layer&&t.add(i.layer.type==="subtype-sublayer"?i.layer.parent:i.layer);return[...t]}get canCreateOnAllLayers(){if(this.clipboardItemLayers.length===0)return!1;for(let t of this.clipboardItemLayers)if(!t||!this.layerPermissionsCheck.canCreate(t))return!1;return!0}get availableCommands(){let t=[],i=new Set(this.supportedCommands);if(i.has("paste")){let e=this.clipboard.items.length===1,a=this.clipboard.items.length>0&&this.clipboardItemLayers.length===1&&this.pasteWithMultipleFeaturesEnabled,s=this.clipboard.items.length>0&&this.pasteWithMultipleFeaturesEnabled&&this.pasteWithMultipleLayersEnabled;t.push({id:"paste",icon:"duplicate",immediate:!0,initiate:async r=>{await this.runPasteCommand(r,"paste")},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.canCreateOnAllLayers&&(e||a||s),description:(r,d)=>r.pasteDesc,label:(r,d)=>r.pasteTitle})}i.has("paste-as")&&t.push({id:"paste-as",icon:"templates",initiate:async e=>{this.activeFlowPage="gallery-page",this.activeCommand="paste-as"},commandDisabledReason:(e,a)=>{if(this.clipboard.items.length===0)return e.noClipboardData;if(this.clipboard.items.length>1){if(!this.pasteWithMultipleFeaturesEnabled)return e.pasteMultipleNotSupported;if(this.clipboard.geometryTypes.size>1)return e.mixedGeometriesNotSupported}return this.clipboard.singleGeometryType?"":e.pasteAsMustHaveGeometry},immediate:!1,mustShowOnCommandPage:!1,commandEnabled:(this.clipboard.items.length===1||this.clipboard.items.length>0&&this.pasteWithMultipleFeaturesEnabled)&&this.clipboard.singleGeometryType!==void 0,description:(e,a)=>e.pasteAsDesc,label:(e,a)=>e.pasteAsTitle}),i.has("paste-merge")&&t.push({id:"paste-merge",icon:"merge",immediate:!1,initiate:async e=>{this.activeFlowPage="gallery-page",this.activeCommand="paste-merge";for(let a=0;a<this.clipboard.items.length;a++)if(this.clipboard.items.getItemAt(a).type==="feature"){this.selectedClipboardItemIndex=a;break}},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>1&&this.clipboard.singleGeometryType!==void 0,description:(e,a)=>e.pasteMergeDesc,label:(e,a)=>e.pasteMergeTitle}),i.has("paste-append")&&t.push({id:"paste-append",icon:"reshape-add-geometry",immediate:!0,initiate:async e=>{await this.runPasteAppendCommand(e)},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.selectedFeature!==void 0&&this.layerPermissionsCheck.canUpdate(C(this.selectedFeature))&&this.selectedFeature?.geometry!==null&&(this.selectedFeature?.geometry?.type==="multipoint"||this.selectedFeature?.geometry?.type==="polyline"||this.selectedFeature?.geometry?.type==="polygon")&&this.clipboard.singleGeometryType===this.selectedFeature?.geometry?.type,description:(e,a)=>e.pasteAppendDesc,label:(e,a)=>e.pasteAppendTitle}),i.has("paste-subtract")&&t.push({id:"paste-subtract",icon:"reshape-subtract-geometry",immediate:!0,initiate:async e=>{await this.runPasteSubtractCommand(e)},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.selectedFeature!==void 0&&this.layerPermissionsCheck.canUpdate(C(this.selectedFeature))&&this.selectedFeature?.geometry!==null&&(this.selectedFeature?.geometry?.type==="multipoint"||this.selectedFeature?.geometry?.type==="polyline"||this.selectedFeature?.geometry?.type==="polygon")&&(this.clipboard.singleGeometryType===this.selectedFeature?.geometry?.type||this.clipboard.singleGeometryType==="polygon"),description:(e,a)=>e.pasteSubtractDesc,label:(e,a)=>e.pasteSubtractTitle});for(let e of this.customPasteCommands)i.has(e.id)&&t.push({id:e.id,icon:e.icon,immediate:!0,initiate:async a=>{try{this.applying=!0,(await a.onApply({command:e.id})).success&&(this.resetHome(),this.closeOnApply&&a.closeAfterApply())}finally{this.applying=!1}},mustShowOnCommandPage:!0,commandEnabled:e.commandEnabled(this.clipboard,this.selectedFeature),description:(a,s)=>e.description(a,s),label:(a,s)=>e.label(a,s)});return t}async createMergedClipboardGeom(){let t=this.clipboard.items.map(i=>i.graphic?.geometry).filter(i=>i!=null).toArray();return t.length===0?null:t.length===1?t[0].clone():(await $arcgis.t(m=>m[0],"geometry/operators/unionOperator")).executeMany(t)??null}removeGraphicIdentifierFields(t,i){i.objectIdField&&delete t.attributes[i.objectIdField],i.globalIdField&&delete t.attributes[i.globalIdField]}nextActiveFeature(){this.bauActiveFeatureIndex++,this.updateIndividualMultiFeatureFormHighlight()}previousActiveFeature(){this.bauActiveFeatureIndex--,this.updateIndividualMultiFeatureFormHighlight()}async runPasteAppendCommand(t){let i=null;try{this.applying=!0;let e=await this.prepareAppend();if(e.applySet&&(i=e.applySet),!e.success){this.lastPasteError={errorCode:e.failReason,errorMessage:q[e.failReason],localizedErrorMessage:e.failReason},t.onPasteError(this.lastPasteError);return}(await t.onApply({command:"paste-append",applySet:e.applySet})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(e){this.lastPasteError={errorCode:"unexpectedError",errorMessage:e.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1,i&&(i.featureState?.clearAll(),i.featureState=null)}}async prepareAppend(){let t=S();if(t.featureState=G(this.view),!this.selectedFeature)return{success:!1,failReason:"noSelectedError"};let[i,e]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/unionOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.selectedFeature.geometry,s=!1;for(let d of this.clipboard.items){let h=d?.graphic?.geometry??null;if(!h)continue;if(a===null){a=d?.graphic?.geometry??null,a&&(a=a.clone(),s=!0);continue}let p=i.execute(a,h);e.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError"};let r=this.selectedFeature.clone();return r.geometry=a,t.push(x({graphic:r,layer:this.selectedFeature.origin,originalGraphic:this.selectedFeature})),{success:!0,applySet:t}}resetFormPage(){this.bauApplySet?.featureState?.clearAll(),this.bauApplySet=void 0,this.clearIndividualFeatureFormHighlight(),this.clearMultiFeatureFormHighlights(),this.bauFeatures=void 0,this.bauOriginalGraphics=[],this.bauSubmitHasBeenAttempted=!1}async runPasteSubtractCommand(t){let i=null;try{this.applying=!0;let e=await this.prepareSubtract();if(e.applySet&&(i=e.applySet),!e.success){this.lastPasteError={errorCode:e.failReason,errorMessage:q[e.failReason],localizedErrorMessage:e.failReason},t.onPasteError(this.lastPasteError);return}(await t.onApply({command:"paste-subtract",applySet:e.applySet})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(e){this.lastPasteError={errorCode:"unexpectedError",errorMessage:e.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1,i&&(i.featureState?.clearAll(),i.featureState=null)}}async prepareSubtract(){let t=S();if(t.featureState=G(this.view),!this.selectedFeature)return{success:!1,failReason:"noSelectedError",applySet:t};let[i,e]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/differenceOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.selectedFeature.geometry;if(!a)return{success:!1,failReason:"noGeometryError",applySet:t};let s=!1;for(let d of this.clipboard.items){let h=d?.graphic?.geometry;if(!h)continue;let p=i.execute(a,h);if(!p)return{success:!1,failReason:"deletesGeometryError",applySet:t};e.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError",applySet:t};let r=this.selectedFeature.clone();return r.geometry=a,t.push(x({graphic:r,layer:this.selectedFeature.origin,originalGraphic:this.selectedFeature})),{success:!0,applySet:t}}async runPasteFormCommand(t){try{this.applying=!0;let i=this.bauApplySet;(await t.onApply({command:this.activeCommand,applySet:i})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(i){this.lastPasteError={errorCode:"unexpectedError",errorMessage:i.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1}}async runPasteCommand(t,i){try{this.applying=!0;let e=await this.prepareCopy(i);if(!e||e.items.length===0){this.lastPasteError={errorCode:"noPasteItems",errorMessage:"No items to paste",localizedErrorMessage:"noPasteItemsError"},t.onPasteError(this.lastPasteError);return}let a=!await ne(e,this.alwaysShowFeatureForm,this.view,this.formViewModelMap);if(this.alwaysShowFeatureForm||a)this.bauActiveFeatureIndex=0,this.bauApplySet=e,this.activeCommand=i,this.bauOriginalGraphics=e.items.map(s=>s.type==="add"?{layer:s.layer,graphic:s.graphic}:null).filter(s=>s!==null),this.bauFeatures=new k,this.activeFlowPage="paste-form",await new Promise(s=>{setTimeout(s,100)}),this.bauFeatures=new k(this.bauOriginalGraphics.map(s=>(s.graphic.origin=s.layer,s.graphic.layer=s.layer,s.graphic))),this.updateIndividualMultiFeatureFormHighlight();else try{(await t.onApply({command:"paste",applySet:e})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}finally{e?.featureState?.clearAll()}}finally{this.applying=!1}}async prepareCopy(t){let i=t==="paste"||t==="paste-as"&&this.pasteWithAttributes||t==="paste-merge"&&this.pasteWithAttributes,e=i&&t==="paste-merge"?this.clipboard.items.getItemAt(this.selectedClipboardItemIndex):null,a=S();if(a.featureState=G(this.view),t==="paste-merge"){let s=this.pasteTemplate?.template?await R(this.view,this.pasteTemplate.template):null;if(!s)return null;let r=U(this.pasteTemplate.template)?s.layer:this.pasteTemplate.layer,d=await this.createMergedClipboardGeom(),h=X(s,e?{...e.graphic.attributes}:{}),p=new _({geometry:d,attributes:h});this.removeGraphicIdentifierFields(p,r),a.push(H({graphic:p,layer:r}))}else if(t==="paste"){for(let s of this.clipboard.items)if(s.type==="feature"){let r=s.graphic.clone();this.removeGraphicIdentifierFields(r,s.layer),a.push(H({graphic:r,layer:s.layer}))}}else if(t==="paste-as"){let s=this.pasteTemplate?.template?await R(this.view,this.pasteTemplate.template):null,r=U(s)?s.layer:this.pasteTemplate.layer;for(let d of this.clipboard.items){let h=X(s,i?{...d.graphic.attributes??{}}:{}),p=new _({geometry:d.graphic?.geometry?.clone()??null,attributes:h});this.removeGraphicIdentifierFields(p,r),a.push(H({graphic:p,layer:r}))}}return a}async writeChanges(t){return await re(t,this.view)}};c([o()],l.prototype,"customPasteCommands",2);c([o()],l.prototype,"bauInvalidFeatures",2);c([o()],l.prototype,"bauFormValid",2);c([o()],l.prototype,"bauFormUpdating",2);c([o()],l.prototype,"bauActiveFeatureIndex",2);c([o()],l.prototype,"bauSubmitHasBeenAttempted",2);c([o()],l.prototype,"bauActiveGraphic",1);c([o()],l.prototype,"bauActiveLayer",1);c([o()],l.prototype,"bauFeatures",2);c([o()],l.prototype,"bauApplySet",2);c([o()],l.prototype,"bauOriginalGraphics",2);c([o()],l.prototype,"formViewModelMap",2);c([o()],l.prototype,"bauHighlight",2);c([o()],l.prototype,"bauIndividualHighlight",2);c([o()],l.prototype,"view",2);c([o()],l.prototype,"supportedCommands",2);c([o()],l.prototype,"selectedFeature",2);c([o()],l.prototype,"pasteWithMultipleLayersEnabled",2);c([o()],l.prototype,"pasteWithMultipleFeaturesEnabled",2);c([o()],l.prototype,"alwaysShowFeatureForm",2);c([o()],l.prototype,"pasteTemplate",2);c([o()],l.prototype,"selectedClipboardItemIndex",2);c([o()],l.prototype,"clipboardAndTemplateSupportAttributes",1);c([o()],l.prototype,"hasClipboardItemMatchingTemplate",1);c([o()],l.prototype,"pasteWithAttributes",2);c([o()],l.prototype,"closeOnApply",2);c([o()],l.prototype,"currentPasteOperation",2);c([o()],l.prototype,"activeFlowPage",1);c([o()],l.prototype,"_activeFlowPage",2);c([o()],l.prototype,"beforeClipboard",2);c([o()],l.prototype,"beforeForm",2);c([o()],l.prototype,"showClipboardItems",2);c([o()],l.prototype,"updating",1);c([o()],l.prototype,"hideFooterCancelButton",2);c([o()],l.prototype,"hideViewClipboard",2);c([o()],l.prototype,"hideErrorNotice",2);c([o()],l.prototype,"clipboardGraphicsLayer",2);c([o()],l.prototype,"clipboardMover",2);c([o()],l.prototype,"highlightGroup",2);c([o()],l.prototype,"clipboard",1);c([o()],l.prototype,"clipboardFeatures",1);c([o()],l.prototype,"hasPasteCommandsPage",1);c([o()],l.prototype,"activeCommand",2);c([o()],l.prototype,"workingLayers",1);c([o()],l.prototype,"layerPermissionsCheck",2);c([o()],l.prototype,"clipboardItemLayers",1);c([o()],l.prototype,"canCreateOnAllLayers",1);c([o()],l.prototype,"applying",2);c([o()],l.prototype,"lastPasteError",2);c([o()],l.prototype,"availableCommands",1);l=c([J("components.paste.PasteViewModel")],l);var we=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,f=(t,i,e,a)=>{for(var s=a>1?void 0:a?ye(i,e):i,r=t.length-1,d;r>=0;r--)(d=t[r])&&(s=(a?d(i,e,s):d(s))||s);return a&&s&&we(i,e,s),s},v=class extends K{constructor(){super(...arguments),this.continuous=!1,this._mover=null,this.stateChanged=null,this._suspended=!1}clipboardContentsChanged(){this._destroyMover(),this.stateChanged?.("clipboard-contents-changed"),this.continuous&&this.start()}start(){this._destroyMover(),this._mover=le({view:this.view,graphics:this.graphicsLayer.graphics.toArray(),indicatorsEnabled:!0,highlightsEnabled:!0,enableMoveAllGraphics:!0,callbacks:{onGraphicPointerOver:()=>{"cursor"in this.view&&(this.view.cursor="move")},onGraphicPointerOut:()=>{"cursor"in this.view&&(this.view.cursor="default")},onGraphicMoveStop:async()=>{"cursor"in this.view&&(this.view.cursor="default");for(let t of this.graphicsLayer.graphics)this.clipboard.items.getItemAt(t.attributes.clipboardIdx).graphic.geometry=t.geometry;this._destroyMover(),this.stateChanged?.("contents-moved"),this.continuous&&setTimeout(()=>{this.start()},100)}}})}cancel(){this.continuous=!1,this._destroyMover(),this.stateChanged?.("completed")}get suspended(){return this._suspended}set suspended(t){t!==this._suspended&&(t?(this._destroyMover(),this.stateChanged?.("suspended")):(this.start(),this.stateChanged?.("suspended")),this._suspended=t)}_destroyMover(){this._mover?.destroy(),this._mover=null}};f([o()],v.prototype,"view",2);f([o()],v.prototype,"continuous",2);f([o()],v.prototype,"clipboard",2);f([o()],v.prototype,"graphicsLayer",2);f([o()],v.prototype,"suspended",1);f([o()],v.prototype,"_suspended",2);v=f([J("components.paste.ClipboardMove")],v);var fe=W(l),T=class extends O{constructor(){super(...arguments),this._featureFormElement=A(),this._bauForm=A(),this._messages=D(),this.viewModel=fe(this),this.activeFlowPage=this.viewModel.activeFlowPage,this.hasPasteCommandsPage=this.viewModel.hasPasteCommandsPage,this.activeCommand=this.viewModel.activeCommand,this.availableCommands=this.viewModel.availableCommands,this._showFloatingChoice=!1,this.autoDestroyDisabled=!1,this.view=this.viewModel.view,this.selectedFeature=this.viewModel.selectedFeature,this.closed=!1,this.highlightGroup=this.viewModel.highlightGroup,this.pasteWithMultipleLayersEnabled=this.viewModel.pasteWithMultipleLayersEnabled,this.pasteWithMultipleFeaturesEnabled=this.viewModel.pasteWithMultipleFeaturesEnabled,this.alwaysShowFeatureForm=this.viewModel.alwaysShowFeatureForm,this.closeOnApply=this.viewModel.closeOnApply,this.hideErrorNotice=this.viewModel.hideErrorNotice,this.hideFooterCancelButton=this.viewModel.hideFooterCancelButton,this.hideViewClipboard=this.viewModel.hideViewClipboard,this.layerPermissionsCheck=this.viewModel.layerPermissionsCheck,this.arcgisApplyPasteCommand=w(),this.arcgisApplyPasteError=w(),this.arcgisBeforeClipboardMove=w(),this.arcgisClipboardMoveStateChanged=w(),this.arcgisClose=w(),this.arcgisReady=w()}static{this.properties={activeFlowPage:16,hasPasteCommandsPage:16,activeCommand:16,availableCommands:16,_showFloatingChoice:16,autoDestroyDisabled:5,referenceElement:1,view:0,selectedFeature:0,closed:7,highlightGroup:1,supportedCommands:1,pasteWithMultipleLayersEnabled:5,pasteWithMultipleFeaturesEnabled:5,alwaysShowFeatureForm:5,beforeApply:0,clipboard:32,closeOnApply:5,hideErrorNotice:5,hideFooterCancelButton:5,hideViewClipboard:5,layerPermissionsCheck:0}}static{this.styles=ce}get supportedCommands(){return this.viewModel.supportedCommands}set supportedCommands(i){if(!Array.isArray(i)){this.viewModel.supportedCommands=i.split(",");return}this.viewModel.supportedCommands=i.slice(0)}get clipboard(){return this.viewModel.clipboard}async cancelMoveClipboard(){this.viewModel.clipboardMover?.cancel(),this.viewModel.clipboardMover=void 0}async destroy(){await this.manager.destroy()}async registerPasteCommand(i){this.viewModel.customPasteCommands.add(i)}async showClipboardItems(i){this.viewModel.showClipboardItems=i,this.viewModel.updateClipboardGraphicsLayer()}async startMoveClipboard(i){if(!this.viewModel.showClipboardItems)throw new Error("Cannot move clipboard. Clipboard items must be visible first.");this.arcgisBeforeClipboardMove.emit().defaultPrevented||(this.viewModel.clipboardMover&&(this.viewModel.clipboardMover.stateChanged=null,this.viewModel.clipboardMover.cancel(),this.viewModel.clipboardMover=void 0),this.viewModel.clipboardMover=new v({view:this.view,continuous:i,clipboard:this.clipboard,graphicsLayer:this.viewModel.clipboardGraphicsLayer,stateChanged:e=>{e==="contents-moved"&&this.viewModel.updateClipboardGraphicsLayer(),this.arcgisClipboardMoveStateChanged.emit({change:e})}}),this.viewModel.clipboardMover.start())}async writeChanges(i){return await this.viewModel.writeChanges(i)}updated(){this._featureFormElement.value&&(this._featureFormElement.value.hideReadOnlyNotice=!0,this._featureFormElement.value.disabled=!0)}loaded(){this.manager.onLifecycle(()=>[this.viewModel.clipboard.items.on("change",()=>{this.viewModel.updateClipboardGraphicsLayer(),this.activeFlowPage==="paste-form"&&this.viewModel.resetHome()}),L(()=>this.clipboard.version,()=>{this.viewModel.resetHome(),this.viewModel.updateClipboardGraphicsLayer(),this.viewModel.clipboardMover?.clipboardContentsChanged()}),L(()=>this.closed,()=>{this.closed&&this.viewModel.formViewModelMap.clear(),this.viewModel.updateClipboardGraphicsLayer()}),L(()=>[this.viewModel?.supportedCommands.join(","),this.pasteWithMultipleFeaturesEnabled,this.viewModel?.hideViewClipboard,this.pasteWithMultipleLayersEnabled].join(","),()=>{this.viewModel.resetHome()},{initial:!0})])}_handleCloseAfterApply(){this.closed=!0,this.arcgisClose.emit()}_updateBauViewModelFields(i){this.viewModel.bauActiveFeatureIndex=i.activeFeatureIndex,this.viewModel.bauInvalidFeatures=i.invalidFeatures,this.viewModel.bauSubmitHasBeenAttempted=i.submitHasBeenAttempted,this.viewModel.bauFormValid=i.valid,this.viewModel.bauFormUpdating=i.updating}_renderCloseCommand(){return n`<calcite-action slot=header-actions-end icon=x text @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}></calcite-action>`}_renderClipboardCommand(){return n`<calcite-action slot=header-actions-end icon=clipboard .hidden=${this.viewModel.hideViewClipboard} text .disabled=${this.viewModel.updating} @click=${()=>{this.viewModel.activeFlowPage="clipboard"}}></calcite-action>`}_renderNoClipboardData(i){return u("no-data",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault()}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${I({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${$`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${this._messages.noClipboardData}</p></div></calcite-panel></calcite-flow-item>`)}_renderNoCommandPage(i){let e=this._messages.noPasteCommandsAvailable,a=this.availableCommands.at(0);return a?.commandDisabledReason&&(e=a.commandDisabledReason(this._messages,this._messages._lang),e||(e=this._messages.noPasteCommandsAvailable)),u("no-command",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${s=>{s.preventDefault()}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${I({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${$`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${e}</p></div></calcite-panel></calcite-flow-item>`)}_renderAttributeCheckbox(i){return n`<calcite-label class="bold">${this._messages.attributesSubtitle}</calcite-label><calcite-label layout=inline><calcite-checkbox .disabled=${i} .checked=${this.viewModel.pasteWithAttributes} @calciteCheckboxChange=${e=>{this.viewModel.pasteWithAttributes=e.target.checked}}></calcite-checkbox>${this._messages.pasteWithAttributesLabel}</calcite-label>`}_renderFlowPasteAs(i){return i?u("paste-gallery",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.activeFlowPage="commands-page")}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating||!this.viewModel.pasteTemplate} kind=brand appearance=solid width=half @click=${()=>{try{this.viewModel.lastPasteError=void 0,this.viewModel.runPasteCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:e=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:e.errorMessage,errorCode:e.errorCode})},onApply:async e=>{try{await this.beforeApply?.();let a={...e};return this.arcgisApplyPasteCommand.emit(a).defaultPrevented?{success:!1}:(a.completionCallback&&await a.completionCallback,{success:!0})}catch{return{success:!1}}}},this.viewModel.activeCommand??"paste-as")}catch{}}}>${this.viewModel.alwaysShowFeatureForm?this._messages.next:(this.viewModel.clipboardFeatures.length??0)>1&&this.activeCommand!=="paste-merge"?y(this._messages.pasteMany??"",{num:this.viewModel.clipboardFeatures.length}):this._messages.paste}</calcite-button></div></div><div class="pad-start-end gallery-content"><div>${!this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?n`<div class="pad-contents"><calcite-notice open icon=exclamation-point kind=info><div slot=message>${this._messages.attributesNotCopied}</div>${this.activeCommand==="paste-merge"&&this.viewModel.hasClipboardItemMatchingTemplate?n`<calcite-link slot=link @click=${()=>{this.activeFlowPage="merge-page"}} title=${this._messages.seeMergeOptions??V}>${this._messages.seeMergeOptions}</calcite-link>`:null}</calcite-notice></div>`:null}${this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?this._renderAttributeCheckbox(!this.viewModel.clipboardAndTemplateSupportAttributes):null}${this.viewModel.clipboardAndTemplateSupportAttributes?null:this._renderAttributeCheckbox(!1)}</div><calcite-list .hidden=${this.viewModel.activeCommand!=="paste-merge"} .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border><calcite-list-item .label=${this._messages.mergeOptionsTitle} .description=${this._messages.mergeOptionsDesc} .disabled=${this.viewModel.updating} @click=${()=>{this.activeFlowPage="merge-page"}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div><arcgis-feature-templates class="paste-feature-templates" .layers=${this.viewModel.workingLayers} selection-mode=single .disabledItemFunction=${()=>!1} @arcgisSelect=${e=>{this.viewModel.pasteTemplate=e.detail.item}} .referenceElement=${this.referenceElement}></arcgis-feature-templates></div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`):u("paste-gallery",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.activeFlowPage="commands-page")}}></calcite-flow-item>`)}_renderFlowPasteMerge(i){if(!i)return u("paste-merge",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="gallery-page"}}></calcite-flow-item>`);let e=this.viewModel.selectedClipboardItemIndex===-1?null:this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex);return u("paste-merge",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="gallery-page"}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="merge-split-view-container"><div class="pad-contents merge-split-view-items"><calcite-label>${this._messages.selectionLabel}<calcite-list .label=${this._messages.features??""} selection-mode=single selection-appearance=border>${this.clipboard.items.toArray().map((a,s)=>({id:s,item:a})).filter(a=>a.item.type==="feature"&&a.item.layer&&a.item.graphic).map(a=>n`<calcite-list-item .disabled=${this.viewModel.updating} .selected=${a.id===this.viewModel.selectedClipboardItemIndex} @calciteListItemSelect=${()=>{this.viewModel.selectedClipboardItemIndex=a.id}} @pointerenter=${s=>{this.viewModel.highlightSelectedGraphicOnMap(a.item),s.target.classList.add("hovering")}} @pointerleave=${s=>{s.target.classList.remove("hovering"),this.viewModel.clearHighlightSelectedGraphic()}} .value=${a.id}><arcgis-feature-title slot=content .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-title><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-image>${this.viewModel.selectedClipboardItemIndex!==a.id?n`<calcite-chip slot=content-end .label=${this._messages.preservethis??""} class="chip-indent only-on-hover item-candidate" scale=s .value=${a.id}>${this._messages.preservethis??""}</calcite-chip>`:""}${this.viewModel.selectedClipboardItemIndex===a.id?n`<calcite-chip icon=check .label=${this._messages.preserved??""} class="item-preserved chip-indent" scale=s slot=content-end .value=${a.id}>${this._messages.preserved}</calcite-chip>`:""}</calcite-list-item>`)}</calcite-list></calcite-label></div><div class=" merge-split-view-attributes">${this.viewModel.selectedClipboardItemIndex===-1?n`<div></div>`:n`<div><arcgis-feature-form .feature=${e.graphic} .formTemplate=${e.layer.formTemplate?e.layer.formTemplate:null} .layer=${e.layer} ${P(this._featureFormElement)}></arcgis-feature-form></div>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`)}_renderFlowPasteForm(i){if(!i)return u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}></calcite-flow-item>`);let e=(this.viewModel.bauFeatures?.length??0)>1,a=this.viewModel.updating,s=this.viewModel.bauActiveFeatureIndex>0,r=this.viewModel.bauActiveFeatureIndex!==-1&&this.viewModel.bauActiveFeatureIndex<(this.viewModel.bauFeatures?.length??0)-1,d=this.viewModel.bauActiveFeatureIndex===-1?y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0}):y(this._messages.range??"",{current:this.viewModel.bauActiveFeatureIndex+1,total:this.viewModel.bauFeatures?.length??0}),h=(this.viewModel.bauInvalidFeatures?.length??0)>0;return u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}>${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating||this.viewModel.bauFormUpdating} kind=brand appearance=solid width=half @click=${async()=>{try{if(await Q(()=>!this.viewModel.bauFormUpdating),!this.viewModel.bauFormValid){this._bauForm.value?.goToFirstError();return}this.viewModel.lastPasteError=void 0,this.viewModel.runPasteFormCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:p=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:p.errorMessage,errorCode:p.errorCode})},onApply:async p=>{try{await this.beforeApply?.();let g={...p};return this.arcgisApplyPasteCommand.emit(g).defaultPrevented?{success:!1}:(g.completionCallback&&await g.completionCallback,{success:!0})}catch{return{success:!1}}}})}catch{}}}>${(this.viewModel.bauFeatures?.length??0)>1?y(this._messages.pasteMany??"",{num:this.viewModel.bauFeatures.length}):this._messages.paste}</calcite-button></div></div>${e?n`<calcite-action-bar overflow-actions-disabled slot=action-bar layout=horizontal scale=s expand-disabled class="carousel-bar"><calcite-button .disabled=${this.viewModel.updating} @click=${p=>{this._showFloatingChoice=!this._showFloatingChoice,p.stopPropagation()}} scale=s appearance=transparent icon-start=legend icon-end=chevron-down kind=neutral><span class="bau-pick">${d}${h?n`<calcite-icon scale=s icon=exclamation-mark-triangle class="danger-icon-warning"></calcite-icon>`:""}</span></calcite-button><calcite-action slot=actions-end icon=chevron-left icon-flip-rtl scale=s .text=${this._messages.back??""} .disabled=${!s||a||!e} @click=${()=>{this.viewModel.previousActiveFeature()}}></calcite-action><calcite-action slot=actions-end icon=chevron-right icon-flip-rtl scale=s .text=${this._messages.next??""} .disabled=${!r||a||!e} @click=${()=>{this.viewModel.nextActiveFeature()}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(e)}`:""}<div>${this._renderPasteFormBreadcrumb()}<arcgis-multi-feature-form edit-type=INSERT .disabled=${this.viewModel.updating} .features=${this.viewModel.bauFeatures} .activeFeatureIndex=${this.viewModel.bauActiveFeatureIndex} @arcgisPropertyChange=${p=>{this._updateBauViewModelFields(p.target)}} @arcgisValueChange=${p=>{let g=0;for(let F of this.viewModel.bauFeatures?.toArray()??[]){let b=this.viewModel.bauOriginalGraphics[g];this.viewModel.formFeatureValuesChanged(b,p.target.getValues(F)),g++}}} ${P(this._bauForm)}></arcgis-multi-feature-form></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}_renderPasteFormBreadcrumb(){return n`<calcite-list .label=${this._messages.breadcrumb??""} selection-appearance=border scale=s selection-mode=none><calcite-list-item>${this.viewModel.bauActiveFeatureIndex===-1?n`<calcite-icon scale=s slot=content-start icon=group-form></calcite-icon>`:C(this.viewModel.bauActiveGraphic)?.isTable?n`<calcite-icon scale=s slot=content-start icon=table></calcite-icon>`:n`<arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-image>`}${this.viewModel.bauActiveFeatureIndex===-1?n`<span slot=content>${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0})}</span>`:n`<arcgis-feature-title is-new-feature slot=content .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-title>`}</calcite-list-item></calcite-list>`}_renderFloatingUIChoice(i){if(!this._showFloatingChoice||!i)return n`<div></div>`;let e=!1;this.viewModel.bauInvalidFeatures.length>0&&(e=!0);let a=new Set(this.viewModel.bauInvalidFeatures);return n`<div class="choose-feature"><calcite-list .label=${this._messages.choosefeature??""} selection-mode=single selection-appearance=border><calcite-list-item .disabled=${this.viewModel.updating} @calciteListItemSelect=${s=>{this.viewModel.bauActiveFeatureIndex!==-1&&(this.viewModel.bauActiveFeatureIndex=-1,this.viewModel.updateIndividualMultiFeatureFormHighlight()),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .label=${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures.length})} .selected=${this.viewModel.bauActiveFeatureIndex===-1} value=shared><calcite-icon scale=s icon=group-form class="feature-choose-listitem" slot=content-start></calcite-icon></calcite-list-item>${this.viewModel.bauFeatures.map((s,r)=>n`<calcite-list-item .disabled=${this.viewModel.updating} @pointerenter=${d=>{this.viewModel.highlightMultiFeatureFormFeature(s,r)}} @pointerleave=${d=>{this.viewModel.clearMultiFeatureFormHighlights()}} .selected=${this.viewModel.bauActiveFeatureIndex===r} @calciteListItemSelect=${d=>{let h=window.parseInt(d.currentTarget.value);this.viewModel.bauActiveFeatureIndex=h,this.viewModel.updateIndividualMultiFeatureFormHighlight(),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .value=${r}><arcgis-feature-title is-new-feature slot=content .graphic=${s} .layer=${s.layer}></arcgis-feature-title>${C(s)?.isTable?n`<calcite-icon scale=s icon=table slot=content-start class="feature-choose-listitem"></calcite-icon>`:n`<arcgis-feature-image slot=content-start class="feature-choose-listitem" .graphic=${s} width-in-pixels=16 height-in-pixels=16 use-true-shape .layer=${s.layer}></arcgis-feature-image>`}${a.has(s)&&e?n`<calcite-icon slot=content-end icon=exclamation-mark-triangle scale=s class="danger-icon-warning"></calcite-icon>`:""}</calcite-list-item>`)}</calcite-list></div>`}_renderClipboard(i){return i?u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${e=>{e.preventDefault(),this.activeFlowPage=this.viewModel.beforeClipboard}}>${this._renderCloseCommand()}<calcite-panel><arcgis-clipboard .view=${this.view} .referenceElement=${this.referenceElement}></arcgis-clipboard></calcite-panel></calcite-flow-item>`):u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${e=>{e.preventDefault(),this.activeFlowPage=this.viewModel.beforeClipboard}}></calcite-flow-item>`)}_renderPasteCommands(i){if(!i)return u("paste-commands",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="commands-page"}}></calcite-flow-item>`);let e=this.viewModel.clipboard.items.length===0?this._messages.clipboardEmpty??"":this.viewModel.clipboard.items.length>1?y(this._messages.clipboardContentsMany??"",{num:this.viewModel.clipboard.items.length}):this._messages.clipboardContentsSingle??"";return u("paste-commands",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="commands-page"}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><calcite-list .label=${this._messages.clipboardContents??""} selection-mode=none selection-appearance=border><calcite-list-item .description=${e}></calcite-list-item></calcite-list><div class="pad-contents"><calcite-notice open icon=move><div slot=message>${this._messages.moveClipboardFeatures}</div></calcite-notice></div><div class="pad-contents"><calcite-list .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border>${this.availableCommands.map(a=>n`<calcite-list-item .label=${a.label(this._messages,this._messages._lang)} .description=${a.description(this._messages,this._messages._lang)} .value=${a.id} .disabled=${!a.commandEnabled||this.viewModel.updating} @click=${async()=>{try{this.viewModel.lastPasteError=void 0,await a.initiate({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:s=>{this.arcgisApplyPasteError.emit({command:a.id,errorMessage:s.errorMessage,errorCode:s.errorCode})},onApply:async s=>{try{await this.beforeApply?.();let r={...s};return this.arcgisApplyPasteCommand.emit(r).defaultPrevented?{success:!1}:(r.completionCallback&&await r.completionCallback,{success:!0})}catch{return{success:!1}}}})}catch{}}}><calcite-icon slot=content-start .icon=${a.icon}></calcite-icon>${a.immediate?"":n`<calcite-icon slot=content-end icon=chevron-right flip-rtl></calcite-icon>`}</calcite-list-item>`)}</calcite-list></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}renderPasteErrorFooter(){return!this.viewModel.lastPasteError||this.viewModel.hideErrorNotice?null:n`<calcite-notice slot=footer open kind=danger icon=exclamation-mark-triangle closable @calciteNoticeClose=${()=>{this.viewModel.lastPasteError=void 0}}><div slot=title>${this._messages.errorNoticeTitle??""}</div><div slot=message>${this.viewModel.lastPasteError.localizedErrorMessage?this._messages[this.viewModel.lastPasteError.localizedErrorMessage]:this._messages.errorNoticeMessage??""}</div></calcite-notice>`}_renderApplying(){return this.viewModel.applying?n`<calcite-scrim><calcite-loader scale=s .label=${this._messages.updating??""}></calcite-loader></calcite-scrim>`:""}render(){return this.activeFlowPage==="nodata-page"?n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoClipboardData(this.activeFlowPage==="nodata-page")}</calcite-flow>`:this.activeFlowPage==="no-command-page"?n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoCommandPage(this.activeFlowPage==="no-command-page")}</calcite-flow>`:n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this.hasPasteCommandsPage&&this._renderPasteCommands(this.activeFlowPage==="commands-page")||""}${this._renderFlowPasteAs(this.activeFlowPage==="gallery-page")}${this._renderFlowPasteMerge(this.activeFlowPage==="merge-page")}${this._renderFlowPasteForm(this.activeFlowPage==="paste-form")}${this._renderClipboard(this.activeFlowPage==="clipboard")}</calcite-flow>`}};B("arcgis-paste",T);return T},"core/accessorSupport/decorators","core/Accessor","Graphic","applications/Components/clipboard","layers/GraphicsLayer","core/Collection","applications/Components/templateUtils","applications/Components/applySetUtils","core/reactiveUtils","widgets/FeatureForm/FeatureFormViewModel","intl","applications/Components/editUtils",a,b,c,d,e,f)
3
+ v5.0.0-next.142 */
4
+ import f from"./7GU747FF.js";import e from"./WFWO7PI7.js";import"./QQFWYRXA.js";import{b as E}from"./2EBLGAWT.js";import{a as u}from"./C33NXUNI.js";import d from"./XPDF63LL.js";import c from"./7MD3L7YJ.js";import{a as D}from"./HVKTXMYZ.js";import b from"./JDH34JTX.js";import a from"./FWPMWGTC.js";import"./6B3J6F6V.js";import"./6IYKLL4K.js";import"./D4XKEUDI.js";import"./Q335463L.js";import{L as A,M as P,N as O,P as I,Q as V,T as B,a as z,b as n,c as $,x as w}from"./CMZQVTZU.js";import"./ADV42HI2.js";export default $arcgis.t(([{property:o,subclass:J},K,_,{getApplicationClipboard:ie},ae,k,{getFullTemplate:R,isSharedTemplate:U,getCreationAttributes:X,isSharedTemplateOrMetadata:se},{createApplySetModifyItem:x,createApplySet:S,createFeatureStateProvider:G,createApplySetAddItem:H,writeApplySetToService:re},{whenOnce:Q,watch:L},oe,{substitute:y},{createGraphicsMover:le},,,W,,{a:j,b:N}])=>{var ce=z`.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__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}:host{max-width:fit-content;display:flex}.arcgis-paste{height:var(--arcgis-paste-height, 300px);width:var(--arcgis-paste-width, 300px);flex:1}.hidden{display:none}.flex-row{flex-direction:row}.justify-center{justify-content:center}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.text-center{text-align:center}.pad-contents{padding:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.pad-start-end{padding-left:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-right:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.gallery-content{padding-top:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-bottom:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));display:flex;row-gap:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));flex-direction:column}.chip-indent{margin-left:5px;margin-right:5px}.merge-split-view-container{display:flex;flex-direction:column;height:100%}.merge-split-view-items{flex:0 1 auto;max-height:50%;overflow-y:scroll}.merge-split-view-attributes{flex:1;overflow-y:scroll}.choose-feature{position:absolute;width:100%;max-height:100%;z-index:2;overflow-y:auto}.bau-pick{display:flex;flex-direction:row;align-items:center;gap:4px}.danger-icon-warning{--calcite-icon-color: var(--calcite-color-status-danger)}.paste-feature-templates{--arcgis-feature-templates-max-list-height: 100%}`;async function ne(t,i,e,a=new Map){let s=!0;for(let r of t.items){if(r.type!=="add")continue;let d=r.graphic.clone(),h=de(r.graphic,r.layer);if(!h){s=!1;continue}let p=!await pe(e,r.graphic,h,a,i),g=x({graphic:r.graphic,layer:r.layer,originalGraphic:d});t.push(g),p||(s=!1)}return s}function de(t,i){return i.type==="feature"||i.type==="subtype-sublayer"?i:i.findSublayerForFeature(t)||null}async function pe(t,i,e,a,s){let r=e.formTemplate,d=e.fields.filter(m=>{let M=i.attributes[m.name],te=M===null||M===""||M===void 0;return m.editable&&!m.nullable&&te});if(!r)return d.length!==0;let h=new Set;if(ee(r.elements??[],h),d.length===0&&h.size===0&&!s)return!1;let p=new Set;if(Y(r.elements??[],p),[...h].filter(m=>p.has(m)).length===0&&!s)return!1;let g=i.clone();delete g.attributes[e.objectIdField],a.set(e,new oe({layer:e,map:t.map,formTemplate:r,editType:"INSERT",feature:g}));let F=a.get(e);await new Promise(m=>{setTimeout(m,5)}),await Q(()=>F.state==="ready"&&!F.updating);let b=F.getValues()??{};if(e.objectIdField&&b[e.objectIdField]!==void 0){let{[e.objectIdField]:m,...M}=b;b=M}return Object.keys(b).forEach(m=>{e.fieldsIndex.has(m)&&(i.attributes[m]=ue(b[m],m,e.fieldsIndex))}),!F.valid}function Y(t,i){for(let e of t)e.type==="group"?Y(e.elements,i):e.type==="field"&&e.valueExpression&&i.add(e.fieldName)}function ee(t,i){for(let e of t)e.type==="group"?ee(e.elements,i):e.type==="field"&&e.requiredExpression&&i.add(e.fieldName)}function he(t){return typeof t=="number"}function me(t){return typeof t=="number"&&window.isFinite(t)&&Math.floor(t)===t}function ue(t,i,e){if(t==null)return null;switch(e.get(i).type){case"big-integer":case"long":case"oid":case"integer":case"small-integer":return me(t)?t:window.parseInt(t);case"single":case"double":return he(t)?t:window.parseFloat(t);case"global-id":case"guid":return t===""?null:t;case"date":break;case"date-only":case"time-only":case"timestamp-offset":return t===""?null:t;case"string":return t===""?null:t}return t}function ge(t){return t&&"layer"in t?t.layer:void 0}function C(t){if(!t)return null;let i=ge(t.origin)??t.layer??t?.sourceLayer??null;if(i&&i.type==="subtype-sublayer")return i.parent;switch(i?.type){case"csv":case"feature":case"geojson":case"ogc-feature":case"subtype-group":case"wfs":return i;default:return null}}var ve=Object.defineProperty,be=Object.getOwnPropertyDescriptor,c=(t,i,e,a)=>{for(var s=a>1?void 0:a?be(i,e):i,r=t.length-1,d;r>=0;r--)(d=t[r])&&(s=(a?d(i,e,s):d(s))||s);return a&&s&&ve(i,e,s),s},q={noChangeError:"Operation has not made any changes",noSelectedError:"Operation requires a selected feature",deletesGeometryError:"Operation would result in a null geometry",noGeometryError:"The selected feature has not geometry"};function Z(t){return!se(t)||t.type!=="feature"}var l=class extends K{constructor(t){super(t),this.customPasteCommands=new k,this.bauInvalidFeatures=[],this.bauFormValid=!0,this.bauFormUpdating=!1,this.bauActiveFeatureIndex=-1,this.bauSubmitHasBeenAttempted=!1,this.bauOriginalGraphics=[],this.formViewModelMap=new Map,this.supportedCommands=["paste-append","paste-as","paste-subtract","paste","paste-merge"],this.pasteWithMultipleLayersEnabled=!1,this.pasteWithMultipleFeaturesEnabled=!1,this.alwaysShowFeatureForm=!1,this.selectedClipboardItemIndex=-1,this.pasteWithAttributes=!0,this.closeOnApply=!1,this.currentPasteOperation="",this._activeFlowPage="commands-page",this.showClipboardItems=!1,this.hideFooterCancelButton=!1,this.hideViewClipboard=!1,this.hideErrorNotice=!1,this.highlightGroup="temporary",this._hoverHighlightHandle=null,this.layerPermissionsCheck={canCreate:i=>i?!!i.effectiveCapabilities?.operations.supportsAdd:!1,canUpdate:i=>{if(!i)return!1;let e=i.effectiveCapabilities,a=!!e?.operations.supportsUpdate,s=!!e?.editing.supportsGeometryUpdate&&a;return!i.isTable&&!s?!1:a}},this.applying=!1}get bauActiveGraphic(){return this.bauActiveFeatureIndex===-1?void 0:this.bauFeatures?.getItemAt(this.bauActiveFeatureIndex)}get bauActiveLayer(){if(this.bauActiveFeatureIndex!==-1&&this.bauFeatures)return C(this.bauFeatures.getItemAt(this.bauActiveFeatureIndex))??void 0}get clipboardAndTemplateSupportAttributes(){if(this.clipboard.items.length===0||!this.pasteTemplate?.layer)return!1;let t=this.pasteTemplate.template;if(!Z(t))return!1;for(let i of this.clipboard.items){let e=i.layer;if(!e)return!1;let a=e.type==="subtype-sublayer"?e.parent:e;if(a.type==="subtype-group"){let s=a.fieldsIndex.get(a.subtypeField).name,r=t.prototype?.[s];if(r==null||r!==i.graphic.attributes[s])return!1}}return!0}get hasClipboardItemMatchingTemplate(){let t=this.pasteTemplate?.layer;if(!t||this.clipboard.items.length===0)return!1;let i=this.pasteTemplate.template;if(!Z(i))return!1;for(let e of this.clipboard.items){let a=e.layer;if(!a)return!1;let s=a.type==="subtype-sublayer"?a.parent:a;if(t===a){if(s.type==="subtype-group"){let r=s.fieldsIndex.get(s.subtypeField).name,d=i.prototype?.[r];if(d==null||d!==e.graphic.attributes[r])continue}return!0}}return!1}get activeFlowPage(){return this._activeFlowPage}set activeFlowPage(t){t==="clipboard"&&this.beforeClipboard===void 0?this.beforeClipboard=this.activeFlowPage:t!=="clipboard"&&(this.beforeClipboard=void 0),t==="paste-form"&&this.beforeForm===void 0?this.beforeForm=this.activeFlowPage:t!=="paste-form"&&(this.beforeForm=void 0),this._activeFlowPage=t,this.checkAndSuspendMove()}get updating(){return this.applying}formFeatureValuesChanged(t,i){if(!i)return;let e=t.graphic.clone();for(let s of Object.keys(i))e.attributes[s]=i[s];let a=x({graphic:e,originalGraphic:t.graphic.clone(),layer:t.layer});this.bauApplySet?.push(a)}highlightSelectedGraphicOnMap(t){if(this.clearHighlightSelectedGraphic(),!t.graphic?.geometry||!this.view)return;let i=new _({geometry:t.graphic.geometry,symbol:N(t.graphic.geometry.type)});this.view.graphics.add(i),this._hoverHighlightHandle={remove:()=>{this.view.graphics.remove(i)}}}clearHighlightSelectedGraphic(){this._hoverHighlightHandle?.remove(),this._hoverHighlightHandle=null}updateIndividualMultiFeatureFormHighlight(){if(this.activeFlowPage!=="paste-form"){this.clearIndividualFeatureFormHighlight();return}if(this.view)if(this.bauActiveGraphic&&this.bauActiveLayer){if(this.bauIndividualHighlight?.graphic!==this.bauActiveGraphic&&this.clearIndividualFeatureFormHighlight(),!this.bauIndividualHighlight){let t=E(this.view,this.bauActiveLayer);if(!t)return;this.bauIndividualHighlight={graphic:this.bauActiveGraphic,handle:t.highlight(this.bauActiveGraphic,{name:this.highlightGroup})}}}else this.clearIndividualFeatureFormHighlight()}clearIndividualFeatureFormHighlight(){this.bauIndividualHighlight?.handle?.remove(),this.bauIndividualHighlight=void 0}highlightMultiFeatureFormFeature(t,i){this.bauHighlight&&this.clearMultiFeatureFormHighlights();let e=this.view?E(this.view,t.layer):void 0;e&&(this.bauHighlight=e.highlight(t,{name:this.highlightGroup}))}clearMultiFeatureFormHighlights(){this.bauHighlight?.remove(),this.bauHighlight=void 0}updateClipboardGraphicsLayer(){if(!this.showClipboardItems){if(this.clipboardMover?.cancel(),this.clipboardMover=void 0,this.clipboardGraphicsLayer&&this.view)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}return}if(this.showClipboardItems&&this.view){this.clipboardGraphicsLayer||(this.clipboardGraphicsLayer=new ae,this.view.map?.layers.add(this.clipboardGraphicsLayer));let t=this.clipboard.items;this.clipboardGraphicsLayer.removeAll();let i=-1;for(let e of t){if(i++,!e.graphic.geometry)continue;let a=new _({geometry:e.graphic.geometry.clone(),attributes:{clipboardIdx:i},symbol:j(e.graphic.geometry.type)});this.clipboardGraphicsLayer.add(a)}}else if(!this.showClipboardItems&&this.view&&this.clipboardGraphicsLayer)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}this.checkAndSuspendMove()}checkAndSuspendMove(){let t=this.activeFlowPage==="paste-form";this.clipboardGraphicsLayer&&(this.clipboardGraphicsLayer.visible=!t),this.clipboardMover&&(this.clipboardMover.suspended=t)}get clipboard(){return ie()}get clipboardFeatures(){return this.clipboard.items.filter(t=>t.type==="feature")}get hasPasteCommandsPage(){return this.availableCommands.length>1||!!this.availableCommands.at(0)?.mustShowOnCommandPage}_clearActiveCommand(){this.activeCommand=void 0,this.pasteTemplate=void 0,this.lastPasteError=void 0}resetHome(){let t=this.activeFlowPage;this.hasPasteCommandsPage?(t="commands-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.clipboard.items.length===0?(t="nodata-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.availableCommands.length===0?(t="no-command-page",this._clearActiveCommand()):this.availableCommands[0].commandEnabled?(this.pasteTemplate=void 0,t="gallery-page",this.activeCommand=this.availableCommands[0].id,this.lastPasteError=void 0):(t="no-command-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1),this.activeFlowPage==="clipboard"&&this.hideViewClipboard?(this.activeFlowPage=t,this.beforeClipboard=void 0):this.activeFlowPage==="clipboard"&&!this.hideViewClipboard?this.beforeClipboard=t:(this.activeFlowPage=t,this.beforeClipboard=void 0),this.resetFormPage()}get workingLayers(){return(this.view?.map?.allLayers?.toArray()??[]).filter(t=>t.type==="feature").filter(t=>{let i=this.clipboard.singleGeometryType;return this.activeCommand==="paste-merge"&&this.clipboard.singleGeometryType==="point"&&(i="multipoint"),!(t.geometryType!==i||!this.layerPermissionsCheck.canCreate(t))})}get clipboardItemLayers(){let t=new Set;for(let i of this.clipboard.items)i.layer&&t.add(i.layer.type==="subtype-sublayer"?i.layer.parent:i.layer);return[...t]}get canCreateOnAllLayers(){if(this.clipboardItemLayers.length===0)return!1;for(let t of this.clipboardItemLayers)if(!t||!this.layerPermissionsCheck.canCreate(t))return!1;return!0}get availableCommands(){let t=[],i=new Set(this.supportedCommands);if(i.has("paste")){let e=this.clipboard.items.length===1,a=this.clipboard.items.length>0&&this.clipboardItemLayers.length===1&&this.pasteWithMultipleFeaturesEnabled,s=this.clipboard.items.length>0&&this.pasteWithMultipleFeaturesEnabled&&this.pasteWithMultipleLayersEnabled;t.push({id:"paste",icon:"duplicate",immediate:!0,initiate:async r=>{await this.runPasteCommand(r,"paste")},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.canCreateOnAllLayers&&(e||a||s),description:(r,d)=>r.pasteDesc,label:(r,d)=>r.pasteTitle})}i.has("paste-as")&&t.push({id:"paste-as",icon:"templates",initiate:async e=>{this.activeFlowPage="gallery-page",this.activeCommand="paste-as"},commandDisabledReason:(e,a)=>{if(this.clipboard.items.length===0)return e.noClipboardData;if(this.clipboard.items.length>1){if(!this.pasteWithMultipleFeaturesEnabled)return e.pasteMultipleNotSupported;if(this.clipboard.geometryTypes.size>1)return e.mixedGeometriesNotSupported}return this.clipboard.singleGeometryType?"":e.pasteAsMustHaveGeometry},immediate:!1,mustShowOnCommandPage:!1,commandEnabled:(this.clipboard.items.length===1||this.clipboard.items.length>0&&this.pasteWithMultipleFeaturesEnabled)&&this.clipboard.singleGeometryType!==void 0,description:(e,a)=>e.pasteAsDesc,label:(e,a)=>e.pasteAsTitle}),i.has("paste-merge")&&t.push({id:"paste-merge",icon:"merge",immediate:!1,initiate:async e=>{this.activeFlowPage="gallery-page",this.activeCommand="paste-merge";for(let a=0;a<this.clipboard.items.length;a++)if(this.clipboard.items.getItemAt(a).type==="feature"){this.selectedClipboardItemIndex=a;break}},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>1&&this.clipboard.singleGeometryType!==void 0,description:(e,a)=>e.pasteMergeDesc,label:(e,a)=>e.pasteMergeTitle}),i.has("paste-append")&&t.push({id:"paste-append",icon:"reshape-add-geometry",immediate:!0,initiate:async e=>{await this.runPasteAppendCommand(e)},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.selectedFeature!==void 0&&this.layerPermissionsCheck.canUpdate(C(this.selectedFeature))&&this.selectedFeature?.geometry!==null&&(this.selectedFeature?.geometry?.type==="multipoint"||this.selectedFeature?.geometry?.type==="polyline"||this.selectedFeature?.geometry?.type==="polygon")&&this.clipboard.singleGeometryType===this.selectedFeature?.geometry?.type,description:(e,a)=>e.pasteAppendDesc,label:(e,a)=>e.pasteAppendTitle}),i.has("paste-subtract")&&t.push({id:"paste-subtract",icon:"reshape-subtract-geometry",immediate:!0,initiate:async e=>{await this.runPasteSubtractCommand(e)},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.selectedFeature!==void 0&&this.layerPermissionsCheck.canUpdate(C(this.selectedFeature))&&this.selectedFeature?.geometry!==null&&(this.selectedFeature?.geometry?.type==="multipoint"||this.selectedFeature?.geometry?.type==="polyline"||this.selectedFeature?.geometry?.type==="polygon")&&(this.clipboard.singleGeometryType===this.selectedFeature?.geometry?.type||this.clipboard.singleGeometryType==="polygon"),description:(e,a)=>e.pasteSubtractDesc,label:(e,a)=>e.pasteSubtractTitle});for(let e of this.customPasteCommands)i.has(e.id)&&t.push({id:e.id,icon:e.icon,immediate:!0,initiate:async a=>{try{this.applying=!0,(await a.onApply({command:e.id})).success&&(this.resetHome(),this.closeOnApply&&a.closeAfterApply())}finally{this.applying=!1}},mustShowOnCommandPage:!0,commandEnabled:e.commandEnabled(this.clipboard,this.selectedFeature),description:(a,s)=>e.description(a,s),label:(a,s)=>e.label(a,s)});return t}async createMergedClipboardGeom(){let t=this.clipboard.items.map(i=>i.graphic?.geometry).filter(i=>i!=null).toArray();return t.length===0?null:t.length===1?t[0].clone():(await $arcgis.t(m=>m[0],"geometry/operators/unionOperator")).executeMany(t)??null}removeGraphicIdentifierFields(t,i){i.objectIdField&&delete t.attributes[i.objectIdField],i.globalIdField&&delete t.attributes[i.globalIdField]}nextActiveFeature(){this.bauActiveFeatureIndex++,this.updateIndividualMultiFeatureFormHighlight()}previousActiveFeature(){this.bauActiveFeatureIndex--,this.updateIndividualMultiFeatureFormHighlight()}async runPasteAppendCommand(t){let i=null;try{this.applying=!0;let e=await this.prepareAppend();if(e.applySet&&(i=e.applySet),!e.success){this.lastPasteError={errorCode:e.failReason,errorMessage:q[e.failReason],localizedErrorMessage:e.failReason},t.onPasteError(this.lastPasteError);return}(await t.onApply({command:"paste-append",applySet:e.applySet})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(e){this.lastPasteError={errorCode:"unexpectedError",errorMessage:e.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1,i&&(i.featureState?.clearAll(),i.featureState=null)}}async prepareAppend(){let t=S();if(t.featureState=G(this.view),!this.selectedFeature)return{success:!1,failReason:"noSelectedError"};let[i,e]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/unionOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.selectedFeature.geometry,s=!1;for(let d of this.clipboard.items){let h=d?.graphic?.geometry??null;if(!h)continue;if(a===null){a=d?.graphic?.geometry??null,a&&(a=a.clone(),s=!0);continue}let p=i.execute(a,h);e.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError"};let r=this.selectedFeature.clone();return r.geometry=a,t.push(x({graphic:r,layer:this.selectedFeature.origin,originalGraphic:this.selectedFeature})),{success:!0,applySet:t}}resetFormPage(){this.bauApplySet?.featureState?.clearAll(),this.bauApplySet=void 0,this.clearIndividualFeatureFormHighlight(),this.clearMultiFeatureFormHighlights(),this.bauFeatures=void 0,this.bauOriginalGraphics=[],this.bauSubmitHasBeenAttempted=!1}async runPasteSubtractCommand(t){let i=null;try{this.applying=!0;let e=await this.prepareSubtract();if(e.applySet&&(i=e.applySet),!e.success){this.lastPasteError={errorCode:e.failReason,errorMessage:q[e.failReason],localizedErrorMessage:e.failReason},t.onPasteError(this.lastPasteError);return}(await t.onApply({command:"paste-subtract",applySet:e.applySet})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(e){this.lastPasteError={errorCode:"unexpectedError",errorMessage:e.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1,i&&(i.featureState?.clearAll(),i.featureState=null)}}async prepareSubtract(){let t=S();if(t.featureState=G(this.view),!this.selectedFeature)return{success:!1,failReason:"noSelectedError",applySet:t};let[i,e]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/differenceOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.selectedFeature.geometry;if(!a)return{success:!1,failReason:"noGeometryError",applySet:t};let s=!1;for(let d of this.clipboard.items){let h=d?.graphic?.geometry;if(!h)continue;let p=i.execute(a,h);if(!p)return{success:!1,failReason:"deletesGeometryError",applySet:t};e.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError",applySet:t};let r=this.selectedFeature.clone();return r.geometry=a,t.push(x({graphic:r,layer:this.selectedFeature.origin,originalGraphic:this.selectedFeature})),{success:!0,applySet:t}}async runPasteFormCommand(t){try{this.applying=!0;let i=this.bauApplySet;(await t.onApply({command:this.activeCommand,applySet:i})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(i){this.lastPasteError={errorCode:"unexpectedError",errorMessage:i.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1}}async runPasteCommand(t,i){try{this.applying=!0;let e=await this.prepareCopy(i);if(!e||e.items.length===0){this.lastPasteError={errorCode:"noPasteItems",errorMessage:"No items to paste",localizedErrorMessage:"noPasteItemsError"},t.onPasteError(this.lastPasteError);return}let a=!await ne(e,this.alwaysShowFeatureForm,this.view,this.formViewModelMap);if(this.alwaysShowFeatureForm||a)this.bauActiveFeatureIndex=0,this.bauApplySet=e,this.activeCommand=i,this.bauOriginalGraphics=e.items.map(s=>s.type==="add"?{layer:s.layer,graphic:s.graphic}:null).filter(s=>s!==null),this.bauFeatures=new k,this.activeFlowPage="paste-form",await new Promise(s=>{setTimeout(s,100)}),this.bauFeatures=new k(this.bauOriginalGraphics.map(s=>(s.graphic.origin=s.layer,s.graphic.layer=s.layer,s.graphic))),this.updateIndividualMultiFeatureFormHighlight();else try{(await t.onApply({command:"paste",applySet:e})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}finally{e?.featureState?.clearAll()}}finally{this.applying=!1}}async prepareCopy(t){let i=t==="paste"||t==="paste-as"&&this.pasteWithAttributes||t==="paste-merge"&&this.pasteWithAttributes,e=i&&t==="paste-merge"?this.clipboard.items.getItemAt(this.selectedClipboardItemIndex):null,a=S();if(a.featureState=G(this.view),t==="paste-merge"){let s=this.pasteTemplate?.template?await R(this.view,this.pasteTemplate.template):null;if(!s)return null;let r=U(this.pasteTemplate.template)?s.layer:this.pasteTemplate.layer,d=await this.createMergedClipboardGeom(),h=X(s,e?{...e.graphic.attributes}:{}),p=new _({geometry:d,attributes:h});this.removeGraphicIdentifierFields(p,r),a.push(H({graphic:p,layer:r}))}else if(t==="paste"){for(let s of this.clipboard.items)if(s.type==="feature"){let r=s.graphic.clone();this.removeGraphicIdentifierFields(r,s.layer),a.push(H({graphic:r,layer:s.layer}))}}else if(t==="paste-as"){let s=this.pasteTemplate?.template?await R(this.view,this.pasteTemplate.template):null,r=U(s)?s.layer:this.pasteTemplate.layer;for(let d of this.clipboard.items){let h=X(s,i?{...d.graphic.attributes??{}}:{}),p=new _({geometry:d.graphic?.geometry?.clone()??null,attributes:h});this.removeGraphicIdentifierFields(p,r),a.push(H({graphic:p,layer:r}))}}return a}async writeChanges(t){return await re(t,this.view)}};c([o()],l.prototype,"customPasteCommands",2);c([o()],l.prototype,"bauInvalidFeatures",2);c([o()],l.prototype,"bauFormValid",2);c([o()],l.prototype,"bauFormUpdating",2);c([o()],l.prototype,"bauActiveFeatureIndex",2);c([o()],l.prototype,"bauSubmitHasBeenAttempted",2);c([o()],l.prototype,"bauActiveGraphic",1);c([o()],l.prototype,"bauActiveLayer",1);c([o()],l.prototype,"bauFeatures",2);c([o()],l.prototype,"bauApplySet",2);c([o()],l.prototype,"bauOriginalGraphics",2);c([o()],l.prototype,"formViewModelMap",2);c([o()],l.prototype,"bauHighlight",2);c([o()],l.prototype,"bauIndividualHighlight",2);c([o()],l.prototype,"view",2);c([o()],l.prototype,"supportedCommands",2);c([o()],l.prototype,"selectedFeature",2);c([o()],l.prototype,"pasteWithMultipleLayersEnabled",2);c([o()],l.prototype,"pasteWithMultipleFeaturesEnabled",2);c([o()],l.prototype,"alwaysShowFeatureForm",2);c([o()],l.prototype,"pasteTemplate",2);c([o()],l.prototype,"selectedClipboardItemIndex",2);c([o()],l.prototype,"clipboardAndTemplateSupportAttributes",1);c([o()],l.prototype,"hasClipboardItemMatchingTemplate",1);c([o()],l.prototype,"pasteWithAttributes",2);c([o()],l.prototype,"closeOnApply",2);c([o()],l.prototype,"currentPasteOperation",2);c([o()],l.prototype,"activeFlowPage",1);c([o()],l.prototype,"_activeFlowPage",2);c([o()],l.prototype,"beforeClipboard",2);c([o()],l.prototype,"beforeForm",2);c([o()],l.prototype,"showClipboardItems",2);c([o()],l.prototype,"updating",1);c([o()],l.prototype,"hideFooterCancelButton",2);c([o()],l.prototype,"hideViewClipboard",2);c([o()],l.prototype,"hideErrorNotice",2);c([o()],l.prototype,"clipboardGraphicsLayer",2);c([o()],l.prototype,"clipboardMover",2);c([o()],l.prototype,"highlightGroup",2);c([o()],l.prototype,"clipboard",1);c([o()],l.prototype,"clipboardFeatures",1);c([o()],l.prototype,"hasPasteCommandsPage",1);c([o()],l.prototype,"activeCommand",2);c([o()],l.prototype,"workingLayers",1);c([o()],l.prototype,"layerPermissionsCheck",2);c([o()],l.prototype,"clipboardItemLayers",1);c([o()],l.prototype,"canCreateOnAllLayers",1);c([o()],l.prototype,"applying",2);c([o()],l.prototype,"lastPasteError",2);c([o()],l.prototype,"availableCommands",1);l=c([J("components.paste.PasteViewModel")],l);var we=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,f=(t,i,e,a)=>{for(var s=a>1?void 0:a?ye(i,e):i,r=t.length-1,d;r>=0;r--)(d=t[r])&&(s=(a?d(i,e,s):d(s))||s);return a&&s&&we(i,e,s),s},v=class extends K{constructor(){super(...arguments),this.continuous=!1,this._mover=null,this.stateChanged=null,this._suspended=!1}clipboardContentsChanged(){this._destroyMover(),this.stateChanged?.("clipboard-contents-changed"),this.continuous&&this.start()}start(){this._destroyMover(),this._mover=le({view:this.view,graphics:this.graphicsLayer.graphics.toArray(),indicatorsEnabled:!0,highlightsEnabled:!0,enableMoveAllGraphics:!0,callbacks:{onGraphicPointerOver:()=>{"cursor"in this.view&&(this.view.cursor="move")},onGraphicPointerOut:()=>{"cursor"in this.view&&(this.view.cursor="default")},onGraphicMoveStop:async()=>{"cursor"in this.view&&(this.view.cursor="default");for(let t of this.graphicsLayer.graphics)this.clipboard.items.getItemAt(t.attributes.clipboardIdx).graphic.geometry=t.geometry;this._destroyMover(),this.stateChanged?.("contents-moved"),this.continuous&&setTimeout(()=>{this.start()},100)}}})}cancel(){this.continuous=!1,this._destroyMover(),this.stateChanged?.("completed")}get suspended(){return this._suspended}set suspended(t){t!==this._suspended&&(t?(this._destroyMover(),this.stateChanged?.("suspended")):(this.start(),this.stateChanged?.("suspended")),this._suspended=t)}_destroyMover(){this._mover?.destroy(),this._mover=null}};f([o()],v.prototype,"view",2);f([o()],v.prototype,"continuous",2);f([o()],v.prototype,"clipboard",2);f([o()],v.prototype,"graphicsLayer",2);f([o()],v.prototype,"suspended",1);f([o()],v.prototype,"_suspended",2);v=f([J("components.paste.ClipboardMove")],v);var fe=W(l),T=class extends O{constructor(){super(...arguments),this._featureFormElement=A(),this._bauForm=A(),this._messages=D(),this.viewModel=fe(this),this.activeFlowPage=this.viewModel.activeFlowPage,this.hasPasteCommandsPage=this.viewModel.hasPasteCommandsPage,this.activeCommand=this.viewModel.activeCommand,this.availableCommands=this.viewModel.availableCommands,this._showFloatingChoice=!1,this.autoDestroyDisabled=!1,this.view=this.viewModel.view,this.selectedFeature=this.viewModel.selectedFeature,this.closed=!1,this.highlightGroup=this.viewModel.highlightGroup,this.pasteWithMultipleLayersEnabled=this.viewModel.pasteWithMultipleLayersEnabled,this.pasteWithMultipleFeaturesEnabled=this.viewModel.pasteWithMultipleFeaturesEnabled,this.alwaysShowFeatureForm=this.viewModel.alwaysShowFeatureForm,this.closeOnApply=this.viewModel.closeOnApply,this.hideErrorNotice=this.viewModel.hideErrorNotice,this.hideFooterCancelButton=this.viewModel.hideFooterCancelButton,this.hideViewClipboard=this.viewModel.hideViewClipboard,this.layerPermissionsCheck=this.viewModel.layerPermissionsCheck,this.arcgisApplyPasteCommand=w(),this.arcgisApplyPasteError=w(),this.arcgisBeforeClipboardMove=w(),this.arcgisClipboardMoveStateChanged=w(),this.arcgisClose=w(),this.arcgisReady=w()}static{this.properties={activeFlowPage:16,hasPasteCommandsPage:16,activeCommand:16,availableCommands:16,_showFloatingChoice:16,autoDestroyDisabled:5,referenceElement:1,view:0,selectedFeature:0,closed:7,highlightGroup:1,supportedCommands:1,pasteWithMultipleLayersEnabled:5,pasteWithMultipleFeaturesEnabled:5,alwaysShowFeatureForm:5,beforeApply:0,clipboard:32,closeOnApply:5,hideErrorNotice:5,hideFooterCancelButton:5,hideViewClipboard:5,layerPermissionsCheck:0}}static{this.styles=ce}get supportedCommands(){return this.viewModel.supportedCommands}set supportedCommands(i){if(!Array.isArray(i)){this.viewModel.supportedCommands=i.split(",");return}this.viewModel.supportedCommands=i.slice(0)}get clipboard(){return this.viewModel.clipboard}async cancelMoveClipboard(){this.viewModel.clipboardMover?.cancel(),this.viewModel.clipboardMover=void 0}async destroy(){await this.manager.destroy()}async registerPasteCommand(i){this.viewModel.customPasteCommands.add(i)}async showClipboardItems(i){this.viewModel.showClipboardItems=i,this.viewModel.updateClipboardGraphicsLayer()}async startMoveClipboard(i){if(!this.viewModel.showClipboardItems)throw new Error("Cannot move clipboard. Clipboard items must be visible first.");this.arcgisBeforeClipboardMove.emit().defaultPrevented||(this.viewModel.clipboardMover&&(this.viewModel.clipboardMover.stateChanged=null,this.viewModel.clipboardMover.cancel(),this.viewModel.clipboardMover=void 0),this.viewModel.clipboardMover=new v({view:this.view,continuous:i,clipboard:this.clipboard,graphicsLayer:this.viewModel.clipboardGraphicsLayer,stateChanged:e=>{e==="contents-moved"&&this.viewModel.updateClipboardGraphicsLayer(),this.arcgisClipboardMoveStateChanged.emit({change:e})}}),this.viewModel.clipboardMover.start())}async writeChanges(i){return await this.viewModel.writeChanges(i)}updated(){this._featureFormElement.value&&(this._featureFormElement.value.hideReadOnlyNotice=!0,this._featureFormElement.value.disabled=!0)}loaded(){this.manager.onLifecycle(()=>[this.viewModel.clipboard.items.on("change",()=>{this.viewModel.updateClipboardGraphicsLayer(),this.activeFlowPage==="paste-form"&&this.viewModel.resetHome()}),L(()=>this.clipboard.version,()=>{this.viewModel.resetHome(),this.viewModel.updateClipboardGraphicsLayer(),this.viewModel.clipboardMover?.clipboardContentsChanged()}),L(()=>this.closed,()=>{this.closed&&this.viewModel.formViewModelMap.clear(),this.viewModel.updateClipboardGraphicsLayer()}),L(()=>[this.viewModel?.supportedCommands.join(","),this.pasteWithMultipleFeaturesEnabled,this.viewModel?.hideViewClipboard,this.pasteWithMultipleLayersEnabled].join(","),()=>{this.viewModel.resetHome()},{initial:!0})])}_handleCloseAfterApply(){this.closed=!0,this.arcgisClose.emit()}_updateBauViewModelFields(i){this.viewModel.bauActiveFeatureIndex=i.activeFeatureIndex,this.viewModel.bauInvalidFeatures=i.invalidFeatures,this.viewModel.bauSubmitHasBeenAttempted=i.submitHasBeenAttempted,this.viewModel.bauFormValid=i.valid,this.viewModel.bauFormUpdating=i.updating}_renderCloseCommand(){return n`<calcite-action slot=header-actions-end icon=x text @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}></calcite-action>`}_renderClipboardCommand(){return n`<calcite-action slot=header-actions-end icon=clipboard .hidden=${this.viewModel.hideViewClipboard} text .disabled=${this.viewModel.updating} @click=${()=>{this.viewModel.activeFlowPage="clipboard"}}></calcite-action>`}_renderNoClipboardData(i){return u("no-data",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault()}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${I({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${$`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${this._messages.noClipboardData}</p></div></calcite-panel></calcite-flow-item>`)}_renderNoCommandPage(i){let e=this._messages.noPasteCommandsAvailable,a=this.availableCommands.at(0);return a?.commandDisabledReason&&(e=a.commandDisabledReason(this._messages,this._messages._lang),e||(e=this._messages.noPasteCommandsAvailable)),u("no-command",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${s=>{s.preventDefault()}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${I({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${$`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${e}</p></div></calcite-panel></calcite-flow-item>`)}_renderAttributeCheckbox(i){return n`<calcite-label class="bold">${this._messages.attributesSubtitle}</calcite-label><calcite-label layout=inline><calcite-checkbox .disabled=${i} .checked=${this.viewModel.pasteWithAttributes} @calciteCheckboxChange=${e=>{this.viewModel.pasteWithAttributes=e.target.checked}}></calcite-checkbox>${this._messages.pasteWithAttributesLabel}</calcite-label>`}_renderFlowPasteAs(i){return i?u("paste-gallery",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.activeFlowPage="commands-page")}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating||!this.viewModel.pasteTemplate} kind=brand appearance=solid width=half @click=${()=>{try{this.viewModel.lastPasteError=void 0,this.viewModel.runPasteCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:e=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:e.errorMessage,errorCode:e.errorCode})},onApply:async e=>{try{await this.beforeApply?.();let a={...e};return this.arcgisApplyPasteCommand.emit(a).defaultPrevented?{success:!1}:(a.completionCallback&&await a.completionCallback,{success:!0})}catch{return{success:!1}}}},this.viewModel.activeCommand??"paste-as")}catch{}}}>${this.viewModel.alwaysShowFeatureForm?this._messages.next:(this.viewModel.clipboardFeatures.length??0)>1&&this.activeCommand!=="paste-merge"?y(this._messages.pasteMany??"",{num:this.viewModel.clipboardFeatures.length}):this._messages.paste}</calcite-button></div></div><div class="pad-start-end gallery-content"><div>${!this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?n`<div class="pad-contents"><calcite-notice open icon=exclamation-point kind=info><div slot=message>${this._messages.attributesNotCopied}</div>${this.activeCommand==="paste-merge"&&this.viewModel.hasClipboardItemMatchingTemplate?n`<calcite-link slot=link @click=${()=>{this.activeFlowPage="merge-page"}} title=${this._messages.seeMergeOptions??V}>${this._messages.seeMergeOptions}</calcite-link>`:null}</calcite-notice></div>`:null}${this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?this._renderAttributeCheckbox(!this.viewModel.clipboardAndTemplateSupportAttributes):null}${this.viewModel.clipboardAndTemplateSupportAttributes?null:this._renderAttributeCheckbox(!1)}</div><calcite-list .hidden=${this.viewModel.activeCommand!=="paste-merge"} .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border><calcite-list-item .label=${this._messages.mergeOptionsTitle} .description=${this._messages.mergeOptionsDesc} .disabled=${this.viewModel.updating} @click=${()=>{this.activeFlowPage="merge-page"}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div><arcgis-feature-templates class="paste-feature-templates" .layers=${this.viewModel.workingLayers} selection-mode=single .disabledItemFunction=${()=>!1} @arcgisSelect=${e=>{this.viewModel.pasteTemplate=e.detail.item}} .referenceElement=${this.referenceElement}></arcgis-feature-templates></div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`):u("paste-gallery",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.activeFlowPage="commands-page")}}></calcite-flow-item>`)}_renderFlowPasteMerge(i){if(!i)return u("paste-merge",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="gallery-page"}}></calcite-flow-item>`);let e=this.viewModel.selectedClipboardItemIndex===-1?null:this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex);return u("paste-merge",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="gallery-page"}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="merge-split-view-container"><div class="pad-contents merge-split-view-items"><calcite-label>${this._messages.selectionLabel}<calcite-list .label=${this._messages.features??""} selection-mode=single selection-appearance=border>${this.clipboard.items.toArray().map((a,s)=>({id:s,item:a})).filter(a=>a.item.type==="feature"&&a.item.layer&&a.item.graphic).map(a=>n`<calcite-list-item .disabled=${this.viewModel.updating} .selected=${a.id===this.viewModel.selectedClipboardItemIndex} @calciteListItemSelect=${()=>{this.viewModel.selectedClipboardItemIndex=a.id}} @pointerenter=${s=>{this.viewModel.highlightSelectedGraphicOnMap(a.item),s.target.classList.add("hovering")}} @pointerleave=${s=>{s.target.classList.remove("hovering"),this.viewModel.clearHighlightSelectedGraphic()}} .value=${a.id}><arcgis-feature-title slot=content .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-title><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-image>${this.viewModel.selectedClipboardItemIndex!==a.id?n`<calcite-chip slot=content-end .label=${this._messages.preservethis??""} class="chip-indent only-on-hover item-candidate" scale=s .value=${a.id}>${this._messages.preservethis??""}</calcite-chip>`:""}${this.viewModel.selectedClipboardItemIndex===a.id?n`<calcite-chip icon=check .label=${this._messages.preserved??""} class="item-preserved chip-indent" scale=s slot=content-end .value=${a.id}>${this._messages.preserved}</calcite-chip>`:""}</calcite-list-item>`)}</calcite-list></calcite-label></div><div class=" merge-split-view-attributes">${this.viewModel.selectedClipboardItemIndex===-1?n`<div></div>`:n`<div><arcgis-feature-form .feature=${e.graphic} .formTemplate=${e.layer.formTemplate?e.layer.formTemplate:null} .layer=${e.layer} ${P(this._featureFormElement)}></arcgis-feature-form></div>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`)}_renderFlowPasteForm(i){if(!i)return u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}></calcite-flow-item>`);let e=(this.viewModel.bauFeatures?.length??0)>1,a=this.viewModel.updating,s=this.viewModel.bauActiveFeatureIndex>0,r=this.viewModel.bauActiveFeatureIndex!==-1&&this.viewModel.bauActiveFeatureIndex<(this.viewModel.bauFeatures?.length??0)-1,d=this.viewModel.bauActiveFeatureIndex===-1?y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0}):y(this._messages.range??"",{current:this.viewModel.bauActiveFeatureIndex+1,total:this.viewModel.bauFeatures?.length??0}),h=(this.viewModel.bauInvalidFeatures?.length??0)>0;return u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}>${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating||this.viewModel.bauFormUpdating} kind=brand appearance=solid width=half @click=${async()=>{try{if(await Q(()=>!this.viewModel.bauFormUpdating),!this.viewModel.bauFormValid){this._bauForm.value?.goToFirstError();return}this.viewModel.lastPasteError=void 0,this.viewModel.runPasteFormCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:p=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:p.errorMessage,errorCode:p.errorCode})},onApply:async p=>{try{await this.beforeApply?.();let g={...p};return this.arcgisApplyPasteCommand.emit(g).defaultPrevented?{success:!1}:(g.completionCallback&&await g.completionCallback,{success:!0})}catch{return{success:!1}}}})}catch{}}}>${(this.viewModel.bauFeatures?.length??0)>1?y(this._messages.pasteMany??"",{num:this.viewModel.bauFeatures.length}):this._messages.paste}</calcite-button></div></div>${e?n`<calcite-action-bar overflow-actions-disabled slot=action-bar layout=horizontal scale=s expand-disabled class="carousel-bar"><calcite-button .disabled=${this.viewModel.updating} @click=${p=>{this._showFloatingChoice=!this._showFloatingChoice,p.stopPropagation()}} scale=s appearance=transparent icon-start=legend icon-end=chevron-down kind=neutral><span class="bau-pick">${d}${h?n`<calcite-icon scale=s icon=exclamation-mark-triangle class="danger-icon-warning"></calcite-icon>`:""}</span></calcite-button><calcite-action slot=actions-end icon=chevron-left icon-flip-rtl scale=s .text=${this._messages.back??""} .disabled=${!s||a||!e} @click=${()=>{this.viewModel.previousActiveFeature()}}></calcite-action><calcite-action slot=actions-end icon=chevron-right icon-flip-rtl scale=s .text=${this._messages.next??""} .disabled=${!r||a||!e} @click=${()=>{this.viewModel.nextActiveFeature()}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(e)}`:""}<div>${this._renderPasteFormBreadcrumb()}<arcgis-multi-feature-form edit-type=INSERT .disabled=${this.viewModel.updating} .features=${this.viewModel.bauFeatures} .activeFeatureIndex=${this.viewModel.bauActiveFeatureIndex} @arcgisPropertyChange=${p=>{this._updateBauViewModelFields(p.target)}} @arcgisValueChange=${p=>{let g=0;for(let F of this.viewModel.bauFeatures?.toArray()??[]){let b=this.viewModel.bauOriginalGraphics[g];this.viewModel.formFeatureValuesChanged(b,p.target.getValues(F)),g++}}} ${P(this._bauForm)}></arcgis-multi-feature-form></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}_renderPasteFormBreadcrumb(){return n`<calcite-list .label=${this._messages.breadcrumb??""} selection-appearance=border scale=s selection-mode=none><calcite-list-item>${this.viewModel.bauActiveFeatureIndex===-1?n`<calcite-icon scale=s slot=content-start icon=group-form></calcite-icon>`:C(this.viewModel.bauActiveGraphic)?.isTable?n`<calcite-icon scale=s slot=content-start icon=table></calcite-icon>`:n`<arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-image>`}${this.viewModel.bauActiveFeatureIndex===-1?n`<span slot=content>${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0})}</span>`:n`<arcgis-feature-title is-new-feature slot=content .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-title>`}</calcite-list-item></calcite-list>`}_renderFloatingUIChoice(i){if(!this._showFloatingChoice||!i)return n`<div></div>`;let e=!1;this.viewModel.bauInvalidFeatures.length>0&&(e=!0);let a=new Set(this.viewModel.bauInvalidFeatures);return n`<div class="choose-feature"><calcite-list .label=${this._messages.choosefeature??""} selection-mode=single selection-appearance=border><calcite-list-item .disabled=${this.viewModel.updating} @calciteListItemSelect=${s=>{this.viewModel.bauActiveFeatureIndex!==-1&&(this.viewModel.bauActiveFeatureIndex=-1,this.viewModel.updateIndividualMultiFeatureFormHighlight()),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .label=${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures.length})} .selected=${this.viewModel.bauActiveFeatureIndex===-1} value=shared><calcite-icon scale=s icon=group-form class="feature-choose-listitem" slot=content-start></calcite-icon></calcite-list-item>${this.viewModel.bauFeatures.map((s,r)=>n`<calcite-list-item .disabled=${this.viewModel.updating} @pointerenter=${d=>{this.viewModel.highlightMultiFeatureFormFeature(s,r)}} @pointerleave=${d=>{this.viewModel.clearMultiFeatureFormHighlights()}} .selected=${this.viewModel.bauActiveFeatureIndex===r} @calciteListItemSelect=${d=>{let h=window.parseInt(d.currentTarget.value);this.viewModel.bauActiveFeatureIndex=h,this.viewModel.updateIndividualMultiFeatureFormHighlight(),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .value=${r}><arcgis-feature-title is-new-feature slot=content .graphic=${s} .layer=${s.layer}></arcgis-feature-title>${C(s)?.isTable?n`<calcite-icon scale=s icon=table slot=content-start class="feature-choose-listitem"></calcite-icon>`:n`<arcgis-feature-image slot=content-start class="feature-choose-listitem" .graphic=${s} width-in-pixels=16 height-in-pixels=16 use-true-shape .layer=${s.layer}></arcgis-feature-image>`}${a.has(s)&&e?n`<calcite-icon slot=content-end icon=exclamation-mark-triangle scale=s class="danger-icon-warning"></calcite-icon>`:""}</calcite-list-item>`)}</calcite-list></div>`}_renderClipboard(i){return i?u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${e=>{e.preventDefault(),this.activeFlowPage=this.viewModel.beforeClipboard}}>${this._renderCloseCommand()}<calcite-panel><arcgis-clipboard .view=${this.view} .referenceElement=${this.referenceElement}></arcgis-clipboard></calcite-panel></calcite-flow-item>`):u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${e=>{e.preventDefault(),this.activeFlowPage=this.viewModel.beforeClipboard}}></calcite-flow-item>`)}_renderPasteCommands(i){if(!i)return u("paste-commands",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="commands-page"}}></calcite-flow-item>`);let e=this.viewModel.clipboard.items.length===0?this._messages.clipboardEmpty??"":this.viewModel.clipboard.items.length>1?y(this._messages.clipboardContentsMany??"",{num:this.viewModel.clipboard.items.length}):this._messages.clipboardContentsSingle??"";return u("paste-commands",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="commands-page"}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><calcite-list .label=${this._messages.clipboardContents??""} selection-mode=none selection-appearance=border><calcite-list-item .description=${e}></calcite-list-item></calcite-list><div class="pad-contents"><calcite-notice open icon=move><div slot=message>${this._messages.moveClipboardFeatures}</div></calcite-notice></div><div class="pad-contents"><calcite-list .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border>${this.availableCommands.map(a=>n`<calcite-list-item .label=${a.label(this._messages,this._messages._lang)} .description=${a.description(this._messages,this._messages._lang)} .value=${a.id} .disabled=${!a.commandEnabled||this.viewModel.updating} @click=${async()=>{try{this.viewModel.lastPasteError=void 0,await a.initiate({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:s=>{this.arcgisApplyPasteError.emit({command:a.id,errorMessage:s.errorMessage,errorCode:s.errorCode})},onApply:async s=>{try{await this.beforeApply?.();let r={...s};return this.arcgisApplyPasteCommand.emit(r).defaultPrevented?{success:!1}:(r.completionCallback&&await r.completionCallback,{success:!0})}catch{return{success:!1}}}})}catch{}}}><calcite-icon slot=content-start .icon=${a.icon}></calcite-icon>${a.immediate?"":n`<calcite-icon slot=content-end icon=chevron-right flip-rtl></calcite-icon>`}</calcite-list-item>`)}</calcite-list></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}renderPasteErrorFooter(){return!this.viewModel.lastPasteError||this.viewModel.hideErrorNotice?null:n`<calcite-notice slot=footer open kind=danger icon=exclamation-mark-triangle closable @calciteNoticeClose=${()=>{this.viewModel.lastPasteError=void 0}}><div slot=title>${this._messages.errorNoticeTitle??""}</div><div slot=message>${this.viewModel.lastPasteError.localizedErrorMessage?this._messages[this.viewModel.lastPasteError.localizedErrorMessage]:this._messages.errorNoticeMessage??""}</div></calcite-notice>`}_renderApplying(){return this.viewModel.applying?n`<calcite-scrim><calcite-loader scale=s .label=${this._messages.updating??""}></calcite-loader></calcite-scrim>`:""}render(){return this.activeFlowPage==="nodata-page"?n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoClipboardData(this.activeFlowPage==="nodata-page")}</calcite-flow>`:this.activeFlowPage==="no-command-page"?n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoCommandPage(this.activeFlowPage==="no-command-page")}</calcite-flow>`:n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this.hasPasteCommandsPage&&this._renderPasteCommands(this.activeFlowPage==="commands-page")||""}${this._renderFlowPasteAs(this.activeFlowPage==="gallery-page")}${this._renderFlowPasteMerge(this.activeFlowPage==="merge-page")}${this._renderFlowPasteForm(this.activeFlowPage==="paste-form")}${this._renderClipboard(this.activeFlowPage==="clipboard")}</calcite-flow>`}};B("arcgis-paste",T);return T},"core/accessorSupport/decorators","core/Accessor","Graphic","applications/Components/clipboard","layers/GraphicsLayer","core/Collection","applications/Components/templateUtils","applications/Components/applySetUtils","core/reactiveUtils","widgets/FeatureForm/FeatureFormViewModel","intl","applications/Components/editUtils",a,b,c,d,e,f)