@esri/solutions-components 1.2.0-next.24 → 1.2.0-next.26

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 (531) hide show
  1. package/README.md +1 -5
  2. package/dist/cdn/{OJG6HIKN.js → 24KLA2WP.js} +2 -2
  3. package/dist/cdn/{BLIFIP2J.js → 26PRQQXA.js} +2 -2
  4. package/dist/cdn/{JIREIGOU.js → 27JLOUCD.js} +2 -2
  5. package/dist/cdn/{H2UXJKPU.js → 2E65E2R5.js} +1 -1
  6. package/dist/cdn/{T6KDHTIZ.js → 2FXH5IFF.js} +2 -2
  7. package/dist/cdn/{TKRGPMED.js → 2K3D4PUK.js} +2 -2
  8. package/dist/cdn/{YWXJ2RX3.js → 2K42LZML.js} +2 -2
  9. package/dist/cdn/2KGAPBDA.js +4 -0
  10. package/dist/cdn/{HP4JIDLF.js → 2KWGOUSP.js} +2 -2
  11. package/dist/cdn/{LYXGPO4K.js → 2PE7MVDM.js} +1 -1
  12. package/dist/cdn/{VK5SHRI7.js → 2XCNU24T.js} +2 -2
  13. package/dist/cdn/{34HAWRGI.js → 2YXTQZ2M.js} +2 -2
  14. package/dist/cdn/{ZT7KJDTU.js → 32EE3BJJ.js} +2 -2
  15. package/dist/cdn/336D6QU2.js +4 -0
  16. package/dist/cdn/{6JJBGLJE.js → 374JGWU7.js} +2 -2
  17. package/dist/cdn/{WUTY55ZF.js → 3ARUJDS5.js} +1 -1
  18. package/dist/cdn/{DED6BDXL.js → 3DMU4F6J.js} +2 -2
  19. package/dist/cdn/{X5FANKH6.js → 3HFPZ2M5.js} +2 -2
  20. package/dist/cdn/{3G3I5XU7.js → 3HYLAH6Q.js} +2 -2
  21. package/dist/cdn/{CELVLTD3.js → 3LW4ZKOW.js} +2 -2
  22. package/dist/cdn/{UQVFINXF.js → 3SXUN3QE.js} +2 -2
  23. package/dist/cdn/3X2KUHTY.js +18 -0
  24. package/dist/cdn/3XPNU7BI.js +18 -0
  25. package/dist/cdn/{W75YFHYB.js → 3XSBXJ4X.js} +2 -2
  26. package/dist/cdn/{4SOCIVF6.js → 42MWP46P.js} +1 -1
  27. package/dist/cdn/{WOXREBHW.js → 45665FH2.js} +2 -2
  28. package/dist/cdn/{G7OBBNFQ.js → 45OKFNZ2.js} +2 -2
  29. package/dist/cdn/{3VUSEXMB.js → 4C52EB73.js} +2 -2
  30. package/dist/cdn/{FLA5RSAG.js → 4ERQXLFA.js} +2 -2
  31. package/dist/cdn/4JVMPJCO.js +18 -0
  32. package/dist/cdn/{HRKWHIYV.js → 4LC5QHLO.js} +2 -2
  33. package/dist/cdn/{KSO7CXKH.js → 4MEHIVYA.js} +2 -2
  34. package/dist/cdn/{PRIALFET.js → 4NPMWF3B.js} +2 -2
  35. package/dist/cdn/{OC7V7KCG.js → 4PNJYQGR.js} +2 -2
  36. package/dist/cdn/{VX2H4KEW.js → 4R3STD7G.js} +2 -2
  37. package/dist/cdn/{NBZ4SJV4.js → 4TN73SUG.js} +2 -2
  38. package/dist/cdn/{5V5O4IVZ.js → 4VMPLQZP.js} +2 -2
  39. package/dist/cdn/{XCDDDB5R.js → 56NF367P.js} +2 -2
  40. package/dist/cdn/{TNHXSGP4.js → 56RMHUL3.js} +2 -2
  41. package/dist/cdn/{ZVYGJ3ZV.js → 5A2Y5ZFB.js} +2 -2
  42. package/dist/cdn/{GKD47RX5.js → 5CKOR2L6.js} +1 -1
  43. package/dist/cdn/{BR65SFX2.js → 5DRAJUEZ.js} +1 -1
  44. package/dist/cdn/{LNFEAJAZ.js → 5FZXFZOF.js} +2 -2
  45. package/dist/cdn/{TDZ7C2M7.js → 62R2473V.js} +2 -2
  46. package/dist/cdn/{QGWCUXVU.js → 62Y7ETSQ.js} +2 -2
  47. package/dist/cdn/{H34VS27L.js → 6AV5GFKS.js} +2 -2
  48. package/dist/cdn/{4BXRZ62B.js → 6DHRO6RA.js} +1 -1
  49. package/dist/cdn/6DSHNSXV.js +18 -0
  50. package/dist/cdn/{27VT6FGO.js → 6ESVYRQV.js} +1 -1
  51. package/dist/cdn/{NDJVE732.js → 6R45U63P.js} +2 -2
  52. package/dist/cdn/{CSH7RK4L.js → 6SYXTJP7.js} +2 -2
  53. package/dist/cdn/{XIKGCL6Z.js → 6WLLVDOT.js} +1 -1
  54. package/dist/cdn/{WNFEGMNZ.js → 72JGKJQE.js} +2 -2
  55. package/dist/cdn/{YOIQKWPE.js → 7FGP4726.js} +2 -2
  56. package/dist/cdn/{NEDCAXJL.js → 7IOXGCXM.js} +2 -2
  57. package/dist/cdn/{I5JM65X6.js → 7KVQG3XG.js} +2 -2
  58. package/dist/cdn/{FLMVVIYI.js → 7NF5X427.js} +2 -2
  59. package/dist/cdn/{FWE4FUJH.js → 7P3IUHDL.js} +2 -2
  60. package/dist/cdn/{AAXTQRZG.js → 7RH6MIWB.js} +2 -2
  61. package/dist/cdn/{RPY6EG62.js → A5S6W3ON.js} +2 -2
  62. package/dist/cdn/{YAYHUH5G.js → AHXERPRN.js} +2 -2
  63. package/dist/cdn/{E4JZL5IT.js → APDFHZ74.js} +2 -2
  64. package/dist/cdn/{SZNJD54W.js → AYVYACFY.js} +1 -1
  65. package/dist/cdn/{DCNEHZTW.js → B5CDNQXT.js} +2 -2
  66. package/dist/cdn/{J4UA37P6.js → BBGM24NN.js} +2 -2
  67. package/dist/cdn/{F37UKUAV.js → BFJAMA4P.js} +2 -2
  68. package/dist/cdn/{JKYLZXQW.js → BJ5Q672G.js} +2 -2
  69. package/dist/cdn/{GWYYMTWP.js → BLC5IKHB.js} +2 -2
  70. package/dist/cdn/BNC25SSV.js +4 -0
  71. package/dist/cdn/{6R6WIO6H.js → BVY3FHES.js} +2 -2
  72. package/dist/cdn/{5AERAR2L.js → BXQI3ZMZ.js} +1 -1
  73. package/dist/cdn/{RGGUA4QF.js → BXZEMWKO.js} +2 -2
  74. package/dist/cdn/{KTJDLUIU.js → C2Q4A3RV.js} +2 -2
  75. package/dist/cdn/{CZIXYCET.js → CLD74LLR.js} +2 -2
  76. package/dist/cdn/CLLIH2ZL.js +4 -0
  77. package/dist/cdn/{NWOOAUG7.js → CLNFH4AB.js} +2 -2
  78. package/dist/cdn/{T3HXN3EN.js → CSOWDE4B.js} +2 -2
  79. package/dist/cdn/{36BDQG6C.js → CW4WK6UQ.js} +2 -2
  80. package/dist/cdn/{TZ4BYOUZ.js → CXQBUQIR.js} +2 -2
  81. package/dist/cdn/{443EHILD.js → CY5N72KD.js} +2 -2
  82. package/dist/cdn/{55A2KYUG.js → D2BXHG6B.js} +2 -2
  83. package/dist/cdn/{GHD3JMA4.js → D2LUCAAV.js} +2 -2
  84. package/dist/cdn/{WFZWW33X.js → DCZGPVZS.js} +2 -2
  85. package/dist/cdn/{FAFTQRQY.js → DD7IRMU2.js} +2 -2
  86. package/dist/cdn/{LOIGPO5O.js → DPSJLIG2.js} +2 -2
  87. package/dist/cdn/{BTLVFHR2.js → DQJS2BRD.js} +1 -1
  88. package/dist/cdn/{RFLU2ZRI.js → DRWQMKPL.js} +2 -2
  89. package/dist/cdn/{WYDM2CB5.js → DTLBV43H.js} +2 -2
  90. package/dist/cdn/{5TKI4FG4.js → DVB6GNMC.js} +2 -2
  91. package/dist/cdn/{NZO56NNR.js → DVGMUBNT.js} +2 -2
  92. package/dist/cdn/{VJU2J222.js → DXDM36O6.js} +2 -2
  93. package/dist/cdn/DXS7UOD7.js +18 -0
  94. package/dist/cdn/E2CWYXA3.js +18 -0
  95. package/dist/cdn/{6Z7A2SPS.js → E2VNGWSV.js} +2 -2
  96. package/dist/cdn/{VW2WEXVP.js → E4IY2TLO.js} +1 -1
  97. package/dist/cdn/{4JCL7LZR.js → E5NMCTJI.js} +2 -2
  98. package/dist/cdn/{EYIL3WCN.js → E7ZSOO5U.js} +2 -2
  99. package/dist/cdn/{HBOBM65G.js → EAEMSYLV.js} +2 -2
  100. package/dist/cdn/{WL4NQCES.js → EC5SUG3Q.js} +2 -2
  101. package/dist/cdn/{STHO3HPO.js → EJIOAJIG.js} +2 -2
  102. package/dist/cdn/{GJEPJCWP.js → EUG54QVH.js} +2 -2
  103. package/dist/cdn/{FLMS2TR4.js → EUO5OQ77.js} +2 -2
  104. package/dist/cdn/{2M4ILWS4.js → EV7VDGQ3.js} +2 -2
  105. package/dist/cdn/EYX3CJXI.js +18 -0
  106. package/dist/cdn/{DFO6WKOY.js → F63I4BUN.js} +2 -2
  107. package/dist/cdn/{XH2Q2TTU.js → FE3Y2N3O.js} +2 -2
  108. package/dist/cdn/{3DQY36BR.js → FF4CBWT2.js} +2 -2
  109. package/dist/cdn/FHA6I7IB.js +18 -0
  110. package/dist/cdn/{RY2JRQIA.js → FI4EBVUK.js} +2 -2
  111. package/dist/cdn/{UMEH46X4.js → FJ7O47AQ.js} +2 -2
  112. package/dist/cdn/{VDTXZ2OC.js → FJAIG4PZ.js} +2 -2
  113. package/dist/cdn/{IJEJXWF7.js → FJFXKCW3.js} +2 -2
  114. package/dist/cdn/{NI64NXLH.js → FVQTX4DX.js} +1 -1
  115. package/dist/cdn/{7QBFHK6I.js → G2K266CK.js} +2 -2
  116. package/dist/cdn/{SU5NQO2Y.js → G3OR3RD4.js} +2 -2
  117. package/dist/cdn/{K2VMZCUX.js → G4JVAMYO.js} +2 -2
  118. package/dist/cdn/{V2K3CARG.js → G7J6NS5P.js} +2 -2
  119. package/dist/cdn/GBCQDVGN.js +18 -0
  120. package/dist/cdn/{FDGI4V7M.js → GLD6QMMM.js} +2 -2
  121. package/dist/cdn/{4RNO5M22.js → GLORY2Q3.js} +2 -2
  122. package/dist/cdn/{6EHWI7JM.js → GM3NQPFV.js} +2 -2
  123. package/dist/cdn/{4EQVVEVL.js → GNI64PEL.js} +2 -2
  124. package/dist/cdn/{K4HRSAES.js → GOYLOPJ3.js} +2 -2
  125. package/dist/cdn/GQCSOOLC.js +4 -0
  126. package/dist/cdn/{HXHGWVUO.js → GQWKR6ZH.js} +2 -2
  127. package/dist/cdn/{CO3TU24E.js → GRGSWHAS.js} +2 -2
  128. package/dist/cdn/{FCJJ2E2N.js → GS5HDZIE.js} +2 -2
  129. package/dist/cdn/{EAS42GZC.js → GTPA67XZ.js} +1 -1
  130. package/dist/cdn/{4WOSAZZE.js → GYRRBG6L.js} +2 -2
  131. package/dist/cdn/{EROCJUGG.js → HBZNFHQK.js} +2 -2
  132. package/dist/cdn/{L2WHYM3J.js → HCBYY275.js} +1 -1
  133. package/dist/cdn/{ZL7IV42Y.js → HEDBXJM7.js} +2 -2
  134. package/dist/cdn/HESZ3C6M.js +18 -0
  135. package/dist/cdn/{5NLABLUG.js → HFRCOLMH.js} +2 -2
  136. package/dist/cdn/{KZD2C2ML.js → HPT7FTOX.js} +2 -2
  137. package/dist/cdn/{7LEW57R4.js → HSCFJPMS.js} +2 -2
  138. package/dist/cdn/{XUNRNHCK.js → HTCTIT57.js} +2 -2
  139. package/dist/cdn/{4JHKVR7I.js → HXMNNJXU.js} +2 -2
  140. package/dist/cdn/HXWJEHNQ.js +18 -0
  141. package/dist/cdn/{QC34FER4.js → HYRSJC32.js} +2 -2
  142. package/dist/cdn/{URRLKSMA.js → HZO7UEFB.js} +2 -2
  143. package/dist/cdn/{CQIWHMR3.js → I2FGXEDE.js} +1 -1
  144. package/dist/cdn/{QUO6TIFZ.js → I2YPPOOM.js} +1 -1
  145. package/dist/cdn/{KRZ6DGKX.js → IJFJWLYK.js} +2 -2
  146. package/dist/cdn/{EOZZELAV.js → ILLNJSZ5.js} +2 -2
  147. package/dist/cdn/{PZ5GGYLN.js → ITJXBRWP.js} +2 -2
  148. package/dist/cdn/{O4ZKMCDY.js → IV45DYHD.js} +1 -1
  149. package/dist/cdn/{QBBC7A4Y.js → IXNDA5VZ.js} +1 -1
  150. package/dist/cdn/{J5GBXHV7.js → IXOCAJWG.js} +2 -2
  151. package/dist/cdn/{NAUVQEGN.js → IZUHNA5W.js} +2 -2
  152. package/dist/cdn/J3QX7P6J.js +18 -0
  153. package/dist/cdn/{A65SF5TP.js → JB2P6SXN.js} +2 -2
  154. package/dist/cdn/{BUQMZQDZ.js → JB5NDXDH.js} +2 -2
  155. package/dist/cdn/{GFXNHLR7.js → JEF4UV2K.js} +2 -2
  156. package/dist/cdn/{FBAY6DO3.js → JFPBJLVG.js} +2 -2
  157. package/dist/cdn/{PSACJE2J.js → JGHCMS5P.js} +2 -2
  158. package/dist/cdn/{VHW5YMZI.js → JLO4K7LS.js} +2 -2
  159. package/dist/cdn/{GHZ256AS.js → JNUMH3BN.js} +4 -4
  160. package/dist/cdn/{OPFB2Y4V.js → JP4K6XQE.js} +2 -2
  161. package/dist/cdn/JRTPZ6ES.js +18 -0
  162. package/dist/cdn/{2PC724CH.js → JWY4OWS3.js} +2 -2
  163. package/dist/cdn/{7OW5IQNG.js → K2BWFQJM.js} +2 -2
  164. package/dist/cdn/{XSE22DX2.js → K4J34WLO.js} +2 -2
  165. package/dist/cdn/{HST46P5Y.js → K4MCLE46.js} +2 -2
  166. package/dist/cdn/{5XHMHEC7.js → K5Q2KDOU.js} +2 -2
  167. package/dist/cdn/{JGT3UVSS.js → KCEWHR2X.js} +2 -2
  168. package/dist/cdn/{B6DL7APO.js → KD6VFEYI.js} +2 -2
  169. package/dist/cdn/{PFXC7WOR.js → KDVE3TUH.js} +2 -2
  170. package/dist/cdn/{2AI475Q6.js → KEFQKJ6B.js} +2 -2
  171. package/dist/cdn/{EIXF5OZH.js → KFX3THDY.js} +1 -1
  172. package/dist/cdn/{ANWXMLC5.js → KJJM3OEK.js} +2 -2
  173. package/dist/cdn/{R6MJ3BWC.js → KLPZNVNH.js} +1 -1
  174. package/dist/cdn/{2BLFCKKA.js → KOCZ4OFZ.js} +2 -2
  175. package/dist/cdn/{DWL4LXGS.js → KONPCHXM.js} +3 -3
  176. package/dist/cdn/{6Z47NIFS.js → KQFR7R2N.js} +2 -2
  177. package/dist/cdn/{VEUQH5L3.js → KQULX67Q.js} +2 -2
  178. package/dist/cdn/{QH2BEMM6.js → KVV4M7BE.js} +2 -2
  179. package/dist/cdn/{67TNRLBR.js → KVVPA63Y.js} +2 -2
  180. package/dist/cdn/{R22HIDGZ.js → KYAKBPGR.js} +2 -2
  181. package/dist/cdn/{KESHQJDL.js → L42KDYQE.js} +2 -2
  182. package/dist/cdn/{OLKLMVT2.js → L5MLUGPD.js} +2 -2
  183. package/dist/cdn/{MWLY3N7C.js → L6PQQN5H.js} +2 -2
  184. package/dist/cdn/{TEY2ATFL.js → L7H2XLV6.js} +2 -2
  185. package/dist/cdn/{DW7PYNVR.js → L7T2IR73.js} +2 -2
  186. package/dist/cdn/{YEKIMYDO.js → L7WBMNMV.js} +2 -2
  187. package/dist/cdn/LCGASXTT.js +18 -0
  188. package/dist/cdn/{FY6XKBZS.js → LCNXICCQ.js} +2 -2
  189. package/dist/cdn/{EOLIKK4H.js → LCZQP4VM.js} +2 -2
  190. package/dist/cdn/{TOEQLEDG.js → LHP76MB7.js} +2 -2
  191. package/dist/cdn/{WWSSJEOD.js → LIQPYHJK.js} +2 -2
  192. package/dist/cdn/{II25P5CO.js → LKHIMH3W.js} +2 -2
  193. package/dist/cdn/{QJRGXDSI.js → LTYO7BRS.js} +2 -2
  194. package/dist/cdn/{X4DEDSCC.js → LWGGLCXI.js} +2 -2
  195. package/dist/cdn/LXAALX4E.js +18 -0
  196. package/dist/cdn/{Z2EMCTSK.js → M3ZIJZJ3.js} +2 -2
  197. package/dist/cdn/{DVGLTRJU.js → MAYQRSPQ.js} +1 -1
  198. package/dist/cdn/{P7H776WT.js → MBZH2YNN.js} +2 -2
  199. package/dist/cdn/{LG6DSYZW.js → MCMZEYAP.js} +2 -2
  200. package/dist/cdn/{T74GGRMS.js → MEQMYPP3.js} +2 -2
  201. package/dist/cdn/{OABMD66T.js → MHQOCO5S.js} +2 -2
  202. package/dist/cdn/{UIGYM74T.js → MN2543D7.js} +2 -2
  203. package/dist/cdn/{7UWI5KWK.js → MNAFT2GX.js} +2 -2
  204. package/dist/cdn/MOJYKPVX.js +4 -0
  205. package/dist/cdn/{ZAL2JPN6.js → MSKT77WV.js} +1 -1
  206. package/dist/cdn/{6MECJUZM.js → MT7G72VG.js} +2 -2
  207. package/dist/cdn/N22RCG3K.js +4 -0
  208. package/dist/cdn/NFU4CVAT.js +18 -0
  209. package/dist/cdn/{P3LUAT4F.js → NGTTND2O.js} +2 -2
  210. package/dist/cdn/{MTH7WCDT.js → NICJBX5S.js} +2 -2
  211. package/dist/cdn/{FEODTSQT.js → NJ3BAM2B.js} +2 -2
  212. package/dist/cdn/{SKGMLLPH.js → NOONCQZF.js} +7 -7
  213. package/dist/cdn/{P6OT3PMN.js → NPRJ2MDW.js} +2 -2
  214. package/dist/cdn/NQUDNN5L.js +18 -0
  215. package/dist/cdn/{5D7BHC5A.js → NZVTYNMW.js} +2 -2
  216. package/dist/cdn/{27YRRENY.js → O45B5X3J.js} +2 -2
  217. package/dist/cdn/{SKZURFAS.js → O7JHHK3X.js} +2 -2
  218. package/dist/cdn/{KG4IFWCZ.js → OFEX5K4J.js} +2 -2
  219. package/dist/cdn/{2KZX4PSI.js → OGAMGH5M.js} +2 -2
  220. package/dist/cdn/{CYG5JUF7.js → OIRXB4BU.js} +1 -1
  221. package/dist/cdn/{ASC5OMBD.js → OVQLLUEP.js} +2 -2
  222. package/dist/cdn/{GZK6A527.js → OWPILYU5.js} +2 -2
  223. package/dist/cdn/{SNLUBEJI.js → P5D72UDZ.js} +2 -2
  224. package/dist/cdn/{HF6CCTGX.js → P6QBSSBF.js} +2 -2
  225. package/dist/cdn/{JEWJNGE6.js → PHRVNU5S.js} +2 -2
  226. package/dist/cdn/{4QNOYSPY.js → PLADJNNW.js} +2 -2
  227. package/dist/cdn/{SVTYAHMC.js → PLKB5BAY.js} +2 -2
  228. package/dist/cdn/{WP7F5HRM.js → PMAEYX5B.js} +2 -2
  229. package/dist/cdn/{PHHVQRLL.js → PMCKR77M.js} +2 -2
  230. package/dist/cdn/{AVA46ODH.js → PN3EXCUI.js} +2 -2
  231. package/dist/cdn/{4Y7ZVP46.js → PNC7GJX5.js} +2 -2
  232. package/dist/cdn/{3E3IBLXH.js → PNEXLQI2.js} +2 -2
  233. package/dist/cdn/{CYADZ6PK.js → POF72VTV.js} +2 -2
  234. package/dist/cdn/{ERSOKPXT.js → POKCZ3V4.js} +2 -2
  235. package/dist/cdn/{WOZIGPUB.js → PV2RRQIK.js} +2 -2
  236. package/dist/cdn/{ZJ5VS3XI.js → Q3RYWEUP.js} +2 -2
  237. package/dist/cdn/Q7LKYYVG.js +18 -0
  238. package/dist/cdn/{R47VKS7S.js → QALG5MCX.js} +2 -2
  239. package/dist/cdn/{T6DIELVZ.js → QF54B5PZ.js} +2 -2
  240. package/dist/cdn/{AO32HRV6.js → QG3USF4Y.js} +2 -2
  241. package/dist/cdn/{YFOSFQMV.js → QGW5FNJT.js} +1 -1
  242. package/dist/cdn/{BF6B5YPC.js → QKALFXP5.js} +1 -1
  243. package/dist/cdn/{43NXLAVY.js → QLCJCIZJ.js} +2 -2
  244. package/dist/cdn/{GKS4SDRE.js → QM4W7JMJ.js} +2 -2
  245. package/dist/cdn/{35KLNGC5.js → QMYZGGJI.js} +2 -2
  246. package/dist/cdn/{DK5FUIGH.js → QO6KCGB7.js} +1 -1
  247. package/dist/cdn/{BGC5OXBC.js → QQKQSMEB.js} +2 -2
  248. package/dist/cdn/{EHS77SRG.js → QRMAFUI4.js} +2 -2
  249. package/dist/cdn/{KXKFOLKN.js → QTTDHRAA.js} +1 -1
  250. package/dist/cdn/{IBLOFUUX.js → QUMKP3MN.js} +2 -2
  251. package/dist/cdn/{FFLBALPH.js → QXVWOTDR.js} +2 -2
  252. package/dist/cdn/{SSHAOTEK.js → R5UYZSKU.js} +2 -2
  253. package/dist/cdn/{GYIUJFGM.js → R6QDW36Y.js} +2 -2
  254. package/dist/cdn/REQ6SUUW.js +18 -0
  255. package/dist/cdn/{QYQTOIF6.js → RIALL5SY.js} +1 -1
  256. package/dist/cdn/RPEOATB5.js +18 -0
  257. package/dist/cdn/{NX4JHBIH.js → RR6DYONH.js} +2 -2
  258. package/dist/cdn/{WTVABM3O.js → RUBBHHA2.js} +2 -2
  259. package/dist/cdn/{VBGQ7FE6.js → RWPAQKNE.js} +2 -2
  260. package/dist/cdn/{BEV4LNQI.js → RYCN2WNH.js} +2 -2
  261. package/dist/cdn/RZGCWE6B.js +4 -0
  262. package/dist/cdn/{SMZGBF7A.js → S35DEH4O.js} +2 -2
  263. package/dist/cdn/{Q4ZZ6NDL.js → S4ZGRNK3.js} +2 -2
  264. package/dist/cdn/{T6FIJDJK.js → S6KONP5D.js} +2 -2
  265. package/dist/cdn/{TO6ZG5LX.js → S7WZDGWE.js} +1 -1
  266. package/dist/cdn/SCFWJINO.js +18 -0
  267. package/dist/cdn/{LH3A7YCF.js → SH3KFLOT.js} +3 -3
  268. package/dist/cdn/{KIUNRSQA.js → SIL26OVP.js} +2 -2
  269. package/dist/cdn/{MSBJECJS.js → SL2WOYUA.js} +2 -2
  270. package/dist/cdn/{2JWUVZ2L.js → SLMZ3EXF.js} +1 -1
  271. package/dist/cdn/{KWTCG2SE.js → SOQQPZYP.js} +2 -2
  272. package/dist/cdn/{2KHJ7DAR.js → SXNTJLJ5.js} +2 -2
  273. package/dist/cdn/{GGQUPRRV.js → SYR63WS4.js} +2 -2
  274. package/dist/cdn/SYYINKMJ.js +18 -0
  275. package/dist/cdn/T2ZL626B.js +64 -0
  276. package/dist/cdn/{BOHI7OOB.js → T4GHTIOI.js} +1 -1
  277. package/dist/cdn/{7GAWPJYN.js → T7PSBD2K.js} +2 -2
  278. package/dist/cdn/{QXX2SNE5.js → TCNQHM62.js} +2 -2
  279. package/dist/cdn/{QO2AZMFP.js → TCSANST6.js} +2 -2
  280. package/dist/cdn/{T7GSBDIG.js → TDOLI3MJ.js} +2 -2
  281. package/dist/cdn/{REW2XBKZ.js → TEZMIOXN.js} +1 -1
  282. package/dist/cdn/{IKBTX6QZ.js → TF7EVNSZ.js} +2 -2
  283. package/dist/cdn/{KOT36X5I.js → TP2TOJCY.js} +2 -2
  284. package/dist/cdn/{PHLPFYN3.js → TYK2KN46.js} +1 -1
  285. package/dist/cdn/{UNOFD42Q.js → U2DYOKUT.js} +1 -1
  286. package/dist/cdn/U5Q7L7IV.js +18 -0
  287. package/dist/cdn/{RRNRGQVC.js → UEUGCRSS.js} +2 -2
  288. package/dist/cdn/{CLFLK4OG.js → UEYUMFJR.js} +2 -2
  289. package/dist/cdn/{73OBTSKG.js → UFBKZY2Y.js} +2 -2
  290. package/dist/cdn/{3WHGZJJS.js → UFLRMHOA.js} +2 -2
  291. package/dist/cdn/{3WPZIU5L.js → UTXJRKVN.js} +2 -2
  292. package/dist/cdn/{SERCADIE.js → UVO4N63O.js} +2 -2
  293. package/dist/cdn/{2YG6C32T.js → V2XWGRQ4.js} +2 -2
  294. package/dist/cdn/{2S3FX57Y.js → V3TOUD4G.js} +2 -2
  295. package/dist/cdn/{MLY5XS76.js → V5B2ANE5.js} +2 -2
  296. package/dist/cdn/{FFZY7CPX.js → V6N2BOHM.js} +2 -2
  297. package/dist/cdn/{2ZWVBNPH.js → VBJBCOA4.js} +2 -2
  298. package/dist/cdn/VCHF7VKK.js +21 -0
  299. package/dist/cdn/{CFRDPWXR.js → VESAWDFI.js} +2 -2
  300. package/dist/cdn/{OQF6YVUK.js → VI5QNKY4.js} +2 -2
  301. package/dist/cdn/{ENUF5QK4.js → VIH4XUBT.js} +2 -2
  302. package/dist/cdn/{CHNYABSO.js → VLEOLXN7.js} +2 -2
  303. package/dist/cdn/{L6PIPEF2.js → VP644CSD.js} +2 -2
  304. package/dist/cdn/{6WW2DA2G.js → VYZBZ6Y7.js} +1 -1
  305. package/dist/cdn/{XVG5AXU3.js → W5J5NEH6.js} +2 -2
  306. package/dist/cdn/{OYGODC65.js → WBTYMW42.js} +2 -2
  307. package/dist/cdn/{LQVI3NR7.js → WCQUEVMF.js} +2 -2
  308. package/dist/cdn/WHOYKD3P.js +18 -0
  309. package/dist/cdn/{BUJ7HMXE.js → WIOAHEDF.js} +2 -2
  310. package/dist/cdn/{VK3OPHNA.js → WJWYDP5A.js} +2 -2
  311. package/dist/cdn/WLTAPFFM.js +18 -0
  312. package/dist/cdn/{4HFOPNFI.js → WOYZGDP4.js} +2 -2
  313. package/dist/cdn/{C7RFHH22.js → WPIWNKXJ.js} +2 -2
  314. package/dist/cdn/{76RER7LN.js → WRDZQGLN.js} +2 -2
  315. package/dist/cdn/{KX7PNFBK.js → WUCV5AYV.js} +2 -2
  316. package/dist/cdn/{Z2MGL6AZ.js → X463GSCH.js} +2 -2
  317. package/dist/cdn/{E23BMOKL.js → X5S5VG6G.js} +2 -2
  318. package/dist/cdn/{3P4LQ4TN.js → XBSAUMWE.js} +2 -2
  319. package/dist/cdn/{GQYBA7GH.js → XCJNZ6FA.js} +2 -2
  320. package/dist/cdn/{CE2PWV2T.js → XDQBYMET.js} +2 -2
  321. package/dist/cdn/XF4KJ7M4.js +18 -0
  322. package/dist/cdn/{T5CPOSYR.js → XF7HMOOJ.js} +1 -1
  323. package/dist/cdn/XFUMVODK.js +18 -0
  324. package/dist/cdn/XLWTPCSP.js +18 -0
  325. package/dist/cdn/{6XXBH32V.js → XOB3RAC7.js} +2 -2
  326. package/dist/cdn/XQ55W7BG.js +18 -0
  327. package/dist/cdn/{IMPPWVVG.js → XU4C7MA6.js} +2 -2
  328. package/dist/cdn/{UM5O6SR4.js → XWNG4K3N.js} +2 -2
  329. package/dist/cdn/{OUYGAAGX.js → YBQZUOZZ.js} +2 -2
  330. package/dist/cdn/{75CES5F2.js → YFOOZMDL.js} +2 -2
  331. package/dist/cdn/{HBNX26U7.js → YGQDCOUP.js} +2 -2
  332. package/dist/cdn/{W6XHOAIY.js → YJBALGDU.js} +2 -2
  333. package/dist/cdn/{W5O6BHYJ.js → YJGETEBD.js} +2 -2
  334. package/dist/cdn/{ANOEINZT.js → YRHLAWNX.js} +2 -2
  335. package/dist/cdn/{YMNTHO2F.js → Z2XWW7ZN.js} +2 -2
  336. package/dist/cdn/{G24DNHCB.js → Z5IRLGOP.js} +2 -2
  337. package/dist/cdn/{G37T64CV.js → Z7LU4D7Q.js} +2 -2
  338. package/dist/cdn/{JOSEALSV.js → Z7ML4UNP.js} +2 -2
  339. package/dist/cdn/{ZGXAJOK6.js → ZBDMKHIL.js} +2 -2
  340. package/dist/cdn/{YHMAN2VX.js → ZF56DPTU.js} +2 -2
  341. package/dist/cdn/{74AIX5RH.js → ZFEVJ556.js} +1 -1
  342. package/dist/cdn/{SGEGTSUZ.js → ZGS6ENKJ.js} +2 -2
  343. package/dist/cdn/{63DFPGXG.js → ZL6AJSDF.js} +2 -2
  344. package/dist/cdn/{7HWYZVCJ.js → ZMG4Y2N6.js} +2 -2
  345. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
  346. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
  347. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.en.json +1 -1
  348. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.json +1 -1
  349. package/dist/cdn/assets/solutions-searchsort-toolbar/t9n/messages.en.json +1 -1
  350. package/dist/cdn/assets/solutions-searchsort-toolbar/t9n/messages.json +1 -1
  351. package/dist/cdn/index.js +2 -2
  352. package/dist/chunks/Auth.js +1 -1
  353. package/dist/chunks/CardsFetcher.js +1 -1
  354. package/dist/chunks/appConfig.js +1 -1
  355. package/dist/chunks/cardFetchingUtils.js +1 -1
  356. package/dist/chunks/cardsHelpers.js +1 -1
  357. package/dist/chunks/common.js +1 -1
  358. package/dist/chunks/deployAppContexts.js +1 -1
  359. package/dist/chunks/downloadUtils.js +1 -1
  360. package/dist/chunks/getItemIcon.js +1 -1
  361. package/dist/chunks/helpers.js +1 -1
  362. package/dist/chunks/interfaces.js +1 -1
  363. package/dist/chunks/loadModules.js +1 -1
  364. package/dist/chunks/mapViewUtils.js +1 -1
  365. package/dist/chunks/pciUtils.js +1 -1
  366. package/dist/chunks/popupUtils.js +1 -1
  367. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  368. package/dist/chunks/privilegeUtils.js +1 -1
  369. package/dist/chunks/publicNotificationContext.js +1 -1
  370. package/dist/chunks/queryUtils.js +1 -1
  371. package/dist/chunks/runtime.js +1 -1
  372. package/dist/chunks/solution-store.js +1 -1
  373. package/dist/chunks/templates.js +1 -1
  374. package/dist/chunks/useT9n.js +1 -1
  375. package/dist/components/arcgis-solutions-assistant/customElement.js +148 -133
  376. package/dist/components/arcgis-solutions-assistant/index.d.ts +0 -1
  377. package/dist/components/arcgis-solutions-assistant/index.js +0 -1
  378. package/dist/components/basemap-gallery/customElement.js +1 -1
  379. package/dist/components/buffer-tools/customElement.d.ts +2 -2
  380. package/dist/components/buffer-tools/customElement.js +1 -1
  381. package/dist/components/card-manager/customElement.d.ts +1 -2
  382. package/dist/components/card-manager/customElement.js +2 -2
  383. package/dist/components/consent-manager/customElement.d.ts +5 -5
  384. package/dist/components/consent-manager/customElement.js +142 -142
  385. package/dist/components/create-feature/customElement.js +1 -1
  386. package/dist/components/create-related-feature/customElement.js +1 -1
  387. package/dist/components/crowdsource-manager/customElement.js +2 -2
  388. package/dist/components/crowdsource-reporter/customElement.d.ts +1 -6
  389. package/dist/components/crowdsource-reporter/customElement.js +6 -6
  390. package/dist/components/deduct-calculator/customElement.d.ts +0 -1
  391. package/dist/components/deduct-calculator/customElement.js +1 -1
  392. package/dist/components/delete-button/customElement.js +2 -2
  393. package/dist/components/delete-dialog/customElement.js +2 -2
  394. package/dist/components/edit-card/customElement.js +6 -6
  395. package/dist/components/feature-details/customElement.d.ts +0 -2
  396. package/dist/components/feature-details/customElement.js +1 -1
  397. package/dist/components/feature-list/customElement.d.ts +1 -1
  398. package/dist/components/feature-list/customElement.js +44 -45
  399. package/dist/components/field-selection/customElement.js +1 -1
  400. package/dist/components/floor-filter/customElement.js +1 -1
  401. package/dist/components/info-card/customElement.d.ts +0 -1
  402. package/dist/components/info-card/customElement.js +2 -2
  403. package/dist/components/json-editor/customElement.js +1 -1
  404. package/dist/components/layer-list/customElement.d.ts +0 -1
  405. package/dist/components/layer-list/customElement.js +1 -1
  406. package/dist/components/layer-table/customElement.d.ts +1 -2
  407. package/dist/components/layer-table/customElement.js +12 -12
  408. package/dist/components/map-card/customElement.d.ts +6 -9
  409. package/dist/components/map-card/customElement.js +17 -27
  410. package/dist/components/map-draw-tools/customElement.js +2 -2
  411. package/dist/components/map-fullscreen/customElement.js +1 -1
  412. package/dist/components/map-layer-picker/customElement.d.ts +7 -7
  413. package/dist/components/map-layer-picker/customElement.js +1 -1
  414. package/dist/components/map-legend/customElement.js +1 -1
  415. package/dist/components/map-picker/customElement.js +5 -5
  416. package/dist/components/map-search/customElement.js +1 -1
  417. package/dist/components/map-select-tools/customElement.d.ts +3 -5
  418. package/dist/components/map-select-tools/customElement.js +13 -13
  419. package/dist/components/map-tools/customElement.d.ts +4 -10
  420. package/dist/components/map-tools/customElement.js +7 -7
  421. package/dist/components/pci-calculator/customElement.js +9 -9
  422. package/dist/components/pdf-download/customElement.js +29 -37
  423. package/dist/components/public-notification/customElement.d.ts +5 -6
  424. package/dist/components/public-notification/customElement.js +6 -9
  425. package/dist/components/refine-selection/customElement.d.ts +1 -4
  426. package/dist/components/refine-selection/customElement.js +15 -15
  427. package/dist/components/selection-tool/customElement.d.ts +2 -2
  428. package/dist/components/selection-tool/customElement.js +1 -1
  429. package/dist/components/solution-configuration/customElement.js +1 -1
  430. package/dist/components/solution-configure-titles/customElement.js +2 -2
  431. package/dist/components/solution-contents/customElement.js +1 -1
  432. package/dist/components/solution-delete-dialog/customElement.d.ts +0 -1
  433. package/dist/components/solution-delete-dialog/customElement.js +12 -10
  434. package/dist/components/solution-deploy-dialog/customElement.js +2 -2
  435. package/dist/components/solution-deployed-card/customElement.js +8 -8
  436. package/dist/components/solution-deployed-card-panel/customElement.js +20 -19
  437. package/dist/components/solution-deployed-card-panel/index.d.ts +1 -0
  438. package/dist/components/solution-deployed-card-panel/index.js +1 -0
  439. package/dist/components/solution-deploying-dialog/customElement.js +20 -33
  440. package/dist/components/solution-details-card/customElement.js +1 -1
  441. package/dist/components/solution-details-panel/customElement.js +46 -53
  442. package/dist/components/solution-item/customElement.js +1 -1
  443. package/dist/components/solution-item-accordion/customElement.js +2 -2
  444. package/dist/components/solution-item-details/customElement.js +1 -1
  445. package/dist/components/solution-item-diagram/customElement.js +2 -2
  446. package/dist/components/solution-item-icon/customElement.js +1 -1
  447. package/dist/components/solution-item-sharing/customElement.js +1 -1
  448. package/dist/components/solution-organization-variables/customElement.js +1 -1
  449. package/dist/components/solution-resource-card/customElement.js +1 -1
  450. package/dist/components/solution-resource-item/customElement.js +1 -1
  451. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  452. package/dist/components/solution-social-share/customElement.js +1 -1
  453. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  454. package/dist/components/solution-template-data/customElement.js +1 -1
  455. package/dist/components/solution-variables/customElement.js +1 -1
  456. package/dist/components/solutions-all-panel/customElement.js +1 -1
  457. package/dist/components/solutions-all-shell/customElement.js +34 -31
  458. package/dist/components/solutions-all-shell/index.d.ts +1 -1
  459. package/dist/components/solutions-all-shell/index.js +1 -1
  460. package/dist/components/solutions-deploy-app/customElement.js +3 -3
  461. package/dist/components/solutions-deploy-app-nav/customElement.d.ts +2 -1
  462. package/dist/components/solutions-deploy-app-nav/customElement.js +70 -31
  463. package/dist/components/solutions-deploy-app-nav/index.d.ts +4 -1
  464. package/dist/components/solutions-deploy-app-nav/index.js +4 -1
  465. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  466. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  467. package/dist/components/solutions-deployed-shell/customElement.js +12 -15
  468. package/dist/components/solutions-deployed-shell/index.d.ts +0 -1
  469. package/dist/components/solutions-deployed-shell/index.js +0 -1
  470. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  471. package/dist/components/solutions-resource-panel/customElement.js +1 -1
  472. package/dist/components/solutions-resources/customElement.js +1 -1
  473. package/dist/components/solutions-resources-shell/customElement.js +1 -1
  474. package/dist/components/solutions-searchsort-toolbar/customElement.d.ts +2 -0
  475. package/dist/components/solutions-searchsort-toolbar/customElement.js +73 -63
  476. package/dist/components/solutions-searchsort-toolbar/index.d.ts +1 -1
  477. package/dist/components/solutions-searchsort-toolbar/index.js +1 -1
  478. package/dist/components/spatial-ref/customElement.js +1 -1
  479. package/dist/components/store-manager/customElement.js +1 -1
  480. package/dist/docs/api.json +74 -55
  481. package/dist/docs/docs.json +57 -33
  482. package/dist/docs/vscode.html-custom-data.json +17 -17
  483. package/dist/docs/web-types.json +57 -47
  484. package/dist/index.d.ts +1 -0
  485. package/dist/index.js +1 -1
  486. package/dist/loader.js +1 -1
  487. package/dist/types/lumina.d.ts +1 -0
  488. package/dist/types/preact.d.ts +1 -0
  489. package/dist/types/preact10.d.ts +1 -0
  490. package/dist/types/react.d.ts +1 -0
  491. package/dist/types/stencil.d.ts +1 -0
  492. package/package.json +1 -1
  493. package/dist/cdn/2CCBXSKK.js +0 -4
  494. package/dist/cdn/2PHLVPTR.js +0 -4
  495. package/dist/cdn/3LF35Q54.js +0 -4
  496. package/dist/cdn/4RTC5XWR.js +0 -18
  497. package/dist/cdn/5JZITWD2.js +0 -18
  498. package/dist/cdn/5N7W6CKG.js +0 -18
  499. package/dist/cdn/5ROXJJIZ.js +0 -18
  500. package/dist/cdn/C5H65524.js +0 -18
  501. package/dist/cdn/D67LKKO3.js +0 -18
  502. package/dist/cdn/D7WDGASK.js +0 -65
  503. package/dist/cdn/DQZF7IPW.js +0 -18
  504. package/dist/cdn/DUYSEICC.js +0 -18
  505. package/dist/cdn/EE3RLK54.js +0 -18
  506. package/dist/cdn/EJX4TNGV.js +0 -18
  507. package/dist/cdn/EY4LNEPF.js +0 -18
  508. package/dist/cdn/FVLOODPF.js +0 -18
  509. package/dist/cdn/GDO7SFZU.js +0 -18
  510. package/dist/cdn/HFSAMU3B.js +0 -18
  511. package/dist/cdn/HWKBNZEW.js +0 -18
  512. package/dist/cdn/ILRIV2PZ.js +0 -18
  513. package/dist/cdn/JYBZAUFS.js +0 -18
  514. package/dist/cdn/K2C56RZ4.js +0 -21
  515. package/dist/cdn/K3OZMGZ3.js +0 -4
  516. package/dist/cdn/LCZYX2MS.js +0 -18
  517. package/dist/cdn/LPQM324E.js +0 -18
  518. package/dist/cdn/MZVQVHJA.js +0 -18
  519. package/dist/cdn/OOSMF7MX.js +0 -18
  520. package/dist/cdn/P7A24J32.js +0 -18
  521. package/dist/cdn/QU33YK2I.js +0 -4
  522. package/dist/cdn/RXDDH7T7.js +0 -4
  523. package/dist/cdn/T6NNOIF5.js +0 -4
  524. package/dist/cdn/TRN3X66C.js +0 -18
  525. package/dist/cdn/TW7EJR75.js +0 -18
  526. package/dist/cdn/VGHU623Q.js +0 -18
  527. package/dist/cdn/XDEV64FQ.js +0 -18
  528. package/dist/cdn/Y5S76IXI.js +0 -4
  529. package/dist/cdn/ZDTIXH2P.js +0 -18
  530. package/dist/cdn/ZF5KTUHD.js +0 -18
  531. package/dist/cdn/ZLEHSIQE.js +0 -18
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import c from"./NEDCAXJL.js";import b from"./OYGODC65.js";import"./5NLABLUG.js";import a from"./GWYYMTWP.js";import{a as K}from"./PZ5GGYLN.js";import{C as Te,E as Fe,c as ze,z as Pe}from"./BF6B5YPC.js";import{b as Ie}from"./4QNOYSPY.js";import"./5TKI4FG4.js";import{D as Ee,E as Se,G as w,H as E,h as ke,i as L,j as ue,l as ce,r as Re}from"./6WW2DA2G.js";import{b as lt,d as ct}from"./EAS42GZC.js";export default $arcgis.t(([,{a:B,b:W},{a:Me,b:oe,d:Ue,e:He,f:he,g:Be,i:De,o:de,s:qe,t:Y,u:me,v:We,w:Ge}])=>{var Ke=lt((fe,Je)=>{(function(b,t){typeof fe=="object"&&typeof Je<"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"),c="".concat(t,"1999/xlink"),n=[],r=function(e,i){var a={};return Object.keys(e).forEach(function(l){a[l]=e[l]}),i&&Object.keys(i).forEach(function(l){a[l]=i[l]}),a},u=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},h=function(e){if(typeof e!="string")throw new Error("Style values must be strings")},_=function(e,i,a){if(i.vnodeSelector!==""){for(var l=a;l<e.length;l++)if(u(e[l],i))return l}return-1},$=function(e,i,a,l){var p=e[i];if(p.vnodeSelector!==""){var o=p.properties,A=o?o.key===void 0?o.bind:o.key:void 0;if(!A){for(var f=0;f<e.length;f++)if(f!==i){var d=e[f];if(u(d,p))throw{error:new Error("".concat(a.vnodeSelector," had a ").concat(p.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:a,childNode:p}}}}},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])},I=function(){C=!1,x.forEach(S),x.length=0},z=function(e){x.push(e),C||(C=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(I,{timeout:16}):setTimeout(I,16))},R=function(e){var i=e.domNode;if(e.properties){var a=e.properties.exitAnimation;if(a){i.style.pointerEvents="none";var l=function(){i.parentNode&&(i.parentNode.removeChild(i),z(e))};a(i,l,e.properties);return}}i.parentNode&&(i.parentNode.removeChild(i),z(e))},M=["afterCreate","afterUpdate","afterRemoved","enterAnimation","exitAnimation","updateAnimation"];function D(e){return!M.includes(e)}var ee=function(e,i,a){if(i)for(var l=a.eventHandlerInterceptor,p=Object.keys(i).filter(D),o=p.length,A=0;A<o;A++){var f=p[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&&(h(O),a.styleApplyer(e,J,O))}else if(f==="on"&&d)for(var ne=0,re=Object.entries(i.on);ne<re.length;ne++){var se=re[ne],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):a.namespace===s?f==="href"?e.setAttributeNS(c,f,d):e.setAttribute(f,d):le==="string"&&f!=="value"&&f!=="innerHTML"?e.setAttribute(f,d):e[f]=d}}},Q=function(e,i,a){if(i)for(var l=0,p=i;l<p.length;l++){var o=p[l];F(o,e,void 0,a)}},H=function(e,i,a){Q(e,i.children,a),i.text&&(e.textContent=i.text),ee(e,i.properties,a),i.properties&&i.properties.afterCreate&&i.properties.afterCreate.apply(i.properties.bind||i.properties,[e,a,i.vnodeSelector,i.properties,i.children])},F=function(e,i,a,l){var p,o,A=0,f=e.vnodeSelector,d=i.ownerDocument;if(f==="")e.domNode?e.domNode.nodeValue=e.text:(o=e.domNode=d.createTextNode(e.text),a!==void 0?i.insertBefore(o,a):i.appendChild(o));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==="."?o.classList.add(m):y==="#"?o.id=m:(m==="svg"&&(l=r(l,{namespace:s})),l.namespace!==void 0?o=e.domNode=d.createElementNS(l.namespace,m):(o=e.domNode=e.domNode||(!((p=e.properties)===null||p===void 0)&&p.is?d.createElement(m,{is:e.properties.is}):d.createElement(m)),m==="input"&&e.properties&&e.properties.type!==void 0&&o.setAttribute("type",e.properties.type)),a!==void 0?i.insertBefore(o,a):o.parentNode!==i&&i.appendChild(o)),A=v+1}}H(o,e,l)}},G,te=function(e,i,a){i&&i.split(" ").forEach(function(l){l&&e.classList.toggle(l,a)})},pe=function(e,i,a,l){if(a){for(var p=!1,o=Object.keys(a).filter(D),A=o.length,f=0;f<A;f++){var d=o[f],v=a[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],ne=!!k[J];O!==ne&&(p=!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&&(p=!0,q?(h(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&&(p=!0)}else if(v!==k){var Ce=typeof v;(Ce!=="function"||!l.eventHandlerInterceptor)&&(l.namespace===s?d==="href"?e.setAttributeNS(c,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),p=!0)}}return p}},Ne=function(e,i,a,l,p){if(a===l)return!1;a=a||n,l=l||n;for(var o=a.length,A=l.length,f=0,d=0,v,k=!1;d<A;){var y=f<o?a[f]:void 0,m=l[d];if(y!==void 0&&u(y,m))k=G(y,m,p,i,a)||k,f++;else{var U=_(a,m,f+1);if(U>=0){for(v=f;v<U;v++)R(a[v]),$(a,v,e,"removed");k=G(a[U],m,p,i,a)||k,f=U+1}else F(m,i,f<o?a[f].domNode:void 0,p),P(m),$(l,d,e,"added")}d++}if(o>f)for(v=f;v<o;v++)R(a[v]),$(a,v,e,"removed");return k};G=function(e,i,a,l,p){var o=e.domNode,A=!1;if(e===i)return!1;var f=!1;if(i.vnodeSelector===""){if(i.text!==e.text){var d=o.ownerDocument.createTextNode(i.text);try{l.replaceChild(d,o)}catch{l.replaceChild(d,l.childNodes[p.indexOf(e)])}return i.domNode=d,A=!0,A}i.domNode=o}else i.vnodeSelector.lastIndexOf("svg",0)===0&&(a=r(a,{namespace:s})),e.text!==i.text&&(f=!0,i.text===void 0?o.removeChild(o.firstChild):o.textContent=i.text),i.domNode=o,f=Ne(i,o,e.children,i.children,a)||f,f=pe(o,e.properties,i.properties,a)||f,i.properties&&i.properties.afterUpdate&&i.properties.afterUpdate.apply(i.properties.bind||i.properties,[o,a,i.vnodeSelector,i.properties,i.children]);return f&&i.properties&&i.properties.updateAnimation&&i.properties.updateAnimation(o,i.properties,e.properties),A};var ie=function(e,i){return{getLastRender:function(){return e},update:function(a){if(e.vnodeSelector!==a.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=a,G(l,a,i,l.domNode.parentNode,[l])},domNode:e.domNode}},je={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,i,a){i.charAt(0)==="-"?e.style.setProperty(i,a):e.style[i]=a}},Z=function(e){return r(je,e)},ae={create:function(e,i){return i=Z(i),F(e,document.createElement("div"),void 0,i),ie(e,i)},append:function(e,i,a){return a=Z(a),F(i,e,void 0,a),ie(i,a)},insertBefore:function(e,i,a){return a=Z(a),F(i,e.parentNode,e,a),ie(i,a)},merge:function(e,i,a){return a=Z(a),i.domNode=e,H(e,i,a),ie(i,a)},replace:function(e,i,a){return a=Z(a),F(i,e.parentNode,e,a),e.parentNode.removeChild(e),ie(i,a)}},Ve=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},xe=function(e,i,a){for(var l=0,p=i.length;l<p;l++){var o=i[l];Array.isArray(o)?xe(e,o,a):o!=null&&o!==!1&&(typeof o=="string"&&(o=Ve(o)),a.push(o))}};function et(e,i,a){if(Array.isArray(i))a=i,i=void 0;else if(i&&(typeof i=="string"||i.vnodeSelector)||a&&(typeof a=="string"||a.vnodeSelector))throw new Error("h called with invalid arguments");var l,p;return a&&a.length===1&&typeof a[0]=="string"?l=a[0]:a&&(p=[],xe(e,a,p),p.length===0&&(p=void 0)),{vnodeSelector:e,properties:i,children:p,text:l===""?void 0:l,domNode:null}}var tt=function(e,i){for(var a=[];e&&e!==i;)a.push(e),e=e.parentNode;return a},ge;Array.prototype.find?ge=function(e,i){return e.find(i)}:ge=function(e,i){return e.filter(i)[0]};var it=function(e,i){var a=e;return i.forEach(function(l){a=a&&a.children?ge(a.children,function(p){return p.domNode===l}):void 0}),a},at=function(e,i,a){return function(p,o,A,f){return l};function l(p){var o,A;a("domEvent",p);var f=i(),d=tt(p.currentTarget,f.domNode);d.reverse();var v=it(f.getLastRender(),d);e.scheduleRender();var k;if(v){var y=(A=(o=v.properties["on".concat(p.type)])!==null&&o!==void 0?o:v.properties.on[p.type].listener)!==null&&A!==void 0?A:v.properties.on[p.type];k=y.apply(v.properties.bind||this,arguments)}return a("domEventProcessed",p),k}},nt=function(e){var i,a=Z(e),l=a.performanceLogger,p=!0,o,A=!1,f=[],d=[],v=function(y,m,U){var T,J=function(){return T};a.eventHandlerInterceptor=at(i,J,l),T=y(m,U(),a),f.push(T),d.push(U)},k=function(){if(o=void 0,!!p){p=!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),p=!0}};return i={renderNow:k,scheduleRender:function(){!o&&!A&&(o=requestAnimationFrame(k))},stop:function(){o&&(cancelAnimationFrame(o),o=void 0),A=!0},resume:function(){A=!1,p=!0,i.scheduleRender()},append:function(y,m){v(ae.append,y,m)},insertBefore:function(y,m){v(ae.insertBefore,y,m)},merge:function(y,m){v(ae.merge,y,m)},replace:function(y,m){v(ae.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},rt=function(){var e,i;return{invalidate:function(){i=void 0,e=void 0},result:function(a,l){if(e)for(var p=0;p<a.length;p++)e[p]!==a[p]&&(i=void 0);return i||(i=l(),e=a),i}}},st=function(e,i,a){var l=[],p=[];return{results:p,map:function(o){for(var A=o.map(e),f=p.slice(),d=0,v=0;v<o.length;v++){var k=o[v],y=A[v];if(y===l[d])p[v]=f[d],a(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){p[v]=f[T],a(o[v],f[T],v),d=T+1,m=!0;break}}m||(p[v]=i(k,v))}}p.length=o.length,l=A}}};b.createCache=rt,b.createMapping=st,b.createProjector=nt,b.dom=ae,b.h=et}))});var Qe=ct(Ke(),1);var ot=96;function V(b){return b?b/72*ot:0}var dt=(0,Qe.createProjector)(),Ze=10,_e=20,ve=10,Le=20,Ae={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function ft(b="vertical"){let t={stroke:"rgb(200, 200, 200)",strokeWidth:"1"};return b==="vertical"?L`<svg height=4 width=10>${ue`<line x1=0 y1=2 x2=10 y2=2 style=${E(t)} />`}</svg>`:L`<svg height=10 width=10>${ue`<line x1=5 y1=0 x2=5 y2=10 style=${E(t)} />`}</svg>`}function vt(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()),dt.append(s,ft.bind(null,t)),s}function Oe(b,t,s="vertical",c){b.infos.forEach((n,r)=>{if(c&&r===2)n.preview=vt(t,s);else{let{size:u}=n,h=V(u)+(s==="horizontal"?Le:ve),_=n.preview.tagName.toLowerCase()==="div",$=_?n.preview:document.createElement("div");$&&($.className=Ae.univariateAboveAndBelowSymbol),s==="horizontal"?$&&($.style.width=`${h}px`):$&&($.style.height=`${h}px`),_||$&&$.appendChild(n.preview),n.preview=$}})}function Xe(b,t="classic"){let s=b.infos,c=s[0].size,n=s[s.length-1].size;return t==="classic"?(V(c)+ve)/2:(V(c)-V(n))/2}function ye(b,t,s){if(!b)return null;let c=b.infos.map(r=>r.color),n=t.renderColorRampPreviewHTML(s.type==="full"?c:s.type==="above"?c.slice(0,3):c.slice(2,5),{width:s.width,height:s.height,align:s.rampAlignment,effectList:s.effectList});return n.className=Ae.colorRamp,s.opacity!=null&&(n.style.opacity=s.opacity.toString()),n}function pt(b,t,s,c="vertical"){let n=0,r=b.infos,u=Math.floor(r.length/2),h=t==="full"||t==="above"?0:u,_=t==="full"||t==="below"?r.length-1:u;for(let $=h;$<=_;$++)if(s&&$===u)n+=c==="horizontal"?Ze:_e;else{let P=r[$].size,x=V(P)+(c==="horizontal"?Le:ve);n+=x}return Math.round(n)}function $e(b,t,s,c="vertical"){let n=pt(b,t,s,c),r=b.infos,u=Math.floor(r.length/2),h=t==="full"||t==="above"?0:u,_=t==="full"||t==="below"?r.length-1:u,$=t==="full"?r[h].size+r[_].size:t==="above"?r[h].size:r[_].size,P=s?c==="vertical"?_e:Ze:0,x=c==="vertical"?ve*(t==="full"?2:1):Le*(t==="full"?2:1);return Math.round(n-(V($)/2+P/2+x/2))}function gt(b,t,s="vertical"){let c=b.infos,n=c.find(({type:u})=>u==="size-ramp"),r=c.find(({type:u})=>u==="color-ramp");return n&&(n={...n},n.infos=[...n.infos],Oe(n,t,s,!0)),r&&(r={...r},r.infos=[...r.infos]),s==="horizontal"&&(n?.infos.reverse(),r?.infos.reverse()),{sizeRampElement:n,colorRampElement:r}}function ut(b,t="vertical"){let s=b.infos,c=s.find(({type:r})=>r==="size-ramp"),n=s.find(({type:r})=>r==="color-ramp");return c&&(c={...c},c.infos=[...c.infos],Oe(c,null,t,!1)),n&&(n={...n},n.infos=[...n.infos]),t==="horizontal"&&(c?.infos.reverse(),n?.infos.reverse()),{sizeRampElement:c,colorRampElement:n}}function ht(b,t){return!0}var mt=ke`@layer{instant-apps-interactive-legend-classic{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}instant-apps-interactive-legend-classic .esri-legend__service{padding:0}instant-apps-interactive-legend-classic .esri-legend__layer-body,instant-apps-interactive-legend-classic .esri-legend__layer,instant-apps-interactive-legend-classic .esri-legend__layer-table,instant-apps-interactive-legend-classic .esri-legend__group-layer-child,instant-apps-interactive-legend-classic .esri-legend__layer-child-table{margin:0;overflow:hidden}instant-apps-interactive-legend-classic .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)}instant-apps-interactive-legend-classic .esri-legend__layer-caption calcite-action{margin-right:5px}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-caption-btn-container{white-space:nowrap}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}instant-apps-interactive-legend-classic .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}instant-apps-interactive-legend-classic .esri-legend__layer-cell.esri-legend__layer-cell--info{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}instant-apps-interactive-legend-classic .esri-legend__layer-cell,instant-apps-interactive-legend-classic .esri-legend__layer-row{display:flex;align-items:center}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive .esri-legend__layer-body{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol>.esri-legend__layer-body{margin:0}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive .esri-legend__layer-row{display:table-row}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive .esri-legend__layer-cell{display:table-cell}instant-apps-interactive-legend-classic .esri-legend__layer-cell--symbols{justify-content:center;width:20%}instant-apps-interactive-legend-classic .esri-legend__layer-cell--info{width:65%}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive{margin:1px;background:transparent;border:none;width:100%}instant-apps-interactive-legend-classic .esri-legend__layer-cell--info{color:var(--instant-apps-interactive-legend-secondary-color)}instant-apps-interactive-legend-classic .esri-legend__layer-row,instant-apps-interactive-legend-classic .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive{position:relative}instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected .esri-legend__layer-cell--info{color:var(--calcite-color-text-inverse)}instant-apps-interactive-legend-classic .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){instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive{cursor:pointer}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}}`,g={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"},yt=24,Ye={display:"flex",alignItems:"flex-start"},be={marginLeft:"3px"},j={display:"table-cell",verticalAlign:"middle"},we=class extends Se{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=mt}static{this.shadowRootOptions=Re}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([Te(),Pe()]),c=await Fe();this.reactiveUtils=s,this.intl=t,this.symbolUtils=c}willUpdate(t){t.has("filterMode")&&this.legendvm?.view&&(this.hasUpdated||this.filterMode.type!=="filter")&&We(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 c=s?.allLayers?.map(async h=>await h.load()),n=(await Promise.allSettled(c)).map(h=>h?.status==="fulfilled"&&h?.value?h.value:null).filter(h=>!!h),r=[];n.forEach(h=>{this.legendvm?.view&&r.push(this.legendvm.view.whenLayerView(h))}),await Promise.allSettled(r);let u=await oe(this.legendvm,this.reactiveUtils);W.set("data",{...B.data,...u}),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:u}=t,h=this.messages[r],_=typeof this.messages[u]=="string"?this.messages[u]:u;return`${h}: ${_}`}if("showCount"in t)return t.showCount?this.messages.clusterCountTitle:null;let c=null;if(s){let r=t;c=r.ratioPercentTotal?"showRatioPercentTotal":r.ratioPercent?"showRatioPercent":r.ratio?"showRatio":t.normField?"showNormField":t.field?"showField":null}else if(this.isRendererTitle(s)){let r=t;c=r.normField?"showNormField":r.normByPct?"showNormPct":r.field?"showField":null}let n=c==="showField"?"{field}":typeof c=="string"?this.messages[c]:"";return c?this.intl?.substitute(n,{field:t.field,normField:t.normField}):""}isRendererTitle(t){return!t}async setupWatchersAndListeners(){let t=this.legendvm?.view?.map?.allLayers?.filter(n=>n?.type==="feature"),s=[];for(let n of t)this.legendvm?.view&&s.push(this.legendvm?.view?.whenLayerView(n));let c=[];try{c=await Promise.all(s)}catch(n){console.error(n)}for(let n of c){let r=`fLayerViewScale-${n.layer.id}`;!this.handles?.has(r)&&n&&this.handles?.add(n.watch("visibleAtCurrentScale",()=>{this.createDataForLayer(n.layer).catch(u=>{console.error(u)})}),r)}t?.forEach(n=>{let r=`fLayer-${n?.id}`;this.handles?.has(r)||this.handles?.add(this.reactiveUtils?.watch(()=>n?.visible,()=>{this.createDataForLayer(n).catch(u=>{console.error(u)})}),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(n=>{W.set("data",{...B.data,...n}),this.calculatingFeatureCount=!1}).catch(n=>{console.error(n)})},{once:!0,initial:!0}))},{initial:!0})},{initial:!0,once:!0})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.activeLayerInfos,"change",n=>{oe(this.legendvm,this.reactiveUtils).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).then(()=>{this.handles?.add(this.reactiveUtils.on(()=>n.children,"change",()=>{oe(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(n=>{W.set("data",{...B.data,...n}),this.calculatingFeatureCount=!1}).catch(n=>{console.error(n)})}))}async createDataForLayer(t){let s=W.get("data")?.[t?.id],c=Ge(this.legendvm?.activeLayerInfos)?.find(n=>n?.layer?.id===t?.id);if(!s&&c){let n=await Me(this.legendvm,c,this.reactiveUtils);if(me({intLegendLayerData:n,layerId:t?.id}),this.featureCount){let r=await de(this.legendvm,B.data);W.set("data",{...B.data,...r})}}}applyFilter(t,s,c,n){return async()=>{let r={...B.data?.[s?.id]};n?await he(r,t,c,this.filterMode,n):await he(r,t,c,this.filterMode),me({intLegendLayerData:r,layerId:s?.id})}}render(){let t=this.renderFilteredLayers(),s=W.get("compact")?` ${g.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(g.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(u=>this.renderLegendForLayer(u,!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 c=t.legendElements;if(c&&!c.length)return null;let n=c.map((r,u)=>this.renderLegendForElement(r,t.layer,t.effectList,t,u)).filter(r=>!!r);return n.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(g.layer)}>${n}</div></instant-apps-interactive-legend-layer-element>`:null}renderLegendForElement(t,s,c,n,r,u,h){let _=t.type==="color-ramp",$=t.type==="opacity-ramp",P=t.type==="size-ramp",x=null,C=De(n,t,r),S=t?.type==="relationship-ramp";if(t.type==="symbol-table"||P){let R=t.infos.map((M,D)=>this.renderLegendForElementInfo(M,s,c,P,t,n,r,D,C,h)).filter(M=>!!M);R.length&&(x=L`<div class=${w(g.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=${n} .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,c)}else if(t.type==="univariate-color-size-ramp"){let R=t;x=this.renderUnivariateColorSizeRamp(R,s.opacity,c)}if(!x)return null;let I=t.title,z=null;if(typeof I=="string")z=I;else if(I){let R=I,M=this.getTitle(R,_||$);this.isRendererTitle(_||$)?"title"in I&&(z=`${I.title} (${M})`):z=M}return L`<instant-apps-interactive-legend-legend-element class=${w(Y(this.el))} .activeLayerInfo=${n} .isSizeRamp=${P} .isChild=${!!u} .isColorRamp=${_} .isRelationshipRamp=${S} .isInteractive=${C} .zoomTo=${this.zoomTo} .legendElement=${t} .titleText=${z} .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,c){let{sizeRampElement:n,colorRampElement:r}=gt(t,s);if(!n)return null;let u=$e(n,"above",!0),h=$e(n,"below",!0),_=12,$=ye(r,this.symbolUtils,{width:_,height:u,rampAlignment:"vertical",opacity:s,type:"above",effectList:c}),P=ye(r,this.symbolUtils,{width:_,height:h,rampAlignment:"vertical",opacity:s,type:"below",effectList:c}),x=Xe(n),C=n.infos.map(H=>H.label),S=C.map((H,F)=>F===0?L`<div class=${w(H?$?g.univariateAboveAndBelowLabel:g.rampLabel:"")}>${H}</div>`:F===2?L`<div></div>`:null),I=C.length-1,z=Math.floor(C.length/2),R=C.map((H,F)=>F===z||F===I?L`<div class=${w(H?$?g.univariateAboveAndBelowLabel:g.rampLabel:"")}>${H}</div>`:null),M={display:"table-cell",verticalAlign:"middle"},D={marginTop:`${x}px`},ee={height:`${u}px`},Q={height:`${h}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Ye)}><div class=${w(g.layerBody)}>${n.infos.map((H,F)=>L`<div class=${`${g.layerRow} ${g.sizeRamp}`}><div class=${w(g.symbol)} style=${E(M)} .innerHTML=${H?.preview?.outerHTML??""??""}></div>${!$&&F%2===0?L`<div class=${w(g.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(g.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(g.rampLabelsContainer)} style=${E(ee)}>${S}</div></div></div><div style=${E(be)}><div style=${E(j)}><div class=${w(g.rampContainer)}>${P}</div></div><div style=${E(j)}><div class=${w(g.rampLabelsContainer)} style=${E(Q)}>${R}</div></div></div></div>`):null}</div>`)}renderUnivariateColorSizeRamp(t,s,c){let{sizeRampElement:n,colorRampElement:r}=ut(t);if(!n)return null;let u=Xe(n),h=12,_=$e(n,"full",!1),$=ye(r,this.symbolUtils,{width:h,height:_,rampAlignment:"vertical",opacity:s,type:"full",effectList:c}),P=n.infos.length-1,x=n.infos.map((z,R)=>R===0||R===P?L`<div class=${w(z.label?r?g.univariateAboveAndBelowLabel:g.rampLabel:"")}>${z.label}</div>`:null),C={display:"table-cell",verticalAlign:"middle"},S={marginTop:`${u}px`},I={height:`${_}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Ye)}><div class=${w(g.layerBody)}>${n.infos.map(z=>L`<div class=${`${g.layerRow} ${g.sizeRamp}`}><div class=${w(g.symbol)} style=${E(C)} .innerHTML=${z?.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(g.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(g.rampLabelsContainer)} style=${E(I)}>${x}</div></div></div></div>`)}</div>`)}renderLegendForRamp(t,s){let c=t.infos,n=t.type==="opacity-ramp",r=t.type==="heatmap-ramp",u=t.type==="stretch-ramp",h=t.preview,_=n?g.opacityRamp:"";h&&(h.classList.add(g.colorRamp),_&&h.classList.add(_)),s!=null&&h&&(h.style.opacity=s.toString());let $=c.map(C=>{let S;if(r){let I=this.messages[C.label];S=typeof I=="string"?I:C.label}else u?S="value"in C?this.getStretchStopLabel(C):C.label:S=C.label;return L`<div class=${w(C.label?g.rampLabel:"")}>${S}</div>`}),P={width:`${yt}px`},x={height:h?.style?.height};return L`<div class=${w(g.layerRow)}><div class=${w(g.symbolContainer)} style=${E({...P})}><div class=${w(g.rampContainer)} ${Ee(C=>{C?.firstChild&&C?.firstChild?.remove(),C?.appendChild(h)})}></div></div><div class=${w(g.layerInfo)}><div class=${w(g.rampLabelsContainer)} style=${E({...x})}>${$}</div></div></div>`}renderLegendForElementInfo(t,s,c,n,r,u,h,_,$,P){if("infos"in t)return this.renderLegendForElement(t,s,c,u,h,!0,t);let x=null,C=!ht(s,r.type);if("preview"in t){let{outerHTML:G}=t.preview;x=L`<div class=${w(g.symbol)} .innerHTML=${G??""}></div>`}else"src"in t&&(x=this.renderImage(t,s,C));if(!x)return null;let S="",I=n?` ${g.sizeRamp}`:"",z,R=He(s),M=qe(R,P);if(B.data){let G=Ue(R,s,t,M,_),te=M?M?.nestedInfos:R,pe=Be(te);z=R?.categories?.size===1?!G?.selected:pe||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=${`${g.layerRow} ${g.interactiveLayerRow}${z?` ${g.infoSelected}`:""}`} title=${(Q?`${H}`:void 0)??ce} .ariaPressed=${z?"true":"false"}><div class=${`${g.symbolContainer}${S}${I}`}>${x}</div><div class=${`${g.layerInfo}${S}`}>${this.getTitle(D,!1)||""}</div>${this.featureCount&&!Q?L`<instant-apps-interactive-legend-count class=${w(Y(this.el))} .categoryId=${F} .activeLayerInfo=${u} .legendvm=${this.legendvm} .selected=${!!z} .legendElement=${r} .infoIndex=${_}></instant-apps-interactive-legend-count>`:null}</button>`:L`<div class=${w(g.layerRow)}><div class=${`${g.symbolContainer}${S}${I}`}>${x}</div><div class=${`${g.layerInfo}${S}`}>${H}</div></div>`}renderImage(t,s,c){let{label:n,src:r,opacity:u}=t,h=c?` ${g.imageryLayerStretchedImage}`:"",_=c?"":` ${g.symbol}`,$={opacity:`${u??s.opacity}`};return L`<img alt=${this.getTitle(n,!1)??ce} src=${r??ce} width=${t.width} height=${t.height} class=${`$${h}${_}`} style=${E($)}>`}};Ie("instant-apps-interactive-legend-classic",we);return we},a,b,c)
3
+ v1.2.0-next.26 */
4
+ import c from"./7IOXGCXM.js";import b from"./WBTYMW42.js";import"./HFRCOLMH.js";import a from"./BLC5IKHB.js";import{a as K}from"./ITJXBRWP.js";import{C as Te,E as Fe,c as ze,z as Pe}from"./QKALFXP5.js";import{b as Ie}from"./PLADJNNW.js";import"./DVB6GNMC.js";import{D as Ee,E as Se,G as w,H as E,h as ke,i as L,j as ue,l as ce,r as Re}from"./VYZBZ6Y7.js";import{b as lt,d as ct}from"./GTPA67XZ.js";export default $arcgis.t(([,{a:B,b:W},{a:Me,b:oe,d:Ue,e:He,f:he,g:Be,i:De,o:de,s:qe,t:Y,u:me,v:We,w:Ge}])=>{var Ke=lt((fe,Je)=>{(function(b,t){typeof fe=="object"&&typeof Je<"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"),c="".concat(t,"1999/xlink"),n=[],r=function(e,i){var a={};return Object.keys(e).forEach(function(l){a[l]=e[l]}),i&&Object.keys(i).forEach(function(l){a[l]=i[l]}),a},u=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},h=function(e){if(typeof e!="string")throw new Error("Style values must be strings")},_=function(e,i,a){if(i.vnodeSelector!==""){for(var l=a;l<e.length;l++)if(u(e[l],i))return l}return-1},$=function(e,i,a,l){var p=e[i];if(p.vnodeSelector!==""){var o=p.properties,A=o?o.key===void 0?o.bind:o.key:void 0;if(!A){for(var f=0;f<e.length;f++)if(f!==i){var d=e[f];if(u(d,p))throw{error:new Error("".concat(a.vnodeSelector," had a ").concat(p.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:a,childNode:p}}}}},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])},I=function(){C=!1,x.forEach(S),x.length=0},z=function(e){x.push(e),C||(C=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(I,{timeout:16}):setTimeout(I,16))},R=function(e){var i=e.domNode;if(e.properties){var a=e.properties.exitAnimation;if(a){i.style.pointerEvents="none";var l=function(){i.parentNode&&(i.parentNode.removeChild(i),z(e))};a(i,l,e.properties);return}}i.parentNode&&(i.parentNode.removeChild(i),z(e))},M=["afterCreate","afterUpdate","afterRemoved","enterAnimation","exitAnimation","updateAnimation"];function D(e){return!M.includes(e)}var ee=function(e,i,a){if(i)for(var l=a.eventHandlerInterceptor,p=Object.keys(i).filter(D),o=p.length,A=0;A<o;A++){var f=p[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&&(h(O),a.styleApplyer(e,J,O))}else if(f==="on"&&d)for(var ne=0,re=Object.entries(i.on);ne<re.length;ne++){var se=re[ne],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):a.namespace===s?f==="href"?e.setAttributeNS(c,f,d):e.setAttribute(f,d):le==="string"&&f!=="value"&&f!=="innerHTML"?e.setAttribute(f,d):e[f]=d}}},Q=function(e,i,a){if(i)for(var l=0,p=i;l<p.length;l++){var o=p[l];F(o,e,void 0,a)}},H=function(e,i,a){Q(e,i.children,a),i.text&&(e.textContent=i.text),ee(e,i.properties,a),i.properties&&i.properties.afterCreate&&i.properties.afterCreate.apply(i.properties.bind||i.properties,[e,a,i.vnodeSelector,i.properties,i.children])},F=function(e,i,a,l){var p,o,A=0,f=e.vnodeSelector,d=i.ownerDocument;if(f==="")e.domNode?e.domNode.nodeValue=e.text:(o=e.domNode=d.createTextNode(e.text),a!==void 0?i.insertBefore(o,a):i.appendChild(o));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==="."?o.classList.add(m):y==="#"?o.id=m:(m==="svg"&&(l=r(l,{namespace:s})),l.namespace!==void 0?o=e.domNode=d.createElementNS(l.namespace,m):(o=e.domNode=e.domNode||(!((p=e.properties)===null||p===void 0)&&p.is?d.createElement(m,{is:e.properties.is}):d.createElement(m)),m==="input"&&e.properties&&e.properties.type!==void 0&&o.setAttribute("type",e.properties.type)),a!==void 0?i.insertBefore(o,a):o.parentNode!==i&&i.appendChild(o)),A=v+1}}H(o,e,l)}},G,te=function(e,i,a){i&&i.split(" ").forEach(function(l){l&&e.classList.toggle(l,a)})},pe=function(e,i,a,l){if(a){for(var p=!1,o=Object.keys(a).filter(D),A=o.length,f=0;f<A;f++){var d=o[f],v=a[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],ne=!!k[J];O!==ne&&(p=!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&&(p=!0,q?(h(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&&(p=!0)}else if(v!==k){var Ce=typeof v;(Ce!=="function"||!l.eventHandlerInterceptor)&&(l.namespace===s?d==="href"?e.setAttributeNS(c,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),p=!0)}}return p}},Ne=function(e,i,a,l,p){if(a===l)return!1;a=a||n,l=l||n;for(var o=a.length,A=l.length,f=0,d=0,v,k=!1;d<A;){var y=f<o?a[f]:void 0,m=l[d];if(y!==void 0&&u(y,m))k=G(y,m,p,i,a)||k,f++;else{var U=_(a,m,f+1);if(U>=0){for(v=f;v<U;v++)R(a[v]),$(a,v,e,"removed");k=G(a[U],m,p,i,a)||k,f=U+1}else F(m,i,f<o?a[f].domNode:void 0,p),P(m),$(l,d,e,"added")}d++}if(o>f)for(v=f;v<o;v++)R(a[v]),$(a,v,e,"removed");return k};G=function(e,i,a,l,p){var o=e.domNode,A=!1;if(e===i)return!1;var f=!1;if(i.vnodeSelector===""){if(i.text!==e.text){var d=o.ownerDocument.createTextNode(i.text);try{l.replaceChild(d,o)}catch{l.replaceChild(d,l.childNodes[p.indexOf(e)])}return i.domNode=d,A=!0,A}i.domNode=o}else i.vnodeSelector.lastIndexOf("svg",0)===0&&(a=r(a,{namespace:s})),e.text!==i.text&&(f=!0,i.text===void 0?o.removeChild(o.firstChild):o.textContent=i.text),i.domNode=o,f=Ne(i,o,e.children,i.children,a)||f,f=pe(o,e.properties,i.properties,a)||f,i.properties&&i.properties.afterUpdate&&i.properties.afterUpdate.apply(i.properties.bind||i.properties,[o,a,i.vnodeSelector,i.properties,i.children]);return f&&i.properties&&i.properties.updateAnimation&&i.properties.updateAnimation(o,i.properties,e.properties),A};var ie=function(e,i){return{getLastRender:function(){return e},update:function(a){if(e.vnodeSelector!==a.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=a,G(l,a,i,l.domNode.parentNode,[l])},domNode:e.domNode}},je={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,i,a){i.charAt(0)==="-"?e.style.setProperty(i,a):e.style[i]=a}},Z=function(e){return r(je,e)},ae={create:function(e,i){return i=Z(i),F(e,document.createElement("div"),void 0,i),ie(e,i)},append:function(e,i,a){return a=Z(a),F(i,e,void 0,a),ie(i,a)},insertBefore:function(e,i,a){return a=Z(a),F(i,e.parentNode,e,a),ie(i,a)},merge:function(e,i,a){return a=Z(a),i.domNode=e,H(e,i,a),ie(i,a)},replace:function(e,i,a){return a=Z(a),F(i,e.parentNode,e,a),e.parentNode.removeChild(e),ie(i,a)}},Ve=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},xe=function(e,i,a){for(var l=0,p=i.length;l<p;l++){var o=i[l];Array.isArray(o)?xe(e,o,a):o!=null&&o!==!1&&(typeof o=="string"&&(o=Ve(o)),a.push(o))}};function et(e,i,a){if(Array.isArray(i))a=i,i=void 0;else if(i&&(typeof i=="string"||i.vnodeSelector)||a&&(typeof a=="string"||a.vnodeSelector))throw new Error("h called with invalid arguments");var l,p;return a&&a.length===1&&typeof a[0]=="string"?l=a[0]:a&&(p=[],xe(e,a,p),p.length===0&&(p=void 0)),{vnodeSelector:e,properties:i,children:p,text:l===""?void 0:l,domNode:null}}var tt=function(e,i){for(var a=[];e&&e!==i;)a.push(e),e=e.parentNode;return a},ge;Array.prototype.find?ge=function(e,i){return e.find(i)}:ge=function(e,i){return e.filter(i)[0]};var it=function(e,i){var a=e;return i.forEach(function(l){a=a&&a.children?ge(a.children,function(p){return p.domNode===l}):void 0}),a},at=function(e,i,a){return function(p,o,A,f){return l};function l(p){var o,A;a("domEvent",p);var f=i(),d=tt(p.currentTarget,f.domNode);d.reverse();var v=it(f.getLastRender(),d);e.scheduleRender();var k;if(v){var y=(A=(o=v.properties["on".concat(p.type)])!==null&&o!==void 0?o:v.properties.on[p.type].listener)!==null&&A!==void 0?A:v.properties.on[p.type];k=y.apply(v.properties.bind||this,arguments)}return a("domEventProcessed",p),k}},nt=function(e){var i,a=Z(e),l=a.performanceLogger,p=!0,o,A=!1,f=[],d=[],v=function(y,m,U){var T,J=function(){return T};a.eventHandlerInterceptor=at(i,J,l),T=y(m,U(),a),f.push(T),d.push(U)},k=function(){if(o=void 0,!!p){p=!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),p=!0}};return i={renderNow:k,scheduleRender:function(){!o&&!A&&(o=requestAnimationFrame(k))},stop:function(){o&&(cancelAnimationFrame(o),o=void 0),A=!0},resume:function(){A=!1,p=!0,i.scheduleRender()},append:function(y,m){v(ae.append,y,m)},insertBefore:function(y,m){v(ae.insertBefore,y,m)},merge:function(y,m){v(ae.merge,y,m)},replace:function(y,m){v(ae.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},rt=function(){var e,i;return{invalidate:function(){i=void 0,e=void 0},result:function(a,l){if(e)for(var p=0;p<a.length;p++)e[p]!==a[p]&&(i=void 0);return i||(i=l(),e=a),i}}},st=function(e,i,a){var l=[],p=[];return{results:p,map:function(o){for(var A=o.map(e),f=p.slice(),d=0,v=0;v<o.length;v++){var k=o[v],y=A[v];if(y===l[d])p[v]=f[d],a(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){p[v]=f[T],a(o[v],f[T],v),d=T+1,m=!0;break}}m||(p[v]=i(k,v))}}p.length=o.length,l=A}}};b.createCache=rt,b.createMapping=st,b.createProjector=nt,b.dom=ae,b.h=et}))});var Qe=ct(Ke(),1);var ot=96;function V(b){return b?b/72*ot:0}var dt=(0,Qe.createProjector)(),Ze=10,_e=20,ve=10,Le=20,Ae={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function ft(b="vertical"){let t={stroke:"rgb(200, 200, 200)",strokeWidth:"1"};return b==="vertical"?L`<svg height=4 width=10>${ue`<line x1=0 y1=2 x2=10 y2=2 style=${E(t)} />`}</svg>`:L`<svg height=10 width=10>${ue`<line x1=5 y1=0 x2=5 y2=10 style=${E(t)} />`}</svg>`}function vt(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()),dt.append(s,ft.bind(null,t)),s}function Oe(b,t,s="vertical",c){b.infos.forEach((n,r)=>{if(c&&r===2)n.preview=vt(t,s);else{let{size:u}=n,h=V(u)+(s==="horizontal"?Le:ve),_=n.preview.tagName.toLowerCase()==="div",$=_?n.preview:document.createElement("div");$&&($.className=Ae.univariateAboveAndBelowSymbol),s==="horizontal"?$&&($.style.width=`${h}px`):$&&($.style.height=`${h}px`),_||$&&$.appendChild(n.preview),n.preview=$}})}function Xe(b,t="classic"){let s=b.infos,c=s[0].size,n=s[s.length-1].size;return t==="classic"?(V(c)+ve)/2:(V(c)-V(n))/2}function ye(b,t,s){if(!b)return null;let c=b.infos.map(r=>r.color),n=t.renderColorRampPreviewHTML(s.type==="full"?c:s.type==="above"?c.slice(0,3):c.slice(2,5),{width:s.width,height:s.height,align:s.rampAlignment,effectList:s.effectList});return n.className=Ae.colorRamp,s.opacity!=null&&(n.style.opacity=s.opacity.toString()),n}function pt(b,t,s,c="vertical"){let n=0,r=b.infos,u=Math.floor(r.length/2),h=t==="full"||t==="above"?0:u,_=t==="full"||t==="below"?r.length-1:u;for(let $=h;$<=_;$++)if(s&&$===u)n+=c==="horizontal"?Ze:_e;else{let P=r[$].size,x=V(P)+(c==="horizontal"?Le:ve);n+=x}return Math.round(n)}function $e(b,t,s,c="vertical"){let n=pt(b,t,s,c),r=b.infos,u=Math.floor(r.length/2),h=t==="full"||t==="above"?0:u,_=t==="full"||t==="below"?r.length-1:u,$=t==="full"?r[h].size+r[_].size:t==="above"?r[h].size:r[_].size,P=s?c==="vertical"?_e:Ze:0,x=c==="vertical"?ve*(t==="full"?2:1):Le*(t==="full"?2:1);return Math.round(n-(V($)/2+P/2+x/2))}function gt(b,t,s="vertical"){let c=b.infos,n=c.find(({type:u})=>u==="size-ramp"),r=c.find(({type:u})=>u==="color-ramp");return n&&(n={...n},n.infos=[...n.infos],Oe(n,t,s,!0)),r&&(r={...r},r.infos=[...r.infos]),s==="horizontal"&&(n?.infos.reverse(),r?.infos.reverse()),{sizeRampElement:n,colorRampElement:r}}function ut(b,t="vertical"){let s=b.infos,c=s.find(({type:r})=>r==="size-ramp"),n=s.find(({type:r})=>r==="color-ramp");return c&&(c={...c},c.infos=[...c.infos],Oe(c,null,t,!1)),n&&(n={...n},n.infos=[...n.infos]),t==="horizontal"&&(c?.infos.reverse(),n?.infos.reverse()),{sizeRampElement:c,colorRampElement:n}}function ht(b,t){return!0}var mt=ke`@layer{instant-apps-interactive-legend-classic{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}instant-apps-interactive-legend-classic .esri-legend__service{padding:0}instant-apps-interactive-legend-classic .esri-legend__layer-body,instant-apps-interactive-legend-classic .esri-legend__layer,instant-apps-interactive-legend-classic .esri-legend__layer-table,instant-apps-interactive-legend-classic .esri-legend__group-layer-child,instant-apps-interactive-legend-classic .esri-legend__layer-child-table{margin:0;overflow:hidden}instant-apps-interactive-legend-classic .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)}instant-apps-interactive-legend-classic .esri-legend__layer-caption calcite-action{margin-right:5px}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-caption-btn-container{white-space:nowrap}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}instant-apps-interactive-legend-classic .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}instant-apps-interactive-legend-classic .esri-legend__layer-cell.esri-legend__layer-cell--info{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}instant-apps-interactive-legend-classic .esri-legend__layer-cell,instant-apps-interactive-legend-classic .esri-legend__layer-row{display:flex;align-items:center}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive .esri-legend__layer-body{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol>.esri-legend__layer-body{margin:0}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive .esri-legend__layer-row{display:table-row}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__non-interactive .esri-legend__layer-cell{display:table-cell}instant-apps-interactive-legend-classic .esri-legend__layer-cell--symbols{justify-content:center;width:20%}instant-apps-interactive-legend-classic .esri-legend__layer-cell--info{width:65%}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive{margin:1px;background:transparent;border:none;width:100%}instant-apps-interactive-legend-classic .esri-legend__layer-cell--info{color:var(--instant-apps-interactive-legend-secondary-color)}instant-apps-interactive-legend-classic .esri-legend__layer-row,instant-apps-interactive-legend-classic .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive{position:relative}instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected .esri-legend__layer-cell--info{color:var(--calcite-color-text-inverse)}instant-apps-interactive-legend-classic .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){instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive{cursor:pointer}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}instant-apps-interactive-legend-classic .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}}`,g={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"},yt=24,Ye={display:"flex",alignItems:"flex-start"},be={marginLeft:"3px"},j={display:"table-cell",verticalAlign:"middle"},we=class extends Se{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=mt}static{this.shadowRootOptions=Re}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([Te(),Pe()]),c=await Fe();this.reactiveUtils=s,this.intl=t,this.symbolUtils=c}willUpdate(t){t.has("filterMode")&&this.legendvm?.view&&(this.hasUpdated||this.filterMode.type!=="filter")&&We(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 c=s?.allLayers?.map(async h=>await h.load()),n=(await Promise.allSettled(c)).map(h=>h?.status==="fulfilled"&&h?.value?h.value:null).filter(h=>!!h),r=[];n.forEach(h=>{this.legendvm?.view&&r.push(this.legendvm.view.whenLayerView(h))}),await Promise.allSettled(r);let u=await oe(this.legendvm,this.reactiveUtils);W.set("data",{...B.data,...u}),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:u}=t,h=this.messages[r],_=typeof this.messages[u]=="string"?this.messages[u]:u;return`${h}: ${_}`}if("showCount"in t)return t.showCount?this.messages.clusterCountTitle:null;let c=null;if(s){let r=t;c=r.ratioPercentTotal?"showRatioPercentTotal":r.ratioPercent?"showRatioPercent":r.ratio?"showRatio":t.normField?"showNormField":t.field?"showField":null}else if(this.isRendererTitle(s)){let r=t;c=r.normField?"showNormField":r.normByPct?"showNormPct":r.field?"showField":null}let n=c==="showField"?"{field}":typeof c=="string"?this.messages[c]:"";return c?this.intl?.substitute(n,{field:t.field,normField:t.normField}):""}isRendererTitle(t){return!t}async setupWatchersAndListeners(){let t=this.legendvm?.view?.map?.allLayers?.filter(n=>n?.type==="feature"),s=[];for(let n of t)this.legendvm?.view&&s.push(this.legendvm?.view?.whenLayerView(n));let c=[];try{c=await Promise.all(s)}catch(n){console.error(n)}for(let n of c){let r=`fLayerViewScale-${n.layer.id}`;!this.handles?.has(r)&&n&&this.handles?.add(n.watch("visibleAtCurrentScale",()=>{this.createDataForLayer(n.layer).catch(u=>{console.error(u)})}),r)}t?.forEach(n=>{let r=`fLayer-${n?.id}`;this.handles?.has(r)||this.handles?.add(this.reactiveUtils?.watch(()=>n?.visible,()=>{this.createDataForLayer(n).catch(u=>{console.error(u)})}),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(n=>{W.set("data",{...B.data,...n}),this.calculatingFeatureCount=!1}).catch(n=>{console.error(n)})},{once:!0,initial:!0}))},{initial:!0})},{initial:!0,once:!0})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.activeLayerInfos,"change",n=>{oe(this.legendvm,this.reactiveUtils).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).then(()=>{this.handles?.add(this.reactiveUtils.on(()=>n.children,"change",()=>{oe(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(n=>{W.set("data",{...B.data,...n}),this.calculatingFeatureCount=!1}).catch(n=>{console.error(n)})}))}async createDataForLayer(t){let s=W.get("data")?.[t?.id],c=Ge(this.legendvm?.activeLayerInfos)?.find(n=>n?.layer?.id===t?.id);if(!s&&c){let n=await Me(this.legendvm,c,this.reactiveUtils);if(me({intLegendLayerData:n,layerId:t?.id}),this.featureCount){let r=await de(this.legendvm,B.data);W.set("data",{...B.data,...r})}}}applyFilter(t,s,c,n){return async()=>{let r={...B.data?.[s?.id]};n?await he(r,t,c,this.filterMode,n):await he(r,t,c,this.filterMode),me({intLegendLayerData:r,layerId:s?.id})}}render(){let t=this.renderFilteredLayers(),s=W.get("compact")?` ${g.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(g.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(u=>this.renderLegendForLayer(u,!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 c=t.legendElements;if(c&&!c.length)return null;let n=c.map((r,u)=>this.renderLegendForElement(r,t.layer,t.effectList,t,u)).filter(r=>!!r);return n.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(g.layer)}>${n}</div></instant-apps-interactive-legend-layer-element>`:null}renderLegendForElement(t,s,c,n,r,u,h){let _=t.type==="color-ramp",$=t.type==="opacity-ramp",P=t.type==="size-ramp",x=null,C=De(n,t,r),S=t?.type==="relationship-ramp";if(t.type==="symbol-table"||P){let R=t.infos.map((M,D)=>this.renderLegendForElementInfo(M,s,c,P,t,n,r,D,C,h)).filter(M=>!!M);R.length&&(x=L`<div class=${w(g.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=${n} .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,c)}else if(t.type==="univariate-color-size-ramp"){let R=t;x=this.renderUnivariateColorSizeRamp(R,s.opacity,c)}if(!x)return null;let I=t.title,z=null;if(typeof I=="string")z=I;else if(I){let R=I,M=this.getTitle(R,_||$);this.isRendererTitle(_||$)?"title"in I&&(z=`${I.title} (${M})`):z=M}return L`<instant-apps-interactive-legend-legend-element class=${w(Y(this.el))} .activeLayerInfo=${n} .isSizeRamp=${P} .isChild=${!!u} .isColorRamp=${_} .isRelationshipRamp=${S} .isInteractive=${C} .zoomTo=${this.zoomTo} .legendElement=${t} .titleText=${z} .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,c){let{sizeRampElement:n,colorRampElement:r}=gt(t,s);if(!n)return null;let u=$e(n,"above",!0),h=$e(n,"below",!0),_=12,$=ye(r,this.symbolUtils,{width:_,height:u,rampAlignment:"vertical",opacity:s,type:"above",effectList:c}),P=ye(r,this.symbolUtils,{width:_,height:h,rampAlignment:"vertical",opacity:s,type:"below",effectList:c}),x=Xe(n),C=n.infos.map(H=>H.label),S=C.map((H,F)=>F===0?L`<div class=${w(H?$?g.univariateAboveAndBelowLabel:g.rampLabel:"")}>${H}</div>`:F===2?L`<div></div>`:null),I=C.length-1,z=Math.floor(C.length/2),R=C.map((H,F)=>F===z||F===I?L`<div class=${w(H?$?g.univariateAboveAndBelowLabel:g.rampLabel:"")}>${H}</div>`:null),M={display:"table-cell",verticalAlign:"middle"},D={marginTop:`${x}px`},ee={height:`${u}px`},Q={height:`${h}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Ye)}><div class=${w(g.layerBody)}>${n.infos.map((H,F)=>L`<div class=${`${g.layerRow} ${g.sizeRamp}`}><div class=${w(g.symbol)} style=${E(M)} .innerHTML=${H?.preview?.outerHTML??""??""}></div>${!$&&F%2===0?L`<div class=${w(g.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(g.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(g.rampLabelsContainer)} style=${E(ee)}>${S}</div></div></div><div style=${E(be)}><div style=${E(j)}><div class=${w(g.rampContainer)}>${P}</div></div><div style=${E(j)}><div class=${w(g.rampLabelsContainer)} style=${E(Q)}>${R}</div></div></div></div>`):null}</div>`)}renderUnivariateColorSizeRamp(t,s,c){let{sizeRampElement:n,colorRampElement:r}=ut(t);if(!n)return null;let u=Xe(n),h=12,_=$e(n,"full",!1),$=ye(r,this.symbolUtils,{width:h,height:_,rampAlignment:"vertical",opacity:s,type:"full",effectList:c}),P=n.infos.length-1,x=n.infos.map((z,R)=>R===0||R===P?L`<div class=${w(z.label?r?g.univariateAboveAndBelowLabel:g.rampLabel:"")}>${z.label}</div>`:null),C={display:"table-cell",verticalAlign:"middle"},S={marginTop:`${u}px`},I={height:`${_}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Ye)}><div class=${w(g.layerBody)}>${n.infos.map(z=>L`<div class=${`${g.layerRow} ${g.sizeRamp}`}><div class=${w(g.symbol)} style=${E(C)} .innerHTML=${z?.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(g.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(g.rampLabelsContainer)} style=${E(I)}>${x}</div></div></div></div>`)}</div>`)}renderLegendForRamp(t,s){let c=t.infos,n=t.type==="opacity-ramp",r=t.type==="heatmap-ramp",u=t.type==="stretch-ramp",h=t.preview,_=n?g.opacityRamp:"";h&&(h.classList.add(g.colorRamp),_&&h.classList.add(_)),s!=null&&h&&(h.style.opacity=s.toString());let $=c.map(C=>{let S;if(r){let I=this.messages[C.label];S=typeof I=="string"?I:C.label}else u?S="value"in C?this.getStretchStopLabel(C):C.label:S=C.label;return L`<div class=${w(C.label?g.rampLabel:"")}>${S}</div>`}),P={width:`${yt}px`},x={height:h?.style?.height};return L`<div class=${w(g.layerRow)}><div class=${w(g.symbolContainer)} style=${E({...P})}><div class=${w(g.rampContainer)} ${Ee(C=>{C?.firstChild&&C?.firstChild?.remove(),C?.appendChild(h)})}></div></div><div class=${w(g.layerInfo)}><div class=${w(g.rampLabelsContainer)} style=${E({...x})}>${$}</div></div></div>`}renderLegendForElementInfo(t,s,c,n,r,u,h,_,$,P){if("infos"in t)return this.renderLegendForElement(t,s,c,u,h,!0,t);let x=null,C=!ht(s,r.type);if("preview"in t){let{outerHTML:G}=t.preview;x=L`<div class=${w(g.symbol)} .innerHTML=${G??""}></div>`}else"src"in t&&(x=this.renderImage(t,s,C));if(!x)return null;let S="",I=n?` ${g.sizeRamp}`:"",z,R=He(s),M=qe(R,P);if(B.data){let G=Ue(R,s,t,M,_),te=M?M?.nestedInfos:R,pe=Be(te);z=R?.categories?.size===1?!G?.selected:pe||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=${`${g.layerRow} ${g.interactiveLayerRow}${z?` ${g.infoSelected}`:""}`} title=${(Q?`${H}`:void 0)??ce} .ariaPressed=${z?"true":"false"}><div class=${`${g.symbolContainer}${S}${I}`}>${x}</div><div class=${`${g.layerInfo}${S}`}>${this.getTitle(D,!1)||""}</div>${this.featureCount&&!Q?L`<instant-apps-interactive-legend-count class=${w(Y(this.el))} .categoryId=${F} .activeLayerInfo=${u} .legendvm=${this.legendvm} .selected=${!!z} .legendElement=${r} .infoIndex=${_}></instant-apps-interactive-legend-count>`:null}</button>`:L`<div class=${w(g.layerRow)}><div class=${`${g.symbolContainer}${S}${I}`}>${x}</div><div class=${`${g.layerInfo}${S}`}>${H}</div></div>`}renderImage(t,s,c){let{label:n,src:r,opacity:u}=t,h=c?` ${g.imageryLayerStretchedImage}`:"",_=c?"":` ${g.symbol}`,$={opacity:`${u??s.opacity}`};return L`<img alt=${this.getTitle(n,!1)??ce} src=${r??ce} width=${t.width} height=${t.height} class=${`$${h}${_}`} style=${E($)}>`}};Ie("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.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import e from"./NEDCAXJL.js";import c from"./OYGODC65.js";import"./5NLABLUG.js";import b from"./GWYYMTWP.js";import"./BF6B5YPC.js";import{b as l}from"./4QNOYSPY.js";import"./5TKI4FG4.js";import{C as i,D as n,E as r,G as o,H as d,h as s,i as a}from"./6WW2DA2G.js";import"./EAS42GZC.js";export default $arcgis.t(([,,{t:p}])=>{var c=s`:host{display:block}:host .esri-legend__service{margin:0;padding:0}:host .hide{display:none}`,e={service:"esri-legend__service",groupLayer:"esri-legend__group-layer",groupContent:"esri-legend__group-content"},t=class extends r{constructor(){super(),this.layerCaption=i(),this.expanded=!0,this.isChild=!1,this.listenOn(window,"layerCaptionElementExpandUpdated",this.layerCaptionElementExpandUpdatedEmitted)}static{this.properties={expanded:16,legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5}}static{this.styles=c}load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0})}layerCaptionElementExpandUpdatedEmitted(){this.expanded=!!this.layerCaption.value?.expanded}render(){return a`<div style=${d({borderLeft:"1px solid var(--calcite-color-border-3)"})} class=${`${e.service} ${e.groupLayer}`}><instant-apps-interactive-legend-layer-element-caption class=${o(p(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${this.activeLayerInfo} .isChild=${this.isChild} ${n(this.layerCaption)}></instant-apps-interactive-legend-layer-element-caption><div class=${`${e.groupContent} ${this.expanded?"show":"hide"}`}><slot name=content></slot></div></div>`}};l("instant-apps-interactive-legend-group-legend-element",t);return t},b,c,e)
3
+ v1.2.0-next.26 */
4
+ import e from"./7IOXGCXM.js";import c from"./WBTYMW42.js";import"./HFRCOLMH.js";import b from"./BLC5IKHB.js";import"./QKALFXP5.js";import{b as l}from"./PLADJNNW.js";import"./DVB6GNMC.js";import{C as i,D as n,E as r,G as o,H as d,h as s,i as a}from"./VYZBZ6Y7.js";import"./GTPA67XZ.js";export default $arcgis.t(([,,{t:p}])=>{var c=s`:host{display:block}:host .esri-legend__service{margin:0;padding:0}:host .hide{display:none}`,e={service:"esri-legend__service",groupLayer:"esri-legend__group-layer",groupContent:"esri-legend__group-content"},t=class extends r{constructor(){super(),this.layerCaption=i(),this.expanded=!0,this.isChild=!1,this.listenOn(window,"layerCaptionElementExpandUpdated",this.layerCaptionElementExpandUpdatedEmitted)}static{this.properties={expanded:16,legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5}}static{this.styles=c}load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0})}layerCaptionElementExpandUpdatedEmitted(){this.expanded=!!this.layerCaption.value?.expanded}render(){return a`<div style=${d({borderLeft:"1px solid var(--calcite-color-border-3)"})} class=${`${e.service} ${e.groupLayer}`}><instant-apps-interactive-legend-layer-element-caption class=${o(p(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${this.activeLayerInfo} .isChild=${this.isChild} ${n(this.layerCaption)}></instant-apps-interactive-legend-layer-element-caption><div class=${`${e.groupContent} ${this.expanded?"show":"hide"}`}><slot name=content></slot></div></div>`}};l("instant-apps-interactive-legend-group-legend-element",t);return t},b,c,e)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import{a as u}from"./TO6ZG5LX.js";import{a as m}from"./JGT3UVSS.js";import{b as d}from"./4QNOYSPY.js";import"./TNHXSGP4.js";import"./5TKI4FG4.js";import{E as p,G as n,g as c,h as r,i as e,o as h}from"./6WW2DA2G.js";import"./EAS42GZC.js";function f(s){return s==null||typeof s!="function"?null:new s({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"]}},!0)}function g(s){window?.localStorage.setItem(s,"false")}function b(s){return!!window?.localStorage?.getItem(s)}function _(s){window?.localStorage?.removeItem(s)}var x=r`:host{--instant-apps-splash-content-max-height: 100%;--instant-apps-splash-back-content-display: flex;display:block}:host .image.image_resized img{width:100%}:host .instant-apps-splash__back-content{display:var(--instant-apps-splash-back-content-display);align-items:center}:host .instant-apps-splash__back-content calcite-label{--calcite-label-margin-bottom: 0}:host .instant-apps-splash__content{max-height:var(--instant-apps-splash-content-max-height)}:host .instant-apps-splash__confirmation-tooltip{display:inline-block;max-width:200px;word-wrap:break-word}:host .instant-apps-splash__required{display:inline-block;margin-inline-start:var(--calcite-spacing-xxs);color:var(--calcite-color-status-danger)}:host .instant-apps-splash__footer{width:100%;display:flex;justify-content:space-between}:host .instant-apps-splash__button-container{display:flex}:host .instant-apps-splash__button-container calcite-button:not(:last-child){margin-inline-end:var(--calcite-spacing-sm)}@media (max-width: 816px){:host .instant-apps-splash__footer{justify-content:flex-start;flex-direction:column}:host .instant-apps-splash__back-content{margin-bottom:var(--calcite-spacing-sm)}:host .instant-apps-splash__back-content span{display:flex;align-items:center}:host .instant-apps-splash__button-container{width:100%;gap:var(--calcite-spacing-sm);justify-content:space-between}:host .instant-apps-splash__button-container calcite-button:not(:last-child){margin-inline-end:0}:host .instant-apps-splash__button-container>*{flex:1 1 0;min-width:0}}`,a={back:"instant-apps-splash__back-content",confirmationTooltip:"instant-apps-splash__confirmation-tooltip",requiredText:"instant-apps-splash__required",footer:"instant-apps-splash__footer",buttonContainer:"instant-apps-splash__button-container"},l=class extends p{constructor(){super(...arguments),this._messages=m({name:"instant-apps-splash"}),this._sanitizer=f(u),this.titleText="",this.content="",this.primaryButtonText="",this.open=!0,this.closeButtonDisabled=!1,this.outsideCloseDisabled=!1,this.secondaryButton=!1,this.closeBehavior="permanent-dismissal",this.confirmationText="",this.isConfirmed=!1,this.splashClose=h()}static{this.properties={localStorageKey:1,titleText:1,content:1,primaryButtonText:1,open:5,closeButtonDisabled:5,outsideCloseDisabled:5,secondaryButton:5,secondaryButtonText:1,secondaryButtonIcon:1,secondaryButtonCallback:0,closeBehavior:1,confirmationText:1,isConfirmed:32}}static{this.styles=x}load(){let t;if(this.closeBehavior==="confirmation"||this.closeBehavior==="dismissal")t=!0;else{let{localStorageKey:i}=this;i?t=this.open&&!b(i):t=this.open}this.el.open=t,this.content&&this._sanitizer&&this.sanitizeContent()}willUpdate(t){t.has("content")&&this.sanitizeContent()}sanitizeContent(){this.content=this._sanitizer.sanitize(this.content)}close(){this.open=!1,this.splashClose.emit()}getCheckboxText(){return this.closeBehavior==="confirmation"?this.confirmationText?this.confirmationText:`${this._messages.confirmationText}`:this._messages?.dontShowThisAgain}handleDontShowThisAgain(t){if(this.closeBehavior==="confirmation"){let i=t.target,{checked:o}=i;c(()=>{this.isConfirmed=o})}else if(this.closeBehavior==="permanent-dismissal"){let{localStorageKey:i}=this;if(!i)return;let o=t.target,{checked:y}=o;y?g(i):_(i)}}render(){return e`<calcite-dialog .open=${this.open} .focusTrapOptions=${{allowOutsideClick:!0}} modal .heading=${this.titleText} aria-describedby=description @calciteDialogClose=${this.close} .closeDisabled=${this.closeBehavior==="confirmation"||this.closeButtonDisabled} .outsideCloseDisabled=${this.closeBehavior==="confirmation"||this.outsideCloseDisabled} .escapeDisabled=${this.closeBehavior==="confirmation"}><div id=description .innerHTML=${this.content??""}></div><slot name=custom-action></slot><div class=${n(a.footer)} slot=footer>${this.localStorageKey&&this.closeBehavior==="permanent-dismissal"||this.closeBehavior==="confirmation"?this.renderCheckbox():null}<div class=${n(a.buttonContainer)}>${this.secondaryButton?this.renderSecondaryButton():null}${this.renderPrimaryButton()}</div>${this.closeBehavior==="confirmation"&&!this.isConfirmed&&e`<calcite-tooltip reference-element=primary-button overlay-positioning=fixed placement=top><span class=${n(a.confirmationTooltip)}>${this._messages?.confirmationTooltip}</span></calcite-tooltip>`||""}</div></calcite-dialog>`}renderCheckbox(){let{localStorageKey:t}=this,i=this.closeBehavior!=="confirmation"&&t&&b(t)?!0:null;return e`<div class=${n(a.back)}><calcite-label layout=inline><calcite-checkbox @calciteCheckboxChange=${this.handleDontShowThisAgain} .checked=${i??void 0}></calcite-checkbox><span>${this.getCheckboxText()}<span class=${n(a.requiredText)}>${this.closeBehavior==="confirmation"&&`(${this._messages?.required})`||""}</span></span></calcite-label></div>`}renderPrimaryButton(){let{primaryButtonText:t}=this;return e`<calcite-button id=primary-button @click=${this.close} slot=footer-end .disabled=${this.closeBehavior==="confirmation"?!this.isConfirmed:!1}>${t||this._messages?.enter}</calcite-button>`}renderSecondaryButton(){return e`<calcite-button @click=${this.secondaryButtonCallback} slot=footer-end .iconStart=${this.secondaryButtonIcon} appearance=outline .disabled=${this.closeBehavior==="confirmation"?!this.isConfirmed:!1}>${this.secondaryButtonText}</calcite-button>`}};d("instant-apps-splash",l);export{l as InstantAppsSplash};
3
+ v1.2.0-next.26 */
4
+ import{a as u}from"./S7WZDGWE.js";import{a as m}from"./KCEWHR2X.js";import{b as d}from"./PLADJNNW.js";import"./56RMHUL3.js";import"./DVB6GNMC.js";import{E as p,G as n,g as c,h as r,i as e,o as h}from"./VYZBZ6Y7.js";import"./GTPA67XZ.js";function f(s){return s==null||typeof s!="function"?null:new s({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"]}},!0)}function g(s){window?.localStorage.setItem(s,"false")}function b(s){return!!window?.localStorage?.getItem(s)}function _(s){window?.localStorage?.removeItem(s)}var x=r`:host{--instant-apps-splash-content-max-height: 100%;--instant-apps-splash-back-content-display: flex;display:block}:host .image.image_resized img{width:100%}:host .instant-apps-splash__back-content{display:var(--instant-apps-splash-back-content-display);align-items:center}:host .instant-apps-splash__back-content calcite-label{--calcite-label-margin-bottom: 0}:host .instant-apps-splash__content{max-height:var(--instant-apps-splash-content-max-height)}:host .instant-apps-splash__confirmation-tooltip{display:inline-block;max-width:200px;word-wrap:break-word}:host .instant-apps-splash__required{display:inline-block;margin-inline-start:var(--calcite-spacing-xxs);color:var(--calcite-color-status-danger)}:host .instant-apps-splash__footer{width:100%;display:flex;justify-content:space-between}:host .instant-apps-splash__button-container{display:flex}:host .instant-apps-splash__button-container calcite-button:not(:last-child){margin-inline-end:var(--calcite-spacing-sm)}@media (max-width: 816px){:host .instant-apps-splash__footer{justify-content:flex-start;flex-direction:column}:host .instant-apps-splash__back-content{margin-bottom:var(--calcite-spacing-sm)}:host .instant-apps-splash__back-content span{display:flex;align-items:center}:host .instant-apps-splash__button-container{width:100%;gap:var(--calcite-spacing-sm);justify-content:space-between}:host .instant-apps-splash__button-container calcite-button:not(:last-child){margin-inline-end:0}:host .instant-apps-splash__button-container>*{flex:1 1 0;min-width:0}}`,a={back:"instant-apps-splash__back-content",confirmationTooltip:"instant-apps-splash__confirmation-tooltip",requiredText:"instant-apps-splash__required",footer:"instant-apps-splash__footer",buttonContainer:"instant-apps-splash__button-container"},l=class extends p{constructor(){super(...arguments),this._messages=m({name:"instant-apps-splash"}),this._sanitizer=f(u),this.titleText="",this.content="",this.primaryButtonText="",this.open=!0,this.closeButtonDisabled=!1,this.outsideCloseDisabled=!1,this.secondaryButton=!1,this.closeBehavior="permanent-dismissal",this.confirmationText="",this.isConfirmed=!1,this.splashClose=h()}static{this.properties={localStorageKey:1,titleText:1,content:1,primaryButtonText:1,open:5,closeButtonDisabled:5,outsideCloseDisabled:5,secondaryButton:5,secondaryButtonText:1,secondaryButtonIcon:1,secondaryButtonCallback:0,closeBehavior:1,confirmationText:1,isConfirmed:32}}static{this.styles=x}load(){let t;if(this.closeBehavior==="confirmation"||this.closeBehavior==="dismissal")t=!0;else{let{localStorageKey:i}=this;i?t=this.open&&!b(i):t=this.open}this.el.open=t,this.content&&this._sanitizer&&this.sanitizeContent()}willUpdate(t){t.has("content")&&this.sanitizeContent()}sanitizeContent(){this.content=this._sanitizer.sanitize(this.content)}close(){this.open=!1,this.splashClose.emit()}getCheckboxText(){return this.closeBehavior==="confirmation"?this.confirmationText?this.confirmationText:`${this._messages.confirmationText}`:this._messages?.dontShowThisAgain}handleDontShowThisAgain(t){if(this.closeBehavior==="confirmation"){let i=t.target,{checked:o}=i;c(()=>{this.isConfirmed=o})}else if(this.closeBehavior==="permanent-dismissal"){let{localStorageKey:i}=this;if(!i)return;let o=t.target,{checked:y}=o;y?g(i):_(i)}}render(){return e`<calcite-dialog .open=${this.open} .focusTrapOptions=${{allowOutsideClick:!0}} modal .heading=${this.titleText} aria-describedby=description @calciteDialogClose=${this.close} .closeDisabled=${this.closeBehavior==="confirmation"||this.closeButtonDisabled} .outsideCloseDisabled=${this.closeBehavior==="confirmation"||this.outsideCloseDisabled} .escapeDisabled=${this.closeBehavior==="confirmation"}><div id=description .innerHTML=${this.content??""}></div><slot name=custom-action></slot><div class=${n(a.footer)} slot=footer>${this.localStorageKey&&this.closeBehavior==="permanent-dismissal"||this.closeBehavior==="confirmation"?this.renderCheckbox():null}<div class=${n(a.buttonContainer)}>${this.secondaryButton?this.renderSecondaryButton():null}${this.renderPrimaryButton()}</div>${this.closeBehavior==="confirmation"&&!this.isConfirmed&&e`<calcite-tooltip reference-element=primary-button overlay-positioning=fixed placement=top><span class=${n(a.confirmationTooltip)}>${this._messages?.confirmationTooltip}</span></calcite-tooltip>`||""}</div></calcite-dialog>`}renderCheckbox(){let{localStorageKey:t}=this,i=this.closeBehavior!=="confirmation"&&t&&b(t)?!0:null;return e`<div class=${n(a.back)}><calcite-label layout=inline><calcite-checkbox @calciteCheckboxChange=${this.handleDontShowThisAgain} .checked=${i??void 0}></calcite-checkbox><span>${this.getCheckboxText()}<span class=${n(a.requiredText)}>${this.closeBehavior==="confirmation"&&`(${this._messages?.required})`||""}</span></span></calcite-label></div>`}renderPrimaryButton(){let{primaryButtonText:t}=this;return e`<calcite-button id=primary-button @click=${this.close} slot=footer-end .disabled=${this.closeBehavior==="confirmation"?!this.isConfirmed:!1}>${t||this._messages?.enter}</calcite-button>`}renderSecondaryButton(){return e`<calcite-button @click=${this.secondaryButtonCallback} slot=footer-end .iconStart=${this.secondaryButtonIcon} appearance=outline .disabled=${this.closeBehavior==="confirmation"?!this.isConfirmed:!1}>${this.secondaryButtonText}</calcite-button>`}};d("instant-apps-splash",l);export{l as InstantAppsSplash};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import{c as l}from"./R22HIDGZ.js";import"./27VT6FGO.js";import"./4BXRZ62B.js";import{b as n}from"./SZNJD54W.js";import{b as h}from"./443EHILD.js";import{E as c,h as o,o as s,r}from"./6WW2DA2G.js";import"./EAS42GZC.js";var d=o`@layer{/** @license
3
+ v1.2.0-next.26 */
4
+ import{c as l}from"./KYAKBPGR.js";import"./6ESVYRQV.js";import"./6DHRO6RA.js";import{b as n}from"./AYVYACFY.js";import{b as h}from"./CY5N72KD.js";import{E as c,h as o,o as s,r}from"./VYZBZ6Y7.js";import"./GTPA67XZ.js";var d=o`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import{a}from"./LYXGPO4K.js";import{a as l,b as r}from"./7QBFHK6I.js";import"./KTJDLUIU.js";import"./EYIL3WCN.js";import{d as i}from"./IMPPWVVG.js";import"./4SOCIVF6.js";import"./R6MJ3BWC.js";import"./ZVYGJ3ZV.js";import"./74AIX5RH.js";import{a as t}from"./BUQMZQDZ.js";import"./QXX2SNE5.js";import"./73OBTSKG.js";import"./GKD47RX5.js";import"./36BDQG6C.js";import"./EIXF5OZH.js";import"./NI64NXLH.js";import"./VDTXZ2OC.js";import"./T5CPOSYR.js";import"./55A2KYUG.js";import"./AVA46ODH.js";import"./7OW5IQNG.js";import"./FFZY7CPX.js";import"./DCNEHZTW.js";import"./ASC5OMBD.js";import"./EOZZELAV.js";import"./7GAWPJYN.js";import"./6R6WIO6H.js";import"./NZO56NNR.js";import"./MSBJECJS.js";import"./CQIWHMR3.js";import"./QBBC7A4Y.js";import"./REW2XBKZ.js";import"./EAS42GZC.js";var u=async(e,s,o)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,helperText:{labelKey:`${e}.fields.summary.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},{labelKey:`${e}.fields.status.label`,scope:"/properties/status",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.fields.status.enum`}}}]}]},{type:"Section",labelKey:`${e}.sections.location.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{type:"Section",labelKey:`${e}.sections.location.label`,options:{helperText:{labelKey:`${e}.sections.location.helperText`}},elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await l(s.location,o.hubRequestOptions),options:await r(s.id,s.type,s.location,o.portal.name,o.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]},{type:"Section",labelKey:`${e}.sections.sharing.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{scope:"/properties/access",type:"Control",options:{control:"arcgis-hub-access-level-controls",orgName:o.portal.name,itemType:`{{${e}.fields.access.itemType:translate}}`}},{labelKey:`${e}.fields.groups.label`,scope:"/properties/_groups",type:"Control",options:{control:"hub-field-input-combobox",items:a(o.currentUser.groups),disabled:!i("platform:portal:user:shareToGroup",o),allowCustomValues:!1,selectionMode:"multiple"}}]}]}]});export{u as buildUiSchema};
3
+ v1.2.0-next.26 */
4
+ import{a}from"./2PE7MVDM.js";import{a as l,b as r}from"./G2K266CK.js";import"./C2Q4A3RV.js";import"./E7ZSOO5U.js";import{d as i}from"./XU4C7MA6.js";import"./42MWP46P.js";import"./KLPZNVNH.js";import"./5A2Y5ZFB.js";import"./ZFEVJ556.js";import{a as t}from"./JB5NDXDH.js";import"./TCNQHM62.js";import"./UFBKZY2Y.js";import"./5CKOR2L6.js";import"./CW4WK6UQ.js";import"./KFX3THDY.js";import"./FVQTX4DX.js";import"./FJAIG4PZ.js";import"./XF7HMOOJ.js";import"./D2BXHG6B.js";import"./PN3EXCUI.js";import"./K2BWFQJM.js";import"./V6N2BOHM.js";import"./B5CDNQXT.js";import"./OVQLLUEP.js";import"./ILLNJSZ5.js";import"./T7PSBD2K.js";import"./BVY3FHES.js";import"./DVGMUBNT.js";import"./SL2WOYUA.js";import"./I2FGXEDE.js";import"./IXNDA5VZ.js";import"./TEZMIOXN.js";import"./GTPA67XZ.js";var u=async(e,s,o)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,helperText:{labelKey:`${e}.fields.summary.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},{labelKey:`${e}.fields.status.label`,scope:"/properties/status",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.fields.status.enum`}}}]}]},{type:"Section",labelKey:`${e}.sections.location.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{type:"Section",labelKey:`${e}.sections.location.label`,options:{helperText:{labelKey:`${e}.sections.location.helperText`}},elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await l(s.location,o.hubRequestOptions),options:await r(s.id,s.type,s.location,o.portal.name,o.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]},{type:"Section",labelKey:`${e}.sections.sharing.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{scope:"/properties/access",type:"Control",options:{control:"arcgis-hub-access-level-controls",orgName:o.portal.name,itemType:`{{${e}.fields.access.itemType:translate}}`}},{labelKey:`${e}.fields.groups.label`,scope:"/properties/_groups",type:"Control",options:{control:"hub-field-input-combobox",items:a(o.currentUser.groups),disabled:!i("platform:portal:user:shareToGroup",o),allowCustomValues:!1,selectionMode:"multiple"}}]}]}]});export{u as buildUiSchema};
@@ -0,0 +1,18 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.26 */
4
+ import{b as u}from"./MAYQRSPQ.js";import{b as p}from"./S6KONP5D.js";import{a as h}from"./G4JVAMYO.js";import"./56RMHUL3.js";import"./DVB6GNMC.js";import{b as d}from"./CY5N72KD.js";import{C as l,D as n,E as r,H as c,h as s,i,o}from"./VYZBZ6Y7.js";import"./GTPA67XZ.js";var b=s`/** @license
5
+ * Copyright 2025 Esri
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */calcite-shell-panel{z-index:var(--calcite-z-index-1)}.display-flex{display:flex}.flex-1,.flex-grow{flex:1}.flex-shrink-0{flex:0 0 auto}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: var(--calcite-spacing-none);--calcite-panel-header-background-color: var(--calcite-color-foreground-2)}.panel-override{--calcite-panel-background-color: var(--calcite-color-foreground-2);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: var(--calcite-spacing-none);padding-inline-start:var(--calcite-spacing-base);font-weight:var(--calcite-font-weight-medium)}.header-button-padding{padding-top:var(--calcite-spacing-sm);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start{padding-inline-start:var(--calcite-spacing-lg)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-2{z-index:2}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.position-relative{position:relative}.height-100{height:100%}.height-50{height:50px}`,a=class extends r{constructor(){super(...arguments),this.solutionsCount=0,this.filterOpen=!0,this.filters=[],this.isMobile=!1,this._translations=h({name:"solutions-deployed-shell",blocking:!0}),this._isMobileContextConsumer=p({context:u,subscribe:!0,callback:e=>this.isMobile=e}),this._solutionsDeployedFilterPanel=l(),this._solutionsDeployedPanelRef=l(),this.filterRemoved=o(),this.tokenRefreshed=o()}static{this.properties={solutionsCount:9,filterOpen:16,filters:16,isMobile:16,_translations:16}}static{this.styles=b}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}async searchSolutions(e){if(this._solutionsDeployedPanelRef.value?.setSearchOptions(e),"owner"in e){let t=e.owner==="organization";this._solutionsDeployedFilterPanel.value.changeOwnerFilter(!t,!0)}else("sortType"in e||"searchTerm"in e)&&this._solutionsDeployedPanelRef.value?.searchSolutions(e)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}render(){let e=this.isMobile?"justify-content-end":"";return i`<calcite-shell class="position-relative"><calcite-panel class="border-override header-override panel-override z-index-1"><div class=${`display-flex align-items-center height-50 ${e}`} slot=header-content><calcite-label class="label-override flex-shrink-0" layout=inline>${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label></div>${this._getSolutionsAllPanel()}</calcite-panel></calcite-shell>`}_getSolutionsAllPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return i`<solutions-deployed-panel @deployedCardsFetched=${this._updateSolutionCount} @searchTermSet=${t=>this._solutionsDeployedFilterPanel.value.changeSearchFilter(t.detail.searchTerm,!1)} style=${c(e)} ${n(this._solutionsDeployedPanelRef)}></solutions-deployed-panel>`}_updateSolutionCount(e){this.solutionsCount=e.detail}};d("solutions-deployed-shell",a);export{a as SolutionsDeployedShell};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
3
+ v1.2.0-next.26 */
4
4
  var e=["hub:channel","hub:channel:create","hub:channel:delete","hub:channel:edit","hub:channel:view","hub:channel:owner","hub:channel:manage","hub:channel:read","hub:channel:write","hub:channel:readWrite","hub:channel:moderate"],n="hub:channel:none",h={channelRoot:"hub:channel",channelCreate:"hub:channel:create",channelDelete:"hub:channel:delete",channelEdit:"hub:channel:edit",channelView:"hub:channel:view",channelOwner:"hub:channel:owner",channelManage:"hub:channel:manage",channelRead:"hub:channel:read",channelWrite:"hub:channel:write",channelReadWrite:"hub:channel:readWrite",channelModerate:"hub:channel:moderate"};export{e as a,n as b,h as c};
@@ -0,0 +1,18 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.26 */
4
+ import{b as c,c as h}from"./JNUMH3BN.js";import"./4MEHIVYA.js";import"./JEF4UV2K.js";import"./OIRXB4BU.js";import"./PNEXLQI2.js";import"./HBZNFHQK.js";import"./4R3STD7G.js";import"./HCBYY275.js";import"./MSKT77WV.js";import"./VIH4XUBT.js";import"./T4GHTIOI.js";import"./QTTDHRAA.js";import"./6WLLVDOT.js";import"./E7ZSOO5U.js";import"./XU4C7MA6.js";import"./Z2XWW7ZN.js";import"./42MWP46P.js";import"./KLPZNVNH.js";import"./5A2Y5ZFB.js";import"./ZFEVJ556.js";import"./XF7HMOOJ.js";import"./I2YPPOOM.js";import"./S7WZDGWE.js";import"./6DHRO6RA.js";import"./AYVYACFY.js";import{a as d}from"./G4JVAMYO.js";import"./56RMHUL3.js";import"./DVB6GNMC.js";import{b as g}from"./CY5N72KD.js";import{C as o,D as p,E as b,h as n,i as r}from"./VYZBZ6Y7.js";import"./GTPA67XZ.js";var P=[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}],u=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),y=n`/** @license
5
+ * Copyright 2025 Esri
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */:host{display:block}`,s=class extends b{constructor(){super(...arguments),this.disabled=!1,this._translations=d({name:"pdf-download",blocking:!0}),this._labelInfoElement=o()}static{this.properties={defaultNumLabelsPerPage:9,disabled:5,_translations:16}}static{this.styles=y}async downloadCSV(a,e,l,i=!0){return c(a,e,!0,l,i)}async downloadPDF(a,e,l=!1,i="",t=""){let m=this._labelInfoElement.value?this._labelInfoElement.value.selectedOption?.value:"";return h(a,e,m,l,i,t)}render(){return r`<calcite-select .disabled=${this.disabled} label ${p(this._labelInfoElement)}>${this._renderOptions()}</calcite-select>`}_getLabelSizeText(a){let e=a.descriptionPDF.labelsPerPageDisplay,l=a.descriptionPDF.labelWidthDisplay+" x "+a.descriptionPDF.labelHeightDisplay;return this._translations.pdfLabel?this._translations.pdfLabel.replace("{{n}}",e).replace("{{labelSize}}",l):""}_renderOptions(){let a=u;return(a.default||a).sort((e,l)=>{let i=Number.parseInt(e.descriptionPDF.labelsPerPageDisplay,10),t=Number.parseInt(l.descriptionPDF.labelsPerPageDisplay,10);return i<t?-1:i>t?1:0}).map((e,l)=>{let i=!1;return(this.defaultNumLabelsPerPage?Number.parseInt(e.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:l===0)&&(i=!0),r`<calcite-option .selected=${i} .value=${e}>${this._getLabelSizeText(e)}</calcite-option>`})}};g("pdf-download",s);export{s as PdfDownload};
@@ -0,0 +1,18 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.26 */
4
+ import c from"./4TN73SUG.js";import{a as x}from"./POF72VTV.js";import{a as T,c as P}from"./MAYQRSPQ.js";import a from"./XWNG4K3N.js";import{b as u}from"./S6KONP5D.js";import{Wb as C,ta as S}from"./4MEHIVYA.js";import"./JEF4UV2K.js";import"./OIRXB4BU.js";import"./PNEXLQI2.js";import"./HBZNFHQK.js";import"./4R3STD7G.js";import"./HCBYY275.js";import"./MSKT77WV.js";import"./VIH4XUBT.js";import"./T4GHTIOI.js";import"./QTTDHRAA.js";import"./6WLLVDOT.js";import"./E7ZSOO5U.js";import"./XU4C7MA6.js";import"./Z2XWW7ZN.js";import"./42MWP46P.js";import"./KLPZNVNH.js";import"./5A2Y5ZFB.js";import"./ZFEVJ556.js";import"./XF7HMOOJ.js";import"./6ESVYRQV.js";import{a as $}from"./G4JVAMYO.js";import"./56RMHUL3.js";import"./DVB6GNMC.js";import{b}from"./CY5N72KD.js";import{C as y,D as p,E as w,G as h,h as g,i as d,l as D,o as m}from"./VYZBZ6Y7.js";import"./GTPA67XZ.js";export default $arcgis.t(([,{b:v}])=>{var N=g`/** @license
5
+ * Copyright 2025 Esri
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-foreground-1);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.display-none{display:none}`,I=class extends w{constructor(){super(),this.open=!1,this._deletePercentage=0,this._fetchingTemplates=!1,this._isDeleteInProgress=!1,this._nonSolutionDependencyItems=[],this._showDeleteError=!1,this._showUndeletableItems=!1,this._templateInfos=[],this._translations=$({name:"solution-delete-dialog",blocking:!0}),this._authContextConsumer=u({context:P,subscribe:!0}),this._userSessionContextConsumer=u({context:T,subscribe:!0}),this._accordion=y(),this.solutionDeleteDialogOpen=m(),this.solutionDeleted=m(),this.solutionDeleteDialogBeforeClose=m(),this.listenOn(window,"beforeunload",e=>{this._isDeleteInProgress&&(e.preventDefault(),e.returnValue=!0)})}static{this.properties={card:0,open:5,_deletePercentage:16,_fetchingTemplates:16,_isDeleteInProgress:16,_nonSolutionDependencyItems:16,_showDeleteError:16,_showUndeletableItems:16,_templateInfos:16,_translations:16}}static{this.styles=N}close(){this._showUndeletableItems&&this.solutionDeleted.emit({showAlert:!1,refreshSolutionsTimeout:!0}),this._showDeleteError=!1,this._showUndeletableItems=!1,this._isDeleteInProgress=!1,this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}delete(){if(this._isDeleteInProgress=!0,this.card){let e=[{itemName:this.card.title,itemType:"Solution",owner:this.card.owner,modified:this.card.modified}],s={progressCallback:n=>{this._deletePercentage=Math.round(n)}};C(this.card.id,this._userSessionContextConsumer.value,s).then(n=>{let i=n[1],o;if(i?o=i.items.map(t=>({itemName:t.title,itemType:t.type,owner:t.owner,modified:t.modified})):o=e,o.length===0)this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0}),this._isDeleteInProgress=!1,this.open=!1;else if(o.some(t=>t.itemType==="Solution"))this.card?this._processTemplates(this.card).then(t=>{this._templateInfos=t,this._showDeleteError=!0,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}):(this._showDeleteError=!0,this._isDeleteInProgress=!1);else if(this.card){let t=[];t=i.items.map(l=>({id:l.id,title:l.title,type:l.type,owner:l.owner,modified:l.modified,typeKeywords:[],snippet:"",dependencies:[],url:v(l.id,this._authContextConsumer.value)})),this._templateInfos=t,this._showDeleteError=!1,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}else this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0}),this._isDeleteInProgress=!1,this.open=!1})}}willUpdate(e){if(e.has("open")){let s=e.get("open");this.open&&!s&&(this._fetchingTemplates=!0,this._processTemplates(this.card).then(n=>{this._templateInfos=n;let i=[],o=this._templateInfos.map(async t=>{let l=await this._getRelatedDependency(t.id,"reverse","Solution2Item");return{template:t,relatedItems:l}});Promise.all(o).then(t=>{for(let{template:c,relatedItems:k}of t)for(let U of k){let _=[];for(let a of U.relatedItemIds)_.push({controlItemId:c.id,dependencyItemId:a});let A=_.reduce((a,r)=>(a[r.controlItemId]||(a[r.controlItemId]=new Set),a[r.controlItemId].add(r.dependencyItemId),a),{}),f=Object.entries(A).filter(([a,r])=>r.size>1).flatMap(([a,r])=>Array.from(r).map(L=>({controlItemId:a,dependencyItemId:L})));f.length>0&&(i=i.concat(f))}this._nonSolutionDependencyItems=Array.from(new Map([...i].map(c=>[`${c.controlItemId}:${c.dependencyItemId}`,c])).values());let l=this._nonSolutionDependencyItems.map(c=>c.controlItemId),E=[...new Set(l)];this._accordion.value.selectItems(E),this._fetchingTemplates=!1})}))}}updated(e){e.has("_showUndeletableItems")&&this._showUndeletableItems!==e.get("_showUndeletableItems")&&this._accordion.value.selectItems(this._templateInfos.map(s=>s.id))}render(){let e=this._fetchingTemplates?"":"display-none",s=this._fetchingTemplates?"display-none":"",n=[...new Set(this._nonSolutionDependencyItems.map(t=>t.controlItemId))],i=this._templateInfos.length-this._getDependencyCount(),o=this._translations.deletionCount.replace("{{deleteableCount}}",i.toString()).replace("{{totalCount}}",this._templateInfos.length.toString());return d`<calcite-dialog class="panel-bg-color" .closeDisabled=${this._isDeleteInProgress} .heading=${this._translations.title.replace("{{solution}}",this.card?.title??"")} id=${this._translations.title.replace("{{solution}}",this.card?.title??"")??D} modal kind=danger .open=${this.open} width=l outside-close-disabled @calciteDialogBeforeClose=${()=>{this.solutionDeleteDialogBeforeClose.emit()}} @calciteDialogClose=${()=>{this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}}>${this._isDeleteInProgress?d`<calcite-loader .label=${this._translations.deleteInProgress} scale=l .text=${this._translations.deleteInProgress} type=determinate-value .value=${this._deletePercentage}></calcite-loader>`:this._showUndeletableItems?d`<calcite-label class=${h(s)} layout=inline>${this._translations.failedToDeleteItems}</calcite-label><solution-item-accordion class=${h(s)} .itemRelationshipDependencies=${[]} link-type=item list-selection-mode=multiple .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${p(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonClose}</calcite-button>`:d`<calcite-label class=${h(s)} layout=inline scale=l>${this._translations.deletionNote}<calcite-chip .label=${o} scale=m icon=information>${o}</calcite-chip></calcite-label><calcite-loader class=${h(e)} label></calcite-loader><solution-item-accordion class=${h(s)} .itemRelationshipDependencies=${n} link-type=item list-selection-mode=multiple .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${p(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonCancel}</calcite-button><calcite-button @click=${()=>{this.delete()}} slot=footer-end kind=danger>${this._translations.buttonDelete}</calcite-button>${this._showDeleteError&&d`<calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._translations.failedToDelete} @calciteAlertClose=${()=>{this._showDeleteError=!1}} open><div slot=message>${this._translations.failedToDelete}</div></calcite-alert>`||""}`}</calcite-dialog>`}async _processTemplates(e){return await x(e.id,this._userSessionContextConsumer.value)}async _getRelatedDependency(e,s,n){let i=await S(e,n,s,this._userSessionContextConsumer.value);return[{relationshipType:n,relatedItemIds:i.relatedItems.map(o=>o.id)}]}_getDependencyCount(){let e=this._nonSolutionDependencyItems.map(s=>s.controlItemId);return[...new Set(e)].length}};b("solution-delete-dialog",I);return I},a,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.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import"./EAS42GZC.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.2.0-next.26 */
4
+ import"./GTPA67XZ.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};
@@ -0,0 +1,18 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.26 */
4
+ import{b as y}from"./MAYQRSPQ.js";import{b as S}from"./S6KONP5D.js";import{Cb as w}from"./4MEHIVYA.js";import"./JEF4UV2K.js";import"./OIRXB4BU.js";import"./PNEXLQI2.js";import"./HBZNFHQK.js";import"./4R3STD7G.js";import"./HCBYY275.js";import"./MSKT77WV.js";import"./VIH4XUBT.js";import"./T4GHTIOI.js";import"./QTTDHRAA.js";import"./6WLLVDOT.js";import"./E7ZSOO5U.js";import"./XU4C7MA6.js";import"./Z2XWW7ZN.js";import{g as d}from"./42MWP46P.js";import"./KLPZNVNH.js";import"./5A2Y5ZFB.js";import"./ZFEVJ556.js";import"./XF7HMOOJ.js";import{a as v}from"./G4JVAMYO.js";import"./56RMHUL3.js";import"./DVB6GNMC.js";import{b as f}from"./CY5N72KD.js";import{C as o,D as l,E as I,I as r,h as g,i as n,j as b,o as u}from"./VYZBZ6Y7.js";import"./GTPA67XZ.js";export default $arcgis.t(([c,C,M])=>{var m=class{constructor(t,e,i){this._credential=null,this._isEnterprise=!1,this._locale="en",this._portalSubset=null,this._portalUserSubset=null,this._clientId=t??"",this._locale=i??"en",this._portalUrl=e??"https://www.arcgis.com",this._portalRestUrl=this._portalUrl+"/sharing/rest",this._credential=c.findCredential(this._portalRestUrl),this._portalUrl=location.origin.endsWith(".arcgis.com")?window.location.origin:this._portalUrl}get Credential(){return this._credential}get IsEnterprisePortal(){return this._isEnterprise}get IsSignedIn(){return!!this._credential}get Portal(){return this._portal}get PortalSubset(){return this._portalSubset}get PortalUrl(){return this._portalUrl}get PortalUserOrg(){return this._portalSubset&&this._portalSubset.id}get PortalUserName(){return this._portalUserSubset&&this._portalUserSubset.username||""}get PortalUserSubset(){return this._portalUserSubset}get PortalUserPrivileges(){let t=[];return this._portalUserSubset?.privileges&&(t=this._portalUserSubset.privileges),t}get RestUserSession(){let t=c.findServerInfo(this._portalRestUrl),e=this._credential?d.fromCredential(this._credential,t):new d({});return e.portal=this.PortalSubset?.restUrl?this.PortalSubset?.restUrl:e.portal,e.clientId=this._credential?._oAuthCred?.appId,e._refreshToken=this._credential?._oAuthCred?.refreshToken,e}async initialize(){try{await this._init()}catch{this.destroy()}return this}destroy(){this._credential=null,this._portalSubset=null,this._portalUserSubset=null,c.destroyCredentials()}async signIn(t=""){c.setOAuthRedirectionHandler(e=>{let i=e.authorizeParams.redirect_uri;if(t.length>0){let s=i.split("?"),a=s[0],h="";if(s[1]){let p=new URLSearchParams(s[1]);p.append("signInParam",t),h="?"+p.toString()}e.authorizeParams.redirect_uri=a+h}window.location.href=e.authorizeUrl+"?"+this._objectToQuery(e.authorizeParams)}),await c.getCredential((this._portalSubset?.portalUrl??this._portalUrl)+"/sharing").then(e=>{e&&window.location.reload()})}signOut(){c.destroyCredentials(),this.destroy(),window.location.reload()}refreshSession(){let t=this.RestUserSession;return!t||!this.IsSignedIn?null:t.exchangeRefreshToken()}_getOrgUrl(t,e,i){return e&&i?window.location.protocol+"//"+e.toLowerCase()+"."+i:t}async _init(){let t=new C({appId:this._clientId,locale:this._locale,popup:!1,portalUrl:this._portalUrl,preserveUrlHash:!0});c.registerOAuthInfos([t]);try{let e=await c.checkAppAccess(this._portalUrl,this._clientId);(typeof e.valid<"u"&&!e.valid||e.viewOnlyUserTypeApp)&&window.location.replace(`error.html?error=blocked&locale=${this._locale}`),this._credential=e.credential}catch(e){if(e.name==="identity-manager:not-authenticated")return this;this.destroy(),window.location.replace(`error.html?error=blocked&locale=${this._locale}`)}return this._portal=new M({url:this._portalUrl}),this._portal.authMode="immediate",await this._portal.load(),this._isEnterprise=this._portal.isPortal,this._portalSubset={name:this._portal.name??"",id:this._portal.id??"",restUrl:this._portal.restUrl??"",portalUrl:this._portal.url??"",urlKey:this._portal.urlKey??"",hostName:this._portal.portalHostname??"",orgUrl:this._getOrgUrl(this._portal.url,this._portal.urlKey??"",this._portal.customBaseUrl??""),locationTrackingEnabled:this._portal.helperServices.hasOwnProperty("locationTracking"),hubPremiumEnabled:this._portal.portalProperties?.hub?.enabled||!1,workflowURL:this._portal.helperServices?.workflowManager?.url??this._portal.url,isReadOnly:this._portal.isReadOnly},this._portalUserSubset={fullName:this._portal.user?.fullName??"",username:this._portal.user?.username??"",culture:this._portal.user?.culture?.toLowerCase()||"en",thumbnailUrl:this._portal.user?.thumbnailUrl||this._portal.url+"/home/js/arcgisonline/css/images/no-user-thumb.jpg",orgId:this._portal.user?.orgId??"",privileges:this._portal.user.privileges,role:this._portal.user?.role??""},this._isEnterprise&&this._portalSubset&&(this._portalSubset.workflowURL=await w(this._portal.restUrl,this.RestUserSession||new d({}))),this._portal?.user?.roleId&&this._portalUserSubset&&(this._portalUserSubset.roleId=this._portal.user.roleId),this}_isSerializable(t){return t&&typeof t=="object"&&"toJSON"in t&&typeof t.toJSON=="function"}_objectToQuery(t,e){return t?e&&typeof e=="function"?Object.keys(t).map(i=>encodeURIComponent(i)+"="+encodeURIComponent(e(i,t[i]))).join("&"):Object.keys(t).map(i=>{let s=t[i];if(s==null)return"";let a=encodeURIComponent(i)+"=",h=e&&e[i];return h?a+encodeURIComponent(h(s)):Array.isArray(s)?s.map(p=>this._isSerializable(p)?a+encodeURIComponent(JSON.stringify(p)):a+encodeURIComponent(p)).join("&"):this._isSerializable(s)?a+encodeURIComponent(JSON.stringify(s)):a+encodeURIComponent(s)}).filter(i=>i).join("&"):""}};var R=g`/** @license
5
+ * Copyright 2025 Esri
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */.esri-global-nav__title{margin-block-start:0;position:relative;margin-bottom:0;font-size:var(--calcite-font-size-xl);font-weight:var(--calcite-font-weight-medium);padding-inline-end:var(--calcite-spacing-xxl);align-self:center}.esri-global-nav__logo-link{color:var(--calcite-color-text-1);text-decoration:unset;margin-block-start:0px;position:relative;margin-bottom:0;align-self:center}.cursor-pointer{cursor:pointer}.side{border-right:solid 1px;color:var(--calcite-color-text-1)}.display-flex{display:flex}.align-self-center{align-self:center}.padding-top-1{padding-top:var(--calcite-spacing-lg)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.padding-bottom-1{padding-bottom:var(--calcite-spacing-lg)}.margin-start-end-1{margin-inline-start:var(--calcite-spacing-lg);margin-inline-end:var(--calcite-spacing-lg)}.margin-start-end-1-5{margin-inline-start:var(--calcite-spacing-xxl);margin-inline-end:var(--calcite-spacing-xxl)}calcite-menu{--calcite-color-focus: transparent}calcite-button{--calcite-color-focus: transparent}.sign-in{display:flex;vertical-align:middle;align-items:center;height:100%}.height-full{height:100%}.user-label{--calcite-label-margin-bottom: 0px}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-normal{font-weight:var(--calcite-font-weight-normal)}.logo-padding{padding-inline-start:var(--calcite-spacing-none)}@media(max-width:800px){.logo-padding{padding-inline-start:var(--calcite-spacing-lg)}}.signin-padding{padding-inline-end:var(--calcite-spacing-none)}@media(max-width:800px){.signin-padding{padding-inline-end:var(--calcite-spacing-lg)}}calcite-action{--calcite-font-size-0: var(--calcite-font-size--1);--calcite-internal-action-padding-inline: var(--calcite-spacing-lg)}calcite-navigation{--calcite-color-border-3: transparent}`,_=class extends I{constructor(){super(...arguments),this.useLocalAppConfig=!1,this._isMobile=!1,this._logoFill="",this._translations=v({name:"solutions-deploy-app-nav",blocking:!0}),this._activeTab="all-solutions",this._authentication=void 0,this._dropdownRef=o(),this._dropdownItemAll=o(),this._dropdownItemMy=o(),this._dropdownItemResources=o(),this._isMobileContextConsumer=S({context:y,subscribe:!0,callback:t=>this._isMobile=t}),this._menuRef=o(),this._menuItemAll=o(),this._menuItemMy=o(),this._menuItemResources=o(),this.authInit=u(),this.navTabSelected=u(),this.tokenRefreshed=u()}static{this.properties={appConfig:1,useLocalAppConfig:5,_isMobile:16,_logoFill:16,_translations:16}}static{this.styles=R}clearMenuItems(){this._isMobile?(this._dropdownItemAll.value.selected=!1,this._authentication?.IsSignedIn&&(this._dropdownItemMy.value.selected=!1),this._dropdownItemResources.value.selected=!1):(this._menuItemAll.value.active=!1,this._authentication?.IsSignedIn&&(this._menuItemMy.value.active=!1),this._menuItemResources.value.active=!1)}activateMenuItem(t,e=!1){let i,s;switch(t){case"all-solutions":i=this._isMobile?this._dropdownItemAll:this._menuItemAll,s=this._isMobile?[this._dropdownItemMy,this._dropdownItemResources]:[this._menuItemMy,this._menuItemResources];break;case"deployments":i=this._isMobile?this._dropdownItemMy:this._menuItemMy,s=this._isMobile?[this._dropdownItemAll,this._dropdownItemResources]:[this._menuItemAll,this._menuItemResources];break;case"resources":i=this._isMobile?this._dropdownItemResources:this._menuItemResources,s=this._isMobile?[this._dropdownItemAll,this._dropdownItemMy]:[this._menuItemAll,this._menuItemMy];break}i&&s&&this._handleMenuClick(t,i,s,e)}async connectedCallback(){super.connectedCallback();let t=new d({username:"",password:""});this._userSession=t}async load(){let t=window.matchMedia("(prefers-color-scheme: dark)");t.addEventListener("change",h=>this._logoFill=this._getLogoFill(h.matches)),this._logoFill=this._getLogoFill(t.matches),this._isMobileContextConsumer.value&&(this._isMobile=this._isMobileContextConsumer.value);let e="en";this.useLocalAppConfig&&(e=this.appConfig.locale);let i=this.appConfig.authentication?.PortalSubset?.orgUrl||this.appConfig.orgURL||this.appConfig.portalURL,s=this.appConfig.authentication?.PortalUrl||this.appConfig.portalURL,a=this.appConfig.primarySolutionsGroupId;this._authentication||(this.appConfig.authentication?this._authentication=this.appConfig.authentication:(this._authentication=new m(this.appConfig.appId,this.appConfig.portalURL,this.appConfig.locale),await this._authentication.initialize())),this._authentication.RestUserSession&&(this._userSession=this._authentication.RestUserSession),this._setRefreshInterval(),this.authInit.emit({allCards:[],authentication:this._authentication,agoBasedEnterpriseSolutionsGroupId:this.appConfig.agoBasedEnterpriseSolutionsGroupId,diagramKey:this.appConfig.diagramKey,locale:e||"en",orgUrl:i,portalUrl:s,primarySolutionsGroupId:a,solutionsUrlMarker:this.appConfig.solutionsUrlMarker,userSession:this._userSession}),this._portal=await this._userSession?.getPortal()}render(){return n`<calcite-navigation>${this._getHeading()}${this._isMobile?this._getDropdown():this._getMenu()}${this._isMobile?"":this._getSignInOut()}</calcite-navigation>`}updated(t){t.has("_isMobile")&&this.activateMenuItem(this._activeTab,!0)}_getSignInOut(){return n`<div slot=user>${this._authentication?.IsSignedIn?this._getUserAvatar():n`<calcite-button appearance=transparent class="sign-in" kind=neutral scale=l @click=${this._handleSignIn}>${this._translations.signIn}</calcite-button>`}</div>`}_getDropdown(){let t=this._authentication?.IsSignedIn?this._translations.signOut:this._translations.signIn;return n`<calcite-dropdown overlay-positioning=fixed slot=content-end width=m ${l(this._dropdownRef)}><calcite-button appearance=transparent icon-start=hamburger kind=neutral slot=trigger scale=l></calcite-button><calcite-dropdown-group><calcite-dropdown-item @click=${e=>{this._authentication?.IsSignedIn?this._signOut():this._handleSignIn(e)}}>${t}</calcite-dropdown-item><calcite-dropdown-item @click=${()=>this._handleMenuClick("all-solutions",this._dropdownItemAll,[this._dropdownItemMy,this._dropdownItemResources],!0)} ${l(this._dropdownItemAll)}>${this._translations.allSolutions}</calcite-dropdown-item>${this._authentication?.IsSignedIn?n`<calcite-dropdown-item @click=${()=>this._handleMenuClick("deployments",this._dropdownItemMy,[this._dropdownItemAll,this._dropdownItemResources],!0)} ${l(this._dropdownItemMy)}>${this._translations.myDeployments}</calcite-dropdown-item>`:""}<calcite-dropdown-item @click=${()=>this._handleMenuClick("resources",this._dropdownItemResources,[this._dropdownItemAll,this._dropdownItemMy],!0)} ${l(this._dropdownItemResources)}>${this._translations.solutionResources}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}_getMenu(){return n`<calcite-menu label slot=content-start ${l(this._menuRef)}><calcite-menu-item label @click=${()=>this._handleMenuClick("all-solutions",this._menuItemAll,[this._menuItemMy,this._menuItemResources],!0)} .text=${this._translations.allSolutions} ${l(this._menuItemAll)}></calcite-menu-item>${this._authentication?.IsSignedIn?n`<calcite-menu-item label @click=${()=>this._handleMenuClick("deployments",this._menuItemMy,[this._menuItemAll,this._menuItemResources],!0)} .text=${this._translations.myDeployments} ${l(this._menuItemMy)}></calcite-menu-item>`:""}<calcite-menu-item label @click=${()=>this._handleMenuClick("resources",this._menuItemResources,[this._menuItemAll,this._menuItemMy],!0)} .text=${this._translations.solutionResources} ${l(this._menuItemResources)}></calcite-menu-item></calcite-menu>`}_setRefreshInterval(){}_getHeading(){return n`<div class="align-self-center display-flex cursor-pointer logo-padding" slot=logo><a aria-label=${this._translations.linkToEsriHomePage??r} class="esri-global-nav__logo-link" href=https://www.esri.com rel=noopener target=_blank title=${this._translations.linkToEsriHomePage??r}><svg height=30 viewBox="0 0 84 30" width=84 xmlns=http://www.w3.org/2000/svg>${b`<path fill=${this._logoFill??r} d="M77.277.5c-1.48 0-2.554 1.175-2.554 2.488 0 1.314 1.074 2.49 2.554 2.49 1.48 0 2.622-1.071 2.622-2.49C79.899 1.572 78.756.5 77.277.5zm-1.913 23.426h3.891V8.353h-3.891v15.573zM40.515 7.965c-4.702 0-8.465 3.275-8.465 8.174 0 4.898 3.763 8.177 8.465 8.177 2.146 0 4.165-.667 5.852-2.31l-2.457-2.457c-.916.964-2.093 1.651-3.78 1.651-2.175 0-3.927-1.397-4.188-3.698h11.875v-1.07c0-5.42-2.95-8.467-7.302-8.467zm-4.573 6.617c.293-2.24 1.721-3.7 4.023-3.7 2.434 0 3.926 1.43 3.96 3.7h-7.983zm17.305-1.849c0-1.169 1.233-1.655 2.273-1.655 1.32 0 2.292.547 3.037 1.577l2.476-2.474c-1.282-1.6-3.407-2.216-5.418-2.216-3.147 0-6.262 1.555-6.262 5.028 0 5.938 8.403 3.406 8.403 6.617 0 1.233-1.46 1.784-2.595 1.784-1.65 0-2.687-.806-3.69-1.905l-2.515 2.514c1.58 1.711 3.62 2.313 5.978 2.313 3.179 0 6.717-1.299 6.717-4.998 0-6.067-8.404-3.795-8.404-6.585zm14.15-1.916h-.062V8.353h-3.892v15.573h3.892v-8.34c0-.842.518-3.925 4.185-3.925.564 0 1.127.112 1.718.253l.152-3.726c-.45-.127-.901-.223-1.382-.223-2.046 0-3.766 1.07-4.61 2.852zM14.683 2.766c-1.217-.037-1.932.12-2.651.26-.216-.056-.62.003-.643.472 0 .252.08.447.24.562.159.114 1.493 1.1 2.473 2.142-.47.052-.98.138-1.504.246-.585-1.264-2.465-.114-3.714-.064-.146.006-.286.025-.431.035-.137-1.056-.235-2.15-.21-2.92 1.618-.917 4.748-1.593 6.874-1.626l.373-.01c.312-.003.337-.251.043-.291-2.641-.361-4.929.173-7.279 1.145C5.808 3.748 2.696 6.12.8 10.596c-.444 1.247-2.219 7.195.935 12.3 2.56 4.142 5.855 6.113 9.887 6.676 4.024.561 6.207.075 8.752-1.055 5.951-2.642 10.496-12.559 5.95-19.747-1.794-3.319-6.495-6.229-11.641-6.004zm-2.259 4.647a17.754 17.754 0 0 1 2.362-.368 15.741 15.741 0 0 1 1.748 2.54c-.805.39-1.878.688-2.315 1.312-.181.26-.226.613-.232.995a23.59 23.59 0 0 0-3.877 1.286c-.453-1.332-.85-2.66-1.124-3.842 1.296-1.237 2.813-1.438 3.438-1.923zm6.61 15.88c-.354.038-.706.083-1.016.13-.77.121-1.762.379-2.685.723-.53-.843-1.95-2.891-2.667-4.437 1.442-.709 3.457-1.303 5.775-1.444.19.33.4.66.69.956.757.774-.44 1.883-.096 4.072zm-8.603-9.14c1.12-.53 2.3-.968 3.56-1.286-.008.333-.045.649-.182.903-.196.366-.106 1.428.134 1.775.755 1.099 2.008.488 2.951.883.433.181.721.482.964.84-1.974.124-3.91.584-5.706 1.41-.923-1.96-1.72-4.524-1.72-4.524zm.832 4.938c-.07.033-.145.074-.217.11a40.803 40.803 0 0 0-3.256-.78c-.995-.204-1.031-.15-2.151.175-.16.046-.313.088-.462.133a36.17 36.17 0 0 1-.445-1.202c1.436-1.106 2.884-2.034 4.821-2.985.5 1.491 1.215 3.483 1.71 4.549zm.768 4.528c.293-.765.521-1.331.605-1.89.569.958 1.248 2 1.774 2.815-.819.397-1.772 1.01-2.672 1.685.062-1.037.083-2.064.293-2.61zm5.334-14.636c-.01.014-.028.026-.04.04a23.057 23.057 0 0 0-1.376-2.111c1.007-.061 2.246-.008 3.374.108-1.014.363-1.461 1.254-1.958 1.963zm-9.028 1.094c.019-.026.039-.047.057-.072.234 1.182.513 2.16.886 3.518-1.402.618-3.881 2.148-4.976 2.972-.198-.502-.404-1.214-.589-1.946.249-.737.758-1.254 1.476-1.325 1.228-.123 2.28-1.95 3.146-3.147zm-5.41-1.784C4.24 6.455 6.023 4.666 7.65 3.773c-.016.4.086 1.567.218 2.693-.57.057-1.134.128-1.692.211a12.084 12.084 0 0 0-3.115 4.088c-.117-1.054-.178-1.933-.133-2.472zM2.07 9.731s.062 1.06.113 1.833c0 0-.781.886-1.18 1.59.159-1.443.498-2.187 1.067-3.423zm7.664 18.356C5.688 26.82 2.69 23.41 1.62 19.834a17.475 17.475 0 0 1-.651-6.473c.056.01.186.072.38.017.135-.093.616-.43.957-.728l.018.131c-.23.87-.371 1.775-.4 2.71.37.39.804 1.038 1.286 1.707-.31.23-.905.641-1.045.741-.41.292-.406.753-.114 1.015.161.144.492.084.613-.01.358-.285.656-.513 1.066-.77.15.393.292.748.43 1.086-.175.188-.3.436-.342.798-.135 1.172.979 2.092 1.918 2.36.035.01.06.014.094.023.05.076.095.147.148.224-.487.378-.82.765-1.049 1.063-.132.172-.28.43-.16.481.123.05.535 0 .719-.034.466-.09.826-.606 1.148-.796.387.534 1.017 1.22 1.672 1.88.029.12.055.246.088.351.125.403.293.804.495 1.196.471.22.962.402 1.464.561a8.344 8.344 0 0 0-.622.72zm.989.313c.155-.203.312-.454.505-.626.468.31.969.665 1.368.894-.615-.07-1.337-.085-1.873-.268zm3.113.31s-1.604-1.062-2.009-1.471c.803-.667 2.102-1.459 3.128-1.889.402.63 1.727 2.507 2.258 3.112-.963.168-2.31.294-3.377.248zM20.54 27.2c-.286.189-1.664.814-2.204.988a23.43 23.43 0 0 1-2.44-3.202c.844-.354 2.143-.67 3.346-.82.109.342.25.704.444 1.094.19.382.411.662.649.853.085-.053.164-.115.248-.17-.006.42-.018.846-.043 1.257zm-.33-21.477c-.27-.172-.607-.108-.467.193.053.117.259.314.427.512-.986-.272-3.608-.479-4.856-.364-.815-.916-1.744-2.028-2.861-2.765 4.999-.311 9.49 1.756 11.473 4.186-.661-.344-2.087-.834-2.667-.963-.313-.319-.708-.58-1.05-.8zm1.094 21.065c.023-.407.04-.922.053-1.396.487-.378.946-.79 1.37-1.238.547.063 1.094.156 1.427.24-.74.936-1.762 1.716-2.85 2.394zm3.825-3.724c-.12.253-.428.688-.633.894-.312-.126-.781-.258-1.272-.375.078-.094.163-.182.24-.279.268-1.796-.338-2.37.42-4.014l.172-.371c.418.118.812.247 1.153.386.043.616.04 2.728-.08 3.759zm-.708-4.917c.196-.407.412-.84.645-1.27.061.547.105 1.08.131 1.563a9.256 9.256 0 0 0-.776-.293zm2.218 1.126l-.194.756c-.137.515-.593 1.732-.832 2.223.091-.663.171-2.384.148-2.73.16.049.502-.147.559-.341.057-.195-.564-.495-.564-.495a20.742 20.742 0 0 0-.172-2.7c.142-.23.286-.452.434-.655a12.082 12.082 0 0 0-.186-1.575c.125.041.24.074.323.075.283.004.282-.19.192-.298-.058-.07-.328-.238-.643-.42a12.02 12.02 0 0 0-2.78-5.32c.533.202 1.214.48 1.754.774.41.516 1.585 1.675 2.212 4.92.564 2.922-.06 5.143-.251 5.786zM80.886 8.597v-.24h1.218v.24h-.468v1.191h-.283V8.597h-.467zm1.87-.24l.365 1.025.368-1.024h.406v1.43h-.262V8.634l-.396 1.154h-.229l-.4-1.154v1.154h-.261v-1.43h.409z" />`}</svg></a><div class="side margin-start-end-1-5" slot=logo></div><div class="esri-global-nav__title"><a aria-label=${this._translations.linkToArcGISSolutionsHomePage??r} class="esri-global-nav__logo-link" href=https://www.esri.com/en-us/arcgis/products/arcgis-solutions/overview rel=noopener target=_blank title=${this._translations.linkToArcGISSolutionsHomePage??r}>${this._translations.arcgisSolutions}</a></div></div>`}_getLogoFill(t){return t?"#FFFFFF":"#141414"}_handleMenuClick(t,e,i,s){i.forEach(a=>{a.value&&(this._isMobile?a.value.selected=!1:a.value.active=!1)}),e.value&&(this._isMobile?e.value.selected=!0:e.value.active=!0),this._activeTab=t,s&&this.navTabSelected.emit({tabType:t})}_getUserAvatar(){let t=this._portal.user,e=this._authentication?.PortalUserSubset,i=t?.id??t?.sourceJSON?.id;return n`<div class="height-full display-flex cursor-pointer signin-padding"><calcite-avatar class="align-self-center" id=instant-apps-sign-in-user-button scale=l .thumbnail=${t?.thumbnailUrl??e?.thumbnailUrl??""} full-name=${t?.fullName??r} .username=${t?.username} user-id=${i??r}></calcite-avatar></div><calcite-popover placement=bottom-end scale=s reference-element=instant-apps-sign-in-user-button offset-distance=0 pointer-disabled focus-trap-disabled auto-close .label=${this._translations.userSettings}><div class="margin-start-end-1 padding-top-1"><calcite-label class="user-label font-bold padding-bottom-1" scale=l>${t.fullName??e?.fullName}<calcite-label class="user-label font-normal" scale=m>${t.username??e?.username}</calcite-label></calcite-label></div><calcite-action scale=l @click=${this._signOut} .text=${this._translations.signOut} text-enabled></calcite-action></calcite-popover>`}_signOut(){this._portal.credential?.destroy(),this._portal.authMode="anonymous",this._portal.credential=null,this._authentication?.signOut()}_handleSignIn(t){t.preventDefault(),this._authentication?.signIn().then(()=>{}).catch(e=>{console.error("Error creating global nav header:",e)})}};f("solutions-deploy-app-nav",_);return _},"identity/IdentityManager","identity/OAuthInfo","portal/Portal")