@esri/solutions-components 1.1.0-next.20250915 → 1.1.0-next.20250916

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 (462) hide show
  1. package/dist/cdn/{RIQ5GCQE.js → 25NH2H4M.js} +2 -2
  2. package/dist/cdn/{IX7EEQBB.js → 26J5TW6F.js} +2 -2
  3. package/dist/cdn/{QHKT65DL.js → 2AKKLIVI.js} +2 -2
  4. package/dist/cdn/{AUKR4VAD.js → 2BFX7XCS.js} +2 -2
  5. package/dist/cdn/{BQGUX5P7.js → 2KNUXNKX.js} +3 -3
  6. package/dist/cdn/{ZGQHJCEP.js → 2NMCAAGG.js} +2 -2
  7. package/dist/cdn/{3DWPYRJF.js → 2QJXTRKE.js} +2 -2
  8. package/dist/cdn/{LSC5CSFE.js → 2RYL4NBZ.js} +2 -2
  9. package/dist/cdn/36MS2BZS.js +18 -0
  10. package/dist/cdn/{GDE5GUJD.js → 3BS4RZZO.js} +2 -2
  11. package/dist/cdn/{Y4PAHUUQ.js → 3CPOIEEA.js} +2 -2
  12. package/dist/cdn/{G72OGPYS.js → 3L6WYDFP.js} +2 -2
  13. package/dist/cdn/3MRS5MYW.js +4 -0
  14. package/dist/cdn/{S7FXMP4M.js → 3NP3YKXD.js} +2 -2
  15. package/dist/cdn/{WQCAU57J.js → 3XCF36BA.js} +2 -2
  16. package/dist/cdn/{LYMB24SH.js → 3YSB3RU7.js} +2 -2
  17. package/dist/cdn/{OMZI42F4.js → 3ZC6PYQ7.js} +2 -2
  18. package/dist/cdn/{B465E4NZ.js → 43EIKKNQ.js} +4 -4
  19. package/dist/cdn/47SUOA55.js +4 -0
  20. package/dist/cdn/{SXXGRJ55.js → 4ADV4LHU.js} +2 -2
  21. package/dist/cdn/{ZTVSSUEV.js → 4FJEAPWD.js} +2 -2
  22. package/dist/cdn/{3ZVJRN4S.js → 4H4RJGL3.js} +1 -1
  23. package/dist/cdn/{6EP5NBHV.js → 4IB6H45E.js} +2 -2
  24. package/dist/cdn/{KNL65BH7.js → 4IEWBOKU.js} +2 -2
  25. package/dist/cdn/{M345Q3JY.js → 4LGPI4DO.js} +1 -1
  26. package/dist/cdn/{FM22R4L2.js → 4PRICMGV.js} +2 -2
  27. package/dist/cdn/{QBPKYOSC.js → 4QKWUSGG.js} +2 -2
  28. package/dist/cdn/{I57JS754.js → 4RZBOJMG.js} +2 -2
  29. package/dist/cdn/{NN54EVBL.js → 4TJNU6YE.js} +2 -2
  30. package/dist/cdn/{MD4RVIGQ.js → 52GYJL23.js} +2 -2
  31. package/dist/cdn/52XH6FLN.js +4 -0
  32. package/dist/cdn/{LFPN3OJD.js → 5BQSJZ37.js} +2 -2
  33. package/dist/cdn/{K6IML5XN.js → 5DVDAPW6.js} +2 -2
  34. package/dist/cdn/{WSONMJYT.js → 5FWLFUAE.js} +2 -2
  35. package/dist/cdn/{6RTNFNIJ.js → 5GPCF54D.js} +2 -2
  36. package/dist/cdn/{RPDAAN6N.js → 5GQA7ZMT.js} +2 -2
  37. package/dist/cdn/{BTENZPBH.js → 5RN26REC.js} +2 -2
  38. package/dist/cdn/{TQFGT2Z6.js → 5ROKBD6J.js} +2 -2
  39. package/dist/cdn/{4Y3HIEKG.js → 5ZHCUOM5.js} +2 -2
  40. package/dist/cdn/{MEMR4GNS.js → 62NKSV3T.js} +2 -2
  41. package/dist/cdn/{4JVNUQ4S.js → 654WFH6V.js} +2 -2
  42. package/dist/cdn/{NOT567RZ.js → 66SL6MO6.js} +2 -2
  43. package/dist/cdn/{I4FOJIV2.js → 6A4SVEAA.js} +2 -2
  44. package/dist/cdn/{OYEAXGFO.js → 6AZ4TFYV.js} +2 -2
  45. package/dist/cdn/{5N2YFURQ.js → 6DBM64ZX.js} +2 -2
  46. package/dist/cdn/{PPZAKW2A.js → 6F4TRMAR.js} +2 -2
  47. package/dist/cdn/{TBHWKNIX.js → 6GFFWVTF.js} +2 -2
  48. package/dist/cdn/{ZOCVGJ3B.js → 6GLQSACD.js} +2 -2
  49. package/dist/cdn/{VCKTEL4E.js → 6KI6JQCP.js} +2 -2
  50. package/dist/cdn/{I5FEIMM2.js → 6KIHDCGW.js} +2 -2
  51. package/dist/cdn/6N4CDXEZ.js +4 -0
  52. package/dist/cdn/{JWCKTXFY.js → 6QAM2D7S.js} +2 -2
  53. package/dist/cdn/{MBEFN76N.js → 6SHU6HZP.js} +2 -2
  54. package/dist/cdn/{NFZIWCDB.js → 6XKPEQRW.js} +2 -2
  55. package/dist/cdn/{5NZIN72T.js → 6YL365ZT.js} +2 -2
  56. package/dist/cdn/{2GD3OV76.js → 736KNYAY.js} +2 -2
  57. package/dist/cdn/{ZFLCULL4.js → 74TNTVEQ.js} +2 -2
  58. package/dist/cdn/{6X2IRYAJ.js → 7AUPIIQO.js} +2 -2
  59. package/dist/cdn/{BZLB3MYY.js → 7LYTYZFP.js} +2 -2
  60. package/dist/cdn/{UOH6R7FF.js → 7OZOSSU4.js} +2 -2
  61. package/dist/cdn/{B3AHFNAI.js → 7RMQ2FQW.js} +2 -2
  62. package/dist/cdn/{DZE4BNML.js → 7XJLNFSP.js} +2 -2
  63. package/dist/cdn/{FUZFO4ET.js → A3HQHLIF.js} +2 -2
  64. package/dist/cdn/{C5ULGWBN.js → A3NP4BEW.js} +2 -2
  65. package/dist/cdn/{L7UNA7PC.js → AEZTEPNV.js} +2 -2
  66. package/dist/cdn/AHZDNIWQ.js +18 -0
  67. package/dist/cdn/{FBSBX444.js → AJZR4EZI.js} +2 -2
  68. package/dist/cdn/{IWMXRAFT.js → AKVV2HXN.js} +2 -2
  69. package/dist/cdn/{OF5DYRGZ.js → ALVR5XSZ.js} +2 -2
  70. package/dist/cdn/{CIXOAO4C.js → AOBOA2TP.js} +2 -2
  71. package/dist/cdn/{Y3OYGD2U.js → AWAS35HL.js} +2 -2
  72. package/dist/cdn/{NRH3NXW5.js → BDLFFSU5.js} +2 -2
  73. package/dist/cdn/{WYODTBXK.js → BGZTILP5.js} +2 -2
  74. package/dist/cdn/{NAIFE5KD.js → BKOHDB3Q.js} +2 -2
  75. package/dist/cdn/{LZY7JLPB.js → BLE2OBFY.js} +1 -1
  76. package/dist/cdn/{FRMQDHMM.js → BWHLDLC2.js} +2 -2
  77. package/dist/cdn/{YOPX3JNC.js → C3H6OHA4.js} +2 -2
  78. package/dist/cdn/{ST5GR3B7.js → CFKMWGOT.js} +2 -2
  79. package/dist/cdn/{DYSXN5N2.js → CKTPS6ZG.js} +2 -2
  80. package/dist/cdn/{GS6YC5SA.js → CNPTR6BK.js} +2 -2
  81. package/dist/cdn/{YUQRZT7V.js → CP6AC5QD.js} +2 -2
  82. package/dist/cdn/{PF36LRKG.js → CTA5L6K5.js} +1 -1
  83. package/dist/cdn/{NVYNDM5T.js → CUZKFOE5.js} +2 -2
  84. package/dist/cdn/{5LYU2PBU.js → CYM4UZ4V.js} +2 -2
  85. package/dist/cdn/{BZ6REBIQ.js → CZR2QRLU.js} +2 -2
  86. package/dist/cdn/{KZIBJ327.js → CZZBM7JR.js} +2 -2
  87. package/dist/cdn/{FIETUKBQ.js → D4JOFO5G.js} +2 -2
  88. package/dist/cdn/{YCJJR6TE.js → DBGEBPX5.js} +2 -2
  89. package/dist/cdn/{43P7Z5UZ.js → DBIIJ3IL.js} +2 -2
  90. package/dist/cdn/{3QRDV7A2.js → DBXRQYLV.js} +2 -2
  91. package/dist/cdn/{GLPZIBSK.js → DCTHQBJM.js} +2 -2
  92. package/dist/cdn/{G3UBU3M4.js → DJNIJZXV.js} +2 -2
  93. package/dist/cdn/{6SKRQBTY.js → DKCGBLJ7.js} +2 -2
  94. package/dist/cdn/{5TXH33N7.js → DLNAYO43.js} +2 -2
  95. package/dist/cdn/{HVQAR2E4.js → DLQKUUFF.js} +2 -2
  96. package/dist/cdn/{7LQJB2M5.js → DLVBAVQY.js} +2 -2
  97. package/dist/cdn/{UKSGTKSQ.js → DOB53IGQ.js} +2 -2
  98. package/dist/cdn/{SSE44XDG.js → DQELQJ2V.js} +2 -2
  99. package/dist/cdn/{GAM273SE.js → DSKUVHJ7.js} +2 -2
  100. package/dist/cdn/{CTIGHZPQ.js → DSRC6JRP.js} +2 -2
  101. package/dist/cdn/DV45UYZJ.js +4 -0
  102. package/dist/cdn/{LE7ZPHC2.js → DXDQ3CBG.js} +2 -2
  103. package/dist/cdn/{INK7B5PP.js → DYKHCXYT.js} +2 -2
  104. package/dist/cdn/{2B76DKA5.js → E53TOR3H.js} +2 -2
  105. package/dist/cdn/{RFTRNEXX.js → E6SZOM6H.js} +2 -2
  106. package/dist/cdn/{X2WF7UZF.js → E7YWY4R6.js} +2 -2
  107. package/dist/cdn/{VLI5PG45.js → EBPRZHTG.js} +1 -1
  108. package/dist/cdn/{X6PCML64.js → ECJZMR4A.js} +2 -2
  109. package/dist/cdn/{D6UTQG2Q.js → ENCUHP2W.js} +2 -2
  110. package/dist/cdn/{OEWNFNJP.js → EWMBCIAS.js} +2 -2
  111. package/dist/cdn/{4M36Z23I.js → F65R4DWK.js} +2 -2
  112. package/dist/cdn/{ONCS5JRG.js → FANIEO2Z.js} +2 -2
  113. package/dist/cdn/{IUSLEM2V.js → FHLZLYCZ.js} +2 -2
  114. package/dist/cdn/{GDY6I5QI.js → FPA7NPFE.js} +2 -2
  115. package/dist/cdn/{TGD3L47P.js → FREJ5YAJ.js} +1 -1
  116. package/dist/cdn/{7DYTAA74.js → G262OMZ4.js} +2 -2
  117. package/dist/cdn/{RHWSOXL7.js → G73BR7DH.js} +2 -2
  118. package/dist/cdn/{H7VSUZDL.js → GD4TSWHT.js} +2 -2
  119. package/dist/cdn/{BKRAZQCY.js → GEEIXDBK.js} +3 -3
  120. package/dist/cdn/{2BF6AFF4.js → GFGOOTDZ.js} +2 -2
  121. package/dist/cdn/{554U5V7U.js → GG7ES4ED.js} +2 -2
  122. package/dist/cdn/{DZR2ZVKF.js → GIGG6N7V.js} +2 -2
  123. package/dist/cdn/{DWXTL5ZE.js → GIULRKSE.js} +2 -2
  124. package/dist/cdn/{FAWBPCVS.js → GQDYDBO5.js} +1 -1
  125. package/dist/cdn/{CVF7IBRZ.js → GSH4TQSQ.js} +1 -1
  126. package/dist/cdn/{AWLU3N2J.js → GT3BKET3.js} +2 -2
  127. package/dist/cdn/{FWBI5EQX.js → GXMUQTZ6.js} +2 -2
  128. package/dist/cdn/{VCIGEEKK.js → GYDZHSYW.js} +3 -3
  129. package/dist/cdn/{HHQKCUBH.js → GYWYILTV.js} +2 -2
  130. package/dist/cdn/{MEXAQA6P.js → H2TEAILL.js} +2 -2
  131. package/dist/cdn/{VWIBF6IK.js → H32U22XD.js} +2 -2
  132. package/dist/cdn/{J2YPNPEB.js → H3ZLPV6G.js} +2 -2
  133. package/dist/cdn/{MTV7ZBRP.js → HBS5J75X.js} +2 -2
  134. package/dist/cdn/{EPTSSPKZ.js → HD65J7C7.js} +2 -2
  135. package/dist/cdn/{RQ2BC273.js → HEUACJCQ.js} +2 -2
  136. package/dist/cdn/{WFG3UMPY.js → HFMPOVTM.js} +2 -2
  137. package/dist/cdn/{TLMN445W.js → HGBMJ4CU.js} +1 -1
  138. package/dist/cdn/{PNLJZHIL.js → HK5LTAJD.js} +2 -2
  139. package/dist/cdn/{OSCIUHW7.js → HKKMAVAQ.js} +2 -2
  140. package/dist/cdn/{33OZGVVE.js → HLQ5EYPY.js} +2 -2
  141. package/dist/cdn/{ZEGW7ZUH.js → HMFZJ7XD.js} +2 -2
  142. package/dist/cdn/{LPOISRVW.js → HSVOCCH5.js} +1 -1
  143. package/dist/cdn/{34MOART5.js → HUXOAI3T.js} +2 -2
  144. package/dist/cdn/{C5WHRSAD.js → HXAK7ZQ2.js} +2 -2
  145. package/dist/cdn/{BV6GJRBS.js → HXD6TSC3.js} +2 -2
  146. package/dist/cdn/{PCA7YS3N.js → I47YUBIO.js} +2 -2
  147. package/dist/cdn/{THV5RN7W.js → I4KG2DKP.js} +2 -2
  148. package/dist/cdn/{P2PG5QJM.js → I4RKVCPE.js} +2 -2
  149. package/dist/cdn/{ZP6TWN56.js → I4TU5GZV.js} +2 -2
  150. package/dist/cdn/{6CBWE63Y.js → IEWOVPEN.js} +2 -2
  151. package/dist/cdn/{QYDVDKFC.js → IPKRLWJF.js} +2 -2
  152. package/dist/cdn/{IAWHL6FD.js → ISTW7XRR.js} +2 -2
  153. package/dist/cdn/{43T4YZJC.js → IW3RX4NR.js} +2 -2
  154. package/dist/cdn/{52SWRWFF.js → IW6HHO5A.js} +2 -2
  155. package/dist/cdn/{IAHRU6NV.js → IXVMFBX6.js} +2 -2
  156. package/dist/cdn/{3WT7VZ5K.js → IYVSBDE5.js} +2 -2
  157. package/dist/cdn/{CJREEK3X.js → J3EFGQFC.js} +2 -2
  158. package/dist/cdn/{AQ6ZRWV5.js → J5ECCNG4.js} +2 -2
  159. package/dist/cdn/J5RRCLIS.js +4 -0
  160. package/dist/cdn/{GOMGY6VX.js → J5ZGFHP5.js} +2 -2
  161. package/dist/cdn/{VNWIC45J.js → JAZ4FXUV.js} +2 -2
  162. package/dist/cdn/{6BNS2CCK.js → JHLMRWXJ.js} +2 -2
  163. package/dist/cdn/{HA667NBN.js → JJ5YUEQ7.js} +2 -2
  164. package/dist/cdn/{IZUKMU3I.js → JJAMQ4WV.js} +2 -2
  165. package/dist/cdn/JJSTFIP5.js +18 -0
  166. package/dist/cdn/{C7ZTTH6V.js → JKAPZZYN.js} +2 -2
  167. package/dist/cdn/{IJQLFEY3.js → JLRPGXSA.js} +2 -2
  168. package/dist/cdn/{JM6PROVK.js → JLVOAZOX.js} +1 -1
  169. package/dist/cdn/{SHZOCTGS.js → JMTCSKBK.js} +2 -2
  170. package/dist/cdn/{D5C4GXTW.js → JPP3LPWG.js} +1 -1
  171. package/dist/cdn/{T66H724J.js → JQZYDENI.js} +2 -2
  172. package/dist/cdn/{QOA7NOWP.js → JVXUOFJU.js} +2 -2
  173. package/dist/cdn/{YMY4S52N.js → JXVXFJCB.js} +2 -2
  174. package/dist/cdn/{IBQGAAUZ.js → JYZ6ZPQP.js} +2 -2
  175. package/dist/cdn/{CWFZ73CC.js → K3KJUCFR.js} +2 -2
  176. package/dist/cdn/{VNDM3KKW.js → K6BJODFM.js} +2 -2
  177. package/dist/cdn/{R6YBFWZ5.js → KC7UR2GS.js} +2 -2
  178. package/dist/cdn/{BU2ZZSPK.js → KDTI4XON.js} +2 -2
  179. package/dist/cdn/{YW5EOAOB.js → KEZL2CXB.js} +1 -1
  180. package/dist/cdn/{5I5NLBAL.js → KFDV4YXM.js} +2 -2
  181. package/dist/cdn/{ABXNJUFZ.js → KFLNFMJU.js} +2 -2
  182. package/dist/cdn/KWD4A5RO.js +4 -0
  183. package/dist/cdn/{VHCAYK6B.js → L2P4PSVX.js} +1 -1
  184. package/dist/cdn/{PGKF77NJ.js → L4LOKPJ7.js} +2 -2
  185. package/dist/cdn/{O27CKSUF.js → LCP6XACX.js} +2 -2
  186. package/dist/cdn/{3TKXMNN5.js → LFWAEWBU.js} +2 -2
  187. package/dist/cdn/{DIN3AWD3.js → LGCHZIZ3.js} +2 -2
  188. package/dist/cdn/{E2WVQW3B.js → LI4BIIDQ.js} +1 -1
  189. package/dist/cdn/{U7VMANWD.js → LI7L4SBL.js} +2 -2
  190. package/dist/cdn/{IR2BRY4W.js → LIHASDL7.js} +2 -2
  191. package/dist/cdn/{RJV33UI7.js → LSCDXQW3.js} +1 -1
  192. package/dist/cdn/{GSO7UB5E.js → LSKF3CQG.js} +2 -2
  193. package/dist/cdn/{UJN2CDCQ.js → LV3LHRPD.js} +2 -2
  194. package/dist/cdn/{AFKCUCRE.js → LXJN6ZF2.js} +2 -2
  195. package/dist/cdn/{UZXXJ4QO.js → LXRDIGQ6.js} +2 -2
  196. package/dist/cdn/{LZTP3XNG.js → LY2IY6BK.js} +2 -2
  197. package/dist/cdn/{P3SMBYX7.js → LYHZ35GH.js} +2 -2
  198. package/dist/cdn/{3YCYS6UB.js → M42SHERO.js} +1 -1
  199. package/dist/cdn/{EGKDTFGX.js → M4DI6L4H.js} +2 -2
  200. package/dist/cdn/{TEFSOEWM.js → MAAHAOFI.js} +2 -2
  201. package/dist/cdn/{DIW7XXPI.js → MDVS7ZVF.js} +2 -2
  202. package/dist/cdn/{SYMQ5NR5.js → MLQBZ54R.js} +2 -2
  203. package/dist/cdn/{NEOQRUZM.js → MN5CJ6GH.js} +2 -2
  204. package/dist/cdn/{GGTJ2V7O.js → MTUMX4JL.js} +2 -2
  205. package/dist/cdn/{PY2P2XUG.js → MUXAGQOV.js} +1 -1
  206. package/dist/cdn/MUYPLA6D.js +4 -0
  207. package/dist/cdn/{2TR6SF3E.js → MWVNCV4M.js} +2 -2
  208. package/dist/cdn/{NVF5XUDU.js → N5YJZRU3.js} +1 -1
  209. package/dist/cdn/{VFCZINSW.js → N74PTLJ6.js} +2 -2
  210. package/dist/cdn/{A3R52H33.js → NA7EWDYL.js} +2 -2
  211. package/dist/cdn/{DMWQJEFQ.js → NB26BX4K.js} +2 -2
  212. package/dist/cdn/{KAFNY5XJ.js → NCG2CTFW.js} +3 -3
  213. package/dist/cdn/{YSQ35TL6.js → NCUHE5T2.js} +2 -2
  214. package/dist/cdn/NHMXO6EQ.js +4 -0
  215. package/dist/cdn/{EVZCCTG3.js → NIURRJJU.js} +2 -2
  216. package/dist/cdn/{2JIP2VFM.js → NJQH46KQ.js} +2 -2
  217. package/dist/cdn/{UGP5UJAO.js → NKB2LE2O.js} +2 -2
  218. package/dist/cdn/{B24ZIWX6.js → NUUIWFMZ.js} +2 -2
  219. package/dist/cdn/{WZCKREGS.js → NVBJESUA.js} +2 -2
  220. package/dist/cdn/{VXLBZ2KY.js → NVCW7IH4.js} +2 -2
  221. package/dist/cdn/{LBQEFNUG.js → O4UEPX5U.js} +2 -2
  222. package/dist/cdn/{YSTCZGU5.js → O5DQGGJN.js} +2 -2
  223. package/dist/cdn/{XYF6PP7G.js → O6ZND43H.js} +2 -2
  224. package/dist/cdn/{OWJDYP3O.js → OBSOTBQX.js} +2 -2
  225. package/dist/cdn/{ZKOTX3YN.js → OCH4CHGK.js} +2 -2
  226. package/dist/cdn/{QUOZ5XI4.js → OQ3TMEOA.js} +2 -2
  227. package/dist/cdn/{2O4CTKN6.js → ORMEDKMM.js} +2 -2
  228. package/dist/cdn/{G7ZNHQH6.js → OSEAEQLJ.js} +2 -2
  229. package/dist/cdn/{TV2CRYVT.js → OUYNXMB5.js} +2 -2
  230. package/dist/cdn/{SHA4H2QF.js → OXHHVSZR.js} +1 -1
  231. package/dist/cdn/{N6HTM2LL.js → P24X2YJY.js} +1 -1
  232. package/dist/cdn/{4U264RM5.js → P2X5TWZR.js} +2 -2
  233. package/dist/cdn/{RXUZ677T.js → P3TMI6SJ.js} +2 -2
  234. package/dist/cdn/{VPL5B365.js → P77JKZLL.js} +2 -2
  235. package/dist/cdn/{QJLTXY2W.js → PCUTOVRB.js} +2 -2
  236. package/dist/cdn/{ZI52D7B4.js → PGKJC7ZA.js} +2 -2
  237. package/dist/cdn/{VVY2D54K.js → PHC4QVTF.js} +2 -2
  238. package/dist/cdn/PHZ4ZQM2.js +4 -0
  239. package/dist/cdn/{5PV5TOZF.js → PKOD3YMJ.js} +2 -2
  240. package/dist/cdn/{U726BBFJ.js → QCRDAISM.js} +2 -2
  241. package/dist/cdn/{7YU27J5R.js → QF52RJUT.js} +2 -2
  242. package/dist/cdn/{54VXW7RM.js → QHOJGFH5.js} +1 -1
  243. package/dist/cdn/{MVURGASL.js → QIWB3K67.js} +1 -1
  244. package/dist/cdn/{YBZOD3V6.js → QJ32P4G7.js} +2 -2
  245. package/dist/cdn/{KL73F75A.js → QNYIPNQH.js} +2 -2
  246. package/dist/cdn/{LQIJAYRB.js → QOI5XR63.js} +2 -2
  247. package/dist/cdn/{TVFADKE5.js → QS6F3IWC.js} +2 -2
  248. package/dist/cdn/{OANTUAWC.js → QTI3CWLT.js} +1 -1
  249. package/dist/cdn/{3HOWHIR4.js → QTI5Y7Z6.js} +1 -1
  250. package/dist/cdn/{W5JM3M4N.js → QVLG4DIC.js} +1 -1
  251. package/dist/cdn/{7VI5VLTH.js → R6YV6SW3.js} +1 -1
  252. package/dist/cdn/{MQRCPT57.js → RPWIPJQA.js} +2 -2
  253. package/dist/cdn/{DTOSVUFP.js → RT4ZXNGS.js} +2 -2
  254. package/dist/cdn/{Z3XMONKF.js → RTFPQNFH.js} +2 -2
  255. package/dist/cdn/RZMG6VLL.js +4 -0
  256. package/dist/cdn/{GH3OEHVC.js → S2EMXUPX.js} +2 -2
  257. package/dist/cdn/{3H7OAAPN.js → S7DMKSRD.js} +2 -2
  258. package/dist/cdn/{3SHNMGNE.js → SDSYG75W.js} +2 -2
  259. package/dist/cdn/{FTC6VYO7.js → SE7YYJ3P.js} +2 -2
  260. package/dist/cdn/{TKDIFYNA.js → SFVC54W6.js} +2 -2
  261. package/dist/cdn/{3NX7LAGT.js → SGHSHOZF.js} +2 -2
  262. package/dist/cdn/{ZAL6OLCR.js → SJN4JWJ2.js} +2 -2
  263. package/dist/cdn/{PMBAX5SP.js → SLRB4XTI.js} +2 -2
  264. package/dist/cdn/{QYXJP2QM.js → SS65JOJS.js} +2 -2
  265. package/dist/cdn/{7HH27IGN.js → STXXNL2P.js} +2 -2
  266. package/dist/cdn/{5MPYPYOJ.js → SX7HI2WN.js} +2 -2
  267. package/dist/cdn/{52X6RU6Y.js → T3V4CXZ5.js} +2 -2
  268. package/dist/cdn/{OMW3P6KC.js → TDED7NN4.js} +2 -2
  269. package/dist/cdn/{Z4EC5CR5.js → TLIXZXAL.js} +2 -2
  270. package/dist/cdn/{MHSQGWNM.js → TLXN2R36.js} +2 -2
  271. package/dist/cdn/{EBPG5BUM.js → TMYV33RM.js} +2 -2
  272. package/dist/cdn/{VMVI7FJX.js → TV3HM7KC.js} +2 -2
  273. package/dist/cdn/{DTTFO72X.js → TYLPNULJ.js} +2 -2
  274. package/dist/cdn/{BPZ7FHPG.js → U2XTS5PX.js} +2 -2
  275. package/dist/cdn/{2O3I4FLG.js → UANZUKDZ.js} +1 -1
  276. package/dist/cdn/{NYKV7RVI.js → UCCX64WI.js} +2 -2
  277. package/dist/cdn/{H7QFV5L4.js → UF63RRQG.js} +2 -2
  278. package/dist/cdn/{PYLMEGHL.js → UGQ7A3AV.js} +2 -2
  279. package/dist/cdn/{XY7OA6LX.js → UJXTDRKH.js} +2 -2
  280. package/dist/cdn/{F67QHOP4.js → UQL623WY.js} +2 -2
  281. package/dist/cdn/{F2F4ZQWX.js → UR34PQM6.js} +2 -2
  282. package/dist/cdn/{QKQFLJEW.js → URWF25IM.js} +1 -1
  283. package/dist/cdn/{BPM67OHZ.js → UWFYVH4K.js} +2 -2
  284. package/dist/cdn/{RRA3677S.js → V3JBT2VO.js} +2 -2
  285. package/dist/cdn/{XAX4WSHD.js → V4T4FLBM.js} +2 -2
  286. package/dist/cdn/{EYDRPC6N.js → V74WMMJB.js} +2 -2
  287. package/dist/cdn/{4QPGV53Y.js → VC3YBN3V.js} +2 -2
  288. package/dist/cdn/{WSKRZ2VB.js → VDKILCQU.js} +2 -2
  289. package/dist/cdn/{R6D2UIFA.js → VP6ATLIU.js} +1 -1
  290. package/dist/cdn/{JZANALRQ.js → VQTUGW26.js} +1 -1
  291. package/dist/cdn/{KUQG7TIF.js → VRDXQ6BM.js} +2 -2
  292. package/dist/cdn/{2KF645QK.js → VSVRHPO4.js} +2 -2
  293. package/dist/cdn/{BB2XXRZT.js → VT4PBX6Z.js} +2 -2
  294. package/dist/cdn/{PP25P7GZ.js → VTBEKVUE.js} +2 -2
  295. package/dist/cdn/{E3YJDDLZ.js → W2BOJNBA.js} +2 -2
  296. package/dist/cdn/{OWDEQZVO.js → W2TFJZ6H.js} +2 -2
  297. package/dist/cdn/{64Y7QLNE.js → W3I3P3E3.js} +2 -2
  298. package/dist/cdn/{7O6Z4LR2.js → W7JJ5LBO.js} +2 -2
  299. package/dist/cdn/{J5PVPWD7.js → WHWIQOTA.js} +1 -1
  300. package/dist/cdn/{6L2WVKHI.js → WIM65OI7.js} +2 -2
  301. package/dist/cdn/{M6CD4BN4.js → WITOBU6C.js} +2 -2
  302. package/dist/cdn/WQPG2JQH.js +4 -0
  303. package/dist/cdn/{RCOZSAP5.js → WSSXTZBW.js} +2 -2
  304. package/dist/cdn/{YICWTZ66.js → WTPWH2ET.js} +2 -2
  305. package/dist/cdn/{TBF22CD2.js → WV4LBTYJ.js} +3 -3
  306. package/dist/cdn/{FULFGP3F.js → WZOYXSYY.js} +2 -2
  307. package/dist/cdn/{NRGEWVDW.js → X67CXNGQ.js} +2 -2
  308. package/dist/cdn/{TTCVHUHL.js → X6NRFLGH.js} +2 -2
  309. package/dist/cdn/{J4ZQABGE.js → XAPJBUP6.js} +2 -2
  310. package/dist/cdn/{WTTBTH3S.js → XCZQIL5K.js} +2 -2
  311. package/dist/cdn/{2YAE2VPK.js → XD7XWS2A.js} +2 -2
  312. package/dist/cdn/{UIJNBZYV.js → XEOHQBGQ.js} +2 -2
  313. package/dist/cdn/{NYPLUO44.js → XHS53W7M.js} +2 -2
  314. package/dist/cdn/{CBP7V4DB.js → XJKHNI3V.js} +1 -1
  315. package/dist/cdn/{RJELXVPN.js → XMVYDTZX.js} +2 -2
  316. package/dist/cdn/{H63J57Z5.js → XTK6I3AO.js} +2 -2
  317. package/dist/cdn/{JEQPY42O.js → XXOIDYE4.js} +2 -2
  318. package/dist/cdn/{CVXTK3O5.js → XXOSG43E.js} +2 -2
  319. package/dist/cdn/{7FPCXDBU.js → XXXOK2AN.js} +1 -1
  320. package/dist/cdn/{LEZUMLIY.js → XY3O2MJN.js} +2 -2
  321. package/dist/cdn/{FMZMXI2O.js → Y3QQP2G6.js} +2 -2
  322. package/dist/cdn/{SUEDCHYV.js → Y5B57EZE.js} +1 -1
  323. package/dist/cdn/{DC37HN4X.js → YC5XQ6ZJ.js} +2 -2
  324. package/dist/cdn/{QWOZUBAK.js → YNFEL2C5.js} +1 -1
  325. package/dist/cdn/{5XH676RD.js → YNFPJ2LU.js} +1 -1
  326. package/dist/cdn/{ERUDGHKS.js → YNSWH2TV.js} +2 -2
  327. package/dist/cdn/{2W5MR3Y3.js → YPWE4SGR.js} +1 -1
  328. package/dist/cdn/{VP4DOUM5.js → YTZJN2OT.js} +2 -2
  329. package/dist/cdn/{F3INRHT2.js → Z3GF7PSG.js} +2 -2
  330. package/dist/cdn/{ZEBUKVPN.js → Z3RNLOPZ.js} +2 -2
  331. package/dist/cdn/{UA7VEQFE.js → Z47BL7RC.js} +2 -2
  332. package/dist/cdn/{24WEMWBB.js → Z56TZW33.js} +2 -2
  333. package/dist/cdn/{XYDZNT2T.js → ZCAXJDQM.js} +2 -2
  334. package/dist/cdn/ZCVEHHZX.js +6 -0
  335. package/dist/cdn/{O6GZZYGL.js → ZDHGSMY4.js} +2 -2
  336. package/dist/cdn/{CLTJE2FJ.js → ZKOXORB3.js} +2 -2
  337. package/dist/cdn/{MYFMH7UI.js → ZMR6JDJO.js} +2 -2
  338. package/dist/cdn/{4CAPXBCZ.js → ZSHDAEHR.js} +2 -2
  339. package/dist/cdn/{747EZYUX.js → ZTVTWYQI.js} +2 -2
  340. package/dist/cdn/{ZPZX43FS.js → ZW4HOB5Z.js} +2 -2
  341. package/dist/cdn/index.js +2 -2
  342. package/dist/chunks/Auth.js +1 -1
  343. package/dist/chunks/CardsFetcher.js +1 -1
  344. package/dist/chunks/appConfig.js +1 -1
  345. package/dist/chunks/cardFetchingUtils.js +1 -1
  346. package/dist/chunks/cardsHelpers.js +47 -41
  347. package/dist/chunks/common.js +1 -1
  348. package/dist/chunks/deployAppContexts.js +1 -1
  349. package/dist/chunks/downloadUtils.js +1 -1
  350. package/dist/chunks/getItemIcon.js +1 -1
  351. package/dist/chunks/helpers.js +1 -1
  352. package/dist/chunks/interfaces.js +1 -1
  353. package/dist/chunks/loadModules.js +1 -1
  354. package/dist/chunks/mapViewUtils.js +1 -1
  355. package/dist/chunks/pciUtils.js +1 -1
  356. package/dist/chunks/popupUtils.js +1 -1
  357. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  358. package/dist/chunks/privilegeUtils.js +1 -1
  359. package/dist/chunks/publicNotificationContext.js +1 -1
  360. package/dist/chunks/queryUtils.js +1 -1
  361. package/dist/chunks/runtime.js +1 -1
  362. package/dist/chunks/solution-store.js +1 -1
  363. package/dist/chunks/templates.js +1 -1
  364. package/dist/chunks/useT9n.js +1 -1
  365. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  366. package/dist/components/basemap-gallery/customElement.js +1 -1
  367. package/dist/components/buffer-tools/customElement.js +1 -1
  368. package/dist/components/card-manager/customElement.js +1 -1
  369. package/dist/components/consent-manager/customElement.js +1 -1
  370. package/dist/components/create-feature/customElement.js +1 -1
  371. package/dist/components/create-related-feature/customElement.js +1 -1
  372. package/dist/components/crowdsource-manager/customElement.js +1 -1
  373. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  374. package/dist/components/deduct-calculator/customElement.js +1 -1
  375. package/dist/components/delete-button/customElement.js +1 -1
  376. package/dist/components/delete-dialog/customElement.js +1 -1
  377. package/dist/components/edit-card/customElement.js +1 -1
  378. package/dist/components/feature-details/customElement.js +1 -1
  379. package/dist/components/feature-list/customElement.js +1 -1
  380. package/dist/components/field-selection/customElement.js +1 -1
  381. package/dist/components/floor-filter/customElement.js +1 -1
  382. package/dist/components/info-card/customElement.js +1 -1
  383. package/dist/components/json-editor/customElement.js +1 -1
  384. package/dist/components/layer-list/customElement.js +1 -1
  385. package/dist/components/layer-table/customElement.js +1 -1
  386. package/dist/components/map-card/customElement.js +1 -1
  387. package/dist/components/map-draw-tools/customElement.js +1 -1
  388. package/dist/components/map-fullscreen/customElement.js +1 -1
  389. package/dist/components/map-layer-picker/customElement.js +1 -1
  390. package/dist/components/map-legend/customElement.js +1 -1
  391. package/dist/components/map-picker/customElement.js +1 -1
  392. package/dist/components/map-search/customElement.js +1 -1
  393. package/dist/components/map-select-tools/customElement.js +1 -1
  394. package/dist/components/map-tools/customElement.js +1 -1
  395. package/dist/components/pci-calculator/customElement.js +1 -1
  396. package/dist/components/pdf-download/customElement.js +1 -1
  397. package/dist/components/public-notification/customElement.js +1 -1
  398. package/dist/components/refine-selection/customElement.js +1 -1
  399. package/dist/components/selection-tool/customElement.js +1 -1
  400. package/dist/components/solution-article-card/customElement.js +1 -1
  401. package/dist/components/solution-configuration/customElement.js +1 -1
  402. package/dist/components/solution-configure-dialog/customElement.js +1 -1
  403. package/dist/components/solution-configure-titles/customElement.js +1 -1
  404. package/dist/components/solution-contents/customElement.js +1 -1
  405. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  406. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  407. package/dist/components/solution-deployed-card/customElement.js +1 -1
  408. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  409. package/dist/components/solution-details-card/customElement.js +2 -2
  410. package/dist/components/solution-details-panel/customElement.js +1 -1
  411. package/dist/components/solution-item/customElement.js +1 -1
  412. package/dist/components/solution-item-accordion/customElement.js +1 -1
  413. package/dist/components/solution-item-details/customElement.js +1 -1
  414. package/dist/components/solution-item-diagram/customElement.js +1 -1
  415. package/dist/components/solution-item-icon/customElement.js +1 -1
  416. package/dist/components/solution-item-sharing/customElement.js +1 -1
  417. package/dist/components/solution-organization-variables/customElement.js +1 -1
  418. package/dist/components/solution-resource-item/customElement.js +1 -1
  419. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  420. package/dist/components/solution-social-share/customElement.js +1 -1
  421. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  422. package/dist/components/solution-template-data/customElement.js +1 -1
  423. package/dist/components/solution-variables/customElement.js +1 -1
  424. package/dist/components/solutions-all-panel/customElement.js +1 -1
  425. package/dist/components/solutions-all-shell/customElement.d.ts +2 -1
  426. package/dist/components/solutions-all-shell/customElement.js +16 -1
  427. package/dist/components/solutions-article-panel/customElement.js +1 -1
  428. package/dist/components/solutions-articles/customElement.js +1 -1
  429. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  430. package/dist/components/solutions-deploy-app/customElement.d.ts +2 -2
  431. package/dist/components/solutions-deploy-app/customElement.js +33 -33
  432. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  433. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  434. package/dist/components/solutions-deployed-shell/customElement.d.ts +2 -1
  435. package/dist/components/solutions-deployed-shell/customElement.js +20 -5
  436. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  437. package/dist/components/spatial-ref/customElement.js +1 -1
  438. package/dist/components/store-manager/customElement.js +1 -1
  439. package/dist/docs/api.json +193 -3
  440. package/dist/docs/docs.json +154 -4
  441. package/dist/docs/vscode.html-custom-data.json +3 -3
  442. package/dist/docs/web-types.json +4 -4
  443. package/dist/index.js +1 -1
  444. package/dist/loader.js +3 -3
  445. package/dist/utils/cardsHelpers.d.ts +7 -0
  446. package/package.json +1 -1
  447. package/dist/cdn/2ELL72QQ.js +0 -4
  448. package/dist/cdn/4G52MAZB.js +0 -4
  449. package/dist/cdn/5BRYQYLS.js +0 -4
  450. package/dist/cdn/BXOFLEI3.js +0 -4
  451. package/dist/cdn/CHNL3NJM.js +0 -18
  452. package/dist/cdn/CQFSXIPT.js +0 -4
  453. package/dist/cdn/DK2HMUHG.js +0 -18
  454. package/dist/cdn/DPWET3UD.js +0 -4
  455. package/dist/cdn/FC7ZE2XZ.js +0 -4
  456. package/dist/cdn/LJ3R5BVX.js +0 -4
  457. package/dist/cdn/MVI3SE2O.js +0 -4
  458. package/dist/cdn/QZPHWFTI.js +0 -4
  459. package/dist/cdn/SI7LT3DJ.js +0 -18
  460. package/dist/cdn/YLEBBIEI.js +0 -4
  461. package/dist/cdn/YN7A75XN.js +0 -4
  462. package/dist/cdn/ZNV2KGHK.js +0 -6
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250915 */
4
- import{a as m}from"./7DYTAA74.js";import{a as d}from"./T66H724J.js";import{b as p}from"./RFTRNEXX.js";import"./X6PCML64.js";import"./ZP6TWN56.js";import{C as h,D as o,E as b,h as l,i as n}from"./ZNV2KGHK.js";import"./D5C4GXTW.js";export default $arcgis.t(([{watch:_},s,g,D,y])=>{var B=l`:host{--label-padding-inline: 12px;--calcite-action-bar-items-space: 8px}calcite-label span,.checkbox-wrapper{padding-inline:var(--label-padding-inline)}`,x={type:"simple-fill",color:[100,100,100,.5],outline:{color:[255,255,255,255]}};function w(r,e){return new D({geometry:r,symbol:e})}async function v({graphic:r,distance:e,unit:t,isGeodesic:i}){i&&!s.isLoaded()&&await s.load();let a=i?s:g;try{let f={unit:t},u=a.execute(r.geometry,e,f);if(!u)throw new Error("buffer failed");return u}catch(f){console.error(String(f))}}var M=["meters","kilometers","miles","yards","feet","us-feet"],c=class extends b{constructor(){super(),this._bufferDistance=1,this._bufferMinDistance=.1,this._bufferMaxDistance=1e6,this._bufferInputStep=1,this._messages=d({name:"instant-apps-buffer",blocking:!0}),this._readyToBuffer=!1,this._firstFocusableElement=h(),this.bufferUnit="miles",this.geodesicBufferEnabled=!1,this.disabled=!1,this.bufferLayer=new y}static{this.properties={bufferLayer:0,inputGraphics:0,view:0,bufferUnit:3,bufferInputStep:11,bufferDistance:11,bufferMinDistance:11,bufferMaxDistance:11,geodesicBufferEnabled:7,disabled:7,readyToBuffer:39}}static{this.styles=B}get bufferInputStep(){return this._bufferInputStep}set bufferInputStep(e){this._validateBufferNumber(e,"bufferInputStep"),this._bufferInputStep=e}get bufferDistance(){return this._bufferDistance}set bufferDistance(e){if(this._validateBufferNumber(e,"bufferDistance"),e<this.bufferMinDistance)throw new Error("bufferDistance must be greater than bufferMinDistance");if(e>this.bufferMaxDistance)throw new Error("bufferDistance must be less than bufferMaxDistance");this._bufferDistance=e}get bufferMinDistance(){return this._bufferMinDistance}set bufferMinDistance(e){if(this._validateBufferNumber(e,"bufferMinDistance"),e>this.bufferMaxDistance)throw new Error("bufferMinDistance must be less than bufferMaxDistance");this._bufferMinDistance=e}get bufferMaxDistance(){return this._bufferMaxDistance}set bufferMaxDistance(e){if(this._validateBufferNumber(e,"bufferMaxDistance"),e<this.bufferMinDistance)throw new Error("bufferMaxDistance must be greater than bufferMinDistance");this._bufferMaxDistance=e}get readyToBuffer(){return this._readyToBuffer}async clearBufferLayer(){this._clearBufferLayer()}async setFocus(){await this._firstFocusableElement.value?.setFocus()}willUpdate(e){(e.has("view")||e.has("inputGraphics")||e.has("bufferLayer"))&&this._validateBufferCapability()}disconnectedCallback(){super.disconnectedCallback(),this._inputGraphicsWatchHandle?.remove()}_clearBufferLayer(){this.bufferLayer?.removeAll()}async _onCreateBufferClick(){this._readyToBuffer&&await this._bufferInputGraphics()}_onRemoveBufferClick(){this._clearBufferLayer()}_onBufferDistanceChange(e){let t=Number(e.target.value);t>=this.bufferMinDistance&&t<=this.bufferMaxDistance&&(this.bufferDistance=t)}_onBufferUnitChange(e){let t=e.target.value;this.bufferUnit=t}_onGeodesicBufferChange(e){let t=e.target.checked;this.geodesicBufferEnabled=t}_validateBufferNumber(e,t){if(typeof e!="number"||Number.isNaN(e))throw new Error(`${t} must be a valid number`);if(e<=0)throw new Error(`${t} must be > 0`)}_validateBufferCapability(){let e=!!this.view,t=!!this.inputGraphics,i=!!this.bufferLayer;e&&t&&i?(this._inputGraphicsWatchHandle?.remove(),this._inputGraphicsWatchHandle=_(()=>this.inputGraphics?.length,a=>{a&&a>0?this._readyToBuffer=!0:this._readyToBuffer=!1},{initial:!0})):(this._readyToBuffer=!1,this._inputGraphicsWatchHandle?.remove())}async _bufferInputGraphics(){if(!this.bufferLayer||!this.view||!this.inputGraphics)return;this.view.map?.layers.indexOf(this.bufferLayer)===-1?this.view.map.add(this.bufferLayer):this.bufferLayer.removeAll();let e=[];for(let i of this.inputGraphics){let a=v({graphic:i,distance:this.bufferDistance,unit:this.bufferUnit,isGeodesic:this.geodesicBufferEnabled});e.push(a)}let t=(await Promise.all(e)).filter(i=>!!i).map(i=>w(i,x));this.bufferLayer.addMany(t)}render(){return n`<calcite-action-bar expand-disabled expanded><calcite-action-group><calcite-action .text=${this._messages.labels.draw} icon=circle text-enabled .disabled=${this.disabled} @click=${this._onCreateBufferClick} ${o(this._firstFocusableElement)}></calcite-action><calcite-action .text=${this._messages.labels.remove} icon=trash text-enabled .disabled=${this.disabled} @click=${this._onRemoveBufferClick}></calcite-action></calcite-action-group><calcite-action-group><calcite-label><span>${this._messages.labels.distance}</span><calcite-input-number .value=${`${this.bufferDistance}`} .step=${this.bufferInputStep} .min=${this.bufferMinDistance} .max=${this.bufferMaxDistance} .disabled=${this.disabled} @calciteInputNumberChange=${this._onBufferDistanceChange}></calcite-input-number></calcite-label><calcite-label><span>${this._messages.labels.unit}</span><calcite-select .label=${this._messages.labels.unit} @calciteSelectChange=${this._onBufferUnitChange} .disabled=${this.disabled}>${m(M,e=>e,e=>n`<calcite-option .value=${e} .selected=${this.bufferUnit===e}>${this._messages.units[e]}</calcite-option>`)}</calcite-select></calcite-label><div class="checkbox-wrapper"><calcite-label layout=inline><calcite-checkbox .checked=${this.geodesicBufferEnabled} .disabled=${this.disabled} @calciteCheckboxChange=${this._onGeodesicBufferChange}></calcite-checkbox>${this._messages.labels.toggleGeodesic}</calcite-label></div></calcite-action-group></calcite-action-bar>`}};p("instant-apps-buffer",c);return c},"core/reactiveUtils","geometry/operators/geodesicBufferOperator","geometry/operators/bufferOperator","Graphic","layers/GraphicsLayer")
3
+ v1.1.0-next.20250916 */
4
+ import{a as m}from"./G262OMZ4.js";import{a as d}from"./JQZYDENI.js";import{b as p}from"./E6SZOM6H.js";import"./ECJZMR4A.js";import"./I4TU5GZV.js";import{C as h,D as o,E as b,h as l,i as n}from"./ZCVEHHZX.js";import"./JPP3LPWG.js";export default $arcgis.t(([{watch:_},s,g,D,y])=>{var B=l`:host{--label-padding-inline: 12px;--calcite-action-bar-items-space: 8px}calcite-label span,.checkbox-wrapper{padding-inline:var(--label-padding-inline)}`,x={type:"simple-fill",color:[100,100,100,.5],outline:{color:[255,255,255,255]}};function w(r,e){return new D({geometry:r,symbol:e})}async function v({graphic:r,distance:e,unit:t,isGeodesic:i}){i&&!s.isLoaded()&&await s.load();let a=i?s:g;try{let f={unit:t},u=a.execute(r.geometry,e,f);if(!u)throw new Error("buffer failed");return u}catch(f){console.error(String(f))}}var M=["meters","kilometers","miles","yards","feet","us-feet"],c=class extends b{constructor(){super(),this._bufferDistance=1,this._bufferMinDistance=.1,this._bufferMaxDistance=1e6,this._bufferInputStep=1,this._messages=d({name:"instant-apps-buffer",blocking:!0}),this._readyToBuffer=!1,this._firstFocusableElement=h(),this.bufferUnit="miles",this.geodesicBufferEnabled=!1,this.disabled=!1,this.bufferLayer=new y}static{this.properties={bufferLayer:0,inputGraphics:0,view:0,bufferUnit:3,bufferInputStep:11,bufferDistance:11,bufferMinDistance:11,bufferMaxDistance:11,geodesicBufferEnabled:7,disabled:7,readyToBuffer:39}}static{this.styles=B}get bufferInputStep(){return this._bufferInputStep}set bufferInputStep(e){this._validateBufferNumber(e,"bufferInputStep"),this._bufferInputStep=e}get bufferDistance(){return this._bufferDistance}set bufferDistance(e){if(this._validateBufferNumber(e,"bufferDistance"),e<this.bufferMinDistance)throw new Error("bufferDistance must be greater than bufferMinDistance");if(e>this.bufferMaxDistance)throw new Error("bufferDistance must be less than bufferMaxDistance");this._bufferDistance=e}get bufferMinDistance(){return this._bufferMinDistance}set bufferMinDistance(e){if(this._validateBufferNumber(e,"bufferMinDistance"),e>this.bufferMaxDistance)throw new Error("bufferMinDistance must be less than bufferMaxDistance");this._bufferMinDistance=e}get bufferMaxDistance(){return this._bufferMaxDistance}set bufferMaxDistance(e){if(this._validateBufferNumber(e,"bufferMaxDistance"),e<this.bufferMinDistance)throw new Error("bufferMaxDistance must be greater than bufferMinDistance");this._bufferMaxDistance=e}get readyToBuffer(){return this._readyToBuffer}async clearBufferLayer(){this._clearBufferLayer()}async setFocus(){await this._firstFocusableElement.value?.setFocus()}willUpdate(e){(e.has("view")||e.has("inputGraphics")||e.has("bufferLayer"))&&this._validateBufferCapability()}disconnectedCallback(){super.disconnectedCallback(),this._inputGraphicsWatchHandle?.remove()}_clearBufferLayer(){this.bufferLayer?.removeAll()}async _onCreateBufferClick(){this._readyToBuffer&&await this._bufferInputGraphics()}_onRemoveBufferClick(){this._clearBufferLayer()}_onBufferDistanceChange(e){let t=Number(e.target.value);t>=this.bufferMinDistance&&t<=this.bufferMaxDistance&&(this.bufferDistance=t)}_onBufferUnitChange(e){let t=e.target.value;this.bufferUnit=t}_onGeodesicBufferChange(e){let t=e.target.checked;this.geodesicBufferEnabled=t}_validateBufferNumber(e,t){if(typeof e!="number"||Number.isNaN(e))throw new Error(`${t} must be a valid number`);if(e<=0)throw new Error(`${t} must be > 0`)}_validateBufferCapability(){let e=!!this.view,t=!!this.inputGraphics,i=!!this.bufferLayer;e&&t&&i?(this._inputGraphicsWatchHandle?.remove(),this._inputGraphicsWatchHandle=_(()=>this.inputGraphics?.length,a=>{a&&a>0?this._readyToBuffer=!0:this._readyToBuffer=!1},{initial:!0})):(this._readyToBuffer=!1,this._inputGraphicsWatchHandle?.remove())}async _bufferInputGraphics(){if(!this.bufferLayer||!this.view||!this.inputGraphics)return;this.view.map?.layers.indexOf(this.bufferLayer)===-1?this.view.map.add(this.bufferLayer):this.bufferLayer.removeAll();let e=[];for(let i of this.inputGraphics){let a=v({graphic:i,distance:this.bufferDistance,unit:this.bufferUnit,isGeodesic:this.geodesicBufferEnabled});e.push(a)}let t=(await Promise.all(e)).filter(i=>!!i).map(i=>w(i,x));this.bufferLayer.addMany(t)}render(){return n`<calcite-action-bar expand-disabled expanded><calcite-action-group><calcite-action .text=${this._messages.labels.draw} icon=circle text-enabled .disabled=${this.disabled} @click=${this._onCreateBufferClick} ${o(this._firstFocusableElement)}></calcite-action><calcite-action .text=${this._messages.labels.remove} icon=trash text-enabled .disabled=${this.disabled} @click=${this._onRemoveBufferClick}></calcite-action></calcite-action-group><calcite-action-group><calcite-label><span>${this._messages.labels.distance}</span><calcite-input-number .value=${`${this.bufferDistance}`} .step=${this.bufferInputStep} .min=${this.bufferMinDistance} .max=${this.bufferMaxDistance} .disabled=${this.disabled} @calciteInputNumberChange=${this._onBufferDistanceChange}></calcite-input-number></calcite-label><calcite-label><span>${this._messages.labels.unit}</span><calcite-select .label=${this._messages.labels.unit} @calciteSelectChange=${this._onBufferUnitChange} .disabled=${this.disabled}>${m(M,e=>e,e=>n`<calcite-option .value=${e} .selected=${this.bufferUnit===e}>${this._messages.units[e]}</calcite-option>`)}</calcite-select></calcite-label><div class="checkbox-wrapper"><calcite-label layout=inline><calcite-checkbox .checked=${this.geodesicBufferEnabled} .disabled=${this.disabled} @calciteCheckboxChange=${this._onGeodesicBufferChange}></calcite-checkbox>${this._messages.labels.toggleGeodesic}</calcite-label></div></calcite-action-group></calcite-action-bar>`}};p("instant-apps-buffer",c);return c},"core/reactiveUtils","geometry/operators/geodesicBufferOperator","geometry/operators/bufferOperator","Graphic","layers/GraphicsLayer")
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250915 */
4
- import{a as h}from"./T66H724J.js";import{b as v}from"./RFTRNEXX.js";import"./X6PCML64.js";import"./ZP6TWN56.js";import{C as m,D as d,E as u,G as i,h as n,i as l,o as r,r as p}from"./ZNV2KGHK.js";import"./D5C4GXTW.js";var T=n`@layer{:host .sc-instant-apps-measurement{background:var(--calcite-color-foreground-1)}:host .active-tool{--calcite-color-foreground-1: #c7eaff}}`,$={content:"instant-apps-measurement__content"},s=class extends u{constructor(){super(...arguments),this._messages=h({name:"instant-apps-measurement",blocking:!0}),this.measureTool=m(),this.closable=!1,this.measureActive=r()}static{this.properties={view:0,areaUnit:1,linearUnit:1,coordinateFormat:1,activeToolType:1,closable:5}}static{this.styles=T}static{this.shadowRootOptions=p}_handleToolClick(t){if(!this?.measureTool)return;let a=t?.target;if(!(a instanceof HTMLElement))return;let e=a?.dataset.value;if(e!=="distance"&&e!=="area"&&e!=="point"&&e!=="clear")return;e&&this.measureTool.value&&(this.measureTool.value.activeTool=e);let c=document.getElementsByClassName("active-tool");for(let o=0;o<c?.length;o++)c[o]?.classList?.remove("active-tool");a?.classList.add("active-tool"),this.measureActive.emit(!(e===void 0||e==="clear"))}render(){return l`<calcite-panel .heading=${this._messages.label} .closable=${this.closable}><div slot=content-top>${this.renderActionBar()}</div><div>${this.renderMeasureToolPanel()}</div></calcite-panel>`}renderMeasureToolPanel(){let{view:t,coordinateFormat:a,areaUnit:e,linearUnit:c,activeToolType:o}=this;return l`<calcite-panel class=${i($.content)}><instant-apps-measurement-tool .view=${t} .measureConfiguration=${{coordinateFormat:a,areaUnit:e,linearUnit:c,activeToolType:o}} .activeTool=${this.activeToolType} ${d(this.measureTool)}></instant-apps-measurement-tool></calcite-panel>`}renderActionBar(){let{_messages:t,activeToolType:a}=this;return l`<calcite-action-bar expand-disabled layout=horizontal position=end><calcite-action class=${i(a==="distance"?"active-tool":"")} .text=${t.line} icon=measure scale=m data-value=distance @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.line}</calcite-tooltip></calcite-action><calcite-action class=${i(a==="area"?"active-tool":"")} .text=${t.area} scale=m icon=measure-area data-value=area @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.area}</calcite-tooltip></calcite-action><calcite-action class=${i(a==="point"?"active-tool":"")} .text=${t.point} scale=m icon=pin-plus data-value=point @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.point}</calcite-tooltip></calcite-action><calcite-action .text=${t.clear} scale=m icon=trash data-value=clear @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.clear}</calcite-tooltip></calcite-action></calcite-action-bar>`}};v("instant-apps-measurement",s);export{s as InstantAppsMeasurement};
3
+ v1.1.0-next.20250916 */
4
+ import{a as h}from"./JQZYDENI.js";import{b as v}from"./E6SZOM6H.js";import"./ECJZMR4A.js";import"./I4TU5GZV.js";import{C as m,D as d,E as u,G as i,h as n,i as l,o as r,r as p}from"./ZCVEHHZX.js";import"./JPP3LPWG.js";var T=n`@layer{:host .sc-instant-apps-measurement{background:var(--calcite-color-foreground-1)}:host .active-tool{--calcite-color-foreground-1: #c7eaff}}`,$={content:"instant-apps-measurement__content"},s=class extends u{constructor(){super(...arguments),this._messages=h({name:"instant-apps-measurement",blocking:!0}),this.measureTool=m(),this.closable=!1,this.measureActive=r()}static{this.properties={view:0,areaUnit:1,linearUnit:1,coordinateFormat:1,activeToolType:1,closable:5}}static{this.styles=T}static{this.shadowRootOptions=p}_handleToolClick(t){if(!this?.measureTool)return;let a=t?.target;if(!(a instanceof HTMLElement))return;let e=a?.dataset.value;if(e!=="distance"&&e!=="area"&&e!=="point"&&e!=="clear")return;e&&this.measureTool.value&&(this.measureTool.value.activeTool=e);let c=document.getElementsByClassName("active-tool");for(let o=0;o<c?.length;o++)c[o]?.classList?.remove("active-tool");a?.classList.add("active-tool"),this.measureActive.emit(!(e===void 0||e==="clear"))}render(){return l`<calcite-panel .heading=${this._messages.label} .closable=${this.closable}><div slot=content-top>${this.renderActionBar()}</div><div>${this.renderMeasureToolPanel()}</div></calcite-panel>`}renderMeasureToolPanel(){let{view:t,coordinateFormat:a,areaUnit:e,linearUnit:c,activeToolType:o}=this;return l`<calcite-panel class=${i($.content)}><instant-apps-measurement-tool .view=${t} .measureConfiguration=${{coordinateFormat:a,areaUnit:e,linearUnit:c,activeToolType:o}} .activeTool=${this.activeToolType} ${d(this.measureTool)}></instant-apps-measurement-tool></calcite-panel>`}renderActionBar(){let{_messages:t,activeToolType:a}=this;return l`<calcite-action-bar expand-disabled layout=horizontal position=end><calcite-action class=${i(a==="distance"?"active-tool":"")} .text=${t.line} icon=measure scale=m data-value=distance @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.line}</calcite-tooltip></calcite-action><calcite-action class=${i(a==="area"?"active-tool":"")} .text=${t.area} scale=m icon=measure-area data-value=area @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.area}</calcite-tooltip></calcite-action><calcite-action class=${i(a==="point"?"active-tool":"")} .text=${t.point} scale=m icon=pin-plus data-value=point @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.point}</calcite-tooltip></calcite-action><calcite-action .text=${t.clear} scale=m icon=trash data-value=clear @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.clear}</calcite-tooltip></calcite-action></calcite-action-bar>`}};v("instant-apps-measurement",s);export{s as InstantAppsMeasurement};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250915 */
4
- import"./D5C4GXTW.js";var e="\u60A8\u6CA1\u6709\u8DB3\u591F\u7684\u914D\u989D\u6765\u6267\u884C\u6B64\u64CD\u4F5C\u3002 \u8BF7\u8054\u7CFB ArcGIS \u7CFB\u7EDF\u7BA1\u7406\u5458\u83B7\u53D6\u5E2E\u52A9\u3002",a="\u8FD9\u4E2A\u5DE5\u5177\u662F\u4ECE\u7B14\u8BB0\u672C\u4E2D\u53D1\u5E03\u7684\u3002 \u60A8\u7684\u7EC4\u7EC7\u65E0\u6CD5\u8BBF\u95EE ArcGIS Notebooks\u3002 \u8BF7\u8054\u7CFB\u60A8\u7684\u7BA1\u7406\u5458\u6765\u8C03\u6574\u8BBE\u7F6E\u3002",r="${ dataPath } \u4E0D\u80FD\u6709 ${ additionalProperty }\u3002",t="${ dataPath } \u5FC5\u987B\u4E0E\u4E0B\u5217\u5404\u9879\u4E4B\u4E00\u7684\u65B9\u6848\u5339\u914D\uFF1A${ schemaOptions }\u3002",o="\u8BF7\u5C1D\u8BD5\u518D\u6B21\u4FDD\u5B58\u8BE5\u5730\u56FE\u3002",s="\u914D\u989D\u4F30\u7B97\u5931\u8D25\u3002 \u5411\u4E0B\u6EDA\u52A8\uFF0C\u66F4\u6B63\u9519\u8BEF\uFF0C\u7136\u540E\u518D\u6B21\u4F30\u7B97\u914D\u989D\u3002",i="\u8FD0\u884C\u5206\u6790\u65F6\u51FA\u9519\u3002",l="${ dataPath } \u5FC5\u987B\u7B49\u4E8E\u4EE5\u4E0B\u5141\u8BB8\u503C\u4E4B\u4E00\uFF1A${ allowedValues }\u3002",d="\u65E0\u6CD5\u4FDD\u5B58\u5206\u6790\u5386\u53F2\u8BB0\u5F55",n="\u5386\u53F2\u8BB0\u5F55\u5B58\u50A8\u5DF2\u6EE1\u3002 \u8BF7\u4ECE\u5206\u6790\u5386\u53F2\u8BB0\u5F55\u4E2D\u79FB\u9664\u4E00\u4E9B\u9879\u76EE\u5E76\u5C1D\u8BD5\u518D\u6B21\u4FDD\u5B58\u3002",c="\u670D\u52A1\u540D\u79F0\u5305\u542B\u4E00\u4E2A\u6216\u591A\u4E2A\u65E0\u6548\u5B57\u7B26\u3002",m="\u5C06\u4E34\u65F6\u56FE\u5C42\u4FDD\u5B58\u4E3A\u672A\u5B8C\u6210\u7684\u6258\u7BA1\u8981\u7D20\u56FE\u5C42\u3002",u="\u65E0\u6CD5\u83B7\u53D6\u5173\u952E\u5C5E\u6027\u3002",E="\u65E0\u6CD5\u52A0\u8F7D\u56FE\u5C42\u3002",h="\u56FE\u5C42\u4E0D\u53EF\u7528\u3002",y="${ dataPath } \u5305\u542B\u7684\u9879\u76EE\u6570\u91CF\u4E0D\u5E94\u591A\u4E8E ${ limit } \u4E2A\u3002",P="\u4FDD\u5B58\u6A21\u578B\u65F6\u53D1\u751F\u9519\u8BEF\u3002 \u8BF7\u518D\u6B21\u5C1D\u8BD5\u4FDD\u5B58\u3002",p="${ dataPath } \u5305\u542B\u7684\u9879\u76EE\u6570\u91CF\u4E0D\u5E94\u5C11\u4E8E ${ limit } \u4E2A\u3002",S="${ dataPath } \u4E0D\u5E94\u77ED\u4E8E ${ limit } \u4E2A\u5B57\u7B26\u3002",$="\u65E0\u6CD5\u52A0\u8F7D\u6A21\u578B\u9879\u3002 \u786E\u4FDD\u6A21\u578B\u5B58\u5728\u5E76\u4E14\u5DF2\u6388\u4E88\u8BBF\u95EE\u6743\u9650\u3002",v="\u65E0\u6CD5\u5B8C\u6210\u8BF7\u6C42\u3002",f="\u60A8\u6CA1\u6709\u8FD0\u884C\u6B64\u5DE5\u5177\u7684\u6743\u9650\u3002 <calcite-link target='_blank' href='${ docLink }'>\u4E86\u89E3\u8BE6\u7EC6\u4FE1\u606F</calcite-link>",F="\u65E0\u6CD5\u767B\u5F55\u95E8\u6237\u3002",I="\u65E0\u6CD5\u8BFB\u53D6\u8F93\u5165\u6570\u636E\u3002",k="${ dataPath } \u7F3A\u5C11\u540D\u4E3A ${ missingProperty } \u7684\u5C5E\u6027\u3002",T="\u5DF2\u5B58\u5728\u5177\u6709\u6B64\u540D\u79F0\u7684\u7ED3\u679C\u56FE\u5C42\u3002 \u5728\u6574\u4E2A\u7EC4\u7EC7\u4E2D\u7ED3\u679C\u56FE\u5C42\u540D\u79F0\u5FC5\u987B\u552F\u4E00\u3002 \u8BF7\u4F7F\u7528\u5176\u4ED6\u540D\u79F0\u3002",L="\u8F93\u51FA\u540D\u79F0\u5305\u542B\u4E00\u4E2A\u6216\u591A\u4E2A\u65E0\u6548\u5B57\u7B26\u3002 <a href='${docLink}' target='_blank'>\u4E86\u89E3\u8BE6\u7EC6\u4FE1\u606F\u3002</a>",b="\u7531\u4E8E\u4E00\u4E2A\u6216\u591A\u4E2A\u65E0\u6548\u5B57\u6BB5\uFF0C\u5C06\u4E34\u65F6\u56FE\u5C42\u53D1\u5E03\u4E3A\u6258\u7BA1\u56FE\u5C42\u5931\u8D25\u3002 \u91CD\u65B0\u8FD0\u884C\u8BE5\u5DE5\u5177\u4EE5\u521B\u5EFA\u5177\u6709\u6709\u6548\u5B57\u6BB5\u7684\u56FE\u5C42\u3002",N="\u4F5C\u4E1A\u63D0\u4EA4\u5931\u8D25\u3002 \u5411\u4E0B\u6EDA\u52A8\uFF0C\u66F4\u6B63\u9519\u8BEF\u5E76\u518D\u6B21\u8FD0\u884C\u8BE5\u5206\u6790\u3002",g="${ dataPath } \u5FC5\u987B\u81F3\u5C11\u5305\u542B\u4E00\u4E2A\u7A7A\u767D\u5B57\u7B26\u3002",C={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:t,cannotWriteToItemResource:o,creditEstimationError:s,defaultError:i,enumValues:l,failedToSaveHistory:d,fullSessionStorage:n,hostedFeatureServiceInvalidTitle:c,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:u,layerLoadFailure:E,layerUnavailable:h,maxItems:y,mbFailedToSave:P,minItems:p,minLength:S,modelNotFound:$,networkError:v,noPermissionToAccessTool:f,portalLoadError:F,queryFeaturesError:I,requiredProperty:k,serviceNameExistsError:T,specialCharactersInServiceNameError:L,temporaryLayerFieldsError:b,toolValidationError:N,whiteSpacePattern:g};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,t as anyOfValues,o as cannotWriteToItemResource,s as creditEstimationError,C as default,i as defaultError,l as enumValues,d as failedToSaveHistory,n as fullSessionStorage,c as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,E as layerLoadFailure,h as layerUnavailable,y as maxItems,P as mbFailedToSave,p as minItems,S as minLength,$ as modelNotFound,v as networkError,f as noPermissionToAccessTool,F as portalLoadError,I as queryFeaturesError,k as requiredProperty,T as serviceNameExistsError,L as specialCharactersInServiceNameError,b as temporaryLayerFieldsError,N as toolValidationError,g as whiteSpacePattern};
3
+ v1.1.0-next.20250916 */
4
+ import"./JPP3LPWG.js";var e="\u60A8\u6CA1\u6709\u8DB3\u591F\u7684\u914D\u989D\u6765\u6267\u884C\u6B64\u64CD\u4F5C\u3002 \u8BF7\u8054\u7CFB ArcGIS \u7CFB\u7EDF\u7BA1\u7406\u5458\u83B7\u53D6\u5E2E\u52A9\u3002",a="\u8FD9\u4E2A\u5DE5\u5177\u662F\u4ECE\u7B14\u8BB0\u672C\u4E2D\u53D1\u5E03\u7684\u3002 \u60A8\u7684\u7EC4\u7EC7\u65E0\u6CD5\u8BBF\u95EE ArcGIS Notebooks\u3002 \u8BF7\u8054\u7CFB\u60A8\u7684\u7BA1\u7406\u5458\u6765\u8C03\u6574\u8BBE\u7F6E\u3002",r="${ dataPath } \u4E0D\u80FD\u6709 ${ additionalProperty }\u3002",t="${ dataPath } \u5FC5\u987B\u4E0E\u4E0B\u5217\u5404\u9879\u4E4B\u4E00\u7684\u65B9\u6848\u5339\u914D\uFF1A${ schemaOptions }\u3002",o="\u8BF7\u5C1D\u8BD5\u518D\u6B21\u4FDD\u5B58\u8BE5\u5730\u56FE\u3002",s="\u914D\u989D\u4F30\u7B97\u5931\u8D25\u3002 \u5411\u4E0B\u6EDA\u52A8\uFF0C\u66F4\u6B63\u9519\u8BEF\uFF0C\u7136\u540E\u518D\u6B21\u4F30\u7B97\u914D\u989D\u3002",i="\u8FD0\u884C\u5206\u6790\u65F6\u51FA\u9519\u3002",l="${ dataPath } \u5FC5\u987B\u7B49\u4E8E\u4EE5\u4E0B\u5141\u8BB8\u503C\u4E4B\u4E00\uFF1A${ allowedValues }\u3002",d="\u65E0\u6CD5\u4FDD\u5B58\u5206\u6790\u5386\u53F2\u8BB0\u5F55",n="\u5386\u53F2\u8BB0\u5F55\u5B58\u50A8\u5DF2\u6EE1\u3002 \u8BF7\u4ECE\u5206\u6790\u5386\u53F2\u8BB0\u5F55\u4E2D\u79FB\u9664\u4E00\u4E9B\u9879\u76EE\u5E76\u5C1D\u8BD5\u518D\u6B21\u4FDD\u5B58\u3002",c="\u670D\u52A1\u540D\u79F0\u5305\u542B\u4E00\u4E2A\u6216\u591A\u4E2A\u65E0\u6548\u5B57\u7B26\u3002",m="\u5C06\u4E34\u65F6\u56FE\u5C42\u4FDD\u5B58\u4E3A\u672A\u5B8C\u6210\u7684\u6258\u7BA1\u8981\u7D20\u56FE\u5C42\u3002",u="\u65E0\u6CD5\u83B7\u53D6\u5173\u952E\u5C5E\u6027\u3002",E="\u65E0\u6CD5\u52A0\u8F7D\u56FE\u5C42\u3002",h="\u56FE\u5C42\u4E0D\u53EF\u7528\u3002",y="${ dataPath } \u5305\u542B\u7684\u9879\u76EE\u6570\u91CF\u4E0D\u5E94\u591A\u4E8E ${ limit } \u4E2A\u3002",P="\u4FDD\u5B58\u6A21\u578B\u65F6\u53D1\u751F\u9519\u8BEF\u3002 \u8BF7\u518D\u6B21\u5C1D\u8BD5\u4FDD\u5B58\u3002",p="${ dataPath } \u5305\u542B\u7684\u9879\u76EE\u6570\u91CF\u4E0D\u5E94\u5C11\u4E8E ${ limit } \u4E2A\u3002",S="${ dataPath } \u4E0D\u5E94\u77ED\u4E8E ${ limit } \u4E2A\u5B57\u7B26\u3002",$="\u65E0\u6CD5\u52A0\u8F7D\u6A21\u578B\u9879\u3002 \u786E\u4FDD\u6A21\u578B\u5B58\u5728\u5E76\u4E14\u5DF2\u6388\u4E88\u8BBF\u95EE\u6743\u9650\u3002",v="\u65E0\u6CD5\u5B8C\u6210\u8BF7\u6C42\u3002",f="\u60A8\u6CA1\u6709\u8FD0\u884C\u6B64\u5DE5\u5177\u7684\u6743\u9650\u3002 <calcite-link target='_blank' href='${ docLink }'>\u4E86\u89E3\u8BE6\u7EC6\u4FE1\u606F</calcite-link>",F="\u65E0\u6CD5\u767B\u5F55\u95E8\u6237\u3002",I="\u65E0\u6CD5\u8BFB\u53D6\u8F93\u5165\u6570\u636E\u3002",k="${ dataPath } \u7F3A\u5C11\u540D\u4E3A ${ missingProperty } \u7684\u5C5E\u6027\u3002",T="\u5DF2\u5B58\u5728\u5177\u6709\u6B64\u540D\u79F0\u7684\u7ED3\u679C\u56FE\u5C42\u3002 \u5728\u6574\u4E2A\u7EC4\u7EC7\u4E2D\u7ED3\u679C\u56FE\u5C42\u540D\u79F0\u5FC5\u987B\u552F\u4E00\u3002 \u8BF7\u4F7F\u7528\u5176\u4ED6\u540D\u79F0\u3002",L="\u8F93\u51FA\u540D\u79F0\u5305\u542B\u4E00\u4E2A\u6216\u591A\u4E2A\u65E0\u6548\u5B57\u7B26\u3002 <a href='${docLink}' target='_blank'>\u4E86\u89E3\u8BE6\u7EC6\u4FE1\u606F\u3002</a>",b="\u7531\u4E8E\u4E00\u4E2A\u6216\u591A\u4E2A\u65E0\u6548\u5B57\u6BB5\uFF0C\u5C06\u4E34\u65F6\u56FE\u5C42\u53D1\u5E03\u4E3A\u6258\u7BA1\u56FE\u5C42\u5931\u8D25\u3002 \u91CD\u65B0\u8FD0\u884C\u8BE5\u5DE5\u5177\u4EE5\u521B\u5EFA\u5177\u6709\u6709\u6548\u5B57\u6BB5\u7684\u56FE\u5C42\u3002",N="\u4F5C\u4E1A\u63D0\u4EA4\u5931\u8D25\u3002 \u5411\u4E0B\u6EDA\u52A8\uFF0C\u66F4\u6B63\u9519\u8BEF\u5E76\u518D\u6B21\u8FD0\u884C\u8BE5\u5206\u6790\u3002",g="${ dataPath } \u5FC5\u987B\u81F3\u5C11\u5305\u542B\u4E00\u4E2A\u7A7A\u767D\u5B57\u7B26\u3002",C={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:t,cannotWriteToItemResource:o,creditEstimationError:s,defaultError:i,enumValues:l,failedToSaveHistory:d,fullSessionStorage:n,hostedFeatureServiceInvalidTitle:c,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:u,layerLoadFailure:E,layerUnavailable:h,maxItems:y,mbFailedToSave:P,minItems:p,minLength:S,modelNotFound:$,networkError:v,noPermissionToAccessTool:f,portalLoadError:F,queryFeaturesError:I,requiredProperty:k,serviceNameExistsError:T,specialCharactersInServiceNameError:L,temporaryLayerFieldsError:b,toolValidationError:N,whiteSpacePattern:g};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,t as anyOfValues,o as cannotWriteToItemResource,s as creditEstimationError,C as default,i as defaultError,l as enumValues,d as failedToSaveHistory,n as fullSessionStorage,c as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,E as layerLoadFailure,h as layerUnavailable,y as maxItems,P as mbFailedToSave,p as minItems,S as minLength,$ as modelNotFound,v as networkError,f as noPermissionToAccessTool,F as portalLoadError,I as queryFeaturesError,k as requiredProperty,T as serviceNameExistsError,L as specialCharactersInServiceNameError,b as temporaryLayerFieldsError,N as toolValidationError,g as whiteSpacePattern};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250915 */
3
+ v1.1.0-next.20250916 */
4
4
  var o=(a=>(a.GRID="GRID",a.HORIZONTAL="HORIZONTAL",a.VERTICAL="VERTICAL",a))(o||{}),e=(a=>(a[a.Add=0]="Add",a[a.Update=1]="Update",a[a.Remove=2]="Remove",a[a.None=3]="None",a[a.Obsolete=4]="Obsolete",a))(e||{}),t=(a=>(a[a.LIST=0]="LIST",a[a.SELECT=1]="SELECT",a[a.EXPORT=2]="EXPORT",a[a.REFINE=3]="REFINE",a))(t||{}),E=(a=>(a.ADD="ADD",a.REMOVE="REMOVE",a))(E||{}),i=(a=>(a.SEARCH="SEARCH",a.SELECT="SELECT",a.SKETCH="SKETCH",a.REFINE="REFINE",a))(i||{}),n=(a=>(a.CSV="CSV",a.PDF="PDF",a))(n||{}),r=(a=>(a.SKETCH="SKETCH",a.REFINE="REFINE",a))(r||{}),N="{{params.wkid||",S="}}",I=500,l=(a=>(a.AEC="Architecture, Engineering, and Construction (AEC)",a.AIRPORTPORTRAIL="Airports, Ports, and Rails",a.BUSINESS="Business",a.CONSERVATION="Conservation",a.DEFENSE="Defense",a.FACILITIES="Facilities",a.HEALTHANDHUMANSERVICES="Health and Human Services",a.PIPELINE="Pipeline",a.PUBLICSAFETY="Public Safety",a.RENEWABLES="Renewables",a.STATEANDLOCALGOVERNMENT="State and Local Government",a.TELECOMMUNICATIONS="Telecommunications",a.UTILITIES="Utilities",a))(l||{}),A=(a=>(a.AIRPORT="Airports",a.AGRICULTURE="Agriculture",a.ASSESSMENTANDTAXATION="Assessment and Taxation",a.DISTRICTENERGY="District Energy",a.ELECTIONS="Elections",a.ELECTRIC="Electric",a.EMERGENCYMANAGEMENT="Emergency Management",a.ENVIRONMENTANDNATURALRESOURCES="Environment and Natural Resources",a.FIRESERVICE="Fire Service",a.FISHANDWILDLIFE="Fish and Wildlife",a.GAS="Gas",a.HEALTHANDHUMANSERVICES="Health and Human Services",a.LAWENFORCEMENT="Law Enforcement",a.NATURALRESOURCES="Natural Resources",a.PARKS="Parks",a.PLANNINGANDDEVELOPMENT="Planning and Development",a.PROTECTEDAREAS="Protected Areas",a.PUBLICWORKS="Public Works",a.SEWER="Sewer",a.STORMWATER="Stormwater",a.TELECOMMUNICATIONS="Telecommunications",a.TRANSPORTATION="Transportation",a.WATER="Water Distribution",a))(A||{}),R=(a=>(a.OWNER="My solutions",a.ORGANIZATION="My organization's solutions",a))(R||{}),T=(a=>(a.HUBPREMIUM="solutions:hubPremium",a.NOTEBOOK="solutions:notebook",a.TRACKINGBASE="solutions:locationtracking",a.TRACKING="solutions:locationtracking:tracking",a.TRACKINGADMIN="solutions:locationtracking:admin",a.TRACKINGADMINANDTRACKING="solutions:locationtracking:admin:tracking",a.VELOCITY="solutions:velocity",a.WORKFLOW="solutions:workflowManager",a))(T||{}),u='((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))',s="(typekeywords:Solution,Template)",c="(typekeywords:Solution,Display Only)",C="portal:user:addExternalMembersToGroup",O="portal:user:createItem",p="portal:user:createGroup",L="portal:publisher:publishBigDataAnalytics",D="portal:publisher:publishFeatures",d="portal:publisher:publishFeeds",m="portal:publisher:publishServerGPServices",P="portal:publisher:publishRealTimeAnalytics",M="portal:user:shareToGroup",k="solutions:hubPremium",b="solutions:notebook",g="solutions:locationtracking:admin:tracking",G="solutions:locationtracking:tracking",y="solutions:locationtracking:admin",F="solutions:velocity",H="solutions:workflowManager",U=250;export{o as a,e as b,t as c,E as d,i as e,n as f,r as g,N as h,S as i,I as j,l as k,A as l,R as m,T as n,u as o,s as p,c as q,C as r,O as s,p as t,L as u,D as v,d as w,m as x,P as y,M as z,k as A,b as B,g as C,G as D,y as E,F,H as G,U as H};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250915 */
3
+ v1.1.0-next.20250916 */
4
4
  var r;(function(e){e.simple="simple",e.informational="informational"})(r||(r={}));var l;(function(e){e.small="s",e.medium="m",e.large="l"})(l||(l={}));var n;(function(e){e.before="before",e.after="after",e.below="below"})(n||(n={}));var i;(function(e){e.none="none",e.icon="icon"})(i||(i={}));var o;(function(e){e.caretUp="caret-up",e.caretDown="caret-down",e.caretDouble="caret-double-horizontal"})(o||(o={}));var t;(function(e){e.dynamic="dynamic",e.static="static",e.itemQuery="itemQuery"})(t||(t={}));var u;(function(e){e.start="start",e.center="center",e.end="end"})(u||(u={}));var p;(function(e){e.square="square",e.round="round"})(p||(p={}));var a;(function(e){e.none="none",e.low="low",e.medium="medium",e.heavy="heavy"})(a||(a={}));var s;(function(e){e.h1="h1",e.h2="h2",e.h3="h3",e.h4="h4",e.h5="h5",e.h6="h6"})(s||(s={}));var d={type:"object",required:[],properties:{type:{type:"string",enum:Object.keys(t),default:t.dynamic},cardTitle:{type:"string"},value:{},valueType:{type:"string",default:"string",enum:["string","number","date"]},dynamicMetric:{type:"object"},allowUnitFormatting:{type:"boolean",default:!1},unit:{type:"string"},unitPosition:{type:"string",default:n.after,enum:Object.keys(n)},serverTimeout:{type:"number",maximum:95,minimum:5,default:10},subtitle:{type:"string"},trailingText:{type:"string"},textAlign:{type:"string",default:u.start},allowLink:{type:"boolean",default:!1},allowDynamicLink:{type:"boolean",default:!0},sourceLink:{type:"string"},sourceTitle:{type:"string"},valueColor:{type:"string"},layout:{type:"string",default:r.simple,enum:Object.keys(r)},dropShadow:{type:"string",default:a.none,enum:Object.keys(a)},icon:{type:"string",default:o.caretUp,enum:Object.values(o)},visualInterest:{type:"string",default:i.none,enum:Object.keys(i)},shareable:{type:"boolean",default:!1},shareableByValue:{type:"boolean",default:!1},shareableOnHover:{type:"boolean",default:!0},popoverText:{type:"string"},publisherText:{type:"string"}},allOf:[{$ref:"#/definitions/if-source-title-then-source-link"},{$ref:"#/definitions/value-type-value-mapping"},{$ref:"#/definitions/if-static-then-url-format"}],definitions:{"if-source-title-then-source-link":{if:{type:"object",properties:{sourceTitle:{not:{const:""}}},required:["sourceTitle"]},then:{required:["sourceLink"]}},"value-type-value-mapping":{if:{type:"object",properties:{valueType:{enum:["string","date"]}}},then:{type:"object",properties:{value:{type:"string"}}},else:{type:"object",properties:{value:{type:"number"}}}},"if-static-then-url-format":{if:{type:"object",properties:{type:{const:t.static}}},then:{type:"object",properties:{sourceLink:{format:"url"}}}}}};export{o as a,t as b,d as c};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250915 */
4
- import{a as O}from"./T66H724J.js";import{A as H,C as M,D as F,d as B,e as L}from"./PF36LRKG.js";import{b as U}from"./RFTRNEXX.js";import"./X6PCML64.js";import"./ZP6TWN56.js";import{B as S,C as m,D as h,E as I,G as a,H as b,I as C,h as T,i as n,j as w}from"./ZNV2KGHK.js";import"./D5C4GXTW.js";var ee=T`:host{display:block;--instant-apps-social-share-action-width: initial;--instant-apps-social-share-width--s: 200px;--instant-apps-social-share-width--m: 280px;--instant-apps-social-share-width--l: 320px;--instant-apps-social-share-width-horizontal--s: 300px;--instant-apps-social-share-width-horizontal--m: 380px;--instant-apps-social-share-width-horizontal--l: 420px;--instant-apps-social-share-background-color: var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color: transparent;--instant-apps-social-share-popover-button-icon-color: var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border: 1px solid $border;--instant-apps-social-share-embed-text-area-text: #468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#fff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:700;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}`,i="instant-apps-social-share",N=".calcite-mode-dark",t={dialog:`${i}__dialog`,dialogContent:`${i}__dialog-content`,options:`${i}__options`,tipContainer:`${i}__tip`,tipHeader:`${i}__tip-header`,tipContent:`${i}__tip-content`,icon:`${i}__icon`,iconContainer:`${i}__icon-container`,optionText:`${i}__option-text`,popoverButton:`${i}__popover-button`,layout:{vertical:`${i}__layout--vertical`,horizontal:`${i}__layout--horizontal`},xLogo:{light:`${i}__x-logo--light`,dark:`${i}__x-logo--dark`},success:{container:`${i}__success`,header:`${i}__success-header`,message:`${i}__success-message`,icon:`${i}__success-icon`},embed:{container:`${i}__embed`,header:`${i}__embed-header`,embedCode:{container:`${i}__embed-code`,textArea:`${i}__embed-code-text-area`,copyButton:`${i}__embed-code-copy-button`},textAreaText:`${i}__embed-text-area-text`,dimensions:{container:`${i}__embed-dimensions`,input:`${i}__embed-dimensions-input`}},rtl:{optionText:`${i}__option-text--rtl`,textArea:`${i}__text-area--rtl`}},te={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?text={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},E=1,z=class extends I{constructor(){super(...arguments),this._messages=O({name:"instant-apps-social-share"}),this.popoverRef=m(),this.embedWidthRef=m(),this.embedHeightRef=m(),this.embedCodeRef=m(),this.copyLinkPopoverRef=m(),this.copyEmbedPopoverRef=m(),this.dialogContentRef=m(),this.shareListRef=m(),this.popoverButtonRef=m(),this.handlePopoverRefKeyDown=async e=>{if(!this.isNativeShareEnabled)if(e.code==="Tab"){if(!this.shareListRef.value)return;let s=e.target,o=this.shareListRef.value.children[0],r=this.shareListRef.value.children[this.shareListRef.value.children.length-1];e.shiftKey&&s===o?(e.preventDefault(),r.focus()):!e.shiftKey&&s===r&&(e.preventDefault(),o.focus())}else e.code==="Escape"&&(this.closePopover(),await this.popoverButtonRef.value?.setFocus())},this.stopEventPropagation=e=>{e.stopPropagation()},this.autoCloseCallback=()=>{this.mode==="popover"&&this.popoverRef.value?(this.isPopoverOpen=!1,this.popoverRef.value.open=this.isPopoverOpen):(this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1),this.inlineCopyEmbedOpened=!1)},this.resetPopoverCopyState=async()=>{await this.popoverButtonRef.value?.setFocus(),setTimeout(()=>{this.isLinkCopiedToClipboard=!1},200)},this.isPopoverOpen=!1,this.isLinkCopiedToClipboard=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600,this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1}static{this.properties={isPopoverOpen:16,isLinkCopiedToClipboard:16,inlineCopyLinkOpened:16,inlineCopyEmbedOpened:16,embedWidth:16,embedHeight:16,mode:3,shareUrl:1,autoUpdateShareUrl:5,shareText:3,embed:7,shareButtonColor:3,shareButtonType:3,shareButtonScale:3,iframeInnerText:3,popoverButtonIconScale:3,view:0,displayTipText:7,shortenShareUrl:7,socialMedia:7,shareIconsLayout:3,scale:3,successMessage:3,flipRtl:7,defaultUrlParams:0,inlineSuccessPopoverPlacement:3,popoverPositioning:3,removePopoverOffset:7,useNativeShare:7,isNativeShareEnabled:7}}static{this.styles=ee}load(){document.documentElement.addEventListener("click",this.autoCloseCallback),this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice}disconnectedCallback(){super.disconnectedCallback(),document.documentElement.removeEventListener("click",this.autoCloseCallback)}makeOptionKeyDownHandler(e){return async s=>{let o=s.code;(o==="Space"||o==="Enter")&&await this.handleShareItem(e)}}makeEmbedResizeHandler(e){let s=e==="width"?this.embedWidthRef.value:this.embedHeightRef.value;return()=>{if(!(!this.embed||this.isNativeShareEnabled)&&s){let o=Math.max(s.valueAsNumber??0,E);this[e==="width"?"embedWidth":"embedHeight"]=o}}}togglePopoverVisibility(e){e.stopPropagation(),this.isPopoverOpen=!this.isPopoverOpen,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}closePopover(){this.isPopoverOpen=!1,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}async handleShareItem(e){this.shareUrl=await this.generateShareUrl();let s=null,o=navigator?.userAgent?.includes("Chrome")??!1,r=(navigator?.userAgent?.includes("Safari")??!1)&&!o;!r&&this.shortenShareUrl&&(s=await this.shortenUrl(this.shareUrl));let l=s||this.shareUrl;switch(e){case"link":await navigator.clipboard.writeText(l),this.embed&&this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!0,setTimeout(()=>{this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1)},3e3)),this.inlineCopyLinkOpened=!0,this.isLinkCopiedToClipboard=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let p;r&&(p=window.open("","_blank"),this.shortenShareUrl&&(l=await this.shortenUrl(this.shareUrl)||l));let d={url:encodeURI(l)},f=e==="x"?{...d,text:this.shareText}:d,k=(await M()).substitute(te[e],f);this.mode==="popover"&&this.closePopover(),r&&p?(p.location=k,p.focus()):window.open(encodeURI(k),"_blank")}break;case"native-share":let v={title:this._messages.share?.label||"Share",text:this.shareText,url:encodeURI(l)};navigator?.canShare?.(v)?navigator.share(v).catch(p=>{console.error("Error using native share:",p)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(e){let s=(await(await F())("https://arcg.is/prod/shorten",{query:{longUrl:e,f:"json"}}))?.data?.data?.url;if(s)return s.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}async copyEmbedCode(){await navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!0,setTimeout(()=>{this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1)},3e3)),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:e,y:s}=this.view.center,{spatialReference:o}=this.view,r=await L({...o.toJSON()}),l=await B({x:e,y:s,spatialReference:r}),v=await this.processPoint(l),{isWGS84:p,isWebMercator:d}=v.spatialReference,f=p||d;return this.generateShareUrlParams(v,f)}async processPoint(e){let{isWGS84:s,isWebMercator:o}=e.spatialReference;if(s||o)return e;let r=await H(),l=await L({wkid:4326}),v=this.view?.spatialReference??l;try{return await r.load(),r.execute(e,v)}catch(p){console.error("Failed to project point to outSpatialReference",p);try{let d=r.execute(e,l);return Promise.resolve(d)}catch(d){return console.error("Failed to project point to fallbackOutSpatialReference",d),await Promise.reject(new Error("Failed to project point to both spatial references"))}}}generateShareUrlParams(e,s){let{longitude:o,latitude:r,x:l,y:v}=e;if(o===void 0||r===void 0||!this.view)return this.shareUrl;let p=this.roundValue(s?o:l),d=this.roundValue(s?r:v),{zoom:f}=this.view,k=this.roundValue(f),P=this.view?.popup?.selectedFeature,D=this.view?.popup?.visible,$,x;if(P&&D&&P?.layer?.type==="feature"){let _=P?.layer;$=_?.id,x=P.attributes[_.objectIdField]}let R=this.view.map?.allLayers.filter(_=>!_.visible).toArray().map(_=>_.id).toString().replaceAll(",",";"),{type:A}=this.view,{defaultUrlParams:g}=this,c=new URL(this.shareUrl),{searchParams:u}=c;if(u.get("center")&&u.delete("center"),u.get("level")&&u.delete("level"),u.get("selectedFeature")&&u.delete("selectedFeature"),u.get("hiddenLayers")&&u.delete("hiddenLayers"),u.get("viewpoint")&&u.delete("viewpoint"),A==="3d"){let{camera:_}=this.view,{heading:V,position:W,tilt:j}=_,{longitude:K,latitude:Z,x:G,y:X,z:q}=W,J=s?K:G,Q=s?Z:X,y={longitude:this.roundValue(J,8),latitude:this.roundValue(Q,8),z:this.roundValue(q,3),heading:this.roundValue(V,3),tilt:this.roundValue(j,3)},Y=`cam:${y.longitude},${y.latitude},${y.z}${!s&&this.view?.spatialReference?.wkid?`,${this.view?.spatialReference?.wkid}`:""};${y.heading},${y.tilt}`;return g?.viewpoint!==!1&&c.searchParams.set("viewpoint",Y),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}return g?.center!==!1&&c.searchParams.set("center",`${p};${d}`),g?.level!==!1&&c.searchParams.set("level",`${k}`),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}roundValue(e,s=4){return Number.parseFloat(e.toFixed(s))}get isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}render(){let e=this.isLinkCopiedToClipboard&&this.mode==="popover"?this.renderSuccess():n`<div class=${a(t.dialogContent)}>${this.renderMenuOptions()}${this.displayTipText?this.renderTip():null}${this.embed?this.renderEmbed():null}</div>`,s=this.shareIconsLayout==="vertical"?` ${t.layout.vertical}`:` ${t.layout.horizontal}`,o=` calcite-mode-${this.el.closest(N)?"dark":"light"}`,r=n`<div class=${`${t.dialog}${s}${o}`} @click=${this.stopEventPropagation} ${h(this.dialogContentRef)}>${e}</div>`,l=this.removePopoverOffset?0:6;return this.isNativeShareEnabled?this.renderShareButton():this.mode==="popover"?[n`<calcite-popover .open=${this.isPopoverOpen} .label=${this._messages.share?.label??""} reference-element=shareButton placement=bottom-start .scale=${this.scale} .overlayPositioning=${this.popoverPositioning} .offsetDistance=${l} .pointerDisabled=${this.removePopoverOffset} @calcitePopoverOpen=${()=>{!this.shareListRef.value||this.isNativeShareEnabled||this.shareListRef.value.children[0].focus()}} @calcitePopoverBeforeClose=${this.resetPopoverCopyState} @click=${this.stopEventPropagation} @keydown=${this.handlePopoverRefKeyDown} ${h(this.popoverRef)}>${r}</calcite-popover>`,this.renderShareButton()]:[r,n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyLinkPopoverRef)}>${this.renderSuccess()}</calcite-popover>`,this.embed?n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyEmbedToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyEmbedPopoverRef)}>${this.renderEmbedSuccess()}</calcite-popover>`:null]}renderShareButton(){let e=this.shareButtonScale??this.scale,s=async r=>{this.isNativeShareEnabled?(r.stopPropagation(),await this.handleShareItem("native-share")):this.togglePopoverVisibility(r)},o=n`<div class=${a(t.iconContainer)}><calcite-icon icon=share .scale=${this.popoverButtonIconScale}></calcite-icon></div>`;return this.shareButtonType==="button"?n`<calcite-button id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} .kind=${this.shareButtonColor} appearance=transparent ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-button>`:n`<calcite-action id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} appearance=transparent text alignment=center ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-action>`}renderSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${this.successMessage||e?.url}</span></div>`}renderEmbedSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${e?.embed}</span></div>`}renderMenuOptions(){let e=this._messages.options,s=document.dir==="rtl"?` ${t.rtl.optionText}`:"";return n`<ul class=${a(t.options)} role=menu ${h(this.shareListRef)}><li id=copyToClipboard @click=${this.handleShareItem.bind(this,"link")} @keydown=${this.makeOptionKeyDownHandler("link")} role=menuitem tabindex=0><span class=${a(t.icon)}><calcite-icon icon=link .scale=${this.scale}></calcite-icon></span><span class=${`${t.optionText}${s}`}>${e?.link?.label}</span></li>${this.socialMedia?[n`<li @click=${this.handleShareItem.bind(this,"facebook")} @keydown=${this.makeOptionKeyDownHandler("facebook")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderFacebookIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.facebook?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"x")} @keydown=${this.makeOptionKeyDownHandler("x")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderXIcon()}</span><span class=${`${t.optionText}${s}`}>X</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"linkedIn")} @keydown=${this.makeOptionKeyDownHandler("linkedIn")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderLinkedInIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.linkedIn?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"bluesky")} @keydown=${this.makeOptionKeyDownHandler("bluesky")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderBlueSkyIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.blueSky?.label}</span></li>`]:null}</ul>`}renderFacebookIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g><path d="M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z" style=${b({fill:"#1877f2",fillRule:"nonzero"})} /><path d="M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z" style=${b({fill:"#fff",fillRule:"nonzero"})} /></g>`}</svg>`}renderXIcon(){let e=!!this.el.closest(N);return n`<svg height=100% class=${a(e?t.xLogo.dark:t.xLogo.light)} viewBox="0 0 1200 1227" fill=none xmlns=http://www.w3.org/2000/svg>${w`<rect height=400 style=${b({fill:"none"})} width=400 x=56 y=56 /><path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" fill=${e?"white":"black"} />`}</svg>`}renderBlueSkyIcon(){return n`<svg height=100% fill=#0f85fe xmlns=http://www.w3.org/2000/svg viewBox="0 0 512 512">${w`<path d="M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z" />`}</svg>`}renderLinkedInIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g id=g5891><path d="M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z" id=background style=${b({fill:"#2867b2"})} /><g id=shapes><rect height=257.962 id=rect11 style=${b({fill:"#fff"})} width=85.76 x=61.053 y=178.667 /><path d="M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z" id=path13-0 style=${b({fill:"#fff",fillRule:"nonzero"})} /><path d="M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z" id=path15 style=${b({fill:"#fff",fillRule:"nonzero"})} /></g></g>`}</svg>`}renderTip(){let e=this._messages.info;return n`<div class=${a(t.tipContainer)}><span class=${a(t.tipHeader)}><calcite-icon icon=lightbulb .scale=${this.scale}></calcite-icon><span>${e?.label}</span></span><p class=${a(t.tipContent)}>${e?.tooltip}</p></div>`}renderEmbed(){let e=this._messages.embed,s=document.dir==="rtl"?` ${t.rtl.textArea}`:"";return n`<div class=${a(t.embed.container)}><span class=${a(t.embed.header)}><calcite-icon icon=code .scale=${this.scale}></calcite-icon><span>${this._messages.embed?.label}</span></span><div class=${a(t.embed.embedCode.container)}><div class=${a(t.embed.embedCode.textArea)}><textarea cols=30 rows=5 readonly class=${a(s)} .value=${S(this.getEmbedCode()??"")} ${h(this.embedCodeRef)}></textarea><button id=copyEmbedToClipboard @click=${this.copyEmbedCode} class=${a(t.embed.embedCode.copyButton)}><calcite-icon icon=copy .scale=${this.scale}></calcite-icon><span>${e?.copy}</span></button></div><span class=${a(t.embed.textAreaText)}><slot name=text-area-text></slot></span><div class=${a(t.embed.dimensions.container)}><label class=${a(t.embed.dimensions.input)}><span>${e?.width}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("width")} .value=${S(this.embedWidth??"")} min=${E} ${h(this.embedWidthRef)}></label><label class=${a(t.embed.dimensions.input)}><span>${e?.height}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("height")} .value=${S(this.embedHeight??"")} min=${E} ${h(this.embedHeightRef)}></label></div></div></div>`}};U("instant-apps-social-share",z);export{z as InstantAppsSocialShare};
3
+ v1.1.0-next.20250916 */
4
+ import{a as O}from"./JQZYDENI.js";import{A as H,C as M,D as F,d as B,e as L}from"./CTA5L6K5.js";import{b as U}from"./E6SZOM6H.js";import"./ECJZMR4A.js";import"./I4TU5GZV.js";import{B as S,C as m,D as h,E as I,G as a,H as b,I as C,h as T,i as n,j as w}from"./ZCVEHHZX.js";import"./JPP3LPWG.js";var ee=T`:host{display:block;--instant-apps-social-share-action-width: initial;--instant-apps-social-share-width--s: 200px;--instant-apps-social-share-width--m: 280px;--instant-apps-social-share-width--l: 320px;--instant-apps-social-share-width-horizontal--s: 300px;--instant-apps-social-share-width-horizontal--m: 380px;--instant-apps-social-share-width-horizontal--l: 420px;--instant-apps-social-share-background-color: var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color: transparent;--instant-apps-social-share-popover-button-icon-color: var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border: 1px solid $border;--instant-apps-social-share-embed-text-area-text: #468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#fff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:700;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}`,i="instant-apps-social-share",N=".calcite-mode-dark",t={dialog:`${i}__dialog`,dialogContent:`${i}__dialog-content`,options:`${i}__options`,tipContainer:`${i}__tip`,tipHeader:`${i}__tip-header`,tipContent:`${i}__tip-content`,icon:`${i}__icon`,iconContainer:`${i}__icon-container`,optionText:`${i}__option-text`,popoverButton:`${i}__popover-button`,layout:{vertical:`${i}__layout--vertical`,horizontal:`${i}__layout--horizontal`},xLogo:{light:`${i}__x-logo--light`,dark:`${i}__x-logo--dark`},success:{container:`${i}__success`,header:`${i}__success-header`,message:`${i}__success-message`,icon:`${i}__success-icon`},embed:{container:`${i}__embed`,header:`${i}__embed-header`,embedCode:{container:`${i}__embed-code`,textArea:`${i}__embed-code-text-area`,copyButton:`${i}__embed-code-copy-button`},textAreaText:`${i}__embed-text-area-text`,dimensions:{container:`${i}__embed-dimensions`,input:`${i}__embed-dimensions-input`}},rtl:{optionText:`${i}__option-text--rtl`,textArea:`${i}__text-area--rtl`}},te={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?text={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},E=1,z=class extends I{constructor(){super(...arguments),this._messages=O({name:"instant-apps-social-share"}),this.popoverRef=m(),this.embedWidthRef=m(),this.embedHeightRef=m(),this.embedCodeRef=m(),this.copyLinkPopoverRef=m(),this.copyEmbedPopoverRef=m(),this.dialogContentRef=m(),this.shareListRef=m(),this.popoverButtonRef=m(),this.handlePopoverRefKeyDown=async e=>{if(!this.isNativeShareEnabled)if(e.code==="Tab"){if(!this.shareListRef.value)return;let s=e.target,o=this.shareListRef.value.children[0],r=this.shareListRef.value.children[this.shareListRef.value.children.length-1];e.shiftKey&&s===o?(e.preventDefault(),r.focus()):!e.shiftKey&&s===r&&(e.preventDefault(),o.focus())}else e.code==="Escape"&&(this.closePopover(),await this.popoverButtonRef.value?.setFocus())},this.stopEventPropagation=e=>{e.stopPropagation()},this.autoCloseCallback=()=>{this.mode==="popover"&&this.popoverRef.value?(this.isPopoverOpen=!1,this.popoverRef.value.open=this.isPopoverOpen):(this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1),this.inlineCopyEmbedOpened=!1)},this.resetPopoverCopyState=async()=>{await this.popoverButtonRef.value?.setFocus(),setTimeout(()=>{this.isLinkCopiedToClipboard=!1},200)},this.isPopoverOpen=!1,this.isLinkCopiedToClipboard=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600,this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1}static{this.properties={isPopoverOpen:16,isLinkCopiedToClipboard:16,inlineCopyLinkOpened:16,inlineCopyEmbedOpened:16,embedWidth:16,embedHeight:16,mode:3,shareUrl:1,autoUpdateShareUrl:5,shareText:3,embed:7,shareButtonColor:3,shareButtonType:3,shareButtonScale:3,iframeInnerText:3,popoverButtonIconScale:3,view:0,displayTipText:7,shortenShareUrl:7,socialMedia:7,shareIconsLayout:3,scale:3,successMessage:3,flipRtl:7,defaultUrlParams:0,inlineSuccessPopoverPlacement:3,popoverPositioning:3,removePopoverOffset:7,useNativeShare:7,isNativeShareEnabled:7}}static{this.styles=ee}load(){document.documentElement.addEventListener("click",this.autoCloseCallback),this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice}disconnectedCallback(){super.disconnectedCallback(),document.documentElement.removeEventListener("click",this.autoCloseCallback)}makeOptionKeyDownHandler(e){return async s=>{let o=s.code;(o==="Space"||o==="Enter")&&await this.handleShareItem(e)}}makeEmbedResizeHandler(e){let s=e==="width"?this.embedWidthRef.value:this.embedHeightRef.value;return()=>{if(!(!this.embed||this.isNativeShareEnabled)&&s){let o=Math.max(s.valueAsNumber??0,E);this[e==="width"?"embedWidth":"embedHeight"]=o}}}togglePopoverVisibility(e){e.stopPropagation(),this.isPopoverOpen=!this.isPopoverOpen,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}closePopover(){this.isPopoverOpen=!1,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}async handleShareItem(e){this.shareUrl=await this.generateShareUrl();let s=null,o=navigator?.userAgent?.includes("Chrome")??!1,r=(navigator?.userAgent?.includes("Safari")??!1)&&!o;!r&&this.shortenShareUrl&&(s=await this.shortenUrl(this.shareUrl));let l=s||this.shareUrl;switch(e){case"link":await navigator.clipboard.writeText(l),this.embed&&this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!0,setTimeout(()=>{this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1)},3e3)),this.inlineCopyLinkOpened=!0,this.isLinkCopiedToClipboard=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let p;r&&(p=window.open("","_blank"),this.shortenShareUrl&&(l=await this.shortenUrl(this.shareUrl)||l));let d={url:encodeURI(l)},f=e==="x"?{...d,text:this.shareText}:d,k=(await M()).substitute(te[e],f);this.mode==="popover"&&this.closePopover(),r&&p?(p.location=k,p.focus()):window.open(encodeURI(k),"_blank")}break;case"native-share":let v={title:this._messages.share?.label||"Share",text:this.shareText,url:encodeURI(l)};navigator?.canShare?.(v)?navigator.share(v).catch(p=>{console.error("Error using native share:",p)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(e){let s=(await(await F())("https://arcg.is/prod/shorten",{query:{longUrl:e,f:"json"}}))?.data?.data?.url;if(s)return s.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}async copyEmbedCode(){await navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!0,setTimeout(()=>{this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1)},3e3)),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:e,y:s}=this.view.center,{spatialReference:o}=this.view,r=await L({...o.toJSON()}),l=await B({x:e,y:s,spatialReference:r}),v=await this.processPoint(l),{isWGS84:p,isWebMercator:d}=v.spatialReference,f=p||d;return this.generateShareUrlParams(v,f)}async processPoint(e){let{isWGS84:s,isWebMercator:o}=e.spatialReference;if(s||o)return e;let r=await H(),l=await L({wkid:4326}),v=this.view?.spatialReference??l;try{return await r.load(),r.execute(e,v)}catch(p){console.error("Failed to project point to outSpatialReference",p);try{let d=r.execute(e,l);return Promise.resolve(d)}catch(d){return console.error("Failed to project point to fallbackOutSpatialReference",d),await Promise.reject(new Error("Failed to project point to both spatial references"))}}}generateShareUrlParams(e,s){let{longitude:o,latitude:r,x:l,y:v}=e;if(o===void 0||r===void 0||!this.view)return this.shareUrl;let p=this.roundValue(s?o:l),d=this.roundValue(s?r:v),{zoom:f}=this.view,k=this.roundValue(f),P=this.view?.popup?.selectedFeature,D=this.view?.popup?.visible,$,x;if(P&&D&&P?.layer?.type==="feature"){let _=P?.layer;$=_?.id,x=P.attributes[_.objectIdField]}let R=this.view.map?.allLayers.filter(_=>!_.visible).toArray().map(_=>_.id).toString().replaceAll(",",";"),{type:A}=this.view,{defaultUrlParams:g}=this,c=new URL(this.shareUrl),{searchParams:u}=c;if(u.get("center")&&u.delete("center"),u.get("level")&&u.delete("level"),u.get("selectedFeature")&&u.delete("selectedFeature"),u.get("hiddenLayers")&&u.delete("hiddenLayers"),u.get("viewpoint")&&u.delete("viewpoint"),A==="3d"){let{camera:_}=this.view,{heading:V,position:W,tilt:j}=_,{longitude:K,latitude:Z,x:G,y:X,z:q}=W,J=s?K:G,Q=s?Z:X,y={longitude:this.roundValue(J,8),latitude:this.roundValue(Q,8),z:this.roundValue(q,3),heading:this.roundValue(V,3),tilt:this.roundValue(j,3)},Y=`cam:${y.longitude},${y.latitude},${y.z}${!s&&this.view?.spatialReference?.wkid?`,${this.view?.spatialReference?.wkid}`:""};${y.heading},${y.tilt}`;return g?.viewpoint!==!1&&c.searchParams.set("viewpoint",Y),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}return g?.center!==!1&&c.searchParams.set("center",`${p};${d}`),g?.level!==!1&&c.searchParams.set("level",`${k}`),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}roundValue(e,s=4){return Number.parseFloat(e.toFixed(s))}get isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}render(){let e=this.isLinkCopiedToClipboard&&this.mode==="popover"?this.renderSuccess():n`<div class=${a(t.dialogContent)}>${this.renderMenuOptions()}${this.displayTipText?this.renderTip():null}${this.embed?this.renderEmbed():null}</div>`,s=this.shareIconsLayout==="vertical"?` ${t.layout.vertical}`:` ${t.layout.horizontal}`,o=` calcite-mode-${this.el.closest(N)?"dark":"light"}`,r=n`<div class=${`${t.dialog}${s}${o}`} @click=${this.stopEventPropagation} ${h(this.dialogContentRef)}>${e}</div>`,l=this.removePopoverOffset?0:6;return this.isNativeShareEnabled?this.renderShareButton():this.mode==="popover"?[n`<calcite-popover .open=${this.isPopoverOpen} .label=${this._messages.share?.label??""} reference-element=shareButton placement=bottom-start .scale=${this.scale} .overlayPositioning=${this.popoverPositioning} .offsetDistance=${l} .pointerDisabled=${this.removePopoverOffset} @calcitePopoverOpen=${()=>{!this.shareListRef.value||this.isNativeShareEnabled||this.shareListRef.value.children[0].focus()}} @calcitePopoverBeforeClose=${this.resetPopoverCopyState} @click=${this.stopEventPropagation} @keydown=${this.handlePopoverRefKeyDown} ${h(this.popoverRef)}>${r}</calcite-popover>`,this.renderShareButton()]:[r,n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyLinkPopoverRef)}>${this.renderSuccess()}</calcite-popover>`,this.embed?n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyEmbedToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyEmbedPopoverRef)}>${this.renderEmbedSuccess()}</calcite-popover>`:null]}renderShareButton(){let e=this.shareButtonScale??this.scale,s=async r=>{this.isNativeShareEnabled?(r.stopPropagation(),await this.handleShareItem("native-share")):this.togglePopoverVisibility(r)},o=n`<div class=${a(t.iconContainer)}><calcite-icon icon=share .scale=${this.popoverButtonIconScale}></calcite-icon></div>`;return this.shareButtonType==="button"?n`<calcite-button id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} .kind=${this.shareButtonColor} appearance=transparent ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-button>`:n`<calcite-action id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} appearance=transparent text alignment=center ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-action>`}renderSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${this.successMessage||e?.url}</span></div>`}renderEmbedSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${e?.embed}</span></div>`}renderMenuOptions(){let e=this._messages.options,s=document.dir==="rtl"?` ${t.rtl.optionText}`:"";return n`<ul class=${a(t.options)} role=menu ${h(this.shareListRef)}><li id=copyToClipboard @click=${this.handleShareItem.bind(this,"link")} @keydown=${this.makeOptionKeyDownHandler("link")} role=menuitem tabindex=0><span class=${a(t.icon)}><calcite-icon icon=link .scale=${this.scale}></calcite-icon></span><span class=${`${t.optionText}${s}`}>${e?.link?.label}</span></li>${this.socialMedia?[n`<li @click=${this.handleShareItem.bind(this,"facebook")} @keydown=${this.makeOptionKeyDownHandler("facebook")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderFacebookIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.facebook?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"x")} @keydown=${this.makeOptionKeyDownHandler("x")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderXIcon()}</span><span class=${`${t.optionText}${s}`}>X</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"linkedIn")} @keydown=${this.makeOptionKeyDownHandler("linkedIn")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderLinkedInIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.linkedIn?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"bluesky")} @keydown=${this.makeOptionKeyDownHandler("bluesky")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderBlueSkyIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.blueSky?.label}</span></li>`]:null}</ul>`}renderFacebookIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g><path d="M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z" style=${b({fill:"#1877f2",fillRule:"nonzero"})} /><path d="M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z" style=${b({fill:"#fff",fillRule:"nonzero"})} /></g>`}</svg>`}renderXIcon(){let e=!!this.el.closest(N);return n`<svg height=100% class=${a(e?t.xLogo.dark:t.xLogo.light)} viewBox="0 0 1200 1227" fill=none xmlns=http://www.w3.org/2000/svg>${w`<rect height=400 style=${b({fill:"none"})} width=400 x=56 y=56 /><path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" fill=${e?"white":"black"} />`}</svg>`}renderBlueSkyIcon(){return n`<svg height=100% fill=#0f85fe xmlns=http://www.w3.org/2000/svg viewBox="0 0 512 512">${w`<path d="M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z" />`}</svg>`}renderLinkedInIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g id=g5891><path d="M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z" id=background style=${b({fill:"#2867b2"})} /><g id=shapes><rect height=257.962 id=rect11 style=${b({fill:"#fff"})} width=85.76 x=61.053 y=178.667 /><path d="M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z" id=path13-0 style=${b({fill:"#fff",fillRule:"nonzero"})} /><path d="M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z" id=path15 style=${b({fill:"#fff",fillRule:"nonzero"})} /></g></g>`}</svg>`}renderTip(){let e=this._messages.info;return n`<div class=${a(t.tipContainer)}><span class=${a(t.tipHeader)}><calcite-icon icon=lightbulb .scale=${this.scale}></calcite-icon><span>${e?.label}</span></span><p class=${a(t.tipContent)}>${e?.tooltip}</p></div>`}renderEmbed(){let e=this._messages.embed,s=document.dir==="rtl"?` ${t.rtl.textArea}`:"";return n`<div class=${a(t.embed.container)}><span class=${a(t.embed.header)}><calcite-icon icon=code .scale=${this.scale}></calcite-icon><span>${this._messages.embed?.label}</span></span><div class=${a(t.embed.embedCode.container)}><div class=${a(t.embed.embedCode.textArea)}><textarea cols=30 rows=5 readonly class=${a(s)} .value=${S(this.getEmbedCode()??"")} ${h(this.embedCodeRef)}></textarea><button id=copyEmbedToClipboard @click=${this.copyEmbedCode} class=${a(t.embed.embedCode.copyButton)}><calcite-icon icon=copy .scale=${this.scale}></calcite-icon><span>${e?.copy}</span></button></div><span class=${a(t.embed.textAreaText)}><slot name=text-area-text></slot></span><div class=${a(t.embed.dimensions.container)}><label class=${a(t.embed.dimensions.input)}><span>${e?.width}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("width")} .value=${S(this.embedWidth??"")} min=${E} ${h(this.embedWidthRef)}></label><label class=${a(t.embed.dimensions.input)}><span>${e?.height}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("height")} .value=${S(this.embedHeight??"")} min=${E} ${h(this.embedHeightRef)}></label></div></div></div>`}};U("instant-apps-social-share",z);export{z as InstantAppsSocialShare};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250915 */
4
- import{a as e,b as i,c as l,d as s,e as t}from"./52SWRWFF.js";import{a as r}from"./KL73F75A.js";import"./554U5V7U.js";import"./LPOISRVW.js";import"./3DWPYRJF.js";import"./CVF7IBRZ.js";import"./PY2P2XUG.js";import"./F2F4ZQWX.js";import"./SUEDCHYV.js";import"./BU2ZZSPK.js";import"./UGP5UJAO.js";import"./JWCKTXFY.js";import"./6EP5NBHV.js";import"./QJLTXY2W.js";import"./FULFGP3F.js";import"./BPM67OHZ.js";import"./4QPGV53Y.js";import"./YMY4S52N.js";import"./Z4EC5CR5.js";import"./SYMQ5NR5.js";import"./BB2XXRZT.js";import"./2W5MR3Y3.js";import"./CBP7V4DB.js";import"./N6HTM2LL.js";import"./D5C4GXTW.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",clearOnHidden:!0,type:"number",messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
3
+ v1.1.0-next.20250916 */
4
+ import{a as e,b as i,c as l,d as s,e as t}from"./IW6HHO5A.js";import{a as r}from"./QNYIPNQH.js";import"./GG7ES4ED.js";import"./HSVOCCH5.js";import"./2QJXTRKE.js";import"./GSH4TQSQ.js";import"./MUXAGQOV.js";import"./UR34PQM6.js";import"./Y5B57EZE.js";import"./KDTI4XON.js";import"./NKB2LE2O.js";import"./6QAM2D7S.js";import"./4IB6H45E.js";import"./PCUTOVRB.js";import"./WZOYXSYY.js";import"./UWFYVH4K.js";import"./VC3YBN3V.js";import"./JXVXFJCB.js";import"./TLIXZXAL.js";import"./MLQBZ54R.js";import"./VT4PBX6Z.js";import"./YPWE4SGR.js";import"./XJKHNI3V.js";import"./P24X2YJY.js";import"./JPP3LPWG.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",clearOnHidden:!0,type:"number",messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250915 */
4
- import c from"./YUQRZT7V.js";import b from"./3NX7LAGT.js";import"./FRMQDHMM.js";import a from"./5I5NLBAL.js";import{a as K}from"./LZTP3XNG.js";import{C as Pe,E as Te,c as ze,z as Ie}from"./PF36LRKG.js";import{b as Se}from"./RFTRNEXX.js";import"./ZP6TWN56.js";import{D as Re,E as Ee,G as w,H as E,h as ke,i as L,j as ge,l as oe}from"./ZNV2KGHK.js";import{b as st,d as lt}from"./D5C4GXTW.js";export default $arcgis.t(([,{a:B,b:W},{a:Fe,b:ce,d:Me,e:Ue,f:ue,g:He,i:Be,o:de,s:De,t:Y,u:me,v:qe,w:We}])=>{var Je=st((fe,Ge)=>{(function(b,t){typeof fe=="object"&&typeof Ge<"u"?t(fe):typeof define=="function"&&define.amd?define(["exports"],t):(b=typeof globalThis<"u"?globalThis:b||self,t(b.maquette={}))})(fe,(function(b){"use strict";var t="http://www.w3.org/",s="".concat(t,"2000/svg"),o="".concat(t,"1999/xlink"),a=[],r=function(e,i){var n={};return Object.keys(e).forEach(function(l){n[l]=e[l]}),i&&Object.keys(i).forEach(function(l){n[l]=i[l]}),n},g=function(e,i){return e.vnodeSelector!==i.vnodeSelector?!1:e.properties&&i.properties?e.properties.key!==i.properties.key?!1:e.properties.bind===i.properties.bind:!e.properties&&!i.properties},u=function(e){if(typeof e!="string")throw new Error("Style values must be strings")},_=function(e,i,n){if(i.vnodeSelector!==""){for(var l=n;l<e.length;l++)if(g(e[l],i))return l}return-1},$=function(e,i,n,l){var h=e[i];if(h.vnodeSelector!==""){var c=h.properties,A=c?c.key===void 0?c.bind:c.key:void 0;if(!A){for(var f=0;f<e.length;f++)if(f!==i){var d=e[f];if(g(d,h))throw{error:new Error("".concat(n.vnodeSelector," had a ").concat(h.vnodeSelector," child ").concat(l==="added"?l:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:n,childNode:h}}}}},P=function(e){if(e.properties){var i=e.properties.enterAnimation;i&&i(e.domNode,e.properties)}},x=[],C=!1,S=function(e){(e.children||[]).forEach(S),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},z=function(){C=!1,x.forEach(S),x.length=0},I=function(e){x.push(e),C||(C=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(z,{timeout:16}):setTimeout(z,16))},R=function(e){var i=e.domNode;if(e.properties){var n=e.properties.exitAnimation;if(n){i.style.pointerEvents="none";var l=function(){i.parentNode&&(i.parentNode.removeChild(i),I(e))};n(i,l,e.properties);return}}i.parentNode&&(i.parentNode.removeChild(i),I(e))},M=["afterCreate","afterUpdate","afterRemoved","enterAnimation","exitAnimation","updateAnimation"];function D(e){return!M.includes(e)}var ee=function(e,i,n){if(i)for(var l=n.eventHandlerInterceptor,h=Object.keys(i).filter(D),c=h.length,A=0;A<c;A++){var f=h[A],d=i[f];if(f==="className")throw new Error('Property "className" is not supported, use "class".');if(f==="class")te(e,d,!0);else if(f==="classes")for(var v=Object.keys(d),k=v.length,y=0;y<k;y++){var m=v[y];d[m]&&e.classList.add(m)}else if(f==="styles")for(var U=Object.keys(d),T=U.length,y=0;y<T;y++){var J=U[y],O=d[J];O&&(u(O),n.styleApplyer(e,J,O))}else if(f==="on"&&d)for(var ae=0,re=Object.entries(i.on);ae<re.length;ae++){var se=re[ae],X=se[0],q=se[1],N=typeof q=="function"?q:q.listener;l&&(N=l(X,N,e,i)),N&&e.addEventListener(X,N,typeof q=="function"?void 0:q.options)}else if(f!=="key"&&d!==null&&d!==void 0){var le=typeof d;le==="function"?(f.lastIndexOf("on",0)===0&&l&&(d=l(f,d,e,i)),e[f]=d):n.namespace===s?f==="href"?e.setAttributeNS(o,f,d):e.setAttribute(f,d):le==="string"&&f!=="value"&&f!=="innerHTML"?e.setAttribute(f,d):e[f]=d}}},Q=function(e,i,n){if(i)for(var l=0,h=i;l<h.length;l++){var c=h[l];F(c,e,void 0,n)}},H=function(e,i,n){Q(e,i.children,n),i.text&&(e.textContent=i.text),ee(e,i.properties,n),i.properties&&i.properties.afterCreate&&i.properties.afterCreate.apply(i.properties.bind||i.properties,[e,n,i.vnodeSelector,i.properties,i.children])},F=function(e,i,n,l){var h,c,A=0,f=e.vnodeSelector,d=i.ownerDocument;if(f==="")e.domNode?e.domNode.nodeValue=e.text:(c=e.domNode=d.createTextNode(e.text),n!==void 0?i.insertBefore(c,n):i.appendChild(c));else{for(var v=0;v<=f.length;++v){var k=f.charAt(v);if(v===f.length||k==="."||k==="#"){var y=f.charAt(A-1),m=f.slice(A,v);y==="."?c.classList.add(m):y==="#"?c.id=m:(m==="svg"&&(l=r(l,{namespace:s})),l.namespace!==void 0?c=e.domNode=d.createElementNS(l.namespace,m):(c=e.domNode=e.domNode||(!((h=e.properties)===null||h===void 0)&&h.is?d.createElement(m,{is:e.properties.is}):d.createElement(m)),m==="input"&&e.properties&&e.properties.type!==void 0&&c.setAttribute("type",e.properties.type)),n!==void 0?i.insertBefore(c,n):c.parentNode!==i&&i.appendChild(c)),A=v+1}}H(c,e,l)}},G,te=function(e,i,n){i&&i.split(" ").forEach(function(l){l&&e.classList.toggle(l,n)})},he=function(e,i,n,l){if(n){for(var h=!1,c=Object.keys(n).filter(D),A=c.length,f=0;f<A;f++){var d=c[f],v=n[d],k=i[d];if(d==="class")k!==v&&(te(e,k,!1),te(e,v,!0));else if(d==="classes")for(var y=e.classList,m=Object.keys(v),U=m.length,T=0;T<U;T++){var J=m[T],O=!!v[J],ae=!!k[J];O!==ae&&(h=!0,O?y.add(J):y.remove(J))}else if(d==="styles")for(var re=Object.keys(v),se=re.length,T=0;T<se;T++){var X=re[T],q=v[X],N=k[X];q!==N&&(h=!0,q?(u(q),l.styleApplyer(e,X,q)):l.styleApplyer(e,X,""))}else if(!v&&typeof k=="string"&&(v=""),d==="value"){var le=e[d];le!==v&&v!==k&&(e[d]=v),v!==k&&(h=!0)}else if(v!==k){var Ce=typeof v;(Ce!=="function"||!l.eventHandlerInterceptor)&&(l.namespace===s?d==="href"?e.setAttributeNS(o,d,v):e.setAttribute(d,v):Ce==="string"&&d!=="innerHTML"?d==="role"&&v===""?e.removeAttribute(d):e.setAttribute(d,v):e[d]!==v&&(e[d]=v),h=!0)}}return h}},Oe=function(e,i,n,l,h){if(n===l)return!1;n=n||a,l=l||a;for(var c=n.length,A=l.length,f=0,d=0,v,k=!1;d<A;){var y=f<c?n[f]:void 0,m=l[d];if(y!==void 0&&g(y,m))k=G(y,m,h,i,n)||k,f++;else{var U=_(n,m,f+1);if(U>=0){for(v=f;v<U;v++)R(n[v]),$(n,v,e,"removed");k=G(n[U],m,h,i,n)||k,f=U+1}else F(m,i,f<c?n[f].domNode:void 0,h),P(m),$(l,d,e,"added")}d++}if(c>f)for(v=f;v<c;v++)R(n[v]),$(n,v,e,"removed");return k};G=function(e,i,n,l,h){var c=e.domNode,A=!1;if(e===i)return!1;var f=!1;if(i.vnodeSelector===""){if(i.text!==e.text){var d=c.ownerDocument.createTextNode(i.text);try{l.replaceChild(d,c)}catch{l.replaceChild(d,l.childNodes[h.indexOf(e)])}return i.domNode=d,A=!0,A}i.domNode=c}else i.vnodeSelector.lastIndexOf("svg",0)===0&&(n=r(n,{namespace:s})),e.text!==i.text&&(f=!0,i.text===void 0?c.removeChild(c.firstChild):c.textContent=i.text),i.domNode=c,f=Oe(i,c,e.children,i.children,n)||f,f=he(c,e.properties,i.properties,n)||f,i.properties&&i.properties.afterUpdate&&i.properties.afterUpdate.apply(i.properties.bind||i.properties,[c,n,i.vnodeSelector,i.properties,i.children]);return f&&i.properties&&i.properties.updateAnimation&&i.properties.updateAnimation(c,i.properties,e.properties),A};var ie=function(e,i){return{getLastRender:function(){return e},update:function(n){if(e.vnodeSelector!==n.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var l=e;e=n,G(l,n,i,l.domNode.parentNode,[l])},domNode:e.domNode}},Ne={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,i,n){i.charAt(0)==="-"?e.style.setProperty(i,n):e.style[i]=n}},Z=function(e){return r(Ne,e)},ne={create:function(e,i){return i=Z(i),F(e,document.createElement("div"),void 0,i),ie(e,i)},append:function(e,i,n){return n=Z(n),F(i,e,void 0,n),ie(i,n)},insertBefore:function(e,i,n){return n=Z(n),F(i,e.parentNode,e,n),ie(i,n)},merge:function(e,i,n){return n=Z(n),i.domNode=e,H(e,i,n),ie(i,n)},replace:function(e,i,n){return n=Z(n),F(i,e.parentNode,e,n),e.parentNode.removeChild(e),ie(i,n)}},je=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},xe=function(e,i,n){for(var l=0,h=i.length;l<h;l++){var c=i[l];Array.isArray(c)?xe(e,c,n):c!=null&&c!==!1&&(typeof c=="string"&&(c=je(c)),n.push(c))}};function Ve(e,i,n){if(Array.isArray(i))n=i,i=void 0;else if(i&&(typeof i=="string"||i.vnodeSelector)||n&&(typeof n=="string"||n.vnodeSelector))throw new Error("h called with invalid arguments");var l,h;return n&&n.length===1&&typeof n[0]=="string"?l=n[0]:n&&(h=[],xe(e,n,h),h.length===0&&(h=void 0)),{vnodeSelector:e,properties:i,children:h,text:l===""?void 0:l,domNode:null}}var et=function(e,i){for(var n=[];e&&e!==i;)n.push(e),e=e.parentNode;return n},pe;Array.prototype.find?pe=function(e,i){return e.find(i)}:pe=function(e,i){return e.filter(i)[0]};var tt=function(e,i){var n=e;return i.forEach(function(l){n=n&&n.children?pe(n.children,function(h){return h.domNode===l}):void 0}),n},it=function(e,i,n){return function(h,c,A,f){return l};function l(h){var c,A;n("domEvent",h);var f=i(),d=et(h.currentTarget,f.domNode);d.reverse();var v=tt(f.getLastRender(),d);e.scheduleRender();var k;if(v){var y=(A=(c=v.properties["on".concat(h.type)])!==null&&c!==void 0?c:v.properties.on[h.type].listener)!==null&&A!==void 0?A:v.properties.on[h.type];k=y.apply(v.properties.bind||this,arguments)}return n("domEventProcessed",h),k}},nt=function(e){var i,n=Z(e),l=n.performanceLogger,h=!0,c,A=!1,f=[],d=[],v=function(y,m,U){var T,J=function(){return T};n.eventHandlerInterceptor=it(i,J,l),T=y(m,U(),n),f.push(T),d.push(U)},k=function(){if(c=void 0,!!h){h=!1,l("renderStart",void 0);for(var y=0;y<f.length;y++){var m=d[y]();l("rendered",void 0),f[y].update(m),l("patched",void 0)}l("renderDone",void 0),h=!0}};return i={renderNow:k,scheduleRender:function(){!c&&!A&&(c=requestAnimationFrame(k))},stop:function(){c&&(cancelAnimationFrame(c),c=void 0),A=!0},resume:function(){A=!1,h=!0,i.scheduleRender()},append:function(y,m){v(ne.append,y,m)},insertBefore:function(y,m){v(ne.insertBefore,y,m)},merge:function(y,m){v(ne.merge,y,m)},replace:function(y,m){v(ne.replace,y,m)},detach:function(y){for(var m=0;m<d.length;m++)if(d[m]===y)return d.splice(m,1),f.splice(m,1)[0];throw new Error("renderFunction was not found")}},i},at=function(){var e,i;return{invalidate:function(){i=void 0,e=void 0},result:function(n,l){if(e)for(var h=0;h<n.length;h++)e[h]!==n[h]&&(i=void 0);return i||(i=l(),e=n),i}}},rt=function(e,i,n){var l=[],h=[];return{results:h,map:function(c){for(var A=c.map(e),f=h.slice(),d=0,v=0;v<c.length;v++){var k=c[v],y=A[v];if(y===l[d])h[v]=f[d],n(k,f[d],v),d++;else{for(var m=!1,U=1;U<l.length+1;U++){var T=(d+U)%l.length;if(l[T]===y){h[v]=f[T],n(c[v],f[T],v),d=T+1,m=!0;break}}m||(h[v]=i(k,v))}}h.length=c.length,l=A}}};b.createCache=at,b.createMapping=rt,b.createProjector=nt,b.dom=ne,b.h=Ve}))});var Ye=lt(Je(),1);var ot=96;function V(b){return b?b/72*ot:0}var ct=(0,Ye.createProjector)(),Qe=10,_e=20,ve=10,Le=20,Ae={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function dt(b="vertical"){let t={stroke:"rgb(200, 200, 200)",strokeWidth:"1"};return b==="vertical"?L`<svg height=4 width=10>${ge`<line x1=0 y1=2 x2=10 y2=2 style=${E(t)} />`}</svg>`:L`<svg height=10 width=10>${ge`<line x1=5 y1=0 x2=5 y2=10 style=${E(t)} />`}</svg>`}function ft(b,t="vertical"){let s=document.createElement("div");return s.style.height=`${_e}px`,s.className=Ae.univariateAboveAndBelowSymbol,b!=null&&(s.style.opacity=b.toString()),ct.append(s,dt.bind(null,t)),s}function Ze(b,t,s="vertical",o){b.infos.forEach((a,r)=>{if(o&&r===2)a.preview=ft(t,s);else{let{size:g}=a,u=V(g)+(s==="horizontal"?Le:ve),_=a.preview.tagName.toLowerCase()==="div",$=_?a.preview:document.createElement("div");$&&($.className=Ae.univariateAboveAndBelowSymbol),s==="horizontal"?$&&($.style.width=`${u}px`):$&&($.style.height=`${u}px`),_||$&&$.appendChild(a.preview),a.preview=$}})}function Ke(b,t="classic"){let s=b.infos,o=s[0].size,a=s[s.length-1].size;return t==="classic"?(V(o)+ve)/2:(V(o)-V(a))/2}function ye(b,t,s){if(!b)return null;let o=b.infos.map(r=>r.color),a=t.renderColorRampPreviewHTML(s.type==="full"?o:s.type==="above"?o.slice(0,3):o.slice(2,5),{width:s.width,height:s.height,align:s.rampAlignment,effectList:s.effectList});return a.className=Ae.colorRamp,s.opacity!=null&&(a.style.opacity=s.opacity.toString()),a}function vt(b,t,s,o="vertical"){let a=0,r=b.infos,g=Math.floor(r.length/2),u=t==="full"||t==="above"?0:g,_=t==="full"||t==="below"?r.length-1:g;for(let $=u;$<=_;$++)if(s&&$===g)a+=o==="horizontal"?Qe:_e;else{let P=r[$].size,x=V(P)+(o==="horizontal"?Le:ve);a+=x}return Math.round(a)}function $e(b,t,s,o="vertical"){let a=vt(b,t,s,o),r=b.infos,g=Math.floor(r.length/2),u=t==="full"||t==="above"?0:g,_=t==="full"||t==="below"?r.length-1:g,$=t==="full"?r[u].size+r[_].size:t==="above"?r[u].size:r[_].size,P=s?o==="vertical"?_e:Qe:0,x=o==="vertical"?ve*(t==="full"?2:1):Le*(t==="full"?2:1);return Math.round(a-(V($)/2+P/2+x/2))}function ht(b,t,s="vertical"){let o=b.infos,a=o.find(({type:g})=>g==="size-ramp"),r=o.find(({type:g})=>g==="color-ramp");return a&&(a={...a},a.infos=[...a.infos],Ze(a,t,s,!0)),r&&(r={...r},r.infos=[...r.infos]),s==="horizontal"&&(a?.infos.reverse(),r?.infos.reverse()),{sizeRampElement:a,colorRampElement:r}}function pt(b,t="vertical"){let s=b.infos,o=s.find(({type:r})=>r==="size-ramp"),a=s.find(({type:r})=>r==="color-ramp");return o&&(o={...o},o.infos=[...o.infos],Ze(o,null,t,!1)),a&&(a={...a},a.infos=[...a.infos]),t==="horizontal"&&(o?.infos.reverse(),a?.infos.reverse()),{sizeRampElement:o,colorRampElement:a}}function gt(b,t){return!0}var ut=ke`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: normal;--instant-apps-interactive-legend-caption-font-weight: normal;--instant-apps-interactive-legend-secondary-color: var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size: 1rem;--instant-apps-interactive-legend-total-feature-count-font-size: .875rem;--instant-apps-interactive-legend-info-font-size: .875rem;--instant-apps-interactive-legend-info-item-background--selected: #c7ebff;--instant-apps-interactive-legend-info-item-background--selected--dark: #009af2;--instant-apps-interactive-legend-info-item-background--hover: #e9e9e9;--instant-apps-interactive-legend-info-item-background--hover--dark: #4a4a4a;--instant-apps-interactive-legend-info-item-color--selected: var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color: var(--calcite-color-background);--instant-apps-interactive-legend-ui-margin: 20px 15px;--instant-apps-interactive-legend-ui-padding: 20px 15px}:host .esri-legend__service{padding:0}:host .esri-legend__layer-body,:host .esri-legend__layer,:host .esri-legend__layer-table,:host .esri-legend__group-layer-child,:host .esri-legend__layer-child-table{margin:0;overflow:hidden}:host .esri-legend__layer-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host .esri-legend__layer-caption calcite-action{margin-right:5px}:host .instant-apps-interactive-legend__layer-caption-btn-container{white-space:nowrap}:host .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}:host .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}:host .esri-legend__layer-cell.esri-legend__layer-cell--info{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}:host .esri-legend__layer-cell,:host .esri-legend__layer-row{display:flex;align-items:center}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-body{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}:host .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol>.esri-legend__layer-body{margin:0}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-row{display:table-row}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-cell{display:table-cell}:host .esri-legend__layer-cell--symbols{justify-content:center;width:20%}:host .esri-legend__layer-cell--info{width:65%}:host .instant-apps-interactive-legend__layer-row--interactive{margin:1px;background:transparent;border:none;width:100%}:host .esri-legend__layer-cell--info{color:var(--instant-apps-interactive-legend-secondary-color)}:host .esri-legend__layer-row,:host .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}:host .instant-apps-interactive-legend__layer-row--interactive{position:relative}:host .instant-apps-interactive-legend-element-info--selected{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}:host .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}:host .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected .esri-legend__layer-cell--info{color:var(--calcite-color-text-inverse)}:host .hide{display:none}.instant-apps-interactive-legend__compact .esri-legend__layer-row{--instant-apps-interactive-legend-ui-padding: 10px 5px}.instant-apps-interactive-legend__compact .esri-legend__layer-row .esri-legend__layer-cell--info{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;line-clamp:2;line-height:1.3125rem;max-height:2.625rem}@media (min-width: 992px){:host .instant-apps-interactive-legend__layer-row--interactive{cursor:pointer}:host .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}:host .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}:host .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}:host .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}`,p={layer:"esri-legend__layer",layerBody:"esri-legend__layer-body",layerRow:"esri-legend__layer-row",layerInfo:"esri-legend__layer-cell esri-legend__layer-cell--info",imageryLayerStretchedImage:"esri-legend__imagery-layer-image--stretched",symbolContainer:"esri-legend__layer-cell esri-legend__layer-cell--symbols",symbol:"esri-legend__symbol",rampContainer:"esri-legend__ramps",sizeRamp:"esri-legend__size-ramp",colorRamp:"esri-legend__color-ramp",opacityRamp:"esri-legend__opacity-ramp",rampLabelsContainer:"esri-legend__ramp-labels",rampLabel:"esri-legend__ramp-label",univariateAboveAndBelowLabel:"esri-univariate-above-and-below-ramp__label",message:"esri-legend__message",interactiveLayerRow:"instant-apps-interactive-legend__layer-row--interactive",infoSelected:"instant-apps-interactive-legend-element-info--selected",compact:"instant-apps-interactive-legend__compact"},mt=24,Xe={display:"flex",alignItems:"flex-start"},be={marginLeft:"3px"},j={display:"table-cell",verticalAlign:"middle"},we=class extends Ee{constructor(){super(...arguments),this.calculatingFeatureCount=!1,this.isLoading=!0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"}}static{this.properties={isLoading:16,legendvm:0,zoomTo:5,featureCount:5,filterMode:0,messages:0}}static{this.styles=ut}async connectedCallback(){super.connectedCallback(),!this.handles&&(this.handles=await ze())}async load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0});let[t,s]=await Promise.all([Pe(),Ie()]),o=await Te();this.reactiveUtils=s,this.intl=t,this.symbolUtils=o}willUpdate(t){t.has("filterMode")&&this.legendvm?.view&&(this.hasUpdated||this.filterMode.type!=="filter")&&qe(this.filterMode,this.legendvm.view)}async loaded(){await this.initLegend()}disconnectedCallback(){super.disconnectedCallback(),this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}async initLegend(){try{await this.reactiveUtils.whenOnce(()=>this.legendvm?.view);let t=async()=>{try{let s=this.legendvm?.view?.map;await s?.load(),await s?.basemap?.load();let o=s?.allLayers?.map(async u=>await u.load()),a=(await Promise.allSettled(o)).map(u=>u?.status==="fulfilled"&&u?.value?u.value:null).filter(u=>!!u),r=[];a.forEach(u=>{this.legendvm?.view&&r.push(this.legendvm.view.whenLayerView(u))}),await Promise.allSettled(r);let g=await ce(this.legendvm,this.reactiveUtils);W.set("data",{...B.data,...g}),this.isLoading=!1,await this.setupWatchersAndListeners()}catch(s){console.error(s),this.isLoading=!1}};this.legendvm?.view?.when(t),this.legendvm?.view?.map?.layers?.on("after-changes",t)}catch{this.isLoading=!1}}getStretchStopLabel(t){let s=this.messages[t.label];return t.label?`${s}: ${typeof t.value=="string"?t.value:this.intl.formatNumber(t.value,{style:"decimal",notation:t.value.toString().includes("e")?"scientific":"standard"})}`:""}getTitle(t,s){if(!t)return;if(typeof t=="string"||typeof t=="number")return t;if("value"in t||"unit"in t){let r=typeof this.messages?.dotValue=="string"?this.messages.dotValue:"";return this.intl.substitute(r,t)}if("colorName"in t||"bandName"in t){let{colorName:r,bandName:g}=t,u=this.messages[r],_=typeof this.messages[g]=="string"?this.messages[g]:g;return`${u}: ${_}`}if("showCount"in t)return t.showCount?this.messages.clusterCountTitle:null;let o=null;if(s){let r=t;o=r.ratioPercentTotal?"showRatioPercentTotal":r.ratioPercent?"showRatioPercent":r.ratio?"showRatio":t.normField?"showNormField":t.field?"showField":null}else if(this.isRendererTitle(s)){let r=t;o=r.normField?"showNormField":r.normByPct?"showNormPct":r.field?"showField":null}let a=o==="showField"?"{field}":typeof o=="string"?this.messages[o]:"";return o?this.intl?.substitute(a,{field:t.field,normField:t.normField}):""}isRendererTitle(t){return!t}async setupWatchersAndListeners(){let t=this.legendvm?.view?.map?.allLayers?.filter(a=>a?.type==="feature"),s=[];for(let a of t)this.legendvm?.view&&s.push(this.legendvm?.view?.whenLayerView(a));let o=[];try{o=await Promise.all(s)}catch(a){console.error(a)}for(let a of o){let r=`fLayerViewScale-${a.layer.id}`;!this.handles?.has(r)&&a&&this.handles?.add(a.watch("visibleAtCurrentScale",()=>{this.createDataForLayer(a.layer).catch(g=>{console.error(g)})}),r)}t?.forEach(a=>{let r=`fLayer-${a?.id}`;this.handles?.has(r)||this.handles?.add(this.reactiveUtils?.watch(()=>a?.visible,()=>{this.createDataForLayer(a).catch(g=>{console.error(g)})}),r)}),this.handles?.add(this.reactiveUtils.when(()=>this.legendvm,()=>{this.reactiveUtils.watch(()=>this.legendvm?.view?.updating,()=>{this.calculatingFeatureCount||this.legendvm?.view?.updating&&(this.calculatingFeatureCount=!0,this.reactiveUtils.when(()=>!this.legendvm?.view?.updating,()=>{de(this.legendvm,B.data).then(a=>{W.set("data",{...B.data,...a}),this.calculatingFeatureCount=!1}).catch(a=>{console.error(a)})},{once:!0,initial:!0}))},{initial:!0})},{initial:!0,once:!0})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.activeLayerInfos,"change",a=>{ce(this.legendvm,this.reactiveUtils).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).then(()=>{this.handles?.add(this.reactiveUtils.on(()=>a.children,"change",()=>{ce(this.legendvm,this.reactiveUtils).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).catch(r=>{console.error(r)})}))}).catch(r=>{console.error(r)})})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.view?.map?.layers,"after-changes",()=>{de(this.legendvm,B.data).then(a=>{W.set("data",{...B.data,...a}),this.calculatingFeatureCount=!1}).catch(a=>{console.error(a)})}))}async createDataForLayer(t){let s=W.get("data")?.[t?.id],o=We(this.legendvm?.activeLayerInfos)?.find(a=>a?.layer?.id===t?.id);if(!s&&o){let a=await Fe(this.legendvm,o,this.reactiveUtils);if(me({intLegendLayerData:a,layerId:t?.id}),this.featureCount){let r=await de(this.legendvm,B.data);W.set("data",{...B.data,...r})}}}applyFilter(t,s,o,a){return async()=>{let r={...B.data?.[s?.id]};a?await ue(r,t,o,this.filterMode,a):await ue(r,t,o,this.filterMode),me({intLegendLayerData:r,layerId:s?.id})}}render(){let t=this.renderFilteredLayers(),s=W.get("compact")?` ${p.compact}`:"";return this.isLoading?K("interactive-legend-loader",L`<calcite-loader scale=m .label=${this.messages?.loading} .text=${this.messages?.loading}></calcite-loader>`):K("interactive-legend-classic-container",L`<div class=${`${Y(this.el)}${s}`}>${t?.length>0?t:L`<div class=${w(p.message)}>${this.messages?.noLegend}</div>`}</div>`)}renderFilteredLayers(){return(this.legendvm?.activeLayerInfos?.toArray()).map(t=>this.renderLegendForLayer(t)).filter(t=>!!t)}renderLegendForLayer(t,s){if(!t.ready)return null;if(t.children.length){let r=t.children.map(g=>this.renderLegendForLayer(g,!0)).toArray();return L`<instant-apps-interactive-legend-group-legend-element class=${w(Y(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${t} .isChild=${s}><div style=${E({paddingLeft:"20px"})} .id=${`${t?.layer?.id}-legend-layer`} slot=content>${r}</div></instant-apps-interactive-legend-group-legend-element>`}let o=t.legendElements;if(o&&!o.length)return null;let a=o.map((r,g)=>this.renderLegendForElement(r,t.layer,t.effectList,t,g)).filter(r=>!!r);return a.length?L`<instant-apps-interactive-legend-layer-element class=${w(Y(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${t} .isChild=${!!s}><div slot=content .id=${`${t?.layer?.id}-legend-layer`} class=${w(p.layer)}>${a}</div></instant-apps-interactive-legend-layer-element>`:null}renderLegendForElement(t,s,o,a,r,g,u){let _=t.type==="color-ramp",$=t.type==="opacity-ramp",P=t.type==="size-ramp",x=null,C=Be(a,t,r),S=t?.type==="relationship-ramp";if(t.type==="symbol-table"||P){let R=t.infos.map((M,D)=>this.renderLegendForElementInfo(M,s,o,P,t,a,r,D,C,u)).filter(M=>!!M);R.length&&(x=L`<div class=${w(p.layerBody)}>${R}</div>`)}else if(t.type==="color-ramp"||t.type==="opacity-ramp"||t.type==="heatmap-ramp"||t.type==="stretch-ramp"){let R=t;x=this.renderLegendForRamp(R,s.opacity)}else if(S)x=K("relationship-ramp",L`<instant-apps-interactive-legend-relationship class=${w(Y(this.el))} .filterMode=${this.filterMode} .activeLayerInfo=${a} .legendElement=${t}></instant-apps-interactive-legend-relationship>`);else if(t.type==="pie-chart-ramp"){let R=t;x=this.renderPieChartRamp(R)}else if(t.type==="univariate-above-and-below-ramp"){let R=t;x=this.renderUnivariateAboveAndBelowRamp(R,s.opacity,o)}else if(t.type==="univariate-color-size-ramp"){let R=t;x=this.renderUnivariateColorSizeRamp(R,s.opacity,o)}if(!x)return null;let z=t.title,I=null;if(typeof z=="string")I=z;else if(z){let R=z,M=this.getTitle(R,_||$);this.isRendererTitle(_||$)?"title"in z&&(I=`${z.title} (${M})`):I=M}return L`<instant-apps-interactive-legend-legend-element class=${w(Y(this.el))} .activeLayerInfo=${a} .isSizeRamp=${P} .isChild=${!!g} .isColorRamp=${_} .isRelationshipRamp=${S} .isInteractive=${C} .zoomTo=${this.zoomTo} .legendElement=${t} .titleText=${I} .legendvm=${this.legendvm} .legendElementIndex=${r}><div slot=content>${x}</div></instant-apps-interactive-legend-legend-element>`}renderPieChartRamp(t){return L`<div .innerHTML=${`${t.preview?.outerHTML}`}></div>`}renderUnivariateAboveAndBelowRamp(t,s,o){let{sizeRampElement:a,colorRampElement:r}=ht(t,s);if(!a)return null;let g=$e(a,"above",!0),u=$e(a,"below",!0),_=12,$=ye(r,this.symbolUtils,{width:_,height:g,rampAlignment:"vertical",opacity:s,type:"above",effectList:o}),P=ye(r,this.symbolUtils,{width:_,height:u,rampAlignment:"vertical",opacity:s,type:"below",effectList:o}),x=Ke(a),C=a.infos.map(H=>H.label),S=C.map((H,F)=>F===0?L`<div class=${w(H?$?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${H}</div>`:F===2?L`<div></div>`:null),z=C.length-1,I=Math.floor(C.length/2),R=C.map((H,F)=>F===I||F===z?L`<div class=${w(H?$?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${H}</div>`:null),M={display:"table-cell",verticalAlign:"middle"},D={marginTop:`${x}px`},ee={height:`${g}px`},Q={height:`${u}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Xe)}><div class=${w(p.layerBody)}>${a.infos.map((H,F)=>L`<div class=${`${p.layerRow} ${p.sizeRamp}`}><div class=${w(p.symbol)} style=${E(M)} .innerHTML=${H?.preview?.outerHTML??""??""}></div>${!$&&F%2===0?L`<div class=${w(p.layerInfo)}>${C[F]}</div>`:null}</div>`)}</div>${$?K("color-ramp-preview",L`<div style=${E(D)}><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(ee)}>${S}</div></div></div><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${P}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(Q)}>${R}</div></div></div></div>`):null}</div>`)}renderUnivariateColorSizeRamp(t,s,o){let{sizeRampElement:a,colorRampElement:r}=pt(t);if(!a)return null;let g=Ke(a),u=12,_=$e(a,"full",!1),$=ye(r,this.symbolUtils,{width:u,height:_,rampAlignment:"vertical",opacity:s,type:"full",effectList:o}),P=a.infos.length-1,x=a.infos.map((I,R)=>R===0||R===P?L`<div class=${w(I.label?r?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${I.label}</div>`:null),C={display:"table-cell",verticalAlign:"middle"},S={marginTop:`${g}px`},z={height:`${_}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Xe)}><div class=${w(p.layerBody)}>${a.infos.map(I=>L`<div class=${`${p.layerRow} ${p.sizeRamp}`}><div class=${w(p.symbol)} style=${E(C)} .innerHTML=${I?.preview?.outerHTML??""??""}></div></div>`)}</div>${K("color-ramp-preview",L`<div style=${E(S)}><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(z)}>${x}</div></div></div></div>`)}</div>`)}renderLegendForRamp(t,s){let o=t.infos,a=t.type==="opacity-ramp",r=t.type==="heatmap-ramp",g=t.type==="stretch-ramp",u=t.preview,_=a?p.opacityRamp:"";u&&(u.classList.add(p.colorRamp),_&&u.classList.add(_)),s!=null&&u&&(u.style.opacity=s.toString());let $=o.map(C=>{let S;if(r){let z=this.messages[C.label];S=typeof z=="string"?z:C.label}else g?S="value"in C?this.getStretchStopLabel(C):C.label:S=C.label;return L`<div class=${w(C.label?p.rampLabel:"")}>${S}</div>`}),P={width:`${mt}px`},x={height:u?.style?.height};return L`<div class=${w(p.layerRow)}><div class=${w(p.symbolContainer)} style=${E({...P})}><div class=${w(p.rampContainer)} ${Re(C=>{C?.firstChild&&C?.firstChild?.remove(),C?.appendChild(u)})}></div></div><div class=${w(p.layerInfo)}><div class=${w(p.rampLabelsContainer)} style=${E({...x})}>${$}</div></div></div>`}renderLegendForElementInfo(t,s,o,a,r,g,u,_,$,P){if("infos"in t)return this.renderLegendForElement(t,s,o,g,u,!0,t);let x=null,C=!gt(s,r.type);if("preview"in t){let{outerHTML:G}=t.preview;x=L`<div class=${w(p.symbol)} .innerHTML=${G??""}></div>`}else"src"in t&&(x=this.renderImage(t,s,C));if(!x)return null;let S="",z=a?` ${p.sizeRamp}`:"",I,R=Ue(s),M=De(R,P);if(B.data){let G=Me(R,s,t,M,_),te=M?M?.nestedInfos:R,he=He(te);I=R?.categories?.size===1?!G?.selected:he||G?.selected}let D="label"in t?t.label:null,ee=M&&!("value"in t)?!1:$,Q=W.get("compact"),H=this.getTitle(D,!1)||"",F=M?r.title:D??s?.id;return ee?L`<button @click=${this.applyFilter(t,s,_,P)} class=${`${p.layerRow} ${p.interactiveLayerRow}${I?` ${p.infoSelected}`:""}`} title=${(Q?`${H}`:void 0)??oe} .ariaPressed=${I?"true":"false"}><div class=${`${p.symbolContainer}${S}${z}`}>${x}</div><div class=${`${p.layerInfo}${S}`}>${this.getTitle(D,!1)||""}</div>${this.featureCount&&!Q?L`<instant-apps-interactive-legend-count class=${w(Y(this.el))} .categoryId=${F} .activeLayerInfo=${g} .legendvm=${this.legendvm} .selected=${!!I} .legendElement=${r} .infoIndex=${_}></instant-apps-interactive-legend-count>`:null}</button>`:L`<div class=${w(p.layerRow)}><div class=${`${p.symbolContainer}${S}${z}`}>${x}</div><div class=${`${p.layerInfo}${S}`}>${H}</div></div>`}renderImage(t,s,o){let{label:a,src:r,opacity:g}=t,u=o?` ${p.imageryLayerStretchedImage}`:"",_=o?"":` ${p.symbol}`,$={opacity:`${g??s.opacity}`};return L`<img alt=${this.getTitle(a,!1)??oe} src=${r??oe} width=${t.width} height=${t.height} class=${`$${u}${_}`} style=${E($)}>`}};Se("instant-apps-interactive-legend-classic",we);return we},a,b,c)
3
+ v1.1.0-next.20250916 */
4
+ import c from"./CP6AC5QD.js";import b from"./SGHSHOZF.js";import"./BWHLDLC2.js";import a from"./KFDV4YXM.js";import{a as K}from"./LY2IY6BK.js";import{C as Pe,E as Te,c as ze,z as Ie}from"./CTA5L6K5.js";import{b as Se}from"./E6SZOM6H.js";import"./I4TU5GZV.js";import{D as Re,E as Ee,G as w,H as E,h as ke,i as L,j as ge,l as oe}from"./ZCVEHHZX.js";import{b as st,d as lt}from"./JPP3LPWG.js";export default $arcgis.t(([,{a:B,b:W},{a:Fe,b:ce,d:Me,e:Ue,f:ue,g:He,i:Be,o:de,s:De,t:Y,u:me,v:qe,w:We}])=>{var Je=st((fe,Ge)=>{(function(b,t){typeof fe=="object"&&typeof Ge<"u"?t(fe):typeof define=="function"&&define.amd?define(["exports"],t):(b=typeof globalThis<"u"?globalThis:b||self,t(b.maquette={}))})(fe,(function(b){"use strict";var t="http://www.w3.org/",s="".concat(t,"2000/svg"),o="".concat(t,"1999/xlink"),a=[],r=function(e,i){var n={};return Object.keys(e).forEach(function(l){n[l]=e[l]}),i&&Object.keys(i).forEach(function(l){n[l]=i[l]}),n},g=function(e,i){return e.vnodeSelector!==i.vnodeSelector?!1:e.properties&&i.properties?e.properties.key!==i.properties.key?!1:e.properties.bind===i.properties.bind:!e.properties&&!i.properties},u=function(e){if(typeof e!="string")throw new Error("Style values must be strings")},_=function(e,i,n){if(i.vnodeSelector!==""){for(var l=n;l<e.length;l++)if(g(e[l],i))return l}return-1},$=function(e,i,n,l){var h=e[i];if(h.vnodeSelector!==""){var c=h.properties,A=c?c.key===void 0?c.bind:c.key:void 0;if(!A){for(var f=0;f<e.length;f++)if(f!==i){var d=e[f];if(g(d,h))throw{error:new Error("".concat(n.vnodeSelector," had a ").concat(h.vnodeSelector," child ").concat(l==="added"?l:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:n,childNode:h}}}}},P=function(e){if(e.properties){var i=e.properties.enterAnimation;i&&i(e.domNode,e.properties)}},x=[],C=!1,S=function(e){(e.children||[]).forEach(S),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},z=function(){C=!1,x.forEach(S),x.length=0},I=function(e){x.push(e),C||(C=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(z,{timeout:16}):setTimeout(z,16))},R=function(e){var i=e.domNode;if(e.properties){var n=e.properties.exitAnimation;if(n){i.style.pointerEvents="none";var l=function(){i.parentNode&&(i.parentNode.removeChild(i),I(e))};n(i,l,e.properties);return}}i.parentNode&&(i.parentNode.removeChild(i),I(e))},M=["afterCreate","afterUpdate","afterRemoved","enterAnimation","exitAnimation","updateAnimation"];function D(e){return!M.includes(e)}var ee=function(e,i,n){if(i)for(var l=n.eventHandlerInterceptor,h=Object.keys(i).filter(D),c=h.length,A=0;A<c;A++){var f=h[A],d=i[f];if(f==="className")throw new Error('Property "className" is not supported, use "class".');if(f==="class")te(e,d,!0);else if(f==="classes")for(var v=Object.keys(d),k=v.length,y=0;y<k;y++){var m=v[y];d[m]&&e.classList.add(m)}else if(f==="styles")for(var U=Object.keys(d),T=U.length,y=0;y<T;y++){var J=U[y],O=d[J];O&&(u(O),n.styleApplyer(e,J,O))}else if(f==="on"&&d)for(var ae=0,re=Object.entries(i.on);ae<re.length;ae++){var se=re[ae],X=se[0],q=se[1],N=typeof q=="function"?q:q.listener;l&&(N=l(X,N,e,i)),N&&e.addEventListener(X,N,typeof q=="function"?void 0:q.options)}else if(f!=="key"&&d!==null&&d!==void 0){var le=typeof d;le==="function"?(f.lastIndexOf("on",0)===0&&l&&(d=l(f,d,e,i)),e[f]=d):n.namespace===s?f==="href"?e.setAttributeNS(o,f,d):e.setAttribute(f,d):le==="string"&&f!=="value"&&f!=="innerHTML"?e.setAttribute(f,d):e[f]=d}}},Q=function(e,i,n){if(i)for(var l=0,h=i;l<h.length;l++){var c=h[l];F(c,e,void 0,n)}},H=function(e,i,n){Q(e,i.children,n),i.text&&(e.textContent=i.text),ee(e,i.properties,n),i.properties&&i.properties.afterCreate&&i.properties.afterCreate.apply(i.properties.bind||i.properties,[e,n,i.vnodeSelector,i.properties,i.children])},F=function(e,i,n,l){var h,c,A=0,f=e.vnodeSelector,d=i.ownerDocument;if(f==="")e.domNode?e.domNode.nodeValue=e.text:(c=e.domNode=d.createTextNode(e.text),n!==void 0?i.insertBefore(c,n):i.appendChild(c));else{for(var v=0;v<=f.length;++v){var k=f.charAt(v);if(v===f.length||k==="."||k==="#"){var y=f.charAt(A-1),m=f.slice(A,v);y==="."?c.classList.add(m):y==="#"?c.id=m:(m==="svg"&&(l=r(l,{namespace:s})),l.namespace!==void 0?c=e.domNode=d.createElementNS(l.namespace,m):(c=e.domNode=e.domNode||(!((h=e.properties)===null||h===void 0)&&h.is?d.createElement(m,{is:e.properties.is}):d.createElement(m)),m==="input"&&e.properties&&e.properties.type!==void 0&&c.setAttribute("type",e.properties.type)),n!==void 0?i.insertBefore(c,n):c.parentNode!==i&&i.appendChild(c)),A=v+1}}H(c,e,l)}},G,te=function(e,i,n){i&&i.split(" ").forEach(function(l){l&&e.classList.toggle(l,n)})},he=function(e,i,n,l){if(n){for(var h=!1,c=Object.keys(n).filter(D),A=c.length,f=0;f<A;f++){var d=c[f],v=n[d],k=i[d];if(d==="class")k!==v&&(te(e,k,!1),te(e,v,!0));else if(d==="classes")for(var y=e.classList,m=Object.keys(v),U=m.length,T=0;T<U;T++){var J=m[T],O=!!v[J],ae=!!k[J];O!==ae&&(h=!0,O?y.add(J):y.remove(J))}else if(d==="styles")for(var re=Object.keys(v),se=re.length,T=0;T<se;T++){var X=re[T],q=v[X],N=k[X];q!==N&&(h=!0,q?(u(q),l.styleApplyer(e,X,q)):l.styleApplyer(e,X,""))}else if(!v&&typeof k=="string"&&(v=""),d==="value"){var le=e[d];le!==v&&v!==k&&(e[d]=v),v!==k&&(h=!0)}else if(v!==k){var Ce=typeof v;(Ce!=="function"||!l.eventHandlerInterceptor)&&(l.namespace===s?d==="href"?e.setAttributeNS(o,d,v):e.setAttribute(d,v):Ce==="string"&&d!=="innerHTML"?d==="role"&&v===""?e.removeAttribute(d):e.setAttribute(d,v):e[d]!==v&&(e[d]=v),h=!0)}}return h}},Oe=function(e,i,n,l,h){if(n===l)return!1;n=n||a,l=l||a;for(var c=n.length,A=l.length,f=0,d=0,v,k=!1;d<A;){var y=f<c?n[f]:void 0,m=l[d];if(y!==void 0&&g(y,m))k=G(y,m,h,i,n)||k,f++;else{var U=_(n,m,f+1);if(U>=0){for(v=f;v<U;v++)R(n[v]),$(n,v,e,"removed");k=G(n[U],m,h,i,n)||k,f=U+1}else F(m,i,f<c?n[f].domNode:void 0,h),P(m),$(l,d,e,"added")}d++}if(c>f)for(v=f;v<c;v++)R(n[v]),$(n,v,e,"removed");return k};G=function(e,i,n,l,h){var c=e.domNode,A=!1;if(e===i)return!1;var f=!1;if(i.vnodeSelector===""){if(i.text!==e.text){var d=c.ownerDocument.createTextNode(i.text);try{l.replaceChild(d,c)}catch{l.replaceChild(d,l.childNodes[h.indexOf(e)])}return i.domNode=d,A=!0,A}i.domNode=c}else i.vnodeSelector.lastIndexOf("svg",0)===0&&(n=r(n,{namespace:s})),e.text!==i.text&&(f=!0,i.text===void 0?c.removeChild(c.firstChild):c.textContent=i.text),i.domNode=c,f=Oe(i,c,e.children,i.children,n)||f,f=he(c,e.properties,i.properties,n)||f,i.properties&&i.properties.afterUpdate&&i.properties.afterUpdate.apply(i.properties.bind||i.properties,[c,n,i.vnodeSelector,i.properties,i.children]);return f&&i.properties&&i.properties.updateAnimation&&i.properties.updateAnimation(c,i.properties,e.properties),A};var ie=function(e,i){return{getLastRender:function(){return e},update:function(n){if(e.vnodeSelector!==n.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var l=e;e=n,G(l,n,i,l.domNode.parentNode,[l])},domNode:e.domNode}},Ne={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,i,n){i.charAt(0)==="-"?e.style.setProperty(i,n):e.style[i]=n}},Z=function(e){return r(Ne,e)},ne={create:function(e,i){return i=Z(i),F(e,document.createElement("div"),void 0,i),ie(e,i)},append:function(e,i,n){return n=Z(n),F(i,e,void 0,n),ie(i,n)},insertBefore:function(e,i,n){return n=Z(n),F(i,e.parentNode,e,n),ie(i,n)},merge:function(e,i,n){return n=Z(n),i.domNode=e,H(e,i,n),ie(i,n)},replace:function(e,i,n){return n=Z(n),F(i,e.parentNode,e,n),e.parentNode.removeChild(e),ie(i,n)}},je=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},xe=function(e,i,n){for(var l=0,h=i.length;l<h;l++){var c=i[l];Array.isArray(c)?xe(e,c,n):c!=null&&c!==!1&&(typeof c=="string"&&(c=je(c)),n.push(c))}};function Ve(e,i,n){if(Array.isArray(i))n=i,i=void 0;else if(i&&(typeof i=="string"||i.vnodeSelector)||n&&(typeof n=="string"||n.vnodeSelector))throw new Error("h called with invalid arguments");var l,h;return n&&n.length===1&&typeof n[0]=="string"?l=n[0]:n&&(h=[],xe(e,n,h),h.length===0&&(h=void 0)),{vnodeSelector:e,properties:i,children:h,text:l===""?void 0:l,domNode:null}}var et=function(e,i){for(var n=[];e&&e!==i;)n.push(e),e=e.parentNode;return n},pe;Array.prototype.find?pe=function(e,i){return e.find(i)}:pe=function(e,i){return e.filter(i)[0]};var tt=function(e,i){var n=e;return i.forEach(function(l){n=n&&n.children?pe(n.children,function(h){return h.domNode===l}):void 0}),n},it=function(e,i,n){return function(h,c,A,f){return l};function l(h){var c,A;n("domEvent",h);var f=i(),d=et(h.currentTarget,f.domNode);d.reverse();var v=tt(f.getLastRender(),d);e.scheduleRender();var k;if(v){var y=(A=(c=v.properties["on".concat(h.type)])!==null&&c!==void 0?c:v.properties.on[h.type].listener)!==null&&A!==void 0?A:v.properties.on[h.type];k=y.apply(v.properties.bind||this,arguments)}return n("domEventProcessed",h),k}},nt=function(e){var i,n=Z(e),l=n.performanceLogger,h=!0,c,A=!1,f=[],d=[],v=function(y,m,U){var T,J=function(){return T};n.eventHandlerInterceptor=it(i,J,l),T=y(m,U(),n),f.push(T),d.push(U)},k=function(){if(c=void 0,!!h){h=!1,l("renderStart",void 0);for(var y=0;y<f.length;y++){var m=d[y]();l("rendered",void 0),f[y].update(m),l("patched",void 0)}l("renderDone",void 0),h=!0}};return i={renderNow:k,scheduleRender:function(){!c&&!A&&(c=requestAnimationFrame(k))},stop:function(){c&&(cancelAnimationFrame(c),c=void 0),A=!0},resume:function(){A=!1,h=!0,i.scheduleRender()},append:function(y,m){v(ne.append,y,m)},insertBefore:function(y,m){v(ne.insertBefore,y,m)},merge:function(y,m){v(ne.merge,y,m)},replace:function(y,m){v(ne.replace,y,m)},detach:function(y){for(var m=0;m<d.length;m++)if(d[m]===y)return d.splice(m,1),f.splice(m,1)[0];throw new Error("renderFunction was not found")}},i},at=function(){var e,i;return{invalidate:function(){i=void 0,e=void 0},result:function(n,l){if(e)for(var h=0;h<n.length;h++)e[h]!==n[h]&&(i=void 0);return i||(i=l(),e=n),i}}},rt=function(e,i,n){var l=[],h=[];return{results:h,map:function(c){for(var A=c.map(e),f=h.slice(),d=0,v=0;v<c.length;v++){var k=c[v],y=A[v];if(y===l[d])h[v]=f[d],n(k,f[d],v),d++;else{for(var m=!1,U=1;U<l.length+1;U++){var T=(d+U)%l.length;if(l[T]===y){h[v]=f[T],n(c[v],f[T],v),d=T+1,m=!0;break}}m||(h[v]=i(k,v))}}h.length=c.length,l=A}}};b.createCache=at,b.createMapping=rt,b.createProjector=nt,b.dom=ne,b.h=Ve}))});var Ye=lt(Je(),1);var ot=96;function V(b){return b?b/72*ot:0}var ct=(0,Ye.createProjector)(),Qe=10,_e=20,ve=10,Le=20,Ae={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function dt(b="vertical"){let t={stroke:"rgb(200, 200, 200)",strokeWidth:"1"};return b==="vertical"?L`<svg height=4 width=10>${ge`<line x1=0 y1=2 x2=10 y2=2 style=${E(t)} />`}</svg>`:L`<svg height=10 width=10>${ge`<line x1=5 y1=0 x2=5 y2=10 style=${E(t)} />`}</svg>`}function ft(b,t="vertical"){let s=document.createElement("div");return s.style.height=`${_e}px`,s.className=Ae.univariateAboveAndBelowSymbol,b!=null&&(s.style.opacity=b.toString()),ct.append(s,dt.bind(null,t)),s}function Ze(b,t,s="vertical",o){b.infos.forEach((a,r)=>{if(o&&r===2)a.preview=ft(t,s);else{let{size:g}=a,u=V(g)+(s==="horizontal"?Le:ve),_=a.preview.tagName.toLowerCase()==="div",$=_?a.preview:document.createElement("div");$&&($.className=Ae.univariateAboveAndBelowSymbol),s==="horizontal"?$&&($.style.width=`${u}px`):$&&($.style.height=`${u}px`),_||$&&$.appendChild(a.preview),a.preview=$}})}function Ke(b,t="classic"){let s=b.infos,o=s[0].size,a=s[s.length-1].size;return t==="classic"?(V(o)+ve)/2:(V(o)-V(a))/2}function ye(b,t,s){if(!b)return null;let o=b.infos.map(r=>r.color),a=t.renderColorRampPreviewHTML(s.type==="full"?o:s.type==="above"?o.slice(0,3):o.slice(2,5),{width:s.width,height:s.height,align:s.rampAlignment,effectList:s.effectList});return a.className=Ae.colorRamp,s.opacity!=null&&(a.style.opacity=s.opacity.toString()),a}function vt(b,t,s,o="vertical"){let a=0,r=b.infos,g=Math.floor(r.length/2),u=t==="full"||t==="above"?0:g,_=t==="full"||t==="below"?r.length-1:g;for(let $=u;$<=_;$++)if(s&&$===g)a+=o==="horizontal"?Qe:_e;else{let P=r[$].size,x=V(P)+(o==="horizontal"?Le:ve);a+=x}return Math.round(a)}function $e(b,t,s,o="vertical"){let a=vt(b,t,s,o),r=b.infos,g=Math.floor(r.length/2),u=t==="full"||t==="above"?0:g,_=t==="full"||t==="below"?r.length-1:g,$=t==="full"?r[u].size+r[_].size:t==="above"?r[u].size:r[_].size,P=s?o==="vertical"?_e:Qe:0,x=o==="vertical"?ve*(t==="full"?2:1):Le*(t==="full"?2:1);return Math.round(a-(V($)/2+P/2+x/2))}function ht(b,t,s="vertical"){let o=b.infos,a=o.find(({type:g})=>g==="size-ramp"),r=o.find(({type:g})=>g==="color-ramp");return a&&(a={...a},a.infos=[...a.infos],Ze(a,t,s,!0)),r&&(r={...r},r.infos=[...r.infos]),s==="horizontal"&&(a?.infos.reverse(),r?.infos.reverse()),{sizeRampElement:a,colorRampElement:r}}function pt(b,t="vertical"){let s=b.infos,o=s.find(({type:r})=>r==="size-ramp"),a=s.find(({type:r})=>r==="color-ramp");return o&&(o={...o},o.infos=[...o.infos],Ze(o,null,t,!1)),a&&(a={...a},a.infos=[...a.infos]),t==="horizontal"&&(o?.infos.reverse(),a?.infos.reverse()),{sizeRampElement:o,colorRampElement:a}}function gt(b,t){return!0}var ut=ke`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: normal;--instant-apps-interactive-legend-caption-font-weight: normal;--instant-apps-interactive-legend-secondary-color: var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size: 1rem;--instant-apps-interactive-legend-total-feature-count-font-size: .875rem;--instant-apps-interactive-legend-info-font-size: .875rem;--instant-apps-interactive-legend-info-item-background--selected: #c7ebff;--instant-apps-interactive-legend-info-item-background--selected--dark: #009af2;--instant-apps-interactive-legend-info-item-background--hover: #e9e9e9;--instant-apps-interactive-legend-info-item-background--hover--dark: #4a4a4a;--instant-apps-interactive-legend-info-item-color--selected: var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color: var(--calcite-color-background);--instant-apps-interactive-legend-ui-margin: 20px 15px;--instant-apps-interactive-legend-ui-padding: 20px 15px}:host .esri-legend__service{padding:0}:host .esri-legend__layer-body,:host .esri-legend__layer,:host .esri-legend__layer-table,:host .esri-legend__group-layer-child,:host .esri-legend__layer-child-table{margin:0;overflow:hidden}:host .esri-legend__layer-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host .esri-legend__layer-caption calcite-action{margin-right:5px}:host .instant-apps-interactive-legend__layer-caption-btn-container{white-space:nowrap}:host .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}:host .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}:host .esri-legend__layer-cell.esri-legend__layer-cell--info{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}:host .esri-legend__layer-cell,:host .esri-legend__layer-row{display:flex;align-items:center}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-body{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}:host .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol>.esri-legend__layer-body{margin:0}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-row{display:table-row}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-cell{display:table-cell}:host .esri-legend__layer-cell--symbols{justify-content:center;width:20%}:host .esri-legend__layer-cell--info{width:65%}:host .instant-apps-interactive-legend__layer-row--interactive{margin:1px;background:transparent;border:none;width:100%}:host .esri-legend__layer-cell--info{color:var(--instant-apps-interactive-legend-secondary-color)}:host .esri-legend__layer-row,:host .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}:host .instant-apps-interactive-legend__layer-row--interactive{position:relative}:host .instant-apps-interactive-legend-element-info--selected{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}:host .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}:host .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected .esri-legend__layer-cell--info{color:var(--calcite-color-text-inverse)}:host .hide{display:none}.instant-apps-interactive-legend__compact .esri-legend__layer-row{--instant-apps-interactive-legend-ui-padding: 10px 5px}.instant-apps-interactive-legend__compact .esri-legend__layer-row .esri-legend__layer-cell--info{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;line-clamp:2;line-height:1.3125rem;max-height:2.625rem}@media (min-width: 992px){:host .instant-apps-interactive-legend__layer-row--interactive{cursor:pointer}:host .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}:host .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}:host .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}:host .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}`,p={layer:"esri-legend__layer",layerBody:"esri-legend__layer-body",layerRow:"esri-legend__layer-row",layerInfo:"esri-legend__layer-cell esri-legend__layer-cell--info",imageryLayerStretchedImage:"esri-legend__imagery-layer-image--stretched",symbolContainer:"esri-legend__layer-cell esri-legend__layer-cell--symbols",symbol:"esri-legend__symbol",rampContainer:"esri-legend__ramps",sizeRamp:"esri-legend__size-ramp",colorRamp:"esri-legend__color-ramp",opacityRamp:"esri-legend__opacity-ramp",rampLabelsContainer:"esri-legend__ramp-labels",rampLabel:"esri-legend__ramp-label",univariateAboveAndBelowLabel:"esri-univariate-above-and-below-ramp__label",message:"esri-legend__message",interactiveLayerRow:"instant-apps-interactive-legend__layer-row--interactive",infoSelected:"instant-apps-interactive-legend-element-info--selected",compact:"instant-apps-interactive-legend__compact"},mt=24,Xe={display:"flex",alignItems:"flex-start"},be={marginLeft:"3px"},j={display:"table-cell",verticalAlign:"middle"},we=class extends Ee{constructor(){super(...arguments),this.calculatingFeatureCount=!1,this.isLoading=!0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"}}static{this.properties={isLoading:16,legendvm:0,zoomTo:5,featureCount:5,filterMode:0,messages:0}}static{this.styles=ut}async connectedCallback(){super.connectedCallback(),!this.handles&&(this.handles=await ze())}async load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0});let[t,s]=await Promise.all([Pe(),Ie()]),o=await Te();this.reactiveUtils=s,this.intl=t,this.symbolUtils=o}willUpdate(t){t.has("filterMode")&&this.legendvm?.view&&(this.hasUpdated||this.filterMode.type!=="filter")&&qe(this.filterMode,this.legendvm.view)}async loaded(){await this.initLegend()}disconnectedCallback(){super.disconnectedCallback(),this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}async initLegend(){try{await this.reactiveUtils.whenOnce(()=>this.legendvm?.view);let t=async()=>{try{let s=this.legendvm?.view?.map;await s?.load(),await s?.basemap?.load();let o=s?.allLayers?.map(async u=>await u.load()),a=(await Promise.allSettled(o)).map(u=>u?.status==="fulfilled"&&u?.value?u.value:null).filter(u=>!!u),r=[];a.forEach(u=>{this.legendvm?.view&&r.push(this.legendvm.view.whenLayerView(u))}),await Promise.allSettled(r);let g=await ce(this.legendvm,this.reactiveUtils);W.set("data",{...B.data,...g}),this.isLoading=!1,await this.setupWatchersAndListeners()}catch(s){console.error(s),this.isLoading=!1}};this.legendvm?.view?.when(t),this.legendvm?.view?.map?.layers?.on("after-changes",t)}catch{this.isLoading=!1}}getStretchStopLabel(t){let s=this.messages[t.label];return t.label?`${s}: ${typeof t.value=="string"?t.value:this.intl.formatNumber(t.value,{style:"decimal",notation:t.value.toString().includes("e")?"scientific":"standard"})}`:""}getTitle(t,s){if(!t)return;if(typeof t=="string"||typeof t=="number")return t;if("value"in t||"unit"in t){let r=typeof this.messages?.dotValue=="string"?this.messages.dotValue:"";return this.intl.substitute(r,t)}if("colorName"in t||"bandName"in t){let{colorName:r,bandName:g}=t,u=this.messages[r],_=typeof this.messages[g]=="string"?this.messages[g]:g;return`${u}: ${_}`}if("showCount"in t)return t.showCount?this.messages.clusterCountTitle:null;let o=null;if(s){let r=t;o=r.ratioPercentTotal?"showRatioPercentTotal":r.ratioPercent?"showRatioPercent":r.ratio?"showRatio":t.normField?"showNormField":t.field?"showField":null}else if(this.isRendererTitle(s)){let r=t;o=r.normField?"showNormField":r.normByPct?"showNormPct":r.field?"showField":null}let a=o==="showField"?"{field}":typeof o=="string"?this.messages[o]:"";return o?this.intl?.substitute(a,{field:t.field,normField:t.normField}):""}isRendererTitle(t){return!t}async setupWatchersAndListeners(){let t=this.legendvm?.view?.map?.allLayers?.filter(a=>a?.type==="feature"),s=[];for(let a of t)this.legendvm?.view&&s.push(this.legendvm?.view?.whenLayerView(a));let o=[];try{o=await Promise.all(s)}catch(a){console.error(a)}for(let a of o){let r=`fLayerViewScale-${a.layer.id}`;!this.handles?.has(r)&&a&&this.handles?.add(a.watch("visibleAtCurrentScale",()=>{this.createDataForLayer(a.layer).catch(g=>{console.error(g)})}),r)}t?.forEach(a=>{let r=`fLayer-${a?.id}`;this.handles?.has(r)||this.handles?.add(this.reactiveUtils?.watch(()=>a?.visible,()=>{this.createDataForLayer(a).catch(g=>{console.error(g)})}),r)}),this.handles?.add(this.reactiveUtils.when(()=>this.legendvm,()=>{this.reactiveUtils.watch(()=>this.legendvm?.view?.updating,()=>{this.calculatingFeatureCount||this.legendvm?.view?.updating&&(this.calculatingFeatureCount=!0,this.reactiveUtils.when(()=>!this.legendvm?.view?.updating,()=>{de(this.legendvm,B.data).then(a=>{W.set("data",{...B.data,...a}),this.calculatingFeatureCount=!1}).catch(a=>{console.error(a)})},{once:!0,initial:!0}))},{initial:!0})},{initial:!0,once:!0})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.activeLayerInfos,"change",a=>{ce(this.legendvm,this.reactiveUtils).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).then(()=>{this.handles?.add(this.reactiveUtils.on(()=>a.children,"change",()=>{ce(this.legendvm,this.reactiveUtils).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).catch(r=>{console.error(r)})}))}).catch(r=>{console.error(r)})})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.view?.map?.layers,"after-changes",()=>{de(this.legendvm,B.data).then(a=>{W.set("data",{...B.data,...a}),this.calculatingFeatureCount=!1}).catch(a=>{console.error(a)})}))}async createDataForLayer(t){let s=W.get("data")?.[t?.id],o=We(this.legendvm?.activeLayerInfos)?.find(a=>a?.layer?.id===t?.id);if(!s&&o){let a=await Fe(this.legendvm,o,this.reactiveUtils);if(me({intLegendLayerData:a,layerId:t?.id}),this.featureCount){let r=await de(this.legendvm,B.data);W.set("data",{...B.data,...r})}}}applyFilter(t,s,o,a){return async()=>{let r={...B.data?.[s?.id]};a?await ue(r,t,o,this.filterMode,a):await ue(r,t,o,this.filterMode),me({intLegendLayerData:r,layerId:s?.id})}}render(){let t=this.renderFilteredLayers(),s=W.get("compact")?` ${p.compact}`:"";return this.isLoading?K("interactive-legend-loader",L`<calcite-loader scale=m .label=${this.messages?.loading} .text=${this.messages?.loading}></calcite-loader>`):K("interactive-legend-classic-container",L`<div class=${`${Y(this.el)}${s}`}>${t?.length>0?t:L`<div class=${w(p.message)}>${this.messages?.noLegend}</div>`}</div>`)}renderFilteredLayers(){return(this.legendvm?.activeLayerInfos?.toArray()).map(t=>this.renderLegendForLayer(t)).filter(t=>!!t)}renderLegendForLayer(t,s){if(!t.ready)return null;if(t.children.length){let r=t.children.map(g=>this.renderLegendForLayer(g,!0)).toArray();return L`<instant-apps-interactive-legend-group-legend-element class=${w(Y(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${t} .isChild=${s}><div style=${E({paddingLeft:"20px"})} .id=${`${t?.layer?.id}-legend-layer`} slot=content>${r}</div></instant-apps-interactive-legend-group-legend-element>`}let o=t.legendElements;if(o&&!o.length)return null;let a=o.map((r,g)=>this.renderLegendForElement(r,t.layer,t.effectList,t,g)).filter(r=>!!r);return a.length?L`<instant-apps-interactive-legend-layer-element class=${w(Y(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${t} .isChild=${!!s}><div slot=content .id=${`${t?.layer?.id}-legend-layer`} class=${w(p.layer)}>${a}</div></instant-apps-interactive-legend-layer-element>`:null}renderLegendForElement(t,s,o,a,r,g,u){let _=t.type==="color-ramp",$=t.type==="opacity-ramp",P=t.type==="size-ramp",x=null,C=Be(a,t,r),S=t?.type==="relationship-ramp";if(t.type==="symbol-table"||P){let R=t.infos.map((M,D)=>this.renderLegendForElementInfo(M,s,o,P,t,a,r,D,C,u)).filter(M=>!!M);R.length&&(x=L`<div class=${w(p.layerBody)}>${R}</div>`)}else if(t.type==="color-ramp"||t.type==="opacity-ramp"||t.type==="heatmap-ramp"||t.type==="stretch-ramp"){let R=t;x=this.renderLegendForRamp(R,s.opacity)}else if(S)x=K("relationship-ramp",L`<instant-apps-interactive-legend-relationship class=${w(Y(this.el))} .filterMode=${this.filterMode} .activeLayerInfo=${a} .legendElement=${t}></instant-apps-interactive-legend-relationship>`);else if(t.type==="pie-chart-ramp"){let R=t;x=this.renderPieChartRamp(R)}else if(t.type==="univariate-above-and-below-ramp"){let R=t;x=this.renderUnivariateAboveAndBelowRamp(R,s.opacity,o)}else if(t.type==="univariate-color-size-ramp"){let R=t;x=this.renderUnivariateColorSizeRamp(R,s.opacity,o)}if(!x)return null;let z=t.title,I=null;if(typeof z=="string")I=z;else if(z){let R=z,M=this.getTitle(R,_||$);this.isRendererTitle(_||$)?"title"in z&&(I=`${z.title} (${M})`):I=M}return L`<instant-apps-interactive-legend-legend-element class=${w(Y(this.el))} .activeLayerInfo=${a} .isSizeRamp=${P} .isChild=${!!g} .isColorRamp=${_} .isRelationshipRamp=${S} .isInteractive=${C} .zoomTo=${this.zoomTo} .legendElement=${t} .titleText=${I} .legendvm=${this.legendvm} .legendElementIndex=${r}><div slot=content>${x}</div></instant-apps-interactive-legend-legend-element>`}renderPieChartRamp(t){return L`<div .innerHTML=${`${t.preview?.outerHTML}`}></div>`}renderUnivariateAboveAndBelowRamp(t,s,o){let{sizeRampElement:a,colorRampElement:r}=ht(t,s);if(!a)return null;let g=$e(a,"above",!0),u=$e(a,"below",!0),_=12,$=ye(r,this.symbolUtils,{width:_,height:g,rampAlignment:"vertical",opacity:s,type:"above",effectList:o}),P=ye(r,this.symbolUtils,{width:_,height:u,rampAlignment:"vertical",opacity:s,type:"below",effectList:o}),x=Ke(a),C=a.infos.map(H=>H.label),S=C.map((H,F)=>F===0?L`<div class=${w(H?$?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${H}</div>`:F===2?L`<div></div>`:null),z=C.length-1,I=Math.floor(C.length/2),R=C.map((H,F)=>F===I||F===z?L`<div class=${w(H?$?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${H}</div>`:null),M={display:"table-cell",verticalAlign:"middle"},D={marginTop:`${x}px`},ee={height:`${g}px`},Q={height:`${u}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Xe)}><div class=${w(p.layerBody)}>${a.infos.map((H,F)=>L`<div class=${`${p.layerRow} ${p.sizeRamp}`}><div class=${w(p.symbol)} style=${E(M)} .innerHTML=${H?.preview?.outerHTML??""??""}></div>${!$&&F%2===0?L`<div class=${w(p.layerInfo)}>${C[F]}</div>`:null}</div>`)}</div>${$?K("color-ramp-preview",L`<div style=${E(D)}><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(ee)}>${S}</div></div></div><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${P}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(Q)}>${R}</div></div></div></div>`):null}</div>`)}renderUnivariateColorSizeRamp(t,s,o){let{sizeRampElement:a,colorRampElement:r}=pt(t);if(!a)return null;let g=Ke(a),u=12,_=$e(a,"full",!1),$=ye(r,this.symbolUtils,{width:u,height:_,rampAlignment:"vertical",opacity:s,type:"full",effectList:o}),P=a.infos.length-1,x=a.infos.map((I,R)=>R===0||R===P?L`<div class=${w(I.label?r?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${I.label}</div>`:null),C={display:"table-cell",verticalAlign:"middle"},S={marginTop:`${g}px`},z={height:`${_}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Xe)}><div class=${w(p.layerBody)}>${a.infos.map(I=>L`<div class=${`${p.layerRow} ${p.sizeRamp}`}><div class=${w(p.symbol)} style=${E(C)} .innerHTML=${I?.preview?.outerHTML??""??""}></div></div>`)}</div>${K("color-ramp-preview",L`<div style=${E(S)}><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(z)}>${x}</div></div></div></div>`)}</div>`)}renderLegendForRamp(t,s){let o=t.infos,a=t.type==="opacity-ramp",r=t.type==="heatmap-ramp",g=t.type==="stretch-ramp",u=t.preview,_=a?p.opacityRamp:"";u&&(u.classList.add(p.colorRamp),_&&u.classList.add(_)),s!=null&&u&&(u.style.opacity=s.toString());let $=o.map(C=>{let S;if(r){let z=this.messages[C.label];S=typeof z=="string"?z:C.label}else g?S="value"in C?this.getStretchStopLabel(C):C.label:S=C.label;return L`<div class=${w(C.label?p.rampLabel:"")}>${S}</div>`}),P={width:`${mt}px`},x={height:u?.style?.height};return L`<div class=${w(p.layerRow)}><div class=${w(p.symbolContainer)} style=${E({...P})}><div class=${w(p.rampContainer)} ${Re(C=>{C?.firstChild&&C?.firstChild?.remove(),C?.appendChild(u)})}></div></div><div class=${w(p.layerInfo)}><div class=${w(p.rampLabelsContainer)} style=${E({...x})}>${$}</div></div></div>`}renderLegendForElementInfo(t,s,o,a,r,g,u,_,$,P){if("infos"in t)return this.renderLegendForElement(t,s,o,g,u,!0,t);let x=null,C=!gt(s,r.type);if("preview"in t){let{outerHTML:G}=t.preview;x=L`<div class=${w(p.symbol)} .innerHTML=${G??""}></div>`}else"src"in t&&(x=this.renderImage(t,s,C));if(!x)return null;let S="",z=a?` ${p.sizeRamp}`:"",I,R=Ue(s),M=De(R,P);if(B.data){let G=Me(R,s,t,M,_),te=M?M?.nestedInfos:R,he=He(te);I=R?.categories?.size===1?!G?.selected:he||G?.selected}let D="label"in t?t.label:null,ee=M&&!("value"in t)?!1:$,Q=W.get("compact"),H=this.getTitle(D,!1)||"",F=M?r.title:D??s?.id;return ee?L`<button @click=${this.applyFilter(t,s,_,P)} class=${`${p.layerRow} ${p.interactiveLayerRow}${I?` ${p.infoSelected}`:""}`} title=${(Q?`${H}`:void 0)??oe} .ariaPressed=${I?"true":"false"}><div class=${`${p.symbolContainer}${S}${z}`}>${x}</div><div class=${`${p.layerInfo}${S}`}>${this.getTitle(D,!1)||""}</div>${this.featureCount&&!Q?L`<instant-apps-interactive-legend-count class=${w(Y(this.el))} .categoryId=${F} .activeLayerInfo=${g} .legendvm=${this.legendvm} .selected=${!!I} .legendElement=${r} .infoIndex=${_}></instant-apps-interactive-legend-count>`:null}</button>`:L`<div class=${w(p.layerRow)}><div class=${`${p.symbolContainer}${S}${z}`}>${x}</div><div class=${`${p.layerInfo}${S}`}>${H}</div></div>`}renderImage(t,s,o){let{label:a,src:r,opacity:g}=t,u=o?` ${p.imageryLayerStretchedImage}`:"",_=o?"":` ${p.symbol}`,$={opacity:`${g??s.opacity}`};return L`<img alt=${this.getTitle(a,!1)??oe} src=${r??oe} width=${t.width} height=${t.height} class=${`$${u}${_}`} style=${E($)}>`}};Se("instant-apps-interactive-legend-classic",we);return we},a,b,c)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250915 */
4
- import{a as e}from"./BB2XXRZT.js";var i=["hub:template:edit"],r=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{previewUrl:{type:"string",if:{minLength:1},then:{format:"url"}}})});export{i as a,r as b};
3
+ v1.1.0-next.20250916 */
4
+ import{a as e}from"./VT4PBX6Z.js";var i=["hub:template:edit"],r=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{previewUrl:{type:"string",if:{minLength:1},then:{format:"url"}}})});export{i as a,r as b};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250915 */
4
- import"./D5C4GXTW.js";var e="Non si dispone di abbastanza crediti per completare questa operazione. Contattare un amministratore di sistema ArcGIS per assistenza.",a="Questo strumento \xE8 stato pubblicato da un notebook. L'accesso ad ArcGIS Notebooks \xE8 bloccato per l'organizzazione. Contattare l'amministratore per correggere l'impostazione.",r="${ dataPath } non deve contenere ${ additionalProperty }.",o="${ dataPath } deve corrispondere allo schema di uno di questi\u200E: ${ schemaOptions }.",i="Provare a salvare di nuovo la mappa.",t="Stima dei crediti non riuscita. Scorri in basso, correggi gli errori e stima nuovamente i crediti.",s="Si \xE8 verificato un errore durante l'analisi.",n="${ dataPath } deve essere uguale a uno di questi valori consentiti: ${ allowedValues }.",l="Impossibile salvare la cronologia analisi",c="L'archivio della cronologia \xE8 pieno. Eliminare alcuni elementi dalla cronologia analisi e riprovare.",d="Il nome del servizio contiene uno o pi\xF9 caratteri non validi.",m="Il salvataggio del layer temporaneo come feature layer in hosting non \xE8 stato completato.",u="Impossibile ottenere le propriet\xE0 chiave.",p="Impossibile caricare il layer.",v="Il layer non \xE8 disponibile.",g="${ dataPath } non deve contenere pi\xF9 di ${ limit } elementi.",h="Si \xE8 verificato un errore durante il salvataggio del modello. Provare a salvare di nuovo.",y="${ dataPath } non deve contenere meno di ${ limit } elementi.",E="${ dataPath } non deve essere pi\xF9 corto di ${ limit } caratteri.",b="Impossibile caricare l'elemento del modello. Assicurarsi che il modello esista e che sia stata concessa l'autorizzazione per l'accesso.",I="Impossibile completare la richiesta.",P="Non si dispone dell'autorizzazione per eseguire questo strumento. <calcite-link target='_blank' href='${ docLink }'>Ulteriori informazioni</calcite-link>",S="Impossibile accedere al portale.",f="Impossibile leggere i dati di input.",z="A ${ dataPath } manca una propriet\xE0 denominata ${ missingProperty }.",$="Un layer risultato esiste gi\xE0 con questo nome. I layer dei risultati devono essere denominati in modo univoco in tutta l'organizzazione. Usare un altro nome.",k="Il nome di output contiene uno o pi\xF9 caratteri non validi. <a href='${docLink}' target='_blank'>Ulteriori informazioni.</a>",F="La pubblicazione del layer temporaneo come layer in hosting non \xE8 riuscita a causa di uno o pi\xF9 campi non validi. Eseguire nuovamente lo strumento per creare un layer con campi validi.",L="Invio del processo non riuscito. Scorrere verso il basso, correggere gli errori ed eseguire nuovamente l'analisi.",N="${ dataPath } deve contenere almeno un carattere.",T={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:o,cannotWriteToItemResource:i,creditEstimationError:t,defaultError:s,enumValues:n,failedToSaveHistory:l,fullSessionStorage:c,hostedFeatureServiceInvalidTitle:d,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:u,layerLoadFailure:p,layerUnavailable:v,maxItems:g,mbFailedToSave:h,minItems:y,minLength:E,modelNotFound:b,networkError:I,noPermissionToAccessTool:P,portalLoadError:S,queryFeaturesError:f,requiredProperty:z,serviceNameExistsError:$,specialCharactersInServiceNameError:k,temporaryLayerFieldsError:F,toolValidationError:L,whiteSpacePattern:N};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,o as anyOfValues,i as cannotWriteToItemResource,t as creditEstimationError,T as default,s as defaultError,n as enumValues,l as failedToSaveHistory,c as fullSessionStorage,d as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,p as layerLoadFailure,v as layerUnavailable,g as maxItems,h as mbFailedToSave,y as minItems,E as minLength,b as modelNotFound,I as networkError,P as noPermissionToAccessTool,S as portalLoadError,f as queryFeaturesError,z as requiredProperty,$ as serviceNameExistsError,k as specialCharactersInServiceNameError,F as temporaryLayerFieldsError,L as toolValidationError,N as whiteSpacePattern};
3
+ v1.1.0-next.20250916 */
4
+ import"./JPP3LPWG.js";var e="Non si dispone di abbastanza crediti per completare questa operazione. Contattare un amministratore di sistema ArcGIS per assistenza.",a="Questo strumento \xE8 stato pubblicato da un notebook. L'accesso ad ArcGIS Notebooks \xE8 bloccato per l'organizzazione. Contattare l'amministratore per correggere l'impostazione.",r="${ dataPath } non deve contenere ${ additionalProperty }.",o="${ dataPath } deve corrispondere allo schema di uno di questi\u200E: ${ schemaOptions }.",i="Provare a salvare di nuovo la mappa.",t="Stima dei crediti non riuscita. Scorri in basso, correggi gli errori e stima nuovamente i crediti.",s="Si \xE8 verificato un errore durante l'analisi.",n="${ dataPath } deve essere uguale a uno di questi valori consentiti: ${ allowedValues }.",l="Impossibile salvare la cronologia analisi",c="L'archivio della cronologia \xE8 pieno. Eliminare alcuni elementi dalla cronologia analisi e riprovare.",d="Il nome del servizio contiene uno o pi\xF9 caratteri non validi.",m="Il salvataggio del layer temporaneo come feature layer in hosting non \xE8 stato completato.",u="Impossibile ottenere le propriet\xE0 chiave.",p="Impossibile caricare il layer.",v="Il layer non \xE8 disponibile.",g="${ dataPath } non deve contenere pi\xF9 di ${ limit } elementi.",h="Si \xE8 verificato un errore durante il salvataggio del modello. Provare a salvare di nuovo.",y="${ dataPath } non deve contenere meno di ${ limit } elementi.",E="${ dataPath } non deve essere pi\xF9 corto di ${ limit } caratteri.",b="Impossibile caricare l'elemento del modello. Assicurarsi che il modello esista e che sia stata concessa l'autorizzazione per l'accesso.",I="Impossibile completare la richiesta.",P="Non si dispone dell'autorizzazione per eseguire questo strumento. <calcite-link target='_blank' href='${ docLink }'>Ulteriori informazioni</calcite-link>",S="Impossibile accedere al portale.",f="Impossibile leggere i dati di input.",z="A ${ dataPath } manca una propriet\xE0 denominata ${ missingProperty }.",$="Un layer risultato esiste gi\xE0 con questo nome. I layer dei risultati devono essere denominati in modo univoco in tutta l'organizzazione. Usare un altro nome.",k="Il nome di output contiene uno o pi\xF9 caratteri non validi. <a href='${docLink}' target='_blank'>Ulteriori informazioni.</a>",F="La pubblicazione del layer temporaneo come layer in hosting non \xE8 riuscita a causa di uno o pi\xF9 campi non validi. Eseguire nuovamente lo strumento per creare un layer con campi validi.",L="Invio del processo non riuscito. Scorrere verso il basso, correggere gli errori ed eseguire nuovamente l'analisi.",N="${ dataPath } deve contenere almeno un carattere.",T={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:o,cannotWriteToItemResource:i,creditEstimationError:t,defaultError:s,enumValues:n,failedToSaveHistory:l,fullSessionStorage:c,hostedFeatureServiceInvalidTitle:d,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:u,layerLoadFailure:p,layerUnavailable:v,maxItems:g,mbFailedToSave:h,minItems:y,minLength:E,modelNotFound:b,networkError:I,noPermissionToAccessTool:P,portalLoadError:S,queryFeaturesError:f,requiredProperty:z,serviceNameExistsError:$,specialCharactersInServiceNameError:k,temporaryLayerFieldsError:F,toolValidationError:L,whiteSpacePattern:N};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,o as anyOfValues,i as cannotWriteToItemResource,t as creditEstimationError,T as default,s as defaultError,n as enumValues,l as failedToSaveHistory,c as fullSessionStorage,d as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,p as layerLoadFailure,v as layerUnavailable,g as maxItems,h as mbFailedToSave,y as minItems,E as minLength,b as modelNotFound,I as networkError,P as noPermissionToAccessTool,S as portalLoadError,f as queryFeaturesError,z as requiredProperty,$ as serviceNameExistsError,k as specialCharactersInServiceNameError,F as temporaryLayerFieldsError,L as toolValidationError,N as whiteSpacePattern};