@esri/solutions-components 1.0.0-next.20250509 → 1.0.0-next.20250513

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 (417) hide show
  1. package/dist/cdn/{SBBAYIA5.js → 2AE65J7Z.js} +2 -2
  2. package/dist/cdn/{H2PYJODK.js → 2FXMJWEJ.js} +2 -2
  3. package/dist/cdn/{DGJOUZR5.js → 2HQWNDOT.js} +1 -1
  4. package/dist/cdn/{NLKCNLQB.js → 2HW4GV5C.js} +2 -2
  5. package/dist/cdn/{L5MZYQWZ.js → 2LWA3LPI.js} +2 -2
  6. package/dist/cdn/2MC74LFI.js +18 -0
  7. package/dist/cdn/{2X42FQPI.js → 2PNI22UK.js} +2 -2
  8. package/dist/cdn/{ZSNDJE3R.js → 2QX2DZO7.js} +1 -1
  9. package/dist/cdn/{Z6MML6SM.js → 2Y7EB6IS.js} +1 -1
  10. package/dist/cdn/{MEXCWFXO.js → 2ZOPKOQW.js} +2 -2
  11. package/dist/cdn/33R6U7YA.js +18 -0
  12. package/dist/cdn/{XGZPINBJ.js → 356X3OF7.js} +2 -2
  13. package/dist/cdn/{AW6GVVCK.js → 37UTA2CS.js} +2 -2
  14. package/dist/cdn/{NL5SZJG7.js → 3DPLKEDU.js} +2 -2
  15. package/dist/cdn/{TEJLYLG3.js → 3KNYDGE4.js} +2 -2
  16. package/dist/cdn/{OPAFHR65.js → 3P3P323U.js} +2 -2
  17. package/dist/cdn/{CQFOO7QD.js → 3RC2WF5B.js} +1 -1
  18. package/dist/cdn/{7XWBWQ4G.js → 3S3YE7LS.js} +2 -2
  19. package/dist/cdn/{ITBKHXR7.js → 3WNCCUTZ.js} +1 -1
  20. package/dist/cdn/{55Q3UBSS.js → 3WW3YWCT.js} +2 -2
  21. package/dist/cdn/{7Q3MQPSX.js → 3Y5R5IUQ.js} +2 -2
  22. package/dist/cdn/{UB2OSPCQ.js → 4745A7PL.js} +1 -1
  23. package/dist/cdn/47R5RC4C.js +18 -0
  24. package/dist/cdn/{IM7QQB4B.js → 47WHCZIM.js} +2 -2
  25. package/dist/cdn/{5G5LFIDR.js → 4CCXX3SG.js} +2 -2
  26. package/dist/cdn/{VM5WBDOI.js → 4DVIYVRO.js} +2 -2
  27. package/dist/cdn/{PRM3M7W3.js → 4HNFRLEB.js} +2 -2
  28. package/dist/cdn/{MESJIE5F.js → 4M3HYUSJ.js} +2 -2
  29. package/dist/cdn/{XDHR67UO.js → 4SNRICQS.js} +2 -2
  30. package/dist/cdn/{3K5XH7WO.js → 4YGER5QC.js} +1 -1
  31. package/dist/cdn/{XXMXWRAP.js → 4Z3IUDH5.js} +4 -4
  32. package/dist/cdn/{N75HIPXS.js → 4ZM2K4B5.js} +1 -1
  33. package/dist/cdn/{V3V45HIT.js → 536426JP.js} +2 -2
  34. package/dist/cdn/{JDI4Y7XL.js → 53N47Q3X.js} +2 -2
  35. package/dist/cdn/{BKTDSQ5E.js → 55KC257N.js} +2 -2
  36. package/dist/cdn/{IML67XC5.js → 55P3U5JJ.js} +2 -2
  37. package/dist/cdn/{T24JMSJB.js → 5AVYYC47.js} +2 -2
  38. package/dist/cdn/{USCS7ZOZ.js → 5AWXJIBG.js} +2 -2
  39. package/dist/cdn/{RQF4KGJG.js → 5CSQUWE5.js} +2 -2
  40. package/dist/cdn/{PIIFPRWS.js → 5D3XSPVE.js} +2 -2
  41. package/dist/cdn/{7HCBMOJG.js → 5DHQPMEJ.js} +2 -2
  42. package/dist/cdn/{XRAHMMYT.js → 5GI5HKKC.js} +2 -2
  43. package/dist/cdn/{RICWFBVP.js → 5IYB6I37.js} +2 -2
  44. package/dist/cdn/{4YNV3LL5.js → 5RGCCJRI.js} +2 -2
  45. package/dist/cdn/{K7L3LTTD.js → 5RJEQIH2.js} +1 -1
  46. package/dist/cdn/{7UEK3DXM.js → 5XZ2VEVE.js} +2 -2
  47. package/dist/cdn/{SNDF7YMU.js → 6DG3MERJ.js} +2 -2
  48. package/dist/cdn/{MNNNZZVI.js → 6HNT2RSP.js} +2 -2
  49. package/dist/cdn/{5EZJ2DME.js → 6KD4C6OL.js} +2 -2
  50. package/dist/cdn/{GWMI7SRU.js → 6MHBJPS2.js} +2 -2
  51. package/dist/cdn/6QS23BIH.js +18 -0
  52. package/dist/cdn/{OBYUVAOE.js → 6VGFUAX5.js} +2 -2
  53. package/dist/cdn/{J3AZ36S3.js → 72KOOVBA.js} +2 -2
  54. package/dist/cdn/{INDFSGPY.js → 74FUG5XE.js} +2 -2
  55. package/dist/cdn/{5ORSO5QA.js → 7FTLGHTG.js} +2 -2
  56. package/dist/cdn/{WMI6SFI3.js → 7KBEEBMB.js} +2 -2
  57. package/dist/cdn/{35P6UDSV.js → 7KFM4VXO.js} +2 -2
  58. package/dist/cdn/{UPR4UPDN.js → 7KGIY4Y7.js} +2 -2
  59. package/dist/cdn/{5X6XSS3G.js → 7RAJQNDO.js} +2 -2
  60. package/dist/cdn/{PULSXLXV.js → 7VOZDFCU.js} +2 -2
  61. package/dist/cdn/{2SNN45WE.js → 7WDOCGDK.js} +1 -1
  62. package/dist/cdn/{BQTDT2CQ.js → A4AUBCIN.js} +2 -2
  63. package/dist/cdn/{7KQNE4LS.js → A52VN6U6.js} +2 -2
  64. package/dist/cdn/{SJ2L7I4D.js → ACHUFFFB.js} +2 -2
  65. package/dist/cdn/{LZCG3PUX.js → ADVQIEJR.js} +1 -1
  66. package/dist/cdn/{HLQ3GGP4.js → AI3WLROH.js} +2 -2
  67. package/dist/cdn/{PBDY4N37.js → AJYMDWRR.js} +2 -2
  68. package/dist/cdn/{CMUYK6L5.js → ANRR2Q3N.js} +2 -2
  69. package/dist/cdn/{J5DECLUT.js → AT3EMTZF.js} +1 -1
  70. package/dist/cdn/{ZX2WVODB.js → AXEU574G.js} +2 -2
  71. package/dist/cdn/{Z4ZMVS45.js → AYBKCTTB.js} +2 -2
  72. package/dist/cdn/{DMGLXTNG.js → B2634ITV.js} +2 -2
  73. package/dist/cdn/{435C2RXR.js → B33KRB36.js} +2 -2
  74. package/dist/cdn/{2LIN3EFP.js → BMMWWZDP.js} +2 -2
  75. package/dist/cdn/BVAH7X2K.js +18 -0
  76. package/dist/cdn/{VAQQRDFO.js → BZM6QEVQ.js} +1 -1
  77. package/dist/cdn/{OHY2KQUC.js → C44EKR3M.js} +1 -1
  78. package/dist/cdn/{IJWNOINQ.js → CAPUUGJR.js} +2 -2
  79. package/dist/cdn/{424PZHQ5.js → CBMZJGCV.js} +2 -2
  80. package/dist/cdn/{HIYSQGTK.js → CCHSAYV3.js} +2 -2
  81. package/dist/cdn/{6KKLCZH2.js → CDXLLR33.js} +2 -2
  82. package/dist/cdn/{ICLRLVVJ.js → CIQJF5B3.js} +2 -2
  83. package/dist/cdn/{J4DDOYKZ.js → CNU3TPX7.js} +2 -2
  84. package/dist/cdn/{HEFARXFW.js → CTH3ZJDZ.js} +2 -2
  85. package/dist/cdn/{7L3RVANR.js → CUFYPINX.js} +2 -2
  86. package/dist/cdn/{CIN3SN7W.js → CZOWNF5N.js} +2 -2
  87. package/dist/cdn/{N5C5RKHD.js → D2BGUJW5.js} +2 -2
  88. package/dist/cdn/{PUYHWBNK.js → D3DQ3LMO.js} +2 -2
  89. package/dist/cdn/{6N4IY6RI.js → DAC3GWK5.js} +2 -2
  90. package/dist/cdn/{MMZK7VDY.js → DGN5X5A4.js} +2 -2
  91. package/dist/cdn/{XHNH4HWU.js → DHPOWICJ.js} +2 -2
  92. package/dist/cdn/{KAET4R4I.js → DHYYFX2C.js} +1 -1
  93. package/dist/cdn/{M7ALE6KV.js → DVO5GTFT.js} +2 -2
  94. package/dist/cdn/{XQMS45RU.js → E35TDRWG.js} +2 -2
  95. package/dist/cdn/{36OJB33V.js → EDPL4TKI.js} +2 -2
  96. package/dist/cdn/{ZJMDC5EX.js → EE7WJZP4.js} +2 -2
  97. package/dist/cdn/{RZODPKW4.js → EIZMLFHI.js} +1 -1
  98. package/dist/cdn/{5Y63RNHU.js → EOM3X2VQ.js} +2 -2
  99. package/dist/cdn/{SCPTYDM4.js → EOOHBALJ.js} +2 -2
  100. package/dist/cdn/{YL5AS7IP.js → ETTBV6A5.js} +2 -2
  101. package/dist/cdn/{R2HY3OH6.js → EZLMQOSZ.js} +2 -2
  102. package/dist/cdn/{4Y7P3RAH.js → EZUUCYDZ.js} +2 -2
  103. package/dist/cdn/{Z7PAFRTZ.js → F57GZO2E.js} +2 -2
  104. package/dist/cdn/{X4BR4G2Q.js → FDZH3TUO.js} +2 -2
  105. package/dist/cdn/{4AB2653C.js → FIE266AU.js} +2 -2
  106. package/dist/cdn/{GZ5DMBN5.js → FJRGFI2V.js} +1 -1
  107. package/dist/cdn/{7VLWDHRA.js → FLC5VXCW.js} +2 -2
  108. package/dist/cdn/{CPEOHMBH.js → FR5YKIYR.js} +2 -2
  109. package/dist/cdn/{EVSAWS5V.js → FZAZSLYD.js} +2 -2
  110. package/dist/cdn/{QV3YJHLC.js → G2KU4GJD.js} +1 -1
  111. package/dist/cdn/{YJF3FQQW.js → G6RUG3BR.js} +2 -2
  112. package/dist/cdn/{YV2KVYYD.js → GA57AOAH.js} +2 -2
  113. package/dist/cdn/{RA4WYINA.js → GGVX7BU3.js} +2 -2
  114. package/dist/cdn/GHIWQFDY.js +4 -0
  115. package/dist/cdn/{4DMLN7C7.js → GM3ATYLE.js} +1 -1
  116. package/dist/cdn/{EOR6FMKC.js → GMCIGFUB.js} +2 -2
  117. package/dist/cdn/{EFTUD2CV.js → GPUA6MAJ.js} +2 -2
  118. package/dist/cdn/GPW2TCPZ.js +18 -0
  119. package/dist/cdn/{G466QX4L.js → GQU6FXIT.js} +1 -1
  120. package/dist/cdn/{RJDRQW52.js → GRCUUM5W.js} +2 -2
  121. package/dist/cdn/{KPRSMUMQ.js → GSFWKQWQ.js} +2 -2
  122. package/dist/cdn/{U25OTDOD.js → GYXP7WY2.js} +2 -2
  123. package/dist/cdn/{7RMNWPCQ.js → H4ZWRKI2.js} +2 -2
  124. package/dist/cdn/H6UT37EX.js +18 -0
  125. package/dist/cdn/{7XULXHRZ.js → H7Y4URDU.js} +2 -2
  126. package/dist/cdn/{BCXBJG72.js → HHVCX4HB.js} +1 -1
  127. package/dist/cdn/{BPEEKBR7.js → HOLWK3EZ.js} +2 -2
  128. package/dist/cdn/{B4HJBJTA.js → HSCOIXLG.js} +2 -2
  129. package/dist/cdn/{ZSPCCQU2.js → HTWIZOH4.js} +2 -2
  130. package/dist/cdn/{S5WNRS3W.js → HXLDVONX.js} +2 -2
  131. package/dist/cdn/{5EH5ABNA.js → HZFEYQGX.js} +1 -1
  132. package/dist/cdn/{4OGYUVGQ.js → HZIMPHWC.js} +2 -2
  133. package/dist/cdn/{BB4YELWP.js → I5XMZWO6.js} +2 -2
  134. package/dist/cdn/{WRRMV4PI.js → I7UVWQMY.js} +2 -2
  135. package/dist/cdn/{47I7OHHF.js → IDFWZFF5.js} +1 -1
  136. package/dist/cdn/{GNY77HPF.js → IG3I76TX.js} +1 -1
  137. package/dist/cdn/{VPXUKOUC.js → IKBVEVMI.js} +2 -2
  138. package/dist/cdn/{HIIYUUEW.js → IRVZT2BS.js} +2 -2
  139. package/dist/cdn/{4FGMEAIW.js → ISCASEIO.js} +1 -1
  140. package/dist/cdn/{6JI5OXDD.js → IVOSJYWQ.js} +2 -2
  141. package/dist/cdn/{BOJK6ZXD.js → IZGA6GXU.js} +2 -2
  142. package/dist/cdn/{FQOV67VE.js → JBH2RRSE.js} +2 -2
  143. package/dist/cdn/{LPXJI3PA.js → JGPXY5SS.js} +2 -2
  144. package/dist/cdn/{RV3Y5Y43.js → JIJBRLA5.js} +2 -2
  145. package/dist/cdn/{Y4CROHYY.js → JNWG7WSY.js} +2 -2
  146. package/dist/cdn/{P52HFT2R.js → JQV5TGAK.js} +2 -2
  147. package/dist/cdn/{YZGAFNYP.js → JUZCGG5Y.js} +2 -2
  148. package/dist/cdn/JYL4F373.js +4 -0
  149. package/dist/cdn/{BGWVAQHN.js → K4CSMHLX.js} +2 -2
  150. package/dist/cdn/{27QJLMW3.js → K4FMFGHK.js} +2 -2
  151. package/dist/cdn/{SHTM5TBH.js → KBLQQKHW.js} +2 -2
  152. package/dist/cdn/{6QAU4NYR.js → KCDVHUF2.js} +3 -3
  153. package/dist/cdn/{OSPYIY3S.js → KDKKKQOA.js} +2 -2
  154. package/dist/cdn/{UCYU2ZVX.js → KIU22HO4.js} +2 -2
  155. package/dist/cdn/{JUNJFTAF.js → KJGF4NJ3.js} +2 -2
  156. package/dist/cdn/{FSQQ2APB.js → KKSOLSMJ.js} +2 -2
  157. package/dist/cdn/KMJY2PGB.js +18 -0
  158. package/dist/cdn/{FBXVZ63D.js → KP6XEQR7.js} +2 -2
  159. package/dist/cdn/{ICETJ5L7.js → KQVVUDCM.js} +1 -1
  160. package/dist/cdn/{7K7DN72W.js → KUVX4OOK.js} +2 -2
  161. package/dist/cdn/{D2Y2VYAA.js → KVYB56FX.js} +2 -2
  162. package/dist/cdn/{JEOWOFGV.js → L2YHTSUT.js} +2 -2
  163. package/dist/cdn/{UTMLE3SN.js → L46SKXK3.js} +2 -2
  164. package/dist/cdn/{FPGTD47W.js → LBK4TQ4U.js} +2 -2
  165. package/dist/cdn/{JH6EUNS3.js → LH4PUHQS.js} +2 -2
  166. package/dist/cdn/LT2FXISZ.js +4 -0
  167. package/dist/cdn/{3WEGW5NC.js → LZVWOWHQ.js} +2 -2
  168. package/dist/cdn/{OT3XINKN.js → LZXK3MVJ.js} +2 -2
  169. package/dist/cdn/{HRXRBE4J.js → MB76IRBK.js} +2 -2
  170. package/dist/cdn/{VFZGCM33.js → MCIIM4XE.js} +2 -2
  171. package/dist/cdn/{C5NISEHO.js → MEMYGNMH.js} +2 -2
  172. package/dist/cdn/{2452KO7J.js → MFYJYT6Q.js} +2 -2
  173. package/dist/cdn/{RJVJXKOB.js → MGRH7AJX.js} +2 -2
  174. package/dist/cdn/{ECVA54TZ.js → MSCUGG2N.js} +1 -1
  175. package/dist/cdn/{M4AI76NV.js → MXKCH65B.js} +2 -2
  176. package/dist/cdn/MYF2CGM2.js +4 -0
  177. package/dist/cdn/{WVHATRWG.js → MYHI7ROY.js} +2 -2
  178. package/dist/cdn/{OVDKGSOB.js → N73I4LYZ.js} +2 -2
  179. package/dist/cdn/{ARPKSGRG.js → NLQ42NQW.js} +2 -2
  180. package/dist/cdn/{XW5NNESC.js → NYANCYTJ.js} +2 -2
  181. package/dist/cdn/{FXITJZAV.js → OAJSYATY.js} +2 -2
  182. package/dist/cdn/{UQD4DDWQ.js → OBGBZA5Q.js} +2 -2
  183. package/dist/cdn/{A6DMHYOF.js → OMLJWKTW.js} +2 -2
  184. package/dist/cdn/{PNBUAOL6.js → ONIJZZLM.js} +2 -2
  185. package/dist/cdn/{VPZT2JZV.js → OOGXSHWN.js} +2 -2
  186. package/dist/cdn/{EHYAB5QQ.js → OUAPE77Q.js} +2 -2
  187. package/dist/cdn/{BIOS2V5G.js → P4CX5EDN.js} +2 -2
  188. package/dist/cdn/{AXQXIZC6.js → P55AP2OS.js} +2 -2
  189. package/dist/cdn/{3YWY5IJP.js → P5SCKVEP.js} +2 -2
  190. package/dist/cdn/PDEMBJK2.js +18 -0
  191. package/dist/cdn/{E3HGKBP3.js → PJF5G4QB.js} +2 -2
  192. package/dist/cdn/{7UIUIVMT.js → PL3CH3LF.js} +2 -2
  193. package/dist/cdn/{KAPZF4E2.js → PNZ6XBPV.js} +1 -1
  194. package/dist/cdn/{FLPPIESF.js → PPEC24ZV.js} +2 -2
  195. package/dist/cdn/{VDIZRWGH.js → PVMRTOAH.js} +2 -2
  196. package/dist/cdn/{R3UCIE4U.js → PWDTDHPM.js} +1 -1
  197. package/dist/cdn/{D73KUPSF.js → Q5EJXK76.js} +2 -2
  198. package/dist/cdn/{J7OFNHJE.js → QBKMKNGL.js} +2 -2
  199. package/dist/cdn/{WN3VAL43.js → QCF4PYQB.js} +1 -1
  200. package/dist/cdn/{WD2QCZTO.js → QHJVQDMN.js} +2 -2
  201. package/dist/cdn/{TXGHJPP2.js → QIVU3W4F.js} +2 -2
  202. package/dist/cdn/{LECLO3XE.js → QRM36WK6.js} +2 -2
  203. package/dist/cdn/{3TUZLPWH.js → QZVDSGNQ.js} +2 -2
  204. package/dist/cdn/{BY4EXEJG.js → RFSMSYJR.js} +2 -2
  205. package/dist/cdn/{EUPHXLZZ.js → RKUNOYZR.js} +2 -2
  206. package/dist/cdn/{TPTCOLFA.js → RM5MLMA4.js} +2 -2
  207. package/dist/cdn/{U4IEKG5J.js → RN7TUN7E.js} +2 -2
  208. package/dist/cdn/{FARMWJ24.js → RTL6LDYI.js} +2 -2
  209. package/dist/cdn/{MLSL5LI5.js → RVRAGQDC.js} +2 -2
  210. package/dist/cdn/{KBTESCN4.js → RXTELQ34.js} +2 -2
  211. package/dist/cdn/{RCSNQFCR.js → S3WKVRQS.js} +2 -2
  212. package/dist/cdn/{6EA3DB3O.js → S67NXZHK.js} +2 -2
  213. package/dist/cdn/{CD2S6EUP.js → SBDAFL5S.js} +2 -2
  214. package/dist/cdn/{25QPPKFI.js → T4UFIWDF.js} +2 -2
  215. package/dist/cdn/T66Y6KTO.js +18 -0
  216. package/dist/cdn/{C6X2ECYU.js → T6FHHQZJ.js} +2 -2
  217. package/dist/cdn/TD4SVRZ2.js +18 -0
  218. package/dist/cdn/{LXGUGDHR.js → TGLGAJZN.js} +2 -2
  219. package/dist/cdn/{LDD3KF7W.js → TGVDYRKZ.js} +2 -2
  220. package/dist/cdn/{AZHIE3R7.js → TKBHKV5M.js} +2 -2
  221. package/dist/cdn/{4TKVQNTQ.js → TKUGQKMA.js} +3 -3
  222. package/dist/cdn/{S5633QFW.js → TKZBNC7H.js} +2 -2
  223. package/dist/cdn/{NLDJFYI7.js → TSJDIDQQ.js} +2 -2
  224. package/dist/cdn/{OFJCPV4F.js → TV4DZ4NC.js} +2 -2
  225. package/dist/cdn/{ZKLPV256.js → U35AQBWJ.js} +1 -1
  226. package/dist/cdn/{TYTGBM6D.js → U7RXVNQC.js} +1 -1
  227. package/dist/cdn/{SVZ6DPGA.js → UAP5F7JO.js} +2 -2
  228. package/dist/cdn/{67Y5XRJR.js → UDGQW7QL.js} +2 -2
  229. package/dist/cdn/{WO4T5EBB.js → UJSCHQIP.js} +2 -2
  230. package/dist/cdn/{SAK5E7EM.js → UKMHZ5PP.js} +2 -2
  231. package/dist/cdn/{HT5EDB5V.js → ULVBGZTW.js} +2 -2
  232. package/dist/cdn/{HVVFJDSU.js → UOCWAIF5.js} +2 -2
  233. package/dist/cdn/URRXFKCL.js +4 -0
  234. package/dist/cdn/{HZSTATBW.js → USMPDRTK.js} +2 -2
  235. package/dist/cdn/{J4VSSVNP.js → UVBA6JNL.js} +1 -1
  236. package/dist/cdn/{6YD2XRHQ.js → V3NOQ3VR.js} +2 -2
  237. package/dist/cdn/{JBUFFKQ4.js → V6UTV55V.js} +1 -1
  238. package/dist/cdn/{CHZ5YCRR.js → VAP272QY.js} +2 -2
  239. package/dist/cdn/VGXJDR76.js +18 -0
  240. package/dist/cdn/{CN4P5DTP.js → VLGVIKZ6.js} +2 -2
  241. package/dist/cdn/{BIRQOSZD.js → VOCP45SC.js} +2 -2
  242. package/dist/cdn/{PKFNJGIN.js → VPPRTR4I.js} +2 -2
  243. package/dist/cdn/{SDDCOLSE.js → VQKEDTWW.js} +2 -2
  244. package/dist/cdn/{Y5WPDAVU.js → VTJTEDJC.js} +2 -2
  245. package/dist/cdn/{4BCMHRMT.js → W4QVPEC6.js} +1 -1
  246. package/dist/cdn/{MHO2Y7KN.js → WAHZ4BJA.js} +2 -2
  247. package/dist/cdn/{V2TJSNNS.js → WBDBLEC7.js} +2 -2
  248. package/dist/cdn/{HBOTGKBU.js → WCAYMKQP.js} +2 -2
  249. package/dist/cdn/{XRNUZ7HG.js → WKBQVMT4.js} +2 -2
  250. package/dist/cdn/{C2KBDSIZ.js → WUWWLJEX.js} +1 -1
  251. package/dist/cdn/{62J73NXR.js → WUYLVJC7.js} +2 -2
  252. package/dist/cdn/{T5ZHBVTX.js → X5NCT7SI.js} +1 -1
  253. package/dist/cdn/{N5VOILQX.js → XI6U7JLE.js} +2 -2
  254. package/dist/cdn/{T5R3QU6B.js → XISA6SLB.js} +2 -2
  255. package/dist/cdn/{JZMP2SNN.js → XJOAEUHQ.js} +2 -2
  256. package/dist/cdn/XMB335P2.js +4 -0
  257. package/dist/cdn/XOTJKE5D.js +4 -0
  258. package/dist/cdn/{YNA4CMIX.js → XV6244HK.js} +2 -2
  259. package/dist/cdn/{LKUFS2W4.js → XW3XMCXE.js} +2 -2
  260. package/dist/cdn/{DWRH76JT.js → XZS545IF.js} +2 -2
  261. package/dist/cdn/{2VIYUPNY.js → YFTL66BW.js} +2 -2
  262. package/dist/cdn/{WFKJMOI2.js → YMECWXNY.js} +2 -2
  263. package/dist/cdn/{VY6VKUBS.js → YNLSAEFB.js} +2 -2
  264. package/dist/cdn/YQNWPVUQ.js +4 -0
  265. package/dist/cdn/{6EY4X2IO.js → YRLQIYDY.js} +2 -2
  266. package/dist/cdn/{XDCTTW2D.js → YWPX2AWZ.js} +2 -2
  267. package/dist/cdn/{IKUXIIBQ.js → ZADWIJ7Q.js} +2 -2
  268. package/dist/cdn/{YZON6FQX.js → ZIJGSIAY.js} +1 -1
  269. package/dist/cdn/{2Q5FUL4Y.js → ZSVGZTYI.js} +2 -2
  270. package/dist/cdn/{F5K2FGR2.js → ZVRPCQAG.js} +1 -1
  271. package/dist/cdn/ZXAG7K3F.js +4 -0
  272. package/dist/cdn/assets/selection-tool/t9n/messages.en.json +1 -0
  273. package/dist/cdn/assets/selection-tool/t9n/messages.json +1 -0
  274. package/dist/cdn/assets/solution-deploy-panel/t9n/messages.en.json +1 -0
  275. package/dist/cdn/assets/solution-deploy-panel/t9n/messages.json +1 -0
  276. package/dist/cdn/assets/solution-snapshot-gallery/t9n/messages.en.json +1 -0
  277. package/dist/cdn/assets/solution-snapshot-gallery/t9n/messages.json +1 -0
  278. package/dist/cdn/index.js +2 -2
  279. package/dist/chunks/common.js +1 -1
  280. package/dist/chunks/downloadUtils.js +1 -1
  281. package/dist/chunks/index.js +1 -1
  282. package/dist/chunks/interfaces.js +1 -1
  283. package/dist/chunks/loadModules.js +1 -1
  284. package/dist/chunks/mapViewUtils.js +19 -15
  285. package/dist/chunks/pciUtils.js +1 -1
  286. package/dist/chunks/popupUtils.js +1 -1
  287. package/dist/chunks/publicNotificationStore.js +1 -1
  288. package/dist/chunks/queryUtils.js +1 -1
  289. package/dist/chunks/runtime.js +1 -1
  290. package/dist/chunks/solution-store.js +1 -1
  291. package/dist/chunks/templates.js +1 -1
  292. package/dist/chunks/useT9n.js +1 -1
  293. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  294. package/dist/components/basemap-gallery/customElement.js +1 -1
  295. package/dist/components/buffer-tools/customElement.js +1 -1
  296. package/dist/components/card-manager/customElement.d.ts +5 -2
  297. package/dist/components/card-manager/customElement.js +24 -20
  298. package/dist/components/consent-manager/customElement.js +1 -1
  299. package/dist/components/create-feature/customElement.js +1 -1
  300. package/dist/components/create-related-feature/customElement.js +1 -1
  301. package/dist/components/crowdsource-manager/customElement.d.ts +12 -0
  302. package/dist/components/crowdsource-manager/customElement.js +51 -43
  303. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  304. package/dist/components/deduct-calculator/customElement.js +1 -1
  305. package/dist/components/delete-button/customElement.js +1 -1
  306. package/dist/components/delete-dialog/customElement.js +9 -9
  307. package/dist/components/edit-card/customElement.js +14 -11
  308. package/dist/components/feature-details/customElement.js +1 -1
  309. package/dist/components/feature-list/customElement.js +1 -1
  310. package/dist/components/field-selection/customElement.js +3 -3
  311. package/dist/components/floor-filter/customElement.js +1 -1
  312. package/dist/components/info-card/customElement.js +1 -1
  313. package/dist/components/json-editor/customElement.js +1 -1
  314. package/dist/components/layer-list/customElement.js +1 -1
  315. package/dist/components/layer-table/customElement.d.ts +11 -1
  316. package/dist/components/layer-table/customElement.js +267 -148
  317. package/dist/components/layer-table/index.d.ts +3 -2
  318. package/dist/components/layer-table/index.js +3 -2
  319. package/dist/components/map-card/customElement.d.ts +7 -1
  320. package/dist/components/map-card/customElement.js +16 -16
  321. package/dist/components/map-draw-tools/customElement.js +1 -1
  322. package/dist/components/map-fullscreen/customElement.js +1 -1
  323. package/dist/components/map-layer-picker/customElement.d.ts +1 -1
  324. package/dist/components/map-layer-picker/customElement.js +14 -14
  325. package/dist/components/map-legend/customElement.js +1 -1
  326. package/dist/components/map-picker/customElement.js +3 -3
  327. package/dist/components/map-search/customElement.js +1 -1
  328. package/dist/components/map-select-tools/customElement.js +1 -1
  329. package/dist/components/map-tools/customElement.d.ts +13 -1
  330. package/dist/components/map-tools/customElement.js +25 -18
  331. package/dist/components/map-tools/index.d.ts +1 -0
  332. package/dist/components/map-tools/index.js +1 -0
  333. package/dist/components/pci-calculator/customElement.js +1 -1
  334. package/dist/components/pdf-download/customElement.js +1 -1
  335. package/dist/components/public-notification/customElement.js +1 -1
  336. package/dist/components/refine-selection/customElement.js +1 -1
  337. package/dist/components/selection-tool/customElement.d.ts +33 -0
  338. package/dist/components/selection-tool/customElement.js +96 -0
  339. package/dist/components/selection-tool/index.d.ts +1 -0
  340. package/dist/components/selection-tool/index.js +1 -0
  341. package/dist/components/{solution-arcticle-card → solution-article-card}/customElement.d.ts +1 -1
  342. package/dist/components/{solution-arcticle-card → solution-article-card}/customElement.js +5 -5
  343. package/dist/components/solution-configuration/customElement.js +1 -1
  344. package/dist/components/solution-configure-panel/customElement.js +1 -1
  345. package/dist/components/solution-configure-titles/customElement.js +1 -1
  346. package/dist/components/solution-contents/customElement.js +1 -1
  347. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  348. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  349. package/dist/components/solution-deploy-panel/customElement.d.ts +5 -0
  350. package/dist/components/solution-deploy-panel/customElement.js +44 -0
  351. package/dist/components/solution-deploy-panel/index.d.ts +2 -0
  352. package/dist/components/solution-deploy-panel/index.js +2 -0
  353. package/dist/components/solution-deployed-card/customElement.js +1 -1
  354. package/dist/components/solution-deploying-panel/customElement.js +1 -1
  355. package/dist/components/solution-details-card/customElement.js +1 -1
  356. package/dist/components/solution-details-panel/customElement.js +1 -1
  357. package/dist/components/solution-item/customElement.js +1 -1
  358. package/dist/components/solution-item-accordion/customElement.js +1 -1
  359. package/dist/components/solution-item-details/customElement.js +1 -1
  360. package/dist/components/solution-item-icon/customElement.js +1 -1
  361. package/dist/components/solution-item-sharing/customElement.js +1 -1
  362. package/dist/components/solution-items-diagram/customElement.js +1 -1
  363. package/dist/components/solution-organization-variables/customElement.js +1 -1
  364. package/dist/components/solution-resource-item/customElement.js +1 -1
  365. package/dist/components/solution-snapshot-gallery/customElement.d.ts +5 -0
  366. package/dist/components/solution-snapshot-gallery/customElement.js +44 -0
  367. package/dist/components/solution-snapshot-gallery/index.d.ts +2 -0
  368. package/dist/components/solution-snapshot-gallery/index.js +2 -0
  369. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  370. package/dist/components/solution-template-data/customElement.js +1 -1
  371. package/dist/components/solution-variables/customElement.js +1 -1
  372. package/dist/components/solutions-all-panel/customElement.js +1 -1
  373. package/dist/components/solutions-all-shell/customElement.js +1 -1
  374. package/dist/components/solutions-article-panel/customElement.js +1 -1
  375. package/dist/components/solutions-articles/customElement.js +1 -1
  376. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  377. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  378. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  379. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  380. package/dist/components/spatial-ref/customElement.js +1 -1
  381. package/dist/components/store-manager/customElement.js +1 -1
  382. package/dist/docs/api.json +655 -93
  383. package/dist/docs/docs.json +577 -73
  384. package/dist/docs/vscode.html-custom-data.json +86 -17
  385. package/dist/docs/web-types.json +230 -43
  386. package/dist/index.d.ts +34 -3
  387. package/dist/index.js +1 -1
  388. package/dist/loader.js +14 -11
  389. package/dist/main.css +1 -1
  390. package/dist/types/lumina.d.ts +27 -9
  391. package/dist/types/preact.d.ts +31 -10
  392. package/dist/types/react.d.ts +35 -11
  393. package/dist/types/stencil.d.ts +27 -9
  394. package/dist/utils/mapViewUtils.d.ts +3 -3
  395. package/package.json +1 -1
  396. package/dist/cdn/264VRGT4.js +0 -4
  397. package/dist/cdn/2C7P2WBD.js +0 -18
  398. package/dist/cdn/2M24VYGB.js +0 -4
  399. package/dist/cdn/5AYUBL2S.js +0 -4
  400. package/dist/cdn/6ZWGS275.js +0 -18
  401. package/dist/cdn/7LZNQGFF.js +0 -4
  402. package/dist/cdn/ACRINRWW.js +0 -4
  403. package/dist/cdn/C5QHLRUF.js +0 -18
  404. package/dist/cdn/F44IFVB6.js +0 -18
  405. package/dist/cdn/ILUCOTQH.js +0 -18
  406. package/dist/cdn/LXIX3TNH.js +0 -4
  407. package/dist/cdn/N7WXVV7Y.js +0 -18
  408. package/dist/cdn/O2WO5RGW.js +0 -4
  409. package/dist/cdn/U4SNCZZB.js +0 -4
  410. package/dist/cdn/WSILAYSC.js +0 -18
  411. package/dist/cdn/XG3QLQ4I.js +0 -18
  412. package/dist/cdn/XZCQWFF2.js +0 -4
  413. package/dist/cdn/ZWSG3QNV.js +0 -18
  414. /package/dist/cdn/assets/{solution-arcticle-card → solution-article-card}/t9n/messages.en.json +0 -0
  415. /package/dist/cdn/assets/{solution-arcticle-card → solution-article-card}/t9n/messages.json +0 -0
  416. /package/dist/components/{solution-arcticle-card → solution-article-card}/index.d.ts +0 -0
  417. /package/dist/components/{solution-arcticle-card → solution-article-card}/index.js +0 -0
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{a as m}from"./4BCMHRMT.js";import{a as s}from"./FSQQ2APB.js";import"./VFZGCM33.js";import"./ICETJ5L7.js";import"./GNY77HPF.js";import"./TYTGBM6D.js";import{a as o,b as i}from"./WO4T5EBB.js";import"./25QPPKFI.js";import"./H2PYJODK.js";import{a as r,b as a}from"./NLDJFYI7.js";import"./FXITJZAV.js";import"./ECVA54TZ.js";import"./KAET4R4I.js";import"./2SNN45WE.js";import"./RA4WYINA.js";import"./BCXBJG72.js";import"./6YD2XRHQ.js";import"./K7L3LTTD.js";import"./ZX2WVODB.js";import"./BIOS2V5G.js";import"./ARPKSGRG.js";import"./J4DDOYKZ.js";import"./AW6GVVCK.js";import"./WFKJMOI2.js";import"./HLQ3GGP4.js";import"./HVVFJDSU.js";import"./4FGMEAIW.js";import"./62J73NXR.js";import"./G466QX4L.js";import"./MNNNZZVI.js";import"./Z7PAFRTZ.js";import"./UQD4DDWQ.js";import"./YZON6FQX.js";import"./424PZHQ5.js";import"./LKUFS2W4.js";import"./LZCG3PUX.js";import"./5EH5ABNA.js";import"./OHY2KQUC.js";var h=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.siteEntityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,helperText:{labelKey:`${e}.fields.summary.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea",helperText:{labelKey:`${e}.fields.description.helperText`}}},...s(e,l.thumbnail,l.thumbnailUrl,"site",t.requestOptions),...t.isPortal?[m(e)]:[],{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await a(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label",helperText:{labelKey:`${e}.fields.tags.helperText`}}},...await r(e,t)]},{type:"Section",labelKey:`${e}.sections.location.label`,options:{helperText:{labelKey:`${e}.sections.location.helperText`}},elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await o(l.location,t.hubRequestOptions),options:await i(l.id,l.type,l.location,t.portal.name,t.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{h as buildUiSchema};
3
+ v1.0.0-next.20250513 */
4
+ import{a as m}from"./W4QVPEC6.js";import{a as s}from"./KKSOLSMJ.js";import"./MCIIM4XE.js";import"./KQVVUDCM.js";import"./IG3I76TX.js";import"./U7RXVNQC.js";import{a as o,b as i}from"./UJSCHQIP.js";import"./T4UFIWDF.js";import"./2FXMJWEJ.js";import{a as r,b as a}from"./TSJDIDQQ.js";import"./OAJSYATY.js";import"./MSCUGG2N.js";import"./DHYYFX2C.js";import"./7WDOCGDK.js";import"./GGVX7BU3.js";import"./HHVCX4HB.js";import"./V3NOQ3VR.js";import"./5RJEQIH2.js";import"./AXEU574G.js";import"./P4CX5EDN.js";import"./NLQ42NQW.js";import"./CNU3TPX7.js";import"./37UTA2CS.js";import"./YMECWXNY.js";import"./AI3WLROH.js";import"./UOCWAIF5.js";import"./ISCASEIO.js";import"./WUYLVJC7.js";import"./GQU6FXIT.js";import"./6HNT2RSP.js";import"./F57GZO2E.js";import"./OBGBZA5Q.js";import"./ZIJGSIAY.js";import"./CBMZJGCV.js";import"./XW3XMCXE.js";import"./ADVQIEJR.js";import"./HZFEYQGX.js";import"./C44EKR3M.js";var h=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.siteEntityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,helperText:{labelKey:`${e}.fields.summary.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea",helperText:{labelKey:`${e}.fields.description.helperText`}}},...s(e,l.thumbnail,l.thumbnailUrl,"site",t.requestOptions),...t.isPortal?[m(e)]:[],{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await a(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label",helperText:{labelKey:`${e}.fields.tags.helperText`}}},...await r(e,t)]},{type:"Section",labelKey:`${e}.sections.location.label`,options:{helperText:{labelKey:`${e}.sections.location.helperText`}},elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await o(l.location,t.hubRequestOptions),options:await i(l.id,l.type,l.location,t.portal.name,t.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{h as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{a}from"./XGZPINBJ.js";import{a as l}from"./VPXUKOUC.js";import"./VAQQRDFO.js";import"./OFJCPV4F.js";import{a as i}from"./2SNN45WE.js";import{a as s}from"./RA4WYINA.js";import"./BCXBJG72.js";import"./6YD2XRHQ.js";import"./K7L3LTTD.js";import"./ZX2WVODB.js";import"./BIOS2V5G.js";import"./ARPKSGRG.js";import"./J4DDOYKZ.js";import"./AW6GVVCK.js";import"./WFKJMOI2.js";import"./HLQ3GGP4.js";import"./HVVFJDSU.js";import"./4FGMEAIW.js";import"./62J73NXR.js";import"./G466QX4L.js";import"./MNNNZZVI.js";import"./Z7PAFRTZ.js";import"./UQD4DDWQ.js";import"./YZON6FQX.js";import"./424PZHQ5.js";import"./LKUFS2W4.js";import"./LZCG3PUX.js";import"./5EH5ABNA.js";import"./OHY2KQUC.js";var d=async(e,r,t)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.access.label`,scope:"/properties/access",type:"Control",options:{control:"hub-field-input-tile-select",descriptions:[`{{${e}.fields.access.private.description:translate}}`,`{{${e}.fields.access.org.description:translate}}`,`{{${e}.fields.access.public.description:translate}}`],icons:["users","organization","globe"],labels:[`{{${e}.fields.access.private.label:translate}}`,`{{${e}.fields.access.org.label:translate}}`,`{{${e}.fields.access.public.label:translate}}`],rules:[{effect:s.NONE},{effect:s.ENABLE,conditions:[l("platform:portal:user:shareGroupToOrg",t).access]},{effect:s.ENABLE,conditions:[l("platform:portal:user:shareGroupToPublic",t).access]}]}}]},{type:"Section",labelKey:`${e}.sections.capabilities.label`,elements:[{labelKey:`${e}.fields.isSharedUpdate.label`,scope:"/properties/isSharedUpdate",type:"Control",options:{control:"hub-field-input-switch",helperText:{labelKey:`${e}.fields.isSharedUpdate.helperText`}},rule:{effect:s.ENABLE,conditions:[l("platform:portal:admin:createUpdateCapableGroup",t).access]}},{labelKey:`${e}.fields.isAdmin.label`,scope:"/properties/leavingDisallowed",type:"Control",options:{control:"hub-field-input-switch",helperText:{labelKey:`${e}.fields.isAdmin.helperText`}},rules:[{effect:s.ENABLE,conditions:[l("platform:portal:admin:createLeavingDisallowedGroup",t).access]}]},{labelKey:`${e}.fields.isOpenData.label`,scope:"/properties/isOpenData",type:"Control",options:{control:"hub-field-input-switch",helperText:{labelKey:`${e}.fields.isOpenData.helperText`},messages:[{type:"ERROR",keyword:"const",icon:!0,labelKey:`${e}.fields.isOpenData.constError`}]},rules:[{effect:s.ENABLE,conditions:[{scope:"/properties/access",schema:{const:"public"}},l("platform:opendata:user:designateGroup",t).access]},{effect:s.RESET,conditions:[{scope:"/properties/access",schema:{not:{const:"public"}}}]},{effect:s.SHOW,conditions:[!!i(t,"portal.portalProperties.openData.enabled")]}]}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,elements:[{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.membershipAccess.org.label:translate}}`,`{{${e}.fields.membershipAccess.collab.label:translate}}`,`{{${e}.fields.membershipAccess.any.label:translate}}`],descriptions:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],rules:[[{effect:s.NONE}],[{effect:s.DISABLE,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]}],[{effect:s.DISABLE,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]},{effect:s.DISABLE,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}}]}]],messages:[{type:"ERROR",keyword:"pattern",icon:!0,labelKey:`${e}.fields.membershipAccess.patternError`},{type:"ERROR",keyword:"const",icon:!0,labelKey:`${e}.fields.membershipAccess.constError`}]},rules:[{effect:s.RESET,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]},{effect:s.RESET,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}},{scope:"/properties/membershipAccess",schema:{const:"anyone"}}]}]},{labelKey:`${e}.fields.join.label`,scope:"/properties/_join",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.join.invite.label:translate}}`,`{{${e}.fields.join.request.label:translate}}`,`{{${e}.fields.join.auto.label:translate}}`],descriptions:[`{{${e}.fields.join.invite.description:translate}}`,`{{${e}.fields.join.request.description:translate}}`,`{{${e}.fields.join.auto.description:translate}}`],rules:[[{effect:s.NONE}],[{effect:s.DISABLE,conditions:[{scope:"/properties/access",schema:{const:"private"}}]}],[{effect:s.DISABLE,conditions:[{scope:"/properties/access",schema:{const:"private"}}]},{effect:s.DISABLE,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]},{effect:s.DISABLE,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}}]}]],messages:[{type:"ERROR",keyword:"const",icon:!0,labelKey:`${e}.fields.join.constError`},{type:"ERROR",keyword:"pattern",icon:!0,labelKey:`${e}.fields.join.patternError`}]},rules:[{effect:s.RESET,conditions:[{scope:"/properties/access",schema:{const:"private"}}]},{effect:s.RESET,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}},{scope:"/properties/_join",schema:{const:"auto"}}]},{effect:s.RESET,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}},{scope:"/properties/_join",schema:{const:"auto"}}]}]},{labelKey:`${e}.fields.hiddenMembers.label`,scope:"/properties/hiddenMembers",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.hiddenMembers.members.label:translate}}`,`{{${e}.fields.hiddenMembers.admins.label:translate}}`],descriptions:[`{{${e}.fields.hiddenMembers.members.description:translate}}`,`{{${e}.fields.hiddenMembers.admins.description:translate}}`]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.contributeContent.members.label:translate}}`,`{{${e}.fields.contributeContent.admins.label:translate}}`],descriptions:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}),f=async(e,r,t)=>Object.assign(Object.assign({},a("hubGroup",t)),r);export{f as buildDefaults,d as buildUiSchema};
3
+ v1.0.0-next.20250513 */
4
+ import{a}from"./356X3OF7.js";import{a as l}from"./IKBVEVMI.js";import"./BZM6QEVQ.js";import"./TV4DZ4NC.js";import{a as i}from"./7WDOCGDK.js";import{a as s}from"./GGVX7BU3.js";import"./HHVCX4HB.js";import"./V3NOQ3VR.js";import"./5RJEQIH2.js";import"./AXEU574G.js";import"./P4CX5EDN.js";import"./NLQ42NQW.js";import"./CNU3TPX7.js";import"./37UTA2CS.js";import"./YMECWXNY.js";import"./AI3WLROH.js";import"./UOCWAIF5.js";import"./ISCASEIO.js";import"./WUYLVJC7.js";import"./GQU6FXIT.js";import"./6HNT2RSP.js";import"./F57GZO2E.js";import"./OBGBZA5Q.js";import"./ZIJGSIAY.js";import"./CBMZJGCV.js";import"./XW3XMCXE.js";import"./ADVQIEJR.js";import"./HZFEYQGX.js";import"./C44EKR3M.js";var d=async(e,r,t)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.access.label`,scope:"/properties/access",type:"Control",options:{control:"hub-field-input-tile-select",descriptions:[`{{${e}.fields.access.private.description:translate}}`,`{{${e}.fields.access.org.description:translate}}`,`{{${e}.fields.access.public.description:translate}}`],icons:["users","organization","globe"],labels:[`{{${e}.fields.access.private.label:translate}}`,`{{${e}.fields.access.org.label:translate}}`,`{{${e}.fields.access.public.label:translate}}`],rules:[{effect:s.NONE},{effect:s.ENABLE,conditions:[l("platform:portal:user:shareGroupToOrg",t).access]},{effect:s.ENABLE,conditions:[l("platform:portal:user:shareGroupToPublic",t).access]}]}}]},{type:"Section",labelKey:`${e}.sections.capabilities.label`,elements:[{labelKey:`${e}.fields.isSharedUpdate.label`,scope:"/properties/isSharedUpdate",type:"Control",options:{control:"hub-field-input-switch",helperText:{labelKey:`${e}.fields.isSharedUpdate.helperText`}},rule:{effect:s.ENABLE,conditions:[l("platform:portal:admin:createUpdateCapableGroup",t).access]}},{labelKey:`${e}.fields.isAdmin.label`,scope:"/properties/leavingDisallowed",type:"Control",options:{control:"hub-field-input-switch",helperText:{labelKey:`${e}.fields.isAdmin.helperText`}},rules:[{effect:s.ENABLE,conditions:[l("platform:portal:admin:createLeavingDisallowedGroup",t).access]}]},{labelKey:`${e}.fields.isOpenData.label`,scope:"/properties/isOpenData",type:"Control",options:{control:"hub-field-input-switch",helperText:{labelKey:`${e}.fields.isOpenData.helperText`},messages:[{type:"ERROR",keyword:"const",icon:!0,labelKey:`${e}.fields.isOpenData.constError`}]},rules:[{effect:s.ENABLE,conditions:[{scope:"/properties/access",schema:{const:"public"}},l("platform:opendata:user:designateGroup",t).access]},{effect:s.RESET,conditions:[{scope:"/properties/access",schema:{not:{const:"public"}}}]},{effect:s.SHOW,conditions:[!!i(t,"portal.portalProperties.openData.enabled")]}]}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,elements:[{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.membershipAccess.org.label:translate}}`,`{{${e}.fields.membershipAccess.collab.label:translate}}`,`{{${e}.fields.membershipAccess.any.label:translate}}`],descriptions:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],rules:[[{effect:s.NONE}],[{effect:s.DISABLE,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]}],[{effect:s.DISABLE,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]},{effect:s.DISABLE,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}}]}]],messages:[{type:"ERROR",keyword:"pattern",icon:!0,labelKey:`${e}.fields.membershipAccess.patternError`},{type:"ERROR",keyword:"const",icon:!0,labelKey:`${e}.fields.membershipAccess.constError`}]},rules:[{effect:s.RESET,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]},{effect:s.RESET,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}},{scope:"/properties/membershipAccess",schema:{const:"anyone"}}]}]},{labelKey:`${e}.fields.join.label`,scope:"/properties/_join",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.join.invite.label:translate}}`,`{{${e}.fields.join.request.label:translate}}`,`{{${e}.fields.join.auto.label:translate}}`],descriptions:[`{{${e}.fields.join.invite.description:translate}}`,`{{${e}.fields.join.request.description:translate}}`,`{{${e}.fields.join.auto.description:translate}}`],rules:[[{effect:s.NONE}],[{effect:s.DISABLE,conditions:[{scope:"/properties/access",schema:{const:"private"}}]}],[{effect:s.DISABLE,conditions:[{scope:"/properties/access",schema:{const:"private"}}]},{effect:s.DISABLE,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]},{effect:s.DISABLE,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}}]}]],messages:[{type:"ERROR",keyword:"const",icon:!0,labelKey:`${e}.fields.join.constError`},{type:"ERROR",keyword:"pattern",icon:!0,labelKey:`${e}.fields.join.patternError`}]},rules:[{effect:s.RESET,conditions:[{scope:"/properties/access",schema:{const:"private"}}]},{effect:s.RESET,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}},{scope:"/properties/_join",schema:{const:"auto"}}]},{effect:s.RESET,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}},{scope:"/properties/_join",schema:{const:"auto"}}]}]},{labelKey:`${e}.fields.hiddenMembers.label`,scope:"/properties/hiddenMembers",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.hiddenMembers.members.label:translate}}`,`{{${e}.fields.hiddenMembers.admins.label:translate}}`],descriptions:[`{{${e}.fields.hiddenMembers.members.description:translate}}`,`{{${e}.fields.hiddenMembers.admins.description:translate}}`]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.contributeContent.members.label:translate}}`,`{{${e}.fields.contributeContent.admins.label:translate}}`],descriptions:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}),f=async(e,r,t)=>Object.assign(Object.assign({},a("hubGroup",t)),r);export{f as buildDefaults,d as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import"./OHY2KQUC.js";var i=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:"shared.sections.discussionSettings.moderation.label",elements:[{labelKey:"shared.fields.discussable.label",scope:"/properties/isDiscussable",type:"Control",options:{control:"hub-field-input-tile-select",labels:["{{shared.fields.discussable.enabled.label:translate}}",`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:["{{shared.fields.discussable.disabled.label:translate}}",`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],layout:"horizontal",styles:{"max-width":"45rem"},type:"radio"}}]}]});export{i as buildUiSchema};
3
+ v1.0.0-next.20250513 */
4
+ import"./C44EKR3M.js";var i=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:"shared.sections.discussionSettings.moderation.label",elements:[{labelKey:"shared.fields.discussable.label",scope:"/properties/isDiscussable",type:"Control",options:{control:"hub-field-input-tile-select",labels:["{{shared.fields.discussable.enabled.label:translate}}",`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:["{{shared.fields.discussable.disabled.label:translate}}",`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],layout:"horizontal",styles:{"max-width":"45rem"},type:"radio"}}]}]});export{i as buildUiSchema};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250513 */
4
+ import{a,b}from"./37UTA2CS.js";import"./HZFEYQGX.js";import"./C44EKR3M.js";export{a as GroupEditorTypes,b as GroupSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{b as e,c as n,d as r}from"./ECVA54TZ.js";var s=new RegExp(/.+(?:map|feature|image)server/i);function i(t){let a=t.match(s);return a?a[0]:c(t)}function c(t){let a=t.split("?")[0];return r(a)}function d(t){return e(r(t.url),t)}function x(t,a){let o=`${r(t).replace("/rest/services","/rest/admin/services")}/updateDefinition`;return a.params=Object.assign({updateDefinition:{}},a.params),a.updateDefinition&&(a.params.updateDefinition=a.updateDefinition),e(o,a)}function Y(t){let a=n(t,["objectIds","relationshipId","definitionExpression","outFields"],{httpMethod:"GET",params:Object.assign({definitionExpression:"1=1",outFields:"*",relationshipId:0},t.params)});return e(`${r(t.url)}/queryRelatedRecords`,a)}export{i as a,d as b,Y as c,x as d};
3
+ v1.0.0-next.20250513 */
4
+ import{b as e,c as n,d as r}from"./MSCUGG2N.js";var s=new RegExp(/.+(?:map|feature|image)server/i);function i(t){let a=t.match(s);return a?a[0]:c(t)}function c(t){let a=t.split("?")[0];return r(a)}function d(t){return e(r(t.url),t)}function x(t,a){let o=`${r(t).replace("/rest/services","/rest/admin/services")}/updateDefinition`;return a.params=Object.assign({updateDefinition:{}},a.params),a.updateDefinition&&(a.params.updateDefinition=a.updateDefinition),e(o,a)}function Y(t){let a=n(t,["objectIds","relationshipId","definitionExpression","outFields"],{httpMethod:"GET",params:Object.assign({definitionExpression:"1=1",outFields:"*",relationshipId:0},t.params)});return e(`${r(t.url)}/queryRelatedRecords`,a)}export{i as a,d as b,Y as c,x as d};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{e as s}from"./SAK5E7EM.js";import"./F5K2FGR2.js";import"./Z6MML6SM.js";import{a as c,c as e,d as l,e as r,f as d}from"./HIIYUUEW.js";import"./OHY2KQUC.js";var m=".sc-instant-apps-measurement-h .sc-instant-apps-measurement.sc-instant-apps-measurement{background:var(--calcite-color-foreground-1)}.sc-instant-apps-measurement-h .active-tool.sc-instant-apps-measurement{--calcite-color-foreground-1:#c7eaff}",u=m,h={content:"instant-apps-measurement__content"},f=class{constructor(t){c(this,t),this.measureActive=d(this,"measureActive",7),this.messages=void 0,this.view=void 0,this.areaUnit=void 0,this.linearUnit=void 0,this.coordinateFormat=void 0,this.activeToolType=void 0,this.closable=!1}async componentWillLoad(){s(this)}componentDidLoad(){}render(){return e(l,{key:"68d619bbb5d2b0808ad57a1891ca07ae35391194"},e("calcite-panel",{key:"5fe4f0d6ee4c8344cb5fadedd3c09a81a100f342",heading:this?.messages?.label,closable:this.closable},e("div",{key:"6f220edb8795f0563ea4f4e76f0908c2fca4a263",slot:"content-top"},this.renderActionPad()),e("div",{key:"5b11d036b55b5a98df11d8c575b995c2b7f4a322"},this.renderMeasureToolPanel())))}renderMeasureToolPanel(){let{view:t,coordinateFormat:i,areaUnit:a,linearUnit:n,activeToolType:o}=this;return e("calcite-panel",{class:h.content},e("instant-apps-measurement-tool",{ref:p=>{this.measureTool=p},view:t,measureConfiguration:{coordinateFormat:i,areaUnit:a,linearUnit:n,activeToolType:o},activeTool:this.activeToolType}))}renderActionPad(){let{messages:t,activeToolType:i}=this;return e("calcite-action-pad",{"expand-disabled":!0,layout:"horizontal",position:"end"},e("calcite-action",{class:i==="distance"?"active-tool":"",text:t?.line,icon:"measure",scale:"m","data-value":"distance",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.line)),e("calcite-action",{class:i==="area"?"active-tool":"",text:t?.area,scale:"m",icon:"measure-area","data-value":"area",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.area)),e("calcite-action",{class:i==="point"?"active-tool":"",text:t?.point,scale:"m",icon:"pin-plus","data-value":"point",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.point)),e("calcite-action",{text:t?.clear,scale:"m",icon:"trash","data-value":"clear",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.clear)))}_handleToolClick(t){if(!this?.measureTool)return;let i=t?.target;if(!(i instanceof HTMLElement))return;let a=i?.dataset.value;if(a!=="distance"&&a!=="area"&&a!=="point"&&a!=="clear")return;a&&(this.measureTool.activeTool=a);let n=document.getElementsByClassName("active-tool");for(let o=0;o<n?.length;o++)n[o]?.classList?.remove("active-tool");i?.classList.add("active-tool"),this.measureActive.emit(!(a===void 0||a==="clear"))}get el(){return r(this)}};f.style=u;export{f as instant_apps_measurement};
3
+ v1.0.0-next.20250513 */
4
+ import{e as s}from"./UKMHZ5PP.js";import"./ZVRPCQAG.js";import"./2Y7EB6IS.js";import{a as c,c as e,d as l,e as r,f as d}from"./IRVZT2BS.js";import"./C44EKR3M.js";var m=".sc-instant-apps-measurement-h .sc-instant-apps-measurement.sc-instant-apps-measurement{background:var(--calcite-color-foreground-1)}.sc-instant-apps-measurement-h .active-tool.sc-instant-apps-measurement{--calcite-color-foreground-1:#c7eaff}",u=m,h={content:"instant-apps-measurement__content"},f=class{constructor(t){c(this,t),this.measureActive=d(this,"measureActive",7),this.messages=void 0,this.view=void 0,this.areaUnit=void 0,this.linearUnit=void 0,this.coordinateFormat=void 0,this.activeToolType=void 0,this.closable=!1}async componentWillLoad(){s(this)}componentDidLoad(){}render(){return e(l,{key:"68d619bbb5d2b0808ad57a1891ca07ae35391194"},e("calcite-panel",{key:"5fe4f0d6ee4c8344cb5fadedd3c09a81a100f342",heading:this?.messages?.label,closable:this.closable},e("div",{key:"6f220edb8795f0563ea4f4e76f0908c2fca4a263",slot:"content-top"},this.renderActionPad()),e("div",{key:"5b11d036b55b5a98df11d8c575b995c2b7f4a322"},this.renderMeasureToolPanel())))}renderMeasureToolPanel(){let{view:t,coordinateFormat:i,areaUnit:a,linearUnit:n,activeToolType:o}=this;return e("calcite-panel",{class:h.content},e("instant-apps-measurement-tool",{ref:p=>{this.measureTool=p},view:t,measureConfiguration:{coordinateFormat:i,areaUnit:a,linearUnit:n,activeToolType:o},activeTool:this.activeToolType}))}renderActionPad(){let{messages:t,activeToolType:i}=this;return e("calcite-action-pad",{"expand-disabled":!0,layout:"horizontal",position:"end"},e("calcite-action",{class:i==="distance"?"active-tool":"",text:t?.line,icon:"measure",scale:"m","data-value":"distance",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.line)),e("calcite-action",{class:i==="area"?"active-tool":"",text:t?.area,scale:"m",icon:"measure-area","data-value":"area",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.area)),e("calcite-action",{class:i==="point"?"active-tool":"",text:t?.point,scale:"m",icon:"pin-plus","data-value":"point",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.point)),e("calcite-action",{text:t?.clear,scale:"m",icon:"trash","data-value":"clear",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.clear)))}_handleToolClick(t){if(!this?.measureTool)return;let i=t?.target;if(!(i instanceof HTMLElement))return;let a=i?.dataset.value;if(a!=="distance"&&a!=="area"&&a!=="point"&&a!=="clear")return;a&&(this.measureTool.activeTool=a);let n=document.getElementsByClassName("active-tool");for(let o=0;o<n?.length;o++)n[o]?.classList?.remove("active-tool");i?.classList.add("active-tool"),this.measureActive.emit(!(a===void 0||a==="clear"))}get el(){return r(this)}};f.style=u;export{f as instant_apps_measurement};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import"./OHY2KQUC.js";var s=async(e,t,o)=>({type:"Layout",elements:[{type:"Section",labelKey:"shared.sections.mapSettings.label",elements:[{type:"Control",scope:"/properties/view/properties/mapSettings",labelKey:`${e}.fields.mapSettings.label`,options:{type:"Control",control:"hub-composite-input-map-settings",visibleSettings:["gallery"],showPreview:!0}}]}]});export{s as buildUiSchema};
3
+ v1.0.0-next.20250513 */
4
+ import"./C44EKR3M.js";var s=async(e,t,o)=>({type:"Layout",elements:[{type:"Section",labelKey:"shared.sections.mapSettings.label",elements:[{type:"Control",scope:"/properties/view/properties/mapSettings",labelKey:`${e}.fields.mapSettings.label`,options:{type:"Control",control:"hub-composite-input-map-settings",visibleSettings:["gallery"],showPreview:!0}}]}]});export{s 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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{a as y}from"./HIYSQGTK.js";import"./ZSNDJE3R.js";import{a as L,b as f,d as I}from"./ACRINRWW.js";import"./DGJOUZR5.js";import"./C2KBDSIZ.js";import{a as c,b as p}from"./AXQXIZC6.js";import{a as w}from"./4AB2653C.js";import{B as u,c as b,d as a,f as l,n as h,q as _,w as g,x as o,y as d}from"./CQFOO7QD.js";import"./OHY2KQUC.js";var v=b`@layer{/** @license
3
+ v1.0.0-next.20250513 */
4
+ import{a as y}from"./CCHSAYV3.js";import"./2QX2DZO7.js";import{a as L,b as f,d as I}from"./XOTJKE5D.js";import"./2HQWNDOT.js";import"./WUWWLJEX.js";import{a as c,b as p}from"./P55AP2OS.js";import{a as w}from"./FIE266AU.js";import{B as u,c as b,d as a,f as l,n as h,q as _,w as g,x as d,y as o}from"./3RC2WF5B.js";import"./C44EKR3M.js";var v=b`@layer{/** @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{a as y}from"./HIYSQGTK.js";import"./ZSNDJE3R.js";import{a as L,b as f,d a
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
- */:host{display:block}.map-layer-picker-container{width:100%;align-items:center}.map-layer-picker{position:relative;width:100%;display:inline-block}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.no-bottom-margin{--calcite-label-margin-bottom: 0px}.layer-picker-label-container{align-items:center;display:inline-flex;height:100%;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start-1{padding-inline-start:1rem}.cursor-default{cursor:default}}`,m=class extends g{constructor(){super(...arguments),this.appearance="transparent",this.defaultLayerId="",this.display="inline-block",this.enabledLayerIds=[],this.enabledTableIds=[],this.isMobile=!1,this.onlyShowUpdatableLayers=!1,this.placeholderIcon="",this.selectedIds=[],this.scale="m",this.showTables=!1,this.showTablesDisabled=!1,this.showSingleLayerAsLabel=!1,this.type="select",this.force=!1,this._hasMultipleLayers=!0,this._hasValidLayers=!0,this._isDropdownOpen=!1,this.ids=[],this.selectedName="",this._translations=w({name:"map-layer-picker",blocking:!0}),this.defaultLayerHonored=!1,this._layerSelectElement=c(),this._layerComboboxElement=c(),this._skipEditCheck=!1,this.beforeLayerSelectionChange=h(),this.idsFound=h(),this.noLayersFound=h(),this.layerSelectionChange=h()}static{this.properties={appearance:1,defaultLayerId:1,display:1,enabledLayerIds:0,enabledTableIds:0,height:9,isMobile:5,mapView:0,onlyShowUpdatableLayers:5,placeholderIcon:1,selectedIds:0,scale:1,showTables:5,showTablesDisabled:5,showSingleLayerAsLabel:5,type:1,force:16,_hasMultipleLayers:16,_hasValidLayers:16,_isDropdownOpen:16,ids:16,selectedName:16,_translations:16}}static{this.styles=v}static{this.shadowRootOptions=_}willUpdate(e){e.has("mapView")&&this.mapViewWatchHandler(),e.has("type")&&(this._layerElement=this.type==="select"?this._layerSelectElement:this._layerComboboxElement)}async mapViewWatchHandler(){await this._setLayers(),this.ids?.length>0?(this._hasValidLayers=!0,this._hasMultipleLayers=this.ids.length>1,this._setSelectedLayer(this.ids[0])):(this._hasValidLayers=!1,this.noLayersFound.emit())}async setLayerById(e,t=!1){this._skipEditCheck=t,!t||t&&e!==this.selectedIds[0]?this._setSelectedLayer(e):t&&e===this.selectedIds[0]&&(this.force=!0,setTimeout(()=>{this.force=!1},10)),this._skipEditCheck=!1}async setLayerByIds(e,t=!1){this._skipEditCheck=t,this._layerSelectionChange(e),this._skipEditCheck=!1}async updateLayer(){await this._setSelectedLayer(this.ids[0])}async load(){await this._setLayers()}render(){let e="map-layer-picker",t=this.height&&this.height>0?{height:`${this.height.toString()}px`}:{};return t={...t,display:this.display},a`<div class="map-layer-picker-container" style=${d(t)}><div class="map-layer-picker" style=${d(t)}>${this._hasValidLayers?!this._hasMultipleLayers&&this.showSingleLayerAsLabel?this._getSingleLayerPlaceholder():this.type==="combobox"?this._getCombobox(e):this.type==="select"?this._getSelect(e):this._getDropdown(e):this._getInvalidPlaceholder()}</div></div>`}loaded(){if(this.ids?.length>0||this.selectedIds?.length===1){let e=this.selectedIds.length===1?this.selectedIds[0]:this.ids[0];this.type==="select"?this._layerElement.value&&(this._layerElement.value.value=e):this.type==="dropdown"&&(this.selectedName=this._layerNameHash&&Object.keys(this._layerNameHash).indexOf(e)>-1?this._layerNameHash[e].name:this._tableNameHash&&Object.keys(this._tableNameHash).indexOf(e)>-1?this._tableNameHash[e].name:"")}}_getInvalidPlaceholder(){return a`<div><calcite-notice class="height-100" icon=exclamation-mark-triangle id=no-valid-layers kind=danger open><div slot=message>${this._translations.noLayersFound}</div></calcite-notice><calcite-tooltip .label=${this._translations.enableEditUpdate} placement=bottom reference-element=no-valid-layers><span>${this._translations.enableEditUpdate}</span></calcite-tooltip></div>`}_getSingleLayerPlaceholder(){let e=this._getItemTypeIcon();return a`<div class="layer-picker-label-container cursor-default"><calcite-icon .icon=${e} scale=s></calcite-icon><calcite-label class="no-bottom-margin padding-start-1">${this.selectedName}</calcite-label></div>`}_getSelect(e){return a`<calcite-select id=${e??l} label @calciteSelectChange=${()=>this._layerSelectionChange()} .scale=${this.scale} ${p(this._layerElement)}>${this._getMapLayerOptions()}</calcite-select>`}_getCombobox(e){return a`<calcite-combobox clear-disabled id=${e??l} label @calciteComboboxChange=${()=>this._layerSelectionChange()} .placeholderIcon=${this.placeholderIcon} .scale=${this.scale} selection-mode=single ${p(this._layerElement)}>${this._getMapLayerOptions()}</calcite-combobox>`}_getDropdown(e){return a`<calcite-dropdown class="layer-picker-dropdown" @calciteDropdownBeforeClose=${()=>this._isDropdownOpen=!1} @calciteDropdownBeforeOpen=${()=>this._isDropdownOpen=!0}>${this.isMobile?this._getDropdownButton():this._getActionDropdownButton(e)}<calcite-dropdown-group selection-mode=single>${this._getMapLayerOptions()}</calcite-dropdown-group></calcite-dropdown>`}_getActionDropdownButton(e){return a`<calcite-action id=${e??l} slot=trigger text>${this._getDropdownButton()}</calcite-action>`}_getDropdownButton(){let e=this._getItemTypeIcon(),t=this.isMobile?"":"max-width-350",s=this.isMobile?"trigger":"",i=this._isDropdownOpen?"chevron-up":"chevron-down";return a`<calcite-button alignment=icon-end-space-between .appearance=${this.appearance} class=${o(t)} .iconEnd=${i} .iconStart=${e} kind=neutral slot=${s??l} width=full><div>${this.selectedName}</div></calcite-button>`}_getItemTypeIcon(){let e="layers";if(this.selectedIds.length>0&&this._layerNameHash){let t=this.selectedIds[0];e=Object.keys(this._layerNameHash).indexOf(t)>-1?"layers":"table"}return e}_getMapLayerOptions(){return this.ids.reduce((e,t)=>(this._validLayer(t)?e.push(this._getItem(t,"layer")):this._validTable(t)&&e.push(this._getItem(t,"table")),e),[])}_getItem(e,t){let s=t==="layer"&&this._layerNameHash?this._layerNameHash[e]:this._tableNameHash?this._tableNameHash[e]:void 0,i=this.onlyShowUpdatableLayers?s&&!s.supportsUpdate:!1,n=s?.name,r=this.selectedIds.indexOf(e)>-1;return this.type==="combobox"?a`<calcite-combobox-item .disabled=${i} .selected=${r} .textLabel=${n} .value=${e}></calcite-combobox-item>`:this.type==="select"?a`<calcite-option .disabled=${i} .label=${n} .selected=${r} .value=${e}></calcite-option>`:this.force&&r||!this.force?a`<calcite-dropdown-group class=${o(i?"disabled":"")} .selectionMode=${i?"none":"single"}><calcite-dropdown-item .disabled=${!!(t==="table"&&this.showTablesDisabled)} .iconStart=${t} @click=${i?void 0:()=>void this._setSelectedLayer(e)} .selected=${r}>${n}</calcite-dropdown-item></calcite-dropdown-group>`:null}async _setSelectedLayer(e){if(e!==this.selectedIds[0]){let t;if(this.defaultLayerId&&!this.defaultLayerHonored&&(t=this._getLayerFromHash(this.defaultLayerId),this.defaultLayerHonored=t!==void 0,e=this.defaultLayerHonored?this.defaultLayerId:e),t=t||this._getLayerFromHash(e),!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentId:this.selectedIds[0],newId:e,ref:this.el}).defaultPrevented)return;this.selectedName=t?.name,this.selectedIds=[e],this.layerSelectionChange.emit(this.selectedIds)}else{let t=this.mapView&&await I(this.mapView,this.selectedIds[0]);this.selectedName=t?.title||""}}_getLayerFromHash(e){return this._layerNameHash&&Object.keys(this._layerNameHash).indexOf(e)>-1?this._layerNameHash[e]:this._tableNameHash&&Object.keys(this._tableNameHash).indexOf(e)>-1?this._tableNameHash[e]:void 0}async _setLayers(){if(this.mapView){await this._initLayerTableHash();let e=[];this._layerNameHash&&(e=this.onlyShowUpdatableLayers?this._getEditableIds(this._layerNameHash):Object.keys(this._layerNameHash));let t=[];this._tableNameHash&&(t=this.showTables?this.onlyShowUpdatableLayers?this._getEditableIds(this._tableNameHash):Object.keys(this._tableNameHash):[]),this.ids=[...e.reverse().filter(s=>this.enabledLayerIds?.length>0?this.enabledLayerIds.reverse().indexOf(s)>-1:!0),...t.reverse().filter(s=>this.enabledTableIds?.length>0?this.enabledTableIds.reverse().indexOf(s)>-1:!0)],this.idsFound.emit({layerIds:e,tableIds:t})}}_getEditableIds(e){return Object.keys(e).reduce((t,s)=>(e[s].supportsUpdate&&t.push(s),t),[])}async _initLayerTableHash(){this._layerNameHash=this.mapView&&await L(this.mapView,this.onlyShowUpdatableLayers),this._tableNameHash=this.showTables&&this.mapView?await f(this.mapView,this.onlyShowUpdatableLayers):{}}_validLayer(e){let t=this._layerNameHash&&this._layerNameHash[e]?.name;return t!==void 0&&Object.keys(y.managedLayers).indexOf(t)<0&&(this.enabledLayerIds?.length>0?this.enabledLayerIds.indexOf(e)>-1:!0)}_validTable(e){let t=this._tableNameHash&&this._tableNameHash[e]?.name,s=t&&this.showTables;return s?y.managedTables.indexOf(t)<0&&(this.enabledTableIds?.length>0?this.enabledTableIds.indexOf(e)>-1:!0):s!==void 0}_layerSelectionChange(e){if(this._layerElement.value){let t=e||(Array.isArray(this._layerElement.value.value)?this._layerElement.value.value:[this._layerElement.value.value]);if(JSON.stringify(t)!==JSON.stringify([""])){if(!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentIds:this.selectedIds,newIds:t,ref:this.el}).defaultPrevented)return;this.selectedIds=t,this.layerSelectionChange.emit(this.selectedIds)}}}};u("map-layer-picker",m);export{m as MapLayerPicker};
18
+ */:host{display:block}.map-layer-picker-container{width:100%;align-items:center}.map-layer-picker{position:relative;width:100%;display:inline-block}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.no-bottom-margin{--calcite-label-margin-bottom: 0px}.layer-picker-label-container{align-items:center;display:inline-flex;height:100%;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start-1{padding-inline-start:1rem}.cursor-default{cursor:default}}`,m=class extends g{constructor(){super(...arguments),this.appearance="transparent",this.defaultLayerId="",this.display="inline-block",this.enabledLayerIds=[],this.enabledTableIds=[],this.isMobile=!1,this.showOnlyUpdatableLayers=!1,this.placeholderIcon="",this.selectedIds=[],this.scale="m",this.showTables=!1,this.showTablesDisabled=!1,this.showSingleLayerAsLabel=!1,this.type="select",this.force=!1,this._hasMultipleLayers=!0,this._hasValidLayers=!0,this._isDropdownOpen=!1,this.ids=[],this.selectedName="",this._translations=w({name:"map-layer-picker",blocking:!0}),this.defaultLayerHonored=!1,this._layerSelectElement=c(),this._layerComboboxElement=c(),this._skipEditCheck=!1,this.beforeLayerSelectionChange=h(),this.idsFound=h(),this.noLayersFound=h(),this.layerSelectionChange=h()}static{this.properties={appearance:1,defaultLayerId:1,display:1,enabledLayerIds:0,enabledTableIds:0,height:9,isMobile:5,mapView:0,showOnlyUpdatableLayers:5,placeholderIcon:1,selectedIds:0,scale:1,showTables:5,showTablesDisabled:5,showSingleLayerAsLabel:5,type:1,force:16,_hasMultipleLayers:16,_hasValidLayers:16,_isDropdownOpen:16,ids:16,selectedName:16,_translations:16}}static{this.styles=v}static{this.shadowRootOptions=_}willUpdate(e){e.has("mapView")&&this.mapViewWatchHandler(),e.has("type")&&(this._layerElement=this.type==="select"?this._layerSelectElement:this._layerComboboxElement)}async mapViewWatchHandler(){await this._setLayers(),this.ids?.length>0?(this._hasValidLayers=!0,this._hasMultipleLayers=this.ids.length>1,this._setSelectedLayer(this.ids[0])):(this._hasValidLayers=!1,this.noLayersFound.emit())}async setLayerById(e,t=!1){this._skipEditCheck=t,!t||t&&e!==this.selectedIds[0]?this._setSelectedLayer(e):t&&e===this.selectedIds[0]&&(this.force=!0,setTimeout(()=>{this.force=!1},10)),this._skipEditCheck=!1}async setLayerByIds(e,t=!1){this._skipEditCheck=t,this._layerSelectionChange(e),this._skipEditCheck=!1}async updateLayer(){await this._setSelectedLayer(this.ids[0])}async load(){await this._setLayers()}render(){let e="map-layer-picker",t=this.height&&this.height>0?{height:`${this.height.toString()}px`}:{};return t={...t,display:this.display},a`<div class="map-layer-picker-container" style=${o(t)}><div class="map-layer-picker" style=${o(t)}>${this._hasValidLayers?!this._hasMultipleLayers&&this.showSingleLayerAsLabel?this._getSingleLayerPlaceholder():this.type==="combobox"?this._getCombobox(e):this.type==="select"?this._getSelect(e):this._getDropdown(e):this._getInvalidPlaceholder()}</div></div>`}loaded(){if(this.ids?.length>0||this.selectedIds?.length===1){let e=this.selectedIds.length===1?this.selectedIds[0]:this.ids[0];this.type==="select"?this._layerElement.value&&(this._layerElement.value.value=e):this.type==="dropdown"&&(this.selectedName=this._layerNameHash&&Object.keys(this._layerNameHash).indexOf(e)>-1?this._layerNameHash[e].name:this._tableNameHash&&Object.keys(this._tableNameHash).indexOf(e)>-1?this._tableNameHash[e].name:"")}}_getInvalidPlaceholder(){return a`<div><calcite-notice class="height-100" icon=exclamation-mark-triangle id=no-valid-layers kind=danger open><div slot=message>${this._translations.noLayersFound}</div></calcite-notice><calcite-tooltip .label=${this._translations.enableEditUpdate} placement=bottom reference-element=no-valid-layers><span>${this._translations.enableEditUpdate}</span></calcite-tooltip></div>`}_getSingleLayerPlaceholder(){let e=this._getItemTypeIcon();return a`<div class="layer-picker-label-container cursor-default"><calcite-icon .icon=${e} scale=s></calcite-icon><calcite-label class="no-bottom-margin padding-start-1">${this.selectedName}</calcite-label></div>`}_getSelect(e){return a`<calcite-select id=${e??l} label @calciteSelectChange=${()=>this._layerSelectionChange()} .scale=${this.scale} ${p(this._layerElement)}>${this._getMapLayerOptions()}</calcite-select>`}_getCombobox(e){return a`<calcite-combobox clear-disabled id=${e??l} label @calciteComboboxChange=${()=>this._layerSelectionChange()} .placeholderIcon=${this.placeholderIcon} .scale=${this.scale} selection-mode=single ${p(this._layerElement)}>${this._getMapLayerOptions()}</calcite-combobox>`}_getDropdown(e){return a`<calcite-dropdown class="layer-picker-dropdown" @calciteDropdownBeforeClose=${()=>this._isDropdownOpen=!1} @calciteDropdownBeforeOpen=${()=>this._isDropdownOpen=!0}>${this.isMobile?this._getDropdownButton():this._getActionDropdownButton(e)}<calcite-dropdown-group selection-mode=single>${this._getMapLayerOptions()}</calcite-dropdown-group></calcite-dropdown>`}_getActionDropdownButton(e){return a`<calcite-action id=${e??l} slot=trigger text>${this._getDropdownButton()}</calcite-action>`}_getDropdownButton(){let e=this._getItemTypeIcon(),t=this.isMobile?"":"max-width-350",s=this.isMobile?"trigger":"",i=this._isDropdownOpen?"chevron-up":"chevron-down";return a`<calcite-button alignment=icon-end-space-between .appearance=${this.appearance} class=${d(t)} .iconEnd=${i} .iconStart=${e} kind=neutral slot=${s??l} width=full><div>${this.selectedName}</div></calcite-button>`}_getItemTypeIcon(){let e="layers";if(this.selectedIds.length>0&&this._layerNameHash){let t=this.selectedIds[0];e=Object.keys(this._layerNameHash).indexOf(t)>-1?"layers":"table"}return e}_getMapLayerOptions(){return this.ids.reduce((e,t)=>(this._validLayer(t)?e.push(this._getItem(t,"layer")):this._validTable(t)&&e.push(this._getItem(t,"table")),e),[])}_getItem(e,t){let s=t==="layer"&&this._layerNameHash?this._layerNameHash[e]:this._tableNameHash?this._tableNameHash[e]:void 0,i=this.showOnlyUpdatableLayers?s&&!s.supportsUpdate:!1,r=s?.name,n=this.selectedIds.indexOf(e)>-1;return this.type==="combobox"?a`<calcite-combobox-item .disabled=${i} .selected=${n} .textLabel=${r} .value=${e}></calcite-combobox-item>`:this.type==="select"?a`<calcite-option .disabled=${i} .label=${r} .selected=${n} .value=${e}></calcite-option>`:this.force&&n||!this.force?a`<calcite-dropdown-group class=${d(i?"disabled":"")} id=${r??l} .selectionMode=${i?"none":"single"}><calcite-dropdown-item .disabled=${!!(t==="table"&&this.showTablesDisabled)} .iconStart=${t} @click=${i?void 0:()=>void this._setSelectedLayer(e)} .selected=${n}>${r}</calcite-dropdown-item></calcite-dropdown-group>`:null}async _setSelectedLayer(e){if(e!==this.selectedIds[0]){let t;if(this.defaultLayerId&&!this.defaultLayerHonored&&(t=this._getLayerFromHash(this.defaultLayerId),this.defaultLayerHonored=t!==void 0,e=this.defaultLayerHonored?this.defaultLayerId:e),t=t||this._getLayerFromHash(e),!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentId:this.selectedIds[0],newId:e,ref:this.el}).defaultPrevented)return;this.selectedName=t?.name,this.selectedIds=[e],this.layerSelectionChange.emit(this.selectedIds)}else{let t=this.mapView&&await I(this.mapView,this.selectedIds[0]);this.selectedName=t?.title||""}}_getLayerFromHash(e){return this._layerNameHash&&Object.keys(this._layerNameHash).indexOf(e)>-1?this._layerNameHash[e]:this._tableNameHash&&Object.keys(this._tableNameHash).indexOf(e)>-1?this._tableNameHash[e]:void 0}async _setLayers(){if(this.mapView){await this._initLayerTableHash();let e=[];this._layerNameHash&&(e=this.showOnlyUpdatableLayers?this._getEditableIds(this._layerNameHash):Object.keys(this._layerNameHash));let t=[];this._tableNameHash&&(t=this.showTables?this.showOnlyUpdatableLayers?this._getEditableIds(this._tableNameHash):Object.keys(this._tableNameHash):[]),this.ids=[...e.reverse().filter(s=>this.enabledLayerIds?.length>0?this.enabledLayerIds.reverse().indexOf(s)>-1:!0),...t.reverse().filter(s=>this.enabledTableIds?.length>0?this.enabledTableIds.reverse().indexOf(s)>-1:!0)],this.idsFound.emit({layerIds:e,tableIds:t})}}_getEditableIds(e){return Object.keys(e).reduce((t,s)=>(e[s].supportsUpdate&&t.push(s),t),[])}async _initLayerTableHash(){this._layerNameHash=this.mapView&&await L(this.mapView,this.showOnlyUpdatableLayers),this._tableNameHash=this.showTables&&this.mapView?await f(this.mapView,this.showOnlyUpdatableLayers):{}}_validLayer(e){let t=this._layerNameHash&&this._layerNameHash[e]?.name;return t!==void 0&&Object.keys(y.managedLayers).indexOf(t)<0&&(this.enabledLayerIds?.length>0?this.enabledLayerIds.indexOf(e)>-1:!0)}_validTable(e){let t=this._tableNameHash&&this._tableNameHash[e]?.name,s=t&&this.showTables;return s?y.managedTables.indexOf(t)<0&&(this.enabledTableIds?.length>0?this.enabledTableIds.indexOf(e)>-1:!0):s!==void 0}_layerSelectionChange(e){if(this._layerElement.value){let t=e||(Array.isArray(this._layerElement.value.value)?this._layerElement.value.value:[this._layerElement.value.value]);if(JSON.stringify(t)!==JSON.stringify([""])){if(!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentIds:this.selectedIds,newIds:t,ref:this.el}).defaultPrevented)return;this.selectedIds=t,this.layerSelectionChange.emit(this.selectedIds)}}}};u("map-layer-picker",m);export{m as MapLayerPicker};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{a as i}from"./PRM3M7W3.js";import"./ZSNDJE3R.js";import"./LECLO3XE.js";import"./BGWVAQHN.js";import"./GNY77HPF.js";import"./FXITJZAV.js";import"./ECVA54TZ.js";import"./2SNN45WE.js";import"./DGJOUZR5.js";import{a as m}from"./4AB2653C.js";import{B as u,c as r,d as h,f as c,q as d,w as p,x as a}from"./CQFOO7QD.js";import"./OHY2KQUC.js";var g=r`@layer{/** @license
3
+ v1.0.0-next.20250513 */
4
+ import{a as i}from"./4HNFRLEB.js";import"./2QX2DZO7.js";import"./QRM36WK6.js";import"./K4CSMHLX.js";import"./IG3I76TX.js";import"./OAJSYATY.js";import"./MSCUGG2N.js";import"./7WDOCGDK.js";import"./2HQWNDOT.js";import{a as m}from"./FIE266AU.js";import{B as u,c as r,d as h,f as c,q as d,w as p,x as a}from"./3RC2WF5B.js";import"./C44EKR3M.js";var g=r`@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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{a as e}from"./RA4WYINA.js";var o={condition:{scope:"/properties/_metric/properties/type",schema:{const:"static"}},effect:e.SHOW},c={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"string"}}}}}},effect:e.SHOW},p={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"number"}}}}}},effect:e.SHOW},s={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"date"}}}}}},effect:e.SHOW},r={condition:{scope:"/properties/_metric/properties/type",schema:{const:"dynamic"}},effect:e.SHOW},i={condition:{scope:"/properties/_metric/properties/shareable",schema:{const:!0}},effect:e.SHOW};export{o as a,c as b,p as c,s as d,r as e};
3
+ v1.0.0-next.20250513 */
4
+ import{a as e}from"./GGVX7BU3.js";var o={condition:{scope:"/properties/_metric/properties/type",schema:{const:"static"}},effect:e.SHOW},c={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"string"}}}}}},effect:e.SHOW},p={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"number"}}}}}},effect:e.SHOW},s={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"date"}}}}}},effect:e.SHOW},r={condition:{scope:"/properties/_metric/properties/type",schema:{const:"dynamic"}},effect:e.SHOW},i={condition:{scope:"/properties/_metric/properties/shareable",schema:{const:!0}},effect:e.SHOW};export{o as a,c as b,p as c,s as d,r as e};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{a as r}from"./4AB2653C.js";import{B as n,c as i,d as t,q as s,w as o}from"./CQFOO7QD.js";import"./OHY2KQUC.js";var a=i`@layer{/** @license
3
+ v1.0.0-next.20250513 */
4
+ import{a as r}from"./FIE266AU.js";import{B as n,c as i,d as t,q as s,w as o}from"./3RC2WF5B.js";import"./C44EKR3M.js";var a=i`@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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{f as n}from"./VFZGCM33.js";var o={discussion:"/ember-arcgis-opendata-components/assets/images/placeholders/discussion.png",group:"/ember-arcgis-opendata-components/assets/images/placeholders/group.png",event:"/ember-arcgis-opendata-components/assets/images/placeholders/event.png",content:"/ember-arcgis-opendata-components/assets/images/placeholders/content.png"};function g(i,a,l,e,r){var t;let c=(t=o[e])!==null&&t!==void 0?t:o.content,p=n(c,r),s;e==="group"?s={aspectRatio:1,sizeDescription:{labelKey:`${i}.fields._thumbnail.sizeDescription`}}:e==="event"?s={aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields._thumbnail.sizeDescription"},sources:["url"]}:s={aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields._thumbnail.sizeDescription"}};let m=!a||a==="thumbnail/ago_downloaded.png"?"20250425-image-picker-notice":null;return[{labelKey:e==="group"?`${i}.fields._thumbnail.label`:"shared.fields._thumbnail.label",scope:"/properties/_thumbnail",type:"Control",options:Object.assign({control:"hub-field-input-image-picker",imgSrc:l,defaultImgUrl:p,maxWidth:727,maxHeight:484,helperText:{labelKey:`${i}.fields._thumbnail.helperText`},notice:m},s)}]}export{g as a};
3
+ v1.0.0-next.20250513 */
4
+ import{f as n}from"./MCIIM4XE.js";var o={discussion:"/ember-arcgis-opendata-components/assets/images/placeholders/discussion.png",group:"/ember-arcgis-opendata-components/assets/images/placeholders/group.png",event:"/ember-arcgis-opendata-components/assets/images/placeholders/event.png",content:"/ember-arcgis-opendata-components/assets/images/placeholders/content.png"};function g(i,a,l,e,r){var t;let c=(t=o[e])!==null&&t!==void 0?t:o.content,p=n(c,r),s;e==="group"?s={aspectRatio:1,sizeDescription:{labelKey:`${i}.fields._thumbnail.sizeDescription`}}:e==="event"?s={aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields._thumbnail.sizeDescription"},sources:["url"]}:s={aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields._thumbnail.sizeDescription"}};let m=!a||a==="thumbnail/ago_downloaded.png"?"20250425-image-picker-notice":null;return[{labelKey:e==="group"?`${i}.fields._thumbnail.label`:"shared.fields._thumbnail.label",scope:"/properties/_thumbnail",type:"Control",options:Object.assign({control:"hub-field-input-image-picker",imgSrc:l,defaultImgUrl:p,maxWidth:727,maxHeight:484,helperText:{labelKey:`${i}.fields._thumbnail.helperText`},notice:m},s)}]}export{g as a};
@@ -0,0 +1,18 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250513 */
4
+ import"./3WNCCUTZ.js";import{b as O}from"./4Z3IUDH5.js";import"./QRM36WK6.js";import"./K4CSMHLX.js";import"./IG3I76TX.js";import"./OAJSYATY.js";import"./MSCUGG2N.js";import"./7WDOCGDK.js";import"./UVBA6JNL.js";import{a as F}from"./RN7TUN7E.js";import"./IRVZT2BS.js";import{c as E,d as S,j as u}from"./XOTJKE5D.js";import"./2HQWNDOT.js";import{c as T}from"./WUWWLJEX.js";import{a as f,b as _}from"./P55AP2OS.js";import{b as v}from"./U35AQBWJ.js";import{a as x}from"./FIE266AU.js";import{B as I,c as y,d as n,f as o,n as c,q as m,w,x as p}from"./3RC2WF5B.js";import"./C44EKR3M.js";var C=y`@layer{/** @license
5
+ * Copyright 2025 Esri
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}.label-override{--calcite-label-margin-bottom: 0px}.padding-start-1-4{padding-inline-start:.5rem}.panel-header-override{--calcite-panel-header-content-space: 0px}.danger-label-color{--calcite-label-text-color: var(--calcite-color-status-danger)}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.width-51{width:51px}.height-51{height:51px}}`,b=class extends w{constructor(){super(),this.defaultGlobalId=[],this.defaultLayerId="",this.defaultOid=[],this.enableAutoRefresh=!1,this.enableColumnReorder=!0,this.enableCSV=!1,this.enableInlineEdit=!1,this.enableShare=!1,this.featureSelectionMode="multiple",this.selectedRelatedIds=[],this.honorMapFieldSettings=!1,this.isMobile=!1,this.mapHidden=!1,this.showOnlyUpdatableLayers=!1,this.selectedIds=[],this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!1,this.zoomAndScrollToSelected=!1,this.createFilterModal=!0,this._allIds=[],this._csvExporting=!1,this._fetchingData=!1,this._filterActive=!1,this._filterOpen=!1,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=[],this._translations=x({name:"layer-table",blocking:!0}),this._fullTextSearchInfo=[],this._searchPlaceHolder="",this._size=0,this._queryingData=!1,this._editEnabled=!1,this._defaultFilterHonored=!1,this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._definitionExpression="",this._deleteEnabled=!1,this._filterList=f(),this._floorExpression="",this._floorField="",this._floorFacility="",this._floorLevel="",this._floorSite="",this._layerExpressions=[],this._loaded=!1,this._shareNode=f(),this._toolbar=f(),this._searchExpression="",this._skipEditCheck=!1,this._tempSelectedIds=[],this._outOFExtentOids=[],this._shouldUpdateTableOnExtentChange=!0,this.featureSelectionChange=c(),this.toggleFilter=c(),this.showDelete=c(),this.relatedRecordToggled=c(),this.listenOn(window,"beforeMapInfoChange",this.beforeMapInfoChange,{capture:!0}),this.listenOn(window,"editorInitialized",this.editorInitialized),this.listenOn(window,"closeEdit",this.closeEdit),this.listenOn(window,"selectionChanged",this.selectionChanged),this.listenOn(window,"beforeLayerSelectionChange",this.beforeLayerSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"editsComplete",this.editsComplete),this.listenOn(window,"facilityChanged",this.facilityChanged),this.listenOn(window,"levelChanged",this.levelChanged),this.listenOn(window,"siteChanged",this.siteChanged),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"clearSelection",this.clearSelection),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"featuresSelected",this.featuresSelected),F(window)}static{this.properties={appLayout:1,defaultGlobalId:0,defaultLayerId:1,defaultOid:0,enableAutoRefresh:5,enableColumnReorder:5,enableCSV:5,enableInlineEdit:5,enableShare:5,featureSelectionMode:1,selectedRelatedIds:0,honorMapFieldSettings:5,isMobile:5,mapHidden:5,mapInfo:0,mapView:0,showOnlyUpdatableLayers:5,selectedIds:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,zoomAndScrollToSelected:5,zoomToScale:9,createFilterModal:5,_allIds:16,_csvExporting:16,_fetchingData:16,_filterActive:16,_filterOpen:16,_layer:16,_selectAllActive:16,_showHideOpen:16,_showOnlySelected:16,_toolInfos:16,_translations:16,_fullTextSearchInfo:16,_searchPlaceHolder:16,_size:16,_queryingData:16}}static{this.styles=C}static{this.shadowRootOptions=m}willUpdate(e){if(e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("defaultOid")&&this.defaultOidWatchHandler(),e.has("defaultGlobalId")&&this.defaultGlobalIdWatchHandler(),e.has("enableCSV")&&this.enableCSVWatchHandler(),e.has("enableInlineEdit")&&this.enableInlineEditWatchHandler(),e.has("mapHidden")&&this.mapHiddenWatchHandler(),e.has("isMobile")&&this.isMobileWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("_layer")&&this._layerWatchHandler(),e.has("selectedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedIds"))!==JSON.stringify(this.selectedIds))&&this.selectedIdsWatchHandler(),e.has("selectedRelatedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedRelatedIds"))!==JSON.stringify(this.selectedRelatedIds))&&this.selectedRelatedIdsWatchHandler(),e.has("_translations")){let t=this._translations._lang,i=e.get("_translations")?._lang;t&&i&&t!==i&&this._initToolInfos()}}async appLayoutWatchHandler(){await this._initToolInfos(),this._updateShareUrl()}async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}async enableCSVWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}async mapHiddenWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}async isMobileWatchHandler(){!this._toolInfos&&!this.isMobile&&await this._initToolInfos()}async mapInfoWatchHandler(){this._table&&this._resetColumnTemplates()}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._floorExpression="",this._searchExpression="undefined",this.mapView.highlights=[{name:"default",color:"#00FFFF"},{name:"current-selection",color:"#ff00ff"},{name:"temporary",color:"#FFFF00"}],this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils?.on(()=>this.mapView,"click",e=>{this._mapClicked(e)}))}async _layerWatchHandler(){this._fetchingData=!0,await this._layer?.when(async()=>{this._definitionExpression=this._layer?.definitionExpression||"",this._floorField=this._layer?.floorInfo?.floorField||"",this._updateFloorDefinitionExpression(),await this._resetTable(),this.createFilterModal&&this._initLayerExpressions(),this._updateShareUrl(),this._fetchingData=!1})}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1),this.selectedIds.length>0&&(this._table.rowHighlightIds.removeAll(),this._table.rowHighlightIds.add(this.selectedIds[0])),this.selectedIds.length===0&&setTimeout(()=>{this.featureSelectionChange.emit(this.selectedIds)},700)}async selectedRelatedIdsWatchHandler(){this._validateEnabledActions(),this.selectedRelatedIds.length>0&&(this._relatedFeatureTable?.rowHighlightIds.removeAll(),this._relatedFeatureTable?.rowHighlightIds.add(this.selectedRelatedIds[0]))}async closeFilter(){await this._closeFilter()}async filterReset(){this._filterByExtentHandle&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle.remove(),this._filterByExtentHandle=void 0),await this._handleFilterListReset()}async filterUpdate(e,t){await this._handleFilterUpdate(e),t?(this._shouldUpdateTableOnExtentChange=!0,this._handleTableOnMapExtent()):t===!1&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle?.remove(),this._filterByExtentHandle=void 0,await this._updateAllIds())}async validateTableUpdate(e){this._shouldUpdateTableOnExtentChange=e}async validateActiveEdits(){return this._validateActiveEdits([],this.selectedIds)}async refresh(){this._table&&await this._refresh()}async beforeMapInfoChange(e){let t=e.detail.ref,i=e.detail.mapInfo;if(this._hasPendingEdits()){e.preventDefault();let s=await this._validateActiveEdits([],this.selectedIds);await t.setMapByID(s?i.id:e.detail.currentId,!s)}}async editorInitialized(e){this._shouldUpdateTableOnExtentChange=!1,this._editor=e.detail}async closeEdit(){this._shouldUpdateTableOnExtentChange=!0,this._filterByExtentHandle&&this._handleTableOnMapExtent()}async selectionChanged(e){let t=e.detail.selectedFeature[0],i=Number(t.getObjectId()),s=this._table;if(s.rowHighlightIds.length&&s.rowHighlightIds.removeAll(),s.rowHighlightIds.add(i),this._highlightFeatures(i),this.zoomAndScrollToSelected&&s&&this.mapView){let a=s.viewModel.getObjectIdIndex(i);s.scrollToIndex(a);let h=t.layer,r=this.mapView.allLayerViews.toArray(),l;r.some(async d=>d.layer.title===h?.title&&d.layer.type==="feature"?(l=d,this.mapView&&await u([i],l,this.mapView,!0,void 0,this.zoomToScale),!0):!1)}}async beforeLayerSelectionChange(e){if(this._hasPendingEdits()){e.preventDefault();let t=e.detail.ref,i=await this._validateActiveEdits([],this.selectedIds);return e.detail.selectedIds?await t.setLayerByIds(i?e.detail.newIds:e.detail.currentIds,!0):await t.setLayerById(i?e.detail.newId:e.detail.currentId,!0)}}async layerSelectionChange(e){await this._layerSelectionChanged(e)}async editsComplete(e){let t=e.detail;(t==="delete"||t==="add")&&(this._allIds=await this.queryAllIds()),await this._refresh()}async facilityChanged(e){this._floorFacility=e.detail,this._updateFloorDefinitionExpression()}async levelChanged(e){this._floorLevel=e.detail,this._updateFloorDefinitionExpression()}async siteChanged(e){this._floorSite=e.detail,this._updateFloorDefinitionExpression()}async noLayersFound(){this._layer=void 0,this._allIds=[],this._clearSelection()}async clearSelection(){await this._validateActiveEdits([],this.selectedIds)&&this._clearSelection()}async mapChanged(){this._queryingData=!1,this._clearSelection()}async featuresSelected(e){e.detail.forEach(t=>{let i=this._table?.highlightIds.indexOf(t);i&&i<0&&this._table?.highlightIds.add(t)})}async load(){await this._initModules(),await this._initToolInfos()}render(){let e=this._fetchingData?"display-none":"",t=this._fetchingData?"":"display-none",i=this._queryingData?"":"display-none",s=this._size.toString(),a=this.selectedIds.length.toString(),h=this.isMobile?"height-full":"height-full-adjusted",r=this._canShowFullTextSearch();return this._validateActiveActions(),n`<div><calcite-scrim class=${p(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell><div class=${`width-full ${h}`}><calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker("header-actions-start")}${this._getTableControlRow("header-content")}${this._getActionsEnd("header-actions-end")}${r&&n`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${l=>void this._searchTextChanged(l)} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder??o} type=search></calcite-input></div>`||""}<calcite-loader class=${p(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${p(e)} ${_(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile?void 0:n`<div class="bottom-left text-color height-19" id=solutions-selected-count-div>${(this._translations.recordsTotal?.replace("{{total-number-of-records}}",s)+" | "+this._translations.recordsSelected.replace("{{selected-number-of-records}}",a)).replace("{{total}}",s).replace("{{selected}}",a)}</div>`}</calcite-shell>${this.createFilterModal&&this._filterModal()||""}</div>`}async _initModules(){let[e,t,i,s]=await v(["esri/widgets/FeatureTable","esri/core/reactiveUtils","esri/widgets/FeatureTable/support/TableTemplate","esri/rest/support/RelationshipQuery"]);this.FeatureTable=e,this.reactiveUtils=t,this.TableTemplate=i,this.RelationshipQuery=s}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),this._searchFullText()}async _searchFullText(){let e=[],t=!1;if(this._showOnlySelected)e=this._tempSelectedIds,t=!0;else if(await this._validateActiveEdits([],this.selectedIds))this._clearSelection(),this._tempSelectedIds=[];else return;this._searchExpression&&this._clearSearchDefinitionExpression();let i=[];if(this._fullTextSearchInfo?.length&&this._fullTextSearchInfo[0].searchTerm){let s=this._layer?.createQuery();s.fullText=this._fullTextSearchInfo,i=this._layer?await this._layer.queryObjectIds(s):[],t&&e?.length&&(i=i.filter(a=>e.includes(a))),await this._updateSearchDefinitionExpression(i?.length?i:[-1])}t&&i?.length&&(this._showOnlySelected=!0,this._table?.highlightIds.addMany(i.reverse())),await new Promise(s=>setTimeout(s,800)),await this._updateAllIds()}_clearSearchDefinitionExpression(){let e=this._layer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&this._layer&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._layer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._layer.definitionExpression=e.replace(this._searchExpression,"")),this._searchExpression=""}async _updateSearchDefinitionExpression(e){let t=this._layer?.definitionExpression;if(this._layer)if(e?.length&&t){let i=`objectId in(${e})`;this._layer.definitionExpression=this._searchExpression&&t?.indexOf(this._searchExpression)>-1?t.replace(this._searchExpression,i):t?`${t} AND (${i})`:i,this._searchExpression=i}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return this._layer?.capabilities?.query?.supportsFullTextSearch&&this._layer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._layer?.capabilities?.query?.supportsFullTextSearch){let e=this._layer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(s=>{t.push(...s.fields.split(","))});let i=[];t.forEach(s=>{let a=this._layer?.getField(s.trim());a?.alias&&i.push(a.alias)}),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{fields}}",i.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_getMapLayerPicker(e){let t=this.isMobile?"border-top":"";return n`<div class=${`border-end ${t}`} id=solutions-map-layer-picker-container slot=${e??o}><map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this._layer?[this._layer?.id]:[]} show-single-layer-as-label show-tables type=dropdown></map-layer-picker></div>`}_getActionsEnd(e){let t=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer,i=this._relatedFeatureTable||this._table;return n`<div class="display-flex" slot=${e??o}><field-selection .layer=${t} .mapView=${this.mapView} .table=${i}></field-selection>${this.enableShare&&!this.isMobile?this._getShare("share"):void 0}</div>`}_getTableControlRow(e){return n`<div class=${"height-51-px width-full display-flex"} slot=${e??o} ${_(this._toolbar)}>${this._getActionBar()}</div>`}_getActionBar(){return n`<calcite-action-bar class=width-full expand-disabled id=${this._getId("bar")??o} layout=horizontal><calcite-action-group>${this.isMobile?void 0:this._getActions()}</calcite-action-group></calcite-action-bar>`}_getActions(){return this._toolInfos?.reduce((e,t)=>(t&&e.push(t.isDanger?this._getDangerAction(t.icon,t.label,t.func,t.disabled):this._getAction(t.active,t.icon,t.indicator,t.label,t.func,t.disabled,!!t.loading)),e),[])}_validateEnabledActions(){let e=this._featuresSelected(),t=this.selectedIds.length>1&&this._layer?.capabilities?.operations?.supportsUpdate,i=["zoom-to-object","pencil","trash","erase","selected-items-filter"];this._toolInfos?.forEach(s=>{s&&i.indexOf(s.icon)>-1&&(s.disabled=s.icon==="pencil"?!t:!e)})}_validateActiveActions(){let e=["filter","list-check-all","selected-items-filter"];this._toolInfos?.forEach(t=>{t&&e.indexOf(t.icon)>-1&&(t.icon==="filter"&&(t.indicator=this._filterActive),t.icon==="list-check-all"&&(t.active=this._selectAllActive),t.icon==="selected-items-filter"&&(t.active=this._showOnlySelected,t.label=this._showOnlySelected?this._translations.showAll:this._translations.showSelected))})}async _initToolInfos(){let e=this._featuresSelected(),t=this._relatedFeatureTable?this._relatedFeatureTable.layer.isTable:this._layer?.isTable;this.selectedIds.length>1&&this._layer?.capabilities?.operations.supportsUpdate;let i=!this.mapHidden&&!t,s=!this._relatedFeatureTable&&this._hasFilterExpressions(),a=this._featuresEmpty(),h=this.featureSelectionMode==="single",r=this.enableCSV;if(this._relatedFeatureTable){let d=await this._queryRelatedFeatures();r=Object.keys(d).length>0}let l=[];s&&l.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.createFilterModal?this._toggleFilter():this.toggleFilter.emit(),disabled:!1}),i&&l.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!e}),this._deleteEnabled&&l.push({active:!1,icon:"trash",indicator:!1,label:this._translations.delete,func:()=>this._showDelete(),disabled:!e,isDanger:!0}),l.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>void this.clearSelection(),disabled:!e}),this._relatedFeatureTable||l.push({active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!e}),!h&&!this._relatedFeatureTable&&l.push({active:!1,icon:"list-check-all",indicator:!1,func:async()=>await this._selectAll(),label:this._translations.selectAll,disabled:a}),!h&&!this._relatedFeatureTable&&l.push({active:!1,icon:"compare",indicator:!1,func:async()=>await this._switchSelected(),label:this._translations.switchSelected,disabled:a}),l.push({active:!1,icon:"refresh",indicator:!1,func:()=>this._refresh(),label:this._translations.refresh,disabled:!1}),r&&l.push({active:!1,icon:"export",indicator:!1,func:()=>void this._exportToCSV(),label:this._translations.exportCSV,loading:this._csvExporting,disabled:a}),this._toolInfos=[...l]}_updateFloorDefinitionExpression(){if(this._floorField&&this._floorLevel){let e=`${this._floorField} = '${this._floorLevel}'`,t=this._layer?.definitionExpression;this._layer&&(this._layer.definitionExpression=t&&this._floorExpression&&t?.indexOf(this._floorExpression)>-1?t.replace(this._floorExpression,e):t?`${t} AND (${e})`:e),this._floorExpression=e}}_featuresSelected(){return this._relatedFeatureTable?this._relatedFeatureTable.highlightIds.items.length>0:this.selectedIds.length>0}_featuresEmpty(){return this._allIds?.length===0}_hasFilterExpressions(){let e=[],t=this._layer?.id;return this.mapInfo?.filterConfig?.layerExpressions&&t!==void 0&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===t)),e.length>0}_getAction(e,t,i,s,a,h,r){let l=this._layer===void 0?!0:h;return n`<calcite-action .active=${e} appearance=solid .disabled=${l} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${r} @click=${a} text text-enabled><div class="display-flex"><calcite-icon .icon=${t} scale=s></calcite-icon><calcite-label class="label-override padding-start-1-4">${s}</calcite-label></div></calcite-action>`}_showDelete(){this.showDelete.emit({ids:this._getIds()})}_getShare(e){return this.mapView&&n`<div id=${this._getId(e)??o}><instant-apps-social-share class="height-51 width-51 display-flex" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${_(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom",e,this._translations.share)}</div>`||""}_updateShareUrl(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this.mapInfo?.id?t.searchParams.set("webmap",this.mapInfo.id):t.searchParams.delete("webmap"),this._layer?.id?t.searchParams.set("layer",this._layer.id):t.searchParams.delete("layer"),this.selectedIds?.length>0?t.searchParams.set("oid",this.selectedIds.join(",")):t.searchParams.delete("oid"),this.appLayout&&t.searchParams.set("applayout",this.appLayout),this._shareNode.value&&(this._shareNode.value.shareUrl=t.href)}_getToolTip(e,t,i){return document.getElementById(t)?n`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${i}</span></calcite-tooltip>`:void 0}_getId(e){return`solutions-action-${e}`}_getDangerAction(e,t,i,s){let a=this._layer===void 0?!0:s;return n`<div class="display-flex" id=${this._getId(e)??o}>${n`<calcite-action appearance=solid .disabled=${a} id=${e??o} @click=${i} text><calcite-icon class="danger-icon-color" .icon=${e} scale=s></calcite-icon><calcite-label class="label-override padding-start-1-4 danger-label-color">${t}</calcite-label></calcite-action>`}${this._getToolTip("bottom",e,t)}</div>`}_getIds(){let e=this._relatedFeatureTable??this._table;return this._relatedFeatureTable&&this._table&&this._table.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(e=this._table),e?.highlightIds.map(t=>Number.parseInt(t.toString(),10)).toArray()??[]}onTableNodeCreate(e){this._tableNode=e}async _getTable(e,t){this._layer&&(await this._layer.when(()=>{this._table=this.FeatureTable&&new this.FeatureTable({autoRefreshEnabled:this.enableAutoRefresh,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,relatedRecordsEnabled:!0,editingEnabled:this._editEnabled&&this.enableInlineEdit,highlightEnabled:!1,multiSortEnabled:!1,attachmentsEnabled:!0,visibleElements:{columnDescriptions:!1,header:!1,menu:!1,progress:!1},tableTemplate:{columnTemplates:t},container:e})}),await this._table?.when(()=>{this._table?.viewModel.addHandles(this._table.highlightIds.on("change",i=>{this._handleOnChange(i)})),this._table?.viewModel.addHandles(this._table.on("cell-pointerover",this.tempHighlightOnHover.bind(this))),this._table?.viewModel.addHandles(this._table.on("cell-pointerout",this._removeTempHighlight.bind(this))),this.listenOn(this._tableNode,"mouseleave",this._removeTempHighlight),this.reactiveUtils&&this._table?.viewModel.addHandles(this.reactiveUtils.watch(()=>this._table.size,i=>{this._size=i})),this.reactiveUtils?.watch(()=>this._table?.relatedTable,async i=>{if(i){if(i.rowHighlightIds.length){let s={added:[i.rowHighlightIds.getItemAt(0)],removed:[]};this._handleOnChange(s)}if(this._relatedFeatureTable=i,typeof i.layer?.id=="string"&&i.layer?.fields){let s=this._getColumnTemplates(i.layer.id,i.layer.fields);this._relatedFeatureTable.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:s})}i.highlightIds.on("change",s=>{this._handleOnChange(s)})}else{this.selectedRelatedIds=[],this._relatedFeatureTable=void 0;let s=this._layer;this._refresh(),s&&this.relatedRecordToggled.emit(s),this._finishOnChange()}await this._initToolInfos()})}))}async _handleOnChange(e){if(!await this._validateActiveEdits([...e.added],[...e.removed]))return;let t=[...this._getIds()],i=this._getSelectedLayer(t);this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(i=this._layer,await this._initToolInfos()),i&&this.relatedRecordToggled.emit(i),this.featureSelectionMode==="single"&&(this._relatedFeatureTable&&t.length>1?(this._relatedFeatureTable.highlightIds.remove(t[0]),t.shift()):t.length>1&&!this._selectAllActive&&(this._table?.highlightIds.remove(t[0]),t.shift())),!this._relatedFeatureTable||this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]?(this.selectedRelatedIds=[],this.selectedIds=t.reverse(),this._tempSelectedIds=[...this.selectedIds],this._highlightFeatures(this.selectedIds[0])):this.selectedRelatedIds=t.reverse(),this._finishOnChange()}async _validateActiveEdits(e,t){let i=!0;if(this._editor&&!this._skipEditCheck){if(this._hasPendingEdits()){let s=!1;try{this._editor.viewModel.activeWorkflow&&await this._editor.viewModel.activeWorkflow.cancel({force:!1})}catch(a){s=a?.name==="workflow:cancel-denied"}if(s){let a=this._relatedFeatureTable&&this._relatedFeatureTable.highlightIds.length>0?this._relatedFeatureTable:this._table;i=!1,this._skipEditCheck=!0,e.length>0?a?.highlightIds.removeMany(e):t.length>0&&a?.highlightIds.addMany(t)}}}else i=!this._skipEditCheck,this._skipEditCheck=!1;return this._shouldUpdateTableOnExtentChange=i,i}_hasPendingEdits(){let e=this._editor?.viewModel?.hasPendingEdits,t=this._editor?.activeWorkflow?.activeWorkflow?.hasPendingEdits;return e||t}_finishOnChange(){this._showOnlySelected&&!this._relatedFeatureTable&&(this._table&&this._featuresSelected()?this._table.filterBySelectionEnabled=!0:this._toggleShowSelected());let e=this._getSelectedIds();setTimeout(()=>{this.featureSelectionChange.emit(e)},50)}tempHighlightOnHover(e){if(this._removeTempHighlight(),this._selectedLayerView){let t=e.feature;this._temporaryFeatureHandle=this._selectedLayerView?.highlight([t],{name:"temporary"})}}_removeTempHighlight(){this._temporaryFeatureHandle&&this._temporaryFeatureHandle.remove()}_highlightFeatures(e){if(this._clearHighlights(),this.selectedIds.length>0&&this._selectedLayerView&&(this._currentFeatureHighlightHandle=this._selectedLayerView?.highlight([e],{name:"current-selection"}),this.selectedIds.length>1)){let t=this.selectedIds.filter(i=>i!==e);this._defaultFeaturesHandle=this._selectedLayerView?.highlight(t,{name:"default"})}}_clearHighlights(){this._removeTempHighlight(),this._currentFeatureHighlightHandle&&this._currentFeatureHighlightHandle.remove(),this._defaultFeaturesHandle&&this._defaultFeaturesHandle.remove()}_resetColumnTemplates(){if(this._layer){let e=this._getColumnTemplates(this._layer?.id,this._layer?.fields);e?.length===0?this._tableNode?.classList.add("display-none"):this._tableNode?.classList.remove("display-none");let t=this._table?.tableTemplate?.columnTemplates,i=t&&e&&t.length!==e.length||e?.some((s,a)=>t&&t[a]?JSON.stringify(t[a])!==JSON.stringify(s):!1);if(this._table&&e&&(i||!this._columnsInfo)){this._table.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:e});let s=e.map(a=>a.fieldName);this._initColumnsInfo(s)}}}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await this.queryAllIds(),!this._table&&this._layer){let e=this._getColumnTemplates(this._layer.id,this._layer?.fields);this._tableNode&&await this._getTable(this._tableNode,e)}else this._table&&(this._table.view=this.mapView,this._table.layer=this._layer);await this._initLayerRefresh(),this._checkEditEnabled(),this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,await this._table.when(),setTimeout(()=>{this._loaded||this.finishLoading()},1e3),await this.reactiveUtils?.once(()=>this._table?.state==="loaded").then(async()=>{await this.finishLoading()}))}async finishLoading(){try{this._loaded=!0,this._table?.highlightIds.removeAll(),this._table.objectIds.removeAll(),this._resetColumnTemplates(),this._showOnlySelected=!1,await this._handleDefaults(),await this._sortTable(),await this._initToolInfos(),["esri-feature-table","esri-widget"].forEach(e=>{this._tableNode&&!this._tableNode.classList.contains(e)&&this._tableNode.classList.add(e)})}catch(e){console.log(e)}}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._layer&&(this._refreshHandle=this._layer.on("refresh",e=>{e.dataChanged&&this._updateAllIds()}))}async _updateAllIds(){let e=await this.queryAllIds(),t=this.selectedIds.filter(i=>this._allIds.indexOf(i)>-1);(JSON.stringify(e)!==JSON.stringify(this._allIds)||JSON.stringify(this.selectedIds)!==JSON.stringify(t))&&(this._allIds=e,this.selectedIds=t,await this._refresh())}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=[],this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId&&this.defaultGlobalId?.length>0&&this._table&&this._layer){let e=await T(this.defaultGlobalId,this._layer),t=e?.length>0?e.map(i=>Number(i.getObjectId())):void 0;t&&await this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=[],this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(e){let t=this._table?.columns.reduce((s,a)=>((!e||e?.indexOf(a.name)>-1)&&(s[a.name]=!a.hidden),s),{}),i=this._table?.columns.map(s=>s.name);(e&&i?e.filter(s=>i.indexOf(s)<0):[]).forEach(s=>{t[s]=!0}),this._columnsInfo=e?e.reduce((s,a)=>(s[a]=t[a],s),{}):t}async _selectDefaultFeature(e){e.length>0&&this._table?.highlightIds.addMany(e)}_checkEditEnabled(){this._editEnabled=!!(this._layer?.editingEnabled&&this._layer?.capabilities?.operations.supportsUpdate),this._deleteEnabled=!!(this._layer?.editingEnabled&&this._layer?.capabilities?.operations.supportsDelete)}async _sortTable(){let e=this._layer?.objectIdField,t="desc",i,s=this.mapInfo?.layerOptions?.layers,a=this._layer?.id;s&&s.length>0&&a!==void 0&&(i=s.filter(h=>h.id===a),i&&i.length>0&&(i=i[0],i.sortField&&i.fields?.includes(i.sortField)&&(e=i.sortField),t=i?.sortOrder?i.sortOrder:"desc")),this._table&&this._layer&&(await this._table.when(),await this._layer.when(()=>{e&&this._table?.sortColumn(e,t)}))}_filterModal(){return n`<calcite-dialog class="filter-content-space" .heading=${this._translations.filter.replace("{{title}}",this._layer?.title||"")} id=solutions-filter-dialog kind=brand modal @calciteDialogClose=${()=>void this._closeFilter()} .open=${this._filterOpen} width-scale=s>${this.mapView&&n`<instant-apps-filter-list close-btn .closeBtnOnClick=${()=>void this._closeFilter()} combobox-overlay-positioning=fixed .layerExpressions=${this._layerExpressions} @filterListReset=${()=>void this._handleFilterListReset()} @filterUpdate=${()=>this._filterList?.value?.filterCount&&void this._handleFilterUpdate(this._filterList?.value?.filterCount>0)} .view=${this.mapView} ${_(this._filterList)}></instant-apps-filter-list>`||""}</calcite-dialog>`}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(e){if(this._floorExpression&&this._layer){let t=this._layer.definitionExpression,i=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=t&&this._floorField&&t.indexOf(`${this._floorField} = '`)>-1?t.replace(i,this._floorExpression):t?`${t} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=e,this._updateShareUrl(),await this._searchFullText()}_handleTableOnMapExtent(){this._table&&(this._filterByExtentHandle=this.reactiveUtils?.when(()=>this.mapView?.stationary,async()=>{if(this._shouldUpdateTableOnExtentChange&&this.appLayout==="splitView"){if(await new Promise(e=>setTimeout(e,800)),this._table&&this.mapView){this._table.filterGeometry=this.mapView.extent;let e={geometry:this.mapView.extent},t=this._layer&&await this._layer.queryObjectIds(e),i=this.selectedIds.filter(a=>!t?.includes(a)),s=this._outOFExtentOids.filter(a=>t?.includes(a));i.length>0&&(this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table.highlightIds.removeMany(i),this._outOFExtentOids=[...this._outOFExtentOids,...i]),s.length>0&&(this.selectedIds=[...new Set([...this.selectedIds,...s])],this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(this.selectedIds.reverse()),this._outOFExtentOids=this._outOFExtentOids.filter(a=>!s.includes(a)))}this._allIds=await this.queryAllIds()}},{initial:!0}))}async _closeFilter(){this._filterOpen&&(this._allIds=await this.queryAllIds(),this._filterOpen=!1)}async queryAllIds(){if(this._layer){let e=this._layer.createQuery();return e.geometry=this._filterByExtentHandle&&this.mapView?this.mapView.extent:null,e.where=this._layer.definitionExpression||"1=1",await this._layer.queryObjectIds(e)}else return[]}async _mapClicked(e){let t={include:this._layer},i=await this.mapView?.hitTest(e.screenPoint,t);if(i&&i.results.length>0){let s=i.results;if(this.featureSelectionMode==="single"){this._table?.highlightIds.removeAll();let a=s[0].graphic.getObjectId();if(a){let h=this._table?.highlightIds.indexOf(a);h!==void 0&&h<0&&this._table?.highlightIds.add(a)}}else s.forEach(a=>{let h=Number(a.graphic.getObjectId()),r=this._table?.highlightIds.indexOf(h);r&&r<0&&h&&this._table?.highlightIds.add(h)});this._showOnlySelected&&this._table&&(this._table.filterBySelectionEnabled=!0)}else await this.clearSelection()}async _selectAll(){let e=this._allIds,t=e.filter(i=>this.selectedIds.indexOf(i)<0);await this._validateActiveEdits(t,this.selectedIds)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(e),this.selectedIds=e,this._finishOnChange(),this._selectAllActive=!0):this._skipEditCheck=!1}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._table&&(this._table.filterBySelectionEnabled=this._showOnlySelected)}_clearSelection(){this._relatedFeatureTable||(this.selectedIds=[],this._outOFExtentOids=[],this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table?.highlightIds.removeAll(),this._clearHighlights(),this._table?.rowHighlightIds.removeAll()),this._relatedFeatureTable&&(this._relatedFeatureTable?.highlightIds.removeAll(),this.selectedRelatedIds=[]),this._finishOnChange()}_toggleFilter(){this._filterOpen=!this._filterOpen}_initLayerExpressions(){let e=this.mapInfo?.filterConfig?.layerExpressions;this._layerExpressions=e?e.filter(t=>t.id===this._layer?.id):[],this._filterList.value&&(this._filterList.value.layerExpressions=this._layerExpressions,this._filterActive=this._layerExpressions.filter(t=>t.expressions.filter(i=>i.active).length>0).length>0)}async _switchSelected(){let e=[...this.selectedIds],t=this._allIds.reduce((i,s)=>(e.indexOf(s)<0&&i.push(s),i),[]).sort((i,s)=>i-s);await this._validateActiveEdits(t,e)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()):this._skipEditCheck=!1}async _exportToCSV(){let e=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer;if(!e)return;let t={},i=this._getIds();if(this._relatedFeatureTable?.tableParent&&this._relatedFeatureTable.rowHighlightIds.length===0){let h=this._relatedFeatureTable.tableParent.highlightIds?.getItemAt(0);if(h!==void 0){let r=await this._queryRelatedFeatures(),l=[];r&&r[h]?.features&&(r[h].features.forEach(d=>{d.attributes&&l.push(d.attributes[e.objectIdField])}),i=l.length>0?l:[])}}t[e.id]={selectionSetNames:[e.title||""],ids:i,layer:e};let s=this._relatedFeatureTable??this._table;if(!s)return;let a=s&&s.columns.toArray().reduce((h,r)=>{if(!r.hidden){let l=r?.name||r?.fieldName;l&&h.push(l.toLocaleLowerCase())}return h},[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,this.mapView?.map&&await O(this.mapView.map,t,!1,!1,!0,a,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}async _queryRelatedFeatures(){let e=this._relatedFeatureTable?this._relatedFeatureTable?this._relatedFeatureTable.layer:this._relatedFeatureTable.tableParent?.layer:this._layer,t=this._relatedFeatureTable?.tableParent?.highlightIds?.items[0],i=this._relatedFeatureTable?.tableParent?.layer,s=e?.relationships?.find(h=>i.relationships?.some(r=>r.id===h.id)),a=this.RelationshipQuery&&new this.RelationshipQuery({objectIds:[t],outFields:["*"],relationshipId:s?.id});return a&&await i.queryRelatedFeatures(a).catch(async h=>{console.error(h)})}_updateToolInfoLoading(e,t){this._toolInfos.some(i=>i?.icon===e?(i.loading=t,!0):!1)}async _refresh(){if(await this._validateActiveEdits([],this.selectedIds)){this._table&&await this._table.refresh(),this._relatedFeatureTable&&await this._relatedFeatureTable.refresh(),this._allIds=await this.queryAllIds();let e=this._getSelectedLayer(this.selectedRelatedIds);e&&this.relatedRecordToggled.emit(e);let t=this._getSelectedIds();this.featureSelectionChange.emit(t)}}_getSelectedIds(){let e;return this._relatedFeatureTable?this.selectedRelatedIds.length>0?e=this.selectedRelatedIds:e=this._relatedFeatureTable.tableParent?.highlightIds.toArray()??[]:e=this.selectedIds,e}_getSelectedLayer(e){let t;return this._relatedFeatureTable?e.length>0?t=this._relatedFeatureTable.layer:t=this._relatedFeatureTable.tableParent?.layer:t=this._layer,t}async _zoom(){this._layer&&this.mapView&&await u(this.selectedIds,this._selectedLayerView,this.mapView,!0,void 0,this.zoomToScale)}async _layerSelectionChanged(e){let t=e.detail[0];if(t!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0;let i=this.mapView&&await S(this.mapView,t);i&&await i.when(async()=>{this._selectedLayerView=!i.isTable&&this.mapView?await E(this.mapView,i.id):null,this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._shouldUpdateTableOnExtentChange=!0,this._layer=i,await this._initToolInfos(),this._getFullTextSearchInfo()})}this._fetchingData=!1}_getColumnTemplates(e,t){let i;this.mapInfo?.layerOptions?.layers.some(l=>l.id===e?(i=l,!0):!1);let s=this._layer?.attributeTableTemplate?.elements,a=[];s?.length>0&&this.honorMapFieldSettings&&(a=s.map(l=>l.fieldName));let h=i?.fields&&i?.fieldOrder?i.fieldOrder.filter(l=>i?.fields&&i.fields.indexOf(l)>-1):a.length>0?a:void 0,r;return t&&(r=t.reduce((l,d)=>{let g={type:"field",fieldName:d.name,label:d.alias,menuConfig:this._getMenuConfig(d.name)};return i&&i?.fields?i.fields.indexOf(d.name)>-1&&l.push(g):a.length>0?a.indexOf(d.name)>-1&&l.push(g):l.push(g),l},[])),r?h?r?.sort(this._sortFields.bind(this,h)):r:[]}_sortFields(e,t,i){return e?.indexOf(t.fieldName)-e.indexOf(i.fieldName)}_getMenuConfig(e){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(e)}}]}}_handleHideClick(e){this._columnsInfo&&this._table&&(this._columnsInfo[e]=!1,this._table.hideColumn(e),this._table.tableTemplate&&this._table.tableTemplate.columnTemplates.forEach(t=>{t.fieldName===e&&(t.visible=!1)}))}};I("layer-table",b);export{b as LayerTable};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{B as h,c as n,d as s,f as c,n as l,q as o,w as d}from"./CQFOO7QD.js";import"./OHY2KQUC.js";var p=n`@layer{/** @license
3
+ v1.0.0-next.20250513 */
4
+ import{B as h,c as n,d as s,f as c,n as l,q as o,w as d}from"./3RC2WF5B.js";import"./C44EKR3M.js";var p=n`@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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
3
+ v1.0.0-next.20250513 */
4
4
  function a(t){let e=t;return t.match(/(qaext|\.mapsqa)\.arcgis.com/)?e="https://qaext.arcgis.com":t.match(/(devext|\.mapsdevext)\.arcgis.com/)?e="https://devext.arcgis.com":t.match(/(www|\.maps)\.arcgis.com/)&&(e="https://www.arcgis.com"),e}export{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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{a,b}from"./ARPKSGRG.js";import"./LKUFS2W4.js";import"./LZCG3PUX.js";import"./5EH5ABNA.js";import"./OHY2KQUC.js";export{a as ContentEditorTypes,b as ContentSchema};
3
+ v1.0.0-next.20250513 */
4
+ import{a,b}from"./NLQ42NQW.js";import"./XW3XMCXE.js";import"./ADVQIEJR.js";import"./HZFEYQGX.js";import"./C44EKR3M.js";export{a as ContentEditorTypes,b as ContentSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{a,b}from"./WFKJMOI2.js";import"./LKUFS2W4.js";import"./LZCG3PUX.js";import"./5EH5ABNA.js";import"./OHY2KQUC.js";export{a as InitiativeTemplateEditorTypes,b as InitiativeTemplateSchema};
3
+ v1.0.0-next.20250513 */
4
+ import{a,b}from"./YMECWXNY.js";import"./XW3XMCXE.js";import"./ADVQIEJR.js";import"./HZFEYQGX.js";import"./C44EKR3M.js";export{a as InitiativeTemplateEditorTypes,b as InitiativeTemplateSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{a as O}from"./NLKCNLQB.js";import{a as D}from"./VDIZRWGH.js";import{h as N,i as b}from"./F5K2FGR2.js";var k=D({data:{},relationshipRampExpandStates:{},compact:!1}),P=k.state,K=k;function W(e,t,o){return n=>{let c=n?.layer?.type;if(c==="feature"||c==="group"){let i=j(t,n,o).then(r=>r);i&&e.push(i);let a=r=>{let s=j(t,r,o).then(l=>l);s&&e.push(s)};n.children.forEach(r=>{a(r),r?.children?.length>0&&r.children.forEach(s=>{a(s),s?.children?.length>0&&s.children.forEach(l=>{a(l)})})})}}}async function j(e,t,o){try{let n=t?.layer?.type==="group",c=t?.layer?.layers?.some(h=>h.visible),i=t?.layer?.layers?.every(h=>!h?.legendEnabled);await o.whenOnce(()=>e?.state==="ready"),!n||n&&c?n&&i?await o.whenOnce(()=>t?.layer?.loaded):await o.whenOnce(()=>t?.ready):await o.whenOnce(()=>t?.legendElements);let a=t?.legendElements?.[0],r=new Map,s=t.layer,l=await e?.view?.whenLayerView(s),f=s.renderer?.field??"";a!==void 0&&a?.infos?.forEach(h=>{if(h.type==="symbol-table"){let y=[];h.infos.forEach(g=>{let E={count:null,selected:!1,legendElementInfo:g};y.push(E)});let d={count:null,selected:!1,legendElementInfo:h,nestedInfos:y};r.set(h.title,d)}else{let y={count:null,selected:!1,legendElementInfo:h};r.set(h.label??s.id,y)}});let u=[];return l?Promise.resolve({activeLayerInfo:t,title:l.layer.title,categories:r,field:f,queryExpressions:u,totalCount:null,fLayerView:l,legendElement:a}):Promise.resolve(null)}catch{return await Promise.resolve(null)}}async function re(e,t){let o={},n=[];e.activeLayerInfos.forEach(W(n,e,t));try{return(await Promise.all(n)).forEach(i=>{let a=i?.activeLayerInfo?.layer?.id;o[a]=i}),Promise.resolve(o)}catch{return await Promise.reject(new Error("Failed to generate data"))}}function ne(e){return Array.from(e,t=>t[1])}function oe(e,t,o,n,c){if(n)return n?.nestedInfos?.[c];let i="label"in o?o?.label:t?.id;return e?.categories?.get(i)}function ce(e){return P?.data?.[e?.id]}async function ae(e,t,o,n,c){let{queryExpressions:i,fLayerView:a}=e;X(e,t,o,c);let r=i.every(u=>u&&u.includes("<>"))?" AND ":" OR ",s=i.join(r),l=a?.filter?.timeExtent??a?.featureEffect?.filter?.timeExtent??null,{type:f}=n;if(f==="filter")a.filter=await b({where:s,timeExtent:l});else if(n.effect){let{includedEffect:u,excludedEffect:h}=n.effect,p=await O(h,a,"excludedEffect"),y=await O(u,a,"includedEffect");a.featureEffect=await N({filter:await b({where:s,timeExtent:l}),includedEffect:y,excludedEffect:p})}return void await Promise.resolve()}function V(e,t){let o=t?t?.layer?.renderer?.authoringInfo:null,n=o?o.fields:null,c=[];if(!n)return"";if(Object.hasOwn(e,"value"))return n.forEach(i=>{if(e.value===i)return;let a=`(${e.value} > ${i} OR (${i} IS NULL AND ${e.value} IS NOT NULL AND (${e.value} > 0 OR ${e.value} < 0)))`;c.push(a)}),c.join(" AND ");{let i=[];n.forEach(r=>{i.push(`${r} = 0`)});let a=[];if(n.length>2){n.forEach(l=>{n.forEach(f=>{if(l===f)return;let u=[];n.forEach(h=>{l===h||f===h||u.push(`${l} = ${f} AND (${l} > ${h} OR ${l} >= ${h})`)}),a.push(`(${u.join(" AND ")})`)})});let r=[];return n.forEach(l=>{r.push(`${l} IS NULL`)}),`(${i.join(" AND ")}) OR (${a.join(" OR ")}) OR (${r.join(" AND ")})`}else{let r=[];n.forEach(l=>{n.forEach(f=>{l!==f&&(r.push(`${l} = ${f}`),r.push(`(${i.join(" AND ")})`))})});let s=[];return n.forEach(l=>{n.forEach(f=>{l!==f&&s.push(`(${l} = 0 AND ${f} IS NULL) OR (${l} IS NULL AND ${f} IS NULL)`)})}),`(${r.join(" OR ")}) OR (${s.join(" OR ")})`}}}function X(e,t,o,n){let{field:c,legendElement:i,categories:a,fLayerView:r}=e,s=e?.queryExpressions;n&&Array.from(e.categories).map(g=>g[1]).forEach(g=>{g.nestedInfos?.every(m=>!m.selected)&&g.nestedInfos?.forEach(m=>{let $=c?`${c} = '${m.legendElementInfo.value}'`:null,w=$?s.indexOf($):-1;$&&w!==-1&&s.splice(w,1)})});let l=i?.infos,f=L(r),u=f?V(t,r):R(t,c,o,i,l??[],""),h=a?n?a.get(n.title)?.nestedInfos?.[o]:a.get(t.label??r?.layer?.id):null;h&&(h.selected=!h?.selected);let p=l&&l.length===1,y=s.indexOf(u);if(f){let d=s.indexOf(u);s.length===0||d===-1?(s&&s[0]==="1=0"&&s.splice(0,1),s.push(u)):s&&s.length===1&&u===s[0]?s[0]="1=0":s&&s.length===1||s.length===1&&u!==s[0]&&s[0]==="1=0"?s[0]=u:s.length===1&&u===s[0]&&s[0]==="1=0"?s[0]=null:s.splice(d,1),s.join(" OR ")}else s.length===0||y===-1?(s&&s[0]==="1=0"&&s.splice(0,1),s.push(u)):s&&s.length===1&&u===s[0]&&!p?s[0]="1=0":s&&s.length===1&&!p||s.length===1&&u!==s[0]&&s[0]==="1=0"&&!p?s[0]=u:s.length===1&&u===s[0]&&s[0]==="1=0"&&!p?s[0]=null:s.splice(y,1);if(n){let d=[];Array.from(e.categories).map(E=>E[1]).forEach(E=>{E.nestedInfos?.every($=>!$.selected)&&E.nestedInfos?.forEach($=>{(c?`${c} = '${$.legendElementInfo.value}'`:null)&&d.push(`${c} = '${$.legendElementInfo.value}'`)})}),d.forEach(E=>{s.includes(E)||s.push(E)})}}function R(e,t,o,n,c,i){let{value:a}=e;if(n?.type==="symbol-table")if(!Object.hasOwn(e,"value")||Array.isArray(e.value)&&c?.length===1){if(Object.hasOwn(c?.[0],"value")&&Array.isArray(c?.[0].value)&&Object.hasOwn(c?.[c.length-2],"value")&&Array.isArray(c?.[c.length-2].value))return i?`((${t}/${i}) > ${c?.[0].value[1]}) OR ((${t}/${i}) < ${c?.[c.length-2].value[0]}) OR ${i} = 0 OR ${i} IS NULL`:`${t} > ${c?.[0].value[1]} OR ${t} < ${c?.[c.length-2].value[0]} OR ${t} IS NULL`;if(c?.length===1)return"1=0";{let r=[];c?.forEach(l=>{if(l?.value){let{value:f}=l,u=f.indexOf("'")!==-1?f.split("'").join("''"):null,h=u?`${t} <> '${u}'`:isNaN(f)||typeof f=="string"&&!f.trim()?`${t} <> '${f}'`:`${t} <> ${f} AND ${t} <> '${f}'`;r.push(h)}});let s=r.join(" AND ");return t&&s?`${s} OR ${t} IS NULL`:""}}else{let r=a.indexOf("'")!==-1?a.split("'").join("''"):null,s=Array.isArray(e.value),l=c&&c.length-1===o,f=!Object.hasOwn(c?.[c.length-1],"value"),u=c&&c.length-2===o;return s?i?l||f&&u?`(${t}/${i}) >= ${a[0]} AND (${t}/${i}) <= ${e.value[1]}`:`(${t}/${i}) > ${a[0]} AND (${t}/${i}) <= ${e.value[1]}`:l||f&&u?`${t} >= ${a[0]} AND ${t} <= ${a[1]}`:`${t} > ${a[0]} AND ${t} <= ${a[1]}`:c?.length===1&&t?isNaN(a)||!a.trim().length?`${t} <> '${a}'`:`${t} <> ${a} OR ${t} <> '${a}'`:r?`${t} = '${r}'`:isNaN(a)||!a.trim().length?`${t} = '${a}'`:`${t} = ${a} OR ${t} = '${a}'`}else return""}function ie(e){return Array.isArray(e)?e.every(t=>!t.selected):e&&Array.from(e.categories.entries()).every(t=>!t[1].selected)&&e.queryExpressions[0]!=="1=0"}function L(e){return e?.layer?.renderer?.authoringInfo?.type==="predominance"}function le(e){return e?.legendElements[1]?.type==="relationship-ramp"}function ue(e,t,o){let c=e.layer?.renderer?.field,i=t?.type,a=e?.layerView,r=a?.layer?.renderer?.classBreakInfos,s=a?.layer?.renderer?.uniqueValueInfos&&c,l=i==="size-ramp",f=i==="color-ramp",u=i==="opacity-ramp",h=i==="heatmap-ramp",p=a&&r&&r.length>1,y=a?.layer?.renderer?.authoringInfo?.type,d=y==="class-breaks-color",g=y==="class-breaks-size",E=t?.infos?.length===1&&!c,m=y==="relationship"&&t?.type!=="size-ramp"&&t?.type!=="symbol-table",$=e?.layer?.type==="feature",w=$&&c&&!f&&!l&&p,A=!!($&&c&&!f&&!l&&!p),S=!!(A||L(a)&&!l||d&&c||g&&c||E&&!c&&c!==null||m||s),U=e?.layer?.featureReduction&&e?.legendElements?.[o]?.type==="size-ramp",q=t?.type==="symbol-table"&&t?.infos?.length===1,Q=!e?.legendElements.every(x=>x.type!=="color-ramp"),B=!e?.legendElements.every(x=>x.type!=="size-ramp"),z=q&&Q,I=q&&B,G=t?.infos?.every(x=>typeof x.value=="number"),Z=e?.legendElements?.[0]?.type==="symbol-table"&&e?.legendElements?.[1]?.type==="color-ramp",H=y==="dot-density",J=T(e?.layer,c);return $&&!U&&!u&&!h&&!z&&!I&&!G&&!Z&&!H&&J?r?w||S:A||S:!1}function fe(e){return e.queryExpressions=[],e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.categories.forEach(t=>{t.selected=!1}),e}function he(e,t){e.categories.get(t)?.nestedInfos?.forEach(r=>{let s=`${e.field} = '${r.legendElementInfo.value}'`,l=e.queryExpressions.indexOf(s);l!==-1&&e.queryExpressions.splice(l,1),r.selected=!1});let n=[],c=Array.from(e.categories).map(r=>r[1]);c.forEach(r=>{r.nestedInfos?.every(l=>!l.selected)&&r.nestedInfos?.forEach(l=>{n.push(`${e.field} = '${l.legendElementInfo.value}'`)})}),n.forEach(r=>{e.queryExpressions.includes(r)||e.queryExpressions.push(r)});let i=e.queryExpressions.join(" OR ");return c.every(r=>r.nestedInfos?.every(s=>!s.selected))?(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.queryExpressions=[]):(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=i),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect.filter.where=i)),e}async function ye(e,t,o){let n=e.fLayerView.createQuery();if(o)if(o.nestedInfos.every(i=>!i.selected)){let i=o.nestedInfos.map(a=>`${e.field} = '${a.legendElementInfo.value}'`).join(" OR ");n.where=i}else{let i=o.nestedInfos.filter(a=>a.selected).map(a=>`${e.field} = '${a.legendElementInfo.value}'`).join(" OR ");n.where=i}else{let c=e.queryExpressions.join(" OR ");n.where=c}try{let{extent:c}=await e.fLayerView.layer.queryExtent(n);await t.goTo(c)}catch{}}function pe(e){return e.map(o=>o?.count).reduce((o,n)=>o+n)}function de(e){return e.map(t=>t?.nestedInfos?.map(o=>o.count).reduce((o,n)=>o+n)).reduce((t,o)=>t+o)}async function v(e,t,o,n,c,i,a,r){if(!t||!T(t?.layer,o))return;let l=t?.layer?.type==="feature"?t.createQuery():null,f=L(t)?V(n,t):n.type?R(a,o,r,n,n.infos):R(n,o,c,i,i.infos);l&&f&&(l.where=f==="1=0"?"1=1":f,e&&(l.geometry=e));try{let u=l?await t.queryFeatureCount(l):null;return Promise.resolve({[n.label??t?.layer?.id]:u})}catch(u){console.error("FAILURE AT 'getInfoCount': ",u)}return await Promise.resolve(null)}async function ge(e,t){let o={...t},{activeLayerInfos:n}=e,c=e?.view?.extent,i={},a={};n.forEach(async r=>{let s=r.legendElements[0],l=r.layer,f=t[r?.layer?.id]?.fLayerView,u=l.renderer?.field,h=[];a[r.layer.id]=[],s?.infos?.forEach((y,d)=>{if(s.infos?.every(E=>E.type==="symbol-table")){let E=[];y.infos.forEach((m,$)=>{let w=v(c,f,u,y,d,s,m,$);E.push(w)}),a[r.layer.id].push(E)}else h.push(v(c,f,u,y,d,s)),a[r.layer.id]=h});let p=y=>{let d=[],g=y.legendElements[0],E=y.layer,m=t[y?.layer?.id]?.fLayerView,$=E.renderer?.field;g?.infos?.forEach((w,A)=>d.push(v(c,m,$,w,A,g))),a[y.layer.id]=d};r.children.forEach(async y=>{p(y),y?.children?.length>0&&y.children.forEach(d=>{p(d),d?.children?.length>0&&d.children.forEach(g=>{p(g)})})})});for(let r in a){let s=i[r];s||(s=i[r]={});let l=await Promise.all(a[r]);if(l.every(f=>Array.isArray(f))){let f=await Promise.all(l.map(async u=>(await Promise.all(u)).map(y=>y&&Object.values(y)[0])));s[r]=f,i[r]={...s[r]}}else{let f={};l.forEach(u=>{if(!u)return;let h=Object.keys(u)[0];f[h]=u[h]}),r&&(s[r]=f),i[r]={...s[r]}}}return n.forEach(r=>{let s=t[r.layer.id],l=r.layer.id;s?.categories?.forEach((h,p)=>{let d=Array.from(s?.categories).findIndex(g=>g[0]===p);if(h?.nestedInfos)h?.nestedInfos.forEach((g,E)=>{let m=i?.[r?.layer?.id]?.[d]?.[E];g.count=isNaN(m)?null:m});else{let g=i?.[l]?.[p];h.count=isNaN(g)?null:g}});let u=h=>{let p=h.layer.id;t[p]?.categories?.forEach((d,g)=>{let E=i?.[p]?.[g];d.count=E})};r?.children?.forEach(h=>{u(h),h?.children?.length>0&&h.children.forEach(p=>{u(p),p?.children?.length>0&&p.children.forEach(y=>{u(y)})})})}),await Promise.resolve(o)}function Ee(e,t){return e?.nestedInfos?.[t]}function $e(e){return Array.from(e).map(o=>o[1]).every(o=>!!o?.nestedInfos)}function me(e){return!!e?.legendElements?.[0]?.infos?.every?.(t=>t?.type==="symbol-table")}function we(e,t){if(typeof t?.title=="string")return e?.categories?.get(t?.title)}function xe(e){let t="calcite-mode-",o=`${t}light`,n=`${t}dark`;return e.classList.contains(n)?n:o}function Oe(e){if(e.layerId&&e.intLegendLayerData){let t=e.layerId,o=e.intLegendLayerData,n={...P.data,[t]:o};K.set("data",n)}}function Ae(e,t){let{type:o}=e;o==="filter"?Y(t):o==="effect"&&_(e,t)}function Y(e){e?.allLayerViews?.filter(t=>t?.layer?.type==="feature")?.forEach(t=>{let o=t,n=C(o);o.filter=n,o.set("featureEffect",null)})}function _(e,t){t?.allLayerViews?.filter(o=>o?.layer?.type==="feature").forEach(async o=>{let n=o;if(e?.effect&&n){let{includedEffect:c,excludedEffect:i}=e.effect,a=await O(i,n,"excludedEffect"),r=await O(c,n,"includedEffect"),s=C(n);n.featureEffect=await N({filter:s,includedEffect:r,excludedEffect:a}),n.set("filter",null)}})}function C(e){return e?.filter||e?.featureEffect?.filter}function T(e,t){let o=e?.fields,n=o&&o.map(c=>c.name);return t?n&&n.includes(t):!0}function Ne(e){let t=[];return e.forEach(o=>F(o,t)),t}function F(e,t){t.push(e),e.children&&e.children.length>0&&e.children.forEach(o=>{F(o,t)})}export{P as a,K as b,j as c,re as d,ne as e,oe as f,ce as g,ae as h,ie as i,le as j,ue as k,fe as l,he as m,ye as n,pe as o,de as p,ge as q,Ee as r,$e as s,me as t,we as u,xe as v,Oe as w,Ae as x,Ne as y};
3
+ v1.0.0-next.20250513 */
4
+ import{a as O}from"./2HW4GV5C.js";import{a as D}from"./PVMRTOAH.js";import{h as N,i as b}from"./ZVRPCQAG.js";var k=D({data:{},relationshipRampExpandStates:{},compact:!1}),P=k.state,K=k;function W(e,t,o){return n=>{let c=n?.layer?.type;if(c==="feature"||c==="group"){let i=j(t,n,o).then(r=>r);i&&e.push(i);let a=r=>{let s=j(t,r,o).then(l=>l);s&&e.push(s)};n.children.forEach(r=>{a(r),r?.children?.length>0&&r.children.forEach(s=>{a(s),s?.children?.length>0&&s.children.forEach(l=>{a(l)})})})}}}async function j(e,t,o){try{let n=t?.layer?.type==="group",c=t?.layer?.layers?.some(h=>h.visible),i=t?.layer?.layers?.every(h=>!h?.legendEnabled);await o.whenOnce(()=>e?.state==="ready"),!n||n&&c?n&&i?await o.whenOnce(()=>t?.layer?.loaded):await o.whenOnce(()=>t?.ready):await o.whenOnce(()=>t?.legendElements);let a=t?.legendElements?.[0],r=new Map,s=t.layer,l=await e?.view?.whenLayerView(s),f=s.renderer?.field??"";a!==void 0&&a?.infos?.forEach(h=>{if(h.type==="symbol-table"){let y=[];h.infos.forEach(g=>{let E={count:null,selected:!1,legendElementInfo:g};y.push(E)});let d={count:null,selected:!1,legendElementInfo:h,nestedInfos:y};r.set(h.title,d)}else{let y={count:null,selected:!1,legendElementInfo:h};r.set(h.label??s.id,y)}});let u=[];return l?Promise.resolve({activeLayerInfo:t,title:l.layer.title,categories:r,field:f,queryExpressions:u,totalCount:null,fLayerView:l,legendElement:a}):Promise.resolve(null)}catch{return await Promise.resolve(null)}}async function re(e,t){let o={},n=[];e.activeLayerInfos.forEach(W(n,e,t));try{return(await Promise.all(n)).forEach(i=>{let a=i?.activeLayerInfo?.layer?.id;o[a]=i}),Promise.resolve(o)}catch{return await Promise.reject(new Error("Failed to generate data"))}}function ne(e){return Array.from(e,t=>t[1])}function oe(e,t,o,n,c){if(n)return n?.nestedInfos?.[c];let i="label"in o?o?.label:t?.id;return e?.categories?.get(i)}function ce(e){return P?.data?.[e?.id]}async function ae(e,t,o,n,c){let{queryExpressions:i,fLayerView:a}=e;X(e,t,o,c);let r=i.every(u=>u&&u.includes("<>"))?" AND ":" OR ",s=i.join(r),l=a?.filter?.timeExtent??a?.featureEffect?.filter?.timeExtent??null,{type:f}=n;if(f==="filter")a.filter=await b({where:s,timeExtent:l});else if(n.effect){let{includedEffect:u,excludedEffect:h}=n.effect,p=await O(h,a,"excludedEffect"),y=await O(u,a,"includedEffect");a.featureEffect=await N({filter:await b({where:s,timeExtent:l}),includedEffect:y,excludedEffect:p})}return void await Promise.resolve()}function V(e,t){let o=t?t?.layer?.renderer?.authoringInfo:null,n=o?o.fields:null,c=[];if(!n)return"";if(Object.hasOwn(e,"value"))return n.forEach(i=>{if(e.value===i)return;let a=`(${e.value} > ${i} OR (${i} IS NULL AND ${e.value} IS NOT NULL AND (${e.value} > 0 OR ${e.value} < 0)))`;c.push(a)}),c.join(" AND ");{let i=[];n.forEach(r=>{i.push(`${r} = 0`)});let a=[];if(n.length>2){n.forEach(l=>{n.forEach(f=>{if(l===f)return;let u=[];n.forEach(h=>{l===h||f===h||u.push(`${l} = ${f} AND (${l} > ${h} OR ${l} >= ${h})`)}),a.push(`(${u.join(" AND ")})`)})});let r=[];return n.forEach(l=>{r.push(`${l} IS NULL`)}),`(${i.join(" AND ")}) OR (${a.join(" OR ")}) OR (${r.join(" AND ")})`}else{let r=[];n.forEach(l=>{n.forEach(f=>{l!==f&&(r.push(`${l} = ${f}`),r.push(`(${i.join(" AND ")})`))})});let s=[];return n.forEach(l=>{n.forEach(f=>{l!==f&&s.push(`(${l} = 0 AND ${f} IS NULL) OR (${l} IS NULL AND ${f} IS NULL)`)})}),`(${r.join(" OR ")}) OR (${s.join(" OR ")})`}}}function X(e,t,o,n){let{field:c,legendElement:i,categories:a,fLayerView:r}=e,s=e?.queryExpressions;n&&Array.from(e.categories).map(g=>g[1]).forEach(g=>{g.nestedInfos?.every(m=>!m.selected)&&g.nestedInfos?.forEach(m=>{let $=c?`${c} = '${m.legendElementInfo.value}'`:null,w=$?s.indexOf($):-1;$&&w!==-1&&s.splice(w,1)})});let l=i?.infos,f=L(r),u=f?V(t,r):R(t,c,o,i,l??[],""),h=a?n?a.get(n.title)?.nestedInfos?.[o]:a.get(t.label??r?.layer?.id):null;h&&(h.selected=!h?.selected);let p=l&&l.length===1,y=s.indexOf(u);if(f){let d=s.indexOf(u);s.length===0||d===-1?(s&&s[0]==="1=0"&&s.splice(0,1),s.push(u)):s&&s.length===1&&u===s[0]?s[0]="1=0":s&&s.length===1||s.length===1&&u!==s[0]&&s[0]==="1=0"?s[0]=u:s.length===1&&u===s[0]&&s[0]==="1=0"?s[0]=null:s.splice(d,1),s.join(" OR ")}else s.length===0||y===-1?(s&&s[0]==="1=0"&&s.splice(0,1),s.push(u)):s&&s.length===1&&u===s[0]&&!p?s[0]="1=0":s&&s.length===1&&!p||s.length===1&&u!==s[0]&&s[0]==="1=0"&&!p?s[0]=u:s.length===1&&u===s[0]&&s[0]==="1=0"&&!p?s[0]=null:s.splice(y,1);if(n){let d=[];Array.from(e.categories).map(E=>E[1]).forEach(E=>{E.nestedInfos?.every($=>!$.selected)&&E.nestedInfos?.forEach($=>{(c?`${c} = '${$.legendElementInfo.value}'`:null)&&d.push(`${c} = '${$.legendElementInfo.value}'`)})}),d.forEach(E=>{s.includes(E)||s.push(E)})}}function R(e,t,o,n,c,i){let{value:a}=e;if(n?.type==="symbol-table")if(!Object.hasOwn(e,"value")||Array.isArray(e.value)&&c?.length===1){if(Object.hasOwn(c?.[0],"value")&&Array.isArray(c?.[0].value)&&Object.hasOwn(c?.[c.length-2],"value")&&Array.isArray(c?.[c.length-2].value))return i?`((${t}/${i}) > ${c?.[0].value[1]}) OR ((${t}/${i}) < ${c?.[c.length-2].value[0]}) OR ${i} = 0 OR ${i} IS NULL`:`${t} > ${c?.[0].value[1]} OR ${t} < ${c?.[c.length-2].value[0]} OR ${t} IS NULL`;if(c?.length===1)return"1=0";{let r=[];c?.forEach(l=>{if(l?.value){let{value:f}=l,u=f.indexOf("'")!==-1?f.split("'").join("''"):null,h=u?`${t} <> '${u}'`:isNaN(f)||typeof f=="string"&&!f.trim()?`${t} <> '${f}'`:`${t} <> ${f} AND ${t} <> '${f}'`;r.push(h)}});let s=r.join(" AND ");return t&&s?`${s} OR ${t} IS NULL`:""}}else{let r=a.indexOf("'")!==-1?a.split("'").join("''"):null,s=Array.isArray(e.value),l=c&&c.length-1===o,f=!Object.hasOwn(c?.[c.length-1],"value"),u=c&&c.length-2===o;return s?i?l||f&&u?`(${t}/${i}) >= ${a[0]} AND (${t}/${i}) <= ${e.value[1]}`:`(${t}/${i}) > ${a[0]} AND (${t}/${i}) <= ${e.value[1]}`:l||f&&u?`${t} >= ${a[0]} AND ${t} <= ${a[1]}`:`${t} > ${a[0]} AND ${t} <= ${a[1]}`:c?.length===1&&t?isNaN(a)||!a.trim().length?`${t} <> '${a}'`:`${t} <> ${a} OR ${t} <> '${a}'`:r?`${t} = '${r}'`:isNaN(a)||!a.trim().length?`${t} = '${a}'`:`${t} = ${a} OR ${t} = '${a}'`}else return""}function ie(e){return Array.isArray(e)?e.every(t=>!t.selected):e&&Array.from(e.categories.entries()).every(t=>!t[1].selected)&&e.queryExpressions[0]!=="1=0"}function L(e){return e?.layer?.renderer?.authoringInfo?.type==="predominance"}function le(e){return e?.legendElements[1]?.type==="relationship-ramp"}function ue(e,t,o){let c=e.layer?.renderer?.field,i=t?.type,a=e?.layerView,r=a?.layer?.renderer?.classBreakInfos,s=a?.layer?.renderer?.uniqueValueInfos&&c,l=i==="size-ramp",f=i==="color-ramp",u=i==="opacity-ramp",h=i==="heatmap-ramp",p=a&&r&&r.length>1,y=a?.layer?.renderer?.authoringInfo?.type,d=y==="class-breaks-color",g=y==="class-breaks-size",E=t?.infos?.length===1&&!c,m=y==="relationship"&&t?.type!=="size-ramp"&&t?.type!=="symbol-table",$=e?.layer?.type==="feature",w=$&&c&&!f&&!l&&p,A=!!($&&c&&!f&&!l&&!p),S=!!(A||L(a)&&!l||d&&c||g&&c||E&&!c&&c!==null||m||s),U=e?.layer?.featureReduction&&e?.legendElements?.[o]?.type==="size-ramp",q=t?.type==="symbol-table"&&t?.infos?.length===1,Q=!e?.legendElements.every(x=>x.type!=="color-ramp"),B=!e?.legendElements.every(x=>x.type!=="size-ramp"),z=q&&Q,I=q&&B,G=t?.infos?.every(x=>typeof x.value=="number"),Z=e?.legendElements?.[0]?.type==="symbol-table"&&e?.legendElements?.[1]?.type==="color-ramp",H=y==="dot-density",J=T(e?.layer,c);return $&&!U&&!u&&!h&&!z&&!I&&!G&&!Z&&!H&&J?r?w||S:A||S:!1}function fe(e){return e.queryExpressions=[],e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.categories.forEach(t=>{t.selected=!1}),e}function he(e,t){e.categories.get(t)?.nestedInfos?.forEach(r=>{let s=`${e.field} = '${r.legendElementInfo.value}'`,l=e.queryExpressions.indexOf(s);l!==-1&&e.queryExpressions.splice(l,1),r.selected=!1});let n=[],c=Array.from(e.categories).map(r=>r[1]);c.forEach(r=>{r.nestedInfos?.every(l=>!l.selected)&&r.nestedInfos?.forEach(l=>{n.push(`${e.field} = '${l.legendElementInfo.value}'`)})}),n.forEach(r=>{e.queryExpressions.includes(r)||e.queryExpressions.push(r)});let i=e.queryExpressions.join(" OR ");return c.every(r=>r.nestedInfos?.every(s=>!s.selected))?(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.queryExpressions=[]):(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=i),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect.filter.where=i)),e}async function ye(e,t,o){let n=e.fLayerView.createQuery();if(o)if(o.nestedInfos.every(i=>!i.selected)){let i=o.nestedInfos.map(a=>`${e.field} = '${a.legendElementInfo.value}'`).join(" OR ");n.where=i}else{let i=o.nestedInfos.filter(a=>a.selected).map(a=>`${e.field} = '${a.legendElementInfo.value}'`).join(" OR ");n.where=i}else{let c=e.queryExpressions.join(" OR ");n.where=c}try{let{extent:c}=await e.fLayerView.layer.queryExtent(n);await t.goTo(c)}catch{}}function pe(e){return e.map(o=>o?.count).reduce((o,n)=>o+n)}function de(e){return e.map(t=>t?.nestedInfos?.map(o=>o.count).reduce((o,n)=>o+n)).reduce((t,o)=>t+o)}async function v(e,t,o,n,c,i,a,r){if(!t||!T(t?.layer,o))return;let l=t?.layer?.type==="feature"?t.createQuery():null,f=L(t)?V(n,t):n.type?R(a,o,r,n,n.infos):R(n,o,c,i,i.infos);l&&f&&(l.where=f==="1=0"?"1=1":f,e&&(l.geometry=e));try{let u=l?await t.queryFeatureCount(l):null;return Promise.resolve({[n.label??t?.layer?.id]:u})}catch(u){console.error("FAILURE AT 'getInfoCount': ",u)}return await Promise.resolve(null)}async function ge(e,t){let o={...t},{activeLayerInfos:n}=e,c=e?.view?.extent,i={},a={};n.forEach(async r=>{let s=r.legendElements[0],l=r.layer,f=t[r?.layer?.id]?.fLayerView,u=l.renderer?.field,h=[];a[r.layer.id]=[],s?.infos?.forEach((y,d)=>{if(s.infos?.every(E=>E.type==="symbol-table")){let E=[];y.infos.forEach((m,$)=>{let w=v(c,f,u,y,d,s,m,$);E.push(w)}),a[r.layer.id].push(E)}else h.push(v(c,f,u,y,d,s)),a[r.layer.id]=h});let p=y=>{let d=[],g=y.legendElements[0],E=y.layer,m=t[y?.layer?.id]?.fLayerView,$=E.renderer?.field;g?.infos?.forEach((w,A)=>d.push(v(c,m,$,w,A,g))),a[y.layer.id]=d};r.children.forEach(async y=>{p(y),y?.children?.length>0&&y.children.forEach(d=>{p(d),d?.children?.length>0&&d.children.forEach(g=>{p(g)})})})});for(let r in a){let s=i[r];s||(s=i[r]={});let l=await Promise.all(a[r]);if(l.every(f=>Array.isArray(f))){let f=await Promise.all(l.map(async u=>(await Promise.all(u)).map(y=>y&&Object.values(y)[0])));s[r]=f,i[r]={...s[r]}}else{let f={};l.forEach(u=>{if(!u)return;let h=Object.keys(u)[0];f[h]=u[h]}),r&&(s[r]=f),i[r]={...s[r]}}}return n.forEach(r=>{let s=t[r.layer.id],l=r.layer.id;s?.categories?.forEach((h,p)=>{let d=Array.from(s?.categories).findIndex(g=>g[0]===p);if(h?.nestedInfos)h?.nestedInfos.forEach((g,E)=>{let m=i?.[r?.layer?.id]?.[d]?.[E];g.count=isNaN(m)?null:m});else{let g=i?.[l]?.[p];h.count=isNaN(g)?null:g}});let u=h=>{let p=h.layer.id;t[p]?.categories?.forEach((d,g)=>{let E=i?.[p]?.[g];d.count=E})};r?.children?.forEach(h=>{u(h),h?.children?.length>0&&h.children.forEach(p=>{u(p),p?.children?.length>0&&p.children.forEach(y=>{u(y)})})})}),await Promise.resolve(o)}function Ee(e,t){return e?.nestedInfos?.[t]}function $e(e){return Array.from(e).map(o=>o[1]).every(o=>!!o?.nestedInfos)}function me(e){return!!e?.legendElements?.[0]?.infos?.every?.(t=>t?.type==="symbol-table")}function we(e,t){if(typeof t?.title=="string")return e?.categories?.get(t?.title)}function xe(e){let t="calcite-mode-",o=`${t}light`,n=`${t}dark`;return e.classList.contains(n)?n:o}function Oe(e){if(e.layerId&&e.intLegendLayerData){let t=e.layerId,o=e.intLegendLayerData,n={...P.data,[t]:o};K.set("data",n)}}function Ae(e,t){let{type:o}=e;o==="filter"?Y(t):o==="effect"&&_(e,t)}function Y(e){e?.allLayerViews?.filter(t=>t?.layer?.type==="feature")?.forEach(t=>{let o=t,n=C(o);o.filter=n,o.set("featureEffect",null)})}function _(e,t){t?.allLayerViews?.filter(o=>o?.layer?.type==="feature").forEach(async o=>{let n=o;if(e?.effect&&n){let{includedEffect:c,excludedEffect:i}=e.effect,a=await O(i,n,"excludedEffect"),r=await O(c,n,"includedEffect"),s=C(n);n.featureEffect=await N({filter:s,includedEffect:r,excludedEffect:a}),n.set("filter",null)}})}function C(e){return e?.filter||e?.featureEffect?.filter}function T(e,t){let o=e?.fields,n=o&&o.map(c=>c.name);return t?n&&n.includes(t):!0}function Ne(e){let t=[];return e.forEach(o=>F(o,t)),t}function F(e,t){t.push(e),e.children&&e.children.length>0&&e.children.forEach(o=>{F(o,t)})}export{P as a,K as b,j as c,re as d,ne as e,oe as f,ce as g,ae as h,ie as i,le as j,ue as k,fe as l,he as m,ye as n,pe as o,de as p,ge as q,Ee as r,$e as s,me as t,we as u,xe as v,Oe as w,Ae as x,Ne as y};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{a as d}from"./VDIZRWGH.js";import{d as g}from"./SAK5E7EM.js";var p;(function(t){t.User="user",t.Translation="translation"})(p||(p={}));var f;(function(t){t.String="string",t.TextEditor="textEditor"})(f||(f={}));var m;(function(t){t.ExpandCollapse="list-merge",t.SettingIndicator="list-button",t.Popover="information",t.Expanded="chevron-down",t.Collapsed="chevron-right",t.Copy="copy-to-clipboard",t.DefaultIcon="language",t.Title="title",t.Subtitle="subheading",t.Text="text",t.Description="description",t.Button="button",t.String="string"})(m||(m={}));var c;(function(t){t.Light="calcite-mode-light",t.Dark="calcite-mode-dark"})(c||(c={}));var S=`
3
+ v1.0.0-next.20250513 */
4
+ import{a as d}from"./PVMRTOAH.js";import{d as g}from"./UKMHZ5PP.js";var p;(function(t){t.User="user",t.Translation="translation"})(p||(p={}));var f;(function(t){t.String="string",t.TextEditor="textEditor"})(f||(f={}));var m;(function(t){t.ExpandCollapse="list-merge",t.SettingIndicator="list-button",t.Popover="information",t.Expanded="chevron-down",t.Collapsed="chevron-right",t.Copy="copy-to-clipboard",t.DefaultIcon="language",t.Title="title",t.Subtitle="subheading",t.Text="text",t.Description="description",t.Button="button",t.String="string"})(m||(m={}));var c;(function(t){t.Light="calcite-mode-light",t.Dark="calcite-mode-dark"})(c||(c={}));var S=`
5
5
  .instant-apps-language-translator-item__nested-input .ck.ck-reset.ck-editor.ck-rounded-corners {
6
6
  margin-left: 30px !important;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{B as g,C as i,c as l,d as p,q as u,w as d,z as s}from"./CQFOO7QD.js";import"./OHY2KQUC.js";var m=l`@layer{/** @license
3
+ v1.0.0-next.20250513 */
4
+ import{B as g,C as i,c as l,d as p,q as u,w as d,z as s}from"./3RC2WF5B.js";import"./C44EKR3M.js";var m=l`@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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250509 */
4
- import{a as e,b as i,c as l,d as s,e as t}from"./UCYU2ZVX.js";import{a as r}from"./RA4WYINA.js";import"./BCXBJG72.js";import"./6YD2XRHQ.js";import"./K7L3LTTD.js";import"./ZX2WVODB.js";import"./BIOS2V5G.js";import"./ARPKSGRG.js";import"./J4DDOYKZ.js";import"./AW6GVVCK.js";import"./WFKJMOI2.js";import"./HLQ3GGP4.js";import"./HVVFJDSU.js";import"./4FGMEAIW.js";import"./62J73NXR.js";import"./G466QX4L.js";import"./MNNNZZVI.js";import"./Z7PAFRTZ.js";import"./UQD4DDWQ.js";import"./YZON6FQX.js";import"./424PZHQ5.js";import"./LKUFS2W4.js";import"./LZCG3PUX.js";import"./5EH5ABNA.js";import"./OHY2KQUC.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",type:"number",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
3
+ v1.0.0-next.20250513 */
4
+ import{a as e,b as i,c as l,d as s,e as t}from"./KIU22HO4.js";import{a as r}from"./GGVX7BU3.js";import"./HHVCX4HB.js";import"./V3NOQ3VR.js";import"./5RJEQIH2.js";import"./AXEU574G.js";import"./P4CX5EDN.js";import"./NLQ42NQW.js";import"./CNU3TPX7.js";import"./37UTA2CS.js";import"./YMECWXNY.js";import"./AI3WLROH.js";import"./UOCWAIF5.js";import"./ISCASEIO.js";import"./WUYLVJC7.js";import"./GQU6FXIT.js";import"./6HNT2RSP.js";import"./F57GZO2E.js";import"./OBGBZA5Q.js";import"./ZIJGSIAY.js";import"./CBMZJGCV.js";import"./XW3XMCXE.js";import"./ADVQIEJR.js";import"./HZFEYQGX.js";import"./C44EKR3M.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",type:"number",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250513 */
4
+ import{a as O}from"./IDFWZFF5.js";import{d as C}from"./4745A7PL.js";import{a as l,d as p}from"./IG3I76TX.js";import"./7WDOCGDK.js";import"./C44EKR3M.js";function E(t,a){let i=[];return O(t,(e,c)=>(c.split(".").pop()===a&&i.push(e),e)),i.filter(p)}function _(t){return E(t,"scope").map(a=>a.split("/")[2]).filter(p)}function h(t,a){let i=l(t);return i.required&&(i.required=[...i.required].filter(e=>a.includes(e))),i.properties&&Object.keys(i.properties).forEach(e=>{a.indexOf(e)===-1&&delete i.properties[e]}),i.allOf&&(i.allOf=i.allOf.map(e=>h(e,a))),i.if&&(i.if=h(i.if,a)),i.then&&(i.then=h(i.then,a)),i.else&&(i.else=h(i.else,a)),i}function w(t,a){let i=_(a);return t=h(t,i),t}function q(t){return t&&t.split(":")[2]}async function G(t,a,i,e){let c=q(a),r,u,s,m,b;switch(c){case"stat":s=import("./MXKCH65B.js"),m={"hub:card:stat":()=>import("./6MHBJPS2.js")}[a],await Promise.all([s,m()]).then(async([f,o])=>{let{MetricSchema:n}=f;r=l(n),u=await o.buildUiSchema(t,i,e),o.buildDefaults&&(b=o.buildDefaults(t,i,e))});break;case"follow":s=import("./T6FHHQZJ.js"),m={"hub:card:follow":()=>import("./3P3P323U.js")}[a],await Promise.all([s,m()]).then(([f,o])=>{let{FollowSchema:n}=f;r=l(n),u=o.buildUiSchema(t,i,e)});break;case"eventGallery":s=import("./CZOWNF5N.js"),m=import("./A4AUBCIN.js");let[{EventGalleryCardSchema:g},{buildUiSchema:d}]=await Promise.all([s,m]);r=l(g),u=await d(t,i,e);break}return r=w(r,u),Promise.resolve({schema:r,uiSchema:u})}var V=(t,a)=>{var i;let e=l((i=t.properties)===null||i===void 0?void 0:i._slug);if(!e)return t;let{orgUrlKey:c}=a;e.maxLength=C(c);let r=l(t.allOf)||[],{pattern:u}=e,{id:s}=a;r.push({if:{properties:{_slug:{pattern:u}}},then:{properties:{_slug:{isUniqueSlug:{id:s,orgUrlKey:c}}}}});let m=l(t);return m.properties._slug=e,m.allOf=r,m};async function F(t,a,i,e){let c=a.split(":")[1],r,u,s;switch(c){case"site":let{getSiteSchema:m}=await import("./MYHI7ROY.js");r=m(i.id);let b=await{"hub:site:edit":()=>import("./JNWG7WSY.js"),"hub:site:create":()=>import("./PL3CH3LF.js"),"hub:site:followers":()=>import("./I5XMZWO6.js"),"hub:site:discussions":()=>import("./VQKEDTWW.js"),"hub:site:settings":()=>import("./IZGA6GXU.js")}[a]();u=await b.buildUiSchema(t,i,e),b.buildDefaults&&(s=await b.buildDefaults(t,i,e));break;case"discussion":let{DiscussionSchema:g}=await import("./RM5MLMA4.js");r=l(g);let d=await{"hub:discussion:edit":()=>import("./72KOOVBA.js"),"hub:discussion:create":()=>import("./OUAPE77Q.js"),"hub:discussion:settings":()=>import("./KBLQQKHW.js"),"hub:discussion:settings:discussions":()=>import("./JUZCGG5Y.js")}[a]();u=await d.buildUiSchema(t,i,e),d.buildDefaults&&(s=await d.buildDefaults(t,i,e));break;case"channel":let{ChannelSchema:f}=await import("./ZXAG7K3F.js");r=l(f);let o=await{"hub:channel:edit":()=>import("./RTL6LDYI.js"),"hub:channel:create":()=>import("./GHIWQFDY.js")}[a]();u=await o.buildUiSchema(t,i,e),o.buildDefaults&&(s=await o.buildDefaults(t,i,e));break;case"project":let{ProjectSchema:n}=await import("./MYF2CGM2.js");r=l(n);let v=await{"hub:project:edit":()=>import("./D3DQ3LMO.js"),"hub:project:create":()=>import("./WKBQVMT4.js"),"hub:project:create2":()=>import("./5IYB6I37.js"),"hub:project:metrics":()=>import("./WBDBLEC7.js"),"hub:project:settings":()=>import("./3Y5R5IUQ.js")}[a]();u=await v.buildUiSchema(t,i,e),v.buildDefaults&&(s=await v.buildDefaults(t,i,e));break;case"initiative":let{InitiativeSchema:I}=await import("./XMB335P2.js");r=l(I);let S=await{"hub:initiative:edit":()=>import("./GA57AOAH.js"),"hub:initiative:create":()=>import("./TKZBNC7H.js"),"hub:initiative:create2":()=>import("./3DPLKEDU.js"),"hub:initiative:metrics":()=>import("./LH4PUHQS.js"),"hub:initiative:associations":()=>import("./UAP5F7JO.js"),"hub:initiative:settings":()=>import("./74FUG5XE.js")}[a]();u=await S.buildUiSchema(t,i,e),S.buildDefaults&&(s=await S.buildDefaults(t,i,e));break;case"page":let{PageSchema:K}=await import("./6DG3MERJ.js");r=l(K);let D=await{"hub:page:edit":()=>import("./P5SCKVEP.js"),"hub:page:create":()=>import("./HTWIZOH4.js")}[a]();u=await D.buildUiSchema(t,i,e),D.buildDefaults&&(s=await D.buildDefaults(t,i,e));break;case"content":let{ContentSchema:L}=await import("./KUVX4OOK.js");r=l(L);let U=await{"hub:content:edit":()=>import("./5D3XSPVE.js"),"hub:content:discussions":()=>import("./XI6U7JLE.js"),"hub:content:settings":()=>import("./CIQJF5B3.js")}[a]();u=await U.buildUiSchema(t,i,e),U.buildDefaults&&(s=await U.buildDefaults(t,i,e));break;case"template":let{TemplateSchema:y}=await import("./HOLWK3EZ.js");r=l(y);let k=await{"hub:template:edit":()=>import("./YWPX2AWZ.js")}[a]();u=await k.buildUiSchema(t,i,e),k.buildDefaults&&(s=await k.buildDefaults(t,i,e));break;case"group":let{GroupSchema:z}=await import("./JYL4F373.js");r=l(z);let M=await{"hub:group:create:followers":()=>import("./IVOSJYWQ.js"),"hub:group:create:association":()=>import("./WCAYMKQP.js"),"hub:group:create:view":()=>import("./EE7WJZP4.js"),"hub:group:create:edit":()=>import("./3WW3YWCT.js"),"hub:group:create":()=>import("./JQV5TGAK.js"),"hub:group:edit":()=>import("./EOOHBALJ.js"),"hub:group:settings":()=>import("./LZVWOWHQ.js"),"hub:group:discussions":()=>import("./DAC3GWK5.js")}[a]();u=await M.buildUiSchema(t,i,e),M.buildDefaults&&(s=await M.buildDefaults(t,i,e));break;case"survey":let{SurveySchema:A}=await import("./VPPRTR4I.js");r=l(A),u=await(await{"hub:survey:edit":()=>import("./MEMYGNMH.js"),"hub:survey:settings":()=>import("./HXLDVONX.js")}[a]()).buildUiSchema(t,i,e);break;case"event":let B=await{"hub:event:create":()=>import("./URRXFKCL.js"),"hub:event:edit":()=>import("./BMMWWZDP.js"),"hub:event:registrants":()=>import("./E35TDRWG.js")}[a](),H=await{"hub:event:create":()=>import("./YRLQIYDY.js"),"hub:event:edit":()=>import("./6KD4C6OL.js"),"hub:event:registrants":()=>import("./B33KRB36.js")}[a]();r=B.buildSchema(),u=await H.buildUiSchema(t,i,e);break;case"initiativeTemplate":let{InitiativeTemplateSchema:J}=await import("./KVYB56FX.js");r=l(J);let j=await{"hub:initiativeTemplate:edit":()=>import("./OOGXSHWN.js")}[a]();u=await j.buildUiSchema(t,i,e),j.buildDefaults&&(s=await j.buildDefaults(t,i,e));break;case"user":let{UserSchema:N}=await import("./ETTBV6A5.js");r=l(N);let P=await{"hub:user:settings":()=>import("./RXTELQ34.js")}[a]();u=await P.buildUiSchema(t,i,e),P.buildDefaults&&(s=await P.buildDefaults(t,i,e));break;case"card":let T=await G(t,a,i,e);r=T.schema,u=T.uiSchema,s=T.defaults}return r=w(r,u),r=V(r,i),Promise.resolve({schema:r,uiSchema:u,defaults:s})}async function gi(t,a,i,e){return F(t,a,i,e)}export{gi as getEditorConfig};