@esri/solutions-components 1.1.0-next.20250908 → 1.1.0-next.20250908.2

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 (471) hide show
  1. package/dist/cdn/{23MI2KRW.js → 2GRA3KZ4.js} +2 -2
  2. package/dist/cdn/{6267ZF2B.js → 2JO3Q5GD.js} +2 -2
  3. package/dist/cdn/{DTR2RNU2.js → 2LGNXI4D.js} +2 -2
  4. package/dist/cdn/{TUPO6RO3.js → 2LY5ZT7K.js} +2 -2
  5. package/dist/cdn/{NNO4JY7G.js → 2PHA2RR3.js} +2 -2
  6. package/dist/cdn/{JLGFQCEH.js → 2SLXFEQF.js} +1 -1
  7. package/dist/cdn/{JDGMKM6Q.js → 35H6I5F5.js} +2 -2
  8. package/dist/cdn/{LYBF3MGB.js → 3ALTYALF.js} +2 -2
  9. package/dist/cdn/{B73F322M.js → 3E5OTPX6.js} +1 -1
  10. package/dist/cdn/{AKBZSDQS.js → 3EEJBN4H.js} +2 -2
  11. package/dist/cdn/{HDEAMURX.js → 3HDWBKJ2.js} +1 -1
  12. package/dist/cdn/{QSHJ5ZZB.js → 3J4U42Y6.js} +2 -2
  13. package/dist/cdn/{BPVMB5BY.js → 3KMTOL5B.js} +2 -2
  14. package/dist/cdn/{EZXHXFCU.js → 3LEOWDJ4.js} +2 -2
  15. package/dist/cdn/{7UCZZ4QP.js → 3NEDY7J7.js} +2 -2
  16. package/dist/cdn/{3BFC7VLO.js → 3PDHNCYS.js} +2 -2
  17. package/dist/cdn/{TNBFSINB.js → 3SFEVALE.js} +2 -2
  18. package/dist/cdn/{OUYRTCPB.js → 3VG4PKLB.js} +2 -2
  19. package/dist/cdn/{ROBSGBFD.js → 3WLF2ZET.js} +1 -1
  20. package/dist/cdn/{7QDN4I77.js → 3YPNVFSD.js} +2 -2
  21. package/dist/cdn/{BB4SEI3A.js → 44KY7YBU.js} +2 -2
  22. package/dist/cdn/{WLL2XD4R.js → 456NQ46R.js} +2 -2
  23. package/dist/cdn/{WQ3J3CKP.js → 4IEQYKXS.js} +2 -2
  24. package/dist/cdn/{WJIW2D7Z.js → 4IIKQT2Z.js} +2 -2
  25. package/dist/cdn/{7XUML3BK.js → 4LKROH62.js} +2 -2
  26. package/dist/cdn/{7SH6KXAJ.js → 4MOVGYFM.js} +1 -1
  27. package/dist/cdn/{JTYXIV2M.js → 4UKCGS2Z.js} +2 -2
  28. package/dist/cdn/{MDP2H7U5.js → 4WUFXIC5.js} +2 -2
  29. package/dist/cdn/{J3EJMIAJ.js → 4YEIASAP.js} +2 -2
  30. package/dist/cdn/{3EM7FSNN.js → 52YHFLUG.js} +2 -2
  31. package/dist/cdn/{7PL2GTFV.js → 54AEGWLH.js} +2 -2
  32. package/dist/cdn/{TLDVC6HH.js → 55IAHZCR.js} +2 -2
  33. package/dist/cdn/{RLLYOX4I.js → 5BUA4PLV.js} +1 -1
  34. package/dist/cdn/{ANRCHD5L.js → 5FVN5AEL.js} +2 -2
  35. package/dist/cdn/{BE3FNH52.js → 5KX236LO.js} +2 -2
  36. package/dist/cdn/{FSE3DRKG.js → 5NXZ25MB.js} +2 -2
  37. package/dist/cdn/{GDMEJW64.js → 5RRSUACB.js} +2 -2
  38. package/dist/cdn/{7Z4KF35N.js → 5RYBGIWG.js} +1 -1
  39. package/dist/cdn/{XPNUQPK6.js → 5TWNGSBV.js} +2 -2
  40. package/dist/cdn/{DO33KU4H.js → 5VMM7Z6S.js} +2 -2
  41. package/dist/cdn/{4ZJTUJWW.js → 5XYKVRIP.js} +2 -2
  42. package/dist/cdn/{WWGKPU37.js → 5ZT3SBRM.js} +2 -2
  43. package/dist/cdn/{5WRWPUWR.js → 65MOOQM3.js} +2 -2
  44. package/dist/cdn/{AKX2TTAE.js → 66DENMOE.js} +2 -2
  45. package/dist/cdn/{6NNWA5JF.js → 6B5MLBYX.js} +2 -2
  46. package/dist/cdn/{456Y4EGY.js → 6H6QJXB6.js} +2 -2
  47. package/dist/cdn/{AONBV6ZE.js → 6TZ2N6F7.js} +2 -2
  48. package/dist/cdn/{HMJSAVOC.js → 736MG47C.js} +1 -1
  49. package/dist/cdn/753VT4MT.js +18 -0
  50. package/dist/cdn/{PK4P4HV7.js → 75CDN2JA.js} +2 -2
  51. package/dist/cdn/{J7IPW737.js → 7IJE6752.js} +2 -2
  52. package/dist/cdn/{DMMYPRBI.js → 7JGCEYZY.js} +2 -2
  53. package/dist/cdn/{W73ITGL2.js → 7SGINLMJ.js} +2 -2
  54. package/dist/cdn/{HMQOH5HM.js → 7ULVZR2I.js} +2 -2
  55. package/dist/cdn/{KO62RUX2.js → A3A52PZV.js} +2 -2
  56. package/dist/cdn/{CSLRGWKO.js → A3LEV4SR.js} +2 -2
  57. package/dist/cdn/{BZ7AO5QO.js → A5LJZWZM.js} +1 -1
  58. package/dist/cdn/{PBBIDYVA.js → A5TLI7HV.js} +2 -2
  59. package/dist/cdn/{IB3AMBOI.js → AA2YR322.js} +2 -2
  60. package/dist/cdn/{LMLKYWYR.js → ABEV6KG4.js} +2 -2
  61. package/dist/cdn/{WGZZW32V.js → AHZBQEXF.js} +2 -2
  62. package/dist/cdn/{3D4CFYOY.js → AKCT6BG5.js} +2 -2
  63. package/dist/cdn/{AB7BIIHQ.js → AUVXOD7P.js} +2 -2
  64. package/dist/cdn/{OWJBNQ6G.js → AWZOCRLD.js} +2 -2
  65. package/dist/cdn/{RKKDKWIA.js → B6SZ2TVS.js} +2 -2
  66. package/dist/cdn/{2BBIT7JS.js → BCQLX5KC.js} +2 -2
  67. package/dist/cdn/{6EJK7JMX.js → BCT3U2LS.js} +2 -2
  68. package/dist/cdn/{LJMJ4DLL.js → BDUUCAXJ.js} +2 -2
  69. package/dist/cdn/{LLFU7WU5.js → BF2KUQQ3.js} +2 -2
  70. package/dist/cdn/{ZO4YAUJC.js → BG6IAOZJ.js} +2 -2
  71. package/dist/cdn/{KIVSPTFX.js → BJXG332L.js} +2 -2
  72. package/dist/cdn/{FUN55YD2.js → BNL2F5XR.js} +2 -2
  73. package/dist/cdn/{MNP2YODC.js → BSW2GCME.js} +2 -2
  74. package/dist/cdn/{UR5CWPUZ.js → BXSZTLVC.js} +2 -2
  75. package/dist/cdn/{7GGMPOVW.js → C56GJWIS.js} +2 -2
  76. package/dist/cdn/{GJP43Z44.js → C5MAZ553.js} +2 -2
  77. package/dist/cdn/{CMDWAHHM.js → C66HLGJ2.js} +2 -2
  78. package/dist/cdn/{VRJM22FG.js → CJO37FFK.js} +1 -1
  79. package/dist/cdn/CK5WR6WJ.js +4 -0
  80. package/dist/cdn/{XUWWPPHZ.js → CLLAXRJR.js} +1 -1
  81. package/dist/cdn/{XFBGD3W7.js → CNBBYZQF.js} +2 -2
  82. package/dist/cdn/{PDEJGGM6.js → CR3TMY5K.js} +2 -2
  83. package/dist/cdn/{7BIU5SOL.js → CSP64T2W.js} +2 -2
  84. package/dist/cdn/{WHJW5ATS.js → CT747PXL.js} +1 -1
  85. package/dist/cdn/{P6LNDBI5.js → D2VV35VM.js} +2 -2
  86. package/dist/cdn/{SPDUDQGT.js → D43T65NC.js} +2 -2
  87. package/dist/cdn/{R5WFDSDR.js → DFZDTQ57.js} +1 -1
  88. package/dist/cdn/{WPGWWAEU.js → DGFEQ6CL.js} +2 -2
  89. package/dist/cdn/{RCZHEY62.js → DH4K5UWO.js} +2 -2
  90. package/dist/cdn/{Y6DHGJ6U.js → DYUIMZ7H.js} +2 -2
  91. package/dist/cdn/{XIPFEKDP.js → E5W5E3E7.js} +1 -1
  92. package/dist/cdn/{PHC4UW6H.js → EA4XLTLA.js} +2 -2
  93. package/dist/cdn/{2XFZF242.js → EC6NR6LE.js} +2 -2
  94. package/dist/cdn/{5AUVFX5Q.js → EG4SD7GS.js} +2 -2
  95. package/dist/cdn/{EQZR6CEP.js → EHUCMJCV.js} +2 -2
  96. package/dist/cdn/{3NC6K7MW.js → EJ7QGZ7R.js} +2 -2
  97. package/dist/cdn/{ZCK6LMAW.js → EJD5OSQ7.js} +2 -2
  98. package/dist/cdn/{A5DHZQ2K.js → EOMKZ65F.js} +2 -2
  99. package/dist/cdn/{E255TKVJ.js → EY6YRKF2.js} +2 -2
  100. package/dist/cdn/{QZ4Z656W.js → EYTVXLC2.js} +2 -2
  101. package/dist/cdn/{GBLUWESL.js → F4R37CKG.js} +2 -2
  102. package/dist/cdn/{B54UR7GV.js → F4YVM6OC.js} +2 -2
  103. package/dist/cdn/{7KSE2E55.js → F5BTNSWR.js} +2 -2
  104. package/dist/cdn/{Q6TGLBB2.js → F7WSPLET.js} +2 -2
  105. package/dist/cdn/{BT7BQXH2.js → FEFYPRKZ.js} +2 -2
  106. package/dist/cdn/{EHLTORSB.js → FERDHUAT.js} +2 -2
  107. package/dist/cdn/{KHAEJZPQ.js → FTPSK77G.js} +2 -2
  108. package/dist/cdn/{SKNBIQFA.js → FVMCW63I.js} +2 -2
  109. package/dist/cdn/{XJGWQOFS.js → G3FJWPEX.js} +2 -2
  110. package/dist/cdn/{5IZN54A6.js → G5POA4RR.js} +1 -1
  111. package/dist/cdn/{P7QELDJ5.js → GC4GGWUT.js} +2 -2
  112. package/dist/cdn/{F2J7UPQO.js → GEXJUL5Y.js} +2 -2
  113. package/dist/cdn/{DUSKA3DA.js → GI4RFDKX.js} +1 -1
  114. package/dist/cdn/{TPY6B66Y.js → GNIZVXPG.js} +2 -2
  115. package/dist/cdn/{6KIWMVSH.js → GOY734UA.js} +2 -2
  116. package/dist/cdn/{TGXRHX6P.js → GRLGO3Z5.js} +2 -2
  117. package/dist/cdn/{KMWRJBXJ.js → GZD46QUU.js} +2 -2
  118. package/dist/cdn/{JSJSDCWO.js → H23IX3TN.js} +2 -2
  119. package/dist/cdn/{NPGP7AI4.js → H4J6OKKZ.js} +2 -2
  120. package/dist/cdn/{5442O73U.js → H6QVNUYG.js} +2 -2
  121. package/dist/cdn/H7Q3YPI3.js +18 -0
  122. package/dist/cdn/{YGC4V7RU.js → HAELZEDD.js} +2 -2
  123. package/dist/cdn/{APDXA3UL.js → HAH5DJMU.js} +2 -2
  124. package/dist/cdn/{AQDXWCMS.js → HBFLP377.js} +2 -2
  125. package/dist/cdn/{H2Y5F4QW.js → HCAYWLMD.js} +2 -2
  126. package/dist/cdn/{UJRMM3TD.js → HDJULB6G.js} +2 -2
  127. package/dist/cdn/{H4OUY5QO.js → HWMXLM5D.js} +2 -2
  128. package/dist/cdn/{7EJOBL6M.js → HWTE2YHA.js} +1 -1
  129. package/dist/cdn/{EWC5JCCO.js → HYXT7WWG.js} +2 -2
  130. package/dist/cdn/{G4BWKN3O.js → I65Y77KA.js} +2 -2
  131. package/dist/cdn/{WCT4PNFR.js → ICH3MF6K.js} +2 -2
  132. package/dist/cdn/{6OWSRH66.js → IE7LPT5Z.js} +2 -2
  133. package/dist/cdn/{HJH65VUL.js → IL6KFT4K.js} +2 -2
  134. package/dist/cdn/{T7WC6EEB.js → IRHQTWY2.js} +2 -2
  135. package/dist/cdn/{3EGLZ7ME.js → ITDANTJC.js} +2 -2
  136. package/dist/cdn/{DDQDLXTA.js → JBHRRIMH.js} +2 -2
  137. package/dist/cdn/{G7M7ZKUR.js → JBWEGZUY.js} +2 -2
  138. package/dist/cdn/{KPA2GX6V.js → JEU6BDL7.js} +2 -2
  139. package/dist/cdn/{IO7TSP7M.js → JHAEJSTT.js} +2 -2
  140. package/dist/cdn/{4UNPUJDV.js → JLPON57U.js} +2 -2
  141. package/dist/cdn/{6PAJRRZO.js → JP357C64.js} +2 -2
  142. package/dist/cdn/JPD3244W.js +18 -0
  143. package/dist/cdn/JPLLLWH4.js +4 -0
  144. package/dist/cdn/{DD5KIXQJ.js → JUCX5RXC.js} +2 -2
  145. package/dist/cdn/{OCGLKLUU.js → K6SPYPCX.js} +2 -2
  146. package/dist/cdn/{FBIGXQUA.js → KA2GAGJN.js} +2 -2
  147. package/dist/cdn/{EYVSGGFD.js → KAMOLXOZ.js} +2 -2
  148. package/dist/cdn/{FRRDJTIR.js → KEVZEBXZ.js} +2 -2
  149. package/dist/cdn/{X5TNUDEG.js → KF5NLO6S.js} +2 -2
  150. package/dist/cdn/{HMMDD7CR.js → KGFVY55W.js} +2 -2
  151. package/dist/cdn/{O7O34WPF.js → KGZEHQIV.js} +2 -2
  152. package/dist/cdn/{XDICGKS4.js → KKCDDPPB.js} +2 -2
  153. package/dist/cdn/{UZHJAC32.js → KKPAX6LH.js} +2 -2
  154. package/dist/cdn/{4A6OTIHY.js → KOCN2YQY.js} +2 -2
  155. package/dist/cdn/{7YAHT6JK.js → KQVLKPIF.js} +1 -1
  156. package/dist/cdn/KVCQDYKU.js +18 -0
  157. package/dist/cdn/{OJBR3DU3.js → KVSDZXHZ.js} +4 -4
  158. package/dist/cdn/{FBSFFK3U.js → KYJHY77Y.js} +2 -2
  159. package/dist/cdn/{OUAPSZPB.js → KYZ3QRKE.js} +2 -2
  160. package/dist/cdn/{LRBEEXPC.js → L3LKNBOT.js} +2 -2
  161. package/dist/cdn/{4JCBKNC7.js → L6AHA74K.js} +2 -2
  162. package/dist/cdn/{JPIRNN2N.js → L7WUPFJF.js} +1 -1
  163. package/dist/cdn/{OKDNDINH.js → LEZHV4Z4.js} +2 -2
  164. package/dist/cdn/{RICTTJEM.js → LIDUNIZN.js} +2 -2
  165. package/dist/cdn/{NRNFX3Q4.js → LKMJQ3YW.js} +1 -1
  166. package/dist/cdn/{IIBAAUKD.js → LMHJEQO7.js} +2 -2
  167. package/dist/cdn/{DEFSI2D4.js → LQ5SHOXK.js} +2 -2
  168. package/dist/cdn/{CJSVBOF7.js → LROYU56O.js} +2 -2
  169. package/dist/cdn/{RLTTA62Q.js → LSFXDJYP.js} +2 -2
  170. package/dist/cdn/LTHLLNEY.js +18 -0
  171. package/dist/cdn/{LKSNL3SX.js → LVHDQRQC.js} +2 -2
  172. package/dist/cdn/LW5D5KNH.js +4 -0
  173. package/dist/cdn/{2LCQAFSS.js → LZGKF7IS.js} +1 -1
  174. package/dist/cdn/{6CGYVQRZ.js → LZWZ72I6.js} +1 -1
  175. package/dist/cdn/{7PXVH6WW.js → M2CQDTQL.js} +2 -2
  176. package/dist/cdn/{4YZV6MYT.js → M7PTBKBM.js} +2 -2
  177. package/dist/cdn/{IH5PEZ6R.js → MBJT4HAT.js} +2 -2
  178. package/dist/cdn/{AHIZZQAB.js → MDGG4XDM.js} +2 -2
  179. package/dist/cdn/{APHMYZG6.js → MDXWCVZC.js} +2 -2
  180. package/dist/cdn/{57QXDQHH.js → MH674SJO.js} +2 -2
  181. package/dist/cdn/{CJR3TUO3.js → MIRUTDVQ.js} +2 -2
  182. package/dist/cdn/{5I5QND7W.js → MLRQD5U6.js} +2 -2
  183. package/dist/cdn/{F6SWDTVQ.js → MN5L3362.js} +2 -2
  184. package/dist/cdn/{XME7VMM2.js → MNX47SZ3.js} +2 -2
  185. package/dist/cdn/{7KOTU5ML.js → MPDGXIFC.js} +2 -2
  186. package/dist/cdn/{PPRSEC3E.js → MTNEBTSC.js} +2 -2
  187. package/dist/cdn/{MZK3O6RZ.js → MTQFGNVQ.js} +2 -2
  188. package/dist/cdn/{FS7K7ZLZ.js → MVFQEZMQ.js} +2 -2
  189. package/dist/cdn/{RNU6NMH5.js → NB2JAMZK.js} +2 -2
  190. package/dist/cdn/{OUFYZ74E.js → NB3Z4FW4.js} +1 -1
  191. package/dist/cdn/{2YK3DN2N.js → NCBSQW4V.js} +2 -2
  192. package/dist/cdn/{VHHGIKYZ.js → NFLFZFIX.js} +1 -1
  193. package/dist/cdn/{DHVAHNQF.js → NFQYRLC3.js} +2 -2
  194. package/dist/cdn/{AKAEMS6J.js → NHUAMK3N.js} +1 -1
  195. package/dist/cdn/{3AQ7GNW6.js → NKUQBHL2.js} +2 -2
  196. package/dist/cdn/{5VUTB2DI.js → NRGYH73B.js} +2 -2
  197. package/dist/cdn/{STYEG7HJ.js → NYKU6GAS.js} +2 -2
  198. package/dist/cdn/{SLI3ZQZK.js → O7LAAYUZ.js} +2 -2
  199. package/dist/cdn/{IHGM3BFU.js → OAEPAELK.js} +2 -2
  200. package/dist/cdn/{V3OWCEBV.js → ODTVVNRE.js} +2 -2
  201. package/dist/cdn/{YWBYZLJO.js → OIET7KHI.js} +3 -3
  202. package/dist/cdn/{CGSLBDQX.js → OIUHDTIO.js} +2 -2
  203. package/dist/cdn/{S56W6PPT.js → OMXNDY5V.js} +2 -2
  204. package/dist/cdn/{HC6CRLSF.js → OU4M2QGI.js} +1 -1
  205. package/dist/cdn/{EX2WAU5C.js → OWKVAGJY.js} +2 -2
  206. package/dist/cdn/{U5OUDW3H.js → OYWHPFW6.js} +2 -2
  207. package/dist/cdn/{JUUC3APR.js → OZJ3GZC3.js} +2 -2
  208. package/dist/cdn/{UU4ZPLIR.js → OZLZWJIM.js} +2 -2
  209. package/dist/cdn/{6KFTX2RO.js → P2O32NJT.js} +2 -2
  210. package/dist/cdn/{QAYWLKDY.js → P2QBHBRE.js} +2 -2
  211. package/dist/cdn/{3YL6ZQRW.js → P4GUKPU4.js} +2 -2
  212. package/dist/cdn/{33XS6CCD.js → PC26YPY5.js} +2 -2
  213. package/dist/cdn/{DGYY5UPJ.js → PCELYN2H.js} +2 -2
  214. package/dist/cdn/{UGSRDH2A.js → PCWB57HO.js} +2 -2
  215. package/dist/cdn/{JRBU5PTD.js → PFI2QJBL.js} +2 -2
  216. package/dist/cdn/{BLPGQHCS.js → PP4CRVWY.js} +2 -2
  217. package/dist/cdn/{DC237S4E.js → PVWALCFH.js} +2 -2
  218. package/dist/cdn/{2P53WRL3.js → PVZYH7J4.js} +2 -2
  219. package/dist/cdn/{XPCXO4AL.js → PW7PBBTA.js} +2 -2
  220. package/dist/cdn/{XDZU2O77.js → PZJBPUNR.js} +2 -2
  221. package/dist/cdn/{BVJPMR2W.js → Q3LPZQDC.js} +2 -2
  222. package/dist/cdn/{D4F6OW2A.js → Q42SUBLZ.js} +2 -2
  223. package/dist/cdn/{GGPG4RVY.js → Q545KRB5.js} +1 -1
  224. package/dist/cdn/{3TLPMHF3.js → Q5IO7NTP.js} +2 -2
  225. package/dist/cdn/QAQAVXWH.js +4 -0
  226. package/dist/cdn/{6P7UK63U.js → QCPMDDMQ.js} +2 -2
  227. package/dist/cdn/{2YWVGKM4.js → QSIEZ4SV.js} +2 -2
  228. package/dist/cdn/{HMW5STYW.js → QTGVQ4V4.js} +2 -2
  229. package/dist/cdn/{KVILZ5LH.js → QUI4QBQP.js} +2 -2
  230. package/dist/cdn/{PSWRSATV.js → QW7UI6GX.js} +2 -2
  231. package/dist/cdn/{FW6E6H2G.js → QZMRMPCS.js} +2 -2
  232. package/dist/cdn/{QW6JOSBQ.js → RALKEF65.js} +2 -2
  233. package/dist/cdn/{UQY3SGBU.js → RFM74GX4.js} +2 -2
  234. package/dist/cdn/{7GWMX64B.js → RFMSRXM2.js} +2 -2
  235. package/dist/cdn/{IIOTM2BV.js → RFVGMZUJ.js} +2 -2
  236. package/dist/cdn/{2Q7C43LH.js → RIJY3CGU.js} +2 -2
  237. package/dist/cdn/{K3YTBSUK.js → RIQLUQPY.js} +2 -2
  238. package/dist/cdn/{QWQQND4L.js → RPYOJCAT.js} +1 -1
  239. package/dist/cdn/{JEGRWO2F.js → RQX5MCL4.js} +2 -2
  240. package/dist/cdn/{JF5W5A65.js → S3T7N7DA.js} +1 -1
  241. package/dist/cdn/{4NBF6YYX.js → S3WQAODN.js} +2 -2
  242. package/dist/cdn/{NZ3KZLIR.js → S472EG6S.js} +2 -2
  243. package/dist/cdn/{L2FHNBDG.js → S6ZWMQVE.js} +2 -2
  244. package/dist/cdn/{2WIZSKHX.js → SDHL4N2C.js} +2 -2
  245. package/dist/cdn/{5LDNQQNR.js → SEMCD2QW.js} +2 -2
  246. package/dist/cdn/{3Y54W3MS.js → SEPSM67O.js} +2 -2
  247. package/dist/cdn/{5J4ZNVOW.js → SGMTUNEV.js} +1 -1
  248. package/dist/cdn/{RQN6AMMR.js → SKF5NKUT.js} +2 -2
  249. package/dist/cdn/{JJXCNC6C.js → SPTRX6PO.js} +2 -2
  250. package/dist/cdn/{UGOHDWSP.js → ST7UGI4F.js} +2 -2
  251. package/dist/cdn/{IFXP7AST.js → STZVZB24.js} +2 -2
  252. package/dist/cdn/{UPSOCDZW.js → SWFUXSAH.js} +2 -2
  253. package/dist/cdn/{DXC4FU6L.js → SX7DPFDJ.js} +2 -2
  254. package/dist/cdn/{SDFJI25E.js → SYWCDKFN.js} +2 -2
  255. package/dist/cdn/{ZS32ZCBO.js → T2ES3UJ6.js} +2 -2
  256. package/dist/cdn/{WBLR4A3Q.js → T4LJCBQH.js} +2 -2
  257. package/dist/cdn/{F4J3GW2D.js → TBMQXNWD.js} +1 -1
  258. package/dist/cdn/{Z5PYD5IY.js → TBRZZJQ5.js} +2 -2
  259. package/dist/cdn/{PJZQETQP.js → TDIA3KFT.js} +2 -2
  260. package/dist/cdn/{46ZSK3KI.js → THROCNEA.js} +2 -2
  261. package/dist/cdn/{GA66LQ5B.js → TJD2VIYY.js} +2 -2
  262. package/dist/cdn/{FQ36XLKQ.js → TKXQSYHZ.js} +2 -2
  263. package/dist/cdn/{4N6XXVUB.js → TLO3KJTJ.js} +2 -2
  264. package/dist/cdn/{XX5LJ2RJ.js → TR7TPO7F.js} +2 -2
  265. package/dist/cdn/{FACBQ3CO.js → TS4SHEIN.js} +2 -2
  266. package/dist/cdn/{QHCU3JRN.js → TTVIUGBO.js} +3 -3
  267. package/dist/cdn/{QNDWNLA7.js → TWQK2H5U.js} +2 -2
  268. package/dist/cdn/{DEUXS6X7.js → U4NPWWFU.js} +2 -2
  269. package/dist/cdn/{H2WJKM46.js → U7YM3GK7.js} +2 -2
  270. package/dist/cdn/{OPDYFAD7.js → UACJ72WF.js} +2 -2
  271. package/dist/cdn/UFMZDVUF.js +4 -0
  272. package/dist/cdn/{D6CGXYCO.js → UNHUP3OO.js} +2 -2
  273. package/dist/cdn/{XZPEREAG.js → UVDEP7IG.js} +2 -2
  274. package/dist/cdn/{37BBANOV.js → UVUBTUO4.js} +2 -2
  275. package/dist/cdn/{T75VXTNW.js → UWUMZXRG.js} +2 -2
  276. package/dist/cdn/{IFZGJXRH.js → UY6ORSLJ.js} +2 -2
  277. package/dist/cdn/{U5264HEO.js → V3K5KZTE.js} +2 -2
  278. package/dist/cdn/{MTLZ3756.js → V44LLTNJ.js} +2 -2
  279. package/dist/cdn/{FNN76R5R.js → V73HEDAJ.js} +1 -1
  280. package/dist/cdn/{25F6ORNX.js → VAQ6JHUC.js} +2 -2
  281. package/dist/cdn/{SYPGTJGM.js → VHBY25HA.js} +2 -2
  282. package/dist/cdn/{UEAHPGKT.js → VLVCRQWB.js} +1 -1
  283. package/dist/cdn/{I5D4NJGN.js → VNMJW3CI.js} +2 -2
  284. package/dist/cdn/{SOMRBE5O.js → VODXCEWB.js} +2 -2
  285. package/dist/cdn/{YLIJYCSJ.js → VOTJLOZS.js} +2 -2
  286. package/dist/cdn/{MV44BNCC.js → VPURAZNN.js} +1 -1
  287. package/dist/cdn/{R6KDCWWX.js → VPZ2K5TH.js} +2 -2
  288. package/dist/cdn/{4N5P3F5C.js → VRNWG3BN.js} +2 -2
  289. package/dist/cdn/{RSM2TX5F.js → VTDUJQK2.js} +1 -1
  290. package/dist/cdn/VTGXKROE.js +4 -0
  291. package/dist/cdn/{5SIYISLO.js → VTH5BIQ4.js} +2 -2
  292. package/dist/cdn/{IHPRJIFM.js → VVEMRAW3.js} +2 -2
  293. package/dist/cdn/{VQLOYI55.js → VVSDZBVF.js} +2 -2
  294. package/dist/cdn/{4MTHN6BF.js → VZ2KHNEI.js} +2 -2
  295. package/dist/cdn/{W5PIXYHL.js → W2CVJBJN.js} +2 -2
  296. package/dist/cdn/{AQLIATLL.js → WBE2DRWW.js} +2 -2
  297. package/dist/cdn/{ZGVYAP6A.js → WGSDBSAA.js} +2 -2
  298. package/dist/cdn/{ASW4QZYZ.js → WMDC2DFD.js} +2 -2
  299. package/dist/cdn/{IJRRF2JN.js → WN2IAUBM.js} +2 -2
  300. package/dist/cdn/{WW4KPCUM.js → WYDAAFPO.js} +2 -2
  301. package/dist/cdn/{SJ2BP2KP.js → X2NWUXVO.js} +2 -2
  302. package/dist/cdn/{EI7PYSBM.js → X3CCFXNZ.js} +2 -2
  303. package/dist/cdn/{LYETIEPC.js → X46XSBHC.js} +2 -2
  304. package/dist/cdn/{5HMQFNST.js → X7T77XTR.js} +2 -2
  305. package/dist/cdn/{CPUMQI3V.js → XA3O53V3.js} +1 -1
  306. package/dist/cdn/{J5D6ZCQF.js → XFIR62G4.js} +2 -2
  307. package/dist/cdn/{USCMVULI.js → XFKEV2FE.js} +2 -2
  308. package/dist/cdn/{VJ4KLE24.js → XHSDKMKM.js} +2 -2
  309. package/dist/cdn/{5ASSW3X3.js → XIMCMZNC.js} +2 -2
  310. package/dist/cdn/{AMADRUBA.js → XNR6WNZB.js} +2 -2
  311. package/dist/cdn/{FHRTBDSG.js → XO6H72PH.js} +2 -2
  312. package/dist/cdn/{WYLFDTO7.js → XOTH737L.js} +2 -2
  313. package/dist/cdn/{2SG24VII.js → XQEOSPV4.js} +2 -2
  314. package/dist/cdn/{H4LF5WHR.js → XRLGHISJ.js} +2 -2
  315. package/dist/cdn/{CDEBZXW6.js → XU6URXKL.js} +2 -2
  316. package/dist/cdn/{7HOBSAJT.js → XWHG6V44.js} +2 -2
  317. package/dist/cdn/{L25BQYBS.js → Y27ZCF27.js} +1 -1
  318. package/dist/cdn/{NX74OABI.js → YB5MP2MI.js} +2 -2
  319. package/dist/cdn/YC3XMGG6.js +4 -0
  320. package/dist/cdn/{4QSJLVQN.js → YIQLQJN2.js} +2 -2
  321. package/dist/cdn/YN3FGOI5.js +4 -0
  322. package/dist/cdn/{F3U2T6RN.js → YNIHGBTZ.js} +2 -2
  323. package/dist/cdn/{3NC3WOAK.js → YQ4VHJS6.js} +2 -2
  324. package/dist/cdn/{LNXDUZBH.js → YSP7NER3.js} +2 -2
  325. package/dist/cdn/{2KPQG4MK.js → YSSEMCIL.js} +2 -2
  326. package/dist/cdn/{X3RQKWFQ.js → YSTW4NKH.js} +2 -2
  327. package/dist/cdn/{6ZLM7NKB.js → YTDRTBBH.js} +2 -2
  328. package/dist/cdn/{ED5JBSO3.js → YYZ5OUCH.js} +2 -2
  329. package/dist/cdn/{WPB4LXWL.js → YZWKFVGD.js} +2 -2
  330. package/dist/cdn/{HFNYACVQ.js → Z7NFATTH.js} +2 -2
  331. package/dist/cdn/{FC3667Y6.js → Z7S4Q7L2.js} +1 -1
  332. package/dist/cdn/{YZHW3QHI.js → ZEC5OXCO.js} +2 -2
  333. package/dist/cdn/{AFTONAQ2.js → ZEMBNMSP.js} +2 -2
  334. package/dist/cdn/{R6TSC4SW.js → ZF743BS7.js} +2 -2
  335. package/dist/cdn/{PDGV5CS6.js → ZH4AFNOL.js} +2 -2
  336. package/dist/cdn/{5PU7RU5P.js → ZQUZ7T2P.js} +2 -2
  337. package/dist/cdn/{ZZFV5Q5C.js → ZSHOJMNJ.js} +2 -2
  338. package/dist/cdn/{TY2DDBSI.js → ZSM3J7FY.js} +2 -2
  339. package/dist/cdn/{MSNZ6FAM.js → ZUFI4J42.js} +1 -1
  340. package/dist/cdn/{WCUVE5ZX.js → ZXHMUSFI.js} +2 -2
  341. package/dist/cdn/{2OC5UVVW.js → ZZLPZGUV.js} +2 -2
  342. package/dist/cdn/assets/solution-configure-titles/t9n/messages.en.json +1 -1
  343. package/dist/cdn/assets/solution-configure-titles/t9n/messages.json +1 -1
  344. package/dist/cdn/assets/solution-delete-dialog/t9n/messages.en.json +1 -1
  345. package/dist/cdn/assets/solution-delete-dialog/t9n/messages.json +1 -1
  346. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.en.json +1 -1
  347. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.json +1 -1
  348. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.en.json +1 -1
  349. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.json +1 -1
  350. package/dist/cdn/index.js +2 -2
  351. package/dist/chunks/Auth.js +1 -1
  352. package/dist/chunks/CardsFetcher.js +1 -1
  353. package/dist/chunks/appConfig.js +1 -1
  354. package/dist/chunks/cardFetchingUtils.js +1 -1
  355. package/dist/chunks/cardsHelpers.js +2 -2
  356. package/dist/chunks/common.js +1 -1
  357. package/dist/chunks/deployAppContexts.js +1 -1
  358. package/dist/chunks/downloadUtils.js +1 -1
  359. package/dist/chunks/getItemIcon.js +1 -1
  360. package/dist/chunks/helpers.js +1 -1
  361. package/dist/chunks/index.js +1 -1
  362. package/dist/chunks/interfaces.js +1 -1
  363. package/dist/chunks/loadModules.js +1 -1
  364. package/dist/chunks/mapViewUtils.js +1 -1
  365. package/dist/chunks/pciUtils.js +1 -1
  366. package/dist/chunks/popupUtils.js +1 -1
  367. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  368. package/dist/chunks/privilegeUtils.js +1 -1
  369. package/dist/chunks/publicNotificationStore.js +1 -1
  370. package/dist/chunks/queryUtils.js +1 -1
  371. package/dist/chunks/runtime.js +1 -1
  372. package/dist/chunks/solution-store.js +1 -1
  373. package/dist/chunks/templates.js +1 -1
  374. package/dist/chunks/useT9n.js +1 -1
  375. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  376. package/dist/components/basemap-gallery/customElement.js +1 -1
  377. package/dist/components/buffer-tools/customElement.js +1 -1
  378. package/dist/components/card-manager/customElement.js +1 -1
  379. package/dist/components/consent-manager/customElement.js +1 -1
  380. package/dist/components/create-feature/customElement.js +1 -1
  381. package/dist/components/create-related-feature/customElement.js +1 -1
  382. package/dist/components/crowdsource-manager/customElement.js +1 -1
  383. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  384. package/dist/components/deduct-calculator/customElement.js +1 -1
  385. package/dist/components/delete-button/customElement.js +1 -1
  386. package/dist/components/delete-dialog/customElement.js +1 -1
  387. package/dist/components/edit-card/customElement.js +1 -1
  388. package/dist/components/feature-details/customElement.js +1 -1
  389. package/dist/components/feature-list/customElement.js +1 -1
  390. package/dist/components/field-selection/customElement.js +1 -1
  391. package/dist/components/floor-filter/customElement.js +1 -1
  392. package/dist/components/info-card/customElement.js +1 -1
  393. package/dist/components/json-editor/customElement.js +1 -1
  394. package/dist/components/layer-list/customElement.js +1 -1
  395. package/dist/components/layer-table/customElement.js +1 -1
  396. package/dist/components/map-card/customElement.js +1 -1
  397. package/dist/components/map-draw-tools/customElement.js +1 -1
  398. package/dist/components/map-fullscreen/customElement.js +1 -1
  399. package/dist/components/map-layer-picker/customElement.js +1 -1
  400. package/dist/components/map-legend/customElement.js +1 -1
  401. package/dist/components/map-picker/customElement.js +1 -1
  402. package/dist/components/map-search/customElement.js +1 -1
  403. package/dist/components/map-select-tools/customElement.js +1 -1
  404. package/dist/components/map-tools/customElement.js +1 -1
  405. package/dist/components/pci-calculator/customElement.js +1 -1
  406. package/dist/components/pdf-download/customElement.js +1 -1
  407. package/dist/components/public-notification/customElement.js +1 -1
  408. package/dist/components/refine-selection/customElement.js +1 -1
  409. package/dist/components/selection-tool/customElement.js +1 -1
  410. package/dist/components/solution-article-card/customElement.js +1 -1
  411. package/dist/components/solution-configuration/customElement.js +1 -1
  412. package/dist/components/solution-configure-dialog/customElement.js +3 -3
  413. package/dist/components/solution-configure-titles/customElement.js +20 -21
  414. package/dist/components/solution-contents/customElement.js +1 -1
  415. package/dist/components/solution-delete-dialog/customElement.d.ts +4 -1
  416. package/dist/components/solution-delete-dialog/customElement.js +74 -54
  417. package/dist/components/solution-delete-dialog/index.d.ts +1 -1
  418. package/dist/components/solution-delete-dialog/index.js +1 -1
  419. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  420. package/dist/components/solution-deployed-card/customElement.js +1 -1
  421. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  422. package/dist/components/solution-details-card/customElement.js +1 -1
  423. package/dist/components/solution-details-panel/customElement.js +81 -85
  424. package/dist/components/solution-details-panel/index.d.ts +2 -3
  425. package/dist/components/solution-details-panel/index.js +2 -3
  426. package/dist/components/solution-item/customElement.js +1 -1
  427. package/dist/components/solution-item-accordion/customElement.js +1 -1
  428. package/dist/components/solution-item-details/customElement.js +1 -1
  429. package/dist/components/solution-item-diagram/customElement.js +1 -1
  430. package/dist/components/solution-item-icon/customElement.js +1 -1
  431. package/dist/components/solution-item-sharing/customElement.js +1 -1
  432. package/dist/components/solution-organization-variables/customElement.js +1 -1
  433. package/dist/components/solution-resource-item/customElement.js +1 -1
  434. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  435. package/dist/components/solution-social-share/customElement.js +1 -1
  436. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  437. package/dist/components/solution-template-data/customElement.js +1 -1
  438. package/dist/components/solution-variables/customElement.js +1 -1
  439. package/dist/components/solutions-all-panel/customElement.js +1 -1
  440. package/dist/components/solutions-all-shell/customElement.js +1 -1
  441. package/dist/components/solutions-article-panel/customElement.js +1 -1
  442. package/dist/components/solutions-articles/customElement.js +1 -1
  443. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  444. package/dist/components/solutions-deploy-app/customElement.js +11 -11
  445. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  446. package/dist/components/solutions-deployed-panel/customElement.js +2 -2
  447. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  448. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  449. package/dist/components/spatial-ref/customElement.js +1 -1
  450. package/dist/components/store-manager/customElement.js +1 -1
  451. package/dist/docs/api.json +2 -7
  452. package/dist/docs/docs.json +4 -4
  453. package/dist/docs/web-types.json +3 -3
  454. package/dist/index.js +1 -1
  455. package/dist/loader.js +1 -1
  456. package/dist/utils/cardsHelpers.d.ts +2 -2
  457. package/dist/utils/interfaces.d.ts +1 -1
  458. package/package.json +1 -1
  459. package/dist/cdn/226ZS2P7.js +0 -4
  460. package/dist/cdn/3M4FI2LB.js +0 -4
  461. package/dist/cdn/5446CL4L.js +0 -4
  462. package/dist/cdn/7BSFKM66.js +0 -18
  463. package/dist/cdn/GTKGZ2JB.js +0 -4
  464. package/dist/cdn/GTUQY7OD.js +0 -4
  465. package/dist/cdn/KK3ZC6N2.js +0 -18
  466. package/dist/cdn/N7LYP5EG.js +0 -18
  467. package/dist/cdn/S3F7AMLQ.js +0 -18
  468. package/dist/cdn/SB5HRNGU.js +0 -18
  469. package/dist/cdn/T6SHVITD.js +0 -4
  470. package/dist/cdn/VA3MGW4R.js +0 -4
  471. package/dist/cdn/X6F4EULM.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250908 */
4
- import{a as f}from"./2YWVGKM4.js";import{a as _}from"./FC3667Y6.js";import{a as S}from"./7HOBSAJT.js";import{B as D,C as I}from"./QWQQND4L.js";import{b as L}from"./2Q7C43LH.js";import"./HMMDD7CR.js";import"./QNDWNLA7.js";import{C as b,D as $,E as C,G as p,h as v,i as l,l as m,o as E}from"./FNN76R5R.js";import"./7YAHT6JK.js";var k="instant-apps-filter-list calcite-mode-light",O="instant-apps-filter-list calcite-mode-dark",x=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function w(h){return h.replaceAll("'","''")}function y(h,t=!1){if(h){let e=new Date(h),i=`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`;if(t){let s=`${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}`;return`${i} ${s}`}else return i}}function P(h){if(h!=null){h.value=["",""];let t=h.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let e of t)e.value=""}}var R=v`:host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:400}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height: 24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:65px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:400;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1: 12px}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1: 16px}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor: 2;--calcite-internal-animation-timing-slow: .6s }}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}`,u={filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description"},F=class extends C{constructor(){super(...arguments),this._messages=S({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=b(),this.panelEl=b(),this.isLayerExpUpdated=!1,this.baseClass=k,this.autoUpdateUrl=!1,this.closeBtn=!1,this.comboboxOverlayPositioning="absolute",this.openFilters=!1,this.extentSelector=!1,this.filterCount=0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.filterListReset=E(),this.filterUpdate=E()}static{this.properties={loading:16,filterLayerExpressions:16,baseClass:16,initDefExpressions:16,initMapImageExpressions:16,initPointCloudFilters:16,layerExpressions:0,autoUpdateUrl:5,closeBtn:5,closeBtnOnClick:0,comboboxOverlayPositioning:1,closeBtnText:1,openFilters:5,extentSelector:5,extentSelectorConfig:0,urlParams:0,filterCount:9,view:0,zoomBtn:5,resetBtn:5,resetFiltersOnDisconnect:5}}static{this.styles=R}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let t=structuredClone(this.filterLayerExpressions);return await Promise.resolve(t)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(t){return t==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(e=>{let i=t?.find(s=>s.id===e.id);i!=null&&(e.title=i.title,e.expressions?.forEach(s=>{let n=i.expressions?.find(a=>a.id===s.id);n!=null&&(s.name=n.name)}))}),await Promise.resolve(!0))}async updateInitDefExpressions(t){return this.initDefExpressions=t.initDefExpressions,this.initMapImageExpressions=t.initMapImageExpressions,this.initPointCloudFilters=t.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async load(){this.baseClass=_(this.el)==="dark"?O:k,await this.initializeModules(),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(t){t.has("view")&&this.handleWhenView(),t.has("layerExpressions")&&(this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}updated(){this.resetBtnEl.value!=null&&(this.resetBtnEl.value.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){super.disconnectedCallback(),this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[t,e]=await Promise.all([I(),D()]);this.geometryJsonUtils=e,this.intl=t}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:t}=this.filterLayerExpressions[0],e=t?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l`<calcite-block class=${p(u.operatorDesc)} .heading=${this._messages[e]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(t,e){let i=this.panelEl.value?.querySelector(`[id='${t.id}']`);i&&(P(i),t.active=!1,t.definitionExpression=void 0,t.range=void 0,this.generateOutput(e))}initInput(t,e){let{type:i,numDisplayOption:s,displayOption:n}=e;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(s==="drop-down"||n==="drop-down"))return this.renderCombobox(t,e);if(i==="number"||i==="range")return this.renderNumberSlider(t,e);if(i==="date")return this.renderDatePicker(t,e)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async t=>{await Promise.all((t.expressions||[]).map(async e=>await this.setInitExpression(t,e)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(t=>{t.expressions?.forEach(e=>{let{type:i,numDisplayOption:s,displayOption:n}=e,a="";i==="string"||i==="coded-value"||i==="date"&&(s==="drop-down"||n==="drop-down")||(i==="number"||i==="range")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),a?this.resetExpressionUI(a,e):this.resetCheckbox(e),e.active=!1})})}resetExpressionUI(t,e){let{id:i}=e;switch(t){case"combobox":{e.selectedFields=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&P(s);break}case"numberRange":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=e.min,s.maxValue=e.max);break}}}resetCheckbox(t){let{id:e}=t,i=this.panelEl.value?.querySelector(`[id='${e}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables.toArray()??[])?.forEach(t=>{if(!x.includes(t.type))return;let e=t;if(e.type==="point-cloud"){if(!this.initPointCloudFilters)return;e.filters=this.initPointCloudFilters[e.id]}else if(e.type==="map-image")e.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[e.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;e.definitionExpression=this.initDefExpressions[e.id]}})}async updateStringExpression(t,e){let i=this.findFilterLayer(t);return await this.getFeatureAttributes(i,e),this.handleDateField(i,e),e?.selectedFields?(e.definitionExpression=this.createDefinitionExpression(e),!0):!1}handleDateField(t,e){e.type==="date"&&t.fields.find(({name:i})=>i===e.field)?.type==="date-only"&&(e.dateOnly=!0)}createDefinitionExpression(t){if(!t.selectedFields?.length)return"";let e=t.selectedFields.map(i=>typeof i=="number"?i:`'${w(i)}'`);return`${t.field} IN (${e.join(",")})`}async updateNumberExpression(t,e){if(!e?.min&&e?.min!==0||!e?.max&&e?.max!==0){let i=this.findFilterLayer(t),{field:s}=e;if(s!=null)if(this.setExpressionFormat(i,e,s),e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down")await this.getFeatureAttributes(i,e);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(e.format?.places!=null?(e.min=this.roundMinNumberDown(n[`min${s}`],e.format.places),e.max=this.roundMaxNumberUp(n[`max${s}`],e.format.places)):(e.min=n[`min${s}`],e.max=n[`max${s}`]),e?.range&&Object.keys(e.range).length){let{min:a,max:r}=e.range;return e.definitionExpression=`${e.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(t,e){let{field:i,range:s}=e,n=this.findFilterLayer(t),a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(e.min=y(a[`min${i}`]),e.max=y(a[`max${i}`]),s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r=r?.replace("+"," "),o=o?.replace("+"," "),r||o){let c=o&&!r?"<":!o&&r?">":null;return c?e.definitionExpression=`${i} ${c} '${r??o}'`:e.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateCodedValueExpression(t,e,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(t);await this.getFeatureAttributes(s,e);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(e.codedValues=n,e.selectedFields?.length){let a=e.selectedFields.map(r=>typeof r=="number"?r:`'${w(r)}'`).join(",");return e.definitionExpression=`${e.field} IN (${a})`,!0}return!1}updateRangeExpression(t,e){if(!e?.domain||e?.domain?.type!=="range")return!1;let{field:i,range:s}=t;return t.min=e.domain.minValue,t.max=e.domain.maxValue,s&&Object.keys(s).length?(t.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(t,e){if(!this.isLayerSupported(t)){e.fields=[];return}let i=await this.getQueryLayer(t),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(t),a=await i.queryFeatureCount(),r=this.createQuery(i,e);await this.queryDistinctFeatures(i,r,e),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,e)}isLayerSupported(t){return t&&x.includes(t.type)}extractQueryCapabilities(t){return{maxRecordCount:t.capabilities?.query?.maxRecordCount??t.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:t.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(t,e){let i=t.createQuery();this.applyCacheHint(t,i);let s=e?.field;if(s){let n=this.getInitDefExprFromLayer(t);i.where=n||"1=1",i.outFields=[s],i.orderByFields=[`${s} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(t,e,i){if(!e.outFields)return;let s=await this.queryForFeatures(t,e,e.outFields[0]);s?.length&&(i.fields=[...new Set(s)],i.type==="string"?i.fields=i.fields.sort((n,a)=>n.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((n,a)=>n-a)))}getQueryCount(t,e){return e?t*5:t}shouldPaginate(t,e,i){let s=this.getQueryCount(t,i);return t!=null&&e>s}async handlePagination(t,e,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let d=e.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(t,d,e?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,g)=>d.localeCompare(g)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,g)=>d-g):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(t,e,i){return(await t.queryFeatures(e))?.features.filter(s=>s.attributes?.[i])?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(t,e){if(!t||!x.includes(t.type)||!e)return[];let i=this.createStatisticsQuery(t,e);return(await t.queryFeatures(i))?.features||[]}createStatisticsQuery(t,e){let i=t.createQuery();return i.where=this.getInitDefExprFromLayer(t)||"1=1",this.applyCacheHint(t,i),i.outStatistics=[{onStatisticField:e,outStatisticFieldName:`max${e}`,statisticType:"max"},{onStatisticField:e,outStatisticFieldName:`min${e}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(t,e){if(t&&e){let{constraints:i}=e,s={...i}.geometry;if(s){let n="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}async setInitExpression(t,e){if(!e.field||!e.type){await this.updateExpression(t,e,void 0);return}let i=this.findFilterLayer(t);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let s=i.fields?.find(({name:a})=>a===e.field),n=s?.domain?.type;e.type=n==="coded-value"||n==="range"?n:e.type,await this.updateExpression(t,e,s)}))}async updateExpression(t,e,i){await this.handleExpressionType(t,e,i)&&this.generateOutput(t)}async handleExpressionType(t,e,i){switch(e.type){case"string":return await this.updateStringExpression(t,e);case"number":return await this.updateNumberExpression(t,e);case"date":return await this.updateDateExpressionBasedOnDisplayOption(t,e);case"coded-value":return await this.updateCodedValueExpression(t,e,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(t,e,i);case"checkbox":case null:case void 0:return e.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(t,e){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):await this.updateDateExpression(t,e)}async updateRangeExpressionBasedOnDisplayOption(t,e,i){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):this.updateRangeExpression(e,i)}updateRangeExpressions(t,e,i,s){let n=this.getInitDefExprFromLayerExpression(e);(s||s===0)&&(i||i===0)&&(s===t?.min&&i===t?.max?(t.definitionExpression=void 0,t.active=!1):(t.definitionExpression=n?`(${n}) AND ${t?.field} BETWEEN ${s} AND ${i}`:`${t?.field} BETWEEN ${s} AND ${i}`,t.active=!0)),t.range={min:s,max:i}}handleCheckboxChange(t,e,i){let s=i.target;e.active=s.checked,this.generateOutput(t)}handleSliderChange(t,e,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(t,e,s,n),this.generateOutput(e)}handleComboSelect(t,e,i){let s=i.target.selectedItems,{field:n,type:a}=t;if(t.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${w(o)}'`);t.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):`${n} IN (${r.join(",")})`,t.active=!0}else t.definitionExpression=void 0,t.active=!1;this.generateOutput(e)}handleDatePickerRangeChange(t,e,i){let s=i.target,[n,a]=s.valueAsDate,r=n?y(Math.floor(n.getTime()),!0):void 0,o=a?y(Math.floor(a.getTime()),!0):void 0;(r||o)&&(t.definitionExpression=this.constructDefinitionExpression(t.field,r,o),t.range={min:r,max:o},t.active=!0,this.generateOutput(e))}constructDefinitionExpression(t,e,i){return e?i?`${t} BETWEEN '${e}' AND '${i}'`:`${t} > '${e}'`:`${t} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let e=t.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(e)}applyFilters(t){let e=0;return t.forEach(i=>{let s=this.filterLayerExpressions?.find(n=>n.id===i.layerId);s&&s.expressions?.forEach(n=>{n.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(n,i),e++)})}),e}activateExpression(t,e){t.active=!0,e.type==="range"?t.range=e.range:e.type==="select"&&(t.selectedFields=e.selectedFields)}createURLParamExpression(t,e){let{id:i,range:s,selectedFields:n,type:a}=e;return a==="string"||a==="coded-value"||e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down"?{type:"select",layerId:t.id,expressionId:i.toString(),selectedFields:n}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:t.id,expressionId:i.toString(),range:s}:{layerId:t.id,expressionId:i.toString()}}autoUpdateURLCheck(t){if(this.autoUpdateUrl){let e=t.toString()?`${window.location.pathname}?${t}`.trim():window.location.pathname;window.history.replaceState({},"",e)}}generateURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(window.location.search),e=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];this.filterCount=e.length,e.length>0?t.set("filter",e.join(";")):t.delete("filter"),this.autoUpdateURLCheck(t),this.urlParams=t}updateFilter(t,e,i){let{id:s}=t,n=this.view.map?.findLayerById(s)??this.view.map?.findTableById(s);if(n!=null)if(n.type==="point-cloud")this.updateFilterLayerPCLFilter(n,i);else if(n.type==="map-image"){let a=n.findSublayerById(t?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,e,t)}else this.updateFilterLayerDefExpression(n,e,t)}updateFilterLayerDefExpression(t,e,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(t),a=e?.length>0&&n!=null&&n!==""?`(${e.join(s)}) AND (${n})`:e.length>0?e.join(s):n;t.definitionExpression=a}updateFilterLayerPCLFilter(t,e){t.filters=e}async handleWhenView(){this.view!=null&&(await this.view.map.loadAll(),this.handleLayerExpressionsUpdate())}async handleLayerExpressionsUpdate(){this.updateInitExpressions(),this.handleURLParams(),this.initExpressions()}async handleZoomTo(t){let e=t?.sublayerId?`#zoom-to-${t.id}-${t.sublayerId}`:`#zoom-to-${t.id}`,i=this.panelEl.value?.querySelector(e),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(t),this.zoomToExtent){let n=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(n)}s(!1,!1)}async getZoomToExtent(t){let e=this.view.allLayerViews.find(({layer:s})=>s.id===t.id).layer,i=e.type==="map-image"?e.findSublayerById(t.sublayerId):e;if(i&&i.type!=="point-cloud"&&x.includes(i?.type)){let s=await this.getQueryLayer(i),n=s.createQuery();n.where=s.definitionExpression??"1=1";let a=await s.queryExtent(n);this.zoomToExtent={...a,type:s.geometryType}}}generateOutput(t){if(this.view==null)return;let e=[],i=[];if(t){for(let s of t.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&e.push(`(${a})`),n&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(t,e,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(t){return t.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(t,e,i){if(t==null)return;let s;if(!String(t).includes("e"))s=Math[i](t*Math.pow(10,e))/Math.pow(10,e);else{let[n,a]=String(t).split("e").map(o=>Number(o)),r=a+e;s=Math[i](+`${n}e${r}`)*Math.pow(10,-e)}return+s.toFixed(e)}roundMinNumberDown(t,e){return this.scientificRounding(t,e,"floor")}roundMaxNumberUp(t,e){return this.scientificRounding(t,e,"ceil")}roundNumber(t,e){return this.scientificRounding(t,e,"round")??t}setExpressionFormat(t,e,i){if(t?.popupTemplate!=null){let s=t?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(e.format=s.format)}}getInitDefExprFromLayer(t){return t.type==="sublayer"?this.initMapImageExpressions?.[t?.layer?.id??""]?.[t.id]??"":this.initDefExpressions?.[t.id]??""}getInitDefExprFromLayerExpression(t){return t?.sublayerId!=null?this.initMapImageExpressions?.[t.id]?.[t.sublayerId]??"":this.initDefExpressions?.[t.id]??""}findFilterLayer(t){let e=this.view.map?.allLayers.concat(this.view.map?.allTables.toArray()??[])?.find(({id:i})=>i===t.id);return e.type==="map-image"?e?.findSublayerById(t.sublayerId):e}createLabel(t,e){if(t.type==="coded-value")return t?.codedValues?.[e];if(t.type==="number"&&typeof e=="number"){let i=e;return t.format?.places!=null&&(i=this.roundNumber(e,t.format.places)),t.format?.digitSeparator?this.numberWithCommas(i):i}if(t.type==="date"&&!t.dateOnly){let i=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(e,i)}return e}buildDateExpression(t,e){if(t){let i=new Date(t),s=new Date(t),n=new Date(s.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`,c=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`;return`${e} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(t){let e=t.type==="sublayer"?await t.createFeatureLayer():t;if(!e)throw new Error("Failed to create feature layer");return e}applyCacheHint(t,e){t?.capabilities?.query?.supportsCacheHint&&(e.cacheHint=!0)}applyQueryGeometryFromExtentSelector(t){if(!this.extentSelector||!this.extentSelectorConfig)return;let e=this.getExtent(this.extentSelector,this.extentSelectorConfig);e&&(t.geometry=e,t.spatialRelationship="intersects")}updateInitExpressions(){if(this.view==null)return;let t=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},t.allLayers.concat(t.allTables.toArray()??[]).forEach(e=>{if(!x.includes(e.type))return;let i=e;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((s,n)=>(s[n.id]=n.definitionExpression??"",s),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}render(){let t=this.loading?this.renderLoading():this.initFilterConfig(),e=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${$(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${f("filter-container",l`<div class=${p(u.filterContainer)}>${t}${e}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(t){let{id:e}=t;return t.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?f(`${e}-${s}`,l`<div class=${p(u.filterItemContainer)}><div class=${p(u.filterItemTitle)}><p>${i.name}</p></div><div class=${p(u.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??m} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,t,i)}></calcite-checkbox></div></div>`):this.initInput(t,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(t=>this.renderFilterBlocks(t))}renderFilterBlocks(t){let e=this.renderFilter(t),{operator:i}=t,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(t);return f(t.id,l`<calcite-block .heading=${t.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${e}</calcite-block>`)}renderCombobox(t,e){return f("combo-select",l`<label class=${p(u.filterUIItemContainer)}><span>${e.name}</span><calcite-combobox id=${e.id.toString()??m} @calciteComboboxChange=${this.handleComboSelect.bind(this,e,t)} .label=${e.name} .placeholder=${e.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${e.fields?.map((i,s)=>this.renderComboboxItem(e,i,s))}</calcite-combobox></label>`)}renderComboboxItem(t,e,i){let s=this.createLabel(t,e),n=t?.selectedFields?.includes(e)??!1;return f(`${s}-${i}`,l`<calcite-combobox-item .value=${e} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(t,e){let i=e?.min,s=e?.max,n=e?.step?e.step:1,a=i!=null&&s!=null,r=e?.field??"",o=e?.range?.min!=null?e.range.min:i,c=e?.range?.max!=null?e.range.max:s,d=[o,c];return a?f(e?.id.toString(),l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.numberInputContainer)}><calcite-slider id=${e?.id.toString()??m} @calciteSliderChange=${this.handleSliderChange.bind(this,e,t)} .min=${i} .max=${s} .minValue=${i} .maxValue=${s} .minLabel=${this._messages.minSlider?.replace("{field}",r)} .maxLabel=${this._messages.maxSlider?.replace("{field}",r)} .step=${n} label-handles snap .value=${d} .groupSeparator=${e?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(t,e){let{min:i,max:s}=e,n=[e?.range?.min,e?.range?.max];return i!=null&&s!=null?l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.dateInputContainer)}><calcite-input-date-picker id=${e?.id.toString()??m} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,e,t)} .min=${i} .max=${s} overlay-positioning=fixed lang=${this.intl?.getLocale()??"en"??m} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,e,t)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??m} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let t=this.closeBtnText??this._messages.close,e=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(u.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${e} @click=${this.handleResetFilter} ${$(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${e} kind=brand @click=${this.closeBtnOnClick}>${t}</calcite-button>`:void 0}</div>`}renderZoomTo(t){let e=t?.sublayerId?`zoom-to-${t.id}-${t.sublayerId}`:`zoom-to-${t.id}`;return this.zoomBtn?l`<calcite-action id=${e??m} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??m} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,t)}></calcite-action>`:void 0}};L("instant-apps-filter-list",F);export{F as InstantAppsFilterList};
3
+ v1.1.0-next.20250908.2 */
4
+ import{a as f}from"./QSIEZ4SV.js";import{a as _}from"./Z7S4Q7L2.js";import{a as S}from"./XWHG6V44.js";import{B as D,C as I}from"./RPYOJCAT.js";import{b as L}from"./RIJY3CGU.js";import"./KGFVY55W.js";import"./TWQK2H5U.js";import{C as b,D as $,E as C,G as p,h as v,i as l,l as m,o as E}from"./V73HEDAJ.js";import"./KQVLKPIF.js";var k="instant-apps-filter-list calcite-mode-light",O="instant-apps-filter-list calcite-mode-dark",x=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function w(h){return h.replaceAll("'","''")}function y(h,t=!1){if(h){let e=new Date(h),i=`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`;if(t){let s=`${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}`;return`${i} ${s}`}else return i}}function P(h){if(h!=null){h.value=["",""];let t=h.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let e of t)e.value=""}}var R=v`:host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:400}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height: 24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:65px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:400;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1: 12px}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1: 16px}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor: 2;--calcite-internal-animation-timing-slow: .6s }}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}`,u={filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description"},F=class extends C{constructor(){super(...arguments),this._messages=S({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=b(),this.panelEl=b(),this.isLayerExpUpdated=!1,this.baseClass=k,this.autoUpdateUrl=!1,this.closeBtn=!1,this.comboboxOverlayPositioning="absolute",this.openFilters=!1,this.extentSelector=!1,this.filterCount=0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.filterListReset=E(),this.filterUpdate=E()}static{this.properties={loading:16,filterLayerExpressions:16,baseClass:16,initDefExpressions:16,initMapImageExpressions:16,initPointCloudFilters:16,layerExpressions:0,autoUpdateUrl:5,closeBtn:5,closeBtnOnClick:0,comboboxOverlayPositioning:1,closeBtnText:1,openFilters:5,extentSelector:5,extentSelectorConfig:0,urlParams:0,filterCount:9,view:0,zoomBtn:5,resetBtn:5,resetFiltersOnDisconnect:5}}static{this.styles=R}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let t=structuredClone(this.filterLayerExpressions);return await Promise.resolve(t)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(t){return t==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(e=>{let i=t?.find(s=>s.id===e.id);i!=null&&(e.title=i.title,e.expressions?.forEach(s=>{let n=i.expressions?.find(a=>a.id===s.id);n!=null&&(s.name=n.name)}))}),await Promise.resolve(!0))}async updateInitDefExpressions(t){return this.initDefExpressions=t.initDefExpressions,this.initMapImageExpressions=t.initMapImageExpressions,this.initPointCloudFilters=t.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async load(){this.baseClass=_(this.el)==="dark"?O:k,await this.initializeModules(),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(t){t.has("view")&&this.handleWhenView(),t.has("layerExpressions")&&(this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}updated(){this.resetBtnEl.value!=null&&(this.resetBtnEl.value.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){super.disconnectedCallback(),this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[t,e]=await Promise.all([I(),D()]);this.geometryJsonUtils=e,this.intl=t}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:t}=this.filterLayerExpressions[0],e=t?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l`<calcite-block class=${p(u.operatorDesc)} .heading=${this._messages[e]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(t,e){let i=this.panelEl.value?.querySelector(`[id='${t.id}']`);i&&(P(i),t.active=!1,t.definitionExpression=void 0,t.range=void 0,this.generateOutput(e))}initInput(t,e){let{type:i,numDisplayOption:s,displayOption:n}=e;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(s==="drop-down"||n==="drop-down"))return this.renderCombobox(t,e);if(i==="number"||i==="range")return this.renderNumberSlider(t,e);if(i==="date")return this.renderDatePicker(t,e)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async t=>{await Promise.all((t.expressions||[]).map(async e=>await this.setInitExpression(t,e)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(t=>{t.expressions?.forEach(e=>{let{type:i,numDisplayOption:s,displayOption:n}=e,a="";i==="string"||i==="coded-value"||i==="date"&&(s==="drop-down"||n==="drop-down")||(i==="number"||i==="range")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),a?this.resetExpressionUI(a,e):this.resetCheckbox(e),e.active=!1})})}resetExpressionUI(t,e){let{id:i}=e;switch(t){case"combobox":{e.selectedFields=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&P(s);break}case"numberRange":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=e.min,s.maxValue=e.max);break}}}resetCheckbox(t){let{id:e}=t,i=this.panelEl.value?.querySelector(`[id='${e}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables.toArray()??[])?.forEach(t=>{if(!x.includes(t.type))return;let e=t;if(e.type==="point-cloud"){if(!this.initPointCloudFilters)return;e.filters=this.initPointCloudFilters[e.id]}else if(e.type==="map-image")e.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[e.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;e.definitionExpression=this.initDefExpressions[e.id]}})}async updateStringExpression(t,e){let i=this.findFilterLayer(t);return await this.getFeatureAttributes(i,e),this.handleDateField(i,e),e?.selectedFields?(e.definitionExpression=this.createDefinitionExpression(e),!0):!1}handleDateField(t,e){e.type==="date"&&t.fields.find(({name:i})=>i===e.field)?.type==="date-only"&&(e.dateOnly=!0)}createDefinitionExpression(t){if(!t.selectedFields?.length)return"";let e=t.selectedFields.map(i=>typeof i=="number"?i:`'${w(i)}'`);return`${t.field} IN (${e.join(",")})`}async updateNumberExpression(t,e){if(!e?.min&&e?.min!==0||!e?.max&&e?.max!==0){let i=this.findFilterLayer(t),{field:s}=e;if(s!=null)if(this.setExpressionFormat(i,e,s),e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down")await this.getFeatureAttributes(i,e);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(e.format?.places!=null?(e.min=this.roundMinNumberDown(n[`min${s}`],e.format.places),e.max=this.roundMaxNumberUp(n[`max${s}`],e.format.places)):(e.min=n[`min${s}`],e.max=n[`max${s}`]),e?.range&&Object.keys(e.range).length){let{min:a,max:r}=e.range;return e.definitionExpression=`${e.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(t,e){let{field:i,range:s}=e,n=this.findFilterLayer(t),a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(e.min=y(a[`min${i}`]),e.max=y(a[`max${i}`]),s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r=r?.replace("+"," "),o=o?.replace("+"," "),r||o){let c=o&&!r?"<":!o&&r?">":null;return c?e.definitionExpression=`${i} ${c} '${r??o}'`:e.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateCodedValueExpression(t,e,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(t);await this.getFeatureAttributes(s,e);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(e.codedValues=n,e.selectedFields?.length){let a=e.selectedFields.map(r=>typeof r=="number"?r:`'${w(r)}'`).join(",");return e.definitionExpression=`${e.field} IN (${a})`,!0}return!1}updateRangeExpression(t,e){if(!e?.domain||e?.domain?.type!=="range")return!1;let{field:i,range:s}=t;return t.min=e.domain.minValue,t.max=e.domain.maxValue,s&&Object.keys(s).length?(t.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(t,e){if(!this.isLayerSupported(t)){e.fields=[];return}let i=await this.getQueryLayer(t),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(t),a=await i.queryFeatureCount(),r=this.createQuery(i,e);await this.queryDistinctFeatures(i,r,e),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,e)}isLayerSupported(t){return t&&x.includes(t.type)}extractQueryCapabilities(t){return{maxRecordCount:t.capabilities?.query?.maxRecordCount??t.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:t.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(t,e){let i=t.createQuery();this.applyCacheHint(t,i);let s=e?.field;if(s){let n=this.getInitDefExprFromLayer(t);i.where=n||"1=1",i.outFields=[s],i.orderByFields=[`${s} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(t,e,i){if(!e.outFields)return;let s=await this.queryForFeatures(t,e,e.outFields[0]);s?.length&&(i.fields=[...new Set(s)],i.type==="string"?i.fields=i.fields.sort((n,a)=>n.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((n,a)=>n-a)))}getQueryCount(t,e){return e?t*5:t}shouldPaginate(t,e,i){let s=this.getQueryCount(t,i);return t!=null&&e>s}async handlePagination(t,e,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let d=e.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(t,d,e?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,g)=>d.localeCompare(g)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,g)=>d-g):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(t,e,i){return(await t.queryFeatures(e))?.features.filter(s=>s.attributes?.[i])?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(t,e){if(!t||!x.includes(t.type)||!e)return[];let i=this.createStatisticsQuery(t,e);return(await t.queryFeatures(i))?.features||[]}createStatisticsQuery(t,e){let i=t.createQuery();return i.where=this.getInitDefExprFromLayer(t)||"1=1",this.applyCacheHint(t,i),i.outStatistics=[{onStatisticField:e,outStatisticFieldName:`max${e}`,statisticType:"max"},{onStatisticField:e,outStatisticFieldName:`min${e}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(t,e){if(t&&e){let{constraints:i}=e,s={...i}.geometry;if(s){let n="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}async setInitExpression(t,e){if(!e.field||!e.type){await this.updateExpression(t,e,void 0);return}let i=this.findFilterLayer(t);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let s=i.fields?.find(({name:a})=>a===e.field),n=s?.domain?.type;e.type=n==="coded-value"||n==="range"?n:e.type,await this.updateExpression(t,e,s)}))}async updateExpression(t,e,i){await this.handleExpressionType(t,e,i)&&this.generateOutput(t)}async handleExpressionType(t,e,i){switch(e.type){case"string":return await this.updateStringExpression(t,e);case"number":return await this.updateNumberExpression(t,e);case"date":return await this.updateDateExpressionBasedOnDisplayOption(t,e);case"coded-value":return await this.updateCodedValueExpression(t,e,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(t,e,i);case"checkbox":case null:case void 0:return e.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(t,e){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):await this.updateDateExpression(t,e)}async updateRangeExpressionBasedOnDisplayOption(t,e,i){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):this.updateRangeExpression(e,i)}updateRangeExpressions(t,e,i,s){let n=this.getInitDefExprFromLayerExpression(e);(s||s===0)&&(i||i===0)&&(s===t?.min&&i===t?.max?(t.definitionExpression=void 0,t.active=!1):(t.definitionExpression=n?`(${n}) AND ${t?.field} BETWEEN ${s} AND ${i}`:`${t?.field} BETWEEN ${s} AND ${i}`,t.active=!0)),t.range={min:s,max:i}}handleCheckboxChange(t,e,i){let s=i.target;e.active=s.checked,this.generateOutput(t)}handleSliderChange(t,e,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(t,e,s,n),this.generateOutput(e)}handleComboSelect(t,e,i){let s=i.target.selectedItems,{field:n,type:a}=t;if(t.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${w(o)}'`);t.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):`${n} IN (${r.join(",")})`,t.active=!0}else t.definitionExpression=void 0,t.active=!1;this.generateOutput(e)}handleDatePickerRangeChange(t,e,i){let s=i.target,[n,a]=s.valueAsDate,r=n?y(Math.floor(n.getTime()),!0):void 0,o=a?y(Math.floor(a.getTime()),!0):void 0;(r||o)&&(t.definitionExpression=this.constructDefinitionExpression(t.field,r,o),t.range={min:r,max:o},t.active=!0,this.generateOutput(e))}constructDefinitionExpression(t,e,i){return e?i?`${t} BETWEEN '${e}' AND '${i}'`:`${t} > '${e}'`:`${t} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let e=t.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(e)}applyFilters(t){let e=0;return t.forEach(i=>{let s=this.filterLayerExpressions?.find(n=>n.id===i.layerId);s&&s.expressions?.forEach(n=>{n.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(n,i),e++)})}),e}activateExpression(t,e){t.active=!0,e.type==="range"?t.range=e.range:e.type==="select"&&(t.selectedFields=e.selectedFields)}createURLParamExpression(t,e){let{id:i,range:s,selectedFields:n,type:a}=e;return a==="string"||a==="coded-value"||e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down"?{type:"select",layerId:t.id,expressionId:i.toString(),selectedFields:n}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:t.id,expressionId:i.toString(),range:s}:{layerId:t.id,expressionId:i.toString()}}autoUpdateURLCheck(t){if(this.autoUpdateUrl){let e=t.toString()?`${window.location.pathname}?${t}`.trim():window.location.pathname;window.history.replaceState({},"",e)}}generateURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(window.location.search),e=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];this.filterCount=e.length,e.length>0?t.set("filter",e.join(";")):t.delete("filter"),this.autoUpdateURLCheck(t),this.urlParams=t}updateFilter(t,e,i){let{id:s}=t,n=this.view.map?.findLayerById(s)??this.view.map?.findTableById(s);if(n!=null)if(n.type==="point-cloud")this.updateFilterLayerPCLFilter(n,i);else if(n.type==="map-image"){let a=n.findSublayerById(t?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,e,t)}else this.updateFilterLayerDefExpression(n,e,t)}updateFilterLayerDefExpression(t,e,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(t),a=e?.length>0&&n!=null&&n!==""?`(${e.join(s)}) AND (${n})`:e.length>0?e.join(s):n;t.definitionExpression=a}updateFilterLayerPCLFilter(t,e){t.filters=e}async handleWhenView(){this.view!=null&&(await this.view.map.loadAll(),this.handleLayerExpressionsUpdate())}async handleLayerExpressionsUpdate(){this.updateInitExpressions(),this.handleURLParams(),this.initExpressions()}async handleZoomTo(t){let e=t?.sublayerId?`#zoom-to-${t.id}-${t.sublayerId}`:`#zoom-to-${t.id}`,i=this.panelEl.value?.querySelector(e),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(t),this.zoomToExtent){let n=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(n)}s(!1,!1)}async getZoomToExtent(t){let e=this.view.allLayerViews.find(({layer:s})=>s.id===t.id).layer,i=e.type==="map-image"?e.findSublayerById(t.sublayerId):e;if(i&&i.type!=="point-cloud"&&x.includes(i?.type)){let s=await this.getQueryLayer(i),n=s.createQuery();n.where=s.definitionExpression??"1=1";let a=await s.queryExtent(n);this.zoomToExtent={...a,type:s.geometryType}}}generateOutput(t){if(this.view==null)return;let e=[],i=[];if(t){for(let s of t.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&e.push(`(${a})`),n&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(t,e,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(t){return t.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(t,e,i){if(t==null)return;let s;if(!String(t).includes("e"))s=Math[i](t*Math.pow(10,e))/Math.pow(10,e);else{let[n,a]=String(t).split("e").map(o=>Number(o)),r=a+e;s=Math[i](+`${n}e${r}`)*Math.pow(10,-e)}return+s.toFixed(e)}roundMinNumberDown(t,e){return this.scientificRounding(t,e,"floor")}roundMaxNumberUp(t,e){return this.scientificRounding(t,e,"ceil")}roundNumber(t,e){return this.scientificRounding(t,e,"round")??t}setExpressionFormat(t,e,i){if(t?.popupTemplate!=null){let s=t?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(e.format=s.format)}}getInitDefExprFromLayer(t){return t.type==="sublayer"?this.initMapImageExpressions?.[t?.layer?.id??""]?.[t.id]??"":this.initDefExpressions?.[t.id]??""}getInitDefExprFromLayerExpression(t){return t?.sublayerId!=null?this.initMapImageExpressions?.[t.id]?.[t.sublayerId]??"":this.initDefExpressions?.[t.id]??""}findFilterLayer(t){let e=this.view.map?.allLayers.concat(this.view.map?.allTables.toArray()??[])?.find(({id:i})=>i===t.id);return e.type==="map-image"?e?.findSublayerById(t.sublayerId):e}createLabel(t,e){if(t.type==="coded-value")return t?.codedValues?.[e];if(t.type==="number"&&typeof e=="number"){let i=e;return t.format?.places!=null&&(i=this.roundNumber(e,t.format.places)),t.format?.digitSeparator?this.numberWithCommas(i):i}if(t.type==="date"&&!t.dateOnly){let i=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(e,i)}return e}buildDateExpression(t,e){if(t){let i=new Date(t),s=new Date(t),n=new Date(s.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`,c=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`;return`${e} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(t){let e=t.type==="sublayer"?await t.createFeatureLayer():t;if(!e)throw new Error("Failed to create feature layer");return e}applyCacheHint(t,e){t?.capabilities?.query?.supportsCacheHint&&(e.cacheHint=!0)}applyQueryGeometryFromExtentSelector(t){if(!this.extentSelector||!this.extentSelectorConfig)return;let e=this.getExtent(this.extentSelector,this.extentSelectorConfig);e&&(t.geometry=e,t.spatialRelationship="intersects")}updateInitExpressions(){if(this.view==null)return;let t=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},t.allLayers.concat(t.allTables.toArray()??[]).forEach(e=>{if(!x.includes(e.type))return;let i=e;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((s,n)=>(s[n.id]=n.definitionExpression??"",s),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}render(){let t=this.loading?this.renderLoading():this.initFilterConfig(),e=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${$(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${f("filter-container",l`<div class=${p(u.filterContainer)}>${t}${e}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(t){let{id:e}=t;return t.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?f(`${e}-${s}`,l`<div class=${p(u.filterItemContainer)}><div class=${p(u.filterItemTitle)}><p>${i.name}</p></div><div class=${p(u.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??m} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,t,i)}></calcite-checkbox></div></div>`):this.initInput(t,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(t=>this.renderFilterBlocks(t))}renderFilterBlocks(t){let e=this.renderFilter(t),{operator:i}=t,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(t);return f(t.id,l`<calcite-block .heading=${t.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${e}</calcite-block>`)}renderCombobox(t,e){return f("combo-select",l`<label class=${p(u.filterUIItemContainer)}><span>${e.name}</span><calcite-combobox id=${e.id.toString()??m} @calciteComboboxChange=${this.handleComboSelect.bind(this,e,t)} .label=${e.name} .placeholder=${e.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${e.fields?.map((i,s)=>this.renderComboboxItem(e,i,s))}</calcite-combobox></label>`)}renderComboboxItem(t,e,i){let s=this.createLabel(t,e),n=t?.selectedFields?.includes(e)??!1;return f(`${s}-${i}`,l`<calcite-combobox-item .value=${e} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(t,e){let i=e?.min,s=e?.max,n=e?.step?e.step:1,a=i!=null&&s!=null,r=e?.field??"",o=e?.range?.min!=null?e.range.min:i,c=e?.range?.max!=null?e.range.max:s,d=[o,c];return a?f(e?.id.toString(),l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.numberInputContainer)}><calcite-slider id=${e?.id.toString()??m} @calciteSliderChange=${this.handleSliderChange.bind(this,e,t)} .min=${i} .max=${s} .minValue=${i} .maxValue=${s} .minLabel=${this._messages.minSlider?.replace("{field}",r)} .maxLabel=${this._messages.maxSlider?.replace("{field}",r)} .step=${n} label-handles snap .value=${d} .groupSeparator=${e?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(t,e){let{min:i,max:s}=e,n=[e?.range?.min,e?.range?.max];return i!=null&&s!=null?l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.dateInputContainer)}><calcite-input-date-picker id=${e?.id.toString()??m} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,e,t)} .min=${i} .max=${s} overlay-positioning=fixed lang=${this.intl?.getLocale()??"en"??m} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,e,t)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??m} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let t=this.closeBtnText??this._messages.close,e=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(u.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${e} @click=${this.handleResetFilter} ${$(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${e} kind=brand @click=${this.closeBtnOnClick}>${t}</calcite-button>`:void 0}</div>`}renderZoomTo(t){let e=t?.sublayerId?`zoom-to-${t.id}-${t.sublayerId}`:`zoom-to-${t.id}`;return this.zoomBtn?l`<calcite-action id=${e??m} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??m} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,t)}></calcite-action>`:void 0}};L("instant-apps-filter-list",F);export{F as InstantAppsFilterList};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250908 */
4
- import c from"./APHMYZG6.js";import b from"./Y6DHGJ6U.js";import"./6P7UK63U.js";import a from"./6OWSRH66.js";import{a as K}from"./2YWVGKM4.js";import{C as Pe,E as Te,c as ze,z as Ie}from"./QWQQND4L.js";import{b as Se}from"./2Q7C43LH.js";import"./QNDWNLA7.js";import{D as Re,E as Ee,G as w,H as E,h as ke,i as L,j as ge,l as oe}from"./FNN76R5R.js";import{b as st,d as lt}from"./7YAHT6JK.js";export default $arcgis.t(([,{a:B,b:W},{a:Fe,b:ce,d:Me,e:Ue,f:ue,g:He,i:Be,o:de,s:De,t:Y,u:me,v:qe,w:We}])=>{var Je=st((fe,Ge)=>{(function(b,t){typeof fe=="object"&&typeof Ge<"u"?t(fe):typeof define=="function"&&define.amd?define(["exports"],t):(b=typeof globalThis<"u"?globalThis:b||self,t(b.maquette={}))})(fe,(function(b){"use strict";var t="http://www.w3.org/",s="".concat(t,"2000/svg"),o="".concat(t,"1999/xlink"),a=[],r=function(e,i){var n={};return Object.keys(e).forEach(function(l){n[l]=e[l]}),i&&Object.keys(i).forEach(function(l){n[l]=i[l]}),n},g=function(e,i){return e.vnodeSelector!==i.vnodeSelector?!1:e.properties&&i.properties?e.properties.key!==i.properties.key?!1:e.properties.bind===i.properties.bind:!e.properties&&!i.properties},u=function(e){if(typeof e!="string")throw new Error("Style values must be strings")},_=function(e,i,n){if(i.vnodeSelector!==""){for(var l=n;l<e.length;l++)if(g(e[l],i))return l}return-1},$=function(e,i,n,l){var h=e[i];if(h.vnodeSelector!==""){var c=h.properties,A=c?c.key===void 0?c.bind:c.key:void 0;if(!A){for(var f=0;f<e.length;f++)if(f!==i){var d=e[f];if(g(d,h))throw{error:new Error("".concat(n.vnodeSelector," had a ").concat(h.vnodeSelector," child ").concat(l==="added"?l:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:n,childNode:h}}}}},P=function(e){if(e.properties){var i=e.properties.enterAnimation;i&&i(e.domNode,e.properties)}},x=[],C=!1,S=function(e){(e.children||[]).forEach(S),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},z=function(){C=!1,x.forEach(S),x.length=0},I=function(e){x.push(e),C||(C=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(z,{timeout:16}):setTimeout(z,16))},R=function(e){var i=e.domNode;if(e.properties){var n=e.properties.exitAnimation;if(n){i.style.pointerEvents="none";var l=function(){i.parentNode&&(i.parentNode.removeChild(i),I(e))};n(i,l,e.properties);return}}i.parentNode&&(i.parentNode.removeChild(i),I(e))},M=["afterCreate","afterUpdate","afterRemoved","enterAnimation","exitAnimation","updateAnimation"];function D(e){return!M.includes(e)}var ee=function(e,i,n){if(i)for(var l=n.eventHandlerInterceptor,h=Object.keys(i).filter(D),c=h.length,A=0;A<c;A++){var f=h[A],d=i[f];if(f==="className")throw new Error('Property "className" is not supported, use "class".');if(f==="class")te(e,d,!0);else if(f==="classes")for(var v=Object.keys(d),k=v.length,y=0;y<k;y++){var m=v[y];d[m]&&e.classList.add(m)}else if(f==="styles")for(var U=Object.keys(d),T=U.length,y=0;y<T;y++){var J=U[y],O=d[J];O&&(u(O),n.styleApplyer(e,J,O))}else if(f==="on"&&d)for(var ae=0,re=Object.entries(i.on);ae<re.length;ae++){var se=re[ae],X=se[0],q=se[1],N=typeof q=="function"?q:q.listener;l&&(N=l(X,N,e,i)),N&&e.addEventListener(X,N,typeof q=="function"?void 0:q.options)}else if(f!=="key"&&d!==null&&d!==void 0){var le=typeof d;le==="function"?(f.lastIndexOf("on",0)===0&&l&&(d=l(f,d,e,i)),e[f]=d):n.namespace===s?f==="href"?e.setAttributeNS(o,f,d):e.setAttribute(f,d):le==="string"&&f!=="value"&&f!=="innerHTML"?e.setAttribute(f,d):e[f]=d}}},Q=function(e,i,n){if(i)for(var l=0,h=i;l<h.length;l++){var c=h[l];F(c,e,void 0,n)}},H=function(e,i,n){Q(e,i.children,n),i.text&&(e.textContent=i.text),ee(e,i.properties,n),i.properties&&i.properties.afterCreate&&i.properties.afterCreate.apply(i.properties.bind||i.properties,[e,n,i.vnodeSelector,i.properties,i.children])},F=function(e,i,n,l){var h,c,A=0,f=e.vnodeSelector,d=i.ownerDocument;if(f==="")e.domNode?e.domNode.nodeValue=e.text:(c=e.domNode=d.createTextNode(e.text),n!==void 0?i.insertBefore(c,n):i.appendChild(c));else{for(var v=0;v<=f.length;++v){var k=f.charAt(v);if(v===f.length||k==="."||k==="#"){var y=f.charAt(A-1),m=f.slice(A,v);y==="."?c.classList.add(m):y==="#"?c.id=m:(m==="svg"&&(l=r(l,{namespace:s})),l.namespace!==void 0?c=e.domNode=d.createElementNS(l.namespace,m):(c=e.domNode=e.domNode||(!((h=e.properties)===null||h===void 0)&&h.is?d.createElement(m,{is:e.properties.is}):d.createElement(m)),m==="input"&&e.properties&&e.properties.type!==void 0&&c.setAttribute("type",e.properties.type)),n!==void 0?i.insertBefore(c,n):c.parentNode!==i&&i.appendChild(c)),A=v+1}}H(c,e,l)}},G,te=function(e,i,n){i&&i.split(" ").forEach(function(l){l&&e.classList.toggle(l,n)})},he=function(e,i,n,l){if(n){for(var h=!1,c=Object.keys(n).filter(D),A=c.length,f=0;f<A;f++){var d=c[f],v=n[d],k=i[d];if(d==="class")k!==v&&(te(e,k,!1),te(e,v,!0));else if(d==="classes")for(var y=e.classList,m=Object.keys(v),U=m.length,T=0;T<U;T++){var J=m[T],O=!!v[J],ae=!!k[J];O!==ae&&(h=!0,O?y.add(J):y.remove(J))}else if(d==="styles")for(var re=Object.keys(v),se=re.length,T=0;T<se;T++){var X=re[T],q=v[X],N=k[X];q!==N&&(h=!0,q?(u(q),l.styleApplyer(e,X,q)):l.styleApplyer(e,X,""))}else if(!v&&typeof k=="string"&&(v=""),d==="value"){var le=e[d];le!==v&&v!==k&&(e[d]=v),v!==k&&(h=!0)}else if(v!==k){var Ce=typeof v;(Ce!=="function"||!l.eventHandlerInterceptor)&&(l.namespace===s?d==="href"?e.setAttributeNS(o,d,v):e.setAttribute(d,v):Ce==="string"&&d!=="innerHTML"?d==="role"&&v===""?e.removeAttribute(d):e.setAttribute(d,v):e[d]!==v&&(e[d]=v),h=!0)}}return h}},Oe=function(e,i,n,l,h){if(n===l)return!1;n=n||a,l=l||a;for(var c=n.length,A=l.length,f=0,d=0,v,k=!1;d<A;){var y=f<c?n[f]:void 0,m=l[d];if(y!==void 0&&g(y,m))k=G(y,m,h,i,n)||k,f++;else{var U=_(n,m,f+1);if(U>=0){for(v=f;v<U;v++)R(n[v]),$(n,v,e,"removed");k=G(n[U],m,h,i,n)||k,f=U+1}else F(m,i,f<c?n[f].domNode:void 0,h),P(m),$(l,d,e,"added")}d++}if(c>f)for(v=f;v<c;v++)R(n[v]),$(n,v,e,"removed");return k};G=function(e,i,n,l,h){var c=e.domNode,A=!1;if(e===i)return!1;var f=!1;if(i.vnodeSelector===""){if(i.text!==e.text){var d=c.ownerDocument.createTextNode(i.text);try{l.replaceChild(d,c)}catch{l.replaceChild(d,l.childNodes[h.indexOf(e)])}return i.domNode=d,A=!0,A}i.domNode=c}else i.vnodeSelector.lastIndexOf("svg",0)===0&&(n=r(n,{namespace:s})),e.text!==i.text&&(f=!0,i.text===void 0?c.removeChild(c.firstChild):c.textContent=i.text),i.domNode=c,f=Oe(i,c,e.children,i.children,n)||f,f=he(c,e.properties,i.properties,n)||f,i.properties&&i.properties.afterUpdate&&i.properties.afterUpdate.apply(i.properties.bind||i.properties,[c,n,i.vnodeSelector,i.properties,i.children]);return f&&i.properties&&i.properties.updateAnimation&&i.properties.updateAnimation(c,i.properties,e.properties),A};var ie=function(e,i){return{getLastRender:function(){return e},update:function(n){if(e.vnodeSelector!==n.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var l=e;e=n,G(l,n,i,l.domNode.parentNode,[l])},domNode:e.domNode}},Ne={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,i,n){i.charAt(0)==="-"?e.style.setProperty(i,n):e.style[i]=n}},Z=function(e){return r(Ne,e)},ne={create:function(e,i){return i=Z(i),F(e,document.createElement("div"),void 0,i),ie(e,i)},append:function(e,i,n){return n=Z(n),F(i,e,void 0,n),ie(i,n)},insertBefore:function(e,i,n){return n=Z(n),F(i,e.parentNode,e,n),ie(i,n)},merge:function(e,i,n){return n=Z(n),i.domNode=e,H(e,i,n),ie(i,n)},replace:function(e,i,n){return n=Z(n),F(i,e.parentNode,e,n),e.parentNode.removeChild(e),ie(i,n)}},je=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},xe=function(e,i,n){for(var l=0,h=i.length;l<h;l++){var c=i[l];Array.isArray(c)?xe(e,c,n):c!=null&&c!==!1&&(typeof c=="string"&&(c=je(c)),n.push(c))}};function Ve(e,i,n){if(Array.isArray(i))n=i,i=void 0;else if(i&&(typeof i=="string"||i.vnodeSelector)||n&&(typeof n=="string"||n.vnodeSelector))throw new Error("h called with invalid arguments");var l,h;return n&&n.length===1&&typeof n[0]=="string"?l=n[0]:n&&(h=[],xe(e,n,h),h.length===0&&(h=void 0)),{vnodeSelector:e,properties:i,children:h,text:l===""?void 0:l,domNode:null}}var et=function(e,i){for(var n=[];e&&e!==i;)n.push(e),e=e.parentNode;return n},pe;Array.prototype.find?pe=function(e,i){return e.find(i)}:pe=function(e,i){return e.filter(i)[0]};var tt=function(e,i){var n=e;return i.forEach(function(l){n=n&&n.children?pe(n.children,function(h){return h.domNode===l}):void 0}),n},it=function(e,i,n){return function(h,c,A,f){return l};function l(h){var c,A;n("domEvent",h);var f=i(),d=et(h.currentTarget,f.domNode);d.reverse();var v=tt(f.getLastRender(),d);e.scheduleRender();var k;if(v){var y=(A=(c=v.properties["on".concat(h.type)])!==null&&c!==void 0?c:v.properties.on[h.type].listener)!==null&&A!==void 0?A:v.properties.on[h.type];k=y.apply(v.properties.bind||this,arguments)}return n("domEventProcessed",h),k}},nt=function(e){var i,n=Z(e),l=n.performanceLogger,h=!0,c,A=!1,f=[],d=[],v=function(y,m,U){var T,J=function(){return T};n.eventHandlerInterceptor=it(i,J,l),T=y(m,U(),n),f.push(T),d.push(U)},k=function(){if(c=void 0,!!h){h=!1,l("renderStart",void 0);for(var y=0;y<f.length;y++){var m=d[y]();l("rendered",void 0),f[y].update(m),l("patched",void 0)}l("renderDone",void 0),h=!0}};return i={renderNow:k,scheduleRender:function(){!c&&!A&&(c=requestAnimationFrame(k))},stop:function(){c&&(cancelAnimationFrame(c),c=void 0),A=!0},resume:function(){A=!1,h=!0,i.scheduleRender()},append:function(y,m){v(ne.append,y,m)},insertBefore:function(y,m){v(ne.insertBefore,y,m)},merge:function(y,m){v(ne.merge,y,m)},replace:function(y,m){v(ne.replace,y,m)},detach:function(y){for(var m=0;m<d.length;m++)if(d[m]===y)return d.splice(m,1),f.splice(m,1)[0];throw new Error("renderFunction was not found")}},i},at=function(){var e,i;return{invalidate:function(){i=void 0,e=void 0},result:function(n,l){if(e)for(var h=0;h<n.length;h++)e[h]!==n[h]&&(i=void 0);return i||(i=l(),e=n),i}}},rt=function(e,i,n){var l=[],h=[];return{results:h,map:function(c){for(var A=c.map(e),f=h.slice(),d=0,v=0;v<c.length;v++){var k=c[v],y=A[v];if(y===l[d])h[v]=f[d],n(k,f[d],v),d++;else{for(var m=!1,U=1;U<l.length+1;U++){var T=(d+U)%l.length;if(l[T]===y){h[v]=f[T],n(c[v],f[T],v),d=T+1,m=!0;break}}m||(h[v]=i(k,v))}}h.length=c.length,l=A}}};b.createCache=at,b.createMapping=rt,b.createProjector=nt,b.dom=ne,b.h=Ve}))});var Ye=lt(Je(),1);var ot=96;function V(b){return b?b/72*ot:0}var ct=(0,Ye.createProjector)(),Qe=10,_e=20,ve=10,Le=20,Ae={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function dt(b="vertical"){let t={stroke:"rgb(200, 200, 200)",strokeWidth:"1"};return b==="vertical"?L`<svg height=4 width=10>${ge`<line x1=0 y1=2 x2=10 y2=2 style=${E(t)} />`}</svg>`:L`<svg height=10 width=10>${ge`<line x1=5 y1=0 x2=5 y2=10 style=${E(t)} />`}</svg>`}function ft(b,t="vertical"){let s=document.createElement("div");return s.style.height=`${_e}px`,s.className=Ae.univariateAboveAndBelowSymbol,b!=null&&(s.style.opacity=b.toString()),ct.append(s,dt.bind(null,t)),s}function Ze(b,t,s="vertical",o){b.infos.forEach((a,r)=>{if(o&&r===2)a.preview=ft(t,s);else{let{size:g}=a,u=V(g)+(s==="horizontal"?Le:ve),_=a.preview.tagName.toLowerCase()==="div",$=_?a.preview:document.createElement("div");$&&($.className=Ae.univariateAboveAndBelowSymbol),s==="horizontal"?$&&($.style.width=`${u}px`):$&&($.style.height=`${u}px`),_||$&&$.appendChild(a.preview),a.preview=$}})}function Ke(b,t="classic"){let s=b.infos,o=s[0].size,a=s[s.length-1].size;return t==="classic"?(V(o)+ve)/2:(V(o)-V(a))/2}function ye(b,t,s){if(!b)return null;let o=b.infos.map(r=>r.color),a=t.renderColorRampPreviewHTML(s.type==="full"?o:s.type==="above"?o.slice(0,3):o.slice(2,5),{width:s.width,height:s.height,align:s.rampAlignment,effectList:s.effectList});return a.className=Ae.colorRamp,s.opacity!=null&&(a.style.opacity=s.opacity.toString()),a}function vt(b,t,s,o="vertical"){let a=0,r=b.infos,g=Math.floor(r.length/2),u=t==="full"||t==="above"?0:g,_=t==="full"||t==="below"?r.length-1:g;for(let $=u;$<=_;$++)if(s&&$===g)a+=o==="horizontal"?Qe:_e;else{let P=r[$].size,x=V(P)+(o==="horizontal"?Le:ve);a+=x}return Math.round(a)}function $e(b,t,s,o="vertical"){let a=vt(b,t,s,o),r=b.infos,g=Math.floor(r.length/2),u=t==="full"||t==="above"?0:g,_=t==="full"||t==="below"?r.length-1:g,$=t==="full"?r[u].size+r[_].size:t==="above"?r[u].size:r[_].size,P=s?o==="vertical"?_e:Qe:0,x=o==="vertical"?ve*(t==="full"?2:1):Le*(t==="full"?2:1);return Math.round(a-(V($)/2+P/2+x/2))}function ht(b,t,s="vertical"){let o=b.infos,a=o.find(({type:g})=>g==="size-ramp"),r=o.find(({type:g})=>g==="color-ramp");return a&&(a={...a},a.infos=[...a.infos],Ze(a,t,s,!0)),r&&(r={...r},r.infos=[...r.infos]),s==="horizontal"&&(a?.infos.reverse(),r?.infos.reverse()),{sizeRampElement:a,colorRampElement:r}}function pt(b,t="vertical"){let s=b.infos,o=s.find(({type:r})=>r==="size-ramp"),a=s.find(({type:r})=>r==="color-ramp");return o&&(o={...o},o.infos=[...o.infos],Ze(o,null,t,!1)),a&&(a={...a},a.infos=[...a.infos]),t==="horizontal"&&(o?.infos.reverse(),a?.infos.reverse()),{sizeRampElement:o,colorRampElement:a}}function gt(b,t){return!0}var ut=ke`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: normal;--instant-apps-interactive-legend-caption-font-weight: normal;--instant-apps-interactive-legend-secondary-color: var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size: 1rem;--instant-apps-interactive-legend-total-feature-count-font-size: .875rem;--instant-apps-interactive-legend-info-font-size: .875rem;--instant-apps-interactive-legend-info-item-background--selected: #c7ebff;--instant-apps-interactive-legend-info-item-background--selected--dark: #009af2;--instant-apps-interactive-legend-info-item-background--hover: #e9e9e9;--instant-apps-interactive-legend-info-item-background--hover--dark: #4a4a4a;--instant-apps-interactive-legend-info-item-color--selected: var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color: var(--calcite-color-background);--instant-apps-interactive-legend-ui-margin: 20px 15px;--instant-apps-interactive-legend-ui-padding: 20px 15px}:host .esri-legend__service{padding:0}:host .esri-legend__layer-body,:host .esri-legend__layer,:host .esri-legend__layer-table,:host .esri-legend__group-layer-child,:host .esri-legend__layer-child-table{margin:0;overflow:hidden}:host .esri-legend__layer-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host .esri-legend__layer-caption calcite-action{margin-right:5px}:host .instant-apps-interactive-legend__layer-caption-btn-container{white-space:nowrap}:host .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}:host .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}:host .esri-legend__layer-cell.esri-legend__layer-cell--info{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}:host .esri-legend__layer-cell,:host .esri-legend__layer-row{display:flex;align-items:center}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-body{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}:host .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol>.esri-legend__layer-body{margin:0}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-row{display:table-row}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-cell{display:table-cell}:host .esri-legend__layer-cell--symbols{justify-content:center;width:20%}:host .esri-legend__layer-cell--info{width:65%}:host .instant-apps-interactive-legend__layer-row--interactive{margin:1px;background:transparent;border:none;width:100%}:host .esri-legend__layer-cell--info{color:var(--instant-apps-interactive-legend-secondary-color)}:host .esri-legend__layer-row,:host .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}:host .instant-apps-interactive-legend__layer-row--interactive{position:relative}:host .instant-apps-interactive-legend-element-info--selected{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}:host .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}:host .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected .esri-legend__layer-cell--info{color:var(--calcite-color-text-inverse)}:host .hide{display:none}.instant-apps-interactive-legend__compact .esri-legend__layer-row{--instant-apps-interactive-legend-ui-padding: 10px 5px}.instant-apps-interactive-legend__compact .esri-legend__layer-row .esri-legend__layer-cell--info{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;line-clamp:2;line-height:1.3125rem;max-height:2.625rem}@media (min-width: 992px){:host .instant-apps-interactive-legend__layer-row--interactive{cursor:pointer}:host .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}:host .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}:host .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}:host .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}`,p={layer:"esri-legend__layer",layerBody:"esri-legend__layer-body",layerRow:"esri-legend__layer-row",layerInfo:"esri-legend__layer-cell esri-legend__layer-cell--info",imageryLayerStretchedImage:"esri-legend__imagery-layer-image--stretched",symbolContainer:"esri-legend__layer-cell esri-legend__layer-cell--symbols",symbol:"esri-legend__symbol",rampContainer:"esri-legend__ramps",sizeRamp:"esri-legend__size-ramp",colorRamp:"esri-legend__color-ramp",opacityRamp:"esri-legend__opacity-ramp",rampLabelsContainer:"esri-legend__ramp-labels",rampLabel:"esri-legend__ramp-label",univariateAboveAndBelowLabel:"esri-univariate-above-and-below-ramp__label",message:"esri-legend__message",interactiveLayerRow:"instant-apps-interactive-legend__layer-row--interactive",infoSelected:"instant-apps-interactive-legend-element-info--selected",compact:"instant-apps-interactive-legend__compact"},mt=24,Xe={display:"flex",alignItems:"flex-start"},be={marginLeft:"3px"},j={display:"table-cell",verticalAlign:"middle"},we=class extends Ee{constructor(){super(...arguments),this.calculatingFeatureCount=!1,this.isLoading=!0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"}}static{this.properties={isLoading:16,legendvm:0,zoomTo:5,featureCount:5,filterMode:0,messages:0}}static{this.styles=ut}async connectedCallback(){super.connectedCallback(),!this.handles&&(this.handles=await ze())}async load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0});let[t,s]=await Promise.all([Pe(),Ie()]),o=await Te();this.reactiveUtils=s,this.intl=t,this.symbolUtils=o}willUpdate(t){t.has("filterMode")&&this.legendvm?.view&&(this.hasUpdated||this.filterMode.type!=="filter")&&qe(this.filterMode,this.legendvm.view)}async loaded(){await this.initLegend()}disconnectedCallback(){super.disconnectedCallback(),this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}async initLegend(){try{await this.reactiveUtils.whenOnce(()=>this.legendvm?.view);let t=async()=>{try{let s=this.legendvm?.view?.map;await s?.load(),await s?.basemap?.load();let o=s?.allLayers?.map(async u=>await u.load()),a=(await Promise.allSettled(o)).map(u=>u?.status==="fulfilled"&&u?.value?u.value:null).filter(u=>!!u),r=[];a.forEach(u=>{this.legendvm?.view&&r.push(this.legendvm.view.whenLayerView(u))}),await Promise.allSettled(r);let g=await ce(this.legendvm,this.reactiveUtils);W.set("data",{...B.data,...g}),this.isLoading=!1,await this.setupWatchersAndListeners()}catch(s){console.error(s),this.isLoading=!1}};this.legendvm?.view?.when(t),this.legendvm?.view?.map?.layers?.on("after-changes",t)}catch{this.isLoading=!1}}getStretchStopLabel(t){let s=this.messages[t.label];return t.label?`${s}: ${typeof t.value=="string"?t.value:this.intl.formatNumber(t.value,{style:"decimal",notation:t.value.toString().includes("e")?"scientific":"standard"})}`:""}getTitle(t,s){if(!t)return;if(typeof t=="string"||typeof t=="number")return t;if("value"in t||"unit"in t){let r=typeof this.messages?.dotValue=="string"?this.messages.dotValue:"";return this.intl.substitute(r,t)}if("colorName"in t||"bandName"in t){let{colorName:r,bandName:g}=t,u=this.messages[r],_=typeof this.messages[g]=="string"?this.messages[g]:g;return`${u}: ${_}`}if("showCount"in t)return t.showCount?this.messages.clusterCountTitle:null;let o=null;if(s){let r=t;o=r.ratioPercentTotal?"showRatioPercentTotal":r.ratioPercent?"showRatioPercent":r.ratio?"showRatio":t.normField?"showNormField":t.field?"showField":null}else if(this.isRendererTitle(s)){let r=t;o=r.normField?"showNormField":r.normByPct?"showNormPct":r.field?"showField":null}let a=o==="showField"?"{field}":typeof o=="string"?this.messages[o]:"";return o?this.intl?.substitute(a,{field:t.field,normField:t.normField}):""}isRendererTitle(t){return!t}async setupWatchersAndListeners(){let t=this.legendvm?.view?.map?.allLayers?.filter(a=>a?.type==="feature"),s=[];for(let a of t)this.legendvm?.view&&s.push(this.legendvm?.view?.whenLayerView(a));let o=[];try{o=await Promise.all(s)}catch(a){console.error(a)}for(let a of o){let r=`fLayerViewScale-${a.layer.id}`;!this.handles?.has(r)&&a&&this.handles?.add(a.watch("visibleAtCurrentScale",()=>{this.createDataForLayer(a.layer).catch(g=>{console.error(g)})}),r)}t?.forEach(a=>{let r=`fLayer-${a?.id}`;this.handles?.has(r)||this.handles?.add(this.reactiveUtils?.watch(()=>a?.visible,()=>{this.createDataForLayer(a).catch(g=>{console.error(g)})}),r)}),this.handles?.add(this.reactiveUtils.when(()=>this.legendvm,()=>{this.reactiveUtils.watch(()=>this.legendvm?.view?.updating,()=>{this.calculatingFeatureCount||this.legendvm?.view?.updating&&(this.calculatingFeatureCount=!0,this.reactiveUtils.when(()=>!this.legendvm?.view?.updating,()=>{de(this.legendvm,B.data).then(a=>{W.set("data",{...B.data,...a}),this.calculatingFeatureCount=!1}).catch(a=>{console.error(a)})},{once:!0,initial:!0}))},{initial:!0})},{initial:!0,once:!0})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.activeLayerInfos,"change",a=>{ce(this.legendvm,this.reactiveUtils).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).then(()=>{this.handles?.add(this.reactiveUtils.on(()=>a.children,"change",()=>{ce(this.legendvm,this.reactiveUtils).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).catch(r=>{console.error(r)})}))}).catch(r=>{console.error(r)})})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.view?.map?.layers,"after-changes",()=>{de(this.legendvm,B.data).then(a=>{W.set("data",{...B.data,...a}),this.calculatingFeatureCount=!1}).catch(a=>{console.error(a)})}))}async createDataForLayer(t){let s=W.get("data")?.[t?.id],o=We(this.legendvm?.activeLayerInfos)?.find(a=>a?.layer?.id===t?.id);if(!s&&o){let a=await Fe(this.legendvm,o,this.reactiveUtils);if(me({intLegendLayerData:a,layerId:t?.id}),this.featureCount){let r=await de(this.legendvm,B.data);W.set("data",{...B.data,...r})}}}applyFilter(t,s,o,a){return async()=>{let r={...B.data?.[s?.id]};a?await ue(r,t,o,this.filterMode,a):await ue(r,t,o,this.filterMode),me({intLegendLayerData:r,layerId:s?.id})}}render(){let t=this.renderFilteredLayers(),s=W.get("compact")?` ${p.compact}`:"";return this.isLoading?K("interactive-legend-loader",L`<calcite-loader scale=m .label=${this.messages?.loading} .text=${this.messages?.loading}></calcite-loader>`):K("interactive-legend-classic-container",L`<div class=${`${Y(this.el)}${s}`}>${t?.length>0?t:L`<div class=${w(p.message)}>${this.messages?.noLegend}</div>`}</div>`)}renderFilteredLayers(){return(this.legendvm?.activeLayerInfos?.toArray()).map(t=>this.renderLegendForLayer(t)).filter(t=>!!t)}renderLegendForLayer(t,s){if(!t.ready)return null;if(t.children.length){let r=t.children.map(g=>this.renderLegendForLayer(g,!0)).toArray();return L`<instant-apps-interactive-legend-group-legend-element class=${w(Y(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${t} .isChild=${s}><div style=${E({paddingLeft:"20px"})} .id=${`${t?.layer?.id}-legend-layer`} slot=content>${r}</div></instant-apps-interactive-legend-group-legend-element>`}let o=t.legendElements;if(o&&!o.length)return null;let a=o.map((r,g)=>this.renderLegendForElement(r,t.layer,t.effectList,t,g)).filter(r=>!!r);return a.length?L`<instant-apps-interactive-legend-layer-element class=${w(Y(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${t} .isChild=${!!s}><div slot=content .id=${`${t?.layer?.id}-legend-layer`} class=${w(p.layer)}>${a}</div></instant-apps-interactive-legend-layer-element>`:null}renderLegendForElement(t,s,o,a,r,g,u){let _=t.type==="color-ramp",$=t.type==="opacity-ramp",P=t.type==="size-ramp",x=null,C=Be(a,t,r),S=t?.type==="relationship-ramp";if(t.type==="symbol-table"||P){let R=t.infos.map((M,D)=>this.renderLegendForElementInfo(M,s,o,P,t,a,r,D,C,u)).filter(M=>!!M);R.length&&(x=L`<div class=${w(p.layerBody)}>${R}</div>`)}else if(t.type==="color-ramp"||t.type==="opacity-ramp"||t.type==="heatmap-ramp"||t.type==="stretch-ramp"){let R=t;x=this.renderLegendForRamp(R,s.opacity)}else if(S)x=K("relationship-ramp",L`<instant-apps-interactive-legend-relationship class=${w(Y(this.el))} .filterMode=${this.filterMode} .activeLayerInfo=${a} .legendElement=${t}></instant-apps-interactive-legend-relationship>`);else if(t.type==="pie-chart-ramp"){let R=t;x=this.renderPieChartRamp(R)}else if(t.type==="univariate-above-and-below-ramp"){let R=t;x=this.renderUnivariateAboveAndBelowRamp(R,s.opacity,o)}else if(t.type==="univariate-color-size-ramp"){let R=t;x=this.renderUnivariateColorSizeRamp(R,s.opacity,o)}if(!x)return null;let z=t.title,I=null;if(typeof z=="string")I=z;else if(z){let R=z,M=this.getTitle(R,_||$);this.isRendererTitle(_||$)?"title"in z&&(I=`${z.title} (${M})`):I=M}return L`<instant-apps-interactive-legend-legend-element class=${w(Y(this.el))} .activeLayerInfo=${a} .isSizeRamp=${P} .isChild=${!!g} .isColorRamp=${_} .isRelationshipRamp=${S} .isInteractive=${C} .zoomTo=${this.zoomTo} .legendElement=${t} .titleText=${I} .legendvm=${this.legendvm} .legendElementIndex=${r}><div slot=content>${x}</div></instant-apps-interactive-legend-legend-element>`}renderPieChartRamp(t){return L`<div .innerHTML=${`${t.preview?.outerHTML}`}></div>`}renderUnivariateAboveAndBelowRamp(t,s,o){let{sizeRampElement:a,colorRampElement:r}=ht(t,s);if(!a)return null;let g=$e(a,"above",!0),u=$e(a,"below",!0),_=12,$=ye(r,this.symbolUtils,{width:_,height:g,rampAlignment:"vertical",opacity:s,type:"above",effectList:o}),P=ye(r,this.symbolUtils,{width:_,height:u,rampAlignment:"vertical",opacity:s,type:"below",effectList:o}),x=Ke(a),C=a.infos.map(H=>H.label),S=C.map((H,F)=>F===0?L`<div class=${w(H?$?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${H}</div>`:F===2?L`<div></div>`:null),z=C.length-1,I=Math.floor(C.length/2),R=C.map((H,F)=>F===I||F===z?L`<div class=${w(H?$?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${H}</div>`:null),M={display:"table-cell",verticalAlign:"middle"},D={marginTop:`${x}px`},ee={height:`${g}px`},Q={height:`${u}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Xe)}><div class=${w(p.layerBody)}>${a.infos.map((H,F)=>L`<div class=${`${p.layerRow} ${p.sizeRamp}`}><div class=${w(p.symbol)} style=${E(M)} .innerHTML=${H?.preview?.outerHTML??""??""}></div>${!$&&F%2===0?L`<div class=${w(p.layerInfo)}>${C[F]}</div>`:null}</div>`)}</div>${$?K("color-ramp-preview",L`<div style=${E(D)}><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(ee)}>${S}</div></div></div><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${P}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(Q)}>${R}</div></div></div></div>`):null}</div>`)}renderUnivariateColorSizeRamp(t,s,o){let{sizeRampElement:a,colorRampElement:r}=pt(t);if(!a)return null;let g=Ke(a),u=12,_=$e(a,"full",!1),$=ye(r,this.symbolUtils,{width:u,height:_,rampAlignment:"vertical",opacity:s,type:"full",effectList:o}),P=a.infos.length-1,x=a.infos.map((I,R)=>R===0||R===P?L`<div class=${w(I.label?r?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${I.label}</div>`:null),C={display:"table-cell",verticalAlign:"middle"},S={marginTop:`${g}px`},z={height:`${_}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Xe)}><div class=${w(p.layerBody)}>${a.infos.map(I=>L`<div class=${`${p.layerRow} ${p.sizeRamp}`}><div class=${w(p.symbol)} style=${E(C)} .innerHTML=${I?.preview?.outerHTML??""??""}></div></div>`)}</div>${K("color-ramp-preview",L`<div style=${E(S)}><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(z)}>${x}</div></div></div></div>`)}</div>`)}renderLegendForRamp(t,s){let o=t.infos,a=t.type==="opacity-ramp",r=t.type==="heatmap-ramp",g=t.type==="stretch-ramp",u=t.preview,_=a?p.opacityRamp:"";u&&(u.classList.add(p.colorRamp),_&&u.classList.add(_)),s!=null&&u&&(u.style.opacity=s.toString());let $=o.map(C=>{let S;if(r){let z=this.messages[C.label];S=typeof z=="string"?z:C.label}else g?S="value"in C?this.getStretchStopLabel(C):C.label:S=C.label;return L`<div class=${w(C.label?p.rampLabel:"")}>${S}</div>`}),P={width:`${mt}px`},x={height:u?.style?.height};return L`<div class=${w(p.layerRow)}><div class=${w(p.symbolContainer)} style=${E({...P})}><div class=${w(p.rampContainer)} ${Re(C=>{C?.firstChild&&C?.firstChild?.remove(),C?.appendChild(u)})}></div></div><div class=${w(p.layerInfo)}><div class=${w(p.rampLabelsContainer)} style=${E({...x})}>${$}</div></div></div>`}renderLegendForElementInfo(t,s,o,a,r,g,u,_,$,P){if("infos"in t)return this.renderLegendForElement(t,s,o,g,u,!0,t);let x=null,C=!gt(s,r.type);if("preview"in t){let{outerHTML:G}=t.preview;x=L`<div class=${w(p.symbol)} .innerHTML=${G??""}></div>`}else"src"in t&&(x=this.renderImage(t,s,C));if(!x)return null;let S="",z=a?` ${p.sizeRamp}`:"",I,R=Ue(s),M=De(R,P);if(B.data){let G=Me(R,s,t,M,_),te=M?M?.nestedInfos:R,he=He(te);I=R?.categories?.size===1?!G?.selected:he||G?.selected}let D="label"in t?t.label:null,ee=M&&!("value"in t)?!1:$,Q=W.get("compact"),H=this.getTitle(D,!1)||"",F=M?r.title:D??s?.id;return ee?L`<button @click=${this.applyFilter(t,s,_,P)} class=${`${p.layerRow} ${p.interactiveLayerRow}${I?` ${p.infoSelected}`:""}`} title=${(Q?`${H}`:void 0)??oe} .ariaPressed=${I?"true":"false"}><div class=${`${p.symbolContainer}${S}${z}`}>${x}</div><div class=${`${p.layerInfo}${S}`}>${this.getTitle(D,!1)||""}</div>${this.featureCount&&!Q?L`<instant-apps-interactive-legend-count class=${w(Y(this.el))} .categoryId=${F} .activeLayerInfo=${g} .legendvm=${this.legendvm} .selected=${!!I} .legendElement=${r} .infoIndex=${_}></instant-apps-interactive-legend-count>`:null}</button>`:L`<div class=${w(p.layerRow)}><div class=${`${p.symbolContainer}${S}${z}`}>${x}</div><div class=${`${p.layerInfo}${S}`}>${H}</div></div>`}renderImage(t,s,o){let{label:a,src:r,opacity:g}=t,u=o?` ${p.imageryLayerStretchedImage}`:"",_=o?"":` ${p.symbol}`,$={opacity:`${g??s.opacity}`};return L`<img alt=${this.getTitle(a,!1)??oe} src=${r??oe} width=${t.width} height=${t.height} class=${`$${u}${_}`} style=${E($)}>`}};Se("instant-apps-interactive-legend-classic",we);return we},a,b,c)
3
+ v1.1.0-next.20250908.2 */
4
+ import c from"./MDXWCVZC.js";import b from"./DYUIMZ7H.js";import"./QCPMDDMQ.js";import a from"./IE7LPT5Z.js";import{a as K}from"./QSIEZ4SV.js";import{C as Pe,E as Te,c as ze,z as Ie}from"./RPYOJCAT.js";import{b as Se}from"./RIJY3CGU.js";import"./TWQK2H5U.js";import{D as Re,E as Ee,G as w,H as E,h as ke,i as L,j as ge,l as oe}from"./V73HEDAJ.js";import{b as st,d as lt}from"./KQVLKPIF.js";export default $arcgis.t(([,{a:B,b:W},{a:Fe,b:ce,d:Me,e:Ue,f:ue,g:He,i:Be,o:de,s:De,t:Y,u:me,v:qe,w:We}])=>{var Je=st((fe,Ge)=>{(function(b,t){typeof fe=="object"&&typeof Ge<"u"?t(fe):typeof define=="function"&&define.amd?define(["exports"],t):(b=typeof globalThis<"u"?globalThis:b||self,t(b.maquette={}))})(fe,(function(b){"use strict";var t="http://www.w3.org/",s="".concat(t,"2000/svg"),o="".concat(t,"1999/xlink"),a=[],r=function(e,i){var n={};return Object.keys(e).forEach(function(l){n[l]=e[l]}),i&&Object.keys(i).forEach(function(l){n[l]=i[l]}),n},g=function(e,i){return e.vnodeSelector!==i.vnodeSelector?!1:e.properties&&i.properties?e.properties.key!==i.properties.key?!1:e.properties.bind===i.properties.bind:!e.properties&&!i.properties},u=function(e){if(typeof e!="string")throw new Error("Style values must be strings")},_=function(e,i,n){if(i.vnodeSelector!==""){for(var l=n;l<e.length;l++)if(g(e[l],i))return l}return-1},$=function(e,i,n,l){var h=e[i];if(h.vnodeSelector!==""){var c=h.properties,A=c?c.key===void 0?c.bind:c.key:void 0;if(!A){for(var f=0;f<e.length;f++)if(f!==i){var d=e[f];if(g(d,h))throw{error:new Error("".concat(n.vnodeSelector," had a ").concat(h.vnodeSelector," child ").concat(l==="added"?l:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:n,childNode:h}}}}},P=function(e){if(e.properties){var i=e.properties.enterAnimation;i&&i(e.domNode,e.properties)}},x=[],C=!1,S=function(e){(e.children||[]).forEach(S),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},z=function(){C=!1,x.forEach(S),x.length=0},I=function(e){x.push(e),C||(C=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(z,{timeout:16}):setTimeout(z,16))},R=function(e){var i=e.domNode;if(e.properties){var n=e.properties.exitAnimation;if(n){i.style.pointerEvents="none";var l=function(){i.parentNode&&(i.parentNode.removeChild(i),I(e))};n(i,l,e.properties);return}}i.parentNode&&(i.parentNode.removeChild(i),I(e))},M=["afterCreate","afterUpdate","afterRemoved","enterAnimation","exitAnimation","updateAnimation"];function D(e){return!M.includes(e)}var ee=function(e,i,n){if(i)for(var l=n.eventHandlerInterceptor,h=Object.keys(i).filter(D),c=h.length,A=0;A<c;A++){var f=h[A],d=i[f];if(f==="className")throw new Error('Property "className" is not supported, use "class".');if(f==="class")te(e,d,!0);else if(f==="classes")for(var v=Object.keys(d),k=v.length,y=0;y<k;y++){var m=v[y];d[m]&&e.classList.add(m)}else if(f==="styles")for(var U=Object.keys(d),T=U.length,y=0;y<T;y++){var J=U[y],O=d[J];O&&(u(O),n.styleApplyer(e,J,O))}else if(f==="on"&&d)for(var ae=0,re=Object.entries(i.on);ae<re.length;ae++){var se=re[ae],X=se[0],q=se[1],N=typeof q=="function"?q:q.listener;l&&(N=l(X,N,e,i)),N&&e.addEventListener(X,N,typeof q=="function"?void 0:q.options)}else if(f!=="key"&&d!==null&&d!==void 0){var le=typeof d;le==="function"?(f.lastIndexOf("on",0)===0&&l&&(d=l(f,d,e,i)),e[f]=d):n.namespace===s?f==="href"?e.setAttributeNS(o,f,d):e.setAttribute(f,d):le==="string"&&f!=="value"&&f!=="innerHTML"?e.setAttribute(f,d):e[f]=d}}},Q=function(e,i,n){if(i)for(var l=0,h=i;l<h.length;l++){var c=h[l];F(c,e,void 0,n)}},H=function(e,i,n){Q(e,i.children,n),i.text&&(e.textContent=i.text),ee(e,i.properties,n),i.properties&&i.properties.afterCreate&&i.properties.afterCreate.apply(i.properties.bind||i.properties,[e,n,i.vnodeSelector,i.properties,i.children])},F=function(e,i,n,l){var h,c,A=0,f=e.vnodeSelector,d=i.ownerDocument;if(f==="")e.domNode?e.domNode.nodeValue=e.text:(c=e.domNode=d.createTextNode(e.text),n!==void 0?i.insertBefore(c,n):i.appendChild(c));else{for(var v=0;v<=f.length;++v){var k=f.charAt(v);if(v===f.length||k==="."||k==="#"){var y=f.charAt(A-1),m=f.slice(A,v);y==="."?c.classList.add(m):y==="#"?c.id=m:(m==="svg"&&(l=r(l,{namespace:s})),l.namespace!==void 0?c=e.domNode=d.createElementNS(l.namespace,m):(c=e.domNode=e.domNode||(!((h=e.properties)===null||h===void 0)&&h.is?d.createElement(m,{is:e.properties.is}):d.createElement(m)),m==="input"&&e.properties&&e.properties.type!==void 0&&c.setAttribute("type",e.properties.type)),n!==void 0?i.insertBefore(c,n):c.parentNode!==i&&i.appendChild(c)),A=v+1}}H(c,e,l)}},G,te=function(e,i,n){i&&i.split(" ").forEach(function(l){l&&e.classList.toggle(l,n)})},he=function(e,i,n,l){if(n){for(var h=!1,c=Object.keys(n).filter(D),A=c.length,f=0;f<A;f++){var d=c[f],v=n[d],k=i[d];if(d==="class")k!==v&&(te(e,k,!1),te(e,v,!0));else if(d==="classes")for(var y=e.classList,m=Object.keys(v),U=m.length,T=0;T<U;T++){var J=m[T],O=!!v[J],ae=!!k[J];O!==ae&&(h=!0,O?y.add(J):y.remove(J))}else if(d==="styles")for(var re=Object.keys(v),se=re.length,T=0;T<se;T++){var X=re[T],q=v[X],N=k[X];q!==N&&(h=!0,q?(u(q),l.styleApplyer(e,X,q)):l.styleApplyer(e,X,""))}else if(!v&&typeof k=="string"&&(v=""),d==="value"){var le=e[d];le!==v&&v!==k&&(e[d]=v),v!==k&&(h=!0)}else if(v!==k){var Ce=typeof v;(Ce!=="function"||!l.eventHandlerInterceptor)&&(l.namespace===s?d==="href"?e.setAttributeNS(o,d,v):e.setAttribute(d,v):Ce==="string"&&d!=="innerHTML"?d==="role"&&v===""?e.removeAttribute(d):e.setAttribute(d,v):e[d]!==v&&(e[d]=v),h=!0)}}return h}},Oe=function(e,i,n,l,h){if(n===l)return!1;n=n||a,l=l||a;for(var c=n.length,A=l.length,f=0,d=0,v,k=!1;d<A;){var y=f<c?n[f]:void 0,m=l[d];if(y!==void 0&&g(y,m))k=G(y,m,h,i,n)||k,f++;else{var U=_(n,m,f+1);if(U>=0){for(v=f;v<U;v++)R(n[v]),$(n,v,e,"removed");k=G(n[U],m,h,i,n)||k,f=U+1}else F(m,i,f<c?n[f].domNode:void 0,h),P(m),$(l,d,e,"added")}d++}if(c>f)for(v=f;v<c;v++)R(n[v]),$(n,v,e,"removed");return k};G=function(e,i,n,l,h){var c=e.domNode,A=!1;if(e===i)return!1;var f=!1;if(i.vnodeSelector===""){if(i.text!==e.text){var d=c.ownerDocument.createTextNode(i.text);try{l.replaceChild(d,c)}catch{l.replaceChild(d,l.childNodes[h.indexOf(e)])}return i.domNode=d,A=!0,A}i.domNode=c}else i.vnodeSelector.lastIndexOf("svg",0)===0&&(n=r(n,{namespace:s})),e.text!==i.text&&(f=!0,i.text===void 0?c.removeChild(c.firstChild):c.textContent=i.text),i.domNode=c,f=Oe(i,c,e.children,i.children,n)||f,f=he(c,e.properties,i.properties,n)||f,i.properties&&i.properties.afterUpdate&&i.properties.afterUpdate.apply(i.properties.bind||i.properties,[c,n,i.vnodeSelector,i.properties,i.children]);return f&&i.properties&&i.properties.updateAnimation&&i.properties.updateAnimation(c,i.properties,e.properties),A};var ie=function(e,i){return{getLastRender:function(){return e},update:function(n){if(e.vnodeSelector!==n.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var l=e;e=n,G(l,n,i,l.domNode.parentNode,[l])},domNode:e.domNode}},Ne={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,i,n){i.charAt(0)==="-"?e.style.setProperty(i,n):e.style[i]=n}},Z=function(e){return r(Ne,e)},ne={create:function(e,i){return i=Z(i),F(e,document.createElement("div"),void 0,i),ie(e,i)},append:function(e,i,n){return n=Z(n),F(i,e,void 0,n),ie(i,n)},insertBefore:function(e,i,n){return n=Z(n),F(i,e.parentNode,e,n),ie(i,n)},merge:function(e,i,n){return n=Z(n),i.domNode=e,H(e,i,n),ie(i,n)},replace:function(e,i,n){return n=Z(n),F(i,e.parentNode,e,n),e.parentNode.removeChild(e),ie(i,n)}},je=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},xe=function(e,i,n){for(var l=0,h=i.length;l<h;l++){var c=i[l];Array.isArray(c)?xe(e,c,n):c!=null&&c!==!1&&(typeof c=="string"&&(c=je(c)),n.push(c))}};function Ve(e,i,n){if(Array.isArray(i))n=i,i=void 0;else if(i&&(typeof i=="string"||i.vnodeSelector)||n&&(typeof n=="string"||n.vnodeSelector))throw new Error("h called with invalid arguments");var l,h;return n&&n.length===1&&typeof n[0]=="string"?l=n[0]:n&&(h=[],xe(e,n,h),h.length===0&&(h=void 0)),{vnodeSelector:e,properties:i,children:h,text:l===""?void 0:l,domNode:null}}var et=function(e,i){for(var n=[];e&&e!==i;)n.push(e),e=e.parentNode;return n},pe;Array.prototype.find?pe=function(e,i){return e.find(i)}:pe=function(e,i){return e.filter(i)[0]};var tt=function(e,i){var n=e;return i.forEach(function(l){n=n&&n.children?pe(n.children,function(h){return h.domNode===l}):void 0}),n},it=function(e,i,n){return function(h,c,A,f){return l};function l(h){var c,A;n("domEvent",h);var f=i(),d=et(h.currentTarget,f.domNode);d.reverse();var v=tt(f.getLastRender(),d);e.scheduleRender();var k;if(v){var y=(A=(c=v.properties["on".concat(h.type)])!==null&&c!==void 0?c:v.properties.on[h.type].listener)!==null&&A!==void 0?A:v.properties.on[h.type];k=y.apply(v.properties.bind||this,arguments)}return n("domEventProcessed",h),k}},nt=function(e){var i,n=Z(e),l=n.performanceLogger,h=!0,c,A=!1,f=[],d=[],v=function(y,m,U){var T,J=function(){return T};n.eventHandlerInterceptor=it(i,J,l),T=y(m,U(),n),f.push(T),d.push(U)},k=function(){if(c=void 0,!!h){h=!1,l("renderStart",void 0);for(var y=0;y<f.length;y++){var m=d[y]();l("rendered",void 0),f[y].update(m),l("patched",void 0)}l("renderDone",void 0),h=!0}};return i={renderNow:k,scheduleRender:function(){!c&&!A&&(c=requestAnimationFrame(k))},stop:function(){c&&(cancelAnimationFrame(c),c=void 0),A=!0},resume:function(){A=!1,h=!0,i.scheduleRender()},append:function(y,m){v(ne.append,y,m)},insertBefore:function(y,m){v(ne.insertBefore,y,m)},merge:function(y,m){v(ne.merge,y,m)},replace:function(y,m){v(ne.replace,y,m)},detach:function(y){for(var m=0;m<d.length;m++)if(d[m]===y)return d.splice(m,1),f.splice(m,1)[0];throw new Error("renderFunction was not found")}},i},at=function(){var e,i;return{invalidate:function(){i=void 0,e=void 0},result:function(n,l){if(e)for(var h=0;h<n.length;h++)e[h]!==n[h]&&(i=void 0);return i||(i=l(),e=n),i}}},rt=function(e,i,n){var l=[],h=[];return{results:h,map:function(c){for(var A=c.map(e),f=h.slice(),d=0,v=0;v<c.length;v++){var k=c[v],y=A[v];if(y===l[d])h[v]=f[d],n(k,f[d],v),d++;else{for(var m=!1,U=1;U<l.length+1;U++){var T=(d+U)%l.length;if(l[T]===y){h[v]=f[T],n(c[v],f[T],v),d=T+1,m=!0;break}}m||(h[v]=i(k,v))}}h.length=c.length,l=A}}};b.createCache=at,b.createMapping=rt,b.createProjector=nt,b.dom=ne,b.h=Ve}))});var Ye=lt(Je(),1);var ot=96;function V(b){return b?b/72*ot:0}var ct=(0,Ye.createProjector)(),Qe=10,_e=20,ve=10,Le=20,Ae={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function dt(b="vertical"){let t={stroke:"rgb(200, 200, 200)",strokeWidth:"1"};return b==="vertical"?L`<svg height=4 width=10>${ge`<line x1=0 y1=2 x2=10 y2=2 style=${E(t)} />`}</svg>`:L`<svg height=10 width=10>${ge`<line x1=5 y1=0 x2=5 y2=10 style=${E(t)} />`}</svg>`}function ft(b,t="vertical"){let s=document.createElement("div");return s.style.height=`${_e}px`,s.className=Ae.univariateAboveAndBelowSymbol,b!=null&&(s.style.opacity=b.toString()),ct.append(s,dt.bind(null,t)),s}function Ze(b,t,s="vertical",o){b.infos.forEach((a,r)=>{if(o&&r===2)a.preview=ft(t,s);else{let{size:g}=a,u=V(g)+(s==="horizontal"?Le:ve),_=a.preview.tagName.toLowerCase()==="div",$=_?a.preview:document.createElement("div");$&&($.className=Ae.univariateAboveAndBelowSymbol),s==="horizontal"?$&&($.style.width=`${u}px`):$&&($.style.height=`${u}px`),_||$&&$.appendChild(a.preview),a.preview=$}})}function Ke(b,t="classic"){let s=b.infos,o=s[0].size,a=s[s.length-1].size;return t==="classic"?(V(o)+ve)/2:(V(o)-V(a))/2}function ye(b,t,s){if(!b)return null;let o=b.infos.map(r=>r.color),a=t.renderColorRampPreviewHTML(s.type==="full"?o:s.type==="above"?o.slice(0,3):o.slice(2,5),{width:s.width,height:s.height,align:s.rampAlignment,effectList:s.effectList});return a.className=Ae.colorRamp,s.opacity!=null&&(a.style.opacity=s.opacity.toString()),a}function vt(b,t,s,o="vertical"){let a=0,r=b.infos,g=Math.floor(r.length/2),u=t==="full"||t==="above"?0:g,_=t==="full"||t==="below"?r.length-1:g;for(let $=u;$<=_;$++)if(s&&$===g)a+=o==="horizontal"?Qe:_e;else{let P=r[$].size,x=V(P)+(o==="horizontal"?Le:ve);a+=x}return Math.round(a)}function $e(b,t,s,o="vertical"){let a=vt(b,t,s,o),r=b.infos,g=Math.floor(r.length/2),u=t==="full"||t==="above"?0:g,_=t==="full"||t==="below"?r.length-1:g,$=t==="full"?r[u].size+r[_].size:t==="above"?r[u].size:r[_].size,P=s?o==="vertical"?_e:Qe:0,x=o==="vertical"?ve*(t==="full"?2:1):Le*(t==="full"?2:1);return Math.round(a-(V($)/2+P/2+x/2))}function ht(b,t,s="vertical"){let o=b.infos,a=o.find(({type:g})=>g==="size-ramp"),r=o.find(({type:g})=>g==="color-ramp");return a&&(a={...a},a.infos=[...a.infos],Ze(a,t,s,!0)),r&&(r={...r},r.infos=[...r.infos]),s==="horizontal"&&(a?.infos.reverse(),r?.infos.reverse()),{sizeRampElement:a,colorRampElement:r}}function pt(b,t="vertical"){let s=b.infos,o=s.find(({type:r})=>r==="size-ramp"),a=s.find(({type:r})=>r==="color-ramp");return o&&(o={...o},o.infos=[...o.infos],Ze(o,null,t,!1)),a&&(a={...a},a.infos=[...a.infos]),t==="horizontal"&&(o?.infos.reverse(),a?.infos.reverse()),{sizeRampElement:o,colorRampElement:a}}function gt(b,t){return!0}var ut=ke`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: normal;--instant-apps-interactive-legend-caption-font-weight: normal;--instant-apps-interactive-legend-secondary-color: var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size: 1rem;--instant-apps-interactive-legend-total-feature-count-font-size: .875rem;--instant-apps-interactive-legend-info-font-size: .875rem;--instant-apps-interactive-legend-info-item-background--selected: #c7ebff;--instant-apps-interactive-legend-info-item-background--selected--dark: #009af2;--instant-apps-interactive-legend-info-item-background--hover: #e9e9e9;--instant-apps-interactive-legend-info-item-background--hover--dark: #4a4a4a;--instant-apps-interactive-legend-info-item-color--selected: var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color: var(--calcite-color-background);--instant-apps-interactive-legend-ui-margin: 20px 15px;--instant-apps-interactive-legend-ui-padding: 20px 15px}:host .esri-legend__service{padding:0}:host .esri-legend__layer-body,:host .esri-legend__layer,:host .esri-legend__layer-table,:host .esri-legend__group-layer-child,:host .esri-legend__layer-child-table{margin:0;overflow:hidden}:host .esri-legend__layer-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host .esri-legend__layer-caption calcite-action{margin-right:5px}:host .instant-apps-interactive-legend__layer-caption-btn-container{white-space:nowrap}:host .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}:host .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}:host .esri-legend__layer-cell.esri-legend__layer-cell--info{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}:host .esri-legend__layer-cell,:host .esri-legend__layer-row{display:flex;align-items:center}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-body{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}:host .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol>.esri-legend__layer-body{margin:0}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-row{display:table-row}:host .instant-apps-interactive-legend__non-interactive .esri-legend__layer-cell{display:table-cell}:host .esri-legend__layer-cell--symbols{justify-content:center;width:20%}:host .esri-legend__layer-cell--info{width:65%}:host .instant-apps-interactive-legend__layer-row--interactive{margin:1px;background:transparent;border:none;width:100%}:host .esri-legend__layer-cell--info{color:var(--instant-apps-interactive-legend-secondary-color)}:host .esri-legend__layer-row,:host .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}:host .instant-apps-interactive-legend__layer-row--interactive{position:relative}:host .instant-apps-interactive-legend-element-info--selected{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}:host .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}:host .calcite-mode-dark .instant-apps-interactive-legend-element-info--selected .esri-legend__layer-cell--info{color:var(--calcite-color-text-inverse)}:host .hide{display:none}.instant-apps-interactive-legend__compact .esri-legend__layer-row{--instant-apps-interactive-legend-ui-padding: 10px 5px}.instant-apps-interactive-legend__compact .esri-legend__layer-row .esri-legend__layer-cell--info{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;line-clamp:2;line-height:1.3125rem;max-height:2.625rem}@media (min-width: 992px){:host .instant-apps-interactive-legend__layer-row--interactive{cursor:pointer}:host .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}:host .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}:host .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}:host .calcite-mode-dark .instant-apps-interactive-legend__layer-row--interactive:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}`,p={layer:"esri-legend__layer",layerBody:"esri-legend__layer-body",layerRow:"esri-legend__layer-row",layerInfo:"esri-legend__layer-cell esri-legend__layer-cell--info",imageryLayerStretchedImage:"esri-legend__imagery-layer-image--stretched",symbolContainer:"esri-legend__layer-cell esri-legend__layer-cell--symbols",symbol:"esri-legend__symbol",rampContainer:"esri-legend__ramps",sizeRamp:"esri-legend__size-ramp",colorRamp:"esri-legend__color-ramp",opacityRamp:"esri-legend__opacity-ramp",rampLabelsContainer:"esri-legend__ramp-labels",rampLabel:"esri-legend__ramp-label",univariateAboveAndBelowLabel:"esri-univariate-above-and-below-ramp__label",message:"esri-legend__message",interactiveLayerRow:"instant-apps-interactive-legend__layer-row--interactive",infoSelected:"instant-apps-interactive-legend-element-info--selected",compact:"instant-apps-interactive-legend__compact"},mt=24,Xe={display:"flex",alignItems:"flex-start"},be={marginLeft:"3px"},j={display:"table-cell",verticalAlign:"middle"},we=class extends Ee{constructor(){super(...arguments),this.calculatingFeatureCount=!1,this.isLoading=!0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"}}static{this.properties={isLoading:16,legendvm:0,zoomTo:5,featureCount:5,filterMode:0,messages:0}}static{this.styles=ut}async connectedCallback(){super.connectedCallback(),!this.handles&&(this.handles=await ze())}async load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0});let[t,s]=await Promise.all([Pe(),Ie()]),o=await Te();this.reactiveUtils=s,this.intl=t,this.symbolUtils=o}willUpdate(t){t.has("filterMode")&&this.legendvm?.view&&(this.hasUpdated||this.filterMode.type!=="filter")&&qe(this.filterMode,this.legendvm.view)}async loaded(){await this.initLegend()}disconnectedCallback(){super.disconnectedCallback(),this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}async initLegend(){try{await this.reactiveUtils.whenOnce(()=>this.legendvm?.view);let t=async()=>{try{let s=this.legendvm?.view?.map;await s?.load(),await s?.basemap?.load();let o=s?.allLayers?.map(async u=>await u.load()),a=(await Promise.allSettled(o)).map(u=>u?.status==="fulfilled"&&u?.value?u.value:null).filter(u=>!!u),r=[];a.forEach(u=>{this.legendvm?.view&&r.push(this.legendvm.view.whenLayerView(u))}),await Promise.allSettled(r);let g=await ce(this.legendvm,this.reactiveUtils);W.set("data",{...B.data,...g}),this.isLoading=!1,await this.setupWatchersAndListeners()}catch(s){console.error(s),this.isLoading=!1}};this.legendvm?.view?.when(t),this.legendvm?.view?.map?.layers?.on("after-changes",t)}catch{this.isLoading=!1}}getStretchStopLabel(t){let s=this.messages[t.label];return t.label?`${s}: ${typeof t.value=="string"?t.value:this.intl.formatNumber(t.value,{style:"decimal",notation:t.value.toString().includes("e")?"scientific":"standard"})}`:""}getTitle(t,s){if(!t)return;if(typeof t=="string"||typeof t=="number")return t;if("value"in t||"unit"in t){let r=typeof this.messages?.dotValue=="string"?this.messages.dotValue:"";return this.intl.substitute(r,t)}if("colorName"in t||"bandName"in t){let{colorName:r,bandName:g}=t,u=this.messages[r],_=typeof this.messages[g]=="string"?this.messages[g]:g;return`${u}: ${_}`}if("showCount"in t)return t.showCount?this.messages.clusterCountTitle:null;let o=null;if(s){let r=t;o=r.ratioPercentTotal?"showRatioPercentTotal":r.ratioPercent?"showRatioPercent":r.ratio?"showRatio":t.normField?"showNormField":t.field?"showField":null}else if(this.isRendererTitle(s)){let r=t;o=r.normField?"showNormField":r.normByPct?"showNormPct":r.field?"showField":null}let a=o==="showField"?"{field}":typeof o=="string"?this.messages[o]:"";return o?this.intl?.substitute(a,{field:t.field,normField:t.normField}):""}isRendererTitle(t){return!t}async setupWatchersAndListeners(){let t=this.legendvm?.view?.map?.allLayers?.filter(a=>a?.type==="feature"),s=[];for(let a of t)this.legendvm?.view&&s.push(this.legendvm?.view?.whenLayerView(a));let o=[];try{o=await Promise.all(s)}catch(a){console.error(a)}for(let a of o){let r=`fLayerViewScale-${a.layer.id}`;!this.handles?.has(r)&&a&&this.handles?.add(a.watch("visibleAtCurrentScale",()=>{this.createDataForLayer(a.layer).catch(g=>{console.error(g)})}),r)}t?.forEach(a=>{let r=`fLayer-${a?.id}`;this.handles?.has(r)||this.handles?.add(this.reactiveUtils?.watch(()=>a?.visible,()=>{this.createDataForLayer(a).catch(g=>{console.error(g)})}),r)}),this.handles?.add(this.reactiveUtils.when(()=>this.legendvm,()=>{this.reactiveUtils.watch(()=>this.legendvm?.view?.updating,()=>{this.calculatingFeatureCount||this.legendvm?.view?.updating&&(this.calculatingFeatureCount=!0,this.reactiveUtils.when(()=>!this.legendvm?.view?.updating,()=>{de(this.legendvm,B.data).then(a=>{W.set("data",{...B.data,...a}),this.calculatingFeatureCount=!1}).catch(a=>{console.error(a)})},{once:!0,initial:!0}))},{initial:!0})},{initial:!0,once:!0})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.activeLayerInfos,"change",a=>{ce(this.legendvm,this.reactiveUtils).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).then(()=>{this.handles?.add(this.reactiveUtils.on(()=>a.children,"change",()=>{ce(this.legendvm,this.reactiveUtils).then(r=>{W.set("data",{...B.data,...r}),this.requestUpdate()}).catch(r=>{console.error(r)})}))}).catch(r=>{console.error(r)})})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.view?.map?.layers,"after-changes",()=>{de(this.legendvm,B.data).then(a=>{W.set("data",{...B.data,...a}),this.calculatingFeatureCount=!1}).catch(a=>{console.error(a)})}))}async createDataForLayer(t){let s=W.get("data")?.[t?.id],o=We(this.legendvm?.activeLayerInfos)?.find(a=>a?.layer?.id===t?.id);if(!s&&o){let a=await Fe(this.legendvm,o,this.reactiveUtils);if(me({intLegendLayerData:a,layerId:t?.id}),this.featureCount){let r=await de(this.legendvm,B.data);W.set("data",{...B.data,...r})}}}applyFilter(t,s,o,a){return async()=>{let r={...B.data?.[s?.id]};a?await ue(r,t,o,this.filterMode,a):await ue(r,t,o,this.filterMode),me({intLegendLayerData:r,layerId:s?.id})}}render(){let t=this.renderFilteredLayers(),s=W.get("compact")?` ${p.compact}`:"";return this.isLoading?K("interactive-legend-loader",L`<calcite-loader scale=m .label=${this.messages?.loading} .text=${this.messages?.loading}></calcite-loader>`):K("interactive-legend-classic-container",L`<div class=${`${Y(this.el)}${s}`}>${t?.length>0?t:L`<div class=${w(p.message)}>${this.messages?.noLegend}</div>`}</div>`)}renderFilteredLayers(){return(this.legendvm?.activeLayerInfos?.toArray()).map(t=>this.renderLegendForLayer(t)).filter(t=>!!t)}renderLegendForLayer(t,s){if(!t.ready)return null;if(t.children.length){let r=t.children.map(g=>this.renderLegendForLayer(g,!0)).toArray();return L`<instant-apps-interactive-legend-group-legend-element class=${w(Y(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${t} .isChild=${s}><div style=${E({paddingLeft:"20px"})} .id=${`${t?.layer?.id}-legend-layer`} slot=content>${r}</div></instant-apps-interactive-legend-group-legend-element>`}let o=t.legendElements;if(o&&!o.length)return null;let a=o.map((r,g)=>this.renderLegendForElement(r,t.layer,t.effectList,t,g)).filter(r=>!!r);return a.length?L`<instant-apps-interactive-legend-layer-element class=${w(Y(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${t} .isChild=${!!s}><div slot=content .id=${`${t?.layer?.id}-legend-layer`} class=${w(p.layer)}>${a}</div></instant-apps-interactive-legend-layer-element>`:null}renderLegendForElement(t,s,o,a,r,g,u){let _=t.type==="color-ramp",$=t.type==="opacity-ramp",P=t.type==="size-ramp",x=null,C=Be(a,t,r),S=t?.type==="relationship-ramp";if(t.type==="symbol-table"||P){let R=t.infos.map((M,D)=>this.renderLegendForElementInfo(M,s,o,P,t,a,r,D,C,u)).filter(M=>!!M);R.length&&(x=L`<div class=${w(p.layerBody)}>${R}</div>`)}else if(t.type==="color-ramp"||t.type==="opacity-ramp"||t.type==="heatmap-ramp"||t.type==="stretch-ramp"){let R=t;x=this.renderLegendForRamp(R,s.opacity)}else if(S)x=K("relationship-ramp",L`<instant-apps-interactive-legend-relationship class=${w(Y(this.el))} .filterMode=${this.filterMode} .activeLayerInfo=${a} .legendElement=${t}></instant-apps-interactive-legend-relationship>`);else if(t.type==="pie-chart-ramp"){let R=t;x=this.renderPieChartRamp(R)}else if(t.type==="univariate-above-and-below-ramp"){let R=t;x=this.renderUnivariateAboveAndBelowRamp(R,s.opacity,o)}else if(t.type==="univariate-color-size-ramp"){let R=t;x=this.renderUnivariateColorSizeRamp(R,s.opacity,o)}if(!x)return null;let z=t.title,I=null;if(typeof z=="string")I=z;else if(z){let R=z,M=this.getTitle(R,_||$);this.isRendererTitle(_||$)?"title"in z&&(I=`${z.title} (${M})`):I=M}return L`<instant-apps-interactive-legend-legend-element class=${w(Y(this.el))} .activeLayerInfo=${a} .isSizeRamp=${P} .isChild=${!!g} .isColorRamp=${_} .isRelationshipRamp=${S} .isInteractive=${C} .zoomTo=${this.zoomTo} .legendElement=${t} .titleText=${I} .legendvm=${this.legendvm} .legendElementIndex=${r}><div slot=content>${x}</div></instant-apps-interactive-legend-legend-element>`}renderPieChartRamp(t){return L`<div .innerHTML=${`${t.preview?.outerHTML}`}></div>`}renderUnivariateAboveAndBelowRamp(t,s,o){let{sizeRampElement:a,colorRampElement:r}=ht(t,s);if(!a)return null;let g=$e(a,"above",!0),u=$e(a,"below",!0),_=12,$=ye(r,this.symbolUtils,{width:_,height:g,rampAlignment:"vertical",opacity:s,type:"above",effectList:o}),P=ye(r,this.symbolUtils,{width:_,height:u,rampAlignment:"vertical",opacity:s,type:"below",effectList:o}),x=Ke(a),C=a.infos.map(H=>H.label),S=C.map((H,F)=>F===0?L`<div class=${w(H?$?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${H}</div>`:F===2?L`<div></div>`:null),z=C.length-1,I=Math.floor(C.length/2),R=C.map((H,F)=>F===I||F===z?L`<div class=${w(H?$?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${H}</div>`:null),M={display:"table-cell",verticalAlign:"middle"},D={marginTop:`${x}px`},ee={height:`${g}px`},Q={height:`${u}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Xe)}><div class=${w(p.layerBody)}>${a.infos.map((H,F)=>L`<div class=${`${p.layerRow} ${p.sizeRamp}`}><div class=${w(p.symbol)} style=${E(M)} .innerHTML=${H?.preview?.outerHTML??""??""}></div>${!$&&F%2===0?L`<div class=${w(p.layerInfo)}>${C[F]}</div>`:null}</div>`)}</div>${$?K("color-ramp-preview",L`<div style=${E(D)}><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(ee)}>${S}</div></div></div><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${P}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(Q)}>${R}</div></div></div></div>`):null}</div>`)}renderUnivariateColorSizeRamp(t,s,o){let{sizeRampElement:a,colorRampElement:r}=pt(t);if(!a)return null;let g=Ke(a),u=12,_=$e(a,"full",!1),$=ye(r,this.symbolUtils,{width:u,height:_,rampAlignment:"vertical",opacity:s,type:"full",effectList:o}),P=a.infos.length-1,x=a.infos.map((I,R)=>R===0||R===P?L`<div class=${w(I.label?r?p.univariateAboveAndBelowLabel:p.rampLabel:"")}>${I.label}</div>`:null),C={display:"table-cell",verticalAlign:"middle"},S={marginTop:`${g}px`},z={height:`${_}px`};return K("univariate-above-and-below-ramp-preview",L`<div style=${E(Xe)}><div class=${w(p.layerBody)}>${a.infos.map(I=>L`<div class=${`${p.layerRow} ${p.sizeRamp}`}><div class=${w(p.symbol)} style=${E(C)} .innerHTML=${I?.preview?.outerHTML??""??""}></div></div>`)}</div>${K("color-ramp-preview",L`<div style=${E(S)}><div style=${E(be)}><div style=${E(j)}><div class=${w(p.rampContainer)}>${$}</div></div><div style=${E(j)}><div class=${w(p.rampLabelsContainer)} style=${E(z)}>${x}</div></div></div></div>`)}</div>`)}renderLegendForRamp(t,s){let o=t.infos,a=t.type==="opacity-ramp",r=t.type==="heatmap-ramp",g=t.type==="stretch-ramp",u=t.preview,_=a?p.opacityRamp:"";u&&(u.classList.add(p.colorRamp),_&&u.classList.add(_)),s!=null&&u&&(u.style.opacity=s.toString());let $=o.map(C=>{let S;if(r){let z=this.messages[C.label];S=typeof z=="string"?z:C.label}else g?S="value"in C?this.getStretchStopLabel(C):C.label:S=C.label;return L`<div class=${w(C.label?p.rampLabel:"")}>${S}</div>`}),P={width:`${mt}px`},x={height:u?.style?.height};return L`<div class=${w(p.layerRow)}><div class=${w(p.symbolContainer)} style=${E({...P})}><div class=${w(p.rampContainer)} ${Re(C=>{C?.firstChild&&C?.firstChild?.remove(),C?.appendChild(u)})}></div></div><div class=${w(p.layerInfo)}><div class=${w(p.rampLabelsContainer)} style=${E({...x})}>${$}</div></div></div>`}renderLegendForElementInfo(t,s,o,a,r,g,u,_,$,P){if("infos"in t)return this.renderLegendForElement(t,s,o,g,u,!0,t);let x=null,C=!gt(s,r.type);if("preview"in t){let{outerHTML:G}=t.preview;x=L`<div class=${w(p.symbol)} .innerHTML=${G??""}></div>`}else"src"in t&&(x=this.renderImage(t,s,C));if(!x)return null;let S="",z=a?` ${p.sizeRamp}`:"",I,R=Ue(s),M=De(R,P);if(B.data){let G=Me(R,s,t,M,_),te=M?M?.nestedInfos:R,he=He(te);I=R?.categories?.size===1?!G?.selected:he||G?.selected}let D="label"in t?t.label:null,ee=M&&!("value"in t)?!1:$,Q=W.get("compact"),H=this.getTitle(D,!1)||"",F=M?r.title:D??s?.id;return ee?L`<button @click=${this.applyFilter(t,s,_,P)} class=${`${p.layerRow} ${p.interactiveLayerRow}${I?` ${p.infoSelected}`:""}`} title=${(Q?`${H}`:void 0)??oe} .ariaPressed=${I?"true":"false"}><div class=${`${p.symbolContainer}${S}${z}`}>${x}</div><div class=${`${p.layerInfo}${S}`}>${this.getTitle(D,!1)||""}</div>${this.featureCount&&!Q?L`<instant-apps-interactive-legend-count class=${w(Y(this.el))} .categoryId=${F} .activeLayerInfo=${g} .legendvm=${this.legendvm} .selected=${!!I} .legendElement=${r} .infoIndex=${_}></instant-apps-interactive-legend-count>`:null}</button>`:L`<div class=${w(p.layerRow)}><div class=${`${p.symbolContainer}${S}${z}`}>${x}</div><div class=${`${p.layerInfo}${S}`}>${H}</div></div>`}renderImage(t,s,o){let{label:a,src:r,opacity:g}=t,u=o?` ${p.imageryLayerStretchedImage}`:"",_=o?"":` ${p.symbol}`,$={opacity:`${g??s.opacity}`};return L`<img alt=${this.getTitle(a,!1)??oe} src=${r??oe} width=${t.width} height=${t.height} class=${`$${u}${_}`} style=${E($)}>`}};Se("instant-apps-interactive-legend-classic",we);return we},a,b,c)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250908 */
4
- import{o as u,p as v,q as _,r as p,v as g,w as C}from"./QWQQND4L.js";import{b as h}from"./2Q7C43LH.js";import{C as o,D as a,E as m,G as n,h as d,i as c,r as l}from"./FNN76R5R.js";import"./7YAHT6JK.js";var f=d`@layer{.esri-measurement,.esri-coordinate-conversion{width:300px}.instant-apps-measurement-tool__hide{display:none}}`,w="instant-apps-measurement-tool",s={base:w,hide:`${w}__hide`},r=class extends m{constructor(){super(...arguments),this._measureElement=o(),this._coordinateElement=o()}static{this.properties={view:0,measureConfiguration:0,activeTool:1}}static{this.styles=f}static{this.shadowRootOptions=l}async load(){await this._initModules()}willUpdate(e){e.has("activeTool")&&this._setActiveTool(this.activeTool)}loaded(){this._init()}disconnectedCallback(){super.disconnectedCallback(),this._measureWidget?.destroy(),this._coordinateWidget?.destroy()}async _initModules(){let[e,t,i]=await Promise.all([g(),u(),_()]);this.Measurement=e,this.CoordinateConversion=t,this.Conversion=i}async _init(){await this._initMeasurementWidget(),await this._initCoordinateWidget()}async _initMeasurementWidget(){this.view&&this._measureElement&&!this._measureWidget&&(this._measureWidget=await C({view:this.view,container:this._measureElement.value,...this.measureConfiguration}),this.measureConfiguration.activeToolType&&this._setActiveTool(this.measureConfiguration.activeToolType))}_setActiveTool(e){let t=this.view.type;this._measureWidget?.clear(),this._coordinateElement.value?.classList.add(s.hide),e==="distance"&&this._measureWidget?this._measureWidget.activeTool=t==="2d"?"distance":"direct-line":e==="area"&&this._measureWidget?this._measureWidget.activeTool="area":e==="point"&&this._coordinateElement.value?.classList?.remove(s.hide);let i=this.el.getRootNode().querySelector(`calcite-action[data-value="${e}"]`);i&&i.setFocus()}async _initCoordinateWidget(){let{activeToolType:e,coordinateFormat:t}=this.measureConfiguration;if(this?.view&&this._coordinateElement&&!this._coordinateWidget&&(this._coordinateWidget=await v({view:this.view,storageEnabled:!1,container:this._coordinateElement.value}),t!=null)){let i=this._coordinateWidget.formats.find(W=>W.name===t);this._coordinateWidget?.conversions?.splice(0,0,await p({format:i}))}e!=null&&this._setActiveTool(e)}render(){return c`<div class=${n(s.base)}><div ${a(this._measureElement)}></div><div class=${n(s.hide)} ${a(this._coordinateElement)}></div></div>`}};h("instant-apps-measurement-tool",r);export{r as InstantAppsMeasurementTool};
3
+ v1.1.0-next.20250908.2 */
4
+ import{o as u,p as v,q as _,r as p,v as g,w as C}from"./RPYOJCAT.js";import{b as h}from"./RIJY3CGU.js";import{C as o,D as a,E as m,G as n,h as d,i as c,r as l}from"./V73HEDAJ.js";import"./KQVLKPIF.js";var f=d`@layer{.esri-measurement,.esri-coordinate-conversion{width:300px}.instant-apps-measurement-tool__hide{display:none}}`,w="instant-apps-measurement-tool",s={base:w,hide:`${w}__hide`},r=class extends m{constructor(){super(...arguments),this._measureElement=o(),this._coordinateElement=o()}static{this.properties={view:0,measureConfiguration:0,activeTool:1}}static{this.styles=f}static{this.shadowRootOptions=l}async load(){await this._initModules()}willUpdate(e){e.has("activeTool")&&this._setActiveTool(this.activeTool)}loaded(){this._init()}disconnectedCallback(){super.disconnectedCallback(),this._measureWidget?.destroy(),this._coordinateWidget?.destroy()}async _initModules(){let[e,t,i]=await Promise.all([g(),u(),_()]);this.Measurement=e,this.CoordinateConversion=t,this.Conversion=i}async _init(){await this._initMeasurementWidget(),await this._initCoordinateWidget()}async _initMeasurementWidget(){this.view&&this._measureElement&&!this._measureWidget&&(this._measureWidget=await C({view:this.view,container:this._measureElement.value,...this.measureConfiguration}),this.measureConfiguration.activeToolType&&this._setActiveTool(this.measureConfiguration.activeToolType))}_setActiveTool(e){let t=this.view.type;this._measureWidget?.clear(),this._coordinateElement.value?.classList.add(s.hide),e==="distance"&&this._measureWidget?this._measureWidget.activeTool=t==="2d"?"distance":"direct-line":e==="area"&&this._measureWidget?this._measureWidget.activeTool="area":e==="point"&&this._coordinateElement.value?.classList?.remove(s.hide);let i=this.el.getRootNode().querySelector(`calcite-action[data-value="${e}"]`);i&&i.setFocus()}async _initCoordinateWidget(){let{activeToolType:e,coordinateFormat:t}=this.measureConfiguration;if(this?.view&&this._coordinateElement&&!this._coordinateWidget&&(this._coordinateWidget=await v({view:this.view,storageEnabled:!1,container:this._coordinateElement.value}),t!=null)){let i=this._coordinateWidget.formats.find(W=>W.name===t);this._coordinateWidget?.conversions?.splice(0,0,await p({format:i}))}e!=null&&this._setActiveTool(e)}render(){return c`<div class=${n(s.base)}><div ${a(this._measureElement)}></div><div class=${n(s.hide)} ${a(this._coordinateElement)}></div></div>`}};h("instant-apps-measurement-tool",r);export{r as InstantAppsMeasurementTool};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250908 */
4
- import{a as r}from"./2SG24VII.js";import"./7SH6KXAJ.js";import"./I5D4NJGN.js";import"./AB7BIIHQ.js";import"./OUFYZ74E.js";import"./YGC4V7RU.js";import"./WJIW2D7Z.js";import"./PBBIDYVA.js";import"./5J4ZNVOW.js";import"./VHHGIKYZ.js";import"./3TLPMHF3.js";import"./NRNFX3Q4.js";import"./JF5W5A65.js";import"./GGPG4RVY.js";import"./X5TNUDEG.js";import"./456Y4EGY.js";import"./37BBANOV.js";import"./JPIRNN2N.js";import"./2LCQAFSS.js";import"./GDMEJW64.js";import"./5IZN54A6.js";import"./XIPFEKDP.js";import"./XUWWPPHZ.js";import{a as c}from"./UQY3SGBU.js";import"./HMMDD7CR.js";import"./QNDWNLA7.js";import{b as n}from"./3NC6K7MW.js";import{E as l,H as a,h as s,i,r as o}from"./FNN76R5R.js";import"./7YAHT6JK.js";var b=s`@layer{/** @license
3
+ v1.1.0-next.20250908.2 */
4
+ import{a as r}from"./XQEOSPV4.js";import"./4MOVGYFM.js";import"./VNMJW3CI.js";import"./AUVXOD7P.js";import"./NB3Z4FW4.js";import"./HAELZEDD.js";import"./4IIKQT2Z.js";import"./A5TLI7HV.js";import"./SGMTUNEV.js";import"./NFLFZFIX.js";import"./Q5IO7NTP.js";import"./LKMJQ3YW.js";import"./S3T7N7DA.js";import"./Q545KRB5.js";import"./KF5NLO6S.js";import"./6H6QJXB6.js";import"./UVUBTUO4.js";import"./L7WUPFJF.js";import"./LZGKF7IS.js";import"./5RRSUACB.js";import"./G5POA4RR.js";import"./E5W5E3E7.js";import"./CLLAXRJR.js";import{a as c}from"./RFM74GX4.js";import"./KGFVY55W.js";import"./TWQK2H5U.js";import{b as n}from"./EJ7QGZ7R.js";import{E as l,H as a,h as s,i,r as o}from"./V73HEDAJ.js";import"./KQVLKPIF.js";var b=s`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250908 */
4
- import"./7YAHT6JK.js";var e="Sie verf\xFCgen nicht \xFCber gen\xFCgend Credits, um diesen Vorgang auszuf\xFChren. Wenden Sie sich an den ArcGIS-Systemadministrator.",r="Dieses Werkzeug wurde \xFCber ein Notebook ver\xF6ffentlicht. Zugriff auf ArcGIS\xA0Notebooks ist in Ihrer Organisation blockiert. Wenden Sie sich an den Administrator, um die Einstellung anzupassen.",n="${ dataPath } darf nicht ${ additionalProperty } aufweisen.",i="${ dataPath } muss mit einem der folgenden Schemas \xFCbereinstimmen: ${ schemaOptions }.",a="Speichern Sie die Karte erneut.",t="Credit-Sch\xE4tzung fehlgeschlagen. F\xFChren Sie einen Bildlauf nach unten durch, korrigieren Sie die Fehler, und lassen Sie die Credits erneut sch\xE4tzen.",s="Bei Ausf\xFChrung der Analyse ist ein Fehler aufgetreten.",l="${ dataPath } muss einem der folgenden zul\xE4ssigen Werte entsprechen: ${ allowedValues }.",o="Fehler beim Speichern des Analyseverlaufs",d="Der Verlaufsspeicher ist voll. Entfernen Sie einige Elemente aus dem Analyseverlauf, und speichern Sie erneut.",h="Der Service-Name enth\xE4lt mindestens ein ung\xFCltiges Zeichen.",u="Das Speichern des tempor\xE4ren Layers als gehosteten Feature-Layer wurde nicht abgeschlossen.",c="Fehler beim Abrufen der Schl\xFCsseleigenschaften.",m="Fehler beim Laden des Layers.",g="Layer ist nicht verf\xFCgbar.",f="${ dataPath } darf nicht mehr als ${ limit } Elemente enthalten.",S="Fehler beim Speichern des Modells. Versuchen Sie noch einmal zu speichern.",b="${ dataPath } darf nicht weniger als ${ limit } Elemente enthalten.",y="${ dataPath } darf nicht k\xFCrzer als ${ limit } Zeichen sein.",E="Das Modellelement konnte nicht geladen werden. Stellen Sie sicher, dass das Modell vorhanden ist und Ihnen entsprechende Zugriffsberechtigungen gew\xE4hrt wurden.",p="Fehler beim Abschlie\xDFen der Anforderung.",F="Sie sind nicht berechtigt, dieses Werkzeug auszuf\xFChren. <calcite-link target='_blank' href='${ docLink }'>Weitere Informationen</calcite-link>",v="Fehler beim Anmelden beim Portal.",P="Fehler beim Lesen der Eingabedaten.",k="${ dataPath } fehlt eine Eigenschaft mit dem Namen ${ missingProperty }.",L="Ein Ergebnis-Layer mit diesem Namen ist bereits vorhanden. Ergebnis-Layer m\xFCssen innerhalb der Organisation \xFCber einen eindeutigen Namen verf\xFCgen. Verwenden Sie einen anderen Namen.",I="Der Ausgabename enth\xE4lt mindestens ein ung\xFCltiges Zeichen. <a href='${docLink}' target='_blank'>Mehr erfahren</a>",$="Beim Ver\xF6ffentlichen des tempor\xE4ren Layers als gehosteten Layer ist ein Fehler aufgetreten, da mindestens ein Feld ung\xFCltig ist. F\xFChren Sie das Werkzeug erneut aus, um einen Layer mit g\xFCltigen Feldern zu erstellen.",A="Auftrags\xFCbermittlung fehlgeschlagen. F\xFChren Sie einen Bildlauf nach unten durch, korrigieren Sie die Fehler, und f\xFChren Sie die Analyse erneut aus.",N="${ dataPath } muss mindestens ein Zeichen enthalten, bei dem es sich nicht um ein Leerstellenzeichen handelt.",w={InsufficientCreditsError:e,accessBlocked:r,additionalProperty:n,anyOfValues:i,cannotWriteToItemResource:a,creditEstimationError:t,defaultError:s,enumValues:l,failedToSaveHistory:o,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:h,hostedFeatureServicePublishDidNotComplete:u,keyPropertiesError:c,layerLoadFailure:m,layerUnavailable:g,maxItems:f,mbFailedToSave:S,minItems:b,minLength:y,modelNotFound:E,networkError:p,noPermissionToAccessTool:F,portalLoadError:v,queryFeaturesError:P,requiredProperty:k,serviceNameExistsError:L,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:$,toolValidationError:A,whiteSpacePattern:N};export{e as InsufficientCreditsError,r as accessBlocked,n as additionalProperty,i as anyOfValues,a as cannotWriteToItemResource,t as creditEstimationError,w as default,s as defaultError,l as enumValues,o as failedToSaveHistory,d as fullSessionStorage,h as hostedFeatureServiceInvalidTitle,u as hostedFeatureServicePublishDidNotComplete,c as keyPropertiesError,m as layerLoadFailure,g as layerUnavailable,f as maxItems,S as mbFailedToSave,b as minItems,y as minLength,E as modelNotFound,p as networkError,F as noPermissionToAccessTool,v as portalLoadError,P as queryFeaturesError,k as requiredProperty,L as serviceNameExistsError,I as specialCharactersInServiceNameError,$ as temporaryLayerFieldsError,A as toolValidationError,N as whiteSpacePattern};
3
+ v1.1.0-next.20250908.2 */
4
+ import"./KQVLKPIF.js";var e="Sie verf\xFCgen nicht \xFCber gen\xFCgend Credits, um diesen Vorgang auszuf\xFChren. Wenden Sie sich an den ArcGIS-Systemadministrator.",r="Dieses Werkzeug wurde \xFCber ein Notebook ver\xF6ffentlicht. Zugriff auf ArcGIS\xA0Notebooks ist in Ihrer Organisation blockiert. Wenden Sie sich an den Administrator, um die Einstellung anzupassen.",n="${ dataPath } darf nicht ${ additionalProperty } aufweisen.",i="${ dataPath } muss mit einem der folgenden Schemas \xFCbereinstimmen: ${ schemaOptions }.",a="Speichern Sie die Karte erneut.",t="Credit-Sch\xE4tzung fehlgeschlagen. F\xFChren Sie einen Bildlauf nach unten durch, korrigieren Sie die Fehler, und lassen Sie die Credits erneut sch\xE4tzen.",s="Bei Ausf\xFChrung der Analyse ist ein Fehler aufgetreten.",l="${ dataPath } muss einem der folgenden zul\xE4ssigen Werte entsprechen: ${ allowedValues }.",o="Fehler beim Speichern des Analyseverlaufs",d="Der Verlaufsspeicher ist voll. Entfernen Sie einige Elemente aus dem Analyseverlauf, und speichern Sie erneut.",h="Der Service-Name enth\xE4lt mindestens ein ung\xFCltiges Zeichen.",u="Das Speichern des tempor\xE4ren Layers als gehosteten Feature-Layer wurde nicht abgeschlossen.",c="Fehler beim Abrufen der Schl\xFCsseleigenschaften.",m="Fehler beim Laden des Layers.",g="Layer ist nicht verf\xFCgbar.",f="${ dataPath } darf nicht mehr als ${ limit } Elemente enthalten.",S="Fehler beim Speichern des Modells. Versuchen Sie noch einmal zu speichern.",b="${ dataPath } darf nicht weniger als ${ limit } Elemente enthalten.",y="${ dataPath } darf nicht k\xFCrzer als ${ limit } Zeichen sein.",E="Das Modellelement konnte nicht geladen werden. Stellen Sie sicher, dass das Modell vorhanden ist und Ihnen entsprechende Zugriffsberechtigungen gew\xE4hrt wurden.",p="Fehler beim Abschlie\xDFen der Anforderung.",F="Sie sind nicht berechtigt, dieses Werkzeug auszuf\xFChren. <calcite-link target='_blank' href='${ docLink }'>Weitere Informationen</calcite-link>",v="Fehler beim Anmelden beim Portal.",P="Fehler beim Lesen der Eingabedaten.",k="${ dataPath } fehlt eine Eigenschaft mit dem Namen ${ missingProperty }.",L="Ein Ergebnis-Layer mit diesem Namen ist bereits vorhanden. Ergebnis-Layer m\xFCssen innerhalb der Organisation \xFCber einen eindeutigen Namen verf\xFCgen. Verwenden Sie einen anderen Namen.",I="Der Ausgabename enth\xE4lt mindestens ein ung\xFCltiges Zeichen. <a href='${docLink}' target='_blank'>Mehr erfahren</a>",$="Beim Ver\xF6ffentlichen des tempor\xE4ren Layers als gehosteten Layer ist ein Fehler aufgetreten, da mindestens ein Feld ung\xFCltig ist. F\xFChren Sie das Werkzeug erneut aus, um einen Layer mit g\xFCltigen Feldern zu erstellen.",A="Auftrags\xFCbermittlung fehlgeschlagen. F\xFChren Sie einen Bildlauf nach unten durch, korrigieren Sie die Fehler, und f\xFChren Sie die Analyse erneut aus.",N="${ dataPath } muss mindestens ein Zeichen enthalten, bei dem es sich nicht um ein Leerstellenzeichen handelt.",w={InsufficientCreditsError:e,accessBlocked:r,additionalProperty:n,anyOfValues:i,cannotWriteToItemResource:a,creditEstimationError:t,defaultError:s,enumValues:l,failedToSaveHistory:o,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:h,hostedFeatureServicePublishDidNotComplete:u,keyPropertiesError:c,layerLoadFailure:m,layerUnavailable:g,maxItems:f,mbFailedToSave:S,minItems:b,minLength:y,modelNotFound:E,networkError:p,noPermissionToAccessTool:F,portalLoadError:v,queryFeaturesError:P,requiredProperty:k,serviceNameExistsError:L,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:$,toolValidationError:A,whiteSpacePattern:N};export{e as InsufficientCreditsError,r as accessBlocked,n as additionalProperty,i as anyOfValues,a as cannotWriteToItemResource,t as creditEstimationError,w as default,s as defaultError,l as enumValues,o as failedToSaveHistory,d as fullSessionStorage,h as hostedFeatureServiceInvalidTitle,u as hostedFeatureServicePublishDidNotComplete,c as keyPropertiesError,m as layerLoadFailure,g as layerUnavailable,f as maxItems,S as mbFailedToSave,b as minItems,y as minLength,E as modelNotFound,p as networkError,F as noPermissionToAccessTool,v as portalLoadError,P as queryFeaturesError,k as requiredProperty,L as serviceNameExistsError,I as specialCharactersInServiceNameError,$ as temporaryLayerFieldsError,A as toolValidationError,N as whiteSpacePattern};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250908 */
4
- import{a as n}from"./B73F322M.js";import{a as o}from"./NNO4JY7G.js";import{a as m}from"./SPDUDQGT.js";import"./3TLPMHF3.js";import"./NRNFX3Q4.js";import"./JF5W5A65.js";import"./GGPG4RVY.js";import"./456Y4EGY.js";import{a as s}from"./R6KDCWWX.js";import{a as i}from"./LJMJ4DLL.js";import"./37BBANOV.js";import"./JPIRNN2N.js";import"./2LCQAFSS.js";import"./GDMEJW64.js";import"./5IZN54A6.js";import{b as r}from"./OPDYFAD7.js";import"./WHJW5ATS.js";import"./JTYXIV2M.js";import"./XIPFEKDP.js";import"./4ZJTUJWW.js";import"./RNU6NMH5.js";import"./VQLOYI55.js";import"./XPNUQPK6.js";import"./RKKDKWIA.js";import"./SOMRBE5O.js";import"./5HMQFNST.js";import"./IHGM3BFU.js";import"./7EJOBL6M.js";import"./5LDNQQNR.js";import"./BZ7AO5QO.js";import"./UGOHDWSP.js";import"./WYLFDTO7.js";import"./PJZQETQP.js";import"./RSM2TX5F.js";import"./S56W6PPT.js";import"./JJXCNC6C.js";import"./HC6CRLSF.js";import"./CPUMQI3V.js";import"./7YAHT6JK.js";var p=(e,l)=>["myContent","organization"].map(d=>{let a=o("initiativeTemplate.fields.recommendedTemplates",d,"item",{user:e});return a.collections=[c(l)],a}),c=e=>({targetEntity:"item",key:"recommendedTemplates",label:`${e}.fields.recommendedTemplates.collection.label`,scope:{targetEntity:"item",filters:[{predicates:[{type:"Solution"}]},{predicates:[{typekeywords:["hubSolutionTemplate"]},{typekeywords:["Template"]}],operation:"OR"}]}});var k=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{type:"Control",scope:"/properties/name",labelKey:`${e}.fields.name.label`,options:{messages:[{type:r.error,keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.name.maxLengthError"},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{type:"Control",scope:"/properties/summary",labelKey:`${e}.fields.summary.label`,options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...m(e,l.thumbnail,n(l),"initiativeTemplate",t.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{type:"Control",scope:"/properties/description",labelKey:`${e}.fields.description.label`,options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await i(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await s(e,t)]}]},{type:"Section",labelKey:`${e}.sections.templateDetails.label`,elements:[{type:"Control",scope:"/properties/previewUrl",labelKey:`${e}.fields.previewUrl.label`,options:{helperText:{labelKey:`${e}.fields.previewUrl.helperText`},messages:[{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{type:"Control",scope:"/properties/recommendedTemplates",labelKey:`${e}.fields.recommendedTemplates.label`,options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:p(t.currentUser,e),facets:[{label:`{{${e}.fields.recommendedTemplates.facets.sharing:translate}}`,key:"access",field:"access",display:"multi-select",operation:"OR"}],canReorder:!1,linkTarget:"siteRelative",pickerTitle:{labelKey:`${e}.fields.recommendedTemplates.pickerTitle`}}}]}]});export{k as buildUiSchema};
3
+ v1.1.0-next.20250908.2 */
4
+ import{a as n}from"./3E5OTPX6.js";import{a as o}from"./2PHA2RR3.js";import{a as m}from"./D43T65NC.js";import"./Q5IO7NTP.js";import"./LKMJQ3YW.js";import"./S3T7N7DA.js";import"./Q545KRB5.js";import"./6H6QJXB6.js";import{a as s}from"./VPZ2K5TH.js";import{a as i}from"./BDUUCAXJ.js";import"./UVUBTUO4.js";import"./L7WUPFJF.js";import"./LZGKF7IS.js";import"./5RRSUACB.js";import"./G5POA4RR.js";import{b as r}from"./UACJ72WF.js";import"./CT747PXL.js";import"./4UKCGS2Z.js";import"./E5W5E3E7.js";import"./5XYKVRIP.js";import"./NB2JAMZK.js";import"./VVSDZBVF.js";import"./5TWNGSBV.js";import"./B6SZ2TVS.js";import"./VODXCEWB.js";import"./X7T77XTR.js";import"./OAEPAELK.js";import"./HWTE2YHA.js";import"./SEMCD2QW.js";import"./A5LJZWZM.js";import"./ST7UGI4F.js";import"./XOTH737L.js";import"./TDIA3KFT.js";import"./VTDUJQK2.js";import"./OMXNDY5V.js";import"./SPTRX6PO.js";import"./OU4M2QGI.js";import"./XA3O53V3.js";import"./KQVLKPIF.js";var p=(e,l)=>["myContent","organization"].map(d=>{let a=o("initiativeTemplate.fields.recommendedTemplates",d,"item",{user:e});return a.collections=[c(l)],a}),c=e=>({targetEntity:"item",key:"recommendedTemplates",label:`${e}.fields.recommendedTemplates.collection.label`,scope:{targetEntity:"item",filters:[{predicates:[{type:"Solution"}]},{predicates:[{typekeywords:["hubSolutionTemplate"]},{typekeywords:["Template"]}],operation:"OR"}]}});var k=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{type:"Control",scope:"/properties/name",labelKey:`${e}.fields.name.label`,options:{messages:[{type:r.error,keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.name.maxLengthError"},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{type:"Control",scope:"/properties/summary",labelKey:`${e}.fields.summary.label`,options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...m(e,l.thumbnail,n(l),"initiativeTemplate",t.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{type:"Control",scope:"/properties/description",labelKey:`${e}.fields.description.label`,options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await i(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await s(e,t)]}]},{type:"Section",labelKey:`${e}.sections.templateDetails.label`,elements:[{type:"Control",scope:"/properties/previewUrl",labelKey:`${e}.fields.previewUrl.label`,options:{helperText:{labelKey:`${e}.fields.previewUrl.helperText`},messages:[{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{type:"Control",scope:"/properties/recommendedTemplates",labelKey:`${e}.fields.recommendedTemplates.label`,options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:p(t.currentUser,e),facets:[{label:`{{${e}.fields.recommendedTemplates.facets.sharing:translate}}`,key:"access",field:"access",display:"multi-select",operation:"OR"}],canReorder:!1,linkTarget:"siteRelative",pickerTitle:{labelKey:`${e}.fields.recommendedTemplates.pickerTitle`}}}]}]});export{k as buildUiSchema};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250908 */
4
- import{b as g,e as m}from"./A5DHZQ2K.js";import{a as u}from"./UQY3SGBU.js";import"./HMMDD7CR.js";import"./QNDWNLA7.js";import{b as h}from"./3NC6K7MW.js";import{C as s,E as p,h as c,i as t,o as d}from"./FNN76R5R.js";import"./7YAHT6JK.js";var v=c`/** @license
3
+ v1.1.0-next.20250908.2 */
4
+ import{b as g,e as m}from"./EOMKZ65F.js";import{a as u}from"./RFM74GX4.js";import"./KGFVY55W.js";import"./TWQK2H5U.js";import{b as p}from"./EJ7QGZ7R.js";import{C as s,E as h,h as c,i as t,o as d}from"./V73HEDAJ.js";import"./KQVLKPIF.js";var v=c`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,4 +15,4 @@ import{b as g,e as m}from"./A5DHZQ2K.js";import{a as u}from"./UQY3SGBU.js";impor
15
15
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
- */.minor-card{width:16%}.center{justify-content:center;align-items:center}.align-self-center{align-self:center}.font-weight-semibold{font-weight:var(--calcite-font-weight-semibold)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.icon-color{color:var(--calcite-color-text-3)}.font-weight-normal{font-weight:var(--calcite-font-weight-normal)}.font-weight-medium{font-weight:var(--calcite-font-weight-medium)}.no-space{--calcite-label-margin-bottom: 0px}.font-color{color:red}.padding-end-1-2{padding-inline-end:.5rem}.padding-end-1{padding-inline-end:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.edit-button-position{position:absolute;right:1rem}html[dir=rtl] .edit-button-position{position:absolute;left:1rem}.max-width-35{max-width:35vw}.large-card{width:49%}.btn-center{width:100%;display:grid;place-items:center}.width-full{width:100%}.align-items-start{align-items:start}.font-size-override{--calcite-font-size--2: var(--calcite-font-size--1)}.width-400{width:400px}.width-450{width:450px}.padding-3-4{padding:.75rem}.margin-0{margin:0}.calcite-internal-dialog-content-padding-override{--calcite-internal-dialog-content-padding: 0px}.background-color-2{background-color:var(--calcite-color-foreground-2)}.card-group-padding,.solution-content-padding{padding:1rem}@media (max-width: 1240px){.large-card{width:48%}}.error-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.button-flex{display:flex;flex-wrap:wrap}.label-override{--calcite-label-margin-bottom: 0px}.icon-size-override{height:48px;width:48px}`,l=165,o=class extends p{constructor(){super(...arguments),this.open=!1,this.showSuccessAlert=!1,this.templateInfos=[],this._configureTitlesOpen=!1,this._deleteDialogOpen=!1,this._displayClass="",this._isNameConflict=!1,this._invalidNameMessage="",this._showFailedAlert=!1,this._showItemUpdateLoading=!1,this._translations=u({name:"solution-configure-dialog",blocking:!0}),this._authContextConsumer=g({context:m,subscribe:!0}),this._editSummaryPopoverRef=s(),this._editNamePopoverRef=s(),this._solutionSnippetUpdated=!1,this._solutionTitleUpdated=!1,this.solutionConfigureDialogClose=d()}static{this.properties={card:0,cardRef:1,open:5,showSuccessAlert:5,templateInfos:0,_configureTitlesOpen:16,_deleteDialogOpen:16,_displayClass:16,_isNameConflict:16,_invalidNameMessage:16,_showFailedAlert:16,_showItemUpdateLoading:16,_translations:16}}static{this.styles=v}updated(e){if(e.has("open")){let i=e.get("open");this.open&&!i&&this.cardRef.getTemplates().then(a=>{this.templateInfos=a})}}render(){return t`<div>${this.templateInfos.length>0&&t`<calcite-dialog class=${`${this._displayClass} calcite-internal-dialog-content-padding-override`} .heading=${this.card?.title} modal @calciteDialogClose=${()=>{this.open=!1,this.solutionConfigureDialogClose.emit(this._solutionSnippetUpdated||this._solutionTitleUpdated),this._cleanupPanel(),this.card=void 0,this.templateInfos=[],this.showSuccessAlert=!1}} .open=${this.open} outside-close-disabled width=l><div class="display-flex flex-direction-column"><div class="display-flex flex-direction-row card-group-padding background-color-2"><calcite-card-group .label=${this._translations.reviewAndConfigureSolution}>${this._getStartHereCard()}${this._getDiagramCard()}${this._getSolutionCard()}${this._getSolutionVersionCard()}</calcite-card-group></div>${this._getSolutionContents()}</div><div slot=footer-start></div><calcite-button appearance=outline @click=${this._close} slot=footer-end>${this._translations.closeTheDialog}</calcite-button><div slot=alerts>${this._getSuccessAlert()}${this._getFailedAlert()}</div></calcite-dialog>`||""}${this.templateInfos.length>0&&this._getConfigureTitlesDialog()||""}${this.templateInfos.length>0&&this._getDeleteDialog()||""}</div>`}_getConfigureTitlesDialog(){return this._configureTitlesOpen?t`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${()=>{this._displayClass="",this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this.templateInfos=await this.cardRef.getTemplates()}} .open=${this._configureTitlesOpen} .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_getFailedAlert(){let e=this._failedType==="snippet"?this._translations.failedToUpdateSnippet:this._failedType==="title"?this._translations.failedToUpdateTitle:this._failedType==="titles"?this._translations.failedToUpdateTitles:void 0;return this._showFailedAlert&&e?t`<calcite-alert auto-close icon=exclamation-mark-triangle kind=danger .label=${e} @calciteAlertClose=${()=>{this._showFailedAlert=!1}} .open=${this._showFailedAlert}><div slot=message>${e}</div></calcite-alert>`:""}_getSuccessAlert(){return this.showSuccessAlert?t`<calcite-alert auto-close icon=check-circle kind=success .label=${this.card?.title||""} @calciteAlertClose=${()=>{this.showSuccessAlert=!1}} .open=${this.showSuccessAlert}><div slot=message>${this._translations.deploySuccessAlert.replace("{{solutionTitle}}",this.card?.title||"")}</div></calcite-alert>`:""}_getDiagramCard(){return this._getBasicCard(this._translations.diagramOfTheSolution,this._translations.diagramSubText,"model",this._translations.viewTheDiagram,"outline",this._openDiagram,void 0)}async _openDiagram(e){this._displayClass="display-none";let i=await this.cardRef.renderDiagramDialog(e);i&&this.listenOn(i,"calciteDialogBeforeClose",()=>{this._displayClass=""})}_getStartHereCard(){return this._getBasicCard(this._translations.startHere,this._translations.startHereSubText,"file-text",this._translations.openInNewTab,"solid",this._learnMore)}_learnMore(){window.open(this.card.learnMoreUrl,"_blank")}_getSolutionVersionCard(){return this._getBasicCard(this._translations.solutionVersion,"","check-shield",void 0,void 0,void 0,this.card?.deployVersion??"")}_getBasicCard(e,i,a,n,f,_,r){return t`<calcite-card class="minor-card font-size-override"><calcite-label class="font-weight-medium label-override" layout=inline scale=l slot=heading>${e}</calcite-label><div class="display-flex center"><div class="display-flex flex-direction-column center"><calcite-icon class="icon-color icon-size-override" .icon=${a} scale=l></calcite-icon>${r?t`<span class="font-weight-medium">${r}</span>`:""}<p class="font-weight-medium">${i}</p></div></div>${n?t`<div class="btn-center" slot=footer-start><calcite-button .appearance=${f} kind=brand @click=${_}>${n}</calcite-button></div>`:""}</calcite-card>`}_getSolutionCard(){let e="configure-show-full-summary",i=this.card?.snippet,a="";return this.card?.snippet&&this.card?.snippet.length>l&&(i=this.card?.snippet.substring(0,l)+"... ",a=t`<calcite-link id=${e}>${this._translations.showMoreSummary}</calcite-link>`),t`<calcite-card class="large-card font-size-override"><calcite-label class="font-weight-medium label-override" layout=inline scale=l slot=heading>${this._translations.aboutYourSolution}</calcite-label><div class="display-flex flex-direction-column"><div class="display-flex align-items-start padding-bottom-1-2"><calcite-label class="font-weight-medium no-space padding-end-1-2" layout=inline>${this._translations.aboutYourSolutionName}</calcite-label><span class="font-weight-medium width-full align-self-start">${this.card?.title}</span></div><div class="display-flex align-items-start padding-bottom-1-2"><calcite-label class="font-weight-medium no-space padding-end-1-2" layout=inline>${this._translations.aboutYourSolutionSummary}</calcite-label><span class="font-weight-medium width-full align-self-center">${i}${a}</span></div><div class="display-flex"><calcite-label class="font-weight-medium no-space padding-end-1" layout=inline>${this._translations.aboutYourSolutionOwner}<calcite-link class="font-weight-normal" @click=${this._openUserProfile}>${this.card?.owner}</calcite-link></calcite-label><div class="display-flex"><calcite-label class="no-space icon-color" layout=inline><calcite-icon class="icon-color" icon=projects scale=s></calcite-icon>${this.card?.created}</calcite-label></div></div></div><div slot=footer-start class="button-flex"><calcite-button appearance=outline class="padding-end-1" icon-start=share kind=brand @click=${this._showItemDetails}>${this._translations.itemDetails}</calcite-button><calcite-button appearance=transparent icon-start=trash kind=neutral @click=${this._deleteSolution} slot=footer-end>${this._translations.deleteSolution}</calcite-button></div>${this.card?.snippet&&this.card?.snippet.length>l&&this._getSummaryPopover(e)||""}</calcite-card>`}_getSolutionContents(){return t`<div class="solution-content-padding"><calcite-label class="font-weight-medium" layout=inline scale=l>${this._translations.solutionsContentsAndCount.replace("{{numberOfSolutions}}",this.templateInfos.length.toString())}<calcite-button appearance=transparent icon-start=pencil kind=brand @click=${()=>{this._configureTitlesOpen=!0,this._displayClass="display-none"}}>${this._translations.updateTitles}</calcite-button></calcite-label><solution-item-accordion list-selection-mode=single .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords}></solution-item-accordion></div>`}_getDeleteDialog(){return this._deleteDialogOpen?t`<solution-delete-dialog .card=${this.card} @solutionDeleted=${this._close} @solutionDeleteDialogBeforeClose=${()=>{this._displayClass="",this._deleteDialogOpen=!1}} .open=${this._deleteDialogOpen}></solution-delete-dialog>`:""}async _deleteSolution(){this._displayClass="display-none",this._deleteDialogOpen=!0}_showItemDetails(){window.open(this.card.itemUrl,"_blank")}_openUserProfile(e){e.stopPropagation();let i=this._authContextConsumer.value?.PortalSubset?.orgUrl;i&&window.open(`${i}/home/user.html`,"_blank")}_getSummaryPopover(e){return t`<calcite-popover closable heading label overlay-positioning=fixed .referenceElement=${e}><div class="padding-3-4 margin-0 width-400">${this.card?.snippet}</div></calcite-popover>`}_close(){this.open=!1}_cleanupPanel(){this._editSummaryPopoverRef.value?.open&&(this._editSummaryPopoverRef.value.open=!1),this._editNamePopoverRef.value?.open&&(this._editNamePopoverRef.value.open=!1)}};h("solution-configure-dialog",o);export{o as SolutionConfigureDialog};
18
+ */.minor-card{width:16%}.center{justify-content:center;align-items:center}.align-self-center{align-self:center}.font-weight-semibold{font-weight:var(--calcite-font-weight-semibold)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.icon-color{color:var(--calcite-color-text-3)}.font-weight-normal{font-weight:var(--calcite-font-weight-normal)}.font-weight-medium{font-weight:var(--calcite-font-weight-medium)}.no-space{--calcite-label-margin-bottom: 0px}.font-color{color:red}.padding-end-1-2{padding-inline-end:.5rem}.padding-end-1{padding-inline-end:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.edit-button-position{position:absolute;right:1rem}html[dir=rtl] .edit-button-position{position:absolute;left:1rem}.max-width-35{max-width:35vw}.large-card{width:49%}.btn-center{width:100%;display:grid;place-items:center}.width-full{width:100%}.align-items-start{align-items:start}.font-size-override{--calcite-font-size--2: var(--calcite-font-size--1)}.width-400{width:400px}.width-450{width:450px}.padding-3-4{padding:.75rem}.margin-0{margin:0}.calcite-internal-dialog-content-padding-override{--calcite-internal-dialog-content-padding: 0px}.background-color-2{background-color:var(--calcite-color-foreground-2)}.card-group-padding,.solution-content-padding{padding:1rem}@media (max-width: 1240px){.large-card{width:48%}}.error-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.button-flex{display:flex;flex-wrap:wrap}.label-override{--calcite-label-margin-bottom: 0px}.icon-size-override{height:48px;width:48px}`,l=165,o=class extends h{constructor(){super(...arguments),this.open=!1,this.showSuccessAlert=!1,this.templateInfos=[],this._configureTitlesOpen=!1,this._deleteDialogOpen=!1,this._displayClass="",this._isNameConflict=!1,this._invalidNameMessage="",this._showFailedAlert=!1,this._showItemUpdateLoading=!1,this._translations=u({name:"solution-configure-dialog",blocking:!0}),this._authContextConsumer=g({context:m,subscribe:!0}),this._editSummaryPopoverRef=s(),this._editNamePopoverRef=s(),this._solutionSnippetUpdated=!1,this._solutionTitleUpdated=!1,this.solutionConfigureDialogClose=d()}static{this.properties={card:0,cardRef:1,open:5,showSuccessAlert:5,templateInfos:0,_configureTitlesOpen:16,_deleteDialogOpen:16,_displayClass:16,_isNameConflict:16,_invalidNameMessage:16,_showFailedAlert:16,_showItemUpdateLoading:16,_translations:16}}static{this.styles=v}updated(e){if(e.has("open")){let i=e.get("open");this.open&&!i&&this.cardRef.getTemplates().then(a=>{this.templateInfos=a})}}render(){return t`<div>${this.templateInfos.length>0&&t`<calcite-dialog class=${`${this._displayClass} calcite-internal-dialog-content-padding-override`} .heading=${this.card?.title} modal @calciteDialogClose=${()=>{this.open=!1,this.solutionConfigureDialogClose.emit(this._solutionSnippetUpdated||this._solutionTitleUpdated),this._cleanupPanel(),this.card=void 0,this.templateInfos=[],this.showSuccessAlert=!1}} .open=${this.open} outside-close-disabled width=l><div class="display-flex flex-direction-column"><div class="display-flex flex-direction-row card-group-padding background-color-2"><calcite-card-group .label=${this._translations.reviewAndConfigureSolution}>${this._getStartHereCard()}${this._getDiagramCard()}${this._getSolutionCard()}${this._getSolutionVersionCard()}</calcite-card-group></div>${this._getSolutionContents()}</div><div slot=footer-start></div><calcite-button appearance=outline @click=${this._close} slot=footer-end>${this._translations.closeTheDialog}</calcite-button><div slot=alerts>${this._getSuccessAlert()}${this._getFailedAlert()}</div></calcite-dialog>`||""}${this.templateInfos.length>0&&this._getConfigureTitlesDialog()||""}${this.templateInfos.length>0&&this._getDeleteDialog()||""}</div>`}_getConfigureTitlesDialog(){return this._configureTitlesOpen?t`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${()=>{this._displayClass="",this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this.templateInfos=await this.cardRef.getTemplates()}} .open=${this._configureTitlesOpen} .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_getFailedAlert(){let e=this._failedType==="snippet"?this._translations.failedToUpdateSnippet:this._failedType==="title"?this._translations.failedToUpdateTitle:this._failedType==="titles"?this._translations.failedToUpdateTitles:void 0;return this._showFailedAlert&&e?t`<calcite-alert auto-close icon=exclamation-mark-triangle kind=danger .label=${e} @calciteAlertClose=${()=>{this._showFailedAlert=!1}} .open=${this._showFailedAlert}><div slot=message>${e}</div></calcite-alert>`:""}_getSuccessAlert(){return this.showSuccessAlert?t`<calcite-alert auto-close icon=check-circle kind=success .label=${this.card?.title||""} @calciteAlertClose=${()=>{this.showSuccessAlert=!1}} .open=${this.showSuccessAlert}><div slot=message>${this._translations.deploySuccessAlert.replace("{{solutionTitle}}",this.card?.title||"")}</div></calcite-alert>`:""}_getDiagramCard(){return this._getBasicCard(this._translations.diagramOfTheSolution,this._translations.diagramSubText,"model",this._translations.viewTheDiagram,"outline",this._openDiagram,void 0)}async _openDiagram(e){this._displayClass="display-none";let i=await this.cardRef.renderDiagramDialog(e);i&&this.listenOn(i,"calciteDialogBeforeClose",()=>{this._displayClass=""})}_getStartHereCard(){return this._getBasicCard(this._translations.startHere,this._translations.startHereSubText,"file-text",this._translations.openInNewTab,"solid",this._learnMore)}_learnMore(){window.open(this.card.learnMoreUrl,"_blank")}_getSolutionVersionCard(){return this._getBasicCard(this._translations.solutionVersion,"","check-shield",void 0,void 0,void 0,this.card?.deployVersion??"")}_getBasicCard(e,i,a,n,f,_,r){return t`<calcite-card class="minor-card font-size-override"><calcite-label class="font-weight-medium label-override" layout=inline scale=l slot=heading>${e}</calcite-label><div class="display-flex center"><div class="display-flex flex-direction-column center"><calcite-icon class="icon-color icon-size-override" .icon=${a} scale=l></calcite-icon>${r?t`<span class="font-weight-medium">${r}</span>`:""}<p class="font-weight-medium">${i}</p></div></div>${n?t`<div class="btn-center" slot=footer-start><calcite-button .appearance=${f} kind=brand @click=${_}>${n}</calcite-button></div>`:""}</calcite-card>`}_getSolutionCard(){let e="configure-show-full-summary",i=this.card?.snippet,a="";return this.card?.snippet&&this.card?.snippet.length>l&&(i=this.card?.snippet.substring(0,l)+"... ",a=t`<calcite-link id=${e}>${this._translations.showMoreSummary}</calcite-link>`),t`<calcite-card class="large-card font-size-override"><calcite-label class="font-weight-medium label-override" layout=inline scale=l slot=heading>${this._translations.aboutYourSolution}</calcite-label><div class="display-flex flex-direction-column"><div class="display-flex align-items-start padding-bottom-1-2"><calcite-label class="font-weight-medium no-space padding-end-1-2" layout=inline>${this._translations.aboutYourSolutionName}</calcite-label><span class="font-weight-medium width-full align-self-start">${this.card?.title}</span></div><div class="display-flex align-items-start padding-bottom-1-2"><calcite-label class="font-weight-medium no-space padding-end-1-2" layout=inline>${this._translations.aboutYourSolutionSummary}</calcite-label><span class="font-weight-medium width-full align-self-center">${i}${a}</span></div><div class="display-flex"><calcite-label class="font-weight-medium no-space padding-end-1" layout=inline>${this._translations.aboutYourSolutionOwner}<calcite-link class="font-weight-normal" @click=${this._openUserProfile}>${this.card?.owner}</calcite-link></calcite-label><div class="display-flex"><calcite-label class="no-space icon-color" layout=inline><calcite-icon class="icon-color" icon=projects scale=s></calcite-icon>${this.card?.created}</calcite-label></div></div></div><div slot=footer-start class="button-flex"><calcite-button appearance=outline class="padding-end-1" icon-end=launch kind=brand @click=${this._showItemDetails}>${this._translations.itemDetails}</calcite-button><calcite-button appearance=transparent icon-start=trash kind=neutral @click=${this._deleteSolution} slot=footer-end>${this._translations.deleteSolution}</calcite-button></div>${this.card?.snippet&&this.card?.snippet.length>l&&this._getSummaryPopover(e)||""}</calcite-card>`}_getSolutionContents(){return t`<div class="solution-content-padding"><calcite-label class="font-weight-medium" layout=inline scale=l>${this._translations.solutionsContentsAndCount.replace("{{numberOfSolutions}}",this.templateInfos.length.toString())}<calcite-button appearance=transparent icon-start=edit-attributes kind=brand @click=${()=>{this._configureTitlesOpen=!0,this._displayClass="display-none"}}>${this._translations.updateTitles}</calcite-button></calcite-label><solution-item-accordion list-selection-mode=single .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords}></solution-item-accordion></div>`}_getDeleteDialog(){return this._deleteDialogOpen?t`<solution-delete-dialog .card=${this.card} @solutionDeleted=${this._close} @solutionDeleteDialogBeforeClose=${()=>{this._displayClass="",this._deleteDialogOpen=!1}} .open=${this._deleteDialogOpen}></solution-delete-dialog>`:""}async _deleteSolution(){this._displayClass="display-none",this._deleteDialogOpen=!0}_showItemDetails(){window.open(this.card.itemUrl,"_blank")}_openUserProfile(e){e.stopPropagation();let i=this._authContextConsumer.value?.PortalSubset?.orgUrl;i&&window.open(`${i}/home/user.html`,"_blank")}_getSummaryPopover(e){return t`<calcite-popover closable heading label overlay-positioning=fixed .referenceElement=${e}><div class="padding-3-4 margin-0 width-400">${this.card?.snippet}</div></calcite-popover>`}_close(){this.open=!1}_cleanupPanel(){this._editSummaryPopoverRef.value?.open&&(this._editSummaryPopoverRef.value.open=!1),this._editNamePopoverRef.value?.open&&(this._editNamePopoverRef.value.open=!1)}};p("solution-configure-dialog",o);export{o as SolutionConfigureDialog};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250908 */
4
- import{d as m,e as c,f as d,g as f,n as C}from"./FNN76R5R.js";var P=t=>(...p)=>{let s=c(),e=new t(...p),o=e.exports;m(s.at(-1));let n=e.component.manager;n.W(e,o),e.watchExports(n.W.bind(n,e)),d(e);let r=[e.component,...s].reverse();return C(r,a=>a===void 0?void 0:E(e,a,o),o)},E=(t,{host:p,key:s,isReactive:e},o)=>{let n=p,r=n[s]!==t.exports,a=n[s]!==o,g=o!==t.exports;if(r&&!a&&g&&(n[s]=t.exports),p===t.component){if(e){let i=t.component.manager;a&&i.W(t,n[s]),t.onUpdate(v=>{if(v.has(s)){let x=n[s];x!==t.exports&&i.W(t,x)}})}t.O=e?void 0:s}let h=t.component.constructor.elementProperties.get(s)?.readOnly;t.watchExports(()=>{n[s]!==t.exports&&(h?f(()=>{n[s]=t.exports}):n[s]=t.exports)})};export{P as a};
3
+ v1.1.0-next.20250908.2 */
4
+ import{d as m,e as c,f as d,g as f,n as C}from"./V73HEDAJ.js";var P=t=>(...p)=>{let s=c(),e=new t(...p),o=e.exports;m(s.at(-1));let n=e.component.manager;n.W(e,o),e.watchExports(n.W.bind(n,e)),d(e);let r=[e.component,...s].reverse();return C(r,a=>a===void 0?void 0:E(e,a,o),o)},E=(t,{host:p,key:s,isReactive:e},o)=>{let n=p,r=n[s]!==t.exports,a=n[s]!==o,g=o!==t.exports;if(r&&!a&&g&&(n[s]=t.exports),p===t.component){if(e){let i=t.component.manager;a&&i.W(t,n[s]),t.onUpdate(v=>{if(v.has(s)){let x=n[s];x!==t.exports&&i.W(t,x)}})}t.O=e?void 0:s}let h=t.component.constructor.elementProperties.get(s)?.readOnly;t.watchExports(()=>{n[s]!==t.exports&&(h?f(()=>{n[s]=t.exports}):n[s]=t.exports)})};export{P as a};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250908 */
4
- import{b,d as y}from"./A5DHZQ2K.js";import{a as g}from"./SKNBIQFA.js";import{a as f}from"./UQY3SGBU.js";import"./HMMDD7CR.js";import"./QNDWNLA7.js";import{b as u}from"./3NC6K7MW.js";import{C as n,D as c,E as d,G as p,H as l,I as h,h as r,i,o as s}from"./FNN76R5R.js";import"./7YAHT6JK.js";var _=r`/** @license
3
+ v1.1.0-next.20250908.2 */
4
+ import{b,d as y}from"./EOMKZ65F.js";import{a as g}from"./FVMCW63I.js";import{a as f}from"./RFM74GX4.js";import"./KGFVY55W.js";import"./TWQK2H5U.js";import{b as u}from"./EJ7QGZ7R.js";import{C as n,D as c,E as d,G as p,H as l,I as h,h as r,i,o as s}from"./V73HEDAJ.js";import"./KQVLKPIF.js";var _=r`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250908 */
4
- import{a as t}from"./2Q7C43LH.js";import{s as e}from"./FNN76R5R.js";var o=e(t,{"instant-apps-app-guide":[()=>import("./D4F6OW2A.js"),"data:,header"],"instant-apps-buffer-tool":[()=>import("./V3OWCEBV.js").then(m=>m.default.then(e=>({InstantAppsBufferTool:e}))),"bufferDistance,bufferInputStep,bufferLayer:,bufferMaxDistance,bufferMinDistance,bufferUnit,disabled,geodesicBufferEnabled,inputLayer:,readyToBuffer,view:;clearBufferLayer"],"instant-apps-control-panel":[()=>import("./KO62RUX2.js"),"components:,view:"],"instant-apps-create":[()=>import("./BLPGQHCS.js"),"content:,mode,options:,popoverIcon,popoverPlacement,popoverPositioning,portal:,showHeader"],"instant-apps-export":[()=>import("./OWJBNQ6G.js"),"allowedFileTypes:,beforeExport:,defaultFileType,extraContent:,extraContentLabel,headerTitle,includeExtraContent,includeFileFormat,includeLegend,includeMap,includePopup,logoAltText,logoImage,maskBackground,maskBorder,mode,output:,popoverIcon,popoverPlacement,popoverPositioning,scale,showExtraContentInImg,showHeaderTitle,showIncludeLegend,showIncludeMap,showIncludePopup,showScaleBar,view:"],"instant-apps-export-views":[()=>import("./7KSE2E55.js"),"beforeExport:,exportViews:,includeHeader,includeLegend,includeMap,includePopup,mode,output:,popoverIcon,popoverPlacement,popoverPositioning,scale,showIncludeHeader,showIncludeLegend,showIncludeMap,showIncludePopup,showScaleBar"],"instant-apps-filter-list":[()=>import("./46ZSK3KI.js"),"autoUpdateUrl,closeBtn,closeBtnOnClick:,closeBtnText,comboboxOverlayPositioning,extentSelector,extentSelectorConfig:,filterCount,layerExpressions:,openFilters,resetBtn,resetFiltersOnDisconnect,urlParams:,view:,zoomBtn;forceReset,getCurrentLayerExpressions,getFilterInitState,handleUpdatingT9nData,updateInitDefExpressions"],"instant-apps-header":[()=>import("./USCMVULI.js"),"backgroundColor,customHeaderCss,customHeaderHtml,fontFamily,headerAlignment,infoButton,infoIsOpen,infoTitleText,logoImage,logoImageAltText,logoLink,logoScale,mobileWidthBreakpoint,textColor,titleText,titleTextLink;toggleInfo"],"instant-apps-interactive-legend":[()=>import("./7KOTU5ML.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegend:e}))),"compact,featureCount,filterMode:,view:,zoomTo"],"instant-apps-interactive-legend-classic":[()=>import("./GA66LQ5B.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendClassic:e}))),"featureCount,filterMode:,legendvm:,messages:,zoomTo"],"instant-apps-interactive-legend-count":[()=>import("./X3RQKWFQ.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendCount:e}))),"activeLayerInfo:,categoryId,infoIndex,legendElement:,legendvm:,selected,showTotal"],"instant-apps-interactive-legend-group-legend-element":[()=>import("./EX2WAU5C.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendGroupLegendElement:e}))),"activeLayerInfo:,featureCount,isChild,legendvm:"],"instant-apps-interactive-legend-group-legend-element-caption":[()=>import("./3Y54W3MS.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendGroupLegendElementCaption:e}))),"activeLayerInfo:,expanded,featureCount,isChild,legendvm:"],"instant-apps-interactive-legend-layer-element":[()=>import("./7BIU5SOL.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendLayerElement:e}))),"activeLayerInfo:,featureCount,isChild,legendvm:"],"instant-apps-interactive-legend-layer-element-caption":[()=>import("./4YZV6MYT.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendLayerElementCaption:e}))),"activeLayerInfo:,expanded,featureCount,isChild,legendvm:"],"instant-apps-interactive-legend-legend-element":[()=>import("./6EJK7JMX.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendLegendElement:e}))),"activeLayerInfo:,isChild,isColorRamp,isInteractive,isRelationshipRamp,isSizeRamp,legendElement:,legendElementIndex,legendvm:,titleText,zoomTo"],"instant-apps-interactive-legend-legend-element-caption":[()=>import("./WPB4LXWL.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendLegendElementCaption:e}))),"activeLayerInfo:,expanded,isInteractive,layer:,legendElement:,legendElementIndex,legendvm:,titleText,zoomTo"],"instant-apps-interactive-legend-relationship":[()=>import("./ZS32ZCBO.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendRelationship:e}))),"activeLayerInfo:,filterMode:,legendElement:"],"instant-apps-keyboard-shortcuts":[()=>import("./OUAPSZPB.js"),"view:"],"instant-apps-landing-page":[()=>import("./5PU7RU5P.js"),"alignment:,backgroundImageSrc,descriptionText,disableTransition,enableSignIn,entryButtonScale,entryButtonText,fontFamily,iconImage,iconImageAltText,iconImageScale,oauthappid,open,portal:,subtitleText,titleText"],"instant-apps-language-switcher":[()=>import("./3EGLZ7ME.js"),"calciteDropdownOverlayPositioning,defaultLocale,icon,locales:,portalItem:,selectedLanguage,view:;refresh"],"instant-apps-language-translator":[()=>import("./W73ITGL2.js").then(m=>m.default.then(e=>({InstantAppsLanguageTranslator:e}))),"appSettings:,locales:,open,portalItem:,translatedLocaleInputOnChangeCallback:,userLocaleInputOnChangeCallback:;batchWriteToPortalItemResource,getPortalItemResource,getTranslationData,setTranslationData"],"instant-apps-ckeditor-wrapper":[()=>import("./AQDXWCMS.js"),"config:,editorInstance:,value"],"instant-apps-language-translator-item":[()=>import("./TY2DDBSI.js").then(m=>m.default.then(e=>({InstantAppsLanguageTranslatorItem:e}))),"fieldName,setting:,translatedLanguageLabels:,translatedLocaleInputOnChangeCallback:,userLocaleInputOnChangeCallback:"],"instant-apps-language-translator-search":[()=>import("./WGZZW32V.js").then(m=>m.default.then(e=>({InstantAppsLanguageTranslatorSearch:e}))),"t9nPlaceholder"],"instant-apps-measurement":[()=>import("./AMADRUBA.js"),"activeToolType,areaUnit,closable,coordinateFormat,linearUnit,view:"],"instant-apps-measurement-tool":[()=>import("./FQ36XLKQ.js"),"activeTool,measureConfiguration:,view:"],"instant-apps-popover":[()=>import("./MZK3O6RZ.js"),"content,disableAction,imgAlt,imgSrc,index,mediaSrc,messageOverrides:,pagination,parent:,placement,popoverAction:,popoverTitle,referenceElement,refId,subtitle"],"instant-apps-popovers":[()=>import("./LRBEEXPC.js"),"beforeOpen:,currentId,instantAppsPopovers:,inTour;beginTour,close,done,endTour,next,open,previous"],"instant-apps-scoreboard":[()=>import("./2WIZSKHX.js"),"autoDockEnabled,geometry:,itemLimit,items:,mode:,position:,queryType,view:"],"instant-apps-sign-in":[()=>import("./XDZU2O77.js"),"closeLandingPage:,landingPage,oauthappid,openInPopup,portal:,showIndicator,signInPopoverItems:,type"],"instant-apps-social-share":[()=>import("./UGSRDH2A.js"),"autoUpdateShareUrl,defaultUrlParams:,displayTipText,embed,flipRtl,iframeInnerText,inlineSuccessPopoverPlacement,isNativeShareEnabled,mode,popoverButtonIconScale,popoverPositioning,removePopoverOffset,scale,shareButtonColor,shareButtonScale,shareButtonType,shareIconsLayout,shareText,shareUrl,shortenShareUrl,socialMedia,successMessage,useNativeShare,view:"],"instant-apps-splash":[()=>import("./LKSNL3SX.js"),"closeButtonDisabled,content,localStorageKey,open,outsideCloseDisabled,primaryButtonText,secondaryButton,secondaryButtonCallback:,secondaryButtonIcon,secondaryButtonText,titleText"],"instant-apps-time-filter":[()=>import("./LNXDUZBH.js").then(m=>m.default.then(e=>({InstantAppsTimeFilter:e}))),"autoPlay,filterMode:,timeInfoConfigItems:,timeSliderConfig:,view:"]});export{o as a};
3
+ v1.1.0-next.20250908.2 */
4
+ import{a as t}from"./RIJY3CGU.js";import{s as e}from"./V73HEDAJ.js";var o=e(t,{"instant-apps-app-guide":[()=>import("./Q42SUBLZ.js"),"data:,header"],"instant-apps-buffer-tool":[()=>import("./ODTVVNRE.js").then(m=>m.default.then(e=>({InstantAppsBufferTool:e}))),"bufferDistance,bufferInputStep,bufferLayer:,bufferMaxDistance,bufferMinDistance,bufferUnit,disabled,geodesicBufferEnabled,inputLayer:,readyToBuffer,view:;clearBufferLayer"],"instant-apps-control-panel":[()=>import("./A3A52PZV.js"),"components:,view:"],"instant-apps-create":[()=>import("./PP4CRVWY.js"),"content:,mode,options:,popoverIcon,popoverPlacement,popoverPositioning,portal:,showHeader"],"instant-apps-export":[()=>import("./AWZOCRLD.js"),"allowedFileTypes:,beforeExport:,defaultFileType,extraContent:,extraContentLabel,headerTitle,includeExtraContent,includeFileFormat,includeLegend,includeMap,includePopup,logoAltText,logoImage,maskBackground,maskBorder,mode,output:,popoverIcon,popoverPlacement,popoverPositioning,scale,showExtraContentInImg,showHeaderTitle,showIncludeLegend,showIncludeMap,showIncludePopup,showScaleBar,view:"],"instant-apps-export-views":[()=>import("./F5BTNSWR.js"),"beforeExport:,exportViews:,includeHeader,includeLegend,includeMap,includePopup,mode,output:,popoverIcon,popoverPlacement,popoverPositioning,scale,showIncludeHeader,showIncludeLegend,showIncludeMap,showIncludePopup,showScaleBar"],"instant-apps-filter-list":[()=>import("./THROCNEA.js"),"autoUpdateUrl,closeBtn,closeBtnOnClick:,closeBtnText,comboboxOverlayPositioning,extentSelector,extentSelectorConfig:,filterCount,layerExpressions:,openFilters,resetBtn,resetFiltersOnDisconnect,urlParams:,view:,zoomBtn;forceReset,getCurrentLayerExpressions,getFilterInitState,handleUpdatingT9nData,updateInitDefExpressions"],"instant-apps-header":[()=>import("./XFKEV2FE.js"),"backgroundColor,customHeaderCss,customHeaderHtml,fontFamily,headerAlignment,infoButton,infoIsOpen,infoTitleText,logoImage,logoImageAltText,logoLink,logoScale,mobileWidthBreakpoint,textColor,titleText,titleTextLink;toggleInfo"],"instant-apps-interactive-legend":[()=>import("./MPDGXIFC.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegend:e}))),"compact,featureCount,filterMode:,view:,zoomTo"],"instant-apps-interactive-legend-classic":[()=>import("./TJD2VIYY.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendClassic:e}))),"featureCount,filterMode:,legendvm:,messages:,zoomTo"],"instant-apps-interactive-legend-count":[()=>import("./YSTW4NKH.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendCount:e}))),"activeLayerInfo:,categoryId,infoIndex,legendElement:,legendvm:,selected,showTotal"],"instant-apps-interactive-legend-group-legend-element":[()=>import("./OWKVAGJY.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendGroupLegendElement:e}))),"activeLayerInfo:,featureCount,isChild,legendvm:"],"instant-apps-interactive-legend-group-legend-element-caption":[()=>import("./SEPSM67O.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendGroupLegendElementCaption:e}))),"activeLayerInfo:,expanded,featureCount,isChild,legendvm:"],"instant-apps-interactive-legend-layer-element":[()=>import("./CSP64T2W.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendLayerElement:e}))),"activeLayerInfo:,featureCount,isChild,legendvm:"],"instant-apps-interactive-legend-layer-element-caption":[()=>import("./M7PTBKBM.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendLayerElementCaption:e}))),"activeLayerInfo:,expanded,featureCount,isChild,legendvm:"],"instant-apps-interactive-legend-legend-element":[()=>import("./BCT3U2LS.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendLegendElement:e}))),"activeLayerInfo:,isChild,isColorRamp,isInteractive,isRelationshipRamp,isSizeRamp,legendElement:,legendElementIndex,legendvm:,titleText,zoomTo"],"instant-apps-interactive-legend-legend-element-caption":[()=>import("./YZWKFVGD.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendLegendElementCaption:e}))),"activeLayerInfo:,expanded,isInteractive,layer:,legendElement:,legendElementIndex,legendvm:,titleText,zoomTo"],"instant-apps-interactive-legend-relationship":[()=>import("./T2ES3UJ6.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendRelationship:e}))),"activeLayerInfo:,filterMode:,legendElement:"],"instant-apps-keyboard-shortcuts":[()=>import("./KYZ3QRKE.js"),"view:"],"instant-apps-landing-page":[()=>import("./ZQUZ7T2P.js"),"alignment:,backgroundImageSrc,descriptionText,disableTransition,enableSignIn,entryButtonScale,entryButtonText,fontFamily,iconImage,iconImageAltText,iconImageScale,oauthappid,open,portal:,subtitleText,titleText"],"instant-apps-language-switcher":[()=>import("./ITDANTJC.js"),"calciteDropdownOverlayPositioning,defaultLocale,icon,locales:,portalItem:,selectedLanguage,view:;refresh"],"instant-apps-language-translator":[()=>import("./7SGINLMJ.js").then(m=>m.default.then(e=>({InstantAppsLanguageTranslator:e}))),"appSettings:,locales:,open,portalItem:,translatedLocaleInputOnChangeCallback:,userLocaleInputOnChangeCallback:;batchWriteToPortalItemResource,getPortalItemResource,getTranslationData,setTranslationData"],"instant-apps-ckeditor-wrapper":[()=>import("./HBFLP377.js"),"config:,editorInstance:,value"],"instant-apps-language-translator-item":[()=>import("./ZSM3J7FY.js").then(m=>m.default.then(e=>({InstantAppsLanguageTranslatorItem:e}))),"fieldName,setting:,translatedLanguageLabels:,translatedLocaleInputOnChangeCallback:,userLocaleInputOnChangeCallback:"],"instant-apps-language-translator-search":[()=>import("./AHZBQEXF.js").then(m=>m.default.then(e=>({InstantAppsLanguageTranslatorSearch:e}))),"t9nPlaceholder"],"instant-apps-measurement":[()=>import("./XNR6WNZB.js"),"activeToolType,areaUnit,closable,coordinateFormat,linearUnit,view:"],"instant-apps-measurement-tool":[()=>import("./TKXQSYHZ.js"),"activeTool,measureConfiguration:,view:"],"instant-apps-popover":[()=>import("./MTQFGNVQ.js"),"content,disableAction,imgAlt,imgSrc,index,mediaSrc,messageOverrides:,pagination,parent:,placement,popoverAction:,popoverTitle,referenceElement,refId,subtitle"],"instant-apps-popovers":[()=>import("./L3LKNBOT.js"),"beforeOpen:,currentId,instantAppsPopovers:,inTour;beginTour,close,done,endTour,next,open,previous"],"instant-apps-scoreboard":[()=>import("./SDHL4N2C.js"),"autoDockEnabled,geometry:,itemLimit,items:,mode:,position:,queryType,view:"],"instant-apps-sign-in":[()=>import("./PZJBPUNR.js"),"closeLandingPage:,landingPage,oauthappid,openInPopup,portal:,showIndicator,signInPopoverItems:,type"],"instant-apps-social-share":[()=>import("./PCWB57HO.js"),"autoUpdateShareUrl,defaultUrlParams:,displayTipText,embed,flipRtl,iframeInnerText,inlineSuccessPopoverPlacement,isNativeShareEnabled,mode,popoverButtonIconScale,popoverPositioning,removePopoverOffset,scale,shareButtonColor,shareButtonScale,shareButtonType,shareIconsLayout,shareText,shareUrl,shortenShareUrl,socialMedia,successMessage,useNativeShare,view:"],"instant-apps-splash":[()=>import("./LVHDQRQC.js"),"closeButtonDisabled,content,localStorageKey,open,outsideCloseDisabled,primaryButtonText,secondaryButton,secondaryButtonCallback:,secondaryButtonIcon,secondaryButtonText,titleText"],"instant-apps-time-filter":[()=>import("./YSP7NER3.js").then(m=>m.default.then(e=>({InstantAppsTimeFilter:e}))),"autoPlay,filterMode:,timeInfoConfigItems:,timeSliderConfig:,view:"]});export{o as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250908 */
4
- import{a as v}from"./WHJW5ATS.js";import{a as y}from"./JTYXIV2M.js";import{a as p}from"./4ZJTUJWW.js";import{a as d}from"./RNU6NMH5.js";import{a as E}from"./VQLOYI55.js";import{a as s}from"./XPNUQPK6.js";import{a as n}from"./RKKDKWIA.js";import{a}from"./SOMRBE5O.js";import{a as l}from"./5HMQFNST.js";import{a as e}from"./IHGM3BFU.js";import{a as r}from"./UGOHDWSP.js";import{a as t}from"./WYLFDTO7.js";import{a as i}from"./S56W6PPT.js";var x=[...r,...E,...t,...i,...p,...d,...s,...n,...a,...l,...e,...v,...y],f=["hub:card:stat"],C=["hub:card:follow"],b=["hub:card:eventGallery"],I=[...f,...C,...b],F=[...x,...I],T;(function(o){o.SHOW="SHOW",o.HIDE="HIDE",o.DISABLE="DISABLE",o.ENABLE="ENABLE",o.NONE="",o.RESET="RESET"})(T||(T={}));var c;(function(o){o.section="Section",o.control="Control",o.layout="Layout",o.slot="Slot",o.notice="Notice",o.text="Text"})(c||(c={}));var m;(function(o){o.accordion="accordion",o.accordionItem="accordionItem",o.block="block",o.stepper="stepper",o.step="step",o.subblock="subblock",o.card="card"})(m||(m={}));var u;(function(o){o.error="ERROR",o.success="SUCCESS",o.custom="CUSTOM"})(u||(u={}));export{T as a,u as b};
3
+ v1.1.0-next.20250908.2 */
4
+ import{a as v}from"./CT747PXL.js";import{a as y}from"./4UKCGS2Z.js";import{a as p}from"./5XYKVRIP.js";import{a as d}from"./NB2JAMZK.js";import{a as E}from"./VVSDZBVF.js";import{a as s}from"./5TWNGSBV.js";import{a as n}from"./B6SZ2TVS.js";import{a}from"./VODXCEWB.js";import{a as l}from"./X7T77XTR.js";import{a as e}from"./OAEPAELK.js";import{a as r}from"./ST7UGI4F.js";import{a as t}from"./XOTH737L.js";import{a as i}from"./OMXNDY5V.js";var x=[...r,...E,...t,...i,...p,...d,...s,...n,...a,...l,...e,...v,...y],f=["hub:card:stat"],C=["hub:card:follow"],b=["hub:card:eventGallery"],I=[...f,...C,...b],F=[...x,...I],T;(function(o){o.SHOW="SHOW",o.HIDE="HIDE",o.DISABLE="DISABLE",o.ENABLE="ENABLE",o.NONE="",o.RESET="RESET"})(T||(T={}));var c;(function(o){o.section="Section",o.control="Control",o.layout="Layout",o.slot="Slot",o.notice="Notice",o.text="Text"})(c||(c={}));var m;(function(o){o.accordion="accordion",o.accordionItem="accordionItem",o.block="block",o.stepper="stepper",o.step="step",o.subblock="subblock",o.card="card"})(m||(m={}));var u;(function(o){o.error="ERROR",o.success="SUCCESS",o.custom="CUSTOM"})(u||(u={}));export{T as a,u as b};