@arcgis/map-components 5.1.0-next.67 → 5.1.0-next.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (855) hide show
  1. package/dist/cdn/{P74W5C7C.js → 2G6SBHDL.js} +1 -1
  2. package/dist/cdn/{Y7YQCKAB.js → 2OZJEPPR.js} +1 -1
  3. package/dist/cdn/{JUGI6ZHE.js → 2S5MAIIW.js} +1 -1
  4. package/dist/cdn/{SVY3PV3F.js → 2VPF4CNW.js} +1 -1
  5. package/dist/cdn/{JAPT4J53.js → 2YJNQPTJ.js} +1 -1
  6. package/dist/cdn/{5YMSGB5N.js → 3CC54RTW.js} +1 -1
  7. package/dist/cdn/{UYESP4DR.js → 3MQ7R5NQ.js} +1 -1
  8. package/dist/cdn/{RGCYWRGG.js → 3TWDKJ4A.js} +1 -1
  9. package/dist/cdn/{R327GW3B.js → 3Z23EVYG.js} +1 -1
  10. package/dist/cdn/{BP42UKBS.js → 46H6UPSX.js} +1 -1
  11. package/dist/cdn/{UE3GOL7R.js → 4FKTIUMZ.js} +1 -1
  12. package/dist/cdn/{M4NCQBM6.js → 4KBMJIGE.js} +1 -1
  13. package/dist/cdn/{EKCNBSPI.js → 4NUOS5RF.js} +1 -1
  14. package/dist/cdn/{AMWHFHQF.js → 4UQSES56.js} +1 -1
  15. package/dist/cdn/{OHR5BDB7.js → 4V6WOWP3.js} +1 -1
  16. package/dist/cdn/52AQINBI.js +2 -0
  17. package/dist/cdn/{A5GKO6V5.js → 54RS6FWA.js} +1 -1
  18. package/dist/cdn/{AM6N7CN5.js → 5RUGOYUU.js} +1 -1
  19. package/dist/cdn/{43PLWZNW.js → 5V7X7VFV.js} +1 -1
  20. package/dist/cdn/{QRKB363D.js → 5XXAORHS.js} +1 -1
  21. package/dist/cdn/{SU2JALCX.js → 63CBEXJC.js} +1 -1
  22. package/dist/cdn/{EVX7YNUH.js → 6GECXZIV.js} +1 -1
  23. package/dist/cdn/{373Q2CKM.js → 6JGH7O5T.js} +1 -1
  24. package/dist/cdn/{36CPKVVG.js → 6K7YU6CA.js} +1 -1
  25. package/dist/cdn/{HVWIAEX3.js → 6L6URT5A.js} +1 -1
  26. package/dist/cdn/{XC7W7UMA.js → 6LW2YL6W.js} +1 -1
  27. package/dist/cdn/{FPNA4IRO.js → 6SMNUIS7.js} +1 -1
  28. package/dist/cdn/6TW4W2OI.js +2 -0
  29. package/dist/cdn/{K4H4P6Q7.js → 6YCRCQQ5.js} +1 -1
  30. package/dist/cdn/{NQXFCBXL.js → 6ZJFEP7V.js} +1 -1
  31. package/dist/cdn/{RSLWJGF3.js → 7D2BKUQS.js} +1 -1
  32. package/dist/cdn/{C6LQ6GBG.js → 7UPVFHCA.js} +1 -1
  33. package/dist/cdn/{MANGZQ75.js → 7YA2KZK7.js} +1 -1
  34. package/dist/cdn/{57YF6RZN.js → 7ZVRBKSI.js} +1 -1
  35. package/dist/cdn/{WMN5N64R.js → A3AK4XMB.js} +1 -1
  36. package/dist/cdn/{TG6AYAEJ.js → AAAMWC6E.js} +1 -1
  37. package/dist/cdn/{ZPSODXRY.js → AGN4CPLE.js} +1 -1
  38. package/dist/cdn/{4PL2TVYS.js → AGQILQSL.js} +1 -1
  39. package/dist/cdn/{BAQB62JW.js → AHJ4HSIK.js} +1 -1
  40. package/dist/cdn/{Z6RKRZEC.js → ALTA3GSL.js} +1 -1
  41. package/dist/cdn/{P6QVPLW7.js → AXL57FPK.js} +1 -1
  42. package/dist/cdn/{H65OGVBX.js → BAZOIPTG.js} +1 -1
  43. package/dist/cdn/{XASET2R4.js → BEEIMLTR.js} +1 -1
  44. package/dist/cdn/{KPRNX26Z.js → BEL77ZWE.js} +1 -1
  45. package/dist/cdn/BFAM7MG5.js +2 -0
  46. package/dist/cdn/BHC2QYVP.js +2 -0
  47. package/dist/cdn/{PWDMYK7P.js → BL7IWPHZ.js} +1 -1
  48. package/dist/cdn/{4VSJJWSB.js → BT36ZI63.js} +1 -1
  49. package/dist/cdn/{EVSVWHGJ.js → BV3BORGN.js} +1 -1
  50. package/dist/cdn/{JYGESXIB.js → BZ5L7L7X.js} +1 -1
  51. package/dist/cdn/C2QH3ZIU.js +2 -0
  52. package/dist/cdn/{P3EZAAQ3.js → C5B7VBF5.js} +1 -1
  53. package/dist/cdn/{2VNCC7JJ.js → CDELNLLA.js} +1 -1
  54. package/dist/cdn/{M3PG4DQJ.js → CH2HCJ5I.js} +1 -1
  55. package/dist/cdn/{T4MWDQWR.js → CP3OQKVG.js} +1 -1
  56. package/dist/cdn/{A7E2ZB72.js → CY5YS5JU.js} +1 -1
  57. package/dist/cdn/{7ZEGCIAK.js → DC5MFCQS.js} +1 -1
  58. package/dist/cdn/{WTW6IUQE.js → DCURUTAP.js} +1 -1
  59. package/dist/cdn/{HAANAX6A.js → DTHY45FB.js} +1 -1
  60. package/dist/cdn/{FSRCAJPL.js → E4OTYRS3.js} +1 -1
  61. package/dist/cdn/{LLA4E3SW.js → E4P76U4X.js} +1 -1
  62. package/dist/cdn/{I5BRZKEE.js → E64ZKWQX.js} +1 -1
  63. package/dist/cdn/{3IN2IMDT.js → ECDIHLGQ.js} +1 -1
  64. package/dist/cdn/{ABIHKJ63.js → EDI6UAO2.js} +1 -1
  65. package/dist/cdn/{ODQ4JQEF.js → ESFT7QPL.js} +1 -1
  66. package/dist/cdn/{NGBYLAYA.js → F6PKPFL5.js} +1 -1
  67. package/dist/cdn/{VOGNLQYG.js → FDGBPMXJ.js} +1 -1
  68. package/dist/cdn/{OJ7GUBDC.js → FEJP5BKR.js} +1 -1
  69. package/dist/cdn/{KSZTXC6M.js → FHQO4I4O.js} +1 -1
  70. package/dist/cdn/{TG5F5A54.js → FQNVMB4Z.js} +1 -1
  71. package/dist/cdn/{LZTYLI73.js → FTX34YYP.js} +1 -1
  72. package/dist/cdn/{6IGOXS2J.js → FV2WQ4LO.js} +1 -1
  73. package/dist/cdn/{DTBSLDVU.js → FXIBVRML.js} +1 -1
  74. package/dist/cdn/{E6FHR3YE.js → FY6DKEBA.js} +1 -1
  75. package/dist/cdn/{PWZKHMDW.js → G56HJWWK.js} +1 -1
  76. package/dist/cdn/{BXFT4S4C.js → GAA2BZL4.js} +1 -1
  77. package/dist/cdn/GD5EASMY.js +2 -0
  78. package/dist/cdn/{ZBESWKYE.js → GEA35PGX.js} +1 -1
  79. package/dist/cdn/{CZBL3BHP.js → GIY2WB46.js} +1 -1
  80. package/dist/cdn/{6NU2H4EN.js → H4QJLXGB.js} +1 -1
  81. package/dist/cdn/{Q7A26JOA.js → HESFATVV.js} +1 -1
  82. package/dist/cdn/HESU5ZM5.js +2 -0
  83. package/dist/cdn/{RVQXXZGH.js → HQD72Y2T.js} +1 -1
  84. package/dist/cdn/{SDI7N4ZV.js → HXP4OSR5.js} +1 -1
  85. package/dist/cdn/{ZMT63MEX.js → I2I5HAEN.js} +1 -1
  86. package/dist/cdn/{FSCI2U63.js → IB4I5QND.js} +1 -1
  87. package/dist/cdn/{DP5VKEC3.js → IENB37TX.js} +1 -1
  88. package/dist/cdn/{VW5576XX.js → IOJTRWKU.js} +1 -1
  89. package/dist/cdn/{VVH7GCP4.js → IUKEIRXM.js} +1 -1
  90. package/dist/cdn/{2YG6DPXD.js → IZBMH6MC.js} +1 -1
  91. package/dist/cdn/{5EGS3PEJ.js → J2NTBX5O.js} +1 -1
  92. package/dist/cdn/{6ACZUOGS.js → J3QSZCGU.js} +1 -1
  93. package/dist/cdn/{5GKNWU7B.js → JDE6RZU2.js} +1 -1
  94. package/dist/cdn/JEQ2KCBA.js +2 -0
  95. package/dist/cdn/{44FWGSTP.js → JKNIBFXD.js} +1 -1
  96. package/dist/cdn/{4YSQXYHW.js → JU5DAHUP.js} +1 -1
  97. package/dist/cdn/{KGOPCQAT.js → JXEJYQ2C.js} +1 -1
  98. package/dist/cdn/{L4C7L6MH.js → K4QXG36P.js} +1 -1
  99. package/dist/cdn/{E7LIBVYA.js → K7DG5M33.js} +1 -1
  100. package/dist/cdn/{KJLX7G4N.js → KJIN74HB.js} +1 -1
  101. package/dist/cdn/{6X4IT524.js → KK3DNPYB.js} +1 -1
  102. package/dist/cdn/{JA2CZ3IK.js → KR2Q6BYO.js} +1 -1
  103. package/dist/cdn/{RUGGPMON.js → KTFTMXFZ.js} +1 -1
  104. package/dist/cdn/{UELYLAXS.js → LB4ZVY6G.js} +1 -1
  105. package/dist/cdn/{UFFMJFKS.js → LCROB3R4.js} +1 -1
  106. package/dist/cdn/{GB6SNYFS.js → LGQNIXKU.js} +1 -1
  107. package/dist/cdn/{QLX5E2LL.js → LH53OP7W.js} +1 -1
  108. package/dist/cdn/{22AYGLBY.js → LO5CN3F4.js} +1 -1
  109. package/dist/cdn/{BBNWCS5P.js → LQJHKYDM.js} +1 -1
  110. package/dist/cdn/{BWS32BYZ.js → LS5LRR5P.js} +1 -1
  111. package/dist/cdn/{MZYEGZKC.js → LU4L462L.js} +1 -1
  112. package/dist/cdn/{GDJHZNXO.js → LYUZNKPJ.js} +1 -1
  113. package/dist/cdn/{EB4XAVET.js → M2COMAAO.js} +1 -1
  114. package/dist/cdn/{53OD4CPO.js → MLS3M7HO.js} +1 -1
  115. package/dist/cdn/{JPNQV7TW.js → MNEM26MM.js} +1 -1
  116. package/dist/cdn/{BEYR7NVF.js → MQXJMYUR.js} +1 -1
  117. package/dist/cdn/{JY6OWU4D.js → MXYNYVNT.js} +1 -1
  118. package/dist/cdn/{LHYLZ3MU.js → N4TLIWS2.js} +1 -1
  119. package/dist/cdn/{APWSI2QO.js → N5FPHCZP.js} +1 -1
  120. package/dist/cdn/{E4K735JO.js → N6UCKX6N.js} +1 -1
  121. package/dist/cdn/{WYAY6TFB.js → N7YL5JWL.js} +1 -1
  122. package/dist/cdn/{PV5SKAY2.js → NIZMS2ZM.js} +1 -1
  123. package/dist/cdn/{WJVRZX2B.js → O2GXRQXO.js} +1 -1
  124. package/dist/cdn/O6NEXVFS.js +2 -0
  125. package/dist/cdn/{IQBOL2Y2.js → O6YMGHFD.js} +1 -1
  126. package/dist/cdn/{XPZYTUFI.js → OHPBTCCX.js} +1 -1
  127. package/dist/cdn/{AYREN7H2.js → OLUVSHJP.js} +1 -1
  128. package/dist/cdn/{WUBCS5MQ.js → ORPERYMW.js} +1 -1
  129. package/dist/cdn/{HEYJQH2N.js → OTPBIAPW.js} +1 -1
  130. package/dist/cdn/OUDUP7T4.js +2 -0
  131. package/dist/cdn/{H6V2DGG7.js → OWLK7FRD.js} +1 -1
  132. package/dist/cdn/{OFYWZMKH.js → OYTDTGKF.js} +1 -1
  133. package/dist/cdn/{DCEOZGZR.js → PBWDDJIL.js} +1 -1
  134. package/dist/cdn/{XMLL7DK3.js → PCUJDZ2S.js} +1 -1
  135. package/dist/cdn/{WUZAT6NZ.js → PGDWFO5C.js} +1 -1
  136. package/dist/cdn/{AVQCV2RY.js → PLA67QCL.js} +1 -1
  137. package/dist/cdn/{FUG3LS5X.js → PTX2RTVP.js} +1 -1
  138. package/dist/cdn/{2DCQIDUD.js → PWI2GIS6.js} +1 -1
  139. package/dist/cdn/{L6RN3S4W.js → Q4P5KUTU.js} +1 -1
  140. package/dist/cdn/Q5PEN5VX.js +2 -0
  141. package/dist/cdn/{UFQLQYEU.js → QBK52KMD.js} +1 -1
  142. package/dist/cdn/{IMCNULAQ.js → QIGQJUH4.js} +1 -1
  143. package/dist/cdn/{JHPDTTRE.js → QMPHHVLY.js} +1 -1
  144. package/dist/cdn/{UCHBQOIP.js → QR53ROUB.js} +1 -1
  145. package/dist/cdn/{AMPKD7VW.js → QU2FE7DH.js} +1 -1
  146. package/dist/cdn/{44656MLH.js → R26RHB56.js} +1 -1
  147. package/dist/cdn/R4OARTJQ.js +4 -0
  148. package/dist/cdn/{CUTQCF6H.js → RAKIZRN5.js} +1 -1
  149. package/dist/cdn/{ANG32SYS.js → RFHCFCTQ.js} +1 -1
  150. package/dist/cdn/{KDK2SDDL.js → RNMEB6TG.js} +1 -1
  151. package/dist/cdn/{QRGIKHCX.js → RTNQC3EG.js} +1 -1
  152. package/dist/cdn/{5L3L4ZQH.js → SC67W6VH.js} +1 -1
  153. package/dist/cdn/{RTO6IDAA.js → SES46KM6.js} +1 -1
  154. package/dist/cdn/{Z6DGH2UP.js → SQ5XKFRE.js} +1 -1
  155. package/dist/cdn/{DFVVN6LY.js → T3EZW2GQ.js} +1 -1
  156. package/dist/cdn/T3G5GBJP.js +2 -0
  157. package/dist/cdn/{PO5SQESY.js → TDUQWDXB.js} +1 -1
  158. package/dist/cdn/{6HR4IPYF.js → TJTLSLQU.js} +1 -1
  159. package/dist/cdn/{OCDQLRC7.js → TQ76SLNV.js} +1 -1
  160. package/dist/cdn/{XJDIOWI6.js → TXBXAJH7.js} +1 -1
  161. package/dist/cdn/{GBDVLDNU.js → U3F6ZTCK.js} +1 -1
  162. package/dist/cdn/{6QWKXTNY.js → U7WLAU6C.js} +1 -1
  163. package/dist/cdn/{NJLN6EOZ.js → UEVFRHNF.js} +1 -1
  164. package/dist/cdn/{XK6MB4RQ.js → UFH7MQVG.js} +1 -1
  165. package/dist/cdn/{BPGB5P7T.js → URJTDOHU.js} +1 -1
  166. package/dist/cdn/{7SKT3UBQ.js → UTGLBBPF.js} +1 -1
  167. package/dist/cdn/{Y2WPTYT5.js → UWZYFDXY.js} +2 -2
  168. package/dist/cdn/{SSMVW7KK.js → UZ4E6VVI.js} +1 -1
  169. package/dist/cdn/{SVPBCUKI.js → V6YZBZ3K.js} +1 -1
  170. package/dist/cdn/{DNVRUQQJ.js → VIW7YX56.js} +1 -1
  171. package/dist/cdn/{NQIXR3IA.js → VRWFONCD.js} +1 -1
  172. package/dist/cdn/{TURWA3ZG.js → VUBZUELW.js} +1 -1
  173. package/dist/cdn/{YHE55KJH.js → VYXFMPXG.js} +1 -1
  174. package/dist/cdn/{LOHKXYLL.js → VZONUAKT.js} +1 -1
  175. package/dist/cdn/{TDQ45A7T.js → WJIRRL2O.js} +1 -1
  176. package/dist/cdn/{M63AKZPJ.js → WQTWAAS6.js} +1 -1
  177. package/dist/cdn/{HDOHBNMQ.js → X4QSQNXO.js} +1 -1
  178. package/dist/cdn/{HUG6AEWA.js → XBD7575Y.js} +1 -1
  179. package/dist/cdn/{GHXGJXQK.js → XERK54DA.js} +1 -1
  180. package/dist/cdn/{6GAA253B.js → XIVZERQN.js} +1 -1
  181. package/dist/cdn/{6UDGF6SS.js → XSENVPTL.js} +1 -1
  182. package/dist/cdn/{BKJNK6JJ.js → XTQRWXXL.js} +1 -1
  183. package/dist/cdn/XWKA7Q4J.js +2 -0
  184. package/dist/cdn/{DB3JNXSZ.js → YHWB2GUG.js} +1 -1
  185. package/dist/cdn/{XEKQHNGL.js → YS2H4FZU.js} +1 -1
  186. package/dist/cdn/{VFJSBJKH.js → YSCK6NG6.js} +1 -1
  187. package/dist/cdn/{46PW7HHK.js → Z2NISUUT.js} +1 -1
  188. package/dist/cdn/{ZPUG4UJD.js → Z5KZTMPS.js} +1 -1
  189. package/dist/cdn/{E4LZ4BZR.js → ZCANLZVB.js} +1 -1
  190. package/dist/cdn/{MUYYEML3.js → ZFOIEGAI.js} +1 -1
  191. package/dist/cdn/{4MJLQALU.js → ZGFBVH4B.js} +1 -1
  192. package/dist/cdn/{H5PLYA7V.js → ZTBIY6XI.js} +1 -1
  193. package/dist/cdn/{ZSU7KK52.js → ZZSUBFEU.js} +1 -1
  194. package/dist/cdn/assets/clipboard/t9n/messages.ar.json +1 -1
  195. package/dist/cdn/assets/clipboard/t9n/messages.bg.json +1 -1
  196. package/dist/cdn/assets/clipboard/t9n/messages.bs.json +1 -1
  197. package/dist/cdn/assets/clipboard/t9n/messages.ca.json +1 -1
  198. package/dist/cdn/assets/clipboard/t9n/messages.cs.json +1 -1
  199. package/dist/cdn/assets/clipboard/t9n/messages.da.json +1 -1
  200. package/dist/cdn/assets/clipboard/t9n/messages.de.json +1 -1
  201. package/dist/cdn/assets/clipboard/t9n/messages.el.json +1 -1
  202. package/dist/cdn/assets/clipboard/t9n/messages.es.json +1 -1
  203. package/dist/cdn/assets/clipboard/t9n/messages.et.json +1 -1
  204. package/dist/cdn/assets/clipboard/t9n/messages.fi.json +1 -1
  205. package/dist/cdn/assets/clipboard/t9n/messages.fr.json +1 -1
  206. package/dist/cdn/assets/clipboard/t9n/messages.he.json +1 -1
  207. package/dist/cdn/assets/clipboard/t9n/messages.hr.json +1 -1
  208. package/dist/cdn/assets/clipboard/t9n/messages.hu.json +1 -1
  209. package/dist/cdn/assets/clipboard/t9n/messages.id.json +1 -1
  210. package/dist/cdn/assets/clipboard/t9n/messages.it.json +1 -1
  211. package/dist/cdn/assets/clipboard/t9n/messages.ja.json +1 -1
  212. package/dist/cdn/assets/clipboard/t9n/messages.ko.json +1 -1
  213. package/dist/cdn/assets/clipboard/t9n/messages.lt.json +1 -1
  214. package/dist/cdn/assets/clipboard/t9n/messages.lv.json +1 -1
  215. package/dist/cdn/assets/clipboard/t9n/messages.nl.json +1 -1
  216. package/dist/cdn/assets/clipboard/t9n/messages.no.json +1 -1
  217. package/dist/cdn/assets/clipboard/t9n/messages.pl.json +1 -1
  218. package/dist/cdn/assets/clipboard/t9n/messages.pt-BR.json +1 -1
  219. package/dist/cdn/assets/clipboard/t9n/messages.pt-PT.json +1 -1
  220. package/dist/cdn/assets/clipboard/t9n/messages.ro.json +1 -1
  221. package/dist/cdn/assets/clipboard/t9n/messages.ru.json +1 -1
  222. package/dist/cdn/assets/clipboard/t9n/messages.sk.json +1 -1
  223. package/dist/cdn/assets/clipboard/t9n/messages.sl.json +1 -1
  224. package/dist/cdn/assets/clipboard/t9n/messages.sr.json +1 -1
  225. package/dist/cdn/assets/clipboard/t9n/messages.sv.json +1 -1
  226. package/dist/cdn/assets/clipboard/t9n/messages.th.json +1 -1
  227. package/dist/cdn/assets/clipboard/t9n/messages.tr.json +1 -1
  228. package/dist/cdn/assets/clipboard/t9n/messages.uk.json +1 -1
  229. package/dist/cdn/assets/clipboard/t9n/messages.vi.json +1 -1
  230. package/dist/cdn/assets/clipboard/t9n/messages.zh-CN.json +1 -1
  231. package/dist/cdn/assets/clipboard/t9n/messages.zh-HK.json +1 -1
  232. package/dist/cdn/assets/clipboard/t9n/messages.zh-TW.json +1 -1
  233. package/dist/cdn/assets/elevation-profile/t9n/messages.ar.json +1 -1
  234. package/dist/cdn/assets/elevation-profile/t9n/messages.bg.json +1 -1
  235. package/dist/cdn/assets/elevation-profile/t9n/messages.bs.json +1 -1
  236. package/dist/cdn/assets/elevation-profile/t9n/messages.ca.json +1 -1
  237. package/dist/cdn/assets/elevation-profile/t9n/messages.cs.json +1 -1
  238. package/dist/cdn/assets/elevation-profile/t9n/messages.da.json +1 -1
  239. package/dist/cdn/assets/elevation-profile/t9n/messages.de.json +1 -1
  240. package/dist/cdn/assets/elevation-profile/t9n/messages.el.json +1 -1
  241. package/dist/cdn/assets/elevation-profile/t9n/messages.es.json +1 -1
  242. package/dist/cdn/assets/elevation-profile/t9n/messages.et.json +1 -1
  243. package/dist/cdn/assets/elevation-profile/t9n/messages.fi.json +1 -1
  244. package/dist/cdn/assets/elevation-profile/t9n/messages.fr.json +1 -1
  245. package/dist/cdn/assets/elevation-profile/t9n/messages.he.json +1 -1
  246. package/dist/cdn/assets/elevation-profile/t9n/messages.hr.json +1 -1
  247. package/dist/cdn/assets/elevation-profile/t9n/messages.hu.json +1 -1
  248. package/dist/cdn/assets/elevation-profile/t9n/messages.id.json +1 -1
  249. package/dist/cdn/assets/elevation-profile/t9n/messages.it.json +1 -1
  250. package/dist/cdn/assets/elevation-profile/t9n/messages.ja.json +1 -1
  251. package/dist/cdn/assets/elevation-profile/t9n/messages.ko.json +1 -1
  252. package/dist/cdn/assets/elevation-profile/t9n/messages.lt.json +1 -1
  253. package/dist/cdn/assets/elevation-profile/t9n/messages.lv.json +1 -1
  254. package/dist/cdn/assets/elevation-profile/t9n/messages.nl.json +1 -1
  255. package/dist/cdn/assets/elevation-profile/t9n/messages.no.json +1 -1
  256. package/dist/cdn/assets/elevation-profile/t9n/messages.pl.json +1 -1
  257. package/dist/cdn/assets/elevation-profile/t9n/messages.pt-BR.json +1 -1
  258. package/dist/cdn/assets/elevation-profile/t9n/messages.pt-PT.json +1 -1
  259. package/dist/cdn/assets/elevation-profile/t9n/messages.ro.json +1 -1
  260. package/dist/cdn/assets/elevation-profile/t9n/messages.ru.json +1 -1
  261. package/dist/cdn/assets/elevation-profile/t9n/messages.sk.json +1 -1
  262. package/dist/cdn/assets/elevation-profile/t9n/messages.sl.json +1 -1
  263. package/dist/cdn/assets/elevation-profile/t9n/messages.sr.json +1 -1
  264. package/dist/cdn/assets/elevation-profile/t9n/messages.sv.json +1 -1
  265. package/dist/cdn/assets/elevation-profile/t9n/messages.th.json +1 -1
  266. package/dist/cdn/assets/elevation-profile/t9n/messages.tr.json +1 -1
  267. package/dist/cdn/assets/elevation-profile/t9n/messages.uk.json +1 -1
  268. package/dist/cdn/assets/elevation-profile/t9n/messages.vi.json +1 -1
  269. package/dist/cdn/assets/elevation-profile/t9n/messages.zh-CN.json +1 -1
  270. package/dist/cdn/assets/elevation-profile/t9n/messages.zh-HK.json +1 -1
  271. package/dist/cdn/assets/elevation-profile/t9n/messages.zh-TW.json +1 -1
  272. package/dist/cdn/assets/feature-title/t9n/messages.ar.json +1 -1
  273. package/dist/cdn/assets/feature-title/t9n/messages.bg.json +1 -1
  274. package/dist/cdn/assets/feature-title/t9n/messages.bs.json +1 -1
  275. package/dist/cdn/assets/feature-title/t9n/messages.ca.json +1 -1
  276. package/dist/cdn/assets/feature-title/t9n/messages.cs.json +1 -1
  277. package/dist/cdn/assets/feature-title/t9n/messages.da.json +1 -1
  278. package/dist/cdn/assets/feature-title/t9n/messages.de.json +1 -1
  279. package/dist/cdn/assets/feature-title/t9n/messages.el.json +1 -1
  280. package/dist/cdn/assets/feature-title/t9n/messages.es.json +1 -1
  281. package/dist/cdn/assets/feature-title/t9n/messages.et.json +1 -1
  282. package/dist/cdn/assets/feature-title/t9n/messages.fi.json +1 -1
  283. package/dist/cdn/assets/feature-title/t9n/messages.fr.json +1 -1
  284. package/dist/cdn/assets/feature-title/t9n/messages.he.json +1 -1
  285. package/dist/cdn/assets/feature-title/t9n/messages.hr.json +1 -1
  286. package/dist/cdn/assets/feature-title/t9n/messages.hu.json +1 -1
  287. package/dist/cdn/assets/feature-title/t9n/messages.id.json +1 -1
  288. package/dist/cdn/assets/feature-title/t9n/messages.it.json +1 -1
  289. package/dist/cdn/assets/feature-title/t9n/messages.ja.json +1 -1
  290. package/dist/cdn/assets/feature-title/t9n/messages.ko.json +1 -1
  291. package/dist/cdn/assets/feature-title/t9n/messages.lt.json +1 -1
  292. package/dist/cdn/assets/feature-title/t9n/messages.lv.json +1 -1
  293. package/dist/cdn/assets/feature-title/t9n/messages.nl.json +1 -1
  294. package/dist/cdn/assets/feature-title/t9n/messages.no.json +1 -1
  295. package/dist/cdn/assets/feature-title/t9n/messages.pl.json +1 -1
  296. package/dist/cdn/assets/feature-title/t9n/messages.pt-BR.json +1 -1
  297. package/dist/cdn/assets/feature-title/t9n/messages.pt-PT.json +1 -1
  298. package/dist/cdn/assets/feature-title/t9n/messages.ro.json +1 -1
  299. package/dist/cdn/assets/feature-title/t9n/messages.ru.json +1 -1
  300. package/dist/cdn/assets/feature-title/t9n/messages.sk.json +1 -1
  301. package/dist/cdn/assets/feature-title/t9n/messages.sl.json +1 -1
  302. package/dist/cdn/assets/feature-title/t9n/messages.sr.json +1 -1
  303. package/dist/cdn/assets/feature-title/t9n/messages.sv.json +1 -1
  304. package/dist/cdn/assets/feature-title/t9n/messages.th.json +1 -1
  305. package/dist/cdn/assets/feature-title/t9n/messages.tr.json +1 -1
  306. package/dist/cdn/assets/feature-title/t9n/messages.uk.json +1 -1
  307. package/dist/cdn/assets/feature-title/t9n/messages.vi.json +1 -1
  308. package/dist/cdn/assets/feature-title/t9n/messages.zh-CN.json +1 -1
  309. package/dist/cdn/assets/feature-title/t9n/messages.zh-HK.json +1 -1
  310. package/dist/cdn/assets/feature-title/t9n/messages.zh-TW.json +1 -1
  311. package/dist/cdn/assets/floor-filter/t9n/messages.ar.json +1 -1
  312. package/dist/cdn/assets/floor-filter/t9n/messages.bg.json +1 -1
  313. package/dist/cdn/assets/floor-filter/t9n/messages.bs.json +1 -1
  314. package/dist/cdn/assets/floor-filter/t9n/messages.ca.json +1 -1
  315. package/dist/cdn/assets/floor-filter/t9n/messages.cs.json +1 -1
  316. package/dist/cdn/assets/floor-filter/t9n/messages.da.json +1 -1
  317. package/dist/cdn/assets/floor-filter/t9n/messages.de.json +1 -1
  318. package/dist/cdn/assets/floor-filter/t9n/messages.el.json +1 -1
  319. package/dist/cdn/assets/floor-filter/t9n/messages.es.json +1 -1
  320. package/dist/cdn/assets/floor-filter/t9n/messages.et.json +1 -1
  321. package/dist/cdn/assets/floor-filter/t9n/messages.fi.json +1 -1
  322. package/dist/cdn/assets/floor-filter/t9n/messages.fr.json +1 -1
  323. package/dist/cdn/assets/floor-filter/t9n/messages.he.json +1 -1
  324. package/dist/cdn/assets/floor-filter/t9n/messages.hr.json +1 -1
  325. package/dist/cdn/assets/floor-filter/t9n/messages.hu.json +1 -1
  326. package/dist/cdn/assets/floor-filter/t9n/messages.id.json +1 -1
  327. package/dist/cdn/assets/floor-filter/t9n/messages.it.json +1 -1
  328. package/dist/cdn/assets/floor-filter/t9n/messages.ja.json +1 -1
  329. package/dist/cdn/assets/floor-filter/t9n/messages.ko.json +1 -1
  330. package/dist/cdn/assets/floor-filter/t9n/messages.lt.json +1 -1
  331. package/dist/cdn/assets/floor-filter/t9n/messages.lv.json +1 -1
  332. package/dist/cdn/assets/floor-filter/t9n/messages.nl.json +1 -1
  333. package/dist/cdn/assets/floor-filter/t9n/messages.no.json +1 -1
  334. package/dist/cdn/assets/floor-filter/t9n/messages.pl.json +1 -1
  335. package/dist/cdn/assets/floor-filter/t9n/messages.pt-BR.json +1 -1
  336. package/dist/cdn/assets/floor-filter/t9n/messages.pt-PT.json +1 -1
  337. package/dist/cdn/assets/floor-filter/t9n/messages.ro.json +1 -1
  338. package/dist/cdn/assets/floor-filter/t9n/messages.ru.json +1 -1
  339. package/dist/cdn/assets/floor-filter/t9n/messages.sk.json +1 -1
  340. package/dist/cdn/assets/floor-filter/t9n/messages.sl.json +1 -1
  341. package/dist/cdn/assets/floor-filter/t9n/messages.sr.json +1 -1
  342. package/dist/cdn/assets/floor-filter/t9n/messages.sv.json +1 -1
  343. package/dist/cdn/assets/floor-filter/t9n/messages.th.json +1 -1
  344. package/dist/cdn/assets/floor-filter/t9n/messages.tr.json +1 -1
  345. package/dist/cdn/assets/floor-filter/t9n/messages.uk.json +1 -1
  346. package/dist/cdn/assets/floor-filter/t9n/messages.vi.json +1 -1
  347. package/dist/cdn/assets/floor-filter/t9n/messages.zh-CN.json +1 -1
  348. package/dist/cdn/assets/floor-filter/t9n/messages.zh-HK.json +1 -1
  349. package/dist/cdn/assets/floor-filter/t9n/messages.zh-TW.json +1 -1
  350. package/dist/cdn/assets/layer-list-new/t9n/messages.ar.json +1 -0
  351. package/dist/cdn/assets/layer-list-new/t9n/messages.bg.json +1 -0
  352. package/dist/cdn/assets/layer-list-new/t9n/messages.bs.json +1 -0
  353. package/dist/cdn/assets/layer-list-new/t9n/messages.ca.json +1 -0
  354. package/dist/cdn/assets/layer-list-new/t9n/messages.cs.json +1 -0
  355. package/dist/cdn/assets/layer-list-new/t9n/messages.da.json +1 -0
  356. package/dist/cdn/assets/layer-list-new/t9n/messages.de.json +1 -0
  357. package/dist/cdn/assets/layer-list-new/t9n/messages.el.json +1 -0
  358. package/dist/cdn/assets/layer-list-new/t9n/messages.es.json +1 -0
  359. package/dist/cdn/assets/layer-list-new/t9n/messages.et.json +1 -0
  360. package/dist/cdn/assets/layer-list-new/t9n/messages.fi.json +1 -0
  361. package/dist/cdn/assets/layer-list-new/t9n/messages.fr.json +1 -0
  362. package/dist/cdn/assets/layer-list-new/t9n/messages.he.json +1 -0
  363. package/dist/cdn/assets/layer-list-new/t9n/messages.hr.json +1 -0
  364. package/dist/cdn/assets/layer-list-new/t9n/messages.hu.json +1 -0
  365. package/dist/cdn/assets/layer-list-new/t9n/messages.id.json +1 -0
  366. package/dist/cdn/assets/layer-list-new/t9n/messages.it.json +1 -0
  367. package/dist/cdn/assets/layer-list-new/t9n/messages.ja.json +1 -0
  368. package/dist/cdn/assets/layer-list-new/t9n/messages.ko.json +1 -0
  369. package/dist/cdn/assets/layer-list-new/t9n/messages.lt.json +1 -0
  370. package/dist/cdn/assets/layer-list-new/t9n/messages.lv.json +1 -0
  371. package/dist/cdn/assets/layer-list-new/t9n/messages.nl.json +1 -0
  372. package/dist/cdn/assets/layer-list-new/t9n/messages.no.json +1 -0
  373. package/dist/cdn/assets/layer-list-new/t9n/messages.pl.json +1 -0
  374. package/dist/cdn/assets/layer-list-new/t9n/messages.pt-BR.json +1 -0
  375. package/dist/cdn/assets/layer-list-new/t9n/messages.pt-PT.json +1 -0
  376. package/dist/cdn/assets/layer-list-new/t9n/messages.ro.json +1 -0
  377. package/dist/cdn/assets/layer-list-new/t9n/messages.ru.json +1 -0
  378. package/dist/cdn/assets/layer-list-new/t9n/messages.sk.json +1 -0
  379. package/dist/cdn/assets/layer-list-new/t9n/messages.sl.json +1 -0
  380. package/dist/cdn/assets/layer-list-new/t9n/messages.sr.json +1 -0
  381. package/dist/cdn/assets/layer-list-new/t9n/messages.sv.json +1 -0
  382. package/dist/cdn/assets/layer-list-new/t9n/messages.th.json +1 -0
  383. package/dist/cdn/assets/layer-list-new/t9n/messages.tr.json +1 -0
  384. package/dist/cdn/assets/layer-list-new/t9n/messages.uk.json +1 -0
  385. package/dist/cdn/assets/layer-list-new/t9n/messages.vi.json +1 -0
  386. package/dist/cdn/assets/layer-list-new/t9n/messages.zh-CN.json +1 -0
  387. package/dist/cdn/assets/layer-list-new/t9n/messages.zh-HK.json +1 -0
  388. package/dist/cdn/assets/layer-list-new/t9n/messages.zh-TW.json +1 -0
  389. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.ar.json +1 -1
  390. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.bg.json +1 -1
  391. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.bs.json +1 -1
  392. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.ca.json +1 -1
  393. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.cs.json +1 -1
  394. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.da.json +1 -1
  395. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.de.json +1 -1
  396. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.el.json +1 -1
  397. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.es.json +1 -1
  398. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.et.json +1 -1
  399. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.fi.json +1 -1
  400. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.fr.json +1 -1
  401. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.he.json +1 -1
  402. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.hr.json +1 -1
  403. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.hu.json +1 -1
  404. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.id.json +1 -1
  405. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.it.json +1 -1
  406. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.ja.json +1 -1
  407. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.ko.json +1 -1
  408. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.lt.json +1 -1
  409. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.lv.json +1 -1
  410. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.nl.json +1 -1
  411. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.no.json +1 -1
  412. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.pl.json +1 -1
  413. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.pt-BR.json +1 -1
  414. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.pt-PT.json +1 -1
  415. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.ro.json +1 -1
  416. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.ru.json +1 -1
  417. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.sk.json +1 -1
  418. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.sl.json +1 -1
  419. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.sr.json +1 -1
  420. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.sv.json +1 -1
  421. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.th.json +1 -1
  422. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.tr.json +1 -1
  423. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.uk.json +1 -1
  424. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.vi.json +1 -1
  425. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.zh-CN.json +1 -1
  426. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.zh-HK.json +1 -1
  427. package/dist/cdn/assets/link-chart-nonspatial-visibility-toggle/t9n/messages.zh-TW.json +1 -1
  428. package/dist/cdn/assets/paste/t9n/messages.ar.json +1 -1
  429. package/dist/cdn/assets/paste/t9n/messages.bg.json +1 -1
  430. package/dist/cdn/assets/paste/t9n/messages.bs.json +1 -1
  431. package/dist/cdn/assets/paste/t9n/messages.ca.json +1 -1
  432. package/dist/cdn/assets/paste/t9n/messages.cs.json +1 -1
  433. package/dist/cdn/assets/paste/t9n/messages.da.json +1 -1
  434. package/dist/cdn/assets/paste/t9n/messages.de.json +1 -1
  435. package/dist/cdn/assets/paste/t9n/messages.el.json +1 -1
  436. package/dist/cdn/assets/paste/t9n/messages.es.json +1 -1
  437. package/dist/cdn/assets/paste/t9n/messages.et.json +1 -1
  438. package/dist/cdn/assets/paste/t9n/messages.fi.json +1 -1
  439. package/dist/cdn/assets/paste/t9n/messages.fr.json +1 -1
  440. package/dist/cdn/assets/paste/t9n/messages.he.json +1 -1
  441. package/dist/cdn/assets/paste/t9n/messages.hr.json +1 -1
  442. package/dist/cdn/assets/paste/t9n/messages.hu.json +1 -1
  443. package/dist/cdn/assets/paste/t9n/messages.id.json +1 -1
  444. package/dist/cdn/assets/paste/t9n/messages.it.json +1 -1
  445. package/dist/cdn/assets/paste/t9n/messages.ja.json +1 -1
  446. package/dist/cdn/assets/paste/t9n/messages.ko.json +1 -1
  447. package/dist/cdn/assets/paste/t9n/messages.lt.json +1 -1
  448. package/dist/cdn/assets/paste/t9n/messages.lv.json +1 -1
  449. package/dist/cdn/assets/paste/t9n/messages.nl.json +1 -1
  450. package/dist/cdn/assets/paste/t9n/messages.no.json +1 -1
  451. package/dist/cdn/assets/paste/t9n/messages.pl.json +1 -1
  452. package/dist/cdn/assets/paste/t9n/messages.pt-BR.json +1 -1
  453. package/dist/cdn/assets/paste/t9n/messages.pt-PT.json +1 -1
  454. package/dist/cdn/assets/paste/t9n/messages.ro.json +1 -1
  455. package/dist/cdn/assets/paste/t9n/messages.ru.json +1 -1
  456. package/dist/cdn/assets/paste/t9n/messages.sk.json +1 -1
  457. package/dist/cdn/assets/paste/t9n/messages.sl.json +1 -1
  458. package/dist/cdn/assets/paste/t9n/messages.sr.json +1 -1
  459. package/dist/cdn/assets/paste/t9n/messages.sv.json +1 -1
  460. package/dist/cdn/assets/paste/t9n/messages.th.json +1 -1
  461. package/dist/cdn/assets/paste/t9n/messages.tr.json +1 -1
  462. package/dist/cdn/assets/paste/t9n/messages.uk.json +1 -1
  463. package/dist/cdn/assets/paste/t9n/messages.vi.json +1 -1
  464. package/dist/cdn/assets/paste/t9n/messages.zh-CN.json +1 -1
  465. package/dist/cdn/assets/paste/t9n/messages.zh-HK.json +1 -1
  466. package/dist/cdn/assets/paste/t9n/messages.zh-TW.json +1 -1
  467. package/dist/cdn/assets/print/t9n/messages.ar.json +1 -1
  468. package/dist/cdn/assets/print/t9n/messages.bg.json +1 -1
  469. package/dist/cdn/assets/print/t9n/messages.bs.json +1 -1
  470. package/dist/cdn/assets/print/t9n/messages.ca.json +1 -1
  471. package/dist/cdn/assets/print/t9n/messages.cs.json +1 -1
  472. package/dist/cdn/assets/print/t9n/messages.da.json +1 -1
  473. package/dist/cdn/assets/print/t9n/messages.de.json +1 -1
  474. package/dist/cdn/assets/print/t9n/messages.el.json +1 -1
  475. package/dist/cdn/assets/print/t9n/messages.es.json +1 -1
  476. package/dist/cdn/assets/print/t9n/messages.et.json +1 -1
  477. package/dist/cdn/assets/print/t9n/messages.fi.json +1 -1
  478. package/dist/cdn/assets/print/t9n/messages.fr.json +1 -1
  479. package/dist/cdn/assets/print/t9n/messages.he.json +1 -1
  480. package/dist/cdn/assets/print/t9n/messages.hr.json +1 -1
  481. package/dist/cdn/assets/print/t9n/messages.hu.json +1 -1
  482. package/dist/cdn/assets/print/t9n/messages.id.json +1 -1
  483. package/dist/cdn/assets/print/t9n/messages.it.json +1 -1
  484. package/dist/cdn/assets/print/t9n/messages.ja.json +1 -1
  485. package/dist/cdn/assets/print/t9n/messages.ko.json +1 -1
  486. package/dist/cdn/assets/print/t9n/messages.lt.json +1 -1
  487. package/dist/cdn/assets/print/t9n/messages.lv.json +1 -1
  488. package/dist/cdn/assets/print/t9n/messages.nl.json +1 -1
  489. package/dist/cdn/assets/print/t9n/messages.no.json +1 -1
  490. package/dist/cdn/assets/print/t9n/messages.pl.json +1 -1
  491. package/dist/cdn/assets/print/t9n/messages.pt-BR.json +1 -1
  492. package/dist/cdn/assets/print/t9n/messages.pt-PT.json +1 -1
  493. package/dist/cdn/assets/print/t9n/messages.ro.json +1 -1
  494. package/dist/cdn/assets/print/t9n/messages.ru.json +1 -1
  495. package/dist/cdn/assets/print/t9n/messages.sk.json +1 -1
  496. package/dist/cdn/assets/print/t9n/messages.sl.json +1 -1
  497. package/dist/cdn/assets/print/t9n/messages.sr.json +1 -1
  498. package/dist/cdn/assets/print/t9n/messages.sv.json +1 -1
  499. package/dist/cdn/assets/print/t9n/messages.th.json +1 -1
  500. package/dist/cdn/assets/print/t9n/messages.tr.json +1 -1
  501. package/dist/cdn/assets/print/t9n/messages.uk.json +1 -1
  502. package/dist/cdn/assets/print/t9n/messages.vi.json +1 -1
  503. package/dist/cdn/assets/print/t9n/messages.zh-CN.json +1 -1
  504. package/dist/cdn/assets/print/t9n/messages.zh-HK.json +1 -1
  505. package/dist/cdn/assets/print/t9n/messages.zh-TW.json +1 -1
  506. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ar.json +1 -1
  507. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.bg.json +1 -1
  508. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.bs.json +1 -1
  509. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ca.json +1 -1
  510. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.cs.json +1 -1
  511. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.da.json +1 -1
  512. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.de.json +1 -1
  513. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.el.json +1 -1
  514. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.es.json +1 -1
  515. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.et.json +1 -1
  516. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.fi.json +1 -1
  517. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.fr.json +1 -1
  518. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.he.json +1 -1
  519. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.hr.json +1 -1
  520. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.hu.json +1 -1
  521. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.id.json +1 -1
  522. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.it.json +1 -1
  523. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ja.json +1 -1
  524. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ko.json +1 -1
  525. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.lt.json +1 -1
  526. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.lv.json +1 -1
  527. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.nl.json +1 -1
  528. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.no.json +1 -1
  529. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.pl.json +1 -1
  530. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.pt-BR.json +1 -1
  531. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.pt-PT.json +1 -1
  532. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ro.json +1 -1
  533. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.ru.json +1 -1
  534. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.sk.json +1 -1
  535. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.sl.json +1 -1
  536. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.sr.json +1 -1
  537. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.sv.json +1 -1
  538. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.th.json +1 -1
  539. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.tr.json +1 -1
  540. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.uk.json +1 -1
  541. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.vi.json +1 -1
  542. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.zh-CN.json +1 -1
  543. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.zh-HK.json +1 -1
  544. package/dist/cdn/assets/reverse-geocode-list/t9n/messages.zh-TW.json +1 -1
  545. package/dist/cdn/assets/shadow-cast/t9n/messages.ar.json +1 -1
  546. package/dist/cdn/assets/shadow-cast/t9n/messages.bg.json +1 -1
  547. package/dist/cdn/assets/shadow-cast/t9n/messages.bs.json +1 -1
  548. package/dist/cdn/assets/shadow-cast/t9n/messages.ca.json +1 -1
  549. package/dist/cdn/assets/shadow-cast/t9n/messages.cs.json +1 -1
  550. package/dist/cdn/assets/shadow-cast/t9n/messages.da.json +1 -1
  551. package/dist/cdn/assets/shadow-cast/t9n/messages.de.json +1 -1
  552. package/dist/cdn/assets/shadow-cast/t9n/messages.el.json +1 -1
  553. package/dist/cdn/assets/shadow-cast/t9n/messages.es.json +1 -1
  554. package/dist/cdn/assets/shadow-cast/t9n/messages.et.json +1 -1
  555. package/dist/cdn/assets/shadow-cast/t9n/messages.fi.json +1 -1
  556. package/dist/cdn/assets/shadow-cast/t9n/messages.fr.json +1 -1
  557. package/dist/cdn/assets/shadow-cast/t9n/messages.he.json +1 -1
  558. package/dist/cdn/assets/shadow-cast/t9n/messages.hr.json +1 -1
  559. package/dist/cdn/assets/shadow-cast/t9n/messages.hu.json +1 -1
  560. package/dist/cdn/assets/shadow-cast/t9n/messages.id.json +1 -1
  561. package/dist/cdn/assets/shadow-cast/t9n/messages.it.json +1 -1
  562. package/dist/cdn/assets/shadow-cast/t9n/messages.ja.json +1 -1
  563. package/dist/cdn/assets/shadow-cast/t9n/messages.ko.json +1 -1
  564. package/dist/cdn/assets/shadow-cast/t9n/messages.lt.json +1 -1
  565. package/dist/cdn/assets/shadow-cast/t9n/messages.lv.json +1 -1
  566. package/dist/cdn/assets/shadow-cast/t9n/messages.nl.json +1 -1
  567. package/dist/cdn/assets/shadow-cast/t9n/messages.no.json +1 -1
  568. package/dist/cdn/assets/shadow-cast/t9n/messages.pl.json +1 -1
  569. package/dist/cdn/assets/shadow-cast/t9n/messages.pt-BR.json +1 -1
  570. package/dist/cdn/assets/shadow-cast/t9n/messages.pt-PT.json +1 -1
  571. package/dist/cdn/assets/shadow-cast/t9n/messages.ro.json +1 -1
  572. package/dist/cdn/assets/shadow-cast/t9n/messages.ru.json +1 -1
  573. package/dist/cdn/assets/shadow-cast/t9n/messages.sk.json +1 -1
  574. package/dist/cdn/assets/shadow-cast/t9n/messages.sl.json +1 -1
  575. package/dist/cdn/assets/shadow-cast/t9n/messages.sr.json +1 -1
  576. package/dist/cdn/assets/shadow-cast/t9n/messages.sv.json +1 -1
  577. package/dist/cdn/assets/shadow-cast/t9n/messages.th.json +1 -1
  578. package/dist/cdn/assets/shadow-cast/t9n/messages.tr.json +1 -1
  579. package/dist/cdn/assets/shadow-cast/t9n/messages.uk.json +1 -1
  580. package/dist/cdn/assets/shadow-cast/t9n/messages.vi.json +1 -1
  581. package/dist/cdn/assets/shadow-cast/t9n/messages.zh-CN.json +1 -1
  582. package/dist/cdn/assets/shadow-cast/t9n/messages.zh-HK.json +1 -1
  583. package/dist/cdn/assets/shadow-cast/t9n/messages.zh-TW.json +1 -1
  584. package/dist/cdn/assets/time-of-day-slider/t9n/messages.ar.json +1 -1
  585. package/dist/cdn/assets/time-of-day-slider/t9n/messages.bg.json +1 -1
  586. package/dist/cdn/assets/time-of-day-slider/t9n/messages.bs.json +1 -1
  587. package/dist/cdn/assets/time-of-day-slider/t9n/messages.ca.json +1 -1
  588. package/dist/cdn/assets/time-of-day-slider/t9n/messages.cs.json +1 -1
  589. package/dist/cdn/assets/time-of-day-slider/t9n/messages.da.json +1 -1
  590. package/dist/cdn/assets/time-of-day-slider/t9n/messages.de.json +1 -1
  591. package/dist/cdn/assets/time-of-day-slider/t9n/messages.el.json +1 -1
  592. package/dist/cdn/assets/time-of-day-slider/t9n/messages.es.json +1 -1
  593. package/dist/cdn/assets/time-of-day-slider/t9n/messages.et.json +1 -1
  594. package/dist/cdn/assets/time-of-day-slider/t9n/messages.fi.json +1 -1
  595. package/dist/cdn/assets/time-of-day-slider/t9n/messages.fr.json +1 -1
  596. package/dist/cdn/assets/time-of-day-slider/t9n/messages.he.json +1 -1
  597. package/dist/cdn/assets/time-of-day-slider/t9n/messages.hr.json +1 -1
  598. package/dist/cdn/assets/time-of-day-slider/t9n/messages.hu.json +1 -1
  599. package/dist/cdn/assets/time-of-day-slider/t9n/messages.id.json +1 -1
  600. package/dist/cdn/assets/time-of-day-slider/t9n/messages.it.json +1 -1
  601. package/dist/cdn/assets/time-of-day-slider/t9n/messages.ja.json +1 -1
  602. package/dist/cdn/assets/time-of-day-slider/t9n/messages.ko.json +1 -1
  603. package/dist/cdn/assets/time-of-day-slider/t9n/messages.lt.json +1 -1
  604. package/dist/cdn/assets/time-of-day-slider/t9n/messages.lv.json +1 -1
  605. package/dist/cdn/assets/time-of-day-slider/t9n/messages.nl.json +1 -1
  606. package/dist/cdn/assets/time-of-day-slider/t9n/messages.no.json +1 -1
  607. package/dist/cdn/assets/time-of-day-slider/t9n/messages.pl.json +1 -1
  608. package/dist/cdn/assets/time-of-day-slider/t9n/messages.pt-BR.json +1 -1
  609. package/dist/cdn/assets/time-of-day-slider/t9n/messages.pt-PT.json +1 -1
  610. package/dist/cdn/assets/time-of-day-slider/t9n/messages.ro.json +1 -1
  611. package/dist/cdn/assets/time-of-day-slider/t9n/messages.ru.json +1 -1
  612. package/dist/cdn/assets/time-of-day-slider/t9n/messages.sk.json +1 -1
  613. package/dist/cdn/assets/time-of-day-slider/t9n/messages.sl.json +1 -1
  614. package/dist/cdn/assets/time-of-day-slider/t9n/messages.sr.json +1 -1
  615. package/dist/cdn/assets/time-of-day-slider/t9n/messages.sv.json +1 -1
  616. package/dist/cdn/assets/time-of-day-slider/t9n/messages.th.json +1 -1
  617. package/dist/cdn/assets/time-of-day-slider/t9n/messages.tr.json +1 -1
  618. package/dist/cdn/assets/time-of-day-slider/t9n/messages.uk.json +1 -1
  619. package/dist/cdn/assets/time-of-day-slider/t9n/messages.vi.json +1 -1
  620. package/dist/cdn/assets/time-of-day-slider/t9n/messages.zh-CN.json +1 -1
  621. package/dist/cdn/assets/time-of-day-slider/t9n/messages.zh-HK.json +1 -1
  622. package/dist/cdn/assets/time-of-day-slider/t9n/messages.zh-TW.json +1 -1
  623. package/dist/cdn/assets/unit-select/t9n/messages.ar.json +1 -1
  624. package/dist/cdn/assets/unit-select/t9n/messages.bg.json +1 -1
  625. package/dist/cdn/assets/unit-select/t9n/messages.bs.json +1 -1
  626. package/dist/cdn/assets/unit-select/t9n/messages.ca.json +1 -1
  627. package/dist/cdn/assets/unit-select/t9n/messages.cs.json +1 -1
  628. package/dist/cdn/assets/unit-select/t9n/messages.da.json +1 -1
  629. package/dist/cdn/assets/unit-select/t9n/messages.de.json +1 -1
  630. package/dist/cdn/assets/unit-select/t9n/messages.el.json +1 -1
  631. package/dist/cdn/assets/unit-select/t9n/messages.es.json +1 -1
  632. package/dist/cdn/assets/unit-select/t9n/messages.et.json +1 -1
  633. package/dist/cdn/assets/unit-select/t9n/messages.fi.json +1 -1
  634. package/dist/cdn/assets/unit-select/t9n/messages.fr.json +1 -1
  635. package/dist/cdn/assets/unit-select/t9n/messages.he.json +1 -1
  636. package/dist/cdn/assets/unit-select/t9n/messages.hr.json +1 -1
  637. package/dist/cdn/assets/unit-select/t9n/messages.hu.json +1 -1
  638. package/dist/cdn/assets/unit-select/t9n/messages.id.json +1 -1
  639. package/dist/cdn/assets/unit-select/t9n/messages.it.json +1 -1
  640. package/dist/cdn/assets/unit-select/t9n/messages.ja.json +1 -1
  641. package/dist/cdn/assets/unit-select/t9n/messages.ko.json +1 -1
  642. package/dist/cdn/assets/unit-select/t9n/messages.lt.json +1 -1
  643. package/dist/cdn/assets/unit-select/t9n/messages.lv.json +1 -1
  644. package/dist/cdn/assets/unit-select/t9n/messages.nl.json +1 -1
  645. package/dist/cdn/assets/unit-select/t9n/messages.no.json +1 -1
  646. package/dist/cdn/assets/unit-select/t9n/messages.pl.json +1 -1
  647. package/dist/cdn/assets/unit-select/t9n/messages.pt-BR.json +1 -1
  648. package/dist/cdn/assets/unit-select/t9n/messages.pt-PT.json +1 -1
  649. package/dist/cdn/assets/unit-select/t9n/messages.ro.json +1 -1
  650. package/dist/cdn/assets/unit-select/t9n/messages.ru.json +1 -1
  651. package/dist/cdn/assets/unit-select/t9n/messages.sk.json +1 -1
  652. package/dist/cdn/assets/unit-select/t9n/messages.sl.json +1 -1
  653. package/dist/cdn/assets/unit-select/t9n/messages.sr.json +1 -1
  654. package/dist/cdn/assets/unit-select/t9n/messages.sv.json +1 -1
  655. package/dist/cdn/assets/unit-select/t9n/messages.th.json +1 -1
  656. package/dist/cdn/assets/unit-select/t9n/messages.tr.json +1 -1
  657. package/dist/cdn/assets/unit-select/t9n/messages.uk.json +1 -1
  658. package/dist/cdn/assets/unit-select/t9n/messages.vi.json +1 -1
  659. package/dist/cdn/assets/unit-select/t9n/messages.zh-CN.json +1 -1
  660. package/dist/cdn/assets/unit-select/t9n/messages.zh-HK.json +1 -1
  661. package/dist/cdn/assets/unit-select/t9n/messages.zh-TW.json +1 -1
  662. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.ar.json +1 -1
  663. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.bg.json +1 -1
  664. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.bs.json +1 -1
  665. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.ca.json +1 -1
  666. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.cs.json +1 -1
  667. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.da.json +1 -1
  668. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.de.json +1 -1
  669. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.el.json +1 -1
  670. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.es.json +1 -1
  671. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.et.json +1 -1
  672. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.fi.json +1 -1
  673. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.fr.json +1 -1
  674. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.he.json +1 -1
  675. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.hr.json +1 -1
  676. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.hu.json +1 -1
  677. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.id.json +1 -1
  678. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.it.json +1 -1
  679. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.ja.json +1 -1
  680. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.ko.json +1 -1
  681. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.lt.json +1 -1
  682. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.lv.json +1 -1
  683. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.nl.json +1 -1
  684. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.no.json +1 -1
  685. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.pl.json +1 -1
  686. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.pt-BR.json +1 -1
  687. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.pt-PT.json +1 -1
  688. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.ro.json +1 -1
  689. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.ru.json +1 -1
  690. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.sk.json +1 -1
  691. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.sl.json +1 -1
  692. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.sr.json +1 -1
  693. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.sv.json +1 -1
  694. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.th.json +1 -1
  695. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.tr.json +1 -1
  696. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.uk.json +1 -1
  697. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.vi.json +1 -1
  698. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.zh-CN.json +1 -1
  699. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.zh-HK.json +1 -1
  700. package/dist/cdn/assets/utility-network-aggregated-geometry/t9n/messages.zh-TW.json +1 -1
  701. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ar.json +1 -1
  702. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.bg.json +1 -1
  703. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.bs.json +1 -1
  704. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ca.json +1 -1
  705. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.cs.json +1 -1
  706. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.da.json +1 -1
  707. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.de.json +1 -1
  708. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.el.json +1 -1
  709. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.es.json +1 -1
  710. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.et.json +1 -1
  711. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.fi.json +1 -1
  712. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.fr.json +1 -1
  713. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.he.json +1 -1
  714. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.hr.json +1 -1
  715. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.hu.json +1 -1
  716. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.id.json +1 -1
  717. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.it.json +1 -1
  718. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ja.json +1 -1
  719. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ko.json +1 -1
  720. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.lt.json +1 -1
  721. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.lv.json +1 -1
  722. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.nl.json +1 -1
  723. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.no.json +1 -1
  724. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pl.json +1 -1
  725. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pt-BR.json +1 -1
  726. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pt-PT.json +1 -1
  727. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ro.json +1 -1
  728. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ru.json +1 -1
  729. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sk.json +1 -1
  730. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sl.json +1 -1
  731. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sr.json +1 -1
  732. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sv.json +1 -1
  733. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.th.json +1 -1
  734. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.tr.json +1 -1
  735. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.uk.json +1 -1
  736. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.vi.json +1 -1
  737. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-CN.json +1 -1
  738. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-HK.json +1 -1
  739. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-TW.json +1 -1
  740. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ar.json +1 -1
  741. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bg.json +1 -1
  742. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bs.json +1 -1
  743. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ca.json +1 -1
  744. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.cs.json +1 -1
  745. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.da.json +1 -1
  746. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.de.json +1 -1
  747. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.el.json +1 -1
  748. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.es.json +1 -1
  749. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.et.json +1 -1
  750. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fi.json +1 -1
  751. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fr.json +1 -1
  752. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.he.json +1 -1
  753. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hr.json +1 -1
  754. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hu.json +1 -1
  755. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.id.json +1 -1
  756. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.it.json +1 -1
  757. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ja.json +1 -1
  758. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ko.json +1 -1
  759. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lt.json +1 -1
  760. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lv.json +1 -1
  761. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.nl.json +1 -1
  762. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.no.json +1 -1
  763. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pl.json +1 -1
  764. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-BR.json +1 -1
  765. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-PT.json +1 -1
  766. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ro.json +1 -1
  767. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ru.json +1 -1
  768. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sk.json +1 -1
  769. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sl.json +1 -1
  770. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sr.json +1 -1
  771. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sv.json +1 -1
  772. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.th.json +1 -1
  773. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.tr.json +1 -1
  774. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.uk.json +1 -1
  775. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.vi.json +1 -1
  776. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-CN.json +1 -1
  777. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-HK.json +1 -1
  778. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-TW.json +1 -1
  779. package/dist/cdn/assets/volume-measurement/t9n/messages.ar.json +1 -1
  780. package/dist/cdn/assets/volume-measurement/t9n/messages.bg.json +1 -1
  781. package/dist/cdn/assets/volume-measurement/t9n/messages.bs.json +1 -1
  782. package/dist/cdn/assets/volume-measurement/t9n/messages.ca.json +1 -1
  783. package/dist/cdn/assets/volume-measurement/t9n/messages.cs.json +1 -1
  784. package/dist/cdn/assets/volume-measurement/t9n/messages.da.json +1 -1
  785. package/dist/cdn/assets/volume-measurement/t9n/messages.de.json +1 -1
  786. package/dist/cdn/assets/volume-measurement/t9n/messages.el.json +1 -1
  787. package/dist/cdn/assets/volume-measurement/t9n/messages.es.json +1 -1
  788. package/dist/cdn/assets/volume-measurement/t9n/messages.et.json +1 -1
  789. package/dist/cdn/assets/volume-measurement/t9n/messages.fi.json +1 -1
  790. package/dist/cdn/assets/volume-measurement/t9n/messages.fr.json +1 -1
  791. package/dist/cdn/assets/volume-measurement/t9n/messages.he.json +1 -1
  792. package/dist/cdn/assets/volume-measurement/t9n/messages.hr.json +1 -1
  793. package/dist/cdn/assets/volume-measurement/t9n/messages.hu.json +1 -1
  794. package/dist/cdn/assets/volume-measurement/t9n/messages.id.json +1 -1
  795. package/dist/cdn/assets/volume-measurement/t9n/messages.it.json +1 -1
  796. package/dist/cdn/assets/volume-measurement/t9n/messages.ja.json +1 -1
  797. package/dist/cdn/assets/volume-measurement/t9n/messages.ko.json +1 -1
  798. package/dist/cdn/assets/volume-measurement/t9n/messages.lt.json +1 -1
  799. package/dist/cdn/assets/volume-measurement/t9n/messages.lv.json +1 -1
  800. package/dist/cdn/assets/volume-measurement/t9n/messages.nl.json +1 -1
  801. package/dist/cdn/assets/volume-measurement/t9n/messages.no.json +1 -1
  802. package/dist/cdn/assets/volume-measurement/t9n/messages.pl.json +1 -1
  803. package/dist/cdn/assets/volume-measurement/t9n/messages.pt-BR.json +1 -1
  804. package/dist/cdn/assets/volume-measurement/t9n/messages.pt-PT.json +1 -1
  805. package/dist/cdn/assets/volume-measurement/t9n/messages.ro.json +1 -1
  806. package/dist/cdn/assets/volume-measurement/t9n/messages.ru.json +1 -1
  807. package/dist/cdn/assets/volume-measurement/t9n/messages.sk.json +1 -1
  808. package/dist/cdn/assets/volume-measurement/t9n/messages.sl.json +1 -1
  809. package/dist/cdn/assets/volume-measurement/t9n/messages.sr.json +1 -1
  810. package/dist/cdn/assets/volume-measurement/t9n/messages.sv.json +1 -1
  811. package/dist/cdn/assets/volume-measurement/t9n/messages.th.json +1 -1
  812. package/dist/cdn/assets/volume-measurement/t9n/messages.tr.json +1 -1
  813. package/dist/cdn/assets/volume-measurement/t9n/messages.uk.json +1 -1
  814. package/dist/cdn/assets/volume-measurement/t9n/messages.vi.json +1 -1
  815. package/dist/cdn/assets/volume-measurement/t9n/messages.zh-CN.json +1 -1
  816. package/dist/cdn/assets/volume-measurement/t9n/messages.zh-HK.json +1 -1
  817. package/dist/cdn/assets/volume-measurement/t9n/messages.zh-TW.json +1 -1
  818. package/dist/cdn/index.js +1 -1
  819. package/dist/chunks/feature-utils.js +57 -65
  820. package/dist/components/arcgis-feature-fields/customElement.js +1 -1
  821. package/dist/components/arcgis-feature-media/customElement.js +1 -1
  822. package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
  823. package/dist/components/arcgis-features/customElement.d.ts +8 -1
  824. package/dist/components/arcgis-features/customElement.js +80 -79
  825. package/dist/components/arcgis-utility-network-trace-analysis/types.d.ts +1 -1
  826. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +83 -104
  827. package/dist/components/arcgis-utility-network-trace-inputs/index.js +0 -3
  828. package/dist/components/arcgis-utility-network-trace-location/customElement.js +40 -36
  829. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -2
  830. package/dist/components/arcgis-utility-network-trace-results/customElement.js +63 -108
  831. package/dist/components/arcgis-utility-network-trace-results/index.js +0 -2
  832. package/dist/docs/api.json +1 -1
  833. package/dist/docs/docs.json +1 -1
  834. package/dist/docs/vscode.html-custom-data.json +1 -1
  835. package/dist/docs/web-types.json +1 -1
  836. package/dist/loader.js +2 -2
  837. package/dist/types/lumina.d.ts +2 -2
  838. package/dist/types/preact.d.ts +2 -2
  839. package/dist/types/react.d.ts +2 -2
  840. package/dist/types/stencil.d.ts +2 -2
  841. package/package.json +4 -4
  842. package/dist/cdn/5ETV3R5I.js +0 -2
  843. package/dist/cdn/ATJTICAQ.js +0 -2
  844. package/dist/cdn/GIGQIUF5.js +0 -2
  845. package/dist/cdn/JVFREF7G.js +0 -4
  846. package/dist/cdn/K6ZECO3O.js +0 -2
  847. package/dist/cdn/KHTYIU4N.js +0 -2
  848. package/dist/cdn/KTANBDLO.js +0 -2
  849. package/dist/cdn/MXDRHRVG.js +0 -2
  850. package/dist/cdn/OC6OXK23.js +0 -2
  851. package/dist/cdn/PTY5K2SM.js +0 -2
  852. package/dist/cdn/TYARDSSK.js +0 -2
  853. package/dist/cdn/V2TSL5SU.js +0 -2
  854. package/dist/cdn/VOM6SUWZ.js +0 -2
  855. package/dist/cdn/YWLUIC2V.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import j from"./DHDFI523.js";import i from"./APWSI2QO.js";import h from"./R3NYK6BO.js";import{a as b}from"./KJLX7G4N.js";import g from"./46PW7HHK.js";import f from"./GBDVLDNU.js";import{a as se}from"./UFFMJFKS.js";import e from"./QRKB363D.js";import c from"./373Q2CKM.js";import{g as re}from"./SDI7N4ZV.js";import"./JAPT4J53.js";import a from"./LLA4E3SW.js";import"./GDJHZNXO.js";import{M as V,N as D,O as ee,P as te,Q as N,R as ie,U as ae,a as Y,b as d,c as R,x as E}from"./3IN2IMDT.js";import"./3TTFCHAA.js";export default $arcgis.t(([{property:s,subclass:C},Z,B,{getApplicationClipboard:Me},Ce,j,{getFullTemplate:ce,isSharedTemplate:de,getCreationAttributes:Fe,isSharedTemplateOrMetadata:me},{createApplySetModifyItem:W,createApplySet:J,createFeatureStateProvider:Q,createApplySetAddItem:q,writeApplySetToService:_e},{whenOnce:ue,watch:X},{getRendererFields:pe,getFeatureEditFields:xe},Pe,{substitute:y},{createGraphicsMover:$e},,,,oe,,{g:U},,{a:le,b:ne}])=>{var Ae=Y`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{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))}.merge-feature-form{padding-left:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-right:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-bottom: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 Ee(e,t={}){if(e?.type==="subtype-group"){if(!e.subtypeField)return[];let i=t[e.subtypeField];if(!be(i))return[];let a=e.findSublayerForSubtypeCode(i);return a?a.renderer&&a.fieldsIndex?await pe(a.renderer,e.fieldsIndex):[]:[]}return e?e.renderer&&e.fieldsIndex?await pe(e.renderer,e.fieldsIndex):[]:[]}function Ie(e,t,i,a,r,o){let l={...a},h=ke(o),p=Se(o),m="";(o.type==="subtype-group"||o.type==="subtype-sublayer")&&(m=o.subtypeField??"");let v=o.objectIdField??"";return e.forEach(u=>{if(u.name!==v&&!h.includes(u.name)&&!p.includes(u.name)&&!r.includes(u.name)&&u.type!=="global-id"&&(m===""||m!==u.name)){let w=He(u,t);w.match&&w.targetField&&(l[w.targetField?.name]=i[u.name])}}),l}function ke(e){return e&&"relationships"in e?(e.relationships??[]).filter(t=>t.role==="origin").map(t=>t.keyField):[]}function Se(e){return e?.type==="subtype-sublayer"&&(e=e.parent),e?xe(e):[]}function Te(e,t){if(e.type===t.type)return t.type==="string"?e.length<=t.length:!0;switch(e.type){case"small-integer":return["integer","big-integer"].includes(t.type);case"integer":return t.type==="big-integer";case"single":return t.type==="double";default:return!1}}function He(e,t){let i={match:!1,sourceField:null,targetField:null};for(let a of t)if(Te(e,a)){let r=e.name.replace(/\s/gu,"").toLowerCase();if(a.name.replace(/\s/gu,"").toLowerCase()===r)return i.match=!0,i.sourceField=e,i.targetField=a,i}return i}async function ge(e,t,i,a){let r=!0,o={hasAsyncArcadeExpressions:!1},l=e.items.filter(h=>h.type==="add");for(let h of l){let p=h.graphic.clone(),m=Oe(h.graphic,h.layer);if(!m){r=!1;continue}let v=!await Ge(t,h.graphic,m,i,o);if(o.hasAsyncArcadeExpressions&&l.length>a)return!1;let u=W({graphic:h.graphic,layer:h.layer,originalGraphic:p});if(e.push(u),!v)return!1}return r}function Oe(e,t){return t.type==="feature"||t.type==="subtype-sublayer"?t:t.findSublayerForFeature(e)||null}async function Ge(e,t,i,a,r){let o=i.formTemplate,l=i.fields.filter(w=>{let z=t.attributes[w.name],fe=z===null||z===""||z===void 0;return w.editable&&!w.nullable&&fe});if(!o)return l.length!==0;let h=new Set;we(o.elements??[],h);let p=new Set;if(ve(o.elements??[],p),h.size===0&&p.size===0)return l.length>0;let m=t.clone();m.layer=i,delete m.attributes[i.objectIdField],a.has(i)||a.set(i,new Pe({map:e.map,editType:"INSERT"}));let v=a.get(i);if(v.features=new j([m]),await ue(()=>(v.status==="loaded"||v.status==="failed")&&!v.updating),v.hasAsyncArcadeExpressions&&(r.hasAsyncArcadeExpressions=!0),v.status==="failed")return!0;let u=v.getValues(m)??{};if(i.objectIdField&&u[i.objectIdField]!==void 0){let{[i.objectIdField]:w,...z}=u;u=z}return Object.keys(u).forEach(w=>{i.fieldsIndex.has(w)&&(t.attributes[w]=ze(u[w],w,i.fieldsIndex))}),v.invalidFeatures.length>0}function ve(e,t){for(let i of e)i.type==="group"?ve(i.elements,t):i.type==="field"&&i.valueExpression&&t.add(i.fieldName)}function we(e,t){for(let i of e)i.type==="group"?we(i.elements,t):i.type==="field"&&i.requiredExpression&&t.add(i.fieldName)}function be(e){return typeof e=="number"}function Le(e){return typeof e=="number"&&window.isFinite(e)&&Math.floor(e)===e}function ze(e,t,i){if(e==null)return null;switch(i.get(t).type){case"big-integer":case"long":case"oid":case"integer":case"small-integer":return Le(e)?e:window.parseInt(e);case"single":case"double":return be(e)?e:window.parseFloat(e);case"global-id":case"guid":return e===""?null:e;case"date":break;case"date-only":case"time-only":case"timestamp-offset":return e===""?null:e;case"string":return e===""?null:e}return e}function Ve(e){return e&&"layer"in e?e.layer:void 0}function I(e){if(!e)return null;let t=Ve(e.origin)??e.layer??e?.sourceLayer??null;if(t&&t.type==="subtype-sublayer")return t.parent;switch(t?.type){case"csv":case"feature":case"geojson":case"ogc-feature":case"subtype-group":case"wfs":return t;default:return null}}var De=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,A=(e,t,i,a)=>{for(var r=a>1?void 0:a?Be(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&De(t,i,r),r},ye={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"},g=class extends Z{constructor(e){super(e)}get mustShowOnCommandPage(){return!0}get icon(){}get id(){return""}label(e,t){return""}description(e,t){return""}get commandEnabled(){return!1}commandDisabledReason(e,t){return""}get immediate(){return!1}async initiate(e,t){}async execute(){throw new Error("arcgis-paste: Paste command does not support execute")}async runPasteCommand(e,t,i){try{this.viewModel.applying=!0;let a=await this.prepareCopy(t);if(!a||a.items.length===0){this.viewModel.lastPasteError={errorCode:"noPasteItems",errorMessage:"No items to paste",localizedErrorMessage:"noPasteItemsError"},e.onPasteError(this.viewModel.lastPasteError);return}let r=a.items.length>this.viewModel.maximumFeatureCount||this.viewModel.alwaysShowFeatureForm||i?.showFeatureForm===!0||!await ge(a,this.viewModel.view,this.viewModel.formViewModelMap,this.viewModel.maximumFeatureCountWithComplexForms);if(this.viewModel.alwaysShowFeatureForm||r||i?.showFeatureForm===!0)this.viewModel.bauActiveFeatureIndex=0,this.viewModel.bauApplySet=a,this.viewModel.activeCommand=t,this.viewModel.bauOriginalGraphics=a.items.map(o=>o.type==="add"?{layer:o.layer,graphic:o.graphic}:null).filter(o=>o!==null),this.viewModel.bauFeatures=new j,this.viewModel.activeFlowPage="form-page",await new Promise(o=>{setTimeout(o,100)}),this.viewModel.bauFeatures=new j(this.viewModel.bauOriginalGraphics.map(o=>(o.graphic.layer=o.layer,o.graphic))),this.viewModel.updateIndividualMultiFeatureFormHighlight();else try{let o=await e.onApply({command:"paste",applySet:a});if(o.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(o,e.onPasteError)}catch(o){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:o.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{a?.featureState?.clearAll()}}finally{this.viewModel.applying=!1}}async prepareCopy(e){let t=e==="paste"||e==="paste-as"&&this.viewModel.pasteWithAttributes||e==="paste-merge"&&this.viewModel.pasteWithAttributes,i=t&&e==="paste-merge"?this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex):null,a=J();if(a.featureState=Q(this.viewModel.view),e==="paste-merge"){let r=this.viewModel.pasteTemplate?.template?await ce(this.viewModel.view,this.viewModel.pasteTemplate.template):null;if(!r)return null;let o=de(this.viewModel.pasteTemplate.template)?r.layer:this.viewModel.pasteTemplate.layer,l=await this.createMergedClipboardGeom(),h=await this.constructFeatureAttributesCopy(r,o,i),p=new B({geometry:l,attributes:h});this.removeGraphicIdentifierFields(p,o),a.push(q({graphic:p,layer:o}))}else if(e==="paste")for(let r of this.viewModel.clipboardFeatures){let o=r.graphic.clone();this.removeGraphicIdentifierFields(o,r.layer),a.push(q({graphic:o,layer:r.layer}))}else if(e==="paste-as"){let r=this.viewModel.pasteTemplate?.template?await ce(this.viewModel.view,this.viewModel.pasteTemplate.template):null;if(!r)return null;let o=de(r)?r.layer:this.viewModel.pasteTemplate.layer;for(let l of this.viewModel.clipboardFeatures){let h=await this.constructFeatureAttributesCopy(r,o,t?l:null),p=new B({geometry:l.graphic?.geometry?.clone()??null,attributes:h});this.removeGraphicIdentifierFields(p,o),a.push(q({graphic:p,layer:o}))}}return a}async constructFeatureAttributesCopy(e,t,i){let a=Fe(e,{});if(i){let r=i.layer?.fields;if(r){let o=t.fields,l=i.graphic.attributes??{},h=await Ee(t,a);a=Ie(r,o,l,a,h,t)}}return a}async createMergedClipboardGeom(){let e=this.viewModel.clipboardFeatures.map(t=>t.graphic?.geometry).filter(t=>t!=null).toArray();return e.length===0?null:e.length===1?e[0].clone():(await $arcgis.t(m=>m[0],"geometry/operators/unionOperator")).executeMany(e)??null}removeGraphicIdentifierFields(e,t){t.objectIdField&&delete e.attributes[t.objectIdField],t.globalIdField&&delete e.attributes[t.globalIdField]}};A([s()],g.prototype,"viewModel",2);A([s()],g.prototype,"mustShowOnCommandPage",1);A([s()],g.prototype,"icon",1);A([s()],g.prototype,"id",1);A([s()],g.prototype,"commandEnabled",1);A([s()],g.prototype,"commandDisabledReason",1);A([s()],g.prototype,"immediate",1);g=A([C("components.paste.commands.PasteCommand")],g);var je=Object.defineProperty,We=Object.getOwnPropertyDescriptor,T=(e,t,i,a)=>{for(var r=a>1?void 0:a?We(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&je(t,i,r),r},F=class extends g{get id(){return"paste-append"}get icon(){return"reshape-add-geometry"}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.viewModel.clipboardFeatures.length>0&&this.viewModel.selectedFeature!==void 0&&this.viewModel.layerPermissionsCheck.canUpdate(I(this.viewModel.selectedFeature))&&this.viewModel.selectedFeature?.geometry!==null&&(this.viewModel.selectedFeature?.geometry?.type==="multipoint"||this.viewModel.selectedFeature?.geometry?.type==="polyline"||this.viewModel.selectedFeature?.geometry?.type==="polygon")&&this.viewModel.clipboard.singleGeometryType===this.viewModel.selectedFeature?.geometry?.type}async initiate(e){let t=null;try{this.viewModel.applying=!0;let i=await this.prepareAppend();if(i.applySet&&(t=i.applySet),!i.success){this.viewModel.lastPasteError={errorCode:i.failReason,errorMessage:ye[i.failReason],localizedErrorMessage:i.failReason},e.onPasteError(this.viewModel.lastPasteError);return}let a=await e.onApply({command:"paste-append",applySet:i.applySet});if(a.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(a,e.onPasteError)}catch(i){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:i.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{this.viewModel.applying=!1,t&&(t.featureState?.clearAll(),t.featureState=null)}}async execute(){let e=await this.prepareAppend();if(!e.success)throw new Error(`arcgis-paste: Paste append failed. ${e.failReason}`);return{success:!0,userInputRequired:!1,applySet:e.applySet}}async prepareAppend(){let e=J();if(e.featureState=Q(this.viewModel.view),!this.viewModel.selectedFeature)return{success:!1,failReason:"noSelectedError"};let[t,i]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/unionOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.viewModel.selectedFeature.geometry,r=!1;for(let l of this.viewModel.clipboardFeatures){let h=l?.graphic?.geometry??null;if(!h)continue;if(a===null){a=l?.graphic?.geometry??null,a&&(a=a.clone(),r=!0);continue}let p=t.execute(a,h);i.execute(a,p)||(a=p,r=!0)}if(!r)return{success:!1,failReason:"noChangeError"};let o=this.viewModel.selectedFeature.clone();return o.geometry=a,e.push(W({graphic:o,layer:I(this.viewModel.selectedFeature),originalGraphic:this.viewModel.selectedFeature})),{success:!0,applySet:e}}description(e,t){return e.pasteAppendDesc}label(e,t){return e.pasteAppendTitle}};T([s()],F.prototype,"id",1);T([s()],F.prototype,"icon",1);T([s()],F.prototype,"immediate",1);T([s()],F.prototype,"mustShowOnCommandPage",1);T([s()],F.prototype,"commandEnabled",1);F=T([C("components.paste.commands.PasteAppendCommand")],F);var Re=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,H=(e,t,i,a)=>{for(var r=a>1?void 0:a?Ne(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&Re(t,i,r),r},_=class extends g{get id(){return"paste-subtract"}get icon(){return"reshape-subtract-geometry"}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.viewModel.clipboardFeatures.length>0&&this.viewModel.selectedFeature!==void 0&&this.viewModel.layerPermissionsCheck.canUpdate(I(this.viewModel.selectedFeature))&&this.viewModel.selectedFeature?.geometry!==null&&(this.viewModel.selectedFeature?.geometry?.type==="multipoint"||this.viewModel.selectedFeature?.geometry?.type==="polyline"||this.viewModel.selectedFeature?.geometry?.type==="polygon")&&(this.viewModel.clipboard.singleGeometryType===this.viewModel.selectedFeature?.geometry?.type||this.viewModel.clipboard.singleGeometryType==="polygon")}async prepareSubtract(){let e=J();if(e.featureState=Q(this.viewModel.view),!this.viewModel.selectedFeature)return{success:!1,failReason:"noSelectedError",applySet:e};let[t,i]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/differenceOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.viewModel.selectedFeature.geometry;if(!a)return{success:!1,failReason:"noGeometryError",applySet:e};let r=!1;for(let l of this.viewModel.clipboardFeatures){let h=l?.graphic?.geometry;if(!h)continue;let p=t.execute(a,h);if(!p)return{success:!1,failReason:"deletesGeometryError",applySet:e};i.execute(a,p)||(a=p,r=!0)}if(!r)return{success:!1,failReason:"noChangeError",applySet:e};let o=this.viewModel.selectedFeature.clone();return o.geometry=a,e.push(W({graphic:o,layer:I(this.viewModel.selectedFeature),originalGraphic:this.viewModel.selectedFeature})),{success:!0,applySet:e}}async execute(){let e=await this.prepareSubtract();if(!e.success)throw new Error(`arcgis-paste: Paste subtract failed. ${e.failReason}`);return{success:!0,userInputRequired:!1,applySet:e.applySet}}async initiate(e){let t=null;try{this.viewModel.applying=!0;let i=await this.prepareSubtract();if(i.applySet&&(t=i.applySet),!i.success){this.viewModel.lastPasteError={errorCode:i.failReason,errorMessage:ye[i.failReason],localizedErrorMessage:i.failReason},e.onPasteError(this.viewModel.lastPasteError);return}let a=await e.onApply({command:"paste-subtract",applySet:i.applySet});if(a.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(a,e.onPasteError)}catch(i){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:i.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{this.viewModel.applying=!1,t&&(t.featureState?.clearAll(),t.featureState=null)}}description(e,t){return e.pasteSubtractDesc}label(e,t){return e.pasteSubtractTitle}};H([s()],_.prototype,"id",1);H([s()],_.prototype,"icon",1);H([s()],_.prototype,"immediate",1);H([s()],_.prototype,"mustShowOnCommandPage",1);H([s()],_.prototype,"commandEnabled",1);_=H([C("components.paste.commands.PasteSubtractCommand")],_);var Ue=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,O=(e,t,i,a)=>{for(var r=a>1?void 0:a?qe(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&Ue(t,i,r),r},x=class extends g{get id(){return"paste-as"}get icon(){return"templates"}get immediate(){return!1}get mustShowOnCommandPage(){return!1}get commandEnabled(){return(this.viewModel.clipboardFeatures.length===1||this.viewModel.clipboardFeatures.length>0&&this.viewModel.pasteWithMultipleFeaturesEnabled)&&this.viewModel.clipboard.singleGeometryType!==void 0}async initiate(e){this.viewModel.activeFlowPage="gallery-page",this.viewModel.activeCommand="paste-as"}description(e,t){return e.pasteAsDesc}label(e,t){return e.pasteAsTitle}};O([s()],x.prototype,"id",1);O([s()],x.prototype,"icon",1);O([s()],x.prototype,"immediate",1);O([s()],x.prototype,"mustShowOnCommandPage",1);O([s()],x.prototype,"commandEnabled",1);x=O([C("components.paste.commands.PasteAsCommand")],x);var Xe=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,G=(e,t,i,a)=>{for(var r=a>1?void 0:a?Ke(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&Xe(t,i,r),r},P=class extends g{get id(){return"paste"}get icon(){return"duplicate"}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){let e=this.viewModel.clipboardFeatures.length===1,t=this.viewModel.clipboardFeatures.length>0&&this.viewModel.clipboardItemLayers.length===1&&this.viewModel.pasteWithMultipleFeaturesEnabled,i=this.viewModel.clipboardFeatures.length>0&&this.viewModel.pasteWithMultipleFeaturesEnabled&&this.viewModel.pasteWithMultipleLayersEnabled;return this.viewModel.clipboardFeatures.length>0&&this.viewModel.canCreateOnAllLayers&&(e||t||i)}async initiate(e,t){await this.runPasteCommand(e,"paste",t)}async execute(){let e=await this.prepareCopy("paste");if(!e||e.items.length===0)throw new Error("arcgis-paste: No items to paste");return e.items.length>this.viewModel.maximumFeatureCount||!await ge(e,this.viewModel.view,this.viewModel.formViewModelMap,this.viewModel.maximumFeatureCountWithComplexForms)?{success:!1,userInputRequired:!0}:{success:!0,userInputRequired:!1,applySet:e}}description(e,t){return e.pasteDesc}label(e,t){return e.pasteTitle}};G([s()],P.prototype,"id",1);G([s()],P.prototype,"icon",1);G([s()],P.prototype,"immediate",1);G([s()],P.prototype,"mustShowOnCommandPage",1);G([s()],P.prototype,"commandEnabled",1);P=G([C("components.paste.commands.PasteSetCommand")],P);var Ze=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,L=(e,t,i,a)=>{for(var r=a>1?void 0:a?Je(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&Ze(t,i,r),r},$=class extends g{get id(){return"paste-merge"}get icon(){return"merge"}get immediate(){return!1}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.viewModel.clipboardFeatures.length>1&&this.viewModel.clipboard.singleGeometryType!==void 0}async initiate(e){this.viewModel.activeFlowPage="gallery-page",this.viewModel.activeCommand="paste-merge";for(let t=0;t<this.viewModel.clipboard.items.length;t++)if(this.viewModel.clipboard.items.getItemAt(t).type==="feature"){this.viewModel.selectedClipboardItemIndex=t;break}}description(e,t){return e.pasteMergeDesc}label(e,t){return e.pasteMergeTitle}};L([s()],$.prototype,"id",1);L([s()],$.prototype,"icon",1);L([s()],$.prototype,"immediate",1);L([s()],$.prototype,"mustShowOnCommandPage",1);L([s()],$.prototype,"commandEnabled",1);$=L([C("components.paste.commands.PasteMergeCommand")],$);var Qe=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,k=(e,t,i,a)=>{for(var r=a>1?void 0:a?Ye(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&Qe(t,i,r),r},f=class extends g{constructor(e){super(e)}get id(){return this.customCommand.id}get icon(){return this.customCommand.icon}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.customCommand.commandEnabled(this.viewModel.clipboard,this.viewModel.selectedFeature)}async initiate(e){try{this.viewModel.applying=!0;let t=await e.onApply({command:this.id});if(t.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(t,e.onPasteError)}catch(t){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:t.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{this.viewModel.applying=!1}}description(e,t){return this.customCommand.description(e,t)}label(e,t){return this.customCommand.label(e,t)}};k([s()],f.prototype,"customCommand",2);k([s()],f.prototype,"id",1);k([s()],f.prototype,"icon",1);k([s()],f.prototype,"immediate",1);k([s()],f.prototype,"mustShowOnCommandPage",1);k([s()],f.prototype,"commandEnabled",1);f=k([C("components.paste.commands.PasteCustomCommand")],f);var et=Object.defineProperty,tt=Object.getOwnPropertyDescriptor,c=(e,t,i,a)=>{for(var r=a>1?void 0:a?tt(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&et(t,i,r),r};function he(e){return!me(e)||e.type==="feature"}var n=class extends Z{constructor(e){super(e),this.customPasteCommands=new j,this.bauInvalidFeatures=[],this.bauFormValid=!0,this.bauFormUpdating=!1,this.bauActiveFeatureIndex=-1,this.bauHasTooManyFeatures=!1,this.bauHasTooManyComplexFeatures=!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.hideTooltips=!1,this.hideFooter=!1,this.hideFooterCancelButton=!1,this.hideHeaderCloseButton=!1,this.hideViewClipboard=!1,this.hideErrorNotice=!1,this.highlightGroup="temporary",this._hoverHighlightHandle=null,this.maximumFeatureCount=200,this.maximumFeatureCountWithComplexForms=50,this.layerPermissionsCheck={canCreate:t=>t?!!t.effectiveCapabilities?.operations.supportsAdd:!1,canUpdate:t=>{if(!t)return!1;let i=t.effectiveCapabilities,a=!!i?.operations.supportsUpdate,r=!!i?.editing.supportsGeometryUpdate&&a;return!t.isTable&&!r?!1:a}},this.applying=!1}get bauActiveGraphic(){return this.bauActiveFeatureIndex===-1?void 0:this.bauFeatures?.getItemAt(this.bauActiveFeatureIndex)}get hasTooManyPasteCreateFeatures(){return this.clipboardFeatures.length>this.maximumFeatureCount&&["paste","paste-as"].includes(this.activeCommand??"")}get bauActiveLayer(){if(this.bauActiveFeatureIndex!==-1&&this.bauFeatures)return I(this.bauFeatures.getItemAt(this.bauActiveFeatureIndex))??void 0}get pasteTemplateIsValid(){return this.pasteTemplate?this.pasteTemplate.layer?!!this.workingLayers.includes(this.pasteTemplate.layer.type==="subtype-sublayer"?this.pasteTemplate.layer.parent:this.pasteTemplate.layer):!1:!0}get clipboardAndTemplateSupportAttributes(){if(this.clipboardFeatures.length===0||!this.pasteTemplate?.layer)return!1;let e=this.pasteTemplate.template;if(!he(e))return!1;for(let t of this.clipboardFeatures){let i=t.layer;if(!i)return!1;let a=i.type==="subtype-sublayer"?i.parent:i;if(a.type==="subtype-group"){let r=a.fieldsIndex.get(a.subtypeField).name,o=e.prototype?.[r];if(o==null||o!==t.graphic.attributes[r])return!1}}return!0}get hasClipboardItemMatchingTemplate(){let e=this.pasteTemplate?.layer;if(!e||this.clipboardFeatures.length===0)return!1;let t=this.pasteTemplate.template;if(!he(t))return!1;for(let i of this.clipboardFeatures){let a=i.layer;if(!a)return!1;let r=a.type==="subtype-sublayer"?a.parent:a;if(e===a){if(r.type==="subtype-group"){let o=r.fieldsIndex.get(r.subtypeField).name,l=t.prototype?.[o];if(l==null||l!==i.graphic.attributes[o])continue}return!0}}return!1}get activeFlowPage(){return this._activeFlowPage}set activeFlowPage(e){e==="clipboard"&&this.beforeClipboard===void 0?this.beforeClipboard=this.activeFlowPage:e!=="clipboard"&&(this.beforeClipboard=void 0),e==="form-page"&&this.beforeForm===void 0?this.beforeForm=this.activeFlowPage:e!=="form-page"&&(this.beforeForm=void 0),this._activeFlowPage=e,this.checkAndSuspendMove()}get updating(){return this.applying}formFeatureValuesChanged(e,t){if(!t)return;let i=e.graphic.clone();for(let r of Object.keys(t))i.attributes[r]=t[r];let a=W({graphic:i,originalGraphic:e.graphic.clone(),layer:e.layer});this.bauApplySet?.push(a)}highlightSelectedGraphicOnMap(e){if(this.clearHighlightSelectedGraphic(),!e.graphic?.geometry||!this.view)return;let t=new B({geometry:e.graphic.geometry,symbol:ne(e.graphic.geometry.type)});this.view.graphics.add(t),this._hoverHighlightHandle={remove:()=>{this.view.graphics.remove(t)}}}clearHighlightSelectedGraphic(){this._hoverHighlightHandle?.remove(),this._hoverHighlightHandle=null}updateIndividualMultiFeatureFormHighlight(){if(this.activeFlowPage!=="form-page"){this.clearIndividualFeatureFormHighlight();return}if(this.view)if(this.bauActiveGraphic&&this.bauActiveLayer){if(this.bauIndividualHighlight?.graphic!==this.bauActiveGraphic&&this.clearIndividualFeatureFormHighlight(),!this.bauIndividualHighlight){let e=U(this.view,this.bauActiveLayer);if(!e)return;this.bauIndividualHighlight={graphic:this.bauActiveGraphic,handle:e.highlight(this.bauActiveGraphic,{name:this.highlightGroup})}}}else this.clearIndividualFeatureFormHighlight()}clearIndividualFeatureFormHighlight(){this.bauIndividualHighlight?.handle?.remove(),this.bauIndividualHighlight=void 0}highlightMultiFeatureFormFeature(e,t){this.bauHighlight&&this.clearMultiFeatureFormHighlights();let i=this.view?U(this.view,e.layer):void 0;i&&(this.bauHighlight=i.highlight(e,{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 Ce({listMode:"hide"}),this.view.map?.layers.add(this.clipboardGraphicsLayer));let e=this.clipboard.items;this.clipboardGraphicsLayer.removeAll();let t=-1;for(let i of e){if(t++,i.type!=="feature"||!i.graphic.geometry)continue;let a=new B({geometry:i.graphic.geometry.clone(),attributes:{clipboardIdx:t},symbol:le(i.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 e=this.activeFlowPage==="form-page";this.clipboardGraphicsLayer&&(this.clipboardGraphicsLayer.visible=!e),this.clipboardMover&&(this.clipboardMover.suspended=e)}get clipboard(){return Me()}get clipboardFeatures(){return this.clipboard.items.filter(e=>e.type==="feature")}get hasPasteCommandsPage(){return this.availableCommands.length>1||!!this.availableCommands.at(0)?.mustShowOnCommandPage}_clearActiveCommand(){this.activeCommand=void 0,this.lastPasteError=void 0}resetHome(){let e=this.activeFlowPage;this.hasPasteCommandsPage?(e="commands-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.clipboard.items.length===0?(e="clipboard-empty-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.availableCommands.length===0?(e="no-command-page",this._clearActiveCommand()):this.availableCommands[0].commandEnabled?(e="gallery-page",this.activeCommand=this.availableCommands[0].id,this.lastPasteError=void 0):(e="no-command-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1),this.activeFlowPage==="clipboard"&&this.hideViewClipboard?(this.activeFlowPage=e,this.beforeClipboard=void 0):this.activeFlowPage==="clipboard"&&!this.hideViewClipboard?this.beforeClipboard=e:(this.activeFlowPage=e,this.beforeClipboard=void 0),this.resetFormPage()}get workingLayers(){return(this.view?.map?.allLayers?.toArray()??[]).filter(e=>e.type==="feature"||e.type==="subtype-group").filter(e=>{let t=this.clipboard.singleGeometryType;return this.activeCommand==="paste-merge"&&this.clipboard.singleGeometryType==="point"&&(t="multipoint"),!(e.geometryType!==t||!this.layerPermissionsCheck.canCreate(e))})}get clipboardItemLayers(){let e=new Set;for(let t of this.clipboard.items)t.layer&&e.add(t.layer.type==="subtype-sublayer"?t.layer.parent:t.layer);return[...e]}get canCreateOnAllLayers(){if(this.clipboardItemLayers.length===0)return!1;for(let e of this.clipboardItemLayers)if(!e||!this.layerPermissionsCheck.canCreate(e))return!1;return!0}get availableCommands(){let e=new Set(this.supportedCommands);return this.allCommands.filter(t=>e.has(t.id))}get allCommands(){let e=[];e.push(...[P,x,$,F,_].map(t=>new t({viewModel:this})));for(let t of this.customPasteCommands)e.push(new f({viewModel:this,customCommand:t}));return e}get pasteCommandsState(){return this.allCommands.map(e=>({id:e.id,disabled:!e.commandEnabled,available:this.supportedCommands.includes(e.id)}))}nextActiveFeature(){this.bauActiveFeatureIndex++,this.updateIndividualMultiFeatureFormHighlight()}previousActiveFeature(){this.bauActiveFeatureIndex--,this.updateIndividualMultiFeatureFormHighlight()}resetFormPage(){this.bauApplySet?.featureState?.clearAll(),this.bauApplySet=void 0,this.clearIndividualFeatureFormHighlight(),this.clearMultiFeatureFormHighlights(),this.bauFeatures=void 0,this.bauOriginalGraphics=[]}getPasteCommandById(e){return this.allCommands.find(t=>t.id===e)}async runPasteFormCommand(e){try{this.applying=!0;let t=this.bauApplySet,i=await e.onApply({command:this.activeCommand,applySet:t});if(i.success){this.resetHome(),this.closeOnApply&&e.closeAfterApply();return}this.handleApplyError(i,e.onPasteError)}catch(t){this.lastPasteError={errorCode:"unexpectedError",errorMessage:t.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.lastPasteError);return}finally{this.applying=!1}}handleApplyError(e,t){e.success||e.errorCode!=="cancelled"&&(this.lastPasteError={errorCode:e.errorCode??"unexpectedError",errorMessage:e.errorMessage??"",localizedErrorMessage:e.errorMessage?void 0:"unexpectedError"},t(this.lastPasteError))}async writeChanges(e){return await _e(e,this.view)}};c([s()],n.prototype,"customPasteCommands",2);c([s()],n.prototype,"bauInvalidFeatures",2);c([s()],n.prototype,"bauFormValid",2);c([s()],n.prototype,"bauFormUpdating",2);c([s()],n.prototype,"bauActiveFeatureIndex",2);c([s()],n.prototype,"bauHasTooManyFeatures",2);c([s()],n.prototype,"bauHasTooManyComplexFeatures",2);c([s()],n.prototype,"bauActiveGraphic",1);c([s()],n.prototype,"hasTooManyPasteCreateFeatures",1);c([s()],n.prototype,"bauActiveLayer",1);c([s()],n.prototype,"bauFeatures",2);c([s()],n.prototype,"bauApplySet",2);c([s()],n.prototype,"bauOriginalGraphics",2);c([s()],n.prototype,"formViewModelMap",2);c([s()],n.prototype,"bauHighlight",2);c([s()],n.prototype,"bauIndividualHighlight",2);c([s()],n.prototype,"view",2);c([s()],n.prototype,"supportedCommands",2);c([s()],n.prototype,"selectedFeature",2);c([s()],n.prototype,"pasteWithMultipleLayersEnabled",2);c([s()],n.prototype,"pasteWithMultipleFeaturesEnabled",2);c([s()],n.prototype,"alwaysShowFeatureForm",2);c([s()],n.prototype,"pasteTemplate",2);c([s()],n.prototype,"pasteTemplateIsValid",1);c([s()],n.prototype,"selectedClipboardItemIndex",2);c([s()],n.prototype,"clipboardAndTemplateSupportAttributes",1);c([s()],n.prototype,"hasClipboardItemMatchingTemplate",1);c([s()],n.prototype,"pasteWithAttributes",2);c([s()],n.prototype,"closeOnApply",2);c([s()],n.prototype,"currentPasteOperation",2);c([s()],n.prototype,"activeFlowPage",1);c([s()],n.prototype,"_activeFlowPage",2);c([s()],n.prototype,"beforeClipboard",2);c([s()],n.prototype,"beforeForm",2);c([s()],n.prototype,"showClipboardItems",2);c([s()],n.prototype,"updating",1);c([s()],n.prototype,"hideTooltips",2);c([s()],n.prototype,"hideFooter",2);c([s()],n.prototype,"hideFooterCancelButton",2);c([s()],n.prototype,"hideHeaderCloseButton",2);c([s()],n.prototype,"hideViewClipboard",2);c([s()],n.prototype,"hideErrorNotice",2);c([s()],n.prototype,"clipboardGraphicsLayer",2);c([s()],n.prototype,"clipboardMover",2);c([s()],n.prototype,"highlightGroup",2);c([s()],n.prototype,"clipboard",1);c([s()],n.prototype,"clipboardFeatures",1);c([s()],n.prototype,"hasPasteCommandsPage",1);c([s()],n.prototype,"activeCommand",2);c([s()],n.prototype,"maximumFeatureCount",2);c([s()],n.prototype,"maximumFeatureCountWithComplexForms",2);c([s()],n.prototype,"workingLayers",1);c([s()],n.prototype,"layerPermissionsCheck",2);c([s()],n.prototype,"clipboardItemLayers",1);c([s()],n.prototype,"canCreateOnAllLayers",1);c([s()],n.prototype,"applying",2);c([s()],n.prototype,"lastPasteError",2);c([s()],n.prototype,"availableCommands",1);c([s()],n.prototype,"allCommands",1);c([s()],n.prototype,"pasteCommandsState",1);n=c([C("components.paste.PasteViewModel")],n);var it=Object.defineProperty,at=Object.getOwnPropertyDescriptor,S=(e,t,i,a)=>{for(var r=a>1?void 0:a?at(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&it(t,i,r),r},M=class extends Z{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=$e({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 e of this.graphicsLayer.graphics)this.clipboard.items.getItemAt(e.attributes.clipboardIdx).graphic.geometry=e.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(e){e!==this._suspended&&(e?(this._destroyMover(),this.stateChanged?.("suspended")):(this.start(),this.stateChanged?.("suspended")),this._suspended=e)}_destroyMover(){this._mover?.destroy(),this._mover=null}};S([s()],M.prototype,"view",2);S([s()],M.prototype,"continuous",2);S([s()],M.prototype,"clipboard",2);S([s()],M.prototype,"graphicsLayer",2);S([s()],M.prototype,"suspended",1);S([s()],M.prototype,"_suspended",2);M=S([C("components.paste.ClipboardMove")],M);var rt=oe(n),K=class extends ee{constructor(){super(),this._featureFormElement=V(),this._floatingChoiceContainer=V(),this._bauForm=V(),this._templateGallery=V(),this._messages=se(),this.viewModel=rt(this),this.hasPasteCommandsPage=this.viewModel.hasPasteCommandsPage,this.activeCommand=this.viewModel.activeCommand,this.availableCommands=this.viewModel.availableCommands,this._showFloatingChoice=!1,this.activeFlowPage=this.viewModel.activeFlowPage,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.hideFooter=this.viewModel.hideFooter,this.hideHeaderCloseButton=this.viewModel.hideHeaderCloseButton,this.hideTooltips=this.viewModel.hideTooltips,this.hideViewClipboard=this.viewModel.hideViewClipboard,this.maximumFeatureCount=this.viewModel.maximumFeatureCount,this.maximumFeatureCountWithComplexForms=this.viewModel.maximumFeatureCountWithComplexForms,this.layerPermissionsCheck=this.viewModel.layerPermissionsCheck,this.pasteCommandsState=this.viewModel.pasteCommandsState,this.arcgisApplyPasteCommand=E(),this.arcgisApplyPasteError=E(),this.arcgisBeforeClipboardMove=E(),this.arcgisClipboardMoveStateChanged=E(),this.arcgisClose=E(),this.arcgisPropertyChange=re()("pasteCommandsState","activeFlowPage"),this.arcgisReady=E(),this.listenOn(window,"click",this._handleClickAway),this.listenOn(window,"keydown",this._handleKeyDown)}static{this.properties={hasPasteCommandsPage:16,activeCommand:16,availableCommands:16,_showFloatingChoice:16,activeFlowPage:32,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,hideFooter:5,hideHeaderCloseButton:5,hideTooltips:5,hideViewClipboard:5,maximumFeatureCount:9,maximumFeatureCountWithComplexForms:9,layerPermissionsCheck:0,pasteCommandsState:0}}static{this.styles=Ae}get supportedCommands(){return this.viewModel.supportedCommands}set supportedCommands(t){if(!Array.isArray(t)){this.viewModel.supportedCommands=t.split(",");return}this.viewModel.supportedCommands=t.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 executePasteCommand(t,i){let a=this.viewModel.getPasteCommandById(t);if(!a)throw new Error("arcgis-paste: Paste command not found");if(!a.commandEnabled)throw new Error("arcgis-paste: Paste command is not enabled");if(!i?.silent){if(!this.availableCommands.includes(a))throw new Error("arcgis-paste: Paste command is not available");return this.viewModel.resetHome(),await this._runPasteCommand(a,i),{userInputRequired:!1,success:!0}}return await a.execute()}async registerPasteCommand(t){this.viewModel.customPasteCommands.add(t)}async reset(){this.viewModel.activeFlowPage==="clipboard"&&(this.viewModel.activeFlowPage=this.viewModel.beforeClipboard),this.viewModel.resetHome()}async showClipboardItems(t){this.viewModel.showClipboardItems=t,this.viewModel.updateClipboardGraphicsLayer()}async startMoveClipboard(t){if(!this.viewModel.showClipboardItems)throw new Error("arcgis-paste: 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 M({view:this.view,continuous:t,clipboard:this.clipboard,graphicsLayer:this.viewModel.clipboardGraphicsLayer,stateChanged:i=>{i==="contents-moved"&&this.viewModel.updateClipboardGraphicsLayer(),this.arcgisClipboardMoveStateChanged.emit({change:i})}}),this.viewModel.clipboardMover.start())}async writeChanges(t){return await this.viewModel.writeChanges(t)}updated(){this._featureFormElement.value&&(this._featureFormElement.value.hideReadOnlyNotice=!0,this._featureFormElement.value.disabled=!0),this._checkAndUpdateInitialPasteTemplate()}loaded(){this.manager.onLifecycle(()=>[this.viewModel.clipboard.items.on("change",()=>{this.viewModel.updateClipboardGraphicsLayer(),this.activeFlowPage==="form-page"&&this.viewModel.resetHome()}),X(()=>this.clipboard.version,()=>{this.viewModel.resetHome(),this.viewModel.updateClipboardGraphicsLayer(),this.viewModel.clipboardMover?.clipboardContentsChanged()}),X(()=>this.closed,()=>{this.closed&&this.viewModel.formViewModelMap.clear(),this.viewModel.updateClipboardGraphicsLayer()}),X(()=>[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(t){this.viewModel.bauActiveFeatureIndex=t.activeFeatureIndex,this.viewModel.bauInvalidFeatures=t.invalidFeatures,this.viewModel.bauFormValid=t.valid,this.viewModel.bauFormUpdating=t.updating,this.viewModel.bauHasTooManyComplexFeatures=t.hasTooManyComplexFeatures,this.viewModel.bauHasTooManyFeatures=t.hasTooManyFeatures}_copyAcrossValidMultiFormFieldValues(){try{if(this._bauForm.value?.status!=="loaded")return;let t=this._bauForm.value,i=0;for(let a of this.viewModel.bauFeatures?.toArray()??[]){let r=this.viewModel.bauOriginalGraphics[i];this.viewModel.formFeatureValuesChanged(r,t.getValues(a)),i++}}catch{}}_handleClickAway(t){!this._showFloatingChoice||!this._floatingChoiceContainer.value||t.composedPath().find(i=>i===this._floatingChoiceContainer.value)||(this._showFloatingChoice=!1)}_handleKeyDown(t){!this._showFloatingChoice||!this._floatingChoiceContainer.value||t.composedPath().find(i=>i===this._floatingChoiceContainer.value)||(this._showFloatingChoice=!1)}async _runPasteCommand(t,i){try{this.viewModel.lastPasteError=void 0,await t.initiate({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:a=>{this.arcgisApplyPasteError.emit({command:t.id,errorMessage:a.errorMessage,errorCode:a.errorCode})},onApply:async a=>{try{await this.beforeApply?.();let r={...a};return this.arcgisApplyPasteCommand.emit(r).defaultPrevented?{success:!1,errorCode:"cancelled"}:r.completionCallback?await r.completionCallback??{success:!0}:{success:!0}}catch{return{success:!1}}}},i)}catch{}}_checkAndUpdateInitialPasteTemplate(){requestAnimationFrame(()=>{if(!this._templateGallery.value||this.viewModel.activeFlowPage!=="gallery-page")return;let t=this._templateGallery.value;if(t.state!=="ready")return;if(this.viewModel.pasteTemplateIsValid||(this.viewModel.pasteTemplate=void 0),this.viewModel.pasteTemplate!==void 0){t.selectedItem||this._templateGallery.value?.select(this.viewModel.pasteTemplate);return}let i;for(let a of t.items){if("items"in a){if(a.items.length>0){i=a.items[0];break}continue}i=a;break}i&&t.select(i)})}_renderFlowCommandStart(t){return t?d`<slot name=home-header-actions-start slot=header-actions-start></slot>`:null}_renderCloseCommand(t){return d`${this.hideHeaderCloseButton?null:d`<calcite-action slot=header-actions-end icon=x text @click=${()=>{this.reset(),this.closed=!0,this.arcgisClose.emit()}}></calcite-action>`}${t?d`<slot name=header-actions-end slot=header-actions-end></slot>`:null}`}_renderClipboardCommand(t){return d`<calcite-action slot=header-actions-end icon=clipboard .hidden=${this.viewModel.hideViewClipboard} .text=${this._messages.clipboardTooltip??""} .id=${`arcgis-clipboard-show-${t}`} .disabled=${this.viewModel.updating} @click=${()=>{this.viewModel.activeFlowPage="clipboard"}}>${this.hideTooltips?null:d`<calcite-tooltip .referenceElement=${`arcgis-clipboard-show-${t}`} placement=bottom><span>${this._messages.clipboardTooltip}</span></calcite-tooltip>`}</calcite-action>`}_renderNoClipboardData(t){return b("no-data",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${i=>{i.preventDefault()}}>${this._renderClipboardCommand("no-data")}${this._renderCloseCommand(t)}<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=${N({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${R`<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(t){let i=this._messages.noPasteCommandsAvailable,a=this.availableCommands.at(0);return a?.commandDisabledReason&&(i=a.commandDisabledReason(this._messages,this._messages._lang),i||(i=this._messages.noPasteCommandsAvailable)),b("no-command",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${r=>{r.preventDefault()}}>${this._renderClipboardCommand("no-command")}${this._renderCloseCommand(t)}<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=${N({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${R`<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">${i}</p></div></calcite-panel></calcite-flow-item>`)}_renderAttributeCheckbox(t){return d`<calcite-label class="bold">${this._messages.attributesSubtitle}</calcite-label><calcite-label layout=inline><calcite-checkbox .disabled=${t} .checked=${this.viewModel.pasteWithAttributes} @calciteCheckboxChange=${i=>{this.viewModel.pasteWithAttributes=i.target.checked}}></calcite-checkbox>${this._messages.pasteWithAttributesLabel}</calcite-label>`}_renderFlowPasteAs(t){return t?b("paste-gallery",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.viewModel.activeFlowPage="commands-page")}}>${this._renderFlowCommandStart(!this.viewModel.hasPasteCommandsPage)}${this._renderClipboardCommand("paste-as")}${this._renderCloseCommand(t)}<calcite-panel>${this.hideFooter?null:d`<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||this.viewModel.hasTooManyPasteCreateFeatures} kind=brand appearance=solid .width=${this.viewModel.hideFooterCancelButton?"full":"half"} @click=${()=>{try{this.viewModel.lastPasteError=void 0,this.viewModel.getPasteCommandById(this.viewModel.activeCommand).runPasteCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:i=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:i.errorMessage,errorCode:i.errorCode})},onApply:async i=>{try{await this.beforeApply?.();let a={...i};return this.arcgisApplyPasteCommand.emit(a).defaultPrevented?{success:!1,errorCode:"cancelled"}:a.completionCallback?await a.completionCallback??{success:!0}:{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>`}${this.viewModel.hasTooManyPasteCreateFeatures?d`<div class="pad-start-end gallery-content"><calcite-notice open icon=exclamation-point kind=warning><div slot=message>${y(this._messages.tooManyCreateFeatures??"",{num:this.maximumFeatureCount})}</div></calcite-notice></div>`:null}<slot name=gallery-page-message></slot><div class="pad-start-end gallery-content"><div>${!this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?d`<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?d`<calcite-link slot=link @click=${()=>{this.viewModel.activeFlowPage="merge-page"}} title=${this._messages.seeMergeOptions??ie}>${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.viewModel.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>${this.viewModel.workingLayers.length>0?d`<arcgis-feature-templates-legacy .disabledItemFunction=${i=>!!(i.template&&me(i.template)&&i.template.type!=="feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} selection-mode=single @arcgisPropertyChange=${i=>{this._checkAndUpdateInitialPasteTemplate()}} @arcgisSelect=${i=>{this.viewModel.pasteTemplate=i.detail.item}} .view=${this.viewModel.view} .referenceElement=${this.referenceElement} ${D(this._templateGallery)}></arcgis-feature-templates-legacy>`:d`<calcite-notice open icon=exclamation-point kind=warning><div slot=message>${y(this._messages.noMatchingEditableLayers??"",{num:this.maximumFeatureCount})}</div></calcite-notice>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`):b("paste-gallery",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.viewModel.activeFlowPage="commands-page")}}>${this._renderFlowCommandStart(!this.viewModel.hasPasteCommandsPage)}</calcite-flow-item>`)}_renderFlowPasteMerge(t){if(!t)return b("paste-merge",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="gallery-page"}}></calcite-flow-item>`);let i=this.viewModel.selectedClipboardItemIndex===-1?null:this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex);return b("paste-merge",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="gallery-page"}}>${this._renderClipboardCommand("merge")}${this._renderCloseCommand(t)}<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,r)=>({id:r,item:a})).filter(a=>a.item.type==="feature"&&a.item.layer&&a.item.graphic).map(a=>d`<calcite-list-item .disabled=${this.viewModel.updating} .selected=${a.id===this.viewModel.selectedClipboardItemIndex} @calciteListItemSelect=${()=>{this.viewModel.selectedClipboardItemIndex=a.id}} @pointerenter=${r=>{this.viewModel.highlightSelectedGraphicOnMap(a.item),r.target.classList.add("hovering")}} @pointerleave=${r=>{r.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?d`<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?d`<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?d`<div></div>`:d`<div class="merge-feature-form"><arcgis-feature-form heading-level=5 .feature=${i.graphic} .formTemplate=${i.layer.formTemplate?i.layer.formTemplate:null} .layer=${i.layer} ${D(this._featureFormElement)}></arcgis-feature-form></div>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`)}_renderFlowPasteForm(t){if(!t)return b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}></calcite-flow-item>`);let i=(this.viewModel.bauFeatures?.length??0)>1&&!this.viewModel.bauHasTooManyFeatures&&!this.viewModel.bauHasTooManyComplexFeatures,a=this.viewModel.updating,r=this.viewModel.bauActiveFeatureIndex>0,o=this.viewModel.bauActiveFeatureIndex!==-1&&this.viewModel.bauActiveFeatureIndex<(this.viewModel.bauFeatures?.length??0)-1,l=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 b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}>${this._renderCloseCommand(t)}<calcite-panel>${this.hideFooter?null:d`<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||this.viewModel.bauHasTooManyFeatures||this.viewModel.bauHasTooManyComplexFeatures} kind=brand appearance=solid .width=${this.viewModel.hideFooterCancelButton?"full":"half"} @click=${async()=>{try{if(await ue(()=>!this.viewModel.bauFormUpdating),!this.viewModel.bauFormValid){this._bauForm.value?.goToFirstError();return}this._copyAcrossValidMultiFormFieldValues(),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 m={...p};return this.arcgisApplyPasteCommand.emit(m).defaultPrevented?{success:!1,errorCode:"cancelled"}:m.completionCallback?await m.completionCallback??{success:!0}:{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>`}${i?d`<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">${l}${h?d`<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=${!r||a||!i} @click=${()=>{this.viewModel.previousActiveFeature()}}></calcite-action><calcite-action slot=actions-end icon=chevron-right icon-flip-rtl scale=s .text=${this._messages.next??""} .disabled=${!o||a||!i} @click=${()=>{this.viewModel.nextActiveFeature()}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(i)}`:""}<div class=${te(this.viewModel.bauHasTooManyComplexFeatures||this.viewModel.bauHasTooManyFeatures?"hidden":void 0)}>${this._renderPasteFormBreadcrumb()}<arcgis-multi-feature-form edit-type=INSERT submit-has-been-attempted .view=${this.view} .referenceElement=${this.referenceElement} .hidden=${this.viewModel.bauHasTooManyComplexFeatures||this.viewModel.bauHasTooManyFeatures} .disabled=${this.viewModel.updating} .maximumFeatureCount=${this.maximumFeatureCount} .maximumFeatureCountWithComplexForms=${this.maximumFeatureCountWithComplexForms} .features=${this.viewModel.bauFeatures} .activeFeatureIndex=${this.viewModel.bauActiveFeatureIndex} @arcgisPropertyChange=${p=>{this._updateBauViewModelFields(p.target),p.detail.name==="status"&&p.target.status==="loaded"&&this._copyAcrossValidMultiFormFieldValues()}} @arcgisValueChange=${p=>{let m=0;for(let v of this.viewModel.bauFeatures?.toArray()??[]){let u=this.viewModel.bauOriginalGraphics[m];this.viewModel.formFeatureValuesChanged(u,p.target.getValues(v)),m++}}} ${D(this._bauForm)}></arcgis-multi-feature-form></div>${this.viewModel.bauHasTooManyComplexFeatures||this.viewModel.bauHasTooManyFeatures?d`<div class="pad-start-end gallery-content"><calcite-notice open icon=exclamation-point kind=warning><div slot=message>${this.viewModel.bauHasTooManyFeatures?y(this._messages.tooManyCreateFeatures??"",{num:this.maximumFeatureCount}):y(this._messages.tooManyCreateComplexFeatures??"",{num:this.maximumFeatureCountWithComplexForms})}</div></calcite-notice></div>`:null}</calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}_renderPasteFormBreadcrumb(){return d`<calcite-list .label=${this._messages.breadcrumb??""} selection-appearance=border scale=s selection-mode=none><calcite-list-item>${this.viewModel.bauActiveFeatureIndex===-1?d`<calcite-icon scale=s slot=content-start icon=group-form></calcite-icon>`:I(this.viewModel.bauActiveGraphic)?.isTable?d`<calcite-icon scale=s slot=content-start icon=table></calcite-icon>`:d`<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?d`<span slot=content>${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0})}</span>`:d`<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(t){if(!this._showFloatingChoice||!t)return d`<div></div>`;let i=!1;this.viewModel.bauInvalidFeatures.length>0&&(i=!0);let a=new Set(this.viewModel.bauInvalidFeatures);return d`<div class="choose-feature" slot=action-bar ${D(this._floatingChoiceContainer)}><calcite-list .label=${this._messages.choosefeature??""} selection-mode=single selection-appearance=border><calcite-list-item .disabled=${this.viewModel.updating} @calciteListItemSelect=${r=>{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((r,o)=>d`<calcite-list-item .disabled=${this.viewModel.updating} @pointerenter=${l=>{this.viewModel.highlightMultiFeatureFormFeature(r,o)}} @pointerleave=${l=>{this.viewModel.clearMultiFeatureFormHighlights()}} .selected=${this.viewModel.bauActiveFeatureIndex===o} @calciteListItemSelect=${l=>{let h=window.parseInt(l.currentTarget.value);this.viewModel.bauActiveFeatureIndex=h,this.viewModel.updateIndividualMultiFeatureFormHighlight(),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .value=${o}><arcgis-feature-title is-new-feature slot=content .graphic=${r} .layer=${r.layer}></arcgis-feature-title>${I(r)?.isTable?d`<calcite-icon scale=s icon=table slot=content-start class="feature-choose-listitem"></calcite-icon>`:d`<arcgis-feature-image slot=content-start class="feature-choose-listitem" .graphic=${r} width-in-pixels=16 height-in-pixels=16 use-true-shape .layer=${r.layer}></arcgis-feature-image>`}${a.has(r)&&i?d`<calcite-icon slot=content-end icon=exclamation-mark-triangle scale=s class="danger-icon-warning"></calcite-icon>`:""}</calcite-list-item>`)}</calcite-list></div>`}_renderClipboard(t){return t?b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeClipboard}}>${this._renderCloseCommand(t)}<calcite-panel><arcgis-clipboard .view=${this.view} .referenceElement=${this.referenceElement} .hideTooltips=${this.hideTooltips}></arcgis-clipboard></calcite-panel></calcite-flow-item>`):b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeClipboard}}></calcite-flow-item>`)}_renderPasteCommands(t){if(!t)return b("paste-commands",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="commands-page"}}>${this._renderFlowCommandStart(this.viewModel.hasPasteCommandsPage)}</calcite-flow-item>`);let i=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 b("paste-commands",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="commands-page"}}>${this._renderFlowCommandStart(this.viewModel.hasPasteCommandsPage)}${this._renderClipboardCommand("commands")}${this._renderCloseCommand(t)}<calcite-panel><calcite-list .label=${this._messages.clipboardContents??""} selection-mode=none selection-appearance=border><calcite-list-item .description=${i}></calcite-list-item></calcite-list><slot name=commands-page-message></slot><div class="pad-contents"><calcite-list .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border>${this.availableCommands.map(a=>d`<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()=>{await this._runPasteCommand(a)}}><calcite-icon slot=content-start .icon=${a.icon}></calcite-icon>${a.immediate?"":d`<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:d`<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?d`<calcite-scrim><calcite-loader scale=s .label=${this._messages.updating??""}></calcite-loader></calcite-scrim>`:""}render(){return this.activeFlowPage==="clipboard-empty-page"?d`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoClipboardData(this.activeFlowPage==="clipboard-empty-page")}</calcite-flow>`:this.activeFlowPage==="no-command-page"?d`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoCommandPage(this.activeFlowPage==="no-command-page")}</calcite-flow>`:d`<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==="form-page")}${this._renderClipboard(this.activeFlowPage==="clipboard")}</calcite-flow>`}};ae("arcgis-paste",K);return K},"core/accessorSupport/decorators","core/Accessor","Graphic","applications/Components/clipboard","layers/GraphicsLayer","core/Collection","applications/Components/templateUtils","applications/Components/applySetUtils","core/reactiveUtils","layers/support/fieldUtils","widgets/BatchAttributeForm/BatchAttributeFormViewModel","intl","applications/Components/editUtils",a,c,e,f,g,h,i,j)
2
+ import j from"./DHDFI523.js";import i from"./N5FPHCZP.js";import h from"./R3NYK6BO.js";import{a as b}from"./KJIN74HB.js";import g from"./Z2NISUUT.js";import f from"./U3F6ZTCK.js";import{a as se}from"./LCROB3R4.js";import e from"./5XXAORHS.js";import c from"./6JGH7O5T.js";import{g as re}from"./HXP4OSR5.js";import"./2YJNQPTJ.js";import a from"./E4P76U4X.js";import"./LYUZNKPJ.js";import{M as V,N as D,O as ee,P as te,Q as N,R as ie,U as ae,a as Y,b as d,c as R,x as E}from"./ECDIHLGQ.js";import"./3TTFCHAA.js";export default $arcgis.t(([{property:s,subclass:C},Z,B,{getApplicationClipboard:Me},Ce,j,{getFullTemplate:ce,isSharedTemplate:de,getCreationAttributes:Fe,isSharedTemplateOrMetadata:me},{createApplySetModifyItem:W,createApplySet:J,createFeatureStateProvider:Q,createApplySetAddItem:q,writeApplySetToService:_e},{whenOnce:ue,watch:X},{getRendererFields:pe,getFeatureEditFields:xe},Pe,{substitute:y},{createGraphicsMover:$e},,,,oe,,{g:U},,{a:le,b:ne}])=>{var Ae=Y`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{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))}.merge-feature-form{padding-left:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-right:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-bottom: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 Ee(e,t={}){if(e?.type==="subtype-group"){if(!e.subtypeField)return[];let i=t[e.subtypeField];if(!be(i))return[];let a=e.findSublayerForSubtypeCode(i);return a?a.renderer&&a.fieldsIndex?await pe(a.renderer,e.fieldsIndex):[]:[]}return e?e.renderer&&e.fieldsIndex?await pe(e.renderer,e.fieldsIndex):[]:[]}function Ie(e,t,i,a,r,o){let l={...a},h=ke(o),p=Se(o),m="";(o.type==="subtype-group"||o.type==="subtype-sublayer")&&(m=o.subtypeField??"");let v=o.objectIdField??"";return e.forEach(u=>{if(u.name!==v&&!h.includes(u.name)&&!p.includes(u.name)&&!r.includes(u.name)&&u.type!=="global-id"&&(m===""||m!==u.name)){let w=He(u,t);w.match&&w.targetField&&(l[w.targetField?.name]=i[u.name])}}),l}function ke(e){return e&&"relationships"in e?(e.relationships??[]).filter(t=>t.role==="origin").map(t=>t.keyField):[]}function Se(e){return e?.type==="subtype-sublayer"&&(e=e.parent),e?xe(e):[]}function Te(e,t){if(e.type===t.type)return t.type==="string"?e.length<=t.length:!0;switch(e.type){case"small-integer":return["integer","big-integer"].includes(t.type);case"integer":return t.type==="big-integer";case"single":return t.type==="double";default:return!1}}function He(e,t){let i={match:!1,sourceField:null,targetField:null};for(let a of t)if(Te(e,a)){let r=e.name.replace(/\s/gu,"").toLowerCase();if(a.name.replace(/\s/gu,"").toLowerCase()===r)return i.match=!0,i.sourceField=e,i.targetField=a,i}return i}async function ge(e,t,i,a){let r=!0,o={hasAsyncArcadeExpressions:!1},l=e.items.filter(h=>h.type==="add");for(let h of l){let p=h.graphic.clone(),m=Oe(h.graphic,h.layer);if(!m){r=!1;continue}let v=!await Ge(t,h.graphic,m,i,o);if(o.hasAsyncArcadeExpressions&&l.length>a)return!1;let u=W({graphic:h.graphic,layer:h.layer,originalGraphic:p});if(e.push(u),!v)return!1}return r}function Oe(e,t){return t.type==="feature"||t.type==="subtype-sublayer"?t:t.findSublayerForFeature(e)||null}async function Ge(e,t,i,a,r){let o=i.formTemplate,l=i.fields.filter(w=>{let z=t.attributes[w.name],fe=z===null||z===""||z===void 0;return w.editable&&!w.nullable&&fe});if(!o)return l.length!==0;let h=new Set;we(o.elements??[],h);let p=new Set;if(ve(o.elements??[],p),h.size===0&&p.size===0)return l.length>0;let m=t.clone();m.layer=i,delete m.attributes[i.objectIdField],a.has(i)||a.set(i,new Pe({map:e.map,editType:"INSERT"}));let v=a.get(i);if(v.features=new j([m]),await ue(()=>(v.status==="loaded"||v.status==="failed")&&!v.updating),v.hasAsyncArcadeExpressions&&(r.hasAsyncArcadeExpressions=!0),v.status==="failed")return!0;let u=v.getValues(m)??{};if(i.objectIdField&&u[i.objectIdField]!==void 0){let{[i.objectIdField]:w,...z}=u;u=z}return Object.keys(u).forEach(w=>{i.fieldsIndex.has(w)&&(t.attributes[w]=ze(u[w],w,i.fieldsIndex))}),v.invalidFeatures.length>0}function ve(e,t){for(let i of e)i.type==="group"?ve(i.elements,t):i.type==="field"&&i.valueExpression&&t.add(i.fieldName)}function we(e,t){for(let i of e)i.type==="group"?we(i.elements,t):i.type==="field"&&i.requiredExpression&&t.add(i.fieldName)}function be(e){return typeof e=="number"}function Le(e){return typeof e=="number"&&window.isFinite(e)&&Math.floor(e)===e}function ze(e,t,i){if(e==null)return null;switch(i.get(t).type){case"big-integer":case"long":case"oid":case"integer":case"small-integer":return Le(e)?e:window.parseInt(e);case"single":case"double":return be(e)?e:window.parseFloat(e);case"global-id":case"guid":return e===""?null:e;case"date":break;case"date-only":case"time-only":case"timestamp-offset":return e===""?null:e;case"string":return e===""?null:e}return e}function Ve(e){return e&&"layer"in e?e.layer:void 0}function I(e){if(!e)return null;let t=Ve(e.origin)??e.layer??e?.sourceLayer??null;if(t&&t.type==="subtype-sublayer")return t.parent;switch(t?.type){case"csv":case"feature":case"geojson":case"ogc-feature":case"subtype-group":case"wfs":return t;default:return null}}var De=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,A=(e,t,i,a)=>{for(var r=a>1?void 0:a?Be(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&De(t,i,r),r},ye={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"},g=class extends Z{constructor(e){super(e)}get mustShowOnCommandPage(){return!0}get icon(){}get id(){return""}label(e,t){return""}description(e,t){return""}get commandEnabled(){return!1}commandDisabledReason(e,t){return""}get immediate(){return!1}async initiate(e,t){}async execute(){throw new Error("arcgis-paste: Paste command does not support execute")}async runPasteCommand(e,t,i){try{this.viewModel.applying=!0;let a=await this.prepareCopy(t);if(!a||a.items.length===0){this.viewModel.lastPasteError={errorCode:"noPasteItems",errorMessage:"No items to paste",localizedErrorMessage:"noPasteItemsError"},e.onPasteError(this.viewModel.lastPasteError);return}let r=a.items.length>this.viewModel.maximumFeatureCount||this.viewModel.alwaysShowFeatureForm||i?.showFeatureForm===!0||!await ge(a,this.viewModel.view,this.viewModel.formViewModelMap,this.viewModel.maximumFeatureCountWithComplexForms);if(this.viewModel.alwaysShowFeatureForm||r||i?.showFeatureForm===!0)this.viewModel.bauActiveFeatureIndex=0,this.viewModel.bauApplySet=a,this.viewModel.activeCommand=t,this.viewModel.bauOriginalGraphics=a.items.map(o=>o.type==="add"?{layer:o.layer,graphic:o.graphic}:null).filter(o=>o!==null),this.viewModel.bauFeatures=new j,this.viewModel.activeFlowPage="form-page",await new Promise(o=>{setTimeout(o,100)}),this.viewModel.bauFeatures=new j(this.viewModel.bauOriginalGraphics.map(o=>(o.graphic.layer=o.layer,o.graphic))),this.viewModel.updateIndividualMultiFeatureFormHighlight();else try{let o=await e.onApply({command:"paste",applySet:a});if(o.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(o,e.onPasteError)}catch(o){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:o.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{a?.featureState?.clearAll()}}finally{this.viewModel.applying=!1}}async prepareCopy(e){let t=e==="paste"||e==="paste-as"&&this.viewModel.pasteWithAttributes||e==="paste-merge"&&this.viewModel.pasteWithAttributes,i=t&&e==="paste-merge"?this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex):null,a=J();if(a.featureState=Q(this.viewModel.view),e==="paste-merge"){let r=this.viewModel.pasteTemplate?.template?await ce(this.viewModel.view,this.viewModel.pasteTemplate.template):null;if(!r)return null;let o=de(this.viewModel.pasteTemplate.template)?r.layer:this.viewModel.pasteTemplate.layer,l=await this.createMergedClipboardGeom(),h=await this.constructFeatureAttributesCopy(r,o,i),p=new B({geometry:l,attributes:h});this.removeGraphicIdentifierFields(p,o),a.push(q({graphic:p,layer:o}))}else if(e==="paste")for(let r of this.viewModel.clipboardFeatures){let o=r.graphic.clone();this.removeGraphicIdentifierFields(o,r.layer),a.push(q({graphic:o,layer:r.layer}))}else if(e==="paste-as"){let r=this.viewModel.pasteTemplate?.template?await ce(this.viewModel.view,this.viewModel.pasteTemplate.template):null;if(!r)return null;let o=de(r)?r.layer:this.viewModel.pasteTemplate.layer;for(let l of this.viewModel.clipboardFeatures){let h=await this.constructFeatureAttributesCopy(r,o,t?l:null),p=new B({geometry:l.graphic?.geometry?.clone()??null,attributes:h});this.removeGraphicIdentifierFields(p,o),a.push(q({graphic:p,layer:o}))}}return a}async constructFeatureAttributesCopy(e,t,i){let a=Fe(e,{});if(i){let r=i.layer?.fields;if(r){let o=t.fields,l=i.graphic.attributes??{},h=await Ee(t,a);a=Ie(r,o,l,a,h,t)}}return a}async createMergedClipboardGeom(){let e=this.viewModel.clipboardFeatures.map(t=>t.graphic?.geometry).filter(t=>t!=null).toArray();return e.length===0?null:e.length===1?e[0].clone():(await $arcgis.t(m=>m[0],"geometry/operators/unionOperator")).executeMany(e)??null}removeGraphicIdentifierFields(e,t){t.objectIdField&&delete e.attributes[t.objectIdField],t.globalIdField&&delete e.attributes[t.globalIdField]}};A([s()],g.prototype,"viewModel",2);A([s()],g.prototype,"mustShowOnCommandPage",1);A([s()],g.prototype,"icon",1);A([s()],g.prototype,"id",1);A([s()],g.prototype,"commandEnabled",1);A([s()],g.prototype,"commandDisabledReason",1);A([s()],g.prototype,"immediate",1);g=A([C("components.paste.commands.PasteCommand")],g);var je=Object.defineProperty,We=Object.getOwnPropertyDescriptor,T=(e,t,i,a)=>{for(var r=a>1?void 0:a?We(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&je(t,i,r),r},F=class extends g{get id(){return"paste-append"}get icon(){return"reshape-add-geometry"}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.viewModel.clipboardFeatures.length>0&&this.viewModel.selectedFeature!==void 0&&this.viewModel.layerPermissionsCheck.canUpdate(I(this.viewModel.selectedFeature))&&this.viewModel.selectedFeature?.geometry!==null&&(this.viewModel.selectedFeature?.geometry?.type==="multipoint"||this.viewModel.selectedFeature?.geometry?.type==="polyline"||this.viewModel.selectedFeature?.geometry?.type==="polygon")&&this.viewModel.clipboard.singleGeometryType===this.viewModel.selectedFeature?.geometry?.type}async initiate(e){let t=null;try{this.viewModel.applying=!0;let i=await this.prepareAppend();if(i.applySet&&(t=i.applySet),!i.success){this.viewModel.lastPasteError={errorCode:i.failReason,errorMessage:ye[i.failReason],localizedErrorMessage:i.failReason},e.onPasteError(this.viewModel.lastPasteError);return}let a=await e.onApply({command:"paste-append",applySet:i.applySet});if(a.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(a,e.onPasteError)}catch(i){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:i.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{this.viewModel.applying=!1,t&&(t.featureState?.clearAll(),t.featureState=null)}}async execute(){let e=await this.prepareAppend();if(!e.success)throw new Error(`arcgis-paste: Paste append failed. ${e.failReason}`);return{success:!0,userInputRequired:!1,applySet:e.applySet}}async prepareAppend(){let e=J();if(e.featureState=Q(this.viewModel.view),!this.viewModel.selectedFeature)return{success:!1,failReason:"noSelectedError"};let[t,i]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/unionOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.viewModel.selectedFeature.geometry,r=!1;for(let l of this.viewModel.clipboardFeatures){let h=l?.graphic?.geometry??null;if(!h)continue;if(a===null){a=l?.graphic?.geometry??null,a&&(a=a.clone(),r=!0);continue}let p=t.execute(a,h);i.execute(a,p)||(a=p,r=!0)}if(!r)return{success:!1,failReason:"noChangeError"};let o=this.viewModel.selectedFeature.clone();return o.geometry=a,e.push(W({graphic:o,layer:I(this.viewModel.selectedFeature),originalGraphic:this.viewModel.selectedFeature})),{success:!0,applySet:e}}description(e,t){return e.pasteAppendDesc}label(e,t){return e.pasteAppendTitle}};T([s()],F.prototype,"id",1);T([s()],F.prototype,"icon",1);T([s()],F.prototype,"immediate",1);T([s()],F.prototype,"mustShowOnCommandPage",1);T([s()],F.prototype,"commandEnabled",1);F=T([C("components.paste.commands.PasteAppendCommand")],F);var Re=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,H=(e,t,i,a)=>{for(var r=a>1?void 0:a?Ne(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&Re(t,i,r),r},_=class extends g{get id(){return"paste-subtract"}get icon(){return"reshape-subtract-geometry"}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.viewModel.clipboardFeatures.length>0&&this.viewModel.selectedFeature!==void 0&&this.viewModel.layerPermissionsCheck.canUpdate(I(this.viewModel.selectedFeature))&&this.viewModel.selectedFeature?.geometry!==null&&(this.viewModel.selectedFeature?.geometry?.type==="multipoint"||this.viewModel.selectedFeature?.geometry?.type==="polyline"||this.viewModel.selectedFeature?.geometry?.type==="polygon")&&(this.viewModel.clipboard.singleGeometryType===this.viewModel.selectedFeature?.geometry?.type||this.viewModel.clipboard.singleGeometryType==="polygon")}async prepareSubtract(){let e=J();if(e.featureState=Q(this.viewModel.view),!this.viewModel.selectedFeature)return{success:!1,failReason:"noSelectedError",applySet:e};let[t,i]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/differenceOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.viewModel.selectedFeature.geometry;if(!a)return{success:!1,failReason:"noGeometryError",applySet:e};let r=!1;for(let l of this.viewModel.clipboardFeatures){let h=l?.graphic?.geometry;if(!h)continue;let p=t.execute(a,h);if(!p)return{success:!1,failReason:"deletesGeometryError",applySet:e};i.execute(a,p)||(a=p,r=!0)}if(!r)return{success:!1,failReason:"noChangeError",applySet:e};let o=this.viewModel.selectedFeature.clone();return o.geometry=a,e.push(W({graphic:o,layer:I(this.viewModel.selectedFeature),originalGraphic:this.viewModel.selectedFeature})),{success:!0,applySet:e}}async execute(){let e=await this.prepareSubtract();if(!e.success)throw new Error(`arcgis-paste: Paste subtract failed. ${e.failReason}`);return{success:!0,userInputRequired:!1,applySet:e.applySet}}async initiate(e){let t=null;try{this.viewModel.applying=!0;let i=await this.prepareSubtract();if(i.applySet&&(t=i.applySet),!i.success){this.viewModel.lastPasteError={errorCode:i.failReason,errorMessage:ye[i.failReason],localizedErrorMessage:i.failReason},e.onPasteError(this.viewModel.lastPasteError);return}let a=await e.onApply({command:"paste-subtract",applySet:i.applySet});if(a.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(a,e.onPasteError)}catch(i){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:i.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{this.viewModel.applying=!1,t&&(t.featureState?.clearAll(),t.featureState=null)}}description(e,t){return e.pasteSubtractDesc}label(e,t){return e.pasteSubtractTitle}};H([s()],_.prototype,"id",1);H([s()],_.prototype,"icon",1);H([s()],_.prototype,"immediate",1);H([s()],_.prototype,"mustShowOnCommandPage",1);H([s()],_.prototype,"commandEnabled",1);_=H([C("components.paste.commands.PasteSubtractCommand")],_);var Ue=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,O=(e,t,i,a)=>{for(var r=a>1?void 0:a?qe(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&Ue(t,i,r),r},x=class extends g{get id(){return"paste-as"}get icon(){return"templates"}get immediate(){return!1}get mustShowOnCommandPage(){return!1}get commandEnabled(){return(this.viewModel.clipboardFeatures.length===1||this.viewModel.clipboardFeatures.length>0&&this.viewModel.pasteWithMultipleFeaturesEnabled)&&this.viewModel.clipboard.singleGeometryType!==void 0}async initiate(e){this.viewModel.activeFlowPage="gallery-page",this.viewModel.activeCommand="paste-as"}description(e,t){return e.pasteAsDesc}label(e,t){return e.pasteAsTitle}};O([s()],x.prototype,"id",1);O([s()],x.prototype,"icon",1);O([s()],x.prototype,"immediate",1);O([s()],x.prototype,"mustShowOnCommandPage",1);O([s()],x.prototype,"commandEnabled",1);x=O([C("components.paste.commands.PasteAsCommand")],x);var Xe=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,G=(e,t,i,a)=>{for(var r=a>1?void 0:a?Ke(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&Xe(t,i,r),r},P=class extends g{get id(){return"paste"}get icon(){return"duplicate"}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){let e=this.viewModel.clipboardFeatures.length===1,t=this.viewModel.clipboardFeatures.length>0&&this.viewModel.clipboardItemLayers.length===1&&this.viewModel.pasteWithMultipleFeaturesEnabled,i=this.viewModel.clipboardFeatures.length>0&&this.viewModel.pasteWithMultipleFeaturesEnabled&&this.viewModel.pasteWithMultipleLayersEnabled;return this.viewModel.clipboardFeatures.length>0&&this.viewModel.canCreateOnAllLayers&&(e||t||i)}async initiate(e,t){await this.runPasteCommand(e,"paste",t)}async execute(){let e=await this.prepareCopy("paste");if(!e||e.items.length===0)throw new Error("arcgis-paste: No items to paste");return e.items.length>this.viewModel.maximumFeatureCount||!await ge(e,this.viewModel.view,this.viewModel.formViewModelMap,this.viewModel.maximumFeatureCountWithComplexForms)?{success:!1,userInputRequired:!0}:{success:!0,userInputRequired:!1,applySet:e}}description(e,t){return e.pasteDesc}label(e,t){return e.pasteTitle}};G([s()],P.prototype,"id",1);G([s()],P.prototype,"icon",1);G([s()],P.prototype,"immediate",1);G([s()],P.prototype,"mustShowOnCommandPage",1);G([s()],P.prototype,"commandEnabled",1);P=G([C("components.paste.commands.PasteSetCommand")],P);var Ze=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,L=(e,t,i,a)=>{for(var r=a>1?void 0:a?Je(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&Ze(t,i,r),r},$=class extends g{get id(){return"paste-merge"}get icon(){return"merge"}get immediate(){return!1}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.viewModel.clipboardFeatures.length>1&&this.viewModel.clipboard.singleGeometryType!==void 0}async initiate(e){this.viewModel.activeFlowPage="gallery-page",this.viewModel.activeCommand="paste-merge";for(let t=0;t<this.viewModel.clipboard.items.length;t++)if(this.viewModel.clipboard.items.getItemAt(t).type==="feature"){this.viewModel.selectedClipboardItemIndex=t;break}}description(e,t){return e.pasteMergeDesc}label(e,t){return e.pasteMergeTitle}};L([s()],$.prototype,"id",1);L([s()],$.prototype,"icon",1);L([s()],$.prototype,"immediate",1);L([s()],$.prototype,"mustShowOnCommandPage",1);L([s()],$.prototype,"commandEnabled",1);$=L([C("components.paste.commands.PasteMergeCommand")],$);var Qe=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,k=(e,t,i,a)=>{for(var r=a>1?void 0:a?Ye(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&Qe(t,i,r),r},f=class extends g{constructor(e){super(e)}get id(){return this.customCommand.id}get icon(){return this.customCommand.icon}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.customCommand.commandEnabled(this.viewModel.clipboard,this.viewModel.selectedFeature)}async initiate(e){try{this.viewModel.applying=!0;let t=await e.onApply({command:this.id});if(t.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(t,e.onPasteError)}catch(t){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:t.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{this.viewModel.applying=!1}}description(e,t){return this.customCommand.description(e,t)}label(e,t){return this.customCommand.label(e,t)}};k([s()],f.prototype,"customCommand",2);k([s()],f.prototype,"id",1);k([s()],f.prototype,"icon",1);k([s()],f.prototype,"immediate",1);k([s()],f.prototype,"mustShowOnCommandPage",1);k([s()],f.prototype,"commandEnabled",1);f=k([C("components.paste.commands.PasteCustomCommand")],f);var et=Object.defineProperty,tt=Object.getOwnPropertyDescriptor,c=(e,t,i,a)=>{for(var r=a>1?void 0:a?tt(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&et(t,i,r),r};function he(e){return!me(e)||e.type==="feature"}var n=class extends Z{constructor(e){super(e),this.customPasteCommands=new j,this.bauInvalidFeatures=[],this.bauFormValid=!0,this.bauFormUpdating=!1,this.bauActiveFeatureIndex=-1,this.bauHasTooManyFeatures=!1,this.bauHasTooManyComplexFeatures=!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.hideTooltips=!1,this.hideFooter=!1,this.hideFooterCancelButton=!1,this.hideHeaderCloseButton=!1,this.hideViewClipboard=!1,this.hideErrorNotice=!1,this.highlightGroup="temporary",this._hoverHighlightHandle=null,this.maximumFeatureCount=200,this.maximumFeatureCountWithComplexForms=50,this.layerPermissionsCheck={canCreate:t=>t?!!t.effectiveCapabilities?.operations.supportsAdd:!1,canUpdate:t=>{if(!t)return!1;let i=t.effectiveCapabilities,a=!!i?.operations.supportsUpdate,r=!!i?.editing.supportsGeometryUpdate&&a;return!t.isTable&&!r?!1:a}},this.applying=!1}get bauActiveGraphic(){return this.bauActiveFeatureIndex===-1?void 0:this.bauFeatures?.getItemAt(this.bauActiveFeatureIndex)}get hasTooManyPasteCreateFeatures(){return this.clipboardFeatures.length>this.maximumFeatureCount&&["paste","paste-as"].includes(this.activeCommand??"")}get bauActiveLayer(){if(this.bauActiveFeatureIndex!==-1&&this.bauFeatures)return I(this.bauFeatures.getItemAt(this.bauActiveFeatureIndex))??void 0}get pasteTemplateIsValid(){return this.pasteTemplate?this.pasteTemplate.layer?!!this.workingLayers.includes(this.pasteTemplate.layer.type==="subtype-sublayer"?this.pasteTemplate.layer.parent:this.pasteTemplate.layer):!1:!0}get clipboardAndTemplateSupportAttributes(){if(this.clipboardFeatures.length===0||!this.pasteTemplate?.layer)return!1;let e=this.pasteTemplate.template;if(!he(e))return!1;for(let t of this.clipboardFeatures){let i=t.layer;if(!i)return!1;let a=i.type==="subtype-sublayer"?i.parent:i;if(a.type==="subtype-group"){let r=a.fieldsIndex.get(a.subtypeField).name,o=e.prototype?.[r];if(o==null||o!==t.graphic.attributes[r])return!1}}return!0}get hasClipboardItemMatchingTemplate(){let e=this.pasteTemplate?.layer;if(!e||this.clipboardFeatures.length===0)return!1;let t=this.pasteTemplate.template;if(!he(t))return!1;for(let i of this.clipboardFeatures){let a=i.layer;if(!a)return!1;let r=a.type==="subtype-sublayer"?a.parent:a;if(e===a){if(r.type==="subtype-group"){let o=r.fieldsIndex.get(r.subtypeField).name,l=t.prototype?.[o];if(l==null||l!==i.graphic.attributes[o])continue}return!0}}return!1}get activeFlowPage(){return this._activeFlowPage}set activeFlowPage(e){e==="clipboard"&&this.beforeClipboard===void 0?this.beforeClipboard=this.activeFlowPage:e!=="clipboard"&&(this.beforeClipboard=void 0),e==="form-page"&&this.beforeForm===void 0?this.beforeForm=this.activeFlowPage:e!=="form-page"&&(this.beforeForm=void 0),this._activeFlowPage=e,this.checkAndSuspendMove()}get updating(){return this.applying}formFeatureValuesChanged(e,t){if(!t)return;let i=e.graphic.clone();for(let r of Object.keys(t))i.attributes[r]=t[r];let a=W({graphic:i,originalGraphic:e.graphic.clone(),layer:e.layer});this.bauApplySet?.push(a)}highlightSelectedGraphicOnMap(e){if(this.clearHighlightSelectedGraphic(),!e.graphic?.geometry||!this.view)return;let t=new B({geometry:e.graphic.geometry,symbol:ne(e.graphic.geometry.type)});this.view.graphics.add(t),this._hoverHighlightHandle={remove:()=>{this.view.graphics.remove(t)}}}clearHighlightSelectedGraphic(){this._hoverHighlightHandle?.remove(),this._hoverHighlightHandle=null}updateIndividualMultiFeatureFormHighlight(){if(this.activeFlowPage!=="form-page"){this.clearIndividualFeatureFormHighlight();return}if(this.view)if(this.bauActiveGraphic&&this.bauActiveLayer){if(this.bauIndividualHighlight?.graphic!==this.bauActiveGraphic&&this.clearIndividualFeatureFormHighlight(),!this.bauIndividualHighlight){let e=U(this.view,this.bauActiveLayer);if(!e)return;this.bauIndividualHighlight={graphic:this.bauActiveGraphic,handle:e.highlight(this.bauActiveGraphic,{name:this.highlightGroup})}}}else this.clearIndividualFeatureFormHighlight()}clearIndividualFeatureFormHighlight(){this.bauIndividualHighlight?.handle?.remove(),this.bauIndividualHighlight=void 0}highlightMultiFeatureFormFeature(e,t){this.bauHighlight&&this.clearMultiFeatureFormHighlights();let i=this.view?U(this.view,e.layer):void 0;i&&(this.bauHighlight=i.highlight(e,{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 Ce({listMode:"hide"}),this.view.map?.layers.add(this.clipboardGraphicsLayer));let e=this.clipboard.items;this.clipboardGraphicsLayer.removeAll();let t=-1;for(let i of e){if(t++,i.type!=="feature"||!i.graphic.geometry)continue;let a=new B({geometry:i.graphic.geometry.clone(),attributes:{clipboardIdx:t},symbol:le(i.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 e=this.activeFlowPage==="form-page";this.clipboardGraphicsLayer&&(this.clipboardGraphicsLayer.visible=!e),this.clipboardMover&&(this.clipboardMover.suspended=e)}get clipboard(){return Me()}get clipboardFeatures(){return this.clipboard.items.filter(e=>e.type==="feature")}get hasPasteCommandsPage(){return this.availableCommands.length>1||!!this.availableCommands.at(0)?.mustShowOnCommandPage}_clearActiveCommand(){this.activeCommand=void 0,this.lastPasteError=void 0}resetHome(){let e=this.activeFlowPage;this.hasPasteCommandsPage?(e="commands-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.clipboard.items.length===0?(e="clipboard-empty-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.availableCommands.length===0?(e="no-command-page",this._clearActiveCommand()):this.availableCommands[0].commandEnabled?(e="gallery-page",this.activeCommand=this.availableCommands[0].id,this.lastPasteError=void 0):(e="no-command-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1),this.activeFlowPage==="clipboard"&&this.hideViewClipboard?(this.activeFlowPage=e,this.beforeClipboard=void 0):this.activeFlowPage==="clipboard"&&!this.hideViewClipboard?this.beforeClipboard=e:(this.activeFlowPage=e,this.beforeClipboard=void 0),this.resetFormPage()}get workingLayers(){return(this.view?.map?.allLayers?.toArray()??[]).filter(e=>e.type==="feature"||e.type==="subtype-group").filter(e=>{let t=this.clipboard.singleGeometryType;return this.activeCommand==="paste-merge"&&this.clipboard.singleGeometryType==="point"&&(t="multipoint"),!(e.geometryType!==t||!this.layerPermissionsCheck.canCreate(e))})}get clipboardItemLayers(){let e=new Set;for(let t of this.clipboard.items)t.layer&&e.add(t.layer.type==="subtype-sublayer"?t.layer.parent:t.layer);return[...e]}get canCreateOnAllLayers(){if(this.clipboardItemLayers.length===0)return!1;for(let e of this.clipboardItemLayers)if(!e||!this.layerPermissionsCheck.canCreate(e))return!1;return!0}get availableCommands(){let e=new Set(this.supportedCommands);return this.allCommands.filter(t=>e.has(t.id))}get allCommands(){let e=[];e.push(...[P,x,$,F,_].map(t=>new t({viewModel:this})));for(let t of this.customPasteCommands)e.push(new f({viewModel:this,customCommand:t}));return e}get pasteCommandsState(){return this.allCommands.map(e=>({id:e.id,disabled:!e.commandEnabled,available:this.supportedCommands.includes(e.id)}))}nextActiveFeature(){this.bauActiveFeatureIndex++,this.updateIndividualMultiFeatureFormHighlight()}previousActiveFeature(){this.bauActiveFeatureIndex--,this.updateIndividualMultiFeatureFormHighlight()}resetFormPage(){this.bauApplySet?.featureState?.clearAll(),this.bauApplySet=void 0,this.clearIndividualFeatureFormHighlight(),this.clearMultiFeatureFormHighlights(),this.bauFeatures=void 0,this.bauOriginalGraphics=[]}getPasteCommandById(e){return this.allCommands.find(t=>t.id===e)}async runPasteFormCommand(e){try{this.applying=!0;let t=this.bauApplySet,i=await e.onApply({command:this.activeCommand,applySet:t});if(i.success){this.resetHome(),this.closeOnApply&&e.closeAfterApply();return}this.handleApplyError(i,e.onPasteError)}catch(t){this.lastPasteError={errorCode:"unexpectedError",errorMessage:t.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.lastPasteError);return}finally{this.applying=!1}}handleApplyError(e,t){e.success||e.errorCode!=="cancelled"&&(this.lastPasteError={errorCode:e.errorCode??"unexpectedError",errorMessage:e.errorMessage??"",localizedErrorMessage:e.errorMessage?void 0:"unexpectedError"},t(this.lastPasteError))}async writeChanges(e){return await _e(e,this.view)}};c([s()],n.prototype,"customPasteCommands",2);c([s()],n.prototype,"bauInvalidFeatures",2);c([s()],n.prototype,"bauFormValid",2);c([s()],n.prototype,"bauFormUpdating",2);c([s()],n.prototype,"bauActiveFeatureIndex",2);c([s()],n.prototype,"bauHasTooManyFeatures",2);c([s()],n.prototype,"bauHasTooManyComplexFeatures",2);c([s()],n.prototype,"bauActiveGraphic",1);c([s()],n.prototype,"hasTooManyPasteCreateFeatures",1);c([s()],n.prototype,"bauActiveLayer",1);c([s()],n.prototype,"bauFeatures",2);c([s()],n.prototype,"bauApplySet",2);c([s()],n.prototype,"bauOriginalGraphics",2);c([s()],n.prototype,"formViewModelMap",2);c([s()],n.prototype,"bauHighlight",2);c([s()],n.prototype,"bauIndividualHighlight",2);c([s()],n.prototype,"view",2);c([s()],n.prototype,"supportedCommands",2);c([s()],n.prototype,"selectedFeature",2);c([s()],n.prototype,"pasteWithMultipleLayersEnabled",2);c([s()],n.prototype,"pasteWithMultipleFeaturesEnabled",2);c([s()],n.prototype,"alwaysShowFeatureForm",2);c([s()],n.prototype,"pasteTemplate",2);c([s()],n.prototype,"pasteTemplateIsValid",1);c([s()],n.prototype,"selectedClipboardItemIndex",2);c([s()],n.prototype,"clipboardAndTemplateSupportAttributes",1);c([s()],n.prototype,"hasClipboardItemMatchingTemplate",1);c([s()],n.prototype,"pasteWithAttributes",2);c([s()],n.prototype,"closeOnApply",2);c([s()],n.prototype,"currentPasteOperation",2);c([s()],n.prototype,"activeFlowPage",1);c([s()],n.prototype,"_activeFlowPage",2);c([s()],n.prototype,"beforeClipboard",2);c([s()],n.prototype,"beforeForm",2);c([s()],n.prototype,"showClipboardItems",2);c([s()],n.prototype,"updating",1);c([s()],n.prototype,"hideTooltips",2);c([s()],n.prototype,"hideFooter",2);c([s()],n.prototype,"hideFooterCancelButton",2);c([s()],n.prototype,"hideHeaderCloseButton",2);c([s()],n.prototype,"hideViewClipboard",2);c([s()],n.prototype,"hideErrorNotice",2);c([s()],n.prototype,"clipboardGraphicsLayer",2);c([s()],n.prototype,"clipboardMover",2);c([s()],n.prototype,"highlightGroup",2);c([s()],n.prototype,"clipboard",1);c([s()],n.prototype,"clipboardFeatures",1);c([s()],n.prototype,"hasPasteCommandsPage",1);c([s()],n.prototype,"activeCommand",2);c([s()],n.prototype,"maximumFeatureCount",2);c([s()],n.prototype,"maximumFeatureCountWithComplexForms",2);c([s()],n.prototype,"workingLayers",1);c([s()],n.prototype,"layerPermissionsCheck",2);c([s()],n.prototype,"clipboardItemLayers",1);c([s()],n.prototype,"canCreateOnAllLayers",1);c([s()],n.prototype,"applying",2);c([s()],n.prototype,"lastPasteError",2);c([s()],n.prototype,"availableCommands",1);c([s()],n.prototype,"allCommands",1);c([s()],n.prototype,"pasteCommandsState",1);n=c([C("components.paste.PasteViewModel")],n);var it=Object.defineProperty,at=Object.getOwnPropertyDescriptor,S=(e,t,i,a)=>{for(var r=a>1?void 0:a?at(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(r=(a?l(t,i,r):l(r))||r);return a&&r&&it(t,i,r),r},M=class extends Z{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=$e({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 e of this.graphicsLayer.graphics)this.clipboard.items.getItemAt(e.attributes.clipboardIdx).graphic.geometry=e.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(e){e!==this._suspended&&(e?(this._destroyMover(),this.stateChanged?.("suspended")):(this.start(),this.stateChanged?.("suspended")),this._suspended=e)}_destroyMover(){this._mover?.destroy(),this._mover=null}};S([s()],M.prototype,"view",2);S([s()],M.prototype,"continuous",2);S([s()],M.prototype,"clipboard",2);S([s()],M.prototype,"graphicsLayer",2);S([s()],M.prototype,"suspended",1);S([s()],M.prototype,"_suspended",2);M=S([C("components.paste.ClipboardMove")],M);var rt=oe(n),K=class extends ee{constructor(){super(),this._featureFormElement=V(),this._floatingChoiceContainer=V(),this._bauForm=V(),this._templateGallery=V(),this._messages=se(),this.viewModel=rt(this),this.hasPasteCommandsPage=this.viewModel.hasPasteCommandsPage,this.activeCommand=this.viewModel.activeCommand,this.availableCommands=this.viewModel.availableCommands,this._showFloatingChoice=!1,this.activeFlowPage=this.viewModel.activeFlowPage,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.hideFooter=this.viewModel.hideFooter,this.hideHeaderCloseButton=this.viewModel.hideHeaderCloseButton,this.hideTooltips=this.viewModel.hideTooltips,this.hideViewClipboard=this.viewModel.hideViewClipboard,this.maximumFeatureCount=this.viewModel.maximumFeatureCount,this.maximumFeatureCountWithComplexForms=this.viewModel.maximumFeatureCountWithComplexForms,this.layerPermissionsCheck=this.viewModel.layerPermissionsCheck,this.pasteCommandsState=this.viewModel.pasteCommandsState,this.arcgisApplyPasteCommand=E(),this.arcgisApplyPasteError=E(),this.arcgisBeforeClipboardMove=E(),this.arcgisClipboardMoveStateChanged=E(),this.arcgisClose=E(),this.arcgisPropertyChange=re()("pasteCommandsState","activeFlowPage"),this.arcgisReady=E(),this.listenOn(window,"click",this._handleClickAway),this.listenOn(window,"keydown",this._handleKeyDown)}static{this.properties={hasPasteCommandsPage:16,activeCommand:16,availableCommands:16,_showFloatingChoice:16,activeFlowPage:32,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,hideFooter:5,hideHeaderCloseButton:5,hideTooltips:5,hideViewClipboard:5,maximumFeatureCount:9,maximumFeatureCountWithComplexForms:9,layerPermissionsCheck:0,pasteCommandsState:0}}static{this.styles=Ae}get supportedCommands(){return this.viewModel.supportedCommands}set supportedCommands(t){if(!Array.isArray(t)){this.viewModel.supportedCommands=t.split(",");return}this.viewModel.supportedCommands=t.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 executePasteCommand(t,i){let a=this.viewModel.getPasteCommandById(t);if(!a)throw new Error("arcgis-paste: Paste command not found");if(!a.commandEnabled)throw new Error("arcgis-paste: Paste command is not enabled");if(!i?.silent){if(!this.availableCommands.includes(a))throw new Error("arcgis-paste: Paste command is not available");return this.viewModel.resetHome(),await this._runPasteCommand(a,i),{userInputRequired:!1,success:!0}}return await a.execute()}async registerPasteCommand(t){this.viewModel.customPasteCommands.add(t)}async reset(){this.viewModel.activeFlowPage==="clipboard"&&(this.viewModel.activeFlowPage=this.viewModel.beforeClipboard),this.viewModel.resetHome()}async showClipboardItems(t){this.viewModel.showClipboardItems=t,this.viewModel.updateClipboardGraphicsLayer()}async startMoveClipboard(t){if(!this.viewModel.showClipboardItems)throw new Error("arcgis-paste: 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 M({view:this.view,continuous:t,clipboard:this.clipboard,graphicsLayer:this.viewModel.clipboardGraphicsLayer,stateChanged:i=>{i==="contents-moved"&&this.viewModel.updateClipboardGraphicsLayer(),this.arcgisClipboardMoveStateChanged.emit({change:i})}}),this.viewModel.clipboardMover.start())}async writeChanges(t){return await this.viewModel.writeChanges(t)}updated(){this._featureFormElement.value&&(this._featureFormElement.value.hideReadOnlyNotice=!0,this._featureFormElement.value.disabled=!0),this._checkAndUpdateInitialPasteTemplate()}loaded(){this.manager.onLifecycle(()=>[this.viewModel.clipboard.items.on("change",()=>{this.viewModel.updateClipboardGraphicsLayer(),this.activeFlowPage==="form-page"&&this.viewModel.resetHome()}),X(()=>this.clipboard.version,()=>{this.viewModel.resetHome(),this.viewModel.updateClipboardGraphicsLayer(),this.viewModel.clipboardMover?.clipboardContentsChanged()}),X(()=>this.closed,()=>{this.closed&&this.viewModel.formViewModelMap.clear(),this.viewModel.updateClipboardGraphicsLayer()}),X(()=>[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(t){this.viewModel.bauActiveFeatureIndex=t.activeFeatureIndex,this.viewModel.bauInvalidFeatures=t.invalidFeatures,this.viewModel.bauFormValid=t.valid,this.viewModel.bauFormUpdating=t.updating,this.viewModel.bauHasTooManyComplexFeatures=t.hasTooManyComplexFeatures,this.viewModel.bauHasTooManyFeatures=t.hasTooManyFeatures}_copyAcrossValidMultiFormFieldValues(){try{if(this._bauForm.value?.status!=="loaded")return;let t=this._bauForm.value,i=0;for(let a of this.viewModel.bauFeatures?.toArray()??[]){let r=this.viewModel.bauOriginalGraphics[i];this.viewModel.formFeatureValuesChanged(r,t.getValues(a)),i++}}catch{}}_handleClickAway(t){!this._showFloatingChoice||!this._floatingChoiceContainer.value||t.composedPath().find(i=>i===this._floatingChoiceContainer.value)||(this._showFloatingChoice=!1)}_handleKeyDown(t){!this._showFloatingChoice||!this._floatingChoiceContainer.value||t.composedPath().find(i=>i===this._floatingChoiceContainer.value)||(this._showFloatingChoice=!1)}async _runPasteCommand(t,i){try{this.viewModel.lastPasteError=void 0,await t.initiate({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:a=>{this.arcgisApplyPasteError.emit({command:t.id,errorMessage:a.errorMessage,errorCode:a.errorCode})},onApply:async a=>{try{await this.beforeApply?.();let r={...a};return this.arcgisApplyPasteCommand.emit(r).defaultPrevented?{success:!1,errorCode:"cancelled"}:r.completionCallback?await r.completionCallback??{success:!0}:{success:!0}}catch{return{success:!1}}}},i)}catch{}}_checkAndUpdateInitialPasteTemplate(){requestAnimationFrame(()=>{if(!this._templateGallery.value||this.viewModel.activeFlowPage!=="gallery-page")return;let t=this._templateGallery.value;if(t.state!=="ready")return;if(this.viewModel.pasteTemplateIsValid||(this.viewModel.pasteTemplate=void 0),this.viewModel.pasteTemplate!==void 0){t.selectedItem||this._templateGallery.value?.select(this.viewModel.pasteTemplate);return}let i;for(let a of t.items){if("items"in a){if(a.items.length>0){i=a.items[0];break}continue}i=a;break}i&&t.select(i)})}_renderFlowCommandStart(t){return t?d`<slot name=home-header-actions-start slot=header-actions-start></slot>`:null}_renderCloseCommand(t){return d`${this.hideHeaderCloseButton?null:d`<calcite-action slot=header-actions-end icon=x text @click=${()=>{this.reset(),this.closed=!0,this.arcgisClose.emit()}}></calcite-action>`}${t?d`<slot name=header-actions-end slot=header-actions-end></slot>`:null}`}_renderClipboardCommand(t){return d`<calcite-action slot=header-actions-end icon=clipboard .hidden=${this.viewModel.hideViewClipboard} .text=${this._messages.clipboardTooltip??""} .id=${`arcgis-clipboard-show-${t}`} .disabled=${this.viewModel.updating} @click=${()=>{this.viewModel.activeFlowPage="clipboard"}}>${this.hideTooltips?null:d`<calcite-tooltip .referenceElement=${`arcgis-clipboard-show-${t}`} placement=bottom><span>${this._messages.clipboardTooltip}</span></calcite-tooltip>`}</calcite-action>`}_renderNoClipboardData(t){return b("no-data",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${i=>{i.preventDefault()}}>${this._renderClipboardCommand("no-data")}${this._renderCloseCommand(t)}<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=${N({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${R`<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(t){let i=this._messages.noPasteCommandsAvailable,a=this.availableCommands.at(0);return a?.commandDisabledReason&&(i=a.commandDisabledReason(this._messages,this._messages._lang),i||(i=this._messages.noPasteCommandsAvailable)),b("no-command",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${r=>{r.preventDefault()}}>${this._renderClipboardCommand("no-command")}${this._renderCloseCommand(t)}<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=${N({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${R`<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">${i}</p></div></calcite-panel></calcite-flow-item>`)}_renderAttributeCheckbox(t){return d`<calcite-label class="bold">${this._messages.attributesSubtitle}</calcite-label><calcite-label layout=inline><calcite-checkbox .disabled=${t} .checked=${this.viewModel.pasteWithAttributes} @calciteCheckboxChange=${i=>{this.viewModel.pasteWithAttributes=i.target.checked}}></calcite-checkbox>${this._messages.pasteWithAttributesLabel}</calcite-label>`}_renderFlowPasteAs(t){return t?b("paste-gallery",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.viewModel.activeFlowPage="commands-page")}}>${this._renderFlowCommandStart(!this.viewModel.hasPasteCommandsPage)}${this._renderClipboardCommand("paste-as")}${this._renderCloseCommand(t)}<calcite-panel>${this.hideFooter?null:d`<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||this.viewModel.hasTooManyPasteCreateFeatures} kind=brand appearance=solid .width=${this.viewModel.hideFooterCancelButton?"full":"half"} @click=${()=>{try{this.viewModel.lastPasteError=void 0,this.viewModel.getPasteCommandById(this.viewModel.activeCommand).runPasteCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:i=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:i.errorMessage,errorCode:i.errorCode})},onApply:async i=>{try{await this.beforeApply?.();let a={...i};return this.arcgisApplyPasteCommand.emit(a).defaultPrevented?{success:!1,errorCode:"cancelled"}:a.completionCallback?await a.completionCallback??{success:!0}:{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>`}${this.viewModel.hasTooManyPasteCreateFeatures?d`<div class="pad-start-end gallery-content"><calcite-notice open icon=exclamation-point kind=warning><div slot=message>${y(this._messages.tooManyCreateFeatures??"",{num:this.maximumFeatureCount})}</div></calcite-notice></div>`:null}<slot name=gallery-page-message></slot><div class="pad-start-end gallery-content"><div>${!this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?d`<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?d`<calcite-link slot=link @click=${()=>{this.viewModel.activeFlowPage="merge-page"}} title=${this._messages.seeMergeOptions??ie}>${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.viewModel.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>${this.viewModel.workingLayers.length>0?d`<arcgis-feature-templates-legacy .disabledItemFunction=${i=>!!(i.template&&me(i.template)&&i.template.type!=="feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} selection-mode=single @arcgisPropertyChange=${i=>{this._checkAndUpdateInitialPasteTemplate()}} @arcgisSelect=${i=>{this.viewModel.pasteTemplate=i.detail.item}} .view=${this.viewModel.view} .referenceElement=${this.referenceElement} ${D(this._templateGallery)}></arcgis-feature-templates-legacy>`:d`<calcite-notice open icon=exclamation-point kind=warning><div slot=message>${y(this._messages.noMatchingEditableLayers??"",{num:this.maximumFeatureCount})}</div></calcite-notice>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`):b("paste-gallery",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.viewModel.activeFlowPage="commands-page")}}>${this._renderFlowCommandStart(!this.viewModel.hasPasteCommandsPage)}</calcite-flow-item>`)}_renderFlowPasteMerge(t){if(!t)return b("paste-merge",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="gallery-page"}}></calcite-flow-item>`);let i=this.viewModel.selectedClipboardItemIndex===-1?null:this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex);return b("paste-merge",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="gallery-page"}}>${this._renderClipboardCommand("merge")}${this._renderCloseCommand(t)}<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,r)=>({id:r,item:a})).filter(a=>a.item.type==="feature"&&a.item.layer&&a.item.graphic).map(a=>d`<calcite-list-item .disabled=${this.viewModel.updating} .selected=${a.id===this.viewModel.selectedClipboardItemIndex} @calciteListItemSelect=${()=>{this.viewModel.selectedClipboardItemIndex=a.id}} @pointerenter=${r=>{this.viewModel.highlightSelectedGraphicOnMap(a.item),r.target.classList.add("hovering")}} @pointerleave=${r=>{r.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?d`<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?d`<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?d`<div></div>`:d`<div class="merge-feature-form"><arcgis-feature-form heading-level=5 .feature=${i.graphic} .formTemplate=${i.layer.formTemplate?i.layer.formTemplate:null} .layer=${i.layer} ${D(this._featureFormElement)}></arcgis-feature-form></div>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`)}_renderFlowPasteForm(t){if(!t)return b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}></calcite-flow-item>`);let i=(this.viewModel.bauFeatures?.length??0)>1&&!this.viewModel.bauHasTooManyFeatures&&!this.viewModel.bauHasTooManyComplexFeatures,a=this.viewModel.updating,r=this.viewModel.bauActiveFeatureIndex>0,o=this.viewModel.bauActiveFeatureIndex!==-1&&this.viewModel.bauActiveFeatureIndex<(this.viewModel.bauFeatures?.length??0)-1,l=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 b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}>${this._renderCloseCommand(t)}<calcite-panel>${this.hideFooter?null:d`<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||this.viewModel.bauHasTooManyFeatures||this.viewModel.bauHasTooManyComplexFeatures} kind=brand appearance=solid .width=${this.viewModel.hideFooterCancelButton?"full":"half"} @click=${async()=>{try{if(await ue(()=>!this.viewModel.bauFormUpdating),!this.viewModel.bauFormValid){this._bauForm.value?.goToFirstError();return}this._copyAcrossValidMultiFormFieldValues(),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 m={...p};return this.arcgisApplyPasteCommand.emit(m).defaultPrevented?{success:!1,errorCode:"cancelled"}:m.completionCallback?await m.completionCallback??{success:!0}:{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>`}${i?d`<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">${l}${h?d`<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=${!r||a||!i} @click=${()=>{this.viewModel.previousActiveFeature()}}></calcite-action><calcite-action slot=actions-end icon=chevron-right icon-flip-rtl scale=s .text=${this._messages.next??""} .disabled=${!o||a||!i} @click=${()=>{this.viewModel.nextActiveFeature()}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(i)}`:""}<div class=${te(this.viewModel.bauHasTooManyComplexFeatures||this.viewModel.bauHasTooManyFeatures?"hidden":void 0)}>${this._renderPasteFormBreadcrumb()}<arcgis-multi-feature-form edit-type=INSERT submit-has-been-attempted .view=${this.view} .referenceElement=${this.referenceElement} .hidden=${this.viewModel.bauHasTooManyComplexFeatures||this.viewModel.bauHasTooManyFeatures} .disabled=${this.viewModel.updating} .maximumFeatureCount=${this.maximumFeatureCount} .maximumFeatureCountWithComplexForms=${this.maximumFeatureCountWithComplexForms} .features=${this.viewModel.bauFeatures} .activeFeatureIndex=${this.viewModel.bauActiveFeatureIndex} @arcgisPropertyChange=${p=>{this._updateBauViewModelFields(p.target),p.detail.name==="status"&&p.target.status==="loaded"&&this._copyAcrossValidMultiFormFieldValues()}} @arcgisValueChange=${p=>{let m=0;for(let v of this.viewModel.bauFeatures?.toArray()??[]){let u=this.viewModel.bauOriginalGraphics[m];this.viewModel.formFeatureValuesChanged(u,p.target.getValues(v)),m++}}} ${D(this._bauForm)}></arcgis-multi-feature-form></div>${this.viewModel.bauHasTooManyComplexFeatures||this.viewModel.bauHasTooManyFeatures?d`<div class="pad-start-end gallery-content"><calcite-notice open icon=exclamation-point kind=warning><div slot=message>${this.viewModel.bauHasTooManyFeatures?y(this._messages.tooManyCreateFeatures??"",{num:this.maximumFeatureCount}):y(this._messages.tooManyCreateComplexFeatures??"",{num:this.maximumFeatureCountWithComplexForms})}</div></calcite-notice></div>`:null}</calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}_renderPasteFormBreadcrumb(){return d`<calcite-list .label=${this._messages.breadcrumb??""} selection-appearance=border scale=s selection-mode=none><calcite-list-item>${this.viewModel.bauActiveFeatureIndex===-1?d`<calcite-icon scale=s slot=content-start icon=group-form></calcite-icon>`:I(this.viewModel.bauActiveGraphic)?.isTable?d`<calcite-icon scale=s slot=content-start icon=table></calcite-icon>`:d`<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?d`<span slot=content>${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0})}</span>`:d`<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(t){if(!this._showFloatingChoice||!t)return d`<div></div>`;let i=!1;this.viewModel.bauInvalidFeatures.length>0&&(i=!0);let a=new Set(this.viewModel.bauInvalidFeatures);return d`<div class="choose-feature" slot=action-bar ${D(this._floatingChoiceContainer)}><calcite-list .label=${this._messages.choosefeature??""} selection-mode=single selection-appearance=border><calcite-list-item .disabled=${this.viewModel.updating} @calciteListItemSelect=${r=>{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((r,o)=>d`<calcite-list-item .disabled=${this.viewModel.updating} @pointerenter=${l=>{this.viewModel.highlightMultiFeatureFormFeature(r,o)}} @pointerleave=${l=>{this.viewModel.clearMultiFeatureFormHighlights()}} .selected=${this.viewModel.bauActiveFeatureIndex===o} @calciteListItemSelect=${l=>{let h=window.parseInt(l.currentTarget.value);this.viewModel.bauActiveFeatureIndex=h,this.viewModel.updateIndividualMultiFeatureFormHighlight(),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .value=${o}><arcgis-feature-title is-new-feature slot=content .graphic=${r} .layer=${r.layer}></arcgis-feature-title>${I(r)?.isTable?d`<calcite-icon scale=s icon=table slot=content-start class="feature-choose-listitem"></calcite-icon>`:d`<arcgis-feature-image slot=content-start class="feature-choose-listitem" .graphic=${r} width-in-pixels=16 height-in-pixels=16 use-true-shape .layer=${r.layer}></arcgis-feature-image>`}${a.has(r)&&i?d`<calcite-icon slot=content-end icon=exclamation-mark-triangle scale=s class="danger-icon-warning"></calcite-icon>`:""}</calcite-list-item>`)}</calcite-list></div>`}_renderClipboard(t){return t?b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeClipboard}}>${this._renderCloseCommand(t)}<calcite-panel><arcgis-clipboard .view=${this.view} .referenceElement=${this.referenceElement} .hideTooltips=${this.hideTooltips}></arcgis-clipboard></calcite-panel></calcite-flow-item>`):b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeClipboard}}></calcite-flow-item>`)}_renderPasteCommands(t){if(!t)return b("paste-commands",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="commands-page"}}>${this._renderFlowCommandStart(this.viewModel.hasPasteCommandsPage)}</calcite-flow-item>`);let i=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 b("paste-commands",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="commands-page"}}>${this._renderFlowCommandStart(this.viewModel.hasPasteCommandsPage)}${this._renderClipboardCommand("commands")}${this._renderCloseCommand(t)}<calcite-panel><calcite-list .label=${this._messages.clipboardContents??""} selection-mode=none selection-appearance=border><calcite-list-item .description=${i}></calcite-list-item></calcite-list><slot name=commands-page-message></slot><div class="pad-contents"><calcite-list .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border>${this.availableCommands.map(a=>d`<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()=>{await this._runPasteCommand(a)}}><calcite-icon slot=content-start .icon=${a.icon}></calcite-icon>${a.immediate?"":d`<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:d`<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?d`<calcite-scrim><calcite-loader scale=s .label=${this._messages.updating??""}></calcite-loader></calcite-scrim>`:""}render(){return this.activeFlowPage==="clipboard-empty-page"?d`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoClipboardData(this.activeFlowPage==="clipboard-empty-page")}</calcite-flow>`:this.activeFlowPage==="no-command-page"?d`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoCommandPage(this.activeFlowPage==="no-command-page")}</calcite-flow>`:d`<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==="form-page")}${this._renderClipboard(this.activeFlowPage==="clipboard")}</calcite-flow>`}};ae("arcgis-paste",K);return K},"core/accessorSupport/decorators","core/Accessor","Graphic","applications/Components/clipboard","layers/GraphicsLayer","core/Collection","applications/Components/templateUtils","applications/Components/applySetUtils","core/reactiveUtils","layers/support/fieldUtils","widgets/BatchAttributeForm/BatchAttributeFormViewModel","intl","applications/Components/editUtils",a,c,e,f,g,h,i,j)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as p}from"./6NU2H4EN.js";import{i as m}from"./S4I3X6AX.js";import{a as n}from"./UFFMJFKS.js";import"./SDI7N4ZV.js";import"./JAPT4J53.js";import"./GDJHZNXO.js";import{O as o,U as r,a as l,b as e,x as c}from"./3IN2IMDT.js";import"./3TTFCHAA.js";var y=l`:host{width:100%}.root{--calcite-label-margin-bottom: 0;width:100%}.root[layout=inline-space-between] calcite-select{width:var(--arcgis-unit-select-inline-size, 180px)}`,s=class extends o{constructor(){super(...arguments),this.messages=n({}),this.options=[],this.layout="block",this.arcgisUnitSelectChange=c()}static{this.properties={options:[1,{type:Array}],selectLabel:1,value:0,messageOverrides:0,label:1,layout:1}}static{this.styles=y}async destroy(){await this.manager.destroy()}render(){let{messages:a,options:u=[],selectLabel:i,value:h,arcgisUnitSelectChange:g}=this;return e`<calcite-label class="root" .layout=${this.layout}>${i}<calcite-select .label=${i} @calciteSelectChange=${t=>{g.emit(t.target.value)}}>${p(u,t=>t,t=>e`<calcite-option .selected=${t===h} .value=${t}>${m(t)?a.systems?.[t]:a.units?.[t]?.pluralCapitalized}</calcite-option>`)}</calcite-select></calcite-label>`}};r("arcgis-unit-select",s);export{s as ArcgisUnitSelect};
2
+ import{a as p}from"./H4QJLXGB.js";import{i as m}from"./S4I3X6AX.js";import{a as n}from"./LCROB3R4.js";import"./HXP4OSR5.js";import"./2YJNQPTJ.js";import"./LYUZNKPJ.js";import{O as o,U as r,a as l,b as e,x as c}from"./ECDIHLGQ.js";import"./3TTFCHAA.js";var y=l`:host{width:100%}.root{--calcite-label-margin-bottom: 0;width:100%}.root[layout=inline-space-between] calcite-select{width:var(--arcgis-unit-select-inline-size, 180px)}`,s=class extends o{constructor(){super(...arguments),this.messages=n({}),this.options=[],this.layout="block",this.arcgisUnitSelectChange=c()}static{this.properties={options:[1,{type:Array}],selectLabel:1,value:0,messageOverrides:0,label:1,layout:1}}static{this.styles=y}async destroy(){await this.manager.destroy()}render(){let{messages:a,options:u=[],selectLabel:i,value:h,arcgisUnitSelectChange:g}=this;return e`<calcite-label class="root" .layout=${this.layout}>${i}<calcite-select .label=${i} @calciteSelectChange=${t=>{g.emit(t.target.value)}}>${p(u,t=>t,t=>e`<calcite-option .selected=${t===h} .value=${t}>${m(t)?a.systems?.[t]:a.units?.[t]?.pluralCapitalized}</calcite-option>`)}</calcite-select></calcite-label>`}};r("arcgis-unit-select",s);export{s as ArcgisUnitSelect};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import e from"./6ACZUOGS.js";import{a as y,b as p}from"./2DCQIDUD.js";import{a as d}from"./BBNWCS5P.js";import c from"./QRKB363D.js";import"./SDI7N4ZV.js";import"./JAPT4J53.js";import b from"./LLA4E3SW.js";import"./GDJHZNXO.js";import{M as n,N as o,O as l,P as h,U as v,b as a,x as r}from"./3IN2IMDT.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:s},E,C,A,{d:g,e:u},{a:e,b:w,f:m},{a:b,b:f,c:V}])=>{var _=w(C,{}),D=w(E,{}),c=class extends l{constructor(){super(),this._containerRef=n(),this._mapRef=n(),this._uiController=new b(this),this.extraContent=new A,this.arcgisLoadError=f(this),this.arcgisViewReadyError=V(this),this._map=_(this),this.view=D(this),this.animationsDisabled=this.view.animationsEnabled,this.allLayerViews=this.view.allLayerViews,this.analyses=this.view.analyses,this.attributionMode=this.view.attributionMode,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.canZoomIn=this.view.canZoomIn,this.canZoomOut=this.view.canZoomOut,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.highlights=this.view.highlights,this.ipsInfo=this._map.ipsInfo,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.popupComponentEnabled=!1,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.selectionManager=this.view.selectionManager,this.spatialReference=this.view.spatialReference,this.spatialReferenceLocked=this.view.spatialReferenceLocked,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.updating=this.view.updating,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=e(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=e(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=e(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=e(()=>this.view,"click"),this.arcgisViewDoubleClick=e(()=>this.view,"double-click"),this.arcgisViewDoubleTapDrag=e(()=>this.view,"double-tap-drag"),this.arcgisViewDrag=e(()=>this.view,"drag"),this.arcgisViewHold=e(()=>this.view,"hold"),this.arcgisViewImmediateClick=e(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=e(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=e(()=>this.view,"key-down"),this.arcgisViewKeyUp=e(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=e(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=e(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=e(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=e(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=e(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=e(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=e(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=e(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=e(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.arcgisViewVerticalTwoFingerDrag=e(()=>this.view,"vertical-two-finger-drag"),this.view.ui={components:[]}}static{this.properties={_map:16,view:32,animationsDisabled:5,aria:0,allLayerViews:32,analyses:0,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,canZoomIn:36,canZoomOut:36,center:1,constraints:0,displayFilterDisabled:5,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,hideAttribution:5,highlights:0,interacting:32,ipsInfo:0,itemId:3,layerViews:32,magnifier:32,map:0,navigating:32,navigation:0,padding:0,popup:0,popupElement:32,popupDisabled:5,popupComponentEnabled:5,ready:36,resizeAlign:1,resolution:40,rotation:9,scale:9,selectionManager:32,spatialReference:0,spatialReferenceLocked:5,stationary:32,suspended:39,theme:0,timeExtent:0,timeZone:1,updating:36,viewpoint:0,visibleArea:32,zoom:9,loadErrorSources:0}}static{this.styles=[d,y]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get center(){return this.view.center}set center(i){let t=u(i,this.view);t&&(this.view.center=t)}get extent(){return this.view.extent}set extent(i){i&&!this.extent?.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){m(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get popupElement(){return this._uiController.popupElement||null}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){g(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,t){return await this.view.goTo(i,t)}async hitTest(i,t){return await this.view.hitTest(i,t)}async openPopup(i){this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i){return this.view.toMap(i)}toScreen(i,t){return this.view.toScreen(i,t)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,t){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(t)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view?.whenLayerView(i)}async zoomIn(){this.view.zoomIn()}async zoomOut(){this.view.zoomOut()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,t=>{t&&(this._map=t)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready}),s(()=>this.view.attributionHeight,t=>{this._uiController.handleAttributionHeightChange(t)},{initial:!0})])}renderMain(){return a`<div class=${h(p.base)} ${o(this._mapRef)}></div>`}render(){return a`${this.renderMain()}<section class=${h(p.containerUI)} ${o(this._containerRef)}>${this._uiController.render()}${this.extraContent}</section>`}};v("arcgis-map",c);return c},"core/reactiveUtils","views/MapView","WebMap","core/Collection",b,c,e)
2
+ import e from"./J3QSZCGU.js";import{a as y,b as p}from"./PWI2GIS6.js";import{a as d}from"./LQJHKYDM.js";import c from"./5XXAORHS.js";import"./HXP4OSR5.js";import"./2YJNQPTJ.js";import b from"./E4P76U4X.js";import"./LYUZNKPJ.js";import{M as n,N as o,O as l,P as h,U as v,b as a,x as r}from"./ECDIHLGQ.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:s},E,C,A,{d:g,e:u},{a:e,b:w,f:m},{a:b,b:f,c:V}])=>{var _=w(C,{}),D=w(E,{}),c=class extends l{constructor(){super(),this._containerRef=n(),this._mapRef=n(),this._uiController=new b(this),this.extraContent=new A,this.arcgisLoadError=f(this),this.arcgisViewReadyError=V(this),this._map=_(this),this.view=D(this),this.animationsDisabled=this.view.animationsEnabled,this.allLayerViews=this.view.allLayerViews,this.analyses=this.view.analyses,this.attributionMode=this.view.attributionMode,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.canZoomIn=this.view.canZoomIn,this.canZoomOut=this.view.canZoomOut,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.highlights=this.view.highlights,this.ipsInfo=this._map.ipsInfo,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.popupComponentEnabled=!1,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.selectionManager=this.view.selectionManager,this.spatialReference=this.view.spatialReference,this.spatialReferenceLocked=this.view.spatialReferenceLocked,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.updating=this.view.updating,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=e(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=e(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=e(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=e(()=>this.view,"click"),this.arcgisViewDoubleClick=e(()=>this.view,"double-click"),this.arcgisViewDoubleTapDrag=e(()=>this.view,"double-tap-drag"),this.arcgisViewDrag=e(()=>this.view,"drag"),this.arcgisViewHold=e(()=>this.view,"hold"),this.arcgisViewImmediateClick=e(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=e(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=e(()=>this.view,"key-down"),this.arcgisViewKeyUp=e(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=e(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=e(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=e(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=e(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=e(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=e(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=e(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=e(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=e(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.arcgisViewVerticalTwoFingerDrag=e(()=>this.view,"vertical-two-finger-drag"),this.view.ui={components:[]}}static{this.properties={_map:16,view:32,animationsDisabled:5,aria:0,allLayerViews:32,analyses:0,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,canZoomIn:36,canZoomOut:36,center:1,constraints:0,displayFilterDisabled:5,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,hideAttribution:5,highlights:0,interacting:32,ipsInfo:0,itemId:3,layerViews:32,magnifier:32,map:0,navigating:32,navigation:0,padding:0,popup:0,popupElement:32,popupDisabled:5,popupComponentEnabled:5,ready:36,resizeAlign:1,resolution:40,rotation:9,scale:9,selectionManager:32,spatialReference:0,spatialReferenceLocked:5,stationary:32,suspended:39,theme:0,timeExtent:0,timeZone:1,updating:36,viewpoint:0,visibleArea:32,zoom:9,loadErrorSources:0}}static{this.styles=[d,y]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get center(){return this.view.center}set center(i){let t=u(i,this.view);t&&(this.view.center=t)}get extent(){return this.view.extent}set extent(i){i&&!this.extent?.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){m(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get popupElement(){return this._uiController.popupElement||null}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){g(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,t){return await this.view.goTo(i,t)}async hitTest(i,t){return await this.view.hitTest(i,t)}async openPopup(i){this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i){return this.view.toMap(i)}toScreen(i,t){return this.view.toScreen(i,t)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,t){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(t)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view?.whenLayerView(i)}async zoomIn(){this.view.zoomIn()}async zoomOut(){this.view.zoomOut()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,t=>{t&&(this._map=t)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready}),s(()=>this.view.attributionHeight,t=>{this._uiController.handleAttributionHeightChange(t)},{initial:!0})])}renderMain(){return a`<div class=${h(p.base)} ${o(this._mapRef)}></div>`}render(){return a`${this.renderMain()}<section class=${h(p.containerUI)} ${o(this._containerRef)}>${this._uiController.render()}${this.extraContent}</section>`}};v("arcgis-map",c);return c},"core/reactiveUtils","views/MapView","WebMap","core/Collection",b,c,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import"./JVFREF7G.js";import"./RH62B2NE.js";import"./A2QPYUE5.js";import"./FWXI6DGS.js";import{Q as o}from"./P2ABZVPJ.js";import"./XEXCDGSR.js";import"./DQH27QCF.js";import"./3TTFCHAA.js";var t=["#2888B8","#EB7028","#48A375","#9370B1","#e55035","#3d9ccc","#DC7B04","#b87bb0","#3fa681","#EE6386"],c=t.map(r=>o(r));export{c as esriChartColorSet};
2
+ import"./R4OARTJQ.js";import"./RH62B2NE.js";import"./A2QPYUE5.js";import"./FWXI6DGS.js";import{Q as o}from"./P2ABZVPJ.js";import"./XEXCDGSR.js";import"./DQH27QCF.js";import"./3TTFCHAA.js";var t=["#2888B8","#EB7028","#48A375","#9370B1","#e55035","#3d9ccc","#DC7B04","#b87bb0","#3fa681","#EE6386"],c=t.map(r=>o(r));export{c as esriChartColorSet};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{c as m}from"./2DCQIDUD.js";import{b as s,e as c}from"./SDI7N4ZV.js";import{a as u}from"./GDJHZNXO.js";import{M as h,b as a,x as i,z as l}from"./3IN2IMDT.js";export default $arcgis.t(([{when:E,watch:g}])=>{var d=class extends l{constructor(t){super(t),this.direction=c(),this.popupRef=h(),this.attributionHeight=0,this._uiContainer=null,this.component.listen("arcgisViewClick",o=>{this._handleOpenPopup(o.detail)}),this.component.listenOn(globalThis,"unhandledrejection",o=>{if(o.reason?.name==="webgl:required"){let{name:e}=o.reason;this.webGLError={name:e}}})}hostLifecycle(){return[E(()=>this.component.view.ready,()=>{this._assignDefaultPopup()}),E(()=>this.component.view.popup?.visible,()=>{this.popupElement?.open&&(this.popupElement.open=!1)})]}async openPopup(t){if(this._assignDefaultPopup(),this.closePopup(),this.popupElement){await this.popupElement.componentOnReady(),this.popupElement.open=!0;let{fetchFeatures:o}=t;delete t.fetchFeatures,Object.assign(this.popupElement,t),o&&this.popupElement.fetchFeatures()}else await this.component.view.openPopup(t)}closePopup(){this.popupElement&&(this.popupElement.open=!1),this.component.view.closePopup()}_assignDefaultPopup(){this.popupRef.value&&!this.popupElement&&(this.popupElement=this.popupRef.value,this.popupElement.referenceElement=this.component.el,this.popupElement.view=this.component.view)}handleAttributionHeightChange(t){if(!(this.attributionHeight===t||!this.component.el.shadowRoot)){if(this.attributionHeight=t,!this._uiContainer){let o=this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");this._uiContainer=o}this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top",`${this.attributionHeight}px`)}}async _handleOpenPopup(t){if(this._assignDefaultPopup(),this.popupElement&&!this.component.popupDisabled){t.stopPropagation();let{location:o,promises:e}=await this.popupElement.handleViewClick(t);e?.length?this.openPopup({location:o,promises:e}):this.popupElement.open&&this.closePopup()}}_handlePopupSlotChange(t){let o=u(t.target,"arcgis-popup");!this.popupElement&&o.length?this.popupElement=o[0]:o.length||(this.popupElement=void 0)}_webGLErrorAlert(){return this.webGLError?a`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>`:null}render(){return m({direction:this.direction,popupComponentEnabled:this.component.popupComponentEnabled,handlePopupSlotChange:t=>this._handlePopupSlotChange(t),webGLErrorElement:this._webGLErrorAlert(),popupElement:this.popupRef})}},_=s((p,t)=>{let o=i();return t.onLifecycle(()=>g(()=>{let{map:e}=p;if(!e||e.destroyed)return[];let n=[];return e.loadError&&n.push(e),e.basemap?.loadError&&n.push(e.basemap),e.ground.loadError&&n.push(e.ground),[...e.allLayers,...e.allTables].forEach(r=>{r.loadError&&n.push(r)}),n},e=>{e.length&&(p.loadErrorSources=e,o.emit())})),o}),L=s((p,t)=>{let o=i();return t.onLifecycle(()=>g(()=>p.view?.readyState,e=>{(e==="map-content-error"||e==="rendering-error")&&o.emit()})),o});return{a:d,b:_,c:L}},"core/reactiveUtils")
2
+ import{c as m}from"./PWI2GIS6.js";import{b as s,e as c}from"./HXP4OSR5.js";import{a as u}from"./LYUZNKPJ.js";import{M as h,b as a,x as i,z as l}from"./ECDIHLGQ.js";export default $arcgis.t(([{when:E,watch:g}])=>{var d=class extends l{constructor(t){super(t),this.direction=c(),this.popupRef=h(),this.attributionHeight=0,this._uiContainer=null,this.component.listen("arcgisViewClick",o=>{this._handleOpenPopup(o.detail)}),this.component.listenOn(globalThis,"unhandledrejection",o=>{if(o.reason?.name==="webgl:required"){let{name:e}=o.reason;this.webGLError={name:e}}})}hostLifecycle(){return[E(()=>this.component.view.ready,()=>{this._assignDefaultPopup()}),E(()=>this.component.view.popup?.visible,()=>{this.popupElement?.open&&(this.popupElement.open=!1)})]}async openPopup(t){if(this._assignDefaultPopup(),this.closePopup(),this.popupElement){await this.popupElement.componentOnReady(),this.popupElement.open=!0;let{fetchFeatures:o}=t;delete t.fetchFeatures,Object.assign(this.popupElement,t),o&&this.popupElement.fetchFeatures()}else await this.component.view.openPopup(t)}closePopup(){this.popupElement&&(this.popupElement.open=!1),this.component.view.closePopup()}_assignDefaultPopup(){this.popupRef.value&&!this.popupElement&&(this.popupElement=this.popupRef.value,this.popupElement.referenceElement=this.component.el,this.popupElement.view=this.component.view)}handleAttributionHeightChange(t){if(!(this.attributionHeight===t||!this.component.el.shadowRoot)){if(this.attributionHeight=t,!this._uiContainer){let o=this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");this._uiContainer=o}this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top",`${this.attributionHeight}px`)}}async _handleOpenPopup(t){if(this._assignDefaultPopup(),this.popupElement&&!this.component.popupDisabled){t.stopPropagation();let{location:o,promises:e}=await this.popupElement.handleViewClick(t);e?.length?this.openPopup({location:o,promises:e}):this.popupElement.open&&this.closePopup()}}_handlePopupSlotChange(t){let o=u(t.target,"arcgis-popup");!this.popupElement&&o.length?this.popupElement=o[0]:o.length||(this.popupElement=void 0)}_webGLErrorAlert(){return this.webGLError?a`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>`:null}render(){return m({direction:this.direction,popupComponentEnabled:this.component.popupComponentEnabled,handlePopupSlotChange:t=>this._handlePopupSlotChange(t),webGLErrorElement:this._webGLErrorAlert(),popupElement:this.popupRef})}},_=s((p,t)=>{let o=i();return t.onLifecycle(()=>g(()=>{let{map:e}=p;if(!e||e.destroyed)return[];let n=[];return e.loadError&&n.push(e),e.basemap?.loadError&&n.push(e.basemap),e.ground.loadError&&n.push(e.ground),[...e.allLayers,...e.allTables].forEach(r=>{r.loadError&&n.push(r)}),n},e=>{e.length&&(p.loadErrorSources=e,o.emit())})),o}),L=s((p,t)=>{let o=i();return t.onLifecycle(()=>g(()=>p.view?.readyState,e=>{(e==="map-content-error"||e==="rendering-error")&&o.emit()})),o});return{a:d,b:_,c:L}},"core/reactiveUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as u}from"./UFFMJFKS.js";import"./SDI7N4ZV.js";import"./JAPT4J53.js";import"./GDJHZNXO.js";import{B as h,N as m,O as d,R as s,U as f,a as n,b as a,x as p}from"./3IN2IMDT.js";import"./3TTFCHAA.js";export default $arcgis.t(([i,{substitute:b}])=>{var g=n`:host{display:inline-block;position:relative;width:fit-content;isolation:isolate}calcite-label:focus-within .swatch-wrapper{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:2px}`,l=class extends d{constructor(){super(...arguments),this._messages=u(),this.#t=e=>{this._popoverReferenceElement=e??void 0},this.#e=h(),this._color=new i([0,0,0,1]),this._open=!1,this.arcgisColorChanged=p()}static{this.properties={_color:16,_open:16,_popoverReferenceElement:16,color:1,label:1}}static{this.styles=g}#t;#e;#s(e){(e.key===" "||e.key==="Enter")&&this.#o(e)}#o(e){e.preventDefault(),e.stopPropagation(),this._open=!this._open}get color(){return this._color}set color(e){let o=e instanceof i?e:new i(e);o.equals(this._color)||(this._color=o)}render(){let e=this._color.toCss(!0),[o,_,$,v]=this._color.toRgba(),r=b(this._messages?.ariaDescription??"",{label:this.label??this._messages?.label??"",color:`${o}, ${_}, ${$}, ${v}`});return a`<calcite-label layout=inline scale=s @click=${this.#o}><div class="swatch-wrapper" tabindex=0 role=button aria-controls=${this.#e??s} aria-expanded=${this._open?"true":"false"} aria-haspopup=dialog aria-label=${r??s} @keydown=${this.#s} @click=${this.#o} ${m(this.#t)}><calcite-swatch .color=${e} .label=${r}></calcite-swatch></div>${this.label??this._messages?.label}${this._popoverReferenceElement?a`<calcite-popover id=${this.#e??s} auto-close class="popover" .label=${this._messages?.popoverLabel??""} .open=${this._open} @calcitePopoverClose=${()=>this._open=!1} @calcitePopoverOpen=${()=>this._open=!0} overlay-positioning=fixed .referenceElement=${this._popoverReferenceElement}><calcite-color-picker alpha-channel channels-disabled @click=${t=>{t.stopPropagation()}} @calciteColorPickerInput=${({target:{value:t}})=>{if(typeof t=="string"){let c=new i(t);this.color=c,this.arcgisColorChanged.emit(c)}}} saved-disabled .value=${e}></calcite-color-picker></calcite-popover>`:void 0}</calcite-label>`}};f("arcgis-color-select",l);return l},"Color","intl")
2
+ import{a as u}from"./LCROB3R4.js";import"./HXP4OSR5.js";import"./2YJNQPTJ.js";import"./LYUZNKPJ.js";import{B as h,N as m,O as d,R as s,U as f,a as n,b as a,x as p}from"./ECDIHLGQ.js";import"./3TTFCHAA.js";export default $arcgis.t(([i,{substitute:b}])=>{var g=n`:host{display:inline-block;position:relative;width:fit-content;isolation:isolate}calcite-label:focus-within .swatch-wrapper{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:2px}`,l=class extends d{constructor(){super(...arguments),this._messages=u(),this.#t=e=>{this._popoverReferenceElement=e??void 0},this.#e=h(),this._color=new i([0,0,0,1]),this._open=!1,this.arcgisColorChanged=p()}static{this.properties={_color:16,_open:16,_popoverReferenceElement:16,color:1,label:1}}static{this.styles=g}#t;#e;#s(e){(e.key===" "||e.key==="Enter")&&this.#o(e)}#o(e){e.preventDefault(),e.stopPropagation(),this._open=!this._open}get color(){return this._color}set color(e){let o=e instanceof i?e:new i(e);o.equals(this._color)||(this._color=o)}render(){let e=this._color.toCss(!0),[o,_,$,v]=this._color.toRgba(),r=b(this._messages?.ariaDescription??"",{label:this.label??this._messages?.label??"",color:`${o}, ${_}, ${$}, ${v}`});return a`<calcite-label layout=inline scale=s @click=${this.#o}><div class="swatch-wrapper" tabindex=0 role=button aria-controls=${this.#e??s} aria-expanded=${this._open?"true":"false"} aria-haspopup=dialog aria-label=${r??s} @keydown=${this.#s} @click=${this.#o} ${m(this.#t)}><calcite-swatch .color=${e} .label=${r}></calcite-swatch></div>${this.label??this._messages?.label}${this._popoverReferenceElement?a`<calcite-popover id=${this.#e??s} auto-close class="popover" .label=${this._messages?.popoverLabel??""} .open=${this._open} @calcitePopoverClose=${()=>this._open=!1} @calcitePopoverOpen=${()=>this._open=!0} overlay-positioning=fixed .referenceElement=${this._popoverReferenceElement}><calcite-color-picker alpha-channel channels-disabled @click=${t=>{t.stopPropagation()}} @calciteColorPickerInput=${({target:{value:t}})=>{if(typeof t=="string"){let c=new i(t);this.color=c,this.arcgisColorChanged.emit(c)}}} saved-disabled .value=${e}></calcite-color-picker></calcite-popover>`:void 0}</calcite-label>`}};f("arcgis-color-select",l);return l},"Color","intl")
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import a from"./R3NYK6BO.js";import{a as x}from"./LCROB3R4.js";import"./HXP4OSR5.js";import"./2YJNQPTJ.js";import"./LYUZNKPJ.js";import{O as v,U as I,a as S,b as f,p as l,r as g,x as b}from"./ECDIHLGQ.js";import"./3TTFCHAA.js";export default $arcgis.t(([P,w,d,A,$,G,_,k,{c:T,f:C}])=>{var F=S`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.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)}.button-container{justify-content:center;display:grid}.clear-button{--calcite-button-border-color: transparent}`,L=class extends v{constructor(){super(...arguments),this.messages=x({blocking:!0}),this.isSelectWaiting=!1,this.traceLocationType="starting-point",this.spatialTolerance=.05,this.autoDestroyDisabled=!1,this.arcgisTraceLocationChange=b(),this.arcgisTraceLocationSelectEnd=b(),this.arcgisTraceLocationSelectStart=b()}static{this.properties={isSelectWaiting:16,beforeTraceLocationSelectStart:0,afterHitTest:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,sketchViewModel:0,spatialTolerance:9,autoDestroyDisabled:5,utilityNetwork:0}}static{this.styles=F}async destroy(){this._resetCursor(),await this.manager.destroy()}async load(){d.isLoaded()||await d.load()}_createPolyline(t,e){return new A({hasZ:!1,hasM:!0,paths:t,spatialReference:new $({wkid:e})})}_calculatePercentAlong(t,e){let r=t.spatialReference,n=this._createPolyline(t.paths,r.wkid),o=e.x-.5,i=e.x+.5,s=e.y-.5,a=e.y+.5,c=[[[o,s],[i,a]]],h=this._createPolyline(c,e.spatialReference.wkid),u=d.execute(h,r);if(!u)return l("error",this,"Unable to project flag geometry to source geometry spatial reference."),.5;let p=P.execute(n,u);if(p.length>0){let y=w.execute(n,{unit:"feet"}),m;return p[0].paths[0][0][0]===n.paths[0][0][0]?m=w.execute(p[0],{unit:"feet"}):p.length>1?m=w.execute(p[1],{unit:"feet"}):m=0,m/y}return l("warn",this,"Unable to cut the source geometry with the flag geometry."),.5}get _edgeSourceLayerIds(){let t=this.utilityNetwork?.dataElement?.domainNetworks;return t?t.flatMap(e=>e.edgeSources).map(e=>e.layerId).filter(Boolean):[]}async _handleAddButtonClick(){let{view:t,sketchViewModel:e}=this;if(!(t&&e)){l("error",this,"Cannot add trace location."),e||l("error",this,g("sketchViewModel")),t||l("error",this,g("view"));return}if(this.beforeTraceLocationSelectStart){this.isSelectWaiting=!0;try{await this.beforeTraceLocationSelectStart()}finally{this.isSelectWaiting=!1}}this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>e.cancel()}).defaultPrevented||await this._startSketch(t,e)}async _startSketch(t,e){this._clickHandler?.remove(),this._clickHandler=e.on("create",r=>this._handleSketchComplete(r,t,e)),"acquireCursor"in t&&t.acquireCursor("crosshair"),this.sketchViewModel?.create("point")}_handleSketchComplete(t,e,r){if(t.state==="complete"&&t.graphic){r.layer.remove(t.graphic),this._performHitTest(t,e,r);return}t.state==="cancel"&&(this._resetCursor(),this.arcgisTraceLocationSelectEnd.emit())}async _performHitTest(t,e,r){let{utilityNetwork:n}=this;if(!n){l("error",this,g("utilityNetwork")),this._resetCursor(),this.arcgisTraceLocationSelectEnd.emit();return}let o=t.graphic?.geometry,i=e.toScreen(o);if(!i){l("warn",this,"No screen point available for hit test."),this._startSketch(e,r);return}let s=(await e.hitTest(i,{include:this.filterLayers})).results.filter(a=>a.type==="graphic"&&a?.layer&&a.graphic);if(s.length===0){l("info",this,"No usable hit test results found."),this._startSketch(e,r);return}this._resetCursor(),await this._processHitTestResults(s,o,e),this.arcgisTraceLocationSelectEnd.emit()}_resetCursor(){let{view:t}=this;if(!t){l("error",this,g("view"));return}this._clickHandler?.remove(),this._clickHandler=void 0,"acquireCursor"in t&&t.acquireCursor("default")}async _processHitTestResults(t,e,r){if(t.length===0){l("error",this,"There are no hit test results to process.");return}let n=t[0],o=t.map(a=>{let c=a,h=c.graphic;return h.origin=c.layer,h.sourceLayer=c.layer,h}),i=n.graphic;if(this.afterHitTest)try{i=await this.afterHitTest(o)}catch{i=null}if(!i){l("error",this,"No graphic available from hit test results."),this.arcgisTraceLocationSelectEnd.emit();return}let s=await this._ensureNecessaryAttributes(i);if(!s){l("error",this,"Unable to ensure necessary attributes on the selected graphic."),this.arcgisTraceLocationSelectEnd.emit();return}await this._generateTraceLocation(s,e,r)}async _ensureNecessaryAttributes(t){let e=(T(t.layer),t.layer),r=e.geometryType===null,n=e.fieldsIndex?.get("assetgroup")??!1,o=e.fieldsIndex?.get("assetgroup")?.name??"assetgroup",i=e.fieldsIndex?.get("assettype")??!1,s=e.fieldsIndex?.get("assettype")?.name??"assettype",a=t.getGlobalId(),c=t.getObjectId(),h=n?!!t.getAttribute(o):!0,u=i?!!t.getAttribute(s):!0,p=!!t.geometry;if(a&&c&&h&&u&&(p||r))return t;let y=e.createQuery();return y.objectIds=[c],(await e.queryFeatures(y))?.features[0]||null}async _generateTraceLocation(t,e,r){let{traceLocations:n}=this,o=t.getGlobalId()??"",i=t.geometry?.type,s=await this._generateFlagInfo(t,e);if(!s){l("error",this,"Unable to generate flag info for trace location.");return}let a=n?.filter(h=>h.spatialProperties.mapGraphic?.getGlobalId()===o)??[];if(a.length>0){if(i!=="polyline"){l("warn",this,"A flag with the same globalId already exists.");return}else if(a.some(h=>Math.abs(h.traceLocation.percentAlong-s.traceLocation.percentAlong)<=this.spatialTolerance)){l("warn",this,"A flag with the same globalId already exists within tolerance.");return}}let c=this._addFlagGraphic(t,e,r);if(!c){l("warn",this,"Unable to add flag graphic.");return}s.spatialProperties.flagGraphic=c,n?.add(s)}async _generateFlagInfo(t,e){let{traceLocationType:r,utilityNetwork:n}=this,o=t.getGlobalId()??"",i=t.geometry?.type,s=await this._generateItemTitle(t);if(i==="point"||i==="polygon"){let a=n?.getTerminalConfiguration(t),c=a?a.terminals[0].id:1;return{traceLocation:new _({type:r,isFilterBarrier:!1,globalId:o,terminalId:c}),flagProperties:{title:s,expanded:!1,terminalConfiguration:a??void 0,selectedTerminals:a?new Set([c]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(i==="polyline"){let a=this._calculatePercentAlong(t.geometry,e);return{traceLocation:new _({type:r,isFilterBarrier:!1,globalId:o,percentAlong:a}),flagProperties:{title:s,expanded:!1},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(!i){let a=C(t.layer)?t.layer.parent:t.layer,c=a&&this._edgeSourceLayerIds.includes(a.layerId),h=n?.getTerminalConfiguration(t),u=h?h.terminals[0].id:c?-1:1,p=c?.5:-1;return{traceLocation:new _({type:r,isFilterBarrier:!1,globalId:o,terminalId:u,percentAlong:p}),flagProperties:{title:s,expanded:!1,terminalConfiguration:h??void 0,selectedTerminals:h?new Set([u]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}return null}async _generateItemTitle(t){let{messages:e}=this,r=(T(t.layer),t.layer);return("getFeatureTitle"in r?await r.getFeatureTitle(t):null)||t?.getObjectId()?.toString()||e.labels.unknown}_addFlagGraphic(t,e,r){let n=t.geometry?t.geometry.type==="point"?t.geometry:e:null,o=this._createFlagSymbol(),i=new G({geometry:n,symbol:o,attributes:t.attributes});return r.graphics.add(i),i}_createFlagSymbol(){let{traceLocationType:t}=this,e=[244,21,21,.6],r=[21,244,21,.6];return t==="stopping-point"?new k({color:e,style:"x",size:12,outline:{color:e,width:2}}):t==="barrier"?new k({color:e,style:"square",size:12,outline:{color:e,width:0}}):new k({color:r,style:"circle",size:12,outline:{color:r,width:0}})}_handleClearButtonClick(){let{view:t,traceLocations:e}=this;e?.forEach(r=>{r.spatialProperties.flagGraphic&&t&&t.graphics.remove(r.spatialProperties.flagGraphic)}),e?.removeAll()}renderAddLocationBlock(){let{traceLocationType:t,messages:e,traceLocations:r,view:n}=this,o=t==="starting-point"?e.types.startingPoint:t==="barrier"?e.types.barrier:e.types.stoppingPoint,i=o.heading,s=o.description,a=o.buttonText;return f`<calcite-block .heading=${i} .label=${i} expanded .description=${s}>${r?.length?f`<calcite-button class="clear-button" slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${()=>this._handleClearButtonClick()}>${e.buttons.clear}</calcite-button>`:null}<arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${t} .view=${n}></arcgis-utility-network-trace-location-list><div class="button-container"><calcite-button .loading=${this.isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${a} @click=${()=>this._handleAddButtonClick()}>${a}</calcite-button></div></calcite-block>`}render(){return f`<div class="root">${this.renderAddLocationBlock()}</div>`}};I("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",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as k}from"./6NU2H4EN.js";import{a as M,b as v}from"./KSH446AM.js";import{a as w}from"./KJLX7G4N.js";import{M as P,N as L,O as $,P as c,Q as u,R as h,U as y,a as b,b as l,x}from"./3IN2IMDT.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:B}])=>{var a=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,i),i);var H;function C(t){return(e,i)=>a(e,i,{get(){return(this.renderRoot??(H??=document.createDocumentFragment())).querySelectorAll(t)}})}var W=b`:host{transition:max-height .25s ease-in-out;--esri-widget-padding: 12px 15px;--level-picker-padding: var(--calcite-spacing-md);--level-label-color: var(--calcite-color-text-1);--level-label-color--empty: var(--calcite-color-text-2);--level-label-color--active: var(--calcite-color-brand);--level-border-width: 2px;--level-border-color: var(--calcite-color-border-2);--level-border-color--hover: var(--calcite-color-brand);--level-border-color--active: var(--calcite-color-brand);--level-background-color: rgb(from var(--calcite-color-foreground-1) r g b / 70%);--level-background-color--hover: rgb(from var(--calcite-color-foreground-1) r g b / 90%);--level-background-color--active: var(--calcite-color-brand);--focus-outline-width: 2px;--focus-outline-color: var(--calcite-color-brand);--focus-outline-offset: 2px}.container{height:max-content;display:flex;flex-direction:row;align-items:center;&.no-level{display:none}>*{height:max-content}}.clear-button{appearance:none;margin-inline-start:7px;display:none;position:absolute;inset-block-start:-4px}.label-container{--width: 90px;--height: 40px;flex-direction:column;justify-content:space-between;align-items:center;width:50%;margin-inline-end:var(--calcite-spacing-md);display:flex;&.active{color:var(--calcite-color-brand)}&.empty{cursor:default;color:var(--calcite-color-border-2);font-size:var(--calcite-font-size);font-weight:var(--calcite-font-weight-light)}&:focus{outline:none}&:focus-visible{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus)}}.level-label{position:relative;text-align:center;>span{pointer-events:none}&.active{font-size:var(--height);line-height:calc(var(--height) + 6px);>.clear-button{display:inline-block}}}.tiles-container{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;transform:rotate(180deg);cursor:pointer;padding:20px 0;width:50%}.tiles-inner-container{transition:margin .3s}`,j=Object.defineProperty,F=(t,e,i,n)=>{for(var r=void 0,o=t.length-1,s;o>=0;o--)(s=t[o])&&(r=s(e,i,r)||r);return r&&j(e,i,r),r},d=class extends ${constructor(){super(...arguments),this.hovering=!1,this.onPointerMove=e=>{if(!this.hovering)return!1;if(window.getSelection()?.removeAllRanges(),this.containerPosTop!=null){let i=this.containerPosTop,n=40,r=this.expandedLevelsMargin,o=this.levelsHeight,s=i+n+r,m=this.levelHeight/2;s+=m,o-=m;let f=(e.clientY-s)/o;f+=.035,this.normalizedPointerPosition=f}return!1},this.onPointerEnter=()=>{let e=this.levelsContainer.value;this.hovering||e==null||(this.hovering=!0,this.containerPosTop=e.getBoundingClientRect().top??0)},this.levelsContainer=P(),this.onPointerLeave=()=>{if(this.hovering){window.getSelection()?.removeAllRanges();for(let e of this.levelItems)e.width=void 0;this.normalizedPointerPosition=0,this.hoveredLevel=null,this.hovering=!1}},this.onPointerUp=()=>{window.getSelection()?.removeAllRanges();let e=this.level;this.hoveredLevel==null||e==null||this.#o()},this.expandedLevelsHeight=void 0,this.normalizedPointerPosition=0,this.hoveredLevel=null,this.arcgisBuildingLevelChange=x({bubbles:!0,composed:!0})}static{this.properties={expandedLevelsHeight:16,normalizedPointerPosition:16,hoveredLevel:16,messages:0,level:0,numberOfLevels:32,levelHeight:32,levelsHeight:32}}static{this.styles=W}get levels(){return this.level?.allowedValues??[]}get levelWidth(){let{levelWidthNominator:e,levelWidthConstant:i}=M,n=e/Math.sqrt(this.numberOfLevels)+i;return Math.round(v(n,30,80))}get _gaussianFactor(){let e=this.numberOfLevels;return e/Math.log(30*e)*10}get expandedLevelsMargin(){return Math.round(((this.expandedLevelsHeight??0)-this.levelsHeight)/2)}get levelClosestToPointer(){if(!this.hovering)return null;let e=this.numberOfLevels-1,i=this.clampedNormalizedPointerPosition;return e>=0&&i!=null?this.levels[Math.round((1-i)*e)]:null}get clampedNormalizedPointerPosition(){return v(this.normalizedPointerPosition,0,1)}get numberOfLevels(){return this.levels.length}get levelHeight(){let e=14,i=e*2/Math.sqrt(this.numberOfLevels);return Math.round(v(i,2,e))}get levelsHeight(){return Math.round(this.levelHeight*this.numberOfLevels)}async loaded(){this.listen("keydown",this.#n.bind(this)),this.manager.onLifecycle(()=>[B(()=>[this.normalizedPointerPosition,this.hovering],()=>this.onPointerPositionChange(),{initial:!0})])}onPointerPositionChange(){let e=0;this.levelItems.forEach((n,r)=>{let{width:o,height:s}=this.getLevelWidgetSize(r);n.height=s,n.width=o,e+=s}),this.hoveredLevel=this.levelClosestToPointer;let i=this.expandedLevelsHeight;(i==null||Math.abs(i-e)>30)&&(this.expandedLevelsHeight=e)}getLevelWidgetSize(e){let i={width:this.levelWidth,height:this.levelHeight};if(this.hovering){let n=this.getGaussianFactor(e,this.clampedNormalizedPointerPosition);i.width+=20*n,i.height+=30*n}return i}getGaussianFactor(e,i){let n=this.numberOfLevels-1,r=(n-e)/n,o=this._gaussianFactor*(r-i);return Math.exp(-(o**2))}#n(e){switch(e.key){case"ArrowDown":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),this.#i(),this.#e();break;case"ArrowUp":case"ArrowRight":e.preventDefault(),e.stopPropagation(),this.#t(),this.#e();break}}#e(){Array.from(this.levelItems).find(e=>e.level===this.level?.value)?.focus()}#t(){this.level&&(this.level.next(),this.arcgisBuildingLevelChange.emit())}#i(){this.level&&(this.level.previous(),this.arcgisBuildingLevelChange.emit())}#o(){this.level==null||this.hoveredLevel==null||(this.level.value===this.hoveredLevel&&!this.level.disabled?this.#r():(this.level.select(this.hoveredLevel),this.arcgisBuildingLevelChange.emit()))}#r(){this.level&&!this.level.disabled&&(this.level.clear(),this.arcgisBuildingLevelChange.emit())}render(){if(!this.messages)return null;let e=this.level;e?.value;let i=e&&!e.disabled,n=this.numberOfLevels>1?k(this.levels,r=>r,r=>l`<arcgis-building-level-item .level=${r} .baseWidth=${this.levelWidth} .hovered=${this.hoveredLevel===r} .active=${e&&!e.disabled&&e.value===r} class=${c({"animate-level":!this.hovering})} .messages=${this.messages}></arcgis-building-level-item>`):null;return l`<div class=${c({container:!0,"no-level":this.numberOfLevels<2,"animate-level":this.hovering})}>${T({messages:this.messages,active:i,hasNext:e?.hasNext,hasPrevious:e?.hasPrevious,onNext:()=>this.#t(),onPrevious:()=>this.#i(),children:U({messages:this.messages,level:this.hoveredLevel??e?.value,active:i,onClear:()=>this.#r()})})}${D({ref:this.levelsContainer,expandedLevelsMargin:this.expandedLevelsMargin,levelsHeight:this.levelsHeight,onPointerEnter:this.onPointerEnter,onPointerMove:this.onPointerMove,onPointerLeave:this.onPointerLeave,onPointerUp:this.onPointerUp,children:n})}</div>`}};F([C("arcgis-building-level-item")],d.prototype,"levelItems");function T(t){return l`<div class=${c({"label-container":!0,empty:!t.active,active:!0,hover:!0})} title=${t.messages.selectLevel??h} tabindex=0><calcite-action icon=chevron-up appearance=transparent .text=${t.messages.nextLevel} @click=${t.onNext} .disabled=${!t.hasNext}></calcite-action>${t.children}<calcite-action icon=chevron-down appearance=transparent .text=${t.messages.previousLevel} @click=${t.onPrevious} .disabled=${!t.hasPrevious}></calcite-action></div>`}function U(t){let e=t.messages;return l`<div aria-label=${e.clearLevel??h} class=${c({"level-label":!0,active:t.active&&t.level!=null})} @click=${t.onClear} title=${e.clearLevel??h}>${t.active?l`<span>${t.level}</span>${w("clear-button",l`<calcite-fab appearance=outline-fill class="clear-button" icon=x kind=neutral @click=${t.onClear} scale=s></calcite-fab>`)}`:l`<span>${e.selectLevel}</span>`}</div>`}function D(t){let e=40,i=-e/2,n=t.levelsHeight,r=n+e*2;return l`<div class="tiles-container" @pointerenter=${t.onPointerEnter} @pointerover=${t.onPointerEnter} @pointermove=${t.onPointerMove} @pointerleave=${t.onPointerLeave} @pointerup=${t.onPointerUp} @click=${t.onClick} style=${u({height:`${r}px`,marginBlockStart:`${i}px`,marginBlockEnd:`${i}px`})} ${L(t.ref)}><div class="tiles-inner-container" style=${u({height:`${n}px`,margin:"0",marginBlockStart:`${20-t.expandedLevelsMargin}px`})}>${t.children}</div></div>`}y("arcgis-building-level-picker",d);return d},"core/reactiveUtils")
2
+ import{a as k}from"./H4QJLXGB.js";import{a as M,b as v}from"./KSH446AM.js";import{a as w}from"./KJIN74HB.js";import{M as P,N as L,O as $,P as c,Q as u,R as h,U as y,a as b,b as l,x}from"./ECDIHLGQ.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:B}])=>{var a=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,i),i);var H;function C(t){return(e,i)=>a(e,i,{get(){return(this.renderRoot??(H??=document.createDocumentFragment())).querySelectorAll(t)}})}var W=b`:host{transition:max-height .25s ease-in-out;--esri-widget-padding: 12px 15px;--level-picker-padding: var(--calcite-spacing-md);--level-label-color: var(--calcite-color-text-1);--level-label-color--empty: var(--calcite-color-text-2);--level-label-color--active: var(--calcite-color-brand);--level-border-width: 2px;--level-border-color: var(--calcite-color-border-2);--level-border-color--hover: var(--calcite-color-brand);--level-border-color--active: var(--calcite-color-brand);--level-background-color: rgb(from var(--calcite-color-foreground-1) r g b / 70%);--level-background-color--hover: rgb(from var(--calcite-color-foreground-1) r g b / 90%);--level-background-color--active: var(--calcite-color-brand);--focus-outline-width: 2px;--focus-outline-color: var(--calcite-color-brand);--focus-outline-offset: 2px}.container{height:max-content;display:flex;flex-direction:row;align-items:center;&.no-level{display:none}>*{height:max-content}}.clear-button{appearance:none;margin-inline-start:7px;display:none;position:absolute;inset-block-start:-4px}.label-container{--width: 90px;--height: 40px;flex-direction:column;justify-content:space-between;align-items:center;width:50%;margin-inline-end:var(--calcite-spacing-md);display:flex;&.active{color:var(--calcite-color-brand)}&.empty{cursor:default;color:var(--calcite-color-border-2);font-size:var(--calcite-font-size);font-weight:var(--calcite-font-weight-light)}&:focus{outline:none}&:focus-visible{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus)}}.level-label{position:relative;text-align:center;>span{pointer-events:none}&.active{font-size:var(--height);line-height:calc(var(--height) + 6px);>.clear-button{display:inline-block}}}.tiles-container{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;transform:rotate(180deg);cursor:pointer;padding:20px 0;width:50%}.tiles-inner-container{transition:margin .3s}`,j=Object.defineProperty,F=(t,e,i,n)=>{for(var r=void 0,o=t.length-1,s;o>=0;o--)(s=t[o])&&(r=s(e,i,r)||r);return r&&j(e,i,r),r},d=class extends ${constructor(){super(...arguments),this.hovering=!1,this.onPointerMove=e=>{if(!this.hovering)return!1;if(window.getSelection()?.removeAllRanges(),this.containerPosTop!=null){let i=this.containerPosTop,n=40,r=this.expandedLevelsMargin,o=this.levelsHeight,s=i+n+r,m=this.levelHeight/2;s+=m,o-=m;let f=(e.clientY-s)/o;f+=.035,this.normalizedPointerPosition=f}return!1},this.onPointerEnter=()=>{let e=this.levelsContainer.value;this.hovering||e==null||(this.hovering=!0,this.containerPosTop=e.getBoundingClientRect().top??0)},this.levelsContainer=P(),this.onPointerLeave=()=>{if(this.hovering){window.getSelection()?.removeAllRanges();for(let e of this.levelItems)e.width=void 0;this.normalizedPointerPosition=0,this.hoveredLevel=null,this.hovering=!1}},this.onPointerUp=()=>{window.getSelection()?.removeAllRanges();let e=this.level;this.hoveredLevel==null||e==null||this.#o()},this.expandedLevelsHeight=void 0,this.normalizedPointerPosition=0,this.hoveredLevel=null,this.arcgisBuildingLevelChange=x({bubbles:!0,composed:!0})}static{this.properties={expandedLevelsHeight:16,normalizedPointerPosition:16,hoveredLevel:16,messages:0,level:0,numberOfLevels:32,levelHeight:32,levelsHeight:32}}static{this.styles=W}get levels(){return this.level?.allowedValues??[]}get levelWidth(){let{levelWidthNominator:e,levelWidthConstant:i}=M,n=e/Math.sqrt(this.numberOfLevels)+i;return Math.round(v(n,30,80))}get _gaussianFactor(){let e=this.numberOfLevels;return e/Math.log(30*e)*10}get expandedLevelsMargin(){return Math.round(((this.expandedLevelsHeight??0)-this.levelsHeight)/2)}get levelClosestToPointer(){if(!this.hovering)return null;let e=this.numberOfLevels-1,i=this.clampedNormalizedPointerPosition;return e>=0&&i!=null?this.levels[Math.round((1-i)*e)]:null}get clampedNormalizedPointerPosition(){return v(this.normalizedPointerPosition,0,1)}get numberOfLevels(){return this.levels.length}get levelHeight(){let e=14,i=e*2/Math.sqrt(this.numberOfLevels);return Math.round(v(i,2,e))}get levelsHeight(){return Math.round(this.levelHeight*this.numberOfLevels)}async loaded(){this.listen("keydown",this.#n.bind(this)),this.manager.onLifecycle(()=>[B(()=>[this.normalizedPointerPosition,this.hovering],()=>this.onPointerPositionChange(),{initial:!0})])}onPointerPositionChange(){let e=0;this.levelItems.forEach((n,r)=>{let{width:o,height:s}=this.getLevelWidgetSize(r);n.height=s,n.width=o,e+=s}),this.hoveredLevel=this.levelClosestToPointer;let i=this.expandedLevelsHeight;(i==null||Math.abs(i-e)>30)&&(this.expandedLevelsHeight=e)}getLevelWidgetSize(e){let i={width:this.levelWidth,height:this.levelHeight};if(this.hovering){let n=this.getGaussianFactor(e,this.clampedNormalizedPointerPosition);i.width+=20*n,i.height+=30*n}return i}getGaussianFactor(e,i){let n=this.numberOfLevels-1,r=(n-e)/n,o=this._gaussianFactor*(r-i);return Math.exp(-(o**2))}#n(e){switch(e.key){case"ArrowDown":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),this.#i(),this.#e();break;case"ArrowUp":case"ArrowRight":e.preventDefault(),e.stopPropagation(),this.#t(),this.#e();break}}#e(){Array.from(this.levelItems).find(e=>e.level===this.level?.value)?.focus()}#t(){this.level&&(this.level.next(),this.arcgisBuildingLevelChange.emit())}#i(){this.level&&(this.level.previous(),this.arcgisBuildingLevelChange.emit())}#o(){this.level==null||this.hoveredLevel==null||(this.level.value===this.hoveredLevel&&!this.level.disabled?this.#r():(this.level.select(this.hoveredLevel),this.arcgisBuildingLevelChange.emit()))}#r(){this.level&&!this.level.disabled&&(this.level.clear(),this.arcgisBuildingLevelChange.emit())}render(){if(!this.messages)return null;let e=this.level;e?.value;let i=e&&!e.disabled,n=this.numberOfLevels>1?k(this.levels,r=>r,r=>l`<arcgis-building-level-item .level=${r} .baseWidth=${this.levelWidth} .hovered=${this.hoveredLevel===r} .active=${e&&!e.disabled&&e.value===r} class=${c({"animate-level":!this.hovering})} .messages=${this.messages}></arcgis-building-level-item>`):null;return l`<div class=${c({container:!0,"no-level":this.numberOfLevels<2,"animate-level":this.hovering})}>${T({messages:this.messages,active:i,hasNext:e?.hasNext,hasPrevious:e?.hasPrevious,onNext:()=>this.#t(),onPrevious:()=>this.#i(),children:U({messages:this.messages,level:this.hoveredLevel??e?.value,active:i,onClear:()=>this.#r()})})}${D({ref:this.levelsContainer,expandedLevelsMargin:this.expandedLevelsMargin,levelsHeight:this.levelsHeight,onPointerEnter:this.onPointerEnter,onPointerMove:this.onPointerMove,onPointerLeave:this.onPointerLeave,onPointerUp:this.onPointerUp,children:n})}</div>`}};F([C("arcgis-building-level-item")],d.prototype,"levelItems");function T(t){return l`<div class=${c({"label-container":!0,empty:!t.active,active:!0,hover:!0})} title=${t.messages.selectLevel??h} tabindex=0><calcite-action icon=chevron-up appearance=transparent .text=${t.messages.nextLevel} @click=${t.onNext} .disabled=${!t.hasNext}></calcite-action>${t.children}<calcite-action icon=chevron-down appearance=transparent .text=${t.messages.previousLevel} @click=${t.onPrevious} .disabled=${!t.hasPrevious}></calcite-action></div>`}function U(t){let e=t.messages;return l`<div aria-label=${e.clearLevel??h} class=${c({"level-label":!0,active:t.active&&t.level!=null})} @click=${t.onClear} title=${e.clearLevel??h}>${t.active?l`<span>${t.level}</span>${w("clear-button",l`<calcite-fab appearance=outline-fill class="clear-button" icon=x kind=neutral @click=${t.onClear} scale=s></calcite-fab>`)}`:l`<span>${e.selectLevel}</span>`}</div>`}function D(t){let e=40,i=-e/2,n=t.levelsHeight,r=n+e*2;return l`<div class="tiles-container" @pointerenter=${t.onPointerEnter} @pointerover=${t.onPointerEnter} @pointermove=${t.onPointerMove} @pointerleave=${t.onPointerLeave} @pointerup=${t.onPointerUp} @click=${t.onClick} style=${u({height:`${r}px`,marginBlockStart:`${i}px`,marginBlockEnd:`${i}px`})} ${L(t.ref)}><div class="tiles-inner-container" style=${u({height:`${n}px`,margin:"0",marginBlockStart:`${20-t.expandedLevelsMargin}px`})}>${t.children}</div></div>`}y("arcgis-building-level-picker",d);return d},"core/reactiveUtils")