@esri/solutions-components 1.0.6 → 1.1.0-next.20250731.1

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 (605) hide show
  1. package/dist/cdn/25HFBBO7.js +4 -0
  2. package/dist/cdn/{3QP57WZY.js → 27LLDIKS.js} +4 -4
  3. package/dist/cdn/2B7AIYB4.js +81 -0
  4. package/dist/cdn/{RRMHR2HB.js → 2BYRDSF2.js} +3 -3
  5. package/dist/cdn/{GHXC6C2C.js → 2FWYC6N2.js} +5 -5
  6. package/dist/cdn/{IY23MDOC.js → 2GG4TAB5.js} +3 -3
  7. package/dist/cdn/{PKBDH7MF.js → 2OH6LK6F.js} +3 -3
  8. package/dist/cdn/2RT2G6PW.js +4 -0
  9. package/dist/cdn/2TQLIMIY.js +4 -0
  10. package/dist/cdn/{U4QKTJ5K.js → 2V6EPB7F.js} +3 -3
  11. package/dist/cdn/{D6XX6KWD.js → 2W6UZ4WR.js} +3 -3
  12. package/dist/cdn/{5MXFQYLE.js → 2Y5AL2MJ.js} +3 -3
  13. package/dist/cdn/{3XGPYKD3.js → 33G6WACF.js} +3 -3
  14. package/dist/cdn/{GZEJGYES.js → 362CTSXJ.js} +3 -3
  15. package/dist/cdn/3BSM72ZJ.js +8 -0
  16. package/dist/cdn/3EHVWHQO.js +4 -0
  17. package/dist/cdn/{I2VKZ5OH.js → 3GSPSBR2.js} +3 -3
  18. package/dist/cdn/3JZGXNAU.js +4 -0
  19. package/dist/cdn/{N5K33ZZT.js → 3K7RVP62.js} +3 -3
  20. package/dist/cdn/{PNHNT6BL.js → 3RYGLJSU.js} +3 -3
  21. package/dist/cdn/3SLZAJU6.js +18 -0
  22. package/dist/cdn/{VA7UARYI.js → 3TRGQIG4.js} +2 -2
  23. package/dist/cdn/{HUCFHRHI.js → 3UTJ6N4B.js} +4 -4
  24. package/dist/cdn/{YVJDVYGA.js → 3VAVRAZH.js} +2 -2
  25. package/dist/cdn/{RZUGSVMP.js → 3XZ72BIO.js} +2 -2
  26. package/dist/cdn/{NNO7ZI7X.js → 3ZSBSCVO.js} +3 -3
  27. package/dist/cdn/{2WMXCGJ6.js → 4BAJCDHE.js} +3 -3
  28. package/dist/cdn/{4YK53WB6.js → 4E55H6GI.js} +3 -3
  29. package/dist/cdn/{QCT6FXMR.js → 4GJTZGZ2.js} +2 -2
  30. package/dist/cdn/{AB3FQQCW.js → 4R677UHW.js} +4 -4
  31. package/dist/cdn/{BJ6DOG6H.js → 4W4AXLAS.js} +3 -3
  32. package/dist/cdn/52S7M4XP.js +4 -0
  33. package/dist/cdn/54F3QH2P.js +4 -0
  34. package/dist/cdn/{EJEJMEGK.js → 54I7CNTR.js} +3 -3
  35. package/dist/cdn/{UKYKTZWK.js → 574AQUKL.js} +3 -3
  36. package/dist/cdn/5AARPSFW.js +4 -0
  37. package/dist/cdn/5OXADY3S.js +18 -0
  38. package/dist/cdn/5RODJX2B.js +18 -0
  39. package/dist/cdn/{7ME4UIGX.js → 5SE2CNQ4.js} +3 -3
  40. package/dist/cdn/5U44RL2U.js +4 -0
  41. package/dist/cdn/{YUWAB65A.js → 5WJUGKEL.js} +3 -3
  42. package/dist/cdn/62F4Z2RZ.js +4 -0
  43. package/dist/cdn/{7YYOJP6L.js → 6EUIK65W.js} +3 -3
  44. package/dist/cdn/{T6ZDTQ2A.js → 6FSSM6C5.js} +3 -3
  45. package/dist/cdn/{LA3N6LZH.js → 6HJNTC7F.js} +3 -3
  46. package/dist/cdn/6IORBIOG.js +18 -0
  47. package/dist/cdn/{NRUKSPT4.js → 6LATBKTY.js} +3 -3
  48. package/dist/cdn/{KCFSZOBX.js → 6N6HLBBS.js} +2 -2
  49. package/dist/cdn/{MI37N43V.js → 6NHXE4L3.js} +3 -3
  50. package/dist/cdn/{FV3U3YJ6.js → 6R4UNPWN.js} +3 -3
  51. package/dist/cdn/6TJ4G3ER.js +4 -0
  52. package/dist/cdn/6XPLK57P.js +4 -0
  53. package/dist/cdn/6ZGLTKMR.js +4 -0
  54. package/dist/cdn/73DPGPG7.js +4 -0
  55. package/dist/cdn/{V434XRYU.js → 73ZAL2WT.js} +3 -3
  56. package/dist/cdn/{5DAI66LT.js → 74MX4QLZ.js} +3 -3
  57. package/dist/cdn/{F2QHZOXB.js → 755C3VG6.js} +3 -3
  58. package/dist/cdn/764HIRJY.js +4 -0
  59. package/dist/cdn/{V73IDRPZ.js → 7C46WXZU.js} +3 -3
  60. package/dist/cdn/{VPHAMFNI.js → 7CHJP5FF.js} +3 -3
  61. package/dist/cdn/{WIDXS23Z.js → 7CX327ED.js} +3 -3
  62. package/dist/cdn/{NJBDDFNX.js → 7I3GA5DX.js} +2 -2
  63. package/dist/cdn/{P473G3UD.js → 7K7BGZIC.js} +3 -3
  64. package/dist/cdn/7KQKPG55.js +4 -0
  65. package/dist/cdn/{2XQB5N5F.js → 7M5NHS3C.js} +3 -3
  66. package/dist/cdn/A2QNF47K.js +6 -0
  67. package/dist/cdn/A4PWAQDV.js +9 -0
  68. package/dist/cdn/A6BKXLWA.js +4 -0
  69. package/dist/cdn/AB3WBQIH.js +18 -0
  70. package/dist/cdn/AD6Z7JIO.js +4 -0
  71. package/dist/cdn/{55NQUWEY.js → AHEDR6FX.js} +2 -2
  72. package/dist/cdn/AK5RJP4M.js +5 -0
  73. package/dist/cdn/AP5SMGH7.js +18 -0
  74. package/dist/cdn/{IHZQS7G5.js → ASISOVTI.js} +3 -3
  75. package/dist/cdn/{Y6FNQ642.js → ATETIVT6.js} +3 -3
  76. package/dist/cdn/{WLSDNFCT.js → AUU7DV55.js} +4 -4
  77. package/dist/cdn/{UUCDGMFW.js → AZHKILPX.js} +3 -3
  78. package/dist/cdn/{Q2YCPZOX.js → B637YOS5.js} +3 -3
  79. package/dist/cdn/{X6YLW36Y.js → BAFGE6VY.js} +2 -2
  80. package/dist/cdn/{NCSI6ZKY.js → BKJGM55L.js} +3 -3
  81. package/dist/cdn/{YM6G3EU3.js → BKZ5D2KZ.js} +4 -4
  82. package/dist/cdn/BLBKBQ7W.js +4 -0
  83. package/dist/cdn/BLRUX5OX.js +4 -0
  84. package/dist/cdn/BPJXP42W.js +4 -0
  85. package/dist/cdn/{7I736LZK.js → BTTWYS5X.js} +3 -3
  86. package/dist/cdn/{PEW7EK74.js → BWW5YD72.js} +3 -3
  87. package/dist/cdn/{6424ZLL7.js → C6N2WWWX.js} +3 -3
  88. package/dist/cdn/{ZETWXE6M.js → C7HFRDIM.js} +3 -3
  89. package/dist/cdn/{HVATWN37.js → CEW2J6RG.js} +2 -2
  90. package/dist/cdn/CHGEZ3AN.js +4 -0
  91. package/dist/cdn/CKCMSZM5.js +4 -0
  92. package/dist/cdn/{GO42R2CK.js → CM6TYWX6.js} +2 -2
  93. package/dist/cdn/{BYJRAAEE.js → CN7U4Z7M.js} +2 -2
  94. package/dist/cdn/{BLS4G62F.js → CSHLAZKQ.js} +3 -3
  95. package/dist/cdn/CXXCLALD.js +18 -0
  96. package/dist/cdn/{M3ZMKHJ2.js → D2AX67LP.js} +4 -4
  97. package/dist/cdn/{7DOQHPCH.js → D2WA2RPA.js} +3 -3
  98. package/dist/cdn/{SVFIF3T3.js → DCHDDLDZ.js} +3 -3
  99. package/dist/cdn/{FIDPLPEF.js → DDL7KI2T.js} +3 -3
  100. package/dist/cdn/{MNPZD4I5.js → DI2LL6B3.js} +3 -3
  101. package/dist/cdn/{4CVEF3SI.js → DIS53LGB.js} +3 -3
  102. package/dist/cdn/{OTQ4RPLU.js → DSYYVW3F.js} +2 -2
  103. package/dist/cdn/DU2FEFFV.js +18 -0
  104. package/dist/cdn/{PXPVE3JE.js → DUWVHI7R.js} +3 -3
  105. package/dist/cdn/{D2EREVL4.js → EBT6JTTB.js} +3 -3
  106. package/dist/cdn/{VQ65EGUC.js → EEF2B6ZM.js} +3 -3
  107. package/dist/cdn/EFS5RERR.js +4 -0
  108. package/dist/cdn/{26THV7PU.js → ELXOWAX5.js} +3 -3
  109. package/dist/cdn/{LKBUXCMF.js → EOPDQ5BU.js} +3 -3
  110. package/dist/cdn/{IEAQX2G7.js → EPCVNPGM.js} +3 -3
  111. package/dist/cdn/{IPYR6HZK.js → EUNGF6ZH.js} +4 -4
  112. package/dist/cdn/EV3TUX6S.js +4 -0
  113. package/dist/cdn/{JTKT3XWL.js → EWGTTR5Q.js} +3 -3
  114. package/dist/cdn/EWRQ3QNK.js +18 -0
  115. package/dist/cdn/{YZCZUMV2.js → FCGAI4KW.js} +2 -2
  116. package/dist/cdn/FEWPXPFQ.js +4 -0
  117. package/dist/cdn/{3RW2NBPF.js → FFAGAIHU.js} +4 -4
  118. package/dist/cdn/FHJGYUXO.js +18 -0
  119. package/dist/cdn/{ZWYST46E.js → FJAL5AQ5.js} +3 -3
  120. package/dist/cdn/{CHYWNBKA.js → FJSZAX2R.js} +3 -3
  121. package/dist/cdn/{5M5TLNGP.js → FQKGNPW6.js} +2 -2
  122. package/dist/cdn/FSTZH7GL.js +4 -0
  123. package/dist/cdn/{UI236QD6.js → FT34NQOI.js} +3 -3
  124. package/dist/cdn/FT42MIIU.js +4 -0
  125. package/dist/cdn/{WPAFQXGE.js → G3R2MU2J.js} +3 -3
  126. package/dist/cdn/{ESBUX6NR.js → G6EO7CEQ.js} +3 -3
  127. package/dist/cdn/{QR6JZJTO.js → GOLI4DGF.js} +3 -3
  128. package/dist/cdn/GQBP35TH.js +29 -0
  129. package/dist/cdn/GS2XNU7D.js +18 -0
  130. package/dist/cdn/{62WQV5YC.js → GTECY6TF.js} +3 -3
  131. package/dist/cdn/{U4WC6C2F.js → GW33ZZHC.js} +3 -3
  132. package/dist/cdn/H4YML6KX.js +4 -0
  133. package/dist/cdn/{2IVXEYYO.js → H6OGXITC.js} +3 -3
  134. package/dist/cdn/{JNUBPQVQ.js → HEIJXDKW.js} +3 -3
  135. package/dist/cdn/HFH2DZZB.js +4 -0
  136. package/dist/cdn/{IRV3QYFT.js → HFRYADUF.js} +3 -3
  137. package/dist/cdn/{LJV6DE44.js → HG4W4QD6.js} +3 -3
  138. package/dist/cdn/HI22GMCZ.js +4 -0
  139. package/dist/cdn/{HQIAA5ZR.js → HIWWU7SY.js} +2 -2
  140. package/dist/cdn/{2TLMYAKF.js → HN3P22JK.js} +3 -3
  141. package/dist/cdn/{46LGQEFB.js → HO345XLK.js} +3 -3
  142. package/dist/cdn/{VW6GSY2U.js → HT35VQR3.js} +3 -3
  143. package/dist/cdn/{2URV24QB.js → HXV3QUQ6.js} +3 -3
  144. package/dist/cdn/HYHCUL5X.js +4 -0
  145. package/dist/cdn/{YQ4UFRN4.js → HYLPZDSQ.js} +3 -3
  146. package/dist/cdn/{WH6W2UP3.js → I3S3DM4U.js} +3 -3
  147. package/dist/cdn/{2CLEIN6Y.js → IFV6OJ45.js} +4 -4
  148. package/dist/cdn/IK5O4TGG.js +4 -0
  149. package/dist/cdn/{HYALTA6M.js → IO2ZL7TB.js} +3 -3
  150. package/dist/cdn/{4OXHTSNR.js → ITWJGFNZ.js} +2 -2
  151. package/dist/cdn/IUQFTD5B.js +4 -0
  152. package/dist/cdn/IXHWGSUT.js +379 -0
  153. package/dist/cdn/J4IVVJW7.js +4 -0
  154. package/dist/cdn/J7DQNAJK.js +4 -0
  155. package/dist/cdn/J7I2CT5V.js +18 -0
  156. package/dist/cdn/J7RY62J4.js +18 -0
  157. package/dist/cdn/{XORA7HCU.js → JACIW3XD.js} +3 -3
  158. package/dist/cdn/JHWEUJN4.js +4 -0
  159. package/dist/cdn/JKM47VFY.js +18 -0
  160. package/dist/cdn/{LOL2WTGD.js → JPFVSO3J.js} +3 -3
  161. package/dist/cdn/JQKKZGRJ.js +4 -0
  162. package/dist/cdn/JR6RNA7B.js +4 -0
  163. package/dist/cdn/{ZS2IQNQO.js → JV46YG7Z.js} +3 -3
  164. package/dist/cdn/{ESYYQOPE.js → JZZAARTL.js} +2 -2
  165. package/dist/cdn/{DUJNFEQ6.js → KA6MTWQW.js} +3 -3
  166. package/dist/cdn/{WLSI7POK.js → KBFGX22V.js} +2 -2
  167. package/dist/cdn/{TGWWWSMN.js → KCRSRMZK.js} +3 -3
  168. package/dist/cdn/{5AW5NLLI.js → KGMRUPJI.js} +3 -3
  169. package/dist/cdn/KL2T3UMN.js +4 -0
  170. package/dist/cdn/{UASHMMAZ.js → KPKJKBOW.js} +3 -3
  171. package/dist/cdn/{D5OHP7NT.js → KSGE2K2A.js} +3 -3
  172. package/dist/cdn/{L4MTDEUA.js → KSYOFZFC.js} +4 -4
  173. package/dist/cdn/{XW6O3WSI.js → KUHZ7NUV.js} +3 -3
  174. package/dist/cdn/{YRBPGBT5.js → KVLTXBTW.js} +4 -4
  175. package/dist/cdn/{XLXUXKG6.js → KZONAQ7X.js} +4 -4
  176. package/dist/cdn/L3KYPR4U.js +4 -0
  177. package/dist/cdn/LJ2NBNYV.js +18 -0
  178. package/dist/cdn/LUZ5SS5Q.js +4 -0
  179. package/dist/cdn/{SEVP5RIV.js → LXSXZ5PZ.js} +3 -3
  180. package/dist/cdn/M4IHAPFS.js +4 -0
  181. package/dist/cdn/{XDZ5DDWA.js → M7Y7OEPH.js} +3 -3
  182. package/dist/cdn/MJ4UYOY5.js +4 -0
  183. package/dist/cdn/MJD4UYQV.js +4 -0
  184. package/dist/cdn/{ZDKRS7QS.js → MSVU7KDD.js} +4 -4
  185. package/dist/cdn/{A3WJQEV7.js → MT3VGENM.js} +2 -2
  186. package/dist/cdn/{XCEE3SEK.js → MULD755N.js} +3 -3
  187. package/dist/cdn/{EKVRW3FM.js → MUNB2EIH.js} +3 -3
  188. package/dist/cdn/MVPUNAPA.js +4 -0
  189. package/dist/cdn/MWVLFGRN.js +4 -0
  190. package/dist/cdn/{SXZVPSYN.js → MXZUWU5U.js} +3 -3
  191. package/dist/cdn/N3JVQRW2.js +4 -0
  192. package/dist/cdn/{UWXNPHTE.js → N4JFNJAP.js} +2 -2
  193. package/dist/cdn/{KOI7FBWC.js → NDND3YNI.js} +3 -3
  194. package/dist/cdn/{G6EIQMVR.js → NFZDLBDU.js} +3 -3
  195. package/dist/cdn/NH6VXBT4.js +18 -0
  196. package/dist/cdn/NI2DYTWY.js +294 -0
  197. package/dist/cdn/{XAAGW7YF.js → NLQMBJV4.js} +3 -3
  198. package/dist/cdn/NTCE7WYQ.js +25 -0
  199. package/dist/cdn/{EAA2PB5H.js → NVNE6Q2Z.js} +3 -3
  200. package/dist/cdn/O2GXK46T.js +4 -0
  201. package/dist/cdn/{Y4RVCE5F.js → OIMYNYJF.js} +3 -3
  202. package/dist/cdn/{2T6B7XX3.js → OVDTA5OA.js} +3 -3
  203. package/dist/cdn/OVNKAN7A.js +4 -0
  204. package/dist/cdn/{NCYI3FJ4.js → OX6J3PGF.js} +3 -3
  205. package/dist/cdn/{WE2YJ72U.js → PCKCRHI3.js} +4 -4
  206. package/dist/cdn/{QMREQGH3.js → PIZGPSRE.js} +3 -3
  207. package/dist/cdn/PSE37RBN.js +4 -0
  208. package/dist/cdn/{JKJC7XFT.js → PSJIJOBC.js} +3 -3
  209. package/dist/cdn/{WPVYE7FE.js → Q6ECGAN5.js} +3 -3
  210. package/dist/cdn/{K3SH7RK6.js → Q6S2FYB7.js} +3 -3
  211. package/dist/cdn/{P7J4L36T.js → QB26MH3P.js} +2 -2
  212. package/dist/cdn/{KOWTHDEB.js → QCFKTDX2.js} +3 -3
  213. package/dist/cdn/{YSIFIKOE.js → QNOJFN72.js} +3 -3
  214. package/dist/cdn/{ZZ4UGIDE.js → QQI6TRPA.js} +3 -3
  215. package/dist/cdn/{GDYIFL6J.js → QU2IDIBF.js} +3 -3
  216. package/dist/cdn/{7BU5DV4Q.js → QU5SGFUX.js} +3 -3
  217. package/dist/cdn/QUJM7PBE.js +18 -0
  218. package/dist/cdn/R3PW6KSS.js +4 -0
  219. package/dist/cdn/{CPO6UAZQ.js → R4TPG3DO.js} +2 -2
  220. package/dist/cdn/R57C4DNW.js +4 -0
  221. package/dist/cdn/{3VN45O3V.js → R7BJ6S6M.js} +4 -4
  222. package/dist/cdn/{Q6U6FUMJ.js → RJ64W3BT.js} +3 -3
  223. package/dist/cdn/RNP3G6YO.js +4 -0
  224. package/dist/cdn/{2NJLBLNN.js → RPXFGP5K.js} +4 -4
  225. package/dist/cdn/{2ACF42ZR.js → SBP4N5DS.js} +3 -3
  226. package/dist/cdn/SP5ULXWS.js +4 -0
  227. package/dist/cdn/{STUHZQEZ.js → SROUOTOF.js} +2 -2
  228. package/dist/cdn/{22SEAIC6.js → STLINJZP.js} +3 -3
  229. package/dist/cdn/{AMVC3HZO.js → SVB3DAKW.js} +3 -3
  230. package/dist/cdn/T2FLCA5K.js +4 -0
  231. package/dist/cdn/{7MOURTYJ.js → T5BKBEIP.js} +3 -3
  232. package/dist/cdn/{TWADDFKI.js → T7QDW3RL.js} +4 -4
  233. package/dist/cdn/{KURSJGVA.js → TCJQUXXU.js} +3 -3
  234. package/dist/cdn/TCK3645Q.js +4 -0
  235. package/dist/cdn/{JRU7OOCQ.js → TDRR3ZLM.js} +4 -4
  236. package/dist/cdn/{547GZYOP.js → TF5CZ555.js} +4 -4
  237. package/dist/cdn/{GGI3REJL.js → TLC3SOX5.js} +3 -3
  238. package/dist/cdn/{7CNMLAFT.js → TYWZWTN6.js} +4 -4
  239. package/dist/cdn/{Q2VYZCZY.js → U4XP4SVP.js} +2 -2
  240. package/dist/cdn/{JTAN45P3.js → U65T7QXI.js} +3 -3
  241. package/dist/cdn/U75F55GL.js +4 -0
  242. package/dist/cdn/UB22ISME.js +4 -0
  243. package/dist/cdn/{VVGYJHF7.js → UBOZIJ2V.js} +3 -3
  244. package/dist/cdn/{NP7OH2ZI.js → UCE3PD7K.js} +3 -3
  245. package/dist/cdn/{EFBCF4LP.js → UDHOI5QJ.js} +3 -3
  246. package/dist/cdn/UHBAFPIP.js +4 -0
  247. package/dist/cdn/UI2K7A6K.js +4 -0
  248. package/dist/cdn/{P27R335T.js → UKVOZIPV.js} +2 -2
  249. package/dist/cdn/{6AJKPURT.js → UL36K2OL.js} +3 -3
  250. package/dist/cdn/{TY5HNZTA.js → ULCHU2DL.js} +3 -3
  251. package/dist/cdn/UML27CLC.js +4 -0
  252. package/dist/cdn/{AVVTO725.js → UN5OBM45.js} +3 -3
  253. package/dist/cdn/UNOUCRCA.js +18 -0
  254. package/dist/cdn/URE77NMF.js +4 -0
  255. package/dist/cdn/{THIMASMK.js → USBBZZHO.js} +3 -3
  256. package/dist/cdn/V7HQLFUM.js +4 -0
  257. package/dist/cdn/{X6L4PHXI.js → VH5CQ62Q.js} +3 -3
  258. package/dist/cdn/VHDZYP7A.js +4 -0
  259. package/dist/cdn/{CMN7YBVU.js → VMXZ6AXW.js} +3 -3
  260. package/dist/cdn/{M3F2PRVV.js → W2OEFMSP.js} +3 -3
  261. package/dist/cdn/{YBIF6TAJ.js → WCDHN44D.js} +3 -3
  262. package/dist/cdn/{P3YZSASH.js → WDPCEJWO.js} +3 -3
  263. package/dist/cdn/{3MOEHDA6.js → WFP3ARED.js} +4 -4
  264. package/dist/cdn/WGEDEGSC.js +4 -0
  265. package/dist/cdn/{JAO6QZJO.js → WMDLX4TU.js} +3 -3
  266. package/dist/cdn/{O6X34RFQ.js → WMIGNCA3.js} +3 -3
  267. package/dist/cdn/{XOCETJCR.js → WX3BUGVY.js} +3 -3
  268. package/dist/cdn/{MSGDDP7Y.js → WZ6HR352.js} +4 -4
  269. package/dist/cdn/{IBB2E74R.js → X77DVIHT.js} +3 -3
  270. package/dist/cdn/{WQF5CITX.js → X7INRGL2.js} +3 -3
  271. package/dist/cdn/{SM2GUROD.js → XAMZTC4V.js} +2 -2
  272. package/dist/cdn/XLW62QJP.js +4 -0
  273. package/dist/cdn/{2C7UE46M.js → XQIIB6WI.js} +2 -2
  274. package/dist/cdn/{YIO2CSY3.js → XVNMBFFV.js} +3 -3
  275. package/dist/cdn/XVOTZ36C.js +4 -0
  276. package/dist/cdn/XWZVSPN5.js +4 -0
  277. package/dist/cdn/{B7B7CVVL.js → XYM4QNUF.js} +3 -3
  278. package/dist/cdn/{QP35PXG2.js → Y4HMQERM.js} +4 -4
  279. package/dist/cdn/YDS7WOGV.js +4 -0
  280. package/dist/cdn/YFJPBXHX.js +4 -0
  281. package/dist/cdn/{LP4BQM2H.js → YJ3MW2JY.js} +3 -3
  282. package/dist/cdn/{KV5PYIUB.js → YKDWIWVB.js} +3 -3
  283. package/dist/cdn/YLTGZWFU.js +4 -0
  284. package/dist/cdn/{R5YJMFXC.js → YSKSWYAQ.js} +3 -3
  285. package/dist/cdn/ZC3XJXKM.js +18 -0
  286. package/dist/cdn/ZCFSRPYL.js +4 -0
  287. package/dist/cdn/{I657I5LG.js → ZF3NTVCO.js} +3 -3
  288. package/dist/cdn/{SXP3TCP2.js → ZG4LGFKY.js} +3 -3
  289. package/dist/cdn/{T5JHR5GE.js → ZI7THJT2.js} +3 -3
  290. package/dist/cdn/{7H3KZPHJ.js → ZIY4QFR5.js} +3 -3
  291. package/dist/cdn/{ECMZSRUN.js → ZL4KQF74.js} +3 -3
  292. package/dist/cdn/ZLULHNQF.js +4 -0
  293. package/dist/cdn/ZP7KUAQK.js +3 -0
  294. package/dist/cdn/{5S66UFIB.js → ZRE4MLAV.js} +4 -4
  295. package/dist/cdn/assets/solution-article-card/t9n/messages.en.json +1 -1
  296. package/dist/cdn/assets/solution-article-card/t9n/messages.json +1 -1
  297. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.en.json +1 -1
  298. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.json +1 -1
  299. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.en.json +1 -1
  300. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.json +1 -1
  301. package/dist/cdn/assets/solution-item-accordion/t9n/messages.en.json +1 -1
  302. package/dist/cdn/assets/solution-item-accordion/t9n/messages.json +1 -1
  303. package/dist/cdn/assets/solution-snapshot-gallery/t9n/messages.en.json +1 -1
  304. package/dist/cdn/assets/solution-snapshot-gallery/t9n/messages.json +1 -1
  305. package/dist/cdn/assets/solution-social-share/t9n/messages.en.json +1 -0
  306. package/dist/cdn/assets/solution-social-share/t9n/messages.json +1 -0
  307. package/dist/cdn/assets/solutions-all-panel/t9n/messages.en.json +1 -1
  308. package/dist/cdn/assets/solutions-all-panel/t9n/messages.json +1 -1
  309. package/dist/cdn/assets/solutions-articles/t9n/messages.en.json +1 -1
  310. package/dist/cdn/assets/solutions-articles/t9n/messages.json +1 -1
  311. package/dist/cdn/assets/solutions-deployed-panel/t9n/messages.en.json +1 -1
  312. package/dist/cdn/assets/solutions-deployed-panel/t9n/messages.json +1 -1
  313. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.en.json +1 -1
  314. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.json +1 -1
  315. package/dist/cdn/index.js +3 -3
  316. package/dist/cdn/main.css +1 -1
  317. package/dist/chunks/Auth.js +2 -2
  318. package/dist/chunks/appConfig.js +2 -2
  319. package/dist/chunks/cardFetchingUtils.js +2 -2
  320. package/dist/chunks/common.js +2 -2
  321. package/dist/chunks/deployAppContexts.js +2 -2
  322. package/dist/chunks/downloadUtils.js +2 -2
  323. package/dist/chunks/helpers.js +46 -33
  324. package/dist/chunks/index.js +325 -413
  325. package/dist/chunks/interfaces.js +2 -2
  326. package/dist/chunks/loadModules.js +2 -2
  327. package/dist/chunks/mapViewUtils.js +2 -2
  328. package/dist/chunks/pciUtils.js +2 -2
  329. package/dist/chunks/popupUtils.js +2 -2
  330. package/dist/chunks/prepareDataForSolutionDisplay.js +2 -2
  331. package/dist/chunks/privilegeUtils.js +2 -2
  332. package/dist/chunks/publicNotificationStore.js +2 -2
  333. package/dist/chunks/queryUtils.js +2 -2
  334. package/dist/chunks/runtime.js +4 -4
  335. package/dist/chunks/solution-store.js +2 -2
  336. package/dist/chunks/templates.js +2 -2
  337. package/dist/chunks/useT9n.js +2 -2
  338. package/dist/components/arcgis-solutions-assistant/customElement.d.ts +1 -1
  339. package/dist/components/arcgis-solutions-assistant/customElement.js +9 -10
  340. package/dist/components/basemap-gallery/customElement.d.ts +1 -1
  341. package/dist/components/basemap-gallery/customElement.js +9 -10
  342. package/dist/components/buffer-tools/customElement.d.ts +1 -1
  343. package/dist/components/buffer-tools/customElement.js +9 -10
  344. package/dist/components/card-manager/customElement.d.ts +1 -1
  345. package/dist/components/card-manager/customElement.js +15 -16
  346. package/dist/components/consent-manager/customElement.d.ts +1 -1
  347. package/dist/components/consent-manager/customElement.js +1780 -1724
  348. package/dist/components/create-feature/customElement.d.ts +1 -1
  349. package/dist/components/create-feature/customElement.js +7 -8
  350. package/dist/components/create-related-feature/customElement.d.ts +1 -1
  351. package/dist/components/create-related-feature/customElement.js +8 -9
  352. package/dist/components/crowdsource-manager/customElement.d.ts +4 -2
  353. package/dist/components/crowdsource-manager/customElement.js +10 -11
  354. package/dist/components/crowdsource-manager/index.d.ts +1 -1
  355. package/dist/components/crowdsource-manager/index.js +1 -1
  356. package/dist/components/crowdsource-reporter/customElement.d.ts +1 -1
  357. package/dist/components/crowdsource-reporter/customElement.js +8 -9
  358. package/dist/components/crowdsource-reporter/index.d.ts +2 -2
  359. package/dist/components/crowdsource-reporter/index.js +2 -2
  360. package/dist/components/deduct-calculator/customElement.d.ts +1 -1
  361. package/dist/components/deduct-calculator/customElement.js +9 -10
  362. package/dist/components/delete-button/customElement.d.ts +1 -1
  363. package/dist/components/delete-button/customElement.js +7 -8
  364. package/dist/components/delete-dialog/customElement.d.ts +1 -1
  365. package/dist/components/delete-dialog/customElement.js +9 -10
  366. package/dist/components/edit-card/customElement.d.ts +1 -1
  367. package/dist/components/edit-card/customElement.js +10 -11
  368. package/dist/components/feature-details/customElement.d.ts +1 -1
  369. package/dist/components/feature-details/customElement.js +8 -9
  370. package/dist/components/feature-list/customElement.d.ts +1 -1
  371. package/dist/components/feature-list/customElement.js +9 -10
  372. package/dist/components/field-selection/customElement.d.ts +1 -1
  373. package/dist/components/field-selection/customElement.js +10 -11
  374. package/dist/components/floor-filter/customElement.d.ts +1 -1
  375. package/dist/components/floor-filter/customElement.js +9 -10
  376. package/dist/components/info-card/customElement.d.ts +1 -1
  377. package/dist/components/info-card/customElement.js +8 -9
  378. package/dist/components/json-editor/customElement.d.ts +1 -1
  379. package/dist/components/json-editor/customElement.js +10 -11
  380. package/dist/components/layer-list/customElement.d.ts +1 -1
  381. package/dist/components/layer-list/customElement.js +7 -8
  382. package/dist/components/layer-table/customElement.d.ts +4 -2
  383. package/dist/components/layer-table/customElement.js +7 -8
  384. package/dist/components/layer-table/index.d.ts +1 -1
  385. package/dist/components/layer-table/index.js +1 -1
  386. package/dist/components/map-card/customElement.d.ts +1 -1
  387. package/dist/components/map-card/customElement.js +7 -8
  388. package/dist/components/map-card/index.d.ts +1 -1
  389. package/dist/components/map-card/index.js +1 -1
  390. package/dist/components/map-draw-tools/customElement.d.ts +1 -1
  391. package/dist/components/map-draw-tools/customElement.js +10 -11
  392. package/dist/components/map-fullscreen/customElement.d.ts +1 -1
  393. package/dist/components/map-fullscreen/customElement.js +12 -13
  394. package/dist/components/map-layer-picker/customElement.d.ts +1 -1
  395. package/dist/components/map-layer-picker/customElement.js +11 -12
  396. package/dist/components/map-legend/customElement.d.ts +1 -1
  397. package/dist/components/map-legend/customElement.js +9 -10
  398. package/dist/components/map-picker/customElement.d.ts +1 -1
  399. package/dist/components/map-picker/customElement.js +7 -8
  400. package/dist/components/map-search/customElement.d.ts +1 -1
  401. package/dist/components/map-search/customElement.js +11 -12
  402. package/dist/components/map-select-tools/customElement.d.ts +1 -1
  403. package/dist/components/map-select-tools/customElement.js +9 -10
  404. package/dist/components/map-tools/customElement.d.ts +1 -1
  405. package/dist/components/map-tools/customElement.js +6 -7
  406. package/dist/components/pci-calculator/customElement.d.ts +1 -1
  407. package/dist/components/pci-calculator/customElement.js +11 -12
  408. package/dist/components/pdf-download/customElement.d.ts +1 -1
  409. package/dist/components/pdf-download/customElement.js +24 -25
  410. package/dist/components/public-notification/customElement.d.ts +1 -1
  411. package/dist/components/public-notification/customElement.js +20 -21
  412. package/dist/components/refine-selection/customElement.d.ts +1 -1
  413. package/dist/components/refine-selection/customElement.js +17 -18
  414. package/dist/components/selection-tool/customElement.d.ts +1 -1
  415. package/dist/components/selection-tool/customElement.js +3 -3
  416. package/dist/components/solution-article-card/customElement.d.ts +33 -1
  417. package/dist/components/solution-article-card/customElement.js +24 -19
  418. package/dist/components/solution-article-card/index.d.ts +1 -0
  419. package/dist/components/solution-article-card/index.js +1 -0
  420. package/dist/components/solution-configuration/customElement.d.ts +1 -1
  421. package/dist/components/solution-configuration/customElement.js +11 -12
  422. package/dist/components/solution-configure-dialog/customElement.d.ts +6 -7
  423. package/dist/components/solution-configure-dialog/customElement.js +121 -46
  424. package/dist/components/solution-configure-dialog/index.d.ts +1 -0
  425. package/dist/components/solution-configure-dialog/index.js +1 -0
  426. package/dist/components/solution-configure-titles/customElement.d.ts +3 -1
  427. package/dist/components/solution-configure-titles/customElement.js +39 -23
  428. package/dist/components/solution-contents/customElement.d.ts +1 -1
  429. package/dist/components/solution-contents/customElement.js +8 -9
  430. package/dist/components/solution-delete-dialog/customElement.d.ts +9 -11
  431. package/dist/components/solution-delete-dialog/customElement.js +55 -59
  432. package/dist/components/solution-deploy-dialog/customElement.d.ts +2 -10
  433. package/dist/components/solution-deploy-dialog/customElement.js +132 -83
  434. package/dist/components/solution-deployed-card/customElement.d.ts +1 -9
  435. package/dist/components/solution-deployed-card/customElement.js +29 -29
  436. package/dist/components/solution-deploying-dialog/customElement.d.ts +1 -1
  437. package/dist/components/solution-deploying-dialog/customElement.js +11 -12
  438. package/dist/components/solution-details-card/customElement.d.ts +1 -1
  439. package/dist/components/solution-details-card/customElement.js +9 -10
  440. package/dist/components/solution-details-panel/customElement.d.ts +1 -7
  441. package/dist/components/solution-details-panel/customElement.js +97 -91
  442. package/dist/components/solution-details-panel/index.d.ts +1 -0
  443. package/dist/components/solution-details-panel/index.js +1 -0
  444. package/dist/components/solution-item/customElement.d.ts +1 -1
  445. package/dist/components/solution-item/customElement.js +7 -8
  446. package/dist/components/solution-item-accordion/customElement.d.ts +1 -1
  447. package/dist/components/solution-item-accordion/customElement.js +8 -9
  448. package/dist/components/solution-item-details/customElement.d.ts +1 -1
  449. package/dist/components/solution-item-details/customElement.js +10 -11
  450. package/dist/components/solution-item-diagram/customElement.d.ts +1 -1
  451. package/dist/components/solution-item-diagram/customElement.js +9 -10
  452. package/dist/components/solution-item-icon/customElement.d.ts +1 -1
  453. package/dist/components/solution-item-icon/customElement.js +8 -9
  454. package/dist/components/solution-item-sharing/customElement.d.ts +1 -1
  455. package/dist/components/solution-item-sharing/customElement.js +14 -15
  456. package/dist/components/solution-organization-variables/customElement.d.ts +1 -1
  457. package/dist/components/solution-organization-variables/customElement.js +7 -8
  458. package/dist/components/solution-resource-item/customElement.d.ts +1 -1
  459. package/dist/components/solution-resource-item/customElement.js +15 -16
  460. package/dist/components/solution-snapshot-gallery/customElement.d.ts +1 -6
  461. package/dist/components/solution-snapshot-gallery/customElement.js +15 -15
  462. package/dist/components/solution-social-share/customElement.d.ts +117 -0
  463. package/dist/components/solution-social-share/customElement.js +178 -0
  464. package/dist/components/solution-social-share/index.d.ts +5 -0
  465. package/dist/components/solution-social-share/index.js +5 -0
  466. package/dist/components/solution-spatial-ref/customElement.d.ts +1 -1
  467. package/dist/components/solution-spatial-ref/customElement.js +19 -20
  468. package/dist/components/solution-template-data/customElement.d.ts +1 -1
  469. package/dist/components/solution-template-data/customElement.js +8 -9
  470. package/dist/components/solution-variables/customElement.d.ts +1 -1
  471. package/dist/components/solution-variables/customElement.js +8 -9
  472. package/dist/components/solutions-all-panel/customElement.d.ts +1 -9
  473. package/dist/components/solutions-all-panel/customElement.js +18 -18
  474. package/dist/components/solutions-all-shell/customElement.d.ts +3 -1
  475. package/dist/components/solutions-all-shell/customElement.js +19 -16
  476. package/dist/components/solutions-article-panel/customElement.d.ts +13 -1
  477. package/dist/components/solutions-article-panel/customElement.js +18 -19
  478. package/dist/components/solutions-articles/customElement.d.ts +3 -1
  479. package/dist/components/solutions-articles/customElement.js +54 -16
  480. package/dist/components/solutions-articles/index.d.ts +10 -0
  481. package/dist/components/solutions-articles/index.js +10 -0
  482. package/dist/components/solutions-articles-shell/customElement.d.ts +1 -1
  483. package/dist/components/solutions-articles-shell/customElement.js +10 -11
  484. package/dist/components/solutions-articles-shell/index.d.ts +3 -0
  485. package/dist/components/solutions-articles-shell/index.js +3 -0
  486. package/dist/components/solutions-deployed-panel/customElement.d.ts +3 -11
  487. package/dist/components/solutions-deployed-panel/customElement.js +44 -40
  488. package/dist/components/solutions-deployed-panel/index.d.ts +1 -0
  489. package/dist/components/solutions-deployed-panel/index.js +1 -0
  490. package/dist/components/solutions-deployed-shell/customElement.d.ts +1 -1
  491. package/dist/components/solutions-deployed-shell/customElement.js +16 -16
  492. package/dist/components/solutions-filter-panel/customElement.d.ts +1 -1
  493. package/dist/components/solutions-filter-panel/customElement.js +13 -12
  494. package/dist/components/spatial-ref/customElement.d.ts +1 -1
  495. package/dist/components/spatial-ref/customElement.js +8 -9
  496. package/dist/components/store-manager/customElement.d.ts +1 -1
  497. package/dist/components/store-manager/customElement.js +2 -2
  498. package/dist/docs/api.json +1351 -474
  499. package/dist/docs/docs.json +990 -484
  500. package/dist/docs/vscode.css-custom-data.json +30 -1
  501. package/dist/docs/vscode.html-custom-data.json +313 -16
  502. package/dist/docs/web-types.json +528 -104
  503. package/dist/index.d.ts +24 -2
  504. package/dist/index.js +2 -2
  505. package/dist/loader.js +14 -13
  506. package/dist/types/lumina.d.ts +18 -9
  507. package/dist/types/preact.d.ts +19 -9
  508. package/dist/types/react.d.ts +20 -9
  509. package/dist/types/stencil.d.ts +18 -9
  510. package/dist/utils/helpers.d.ts +20 -1
  511. package/dist/utils/interfaces.d.ts +27 -23
  512. package/package.json +34 -29
  513. package/dist/cdn/2A54WJLL.js +0 -4
  514. package/dist/cdn/2CO6LGS3.js +0 -4
  515. package/dist/cdn/2ESDNOLP.js +0 -25
  516. package/dist/cdn/3SJSHFDQ.js +0 -4
  517. package/dist/cdn/47HUGK47.js +0 -4
  518. package/dist/cdn/4ASSBQRJ.js +0 -8
  519. package/dist/cdn/4JAS7M3U.js +0 -82
  520. package/dist/cdn/4SEEFYPD.js +0 -4
  521. package/dist/cdn/5BK4CWOX.js +0 -4
  522. package/dist/cdn/5YO5OS74.js +0 -4
  523. package/dist/cdn/65HTNVVT.js +0 -4
  524. package/dist/cdn/6CG6AANG.js +0 -18
  525. package/dist/cdn/6IIAYEYM.js +0 -18
  526. package/dist/cdn/A57HOD63.js +0 -18
  527. package/dist/cdn/ALV3VZWM.js +0 -18
  528. package/dist/cdn/B6GTZILX.js +0 -383
  529. package/dist/cdn/BIFHOJDA.js +0 -4
  530. package/dist/cdn/BIVE3ZGY.js +0 -4
  531. package/dist/cdn/BNYADJK7.js +0 -18
  532. package/dist/cdn/BVZ2O4L5.js +0 -4
  533. package/dist/cdn/CNAEZ5PG.js +0 -3
  534. package/dist/cdn/DAJFINWG.js +0 -4
  535. package/dist/cdn/EXGOSSST.js +0 -18
  536. package/dist/cdn/EXPAYLFV.js +0 -18
  537. package/dist/cdn/EZ4U6AGL.js +0 -4
  538. package/dist/cdn/F243JFYJ.js +0 -4
  539. package/dist/cdn/FH3SI764.js +0 -294
  540. package/dist/cdn/FHIBMCQA.js +0 -4
  541. package/dist/cdn/HGXPDXCR.js +0 -18
  542. package/dist/cdn/HJIGIFOQ.js +0 -4
  543. package/dist/cdn/I65O4DPY.js +0 -18
  544. package/dist/cdn/IWNKMVAS.js +0 -4
  545. package/dist/cdn/J64IOAQO.js +0 -9
  546. package/dist/cdn/J6ENWA7R.js +0 -4
  547. package/dist/cdn/JFYTC7KL.js +0 -4
  548. package/dist/cdn/JKX35XOC.js +0 -4
  549. package/dist/cdn/KDP6FDXS.js +0 -4
  550. package/dist/cdn/L3LGCXHS.js +0 -4
  551. package/dist/cdn/LBZLGIWD.js +0 -18
  552. package/dist/cdn/LGOLEOFG.js +0 -4
  553. package/dist/cdn/LHXHL3RB.js +0 -4
  554. package/dist/cdn/LJSLZOAW.js +0 -4
  555. package/dist/cdn/LOVLAODG.js +0 -4
  556. package/dist/cdn/LVAZCCYX.js +0 -4
  557. package/dist/cdn/MXCKPU23.js +0 -4
  558. package/dist/cdn/N65S4NHY.js +0 -4
  559. package/dist/cdn/N7ACGWAI.js +0 -4
  560. package/dist/cdn/NGDTJRWQ.js +0 -4
  561. package/dist/cdn/NSCQHAM7.js +0 -4
  562. package/dist/cdn/NZ42ZTHT.js +0 -4
  563. package/dist/cdn/O5OQYVQ3.js +0 -18
  564. package/dist/cdn/OMFYWQSY.js +0 -4
  565. package/dist/cdn/OTBZT6CE.js +0 -4
  566. package/dist/cdn/OUA6OKHZ.js +0 -4
  567. package/dist/cdn/PAPULN5H.js +0 -4
  568. package/dist/cdn/PVPNQBWZ.js +0 -4
  569. package/dist/cdn/Q6HRIABM.js +0 -18
  570. package/dist/cdn/QD76ALH3.js +0 -18
  571. package/dist/cdn/QRBQ5KHF.js +0 -4
  572. package/dist/cdn/QSOTGUOZ.js +0 -4
  573. package/dist/cdn/QZIAEDXM.js +0 -4
  574. package/dist/cdn/RGTPM7HZ.js +0 -18
  575. package/dist/cdn/ROJGI2W3.js +0 -4
  576. package/dist/cdn/RV65ILJG.js +0 -4
  577. package/dist/cdn/S7NFYQWB.js +0 -3
  578. package/dist/cdn/SIUHVSRB.js +0 -18
  579. package/dist/cdn/SZDHEJ35.js +0 -4
  580. package/dist/cdn/T3WZ5RIH.js +0 -4
  581. package/dist/cdn/TTOMCAES.js +0 -4
  582. package/dist/cdn/UDLYWYW6.js +0 -4
  583. package/dist/cdn/UESCD5AB.js +0 -4
  584. package/dist/cdn/UMSXHNKH.js +0 -4
  585. package/dist/cdn/UR4O5D7C.js +0 -4
  586. package/dist/cdn/UV2M2RAL.js +0 -4
  587. package/dist/cdn/VBSXEYLV.js +0 -4
  588. package/dist/cdn/VHDIRVUR.js +0 -4
  589. package/dist/cdn/VOHSJZCI.js +0 -4
  590. package/dist/cdn/VP2MDCXM.js +0 -4
  591. package/dist/cdn/WAPUSBNS.js +0 -4
  592. package/dist/cdn/WSCCQ5U4.js +0 -5
  593. package/dist/cdn/WV5BUD4Z.js +0 -4
  594. package/dist/cdn/X7KYTABF.js +0 -4
  595. package/dist/cdn/XGGAVQTC.js +0 -4
  596. package/dist/cdn/XNPZJ7V4.js +0 -18
  597. package/dist/cdn/XR3GB5SE.js +0 -6
  598. package/dist/cdn/XXU7NGZI.js +0 -18
  599. package/dist/cdn/Y4CRJWJF.js +0 -29
  600. package/dist/cdn/Y5TEYKUG.js +0 -4
  601. package/dist/cdn/YQE7AUFT.js +0 -4
  602. package/dist/cdn/YWZCXS4Z.js +0 -18
  603. package/dist/cdn/Z5RJQBZY.js +0 -4
  604. package/dist/cdn/ZTVPU2LX.js +0 -4
  605. package/dist/cdn/ZWW6ZGXP.js +0 -8
@@ -0,0 +1,379 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
+ v1.1.0-next.20250731.1 */
4
+ import{a as bt}from"./RPXFGP5K.js";import{a as $}from"./JQKKZGRJ.js";import{a as G}from"./ZCFSRPYL.js";import{c as J,n as X,t as K,z as Q}from"./MJ4UYOY5.js";import{b as q}from"./UML27CLC.js";import"./L3KYPR4U.js";import"./HI22GMCZ.js";import{A as h,h as W,i as c,k as V,n as z,w as m,x as d,y as j}from"./A2QNF47K.js";import{d as xt}from"./N3JVQRW2.js";function Y(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let i=document.implementation.createHTMLDocument(),n=i.createElement("base"),r=i.createElement("a");return i.head.appendChild(n),i.body.appendChild(r),t&&(n.href=t),r.href=e,r.href}var Z=(()=>{let e=0,t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function v(e){let t=[];for(let i=0,n=e.length;i<n;i++)t.push(e[i]);return t}var x=null;function T(e={}){return x||(e.includeStyleProperties?(x=e.includeStyleProperties,x):(x=v(window.getComputedStyle(document.documentElement)),x))}function S(e,t){let n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function yt(e){let t=S(e,"border-left-width"),i=S(e,"border-right-width");return e.clientWidth+t+i}function Et(e){let t=S(e,"border-top-width"),i=S(e,"border-bottom-width");return e.clientHeight+t+i}function L(e,t={}){let i=t.width||yt(e),n=t.height||Et(e);return{width:i,height:n}}function N(){let e,t;try{t=process}catch{}let i=t&&t.env?t.env.devicePixelRatio:null;return i&&(e=parseInt(i,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}var g=16384;function tt(e){(e.width>g||e.height>g)&&(e.width>g&&e.height>g?e.width>e.height?(e.height*=g/e.width,e.width=g):(e.width*=g/e.height,e.height=g):e.width>g?(e.height*=g/e.width,e.width=g):(e.width*=g/e.height,e.height=g))}function b(e){return new Promise((t,i)=>{let n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>t(n))})},n.onerror=i,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function _t(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function et(e,t,i){let n="http://www.w3.org/2000/svg",r=document.createElementNS(n,"svg"),s=document.createElementNS(n,"foreignObject");return r.setAttribute("width",`${t}`),r.setAttribute("height",`${i}`),r.setAttribute("viewBox",`0 0 ${t} ${i}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),r.appendChild(s),s.appendChild(e),_t(r)}var u=(e,t)=>{if(e instanceof t)return!0;let i=Object.getPrototypeOf(e);return i===null?!1:i.constructor.name===t.name||u(i,t)};function Ct(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Pt(e,t){return T(t).map(i=>{let n=e.getPropertyValue(i),r=e.getPropertyPriority(i);return`${i}: ${n}${r?" !important":""};`}).join(" ")}function St(e,t,i,n){let r=`.${e}:${t}`,s=i.cssText?Ct(i):Pt(i,n);return document.createTextNode(`${r}{${s}}`)}function it(e,t,i,n){let r=window.getComputedStyle(e,i),s=r.getPropertyValue("content");if(s===""||s==="none")return;let a=Z();try{t.className=`${t.className} ${a}`}catch{return}let o=document.createElement("style");o.appendChild(St(a,i,r,n)),t.appendChild(o)}function nt(e,t,i){it(e,t,":before",i),it(e,t,":after",i)}var rt="application/font-woff",st="image/jpeg",Tt={woff:rt,woff2:rt,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:st,jpeg:st,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function kt(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function y(e){let t=kt(e).toLowerCase();return Tt[t]||""}function It(e){return e.split(/,/)[1]}function C(e){return e.search(/^(data:)/)!==-1}function F(e,t){return`data:${t};base64,${e}`}async function R(e,t,i){let n=await fetch(e,t);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);let r=await n.blob();return new Promise((s,a)=>{let o=new FileReader;o.onerror=a,o.onloadend=()=>{try{s(i({res:n,result:o.result}))}catch(p){a(p)}},o.readAsDataURL(r)})}var M={};function $t(e,t,i){let n=e.replace(/\?.*/,"");return i&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}async function E(e,t,i){let n=$t(e,t,i.includeQueryParams);if(M[n]!=null)return M[n];i.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let r;try{let s=await R(e,i.fetchRequestInit,({res:a,result:o})=>(t||(t=a.headers.get("Content-Type")||""),It(o)));r=F(s,t)}catch(s){r=i.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;s&&(a=typeof s=="string"?s:s.message),a&&console.warn(a)}return M[n]=r,r}async function Lt(e){let t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):b(t)}async function Mt(e,t){if(e.currentSrc){let s=document.createElement("canvas"),a=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,a?.drawImage(e,0,0,s.width,s.height);let o=s.toDataURL();return b(o)}let i=e.poster,n=y(i),r=await E(i,n,t);return b(r)}async function Ft(e,t){var i;try{if(!((i=e?.contentDocument)===null||i===void 0)&&i.body)return await P(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function Rt(e,t){return u(e,HTMLCanvasElement)?Lt(e):u(e,HTMLVideoElement)?Mt(e,t):u(e,HTMLIFrameElement)?Ft(e,t):e.cloneNode(at(e))}var Dt=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",at=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function At(e,t,i){var n,r;if(at(t))return t;let s=[];return Dt(e)&&e.assignedNodes?s=v(e.assignedNodes()):u(e,HTMLIFrameElement)&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?s=v(e.contentDocument.body.childNodes):s=v(((r=e.shadowRoot)!==null&&r!==void 0?r:e).childNodes),s.length===0||u(e,HTMLVideoElement)||await s.reduce((a,o)=>a.then(()=>P(o,i)).then(p=>{p&&t.appendChild(p)}),Promise.resolve()),t}function Bt(e,t,i){let n=t.style;if(!n)return;let r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):T(i).forEach(s=>{let a=r.getPropertyValue(s);s==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),u(e,HTMLIFrameElement)&&s==="display"&&a==="inline"&&(a="block"),s==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(s,a,r.getPropertyPriority(s))})}function Ht(e,t){u(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),u(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Ut(e,t){if(u(e,HTMLSelectElement)){let i=t,n=Array.from(i.children).find(r=>e.value===r.getAttribute("value"));n&&n.setAttribute("selected","")}}function Ot(e,t,i){return u(t,Element)&&(Bt(e,t,i),nt(e,t,i),Ht(e,t),Ut(e,t)),t}async function Wt(e,t){let i=e.querySelectorAll?e.querySelectorAll("use"):[];if(i.length===0)return e;let n={};for(let s=0;s<i.length;s++){let o=i[s].getAttribute("xlink:href");if(o){let p=e.querySelector(o),f=document.querySelector(o);!p&&f&&!n[o]&&(n[o]=await P(f,t,!0))}}let r=Object.values(n);if(r.length){let s="http://www.w3.org/1999/xhtml",a=document.createElementNS(s,"svg");a.setAttribute("xmlns",s),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";let o=document.createElementNS(s,"defs");a.appendChild(o);for(let p=0;p<r.length;p++)o.appendChild(r[p]);e.appendChild(a)}return e}async function P(e,t,i){return!i&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(n=>Rt(n,t)).then(n=>At(e,n,t)).then(n=>Ot(e,n,t)).then(n=>Wt(n,t))}var ot=/url\((['"]?)([^'"]+?)\1\)/g,Vt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,zt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function jt(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function qt(e){let t=[];return e.replace(ot,(i,n,r)=>(t.push(r),i)),t.filter(i=>!C(i))}async function Gt(e,t,i,n,r){try{let s=i?Y(t,i):t,a=y(t),o;if(r){let p=await r(s);o=F(p,a)}else o=await E(s,a,n);return e.replace(jt(t),`$1${o}$3`)}catch{}return e}function Jt(e,{preferredFontFormat:t}){return t?e.replace(zt,i=>{for(;;){let[n,,r]=Vt.exec(i)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}function D(e){return e.search(ot)!==-1}async function k(e,t,i){if(!D(e))return e;let n=Jt(e,i);return qt(n).reduce((s,a)=>s.then(o=>Gt(o,a,t,i)),Promise.resolve(n))}async function _(e,t,i){var n;let r=(n=t.style)===null||n===void 0?void 0:n.getPropertyValue(e);if(r){let s=await k(r,null,i);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function Xt(e,t){await _("background",e,t)||await _("background-image",e,t),await _("mask",e,t)||await _("-webkit-mask",e,t)||await _("mask-image",e,t)||await _("-webkit-mask-image",e,t)}async function Kt(e,t){let i=u(e,HTMLImageElement);if(!(i&&!C(e.src))&&!(u(e,SVGImageElement)&&!C(e.href.baseVal)))return;let n=i?e.src:e.href.baseVal,r=await E(n,y(n),t);await new Promise((s,a)=>{e.onload=s,e.onerror=t.onImageErrorHandler?(...p)=>{try{s(t.onImageErrorHandler(...p))}catch(f){a(f)}}:a;let o=e;o.decode&&(o.decode=s),o.loading==="lazy"&&(o.loading="eager"),i?(e.srcset="",e.src=r):e.href.baseVal=r})}async function Qt(e,t){let n=v(e.childNodes).map(r=>A(r,t));await Promise.all(n).then(()=>e)}async function A(e,t){u(e,Element)&&(await Xt(e,t),await Kt(e,t),await Qt(e,t))}function pt(e,t){let{style:i}=e;t.backgroundColor&&(i.backgroundColor=t.backgroundColor),t.width&&(i.width=`${t.width}px`),t.height&&(i.height=`${t.height}px`);let n=t.style;return n!=null&&Object.keys(n).forEach(r=>{i[r]=n[r]}),e}var lt={};async function ct(e){let t=lt[e];if(t!=null)return t;let n=await(await fetch(e)).text();return t={url:e,cssText:n},lt[e]=t,t}async function ht(e,t){let i=e.cssText,n=/url\(["']?([^"')]+)["']?\)/g,s=(i.match(/url\([^)]+\)/g)||[]).map(async a=>{let o=a.replace(n,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),R(o,t.fetchRequestInit,({result:p})=>(i=i.replace(a,`url(${p})`),[a,p]))});return Promise.all(s).then(()=>i)}function dt(e){if(e==null)return[];let t=[],i=/(\/\*[\s\S]*?\*\/)/gi,n=e.replace(i,""),r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let p=r.exec(n);if(p===null)break;t.push(p[0])}n=n.replace(r,"");let s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",o=new RegExp(a,"gi");for(;;){let p=s.exec(n);if(p===null){if(p=o.exec(n),p===null)break;s.lastIndex=o.lastIndex}else o.lastIndex=s.lastIndex;t.push(p[0])}return t}async function Yt(e,t){let i=[],n=[];return e.forEach(r=>{if("cssRules"in r)try{v(r.cssRules||[]).forEach((s,a)=>{if(s.type===CSSRule.IMPORT_RULE){let o=a+1,p=s.href,f=ct(p).then(w=>ht(w,t)).then(w=>dt(w).forEach(I=>{try{r.insertRule(I,I.startsWith("@import")?o+=1:r.cssRules.length)}catch(wt){console.error("Error inserting rule from remote css",{rule:I,error:wt})}})).catch(w=>{console.error("Error loading remote css",w.toString())});n.push(f)}})}catch(s){let a=e.find(o=>o.href==null)||document.styleSheets[0];r.href!=null&&n.push(ct(r.href).then(o=>ht(o,t)).then(o=>dt(o).forEach(p=>{a.insertRule(p,a.cssRules.length)})).catch(o=>{console.error("Error loading remote stylesheet",o)})),console.error("Error inlining remote css file",s)}}),Promise.all(n).then(()=>(e.forEach(r=>{if("cssRules"in r)try{v(r.cssRules||[]).forEach(s=>{i.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${r.href}`,s)}}),i))}function Zt(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>D(t.style.getPropertyValue("src")))}async function Nt(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");let i=v(e.ownerDocument.styleSheets),n=await Yt(i,t);return Zt(n)}function ut(e){return e.trim().replace(/["']/g,"")}function te(e){let t=new Set;function i(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(s=>{t.add(ut(s))}),Array.from(n.children).forEach(s=>{s instanceof HTMLElement&&i(s)})}return i(e),t}async function mt(e,t){let i=await Nt(e,t),n=te(e);return(await Promise.all(i.filter(s=>n.has(ut(s.style.fontFamily))).map(s=>{let a=s.parentStyleSheet?s.parentStyleSheet.href:null;return k(s.cssText,a,t)}))).join(`
5
+ `)}async function gt(e,t){let i=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await mt(e,t);if(i){let n=document.createElement("style"),r=document.createTextNode(i);n.appendChild(r),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}}async function ee(e,t={}){let{width:i,height:n}=L(e,t),r=await P(e,t,!0);return await gt(r,t),await A(r,t),pt(r,t),await et(r,i,n)}async function ft(e,t={}){let{width:i,height:n}=L(e,t),r=await ee(e,t),s=await b(r),a=document.createElement("canvas"),o=a.getContext("2d"),p=t.pixelRatio||N(),f=t.canvasWidth||i,w=t.canvasHeight||n;return a.width=f*p,a.height=w*p,t.skipAutoScale||tt(a),a.style.width=`${f}`,a.style.height=`${w}`,t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,a.width,a.height)),o.drawImage(s,0,0,a.width,a.height),a}async function vt(e,t={}){return(await ft(e,t)).toDataURL()}async function B(e,t={}){return(await ft(e,t)).toDataURL("image/jpeg",t.quality||1)}var U=xt(bt(),1);var ie=`
6
+ @media print {
7
+ @page {
8
+ size: Portrait;
9
+ margin: .25in;
10
+ }
11
+
12
+ html, body {
13
+ padding: 0;
14
+ margin: 0;
15
+ height: 100%;
16
+ width: 100%;
17
+ }
18
+
19
+ body > *:not(.instant-apps-export-print) { display: none; }
20
+ }
21
+
22
+ * {
23
+ -webkit-print-color-adjust: exact;
24
+ color-adjust: exact;
25
+ }
26
+
27
+
28
+ .instant-apps-export-print {
29
+ position: absolute;
30
+ z-index: -999;
31
+ color: #323232 !important;
32
+ --esri-calcite-mode-name: "light";
33
+ }
34
+
35
+ .instant-apps-export-print__pdf {
36
+ height: 100%;
37
+ width: 100%;
38
+ display: grid;
39
+ gap: 24px;
40
+ grid-auto-flow: row;
41
+ }
42
+
43
+ .instant-apps-export-print__img {
44
+ display: grid;
45
+ width: auto;
46
+ }
47
+
48
+ .instant-apps-export-print__img--extra-content {
49
+ grid-template-columns: 2fr minmax(0, 325px);
50
+ }
51
+
52
+ .instant-apps-export-print, .instant-apps-export-print * {
53
+ box-sizing: border-box;
54
+ }
55
+
56
+ .instant-apps-export-print__view-section {
57
+ height: 100%;
58
+ }
59
+
60
+ .instant-apps-export-print__view-container {
61
+ height: 100%;
62
+ width: 100%;
63
+ display: flex;
64
+ justify-content: center;
65
+ flex-direction: column;
66
+ }
67
+
68
+ .instant-apps-export-print__img .instant-apps-export-print__view-container {
69
+ grid-row: 1;
70
+ grid-column: 1;
71
+ }
72
+
73
+ .instant-apps-export-print__view-wrapper {
74
+ height: fit-content;
75
+ width: fit-content;
76
+ position: relative;
77
+ display: flex;
78
+ flex-direction: column;
79
+ overflow: hidden;
80
+ }
81
+
82
+ .instant-apps-export-print__pdf .instant-apps-export-print__view-wrapper {
83
+ border: 2pt solid #323232;
84
+ }
85
+
86
+ .instant-apps-export-print__img .instant-apps-export-print__view-wrapper {
87
+ border: 1pt solid #323232;
88
+ }
89
+
90
+ .instant-apps-export-print__view {
91
+ object-fit: contain;
92
+ }
93
+
94
+ .instant-apps-export-print__extra-container {
95
+ grid-row: 1 / span 2;
96
+ grid-column: 2;
97
+ }
98
+
99
+ .instant-apps-export-print__extra-container .esri-feature.esri-widget .esri-widget__heading.esri-feature__title {
100
+ display: block;
101
+ }
102
+
103
+ .instant-apps-export-print__popup-container {
104
+ height: min-content;
105
+ max-width: 325px;
106
+ display: none;
107
+ color: #323232;
108
+ background: #fff;
109
+ break-inside: avoid;
110
+ }
111
+
112
+ .instant-apps-export-print__pdf .instant-apps-export-print__popup-container {
113
+ border: 1pt solid #323232;
114
+ }
115
+
116
+ .instant-apps-export-print__img .instant-apps-export-print__popup-container {
117
+ grid-row: 1 / span 2;
118
+ grid-column: 2;
119
+ }
120
+
121
+ .instant-apps-export-print__popup-title {
122
+ border-bottom: 1pt solid #323232;
123
+ }
124
+
125
+ .instant-apps-export-print__popup-content {
126
+ background: #fff;
127
+ padding-top: 8pt;
128
+ }
129
+
130
+ .instant-apps-export-print__popup-content .esri-feature-media__chart {
131
+ background: #fff;
132
+ }
133
+
134
+ .instant-apps-export-print__legend-container {
135
+ height: min-content;
136
+ background: #fff;
137
+ overflow: unset;
138
+ }
139
+
140
+ .instant-apps-export-print__img .instant-apps-export-print__attribution {
141
+ margin: 14px;
142
+ }
143
+
144
+ .instant-apps-export-print__img .instant-apps-export-print__legend-container {
145
+ margin: 14px;
146
+ grid-row: 2;
147
+ grid-column: 1;
148
+ }
149
+
150
+ .esri-legend--card, .esri-legend--card__service-content {
151
+ flex-flow: row wrap;
152
+ }
153
+
154
+ .instant-apps-export-print .esri-widget > *:not(.esri-scale-bar.esri-widget > *) {
155
+ background: #fff;
156
+ color: #323232;
157
+ }
158
+
159
+ .instant-apps-export-print__popup-content *, .instant-apps-export-print__img .esri-feature.esri-widget * {
160
+ color: #323232;
161
+ }
162
+
163
+ .instant-apps-export-print .esri-widget__heading {
164
+ margin: 4pt 7pt;
165
+ padding: 0;
166
+ color: #323232;
167
+ }
168
+
169
+ .instant-apps-export-print .esri-legend__ramp-label:before {
170
+ border-color: rgba(0,0,0,0) rgba(50,50,50,.8) rgba(0,0,0,0) rgba(0,0,0,0);
171
+ }
172
+
173
+ .instant-apps-export-print .esri-legend--card__section {
174
+ padding: 6pt;
175
+ min-width: unset;
176
+ }
177
+
178
+ .instant-apps-export-print .esri-legend--card__color-ramp-container > .esri-legend--card__ramp-label {
179
+ height: 25px;
180
+ line-height: 25px;
181
+ }
182
+
183
+ .instant-apps-export-print .esri-legend--card__color-ramp-container .esri-legend--card__interval-separators-container {
184
+ position: unset;
185
+ transform: unset;
186
+ text-align: center;
187
+ }
188
+
189
+ .instant-apps-export-print .esri-legend--card__section:first-child {
190
+ border-left: none;
191
+ }
192
+
193
+ .instant-apps-export-print .esri-legend--card__service {
194
+ border: none;
195
+ flex: 0 1 auto;
196
+ break-inside: avoid;
197
+ }
198
+
199
+ .instant-apps-export-print .esri-legend--card {
200
+ border: none;
201
+ gap: 6pt 12pt;
202
+ }
203
+
204
+ .instant-apps-export-print .esri-legend--card:not(:first-child),
205
+ .instant-apps-export-print .esri-compass.esri-widget:not(:first-child) {
206
+ display: none;
207
+ }
208
+
209
+ .instant-apps-export-print .esri-legend--card__service-caption-container {
210
+ height: unset;
211
+ padding: 0;
212
+ border-bottom: none;
213
+ }
214
+
215
+ .instant-apps-export-print .esri-legend--card__service-caption-text {
216
+ padding-bottom: 4px;
217
+ }
218
+
219
+ .instant-apps-export-print__compass-container {
220
+ position: absolute;
221
+ top: 65px;
222
+ left: 15px;
223
+ background: #fff;
224
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
225
+ --calcite-ui-icon-color: #000;
226
+ border-radius: 50%;
227
+ height: fit-content;
228
+ }
229
+
230
+ .instant-apps-export-print__compass-container .esri-compass {
231
+ background: #fff;
232
+ }
233
+
234
+ .instant-apps-export-print__compass-container .esri-compass__icon.esri-icon-compass {
235
+ color: #000;
236
+ }
237
+
238
+ .instant-apps-export-print__compass-container.esri-compass.esri-widget--button {
239
+ background: #fff;
240
+ }
241
+
242
+ .instant-apps-export-print__scale-bar-container {
243
+ width: 100%;
244
+ position: absolute;
245
+ bottom: 15px;
246
+ margin: 0 15px;
247
+ }
248
+
249
+ .instant-apps-export-print__scale-bar-container .esri-scale-bar__label {
250
+ color: #323232;
251
+ font-size: 10px;
252
+ padding: 0 4px;
253
+ }
254
+
255
+ .instant-apps-export-print__scale-bar-container--position .esri-scale-bar__label {
256
+ height: 10px;
257
+ padding: 0 2px;
258
+ line-height: 11px;
259
+ }
260
+
261
+ .instant-apps-export-print__scale-bar-container .esri-scale-bar__bar-container:nth-child(1n+3) {
262
+ display: none;
263
+ }
264
+
265
+ .instant-apps-export-print__scale-bar-container--position .esri-scale-bar__bar-container.esri-scale-bar__bar-container--line {
266
+ align-items: center;
267
+ }
268
+
269
+ .instant-apps-export-print__scale-bar-container .esri-scale-bar__line {
270
+ background-color: rgba(255, 255, 255, 0.66);
271
+ }
272
+
273
+ .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top {
274
+ width: var(--instant-apps-scale-bar-top) !important;
275
+ border-bottom: 2px solid #323232;
276
+ }
277
+
278
+ .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--bottom {
279
+ width: var(--instant-apps-scale-bar-bottom) !important;
280
+ border-top: 2px solid #323232;
281
+ }
282
+
283
+ .instant-apps-export-print__scale-bar-container--position .esri-scale-bar__label-container--line {
284
+ position: unset;
285
+ margin: 0 2px;
286
+ background-color: rgba(255, 255, 255, 0.66);
287
+ height: 10px;
288
+ display: flex;
289
+ align-items: center;
290
+ }
291
+
292
+ .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top:before,
293
+ .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top:after,
294
+ .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--bottom:before,
295
+ .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--bottom:after {
296
+ background-color: #323232;
297
+ border-right: 2px solid #323232;
298
+ }
299
+
300
+ .instant-apps-export-print__popup-container .esri-feature-media__item-navigation {
301
+ display: none;
302
+ }
303
+
304
+ .instant-apps-export-print__popup-container .esri-feature-media__chart.esri-feature-media__chart--rendered * {
305
+ width: 100%!important;
306
+ }
307
+
308
+ .instant-apps-export-print__popup-content .esri-popup__content {
309
+ margin: 0;
310
+ }
311
+
312
+ .instant-apps-export-print__content-container {
313
+ display: flex;
314
+ gap: 24px;
315
+ break-inside: avoid;
316
+ break-before: auto;
317
+ }
318
+
319
+ .instant-apps-export-print__attribution {
320
+ margin-top: 12px;
321
+ font-size: 10px;
322
+ }`,ne=`
323
+ .screenshot-preview.hide, .hide {
324
+ display: none;
325
+ }
326
+
327
+ .screenshot-cursor {
328
+ cursor: crosshair;
329
+ }
330
+
331
+ .relative {
332
+ position: relative;
333
+ }
334
+
335
+ #screenshot-mask {
336
+ position: absolute;
337
+ background: var(--instant-apps-screenshot-mask-background);
338
+ border: var(--instant-apps-screenshot-mask-border);
339
+ }
340
+
341
+ .screenshot-preview {
342
+ display: flex;
343
+ align-items: center;
344
+ justify-content: center;
345
+ position: absolute;
346
+ top: 0;
347
+ left: 0;
348
+ right: 0;
349
+ bottom: 0;
350
+ text-align: center;
351
+ background-color: rgba(0, 0, 0, 0.75);
352
+ }
353
+
354
+ .screenshot-preview * {
355
+ box-sizing: border-box;
356
+ }
357
+
358
+ .screenshot-img-container img {
359
+ max-height: 75%;
360
+ max-width: 75%;
361
+ object-fit: contain;
362
+ box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.5);
363
+ margin-bottom: 0.5em;
364
+ }
365
+
366
+ .screenshot-img-container {
367
+ height: 100%;
368
+ width: 100%;
369
+ overflow-y: auto;
370
+ margin-bottom: 8px;
371
+ display: flex;
372
+ flex-flow: column;
373
+ align-items: center;
374
+ justify-content: center;
375
+ }
376
+
377
+ .screenshot-img-container calcite-button {
378
+ margin: 5px;
379
+ }`,re=W`:host{display:block;--instant-apps-export-action-background: var(--calcite-color-foreground-1);--instant-apps-export-action-background-hover: var(--calcite-color-foreground-2);--instant-apps-export-action-background-press: var(--calcite-color-foreground-3);--instant-apps-export-action-height: 100%;--instant-apps-export-action-width: fit-content;--instant-apps-export-action-icon-color: var(--calcite-color-text-3);--instant-apps-export-action-icon-hover-color: var(--calcite-color-text-1);--instant-apps-export-background: var(--calcite-color-foreground-1);--instant-apps-export-text-color: var(--calcite-color-text-1);--instant-apps-export-popover-width: 250px;--instant-apps-export-button-text-dark-hover-color: #fff}.instant-apps-export{height:100%}.instant-apps-export *{box-sizing:border-box}.instant-apps-export__popover-container,.instant-apps-export__inline-container{padding:12px;background:var(--instant-apps-export-background);--calcite-color-text-1: var(--instant-apps-export-text-color)}.instant-apps-export__popover-container{width:var(--instant-apps-export-popover-width)}.instant-apps-export calcite-action{height:var(--instant-apps-export-action-height);width:var(--instant-apps-export-action-width);--calcite-color-foreground-1: var(--instant-apps-export-action-background);--calcite-color-foreground-2: var(--instant-apps-export-action-background-hover);--calcite-color-foreground-3: var(--instant-apps-export-action-background-press);--calcite-color-text-3: var(--instant-apps-export-action-icon-color);--calcite-color-text-1: var(--instant-apps-export-action-icon-hover-color)}.instant-apps-export .instant-apps-export-print{display:none}.instant-apps-export .instant-apps-export-print_img{display:flex;flex-flow:row wrap}.instant-apps-export__visually-hidden{position:absolute;top:0;z-index:-1;visibility:hidden}.instant-apps-export calcite-input{--calcite-color-foreground-1: var(--instant-apps-export-background);--calcite-color-text-1: var(--instant-apps-export-text-color)}.instant-apps-export calcite-popover{--calcite-color-foreground-1: var(--instant-apps-export-background)}.instant-apps-export calcite-switch{--calcite-color-foreground-1: #fff;--calcite-color-foreground-2: #f3f3f3}.instant-apps-export calcite-button:last-of-type{margin-top:.5rem}.calcite-mode-dark.instant-apps-export .instant-apps-export__set-map-area{--calcite-color-brand-hover: #fff}.calcite-mode-dark.instant-apps-export calcite-switch{--calcite-color-foreground-1: #2b2b2b;--calcite-color-foreground-2: #202020}.instant-apps-export__compass-container.esri-widget{background:#fff;box-shadow:0 1px 2px #0000004d}.instant-apps-export__compass-container.esri-widget .esri-compass__icon.esri-icon-compass{color:#6e6e6e}.hide{display:none}.screenshotCursor{cursor:crosshair}`,l={baseDark:"instant-apps-export calcite-mode-dark",baseLight:"instant-apps-export calcite-mode-light",inlineContainer:"instant-apps-export__inline-container",popoverContainer:"instant-apps-export__popover-container",hidden:"instant-apps-export__visually-hidden",setMapArea:"instant-apps-export__set-map-area",print:{pdfBase:"instant-apps-export-print instant-apps-export-print__pdf",imgBase:"instant-apps-export-print instant-apps-export-print__img",imgExtraContent:"instant-apps-export-print__img--extra-content",contentContainer:"instant-apps-export-print__content-container",extraContainer:"instant-apps-export-print__extra-container",legendContainer:"instant-apps-export-print__legend-container",compassContainer:"instant-apps-export-print__compass-container",scaleBarContainer:"instant-apps-export-print__scale-bar-container",popupContainer:"instant-apps-export-print__popup-container",popupContent:"instant-apps-export-print__popup-content",popupTitle:"instant-apps-export-print__popup-title",view:"instant-apps-export-print__view",viewContainer:"instant-apps-export-print__view-container",viewWrapper:"instant-apps-export-print__view-wrapper",attribution:"instant-apps-export-print__attribution"}},H="instant-app-export-drag",O=class extends j{constructor(){super(...arguments),this._messages=G({name:"instant-apps-export",blocking:!0}),this.compassContainerEl=m(),this.extraContainerEl=m(),this.popoverEl=m(),this.popupContainerEl=m(),this.popupContentEl=m(),this.popupTitleEl=m(),this.printContainerEl=m(),this.printEl=m(),this.scaleBarContainerEl=m(),this.viewWrapperEl=m(),this.viewContainerEl=m(),this.viewEl=m(),this.fileTypes=["PDF","JPG","PNG"],this.attributionEl=m(),this.baseClass=l.baseLight,this.exportIsLoading=void 0,this.beforeExport=async()=>await Promise.resolve(),this.popoverIcon="export",this.headerTitle="",this.logoImage="",this.includeExtraContent=!0,this.showExtraContentInImg=!1,this.includeLegend=!0,this.includeMap=!0,this.includePopup=!1,this.includeFileFormat=!0,this.mode="popover",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.scale="m",this.showHeaderTitle=!0,this.showIncludeLegend=!0,this.showIncludeMap=!1,this.showIncludePopup=!0,this.showScaleBar=!1,this.maskBackground="rgba(255, 51, 0, 0.1)",this.maskBorder="2px dashed rgb(255, 51, 0)",this.defaultFileType="PDF",this.exportOutputUpdated=z()}static{this.properties={baseClass:16,exportIsLoading:16,selectedFileType:16,output:0,beforeExport:0,popoverIcon:1,extraContent:0,extraContentLabel:1,headerTitle:1,logoImage:1,logoAltText:1,includeExtraContent:5,showExtraContentInImg:5,includeLegend:5,includeMap:5,includePopup:5,includeFileFormat:5,mode:3,popoverPositioning:1,popoverPlacement:1,scale:1,showHeaderTitle:5,showIncludeLegend:5,showIncludeMap:5,showIncludePopup:5,showScaleBar:5,view:0,maskBackground:1,maskBorder:1,defaultFileType:1}}static{this.styles=re}async load(){this.selectedFileType=this.defaultFileType,this.pdfIncludeMap=this.includeMap,this.baseClass=$(this.el)==="dark"?l.baseDark:l.baseLight,await this.initializeModules()}willUpdate(t){t.has("view")&&this.handleIncludePopup()}loaded(){this.printEl.value&&(this.printContainerEl.value?.prepend(this.printEl.value),this.handleIncludePopup())}async initializeModules(){let t=await Q();this.handles=await J(),this.reactiveUtils=t}optionOnChange(t){let i=t.target,n=i.value;this[n]=i.checked,this.updateExportOutput()}updateHeaderTitle(t){let i=t.target;this.headerTitle=i.value,this.updateExportOutput()}async exportOnClick(){this.removeScreenshotElements(),await this.beforeExport(),this.viewWrapperEl.value&&this.compassContainerEl.value&&!this.viewWrapperEl.value.contains(this.compassContainerEl.value)&&this.viewWrapperEl.value.append(this.compassContainerEl.value),this.handleViewExportOnClick(),this.popoverEl.value&&(this.popoverEl.value.open=!1)}async exportPreviewOnClick(){this.selectedFileType==="PDF"?await this.exportPDF():this.exportImg()}async exportPDF(){this.removeScreenshotElements(),await this.beforeExport(),this.viewWrapperEl.value&&this.compassContainerEl.value&&!this.viewWrapperEl.value.contains(this.compassContainerEl.value)&&this.viewWrapperEl.value.append(this.compassContainerEl.value),this.handleViewExportOnClick(),this.popoverEl.value&&(this.popoverEl.value.open=!1)}exportImg(){if(this.resetPopupVisibility(),!this.dataUrl)return;let t=document.createElement("a");t.id="download-link",t.href=this.dataUrl;let i=this.headerTitle??document.title,n=this.selectedFileType?.toLowerCase()??"jpg";t.download=`${i}.${n}`,t.click(),this.dataUrl=null,this.exportIsLoading=!1,this.removeScreenshotElements(),this.resetPrintContent()}async handleViewExportOnClick(){this.view?(this.addPrintStyling(),this.printEl.value&&document.body.prepend(this.printEl.value),this.handleExtraContent(),this.includeMap?(this.updateAttribution(),this.updateScaleBar(),this.viewScreenshot(),this.handleImgLoaded()):this.handleImgLoaded()):this.popoverEl.value&&(this.popoverEl.value.open=!1)}addPrintStyling(){this.printStyleEl||(this.printStyleEl=document.createElement("style"),this.printStyleEl.innerHTML=ie,document.body.prepend(this.printStyleEl))}handleImgLoaded(){this.exportIsLoading=!0,setTimeout(()=>{this.selectedFileType==="PDF"&&(this.exportIsLoading=!1),this.setupViewPrintElements()},1500)}handleExtraContent(){if(!this.printEl.value)return;let t=this.printEl.value.querySelector("#export-content");if(t){t.innerHTML="";let i=this.extraContent&&this.includeExtraContent,n=this.selectedFileType!=="PDF"&&this.showExtraContentInImg&&i;this.printEl.value.classList.toggle(l.print.imgExtraContent,n),i?(t.style.display="block",t.append(this.extraContent.cloneNode(!0))):t.style.display="none"}else this.showExtraContentInImg&&this.selectedFileType!=="PDF"&&!this.includeExtraContent&&this.printEl.value.classList.toggle(l.print.imgExtraContent,!1)}resetPrintContent(){if(!this.view||!this.printEl.value)return;this.screenshot=null,this.printContainerEl.value?.prepend(this.printEl.value),this.printStyleEl?.remove(),this.tmpPopupTitleEl?.remove(),this.printStyleEl=void 0;let t=this.printEl.value.querySelector("#export-content");t&&(t.innerHTML="")}async updatePopupToPrint(){if(!this.view||!this.popupContainerEl.value||!this.printEl.value)return;this.popupContainerEl.value.style.display=this.includePopup&&this.view?.popup?.visible?"block":"none",this.checkPopupOpen();let t=this.includePopup&&(this.view?.popup?.visible||this.popupHiddenByMapArea)&&this.view?.popup?.selectedFeature;if(this.printEl.value.classList.toggle(l.print.imgExtraContent,this.selectedFileType!=="PDF"&&!!t),t){let i=document.createElement(`h${this.view?.popup?.headingLevel??2}`);i.innerHTML=this.view?.popup?.title??"",i.className="esri-widget__heading esri-popup__header-title",this.popupTitleEl.value?(this.popupTitleEl.value.style.display=this.view?.popup?.title?"block":"none",this.popupTitleEl.value.innerHTML="",this.popupTitleEl.value.prepend(i)):(this.tmpPopupTitleEl=document.createElement("div"),this.tmpPopupTitleEl.prepend(i),this.tmpPopupTitleEl.style.display=this.view?.popup?.title?"block":"none",this.popupContainerEl.value.prepend(this.tmpPopupTitleEl))}}updateExportOutput(){this.output={},this.showHeaderTitle&&(this.output.headerTitle=this.headerTitle),this.showIncludeLegend&&(this.output.includeLegend=this.includeLegend),this.showIncludeMap&&(this.output.includeMap=this.includeMap),this.showIncludePopup&&(this.output.includePopup=this.includePopup),this.exportOutputUpdated.emit()}setupViewPrintElements(){if(this.view)if(this.handleLegendSetup(),this.selectedFileType==="PDF"){let t=document.title;this.showHeaderTitle&&this.headerTitle&&(document.title=this.headerTitle),window.print(),document.title=t,setTimeout(()=>{this.resetPrintContent()},1e3)}else this.convertToImage()}async convertToImage(){/^((?!chrome|android).)*safari/iu.test(navigator?.userAgent)?await this.handleSafariToImage():await this.handleToImage()}async handleSafariToImage(){if(!this.printEl.value)return;let t={allowTaint:!0,logging:!1},i=this.selectedFileType==="PNG"?"image/png":"image/jpeg",n="";try{n=(await(0,U.default)(this.printEl.value,t)).toDataURL(i)}catch{this.logoImage=void 0;let r=500;await new Promise(s=>setTimeout(s,r)),n=(await(0,U.default)(this.printEl.value,t)).toDataURL(i)}finally{this.handleSetupImage(n)}}async handleToImage(){if(!this.printEl.value)return;let t={backgroundColor:"#FFF",skipFonts:!0},i="";try{this.selectedFileType==="JPG"?i=await B(this.printEl.value,t):i=await vt(this.printEl.value,t)}catch{this.logoImage=void 0;let n=500;await new Promise(r=>setTimeout(r,n)),i=await B(this.printEl.value,t)}finally{this.handleSetupImage(i)}}handleSetupImage(t){this.resetPrintContent(),t&&(this.dataUrl=t,this.setMapAreaOnClick(!1),this.showPreview(t),this.view?.container?.classList.remove("screenshot-cursor"),this.setMaskPosition(null))}handleLegendSetup(){if(this.showIncludeLegend&&this.view&&this.includeMap&&this.legendContainerEl){let t=this.legend&&this.legend.activeLayerInfos?.length>0;this.legendContainerEl.style.display=this.includeLegend&&t?"block":"none"}}handleWidgetCreation(){this.includeMap&&(this.handleLegendCreation(),this.handleCompassCreation(),this.updatePopupToPrint())}handleIncludePopup(){if(!this.handles||!this.reactiveUtils||!this.view||!this.showIncludePopup)return;let t="includePopup";this.handles.remove(t),this.reactiveUtils.whenOnce(()=>this.view?.ready).then(()=>{!this.reactiveUtils||!this.handles||this.handles.add(this.reactiveUtils.watch(()=>this.view?.popup?.visible===!0,i=>{this.settingMapArea||(this.includePopup=i)}),t)})}handleLegendContainer(t){this.legendContainerEl=t,this.updateLegend()}handleLegendCreation(){if(this.view&&this.showIncludeLegend&&this.legendContainerEl){let t=this.view.map,i=this.legend?.view?.map;t?.portalItem?.id&&t?.portalItem?.id===i?.portalItem?.id||this.updateLegend()}}updateLegend(){this.view?.when(async t=>{if(!this.legendContainerEl)return;this.legendContainerEl.innerHTML="";let i=document.createElement("div");this.legendContainerEl.append(i),this.legend!=null?(this.legend.container=i,this.legend.view=t):this.legend=await K({container:i,view:t,respectLayerDefinitionExpression:!0,style:{type:"card",layout:"side-by-side"}})})}handleCompassCreation(){if(this.view&&this.compassContainerEl.value){let t=this.view.map,i=this.compass?.view?.map;t?.portalItem?.id===i?.portalItem?.id||this.updateCompass()}}updateCompass(){this.view?.when(async t=>{this.compass&&(this.compass.destroy(),this.compass=null);let i=document.createElement("div");this.compassContainerEl.value?.append(i),this.compass=await X({container:i,view:t})})}updateScaleBar(){if(this.scaleBarContainerEl.value&&this.view&&(this.scaleBarContainerEl.value.innerHTML="",this.showScaleBar)){let t=this.view?.ui?.getComponents()?.find(({container:i})=>i?.className?.includes("esri-scale-bar"));t?.container&&typeof t.container!="string"&&this.scaleBarContainerEl.value.append(t.container.cloneNode(!0))}}updateAttribution(){if(!this.attributionEl.value||!this.view)return;this.attributionEl.value.innerHTML="";let t=this.view.ui.find("attribution");if(!t?.attributionText)return;let i=t.viewModel.items.map(r=>this.getAttributionText(r)).filter((r,s,a)=>!!r&&a.indexOf(r)===s),n=" | ";this.attributionEl.value.innerHTML=i.join(n)}getAttributionText(t){if(!t.text)return"";let i=t.text,n=t.layerView.layer,r="copyright"in n&&n.copyright?n.copyright:"";if("portalItem"in n&&n.portalItem!=null){let s=n.portalItem;if(s.accessInformation&&i===s.accessInformation)return i.replace(s.accessInformation,r)}return i}async viewScreenshot(){if(this.view&&this.includeMap&&(this.screenshot||(this.scaleBarContainerEl.value?.classList.toggle("instant-apps-export-print__scale-bar-container--position",this.view.width>1e3),this.screenshot=await this.view.takeScreenshot({width:this.view.width*2,height:this.view.height*2})),this.handleScaleBarSize(),this.viewEl.value&&this.viewWrapperEl.value)){let{height:t,width:i}=this.screenshot.data;t>i?this.setMaxRowHeightOnViewContainer():this.setMaxWidthOnViewContainer(),this.viewEl.value.src=this.screenshot.dataUrl}}setMaxRowHeightOnViewContainer(){this.selectedFileType==="PDF"&&this.printEl.value&&(this.printEl.value.style.gridTemplateRows="minmax(auto, 70%)"),this.viewEl.value&&(this.viewEl.value.style.height="100%",this.viewEl.value.style.width=""),this.viewWrapperEl.value&&(this.viewWrapperEl.value.style.height="100%",this.viewWrapperEl.value.style.width="fit-content")}setMaxWidthOnViewContainer(){this.printEl.value&&(this.printEl.value.style.gridTemplateRows=""),this.viewEl.value&&(this.viewEl.value.style.width="100%",this.viewEl.value.style.height=""),this.viewWrapperEl.value&&(this.viewWrapperEl.value.style.height="fit-content",this.viewWrapperEl.value.style.width="100%")}checkPopupOpen(){if(this.view){let t=this.view?.popup?.container?.querySelector(".esri-popup .esri-feature__main-container");if(t&&this.popupContentEl.value){let i=t.querySelectorAll("canvas");this.popupContentEl.value.innerHTML="",this.popupContentEl.value.append(t.cloneNode(!0));let n=this.popupContentEl.value.querySelectorAll("canvas");i.forEach((r,s)=>{let a=r.toDataURL(),o=document.createElement("img");o.src=a;let p=r.getAttribute("style");p&&o.setAttribute("style",p);let f=n[s];f&&(f.replaceWith(o),$(this.el)==="dark"&&o.parentElement?.parentElement&&(o.parentElement.style.background="#242424",o.parentElement.parentElement.style.background="#242424"))})}}}createScreenshot(){if(this.view){this.screenshotPreview=document.createElement("div"),this.screenshotPreview.className="screenshot-preview hide",this.screenshotImgContainer=document.createElement("div"),this.screenshotImgContainer.className="screenshot-img-container",this.screenshotImg=document.createElement("img");let t=document.createElement("div"),i=document.createElement("calcite-button"),n=document.createElement("calcite-button");i.innerHTML=this.selectedFileType==="PDF"?this._messages.export:this._messages.downloadImage,n.innerHTML=this._messages.returnToMap,n.appearance="outline-fill",i.onclick=this.exportPreviewOnClick.bind(this),n.onclick=this.screenshotReturn.bind(this),t.append(n,i),this.screenshotImgContainer.append(this.screenshotImg,t),this.screenshotPreview.append(this.screenshotImgContainer),this.view?.container?.append(this.screenshotPreview)}}createMaskDiv(){this.view&&(this.maskDivEl=document.createElement("div"),this.maskDivEl.id="screenshot-mask",this.maskDivEl.className="hide screenshot-cursor",this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-background",this.maskBackground),this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-border",this.maskBorder),this.screenshotStyle=document.createElement("style"),this.screenshotStyle.innerHTML=ne,this.view?.container?.append(this.screenshotStyle),this.view?.container?.append(this.maskDivEl))}screenshotReturn(){this.removeScreenshotElements(),this.exportIsLoading=!1,this.screenshot=null,this.resetPopupVisibility()}setMapAreaOnClick(t){if(this.view){if(this.settingMapArea=!0,t&&this.view?.popup?.visible){this.popupHiddenByMapArea=!0;let i=this.view?.popup?.container;i&&(i.style.display="none")}this.exportIsLoading=!0,this.createMaskDiv(),this.createScreenshot(),this.view?.container?.classList.add("screenshot-cursor","relative"),this.view.addHandles(this.view.on("drag",i=>{this.view&&(i.stopPropagation(),i.action!=="end"?this.updateMaskSize(i):this.maskScreenshot())}),H)}}updateMaskSize(t){if(this.view){let i=this.clamp(Math.min(t.origin.x,t.x),0,this.view.width),n=this.clamp(Math.max(t.origin.x,t.x),0,this.view.width),r=this.clamp(Math.min(t.origin.y,t.y),0,this.view.height),s=this.clamp(Math.max(t.origin.y,t.y),0,this.view.height);this.area={x:i,y:r,width:n-i,height:s-r},this.setMaskPosition(this.area)}}maskScreenshot(){if(this.view&&this.area){this.view.removeHandles(H);let t=this.area.height,i=this.area.width;if(this.showScaleBar){let n=this.view.width>1e3&&this.view.width*.75<i;this.scaleBarContainerEl.value?.classList.toggle("instant-apps-export-print__scale-bar-container--position",n)}this.view.takeScreenshot({area:this.area,width:i*2,height:t*2,format:"jpg"}).then(n=>{this.screenshot=n,this.view?.container?.classList.remove("screenshot-cursor"),this.setMaskPosition(null),this.selectedFileType==="PDF"?(this.showPreview(n?.dataUrl),this.resetPopupVisibility()):(this.viewWrapperEl.value&&this.compassContainerEl.value&&!this.viewWrapperEl.value.contains(this.compassContainerEl.value)&&this.viewWrapperEl.value.append(this.compassContainerEl.value),this.handleViewExportOnClick(),this.popoverEl.value&&(this.popoverEl.value.open=!1))})}}setMaskPosition(t){this.maskDivEl&&(t?(this.maskDivEl.classList.remove("hide"),this.maskDivEl.style.left=`${t.x}px`,this.maskDivEl.style.top=`${t.y}px`,this.maskDivEl.style.width=`${t.width}px`,this.maskDivEl.style.height=`${t.height}px`):this.maskDivEl.remove())}clamp(t,i,n){return t<i?i:t>n?n:t}showPreview(t){t&&(this.screenshotPreview?.classList.remove("hide"),this.screenshotImg&&(this.screenshotImg.src=t))}handleScaleBarSize(){if(this.showScaleBar&&this.view?.type==="2d"&&this.scaleBarContainerEl.value){let t=this.scaleBarContainerEl.value.querySelector(".esri-scale-bar__line--top"),i=this.scaleBarContainerEl.value.querySelector(".esri-scale-bar__line--bottom");this.setScaleBarWidth(t,"top"),this.setScaleBarWidth(i,"bottom")}}setScaleBarWidth(t,i){if(t&&this.screenshot){let n=this.screenshot.data.width/2,r=Number(t.style.width.replace("px",""))/n*100;this.scaleBarContainerEl.value?.style.setProperty(`--instant-apps-scale-bar-${i}`,`${r}%`)}}removeScreenshotElements(){this.view?.removeHandles(H),this.screenshotPreview?.remove(),this.screenshotStyle?.remove()}resetPopupVisibility(){if(this.view&&this.settingMapArea&&this.popupHiddenByMapArea){let t=this.view?.popup?.container;t&&(t.style.display="")}this.settingMapArea=!1,this.popupHiddenByMapArea=!1}handleSelectFileType(t){let i=t.target;this.selectedFileType=i.value,this.selectedFileType==="PDF"?(this.includeMap=this.pdfIncludeMap,this.showExtraContentInImg||(this.includeExtraContent=this.pdfIncludeExtraContent)):(this.pdfIncludeMap=this.includeMap,this.includeMap=!0,this.showExtraContentInImg||(this.pdfIncludeExtraContent=this.includeExtraContent,this.includeMap=!0,this.includeExtraContent=!1))}render(){let t=this.mode==="popover"?this.renderPopover():this.renderPanel(),i=this.renderCompass();return c`<div class=${h(this.baseClass)} @mouseenter=${this.handleWidgetCreation} @focusin=${this.handleWidgetCreation}>${t}<div class=${h(l.hidden)}>${i}</div></div>`}renderPopover(){let t=this.renderPanel();return[c`<calcite-popover reference-element=export-popover-btn .label=${this._messages.exportPopover} .overlayPositioning=${this.popoverPositioning} .placement=${this.popoverPlacement} auto-close ${d(this.popoverEl)}>${t}</calcite-popover>`,c`<calcite-action id=export-popover-btn alignment=center .icon=${this.popoverIcon} .scale=${this.scale} title=${this._messages.exportBtn??V} .text=${this._messages.exportBtn}></calcite-action>`]}renderPanel(){let t=this.showHeaderTitle?this.renderTitle():null,i=this.extraContent?this.renderSwitch("includeExtraContent",this.extraContentLabel,this.selectedFileType!=="PDF"&&!this.showExtraContentInImg):null,n=this.showIncludeMap?this.renderSwitch("includeMap",void 0,this.selectedFileType!=="PDF"):null,r=this.includeMap?this.renderMapOptions():null,s=this.includeFileFormat?this.renderSelectFileType():null,a=this.selectedFileType==="PDF"?this.renderPrint():this.renderImg(),o=this.mode==="inline"?l.inlineContainer:l.popoverContainer;return c`<div class=${h(o)}>${t}${i}${n}${r}${s}${this.includeMap?c`<calcite-button class=${h(l.setMapArea)} appearance=transparent width=full @click=${this.setMapAreaOnClick.bind(this,!0)} .disabled=${this.exportIsLoading}>${this._messages.setMapArea}</calcite-button>`:null}<calcite-button width=full @click=${this.exportOnClick} .disabled=${this.exportIsLoading}>${this.selectedFileType==="PDF"?this._messages.export:this._messages.preview}</calcite-button>${a}</div>`}renderTitle(){return c`<calcite-label>${this._messages.title}<calcite-input .value=${this.headerTitle} @calciteInputInput=${this.updateHeaderTitle}></calcite-input></calcite-label>`}renderSwitch(t,i,n){let r=this[t],s=t,a=i||this._messages[s];return c`<calcite-label layout=inline-space-between>${a}<calcite-switch .checked=${r} .value=${t} @calciteSwitchChange=${this.optionOnChange} .disabled=${n}></calcite-switch></calcite-label>`}renderSelectFileType(){return c`<calcite-label>${this._messages.fileType}<calcite-select label @calciteSelectChange=${this.handleSelectFileType}>${this.fileTypes.map(t=>c`<calcite-option .value=${t} .selected=${t===this.selectedFileType}>${t}</calcite-option>`)}</calcite-select></calcite-label>`}renderMapOptions(){let t=this.showIncludeLegend?this.renderSwitch("includeLegend"):null,i=this.showIncludePopup?this.renderSwitch("includePopup"):null;return c`<div>${t}${i}</div>`}renderPrint(){let t=this.includeMap?this.renderPrintMap():null,i=this.renderExtraContent(),n=this.includeMap&&this.showIncludeLegend?this.renderLegend():null,r=this.includeMap&&this.showIncludePopup?this.renderPopup():null;return c`<div ${d(this.printContainerEl)}><div class=${h(l.print.pdfBase)} ${d(this.printEl)}>${t}${n}<div class=${h(l.print.contentContainer)}>${r}${i}</div></div></div>`}renderPrintMap(){return c`<div class=${h(l.print.viewContainer)} ${d(this.viewContainerEl)}><div class=${h(l.print.viewWrapper)} ${d(this.viewWrapperEl)}>${this.headerTitle?c`<instant-apps-header .logoImage=${this.logoImage} .logoImageAltText=${this.logoAltText} logo-scale=s .titleText=${this.headerTitle} background-color=#fff text-color=#323232></instant-apps-header>`:null}<img class=${h(l.print.view)} ${d(this.viewEl)}><div class=${h(l.print.scaleBarContainer)} ${d(this.scaleBarContainerEl)}></div></div>${this.renderAttribution()}</div>`}renderAttribution(){return c`<div class=${h(l.print.attribution)} ${d(this.attributionEl)}></div>`}renderLegend(){return c`<div class=${h(l.print.legendContainer)} ${d(this.handleLegendContainer)}></div>`}renderCompass(){return c`<div class=${h(l.print.compassContainer)} ${d(this.compassContainerEl)}></div>`}renderPopup(){return c`<div class=${h(l.print.popupContainer)} ${d(this.popupContainerEl)}><div class=${h(l.print.popupTitle)} ${d(this.popupTitleEl)}></div><div class=${h(l.print.popupContent)} ${d(this.popupContentEl)}></div></div>`}renderExtraContent(){return c`<div class=${h(l.print.extraContainer)} id=export-content ${d(this.extraContainerEl)}></div>`}renderImg(){let t=this.includeMap?this.renderPrintMap():null,i=this.includeMap&&this.showIncludeLegend?this.renderLegend():null,n;return this.includeMap&&this.showIncludePopup?n=this.renderPopup():this.showExtraContentInImg&&this.extraContent&&this.includeExtraContent&&(n=this.renderExtraContent()),c`<div ${d(this.printContainerEl)}><div class=${h(l.print.imgBase)} ${d(this.printEl)}>${t}${i}${n}</div></div>`}};q("instant-apps-export",O);export{O as InstantAppsExport};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
+ v1.1.0-next.20250731.1 */
4
+ function V(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t}function F(r){return Object.keys(r).some(e=>{let t=r[e];if(!t)return!1;switch(t&&t.toParam&&(t=t.toParam()),t.constructor.name){case"Array":return!1;case"Object":return!1;case"Date":return!1;case"Function":return!1;case"Boolean":return!1;case"String":return!1;case"Number":return!1;default:return!0}})}function M(r){let e={};return Object.keys(r).forEach(t=>{var n,o;let s=r[t];if(s&&s.toParam&&(s=s.toParam()),!s&&s!==0&&typeof s!="boolean"&&typeof s!="string")return;let i=s.constructor.name,a;switch(i){case"Array":let u=(o=(n=s[0])===null||n===void 0?void 0:n.constructor)===null||o===void 0?void 0:o.name;a=u==="Array"?s:u==="Object"?JSON.stringify(s):s.join(",");break;case"Object":a=JSON.stringify(s);break;case"Date":a=s.valueOf();break;case"Function":a=null;break;case"Boolean":a=s+"";break;default:a=s;break}(a||a===0||typeof a=="string"||Array.isArray(a))&&(e[t]=a)}),e}function Q(r,e){return Array.isArray(e)&&e[0]&&Array.isArray(e[0])?e.map(t=>Q(r,t)).join("&"):encodeURIComponent(r)+"="+encodeURIComponent(e)}function T(r){let e=M(r);return Object.keys(e).map(t=>Q(t,e[t])).join("&")}var X=globalThis.FormData,Oe=globalThis.File,Re=globalThis.Blob;function Y(r,e){let t=F(r)||e,n=M(r);if(t){let o=new X;return Object.keys(n).forEach(s=>{if(typeof Blob<"u"&&n[s]instanceof Blob){let i=n.fileName||n[s].name||s;o.append(s,n[s],i)}else o.append(s,n[s])}),o}else return T(r)}var k=class extends Error{constructor(e,t,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),e=e||"UNKNOWN_ERROR",t=t||"UNKNOWN_ERROR_CODE",this.name="ArcGISRequestError",this.message=t==="UNKNOWN_ERROR_CODE"?e:`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};var de={noCorsDomains:[],crossOriginNoCorsDomains:{},pendingNoCorsRequests:{}},G="ARCGIS_REST_JS_NO_CORS";globalThis[G]||(globalThis[G]=Object.assign({},de));var g=globalThis[G];function B(r){let e=new URL(r);r=e.origin+e.pathname,e.search.includes("f=json")&&(r+="?f=json");let t=e.origin;return g.pendingNoCorsRequests[t]?g.pendingNoCorsRequests[t]:(g.pendingNoCorsRequests[t]=fetch(r,{mode:"no-cors",credentials:"include",cache:"no-store"}).then(n=>{g.noCorsDomains.indexOf(t)===-1&&g.noCorsDomains.push(t),g.crossOriginNoCorsDomains[t.toLowerCase()]=Date.now(),delete g.pendingNoCorsRequests[t]}).catch(n=>(delete g.pendingNoCorsRequests[t],Promise.reject(new Error(`no-cors request to ${t} failed`)))),g.pendingNoCorsRequests[t])}function Z(r){r.forEach(e=>{e=e.toLowerCase(),/^https?:\/\//.test(e)?L(e):(L("http://"+e),L("https://"+e))})}function L(r){let t=new URL(r).origin;g.noCorsDomains.indexOf(t)===-1&&g.noCorsDomains.push(t)}function z(r){let e=!1;if(g.noCorsDomains.length){let t=new URL(r).origin.toLowerCase();e=g.noCorsDomains.some(n=>t.includes(n))}return e}function ee(r){let e=!1;if(z(r)){let t=new URL(r).origin.toLowerCase(),n=g.crossOriginNoCorsDomains[t]||0;Date.now()-60*6e4>n&&(e=!0)}return e}function te(r){console&&console.warn&&console.warn.apply(console,[r])}function re(){return Promise.resolve({fetch:globalThis.fetch,Headers:globalThis.Headers,Response:globalThis.Response,Request:globalThis.Request})}function ne(r,e){var t;if(!e&&!window||!r)return!1;{e=e||window;let n=(t=e.location)===null||t===void 0?void 0:t.origin;return r.startsWith(n)}}var J="@esri/arcgis-rest-js";function me(){return globalThis.DEFAULT_ARCGIS_REQUEST_OPTIONS||{httpMethod:"POST",params:{f:"json"}}}var A=class extends k{constructor(e="AUTHENTICATION_ERROR",t="AUTHENTICATION_ERROR_CODE",n,o,s){super(e,t,n,o,s),this.name="ArcGISAuthError",this.message=t==="AUTHENTICATION_ERROR_CODE"?e:`${t}: ${e}`;let i=new.target.prototype;Object.setPrototypeOf(this,i)}retry(e,t=1){let n=0,o=(s,i)=>{n=n+1,e(this.url,this.options).then(a=>{let u=Object.assign(Object.assign({},this.options),{authentication:a});return oe(this.url,u)}).then(a=>{s(a)}).catch(a=>{a.name==="ArcGISAuthError"&&n<t?o(s,i):a.name===this.name&&a.message===this.message&&n>=t?i(this):i(a)})};return new Promise((s,i)=>{o(s,i)})}};function ge(r,e,t,n,o){if(r.code>=400){let{message:s,code:i}=r;throw new k(s,i,r,e,n)}if(r.error){let{message:s,code:i,messageCode:a}=r.error,u=a||i||"UNKNOWN_ERROR_CODE";throw i===498||i===499?o||new A(s,u,r,e,n):new k(s,u,r,e,n)}if(r.status==="failed"||r.status==="failure"){let s,i="UNKNOWN_ERROR_CODE";try{s=JSON.parse(r.statusMessage).message,i=JSON.parse(r.statusMessage).code}catch{s=r.statusMessage||r.message}throw new k(s,i,r,e,n)}return r}function oe(r,e){let t=me(),n=Object.assign(Object.assign(Object.assign({httpMethod:"POST"},t),e),{params:Object.assign(Object.assign({},t.params),e.params),headers:Object.assign(Object.assign({},t.headers),e.headers)}),{httpMethod:o,rawResponse:s}=n,i=Object.assign({f:"json"},n.params),a=null,u={method:o,signal:n.signal,credentials:n.credentials||"same-origin"};z(r)&&(u.credentials="include"),n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&r.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let E;if(typeof n.authentication=="string"){let c=n.authentication;E={portal:"https://www.arcgis.com/sharing/rest",getToken:()=>Promise.resolve(c)},!n.authentication.startsWith("AAPK")&&!n.authentication.startsWith("AATK")&&!n.suppressWarnings&&!globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING&&(te("Using an oAuth 2.0 access token directly in the token option is discouraged. Consider using ArcGISIdentityManager or Application session. See https://esriurl.com/arcgis-rest-js-direct-token-warning for more information."),globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING=!0)}else E=n.authentication;let p=r,d=!1;typeof window<"u"&&(d=ne(r));let R=!d&&ee(r);n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&r.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let S=Promise.resolve();return R&&(u.credentials="include",S=B(r)),S.then(()=>E?E.getToken(r).catch(c=>(c.url=r,c.options=n,a=c,Promise.resolve(""))):Promise.resolve("")).then(c=>{c.length&&(i.token=c),E&&E.getDomainCredentials&&(u.credentials=E.getDomainCredentials(r));let l={};if(u.method==="GET"){i.token&&n.hideToken&&typeof window>"u"&&(l["X-Esri-Authorization"]=`Bearer ${i.token}`,delete i.token);let b=T(i)===""?r:r+"?"+T(i);n.maxUrlLength&&b.length>n.maxUrlLength||!n.maxUrlLength&&b.length>2e3||i.token&&n.hideToken?(u.method="POST",c.length&&n.hideToken&&(i.token=c,delete l["X-Esri-Authorization"])):r=b}let m=new RegExp("/items/.+/updateResources").test(r);return u.method==="POST"&&(u.body=Y(i,m)),u.headers=Object.assign(Object.assign({},l),n.headers),(typeof window>"u"||window&&typeof window.document>"u")&&!u.headers.referer&&(u.headers.referer=J),!F(i)&&!m&&(u.headers["Content-Type"]="application/x-www-form-urlencoded"),globalThis.fetch?globalThis.fetch(r,u):re().then(({fetch:h})=>h(r,u))}).then(c=>{if(!c.ok)return c.json().then(l=>{let{status:m,statusText:h}=c,{message:b,details:D}=l.error,v=`${b}. ${D?D.join(" "):""}`.trim();throw new k(v,`HTTP ${m} ${h}`,l,r,n)}).catch(l=>{if(l.name==="ArcGISRequestError")throw l;let{status:m,statusText:h}=c;throw new k(h,`HTTP ${m}`,c,r,n)});if(s)return c;switch(i.f){case"json":return c.json();case"geojson":return c.json();case"html":return c.text();case"text":return c.text();default:return c.blob()}}).then(c=>{if((i.f==="json"||i.f==="geojson")&&!s){let l=ge(c,p,i,n,a);if(c&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(r)&&Array.isArray(c.authorizedCrossOriginNoCorsDomains)&&Z(c.authorizedCrossOriginNoCorsDomains),a){let m=r.toLowerCase().split(/\/rest(\/admin)?\/services\//)[0];n.authentication.federatedServers[m]={token:[],expires:new Date(Date.now()+86400*1e3)},a=null}return l}else return c})}function f(r,e={params:{f:"json"}}){let{request:t}=e,n=V(e,["request"]);return t?t(r,n):oe(r,n).catch(o=>o instanceof A&&e.authentication&&typeof e.authentication!="string"&&e.authentication.canRefresh&&e.authentication.refreshCredentials?o.retry(()=>e.authentication.refreshCredentials(),1):Promise.reject(o))}function we(r){let[e,t]=r.split("=");return{key:decodeURIComponent(e),value:decodeURIComponent(t)}}function se(r){return!r||r.length<=0?{}:r.replace(/^#/,"").replace(/^\?/,"").split("&").reduce((e,t)=>{let{key:n,value:o}=we(t);return e[n]=o,e},{})}var ie=300*1e3;function C(r,e){let t=e;return t.rawResponse=!1,f(r,t).then(n=>{if("token"in n&&"expires"in n)return{token:n.token,username:e.params.username,expires:new Date(n.expires)};let o={token:n.access_token,username:n.username,expires:new Date(Date.now()+n.expires_in*1e3-ie),ssl:n.ssl===!0};return n.refresh_token&&(o.refreshToken=n.refresh_token),n.refresh_token_expires_in&&(o.refreshTokenExpires=new Date(Date.now()+n.refresh_token_expires_in*1e3-ie)),o})}function w(r){return typeof r!="string"||(r=r.trim(),r[r.length-1]==="/"&&(r=r.slice(0,-1))),r}var q=/^https?:\/\/(\S+)\.arcgis\.com.+/;function ae(r){return q.test(r)}function Ee(r){if(!q.test(r))return r;switch(H(r)){case"dev":return"https://devext.arcgis.com/sharing/rest";case"qa":return"https://qaext.arcgis.com/sharing/rest";default:return"https://www.arcgis.com/sharing/rest"}}function H(r){if(!q.test(r))return null;let t=r.match(q)[1].split(".").pop();return t.includes("dev")?"dev":t.includes("qa")?"qa":"production"}function ce(r,e){let t=w(Ee(e)).replace(/https?:\/\//,""),n=w(r).replace(/https?:\/\//,"");return new RegExp(n,"i").test(t)}function ue(r,e){let t=ae(r),n=ae(e),o=H(r),s=H(e);return!!(t&&n&&o===s)}function le(r,e,t="https://www.arcgis.com/sharing/rest"){let n=`${t}/oauth2/validateAppAccess`;return f(n,{method:"POST",params:{f:"json",client_id:e,token:r}})}function rt(r,e,t){let n=["params","httpMethod","rawResponse","authentication","hideToken","portal","credentials","maxUrlLength","headers","signal","suppressWarnings","request"],o=Object.assign(Object.assign({params:{}},t),r);return o.params=e.reduce((s,i)=>((r[i]||typeof r[i]=="boolean"||typeof r[i]=="number"&&r[i]===0)&&(s[i]=r[i]),s),o.params),n.reduce((s,i)=>(o[i]&&(s[i]=o[i]),s),{})}var x;(function(r){r.TOKEN_REFRESH_FAILED="TOKEN_REFRESH_FAILED",r.GENERATE_TOKEN_FOR_SERVER_FAILED="GENERATE_TOKEN_FOR_SERVER_FAILED",r.REFRESH_TOKEN_EXCHANGE_FAILED="REFRESH_TOKEN_EXCHANGE_FAILED",r.NOT_FEDERATED="NOT_FEDERATED",r.UNKNOWN_ERROR_CODE="UNKNOWN_ERROR_CODE"})(x||(x={}));var y=class extends Error{constructor(e="UNKNOWN_ERROR",t=x.UNKNOWN_ERROR_CODE,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),this.name="ArcGISTokenRequestError",this.message=`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};var N=class extends Error{constructor(){super("The user has denied your authorization request.");let t=new.target.prototype;Object.setPrototypeOf(this,t),this.name="ArcGISAccessDeniedError"}};var he;(function(r){r.ArcGISRequestError="ArcGISRequestError",r.ArcGISAuthError="ArcGISAuthError",r.ArcGISAccessDeniedError="ArcGISAccessDeniedError",r.ArcGISTokenRequestError="ArcGISTokenRequestError"})(he||(he={}));var P=class{constructor(e){this.portal=e.portal?w(e.portal):"https://www.arcgis.com/sharing/rest",this._username=e.username}get username(){if(this._username)return this._username;if(this._user&&this._user.username)return this._user.username}getUsername(){return this.username?Promise.resolve(this.username):this.getUser().then(e=>e.username)}getUser(e){if(this._pendingUserRequest)return this._pendingUserRequest;if(this._user)return Promise.resolve(this._user);{let t=`${this.portal}/community/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingUserRequest=f(t,n).then(o=>(this._user=o,this._pendingUserRequest=null,o)),this._pendingUserRequest}}clearCachedUserInfo(){this._user=null}};var K;(function(r){r.Success="Succeeded",r.Failed="Failed",r.Waiting="Waiting",r.Cancelled="Cancelled",r.Cancelling="Cancelling",r.New="New",r.Executing="Executing",r.Submitted="Submitted",r.Failure="Failure",r.TimedOut="TimedOut",r.Error="Error",r.Status="Etatus",r.Unknown="Unknown"})(K||(K={}));function fe(r){let e=`${w(r.portal||"https://www.arcgis.com/sharing/rest")}/oauth2/revokeToken/`,t=r.token,n=r.clientId;delete r.portal,delete r.clientId,delete r.token;let o=Object.assign(Object.assign({},r),{httpMethod:"POST",params:{client_id:n,auth_token:t}});return f(e,o).then(s=>{if(!s.success)throw new k("Unable to revoke token",500,s,e,o);return s})}function $(r,e=window){return!e&&window&&(e=window),e.btoa(String.fromCharCode.apply(null,r)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function pe(r,e=window){if(!e&&window&&(e=window),r&&e.isSecureContext&&e.crypto&&e.crypto.subtle){let n=new e.TextEncoder().encode(r);return e.crypto.subtle.digest("SHA-256",n).then(o=>$(new Uint8Array(o),e))}return Promise.resolve(null)}function W(r){!r&&window&&(r=window);let e=r.crypto.getRandomValues(new Uint8Array(32));return $(e)}function _e(r){return typeof r.userId=="string"||typeof r.expires=="number"}var O=class r extends P{constructor(e){if(super(e),this.clientId=e.clientId,this._refreshToken=e.refreshToken,this._refreshTokenExpires=e.refreshTokenExpires,this.password=e.password,this._token=e.token,this._tokenExpires=e.tokenExpires,this.portal=e.portal?w(e.portal):"https://www.arcgis.com/sharing/rest",this.ssl=e.ssl,this.provider=e.provider||"arcgis",this.tokenDuration=e.tokenDuration||20160,this.redirectUri=e.redirectUri,this.server=e.server,this.referer=e.referer,this.federatedServers={},this.trustedDomains=[],e.server){let t=this.getServerRootUrl(e.server);this.federatedServers[t]={token:e.token,expires:e.tokenExpires}}this._pendingTokenRequests={}}get token(){return this._token}get tokenExpires(){return this._tokenExpires}get refreshToken(){return this._refreshToken}get refreshTokenExpires(){return this._refreshTokenExpires}get canRefresh(){return!!(this.username&&this.password||this.clientId&&this.refreshToken&&this.redirectUri)}static beginOAuth2(e,t){!t&&window&&(t=window);let{portal:n,provider:o,clientId:s,expiration:i,redirectUri:a,popup:u,popupWindowFeatures:E,locale:p,params:d,style:R,pkce:S,state:c}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",provider:"arcgis",expiration:20160,popup:!0,popupWindowFeatures:"height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes",locale:"",style:"",pkce:!0},e),l=c||W(t),m=`ARCGIS_REST_JS_AUTH_STATE_${s}`;t.localStorage.setItem(m,l);let h=`${w(n)}/oauth2/authorize`,b={client_id:s,response_type:S?"code":"token",expiration:i,redirect_uri:a,state:JSON.stringify({id:l,originalUrl:t.location.href}),locale:p,style:R};o!=="arcgis"&&(h=`${w(n)}/oauth2/social/authorize`,b.socialLoginProviderName=o,b.autoAccountCreateForSocial=!0);let D;if(S){let v=W(t),U=`ARCGIS_REST_JS_CODE_VERIFIER_${s}`;t.localStorage.setItem(U,v),D=pe(v,t).then(function(_){b.code_challenge_method=_?"S256":"plain",b.code_challenge=_||v})}else D=Promise.resolve();return D.then(()=>{if(h=`${h}?${T(b)}`,d&&(h=`${h}&${T(d)}`),u)return new Promise((v,U)=>{t.addEventListener(`arcgis-rest-js-popup-auth-${s}`,_=>{if(_.detail.error==="access_denied"){let j=new N;return U(j),j}if(_.detail.errorMessage){let j=new A(_.detail.errorMessage,_.detail.error);return U(j),j}v(new r({clientId:s,portal:n,ssl:_.detail.ssl,token:_.detail.token,tokenExpires:_.detail.expires,username:_.detail.username,refreshToken:_.detail.refreshToken,refreshTokenExpires:_.detail.refreshTokenExpires,redirectUri:a}))},{once:!0}),t.open(h,"oauth-window",E),t.dispatchEvent(new CustomEvent("arcgis-rest-js-popup-auth-start"))});t.location.href=h})}static completeOAuth2(e,t){!t&&window&&(t=window);let{portal:n,clientId:o,popup:s,pkce:i,redirectUri:a}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",popup:!0,pkce:!0},e),u=`ARCGIS_REST_JS_AUTH_STATE_${o}`,E=t.localStorage.getItem(u),p=se(i?t.location.search.replace(/^\?/,""):t.location.hash.replace(/^#/,"")),d=p&&p.state?JSON.parse(p.state):void 0;function R(c,l,m){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:{error:l,errorMessage:c}})),t.close();return}return m&&t.history.replaceState(t.history.state,"",m),l==="access_denied"?Promise.reject(new N):Promise.reject(new A(c,l))}function S(c,l){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:Object.assign({},c)})),t.close();return}return t.history.replaceState(t.history.state,"",l),new r({clientId:o,portal:n,ssl:c.ssl,token:c.token,tokenExpires:c.expires,username:c.username,refreshToken:c.refreshToken,refreshTokenExpires:c.refreshTokenExpires,redirectUri:a||location.href.replace(location.search,"")})}if(!E||!d)return R("No authentication state was found, call `ArcGISIdentityManager.beginOAuth2(...)` to start the authentication process.","no-auth-state");if(d.id!==E)return R("Saved client state did not match server sent state.","mismatched-auth-state");if(p.error){let c=p.error,l=p.error_description||"Unknown error";return R(l,c,d.originalUrl)}if(i&&p.code){let c=w(`${n}/oauth2/token/`),l=`ARCGIS_REST_JS_CODE_VERIFIER_${o}`,m=t.localStorage.getItem(l);return t.localStorage.removeItem(l),C(c,{httpMethod:"POST",params:{client_id:o,code_verifier:m,grant_type:"authorization_code",redirect_uri:a||location.href.replace(location.search,""),code:p.code}}).then(h=>S(Object.assign(Object.assign({},h),d),d.originalUrl)).catch(h=>R(h.originalMessage,h.code,d.originalUrl))}return!i&&p.access_token?Promise.resolve(S(Object.assign({token:p.access_token,expires:new Date(Date.now()+parseInt(p.expires_in,10)*1e3),ssl:p.ssl==="true",username:p.username},d),d.originalUrl)):R("Unknown error","oauth-error",d.originalUrl)}static fromParent(e,t){!t&&window&&(t=window);let n;return new Promise((o,s)=>{n=i=>{if(i.source===t.parent&&i.data)try{return o(r.parentMessageHandler(i))}catch(a){return s(a)}},t.addEventListener("message",n,!1),t.parent.postMessage({type:"arcgis:auth:requestCredential"},e)}).then(o=>(t.removeEventListener("message",n,!1),o))}static authorize(e,t){let{portal:n,clientId:o,expiration:s,redirectUri:i,state:a}=Object.assign({portal:"https://arcgis.com/sharing/rest",expiration:20160},e),u={client_id:o,expiration:s,response_type:"code",redirect_uri:i};a&&(u.state=a);let E=`${n}/oauth2/authorize?${T(u)}`;t.writeHead(301,{Location:E}),t.end()}static exchangeAuthorizationCode(e,t){let{portal:n,clientId:o,redirectUri:s}=Object.assign({portal:"https://www.arcgis.com/sharing/rest"},e);return C(`${n}/oauth2/token`,{params:{grant_type:"authorization_code",client_id:o,redirect_uri:s,code:t}}).then(i=>new r({clientId:o,portal:n,ssl:i.ssl,redirectUri:s,refreshToken:i.refreshToken,refreshTokenExpires:i.refreshTokenExpires,token:i.token,tokenExpires:i.expires,username:i.username})).catch(i=>{throw new y(i.message,x.REFRESH_TOKEN_EXCHANGE_FAILED,i.response,i.url,i.options)})}static deserialize(e){let t=JSON.parse(e);return new r({clientId:t.clientId,refreshToken:t.refreshToken,refreshTokenExpires:t.refreshTokenExpires?new Date(t.refreshTokenExpires):void 0,username:t.username,password:t.password,token:t.token,tokenExpires:t.tokenExpires?new Date(t.tokenExpires):void 0,portal:t.portal,ssl:t.ssl,tokenDuration:t.tokenDuration,redirectUri:t.redirectUri,server:t.server})}static fromCredential(e,t){let n=typeof e.ssl<"u"?e.ssl:!0,o=e.expires||Date.now()+72e5;return t.hasServer?new r({server:e.server,ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)}):new r({portal:w(e.server.includes("sharing/rest")?e.server:e.server+"/sharing/rest"),ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)})}static parentMessageHandler(e){if(e.data.type==="arcgis:auth:credential"){let t=e.data.credential;return _e(t)?r.fromCredential(t,{hasPortal:!0,hasServer:!1,server:t.server}):new r(t)}if(e.data.type==="arcgis:auth:error"){let t=new Error(e.data.error.message);throw t.name=e.data.error.name,t}else throw new Error("Unknown message type.")}static destroy(e){return fe({clientId:e.clientId,portal:e.portal,token:e.refreshToken||e.token})}static fromToken(e){let t=new r(e);return t.getUser().then(()=>t)}static signIn(e){let t=new r(e);return t.getUser().then(()=>t)}toCredential(){return{expires:this.tokenExpires.getTime(),server:this.server||this.portal,ssl:this.ssl,token:this.token,userId:this.username}}getPortal(e){if(this._pendingPortalRequest)return this._pendingPortalRequest;if(this._portalInfo)return Promise.resolve(this._portalInfo);{let t=`${this.portal}/portals/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingPortalRequest=f(t,n).then(o=>(this._portalInfo=o,this._pendingPortalRequest=null,o)),this._pendingPortalRequest}}getToken(e,t){return ue(this.portal,e)?this.getFreshToken(t):new RegExp(this.portal,"i").test(e)?this.getFreshToken(t):this.getTokenForServer(e,t)}validateAppAccess(e){return this.getToken(this.portal).then(t=>le(t,e))}toJSON(){return{type:"ArcGISIdentityManager",clientId:this.clientId,refreshToken:this.refreshToken,refreshTokenExpires:this.refreshTokenExpires||void 0,username:this.username,password:this.password,token:this.token,tokenExpires:this.tokenExpires||void 0,portal:this.portal,ssl:this.ssl,tokenDuration:this.tokenDuration,redirectUri:this.redirectUri,server:this.server}}serialize(){return JSON.stringify(this)}enablePostMessageAuth(e,t){!t&&window&&(t=window),this._hostHandler=this.createPostMessageHandler(e),t.addEventListener("message",this._hostHandler,!1)}disablePostMessageAuth(e){!e&&window&&(e=window),e.removeEventListener("message",this._hostHandler,!1)}refreshCredentials(e){return this.clearCachedUserInfo(),this.username&&this.password?this.refreshWithUsernameAndPassword(e):this.clientId&&this.refreshToken?this.refreshWithRefreshToken():Promise.reject(new y("Unable to refresh token. No refresh token or password present.",x.TOKEN_REFRESH_FAILED))}getServerRootUrl(e){let[t]=w(e).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/),[n,o,s]=t.match(/(https?:\/\/)(.+)/),[i,...a]=s.split("/");return`${o}${i.toLowerCase()}/${a.join("/")}`}getDomainCredentials(e){return!this.trustedDomains||!this.trustedDomains.length?"same-origin":(e=e.toLowerCase(),this.trustedDomains.some(t=>e.startsWith(t.toLowerCase()))?"include":"same-origin")}signOut(){return r.destroy(this)}createPostMessageHandler(e){return t=>{let n=e.indexOf(t.origin)>-1,o=t.data.type==="arcgis:auth:requestCredential",s=this.tokenExpires.getTime()>Date.now();if(n&&o){let i={};if(s){let a=this.toCredential();a.server=a.server.replace("/sharing/rest",""),i={type:"arcgis:auth:credential",credential:a}}else i={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Token was expired, and not returned to the child application"}};t.source.postMessage(i,t.origin)}}}getTokenForServer(e,t){let n=this.getServerRootUrl(e),o=this.federatedServers[n];return o&&o.expires&&o.expires.getTime()>Date.now()?Promise.resolve(o.token):this._pendingTokenRequests[n]?this._pendingTokenRequests[n]:(this._pendingTokenRequests[n]=this.fetchAuthorizedDomains().then(()=>f(`${n}/rest/info`,{credentials:this.getDomainCredentials(e)}).then(s=>{if(s.owningSystemUrl){if(ce(s.owningSystemUrl,this.portal))return f(`${s.owningSystemUrl}/sharing/rest/info`,t);throw new y(`${e} is not federated with ${this.portal}.`,x.NOT_FEDERATED)}else{if(s.authInfo&&this.federatedServers[n]!==void 0)return Promise.resolve({authInfo:s.authInfo});throw new y(`${e} is not federated with any portal and is not explicitly trusted.`,x.NOT_FEDERATED)}}).then(s=>this.token&&this.tokenExpires.getTime()<Date.now()?this.server?this.refreshCredentials().then(()=>({token:this.token,expires:this.tokenExpires})):this.refreshCredentials().then(()=>this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)):this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)).then(s=>(this.federatedServers[n]=s,delete this._pendingTokenRequests[n],s.token))),this._pendingTokenRequests[n])}generateTokenForServer(e,t){return f(e,{params:{token:this.token,serverUrl:t,expiration:this.tokenDuration}}).then(n=>({token:n.token,expires:new Date(n.expires-1e3*60*5)})).catch(n=>{throw new y(n.message,x.GENERATE_TOKEN_FOR_SERVER_FAILED,n.response,n.url,n.options)})}getFreshToken(e){return this.token&&!this.tokenExpires?Promise.resolve(this.token):this.token&&this.tokenExpires&&this.tokenExpires.getTime()>Date.now()?Promise.resolve(this.token):(this._pendingTokenRequests[this.portal]||(this._pendingTokenRequests[this.portal]=this.refreshCredentials(e).then(()=>(this._pendingTokenRequests[this.portal]=null,this.token))),this._pendingTokenRequests[this.portal])}refreshWithUsernameAndPassword(e){let t={username:this.username,password:this.password,expiration:this.tokenDuration,client:"referer",referer:this.referer?this.referer:typeof window<"u"&&typeof window.document<"u"&&window.location&&window.location.origin?window.location.origin:J};return(this.server?f(`${this.getServerRootUrl(this.server)}/rest/info`).then(n=>f(n.authInfo.tokenServicesUrl,Object.assign({params:t},e))):f(`${this.portal}/generateToken`,Object.assign({params:t},e))).then(n=>(this.updateToken(n.token,new Date(n.expires)),this)).catch(n=>{throw new y(n.message,x.TOKEN_REFRESH_FAILED,n.response,n.url,n.options)})}refreshWithRefreshToken(e){if(this.refreshToken&&this.refreshTokenExpires&&this.refreshTokenExpires.getTime()-864e5<Date.now())return this.exchangeRefreshToken(e);let n=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,grant_type:"refresh_token"}},e);return C(`${this.portal}/oauth2/token`,n).then(o=>this.updateToken(o.token,o.expires)).catch(o=>{throw new y(o.message,x.TOKEN_REFRESH_FAILED,o.response,o.url,o.options)})}updateToken(e,t){return this._token=e,this._tokenExpires=t,this}exchangeRefreshToken(e){let t=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,grant_type:"exchange_refresh_token"}},e);return C(`${this.portal}/oauth2/token`,t).then(n=>(this._token=n.token,this._tokenExpires=n.expires,this._refreshToken=n.refreshToken,this._refreshTokenExpires=n.refreshTokenExpires,this)).catch(n=>{throw new y(n.message,x.REFRESH_TOKEN_EXCHANGE_FAILED,n.response,n.url,n.options)})}fetchAuthorizedDomains(){return this.server||!this.portal?Promise.resolve(this):this.getPortal().then(e=>(e.authorizedCrossOriginDomains&&e.authorizedCrossOriginDomains.length&&(this.trustedDomains=e.authorizedCrossOriginDomains.filter(t=>!t.startsWith("http://")).map(t=>t.startsWith("https://")?t:`https://${t}`)),this))}};function I(r){return console.log("DEPRECATED:, 'UserSession' is deprecated. Use 'ArcGISIdentityManager' instead."),new O(r)}I.beginOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.beginOAuth2' is deprecated. Use 'ArcGISIdentityManager.beginOAuth2' instead."),O.beginOAuth2(...r)};I.completeOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.completeOAuth2()' is deprecated. Use 'ArcGISIdentityManager.completeOAuth2()' instead."),r.length<=1&&console.warn("WARNING:, 'UserSession.completeOAuth2()' is now async and returns a promise the resolves to an instance of `ArcGISIdentityManager`."),O.completeOAuth2(...r)};I.fromParent=function(...r){return console.warn("DEPRECATED:, 'UserSession.fromParent' is deprecated. Use 'ArcGISIdentityManager.fromParent' instead."),O.fromParent(...r)};I.authorize=function(...r){return console.warn("DEPRECATED:, 'UserSession.authorize' is deprecated. Use 'ArcGISIdentityManager.authorize' instead."),O.authorize(...r)};I.exchangeAuthorizationCode=function(...r){return console.warn("DEPRECATED:, 'UserSession.exchangeAuthorizationCode' is deprecated. Use 'ArcGISIdentityManager.exchangeAuthorizationCode' instead."),O.exchangeAuthorizationCode(...r)};I.fromCredential=function(...r){return console.log("DEPRECATED:, 'UserSession.fromCredential' is deprecated. Use 'ArcGISIdentityManager.fromCredential' instead."),console.warn("WARNING:, 'UserSession.fromCredential' now requires a `ServerInfo` object from the JS API as a second parameter."),O.fromCredential(...r)};I.deserialize=function(...r){return console.log("DEPRECATED:, 'UserSession.deserialize' is deprecated. Use 'ArcGISIdentityManager.deserialize' instead."),O.deserialize(...r)};export{Y as a,te as b,A as c,f as d,rt as e,w as f,O as g};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
+ v1.1.0-next.20250731.1 */
4
+ import e from"./54F3QH2P.js";import c from"./7KQKPG55.js";import"./IUQFTD5B.js";import b from"./WGEDEGSC.js";import"./MJ4UYOY5.js";import{b as o}from"./UML27CLC.js";import"./HI22GMCZ.js";import{A as l,B as d,h as a,i,w as s,x as r,y as n}from"./A2QNF47K.js";import"./N3JVQRW2.js";export default $arcgis.t(([,,{t:p}])=>{var c=a`:host{display:block}:host .esri-legend__service{padding:0}:host .esri-legend__layer-body,:host .esri-legend__layer,:host .esri-legend__layer-table,:host .esri-legend__group-layer-child,:host .esri-legend__layer-child-table{margin:0;overflow:hidden}:host .hide{display:none}`,e={service:"esri-legend__service",groupLayerChild:"esri-legend__group-layer-child",layer:"esri-legend__layer"},t=class extends n{constructor(){super(),this.layerCaption=s(),this.expanded=!0,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.layerCaption.value&&(this.expanded=this.layerCaption.value.expanded)}render(){let h=this.activeLayerInfo.parent?` ${e.groupLayerChild}`:"";return i`<div style=${d({borderLeft:"1px solid var(--calcite-color-border-3)"})} class=${`${e.service}${h}`} tabindex=0><instant-apps-interactive-legend-layer-element-caption .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${this.activeLayerInfo} .isChild=${!!this.isChild} class=${l(p(this.el))} ${r(this.layerCaption)}></instant-apps-interactive-legend-layer-element-caption><div .id=${`${this.activeLayerInfo?.layer?.id}-legend-layer`} class=${`${e.layer}${this.expanded?" show":" hide"}`}><slot name=content></slot></div></div>`}};o("instant-apps-interactive-legend-layer-element",t);return t},b,c,e)
@@ -0,0 +1,18 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
+ v1.1.0-next.20250731.1 */
4
+ import e from"./YSKSWYAQ.js";import{a as v,b as o,c as w,d as S}from"./UHBAFPIP.js";import{a,c as m,d as y,e as _}from"./52S7M4XP.js";import"./2FWYC6N2.js";import"./FCGAI4KW.js";import"./GTECY6TF.js";import"./QU2IDIBF.js";import"./HN3P22JK.js";import"./UI2K7A6K.js";import"./UKVOZIPV.js";import"./OVNKAN7A.js";import"./6FSSM6C5.js";import"./3TRGQIG4.js";import"./4GJTZGZ2.js";import"./QB26MH3P.js";import"./G6EO7CEQ.js";import"./UCE3PD7K.js";import"./H6OGXITC.js";import{g}from"./J4IVVJW7.js";import"./DSYYVW3F.js";import"./V7HQLFUM.js";import"./ITWJGFNZ.js";import"./U4XP4SVP.js";import{a as f}from"./PSE37RBN.js";import"./L3KYPR4U.js";import"./HI22GMCZ.js";import{b}from"./25HFBBO7.js";import{B as l,C as u,h as c,i,n as s,w as d,x as p,y as h}from"./A2QNF47K.js";import"./N3JVQRW2.js";export default $arcgis.t(([x])=>{var $=c`/** @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
+ */.display-flex{display:flex}.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: 0px;--calcite-panel-header-background-color: var(--calcite-color-foreground-3);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: 0px;padding-inline-start:.5rem}.header-button-padding{padding-top:.5rem;padding-bottom:.5rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start{padding-inline-start:1rem}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}@media (max-width: 800px){.filter{display:none}.filter-button{display:block;position:absolute;top:.5rem;left:.5rem;z-index:999}}@media (min-width: 800px){.filter-button{display:none}}.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)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-foreground-3);--calcite-panel-background-color: var(--calcite-color-foreground-3)}.position-relative{position:relative}`,n=class extends h{constructor(){super(),this.solutionsCount=0,this.sortType="numviews",this.filterOpen=!0,this.filters=[],this.isMobile=!1,this._translations=f({name:"solutions-all-shell",blocking:!0}),this._allSolutionsPanelRef=d(),this._authContextProvider=a({context:_}),this._isMobileContextProvider=a({context:y}),this._userSessionContextProvider=a({context:m}),this.filterRemoved=s(),this.solutionsAllLoaded=s(),this.tokenRefreshed=s(),this._mediaQueryChange=this._mediaQueryChange.bind(this)}static{this.properties={solutionsCount:9,sortType:1,filterOpen:16,filters:16,isMobile:16,_translations:16}}static{this.styles=$}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}connectedCallback(){super.connectedCallback();let e=new g({username:"",password:""});this._userSessionContextProvider.setValue(e),this._mediaQuery=window.matchMedia("(max-width: 800px)"),this._mediaQuery.addEventListener("change",this._mediaQueryChange),this._mediaQueryChange(this._mediaQuery)}async load(){let e=new x(v,o,"en");await e.init(),e.SignedIn||e.signIn(),this._authContextProvider.setValue(e),e.RestUserSession&&this._userSessionContextProvider.setValue(e.RestUserSession)}loaded(){this.solutionsAllLoaded.emit()}render(){let e=this.filterOpen?"chevron-left":"chevron-right",t=this.isMobile?"justify-content-end":"";return i`<calcite-shell class="position-relative">${this.isMobile?"":this._getFilterPanel()}<calcite-button appearance=outline-fill class="filter-button mock-fab" icon-start=${e} kind=neutral @click=${this._toggleFilter} scale=m></calcite-button><calcite-panel class="border-override header-override background-override"><div class=${`display-flex align-items-center ${t}`} slot=header-content><calcite-label class="label-override">${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label>${this._renderChips()}</div><div slot=header-actions-end>${this._renderDropdown()}</div>${this.isMobile&&this.filterOpen&&this._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></calcite-shell>`}disconnectedCallback(){super.disconnectedCallback(),this._mediaQuery?.removeEventListener("change",this._mediaQueryChange)}_getFilterPanel(){let e=this.filterOpen?{display:"block"}:"";return this.isMobile?i`<calcite-panel class="filter background-override" id=solutions-all-shell-panel-start style=${l(e)}><solutions-filter-panel @applyFilter=${this._filterApplied}></solutions-filter-panel></calcite-panel>`:i`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start position=start slot=panel-start style=${l(e)}><solutions-filter-panel is-all-solutions @applyFilter=${this._filterApplied}></solutions-filter-panel></calcite-shell-panel>`}_getSolutionsAllPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return i`<solutions-all-panel .agoSolutionsGroupId=${w} .enterpriseSolutionsGroupId=${S} .locale=${"en"} .orgUrl=${o} @cardsFetched=${this._updateSolutionCount} .portalUrl=${o} .sortType=${this.sortType} style=${l(e)} ${p(this._allSolutionsPanelRef)}></solutions-all-panel>`}_renderChips(){return this.filters.length>0?this.filters.map(e=>i`<calcite-chip appearance=outline-fill class="padding-start" closable kind=neutral .label=${e.displayValue} @calciteChipClose=${()=>this._chipClosed(e.displayValue)} .value=${e.displayValue}>${e.displayValue}</calcite-chip>`):void 0}_renderDropdown(){let e=[{displayValue:this._translations.sortByRelevance,sortType:"relevance"},{displayValue:this._translations.sortByTitle,sortType:"title"},{displayValue:this._translations.sortByMostPopular,sortType:"numviews"},{displayValue:this._translations.sortByNew,sortType:"new"},{displayValue:this._translations.sortByUpdated,sortType:"updated"},{displayValue:this._translations.sortBySuggestedForYou,sortType:"suggested"}];return i`<calcite-dropdown width=m><calcite-button appearance=outline-fill class="header-button-padding" icon-start=sort-descending kind=neutral slot=trigger>${this.isMobile?"":this._getString(this.sortType)}</calcite-button><calcite-dropdown-group group-title=${this._translations.chooseSortType??u}>${e.map(t=>this._getDropdownItem(t.displayValue,t.sortType))}</calcite-dropdown-group></calcite-dropdown>`}_getDropdownItem(e,t){return this.sortType!==t?i`<calcite-dropdown-item @click=${()=>this._sortChanged(t)}>${e}</calcite-dropdown-item>`:i`<calcite-dropdown-item @click=${()=>this._sortChanged(t)} selected>${e}</calcite-dropdown-item>`}_getString(e){let t="";switch(e){case"new":t=this._translations.sortByNew;break;case"numviews":t=this._translations.sortByMostPopular;break;case"relevance":t=this._translations.sortByRelevance;break;case"suggested":t=this._translations.sortBySuggestedForYou;break;case"title":t=this._translations.sortByTitle;break;case"updated":t=this._translations.sortByUpdated;break}return t}_updateSolutionCount(e){this.solutionsCount=e.detail}_sortChanged(e){this.sortType=e,this._allSolutionsPanelRef.value?.searchSolutions({sortType:e})}_chipClosed(e){let t=this.filters.filter(r=>r.displayValue===e);this.filters=this.filters.filter(r=>r.displayValue!==e),this._allSolutionsPanelRef.value?.searchSolutions(),t.length>0&&this.filterRemoved.emit(t[0])}_toggleFilter(){this.filterOpen=!this.filterOpen}_filterApplied(e){e.detail?("displayValue"in e.detail&&"type"in e.detail&&e.detail.type==="industry"&&(this.filters=this.filters.filter(t=>t.type!=="industry"),this.filters.push(e.detail)),this._allSolutionsPanelRef.value?.searchSolutions(e.detail)):(this.filters=[],this._allSolutionsPanelRef.value?.searchSolutions())}_mediaQueryChange(e){this.isMobile=e.matches,this._isMobileContextProvider.setValue(this.isMobile)}};b("solutions-all-shell",n);return n},e)
@@ -0,0 +1,18 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
+ v1.1.0-next.20250731.1 */
4
+ import{a as w}from"./AZHKILPX.js";import{b as y,c as S}from"./52S7M4XP.js";import{Tb as b,qa as D}from"./2FWYC6N2.js";import"./FCGAI4KW.js";import"./GTECY6TF.js";import"./QU2IDIBF.js";import"./HN3P22JK.js";import"./UI2K7A6K.js";import"./UKVOZIPV.js";import"./OVNKAN7A.js";import"./6FSSM6C5.js";import"./3TRGQIG4.js";import"./4GJTZGZ2.js";import"./QB26MH3P.js";import"./G6EO7CEQ.js";import"./UCE3PD7K.js";import"./H6OGXITC.js";import"./J4IVVJW7.js";import"./DSYYVW3F.js";import"./V7HQLFUM.js";import"./ITWJGFNZ.js";import"./U4XP4SVP.js";import{a as I}from"./PSE37RBN.js";import"./L3KYPR4U.js";import"./HI22GMCZ.js";import{b as f}from"./25HFBBO7.js";import{A as _,h as m,i as a,k as u,n as r,y as g}from"./A2QNF47K.js";import"./N3JVQRW2.js";var $=m`/** @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}`,h=class extends g{constructor(){super(...arguments),this.open=!1,this._deletePercentage=0,this._fetchingTemplates=!1,this._isDeleteInProgress=!1,this._nonSolutionDependencyItems=[],this._showDeleteError=!1,this._templateInfos=[],this._translations=I({name:"solution-delete-dialog",blocking:!0}),this._userSessionContextConsumer=y({context:S,subscribe:!0}),this.solutionDeleteDialogOpen=r(),this.solutionDeleted=r(),this.solutionDeleteDialogBeforeClose=r()}static{this.properties={card:0,open:5,_deletePercentage:16,_fetchingTemplates:16,_isDeleteInProgress:16,_nonSolutionDependencyItems:16,_showDeleteError:16,_templateInfos:16,_translations:16}}static{this.styles=$}close(){this._showDeleteError=!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}],l={progressCallback:t=>{this._deletePercentage=Math.round(t)}};b(this.card.id,this._userSessionContextConsumer.value,l).then(t=>{console.log(t);let o=t[1],s;o?s=o.items.map(i=>({itemName:i.title,itemType:i.type,owner:i.owner,modified:i.modified})):s=e,s.length===0?(this.solutionDeleted.emit(!0),this._isDeleteInProgress=!1,this.open=!1):this.card?this._processTemplates(this.card).then(i=>{this._templateInfos=i,this._showDeleteError=!0,this._isDeleteInProgress=!1}):(this._showDeleteError=!0,this._isDeleteInProgress=!1)})}}willUpdate(e){if(e.has("open")){let l=e.get("open");this.open&&!l&&(this._fetchingTemplates=!0,this._processTemplates(this.card).then(t=>{this._templateInfos=t,this._fetchingTemplates=!1;let o=new Set(this._templateInfos.map(n=>n.id)),s=[],i=this._templateInfos.map(async n=>{let c=await this._getRelatedDependency(n.id);return{template:n,relatedItems:c}});Promise.all(i).then(n=>{for(let{template:c,relatedItems:C}of n)for(let d of C)if(d.relationshipType!=="Solution2Item")for(let p of d.relatedItemIds)o.has(p)||s.push({controlItemId:c.id,dependencyItemId:p});this._nonSolutionDependencyItems=s})}))}}render(){let e=this._fetchingTemplates?"":"display-none",l=[...new Set(this._nonSolutionDependencyItems.map(s=>s.controlItemId))],t=this._templateInfos.length-this._nonSolutionDependencyItems.length,o=this._translations.deletionCount.replace("{{deleteableCount}}",t.toString()).replace("{{totalCount}}",this._templateInfos.length.toString());return a`<calcite-dialog class="panel-bg-color" close-disabled .heading=${this._translations.title.replace("{{solution}}",this.card?.title??"")} id=${this._translations.title.replace("{{solution}}",this.card?.title??"")??u} modal .open=${this.open} outside-close-disabled @calciteDialogBeforeClose=${()=>{this.solutionDeleteDialogBeforeClose.emit()}} @calciteDialogClose=${()=>{this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}}>${this._isDeleteInProgress?a`<calcite-loader .label=${this._translations.deleteInProgress} scale=l .text=${this._translations.deleteInProgress} type=determinate-value .value=${this._deletePercentage}></calcite-loader>`:a`<calcite-label layout=inline>${this._translations.deletionNote}<calcite-chip .label=${o}>${o}</calcite-chip></calcite-label><calcite-loader class=${_(e)} label></calcite-loader><solution-item-accordion .itemRelationshipDependencies=${l} .templateInfos=${this._templateInfos} list-selection-mode=single></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&&a`<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 w(e.id,this._userSessionContextConsumer.value)}async _getRelatedDependency(e){return await D(e,"reverse",this._userSessionContextConsumer.value)}};f("solution-delete-dialog",h);export{h as SolutionDeleteDialog};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.6 */
4
- import{a as O,c as R,d as g,e as u}from"./WH6W2UP3.js";import"./2C7UE46M.js";import{a}from"./KCFSZOBX.js";import"./XCEE3SEK.js";import{b as s,d as o,e as c}from"./5M5TLNGP.js";import"./LOVLAODG.js";import"./GO42R2CK.js";import"./T6ZDTQ2A.js";import"./VA7UARYI.js";import"./QCT6FXMR.js";import"./P7J4L36T.js";import"./NP7OH2ZI.js";import"./2IVXEYYO.js";import"./QRBQ5KHF.js";import"./SZDHEJ35.js";import"./4OXHTSNR.js";import{c as r}from"./Q2VYZCZY.js";import"./TTOMCAES.js";var A={[r.channelRead]:s.READ,[r.channelWrite]:s.WRITE,[r.channelReadWrite]:s.READWRITE,[r.channelManage]:s.MANAGE,[r.channelModerate]:s.MODERATE,[r.channelOwner]:s.OWNER},C={[a.anonymous]:{category:o.ANONYMOUS_USER,subCategory:null},[a.authenticated]:{category:o.AUTHENTICATED_USER,subCategory:null},[a.group]:{category:o.GROUP,subCategory:c.MEMBER},[a.groupAdmin]:{category:o.GROUP,subCategory:c.ADMIN},[a.org]:{category:o.ORG,subCategory:c.MEMBER},[a.orgAdmin]:{category:o.ORG,subCategory:c.ADMIN},[a.owner]:{category:o.USER,subCategory:null},[a.user]:{category:o.USER,subCategory:null}};function i(n){function e(l,t){let E=C[t.collaborationType];return E?[...l,Object.assign(Object.assign({},E),{key:t.collaborationId||null,role:A[t.permission]})]:l}return{name:n.name,blockWords:n.blockWords,allowAsAnonymous:n.allowAsAnonymous,channelAclDefinition:n.permissions.reduce(e,[])}}async function f(n,e){let l=i(n),t=await O(Object.assign({data:l},e.hubRequestOptions));return u(t,e.currentUser)}async function I(n,e){let l=i(n),t=await R(Object.assign({channelId:n.id,data:l},e.hubRequestOptions));return u(t,e.currentUser)}async function T(n,e){await g(Object.assign({channelId:n},e.hubRequestOptions))}export{f as createHubChannel,T as deleteHubChannel,I as updateHubChannel};
2
+ See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
+ v1.1.0-next.20250731.1 */
4
+ import{a as O,c as R,d as g,e as u}from"./I3S3DM4U.js";import{a}from"./6N6HLBBS.js";import"./MULD755N.js";import"./XQIIB6WI.js";import{b as s,d as o,e as c}from"./FQKGNPW6.js";import"./UI2K7A6K.js";import"./CM6TYWX6.js";import"./6FSSM6C5.js";import"./3TRGQIG4.js";import"./4GJTZGZ2.js";import"./QB26MH3P.js";import"./UCE3PD7K.js";import"./H6OGXITC.js";import"./J4IVVJW7.js";import"./V7HQLFUM.js";import"./ITWJGFNZ.js";import{c as r}from"./U4XP4SVP.js";import"./N3JVQRW2.js";var A={[r.channelRead]:s.READ,[r.channelWrite]:s.WRITE,[r.channelReadWrite]:s.READWRITE,[r.channelManage]:s.MANAGE,[r.channelModerate]:s.MODERATE,[r.channelOwner]:s.OWNER},C={[a.anonymous]:{category:o.ANONYMOUS_USER,subCategory:null},[a.authenticated]:{category:o.AUTHENTICATED_USER,subCategory:null},[a.group]:{category:o.GROUP,subCategory:c.MEMBER},[a.groupAdmin]:{category:o.GROUP,subCategory:c.ADMIN},[a.org]:{category:o.ORG,subCategory:c.MEMBER},[a.orgAdmin]:{category:o.ORG,subCategory:c.ADMIN},[a.owner]:{category:o.USER,subCategory:null},[a.user]:{category:o.USER,subCategory:null}};function i(n){function e(l,t){let E=C[t.collaborationType];return E?[...l,Object.assign(Object.assign({},E),{key:t.collaborationId||null,role:A[t.permission]})]:l}return{name:n.name,blockWords:n.blockWords,allowAsAnonymous:n.allowAsAnonymous,channelAclDefinition:n.permissions.reduce(e,[])}}async function f(n,e){let l=i(n),t=await O(Object.assign({data:l},e.hubRequestOptions));return u(t,e.currentUser)}async function I(n,e){let l=i(n),t=await R(Object.assign({channelId:n.id,data:l},e.hubRequestOptions));return u(t,e.currentUser)}async function T(n,e){await g(Object.assign({channelId:n},e.hubRequestOptions))}export{f as createHubChannel,T as deleteHubChannel,I as updateHubChannel};